mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 00:47:19 +08:00
196 lines
1.8 MiB
196 lines
1.8 MiB
import{c as Sd,O as d8,d as p8,b as m8,u as y8,f as v8}from"./index-B-wdd9yx.js";import{r as b8,a as g8}from"./index-CKmqhH1Z.js";var Kv={exports:{}};(function(Ed,Td){(function(yo,fs){Ed.exports=fs(b8(),g8)})(Sd,function(yo,fs){function ls(t){return(ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}function Od(t){var r=function(e,n){if(ls(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var c=i.call(e,n||"default");if(ls(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}(t,"string");return ls(r)=="symbol"?r:String(r)}function If(t,r,e){return(r=Od(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function Rd(t){if(Array.isArray(t))return t}function Df(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Nf(t,r){if(t){if(typeof t=="string")return Df(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Df(t,r):void 0}}function Cd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ye(t,r){return Rd(t)||function(e,n){var i=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var c,f,l,u,y=[],p=!0,m=!1;try{if(l=(i=i.call(e)).next,n===0){if(Object(i)!==i)return;p=!1}else for(;!(p=(c=l.call(i)).done)&&(y.push(c.value),y.length!==n);p=!0);}catch(b){m=!0,f=b}finally{try{if(!p&&i.return!=null&&(u=i.return(),Object(u)!==u))return}finally{if(m)throw f}}return y}}(t,r)||Nf(t,r)||Cd()}function Ee(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Ad(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Od(n.key),n)}}function Te(t,r,e){return r&&Ad(t.prototype,r),e&&Ad(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pd(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Md(t){return Rd(t)||Pd(t)||Nf(t)||Cd()}var Zc=function(){function t(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";Ee(this,t),typeof r=="string"?(this.el=document.createElement(r),this.el.className=e):this.el=r,this.data={}}return Te(t,[{key:"data",value:function(r,e){return e!==void 0?(this.data[r]=e,this):this.data[r]}},{key:"on",value:function(r,e){var n=Md(r.split(".")),i=n[0],c=n.slice(1),f=i;return f==="mousewheel"&&/Firefox/i.test(window.navigator.userAgent)&&(f="DOMMouseScroll"),this.el.addEventListener(f,function(l){e(l);for(var u=0;u<c.length;u+=1){var y=c[u];if(y==="left"&&l.button!==0||y==="right"&&l.button!==2)return;y==="stop"&&l.stopPropagation()}}),this}},{key:"offset",value:function(r){var e=this;if(r!==void 0)return Object.keys(r).forEach(function(i){e.css(i,"".concat(r[i],"px"))}),this;var n=this.el;return{top:n.offsetTop,left:n.offsetLeft,height:n.offsetHeight,width:n.offsetWidth}}},{key:"scroll",value:function(r){var e=this.el;return r!==void 0&&(r.left!==void 0&&(e.scrollLeft=r.left),r.top!==void 0&&(e.scrollTop=r.top)),{left:e.scrollLeft,top:e.scrollTop}}},{key:"box",value:function(){return this.el.getBoundingClientRect()}},{key:"parent",value:function(){return new t(this.el.parentNode)}},{key:"children",value:function(){for(var r=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return arguments.length===0?this.el.childNodes:(n.forEach(function(c){return r.child(c)}),this)}},{key:"removeChild",value:function(r){this.el.removeChild(r)}},{key:"child",value:function(r){var e=r;return typeof r=="string"?e=document.createTextNode(r):r instanceof t&&(e=r.el),this.el.appendChild(e),this}},{key:"contains",value:function(r){return this.el.contains(r)}},{key:"className",value:function(r){return r!==void 0?(this.el.className=r,this):this.el.className}},{key:"addClass",value:function(r){return this.el.classList.add(r),this}},{key:"hasClass",value:function(r){return this.el.classList.contains(r)}},{key:"removeClass",value:function(r){return this.el.classList.remove(r),this}},{key:"toggle",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"active";return this.toggleClass(r)}},{key:"toggleClass",value:function(r){return this.el.classList.toggle(r)}},{key:"active",value:function(){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"active";return!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]?this.addClass(r):this.removeClass(r),this}},{key:"checked",value:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.active(r,"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(r,e){var n=this;if(e!==void 0)this.el.setAttribute(r,e);else{if(typeof r=="string")return this.el.getAttribute(r);Object.keys(r).forEach(function(i){n.el.setAttribute(i,r[i])})}return this}},{key:"removeAttr",value:function(r){return this.el.removeAttribute(r),this}},{key:"html",value:function(r){return r!==void 0?(this.el.innerHTML=r,this):this.el.innerHTML}},{key:"val",value:function(r){return r!==void 0?(this.el.value=r,this):this.el.value}},{key:"focus",value:function(){this.el.focus()}},{key:"cssRemoveKeys",value:function(){for(var r=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.forEach(function(c){return r.el.style.removeProperty(c)}),this}},{key:"css",value:function(r,e){var n=this;return e===void 0&&typeof r!="string"?(Object.keys(r).forEach(function(i){n.el.style[i]=r[i]}),this):e!==void 0?(this.el.style[r]=e,this):this.el.style[r]}},{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}}]),t}(),Yt=function(t){return new Zc(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:"")};function _r(t){return function(r){if(Array.isArray(r))return Df(r)}(t)||Pd(t)||Nf(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var ra=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function jd(t){for(var r="",e=t;e>=ra.length;)e/=ra.length,e-=1,r+=ra[parseInt(e,10)%ra.length];var n=t%ra.length;return r+=ra[n]}function Xv(t){for(var r=0,e=0;e<t.length-1;e+=1){var n=t.charCodeAt(e)-65,i=t.length-1-e;r+=Math.pow(ra.length,i)+ra.length*n}return r+=t.charCodeAt(t.length-1)-65}function na(t){for(var r="",e="",n=0;n<t.length;n+=1)t.charAt(n)>="0"&&t.charAt(n)<="9"?e+=t.charAt(n):r+=t.charAt(n);return[Xv(r),parseInt(e,10)-1]}function Io(t,r){return"".concat(jd(t)).concat(r+1)}function qs(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0};if(r===0&&e===0)return t;var i=Ye(na(t),2),c=i[0],f=i[1];return n(c,f)?Io(c+r,f+e):t}var zn=function(){function t(r,e,n,i){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;Ee(this,t),this.sri=r,this.sci=e,this.eri=n,this.eci=i,this.w=c,this.h=f}return Te(t,[{key:"set",value:function(r,e,n,i){this.sri=r,this.sci=e,this.eri=n,this.eci=i}},{key:"multiple",value:function(){return this.eri-this.sri>0||this.eci-this.sci>0}},{key:"includes",value:function(){for(var r=0,e=0,n=arguments.length,i=new Array(n),c=0;c<n;c++)i[c]=arguments[c];if(i.length===1){var f=Ye(na(i[0]),2);e=f[0],r=f[1]}else i.length===2&&(r=i[0],e=i[1]);var l=this.sri,u=this.sci,y=this.eri,p=this.eci;return l<=r&&r<=y&&u<=e&&e<=p}},{key:"each",value:function(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){return!0},n=this.sri,i=this.sci,c=this.eri,f=this.eci,l=n;l<=c;l+=1)if(e(l))for(var u=i;u<=f;u+=1)r(l,u)}},{key:"contains",value:function(r){return this.sri<=r.sri&&this.sci<=r.sci&&this.eri>=r.eri&&this.eci>=r.eci}},{key:"within",value:function(r){return this.sri>=r.sri&&this.sci>=r.sci&&this.eri<=r.eri&&this.eci<=r.eci}},{key:"disjoint",value:function(r){return this.sri>r.eri||this.sci>r.eci||r.sri>this.eri||r.sci>this.eci}},{key:"intersects",value:function(r){return this.sri<=r.eri&&this.sci<=r.eci&&r.sri<=this.eri&&r.sci<=this.eci}},{key:"union",value:function(r){var e=this.sri,n=this.sci,i=this.eri,c=this.eci;return new t(r.sri<e?r.sri:e,r.sci<n?r.sci:n,r.eri>i?r.eri:i,r.eci>c?r.eci:c)}},{key:"difference",value:function(r){var e=[],n=function(b,v,_,s){e.push(new t(b,v,_,s))},i=this.sri,c=this.sci,f=this.eri,l=this.eci,u=r.sri-i,y=r.sci-c,p=f-r.eri,m=l-r.eci;return u>0?(n(i,c,r.sri-1,l),p>0?(n(r.eri+1,c,f,l),y>0&&n(r.sri,c,r.eri,r.sci-1),m>0&&n(r.sri,r.eci+1,r.eri,l)):(y>0&&n(r.sri,c,f,r.sci-1),m>0&&n(r.sri,r.eci+1,f,l))):p>0&&(n(r.eri+1,c,f,l),y>0&&n(i,c,r.eri,r.sci-1),m>0&&n(i,r.eci+1,r.eri,l)),y>0?(n(i,c,f,r.sci-1),m>0?(n(i,r.eri+1,f,l),u>0&&n(i,r.sci,r.sri-1,r.eci),p>0&&n(r.sri+1,r.sci,f,r.eci)):(u>0&&n(i,r.sci,r.sri-1,l),p>0&&n(r.sri+1,r.sci,f,l))):m>0&&(n(f,r.eci+1,f,l),u>0&&n(i,c,r.sri-1,r.eci),p>0&&n(r.eri+1,c,f,r.eci)),e}},{key:"size",value:function(){return[this.eri-this.sri+1,this.eci-this.sci+1]}},{key:"toString",value:function(){var r=this.sri,e=this.sci,n=this.eri,i=this.eci,c=Io(e,r);return this.multiple()&&(c="".concat(c,":").concat(Io(i,n))),c}},{key:"clone",value:function(){return new t(this.sri,this.sci,this.eri,this.eci,this.w,this.h)}},{key:"equals",value:function(r){return this.eri===r.eri&&this.eci===r.eci&&this.sri===r.sri&&this.sci===r.sci}}],[{key:"valueOf",value:function(r){var e=r.split(":"),n=Ye(na(e[0]),2),i=n[0],c=n[1],f=c,l=i;if(e.length>1){var u=Ye(na(e[1]),2);l=u[0],f=u[1]}return new t(c,i,f,l)}}]),t}(),Zv=function(){function t(){Ee(this,t),this.range=new zn(0,0,0,0),this.ri=0,this.ci=0}return Te(t,[{key:"multiple",value:function(){return this.range.multiple()}},{key:"setIndexes",value:function(r,e){this.ri=r,this.ci=e}},{key:"size",value:function(){return this.range.size()}}]),t}(),Jv=Te(function t(){Ee(this,t),this.x=0,this.y=0,this.ri=0,this.ci=0}),Qv=function(){function t(){Ee(this,t),this.undoItems=[],this.redoItems=[]}return Te(t,[{key:"add",value:function(r){this.undoItems.push(JSON.stringify(r)),this.redoItems=[]}},{key:"canUndo",value:function(){return this.undoItems.length>0}},{key:"canRedo",value:function(){return this.redoItems.length>0}},{key:"undo",value:function(r,e){var n=this.undoItems,i=this.redoItems;this.canUndo()&&(i.push(JSON.stringify(r)),e(JSON.parse(n.pop())))}},{key:"redo",value:function(r,e){var n=this.undoItems,i=this.redoItems;this.canRedo()&&(n.push(JSON.stringify(r)),e(JSON.parse(i.pop())))}}]),t}(),tb=function(){function t(){Ee(this,t),this.range=null,this.state="clear"}return Te(t,[{key:"copy",value:function(r){return this.range=r,this.state="copy",this}},{key:"cut",value:function(r){return this.range=r,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"}}]),t}(),Id=function(){function t(r,e,n){Ee(this,t),this.ci=r,this.operator=e,this.value=n}return Te(t,[{key:"set",value:function(r,e){this.operator=r,this.value=e}},{key:"includes",value:function(r){var e=this.operator,n=this.value;return e==="all"||e==="in"&&n.includes(r)}},{key:"vlength",value:function(){var r=this.operator,e=this.value;return r==="in"?e.length:0}},{key:"getData",value:function(){return{ci:this.ci,operator:this.operator,value:this.value}}}]),t}(),Dd=function(){function t(r,e){Ee(this,t),this.ci=r,this.order=e}return Te(t,[{key:"asc",value:function(){return this.order==="asc"}},{key:"desc",value:function(){return this.order==="desc"}}]),t}(),eb=function(){function t(){Ee(this,t),this.ref=null,this.filters=[],this.sort=null}return Te(t,[{key:"setData",value:function(r){var e=r.ref,n=r.filters,i=r.sort;e!=null&&(this.ref=e,this.filters=n.map(function(c){return new Id(c.ci,c.operator,c.value)}),i&&(this.sort=new Dd(i.ci,i.order)))}},{key:"getData",value:function(){if(this.active()){var r=this.ref,e=this.filters,n=this.sort;return{ref:r,filters:e.map(function(i){return i.getData()}),sort:n}}return{}}},{key:"addFilter",value:function(r,e,n){var i=this.getFilter(r);i==null?this.filters.push(new Id(r,e,n)):i.set(e,n)}},{key:"setSort",value:function(r,e){this.sort=e?new Dd(r,e):null}},{key:"includes",value:function(r,e){return!!this.active()&&this.hrange().includes(r,e)}},{key:"getSort",value:function(r){var e=this.sort;return e&&e.ci===r?e:null}},{key:"getFilter",value:function(r){for(var e=this.filters,n=0;n<e.length;n+=1)if(e[n].ci===r)return e[n];return null}},{key:"filteredRows",value:function(r){var e=new Set,n=new Set;if(this.active())for(var i=this.range(),c=i.sri,f=i.eri,l=this.filters,u=c+1;u<=f;u+=1)for(var y=0;y<l.length;y+=1){var p=l[y],m=r(u,p.ci),b=m?m.text:"";if(!p.includes(b)){e.add(u);break}n.add(u)}return{rset:e,fset:n}}},{key:"items",value:function(r,e){var n={};if(this.active())for(var i=this.range(),c=i.sri,f=i.eri,l=c+1;l<=f;l+=1){var u=e(l,r);if(u===null||/^\s*$/.test(u.text))n[""]=(n[""]||0)+1;else{var y=u.text,p=(n[y]||0)+1;n[y]=p}}return n}},{key:"range",value:function(){return zn.valueOf(this.ref)}},{key:"hrange",value:function(){var r=this.range();return r.eri=r.sri,r}},{key:"clear",value:function(){this.ref=null,this.filters=[],this.sort=null}},{key:"active",value:function(){return this.ref!==null}}]),t}(),rb=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ee(this,t),this._=r}return Te(t,[{key:"forEach",value:function(r){this._.forEach(r)}},{key:"deleteWithin",value:function(r){this._=this._.filter(function(e){return!e.within(r)})}},{key:"getFirstIncludes",value:function(r,e){for(var n=0;n<this._.length;n+=1){var i=this._[n];if(i.includes(r,e))return i}return null}},{key:"filterIntersects",value:function(r){return new t(this._.filter(function(e){return e.intersects(r)}))}},{key:"intersects",value:function(r){for(var e=0;e<this._.length;e+=1)if(this._[e].intersects(r))return!0;return!1}},{key:"union",value:function(r){var e=r;return this._.forEach(function(n){n.intersects(e)&&(e=n.union(e))}),e}},{key:"add",value:function(r){this.deleteWithin(r),this._.push(r)}},{key:"shift",value:function(r,e,n,i){this._.forEach(function(c){var f=c.sri,l=c.sci,u=c.eri,y=c.eci,p=c;r==="row"?f>=e?(p.sri+=n,p.eri+=n):f<e&&e<=u&&(p.eri+=n,i(f,l,n,0)):r==="column"&&(l>=e?(p.sci+=n,p.eci+=n):l<e&&e<=y&&(p.eci+=n,i(f,l,0,n)))})}},{key:"move",value:function(r,e,n){this._.forEach(function(i){var c=i;c.within(r)&&(c.eri+=e,c.sri+=e,c.sci+=n,c.eci+=n)})}},{key:"setData",value:function(r){return this._=r.map(function(e){return zn.valueOf(e)}),this}},{key:"getData",value:function(){return this._.map(function(r){return r.toString()})}}]),t}(),nb=function t(){for(var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return n.forEach(function(c){Object.keys(c).forEach(function(f){var l=c[f];typeof l=="string"||typeof l=="number"||typeof l=="boolean"?r[f]=l:typeof l!="function"&&!Array.isArray(l)&&l instanceof Object?(r[f]=r[f]||{},t(r[f],l)):r[f]=l})}),r};function Ff(t){for(var r="".concat(t),e=0,n=!1,i=0;i<r.length;i+=1)n===!0&&(e+=1),r.charAt(i)==="."&&(n=!0);return e}function Ra(t,r,e){if(Number.isNaN(r)||Number.isNaN(e))return r+t+e;var n=Ff(r),i=Ff(e),c=Number(r),f=Number(e),l=0;if(t==="-")l=c-f;else if(t==="+")l=c+f;else if(t==="*")l=c*f;else if(t==="/")return Ff(l=c/f)>5?l.toFixed(2):l;return l.toFixed(Math.max(n,i))}const pi={cloneDeep:function(t){return JSON.parse(JSON.stringify(t))},merge:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return nb.apply(void 0,[{}].concat(r))},equals:function t(r,e){var n=Object.keys(r);if(n.length!==Object.keys(e).length)return!1;for(var i=0;i<n.length;i+=1){var c=n[i],f=r[c],l=e[c];if(l===void 0)return!1;if(typeof f=="string"||typeof f=="number"||typeof f=="boolean"){if(f!==l)return!1}else if(Array.isArray(f)){if(f.length!==l.length)return!1;for(var u=0;u<f.length;u+=1)if(!t(f[u],l[u]))return!1}else if(typeof f!="function"&&!Array.isArray(f)&&f instanceof Object&&!t(f,l))return!1}return!0},arrayEquals:function(t,r){if(t.length!==r.length)return!1;for(var e=0;e<t.length;e+=1)if(t[e]!==r[e])return!1;return!0},sum:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(i){return i},e=0,n=0;return Object.keys(t).forEach(function(i){e+=r(t[i],i),n+=1}),[e,n]},rangeEach:function(t,r,e){for(var n=t;n<r;n+=1)e(n)},rangeSum:function(t,r,e){for(var n=0,i=t;i<r;i+=1)n+=e(i);return n},rangeReduceIf:function(t,r,e,n,i,c){for(var f=e,l=n,u=t;u<r&&!(f>i);u+=1)f+=l=c(u);return[u,f-l,l]},deleteProperty:function(t,r){var e=t["".concat(r)];return delete t["".concat(r)],e},numberCalc:Ra};var ib=function(){function t(r){var e=r.len,n=r.height;Ee(this,t),this._={},this.len=e,this.height=n}return Te(t,[{key:"getHeight",value:function(r){if(this.isHide(r))return 0;var e=this.get(r);return e&&e.height?e.height:this.height}},{key:"setHeight",value:function(r,e){this.getOrNew(r).height=e}},{key:"unhide",value:function(r){for(var e=r;e>0&&(e-=1,this.isHide(e));)this.setHide(e,!1)}},{key:"isHide",value:function(r){var e=this.get(r);return e&&e.hide}},{key:"setHide",value:function(r,e){var n=this.getOrNew(r);e===!0?n.hide=!0:delete n.hide}},{key:"setStyle",value:function(r,e){this.getOrNew(r).style=e}},{key:"sumHeight",value:function(r,e,n){var i=this;return pi.rangeSum(r,e,function(c){return n&&n.has(c)?0:i.getHeight(c)})}},{key:"totalHeight",value:function(){return this.sumHeight(0,this.len)}},{key:"get",value:function(r){return this._[r]}},{key:"getOrNew",value:function(r){return this._[r]=this._[r]||{cells:{}},this._[r]}},{key:"getCell",value:function(r,e){var n=this.get(r);return n!==void 0&&n.cells!==void 0&&n.cells[e]!==void 0?n.cells[e]:null}},{key:"getCellMerge",value:function(r,e){var n=this.getCell(r,e);return n&&n.merge?n.merge:[0,0]}},{key:"getCellOrNew",value:function(r,e){var n=this.getOrNew(r);return n.cells[e]=n.cells[e]||{},n.cells[e]}},{key:"setCell",value:function(r,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"all",c=this.getOrNew(r);i==="all"?c.cells[e]=n:i==="text"?(c.cells[e]=c.cells[e]||{},c.cells[e].text=n.text):i==="format"&&(c.cells[e]=c.cells[e]||{},c.cells[e].style=n.style,n.merge&&(c.cells[e].merge=n.merge))}},{key:"setCellText",value:function(r,e,n){var i=this.getCellOrNew(r,e);i.editable!==!1&&(i.text=n)}},{key:"copyPaste",value:function(r,e,n){var i=this,c=arguments.length>3&&arguments[3]!==void 0&&arguments[3],f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},l=r.sri,u=r.sci,y=r.eri,p=r.eci,m=e.sri,b=e.sci,v=e.eri,_=e.eci,s=Ye(r.size(),2),o=s[0],h=s[1],a=Ye(e.size(),2),d=a[0],g=a[1],w=!0,k=0;(v<l||_<u)&&(w=!1,k=v<l?d:g);for(var S=l;S<=y;S+=1)if(this._[S]){for(var A=u;A<=p;A+=1)if(this._[S].cells&&this._[S].cells[A])for(var j=m;j<=v;j+=o)for(var D=function(){var F=j+(S-l),T=N+(A-u),I=pi.cloneDeep(i._[S].cells[A]);if(c&&I&&I.text&&I.text.length>0){var x=I.text,O=N-b+(j-m)+2;if(w||(O-=k+1),x[0]==="=")I.text=x.replace(/[a-zA-Z]{1,3}\d+/g,function(P){var L=0,H=0;return l===m?L=O-1:H=O-1,/^\d+$/.test(P)?P:qs(P,L,H)});else if(o<=1&&h>1&&(m>y||v<l)||h<=1&&o>1&&(b>p||_<u)||o<=1&&h<=1){var R=/[\\.\d]+$/.exec(x);if(R!==null){var C=Number(R[0])+O-1;I.text=x.substring(0,R.index)+C}}}i.setCell(F,T,I,n),f(F,T,I)},N=b;N<=_;N+=h)D()}}},{key:"cutPaste",value:function(r,e){var n=this,i={};this.each(function(c){n.eachCells(c,function(f){var l=parseInt(c,10),u=parseInt(f,10);r.includes(c,f)&&(l=e.sri+(l-r.sri),u=e.sci+(u-r.sci)),i[l]=i[l]||{cells:{}},i[l].cells[u]=n._[c].cells[f]})}),this._=i}},{key:"paste",value:function(r,e){var n=this;if(!(r.length<=0)){var i=e.sri,c=e.sci;r.forEach(function(f,l){var u=i+l;f.forEach(function(y,p){var m=c+p;n.setCellText(u,m,y)})})}}},{key:"insert",value:function(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,i={};this.each(function(c,f){var l=parseInt(c,10);l>=r&&(l+=n,e.eachCells(c,function(u,y){y.text&&y.text[0]==="="&&(y.text=y.text.replace(/[a-zA-Z]{1,3}\d+/g,function(p){return qs(p,0,n,function(m,b){return b>=r})}))})),i[l]=f}),this._=i,this.len+=n}},{key:"delete",value:function(r,e){var n=this,i=e-r+1,c={};this.each(function(f,l){var u=parseInt(f,10);u<r?c[u]=l:f>e&&(c[u-i]=l,n.eachCells(f,function(y,p){p.text&&p.text[0]==="="&&(p.text=p.text.replace(/[a-zA-Z]{1,3}\d+/g,function(m){return qs(m,0,-i,function(b,v){return v>e})}))}))}),this._=c,this.len-=i}},{key:"insertColumn",value:function(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.each(function(i,c){var f={};e.eachCells(i,function(l,u){var y=parseInt(l,10);y>=r&&(y+=n,u.text&&u.text[0]==="="&&(u.text=u.text.replace(/[a-zA-Z]{1,3}\d+/g,function(p){return qs(p,n,0,function(m){return m>=r})}))),f[y]=u}),c.cells=f})}},{key:"deleteColumn",value:function(r,e){var n=this,i=e-r+1;this.each(function(c,f){var l={};n.eachCells(c,function(u,y){var p=parseInt(u,10);p<r?l[p]=y:p>e&&(l[p-i]=y,y.text&&y.text[0]==="="&&(y.text=y.text.replace(/[a-zA-Z]{1,3}\d+/g,function(m){return qs(m,-i,0,function(b){return b>e})})))}),f.cells=l})}},{key:"deleteCells",value:function(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";r.each(function(i,c){e.deleteCell(i,c,n)})}},{key:"deleteCell",value:function(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"all",i=this.get(r);if(i!==null){var c=this.getCell(r,e);c!==null&&c.editable!==!1&&(n==="all"?delete i.cells[e]:n==="text"?(c.text&&delete c.text,c.value&&delete c.value):n==="format"?(c.style!==void 0&&delete c.style,c.merge&&delete c.merge):n==="merge"&&c.merge&&delete c.merge)}}},{key:"maxCell",value:function(){var r=Object.keys(this._),e=r[r.length-1],n=this._[e];if(n){var i=n.cells,c=Object.keys(i),f=c[c.length-1];return[parseInt(e,10),parseInt(f,10)]}return[0,0]}},{key:"each",value:function(r){Object.entries(this._).forEach(function(e){var n=Ye(e,2),i=n[0],c=n[1];r(i,c)})}},{key:"eachCells",value:function(r,e){this._[r]&&this._[r].cells&&Object.entries(this._[r].cells).forEach(function(n){var i=Ye(n,2),c=i[0],f=i[1];e(c,f)})}},{key:"setData",value:function(r){r.len&&(this.len=r.len,delete r.len),this._=r}},{key:"getData",value:function(){var r=this.len;return Object.assign({len:r},this._)}}]),t}(),ob=function(){function t(r){var e=r.len,n=r.width,i=r.indexWidth,c=r.minWidth;Ee(this,t),this._={},this.len=e,this.width=n,this.indexWidth=i,this.minWidth=c}return Te(t,[{key:"setData",value:function(r){r.len&&(this.len=r.len,delete r.len),this._=r}},{key:"getData",value:function(){var r=this.len;return Object.assign({len:r},this._)}},{key:"getWidth",value:function(r){if(this.isHide(r))return 0;var e=this._[r];return e&&e.width?e.width:this.width}},{key:"getOrNew",value:function(r){return this._[r]=this._[r]||{},this._[r]}},{key:"setWidth",value:function(r,e){this.getOrNew(r).width=e}},{key:"unhide",value:function(r){for(var e=r;e>0&&(e-=1,this.isHide(e));)this.setHide(e,!1)}},{key:"isHide",value:function(r){var e=this._[r];return e&&e.hide}},{key:"setHide",value:function(r,e){var n=this.getOrNew(r);e===!0?n.hide=!0:delete n.hide}},{key:"setStyle",value:function(r,e){this.getOrNew(r).style=e}},{key:"sumWidth",value:function(r,e){var n=this;return pi.rangeSum(r,e,function(i){return n.getWidth(i)})}},{key:"totalWidth",value:function(){return this.sumWidth(0,this.len)}}]),t}();function ab(t,r){var e=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(u,y){if(u){if(typeof u=="string")return Nd(u,y);var p=Object.prototype.toString.call(u).slice(8,-1);if(p==="Object"&&u.constructor&&(p=u.constructor.name),p==="Map"||p==="Set")return Array.from(u);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return Nd(u,y)}}(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,f=!0,l=!1;return{s:function(){e=e.call(t)},n:function(){var u=e.next();return f=u.done,u},e:function(u){l=!0,c=u},f:function(){try{f||e.return==null||e.return()}finally{if(l)throw c}}}}function Nd(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var Lf=["en"],Fd={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 Ld(t,r){if(r){var e,n=ab(Lf);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(!r[i])break;for(var c=r[i],f=t.match(/(?:\\.|[^.])+/g),l=0;l<f.length;l+=1){var u=c[f[l]];if(!u)break;if(l===f.length-1)return u;c=u}}}catch(y){n.e(y)}finally{n.f()}}}function hn(t){var r=Ld(t,Fd);return!r&&window&&window.x_spreadsheet&&window.x_spreadsheet.$messages&&(r=Ld(t,window.x_spreadsheet.$messages)),r||""}function kr(t){return function(){return hn(t)}}function Bd(t,r){arguments.length>2&&arguments[2]!==void 0&&arguments[2]?Lf=[t]:Lf.unshift(t),r&&(Fd[t]=r)}var zd={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function eo(t,r){var e="";if(!t){for(var n=arguments.length,i=new Array(n>2?n-2:0),c=2;c<n;c++)i[c-2]=arguments[c];e=hn.apply(void 0,["validation.".concat(r)].concat(i))}return[t,e]}var Ud=function(){function t(r,e,n,i){Ee(this,t),this.required=e,this.value=n,this.type=r,this.operator=i,this.message=""}return Te(t,[{key:"parseValue",value:function(r){var e=this.type;return e==="date"?new Date(r):e==="number"?Number(r):r}},{key:"equals",value:function(r){var e=this.type===r.type&&this.required===r.required&&this.operator===r.operator;return e&&(e=Array.isArray(this.value)?pi.arrayEquals(this.value,r.value):this.value===r.value),e}},{key:"values",value:function(){return this.value.split(",")}},{key:"validate",value:function(r){var e=this.required,n=this.operator,i=this.value,c=this.type;if(e&&/^\s*$/.test(r))return eo(!1,"required");if(/^\s*$/.test(r))return[!0];if(zd[c]&&!zd[c].test(r))return eo(!1,"notMatch");if(c==="list")return eo(this.values().includes(r),"notIn");if(n){var f=this.parseValue(r);if(n==="be"){var l=Ye(i,2),u=l[0],y=l[1];return eo(f>=this.parseValue(u)&&f<=this.parseValue(y),"between",u,y)}if(n==="nbe"){var p=Ye(i,2),m=p[0],b=p[1];return eo(f<this.parseValue(m)||f>this.parseValue(b),"notBetween",m,b)}if(n==="eq")return eo(f===this.parseValue(i),"equal",i);if(n==="neq")return eo(f!==this.parseValue(i),"notEqual",i);if(n==="lt")return eo(f<this.parseValue(i),"lessThan",i);if(n==="lte")return eo(f<=this.parseValue(i),"lessThanEqual",i);if(n==="gt")return eo(f>this.parseValue(i),"greaterThan",i);if(n==="gte")return eo(f>=this.parseValue(i),"greaterThanEqual",i)}return[!0]}}]),t}(),Hd=function(){function t(r,e,n){Ee(this,t),this.refs=e,this.mode=r,this.validator=n}return Te(t,[{key:"includes",value:function(r,e){for(var n=this.refs,i=0;i<n.length;i+=1)if(zn.valueOf(n[i]).includes(r,e))return!0;return!1}},{key:"addRef",value:function(r){this.remove(zn.valueOf(r)),this.refs.push(r)}},{key:"remove",value:function(r){var e=[];this.refs.forEach(function(n){var i=zn.valueOf(n);i.intersects(r)?i.difference(r).forEach(function(c){return e.push(c.toString())}):e.push(n)}),this.refs=e}},{key:"getData",value:function(){var r=this.refs,e=this.mode,n=this.validator;return{refs:r,mode:e,type:n.type,required:n.required,operator:n.operator,value:n.value}}}],[{key:"valueOf",value:function(r){var e=r.refs,n=r.mode,i=r.type,c=r.required,f=r.operator,l=r.value;return new t(n,e,new Ud(i,c,l,f))}}]),t}(),sb=function(){function t(){Ee(this,t),this._=[],this.errors=new Map}return Te(t,[{key:"getError",value:function(r,e){return this.errors.get("".concat(r,"_").concat(e))}},{key:"validate",value:function(r,e,n){var i=this.get(r,e),c="".concat(r,"_").concat(e),f=this.errors;if(i!==null){var l=Ye(i.validator.validate(n),2),u=l[0],y=l[1];u?f.delete(c):f.set(c,y)}else f.delete(c);return!0}},{key:"add",value:function(r,e,n){var i=n.type,c=n.required,f=n.value,l=n.operator,u=new Ud(i,c,f,l),y=this.getByValidator(u);y!==null?y.addRef(e):this._.push(new Hd(r,[e],u))}},{key:"getByValidator",value:function(r){for(var e=0;e<this._.length;e+=1){var n=this._[e];if(n.validator.equals(r))return n}return null}},{key:"get",value:function(r,e){for(var n=0;n<this._.length;n+=1){var i=this._[n];if(i.includes(r,e))return i}return null}},{key:"remove",value:function(r){this.each(function(e){e.remove(r)})}},{key:"each",value:function(r){this._.forEach(function(e){return r(e)})}},{key:"getData",value:function(){return this._.filter(function(r){return r.refs.length>0}).map(function(r){return r.getData()})}},{key:"setData",value:function(r){this._=r.map(function(e){return Hd.valueOf(e)})}}]),t}(),cb={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"}},Wd=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)};function Vd(t,r){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},n=this.merges,i=r.clone(),c=Ye(t.size(),2),f=c[0],l=c[1],u=Ye(r.size(),2),y=u[0],p=u[1];return f>y&&(i.eri=r.sri+f-1),l>p&&(i.eci=r.sci+l-1),!n.intersects(i)||(e(hn("error.pasteForMergedCell")),!1)}function $d(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0&&arguments[3],i=this.rows,c=this.merges;e!=="all"&&e!=="format"||(i.deleteCells(r,e),c.deleteWithin(r)),i.copyPaste(t,r,e,n,function(f,l,u){if(u&&u.merge){var y=Ye(u.merge,2),p=y[0],m=y[1];if(p<=0&&m<=0)return;c.add(new zn(f,l,f+p,l+m))}})}function ub(t,r){var e=this.clipboard,n=this.rows,i=this.merges;n.cutPaste(t,r),i.move(t,r.sri-t.sri,r.sci-t.sci),e.clear()}function hs(t,r,e){var n=this.styles,i=this.rows.getCellOrNew(t,r),c={};i.style!==void 0&&(c=pi.cloneDeep(n[i.style])),c=pi.merge(c,{border:e}),i.style=this.addStyle(c)}function fb(t){var r=this,e=t.mode,n=t.style,i=t.color,c=this.styles,f=this.selector,l=this.rows,u=f.range,y=u.sri,p=u.sci,m=u.eri,b=u.eci,v=!this.isSignleSelected();if(v||e!=="inside"&&e!=="horizontal"&&e!=="vertical")if(e!=="outside"||v){if(e==="none")f.range.each(function(R,C){var P=l.getCell(R,C);if(P&&P.style!==void 0){var L=pi.cloneDeep(c[P.style]);delete L.border,P.style=r.addStyle(L)}});else if(e==="all"||e==="inside"||e==="outside"||e==="horizontal"||e==="vertical")for(var _=[],s=y;s<=m;s+=1)for(var o=p;o<=b;o+=1){for(var h=[],a=0;a<_.length;a+=1){var d=Ye(_[a],4),g=d[0],w=d[1],k=d[2],S=d[3];if(s===g+k+1&&h.push(a),g<=s&&s<=g+k&&o===w){o+=S+1;break}}if(h.forEach(function(R){return _.splice(R,1)}),o>b)break;var A=l.getCell(s,o),j=0,D=0;if(A&&A.merge){var N=Ye(A.merge,2);j=N[0],D=N[1],_.push([s,o,j,D])}var F=j>0&&s+j===m,T=D>0&&o+D===b,I={};e==="all"?I={bottom:[n,i],top:[n,i],left:[n,i],right:[n,i]}:e==="inside"?(!T&&o<b&&(I.right=[n,i]),!F&&s<m&&(I.bottom=[n,i])):e==="horizontal"?!F&&s<m&&(I.bottom=[n,i]):e==="vertical"?!T&&o<b&&(I.right=[n,i]):e==="outside"&&v&&(y===s&&(I.top=[n,i]),(F||m===s)&&(I.bottom=[n,i]),p===o&&(I.left=[n,i]),(T||b===o)&&(I.right=[n,i])),Object.keys(I).length>0&&hs.call(this,s,o,I),o+=D}else if(e==="top"||e==="bottom")for(var x=p;x<=b;x+=1)e==="top"&&(hs.call(this,y,x,{top:[n,i]}),x+=l.getCellMerge(y,x)[1]),e==="bottom"&&(hs.call(this,m,x,{bottom:[n,i]}),x+=l.getCellMerge(m,x)[1]);else if(e==="left"||e==="right")for(var O=y;O<=m;O+=1)e==="left"&&(hs.call(this,O,p,{left:[n,i]}),O+=l.getCellMerge(O,p)[0]),e==="right"&&(hs.call(this,O,b,{right:[n,i]}),O+=l.getCellMerge(O,b)[0])}else hs.call(this,y,p,{top:[n,i],bottom:[n,i],left:[n,i],right:[n,i]})}function lb(t,r){var e=this.rows,n=this.freezeTotalHeight(),i=e.height;n+e.height<t&&(i-=r);for(var c=this.exceptRowSet,f=0,l=i,u=e.height;f<e.len&&!(l>t);f+=1)c.has(f)||(l+=u=e.getHeight(f));return(l-=u)<=0?{ri:-1,top:0,height:u}:{ri:f-1,top:l,height:u}}function hb(t,r){var e=this.cols,n=this.freezeTotalWidth(),i=e.indexWidth;n+e.indexWidth<t&&(i-=r);var c=Ye(pi.rangeReduceIf(0,e.len,i,e.indexWidth,t,function(y){return e.getWidth(y)}),3),f=c[0],l=c[1],u=c[2];return l<=0?{ci:-1,left:0,width:e.indexWidth}:{ci:f-1,left:l,width:u}}var db=function(){function t(r,e){Ee(this,t),this.settings=pi.merge(cb,e||{}),this.name=r||"sheet",this.freeze=[0,0],this.styles=[],this.merges=new rb,this.rows=new ib(this.settings.row),this.cols=new ob(this.settings.col),this.validations=new sb,this.hyperlinks={},this.comments={},this.selector=new Zv,this.scroll=new Jv,this.history=new Qv,this.clipboard=new tb,this.autoFilter=new eb,this.change=function(){},this.exceptRowSet=new Set,this.sortedRowMap=new Map,this.unsortedRowMap=new Map}return Te(t,[{key:"addValidation",value:function(r,e,n){var i=this;this.changeData(function(){i.validations.add(r,e,n)})}},{key:"removeValidation",value:function(){var r=this,e=this.selector.range;this.changeData(function(){r.validations.remove(e)})}},{key:"getSelectedValidator",value:function(){var r=this.selector,e=r.ri,n=r.ci,i=this.validations.get(e,n);return i?i.validator:null}},{key:"getSelectedValidation",value:function(){var r=this.selector,e=r.ri,n=r.ci,i=r.range,c=this.validations.get(e,n),f={ref:i.toString()};return c!==null&&(f.mode=c.mode,f.validator=c.validator),f}},{key:"canUndo",value:function(){return this.history.canUndo()}},{key:"canRedo",value:function(){return this.history.canRedo()}},{key:"undo",value:function(){var r=this;this.history.undo(this.getData(),function(e){r.setData(e)})}},{key:"redo",value:function(){var r=this;this.history.redo(this.getData(),function(e){r.setData(e)})}},{key:"copy",value:function(){this.clipboard.copy(this.selector.range)}},{key:"copyToSystemClipboard",value:function(){if(navigator.clipboard!==void 0){for(var r="",e=this.rows.getData(),n=this.selector.range.sri;n<=this.selector.range.eri;n+=1){if(Wd(e,n)){for(var i=this.selector.range.sci;i<=this.selector.range.eci;i+=1)if(i>this.selector.range.sci&&(r+=" "),Wd(e[n].cells,i)){var c=String(e[n].cells[i].text);c.indexOf(`
|
||
`)===-1&&c.indexOf(" ")===-1&&c.indexOf('"')===-1?r+=c:r+='"'.concat(c,'"')}}else for(var f=this.selector.range.sci;f<=this.selector.range.eci;f+=1)r+=" ";r+=`
|
||
`}navigator.clipboard.writeText(r).then(function(){},function(l){console.log("text copy to the system clipboard error ",r,l)})}}},{key:"cut",value:function(){this.clipboard.cut(this.selector.range)}},{key:"paste",value:function(){var r=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"all",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},i=this.clipboard,c=this.selector;return!i.isClear()&&!!Vd.call(this,i.range,c.range,n)&&(this.changeData(function(){i.isCopy()?$d.call(r,i.range,c.range,e):i.isCut()&&ub.call(r,i.range,c.range)}),!0)}},{key:"pasteFromText",value:function(r){var e=r.split(`\r
|
||
`).map(function(c){return c.replace(/"/g,"").split(" ")});e.length>0&&(e.length-=1);var n=this.rows,i=this.selector;this.changeData(function(){n.paste(e,i.range)})}},{key:"autofill",value:function(r,e){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=this.selector.range;return!!Vd.call(this,c,r,i)&&(this.changeData(function(){$d.call(n,c,r,e,!0)}),!0)}},{key:"clearClipboard",value:function(){this.clipboard.clear()}},{key:"calSelectedRangeByEnd",value:function(r,e){var n=this.selector,i=this.rows,c=this.cols,f=this.merges,l=n.range,u=l.sri,y=l.sci,p=l.eri,m=l.eci,b=n.ri,v=n.ci,_=r,s=e;return r<0&&(_=i.len-1),e<0&&(s=c.len-1),_>b?(u=b,p=_):(u=_,p=b),s>v?(y=v,m=s):(y=s,m=v),n.range=f.union(new zn(u,y,p,m)),n.range=f.union(n.range),n.range}},{key:"calSelectedRangeByStart",value:function(r,e){var n=this.selector,i=this.rows,c=this.cols,f=this.merges.getFirstIncludes(r,e);return f===null&&(f=new zn(r,e,r,e),r===-1&&(f.sri=0,f.eri=i.len-1),e===-1&&(f.sci=0,f.eci=c.len-1)),n.range=f,f}},{key:"setSelectedCellAttr",value:function(r,e){var n=this;this.changeData(function(){var i=n.selector,c=n.styles,f=n.rows;if(r==="merge")e?n.merge():n.unmerge();else if(r==="border")fb.call(n,e);else if(r==="formula"){var l=i.ri,u=i.ci,y=i.range;if(i.multiple()){var p=Ye(i.size(),2),m=p[0],b=p[1],v=y.sri,_=y.sci,s=y.eri,o=y.eci;if(m>1)for(var h=_;h<=o;h+=1)f.getCellOrNew(s+1,h).text="=".concat(e,"(").concat(Io(h,v),":").concat(Io(h,s),")");else b>1&&(f.getCellOrNew(l,o+1).text="=".concat(e,"(").concat(Io(_,l),":").concat(Io(o,l),")"))}else f.getCellOrNew(l,u).text="=".concat(e,"()")}else i.range.each(function(a,d){var g=f.getCellOrNew(a,d),w={};if(g.style!==void 0&&(w=pi.cloneDeep(c[g.style])),r==="format")w.format=e,g.style=n.addStyle(w);else if(r==="font-bold"||r==="font-italic"||r==="font-name"||r==="font-size"){var k={};k[r.split("-")[1]]=e,w.font=Object.assign(w.font||{},k),g.style=n.addStyle(w)}else r==="strike"||r==="textwrap"||r==="underline"||r==="align"||r==="valign"||r==="color"||r==="bgcolor"?(w[r]=e,g.style=n.addStyle(w)):g[r]=e})})}},{key:"setSelectedCellText",value:function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"input",n=this.autoFilter,i=this.selector,c=this.rows,f=i.ri,l=i.ci,u=f;this.unsortedRowMap.has(f)&&(u=this.unsortedRowMap.get(f));var y=c.getCell(u,l),p=y?y.text:"";if(this.setCellText(u,l,r,e),n.active()){var m=n.getFilter(l);if(m){var b=m.value.findIndex(function(v){return v===p});b>=0&&m.value.splice(b,1,r)}}}},{key:"getSelectedCell",value:function(){var r=this.selector,e=r.ri,n=r.ci,i=e;return this.unsortedRowMap.has(e)&&(i=this.unsortedRowMap.get(e)),this.rows.getCell(i,n)}},{key:"xyInSelectedRect",value:function(r,e){var n=this.getSelectedRect(),i=n.left,c=n.top,f=n.width,l=n.height,u=r-this.cols.indexWidth,y=e-this.rows.height;return u>i&&u<i+f&&y>c&&y<c+l}},{key:"getSelectedRect",value:function(){return this.getRect(this.selector.range)}},{key:"getClipboardRect",value:function(){var r=this.clipboard;return r.isClear()?{left:-100,top:-100}:this.getRect(r.range)}},{key:"getRect",value:function(r){var e=this.scroll,n=this.rows,i=this.cols,c=this.exceptRowSet,f=r.sri,l=r.sci,u=r.eri,y=r.eci;if(f<0&&l<0)return{left:0,l:0,top:0,t:0,scroll:e};var p=i.sumWidth(0,l),m=n.sumHeight(0,f,c),b=n.sumHeight(f,u+1,c),v=i.sumWidth(l,y+1),_=p-e.x,s=m-e.y,o=this.freezeTotalHeight(),h=this.freezeTotalWidth();return h>0&&h>p&&(_=p),o>0&&o>m&&(s=m),{l:p,t:m,left:_,top:s,height:b,width:v,scroll:e}}},{key:"getCellRectByXY",value:function(r,e){var n=this.scroll,i=this.merges,c=this.rows,f=this.cols,l=lb.call(this,e,n.y),u=l.ri,y=l.top,p=l.height,m=hb.call(this,r,n.x),b=m.ci,v=m.left,_=m.width;if(b===-1&&(_=f.totalWidth()),u===-1&&(p=c.totalHeight()),u>=0||b>=0){var s=i.getFirstIncludes(u,b);if(s){u=s.sri,b=s.sci;var o=this.cellRect(u,b);v=o.left,y=o.top,_=o.width,p=o.height}}return{ri:u,ci:b,left:v,top:y,width:_,height:p}}},{key:"isSignleSelected",value:function(){var r=this.selector.range,e=r.sri,n=r.sci,i=r.eri,c=r.eci,f=this.getCell(e,n);if(f&&f.merge){var l=Ye(f.merge,2),u=l[0],y=l[1];if(e+u===i&&n+y===c)return!0}return!this.selector.multiple()}},{key:"canUnmerge",value:function(){var r=this.selector.range,e=r.sri,n=r.sci,i=r.eri,c=r.eci,f=this.getCell(e,n);if(f&&f.merge){var l=Ye(f.merge,2),u=l[0],y=l[1];if(e+u===i&&n+y===c)return!0}return!1}},{key:"merge",value:function(){var r=this,e=this.selector,n=this.rows;if(!this.isSignleSelected()){var i=Ye(e.size(),2),c=i[0],f=i[1];if(c>1||f>1){var l=e.range,u=l.sri,y=l.sci;this.changeData(function(){var p=n.getCellOrNew(u,y);p.merge=[c-1,f-1],r.merges.add(e.range),r.rows.deleteCells(e.range),r.rows.setCell(u,y,p)})}}}},{key:"unmerge",value:function(){var r=this,e=this.selector;if(this.isSignleSelected()){var n=e.range,i=n.sri,c=n.sci;this.changeData(function(){r.rows.deleteCell(i,c,"merge"),r.merges.deleteWithin(e.range)})}}},{key:"canAutofilter",value:function(){return!this.autoFilter.active()}},{key:"autofilter",value:function(){var r=this,e=this.autoFilter,n=this.selector;this.changeData(function(){e.active()?(e.clear(),r.exceptRowSet=new Set,r.sortedRowMap=new Map,r.unsortedRowMap=new Map):e.ref=n.range.toString()})}},{key:"setAutoFilter",value:function(r,e,n,i){var c=this.autoFilter;c.addFilter(r,n,i),c.setSort(r,e),this.resetAutoFilter()}},{key:"resetAutoFilter",value:function(){var r=this,e=this.autoFilter,n=this.rows;if(e.active()){var i=e.sort,c=e.filteredRows(function(p,m){return n.getCell(p,m)}),f=c.rset,l=c.fset,u=Array.from(l),y=Array.from(l);i&&u.sort(function(p,m){return i.order==="asc"?p-m:i.order==="desc"?m-p:0}),this.exceptRowSet=f,this.sortedRowMap=new Map,this.unsortedRowMap=new Map,u.forEach(function(p,m){r.sortedRowMap.set(y[m],p),r.unsortedRowMap.set(p,y[m])})}}},{key:"deleteCell",value:function(){var r=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"all",n=this.selector;this.changeData(function(){r.rows.deleteCells(n.range,e),e!=="all"&&e!=="format"||r.merges.deleteWithin(n.range)})}},{key:"insert",value:function(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.changeData(function(){var i=e.selector.range,c=i.sri,f=i.sci,l=e.rows,u=e.merges,y=e.cols,p=c;r==="row"?l.insert(c,n):r==="column"&&(l.insertColumn(f,n),p=f,y.len+=1),u.shift(r,p,n,function(m,b,v,_){var s=l.getCell(m,b);s.merge[0]+=v,s.merge[1]+=_})})}},{key:"delete",value:function(r){var e=this;this.changeData(function(){var n=e.rows,i=e.merges,c=e.selector,f=e.cols,l=c.range,u=c.range,y=u.sri,p=u.sci,m=u.eri,b=u.eci,v=Ye(c.range.size(),2),_=v[0],s=v[1],o=y,h=_;r==="row"?n.delete(y,m):r==="column"&&(n.deleteColumn(p,b),o=l.sci,h=s,f.len-=1),i.shift(r,o,-h,function(a,d,g,w){var k=n.getCell(a,d);k.merge[0]+=g,k.merge[1]+=w,k.merge[0]===0&&k.merge[1]===0&&delete k.merge})})}},{key:"scrollx",value:function(r,e){var n=this.scroll,i=this.freeze,c=this.cols,f=Ye(i,2)[1],l=Ye(pi.rangeReduceIf(f,c.len,0,0,r,function(b){return c.getWidth(b)}),3),u=l[0],y=l[1],p=l[2],m=y;r>0&&(m+=p),n.x!==m&&(n.ci=r>0?u:0,n.x=m,e())}},{key:"scrolly",value:function(r,e){var n=this.scroll,i=this.freeze,c=this.rows,f=Ye(i,1)[0],l=Ye(pi.rangeReduceIf(f,c.len,0,0,r,function(b){return c.getHeight(b)}),3),u=l[0],y=l[1],p=l[2],m=y;r>0&&(m+=p),n.y!==m&&(n.ri=r>0?u:0,n.y=m,e())}},{key:"cellRect",value:function(r,e){var n=this.rows,i=this.cols,c=i.sumWidth(0,e),f=n.sumHeight(0,r),l=n.getCell(r,e),u=i.getWidth(e),y=n.getHeight(r);if(l!==null&&l.merge){var p=Ye(l.merge,2),m=p[0],b=p[1];if(m>0)for(var v=1;v<=m;v+=1)y+=n.getHeight(r+v);if(b>0)for(var _=1;_<=b;_+=1)u+=i.getWidth(e+_)}return{left:c,top:f,width:u,height:y,cell:l}}},{key:"getCell",value:function(r,e){return this.rows.getCell(r,e)}},{key:"getCellTextOrDefault",value:function(r,e){var n=this.getCell(r,e);return n&&n.text?n.text:""}},{key:"getCellStyle",value:function(r,e){var n=this.getCell(r,e);return n&&n.style!==void 0?this.styles[n.style]:null}},{key:"getCellStyleOrDefault",value:function(r,e){var n=this.styles,i=this.rows.getCell(r,e),c=i&&i.style!==void 0?n[i.style]:{};return pi.merge(this.defaultStyle(),c)}},{key:"getSelectedCellStyle",value:function(){var r=this.selector,e=r.ri,n=r.ci;return this.getCellStyleOrDefault(e,n)}},{key:"setCellText",value:function(r,e,n,i){var c=this.rows,f=this.history,l=this.validations;i==="finished"?(c.setCellText(r,e,""),f.add(this.getData()),c.setCellText(r,e,n)):(c.setCellText(r,e,n),this.change(this.getData())),l.validate(r,e,n)}},{key:"freezeIsActive",value:function(){var r=Ye(this.freeze,2),e=r[0],n=r[1];return e>0||n>0}},{key:"setFreeze",value:function(r,e){var n=this;this.changeData(function(){n.freeze=[r,e]})}},{key:"freezeTotalWidth",value:function(){return this.cols.sumWidth(0,this.freeze[1])}},{key:"freezeTotalHeight",value:function(){return this.rows.sumHeight(0,this.freeze[0])}},{key:"setRowHeight",value:function(r,e){var n=this;this.changeData(function(){n.rows.setHeight(r,e)})}},{key:"setColWidth",value:function(r,e){var n=this;this.changeData(function(){n.cols.setWidth(r,e)})}},{key:"viewHeight",value:function(){var r=this.settings,e=r.view,n=r.showToolbar,i=r.showBottomBar,c=e.height();return i&&(c-=41),n&&(c-=41),c}},{key:"viewWidth",value:function(){return this.settings.view.width()}},{key:"freezeViewRange",value:function(){var r=Ye(this.freeze,2),e=r[0],n=r[1];return new zn(0,0,e-1,n-1,this.freezeTotalWidth(),this.freezeTotalHeight())}},{key:"contentRange",value:function(){var r=this.rows,e=this.cols,n=Ye(r.maxCell(),2),i=n[0],c=n[1],f=r.sumHeight(0,i+1),l=e.sumWidth(0,c+1);return new zn(0,0,i,c,l,f)}},{key:"exceptRowTotalHeight",value:function(r,e){var n=this.exceptRowSet,i=this.rows,c=Array.from(n),f=0;return c.forEach(function(l){if(l<r||l>e){var u=i.getHeight(l);f+=u}}),f}},{key:"viewRange",value:function(){var r=this.scroll,e=this.rows,n=this.cols,i=this.freeze,c=this.exceptRowSet,f=r.ri,l=r.ci;f<=0&&(f=Ye(i,1)[0]),l<=0&&(l=Ye(i,2)[1]);for(var u=0,y=0,p=[e.len,n.len],m=p[0],b=p[1],v=f;v<e.len&&(c.has(v)||(y+=e.getHeight(v),m=v),!(y>this.viewHeight()));v+=1);for(var _=l;_<n.len&&(b=_,!((u+=n.getWidth(_))>this.viewWidth()));_+=1);return new zn(f,l,m,b,u,y)}},{key:"eachMergesInView",value:function(r,e){this.merges.filterIntersects(r).forEach(function(n){return e(n)})}},{key:"hideRowsOrCols",value:function(){var r=this.rows,e=this.cols,n=this.selector,i=Ye(n.size(),2),c=i[0],f=i[1],l=n.range,u=l.sri,y=l.sci,p=l.eri,m=l.eci;if(c===r.len)for(var b=y;b<=m;b+=1)e.setHide(b,!0);else if(f===e.len)for(var v=u;v<=p;v+=1)r.setHide(v,!0)}},{key:"unhideRowsOrCols",value:function(r,e){this["".concat(r,"s")].unhide(e)}},{key:"rowEach",value:function(r,e,n){for(var i=0,c=this.rows,f=this.exceptRowSet,l=_r(f),u=0,y=0;y<l.length;y+=1)l[y]<r&&(u+=1);for(var p=r+u;p<=e+u;p+=1)if(f.has(p))u+=1;else{var m=c.getHeight(p);if(m>0&&(n(p,i,m),(i+=m)>this.viewHeight()))break}}},{key:"colEach",value:function(r,e,n){for(var i=0,c=this.cols,f=r;f<=e;f+=1){var l=c.getWidth(f);if(l>0&&(n(f,i,l),(i+=l)>this.viewWidth()))break}}},{key:"defaultStyle",value:function(){return this.settings.style}},{key:"addStyle",value:function(r){for(var e=this.styles,n=0;n<e.length;n+=1){var i=e[n];if(pi.equals(i,r))return n}return e.push(r),e.length-1}},{key:"changeData",value:function(r){this.history.add(this.getData()),r(),this.change(this.getData())}},{key:"setData",value:function(r){var e=this;return Object.keys(r).forEach(function(n){if(n==="merges"||n==="rows"||n==="cols"||n==="validations")e[n].setData(r[n]);else if(n==="freeze"){var i=Ye(na(r[n]),2),c=i[0],f=i[1];e.freeze=[f,c]}else n==="autofilter"?e.autoFilter.setData(r[n]):r[n]!==void 0&&(e[n]=r[n])}),this}},{key:"getData",value:function(){var r=this.name,e=this.freeze,n=this.styles,i=this.merges,c=this.rows,f=this.cols,l=this.validations,u=this.autoFilter;return{name:r,freeze:Io(e[1],e[0]),styles:n,merges:i.getData(),rows:c.getData(),cols:f.getData(),validations:l.getData(),autofilter:u.getData()}}}]),t}();function pb(t,r){var e=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(u,y){if(u){if(typeof u=="string")return qd(u,y);var p=Object.prototype.toString.call(u).slice(8,-1);if(p==="Object"&&u.constructor&&(p=u.constructor.name),p==="Map"||p==="Set")return Array.from(u);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return qd(u,y)}}(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,f=!0,l=!1;return{s:function(){e=e.call(t)},n:function(){var u=e.next();return f=u.done,u},e:function(u){l=!0,c=u},f:function(){try{f||e.return==null||e.return()}finally{if(l)throw c}}}}function qd(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function mi(t,r,e){t.addEventListener(r,e)}function Jc(t,r,e){t.removeEventListener(r,e)}function ds(t){t.xclickoutside&&(Jc(window.document.body,"click",t.xclickoutside),delete t.xclickoutside)}function Gs(t,r){t.xclickoutside=function(e){e.detail===2||t.contains(e.target)||(r?r(t):(t.hide(),ds(t)))},mi(window.document.body,"click",t.xclickoutside)}function Gd(t,r,e){mi(t,"mousemove",r),t.xEvtUp=function(n){Jc(t,"mousemove",r),Jc(t,"mouseup",t.xEvtUp),e(n)},mi(t,"mouseup",t.xEvtUp)}function Yd(t,r,e,n){Math.abs(t)>Math.abs(r)?n(t>0?"right":"left",t,e):n(r>0?"down":"up",r,e)}var ve="x-spreadsheet",Kd=function(){function t(){var r=this,e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],n=arguments.length>1?arguments[1]:void 0;Ee(this,t),this.moving=!1,this.vertical=e,this.el=Yt("div","".concat(ve,"-resizer ").concat(e?"vertical":"horizontal")).children(this.unhideHoverEl=Yt("div","".concat(ve,"-resizer-hover")).on("dblclick.stop",function(i){return r.mousedblclickHandler(i)}).css("position","absolute").hide(),this.hoverEl=Yt("div","".concat(ve,"-resizer-hover")).on("mousedown.stop",function(i){return r.mousedownHandler(i)}),this.lineEl=Yt("div","".concat(ve,"-resizer-line")).hide()).hide(),this.cRect=null,this.finishedFn=null,this.minDistance=n,this.unhideFn=function(){}}return Te(t,[{key:"showUnhide",value:function(r){this.unhideIndex=r,this.unhideHoverEl.show()}},{key:"hideUnhide",value:function(){this.unhideHoverEl.hide()}},{key:"show",value:function(r,e){var n=this.moving,i=this.vertical,c=this.hoverEl,f=this.lineEl,l=this.el,u=this.unhideHoverEl;if(!n){this.cRect=r;var y=r.left,p=r.top,m=r.width,b=r.height;l.offset({left:i?y+m-5:y,top:i?p:p+b-5}).show(),c.offset({width:i?5:m,height:i?b:5}),f.offset({width:i?0:e.width,height:i?e.height:0}),u.offset({left:i?5-m:y,top:i?p:5-b,width:i?5:m,height:i?b:5})}}},{key:"hide",value:function(){this.el.offset({left:0,top:0}).hide(),this.hideUnhide()}},{key:"mousedblclickHandler",value:function(){this.unhideIndex&&this.unhideFn(this.unhideIndex)}},{key:"mousedownHandler",value:function(r){var e=this,n=r,i=this.el,c=this.lineEl,f=this.cRect,l=this.vertical,u=this.minDistance,y=l?f.width:f.height;c.show(),Gd(window,function(p){e.moving=!0,n!==null&&p.buttons===1&&(l?(y+=p.movementX)>u&&i.css("left","".concat(f.left+y,"px")):(y+=p.movementY)>u&&i.css("top","".concat(f.top+y,"px")),n=p)},function(){n=null,c.hide(),e.moving=!1,e.hide(),e.finishedFn&&(y<u&&(y=u),e.finishedFn(f,y))})}}]),t}(),Xd=function(){function t(r){var e=this;Ee(this,t),this.vertical=r,this.moveFn=null,this.el=Yt("div","".concat(ve,"-scrollbar ").concat(r?"vertical":"horizontal")).child(this.contentEl=Yt("div","")).on("mousemove.stop",function(){}).on("scroll.stop",function(n){var i=n.target,c=i.scrollTop,f=i.scrollLeft;e.moveFn&&e.moveFn(e.vertical?c:f,n)})}return Te(t,[{key:"move",value:function(r){return this.el.scroll(r),this}},{key:"scroll",value:function(){return this.el.scroll()}},{key:"set",value:function(r,e){var n=r-1;if(e>n){var i=this.vertical?"height":"width";this.el.css(i,"".concat(n-15,"px")).show(),this.contentEl.css(this.vertical?"width":"height","1px").css(i,"".concat(e,"px"))}else this.el.hide();return this}}]),t}(),Bf=10,Qc=function(){function t(){var r=this,e=arguments.length>0&&arguments[0]!==void 0&&arguments[0];Ee(this,t),this.useHideInput=e,this.inputChange=function(){},this.cornerEl=Yt("div","".concat(ve,"-selector-corner")),this.areaEl=Yt("div","".concat(ve,"-selector-area")).child(this.cornerEl).hide(),this.clipboardEl=Yt("div","".concat(ve,"-selector-clipboard")).hide(),this.autofillEl=Yt("div","".concat(ve,"-selector-autofill")).hide(),this.el=Yt("div","".concat(ve,"-selector")).css("z-index","".concat(Bf)).children(this.areaEl,this.clipboardEl,this.autofillEl).hide(),e&&(this.hideInput=Yt("input","").on("compositionend",function(n){r.inputChange(n.target.value)}),this.el.child(this.hideInputDiv=Yt("div","hide-input").child(this.hideInput)),this.el.child(this.hideInputDiv=Yt("div","hide-input").child(this.hideInput))),Bf+=1}return Te(t,[{key:"setOffset",value:function(r){return this.el.offset(r).show(),this}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"setAreaOffset",value:function(r){var e=r.left,n=r.top,i={width:r.width-3+.8,height:r.height-3+.8,left:e-.8,top:n-.8};this.areaEl.offset(i).show(),this.useHideInput&&(this.hideInputDiv.offset(i),this.hideInput.val("").focus())}},{key:"setClipboardOffset",value:function(r){var e=r.left,n=r.top,i=r.width,c=r.height;this.clipboardEl.offset({left:e,top:n,width:i-5,height:c-5})}},{key:"showAutofill",value:function(r){var e=r.left,n=r.top,i=r.width,c=r.height;this.autofillEl.offset({width:i-3,height:c-3,left:e,top:n}).show()}},{key:"hideAutofill",value:function(){this.autofillEl.hide()}},{key:"showClipboard",value:function(){this.clipboardEl.show()}},{key:"hideClipboard",value:function(){this.clipboardEl.hide()}}]),t}();function zf(t){var r=this.data,e=t.left,n=t.top,i=t.width,c=t.height,f=t.scroll,l=t.l,u=t.t,y=r.freezeTotalWidth(),p=r.freezeTotalHeight(),m=e-y;y>l&&(m-=f.x);var b=n-p;return p>u&&(b-=f.y),{left:m,top:b,width:i,height:c}}function Uf(t){var r=this.data,e=t.left,n=t.width,i=t.height,c=t.l,f=t.t,l=t.scroll,u=r.freezeTotalWidth(),y=e-u;return u>c&&(y-=l.x),{left:y,top:f,width:n,height:i}}function Hf(t){var r=this.data,e=t.top,n=t.width,i=t.height,c=t.l,f=t.t,l=t.scroll,u=r.freezeTotalHeight(),y=e-u;return u>f&&(y-=l.y),{left:c,top:y,width:n,height:i}}function Wf(t){this.br.setAreaOffset(zf.call(this,t))}function mb(t){this.tl.setAreaOffset(t)}function Zd(t){this.t.setAreaOffset(Uf.call(this,t))}function Jd(t){this.l.setAreaOffset(Hf.call(this,t))}function Qd(t){this.l.setClipboardOffset(Hf.call(this,t))}function Vf(t){this.br.setClipboardOffset(zf.call(this,t))}function yb(t){this.tl.setClipboardOffset(t)}function tp(t){this.t.setClipboardOffset(Uf.call(this,t))}function ep(t){Wf.call(this,t),mb.call(this,t),Zd.call(this,t),Jd.call(this,t)}function rp(t){Vf.call(this,t),yb.call(this,t),tp.call(this,t),Qd.call(this,t)}var vb=function(){function t(r){var e=this;Ee(this,t),this.inputChange=function(){},this.data=r,this.br=new Qc(!0),this.t=new Qc,this.l=new Qc,this.tl=new Qc,this.br.inputChange=function(n){e.inputChange(n)},this.br.el.show(),this.offset=null,this.areaOffset=null,this.indexes=null,this.range=null,this.arange=null,this.el=Yt("div","".concat(ve,"-selectors")).children(this.tl.el,this.t.el,this.l.el,this.br.el).hide(),this.lastri=-1,this.lastci=-1,Bf+=1}return Te(t,[{key:"resetData",value:function(r){this.data=r,this.range=r.selector.range,this.resetAreaOffset()}},{key:"hide",value:function(){this.el.hide()}},{key:"resetOffset",value:function(){var r=this.data,e=this.tl,n=this.t,i=this.l,c=this.br,f=r.freezeTotalHeight(),l=r.freezeTotalWidth();f>0||l>0?(e.setOffset({width:l,height:f}),n.setOffset({left:l,height:f}),i.setOffset({top:f,width:l}),c.setOffset({left:l,top:f})):(e.hide(),n.hide(),i.hide(),c.setOffset({left:0,top:0}))}},{key:"resetAreaOffset",value:function(){var r=this.data.getSelectedRect(),e=this.data.getClipboardRect();ep.call(this,r),rp.call(this,e),this.resetOffset()}},{key:"resetBRTAreaOffset",value:function(){var r=this.data.getSelectedRect(),e=this.data.getClipboardRect();Wf.call(this,r),Zd.call(this,r),Vf.call(this,e),tp.call(this,e),this.resetOffset()}},{key:"resetBRLAreaOffset",value:function(){var r=this.data.getSelectedRect(),e=this.data.getClipboardRect();Wf.call(this,r),Jd.call(this,r),Vf.call(this,e),Qd.call(this,e),this.resetOffset()}},{key:"set",value:function(r,e){var n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],i=this.data,c=i.calSelectedRangeByStart(r,e),f=c.sri,l=c.sci;if(n){var u=r,y=e;r<0&&(u=0),e<0&&(y=0),i.selector.setIndexes(u,y),this.indexes=[u,y]}this.moveIndexes=[f,l],this.range=c,this.resetAreaOffset(),this.el.show()}},{key:"setEnd",value:function(r,e){var n=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],i=this.data,c=this.lastri,f=this.lastci;if(n){if(r===c&&e===f)return;this.lastri=r,this.lastci=e}this.range=i.calSelectedRangeByEnd(r,e),ep.call(this,this.data.getSelectedRect())}},{key:"reset",value:function(){var r=this.data.selector.range,e=r.eri,n=r.eci;this.setEnd(e,n)}},{key:"showAutofill",value:function(r,e){if(r!==-1||e!==-1){var n=this.range,i=n.sri,c=n.sci,f=n.eri,l=n.eci,u=r,y=e,p=i-r,m=f-r,b=l-e;if(c-e>0)this.arange=new zn(i,y,f,c-1);else if(p>0)this.arange=new zn(u,c,i-1,l);else if(b<0)this.arange=new zn(i,l+1,f,y);else{if(!(m<0))return void(this.arange=null);this.arange=new zn(f+1,c,u,l)}if(this.arange!==null){var v=this.data.getRect(this.arange);v.width+=2,v.height+=2;var _=this.br,s=this.l,o=this.t,h=this.tl;_.showAutofill(zf.call(this,v)),s.showAutofill(Hf.call(this,v)),o.showAutofill(Uf.call(this,v)),h.showAutofill(v)}}}},{key:"hideAutofill",value:function(){var r=this;["br","l","t","tl"].forEach(function(e){r[e].hideAutofill()})}},{key:"showClipboard",value:function(){var r=this,e=this.data.getClipboardRect();rp.call(this,e),["br","l","t","tl"].forEach(function(n){r[n].showClipboard()})}},{key:"hideClipboard",value:function(){var r=this;["br","l","t","tl"].forEach(function(e){r[e].hideClipboard()})}}]),t}();function bb(t){t.preventDefault(),t.stopPropagation();var r=this.filterItems;r.length<=0||(this.itemIndex>=0&&r[this.itemIndex].toggle(),this.itemIndex-=1,this.itemIndex<0&&(this.itemIndex=r.length-1),r[this.itemIndex].toggle())}function gb(t){t.stopPropagation();var r=this.filterItems;r.length<=0||(this.itemIndex>=0&&r[this.itemIndex].toggle(),this.itemIndex+=1,this.itemIndex>r.length-1&&(this.itemIndex=0),r[this.itemIndex].toggle())}function wb(t){t.preventDefault();var r=this.filterItems;r.length<=0||(t.stopPropagation(),this.itemIndex<0&&(this.itemIndex=0),r[this.itemIndex].el.click(),this.hide())}function _b(t){var r=t.keyCode;switch(t.ctrlKey&&t.stopPropagation(),r){case 37:case 39:default:t.stopPropagation();break;case 38:bb.call(this,t);break;case 40:gb.call(this,t);break;case 13:case 9:wb.call(this,t)}}var np=function(){function t(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"200px";Ee(this,t),this.filterItems=[],this.items=r,this.el=Yt("div","".concat(ve,"-suggest")).css("width",n).hide(),this.itemClick=e,this.itemIndex=-1}return Te(t,[{key:"setOffset",value:function(r){this.el.cssRemoveKeys("top","bottom").offset(r)}},{key:"hide",value:function(){var r=this.el;this.filterItems=[],this.itemIndex=-1,r.hide(),ds(this.el.parent())}},{key:"setItems",value:function(r){this.items=r}},{key:"search",value:function(r){var e,n=this,i=this.items;if(/^\s*$/.test(r)||(i=i.filter(function(f){return(f.key||f).startsWith(r.toUpperCase())})),i=i.map(function(f){var l=f.title;l?typeof l=="function"&&(l=l()):l=f;var u=Yt("div","".concat(ve,"-item")).child(l).on("click.stop",function(){n.itemClick(f),n.hide()});return f.label&&u.child(Yt("div","label").html(f.label)),u}),this.filterItems=i,!(i.length<=0)){var c=this.el;(e=c.html("")).children.apply(e,_r(i)).show(),Gs(c.parent(),function(){n.hide()})}}},{key:"bindInputEvents",value:function(r){var e=this;r.on("keydown",function(n){return _b.call(e,n)})}}]),t}();function ip(t,r){return(ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(t,r)}function lr(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&ip(t,r)}function hr(t,r){if(r&&(ls(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function xe(t){return(xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)})(t)}function kb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Un=function(t){lr(e,t);var r=kb(e);function e(n){var i;return Ee(this,e),(i=r.call(this,"div","".concat(ve,"-icon"))).iconNameEl=Yt("div","".concat(ve,"-icon-img ").concat(n)),i.child(i.iconNameEl),i}return Te(e,[{key:"setName",value:function(n){this.iconNameEl.className("".concat(ve,"-icon-img ").concat(n))}}]),e}(Zc);function op(t,r){t.setMonth(t.getMonth()+r)}function xb(t,r){var e=new Date(t);return e.setDate(r-t.getDay()+1),e}var Sb=function(){function t(r){var e,n=this;Ee(this,t),this.value=r,this.cvalue=new Date(r),this.headerLeftEl=Yt("div","calendar-header-left"),this.bodyEl=Yt("tbody",""),this.buildAll(),this.el=Yt("div","x-spreadsheet-calendar").children(Yt("div","calendar-header").children(this.headerLeftEl,Yt("div","calendar-header-right").children(Yt("a","calendar-prev").on("click.stop",function(){return n.prev()}).child(new Un("chevron-left")),Yt("a","calendar-next").on("click.stop",function(){return n.next()}).child(new Un("chevron-right")))),Yt("table","calendar-body").children(Yt("thead","").child((e=Yt("tr","")).children.apply(e,_r(hn("calendar.weeks").map(function(i){return Yt("th","cell").child(i)})))),this.bodyEl)),this.selectChange=function(){}}return Te(t,[{key:"setValue",value:function(r){this.value=r,this.cvalue=new Date(r),this.buildAll()}},{key:"prev",value:function(){op(this.value,-1),this.buildAll()}},{key:"next",value:function(){op(this.value,1),this.buildAll()}},{key:"buildAll",value:function(){this.buildHeaderLeft(),this.buildBody()}},{key:"buildHeaderLeft",value:function(){var r=this.value;this.headerLeftEl.html("".concat(hn("calendar.months")[r.getMonth()]," ").concat(r.getFullYear()))}},{key:"buildBody",value:function(){var r,e=this,n=this.value,i=this.cvalue,c=this.bodyEl,f=function(l,u,y){for(var p=new Date(l,u,1,23,59,59),m=[[],[],[],[],[],[]],b=0;b<6;b+=1)for(var v=0;v<7;v+=1){var _=xb(p,7*b+v),s=_.getMonth()!==u,o=_.getMonth()===y.getMonth()&&_.getDate()===y.getDate();m[b][v]={d:_,disabled:s,active:o}}return m}(n.getFullYear(),n.getMonth(),i).map(function(l){var u,y=l.map(function(p){var m="cell";return p.disabled&&(m+=" disabled"),p.active&&(m+=" active"),Yt("td","").child(Yt("div",m).on("click.stop",function(){e.selectChange(p.d)}).child(p.d.getDate().toString()))});return(u=Yt("tr","")).children.apply(u,_r(y))});(r=c.html("")).children.apply(r,_r(f))}}]),t}(),Eb=function(){function t(){Ee(this,t),this.calendar=new Sb(new Date),this.el=Yt("div","".concat(ve,"-datepicker")).child(this.calendar.el).hide()}return Te(t,[{key:"setValue",value:function(r){var e=this.calendar;return typeof r=="string"?/^\d{4}-\d{1,2}-\d{1,2}$/.test(r)&&e.setValue(new Date(r.replace(new RegExp("-","g"),"/"))):r instanceof Date&&e.setValue(r),this}},{key:"change",value:function(r){var e=this;this.calendar.selectChange=function(n){r(n),e.hide()}}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}]),t}();function tu(){var t=this.inputText;if(!/^\s*$/.test(t)){var r=this.textlineEl,e=this.textEl,n=this.areaOffset,i=t.split(`
|
||
`),c=Math.max.apply(Math,_r(i.map(function(m){return m.length}))),f=r.offset().width/t.length,l=(c+1)*f+5,u=this.viewFn().width-n.left-f,y=i.length;if(l>n.width){var p=l;l>u&&(p=u,y+=parseInt(l/u,10),y+=l%u>0?1:0),e.css("width","".concat(p,"px"))}(y*=this.rowHeight)>n.height&&e.css("height","".concat(y,"px"))}}function Tb(t,r){var e=t.target,n=e.value,i=e.selectionEnd,c="".concat(n.slice(0,i)).concat(r).concat(n.slice(i));e.value=c,e.setSelectionRange(i+1,i+1),this.inputText=c,this.textlineEl.html(c),tu.call(this)}function Ob(t){var r=t.keyCode,e=t.altKey;r!==13&&r!==9&&t.stopPropagation(),r===13&&e&&(Tb.call(this,t,`
|
||
`),t.stopPropagation()),r!==13||e||t.preventDefault()}function Rb(t){var r=t.target.value,e=this.suggest,n=this.textlineEl,i=this.validator,c=this.cell;if(c!==null)if("editable"in c&&c.editable===!0||c.editable===void 0){if(this.inputText=r,i)i.type==="list"?e.search(r):e.hide();else{var f=r.lastIndexOf("=");f!==-1?e.search(r.substring(f+1)):e.hide()}n.html(r),tu.call(this),this.change("input",r)}else t.target.value=c.text;else{if(this.inputText=r,i)i.type==="list"?e.search(r):e.hide();else{var l=r.lastIndexOf("=");l!==-1?e.search(r.substring(l+1)):e.hide()}n.html(r),tu.call(this),this.change("input",r)}}function Cb(t){var r=this.textEl.el;setTimeout(function(){r.focus(),r.setSelectionRange(t,t)},0)}function ap(t,r){var e=this.textEl,n=this.textlineEl;e.el.blur(),e.val(t),n.html(t),Cb.call(this,r)}function Ab(t){var r=this.inputText,e=this.validator,n=0;if(e&&e.type==="list")this.inputText=t,n=this.inputText.length;else{var i=r.lastIndexOf("="),c=r.substring(0,i+1),f=r.substring(i+1);f=f.indexOf(")")!==-1?f.substring(f.indexOf(")")):"",this.inputText="".concat(c+t.key,"("),n=this.inputText.length,this.inputText+=")".concat(f)}ap.call(this,this.inputText,n)}function Pb(){this.suggest.setItems(this.formulas)}var Mb=function(){function t(r,e,n){var i=this;Ee(this,t),this.viewFn=e,this.rowHeight=n,this.formulas=r,this.suggest=new np(r,function(c){Ab.call(i,c)}),this.datepicker=new Eb,this.datepicker.change(function(c){i.setText(function(f){var l=f.getMonth()+1,u=f.getDate();return l<10&&(l="0".concat(l)),u<10&&(u="0".concat(u)),"".concat(f.getFullYear(),"-").concat(l,"-").concat(u)}(c)),i.clear()}),this.areaEl=Yt("div","".concat(ve,"-editor-area")).children(this.textEl=Yt("textarea","").on("input",function(c){return Rb.call(i,c)}).on("paste.stop",function(){}).on("keydown",function(c){return Ob.call(i,c)}),this.textlineEl=Yt("div","textline"),this.suggest.el,this.datepicker.el).on("mousemove.stop",function(){}).on("mousedown.stop",function(){}),this.el=Yt("div","".concat(ve,"-editor")).child(this.areaEl).hide(),this.suggest.bindInputEvents(this.textEl),this.areaOffset=null,this.freeze={w:0,h:0},this.cell=null,this.inputText="",this.change=function(){}}return Te(t,[{key:"setFreezeLengths",value:function(r,e){this.freeze.w=r,this.freeze.h=e}},{key:"clear",value:function(){this.inputText!==""&&this.change("finished",this.inputText),this.cell=null,this.areaOffset=null,this.inputText="",this.el.hide(),this.textEl.val(""),this.textlineEl.html(""),Pb.call(this),this.datepicker.hide()}},{key:"setOffset",value:function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",n=this.textEl,i=this.areaEl,c=this.suggest,f=this.freeze,l=this.el;if(r){this.areaOffset=r;var u=r.left,y=r.top,p=r.width,m=r.height,b=r.l,v=r.t,_={left:0,top:0};f.w>b&&f.h>v||(f.w<b&&f.h<v?(_.left=f.w,_.top=f.h):f.w>b?_.top=f.h:f.h>v&&(_.left=f.w)),l.offset(_),i.offset({left:u-_.left-.8,top:y-_.top-.8}),n.offset({width:p-9+.8,height:m-3+.8});var s={left:0};s[e]=m,c.setOffset(s),c.hide()}}},{key:"setCell",value:function(r,e){var n=this.el,i=this.datepicker,c=this.suggest;n.show(),this.cell=r;var f=r&&r.text||"";if(this.setText(f),this.validator=e,e){var l=e.type;l==="date"&&(i.show(),/^\s*$/.test(f)||i.setValue(f)),l==="list"&&(c.setItems(e.values()),c.search(""))}}},{key:"setText",value:function(r){this.inputText=r,ap.call(this,r,r.length),tu.call(this)}}]),t}();function jb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Ca=function(t){lr(e,t);var r=jb(e);function e(n){var i,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Ee(this,e),(i=r.call(this,"div","".concat(ve,"-button ").concat(c))).child(hn("button.".concat(n))),i}return Te(e)}(Zc);function eu(){return window.devicePixelRatio||1}function $f(){return eu()-.5}function sr(t){return parseInt(t*eu(),10)}function ps(t){var r=sr(t);return r>0?r-.5:.5}var Ib=function(){function t(r,e,n,i){var c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;Ee(this,t),this.x=r,this.y=e,this.width=n,this.height=i,this.padding=c,this.bgcolor="#ffffff",this.borderTop=null,this.borderRight=null,this.borderBottom=null,this.borderLeft=null}return Te(t,[{key:"setBorders",value:function(r){var e=r.top,n=r.bottom,i=r.left,c=r.right;e&&(this.borderTop=e),c&&(this.borderRight=c),n&&(this.borderBottom=n),i&&(this.borderLeft=i)}},{key:"innerWidth",value:function(){return this.width-2*this.padding-2}},{key:"innerHeight",value:function(){return this.height-2*this.padding-2}},{key:"textx",value:function(r){var e=this.width,n=this.padding,i=this.x;return r==="left"?i+=n:r==="center"?i+=e/2:r==="right"&&(i+=e-n),i}},{key:"texty",value:function(r,e){var n=this.height,i=this.padding,c=this.y;return r==="top"?c+=i:r==="middle"?c+=n/2-e/2:r==="bottom"&&(c+=n-i-e),c}},{key:"topxys",value:function(){var r=this.x,e=this.y;return[[r,e],[r+this.width,e]]}},{key:"rightxys",value:function(){var r=this.x,e=this.y,n=this.width;return[[r+n,e],[r+n,e+this.height]]}},{key:"bottomxys",value:function(){var r=this.x,e=this.y,n=this.width,i=this.height;return[[r,e+i],[r+n,e+i]]}},{key:"leftxys",value:function(){var r=this.x,e=this.y;return[[r,e],[r,e+this.height]]}}]),t}();function sp(t,r,e,n,i,c,f){var l={x:0,y:0};t==="underline"?l.y=i==="bottom"?0:i==="top"?-(c+2):-c/2:t==="strike"&&(i==="bottom"?l.y=c/2:i==="top"&&(l.y=-(c/2+2))),n==="center"?l.x=f/2:n==="right"&&(l.x=f),this.line([r-l.x,e-l.y],[r-l.x+f,e-l.y])}var cp=function(){function t(r,e,n){Ee(this,t),this.el=r,this.ctx=r.getContext("2d"),this.resize(e,n),this.ctx.scale(eu(),eu())}return Te(t,[{key:"resize",value:function(r,e){this.el.style.width="".concat(r,"px"),this.el.style.height="".concat(e,"px"),this.el.width=sr(r),this.el.height=sr(e)}},{key:"clear",value:function(){var r=this.el,e=r.width,n=r.height;return this.ctx.clearRect(0,0,e,n),this}},{key:"attr",value:function(r){return Object.assign(this.ctx,r),this}},{key:"save",value:function(){return this.ctx.save(),this.ctx.beginPath(),this}},{key:"restore",value:function(){return this.ctx.restore(),this}},{key:"beginPath",value:function(){return this.ctx.beginPath(),this}},{key:"translate",value:function(r,e){return this.ctx.translate(sr(r),sr(e)),this}},{key:"scale",value:function(r,e){return this.ctx.scale(r,e),this}},{key:"clearRect",value:function(r,e,n,i){return this.ctx.clearRect(r,e,n,i),this}},{key:"fillRect",value:function(r,e,n,i){return this.ctx.fillRect(sr(r)-.5,sr(e)-.5,sr(n),sr(i)),this}},{key:"fillText",value:function(r,e,n){return this.ctx.fillText(r,sr(e),sr(n)),this}},{key:"text",value:function(r,e){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],f=this.ctx,l=i.align,u=i.valign,y=i.font,p=i.color,m=i.strike,b=i.underline,v=e.textx(l);f.save(),f.beginPath(),this.attr({textAlign:l,textBaseline:u,font:"".concat(y.italic?"italic":""," ").concat(y.bold?"bold":""," ").concat(sr(y.size),"px ").concat(y.name),fillStyle:p,strokeStyle:p});var _="".concat(r).split(`
|
||
`),s=e.innerWidth(),o=[];_.forEach(function(d){var g=f.measureText(d).width;if(c&&g>sr(s)){for(var w={w:0,len:0,start:0},k=0;k<d.length;k+=1)w.w>=sr(s)&&(o.push(d.substr(w.start,w.len)),w={w:0,len:0,start:k}),w.len+=1,w.w+=f.measureText(d[k]).width+1;w.len>0&&o.push(d.substr(w.start,w.len))}else o.push(d)});var h=(o.length-1)*(y.size+2),a=e.texty(u,h);return o.forEach(function(d){var g=f.measureText(d).width;n.fillText(d,v,a),m&&sp.call(n,"strike",v,a,l,u,y.size,g),b&&sp.call(n,"underline",v,a,l,u,y.size,g),a+=y.size+2}),f.restore(),this}},{key:"border",value:function(r,e){var n=this.ctx;return n.lineWidth=$f,n.strokeStyle=e,r==="medium"?n.lineWidth=sr(2)-.5:r==="thick"?n.lineWidth=sr(3):r==="dashed"?n.setLineDash([sr(3),sr(2)]):r==="dotted"?n.setLineDash([sr(1),sr(1)]):r==="double"&&n.setLineDash([sr(2),0]),this}},{key:"line",value:function(){var r=this.ctx;if(arguments.length>1){r.beginPath();var e=Ye(arguments.length<=0?void 0:arguments[0],2),n=e[0],i=e[1];r.moveTo(ps(n),ps(i));for(var c=1;c<arguments.length;c+=1){var f=Ye(c<0||arguments.length<=c?void 0:arguments[c],2),l=f[0],u=f[1];r.lineTo(ps(l),ps(u))}r.stroke()}return this}},{key:"strokeBorders",value:function(r){var e=this.ctx;e.save();var n=r.borderTop,i=r.borderRight,c=r.borderBottom,f=r.borderLeft;n&&(this.border.apply(this,_r(n)),this.line.apply(this,_r(r.topxys()))),i&&(this.border.apply(this,_r(i)),this.line.apply(this,_r(r.rightxys()))),c&&(this.border.apply(this,_r(c)),this.line.apply(this,_r(r.bottomxys()))),f&&(this.border.apply(this,_r(f)),this.line.apply(this,_r(r.leftxys()))),e.restore()}},{key:"dropdown",value:function(r){var e=this.ctx,n=r.x,i=r.y,c=n+r.width-15,f=i+r.height-15;e.save(),e.beginPath(),e.moveTo(sr(c),sr(f)),e.lineTo(sr(c+8),sr(f)),e.lineTo(sr(c+4),sr(f+6)),e.closePath(),e.fillStyle="rgba(0, 0, 0, .45)",e.fill(),e.restore()}},{key:"error",value:function(r){var e=this.ctx,n=r.x,i=r.y,c=n+r.width-1;e.save(),e.beginPath(),e.moveTo(sr(c-8),sr(i-1)),e.lineTo(sr(c),sr(i-1)),e.lineTo(sr(c),sr(i+8)),e.closePath(),e.fillStyle="rgba(255, 0, 0, .65)",e.fill(),e.restore()}},{key:"frozen",value:function(r){var e=this.ctx,n=r.x,i=r.y,c=n+r.width-1;e.save(),e.beginPath(),e.moveTo(sr(c-8),sr(i-1)),e.lineTo(sr(c),sr(i-1)),e.lineTo(sr(c),sr(i+8)),e.closePath(),e.fillStyle="rgba(0, 255, 0, .85)",e.fill(),e.restore()}},{key:"rect",value:function(r,e){var n=this.ctx,i=r.x,c=r.y,f=r.width,l=r.height,u=r.bgcolor;n.save(),n.beginPath(),n.fillStyle=u||"#fff",n.rect(ps(i+1),ps(c+1),sr(f-2),sr(l-2)),n.clip(),n.fill(),e(),n.restore()}}]),t}(),up=[{key:"Arial",title:"Arial"},{key:"Helvetica",title:"Helvetica"},{key:"Source Sans Pro",title:"Source Sans Pro"},{key:"Comic Sans MS",title:"Comic Sans MS"},{key:"Courier New",title:"Courier New"},{key:"Verdana",title:"Verdana"},{key:"Lato",title:"Lato"}],qf=[{pt:7.5,px:10},{pt:8,px:11},{pt:9,px:12},{pt:10,px:13},{pt:10.5,px:14},{pt:11,px:15},{pt:12,px:16},{pt:14,px:18.7},{pt:15,px:20},{pt:16,px:21.3},{pt:18,px:24},{pt:22,px:29.3},{pt:24,px:32},{pt:26,px:34.7},{pt:36,px:48},{pt:42,px:56}],Db=function(t,r){var e=Ye(t,1)[0],n=t;if(e==='"')return t.substring(1);var i=1;if(e==="-"&&(n=t.substring(1),i=-1),n[0]>="0"&&n[0]<="9")return i*Number(n);var c=Ye(na(n),2);return i*r(c[0],c[1])};const Nb={render:function t(r,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];if(r[0]==="="){var c=function(f){for(var l=[],u=[],y=[],p=0,m="",b=1,v="",_=0;_<f.length;_+=1){var s=f.charAt(_);if(s!==" "){if(s>="a"&&s<="z")y.push(s.toUpperCase());else if(s>="0"&&s<="9"||s>="A"&&s<="Z"||s===".")y.push(s);else if(s==='"'){for(_+=1;f.charAt(_)!=='"';)y.push(f.charAt(_)),_+=1;u.push('"'.concat(y.join(""))),y=[]}else if(s==="-"&&/[+\-*/,(]/.test(v))y.push(s);else{if(s!=="("&&y.length>0&&u.push(y.join("")),s===")"){var o=l.pop();if(p===2)try{for(var h=Ye(na(u.pop()),2),a=h[0],d=h[1],g=Ye(na(u.pop()),2),w=g[0],k=g[1],S=0,A=w;A<=a;A+=1)for(var j=k;j<=d;j+=1)u.push(Io(A,j)),S+=1;u.push([o,S])}catch(T){}else if(p===1||p===3)p===3&&u.push(m),u.push([o,b]),b=1;else for(;o!=="("&&(u.push(o),!(l.length<=0));)o=l.pop();p=0}else if(s==="="||s===">"||s==="<"){var D=f.charAt(_+1);m=s,D!=="="&&D!=="-"||(m+=D,_+=1),p=3}else if(s===":")p=2;else if(s===",")p===3&&u.push(m),p=1,b+=1;else if(s==="("&&y.length>0)l.push(y.join(""));else{if(l.length>0&&(s==="+"||s==="-")){var N=l[l.length-1];if(N!=="("&&u.push(l.pop()),N==="*"||N==="/")for(;l.length>0&&(N=l[l.length-1])!=="(";)u.push(l.pop())}else if(l.length>0){var F=l[l.length-1];F!=="*"&&F!=="/"||u.push(l.pop())}l.push(s)}y=[]}v=s}}for(y.length>0&&u.push(y.join(""));l.length>0;)u.push(l.pop());return u}(r.substring(1));return c.length<=0?r:function(f,l,u,y){for(var p=[],m=0;m<f.length;m+=1){var b=f[m],v=b[0];if(b==="+"){var _=p.pop();p.push(Ra("+",p.pop(),_))}else if(b==="-")if(p.length===1){var s=p.pop();p.push(Ra("*",s,-1))}else{var o=p.pop();p.push(Ra("-",p.pop(),o))}else if(b==="*")p.push(Ra("*",p.pop(),p.pop()));else if(b==="/"){var h=p.pop();p.push(Ra("/",p.pop(),h))}else if(v==="="||v===">"||v==="<"){var a=p.pop();Number.isNaN(a)||(a=Number(a));var d=p.pop();Number.isNaN(d)||(d=Number(d));var g=!1;v==="="?g=d===a:b===">"?g=d>a:b===">="?g=d>=a:b==="<"?g=d<a:b==="<="&&(g=d<=a),p.push(g)}else if(Array.isArray(b)){for(var w=Ye(b,2),k=w[0],S=w[1],A=[],j=0;j<S;j+=1)A.push(p.pop());p.push(l[k].render(A.reverse()))}else{if(y.includes(b))return 0;(v>="a"&&v<="z"||v>="A"&&v<="Z")&&y.push(b),p.push(Db(b,u)),y.pop()}}return p[0]}(c,e,function(f,l){return t(n(f,l),e,n,i)},i)}return r}};var Gf=[{key:"SUM",title:kr("formula.sum"),render:function(t){return t.reduce(function(r,e){return Ra("+",r,e)},0)}},{key:"AVERAGE",title:kr("formula.average"),render:function(t){return t.reduce(function(r,e){return Number(r)+Number(e)},0)/t.length}},{key:"MAX",title:kr("formula.max"),render:function(t){return Math.max.apply(Math,_r(t.map(function(r){return Number(r)})))}},{key:"MIN",title:kr("formula.min"),render:function(t){return Math.min.apply(Math,_r(t.map(function(r){return Number(r)})))}},{key:"IF",title:kr("formula._if"),render:function(t){var r=Ye(t,3),e=r[0],n=r[1],i=r[2];return e?n:i}},{key:"AND",title:kr("formula.and"),render:function(t){return t.every(function(r){return r})}},{key:"OR",title:kr("formula.or"),render:function(t){return t.some(function(r){return r})}},{key:"CONCAT",title:kr("formula.concat"),render:function(t){return t.join("")}}],Fb=Gf,fp={};Gf.forEach(function(t){fp[t.key]=t});var ms=function(t){return t},ru=function(t){if(/^(-?\d*.?\d*)$/.test(t)){var r=Md(Number(t).toFixed(2).toString().split("\\.")),e=r[0],n=r.slice(1);return[e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")].concat(_r(n))}return t},Ys=[{key:"normal",title:kr("format.normal"),type:"string",render:ms},{key:"text",title:kr("format.text"),type:"string",render:ms},{key:"number",title:kr("format.number"),type:"number",label:"1,000.12",render:ru},{key:"percent",title:kr("format.percent"),type:"number",label:"10.12%",render:function(t){return"".concat(t,"%")}},{key:"rmb",title:kr("format.rmb"),type:"number",label:"¥10.00",render:function(t){return"¥".concat(ru(t))}},{key:"usd",title:kr("format.usd"),type:"number",label:"$10.00",render:function(t){return"$".concat(ru(t))}},{key:"eur",title:kr("format.eur"),type:"number",label:"€10.00",render:function(t){return"€".concat(ru(t))}},{key:"date",title:kr("format.date"),type:"date",label:"26/09/2008",render:ms},{key:"time",title:kr("format.time"),type:"date",label:"15:59:00",render:ms},{key:"datetime",title:kr("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:ms},{key:"duration",title:kr("format.duration"),type:"date",label:"24:01:00",render:ms}],lp={};Ys.forEach(function(t){lp[t.key]=t});var Lb=5,Bb={fillStyle:"#f4f5f8"},zb={fillStyle:"#fff",lineWidth:$f,strokeStyle:"#e6e6e6"};function hp(t,r,e){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=t.cellRect(r,e),c=i.left,f=i.top,l=i.width,u=i.height;return new Ib(c,f+n,l,u,Lb)}function nu(t,r,e,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,c=r.sortedRowMap,f=r.rows,l=r.cols;if(!f.isHide(e)&&!l.isHide(n)){var u=e;c.has(e)&&(u=c.get(e));var y=r.getCell(u,n);if(y!==null){var p=!1;"editable"in y&&y.editable===!1&&(p=!0);var m=r.getCellStyleOrDefault(u,n),b=hp(r,e,n,i);b.bgcolor=m.bgcolor,m.border!==void 0&&(b.setBorders(m.border),t.strokeBorders(b)),t.rect(b,function(){var v="";v=r.settings.evalPaused?y.text||"":Nb.render(y.text||"",fp,function(s,o){return r.getCellTextOrDefault(o,s)}),m.format&&(v=lp[m.format].render(v));var _=Object.assign({},m.font);_.size=function(s){for(var o=0;o<qf.length;o+=1){var h=qf[o];if(h.pt===s)return h.px}return s}(_.size),t.text(v,b,{align:m.align,valign:m.valign,font:_,color:m.color,strike:m.strike,underline:m.underline},m.textwrap),r.validations.getError(e,n)&&t.error(b),p&&t.frozen(b)})}}}function Ub(t){var r=this.data,e=this.draw;if(t){var n=r.autoFilter;if(!n.active())return;var i=n.hrange();t.intersects(i)&&i.each(function(c,f){var l=hp(r,c,f);e.dropdown(l)})}}function iu(t,r,e,n,i){var c=this.draw,f=this.data;c.save(),c.translate(r,e).translate(n,i);var l=f.exceptRowSet,u=f.exceptRowTotalHeight(t.sri,t.eri);c.save(),c.translate(0,-u),t.each(function(p,m){nu(c,f,p,m)},function(p){return function(m){var b=l.has(m);if(b){var v=f.rows.getHeight(m);c.translate(0,-v)}return!b}(p)}),c.restore();var y=new Set;c.save(),c.translate(0,-u),f.eachMergesInView(t,function(p){var m=p.sri,b=p.sci,v=p.eri;if(l.has(m)){if(!y.has(m)){y.add(m);var _=f.rows.sumHeight(m,v+1);c.translate(0,-_)}}else nu(c,f,m,b)}),c.restore(),Ub.call(this,t),c.restore()}function dp(t,r,e,n){var i=this.draw;i.save(),i.attr({fillStyle:"rgba(75, 137, 255, 0.08)"}).fillRect(t,r,e,n),i.restore()}function ou(t,r,e,n,i,c){var f=this,l=this.draw,u=this.data,y=r.h,p=r.w,m=c+n,b=i+e;l.save(),l.attr(Bb),t!=="all"&&t!=="left"||l.fillRect(0,m,e,y),t!=="all"&&t!=="top"||l.fillRect(b,0,p,n);var v=u.selector.range,_=v.sri,s=v.sci,o=v.eri,h=v.eci;l.attr({textAlign:"center",textBaseline:"middle",font:"500 ".concat(sr(12),"px Source Sans Pro"),fillStyle:"#585757",lineWidth:$f(),strokeStyle:"#e6e6e6"}),t!=="all"&&t!=="left"||(u.rowEach(r.sri,r.eri,function(a,d,g){var w=m+d,k=a;l.line([0,w],[e,w]),_<=k&&k<o+1&&dp.call(f,0,w,e,g),l.fillText(k+1,e/2,w+g/2),a>0&&u.rows.isHide(a-1)&&(l.save(),l.attr({strokeStyle:"#c6c6c6"}),l.line([5,w+5],[e-5,w+5]),l.restore())}),l.line([0,y+m],[e,y+m]),l.line([e,m],[e,y+m])),t!=="all"&&t!=="top"||(u.colEach(r.sci,r.eci,function(a,d,g){var w=b+d,k=a;l.line([w,0],[w,n]),s<=k&&k<h+1&&dp.call(f,w,0,g,n),l.fillText(jd(k),w+g/2,n/2),a>0&&u.cols.isHide(a-1)&&(l.save(),l.attr({strokeStyle:"#c6c6c6"}),l.line([w+5,5],[w+5,n-5]),l.restore())}),l.line([p+b,0],[p+b,n]),l.line([0,n],[p+b,n])),l.restore()}function Hb(t,r){var e=this.draw;e.save(),e.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,t,r),e.restore()}function au(t,r,e,n,i){var c=t.sri,f=t.sci,l=t.eri,u=t.eci,y=t.w,p=t.h,m=this.draw,b=this.data,v=b.settings;m.save(),m.attr(zb).translate(r+n,e+i),v.showGrid&&(b.rowEach(c,l,function(_,s,o){_!==c&&m.line([0,s],[y,s]),_===l&&m.line([0,s+o],[y,s+o])}),b.colEach(f,u,function(_,s,o){_!==f&&m.line([s,0],[s,p]),_===u&&m.line([s+o,0],[s+o,p])})),m.restore()}function Wb(t,r,e,n){var i=this.draw,c=this.data,f=c.viewWidth()-t,l=c.viewHeight()-r;i.save().translate(t,r).attr({strokeStyle:"rgba(75, 137, 255, .6)"}),i.line([0,n],[f,n]),i.line([e,0],[e,l]),i.restore()}var Vb=function(){function t(r,e){Ee(this,t),this.el=r,this.draw=new cp(r,e.viewWidth(),e.viewHeight()),this.data=e}return Te(t,[{key:"resetData",value:function(r){this.data=r,this.render()}},{key:"render",value:function(){var r=this.data,e=r.rows,n=r.cols.indexWidth,i=e.height;this.draw.resize(r.viewWidth(),r.viewHeight()),this.clear();var c=r.viewRange(),f=r.freezeTotalWidth(),l=r.freezeTotalHeight(),u=r.scroll,y=u.x,p=u.y;au.call(this,c,n,i,f,l),iu.call(this,c,n,i,-y,-p),ou.call(this,"all",c,n,i,f,l),Hb.call(this,n,i);var m=Ye(r.freeze,2),b=m[0],v=m[1];if(b>0||v>0){if(b>0){var _=c.clone();_.sri=0,_.eri=b-1,_.h=l,au.call(this,_,n,i,f,0),iu.call(this,_,n,i,-y,0),ou.call(this,"top",_,n,i,f,0)}if(v>0){var s=c.clone();s.sci=0,s.eci=v-1,s.w=f,au.call(this,s,n,i,0,l),ou.call(this,"left",s,n,i,0,l),iu.call(this,s,n,i,0,-p)}var o=r.freezeViewRange();au.call(this,o,n,i,0,0),ou.call(this,"all",o,n,i,0,0),iu.call(this,o,n,i,0,0),Wb.call(this,n,i,f,l)}}},{key:"clear",value:function(){this.draw.clear()}}]),t}(),su=[["A3",11.69,16.54],["A4",8.27,11.69],["A5",5.83,8.27],["B4",9.84,13.9],["B5",6.93,9.84]],Yf=["landscape","portrait"];function cu(t){return parseInt(96*t,10)}function pp(t){t==="cancel"?this.el.hide():this.toPrint()}function $b(t){var r=this.paper,e=t.target.value,n=su[e];r.w=cu(n[1]),r.h=cu(n[2]),this.preview()}function qb(t){var r=this.paper,e=t.target.value,n=Yf[e];r.orientation=n,this.preview()}var Gb=function(){function t(r){var e,n;Ee(this,t),this.paper={w:cu(su[0][1]),h:cu(su[0][2]),padding:50,orientation:Yf[0],get width(){return this.orientation==="landscape"?this.h:this.w},get height(){return this.orientation==="landscape"?this.w:this.h}},this.data=r,this.el=Yt("div","".concat(ve,"-print")).children(Yt("div","".concat(ve,"-print-bar")).children(Yt("div","-title").child("Print settings"),Yt("div","-right").children(Yt("div","".concat(ve,"-buttons")).children(new Ca("cancel").on("click",pp.bind(this,"cancel")),new Ca("next","primary").on("click",pp.bind(this,"next"))))),Yt("div","".concat(ve,"-print-content")).children(this.contentEl=Yt("div","-content"),Yt("div","-sider").child(Yt("form","").children(Yt("fieldset","").children(Yt("label","").child("".concat(hn("print.size"))),(e=Yt("select","")).children.apply(e,_r(su.map(function(i,c){return Yt("option","").attr("value",c).child("".concat(i[0]," ( ").concat(i[1],"''x").concat(i[2],"'' )"))}))).on("change",$b.bind(this))),Yt("fieldset","").children(Yt("label","").child("".concat(hn("print.orientation"))),(n=Yt("select","")).children.apply(n,_r(Yf.map(function(i,c){return Yt("option","").attr("value",c).child("".concat(hn("print.orientations")[c]))}))).on("change",qb.bind(this))))))).hide()}return Te(t,[{key:"resetData",value:function(r){this.data=r}},{key:"preview",value:function(){var r=this,e=this.data,n=this.paper,i=n.width,c=n.height,f=n.padding,l=i-2*f,u=c-2*f,y=e.contentRange(),p=parseInt(y.h/u,10)+1,m=l/y.w,b=f,v=f;m>1&&(b+=(l-y.w)/2);var _=0,s=0;this.contentEl.html(""),this.canvases=[];for(var o={sri:0,sci:0,eri:0,eci:0},h=function(){var d=0,g=0,w=Yt("div","".concat(ve,"-canvas-card")),k=Yt("canvas","".concat(ve,"-canvas"));r.canvases.push(k.el);var S=new cp(k.el,i,c);for(S.save(),S.translate(b,v),m<1&&S.scale(m,m);_<=y.eri;_+=1){var A=e.rows.getHeight(_);if(!((d+=A)<u)){g=-(d-A);break}for(var j=0;j<=y.eci;j+=1)nu(S,e,_,j,s),o.eci=j}o.eri=_,S.restore(),S.save(),S.translate(b,v),m<1&&S.scale(m,m);var D=s;e.eachMergesInView(o,function(N){var F=N.sri,T=N.sci;nu(S,e,F,T,D)}),S.restore(),o.sri=o.eri,o.sci=o.eci,s+=g,r.contentEl.child(Yt("div","".concat(ve,"-canvas-card-wraper")).child(w.child(k)))},a=0;a<p;a+=1)h();this.el.show()}},{key:"toPrint",value:function(){this.el.hide();var r=this.paper,e=Yt("iframe","").hide().el;window.document.body.appendChild(e);var n=e.contentWindow,i=n.document,c=document.createElement("style");c.innerHTML=`
|
||
@page { size: `.concat(r.width,"px ").concat(r.height,`px; };
|
||
canvas {
|
||
page-break-before: auto;
|
||
page-break-after: always;
|
||
image-rendering: pixelated;
|
||
};
|
||
`),i.head.appendChild(c),this.canvases.forEach(function(f){var l=f.cloneNode(!1);l.getContext("2d").drawImage(f,0,0),i.body.appendChild(l)}),n.print()}}]),t}(),Yb=[{key:"copy",title:kr("contextmenu.copy"),label:"Ctrl+C"},{key:"cut",title:kr("contextmenu.cut"),label:"Ctrl+X"},{key:"paste",title:kr("contextmenu.paste"),label:"Ctrl+V"},{key:"paste-value",title:kr("contextmenu.pasteValue"),label:"Ctrl+Shift+V"},{key:"paste-format",title:kr("contextmenu.pasteFormat"),label:"Ctrl+Alt+V"},{key:"divider"},{key:"insert-row",title:kr("contextmenu.insertRow")},{key:"insert-column",title:kr("contextmenu.insertColumn")},{key:"divider"},{key:"delete-row",title:kr("contextmenu.deleteRow")},{key:"delete-column",title:kr("contextmenu.deleteColumn")},{key:"delete-cell-text",title:kr("contextmenu.deleteCellText")},{key:"hide",title:kr("contextmenu.hide")},{key:"divider"},{key:"validation",title:kr("contextmenu.validation")},{key:"divider"},{key:"cell-printable",title:kr("contextmenu.cellprintable")},{key:"cell-non-printable",title:kr("contextmenu.cellnonprintable")},{key:"divider"},{key:"cell-editable",title:kr("contextmenu.celleditable")},{key:"cell-non-editable",title:kr("contextmenu.cellnoneditable")}];function Kb(t){var r=this;return t.key==="divider"?Yt("div","".concat(ve,"-item divider")):Yt("div","".concat(ve,"-item")).on("click",function(){r.itemClick(t.key),r.hide()}).children(t.title(),Yt("div","label").child(t.label||""))}function Xb(){var t=this;return Yb.map(function(r){return Kb.call(t,r)})}var Zb=function(){function t(r){var e,n=arguments.length>1&&arguments[1]!==void 0&&arguments[1];Ee(this,t),this.menuItems=Xb.call(this),this.el=(e=Yt("div","".concat(ve,"-contextmenu"))).children.apply(e,_r(this.menuItems)).hide(),this.viewFn=r,this.itemClick=function(){},this.isHide=n,this.setMode("range")}return Te(t,[{key:"setMode",value:function(r){var e=this.menuItems[12];r==="row-col"?e.show():e.hide()}},{key:"hide",value:function(){var r=this.el;r.hide(),ds(r)}},{key:"setPosition",value:function(r,e){if(!this.isHide){var n=this.el,i=n.show().offset().width,c=this.viewFn(),f=c.height/2,l=r;c.width-r<=i&&(l-=i),n.css("left","".concat(l,"px")),e>f?n.css("bottom","".concat(c.height-e,"px")).css("max-height","".concat(e,"px")).css("top","auto"):n.css("top","".concat(e,"px")).css("max-height","".concat(c.height-e,"px")).css("bottom","auto"),Gs(n)}}}]),t}();function Ks(){return Ks=typeof Reflect!="undefined"&&Reflect.get?Reflect.get.bind():function(t,r,e){var n=function(c,f){for(;!Object.prototype.hasOwnProperty.call(c,f)&&(c=xe(c))!==null;);return c}(t,r);if(n){var i=Object.getOwnPropertyDescriptor(n,r);return i.get?i.get.call(arguments.length<3?t:e):i.value}},Ks.apply(this,arguments)}var Kf=function(){function t(r,e,n){Ee(this,t),this.tip=hn("toolbar.".concat(r.replace(/-[a-z]/g,function(i){return i[1].toUpperCase()}))),e&&(this.tip+=" (".concat(e,")")),this.tag=r,this.shortcut=e,this.value=n,this.el=this.element(),this.change=function(){}}return Te(t,[{key:"element",value:function(){var r=this.tip;return Yt("div","".concat(ve,"-toolbar-btn")).on("mouseenter",function(e){(function(n,i){if(!i.classList.contains("active")){var c=i.getBoundingClientRect(),f=c.left,l=c.top,u=c.width,y=c.height,p=Yt("div","".concat(ve,"-tooltip")).html(n).show();document.body.appendChild(p.el);var m=p.box();p.css("left","".concat(f+u/2-m.width/2,"px")).css("top","".concat(l+y+2,"px")),mi(i,"mouseleave",function(){document.body.contains(p.el)&&document.body.removeChild(p.el)}),mi(i,"click",function(){document.body.contains(p.el)&&document.body.removeChild(p.el)})}})(r,e.target)}).attr("data-tooltip",r)}},{key:"setState",value:function(){}}]),t}();function Jb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var vo=function(t){lr(e,t);var r=Jb(e);function e(){return Ee(this,e),r.apply(this,arguments)}return Te(e,[{key:"dropdown",value:function(){}},{key:"getValue",value:function(n){return n}},{key:"element",value:function(){var n=this,i=this.tag;return this.dd=this.dropdown(),this.dd.change=function(c){return n.change(i,n.getValue(c))},Ks(xe(e.prototype),"element",this).call(this).child(this.dd)}},{key:"setState",value:function(n){n&&(this.value=n,this.dd.setTitle(n))}}]),e}(Kf);function Qb(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var bo=function(t){lr(e,t);var r=Qb(e);function e(n,i,c,f){var l,u;Ee(this,e),(u=r.call(this,"div","".concat(ve,"-dropdown ").concat(f))).title=n,u.change=function(){},u.headerClick=function(){},typeof n=="string"?u.title=Yt("div","".concat(ve,"-dropdown-title")).child(n):c&&u.title.addClass("arrow-left"),u.contentEl=Yt("div","".concat(ve,"-dropdown-content")).css("width",i).hide();for(var y=arguments.length,p=new Array(y>4?y-4:0),m=4;m<y;m++)p[m-4]=arguments[m];return(l=u).setContentChildren.apply(l,p),u.headerEl=Yt("div","".concat(ve,"-dropdown-header")),u.headerEl.on("click",function(){u.contentEl.css("display")!=="block"?u.show():u.hide()}).children(u.title,c?Yt("div","".concat(ve,"-icon arrow-right")).child(Yt("div","".concat(ve,"-icon-img arrow-down"))):""),u.children(u.headerEl,u.contentEl),u}return Te(e,[{key:"setContentChildren",value:function(){var n;this.contentEl.html(""),arguments.length>0&&(n=this.contentEl).children.apply(n,arguments)}},{key:"setTitle",value:function(n){this.title.html(n),this.hide()}},{key:"show",value:function(){var n=this;this.contentEl.show(),this.parent().active(),Gs(this.parent(),function(){n.hide()})}},{key:"hide",value:function(){this.parent().active(!1),this.contentEl.hide(),ds(this.parent())}}]),e}(Zc);function tg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var mp=function(t){lr(e,t);var r=tg(e);function e(n,i){var c;Ee(this,e);var f=new Un("align-".concat(i)),l=n.map(function(u){return(y="align-".concat(u),Yt("div","".concat(ve,"-item")).child(new Un(y))).on("click",function(){c.setTitle(u),c.change(u)});var y});return c=r.call.apply(r,[this,f,"auto",!0,"bottom-left"].concat(_r(l)))}return Te(e,[{key:"setTitle",value:function(n){this.title.setName("align-".concat(n)),this.hide()}}]),e}(bo);function eg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var rg=function(t){lr(e,t);var r=eg(e);function e(n){return Ee(this,e),r.call(this,"align","",n)}return Te(e,[{key:"dropdown",value:function(){var n=this.value;return new mp(["left","center","right"],n)}}]),e}(vo);function ng(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var ig=function(t){lr(e,t);var r=ng(e);function e(n){return Ee(this,e),r.call(this,"valign","",n)}return Te(e,[{key:"dropdown",value:function(){var n=this.value;return new mp(["top","middle","bottom"],n)}}]),e}(vo);function og(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Do=function(t){lr(e,t);var r=og(e);function e(){return Ee(this,e),r.apply(this,arguments)}return Te(e,[{key:"element",value:function(){var n=this,i=this.tag;return Ks(xe(e.prototype),"element",this).call(this).child(new Un(i)).on("click",function(){return n.click()})}},{key:"click",value:function(){this.change(this.tag,this.toggle())}},{key:"setState",value:function(n){this.el.active(n)}},{key:"toggle",value:function(){return this.el.toggle()}},{key:"active",value:function(){return this.el.hasClass("active")}}]),e}(Kf);function ag(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var sg=function(t){lr(e,t);var r=ag(e);function e(){return Ee(this,e),r.call(this,"autofilter")}return Te(e,[{key:"setState",value:function(){}}]),e}(Do);function cg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var ug=function(t){lr(e,t);var r=cg(e);function e(){return Ee(this,e),r.call(this,"font-bold","Ctrl+B")}return Te(e)}(Do);function fg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var lg=function(t){lr(e,t);var r=fg(e);function e(){return Ee(this,e),r.call(this,"font-italic","Ctrl+I")}return Te(e)}(Do);function hg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var dg=function(t){lr(e,t);var r=hg(e);function e(){return Ee(this,e),r.call(this,"strike","Ctrl+U")}return Te(e)}(Do);function pg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var mg=function(t){lr(e,t);var r=pg(e);function e(){return Ee(this,e),r.call(this,"underline","Ctrl+U")}return Te(e)}(Do),yg=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],vg=[["#f2f2f2","#7f7f7f","#d0cecf","#d5dce4","#deeaf6","#fce5d5","#ededed","#fff2cd","#d9e2f3","#e3efd9"],["#d8d8d8","#595959","#afabac","#adb8ca","#bdd7ee","#f7ccac","#dbdbdb","#ffe59a","#b3c6e7","#c5e0b3"],["#bfbfbf","#3f3f3f","#756f6f","#8596b0","#9cc2e6","#f4b184","#c9c9c9","#fed964","#8eaada","#a7d08c"],["#a5a5a5","#262626","#3a3839","#333f4f","#2e75b5","#c45a10","#7b7b7b","#bf8e01","#2f5596","#538136"],["#7f7f7f","#0c0c0c","#171516","#222a35","#1f4e7a","#843c0a","#525252","#7e6000","#203864","#365624"]],bg=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function Xf(t){var r=this;return Yt("td","").child(Yt("div","".concat(ve,"-color-palette-cell")).on("click.stop",function(){return r.change(t)}).css("background-color",t))}var gg=Te(function t(){var r,e,n,i=this;Ee(this,t),this.el=Yt("div","".concat(ve,"-color-palette")),this.change=function(){};var c=Yt("table","").children((r=Yt("tbody","")).children.apply(r,[(e=Yt("tr","".concat(ve,"-theme-color-placeholders"))).children.apply(e,_r(yg.map(function(f){return Xf.call(i,f)})))].concat(_r(vg.map(function(f){var l;return(l=Yt("tr","".concat(ve,"-theme-colors"))).children.apply(l,_r(f.map(function(u){return Xf.call(i,u)})))})),[(n=Yt("tr","".concat(ve,"-standard-colors"))).children.apply(n,_r(bg.map(function(f){return Xf.call(i,f)})))])));this.el.child(c)});function wg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Zf=function(t){lr(e,t);var r=wg(e);function e(n,i){var c;Ee(this,e);var f=new Un(n).css("height","16px").css("border-bottom","3px solid ".concat(i)),l=new gg;return l.change=function(u){c.setTitle(u),c.change(u)},c=r.call(this,f,"auto",!1,"bottom-left",l.el)}return Te(e,[{key:"setTitle",value:function(n){this.title.css("border-color",n),this.hide()}}]),e}(bo);function _g(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var kg=[["thin",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" style="user-select: none;"></line></svg>'],["medium",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="2" style="user-select: none;"><line x1="0" y1="1.0" x2="50" y2="1.0" stroke-width="2" stroke="black" style="user-select: none;"></line></svg>'],["thick",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="3" style="user-select: none;"><line x1="0" y1="1.5" x2="50" y2="1.5" stroke-width="3" stroke="black" style="user-select: none;"></line></svg>'],["dashed",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="2" style="user-select: none;"></line></svg>'],["dotted",'<svg xmlns="http://www.w3.org/2000/svg" width="50" height="1" style="user-select: none;"><line x1="0" y1="0.5" x2="50" y2="0.5" stroke-width="1" stroke="black" stroke-dasharray="1" style="user-select: none;"></line></svg>']],xg=function(t){lr(e,t);var r=_g(e);function e(n){var i;Ee(this,e);var c=new Un("line-type"),f=0,l=kg.map(function(u,y){return Yt("div","".concat(ve,"-item state ").concat(n===u[0]?"checked":"")).on("click",function(){l[f].toggle("checked"),l[y].toggle("checked"),f=y,i.hide(),i.change(u)}).child(Yt("div","".concat(ve,"-line-type")).html(u[1]))});return i=r.call.apply(r,[this,c,"auto",!1,"bottom-left"].concat(_r(l)))}return Te(e)}(bo);function yp(){var t;return Yt("table","").child((t=Yt("tbody","")).children.apply(t,arguments))}function vp(t){var r=this;return Yt("td","").child(Yt("div","".concat(ve,"-border-palette-cell")).child(new Un("border-".concat(t))).on("click",function(){r.mode=t;var e=r.mode,n=r.style,i=r.color;r.change({mode:e,style:n,color:i})}))}var Sg=Te(function t(){var r,e,n=this;Ee(this,t),this.color="#000",this.style="thin",this.mode="all",this.change=function(){},this.ddColor=new Zf("line-color",this.color),this.ddColor.change=function(c){n.color=c},this.ddType=new xg(this.style),this.ddType.change=function(c){var f=Ye(c,1)[0];n.style=f},this.el=Yt("div","".concat(ve,"-border-palette"));var i=yp(Yt("tr","").children(Yt("td","".concat(ve,"-border-palette-left")).child(yp((r=Yt("tr","")).children.apply(r,_r(["all","inside","horizontal","vertical","outside"].map(function(c){return vp.call(n,c)}))),(e=Yt("tr","")).children.apply(e,_r(["left","top","right","bottom","none"].map(function(c){return vp.call(n,c)}))))),Yt("td","".concat(ve,"-border-palette-right")).children(Yt("div","".concat(ve,"-toolbar-btn")).child(this.ddColor.el),Yt("div","".concat(ve,"-toolbar-btn")).child(this.ddType.el))));this.el.child(i)});function Eg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Tg=function(t){lr(e,t);var r=Eg(e);function e(){var n;Ee(this,e);var i=new Un("border-all"),c=new Sg;return c.change=function(f){n.change(f),n.hide()},n=r.call(this,i,"auto",!1,"bottom-left",c.el)}return Te(e)}(bo);function Og(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Rg=function(t){lr(e,t);var r=Og(e);function e(){return Ee(this,e),r.call(this,"border")}return Te(e,[{key:"dropdown",value:function(){return new Tg}}]),e}(vo);function Cg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var uu=function(t){lr(e,t);var r=Cg(e);function e(){return Ee(this,e),r.apply(this,arguments)}return Te(e,[{key:"element",value:function(){var n=this;return Ks(xe(e.prototype),"element",this).call(this).child(new Un(this.tag)).on("click",function(){return n.change(n.tag)})}},{key:"setState",value:function(n){this.el.disabled(n)}}]),e}(Kf);function Ag(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Pg=function(t){lr(e,t);var r=Ag(e);function e(){return Ee(this,e),r.call(this,"clearformat")}return Te(e)}(uu);function Mg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var jg=function(t){lr(e,t);var r=Mg(e);function e(){return Ee(this,e),r.call(this,"paintformat")}return Te(e,[{key:"setState",value:function(){}}]),e}(Do);function Ig(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Dg=function(t){lr(e,t);var r=Ig(e);function e(n){return Ee(this,e),r.call(this,"color",void 0,n)}return Te(e,[{key:"dropdown",value:function(){var n=this.tag,i=this.value;return new Zf(n,i)}}]),e}(vo);function Ng(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Fg=function(t){lr(e,t);var r=Ng(e);function e(n){return Ee(this,e),r.call(this,"bgcolor",void 0,n)}return Te(e,[{key:"dropdown",value:function(){var n=this.tag,i=this.value;return new Zf(n,i)}}]),e}(vo);function Lg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Bg=function(t){lr(e,t);var r=Lg(e);function e(){var n;Ee(this,e);var i=qf.map(function(c){return Yt("div","".concat(ve,"-item")).on("click",function(){n.setTitle("".concat(c.pt)),n.change(c)}).child("".concat(c.pt))});return n=r.call.apply(r,[this,"10","60px",!0,"bottom-left"].concat(_r(i)))}return Te(e)}(bo);function zg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Ug=function(t){lr(e,t);var r=zg(e);function e(){return Ee(this,e),r.call(this,"font-size")}return Te(e,[{key:"getValue",value:function(n){return n.pt}},{key:"dropdown",value:function(){return new Bg}}]),e}(vo);function Hg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Wg=function(t){lr(e,t);var r=Hg(e);function e(){var n;Ee(this,e);var i=up.map(function(c){return Yt("div","".concat(ve,"-item")).on("click",function(){n.setTitle(c.title),n.change(c)}).child(c.title)});return n=r.call.apply(r,[this,up[0].title,"160px",!0,"bottom-left"].concat(_r(i)))}return Te(e)}(bo);function Vg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var $g=function(t){lr(e,t);var r=Vg(e);function e(){return Ee(this,e),r.call(this,"font-name")}return Te(e,[{key:"getValue",value:function(n){return n.key}},{key:"dropdown",value:function(){return new Wg}}]),e}(vo);function qg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Gg=function(t){lr(e,t);var r=qg(e);function e(){var n;Ee(this,e);var i=Ys.slice(0);return i.splice(2,0,{key:"divider"}),i.splice(8,0,{key:"divider"}),i=i.map(function(c){var f=Yt("div","".concat(ve,"-item"));return c.key==="divider"?f.addClass("divider"):(f.child(c.title()).on("click",function(){n.setTitle(c.title()),n.change(c)}),c.label&&f.child(Yt("div","label").html(c.label))),f}),n=r.call.apply(r,[this,"Normal","220px",!0,"bottom-left"].concat(_r(i)))}return Te(e,[{key:"setTitle",value:function(n){for(var i=0;i<Ys.length;i+=1)Ys[i].key===n&&this.title.html(Ys[i].title());this.hide()}}]),e}(bo);function Yg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Kg=function(t){lr(e,t);var r=Yg(e);function e(){return Ee(this,e),r.call(this,"format")}return Te(e,[{key:"getValue",value:function(n){return n.key}},{key:"dropdown",value:function(){return new Gg}}]),e}(vo);function Xg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Zg=function(t){lr(e,t);var r=Xg(e);function e(){var n;Ee(this,e);var i=Gf.map(function(c){return Yt("div","".concat(ve,"-item")).on("click",function(){n.hide(),n.change(c)}).child(c.key)});return n=r.call.apply(r,[this,new Un("formula"),"180px",!0,"bottom-left"].concat(_r(i)))}return Te(e)}(bo);function Jg(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var Qg=function(t){lr(e,t);var r=Jg(e);function e(){return Ee(this,e),r.call(this,"formula")}return Te(e,[{key:"getValue",value:function(n){return n.key}},{key:"dropdown",value:function(){return new Zg}}]),e}(vo);function t2(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var e2=function(t){lr(e,t);var r=t2(e);function e(){return Ee(this,e),r.call(this,"freeze")}return Te(e)}(Do);function r2(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var n2=function(t){lr(e,t);var r=r2(e);function e(){return Ee(this,e),r.call(this,"merge")}return Te(e,[{key:"setState",value:function(n,i){this.el.active(n).disabled(i)}}]),e}(Do);function i2(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var o2=function(t){lr(e,t);var r=i2(e);function e(){return Ee(this,e),r.call(this,"redo","Ctrl+Y")}return Te(e)}(uu);function a2(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var s2=function(t){lr(e,t);var r=a2(e);function e(){return Ee(this,e),r.call(this,"undo","Ctrl+Z")}return Te(e)}(uu);function c2(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var u2=function(t){lr(e,t);var r=c2(e);function e(){return Ee(this,e),r.call(this,"print","Ctrl+P")}return Te(e)}(uu);function f2(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var l2=function(t){lr(e,t);var r=f2(e);function e(){return Ee(this,e),r.call(this,"textwrap")}return Te(e)}(Do);function bp(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var h2=function(t){lr(e,t);var r=bp(e);function e(){var n;Ee(this,e);var i=new Un("ellipsis"),c=Yt("div","".concat(ve,"-toolbar-more"));return(n=r.call(this,i,"auto",!1,"bottom-right",c)).moreBtns=c,n.contentEl.css("max-width","420px"),n}return Te(e)}(bo),d2=function(t){lr(e,t);var r=bp(e);function e(){var n;return Ee(this,e),(n=r.call(this,"more")).el.hide(),n}return Te(e,[{key:"dropdown",value:function(){return new h2}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide()}}]),e}(vo);function ys(){return Yt("div","".concat(ve,"-toolbar-divider"))}function p2(){var t=this;this.btns2=[],this.items.forEach(function(r){if(Array.isArray(r))r.forEach(function(f){var l=f.el,u=l.box(),y=l.computedStyle(),p=y.marginLeft,m=y.marginRight;t.btns2.push([l,u.width+parseInt(p,10)+parseInt(m,10)])});else{var e=r.box(),n=r.computedStyle(),i=n.marginLeft,c=n.marginRight;t.btns2.push([r,e.width+parseInt(i,10)+parseInt(c,10)])}})}function gp(){var t,r,e=this.el,n=this.btns,i=this.moreEl,c=this.btns2,f=i.dd,l=f.moreBtns,u=f.contentEl;e.css("width","".concat(this.widthFn()-60,"px"));var y=e.box(),p=160,m=12,b=[],v=[];c.forEach(function(_,s){var o=Ye(_,2),h=o[0],a=o[1];p+=a,s===c.length-1||p<y.width?b.push(h):(m+=a,v.push(h))}),(t=n.html("")).children.apply(t,b),(r=l.html("")).children.apply(r,v),u.css("width","".concat(m,"px")),v.length>0?i.show():i.hide()}var m2=function(){function t(r,e){var n=this,i=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Ee(this,t),this.data=r,this.change=function(){},this.widthFn=e,this.isHide=i;var c=r.defaultStyle();this.items=[[this.undoEl=new s2,this.redoEl=new o2,new u2,this.paintformatEl=new jg,this.clearformatEl=new Pg],ys(),[this.formatEl=new Kg],ys(),[this.fontEl=new $g,this.fontSizeEl=new Ug],ys(),[this.boldEl=new ug,this.italicEl=new lg,this.underlineEl=new mg,this.strikeEl=new dg,this.textColorEl=new Dg(c.color)],ys(),[this.fillColorEl=new Fg(c.bgcolor),this.borderEl=new Rg,this.mergeEl=new n2],ys(),[this.alignEl=new rg(c.align),this.valignEl=new ig(c.valign),this.textwrapEl=new l2],ys(),[this.freezeEl=new e2,this.autofilterEl=new sg,this.formulaEl=new Qg,this.moreEl=new d2]],this.el=Yt("div","".concat(ve,"-toolbar")),this.btns=Yt("div","".concat(ve,"-toolbar-btns")),this.items.forEach(function(f){Array.isArray(f)?f.forEach(function(l){n.btns.child(l.el),l.change=function(){n.change.apply(n,arguments)}}):n.btns.child(f.el)}),this.el.child(this.btns),i?this.el.hide():(this.reset(),setTimeout(function(){p2.call(n),gp.call(n)},0),mi(window,"resize",function(){gp.call(n)}))}return Te(t,[{key:"paintformatActive",value:function(){return this.paintformatEl.active()}},{key:"paintformatToggle",value:function(){this.paintformatEl.toggle()}},{key:"trigger",value:function(r){this["".concat(r,"El")].click()}},{key:"resetData",value:function(r){this.data=r,this.reset()}},{key:"reset",value:function(){if(!this.isHide){var r=this.data,e=r.getSelectedCellStyle();this.undoEl.setState(!r.canUndo()),this.redoEl.setState(!r.canRedo()),this.mergeEl.setState(r.canUnmerge(),!r.selector.multiple()),this.autofilterEl.setState(!r.canAutofilter());var n=e.font,i=e.format;this.formatEl.setState(i),this.fontEl.setState(n.name),this.fontSizeEl.setState(n.size),this.boldEl.setState(n.bold),this.italicEl.setState(n.italic),this.underlineEl.setState(e.underline),this.strikeEl.setState(e.strike),this.textColorEl.setState(e.color),this.fillColorEl.setState(e.bgcolor),this.alignEl.setState(e.align),this.valignEl.setState(e.valign),this.textwrapEl.setState(e.textwrap),this.freezeEl.setState(r.freezeIsActive())}}}]),t}(),y2=function(){function t(r,e){var n,i=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"600px";Ee(this,t),this.title=r,this.el=Yt("div","".concat(ve,"-modal")).css("width",c).children(Yt("div","".concat(ve,"-modal-header")).children(new Un("close").on("click.stop",function(){return i.hide()}),this.title),(n=Yt("div","".concat(ve,"-modal-content"))).children.apply(n,_r(e))).hide()}return Te(t,[{key:"show",value:function(){var r=this;this.dimmer=Yt("div","".concat(ve,"-dimmer active")),document.body.appendChild(this.dimmer.el);var e=this.el.show().box(),n=e.width,i=e.height,c=document.documentElement,f=c.clientHeight,l=c.clientWidth;this.el.offset({left:(l-n)/2,top:(f-i)/3}),window.xkeydownEsc=function(u){u.keyCode===27&&r.hide()},mi(window,"keydown",window.xkeydownEsc)}},{key:"hide",value:function(){this.el.hide(),document.body.removeChild(this.dimmer.el),Jc(window,"keydown",window.xkeydownEsc),delete window.xkeydownEsc}}]),t}(),vs=function(){function t(r,e){var n=this;Ee(this,t),this.vchange=function(){},this.el=Yt("div","".concat(ve,"-form-input")),this.input=Yt("input","").css("width",r).on("input",function(i){return n.vchange(i)}).attr("placeholder",e),this.el.child(this.input)}return Te(t,[{key:"focus",value:function(){var r=this;setTimeout(function(){r.input.el.focus()},10)}},{key:"hint",value:function(r){this.input.attr("placeholder",r)}},{key:"val",value:function(r){return this.input.val(r)}}]),t}(),Jf=function(){function t(r,e,n){var i=this,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(l){return l},f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){};Ee(this,t),this.key=r,this.getTitle=c,this.vchange=function(){},this.el=Yt("div","".concat(ve,"-form-select")),this.suggest=new np(e.map(function(l){return{key:l,title:i.getTitle(l)}}),function(l){i.itemClick(l.key),f(l.key),i.vchange(l.key)},n,this.el),this.el.children(this.itemEl=Yt("div","input-text").html(this.getTitle(r)),this.suggest.el).on("click",function(){return i.show()})}return Te(t,[{key:"show",value:function(){this.suggest.search("")}},{key:"itemClick",value:function(r){this.key=r,this.itemEl.html(this.getTitle(r))}},{key:"val",value:function(r){return r!==void 0?(this.key=r,this.itemEl.html(this.getTitle(r)),this):this.key}}]),t}(),v2={number:/(^\d+$)|(^\d+(\.\d{0,4})?$)/,date:/^\d{4}-\d{1,2}-\d{1,2}$/},ia=function(){function t(r,e,n,i){var c=this;Ee(this,t),this.label="",this.rule=e,n&&(this.label=Yt("label","label").css("width","".concat(i,"px")).html(n)),this.tip=Yt("div","tip").child("tip").hide(),this.input=r,this.input.vchange=function(){return c.validate()},this.el=Yt("div","".concat(ve,"-form-field")).children(this.label,r.el,this.tip)}return Te(t,[{key:"isShow",value:function(){return this.el.css("display")!=="none"}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"val",value:function(r){return this.input.val(r)}},{key:"hint",value:function(r){this.input.hint(r)}},{key:"validate",value:function(){var r=this.input,e=this.rule,n=this.tip,i=this.el,c=r.val();return e.required&&/^\s*$/.test(c)?(n.html(hn("validation.required")),i.addClass("error"),!1):(e.type||e.pattern)&&!(e.pattern||v2[e.type]).test(c)?(n.html(hn("validation.notMatch")),i.addClass("error"),!1):(i.removeClass("error"),!0)}}]),t}();function b2(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var g2=function(t){lr(e,t);var r=b2(e);function e(){var n;Ee(this,e);var i=new ia(new Jf("cell",["cell"],"100%",function(b){return hn("dataValidation.modeType.".concat(b))}),{required:!0},"".concat(hn("dataValidation.range"),":"),100),c=new ia(new vs("120px","E3 or E3:F12"),{required:!0,pattern:/^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/}),f=new ia(new Jf("list",["list","number","date","phone","email"],"100%",function(b){return hn("dataValidation.type.".concat(b))},function(b){return n.criteriaSelected(b)}),{required:!0},"".concat(hn("dataValidation.criteria"),":"),100),l=new ia(new Jf("be",["be","nbe","eq","neq","lt","lte","gt","gte"],"160px",function(b){return hn("dataValidation.operator.".concat(b))},function(b){return n.criteriaOperatorSelected(b)}),{required:!0}).hide(),u=new ia(new vs("70px","10"),{required:!0}).hide(),y=new ia(new vs("70px","100"),{required:!0,type:"number"}).hide(),p=new ia(new vs("120px","a,b,c"),{required:!0}),m=new ia(new vs("70px","10"),{required:!0,type:"number"}).hide();return(n=r.call(this,hn("contextmenu.validation"),[Yt("div","".concat(ve,"-form-fields")).children(i.el,c.el),Yt("div","".concat(ve,"-form-fields")).children(f.el,l.el,u.el,y.el,m.el,p.el),Yt("div","".concat(ve,"-buttons")).children(new Ca("cancel").on("click",function(){return n.btnClick("cancel")}),new Ca("remove").on("click",function(){return n.btnClick("remove")}),new Ca("save","primary").on("click",function(){return n.btnClick("save")}))])).mf=i,n.rf=c,n.cf=f,n.of=l,n.minvf=u,n.maxvf=y,n.vf=m,n.svf=p,n.change=function(){},n}return Te(e,[{key:"showVf",value:function(n){var i=n==="date"?"2018-11-12":"10",c=this.vf;c.input.hint(i),c.show()}},{key:"criteriaSelected",value:function(n){var i=this.of,c=this.minvf,f=this.maxvf,l=this.vf,u=this.svf;n==="date"||n==="number"?(i.show(),c.rule.type=n,f.rule.type=n,n==="date"?(c.hint("2018-11-12"),f.hint("2019-11-12")):(c.hint("10"),f.hint("100")),c.show(),f.show(),l.hide(),u.hide()):(n==="list"?u.show():u.hide(),l.hide(),i.hide(),c.hide(),f.hide())}},{key:"criteriaOperatorSelected",value:function(n){if(n){var i=this.minvf,c=this.maxvf,f=this.vf;if(n==="be"||n==="nbe")i.show(),c.show(),f.hide();else{var l=this.cf.val();f.rule.type=l,l==="date"?f.hint("2018-11-12"):f.hint("10"),f.show(),i.hide(),c.hide()}}}},{key:"btnClick",value:function(n){if(n==="cancel")this.hide();else if(n==="remove")this.change("remove"),this.hide();else if(n==="save"){for(var i=["mf","rf","cf","of","svf","vf","minvf","maxvf"],c=0;c<i.length;c+=1){var f=this[i[c]];if(f.isShow()&&!f.validate())return}var l=this.mf.val(),u=this.rf.val(),y=this.cf.val(),p=this.of.val(),m=this.svf.val();y!=="number"&&y!=="date"||(m=p==="be"||p==="nbe"?[this.minvf.val(),this.maxvf.val()]:this.vf.val()),this.change("save",l,u,{type:y,operator:p,required:!1,value:m}),this.hide()}}},{key:"setValue",value:function(n){if(n){var i=this.mf,c=this.rf,f=this.cf,l=this.of,u=this.svf,y=this.vf,p=this.minvf,m=this.maxvf,b=n.mode,v=n.ref,_=n.validator||{type:"list"},s=_.type,o=_.operator,h=_.value;i.val(b||"cell"),c.val(v),f.val(s),l.val(o),Array.isArray(h)?(p.val(h[0]),m.val(h[1])):(u.val(h||""),y.val(h||"")),this.criteriaSelected(s),this.criteriaOperatorSelected(o)}this.show()}}]),e}(y2);function wp(t){return Yt("div","".concat(ve,"-item ").concat(t))}function _p(t){var r=this;return wp("state").child(hn("sort.".concat(t))).on("click.stop",function(){return r.itemClick(t)})}function w2(t){var r=this,e=this.filterbEl,n=this.filterValues;e.html(""),Object.keys(t).forEach(function(i,c){var f=t[i],l=n.includes(i)?"checked":"";e.child(Yt("div","".concat(ve,"-item state ").concat(l)).on("click.stop",function(){return r.filterClick(c,i)}).children(i===""?hn("filter.empty"):i,Yt("div","label").html("(".concat(f,")"))))})}function kp(){var t=this.filterhEl,r=this.filterValues,e=this.values;t.html("".concat(r.length," / ").concat(e.length)),t.checked(r.length===e.length)}var _2=function(){function t(){var r=this;Ee(this,t),this.filterbEl=Yt("div","".concat(ve,"-body")),this.filterhEl=Yt("div","".concat(ve,"-header state")).on("click.stop",function(){return r.filterClick(0,"all")}),this.el=Yt("div","".concat(ve,"-sort-filter")).children(this.sortAscEl=_p.call(this,"asc"),this.sortDescEl=_p.call(this,"desc"),wp("divider"),Yt("div","".concat(ve,"-filter")).children(this.filterhEl,this.filterbEl),Yt("div","".concat(ve,"-buttons")).children(new Ca("cancel").on("click",function(){return r.btnClick("cancel")}),new Ca("ok","primary").on("click",function(){return r.btnClick("ok")}))).hide(),this.ci=null,this.sortDesc=null,this.values=null,this.filterValues=[]}return Te(t,[{key:"btnClick",value:function(r){if(r==="ok"){var e=this.ci,n=this.sort,i=this.filterValues;this.ok&&this.ok(e,n,"in",i)}this.hide()}},{key:"itemClick",value:function(r){this.sort=r;var e=this.sortAscEl,n=this.sortDescEl;e.checked(r==="asc"),n.checked(r==="desc")}},{key:"filterClick",value:function(r,e){var n=this.filterbEl,i=this.filterValues,c=this.values,f=n.children();e==="all"?f.length===i.length?(this.filterValues=[],f.forEach(function(l){return Yt(l).checked(!1)})):(this.filterValues=Array.from(c),f.forEach(function(l){return Yt(l).checked(!0)})):Yt(f[r]).toggle("checked")?i.push(e):i.splice(i.findIndex(function(l){return l===e}),1),kp.call(this)}},{key:"set",value:function(r,e,n,i){this.ci=r;var c=this.sortAscEl,f=this.sortDescEl;i!==null?(this.sort=i.order,c.checked(i.asc()),f.checked(i.desc())):(this.sortDesc=null,c.checked(!1),f.checked(!1)),this.values=Object.keys(e),this.filterValues=n?Array.from(n.value):Object.keys(e),w2.call(this,e,n),kp.call(this)}},{key:"setOffset",value:function(r){var e=this;this.el.offset(r).show();var n=1;Gs(this.el,function(){n<=0&&e.hide(),n-=1})}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){this.el.hide(),ds(this.el)}}]),t}();function xp(t,r){var e=Yt("div","".concat(ve,"-toast")),n=Yt("div","".concat(ve,"-dimmer active"));e.children(Yt("div","".concat(ve,"-toast-header")).children(new Un("close").on("click.stop",function(){return document.body.removeChild(e.el),void document.body.removeChild(n.el)}),t),Yt("div","".concat(ve,"-toast-content")).html(r)),document.body.appendChild(e.el),document.body.appendChild(n.el);var i=e.box(),c=i.width,f=i.height,l=document.documentElement,u=l.clientHeight,y=l.clientWidth;e.offset({left:(y-c)/2,top:(u-f)/3})}function Qf(t,r){var e,n=this;return function(){for(var i=n,c=arguments.length,f=new Array(c),l=0;l<c;l++)f[l]=arguments[l];var u=f;e||(e=setTimeout(function(){e=null,t.apply(i,u)},r))}}function k2(){var t=this.data,r=this.verticalScrollbar,e=this.horizontalScrollbar,n=t.getSelectedRect(),i=n.l,c=n.t,f=n.left,l=n.top,u=n.width,y=n.height,p=this.getTableOffset();if(Math.abs(f)+u>p.width)e.move({left:i+u-p.width});else{var m=t.freezeTotalWidth();f<m&&e.move({left:i-1-m})}if(Math.abs(l)+y>p.height)r.move({top:c+y-p.height-1});else{var b=t.freezeTotalHeight();l<b&&r.move({top:c-1-b})}}function Aa(t,r,e){var n=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],i=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(r!==-1||e!==-1){var c=this.table,f=this.selector,l=this.toolbar,u=this.data;this.contextMenu.setMode(r===-1||e===-1?"row-col":"range");var y=u.getCell(r,e);t?(f.setEnd(r,e,i),this.trigger("cells-selected",y,f.range)):(f.set(r,e,n),this.trigger("cell-selected",y,r,e)),l.reset(),c.render()}}function go(t,r){var e=this.selector,n=this.data,i=n.rows,c=n.cols,f=Ye(e.indexes,2),l=f[0],u=f[1],y=e.range,p=y.eri,m=y.eci;if(t){var b=Ye(e.moveIndexes,2);l=b[0],u=b[1]}r==="left"?u>0&&(u-=1):r==="right"?(m!==u&&(u=m),u<c.len-1&&(u+=1)):r==="up"?l>0&&(l-=1):r==="down"?(p!==l&&(l=p),l<i.len-1&&(l+=1)):r==="row-first"?u=0:r==="row-last"?u=c.len-1:r==="col-first"?l=0:r==="col-last"&&(l=i.len-1),t&&(e.moveIndexes=[l,u]),Aa.call(this,t,l,u),k2.call(this)}function x2(t){if(t.buttons===0&&t.target.className!=="".concat(ve,"-resizer-hover")){var r=t.offsetX,e=t.offsetY,n=this.rowResizer,i=this.colResizer,c=this.tableEl,f=this.data,l=f.rows,u=f.cols;if(r>u.indexWidth&&e>l.height)return n.hide(),void i.hide();var y=c.box(),p=f.getCellRectByXY(t.offsetX,t.offsetY);p.ri>=0&&p.ci===-1?(p.width=u.indexWidth,n.show(p,{width:y.width}),l.isHide(p.ri-1)?n.showUnhide(p.ri):n.hideUnhide()):n.hide(),p.ri===-1&&p.ci>=0?(p.height=l.height,i.show(p,{height:y.height}),u.isHide(p.ci-1)?i.showUnhide(p.ci):i.hideUnhide()):i.hide()}}function S2(t){var r=this.verticalScrollbar,e=this.horizontalScrollbar,n=this.data,i=r.scroll().top,c=e.scroll().left,f=n.rows,l=n.cols,u=t.deltaY,y=t.deltaX,p=function(s,o){var h=s,a=0;do a=o(h),h+=1;while(a<=0);return a},m=function(s){if(s>0){var o=n.scroll.ri+1;if(o<f.len){var h=p(o,function(g){return f.getHeight(g)});r.move({top:i+h-1})}}else{var a=n.scroll.ri-1;if(a>=0){var d=p(a,function(g){return f.getHeight(g)});r.move({top:a===0?0:i-d})}}},b=Math.abs(u),v=Math.abs(y),_=Math.max(b,v);/Firefox/i.test(window.navigator.userAgent)&&Qf(m(t.detail),50),_===v&&Qf(function(s){if(s>0){var o=n.scroll.ci+1;if(o<l.len){var h=p(o,function(g){return l.getWidth(g)});e.move({left:c+h-1})}}else{var a=n.scroll.ci-1;if(a>=0){var d=p(a,function(g){return l.getWidth(g)});e.move({left:a===0?0:c-d})}}}(y),50),_===b&&Qf(m(u),50)}function E2(t,r){var e=this.verticalScrollbar,n=this.horizontalScrollbar,i=e.scroll().top,c=n.scroll().left;t==="left"||t==="right"?n.move({left:c-r}):t!=="up"&&t!=="down"||e.move({top:i-r})}function tl(){var t=this.data,r=this.verticalScrollbar,e=this.getTableOffset().height,n=t.exceptRowTotalHeight(0,-1);r.set(e,t.rows.totalHeight()-n)}function el(){var t=this.data,r=this.horizontalScrollbar,e=this.getTableOffset().width;t&&r.set(e,t.cols.totalWidth())}function T2(){var t=this.selector,r=this.data,e=this.editor,n=Ye(r.freeze,2),i=n[0],c=n[1];if(i>0||c>0){var f=r.freezeTotalWidth(),l=r.freezeTotalHeight();e.setFreezeLengths(f,l)}t.resetAreaOffset()}function yi(){var t=this.tableEl,r=this.overlayerEl,e=this.overlayerCEl,n=this.table,i=this.toolbar,c=this.selector,f=this.el,l=this.getTableOffset(),u=this.getRect();t.attr(u),r.offset(u),e.offset(l),f.css("width","".concat(u.width,"px")),tl.call(this),el.call(this),T2.call(this),n.render(),i.reset(),c.reset()}function Xs(){var t=this.data,r=this.selector;t.clearClipboard(),r.hideClipboard()}function rl(){var t=this.data,r=this.selector;t.copy(),t.copyToSystemClipboard(),r.showClipboard()}function Sp(){var t=this.data,r=this.selector;t.cut(),r.showClipboard()}function Zs(t,r){var e=this.data;if(e.settings.mode!=="read"){if(e.paste(t,function(i){return xp("Tip",i)}))yi.call(this);else if(r){var n=r.clipboardData.getData("text/plain");this.data.pasteFromText(n),yi.call(this)}}}function O2(){this.data.hideRowsOrCols(),yi.call(this)}function Ep(t,r){this.data.unhideRowsOrCols(t,r),yi.call(this)}function R2(){this.data.autofilter(),yi.call(this)}function C2(){var t=this.toolbar;t.paintformatActive()&&(Zs.call(this,"format"),Xs.call(this),t.paintformatToggle())}function Tp(t){var r=this,e=this.selector,n=this.data,i=this.table,c=this.sortFilter,f=t.offsetX,l=t.offsetY,u=t.target.className==="".concat(ve,"-selector-corner"),y=n.getCellRectByXY(f,l),p=y.left,m=y.top,b=y.width,v=y.height,_=y.ri,s=y.ci,o=n.autoFilter;if(o.includes(_,s)&&p+b-20<f&&m+v-20<l){var h=o.items(s,function(a,d){return n.rows.getCell(a,d)});return c.hide(),c.set(s,h,o.getFilter(s),o.getSort(s)),void c.setOffset({left:p,top:m+v+2})}t.shiftKey||(u?e.showAutofill(_,s):Aa.call(this,!1,_,s),Gd(window,function(a){var d=n.getCellRectByXY(a.offsetX,a.offsetY);_=d.ri,s=d.ci,u?e.showAutofill(_,s):a.buttons!==1||a.shiftKey||Aa.call(r,!0,_,s,!0,!0)},function(){u&&e.arange&&n.settings.mode!=="read"&&n.autofill(e.arange,"all",function(a){return xp("Tip",a)})&&i.render(),e.hideAutofill(),C2.call(r)})),u||t.buttons!==1||t.shiftKey&&Aa.call(this,!0,_,s)}function Js(){var t=this.editor,r=this.data.getSelectedRect(),e=this.getTableOffset(),n="top";r.top>e.height/2&&(n="bottom"),t.setOffset(r,n)}function Qs(){var t=this.editor,r=this.data;r.settings.mode!=="read"&&(Js.call(this),t.setCell(r.getSelectedCell(),r.getSelectedValidator()),Xs.call(this))}function A2(t){var r=this,e=this.data,n=this.table,i=this.selector;e.scrolly(t,function(){i.resetBRLAreaOffset(),Js.call(r),n.render()})}function P2(t){var r=this,e=this.data,n=this.table,i=this.selector;e.scrollx(t,function(){i.resetBRTAreaOffset(),Js.call(r),n.render()})}function M2(t,r){var e=t.ri,n=this.table,i=this.selector;this.data.rows.setHeight(e,r),n.render(),i.resetAreaOffset(),tl.call(this),Js.call(this)}function j2(t,r){var e=t.ci,n=this.table,i=this.selector;this.data.cols.setWidth(e,r),n.render(),i.resetAreaOffset(),el.call(this),Js.call(this)}function nl(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"finished",e=this.data,n=this.table;if(e.settings.mode!=="read"){e.setSelectedCellText(t,r);var i=e.selector,c=i.ri,f=i.ci;r==="finished"?n.render():this.trigger("cell-edited",t,c,f)}}function fu(t){var r=this.data;r.settings.mode!=="read"&&(t==="insert-row"?r.insert("row"):t==="delete-row"?r.delete("row"):t==="insert-column"?r.insert("column"):t==="delete-column"?r.delete("column"):t==="delete-cell"?r.deleteCell():t==="delete-cell-format"?r.deleteCell("format"):t==="delete-cell-text"?r.deleteCell("text"):t==="cell-printable"?r.setSelectedCellAttr("printable",!0):t==="cell-non-printable"?r.setSelectedCellAttr("printable",!1):t==="cell-editable"?r.setSelectedCellAttr("editable",!0):t==="cell-non-editable"&&r.setSelectedCellAttr("editable",!1),Xs.call(this),yi.call(this))}function I2(t,r){var e=this.data;if(t==="undo")this.undo();else if(t==="redo")this.redo();else if(t==="print")this.print.preview();else if(t==="paintformat")r===!0?rl.call(this):Xs.call(this);else if(t==="clearformat")fu.call(this,"delete-cell-format");else if(t!=="link"){if(t!=="chart")if(t==="autofilter")R2.call(this);else if(t==="freeze")if(r){var n=e.selector,i=n.ri,c=n.ci;this.freeze(i,c)}else this.freeze(0,0);else e.setSelectedCellAttr(t,r),t!=="formula"||e.selector.multiple()||Qs.call(this),yi.call(this)}}function D2(t,r,e,n){this.data.setAutoFilter(t,r,e,n),yi.call(this)}function N2(){var t,r,e,n,i,c,f=this,l=this.selector,u=this.overlayerEl,y=this.rowResizer,p=this.colResizer,m=this.verticalScrollbar,b=this.horizontalScrollbar,v=this.editor,_=this.contextMenu,s=this.toolbar,o=this.modalValidation,h=this.sortFilter;u.on("mousemove",function(a){x2.call(f,a)}).on("mousedown",function(a){v.clear(),_.hide(),a.buttons===2?(f.data.xyInSelectedRect(a.offsetX,a.offsetY)||Tp.call(f,a),_.setPosition(a.offsetX,a.offsetY),a.stopPropagation()):a.detail===2?Qs.call(f):Tp.call(f,a)}).on("mousewheel.stop",function(a){S2.call(f,a)}).on("mouseout",function(a){var d=a.offsetX;a.offsetY<=0&&p.hide(),d<=0&&y.hide()}),l.inputChange=function(a){nl.call(f,a,"input"),Qs.call(f)},t=u.el,e=(r={move:function(a,d){E2.call(f,a,d)}}).move,n=r.end,i=0,c=0,mi(t,"touchstart",function(a){var d=a.touches[0],g=d.pageX,w=d.pageY;i=g,c=w}),mi(t,"touchmove",function(a){if(e){var d=a.changedTouches[0],g=d.pageX,w=d.pageY,k=g-i,S=w-c;(Math.abs(k)>10||Math.abs(S)>10)&&(Yd(k,S,a,e),i=g,c=w),a.preventDefault()}}),mi(t,"touchend",function(a){if(n){var d=a.changedTouches[0],g=d.pageX,w=d.pageY;Yd(g-i,w-c,a,n)}}),s.change=function(a,d){return I2.call(f,a,d)},h.ok=function(a,d,g,w){return D2.call(f,a,d,g,w)},y.finishedFn=function(a,d){M2.call(f,a,d)},p.finishedFn=function(a,d){j2.call(f,a,d)},y.unhideFn=function(a){Ep.call(f,"row",a)},p.unhideFn=function(a){Ep.call(f,"col",a)},m.moveFn=function(a,d){A2.call(f,a,d)},b.moveFn=function(a,d){P2.call(f,a,d)},v.change=function(a,d){nl.call(f,d,a)},o.change=function(a){if(a==="save"){for(var d,g=arguments.length,w=new Array(g>1?g-1:0),k=1;k<g;k++)w[k-1]=arguments[k];(d=f.data).addValidation.apply(d,w)}else f.data.removeValidation()},_.itemClick=function(a){a==="validation"?o.setValue(f.data.getSelectedValidation()):a==="copy"?rl.call(f):a==="cut"?Sp.call(f):a==="paste"?Zs.call(f,"all"):a==="paste-value"?Zs.call(f,"text"):a==="paste-format"?Zs.call(f,"format"):a==="hide"?O2.call(f):fu.call(f,a)},mi(window,"resize",function(){f.reload()}),mi(window,"click",function(a){f.focusing=u.contains(a.target)}),mi(window,"paste",function(a){f.focusing&&(Zs.call(f,"all",a),a.preventDefault())}),mi(window,"keydown",function(a){if(f.focusing){var d=a.keyCode||a.which,g=a.key,w=a.ctrlKey,k=a.shiftKey,S=a.metaKey;if(w||S)switch(d){case 90:f.undo(),a.preventDefault();break;case 89:f.redo(),a.preventDefault();break;case 67:rl.call(f),a.preventDefault();break;case 88:Sp.call(f),a.preventDefault();break;case 85:s.trigger("underline"),a.preventDefault();break;case 86:break;case 37:go.call(f,k,"row-first"),a.preventDefault();break;case 38:go.call(f,k,"col-first"),a.preventDefault();break;case 39:go.call(f,k,"row-last"),a.preventDefault();break;case 40:go.call(f,k,"col-last"),a.preventDefault();break;case 32:Aa.call(f,!1,-1,f.data.selector.ci,!1),a.preventDefault();break;case 66:s.trigger("bold");break;case 73:s.trigger("italic")}else{switch(d){case 32:k&&Aa.call(f,!1,f.data.selector.ri,-1,!1);break;case 27:_.hide(),Xs.call(f);break;case 37:go.call(f,k,"left"),a.preventDefault();break;case 38:go.call(f,k,"up"),a.preventDefault();break;case 39:go.call(f,k,"right"),a.preventDefault();break;case 40:go.call(f,k,"down"),a.preventDefault();break;case 9:v.clear(),go.call(f,!1,k?"left":"right"),a.preventDefault();break;case 13:v.clear(),go.call(f,!1,k?"up":"down"),a.preventDefault();break;case 8:fu.call(f,"delete-cell-text"),a.preventDefault()}g==="Delete"?(fu.call(f,"delete-cell-text"),a.preventDefault()):d>=65&&d<=90||d>=48&&d<=57||d>=96&&d<=105||a.key==="="?(nl.call(f,a.key,"input"),Qs.call(f)):d===113&&Qs.call(f)}}})}var F2=function(){function t(r,e){var n=this;Ee(this,t),this.eventMap=function(){var u=new Map;function y(m,b){var v;return u.has(m)&&(v=u.get(m),Array.isArray(v)&&v.push(b)||!1)||u.set(m,[].concat(b))}function p(m,b){var v,_;return u.has(m)&&(_=(v=u.get(m)).indexOf(b))>=0&&v.splice(_,1)&&u.get(m).length===0&&u.delete(m)}return{get current(){return u},on:y,once:function(m,b){return y(m,function v(){for(var _=arguments.length,s=new Array(_),o=0;o<_;o++)s[o]=arguments[o];b.call.apply(b,[null].concat(s)),p(m,v)})},fire:function(m,b){return u.has(m)&&function(){var v,_=pb(u.get(m));try{for(_.s();!(v=_.n()).done;){var s=v.value;s.call.apply(s,[null].concat(_r(b)))}}catch(o){_.e(o)}finally{_.f()}}()},removeListener:p,removeAllListeners:function(){u.clear()}}}();var i=e.settings,c=i.view,f=i.showToolbar,l=i.showContextmenu;this.el=Yt("div","".concat(ve,"-sheet")),this.toolbar=new m2(e,c.width,!f),this.print=new Gb(e),r.children(this.toolbar.el,this.el,this.print.el),this.data=e,this.tableEl=Yt("canvas","".concat(ve,"-table")),this.rowResizer=new Kd(!1,e.rows.height),this.colResizer=new Kd(!0,e.cols.minWidth),this.verticalScrollbar=new Xd(!0),this.horizontalScrollbar=new Xd(!1),this.editor=new Mb(Fb,function(){return n.getTableOffset()},e.rows.height),this.modalValidation=new g2,this.contextMenu=new Zb(function(){return n.getRect()},!l),this.selector=new vb(e),this.overlayerCEl=Yt("div","".concat(ve,"-overlayer-content")).children(this.editor.el,this.selector.el),this.overlayerEl=Yt("div","".concat(ve,"-overlayer")).child(this.overlayerCEl),this.sortFilter=new _2,this.el.children(this.tableEl,this.overlayerEl.el,this.rowResizer.el,this.colResizer.el,this.verticalScrollbar.el,this.horizontalScrollbar.el,this.contextMenu.el,this.modalValidation.el,this.sortFilter.el),this.table=new Vb(this.tableEl.el,e),N2.call(this),yi.call(this),Aa.call(this,!1,0,0)}return Te(t,[{key:"on",value:function(r,e){return this.eventMap.on(r,e),this}},{key:"trigger",value:function(r){for(var e=this.eventMap,n=arguments.length,i=new Array(n>1?n-1:0),c=1;c<n;c++)i[c-1]=arguments[c];e.fire(r,i)}},{key:"resetData",value:function(r){this.editor.clear(),this.data=r,tl.call(this),el.call(this),this.toolbar.resetData(r),this.print.resetData(r),this.selector.resetData(r),this.table.resetData(r)}},{key:"loadData",value:function(r){return this.data.setData(r),yi.call(this),this}},{key:"freeze",value:function(r,e){return this.data.setFreeze(r,e),yi.call(this),this}},{key:"undo",value:function(){this.data.undo(),yi.call(this)}},{key:"redo",value:function(){this.data.redo(),yi.call(this)}},{key:"reload",value:function(){return yi.call(this),this}},{key:"getRect",value:function(){var r=this.data;return{width:r.viewWidth(),height:r.viewHeight()}}},{key:"getTableOffset",value:function(){var r=this.data,e=r.rows,n=r.cols,i=this.getRect(),c=i.width,f=i.height;return{width:c-n.indexWidth,height:f-e.height,left:n.indexWidth,top:e.height}}}]),t}();function L2(t){var r=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,n=xe(t);if(r){var i=xe(this).constructor;e=Reflect.construct(n,arguments,i)}else e=n.apply(this,arguments);return hr(this,e)}}var B2=function(t){lr(e,t);var r=L2(e);function e(n){var i;Ee(this,e);var c=new Un("ellipsis");return(i=r.call(this,c,"auto",!1,"top-left")).contentClick=n,i}return Te(e,[{key:"reset",value:function(n){var i=this,c=n.map(function(f,l){return Yt("div","".concat(ve,"-item")).css("width","150px").css("font-weight","normal").on("click",function(){i.contentClick(l),i.hide()}).child(f)});this.setContentChildren.apply(this,_r(c))}},{key:"setTitle",value:function(){}}]),e}(bo),z2=[{key:"delete",title:kr("contextmenu.deleteSheet")}];function U2(t){var r=this;return Yt("div","".concat(ve,"-item")).child(t.title()).on("click",function(){r.itemClick(t.key),r.hide()})}function H2(){var t=this;return z2.map(function(r){return U2.call(t,r)})}var W2=function(){function t(){var r;Ee(this,t),this.el=(r=Yt("div","".concat(ve,"-contextmenu")).css("width","160px")).children.apply(r,_r(H2.call(this))).hide(),this.itemClick=function(){}}return Te(t,[{key:"hide",value:function(){var r=this.el;r.hide(),ds(r)}},{key:"setOffset",value:function(r){var e=this.el;e.offset(r),e.show(),Gs(e)}}]),t}(),V2=function(){function t(){var r=this,e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){};Ee(this,t),this.swapFunc=n,this.updateFunc=c,this.dataNames=[],this.activeEl=null,this.deleteEl=null,this.items=[],this.moreEl=new B2(function(f){r.clickSwap2(r.items[f])}),this.contextMenu=new W2,this.contextMenu.itemClick=i,this.el=Yt("div","".concat(ve,"-bottombar")).children(this.contextMenu.el,this.menuEl=Yt("ul","".concat(ve,"-menu")).child(Yt("li","").children(new Un("add").on("click",function(){e()}),Yt("span","").child(this.moreEl))))}return Te(t,[{key:"addItem",value:function(r,e){var n=this;this.dataNames.push(r);var i=Yt("li",e?"active":"").child(r);i.on("click",function(){n.clickSwap2(i)}).on("contextmenu",function(c){var f=c.target,l=f.offsetLeft,u=f.offsetHeight;n.contextMenu.setOffset({left:l,bottom:u+1}),n.deleteEl=i}).on("dblclick",function(){var c=i.html(),f=new vs("auto","");f.val(c),f.input.on("blur",function(l){var u=l.target.value,y=n.dataNames.findIndex(function(p){return p===c});n.renameItem(y,u)}),i.html("").child(f.el),f.focus()}),e&&this.clickSwap(i),this.items.push(i),this.menuEl.child(i),this.moreEl.reset(this.dataNames)}},{key:"renameItem",value:function(r,e){this.dataNames.splice(r,1,e),this.moreEl.reset(this.dataNames),this.items[r].html("").child(e),this.updateFunc(r,e)}},{key:"clear",value:function(){var r=this;this.items.forEach(function(e){r.menuEl.removeChild(e.el)}),this.items=[],this.dataNames=[],this.moreEl.reset(this.dataNames)}},{key:"deleteItem",value:function(){var r=this.activeEl,e=this.deleteEl;if(this.items.length>1){var n=this.items.findIndex(function(c){return c===e});if(this.items.splice(n,1),this.dataNames.splice(n,1),this.menuEl.removeChild(e.el),this.moreEl.reset(this.dataNames),r===e){var i=Ye(this.items,1)[0];return this.activeEl=i,this.activeEl.toggle(),[n,0]}return[n,-1]}return[-1]}},{key:"clickSwap2",value:function(r){var e=this.items.findIndex(function(n){return n===r});this.clickSwap(r),this.activeEl.toggle(),this.swapFunc(e)}},{key:"clickSwap",value:function(r){this.activeEl!==null&&this.activeEl.toggle(),this.activeEl=r}}]),t}();function Op(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}var Rp=function(){function t(r){var e=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ee(this,t);var i=r;this.options=function(f){for(var l=1;l<arguments.length;l++){var u=arguments[l]!=null?arguments[l]:{};l%2?Op(Object(u),!0).forEach(function(y){If(f,y,u[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(u)):Op(Object(u)).forEach(function(y){Object.defineProperty(f,y,Object.getOwnPropertyDescriptor(u,y))})}return f}({showBottomBar:!0},n),this.sheetIndex=1,this.datas=[],typeof r=="string"&&(i=document.querySelector(r)),this.bottombar=this.options.showBottomBar?new V2(function(){var f=e.addSheet();e.sheet.resetData(f)},function(f){var l=e.datas[f];e.sheet.resetData(l)},function(){e.deleteSheet()},function(f,l){e.datas[f].name=l}):null,this.data=this.addSheet();var c=Yt("div","".concat(ve)).on("contextmenu",function(f){return f.preventDefault()});i.appendChild(c.el),this.sheet=new F2(c,this.data),this.bottombar!==null&&c.child(this.bottombar.el)}return Te(t,[{key:"addSheet",value:function(r){var e=this,n=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=r||"sheet".concat(this.sheetIndex),c=new db(i,this.options);return c.change=function(){for(var f,l=arguments.length,u=new Array(l),y=0;y<l;y++)u[y]=arguments[y];(f=e.sheet).trigger.apply(f,["change"].concat(u))},this.datas.push(c),this.bottombar!==null&&this.bottombar.addItem(i,n),this.sheetIndex+=1,c}},{key:"deleteSheet",value:function(){if(this.bottombar!==null){var r=Ye(this.bottombar.deleteItem(),2),e=r[0],n=r[1];e>=0&&(this.datas.splice(e,1),n>=0&&this.sheet.resetData(this.datas[n]))}}},{key:"loadData",value:function(r){var e=Array.isArray(r)?r:[r];if(this.bottombar!==null&&this.bottombar.clear(),this.datas=[],e.length>0)for(var n=0;n<e.length;n+=1){var i=e[n],c=this.addSheet(i.name,n===0);c.setData(i),n===0&&this.sheet.resetData(c)}return this}},{key:"getData",value:function(){return this.datas.map(function(r){return r.getData()})}},{key:"cellText",value:function(r,e,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return this.datas[i].setCellText(r,e,n,"finished"),this}},{key:"cell",value:function(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.datas[n].getCell(r,e)}},{key:"cellStyle",value:function(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.datas[n].getCellStyle(r,e)}},{key:"reRender",value:function(){return this.sheet.table.render(),this}},{key:"on",value:function(r,e){return this.sheet.on(r,e),this}},{key:"validate",value:function(){return this.data.validations.errors.size<=0}},{key:"change",value:function(r){return this.sheet.on("change",r),this}}],[{key:"locale",value:function(r,e){Bd(r,e)}}]),t}();window&&(window.x_spreadsheet=function(t){return new Rp(t,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})},window.x_spreadsheet.locale=function(t,r){return Bd(t,r)});var dr=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof Sd!="undefined"?Sd:typeof self!="undefined"?self:{},il={},$2={get exports(){return il},set exports(t){il=t}},ol={};(function(t){function r(e){return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})({get exports(){return ol},set exports(t){ol=t}}),function(t){var r=ol.default;function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=e=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var n,i={},c=Object.prototype,f=c.hasOwnProperty,l=Object.defineProperty||function(P,L,H){P[L]=H.value},u=typeof Symbol=="function"?Symbol:{},y=u.iterator||"@@iterator",p=u.asyncIterator||"@@asyncIterator",m=u.toStringTag||"@@toStringTag";function b(P,L,H){return Object.defineProperty(P,L,{value:H,enumerable:!0,configurable:!0,writable:!0}),P[L]}try{b({},"")}catch(P){b=function(L,H,U){return L[H]=U}}function v(P,L,H,U){var B=L&&L.prototype instanceof g?L:g,W=Object.create(B.prototype),X=new R(U||[]);return l(W,"_invoke",{value:T(P,H,X)}),W}function _(P,L,H){try{return{type:"normal",arg:P.call(L,H)}}catch(U){return{type:"throw",arg:U}}}i.wrap=v;var s="suspendedStart",o="suspendedYield",h="executing",a="completed",d={};function g(){}function w(){}function k(){}var S={};b(S,y,function(){return this});var A=Object.getPrototypeOf,j=A&&A(A(C([])));j&&j!==c&&f.call(j,y)&&(S=j);var D=k.prototype=g.prototype=Object.create(S);function N(P){["next","throw","return"].forEach(function(L){b(P,L,function(H){return this._invoke(L,H)})})}function F(P,L){function H(B,W,X,et){var ft=_(P[B],P,W);if(ft.type!=="throw"){var gt=ft.arg,bt=gt.value;return bt&&r(bt)=="object"&&f.call(bt,"__await")?L.resolve(bt.__await).then(function(rt){H("next",rt,X,et)},function(rt){H("throw",rt,X,et)}):L.resolve(bt).then(function(rt){gt.value=rt,X(gt)},function(rt){return H("throw",rt,X,et)})}et(ft.arg)}var U;l(this,"_invoke",{value:function(B,W){function X(){return new L(function(et,ft){H(B,W,et,ft)})}return U=U?U.then(X,X):X()}})}function T(P,L,H){var U=s;return function(B,W){if(U===h)throw new Error("Generator is already running");if(U===a){if(B==="throw")throw W;return{value:n,done:!0}}for(H.method=B,H.arg=W;;){var X=H.delegate;if(X){var et=I(X,H);if(et){if(et===d)continue;return et}}if(H.method==="next")H.sent=H._sent=H.arg;else if(H.method==="throw"){if(U===s)throw U=a,H.arg;H.dispatchException(H.arg)}else H.method==="return"&&H.abrupt("return",H.arg);U=h;var ft=_(P,L,H);if(ft.type==="normal"){if(U=H.done?a:o,ft.arg===d)continue;return{value:ft.arg,done:H.done}}ft.type==="throw"&&(U=a,H.method="throw",H.arg=ft.arg)}}}function I(P,L){var H=L.method,U=P.iterator[H];if(U===n)return L.delegate=null,H==="throw"&&P.iterator.return&&(L.method="return",L.arg=n,I(P,L),L.method==="throw")||H!=="return"&&(L.method="throw",L.arg=new TypeError("The iterator does not provide a '"+H+"' method")),d;var B=_(U,P.iterator,L.arg);if(B.type==="throw")return L.method="throw",L.arg=B.arg,L.delegate=null,d;var W=B.arg;return W?W.done?(L[P.resultName]=W.value,L.next=P.nextLoc,L.method!=="return"&&(L.method="next",L.arg=n),L.delegate=null,d):W:(L.method="throw",L.arg=new TypeError("iterator result is not an object"),L.delegate=null,d)}function x(P){var L={tryLoc:P[0]};1 in P&&(L.catchLoc=P[1]),2 in P&&(L.finallyLoc=P[2],L.afterLoc=P[3]),this.tryEntries.push(L)}function O(P){var L=P.completion||{};L.type="normal",delete L.arg,P.completion=L}function R(P){this.tryEntries=[{tryLoc:"root"}],P.forEach(x,this),this.reset(!0)}function C(P){if(P||P===""){var L=P[y];if(L)return L.call(P);if(typeof P.next=="function")return P;if(!isNaN(P.length)){var H=-1,U=function B(){for(;++H<P.length;)if(f.call(P,H))return B.value=P[H],B.done=!1,B;return B.value=n,B.done=!0,B};return U.next=U}}throw new TypeError(r(P)+" is not iterable")}return w.prototype=k,l(D,"constructor",{value:k,configurable:!0}),l(k,"constructor",{value:w,configurable:!0}),w.displayName=b(k,m,"GeneratorFunction"),i.isGeneratorFunction=function(P){var L=typeof P=="function"&&P.constructor;return!!L&&(L===w||(L.displayName||L.name)==="GeneratorFunction")},i.mark=function(P){return Object.setPrototypeOf?Object.setPrototypeOf(P,k):(P.__proto__=k,b(P,m,"GeneratorFunction")),P.prototype=Object.create(D),P},i.awrap=function(P){return{__await:P}},N(F.prototype),b(F.prototype,p,function(){return this}),i.AsyncIterator=F,i.async=function(P,L,H,U,B){B===void 0&&(B=Promise);var W=new F(v(P,L,H,U),B);return i.isGeneratorFunction(L)?W:W.next().then(function(X){return X.done?X.value:W.next()})},N(D),b(D,m,"Generator"),b(D,y,function(){return this}),b(D,"toString",function(){return"[object Generator]"}),i.keys=function(P){var L=Object(P),H=[];for(var U in L)H.push(U);return H.reverse(),function B(){for(;H.length;){var W=H.pop();if(W in L)return B.value=W,B.done=!1,B}return B.done=!0,B}},i.values=C,R.prototype={constructor:R,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!P)for(var L in this)L.charAt(0)==="t"&&f.call(this,L)&&!isNaN(+L.slice(1))&&(this[L]=n)},stop:function(){this.done=!0;var P=this.tryEntries[0].completion;if(P.type==="throw")throw P.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var L=this;function H(ft,gt){return W.type="throw",W.arg=P,L.next=ft,gt&&(L.method="next",L.arg=n),!!gt}for(var U=this.tryEntries.length-1;U>=0;--U){var B=this.tryEntries[U],W=B.completion;if(B.tryLoc==="root")return H("end");if(B.tryLoc<=this.prev){var X=f.call(B,"catchLoc"),et=f.call(B,"finallyLoc");if(X&&et){if(this.prev<B.catchLoc)return H(B.catchLoc,!0);if(this.prev<B.finallyLoc)return H(B.finallyLoc)}else if(X){if(this.prev<B.catchLoc)return H(B.catchLoc,!0)}else{if(!et)throw new Error("try statement without catch or finally");if(this.prev<B.finallyLoc)return H(B.finallyLoc)}}}},abrupt:function(P,L){for(var H=this.tryEntries.length-1;H>=0;--H){var U=this.tryEntries[H];if(U.tryLoc<=this.prev&&f.call(U,"finallyLoc")&&this.prev<U.finallyLoc){var B=U;break}}B&&(P==="break"||P==="continue")&&B.tryLoc<=L&&L<=B.finallyLoc&&(B=null);var W=B?B.completion:{};return W.type=P,W.arg=L,B?(this.method="next",this.next=B.finallyLoc,d):this.complete(W)},complete:function(P,L){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&L&&(this.next=L),d},finish:function(P){for(var L=this.tryEntries.length-1;L>=0;--L){var H=this.tryEntries[L];if(H.finallyLoc===P)return this.complete(H.completion,H.afterLoc),O(H),d}},catch:function(P){for(var L=this.tryEntries.length-1;L>=0;--L){var H=this.tryEntries[L];if(H.tryLoc===P){var U=H.completion;if(U.type==="throw"){var B=U.arg;O(H)}return B}}throw new Error("illegal catch attempt")},delegateYield:function(P,L,H){return this.delegate={iterator:C(P),resultName:L,nextLoc:H},this.method==="next"&&(this.arg=n),d}},i}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}($2);var lu=il(),Me=lu;try{regeneratorRuntime=lu}catch(t){typeof globalThis=="object"?globalThis.regeneratorRuntime=lu:Function("r","regeneratorRuntime = r")(lu)}function al(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var sl={};function Cp(t,r,e,n,i,c,f){try{var l=t[c](f),u=l.value}catch(y){return void e(y)}l.done?r(u):Promise.resolve(u).then(n,i)}function cl(){var t;return t=Me.mark(function r(e,n){return Me.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(n){i.next=2;break}return i.abrupt("return");case 2:n instanceof ArrayBuffer&&(n=new Blob([n])),q2(e,URL.createObjectURL(n));case 4:case"end":return i.stop()}},r)}),cl=function(){var r=this,e=arguments;return new Promise(function(n,i){var c=t.apply(r,e);function f(u){Cp(c,n,i,f,l,"next",u)}function l(u){Cp(c,n,i,f,l,"throw",u)}f(void 0)})},cl.apply(this,arguments)}function q2(t,r){var e=document.createElement("a");e.download=t,e.style.display="none",e.href=r,document.body.appendChild(e),e.click(),document.body.removeChild(e)}function ul(t){return(ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}({get exports(){return sl},set exports(t){sl=t}}).exports=function(){function t(r,e,n){function i(l,u){if(!e[l]){if(!r[l]){if(!u&&al)return al(l);if(c)return c(l,!0);var y=new Error("Cannot find module '"+l+"'");throw y.code="MODULE_NOT_FOUND",y}var p=e[l]={exports:{}};r[l][0].call(p.exports,function(m){return i(r[l][1][m]||m)},p,p.exports,t,r,e,n)}return e[l].exports}for(var c=al,f=0;f<n.length;f++)i(n[f]);return i}return t}()({1:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d,g,w,k,S,A){try{var j=a[S](A),D=j.value}catch(N){return void g(N)}j.done?d(D):Promise.resolve(D).then(w,k)}function c(a){return function(){var d=this,g=arguments;return new Promise(function(w,k){var S=a.apply(d,g);function A(D){i(S,w,k,A,j,"next",D)}function j(D){i(S,w,k,A,j,"throw",D)}A(void 0)})}}function f(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function l(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function u(a,d,g){return d&&l(a.prototype,d),g&&l(a,g),a}var y=t("fs"),p=t("fast-csv"),m=t("dayjs/plugin/customParseFormat"),b=t("dayjs/plugin/utc"),v=t("dayjs").extend(m).extend(b),_=t("../utils/stream-buf"),s=t("../utils/utils").fs.exists,o={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!"}},h=function(){function a(d){f(this,a),this.workbook=d,this.worksheet=null}return u(a,[{key:"readFile",value:function(){var d=c(Me.mark(function w(k,S){var A,j;return Me.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return S=S||{},D.next=3,s(k);case 3:if(D.sent){D.next=5;break}throw new Error("File not found: ".concat(k));case 5:return A=y.createReadStream(k),D.next=8,this.read(A,S);case 8:return j=D.sent,A.close(),D.abrupt("return",j);case 11:case"end":return D.stop()}},w,this)}));function g(w,k){return d.apply(this,arguments)}return g}()},{key:"read",value:function(d,g){var w=this;return g=g||{},new Promise(function(k,S){var A=w.workbook.addWorksheet(g.sheetName),j=g.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],D=g.map||function(F){if(F==="")return null;var T=Number(F);if(!Number.isNaN(T)&&T!==1/0)return T;var I=j.reduce(function(O,R){if(O)return O;var C=v(F,R,!0);return C.isValid()?C:null},null);if(I)return new Date(I.valueOf());var x=o[F];return x!==void 0?x:F},N=p.parse(g.parserOptions).on("data",function(F){A.addRow(F.map(D))}).on("end",function(){N.emit("worksheet",A)});N.on("worksheet",k).on("error",S),d.pipe(N)})}},{key:"createInputStream",value:function(){throw new 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(d,g){var w=this;return new Promise(function(k,S){g=g||{};var A=w.workbook.getWorksheet(g.sheetName||g.sheetId),j=p.format(g.formatterOptions);d.on("finish",function(){k()}),j.on("error",S),j.pipe(d);var D=g,N=D.dateFormat,F=D.dateUTC,T=g.map||function(O){if(O){if(O.text||O.hyperlink)return O.hyperlink||O.text||"";if(O.formula||O.result)return O.result||"";if(O instanceof Date)return N?F?v.utc(O).format(N):v(O).format(N):F?v.utc(O).format():v(O).format();if(O.error)return O.error;if(n(O)==="object")return JSON.stringify(O)}return O},I=g.includeEmptyRows===void 0||g.includeEmptyRows,x=1;A&&A.eachRow(function(O,R){if(I)for(;x++<R-1;)j.write([]);var C=O.values;C.shift(),j.write(C.map(T)),x=R}),j.end()})}},{key:"writeFile",value:function(d,g){var w={encoding:(g=g||{}).encoding||"utf8"},k=y.createWriteStream(d,w);return this.write(k,g)}},{key:"writeBuffer",value:function(){var d=c(Me.mark(function w(k){var S;return Me.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return S=new _,A.next=3,this.write(S,k);case 3:return A.abrupt("return",S.read());case 4:case"end":return A.stop()}},w,this)}));function g(w){return d.apply(this,arguments)}return g}()}]),a}();r.exports=h},{"../utils/stream-buf":23,"../utils/utils":26,dayjs:336,"dayjs/plugin/customParseFormat":337,"dayjs/plugin/utc":338,"fast-csv":369,fs:215}],2:[function(t,r,e){function n(u,y){if(!(u instanceof y))throw new TypeError("Cannot call a class as a function")}function i(u,y){for(var p=0;p<y.length;p++){var m=y[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(u,m.key,m)}}function c(u,y,p){return y&&i(u.prototype,y),p&&i(u,p),u}var f=t("../utils/col-cache"),l=function(){function u(y,p){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n(this,u),p)if(typeof p=="string"){var b=f.decodeAddress(p);this.nativeCol=b.col+m,this.nativeColOff=0,this.nativeRow=b.row+m,this.nativeRowOff=0}else p.nativeCol!==void 0?(this.nativeCol=p.nativeCol||0,this.nativeColOff=p.nativeColOff||0,this.nativeRow=p.nativeRow||0,this.nativeRowOff=p.nativeRowOff||0):p.col!==void 0?(this.col=p.col+m,this.row=p.row+m):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0;this.worksheet=y}return c(u,[{key:"col",get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set:function(y){this.nativeCol=Math.floor(y),this.nativeColOff=Math.floor((y-this.nativeCol)*this.colWidth)}},{key:"row",get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(y){this.nativeRow=Math.floor(y),this.nativeRowOff=Math.floor((y-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(y){this.nativeCol=y.nativeCol,this.nativeColOff=y.nativeColOff,this.nativeRow=y.nativeRow,this.nativeRowOff=y.nativeRowOff}}],[{key:"asInstance",value:function(y){return y instanceof u||y==null?y:new u(y)}}]),u}();r.exports=l},{"../utils/col-cache":19}],3:[function(t,r,e){function n(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")}function i(j,D){for(var N=0;N<D.length;N++){var F=D[N];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(j,F.key,F)}}function c(j,D,N){return D&&i(j.prototype,D),N&&i(j,N),j}var f=t("../utils/col-cache"),l=t("../utils/under-dash"),u=t("./enums"),y=t("../utils/shared-formula").slideFormula,p=t("./note"),m=function(){function j(D,N,F){if(n(this,j),!D||!N)throw new Error("A Cell needs a Row");this._row=D,this._column=N,f.validateAddress(F),this._address=F,this._value=A.create(j.Types.Null,this),this.style=this._mergeStyle(D.style,N.style,{}),this._mergeCount=0}return c(j,[{key:"destroy",value:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}},{key:"_mergeStyle",value:function(D,N,F){var T=D&&D.numFmt||N&&N.numFmt;T&&(F.numFmt=T);var I=D&&D.font||N&&N.font;I&&(F.font=I);var x=D&&D.alignment||N&&N.alignment;x&&(F.alignment=x);var O=D&&D.border||N&&N.border;O&&(F.border=O);var R=D&&D.fill||N&&N.fill;R&&(F.fill=R);var C=D&&D.protection||N&&N.protection;return C&&(F.protection=C),F}},{key:"toCsvString",value:function(){return this._value.toCsvString()}},{key:"addMergeRef",value:function(){this._mergeCount++}},{key:"releaseMergeRef",value:function(){this._mergeCount--}},{key:"merge",value:function(D,N){this._value.release(),this._value=A.create(j.Types.Merge,this,D),N||(this.style=D.style)}},{key:"unmerge",value:function(){this.type===j.Types.Merge&&(this._value.release(),this._value=A.create(j.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}},{key:"isMergedTo",value:function(D){return this._value.type===j.Types.Merge&&this._value.isMergedTo(D)}},{key:"toString",value:function(){return this.text}},{key:"_upgradeToHyperlink",value:function(D){this.type===j.Types.String&&(this._value=A.create(j.Types.Hyperlink,this,{text:this._value.value,hyperlink:D}))}},{key:"addName",value:function(D){this.workbook.definedNames.addEx(this.fullAddress,D)}},{key:"removeName",value:function(D){this.workbook.definedNames.removeEx(this.fullAddress,D)}},{key:"removeAllNames",value:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)}},{key:"worksheet",get:function(){return this._row.worksheet}},{key:"workbook",get:function(){return this._row.worksheet.workbook}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(D){this.style.numFmt=D}},{key:"font",get:function(){return this.style.font},set:function(D){this.style.font=D}},{key:"alignment",get:function(){return this.style.alignment},set:function(D){this.style.alignment=D}},{key:"border",get:function(){return this.style.border},set:function(D){this.style.border=D}},{key:"fill",get:function(){return this.style.fill},set:function(D){this.style.fill=D}},{key:"protection",get:function(){return this.style.protection},set:function(D){this.style.protection=D}},{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"$".concat(this._column.letter,"$").concat(this.row)}},{key:"type",get:function(){return this._value.type}},{key:"effectiveType",get:function(){return this._value.effectiveType}},{key:"isMerged",get:function(){return this._mergeCount>0||this.type===j.Types.Merge}},{key:"master",get:function(){return this.type===j.Types.Merge?this._value.master:this}},{key:"isHyperlink",get:function(){return this._value.type===j.Types.Hyperlink}},{key:"hyperlink",get:function(){return this._value.hyperlink}},{key:"value",get:function(){return this._value.value},set:function(D){this.type!==j.Types.Merge?(this._value.release(),this._value=A.create(A.getType(D),this,D)):this._value.master.value=D}},{key:"note",get:function(){return this._comment&&this._comment.note},set:function(D){this._comment=new p(D)}},{key:"text",get:function(){return this._value.toString()}},{key:"html",get:function(){return l.escapeHtml(this.text)}},{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(D){this.names=[D]}},{key:"names",get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(D){var N=this,F=this.workbook.definedNames;F.removeAllNames(this.fullAddress),D.forEach(function(T){F.addEx(N.fullAddress,T)})}},{key:"_dataValidations",get:function(){return this.worksheet.dataValidations}},{key:"dataValidation",get:function(){return this._dataValidations.find(this.address)},set:function(D){this._dataValidations.add(this.address,D)}},{key:"model",get:function(){var D=this._value.model;return D.style=this.style,this._comment&&(D.comment=this._comment.model),D},set:function(D){this._value.release(),this._value=A.create(D.type,this),this._value.model=D,D.comment&&D.comment.type==="note"&&(this._comment=p.fromModel(D.comment)),D.style?this.style=D.style:this.style={}}}]),j}();m.Types=u.ValueType;var b=function(){function j(D){n(this,j),this.model={address:D.address,type:m.Types.Null}}return c(j,[{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){}},{key:"toString",value:function(){return""}},{key:"value",get:function(){return null},set:function(D){}},{key:"type",get:function(){return m.Types.Null}},{key:"effectiveType",get:function(){return m.Types.Null}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),v=function(){function j(D,N){n(this,j),this.model={address:D.address,type:m.Types.Number,value:N}}return c(j,[{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(D){this.model.value=D}},{key:"type",get:function(){return m.Types.Number}},{key:"effectiveType",get:function(){return m.Types.Number}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),_=function(){function j(D,N){n(this,j),this.model={address:D.address,type:m.Types.String,value:N}}return c(j,[{key:"toCsvString",value:function(){return'"'.concat(this.model.value.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}},{key:"value",get:function(){return this.model.value},set:function(D){this.model.value=D}},{key:"type",get:function(){return m.Types.String}},{key:"effectiveType",get:function(){return m.Types.String}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),s=function(){function j(D,N){n(this,j),this.model={address:D.address,type:m.Types.String,value:N}}return c(j,[{key:"toString",value:function(){return this.model.value.richText.map(function(D){return D.text}).join("")}},{key:"toCsvString",value:function(){return'"'.concat(this.text.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"value",get:function(){return this.model.value},set:function(D){this.model.value=D}},{key:"type",get:function(){return m.Types.RichText}},{key:"effectiveType",get:function(){return m.Types.RichText}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),o=function(){function j(D,N){n(this,j),this.model={address:D.address,type:m.Types.Date,value:N}}return c(j,[{key:"toCsvString",value:function(){return this.model.value.toISOString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(D){this.model.value=D}},{key:"type",get:function(){return m.Types.Date}},{key:"effectiveType",get:function(){return m.Types.Date}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),h=function(){function j(D,N){n(this,j),this.model={address:D.address,type:m.Types.Hyperlink,text:N?N.text:void 0,hyperlink:N?N.hyperlink:void 0},N&&N.tooltip&&(this.model.tooltip=N.tooltip)}return c(j,[{key:"toCsvString",value:function(){return this.model.hyperlink}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.text}},{key:"value",get:function(){var D={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(D.tooltip=this.model.tooltip),D},set:function(D){this.model={text:D.text,hyperlink:D.hyperlink},D.tooltip&&(this.model.tooltip=D.tooltip)}},{key:"text",get:function(){return this.model.text},set:function(D){this.model.text=D}},{key:"hyperlink",get:function(){return this.model.hyperlink},set:function(D){this.model.hyperlink=D}},{key:"type",get:function(){return m.Types.Hyperlink}},{key:"effectiveType",get:function(){return m.Types.Hyperlink}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),a=function(){function j(D,N){n(this,j),this.model={address:D.address,type:m.Types.Merge,master:N?N.address:void 0},this._master=N,N&&N.addMergeRef()}return c(j,[{key:"isMergedTo",value:function(D){return D===this._master}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){this._master.releaseMergeRef()}},{key:"toString",value:function(){return this.value.toString()}},{key:"value",get:function(){return this._master.value},set:function(D){D instanceof m?(this._master&&this._master.releaseMergeRef(),D.addMergeRef(),this._master=D):this._master.value=D}},{key:"master",get:function(){return this._master}},{key:"type",get:function(){return m.Types.Merge}},{key:"effectiveType",get:function(){return this._master.effectiveType}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),d=function(){function j(D,N){n(this,j),this.cell=D,this.model={address:D.address,type:m.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 c(j,[{key:"_copyModel",value:function(D){var N={},F=function(T){var I=D[T];I&&(N[T]=I)};return F("formula"),F("result"),F("ref"),F("shareType"),F("sharedFormula"),N}},{key:"validate",value:function(D){switch(A.getType(D)){case m.Types.Null:case m.Types.String:case m.Types.Number:case m.Types.Date:break;case m.Types.Hyperlink:case m.Types.Formula:default:throw new Error("Cannot process that type of result value")}}},{key:"_getTranslatedFormula",value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var D=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=D&&y(D.formula,D.address,this.model.address)}return this._translatedFormula}},{key:"toCsvString",value:function(){return"".concat(this.model.result||"")}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.result?this.model.result.toString():""}},{key:"value",get:function(){return this._copyModel(this.model)},set:function(D){this.model=this._copyModel(D)}},{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(D){this.model.formula=D}},{key:"formulaType",get:function(){return this.model.formula?u.FormulaType.Master:this.model.sharedFormula?u.FormulaType.Shared:u.FormulaType.None}},{key:"result",get:function(){return this.model.result},set:function(D){this.model.result=D}},{key:"type",get:function(){return m.Types.Formula}},{key:"effectiveType",get:function(){var D=this.model.result;return D==null?u.ValueType.Null:D instanceof String||typeof D=="string"?u.ValueType.String:typeof D=="number"?u.ValueType.Number:D instanceof Date?u.ValueType.Date:D.text&&D.hyperlink?u.ValueType.Hyperlink:D.formula?u.ValueType.Formula:u.ValueType.Null}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),g=function(){function j(D,N){n(this,j),this.model={address:D.address,type:m.Types.SharedString,value:N}}return c(j,[{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(D){this.model.value=D}},{key:"type",get:function(){return m.Types.SharedString}},{key:"effectiveType",get:function(){return m.Types.SharedString}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),w=function(){function j(D,N){n(this,j),this.model={address:D.address,type:m.Types.Boolean,value:N}}return c(j,[{key:"toCsvString",value:function(){return this.model.value?1:0}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(D){this.model.value=D}},{key:"type",get:function(){return m.Types.Boolean}},{key:"effectiveType",get:function(){return m.Types.Boolean}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),k=function(){function j(D,N){n(this,j),this.model={address:D.address,type:m.Types.Error,value:N}}return c(j,[{key:"toCsvString",value:function(){return this.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.error.toString()}},{key:"value",get:function(){return this.model.value},set:function(D){this.model.value=D}},{key:"type",get:function(){return m.Types.Error}},{key:"effectiveType",get:function(){return m.Types.Error}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),S=function(){function j(D,N){n(this,j),this.model={address:D.address,type:m.Types.String,value:JSON.stringify(N),rawValue:N}}return c(j,[{key:"toCsvString",value:function(){return this.model.value}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}},{key:"value",get:function(){return this.model.rawValue},set:function(D){this.model.rawValue=D,this.model.value=JSON.stringify(D)}},{key:"type",get:function(){return m.Types.String}},{key:"effectiveType",get:function(){return m.Types.String}},{key:"address",get:function(){return this.model.address},set:function(D){this.model.address=D}}]),j}(),A={getType:function(j){return j==null?m.Types.Null:j instanceof String||typeof j=="string"?m.Types.String:typeof j=="number"?m.Types.Number:typeof j=="boolean"?m.Types.Boolean:j instanceof Date?m.Types.Date:j.text&&j.hyperlink?m.Types.Hyperlink:j.formula||j.sharedFormula?m.Types.Formula:j.richText?m.Types.RichText:j.sharedString?m.Types.SharedString:j.error?m.Types.Error:m.Types.JSON},types:[{t:m.Types.Null,f:b},{t:m.Types.Number,f:v},{t:m.Types.String,f:_},{t:m.Types.Date,f:o},{t:m.Types.Hyperlink,f:h},{t:m.Types.Formula,f:d},{t:m.Types.Merge,f:a},{t:m.Types.JSON,f:S},{t:m.Types.SharedString,f:g},{t:m.Types.RichText,f:s},{t:m.Types.Boolean,f:w},{t:m.Types.Error,f:k}].reduce(function(j,D){return j[D.t]=D.f,j},[]),create:function(j,D,N){var F=this.types[j];if(!F)throw new Error("Could not create Value of type ".concat(j));return new F(D,N)}};r.exports=m},{"../utils/col-cache":19,"../utils/shared-formula":22,"../utils/under-dash":25,"./enums":7,"./note":9}],4:[function(t,r,e){function n(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function i(m,b){for(var v=0;v<b.length;v++){var _=b[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,b,v){return b&&i(m.prototype,b),v&&i(m,v),m}var f=t("../utils/under-dash"),l=t("./enums"),u=t("../utils/col-cache"),y=9,p=function(){function m(b,v,_){n(this,m),this._worksheet=b,this._number=v,_!==!1&&(this.defn=_)}return c(m,[{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(b){return this.width===b.width&&this.hidden===b.hidden&&this.outlineLevel===b.outlineLevel&&f.isEqual(this.style,b.style)}},{key:"eachCell",value:function(b,v){var _=this.number;v||(v=b,b=null),this._worksheet.eachRow(b,function(s,o){v(s.getCell(_),o)})}},{key:"_applyStyle",value:function(b,v){return this.style[b]=v,this.eachCell(function(_){_[b]=v}),v}},{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"letter",get:function(){return u.n2l(this._number)}},{key:"isCustomWidth",get:function(){return this.width!==void 0&&this.width!==y}},{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(b){b?(this.key=b.key,this.width=b.width!==void 0?b.width:y,this.outlineLevel=b.outlineLevel,b.style?this.style=b.style:this.style={},this.header=b.header,this._hidden=!!b.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(b){var v=this;b!==void 0?(this._header=b,this.headers.forEach(function(_,s){v._worksheet.getCell(s+1,v.number).value=_})):this._header=void 0}},{key:"key",get:function(){return this._key},set:function(b){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=b,b&&this._worksheet.setColumnKey(this._key,this)}},{key:"hidden",get:function(){return!!this._hidden},set:function(b){this._hidden=b}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(b){this._outlineLevel=b}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}},{key:"isDefault",get:function(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;var b=this.style;return!b||!(b.font||b.numFmt||b.alignment||b.border||b.fill||b.protection)}},{key:"headerCount",get:function(){return this.headers.length}},{key:"values",get:function(){var b=[];return this.eachCell(function(v,_){v&&v.type!==l.ValueType.Null&&(b[_]=v.value)}),b},set:function(b){var v=this;if(b){var _=this.number,s=0;b.hasOwnProperty("0")&&(s=1),b.forEach(function(o,h){v._worksheet.getCell(h+s,_).value=o})}}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(b){this._applyStyle("numFmt",b)}},{key:"font",get:function(){return this.style.font},set:function(b){this._applyStyle("font",b)}},{key:"alignment",get:function(){return this.style.alignment},set:function(b){this._applyStyle("alignment",b)}},{key:"protection",get:function(){return this.style.protection},set:function(b){this._applyStyle("protection",b)}},{key:"border",get:function(){return this.style.border},set:function(b){this._applyStyle("border",b)}},{key:"fill",get:function(){return this.style.fill},set:function(b){this._applyStyle("fill",b)}}],[{key:"toModel",value:function(b){var v=[],_=null;return b&&b.forEach(function(s,o){s.isDefault?_&&(_=null):_&&s.equivalentTo(_)?_.max=o+1:(_={min:o+1,max:o+1,width:s.width!==void 0?s.width:y,style:s.style,isCustomWidth:s.isCustomWidth,hidden:s.hidden,outlineLevel:s.outlineLevel,collapsed:s.collapsed},v.push(_))}),v.length?v:void 0}},{key:"fromModel",value:function(b,v){v=v||[];for(var _=[],s=1,o=0;o<v.length;){for(var h=v[o++];s<h.min;)_.push(new m(b,s++));for(;s<=h.max;)_.push(new m(b,s++,h))}return _.length?_:null}}]),m}();r.exports=p},{"../utils/col-cache":19,"../utils/under-dash":25,"./enums":7}],5:[function(t,r,e){function n(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function i(l,u){for(var y=0;y<u.length;y++){var p=u[y];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(l,p.key,p)}}function c(l,u,y){return u&&i(l.prototype,u),y&&i(l,y),l}var f=function(){function l(u){n(this,l),this.model=u||{}}return c(l,[{key:"add",value:function(u,y){return this.model[u]=y}},{key:"find",value:function(u){return this.model[u]}},{key:"remove",value:function(u){this.model[u]=void 0}}]),l}();r.exports=f},{}],6:[function(t,r,e){function n(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function i(b,v){for(var _=0;_<v.length;_++){var s=v[_];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(b,s.key,s)}}function c(b,v,_){return v&&i(b.prototype,v),_&&i(b,_),b}var f=t("../utils/under-dash"),l=t("../utils/col-cache"),u=t("../utils/cell-matrix"),y=t("./range"),p=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,m=function(){function b(){n(this,b),this.matrixMap={}}return c(b,[{key:"getMatrix",value:function(v){return this.matrixMap[v]||(this.matrixMap[v]=new u)}},{key:"add",value:function(v,_){var s=l.decodeEx(v);this.addEx(s,_)}},{key:"addEx",value:function(v,_){var s=this.getMatrix(_);if(v.top)for(var o=v.left;o<=v.right;o++)for(var h=v.top;h<=v.bottom;h++){var a={sheetName:v.sheetName,address:l.n2l(o)+h,row:h,col:o};s.addCellEx(a)}else s.addCellEx(v)}},{key:"remove",value:function(v,_){var s=l.decodeEx(v);this.removeEx(s,_)}},{key:"removeEx",value:function(v,_){this.getMatrix(_).removeCellEx(v)}},{key:"removeAllNames",value:function(v){f.each(this.matrixMap,function(_){_.removeCellEx(v)})}},{key:"forEach",value:function(v){f.each(this.matrixMap,function(_,s){_.forEach(function(o){v(s,o)})})}},{key:"getNames",value:function(v){return this.getNamesEx(l.decodeEx(v))}},{key:"getNamesEx",value:function(v){return f.map(this.matrixMap,function(_,s){return _.findCellEx(v)&&s}).filter(Boolean)}},{key:"_explore",value:function(v,_){_.mark=!1;var s,o,h=_.sheetName,a=new y(_.row,_.col,_.row,_.col,h);function d(w,k){var S=v.findCellAt(h,w,_.col);return!(!S||!S.mark||(a[k]=w,S.mark=!1,0))}for(o=_.row-1;d(o,"top");o--);for(o=_.row+1;d(o,"bottom");o++);function g(w,k){var S=[];for(o=a.top;o<=a.bottom;o++){var A=v.findCellAt(h,o,w);if(!A||!A.mark)return!1;S.push(A)}a[k]=w;for(var j=0;j<S.length;j++)S[j].mark=!1;return!0}for(s=_.col-1;g(s,"left");s--);for(s=_.col+1;g(s,"right");s++);return a}},{key:"getRanges",value:function(v,_){var s=this;return(_=_||this.matrixMap[v])?(_.forEach(function(o){o.mark=!0}),{name:v,ranges:_.map(function(o){return o.mark&&s._explore(_,o)}).filter(Boolean).map(function(o){return o.$shortRange})}):{name:v,ranges:[]}}},{key:"normaliseMatrix",value:function(v,_){v.forEachInSheet(_,function(s,o,h){s&&(s.row===o&&s.col===h||(s.row=o,s.col=h,s.address=l.n2l(h)+o))})}},{key:"spliceRows",value:function(v,_,s,o){var h=this;f.each(this.matrixMap,function(a){a.spliceRows(v,_,s,o),h.normaliseMatrix(a,v)})}},{key:"spliceColumns",value:function(v,_,s,o){var h=this;f.each(this.matrixMap,function(a){a.spliceColumns(v,_,s,o),h.normaliseMatrix(a,v)})}},{key:"model",get:function(){var v=this;return f.map(this.matrixMap,function(_,s){return v.getRanges(s,_)}).filter(function(_){return _.ranges.length})},set:function(v){var _=this.matrixMap={};v.forEach(function(s){var o=_[s.name]=new u;s.ranges.forEach(function(h){p.test(h.split("!").pop()||"")&&o.addCell(h)})})}}]),b}();r.exports=m},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":25,"./range":10}],7:[function(t,r,e){r.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(t,r,e){function n(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function i(y,p){for(var m=0;m<p.length;m++){var b=p[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}function c(y,p,m){return p&&i(y.prototype,p),m&&i(y,m),y}var f=t("../utils/col-cache"),l=t("./anchor"),u=function(){function y(p,m){n(this,y),this.worksheet=p,this.model=m}return c(y,[{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 new Error("Invalid Image Type")}},set:function(p){var m=p.type,b=p.imageId,v=p.range,_=p.hyperlinks;if(this.type=m,this.imageId=b,m==="image")if(typeof v=="string"){var s=f.decode(v);this.range={tl:new l(this.worksheet,{col:s.left,row:s.top},-1),br:new l(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new l(this.worksheet,v.tl,0),br:v.br&&new l(this.worksheet,v.br,0),ext:v.ext,editAs:v.editAs,hyperlinks:_||v.hyperlinks}}}]),y}();r.exports=u},{"../utils/col-cache":19,"./anchor":2}],9:[function(t,r,e){function n(y){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(y)}function i(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function c(y,p){for(var m=0;m<p.length;m++){var b=p[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}function f(y,p,m){return p&&c(y.prototype,p),m&&c(y,m),y}var l=t("../utils/under-dash"),u=function(){function y(p){i(this,y),this.note=p}return f(y,[{key:"model",get:function(){var p=null;return p=n(this.note)==="string"?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},l.deepMerge({},y.DEFAULT_CONFIGS,p)},set:function(p){var m=p.note,b=m.texts;b.length===1&&Object.keys(b[0]).length===1?this.note=b[0].text:this.note=m}}],[{key:"fromModel",value:function(p){var m=new y;return m.model=p,m}}]),y}();u.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},r.exports=u},{"../utils/under-dash":25}],10:[function(t,r,e){function n(u,y){if(!(u instanceof y))throw new TypeError("Cannot call a class as a function")}function i(u,y){for(var p=0;p<y.length;p++){var m=y[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(u,m.key,m)}}function c(u,y,p){return y&&i(u.prototype,y),p&&i(u,p),u}var f=t("../utils/col-cache"),l=function(){function u(){n(this,u),this.decode(arguments)}return c(u,[{key:"setTLBR",value:function(y,p,m,b,v){if(arguments.length<4){var _=f.decodeAddress(y),s=f.decodeAddress(p);this.model={top:Math.min(_.row,s.row),left:Math.min(_.col,s.col),bottom:Math.max(_.row,s.row),right:Math.max(_.col,s.col),sheetName:m},this.setTLBR(_.row,_.col,s.row,s.col,v)}else this.model={top:Math.min(y,m),left:Math.min(p,b),bottom:Math.max(y,m),right:Math.max(p,b),sheetName:v}}},{key:"decode",value:function(y){switch(y.length){case 5:this.setTLBR(y[0],y[1],y[2],y[3],y[4]);break;case 4:this.setTLBR(y[0],y[1],y[2],y[3]);break;case 3:this.setTLBR(y[0],y[1],y[2]);break;case 2:this.setTLBR(y[0],y[1]);break;case 1:var p=y[0];if(p instanceof u)this.model={top:p.model.top,left:p.model.left,bottom:p.model.bottom,right:p.model.right,sheetName:p.sheetName};else if(p instanceof Array)this.decode(p);else if(p.top&&p.left&&p.bottom&&p.right)this.model={top:p.top,left:p.left,bottom:p.bottom,right:p.right,sheetName:p.sheetName};else{var m=f.decodeEx(p);m.top?this.model={top:m.top,left:m.left,bottom:m.bottom,right:m.right,sheetName:m.sheetName}:this.model={top:m.row,left:m.col,bottom:m.row,right:m.col,sheetName:m.sheetName}}break;case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - ".concat(y.length))}}},{key:"expand",value:function(y,p,m,b){(!this.model.top||y<this.top)&&(this.top=y),(!this.model.left||p<this.left)&&(this.left=p),(!this.model.bottom||m>this.bottom)&&(this.bottom=m),(!this.model.right||b>this.right)&&(this.right=b)}},{key:"expandRow",value:function(y){if(y){var p=y.dimensions,m=y.number;p&&this.expand(m,p.min,m,p.max)}}},{key:"expandToAddress",value:function(y){var p=f.decodeEx(y);this.expand(p.row,p.col,p.row,p.col)}},{key:"toString",value:function(){return this.range}},{key:"intersects",value:function(y){return!(y.sheetName&&this.sheetName&&y.sheetName!==this.sheetName||y.bottom<this.top||y.top>this.bottom||y.right<this.left||y.left>this.right)}},{key:"contains",value:function(y){var p=f.decodeEx(y);return this.containsEx(p)}},{key:"containsEx",value:function(y){return(!y.sheetName||!this.sheetName||y.sheetName===this.sheetName)&&y.row>=this.top&&y.row<=this.bottom&&y.col>=this.left&&y.col<=this.right}},{key:"forEachAddress",value:function(y){for(var p=this.left;p<=this.right;p++)for(var m=this.top;m<=this.bottom;m++)y(f.encodeAddress(m,p),m,p)}},{key:"top",get:function(){return this.model.top||1},set:function(y){this.model.top=y}},{key:"left",get:function(){return this.model.left||1},set:function(y){this.model.left=y}},{key:"bottom",get:function(){return this.model.bottom||1},set:function(y){this.model.bottom=y}},{key:"right",get:function(){return this.model.right||1},set:function(y){this.model.right=y}},{key:"sheetName",get:function(){return this.model.sheetName},set:function(y){this.model.sheetName=y}},{key:"_serialisedSheetName",get:function(){var y=this.model.sheetName;return y?/^[a-zA-Z0-9]*$/.test(y)?"".concat(y,"!"):"'".concat(y,"'!"):""}},{key:"tl",get:function(){return f.n2l(this.left)+this.top}},{key:"$t$l",get:function(){return"$".concat(f.n2l(this.left),"$").concat(this.top)}},{key:"br",get:function(){return f.n2l(this.right)+this.bottom}},{key:"$b$r",get:function(){return"$".concat(f.n2l(this.right),"$").concat(this.bottom)}},{key:"range",get:function(){return"".concat(this._serialisedSheetName+this.tl,":").concat(this.br)}},{key:"$range",get:function(){return"".concat(this._serialisedSheetName+this.$t$l,":").concat(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)}}]),u}();r.exports=l},{"../utils/col-cache":19}],11:[function(t,r,e){function n(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function i(m,b){for(var v=0;v<b.length;v++){var _=b[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,b,v){return b&&i(m.prototype,b),v&&i(m,v),m}var f=t("../utils/under-dash"),l=t("./enums"),u=t("../utils/col-cache"),y=t("./cell"),p=function(){function m(b,v){n(this,m),this._worksheet=b,this._number=v,this._cells=[],this.style={},this.outlineLevel=0}return c(m,[{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(b){return this._cells[b-1]}},{key:"getCellEx",value:function(b){var v=this._cells[b.col-1];if(!v){var _=this._worksheet.getColumn(b.col);v=new y(this,_,b.address),this._cells[b.col-1]=v}return v}},{key:"getCell",value:function(b){if(typeof b=="string"){var v=this._worksheet.getColumnKey(b);b=v?v.number:u.l2n(b)}return this._cells[b-1]||this.getCellEx({address:u.encodeAddress(this._number,b),row:this._number,col:b})}},{key:"splice",value:function(b,v){for(var _=b+v,s=arguments.length,o=new Array(s>2?s-2:0),h=2;h<s;h++)o[h-2]=arguments[h];var a,d,g,w=o.length-v,k=this._cells.length;if(w<0)for(a=b+o.length;a<=k;a++)g=this._cells[a-1],(d=this._cells[a-w-1])?((g=this.getCell(a)).value=d.value,g.style=d.style,g._comment=d._comment):g&&(g.value=null,g.style={},g._comment=void 0);else if(w>0)for(a=k;a>=_;a--)(d=this._cells[a-1])?((g=this.getCell(a+w)).value=d.value,g.style=d.style,g._comment=d._comment):this._cells[a+w-1]=void 0;for(a=0;a<o.length;a++)(g=this.getCell(b+a)).value=o[a],g.style={},g._comment=void 0}},{key:"eachCell",value:function(b,v){if(v||(v=b,b=null),b&&b.includeEmpty)for(var _=this._cells.length,s=1;s<=_;s++)v(this.getCell(s),s);else this._cells.forEach(function(o,h){o&&o.type!==l.ValueType.Null&&v(o,h+1)})}},{key:"addPageBreak",value:function(b,v){var _=this._worksheet,s=Math.max(0,b-1)||0,o=Math.max(0,v-1)||16838,h={id:this._number,max:o,man:1};s&&(h.min=s),_.rowBreaks.push(h)}},{key:"_applyStyle",value:function(b,v){return this.style[b]=v,this._cells.forEach(function(_){_&&(_[b]=v)}),v}},{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"values",get:function(){var b=[];return this._cells.forEach(function(v){v&&v.type!==l.ValueType.Null&&(b[v.col]=v.value)}),b},set:function(b){var v=this;if(this._cells=[],b)if(b instanceof Array){var _=0;b.hasOwnProperty("0")&&(_=1),b.forEach(function(s,o){s!==void 0&&(v.getCellEx({address:u.encodeAddress(v._number,o+_),row:v._number,col:o+_}).value=s)})}else this._worksheet.eachColumnKey(function(s,o){b[o]!==void 0&&(v.getCellEx({address:u.encodeAddress(v._number,s.number),row:v._number,col:s.number}).value=b[o])})}},{key:"hasValues",get:function(){return f.some(this._cells,function(b){return b&&b.type!==l.ValueType.Null})}},{key:"cellCount",get:function(){return this._cells.length}},{key:"actualCellCount",get:function(){var b=0;return this.eachCell(function(){b++}),b}},{key:"dimensions",get:function(){var b=0,v=0;return this._cells.forEach(function(_){_&&_.type!==l.ValueType.Null&&((!b||b>_.col)&&(b=_.col),v<_.col&&(v=_.col))}),b>0?{min:b,max:v}:null}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(b){this._applyStyle("numFmt",b)}},{key:"font",get:function(){return this.style.font},set:function(b){this._applyStyle("font",b)}},{key:"alignment",get:function(){return this.style.alignment},set:function(b){this._applyStyle("alignment",b)}},{key:"protection",get:function(){return this.style.protection},set:function(b){this._applyStyle("protection",b)}},{key:"border",get:function(){return this.style.border},set:function(b){this._applyStyle("border",b)}},{key:"fill",get:function(){return this.style.fill},set:function(b){this._applyStyle("fill",b)}},{key:"hidden",get:function(){return!!this._hidden},set:function(b){this._hidden=b}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(b){this._outlineLevel=b}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:"model",get:function(){var b=[],v=0,_=0;return this._cells.forEach(function(s){if(s){var o=s.model;o&&((!v||v>s.col)&&(v=s.col),_<s.col&&(_=s.col),b.push(o))}}),this.height||b.length?{cells:b,number:this.number,min:v,max:_,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null},set:function(b){var v,_=this;if(b.number!==this._number)throw new Error("Invalid row number in model");this._cells=[],b.cells.forEach(function(s){if(s.type!==y.Types.Merge){var o;if(s.address)o=u.decodeAddress(s.address);else if(v){var h=v.row,a=v.col+1;o={row:h,col:a,address:u.encodeAddress(h,a),$col$row:"$".concat(u.n2l(a),"$").concat(h)}}v=o,_.getCellEx(o).model=s}}),b.height?this.height=b.height:delete this.height,this.hidden=b.hidden,this.outlineLevel=b.outlineLevel||0,this.style=b.style&&JSON.parse(JSON.stringify(b.style))||{}}}]),m}();r.exports=p},{"../utils/col-cache":19,"../utils/under-dash":25,"./cell":3,"./enums":7}],12:[function(t,r,e){function n(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function i(y,p){for(var m=0;m<p.length;m++){var b=p[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}function c(y,p,m){return p&&i(y.prototype,p),m&&i(y,m),y}var f=t("../utils/col-cache"),l=function(){function y(p,m,b){n(this,y),this.table=p,this.column=m,this.index=b}return c(y,[{key:"_set",value:function(p,m){this.table.cacheState(),this.column[p]=m}},{key:"name",get:function(){return this.column.name},set:function(p){this._set("name",p)}},{key:"filterButton",get:function(){return this.column.filterButton},set:function(p){this.column.filterButton=p}},{key:"style",get:function(){return this.column.style},set:function(p){this.column.style=p}},{key:"totalsRowLabel",get:function(){return this.column.totalsRowLabel},set:function(p){this._set("totalsRowLabel",p)}},{key:"totalsRowFunction",get:function(){return this.column.totalsRowFunction},set:function(p){this._set("totalsRowFunction",p)}},{key:"totalsRowResult",get:function(){return this.column.totalsRowResult},set:function(p){this._set("totalsRowResult",p)}},{key:"totalsRowFormula",get:function(){return this.column.totalsRowFormula},set:function(p){this._set("totalsRowFormula",p)}}]),y}(),u=function(){function y(p,m){n(this,y),this.worksheet=p,m&&(this.table=m,this.validate(),this.store())}return c(y,[{key:"getFormula",value:function(p){switch(p.totalsRowFunction){case"none":return null;case"average":return"SUBTOTAL(101,".concat(this.table.name,"[").concat(p.name,"])");case"countNums":return"SUBTOTAL(102,".concat(this.table.name,"[").concat(p.name,"])");case"count":return"SUBTOTAL(103,".concat(this.table.name,"[").concat(p.name,"])");case"max":return"SUBTOTAL(104,".concat(this.table.name,"[").concat(p.name,"])");case"min":return"SUBTOTAL(105,".concat(this.table.name,"[").concat(p.name,"])");case"stdDev":return"SUBTOTAL(106,".concat(this.table.name,"[").concat(p.name,"])");case"var":return"SUBTOTAL(107,".concat(this.table.name,"[").concat(p.name,"])");case"sum":return"SUBTOTAL(109,".concat(this.table.name,"[").concat(p.name,"])");case"custom":return p.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: ".concat(p.totalsRowFunction))}}},{key:"validate",value:function(){var p=this,m=this.table,b=function(g,w,k){g[w]===void 0&&(g[w]=k)};b(m,"headerRow",!0),b(m,"totalsRow",!1),b(m,"style",{}),b(m.style,"theme","TableStyleMedium2"),b(m.style,"showFirstColumn",!1),b(m.style,"showLastColumn",!1),b(m.style,"showRowStripes",!1),b(m.style,"showColumnStripes",!1);var v=function(g,w){if(!g)throw new Error(w)};v(m.ref,"Table must have ref"),v(m.columns,"Table must have column definitions"),v(m.rows,"Table must have row definitions"),m.tl=f.decodeAddress(m.ref);var _=m.tl,s=_.row,o=_.col;v(s>0,"Table must be on valid row"),v(o>0,"Table must be on valid col");var h=this.width,a=this.filterHeight,d=this.tableHeight;m.autoFilterRef=f.encode(s,o,s+a-1,o+h-1),m.tableRef=f.encode(s,o,s+d-1,o+h-1),m.columns.forEach(function(g,w){v(g.name,"Column ".concat(w," must have a name")),w===0?b(g,"totalsRowLabel","Total"):(b(g,"totalsRowFunction","none"),g.totalsRowFormula=p.getFormula(g))})}},{key:"store",value:function(){var p=this,m=function(g,w){w&&Object.keys(w).forEach(function(k){g[k]=w[k]})},b=this.worksheet,v=this.table,_=v.tl,s=_.row,o=_.col,h=0;if(v.headerRow){var a=b.getRow(s+h++);v.columns.forEach(function(g,w){var k=g.style,S=g.name,A=a.getCell(o+w);A.value=S,m(A,k)})}if(v.rows.forEach(function(g){var w=b.getRow(s+h++);g.forEach(function(k,S){var A=w.getCell(o+S);A.value=k,m(A,v.columns[S].style)})}),v.totalsRow){var d=b.getRow(s+h++);v.columns.forEach(function(g,w){var k=d.getCell(o+w);if(w===0)k.value=g.totalsRowLabel;else{var S=p.getFormula(g);k.value=S?{formula:g.totalsRowFormula,result:g.totalsRowResult}:null}m(k,g.style)})}}},{key:"load",value:function(p){var m=this,b=this.table,v=b.tl,_=v.row,s=v.col,o=0;if(b.headerRow){var h=p.getRow(_+o++);b.columns.forEach(function(d,g){h.getCell(s+g).value=d.name})}if(b.rows.forEach(function(d){var g=p.getRow(_+o++);d.forEach(function(w,k){g.getCell(s+k).value=w})}),b.totalsRow){var a=p.getRow(_+o++);b.columns.forEach(function(d,g){var w=a.getCell(s+g);g===0?w.value=d.totalsRowLabel:m.getFormula(d)&&(w.value={formula:d.totalsRowFormula,result:d.totalsRowResult})})}}},{key:"cacheState",value:function(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}},{key:"commit",value:function(){if(this._cache){this.validate();var p=f.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var m=0;m<this._cache.tableHeight;m++)for(var b=this.worksheet.getRow(p.row+m),v=0;v<this._cache.width;v++)b.getCell(p.col+v).value=null;else{for(var _=this.tableHeight;_<this._cache.tableHeight;_++)for(var s=this.worksheet.getRow(p.row+_),o=0;o<this._cache.width;o++)s.getCell(p.col+o).value=null;for(var h=0;h<this.tableHeight;h++)for(var a=this.worksheet.getRow(p.row+h),d=this.width;d<this._cache.width;d++)a.getCell(p.col+d).value=null}this.store()}}},{key:"addRow",value:function(p,m){this.cacheState(),m===void 0?this.table.rows.push(p):this.table.rows.splice(m,0,p)}},{key:"removeRows",value:function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(p,m)}},{key:"getColumn",value:function(p){var m=this.table.columns[p];return new l(this,m,p)}},{key:"addColumn",value:function(p,m,b){this.cacheState(),b===void 0?(this.table.columns.push(p),this.table.rows.forEach(function(v,_){v.push(m[_])})):(this.table.columns.splice(b,0,p),this.table.rows.forEach(function(v,_){v.splice(b,0,m[_])}))}},{key:"removeColumns",value:function(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(p,m),this.table.rows.forEach(function(b){b.splice(p,m)})}},{key:"_assign",value:function(p,m,b){this.cacheState(),p[m]=b}},{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?1:0)}},{key:"tableHeight",get:function(){return this.filterHeight+(this.table.totalsRow?1:0)}},{key:"model",get:function(){return this.table},set:function(p){this.table=p}},{key:"ref",get:function(){return this.table.ref},set:function(p){this._assign(this.table,"ref",p)}},{key:"name",get:function(){return this.table.name},set:function(p){this.table.name=p}},{key:"displayName",get:function(){return this.table.displyName||this.table.name}},{key:"displayNamename",set:function(p){this.table.displayName=p}},{key:"headerRow",get:function(){return this.table.headerRow},set:function(p){this._assign(this.table,"headerRow",p)}},{key:"totalsRow",get:function(){return this.table.totalsRow},set:function(p){this._assign(this.table,"totalsRow",p)}},{key:"theme",get:function(){return this.table.style.name},set:function(p){this.table.style.name=p}},{key:"showFirstColumn",get:function(){return this.table.style.showFirstColumn},set:function(p){this.table.style.showFirstColumn=p}},{key:"showLastColumn",get:function(){return this.table.style.showLastColumn},set:function(p){this.table.style.showLastColumn=p}},{key:"showRowStripes",get:function(){return this.table.style.showRowStripes},set:function(p){this.table.style.showRowStripes=p}},{key:"showColumnStripes",get:function(){return this.table.style.showColumnStripes},set:function(p){this.table.style.showColumnStripes=p}}]),y}();r.exports=u},{"../utils/col-cache":19}],13:[function(t,r,e){function n(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function i(m,b){for(var v=0;v<b.length;v++){var _=b[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,b,v){return b&&i(m.prototype,b),v&&i(m,v),m}var f=t("./worksheet"),l=t("./defined-names"),u=t("../xlsx/xlsx"),y=t("../csv/csv"),p=function(){function m(){n(this,m),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 l}return c(m,[{key:"addWorksheet",value:function(b,v){var _=this.nextId;if(b&&b.length>31&&console.warn("Worksheet name ".concat(b," exceeds 31 chars. This will be truncated")),/[*?:/\\[\]]/.test(b))throw new Error("Worksheet name ".concat(b," cannot include any of the following characters: * ? : \\ / [ ]"));if(/(^')|('$)/.test(b))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(b));if(b=(b||"sheet".concat(_)).substring(0,31),this._worksheets.find(function(a){return a&&a.name.toLowerCase()===b.toLowerCase()}))throw new Error("Worksheet name already exists: ".concat(b));v&&(typeof v=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),v={properties:{tabColor:{argb:v}}}):(v.argb||v.theme||v.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),v={properties:{tabColor:v}}));var s=this._worksheets.reduce(function(a,d){return(d&&d.orderNo)>a?d.orderNo:a},0),o=Object.assign({},v,{id:_,name:b,orderNo:s+1,workbook:this}),h=new f(o);return this._worksheets[_]=h,h}},{key:"removeWorksheetEx",value:function(b){delete this._worksheets[b.id]}},{key:"removeWorksheet",value:function(b){var v=this.getWorksheet(b);v&&v.destroy()}},{key:"getWorksheet",value:function(b){return b===void 0?this._worksheets.find(Boolean):typeof b=="number"?this._worksheets[b]:typeof b=="string"?this._worksheets.find(function(v){return v&&v.name===b}):void 0}},{key:"eachSheet",value:function(b){this.worksheets.forEach(function(v){b(v,v.id)})}},{key:"clearThemes",value:function(){this._themes=void 0}},{key:"addImage",value:function(b){var v=this.media.length;return this.media.push(Object.assign({},b,{type:"image"})),v}},{key:"getImage",value:function(b){return this.media[b]}},{key:"xlsx",get:function(){return this._xlsx||(this._xlsx=new u(this)),this._xlsx}},{key:"csv",get:function(){return this._csv||(this._csv=new y(this)),this._csv}},{key:"nextId",get:function(){for(var b=1;b<this._worksheets.length;b++)if(!this._worksheets[b])return b;return this._worksheets.length||1}},{key:"worksheets",get:function(){return this._worksheets.slice(1).sort(function(b,v){return b.orderNo-v.orderNo}).filter(Boolean)}},{key:"definedNames",get:function(){return this._definedNames}},{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(b){return b.model}),sheets:this.worksheets.map(function(b){return b.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(b){var v=this;this.creator=b.creator,this.lastModifiedBy=b.lastModifiedBy,this.lastPrinted=b.lastPrinted,this.created=b.created,this.modified=b.modified,this.company=b.company,this.manager=b.manager,this.title=b.title,this.subject=b.subject,this.keywords=b.keywords,this.category=b.category,this.description=b.description,this.language=b.language,this.revision=b.revision,this.contentStatus=b.contentStatus,this.properties=b.properties,this.calcProperties=b.calcProperties,this._worksheets=[],b.worksheets.forEach(function(_){var s=_.id,o=_.name,h=_.state,a=b.sheets&&b.sheets.findIndex(function(d){return d.id===s});(v._worksheets[s]=new f({id:s,name:o,orderNo:a,state:h,workbook:v})).model=_}),this._definedNames.model=b.definedNames,this.views=b.views,this._themes=b.themes,this.media=b.media||[]}}]),m}();r.exports=p},{"../csv/csv":1,"../xlsx/xlsx":141,"./defined-names":6,"./worksheet":14}],14:[function(t,r,e){function n(D,N){var F=Object.keys(D);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(D);N&&(T=T.filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable})),F.push.apply(F,T)}return F}function i(D){for(var N=1;N<arguments.length;N++){var F=arguments[N]!=null?arguments[N]:{};N%2?n(Object(F),!0).forEach(function(T){c(D,T,F[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(F)):n(Object(F)).forEach(function(T){Object.defineProperty(D,T,Object.getOwnPropertyDescriptor(F,T))})}return D}function c(D,N,F){return N in D?Object.defineProperty(D,N,{value:F,enumerable:!0,configurable:!0,writable:!0}):D[N]=F,D}function f(D){return p(D)||y(D)||u(D)||l()}function l(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(D,N){if(D){if(typeof D=="string")return m(D,N);var F=Object.prototype.toString.call(D).slice(8,-1);return F==="Object"&&D.constructor&&(F=D.constructor.name),F==="Map"||F==="Set"?Array.from(D):F==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(F)?m(D,N):void 0}}function y(D){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(D))return Array.from(D)}function p(D){if(Array.isArray(D))return m(D)}function m(D,N){(N==null||N>D.length)&&(N=D.length);for(var F=0,T=new Array(N);F<N;F++)T[F]=D[F];return T}function b(D,N){if(!(D instanceof N))throw new TypeError("Cannot call a class as a function")}function v(D,N){for(var F=0;F<N.length;F++){var T=N[F];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(D,T.key,T)}}function _(D,N,F){return N&&v(D.prototype,N),F&&v(D,F),D}var s=t("../utils/under-dash"),o=t("../utils/col-cache"),h=t("./range"),a=t("./row"),d=t("./column"),g=t("./enums"),w=t("./image"),k=t("./table"),S=t("./data-validations"),A=t("../utils/encryptor"),j=function(){function D(N){b(this,D),N=N||{},this.id=N.id,this.orderNo=N.orderNo,this.name=N.name||"Sheet".concat(this.id),this.state=N.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this._workbook=N.workbook,this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},N.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:!(!N.pageSetup||!N.pageSetup.fitToWidth&&!N.pageSetup.fitToHeight||N.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},N.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},N.headerFooter),this.dataValidations=new S,this.views=N.views||[],this.autoFilter=N.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}return _(D,[{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"getColumnKey",value:function(N){return this._keys[N]}},{key:"setColumnKey",value:function(N,F){this._keys[N]=F}},{key:"deleteColumnKey",value:function(N){delete this._keys[N]}},{key:"eachColumnKey",value:function(N){s.each(this._keys,N)}},{key:"getColumn",value:function(N){if(typeof N=="string"){var F=this._keys[N];if(F)return F;N=o.l2n(N)}if(this._columns||(this._columns=[]),N>this._columns.length)for(var T=this._columns.length+1;T<=N;)this._columns.push(new d(this,T++));return this._columns[N-1]}},{key:"spliceColumns",value:function(N,F){for(var T=this,I=this._rows.length,x=arguments.length,O=new Array(x>2?x-2:0),R=2;R<x;R++)O[R-2]=arguments[R];if(O.length>0)for(var C=function(et){var ft=[N,F];O.forEach(function(bt){ft.push(bt[et]||null)});var gt=T.getRow(et+1);gt.splice.apply(gt,ft)},P=0;P<I;P++)C(P);else this._rows.forEach(function(et){et&&et.splice(N,F)});var L=O.length-F,H=N+F,U=this._columns.length;if(L<0)for(var B=N+O.length;B<=U;B++)this.getColumn(B).defn=this.getColumn(B-L).defn;else if(L>0)for(var W=U;W>=H;W--)this.getColumn(W+L).defn=this.getColumn(W).defn;for(var X=N;X<N+O.length;X++)this.getColumn(X).defn=null;this.workbook.definedNames.spliceColumns(this.name,N,F,O.length)}},{key:"_commitRow",value:function(){}},{key:"findRow",value:function(N){return this._rows[N-1]}},{key:"findRows",value:function(N,F){return this._rows.slice(N-1,N-1+F)}},{key:"getRow",value:function(N){var F=this._rows[N-1];return F||(F=this._rows[N-1]=new a(this,N)),F}},{key:"getRows",value:function(N,F){if(!(F<1)){for(var T=[],I=N;I<N+F;I++)T.push(this.getRow(I));return T}}},{key:"addRow",value:function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",T=this._nextRow,I=this.getRow(T);return I.values=N,this._setStyleOption(T,F[0]==="i"?F:"n"),I}},{key:"addRows",value:function(N){var F=this,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",I=[];return N.forEach(function(x){I.push(F.addRow(x,T))}),I}},{key:"insertRow",value:function(N,F){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(N,0,F),this._setStyleOption(N,T),this.getRow(N)}},{key:"insertRows",value:function(N,F){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows.apply(this,[N,0].concat(f(F))),T!=="n")for(var I=0;I<F.length;I++)T[0]==="o"&&this.findRow(F.length+N+I)!==void 0?this._copyStyle(F.length+N+I,N+I,T[1]==="+"):T[0]==="i"&&this.findRow(N-1)!==void 0&&this._copyStyle(N-1,N+I,T[1]==="+");return this.getRows(N,F.length)}},{key:"_setStyleOption",value:function(N){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";F[0]==="o"&&this.findRow(N+1)!==void 0?this._copyStyle(N+1,N,F[1]==="+"):F[0]==="i"&&this.findRow(N-1)!==void 0&&this._copyStyle(N-1,N,F[1]==="+")}},{key:"_copyStyle",value:function(N,F){var T=arguments.length>2&&arguments[2]!==void 0&&arguments[2],I=this.getRow(N),x=this.getRow(F);x.style=Object.freeze(i({},I.style)),I.eachCell({includeEmpty:T},function(O,R){x.getCell(R).style=Object.freeze(i({},O.style))}),x.height=I.height}},{key:"duplicateRow",value:function(N,F){var T=this,I=arguments.length>2&&arguments[2]!==void 0&&arguments[2],x=this._rows[N-1],O=new Array(F).fill(x.values);this.spliceRows.apply(this,[N+1,I?0:F].concat(f(O)));for(var R=function(P){var L=T._rows[N+P];L.style=x.style,L.height=x.height,x.eachCell({includeEmpty:!0},function(H,U){L.getCell(U).style=H.style})},C=0;C<F;C++)R(C)}},{key:"spliceRows",value:function(N,F){for(var T=this,I=N+F,x=arguments.length,O=new Array(x>2?x-2:0),R=2;R<x;R++)O[R-2]=arguments[R];var C,P,L=O.length,H=L-F,U=this._rows.length;if(H<0)for(C=I;C<=U;C++)(P=this._rows[C-1])?function(){var W=T.getRow(C+H);W.values=P.values,W.style=P.style,W.height=P.height,P.eachCell({includeEmpty:!0},function(X,et){W.getCell(et).style=X.style}),T._rows[C-1]=void 0}():this._rows[C+H-1]=void 0;else if(H>0)for(C=U;C>=I;C--)(P=this._rows[C-1])?function(){var W=T.getRow(C+H);W.values=P.values,W.style=P.style,W.height=P.height,P.eachCell({includeEmpty:!0},function(X,et){if(W.getCell(et).style=X.style,X._value.constructor.name==="MergeValue"){var ft=T.getRow(X._row._number+L).getCell(et),gt=X._value._master,bt=T.getRow(gt._row._number+L).getCell(gt._column._number);ft.merge(bt)}})}():this._rows[C+H-1]=void 0;for(C=0;C<L;C++){var B=this.getRow(N+C);B.style={},B.values=O[C]}this.workbook.definedNames.spliceRows(this.name,N,F,L)}},{key:"eachRow",value:function(N,F){if(F||(F=N,N=void 0),N&&N.includeEmpty)for(var T=this._rows.length,I=1;I<=T;I++)F(this.getRow(I),I);else this._rows.forEach(function(x){x&&x.hasValues&&F(x,x.number)})}},{key:"getSheetValues",value:function(){var N=[];return this._rows.forEach(function(F){F&&(N[F.number]=F.values)}),N}},{key:"findCell",value:function(N,F){var T=o.getAddress(N,F),I=this._rows[T.row-1];return I?I.findCell(T.col):void 0}},{key:"getCell",value:function(N,F){var T=o.getAddress(N,F);return this.getRow(T.row).getCellEx(T)}},{key:"mergeCells",value:function(){for(var N=arguments.length,F=new Array(N),T=0;T<N;T++)F[T]=arguments[T];var I=new h(F);this._mergeCellsInternal(I)}},{key:"mergeCellsWithoutStyle",value:function(){for(var N=arguments.length,F=new Array(N),T=0;T<N;T++)F[T]=arguments[T];var I=new h(F);this._mergeCellsInternal(I,!0)}},{key:"_mergeCellsInternal",value:function(N,F){s.each(this._merges,function(O){if(O.intersects(N))throw new Error("Cannot merge already merged cells")});for(var T=this.getCell(N.top,N.left),I=N.top;I<=N.bottom;I++)for(var x=N.left;x<=N.right;x++)(I>N.top||x>N.left)&&this.getCell(I,x).merge(T,F);this._merges[T.address]=N}},{key:"_unMergeMaster",value:function(N){var F=this._merges[N.address];if(F){for(var T=F.top;T<=F.bottom;T++)for(var I=F.left;I<=F.right;I++)this.getCell(T,I).unmerge();delete this._merges[N.address]}}},{key:"unMergeCells",value:function(){for(var N=arguments.length,F=new Array(N),T=0;T<N;T++)F[T]=arguments[T];for(var I=new h(F),x=I.top;x<=I.bottom;x++)for(var O=I.left;O<=I.right;O++){var R=this.findCell(x,O);R&&(R.type===g.ValueType.Merge?this._unMergeMaster(R.master):this._merges[R.address]&&this._unMergeMaster(R))}}},{key:"fillFormula",value:function(N,F,T){var I,x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared",O=o.decode(N),R=O.top,C=O.left,P=O.bottom,L=O.right,H=L-C+1,U=o.encodeAddress(R,C),B=x==="shared";I=typeof T=="function"?T:Array.isArray(T)?Array.isArray(T[0])?function(ft,gt){return T[ft-R][gt-C]}:function(ft,gt){return T[(ft-R)*H+(gt-C)]}:function(){};for(var W=!0,X=R;X<=P;X++)for(var et=C;et<=L;et++)W?(this.getCell(X,et).value={shareType:x,formula:F,ref:N,result:I(X,et)},W=!1):this.getCell(X,et).value=B?{sharedFormula:U,result:I(X,et)}:I(X,et)}},{key:"addImage",value:function(N,F){var T={type:"image",imageId:N,range:F};this._media.push(new w(this,T))}},{key:"getImages",value:function(){return this._media.filter(function(N){return N.type==="image"})}},{key:"addBackgroundImage",value:function(N){var F={type:"background",imageId:N};this._media.push(new w(this,F))}},{key:"getBackgroundImageId",value:function(){var N=this._media.find(function(F){return F.type==="background"});return N&&N.imageId}},{key:"protect",value:function(N,F){var T=this;return new Promise(function(I){T.sheetProtection={sheet:!0},F&&"spinCount"in F&&(F.spinCount=Number.isFinite(F.spinCount)?Math.round(Math.max(0,F.spinCount)):1e5),N&&(T.sheetProtection.algorithmName="SHA-512",T.sheetProtection.saltValue=A.randomBytes(16).toString("base64"),T.sheetProtection.spinCount=F&&"spinCount"in F?F.spinCount:1e5,T.sheetProtection.hashValue=A.convertPasswordToHash(N,"SHA512",T.sheetProtection.saltValue,T.sheetProtection.spinCount)),F&&(T.sheetProtection=Object.assign(T.sheetProtection,F),!N&&"spinCount"in F&&delete T.sheetProtection.spinCount),I()})}},{key:"unprotect",value:function(){this.sheetProtection=null}},{key:"addTable",value:function(N){var F=new k(this,N);return this.tables[N.name]=F,F}},{key:"getTable",value:function(N){return this.tables[N]}},{key:"removeTable",value:function(N){delete this.tables[N]}},{key:"getTables",value:function(){return Object.values(this.tables)}},{key:"addConditionalFormatting",value:function(N){this.conditionalFormattings.push(N)}},{key:"removeConditionalFormatting",value:function(N){typeof N=="number"?this.conditionalFormattings.splice(N,1):this.conditionalFormattings=N instanceof Function?this.conditionalFormattings.filter(N):[]}},{key:"_parseRows",value:function(N){var F=this;this._rows=[],N.rows.forEach(function(T){var I=new a(F,T.number);F._rows[I.number-1]=I,I.model=T})}},{key:"_parseMergeCells",value:function(N){var F=this;s.each(N.mergeCells,function(T){F.mergeCellsWithoutStyle(T)})}},{key:"workbook",get:function(){return this._workbook}},{key:"dimensions",get:function(){var N=new h;return this._rows.forEach(function(F){if(F){var T=F.dimensions;T&&N.expand(F.number,T.min,F.number,T.max)}}),N}},{key:"columns",get:function(){return this._columns},set:function(N){var F=this;this._headerRowCount=N.reduce(function(x,O){var R=(O.header?1:O.headers&&O.headers.length)||0;return Math.max(x,R)},0);var T=1,I=this._columns=[];N.forEach(function(x){var O=new d(F,T++,!1);I.push(O),O.defn=x})}},{key:"lastColumn",get:function(){return this.getColumn(this.columnCount)}},{key:"columnCount",get:function(){var N=0;return this.eachRow(function(F){N=Math.max(N,F.cellCount)}),N}},{key:"actualColumnCount",get:function(){var N=[],F=0;return this.eachRow(function(T){T.eachCell(function(I){var x=I.col;N[x]||(N[x]=!0,F++)})}),F}},{key:"_lastRowNumber",get:function(){for(var N=this._rows,F=N.length;F>0&&N[F-1]===void 0;)F--;return F}},{key:"_nextRow",get:function(){return this._lastRowNumber+1}},{key:"lastRow",get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:"rowCount",get:function(){return this._lastRowNumber}},{key:"actualRowCount",get:function(){var N=0;return this.eachRow(function(){N++}),N}},{key:"hasMerges",get:function(){return s.some(this._merges,Boolean)}},{key:"tabColor",get:function(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor},set:function(N){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=N}},{key:"model",get:function(){var N={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(I){return I.model}),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(function(I){return I.model}),conditionalFormattings:this.conditionalFormattings};N.cols=d.toModel(this.columns);var F=N.rows=[],T=N.dimensions=new h;return this._rows.forEach(function(I){var x=I&&I.model;x&&(T.expand(x.number,x.min,x.number,x.max),F.push(x))}),N.merges=[],s.each(this._merges,function(I){N.merges.push(I.range)}),N},set:function(N){var F=this;this.name=N.name,this._columns=d.fromModel(this,N.cols),this._parseRows(N),this._parseMergeCells(N),this.dataValidations=new S(N.dataValidations),this.properties=N.properties,this.pageSetup=N.pageSetup,this.headerFooter=N.headerFooter,this.views=N.views,this.autoFilter=N.autoFilter,this._media=N.media.map(function(T){return new w(F,T)}),this.sheetProtection=N.sheetProtection,this.tables=N.tables.reduce(function(T,I){var x=new k;return x.model=I,T[I.name]=x,T},{}),this.conditionalFormattings=N.conditionalFormattings}}]),D}();r.exports=j},{"../utils/col-cache":19,"../utils/encryptor":20,"../utils/under-dash":25,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(t,r,e){t("core-js/modules/es.promise"),t("core-js/modules/es.object.assign"),t("core-js/modules/es.object.keys"),t("core-js/modules/es.object.values"),t("core-js/modules/es.symbol"),t("core-js/modules/es.symbol.async-iterator"),t("core-js/modules/es.array.iterator"),t("core-js/modules/es.array.includes"),t("core-js/modules/es.array.find-index"),t("core-js/modules/es.array.find"),t("core-js/modules/es.string.from-code-point"),t("core-js/modules/es.string.includes"),t("core-js/modules/es.number.is-nan"),t("regenerator-runtime/runtime");var n={Workbook:t("./doc/workbook")},i=t("./doc/enums");Object.keys(i).forEach(function(c){n[c]=i[c]}),r.exports=n},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":316,"core-js/modules/es.array.find-index":315,"core-js/modules/es.array.includes":317,"core-js/modules/es.array.iterator":318,"core-js/modules/es.number.is-nan":319,"core-js/modules/es.object.assign":320,"core-js/modules/es.object.keys":321,"core-js/modules/es.object.values":322,"core-js/modules/es.promise":323,"core-js/modules/es.string.from-code-point":324,"core-js/modules/es.string.includes":325,"core-js/modules/es.symbol":327,"core-js/modules/es.symbol.async-iterator":326,"regenerator-runtime/runtime":492}],16:[function(t,r,e){var n=typeof TextDecoder=="undefined"?null:new TextDecoder("utf-8");function i(c){return typeof c=="string"?c:n?n.decode(c):c.toString()}e.bufferToString=i},{}],17:[function(t,r,e){var n=typeof TextEncoder=="undefined"?null:new TextEncoder("utf-8"),i=t("buffer").Buffer;function c(f){return typeof f!="string"?f:n?i.from(n.encode(f).buffer):i.from(f)}e.stringToBuffer=c},{buffer:216}],18:[function(t,r,e){function n(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function i(y,p){for(var m=0;m<p.length;m++){var b=p[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}function c(y,p,m){return p&&i(y.prototype,p),m&&i(y,m),y}var f=t("./under-dash"),l=t("./col-cache"),u=function(){function y(p){n(this,y),this.template=p,this.sheets={}}return c(y,[{key:"addCell",value:function(p){this.addCellEx(l.decodeEx(p))}},{key:"getCell",value:function(p){return this.findCellEx(l.decodeEx(p),!0)}},{key:"findCell",value:function(p){return this.findCellEx(l.decodeEx(p),!1)}},{key:"findCellAt",value:function(p,m,b){var v=this.sheets[p],_=v&&v[m];return _&&_[b]}},{key:"addCellEx",value:function(p){if(p.top)for(var m=p.top;m<=p.bottom;m++)for(var b=p.left;b<=p.right;b++)this.getCellAt(p.sheetName,m,b);else this.findCellEx(p,!0)}},{key:"getCellEx",value:function(p){return this.findCellEx(p,!0)}},{key:"findCellEx",value:function(p,m){var b=this.findSheet(p,m),v=this.findSheetRow(b,p,m);return this.findRowCell(v,p,m)}},{key:"getCellAt",value:function(p,m,b){var v=this.sheets[p]||(this.sheets[p]=[]),_=v[m]||(v[m]=[]);return _[b]||(_[b]={sheetName:p,address:l.n2l(b)+m,row:m,col:b})}},{key:"removeCellEx",value:function(p){var m=this.findSheet(p);if(m){var b=this.findSheetRow(m,p);b&&delete b[p.col]}}},{key:"forEachInSheet",value:function(p,m){var b=this.sheets[p];b&&b.forEach(function(v,_){v&&v.forEach(function(s,o){s&&m(s,_,o)})})}},{key:"forEach",value:function(p){var m=this;f.each(this.sheets,function(b,v){m.forEachInSheet(v,p)})}},{key:"map",value:function(p){var m=[];return this.forEach(function(b){m.push(p(b))}),m}},{key:"findSheet",value:function(p,m){var b=p.sheetName;return this.sheets[b]?this.sheets[b]:m?this.sheets[b]=[]:void 0}},{key:"findSheetRow",value:function(p,m,b){var v=m.row;return p&&p[v]?p[v]:b?p[v]=[]:void 0}},{key:"findRowCell",value:function(p,m,b){var v=m.col;return p&&p[v]?p[v]:b?p[v]=this.template?Object.assign(m,JSON.parse(JSON.stringify(this.template))):m:void 0}},{key:"spliceRows",value:function(p,m,b,v){var _=this.sheets[p];if(_){for(var s=[],o=0;o<v;o++)s.push([]);_.splice.apply(_,[m,b].concat(s))}}},{key:"spliceColumns",value:function(p,m,b,v){var _=this.sheets[p];if(_){for(var s=[],o=0;o<v;o++)s.push(null);f.each(_,function(h){h.splice.apply(h,[m,b].concat(s))})}}}]),y}();r.exports=u},{"./col-cache":19,"./under-dash":25}],19:[function(t,r,e){function n(_,s){return u(_)||l(_,s)||c(_,s)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(_,s){if(_){if(typeof _=="string")return f(_,s);var o=Object.prototype.toString.call(_).slice(8,-1);return o==="Object"&&_.constructor&&(o=_.constructor.name),o==="Map"||o==="Set"?Array.from(_):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?f(_,s):void 0}}function f(_,s){(s==null||s>_.length)&&(s=_.length);for(var o=0,h=new Array(s);o<s;o++)h[o]=_[o];return h}function l(_,s){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(_)){var o=[],h=!0,a=!1,d=void 0;try{for(var g,w=_[Symbol.iterator]();!(h=(g=w.next()).done)&&(o.push(g.value),!s||o.length!==s);h=!0);}catch(k){a=!0,d=k}finally{try{h||w.return==null||w.return()}finally{if(a)throw d}}return o}}function u(_){if(Array.isArray(_))return _}function y(_,s){var o=Object.keys(_);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(_);s&&(h=h.filter(function(a){return Object.getOwnPropertyDescriptor(_,a).enumerable})),o.push.apply(o,h)}return o}function p(_){for(var s=1;s<arguments.length;s++){var o=arguments[s]!=null?arguments[s]:{};s%2?y(Object(o),!0).forEach(function(h){m(_,h,o[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(o)):y(Object(o)).forEach(function(h){Object.defineProperty(_,h,Object.getOwnPropertyDescriptor(o,h))})}return _}function m(_,s,o){return s in _?Object.defineProperty(_,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):_[s]=o,_}var b=/^[A-Z]+\d+$/,v={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:function(_){return _<=26?1:_<=676?2:3},_fill:function(_){var s,o,h,a,d,g=1;if(_>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&_>=1){for(;g<=26;)s=this._dictionary[g-1],this._n2l[g]=s,this._l2n[s]=g,g++;this._l2nFill=1}if(this._l2nFill<2&&_>=2){for(g=27;g<=702;)h=(o=g-27)%26,a=Math.floor(o/26),s=this._dictionary[a]+this._dictionary[h],this._n2l[g]=s,this._l2n[s]=g,g++;this._l2nFill=2}if(this._l2nFill<3&&_>=3){for(g=703;g<=16384;)h=(o=g-703)%26,a=Math.floor(o/26)%26,d=Math.floor(o/676),s=this._dictionary[d]+this._dictionary[a]+this._dictionary[h],this._n2l[g]=s,this._l2n[s]=g,g++;this._l2nFill=3}},l2n:function(_){if(this._l2n[_]||this._fill(_.length),!this._l2n[_])throw new Error("Out of bounds. Invalid column letter: ".concat(_));return this._l2n[_]},n2l:function(_){if(_<1||_>16384)throw new Error("".concat(_," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[_]||this._fill(this._level(_)),this._n2l[_]},_hash:{},validateAddress:function(_){if(!b.test(_))throw new Error("Invalid Address: ".concat(_));return!0},decodeAddress:function(_){var s=_.length<5&&this._hash[_];if(s)return s;for(var o,h=!1,a="",d=0,g=!1,w="",k=0,S=0;S<_.length;S++)if(o=_.charCodeAt(S),!g&&o>=65&&o<=90)h=!0,a+=_[S],d=26*d+o-64;else if(o>=48&&o<=57)g=!0,w+=_[S],k=10*k+o-48;else if(g&&h&&o!==36)break;if(h){if(d>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(a))}else d=void 0;g||(k=void 0);var A={address:_=a+w,col:d,row:k,$col$row:"$".concat(a,"$").concat(w)};return d<=100&&k<=100&&(this._hash[_]=A,this._hash[A.$col$row]=A),A},getAddress:function(_,s){if(s){var o=this.n2l(s)+_;return this.decodeAddress(o)}return this.decodeAddress(_)},decode:function(_){var s=_.split(":");if(s.length===2){var o=this.decodeAddress(s[0]),h=this.decodeAddress(s[1]),a={top:Math.min(o.row,h.row),left:Math.min(o.col,h.col),bottom:Math.max(o.row,h.row),right:Math.max(o.col,h.col)};return a.tl=this.n2l(a.left)+a.top,a.br=this.n2l(a.right)+a.bottom,a.dimensions="".concat(a.tl,":").concat(a.br),a}return this.decodeAddress(_)},decodeEx:function(_){var s=_.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),o=s[1]||s[2],h=s[3],a=h.split(":");if(a.length>1){var d=this.decodeAddress(a[0]),g=this.decodeAddress(a[1]),w=Math.min(d.row,g.row),k=Math.min(d.col,g.col),S=Math.max(d.row,g.row),A=Math.max(d.col,g.col);return d=this.n2l(k)+w,g=this.n2l(A)+S,{top:w,left:k,bottom:S,right:A,sheetName:o,tl:{address:d,col:k,row:w,$col$row:"$".concat(this.n2l(k),"$").concat(w),sheetName:o},br:{address:g,col:A,row:S,$col$row:"$".concat(this.n2l(A),"$").concat(S),sheetName:o},dimensions:"".concat(d,":").concat(g)}}if(h.startsWith("#"))return o?{sheetName:o,error:h}:{error:h};var j=this.decodeAddress(h);return o?p({sheetName:o},j):j},encodeAddress:function(_,s){return v.n2l(s)+_},encode:function(){switch(arguments.length){case 2:return v.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(v.encodeAddress(arguments[0],arguments[1]),":").concat(v.encodeAddress(arguments[2],arguments[3]));default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange:function(_,s){var o=n(_,5),h=o[0],a=o[1],d=o[3],g=o[4],w=n(s,2),k=w[0],S=w[1];return k>=h&&k<=d&&S>=a&&S<=g}};r.exports=v},{}],20:[function(t,r,e){(function(n){var i=t("crypto"),c={hash:function(f){for(var l=i.createHash(f),u=arguments.length,y=new Array(u>1?u-1:0),p=1;p<u;p++)y[p-1]=arguments[p];return l.update(n.concat(y)),l.digest()},convertPasswordToHash:function(f,l,u,y){if(l=l.toLowerCase(),i.getHashes().indexOf(l)<0)throw new Error("Hash algorithm '".concat(l,"' not supported!"));for(var p=n.from(f,"utf16le"),m=this.hash(l,n.from(u,"base64"),p),b=0;b<y;b++){var v=n.alloc(4);v.writeUInt32LE(b,0),m=this.hash(l,m,v)}return m.toString("base64")},randomBytes:function(f){return i.randomBytes(f)}};r.exports=c}).call(this,t("buffer").Buffer)},{buffer:216,crypto:335}],21:[function(t,r,e){function n(m){return new f(m)}function i(m){return function(){return new c(m.apply(this,arguments))}}function c(m){var b,v;function _(h,a){return new Promise(function(d,g){var w={key:h,arg:a,resolve:d,reject:g,next:null};v?v=v.next=w:(b=v=w,s(h,a))})}function s(h,a){try{var d=m[h](a),g=d.value,w=g instanceof f;Promise.resolve(w?g.wrapped:g).then(function(k){w?s(h==="return"?"return":"next",k):o(d.done?"return":"normal",k)},function(k){s("throw",k)})}catch(k){o("throw",k)}}function o(h,a){switch(h){case"return":b.resolve({value:a,done:!0});break;case"throw":b.reject(a);break;default:b.resolve({value:a,done:!1})}(b=b.next)?s(b.key,b.arg):v=null}this._invoke=_,typeof m.return!="function"&&(this.return=void 0)}function f(m){this.wrapped=m}function l(m){var b;if(typeof Symbol!="undefined"&&(Symbol.asyncIterator&&(b=m[Symbol.asyncIterator])!=null||Symbol.iterator&&(b=m[Symbol.iterator])!=null))return b.call(m);throw new TypeError("Object is not async iterable")}typeof Symbol=="function"&&Symbol.asyncIterator&&(c.prototype[Symbol.asyncIterator]=function(){return this}),c.prototype.next=function(m){return this._invoke("next",m)},c.prototype.throw=function(m){return this._invoke("throw",m)},c.prototype.return=function(m){return this._invoke("return",m)};var u=t("saxes").SaxesParser,y=t("readable-stream").PassThrough,p=t("./browser-buffer-decode").bufferToString;r.exports=function(){var m=i(Me.mark(function b(v){var _,s,o,h,a,d,g,w,k,S;return Me.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:v.pipe&&!v[Symbol.asyncIterator]&&(v=v.pipe(new y)),(_=new u).on("error",function(j){s=j}),o=[],_.on("opentag",function(j){return o.push({eventType:"opentag",value:j})}),_.on("text",function(j){return o.push({eventType:"text",value:j})}),_.on("closetag",function(j){return o.push({eventType:"closetag",value:j})}),h=!0,a=!1,A.prev=9,g=l(v);case 11:return A.next=13,n(g.next());case 13:return w=A.sent,h=w.done,A.next=17,n(w.value);case 17:if(k=A.sent,h){A.next=29;break}if(S=k,_.write(p(S)),!s){A.next=23;break}throw s;case 23:return A.next=25,o;case 25:o=[];case 26:h=!0,A.next=11;break;case 29:A.next=35;break;case 31:A.prev=31,A.t0=A.catch(9),a=!0,d=A.t0;case 35:if(A.prev=35,A.prev=36,h||g.return==null){A.next=40;break}return A.next=40,n(g.return());case 40:if(A.prev=40,!a){A.next=43;break}throw d;case 43:return A.finish(40);case 44:return A.finish(35);case 45:case"end":return A.stop()}},b,null,[[9,31,35,45],[36,,40,44]])}));return function(b){return m.apply(this,arguments)}}()},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],22:[function(t,r,e){var n=t("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,c=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function f(l,u,y){var p=n.decode(u),m=n.decode(y);return l.replace(i,function(b,v,_,s,o){if(o)return b;var h=c.exec(s);if(h){var a=h[1],d=h[2].toUpperCase(),g=h[3],w=h[4];if(d.length>3||d.length===3&&d>"XFD")return b;var k=n.l2n(d),S=parseInt(w,10);return a||(k+=m.col-p.col),g||(S+=m.row-p.row),(v||"")+(a||"")+n.n2l(k)+(g||"")+S}return b})}r.exports={slideFormula:f}},{"./col-cache":19}],23:[function(t,r,e){(function(n,i){function c(a,d,g,w,k,S,A){try{var j=a[S](A),D=j.value}catch(N){return void g(N)}j.done?d(D):Promise.resolve(D).then(w,k)}function f(a){return function(){var d=this,g=arguments;return new Promise(function(w,k){var S=a.apply(d,g);function A(D){c(S,w,k,A,j,"next",D)}function j(D){c(S,w,k,A,j,"throw",D)}A(void 0)})}}function l(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function u(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function y(a,d,g){return d&&u(a.prototype,d),g&&u(a,g),a}var p=t("readable-stream"),m=t("./utils"),b=t("./string-buf"),v=function(){function a(d,g){l(this,a),this._data=d,this._encoding=g}return y(a,[{key:"copy",value:function(d,g,w,k){return this.toBuffer().copy(d,g,w,k)}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=i.from(this._data,this._encoding)),this._buffer}},{key:"length",get:function(){return this.toBuffer().length}}]),a}(),_=function(){function a(d){l(this,a),this._data=d}return y(a,[{key:"copy",value:function(d,g,w,k){return this._data._buf.copy(d,g,w,k)}},{key:"toBuffer",value:function(){return this._data.toBuffer()}},{key:"length",get:function(){return this._data.length}}]),a}(),s=function(){function a(d){l(this,a),this._data=d}return y(a,[{key:"copy",value:function(d,g,w,k){this._data.copy(d,g,w,k)}},{key:"toBuffer",value:function(){return this._data}},{key:"length",get:function(){return this._data.length}}]),a}(),o=function(){function a(d){l(this,a),this.size=d,this.buffer=i.alloc(d),this.iRead=0,this.iWrite=0}return y(a,[{key:"toBuffer",value:function(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;var d=i.alloc(this.iWrite-this.iRead);return this.buffer.copy(d,0,this.iRead,this.iWrite),d}},{key:"read",value:function(d){var g;return d===0?null:d===void 0||d>=this.length?(g=this.toBuffer(),this.iRead=this.iWrite,g):(g=i.alloc(d),this.buffer.copy(g,0,this.iRead,d),this.iRead+=d,g)}},{key:"write",value:function(d,g,w){var k=Math.min(w,this.size-this.iWrite);return d.copy(this.buffer,this.iWrite,g,g+k),this.iWrite+=k,k}},{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}}]),a}(),h=function(a){a=a||{},this.bufSize=a.bufSize||1048576,this.buffers=[],this.batch=a.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};m.inherits(h,p.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return i.concat(this.buffers.map(function(a){return a.toBuffer()}))}},_getWritableBuffer:function(){if(this.buffers.length){var a=this.buffers[this.buffers.length-1];if(!a.full)return a}var d=new o(this.bufSize);return this.buffers.push(d),d},_pipe:function(a){var d=this;return f(Me.mark(function g(){var w;return Me.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return w=function(S){return new Promise(function(A){S.write(a.toBuffer(),function(){A()})})},k.next=3,Promise.all(d.pipes.map(w));case 3:case"end":return k.stop()}},g)}))()},_writeToBuffers:function(a){for(var d=0,g=a.length;d<g;)d+=this._getWritableBuffer().write(a,d,g-d)},write:function(a,d,g){var w=this;return f(Me.mark(function k(){var S;return Me.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(d instanceof Function&&(g=d,d="utf8"),g=g||m.nop,!(a instanceof b)){A.next=6;break}S=new _(a),A.next=15;break;case 6:if(!(a instanceof i)){A.next=10;break}S=new s(a),A.next=15;break;case 10:if(!(typeof a=="string"||a instanceof String||a instanceof ArrayBuffer)){A.next=14;break}S=new v(a,d),A.next=15;break;case 14:throw new Error("Chunk must be one of type String, Buffer or StringBuf.");case 15:if(!w.pipes.length){A.next=31;break}if(!w.batch){A.next=21;break}for(w._writeToBuffers(S);!w.corked&&w.buffers.length>1;)w._pipe(w.buffers.shift());A.next=29;break;case 21:if(w.corked){A.next=27;break}return A.next=24,w._pipe(S);case 24:g(),A.next=29;break;case 27:w._writeToBuffers(S),n.nextTick(g);case 29:A.next=34;break;case 31:w.paused||w.emit("data",S.toBuffer()),w._writeToBuffers(S),w.emit("readable");case 34:return A.abrupt("return",!0);case 35:case"end":return A.stop()}},k)}))()},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(a,d,g){var w=this,k=function(S){S?g(S):(w._flush(),w.pipes.forEach(function(A){A.end()}),w.emit("finish"))};a?this.write(a,d,k):k()},read:function(a){var d;if(a){for(d=[];a&&this.buffers.length&&!this.buffers[0].eod;){var g=this.buffers[0],w=g.read(a);a-=w.length,d.push(w),g.eod&&g.full&&this.buffers.shift()}return i.concat(d)}return d=this.buffers.map(function(k){return k.toBuffer()}).filter(Boolean),this.buffers=[],i.concat(d)},setEncoding:function(a){this.encoding=a},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(a){this.pipes.push(a),!this.paused&&this.buffers.length&&this.end()},unpipe:function(a){this.pipes=this.pipes.filter(function(d){return d!==a})},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}}),r.exports=h}).call(this,t("_process"),t("buffer").Buffer)},{"./string-buf":24,"./utils":26,_process:467,buffer:216,"readable-stream":491}],24:[function(t,r,e){(function(n){function i(u,y){if(!(u instanceof y))throw new TypeError("Cannot call a class as a function")}function c(u,y){for(var p=0;p<y.length;p++){var m=y[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(u,m.key,m)}}function f(u,y,p){return y&&c(u.prototype,y),p&&c(u,p),u}var l=function(){function u(y){i(this,u),this._buf=n.alloc(y&&y.size||16384),this._encoding=y&&y.encoding||"utf8",this._inPos=0,this._buffer=void 0}return f(u,[{key:"toBuffer",value:function(){return this._buffer||(this._buffer=n.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}},{key:"reset",value:function(y){y=y||0,this._buffer=void 0,this._inPos=y}},{key:"_grow",value:function(y){for(var p=2*this._buf.length;p<y;)p*=2;var m=n.alloc(p);this._buf.copy(m,0),this._buf=m}},{key:"addText",value:function(y){this._buffer=void 0;for(var p=this._inPos+this._buf.write(y,this._inPos,this._encoding);p>=this._buf.length-4;)this._grow(this._inPos+y.length),p=this._inPos+this._buf.write(y,this._inPos,this._encoding);this._inPos=p}},{key:"addStringBuf",value:function(y){y.length&&(this._buffer=void 0,this.length+y.length>this.capacity&&this._grow(this.length+y.length),y._buf.copy(this._buf,this._inPos,0,y.length),this._inPos+=y.length)}},{key:"length",get:function(){return this._inPos}},{key:"capacity",get:function(){return this._buf.length}},{key:"buffer",get:function(){return this._buf}}]),u}();r.exports=l}).call(this,t("buffer").Buffer)},{buffer:216}],25:[function(t,r,e){function n(l){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(l)}var i=Object.prototype.toString,c=/["&<>]/,f={each:function(l,u){l&&(Array.isArray(l)?l.forEach(u):Object.keys(l).forEach(function(y){u(l[y],y)}))},some:function(l,u){return!!l&&(Array.isArray(l)?l.some(u):Object.keys(l).some(function(y){return u(l[y],y)}))},every:function(l,u){return!l||(Array.isArray(l)?l.every(u):Object.keys(l).every(function(y){return u(l[y],y)}))},map:function(l,u){return l?Array.isArray(l)?l.map(u):Object.keys(l).map(function(y){return u(l[y],y)}):[]},keyBy:function(l,u){return l.reduce(function(y,p){return y[p[u]]=p,y},{})},isEqual:function(l,u){var y=n(l),p=n(u),m=Array.isArray(l),b=Array.isArray(u);return y===p&&(n(l)==="object"?m||b?!(!m||!b)&&l.length===u.length&&l.every(function(v,_){var s=u[_];return f.isEqual(v,s)}):f.every(l,function(v,_){var s=u[_];return f.isEqual(v,s)}):l===u)},escapeHtml:function(l){var u=c.exec(l);if(!u)return l;for(var y="",p="",m=0,b=u.index;b<l.length;b++){switch(l.charAt(b)){case'"':p=""";break;case"&":p="&";break;case"'":p="'";break;case"<":p="<";break;case">":p=">";break;default:continue}m!==b&&(y+=l.substring(m,b)),m=b+1,y+=p}return m!==b?y+l.substring(m,b):y},strcmp:function(l,u){return l<u?-1:l>u?1:0},isUndefined:function(l){return i.call(l)==="[object Undefined]"},isObject:function(l){return i.call(l)==="[object Object]"},deepMerge:function(){var l,u,y,p=arguments[0]||{},m=arguments.length;function b(_,s){l=p[s],y=Array.isArray(_),f.isObject(_)||y?(y?(y=!1,u=l&&Array.isArray(l)?l:[]):u=l&&f.isObject(l)?l:{},p[s]=f.deepMerge(u,_)):f.isUndefined(_)||(p[s]=_)}for(var v=0;v<m;v++)f.each(arguments[v],b);return p}};r.exports=f},{}],26:[function(t,r,e){(function(n,i){var c=t("fs"),f=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,l={nop:function(){},promiseImmediate:function(u){return new Promise(function(y){n.setImmediate?i(function(){y(u)}):setTimeout(function(){y(u)},1)})},inherits:function(u,y,p,m){u.super_=y,m||(m=p,p=null),p&&Object.keys(p).forEach(function(v){Object.defineProperty(u,v,Object.getOwnPropertyDescriptor(p,v))});var b={constructor:{value:u,enumerable:!1,writable:!1,configurable:!0}};m&&Object.keys(m).forEach(function(v){b[v]=Object.getOwnPropertyDescriptor(m,v)}),u.prototype=Object.create(y.prototype,b)},dateToExcel:function(u,y){return 25569+u.getTime()/864e5-(y?1462:0)},excelToDate:function(u,y){var p=Math.round(24*(u-25569+(y?1462:0))*3600*1e3);return new Date(p)},parsePath:function(u){var y=u.lastIndexOf("/");return{path:u.substring(0,y),name:u.substring(y+1)}},getRelsPath:function(u){var y=l.parsePath(u);return"".concat(y.path,"/_rels/").concat(y.name,".rels")},xmlEncode:function(u){var y=f.exec(u);if(!y)return u;for(var p="",m="",b=0,v=y.index;v<u.length;v++){var _=u.charCodeAt(v);switch(_){case 34:m=""";break;case 38:m="&";break;case 39:m="'";break;case 60:m="<";break;case 62:m=">";break;case 127:m="";break;default:if(_<=31&&(_<=8||_>=11&&_!==13)){m="";break}continue}b!==v&&(p+=u.substring(b,v)),b=v+1,m&&(p+=m)}return b!==v?p+u.substring(b,v):p},xmlDecode:function(u){return u.replace(/&([a-z]*);/g,function(y){switch(y){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return y}})},validInt:function(u){var y=parseInt(u,10);return Number.isNaN(y)?0:y},isDateFmt:function(u){return!!u&&(u=(u=u.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null},fs:{exists:function(u){return new Promise(function(y){c.access(u,c.constants.F_OK,function(p){y(!p)})})}},toIsoDateString:function(u){return u.toIsoString().subsstr(0,10)}};r.exports=l}).call(this,dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("timers").setImmediate)},{fs:215,timers:521}],27:[function(t,r,e){function n(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function i(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function c(a,d,g){return d&&i(a.prototype,d),g&&i(a,g),a}var f=t("./under-dash"),l=t("./utils"),u="<",y=">",p="</",m="/>",b='="',v='"',_=" ";function s(a,d,g){a.push(_),a.push(d),a.push(b),a.push(l.xmlEncode(g.toString())),a.push(v)}function o(a,d){d&&f.each(d,function(g,w){g!==void 0&&s(a,w,g)})}var h=function(){function a(){n(this,a),this._xml=[],this._stack=[],this._rollbacks=[]}return c(a,[{key:"openXml",value:function(d){var g=this._xml;g.push("<?xml"),o(g,d),g.push(`?>
|
||
`)}},{key:"openNode",value:function(d,g){var w=this.tos,k=this._xml;w&&this.open&&k.push(y),this._stack.push(d),k.push(u),k.push(d),o(k,g),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(d,g){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");g!==void 0&&s(this._xml,d,g)}},{key:"addAttributes",value:function(d){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");o(this._xml,d)}},{key:"writeText",value:function(d){var g=this._xml;this.open&&(g.push(y),this.open=!1),this.leaf=!1,g.push(l.xmlEncode(d.toString()))}},{key:"writeXml",value:function(d){this.open&&(this._xml.push(y),this.open=!1),this.leaf=!1,this._xml.push(d)}},{key:"closeNode",value:function(){var d=this._stack.pop(),g=this._xml;this.leaf?g.push(m):(g.push(p),g.push(d),g.push(y)),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(d,g,w){this.openNode(d,g),w!==void 0&&this.writeText(w),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 d=this._rollbacks.pop();this._xml.length>d.xml&&this._xml.splice(d.xml,this._xml.length-d.xml),this._stack.length>d.stack&&this._stack.splice(d.stack,this._stack.length-d.stack),this.leaf=d.leaf,this.open=d.open}},{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:"xml",get:function(){return this.closeAll(),this._xml.join("")}}]),a}();h.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},r.exports=h},{"./under-dash":25,"./utils":26}],28:[function(t,r,e){(function(n){function i(k){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(k)}function c(k,S,A,j,D,N,F){try{var T=k[N](F),I=T.value}catch(x){return void A(x)}T.done?S(I):Promise.resolve(I).then(j,D)}function f(k){return function(){var S=this,A=arguments;return new Promise(function(j,D){var N=k.apply(S,A);function F(I){c(N,j,D,F,T,"next",I)}function T(I){c(N,j,D,F,T,"throw",I)}F(void 0)})}}function l(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function u(k,S){for(var A=0;A<S.length;A++){var j=S[A];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(k,j.key,j)}}function y(k,S,A){return S&&u(k.prototype,S),A&&u(k,A),k}function p(k,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(S&&S.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),S&&m(k,S)}function m(k,S){return(m=Object.setPrototypeOf||function(A,j){return A.__proto__=j,A})(k,S)}function b(k){var S=s();return function(){var A,j=o(k);if(S){var D=o(this).constructor;A=Reflect.construct(j,arguments,D)}else A=j.apply(this,arguments);return v(this,A)}}function v(k,S){return!S||i(S)!=="object"&&typeof S!="function"?_(k):S}function _(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function s(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(k){return!1}}function o(k){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)})(k)}var h=t("events"),a=t("jszip"),d=t("./stream-buf"),g=t("./browser-buffer-encode").stringToBuffer,w=function(k){p(A,k);var S=b(A);function A(j){var D;return l(this,A),(D=S.call(this)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},j),D.zip=new a,D.stream=new d,D}return y(A,[{key:"append",value:function(j,D){D.hasOwnProperty("base64")&&D.base64?this.zip.file(D.name,j,{base64:!0}):(n.browser&&typeof j=="string"&&(j=g(j)),this.zip.file(D.name,j))}},{key:"finalize",value:function(){var j=f(Me.mark(function N(){var F;return Me.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this.zip.generateAsync(this.options);case 2:F=T.sent,this.stream.end(F),this.emit("finish");case 5:case"end":return T.stop()}},N,this)}));function D(){return j.apply(this,arguments)}return D}()},{key:"read",value:function(j){return this.stream.read(j)}},{key:"setEncoding",value:function(j){return this.stream.setEncoding(j)}},{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(j,D){return this.stream.pipe(j,D)}},{key:"unpipe",value:function(j){return this.stream.unpipe(j)}},{key:"unshift",value:function(j){return this.stream.unshift(j)}},{key:"wrap",value:function(j){return this.stream.wrap(j)}}]),A}(h.EventEmitter);r.exports={ZipWriter:w}}).call(this,t("_process"))},{"./browser-buffer-encode":17,"./stream-buf":23,_process:467,events:367,jszip:399}],29:[function(t,r,e){r.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"}}},{}],30:[function(t,r,e){r.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"}},{}],31:[function(t,r,e){function n(s,o){var h;if(typeof Symbol=="undefined"||s[Symbol.iterator]==null){if(Array.isArray(s)||(h=i(s))||o&&s&&typeof s.length=="number"){h&&(s=h);var a=0,d=function(){};return{s:d,n:function(){return a>=s.length?{done:!0}:{done:!1,value:s[a++]}},e:function(S){throw S},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g,w=!0,k=!1;return{s:function(){h=s[Symbol.iterator]()},n:function(){var S=h.next();return w=S.done,S},e:function(S){k=!0,g=S},f:function(){try{w||h.return==null||h.return()}finally{if(k)throw g}}}}function i(s,o){if(s){if(typeof s=="string")return c(s,o);var h=Object.prototype.toString.call(s).slice(8,-1);return h==="Object"&&s.constructor&&(h=s.constructor.name),h==="Map"||h==="Set"?Array.from(s):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?c(s,o):void 0}}function c(s,o){(o==null||o>s.length)&&(o=s.length);for(var h=0,a=new Array(o);h<o;h++)a[h]=s[h];return a}function f(s,o,h,a,d,g,w){try{var k=s[g](w),S=k.value}catch(A){return void h(A)}k.done?o(S):Promise.resolve(S).then(a,d)}function l(s){return function(){var o=this,h=arguments;return new Promise(function(a,d){var g=s.apply(o,h);function w(S){f(g,a,d,w,k,"next",S)}function k(S){f(g,a,d,w,k,"throw",S)}w(void 0)})}}function u(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function y(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function p(s,o,h){return o&&y(s.prototype,o),h&&y(s,h),s}function m(s){var o;if(typeof Symbol!="undefined"&&(Symbol.asyncIterator&&(o=s[Symbol.asyncIterator])!=null||Symbol.iterator&&(o=s[Symbol.iterator])!=null))return o.call(s);throw new TypeError("Object is not async iterable")}var b=t("../../utils/parse-sax"),v=t("../../utils/xml-stream"),_=function(){function s(){u(this,s)}return p(s,[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(o){}},{key:"parseText",value:function(o){}},{key:"parseClose",value:function(o){}},{key:"reconcile",value:function(o,h){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach(function(o){o instanceof s?o.reset():o.xform&&o.xform.reset()})}},{key:"mergeModel",value:function(o){this.model=Object.assign(this.model||{},o)}},{key:"parse",value:function(){var o=l(Me.mark(function a(d){var g,w,k,S,A,j,D,N,F,T,I;return Me.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:g=!0,w=!1,x.prev=2,S=m(d);case 4:return x.next=6,S.next();case 6:return A=x.sent,g=A.done,x.next=10,A.value;case 10:if(j=x.sent,g){x.next=42;break}D=n(j),x.prev=14,D.s();case 16:if((N=D.n()).done){x.next=31;break}if(F=N.value,T=F.eventType,I=F.value,T!=="opentag"){x.next=22;break}this.parseOpen(I),x.next=29;break;case 22:if(T!=="text"){x.next=26;break}this.parseText(I),x.next=29;break;case 26:if(T!=="closetag"){x.next=29;break}if(this.parseClose(I.name)){x.next=29;break}return x.abrupt("return",this.model);case 29:x.next=16;break;case 31:x.next=36;break;case 33:x.prev=33,x.t0=x.catch(14),D.e(x.t0);case 36:return x.prev=36,D.f(),x.finish(36);case 39:g=!0,x.next=4;break;case 42:x.next=48;break;case 44:x.prev=44,x.t1=x.catch(2),w=!0,k=x.t1;case 48:if(x.prev=48,x.prev=49,g||S.return==null){x.next=53;break}return x.next=53,S.return();case 53:if(x.prev=53,!w){x.next=56;break}throw k;case 56:return x.finish(53);case 57:return x.finish(48);case 58:return x.abrupt("return",this.model);case 59:case"end":return x.stop()}},a,this,[[2,44,48,58],[14,33,36,39],[49,,53,57]])}));function h(a){return o.apply(this,arguments)}return h}()},{key:"parseStream",value:function(){var o=l(Me.mark(function a(d){return Me.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",this.parse(b(d)));case 1:case"end":return g.stop()}},a,this)}));function h(a){return o.apply(this,arguments)}return h}()},{key:"toXml",value:function(o){var h=new v;return this.render(h,o),h.xml}},{key:"xml",get:function(){return this.toXml(this.model)}}],[{key:"toAttribute",value:function(o,h){var a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(o===void 0){if(a)return h}else if(a||o!==h)return o.toString()}},{key:"toStringAttribute",value:function(o,h){var a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(o,h,a)}},{key:"toStringValue",value:function(o,h){return o===void 0?h:o}},{key:"toBoolAttribute",value:function(o,h){var a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(o===void 0){if(a)return h}else if(a||o!==h)return o?"1":"0"}},{key:"toBoolValue",value:function(o,h){return o===void 0?h:o==="1"}},{key:"toIntAttribute",value:function(o,h){var a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(o,h,a)}},{key:"toIntValue",value:function(o,h){return o===void 0?h:parseInt(o,10)}},{key:"toFloatAttribute",value:function(o,h){var a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(o,h,a)}},{key:"toFloatValue",value:function(o,h){return o===void 0?h:parseFloat(o)}}]),s}();r.exports=_},{"../../utils/parse-sax":21,"../../utils/xml-stream":27}],32:[function(t,r,e){function n(d){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(d)}function i(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function c(d,g){for(var w=0;w<g.length;w++){var k=g[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(d,k.key,k)}}function f(d,g,w){return g&&c(d.prototype,g),w&&c(d,w),d}function l(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),g&&u(d,g)}function u(d,g){return(u=Object.setPrototypeOf||function(w,k){return w.__proto__=k,w})(d,g)}function y(d){var g=b();return function(){var w,k=v(d);if(g){var S=v(this).constructor;w=Reflect.construct(k,arguments,S)}else w=k.apply(this,arguments);return p(this,w)}}function p(d,g){return!g||n(g)!=="object"&&typeof g!="function"?m(d):g}function m(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(d){return!1}}function v(d){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)})(d)}var _=t("../base-xform"),s=t("../../../utils/col-cache"),o=function(d){l(w,d);var g=y(w);function w(){return i(this,w),g.apply(this,arguments)}return f(w,[{key:"render",value:function(k,S){k.openNode("definedName",{name:S.name,localSheetId:S.localSheetId}),k.writeText(S.ranges.join(",")),k.closeNode()}},{key:"parseOpen",value:function(k){return k.name==="definedName"&&(this._parsedName=k.attributes.name,this._parsedLocalSheetId=k.attributes.localSheetId,this._parsedText=[],!0)}},{key:"parseText",value:function(k){this._parsedText.push(k)}},{key:"parseClose",value:function(){return this.model={name:this._parsedName,ranges:a(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}]),w}(_);function h(d){try{return s.decodeEx(d),!0}catch(g){return!1}}function a(d){var g=[],w=!1,k="";return d.split(",").forEach(function(S){if(S){var A=(S.match(/'/g)||[]).length;if(A){var j=A%2==0;!w&&j&&h(S)?g.push(S):w&&!j?(w=!1,h(k+S)&&g.push(k+S),k=""):(w=!0,k+="".concat(S,","))}else w?k+="".concat(S,","):h(S)&&g.push(S)}}),g}r.exports=o},{"../../../utils/col-cache":19,"../base-xform":31}],33:[function(t,r,e){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(o)}function i(o,h){if(!(o instanceof h))throw new TypeError("Cannot call a class as a function")}function c(o,h){for(var a=0;a<h.length;a++){var d=h[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}function f(o,h,a){return h&&c(o.prototype,h),a&&c(o,a),o}function l(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(h&&h.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),h&&u(o,h)}function u(o,h){return(u=Object.setPrototypeOf||function(a,d){return a.__proto__=d,a})(o,h)}function y(o){var h=b();return function(){var a,d=v(o);if(h){var g=v(this).constructor;a=Reflect.construct(d,arguments,g)}else a=d.apply(this,arguments);return p(this,a)}}function p(o,h){return!h||n(h)!=="object"&&typeof h!="function"?m(o):h}function m(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}function v(o){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(o)}var _=t("../../../utils/utils"),s=function(o){l(a,o);var h=y(a);function a(){return i(this,a),h.apply(this,arguments)}return f(a,[{key:"render",value:function(d,g){d.leafNode("sheet",{sheetId:g.id,name:g.name,state:g.state,"r:id":g.rId})}},{key:"parseOpen",value:function(d){return d.name==="sheet"&&(this.model={name:_.xmlDecode(d.attributes.name),id:parseInt(d.attributes.sheetId,10),state:d.attributes.state,rId:d.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),a}(t("../base-xform"));r.exports=s},{"../../../utils/utils":26,"../base-xform":31}],34:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:d.fullCalcOnLoad?1:void 0})}},{key:"parseOpen",value:function(a){return a.name==="calcPr"&&(this.model={},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],35:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.leafNode("workbookPr",{date1904:d.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}},{key:"parseOpen",value:function(a){return a.name==="workbookPr"&&(this.model={date1904:a.attributes.date1904==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],36:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){var g={xWindow:d.x||0,yWindow:d.y||0,windowWidth:d.width||12e3,windowHeight:d.height||24e3,firstSheet:d.firstSheet,activeTab:d.activeTab};d.visibility&&d.visibility!=="visible"&&(g.visibility=d.visibility),a.leafNode("workbookView",g)}},{key:"parseOpen",value:function(a){if(a.name==="workbookView"){var d=this.model={},g=function(k,S,A){var j=S!==void 0?d[k]=S:A;j!==void 0&&(d[k]=j)},w=function(k,S,A){var j=S!==void 0?d[k]=parseInt(S,10):A;j!==void 0&&(d[k]=j)};return w("x",a.attributes.xWindow,0),w("y",a.attributes.yWindow,0),w("width",a.attributes.windowWidth,25e3),w("height",a.attributes.windowHeight,1e4),g("visibility",a.attributes.visibility,"visible"),w("activeTab",a.attributes.activeTab,void 0),w("firstSheet",a.attributes.firstSheet,void 0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],37:[function(t,r,e){function n(D){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N})(D)}function i(D,N){if(!(D instanceof N))throw new TypeError("Cannot call a class as a function")}function c(D,N){for(var F=0;F<N.length;F++){var T=N[F];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(D,T.key,T)}}function f(D,N,F){return N&&c(D.prototype,N),F&&c(D,F),D}function l(D,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(N&&N.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),N&&u(D,N)}function u(D,N){return(u=Object.setPrototypeOf||function(F,T){return F.__proto__=T,F})(D,N)}function y(D){var N=b();return function(){var F,T=v(D);if(N){var I=v(this).constructor;F=Reflect.construct(T,arguments,I)}else F=T.apply(this,arguments);return p(this,F)}}function p(D,N){return!N||n(N)!=="object"&&typeof N!="function"?m(D):N}function m(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(D){return!1}}function v(D){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)})(D)}var _=t("../../../utils/under-dash"),s=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),h=t("../base-xform"),a=t("../static-xform"),d=t("../list-xform"),g=t("./defined-name-xform"),w=t("./sheet-xform"),k=t("./workbook-view-xform"),S=t("./workbook-properties-xform"),A=t("./workbook-calc-properties-xform"),j=function(D){l(F,D);var N=y(F);function F(){var T;return i(this,F),(T=N.call(this)).map={fileVersion:F.STATIC_XFORMS.fileVersion,workbookPr:new S,bookViews:new d({tag:"bookViews",count:!1,childXform:new k}),sheets:new d({tag:"sheets",count:!1,childXform:new w}),definedNames:new d({tag:"definedNames",count:!1,childXform:new g}),calcPr:new A},T}return f(F,[{key:"prepare",value:function(T){T.sheets=T.worksheets;var I=[],x=0;T.sheets.forEach(function(O){if(O.pageSetup&&O.pageSetup.printArea&&O.pageSetup.printArea.split("&&").forEach(function(H){var U=H.split(":"),B={name:"_xlnm.Print_Area",ranges:["'".concat(O.name,"'!$").concat(U[0],":$").concat(U[1])],localSheetId:x};I.push(B)}),O.pageSetup&&(O.pageSetup.printTitlesRow||O.pageSetup.printTitlesColumn)){var R=[];if(O.pageSetup.printTitlesColumn){var C=O.pageSetup.printTitlesColumn.split(":");R.push("'".concat(O.name,"'!$").concat(C[0],":$").concat(C[1]))}if(O.pageSetup.printTitlesRow){var P=O.pageSetup.printTitlesRow.split(":");R.push("'".concat(O.name,"'!$").concat(P[0],":$").concat(P[1]))}var L={name:"_xlnm.Print_Titles",ranges:R,localSheetId:x};I.push(L)}x++}),I.length&&(T.definedNames=T.definedNames.concat(I)),(T.media||[]).forEach(function(O,R){O.name=O.type+(R+1)})}},{key:"render",value:function(T,I){T.openXml(o.StdDocAttributes),T.openNode("workbook",F.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(T),this.map.workbookPr.render(T,I.properties),this.map.bookViews.render(T,I.views),this.map.sheets.render(T,I.sheets),this.map.definedNames.render(T,I.definedNames),this.map.calcPr.render(T,I.calcProperties),T.closeNode()}},{key:"parseOpen",value:function(T){return this.parser?(this.parser.parseOpen(T),!0):(T.name==="workbook"||(this.parser=this.map[T.name],this.parser&&this.parser.parseOpen(T)),!0)}},{key:"parseText",value:function(T){this.parser&&this.parser.parseText(T)}},{key:"parseClose",value:function(T){return this.parser?(this.parser.parseClose(T)||(this.parser=void 0),!0):T!=="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(T){var I,x=(T.workbookRels||[]).reduce(function(P,L){return P[L.Id]=L,P},{}),O=[],R=0;(T.sheets||[]).forEach(function(P){var L=x[P.rId];L&&(I=T.worksheetHash["xl/".concat(L.Target.replace(/^(\s|\/xl\/)+/,""))])&&(I.name=P.name,I.id=P.id,I.state=P.state,O[R++]=I)});var C=[];_.each(T.definedNames,function(P){if(P.name==="_xlnm.Print_Area"){if(I=O[P.localSheetId]){I.pageSetup||(I.pageSetup={});var L=s.decodeEx(P.ranges[0]);I.pageSetup.printArea=I.pageSetup.printArea?"".concat(I.pageSetup.printArea,"&&").concat(L.dimensions):L.dimensions}}else if(P.name==="_xlnm.Print_Titles"){if(I=O[P.localSheetId]){I.pageSetup||(I.pageSetup={});var H=P.ranges.join(","),U=/\$/g,B=/\$\d+:\$\d+/,W=H.match(B);if(W&&W.length){var X=W[0];I.pageSetup.printTitlesRow=X.replace(U,"")}var et=/\$[A-Z]+:\$[A-Z]+/,ft=H.match(et);if(ft&&ft.length){var gt=ft[0];I.pageSetup.printTitlesColumn=gt.replace(U,"")}}}else C.push(P)}),T.definedNames=C,T.media.forEach(function(P,L){P.index=L})}}]),F}(h);j.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"},j.STATIC_XFORMS={fileVersion:new a({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},r.exports=j},{"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/xml-stream":27,"../base-xform":31,"../list-xform":70,"../static-xform":119,"./defined-name-xform":32,"./sheet-xform":33,"./workbook-calc-properties-xform":34,"./workbook-properties-xform":35,"./workbook-view-xform":36}],38:[function(t,r,e){function n(p,m){var b=Object.keys(p);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(p);m&&(v=v.filter(function(_){return Object.getOwnPropertyDescriptor(p,_).enumerable})),b.push.apply(b,v)}return b}function i(p){for(var m=1;m<arguments.length;m++){var b=arguments[m]!=null?arguments[m]:{};m%2?n(Object(b),!0).forEach(function(v){c(p,v,b[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(b)):n(Object(b)).forEach(function(v){Object.defineProperty(p,v,Object.getOwnPropertyDescriptor(b,v))})}return p}function c(p,m,b){return m in p?Object.defineProperty(p,m,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[m]=b,p}var f=t("../strings/rich-text-xform"),l=t("../../../utils/utils"),u=t("../base-xform"),y=r.exports=function(p){this.model=p};l.inherits(y,u,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new f),this._richTextXform},render:function(p,m){var b=this;m=m||this.model,p.openNode("comment",{ref:m.ref,authorId:0}),p.openNode("text"),m&&m.note&&m.note.texts&&m.note.texts.forEach(function(v){b.richTextXform.render(p,v)}),p.closeNode(),p.closeNode()},parseOpen:function(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case"comment":return this.model=i({type:"note",note:{texts:[]}},p.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(p),!0;default:return!1}},parseText:function(p){this.parser&&this.parser.parseText(p)},parseClose:function(p){switch(p){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(p),!0}}})},{"../../../utils/utils":26,"../base-xform":31,"../strings/rich-text-xform":121}],39:[function(t,r,e){var n=t("../../../utils/xml-stream"),i=t("../../../utils/utils"),c=t("../base-xform"),f=t("./comment-xform"),l=r.exports=function(){this.map={comment:new f}};i.inherits(l,c,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render:function(u,y){var p=this;y=y||this.model,u.openXml(n.StdDocAttributes),u.openNode("comments",l.COMMENTS_ATTRIBUTES),u.openNode("authors"),u.leafNode("author",null,"Author"),u.closeNode(),u.openNode("commentList"),y.comments.forEach(function(m){p.map.comment.render(u,m)}),u.closeNode(),u.closeNode()},parseOpen:function(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(u),!0;default:return!1}},parseText:function(u){this.parser&&this.parser.parseText(u)},parseClose:function(u){switch(u){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(u),!0}}})},{"../../../utils/utils":26,"../../../utils/xml-stream":27,"../base-xform":31,"./comment-xform":38}],40:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(a){var d;return i(this,h),(d=o.call(this))._model=a,d}return f(h,[{key:"render",value:function(a,d,g){(d===g[2]||this.tag==="x:SizeWithCells"&&d===g[1])&&a.leafNode(this.tag)}},{key:"parseOpen",value:function(a){return a.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return this._model&&this._model.tag}}]),h}(t("../../base-xform"));r.exports=_},{"../../base-xform":31}],41:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(a){var d;return i(this,h),(d=o.call(this))._model=a,d}return f(h,[{key:"render",value:function(a,d){a.leafNode(this.tag,null,d)}},{key:"parseOpen",value:function(a){return a.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(a){this.text=a}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return this._model&&this._model.tag}}]),h}(t("../../base-xform"));r.exports=_},{"../../base-xform":31}],42:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"getAnchorRect",value:function(a){var d=Math.floor(a.left),g=Math.floor(68*(a.left-d)),w=Math.floor(a.top),k=Math.floor(18*(a.top-w)),S=Math.floor(a.right),A=Math.floor(68*(a.right-S)),j=Math.floor(a.bottom);return[d,g,w,k,S,A,j,Math.floor(18*(a.bottom-j))]}},{key:"getDefaultRect",value:function(a){var d=a.col,g=6,w=Math.max(a.row-2,0);return[d,g,w,14,d+2,2,w+4,16]}},{key:"render",value:function(a,d){var g=d.anchor?this.getAnchorRect(d.anchor):this.getDefaultRect(d.refAddress);a.leafNode("x:Anchor",null,g.join(", "))}},{key:"parseOpen",value:function(a){return a.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(a){this.text=a}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"x:Anchor"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],43:[function(t,r,e){function n(g){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}function i(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function c(g,w){for(var k=0;k<w.length;k++){var S=w[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function f(g,w,k){return w&&c(g.prototype,w),k&&c(g,k),g}function l(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),w&&u(g,w)}function u(g,w){return(u=Object.setPrototypeOf||function(k,S){return k.__proto__=S,k})(g,w)}function y(g){var w=b();return function(){var k,S=v(g);if(w){var A=v(this).constructor;k=Reflect.construct(S,arguments,A)}else k=S.apply(this,arguments);return p(this,k)}}function p(g,w){return!w||n(w)!=="object"&&typeof w!="function"?m(g):w}function m(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(g){return!1}}function v(g){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(g)}var _=t("../base-xform"),s=t("./vml-anchor-xform"),o=t("./style/vml-protection-xform"),h=t("./style/vml-position-xform"),a=["twoCells","oneCells","absolute"],d=function(g){l(k,g);var w=y(k);function k(){var S;return i(this,k),(S=w.call(this)).map={"x:Anchor":new s,"x:Locked":new o({tag:"x:Locked"}),"x:LockText":new o({tag:"x:LockText"}),"x:SizeWithCells":new h({tag:"x:SizeWithCells"}),"x:MoveWithCells":new h({tag:"x:MoveWithCells"})},S}return f(k,[{key:"render",value:function(S,A){var j=A.note,D=j.protection,N=j.editAs;S.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(S,N,a),this.map["x:SizeWithCells"].render(S,N,a),this.map["x:Anchor"].render(S,A),this.map["x:Locked"].render(S,D.locked),S.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(S,D.lockText),S.leafNode("x:Row",null,A.refAddress.row-1),S.leafNode("x:Column",null,A.refAddress.col-1),S.closeNode()}},{key:"parseOpen",value:function(S){return S.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[S.name],this.parser&&this.parser.parseOpen(S)),!0}},{key:"parseText",value:function(S){this.parser&&this.parser.parseText(S)}},{key:"parseClose",value:function(S){return this.parser?(this.parser.parseClose(S)||(this.parser=void 0),!0):S!==this.tag||(this.normalizeModel(),!1)}},{key:"normalizeModel",value:function(){var S=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),A=Object.keys(S).length;this.model.editAs=a[A],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}},{key:"tag",get:function(){return"x:ClientData"}}]),k}(_);r.exports=d},{"../base-xform":31,"./style/vml-position-xform":40,"./style/vml-protection-xform":41,"./vml-anchor-xform":42}],44:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../../../utils/xml-stream"),s=t("../base-xform"),o=t("./vml-shape-xform"),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={"v:shape":new o},w}return f(g,[{key:"render",value:function(w,k){var S=this;w.openXml(_.StdDocAttributes),w.openNode(this.tag,g.DRAWING_ATTRIBUTES),w.openNode("o:shapelayout",{"v:ext":"edit"}),w.leafNode("o:idmap",{"v:ext":"edit",data:1}),w.closeNode(),w.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),w.leafNode("v:stroke",{joinstyle:"miter"}),w.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),w.closeNode(),k.comments.forEach(function(A,j){S.map["v:shape"].render(w,A,j)}),w.closeNode()}},{key:"parseOpen",value:function(w){return this.parser?(this.parser.parseOpen(w),!0):(w.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[w.name],this.parser&&this.parser.parseOpen(w)),!0)}},{key:"parseText",value:function(w){this.parser&&this.parser.parseText(w)}},{key:"parseClose",value:function(w){return this.parser?(this.parser.parseClose(w)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):w!==this.tag}},{key:"reconcile",value:function(w,k){var S=this;w.anchors.forEach(function(A){A.br?S.map["xdr:twoCellAnchor"].reconcile(A,k):S.map["xdr:oneCellAnchor"].reconcile(A,k)})}},{key:"tag",get:function(){return"xml"}}]),g}(s);h.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"},r.exports=h},{"../../../utils/xml-stream":27,"../base-xform":31,"./vml-shape-xform":45}],45:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../base-xform"),s=t("./vml-textbox-xform"),o=t("./vml-client-data-xform"),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={"v:textbox":new s,"x:ClientData":new o},w}return f(g,[{key:"render",value:function(w,k,S){w.openNode("v:shape",g.V_SHAPE_ATTRIBUTES(k,S)),w.leafNode("v:fill",{color2:"infoBackground [80]"}),w.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),w.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(w,k),this.map["x:ClientData"].render(w,k),w.closeNode()}},{key:"parseOpen",value:function(w){return this.parser?(this.parser.parseOpen(w),!0):(w.name===this.tag?(this.reset(),this.model={margins:{insetmode:w.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[w.name],this.parser&&this.parser.parseOpen(w)),!0)}},{key:"parseText",value:function(w){this.parser&&this.parser.parseText(w)}},{key:"parseClose",value:function(w){return this.parser?(this.parser.parseClose(w)||(this.parser=void 0),!0):w!==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)}},{key:"tag",get:function(){return"v:shape"}}]),g}(_);h.V_SHAPE_ATTRIBUTES=function(a,d){return{id:"_x0000_s".concat(1025+d),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":a.note.margins&&a.note.margins.insetmode}},r.exports=h},{"../base-xform":31,"./vml-client-data-xform":43,"./vml-textbox-xform":46}],46:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"conversionUnit",value:function(a,d,g){return"".concat(parseFloat(a)*d.toFixed(2)).concat(g)}},{key:"reverseConversionUnit",value:function(a){var d=this;return(a||"").split(",").map(function(g){return Number(parseFloat(d.conversionUnit(parseFloat(g),.1,"")).toFixed(2))})}},{key:"render",value:function(a,d){var g=this,w={style:"mso-direction-alt:auto"};if(d&&d.note){var k=(d.note&&d.note.margins).inset;Array.isArray(k)&&(k=k.map(function(S){return g.conversionUnit(S,10,"mm")}).join(",")),k&&(w.inset=k)}a.openNode("v:textbox",w),a.leafNode("div",{style:"text-align:left"}),a.closeNode()}},{key:"parseOpen",value:function(a){return a.name!==this.tag||(this.model={inset:this.reverseConversionUnit(a.attributes.inset)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(a){return a!==this.tag}},{key:"tag",get:function(){return"v:textbox"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],47:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"createNewModel",value:function(a){return{}}},{key:"parseOpen",value:function(a){return this.parser=this.parser||this.map[a.name],this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag&&(this.model=this.createNewModel(a),!0)}},{key:"parseText",value:function(a){this.parser&&this.parser.parseText(a)}},{key:"onParserClose",value:function(a,d){this.model[a]=d.model}},{key:"parseClose",value:function(a){return this.parser?(this.parser.parseClose(a)||(this.onParserClose(a,this.parser),this.parser=void 0),!0):a!==this.tag}}]),h}(t("./base-xform"));r.exports=_},{"./base-xform":31}],48:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.openNode("HeadingPairs"),a.openNode("vt:vector",{size:2,baseType:"variant"}),a.openNode("vt:variant"),a.leafNode("vt:lpstr",void 0,"Worksheets"),a.closeNode(),a.openNode("vt:variant"),a.leafNode("vt:i4",void 0,d.length),a.closeNode(),a.closeNode(),a.closeNode()}},{key:"parseOpen",value:function(a){return a.name==="HeadingPairs"}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(a){return a!=="HeadingPairs"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],49:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.openNode("TitlesOfParts"),a.openNode("vt:vector",{size:d.length,baseType:"lpstr"}),d.forEach(function(g){a.leafNode("vt:lpstr",void 0,g.name)}),a.closeNode(),a.closeNode()}},{key:"parseOpen",value:function(a){return a.name==="TitlesOfParts"}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(a){return a!=="TitlesOfParts"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],50:[function(t,r,e){function n(g){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}function i(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function c(g,w){for(var k=0;k<w.length;k++){var S=w[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function f(g,w,k){return w&&c(g.prototype,w),k&&c(g,k),g}function l(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),w&&u(g,w)}function u(g,w){return(u=Object.setPrototypeOf||function(k,S){return k.__proto__=S,k})(g,w)}function y(g){var w=b();return function(){var k,S=v(g);if(w){var A=v(this).constructor;k=Reflect.construct(S,arguments,A)}else k=S.apply(this,arguments);return p(this,k)}}function p(g,w){return!w||n(w)!=="object"&&typeof w!="function"?m(g):w}function m(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(g){return!1}}function v(g){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(g)}var _=t("../../../utils/xml-stream"),s=t("../base-xform"),o=t("../simple/string-xform"),h=t("./app-heading-pairs-xform"),a=t("./app-titles-of-parts-xform"),d=function(g){l(k,g);var w=y(k);function k(){var S;return i(this,k),(S=w.call(this)).map={Company:new o({tag:"Company"}),Manager:new o({tag:"Manager"}),HeadingPairs:new h,TitleOfParts:new a},S}return f(k,[{key:"render",value:function(S,A){S.openXml(_.StdDocAttributes),S.openNode("Properties",k.PROPERTY_ATTRIBUTES),S.leafNode("Application",void 0,"Microsoft Excel"),S.leafNode("DocSecurity",void 0,"0"),S.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(S,A.worksheets),this.map.TitleOfParts.render(S,A.worksheets),this.map.Company.render(S,A.company||""),this.map.Manager.render(S,A.manager),S.leafNode("LinksUpToDate",void 0,"false"),S.leafNode("SharedDoc",void 0,"false"),S.leafNode("HyperlinksChanged",void 0,"false"),S.leafNode("AppVersion",void 0,"16.0300"),S.closeNode()}},{key:"parseOpen",value:function(S){return this.parser?(this.parser.parseOpen(S),!0):S.name==="Properties"||(this.parser=this.map[S.name],!!this.parser&&(this.parser.parseOpen(S),!0))}},{key:"parseText",value:function(S){this.parser&&this.parser.parseText(S)}},{key:"parseClose",value:function(S){return this.parser?(this.parser.parseClose(S)||(this.parser=void 0),!0):S!=="Properties"||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}]),k}(s);d.DateFormat=function(g){return g.toISOString().replace(/[.]\d{3,6}/,"")},d.DateAttrs={"xsi:type":"dcterms:W3CDTF"},d.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},r.exports=d},{"../../../utils/xml-stream":27,"../base-xform":31,"../simple/string-xform":118,"./app-heading-pairs-xform":48,"./app-titles-of-parts-xform":49}],51:[function(t,r,e){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(o)}function i(o,h){if(!(o instanceof h))throw new TypeError("Cannot call a class as a function")}function c(o,h){for(var a=0;a<h.length;a++){var d=h[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}function f(o,h,a){return h&&c(o.prototype,h),a&&c(o,a),o}function l(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(h&&h.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),h&&u(o,h)}function u(o,h){return(u=Object.setPrototypeOf||function(a,d){return a.__proto__=d,a})(o,h)}function y(o){var h=b();return function(){var a,d=v(o);if(h){var g=v(this).constructor;a=Reflect.construct(d,arguments,g)}else a=d.apply(this,arguments);return p(this,a)}}function p(o,h){return!h||n(h)!=="object"&&typeof h!="function"?m(o):h}function m(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}function v(o){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(o)}var _=t("../../../utils/xml-stream"),s=function(o){l(a,o);var h=y(a);function a(){return i(this,a),h.apply(this,arguments)}return f(a,[{key:"render",value:function(d,g){d.openXml(_.StdDocAttributes),d.openNode("Types",a.PROPERTY_ATTRIBUTES);var w={};(g.media||[]).forEach(function(k){if(k.type==="image"){var S=k.extension;w[S]||(w[S]=!0,d.leafNode("Default",{Extension:S,ContentType:"image/".concat(S)}))}}),d.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),d.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),d.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),g.worksheets.forEach(function(k){var S="/xl/worksheets/sheet".concat(k.id,".xml");d.leafNode("Override",{PartName:S,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),d.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),d.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),g.sharedStrings&&g.sharedStrings.count&&d.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),g.tables&&g.tables.forEach(function(k){d.leafNode("Override",{PartName:"/xl/tables/".concat(k.target),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),g.drawings&&g.drawings.forEach(function(k){d.leafNode("Override",{PartName:"/xl/drawings/".concat(k.name,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),g.commentRefs&&(d.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),g.commentRefs.forEach(function(k){var S=k.commentName;d.leafNode("Override",{PartName:"/xl/".concat(S,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),d.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),d.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),d.closeNode()}},{key:"parseOpen",value:function(){return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),a}(t("../base-xform"));s.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},r.exports=s},{"../../../utils/xml-stream":27,"../base-xform":31}],52:[function(t,r,e){function n(g){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}function i(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function c(g,w){for(var k=0;k<w.length;k++){var S=w[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function f(g,w,k){return w&&c(g.prototype,w),k&&c(g,k),g}function l(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),w&&u(g,w)}function u(g,w){return(u=Object.setPrototypeOf||function(k,S){return k.__proto__=S,k})(g,w)}function y(g){var w=b();return function(){var k,S=v(g);if(w){var A=v(this).constructor;k=Reflect.construct(S,arguments,A)}else k=S.apply(this,arguments);return p(this,k)}}function p(g,w){return!w||n(w)!=="object"&&typeof w!="function"?m(g):w}function m(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(g){return!1}}function v(g){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(g)}var _=t("../../../utils/xml-stream"),s=t("../base-xform"),o=t("../simple/date-xform"),h=t("../simple/string-xform"),a=t("../simple/integer-xform"),d=function(g){l(k,g);var w=y(k);function k(){var S;return i(this,k),(S=w.call(this)).map={"dc:creator":new h({tag:"dc:creator"}),"dc:title":new h({tag:"dc:title"}),"dc:subject":new h({tag:"dc:subject"}),"dc:description":new h({tag:"dc:description"}),"dc:identifier":new h({tag:"dc:identifier"}),"dc:language":new h({tag:"dc:language"}),"cp:keywords":new h({tag:"cp:keywords"}),"cp:category":new h({tag:"cp:category"}),"cp:lastModifiedBy":new h({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new o({tag:"cp:lastPrinted",format:k.DateFormat}),"cp:revision":new a({tag:"cp:revision"}),"cp:version":new h({tag:"cp:version"}),"cp:contentStatus":new h({tag:"cp:contentStatus"}),"cp:contentType":new h({tag:"cp:contentType"}),"dcterms:created":new o({tag:"dcterms:created",attrs:k.DateAttrs,format:k.DateFormat}),"dcterms:modified":new o({tag:"dcterms:modified",attrs:k.DateAttrs,format:k.DateFormat})},S}return f(k,[{key:"render",value:function(S,A){S.openXml(_.StdDocAttributes),S.openNode("cp:coreProperties",k.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(S,A.creator),this.map["dc:title"].render(S,A.title),this.map["dc:subject"].render(S,A.subject),this.map["dc:description"].render(S,A.description),this.map["dc:identifier"].render(S,A.identifier),this.map["dc:language"].render(S,A.language),this.map["cp:keywords"].render(S,A.keywords),this.map["cp:category"].render(S,A.category),this.map["cp:lastModifiedBy"].render(S,A.lastModifiedBy),this.map["cp:lastPrinted"].render(S,A.lastPrinted),this.map["cp:revision"].render(S,A.revision),this.map["cp:version"].render(S,A.version),this.map["cp:contentStatus"].render(S,A.contentStatus),this.map["cp:contentType"].render(S,A.contentType),this.map["dcterms:created"].render(S,A.created),this.map["dcterms:modified"].render(S,A.modified),S.closeNode()}},{key:"parseOpen",value:function(S){if(this.parser)return this.parser.parseOpen(S),!0;switch(S.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[S.name],this.parser)return this.parser.parseOpen(S),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(S)))}}},{key:"parseText",value:function(S){this.parser&&this.parser.parseText(S)}},{key:"parseClose",value:function(S){if(this.parser)return this.parser.parseClose(S)||(this.parser=void 0),!0;switch(S){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 new Error("Unexpected xml node in parseClose: ".concat(S))}}}]),k}(s);d.DateFormat=function(g){return g.toISOString().replace(/[.]\d{3}/,"")},d.DateAttrs={"xsi:type":"dcterms:W3CDTF"},d.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"},r.exports=d},{"../../../utils/xml-stream":27,"../base-xform":31,"../simple/date-xform":116,"../simple/integer-xform":117,"../simple/string-xform":118}],53:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.leafNode("Relationship",d)}},{key:"parseOpen",value:function(a){return a.name==="Relationship"&&(this.model=a.attributes,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],54:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../../../utils/xml-stream"),s=t("../base-xform"),o=t("./relationship-xform"),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={Relationship:new o},w}return f(g,[{key:"render",value:function(w,k){var S=this;k=k||this._values,w.openXml(_.StdDocAttributes),w.openNode("Relationships",g.RELATIONSHIPS_ATTRIBUTES),k.forEach(function(A){S.map.Relationship.render(w,A)}),w.closeNode()}},{key:"parseOpen",value:function(w){if(this.parser)return this.parser.parseOpen(w),!0;if(w.name==="Relationships")return this.model=[],!0;if(this.parser=this.map[w.name],this.parser)return this.parser.parseOpen(w),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(w)))}},{key:"parseText",value:function(w){this.parser&&this.parser.parseText(w)}},{key:"parseClose",value:function(w){if(this.parser)return this.parser.parseClose(w)||(this.model.push(this.parser.model),this.parser=void 0),!0;if(w==="Relationships")return!1;throw new Error("Unexpected xml node in parseClose: ".concat(w))}}]),g}(s);h.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},r.exports=h},{"../../../utils/xml-stream":27,"../base-xform":31,"./relationship-xform":53}],55:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"parseOpen",value:function(a){return this.parser?(this.parser.parseOpen(a),!0):(a.name===this.tag?(this.reset(),this.model={range:{editAs:a.attributes.editAs||"oneCell"}}):(this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)),!0)}},{key:"parseText",value:function(a){this.parser&&this.parser.parseText(a)}},{key:"reconcilePicture",value:function(a,d){if(a&&a.rId){var g=d.rels[a.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(g){var w=g[1],k=d.mediaIndex[w];return d.media[k]}}}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],56:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("../base-xform"),s=t("./blip-xform"),o=function(h){l(d,h);var a=y(d);function d(){var g;return i(this,d),(g=a.call(this)).map={"a:blip":new s},g}return f(d,[{key:"render",value:function(g,w){g.openNode(this.tag),this.map["a:blip"].render(g,w),g.openNode("a:stretch"),g.leafNode("a:fillRect"),g.closeNode(),g.closeNode()}},{key:"parseOpen",value:function(g){return this.parser?(this.parser.parseOpen(g),!0):(g.name===this.tag?this.reset():(this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(g){return this.parser?(this.parser.parseClose(g)||(this.parser=void 0),!0):g!==this.tag||(this.model=this.map["a:blip"].model,!1)}},{key:"tag",get:function(){return"xdr:blipFill"}}]),d}(_);r.exports=o},{"../base-xform":31,"./blip-xform":57}],57:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":d.rId,cstate:"print"})}},{key:"parseOpen",value:function(a){return a.name!==this.tag||(this.model={rId:a.attributes["r:embed"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(a){return a!==this.tag}},{key:"tag",get:function(){return"a:blip"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],58:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a){a.openNode(this.tag),a.leafNode("a:picLocks",{noChangeAspect:"1"}),a.closeNode()}},{key:"parseOpen",value:function(a){return a.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(a){return a!==this.tag}},{key:"tag",get:function(){return"xdr:cNvPicPr"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],59:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../base-xform"),s=t("./hlink-click-xform"),o=t("./ext-lst-xform"),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={"a:hlinkClick":new s,"a:extLst":new o},w}return f(g,[{key:"render",value:function(w,k){w.openNode(this.tag,{id:k.index,name:"Picture ".concat(k.index)}),this.map["a:hlinkClick"].render(w,k),this.map["a:extLst"].render(w,k),w.closeNode()}},{key:"parseOpen",value:function(w){return this.parser?(this.parser.parseOpen(w),!0):(w.name===this.tag?this.reset():(this.parser=this.map[w.name],this.parser&&this.parser.parseOpen(w)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(w){return this.parser?(this.parser.parseClose(w)||(this.parser=void 0),!0):w!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}},{key:"tag",get:function(){return"xdr:cNvPr"}}]),g}(_);r.exports=h},{"../base-xform":31,"./ext-lst-xform":62,"./hlink-click-xform":64}],60:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("../base-xform"),s=t("../simple/integer-xform"),o=function(h){l(d,h);var a=y(d);function d(g){var w;return i(this,d),(w=a.call(this)).tag=g.tag,w.map={"xdr:col":new s({tag:"xdr:col",zero:!0}),"xdr:colOff":new s({tag:"xdr:colOff",zero:!0}),"xdr:row":new s({tag:"xdr:row",zero:!0}),"xdr:rowOff":new s({tag:"xdr:rowOff",zero:!0})},w}return f(d,[{key:"render",value:function(g,w){g.openNode(this.tag),this.map["xdr:col"].render(g,w.nativeCol),this.map["xdr:colOff"].render(g,w.nativeColOff),this.map["xdr:row"].render(g,w.nativeRow),this.map["xdr:rowOff"].render(g,w.nativeRowOff),g.closeNode()}},{key:"parseOpen",value:function(g){return this.parser?(this.parser.parseOpen(g),!0):(g.name===this.tag?this.reset():(this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g)),!0)}},{key:"parseText",value:function(g){this.parser&&this.parser.parseText(g)}},{key:"parseClose",value:function(g){return this.parser?(this.parser.parseClose(g)||(this.parser=void 0),!0):g!==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)}}]),d}(_);r.exports=o},{"../base-xform":31,"../simple/integer-xform":117}],61:[function(t,r,e){function n(w){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function i(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function c(w,k){for(var S=0;S<k.length;S++){var A=k[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}function f(w,k,S){return k&&c(w.prototype,k),S&&c(w,S),w}function l(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),k&&u(w,k)}function u(w,k){return(u=Object.setPrototypeOf||function(S,A){return S.__proto__=A,S})(w,k)}function y(w){var k=b();return function(){var S,A=v(w);if(k){var j=v(this).constructor;S=Reflect.construct(A,arguments,j)}else S=A.apply(this,arguments);return p(this,S)}}function p(w,k){return!k||n(k)!=="object"&&typeof k!="function"?m(w):k}function m(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(w){return!1}}function v(w){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var _=t("../../../utils/col-cache"),s=t("../../../utils/xml-stream"),o=t("../base-xform"),h=t("./two-cell-anchor-xform"),a=t("./one-cell-anchor-xform");function d(w){return(typeof w.range=="string"?_.decode(w.range):w.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}var g=function(w){l(S,w);var k=y(S);function S(){var A;return i(this,S),(A=k.call(this)).map={"xdr:twoCellAnchor":new h,"xdr:oneCellAnchor":new a},A}return f(S,[{key:"prepare",value:function(A){var j=this;A.anchors.forEach(function(D,N){D.anchorType=d(D),j.map[D.anchorType].prepare(D,{index:N})})}},{key:"render",value:function(A,j){var D=this;A.openXml(s.StdDocAttributes),A.openNode(this.tag,S.DRAWING_ATTRIBUTES),j.anchors.forEach(function(N){D.map[N.anchorType].render(A,N)}),A.closeNode()}},{key:"parseOpen",value:function(A){return this.parser?(this.parser.parseOpen(A),!0):(A.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[A.name],this.parser&&this.parser.parseOpen(A)),!0)}},{key:"parseText",value:function(A){this.parser&&this.parser.parseText(A)}},{key:"parseClose",value:function(A){return this.parser?(this.parser.parseClose(A)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):A!==this.tag}},{key:"reconcile",value:function(A,j){var D=this;A.anchors.forEach(function(N){N.br?D.map["xdr:twoCellAnchor"].reconcile(N,j):D.map["xdr:oneCellAnchor"].reconcile(N,j)})}},{key:"tag",get:function(){return"xdr:wsDr"}}]),S}(o);g.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},r.exports=g},{"../../../utils/col-cache":19,"../../../utils/xml-stream":27,"../base-xform":31,"./one-cell-anchor-xform":66,"./two-cell-anchor-xform":69}],62:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a){a.openNode(this.tag),a.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),a.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),a.closeNode(),a.closeNode()}},{key:"parseOpen",value:function(a){return a.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(a){return a!==this.tag}},{key:"tag",get:function(){return"a:extLst"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],63:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("../base-xform"),s=9525,o=function(h){l(d,h);var a=y(d);function d(g){var w;return i(this,d),(w=a.call(this)).tag=g.tag,w.map={},w}return f(d,[{key:"render",value:function(g,w){g.openNode(this.tag);var k=Math.floor(w.width*s),S=Math.floor(w.height*s);g.addAttribute("cx",k),g.addAttribute("cy",S),g.closeNode()}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.model={width:parseInt(g.attributes.cx||"0",10)/s,height:parseInt(g.attributes.cy||"0",10)/s},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),d}(_);r.exports=o},{"../base-xform":31}],64:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){d.hyperlinks&&d.hyperlinks.rId&&a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":d.hyperlinks.rId,tooltip:d.hyperlinks.tooltip})}},{key:"parseOpen",value:function(a){return a.name!==this.tag||(this.model={hyperlinks:{rId:a.attributes["r:id"],tooltip:a.attributes.tooltip}},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"a:hlinkClick"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],65:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../base-xform"),s=t("./c-nv-pr-xform"),o=t("./c-nv-pic-pr-xform"),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={"xdr:cNvPr":new s,"xdr:cNvPicPr":new o},w}return f(g,[{key:"render",value:function(w,k){w.openNode(this.tag),this.map["xdr:cNvPr"].render(w,k),this.map["xdr:cNvPicPr"].render(w,k),w.closeNode()}},{key:"parseOpen",value:function(w){return this.parser?(this.parser.parseOpen(w),!0):(w.name===this.tag?this.reset():(this.parser=this.map[w.name],this.parser&&this.parser.parseOpen(w)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(w){return this.parser?(this.parser.parseClose(w)||(this.parser=void 0),!0):w!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}},{key:"tag",get:function(){return"xdr:nvPicPr"}}]),g}(_);r.exports=h},{"../base-xform":31,"./c-nv-pic-pr-xform":58,"./c-nv-pr-xform":59}],66:[function(t,r,e){function n(g){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}function i(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function c(g,w){for(var k=0;k<w.length;k++){var S=w[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function f(g,w,k){return w&&c(g.prototype,w),k&&c(g,k),g}function l(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),w&&u(g,w)}function u(g,w){return(u=Object.setPrototypeOf||function(k,S){return k.__proto__=S,k})(g,w)}function y(g){var w=b();return function(){var k,S=v(g);if(w){var A=v(this).constructor;k=Reflect.construct(S,arguments,A)}else k=S.apply(this,arguments);return p(this,k)}}function p(g,w){return!w||n(w)!=="object"&&typeof w!="function"?m(g):w}function m(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(g){return!1}}function v(g){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(g)}var _=t("./base-cell-anchor-xform"),s=t("../static-xform"),o=t("./cell-position-xform"),h=t("./ext-xform"),a=t("./pic-xform"),d=function(g){l(k,g);var w=y(k);function k(){var S;return i(this,k),(S=w.call(this)).map={"xdr:from":new o({tag:"xdr:from"}),"xdr:ext":new h({tag:"xdr:ext"}),"xdr:pic":new a,"xdr:clientData":new s({tag:"xdr:clientData"})},S}return f(k,[{key:"prepare",value:function(S,A){this.map["xdr:pic"].prepare(S.picture,A)}},{key:"render",value:function(S,A){S.openNode(this.tag,{editAs:A.range.editAs||"oneCell"}),this.map["xdr:from"].render(S,A.range.tl),this.map["xdr:ext"].render(S,A.range.ext),this.map["xdr:pic"].render(S,A.picture),this.map["xdr:clientData"].render(S,{}),S.closeNode()}},{key:"parseClose",value:function(S){return this.parser?(this.parser.parseClose(S)||(this.parser=void 0),!0):S!==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(S,A){S.medium=this.reconcilePicture(S.picture,A)}},{key:"tag",get:function(){return"xdr:oneCellAnchor"}}]),k}(_);r.exports=d},{"../static-xform":119,"./base-cell-anchor-xform":55,"./cell-position-xform":60,"./ext-xform":63,"./pic-xform":67}],67:[function(t,r,e){function n(g){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}function i(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function c(g,w){for(var k=0;k<w.length;k++){var S=w[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function f(g,w,k){return w&&c(g.prototype,w),k&&c(g,k),g}function l(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),w&&u(g,w)}function u(g,w){return(u=Object.setPrototypeOf||function(k,S){return k.__proto__=S,k})(g,w)}function y(g){var w=b();return function(){var k,S=v(g);if(w){var A=v(this).constructor;k=Reflect.construct(S,arguments,A)}else k=S.apply(this,arguments);return p(this,k)}}function p(g,w){return!w||n(w)!=="object"&&typeof w!="function"?m(g):w}function m(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(g){return!1}}function v(g){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(g)}var _=t("../base-xform"),s=t("../static-xform"),o=t("./blip-fill-xform"),h=t("./nv-pic-pr-xform"),a=t("./sp-pr"),d=function(g){l(k,g);var w=y(k);function k(){var S;return i(this,k),(S=w.call(this)).map={"xdr:nvPicPr":new h,"xdr:blipFill":new o,"xdr:spPr":new s(a)},S}return f(k,[{key:"prepare",value:function(S,A){S.index=A.index+1}},{key:"render",value:function(S,A){S.openNode(this.tag),this.map["xdr:nvPicPr"].render(S,A),this.map["xdr:blipFill"].render(S,A),this.map["xdr:spPr"].render(S,A),S.closeNode()}},{key:"parseOpen",value:function(S){return this.parser?(this.parser.parseOpen(S),!0):(S.name===this.tag?this.reset():(this.parser=this.map[S.name],this.parser&&this.parser.parseOpen(S)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(S){return this.parser?(this.parser.parseClose(S)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):S!==this.tag}},{key:"tag",get:function(){return"xdr:pic"}}]),k}(_);r.exports=d},{"../base-xform":31,"../static-xform":119,"./blip-fill-xform":56,"./nv-pic-pr-xform":65,"./sp-pr":68}],68:[function(t,r,e){r.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"}]}]}},{}],69:[function(t,r,e){function n(d){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(d)}function i(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function c(d,g){for(var w=0;w<g.length;w++){var k=g[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(d,k.key,k)}}function f(d,g,w){return g&&c(d.prototype,g),w&&c(d,w),d}function l(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),g&&u(d,g)}function u(d,g){return(u=Object.setPrototypeOf||function(w,k){return w.__proto__=k,w})(d,g)}function y(d){var g=b();return function(){var w,k=v(d);if(g){var S=v(this).constructor;w=Reflect.construct(k,arguments,S)}else w=k.apply(this,arguments);return p(this,w)}}function p(d,g){return!g||n(g)!=="object"&&typeof g!="function"?m(d):g}function m(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(d){return!1}}function v(d){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)})(d)}var _=t("./base-cell-anchor-xform"),s=t("../static-xform"),o=t("./cell-position-xform"),h=t("./pic-xform"),a=function(d){l(w,d);var g=y(w);function w(){var k;return i(this,w),(k=g.call(this)).map={"xdr:from":new o({tag:"xdr:from"}),"xdr:to":new o({tag:"xdr:to"}),"xdr:pic":new h,"xdr:clientData":new s({tag:"xdr:clientData"})},k}return f(w,[{key:"prepare",value:function(k,S){this.map["xdr:pic"].prepare(k.picture,S)}},{key:"render",value:function(k,S){k.openNode(this.tag,{editAs:S.range.editAs||"oneCell"}),this.map["xdr:from"].render(k,S.range.tl),this.map["xdr:to"].render(k,S.range.br),this.map["xdr:pic"].render(k,S.picture),this.map["xdr:clientData"].render(k,{}),k.closeNode()}},{key:"parseClose",value:function(k){return this.parser?(this.parser.parseClose(k)||(this.parser=void 0),!0):k!==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(k,S){k.medium=this.reconcilePicture(k.picture,S)}},{key:"tag",get:function(){return"xdr:twoCellAnchor"}}]),w}(_);r.exports=a},{"../static-xform":119,"./base-cell-anchor-xform":55,"./cell-position-xform":60,"./pic-xform":67}],70:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(a){var d;return i(this,h),(d=o.call(this)).tag=a.tag,d.always=!!a.always,d.count=a.count,d.empty=a.empty,d.$count=a.$count||"count",d.$=a.$,d.childXform=a.childXform,d.maxItems=a.maxItems,d}return f(h,[{key:"prepare",value:function(a,d){var g=this.childXform;a&&a.forEach(function(w,k){d.index=k,g.prepare(w,d)})}},{key:"render",value:function(a,d){if(this.always||d&&d.length){a.openNode(this.tag,this.$),this.count&&a.addAttribute(this.$count,d&&d.length||0);var g=this.childXform;(d||[]).forEach(function(w,k){g.render(a,w,k)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}},{key:"parseOpen",value:function(a){return this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(a)&&(this.parser=this.childXform,!0)}},{key:"parseText",value:function(a){this.parser&&this.parser.parseText(a)}},{key:"parseClose",value:function(a){if(this.parser){if(!this.parser.parseClose(a)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error("Max ".concat(this.childXform.tag," count (").concat(this.maxItems,") exceeded"));return!0}return!1}},{key:"reconcile",value:function(a,d){if(a){var g=this.childXform;a.forEach(function(w){g.reconcile(w,d)})}}}]),h}(t("./base-xform"));r.exports=_},{"./base-xform":31}],71:[function(t,r,e){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(o)}function i(o,h){if(!(o instanceof h))throw new TypeError("Cannot call a class as a function")}function c(o,h){for(var a=0;a<h.length;a++){var d=h[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}function f(o,h,a){return h&&c(o.prototype,h),a&&c(o,a),o}function l(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(h&&h.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),h&&u(o,h)}function u(o,h){return(u=Object.setPrototypeOf||function(a,d){return a.__proto__=d,a})(o,h)}function y(o){var h=b();return function(){var a,d=v(o);if(h){var g=v(this).constructor;a=Reflect.construct(d,arguments,g)}else a=d.apply(this,arguments);return p(this,a)}}function p(o,h){return!h||n(h)!=="object"&&typeof h!="function"?m(o):h}function m(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}function v(o){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(o)}var _=t("../../../utils/col-cache"),s=function(o){l(a,o);var h=y(a);function a(){return i(this,a),h.apply(this,arguments)}return f(a,[{key:"render",value:function(d,g){if(g)if(typeof g=="string")d.leafNode("autoFilter",{ref:g});else{var w=function(A){return typeof A=="string"?A:_.getAddress(A.row,A.column).address},k=w(g.from),S=w(g.to);k&&S&&d.leafNode("autoFilter",{ref:"".concat(k,":").concat(S)})}}},{key:"parseOpen",value:function(d){d.name==="autoFilter"&&(this.model=d.attributes.ref)}},{key:"tag",get:function(){return"autoFilter"}}]),a}(t("../base-xform"));r.exports=s},{"../../../utils/col-cache":19,"../base-xform":31}],72:[function(t,r,e){function n(j){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(j)}function i(j,D){var N=Object.keys(j);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(j);D&&(F=F.filter(function(T){return Object.getOwnPropertyDescriptor(j,T).enumerable})),N.push.apply(N,F)}return N}function c(j){for(var D=1;D<arguments.length;D++){var N=arguments[D]!=null?arguments[D]:{};D%2?i(Object(N),!0).forEach(function(F){f(j,F,N[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(N)):i(Object(N)).forEach(function(F){Object.defineProperty(j,F,Object.getOwnPropertyDescriptor(N,F))})}return j}function f(j,D,N){return D in j?Object.defineProperty(j,D,{value:N,enumerable:!0,configurable:!0,writable:!0}):j[D]=N,j}function l(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")}function u(j,D){for(var N=0;N<D.length;N++){var F=D[N];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(j,F.key,F)}}function y(j,D,N){return D&&u(j.prototype,D),N&&u(j,N),j}function p(j,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(D&&D.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),D&&m(j,D)}function m(j,D){return(m=Object.setPrototypeOf||function(N,F){return N.__proto__=F,N})(j,D)}function b(j){var D=s();return function(){var N,F=o(j);if(D){var T=o(this).constructor;N=Reflect.construct(F,arguments,T)}else N=F.apply(this,arguments);return v(this,N)}}function v(j,D){return!D||n(D)!=="object"&&typeof D!="function"?_(j):D}function _(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function s(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(j){return!1}}function o(j){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)})(j)}var h=t("../../../utils/utils"),a=t("../base-xform"),d=t("../../../doc/range"),g=t("../../../doc/enums"),w=t("../strings/rich-text-xform");function k(j){if(j==null)return g.ValueType.Null;if(j instanceof String||typeof j=="string")return g.ValueType.String;if(typeof j=="number")return g.ValueType.Number;if(typeof j=="boolean")return g.ValueType.Boolean;if(j instanceof Date)return g.ValueType.Date;if(j.text&&j.hyperlink)return g.ValueType.Hyperlink;if(j.formula)return g.ValueType.Formula;if(j.error)return g.ValueType.Error;throw new Error("I could not understand type of value")}function S(j){return j.type===g.ValueType.Formula?k(j.result):j.type}var A=function(j){p(N,j);var D=b(N);function N(){var F;return l(this,N),(F=D.call(this)).richTextXForm=new w,F}return y(N,[{key:"prepare",value:function(F,T){var I=T.styles.addStyleModel(F.style||{},S(F));switch(I&&(F.styleId=I),F.comment&&T.comments.push(c(c({},F.comment),{},{ref:F.address})),F.type){case g.ValueType.String:case g.ValueType.RichText:T.sharedStrings&&(F.ssId=T.sharedStrings.add(F.value));break;case g.ValueType.Date:T.date1904&&(F.date1904=!0);break;case g.ValueType.Hyperlink:T.sharedStrings&&F.text!==void 0&&F.text!==null&&(F.ssId=T.sharedStrings.add(F.text)),T.hyperlinks.push({address:F.address,target:F.hyperlink,tooltip:F.tooltip});break;case g.ValueType.Merge:T.merges.add(F);break;case g.ValueType.Formula:if(T.date1904&&(F.date1904=!0),F.shareType==="shared"&&(F.si=T.siFormulae++),F.formula)T.formulae[F.address]=F;else if(F.sharedFormula){var x=T.formulae[F.sharedFormula];if(!x)throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(F.address));x.si===void 0?(x.shareType="shared",x.si=T.siFormulae++,x.range=new d(x.address,F.address)):x.range&&x.range.expandToAddress(F.address),F.si=x.si}}}},{key:"renderFormula",value:function(F,T){var I=null;switch(T.shareType){case"shared":I={t:"shared",ref:T.ref||T.range.range,si:T.si};break;case"array":I={t:"array",ref:T.ref};break;default:T.si!==void 0&&(I={t:"shared",si:T.si})}switch(k(T.result)){case g.ValueType.Null:F.leafNode("f",I,T.formula);break;case g.ValueType.String:F.addAttribute("t","str"),F.leafNode("f",I,T.formula),F.leafNode("v",null,T.result);break;case g.ValueType.Number:F.leafNode("f",I,T.formula),F.leafNode("v",null,T.result);break;case g.ValueType.Boolean:F.addAttribute("t","b"),F.leafNode("f",I,T.formula),F.leafNode("v",null,T.result?1:0);break;case g.ValueType.Error:F.addAttribute("t","e"),F.leafNode("f",I,T.formula),F.leafNode("v",null,T.result.error);break;case g.ValueType.Date:F.leafNode("f",I,T.formula),F.leafNode("v",null,h.dateToExcel(T.result,T.date1904));break;default:throw new Error("I could not understand type of value")}}},{key:"render",value:function(F,T){var I=this;if(T.type!==g.ValueType.Null||T.styleId){switch(F.openNode("c"),F.addAttribute("r",T.address),T.styleId&&F.addAttribute("s",T.styleId),T.type){case g.ValueType.Null:break;case g.ValueType.Number:F.leafNode("v",null,T.value);break;case g.ValueType.Boolean:F.addAttribute("t","b"),F.leafNode("v",null,T.value?"1":"0");break;case g.ValueType.Error:F.addAttribute("t","e"),F.leafNode("v",null,T.value.error);break;case g.ValueType.String:case g.ValueType.RichText:T.ssId!==void 0?(F.addAttribute("t","s"),F.leafNode("v",null,T.ssId)):T.value&&T.value.richText?(F.addAttribute("t","inlineStr"),F.openNode("is"),T.value.richText.forEach(function(x){I.richTextXForm.render(F,x)}),F.closeNode("is")):(F.addAttribute("t","str"),F.leafNode("v",null,T.value));break;case g.ValueType.Date:F.leafNode("v",null,h.dateToExcel(T.value,T.date1904));break;case g.ValueType.Hyperlink:T.ssId!==void 0?(F.addAttribute("t","s"),F.leafNode("v",null,T.ssId)):(F.addAttribute("t","str"),F.leafNode("v",null,T.text));break;case g.ValueType.Formula:this.renderFormula(F,T);case g.ValueType.Merge:}F.closeNode()}}},{key:"parseOpen",value:function(F){if(this.parser)return this.parser.parseOpen(F),!0;switch(F.name){case"c":return this.model={address:F.attributes.r},this.t=F.attributes.t,F.attributes.s&&(this.model.styleId=parseInt(F.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=F.attributes.si,this.model.shareType=F.attributes.t,this.model.ref=F.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(F),!0;default:return!1}}},{key:"parseText",value:function(F){if(this.parser)this.parser.parseText(F);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+F:F;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+F:F:this.model.value=this.model.value?this.model.value+F:F}}},{key:"parseClose",value:function(F){switch(F){case"c":var T=this.model;if(T.formula||T.shareType)T.type=g.ValueType.Formula,T.value&&(this.t==="str"?T.result=h.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),T.value=void 0);else if(T.value!==void 0)switch(this.t){case"s":T.type=g.ValueType.String,T.value=parseInt(T.value,10);break;case"str":T.type=g.ValueType.String,T.value=h.xmlDecode(T.value);break;case"inlineStr":T.type=g.ValueType.String;break;case"b":T.type=g.ValueType.Boolean,T.value=parseInt(T.value,10)!==0;break;case"e":T.type=g.ValueType.Error,T.value={error:T.value};break;default:T.type=g.ValueType.Number,T.value=parseFloat(T.value)}else T.styleId?T.type=g.ValueType.Null:T.type=g.ValueType.Merge;return!1;case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(F),!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(F),!0)}}},{key:"reconcile",value:function(F,T){var I=F.styleId&&T.styles&&T.styles.getStyleModel(F.styleId);switch(I&&(F.style=I),F.styleId!==void 0&&(F.styleId=void 0),F.type){case g.ValueType.String:typeof F.value=="number"&&T.sharedStrings&&(F.value=T.sharedStrings.getString(F.value)),F.value.richText&&(F.type=g.ValueType.RichText);break;case g.ValueType.Number:I&&h.isDateFmt(I.numFmt)&&(F.type=g.ValueType.Date,F.value=h.excelToDate(F.value,T.date1904));break;case g.ValueType.Formula:F.result!==void 0&&I&&h.isDateFmt(I.numFmt)&&(F.result=h.excelToDate(F.result,T.date1904)),F.shareType==="shared"&&(F.ref?T.formulae[F.si]=F.address:(F.sharedFormula=T.formulae[F.si],delete F.shareType),delete F.si)}var x=T.hyperlinkMap[F.address];x&&(F.type===g.ValueType.Formula?(F.text=F.result,F.result=void 0):(F.text=F.value,F.value=void 0),F.type=g.ValueType.Hyperlink,F.hyperlink=x);var O=T.commentsMap&&T.commentsMap[F.address];O&&(F.comment=O)}},{key:"tag",get:function(){return"c"}}]),N}(a);r.exports=A},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":26,"../base-xform":31,"../strings/rich-text-xform":121}],73:[function(t,r,e){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(o)}function i(o,h){if(!(o instanceof h))throw new TypeError("Cannot call a class as a function")}function c(o,h){for(var a=0;a<h.length;a++){var d=h[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}function f(o,h,a){return h&&c(o.prototype,h),a&&c(o,a),o}function l(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(h&&h.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),h&&u(o,h)}function u(o,h){return(u=Object.setPrototypeOf||function(a,d){return a.__proto__=d,a})(o,h)}function y(o){var h=b();return function(){var a,d=v(o);if(h){var g=v(this).constructor;a=Reflect.construct(d,arguments,g)}else a=d.apply(this,arguments);return p(this,a)}}function p(o,h){return!h||n(h)!=="object"&&typeof h!="function"?m(o):h}function m(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}function v(o){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(o)}var _=t("../../base-xform"),s=function(o){l(a,o);var h=y(a);function a(){return i(this,a),h.apply(this,arguments)}return f(a,[{key:"render",value:function(d,g){d.leafNode(this.tag,{iconSet:g.iconSet,iconId:g.iconId})}},{key:"parseOpen",value:function(d){var g=d.attributes;this.model={iconSet:g.iconSet,iconId:_.toIntValue(g.iconId)}}},{key:"parseClose",value:function(d){return d!==this.tag}},{key:"tag",get:function(){return"x14:cfIcon"}}]),a}(_);r.exports=s},{"../../base-xform":31}],74:[function(t,r,e){function n(w){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function i(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function c(w,k){for(var S=0;S<k.length;S++){var A=k[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}function f(w,k,S){return k&&c(w.prototype,k),S&&c(w,S),w}function l(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),k&&u(w,k)}function u(w,k){return(u=Object.setPrototypeOf||function(S,A){return S.__proto__=A,S})(w,k)}function y(w){var k=b();return function(){var S,A=v(w);if(k){var j=v(this).constructor;S=Reflect.construct(A,arguments,j)}else S=A.apply(this,arguments);return p(this,S)}}function p(w,k){return!k||n(k)!=="object"&&typeof k!="function"?m(w):k}function m(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(w){return!1}}function v(w){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var _=t("uuid").v4,s=t("../../base-xform"),o=t("../../composite-xform"),h=t("./databar-ext-xform"),a=t("./icon-set-ext-xform"),d={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},g=function(w){l(S,w);var k=y(S);function S(){var A;return i(this,S),(A=k.call(this)).map={"x14:dataBar":A.databarXform=new h,"x14:iconSet":A.iconSetXform=new a},A}return f(S,[{key:"prepare",value:function(A){S.isExt(A)&&(A.x14Id="{".concat(_(),"}").toUpperCase())}},{key:"render",value:function(A,j){if(S.isExt(j))switch(j.type){case"dataBar":this.renderDataBar(A,j);break;case"iconSet":this.renderIconSet(A,j)}}},{key:"renderDataBar",value:function(A,j){A.openNode(this.tag,{type:"dataBar",id:j.x14Id}),this.databarXform.render(A,j),A.closeNode()}},{key:"renderIconSet",value:function(A,j){A.openNode(this.tag,{type:"iconSet",priority:j.priority,id:j.x14Id||"{".concat(_(),"}")}),this.iconSetXform.render(A,j),A.closeNode()}},{key:"createNewModel",value:function(A){var j=A.attributes;return{type:j.type,x14Id:j.id,priority:s.toIntValue(j.priority)}}},{key:"onParserClose",value:function(A,j){Object.assign(this.model,j.model)}},{key:"tag",get:function(){return"x14:cfRule"}}],[{key:"isExt",value:function(A){return A.type==="dataBar"?h.isExt(A):!(A.type!=="iconSet"||!A.custom&&!d[A.iconSet])}}]),S}(o);r.exports=g},{"../../base-xform":31,"../../composite-xform":47,"./databar-ext-xform":78,"./icon-set-ext-xform":80,uuid:526}],75:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("../../composite-xform"),s=t("./f-ext-xform"),o=function(h){l(d,h);var a=y(d);function d(){var g;return i(this,d),(g=a.call(this)).map={"xm:f":g.fExtXform=new s},g}return f(d,[{key:"render",value:function(g,w){g.openNode(this.tag,{type:w.type}),w.value!==void 0&&this.fExtXform.render(g,w.value),g.closeNode()}},{key:"createNewModel",value:function(g){return{type:g.attributes.type}}},{key:"onParserClose",value:function(g,w){g==="xm:f"&&(this.model.value=w.model?parseFloat(w.model):0)}},{key:"tag",get:function(){return"x14:cfvo"}}]),d}(_);r.exports=o},{"../../composite-xform":47,"./f-ext-xform":79}],76:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../../composite-xform"),s=t("./sqref-ext-xform"),o=t("./cf-rule-ext-xform"),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={"xm:sqref":w.sqRef=new s,"x14:cfRule":w.cfRule=new o},w}return f(g,[{key:"prepare",value:function(w,k){var S=this;w.rules.forEach(function(A){S.cfRule.prepare(A,k)})}},{key:"render",value:function(w,k){var S=this;k.rules.some(o.isExt)&&(w.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),k.rules.filter(o.isExt).forEach(function(A){return S.cfRule.render(w,A)}),this.sqRef.render(w,k.ref),w.closeNode())}},{key:"createNewModel",value:function(){return{rules:[]}}},{key:"onParserClose",value:function(w,k){switch(w){case"xm:sqref":this.model.ref=k.model;break;case"x14:cfRule":this.model.rules.push(k.model)}}},{key:"tag",get:function(){return"x14:conditionalFormatting"}}]),g}(_);r.exports=h},{"../../composite-xform":47,"./cf-rule-ext-xform":74,"./sqref-ext-xform":81}],77:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../../composite-xform"),s=t("./cf-rule-ext-xform"),o=t("./conditional-formatting-ext-xform"),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={"x14:conditionalFormatting":w.cfXform=new o},w}return f(g,[{key:"hasContent",value:function(w){return w.hasExtContent===void 0&&(w.hasExtContent=w.some(function(k){return k.rules.some(s.isExt)})),w.hasExtContent}},{key:"prepare",value:function(w,k){var S=this;w.forEach(function(A){S.cfXform.prepare(A,k)})}},{key:"render",value:function(w,k){var S=this;this.hasContent(k)&&(w.openNode(this.tag),k.forEach(function(A){return S.cfXform.render(w,A)}),w.closeNode())}},{key:"createNewModel",value:function(){return[]}},{key:"onParserClose",value:function(w,k){this.model.push(k.model)}},{key:"tag",get:function(){return"x14:conditionalFormattings"}}]),g}(_);r.exports=h},{"../../composite-xform":47,"./cf-rule-ext-xform":74,"./conditional-formatting-ext-xform":76}],78:[function(t,r,e){function n(j){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(j)}function i(j,D){return y(j)||u(j,D)||f(j,D)||c()}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(j,D){if(j){if(typeof j=="string")return l(j,D);var N=Object.prototype.toString.call(j).slice(8,-1);return N==="Object"&&j.constructor&&(N=j.constructor.name),N==="Map"||N==="Set"?Array.from(j):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?l(j,D):void 0}}function l(j,D){(D==null||D>j.length)&&(D=j.length);for(var N=0,F=new Array(D);N<D;N++)F[N]=j[N];return F}function u(j,D){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(j)){var N=[],F=!0,T=!1,I=void 0;try{for(var x,O=j[Symbol.iterator]();!(F=(x=O.next()).done)&&(N.push(x.value),!D||N.length!==D);F=!0);}catch(R){T=!0,I=R}finally{try{F||O.return==null||O.return()}finally{if(T)throw I}}return N}}function y(j){if(Array.isArray(j))return j}function p(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")}function m(j,D){for(var N=0;N<D.length;N++){var F=D[N];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(j,F.key,F)}}function b(j,D,N){return D&&m(j.prototype,D),N&&m(j,N),j}function v(j,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(D&&D.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),D&&_(j,D)}function _(j,D){return(_=Object.setPrototypeOf||function(N,F){return N.__proto__=F,N})(j,D)}function s(j){var D=a();return function(){var N,F=d(j);if(D){var T=d(this).constructor;N=Reflect.construct(F,arguments,T)}else N=F.apply(this,arguments);return o(this,N)}}function o(j,D){return!D||n(D)!=="object"&&typeof D!="function"?h(j):D}function h(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function a(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(j){return!1}}function d(j){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)})(j)}var g=t("../../base-xform"),w=t("../../composite-xform"),k=t("../../style/color-xform"),S=t("./cfvo-ext-xform"),A=function(j){v(N,j);var D=s(N);function N(){var F;return p(this,N),(F=D.call(this)).map={"x14:cfvo":F.cfvoXform=new S,"x14:borderColor":F.borderColorXform=new k("x14:borderColor"),"x14:negativeBorderColor":F.negativeBorderColorXform=new k("x14:negativeBorderColor"),"x14:negativeFillColor":F.negativeFillColorXform=new k("x14:negativeFillColor"),"x14:axisColor":F.axisColorXform=new k("x14:axisColor")},F}return b(N,[{key:"render",value:function(F,T){var I=this;F.openNode(this.tag,{minLength:g.toIntAttribute(T.minLength,0,!0),maxLength:g.toIntAttribute(T.maxLength,100,!0),border:g.toBoolAttribute(T.border,!1),gradient:g.toBoolAttribute(T.gradient,!0),negativeBarColorSameAsPositive:g.toBoolAttribute(T.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:g.toBoolAttribute(T.negativeBarBorderColorSameAsPositive,!0),axisPosition:g.toAttribute(T.axisPosition,"auto"),direction:g.toAttribute(T.direction,"leftToRight")}),T.cfvo.forEach(function(x){I.cfvoXform.render(F,x)}),this.borderColorXform.render(F,T.borderColor),this.negativeBorderColorXform.render(F,T.negativeBorderColor),this.negativeFillColorXform.render(F,T.negativeFillColor),this.axisColorXform.render(F,T.axisColor),F.closeNode()}},{key:"createNewModel",value:function(F){var T=F.attributes;return{cfvo:[],minLength:g.toIntValue(T.minLength,0),maxLength:g.toIntValue(T.maxLength,100),border:g.toBoolValue(T.border,!1),gradient:g.toBoolValue(T.gradient,!0),negativeBarColorSameAsPositive:g.toBoolValue(T.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:g.toBoolValue(T.negativeBarBorderColorSameAsPositive,!0),axisPosition:g.toStringValue(T.axisPosition,"auto"),direction:g.toStringValue(T.direction,"leftToRight")}}},{key:"onParserClose",value:function(F,T){var I=i(F.split(":"),2)[1];I==="cfvo"?this.model.cfvo.push(T.model):this.model[I]=T.model}},{key:"tag",get:function(){return"x14:dataBar"}}],[{key:"isExt",value:function(F){return!F.gradient}}]),N}(w);r.exports=A},{"../../base-xform":31,"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-ext-xform":75}],79:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.leafNode(this.tag,null,d)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(a){this.model+=a}},{key:"parseClose",value:function(a){return a!==this.tag}},{key:"tag",get:function(){return"xm:f"}}]),h}(t("../../base-xform"));r.exports=_},{"../../base-xform":31}],80:[function(t,r,e){function n(j){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(D){return typeof D}:function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D})(j)}function i(j,D){return y(j)||u(j,D)||f(j,D)||c()}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(j,D){if(j){if(typeof j=="string")return l(j,D);var N=Object.prototype.toString.call(j).slice(8,-1);return N==="Object"&&j.constructor&&(N=j.constructor.name),N==="Map"||N==="Set"?Array.from(j):N==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(N)?l(j,D):void 0}}function l(j,D){(D==null||D>j.length)&&(D=j.length);for(var N=0,F=new Array(D);N<D;N++)F[N]=j[N];return F}function u(j,D){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(j)){var N=[],F=!0,T=!1,I=void 0;try{for(var x,O=j[Symbol.iterator]();!(F=(x=O.next()).done)&&(N.push(x.value),!D||N.length!==D);F=!0);}catch(R){T=!0,I=R}finally{try{F||O.return==null||O.return()}finally{if(T)throw I}}return N}}function y(j){if(Array.isArray(j))return j}function p(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")}function m(j,D){for(var N=0;N<D.length;N++){var F=D[N];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(j,F.key,F)}}function b(j,D,N){return D&&m(j.prototype,D),N&&m(j,N),j}function v(j,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(D&&D.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),D&&_(j,D)}function _(j,D){return(_=Object.setPrototypeOf||function(N,F){return N.__proto__=F,N})(j,D)}function s(j){var D=a();return function(){var N,F=d(j);if(D){var T=d(this).constructor;N=Reflect.construct(F,arguments,T)}else N=F.apply(this,arguments);return o(this,N)}}function o(j,D){return!D||n(D)!=="object"&&typeof D!="function"?h(j):D}function h(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function a(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(j){return!1}}function d(j){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)})(j)}var g=t("../../base-xform"),w=t("../../composite-xform"),k=t("./cfvo-ext-xform"),S=t("./cf-icon-ext-xform"),A=function(j){v(N,j);var D=s(N);function N(){var F;return p(this,N),(F=D.call(this)).map={"x14:cfvo":F.cfvoXform=new k,"x14:cfIcon":F.cfIconXform=new S},F}return b(N,[{key:"render",value:function(F,T){var I=this;F.openNode(this.tag,{iconSet:g.toStringAttribute(T.iconSet),reverse:g.toBoolAttribute(T.reverse,!1),showValue:g.toBoolAttribute(T.showValue,!0),custom:g.toBoolAttribute(T.icons,!1)}),T.cfvo.forEach(function(x){I.cfvoXform.render(F,x)}),T.icons&&T.icons.forEach(function(x,O){x.iconId=O,I.cfIconXform.render(F,x)}),F.closeNode()}},{key:"createNewModel",value:function(F){var T=F.attributes;return{cfvo:[],iconSet:g.toStringValue(T.iconSet,"3TrafficLights"),reverse:g.toBoolValue(T.reverse,!1),showValue:g.toBoolValue(T.showValue,!0)}}},{key:"onParserClose",value:function(F,T){var I=i(F.split(":"),2)[1];switch(I){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[I]=T.model}}},{key:"tag",get:function(){return"x14:iconSet"}}]),N}(w);r.exports=A},{"../../base-xform":31,"../../composite-xform":47,"./cf-icon-ext-xform":73,"./cfvo-ext-xform":75}],81:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.leafNode(this.tag,null,d)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(a){this.model+=a}},{key:"parseClose",value:function(a){return a!==this.tag}},{key:"tag",get:function(){return"xm:sqref"}}]),h}(t("../../base-xform"));r.exports=_},{"../../base-xform":31}],82:[function(t,r,e){function n(I){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x})(I)}function i(I,x){var O=Object.keys(I);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(I);x&&(R=R.filter(function(C){return Object.getOwnPropertyDescriptor(I,C).enumerable})),O.push.apply(O,R)}return O}function c(I){for(var x=1;x<arguments.length;x++){var O=arguments[x]!=null?arguments[x]:{};x%2?i(Object(O),!0).forEach(function(R){f(I,R,O[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(O)):i(Object(O)).forEach(function(R){Object.defineProperty(I,R,Object.getOwnPropertyDescriptor(O,R))})}return I}function f(I,x,O){return x in I?Object.defineProperty(I,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):I[x]=O,I}function l(I,x){if(!(I instanceof x))throw new TypeError("Cannot call a class as a function")}function u(I,x){for(var O=0;O<x.length;O++){var R=x[O];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(I,R.key,R)}}function y(I,x,O){return x&&u(I.prototype,x),O&&u(I,O),I}function p(I,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(x&&x.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),x&&m(I,x)}function m(I,x){return(m=Object.setPrototypeOf||function(O,R){return O.__proto__=R,O})(I,x)}function b(I){var x=s();return function(){var O,R=o(I);if(x){var C=o(this).constructor;O=Reflect.construct(R,arguments,C)}else O=R.apply(this,arguments);return v(this,O)}}function v(I,x){return!x||n(x)!=="object"&&typeof x!="function"?_(I):x}function _(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function s(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(I){return!1}}function o(I){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(x){return x.__proto__||Object.getPrototypeOf(x)})(I)}var h=t("../../base-xform"),a=t("../../composite-xform"),d=t("../../../../doc/range"),g=t("./databar-xform"),w=t("./ext-lst-ref-xform"),k=t("./formula-xform"),S=t("./color-scale-xform"),A=t("./icon-set-xform"),j={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},D=function(I){if(I.formulae&&I.formulae[0])return I.formulae[0];var x=new d(I.ref).tl;switch(I.operator){case"containsText":return'NOT(ISERROR(SEARCH("'.concat(I.text,'",').concat(x,")))");case"containsBlanks":return"LEN(TRIM(".concat(x,"))=0");case"notContainsBlanks":return"LEN(TRIM(".concat(x,"))>0");case"containsErrors":return"ISERROR(".concat(x,")");case"notContainsErrors":return"NOT(ISERROR(".concat(x,"))");default:return}},N=function(I){if(I.formulae&&I.formulae[0])return I.formulae[0];var x=new d(I.ref).tl;switch(I.timePeriod){case"thisWeek":return"AND(TODAY()-ROUNDDOWN(".concat(x,",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(x,",0)-TODAY()<=7-WEEKDAY(TODAY()))");case"lastWeek":return"AND(TODAY()-ROUNDDOWN(".concat(x,",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(x,",0)<(WEEKDAY(TODAY())+7))");case"nextWeek":return"AND(ROUNDDOWN(".concat(x,",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(x,",0)-TODAY()<(15-WEEKDAY(TODAY())))");case"yesterday":return"FLOOR(".concat(x,",1)=TODAY()-1");case"today":return"FLOOR(".concat(x,",1)=TODAY()");case"tomorrow":return"FLOOR(".concat(x,",1)=TODAY()+1");case"last7Days":return"AND(TODAY()-FLOOR(".concat(x,",1)<=6,FLOOR(").concat(x,",1)<=TODAY())");case"lastMonth":return"AND(MONTH(".concat(x,")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(x,")=YEAR(EDATE(TODAY(),0-1)))");case"thisMonth":return"AND(MONTH(".concat(x,")=MONTH(TODAY()),YEAR(").concat(x,")=YEAR(TODAY()))");case"nextMonth":return"AND(MONTH(".concat(x,")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(x,")=YEAR(EDATE(TODAY(),0+1)))");default:return}},F=function(I){var x=I.type,O=I.operator;switch(x){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:x};default:return{type:x,operator:O}}},T=function(I){p(O,I);var x=b(O);function O(){var R;return l(this,O),(R=x.call(this)).map={dataBar:R.databarXform=new g,extLst:R.extLstRefXform=new w,formula:R.formulaXform=new k,colorScale:R.colorScaleXform=new S,iconSet:R.iconSetXform=new A},R}return y(O,[{key:"render",value:function(R,C){switch(C.type){case"expression":this.renderExpression(R,C);break;case"cellIs":this.renderCellIs(R,C);break;case"top10":this.renderTop10(R,C);break;case"aboveAverage":this.renderAboveAverage(R,C);break;case"dataBar":this.renderDataBar(R,C);break;case"colorScale":this.renderColorScale(R,C);break;case"iconSet":this.renderIconSet(R,C);break;case"containsText":this.renderText(R,C);break;case"timePeriod":this.renderTimePeriod(R,C)}}},{key:"renderExpression",value:function(R,C){R.openNode(this.tag,{type:"expression",dxfId:C.dxfId,priority:C.priority}),this.formulaXform.render(R,C.formulae[0]),R.closeNode()}},{key:"renderCellIs",value:function(R,C){var P=this;R.openNode(this.tag,{type:"cellIs",dxfId:C.dxfId,priority:C.priority,operator:C.operator}),C.formulae.forEach(function(L){P.formulaXform.render(R,L)}),R.closeNode()}},{key:"renderTop10",value:function(R,C){R.leafNode(this.tag,{type:"top10",dxfId:C.dxfId,priority:C.priority,percent:h.toBoolAttribute(C.percent,!1),bottom:h.toBoolAttribute(C.bottom,!1),rank:h.toIntValue(C.rank,10,!0)})}},{key:"renderAboveAverage",value:function(R,C){R.leafNode(this.tag,{type:"aboveAverage",dxfId:C.dxfId,priority:C.priority,aboveAverage:h.toBoolAttribute(C.aboveAverage,!0)})}},{key:"renderDataBar",value:function(R,C){R.openNode(this.tag,{type:"dataBar",priority:C.priority}),this.databarXform.render(R,C),this.extLstRefXform.render(R,C),R.closeNode()}},{key:"renderColorScale",value:function(R,C){R.openNode(this.tag,{type:"colorScale",priority:C.priority}),this.colorScaleXform.render(R,C),R.closeNode()}},{key:"renderIconSet",value:function(R,C){O.isPrimitive(C)&&(R.openNode(this.tag,{type:"iconSet",priority:C.priority}),this.iconSetXform.render(R,C),R.closeNode())}},{key:"renderText",value:function(R,C){R.openNode(this.tag,{type:C.operator,dxfId:C.dxfId,priority:C.priority,operator:h.toStringAttribute(C.operator,"containsText")});var P=D(C);P&&this.formulaXform.render(R,P),R.closeNode()}},{key:"renderTimePeriod",value:function(R,C){R.openNode(this.tag,{type:"timePeriod",dxfId:C.dxfId,priority:C.priority,timePeriod:C.timePeriod});var P=N(C);P&&this.formulaXform.render(R,P),R.closeNode()}},{key:"createNewModel",value:function(R){var C=R.attributes;return c(c({},F(C)),{},{dxfId:h.toIntValue(C.dxfId),priority:h.toIntValue(C.priority),timePeriod:C.timePeriod,percent:h.toBoolValue(C.percent),bottom:h.toBoolValue(C.bottom),rank:h.toIntValue(C.rank),aboveAverage:h.toBoolValue(C.aboveAverage)})}},{key:"onParserClose",value:function(R,C){switch(R){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,C.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(C.model)}}},{key:"tag",get:function(){return"cfRule"}}],[{key:"isPrimitive",value:function(R){return R.type!=="iconSet"||!R.custom&&!j[R.iconSet]}}]),O}(a);r.exports=T},{"../../../../doc/range":10,"../../base-xform":31,"../../composite-xform":47,"./color-scale-xform":84,"./databar-xform":87,"./ext-lst-ref-xform":88,"./formula-xform":89,"./icon-set-xform":90}],83:[function(t,r,e){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(o)}function i(o,h){if(!(o instanceof h))throw new TypeError("Cannot call a class as a function")}function c(o,h){for(var a=0;a<h.length;a++){var d=h[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}function f(o,h,a){return h&&c(o.prototype,h),a&&c(o,a),o}function l(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(h&&h.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),h&&u(o,h)}function u(o,h){return(u=Object.setPrototypeOf||function(a,d){return a.__proto__=d,a})(o,h)}function y(o){var h=b();return function(){var a,d=v(o);if(h){var g=v(this).constructor;a=Reflect.construct(d,arguments,g)}else a=d.apply(this,arguments);return p(this,a)}}function p(o,h){return!h||n(h)!=="object"&&typeof h!="function"?m(o):h}function m(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}function v(o){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(o)}var _=t("../../base-xform"),s=function(o){l(a,o);var h=y(a);function a(){return i(this,a),h.apply(this,arguments)}return f(a,[{key:"render",value:function(d,g){d.leafNode(this.tag,{type:g.type,val:g.value})}},{key:"parseOpen",value:function(d){this.model={type:d.attributes.type,value:_.toFloatValue(d.attributes.val)}}},{key:"parseClose",value:function(d){return d!==this.tag}},{key:"tag",get:function(){return"cfvo"}}]),a}(_);r.exports=s},{"../../base-xform":31}],84:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../../composite-xform"),s=t("../../style/color-xform"),o=t("./cfvo-xform"),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={cfvo:w.cfvoXform=new o,color:w.colorXform=new s},w}return f(g,[{key:"render",value:function(w,k){var S=this;w.openNode(this.tag),k.cfvo.forEach(function(A){S.cfvoXform.render(w,A)}),k.color.forEach(function(A){S.colorXform.render(w,A)}),w.closeNode()}},{key:"createNewModel",value:function(w){return{cfvo:[],color:[]}}},{key:"onParserClose",value:function(w,k){this.model[w].push(k.model)}},{key:"tag",get:function(){return"colorScale"}}]),g}(_);r.exports=h},{"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-xform":83}],85:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("../../composite-xform"),s=t("./cf-rule-xform"),o=function(h){l(d,h);var a=y(d);function d(){var g;return i(this,d),(g=a.call(this)).map={cfRule:new s},g}return f(d,[{key:"render",value:function(g,w){var k=this;w.rules.some(s.isPrimitive)&&(g.openNode(this.tag,{sqref:w.ref}),w.rules.forEach(function(S){s.isPrimitive(S)&&(S.ref=w.ref,k.map.cfRule.render(g,S))}),g.closeNode())}},{key:"createNewModel",value:function(g){return{ref:g.attributes.sqref,rules:[]}}},{key:"onParserClose",value:function(g,w){this.model.rules.push(w.model)}},{key:"tag",get:function(){return"conditionalFormatting"}}]),d}(_);r.exports=o},{"../../composite-xform":47,"./cf-rule-xform":82}],86:[function(t,r,e){function n(S){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(S)}function i(S){return u(S)||l(S)||f(S)||c()}function c(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(S,A){if(S){if(typeof S=="string")return y(S,A);var j=Object.prototype.toString.call(S).slice(8,-1);return j==="Object"&&S.constructor&&(j=S.constructor.name),j==="Map"||j==="Set"?Array.from(S):j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j)?y(S,A):void 0}}function l(S){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(S))return Array.from(S)}function u(S){if(Array.isArray(S))return y(S)}function y(S,A){(A==null||A>S.length)&&(A=S.length);for(var j=0,D=new Array(A);j<A;j++)D[j]=S[j];return D}function p(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function m(S,A){for(var j=0;j<A.length;j++){var D=A[j];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}function b(S,A,j){return A&&m(S.prototype,A),j&&m(S,j),S}function v(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),A&&_(S,A)}function _(S,A){return(_=Object.setPrototypeOf||function(j,D){return j.__proto__=D,j})(S,A)}function s(S){var A=a();return function(){var j,D=d(S);if(A){var N=d(this).constructor;j=Reflect.construct(D,arguments,N)}else j=D.apply(this,arguments);return o(this,j)}}function o(S,A){return!A||n(A)!=="object"&&typeof A!="function"?h(S):A}function h(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function a(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(S){return!1}}function d(S){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(A){return A.__proto__||Object.getPrototypeOf(A)})(S)}var g=t("../../base-xform"),w=t("./conditional-formatting-xform"),k=function(S){v(j,S);var A=s(j);function j(){var D;return p(this,j),(D=A.call(this)).cfXform=new w,D}return b(j,[{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(D,N){var F=D.reduce(function(T,I){return Math.max.apply(Math,[T].concat(i(I.rules.map(function(x){return x.priority||0}))))},1);D.forEach(function(T){T.rules.forEach(function(I){I.priority||(I.priority=F++),I.style&&(I.dxfId=N.styles.addDxfStyle(I.style))})})}},{key:"render",value:function(D,N){var F=this;N.forEach(function(T){F.cfXform.render(D,T)})}},{key:"parseOpen",value:function(D){return this.parser?(this.parser.parseOpen(D),!0):D.name==="conditionalFormatting"&&(this.parser=this.cfXform,this.parser.parseOpen(D),!0)}},{key:"parseText",value:function(D){this.parser&&this.parser.parseText(D)}},{key:"parseClose",value:function(D){return!(!this.parser||!this.parser.parseClose(D)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:"reconcile",value:function(D,N){D.forEach(function(F){F.rules.forEach(function(T){T.dxfId!==void 0&&(T.style=N.styles.getDxfStyle(T.dxfId),delete T.dxfId)})})}},{key:"tag",get:function(){return"conditionalFormatting"}}]),j}(g);r.exports=k},{"../../base-xform":31,"./conditional-formatting-xform":85}],87:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../../composite-xform"),s=t("../../style/color-xform"),o=t("./cfvo-xform"),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={cfvo:w.cfvoXform=new o,color:w.colorXform=new s},w}return f(g,[{key:"render",value:function(w,k){var S=this;w.openNode(this.tag),k.cfvo.forEach(function(A){S.cfvoXform.render(w,A)}),this.colorXform.render(w,k.color),w.closeNode()}},{key:"createNewModel",value:function(){return{cfvo:[]}}},{key:"onParserClose",value:function(w,k){switch(w){case"cfvo":this.model.cfvo.push(k.model);break;case"color":this.model.color=k.model}}},{key:"tag",get:function(){return"dataBar"}}]),g}(_);r.exports=h},{"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-xform":83}],88:[function(t,r,e){function n(d){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(d)}function i(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function c(d,g){for(var w=0;w<g.length;w++){var k=g[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(d,k.key,k)}}function f(d,g,w){return g&&c(d.prototype,g),w&&c(d,w),d}function l(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),g&&u(d,g)}function u(d,g){return(u=Object.setPrototypeOf||function(w,k){return w.__proto__=k,w})(d,g)}function y(d){var g=b();return function(){var w,k=v(d);if(g){var S=v(this).constructor;w=Reflect.construct(k,arguments,S)}else w=k.apply(this,arguments);return p(this,w)}}function p(d,g){return!g||n(g)!=="object"&&typeof g!="function"?m(d):g}function m(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(d){return!1}}function v(d){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)})(d)}var _=t("../../base-xform"),s=t("../../composite-xform"),o=function(d){l(w,d);var g=y(w);function w(){return i(this,w),g.apply(this,arguments)}return f(w,[{key:"render",value:function(k,S){k.leafNode(this.tag,null,S)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(k){this.model+=k}},{key:"parseClose",value:function(k){return k!==this.tag}},{key:"tag",get:function(){return"x14:id"}}]),w}(_),h=function(d){l(w,d);var g=y(w);function w(){var k;return i(this,w),(k=g.call(this)).map={"x14:id":k.idXform=new o},k}return f(w,[{key:"render",value:function(k,S){k.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(k,S.x14Id),k.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(k,S){this.model.x14Id=S.model}},{key:"tag",get:function(){return"ext"}}]),w}(s),a=function(d){l(w,d);var g=y(w);function w(){var k;return i(this,w),(k=g.call(this)).map={ext:new h},k}return f(w,[{key:"render",value:function(k,S){k.openNode(this.tag),this.map.ext.render(k,S),k.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(k,S){Object.assign(this.model,S.model)}},{key:"tag",get:function(){return"extLst"}}]),w}(s);r.exports=a},{"../../base-xform":31,"../../composite-xform":47}],89:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.leafNode(this.tag,null,d)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(a){this.model+=a}},{key:"parseClose",value:function(a){return a!==this.tag}},{key:"tag",get:function(){return"formula"}}]),h}(t("../../base-xform"));r.exports=_},{"../../base-xform":31}],90:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../../base-xform"),s=t("../../composite-xform"),o=t("./cfvo-xform"),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={cfvo:w.cfvoXform=new o},w}return f(g,[{key:"render",value:function(w,k){var S=this;w.openNode(this.tag,{iconSet:_.toStringAttribute(k.iconSet,"3TrafficLights"),reverse:_.toBoolAttribute(k.reverse,!1),showValue:_.toBoolAttribute(k.showValue,!0)}),k.cfvo.forEach(function(A){S.cfvoXform.render(w,A)}),w.closeNode()}},{key:"createNewModel",value:function(w){var k=w.attributes;return{iconSet:_.toStringValue(k.iconSet,"3TrafficLights"),reverse:_.toBoolValue(k.reverse),showValue:_.toBoolValue(k.showValue),cfvo:[]}}},{key:"onParserClose",value:function(w,k){this.model[w].push(k.model)}},{key:"tag",get:function(){return"iconSet"}}]),g}(s);r.exports=h},{"../../base-xform":31,"../../composite-xform":47,"./cfvo-xform":83}],91:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"prepare",value:function(a,d){var g=d.styles.addStyleModel(a.style||{});g&&(a.styleId=g)}},{key:"render",value:function(a,d){a.openNode("col"),a.addAttribute("min",d.min),a.addAttribute("max",d.max),d.width&&a.addAttribute("width",d.width),d.styleId&&a.addAttribute("style",d.styleId),d.hidden&&a.addAttribute("hidden","1"),d.bestFit&&a.addAttribute("bestFit","1"),d.outlineLevel&&a.addAttribute("outlineLevel",d.outlineLevel),d.collapsed&&a.addAttribute("collapsed","1"),a.addAttribute("customWidth","1"),a.closeNode()}},{key:"parseOpen",value:function(a){if(a.name==="col"){var d=this.model={min:parseInt(a.attributes.min||"0",10),max:parseInt(a.attributes.max||"0",10),width:a.attributes.width===void 0?void 0:parseFloat(a.attributes.width||"0")};return a.attributes.style&&(d.styleId=parseInt(a.attributes.style,10)),a.attributes.hidden!==!0&&a.attributes.hidden!=="true"&&a.attributes.hidden!==1&&a.attributes.hidden!=="1"||(d.hidden=!0),a.attributes.bestFit&&(d.bestFit=!0),a.attributes.outlineLevel&&(d.outlineLevel=parseInt(a.attributes.outlineLevel,10)),a.attributes.collapsed&&(d.collapsed=!0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"reconcile",value:function(a,d){a.styleId&&(a.style=d.styles.getStyleModel(a.styleId))}},{key:"tag",get:function(){return"col"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],92:[function(t,r,e){function n(N){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F})(N)}function i(N,F){if(!(N instanceof F))throw new TypeError("Cannot call a class as a function")}function c(N,F){for(var T=0;T<F.length;T++){var I=F[T];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(N,I.key,I)}}function f(N,F,T){return F&&c(N.prototype,F),T&&c(N,T),N}function l(N,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(F&&F.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),F&&u(N,F)}function u(N,F){return(u=Object.setPrototypeOf||function(T,I){return T.__proto__=I,T})(N,F)}function y(N){var F=b();return function(){var T,I=v(N);if(F){var x=v(this).constructor;T=Reflect.construct(I,arguments,x)}else T=I.apply(this,arguments);return p(this,T)}}function p(N,F){return!F||n(F)!=="object"&&typeof F!="function"?m(N):F}function m(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(N){return!1}}function v(N){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)})(N)}function _(N,F){var T=Object.keys(N);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(N);F&&(I=I.filter(function(x){return Object.getOwnPropertyDescriptor(N,x).enumerable})),T.push.apply(T,I)}return T}function s(N){for(var F=1;F<arguments.length;F++){var T=arguments[F]!=null?arguments[F]:{};F%2?_(Object(T),!0).forEach(function(I){o(N,I,T[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(T)):_(Object(T)).forEach(function(I){Object.defineProperty(N,I,Object.getOwnPropertyDescriptor(T,I))})}return N}function o(N,F,T){return F in N?Object.defineProperty(N,F,{value:T,enumerable:!0,configurable:!0,writable:!0}):N[F]=T,N}var h=t("../../../utils/under-dash"),a=t("../../../utils/utils"),d=t("../../../utils/col-cache"),g=t("../base-xform"),w=t("../../../doc/range");function k(N,F,T,I){var x=F[T];x!==void 0?N[T]=x:I!==void 0&&(N[T]=I)}function S(N){switch(N){case"1":case"true":return!0;default:return!1}}function A(N,F,T,I){var x=F[T];x!==void 0?N[T]=S(x):I!==void 0&&(N[T]=I)}function j(N){var F=h.map(N,function(x,O){return{address:O,dataValidation:x,marked:!1}}).sort(function(x,O){return h.strcmp(x.address,O.address)}),T=h.keyBy(F,"address"),I=function(x,O,R){for(var C=0;C<O;C++){var P=d.encodeAddress(x.row+C,R);if(!N[P]||!h.isEqual(N[x.address],N[P]))return!1}return!0};return F.map(function(x){if(!x.marked){var O=d.decodeEx(x.address);if(O.dimensions)return T[O.dimensions].marked=!0,s(s({},x.dataValidation),{},{sqref:x.address});for(var R=1,C=d.encodeAddress(O.row+R,O.col);N[C]&&h.isEqual(x.dataValidation,N[C]);)R++,C=d.encodeAddress(O.row+R,O.col);for(var P=1;I(O,R,O.col+P);)P++;for(var L=0;L<R;L++)for(var H=0;H<P;H++)C=d.encodeAddress(O.row+L,O.col+H),T[C].marked=!0;if(R>1||P>1){var U=O.row+(R-1),B=O.col+(P-1);return s(s({},x.dataValidation),{},{sqref:"".concat(x.address,":").concat(d.encodeAddress(U,B))})}return s(s({},x.dataValidation),{},{sqref:x.address})}return null}).filter(Boolean)}var D=function(N){l(T,N);var F=y(T);function T(){return i(this,T),F.apply(this,arguments)}return f(T,[{key:"render",value:function(I,x){var O=j(x);O.length&&(I.openNode("dataValidations",{count:O.length}),O.forEach(function(R){I.openNode("dataValidation"),R.type!=="any"&&(I.addAttribute("type",R.type),R.operator&&R.type!=="list"&&R.operator!=="between"&&I.addAttribute("operator",R.operator),R.allowBlank&&I.addAttribute("allowBlank","1")),R.showInputMessage&&I.addAttribute("showInputMessage","1"),R.promptTitle&&I.addAttribute("promptTitle",R.promptTitle),R.prompt&&I.addAttribute("prompt",R.prompt),R.showErrorMessage&&I.addAttribute("showErrorMessage","1"),R.errorStyle&&I.addAttribute("errorStyle",R.errorStyle),R.errorTitle&&I.addAttribute("errorTitle",R.errorTitle),R.error&&I.addAttribute("error",R.error),I.addAttribute("sqref",R.sqref),(R.formulae||[]).forEach(function(C,P){I.openNode("formula".concat(P+1)),R.type==="date"?I.writeText(a.dateToExcel(new Date(C))):I.writeText(C),I.closeNode()}),I.closeNode()}),I.closeNode())}},{key:"parseOpen",value:function(I){switch(I.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=I.attributes.sqref;var x={type:I.attributes.type||"any",formulae:[]};switch(I.attributes.type&&A(x,I.attributes,"allowBlank"),A(x,I.attributes,"showInputMessage"),A(x,I.attributes,"showErrorMessage"),x.type){case"any":case"list":case"custom":break;default:k(x,I.attributes,"operator","between")}return k(x,I.attributes,"promptTitle"),k(x,I.attributes,"prompt"),k(x,I.attributes,"errorStyle"),k(x,I.attributes,"errorTitle"),k(x,I.attributes,"error"),this._dataValidation=x,!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}},{key:"parseText",value:function(I){this._formula&&this._formula.push(I)}},{key:"parseClose",value:function(I){var x=this;switch(I){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(R){R.includes(":")?new w(R).forEachAddress(function(C){x.model[C]=x._dataValidation}):x.model[R]=x._dataValidation}),!0;case"formula1":case"formula2":var O=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":O=parseInt(O,10);break;case"decimal":O=parseFloat(O);break;case"date":O=a.excelToDate(parseFloat(O))}return this._dataValidation.formulae.push(O),this._formula=void 0,!0;default:return!0}}},{key:"tag",get:function(){return"dataValidations"}}]),T}(g);r.exports=D},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/utils":26,"../base-xform":31}],93:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){d&&a.leafNode("dimension",{ref:d})}},{key:"parseOpen",value:function(a){return a.name==="dimension"&&(this.model=a.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"dimension"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],94:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){d&&a.leafNode(this.tag,{"r:id":d.rId})}},{key:"parseOpen",value:function(a){return a.name===this.tag&&(this.model={rId:a.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"drawing"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],95:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../composite-xform"),s=t("./cf-ext/conditional-formattings-ext-xform"),o=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={"x14:conditionalFormattings":w.conditionalFormattings=new s},w}return f(g,[{key:"hasContent",value:function(w){return this.conditionalFormattings.hasContent(w.conditionalFormattings)}},{key:"prepare",value:function(w,k){this.conditionalFormattings.prepare(w.conditionalFormattings,k)}},{key:"render",value:function(w,k){w.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(w,k.conditionalFormattings),w.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(w,k){this.model[w]=k.model}},{key:"tag",get:function(){return"ext"}}]),g}(_),h=function(a){l(g,a);var d=y(g);function g(){var w;return i(this,g),(w=d.call(this)).map={ext:w.ext=new o},w}return f(g,[{key:"prepare",value:function(w,k){this.ext.prepare(w,k)}},{key:"hasContent",value:function(w){return this.ext.hasContent(w)}},{key:"render",value:function(w,k){this.hasContent(k)&&(w.openNode("extLst"),this.ext.render(w,k),w.closeNode())}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(w,k){Object.assign(this.model,k.model)}},{key:"tag",get:function(){return"extLst"}}]),g}(_);r.exports=h},{"../composite-xform":47,"./cf-ext/conditional-formattings-ext-xform":77}],96:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){if(d){a.addRollback();var g=!1;a.openNode("headerFooter"),d.differentFirst&&(a.addAttribute("differentFirst","1"),g=!0),d.differentOddEven&&(a.addAttribute("differentOddEven","1"),g=!0),d.oddHeader&&typeof d.oddHeader=="string"&&(a.leafNode("oddHeader",null,d.oddHeader),g=!0),d.oddFooter&&typeof d.oddFooter=="string"&&(a.leafNode("oddFooter",null,d.oddFooter),g=!0),d.evenHeader&&typeof d.evenHeader=="string"&&(a.leafNode("evenHeader",null,d.evenHeader),g=!0),d.evenFooter&&typeof d.evenFooter=="string"&&(a.leafNode("evenFooter",null,d.evenFooter),g=!0),d.firstHeader&&typeof d.firstHeader=="string"&&(a.leafNode("firstHeader",null,d.firstHeader),g=!0),d.firstFooter&&typeof d.firstFooter=="string"&&(a.leafNode("firstFooter",null,d.firstFooter),g=!0),g?(a.closeNode(),a.commit()):a.rollback()}}},{key:"parseOpen",value:function(a){switch(a.name){case"headerFooter":return this.model={},a.attributes.differentFirst&&(this.model.differentFirst=parseInt(a.attributes.differentFirst,0)===1),a.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(a.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(a){switch(this.currentNode){case"oddHeader":this.model.oddHeader=a;break;case"oddFooter":this.model.oddFooter=a;break;case"evenHeader":this.model.evenHeader=a;break;case"evenFooter":this.model.evenFooter=a;break;case"firstHeader":this.model.firstHeader=a;break;case"firstFooter":this.model.firstFooter=a}}},{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}}},{key:"tag",get:function(){return"headerFooter"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],97:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.leafNode("hyperlink",{ref:d.address,"r:id":d.rId,tooltip:d.tooltip})}},{key:"parseOpen",value:function(a){return a.name==="hyperlink"&&(this.model={address:a.attributes.ref,rId:a.attributes["r:id"],tooltip:a.attributes.tooltip},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"hyperlink"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],98:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.leafNode("mergeCell",{ref:d})}},{key:"parseOpen",value:function(a){return a.name==="mergeCell"&&(this.model=a.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"mergeCell"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],99:[function(t,r,e){function n(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function i(m,b){for(var v=0;v<b.length;v++){var _=b[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,b,v){return b&&i(m.prototype,b),v&&i(m,v),m}var f=t("../../../utils/under-dash"),l=t("../../../doc/range"),u=t("../../../utils/col-cache"),y=t("../../../doc/enums"),p=function(){function m(){n(this,m),this.merges={}}return c(m,[{key:"add",value:function(b){if(this.merges[b.master])this.merges[b.master].expandToAddress(b.address);else{var v="".concat(b.master,":").concat(b.address);this.merges[b.master]=new l(v)}}},{key:"reconcile",value:function(b,v){f.each(b,function(_){for(var s=u.decode(_),o=s.top;o<=s.bottom;o++)for(var h=v[o-1],a=s.left;a<=s.right;a++){var d=h.cells[a-1];d?d.type===y.ValueType.Merge&&(d.master=s.tl):h.cells[a]={type:y.ValueType.Null,address:u.encodeAddress(o,a)}}})}},{key:"getMasterAddress",value:function(b){var v=this.hash[b];return v&&v.tl}},{key:"mergeCells",get:function(){return f.map(this.merges,function(b){return b.range})}}]),m}();r.exports=p},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":25}],100:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("../base-xform"),s=function(h){return h!==void 0},o=function(h){l(d,h);var a=y(d);function d(){return i(this,d),a.apply(this,arguments)}return f(d,[{key:"render",value:function(g,w){return!(!w||!s(w.summaryBelow)&&!s(w.summaryRight)||(g.leafNode(this.tag,{summaryBelow:s(w.summaryBelow)?Number(w.summaryBelow):void 0,summaryRight:s(w.summaryRight)?Number(w.summaryRight):void 0}),0))}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.model={summaryBelow:s(g.attributes.summaryBelow)?!!Number(g.attributes.summaryBelow):void 0,summaryRight:s(g.attributes.summaryRight)?!!Number(g.attributes.summaryRight):void 0},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"outlinePr"}}]),d}(_);r.exports=o},{"../base-xform":31}],101:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.leafNode("brk",d)}},{key:"parseOpen",value:function(a){return a.name==="brk"&&(this.model=a.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"brk"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],102:[function(t,r,e){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(o)}function i(o,h){if(!(o instanceof h))throw new TypeError("Cannot call a class as a function")}function c(o,h){for(var a=0;a<h.length;a++){var d=h[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}function f(o,h,a){return h&&c(o.prototype,h),a&&c(o,a),o}function l(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(h&&h.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),h&&u(o,h)}function u(o,h){return(u=Object.setPrototypeOf||function(a,d){return a.__proto__=d,a})(o,h)}function y(o){var h=b();return function(){var a,d=v(o);if(h){var g=v(this).constructor;a=Reflect.construct(d,arguments,g)}else a=d.apply(this,arguments);return p(this,a)}}function p(o,h){return!h||n(h)!=="object"&&typeof h!="function"?m(o):h}function m(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}function v(o){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(o)}var _=t("../../../utils/under-dash"),s=function(o){l(a,o);var h=y(a);function a(){return i(this,a),h.apply(this,arguments)}return f(a,[{key:"render",value:function(d,g){if(g){var w={left:g.left,right:g.right,top:g.top,bottom:g.bottom,header:g.header,footer:g.footer};_.some(w,function(k){return k!==void 0})&&d.leafNode(this.tag,w)}}},{key:"parseOpen",value:function(d){return d.name===this.tag&&(this.model={left:parseFloat(d.attributes.left||.7),right:parseFloat(d.attributes.right||.7),top:parseFloat(d.attributes.top||.75),bottom:parseFloat(d.attributes.bottom||.75),header:parseFloat(d.attributes.header||.3),footer:parseFloat(d.attributes.footer||.3)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"pageMargins"}}]),a}(t("../base-xform"));r.exports=s},{"../../../utils/under-dash":25,"../base-xform":31}],103:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){return!(!d||!d.fitToPage||(a.leafNode(this.tag,{fitToPage:d.fitToPage?"1":void 0}),0))}},{key:"parseOpen",value:function(a){return a.name===this.tag&&(this.model={fitToPage:a.attributes.fitToPage==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"pageSetUpPr"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],104:[function(t,r,e){function n(w){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function i(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function c(w,k){for(var S=0;S<k.length;S++){var A=k[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}function f(w,k,S){return k&&c(w.prototype,k),S&&c(w,S),w}function l(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),k&&u(w,k)}function u(w,k){return(u=Object.setPrototypeOf||function(S,A){return S.__proto__=A,S})(w,k)}function y(w){var k=b();return function(){var S,A=v(w);if(k){var j=v(this).constructor;S=Reflect.construct(A,arguments,j)}else S=A.apply(this,arguments);return p(this,S)}}function p(w,k){return!k||n(k)!=="object"&&typeof k!="function"?m(w):k}function m(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(w){return!1}}function v(w){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var _=t("../../../utils/under-dash");function s(w){return w?"1":void 0}function o(w){if(w==="overThenDown")return w}function h(w){switch(w){case"atEnd":case"asDisplyed":return w;default:return}}function a(w){switch(w){case"dash":case"blank":case"NA":return w;default:return}}function d(w){return w!==void 0?parseInt(w,10):void 0}var g=function(w){l(S,w);var k=y(S);function S(){return i(this,S),k.apply(this,arguments)}return f(S,[{key:"render",value:function(A,j){if(j){var D={paperSize:j.paperSize,orientation:j.orientation,horizontalDpi:j.horizontalDpi,verticalDpi:j.verticalDpi,pageOrder:o(j.pageOrder),blackAndWhite:s(j.blackAndWhite),draft:s(j.draft),cellComments:h(j.cellComments),errors:a(j.errors),scale:j.scale,fitToWidth:j.fitToWidth,fitToHeight:j.fitToHeight,firstPageNumber:j.firstPageNumber,useFirstPageNumber:s(j.firstPageNumber),usePrinterDefaults:s(j.usePrinterDefaults),copies:j.copies};_.some(D,function(N){return N!==void 0})&&A.leafNode(this.tag,D)}}},{key:"parseOpen",value:function(A){return A.name===this.tag&&(this.model={paperSize:d(A.attributes.paperSize),orientation:A.attributes.orientation||"portrait",horizontalDpi:parseInt(A.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(A.attributes.verticalDpi||"4294967295",10),pageOrder:A.attributes.pageOrder||"downThenOver",blackAndWhite:A.attributes.blackAndWhite==="1",draft:A.attributes.draft==="1",cellComments:A.attributes.cellComments||"None",errors:A.attributes.errors||"displayed",scale:parseInt(A.attributes.scale||"100",10),fitToWidth:parseInt(A.attributes.fitToWidth||"1",10),fitToHeight:parseInt(A.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(A.attributes.firstPageNumber||"1",10),useFirstPageNumber:A.attributes.useFirstPageNumber==="1",usePrinterDefaults:A.attributes.usePrinterDefaults==="1",copies:parseInt(A.attributes.copies||"1",10)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"pageSetup"}}]),S}(t("../base-xform"));r.exports=g},{"../../../utils/under-dash":25,"../base-xform":31}],105:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){d&&a.leafNode(this.tag,{"r:id":d.rId})}},{key:"parseOpen",value:function(a){return a.name===this.tag&&(this.model={rId:a.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"picture"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],106:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("../../../utils/under-dash");function s(h){return h?"1":void 0}var o=function(h){l(d,h);var a=y(d);function d(){return i(this,d),a.apply(this,arguments)}return f(d,[{key:"render",value:function(g,w){if(w){var k={headings:s(w.showRowColHeaders),gridLines:s(w.showGridLines),horizontalCentered:s(w.horizontalCentered),verticalCentered:s(w.verticalCentered)};_.some(k,function(S){return S!==void 0})&&g.leafNode(this.tag,k)}}},{key:"parseOpen",value:function(g){return g.name===this.tag&&(this.model={showRowColHeaders:g.attributes.headings==="1",showGridLines:g.attributes.gridLines==="1",horizontalCentered:g.attributes.horizontalCentered==="1",verticalCentered:g.attributes.verticalCentered==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"printOptions"}}]),d}(t("../base-xform"));r.exports=o},{"../../../utils/under-dash":25,"../base-xform":31}],107:[function(t,r,e){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(o)}function i(o,h){if(!(o instanceof h))throw new TypeError("Cannot call a class as a function")}function c(o,h){for(var a=0;a<h.length;a++){var d=h[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}function f(o,h,a){return h&&c(o.prototype,h),a&&c(o,a),o}function l(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(h&&h.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),h&&u(o,h)}function u(o,h){return(u=Object.setPrototypeOf||function(a,d){return a.__proto__=d,a})(o,h)}function y(o){var h=b();return function(){var a,d=v(o);if(h){var g=v(this).constructor;a=Reflect.construct(d,arguments,g)}else a=d.apply(this,arguments);return p(this,a)}}function p(o,h){return!h||n(h)!=="object"&&typeof h!="function"?m(o):h}function m(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}function v(o){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(o)}var _=t("./page-breaks-xform"),s=function(o){l(a,o);var h=y(a);function a(){i(this,a);var d={tag:"rowBreaks",count:!0,childXform:new _};return h.call(this,d)}return f(a,[{key:"render",value:function(d,g){if(g&&g.length){d.openNode(this.tag,this.$),this.count&&(d.addAttribute(this.$count,g.length),d.addAttribute("manualBreakCount",g.length));var w=this.childXform;g.forEach(function(k){w.render(d,k)}),d.closeNode()}else this.empty&&d.leafNode(this.tag)}}]),a}(t("../list-xform"));r.exports=s},{"../list-xform":70,"./page-breaks-xform":101}],108:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("../base-xform"),s=t("./cell-xform"),o=function(h){l(d,h);var a=y(d);function d(g){var w;return i(this,d),(w=a.call(this)).maxItems=g&&g.maxItems,w.map={c:new s},w}return f(d,[{key:"prepare",value:function(g,w){var k=w.styles.addStyleModel(g.style);k&&(g.styleId=k);var S=this.map.c;g.cells.forEach(function(A){S.prepare(A,w)})}},{key:"render",value:function(g,w,k){g.openNode("row"),g.addAttribute("r",w.number),w.height&&(g.addAttribute("ht",w.height),g.addAttribute("customHeight","1")),w.hidden&&g.addAttribute("hidden","1"),w.min>0&&w.max>0&&w.min<=w.max&&g.addAttribute("spans","".concat(w.min,":").concat(w.max)),w.styleId&&(g.addAttribute("s",w.styleId),g.addAttribute("customFormat","1")),g.addAttribute("x14ac:dyDescent","0.25"),w.outlineLevel&&g.addAttribute("outlineLevel",w.outlineLevel),w.collapsed&&g.addAttribute("collapsed","1");var S=this.map.c;w.cells.forEach(function(A){S.render(g,A,k)}),g.closeNode()}},{key:"parseOpen",value:function(g){if(this.parser)return this.parser.parseOpen(g),!0;if(g.name==="row"){this.numRowsSeen+=1;var w=g.attributes.spans?g.attributes.spans.split(":").map(function(S){return parseInt(S,10)}):[void 0,void 0],k=this.model={number:parseInt(g.attributes.r,10),min:w[0],max:w[1],cells:[]};return g.attributes.s&&(k.styleId=parseInt(g.attributes.s,10)),g.attributes.hidden!==!0&&g.attributes.hidden!=="true"&&g.attributes.hidden!==1&&g.attributes.hidden!=="1"||(k.hidden=!0),g.attributes.bestFit&&(k.bestFit=!0),g.attributes.ht&&(k.height=parseFloat(g.attributes.ht)),g.attributes.outlineLevel&&(k.outlineLevel=parseInt(g.attributes.outlineLevel,10)),g.attributes.collapsed&&(k.collapsed=!0),!0}return this.parser=this.map[g.name],!!this.parser&&(this.parser.parseOpen(g),!0)}},{key:"parseText",value:function(g){this.parser&&this.parser.parseText(g)}},{key:"parseClose",value:function(g){if(this.parser){if(!this.parser.parseClose(g)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error("Max column count (".concat(this.maxItems,") exceeded"));this.parser=void 0}return!0}return!1}},{key:"reconcile",value:function(g,w){g.style=g.styleId?w.styles.getStyleModel(g.styleId):{},g.styleId!==void 0&&(g.styleId=void 0);var k=this.map.c;g.cells.forEach(function(S){k.reconcile(S,w)})}},{key:"tag",get:function(){return"row"}}]),d}(_);r.exports=o},{"../base-xform":31,"./cell-xform":72}],109:[function(t,r,e){function n(o){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(o)}function i(o,h){if(!(o instanceof h))throw new TypeError("Cannot call a class as a function")}function c(o,h){for(var a=0;a<h.length;a++){var d=h[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(o,d.key,d)}}function f(o,h,a){return h&&c(o.prototype,h),a&&c(o,a),o}function l(o,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(h&&h.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),h&&u(o,h)}function u(o,h){return(u=Object.setPrototypeOf||function(a,d){return a.__proto__=d,a})(o,h)}function y(o){var h=b();return function(){var a,d=v(o);if(h){var g=v(this).constructor;a=Reflect.construct(d,arguments,g)}else a=d.apply(this,arguments);return p(this,a)}}function p(o,h){return!h||n(h)!=="object"&&typeof h!="function"?m(o):h}function m(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(o){return!1}}function v(o){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(h){return h.__proto__||Object.getPrototypeOf(h)})(o)}var _=t("../../../utils/under-dash"),s=function(o){l(a,o);var h=y(a);function a(){return i(this,a),h.apply(this,arguments)}return f(a,[{key:"render",value:function(d,g){if(g){var w={defaultRowHeight:g.defaultRowHeight,outlineLevelRow:g.outlineLevelRow,outlineLevelCol:g.outlineLevelCol,"x14ac:dyDescent":g.dyDescent};g.defaultColWidth&&(w.defaultColWidth=g.defaultColWidth),g.defaultRowHeight&&g.defaultRowHeight===15||(w.customHeight="1"),_.some(w,function(k){return k!==void 0})&&d.leafNode("sheetFormatPr",w)}}},{key:"parseOpen",value:function(d){return d.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(d.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(d.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(d.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(d.attributes.outlineLevelCol||"0",10)},d.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(d.attributes.defaultColWidth)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"sheetFormatPr"}}]),a}(t("../base-xform"));r.exports=s},{"../../../utils/under-dash":25,"../base-xform":31}],110:[function(t,r,e){function n(d){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g})(d)}function i(d,g){if(!(d instanceof g))throw new TypeError("Cannot call a class as a function")}function c(d,g){for(var w=0;w<g.length;w++){var k=g[w];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(d,k.key,k)}}function f(d,g,w){return g&&c(d.prototype,g),w&&c(d,w),d}function l(d,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(g&&g.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),g&&u(d,g)}function u(d,g){return(u=Object.setPrototypeOf||function(w,k){return w.__proto__=k,w})(d,g)}function y(d){var g=b();return function(){var w,k=v(d);if(g){var S=v(this).constructor;w=Reflect.construct(k,arguments,S)}else w=k.apply(this,arguments);return p(this,w)}}function p(d,g){return!g||n(g)!=="object"&&typeof g!="function"?m(d):g}function m(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(d){return!1}}function v(d){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(g){return g.__proto__||Object.getPrototypeOf(g)})(d)}var _=t("../base-xform"),s=t("../style/color-xform"),o=t("./page-setup-properties-xform"),h=t("./outline-properties-xform"),a=function(d){l(w,d);var g=y(w);function w(){var k;return i(this,w),(k=g.call(this)).map={tabColor:new s("tabColor"),pageSetUpPr:new o,outlinePr:new h},k}return f(w,[{key:"render",value:function(k,S){if(S){k.addRollback(),k.openNode("sheetPr");var A=!1;A=this.map.tabColor.render(k,S.tabColor)||A,A=this.map.pageSetUpPr.render(k,S.pageSetup)||A,(A=this.map.outlinePr.render(k,S.outlineProperties)||A)?(k.closeNode(),k.commit()):k.rollback()}}},{key:"parseOpen",value:function(k){return this.parser?(this.parser.parseOpen(k),!0):k.name===this.tag?(this.reset(),!0):!!this.map[k.name]&&(this.parser=this.map[k.name],this.parser.parseOpen(k),!0)}},{key:"parseText",value:function(k){return!!this.parser&&(this.parser.parseText(k),!0)}},{key:"parseClose",value:function(k){return this.parser?(this.parser.parseClose(k)||(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)}},{key:"tag",get:function(){return"sheetPr"}}]),w}(_);r.exports=a},{"../base-xform":31,"../style/color-xform":127,"./outline-properties-xform":100,"./page-setup-properties-xform":103}],111:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../../../utils/under-dash");function s(a,d){return a?d:void 0}function o(a,d){return a===d||void 0}var h=function(a){l(g,a);var d=y(g);function g(){return i(this,g),d.apply(this,arguments)}return f(g,[{key:"render",value:function(w,k){if(k){var S={sheet:s(k.sheet,"1"),selectLockedCells:k.selectLockedCells===!1?"1":void 0,selectUnlockedCells:k.selectUnlockedCells===!1?"1":void 0,formatCells:s(k.formatCells,"0"),formatColumns:s(k.formatColumns,"0"),formatRows:s(k.formatRows,"0"),insertColumns:s(k.insertColumns,"0"),insertRows:s(k.insertRows,"0"),insertHyperlinks:s(k.insertHyperlinks,"0"),deleteColumns:s(k.deleteColumns,"0"),deleteRows:s(k.deleteRows,"0"),sort:s(k.sort,"0"),autoFilter:s(k.autoFilter,"0"),pivotTables:s(k.pivotTables,"0")};k.sheet&&(S.algorithmName=k.algorithmName,S.hashValue=k.hashValue,S.saltValue=k.saltValue,S.spinCount=k.spinCount,S.objects=s(k.objects===!1,"1"),S.scenarios=s(k.scenarios===!1,"1")),_.some(S,function(A){return A!==void 0})&&w.leafNode(this.tag,S)}}},{key:"parseOpen",value:function(w){return w.name===this.tag&&(this.model={sheet:o(w.attributes.sheet,"1"),objects:w.attributes.objects!=="1"&&void 0,scenarios:w.attributes.scenarios!=="1"&&void 0,selectLockedCells:w.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:w.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:o(w.attributes.formatCells,"0"),formatColumns:o(w.attributes.formatColumns,"0"),formatRows:o(w.attributes.formatRows,"0"),insertColumns:o(w.attributes.insertColumns,"0"),insertRows:o(w.attributes.insertRows,"0"),insertHyperlinks:o(w.attributes.insertHyperlinks,"0"),deleteColumns:o(w.attributes.deleteColumns,"0"),deleteRows:o(w.attributes.deleteRows,"0"),sort:o(w.attributes.sort,"0"),autoFilter:o(w.attributes.autoFilter,"0"),pivotTables:o(w.attributes.pivotTables,"0")},w.attributes.algorithmName&&(this.model.algorithmName=w.attributes.algorithmName,this.model.hashValue=w.attributes.hashValue,this.model.saltValue=w.attributes.saltValue,this.model.spinCount=parseInt(w.attributes.spinCount,10)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"sheetProtection"}}]),g}(t("../base-xform"));r.exports=h},{"../../../utils/under-dash":25,"../base-xform":31}],112:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../../../utils/col-cache"),s=t("../base-xform"),o={frozen:"frozen",frozenSplit:"frozen",split:"split"},h=function(a){l(g,a);var d=y(g);function g(){return i(this,g),d.apply(this,arguments)}return f(g,[{key:"prepare",value:function(w){switch(w.state){case"frozen":case"split":break;default:w.state="normal"}}},{key:"render",value:function(w,k){w.openNode("sheetView",{workbookViewId:k.workbookViewId||0});var S,A,j,D,N=function(F,T,I){I&&w.addAttribute(F,T)};switch(N("rightToLeft","1",k.rightToLeft===!0),N("tabSelected","1",k.tabSelected),N("showRuler","0",k.showRuler===!1),N("showRowColHeaders","0",k.showRowColHeaders===!1),N("showGridLines","0",k.showGridLines===!1),N("zoomScale",k.zoomScale,k.zoomScale),N("zoomScaleNormal",k.zoomScaleNormal,k.zoomScaleNormal),N("view",k.style,k.style),k.state){case"frozen":A=k.xSplit||0,j=k.ySplit||0,S=k.topLeftCell||_.getAddress(j+1,A+1).address,D=(k.xSplit&&k.ySplit?"bottomRight":k.xSplit&&"topRight")||"bottomLeft",w.leafNode("pane",{xSplit:k.xSplit||void 0,ySplit:k.ySplit||void 0,topLeftCell:S,activePane:D,state:"frozen"}),w.leafNode("selection",{pane:D,activeCell:k.activeCell,sqref:k.activeCell});break;case"split":k.activePane==="topLeft"&&(k.activePane=void 0),w.leafNode("pane",{xSplit:k.xSplit||void 0,ySplit:k.ySplit||void 0,topLeftCell:k.topLeftCell,activePane:k.activePane}),w.leafNode("selection",{pane:k.activePane,activeCell:k.activeCell,sqref:k.activeCell});break;case"normal":k.activeCell&&w.leafNode("selection",{activeCell:k.activeCell,sqref:k.activeCell})}w.closeNode()}},{key:"parseOpen",value:function(w){switch(w.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(w.attributes.workbookViewId,10),rightToLeft:w.attributes.rightToLeft==="1",tabSelected:w.attributes.tabSelected==="1",showRuler:w.attributes.showRuler!=="0",showRowColHeaders:w.attributes.showRowColHeaders!=="0",showGridLines:w.attributes.showGridLines!=="0",zoomScale:parseInt(w.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(w.attributes.zoomScaleNormal||"100",10),style:w.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(w.attributes.xSplit||"0",10),ySplit:parseInt(w.attributes.ySplit||"0",10),topLeftCell:w.attributes.topLeftCell,activePane:w.attributes.activePane||"topLeft",state:w.attributes.state},!0;case"selection":var k=w.attributes.pane||"topLeft";return this.selections[k]={pane:k,activeCell:w.attributes.activeCell},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(w){var k,S;return w!=="sheetView"||(this.sheetView&&this.pane?(k=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:o[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"&&(k.activePane=this.pane.activePane),(S=this.selections[this.pane.activePane])&&S.activeCell&&(k.activeCell=S.activeCell),this.sheetView.style&&(k.style=this.sheetView.style)):(k=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},(S=this.selections.topLeft)&&S.activeCell&&(k.activeCell=S.activeCell),this.sheetView.style&&(k.style=this.sheetView.style)),!1)}},{key:"reconcile",value:function(){}},{key:"tag",get:function(){return"sheetView"}}]),g}(s);r.exports=h},{"../../../utils/col-cache":19,"../base-xform":31}],113:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){d&&a.leafNode(this.tag,{"r:id":d.rId})}},{key:"parseOpen",value:function(a){return a.name===this.tag&&(this.model={rId:a.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"tablePart"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],114:[function(t,r,e){function n(bt){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(rt){return typeof rt}:function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(bt)}function i(bt,rt){if(!(bt instanceof rt))throw new TypeError("Cannot call a class as a function")}function c(bt,rt){for(var Q=0;Q<rt.length;Q++){var K=rt[Q];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(bt,K.key,K)}}function f(bt,rt,Q){return rt&&c(bt.prototype,rt),Q&&c(bt,Q),bt}function l(bt,rt){if(typeof rt!="function"&&rt!==null)throw new TypeError("Super expression must either be null or a function");bt.prototype=Object.create(rt&&rt.prototype,{constructor:{value:bt,writable:!0,configurable:!0}}),rt&&u(bt,rt)}function u(bt,rt){return(u=Object.setPrototypeOf||function(Q,K){return Q.__proto__=K,Q})(bt,rt)}function y(bt){var rt=b();return function(){var Q,K=v(bt);if(rt){var nt=v(this).constructor;Q=Reflect.construct(K,arguments,nt)}else Q=K.apply(this,arguments);return p(this,Q)}}function p(bt,rt){return!rt||n(rt)!=="object"&&typeof rt!="function"?m(bt):rt}function m(bt){if(bt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return bt}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(bt){return!1}}function v(bt){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(bt)}var _=t("../../../utils/under-dash"),s=t("../../../utils/col-cache"),o=t("../../../utils/xml-stream"),h=t("../../rel-type"),a=t("./merges"),d=t("../base-xform"),g=t("../list-xform"),w=t("./row-xform"),k=t("./col-xform"),S=t("./dimension-xform"),A=t("./hyperlink-xform"),j=t("./merge-cell-xform"),D=t("./data-validations-xform"),N=t("./sheet-properties-xform"),F=t("./sheet-format-properties-xform"),T=t("./sheet-view-xform"),I=t("./sheet-protection-xform"),x=t("./page-margins-xform"),O=t("./page-setup-xform"),R=t("./print-options-xform"),C=t("./auto-filter-xform"),P=t("./picture-xform"),L=t("./drawing-xform"),H=t("./table-part-xform"),U=t("./row-breaks-xform"),B=t("./header-footer-xform"),W=t("./cf/conditional-formattings-xform"),X=t("./ext-lst-xform"),et=function(bt,rt){Object.keys(rt).forEach(function(Q){var K=bt[Q],nt=rt[Q];K===void 0&&nt!==void 0&&(bt[Q]=nt)})},ft=function(bt,rt){if(!rt||!rt.length)return bt;if(!bt||!bt.length)return rt;var Q={},K={};return bt.forEach(function(nt){Q[nt.ref]=nt,nt.rules.forEach(function(At){var ot=At.x14Id;ot&&(K[ot]=At)})}),rt.forEach(function(nt){nt.rules.forEach(function(At){var ot=K[At.x14Id];ot?et(ot,At):Q[nt.ref]?Q[nt.ref].rules.push(At):bt.push({ref:nt.ref,rules:[At]})})}),bt},gt=function(bt){l(Q,bt);var rt=y(Q);function Q(K){var nt;i(this,Q),nt=rt.call(this);var At=K||{},ot=At.maxRows,ut=At.maxCols;return nt.map={sheetPr:new N,dimension:new S,sheetViews:new g({tag:"sheetViews",count:!1,childXform:new T}),sheetFormatPr:new F,cols:new g({tag:"cols",count:!1,childXform:new k}),sheetData:new g({tag:"sheetData",count:!1,empty:!0,childXform:new w({maxItems:ut}),maxItems:ot}),autoFilter:new C,mergeCells:new g({tag:"mergeCells",count:!0,childXform:new j}),rowBreaks:new U,hyperlinks:new g({tag:"hyperlinks",count:!1,childXform:new A}),pageMargins:new x,dataValidations:new D,pageSetup:new O,headerFooter:new B,printOptions:new R,picture:new P,drawing:new L,sheetProtection:new I,tableParts:new g({tag:"tableParts",count:!0,childXform:new H}),conditionalFormatting:new W,extLst:new X},nt}return f(Q,[{key:"prepare",value:function(K,nt){var At=this;nt.merges=new a,K.hyperlinks=nt.hyperlinks=[],K.comments=nt.comments=[],nt.formulae={},nt.siFormulae=0,this.map.cols.prepare(K.cols,nt),this.map.sheetData.prepare(K.rows,nt),this.map.conditionalFormatting.prepare(K.conditionalFormattings,nt),K.mergeCells=nt.merges.mergeCells;var ot=K.rels=[];function ut(J){return"rId".concat(J.length+1)}if(K.hyperlinks.forEach(function(J){var St=ut(ot);J.rId=St,ot.push({Id:St,Type:h.Hyperlink,Target:J.target,TargetMode:"External"})}),K.comments.length>0){var Mt={Id:ut(ot),Type:h.Comments,Target:"../comments".concat(K.id,".xml")};ot.push(Mt);var Bt={Id:ut(ot),Type:h.VmlDrawing,Target:"../drawings/vmlDrawing".concat(K.id,".vml")};ot.push(Bt),K.comments.forEach(function(J){J.refAddress=s.decodeAddress(J.ref)}),nt.commentRefs.push({commentName:"comments".concat(K.id),vmlDrawing:"vmlDrawing".concat(K.id)})}var G,Z=[];K.media.forEach(function(J){if(J.type==="background"){var St=ut(ot);G=nt.media[J.imageId],ot.push({Id:St,Type:h.Image,Target:"../media/".concat(G.name,".").concat(G.extension)}),K.background={rId:St},K.image=nt.media[J.imageId]}else if(J.type==="image"){var It=K.drawing;G=nt.media[J.imageId],It||(It=K.drawing={rId:ut(ot),name:"drawing".concat(++nt.drawingsCount),anchors:[],rels:[]},nt.drawings.push(It),ot.push({Id:It.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/".concat(It.name,".xml")}));var Ft=At.preImageId===J.imageId?Z[J.imageId]:Z[It.rels.length];Ft||(Ft=ut(It.rels),Z[It.rels.length]=Ft,It.rels.push({Id:Ft,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/".concat(G.name,".").concat(G.extension)}));var Xt={picture:{rId:Ft},range:J.range};if(J.hyperlinks&&J.hyperlinks.hyperlink){var me=ut(It.rels);Z[It.rels.length]=me,Xt.picture.hyperlinks={tooltip:J.hyperlinks.tooltip,rId:me},It.rels.push({Id:me,Type:h.Hyperlink,Target:J.hyperlinks.hyperlink,TargetMode:"External"})}At.preImageId=J.imageId,It.anchors.push(Xt)}}),K.tables.forEach(function(J){var St=ut(ot);J.rId=St,ot.push({Id:St,Type:h.Table,Target:"../tables/".concat(J.target)}),J.columns.forEach(function(It){var Ft=It.style;Ft&&(It.dxfId=nt.styles.addDxfStyle(Ft))})}),this.map.extLst.prepare(K,nt)}},{key:"render",value:function(K,nt){K.openXml(o.StdDocAttributes),K.openNode("worksheet",Q.WORKSHEET_ATTRIBUTES);var At=nt.properties?{defaultRowHeight:nt.properties.defaultRowHeight,dyDescent:nt.properties.dyDescent,outlineLevelCol:nt.properties.outlineLevelCol,outlineLevelRow:nt.properties.outlineLevelRow}:void 0;nt.properties&&nt.properties.defaultColWidth&&(At.defaultColWidth=nt.properties.defaultColWidth);var ot={outlineProperties:nt.properties&&nt.properties.outlineProperties,tabColor:nt.properties&&nt.properties.tabColor,pageSetup:nt.pageSetup&&nt.pageSetup.fitToPage?{fitToPage:nt.pageSetup.fitToPage}:void 0},ut=nt.pageSetup&&nt.pageSetup.margins,Mt={showRowColHeaders:nt.pageSetup&&nt.pageSetup.showRowColHeaders,showGridLines:nt.pageSetup&&nt.pageSetup.showGridLines,horizontalCentered:nt.pageSetup&&nt.pageSetup.horizontalCentered,verticalCentered:nt.pageSetup&&nt.pageSetup.verticalCentered},Bt=nt.sheetProtection;this.map.sheetPr.render(K,ot),this.map.dimension.render(K,nt.dimensions),this.map.sheetViews.render(K,nt.views),this.map.sheetFormatPr.render(K,At),this.map.cols.render(K,nt.cols),this.map.sheetData.render(K,nt.rows),this.map.sheetProtection.render(K,Bt),this.map.autoFilter.render(K,nt.autoFilter),this.map.mergeCells.render(K,nt.mergeCells),this.map.conditionalFormatting.render(K,nt.conditionalFormattings),this.map.dataValidations.render(K,nt.dataValidations),this.map.hyperlinks.render(K,nt.hyperlinks),this.map.printOptions.render(K,Mt),this.map.pageMargins.render(K,ut),this.map.pageSetup.render(K,nt.pageSetup),this.map.headerFooter.render(K,nt.headerFooter),this.map.rowBreaks.render(K,nt.rowBreaks),this.map.drawing.render(K,nt.drawing),this.map.picture.render(K,nt.background),this.map.tableParts.render(K,nt.tables),this.map.extLst.render(K,nt),nt.rels&&nt.rels.forEach(function(G){G.Type===h.VmlDrawing&&K.leafNode("legacyDrawing",{"r:id":G.Id})}),K.closeNode()}},{key:"parseOpen",value:function(K){return this.parser?(this.parser.parseOpen(K),!0):K.name==="worksheet"?(_.each(this.map,function(nt){nt.reset()}),!0):(this.parser=this.map[K.name],this.parser&&this.parser.parseOpen(K),!0)}},{key:"parseText",value:function(K){this.parser&&this.parser.parseText(K)}},{key:"parseClose",value:function(K){if(this.parser)return this.parser.parseClose(K)||(this.parser=void 0),!0;if(K==="worksheet"){var nt=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(nt.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(nt.outlineProperties=this.map.sheetPr.model.outlineProperties);var At={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},ot=Object.assign(At,this.map.pageSetup.model,this.map.printOptions.model),ut=ft(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:nt,views:this.map.sheetViews.model,pageSetup:ot,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:ut},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(K,nt){var At=(K.relationships||[]).reduce(function(Z,J){if(Z[J.Id]=J,J.Type===h.Comments&&(K.comments=nt.comments[J.Target].comments),J.Type===h.VmlDrawing&&K.comments&&K.comments.length){var St=nt.vmlDrawings[J.Target].comments;K.comments.forEach(function(It,Ft){It.note=Object.assign({},It.note,St[Ft])})}return Z},{});if(nt.commentsMap=(K.comments||[]).reduce(function(Z,J){return J.ref&&(Z[J.ref]=J),Z},{}),nt.hyperlinkMap=(K.hyperlinks||[]).reduce(function(Z,J){return J.rId&&(Z[J.address]=At[J.rId].Target),Z},{}),nt.formulae={},K.rows=K.rows&&K.rows.filter(Boolean)||[],K.rows.forEach(function(Z){Z.cells=Z.cells&&Z.cells.filter(Boolean)||[]}),this.map.cols.reconcile(K.cols,nt),this.map.sheetData.reconcile(K.rows,nt),this.map.conditionalFormatting.reconcile(K.conditionalFormattings,nt),K.media=[],K.drawing){var ot=At[K.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(ot){var ut=ot[1];nt.drawings[ut].anchors.forEach(function(Z){if(Z.medium){var J={type:"image",imageId:Z.medium.index,range:Z.range,hyperlinks:Z.picture.hyperlinks};K.media.push(J)}})}}var Mt=K.background&&At[K.background.rId];if(Mt){var Bt=Mt.Target.split("/media/")[1],G=nt.mediaIndex&&nt.mediaIndex[Bt];G!==void 0&&K.media.push({type:"background",imageId:G})}K.tables=(K.tables||[]).map(function(Z){var J=At[Z.rId];return nt.tables[J.Target]}),delete K.relationships,delete K.hyperlinks,delete K.comments}}]),Q}(d);gt.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"},r.exports=gt},{"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/xml-stream":27,"../../rel-type":30,"../base-xform":31,"../list-xform":70,"./auto-filter-xform":71,"./cf/conditional-formattings-xform":86,"./col-xform":91,"./data-validations-xform":92,"./dimension-xform":93,"./drawing-xform":94,"./ext-lst-xform":95,"./header-footer-xform":96,"./hyperlink-xform":97,"./merge-cell-xform":98,"./merges":99,"./page-margins-xform":102,"./page-setup-xform":104,"./picture-xform":105,"./print-options-xform":106,"./row-breaks-xform":107,"./row-xform":108,"./sheet-format-properties-xform":109,"./sheet-properties-xform":110,"./sheet-protection-xform":111,"./sheet-view-xform":112,"./table-part-xform":113}],115:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(a){var d;return i(this,h),(d=o.call(this)).tag=a.tag,d.attr=a.attr,d}return f(h,[{key:"render",value:function(a,d){d&&(a.openNode(this.tag),a.closeNode())}},{key:"parseOpen",value:function(a){a.name===this.tag&&(this.model=!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],116:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(a){var d;return i(this,h),(d=o.call(this)).tag=a.tag,d.attr=a.attr,d.attrs=a.attrs,d._format=a.format||function(g){try{return Number.isNaN(g.getTime())?"":g.toISOString()}catch(w){return""}},d._parse=a.parse||function(g){return new Date(g)},d}return f(h,[{key:"render",value:function(a,d){d&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,this._format(d)):a.writeText(this._format(d)),a.closeNode())}},{key:"parseOpen",value:function(a){a.name===this.tag&&(this.attr?this.model=this._parse(a.attributes[this.attr]):this.text=[])}},{key:"parseText",value:function(a){this.attr||this.text.push(a)}},{key:"parseClose",value:function(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],117:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(a){var d;return i(this,h),(d=o.call(this)).tag=a.tag,d.attr=a.attr,d.attrs=a.attrs,d.zero=a.zero,d}return f(h,[{key:"render",value:function(a,d){(d||this.zero)&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,d):a.writeText(d),a.closeNode())}},{key:"parseOpen",value:function(a){return a.name===this.tag&&(this.attr?this.model=parseInt(a.attributes[this.attr],10):this.text=[],!0)}},{key:"parseText",value:function(a){this.attr||this.text.push(a)}},{key:"parseClose",value:function(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],118:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(a){var d;return i(this,h),(d=o.call(this)).tag=a.tag,d.attr=a.attr,d.attrs=a.attrs,d}return f(h,[{key:"render",value:function(a,d){d!==void 0&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,d):a.writeText(d),a.closeNode())}},{key:"parseOpen",value:function(a){a.name===this.tag&&(this.attr?this.model=a.attributes[this.attr]:this.text=[])}},{key:"parseText",value:function(a){this.attr||this.text.push(a)}},{key:"parseClose",value:function(){return this.attr||(this.model=this.text.join("")),!1}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],119:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("./base-xform"),s=t("../../utils/xml-stream");function o(a,d){a.openNode(d.tag,d.$),d.c&&d.c.forEach(function(g){o(a,g)}),d.t&&a.writeText(d.t),a.closeNode()}var h=function(a){l(g,a);var d=y(g);function g(w){var k;return i(this,g),(k=d.call(this))._model=w,k}return f(g,[{key:"render",value:function(w){if(!this._xml){var k=new s;o(k,this._model),this._xml=k.xml}w.writeXml(this._xml)}},{key:"parseOpen",value:function(){return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(w){return w!==this._model.tag}}]),g}(_);r.exports=h},{"../../utils/xml-stream":27,"./base-xform":31}],120:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("./text-xform"),s=t("./rich-text-xform"),o=function(h){l(d,h);var a=y(d);function d(){var g;return i(this,d),(g=a.call(this)).map={r:new s,t:new _},g}return f(d,[{key:"render",value:function(g,w){if(g.openNode(this.tag,{sb:w.sb||0,eb:w.eb||0}),w&&w.hasOwnProperty("richText")&&w.richText){var k=this.map.r;w.richText.forEach(function(S){k.render(g,S)})}else w&&this.map.t.render(g,w.text);g.closeNode()}},{key:"parseOpen",value:function(g){var w=g.name;return this.parser?(this.parser.parseOpen(g),!0):w===this.tag?(this.model={sb:parseInt(g.attributes.sb,10),eb:parseInt(g.attributes.eb,10)},!0):(this.parser=this.map[w],!!this.parser&&(this.parser.parseOpen(g),!0))}},{key:"parseText",value:function(g){this.parser&&this.parser.parseText(g)}},{key:"parseClose",value:function(g){if(this.parser){if(!this.parser.parseClose(g)){switch(g){case"r":var w=this.model.richText;w||(w=this.model.richText=[]),w.push(this.parser.model);break;case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return g!==this.tag}},{key:"tag",get:function(){return"rPh"}}]),d}(t("../base-xform"));r.exports=o},{"../base-xform":31,"./rich-text-xform":121,"./text-xform":124}],121:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("./text-xform"),s=t("../style/font-xform"),o=function(h){l(d,h);var a=y(d);function d(g){var w;return i(this,d),(w=a.call(this)).model=g,w}return f(d,[{key:"render",value:function(g,w){w=w||this.model,g.openNode("r"),w.font&&this.fontXform.render(g,w.font),this.textXform.render(g,w.text),g.closeNode()}},{key:"parseOpen",value:function(g){if(this.parser)return this.parser.parseOpen(g),!0;switch(g.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(g),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(g),!0;default:return!1}}},{key:"parseText",value:function(g){this.parser&&this.parser.parseText(g)}},{key:"parseClose",value:function(g){switch(g){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(g),!0}}},{key:"tag",get:function(){return"r"}},{key:"textXform",get:function(){return this._textXform||(this._textXform=new _)}},{key:"fontXform",get:function(){return this._fontXform||(this._fontXform=new s(d.FONT_OPTIONS))}}]),d}(t("../base-xform"));o.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},r.exports=o},{"../base-xform":31,"../style/font-xform":130,"./text-xform":124}],122:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("./text-xform"),s=t("./rich-text-xform"),o=t("./phonetic-text-xform"),h=function(a){l(g,a);var d=y(g);function g(w){var k;return i(this,g),(k=d.call(this)).model=w,k.map={r:new s,t:new _,rPh:new o},k}return f(g,[{key:"render",value:function(w,k){var S=this;w.openNode(this.tag),k&&k.hasOwnProperty("richText")&&k.richText?k.richText.length?k.richText.forEach(function(A){S.map.r.render(w,A)}):this.map.t.render(w,""):k!=null&&this.map.t.render(w,k),w.closeNode()}},{key:"parseOpen",value:function(w){var k=w.name;return this.parser?(this.parser.parseOpen(w),!0):k===this.tag?(this.model={},!0):(this.parser=this.map[k],!!this.parser&&(this.parser.parseOpen(w),!0))}},{key:"parseText",value:function(w){this.parser&&this.parser.parseText(w)}},{key:"parseClose",value:function(w){if(this.parser){if(!this.parser.parseClose(w)){switch(w){case"r":var k=this.model.richText;k||(k=this.model.richText=[]),k.push(this.parser.model);break;case"t":this.model=this.parser.model}this.parser=void 0}return!0}return w!==this.tag}},{key:"tag",get:function(){return"si"}}]),g}(t("../base-xform"));r.exports=h},{"../base-xform":31,"./phonetic-text-xform":120,"./rich-text-xform":121,"./text-xform":124}],123:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../../../utils/xml-stream"),s=t("../base-xform"),o=t("./shared-string-xform"),h=function(a){l(g,a);var d=y(g);function g(w){var k;return i(this,g),(k=d.call(this)).model=w||{values:[],count:0},k.hash=Object.create(null),k.rich=Object.create(null),k}return f(g,[{key:"getString",value:function(w){return this.model.values[w]}},{key:"add",value:function(w){return w.richText?this.addRichText(w):this.addText(w)}},{key:"addText",value:function(w){var k=this.hash[w];return k===void 0&&(k=this.hash[w]=this.model.values.length,this.model.values.push(w)),this.model.count++,k}},{key:"addRichText",value:function(w){var k=this.sharedStringXform.toXml(w),S=this.rich[k];return S===void 0&&(S=this.rich[k]=this.model.values.length,this.model.values.push(w)),this.model.count++,S}},{key:"render",value:function(w,k){k=k||this._values,w.openXml(_.StdDocAttributes),w.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:k.count,uniqueCount:k.values.length});var S=this.sharedStringXform;k.values.forEach(function(A){S.render(w,A)}),w.closeNode()}},{key:"parseOpen",value:function(w){if(this.parser)return this.parser.parseOpen(w),!0;switch(w.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(w),!0;default:throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(w)))}}},{key:"parseText",value:function(w){this.parser&&this.parser.parseText(w)}},{key:"parseClose",value:function(w){if(this.parser)return this.parser.parseClose(w)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if(w==="sst")return!1;throw new Error("Unexpected xml node in parseClose: ".concat(w))}},{key:"sharedStringXform",get:function(){return this._sharedStringXform||(this._sharedStringXform=new o)}},{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}}]),g}(s);r.exports=h},{"../../../utils/xml-stream":27,"../base-xform":31,"./shared-string-xform":122}],124:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){a.openNode("t"),/^\s|\n|\s$/.test(d)&&a.addAttribute("xml:space","preserve"),a.writeText(d),a.closeNode()}},{key:"parseOpen",value:function(a){return a.name==="t"&&(this._text=[],!0)}},{key:"parseText",value:function(a){this._text.push(a)}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"t"}},{key:"model",get:function(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,function(a,d){return String.fromCharCode(parseInt(d,16))})}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],125:[function(t,r,e){function n(g){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}function i(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function c(g,w){for(var k=0;k<w.length;k++){var S=w[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function f(g,w,k){return w&&c(g.prototype,w),k&&c(g,k),g}function l(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),w&&u(g,w)}function u(g,w){return(u=Object.setPrototypeOf||function(k,S){return k.__proto__=S,k})(g,w)}function y(g){var w=b();return function(){var k,S=v(g);if(w){var A=v(this).constructor;k=Reflect.construct(S,arguments,A)}else k=S.apply(this,arguments);return p(this,k)}}function p(g,w){return!w||n(w)!=="object"&&typeof w!="function"?m(g):w}function m(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(g){return!1}}function v(g){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(g)}var _=t("../../../doc/enums"),s=t("../../../utils/utils"),o=t("../base-xform"),h={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(function(g,w){return g[w]=!0,g},{}),horizontal:function(g){return this.horizontalValues[g]?g:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(function(g,w){return g[w]=!0,g},{}),vertical:function(g){return g==="middle"?"center":this.verticalValues[g]?g:void 0},wrapText:function(g){return!!g||void 0},shrinkToFit:function(g){return!!g||void 0},textRotation:function(g){return g==="vertical"||(g=s.validInt(g))>=-90&&g<=90?g:void 0},indent:function(g){return g=s.validInt(g),Math.max(0,g)},readingOrder:function(g){switch(g){case"ltr":return _.ReadingOrder.LeftToRight;case"rtl":return _.ReadingOrder.RightToLeft;default:return}}},a={toXml:function(g){if(g=h.textRotation(g)){if(g==="vertical")return 255;var w=Math.round(g);if(w>=0&&w<=90)return w;if(w<0&&w>=-90)return 90-w}},toModel:function(g){var w=s.validInt(g);if(w!==void 0){if(w===255)return"vertical";if(w>=0&&w<=90)return w;if(w>90&&w<=180)return 90-w}}},d=function(g){l(k,g);var w=y(k);function k(){return i(this,k),w.apply(this,arguments)}return f(k,[{key:"render",value:function(S,A){S.addRollback(),S.openNode("alignment");var j=!1;function D(N,F){F&&(S.addAttribute(N,F),j=!0)}D("horizontal",h.horizontal(A.horizontal)),D("vertical",h.vertical(A.vertical)),D("wrapText",!!h.wrapText(A.wrapText)&&"1"),D("shrinkToFit",!!h.shrinkToFit(A.shrinkToFit)&&"1"),D("indent",h.indent(A.indent)),D("textRotation",a.toXml(A.textRotation)),D("readingOrder",h.readingOrder(A.readingOrder)),S.closeNode(),j?S.commit():S.rollback()}},{key:"parseOpen",value:function(S){var A={},j=!1;function D(N,F,T){N&&(A[F]=T,j=!0)}D(S.attributes.horizontal,"horizontal",S.attributes.horizontal),D(S.attributes.vertical,"vertical",S.attributes.vertical==="center"?"middle":S.attributes.vertical),D(S.attributes.wrapText,"wrapText",!!S.attributes.wrapText),D(S.attributes.shrinkToFit,"shrinkToFit",!!S.attributes.shrinkToFit),D(S.attributes.indent,"indent",parseInt(S.attributes.indent,10)),D(S.attributes.textRotation,"textRotation",a.toModel(S.attributes.textRotation)),D(S.attributes.readingOrder,"readingOrder",S.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=j?A:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"alignment"}}]),k}(o);r.exports=d},{"../../../doc/enums":7,"../../../utils/utils":26,"../base-xform":31}],126:[function(t,r,e){function n(w,k){var S=Object.keys(w);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(w);k&&(A=A.filter(function(j){return Object.getOwnPropertyDescriptor(w,j).enumerable})),S.push.apply(S,A)}return S}function i(w){for(var k=1;k<arguments.length;k++){var S=arguments[k]!=null?arguments[k]:{};k%2?n(Object(S),!0).forEach(function(A){c(w,A,S[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(S)):n(Object(S)).forEach(function(A){Object.defineProperty(w,A,Object.getOwnPropertyDescriptor(S,A))})}return w}function c(w,k,S){return k in w?Object.defineProperty(w,k,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[k]=S,w}function f(w){return(f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function l(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function u(w,k){for(var S=0;S<k.length;S++){var A=k[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}function y(w,k,S){return k&&u(w.prototype,k),S&&u(w,S),w}function p(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),k&&m(w,k)}function m(w,k){return(m=Object.setPrototypeOf||function(S,A){return S.__proto__=A,S})(w,k)}function b(w){var k=s();return function(){var S,A=o(w);if(k){var j=o(this).constructor;S=Reflect.construct(A,arguments,j)}else S=A.apply(this,arguments);return v(this,S)}}function v(w,k){return!k||f(k)!=="object"&&typeof k!="function"?_(w):k}function _(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function s(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(w){return!1}}function o(w){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var h=t("../base-xform"),a=t("./color-xform"),d=function(w){p(S,w);var k=b(S);function S(A){var j;return l(this,S),(j=k.call(this)).name=A,j.map={color:new a},j}return y(S,[{key:"render",value:function(A,j,D){var N=j&&j.color||D||this.defaultColor;A.openNode(this.name),j&&j.style&&(A.addAttribute("style",j.style),N&&this.map.color.render(A,N)),A.closeNode()}},{key:"parseOpen",value:function(A){if(this.parser)return this.parser.parseOpen(A),!0;switch(A.name){case this.name:var j=A.attributes.style;return this.model=j?{style:j}:void 0,!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(A),!0;default:return!1}}},{key:"parseText",value:function(A){this.parser&&this.parser.parseText(A)}},{key:"parseClose",value:function(A){return this.parser?(this.parser.parseClose(A)||(this.parser=void 0),!0):(A===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}},{key:"validStyle",value:function(A){return S.validStyleValues[A]}},{key:"tag",get:function(){return this.name}}]),S}(h);d.validStyleValues=["thin","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(function(w,k){return w[k]=!0,w},{});var g=function(w){p(S,w);var k=b(S);function S(){var A;return l(this,S),(A=k.call(this)).map={top:new d("top"),left:new d("left"),bottom:new d("bottom"),right:new d("right"),diagonal:new d("diagonal")},A}return y(S,[{key:"render",value:function(A,j){var D=j.color;function N(F,T){F&&!F.color&&j.color&&(F=i(i({},F),{},{color:j.color})),T.render(A,F,D)}A.openNode("border"),j.diagonal&&j.diagonal.style&&(j.diagonal.up&&A.addAttribute("diagonalUp","1"),j.diagonal.down&&A.addAttribute("diagonalDown","1")),N(j.left,this.map.left),N(j.right,this.map.right),N(j.top,this.map.top),N(j.bottom,this.map.bottom),N(j.diagonal,this.map.diagonal),A.closeNode()}},{key:"parseOpen",value:function(A){return this.parser?(this.parser.parseOpen(A),!0):A.name==="border"?(this.reset(),this.diagonalUp=!!A.attributes.diagonalUp,this.diagonalDown=!!A.attributes.diagonalDown,!0):(this.parser=this.map[A.name],!!this.parser&&(this.parser.parseOpen(A),!0))}},{key:"parseText",value:function(A){this.parser&&this.parser.parseText(A)}},{key:"parseClose",value:function(A){if(this.parser)return this.parser.parseClose(A)||(this.parser=void 0),!0;if(A==="border"){var j=this.model={},D=function(N,F,T){F&&(T&&Object.assign(F,T),j[N]=F)};D("left",this.map.left.model),D("right",this.map.right.model),D("top",this.map.top.model),D("bottom",this.map.bottom.model),D("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}]),S}(h);r.exports=g},{"../base-xform":31,"./color-xform":127}],127:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(a){var d;return i(this,h),(d=o.call(this)).name=a||"color",d}return f(h,[{key:"render",value:function(a,d){return!!d&&(a.openNode(this.name),d.argb?a.addAttribute("rgb",d.argb):d.theme!==void 0?(a.addAttribute("theme",d.theme),d.tint!==void 0&&a.addAttribute("tint",d.tint)):d.indexed!==void 0?a.addAttribute("indexed",d.indexed):a.addAttribute("auto","1"),a.closeNode(),!0)}},{key:"parseOpen",value:function(a){return a.name===this.name&&(a.attributes.rgb?this.model={argb:a.attributes.rgb}:a.attributes.theme?(this.model={theme:parseInt(a.attributes.theme,10)},a.attributes.tint&&(this.model.tint=parseFloat(a.attributes.tint))):a.attributes.indexed?this.model={indexed:parseInt(a.attributes.indexed,10)}:this.model=void 0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return this.name}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],128:[function(t,r,e){function n(k){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(k)}function i(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function c(k,S){for(var A=0;A<S.length;A++){var j=S[A];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(k,j.key,j)}}function f(k,S,A){return S&&c(k.prototype,S),A&&c(k,A),k}function l(k,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(S&&S.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),S&&u(k,S)}function u(k,S){return(u=Object.setPrototypeOf||function(A,j){return A.__proto__=j,A})(k,S)}function y(k){var S=b();return function(){var A,j=v(k);if(S){var D=v(this).constructor;A=Reflect.construct(j,arguments,D)}else A=j.apply(this,arguments);return p(this,A)}}function p(k,S){return!S||n(S)!=="object"&&typeof S!="function"?m(k):S}function m(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(k){return!1}}function v(k){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)})(k)}var _=t("../base-xform"),s=t("./alignment-xform"),o=t("./border-xform"),h=t("./fill-xform"),a=t("./font-xform"),d=t("./numfmt-xform"),g=t("./protection-xform"),w=function(k){l(A,k);var S=y(A);function A(){var j;return i(this,A),(j=S.call(this)).map={alignment:new s,border:new o,fill:new h,font:new a,numFmt:new d,protection:new g},j}return f(A,[{key:"render",value:function(j,D){j.openNode(this.tag),D.font&&this.map.font.render(j,D.font),D.numFmt&&this.map.numFmt.render(j,D.numFmt),D.fill&&this.map.fill.render(j,D.fill),D.alignment&&this.map.alignment.render(j,D.alignment),D.border&&this.map.border.render(j,D.border),D.protection&&this.map.protection.render(j,D.protection),j.closeNode()}},{key:"parseOpen",value:function(j){return this.parser?(this.parser.parseOpen(j),!0):j.name===this.tag?(this.reset(),!0):(this.parser=this.map[j.name],this.parser&&this.parser.parseOpen(j),!0)}},{key:"parseText",value:function(j){this.parser&&this.parser.parseText(j)}},{key:"parseClose",value:function(j){return this.parser?(this.parser.parseClose(j)||(this.parser=void 0),!0):j!==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)}},{key:"tag",get:function(){return"dxf"}}]),A}(_);r.exports=w},{"../base-xform":31,"./alignment-xform":125,"./border-xform":126,"./fill-xform":129,"./font-xform":130,"./numfmt-xform":131,"./protection-xform":132}],129:[function(t,r,e){function n(g){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}function i(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function c(g,w){for(var k=0;k<w.length;k++){var S=w[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function f(g,w,k){return w&&c(g.prototype,w),k&&c(g,k),g}function l(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),w&&u(g,w)}function u(g,w){return(u=Object.setPrototypeOf||function(k,S){return k.__proto__=S,k})(g,w)}function y(g){var w=b();return function(){var k,S=v(g);if(w){var A=v(this).constructor;k=Reflect.construct(S,arguments,A)}else k=S.apply(this,arguments);return p(this,k)}}function p(g,w){return!w||n(w)!=="object"&&typeof w!="function"?m(g):w}function m(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(g){return!1}}function v(g){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(g)}var _=t("../base-xform"),s=t("./color-xform"),o=function(g){l(k,g);var w=y(k);function k(){var S;return i(this,k),(S=w.call(this)).map={color:new s},S}return f(k,[{key:"render",value:function(S,A){S.openNode("stop"),S.addAttribute("position",A.position),this.map.color.render(S,A.color),S.closeNode()}},{key:"parseOpen",value:function(S){if(this.parser)return this.parser.parseOpen(S),!0;switch(S.name){case"stop":return this.model={position:parseFloat(S.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(S),!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(S){return!!this.parser&&(this.parser.parseClose(S)||(this.model.color=this.parser.model,this.parser=void 0),!0)}},{key:"tag",get:function(){return"stop"}}]),k}(_),h=function(g){l(k,g);var w=y(k);function k(){var S;return i(this,k),(S=w.call(this)).map={fgColor:new s("fgColor"),bgColor:new s("bgColor")},S}return f(k,[{key:"render",value:function(S,A){S.openNode("patternFill"),S.addAttribute("patternType",A.pattern),A.fgColor&&this.map.fgColor.render(S,A.fgColor),A.bgColor&&this.map.bgColor.render(S,A.bgColor),S.closeNode()}},{key:"parseOpen",value:function(S){return this.parser?(this.parser.parseOpen(S),!0):S.name==="patternFill"?(this.model={type:"pattern",pattern:S.attributes.patternType},!0):(this.parser=this.map[S.name],!!this.parser&&(this.parser.parseOpen(S),!0))}},{key:"parseText",value:function(S){this.parser&&this.parser.parseText(S)}},{key:"parseClose",value:function(S){return!!this.parser&&(this.parser.parseClose(S)||(this.parser.model&&(this.model[S]=this.parser.model),this.parser=void 0),!0)}},{key:"name",get:function(){return"pattern"}},{key:"tag",get:function(){return"patternFill"}}]),k}(_),a=function(g){l(k,g);var w=y(k);function k(){var S;return i(this,k),(S=w.call(this)).map={stop:new o},S}return f(k,[{key:"render",value:function(S,A){switch(S.openNode("gradientFill"),A.gradient){case"angle":S.addAttribute("degree",A.degree);break;case"path":S.addAttribute("type","path"),A.center.left&&(S.addAttribute("left",A.center.left),A.center.right===void 0&&S.addAttribute("right",A.center.left)),A.center.right&&S.addAttribute("right",A.center.right),A.center.top&&(S.addAttribute("top",A.center.top),A.center.bottom===void 0&&S.addAttribute("bottom",A.center.top)),A.center.bottom&&S.addAttribute("bottom",A.center.bottom)}var j=this.map.stop;A.stops.forEach(function(D){j.render(S,D)}),S.closeNode()}},{key:"parseOpen",value:function(S){if(this.parser)return this.parser.parseOpen(S),!0;switch(S.name){case"gradientFill":var A=this.model={stops:[]};return S.attributes.degree?(A.gradient="angle",A.degree=parseInt(S.attributes.degree,10)):S.attributes.type==="path"&&(A.gradient="path",A.center={left:S.attributes.left?parseFloat(S.attributes.left):0,top:S.attributes.top?parseFloat(S.attributes.top):0},S.attributes.right!==S.attributes.left&&(A.center.right=S.attributes.right?parseFloat(S.attributes.right):0),S.attributes.bottom!==S.attributes.top&&(A.center.bottom=S.attributes.bottom?parseFloat(S.attributes.bottom):0)),!0;case"stop":return this.parser=this.map.stop,this.parser.parseOpen(S),!0;default:return!1}}},{key:"parseText",value:function(S){this.parser&&this.parser.parseText(S)}},{key:"parseClose",value:function(S){return!!this.parser&&(this.parser.parseClose(S)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}},{key:"name",get:function(){return"gradient"}},{key:"tag",get:function(){return"gradientFill"}}]),k}(_),d=function(g){l(k,g);var w=y(k);function k(){var S;return i(this,k),(S=w.call(this)).map={patternFill:new h,gradientFill:new a},S}return f(k,[{key:"render",value:function(S,A){switch(S.addRollback(),S.openNode("fill"),A.type){case"pattern":this.map.patternFill.render(S,A);break;case"gradient":this.map.gradientFill.render(S,A);break;default:return void S.rollback()}S.closeNode(),S.commit()}},{key:"parseOpen",value:function(S){return this.parser?(this.parser.parseOpen(S),!0):S.name==="fill"?(this.model={},!0):(this.parser=this.map[S.name],!!this.parser&&(this.parser.parseOpen(S),!0))}},{key:"parseText",value:function(S){this.parser&&this.parser.parseText(S)}},{key:"parseClose",value:function(S){return!!this.parser&&(this.parser.parseClose(S)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}},{key:"validStyle",value:function(S){return k.validPatternValues[S]}},{key:"tag",get:function(){return"fill"}}]),k}(_);d.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(function(g,w){return g[w]=!0,g},{}),d.StopXform=o,d.PatternFillXform=h,d.GradientFillXform=a,r.exports=d},{"../base-xform":31,"./color-xform":127}],130:[function(t,r,e){function n(w){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function i(w,k){if(!(w instanceof k))throw new TypeError("Cannot call a class as a function")}function c(w,k){for(var S=0;S<k.length;S++){var A=k[S];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(w,A.key,A)}}function f(w,k,S){return k&&c(w.prototype,k),S&&c(w,S),w}function l(w,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(k&&k.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),k&&u(w,k)}function u(w,k){return(u=Object.setPrototypeOf||function(S,A){return S.__proto__=A,S})(w,k)}function y(w){var k=b();return function(){var S,A=v(w);if(k){var j=v(this).constructor;S=Reflect.construct(A,arguments,j)}else S=A.apply(this,arguments);return p(this,S)}}function p(w,k){return!k||n(k)!=="object"&&typeof k!="function"?m(w):k}function m(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(w){return!1}}function v(w){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var _=t("./color-xform"),s=t("../simple/boolean-xform"),o=t("../simple/integer-xform"),h=t("../simple/string-xform"),a=t("./underline-xform"),d=t("../../../utils/under-dash"),g=function(w){l(S,w);var k=y(S);function S(A){var j;return i(this,S),(j=k.call(this)).options=A||S.OPTIONS,j.map={b:{prop:"bold",xform:new s({tag:"b",attr:"val"})},i:{prop:"italic",xform:new s({tag:"i",attr:"val"})},u:{prop:"underline",xform:new a},charset:{prop:"charset",xform:new o({tag:"charset",attr:"val"})},color:{prop:"color",xform:new _},condense:{prop:"condense",xform:new s({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new s({tag:"extend",attr:"val"})},family:{prop:"family",xform:new o({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new s({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new h({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new h({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new s({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new s({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new o({tag:"sz",attr:"val"})}},j.map[j.options.fontNameTag]={prop:"name",xform:new h({tag:j.options.fontNameTag,attr:"val"})},j}return f(S,[{key:"render",value:function(A,j){var D=this.map;A.openNode(this.options.tagName),d.each(this.map,function(N,F){D[F].xform.render(A,j[N.prop])}),A.closeNode()}},{key:"parseOpen",value:function(A){return this.parser?(this.parser.parseOpen(A),!0):this.map[A.name]?(this.parser=this.map[A.name].xform,this.parser.parseOpen(A)):A.name===this.options.tagName&&(this.model={},!0)}},{key:"parseText",value:function(A){this.parser&&this.parser.parseText(A)}},{key:"parseClose",value:function(A){if(this.parser&&!this.parser.parseClose(A)){var j=this.map[A];return this.parser.model&&(this.model[j.prop]=this.parser.model),this.parser=void 0,!0}return A!==this.options.tagName}},{key:"tag",get:function(){return this.options.tagName}}]),S}(t("../base-xform"));g.OPTIONS={tagName:"font",fontNameTag:"name"},r.exports=g},{"../../../utils/under-dash":25,"../base-xform":31,"../simple/boolean-xform":115,"../simple/integer-xform":117,"../simple/string-xform":118,"./color-xform":127,"./underline-xform":135}],131:[function(t,r,e){function n(g){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}function i(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function c(g,w){for(var k=0;k<w.length;k++){var S=w[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(g,S.key,S)}}function f(g,w,k){return w&&c(g.prototype,w),k&&c(g,k),g}function l(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),w&&u(g,w)}function u(g,w){return(u=Object.setPrototypeOf||function(k,S){return k.__proto__=S,k})(g,w)}function y(g){var w=b();return function(){var k,S=v(g);if(w){var A=v(this).constructor;k=Reflect.construct(S,arguments,A)}else k=S.apply(this,arguments);return p(this,k)}}function p(g,w){return!w||n(w)!=="object"&&typeof w!="function"?m(g):w}function m(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(g){return!1}}function v(g){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(g)}var _=t("../../../utils/under-dash"),s=t("../../defaultnumformats"),o=t("../base-xform");function h(){var g={};return _.each(s,function(w,k){w.f&&(g[w.f]=parseInt(k,10))}),g}var a=h(),d=function(g){l(k,g);var w=y(k);function k(S,A){var j;return i(this,k),(j=w.call(this)).id=S,j.formatCode=A,j}return f(k,[{key:"render",value:function(S,A){S.leafNode("numFmt",{numFmtId:A.id,formatCode:A.formatCode})}},{key:"parseOpen",value:function(S){return S.name==="numFmt"&&(this.model={id:parseInt(S.attributes.numFmtId,10),formatCode:S.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"numFmt"}}]),k}(o);d.getDefaultFmtId=function(g){return a[g]},d.getDefaultFmtCode=function(g){return s[g]&&s[g].f},r.exports=d},{"../../../utils/under-dash":25,"../../defaultnumformats":29,"../base-xform":31}],132:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("../base-xform"),s={boolean:function(h,a){return h===void 0?a:h}},o=function(h){l(d,h);var a=y(d);function d(){return i(this,d),a.apply(this,arguments)}return f(d,[{key:"render",value:function(g,w){g.addRollback(),g.openNode("protection");var k=!1;function S(A,j){j!==void 0&&(g.addAttribute(A,j),k=!0)}S("locked",s.boolean(w.locked,!0)?void 0:"0"),S("hidden",s.boolean(w.hidden,!1)?"1":void 0),g.closeNode(),k?g.commit():g.rollback()}},{key:"parseOpen",value:function(g){var w={locked:g.attributes.locked!=="0",hidden:g.attributes.hidden==="1"},k=!w.locked||w.hidden;this.model=k?w:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"protection"}}]),d}(_);r.exports=o},{"../base-xform":31}],133:[function(t,r,e){function n(a){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function c(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function f(a,d,g){return d&&c(a.prototype,d),g&&c(a,g),a}function l(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&u(a,d)}function u(a,d){return(u=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function y(a){var d=b();return function(){var g,w=v(a);if(d){var k=v(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return p(this,g)}}function p(a,d){return!d||n(d)!=="object"&&typeof d!="function"?m(a):d}function m(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function v(a){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}var _=t("../base-xform"),s=t("./alignment-xform"),o=t("./protection-xform"),h=function(a){l(g,a);var d=y(g);function g(w){var k;return i(this,g),(k=d.call(this)).xfId=!(!w||!w.xfId),k.map={alignment:new s,protection:new o},k}return f(g,[{key:"render",value:function(w,k){w.openNode("xf",{numFmtId:k.numFmtId||0,fontId:k.fontId||0,fillId:k.fillId||0,borderId:k.borderId||0}),this.xfId&&w.addAttribute("xfId",k.xfId||0),k.numFmtId&&w.addAttribute("applyNumberFormat","1"),k.fontId&&w.addAttribute("applyFont","1"),k.fillId&&w.addAttribute("applyFill","1"),k.borderId&&w.addAttribute("applyBorder","1"),k.alignment&&w.addAttribute("applyAlignment","1"),k.protection&&w.addAttribute("applyProtection","1"),k.alignment&&this.map.alignment.render(w,k.alignment),k.protection&&this.map.protection.render(w,k.protection),w.closeNode()}},{key:"parseOpen",value:function(w){if(this.parser)return this.parser.parseOpen(w),!0;switch(w.name){case"xf":return this.model={numFmtId:parseInt(w.attributes.numFmtId,10),fontId:parseInt(w.attributes.fontId,10),fillId:parseInt(w.attributes.fillId,10),borderId:parseInt(w.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(w.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(w),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(w),!0;default:return!1}}},{key:"parseText",value:function(w){this.parser&&this.parser.parseText(w)}},{key:"parseClose",value:function(w){return this.parser?(this.parser.parseClose(w)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):w!=="xf"}},{key:"tag",get:function(){return"xf"}}]),g}(_);r.exports=h},{"../base-xform":31,"./alignment-xform":125,"./protection-xform":132}],134:[function(t,r,e){function n(F){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T})(F)}function i(F,T){if(!(F instanceof T))throw new TypeError("Cannot call a class as a function")}function c(F,T){for(var I=0;I<T.length;I++){var x=T[I];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(F,x.key,x)}}function f(F,T,I){return T&&c(F.prototype,T),I&&c(F,I),F}function l(F,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(T&&T.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),T&&u(F,T)}function u(F,T){return(u=Object.setPrototypeOf||function(I,x){return I.__proto__=x,I})(F,T)}function y(F){var T=b();return function(){var I,x=v(F);if(T){var O=v(this).constructor;I=Reflect.construct(x,arguments,O)}else I=x.apply(this,arguments);return p(this,I)}}function p(F,T){return!T||n(T)!=="object"&&typeof T!="function"?m(F):T}function m(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(F){return!1}}function v(F){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)})(F)}var _=t("../../../doc/enums"),s=t("../../../utils/xml-stream"),o=t("../base-xform"),h=t("../static-xform"),a=t("../list-xform"),d=t("./font-xform"),g=t("./fill-xform"),w=t("./border-xform"),k=t("./numfmt-xform"),S=t("./style-xform"),A=t("./dxf-xform"),j=164,D=function(F){l(I,F);var T=y(I);function I(x){var O;return i(this,I),(O=T.call(this)).map={numFmts:new a({tag:"numFmts",count:!0,childXform:new k}),fonts:new a({tag:"fonts",count:!0,childXform:new d,$:{"x14ac:knownFonts":1}}),fills:new a({tag:"fills",count:!0,childXform:new g}),borders:new a({tag:"borders",count:!0,childXform:new w}),cellStyleXfs:new a({tag:"cellStyleXfs",count:!0,childXform:new S}),cellXfs:new a({tag:"cellXfs",count:!0,childXform:new S({xfId:!0})}),dxfs:new a({tag:"dxfs",always:!0,count:!0,childXform:new A}),numFmt:new k,font:new d,fill:new g,border:new w,style:new S({xfId:!0}),cellStyles:I.STATIC_XFORMS.cellStyles,tableStyles:I.STATIC_XFORMS.tableStyles,extLst:I.STATIC_XFORMS.extLst},x&&O.init(),O}return f(I,[{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(x,O){O=O||this.model,x.openXml(s.StdDocAttributes),x.openNode("styleSheet",I.STYLESHEET_ATTRIBUTES),this.index?(O.numFmts&&O.numFmts.length&&(x.openNode("numFmts",{count:O.numFmts.length}),O.numFmts.forEach(function(R){x.writeXml(R)}),x.closeNode()),O.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),x.openNode("fonts",{count:O.fonts.length,"x14ac:knownFonts":1}),O.fonts.forEach(function(R){x.writeXml(R)}),x.closeNode(),x.openNode("fills",{count:O.fills.length}),O.fills.forEach(function(R){x.writeXml(R)}),x.closeNode(),x.openNode("borders",{count:O.borders.length}),O.borders.forEach(function(R){x.writeXml(R)}),x.closeNode(),this.map.cellStyleXfs.render(x,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),x.openNode("cellXfs",{count:O.styles.length}),O.styles.forEach(function(R){x.writeXml(R)}),x.closeNode()):(this.map.numFmts.render(x,O.numFmts),this.map.fonts.render(x,O.fonts),this.map.fills.render(x,O.fills),this.map.borders.render(x,O.borders),this.map.cellStyleXfs.render(x,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(x,O.styles)),I.STATIC_XFORMS.cellStyles.render(x),this.map.dxfs.render(x,O.dxfs),I.STATIC_XFORMS.tableStyles.render(x),I.STATIC_XFORMS.extLst.render(x),x.closeNode()}},{key:"parseOpen",value:function(x){return this.parser?(this.parser.parseOpen(x),!0):x.name==="styleSheet"?(this.initIndex(),!0):(this.parser=this.map[x.name],this.parser&&this.parser.parseOpen(x),!0)}},{key:"parseText",value:function(x){this.parser&&this.parser.parseText(x)}},{key:"parseClose",value:function(x){var O=this;if(this.parser)return this.parser.parseClose(x)||(this.parser=void 0),!0;if(x==="styleSheet"){this.model={};var R=function(P,L){L.model&&L.model.length&&(O.model[P]=L.model)};if(R("numFmts",this.map.numFmts),R("fonts",this.map.fonts),R("fills",this.map.fills),R("borders",this.map.borders),R("styles",this.map.cellXfs),R("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){var C=this.index.numFmt;this.model.numFmts.forEach(function(P){C[P.id]=P.formatCode})}return!1}return!0}},{key:"addStyleModel",value:function(x,O){if(!x)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(x))return this.weakMap.get(x);var R={};if(O=O||_.ValueType.Number,x.numFmt)R.numFmtId=this._addNumFmtStr(x.numFmt);else switch(O){case _.ValueType.Number:R.numFmtId=this._addNumFmtStr("General");break;case _.ValueType.Date:R.numFmtId=this._addNumFmtStr("mm-dd-yy")}x.font&&(R.fontId=this._addFont(x.font)),x.border&&(R.borderId=this._addBorder(x.border)),x.fill&&(R.fillId=this._addFill(x.fill)),x.alignment&&(R.alignment=x.alignment),x.protection&&(R.protection=x.protection);var C=this._addStyle(R);return this.weakMap&&this.weakMap.set(x,C),C}},{key:"getStyleModel",value:function(x){var O=this.model.styles[x];if(!O)return null;var R=this.index.model[x];if(R)return R;if(R=this.index.model[x]={},O.numFmtId){var C=this.index.numFmt[O.numFmtId]||k.getDefaultFmtCode(O.numFmtId);C&&(R.numFmt=C)}function P(L,H,U){if(U||U===0){var B=H[U];B&&(R[L]=B)}}return P("font",this.model.fonts,O.fontId),P("border",this.model.borders,O.borderId),P("fill",this.model.fills,O.fillId),O.alignment&&(R.alignment=O.alignment),O.protection&&(R.protection=O.protection),R}},{key:"addDxfStyle",value:function(x){return this.model.dxfs.push(x),this.model.dxfs.length-1}},{key:"getDxfStyle",value:function(x){return this.model.dxfs[x]}},{key:"_addStyle",value:function(x){var O=this.map.style.toXml(x),R=this.index.style[O];return R===void 0&&(R=this.index.style[O]=this.model.styles.length,this.model.styles.push(O)),R}},{key:"_addNumFmtStr",value:function(x){var O=k.getDefaultFmtId(x);if(O!==void 0||(O=this.index.numFmt[x])!==void 0)return O;O=this.index.numFmt[x]=j+this.model.numFmts.length;var R=this.map.numFmt.toXml({id:O,formatCode:x});return this.model.numFmts.push(R),O}},{key:"_addFont",value:function(x){var O=this.map.font.toXml(x),R=this.index.font[O];return R===void 0&&(R=this.index.font[O]=this.model.fonts.length,this.model.fonts.push(O)),R}},{key:"_addBorder",value:function(x){var O=this.map.border.toXml(x),R=this.index.border[O];return R===void 0&&(R=this.index.border[O]=this.model.borders.length,this.model.borders.push(O)),R}},{key:"_addFill",value:function(x){var O=this.map.fill.toXml(x),R=this.index.fill[O];return R===void 0&&(R=this.index.fill[O]=this.model.fills.length,this.model.fills.push(O)),R}}]),I}(o);D.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"},D.STATIC_XFORMS={cellStyles:new h({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new h({tag:"dxfs",$:{count:0}}),tableStyles:new h({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new h({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"}}]}]})};var N=function(F){l(I,F);var T=y(I);function I(){var x;return i(this,I),(x=T.call(this)).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"}]},x}return f(I,[{key:"parseStream",value:function(x){return x.autodrain(),Promise.resolve()}},{key:"addStyleModel",value:function(x,O){return O===_.ValueType.Date?this.dateStyleId:0}},{key:"getStyleModel",value:function(){return{}}},{key:"dateStyleId",get:function(){if(!this._dateStyleId){var x={numFmtId:k.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(x)}return this._dateStyleId}}]),I}(D);D.Mock=N,r.exports=D},{"../../../doc/enums":7,"../../../utils/xml-stream":27,"../base-xform":31,"../list-xform":70,"../static-xform":119,"./border-xform":126,"./dxf-xform":128,"./fill-xform":129,"./font-xform":130,"./numfmt-xform":131,"./style-xform":133}],135:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(a){var d;return i(this,h),(d=o.call(this)).model=a,d}return f(h,[{key:"render",value:function(a,d){if((d=d||this.model)===!0)a.leafNode("u");else{var g=h.Attributes[d];g&&a.leafNode("u",g)}}},{key:"parseOpen",value:function(a){a.name==="u"&&(this.model=a.attributes.val||!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"u"}}]),h}(t("../base-xform"));_.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},r.exports=_},{"../base-xform":31}],136:[function(t,r,e){function n(h){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(h)}function i(h,a){if(!(h instanceof a))throw new TypeError("Cannot call a class as a function")}function c(h,a){for(var d=0;d<a.length;d++){var g=a[d];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function f(h,a,d){return a&&c(h.prototype,a),d&&c(h,d),h}function l(h,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(a&&a.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),a&&u(h,a)}function u(h,a){return(u=Object.setPrototypeOf||function(d,g){return d.__proto__=g,d})(h,a)}function y(h){var a=b();return function(){var d,g=v(h);if(a){var w=v(this).constructor;d=Reflect.construct(g,arguments,w)}else d=g.apply(this,arguments);return p(this,d)}}function p(h,a){return!a||n(a)!=="object"&&typeof a!="function"?m(h):a}function m(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(h){return!1}}function v(h){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(h)}var _=t("../base-xform"),s=t("./filter-column-xform"),o=function(h){l(d,h);var a=y(d);function d(){var g;return i(this,d),(g=a.call(this)).map={filterColumn:new s},g}return f(d,[{key:"prepare",value:function(g){var w=this;g.columns.forEach(function(k,S){w.map.filterColumn.prepare(k,{index:S})})}},{key:"render",value:function(g,w){var k=this;return g.openNode(this.tag,{ref:w.autoFilterRef}),w.columns.forEach(function(S){k.map.filterColumn.render(g,S)}),g.closeNode(),!0}},{key:"parseOpen",value:function(g){if(this.parser)return this.parser.parseOpen(g),!0;if(g.name===this.tag)return this.model={autoFilterRef:g.attributes.ref,columns:[]},!0;if(this.parser=this.map[g.name],this.parser)return this.parseOpen(g),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(g)))}},{key:"parseText",value:function(g){this.parser&&this.parser.parseText(g)}},{key:"parseClose",value:function(g){if(this.parser)return this.parser.parseClose(g)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(g===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: ".concat(g))}},{key:"tag",get:function(){return"autoFilter"}}]),d}(_);r.exports=o},{"../base-xform":31,"./filter-column-xform":137}],137:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"prepare",value:function(a,d){a.colId=d.index.toString()}},{key:"render",value:function(a,d){return a.leafNode(this.tag,{colId:d.colId,hiddenButton:d.filterButton?"0":"1"}),!0}},{key:"parseOpen",value:function(a){if(a.name===this.tag){var d=a.attributes;return this.model={filterButton:d.hiddenButton==="0"},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"filterColumn"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],138:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"prepare",value:function(a,d){a.id=d.index+1}},{key:"render",value:function(a,d){return a.leafNode(this.tag,{id:d.id.toString(),name:d.name,totalsRowLabel:d.totalsRowLabel,totalsRowFunction:d.totalsRowFunction,dxfId:d.dxfId}),!0}},{key:"parseOpen",value:function(a){if(a.name===this.tag){var d=a.attributes;return this.model={name:d.name,totalsRowLabel:d.totalsRowLabel,totalsRowFunction:d.totalsRowFunction,dxfId:d.dxfId},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"tableColumn"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],139:[function(t,r,e){function n(s){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(s)}function i(s,o){if(!(s instanceof o))throw new TypeError("Cannot call a class as a function")}function c(s,o){for(var h=0;h<o.length;h++){var a=o[h];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(s,a.key,a)}}function f(s,o,h){return o&&c(s.prototype,o),h&&c(s,h),s}function l(s,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function");s.prototype=Object.create(o&&o.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),o&&u(s,o)}function u(s,o){return(u=Object.setPrototypeOf||function(h,a){return h.__proto__=a,h})(s,o)}function y(s){var o=b();return function(){var h,a=v(s);if(o){var d=v(this).constructor;h=Reflect.construct(a,arguments,d)}else h=a.apply(this,arguments);return p(this,h)}}function p(s,o){return!o||n(o)!=="object"&&typeof o!="function"?m(s):o}function m(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s}function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(s){return!1}}function v(s){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(s)}var _=function(s){l(h,s);var o=y(h);function h(){return i(this,h),o.apply(this,arguments)}return f(h,[{key:"render",value:function(a,d){return a.leafNode(this.tag,{name:d.theme?d.theme:void 0,showFirstColumn:d.showFirstColumn?"1":"0",showLastColumn:d.showLastColumn?"1":"0",showRowStripes:d.showRowStripes?"1":"0",showColumnStripes:d.showColumnStripes?"1":"0"}),!0}},{key:"parseOpen",value:function(a){if(a.name===this.tag){var d=a.attributes;return this.model={theme:d.name?d.name:null,showFirstColumn:d.showFirstColumn==="1",showLastColumn:d.showLastColumn==="1",showRowStripes:d.showRowStripes==="1",showColumnStripes:d.showColumnStripes==="1"},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"tableStyleInfo"}}]),h}(t("../base-xform"));r.exports=_},{"../base-xform":31}],140:[function(t,r,e){function n(A){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j})(A)}function i(A,j){var D=Object.keys(A);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(A);j&&(N=N.filter(function(F){return Object.getOwnPropertyDescriptor(A,F).enumerable})),D.push.apply(D,N)}return D}function c(A){for(var j=1;j<arguments.length;j++){var D=arguments[j]!=null?arguments[j]:{};j%2?i(Object(D),!0).forEach(function(N){f(A,N,D[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(D)):i(Object(D)).forEach(function(N){Object.defineProperty(A,N,Object.getOwnPropertyDescriptor(D,N))})}return A}function f(A,j,D){return j in A?Object.defineProperty(A,j,{value:D,enumerable:!0,configurable:!0,writable:!0}):A[j]=D,A}function l(A,j){if(!(A instanceof j))throw new TypeError("Cannot call a class as a function")}function u(A,j){for(var D=0;D<j.length;D++){var N=j[D];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(A,N.key,N)}}function y(A,j,D){return j&&u(A.prototype,j),D&&u(A,D),A}function p(A,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(j&&j.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),j&&m(A,j)}function m(A,j){return(m=Object.setPrototypeOf||function(D,N){return D.__proto__=N,D})(A,j)}function b(A){var j=s();return function(){var D,N=o(A);if(j){var F=o(this).constructor;D=Reflect.construct(N,arguments,F)}else D=N.apply(this,arguments);return v(this,D)}}function v(A,j){return!j||n(j)!=="object"&&typeof j!="function"?_(A):j}function _(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function s(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(A){return!1}}function o(A){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)})(A)}var h=t("../../../utils/xml-stream"),a=t("../base-xform"),d=t("../list-xform"),g=t("./auto-filter-xform"),w=t("./table-column-xform"),k=t("./table-style-info-xform"),S=function(A){p(D,A);var j=b(D);function D(){var N;return l(this,D),(N=j.call(this)).map={autoFilter:new g,tableColumns:new d({tag:"tableColumns",count:!0,empty:!0,childXform:new w}),tableStyleInfo:new k},N}return y(D,[{key:"prepare",value:function(N,F){this.map.autoFilter.prepare(N),this.map.tableColumns.prepare(N.columns,F)}},{key:"render",value:function(N,F){N.openXml(h.StdDocAttributes),N.openNode(this.tag,c(c({},D.TABLE_ATTRIBUTES),{},{id:F.id,name:F.name,displayName:F.displayName||F.name,ref:F.tableRef,totalsRowCount:F.totalsRow?"1":void 0,totalsRowShown:F.totalsRow?void 0:"1",headerRowCount:F.headerRow?"1":"0"})),this.map.autoFilter.render(N,F),this.map.tableColumns.render(N,F.columns),this.map.tableStyleInfo.render(N,F.style),N.closeNode()}},{key:"parseOpen",value:function(N){if(this.parser)return this.parser.parseOpen(N),!0;var F=N.name,T=N.attributes;return F===this.tag?(this.reset(),this.model={name:T.name,displayName:T.displayName||T.name,tableRef:T.ref,totalsRow:T.totalsRowCount==="1",headerRow:T.headerRowCount==="1"}):(this.parser=this.map[N.name],this.parser&&this.parser.parseOpen(N)),!0}},{key:"parseText",value:function(N){this.parser&&this.parser.parseText(N)}},{key:"parseClose",value:function(N){var F=this;return this.parser?(this.parser.parseClose(N)||(this.parser=void 0),!0):N!==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(T,I){F.model.columns[I].filterButton=T.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1)}},{key:"reconcile",value:function(N,F){N.columns.forEach(function(T){T.dxfId!==void 0&&(T.style=F.styles.getDxfStyle(T.dxfId))})}},{key:"tag",get:function(){return"table"}}]),D}(a);S.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"},r.exports=S},{"../../../utils/xml-stream":27,"../base-xform":31,"../list-xform":70,"./auto-filter-xform":136,"./table-column-xform":138,"./table-style-info-xform":139}],141:[function(t,r,e){(function(n,i){function c(C,P,L,H,U,B,W){try{var X=C[B](W),et=X.value}catch(ft){return void L(ft)}X.done?P(et):Promise.resolve(et).then(H,U)}function f(C){return function(){var P=this,L=arguments;return new Promise(function(H,U){var B=C.apply(P,L);function W(et){c(B,H,U,W,X,"next",et)}function X(et){c(B,H,U,W,X,"throw",et)}W(void 0)})}}function l(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}function u(C,P){for(var L=0;L<P.length;L++){var H=P[L];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(C,H.key,H)}}function y(C,P,L){return P&&u(C.prototype,P),L&&u(C,L),C}function p(C){var P;if(typeof Symbol!="undefined"&&(Symbol.asyncIterator&&(P=C[Symbol.asyncIterator])!=null||Symbol.iterator&&(P=C[Symbol.iterator])!=null))return P.call(C);throw new TypeError("Object is not async iterable")}var m=t("fs"),b=t("jszip"),v=t("readable-stream").PassThrough,_=t("../utils/zip-stream"),s=t("../utils/stream-buf"),o=t("../utils/utils"),h=t("../utils/xml-stream"),a=t("../utils/browser-buffer-decode").bufferToString,d=t("./xform/style/styles-xform"),g=t("./xform/core/core-xform"),w=t("./xform/strings/shared-strings-xform"),k=t("./xform/core/relationships-xform"),S=t("./xform/core/content-types-xform"),A=t("./xform/core/app-xform"),j=t("./xform/book/workbook-xform"),D=t("./xform/sheet/worksheet-xform"),N=t("./xform/drawing/drawing-xform"),F=t("./xform/table/table-xform"),T=t("./xform/comment/comments-xform"),I=t("./xform/comment/vml-notes-xform"),x=t("./xml/theme1.js");function O(C,P){return new Promise(function(L,H){m.readFile(C,P,function(U,B){U?H(U):L(B)})})}var R=function(){function C(P){l(this,C),this.workbook=P}return y(C,[{key:"readFile",value:function(){var P=f(Me.mark(function H(U,B){var W,X;return Me.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.next=2,o.fs.exists(U);case 2:if(et.sent){et.next=4;break}throw new Error("File not found: ".concat(U));case 4:return W=m.createReadStream(U),et.prev=5,et.next=8,this.read(W,B);case 8:return X=et.sent,W.close(),et.abrupt("return",X);case 13:throw et.prev=13,et.t0=et.catch(5),W.close(),et.t0;case 17:case"end":return et.stop()}},H,this,[[5,13]])}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"parseRels",value:function(P){return new k().parseStream(P)}},{key:"parseWorkbook",value:function(P){return new j().parseStream(P)}},{key:"parseSharedStrings",value:function(P){return new w().parseStream(P)}},{key:"reconcile",value:function(P,L){var H=new j,U=new D(L),B=new N,W=new F;H.reconcile(P);var X={media:P.media,mediaIndex:P.mediaIndex};Object.keys(P.drawings).forEach(function(gt){var bt=P.drawings[gt],rt=P.drawingRels[gt];rt&&(X.rels=rt.reduce(function(Q,K){return Q[K.Id]=K,Q},{}),(bt.anchors||[]).forEach(function(Q){var K=Q.picture&&Q.picture.hyperlinks;K&&X.rels[K.rId]&&(K.hyperlink=X.rels[K.rId].Target,delete K.rId)}),B.reconcile(bt,X))});var et={styles:P.styles};Object.values(P.tables).forEach(function(gt){W.reconcile(gt,et)});var ft={styles:P.styles,sharedStrings:P.sharedStrings,media:P.media,mediaIndex:P.mediaIndex,date1904:P.properties&&P.properties.date1904,drawings:P.drawings,comments:P.comments,tables:P.tables,vmlDrawings:P.vmlDrawings};P.worksheets.forEach(function(gt){gt.relationships=P.worksheetRels[gt.sheetNo],U.reconcile(gt,ft)}),delete P.worksheetHash,delete P.worksheetRels,delete P.globalRels,delete P.sharedStrings,delete P.workbookRels,delete P.sheetDefs,delete P.styles,delete P.mediaIndex,delete P.drawings,delete P.drawingRels,delete P.vmlDrawings}},{key:"_processWorksheetEntry",value:function(){var P=f(Me.mark(function H(U,B,W,X,et){var ft,gt;return Me.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return ft=new D(X),bt.next=3,ft.parseStream(U);case 3:(gt=bt.sent).sheetNo=W,B.worksheetHash[et]=gt,B.worksheets.push(gt);case 7:case"end":return bt.stop()}},H)}));function L(H,U,B,W,X){return P.apply(this,arguments)}return L}()},{key:"_processCommentEntry",value:function(){var P=f(Me.mark(function H(U,B,W){var X,et;return Me.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return X=new T,ft.next=3,X.parseStream(U);case 3:et=ft.sent,B.comments["../".concat(W,".xml")]=et;case 5:case"end":return ft.stop()}},H)}));function L(H,U,B){return P.apply(this,arguments)}return L}()},{key:"_processTableEntry",value:function(){var P=f(Me.mark(function H(U,B,W){var X,et;return Me.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return X=new F,ft.next=3,X.parseStream(U);case 3:et=ft.sent,B.tables["../tables/".concat(W,".xml")]=et;case 5:case"end":return ft.stop()}},H)}));function L(H,U,B){return P.apply(this,arguments)}return L}()},{key:"_processWorksheetRelsEntry",value:function(){var P=f(Me.mark(function H(U,B,W){var X,et;return Me.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return X=new k,ft.next=3,X.parseStream(U);case 3:et=ft.sent,B.worksheetRels[W]=et;case 5:case"end":return ft.stop()}},H)}));function L(H,U,B){return P.apply(this,arguments)}return L}()},{key:"_processMediaEntry",value:function(){var P=f(Me.mark(function H(U,B,W){var X,et,ft;return Me.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:if(!((X=W.lastIndexOf("."))>=1)){gt.next=6;break}return et=W.substr(X+1),ft=W.substr(0,X),gt.next=6,new Promise(function(bt,rt){var Q=new s;Q.on("finish",function(){B.mediaIndex[W]=B.media.length,B.mediaIndex[ft]=B.media.length;var K={type:"image",name:ft,extension:et,buffer:Q.toBuffer()};B.media.push(K),bt()}),U.on("error",function(K){rt(K)}),U.pipe(Q)});case 6:case"end":return gt.stop()}},H)}));function L(H,U,B){return P.apply(this,arguments)}return L}()},{key:"_processDrawingEntry",value:function(){var P=f(Me.mark(function H(U,B,W){var X,et;return Me.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return X=new N,ft.next=3,X.parseStream(U);case 3:et=ft.sent,B.drawings[W]=et;case 5:case"end":return ft.stop()}},H)}));function L(H,U,B){return P.apply(this,arguments)}return L}()},{key:"_processDrawingRelsEntry",value:function(){var P=f(Me.mark(function H(U,B,W){var X,et;return Me.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return X=new k,ft.next=3,X.parseStream(U);case 3:et=ft.sent,B.drawingRels[W]=et;case 5:case"end":return ft.stop()}},H)}));function L(H,U,B){return P.apply(this,arguments)}return L}()},{key:"_processVmlDrawingEntry",value:function(){var P=f(Me.mark(function H(U,B,W){var X,et;return Me.wrap(function(ft){for(;;)switch(ft.prev=ft.next){case 0:return X=new I,ft.next=3,X.parseStream(U);case 3:et=ft.sent,B.vmlDrawings["../drawings/".concat(W,".vml")]=et;case 5:case"end":return ft.stop()}},H)}));function L(H,U,B){return P.apply(this,arguments)}return L}()},{key:"_processThemeEntry",value:function(){var P=f(Me.mark(function H(U,B,W){return Me.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.next=2,new Promise(function(et,ft){var gt=new s;U.on("error",ft),gt.on("error",ft),gt.on("finish",function(){B.themes[W]=gt.read().toString(),et()}),U.pipe(gt)});case 2:case"end":return X.stop()}},H)}));function L(H,U,B){return P.apply(this,arguments)}return L}()},{key:"createInputStream",value:function(){throw new 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 P=f(Me.mark(function H(U,B){var W,X,et,ft,gt,bt,rt,Q;return Me.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:!U[Symbol.asyncIterator]&&U.pipe&&(U=U.pipe(new v)),W=[],X=!0,et=!1,K.prev=4,gt=p(U);case 6:return K.next=8,gt.next();case 8:return bt=K.sent,X=bt.done,K.next=12,bt.value;case 12:if(rt=K.sent,X){K.next=19;break}Q=rt,W.push(Q);case 16:X=!0,K.next=6;break;case 19:K.next=25;break;case 21:K.prev=21,K.t0=K.catch(4),et=!0,ft=K.t0;case 25:if(K.prev=25,K.prev=26,X||gt.return==null){K.next=30;break}return K.next=30,gt.return();case 30:if(K.prev=30,!et){K.next=33;break}throw ft;case 33:return K.finish(30);case 34:return K.finish(25);case 35:return K.abrupt("return",this.load(i.concat(W),B));case 36:case"end":return K.stop()}},H,this,[[4,21,25,35],[26,,30,34]])}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"load",value:function(){var P=f(Me.mark(function H(U,B){var W,X,et,ft,gt,bt,rt,Q,K,nt,At,ot,ut,Mt,Bt,G,Z;return Me.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return W=B&&B.base64?i.from(U.toString(),"base64"):U,X={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},J.next=4,b.loadAsync(W);case 4:et=J.sent,ft=0,gt=Object.values(et.files);case 6:if(!(ft<gt.length)){J.next=126;break}if((bt=gt[ft]).dir){J.next=123;break}if((rt=bt.name)[0]==="/"&&(rt=rt.substr(1)),Q=void 0,!rt.match(/xl\/media\//)&&!rt.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){J.next=21;break}return Q=new v,J.t0=Q,J.next=17,bt.async("nodebuffer");case 17:J.t1=J.sent,J.t0.write.call(J.t0,J.t1),J.next=36;break;case 21:if(Q=new v({writableObjectMode:!0,readableObjectMode:!0}),K=void 0,!n.browser){J.next=31;break}return J.t2=a,J.next=27,bt.async("nodebuffer");case 27:J.t3=J.sent,K=(0,J.t2)(J.t3),J.next=34;break;case 31:return J.next=33,bt.async("string");case 33:K=J.sent;case 34:for(nt=16384,At=0;At<K.length;At+=nt)Q.write(K.substring(At,At+nt));case 36:Q.end(),J.t4=rt,J.next=J.t4==="_rels/.rels"?40:J.t4==="xl/workbook.xml"?44:J.t4==="xl/_rels/workbook.xml.rels"?53:J.t4==="xl/sharedStrings.xml"?57:J.t4==="xl/styles.xml"?61:J.t4==="docProps/app.xml"?65:J.t4==="docProps/core.xml"?72:78;break;case 40:return J.next=42,this.parseRels(Q);case 42:return X.globalRels=J.sent,J.abrupt("break",123);case 44:return J.next=46,this.parseWorkbook(Q);case 46:return ot=J.sent,X.sheets=ot.sheets,X.definedNames=ot.definedNames,X.views=ot.views,X.properties=ot.properties,X.calcProperties=ot.calcProperties,J.abrupt("break",123);case 53:return J.next=55,this.parseRels(Q);case 55:return X.workbookRels=J.sent,J.abrupt("break",123);case 57:return X.sharedStrings=new w,J.next=60,X.sharedStrings.parseStream(Q);case 60:return J.abrupt("break",123);case 61:return X.styles=new d,J.next=64,X.styles.parseStream(Q);case 64:return J.abrupt("break",123);case 65:return ut=new A,J.next=68,ut.parseStream(Q);case 68:return Mt=J.sent,X.company=Mt.company,X.manager=Mt.manager,J.abrupt("break",123);case 72:return Bt=new g,J.next=75,Bt.parseStream(Q);case 75:return G=J.sent,Object.assign(X,G),J.abrupt("break",123);case 78:if(!(Z=rt.match(/xl\/worksheets\/sheet(\d+)[.]xml/))){J.next=83;break}return J.next=82,this._processWorksheetEntry(Q,X,Z[1],B,rt);case 82:return J.abrupt("break",123);case 83:if(!(Z=rt.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/))){J.next=88;break}return J.next=87,this._processWorksheetRelsEntry(Q,X,Z[1]);case 87:return J.abrupt("break",123);case 88:if(!(Z=rt.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))){J.next=93;break}return J.next=92,this._processThemeEntry(Q,X,Z[1]);case 92:return J.abrupt("break",123);case 93:if(!(Z=rt.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/))){J.next=98;break}return J.next=97,this._processMediaEntry(Q,X,Z[1]);case 97:return J.abrupt("break",123);case 98:if(!(Z=rt.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/))){J.next=103;break}return J.next=102,this._processDrawingEntry(Q,X,Z[1]);case 102:return J.abrupt("break",123);case 103:if(!(Z=rt.match(/xl\/(comments\d+)[.]xml/))){J.next=108;break}return J.next=107,this._processCommentEntry(Q,X,Z[1]);case 107:return J.abrupt("break",123);case 108:if(!(Z=rt.match(/xl\/tables\/(table\d+)[.]xml/))){J.next=113;break}return J.next=112,this._processTableEntry(Q,X,Z[1]);case 112:return J.abrupt("break",123);case 113:if(!(Z=rt.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/))){J.next=118;break}return J.next=117,this._processDrawingRelsEntry(Q,X,Z[1]);case 117:return J.abrupt("break",123);case 118:if(!(Z=rt.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/))){J.next=123;break}return J.next=122,this._processVmlDrawingEntry(Q,X,Z[1]);case 122:return J.abrupt("break",123);case 123:ft++,J.next=6;break;case 126:return this.reconcile(X,B),this.workbook.model=X,J.abrupt("return",this.workbook);case 129:case"end":return J.stop()}},H,this)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"addMedia",value:function(){var P=f(Me.mark(function H(U,B){return Me.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Promise.all(B.media.map(function(){var X=f(Me.mark(function et(ft){var gt,bt,rt,Q;return Me.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(ft.type!=="image"){K.next=13;break}if(gt="xl/media/".concat(ft.name,".").concat(ft.extension),!ft.filename){K.next=7;break}return K.next=5,O(ft.filename);case 5:return bt=K.sent,K.abrupt("return",U.append(bt,{name:gt}));case 7:if(!ft.buffer){K.next=9;break}return K.abrupt("return",U.append(ft.buffer,{name:gt}));case 9:if(!ft.base64){K.next=13;break}return rt=ft.base64,Q=rt.substring(rt.indexOf(",")+1),K.abrupt("return",U.append(Q,{name:gt,base64:!0}));case 13:throw new Error("Unsupported media");case 14:case"end":return K.stop()}},et)}));return function(et){return X.apply(this,arguments)}}()));case 2:case"end":return W.stop()}},H)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"addDrawings",value:function(P,L){var H=new N,U=new k;L.worksheets.forEach(function(B){var W=B.drawing;if(W){H.prepare(W,{});var X=H.toXml(W);P.append(X,{name:"xl/drawings/".concat(W.name,".xml")}),X=U.toXml(W.rels),P.append(X,{name:"xl/drawings/_rels/".concat(W.name,".xml.rels")})}})}},{key:"addTables",value:function(P,L){var H=new F;L.worksheets.forEach(function(U){U.tables.forEach(function(B){H.prepare(B,{});var W=H.toXml(B);P.append(W,{name:"xl/tables/".concat(B.target)})})})}},{key:"addContentTypes",value:function(){var P=f(Me.mark(function H(U,B){var W,X;return Me.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:W=new S,X=W.toXml(B),U.append(X,{name:"[Content_Types].xml"});case 3:case"end":return et.stop()}},H)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"addApp",value:function(){var P=f(Me.mark(function H(U,B){var W,X;return Me.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:W=new A,X=W.toXml(B),U.append(X,{name:"docProps/app.xml"});case 3:case"end":return et.stop()}},H)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"addCore",value:function(){var P=f(Me.mark(function H(U,B){var W;return Me.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:W=new g,U.append(W.toXml(B),{name:"docProps/core.xml"});case 2:case"end":return X.stop()}},H)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"addThemes",value:function(){var P=f(Me.mark(function H(U,B){var W;return Me.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:W=B.themes||{theme1:x},Object.keys(W).forEach(function(et){var ft=W[et],gt="xl/theme/".concat(et,".xml");U.append(ft,{name:gt})});case 2:case"end":return X.stop()}},H)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"addOfficeRels",value:function(){var P=f(Me.mark(function H(U){var B,W;return Me.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:B=new k,W=B.toXml([{Id:"rId1",Type:C.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:C.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:C.RelType.ExtenderProperties,Target:"docProps/app.xml"}]),U.append(W,{name:"_rels/.rels"});case 3:case"end":return X.stop()}},H)}));function L(H){return P.apply(this,arguments)}return L}()},{key:"addWorkbookRels",value:function(){var P=f(Me.mark(function H(U,B){var W,X,et,ft;return Me.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:W=1,X=[{Id:"rId".concat(W++),Type:C.RelType.Styles,Target:"styles.xml"},{Id:"rId".concat(W++),Type:C.RelType.Theme,Target:"theme/theme1.xml"}],B.sharedStrings.count&&X.push({Id:"rId".concat(W++),Type:C.RelType.SharedStrings,Target:"sharedStrings.xml"}),B.worksheets.forEach(function(bt){bt.rId="rId".concat(W++),X.push({Id:bt.rId,Type:C.RelType.Worksheet,Target:"worksheets/sheet".concat(bt.id,".xml")})}),et=new k,ft=et.toXml(X),U.append(ft,{name:"xl/_rels/workbook.xml.rels"});case 7:case"end":return gt.stop()}},H)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"addSharedStrings",value:function(){var P=f(Me.mark(function H(U,B){return Me.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:B.sharedStrings&&B.sharedStrings.count&&U.append(B.sharedStrings.xml,{name:"xl/sharedStrings.xml"});case 1:case"end":return W.stop()}},H)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"addStyles",value:function(){var P=f(Me.mark(function H(U,B){var W;return Me.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:(W=B.styles.xml)&&U.append(W,{name:"xl/styles.xml"});case 2:case"end":return X.stop()}},H)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"addWorkbook",value:function(){var P=f(Me.mark(function H(U,B){var W;return Me.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:W=new j,U.append(W.toXml(B),{name:"xl/workbook.xml"});case 2:case"end":return X.stop()}},H)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"addWorksheets",value:function(){var P=f(Me.mark(function H(U,B){var W,X,et,ft;return Me.wrap(function(gt){for(;;)switch(gt.prev=gt.next){case 0:W=new D,X=new k,et=new T,ft=new I,B.worksheets.forEach(function(bt){var rt=new h;W.render(rt,bt),U.append(rt.xml,{name:"xl/worksheets/sheet".concat(bt.id,".xml")}),bt.rels&&bt.rels.length&&(rt=new h,X.render(rt,bt.rels),U.append(rt.xml,{name:"xl/worksheets/_rels/sheet".concat(bt.id,".xml.rels")})),bt.comments.length>0&&(rt=new h,et.render(rt,bt),U.append(rt.xml,{name:"xl/comments".concat(bt.id,".xml")}),rt=new h,ft.render(rt,bt),U.append(rt.xml,{name:"xl/drawings/vmlDrawing".concat(bt.id,".vml")}))});case 5:case"end":return gt.stop()}},H)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"_finalize",value:function(P){var L=this;return new Promise(function(H,U){P.on("finish",function(){H(L)}),P.on("error",U),P.finalize()})}},{key:"prepareModel",value:function(P,L){P.creator=P.creator||"ExcelJS",P.lastModifiedBy=P.lastModifiedBy||"ExcelJS",P.created=P.created||new Date,P.modified=P.modified||new Date,P.useSharedStrings=L.useSharedStrings===void 0||L.useSharedStrings,P.useStyles=L.useStyles===void 0||L.useStyles,P.sharedStrings=new w,P.styles=P.useStyles?new d(!0):new d.Mock;var H=new j,U=new D;H.prepare(P);var B={sharedStrings:P.sharedStrings,styles:P.styles,date1904:P.properties.date1904,drawingsCount:0,media:P.media};B.drawings=P.drawings=[],B.commentRefs=P.commentRefs=[];var W=0;P.tables=[],P.worksheets.forEach(function(X){X.tables.forEach(function(et){W++,et.target="table".concat(W,".xml"),et.id=W,P.tables.push(et)}),U.prepare(X,B)})}},{key:"write",value:function(){var P=f(Me.mark(function H(U,B){var W,X;return Me.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return B=B||{},W=this.workbook.model,(X=new _.ZipWriter(B.zip)).pipe(U),this.prepareModel(W,B),et.next=7,this.addContentTypes(X,W);case 7:return et.next=9,this.addOfficeRels(X,W);case 9:return et.next=11,this.addWorkbookRels(X,W);case 11:return et.next=13,this.addWorksheets(X,W);case 13:return et.next=15,this.addSharedStrings(X,W);case 15:return et.next=17,this.addDrawings(X,W);case 17:return et.next=19,this.addTables(X,W);case 19:return et.next=21,Promise.all([this.addThemes(X,W),this.addStyles(X,W)]);case 21:return et.next=23,this.addMedia(X,W);case 23:return et.next=25,Promise.all([this.addApp(X,W),this.addCore(X,W)]);case 25:return et.next=27,this.addWorkbook(X,W);case 27:return et.abrupt("return",this._finalize(X));case 28:case"end":return et.stop()}},H,this)}));function L(H,U){return P.apply(this,arguments)}return L}()},{key:"writeFile",value:function(P,L){var H=this,U=m.createWriteStream(P);return new Promise(function(B,W){U.on("finish",function(){B()}),U.on("error",function(X){W(X)}),H.write(U,L).then(function(){U.end()})})}},{key:"writeBuffer",value:function(){var P=f(Me.mark(function H(U){var B;return Me.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return B=new s,W.next=3,this.write(B,U);case 3:return W.abrupt("return",B.read());case 4:case"end":return W.stop()}},H,this)}));function L(H){return P.apply(this,arguments)}return L}()}]),C}();R.RelType=t("./rel-type"),r.exports=R}).call(this,t("_process"),t("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":23,"../utils/utils":26,"../utils/xml-stream":27,"../utils/zip-stream":28,"./rel-type":30,"./xform/book/workbook-xform":37,"./xform/comment/comments-xform":39,"./xform/comment/vml-notes-xform":44,"./xform/core/app-xform":50,"./xform/core/content-types-xform":51,"./xform/core/core-xform":52,"./xform/core/relationships-xform":54,"./xform/drawing/drawing-xform":61,"./xform/sheet/worksheet-xform":114,"./xform/strings/shared-strings-xform":123,"./xform/style/styles-xform":134,"./xform/table/table-xform":140,"./xml/theme1.js":142,_process:467,buffer:216,fs:215,jszip:399,"readable-stream":491}],142:[function(t,r,e){r.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||
<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>`},{}],143:[function(t,r,e){(function(n){function i(a){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d})(a)}function c(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function f(a,d){for(var g=0;g<d.length;g++){var w=d[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(a,w.key,w)}}function l(a,d,g){return d&&f(a.prototype,d),g&&f(a,g),a}function u(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),d&&y(a,d)}function y(a,d){return(y=Object.setPrototypeOf||function(g,w){return g.__proto__=w,g})(a,d)}function p(a){var d=v();return function(){var g,w=_(a);if(d){var k=_(this).constructor;g=Reflect.construct(w,arguments,k)}else g=w.apply(this,arguments);return m(this,g)}}function m(a,d){return!d||i(d)!=="object"&&typeof d!="function"?b(a):d}function b(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function v(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function _(a){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(d){return d.__proto__||Object.getPrototypeOf(d)})(a)}Object.defineProperty(e,"__esModule",{value:!0}),e.CsvFormatterStream=void 0;var s=t("stream"),o=t("./formatter"),h=function(a){u(g,a);var d=p(g);function g(w){var k;return c(this,g),(k=d.call(this,{writableObjectMode:w.objectMode})).hasWrittenBOM=!1,k.formatterOptions=w,k.rowFormatter=new o.RowFormatter(w),k.hasWrittenBOM=!w.writeBOM,k}return l(g,[{key:"transform",value:function(w){return this.rowFormatter.rowTransform=w,this}},{key:"_transform",value:function(w,k,S){var A=this,j=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(w,function(D,N){return D?(j=!0,S(D)):(N&&N.forEach(function(F){A.push(n.from(F,"utf8"))}),j=!0,S())})}catch(D){if(j)throw D;S(D)}}},{key:"_flush",value:function(w){var k=this;this.rowFormatter.finish(function(S,A){return S?w(S):(A&&A.forEach(function(j){k.push(n.from(j,"utf8"))}),w())})}}]),g}(s.Transform);e.CsvFormatterStream=h}).call(this,t("buffer").Buffer)},{"./formatter":147,buffer:216,stream:506}],144:[function(t,r,e){function n(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.FormatterOptions=void 0;var i=function c(){var f,l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,c),this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
|
||
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,l||{}),(l==null?void 0:l.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(l==null?void 0:l.quote)===!0?this.quote='"':(l==null?void 0:l.quote)===!1&&(this.quote=""),typeof(l==null?void 0:l.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((f=l.writeHeaders)===null||f===void 0||f),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)};e.FormatterOptions=i},{}],145:[function(t,r,e){function n(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function i(m,b){for(var v=0;v<b.length;v++){var _=b[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,b,v){return b&&i(m.prototype,b),v&&i(m,v),m}var f=function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.FieldFormatter=void 0;var l=f(t("lodash.isboolean")),u=f(t("lodash.isnil")),y=f(t("lodash.escaperegexp")),p=function(){function m(b){n(this,m),this._headers=null,this.formatterOptions=b,b.headers!==null&&(this.headers=b.headers),this.REPLACE_REGEXP=new RegExp(b.quote,"g");var v="[".concat(b.delimiter).concat(y.default(b.rowDelimiter),`|\r|
|
||
']`);this.ESCAPE_REGEXP=new RegExp(v)}return c(m,[{key:"shouldQuote",value:function(b,v){var _=v?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return l.default(_)?_:Array.isArray(_)?_[b]:this._headers!==null&&_[this._headers[b]]}},{key:"format",value:function(b,v,_){var s="".concat(u.default(b)?"":b).replace(/\0/g,""),o=this.formatterOptions;return o.quote!==""&&s.indexOf(o.quote)!==-1?this.quoteField(s.replace(this.REPLACE_REGEXP,o.escapedQuote)):s.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(v,_)?this.quoteField(s):s}},{key:"quoteField",value:function(b){var v=this.formatterOptions.quote;return"".concat(v).concat(b).concat(v)}},{key:"headers",set:function(b){this._headers=b}}]),m}();e.FieldFormatter=p},{"lodash.escaperegexp":426,"lodash.isboolean":428,"lodash.isnil":431}],146:[function(t,r,e){function n(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function i(b,v){for(var _=0;_<v.length;_++){var s=v[_];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(b,s.key,s)}}function c(b,v,_){return v&&i(b.prototype,v),_&&i(b,_),b}var f=function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.RowFormatter=void 0;var l=f(t("lodash.isfunction")),u=f(t("lodash.isequal")),y=t("./FieldFormatter"),p=t("../types"),m=function(){function b(v){n(this,b),this.rowCount=0,this.formatterOptions=v,this.fieldFormatter=new y.FieldFormatter(v),this.headers=v.headers,this.shouldWriteHeaders=v.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),v.transform&&(this.rowTransform=v.transform)}return c(b,[{key:"format",value:function(v,_){var s=this;this.callTransformer(v,function(o,h){if(o)return _(o);if(!v)return _(null);var a=[];if(h){var d=s.checkHeaders(h),g=d.shouldFormatColumns,w=d.headers;if(s.shouldWriteHeaders&&w&&!s.hasWrittenHeaders&&(a.push(s.formatColumns(w,!0)),s.hasWrittenHeaders=!0),g){var k=s.gatherColumns(h);a.push(s.formatColumns(k,!1))}}return _(null,a)})}},{key:"finish",value:function(v){var _=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return v(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));_.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&_.push(this.formatterOptions.rowDelimiter),v(null,_)}},{key:"checkHeaders",value:function(v){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var _=b.gatherHeaders(v);return this.headers=_,this.fieldFormatter.headers=_,this.shouldWriteHeaders?{shouldFormatColumns:!u.default(_,v),headers:_}:{shouldFormatColumns:!0,headers:null}}},{key:"gatherColumns",value:function(v){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(v)?b.isHashArray(v)?this.headers.map(function(_,s){var o=v[s];return o?o[1]:""}):this.headers.map(function(_,s){return v[s]}):this.headers.map(function(_){return v[_]})}},{key:"callTransformer",value:function(v,_){return this._rowTransform?this._rowTransform(v,_):_(null,v)}},{key:"formatColumns",value:function(v,_){var s=this,o=v.map(function(a,d){return s.fieldFormatter.format(a,d,_)}).join(this.formatterOptions.delimiter),h=this.rowCount;return this.rowCount+=1,h?[this.formatterOptions.rowDelimiter,o].join(""):o}},{key:"rowTransform",set:function(v){if(!l.default(v))throw new TypeError("The transform should be a function");this._rowTransform=b.createTransform(v)}}],[{key:"isHashArray",value:function(v){return!!Array.isArray(v)&&Array.isArray(v[0])&&v[0].length===2}},{key:"gatherHeaders",value:function(v){return b.isHashArray(v)?v.map(function(_){return _[0]}):Array.isArray(v)?v:Object.keys(v)}},{key:"createTransform",value:function(v){return p.isSyncTransform(v)?function(_,s){var o=null;try{o=v(_)}catch(h){return s(h)}return s(null,o)}:function(_,s){v(_,s)}}}]),b}();e.RowFormatter=m},{"../types":149,"./FieldFormatter":145,"lodash.isequal":429,"lodash.isfunction":430}],147:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0});var n=t("./RowFormatter");Object.defineProperty(e,"RowFormatter",{enumerable:!0,get:function(){return n.RowFormatter}});var i=t("./FieldFormatter");Object.defineProperty(e,"FieldFormatter",{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":145,"./RowFormatter":146}],148:[function(t,r,e){(function(n){var i=Object.create?function(s,o,h,a){a===void 0&&(a=h),Object.defineProperty(s,a,{enumerable:!0,get:function(){return o[h]}})}:function(s,o,h,a){a===void 0&&(a=h),s[a]=o[h]},c=Object.create?function(s,o){Object.defineProperty(s,"default",{enumerable:!0,value:o})}:function(s,o){s.default=o},f=function(s){if(s&&s.__esModule)return s;var o={};if(s!=null)for(var h in s)h!=="default"&&Object.hasOwnProperty.call(s,h)&&i(o,s,h);return c(o,s),o},l=function(s,o){for(var h in s)h==="default"||o.hasOwnProperty(h)||i(o,s,h)};Object.defineProperty(e,"__esModule",{value:!0}),e.writeToPath=e.writeToString=e.writeToBuffer=e.writeToStream=e.write=e.format=void 0;var u=t("util"),y=t("stream"),p=f(t("fs")),m=t("./FormatterOptions"),b=t("./CsvFormatterStream");l(t("./types"),e);var v=t("./CsvFormatterStream");Object.defineProperty(e,"CsvFormatterStream",{enumerable:!0,get:function(){return v.CsvFormatterStream}});var _=t("./FormatterOptions");Object.defineProperty(e,"FormatterOptions",{enumerable:!0,get:function(){return _.FormatterOptions}}),e.format=function(s){return new b.CsvFormatterStream(new m.FormatterOptions(s))},e.write=function(s,o){var h=e.format(o),a=u.promisify(function(d,g){h.write(d,void 0,g)});return s.reduce(function(d,g){return d.then(function(){return a(g)})},Promise.resolve()).then(function(){return h.end()}).catch(function(d){h.emit("error",d)}),h},e.writeToStream=function(s,o,h){return e.write(o,h).pipe(s)},e.writeToBuffer=function(s){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=[],a=new y.Writable({write:function(d,g,w){h.push(d),w()}});return new Promise(function(d,g){a.on("error",g).on("finish",function(){return d(n.concat(h))}),e.write(s,o).pipe(a)})},e.writeToString=function(s,o){return e.writeToBuffer(s,o).then(function(h){return h.toString()})},e.writeToPath=function(s,o,h){var a=p.createWriteStream(s,{encoding:"utf8"});return e.write(o,h).pipe(a)}}).call(this,t("buffer").Buffer)},{"./CsvFormatterStream":143,"./FormatterOptions":144,"./types":149,buffer:216,fs:215,stream:506,util:525}],149:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSyncTransform=void 0,e.isSyncTransform=function(n){return n.length===1}},{}],150:[function(t,r,e){(function(n){function i(k){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(k)}function c(k,S){if(!(k instanceof S))throw new TypeError("Cannot call a class as a function")}function f(k,S){for(var A=0;A<S.length;A++){var j=S[A];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(k,j.key,j)}}function l(k,S,A){return S&&f(k.prototype,S),A&&f(k,A),k}function u(k,S,A){return(u=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(j,D,N){var F=y(j,D);if(F){var T=Object.getOwnPropertyDescriptor(F,D);return T.get?T.get.call(N):T.value}})(k,S,A||k)}function y(k,S){for(;!Object.prototype.hasOwnProperty.call(k,S)&&(k=o(k))!==null;);return k}function p(k,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(S&&S.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),S&&m(k,S)}function m(k,S){return(m=Object.setPrototypeOf||function(A,j){return A.__proto__=j,A})(k,S)}function b(k){var S=s();return function(){var A,j=o(k);if(S){var D=o(this).constructor;A=Reflect.construct(j,arguments,D)}else A=j.apply(this,arguments);return v(this,A)}}function v(k,S){return!S||i(S)!=="object"&&typeof S!="function"?_(k):S}function _(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function s(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(k){return!1}}function o(k){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)})(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.CsvParserStream=void 0;var h=t("string_decoder"),a=t("stream"),d=t("./transforms"),g=t("./parser"),w=function(k){p(A,k);var S=b(A);function A(j){var D;return c(this,A),(D=S.call(this,{objectMode:j.objectMode})).lines="",D.rowCount=0,D.parsedRowCount=0,D.parsedLineCount=0,D.endEmitted=!1,D.headersEmitted=!1,D.parserOptions=j,D.parser=new g.Parser(j),D.headerTransformer=new d.HeaderTransformer(j),D.decoder=new h.StringDecoder(j.encoding),D.rowTransformerValidator=new d.RowTransformerValidator,D}return l(A,[{key:"transform",value:function(j){return this.rowTransformerValidator.rowTransform=j,this}},{key:"validate",value:function(j){return this.rowTransformerValidator.rowValidator=j,this}},{key:"emit",value:function(j){var D;if(j==="end")return this.endEmitted||(this.endEmitted=!0,u(o(A.prototype),"emit",this).call(this,"end",this.rowCount)),!1;for(var N=arguments.length,F=new Array(N>1?N-1:0),T=1;T<N;T++)F[T-1]=arguments[T];return(D=u(o(A.prototype),"emit",this)).call.apply(D,[this,j].concat(F))}},{key:"_transform",value:function(j,D,N){if(this.hasHitRowLimit)return N();try{var F=this.lines+this.decoder.write(j),T=this.parse(F,!0);return this.processRows(T,N)}catch(I){return N(I)}}},{key:"_flush",value:function(j){if(this.hasHitRowLimit)return j();try{var D=this.lines+this.decoder.end(),N=this.parse(D,!1);return this.processRows(N,j)}catch(F){return j(F)}}},{key:"parse",value:function(j,D){if(!j)return[];var N=this.parser.parse(j,D),F=N.line,T=N.rows;return this.lines=F,T}},{key:"processRows",value:function(j,D){var N=this,F=j.length;(function T(I){var x=function(C){return C?D(C):I%100!=0?T(I+1):void n(function(){return T(I+1)})};if(N.checkAndEmitHeaders(),I>=F||N.hasHitRowLimit)return D();if(N.parsedLineCount+=1,N.shouldSkipLine)return x();var O=j[I];N.rowCount+=1,N.parsedRowCount+=1;var R=N.rowCount;return N.transformRow(O,function(C,P){if(C)return N.rowCount-=1,x(C);if(!P)return x(new Error("expected transform result"));if(P.isValid){if(P.row)return N.pushRow(P.row,x)}else N.emit("data-invalid",P.row,R,P.reason);return x()})})(0)}},{key:"transformRow",value:function(j,D){var N=this;try{this.headerTransformer.transform(j,function(F,T){return F?D(F):T?T.isValid?T.row?N.shouldEmitRows?N.rowTransformerValidator.transformAndValidate(T.row,D):N.skipRow(D):(N.rowCount-=1,N.parsedRowCount-=1,D(null,{row:null,isValid:!0})):N.shouldEmitRows?D(null,{isValid:!1,row:j}):N.skipRow(D):D(new Error("Expected result from header transform"))})}catch(F){D(F)}}},{key:"checkAndEmitHeaders",value:function(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}},{key:"skipRow",value:function(j){return this.rowCount-=1,j(null,{row:null,isValid:!0})}},{key:"pushRow",value:function(j,D){try{this.parserOptions.objectMode?this.push(j):this.push(JSON.stringify(j)),D()}catch(N){D(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}}]),A}(a.Transform);e.CsvParserStream=w}).call(this,t("timers").setImmediate)},{"./parser":162,"./transforms":165,stream:506,string_decoder:520,timers:521}],151:[function(t,r,e){function n(u,y){if(!(u instanceof y))throw new TypeError("Cannot call a class as a function")}var i=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(e,"__esModule",{value:!0}),e.ParserOptions=void 0;var c=i(t("lodash.escaperegexp")),f=i(t("lodash.isnil")),l=function u(y){var p;if(n(this,u),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,y||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=c.default(this.delimiter),this.escapeChar=(p=this.escape)!==null&&p!==void 0?p:this.quote,this.supportsComments=!f.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter,")")),this.maxRows>0&&(this.limitRows=!0)};e.ParserOptions=l},{"lodash.escaperegexp":426,"lodash.isnil":431}],152:[function(t,r,e){var n=Object.create?function(v,_,s,o){o===void 0&&(o=s),Object.defineProperty(v,o,{enumerable:!0,get:function(){return _[s]}})}:function(v,_,s,o){o===void 0&&(o=s),v[o]=_[s]},i=Object.create?function(v,_){Object.defineProperty(v,"default",{enumerable:!0,value:_})}:function(v,_){v.default=_},c=function(v){if(v&&v.__esModule)return v;var _={};if(v!=null)for(var s in v)s!=="default"&&Object.hasOwnProperty.call(v,s)&&n(_,v,s);return i(_,v),_},f=function(v,_){for(var s in v)s==="default"||_.hasOwnProperty(s)||n(_,v,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.parseString=e.parseFile=e.parseStream=e.parse=void 0;var l=c(t("fs")),u=t("stream"),y=t("./ParserOptions"),p=t("./CsvParserStream");f(t("./types"),e);var m=t("./CsvParserStream");Object.defineProperty(e,"CsvParserStream",{enumerable:!0,get:function(){return m.CsvParserStream}});var b=t("./ParserOptions");Object.defineProperty(e,"ParserOptions",{enumerable:!0,get:function(){return b.ParserOptions}}),e.parse=function(v){return new p.CsvParserStream(new y.ParserOptions(v))},e.parseStream=function(v,_){return v.pipe(new p.CsvParserStream(new y.ParserOptions(_)))},e.parseFile=function(v){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l.createReadStream(v).pipe(new p.CsvParserStream(new y.ParserOptions(_)))},e.parseString=function(v,_){var s=new u.Readable;return s.push(v),s.push(null),s.pipe(new p.CsvParserStream(new y.ParserOptions(_)))}},{"./CsvParserStream":150,"./ParserOptions":151,"./types":166,fs:215,stream:506}],153:[function(t,r,e){function n(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function i(m,b){for(var v=0;v<b.length;v++){var _=b[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,b,v){return b&&i(m.prototype,b),v&&i(m,v),m}Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;var f=t("./Scanner"),l=t("./RowParser"),u=t("./Token"),y=/^\s*(?:''|"")?\s*(?:,\s*(?:''|"")?\s*)*$/,p=function(){function m(b){n(this,m),this.parserOptions=b,this.rowParser=new l.RowParser(this.parserOptions)}return c(m,[{key:"parse",value:function(b,v){var _=new f.Scanner({line:m.removeBOM(b),parserOptions:this.parserOptions,hasMoreData:v});return this.parserOptions.supportsComments?this.parseWithComments(_):this.parseWithoutComments(_)}},{key:"parseWithoutComments",value:function(b){for(var v=[],_=!0;_;)_=this.parseRow(b,v);return{line:b.line,rows:v}}},{key:"parseWithComments",value:function(b){for(var v=this.parserOptions,_=[],s=b.nextCharacterToken;s!==null;s=b.nextCharacterToken)if(u.Token.isTokenComment(s,v)){if(b.advancePastLine()===null)return{line:b.lineFromCursor,rows:_};if(!b.hasMoreCharacters)return{line:b.lineFromCursor,rows:_};b.truncateToCursor()}else if(!this.parseRow(b,_))break;return{line:b.line,rows:_}}},{key:"parseRow",value:function(b,v){if(!b.nextNonSpaceToken)return!1;var _=this.rowParser.parse(b);return _!==null&&(this.parserOptions.ignoreEmpty&&y.test(_.join(""))||v.push(_),!0)}}],[{key:"removeBOM",value:function(b){return b&&b.charCodeAt(0)===65279?b.slice(1):b}}]),m}();e.Parser=p},{"./RowParser":154,"./Scanner":155,"./Token":156}],154:[function(t,r,e){function n(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function i(b,v){for(var _=0;_<v.length;_++){var s=v[_];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(b,s.key,s)}}function c(b,v,_){return v&&i(b.prototype,v),_&&i(b,_),b}Object.defineProperty(e,"__esModule",{value:!0}),e.RowParser=void 0;var f=t("./column"),l=t("./Token").Token,u=l.isTokenRowDelimiter,y=l.isTokenCarriageReturn,p=l.isTokenDelimiter,m=function(){function b(v){n(this,b),this.parserOptions=v,this.columnParser=new f.ColumnParser(v)}return c(b,[{key:"parse",value:function(v){for(var _=this.parserOptions,s=v.hasMoreData,o=v,h=[],a=this.getStartToken(o,h);a;){if(u(a))return o.advancePastToken(a),!o.hasMoreCharacters&&y(a,_)&&s?null:(o.truncateToCursor(),h);if(!this.shouldSkipColumnParse(o,a,h)){var d=this.columnParser.parse(o);if(d===null)return null;h.push(d)}a=o.nextNonSpaceToken}return s?null:(o.truncateToCursor(),h)}},{key:"getStartToken",value:function(v,_){var s=v.nextNonSpaceToken;return s!==null&&p(s,this.parserOptions)?(_.push(""),v.nextNonSpaceToken):s}},{key:"shouldSkipColumnParse",value:function(v,_,s){var o=this.parserOptions;if(p(_,o)){v.advancePastToken(_);var h=v.nextCharacterToken;if(!v.hasMoreCharacters||h!==null&&u(h)||h!==null&&p(h,o))return s.push(""),!0}return!1}}]),b}();e.RowParser=m},{"./Token":156,"./column":161}],155:[function(t,r,e){function n(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}function i(y,p){for(var m=0;m<p.length;m++){var b=p[m];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}function c(y,p,m){return p&&i(y.prototype,p),m&&i(y,m),y}Object.defineProperty(e,"__esModule",{value:!0}),e.Scanner=void 0;var f=t("./Token"),l=/((?:\r\n)|\n|\r)/,u=function(){function y(p){n(this,y),this.cursor=0,this.line=p.line,this.lineLength=this.line.length,this.parserOptions=p.parserOptions,this.hasMoreData=p.hasMoreData,this.cursor=p.cursor||0}return c(y,[{key:"advancePastLine",value:function(){var p=l.exec(this.lineFromCursor);return p?(this.cursor+=(p.index||0)+p[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}},{key:"advanceTo",value:function(p){return this.cursor=p,this}},{key:"advanceToToken",value:function(p){return this.cursor=p.startCursor,this}},{key:"advancePastToken",value:function(p){return this.cursor=p.endCursor+1,this}},{key:"truncateToCursor",value:function(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}},{key:"hasMoreCharacters",get:function(){return this.lineLength>this.cursor}},{key:"nextNonSpaceToken",get:function(){var p=this.lineFromCursor,m=this.parserOptions.NEXT_TOKEN_REGEXP;if(p.search(m)===-1)return null;var b=m.exec(p);if(b==null)return null;var v=b[1],_=this.cursor+(b.index||0);return new f.Token({token:v,startCursor:_,endCursor:_+v.length-1})}},{key:"nextCharacterToken",get:function(){var p=this.cursor;return this.lineLength<=p?null:new f.Token({token:this.line[p],startCursor:p,endCursor:p})}},{key:"lineFromCursor",get:function(){return this.line.substr(this.cursor)}}]),y}();e.Scanner=u},{"./Token":156}],156:[function(t,r,e){function n(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function i(l,u){for(var y=0;y<u.length;y++){var p=u[y];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(l,p.key,p)}}function c(l,u,y){return u&&i(l.prototype,u),y&&i(l,y),l}Object.defineProperty(e,"__esModule",{value:!0}),e.Token=void 0;var f=function(){function l(u){n(this,l),this.token=u.token,this.startCursor=u.startCursor,this.endCursor=u.endCursor}return c(l,null,[{key:"isTokenRowDelimiter",value:function(u){var y=u.token;return y==="\r"||y===`
|
||
`||y===`\r
|
||
`}},{key:"isTokenCarriageReturn",value:function(u,y){return u.token===y.carriageReturn}},{key:"isTokenComment",value:function(u,y){return y.supportsComments&&!!u&&u.token===y.comment}},{key:"isTokenEscapeCharacter",value:function(u,y){return u.token===y.escapeChar}},{key:"isTokenQuote",value:function(u,y){return u.token===y.quote}},{key:"isTokenDelimiter",value:function(u,y){return u.token===y.delimiter}}]),l}();e.Token=f},{}],157:[function(t,r,e){function n(c,f){if(!(c instanceof f))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnFormatter=void 0;var i=function c(f){n(this,c),f.trim?this.format=function(l){return l.trim()}:f.ltrim?this.format=function(l){return l.trimLeft()}:f.rtrim?this.format=function(l){return l.trimRight()}:this.format=function(l){return l}};e.ColumnFormatter=i},{}],158:[function(t,r,e){function n(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function i(p,m){for(var b=0;b<m.length;b++){var v=m[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}function c(p,m,b){return m&&i(p.prototype,m),b&&i(p,b),p}Object.defineProperty(e,"__esModule",{value:!0}),e.ColumnParser=void 0;var f=t("./NonQuotedColumnParser"),l=t("./QuotedColumnParser"),u=t("../Token"),y=function(){function p(m){n(this,p),this.parserOptions=m,this.quotedColumnParser=new l.QuotedColumnParser(m),this.nonQuotedColumnParser=new f.NonQuotedColumnParser(m)}return c(p,[{key:"parse",value:function(m){var b=m.nextNonSpaceToken;return b!==null&&u.Token.isTokenQuote(b,this.parserOptions)?(m.advanceToToken(b),this.quotedColumnParser.parse(m)):this.nonQuotedColumnParser.parse(m)}}]),p}();e.ColumnParser=y},{"../Token":156,"./NonQuotedColumnParser":159,"./QuotedColumnParser":160}],159:[function(t,r,e){function n(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}function i(m,b){for(var v=0;v<b.length;v++){var _=b[v];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,b,v){return b&&i(m.prototype,b),v&&i(m,v),m}Object.defineProperty(e,"__esModule",{value:!0}),e.NonQuotedColumnParser=void 0;var f=t("./ColumnFormatter"),l=t("../Token").Token,u=l.isTokenDelimiter,y=l.isTokenRowDelimiter,p=function(){function m(b){n(this,m),this.parserOptions=b,this.columnFormatter=new f.ColumnFormatter(b)}return c(m,[{key:"parse",value:function(b){if(!b.hasMoreCharacters)return null;for(var v=this.parserOptions,_=[],s=b.nextCharacterToken;s&&!u(s,v)&&!y(s);s=b.nextCharacterToken)_.push(s.token),b.advancePastToken(s);return this.columnFormatter.format(_.join(""))}}]),m}();e.NonQuotedColumnParser=p},{"../Token":156,"./ColumnFormatter":157}],160:[function(t,r,e){function n(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function i(v,_){for(var s=0;s<_.length;s++){var o=_[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(v,o.key,o)}}function c(v,_,s){return _&&i(v.prototype,_),s&&i(v,s),v}Object.defineProperty(e,"__esModule",{value:!0}),e.QuotedColumnParser=void 0;var f=t("./ColumnFormatter"),l=t("../Token").Token,u=l.isTokenDelimiter,y=l.isTokenRowDelimiter,p=l.isTokenEscapeCharacter,m=l.isTokenQuote,b=function(){function v(_){n(this,v),this.parserOptions=_,this.columnFormatter=new f.ColumnFormatter(_)}return c(v,[{key:"parse",value:function(_){if(!_.hasMoreCharacters)return null;var s=_.cursor,o=this.gatherDataBetweenQuotes(_),h=o.foundClosingQuote,a=o.col;if(!h){if(_.advanceTo(s),!_.hasMoreData)throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote||"","' in line: at '").concat(_.lineFromCursor.replace(/[\r\n]/g,"\\n'"),"'"));return null}return this.checkForMalformedColumn(_),a}},{key:"gatherDataBetweenQuotes",value:function(_){for(var s=this.parserOptions,o=!1,h=!1,a=[],d=_.nextCharacterToken;!h&&d!==null;d=_.nextCharacterToken){var g=m(d,s);if(!o&&g)o=!0;else if(o)if(p(d,s)){_.advancePastToken(d);var w=_.nextCharacterToken;w!==null&&(m(w,s)||p(w,s))?(a.push(w.token),d=w):g?h=!0:a.push(d.token)}else g?h=!0:a.push(d.token);_.advancePastToken(d)}return{col:this.columnFormatter.format(a.join("")),foundClosingQuote:h}}},{key:"checkForMalformedColumn",value:function(_){var s=this.parserOptions,o=_.nextNonSpaceToken;if(o){var h=u(o,s),a=y(o);if(!h&&!a){var d=_.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error("Parse Error: expected: '".concat(s.escapedDelimiter,"' OR new line got: '").concat(o.token,"'. at '").concat(d))}_.advanceToToken(o)}else _.hasMoreData||_.advancePastLine()}}]),v}();e.QuotedColumnParser=b},{"../Token":156,"./ColumnFormatter":157}],161:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0});var n=t("./ColumnParser");Object.defineProperty(e,"ColumnParser",{enumerable:!0,get:function(){return n.ColumnParser}});var i=t("./NonQuotedColumnParser");Object.defineProperty(e,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var c=t("./QuotedColumnParser");Object.defineProperty(e,"QuotedColumnParser",{enumerable:!0,get:function(){return c.QuotedColumnParser}});var f=t("./ColumnFormatter");Object.defineProperty(e,"ColumnFormatter",{enumerable:!0,get:function(){return f.ColumnFormatter}})},{"./ColumnFormatter":157,"./ColumnParser":158,"./NonQuotedColumnParser":159,"./QuotedColumnParser":160}],162:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0});var n=t("./Parser");Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return n.Parser}});var i=t("./RowParser");Object.defineProperty(e,"RowParser",{enumerable:!0,get:function(){return i.RowParser}});var c=t("./Scanner");Object.defineProperty(e,"Scanner",{enumerable:!0,get:function(){return c.Scanner}});var f=t("./Token");Object.defineProperty(e,"Token",{enumerable:!0,get:function(){return f.Token}});var l=t("./column");Object.defineProperty(e,"ColumnParser",{enumerable:!0,get:function(){return l.ColumnParser}}),Object.defineProperty(e,"NonQuotedColumnParser",{enumerable:!0,get:function(){return l.NonQuotedColumnParser}}),Object.defineProperty(e,"QuotedColumnParser",{enumerable:!0,get:function(){return l.QuotedColumnParser}})},{"./Parser":153,"./RowParser":154,"./Scanner":155,"./Token":156,"./column":161}],163:[function(t,r,e){function n(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function i(b,v){for(var _=0;_<v.length;_++){var s=v[_];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(b,s.key,s)}}function c(b,v,_){return v&&i(b.prototype,v),_&&i(b,_),b}var f=function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.HeaderTransformer=void 0;var l=f(t("lodash.isundefined")),u=f(t("lodash.isfunction")),y=f(t("lodash.uniq")),p=f(t("lodash.groupby")),m=function(){function b(v){n(this,b),this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=v,v.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(v.headers)?this.setHeaders(v.headers):u.default(v.headers)&&(this.headersTransform=v.headers)}return c(b,[{key:"transform",value:function(v,_){return this.shouldMapRow(v)?_(null,this.processRow(v)):_(null,{row:null,isValid:!0})}},{key:"shouldMapRow",value:function(v){var _=this.parserOptions;if(!this.headersTransform&&_.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(v)){if(this.headersTransform)this.setHeaders(this.headersTransform(v));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(v)}return!1}return!0}},{key:"processRow",value:function(v){if(!this.headers)return{row:v,isValid:!0};var _=this.parserOptions;if(!_.discardUnmappedColumns&&v.length>this.headersLength){if(!_.strictColumnHandling)throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(v.length));return{row:v,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(v.length)}}return _.strictColumnHandling&&v.length<this.headersLength?{row:v,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(v.length)}:{row:this.mapHeaders(v),isValid:!0}}},{key:"mapHeaders",value:function(v){for(var _={},s=this.headers,o=this.headersLength,h=0;h<o;h+=1){var a=s[h];if(!l.default(a)){var d=v[h];l.default(d)?_[a]="":_[a]=d}}return _}},{key:"setHeaders",value:function(v){var _,s=v.filter(function(a){return!!a});if(y.default(s).length!==s.length){var o=p.default(s),h=Object.keys(o).filter(function(a){return o[a].length>1});throw new Error("Duplicate headers found ".concat(JSON.stringify(h)))}this.headers=v,this.receivedHeaders=!0,this.headersLength=((_=this.headers)===null||_===void 0?void 0:_.length)||0}}]),b}();e.HeaderTransformer=m},{"lodash.groupby":427,"lodash.isfunction":430,"lodash.isundefined":432,"lodash.uniq":433}],164:[function(t,r,e){function n(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function i(p,m){for(var b=0;b<m.length;b++){var v=m[b];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}function c(p,m,b){return m&&i(p.prototype,m),b&&i(p,b),p}var f=function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.RowTransformerValidator=void 0;var l=f(t("lodash.isfunction")),u=t("../types"),y=function(){function p(){n(this,p),this._rowTransform=null,this._rowValidator=null}return c(p,[{key:"transformAndValidate",value:function(m,b){var v=this;return this.callTransformer(m,function(_,s){return _?b(_):s?v.callValidator(s,function(o,h){return o?b(o):h&&!h.isValid?b(null,{row:s,isValid:!1,reason:h.reason}):b(null,{row:s,isValid:!0})}):b(null,{row:null,isValid:!0})})}},{key:"callTransformer",value:function(m,b){return this._rowTransform?this._rowTransform(m,b):b(null,m)}},{key:"callValidator",value:function(m,b){return this._rowValidator?this._rowValidator(m,b):b(null,{row:m,isValid:!0})}},{key:"rowTransform",set:function(m){if(!l.default(m))throw new TypeError("The transform should be a function");this._rowTransform=p.createTransform(m)}},{key:"rowValidator",set:function(m){if(!l.default(m))throw new TypeError("The validate should be a function");this._rowValidator=p.createValidator(m)}}],[{key:"createTransform",value:function(m){return u.isSyncTransform(m)?function(b,v){var _=null;try{_=m(b)}catch(s){return v(s)}return v(null,_)}:m}},{key:"createValidator",value:function(m){return u.isSyncValidate(m)?function(b,v){v(null,{row:b,isValid:m(b)})}:function(b,v){m(b,function(_,s,o){return _?v(_):v(null,s?{row:b,isValid:s,reason:o}:{row:b,isValid:!1,reason:o})})}}}]),p}();e.RowTransformerValidator=y},{"../types":166,"lodash.isfunction":430}],165:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0});var n=t("./RowTransformerValidator");Object.defineProperty(e,"RowTransformerValidator",{enumerable:!0,get:function(){return n.RowTransformerValidator}});var i=t("./HeaderTransformer");Object.defineProperty(e,"HeaderTransformer",{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":163,"./RowTransformerValidator":164}],166:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSyncValidate=e.isSyncTransform=void 0,e.isSyncTransform=function(n){return n.length===1},e.isSyncValidate=function(n){return n.length===1}},{}],167:[function(t,r,e){var n=e;n.bignum=t("bn.js"),n.define=t("./asn1/api").define,n.base=t("./asn1/base"),n.constants=t("./asn1/constants"),n.decoders=t("./asn1/decoders"),n.encoders=t("./asn1/encoders")},{"./asn1/api":168,"./asn1/base":170,"./asn1/constants":174,"./asn1/decoders":176,"./asn1/encoders":179,"bn.js":181}],168:[function(t,r,e){var n=t("./encoders"),i=t("./decoders"),c=t("inherits");function f(l,u){this.name=l,this.body=u,this.decoders={},this.encoders={}}e.define=function(l,u){return new f(l,u)},f.prototype._createNamed=function(l){var u=this.name;function y(p){this._initNamed(p,u)}return c(y,l),y.prototype._initNamed=function(p,m){l.call(this,p,m)},new y(this)},f.prototype._getDecoder=function(l){return l=l||"der",this.decoders.hasOwnProperty(l)||(this.decoders[l]=this._createNamed(i[l])),this.decoders[l]},f.prototype.decode=function(l,u,y){return this._getDecoder(u).decode(l,y)},f.prototype._getEncoder=function(l){return l=l||"der",this.encoders.hasOwnProperty(l)||(this.encoders[l]=this._createNamed(n[l])),this.encoders[l]},f.prototype.encode=function(l,u,y){return this._getEncoder(u).encode(l,y)}},{"./decoders":176,"./encoders":179,inherits:387}],169:[function(t,r,e){function n(y){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(y)}var i=t("inherits"),c=t("../base/reporter").Reporter,f=t("safer-buffer").Buffer;function l(y,p){c.call(this,p),f.isBuffer(y)?(this.base=y,this.offset=0,this.length=y.length):this.error("Input not Buffer")}function u(y,p){if(Array.isArray(y))this.length=0,this.value=y.map(function(m){return u.isEncoderBuffer(m)||(m=new u(m,p)),this.length+=m.length,m},this);else if(typeof y=="number"){if(!(0<=y&&y<=255))return p.error("non-byte EncoderBuffer value");this.value=y,this.length=1}else if(typeof y=="string")this.value=y,this.length=f.byteLength(y);else{if(!f.isBuffer(y))return p.error("Unsupported type: "+n(y));this.value=y,this.length=y.length}}i(l,c),e.DecoderBuffer=l,l.isDecoderBuffer=function(y){return y instanceof l||n(y)==="object"&&f.isBuffer(y.base)&&y.constructor.name==="DecoderBuffer"&&typeof y.offset=="number"&&typeof y.length=="number"&&typeof y.save=="function"&&typeof y.restore=="function"&&typeof y.isEmpty=="function"&&typeof y.readUInt8=="function"&&typeof y.skip=="function"&&typeof y.raw=="function"},l.prototype.save=function(){return{offset:this.offset,reporter:c.prototype.save.call(this)}},l.prototype.restore=function(y){var p=new l(this.base);return p.offset=y.offset,p.length=this.offset,this.offset=y.offset,c.prototype.restore.call(this,y.reporter),p},l.prototype.isEmpty=function(){return this.offset===this.length},l.prototype.readUInt8=function(y){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(y||"DecoderBuffer overrun")},l.prototype.skip=function(y,p){if(!(this.offset+y<=this.length))return this.error(p||"DecoderBuffer overrun");var m=new l(this.base);return m._reporterState=this._reporterState,m.offset=this.offset,m.length=this.offset+y,this.offset+=y,m},l.prototype.raw=function(y){return this.base.slice(y?y.offset:this.offset,this.length)},e.EncoderBuffer=u,u.isEncoderBuffer=function(y){return y instanceof u||n(y)==="object"&&y.constructor.name==="EncoderBuffer"&&typeof y.length=="number"&&typeof y.join=="function"},u.prototype.join=function(y,p){return y||(y=f.alloc(this.length)),p||(p=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(m){m.join(y,p),p+=m.length}):(typeof this.value=="number"?y[p]=this.value:typeof this.value=="string"?y.write(this.value,p):f.isBuffer(this.value)&&this.value.copy(y,p),p+=this.length)),y}},{"../base/reporter":172,inherits:387,"safer-buffer":495}],170:[function(t,r,e){var n=e;n.Reporter=t("./reporter").Reporter,n.DecoderBuffer=t("./buffer").DecoderBuffer,n.EncoderBuffer=t("./buffer").EncoderBuffer,n.Node=t("./node")},{"./buffer":169,"./node":171,"./reporter":172}],171:[function(t,r,e){function n(v){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(v)}var i=t("../base/reporter").Reporter,c=t("../base/buffer").EncoderBuffer,f=t("../base/buffer").DecoderBuffer,l=t("minimalistic-assert"),u=["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"],y=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u),p=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function m(v,_,s){var o={};this._baseState=o,o.name=s,o.enc=v,o.parent=_||null,o.children=null,o.tag=null,o.args=null,o.reverseArgs=null,o.choice=null,o.optional=!1,o.any=!1,o.obj=!1,o.use=null,o.useDecoder=null,o.key=null,o.default=null,o.explicit=null,o.implicit=null,o.contains=null,o.parent||(o.children=[],this._wrap())}r.exports=m;var b=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];m.prototype.clone=function(){var v=this._baseState,_={};b.forEach(function(o){_[o]=v[o]});var s=new this.constructor(_.parent);return s._baseState=_,s},m.prototype._wrap=function(){var v=this._baseState;y.forEach(function(_){this[_]=function(){var s=new this.constructor(this);return v.children.push(s),s[_].apply(s,arguments)}},this)},m.prototype._init=function(v){var _=this._baseState;l(_.parent===null),v.call(this),_.children=_.children.filter(function(s){return s._baseState.parent===this},this),l.equal(_.children.length,1,"Root node can have only one child")},m.prototype._useArgs=function(v){var _=this._baseState,s=v.filter(function(o){return o instanceof this.constructor},this);v=v.filter(function(o){return!(o instanceof this.constructor)},this),s.length!==0&&(l(_.children===null),_.children=s,s.forEach(function(o){o._baseState.parent=this},this)),v.length!==0&&(l(_.args===null),_.args=v,_.reverseArgs=v.map(function(o){if(n(o)!=="object"||o.constructor!==Object)return o;var h={};return Object.keys(o).forEach(function(a){a==(0|a)&&(a|=0);var d=o[a];h[d]=a}),h}))},p.forEach(function(v){m.prototype[v]=function(){var _=this._baseState;throw new Error(v+" not implemented for encoding: "+_.enc)}}),u.forEach(function(v){m.prototype[v]=function(){var _=this._baseState,s=Array.prototype.slice.call(arguments);return l(_.tag===null),_.tag=v,this._useArgs(s),this}}),m.prototype.use=function(v){l(v);var _=this._baseState;return l(_.use===null),_.use=v,this},m.prototype.optional=function(){return this._baseState.optional=!0,this},m.prototype.def=function(v){var _=this._baseState;return l(_.default===null),_.default=v,_.optional=!0,this},m.prototype.explicit=function(v){var _=this._baseState;return l(_.explicit===null&&_.implicit===null),_.explicit=v,this},m.prototype.implicit=function(v){var _=this._baseState;return l(_.explicit===null&&_.implicit===null),_.implicit=v,this},m.prototype.obj=function(){var v=this._baseState,_=Array.prototype.slice.call(arguments);return v.obj=!0,_.length!==0&&this._useArgs(_),this},m.prototype.key=function(v){var _=this._baseState;return l(_.key===null),_.key=v,this},m.prototype.any=function(){return this._baseState.any=!0,this},m.prototype.choice=function(v){var _=this._baseState;return l(_.choice===null),_.choice=v,this._useArgs(Object.keys(v).map(function(s){return v[s]})),this},m.prototype.contains=function(v){var _=this._baseState;return l(_.use===null),_.contains=v,this},m.prototype._decode=function(v,_){var s=this._baseState;if(s.parent===null)return v.wrapResult(s.children[0]._decode(v,_));var o,h=s.default,a=!0,d=null;if(s.key!==null&&(d=v.enterKey(s.key)),s.optional){var g=null;if(s.explicit!==null?g=s.explicit:s.implicit!==null?g=s.implicit:s.tag!==null&&(g=s.tag),g!==null||s.any){if(a=this._peekTag(v,g,s.any),v.isError(a))return a}else{var w=v.save();try{s.choice===null?this._decodeGeneric(s.tag,v,_):this._decodeChoice(v,_),a=!0}catch(N){a=!1}v.restore(w)}}if(s.obj&&a&&(o=v.enterObject()),a){if(s.explicit!==null){var k=this._decodeTag(v,s.explicit);if(v.isError(k))return k;v=k}var S=v.offset;if(s.use===null&&s.choice===null){var A;s.any&&(A=v.save());var j=this._decodeTag(v,s.implicit!==null?s.implicit:s.tag,s.any);if(v.isError(j))return j;s.any?h=v.raw(A):v=j}if(_&&_.track&&s.tag!==null&&_.track(v.path(),S,v.length,"tagged"),_&&_.track&&s.tag!==null&&_.track(v.path(),v.offset,v.length,"content"),s.any||(h=s.choice===null?this._decodeGeneric(s.tag,v,_):this._decodeChoice(v,_)),v.isError(h))return h;if(s.any||s.choice!==null||s.children===null||s.children.forEach(function(N){N._decode(v,_)}),s.contains&&(s.tag==="octstr"||s.tag==="bitstr")){var D=new f(h);h=this._getUse(s.contains,v._reporterState.obj)._decode(D,_)}}return s.obj&&a&&(h=v.leaveObject(o)),s.key===null||h===null&&a!==!0?d!==null&&v.exitKey(d):v.leaveKey(d,s.key,h),h},m.prototype._decodeGeneric=function(v,_,s){var o=this._baseState;return v==="seq"||v==="set"?null:v==="seqof"||v==="setof"?this._decodeList(_,v,o.args[0],s):/str$/.test(v)?this._decodeStr(_,v,s):v==="objid"&&o.args?this._decodeObjid(_,o.args[0],o.args[1],s):v==="objid"?this._decodeObjid(_,null,null,s):v==="gentime"||v==="utctime"?this._decodeTime(_,v,s):v==="null_"?this._decodeNull(_,s):v==="bool"?this._decodeBool(_,s):v==="objDesc"?this._decodeStr(_,v,s):v==="int"||v==="enum"?this._decodeInt(_,o.args&&o.args[0],s):o.use!==null?this._getUse(o.use,_._reporterState.obj)._decode(_,s):_.error("unknown tag: "+v)},m.prototype._getUse=function(v,_){var s=this._baseState;return s.useDecoder=this._use(v,_),l(s.useDecoder._baseState.parent===null),s.useDecoder=s.useDecoder._baseState.children[0],s.implicit!==s.useDecoder._baseState.implicit&&(s.useDecoder=s.useDecoder.clone(),s.useDecoder._baseState.implicit=s.implicit),s.useDecoder},m.prototype._decodeChoice=function(v,_){var s=this._baseState,o=null,h=!1;return Object.keys(s.choice).some(function(a){var d=v.save(),g=s.choice[a];try{var w=g._decode(v,_);if(v.isError(w))return!1;o={type:a,value:w},h=!0}catch(k){return v.restore(d),!1}return!0},this),h?o:v.error("Choice not matched")},m.prototype._createEncoderBuffer=function(v){return new c(v,this.reporter)},m.prototype._encode=function(v,_,s){var o=this._baseState;if(o.default===null||o.default!==v){var h=this._encodeValue(v,_,s);if(h!==void 0&&!this._skipDefault(h,_,s))return h}},m.prototype._encodeValue=function(v,_,s){var o=this._baseState;if(o.parent===null)return o.children[0]._encode(v,_||new i);var h=null;if(this.reporter=_,o.optional&&v===void 0){if(o.default===null)return;v=o.default}var a=null,d=!1;if(o.any)h=this._createEncoderBuffer(v);else if(o.choice)h=this._encodeChoice(v,_);else if(o.contains)a=this._getUse(o.contains,s)._encode(v,_),d=!0;else if(o.children)a=o.children.map(function(S){if(S._baseState.tag==="null_")return S._encode(null,_,v);if(S._baseState.key===null)return _.error("Child should have a key");var A=_.enterKey(S._baseState.key);if(n(v)!=="object")return _.error("Child expected, but input is not object");var j=S._encode(v[S._baseState.key],_,v);return _.leaveKey(A),j},this).filter(function(S){return S}),a=this._createEncoderBuffer(a);else if(o.tag==="seqof"||o.tag==="setof"){if(!o.args||o.args.length!==1)return _.error("Too many args for : "+o.tag);if(!Array.isArray(v))return _.error("seqof/setof, but data is not Array");var g=this.clone();g._baseState.implicit=null,a=this._createEncoderBuffer(v.map(function(S){var A=this._baseState;return this._getUse(A.args[0],v)._encode(S,_)},g))}else o.use!==null?h=this._getUse(o.use,s)._encode(v,_):(a=this._encodePrimitive(o.tag,v),d=!0);if(!o.any&&o.choice===null){var w=o.implicit!==null?o.implicit:o.tag,k=o.implicit===null?"universal":"context";w===null?o.use===null&&_.error("Tag could be omitted only for .use()"):o.use===null&&(h=this._encodeComposite(w,d,k,a))}return o.explicit!==null&&(h=this._encodeComposite(o.explicit,!1,"context",h)),h},m.prototype._encodeChoice=function(v,_){var s=this._baseState,o=s.choice[v.type];return o||l(!1,v.type+" not found in "+JSON.stringify(Object.keys(s.choice))),o._encode(v.value,_)},m.prototype._encodePrimitive=function(v,_){var s=this._baseState;if(/str$/.test(v))return this._encodeStr(_,v);if(v==="objid"&&s.args)return this._encodeObjid(_,s.reverseArgs[0],s.args[1]);if(v==="objid")return this._encodeObjid(_,null,null);if(v==="gentime"||v==="utctime")return this._encodeTime(_,v);if(v==="null_")return this._encodeNull();if(v==="int"||v==="enum")return this._encodeInt(_,s.args&&s.reverseArgs[0]);if(v==="bool")return this._encodeBool(_);if(v==="objDesc")return this._encodeStr(_,v);throw new Error("Unsupported tag: "+v)},m.prototype._isNumstr=function(v){return/^[0-9 ]*$/.test(v)},m.prototype._isPrintstr=function(v){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(v)}},{"../base/buffer":169,"../base/reporter":172,"minimalistic-assert":437}],172:[function(t,r,e){var n=t("inherits");function i(f){this._reporterState={obj:null,path:[],options:f||{},errors:[]}}function c(f,l){this.path=f,this.rethrow(l)}e.Reporter=i,i.prototype.isError=function(f){return f instanceof c},i.prototype.save=function(){var f=this._reporterState;return{obj:f.obj,pathLen:f.path.length}},i.prototype.restore=function(f){var l=this._reporterState;l.obj=f.obj,l.path=l.path.slice(0,f.pathLen)},i.prototype.enterKey=function(f){return this._reporterState.path.push(f)},i.prototype.exitKey=function(f){var l=this._reporterState;l.path=l.path.slice(0,f-1)},i.prototype.leaveKey=function(f,l,u){var y=this._reporterState;this.exitKey(f),y.obj!==null&&(y.obj[l]=u)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var f=this._reporterState,l=f.obj;return f.obj={},l},i.prototype.leaveObject=function(f){var l=this._reporterState,u=l.obj;return l.obj=f,u},i.prototype.error=function(f){var l,u=this._reporterState,y=f instanceof c;if(l=y?f:new c(u.path.map(function(p){return"["+JSON.stringify(p)+"]"}).join(""),f.message||f,f.stack),!u.options.partial)throw l;return y||u.errors.push(l),l},i.prototype.wrapResult=function(f){var l=this._reporterState;return l.options.partial?{result:this.isError(f)?null:f,errors:l.errors}:f},n(c,Error),c.prototype.rethrow=function(f){if(this.message=f+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,c),!this.stack)try{throw new Error(this.message)}catch(l){this.stack=l.stack}return this}},{inherits:387}],173:[function(t,r,e){function n(i){var c={};return Object.keys(i).forEach(function(f){(0|f)==f&&(f|=0);var l=i[f];c[l]=f}),c}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=n(e.tagClass),e.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"},e.tagByName=n(e.tag)},{}],174:[function(t,r,e){var n=e;n._reverse=function(i){var c={};return Object.keys(i).forEach(function(f){(0|f)==f&&(f|=0);var l=i[f];c[l]=f}),c},n.der=t("./der")},{"./der":173}],175:[function(t,r,e){var n=t("inherits"),i=t("bn.js"),c=t("../base/buffer").DecoderBuffer,f=t("../base/node"),l=t("../constants/der");function u(b){this.enc="der",this.name=b.name,this.entity=b,this.tree=new y,this.tree._init(b.body)}function y(b){f.call(this,"der",b)}function p(b,v){var _=b.readUInt8(v);if(b.isError(_))return _;var s=l.tagClass[_>>6],o=(32&_)==0;if((31&_)==31){var h=_;for(_=0;(128&h)==128;){if(h=b.readUInt8(v),b.isError(h))return h;_<<=7,_|=127&h}}else _&=31;return{cls:s,primitive:o,tag:_,tagStr:l.tag[_]}}function m(b,v,_){var s=b.readUInt8(_);if(b.isError(s))return s;if(!v&&s===128)return null;if(!(128&s))return s;var o=127&s;if(o>4)return b.error("length octect is too long");s=0;for(var h=0;h<o;h++){s<<=8;var a=b.readUInt8(_);if(b.isError(a))return a;s|=a}return s}r.exports=u,u.prototype.decode=function(b,v){return c.isDecoderBuffer(b)||(b=new c(b,v)),this.tree._decode(b,v)},n(y,f),y.prototype._peekTag=function(b,v,_){if(b.isEmpty())return!1;var s=b.save(),o=p(b,'Failed to peek tag: "'+v+'"');return b.isError(o)?o:(b.restore(s),o.tag===v||o.tagStr===v||o.tagStr+"of"===v||_)},y.prototype._decodeTag=function(b,v,_){var s=p(b,'Failed to decode tag of "'+v+'"');if(b.isError(s))return s;var o=m(b,s.primitive,'Failed to get length of "'+v+'"');if(b.isError(o))return o;if(!_&&s.tag!==v&&s.tagStr!==v&&s.tagStr+"of"!==v)return b.error('Failed to match tag: "'+v+'"');if(s.primitive||o!==null)return b.skip(o,'Failed to match body of: "'+v+'"');var h=b.save(),a=this._skipUntilEnd(b,'Failed to skip indefinite length body: "'+this.tag+'"');return b.isError(a)?a:(o=b.offset-h.offset,b.restore(h),b.skip(o,'Failed to match body of: "'+v+'"'))},y.prototype._skipUntilEnd=function(b,v){for(;;){var _=p(b,v);if(b.isError(_))return _;var s=m(b,_.primitive,v);if(b.isError(s))return s;var o=void 0;if(o=_.primitive||s!==null?b.skip(s):this._skipUntilEnd(b,v),b.isError(o))return o;if(_.tagStr==="end")break}},y.prototype._decodeList=function(b,v,_,s){for(var o=[];!b.isEmpty();){var h=this._peekTag(b,"end");if(b.isError(h))return h;var a=_.decode(b,"der",s);if(b.isError(a)&&h)break;o.push(a)}return o},y.prototype._decodeStr=function(b,v){if(v==="bitstr"){var _=b.readUInt8();return b.isError(_)?_:{unused:_,data:b.raw()}}if(v==="bmpstr"){var s=b.raw();if(s.length%2==1)return b.error("Decoding of string type: bmpstr length mismatch");for(var o="",h=0;h<s.length/2;h++)o+=String.fromCharCode(s.readUInt16BE(2*h));return o}if(v==="numstr"){var a=b.raw().toString("ascii");return this._isNumstr(a)?a:b.error("Decoding of string type: numstr unsupported characters")}if(v==="octstr"||v==="objDesc")return b.raw();if(v==="printstr"){var d=b.raw().toString("ascii");return this._isPrintstr(d)?d:b.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(v)?b.raw().toString():b.error("Decoding of string type: "+v+" unsupported")},y.prototype._decodeObjid=function(b,v,_){for(var s,o=[],h=0,a=0;!b.isEmpty();)h<<=7,h|=127&(a=b.readUInt8()),!(128&a)&&(o.push(h),h=0);128&a&&o.push(h);var d=o[0]/40|0,g=o[0]%40;if(s=_?o:[d,g].concat(o.slice(1)),v){var w=v[s.join(" ")];w===void 0&&(w=v[s.join(".")]),w!==void 0&&(s=w)}return s},y.prototype._decodeTime=function(b,v){var _,s,o,h,a,d,g=b.raw().toString();if(v==="gentime")_=0|g.slice(0,4),s=0|g.slice(4,6),o=0|g.slice(6,8),h=0|g.slice(8,10),a=0|g.slice(10,12),d=0|g.slice(12,14);else{if(v!=="utctime")return b.error("Decoding "+v+" time is not supported yet");_=0|g.slice(0,2),s=0|g.slice(2,4),o=0|g.slice(4,6),h=0|g.slice(6,8),a=0|g.slice(8,10),d=0|g.slice(10,12),_=_<70?2e3+_:1900+_}return Date.UTC(_,s-1,o,h,a,d,0)},y.prototype._decodeNull=function(){return null},y.prototype._decodeBool=function(b){var v=b.readUInt8();return b.isError(v)?v:v!==0},y.prototype._decodeInt=function(b,v){var _=b.raw(),s=new i(_);return v&&(s=v[s.toString(10)]||s),s},y.prototype._use=function(b,v){return typeof b=="function"&&(b=b(v)),b._getDecoder("der").tree}},{"../base/buffer":169,"../base/node":171,"../constants/der":173,"bn.js":181,inherits:387}],176:[function(t,r,e){var n=e;n.der=t("./der"),n.pem=t("./pem")},{"./der":175,"./pem":177}],177:[function(t,r,e){var n=t("inherits"),i=t("safer-buffer").Buffer,c=t("./der");function f(l){c.call(this,l),this.enc="pem"}n(f,c),r.exports=f,f.prototype.decode=function(l,u){for(var y=l.toString().split(/[\r\n]+/g),p=u.label.toUpperCase(),m=/^-----(BEGIN|END) ([^-]+)-----$/,b=-1,v=-1,_=0;_<y.length;_++){var s=y[_].match(m);if(s!==null&&s[2]===p){if(b!==-1){if(s[1]!=="END")break;v=_;break}if(s[1]!=="BEGIN")break;b=_}}if(b===-1||v===-1)throw new Error("PEM section not found for: "+p);var o=y.slice(b+1,v).join("");o.replace(/[^a-z0-9+/=]+/gi,"");var h=i.from(o,"base64");return c.prototype.decode.call(this,h,u)}},{"./der":175,inherits:387,"safer-buffer":495}],178:[function(t,r,e){var n=t("inherits"),i=t("safer-buffer").Buffer,c=t("../base/node"),f=t("../constants/der");function l(m){this.enc="der",this.name=m.name,this.entity=m,this.tree=new u,this.tree._init(m.body)}function u(m){c.call(this,"der",m)}function y(m){return m<10?"0"+m:m}function p(m,b,v,_){var s;if(m==="seqof"?m="seq":m==="setof"&&(m="set"),f.tagByName.hasOwnProperty(m))s=f.tagByName[m];else{if(typeof m!="number"||(0|m)!==m)return _.error("Unknown tag: "+m);s=m}return s>=31?_.error("Multi-octet tag encoding unsupported"):(b||(s|=32),s|=f.tagClassByName[v||"universal"]<<6)}r.exports=l,l.prototype.encode=function(m,b){return this.tree._encode(m,b).join()},n(u,c),u.prototype._encodeComposite=function(m,b,v,_){var s=p(m,b,v,this.reporter);if(_.length<128){var o=i.alloc(2);return o[0]=s,o[1]=_.length,this._createEncoderBuffer([o,_])}for(var h=1,a=_.length;a>=256;a>>=8)h++;var d=i.alloc(2+h);d[0]=s,d[1]=128|h;for(var g=1+h,w=_.length;w>0;g--,w>>=8)d[g]=255&w;return this._createEncoderBuffer([d,_])},u.prototype._encodeStr=function(m,b){if(b==="bitstr")return this._createEncoderBuffer([0|m.unused,m.data]);if(b==="bmpstr"){for(var v=i.alloc(2*m.length),_=0;_<m.length;_++)v.writeUInt16BE(m.charCodeAt(_),2*_);return this._createEncoderBuffer(v)}return b==="numstr"?this._isNumstr(m)?this._createEncoderBuffer(m):this.reporter.error("Encoding of string type: numstr supports only digits and space"):b==="printstr"?this._isPrintstr(m)?this._createEncoderBuffer(m):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(b)||b==="objDesc"?this._createEncoderBuffer(m):this.reporter.error("Encoding of string type: "+b+" unsupported")},u.prototype._encodeObjid=function(m,b,v){if(typeof m=="string"){if(!b)return this.reporter.error("string objid given, but no values map found");if(!b.hasOwnProperty(m))return this.reporter.error("objid not found in values map");m=b[m].split(/[\s.]+/g);for(var _=0;_<m.length;_++)m[_]|=0}else if(Array.isArray(m)){m=m.slice();for(var s=0;s<m.length;s++)m[s]|=0}if(!Array.isArray(m))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(m));if(!v){if(m[1]>=40)return this.reporter.error("Second objid identifier OOB");m.splice(0,2,40*m[0]+m[1])}for(var o=0,h=0;h<m.length;h++){var a=m[h];for(o++;a>=128;a>>=7)o++}for(var d=i.alloc(o),g=d.length-1,w=m.length-1;w>=0;w--){var k=m[w];for(d[g--]=127&k;(k>>=7)>0;)d[g--]=128|127&k}return this._createEncoderBuffer(d)},u.prototype._encodeTime=function(m,b){var v,_=new Date(m);return b==="gentime"?v=[y(_.getUTCFullYear()),y(_.getUTCMonth()+1),y(_.getUTCDate()),y(_.getUTCHours()),y(_.getUTCMinutes()),y(_.getUTCSeconds()),"Z"].join(""):b==="utctime"?v=[y(_.getUTCFullYear()%100),y(_.getUTCMonth()+1),y(_.getUTCDate()),y(_.getUTCHours()),y(_.getUTCMinutes()),y(_.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+b+" time is not supported yet"),this._encodeStr(v,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(m,b){if(typeof m=="string"){if(!b)return this.reporter.error("String int or enum given, but no values map");if(!b.hasOwnProperty(m))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(m));m=b[m]}if(typeof m!="number"&&!i.isBuffer(m)){var v=m.toArray();!m.sign&&128&v[0]&&v.unshift(0),m=i.from(v)}if(i.isBuffer(m)){var _=m.length;m.length===0&&_++;var s=i.alloc(_);return m.copy(s),m.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(m<128)return this._createEncoderBuffer(m);if(m<256)return this._createEncoderBuffer([0,m]);for(var o=1,h=m;h>=256;h>>=8)o++;for(var a=new Array(o),d=a.length-1;d>=0;d--)a[d]=255&m,m>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(i.from(a))},u.prototype._encodeBool=function(m){return this._createEncoderBuffer(m?255:0)},u.prototype._use=function(m,b){return typeof m=="function"&&(m=m(b)),m._getEncoder("der").tree},u.prototype._skipDefault=function(m,b,v){var _,s=this._baseState;if(s.default===null)return!1;var o=m.join();if(s.defaultBuffer===void 0&&(s.defaultBuffer=this._encodeValue(s.default,b,v).join()),o.length!==s.defaultBuffer.length)return!1;for(_=0;_<o.length;_++)if(o[_]!==s.defaultBuffer[_])return!1;return!0}},{"../base/node":171,"../constants/der":173,inherits:387,"safer-buffer":495}],179:[function(t,r,e){var n=e;n.der=t("./der"),n.pem=t("./pem")},{"./der":178,"./pem":180}],180:[function(t,r,e){var n=t("inherits"),i=t("./der");function c(f){i.call(this,f),this.enc="pem"}n(c,i),r.exports=c,c.prototype.encode=function(f,l){for(var u=i.prototype.encode.call(this,f).toString("base64"),y=["-----BEGIN "+l.label+"-----"],p=0;p<u.length;p+=64)y.push(u.slice(p,p+64));return y.push("-----END "+l.label+"-----"),y.join(`
|
||
`)}},{"./der":178,inherits:387}],181:[function(t,r,e){function n(i){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(i)}(function(i,c){function f(T,I){if(!T)throw new Error(I||"Assertion failed")}function l(T,I){T.super_=I;var x=function(){};x.prototype=I.prototype,T.prototype=new x,T.prototype.constructor=T}function u(T,I,x){if(u.isBN(T))return T;this.negative=0,this.words=null,this.length=0,this.red=null,T!==null&&(I!=="le"&&I!=="be"||(x=I,I=10),this._init(T||0,I||10,x||"be"))}var y;n(i)==="object"?i.exports=u:c.BN=u,u.BN=u,u.wordSize=26;try{y=t("buffer").Buffer}catch(T){}function p(T,I,x){for(var O=0,R=Math.min(T.length,x),C=I;C<R;C++){var P=T.charCodeAt(C)-48;O<<=4,O|=P>=49&&P<=54?P-49+10:P>=17&&P<=22?P-17+10:15&P}return O}function m(T,I,x,O){for(var R=0,C=Math.min(T.length,x),P=I;P<C;P++){var L=T.charCodeAt(P)-48;R*=O,R+=L>=49?L-49+10:L>=17?L-17+10:L}return R}u.isBN=function(T){return T instanceof u||T!==null&&n(T)==="object"&&T.constructor.wordSize===u.wordSize&&Array.isArray(T.words)},u.max=function(T,I){return T.cmp(I)>0?T:I},u.min=function(T,I){return T.cmp(I)<0?T:I},u.prototype._init=function(T,I,x){if(typeof T=="number")return this._initNumber(T,I,x);if(n(T)==="object")return this._initArray(T,I,x);I==="hex"&&(I=16),f(I===(0|I)&&I>=2&&I<=36);var O=0;(T=T.toString().replace(/\s+/g,""))[0]==="-"&&O++,I===16?this._parseHex(T,O):this._parseBase(T,I,O),T[0]==="-"&&(this.negative=1),this.strip(),x==="le"&&this._initArray(this.toArray(),I,x)},u.prototype._initNumber=function(T,I,x){T<0&&(this.negative=1,T=-T),T<67108864?(this.words=[67108863&T],this.length=1):T<4503599627370496?(this.words=[67108863&T,T/67108864&67108863],this.length=2):(f(T<9007199254740992),this.words=[67108863&T,T/67108864&67108863,1],this.length=3),x==="le"&&this._initArray(this.toArray(),I,x)},u.prototype._initArray=function(T,I,x){if(f(typeof T.length=="number"),T.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(T.length/3),this.words=new Array(this.length);for(var O=0;O<this.length;O++)this.words[O]=0;var R,C,P=0;if(x==="be")for(O=T.length-1,R=0;O>=0;O-=3)C=T[O]|T[O-1]<<8|T[O-2]<<16,this.words[R]|=C<<P&67108863,this.words[R+1]=C>>>26-P&67108863,(P+=24)>=26&&(P-=26,R++);else if(x==="le")for(O=0,R=0;O<T.length;O+=3)C=T[O]|T[O+1]<<8|T[O+2]<<16,this.words[R]|=C<<P&67108863,this.words[R+1]=C>>>26-P&67108863,(P+=24)>=26&&(P-=26,R++);return this.strip()},u.prototype._parseHex=function(T,I){this.length=Math.ceil((T.length-I)/6),this.words=new Array(this.length);for(var x=0;x<this.length;x++)this.words[x]=0;var O,R,C=0;for(x=T.length-6,O=0;x>=I;x-=6)R=p(T,x,x+6),this.words[O]|=R<<C&67108863,this.words[O+1]|=R>>>26-C&4194303,(C+=24)>=26&&(C-=26,O++);x+6!==I&&(R=p(T,I,x+6),this.words[O]|=R<<C&67108863,this.words[O+1]|=R>>>26-C&4194303),this.strip()},u.prototype._parseBase=function(T,I,x){this.words=[0],this.length=1;for(var O=0,R=1;R<=67108863;R*=I)O++;O--,R=R/I|0;for(var C=T.length-x,P=C%O,L=Math.min(C,C-P)+x,H=0,U=x;U<L;U+=O)H=m(T,U,U+O,I),this.imuln(R),this.words[0]+H<67108864?this.words[0]+=H:this._iaddn(H);if(P!==0){var B=1;for(H=m(T,U,T.length,I),U=0;U<P;U++)B*=I;this.imuln(B),this.words[0]+H<67108864?this.words[0]+=H:this._iaddn(H)}},u.prototype.copy=function(T){T.words=new Array(this.length);for(var I=0;I<this.length;I++)T.words[I]=this.words[I];T.length=this.length,T.negative=this.negative,T.red=this.red},u.prototype.clone=function(){var T=new u(null);return this.copy(T),T},u.prototype._expand=function(T){for(;this.length<T;)this.words[this.length++]=0;return this},u.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},u.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var b=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],_=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function s(T){for(var I=new Array(T.bitLength()),x=0;x<I.length;x++){var O=x/26|0,R=x%26;I[x]=(T.words[O]&1<<R)>>>R}return I}function o(T,I,x){x.negative=I.negative^T.negative;var O=T.length+I.length|0;x.length=O,O=O-1|0;var R=0|T.words[0],C=0|I.words[0],P=R*C,L=67108863&P,H=P/67108864|0;x.words[0]=L;for(var U=1;U<O;U++){for(var B=H>>>26,W=67108863&H,X=Math.min(U,I.length-1),et=Math.max(0,U-T.length+1);et<=X;et++){var ft=U-et|0;B+=(P=(R=0|T.words[ft])*(C=0|I.words[et])+W)/67108864|0,W=67108863&P}x.words[U]=0|W,H=0|B}return H!==0?x.words[U]=0|H:x.length--,x.strip()}u.prototype.toString=function(T,I){var x;if(I=0|I||1,(T=T||10)===16||T==="hex"){x="";for(var O=0,R=0,C=0;C<this.length;C++){var P=this.words[C],L=(16777215&(P<<O|R)).toString(16);x=(R=P>>>24-O&16777215)!=0||C!==this.length-1?b[6-L.length]+L+x:L+x,(O+=2)>=26&&(O-=26,C--)}for(R!==0&&(x=R.toString(16)+x);x.length%I!=0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}if(T===(0|T)&&T>=2&&T<=36){var H=v[T],U=_[T];x="";var B=this.clone();for(B.negative=0;!B.isZero();){var W=B.modn(U).toString(T);x=(B=B.idivn(U)).isZero()?W+x:b[H-W.length]+W+x}for(this.isZero()&&(x="0"+x);x.length%I!=0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}f(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var T=this.words[0];return this.length===2?T+=67108864*this.words[1]:this.length===3&&this.words[2]===1?T+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-T:T},u.prototype.toJSON=function(){return this.toString(16)},u.prototype.toBuffer=function(T,I){return f(y!==void 0),this.toArrayLike(y,T,I)},u.prototype.toArray=function(T,I){return this.toArrayLike(Array,T,I)},u.prototype.toArrayLike=function(T,I,x){var O=this.byteLength(),R=x||Math.max(1,O);f(O<=R,"byte array longer than desired length"),f(R>0,"Requested array length <= 0"),this.strip();var C,P,L=I==="le",H=new T(R),U=this.clone();if(L){for(P=0;!U.isZero();P++)C=U.andln(255),U.iushrn(8),H[P]=C;for(;P<R;P++)H[P]=0}else{for(P=0;P<R-O;P++)H[P]=0;for(P=0;!U.isZero();P++)C=U.andln(255),U.iushrn(8),H[R-P-1]=C}return H},Math.clz32?u.prototype._countBits=function(T){return 32-Math.clz32(T)}:u.prototype._countBits=function(T){var I=T,x=0;return I>=4096&&(x+=13,I>>>=13),I>=64&&(x+=7,I>>>=7),I>=8&&(x+=4,I>>>=4),I>=2&&(x+=2,I>>>=2),x+I},u.prototype._zeroBits=function(T){if(T===0)return 26;var I=T,x=0;return!(8191&I)&&(x+=13,I>>>=13),!(127&I)&&(x+=7,I>>>=7),!(15&I)&&(x+=4,I>>>=4),!(3&I)&&(x+=2,I>>>=2),!(1&I)&&x++,x},u.prototype.bitLength=function(){var T=this.words[this.length-1],I=this._countBits(T);return 26*(this.length-1)+I},u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var T=0,I=0;I<this.length;I++){var x=this._zeroBits(this.words[I]);if(T+=x,x!==26)break}return T},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(T){return this.negative!==0?this.abs().inotn(T).iaddn(1):this.clone()},u.prototype.fromTwos=function(T){return this.testn(T-1)?this.notn(T).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(T){for(;this.length<T.length;)this.words[this.length++]=0;for(var I=0;I<T.length;I++)this.words[I]=this.words[I]|T.words[I];return this.strip()},u.prototype.ior=function(T){return f((this.negative|T.negative)==0),this.iuor(T)},u.prototype.or=function(T){return this.length>T.length?this.clone().ior(T):T.clone().ior(this)},u.prototype.uor=function(T){return this.length>T.length?this.clone().iuor(T):T.clone().iuor(this)},u.prototype.iuand=function(T){var I;I=this.length>T.length?T:this;for(var x=0;x<I.length;x++)this.words[x]=this.words[x]&T.words[x];return this.length=I.length,this.strip()},u.prototype.iand=function(T){return f((this.negative|T.negative)==0),this.iuand(T)},u.prototype.and=function(T){return this.length>T.length?this.clone().iand(T):T.clone().iand(this)},u.prototype.uand=function(T){return this.length>T.length?this.clone().iuand(T):T.clone().iuand(this)},u.prototype.iuxor=function(T){var I,x;this.length>T.length?(I=this,x=T):(I=T,x=this);for(var O=0;O<x.length;O++)this.words[O]=I.words[O]^x.words[O];if(this!==I)for(;O<I.length;O++)this.words[O]=I.words[O];return this.length=I.length,this.strip()},u.prototype.ixor=function(T){return f((this.negative|T.negative)==0),this.iuxor(T)},u.prototype.xor=function(T){return this.length>T.length?this.clone().ixor(T):T.clone().ixor(this)},u.prototype.uxor=function(T){return this.length>T.length?this.clone().iuxor(T):T.clone().iuxor(this)},u.prototype.inotn=function(T){f(typeof T=="number"&&T>=0);var I=0|Math.ceil(T/26),x=T%26;this._expand(I),x>0&&I--;for(var O=0;O<I;O++)this.words[O]=67108863&~this.words[O];return x>0&&(this.words[O]=~this.words[O]&67108863>>26-x),this.strip()},u.prototype.notn=function(T){return this.clone().inotn(T)},u.prototype.setn=function(T,I){f(typeof T=="number"&&T>=0);var x=T/26|0,O=T%26;return this._expand(x+1),this.words[x]=I?this.words[x]|1<<O:this.words[x]&~(1<<O),this.strip()},u.prototype.iadd=function(T){var I,x,O;if(this.negative!==0&&T.negative===0)return this.negative=0,I=this.isub(T),this.negative^=1,this._normSign();if(this.negative===0&&T.negative!==0)return T.negative=0,I=this.isub(T),T.negative=1,I._normSign();this.length>T.length?(x=this,O=T):(x=T,O=this);for(var R=0,C=0;C<O.length;C++)I=(0|x.words[C])+(0|O.words[C])+R,this.words[C]=67108863&I,R=I>>>26;for(;R!==0&&C<x.length;C++)I=(0|x.words[C])+R,this.words[C]=67108863&I,R=I>>>26;if(this.length=x.length,R!==0)this.words[this.length]=R,this.length++;else if(x!==this)for(;C<x.length;C++)this.words[C]=x.words[C];return this},u.prototype.add=function(T){var I;return T.negative!==0&&this.negative===0?(T.negative=0,I=this.sub(T),T.negative^=1,I):T.negative===0&&this.negative!==0?(this.negative=0,I=T.sub(this),this.negative=1,I):this.length>T.length?this.clone().iadd(T):T.clone().iadd(this)},u.prototype.isub=function(T){if(T.negative!==0){T.negative=0;var I=this.iadd(T);return T.negative=1,I._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(T),this.negative=1,this._normSign();var x,O,R=this.cmp(T);if(R===0)return this.negative=0,this.length=1,this.words[0]=0,this;R>0?(x=this,O=T):(x=T,O=this);for(var C=0,P=0;P<O.length;P++)C=(I=(0|x.words[P])-(0|O.words[P])+C)>>26,this.words[P]=67108863&I;for(;C!==0&&P<x.length;P++)C=(I=(0|x.words[P])+C)>>26,this.words[P]=67108863&I;if(C===0&&P<x.length&&x!==this)for(;P<x.length;P++)this.words[P]=x.words[P];return this.length=Math.max(this.length,P),x!==this&&(this.negative=1),this.strip()},u.prototype.sub=function(T){return this.clone().isub(T)};var h=function(T,I,x){var O,R,C,P=T.words,L=I.words,H=x.words,U=0,B=0|P[0],W=8191&B,X=B>>>13,et=0|P[1],ft=8191&et,gt=et>>>13,bt=0|P[2],rt=8191&bt,Q=bt>>>13,K=0|P[3],nt=8191&K,At=K>>>13,ot=0|P[4],ut=8191&ot,Mt=ot>>>13,Bt=0|P[5],G=8191&Bt,Z=Bt>>>13,J=0|P[6],St=8191&J,It=J>>>13,Ft=0|P[7],Xt=8191&Ft,me=Ft>>>13,fe=0|P[8],Kt=8191&fe,ie=fe>>>13,ct=0|P[9],pt=8191&ct,_t=ct>>>13,vt=0|L[0],Y=8191&vt,ht=vt>>>13,at=0|L[1],it=8191&at,q=at>>>13,wt=0|L[2],Pt=8191&wt,V=wt>>>13,Rt=0|L[3],mt=8191&Rt,dt=Rt>>>13,Tt=0|L[4],Ot=8191&Tt,qt=Tt>>>13,Lt=0|L[5],Ht=8191&Lt,le=Lt>>>13,Ce=0|L[6],Zt=8191&Ce,ae=Ce>>>13,he=0|L[7],Wt=8191&he,pe=he>>>13,Se=0|L[8],de=8191&Se,ge=Se>>>13,Fe=0|L[9],re=8191&Fe,Ae=Fe>>>13;x.negative=T.negative^I.negative,x.length=19;var De=(U+(O=Math.imul(W,Y))|0)+((8191&(R=(R=Math.imul(W,ht))+Math.imul(X,Y)|0))<<13)|0;U=((C=Math.imul(X,ht))+(R>>>13)|0)+(De>>>26)|0,De&=67108863,O=Math.imul(ft,Y),R=(R=Math.imul(ft,ht))+Math.imul(gt,Y)|0,C=Math.imul(gt,ht);var Ue=(U+(O=O+Math.imul(W,it)|0)|0)+((8191&(R=(R=R+Math.imul(W,q)|0)+Math.imul(X,it)|0))<<13)|0;U=((C=C+Math.imul(X,q)|0)+(R>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,O=Math.imul(rt,Y),R=(R=Math.imul(rt,ht))+Math.imul(Q,Y)|0,C=Math.imul(Q,ht),O=O+Math.imul(ft,it)|0,R=(R=R+Math.imul(ft,q)|0)+Math.imul(gt,it)|0,C=C+Math.imul(gt,q)|0;var Sr=(U+(O=O+Math.imul(W,Pt)|0)|0)+((8191&(R=(R=R+Math.imul(W,V)|0)+Math.imul(X,Pt)|0))<<13)|0;U=((C=C+Math.imul(X,V)|0)+(R>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,O=Math.imul(nt,Y),R=(R=Math.imul(nt,ht))+Math.imul(At,Y)|0,C=Math.imul(At,ht),O=O+Math.imul(rt,it)|0,R=(R=R+Math.imul(rt,q)|0)+Math.imul(Q,it)|0,C=C+Math.imul(Q,q)|0,O=O+Math.imul(ft,Pt)|0,R=(R=R+Math.imul(ft,V)|0)+Math.imul(gt,Pt)|0,C=C+Math.imul(gt,V)|0;var ir=(U+(O=O+Math.imul(W,mt)|0)|0)+((8191&(R=(R=R+Math.imul(W,dt)|0)+Math.imul(X,mt)|0))<<13)|0;U=((C=C+Math.imul(X,dt)|0)+(R>>>13)|0)+(ir>>>26)|0,ir&=67108863,O=Math.imul(ut,Y),R=(R=Math.imul(ut,ht))+Math.imul(Mt,Y)|0,C=Math.imul(Mt,ht),O=O+Math.imul(nt,it)|0,R=(R=R+Math.imul(nt,q)|0)+Math.imul(At,it)|0,C=C+Math.imul(At,q)|0,O=O+Math.imul(rt,Pt)|0,R=(R=R+Math.imul(rt,V)|0)+Math.imul(Q,Pt)|0,C=C+Math.imul(Q,V)|0,O=O+Math.imul(ft,mt)|0,R=(R=R+Math.imul(ft,dt)|0)+Math.imul(gt,mt)|0,C=C+Math.imul(gt,dt)|0;var $e=(U+(O=O+Math.imul(W,Ot)|0)|0)+((8191&(R=(R=R+Math.imul(W,qt)|0)+Math.imul(X,Ot)|0))<<13)|0;U=((C=C+Math.imul(X,qt)|0)+(R>>>13)|0)+($e>>>26)|0,$e&=67108863,O=Math.imul(G,Y),R=(R=Math.imul(G,ht))+Math.imul(Z,Y)|0,C=Math.imul(Z,ht),O=O+Math.imul(ut,it)|0,R=(R=R+Math.imul(ut,q)|0)+Math.imul(Mt,it)|0,C=C+Math.imul(Mt,q)|0,O=O+Math.imul(nt,Pt)|0,R=(R=R+Math.imul(nt,V)|0)+Math.imul(At,Pt)|0,C=C+Math.imul(At,V)|0,O=O+Math.imul(rt,mt)|0,R=(R=R+Math.imul(rt,dt)|0)+Math.imul(Q,mt)|0,C=C+Math.imul(Q,dt)|0,O=O+Math.imul(ft,Ot)|0,R=(R=R+Math.imul(ft,qt)|0)+Math.imul(gt,Ot)|0,C=C+Math.imul(gt,qt)|0;var ii=(U+(O=O+Math.imul(W,Ht)|0)|0)+((8191&(R=(R=R+Math.imul(W,le)|0)+Math.imul(X,Ht)|0))<<13)|0;U=((C=C+Math.imul(X,le)|0)+(R>>>13)|0)+(ii>>>26)|0,ii&=67108863,O=Math.imul(St,Y),R=(R=Math.imul(St,ht))+Math.imul(It,Y)|0,C=Math.imul(It,ht),O=O+Math.imul(G,it)|0,R=(R=R+Math.imul(G,q)|0)+Math.imul(Z,it)|0,C=C+Math.imul(Z,q)|0,O=O+Math.imul(ut,Pt)|0,R=(R=R+Math.imul(ut,V)|0)+Math.imul(Mt,Pt)|0,C=C+Math.imul(Mt,V)|0,O=O+Math.imul(nt,mt)|0,R=(R=R+Math.imul(nt,dt)|0)+Math.imul(At,mt)|0,C=C+Math.imul(At,dt)|0,O=O+Math.imul(rt,Ot)|0,R=(R=R+Math.imul(rt,qt)|0)+Math.imul(Q,Ot)|0,C=C+Math.imul(Q,qt)|0,O=O+Math.imul(ft,Ht)|0,R=(R=R+Math.imul(ft,le)|0)+Math.imul(gt,Ht)|0,C=C+Math.imul(gt,le)|0;var oi=(U+(O=O+Math.imul(W,Zt)|0)|0)+((8191&(R=(R=R+Math.imul(W,ae)|0)+Math.imul(X,Zt)|0))<<13)|0;U=((C=C+Math.imul(X,ae)|0)+(R>>>13)|0)+(oi>>>26)|0,oi&=67108863,O=Math.imul(Xt,Y),R=(R=Math.imul(Xt,ht))+Math.imul(me,Y)|0,C=Math.imul(me,ht),O=O+Math.imul(St,it)|0,R=(R=R+Math.imul(St,q)|0)+Math.imul(It,it)|0,C=C+Math.imul(It,q)|0,O=O+Math.imul(G,Pt)|0,R=(R=R+Math.imul(G,V)|0)+Math.imul(Z,Pt)|0,C=C+Math.imul(Z,V)|0,O=O+Math.imul(ut,mt)|0,R=(R=R+Math.imul(ut,dt)|0)+Math.imul(Mt,mt)|0,C=C+Math.imul(Mt,dt)|0,O=O+Math.imul(nt,Ot)|0,R=(R=R+Math.imul(nt,qt)|0)+Math.imul(At,Ot)|0,C=C+Math.imul(At,qt)|0,O=O+Math.imul(rt,Ht)|0,R=(R=R+Math.imul(rt,le)|0)+Math.imul(Q,Ht)|0,C=C+Math.imul(Q,le)|0,O=O+Math.imul(ft,Zt)|0,R=(R=R+Math.imul(ft,ae)|0)+Math.imul(gt,Zt)|0,C=C+Math.imul(gt,ae)|0;var Zr=(U+(O=O+Math.imul(W,Wt)|0)|0)+((8191&(R=(R=R+Math.imul(W,pe)|0)+Math.imul(X,Wt)|0))<<13)|0;U=((C=C+Math.imul(X,pe)|0)+(R>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,O=Math.imul(Kt,Y),R=(R=Math.imul(Kt,ht))+Math.imul(ie,Y)|0,C=Math.imul(ie,ht),O=O+Math.imul(Xt,it)|0,R=(R=R+Math.imul(Xt,q)|0)+Math.imul(me,it)|0,C=C+Math.imul(me,q)|0,O=O+Math.imul(St,Pt)|0,R=(R=R+Math.imul(St,V)|0)+Math.imul(It,Pt)|0,C=C+Math.imul(It,V)|0,O=O+Math.imul(G,mt)|0,R=(R=R+Math.imul(G,dt)|0)+Math.imul(Z,mt)|0,C=C+Math.imul(Z,dt)|0,O=O+Math.imul(ut,Ot)|0,R=(R=R+Math.imul(ut,qt)|0)+Math.imul(Mt,Ot)|0,C=C+Math.imul(Mt,qt)|0,O=O+Math.imul(nt,Ht)|0,R=(R=R+Math.imul(nt,le)|0)+Math.imul(At,Ht)|0,C=C+Math.imul(At,le)|0,O=O+Math.imul(rt,Zt)|0,R=(R=R+Math.imul(rt,ae)|0)+Math.imul(Q,Zt)|0,C=C+Math.imul(Q,ae)|0,O=O+Math.imul(ft,Wt)|0,R=(R=R+Math.imul(ft,pe)|0)+Math.imul(gt,Wt)|0,C=C+Math.imul(gt,pe)|0;var Br=(U+(O=O+Math.imul(W,de)|0)|0)+((8191&(R=(R=R+Math.imul(W,ge)|0)+Math.imul(X,de)|0))<<13)|0;U=((C=C+Math.imul(X,ge)|0)+(R>>>13)|0)+(Br>>>26)|0,Br&=67108863,O=Math.imul(pt,Y),R=(R=Math.imul(pt,ht))+Math.imul(_t,Y)|0,C=Math.imul(_t,ht),O=O+Math.imul(Kt,it)|0,R=(R=R+Math.imul(Kt,q)|0)+Math.imul(ie,it)|0,C=C+Math.imul(ie,q)|0,O=O+Math.imul(Xt,Pt)|0,R=(R=R+Math.imul(Xt,V)|0)+Math.imul(me,Pt)|0,C=C+Math.imul(me,V)|0,O=O+Math.imul(St,mt)|0,R=(R=R+Math.imul(St,dt)|0)+Math.imul(It,mt)|0,C=C+Math.imul(It,dt)|0,O=O+Math.imul(G,Ot)|0,R=(R=R+Math.imul(G,qt)|0)+Math.imul(Z,Ot)|0,C=C+Math.imul(Z,qt)|0,O=O+Math.imul(ut,Ht)|0,R=(R=R+Math.imul(ut,le)|0)+Math.imul(Mt,Ht)|0,C=C+Math.imul(Mt,le)|0,O=O+Math.imul(nt,Zt)|0,R=(R=R+Math.imul(nt,ae)|0)+Math.imul(At,Zt)|0,C=C+Math.imul(At,ae)|0,O=O+Math.imul(rt,Wt)|0,R=(R=R+Math.imul(rt,pe)|0)+Math.imul(Q,Wt)|0,C=C+Math.imul(Q,pe)|0,O=O+Math.imul(ft,de)|0,R=(R=R+Math.imul(ft,ge)|0)+Math.imul(gt,de)|0,C=C+Math.imul(gt,ge)|0;var On=(U+(O=O+Math.imul(W,re)|0)|0)+((8191&(R=(R=R+Math.imul(W,Ae)|0)+Math.imul(X,re)|0))<<13)|0;U=((C=C+Math.imul(X,Ae)|0)+(R>>>13)|0)+(On>>>26)|0,On&=67108863,O=Math.imul(pt,it),R=(R=Math.imul(pt,q))+Math.imul(_t,it)|0,C=Math.imul(_t,q),O=O+Math.imul(Kt,Pt)|0,R=(R=R+Math.imul(Kt,V)|0)+Math.imul(ie,Pt)|0,C=C+Math.imul(ie,V)|0,O=O+Math.imul(Xt,mt)|0,R=(R=R+Math.imul(Xt,dt)|0)+Math.imul(me,mt)|0,C=C+Math.imul(me,dt)|0,O=O+Math.imul(St,Ot)|0,R=(R=R+Math.imul(St,qt)|0)+Math.imul(It,Ot)|0,C=C+Math.imul(It,qt)|0,O=O+Math.imul(G,Ht)|0,R=(R=R+Math.imul(G,le)|0)+Math.imul(Z,Ht)|0,C=C+Math.imul(Z,le)|0,O=O+Math.imul(ut,Zt)|0,R=(R=R+Math.imul(ut,ae)|0)+Math.imul(Mt,Zt)|0,C=C+Math.imul(Mt,ae)|0,O=O+Math.imul(nt,Wt)|0,R=(R=R+Math.imul(nt,pe)|0)+Math.imul(At,Wt)|0,C=C+Math.imul(At,pe)|0,O=O+Math.imul(rt,de)|0,R=(R=R+Math.imul(rt,ge)|0)+Math.imul(Q,de)|0,C=C+Math.imul(Q,ge)|0;var Dn=(U+(O=O+Math.imul(ft,re)|0)|0)+((8191&(R=(R=R+Math.imul(ft,Ae)|0)+Math.imul(gt,re)|0))<<13)|0;U=((C=C+Math.imul(gt,Ae)|0)+(R>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,O=Math.imul(pt,Pt),R=(R=Math.imul(pt,V))+Math.imul(_t,Pt)|0,C=Math.imul(_t,V),O=O+Math.imul(Kt,mt)|0,R=(R=R+Math.imul(Kt,dt)|0)+Math.imul(ie,mt)|0,C=C+Math.imul(ie,dt)|0,O=O+Math.imul(Xt,Ot)|0,R=(R=R+Math.imul(Xt,qt)|0)+Math.imul(me,Ot)|0,C=C+Math.imul(me,qt)|0,O=O+Math.imul(St,Ht)|0,R=(R=R+Math.imul(St,le)|0)+Math.imul(It,Ht)|0,C=C+Math.imul(It,le)|0,O=O+Math.imul(G,Zt)|0,R=(R=R+Math.imul(G,ae)|0)+Math.imul(Z,Zt)|0,C=C+Math.imul(Z,ae)|0,O=O+Math.imul(ut,Wt)|0,R=(R=R+Math.imul(ut,pe)|0)+Math.imul(Mt,Wt)|0,C=C+Math.imul(Mt,pe)|0,O=O+Math.imul(nt,de)|0,R=(R=R+Math.imul(nt,ge)|0)+Math.imul(At,de)|0,C=C+Math.imul(At,ge)|0;var Xn=(U+(O=O+Math.imul(rt,re)|0)|0)+((8191&(R=(R=R+Math.imul(rt,Ae)|0)+Math.imul(Q,re)|0))<<13)|0;U=((C=C+Math.imul(Q,Ae)|0)+(R>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,O=Math.imul(pt,mt),R=(R=Math.imul(pt,dt))+Math.imul(_t,mt)|0,C=Math.imul(_t,dt),O=O+Math.imul(Kt,Ot)|0,R=(R=R+Math.imul(Kt,qt)|0)+Math.imul(ie,Ot)|0,C=C+Math.imul(ie,qt)|0,O=O+Math.imul(Xt,Ht)|0,R=(R=R+Math.imul(Xt,le)|0)+Math.imul(me,Ht)|0,C=C+Math.imul(me,le)|0,O=O+Math.imul(St,Zt)|0,R=(R=R+Math.imul(St,ae)|0)+Math.imul(It,Zt)|0,C=C+Math.imul(It,ae)|0,O=O+Math.imul(G,Wt)|0,R=(R=R+Math.imul(G,pe)|0)+Math.imul(Z,Wt)|0,C=C+Math.imul(Z,pe)|0,O=O+Math.imul(ut,de)|0,R=(R=R+Math.imul(ut,ge)|0)+Math.imul(Mt,de)|0,C=C+Math.imul(Mt,ge)|0;var ai=(U+(O=O+Math.imul(nt,re)|0)|0)+((8191&(R=(R=R+Math.imul(nt,Ae)|0)+Math.imul(At,re)|0))<<13)|0;U=((C=C+Math.imul(At,Ae)|0)+(R>>>13)|0)+(ai>>>26)|0,ai&=67108863,O=Math.imul(pt,Ot),R=(R=Math.imul(pt,qt))+Math.imul(_t,Ot)|0,C=Math.imul(_t,qt),O=O+Math.imul(Kt,Ht)|0,R=(R=R+Math.imul(Kt,le)|0)+Math.imul(ie,Ht)|0,C=C+Math.imul(ie,le)|0,O=O+Math.imul(Xt,Zt)|0,R=(R=R+Math.imul(Xt,ae)|0)+Math.imul(me,Zt)|0,C=C+Math.imul(me,ae)|0,O=O+Math.imul(St,Wt)|0,R=(R=R+Math.imul(St,pe)|0)+Math.imul(It,Wt)|0,C=C+Math.imul(It,pe)|0,O=O+Math.imul(G,de)|0,R=(R=R+Math.imul(G,ge)|0)+Math.imul(Z,de)|0,C=C+Math.imul(Z,ge)|0;var Oe=(U+(O=O+Math.imul(ut,re)|0)|0)+((8191&(R=(R=R+Math.imul(ut,Ae)|0)+Math.imul(Mt,re)|0))<<13)|0;U=((C=C+Math.imul(Mt,Ae)|0)+(R>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,O=Math.imul(pt,Ht),R=(R=Math.imul(pt,le))+Math.imul(_t,Ht)|0,C=Math.imul(_t,le),O=O+Math.imul(Kt,Zt)|0,R=(R=R+Math.imul(Kt,ae)|0)+Math.imul(ie,Zt)|0,C=C+Math.imul(ie,ae)|0,O=O+Math.imul(Xt,Wt)|0,R=(R=R+Math.imul(Xt,pe)|0)+Math.imul(me,Wt)|0,C=C+Math.imul(me,pe)|0,O=O+Math.imul(St,de)|0,R=(R=R+Math.imul(St,ge)|0)+Math.imul(It,de)|0,C=C+Math.imul(It,ge)|0;var kt=(U+(O=O+Math.imul(G,re)|0)|0)+((8191&(R=(R=R+Math.imul(G,Ae)|0)+Math.imul(Z,re)|0))<<13)|0;U=((C=C+Math.imul(Z,Ae)|0)+(R>>>13)|0)+(kt>>>26)|0,kt&=67108863,O=Math.imul(pt,Zt),R=(R=Math.imul(pt,ae))+Math.imul(_t,Zt)|0,C=Math.imul(_t,ae),O=O+Math.imul(Kt,Wt)|0,R=(R=R+Math.imul(Kt,pe)|0)+Math.imul(ie,Wt)|0,C=C+Math.imul(ie,pe)|0,O=O+Math.imul(Xt,de)|0,R=(R=R+Math.imul(Xt,ge)|0)+Math.imul(me,de)|0,C=C+Math.imul(me,ge)|0;var Dt=(U+(O=O+Math.imul(St,re)|0)|0)+((8191&(R=(R=R+Math.imul(St,Ae)|0)+Math.imul(It,re)|0))<<13)|0;U=((C=C+Math.imul(It,Ae)|0)+(R>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,O=Math.imul(pt,Wt),R=(R=Math.imul(pt,pe))+Math.imul(_t,Wt)|0,C=Math.imul(_t,pe),O=O+Math.imul(Kt,de)|0,R=(R=R+Math.imul(Kt,ge)|0)+Math.imul(ie,de)|0,C=C+Math.imul(ie,ge)|0;var Nt=(U+(O=O+Math.imul(Xt,re)|0)|0)+((8191&(R=(R=R+Math.imul(Xt,Ae)|0)+Math.imul(me,re)|0))<<13)|0;U=((C=C+Math.imul(me,Ae)|0)+(R>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,O=Math.imul(pt,de),R=(R=Math.imul(pt,ge))+Math.imul(_t,de)|0,C=Math.imul(_t,ge);var ye=(U+(O=O+Math.imul(Kt,re)|0)|0)+((8191&(R=(R=R+Math.imul(Kt,Ae)|0)+Math.imul(ie,re)|0))<<13)|0;U=((C=C+Math.imul(ie,Ae)|0)+(R>>>13)|0)+(ye>>>26)|0,ye&=67108863;var Le=(U+(O=Math.imul(pt,re))|0)+((8191&(R=(R=Math.imul(pt,Ae))+Math.imul(_t,re)|0))<<13)|0;return U=((C=Math.imul(_t,Ae))+(R>>>13)|0)+(Le>>>26)|0,Le&=67108863,H[0]=De,H[1]=Ue,H[2]=Sr,H[3]=ir,H[4]=$e,H[5]=ii,H[6]=oi,H[7]=Zr,H[8]=Br,H[9]=On,H[10]=Dn,H[11]=Xn,H[12]=ai,H[13]=Oe,H[14]=kt,H[15]=Dt,H[16]=Nt,H[17]=ye,H[18]=Le,U!==0&&(H[19]=U,x.length++),x};function a(T,I,x){x.negative=I.negative^T.negative,x.length=T.length+I.length;for(var O=0,R=0,C=0;C<x.length-1;C++){var P=R;R=0;for(var L=67108863&O,H=Math.min(C,I.length-1),U=Math.max(0,C-T.length+1);U<=H;U++){var B=C-U,W=(0|T.words[B])*(0|I.words[U]),X=67108863&W;L=67108863&(X=X+L|0),R+=(P=(P=P+(W/67108864|0)|0)+(X>>>26)|0)>>>26,P&=67108863}x.words[C]=L,O=P,P=R}return O!==0?x.words[C]=O:x.length--,x.strip()}function d(T,I,x){return new g().mulp(T,I,x)}function g(T,I){this.x=T,this.y=I}Math.imul||(h=o),u.prototype.mulTo=function(T,I){var x=this.length+T.length;return this.length===10&&T.length===10?h(this,T,I):x<63?o(this,T,I):x<1024?a(this,T,I):d(this,T,I)},g.prototype.makeRBT=function(T){for(var I=new Array(T),x=u.prototype._countBits(T)-1,O=0;O<T;O++)I[O]=this.revBin(O,x,T);return I},g.prototype.revBin=function(T,I,x){if(T===0||T===x-1)return T;for(var O=0,R=0;R<I;R++)O|=(1&T)<<I-R-1,T>>=1;return O},g.prototype.permute=function(T,I,x,O,R,C){for(var P=0;P<C;P++)O[P]=I[T[P]],R[P]=x[T[P]]},g.prototype.transform=function(T,I,x,O,R,C){this.permute(C,T,I,x,O,R);for(var P=1;P<R;P<<=1)for(var L=P<<1,H=Math.cos(2*Math.PI/L),U=Math.sin(2*Math.PI/L),B=0;B<R;B+=L)for(var W=H,X=U,et=0;et<P;et++){var ft=x[B+et],gt=O[B+et],bt=x[B+et+P],rt=O[B+et+P],Q=W*bt-X*rt;rt=W*rt+X*bt,bt=Q,x[B+et]=ft+bt,O[B+et]=gt+rt,x[B+et+P]=ft-bt,O[B+et+P]=gt-rt,et!==L&&(Q=H*W-U*X,X=H*X+U*W,W=Q)}},g.prototype.guessLen13b=function(T,I){var x=1|Math.max(I,T),O=1&x,R=0;for(x=x/2|0;x;x>>>=1)R++;return 1<<R+1+O},g.prototype.conjugate=function(T,I,x){if(!(x<=1))for(var O=0;O<x/2;O++){var R=T[O];T[O]=T[x-O-1],T[x-O-1]=R,R=I[O],I[O]=-I[x-O-1],I[x-O-1]=-R}},g.prototype.normalize13b=function(T,I){for(var x=0,O=0;O<I/2;O++){var R=8192*Math.round(T[2*O+1]/I)+Math.round(T[2*O]/I)+x;T[O]=67108863&R,x=R<67108864?0:R/67108864|0}return T},g.prototype.convert13b=function(T,I,x,O){for(var R=0,C=0;C<I;C++)R+=0|T[C],x[2*C]=8191&R,R>>>=13,x[2*C+1]=8191&R,R>>>=13;for(C=2*I;C<O;++C)x[C]=0;f(R===0),f((-8192&R)==0)},g.prototype.stub=function(T){for(var I=new Array(T),x=0;x<T;x++)I[x]=0;return I},g.prototype.mulp=function(T,I,x){var O=2*this.guessLen13b(T.length,I.length),R=this.makeRBT(O),C=this.stub(O),P=new Array(O),L=new Array(O),H=new Array(O),U=new Array(O),B=new Array(O),W=new Array(O),X=x.words;X.length=O,this.convert13b(T.words,T.length,P,O),this.convert13b(I.words,I.length,U,O),this.transform(P,C,L,H,O,R),this.transform(U,C,B,W,O,R);for(var et=0;et<O;et++){var ft=L[et]*B[et]-H[et]*W[et];H[et]=L[et]*W[et]+H[et]*B[et],L[et]=ft}return this.conjugate(L,H,O),this.transform(L,H,X,C,O,R),this.conjugate(X,C,O),this.normalize13b(X,O),x.negative=T.negative^I.negative,x.length=T.length+I.length,x.strip()},u.prototype.mul=function(T){var I=new u(null);return I.words=new Array(this.length+T.length),this.mulTo(T,I)},u.prototype.mulf=function(T){var I=new u(null);return I.words=new Array(this.length+T.length),d(this,T,I)},u.prototype.imul=function(T){return this.clone().mulTo(T,this)},u.prototype.imuln=function(T){f(typeof T=="number"),f(T<67108864);for(var I=0,x=0;x<this.length;x++){var O=(0|this.words[x])*T,R=(67108863&O)+(67108863&I);I>>=26,I+=O/67108864|0,I+=R>>>26,this.words[x]=67108863&R}return I!==0&&(this.words[x]=I,this.length++),this},u.prototype.muln=function(T){return this.clone().imuln(T)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(T){var I=s(T);if(I.length===0)return new u(1);for(var x=this,O=0;O<I.length&&I[O]===0;O++,x=x.sqr());if(++O<I.length)for(var R=x.sqr();O<I.length;O++,R=R.sqr())I[O]!==0&&(x=x.mul(R));return x},u.prototype.iushln=function(T){f(typeof T=="number"&&T>=0);var I,x=T%26,O=(T-x)/26,R=67108863>>>26-x<<26-x;if(x!==0){var C=0;for(I=0;I<this.length;I++){var P=this.words[I]&R,L=(0|this.words[I])-P<<x;this.words[I]=L|C,C=P>>>26-x}C&&(this.words[I]=C,this.length++)}if(O!==0){for(I=this.length-1;I>=0;I--)this.words[I+O]=this.words[I];for(I=0;I<O;I++)this.words[I]=0;this.length+=O}return this.strip()},u.prototype.ishln=function(T){return f(this.negative===0),this.iushln(T)},u.prototype.iushrn=function(T,I,x){var O;f(typeof T=="number"&&T>=0),O=I?(I-I%26)/26:0;var R=T%26,C=Math.min((T-R)/26,this.length),P=67108863^67108863>>>R<<R,L=x;if(O-=C,O=Math.max(0,O),L){for(var H=0;H<C;H++)L.words[H]=this.words[H];L.length=C}if(C!==0)if(this.length>C)for(this.length-=C,H=0;H<this.length;H++)this.words[H]=this.words[H+C];else this.words[0]=0,this.length=1;var U=0;for(H=this.length-1;H>=0&&(U!==0||H>=O);H--){var B=0|this.words[H];this.words[H]=U<<26-R|B>>>R,U=B&P}return L&&U!==0&&(L.words[L.length++]=U),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(T,I,x){return f(this.negative===0),this.iushrn(T,I,x)},u.prototype.shln=function(T){return this.clone().ishln(T)},u.prototype.ushln=function(T){return this.clone().iushln(T)},u.prototype.shrn=function(T){return this.clone().ishrn(T)},u.prototype.ushrn=function(T){return this.clone().iushrn(T)},u.prototype.testn=function(T){f(typeof T=="number"&&T>=0);var I=T%26,x=(T-I)/26,O=1<<I;return!(this.length<=x||!(this.words[x]&O))},u.prototype.imaskn=function(T){f(typeof T=="number"&&T>=0);var I=T%26,x=(T-I)/26;if(f(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(I!==0&&x++,this.length=Math.min(x,this.length),I!==0){var O=67108863^67108863>>>I<<I;this.words[this.length-1]&=O}return this.strip()},u.prototype.maskn=function(T){return this.clone().imaskn(T)},u.prototype.iaddn=function(T){return f(typeof T=="number"),f(T<67108864),T<0?this.isubn(-T):this.negative!==0?this.length===1&&(0|this.words[0])<T?(this.words[0]=T-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(T),this.negative=1,this):this._iaddn(T)},u.prototype._iaddn=function(T){this.words[0]+=T;for(var I=0;I<this.length&&this.words[I]>=67108864;I++)this.words[I]-=67108864,I===this.length-1?this.words[I+1]=1:this.words[I+1]++;return this.length=Math.max(this.length,I+1),this},u.prototype.isubn=function(T){if(f(typeof T=="number"),f(T<67108864),T<0)return this.iaddn(-T);if(this.negative!==0)return this.negative=0,this.iaddn(T),this.negative=1,this;if(this.words[0]-=T,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var I=0;I<this.length&&this.words[I]<0;I++)this.words[I]+=67108864,this.words[I+1]-=1;return this.strip()},u.prototype.addn=function(T){return this.clone().iaddn(T)},u.prototype.subn=function(T){return this.clone().isubn(T)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(T,I,x){var O,R,C=T.length+x;this._expand(C);var P=0;for(O=0;O<T.length;O++){R=(0|this.words[O+x])+P;var L=(0|T.words[O])*I;P=((R-=67108863&L)>>26)-(L/67108864|0),this.words[O+x]=67108863&R}for(;O<this.length-x;O++)P=(R=(0|this.words[O+x])+P)>>26,this.words[O+x]=67108863&R;if(P===0)return this.strip();for(f(P===-1),P=0,O=0;O<this.length;O++)P=(R=-(0|this.words[O])+P)>>26,this.words[O]=67108863&R;return this.negative=1,this.strip()},u.prototype._wordDiv=function(T,I){var x=this.length-T.length,O=this.clone(),R=T,C=0|R.words[R.length-1];(x=26-this._countBits(C))!=0&&(R=R.ushln(x),O.iushln(x),C=0|R.words[R.length-1]);var P,L=O.length-R.length;if(I!=="mod"){(P=new u(null)).length=L+1,P.words=new Array(P.length);for(var H=0;H<P.length;H++)P.words[H]=0}var U=O.clone()._ishlnsubmul(R,1,L);U.negative===0&&(O=U,P&&(P.words[L]=1));for(var B=L-1;B>=0;B--){var W=67108864*(0|O.words[R.length+B])+(0|O.words[R.length+B-1]);for(W=Math.min(W/C|0,67108863),O._ishlnsubmul(R,W,B);O.negative!==0;)W--,O.negative=0,O._ishlnsubmul(R,1,B),O.isZero()||(O.negative^=1);P&&(P.words[B]=W)}return P&&P.strip(),O.strip(),I!=="div"&&x!==0&&O.iushrn(x),{div:P||null,mod:O}},u.prototype.divmod=function(T,I,x){return f(!T.isZero()),this.isZero()?{div:new u(0),mod:new u(0)}:this.negative!==0&&T.negative===0?(C=this.neg().divmod(T,I),I!=="mod"&&(O=C.div.neg()),I!=="div"&&(R=C.mod.neg(),x&&R.negative!==0&&R.iadd(T)),{div:O,mod:R}):this.negative===0&&T.negative!==0?(C=this.divmod(T.neg(),I),I!=="mod"&&(O=C.div.neg()),{div:O,mod:C.mod}):this.negative&T.negative?(C=this.neg().divmod(T.neg(),I),I!=="div"&&(R=C.mod.neg(),x&&R.negative!==0&&R.isub(T)),{div:C.div,mod:R}):T.length>this.length||this.cmp(T)<0?{div:new u(0),mod:this}:T.length===1?I==="div"?{div:this.divn(T.words[0]),mod:null}:I==="mod"?{div:null,mod:new u(this.modn(T.words[0]))}:{div:this.divn(T.words[0]),mod:new u(this.modn(T.words[0]))}:this._wordDiv(T,I);var O,R,C},u.prototype.div=function(T){return this.divmod(T,"div",!1).div},u.prototype.mod=function(T){return this.divmod(T,"mod",!1).mod},u.prototype.umod=function(T){return this.divmod(T,"mod",!0).mod},u.prototype.divRound=function(T){var I=this.divmod(T);if(I.mod.isZero())return I.div;var x=I.div.negative!==0?I.mod.isub(T):I.mod,O=T.ushrn(1),R=T.andln(1),C=x.cmp(O);return C<0||R===1&&C===0?I.div:I.div.negative!==0?I.div.isubn(1):I.div.iaddn(1)},u.prototype.modn=function(T){f(T<=67108863);for(var I=(1<<26)%T,x=0,O=this.length-1;O>=0;O--)x=(I*x+(0|this.words[O]))%T;return x},u.prototype.idivn=function(T){f(T<=67108863);for(var I=0,x=this.length-1;x>=0;x--){var O=(0|this.words[x])+67108864*I;this.words[x]=O/T|0,I=O%T}return this.strip()},u.prototype.divn=function(T){return this.clone().idivn(T)},u.prototype.egcd=function(T){f(T.negative===0),f(!T.isZero());var I=this,x=T.clone();I=I.negative!==0?I.umod(T):I.clone();for(var O=new u(1),R=new u(0),C=new u(0),P=new u(1),L=0;I.isEven()&&x.isEven();)I.iushrn(1),x.iushrn(1),++L;for(var H=x.clone(),U=I.clone();!I.isZero();){for(var B=0,W=1;!(I.words[0]&W)&&B<26;++B,W<<=1);if(B>0)for(I.iushrn(B);B-- >0;)(O.isOdd()||R.isOdd())&&(O.iadd(H),R.isub(U)),O.iushrn(1),R.iushrn(1);for(var X=0,et=1;!(x.words[0]&et)&&X<26;++X,et<<=1);if(X>0)for(x.iushrn(X);X-- >0;)(C.isOdd()||P.isOdd())&&(C.iadd(H),P.isub(U)),C.iushrn(1),P.iushrn(1);I.cmp(x)>=0?(I.isub(x),O.isub(C),R.isub(P)):(x.isub(I),C.isub(O),P.isub(R))}return{a:C,b:P,gcd:x.iushln(L)}},u.prototype._invmp=function(T){f(T.negative===0),f(!T.isZero());var I=this,x=T.clone();I=I.negative!==0?I.umod(T):I.clone();for(var O,R=new u(1),C=new u(0),P=x.clone();I.cmpn(1)>0&&x.cmpn(1)>0;){for(var L=0,H=1;!(I.words[0]&H)&&L<26;++L,H<<=1);if(L>0)for(I.iushrn(L);L-- >0;)R.isOdd()&&R.iadd(P),R.iushrn(1);for(var U=0,B=1;!(x.words[0]&B)&&U<26;++U,B<<=1);if(U>0)for(x.iushrn(U);U-- >0;)C.isOdd()&&C.iadd(P),C.iushrn(1);I.cmp(x)>=0?(I.isub(x),R.isub(C)):(x.isub(I),C.isub(R))}return(O=I.cmpn(1)===0?R:C).cmpn(0)<0&&O.iadd(T),O},u.prototype.gcd=function(T){if(this.isZero())return T.abs();if(T.isZero())return this.abs();var I=this.clone(),x=T.clone();I.negative=0,x.negative=0;for(var O=0;I.isEven()&&x.isEven();O++)I.iushrn(1),x.iushrn(1);for(;;){for(;I.isEven();)I.iushrn(1);for(;x.isEven();)x.iushrn(1);var R=I.cmp(x);if(R<0){var C=I;I=x,x=C}else if(R===0||x.cmpn(1)===0)break;I.isub(x)}return x.iushln(O)},u.prototype.invm=function(T){return this.egcd(T).a.umod(T)},u.prototype.isEven=function(){return(1&this.words[0])==0},u.prototype.isOdd=function(){return(1&this.words[0])==1},u.prototype.andln=function(T){return this.words[0]&T},u.prototype.bincn=function(T){f(typeof T=="number");var I=T%26,x=(T-I)/26,O=1<<I;if(this.length<=x)return this._expand(x+1),this.words[x]|=O,this;for(var R=O,C=x;R!==0&&C<this.length;C++){var P=0|this.words[C];R=(P+=R)>>>26,P&=67108863,this.words[C]=P}return R!==0&&(this.words[C]=R,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(T){var I,x=T<0;if(this.negative!==0&&!x)return-1;if(this.negative===0&&x)return 1;if(this.strip(),this.length>1)I=1;else{x&&(T=-T),f(T<=67108863,"Number is too big");var O=0|this.words[0];I=O===T?0:O<T?-1:1}return this.negative!==0?0|-I:I},u.prototype.cmp=function(T){if(this.negative!==0&&T.negative===0)return-1;if(this.negative===0&&T.negative!==0)return 1;var I=this.ucmp(T);return this.negative!==0?0|-I:I},u.prototype.ucmp=function(T){if(this.length>T.length)return 1;if(this.length<T.length)return-1;for(var I=0,x=this.length-1;x>=0;x--){var O=0|this.words[x],R=0|T.words[x];if(O!==R){O<R?I=-1:O>R&&(I=1);break}}return I},u.prototype.gtn=function(T){return this.cmpn(T)===1},u.prototype.gt=function(T){return this.cmp(T)===1},u.prototype.gten=function(T){return this.cmpn(T)>=0},u.prototype.gte=function(T){return this.cmp(T)>=0},u.prototype.ltn=function(T){return this.cmpn(T)===-1},u.prototype.lt=function(T){return this.cmp(T)===-1},u.prototype.lten=function(T){return this.cmpn(T)<=0},u.prototype.lte=function(T){return this.cmp(T)<=0},u.prototype.eqn=function(T){return this.cmpn(T)===0},u.prototype.eq=function(T){return this.cmp(T)===0},u.red=function(T){return new N(T)},u.prototype.toRed=function(T){return f(!this.red,"Already a number in reduction context"),f(this.negative===0,"red works only with positives"),T.convertTo(this)._forceRed(T)},u.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(T){return this.red=T,this},u.prototype.forceRed=function(T){return f(!this.red,"Already a number in reduction context"),this._forceRed(T)},u.prototype.redAdd=function(T){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,T)},u.prototype.redIAdd=function(T){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,T)},u.prototype.redSub=function(T){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,T)},u.prototype.redISub=function(T){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,T)},u.prototype.redShl=function(T){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,T)},u.prototype.redMul=function(T){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.mul(this,T)},u.prototype.redIMul=function(T){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.imul(this,T)},u.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(T){return f(this.red&&!T.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,T)};var w={k256:null,p224:null,p192:null,p25519:null};function k(T,I){this.name=T,this.p=new u(I,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){k.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){k.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function j(){k.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function D(){k.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(T){if(typeof T=="string"){var I=u._prime(T);this.m=I.p,this.prime=I}else f(T.gtn(1),"modulus must be greater than 1"),this.m=T,this.prime=null}function F(T){N.call(this,T),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var T=new u(null);return T.words=new Array(Math.ceil(this.n/13)),T},k.prototype.ireduce=function(T){var I,x=T;do this.split(x,this.tmp),I=(x=(x=this.imulK(x)).iadd(this.tmp)).bitLength();while(I>this.n);var O=I<this.n?-1:x.ucmp(this.p);return O===0?(x.words[0]=0,x.length=1):O>0?x.isub(this.p):x.strip!==void 0?x.strip():x._strip(),x},k.prototype.split=function(T,I){T.iushrn(this.n,0,I)},k.prototype.imulK=function(T){return T.imul(this.k)},l(S,k),S.prototype.split=function(T,I){for(var x=4194303,O=Math.min(T.length,9),R=0;R<O;R++)I.words[R]=T.words[R];if(I.length=O,T.length<=9)return T.words[0]=0,void(T.length=1);var C=T.words[9];for(I.words[I.length++]=C&x,R=10;R<T.length;R++){var P=0|T.words[R];T.words[R-10]=(P&x)<<4|C>>>22,C=P}C>>>=22,T.words[R-10]=C,C===0&&T.length>10?T.length-=10:T.length-=9},S.prototype.imulK=function(T){T.words[T.length]=0,T.words[T.length+1]=0,T.length+=2;for(var I=0,x=0;x<T.length;x++){var O=0|T.words[x];I+=977*O,T.words[x]=67108863&I,I=64*O+(I/67108864|0)}return T.words[T.length-1]===0&&(T.length--,T.words[T.length-1]===0&&T.length--),T},l(A,k),l(j,k),l(D,k),D.prototype.imulK=function(T){for(var I=0,x=0;x<T.length;x++){var O=19*(0|T.words[x])+I,R=67108863&O;O>>>=26,T.words[x]=R,I=O}return I!==0&&(T.words[T.length++]=I),T},u._prime=function(T){if(w[T])return w[T];var I;if(T==="k256")I=new S;else if(T==="p224")I=new A;else if(T==="p192")I=new j;else{if(T!=="p25519")throw new Error("Unknown prime "+T);I=new D}return w[T]=I,I},N.prototype._verify1=function(T){f(T.negative===0,"red works only with positives"),f(T.red,"red works only with red numbers")},N.prototype._verify2=function(T,I){f((T.negative|I.negative)==0,"red works only with positives"),f(T.red&&T.red===I.red,"red works only with red numbers")},N.prototype.imod=function(T){return this.prime?this.prime.ireduce(T)._forceRed(this):T.umod(this.m)._forceRed(this)},N.prototype.neg=function(T){return T.isZero()?T.clone():this.m.sub(T)._forceRed(this)},N.prototype.add=function(T,I){this._verify2(T,I);var x=T.add(I);return x.cmp(this.m)>=0&&x.isub(this.m),x._forceRed(this)},N.prototype.iadd=function(T,I){this._verify2(T,I);var x=T.iadd(I);return x.cmp(this.m)>=0&&x.isub(this.m),x},N.prototype.sub=function(T,I){this._verify2(T,I);var x=T.sub(I);return x.cmpn(0)<0&&x.iadd(this.m),x._forceRed(this)},N.prototype.isub=function(T,I){this._verify2(T,I);var x=T.isub(I);return x.cmpn(0)<0&&x.iadd(this.m),x},N.prototype.shl=function(T,I){return this._verify1(T),this.imod(T.ushln(I))},N.prototype.imul=function(T,I){return this._verify2(T,I),this.imod(T.imul(I))},N.prototype.mul=function(T,I){return this._verify2(T,I),this.imod(T.mul(I))},N.prototype.isqr=function(T){return this.imul(T,T.clone())},N.prototype.sqr=function(T){return this.mul(T,T)},N.prototype.sqrt=function(T){if(T.isZero())return T.clone();var I=this.m.andln(3);if(f(I%2==1),I===3){var x=this.m.add(new u(1)).iushrn(2);return this.pow(T,x)}for(var O=this.m.subn(1),R=0;!O.isZero()&&O.andln(1)===0;)R++,O.iushrn(1);f(!O.isZero());var C=new u(1).toRed(this),P=C.redNeg(),L=this.m.subn(1).iushrn(1),H=this.m.bitLength();for(H=new u(2*H*H).toRed(this);this.pow(H,L).cmp(P)!==0;)H.redIAdd(P);for(var U=this.pow(H,O),B=this.pow(T,O.addn(1).iushrn(1)),W=this.pow(T,O),X=R;W.cmp(C)!==0;){for(var et=W,ft=0;et.cmp(C)!==0;ft++)et=et.redSqr();f(ft<X);var gt=this.pow(U,new u(1).iushln(X-ft-1));B=B.redMul(gt),U=gt.redSqr(),W=W.redMul(U),X=ft}return B},N.prototype.invm=function(T){var I=T._invmp(this.m);return I.negative!==0?(I.negative=0,this.imod(I).redNeg()):this.imod(I)},N.prototype.pow=function(T,I){if(I.isZero())return new u(1).toRed(this);if(I.cmpn(1)===0)return T.clone();var x=4,O=new Array(1<<x);O[0]=new u(1).toRed(this),O[1]=T;for(var R=2;R<O.length;R++)O[R]=this.mul(O[R-1],T);var C=O[0],P=0,L=0,H=I.bitLength()%26;for(H===0&&(H=26),R=I.length-1;R>=0;R--){for(var U=I.words[R],B=H-1;B>=0;B--){var W=U>>B&1;C!==O[0]&&(C=this.sqr(C)),W!==0||P!==0?(P<<=1,P|=W,(++L===x||R===0&&B===0)&&(C=this.mul(C,O[P]),L=0,P=0)):L=0}H=26}return C},N.prototype.convertTo=function(T){var I=T.umod(this.m);return I===T?I.clone():I},N.prototype.convertFrom=function(T){var I=T.clone();return I.red=null,I},u.mont=function(T){return new F(T)},l(F,N),F.prototype.convertTo=function(T){return this.imod(T.ushln(this.shift))},F.prototype.convertFrom=function(T){var I=this.imod(T.mul(this.rinv));return I.red=null,I},F.prototype.imul=function(T,I){if(T.isZero()||I.isZero())return T.words[0]=0,T.length=1,T;var x=T.imul(I),O=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=x.isub(O).iushrn(this.shift),C=R;return R.cmp(this.m)>=0?C=R.isub(this.m):R.cmpn(0)<0&&(C=R.iadd(this.m)),C._forceRed(this)},F.prototype.mul=function(T,I){if(T.isZero()||I.isZero())return new u(0)._forceRed(this);var x=T.mul(I),O=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=x.isub(O).iushrn(this.shift),C=R;return R.cmp(this.m)>=0?C=R.isub(this.m):R.cmpn(0)<0&&(C=R.iadd(this.m)),C._forceRed(this)},F.prototype.invm=function(T){return this.imod(T._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r,void 0)},{buffer:185}],182:[function(t,r,e){e.byteLength=p,e.toByteArray=b,e.fromByteArray=s;for(var n=[],i=[],c=typeof Uint8Array!="undefined"?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,u=f.length;l<u;++l)n[l]=f[l],i[f.charCodeAt(l)]=l;function y(o){var h=o.length;if(h%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=o.indexOf("=");return a===-1&&(a=h),[a,a===h?0:4-a%4]}function p(o){var h=y(o),a=h[0],d=h[1];return 3*(a+d)/4-d}function m(o,h,a){return 3*(h+a)/4-a}function b(o){var h,a,d=y(o),g=d[0],w=d[1],k=new c(m(o,g,w)),S=0,A=w>0?g-4:g;for(a=0;a<A;a+=4)h=i[o.charCodeAt(a)]<<18|i[o.charCodeAt(a+1)]<<12|i[o.charCodeAt(a+2)]<<6|i[o.charCodeAt(a+3)],k[S++]=h>>16&255,k[S++]=h>>8&255,k[S++]=255&h;return w===2&&(h=i[o.charCodeAt(a)]<<2|i[o.charCodeAt(a+1)]>>4,k[S++]=255&h),w===1&&(h=i[o.charCodeAt(a)]<<10|i[o.charCodeAt(a+1)]<<4|i[o.charCodeAt(a+2)]>>2,k[S++]=h>>8&255,k[S++]=255&h),k}function v(o){return n[o>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]}function _(o,h,a){for(var d,g=[],w=h;w<a;w+=3)d=(o[w]<<16&16711680)+(o[w+1]<<8&65280)+(255&o[w+2]),g.push(v(d));return g.join("")}function s(o){for(var h,a=o.length,d=a%3,g=[],w=16383,k=0,S=a-d;k<S;k+=w)g.push(_(o,k,k+w>S?S:k+w));return d===1?(h=o[a-1],g.push(n[h>>2]+n[h<<4&63]+"==")):d===2&&(h=(o[a-2]<<8)+o[a-1],g.push(n[h>>10]+n[h>>4&63]+n[h<<2&63]+"=")),g.join("")}i[45]=62,i[95]=63},{}],183:[function(t,r,e){function n(i){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(i)}(function(i,c){function f(x,O){if(!x)throw new Error(O||"Assertion failed")}function l(x,O){x.super_=O;var R=function(){};R.prototype=O.prototype,x.prototype=new R,x.prototype.constructor=x}function u(x,O,R){if(u.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,x!==null&&(O!=="le"&&O!=="be"||(R=O,O=10),this._init(x||0,O||10,R||"be"))}var y;n(i)==="object"?i.exports=u:c.BN=u,u.BN=u,u.wordSize=26;try{y=t("buffer").Buffer}catch(x){}function p(x,O,R){for(var C=0,P=Math.min(x.length,R),L=0,H=O;H<P;H++){var U,B=x.charCodeAt(H)-48;C<<=4,C|=U=B>=49&&B<=54?B-49+10:B>=17&&B<=22?B-17+10:B,L|=U}return f(!(240&L),"Invalid character in "+x),C}function m(x,O,R,C){for(var P=0,L=0,H=Math.min(x.length,R),U=O;U<H;U++){var B=x.charCodeAt(U)-48;P*=C,L=B>=49?B-49+10:B>=17?B-17+10:B,f(B>=0&&L<C,"Invalid character"),P+=L}return P}function b(x,O){x.words=O.words,x.length=O.length,x.negative=O.negative,x.red=O.red}if(u.isBN=function(x){return x instanceof u||x!==null&&n(x)==="object"&&x.constructor.wordSize===u.wordSize&&Array.isArray(x.words)},u.max=function(x,O){return x.cmp(O)>0?x:O},u.min=function(x,O){return x.cmp(O)<0?x:O},u.prototype._init=function(x,O,R){if(typeof x=="number")return this._initNumber(x,O,R);if(n(x)==="object")return this._initArray(x,O,R);O==="hex"&&(O=16),f(O===(0|O)&&O>=2&&O<=36);var C=0;(x=x.toString().replace(/\s+/g,""))[0]==="-"&&C++,O===16?this._parseHex(x,C):this._parseBase(x,O,C),x[0]==="-"&&(this.negative=1),this._strip(),R==="le"&&this._initArray(this.toArray(),O,R)},u.prototype._initNumber=function(x,O,R){x<0&&(this.negative=1,x=-x),x<67108864?(this.words=[67108863&x],this.length=1):x<4503599627370496?(this.words=[67108863&x,x/67108864&67108863],this.length=2):(f(x<9007199254740992),this.words=[67108863&x,x/67108864&67108863,1],this.length=3),R==="le"&&this._initArray(this.toArray(),O,R)},u.prototype._initArray=function(x,O,R){if(f(typeof x.length=="number"),x.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(x.length/3),this.words=new Array(this.length);for(var C=0;C<this.length;C++)this.words[C]=0;var P,L,H=0;if(R==="be")for(C=x.length-1,P=0;C>=0;C-=3)L=x[C]|x[C-1]<<8|x[C-2]<<16,this.words[P]|=L<<H&67108863,this.words[P+1]=L>>>26-H&67108863,(H+=24)>=26&&(H-=26,P++);else if(R==="le")for(C=0,P=0;C<x.length;C+=3)L=x[C]|x[C+1]<<8|x[C+2]<<16,this.words[P]|=L<<H&67108863,this.words[P+1]=L>>>26-H&67108863,(H+=24)>=26&&(H-=26,P++);return this._strip()},u.prototype._parseHex=function(x,O){this.length=Math.ceil((x.length-O)/6),this.words=new Array(this.length);for(var R=0;R<this.length;R++)this.words[R]=0;var C,P,L=0;for(R=x.length-6,C=0;R>=O;R-=6)P=p(x,R,R+6),this.words[C]|=P<<L&67108863,this.words[C+1]|=P>>>26-L&4194303,(L+=24)>=26&&(L-=26,C++);R+6!==O&&(P=p(x,O,R+6),this.words[C]|=P<<L&67108863,this.words[C+1]|=P>>>26-L&4194303),this._strip()},u.prototype._parseBase=function(x,O,R){this.words=[0],this.length=1;for(var C=0,P=1;P<=67108863;P*=O)C++;C--,P=P/O|0;for(var L=x.length-R,H=L%C,U=Math.min(L,L-H)+R,B=0,W=R;W<U;W+=C)B=m(x,W,W+C,O),this.imuln(P),this.words[0]+B<67108864?this.words[0]+=B:this._iaddn(B);if(H!==0){var X=1;for(B=m(x,W,x.length,O),W=0;W<H;W++)X*=O;this.imuln(X),this.words[0]+B<67108864?this.words[0]+=B:this._iaddn(B)}},u.prototype.copy=function(x){x.words=new Array(this.length);for(var O=0;O<this.length;O++)x.words[O]=this.words[O];x.length=this.length,x.negative=this.negative,x.red=this.red},u.prototype._move=function(x){b(x,this)},u.prototype.clone=function(){var x=new u(null);return this.copy(x),x},u.prototype._expand=function(x){for(;this.length<x;)this.words[this.length++]=0;return this},u.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol!="undefined"&&typeof Symbol.for=="function")try{u.prototype[Symbol.for("nodejs.util.inspect.custom")]=v}catch(x){u.prototype.inspect=v}else u.prototype.inspect=v;function v(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var _=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],s=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],o=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(x,O){var R;if(O=0|O||1,(x=x||10)===16||x==="hex"){R="";for(var C=0,P=0,L=0;L<this.length;L++){var H=this.words[L],U=(16777215&(H<<C|P)).toString(16);R=(P=H>>>24-C&16777215)!=0||L!==this.length-1?_[6-U.length]+U+R:U+R,(C+=2)>=26&&(C-=26,L--)}for(P!==0&&(R=P.toString(16)+R);R.length%O!=0;)R="0"+R;return this.negative!==0&&(R="-"+R),R}if(x===(0|x)&&x>=2&&x<=36){var B=s[x],W=o[x];R="";var X=this.clone();for(X.negative=0;!X.isZero();){var et=X.modrn(W).toString(x);R=(X=X.idivn(W)).isZero()?et+R:_[B-et.length]+et+R}for(this.isZero()&&(R="0"+R);R.length%O!=0;)R="0"+R;return this.negative!==0&&(R="-"+R),R}f(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var x=this.words[0];return this.length===2?x+=67108864*this.words[1]:this.length===3&&this.words[2]===1?x+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-x:x},u.prototype.toJSON=function(){return this.toString(16,2)},y&&(u.prototype.toBuffer=function(x,O){return this.toArrayLike(y,x,O)}),u.prototype.toArray=function(x,O){return this.toArrayLike(Array,x,O)};var h=function(x,O){return x.allocUnsafe?x.allocUnsafe(O):new x(O)};function a(x){for(var O=new Array(x.bitLength()),R=0;R<O.length;R++){var C=R/26|0,P=R%26;O[R]=x.words[C]>>>P&1}return O}function d(x,O,R){R.negative=O.negative^x.negative;var C=x.length+O.length|0;R.length=C,C=C-1|0;var P=0|x.words[0],L=0|O.words[0],H=P*L,U=67108863&H,B=H/67108864|0;R.words[0]=U;for(var W=1;W<C;W++){for(var X=B>>>26,et=67108863&B,ft=Math.min(W,O.length-1),gt=Math.max(0,W-x.length+1);gt<=ft;gt++){var bt=W-gt|0;X+=(H=(P=0|x.words[bt])*(L=0|O.words[gt])+et)/67108864|0,et=67108863&H}R.words[W]=0|et,B=0|X}return B!==0?R.words[W]=0|B:R.length--,R._strip()}u.prototype.toArrayLike=function(x,O,R){this._strip();var C=this.byteLength(),P=R||Math.max(1,C);f(C<=P,"byte array longer than desired length"),f(P>0,"Requested array length <= 0");var L=h(x,P);return this["_toArrayLike"+(O==="le"?"LE":"BE")](L,C),L},u.prototype._toArrayLikeLE=function(x,O){for(var R=0,C=0,P=0,L=0;P<this.length;P++){var H=this.words[P]<<L|C;x[R++]=255&H,R<x.length&&(x[R++]=H>>8&255),R<x.length&&(x[R++]=H>>16&255),L===6?(R<x.length&&(x[R++]=H>>24&255),C=0,L=0):(C=H>>>24,L+=2)}if(R<x.length)for(x[R++]=C;R<x.length;)x[R++]=0},u.prototype._toArrayLikeBE=function(x,O){for(var R=x.length-1,C=0,P=0,L=0;P<this.length;P++){var H=this.words[P]<<L|C;x[R--]=255&H,R>=0&&(x[R--]=H>>8&255),R>=0&&(x[R--]=H>>16&255),L===6?(R>=0&&(x[R--]=H>>24&255),C=0,L=0):(C=H>>>24,L+=2)}if(R>=0)for(x[R--]=C;R>=0;)x[R--]=0},Math.clz32?u.prototype._countBits=function(x){return 32-Math.clz32(x)}:u.prototype._countBits=function(x){var O=x,R=0;return O>=4096&&(R+=13,O>>>=13),O>=64&&(R+=7,O>>>=7),O>=8&&(R+=4,O>>>=4),O>=2&&(R+=2,O>>>=2),R+O},u.prototype._zeroBits=function(x){if(x===0)return 26;var O=x,R=0;return!(8191&O)&&(R+=13,O>>>=13),!(127&O)&&(R+=7,O>>>=7),!(15&O)&&(R+=4,O>>>=4),!(3&O)&&(R+=2,O>>>=2),!(1&O)&&R++,R},u.prototype.bitLength=function(){var x=this.words[this.length-1],O=this._countBits(x);return 26*(this.length-1)+O},u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var x=0,O=0;O<this.length;O++){var R=this._zeroBits(this.words[O]);if(x+=R,R!==26)break}return x},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(x){return this.negative!==0?this.abs().inotn(x).iaddn(1):this.clone()},u.prototype.fromTwos=function(x){return this.testn(x-1)?this.notn(x).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(x){for(;this.length<x.length;)this.words[this.length++]=0;for(var O=0;O<x.length;O++)this.words[O]=this.words[O]|x.words[O];return this._strip()},u.prototype.ior=function(x){return f((this.negative|x.negative)==0),this.iuor(x)},u.prototype.or=function(x){return this.length>x.length?this.clone().ior(x):x.clone().ior(this)},u.prototype.uor=function(x){return this.length>x.length?this.clone().iuor(x):x.clone().iuor(this)},u.prototype.iuand=function(x){var O;O=this.length>x.length?x:this;for(var R=0;R<O.length;R++)this.words[R]=this.words[R]&x.words[R];return this.length=O.length,this._strip()},u.prototype.iand=function(x){return f((this.negative|x.negative)==0),this.iuand(x)},u.prototype.and=function(x){return this.length>x.length?this.clone().iand(x):x.clone().iand(this)},u.prototype.uand=function(x){return this.length>x.length?this.clone().iuand(x):x.clone().iuand(this)},u.prototype.iuxor=function(x){var O,R;this.length>x.length?(O=this,R=x):(O=x,R=this);for(var C=0;C<R.length;C++)this.words[C]=O.words[C]^R.words[C];if(this!==O)for(;C<O.length;C++)this.words[C]=O.words[C];return this.length=O.length,this._strip()},u.prototype.ixor=function(x){return f((this.negative|x.negative)==0),this.iuxor(x)},u.prototype.xor=function(x){return this.length>x.length?this.clone().ixor(x):x.clone().ixor(this)},u.prototype.uxor=function(x){return this.length>x.length?this.clone().iuxor(x):x.clone().iuxor(this)},u.prototype.inotn=function(x){f(typeof x=="number"&&x>=0);var O=0|Math.ceil(x/26),R=x%26;this._expand(O),R>0&&O--;for(var C=0;C<O;C++)this.words[C]=67108863&~this.words[C];return R>0&&(this.words[C]=~this.words[C]&67108863>>26-R),this._strip()},u.prototype.notn=function(x){return this.clone().inotn(x)},u.prototype.setn=function(x,O){f(typeof x=="number"&&x>=0);var R=x/26|0,C=x%26;return this._expand(R+1),this.words[R]=O?this.words[R]|1<<C:this.words[R]&~(1<<C),this._strip()},u.prototype.iadd=function(x){var O,R,C;if(this.negative!==0&&x.negative===0)return this.negative=0,O=this.isub(x),this.negative^=1,this._normSign();if(this.negative===0&&x.negative!==0)return x.negative=0,O=this.isub(x),x.negative=1,O._normSign();this.length>x.length?(R=this,C=x):(R=x,C=this);for(var P=0,L=0;L<C.length;L++)O=(0|R.words[L])+(0|C.words[L])+P,this.words[L]=67108863&O,P=O>>>26;for(;P!==0&&L<R.length;L++)O=(0|R.words[L])+P,this.words[L]=67108863&O,P=O>>>26;if(this.length=R.length,P!==0)this.words[this.length]=P,this.length++;else if(R!==this)for(;L<R.length;L++)this.words[L]=R.words[L];return this},u.prototype.add=function(x){var O;return x.negative!==0&&this.negative===0?(x.negative=0,O=this.sub(x),x.negative^=1,O):x.negative===0&&this.negative!==0?(this.negative=0,O=x.sub(this),this.negative=1,O):this.length>x.length?this.clone().iadd(x):x.clone().iadd(this)},u.prototype.isub=function(x){if(x.negative!==0){x.negative=0;var O=this.iadd(x);return x.negative=1,O._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(x),this.negative=1,this._normSign();var R,C,P=this.cmp(x);if(P===0)return this.negative=0,this.length=1,this.words[0]=0,this;P>0?(R=this,C=x):(R=x,C=this);for(var L=0,H=0;H<C.length;H++)L=(O=(0|R.words[H])-(0|C.words[H])+L)>>26,this.words[H]=67108863&O;for(;L!==0&&H<R.length;H++)L=(O=(0|R.words[H])+L)>>26,this.words[H]=67108863&O;if(L===0&&H<R.length&&R!==this)for(;H<R.length;H++)this.words[H]=R.words[H];return this.length=Math.max(this.length,H),R!==this&&(this.negative=1),this._strip()},u.prototype.sub=function(x){return this.clone().isub(x)};var g=function(x,O,R){var C,P,L,H=x.words,U=O.words,B=R.words,W=0,X=0|H[0],et=8191&X,ft=X>>>13,gt=0|H[1],bt=8191>,rt=gt>>>13,Q=0|H[2],K=8191&Q,nt=Q>>>13,At=0|H[3],ot=8191&At,ut=At>>>13,Mt=0|H[4],Bt=8191&Mt,G=Mt>>>13,Z=0|H[5],J=8191&Z,St=Z>>>13,It=0|H[6],Ft=8191&It,Xt=It>>>13,me=0|H[7],fe=8191&me,Kt=me>>>13,ie=0|H[8],ct=8191&ie,pt=ie>>>13,_t=0|H[9],vt=8191&_t,Y=_t>>>13,ht=0|U[0],at=8191&ht,it=ht>>>13,q=0|U[1],wt=8191&q,Pt=q>>>13,V=0|U[2],Rt=8191&V,mt=V>>>13,dt=0|U[3],Tt=8191&dt,Ot=dt>>>13,qt=0|U[4],Lt=8191&qt,Ht=qt>>>13,le=0|U[5],Ce=8191&le,Zt=le>>>13,ae=0|U[6],he=8191&ae,Wt=ae>>>13,pe=0|U[7],Se=8191&pe,de=pe>>>13,ge=0|U[8],Fe=8191&ge,re=ge>>>13,Ae=0|U[9],De=8191&Ae,Ue=Ae>>>13;R.negative=x.negative^O.negative,R.length=19;var Sr=(W+(C=Math.imul(et,at))|0)+((8191&(P=(P=Math.imul(et,it))+Math.imul(ft,at)|0))<<13)|0;W=((L=Math.imul(ft,it))+(P>>>13)|0)+(Sr>>>26)|0,Sr&=67108863,C=Math.imul(bt,at),P=(P=Math.imul(bt,it))+Math.imul(rt,at)|0,L=Math.imul(rt,it);var ir=(W+(C=C+Math.imul(et,wt)|0)|0)+((8191&(P=(P=P+Math.imul(et,Pt)|0)+Math.imul(ft,wt)|0))<<13)|0;W=((L=L+Math.imul(ft,Pt)|0)+(P>>>13)|0)+(ir>>>26)|0,ir&=67108863,C=Math.imul(K,at),P=(P=Math.imul(K,it))+Math.imul(nt,at)|0,L=Math.imul(nt,it),C=C+Math.imul(bt,wt)|0,P=(P=P+Math.imul(bt,Pt)|0)+Math.imul(rt,wt)|0,L=L+Math.imul(rt,Pt)|0;var $e=(W+(C=C+Math.imul(et,Rt)|0)|0)+((8191&(P=(P=P+Math.imul(et,mt)|0)+Math.imul(ft,Rt)|0))<<13)|0;W=((L=L+Math.imul(ft,mt)|0)+(P>>>13)|0)+($e>>>26)|0,$e&=67108863,C=Math.imul(ot,at),P=(P=Math.imul(ot,it))+Math.imul(ut,at)|0,L=Math.imul(ut,it),C=C+Math.imul(K,wt)|0,P=(P=P+Math.imul(K,Pt)|0)+Math.imul(nt,wt)|0,L=L+Math.imul(nt,Pt)|0,C=C+Math.imul(bt,Rt)|0,P=(P=P+Math.imul(bt,mt)|0)+Math.imul(rt,Rt)|0,L=L+Math.imul(rt,mt)|0;var ii=(W+(C=C+Math.imul(et,Tt)|0)|0)+((8191&(P=(P=P+Math.imul(et,Ot)|0)+Math.imul(ft,Tt)|0))<<13)|0;W=((L=L+Math.imul(ft,Ot)|0)+(P>>>13)|0)+(ii>>>26)|0,ii&=67108863,C=Math.imul(Bt,at),P=(P=Math.imul(Bt,it))+Math.imul(G,at)|0,L=Math.imul(G,it),C=C+Math.imul(ot,wt)|0,P=(P=P+Math.imul(ot,Pt)|0)+Math.imul(ut,wt)|0,L=L+Math.imul(ut,Pt)|0,C=C+Math.imul(K,Rt)|0,P=(P=P+Math.imul(K,mt)|0)+Math.imul(nt,Rt)|0,L=L+Math.imul(nt,mt)|0,C=C+Math.imul(bt,Tt)|0,P=(P=P+Math.imul(bt,Ot)|0)+Math.imul(rt,Tt)|0,L=L+Math.imul(rt,Ot)|0;var oi=(W+(C=C+Math.imul(et,Lt)|0)|0)+((8191&(P=(P=P+Math.imul(et,Ht)|0)+Math.imul(ft,Lt)|0))<<13)|0;W=((L=L+Math.imul(ft,Ht)|0)+(P>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(J,at),P=(P=Math.imul(J,it))+Math.imul(St,at)|0,L=Math.imul(St,it),C=C+Math.imul(Bt,wt)|0,P=(P=P+Math.imul(Bt,Pt)|0)+Math.imul(G,wt)|0,L=L+Math.imul(G,Pt)|0,C=C+Math.imul(ot,Rt)|0,P=(P=P+Math.imul(ot,mt)|0)+Math.imul(ut,Rt)|0,L=L+Math.imul(ut,mt)|0,C=C+Math.imul(K,Tt)|0,P=(P=P+Math.imul(K,Ot)|0)+Math.imul(nt,Tt)|0,L=L+Math.imul(nt,Ot)|0,C=C+Math.imul(bt,Lt)|0,P=(P=P+Math.imul(bt,Ht)|0)+Math.imul(rt,Lt)|0,L=L+Math.imul(rt,Ht)|0;var Zr=(W+(C=C+Math.imul(et,Ce)|0)|0)+((8191&(P=(P=P+Math.imul(et,Zt)|0)+Math.imul(ft,Ce)|0))<<13)|0;W=((L=L+Math.imul(ft,Zt)|0)+(P>>>13)|0)+(Zr>>>26)|0,Zr&=67108863,C=Math.imul(Ft,at),P=(P=Math.imul(Ft,it))+Math.imul(Xt,at)|0,L=Math.imul(Xt,it),C=C+Math.imul(J,wt)|0,P=(P=P+Math.imul(J,Pt)|0)+Math.imul(St,wt)|0,L=L+Math.imul(St,Pt)|0,C=C+Math.imul(Bt,Rt)|0,P=(P=P+Math.imul(Bt,mt)|0)+Math.imul(G,Rt)|0,L=L+Math.imul(G,mt)|0,C=C+Math.imul(ot,Tt)|0,P=(P=P+Math.imul(ot,Ot)|0)+Math.imul(ut,Tt)|0,L=L+Math.imul(ut,Ot)|0,C=C+Math.imul(K,Lt)|0,P=(P=P+Math.imul(K,Ht)|0)+Math.imul(nt,Lt)|0,L=L+Math.imul(nt,Ht)|0,C=C+Math.imul(bt,Ce)|0,P=(P=P+Math.imul(bt,Zt)|0)+Math.imul(rt,Ce)|0,L=L+Math.imul(rt,Zt)|0;var Br=(W+(C=C+Math.imul(et,he)|0)|0)+((8191&(P=(P=P+Math.imul(et,Wt)|0)+Math.imul(ft,he)|0))<<13)|0;W=((L=L+Math.imul(ft,Wt)|0)+(P>>>13)|0)+(Br>>>26)|0,Br&=67108863,C=Math.imul(fe,at),P=(P=Math.imul(fe,it))+Math.imul(Kt,at)|0,L=Math.imul(Kt,it),C=C+Math.imul(Ft,wt)|0,P=(P=P+Math.imul(Ft,Pt)|0)+Math.imul(Xt,wt)|0,L=L+Math.imul(Xt,Pt)|0,C=C+Math.imul(J,Rt)|0,P=(P=P+Math.imul(J,mt)|0)+Math.imul(St,Rt)|0,L=L+Math.imul(St,mt)|0,C=C+Math.imul(Bt,Tt)|0,P=(P=P+Math.imul(Bt,Ot)|0)+Math.imul(G,Tt)|0,L=L+Math.imul(G,Ot)|0,C=C+Math.imul(ot,Lt)|0,P=(P=P+Math.imul(ot,Ht)|0)+Math.imul(ut,Lt)|0,L=L+Math.imul(ut,Ht)|0,C=C+Math.imul(K,Ce)|0,P=(P=P+Math.imul(K,Zt)|0)+Math.imul(nt,Ce)|0,L=L+Math.imul(nt,Zt)|0,C=C+Math.imul(bt,he)|0,P=(P=P+Math.imul(bt,Wt)|0)+Math.imul(rt,he)|0,L=L+Math.imul(rt,Wt)|0;var On=(W+(C=C+Math.imul(et,Se)|0)|0)+((8191&(P=(P=P+Math.imul(et,de)|0)+Math.imul(ft,Se)|0))<<13)|0;W=((L=L+Math.imul(ft,de)|0)+(P>>>13)|0)+(On>>>26)|0,On&=67108863,C=Math.imul(ct,at),P=(P=Math.imul(ct,it))+Math.imul(pt,at)|0,L=Math.imul(pt,it),C=C+Math.imul(fe,wt)|0,P=(P=P+Math.imul(fe,Pt)|0)+Math.imul(Kt,wt)|0,L=L+Math.imul(Kt,Pt)|0,C=C+Math.imul(Ft,Rt)|0,P=(P=P+Math.imul(Ft,mt)|0)+Math.imul(Xt,Rt)|0,L=L+Math.imul(Xt,mt)|0,C=C+Math.imul(J,Tt)|0,P=(P=P+Math.imul(J,Ot)|0)+Math.imul(St,Tt)|0,L=L+Math.imul(St,Ot)|0,C=C+Math.imul(Bt,Lt)|0,P=(P=P+Math.imul(Bt,Ht)|0)+Math.imul(G,Lt)|0,L=L+Math.imul(G,Ht)|0,C=C+Math.imul(ot,Ce)|0,P=(P=P+Math.imul(ot,Zt)|0)+Math.imul(ut,Ce)|0,L=L+Math.imul(ut,Zt)|0,C=C+Math.imul(K,he)|0,P=(P=P+Math.imul(K,Wt)|0)+Math.imul(nt,he)|0,L=L+Math.imul(nt,Wt)|0,C=C+Math.imul(bt,Se)|0,P=(P=P+Math.imul(bt,de)|0)+Math.imul(rt,Se)|0,L=L+Math.imul(rt,de)|0;var Dn=(W+(C=C+Math.imul(et,Fe)|0)|0)+((8191&(P=(P=P+Math.imul(et,re)|0)+Math.imul(ft,Fe)|0))<<13)|0;W=((L=L+Math.imul(ft,re)|0)+(P>>>13)|0)+(Dn>>>26)|0,Dn&=67108863,C=Math.imul(vt,at),P=(P=Math.imul(vt,it))+Math.imul(Y,at)|0,L=Math.imul(Y,it),C=C+Math.imul(ct,wt)|0,P=(P=P+Math.imul(ct,Pt)|0)+Math.imul(pt,wt)|0,L=L+Math.imul(pt,Pt)|0,C=C+Math.imul(fe,Rt)|0,P=(P=P+Math.imul(fe,mt)|0)+Math.imul(Kt,Rt)|0,L=L+Math.imul(Kt,mt)|0,C=C+Math.imul(Ft,Tt)|0,P=(P=P+Math.imul(Ft,Ot)|0)+Math.imul(Xt,Tt)|0,L=L+Math.imul(Xt,Ot)|0,C=C+Math.imul(J,Lt)|0,P=(P=P+Math.imul(J,Ht)|0)+Math.imul(St,Lt)|0,L=L+Math.imul(St,Ht)|0,C=C+Math.imul(Bt,Ce)|0,P=(P=P+Math.imul(Bt,Zt)|0)+Math.imul(G,Ce)|0,L=L+Math.imul(G,Zt)|0,C=C+Math.imul(ot,he)|0,P=(P=P+Math.imul(ot,Wt)|0)+Math.imul(ut,he)|0,L=L+Math.imul(ut,Wt)|0,C=C+Math.imul(K,Se)|0,P=(P=P+Math.imul(K,de)|0)+Math.imul(nt,Se)|0,L=L+Math.imul(nt,de)|0,C=C+Math.imul(bt,Fe)|0,P=(P=P+Math.imul(bt,re)|0)+Math.imul(rt,Fe)|0,L=L+Math.imul(rt,re)|0;var Xn=(W+(C=C+Math.imul(et,De)|0)|0)+((8191&(P=(P=P+Math.imul(et,Ue)|0)+Math.imul(ft,De)|0))<<13)|0;W=((L=L+Math.imul(ft,Ue)|0)+(P>>>13)|0)+(Xn>>>26)|0,Xn&=67108863,C=Math.imul(vt,wt),P=(P=Math.imul(vt,Pt))+Math.imul(Y,wt)|0,L=Math.imul(Y,Pt),C=C+Math.imul(ct,Rt)|0,P=(P=P+Math.imul(ct,mt)|0)+Math.imul(pt,Rt)|0,L=L+Math.imul(pt,mt)|0,C=C+Math.imul(fe,Tt)|0,P=(P=P+Math.imul(fe,Ot)|0)+Math.imul(Kt,Tt)|0,L=L+Math.imul(Kt,Ot)|0,C=C+Math.imul(Ft,Lt)|0,P=(P=P+Math.imul(Ft,Ht)|0)+Math.imul(Xt,Lt)|0,L=L+Math.imul(Xt,Ht)|0,C=C+Math.imul(J,Ce)|0,P=(P=P+Math.imul(J,Zt)|0)+Math.imul(St,Ce)|0,L=L+Math.imul(St,Zt)|0,C=C+Math.imul(Bt,he)|0,P=(P=P+Math.imul(Bt,Wt)|0)+Math.imul(G,he)|0,L=L+Math.imul(G,Wt)|0,C=C+Math.imul(ot,Se)|0,P=(P=P+Math.imul(ot,de)|0)+Math.imul(ut,Se)|0,L=L+Math.imul(ut,de)|0,C=C+Math.imul(K,Fe)|0,P=(P=P+Math.imul(K,re)|0)+Math.imul(nt,Fe)|0,L=L+Math.imul(nt,re)|0;var ai=(W+(C=C+Math.imul(bt,De)|0)|0)+((8191&(P=(P=P+Math.imul(bt,Ue)|0)+Math.imul(rt,De)|0))<<13)|0;W=((L=L+Math.imul(rt,Ue)|0)+(P>>>13)|0)+(ai>>>26)|0,ai&=67108863,C=Math.imul(vt,Rt),P=(P=Math.imul(vt,mt))+Math.imul(Y,Rt)|0,L=Math.imul(Y,mt),C=C+Math.imul(ct,Tt)|0,P=(P=P+Math.imul(ct,Ot)|0)+Math.imul(pt,Tt)|0,L=L+Math.imul(pt,Ot)|0,C=C+Math.imul(fe,Lt)|0,P=(P=P+Math.imul(fe,Ht)|0)+Math.imul(Kt,Lt)|0,L=L+Math.imul(Kt,Ht)|0,C=C+Math.imul(Ft,Ce)|0,P=(P=P+Math.imul(Ft,Zt)|0)+Math.imul(Xt,Ce)|0,L=L+Math.imul(Xt,Zt)|0,C=C+Math.imul(J,he)|0,P=(P=P+Math.imul(J,Wt)|0)+Math.imul(St,he)|0,L=L+Math.imul(St,Wt)|0,C=C+Math.imul(Bt,Se)|0,P=(P=P+Math.imul(Bt,de)|0)+Math.imul(G,Se)|0,L=L+Math.imul(G,de)|0,C=C+Math.imul(ot,Fe)|0,P=(P=P+Math.imul(ot,re)|0)+Math.imul(ut,Fe)|0,L=L+Math.imul(ut,re)|0;var Oe=(W+(C=C+Math.imul(K,De)|0)|0)+((8191&(P=(P=P+Math.imul(K,Ue)|0)+Math.imul(nt,De)|0))<<13)|0;W=((L=L+Math.imul(nt,Ue)|0)+(P>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,C=Math.imul(vt,Tt),P=(P=Math.imul(vt,Ot))+Math.imul(Y,Tt)|0,L=Math.imul(Y,Ot),C=C+Math.imul(ct,Lt)|0,P=(P=P+Math.imul(ct,Ht)|0)+Math.imul(pt,Lt)|0,L=L+Math.imul(pt,Ht)|0,C=C+Math.imul(fe,Ce)|0,P=(P=P+Math.imul(fe,Zt)|0)+Math.imul(Kt,Ce)|0,L=L+Math.imul(Kt,Zt)|0,C=C+Math.imul(Ft,he)|0,P=(P=P+Math.imul(Ft,Wt)|0)+Math.imul(Xt,he)|0,L=L+Math.imul(Xt,Wt)|0,C=C+Math.imul(J,Se)|0,P=(P=P+Math.imul(J,de)|0)+Math.imul(St,Se)|0,L=L+Math.imul(St,de)|0,C=C+Math.imul(Bt,Fe)|0,P=(P=P+Math.imul(Bt,re)|0)+Math.imul(G,Fe)|0,L=L+Math.imul(G,re)|0;var kt=(W+(C=C+Math.imul(ot,De)|0)|0)+((8191&(P=(P=P+Math.imul(ot,Ue)|0)+Math.imul(ut,De)|0))<<13)|0;W=((L=L+Math.imul(ut,Ue)|0)+(P>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul(vt,Lt),P=(P=Math.imul(vt,Ht))+Math.imul(Y,Lt)|0,L=Math.imul(Y,Ht),C=C+Math.imul(ct,Ce)|0,P=(P=P+Math.imul(ct,Zt)|0)+Math.imul(pt,Ce)|0,L=L+Math.imul(pt,Zt)|0,C=C+Math.imul(fe,he)|0,P=(P=P+Math.imul(fe,Wt)|0)+Math.imul(Kt,he)|0,L=L+Math.imul(Kt,Wt)|0,C=C+Math.imul(Ft,Se)|0,P=(P=P+Math.imul(Ft,de)|0)+Math.imul(Xt,Se)|0,L=L+Math.imul(Xt,de)|0,C=C+Math.imul(J,Fe)|0,P=(P=P+Math.imul(J,re)|0)+Math.imul(St,Fe)|0,L=L+Math.imul(St,re)|0;var Dt=(W+(C=C+Math.imul(Bt,De)|0)|0)+((8191&(P=(P=P+Math.imul(Bt,Ue)|0)+Math.imul(G,De)|0))<<13)|0;W=((L=L+Math.imul(G,Ue)|0)+(P>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,C=Math.imul(vt,Ce),P=(P=Math.imul(vt,Zt))+Math.imul(Y,Ce)|0,L=Math.imul(Y,Zt),C=C+Math.imul(ct,he)|0,P=(P=P+Math.imul(ct,Wt)|0)+Math.imul(pt,he)|0,L=L+Math.imul(pt,Wt)|0,C=C+Math.imul(fe,Se)|0,P=(P=P+Math.imul(fe,de)|0)+Math.imul(Kt,Se)|0,L=L+Math.imul(Kt,de)|0,C=C+Math.imul(Ft,Fe)|0,P=(P=P+Math.imul(Ft,re)|0)+Math.imul(Xt,Fe)|0,L=L+Math.imul(Xt,re)|0;var Nt=(W+(C=C+Math.imul(J,De)|0)|0)+((8191&(P=(P=P+Math.imul(J,Ue)|0)+Math.imul(St,De)|0))<<13)|0;W=((L=L+Math.imul(St,Ue)|0)+(P>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(vt,he),P=(P=Math.imul(vt,Wt))+Math.imul(Y,he)|0,L=Math.imul(Y,Wt),C=C+Math.imul(ct,Se)|0,P=(P=P+Math.imul(ct,de)|0)+Math.imul(pt,Se)|0,L=L+Math.imul(pt,de)|0,C=C+Math.imul(fe,Fe)|0,P=(P=P+Math.imul(fe,re)|0)+Math.imul(Kt,Fe)|0,L=L+Math.imul(Kt,re)|0;var ye=(W+(C=C+Math.imul(Ft,De)|0)|0)+((8191&(P=(P=P+Math.imul(Ft,Ue)|0)+Math.imul(Xt,De)|0))<<13)|0;W=((L=L+Math.imul(Xt,Ue)|0)+(P>>>13)|0)+(ye>>>26)|0,ye&=67108863,C=Math.imul(vt,Se),P=(P=Math.imul(vt,de))+Math.imul(Y,Se)|0,L=Math.imul(Y,de),C=C+Math.imul(ct,Fe)|0,P=(P=P+Math.imul(ct,re)|0)+Math.imul(pt,Fe)|0,L=L+Math.imul(pt,re)|0;var Le=(W+(C=C+Math.imul(fe,De)|0)|0)+((8191&(P=(P=P+Math.imul(fe,Ue)|0)+Math.imul(Kt,De)|0))<<13)|0;W=((L=L+Math.imul(Kt,Ue)|0)+(P>>>13)|0)+(Le>>>26)|0,Le&=67108863,C=Math.imul(vt,Fe),P=(P=Math.imul(vt,re))+Math.imul(Y,Fe)|0,L=Math.imul(Y,re);var gr=(W+(C=C+Math.imul(ct,De)|0)|0)+((8191&(P=(P=P+Math.imul(ct,Ue)|0)+Math.imul(pt,De)|0))<<13)|0;W=((L=L+Math.imul(pt,Ue)|0)+(P>>>13)|0)+(gr>>>26)|0,gr&=67108863;var Kr=(W+(C=Math.imul(vt,De))|0)+((8191&(P=(P=Math.imul(vt,Ue))+Math.imul(Y,De)|0))<<13)|0;return W=((L=Math.imul(Y,Ue))+(P>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,B[0]=Sr,B[1]=ir,B[2]=$e,B[3]=ii,B[4]=oi,B[5]=Zr,B[6]=Br,B[7]=On,B[8]=Dn,B[9]=Xn,B[10]=ai,B[11]=Oe,B[12]=kt,B[13]=Dt,B[14]=Nt,B[15]=ye,B[16]=Le,B[17]=gr,B[18]=Kr,W!==0&&(B[19]=W,R.length++),R};function w(x,O,R){R.negative=O.negative^x.negative,R.length=x.length+O.length;for(var C=0,P=0,L=0;L<R.length-1;L++){var H=P;P=0;for(var U=67108863&C,B=Math.min(L,O.length-1),W=Math.max(0,L-x.length+1);W<=B;W++){var X=L-W,et=(0|x.words[X])*(0|O.words[W]),ft=67108863&et;U=67108863&(ft=ft+U|0),P+=(H=(H=H+(et/67108864|0)|0)+(ft>>>26)|0)>>>26,H&=67108863}R.words[L]=U,C=H,H=P}return C!==0?R.words[L]=C:R.length--,R._strip()}function k(x,O,R){return w(x,O,R)}Math.imul||(g=d),u.prototype.mulTo=function(x,O){var R=this.length+x.length;return this.length===10&&x.length===10?g(this,x,O):R<63?d(this,x,O):R<1024?w(this,x,O):k(this,x,O)},u.prototype.mul=function(x){var O=new u(null);return O.words=new Array(this.length+x.length),this.mulTo(x,O)},u.prototype.mulf=function(x){var O=new u(null);return O.words=new Array(this.length+x.length),k(this,x,O)},u.prototype.imul=function(x){return this.clone().mulTo(x,this)},u.prototype.imuln=function(x){var O=x<0;O&&(x=-x),f(typeof x=="number"),f(x<67108864);for(var R=0,C=0;C<this.length;C++){var P=(0|this.words[C])*x,L=(67108863&P)+(67108863&R);R>>=26,R+=P/67108864|0,R+=L>>>26,this.words[C]=67108863&L}return R!==0&&(this.words[C]=R,this.length++),O?this.ineg():this},u.prototype.muln=function(x){return this.clone().imuln(x)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(x){var O=a(x);if(O.length===0)return new u(1);for(var R=this,C=0;C<O.length&&O[C]===0;C++,R=R.sqr());if(++C<O.length)for(var P=R.sqr();C<O.length;C++,P=P.sqr())O[C]!==0&&(R=R.mul(P));return R},u.prototype.iushln=function(x){f(typeof x=="number"&&x>=0);var O,R=x%26,C=(x-R)/26,P=67108863>>>26-R<<26-R;if(R!==0){var L=0;for(O=0;O<this.length;O++){var H=this.words[O]&P,U=(0|this.words[O])-H<<R;this.words[O]=U|L,L=H>>>26-R}L&&(this.words[O]=L,this.length++)}if(C!==0){for(O=this.length-1;O>=0;O--)this.words[O+C]=this.words[O];for(O=0;O<C;O++)this.words[O]=0;this.length+=C}return this._strip()},u.prototype.ishln=function(x){return f(this.negative===0),this.iushln(x)},u.prototype.iushrn=function(x,O,R){var C;f(typeof x=="number"&&x>=0),C=O?(O-O%26)/26:0;var P=x%26,L=Math.min((x-P)/26,this.length),H=67108863^67108863>>>P<<P,U=R;if(C-=L,C=Math.max(0,C),U){for(var B=0;B<L;B++)U.words[B]=this.words[B];U.length=L}if(L!==0)if(this.length>L)for(this.length-=L,B=0;B<this.length;B++)this.words[B]=this.words[B+L];else this.words[0]=0,this.length=1;var W=0;for(B=this.length-1;B>=0&&(W!==0||B>=C);B--){var X=0|this.words[B];this.words[B]=W<<26-P|X>>>P,W=X&H}return U&&W!==0&&(U.words[U.length++]=W),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},u.prototype.ishrn=function(x,O,R){return f(this.negative===0),this.iushrn(x,O,R)},u.prototype.shln=function(x){return this.clone().ishln(x)},u.prototype.ushln=function(x){return this.clone().iushln(x)},u.prototype.shrn=function(x){return this.clone().ishrn(x)},u.prototype.ushrn=function(x){return this.clone().iushrn(x)},u.prototype.testn=function(x){f(typeof x=="number"&&x>=0);var O=x%26,R=(x-O)/26,C=1<<O;return!(this.length<=R||!(this.words[R]&C))},u.prototype.imaskn=function(x){f(typeof x=="number"&&x>=0);var O=x%26,R=(x-O)/26;if(f(this.negative===0,"imaskn works only with positive numbers"),this.length<=R)return this;if(O!==0&&R++,this.length=Math.min(R,this.length),O!==0){var C=67108863^67108863>>>O<<O;this.words[this.length-1]&=C}return this._strip()},u.prototype.maskn=function(x){return this.clone().imaskn(x)},u.prototype.iaddn=function(x){return f(typeof x=="number"),f(x<67108864),x<0?this.isubn(-x):this.negative!==0?this.length===1&&(0|this.words[0])<=x?(this.words[0]=x-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(x),this.negative=1,this):this._iaddn(x)},u.prototype._iaddn=function(x){this.words[0]+=x;for(var O=0;O<this.length&&this.words[O]>=67108864;O++)this.words[O]-=67108864,O===this.length-1?this.words[O+1]=1:this.words[O+1]++;return this.length=Math.max(this.length,O+1),this},u.prototype.isubn=function(x){if(f(typeof x=="number"),f(x<67108864),x<0)return this.iaddn(-x);if(this.negative!==0)return this.negative=0,this.iaddn(x),this.negative=1,this;if(this.words[0]-=x,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var O=0;O<this.length&&this.words[O]<0;O++)this.words[O]+=67108864,this.words[O+1]-=1;return this._strip()},u.prototype.addn=function(x){return this.clone().iaddn(x)},u.prototype.subn=function(x){return this.clone().isubn(x)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(x,O,R){var C,P,L=x.length+R;this._expand(L);var H=0;for(C=0;C<x.length;C++){P=(0|this.words[C+R])+H;var U=(0|x.words[C])*O;H=((P-=67108863&U)>>26)-(U/67108864|0),this.words[C+R]=67108863&P}for(;C<this.length-R;C++)H=(P=(0|this.words[C+R])+H)>>26,this.words[C+R]=67108863&P;if(H===0)return this._strip();for(f(H===-1),H=0,C=0;C<this.length;C++)H=(P=-(0|this.words[C])+H)>>26,this.words[C]=67108863&P;return this.negative=1,this._strip()},u.prototype._wordDiv=function(x,O){var R=this.length-x.length,C=this.clone(),P=x,L=0|P.words[P.length-1];(R=26-this._countBits(L))!=0&&(P=P.ushln(R),C.iushln(R),L=0|P.words[P.length-1]);var H,U=C.length-P.length;if(O!=="mod"){(H=new u(null)).length=U+1,H.words=new Array(H.length);for(var B=0;B<H.length;B++)H.words[B]=0}var W=C.clone()._ishlnsubmul(P,1,U);W.negative===0&&(C=W,H&&(H.words[U]=1));for(var X=U-1;X>=0;X--){var et=67108864*(0|C.words[P.length+X])+(0|C.words[P.length+X-1]);for(et=Math.min(et/L|0,67108863),C._ishlnsubmul(P,et,X);C.negative!==0;)et--,C.negative=0,C._ishlnsubmul(P,1,X),C.isZero()||(C.negative^=1);H&&(H.words[X]=et)}return H&&H._strip(),C._strip(),O!=="div"&&R!==0&&C.iushrn(R),{div:H||null,mod:C}},u.prototype.divmod=function(x,O,R){return f(!x.isZero()),this.isZero()?{div:new u(0),mod:new u(0)}:this.negative!==0&&x.negative===0?(L=this.neg().divmod(x,O),O!=="mod"&&(C=L.div.neg()),O!=="div"&&(P=L.mod.neg(),R&&P.negative!==0&&P.iadd(x)),{div:C,mod:P}):this.negative===0&&x.negative!==0?(L=this.divmod(x.neg(),O),O!=="mod"&&(C=L.div.neg()),{div:C,mod:L.mod}):this.negative&x.negative?(L=this.neg().divmod(x.neg(),O),O!=="div"&&(P=L.mod.neg(),R&&P.negative!==0&&P.isub(x)),{div:L.div,mod:P}):x.length>this.length||this.cmp(x)<0?{div:new u(0),mod:this}:x.length===1?O==="div"?{div:this.divn(x.words[0]),mod:null}:O==="mod"?{div:null,mod:new u(this.modrn(x.words[0]))}:{div:this.divn(x.words[0]),mod:new u(this.modrn(x.words[0]))}:this._wordDiv(x,O);var C,P,L},u.prototype.div=function(x){return this.divmod(x,"div",!1).div},u.prototype.mod=function(x){return this.divmod(x,"mod",!1).mod},u.prototype.umod=function(x){return this.divmod(x,"mod",!0).mod},u.prototype.divRound=function(x){var O=this.divmod(x);if(O.mod.isZero())return O.div;var R=O.div.negative!==0?O.mod.isub(x):O.mod,C=x.ushrn(1),P=x.andln(1),L=R.cmp(C);return L<0||P===1&&L===0?O.div:O.div.negative!==0?O.div.isubn(1):O.div.iaddn(1)},u.prototype.modrn=function(x){var O=x<0;O&&(x=-x),f(x<=67108863);for(var R=(1<<26)%x,C=0,P=this.length-1;P>=0;P--)C=(R*C+(0|this.words[P]))%x;return O?-C:C},u.prototype.modn=function(x){return this.modrn(x)},u.prototype.idivn=function(x){var O=x<0;O&&(x=-x),f(x<=67108863);for(var R=0,C=this.length-1;C>=0;C--){var P=(0|this.words[C])+67108864*R;this.words[C]=P/x|0,R=P%x}return this._strip(),O?this.ineg():this},u.prototype.divn=function(x){return this.clone().idivn(x)},u.prototype.egcd=function(x){f(x.negative===0),f(!x.isZero());var O=this,R=x.clone();O=O.negative!==0?O.umod(x):O.clone();for(var C=new u(1),P=new u(0),L=new u(0),H=new u(1),U=0;O.isEven()&&R.isEven();)O.iushrn(1),R.iushrn(1),++U;for(var B=R.clone(),W=O.clone();!O.isZero();){for(var X=0,et=1;!(O.words[0]&et)&&X<26;++X,et<<=1);if(X>0)for(O.iushrn(X);X-- >0;)(C.isOdd()||P.isOdd())&&(C.iadd(B),P.isub(W)),C.iushrn(1),P.iushrn(1);for(var ft=0,gt=1;!(R.words[0]>)&&ft<26;++ft,gt<<=1);if(ft>0)for(R.iushrn(ft);ft-- >0;)(L.isOdd()||H.isOdd())&&(L.iadd(B),H.isub(W)),L.iushrn(1),H.iushrn(1);O.cmp(R)>=0?(O.isub(R),C.isub(L),P.isub(H)):(R.isub(O),L.isub(C),H.isub(P))}return{a:L,b:H,gcd:R.iushln(U)}},u.prototype._invmp=function(x){f(x.negative===0),f(!x.isZero());var O=this,R=x.clone();O=O.negative!==0?O.umod(x):O.clone();for(var C,P=new u(1),L=new u(0),H=R.clone();O.cmpn(1)>0&&R.cmpn(1)>0;){for(var U=0,B=1;!(O.words[0]&B)&&U<26;++U,B<<=1);if(U>0)for(O.iushrn(U);U-- >0;)P.isOdd()&&P.iadd(H),P.iushrn(1);for(var W=0,X=1;!(R.words[0]&X)&&W<26;++W,X<<=1);if(W>0)for(R.iushrn(W);W-- >0;)L.isOdd()&&L.iadd(H),L.iushrn(1);O.cmp(R)>=0?(O.isub(R),P.isub(L)):(R.isub(O),L.isub(P))}return(C=O.cmpn(1)===0?P:L).cmpn(0)<0&&C.iadd(x),C},u.prototype.gcd=function(x){if(this.isZero())return x.abs();if(x.isZero())return this.abs();var O=this.clone(),R=x.clone();O.negative=0,R.negative=0;for(var C=0;O.isEven()&&R.isEven();C++)O.iushrn(1),R.iushrn(1);for(;;){for(;O.isEven();)O.iushrn(1);for(;R.isEven();)R.iushrn(1);var P=O.cmp(R);if(P<0){var L=O;O=R,R=L}else if(P===0||R.cmpn(1)===0)break;O.isub(R)}return R.iushln(C)},u.prototype.invm=function(x){return this.egcd(x).a.umod(x)},u.prototype.isEven=function(){return(1&this.words[0])==0},u.prototype.isOdd=function(){return(1&this.words[0])==1},u.prototype.andln=function(x){return this.words[0]&x},u.prototype.bincn=function(x){f(typeof x=="number");var O=x%26,R=(x-O)/26,C=1<<O;if(this.length<=R)return this._expand(R+1),this.words[R]|=C,this;for(var P=C,L=R;P!==0&&L<this.length;L++){var H=0|this.words[L];P=(H+=P)>>>26,H&=67108863,this.words[L]=H}return P!==0&&(this.words[L]=P,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(x){var O,R=x<0;if(this.negative!==0&&!R)return-1;if(this.negative===0&&R)return 1;if(this._strip(),this.length>1)O=1;else{R&&(x=-x),f(x<=67108863,"Number is too big");var C=0|this.words[0];O=C===x?0:C<x?-1:1}return this.negative!==0?0|-O:O},u.prototype.cmp=function(x){if(this.negative!==0&&x.negative===0)return-1;if(this.negative===0&&x.negative!==0)return 1;var O=this.ucmp(x);return this.negative!==0?0|-O:O},u.prototype.ucmp=function(x){if(this.length>x.length)return 1;if(this.length<x.length)return-1;for(var O=0,R=this.length-1;R>=0;R--){var C=0|this.words[R],P=0|x.words[R];if(C!==P){C<P?O=-1:C>P&&(O=1);break}}return O},u.prototype.gtn=function(x){return this.cmpn(x)===1},u.prototype.gt=function(x){return this.cmp(x)===1},u.prototype.gten=function(x){return this.cmpn(x)>=0},u.prototype.gte=function(x){return this.cmp(x)>=0},u.prototype.ltn=function(x){return this.cmpn(x)===-1},u.prototype.lt=function(x){return this.cmp(x)===-1},u.prototype.lten=function(x){return this.cmpn(x)<=0},u.prototype.lte=function(x){return this.cmp(x)<=0},u.prototype.eqn=function(x){return this.cmpn(x)===0},u.prototype.eq=function(x){return this.cmp(x)===0},u.red=function(x){return new T(x)},u.prototype.toRed=function(x){return f(!this.red,"Already a number in reduction context"),f(this.negative===0,"red works only with positives"),x.convertTo(this)._forceRed(x)},u.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(x){return this.red=x,this},u.prototype.forceRed=function(x){return f(!this.red,"Already a number in reduction context"),this._forceRed(x)},u.prototype.redAdd=function(x){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,x)},u.prototype.redIAdd=function(x){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,x)},u.prototype.redSub=function(x){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,x)},u.prototype.redISub=function(x){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,x)},u.prototype.redShl=function(x){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,x)},u.prototype.redMul=function(x){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.mul(this,x)},u.prototype.redIMul=function(x){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,x),this.red.imul(this,x)},u.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(x){return f(this.red&&!x.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,x)};var S={k256:null,p224:null,p192:null,p25519:null};function A(x,O){this.name=x,this.p=new u(O,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function j(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function D(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function N(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function F(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(x){if(typeof x=="string"){var O=u._prime(x);this.m=O.p,this.prime=O}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function I(x){T.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var x=new u(null);return x.words=new Array(Math.ceil(this.n/13)),x},A.prototype.ireduce=function(x){var O,R=x;do this.split(R,this.tmp),O=(R=(R=this.imulK(R)).iadd(this.tmp)).bitLength();while(O>this.n);var C=O<this.n?-1:R.ucmp(this.p);return C===0?(R.words[0]=0,R.length=1):C>0?R.isub(this.p):R.strip!==void 0?R.strip():R._strip(),R},A.prototype.split=function(x,O){x.iushrn(this.n,0,O)},A.prototype.imulK=function(x){return x.imul(this.k)},l(j,A),j.prototype.split=function(x,O){for(var R=4194303,C=Math.min(x.length,9),P=0;P<C;P++)O.words[P]=x.words[P];if(O.length=C,x.length<=9)return x.words[0]=0,void(x.length=1);var L=x.words[9];for(O.words[O.length++]=L&R,P=10;P<x.length;P++){var H=0|x.words[P];x.words[P-10]=(H&R)<<4|L>>>22,L=H}L>>>=22,x.words[P-10]=L,L===0&&x.length>10?x.length-=10:x.length-=9},j.prototype.imulK=function(x){x.words[x.length]=0,x.words[x.length+1]=0,x.length+=2;for(var O=0,R=0;R<x.length;R++){var C=0|x.words[R];O+=977*C,x.words[R]=67108863&O,O=64*C+(O/67108864|0)}return x.words[x.length-1]===0&&(x.length--,x.words[x.length-1]===0&&x.length--),x},l(D,A),l(N,A),l(F,A),F.prototype.imulK=function(x){for(var O=0,R=0;R<x.length;R++){var C=19*(0|x.words[R])+O,P=67108863&C;C>>>=26,x.words[R]=P,O=C}return O!==0&&(x.words[x.length++]=O),x},u._prime=function(x){if(S[x])return S[x];var O;if(x==="k256")O=new j;else if(x==="p224")O=new D;else if(x==="p192")O=new N;else{if(x!=="p25519")throw new Error("Unknown prime "+x);O=new F}return S[x]=O,O},T.prototype._verify1=function(x){f(x.negative===0,"red works only with positives"),f(x.red,"red works only with red numbers")},T.prototype._verify2=function(x,O){f((x.negative|O.negative)==0,"red works only with positives"),f(x.red&&x.red===O.red,"red works only with red numbers")},T.prototype.imod=function(x){return this.prime?this.prime.ireduce(x)._forceRed(this):(b(x,x.umod(this.m)._forceRed(this)),x)},T.prototype.neg=function(x){return x.isZero()?x.clone():this.m.sub(x)._forceRed(this)},T.prototype.add=function(x,O){this._verify2(x,O);var R=x.add(O);return R.cmp(this.m)>=0&&R.isub(this.m),R._forceRed(this)},T.prototype.iadd=function(x,O){this._verify2(x,O);var R=x.iadd(O);return R.cmp(this.m)>=0&&R.isub(this.m),R},T.prototype.sub=function(x,O){this._verify2(x,O);var R=x.sub(O);return R.cmpn(0)<0&&R.iadd(this.m),R._forceRed(this)},T.prototype.isub=function(x,O){this._verify2(x,O);var R=x.isub(O);return R.cmpn(0)<0&&R.iadd(this.m),R},T.prototype.shl=function(x,O){return this._verify1(x),this.imod(x.ushln(O))},T.prototype.imul=function(x,O){return this._verify2(x,O),this.imod(x.imul(O))},T.prototype.mul=function(x,O){return this._verify2(x,O),this.imod(x.mul(O))},T.prototype.isqr=function(x){return this.imul(x,x.clone())},T.prototype.sqr=function(x){return this.mul(x,x)},T.prototype.sqrt=function(x){if(x.isZero())return x.clone();var O=this.m.andln(3);if(f(O%2==1),O===3){var R=this.m.add(new u(1)).iushrn(2);return this.pow(x,R)}for(var C=this.m.subn(1),P=0;!C.isZero()&&C.andln(1)===0;)P++,C.iushrn(1);f(!C.isZero());var L=new u(1).toRed(this),H=L.redNeg(),U=this.m.subn(1).iushrn(1),B=this.m.bitLength();for(B=new u(2*B*B).toRed(this);this.pow(B,U).cmp(H)!==0;)B.redIAdd(H);for(var W=this.pow(B,C),X=this.pow(x,C.addn(1).iushrn(1)),et=this.pow(x,C),ft=P;et.cmp(L)!==0;){for(var gt=et,bt=0;gt.cmp(L)!==0;bt++)gt=gt.redSqr();f(bt<ft);var rt=this.pow(W,new u(1).iushln(ft-bt-1));X=X.redMul(rt),W=rt.redSqr(),et=et.redMul(W),ft=bt}return X},T.prototype.invm=function(x){var O=x._invmp(this.m);return O.negative!==0?(O.negative=0,this.imod(O).redNeg()):this.imod(O)},T.prototype.pow=function(x,O){if(O.isZero())return new u(1).toRed(this);if(O.cmpn(1)===0)return x.clone();var R=4,C=new Array(1<<R);C[0]=new u(1).toRed(this),C[1]=x;for(var P=2;P<C.length;P++)C[P]=this.mul(C[P-1],x);var L=C[0],H=0,U=0,B=O.bitLength()%26;for(B===0&&(B=26),P=O.length-1;P>=0;P--){for(var W=O.words[P],X=B-1;X>=0;X--){var et=W>>X&1;L!==C[0]&&(L=this.sqr(L)),et!==0||H!==0?(H<<=1,H|=et,(++U===R||P===0&&X===0)&&(L=this.mul(L,C[H]),U=0,H=0)):U=0}B=26}return L},T.prototype.convertTo=function(x){var O=x.umod(this.m);return O===x?O.clone():O},T.prototype.convertFrom=function(x){var O=x.clone();return O.red=null,O},u.mont=function(x){return new I(x)},l(I,T),I.prototype.convertTo=function(x){return this.imod(x.ushln(this.shift))},I.prototype.convertFrom=function(x){var O=this.imod(x.mul(this.rinv));return O.red=null,O},I.prototype.imul=function(x,O){if(x.isZero()||O.isZero())return x.words[0]=0,x.length=1,x;var R=x.imul(O),C=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=R.isub(C).iushrn(this.shift),L=P;return P.cmp(this.m)>=0?L=P.isub(this.m):P.cmpn(0)<0&&(L=P.iadd(this.m)),L._forceRed(this)},I.prototype.mul=function(x,O){if(x.isZero()||O.isZero())return new u(0)._forceRed(this);var R=x.mul(O),C=R.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=R.isub(C).iushrn(this.shift),L=P;return P.cmp(this.m)>=0?L=P.isub(this.m):P.cmpn(0)<0&&(L=P.iadd(this.m)),L._forceRed(this)},I.prototype.invm=function(x){return this.imod(x._invmp(this.m).mul(this.r2))._forceRed(this)}})(r===void 0||r,void 0)},{buffer:185}],184:[function(t,r,e){function n(l){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u})(l)}var i;function c(l){this.rand=l}if(r.exports=function(l){return i||(i=new c(null)),i.generate(l)},r.exports.Rand=c,c.prototype.generate=function(l){return this._rand(l)},c.prototype._rand=function(l){if(this.rand.getBytes)return this.rand.getBytes(l);for(var u=new Uint8Array(l),y=0;y<u.length;y++)u[y]=this.rand.getByte();return u},(typeof self=="undefined"?"undefined":n(self))==="object")self.crypto&&self.crypto.getRandomValues?c.prototype._rand=function(l){var u=new Uint8Array(l);return self.crypto.getRandomValues(u),u}:self.msCrypto&&self.msCrypto.getRandomValues?c.prototype._rand=function(l){var u=new Uint8Array(l);return self.msCrypto.getRandomValues(u),u}:(typeof window=="undefined"?"undefined":n(window))==="object"&&(c.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var f=t("crypto");if(typeof f.randomBytes!="function")throw new Error("Not supported");c.prototype._rand=function(l){return f.randomBytes(l)}}catch(l){}},{crypto:185}],185:[function(t,r,e){},{}],186:[function(t,r,e){var n=t("safe-buffer").Buffer;function i(p){n.isBuffer(p)||(p=n.from(p));for(var m=p.length/4|0,b=new Array(m),v=0;v<m;v++)b[v]=p.readUInt32BE(4*v);return b}function c(p){for(var m=0;m<p.length;p++)p[m]=0}function f(p,m,b,v,_){for(var s,o,h,a,d=b[0],g=b[1],w=b[2],k=b[3],S=p[0]^m[0],A=p[1]^m[1],j=p[2]^m[2],D=p[3]^m[3],N=4,F=1;F<_;F++)s=d[S>>>24]^g[A>>>16&255]^w[j>>>8&255]^k[255&D]^m[N++],o=d[A>>>24]^g[j>>>16&255]^w[D>>>8&255]^k[255&S]^m[N++],h=d[j>>>24]^g[D>>>16&255]^w[S>>>8&255]^k[255&A]^m[N++],a=d[D>>>24]^g[S>>>16&255]^w[A>>>8&255]^k[255&j]^m[N++],S=s,A=o,j=h,D=a;return s=(v[S>>>24]<<24|v[A>>>16&255]<<16|v[j>>>8&255]<<8|v[255&D])^m[N++],o=(v[A>>>24]<<24|v[j>>>16&255]<<16|v[D>>>8&255]<<8|v[255&S])^m[N++],h=(v[j>>>24]<<24|v[D>>>16&255]<<16|v[S>>>8&255]<<8|v[255&A])^m[N++],a=(v[D>>>24]<<24|v[S>>>16&255]<<16|v[A>>>8&255]<<8|v[255&j])^m[N++],[s>>>=0,o>>>=0,h>>>=0,a>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var p=new Array(256),m=0;m<256;m++)p[m]=m<128?m<<1:m<<1^283;for(var b=[],v=[],_=[[],[],[],[]],s=[[],[],[],[]],o=0,h=0,a=0;a<256;++a){var d=h^h<<1^h<<2^h<<3^h<<4;d=d>>>8^255&d^99,b[o]=d,v[d]=o;var g=p[o],w=p[g],k=p[w],S=257*p[d]^16843008*d;_[0][o]=S<<24|S>>>8,_[1][o]=S<<16|S>>>16,_[2][o]=S<<8|S>>>24,_[3][o]=S,S=16843009*k^65537*w^257*g^16843008*o,s[0][d]=S<<24|S>>>8,s[1][d]=S<<16|S>>>16,s[2][d]=S<<8|S>>>24,s[3][d]=S,o===0?o=h=1:(o=g^p[p[p[k^g]]],h^=p[p[h]])}return{SBOX:b,INV_SBOX:v,SUB_MIX:_,INV_SUB_MIX:s}}();function y(p){this._key=i(p),this._reset()}y.blockSize=16,y.keySize=32,y.prototype.blockSize=y.blockSize,y.prototype.keySize=y.keySize,y.prototype._reset=function(){for(var p=this._key,m=p.length,b=m+6,v=4*(b+1),_=[],s=0;s<m;s++)_[s]=p[s];for(s=m;s<v;s++){var o=_[s-1];s%m==0?(o=o<<8|o>>>24,o=u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o],o^=l[s/m|0]<<24):m>6&&s%m==4&&(o=u.SBOX[o>>>24]<<24|u.SBOX[o>>>16&255]<<16|u.SBOX[o>>>8&255]<<8|u.SBOX[255&o]),_[s]=_[s-m]^o}for(var h=[],a=0;a<v;a++){var d=v-a,g=_[d-(a%4?0:4)];h[a]=a<4||d<=4?g:u.INV_SUB_MIX[0][u.SBOX[g>>>24]]^u.INV_SUB_MIX[1][u.SBOX[g>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[g>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&g]]}this._nRounds=b,this._keySchedule=_,this._invKeySchedule=h},y.prototype.encryptBlockRaw=function(p){return f(p=i(p),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},y.prototype.encryptBlock=function(p){var m=this.encryptBlockRaw(p),b=n.allocUnsafe(16);return b.writeUInt32BE(m[0],0),b.writeUInt32BE(m[1],4),b.writeUInt32BE(m[2],8),b.writeUInt32BE(m[3],12),b},y.prototype.decryptBlock=function(p){var m=(p=i(p))[1];p[1]=p[3],p[3]=m;var b=f(p,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),v=n.allocUnsafe(16);return v.writeUInt32BE(b[0],0),v.writeUInt32BE(b[3],4),v.writeUInt32BE(b[2],8),v.writeUInt32BE(b[1],12),v},y.prototype.scrub=function(){c(this._keySchedule),c(this._invKeySchedule),c(this._key)},r.exports.AES=y},{"safe-buffer":494}],187:[function(t,r,e){var n=t("./aes"),i=t("safe-buffer").Buffer,c=t("cipher-base"),f=t("inherits"),l=t("./ghash"),u=t("buffer-xor"),y=t("./incr32");function p(v,_){var s=0;v.length!==_.length&&s++;for(var o=Math.min(v.length,_.length),h=0;h<o;++h)s+=v[h]^_[h];return s}function m(v,_,s){if(_.length===12)return v._finID=i.concat([_,i.from([0,0,0,1])]),i.concat([_,i.from([0,0,0,2])]);var o=new l(s),h=_.length,a=h%16;o.update(_),a&&(a=16-a,o.update(i.alloc(a,0))),o.update(i.alloc(8,0));var d=8*h,g=i.alloc(8);g.writeUIntBE(d,0,8),o.update(g),v._finID=o.state;var w=i.from(v._finID);return y(w),w}function b(v,_,s,o){c.call(this);var h=i.alloc(4,0);this._cipher=new n.AES(_);var a=this._cipher.encryptBlock(h);this._ghash=new l(a),s=m(this,s,a),this._prev=i.from(s),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=v,this._authTag=null,this._called=!1}f(b,c),b.prototype._update=function(v){if(!this._called&&this._alen){var _=16-this._alen%16;_<16&&(_=i.alloc(_,0),this._ghash.update(_))}this._called=!0;var s=this._mode.encrypt(this,v);return this._decrypt?this._ghash.update(v):this._ghash.update(s),this._len+=v.length,s},b.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var v=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&p(v,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=v,this._cipher.scrub()},b.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},b.prototype.setAuthTag=function(v){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=v},b.prototype.setAAD=function(v){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(v),this._alen+=v.length},r.exports=b},{"./aes":186,"./ghash":191,"./incr32":192,"buffer-xor":217,"cipher-base":218,inherits:387,"safe-buffer":494}],188:[function(t,r,e){var n=t("./encrypter"),i=t("./decrypter"),c=t("./modes/list.json");function f(){return Object.keys(c)}e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=f},{"./decrypter":189,"./encrypter":190,"./modes/list.json":200}],189:[function(t,r,e){var n=t("./authCipher"),i=t("safe-buffer").Buffer,c=t("./modes"),f=t("./streamCipher"),l=t("cipher-base"),u=t("./aes"),y=t("evp_bytestokey");function p(s,o,h){l.call(this),this._cache=new m,this._last=void 0,this._cipher=new u.AES(o),this._prev=i.from(h),this._mode=s,this._autopadding=!0}function m(){this.cache=i.allocUnsafe(0)}function b(s){var o=s[15];if(o<1||o>16)throw new Error("unable to decrypt data");for(var h=-1;++h<o;)if(s[h+(16-o)]!==o)throw new Error("unable to decrypt data");if(o!==16)return s.slice(0,16-o)}function v(s,o,h){var a=c[s.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if(typeof h=="string"&&(h=i.from(h)),a.mode!=="GCM"&&h.length!==a.iv)throw new TypeError("invalid iv length "+h.length);if(typeof o=="string"&&(o=i.from(o)),o.length!==a.key/8)throw new TypeError("invalid key length "+o.length);return a.type==="stream"?new f(a.module,o,h,!0):a.type==="auth"?new n(a.module,o,h,!0):new p(a.module,o,h)}function _(s,o){var h=c[s.toLowerCase()];if(!h)throw new TypeError("invalid suite type");var a=y(o,!1,h.key,h.iv);return v(s,a.key,a.iv)}t("inherits")(p,l),p.prototype._update=function(s){var o,h;this._cache.add(s);for(var a=[];o=this._cache.get(this._autopadding);)h=this._mode.decrypt(this,o),a.push(h);return i.concat(a)},p.prototype._final=function(){var s=this._cache.flush();if(this._autopadding)return b(this._mode.decrypt(this,s));if(s)throw new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(s){return this._autopadding=!!s,this},m.prototype.add=function(s){this.cache=i.concat([this.cache,s])},m.prototype.get=function(s){var o;if(s){if(this.cache.length>16)return o=this.cache.slice(0,16),this.cache=this.cache.slice(16),o}else if(this.cache.length>=16)return o=this.cache.slice(0,16),this.cache=this.cache.slice(16),o;return null},m.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=_,e.createDecipheriv=v},{"./aes":186,"./authCipher":187,"./modes":199,"./streamCipher":202,"cipher-base":218,evp_bytestokey:368,inherits:387,"safe-buffer":494}],190:[function(t,r,e){var n=t("./modes"),i=t("./authCipher"),c=t("safe-buffer").Buffer,f=t("./streamCipher"),l=t("cipher-base"),u=t("./aes"),y=t("evp_bytestokey");function p(s,o,h){l.call(this),this._cache=new b,this._cipher=new u.AES(o),this._prev=c.from(h),this._mode=s,this._autopadding=!0}t("inherits")(p,l),p.prototype._update=function(s){var o,h;this._cache.add(s);for(var a=[];o=this._cache.get();)h=this._mode.encrypt(this,o),a.push(h);return c.concat(a)};var m=c.alloc(16,16);function b(){this.cache=c.allocUnsafe(0)}function v(s,o,h){var a=n[s.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if(typeof o=="string"&&(o=c.from(o)),o.length!==a.key/8)throw new TypeError("invalid key length "+o.length);if(typeof h=="string"&&(h=c.from(h)),a.mode!=="GCM"&&h.length!==a.iv)throw new TypeError("invalid iv length "+h.length);return a.type==="stream"?new f(a.module,o,h):a.type==="auth"?new i(a.module,o,h):new p(a.module,o,h)}function _(s,o){var h=n[s.toLowerCase()];if(!h)throw new TypeError("invalid suite type");var a=y(o,!1,h.key,h.iv);return v(s,a.key,a.iv)}p.prototype._final=function(){var s=this._cache.flush();if(this._autopadding)return s=this._mode.encrypt(this,s),this._cipher.scrub(),s;if(!s.equals(m))throw this._cipher.scrub(),new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(s){return this._autopadding=!!s,this},b.prototype.add=function(s){this.cache=c.concat([this.cache,s])},b.prototype.get=function(){if(this.cache.length>15){var s=this.cache.slice(0,16);return this.cache=this.cache.slice(16),s}return null},b.prototype.flush=function(){for(var s=16-this.cache.length,o=c.allocUnsafe(s),h=-1;++h<s;)o.writeUInt8(s,h);return c.concat([this.cache,o])},e.createCipheriv=v,e.createCipher=_},{"./aes":186,"./authCipher":187,"./modes":199,"./streamCipher":202,"cipher-base":218,evp_bytestokey:368,inherits:387,"safe-buffer":494}],191:[function(t,r,e){var n=t("safe-buffer").Buffer,i=n.alloc(16,0);function c(u){return[u.readUInt32BE(0),u.readUInt32BE(4),u.readUInt32BE(8),u.readUInt32BE(12)]}function f(u){var y=n.allocUnsafe(16);return y.writeUInt32BE(u[0]>>>0,0),y.writeUInt32BE(u[1]>>>0,4),y.writeUInt32BE(u[2]>>>0,8),y.writeUInt32BE(u[3]>>>0,12),y}function l(u){this.h=u,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}l.prototype.ghash=function(u){for(var y=-1;++y<u.length;)this.state[y]^=u[y];this._multiply()},l.prototype._multiply=function(){for(var u,y,p=c(this.h),m=[0,0,0,0],b=-1;++b<128;){for(this.state[~~(b/8)]&1<<7-b%8&&(m[0]^=p[0],m[1]^=p[1],m[2]^=p[2],m[3]^=p[3]),y=(1&p[3])!=0,u=3;u>0;u--)p[u]=p[u]>>>1|(1&p[u-1])<<31;p[0]=p[0]>>>1,y&&(p[0]=p[0]^225<<24)}this.state=f(m)},l.prototype.update=function(u){var y;for(this.cache=n.concat([this.cache,u]);this.cache.length>=16;)y=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(y)},l.prototype.final=function(u,y){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(f([0,u,0,y])),this.state},r.exports=l},{"safe-buffer":494}],192:[function(t,r,e){function n(i){for(var c,f=i.length;f--;){if((c=i.readUInt8(f))!==255){c++,i.writeUInt8(c,f);break}i.writeUInt8(0,f)}}r.exports=n},{}],193:[function(t,r,e){var n=t("buffer-xor");e.encrypt=function(i,c){var f=n(c,i._prev);return i._prev=i._cipher.encryptBlock(f),i._prev},e.decrypt=function(i,c){var f=i._prev;i._prev=c;var l=i._cipher.decryptBlock(c);return n(l,f)}},{"buffer-xor":217}],194:[function(t,r,e){var n=t("safe-buffer").Buffer,i=t("buffer-xor");function c(f,l,u){var y=l.length,p=i(l,f._cache);return f._cache=f._cache.slice(y),f._prev=n.concat([f._prev,u?l:p]),p}e.encrypt=function(f,l,u){for(var y,p=n.allocUnsafe(0);l.length;){if(f._cache.length===0&&(f._cache=f._cipher.encryptBlock(f._prev),f._prev=n.allocUnsafe(0)),!(f._cache.length<=l.length)){p=n.concat([p,c(f,l,u)]);break}y=f._cache.length,p=n.concat([p,c(f,l.slice(0,y),u)]),l=l.slice(y)}return p}},{"buffer-xor":217,"safe-buffer":494}],195:[function(t,r,e){var n=t("safe-buffer").Buffer;function i(f,l,u){for(var y,p,m=-1,b=8,v=0;++m<b;)y=l&1<<7-m?128:0,v+=(128&(p=f._cipher.encryptBlock(f._prev)[0]^y))>>m%8,f._prev=c(f._prev,u?y:p);return v}function c(f,l){var u=f.length,y=-1,p=n.allocUnsafe(f.length);for(f=n.concat([f,n.from([l])]);++y<u;)p[y]=f[y]<<1|f[y+1]>>7;return p}e.encrypt=function(f,l,u){for(var y=l.length,p=n.allocUnsafe(y),m=-1;++m<y;)p[m]=i(f,l[m],u);return p}},{"safe-buffer":494}],196:[function(t,r,e){var n=t("safe-buffer").Buffer;function i(c,f,l){var u=c._cipher.encryptBlock(c._prev)[0]^f;return c._prev=n.concat([c._prev.slice(1),n.from([l?f:u])]),u}e.encrypt=function(c,f,l){for(var u=f.length,y=n.allocUnsafe(u),p=-1;++p<u;)y[p]=i(c,f[p],l);return y}},{"safe-buffer":494}],197:[function(t,r,e){var n=t("buffer-xor"),i=t("safe-buffer").Buffer,c=t("../incr32");function f(u){var y=u._cipher.encryptBlockRaw(u._prev);return c(u._prev),y}var l=16;e.encrypt=function(u,y){var p=Math.ceil(y.length/l),m=u._cache.length;u._cache=i.concat([u._cache,i.allocUnsafe(p*l)]);for(var b=0;b<p;b++){var v=f(u),_=m+b*l;u._cache.writeUInt32BE(v[0],_+0),u._cache.writeUInt32BE(v[1],_+4),u._cache.writeUInt32BE(v[2],_+8),u._cache.writeUInt32BE(v[3],_+12)}var s=u._cache.slice(0,y.length);return u._cache=u._cache.slice(y.length),n(y,s)}},{"../incr32":192,"buffer-xor":217,"safe-buffer":494}],198:[function(t,r,e){e.encrypt=function(n,i){return n._cipher.encryptBlock(i)},e.decrypt=function(n,i){return n._cipher.decryptBlock(i)}},{}],199:[function(t,r,e){var n={ECB:t("./ecb"),CBC:t("./cbc"),CFB:t("./cfb"),CFB8:t("./cfb8"),CFB1:t("./cfb1"),OFB:t("./ofb"),CTR:t("./ctr"),GCM:t("./ctr")},i=t("./list.json");for(var c in i)i[c].module=n[i[c].mode];r.exports=i},{"./cbc":193,"./cfb":194,"./cfb1":195,"./cfb8":196,"./ctr":197,"./ecb":198,"./list.json":200,"./ofb":201}],200:[function(t,r,e){r.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],201:[function(t,r,e){(function(n){var i=t("buffer-xor");function c(f){return f._prev=f._cipher.encryptBlock(f._prev),f._prev}e.encrypt=function(f,l){for(;f._cache.length<l.length;)f._cache=n.concat([f._cache,c(f)]);var u=f._cache.slice(0,l.length);return f._cache=f._cache.slice(l.length),i(l,u)}}).call(this,t("buffer").Buffer)},{buffer:216,"buffer-xor":217}],202:[function(t,r,e){var n=t("./aes"),i=t("safe-buffer").Buffer,c=t("cipher-base");function f(l,u,y,p){c.call(this),this._cipher=new n.AES(u),this._prev=i.from(y),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=p,this._mode=l}t("inherits")(f,c),f.prototype._update=function(l){return this._mode.encrypt(this,l,this._decrypt)},f.prototype._final=function(){this._cipher.scrub()},r.exports=f},{"./aes":186,"cipher-base":218,inherits:387,"safe-buffer":494}],203:[function(t,r,e){var n=t("browserify-des"),i=t("browserify-aes/browser"),c=t("browserify-aes/modes"),f=t("browserify-des/modes"),l=t("evp_bytestokey");function u(v,_){var s,o;if(v=v.toLowerCase(),c[v])s=c[v].key,o=c[v].iv;else{if(!f[v])throw new TypeError("invalid suite type");s=8*f[v].key,o=f[v].iv}var h=l(_,!1,s,o);return p(v,h.key,h.iv)}function y(v,_){var s,o;if(v=v.toLowerCase(),c[v])s=c[v].key,o=c[v].iv;else{if(!f[v])throw new TypeError("invalid suite type");s=8*f[v].key,o=f[v].iv}var h=l(_,!1,s,o);return m(v,h.key,h.iv)}function p(v,_,s){if(v=v.toLowerCase(),c[v])return i.createCipheriv(v,_,s);if(f[v])return new n({key:_,iv:s,mode:v});throw new TypeError("invalid suite type")}function m(v,_,s){if(v=v.toLowerCase(),c[v])return i.createDecipheriv(v,_,s);if(f[v])return new n({key:_,iv:s,mode:v,decrypt:!0});throw new TypeError("invalid suite type")}function b(){return Object.keys(f).concat(i.getCiphers())}e.createCipher=e.Cipher=u,e.createCipheriv=e.Cipheriv=p,e.createDecipher=e.Decipher=y,e.createDecipheriv=e.Decipheriv=m,e.listCiphers=e.getCiphers=b},{"browserify-aes/browser":188,"browserify-aes/modes":199,"browserify-des":204,"browserify-des/modes":205,evp_bytestokey:368}],204:[function(t,r,e){var n=t("cipher-base"),i=t("des.js"),c=t("inherits"),f=t("safe-buffer").Buffer,l={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(y){n.call(this);var p,m=y.mode.toLowerCase(),b=l[m];p=y.decrypt?"decrypt":"encrypt";var v=y.key;f.isBuffer(v)||(v=f.from(v)),m!=="des-ede"&&m!=="des-ede-cbc"||(v=f.concat([v,v.slice(0,8)]));var _=y.iv;f.isBuffer(_)||(_=f.from(_)),this._des=b.create({key:v,iv:_,type:p})}l.des=l["des-cbc"],l.des3=l["des-ede3-cbc"],r.exports=u,c(u,n),u.prototype._update=function(y){return f.from(this._des.update(y))},u.prototype._final=function(){return f.from(this._des.final())}},{"cipher-base":218,"des.js":339,inherits:387,"safe-buffer":494}],205:[function(t,r,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},{}],206:[function(t,r,e){(function(n){var i=t("bn.js"),c=t("randombytes");function f(y){var p=u(y);return{blinder:p.toRed(i.mont(y.modulus)).redPow(new i(y.publicExponent)).fromRed(),unblinder:p.invm(y.modulus)}}function l(y,p){var m=f(p),b=p.modulus.byteLength();i.mont(p.modulus);var v=new i(y).mul(m.blinder).umod(p.modulus),_=v.toRed(i.mont(p.prime1)),s=v.toRed(i.mont(p.prime2)),o=p.coefficient,h=p.prime1,a=p.prime2,d=_.redPow(p.exponent1),g=s.redPow(p.exponent2);d=d.fromRed(),g=g.fromRed();var w=d.isub(g).imul(o).umod(h);return w.imul(a),g.iadd(w),new n(g.imul(m.unblinder).umod(p.modulus).toArray(!1,b))}function u(y){for(var p=y.modulus.byteLength(),m=new i(c(p));m.cmp(y.modulus)>=0||!m.umod(y.prime1)||!m.umod(y.prime2);)m=new i(c(p));return m}r.exports=l,l.getr=u}).call(this,t("buffer").Buffer)},{"bn.js":207,buffer:216,randombytes:475}],207:[function(t,r,e){arguments[4][181][0].apply(e,arguments)},{buffer:185,dup:181}],208:[function(t,r,e){r.exports=t("./browser/algorithms.json")},{"./browser/algorithms.json":209}],209:[function(t,r,e){r.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],210:[function(t,r,e){r.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],211:[function(t,r,e){var n=t("safe-buffer").Buffer,i=t("create-hash"),c=t("readable-stream"),f=t("inherits"),l=t("./sign"),u=t("./verify"),y=t("./algorithms.json");function p(_){c.Writable.call(this);var s=y[_];if(!s)throw new Error("Unknown message digest");this._hashType=s.hash,this._hash=i(s.hash),this._tag=s.id,this._signType=s.sign}function m(_){c.Writable.call(this);var s=y[_];if(!s)throw new Error("Unknown message digest");this._hash=i(s.hash),this._tag=s.id,this._signType=s.sign}function b(_){return new p(_)}function v(_){return new m(_)}Object.keys(y).forEach(function(_){y[_].id=n.from(y[_].id,"hex"),y[_.toLowerCase()]=y[_]}),f(p,c.Writable),p.prototype._write=function(_,s,o){this._hash.update(_),o()},p.prototype.update=function(_,s){return typeof _=="string"&&(_=n.from(_,s)),this._hash.update(_),this},p.prototype.sign=function(_,s){this.end();var o=this._hash.digest(),h=l(o,_,this._hashType,this._signType,this._tag);return s?h.toString(s):h},f(m,c.Writable),m.prototype._write=function(_,s,o){this._hash.update(_),o()},m.prototype.update=function(_,s){return typeof _=="string"&&(_=n.from(_,s)),this._hash.update(_),this},m.prototype.verify=function(_,s,o){typeof s=="string"&&(s=n.from(s,o)),this.end();var h=this._hash.digest();return u(s,h,_,this._signType,this._tag)},r.exports={Sign:b,Verify:v,createSign:b,createVerify:v}},{"./algorithms.json":209,"./sign":212,"./verify":213,"create-hash":331,inherits:387,"readable-stream":491,"safe-buffer":214}],212:[function(t,r,e){var n=t("safe-buffer").Buffer,i=t("create-hmac"),c=t("browserify-rsa"),f=t("elliptic").ec,l=t("bn.js"),u=t("parse-asn1"),y=t("./curves.json");function p(d,g,w,k,S){var A=u(g);if(A.curve){if(k!=="ecdsa"&&k!=="ecdsa/rsa")throw new Error("wrong private key type");return m(d,A)}if(A.type==="dsa"){if(k!=="dsa")throw new Error("wrong private key type");return b(d,A,w)}if(k!=="rsa"&&k!=="ecdsa/rsa")throw new Error("wrong private key type");d=n.concat([S,d]);for(var j=A.modulus.byteLength(),D=[0,1];d.length+D.length+1<j;)D.push(255);D.push(0);for(var N=-1;++N<d.length;)D.push(d[N]);return c(D,A)}function m(d,g){var w=y[g.curve.join(".")];if(!w)throw new Error("unknown curve "+g.curve.join("."));var k=new f(w).keyFromPrivate(g.privateKey).sign(d);return n.from(k.toDER())}function b(d,g,w){for(var k,S=g.params.priv_key,A=g.params.p,j=g.params.q,D=g.params.g,N=new l(0),F=s(d,j).mod(j),T=!1,I=_(S,j,d,w);T===!1;)N=a(D,k=h(j,I,w),A,j),(T=k.invm(j).imul(F.add(S.mul(N))).mod(j)).cmpn(0)===0&&(T=!1,N=new l(0));return v(N,T)}function v(d,g){d=d.toArray(),g=g.toArray(),128&d[0]&&(d=[0].concat(d)),128&g[0]&&(g=[0].concat(g));var w=[48,d.length+g.length+4,2,d.length];return w=w.concat(d,[2,g.length],g),n.from(w)}function _(d,g,w,k){if((d=n.from(d.toArray())).length<g.byteLength()){var S=n.alloc(g.byteLength()-d.length);d=n.concat([S,d])}var A=w.length,j=o(w,g),D=n.alloc(A);D.fill(1);var N=n.alloc(A);return N=i(k,N).update(D).update(n.from([0])).update(d).update(j).digest(),D=i(k,N).update(D).digest(),{k:N=i(k,N).update(D).update(n.from([1])).update(d).update(j).digest(),v:D=i(k,N).update(D).digest()}}function s(d,g){var w=new l(d),k=(d.length<<3)-g.bitLength();return k>0&&w.ishrn(k),w}function o(d,g){d=(d=s(d,g)).mod(g);var w=n.from(d.toArray());if(w.length<g.byteLength()){var k=n.alloc(g.byteLength()-w.length);w=n.concat([k,w])}return w}function h(d,g,w){var k,S;do{for(k=n.alloc(0);8*k.length<d.bitLength();)g.v=i(w,g.k).update(g.v).digest(),k=n.concat([k,g.v]);S=s(k,d),g.k=i(w,g.k).update(g.v).update(n.from([0])).digest(),g.v=i(w,g.k).update(g.v).digest()}while(S.cmp(d)!==-1);return S}function a(d,g,w,k){return d.toRed(l.mont(w)).redPow(g).fromRed().mod(k)}r.exports=p,r.exports.getKey=_,r.exports.makeKey=h},{"./curves.json":210,"bn.js":183,"browserify-rsa":206,"create-hmac":333,elliptic:350,"parse-asn1":459,"safe-buffer":214}],213:[function(t,r,e){var n=t("safe-buffer").Buffer,i=t("bn.js"),c=t("elliptic").ec,f=t("parse-asn1"),l=t("./curves.json");function u(b,v,_,s,o){var h=f(_);if(h.type==="ec"){if(s!=="ecdsa"&&s!=="ecdsa/rsa")throw new Error("wrong public key type");return y(b,v,h)}if(h.type==="dsa"){if(s!=="dsa")throw new Error("wrong public key type");return p(b,v,h)}if(s!=="rsa"&&s!=="ecdsa/rsa")throw new Error("wrong public key type");v=n.concat([o,v]);for(var a=h.modulus.byteLength(),d=[1],g=0;v.length+d.length+2<a;)d.push(255),g++;d.push(0);for(var w=-1;++w<v.length;)d.push(v[w]);d=n.from(d);var k=i.mont(h.modulus);b=(b=new i(b).toRed(k)).redPow(new i(h.publicExponent)),b=n.from(b.fromRed().toArray());var S=g<8?1:0;for(a=Math.min(b.length,d.length),b.length!==d.length&&(S=1),w=-1;++w<a;)S|=b[w]^d[w];return S===0}function y(b,v,_){var s=l[_.data.algorithm.curve.join(".")];if(!s)throw new Error("unknown curve "+_.data.algorithm.curve.join("."));var o=new c(s),h=_.data.subjectPrivateKey.data;return o.verify(v,b,h)}function p(b,v,_){var s=_.data.p,o=_.data.q,h=_.data.g,a=_.data.pub_key,d=f.signature.decode(b,"der"),g=d.s,w=d.r;m(g,o),m(w,o);var k=i.mont(s),S=g.invm(o);return h.toRed(k).redPow(new i(v).mul(S).mod(o)).fromRed().mul(a.toRed(k).redPow(w.mul(S).mod(o)).fromRed()).mod(s).mod(o).cmp(w)===0}function m(b,v){if(b.cmpn(0)<=0)throw new Error("invalid sig");if(b.cmp(v)>=v)throw new Error("invalid sig")}r.exports=u},{"./curves.json":210,"bn.js":183,elliptic:350,"parse-asn1":459,"safe-buffer":214}],214:[function(t,r,e){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=t("buffer"),i=n.Buffer;function c(l,u){for(var y in l)u[y]=l[y]}function f(l,u,y){return i(l,u,y)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=n:(c(n,e),e.Buffer=f),f.prototype=Object.create(i.prototype),c(i,f),f.from=function(l,u,y){if(typeof l=="number")throw new TypeError("Argument must not be a number");return i(l,u,y)},f.alloc=function(l,u,y){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=i(l);return u!==void 0?typeof y=="string"?p.fill(u,y):p.fill(u):p.fill(0),p},f.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return i(l)},f.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(l)}},{buffer:216}],215:[function(t,r,e){arguments[4][185][0].apply(e,arguments)},{dup:185}],216:[function(t,r,e){(function(p){function i(G){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z})(G)}var c=t("base64-js"),f=t("ieee754");e.Buffer=p,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50;var l=2147483647;function u(){try{var G=new Uint8Array(1);return G.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},G.foo()===42}catch(Z){return!1}}function y(G){if(G>l)throw new RangeError('The value "'+G+'" is invalid for option "size"');var Z=new Uint8Array(G);return Z.__proto__=p.prototype,Z}function p(G,Z,J){if(typeof G=="number"){if(typeof Z=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(G)}return m(G,Z,J)}function m(G,Z,J){if(typeof G=="string")return s(G,Z);if(ArrayBuffer.isView(G))return o(G);if(G==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+i(G));if(Mt(G,ArrayBuffer)||G&&Mt(G.buffer,ArrayBuffer))return h(G,Z,J);if(typeof G=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var St=G.valueOf&&G.valueOf();if(St!=null&&St!==G)return p.from(St,Z,J);var It=a(G);if(It)return It;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof G[Symbol.toPrimitive]=="function")return p.from(G[Symbol.toPrimitive]("string"),Z,J);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+i(G))}function b(G){if(typeof G!="number")throw new TypeError('"size" argument must be of type number');if(G<0)throw new RangeError('The value "'+G+'" is invalid for option "size"')}function v(G,Z,J){return b(G),G<=0?y(G):Z!==void 0?typeof J=="string"?y(G).fill(Z,J):y(G).fill(Z):y(G)}function _(G){return b(G),y(G<0?0:0|d(G))}function s(G,Z){if(typeof Z=="string"&&Z!==""||(Z="utf8"),!p.isEncoding(Z))throw new TypeError("Unknown encoding: "+Z);var J=0|w(G,Z),St=y(J),It=St.write(G,Z);return It!==J&&(St=St.slice(0,It)),St}function o(G){for(var Z=G.length<0?0:0|d(G.length),J=y(Z),St=0;St<Z;St+=1)J[St]=255&G[St];return J}function h(G,Z,J){if(Z<0||G.byteLength<Z)throw new RangeError('"offset" is outside of buffer bounds');if(G.byteLength<Z+(J||0))throw new RangeError('"length" is outside of buffer bounds');var St;return(St=Z===void 0&&J===void 0?new Uint8Array(G):J===void 0?new Uint8Array(G,Z):new Uint8Array(G,Z,J)).__proto__=p.prototype,St}function a(G){if(p.isBuffer(G)){var Z=0|d(G.length),J=y(Z);return J.length===0||G.copy(J,0,0,Z),J}return G.length!==void 0?typeof G.length!="number"||Bt(G.length)?y(0):o(G):G.type==="Buffer"&&Array.isArray(G.data)?o(G.data):void 0}function d(G){if(G>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|G}function g(G){return+G!=G&&(G=0),p.alloc(+G)}function w(G,Z){if(p.isBuffer(G))return G.length;if(ArrayBuffer.isView(G)||Mt(G,ArrayBuffer))return G.byteLength;if(typeof G!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+i(G));var J=G.length,St=arguments.length>2&&arguments[2]===!0;if(!St&&J===0)return 0;for(var It=!1;;)switch(Z){case"ascii":case"latin1":case"binary":return J;case"utf8":case"utf-8":return K(G).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*J;case"hex":return J>>>1;case"base64":return ot(G).length;default:if(It)return St?-1:K(G).length;Z=(""+Z).toLowerCase(),It=!0}}function k(G,Z,J){var St=!1;if((Z===void 0||Z<0)&&(Z=0),Z>this.length||((J===void 0||J>this.length)&&(J=this.length),J<=0)||(J>>>=0)<=(Z>>>=0))return"";for(G||(G="utf8");;)switch(G){case"hex":return U(this,Z,J);case"utf8":case"utf-8":return R(this,Z,J);case"ascii":return L(this,Z,J);case"latin1":case"binary":return H(this,Z,J);case"base64":return O(this,Z,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,Z,J);default:if(St)throw new TypeError("Unknown encoding: "+G);G=(G+"").toLowerCase(),St=!0}}function S(G,Z,J){var St=G[Z];G[Z]=G[J],G[J]=St}function A(G,Z,J,St,It){if(G.length===0)return-1;if(typeof J=="string"?(St=J,J=0):J>2147483647?J=2147483647:J<-2147483648&&(J=-2147483648),Bt(J=+J)&&(J=It?0:G.length-1),J<0&&(J=G.length+J),J>=G.length){if(It)return-1;J=G.length-1}else if(J<0){if(!It)return-1;J=0}if(typeof Z=="string"&&(Z=p.from(Z,St)),p.isBuffer(Z))return Z.length===0?-1:j(G,Z,J,St,It);if(typeof Z=="number")return Z&=255,typeof Uint8Array.prototype.indexOf=="function"?It?Uint8Array.prototype.indexOf.call(G,Z,J):Uint8Array.prototype.lastIndexOf.call(G,Z,J):j(G,[Z],J,St,It);throw new TypeError("val must be string, number or Buffer")}function j(G,Z,J,St,It){var Ft,Xt=1,me=G.length,fe=Z.length;if(St!==void 0&&((St=String(St).toLowerCase())==="ucs2"||St==="ucs-2"||St==="utf16le"||St==="utf-16le")){if(G.length<2||Z.length<2)return-1;Xt=2,me/=2,fe/=2,J/=2}function Kt(_t,vt){return Xt===1?_t[vt]:_t.readUInt16BE(vt*Xt)}if(It){var ie=-1;for(Ft=J;Ft<me;Ft++)if(Kt(G,Ft)===Kt(Z,ie===-1?0:Ft-ie)){if(ie===-1&&(ie=Ft),Ft-ie+1===fe)return ie*Xt}else ie!==-1&&(Ft-=Ft-ie),ie=-1}else for(J+fe>me&&(J=me-fe),Ft=J;Ft>=0;Ft--){for(var ct=!0,pt=0;pt<fe;pt++)if(Kt(G,Ft+pt)!==Kt(Z,pt)){ct=!1;break}if(ct)return Ft}return-1}function D(G,Z,J,St){J=Number(J)||0;var It=G.length-J;St?(St=Number(St))>It&&(St=It):St=It;var Ft=Z.length;St>Ft/2&&(St=Ft/2);for(var Xt=0;Xt<St;++Xt){var me=parseInt(Z.substr(2*Xt,2),16);if(Bt(me))return Xt;G[J+Xt]=me}return Xt}function N(G,Z,J,St){return ut(K(Z,G.length-J),G,J,St)}function F(G,Z,J,St){return ut(nt(Z),G,J,St)}function T(G,Z,J,St){return F(G,Z,J,St)}function I(G,Z,J,St){return ut(ot(Z),G,J,St)}function x(G,Z,J,St){return ut(At(Z,G.length-J),G,J,St)}function O(G,Z,J){return Z===0&&J===G.length?c.fromByteArray(G):c.fromByteArray(G.slice(Z,J))}function R(G,Z,J){J=Math.min(G.length,J);for(var St=[],It=Z;It<J;){var Ft,Xt,me,fe,Kt=G[It],ie=null,ct=Kt>239?4:Kt>223?3:Kt>191?2:1;if(It+ct<=J)switch(ct){case 1:Kt<128&&(ie=Kt);break;case 2:(192&(Ft=G[It+1]))==128&&(fe=(31&Kt)<<6|63&Ft)>127&&(ie=fe);break;case 3:Ft=G[It+1],Xt=G[It+2],(192&Ft)==128&&(192&Xt)==128&&(fe=(15&Kt)<<12|(63&Ft)<<6|63&Xt)>2047&&(fe<55296||fe>57343)&&(ie=fe);break;case 4:Ft=G[It+1],Xt=G[It+2],me=G[It+3],(192&Ft)==128&&(192&Xt)==128&&(192&me)==128&&(fe=(15&Kt)<<18|(63&Ft)<<12|(63&Xt)<<6|63&me)>65535&&fe<1114112&&(ie=fe)}ie===null?(ie=65533,ct=1):ie>65535&&(ie-=65536,St.push(ie>>>10&1023|55296),ie=56320|1023&ie),St.push(ie),It+=ct}return P(St)}e.kMaxLength=l,p.TYPED_ARRAY_SUPPORT=u(),p.TYPED_ARRAY_SUPPORT||typeof console=="undefined"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),typeof Symbol!="undefined"&&Symbol.species!=null&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),p.poolSize=8192,p.from=function(G,Z,J){return m(G,Z,J)},p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,p.alloc=function(G,Z,J){return v(G,Z,J)},p.allocUnsafe=function(G){return _(G)},p.allocUnsafeSlow=function(G){return _(G)},p.isBuffer=function(G){return G!=null&&G._isBuffer===!0&&G!==p.prototype},p.compare=function(G,Z){if(Mt(G,Uint8Array)&&(G=p.from(G,G.offset,G.byteLength)),Mt(Z,Uint8Array)&&(Z=p.from(Z,Z.offset,Z.byteLength)),!p.isBuffer(G)||!p.isBuffer(Z))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(G===Z)return 0;for(var J=G.length,St=Z.length,It=0,Ft=Math.min(J,St);It<Ft;++It)if(G[It]!==Z[It]){J=G[It],St=Z[It];break}return J<St?-1:St<J?1:0},p.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(G,Z){if(!Array.isArray(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return p.alloc(0);var J;if(Z===void 0)for(Z=0,J=0;J<G.length;++J)Z+=G[J].length;var St=p.allocUnsafe(Z),It=0;for(J=0;J<G.length;++J){var Ft=G[J];if(Mt(Ft,Uint8Array)&&(Ft=p.from(Ft)),!p.isBuffer(Ft))throw new TypeError('"list" argument must be an Array of Buffers');Ft.copy(St,It),It+=Ft.length}return St},p.byteLength=w,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var G=this.length;if(G%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Z=0;Z<G;Z+=2)S(this,Z,Z+1);return this},p.prototype.swap32=function(){var G=this.length;if(G%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Z=0;Z<G;Z+=4)S(this,Z,Z+3),S(this,Z+1,Z+2);return this},p.prototype.swap64=function(){var G=this.length;if(G%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Z=0;Z<G;Z+=8)S(this,Z,Z+7),S(this,Z+1,Z+6),S(this,Z+2,Z+5),S(this,Z+3,Z+4);return this},p.prototype.toString=function(){var G=this.length;return G===0?"":arguments.length===0?R(this,0,G):k.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(G){if(!p.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G||p.compare(this,G)===0},p.prototype.inspect=function(){var G="",Z=e.INSPECT_MAX_BYTES;return G=this.toString("hex",0,Z).replace(/(.{2})/g,"$1 ").trim(),this.length>Z&&(G+=" ... "),"<Buffer "+G+">"},p.prototype.compare=function(G,Z,J,St,It){if(Mt(G,Uint8Array)&&(G=p.from(G,G.offset,G.byteLength)),!p.isBuffer(G))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+i(G));if(Z===void 0&&(Z=0),J===void 0&&(J=G?G.length:0),St===void 0&&(St=0),It===void 0&&(It=this.length),Z<0||J>G.length||St<0||It>this.length)throw new RangeError("out of range index");if(St>=It&&Z>=J)return 0;if(St>=It)return-1;if(Z>=J)return 1;if(this===G)return 0;for(var Ft=(It>>>=0)-(St>>>=0),Xt=(J>>>=0)-(Z>>>=0),me=Math.min(Ft,Xt),fe=this.slice(St,It),Kt=G.slice(Z,J),ie=0;ie<me;++ie)if(fe[ie]!==Kt[ie]){Ft=fe[ie],Xt=Kt[ie];break}return Ft<Xt?-1:Xt<Ft?1:0},p.prototype.includes=function(G,Z,J){return this.indexOf(G,Z,J)!==-1},p.prototype.indexOf=function(G,Z,J){return A(this,G,Z,J,!0)},p.prototype.lastIndexOf=function(G,Z,J){return A(this,G,Z,J,!1)},p.prototype.write=function(G,Z,J,St){if(Z===void 0)St="utf8",J=this.length,Z=0;else if(J===void 0&&typeof Z=="string")St=Z,J=this.length,Z=0;else{if(!isFinite(Z))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");Z>>>=0,isFinite(J)?(J>>>=0,St===void 0&&(St="utf8")):(St=J,J=void 0)}var It=this.length-Z;if((J===void 0||J>It)&&(J=It),G.length>0&&(J<0||Z<0)||Z>this.length)throw new RangeError("Attempt to write outside buffer bounds");St||(St="utf8");for(var Ft=!1;;)switch(St){case"hex":return D(this,G,Z,J);case"utf8":case"utf-8":return N(this,G,Z,J);case"ascii":return F(this,G,Z,J);case"latin1":case"binary":return T(this,G,Z,J);case"base64":return I(this,G,Z,J);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,G,Z,J);default:if(Ft)throw new TypeError("Unknown encoding: "+St);St=(""+St).toLowerCase(),Ft=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function P(G){var Z=G.length;if(Z<=C)return String.fromCharCode.apply(String,G);for(var J="",St=0;St<Z;)J+=String.fromCharCode.apply(String,G.slice(St,St+=C));return J}function L(G,Z,J){var St="";J=Math.min(G.length,J);for(var It=Z;It<J;++It)St+=String.fromCharCode(127&G[It]);return St}function H(G,Z,J){var St="";J=Math.min(G.length,J);for(var It=Z;It<J;++It)St+=String.fromCharCode(G[It]);return St}function U(G,Z,J){var St=G.length;(!Z||Z<0)&&(Z=0),(!J||J<0||J>St)&&(J=St);for(var It="",Ft=Z;Ft<J;++Ft)It+=Q(G[Ft]);return It}function B(G,Z,J){for(var St=G.slice(Z,J),It="",Ft=0;Ft<St.length;Ft+=2)It+=String.fromCharCode(St[Ft]+256*St[Ft+1]);return It}function W(G,Z,J){if(G%1!=0||G<0)throw new RangeError("offset is not uint");if(G+Z>J)throw new RangeError("Trying to access beyond buffer length")}function X(G,Z,J,St,It,Ft){if(!p.isBuffer(G))throw new TypeError('"buffer" argument must be a Buffer instance');if(Z>It||Z<Ft)throw new RangeError('"value" argument is out of bounds');if(J+St>G.length)throw new RangeError("Index out of range")}function et(G,Z,J,St,It,Ft){if(J+St>G.length)throw new RangeError("Index out of range");if(J<0)throw new RangeError("Index out of range")}function ft(G,Z,J,St,It){return Z=+Z,J>>>=0,It||et(G,Z,J,4),f.write(G,Z,J,St,23,4),J+4}function gt(G,Z,J,St,It){return Z=+Z,J>>>=0,It||et(G,Z,J,8),f.write(G,Z,J,St,52,8),J+8}p.prototype.slice=function(G,Z){var J=this.length;(G=~~G)<0?(G+=J)<0&&(G=0):G>J&&(G=J),(Z=Z===void 0?J:~~Z)<0?(Z+=J)<0&&(Z=0):Z>J&&(Z=J),Z<G&&(Z=G);var St=this.subarray(G,Z);return St.__proto__=p.prototype,St},p.prototype.readUIntLE=function(G,Z,J){G>>>=0,Z>>>=0,J||W(G,Z,this.length);for(var St=this[G],It=1,Ft=0;++Ft<Z&&(It*=256);)St+=this[G+Ft]*It;return St},p.prototype.readUIntBE=function(G,Z,J){G>>>=0,Z>>>=0,J||W(G,Z,this.length);for(var St=this[G+--Z],It=1;Z>0&&(It*=256);)St+=this[G+--Z]*It;return St},p.prototype.readUInt8=function(G,Z){return G>>>=0,Z||W(G,1,this.length),this[G]},p.prototype.readUInt16LE=function(G,Z){return G>>>=0,Z||W(G,2,this.length),this[G]|this[G+1]<<8},p.prototype.readUInt16BE=function(G,Z){return G>>>=0,Z||W(G,2,this.length),this[G]<<8|this[G+1]},p.prototype.readUInt32LE=function(G,Z){return G>>>=0,Z||W(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+16777216*this[G+3]},p.prototype.readUInt32BE=function(G,Z){return G>>>=0,Z||W(G,4,this.length),16777216*this[G]+(this[G+1]<<16|this[G+2]<<8|this[G+3])},p.prototype.readIntLE=function(G,Z,J){G>>>=0,Z>>>=0,J||W(G,Z,this.length);for(var St=this[G],It=1,Ft=0;++Ft<Z&&(It*=256);)St+=this[G+Ft]*It;return St>=(It*=128)&&(St-=Math.pow(2,8*Z)),St},p.prototype.readIntBE=function(G,Z,J){G>>>=0,Z>>>=0,J||W(G,Z,this.length);for(var St=Z,It=1,Ft=this[G+--St];St>0&&(It*=256);)Ft+=this[G+--St]*It;return Ft>=(It*=128)&&(Ft-=Math.pow(2,8*Z)),Ft},p.prototype.readInt8=function(G,Z){return G>>>=0,Z||W(G,1,this.length),128&this[G]?-1*(255-this[G]+1):this[G]},p.prototype.readInt16LE=function(G,Z){G>>>=0,Z||W(G,2,this.length);var J=this[G]|this[G+1]<<8;return 32768&J?4294901760|J:J},p.prototype.readInt16BE=function(G,Z){G>>>=0,Z||W(G,2,this.length);var J=this[G+1]|this[G]<<8;return 32768&J?4294901760|J:J},p.prototype.readInt32LE=function(G,Z){return G>>>=0,Z||W(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},p.prototype.readInt32BE=function(G,Z){return G>>>=0,Z||W(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},p.prototype.readFloatLE=function(G,Z){return G>>>=0,Z||W(G,4,this.length),f.read(this,G,!0,23,4)},p.prototype.readFloatBE=function(G,Z){return G>>>=0,Z||W(G,4,this.length),f.read(this,G,!1,23,4)},p.prototype.readDoubleLE=function(G,Z){return G>>>=0,Z||W(G,8,this.length),f.read(this,G,!0,52,8)},p.prototype.readDoubleBE=function(G,Z){return G>>>=0,Z||W(G,8,this.length),f.read(this,G,!1,52,8)},p.prototype.writeUIntLE=function(G,Z,J,St){G=+G,Z>>>=0,J>>>=0,St||X(this,G,Z,J,Math.pow(2,8*J)-1,0);var It=1,Ft=0;for(this[Z]=255&G;++Ft<J&&(It*=256);)this[Z+Ft]=G/It&255;return Z+J},p.prototype.writeUIntBE=function(G,Z,J,St){G=+G,Z>>>=0,J>>>=0,St||X(this,G,Z,J,Math.pow(2,8*J)-1,0);var It=J-1,Ft=1;for(this[Z+It]=255&G;--It>=0&&(Ft*=256);)this[Z+It]=G/Ft&255;return Z+J},p.prototype.writeUInt8=function(G,Z,J){return G=+G,Z>>>=0,J||X(this,G,Z,1,255,0),this[Z]=255&G,Z+1},p.prototype.writeUInt16LE=function(G,Z,J){return G=+G,Z>>>=0,J||X(this,G,Z,2,65535,0),this[Z]=255&G,this[Z+1]=G>>>8,Z+2},p.prototype.writeUInt16BE=function(G,Z,J){return G=+G,Z>>>=0,J||X(this,G,Z,2,65535,0),this[Z]=G>>>8,this[Z+1]=255&G,Z+2},p.prototype.writeUInt32LE=function(G,Z,J){return G=+G,Z>>>=0,J||X(this,G,Z,4,4294967295,0),this[Z+3]=G>>>24,this[Z+2]=G>>>16,this[Z+1]=G>>>8,this[Z]=255&G,Z+4},p.prototype.writeUInt32BE=function(G,Z,J){return G=+G,Z>>>=0,J||X(this,G,Z,4,4294967295,0),this[Z]=G>>>24,this[Z+1]=G>>>16,this[Z+2]=G>>>8,this[Z+3]=255&G,Z+4},p.prototype.writeIntLE=function(G,Z,J,St){if(G=+G,Z>>>=0,!St){var It=Math.pow(2,8*J-1);X(this,G,Z,J,It-1,-It)}var Ft=0,Xt=1,me=0;for(this[Z]=255&G;++Ft<J&&(Xt*=256);)G<0&&me===0&&this[Z+Ft-1]!==0&&(me=1),this[Z+Ft]=(G/Xt>>0)-me&255;return Z+J},p.prototype.writeIntBE=function(G,Z,J,St){if(G=+G,Z>>>=0,!St){var It=Math.pow(2,8*J-1);X(this,G,Z,J,It-1,-It)}var Ft=J-1,Xt=1,me=0;for(this[Z+Ft]=255&G;--Ft>=0&&(Xt*=256);)G<0&&me===0&&this[Z+Ft+1]!==0&&(me=1),this[Z+Ft]=(G/Xt>>0)-me&255;return Z+J},p.prototype.writeInt8=function(G,Z,J){return G=+G,Z>>>=0,J||X(this,G,Z,1,127,-128),G<0&&(G=255+G+1),this[Z]=255&G,Z+1},p.prototype.writeInt16LE=function(G,Z,J){return G=+G,Z>>>=0,J||X(this,G,Z,2,32767,-32768),this[Z]=255&G,this[Z+1]=G>>>8,Z+2},p.prototype.writeInt16BE=function(G,Z,J){return G=+G,Z>>>=0,J||X(this,G,Z,2,32767,-32768),this[Z]=G>>>8,this[Z+1]=255&G,Z+2},p.prototype.writeInt32LE=function(G,Z,J){return G=+G,Z>>>=0,J||X(this,G,Z,4,2147483647,-2147483648),this[Z]=255&G,this[Z+1]=G>>>8,this[Z+2]=G>>>16,this[Z+3]=G>>>24,Z+4},p.prototype.writeInt32BE=function(G,Z,J){return G=+G,Z>>>=0,J||X(this,G,Z,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),this[Z]=G>>>24,this[Z+1]=G>>>16,this[Z+2]=G>>>8,this[Z+3]=255&G,Z+4},p.prototype.writeFloatLE=function(G,Z,J){return ft(this,G,Z,!0,J)},p.prototype.writeFloatBE=function(G,Z,J){return ft(this,G,Z,!1,J)},p.prototype.writeDoubleLE=function(G,Z,J){return gt(this,G,Z,!0,J)},p.prototype.writeDoubleBE=function(G,Z,J){return gt(this,G,Z,!1,J)},p.prototype.copy=function(G,Z,J,St){if(!p.isBuffer(G))throw new TypeError("argument should be a Buffer");if(J||(J=0),St||St===0||(St=this.length),Z>=G.length&&(Z=G.length),Z||(Z=0),St>0&&St<J&&(St=J),St===J||G.length===0||this.length===0)return 0;if(Z<0)throw new RangeError("targetStart out of bounds");if(J<0||J>=this.length)throw new RangeError("Index out of range");if(St<0)throw new RangeError("sourceEnd out of bounds");St>this.length&&(St=this.length),G.length-Z<St-J&&(St=G.length-Z+J);var It=St-J;if(this===G&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Z,J,St);else if(this===G&&J<Z&&Z<St)for(var Ft=It-1;Ft>=0;--Ft)G[Ft+Z]=this[Ft+J];else Uint8Array.prototype.set.call(G,this.subarray(J,St),Z);return It},p.prototype.fill=function(G,Z,J,St){if(typeof G=="string"){if(typeof Z=="string"?(St=Z,Z=0,J=this.length):typeof J=="string"&&(St=J,J=this.length),St!==void 0&&typeof St!="string")throw new TypeError("encoding must be a string");if(typeof St=="string"&&!p.isEncoding(St))throw new TypeError("Unknown encoding: "+St);if(G.length===1){var It=G.charCodeAt(0);(St==="utf8"&&It<128||St==="latin1")&&(G=It)}}else typeof G=="number"&&(G&=255);if(Z<0||this.length<Z||this.length<J)throw new RangeError("Out of range index");if(J<=Z)return this;var Ft;if(Z>>>=0,J=J===void 0?this.length:J>>>0,G||(G=0),typeof G=="number")for(Ft=Z;Ft<J;++Ft)this[Ft]=G;else{var Xt=p.isBuffer(G)?G:p.from(G,St),me=Xt.length;if(me===0)throw new TypeError('The value "'+G+'" is invalid for argument "value"');for(Ft=0;Ft<J-Z;++Ft)this[Ft+Z]=Xt[Ft%me]}return this};var bt=/[^+/0-9A-Za-z-_]/g;function rt(G){if((G=(G=G.split("=")[0]).trim().replace(bt,"")).length<2)return"";for(;G.length%4!=0;)G+="=";return G}function Q(G){return G<16?"0"+G.toString(16):G.toString(16)}function K(G,Z){var J;Z=Z||1/0;for(var St=G.length,It=null,Ft=[],Xt=0;Xt<St;++Xt){if((J=G.charCodeAt(Xt))>55295&&J<57344){if(!It){if(J>56319){(Z-=3)>-1&&Ft.push(239,191,189);continue}if(Xt+1===St){(Z-=3)>-1&&Ft.push(239,191,189);continue}It=J;continue}if(J<56320){(Z-=3)>-1&&Ft.push(239,191,189),It=J;continue}J=65536+(It-55296<<10|J-56320)}else It&&(Z-=3)>-1&&Ft.push(239,191,189);if(It=null,J<128){if((Z-=1)<0)break;Ft.push(J)}else if(J<2048){if((Z-=2)<0)break;Ft.push(J>>6|192,63&J|128)}else if(J<65536){if((Z-=3)<0)break;Ft.push(J>>12|224,J>>6&63|128,63&J|128)}else{if(!(J<1114112))throw new Error("Invalid code point");if((Z-=4)<0)break;Ft.push(J>>18|240,J>>12&63|128,J>>6&63|128,63&J|128)}}return Ft}function nt(G){for(var Z=[],J=0;J<G.length;++J)Z.push(255&G.charCodeAt(J));return Z}function At(G,Z){for(var J,St,It,Ft=[],Xt=0;Xt<G.length&&!((Z-=2)<0);++Xt)St=(J=G.charCodeAt(Xt))>>8,It=J%256,Ft.push(It),Ft.push(St);return Ft}function ot(G){return c.toByteArray(rt(G))}function ut(G,Z,J,St){for(var It=0;It<St&&!(It+J>=Z.length||It>=G.length);++It)Z[It+J]=G[It];return It}function Mt(G,Z){return G instanceof Z||G!=null&&G.constructor!=null&&G.constructor.name!=null&&G.constructor.name===Z.name}function Bt(G){return G!=G}}).call(this,t("buffer").Buffer)},{"base64-js":182,buffer:216,ieee754:385}],217:[function(t,r,e){(function(n){r.exports=function(i,c){for(var f=Math.min(i.length,c.length),l=new n(f),u=0;u<f;++u)l[u]=i[u]^c[u];return l}}).call(this,t("buffer").Buffer)},{buffer:216}],218:[function(t,r,e){var n=t("safe-buffer").Buffer,i=t("stream").Transform,c=t("string_decoder").StringDecoder;function f(l){i.call(this),this.hashMode=typeof l=="string",this.hashMode?this[l]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}t("inherits")(f,i),f.prototype.update=function(l,u,y){typeof l=="string"&&(l=n.from(l,u));var p=this._update(l);return this.hashMode?this:(y&&(p=this._toString(p,y)),p)},f.prototype.setAutoPadding=function(){},f.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},f.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},f.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},f.prototype._transform=function(l,u,y){var p;try{this.hashMode?this._update(l):this.push(this._update(l))}catch(m){p=m}finally{y(p)}},f.prototype._flush=function(l){var u;try{this.push(this.__final())}catch(y){u=y}l(u)},f.prototype._finalOrDigest=function(l){var u=this.__final()||n.alloc(0);return l&&(u=this._toString(u,l,!0)),u},f.prototype._toString=function(l,u,y){if(this._decoder||(this._decoder=new c(u),this._encoding=u),this._encoding!==u)throw new Error("can't switch encodings");var p=this._decoder.write(l);return y&&(p+=this._decoder.end()),p},r.exports=f},{inherits:387,"safe-buffer":494,stream:506,string_decoder:520}],219:[function(t,r,e){r.exports=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n}},{}],220:[function(t,r,e){var n=t("../internals/is-object");r.exports=function(i){if(!n(i)&&i!==null)throw TypeError("Can't set "+String(i)+" as a prototype");return i}},{"../internals/is-object":263}],221:[function(t,r,e){var n=t("../internals/well-known-symbol"),i=t("../internals/object-create"),c=t("../internals/object-define-property"),f=n("unscopables"),l=Array.prototype;l[f]==null&&c.f(l,f,{configurable:!0,value:i(null)}),r.exports=function(u){l[f][u]=!0}},{"../internals/object-create":276,"../internals/object-define-property":278,"../internals/well-known-symbol":314}],222:[function(t,r,e){r.exports=function(n,i,c){if(!(n instanceof i))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return n}},{}],223:[function(t,r,e){var n=t("../internals/is-object");r.exports=function(i){if(!n(i))throw TypeError(String(i)+" is not an object");return i}},{"../internals/is-object":263}],224:[function(t,r,e){var n=t("../internals/to-indexed-object"),i=t("../internals/to-length"),c=t("../internals/to-absolute-index"),f=function(l){return function(u,y,p){var m,b=n(u),v=i(b.length),_=c(p,v);if(l&&y!=y){for(;v>_;)if((m=b[_++])!=m)return!0}else for(;v>_;_++)if((l||_ in b)&&b[_]===y)return l||_||0;return!l&&-1}};r.exports={includes:f(!0),indexOf:f(!1)}},{"../internals/to-absolute-index":304,"../internals/to-indexed-object":305,"../internals/to-length":307}],225:[function(t,r,e){var n=t("../internals/function-bind-context"),i=t("../internals/indexed-object"),c=t("../internals/to-object"),f=t("../internals/to-length"),l=t("../internals/array-species-create"),u=[].push,y=function(p){var m=p==1,b=p==2,v=p==3,_=p==4,s=p==6,o=p==5||s;return function(h,a,d,g){for(var w,k,S=c(h),A=i(S),j=n(a,d,3),D=f(A.length),N=0,F=g||l,T=m?F(h,D):b?F(h,0):void 0;D>N;N++)if((o||N in A)&&(k=j(w=A[N],N,S),p)){if(m)T[N]=k;else if(k)switch(p){case 3:return!0;case 5:return w;case 6:return N;case 2:u.call(T,w)}else if(_)return!1}return s?-1:v||_?_:T}};r.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6)}},{"../internals/array-species-create":227,"../internals/function-bind-context":248,"../internals/indexed-object":257,"../internals/to-length":307,"../internals/to-object":308}],226:[function(t,r,e){var n=t("../internals/descriptors"),i=t("../internals/fails"),c=t("../internals/has"),f=Object.defineProperty,l={},u=function(y){throw y};r.exports=function(y,p){if(c(l,y))return l[y];p||(p={});var m=[][y],b=!!c(p,"ACCESSORS")&&p.ACCESSORS,v=c(p,0)?p[0]:u,_=c(p,1)?p[1]:void 0;return l[y]=!!m&&!i(function(){if(b&&!n)return!0;var s={length:-1};b?f(s,1,{enumerable:!0,get:u}):s[1]=1,m.call(s,v,_)})}},{"../internals/descriptors":240,"../internals/fails":247,"../internals/has":252}],227:[function(t,r,e){var n=t("../internals/is-object"),i=t("../internals/is-array"),c=t("../internals/well-known-symbol")("species");r.exports=function(f,l){var u;return i(f)&&(typeof(u=f.constructor)!="function"||u!==Array&&!i(u.prototype)?n(u)&&(u=u[c])===null&&(u=void 0):u=void 0),new(u===void 0?Array:u)(l===0?0:l)}},{"../internals/is-array":261,"../internals/is-object":263,"../internals/well-known-symbol":314}],228:[function(t,r,e){var n=t("../internals/an-object");r.exports=function(i,c,f,l){try{return l?c(n(f)[0],f[1]):c(f)}catch(y){var u=i.return;throw u!==void 0&&n(u.call(i)),y}}},{"../internals/an-object":223}],229:[function(t,r,e){var n=t("../internals/well-known-symbol")("iterator"),i=!1;try{var c=0,f={next:function(){return{done:!!c++}},return:function(){i=!0}};f[n]=function(){return this},Array.from(f,function(){throw 2})}catch(l){}r.exports=function(l,u){if(!u&&!i)return!1;var y=!1;try{var p={};p[n]=function(){return{next:function(){return{done:y=!0}}}},l(p)}catch(m){}return y}},{"../internals/well-known-symbol":314}],230:[function(t,r,e){var n={}.toString;r.exports=function(i){return n.call(i).slice(8,-1)}},{}],231:[function(t,r,e){var n=t("../internals/to-string-tag-support"),i=t("../internals/classof-raw"),c=t("../internals/well-known-symbol")("toStringTag"),f=i(function(){return arguments}())=="Arguments",l=function(u,y){try{return u[y]}catch(p){}};r.exports=n?i:function(u){var y,p,m;return u===void 0?"Undefined":u===null?"Null":typeof(p=l(y=Object(u),c))=="string"?p:f?i(y):(m=i(y))=="Object"&&typeof y.callee=="function"?"Arguments":m}},{"../internals/classof-raw":230,"../internals/to-string-tag-support":310,"../internals/well-known-symbol":314}],232:[function(t,r,e){var n=t("../internals/has"),i=t("../internals/own-keys"),c=t("../internals/object-get-own-property-descriptor"),f=t("../internals/object-define-property");r.exports=function(l,u){for(var y=i(u),p=f.f,m=c.f,b=0;b<y.length;b++){var v=y[b];n(l,v)||p(l,v,m(u,v))}}},{"../internals/has":252,"../internals/object-define-property":278,"../internals/object-get-own-property-descriptor":279,"../internals/own-keys":289}],233:[function(t,r,e){var n=t("../internals/well-known-symbol")("match");r.exports=function(i){var c=/./;try{"/./"[i](c)}catch(f){try{return c[n]=!1,"/./"[i](c)}catch(l){}}return!1}},{"../internals/well-known-symbol":314}],234:[function(t,r,e){var n=t("../internals/fails");r.exports=!n(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},{"../internals/fails":247}],235:[function(t,r,e){var n=t("../internals/iterators-core").IteratorPrototype,i=t("../internals/object-create"),c=t("../internals/create-property-descriptor"),f=t("../internals/set-to-string-tag"),l=t("../internals/iterators"),u=function(){return this};r.exports=function(y,p,m){var b=p+" Iterator";return y.prototype=i(n,{next:c(1,m)}),f(y,b,!1,!0),l[b]=u,y}},{"../internals/create-property-descriptor":237,"../internals/iterators":268,"../internals/iterators-core":267,"../internals/object-create":276,"../internals/set-to-string-tag":298}],236:[function(t,r,e){var n=t("../internals/descriptors"),i=t("../internals/object-define-property"),c=t("../internals/create-property-descriptor");r.exports=n?function(f,l,u){return i.f(f,l,c(1,u))}:function(f,l,u){return f[l]=u,f}},{"../internals/create-property-descriptor":237,"../internals/descriptors":240,"../internals/object-define-property":278}],237:[function(t,r,e){r.exports=function(n,i){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:i}}},{}],238:[function(t,r,e){var n=t("../internals/export"),i=t("../internals/create-iterator-constructor"),c=t("../internals/object-get-prototype-of"),f=t("../internals/object-set-prototype-of"),l=t("../internals/set-to-string-tag"),u=t("../internals/create-non-enumerable-property"),y=t("../internals/redefine"),p=t("../internals/well-known-symbol"),m=t("../internals/is-pure"),b=t("../internals/iterators"),v=t("../internals/iterators-core"),_=v.IteratorPrototype,s=v.BUGGY_SAFARI_ITERATORS,o=p("iterator"),h="keys",a="values",d="entries",g=function(){return this};r.exports=function(w,k,S,A,j,D,N){i(S,k,A);var F,T,I,x=function(U){if(U===j&&L)return L;if(!s&&U in C)return C[U];switch(U){case h:case a:case d:return function(){return new S(this,U)}}return function(){return new S(this)}},O=k+" Iterator",R=!1,C=w.prototype,P=C[o]||C["@@iterator"]||j&&C[j],L=!s&&P||x(j),H=k=="Array"&&C.entries||P;if(H&&(F=c(H.call(new w)),_!==Object.prototype&&F.next&&(m||c(F)===_||(f?f(F,_):typeof F[o]!="function"&&u(F,o,g)),l(F,O,!0,!0),m&&(b[O]=g))),j==a&&P&&P.name!==a&&(R=!0,L=function(){return P.call(this)}),m&&!N||C[o]===L||u(C,o,L),b[k]=L,j)if(T={values:x(a),keys:D?L:x(h),entries:x(d)},N)for(I in T)(s||R||!(I in C))&&y(C,I,T[I]);else n({target:k,proto:!0,forced:s||R},T);return T}},{"../internals/create-iterator-constructor":235,"../internals/create-non-enumerable-property":236,"../internals/export":246,"../internals/is-pure":264,"../internals/iterators":268,"../internals/iterators-core":267,"../internals/object-get-prototype-of":283,"../internals/object-set-prototype-of":287,"../internals/redefine":294,"../internals/set-to-string-tag":298,"../internals/well-known-symbol":314}],239:[function(t,r,e){var n=t("../internals/path"),i=t("../internals/has"),c=t("../internals/well-known-symbol-wrapped"),f=t("../internals/object-define-property").f;r.exports=function(l){var u=n.Symbol||(n.Symbol={});i(u,l)||f(u,l,{value:c.f(l)})}},{"../internals/has":252,"../internals/object-define-property":278,"../internals/path":290,"../internals/well-known-symbol-wrapped":313}],240:[function(t,r,e){var n=t("../internals/fails");r.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":247}],241:[function(t,r,e){var n=t("../internals/global"),i=t("../internals/is-object"),c=n.document,f=i(c)&&i(c.createElement);r.exports=function(l){return f?c.createElement(l):{}}},{"../internals/global":251,"../internals/is-object":263}],242:[function(t,r,e){var n=t("../internals/engine-user-agent");r.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},{"../internals/engine-user-agent":243}],243:[function(t,r,e){var n=t("../internals/get-built-in");r.exports=n("navigator","userAgent")||""},{"../internals/get-built-in":249}],244:[function(t,r,e){var n,i,c=t("../internals/global"),f=t("../internals/engine-user-agent"),l=c.process,u=l&&l.versions,y=u&&u.v8;y?i=(n=y.split("."))[0]+n[1]:f&&(!(n=f.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=f.match(/Chrome\/(\d+)/))&&(i=n[1]),r.exports=i&&+i},{"../internals/engine-user-agent":243,"../internals/global":251}],245:[function(t,r,e){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],246:[function(t,r,e){var n=t("../internals/global"),i=t("../internals/object-get-own-property-descriptor").f,c=t("../internals/create-non-enumerable-property"),f=t("../internals/redefine"),l=t("../internals/set-global"),u=t("../internals/copy-constructor-properties"),y=t("../internals/is-forced");r.exports=function(p,m){var b,v,_,s,o,h=p.target,a=p.global,d=p.stat;if(b=a?n:d?n[h]||l(h,{}):(n[h]||{}).prototype)for(v in m){if(s=m[v],_=p.noTargetGet?(o=i(b,v))&&o.value:b[v],!y(a?v:h+(d?".":"#")+v,p.forced)&&_!==void 0){if(typeof s==typeof _)continue;u(s,_)}(p.sham||_&&_.sham)&&c(s,"sham",!0),f(b,v,s,p)}}},{"../internals/copy-constructor-properties":232,"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/is-forced":262,"../internals/object-get-own-property-descriptor":279,"../internals/redefine":294,"../internals/set-global":296}],247:[function(t,r,e){r.exports=function(n){try{return!!n()}catch(i){return!0}}},{}],248:[function(t,r,e){var n=t("../internals/a-function");r.exports=function(i,c,f){if(n(i),c===void 0)return i;switch(f){case 0:return function(){return i.call(c)};case 1:return function(l){return i.call(c,l)};case 2:return function(l,u){return i.call(c,l,u)};case 3:return function(l,u,y){return i.call(c,l,u,y)}}return function(){return i.apply(c,arguments)}}},{"../internals/a-function":219}],249:[function(t,r,e){var n=t("../internals/path"),i=t("../internals/global"),c=function(f){return typeof f=="function"?f:void 0};r.exports=function(f,l){return arguments.length<2?c(n[f])||c(i[f]):n[f]&&n[f][l]||i[f]&&i[f][l]}},{"../internals/global":251,"../internals/path":290}],250:[function(t,r,e){var n=t("../internals/classof"),i=t("../internals/iterators"),c=t("../internals/well-known-symbol")("iterator");r.exports=function(f){if(f!=null)return f[c]||f["@@iterator"]||i[n(f)]}},{"../internals/classof":231,"../internals/iterators":268,"../internals/well-known-symbol":314}],251:[function(t,r,e){(function(n){var i=function(c){return c&&c.Math==Math&&c};r.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof n=="object"&&n)||Function("return this")()}).call(this,dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],252:[function(t,r,e){var n={}.hasOwnProperty;r.exports=function(i,c){return n.call(i,c)}},{}],253:[function(t,r,e){r.exports={}},{}],254:[function(t,r,e){var n=t("../internals/global");r.exports=function(i,c){var f=n.console;f&&f.error&&(arguments.length===1?f.error(i):f.error(i,c))}},{"../internals/global":251}],255:[function(t,r,e){var n=t("../internals/get-built-in");r.exports=n("document","documentElement")},{"../internals/get-built-in":249}],256:[function(t,r,e){var n=t("../internals/descriptors"),i=t("../internals/fails"),c=t("../internals/document-create-element");r.exports=!n&&!i(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":240,"../internals/document-create-element":241,"../internals/fails":247}],257:[function(t,r,e){var n=t("../internals/fails"),i=t("../internals/classof-raw"),c="".split;r.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return i(f)=="String"?c.call(f,""):Object(f)}:Object},{"../internals/classof-raw":230,"../internals/fails":247}],258:[function(t,r,e){var n=t("../internals/shared-store"),i=Function.toString;typeof n.inspectSource!="function"&&(n.inspectSource=function(c){return i.call(c)}),r.exports=n.inspectSource},{"../internals/shared-store":300}],259:[function(t,r,e){var n,i,c,f=t("../internals/native-weak-map"),l=t("../internals/global"),u=t("../internals/is-object"),y=t("../internals/create-non-enumerable-property"),p=t("../internals/has"),m=t("../internals/shared-key"),b=t("../internals/hidden-keys"),v=l.WeakMap,_=function(w){return c(w)?i(w):n(w,{})},s=function(w){return function(k){var S;if(!u(k)||(S=i(k)).type!==w)throw TypeError("Incompatible receiver, "+w+" required");return S}};if(f){var o=new v,h=o.get,a=o.has,d=o.set;n=function(w,k){return d.call(o,w,k),k},i=function(w){return h.call(o,w)||{}},c=function(w){return a.call(o,w)}}else{var g=m("state");b[g]=!0,n=function(w,k){return y(w,g,k),k},i=function(w){return p(w,g)?w[g]:{}},c=function(w){return p(w,g)}}r.exports={set:n,get:i,has:c,enforce:_,getterFor:s}},{"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/has":252,"../internals/hidden-keys":253,"../internals/is-object":263,"../internals/native-weak-map":272,"../internals/shared-key":299}],260:[function(t,r,e){var n=t("../internals/well-known-symbol"),i=t("../internals/iterators"),c=n("iterator"),f=Array.prototype;r.exports=function(l){return l!==void 0&&(i.Array===l||f[c]===l)}},{"../internals/iterators":268,"../internals/well-known-symbol":314}],261:[function(t,r,e){var n=t("../internals/classof-raw");r.exports=Array.isArray||function(i){return n(i)=="Array"}},{"../internals/classof-raw":230}],262:[function(t,r,e){var n=t("../internals/fails"),i=/#|\.prototype\./,c=function(p,m){var b=l[f(p)];return b==y||b!=u&&(typeof m=="function"?n(m):!!m)},f=c.normalize=function(p){return String(p).replace(i,".").toLowerCase()},l=c.data={},u=c.NATIVE="N",y=c.POLYFILL="P";r.exports=c},{"../internals/fails":247}],263:[function(t,r,e){r.exports=function(n){return typeof n=="object"?n!==null:typeof n=="function"}},{}],264:[function(t,r,e){r.exports=!1},{}],265:[function(t,r,e){var n=t("../internals/is-object"),i=t("../internals/classof-raw"),c=t("../internals/well-known-symbol")("match");r.exports=function(f){var l;return n(f)&&((l=f[c])!==void 0?!!l:i(f)=="RegExp")}},{"../internals/classof-raw":230,"../internals/is-object":263,"../internals/well-known-symbol":314}],266:[function(t,r,e){var n=t("../internals/an-object"),i=t("../internals/is-array-iterator-method"),c=t("../internals/to-length"),f=t("../internals/function-bind-context"),l=t("../internals/get-iterator-method"),u=t("../internals/call-with-safe-iteration-closing"),y=function(p,m){this.stopped=p,this.result=m};(r.exports=function(p,m,b,v,_){var s,o,h,a,d,g,w,k=f(m,b,v?2:1);if(_)s=p;else{if(typeof(o=l(p))!="function")throw TypeError("Target is not iterable");if(i(o)){for(h=0,a=c(p.length);a>h;h++)if((d=v?k(n(w=p[h])[0],w[1]):k(p[h]))&&d instanceof y)return d;return new y(!1)}s=o.call(p)}for(g=s.next;!(w=g.call(s)).done;)if(typeof(d=u(s,k,w.value,v))=="object"&&d&&d instanceof y)return d;return new y(!1)}).stop=function(p){return new y(!0,p)}},{"../internals/an-object":223,"../internals/call-with-safe-iteration-closing":228,"../internals/function-bind-context":248,"../internals/get-iterator-method":250,"../internals/is-array-iterator-method":260,"../internals/to-length":307}],267:[function(t,r,e){var n,i,c,f=t("../internals/object-get-prototype-of"),l=t("../internals/create-non-enumerable-property"),u=t("../internals/has"),y=t("../internals/well-known-symbol"),p=t("../internals/is-pure"),m=y("iterator"),b=!1,v=function(){return this};[].keys&&("next"in(c=[].keys())?(i=f(f(c)))!==Object.prototype&&(n=i):b=!0),n==null&&(n={}),p||u(n,m)||l(n,m,v),r.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:b}},{"../internals/create-non-enumerable-property":236,"../internals/has":252,"../internals/is-pure":264,"../internals/object-get-prototype-of":283,"../internals/well-known-symbol":314}],268:[function(t,r,e){arguments[4][253][0].apply(e,arguments)},{dup:253}],269:[function(t,r,e){var n,i,c,f,l,u,y,p,m=t("../internals/global"),b=t("../internals/object-get-own-property-descriptor").f,v=t("../internals/classof-raw"),_=t("../internals/task").set,s=t("../internals/engine-is-ios"),o=m.MutationObserver||m.WebKitMutationObserver,h=m.process,a=m.Promise,d=v(h)=="process",g=b(m,"queueMicrotask"),w=g&&g.value;w||(n=function(){var k,S;for(d&&(k=h.domain)&&k.exit();i;){S=i.fn,i=i.next;try{S()}catch(A){throw i?f():c=void 0,A}}c=void 0,k&&k.enter()},d?f=function(){h.nextTick(n)}:o&&!s?(l=!0,u=document.createTextNode(""),new o(n).observe(u,{characterData:!0}),f=function(){u.data=l=!l}):a&&a.resolve?(y=a.resolve(void 0),p=y.then,f=function(){p.call(y,n)}):f=function(){_.call(m,n)}),r.exports=w||function(k){var S={fn:k,next:void 0};c&&(c.next=S),i||(i=S,f()),c=S}},{"../internals/classof-raw":230,"../internals/engine-is-ios":242,"../internals/global":251,"../internals/object-get-own-property-descriptor":279,"../internals/task":303}],270:[function(t,r,e){var n=t("../internals/global");r.exports=n.Promise},{"../internals/global":251}],271:[function(t,r,e){var n=t("../internals/fails");r.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},{"../internals/fails":247}],272:[function(t,r,e){var n=t("../internals/global"),i=t("../internals/inspect-source"),c=n.WeakMap;r.exports=typeof c=="function"&&/native code/.test(i(c))},{"../internals/global":251,"../internals/inspect-source":258}],273:[function(t,r,e){var n=t("../internals/a-function"),i=function(c){var f,l;this.promise=new c(function(u,y){if(f!==void 0||l!==void 0)throw TypeError("Bad Promise constructor");f=u,l=y}),this.resolve=n(f),this.reject=n(l)};r.exports.f=function(c){return new i(c)}},{"../internals/a-function":219}],274:[function(t,r,e){var n=t("../internals/is-regexp");r.exports=function(i){if(n(i))throw TypeError("The method doesn't accept regular expressions");return i}},{"../internals/is-regexp":265}],275:[function(t,r,e){var n=t("../internals/descriptors"),i=t("../internals/fails"),c=t("../internals/object-keys"),f=t("../internals/object-get-own-property-symbols"),l=t("../internals/object-property-is-enumerable"),u=t("../internals/to-object"),y=t("../internals/indexed-object"),p=Object.assign,m=Object.defineProperty;r.exports=!p||i(function(){if(n&&p({b:1},p(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var b={},v={},_=Symbol(),s="abcdefghijklmnopqrst";return b[_]=7,s.split("").forEach(function(o){v[o]=o}),p({},b)[_]!=7||c(p({},v)).join("")!=s})?function(b,v){for(var _=u(b),s=arguments.length,o=1,h=f.f,a=l.f;s>o;)for(var d,g=y(arguments[o++]),w=h?c(g).concat(h(g)):c(g),k=w.length,S=0;k>S;)d=w[S++],n&&!a.call(g,d)||(_[d]=g[d]);return _}:p},{"../internals/descriptors":240,"../internals/fails":247,"../internals/indexed-object":257,"../internals/object-get-own-property-symbols":282,"../internals/object-keys":285,"../internals/object-property-is-enumerable":286,"../internals/to-object":308}],276:[function(t,r,e){var n,i=t("../internals/an-object"),c=t("../internals/object-define-properties"),f=t("../internals/enum-bug-keys"),l=t("../internals/hidden-keys"),u=t("../internals/html"),y=t("../internals/document-create-element"),p=t("../internals/shared-key"),m=">",b="<",v="prototype",_="script",s=p("IE_PROTO"),o=function(){},h=function(w){return b+_+m+w+b+"/"+_+m},a=function(w){w.write(h("")),w.close();var k=w.parentWindow.Object;return w=null,k},d=function(){var w,k=y("iframe"),S="java"+_+":";return k.style.display="none",u.appendChild(k),k.src=String(S),(w=k.contentWindow.document).open(),w.write(h("document.F=Object")),w.close(),w.F},g=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(k){}g=n?a(n):d();for(var w=f.length;w--;)delete g[v][f[w]];return g()};l[s]=!0,r.exports=Object.create||function(w,k){var S;return w!==null?(o[v]=i(w),S=new o,o[v]=null,S[s]=w):S=g(),k===void 0?S:c(S,k)}},{"../internals/an-object":223,"../internals/document-create-element":241,"../internals/enum-bug-keys":245,"../internals/hidden-keys":253,"../internals/html":255,"../internals/object-define-properties":277,"../internals/shared-key":299}],277:[function(t,r,e){var n=t("../internals/descriptors"),i=t("../internals/object-define-property"),c=t("../internals/an-object"),f=t("../internals/object-keys");r.exports=n?Object.defineProperties:function(l,u){c(l);for(var y,p=f(u),m=p.length,b=0;m>b;)i.f(l,y=p[b++],u[y]);return l}},{"../internals/an-object":223,"../internals/descriptors":240,"../internals/object-define-property":278,"../internals/object-keys":285}],278:[function(t,r,e){var n=t("../internals/descriptors"),i=t("../internals/ie8-dom-define"),c=t("../internals/an-object"),f=t("../internals/to-primitive"),l=Object.defineProperty;e.f=n?l:function(u,y,p){if(c(u),y=f(y,!0),c(p),i)try{return l(u,y,p)}catch(m){}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(u[y]=p.value),u}},{"../internals/an-object":223,"../internals/descriptors":240,"../internals/ie8-dom-define":256,"../internals/to-primitive":309}],279:[function(t,r,e){var n=t("../internals/descriptors"),i=t("../internals/object-property-is-enumerable"),c=t("../internals/create-property-descriptor"),f=t("../internals/to-indexed-object"),l=t("../internals/to-primitive"),u=t("../internals/has"),y=t("../internals/ie8-dom-define"),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(m,b){if(m=f(m),b=l(b,!0),y)try{return p(m,b)}catch(v){}if(u(m,b))return c(!i.f.call(m,b),m[b])}},{"../internals/create-property-descriptor":237,"../internals/descriptors":240,"../internals/has":252,"../internals/ie8-dom-define":256,"../internals/object-property-is-enumerable":286,"../internals/to-indexed-object":305,"../internals/to-primitive":309}],280:[function(t,r,e){var n=t("../internals/to-indexed-object"),i=t("../internals/object-get-own-property-names").f,c={}.toString,f=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(u){try{return i(u)}catch(y){return f.slice()}};r.exports.f=function(u){return f&&c.call(u)=="[object Window]"?l(u):i(n(u))}},{"../internals/object-get-own-property-names":281,"../internals/to-indexed-object":305}],281:[function(t,r,e){var n=t("../internals/object-keys-internal"),i=t("../internals/enum-bug-keys").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(c){return n(c,i)}},{"../internals/enum-bug-keys":245,"../internals/object-keys-internal":284}],282:[function(t,r,e){e.f=Object.getOwnPropertySymbols},{}],283:[function(t,r,e){var n=t("../internals/has"),i=t("../internals/to-object"),c=t("../internals/shared-key"),f=t("../internals/correct-prototype-getter"),l=c("IE_PROTO"),u=Object.prototype;r.exports=f?Object.getPrototypeOf:function(y){return y=i(y),n(y,l)?y[l]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?u:null}},{"../internals/correct-prototype-getter":234,"../internals/has":252,"../internals/shared-key":299,"../internals/to-object":308}],284:[function(t,r,e){var n=t("../internals/has"),i=t("../internals/to-indexed-object"),c=t("../internals/array-includes").indexOf,f=t("../internals/hidden-keys");r.exports=function(l,u){var y,p=i(l),m=0,b=[];for(y in p)!n(f,y)&&n(p,y)&&b.push(y);for(;u.length>m;)n(p,y=u[m++])&&(~c(b,y)||b.push(y));return b}},{"../internals/array-includes":224,"../internals/has":252,"../internals/hidden-keys":253,"../internals/to-indexed-object":305}],285:[function(t,r,e){var n=t("../internals/object-keys-internal"),i=t("../internals/enum-bug-keys");r.exports=Object.keys||function(c){return n(c,i)}},{"../internals/enum-bug-keys":245,"../internals/object-keys-internal":284}],286:[function(t,r,e){var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,c=i&&!n.call({1:2},1);e.f=c?function(f){var l=i(this,f);return!!l&&l.enumerable}:n},{}],287:[function(t,r,e){var n=t("../internals/an-object"),i=t("../internals/a-possible-prototype");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c,f=!1,l={};try{(c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(l,[]),f=l instanceof Array}catch(u){}return function(u,y){return n(u),i(y),f?c.call(u,y):u.__proto__=y,u}}():void 0)},{"../internals/a-possible-prototype":220,"../internals/an-object":223}],288:[function(t,r,e){var n=t("../internals/descriptors"),i=t("../internals/object-keys"),c=t("../internals/to-indexed-object"),f=t("../internals/object-property-is-enumerable").f,l=function(u){return function(y){for(var p,m=c(y),b=i(m),v=b.length,_=0,s=[];v>_;)p=b[_++],n&&!f.call(m,p)||s.push(u?[p,m[p]]:m[p]);return s}};r.exports={entries:l(!0),values:l(!1)}},{"../internals/descriptors":240,"../internals/object-keys":285,"../internals/object-property-is-enumerable":286,"../internals/to-indexed-object":305}],289:[function(t,r,e){var n=t("../internals/get-built-in"),i=t("../internals/object-get-own-property-names"),c=t("../internals/object-get-own-property-symbols"),f=t("../internals/an-object");r.exports=n("Reflect","ownKeys")||function(l){var u=i.f(f(l)),y=c.f;return y?u.concat(y(l)):u}},{"../internals/an-object":223,"../internals/get-built-in":249,"../internals/object-get-own-property-names":281,"../internals/object-get-own-property-symbols":282}],290:[function(t,r,e){var n=t("../internals/global");r.exports=n},{"../internals/global":251}],291:[function(t,r,e){r.exports=function(n){try{return{error:!1,value:n()}}catch(i){return{error:!0,value:i}}}},{}],292:[function(t,r,e){var n=t("../internals/an-object"),i=t("../internals/is-object"),c=t("../internals/new-promise-capability");r.exports=function(f,l){if(n(f),i(l)&&l.constructor===f)return l;var u=c.f(f);return(0,u.resolve)(l),u.promise}},{"../internals/an-object":223,"../internals/is-object":263,"../internals/new-promise-capability":273}],293:[function(t,r,e){var n=t("../internals/redefine");r.exports=function(i,c,f){for(var l in c)n(i,l,c[l],f);return i}},{"../internals/redefine":294}],294:[function(t,r,e){var n=t("../internals/global"),i=t("../internals/create-non-enumerable-property"),c=t("../internals/has"),f=t("../internals/set-global"),l=t("../internals/inspect-source"),u=t("../internals/internal-state"),y=u.get,p=u.enforce,m=String(String).split("String");(r.exports=function(b,v,_,s){var o=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,a=!!s&&!!s.noTargetGet;typeof _=="function"&&(typeof v!="string"||c(_,"name")||i(_,"name",v),p(_).source=m.join(typeof v=="string"?v:"")),b!==n?(o?!a&&b[v]&&(h=!0):delete b[v],h?b[v]=_:i(b,v,_)):h?b[v]=_:f(v,_)})(Function.prototype,"toString",function(){return typeof this=="function"&&y(this).source||l(this)})},{"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/has":252,"../internals/inspect-source":258,"../internals/internal-state":259,"../internals/set-global":296}],295:[function(t,r,e){r.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}},{}],296:[function(t,r,e){var n=t("../internals/global"),i=t("../internals/create-non-enumerable-property");r.exports=function(c,f){try{i(n,c,f)}catch(l){n[c]=f}return f}},{"../internals/create-non-enumerable-property":236,"../internals/global":251}],297:[function(t,r,e){var n=t("../internals/get-built-in"),i=t("../internals/object-define-property"),c=t("../internals/well-known-symbol"),f=t("../internals/descriptors"),l=c("species");r.exports=function(u){var y=n(u),p=i.f;f&&y&&!y[l]&&p(y,l,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":240,"../internals/get-built-in":249,"../internals/object-define-property":278,"../internals/well-known-symbol":314}],298:[function(t,r,e){var n=t("../internals/object-define-property").f,i=t("../internals/has"),c=t("../internals/well-known-symbol")("toStringTag");r.exports=function(f,l,u){f&&!i(f=u?f:f.prototype,c)&&n(f,c,{configurable:!0,value:l})}},{"../internals/has":252,"../internals/object-define-property":278,"../internals/well-known-symbol":314}],299:[function(t,r,e){var n=t("../internals/shared"),i=t("../internals/uid"),c=n("keys");r.exports=function(f){return c[f]||(c[f]=i(f))}},{"../internals/shared":301,"../internals/uid":311}],300:[function(t,r,e){var n=t("../internals/global"),i=t("../internals/set-global"),c="__core-js_shared__",f=n[c]||i(c,{});r.exports=f},{"../internals/global":251,"../internals/set-global":296}],301:[function(t,r,e){var n=t("../internals/is-pure"),i=t("../internals/shared-store");(r.exports=function(c,f){return i[c]||(i[c]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":264,"../internals/shared-store":300}],302:[function(t,r,e){var n=t("../internals/an-object"),i=t("../internals/a-function"),c=t("../internals/well-known-symbol")("species");r.exports=function(f,l){var u,y=n(f).constructor;return y===void 0||(u=n(y)[c])==null?l:i(u)}},{"../internals/a-function":219,"../internals/an-object":223,"../internals/well-known-symbol":314}],303:[function(t,r,e){var n,i,c,f=t("../internals/global"),l=t("../internals/fails"),u=t("../internals/classof-raw"),y=t("../internals/function-bind-context"),p=t("../internals/html"),m=t("../internals/document-create-element"),b=t("../internals/engine-is-ios"),v=f.location,_=f.setImmediate,s=f.clearImmediate,o=f.process,h=f.MessageChannel,a=f.Dispatch,d=0,g={},w="onreadystatechange",k=function(D){if(g.hasOwnProperty(D)){var N=g[D];delete g[D],N()}},S=function(D){return function(){k(D)}},A=function(D){k(D.data)},j=function(D){f.postMessage(D+"",v.protocol+"//"+v.host)};_&&s||(_=function(D){for(var N=[],F=1;arguments.length>F;)N.push(arguments[F++]);return g[++d]=function(){(typeof D=="function"?D:Function(D)).apply(void 0,N)},n(d),d},s=function(D){delete g[D]},u(o)=="process"?n=function(D){o.nextTick(S(D))}:a&&a.now?n=function(D){a.now(S(D))}:h&&!b?(c=(i=new h).port2,i.port1.onmessage=A,n=y(c.postMessage,c,1)):!f.addEventListener||typeof postMessage!="function"||f.importScripts||l(j)||v.protocol==="file:"?n=w in m("script")?function(D){p.appendChild(m("script"))[w]=function(){p.removeChild(this),k(D)}}:function(D){setTimeout(S(D),0)}:(n=j,f.addEventListener("message",A,!1))),r.exports={set:_,clear:s}},{"../internals/classof-raw":230,"../internals/document-create-element":241,"../internals/engine-is-ios":242,"../internals/fails":247,"../internals/function-bind-context":248,"../internals/global":251,"../internals/html":255}],304:[function(t,r,e){var n=t("../internals/to-integer"),i=Math.max,c=Math.min;r.exports=function(f,l){var u=n(f);return u<0?i(u+l,0):c(u,l)}},{"../internals/to-integer":306}],305:[function(t,r,e){var n=t("../internals/indexed-object"),i=t("../internals/require-object-coercible");r.exports=function(c){return n(i(c))}},{"../internals/indexed-object":257,"../internals/require-object-coercible":295}],306:[function(t,r,e){var n=Math.ceil,i=Math.floor;r.exports=function(c){return isNaN(c=+c)?0:(c>0?i:n)(c)}},{}],307:[function(t,r,e){var n=t("../internals/to-integer"),i=Math.min;r.exports=function(c){return c>0?i(n(c),9007199254740991):0}},{"../internals/to-integer":306}],308:[function(t,r,e){var n=t("../internals/require-object-coercible");r.exports=function(i){return Object(n(i))}},{"../internals/require-object-coercible":295}],309:[function(t,r,e){var n=t("../internals/is-object");r.exports=function(i,c){if(!n(i))return i;var f,l;if(c&&typeof(f=i.toString)=="function"&&!n(l=f.call(i))||typeof(f=i.valueOf)=="function"&&!n(l=f.call(i))||!c&&typeof(f=i.toString)=="function"&&!n(l=f.call(i)))return l;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":263}],310:[function(t,r,e){var n={};n[t("../internals/well-known-symbol")("toStringTag")]="z",r.exports=String(n)==="[object z]"},{"../internals/well-known-symbol":314}],311:[function(t,r,e){var n=0,i=Math.random();r.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++n+i).toString(36)}},{}],312:[function(t,r,e){var n=t("../internals/native-symbol");r.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":271}],313:[function(t,r,e){var n=t("../internals/well-known-symbol");e.f=n},{"../internals/well-known-symbol":314}],314:[function(t,r,e){var n=t("../internals/global"),i=t("../internals/shared"),c=t("../internals/has"),f=t("../internals/uid"),l=t("../internals/native-symbol"),u=t("../internals/use-symbol-as-uid"),y=i("wks"),p=n.Symbol,m=u?p:p&&p.withoutSetter||f;r.exports=function(b){return c(y,b)||(l&&c(p,b)?y[b]=p[b]:y[b]=m("Symbol."+b)),y[b]}},{"../internals/global":251,"../internals/has":252,"../internals/native-symbol":271,"../internals/shared":301,"../internals/uid":311,"../internals/use-symbol-as-uid":312}],315:[function(t,r,e){var n=t("../internals/export"),i=t("../internals/array-iteration").findIndex,c=t("../internals/add-to-unscopables"),f=t("../internals/array-method-uses-to-length"),l="findIndex",u=!0,y=f(l);l in[]&&Array(1)[l](function(){u=!1}),n({target:"Array",proto:!0,forced:u||!y},{findIndex:function(p){return i(this,p,arguments.length>1?arguments[1]:void 0)}}),c(l)},{"../internals/add-to-unscopables":221,"../internals/array-iteration":225,"../internals/array-method-uses-to-length":226,"../internals/export":246}],316:[function(t,r,e){var n=t("../internals/export"),i=t("../internals/array-iteration").find,c=t("../internals/add-to-unscopables"),f=t("../internals/array-method-uses-to-length"),l="find",u=!0,y=f(l);l in[]&&Array(1)[l](function(){u=!1}),n({target:"Array",proto:!0,forced:u||!y},{find:function(p){return i(this,p,arguments.length>1?arguments[1]:void 0)}}),c(l)},{"../internals/add-to-unscopables":221,"../internals/array-iteration":225,"../internals/array-method-uses-to-length":226,"../internals/export":246}],317:[function(t,r,e){var n=t("../internals/export"),i=t("../internals/array-includes").includes,c=t("../internals/add-to-unscopables");n({target:"Array",proto:!0,forced:!t("../internals/array-method-uses-to-length")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(f){return i(this,f,arguments.length>1?arguments[1]:void 0)}}),c("includes")},{"../internals/add-to-unscopables":221,"../internals/array-includes":224,"../internals/array-method-uses-to-length":226,"../internals/export":246}],318:[function(t,r,e){var n=t("../internals/to-indexed-object"),i=t("../internals/add-to-unscopables"),c=t("../internals/iterators"),f=t("../internals/internal-state"),l=t("../internals/define-iterator"),u="Array Iterator",y=f.set,p=f.getterFor(u);r.exports=l(Array,"Array",function(m,b){y(this,{type:u,target:n(m),index:0,kind:b})},function(){var m=p(this),b=m.target,v=m.kind,_=m.index++;return!b||_>=b.length?(m.target=void 0,{value:void 0,done:!0}):v=="keys"?{value:_,done:!1}:v=="values"?{value:b[_],done:!1}:{value:[_,b[_]],done:!1}},"values"),c.Arguments=c.Array,i("keys"),i("values"),i("entries")},{"../internals/add-to-unscopables":221,"../internals/define-iterator":238,"../internals/internal-state":259,"../internals/iterators":268,"../internals/to-indexed-object":305}],319:[function(t,r,e){t("../internals/export")({target:"Number",stat:!0},{isNaN:function(n){return n!=n}})},{"../internals/export":246}],320:[function(t,r,e){var n=t("../internals/export"),i=t("../internals/object-assign");n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},{"../internals/export":246,"../internals/object-assign":275}],321:[function(t,r,e){var n=t("../internals/export"),i=t("../internals/to-object"),c=t("../internals/object-keys");n({target:"Object",stat:!0,forced:t("../internals/fails")(function(){c(1)})},{keys:function(f){return c(i(f))}})},{"../internals/export":246,"../internals/fails":247,"../internals/object-keys":285,"../internals/to-object":308}],322:[function(t,r,e){var n=t("../internals/export"),i=t("../internals/object-to-array").values;n({target:"Object",stat:!0},{values:function(c){return i(c)}})},{"../internals/export":246,"../internals/object-to-array":288}],323:[function(t,r,e){var n,i,c,f,l=t("../internals/export"),u=t("../internals/is-pure"),y=t("../internals/global"),p=t("../internals/get-built-in"),m=t("../internals/native-promise-constructor"),b=t("../internals/redefine"),v=t("../internals/redefine-all"),_=t("../internals/set-to-string-tag"),s=t("../internals/set-species"),o=t("../internals/is-object"),h=t("../internals/a-function"),a=t("../internals/an-instance"),d=t("../internals/classof-raw"),g=t("../internals/inspect-source"),w=t("../internals/iterate"),k=t("../internals/check-correctness-of-iteration"),S=t("../internals/species-constructor"),A=t("../internals/task").set,j=t("../internals/microtask"),D=t("../internals/promise-resolve"),N=t("../internals/host-report-errors"),F=t("../internals/new-promise-capability"),T=t("../internals/perform"),I=t("../internals/internal-state"),x=t("../internals/is-forced"),O=t("../internals/well-known-symbol"),R=t("../internals/engine-v8-version"),C=O("species"),P="Promise",L=I.get,H=I.set,U=I.getterFor(P),B=m,W=y.TypeError,X=y.document,et=y.process,ft=p("fetch"),gt=F.f,bt=gt,rt=d(et)=="process",Q=!!(X&&X.createEvent&&y.dispatchEvent),K="unhandledrejection",nt="rejectionhandled",At=0,ot=1,ut=2,Mt=1,Bt=2,G=x(P,function(){if(g(B)===String(B)&&(R===66||!rt&&typeof PromiseRejectionEvent!="function")||u&&!B.prototype.finally)return!0;if(R>=51&&/native code/.test(B))return!1;var ct=B.resolve(1),pt=function(_t){_t(function(){},function(){})};return(ct.constructor={})[C]=pt,!(ct.then(function(){})instanceof pt)}),Z=G||!k(function(ct){B.all(ct).catch(function(){})}),J=function(ct){var pt;return!(!o(ct)||typeof(pt=ct.then)!="function")&&pt},St=function(ct,pt,_t){if(!pt.notified){pt.notified=!0;var vt=pt.reactions;j(function(){for(var Y=pt.value,ht=pt.state==ot,at=0;vt.length>at;){var it,q,wt,Pt=vt[at++],V=ht?Pt.ok:Pt.fail,Rt=Pt.resolve,mt=Pt.reject,dt=Pt.domain;try{V?(ht||(pt.rejection===Bt&&me(ct,pt),pt.rejection=Mt),V===!0?it=Y:(dt&&dt.enter(),it=V(Y),dt&&(dt.exit(),wt=!0)),it===Pt.promise?mt(W("Promise-chain cycle")):(q=J(it))?q.call(it,Rt,mt):Rt(it)):mt(Y)}catch(Tt){dt&&!wt&&dt.exit(),mt(Tt)}}pt.reactions=[],pt.notified=!1,_t&&!pt.rejection&&Ft(ct,pt)})}},It=function(ct,pt,_t){var vt,Y;Q?((vt=X.createEvent("Event")).promise=pt,vt.reason=_t,vt.initEvent(ct,!1,!0),y.dispatchEvent(vt)):vt={promise:pt,reason:_t},(Y=y["on"+ct])?Y(vt):ct===K&&N("Unhandled promise rejection",_t)},Ft=function(ct,pt){A.call(y,function(){var _t,vt=pt.value;if(Xt(pt)&&(_t=T(function(){rt?et.emit("unhandledRejection",vt,ct):It(K,ct,vt)}),pt.rejection=rt||Xt(pt)?Bt:Mt,_t.error))throw _t.value})},Xt=function(ct){return ct.rejection!==Mt&&!ct.parent},me=function(ct,pt){A.call(y,function(){rt?et.emit("rejectionHandled",ct):It(nt,ct,pt.value)})},fe=function(ct,pt,_t,vt){return function(Y){ct(pt,_t,Y,vt)}},Kt=function(ct,pt,_t,vt){pt.done||(pt.done=!0,vt&&(pt=vt),pt.value=_t,pt.state=ut,St(ct,pt,!0))},ie=function ct(pt,_t,vt,Y){if(!_t.done){_t.done=!0,Y&&(_t=Y);try{if(pt===vt)throw W("Promise can't be resolved itself");var ht=J(vt);ht?j(function(){var at={done:!1};try{ht.call(vt,fe(ct,pt,at,_t),fe(Kt,pt,at,_t))}catch(it){Kt(pt,at,it,_t)}}):(_t.value=vt,_t.state=ot,St(pt,_t,!1))}catch(at){Kt(pt,{done:!1},at,_t)}}};G&&(B=function(ct){a(this,B,P),h(ct),n.call(this);var pt=L(this);try{ct(fe(ie,this,pt),fe(Kt,this,pt))}catch(_t){Kt(this,pt,_t)}},(n=function(ct){H(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:At,value:void 0})}).prototype=v(B.prototype,{then:function(ct,pt){var _t=U(this),vt=gt(S(this,B));return vt.ok=typeof ct!="function"||ct,vt.fail=typeof pt=="function"&&pt,vt.domain=rt?et.domain:void 0,_t.parent=!0,_t.reactions.push(vt),_t.state!=At&&St(this,_t,!1),vt.promise},catch:function(ct){return this.then(void 0,ct)}}),i=function(){var ct=new n,pt=L(ct);this.promise=ct,this.resolve=fe(ie,ct,pt),this.reject=fe(Kt,ct,pt)},F.f=gt=function(ct){return ct===B||ct===c?new i(ct):bt(ct)},u||typeof m!="function"||(f=m.prototype.then,b(m.prototype,"then",function(ct,pt){var _t=this;return new B(function(vt,Y){f.call(_t,vt,Y)}).then(ct,pt)},{unsafe:!0}),typeof ft=="function"&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(ct){return D(B,ft.apply(y,arguments))}}))),l({global:!0,wrap:!0,forced:G},{Promise:B}),_(B,P,!1,!0),s(P),c=p(P),l({target:P,stat:!0,forced:G},{reject:function(ct){var pt=gt(this);return pt.reject.call(void 0,ct),pt.promise}}),l({target:P,stat:!0,forced:u||G},{resolve:function(ct){return D(u&&this===c?B:this,ct)}}),l({target:P,stat:!0,forced:Z},{all:function(ct){var pt=this,_t=gt(pt),vt=_t.resolve,Y=_t.reject,ht=T(function(){var at=h(pt.resolve),it=[],q=0,wt=1;w(ct,function(Pt){var V=q++,Rt=!1;it.push(void 0),wt++,at.call(pt,Pt).then(function(mt){Rt||(Rt=!0,it[V]=mt,--wt||vt(it))},Y)}),--wt||vt(it)});return ht.error&&Y(ht.value),_t.promise},race:function(ct){var pt=this,_t=gt(pt),vt=_t.reject,Y=T(function(){var ht=h(pt.resolve);w(ct,function(at){ht.call(pt,at).then(_t.resolve,vt)})});return Y.error&&vt(Y.value),_t.promise}})},{"../internals/a-function":219,"../internals/an-instance":222,"../internals/check-correctness-of-iteration":229,"../internals/classof-raw":230,"../internals/engine-v8-version":244,"../internals/export":246,"../internals/get-built-in":249,"../internals/global":251,"../internals/host-report-errors":254,"../internals/inspect-source":258,"../internals/internal-state":259,"../internals/is-forced":262,"../internals/is-object":263,"../internals/is-pure":264,"../internals/iterate":266,"../internals/microtask":269,"../internals/native-promise-constructor":270,"../internals/new-promise-capability":273,"../internals/perform":291,"../internals/promise-resolve":292,"../internals/redefine":294,"../internals/redefine-all":293,"../internals/set-species":297,"../internals/set-to-string-tag":298,"../internals/species-constructor":302,"../internals/task":303,"../internals/well-known-symbol":314}],324:[function(t,r,e){var n=t("../internals/export"),i=t("../internals/to-absolute-index"),c=String.fromCharCode,f=String.fromCodePoint;n({target:"String",stat:!0,forced:!!f&&f.length!=1},{fromCodePoint:function(l){for(var u,y=[],p=arguments.length,m=0;p>m;){if(u=+arguments[m++],i(u,1114111)!==u)throw RangeError(u+" is not a valid code point");y.push(u<65536?c(u):c(55296+((u-=65536)>>10),u%1024+56320))}return y.join("")}})},{"../internals/export":246,"../internals/to-absolute-index":304}],325:[function(t,r,e){var n=t("../internals/export"),i=t("../internals/not-a-regexp"),c=t("../internals/require-object-coercible");n({target:"String",proto:!0,forced:!t("../internals/correct-is-regexp-logic")("includes")},{includes:function(f){return!!~String(c(this)).indexOf(i(f),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":233,"../internals/export":246,"../internals/not-a-regexp":274,"../internals/require-object-coercible":295}],326:[function(t,r,e){t("../internals/define-well-known-symbol")("asyncIterator")},{"../internals/define-well-known-symbol":239}],327:[function(t,r,e){var n=t("../internals/export"),i=t("../internals/global"),c=t("../internals/get-built-in"),f=t("../internals/is-pure"),l=t("../internals/descriptors"),u=t("../internals/native-symbol"),y=t("../internals/use-symbol-as-uid"),p=t("../internals/fails"),m=t("../internals/has"),b=t("../internals/is-array"),v=t("../internals/is-object"),_=t("../internals/an-object"),s=t("../internals/to-object"),o=t("../internals/to-indexed-object"),h=t("../internals/to-primitive"),a=t("../internals/create-property-descriptor"),d=t("../internals/object-create"),g=t("../internals/object-keys"),w=t("../internals/object-get-own-property-names"),k=t("../internals/object-get-own-property-names-external"),S=t("../internals/object-get-own-property-symbols"),A=t("../internals/object-get-own-property-descriptor"),j=t("../internals/object-define-property"),D=t("../internals/object-property-is-enumerable"),N=t("../internals/create-non-enumerable-property"),F=t("../internals/redefine"),T=t("../internals/shared"),I=t("../internals/shared-key"),x=t("../internals/hidden-keys"),O=t("../internals/uid"),R=t("../internals/well-known-symbol"),C=t("../internals/well-known-symbol-wrapped"),P=t("../internals/define-well-known-symbol"),L=t("../internals/set-to-string-tag"),H=t("../internals/internal-state"),U=t("../internals/array-iteration").forEach,B=I("hidden"),W="Symbol",X="prototype",et=R("toPrimitive"),ft=H.set,gt=H.getterFor(W),bt=Object[X],rt=i.Symbol,Q=c("JSON","stringify"),K=A.f,nt=j.f,At=k.f,ot=D.f,ut=T("symbols"),Mt=T("op-symbols"),Bt=T("string-to-symbol-registry"),G=T("symbol-to-string-registry"),Z=T("wks"),J=i.QObject,St=!J||!J[X]||!J[X].findChild,It=l&&p(function(){return d(nt({},"a",{get:function(){return nt(this,"a",{value:7}).a}})).a!=7})?function(vt,Y,ht){var at=K(bt,Y);at&&delete bt[Y],nt(vt,Y,ht),at&&vt!==bt&&nt(bt,Y,at)}:nt,Ft=function(vt,Y){var ht=ut[vt]=d(rt[X]);return ft(ht,{type:W,tag:vt,description:Y}),l||(ht.description=Y),ht},Xt=y?function(vt){return typeof vt=="symbol"}:function(vt){return Object(vt)instanceof rt},me=function(vt,Y,ht){vt===bt&&me(Mt,Y,ht),_(vt);var at=h(Y,!0);return _(ht),m(ut,at)?(ht.enumerable?(m(vt,B)&&vt[B][at]&&(vt[B][at]=!1),ht=d(ht,{enumerable:a(0,!1)})):(m(vt,B)||nt(vt,B,a(1,{})),vt[B][at]=!0),It(vt,at,ht)):nt(vt,at,ht)},fe=function(vt,Y){_(vt);var ht=o(Y),at=g(ht).concat(_t(ht));return U(at,function(it){l&&!ie.call(ht,it)||me(vt,it,ht[it])}),vt},Kt=function(vt,Y){return Y===void 0?d(vt):fe(d(vt),Y)},ie=function(vt){var Y=h(vt,!0),ht=ot.call(this,Y);return!(this===bt&&m(ut,Y)&&!m(Mt,Y))&&(!(ht||!m(this,Y)||!m(ut,Y)||m(this,B)&&this[B][Y])||ht)},ct=function(vt,Y){var ht=o(vt),at=h(Y,!0);if(ht!==bt||!m(ut,at)||m(Mt,at)){var it=K(ht,at);return!it||!m(ut,at)||m(ht,B)&&ht[B][at]||(it.enumerable=!0),it}},pt=function(vt){var Y=At(o(vt)),ht=[];return U(Y,function(at){m(ut,at)||m(x,at)||ht.push(at)}),ht},_t=function(vt){var Y=vt===bt,ht=At(Y?Mt:o(vt)),at=[];return U(ht,function(it){!m(ut,it)||Y&&!m(bt,it)||at.push(ut[it])}),at};u||(rt=function(){if(this instanceof rt)throw TypeError("Symbol is not a constructor");var vt=arguments.length&&arguments[0]!==void 0?String(arguments[0]):void 0,Y=O(vt),ht=function at(it){this===bt&&at.call(Mt,it),m(this,B)&&m(this[B],Y)&&(this[B][Y]=!1),It(this,Y,a(1,it))};return l&&St&&It(bt,Y,{configurable:!0,set:ht}),Ft(Y,vt)},F(rt[X],"toString",function(){return gt(this).tag}),F(rt,"withoutSetter",function(vt){return Ft(O(vt),vt)}),D.f=ie,j.f=me,A.f=ct,w.f=k.f=pt,S.f=_t,C.f=function(vt){return Ft(R(vt),vt)},l&&(nt(rt[X],"description",{configurable:!0,get:function(){return gt(this).description}}),f||F(bt,"propertyIsEnumerable",ie,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:rt}),U(g(Z),function(vt){P(vt)}),n({target:W,stat:!0,forced:!u},{for:function(vt){var Y=String(vt);if(m(Bt,Y))return Bt[Y];var ht=rt(Y);return Bt[Y]=ht,G[ht]=Y,ht},keyFor:function(vt){if(!Xt(vt))throw TypeError(vt+" is not a symbol");if(m(G,vt))return G[vt]},useSetter:function(){St=!0},useSimple:function(){St=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!l},{create:Kt,defineProperty:me,defineProperties:fe,getOwnPropertyDescriptor:ct}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pt,getOwnPropertySymbols:_t}),n({target:"Object",stat:!0,forced:p(function(){S.f(1)})},{getOwnPropertySymbols:function(vt){return S.f(s(vt))}}),Q&&n({target:"JSON",stat:!0,forced:!u||p(function(){var vt=rt();return Q([vt])!="[null]"||Q({a:vt})!="{}"||Q(Object(vt))!="{}"})},{stringify:function(vt,Y,ht){for(var at,it=[vt],q=1;arguments.length>q;)it.push(arguments[q++]);if(at=Y,(v(Y)||vt!==void 0)&&!Xt(vt))return b(Y)||(Y=function(wt,Pt){if(typeof at=="function"&&(Pt=at.call(this,wt,Pt)),!Xt(Pt))return Pt}),it[1]=Y,Q.apply(null,it)}}),rt[X][et]||N(rt[X],et,rt[X].valueOf),L(rt,W),x[B]=!0},{"../internals/an-object":223,"../internals/array-iteration":225,"../internals/create-non-enumerable-property":236,"../internals/create-property-descriptor":237,"../internals/define-well-known-symbol":239,"../internals/descriptors":240,"../internals/export":246,"../internals/fails":247,"../internals/get-built-in":249,"../internals/global":251,"../internals/has":252,"../internals/hidden-keys":253,"../internals/internal-state":259,"../internals/is-array":261,"../internals/is-object":263,"../internals/is-pure":264,"../internals/native-symbol":271,"../internals/object-create":276,"../internals/object-define-property":278,"../internals/object-get-own-property-descriptor":279,"../internals/object-get-own-property-names":281,"../internals/object-get-own-property-names-external":280,"../internals/object-get-own-property-symbols":282,"../internals/object-keys":285,"../internals/object-property-is-enumerable":286,"../internals/redefine":294,"../internals/set-to-string-tag":298,"../internals/shared":301,"../internals/shared-key":299,"../internals/to-indexed-object":305,"../internals/to-object":308,"../internals/to-primitive":309,"../internals/uid":311,"../internals/use-symbol-as-uid":312,"../internals/well-known-symbol":314,"../internals/well-known-symbol-wrapped":313}],328:[function(t,r,e){(function(n){function i(g){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}function c(g){return Array.isArray?Array.isArray(g):d(g)==="[object Array]"}function f(g){return typeof g=="boolean"}function l(g){return g===null}function u(g){return g==null}function y(g){return typeof g=="number"}function p(g){return typeof g=="string"}function m(g){return i(g)==="symbol"}function b(g){return g===void 0}function v(g){return d(g)==="[object RegExp]"}function _(g){return i(g)==="object"&&g!==null}function s(g){return d(g)==="[object Date]"}function o(g){return d(g)==="[object Error]"||g instanceof Error}function h(g){return typeof g=="function"}function a(g){return g===null||typeof g=="boolean"||typeof g=="number"||typeof g=="string"||i(g)==="symbol"||g===void 0}function d(g){return Object.prototype.toString.call(g)}e.isArray=c,e.isBoolean=f,e.isNull=l,e.isNullOrUndefined=u,e.isNumber=y,e.isString=p,e.isSymbol=m,e.isUndefined=b,e.isRegExp=v,e.isObject=_,e.isDate=s,e.isError=o,e.isFunction=h,e.isPrimitive=a,e.isBuffer=n.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":388}],329:[function(t,r,e){(function(n){var i=t("elliptic"),c=t("bn.js");r.exports=function(y){return new l(y)};var f={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function l(y){this.curveType=f[y],this.curveType||(this.curveType={name:y}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function u(y,p,m){Array.isArray(y)||(y=y.toArray());var b=new n(y);if(m&&b.length<m){var v=new n(m-b.length);v.fill(0),b=n.concat([v,b])}return p?b.toString(p):b}f.p224=f.secp224r1,f.p256=f.secp256r1=f.prime256v1,f.p192=f.secp192r1=f.prime192v1,f.p384=f.secp384r1,f.p521=f.secp521r1,l.prototype.generateKeys=function(y,p){return this.keys=this.curve.genKeyPair(),this.getPublicKey(y,p)},l.prototype.computeSecret=function(y,p,m){return p=p||"utf8",n.isBuffer(y)||(y=new n(y,p)),u(this.curve.keyFromPublic(y).getPublic().mul(this.keys.getPrivate()).getX(),m,this.curveType.byteLength)},l.prototype.getPublicKey=function(y,p){var m=this.keys.getPublic(p==="compressed",!0);return p==="hybrid"&&(m[m.length-1]%2?m[0]=7:m[0]=6),u(m,y)},l.prototype.getPrivateKey=function(y){return u(this.keys.getPrivate(),y)},l.prototype.setPublicKey=function(y,p){return p=p||"utf8",n.isBuffer(y)||(y=new n(y,p)),this.keys._importPublic(y),this},l.prototype.setPrivateKey=function(y,p){p=p||"utf8",n.isBuffer(y)||(y=new n(y,p));var m=new c(y);return m=m.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(m),this}}).call(this,t("buffer").Buffer)},{"bn.js":330,buffer:216,elliptic:350}],330:[function(t,r,e){arguments[4][181][0].apply(e,arguments)},{buffer:185,dup:181}],331:[function(t,r,e){var n=t("inherits"),i=t("md5.js"),c=t("ripemd160"),f=t("sha.js"),l=t("cipher-base");function u(y){l.call(this,"digest"),this._hash=y}n(u,l),u.prototype._update=function(y){this._hash.update(y)},u.prototype._final=function(){return this._hash.digest()},r.exports=function(y){return(y=y.toLowerCase())==="md5"?new i:y==="rmd160"||y==="ripemd160"?new c:new u(f(y))}},{"cipher-base":218,inherits:387,"md5.js":434,ripemd160:493,"sha.js":499}],332:[function(t,r,e){var n=t("md5.js");r.exports=function(i){return new n().update(i).digest()}},{"md5.js":434}],333:[function(t,r,e){var n=t("inherits"),i=t("./legacy"),c=t("cipher-base"),f=t("safe-buffer").Buffer,l=t("create-hash/md5"),u=t("ripemd160"),y=t("sha.js"),p=f.alloc(128);function m(b,v){c.call(this,"digest"),typeof v=="string"&&(v=f.from(v));var _=b==="sha512"||b==="sha384"?128:64;this._alg=b,this._key=v,v.length>_?v=(b==="rmd160"?new u:y(b)).update(v).digest():v.length<_&&(v=f.concat([v,p],_));for(var s=this._ipad=f.allocUnsafe(_),o=this._opad=f.allocUnsafe(_),h=0;h<_;h++)s[h]=54^v[h],o[h]=92^v[h];this._hash=b==="rmd160"?new u:y(b),this._hash.update(s)}n(m,c),m.prototype._update=function(b){this._hash.update(b)},m.prototype._final=function(){var b=this._hash.digest();return(this._alg==="rmd160"?new u:y(this._alg)).update(this._opad).update(b).digest()},r.exports=function(b,v){return(b=b.toLowerCase())==="rmd160"||b==="ripemd160"?new m("rmd160",v):b==="md5"?new i(l,v):new m(b,v)}},{"./legacy":334,"cipher-base":218,"create-hash/md5":332,inherits:387,ripemd160:493,"safe-buffer":494,"sha.js":499}],334:[function(t,r,e){var n=t("inherits"),i=t("safe-buffer").Buffer,c=t("cipher-base"),f=i.alloc(128),l=64;function u(y,p){c.call(this,"digest"),typeof p=="string"&&(p=i.from(p)),this._alg=y,this._key=p,p.length>l?p=y(p):p.length<l&&(p=i.concat([p,f],l));for(var m=this._ipad=i.allocUnsafe(l),b=this._opad=i.allocUnsafe(l),v=0;v<l;v++)m[v]=54^p[v],b[v]=92^p[v];this._hash=[m]}n(u,c),u.prototype._update=function(y){this._hash.push(y)},u.prototype._final=function(){var y=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,y]))},r.exports=u},{"cipher-base":218,inherits:387,"safe-buffer":494}],335:[function(t,r,e){e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=t("randombytes"),e.createHash=e.Hash=t("create-hash"),e.createHmac=e.Hmac=t("create-hmac");var n=t("browserify-sign/algos"),i=Object.keys(n),c=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return c};var f=t("pbkdf2");e.pbkdf2=f.pbkdf2,e.pbkdf2Sync=f.pbkdf2Sync;var l=t("browserify-cipher");e.Cipher=l.Cipher,e.createCipher=l.createCipher,e.Cipheriv=l.Cipheriv,e.createCipheriv=l.createCipheriv,e.Decipher=l.Decipher,e.createDecipher=l.createDecipher,e.Decipheriv=l.Decipheriv,e.createDecipheriv=l.createDecipheriv,e.getCiphers=l.getCiphers,e.listCiphers=l.listCiphers;var u=t("diffie-hellman");e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var y=t("browserify-sign");e.createSign=y.createSign,e.Sign=y.Sign,e.createVerify=y.createVerify,e.Verify=y.Verify,e.createECDH=t("create-ecdh");var p=t("public-encrypt");e.publicEncrypt=p.publicEncrypt,e.privateEncrypt=p.privateEncrypt,e.publicDecrypt=p.publicDecrypt,e.privateDecrypt=p.privateDecrypt;var m=t("randomfill");e.randomFill=m.randomFill,e.randomFillSync=m.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
||
`))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":203,"browserify-sign":211,"browserify-sign/algos":208,"create-ecdh":329,"create-hash":331,"create-hmac":333,"diffie-hellman":345,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],336:[function(t,r,e){function n(f){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(f)}var i,c;i=void 0,c=function(){var f="millisecond",l="second",u="minute",y="hour",p="day",m="week",b="month",v="quarter",_="year",s="date",o=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,h=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a=function(T,I,x){var O=String(T);return!O||O.length>=I?T:""+Array(I+1-O.length).join(x)+T},d={s:a,z:function(T){var I=-T.utcOffset(),x=Math.abs(I),O=Math.floor(x/60),R=x%60;return(I<=0?"+":"-")+a(O,2,"0")+":"+a(R,2,"0")},m:function T(I,x){if(I.date()<x.date())return-T(x,I);var O=12*(x.year()-I.year())+(x.month()-I.month()),R=I.add(O,b),C=x-R<0,P=I.add(O+(C?-1:1),b);return+(-(O+(x-R)/(C?R-P:P-R))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:b,y:_,w:m,d:p,D:s,h:y,m:u,s:l,ms:f,Q:v}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},w="en",k={};k[w]=g;var S=function(T){return T instanceof N},A=function(T,I,x){var O;if(!T)return w;if(typeof T=="string")k[T]&&(O=T),I&&(k[T]=I,O=T);else{var R=T.name;k[R]=T,O=R}return!x&&O&&(w=O),O||!x&&w},j=function(T,I){if(S(T))return T.clone();var x=n(I)=="object"?I:{};return x.date=T,x.args=arguments,new N(x)},D=d;D.l=A,D.i=S,D.w=function(T,I){return j(T,{locale:I.$L,utc:I.$u,$offset:I.$offset})};var N=function(){function T(x){this.$L=this.$L||A(x.locale,null,!0),this.parse(x)}var I=T.prototype;return I.parse=function(x){this.$d=function(O){var R=O.date,C=O.utc;if(R===null)return new Date(NaN);if(D.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var P=R.match(o);if(P){var L=P[2]-1||0,H=(P[7]||"0").substring(0,3);return C?new Date(Date.UTC(P[1],L,P[3]||1,P[4]||0,P[5]||0,P[6]||0,H)):new Date(P[1],L,P[3]||1,P[4]||0,P[5]||0,P[6]||0,H)}}return new Date(R)}(x),this.init()},I.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},I.$utils=function(){return D},I.isValid=function(){return this.$d.toString()!=="Invalid Date"},I.isSame=function(x,O){var R=j(x);return this.startOf(O)<=R&&R<=this.endOf(O)},I.isAfter=function(x,O){return j(x)<this.startOf(O)},I.isBefore=function(x,O){return this.endOf(O)<j(x)},I.$g=function(x,O,R){return D.u(x)?this[O]:this.set(R,x)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(x,O){var R=this,C=!!D.u(O)||O,P=D.p(x),L=function(gt,bt){var rt=D.w(R.$u?Date.UTC(R.$y,bt,gt):new Date(R.$y,bt,gt),R);return C?rt:rt.endOf(p)},H=function(gt,bt){return D.w(R.toDate()[gt].apply(R.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(bt)),R)},U=this.$W,B=this.$M,W=this.$D,X="set"+(this.$u?"UTC":"");switch(P){case _:return C?L(1,0):L(31,11);case b:return C?L(1,B):L(0,B+1);case m:var et=this.$locale().weekStart||0,ft=(U<et?U+7:U)-et;return L(C?W-ft:W+(6-ft),B);case p:case s:return H(X+"Hours",0);case y:return H(X+"Minutes",1);case u:return H(X+"Seconds",2);case l:return H(X+"Milliseconds",3);default:return this.clone()}},I.endOf=function(x){return this.startOf(x,!1)},I.$set=function(x,O){var R,C=D.p(x),P="set"+(this.$u?"UTC":""),L=(R={},R[p]=P+"Date",R[s]=P+"Date",R[b]=P+"Month",R[_]=P+"FullYear",R[y]=P+"Hours",R[u]=P+"Minutes",R[l]=P+"Seconds",R[f]=P+"Milliseconds",R)[C],H=C===p?this.$D+(O-this.$W):O;if(C===b||C===_){var U=this.clone().set(s,1);U.$d[L](H),U.init(),this.$d=U.set(s,Math.min(this.$D,U.daysInMonth())).$d}else L&&this.$d[L](H);return this.init(),this},I.set=function(x,O){return this.clone().$set(x,O)},I.get=function(x){return this[D.p(x)]()},I.add=function(x,O){var R,C=this;x=Number(x);var P=D.p(O),L=function(B){var W=j(C);return D.w(W.date(W.date()+Math.round(B*x)),C)};if(P===b)return this.set(b,this.$M+x);if(P===_)return this.set(_,this.$y+x);if(P===p)return L(1);if(P===m)return L(7);var H=(R={},R[u]=6e4,R[y]=36e5,R[l]=1e3,R)[P]||1,U=this.$d.getTime()+x*H;return D.w(U,this)},I.subtract=function(x,O){return this.add(-1*x,O)},I.format=function(x){var O=this;if(!this.isValid())return"Invalid Date";var R=x||"YYYY-MM-DDTHH:mm:ssZ",C=D.z(this),P=this.$locale(),L=this.$H,H=this.$m,U=this.$M,B=P.weekdays,W=P.months,X=function(bt,rt,Q,K){return bt&&(bt[rt]||bt(O,R))||Q[rt].substr(0,K)},et=function(bt){return D.s(L%12||12,bt,"0")},ft=P.meridiem||function(bt,rt,Q){var K=bt<12?"AM":"PM";return Q?K.toLowerCase():K},gt={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:D.s(U+1,2,"0"),MMM:X(P.monthsShort,U,W,3),MMMM:X(W,U),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:X(P.weekdaysMin,this.$W,B,2),ddd:X(P.weekdaysShort,this.$W,B,3),dddd:B[this.$W],H:String(L),HH:D.s(L,2,"0"),h:et(1),hh:et(2),a:ft(L,H,!0),A:ft(L,H,!1),m:String(H),mm:D.s(H,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:C};return R.replace(h,function(bt,rt){return rt||gt[bt]||C.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(x,O,R){var C,P=D.p(O),L=j(x),H=6e4*(L.utcOffset()-this.utcOffset()),U=this-L,B=D.m(this,L);return B=(C={},C[_]=B/12,C[b]=B,C[v]=B/3,C[m]=(U-H)/6048e5,C[p]=(U-H)/864e5,C[y]=U/36e5,C[u]=U/6e4,C[l]=U/1e3,C)[P]||U,R?B:D.a(B)},I.daysInMonth=function(){return this.endOf(b).$D},I.$locale=function(){return k[this.$L]},I.locale=function(x,O){if(!x)return this.$L;var R=this.clone(),C=A(x,O,!0);return C&&(R.$L=C),R},I.clone=function(){return D.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},T}(),F=N.prototype;return j.prototype=F,[["$ms",f],["$s",l],["$m",u],["$H",y],["$W",p],["$M",b],["$y",_],["$D",s]].forEach(function(T){F[T[1]]=function(I){return this.$g(I,T[0],T[1])}}),j.extend=function(T,I){return T(I,N,j),j},j.locale=A,j.isDayjs=S,j.unix=function(T){return j(1e3*T)},j.en=k[w],j.Ls=k,j},(e===void 0?"undefined":n(e))=="object"&&r!==void 0?r.exports=c():i.dayjs=c()},{}],337:[function(t,r,e){function n(f){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(f)}var i,c;i=void 0,c=function(){var f,l=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,u=/\d\d/,y=/\d\d?/,p=/\d*[^\s\d-:/()]+/,m=function(o){return function(h){this[o]=+h}},b=[/[+-]\d\d:?\d\d/,function(o){var h,a;(this.zone||(this.zone={})).offset=(a=60*(h=o.match(/([+-]|\d\d)/g))[1]+ +h[2])==0?0:h[0]==="+"?-a:a}],v=function(o){var h=f[o];return h&&(h.indexOf?h:h.s.concat(h.f))},_={A:[/[AP]M/,function(o){this.afternoon=o==="PM"}],a:[/[ap]m/,function(o){this.afternoon=o==="pm"}],S:[/\d/,function(o){this.milliseconds=100*+o}],SS:[u,function(o){this.milliseconds=10*+o}],SSS:[/\d{3}/,function(o){this.milliseconds=+o}],s:[y,m("seconds")],ss:[y,m("seconds")],m:[y,m("minutes")],mm:[y,m("minutes")],H:[y,m("hours")],h:[y,m("hours")],HH:[y,m("hours")],hh:[y,m("hours")],D:[y,m("day")],DD:[u,m("day")],Do:[p,function(o){var h=f.ordinal,a=o.match(/\d+/);if(this.day=a[0],h)for(var d=1;d<=31;d+=1)h(d).replace(/\[|\]/g,"")===o&&(this.day=d)}],M:[y,m("month")],MM:[u,m("month")],MMM:[p,function(o){var h=v("months"),a=(v("monthsShort")||h.map(function(d){return d.substr(0,3)})).indexOf(o)+1;if(a<1)throw new Error;this.month=a%12||a}],MMMM:[p,function(o){var h=v("months").indexOf(o)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,m("year")],YY:[u,function(o){o=+o,this.year=o+(o>68?1900:2e3)}],YYYY:[/\d{4}/,m("year")],Z:b,ZZ:b},s=function(o,h,a){try{var d=function(L){for(var H=L.match(l),U=H.length,B=0;B<U;B+=1){var W=H[B],X=_[W],et=X&&X[0],ft=X&&X[1];H[B]=ft?{regex:et,parser:ft}:W.replace(/^\[|\]$/g,"")}return function(gt){for(var bt={},rt=0,Q=0;rt<U;rt+=1){var K=H[rt];if(typeof K=="string")Q+=K.length;else{var nt=K.regex,At=K.parser,ot=gt.substr(Q),ut=nt.exec(ot)[0];At.call(bt,ut),gt=gt.replace(ut,"")}}return function(Mt){var Bt=Mt.afternoon;if(Bt!==void 0){var G=Mt.hours;Bt?G<12&&(Mt.hours+=12):G===12&&(Mt.hours=0),delete Mt.afternoon}}(bt),bt}}(h)(o),g=d.year,w=d.month,k=d.day,S=d.hours,A=d.minutes,j=d.seconds,D=d.milliseconds,N=d.zone,F=new Date,T=k||(g||w?1:F.getDate()),I=g||F.getFullYear(),x=0;g&&!w||(x=w>0?w-1:F.getMonth());var O=S||0,R=A||0,C=j||0,P=D||0;return N?new Date(Date.UTC(I,x,T,O,R,C,P+60*N.offset*1e3)):a?new Date(Date.UTC(I,x,T,O,R,C,P)):new Date(I,x,T,O,R,C,P)}catch(L){return new Date("")}};return function(o,h,a){var d=h.prototype,g=d.parse;d.parse=function(w){var k=w.date,S=w.utc,A=w.args;this.$u=S;var j=A[1];if(typeof j=="string"){var D=A[2]===!0,N=A[3]===!0,F=D||N,T=A[2];N&&(T=A[2]),D||(f=T?a.Ls[T]:this.$locale()),this.$d=s(k,j,S),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),F&&k!==this.format(j)&&(this.$d=new Date(""))}else if(j instanceof Array)for(var I=j.length,x=1;x<=I;x+=1){A[1]=j[x-1];var O=a.apply(this,A);if(O.isValid()){this.$d=O.$d,this.$L=O.$L,this.init();break}x===I&&(this.$d=new Date(""))}else g.call(this,w)}}},(e===void 0?"undefined":n(e))=="object"&&r!==void 0?r.exports=c():i.dayjs_plugin_customParseFormat=c()},{}],338:[function(t,r,e){function n(f){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(f)}var i,c;i=void 0,c=function(){return function(f,l,u){var y=new Date().getTimezoneOffset(),p=l.prototype;u.utc=function(h){return new l({date:h,utc:!0,args:arguments})},p.utc=function(){return u(this.toDate(),{locale:this.$L,utc:!0})},p.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var m=p.parse;p.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),m.call(this,h)};var b=p.init;p.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else b.call(this)};var v=p.utcOffset;p.utcOffset=function(h,a){var d=this.$utils().u;if(d(h))return this.$u?0:d(this.$offset)?v.call(this):this.$offset;var g=Math.abs(h)<=16?60*h:h,w=this;return a?(w.$offset=g,w.$u=h===0,w):(h!==0?(w=this.local().add(g+y,"minute")).$offset=g:w=this.utc(),w)};var _=p.format;p.format=function(h){var a=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return _.call(this,a)},p.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+y;return this.$d.valueOf()-6e4*h},p.isUTC=function(){return!!this.$u},p.toISOString=function(){return this.toDate().toISOString()},p.toString=function(){return this.toDate().toUTCString()};var s=p.toDate;p.toDate=function(h){return h==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():s.call(this)};var o=p.diff;p.diff=function(h,a,d){var g=this.local(),w=u(h).local();return o.call(g,w,a,d)}}},(e===void 0?"undefined":n(e))=="object"&&r!==void 0?r.exports=c():i.dayjs_plugin_utc=c()},{}],339:[function(t,r,e){e.utils=t("./des/utils"),e.Cipher=t("./des/cipher"),e.DES=t("./des/des"),e.CBC=t("./des/cbc"),e.EDE=t("./des/ede")},{"./des/cbc":340,"./des/cipher":341,"./des/des":342,"./des/ede":343,"./des/utils":344}],340:[function(t,r,e){var n=t("minimalistic-assert"),i=t("inherits"),c={};function f(u){n.equal(u.length,8,"Invalid IV length"),this.iv=new Array(8);for(var y=0;y<this.iv.length;y++)this.iv[y]=u[y]}function l(u){function y(v){u.call(this,v),this._cbcInit()}i(y,u);for(var p=Object.keys(c),m=0;m<p.length;m++){var b=p[m];y.prototype[b]=c[b]}return y.create=function(v){return new y(v)},y}e.instantiate=l,c._cbcInit=function(){var u=new f(this.options.iv);this._cbcState=u},c._update=function(u,y,p,m){var b=this._cbcState,v=this.constructor.super_.prototype,_=b.iv;if(this.type==="encrypt"){for(var s=0;s<this.blockSize;s++)_[s]^=u[y+s];for(v._update.call(this,_,0,p,m),s=0;s<this.blockSize;s++)_[s]=p[m+s]}else{for(v._update.call(this,u,y,p,m),s=0;s<this.blockSize;s++)p[m+s]^=_[s];for(s=0;s<this.blockSize;s++)_[s]=u[y+s]}}},{inherits:387,"minimalistic-assert":437}],341:[function(t,r,e){var n=t("minimalistic-assert");function i(c){this.options=c,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}r.exports=i,i.prototype._init=function(){},i.prototype.update=function(c){return c.length===0?[]:this.type==="decrypt"?this._updateDecrypt(c):this._updateEncrypt(c)},i.prototype._buffer=function(c,f){for(var l=Math.min(this.buffer.length-this.bufferOff,c.length-f),u=0;u<l;u++)this.buffer[this.bufferOff+u]=c[f+u];return this.bufferOff+=l,l},i.prototype._flushBuffer=function(c,f){return this._update(this.buffer,0,c,f),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(c){var f=0,l=0,u=(this.bufferOff+c.length)/this.blockSize|0,y=new Array(u*this.blockSize);this.bufferOff!==0&&(f+=this._buffer(c,f),this.bufferOff===this.buffer.length&&(l+=this._flushBuffer(y,l)));for(var p=c.length-(c.length-f)%this.blockSize;f<p;f+=this.blockSize)this._update(c,f,y,l),l+=this.blockSize;for(;f<c.length;f++,this.bufferOff++)this.buffer[this.bufferOff]=c[f];return y},i.prototype._updateDecrypt=function(c){for(var f=0,l=0,u=Math.ceil((this.bufferOff+c.length)/this.blockSize)-1,y=new Array(u*this.blockSize);u>0;u--)f+=this._buffer(c,f),l+=this._flushBuffer(y,l);return f+=this._buffer(c,f),y},i.prototype.final=function(c){var f,l;return c&&(f=this.update(c)),l=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),f?f.concat(l):l},i.prototype._pad=function(c,f){if(f===0)return!1;for(;f<c.length;)c[f++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var c=new Array(this.blockSize);return this._update(this.buffer,0,c,0),c},i.prototype._unpad=function(c){return c},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var c=new Array(this.blockSize);return this._flushBuffer(c,0),this._unpad(c)}},{"minimalistic-assert":437}],342:[function(t,r,e){var n=t("minimalistic-assert"),i=t("inherits"),c=t("./utils"),f=t("./cipher");function l(){this.tmp=new Array(2),this.keys=null}function u(p){f.call(this,p);var m=new l;this._desState=m,this.deriveKeys(m,p.key)}i(u,f),r.exports=u,u.create=function(p){return new u(p)};var y=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(p,m){p.keys=new Array(32),n.equal(m.length,this.blockSize,"Invalid key length");var b=c.readUInt32BE(m,0),v=c.readUInt32BE(m,4);c.pc1(b,v,p.tmp,0),b=p.tmp[0],v=p.tmp[1];for(var _=0;_<p.keys.length;_+=2){var s=y[_>>>1];b=c.r28shl(b,s),v=c.r28shl(v,s),c.pc2(b,v,p.keys,_)}},u.prototype._update=function(p,m,b,v){var _=this._desState,s=c.readUInt32BE(p,m),o=c.readUInt32BE(p,m+4);c.ip(s,o,_.tmp,0),s=_.tmp[0],o=_.tmp[1],this.type==="encrypt"?this._encrypt(_,s,o,_.tmp,0):this._decrypt(_,s,o,_.tmp,0),s=_.tmp[0],o=_.tmp[1],c.writeUInt32BE(b,s,v),c.writeUInt32BE(b,o,v+4)},u.prototype._pad=function(p,m){for(var b=p.length-m,v=m;v<p.length;v++)p[v]=b;return!0},u.prototype._unpad=function(p){for(var m=p[p.length-1],b=p.length-m;b<p.length;b++)n.equal(p[b],m);return p.slice(0,p.length-m)},u.prototype._encrypt=function(p,m,b,v,_){for(var s=m,o=b,h=0;h<p.keys.length;h+=2){var a=p.keys[h],d=p.keys[h+1];c.expand(o,p.tmp,0),a^=p.tmp[0],d^=p.tmp[1];var g=c.substitute(a,d),w=o;o=(s^c.permute(g))>>>0,s=w}c.rip(o,s,v,_)},u.prototype._decrypt=function(p,m,b,v,_){for(var s=b,o=m,h=p.keys.length-2;h>=0;h-=2){var a=p.keys[h],d=p.keys[h+1];c.expand(s,p.tmp,0),a^=p.tmp[0],d^=p.tmp[1];var g=c.substitute(a,d),w=s;s=(o^c.permute(g))>>>0,o=w}c.rip(s,o,v,_)}},{"./cipher":341,"./utils":344,inherits:387,"minimalistic-assert":437}],343:[function(t,r,e){var n=t("minimalistic-assert"),i=t("inherits"),c=t("./cipher"),f=t("./des");function l(y,p){n.equal(p.length,24,"Invalid key length");var m=p.slice(0,8),b=p.slice(8,16),v=p.slice(16,24);this.ciphers=y==="encrypt"?[f.create({type:"encrypt",key:m}),f.create({type:"decrypt",key:b}),f.create({type:"encrypt",key:v})]:[f.create({type:"decrypt",key:v}),f.create({type:"encrypt",key:b}),f.create({type:"decrypt",key:m})]}function u(y){c.call(this,y);var p=new l(this.type,this.options.key);this._edeState=p}i(u,c),r.exports=u,u.create=function(y){return new u(y)},u.prototype._update=function(y,p,m,b){var v=this._edeState;v.ciphers[0]._update(y,p,m,b),v.ciphers[1]._update(m,b,m,b),v.ciphers[2]._update(m,b,m,b)},u.prototype._pad=f.prototype._pad,u.prototype._unpad=f.prototype._unpad},{"./cipher":341,"./des":342,inherits:387,"minimalistic-assert":437}],344:[function(t,r,e){e.readUInt32BE=function(f,l){return(f[0+l]<<24|f[1+l]<<16|f[2+l]<<8|f[3+l])>>>0},e.writeUInt32BE=function(f,l,u){f[0+u]=l>>>24,f[1+u]=l>>>16&255,f[2+u]=l>>>8&255,f[3+u]=255&l},e.ip=function(f,l,u,y){for(var p=0,m=0,b=6;b>=0;b-=2){for(var v=0;v<=24;v+=8)p<<=1,p|=l>>>v+b&1;for(v=0;v<=24;v+=8)p<<=1,p|=f>>>v+b&1}for(b=6;b>=0;b-=2){for(v=1;v<=25;v+=8)m<<=1,m|=l>>>v+b&1;for(v=1;v<=25;v+=8)m<<=1,m|=f>>>v+b&1}u[y+0]=p>>>0,u[y+1]=m>>>0},e.rip=function(f,l,u,y){for(var p=0,m=0,b=0;b<4;b++)for(var v=24;v>=0;v-=8)p<<=1,p|=l>>>v+b&1,p<<=1,p|=f>>>v+b&1;for(b=4;b<8;b++)for(v=24;v>=0;v-=8)m<<=1,m|=l>>>v+b&1,m<<=1,m|=f>>>v+b&1;u[y+0]=p>>>0,u[y+1]=m>>>0},e.pc1=function(f,l,u,y){for(var p=0,m=0,b=7;b>=5;b--){for(var v=0;v<=24;v+=8)p<<=1,p|=l>>v+b&1;for(v=0;v<=24;v+=8)p<<=1,p|=f>>v+b&1}for(v=0;v<=24;v+=8)p<<=1,p|=l>>v+b&1;for(b=1;b<=3;b++){for(v=0;v<=24;v+=8)m<<=1,m|=l>>v+b&1;for(v=0;v<=24;v+=8)m<<=1,m|=f>>v+b&1}for(v=0;v<=24;v+=8)m<<=1,m|=f>>v+b&1;u[y+0]=p>>>0,u[y+1]=m>>>0},e.r28shl=function(f,l){return f<<l&268435455|f>>>28-l};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(f,l,u,y){for(var p=0,m=0,b=n.length>>>1,v=0;v<b;v++)p<<=1,p|=f>>>n[v]&1;for(v=b;v<n.length;v++)m<<=1,m|=l>>>n[v]&1;u[y+0]=p>>>0,u[y+1]=m>>>0},e.expand=function(f,l,u){var y=0,p=0;y=(1&f)<<5|f>>>27;for(var m=23;m>=15;m-=4)y<<=6,y|=f>>>m&63;for(m=11;m>=3;m-=4)p|=f>>>m&63,p<<=6;p|=(31&f)<<1|f>>>31,l[u+0]=y>>>0,l[u+1]=p>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(f,l){for(var u=0,y=0;y<4;y++)u<<=4,u|=i[64*y+(f>>>18-6*y&63)];for(y=0;y<4;y++)u<<=4,u|=i[256+64*y+(l>>>18-6*y&63)];return u>>>0};var c=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(f){for(var l=0,u=0;u<c.length;u++)l<<=1,l|=f>>>c[u]&1;return l>>>0},e.padSplit=function(f,l,u){for(var y=f.toString(2);y.length<l;)y="0"+y;for(var p=[],m=0;m<l;m+=u)p.push(y.slice(m,m+u));return p.join(" ")}},{}],345:[function(t,r,e){(function(n){var i=t("./lib/generatePrime"),c=t("./lib/primes.json"),f=t("./lib/dh");function l(p){var m=new n(c[p].prime,"hex"),b=new n(c[p].gen,"hex");return new f(m,b)}var u={binary:!0,hex:!0,base64:!0};function y(p,m,b,v){return n.isBuffer(m)||u[m]===void 0?y(p,"binary",m,b):(m=m||"binary",v=v||"binary",b=b||new n([2]),n.isBuffer(b)||(b=new n(b,v)),typeof p=="number"?new f(i(p,b),b,!0):(n.isBuffer(p)||(p=new n(p,m)),new f(p,b,!0)))}e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=l,e.createDiffieHellman=e.DiffieHellman=y}).call(this,t("buffer").Buffer)},{"./lib/dh":346,"./lib/generatePrime":347,"./lib/primes.json":348,buffer:216}],346:[function(t,r,e){(function(n){var i=t("bn.js"),c=new(t("miller-rabin")),f=new i(24),l=new i(11),u=new i(10),y=new i(3),p=new i(7),m=t("./generatePrime"),b=t("randombytes");function v(d,g){return g=g||"utf8",n.isBuffer(d)||(d=new n(d,g)),this._pub=new i(d),this}function _(d,g){return g=g||"utf8",n.isBuffer(d)||(d=new n(d,g)),this._priv=new i(d),this}r.exports=h;var s={};function o(d,g){var w=g.toString("hex"),k=[w,d.toString(16)].join("_");if(k in s)return s[k];var S,A=0;if(d.isEven()||!m.simpleSieve||!m.fermatTest(d)||!c.test(d))return A+=1,A+=w==="02"||w==="05"?8:4,s[k]=A,A;switch(c.test(d.shrn(1))||(A+=2),w){case"02":d.mod(f).cmp(l)&&(A+=8);break;case"05":(S=d.mod(u)).cmp(y)&&S.cmp(p)&&(A+=8);break;default:A+=4}return s[k]=A,A}function h(d,g,w){this.setGenerator(g),this.__prime=new i(d),this._prime=i.mont(this.__prime),this._primeLen=d.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,w?(this.setPublicKey=v,this.setPrivateKey=_):this._primeCode=8}function a(d,g){var w=new n(d.toArray());return g?w.toString(g):w}Object.defineProperty(h.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=o(this.__prime,this.__gen)),this._primeCode}}),h.prototype.generateKeys=function(){return this._priv||(this._priv=new i(b(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},h.prototype.computeSecret=function(d){var g=(d=(d=new i(d)).toRed(this._prime)).redPow(this._priv).fromRed(),w=new n(g.toArray()),k=this.getPrime();if(w.length<k.length){var S=new n(k.length-w.length);S.fill(0),w=n.concat([S,w])}return w},h.prototype.getPublicKey=function(d){return a(this._pub,d)},h.prototype.getPrivateKey=function(d){return a(this._priv,d)},h.prototype.getPrime=function(d){return a(this.__prime,d)},h.prototype.getGenerator=function(d){return a(this._gen,d)},h.prototype.setGenerator=function(d,g){return g=g||"utf8",n.isBuffer(d)||(d=new n(d,g)),this.__gen=d,this._gen=new i(d),this}}).call(this,t("buffer").Buffer)},{"./generatePrime":347,"bn.js":349,buffer:216,"miller-rabin":435,randombytes:475}],347:[function(t,r,e){var n=t("randombytes");r.exports=a,a.simpleSieve=o,a.fermatTest=h;var i=t("bn.js"),c=new i(24),f=new(t("miller-rabin")),l=new i(1),u=new i(2),y=new i(5);new i(16),new i(8);var p=new i(10),m=new i(3);new i(7);var b=new i(11),v=new i(4);new i(12);var _=null;function s(){if(_!==null)return _;var d=1048576,g=[];g[0]=2;for(var w=1,k=3;k<d;k+=2){for(var S=Math.ceil(Math.sqrt(k)),A=0;A<w&&g[A]<=S&&k%g[A]!=0;A++);w!==A&&g[A]<=S||(g[w++]=k)}return _=g,g}function o(d){for(var g=s(),w=0;w<g.length;w++)if(d.modn(g[w])===0)return d.cmpn(g[w])===0;return!0}function h(d){var g=i.mont(d);return u.toRed(g).redPow(d.subn(1)).fromRed().cmpn(1)===0}function a(d,g){if(d<16)return new i(g===2||g===5?[140,123]:[140,39]);var w,k;for(g=new i(g);;){for(w=new i(n(Math.ceil(d/8)));w.bitLength()>d;)w.ishrn(1);if(w.isEven()&&w.iadd(l),w.testn(1)||w.iadd(u),g.cmp(u)){if(!g.cmp(y))for(;w.mod(p).cmp(m);)w.iadd(v)}else for(;w.mod(c).cmp(b);)w.iadd(v);if(o(k=w.shrn(1))&&o(w)&&h(k)&&h(w)&&f.test(k)&&f.test(w))return w}}},{"bn.js":349,"miller-rabin":435,randombytes:475}],348:[function(t,r,e){r.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],349:[function(t,r,e){arguments[4][181][0].apply(e,arguments)},{buffer:185,dup:181}],350:[function(t,r,e){var n=e;n.version=t("../package.json").version,n.utils=t("./elliptic/utils"),n.rand=t("brorand"),n.curve=t("./elliptic/curve"),n.curves=t("./elliptic/curves"),n.ec=t("./elliptic/ec"),n.eddsa=t("./elliptic/eddsa")},{"../package.json":366,"./elliptic/curve":353,"./elliptic/curves":356,"./elliptic/ec":357,"./elliptic/eddsa":360,"./elliptic/utils":364,brorand:184}],351:[function(t,r,e){var n=t("bn.js"),i=t("../utils"),c=i.getNAF,f=i.getJSF,l=i.assert;function u(p,m){this.type=p,this.p=new n(m.p,16),this.red=m.prime?n.red(m.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=m.n&&new n(m.n,16),this.g=m.g&&this.pointFromJSON(m.g,m.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var b=this.n&&this.p.div(this.n);!b||b.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function y(p,m){this.curve=p,this.type=m,this.precomputed=null}r.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(p,m){l(p.precomputed);var b=p._getDoubles(),v=c(m,1,this._bitLength),_=(1<<b.step+1)-(b.step%2==0?2:1);_/=3;for(var s=[],o=0;o<v.length;o+=b.step){var h=0;for(m=o+b.step-1;m>=o;m--)h=(h<<1)+v[m];s.push(h)}for(var a=this.jpoint(null,null,null),d=this.jpoint(null,null,null),g=_;g>0;g--){for(o=0;o<s.length;o++)(h=s[o])===g?d=d.mixedAdd(b.points[o]):h===-g&&(d=d.mixedAdd(b.points[o].neg()));a=a.add(d)}return a.toP()},u.prototype._wnafMul=function(p,m){var b=4,v=p._getNAFPoints(b);b=v.wnd;for(var _=v.points,s=c(m,b,this._bitLength),o=this.jpoint(null,null,null),h=s.length-1;h>=0;h--){for(m=0;h>=0&&s[h]===0;h--)m++;if(h>=0&&m++,o=o.dblp(m),h<0)break;var a=s[h];l(a!==0),o=p.type==="affine"?a>0?o.mixedAdd(_[a-1>>1]):o.mixedAdd(_[-a-1>>1].neg()):a>0?o.add(_[a-1>>1]):o.add(_[-a-1>>1].neg())}return p.type==="affine"?o.toP():o},u.prototype._wnafMulAdd=function(p,m,b,v,_){for(var s=this._wnafT1,o=this._wnafT2,h=this._wnafT3,a=0,d=0;d<v;d++){var g=(R=m[d])._getNAFPoints(p);s[d]=g.wnd,o[d]=g.points}for(d=v-1;d>=1;d-=2){var w=d-1,k=d;if(s[w]===1&&s[k]===1){var S=[m[w],null,null,m[k]];m[w].y.cmp(m[k].y)===0?(S[1]=m[w].add(m[k]),S[2]=m[w].toJ().mixedAdd(m[k].neg())):m[w].y.cmp(m[k].y.redNeg())===0?(S[1]=m[w].toJ().mixedAdd(m[k]),S[2]=m[w].add(m[k].neg())):(S[1]=m[w].toJ().mixedAdd(m[k]),S[2]=m[w].toJ().mixedAdd(m[k].neg()));var A=[-3,-1,-5,-7,0,7,5,1,3],j=f(b[w],b[k]);a=Math.max(j[0].length,a),h[w]=new Array(a),h[k]=new Array(a);for(var D=0;D<a;D++){var N=0|j[0][D],F=0|j[1][D];h[w][D]=A[3*(N+1)+(F+1)],h[k][D]=0,o[w]=S}}else h[w]=c(b[w],s[w],this._bitLength),h[k]=c(b[k],s[k],this._bitLength),a=Math.max(h[w].length,a),a=Math.max(h[k].length,a)}var T=this.jpoint(null,null,null),I=this._wnafT4;for(d=a;d>=0;d--){for(var x=0;d>=0;){var O=!0;for(D=0;D<v;D++)I[D]=0|h[D][d],I[D]!==0&&(O=!1);if(!O)break;x++,d--}if(d>=0&&x++,T=T.dblp(x),d<0)break;for(D=0;D<v;D++){var R,C=I[D];C!==0&&(C>0?R=o[D][C-1>>1]:C<0&&(R=o[D][-C-1>>1].neg()),T=R.type==="affine"?T.mixedAdd(R):T.add(R))}}for(d=0;d<v;d++)o[d]=null;return _?T:T.toP()},u.BasePoint=y,y.prototype.eq=function(){throw new Error("Not implemented")},y.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(p,m){p=i.toArray(p,m);var b=this.p.byteLength();if((p[0]===4||p[0]===6||p[0]===7)&&p.length-1==2*b)return p[0]===6?l(p[p.length-1]%2==0):p[0]===7&&l(p[p.length-1]%2==1),this.point(p.slice(1,1+b),p.slice(1+b,1+2*b));if((p[0]===2||p[0]===3)&&p.length-1===b)return this.pointFromX(p.slice(1,1+b),p[0]===3);throw new Error("Unknown point format")},y.prototype.encodeCompressed=function(p){return this.encode(p,!0)},y.prototype._encode=function(p){var m=this.curve.p.byteLength(),b=this.getX().toArray("be",m);return p?[this.getY().isEven()?2:3].concat(b):[4].concat(b,this.getY().toArray("be",m))},y.prototype.encode=function(p,m){return i.encode(this._encode(m),p)},y.prototype.precompute=function(p){if(this.precomputed)return this;var m={doubles:null,naf:null,beta:null};return m.naf=this._getNAFPoints(8),m.doubles=this._getDoubles(4,p),m.beta=this._getBeta(),this.precomputed=m,this},y.prototype._hasDoubles=function(p){if(!this.precomputed)return!1;var m=this.precomputed.doubles;return!!m&&m.points.length>=Math.ceil((p.bitLength()+1)/m.step)},y.prototype._getDoubles=function(p,m){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var b=[this],v=this,_=0;_<m;_+=p){for(var s=0;s<p;s++)v=v.dbl();b.push(v)}return{step:p,points:b}},y.prototype._getNAFPoints=function(p){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var m=[this],b=(1<<p)-1,v=b===1?null:this.dbl(),_=1;_<b;_++)m[_]=m[_-1].add(v);return{wnd:p,points:m}},y.prototype._getBeta=function(){return null},y.prototype.dblp=function(p){for(var m=this,b=0;b<p;b++)m=m.dbl();return m}},{"../utils":364,"bn.js":365}],352:[function(t,r,e){var n=t("../utils"),i=t("bn.js"),c=t("inherits"),f=t("./base"),l=n.assert;function u(p){this.twisted=(0|p.a)!=1,this.mOneA=this.twisted&&(0|p.a)==-1,this.extended=this.mOneA,f.call(this,"edwards",p),this.a=new i(p.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(p.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(p.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),l(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|p.c)==1}function y(p,m,b,v,_){f.BasePoint.call(this,p,"projective"),m===null&&b===null&&v===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(m,16),this.y=new i(b,16),this.z=v?new i(v,16):this.curve.one,this.t=_&&new i(_,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}c(u,f),r.exports=u,u.prototype._mulA=function(p){return this.mOneA?p.redNeg():this.a.redMul(p)},u.prototype._mulC=function(p){return this.oneC?p:this.c.redMul(p)},u.prototype.jpoint=function(p,m,b,v){return this.point(p,m,b,v)},u.prototype.pointFromX=function(p,m){(p=new i(p,16)).red||(p=p.toRed(this.red));var b=p.redSqr(),v=this.c2.redSub(this.a.redMul(b)),_=this.one.redSub(this.c2.redMul(this.d).redMul(b)),s=v.redMul(_.redInvm()),o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");var h=o.fromRed().isOdd();return(m&&!h||!m&&h)&&(o=o.redNeg()),this.point(p,o)},u.prototype.pointFromY=function(p,m){(p=new i(p,16)).red||(p=p.toRed(this.red));var b=p.redSqr(),v=b.redSub(this.c2),_=b.redMul(this.d).redMul(this.c2).redSub(this.a),s=v.redMul(_.redInvm());if(s.cmp(this.zero)===0){if(m)throw new Error("invalid point");return this.point(this.zero,p)}var o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");return o.fromRed().isOdd()!==m&&(o=o.redNeg()),this.point(o,p)},u.prototype.validate=function(p){if(p.isInfinity())return!0;p.normalize();var m=p.x.redSqr(),b=p.y.redSqr(),v=m.redMul(this.a).redAdd(b),_=this.c2.redMul(this.one.redAdd(this.d.redMul(m).redMul(b)));return v.cmp(_)===0},c(y,f.BasePoint),u.prototype.pointFromJSON=function(p){return y.fromJSON(this,p)},u.prototype.point=function(p,m,b,v){return new y(this,p,m,b,v)},y.fromJSON=function(p,m){return new y(p,m[0],m[1],m[2])},y.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},y.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},y.prototype._extDbl=function(){var p=this.x.redSqr(),m=this.y.redSqr(),b=this.z.redSqr();b=b.redIAdd(b);var v=this.curve._mulA(p),_=this.x.redAdd(this.y).redSqr().redISub(p).redISub(m),s=v.redAdd(m),o=s.redSub(b),h=v.redSub(m),a=_.redMul(o),d=s.redMul(h),g=_.redMul(h),w=o.redMul(s);return this.curve.point(a,d,w,g)},y.prototype._projDbl=function(){var p,m,b,v=this.x.redAdd(this.y).redSqr(),_=this.x.redSqr(),s=this.y.redSqr();if(this.curve.twisted){var o=(d=this.curve._mulA(_)).redAdd(s);if(this.zOne)p=v.redSub(_).redSub(s).redMul(o.redSub(this.curve.two)),m=o.redMul(d.redSub(s)),b=o.redSqr().redSub(o).redSub(o);else{var h=this.z.redSqr(),a=o.redSub(h).redISub(h);p=v.redSub(_).redISub(s).redMul(a),m=o.redMul(d.redSub(s)),b=o.redMul(a)}}else{var d=_.redAdd(s);h=this.curve._mulC(this.z).redSqr(),a=d.redSub(h).redSub(h),p=this.curve._mulC(v.redISub(d)).redMul(a),m=this.curve._mulC(d).redMul(_.redISub(s)),b=d.redMul(a)}return this.curve.point(p,m,b)},y.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},y.prototype._extAdd=function(p){var m=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),b=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),v=this.t.redMul(this.curve.dd).redMul(p.t),_=this.z.redMul(p.z.redAdd(p.z)),s=b.redSub(m),o=_.redSub(v),h=_.redAdd(v),a=b.redAdd(m),d=s.redMul(o),g=h.redMul(a),w=s.redMul(a),k=o.redMul(h);return this.curve.point(d,g,k,w)},y.prototype._projAdd=function(p){var m,b,v=this.z.redMul(p.z),_=v.redSqr(),s=this.x.redMul(p.x),o=this.y.redMul(p.y),h=this.curve.d.redMul(s).redMul(o),a=_.redSub(h),d=_.redAdd(h),g=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(s).redISub(o),w=v.redMul(a).redMul(g);return this.curve.twisted?(m=v.redMul(d).redMul(o.redSub(this.curve._mulA(s))),b=a.redMul(d)):(m=v.redMul(d).redMul(o.redSub(s)),b=this.curve._mulC(a).redMul(d)),this.curve.point(w,m,b)},y.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},y.prototype.mul=function(p){return this._hasDoubles(p)?this.curve._fixedNafMul(this,p):this.curve._wnafMul(this,p)},y.prototype.mulAdd=function(p,m,b){return this.curve._wnafMulAdd(1,[this,m],[p,b],2,!1)},y.prototype.jmulAdd=function(p,m,b){return this.curve._wnafMulAdd(1,[this,m],[p,b],2,!0)},y.prototype.normalize=function(){if(this.zOne)return this;var p=this.z.redInvm();return this.x=this.x.redMul(p),this.y=this.y.redMul(p),this.t&&(this.t=this.t.redMul(p)),this.z=this.curve.one,this.zOne=!0,this},y.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},y.prototype.getX=function(){return this.normalize(),this.x.fromRed()},y.prototype.getY=function(){return this.normalize(),this.y.fromRed()},y.prototype.eq=function(p){return this===p||this.getX().cmp(p.getX())===0&&this.getY().cmp(p.getY())===0},y.prototype.eqXToP=function(p){var m=p.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(m)===0)return!0;for(var b=p.clone(),v=this.curve.redN.redMul(this.z);;){if(b.iadd(this.curve.n),b.cmp(this.curve.p)>=0)return!1;if(m.redIAdd(v),this.x.cmp(m)===0)return!0}},y.prototype.toP=y.prototype.normalize,y.prototype.mixedAdd=y.prototype.add},{"../utils":364,"./base":351,"bn.js":365,inherits:387}],353:[function(t,r,e){var n=e;n.base=t("./base"),n.short=t("./short"),n.mont=t("./mont"),n.edwards=t("./edwards")},{"./base":351,"./edwards":352,"./mont":354,"./short":355}],354:[function(t,r,e){var n=t("bn.js"),i=t("inherits"),c=t("./base"),f=t("../utils");function l(y){c.call(this,"mont",y),this.a=new n(y.a,16).toRed(this.red),this.b=new n(y.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(y,p,m){c.BasePoint.call(this,y,"projective"),p===null&&m===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(p,16),this.z=new n(m,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(l,c),r.exports=l,l.prototype.validate=function(y){var p=y.normalize().x,m=p.redSqr(),b=m.redMul(p).redAdd(m.redMul(this.a)).redAdd(p);return b.redSqrt().redSqr().cmp(b)===0},i(u,c.BasePoint),l.prototype.decodePoint=function(y,p){return this.point(f.toArray(y,p),1)},l.prototype.point=function(y,p){return new u(this,y,p)},l.prototype.pointFromJSON=function(y){return u.fromJSON(this,y)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(y,p){return new u(y,p[0],p[1]||y.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0},u.prototype.dbl=function(){var y=this.x.redAdd(this.z).redSqr(),p=this.x.redSub(this.z).redSqr(),m=y.redSub(p),b=y.redMul(p),v=m.redMul(p.redAdd(this.curve.a24.redMul(m)));return this.curve.point(b,v)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(y,p){var m=this.x.redAdd(this.z),b=this.x.redSub(this.z),v=y.x.redAdd(y.z),_=y.x.redSub(y.z).redMul(m),s=v.redMul(b),o=p.z.redMul(_.redAdd(s).redSqr()),h=p.x.redMul(_.redISub(s).redSqr());return this.curve.point(o,h)},u.prototype.mul=function(y){for(var p=y.clone(),m=this,b=this.curve.point(null,null),v=this,_=[];p.cmpn(0)!==0;p.iushrn(1))_.push(p.andln(1));for(var s=_.length-1;s>=0;s--)_[s]===0?(m=m.diffAdd(b,v),b=b.dbl()):(b=m.diffAdd(b,v),m=m.dbl());return b},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(y){return this.getX().cmp(y.getX())===0},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":364,"./base":351,"bn.js":365,inherits:387}],355:[function(t,r,e){var n=t("../utils"),i=t("bn.js"),c=t("inherits"),f=t("./base"),l=n.assert;function u(m){f.call(this,"short",m),this.a=new i(m.a,16).toRed(this.red),this.b=new i(m.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(m),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function y(m,b,v,_){f.BasePoint.call(this,m,"affine"),b===null&&v===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(b,16),this.y=new i(v,16),_&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function p(m,b,v,_){f.BasePoint.call(this,m,"jacobian"),b===null&&v===null&&_===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(b,16),this.y=new i(v,16),this.z=new i(_,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}c(u,f),r.exports=u,u.prototype._getEndomorphism=function(m){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var b,v;if(m.beta)b=new i(m.beta,16).toRed(this.red);else{var _=this._getEndoRoots(this.p);b=(b=_[0].cmp(_[1])<0?_[0]:_[1]).toRed(this.red)}if(m.lambda)v=new i(m.lambda,16);else{var s=this._getEndoRoots(this.n);this.g.mul(s[0]).x.cmp(this.g.x.redMul(b))===0?v=s[0]:(v=s[1],l(this.g.mul(v).x.cmp(this.g.x.redMul(b))===0))}return{beta:b,lambda:v,basis:m.basis?m.basis.map(function(o){return{a:new i(o.a,16),b:new i(o.b,16)}}):this._getEndoBasis(v)}}},u.prototype._getEndoRoots=function(m){var b=m===this.p?this.red:i.mont(m),v=new i(2).toRed(b).redInvm(),_=v.redNeg(),s=new i(3).toRed(b).redNeg().redSqrt().redMul(v);return[_.redAdd(s).fromRed(),_.redSub(s).fromRed()]},u.prototype._getEndoBasis=function(m){for(var b,v,_,s,o,h,a,d,g,w=this.n.ushrn(Math.floor(this.n.bitLength()/2)),k=m,S=this.n.clone(),A=new i(1),j=new i(0),D=new i(0),N=new i(1),F=0;k.cmpn(0)!==0;){var T=S.div(k);d=S.sub(T.mul(k)),g=D.sub(T.mul(A));var I=N.sub(T.mul(j));if(!_&&d.cmp(w)<0)b=a.neg(),v=A,_=d.neg(),s=g;else if(_&&++F==2)break;a=d,S=k,k=d,D=A,A=g,N=j,j=I}o=d.neg(),h=g;var x=_.sqr().add(s.sqr());return o.sqr().add(h.sqr()).cmp(x)>=0&&(o=b,h=v),_.negative&&(_=_.neg(),s=s.neg()),o.negative&&(o=o.neg(),h=h.neg()),[{a:_,b:s},{a:o,b:h}]},u.prototype._endoSplit=function(m){var b=this.endo.basis,v=b[0],_=b[1],s=_.b.mul(m).divRound(this.n),o=v.b.neg().mul(m).divRound(this.n),h=s.mul(v.a),a=o.mul(_.a),d=s.mul(v.b),g=o.mul(_.b);return{k1:m.sub(h).sub(a),k2:d.add(g).neg()}},u.prototype.pointFromX=function(m,b){(m=new i(m,16)).red||(m=m.toRed(this.red));var v=m.redSqr().redMul(m).redIAdd(m.redMul(this.a)).redIAdd(this.b),_=v.redSqrt();if(_.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");var s=_.fromRed().isOdd();return(b&&!s||!b&&s)&&(_=_.redNeg()),this.point(m,_)},u.prototype.validate=function(m){if(m.inf)return!0;var b=m.x,v=m.y,_=this.a.redMul(b),s=b.redSqr().redMul(b).redIAdd(_).redIAdd(this.b);return v.redSqr().redISub(s).cmpn(0)===0},u.prototype._endoWnafMulAdd=function(m,b,v){for(var _=this._endoWnafT1,s=this._endoWnafT2,o=0;o<m.length;o++){var h=this._endoSplit(b[o]),a=m[o],d=a._getBeta();h.k1.negative&&(h.k1.ineg(),a=a.neg(!0)),h.k2.negative&&(h.k2.ineg(),d=d.neg(!0)),_[2*o]=a,_[2*o+1]=d,s[2*o]=h.k1,s[2*o+1]=h.k2}for(var g=this._wnafMulAdd(1,_,s,2*o,v),w=0;w<2*o;w++)_[w]=null,s[w]=null;return g},c(y,f.BasePoint),u.prototype.point=function(m,b,v){return new y(this,m,b,v)},u.prototype.pointFromJSON=function(m,b){return y.fromJSON(this,m,b)},y.prototype._getBeta=function(){if(this.curve.endo){var m=this.precomputed;if(m&&m.beta)return m.beta;var b=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(m){var v=this.curve,_=function(s){return v.point(s.x.redMul(v.endo.beta),s.y)};m.beta=b,b.precomputed={beta:null,naf:m.naf&&{wnd:m.naf.wnd,points:m.naf.points.map(_)},doubles:m.doubles&&{step:m.doubles.step,points:m.doubles.points.map(_)}}}return b}},y.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},y.fromJSON=function(m,b,v){typeof b=="string"&&(b=JSON.parse(b));var _=m.point(b[0],b[1],v);if(!b[2])return _;function s(h){return m.point(h[0],h[1],v)}var o=b[2];return _.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[_].concat(o.doubles.points.map(s))},naf:o.naf&&{wnd:o.naf.wnd,points:[_].concat(o.naf.points.map(s))}},_},y.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},y.prototype.isInfinity=function(){return this.inf},y.prototype.add=function(m){if(this.inf)return m;if(m.inf)return this;if(this.eq(m))return this.dbl();if(this.neg().eq(m))return this.curve.point(null,null);if(this.x.cmp(m.x)===0)return this.curve.point(null,null);var b=this.y.redSub(m.y);b.cmpn(0)!==0&&(b=b.redMul(this.x.redSub(m.x).redInvm()));var v=b.redSqr().redISub(this.x).redISub(m.x),_=b.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,_)},y.prototype.dbl=function(){if(this.inf)return this;var m=this.y.redAdd(this.y);if(m.cmpn(0)===0)return this.curve.point(null,null);var b=this.curve.a,v=this.x.redSqr(),_=m.redInvm(),s=v.redAdd(v).redIAdd(v).redIAdd(b).redMul(_),o=s.redSqr().redISub(this.x.redAdd(this.x)),h=s.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,h)},y.prototype.getX=function(){return this.x.fromRed()},y.prototype.getY=function(){return this.y.fromRed()},y.prototype.mul=function(m){return m=new i(m,16),this.isInfinity()?this:this._hasDoubles(m)?this.curve._fixedNafMul(this,m):this.curve.endo?this.curve._endoWnafMulAdd([this],[m]):this.curve._wnafMul(this,m)},y.prototype.mulAdd=function(m,b,v){var _=[this,b],s=[m,v];return this.curve.endo?this.curve._endoWnafMulAdd(_,s):this.curve._wnafMulAdd(1,_,s,2)},y.prototype.jmulAdd=function(m,b,v){var _=[this,b],s=[m,v];return this.curve.endo?this.curve._endoWnafMulAdd(_,s,!0):this.curve._wnafMulAdd(1,_,s,2,!0)},y.prototype.eq=function(m){return this===m||this.inf===m.inf&&(this.inf||this.x.cmp(m.x)===0&&this.y.cmp(m.y)===0)},y.prototype.neg=function(m){if(this.inf)return this;var b=this.curve.point(this.x,this.y.redNeg());if(m&&this.precomputed){var v=this.precomputed,_=function(s){return s.neg()};b.precomputed={naf:v.naf&&{wnd:v.naf.wnd,points:v.naf.points.map(_)},doubles:v.doubles&&{step:v.doubles.step,points:v.doubles.points.map(_)}}}return b},y.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},c(p,f.BasePoint),u.prototype.jpoint=function(m,b,v){return new p(this,m,b,v)},p.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var m=this.z.redInvm(),b=m.redSqr(),v=this.x.redMul(b),_=this.y.redMul(b).redMul(m);return this.curve.point(v,_)},p.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},p.prototype.add=function(m){if(this.isInfinity())return m;if(m.isInfinity())return this;var b=m.z.redSqr(),v=this.z.redSqr(),_=this.x.redMul(b),s=m.x.redMul(v),o=this.y.redMul(b.redMul(m.z)),h=m.y.redMul(v.redMul(this.z)),a=_.redSub(s),d=o.redSub(h);if(a.cmpn(0)===0)return d.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var g=a.redSqr(),w=g.redMul(a),k=_.redMul(g),S=d.redSqr().redIAdd(w).redISub(k).redISub(k),A=d.redMul(k.redISub(S)).redISub(o.redMul(w)),j=this.z.redMul(m.z).redMul(a);return this.curve.jpoint(S,A,j)},p.prototype.mixedAdd=function(m){if(this.isInfinity())return m.toJ();if(m.isInfinity())return this;var b=this.z.redSqr(),v=this.x,_=m.x.redMul(b),s=this.y,o=m.y.redMul(b).redMul(this.z),h=v.redSub(_),a=s.redSub(o);if(h.cmpn(0)===0)return a.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var d=h.redSqr(),g=d.redMul(h),w=v.redMul(d),k=a.redSqr().redIAdd(g).redISub(w).redISub(w),S=a.redMul(w.redISub(k)).redISub(s.redMul(g)),A=this.z.redMul(h);return this.curve.jpoint(k,S,A)},p.prototype.dblp=function(m){if(m===0)return this;if(this.isInfinity())return this;if(!m)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var b=this,v=0;v<m;v++)b=b.dbl();return b}var _=this.curve.a,s=this.curve.tinv,o=this.x,h=this.y,a=this.z,d=a.redSqr().redSqr(),g=h.redAdd(h);for(v=0;v<m;v++){var w=o.redSqr(),k=g.redSqr(),S=k.redSqr(),A=w.redAdd(w).redIAdd(w).redIAdd(_.redMul(d)),j=o.redMul(k),D=A.redSqr().redISub(j.redAdd(j)),N=j.redISub(D),F=A.redMul(N);F=F.redIAdd(F).redISub(S);var T=g.redMul(a);v+1<m&&(d=d.redMul(S)),o=D,a=T,g=F}return this.curve.jpoint(o,g.redMul(s),a)},p.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},p.prototype._zeroDbl=function(){var m,b,v;if(this.zOne){var _=this.x.redSqr(),s=this.y.redSqr(),o=s.redSqr(),h=this.x.redAdd(s).redSqr().redISub(_).redISub(o);h=h.redIAdd(h);var a=_.redAdd(_).redIAdd(_),d=a.redSqr().redISub(h).redISub(h),g=o.redIAdd(o);g=(g=g.redIAdd(g)).redIAdd(g),m=d,b=a.redMul(h.redISub(d)).redISub(g),v=this.y.redAdd(this.y)}else{var w=this.x.redSqr(),k=this.y.redSqr(),S=k.redSqr(),A=this.x.redAdd(k).redSqr().redISub(w).redISub(S);A=A.redIAdd(A);var j=w.redAdd(w).redIAdd(w),D=j.redSqr(),N=S.redIAdd(S);N=(N=N.redIAdd(N)).redIAdd(N),m=D.redISub(A).redISub(A),b=j.redMul(A.redISub(m)).redISub(N),v=(v=this.y.redMul(this.z)).redIAdd(v)}return this.curve.jpoint(m,b,v)},p.prototype._threeDbl=function(){var m,b,v;if(this.zOne){var _=this.x.redSqr(),s=this.y.redSqr(),o=s.redSqr(),h=this.x.redAdd(s).redSqr().redISub(_).redISub(o);h=h.redIAdd(h);var a=_.redAdd(_).redIAdd(_).redIAdd(this.curve.a),d=a.redSqr().redISub(h).redISub(h);m=d;var g=o.redIAdd(o);g=(g=g.redIAdd(g)).redIAdd(g),b=a.redMul(h.redISub(d)).redISub(g),v=this.y.redAdd(this.y)}else{var w=this.z.redSqr(),k=this.y.redSqr(),S=this.x.redMul(k),A=this.x.redSub(w).redMul(this.x.redAdd(w));A=A.redAdd(A).redIAdd(A);var j=S.redIAdd(S),D=(j=j.redIAdd(j)).redAdd(j);m=A.redSqr().redISub(D),v=this.y.redAdd(this.z).redSqr().redISub(k).redISub(w);var N=k.redSqr();N=(N=(N=N.redIAdd(N)).redIAdd(N)).redIAdd(N),b=A.redMul(j.redISub(m)).redISub(N)}return this.curve.jpoint(m,b,v)},p.prototype._dbl=function(){var m=this.curve.a,b=this.x,v=this.y,_=this.z,s=_.redSqr().redSqr(),o=b.redSqr(),h=v.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(m.redMul(s)),d=b.redAdd(b),g=(d=d.redIAdd(d)).redMul(h),w=a.redSqr().redISub(g.redAdd(g)),k=g.redISub(w),S=h.redSqr();S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S);var A=a.redMul(k).redISub(S),j=v.redAdd(v).redMul(_);return this.curve.jpoint(w,A,j)},p.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var m=this.x.redSqr(),b=this.y.redSqr(),v=this.z.redSqr(),_=b.redSqr(),s=m.redAdd(m).redIAdd(m),o=s.redSqr(),h=this.x.redAdd(b).redSqr().redISub(m).redISub(_),a=(h=(h=(h=h.redIAdd(h)).redAdd(h).redIAdd(h)).redISub(o)).redSqr(),d=_.redIAdd(_);d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var g=s.redIAdd(h).redSqr().redISub(o).redISub(a).redISub(d),w=b.redMul(g);w=(w=w.redIAdd(w)).redIAdd(w);var k=this.x.redMul(a).redISub(w);k=(k=k.redIAdd(k)).redIAdd(k);var S=this.y.redMul(g.redMul(d.redISub(g)).redISub(h.redMul(a)));S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S);var A=this.z.redAdd(h).redSqr().redISub(v).redISub(a);return this.curve.jpoint(k,S,A)},p.prototype.mul=function(m,b){return m=new i(m,b),this.curve._wnafMul(this,m)},p.prototype.eq=function(m){if(m.type==="affine")return this.eq(m.toJ());if(this===m)return!0;var b=this.z.redSqr(),v=m.z.redSqr();if(this.x.redMul(v).redISub(m.x.redMul(b)).cmpn(0)!==0)return!1;var _=b.redMul(this.z),s=v.redMul(m.z);return this.y.redMul(s).redISub(m.y.redMul(_)).cmpn(0)===0},p.prototype.eqXToP=function(m){var b=this.z.redSqr(),v=m.toRed(this.curve.red).redMul(b);if(this.x.cmp(v)===0)return!0;for(var _=m.clone(),s=this.curve.redN.redMul(b);;){if(_.iadd(this.curve.n),_.cmp(this.curve.p)>=0)return!1;if(v.redIAdd(s),this.x.cmp(v)===0)return!0}},p.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},p.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":364,"./base":351,"bn.js":365,inherits:387}],356:[function(t,r,e){var n,i=e,c=t("hash.js"),f=t("./curve"),l=t("./utils").assert;function u(p){p.type==="short"?this.curve=new f.short(p):p.type==="edwards"?this.curve=new f.edwards(p):this.curve=new f.mont(p),this.g=this.curve.g,this.n=this.curve.n,this.hash=p.hash,l(this.g.validate(),"Invalid curve"),l(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function y(p,m){Object.defineProperty(i,p,{configurable:!0,enumerable:!0,get:function(){var b=new u(m);return Object.defineProperty(i,p,{configurable:!0,enumerable:!0,value:b}),b}})}i.PresetCurve=u,y("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:c.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),y("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:c.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),y("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:c.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),y("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:c.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),y("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:c.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),y("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c.sha256,gRed:!1,g:["9"]}),y("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=t("./precomputed/secp256k1")}catch(p){n=void 0}y("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:c.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"./curve":353,"./precomputed/secp256k1":363,"./utils":364,"hash.js":372}],357:[function(t,r,e){function n(v){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _})(v)}var i=t("bn.js"),c=t("hmac-drbg"),f=t("../utils"),l=t("../curves"),u=t("brorand"),y=f.assert,p=t("./key"),m=t("./signature");function b(v){if(!(this instanceof b))return new b(v);typeof v=="string"&&(y(l.hasOwnProperty(v),"Unknown curve "+v),v=l[v]),v instanceof l.PresetCurve&&(v={curve:v}),this.curve=v.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=v.curve.g,this.g.precompute(v.curve.n.bitLength()+1),this.hash=v.hash||v.curve.hash}r.exports=b,b.prototype.keyPair=function(v){return new p(this,v)},b.prototype.keyFromPrivate=function(v,_){return p.fromPrivate(this,v,_)},b.prototype.keyFromPublic=function(v,_){return p.fromPublic(this,v,_)},b.prototype.genKeyPair=function(v){v||(v={});for(var _=new c({hash:this.hash,pers:v.pers,persEnc:v.persEnc||"utf8",entropy:v.entropy||u(this.hash.hmacStrength),entropyEnc:v.entropy&&v.entropyEnc||"utf8",nonce:this.n.toArray()}),s=this.n.byteLength(),o=this.n.sub(new i(2));;){var h=new i(_.generate(s));if(!(h.cmp(o)>0))return h.iaddn(1),this.keyFromPrivate(h)}},b.prototype._truncateToN=function(v,_){var s=8*v.byteLength()-this.n.bitLength();return s>0&&(v=v.ushrn(s)),!_&&v.cmp(this.n)>=0?v.sub(this.n):v},b.prototype.sign=function(v,_,s,o){n(s)==="object"&&(o=s,s=null),o||(o={}),_=this.keyFromPrivate(_,s),v=this._truncateToN(new i(v,16));for(var h=this.n.byteLength(),a=_.getPrivate().toArray("be",h),d=v.toArray("be",h),g=new c({hash:this.hash,entropy:a,nonce:d,pers:o.pers,persEnc:o.persEnc||"utf8"}),w=this.n.sub(new i(1)),k=0;;k++){var S=o.k?o.k(k):new i(g.generate(this.n.byteLength()));if(!((S=this._truncateToN(S,!0)).cmpn(1)<=0||S.cmp(w)>=0)){var A=this.g.mul(S);if(!A.isInfinity()){var j=A.getX(),D=j.umod(this.n);if(D.cmpn(0)!==0){var N=S.invm(this.n).mul(D.mul(_.getPrivate()).iadd(v));if((N=N.umod(this.n)).cmpn(0)!==0){var F=(A.getY().isOdd()?1:0)|(j.cmp(D)!==0?2:0);return o.canonical&&N.cmp(this.nh)>0&&(N=this.n.sub(N),F^=1),new m({r:D,s:N,recoveryParam:F})}}}}}},b.prototype.verify=function(v,_,s,o){v=this._truncateToN(new i(v,16)),s=this.keyFromPublic(s,o);var h=(_=new m(_,"hex")).r,a=_.s;if(h.cmpn(1)<0||h.cmp(this.n)>=0||a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var d,g=a.invm(this.n),w=g.mul(v).umod(this.n),k=g.mul(h).umod(this.n);return this.curve._maxwellTrick?!(d=this.g.jmulAdd(w,s.getPublic(),k)).isInfinity()&&d.eqXToP(h):!(d=this.g.mulAdd(w,s.getPublic(),k)).isInfinity()&&d.getX().umod(this.n).cmp(h)===0},b.prototype.recoverPubKey=function(v,_,s,o){y((3&s)===s,"The recovery param is more than two bits"),_=new m(_,o);var h=this.n,a=new i(v),d=_.r,g=_.s,w=1&s,k=s>>1;if(d.cmp(this.curve.p.umod(this.curve.n))>=0&&k)throw new Error("Unable to find sencond key candinate");d=k?this.curve.pointFromX(d.add(this.curve.n),w):this.curve.pointFromX(d,w);var S=_.r.invm(h),A=h.sub(a).mul(S).umod(h),j=g.mul(S).umod(h);return this.g.mulAdd(A,d,j)},b.prototype.getKeyRecoveryParam=function(v,_,s,o){if((_=new m(_,o)).recoveryParam!==null)return _.recoveryParam;for(var h=0;h<4;h++){var a;try{a=this.recoverPubKey(v,_,h)}catch(d){continue}if(a.eq(s))return h}throw new Error("Unable to find valid recovery factor")}},{"../curves":356,"../utils":364,"./key":358,"./signature":359,"bn.js":365,brorand:184,"hmac-drbg":384}],358:[function(t,r,e){var n=t("bn.js"),i=t("../utils").assert;function c(f,l){this.ec=f,this.priv=null,this.pub=null,l.priv&&this._importPrivate(l.priv,l.privEnc),l.pub&&this._importPublic(l.pub,l.pubEnc)}r.exports=c,c.fromPublic=function(f,l,u){return l instanceof c?l:new c(f,{pub:l,pubEnc:u})},c.fromPrivate=function(f,l,u){return l instanceof c?l:new c(f,{priv:l,privEnc:u})},c.prototype.validate=function(){var f=this.getPublic();return f.isInfinity()?{result:!1,reason:"Invalid public key"}:f.validate()?f.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},c.prototype.getPublic=function(f,l){return typeof f=="string"&&(l=f,f=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),l?this.pub.encode(l,f):this.pub},c.prototype.getPrivate=function(f){return f==="hex"?this.priv.toString(16,2):this.priv},c.prototype._importPrivate=function(f,l){this.priv=new n(f,l||16),this.priv=this.priv.umod(this.ec.curve.n)},c.prototype._importPublic=function(f,l){if(f.x||f.y)return this.ec.curve.type==="mont"?i(f.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||i(f.x&&f.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(f.x,f.y));this.pub=this.ec.curve.decodePoint(f,l)},c.prototype.derive=function(f){return f.mul(this.priv).getX()},c.prototype.sign=function(f,l,u){return this.ec.sign(f,this,l,u)},c.prototype.verify=function(f,l){return this.ec.verify(f,l,this)},c.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":364,"bn.js":365}],359:[function(t,r,e){var n=t("bn.js"),i=t("../utils"),c=i.assert;function f(m,b){if(m instanceof f)return m;this._importDER(m,b)||(c(m.r&&m.s,"Signature without r or s"),this.r=new n(m.r,16),this.s=new n(m.s,16),m.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=m.recoveryParam)}function l(){this.place=0}function u(m,b){var v=m[b.place++];if(!(128&v))return v;var _=15&v;if(_===0||_>4)return!1;for(var s=0,o=0,h=b.place;o<_;o++,h++)s<<=8,s|=m[h],s>>>=0;return!(s<=127)&&(b.place=h,s)}function y(m){for(var b=0,v=m.length-1;!m[b]&&!(128&m[b+1])&&b<v;)b++;return b===0?m:m.slice(b)}function p(m,b){if(b<128)m.push(b);else{var v=1+(Math.log(b)/Math.LN2>>>3);for(m.push(128|v);--v;)m.push(b>>>(v<<3)&255);m.push(b)}}r.exports=f,f.prototype._importDER=function(m,b){m=i.toArray(m,b);var v=new l;if(m[v.place++]!==48)return!1;var _=u(m,v);if(_===!1||_+v.place!==m.length||m[v.place++]!==2)return!1;var s=u(m,v);if(s===!1)return!1;var o=m.slice(v.place,s+v.place);if(v.place+=s,m[v.place++]!==2)return!1;var h=u(m,v);if(h===!1||m.length!==h+v.place)return!1;var a=m.slice(v.place,h+v.place);if(o[0]===0){if(!(128&o[1]))return!1;o=o.slice(1)}if(a[0]===0){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new n(o),this.s=new n(a),this.recoveryParam=null,!0},f.prototype.toDER=function(m){var b=this.r.toArray(),v=this.s.toArray();for(128&b[0]&&(b=[0].concat(b)),128&v[0]&&(v=[0].concat(v)),b=y(b),v=y(v);!(v[0]||128&v[1]);)v=v.slice(1);var _=[2];p(_,b.length),(_=_.concat(b)).push(2),p(_,v.length);var s=_.concat(v),o=[48];return p(o,s.length),o=o.concat(s),i.encode(o,m)}},{"../utils":364,"bn.js":365}],360:[function(t,r,e){var n=t("hash.js"),i=t("../curves"),c=t("../utils"),f=c.assert,l=c.parseBytes,u=t("./key"),y=t("./signature");function p(m){if(f(m==="ed25519","only tested with ed25519 so far"),!(this instanceof p))return new p(m);m=i[m].curve,this.curve=m,this.g=m.g,this.g.precompute(m.n.bitLength()+1),this.pointClass=m.point().constructor,this.encodingLength=Math.ceil(m.n.bitLength()/8),this.hash=n.sha512}r.exports=p,p.prototype.sign=function(m,b){m=l(m);var v=this.keyFromSecret(b),_=this.hashInt(v.messagePrefix(),m),s=this.g.mul(_),o=this.encodePoint(s),h=this.hashInt(o,v.pubBytes(),m).mul(v.priv()),a=_.add(h).umod(this.curve.n);return this.makeSignature({R:s,S:a,Rencoded:o})},p.prototype.verify=function(m,b,v){m=l(m),b=this.makeSignature(b);var _=this.keyFromPublic(v),s=this.hashInt(b.Rencoded(),_.pubBytes(),m),o=this.g.mul(b.S());return b.R().add(_.pub().mul(s)).eq(o)},p.prototype.hashInt=function(){for(var m=this.hash(),b=0;b<arguments.length;b++)m.update(arguments[b]);return c.intFromLE(m.digest()).umod(this.curve.n)},p.prototype.keyFromPublic=function(m){return u.fromPublic(this,m)},p.prototype.keyFromSecret=function(m){return u.fromSecret(this,m)},p.prototype.makeSignature=function(m){return m instanceof y?m:new y(this,m)},p.prototype.encodePoint=function(m){var b=m.getY().toArray("le",this.encodingLength);return b[this.encodingLength-1]|=m.getX().isOdd()?128:0,b},p.prototype.decodePoint=function(m){var b=(m=c.parseBytes(m)).length-1,v=m.slice(0,b).concat(-129&m[b]),_=(128&m[b])!=0,s=c.intFromLE(v);return this.curve.pointFromY(s,_)},p.prototype.encodeInt=function(m){return m.toArray("le",this.encodingLength)},p.prototype.decodeInt=function(m){return c.intFromLE(m)},p.prototype.isPoint=function(m){return m instanceof this.pointClass}},{"../curves":356,"../utils":364,"./key":361,"./signature":362,"hash.js":372}],361:[function(t,r,e){var n=t("../utils"),i=n.assert,c=n.parseBytes,f=n.cachedProperty;function l(u,y){this.eddsa=u,this._secret=c(y.secret),u.isPoint(y.pub)?this._pub=y.pub:this._pubBytes=c(y.pub)}l.fromPublic=function(u,y){return y instanceof l?y:new l(u,{pub:y})},l.fromSecret=function(u,y){return y instanceof l?y:new l(u,{secret:y})},l.prototype.secret=function(){return this._secret},f(l,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),f(l,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),f(l,"privBytes",function(){var u=this.eddsa,y=this.hash(),p=u.encodingLength-1,m=y.slice(0,u.encodingLength);return m[0]&=248,m[p]&=127,m[p]|=64,m}),f(l,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),f(l,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),f(l,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),l.prototype.sign=function(u){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(u,this)},l.prototype.verify=function(u,y){return this.eddsa.verify(u,y,this)},l.prototype.getSecret=function(u){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),u)},l.prototype.getPublic=function(u){return n.encode(this.pubBytes(),u)},r.exports=l},{"../utils":364}],362:[function(t,r,e){function n(p){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(p)}var i=t("bn.js"),c=t("../utils"),f=c.assert,l=c.cachedProperty,u=c.parseBytes;function y(p,m){this.eddsa=p,n(m)!=="object"&&(m=u(m)),Array.isArray(m)&&(m={R:m.slice(0,p.encodingLength),S:m.slice(p.encodingLength)}),f(m.R&&m.S,"Signature without R or S"),p.isPoint(m.R)&&(this._R=m.R),m.S instanceof i&&(this._S=m.S),this._Rencoded=Array.isArray(m.R)?m.R:m.Rencoded,this._Sencoded=Array.isArray(m.S)?m.S:m.Sencoded}l(y,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),l(y,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),l(y,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),l(y,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),y.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},y.prototype.toHex=function(){return c.encode(this.toBytes(),"hex").toUpperCase()},r.exports=y},{"../utils":364,"bn.js":365}],363:[function(t,r,e){r.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],364:[function(t,r,e){var n=e,i=t("bn.js"),c=t("minimalistic-assert"),f=t("minimalistic-crypto-utils");function l(b,v,_){var s=new Array(Math.max(b.bitLength(),_)+1);s.fill(0);for(var o=1<<v+1,h=b.clone(),a=0;a<s.length;a++){var d,g=h.andln(o-1);h.isOdd()?(d=g>(o>>1)-1?(o>>1)-g:g,h.isubn(d)):d=0,s[a]=d,h.iushrn(1)}return s}function u(b,v){var _=[[],[]];b=b.clone(),v=v.clone();for(var s=0,o=0;b.cmpn(-s)>0||v.cmpn(-o)>0;){var h,a,d,g=b.andln(3)+s&3,w=v.andln(3)+o&3;g===3&&(g=-1),w===3&&(w=-1),h=1&g?(d=b.andln(7)+s&7)!=3&&d!==5||w!==2?g:-g:0,_[0].push(h),a=1&w?(d=v.andln(7)+o&7)!=3&&d!==5||g!==2?w:-w:0,_[1].push(a),2*s===h+1&&(s=1-s),2*o===a+1&&(o=1-o),b.iushrn(1),v.iushrn(1)}return _}function y(b,v,_){var s="_"+v;b.prototype[v]=function(){return this[s]!==void 0?this[s]:this[s]=_.call(this)}}function p(b){return typeof b=="string"?n.toArray(b,"hex"):b}function m(b){return new i(b,"hex","le")}n.assert=c,n.toArray=f.toArray,n.zero2=f.zero2,n.toHex=f.toHex,n.encode=f.encode,n.getNAF=l,n.getJSF=u,n.cachedProperty=y,n.parseBytes=p,n.intFromLE=m},{"bn.js":365,"minimalistic-assert":437,"minimalistic-crypto-utils":438}],365:[function(t,r,e){arguments[4][181][0].apply(e,arguments)},{buffer:185,dup:181}],366:[function(t,r,e){r.exports={_from:"elliptic@^6.5.3",_id:"elliptic@6.5.3",_inBundle:!1,_integrity:"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.5.3",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.5.3",saveSpec:null,fetchSpec:"^6.5.3"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",_shasum:"cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6",_spec:"elliptic@^6.5.3",_where:"/mnt/d/dev/git/exceljs/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.5.3"}},{}],367:[function(t,r,e){function n(F){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T})(F)}var i=Object.create||j,c=Object.keys||D,f=Function.prototype.bind||N;function l(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=i(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}r.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._maxListeners=void 0;var u,y=10;try{var p={};Object.defineProperty&&Object.defineProperty(p,"x",{value:0}),u=p.x===0}catch(F){u=!1}function m(F){return F._maxListeners===void 0?l.defaultMaxListeners:F._maxListeners}function b(F,T,I){if(T)F.call(I);else for(var x=F.length,O=S(F,x),R=0;R<x;++R)O[R].call(I)}function v(F,T,I,x){if(T)F.call(I,x);else for(var O=F.length,R=S(F,O),C=0;C<O;++C)R[C].call(I,x)}function _(F,T,I,x,O){if(T)F.call(I,x,O);else for(var R=F.length,C=S(F,R),P=0;P<R;++P)C[P].call(I,x,O)}function s(F,T,I,x,O,R){if(T)F.call(I,x,O,R);else for(var C=F.length,P=S(F,C),L=0;L<C;++L)P[L].call(I,x,O,R)}function o(F,T,I,x){if(T)F.apply(I,x);else for(var O=F.length,R=S(F,O),C=0;C<O;++C)R[C].apply(I,x)}function h(F,T,I,x){var O,R,C;if(typeof I!="function")throw new TypeError('"listener" argument must be a function');if((R=F._events)?(R.newListener&&(F.emit("newListener",T,I.listener?I.listener:I),R=F._events),C=R[T]):(R=F._events=i(null),F._eventsCount=0),C){if(typeof C=="function"?C=R[T]=x?[I,C]:[C,I]:x?C.unshift(I):C.push(I),!C.warned&&(O=m(F))&&O>0&&C.length>O){C.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+C.length+' "'+String(T)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');P.name="MaxListenersExceededWarning",P.emitter=F,P.type=T,P.count=C.length,(typeof console=="undefined"?"undefined":n(console))==="object"&&console.warn&&console.warn("%s: %s",P.name,P.message)}}else C=R[T]=I,++F._eventsCount;return F}function a(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var F=new Array(arguments.length),T=0;T<F.length;++T)F[T]=arguments[T];this.listener.apply(this.target,F)}}function d(F,T,I){var x={fired:!1,wrapFn:void 0,target:F,type:T,listener:I},O=f.call(a,x);return O.listener=I,x.wrapFn=O,O}function g(F,T,I){var x=F._events;if(!x)return[];var O=x[T];return O?typeof O=="function"?I?[O.listener||O]:[O]:I?A(O):S(O,O.length):[]}function w(F){var T=this._events;if(T){var I=T[F];if(typeof I=="function")return 1;if(I)return I.length}return 0}function k(F,T){for(var I=T,x=I+1,O=F.length;x<O;I+=1,x+=1)F[I]=F[x];F.pop()}function S(F,T){for(var I=new Array(T),x=0;x<T;++x)I[x]=F[x];return I}function A(F){for(var T=new Array(F.length),I=0;I<T.length;++I)T[I]=F[I].listener||F[I];return T}function j(F){var T=function(){};return T.prototype=F,new T}function D(F){for(var T in F)Object.prototype.hasOwnProperty.call(F,T);return T}function N(F){var T=this;return function(){return T.apply(F,arguments)}}u?Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return y},set:function(F){if(typeof F!="number"||F<0||F!=F)throw new TypeError('"defaultMaxListeners" must be a positive number');y=F}}):l.defaultMaxListeners=y,l.prototype.setMaxListeners=function(F){if(typeof F!="number"||F<0||isNaN(F))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=F,this},l.prototype.getMaxListeners=function(){return m(this)},l.prototype.emit=function(F){var T,I,x,O,R,C,P=F==="error";if(C=this._events)P=P&&C.error==null;else if(!P)return!1;if(P){if(arguments.length>1&&(T=arguments[1]),T instanceof Error)throw T;var L=new Error('Unhandled "error" event. ('+T+")");throw L.context=T,L}if(!(I=C[F]))return!1;var H=typeof I=="function";switch(x=arguments.length){case 1:b(I,H,this);break;case 2:v(I,H,this,arguments[1]);break;case 3:_(I,H,this,arguments[1],arguments[2]);break;case 4:s(I,H,this,arguments[1],arguments[2],arguments[3]);break;default:for(O=new Array(x-1),R=1;R<x;R++)O[R-1]=arguments[R];o(I,H,this,O)}return!0},l.prototype.addListener=function(F,T){return h(this,F,T,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(F,T){return h(this,F,T,!0)},l.prototype.once=function(F,T){if(typeof T!="function")throw new TypeError('"listener" argument must be a function');return this.on(F,d(this,F,T)),this},l.prototype.prependOnceListener=function(F,T){if(typeof T!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(F,d(this,F,T)),this},l.prototype.removeListener=function(F,T){var I,x,O,R,C;if(typeof T!="function")throw new TypeError('"listener" argument must be a function');if(!(x=this._events))return this;if(!(I=x[F]))return this;if(I===T||I.listener===T)--this._eventsCount==0?this._events=i(null):(delete x[F],x.removeListener&&this.emit("removeListener",F,I.listener||T));else if(typeof I!="function"){for(O=-1,R=I.length-1;R>=0;R--)if(I[R]===T||I[R].listener===T){C=I[R].listener,O=R;break}if(O<0)return this;O===0?I.shift():k(I,O),I.length===1&&(x[F]=I[0]),x.removeListener&&this.emit("removeListener",F,C||T)}return this},l.prototype.removeAllListeners=function(F){var T,I,x;if(!(I=this._events))return this;if(!I.removeListener)return arguments.length===0?(this._events=i(null),this._eventsCount=0):I[F]&&(--this._eventsCount==0?this._events=i(null):delete I[F]),this;if(arguments.length===0){var O,R=c(I);for(x=0;x<R.length;++x)(O=R[x])!=="removeListener"&&this.removeAllListeners(O);return this.removeAllListeners("removeListener"),this._events=i(null),this._eventsCount=0,this}if(typeof(T=I[F])=="function")this.removeListener(F,T);else if(T)for(x=T.length-1;x>=0;x--)this.removeListener(F,T[x]);return this},l.prototype.listeners=function(F){return g(this,F,!0)},l.prototype.rawListeners=function(F){return g(this,F,!1)},l.listenerCount=function(F,T){return typeof F.listenerCount=="function"?F.listenerCount(T):w.call(F,T)},l.prototype.listenerCount=w,l.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],368:[function(t,r,e){var n=t("safe-buffer").Buffer,i=t("md5.js");function c(f,l,u,y){if(n.isBuffer(f)||(f=n.from(f,"binary")),l&&(n.isBuffer(l)||(l=n.from(l,"binary")),l.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var p=u/8,m=n.alloc(p),b=n.alloc(y||0),v=n.alloc(0);p>0||y>0;){var _=new i;_.update(v),_.update(f),l&&_.update(l),v=_.digest();var s=0;if(p>0){var o=m.length-p;s=Math.min(p,v.length),v.copy(m,o,0,s),p-=s}if(s<v.length&&y>0){var h=b.length-y,a=Math.min(y,v.length-s);v.copy(b,h,s,s+a),y-=a}}return v.fill(0),{key:m,iv:b}}r.exports=c},{"md5.js":434,"safe-buffer":494}],369:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0});var n=t("@fast-csv/format");Object.defineProperty(e,"format",{enumerable:!0,get:function(){return n.format}}),Object.defineProperty(e,"write",{enumerable:!0,get:function(){return n.write}}),Object.defineProperty(e,"writeToStream",{enumerable:!0,get:function(){return n.writeToStream}}),Object.defineProperty(e,"writeToBuffer",{enumerable:!0,get:function(){return n.writeToBuffer}}),Object.defineProperty(e,"writeToString",{enumerable:!0,get:function(){return n.writeToString}}),Object.defineProperty(e,"writeToPath",{enumerable:!0,get:function(){return n.writeToPath}}),Object.defineProperty(e,"CsvFormatterStream",{enumerable:!0,get:function(){return n.CsvFormatterStream}}),Object.defineProperty(e,"FormatterOptions",{enumerable:!0,get:function(){return n.FormatterOptions}});var i=t("@fast-csv/parse");Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(e,"parseString",{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(e,"parseStream",{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(e,"parseFile",{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(e,"ParserOptions",{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(e,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}})},{"@fast-csv/format":148,"@fast-csv/parse":152}],370:[function(t,r,e){var n=t("safe-buffer").Buffer,i=t("readable-stream").Transform;function c(l,u){if(!n.isBuffer(l)&&typeof l!="string")throw new TypeError(u+" must be a string or a buffer")}function f(l){i.call(this),this._block=n.allocUnsafe(l),this._blockSize=l,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}t("inherits")(f,i),f.prototype._transform=function(l,u,y){var p=null;try{this.update(l,u)}catch(m){p=m}y(p)},f.prototype._flush=function(l){var u=null;try{this.push(this.digest())}catch(y){u=y}l(u)},f.prototype.update=function(l,u){if(c(l,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(l)||(l=n.from(l,u));for(var y=this._block,p=0;this._blockOffset+l.length-p>=this._blockSize;){for(var m=this._blockOffset;m<this._blockSize;)y[m++]=l[p++];this._update(),this._blockOffset=0}for(;p<l.length;)y[this._blockOffset++]=l[p++];for(var b=0,v=8*l.length;v>0;++b)this._length[b]+=v,(v=this._length[b]/4294967296|0)>0&&(this._length[b]-=4294967296*v);return this},f.prototype._update=function(){throw new Error("_update is not implemented")},f.prototype.digest=function(l){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var u=this._digest();l!==void 0&&(u=u.toString(l)),this._block.fill(0),this._blockOffset=0;for(var y=0;y<4;++y)this._length[y]=0;return u},f.prototype._digest=function(){throw new Error("_digest is not implemented")},r.exports=f},{inherits:387,"readable-stream":491,"safe-buffer":371}],371:[function(t,r,e){arguments[4][214][0].apply(e,arguments)},{buffer:216,dup:214}],372:[function(t,r,e){var n=e;n.utils=t("./hash/utils"),n.common=t("./hash/common"),n.sha=t("./hash/sha"),n.ripemd=t("./hash/ripemd"),n.hmac=t("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":373,"./hash/hmac":374,"./hash/ripemd":375,"./hash/sha":376,"./hash/utils":383}],373:[function(t,r,e){var n=t("./utils"),i=t("minimalistic-assert");function c(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=c,c.prototype.update=function(f,l){if(f=n.toArray(f,l),this.pending?this.pending=this.pending.concat(f):this.pending=f,this.pendingTotal+=f.length,this.pending.length>=this._delta8){var u=(f=this.pending).length%this._delta8;this.pending=f.slice(f.length-u,f.length),this.pending.length===0&&(this.pending=null),f=n.join32(f,0,f.length-u,this.endian);for(var y=0;y<f.length;y+=this._delta32)this._update(f,y,y+this._delta32)}return this},c.prototype.digest=function(f){return this.update(this._pad()),i(this.pending===null),this._digest(f)},c.prototype._pad=function(){var f=this.pendingTotal,l=this._delta8,u=l-(f+this.padLength)%l,y=new Array(u+this.padLength);y[0]=128;for(var p=1;p<u;p++)y[p]=0;if(f<<=3,this.endian==="big"){for(var m=8;m<this.padLength;m++)y[p++]=0;y[p++]=0,y[p++]=0,y[p++]=0,y[p++]=0,y[p++]=f>>>24&255,y[p++]=f>>>16&255,y[p++]=f>>>8&255,y[p++]=255&f}else for(y[p++]=255&f,y[p++]=f>>>8&255,y[p++]=f>>>16&255,y[p++]=f>>>24&255,y[p++]=0,y[p++]=0,y[p++]=0,y[p++]=0,m=8;m<this.padLength;m++)y[p++]=0;return y}},{"./utils":383,"minimalistic-assert":437}],374:[function(t,r,e){var n=t("./utils"),i=t("minimalistic-assert");function c(f,l,u){if(!(this instanceof c))return new c(f,l,u);this.Hash=f,this.blockSize=f.blockSize/8,this.outSize=f.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(l,u))}r.exports=c,c.prototype._init=function(f){f.length>this.blockSize&&(f=new this.Hash().update(f).digest()),i(f.length<=this.blockSize);for(var l=f.length;l<this.blockSize;l++)f.push(0);for(l=0;l<f.length;l++)f[l]^=54;for(this.inner=new this.Hash().update(f),l=0;l<f.length;l++)f[l]^=106;this.outer=new this.Hash().update(f)},c.prototype.update=function(f,l){return this.inner.update(f,l),this},c.prototype.digest=function(f){return this.outer.update(this.inner.digest()),this.outer.digest(f)}},{"./utils":383,"minimalistic-assert":437}],375:[function(t,r,e){var n=t("./utils"),i=t("./common"),c=n.rotl32,f=n.sum32,l=n.sum32_3,u=n.sum32_4,y=i.BlockHash;function p(){if(!(this instanceof p))return new p;y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function m(a,d,g,w){return a<=15?d^g^w:a<=31?d&g|~d&w:a<=47?(d|~g)^w:a<=63?d&w|g&~w:d^(g|~w)}function b(a){return a<=15?0:a<=31?1518500249:a<=47?1859775393:a<=63?2400959708:2840853838}function v(a){return a<=15?1352829926:a<=31?1548603684:a<=47?1836072691:a<=63?2053994217:0}n.inherits(p,y),e.ripemd160=p,p.blockSize=512,p.outSize=160,p.hmacStrength=192,p.padLength=64,p.prototype._update=function(a,d){for(var g=this.h[0],w=this.h[1],k=this.h[2],S=this.h[3],A=this.h[4],j=g,D=w,N=k,F=S,T=A,I=0;I<80;I++){var x=f(c(u(g,m(I,w,k,S),a[_[I]+d],b(I)),o[I]),A);g=A,A=S,S=c(k,10),k=w,w=x,x=f(c(u(j,m(79-I,D,N,F),a[s[I]+d],v(I)),h[I]),T),j=T,T=F,F=c(N,10),N=D,D=x}x=l(this.h[1],k,F),this.h[1]=l(this.h[2],S,T),this.h[2]=l(this.h[3],A,j),this.h[3]=l(this.h[4],g,D),this.h[4]=l(this.h[0],w,N),this.h[0]=x},p.prototype._digest=function(a){return a==="hex"?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var _=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],s=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],o=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":373,"./utils":383}],376:[function(t,r,e){e.sha1=t("./sha/1"),e.sha224=t("./sha/224"),e.sha256=t("./sha/256"),e.sha384=t("./sha/384"),e.sha512=t("./sha/512")},{"./sha/1":377,"./sha/224":378,"./sha/256":379,"./sha/384":380,"./sha/512":381}],377:[function(t,r,e){var n=t("../utils"),i=t("../common"),c=t("./common"),f=n.rotl32,l=n.sum32,u=n.sum32_5,y=c.ft_1,p=i.BlockHash,m=[1518500249,1859775393,2400959708,3395469782];function b(){if(!(this instanceof b))return new b;p.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(b,p),r.exports=b,b.blockSize=512,b.outSize=160,b.hmacStrength=80,b.padLength=64,b.prototype._update=function(v,_){for(var s=this.W,o=0;o<16;o++)s[o]=v[_+o];for(;o<s.length;o++)s[o]=f(s[o-3]^s[o-8]^s[o-14]^s[o-16],1);var h=this.h[0],a=this.h[1],d=this.h[2],g=this.h[3],w=this.h[4];for(o=0;o<s.length;o++){var k=~~(o/20),S=u(f(h,5),y(k,a,d,g),w,s[o],m[k]);w=g,g=d,d=f(a,30),a=h,h=S}this.h[0]=l(this.h[0],h),this.h[1]=l(this.h[1],a),this.h[2]=l(this.h[2],d),this.h[3]=l(this.h[3],g),this.h[4]=l(this.h[4],w)},b.prototype._digest=function(v){return v==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":373,"../utils":383,"./common":382}],378:[function(t,r,e){var n=t("../utils"),i=t("./256");function c(){if(!(this instanceof c))return new c;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(c,i),r.exports=c,c.blockSize=512,c.outSize=224,c.hmacStrength=192,c.padLength=64,c.prototype._digest=function(f){return f==="hex"?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":383,"./256":379}],379:[function(t,r,e){var n=t("../utils"),i=t("../common"),c=t("./common"),f=t("minimalistic-assert"),l=n.sum32,u=n.sum32_4,y=n.sum32_5,p=c.ch32,m=c.maj32,b=c.s0_256,v=c.s1_256,_=c.g0_256,s=c.g1_256,o=i.BlockHash,h=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function a(){if(!(this instanceof a))return new a;o.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=h,this.W=new Array(64)}n.inherits(a,o),r.exports=a,a.blockSize=512,a.outSize=256,a.hmacStrength=192,a.padLength=64,a.prototype._update=function(d,g){for(var w=this.W,k=0;k<16;k++)w[k]=d[g+k];for(;k<w.length;k++)w[k]=u(s(w[k-2]),w[k-7],_(w[k-15]),w[k-16]);var S=this.h[0],A=this.h[1],j=this.h[2],D=this.h[3],N=this.h[4],F=this.h[5],T=this.h[6],I=this.h[7];for(f(this.k.length===w.length),k=0;k<w.length;k++){var x=y(I,v(N),p(N,F,T),this.k[k],w[k]),O=l(b(S),m(S,A,j));I=T,T=F,F=N,N=l(D,x),D=j,j=A,A=S,S=l(x,O)}this.h[0]=l(this.h[0],S),this.h[1]=l(this.h[1],A),this.h[2]=l(this.h[2],j),this.h[3]=l(this.h[3],D),this.h[4]=l(this.h[4],N),this.h[5]=l(this.h[5],F),this.h[6]=l(this.h[6],T),this.h[7]=l(this.h[7],I)},a.prototype._digest=function(d){return d==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":373,"../utils":383,"./common":382,"minimalistic-assert":437}],380:[function(t,r,e){var n=t("../utils"),i=t("./512");function c(){if(!(this instanceof c))return new c;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(c,i),r.exports=c,c.blockSize=1024,c.outSize=384,c.hmacStrength=192,c.padLength=128,c.prototype._digest=function(f){return f==="hex"?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":383,"./512":381}],381:[function(t,r,e){var n=t("../utils"),i=t("../common"),c=t("minimalistic-assert"),f=n.rotr64_hi,l=n.rotr64_lo,u=n.shr64_hi,y=n.shr64_lo,p=n.sum64,m=n.sum64_hi,b=n.sum64_lo,v=n.sum64_4_hi,_=n.sum64_4_lo,s=n.sum64_5_hi,o=n.sum64_5_lo,h=i.BlockHash,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function d(){if(!(this instanceof d))return new d;h.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=a,this.W=new Array(160)}function g(O,R,C,P,L){var H=O&C^~O&L;return H<0&&(H+=4294967296),H}function w(O,R,C,P,L,H){var U=R&P^~R&H;return U<0&&(U+=4294967296),U}function k(O,R,C,P,L){var H=O&C^O&L^C&L;return H<0&&(H+=4294967296),H}function S(O,R,C,P,L,H){var U=R&P^R&H^P&H;return U<0&&(U+=4294967296),U}function A(O,R){var C=f(O,R,28)^f(R,O,2)^f(R,O,7);return C<0&&(C+=4294967296),C}function j(O,R){var C=l(O,R,28)^l(R,O,2)^l(R,O,7);return C<0&&(C+=4294967296),C}function D(O,R){var C=f(O,R,14)^f(O,R,18)^f(R,O,9);return C<0&&(C+=4294967296),C}function N(O,R){var C=l(O,R,14)^l(O,R,18)^l(R,O,9);return C<0&&(C+=4294967296),C}function F(O,R){var C=f(O,R,1)^f(O,R,8)^u(O,R,7);return C<0&&(C+=4294967296),C}function T(O,R){var C=l(O,R,1)^l(O,R,8)^y(O,R,7);return C<0&&(C+=4294967296),C}function I(O,R){var C=f(O,R,19)^f(R,O,29)^u(O,R,6);return C<0&&(C+=4294967296),C}function x(O,R){var C=l(O,R,19)^l(R,O,29)^y(O,R,6);return C<0&&(C+=4294967296),C}n.inherits(d,h),r.exports=d,d.blockSize=1024,d.outSize=512,d.hmacStrength=192,d.padLength=128,d.prototype._prepareBlock=function(O,R){for(var C=this.W,P=0;P<32;P++)C[P]=O[R+P];for(;P<C.length;P+=2){var L=I(C[P-4],C[P-3]),H=x(C[P-4],C[P-3]),U=C[P-14],B=C[P-13],W=F(C[P-30],C[P-29]),X=T(C[P-30],C[P-29]),et=C[P-32],ft=C[P-31];C[P]=v(L,H,U,B,W,X,et,ft),C[P+1]=_(L,H,U,B,W,X,et,ft)}},d.prototype._update=function(O,R){this._prepareBlock(O,R);var C=this.W,P=this.h[0],L=this.h[1],H=this.h[2],U=this.h[3],B=this.h[4],W=this.h[5],X=this.h[6],et=this.h[7],ft=this.h[8],gt=this.h[9],bt=this.h[10],rt=this.h[11],Q=this.h[12],K=this.h[13],nt=this.h[14],At=this.h[15];c(this.k.length===C.length);for(var ot=0;ot<C.length;ot+=2){var ut=nt,Mt=At,Bt=D(ft,gt),G=N(ft,gt),Z=g(ft,gt,bt,rt,Q),J=w(ft,gt,bt,rt,Q,K),St=this.k[ot],It=this.k[ot+1],Ft=C[ot],Xt=C[ot+1],me=s(ut,Mt,Bt,G,Z,J,St,It,Ft,Xt),fe=o(ut,Mt,Bt,G,Z,J,St,It,Ft,Xt);ut=A(P,L),Mt=j(P,L),Bt=k(P,L,H,U,B),G=S(P,L,H,U,B,W);var Kt=m(ut,Mt,Bt,G),ie=b(ut,Mt,Bt,G);nt=Q,At=K,Q=bt,K=rt,bt=ft,rt=gt,ft=m(X,et,me,fe),gt=b(et,et,me,fe),X=B,et=W,B=H,W=U,H=P,U=L,P=m(me,fe,Kt,ie),L=b(me,fe,Kt,ie)}p(this.h,0,P,L),p(this.h,2,H,U),p(this.h,4,B,W),p(this.h,6,X,et),p(this.h,8,ft,gt),p(this.h,10,bt,rt),p(this.h,12,Q,K),p(this.h,14,nt,At)},d.prototype._digest=function(O){return O==="hex"?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":373,"../utils":383,"minimalistic-assert":437}],382:[function(t,r,e){var n=t("../utils").rotr32;function i(b,v,_,s){return b===0?c(v,_,s):b===1||b===3?l(v,_,s):b===2?f(v,_,s):void 0}function c(b,v,_){return b&v^~b&_}function f(b,v,_){return b&v^b&_^v&_}function l(b,v,_){return b^v^_}function u(b){return n(b,2)^n(b,13)^n(b,22)}function y(b){return n(b,6)^n(b,11)^n(b,25)}function p(b){return n(b,7)^n(b,18)^b>>>3}function m(b){return n(b,17)^n(b,19)^b>>>10}e.ft_1=i,e.ch32=c,e.maj32=f,e.p32=l,e.s0_256=u,e.s1_256=y,e.g0_256=p,e.g1_256=m},{"../utils":383}],383:[function(t,r,e){var n=t("minimalistic-assert"),i=t("inherits");function c(x,O){return(64512&x.charCodeAt(O))==55296&&!(O<0||O+1>=x.length)&&(64512&x.charCodeAt(O+1))==56320}function f(x,O){if(Array.isArray(x))return x.slice();if(!x)return[];var R=[];if(typeof x=="string")if(O){if(O==="hex")for((x=x.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(x="0"+x),P=0;P<x.length;P+=2)R.push(parseInt(x[P]+x[P+1],16))}else for(var C=0,P=0;P<x.length;P++){var L=x.charCodeAt(P);L<128?R[C++]=L:L<2048?(R[C++]=L>>6|192,R[C++]=63&L|128):c(x,P)?(L=65536+((1023&L)<<10)+(1023&x.charCodeAt(++P)),R[C++]=L>>18|240,R[C++]=L>>12&63|128,R[C++]=L>>6&63|128,R[C++]=63&L|128):(R[C++]=L>>12|224,R[C++]=L>>6&63|128,R[C++]=63&L|128)}else for(P=0;P<x.length;P++)R[P]=0|x[P];return R}function l(x){for(var O="",R=0;R<x.length;R++)O+=p(x[R].toString(16));return O}function u(x){return(x>>>24|x>>>8&65280|x<<8&16711680|(255&x)<<24)>>>0}function y(x,O){for(var R="",C=0;C<x.length;C++){var P=x[C];O==="little"&&(P=u(P)),R+=m(P.toString(16))}return R}function p(x){return x.length===1?"0"+x:x}function m(x){return x.length===7?"0"+x:x.length===6?"00"+x:x.length===5?"000"+x:x.length===4?"0000"+x:x.length===3?"00000"+x:x.length===2?"000000"+x:x.length===1?"0000000"+x:x}function b(x,O,R,C){var P=R-O;n(P%4==0);for(var L=new Array(P/4),H=0,U=O;H<L.length;H++,U+=4){var B;B=C==="big"?x[U]<<24|x[U+1]<<16|x[U+2]<<8|x[U+3]:x[U+3]<<24|x[U+2]<<16|x[U+1]<<8|x[U],L[H]=B>>>0}return L}function v(x,O){for(var R=new Array(4*x.length),C=0,P=0;C<x.length;C++,P+=4){var L=x[C];O==="big"?(R[P]=L>>>24,R[P+1]=L>>>16&255,R[P+2]=L>>>8&255,R[P+3]=255&L):(R[P+3]=L>>>24,R[P+2]=L>>>16&255,R[P+1]=L>>>8&255,R[P]=255&L)}return R}function _(x,O){return x>>>O|x<<32-O}function s(x,O){return x<<O|x>>>32-O}function o(x,O){return x+O>>>0}function h(x,O,R){return x+O+R>>>0}function a(x,O,R,C){return x+O+R+C>>>0}function d(x,O,R,C,P){return x+O+R+C+P>>>0}function g(x,O,R,C){var P=x[O],L=C+x[O+1]>>>0,H=(L<C?1:0)+R+P;x[O]=H>>>0,x[O+1]=L}function w(x,O,R,C){return(O+C>>>0<O?1:0)+x+R>>>0}function k(x,O,R,C){return O+C>>>0}function S(x,O,R,C,P,L,H,U){var B=0,W=O;return B+=(W=W+C>>>0)<O?1:0,B+=(W=W+L>>>0)<L?1:0,x+R+P+H+(B+=(W=W+U>>>0)<U?1:0)>>>0}function A(x,O,R,C,P,L,H,U){return O+C+L+U>>>0}function j(x,O,R,C,P,L,H,U,B,W){var X=0,et=O;return X+=(et=et+C>>>0)<O?1:0,X+=(et=et+L>>>0)<L?1:0,X+=(et=et+U>>>0)<U?1:0,x+R+P+H+B+(X+=(et=et+W>>>0)<W?1:0)>>>0}function D(x,O,R,C,P,L,H,U,B,W){return O+C+L+U+W>>>0}function N(x,O,R){return(O<<32-R|x>>>R)>>>0}function F(x,O,R){return(x<<32-R|O>>>R)>>>0}function T(x,O,R){return x>>>R}function I(x,O,R){return(x<<32-R|O>>>R)>>>0}e.inherits=i,e.toArray=f,e.toHex=l,e.htonl=u,e.toHex32=y,e.zero2=p,e.zero8=m,e.join32=b,e.split32=v,e.rotr32=_,e.rotl32=s,e.sum32=o,e.sum32_3=h,e.sum32_4=a,e.sum32_5=d,e.sum64=g,e.sum64_hi=w,e.sum64_lo=k,e.sum64_4_hi=S,e.sum64_4_lo=A,e.sum64_5_hi=j,e.sum64_5_lo=D,e.rotr64_hi=N,e.rotr64_lo=F,e.shr64_hi=T,e.shr64_lo=I},{inherits:387,"minimalistic-assert":437}],384:[function(t,r,e){var n=t("hash.js"),i=t("minimalistic-crypto-utils"),c=t("minimalistic-assert");function f(l){if(!(this instanceof f))return new f(l);this.hash=l.hash,this.predResist=!!l.predResist,this.outLen=this.hash.outSize,this.minEntropy=l.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var u=i.toArray(l.entropy,l.entropyEnc||"hex"),y=i.toArray(l.nonce,l.nonceEnc||"hex"),p=i.toArray(l.pers,l.persEnc||"hex");c(u.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(u,y,p)}r.exports=f,f.prototype._init=function(l,u,y){var p=l.concat(u).concat(y);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var m=0;m<this.V.length;m++)this.K[m]=0,this.V[m]=1;this._update(p),this._reseed=1,this.reseedInterval=281474976710656},f.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},f.prototype._update=function(l){var u=this._hmac().update(this.V).update([0]);l&&(u=u.update(l)),this.K=u.digest(),this.V=this._hmac().update(this.V).digest(),l&&(this.K=this._hmac().update(this.V).update([1]).update(l).digest(),this.V=this._hmac().update(this.V).digest())},f.prototype.reseed=function(l,u,y,p){typeof u!="string"&&(p=y,y=u,u=null),l=i.toArray(l,u),y=i.toArray(y,p),c(l.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(l.concat(y||[])),this._reseed=1},f.prototype.generate=function(l,u,y,p){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof u!="string"&&(p=y,y=u,u=null),y&&(y=i.toArray(y,p||"hex"),this._update(y));for(var m=[];m.length<l;)this.V=this._hmac().update(this.V).digest(),m=m.concat(this.V);var b=m.slice(0,l);return this._update(y),this._reseed++,i.encode(b,u)}},{"hash.js":372,"minimalistic-assert":437,"minimalistic-crypto-utils":438}],385:[function(t,r,e){e.read=function(n,i,c,f,l){var u,y,p=8*l-f-1,m=(1<<p)-1,b=m>>1,v=-7,_=c?l-1:0,s=c?-1:1,o=n[i+_];for(_+=s,u=o&(1<<-v)-1,o>>=-v,v+=p;v>0;u=256*u+n[i+_],_+=s,v-=8);for(y=u&(1<<-v)-1,u>>=-v,v+=f;v>0;y=256*y+n[i+_],_+=s,v-=8);if(u===0)u=1-b;else{if(u===m)return y?NaN:1/0*(o?-1:1);y+=Math.pow(2,f),u-=b}return(o?-1:1)*y*Math.pow(2,u-f)},e.write=function(n,i,c,f,l,u){var y,p,m,b=8*u-l-1,v=(1<<b)-1,_=v>>1,s=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,o=f?0:u-1,h=f?1:-1,a=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(p=isNaN(i)?1:0,y=v):(y=Math.floor(Math.log(i)/Math.LN2),i*(m=Math.pow(2,-y))<1&&(y--,m*=2),(i+=y+_>=1?s/m:s*Math.pow(2,1-_))*m>=2&&(y++,m/=2),y+_>=v?(p=0,y=v):y+_>=1?(p=(i*m-1)*Math.pow(2,l),y+=_):(p=i*Math.pow(2,_-1)*Math.pow(2,l),y=0));l>=8;n[c+o]=255&p,o+=h,p/=256,l-=8);for(y=y<<l|p,b+=l;b>0;n[c+o]=255&y,o+=h,y/=256,b-=8);n[c+o-h]|=128*a}},{}],386:[function(t,r,e){(function(n){var i,c,f=n.MutationObserver||n.WebKitMutationObserver;if(f){var l=0,u=new f(b),y=n.document.createTextNode("");u.observe(y,{characterData:!0}),i=function(){y.data=l=++l%2}}else if(n.setImmediate||n.MessageChannel===void 0)i="document"in n&&"onreadystatechange"in n.document.createElement("script")?function(){var _=n.document.createElement("script");_.onreadystatechange=function(){b(),_.onreadystatechange=null,_.parentNode.removeChild(_),_=null},n.document.documentElement.appendChild(_)}:function(){setTimeout(b,0)};else{var p=new n.MessageChannel;p.port1.onmessage=b,i=function(){p.port2.postMessage(0)}}var m=[];function b(){var _,s;c=!0;for(var o=m.length;o;){for(s=m,m=[],_=-1;++_<o;)s[_]();o=m.length}c=!1}function v(_){m.push(_)!==1||c||i()}r.exports=v}).call(this,dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],387:[function(t,r,e){typeof Object.create=="function"?r.exports=function(n,i){i&&(n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:r.exports=function(n,i){if(i){n.super_=i;var c=function(){};c.prototype=i.prototype,n.prototype=new c,n.prototype.constructor=n}}},{}],388:[function(t,r,e){function n(c){return!!c.constructor&&typeof c.constructor.isBuffer=="function"&&c.constructor.isBuffer(c)}function i(c){return typeof c.readFloatLE=="function"&&typeof c.slice=="function"&&n(c.slice(0,0))}r.exports=function(c){return c!=null&&(n(c)||i(c)||!!c._isBuffer)}},{}],389:[function(t,r,e){var n={}.toString;r.exports=Array.isArray||function(i){return n.call(i)=="[object Array]"}},{}],390:[function(t,r,e){var n=t("./utils"),i=t("./support"),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.encode=function(f){for(var l,u,y,p,m,b,v,_=[],s=0,o=f.length,h=o,a=n.getTypeOf(f)!=="string";s<f.length;)h=o-s,a?(l=f[s++],u=s<o?f[s++]:0,y=s<o?f[s++]:0):(l=f.charCodeAt(s++),u=s<o?f.charCodeAt(s++):0,y=s<o?f.charCodeAt(s++):0),p=l>>2,m=(3&l)<<4|u>>4,b=h>1?(15&u)<<2|y>>6:64,v=h>2?63&y:64,_.push(c.charAt(p)+c.charAt(m)+c.charAt(b)+c.charAt(v));return _.join("")},e.decode=function(f){var l,u,y,p,m,b,v=0,_=0,s="data:";if(f.substr(0,s.length)===s)throw new Error("Invalid base64 input, it looks like a data url.");var o,h=3*(f=f.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(f.charAt(f.length-1)===c.charAt(64)&&h--,f.charAt(f.length-2)===c.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(o=i.uint8array?new Uint8Array(0|h):new Array(0|h);v<f.length;)l=c.indexOf(f.charAt(v++))<<2|(p=c.indexOf(f.charAt(v++)))>>4,u=(15&p)<<4|(m=c.indexOf(f.charAt(v++)))>>2,y=(3&m)<<6|(b=c.indexOf(f.charAt(v++))),o[_++]=l,m!==64&&(o[_++]=u),b!==64&&(o[_++]=y);return o}},{"./support":419,"./utils":421}],391:[function(t,r,e){var n=t("./external"),i=t("./stream/DataWorker"),c=t("./stream/DataLengthProbe"),f=t("./stream/Crc32Probe");function l(u,y,p,m,b){this.compressedSize=u,this.uncompressedSize=y,this.crc32=p,this.compression=m,this.compressedContent=b}c=t("./stream/DataLengthProbe"),l.prototype={getContentWorker:function(){var u=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),y=this;return u.on("end",function(){if(this.streamInfo.data_length!==y.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(u,y,p){return u.pipe(new f).pipe(new c("uncompressedSize")).pipe(y.compressWorker(p)).pipe(new c("compressedSize")).withStreamInfo("compression",y)},r.exports=l},{"./external":395,"./stream/Crc32Probe":414,"./stream/DataLengthProbe":415,"./stream/DataWorker":416}],392:[function(t,r,e){var n=t("./stream/GenericWorker");e.STORE={magic:"\0\0",compressWorker:function(i){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},e.DEFLATE=t("./flate")},{"./flate":396,"./stream/GenericWorker":417}],393:[function(t,r,e){var n=t("./utils");function i(){for(var u,y=[],p=0;p<256;p++){u=p;for(var m=0;m<8;m++)u=1&u?3988292384^u>>>1:u>>>1;y[p]=u}return y}var c=i();function f(u,y,p,m){var b=c,v=m+p;u^=-1;for(var _=m;_<v;_++)u=u>>>8^b[255&(u^y[_])];return-1^u}function l(u,y,p,m){var b=c,v=m+p;u^=-1;for(var _=m;_<v;_++)u=u>>>8^b[255&(u^y.charCodeAt(_))];return-1^u}r.exports=function(u,y){return u!==void 0&&u.length?n.getTypeOf(u)!=="string"?f(0|y,u,u.length,0):l(0|y,u,u.length,0):0}},{"./utils":421}],394:[function(t,r,e){e.base64=!1,e.binary=!1,e.dir=!1,e.createFolders=!0,e.date=null,e.compression=null,e.compressionOptions=null,e.comment=null,e.unixPermissions=null,e.dosPermissions=null},{}],395:[function(t,r,e){var n=null;n=typeof Promise!="undefined"?Promise:t("lie"),r.exports={Promise:n}},{lie:425}],396:[function(t,r,e){var n=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",i=t("pako"),c=t("./utils"),f=t("./stream/GenericWorker"),l=n?"uint8array":"array";function u(y,p){f.call(this,"FlateWorker/"+y),this._pako=null,this._pakoAction=y,this._pakoOptions=p,this.meta={}}e.magic="\b\0",c.inherits(u,f),u.prototype.processChunk=function(y){this.meta=y.meta,this._pako===null&&this._createPako(),this._pako.push(c.transformTo(l,y.data),!1)},u.prototype.flush=function(){f.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){f.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var y=this;this._pako.onData=function(p){y.push({data:p,meta:y.meta})}},e.compressWorker=function(y){return new u("Deflate",y)},e.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":417,"./utils":421,pako:439}],397:[function(t,r,e){var n=t("../utils"),i=t("../stream/GenericWorker"),c=t("../utf8"),f=t("../crc32"),l=t("../signature"),u=function(s,o){var h,a="";for(h=0;h<o;h++)a+=String.fromCharCode(255&s),s>>>=8;return a},y=function(s,o){var h=s;return s||(h=o?16893:33204),(65535&h)<<16},p=function(s,o){return 63&(s||0)},m=function(s,o,h,a,d,g){var w,k,S=s.file,A=s.compression,j=g!==c.utf8encode,D=n.transformTo("string",g(S.name)),N=n.transformTo("string",c.utf8encode(S.name)),F=S.comment,T=n.transformTo("string",g(F)),I=n.transformTo("string",c.utf8encode(F)),x=N.length!==S.name.length,O=I.length!==F.length,R="",C="",P="",L=S.dir,H=S.date,U={crc32:0,compressedSize:0,uncompressedSize:0};o&&!h||(U.crc32=s.crc32,U.compressedSize=s.compressedSize,U.uncompressedSize=s.uncompressedSize);var B=0;o&&(B|=8),j||!x&&!O||(B|=2048);var W=0,X=0;L&&(W|=16),d==="UNIX"?(X=798,W|=y(S.unixPermissions,L)):(X=20,W|=p(S.dosPermissions)),w=H.getUTCHours(),w<<=6,w|=H.getUTCMinutes(),w<<=5,w|=H.getUTCSeconds()/2,k=H.getUTCFullYear()-1980,k<<=4,k|=H.getUTCMonth()+1,k<<=5,k|=H.getUTCDate(),x&&(C=u(1,1)+u(f(D),4)+N,R+="up"+u(C.length,2)+C),O&&(P=u(1,1)+u(f(T),4)+I,R+="uc"+u(P.length,2)+P);var et="";return et+=`
|
||
\0`,et+=u(B,2),et+=A.magic,et+=u(w,2),et+=u(k,2),et+=u(U.crc32,4),et+=u(U.compressedSize,4),et+=u(U.uncompressedSize,4),et+=u(D.length,2),et+=u(R.length,2),{fileRecord:l.LOCAL_FILE_HEADER+et+D+R,dirRecord:l.CENTRAL_FILE_HEADER+u(X,2)+et+u(T.length,2)+"\0\0\0\0"+u(W,4)+u(a,4)+D+R+T}},b=function(s,o,h,a,d){var g=n.transformTo("string",d(a));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(s,2)+u(s,2)+u(o,4)+u(h,4)+u(g.length,2)+g},v=function(s){return l.DATA_DESCRIPTOR+u(s.crc32,4)+u(s.compressedSize,4)+u(s.uncompressedSize,4)};function _(s,o,h,a){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=o,this.zipPlatform=h,this.encodeFileName=a,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(_,i),_.prototype.push=function(s){var o=s.meta.percent||0,h=this.entriesCount,a=this._sources.length;this.accumulate?this.contentBuffer.push(s):(this.bytesWritten+=s.data.length,i.prototype.push.call(this,{data:s.data,meta:{currentFile:this.currentFile,percent:h?(o+100*(h-a-1))/h:100}}))},_.prototype.openedSource=function(s){this.currentSourceOffset=this.bytesWritten,this.currentFile=s.file.name;var o=this.streamFiles&&!s.file.dir;if(o){var h=m(s,o,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:h.fileRecord,meta:{percent:0}})}else this.accumulate=!0},_.prototype.closedSource=function(s){this.accumulate=!1;var o=this.streamFiles&&!s.file.dir,h=m(s,o,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),o)this.push({data:v(s),meta:{percent:100}});else for(this.push({data:h.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},_.prototype.flush=function(){for(var s=this.bytesWritten,o=0;o<this.dirRecords.length;o++)this.push({data:this.dirRecords[o],meta:{percent:100}});var h=this.bytesWritten-s,a=b(this.dirRecords.length,h,s,this.zipComment,this.encodeFileName);this.push({data:a,meta:{percent:100}})},_.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},_.prototype.registerPrevious=function(s){this._sources.push(s);var o=this;return s.on("data",function(h){o.processChunk(h)}),s.on("end",function(){o.closedSource(o.previous.streamInfo),o._sources.length?o.prepareNextSource():o.end()}),s.on("error",function(h){o.error(h)}),this},_.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},_.prototype.error=function(s){var o=this._sources;if(!i.prototype.error.call(this,s))return!1;for(var h=0;h<o.length;h++)try{o[h].error(s)}catch(a){}return!0},_.prototype.lock=function(){i.prototype.lock.call(this);for(var s=this._sources,o=0;o<s.length;o++)s[o].lock()},r.exports=_},{"../crc32":393,"../signature":412,"../stream/GenericWorker":417,"../utf8":420,"../utils":421}],398:[function(t,r,e){var n=t("../compressions"),i=t("./ZipFileWorker"),c=function(f,l){var u=f||l,y=n[u];if(!y)throw new Error(u+" is not a valid compression method !");return y};e.generateWorker=function(f,l,u){var y=new i(l.streamFiles,u,l.platform,l.encodeFileName),p=0;try{f.forEach(function(m,b){p++;var v=c(b.options.compression,l.compression),_=b.options.compressionOptions||l.compressionOptions||{},s=b.dir,o=b.date;b._compressWorker(v,_).withStreamInfo("file",{name:m,dir:s,date:o,comment:b.comment||"",unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions}).pipe(y)}),y.entriesCount=p}catch(m){y.error(m)}return y}},{"../compressions":392,"./ZipFileWorker":397}],399:[function(t,r,e){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var i=new n;for(var c in this)typeof this[c]!="function"&&(i[c]=this[c]);return i}}n.prototype=t("./object"),n.prototype.loadAsync=t("./load"),n.support=t("./support"),n.defaults=t("./defaults"),n.version="3.5.0",n.loadAsync=function(i,c){return new n().loadAsync(i,c)},n.external=t("./external"),r.exports=n},{"./defaults":394,"./external":395,"./load":400,"./object":404,"./support":419}],400:[function(t,r,e){var n=t("./utils"),i=t("./external"),c=t("./utf8"),f=(n=t("./utils"),t("./zipEntries")),l=t("./stream/Crc32Probe"),u=t("./nodejsUtils");function y(p){return new i.Promise(function(m,b){var v=p.decompressed.getContentWorker().pipe(new l);v.on("error",function(_){b(_)}).on("end",function(){v.streamInfo.crc32!==p.decompressed.crc32?b(new Error("Corrupted zip : CRC32 mismatch")):m()}).resume()})}r.exports=function(p,m){var b=this;return m=n.extend(m||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:c.utf8decode}),u.isNode&&u.isStream(p)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",p,!0,m.optimizedBinaryString,m.base64).then(function(v){var _=new f(m);return _.load(v),_}).then(function(v){var _=[i.Promise.resolve(v)],s=v.files;if(m.checkCRC32)for(var o=0;o<s.length;o++)_.push(y(s[o]));return i.Promise.all(_)}).then(function(v){for(var _=v.shift(),s=_.files,o=0;o<s.length;o++){var h=s[o];b.file(h.fileNameStr,h.decompressed,{binary:!0,optimizedBinaryString:!0,date:h.date,dir:h.dir,comment:h.fileCommentStr.length?h.fileCommentStr:null,unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions,createFolders:m.createFolders})}return _.zipComment.length&&(b.comment=_.zipComment),b})}},{"./external":395,"./nodejsUtils":403,"./stream/Crc32Probe":414,"./utf8":420,"./utils":421,"./zipEntries":422}],401:[function(t,r,e){var n=t("../utils"),i=t("../stream/GenericWorker");function c(f,l){i.call(this,"Nodejs stream input adapter for "+f),this._upstreamEnded=!1,this._bindStream(l)}n.inherits(c,i),c.prototype._bindStream=function(f){var l=this;this._stream=f,f.pause(),f.on("data",function(u){l.push({data:u,meta:{percent:0}})}).on("error",function(u){l.isPaused?this.generatedError=u:l.error(u)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.end()})},c.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},c.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=c},{"../stream/GenericWorker":417,"../utils":421}],402:[function(t,r,e){var n=t("readable-stream").Readable;function i(c,f,l){n.call(this,f),this._helper=c;var u=this;c.on("data",function(y,p){u.push(y)||u._helper.pause(),l&&l(p)}).on("error",function(y){u.emit("error",y)}).on("end",function(){u.push(null)})}t("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},r.exports=i},{"../utils":421,"readable-stream":405}],403:[function(t,r,e){(function(n){r.exports={isNode:n!==void 0,newBufferFrom:function(i,c){if(n.from&&n.from!==Uint8Array.from)return n.from(i,c);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new n(i,c)},allocBuffer:function(i){if(n.alloc)return n.alloc(i);var c=new n(i);return c.fill(0),c},isBuffer:function(i){return n.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}}).call(this,t("buffer").Buffer)},{buffer:216}],404:[function(t,r,e){var n=t("./utf8"),i=t("./utils"),c=t("./stream/GenericWorker"),f=t("./stream/StreamHelper"),l=t("./defaults"),u=t("./compressedObject"),y=t("./zipObject"),p=t("./generate"),m=t("./nodejsUtils"),b=t("./nodejs/NodejsStreamInputAdapter"),v=function(d,g,w){var k,S=i.getTypeOf(g),A=i.extend(w||{},l);A.date=A.date||new Date,A.compression!==null&&(A.compression=A.compression.toUpperCase()),typeof A.unixPermissions=="string"&&(A.unixPermissions=parseInt(A.unixPermissions,8)),A.unixPermissions&&16384&A.unixPermissions&&(A.dir=!0),A.dosPermissions&&16&A.dosPermissions&&(A.dir=!0),A.dir&&(d=s(d)),A.createFolders&&(k=_(d))&&o.call(this,k,!0);var j=S==="string"&&A.binary===!1&&A.base64===!1;w&&w.binary!==void 0||(A.binary=!j),(g instanceof u&&g.uncompressedSize===0||A.dir||!g||g.length===0)&&(A.base64=!1,A.binary=!0,g="",A.compression="STORE",S="string");var D=null;D=g instanceof u||g instanceof c?g:m.isNode&&m.isStream(g)?new b(d,g):i.prepareContent(d,g,A.binary,A.optimizedBinaryString,A.base64);var N=new y(d,D,A);this.files[d]=N},_=function(d){d.slice(-1)==="/"&&(d=d.substring(0,d.length-1));var g=d.lastIndexOf("/");return g>0?d.substring(0,g):""},s=function(d){return d.slice(-1)!=="/"&&(d+="/"),d},o=function(d,g){return g=g!==void 0?g:l.createFolders,d=s(d),this.files[d]||v.call(this,d,null,{dir:!0,createFolders:g}),this.files[d]};function h(d){return Object.prototype.toString.call(d)==="[object RegExp]"}var a={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(d){var g,w,k;for(g in this.files)this.files.hasOwnProperty(g)&&(k=this.files[g],(w=g.slice(this.root.length,g.length))&&g.slice(0,this.root.length)===this.root&&d(w,k))},filter:function(d){var g=[];return this.forEach(function(w,k){d(w,k)&&g.push(k)}),g},file:function(d,g,w){if(arguments.length===1){if(h(d)){var k=d;return this.filter(function(A,j){return!j.dir&&k.test(A)})}var S=this.files[this.root+d];return S&&!S.dir?S:null}return d=this.root+d,v.call(this,d,g,w),this},folder:function(d){if(!d)return this;if(h(d))return this.filter(function(S,A){return A.dir&&d.test(S)});var g=this.root+d,w=o.call(this,g),k=this.clone();return k.root=w.name,k},remove:function(d){d=this.root+d;var g=this.files[d];if(g||(d.slice(-1)!=="/"&&(d+="/"),g=this.files[d]),g&&!g.dir)delete this.files[d];else for(var w=this.filter(function(S,A){return A.name.slice(0,d.length)===d}),k=0;k<w.length;k++)delete this.files[w[k].name];return this},generate:function(d){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(d){var g,w={};try{if((w=i.extend(d||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=w.type.toLowerCase(),w.compression=w.compression.toUpperCase(),w.type==="binarystring"&&(w.type="string"),!w.type)throw new Error("No output type specified.");i.checkSupport(w.type),w.platform!=="darwin"&&w.platform!=="freebsd"&&w.platform!=="linux"&&w.platform!=="sunos"||(w.platform="UNIX"),w.platform==="win32"&&(w.platform="DOS");var k=w.comment||this.comment||"";g=p.generateWorker(this,w,k)}catch(S){(g=new c("error")).error(S)}return new f(g,w.type||"string",w.mimeType)},generateAsync:function(d,g){return this.generateInternalStream(d).accumulate(g)},generateNodeStream:function(d,g){return(d=d||{}).type||(d.type="nodebuffer"),this.generateInternalStream(d).toNodejsStream(g)}};r.exports=a},{"./compressedObject":391,"./defaults":394,"./generate":398,"./nodejs/NodejsStreamInputAdapter":401,"./nodejsUtils":403,"./stream/GenericWorker":417,"./stream/StreamHelper":418,"./utf8":420,"./utils":421,"./zipObject":424}],405:[function(t,r,e){r.exports=t("stream")},{stream:506}],406:[function(t,r,e){var n=t("./DataReader");function i(c){n.call(this,c);for(var f=0;f<this.data.length;f++)c[f]=255&c[f]}t("../utils").inherits(i,n),i.prototype.byteAt=function(c){return this.data[this.zero+c]},i.prototype.lastIndexOfSignature=function(c){for(var f=c.charCodeAt(0),l=c.charCodeAt(1),u=c.charCodeAt(2),y=c.charCodeAt(3),p=this.length-4;p>=0;--p)if(this.data[p]===f&&this.data[p+1]===l&&this.data[p+2]===u&&this.data[p+3]===y)return p-this.zero;return-1},i.prototype.readAndCheckSignature=function(c){var f=c.charCodeAt(0),l=c.charCodeAt(1),u=c.charCodeAt(2),y=c.charCodeAt(3),p=this.readData(4);return f===p[0]&&l===p[1]&&u===p[2]&&y===p[3]},i.prototype.readData=function(c){if(this.checkOffset(c),c===0)return[];var f=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,f},r.exports=i},{"../utils":421,"./DataReader":407}],407:[function(t,r,e){var n=t("../utils");function i(c){this.data=c,this.length=c.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(c){this.checkIndex(this.index+c)},checkIndex:function(c){if(this.length<this.zero+c||c<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+c+"). Corrupted zip ?")},setIndex:function(c){this.checkIndex(c),this.index=c},skip:function(c){this.setIndex(this.index+c)},byteAt:function(c){},readInt:function(c){var f,l=0;for(this.checkOffset(c),f=this.index+c-1;f>=this.index;f--)l=(l<<8)+this.byteAt(f);return this.index+=c,l},readString:function(c){return n.transformTo("string",this.readData(c))},readData:function(c){},lastIndexOfSignature:function(c){},readAndCheckSignature:function(c){},readDate:function(){var c=this.readInt(4);return new Date(Date.UTC(1980+(c>>25&127),(c>>21&15)-1,c>>16&31,c>>11&31,c>>5&63,(31&c)<<1))}},r.exports=i},{"../utils":421}],408:[function(t,r,e){var n=t("./Uint8ArrayReader");function i(c){n.call(this,c)}t("../utils").inherits(i,n),i.prototype.readData=function(c){this.checkOffset(c);var f=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,f},r.exports=i},{"../utils":421,"./Uint8ArrayReader":410}],409:[function(t,r,e){var n=t("./DataReader");function i(c){n.call(this,c)}t("../utils").inherits(i,n),i.prototype.byteAt=function(c){return this.data.charCodeAt(this.zero+c)},i.prototype.lastIndexOfSignature=function(c){return this.data.lastIndexOf(c)-this.zero},i.prototype.readAndCheckSignature=function(c){return c===this.readData(4)},i.prototype.readData=function(c){this.checkOffset(c);var f=this.data.slice(this.zero+this.index,this.zero+this.index+c);return this.index+=c,f},r.exports=i},{"../utils":421,"./DataReader":407}],410:[function(t,r,e){var n=t("./ArrayReader");function i(c){n.call(this,c)}t("../utils").inherits(i,n),i.prototype.readData=function(c){if(this.checkOffset(c),c===0)return new Uint8Array(0);var f=this.data.subarray(this.zero+this.index,this.zero+this.index+c);return this.index+=c,f},r.exports=i},{"../utils":421,"./ArrayReader":406}],411:[function(t,r,e){var n=t("../utils"),i=t("../support"),c=t("./ArrayReader"),f=t("./StringReader"),l=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");r.exports=function(y){var p=n.getTypeOf(y);return n.checkSupport(p),p!=="string"||i.uint8array?p==="nodebuffer"?new l(y):i.uint8array?new u(n.transformTo("uint8array",y)):new c(n.transformTo("array",y)):new f(y)}},{"../support":419,"../utils":421,"./ArrayReader":406,"./NodeBufferReader":408,"./StringReader":409,"./Uint8ArrayReader":410}],412:[function(t,r,e){e.LOCAL_FILE_HEADER="PK",e.CENTRAL_FILE_HEADER="PK",e.CENTRAL_DIRECTORY_END="PK",e.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",e.ZIP64_CENTRAL_DIRECTORY_END="PK",e.DATA_DESCRIPTOR="PK\x07\b"},{}],413:[function(t,r,e){var n=t("./GenericWorker"),i=t("../utils");function c(f){n.call(this,"ConvertWorker to "+f),this.destType=f}i.inherits(c,n),c.prototype.processChunk=function(f){this.push({data:i.transformTo(this.destType,f.data),meta:f.meta})},r.exports=c},{"../utils":421,"./GenericWorker":417}],414:[function(t,r,e){var n=t("./GenericWorker"),i=t("../crc32");function c(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(c,n),c.prototype.processChunk=function(f){this.streamInfo.crc32=i(f.data,this.streamInfo.crc32||0),this.push(f)},r.exports=c},{"../crc32":393,"../utils":421,"./GenericWorker":417}],415:[function(t,r,e){var n=t("../utils"),i=t("./GenericWorker");function c(f){i.call(this,"DataLengthProbe for "+f),this.propName=f,this.withStreamInfo(f,0)}n.inherits(c,i),c.prototype.processChunk=function(f){if(f){var l=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=l+f.data.length}i.prototype.processChunk.call(this,f)},r.exports=c},{"../utils":421,"./GenericWorker":417}],416:[function(t,r,e){var n=t("../utils"),i=t("./GenericWorker"),c=16384;function f(l){i.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(y){u.dataIsReady=!0,u.data=y,u.max=y&&y.length||0,u.type=n.getTypeOf(y),u.isPaused||u._tickAndRepeat()},function(y){u.error(y)})}n.inherits(f,i),f.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=c,u=null,y=Math.min(this.max,this.index+l);if(this.index>=this.max)return this.end();switch(this.type){case"string":u=this.data.substring(this.index,y);break;case"uint8array":u=this.data.subarray(this.index,y);break;case"array":case"nodebuffer":u=this.data.slice(this.index,y)}return this.index=y,this.push({data:u,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=f},{"../utils":421,"./GenericWorker":417}],417:[function(t,r,e){function n(i){this.name=i||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,c){return this._listeners[i].push(c),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,c){if(this._listeners[i])for(var f=0;f<this._listeners[i].length;f++)this._listeners[i][f].call(this,c)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var c=this;return i.on("data",function(f){c.processChunk(f)}),i.on("end",function(){c.end()}),i.on("error",function(f){c.error(f)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var i=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,c){return this.extraStreamInfo[i]=c,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},r.exports=n},{}],418:[function(t,r,e){(function(n){var i=t("../utils"),c=t("./ConvertWorker"),f=t("./GenericWorker"),l=t("../base64"),u=t("../support"),y=t("../external"),p=null;if(u.nodestream)try{p=t("../nodejs/NodejsStreamOutputAdapter")}catch(s){}function m(s,o,h){switch(s){case"blob":return i.newBlob(i.transformTo("arraybuffer",o),h);case"base64":return l.encode(o);default:return i.transformTo(s,o)}}function b(s,o){var h,a=0,d=null,g=0;for(h=0;h<o.length;h++)g+=o[h].length;switch(s){case"string":return o.join("");case"array":return Array.prototype.concat.apply([],o);case"uint8array":for(d=new Uint8Array(g),h=0;h<o.length;h++)d.set(o[h],a),a+=o[h].length;return d;case"nodebuffer":return n.concat(o);default:throw new Error("concat : unsupported type '"+s+"'")}}function v(s,o){return new y.Promise(function(h,a){var d=[],g=s._internalType,w=s._outputType,k=s._mimeType;s.on("data",function(S,A){d.push(S),o&&o(A)}).on("error",function(S){d=[],a(S)}).on("end",function(){try{var S=m(w,b(g,d),k);h(S)}catch(A){a(A)}d=[]}).resume()})}function _(s,o,h){var a=o;switch(o){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=o,this._mimeType=h,i.checkSupport(a),this._worker=s.pipe(new c(a)),s.lock()}catch(d){this._worker=new f("error"),this._worker.error(d)}}_.prototype={accumulate:function(s){return v(this,s)},on:function(s,o){var h=this;return s==="data"?this._worker.on(s,function(a){o.call(h,a.data,a.meta)}):this._worker.on(s,function(){i.delay(o,arguments,h)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(s){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new p(this,{objectMode:this._outputType!=="nodebuffer"},s)}},r.exports=_}).call(this,t("buffer").Buffer)},{"../base64":390,"../external":395,"../nodejs/NodejsStreamOutputAdapter":402,"../support":419,"../utils":421,"./ConvertWorker":413,"./GenericWorker":417,buffer:216}],419:[function(t,r,e){(function(n){if(e.base64=!0,e.array=!0,e.string=!0,e.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",e.nodebuffer=n!==void 0,e.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")e.blob=!1;else{var i=new ArrayBuffer(0);try{e.blob=new Blob([i],{type:"application/zip"}).size===0}catch(f){try{var c=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);c.append(i),e.blob=c.getBlob("application/zip").size===0}catch(l){e.blob=!1}}}try{e.nodestream=!!t("readable-stream").Readable}catch(f){e.nodestream=!1}}).call(this,t("buffer").Buffer)},{buffer:216,"readable-stream":405}],420:[function(t,r,e){for(var n=t("./utils"),i=t("./support"),c=t("./nodejsUtils"),f=t("./stream/GenericWorker"),l=new Array(256),u=0;u<256;u++)l[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;l[254]=l[254]=1;var y=function(_){var s,o,h,a,d,g=_.length,w=0;for(a=0;a<g;a++)(64512&(o=_.charCodeAt(a)))==55296&&a+1<g&&(64512&(h=_.charCodeAt(a+1)))==56320&&(o=65536+(o-55296<<10)+(h-56320),a++),w+=o<128?1:o<2048?2:o<65536?3:4;for(s=i.uint8array?new Uint8Array(w):new Array(w),d=0,a=0;d<w;a++)(64512&(o=_.charCodeAt(a)))==55296&&a+1<g&&(64512&(h=_.charCodeAt(a+1)))==56320&&(o=65536+(o-55296<<10)+(h-56320),a++),o<128?s[d++]=o:o<2048?(s[d++]=192|o>>>6,s[d++]=128|63&o):o<65536?(s[d++]=224|o>>>12,s[d++]=128|o>>>6&63,s[d++]=128|63&o):(s[d++]=240|o>>>18,s[d++]=128|o>>>12&63,s[d++]=128|o>>>6&63,s[d++]=128|63&o);return s},p=function(_,s){var o;for((s=s||_.length)>_.length&&(s=_.length),o=s-1;o>=0&&(192&_[o])==128;)o--;return o<0||o===0?s:o+l[_[o]]>s?o:s},m=function(_){var s,o,h,a,d=_.length,g=new Array(2*d);for(o=0,s=0;s<d;)if((h=_[s++])<128)g[o++]=h;else if((a=l[h])>4)g[o++]=65533,s+=a-1;else{for(h&=a===2?31:a===3?15:7;a>1&&s<d;)h=h<<6|63&_[s++],a--;a>1?g[o++]=65533:h<65536?g[o++]=h:(h-=65536,g[o++]=55296|h>>10&1023,g[o++]=56320|1023&h)}return g.length!==o&&(g.subarray?g=g.subarray(0,o):g.length=o),n.applyFromCharCode(g)};function b(){f.call(this,"utf-8 decode"),this.leftOver=null}function v(){f.call(this,"utf-8 encode")}e.utf8encode=function(_){return i.nodebuffer?c.newBufferFrom(_,"utf-8"):y(_)},e.utf8decode=function(_){return i.nodebuffer?n.transformTo("nodebuffer",_).toString("utf-8"):(_=n.transformTo(i.uint8array?"uint8array":"array",_),m(_))},n.inherits(b,f),b.prototype.processChunk=function(_){var s=n.transformTo(i.uint8array?"uint8array":"array",_.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=s;(s=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),s.set(o,this.leftOver.length)}else s=this.leftOver.concat(s);this.leftOver=null}var h=p(s),a=s;h!==s.length&&(i.uint8array?(a=s.subarray(0,h),this.leftOver=s.subarray(h,s.length)):(a=s.slice(0,h),this.leftOver=s.slice(h,s.length))),this.push({data:e.utf8decode(a),meta:_.meta})},b.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=b,n.inherits(v,f),v.prototype.processChunk=function(_){this.push({data:e.utf8encode(_.data),meta:_.meta})},e.Utf8EncodeWorker=v},{"./nodejsUtils":403,"./stream/GenericWorker":417,"./support":419,"./utils":421}],421:[function(t,r,e){var n=t("./support"),i=t("./base64"),c=t("./nodejsUtils"),f=t("set-immediate-shim"),l=t("./external");function u(s){return p(s,n.uint8array?new Uint8Array(s.length):new Array(s.length))}function y(s){return s}function p(s,o){for(var h=0;h<s.length;++h)o[h]=255&s.charCodeAt(h);return o}e.newBlob=function(s,o){e.checkSupport("blob");try{return new Blob([s],{type:o})}catch(a){try{var h=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return h.append(s),h.getBlob(o)}catch(d){throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(s,o,h){var a=[],d=0,g=s.length;if(g<=h)return String.fromCharCode.apply(null,s);for(;d<g;)o==="array"||o==="nodebuffer"?a.push(String.fromCharCode.apply(null,s.slice(d,Math.min(d+h,g)))):a.push(String.fromCharCode.apply(null,s.subarray(d,Math.min(d+h,g)))),d+=h;return a.join("")},stringifyByChar:function(s){for(var o="",h=0;h<s.length;h++)o+=String.fromCharCode(s[h]);return o},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(s){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&String.fromCharCode.apply(null,c.allocBuffer(1)).length===1}catch(s){return!1}}()}};function b(s){var o=65536,h=e.getTypeOf(s),a=!0;if(h==="uint8array"?a=m.applyCanBeUsed.uint8array:h==="nodebuffer"&&(a=m.applyCanBeUsed.nodebuffer),a)for(;o>1;)try{return m.stringifyByChunk(s,h,o)}catch(d){o=Math.floor(o/2)}return m.stringifyByChar(s)}function v(s,o){for(var h=0;h<s.length;h++)o[h]=s[h];return o}e.applyFromCharCode=b;var _={};_.string={string:y,array:function(s){return p(s,new Array(s.length))},arraybuffer:function(s){return _.string.uint8array(s).buffer},uint8array:function(s){return p(s,new Uint8Array(s.length))},nodebuffer:function(s){return p(s,c.allocBuffer(s.length))}},_.array={string:b,array:y,arraybuffer:function(s){return new Uint8Array(s).buffer},uint8array:function(s){return new Uint8Array(s)},nodebuffer:function(s){return c.newBufferFrom(s)}},_.arraybuffer={string:function(s){return b(new Uint8Array(s))},array:function(s){return v(new Uint8Array(s),new Array(s.byteLength))},arraybuffer:y,uint8array:function(s){return new Uint8Array(s)},nodebuffer:function(s){return c.newBufferFrom(new Uint8Array(s))}},_.uint8array={string:b,array:function(s){return v(s,new Array(s.length))},arraybuffer:function(s){return s.buffer},uint8array:y,nodebuffer:function(s){return c.newBufferFrom(s)}},_.nodebuffer={string:b,array:function(s){return v(s,new Array(s.length))},arraybuffer:function(s){return _.nodebuffer.uint8array(s).buffer},uint8array:function(s){return v(s,new Uint8Array(s.length))},nodebuffer:y},e.transformTo=function(s,o){if(o||(o=""),!s)return o;e.checkSupport(s);var h=e.getTypeOf(o);return _[h][s](o)},e.getTypeOf=function(s){return typeof s=="string"?"string":Object.prototype.toString.call(s)==="[object Array]"?"array":n.nodebuffer&&c.isBuffer(s)?"nodebuffer":n.uint8array&&s instanceof Uint8Array?"uint8array":n.arraybuffer&&s instanceof ArrayBuffer?"arraybuffer":void 0},e.checkSupport=function(s){if(!n[s.toLowerCase()])throw new Error(s+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(s){var o,h,a="";for(h=0;h<(s||"").length;h++)a+="\\x"+((o=s.charCodeAt(h))<16?"0":"")+o.toString(16).toUpperCase();return a},e.delay=function(s,o,h){f(function(){s.apply(h||null,o||[])})},e.inherits=function(s,o){var h=function(){};h.prototype=o.prototype,s.prototype=new h},e.extend=function(){var s,o,h={};for(s=0;s<arguments.length;s++)for(o in arguments[s])arguments[s].hasOwnProperty(o)&&h[o]===void 0&&(h[o]=arguments[s][o]);return h},e.prepareContent=function(s,o,h,a,d){return l.Promise.resolve(o).then(function(g){return n.blob&&(g instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(g))!==-1)&&typeof FileReader!="undefined"?new l.Promise(function(w,k){var S=new FileReader;S.onload=function(A){w(A.target.result)},S.onerror=function(A){k(A.target.error)},S.readAsArrayBuffer(g)}):g}).then(function(g){var w=e.getTypeOf(g);return w?(w==="arraybuffer"?g=e.transformTo("uint8array",g):w==="string"&&(d?g=i.decode(g):h&&a!==!0&&(g=u(g))),g):l.Promise.reject(new Error("Can't read the data of '"+s+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":390,"./external":395,"./nodejsUtils":403,"./support":419,"set-immediate-shim":497}],422:[function(t,r,e){var n=t("./reader/readerFor"),i=t("./utils"),c=t("./signature"),f=t("./zipEntry");t("./utf8");var l=t("./support");function u(y){this.files=[],this.loadOptions=y}u.prototype={checkSignature:function(y){if(!this.reader.readAndCheckSignature(y)){this.reader.index-=4;var p=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(p)+", expected "+i.pretty(y)+")")}},isSignature:function(y,p){var m=this.reader.index;this.reader.setIndex(y);var b=this.reader.readString(4)===p;return this.reader.setIndex(m),b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var y=this.reader.readData(this.zipCommentLength),p=l.uint8array?"uint8array":"array",m=i.transformTo(p,y);this.zipComment=this.loadOptions.decodeFileName(m)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var y,p,m,b=this.zip64EndOfCentralSize-44,v=0;v<b;)y=this.reader.readInt(2),p=this.reader.readInt(4),m=this.reader.readData(p),this.zip64ExtensibleData[y]={id:y,length:p,value:m}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var y,p;for(y=0;y<this.files.length;y++)p=this.files[y],this.reader.setIndex(p.localHeaderOffset),this.checkSignature(c.LOCAL_FILE_HEADER),p.readLocalPart(this.reader),p.handleUTF8(),p.processAttributes()},readCentralDir:function(){var y;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(c.CENTRAL_FILE_HEADER);)(y=new f({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(y);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var y=this.reader.lastIndexOfSignature(c.CENTRAL_DIRECTORY_END);if(y<0)throw this.isSignature(0,c.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(y);var p=y;if(this.checkSignature(c.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(y=this.reader.lastIndexOfSignature(c.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(y),this.checkSignature(c.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,c.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(c.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(c.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var m=this.centralDirOffset+this.centralDirSize;this.zip64&&(m+=20,m+=12+this.zip64EndOfCentralSize);var b=p-m;if(b>0)this.isSignature(p,c.CENTRAL_FILE_HEADER)||(this.reader.zero=b);else if(b<0)throw new Error("Corrupted zip: missing "+Math.abs(b)+" bytes.")},prepareReader:function(y){this.reader=n(y)},load:function(y){this.prepareReader(y),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":411,"./signature":412,"./support":419,"./utf8":420,"./utils":421,"./zipEntry":423}],423:[function(t,r,e){var n=t("./reader/readerFor"),i=t("./utils"),c=t("./compressedObject"),f=t("./crc32"),l=t("./utf8"),u=t("./compressions"),y=t("./support"),p=0,m=3,b=function(_){for(var s in u)if(u.hasOwnProperty(s)&&u[s].magic===_)return u[s];return null};function v(_,s){this.options=_,this.loadOptions=s}v.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(_){var s,o;if(_.skip(22),this.fileNameLength=_.readInt(2),o=_.readInt(2),this.fileName=_.readData(this.fileNameLength),_.skip(o),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((s=b(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new c(this.compressedSize,this.uncompressedSize,this.crc32,s,_.readData(this.compressedSize))},readCentralPart:function(_){this.versionMadeBy=_.readInt(2),_.skip(2),this.bitFlag=_.readInt(2),this.compressionMethod=_.readString(2),this.date=_.readDate(),this.crc32=_.readInt(4),this.compressedSize=_.readInt(4),this.uncompressedSize=_.readInt(4);var s=_.readInt(2);if(this.extraFieldsLength=_.readInt(2),this.fileCommentLength=_.readInt(2),this.diskNumberStart=_.readInt(2),this.internalFileAttributes=_.readInt(2),this.externalFileAttributes=_.readInt(4),this.localHeaderOffset=_.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");_.skip(s),this.readExtraFields(_),this.parseZIP64ExtraField(_),this.fileComment=_.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var _=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),_===p&&(this.dosPermissions=63&this.externalFileAttributes),_===m&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(_){if(this.extraFields[1]){var s=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=s.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=s.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=s.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=s.readInt(4))}},readExtraFields:function(_){var s,o,h,a=_.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});_.index+4<a;)s=_.readInt(2),o=_.readInt(2),h=_.readData(o),this.extraFields[s]={id:s,length:o,value:h};_.setIndex(a)},handleUTF8:function(){var _=y.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var s=this.findExtraFieldUnicodePath();if(s!==null)this.fileNameStr=s;else{var o=i.transformTo(_,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(o)}var h=this.findExtraFieldUnicodeComment();if(h!==null)this.fileCommentStr=h;else{var a=i.transformTo(_,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var _=this.extraFields[28789];if(_){var s=n(_.value);return s.readInt(1)!==1||f(this.fileName)!==s.readInt(4)?null:l.utf8decode(s.readData(_.length-5))}return null},findExtraFieldUnicodeComment:function(){var _=this.extraFields[25461];if(_){var s=n(_.value);return s.readInt(1)!==1||f(this.fileComment)!==s.readInt(4)?null:l.utf8decode(s.readData(_.length-5))}return null}},r.exports=v},{"./compressedObject":391,"./compressions":392,"./crc32":393,"./reader/readerFor":411,"./support":419,"./utf8":420,"./utils":421}],424:[function(t,r,e){var n=t("./stream/StreamHelper"),i=t("./stream/DataWorker"),c=t("./utf8"),f=t("./compressedObject"),l=t("./stream/GenericWorker"),u=function(b,v,_){this.name=b,this.dir=_.dir,this.date=_.date,this.comment=_.comment,this.unixPermissions=_.unixPermissions,this.dosPermissions=_.dosPermissions,this._data=v,this._dataBinary=_.binary,this.options={compression:_.compression,compressionOptions:_.compressionOptions}};u.prototype={internalStream:function(b){var v=null,_="string";try{if(!b)throw new Error("No output type specified.");var s=(_=b.toLowerCase())==="string"||_==="text";_!=="binarystring"&&_!=="text"||(_="string"),v=this._decompressWorker();var o=!this._dataBinary;o&&!s&&(v=v.pipe(new c.Utf8EncodeWorker)),!o&&s&&(v=v.pipe(new c.Utf8DecodeWorker))}catch(h){(v=new l("error")).error(h)}return new n(v,_,"")},async:function(b,v){return this.internalStream(b).accumulate(v)},nodeStream:function(b,v){return this.internalStream(b||"nodebuffer").toNodejsStream(v)},_compressWorker:function(b,v){if(this._data instanceof f&&this._data.compression.magic===b.magic)return this._data.getCompressedWorker();var _=this._decompressWorker();return this._dataBinary||(_=_.pipe(new c.Utf8EncodeWorker)),f.createWorkerFrom(_,b,v)},_decompressWorker:function(){return this._data instanceof f?this._data.getContentWorker():this._data instanceof l?this._data:new i(this._data)}};for(var y=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],p=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},m=0;m<y.length;m++)u.prototype[y[m]]=p;r.exports=u},{"./compressedObject":391,"./stream/DataWorker":416,"./stream/GenericWorker":417,"./stream/StreamHelper":418,"./utf8":420}],425:[function(t,r,e){function n(g){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(g)}var i=t("immediate");function c(){}var f={},l=["REJECTED"],u=["FULFILLED"],y=["PENDING"];function p(g){if(typeof g!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,g!==c&&_(this,g)}function m(g,w,k){this.promise=g,typeof w=="function"&&(this.onFulfilled=w,this.callFulfilled=this.otherCallFulfilled),typeof k=="function"&&(this.onRejected=k,this.callRejected=this.otherCallRejected)}function b(g,w,k){i(function(){var S;try{S=w(k)}catch(A){return f.reject(g,A)}S===g?f.reject(g,new TypeError("Cannot resolve promise with itself")):f.resolve(g,S)})}function v(g){var w=g&&g.then;if(g&&(n(g)==="object"||typeof g=="function")&&typeof w=="function")return function(){w.apply(g,arguments)}}function _(g,w){var k=!1;function S(N){k||(k=!0,f.reject(g,N))}function A(N){k||(k=!0,f.resolve(g,N))}function j(){w(A,S)}var D=s(j);D.status==="error"&&S(D.value)}function s(g,w){var k={};try{k.value=g(w),k.status="success"}catch(S){k.status="error",k.value=S}return k}function o(g){return g instanceof this?g:f.resolve(new this(c),g)}function h(g){var w=new this(c);return f.reject(w,g)}function a(g){var w=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var k=g.length,S=!1;if(!k)return this.resolve([]);for(var A=new Array(k),j=0,D=-1,N=new this(c);++D<k;)F(g[D],D);return N;function F(T,I){function x(O){A[I]=O,++j!==k||S||(S=!0,f.resolve(N,A))}w.resolve(T).then(x,function(O){S||(S=!0,f.reject(N,O))})}}function d(g){var w=this;if(Object.prototype.toString.call(g)!=="[object Array]")return this.reject(new TypeError("must be an array"));var k=g.length,S=!1;if(!k)return this.resolve([]);for(var A=-1,j=new this(c);++A<k;)D(g[A]);return j;function D(N){w.resolve(N).then(function(F){S||(S=!0,f.resolve(j,F))},function(F){S||(S=!0,f.reject(j,F))})}}r.exports=p,p.prototype.finally=function(g){if(typeof g!="function")return this;var w=this.constructor;return this.then(k,S);function k(A){function j(){return A}return w.resolve(g()).then(j)}function S(A){function j(){throw A}return w.resolve(g()).then(j)}},p.prototype.catch=function(g){return this.then(null,g)},p.prototype.then=function(g,w){if(typeof g!="function"&&this.state===u||typeof w!="function"&&this.state===l)return this;var k=new this.constructor(c);return this.state!==y?b(k,this.state===u?g:w,this.outcome):this.queue.push(new m(k,g,w)),k},m.prototype.callFulfilled=function(g){f.resolve(this.promise,g)},m.prototype.otherCallFulfilled=function(g){b(this.promise,this.onFulfilled,g)},m.prototype.callRejected=function(g){f.reject(this.promise,g)},m.prototype.otherCallRejected=function(g){b(this.promise,this.onRejected,g)},f.resolve=function(g,w){var k=s(v,w);if(k.status==="error")return f.reject(g,k.value);var S=k.value;if(S)_(g,S);else{g.state=u,g.outcome=w;for(var A=-1,j=g.queue.length;++A<j;)g.queue[A].callFulfilled(w)}return g},f.reject=function(g,w){g.state=l,g.outcome=w;for(var k=-1,S=g.queue.length;++k<S;)g.queue[k].callRejected(w);return g},p.resolve=o,p.reject=h,p.all=a,p.race=d},{immediate:386}],426:[function(t,r,e){(function(n){function i(w){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(k){return typeof k}:function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}var c=1/0,f="[object Symbol]",l=/[\\^$.*+?()[\]{}|]/g,u=RegExp(l.source),y=(n===void 0?"undefined":i(n))=="object"&&n&&n.Object===Object&&n,p=(typeof self=="undefined"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,m=y||p||Function("return this")(),b=Object.prototype.toString,v=m.Symbol,_=v?v.prototype:void 0,s=_?_.toString:void 0;function o(w){if(typeof w=="string")return w;if(a(w))return s?s.call(w):"";var k=w+"";return k=="0"&&1/w==-c?"-0":k}function h(w){return!!w&&i(w)=="object"}function a(w){return i(w)=="symbol"||h(w)&&b.call(w)==f}function d(w){return w==null?"":o(w)}function g(w){return(w=d(w))&&u.test(w)?w.replace(l,"\\$&"):w}r.exports=g}).call(this,dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],427:[function(t,r,e){(function(n){function i(lt){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ct){return typeof Ct}:function(Ct){return Ct&&typeof Symbol=="function"&&Ct.constructor===Symbol&&Ct!==Symbol.prototype?"symbol":typeof Ct})(lt)}var c=200,f="Expected a function",l="__lodash_hash_undefined__",u=1,y=2,p=1/0,m=9007199254740991,b="[object Arguments]",v="[object Array]",_="[object Boolean]",s="[object Date]",o="[object Error]",h="[object Function]",a="[object GeneratorFunction]",d="[object Map]",g="[object Number]",w="[object Object]",k="[object Promise]",S="[object RegExp]",A="[object Set]",j="[object String]",D="[object Symbol]",N="[object WeakMap]",F="[object ArrayBuffer]",T="[object DataView]",I="[object Float64Array]",x="[object Int8Array]",O="[object Int16Array]",R="[object Int32Array]",C="[object Uint8Array]",P="[object Uint8ClampedArray]",L="[object Uint16Array]",H="[object Uint32Array]",U=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,B=/^\w*$/,W=/^\./,X=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,ft=/\\(\\)?/g,gt=/^\[object .+?Constructor\]$/,bt=/^(?:0|[1-9]\d*)$/,rt={};rt["[object Float32Array]"]=rt[I]=rt[x]=rt[O]=rt[R]=rt[C]=rt[P]=rt[L]=rt[H]=!0,rt[b]=rt[v]=rt[F]=rt[_]=rt[T]=rt[s]=rt[o]=rt[h]=rt[d]=rt[g]=rt[w]=rt[S]=rt[A]=rt[j]=rt[N]=!1;var Q=(n===void 0?"undefined":i(n))=="object"&&n&&n.Object===Object&&n,K=(typeof self=="undefined"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,nt=Q||K||Function("return this")(),At=(e===void 0?"undefined":i(e))=="object"&&e&&!e.nodeType&&e,ot=At&&(r===void 0?"undefined":i(r))=="object"&&r&&!r.nodeType&&r,ut=ot&&ot.exports===At&&Q.process,Mt=function(){try{return ut&&ut.binding("util")}catch(lt){}}(),Bt=Mt&&Mt.isTypedArray;function G(lt,Ct,Gt,te){for(var He=-1,Ie=lt?lt.length:0;++He<Ie;){var Ke=lt[He];Ct(te,Ke,Gt(Ke),lt)}return te}function Z(lt,Ct){for(var Gt=-1,te=lt?lt.length:0;++Gt<te;)if(Ct(lt[Gt],Gt,lt))return!0;return!1}function J(lt){return function(Ct){return Ct==null?void 0:Ct[lt]}}function St(lt,Ct){for(var Gt=-1,te=Array(lt);++Gt<lt;)te[Gt]=Ct(Gt);return te}function It(lt){return function(Ct){return lt(Ct)}}function Ft(lt,Ct){return lt==null?void 0:lt[Ct]}function Xt(lt){var Ct=!1;if(lt!=null&&typeof lt.toString!="function")try{Ct=!!(lt+"")}catch(Gt){}return Ct}function me(lt){var Ct=-1,Gt=Array(lt.size);return lt.forEach(function(te,He){Gt[++Ct]=[He,te]}),Gt}function fe(lt,Ct){return function(Gt){return lt(Ct(Gt))}}function Kt(lt){var Ct=-1,Gt=Array(lt.size);return lt.forEach(function(te){Gt[++Ct]=te}),Gt}var ie,ct=Array.prototype,pt=Function.prototype,_t=Object.prototype,vt=nt["__core-js_shared__"],Y=(ie=/[^.]+$/.exec(vt&&vt.keys&&vt.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",ht=pt.toString,at=_t.hasOwnProperty,it=_t.toString,q=RegExp("^"+ht.call(at).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=nt.Symbol,Pt=nt.Uint8Array,V=_t.propertyIsEnumerable,Rt=ct.splice,mt=fe(Object.keys,Object),dt=Co(nt,"DataView"),Tt=Co(nt,"Map"),Ot=Co(nt,"Promise"),qt=Co(nt,"Set"),Lt=Co(nt,"WeakMap"),Ht=Co(Object,"create"),le=Ut(dt),Ce=Ut(Tt),Zt=Ut(Ot),ae=Ut(qt),he=Ut(Lt),Wt=wt?wt.prototype:void 0,pe=Wt?Wt.valueOf:void 0,Se=Wt?Wt.toString:void 0;function de(lt){var Ct=-1,Gt=lt?lt.length:0;for(this.clear();++Ct<Gt;){var te=lt[Ct];this.set(te[0],te[1])}}function ge(){this.__data__=Ht?Ht(null):{}}function Fe(lt){return this.has(lt)&&delete this.__data__[lt]}function re(lt){var Ct=this.__data__;if(Ht){var Gt=Ct[lt];return Gt===l?void 0:Gt}return at.call(Ct,lt)?Ct[lt]:void 0}function Ae(lt){var Ct=this.__data__;return Ht?Ct[lt]!==void 0:at.call(Ct,lt)}function De(lt,Ct){return this.__data__[lt]=Ht&&Ct===void 0?l:Ct,this}function Ue(lt){var Ct=-1,Gt=lt?lt.length:0;for(this.clear();++Ct<Gt;){var te=lt[Ct];this.set(te[0],te[1])}}function Sr(){this.__data__=[]}function ir(lt){var Ct=this.__data__,Gt=Pi(Ct,lt);return!(Gt<0||(Gt==Ct.length-1?Ct.pop():Rt.call(Ct,Gt,1),0))}function $e(lt){var Ct=this.__data__,Gt=Pi(Ct,lt);return Gt<0?void 0:Ct[Gt][1]}function ii(lt){return Pi(this.__data__,lt)>-1}function oi(lt,Ct){var Gt=this.__data__,te=Pi(Gt,lt);return te<0?Gt.push([lt,Ct]):Gt[te][1]=Ct,this}function Zr(lt){var Ct=-1,Gt=lt?lt.length:0;for(this.clear();++Ct<Gt;){var te=lt[Ct];this.set(te[0],te[1])}}function Br(){this.__data__={hash:new de,map:new(Tt||Ue),string:new de}}function On(lt){return fo(this,lt).delete(lt)}function Dn(lt){return fo(this,lt).get(lt)}function Xn(lt){return fo(this,lt).has(lt)}function ai(lt,Ct){return fo(this,lt).set(lt,Ct),this}function Oe(lt){var Ct=-1,Gt=lt?lt.length:0;for(this.__data__=new Zr;++Ct<Gt;)this.add(lt[Ct])}function kt(lt){return this.__data__.set(lt,l),this}function Dt(lt){return this.__data__.has(lt)}function Nt(lt){this.__data__=new Ue(lt)}function ye(){this.__data__=new Ue}function Le(lt){return this.__data__.delete(lt)}function gr(lt){return this.__data__.get(lt)}function Kr(lt){return this.__data__.has(lt)}function sn(lt,Ct){var Gt=this.__data__;if(Gt instanceof Ue){var te=Gt.__data__;if(!Tt||te.length<c-1)return te.push([lt,Ct]),this;Gt=this.__data__=new Zr(te)}return Gt.set(lt,Ct),this}function Ur(lt,Ct){var Gt=vr(lt)||er(lt)?St(lt.length,String):[],te=Gt.length,He=!!te;for(var Ie in lt)!Ct&&!at.call(lt,Ie)||He&&(Ie=="length"||$o(Ie,te))||Gt.push(Ie);return Gt}function Pi(lt,Ct){for(var Gt=lt.length;Gt--;)if(Ar(lt[Gt][0],Ct))return Gt;return-1}function wn(lt,Ct,Gt,te){return $i(lt,function(He,Ie,Ke){Ct(te,He,Gt(He),Ke)}),te}de.prototype.clear=ge,de.prototype.delete=Fe,de.prototype.get=re,de.prototype.has=Ae,de.prototype.set=De,Ue.prototype.clear=Sr,Ue.prototype.delete=ir,Ue.prototype.get=$e,Ue.prototype.has=ii,Ue.prototype.set=oi,Zr.prototype.clear=Br,Zr.prototype.delete=On,Zr.prototype.get=Dn,Zr.prototype.has=Xn,Zr.prototype.set=ai,Oe.prototype.add=Oe.prototype.push=kt,Oe.prototype.has=Dt,Nt.prototype.clear=ye,Nt.prototype.delete=Le,Nt.prototype.get=gr,Nt.prototype.has=Kr,Nt.prototype.set=sn;var $i=Xa(en),si=Nc();function en(lt,Ct){return lt&&si(lt,Ct,ee)}function Oo(lt,Ct){for(var Gt=0,te=(Ct=lo(Ct,lt)?[Ct]:Dr(Ct)).length;lt!=null&&Gt<te;)lt=lt[Et(Ct[Gt++])];return Gt&&Gt==te?lt:void 0}function qi(lt){return it.call(lt)}function Gi(lt,Ct){return lt!=null&&Ct in Object(lt)}function Ro(lt,Ct,Gt,te,He){return lt===Ct||(lt==null||Ct==null||!un(lt)&&!Nr(Ct)?lt!=lt&&Ct!=Ct:Ds(lt,Ct,Ro,Gt,te,He))}function Ds(lt,Ct,Gt,te,He,Ie){var Ke=vr(lt),Er=vr(Ct),Xr=v,zr=v;Ke||(Xr=(Xr=ci(lt))==b?w:Xr),Er||(zr=(zr=ci(Ct))==b?w:zr);var Wr=Xr==w&&!Xt(lt),Ln=zr==w&&!Xt(Ct),or=Xr==zr;if(or&&!Wr)return Ie||(Ie=new Nt),Ke||Zn(lt)?ga(lt,Ct,Gt,te,He,Ie):uo(lt,Ct,Xr,Gt,te,He,Ie);if(!(He&y)){var ui=Wr&&at.call(lt,"__wrapped__"),fi=Ln&&at.call(Ct,"__wrapped__");if(ui||fi){var wi=ui?lt.value():lt,qo=fi?Ct.value():Ct;return Ie||(Ie=new Nt),Gt(wi,qo,te,He,Ie)}}return!!or&&(Ie||(Ie=new Nt),Za(lt,Ct,Gt,te,He,Ie))}function Ka(lt,Ct,Gt,te){var He=Gt.length,Ie=He,Ke=!te;if(lt==null)return!Ie;for(lt=Object(lt);He--;){var Er=Gt[He];if(Ke&&Er[2]?Er[1]!==lt[Er[0]]:!(Er[0]in lt))return!1}for(;++He<Ie;){var Xr=(Er=Gt[He])[0],zr=lt[Xr],Wr=Er[1];if(Ke&&Er[2]){if(zr===void 0&&!(Xr in lt))return!1}else{var Ln=new Nt;if(te)var or=te(zr,Wr,Xr,lt,Ct,Ln);if(!(or===void 0?Ro(Wr,zr,te,u|y,Ln):or))return!1}}return!0}function Nn(lt){return!(!un(lt)||ho(lt))&&(wr(lt)||Xt(lt)?q:gt).test(Ut(lt))}function Dc(lt){return Nr(lt)&&Lr(lt.length)&&!!rt[it.call(lt)]}function Fn(lt){return typeof lt=="function"?lt:lt==null?Pe:i(lt)=="object"?vr(lt)?Yi(lt[0],lt[1]):co(lt):tr(lt)}function va(lt){if(!wa(lt))return mt(lt);var Ct=[];for(var Gt in Object(lt))at.call(lt,Gt)&&Gt!="constructor"&&Ct.push(Gt);return Ct}function co(lt){var Ct=Mi(lt);return Ct.length==1&&Ct[0][2]?Rn(Ct[0][0],Ct[0][1]):function(Gt){return Gt===lt||Ka(Gt,lt,Ct)}}function Yi(lt,Ct){return lo(lt)&&Qa(Ct)?Rn(Et(lt),Ct):function(Gt){var te=$t(Gt,lt);return te===void 0&&te===Ct?Qt(Gt,lt):Ro(Ct,te,void 0,u|y)}}function ba(lt){return function(Ct){return Oo(Ct,lt)}}function gi(lt){if(typeof lt=="string")return lt;if(vn(lt))return Se?Se.call(lt):"";var Ct=lt+"";return Ct=="0"&&1/lt==-p?"-0":Ct}function Dr(lt){return vr(lt)?lt:ts(lt)}function Ki(lt,Ct){return function(Gt,te){var He=vr(Gt)?G:wn,Ie=Ct?Ct():{};return He(Gt,lt,Fn(te),Ie)}}function Xa(lt,Ct){return function(Gt,te){if(Gt==null)return Gt;if(!Hr(Gt))return lt(Gt,te);for(var He=Gt.length,Ie=Ct?He:-1,Ke=Object(Gt);(Ct?Ie--:++Ie<He)&&te(Ke[Ie],Ie,Ke)!==!1;);return Gt}}function Nc(lt){return function(Ct,Gt,te){for(var He=-1,Ie=Object(Ct),Ke=te(Ct),Er=Ke.length;Er--;){var Xr=Ke[lt?Er:++He];if(Gt(Ie[Xr],Xr,Ie)===!1)break}return Ct}}function ga(lt,Ct,Gt,te,He,Ie){var Ke=He&y,Er=lt.length,Xr=Ct.length;if(Er!=Xr&&!(Ke&&Xr>Er))return!1;var zr=Ie.get(lt);if(zr&&Ie.get(Ct))return zr==Ct;var Wr=-1,Ln=!0,or=He&u?new Oe:void 0;for(Ie.set(lt,Ct),Ie.set(Ct,lt);++Wr<Er;){var ui=lt[Wr],fi=Ct[Wr];if(te)var wi=Ke?te(fi,ui,Wr,Ct,lt,Ie):te(ui,fi,Wr,lt,Ct,Ie);if(wi!==void 0){if(wi)continue;Ln=!1;break}if(or){if(!Z(Ct,function(qo,Go){if(!or.has(Go)&&(ui===qo||Gt(ui,qo,te,He,Ie)))return or.add(Go)})){Ln=!1;break}}else if(ui!==fi&&!Gt(ui,fi,te,He,Ie)){Ln=!1;break}}return Ie.delete(lt),Ie.delete(Ct),Ln}function uo(lt,Ct,Gt,te,He,Ie,Ke){switch(Gt){case T:if(lt.byteLength!=Ct.byteLength||lt.byteOffset!=Ct.byteOffset)return!1;lt=lt.buffer,Ct=Ct.buffer;case F:return!(lt.byteLength!=Ct.byteLength||!te(new Pt(lt),new Pt(Ct)));case _:case s:case g:return Ar(+lt,+Ct);case o:return lt.name==Ct.name&<.message==Ct.message;case S:case j:return lt==Ct+"";case d:var Er=me;case A:var Xr=Ie&y;if(Er||(Er=Kt),lt.size!=Ct.size&&!Xr)return!1;var zr=Ke.get(lt);if(zr)return zr==Ct;Ie|=u,Ke.set(lt,Ct);var Wr=ga(Er(lt),Er(Ct),te,He,Ie,Ke);return Ke.delete(lt),Wr;case D:if(pe)return pe.call(lt)==pe.call(Ct)}return!1}function Za(lt,Ct,Gt,te,He,Ie){var Ke=He&y,Er=ee(lt),Xr=Er.length;if(Xr!=ee(Ct).length&&!Ke)return!1;for(var zr=Xr;zr--;){var Wr=Er[zr];if(!(Ke?Wr in Ct:at.call(Ct,Wr)))return!1}var Ln=Ie.get(lt);if(Ln&&Ie.get(Ct))return Ln==Ct;var or=!0;Ie.set(lt,Ct),Ie.set(Ct,lt);for(var ui=Ke;++zr<Xr;){var fi=lt[Wr=Er[zr]],wi=Ct[Wr];if(te)var qo=Ke?te(wi,fi,Wr,Ct,lt,Ie):te(fi,wi,Wr,lt,Ct,Ie);if(!(qo===void 0?fi===wi||Gt(fi,wi,te,He,Ie):qo)){or=!1;break}ui||(ui=Wr=="constructor")}if(or&&!ui){var Go=lt.constructor,Fs=Ct.constructor;Go==Fs||!("constructor"in lt)||!("constructor"in Ct)||typeof Go=="function"&&Go instanceof Go&&typeof Fs=="function"&&Fs instanceof Fs||(or=!1)}return Ie.delete(lt),Ie.delete(Ct),or}function fo(lt,Ct){var Gt=lt.__data__;return Ja(Ct)?Gt[typeof Ct=="string"?"string":"hash"]:Gt.map}function Mi(lt){for(var Ct=ee(lt),Gt=Ct.length;Gt--;){var te=Ct[Gt],He=lt[te];Ct[Gt]=[te,He,Qa(He)]}return Ct}function Co(lt,Ct){var Gt=Ft(lt,Ct);return Nn(Gt)?Gt:void 0}var ci=qi;function Ns(lt,Ct,Gt){for(var te,He=-1,Ie=(Ct=lo(Ct,lt)?[Ct]:Dr(Ct)).length;++He<Ie;){var Ke=Et(Ct[He]);if(!(te=lt!=null&&Gt(lt,Ke)))break;lt=lt[Ke]}return te||!!(Ie=lt?lt.length:0)&&Lr(Ie)&&$o(Ke,Ie)&&(vr(lt)||er(lt))}function $o(lt,Ct){return!!(Ct=Ct==null?m:Ct)&&(typeof lt=="number"||bt.test(lt))&<>-1&<%1==0&<<Ct}function lo(lt,Ct){if(vr(lt))return!1;var Gt=i(lt);return!(Gt!="number"&&Gt!="symbol"&&Gt!="boolean"&<!=null&&!vn(lt))||B.test(lt)||!U.test(lt)||Ct!=null&< in Object(Ct)}function Ja(lt){var Ct=i(lt);return Ct=="string"||Ct=="number"||Ct=="symbol"||Ct=="boolean"?lt!=="__proto__":lt===null}function ho(lt){return!!Y&&Y in lt}function wa(lt){var Ct=lt&<.constructor;return lt===(typeof Ct=="function"&&Ct.prototype||_t)}function Qa(lt){return lt==lt&&!un(lt)}function Rn(lt,Ct){return function(Gt){return Gt!=null&&Gt[lt]===Ct&&(Ct!==void 0||lt in Object(Gt))}}(dt&&ci(new dt(new ArrayBuffer(1)))!=T||Tt&&ci(new Tt)!=d||Ot&&ci(Ot.resolve())!=k||qt&&ci(new qt)!=A||Lt&&ci(new Lt)!=N)&&(ci=function(lt){var Ct=it.call(lt),Gt=Ct==w?lt.constructor:void 0,te=Gt?Ut(Gt):void 0;if(te)switch(te){case le:return T;case Ce:return d;case Zt:return k;case ae:return A;case he:return N}return Ct});var ts=je(function(lt){lt=Cn(lt);var Ct=[];return W.test(lt)&&Ct.push(""),lt.replace(X,function(Gt,te,He,Ie){Ct.push(He?Ie.replace(ft,"$1"):te||Gt)}),Ct});function Et(lt){if(typeof lt=="string"||vn(lt))return lt;var Ct=lt+"";return Ct=="0"&&1/lt==-p?"-0":Ct}function Ut(lt){if(lt!=null){try{return ht.call(lt)}catch(Ct){}try{return lt+""}catch(Ct){}}return""}var se=Ki(function(lt,Ct,Gt){at.call(lt,Gt)?lt[Gt].push(Ct):lt[Gt]=[Ct]});function je(lt,Ct){if(typeof lt!="function"||Ct&&typeof Ct!="function")throw new TypeError(f);var Gt=function te(){var He=arguments,Ie=Ct?Ct.apply(this,He):He[0],Ke=te.cache;if(Ke.has(Ie))return Ke.get(Ie);var Er=lt.apply(this,He);return te.cache=Ke.set(Ie,Er),Er};return Gt.cache=new(je.Cache||Zr),Gt}function Ar(lt,Ct){return lt===Ct||lt!=lt&&Ct!=Ct}function er(lt){return cn(lt)&&at.call(lt,"callee")&&(!V.call(lt,"callee")||it.call(lt)==b)}je.Cache=Zr;var vr=Array.isArray;function Hr(lt){return lt!=null&&Lr(lt.length)&&!wr(lt)}function cn(lt){return Nr(lt)&&Hr(lt)}function wr(lt){var Ct=un(lt)?it.call(lt):"";return Ct==h||Ct==a}function Lr(lt){return typeof lt=="number"&<>-1&<%1==0&<<=m}function un(lt){var Ct=i(lt);return!!lt&&(Ct=="object"||Ct=="function")}function Nr(lt){return!!lt&&i(lt)=="object"}function vn(lt){return i(lt)=="symbol"||Nr(lt)&&it.call(lt)==D}var Zn=Bt?It(Bt):Dc;function Cn(lt){return lt==null?"":gi(lt)}function $t(lt,Ct,Gt){var te=lt==null?void 0:Oo(lt,Ct);return te===void 0?Gt:te}function Qt(lt,Ct){return lt!=null&&Ns(lt,Ct,Gi)}function ee(lt){return Hr(lt)?Ur(lt):va(lt)}function Pe(lt){return lt}function tr(lt){return lo(lt)?J(Et(lt)):ba(lt)}r.exports=se}).call(this,dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],428:[function(t,r,e){function n(u){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(u)}var i="[object Boolean]",c=Object.prototype.toString;function f(u){return u===!0||u===!1||l(u)&&c.call(u)==i}function l(u){return!!u&&n(u)=="object"}r.exports=f},{}],429:[function(t,r,e){(function(n){function i(Et){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ut){return typeof Ut}:function(Ut){return Ut&&typeof Symbol=="function"&&Ut.constructor===Symbol&&Ut!==Symbol.prototype?"symbol":typeof Ut})(Et)}var c=200,f="__lodash_hash_undefined__",l=1,u=2,y=9007199254740991,p="[object Arguments]",m="[object Array]",b="[object AsyncFunction]",v="[object Boolean]",_="[object Date]",s="[object Error]",o="[object Function]",h="[object GeneratorFunction]",a="[object Map]",d="[object Number]",g="[object Null]",w="[object Object]",k="[object Promise]",S="[object Proxy]",A="[object RegExp]",j="[object Set]",D="[object String]",N="[object Symbol]",F="[object Undefined]",T="[object WeakMap]",I="[object ArrayBuffer]",x="[object DataView]",O="[object Float64Array]",R="[object Int8Array]",C="[object Int16Array]",P="[object Int32Array]",L="[object Uint8Array]",H="[object Uint8ClampedArray]",U="[object Uint16Array]",B="[object Uint32Array]",W=/[\\^$.*+?()[\]{}|]/g,X=/^\[object .+?Constructor\]$/,et=/^(?:0|[1-9]\d*)$/,ft={};ft["[object Float32Array]"]=ft[O]=ft[R]=ft[C]=ft[P]=ft[L]=ft[H]=ft[U]=ft[B]=!0,ft[p]=ft[m]=ft[I]=ft[v]=ft[x]=ft[_]=ft[s]=ft[o]=ft[a]=ft[d]=ft[w]=ft[A]=ft[j]=ft[D]=ft[T]=!1;var gt=(n===void 0?"undefined":i(n))=="object"&&n&&n.Object===Object&&n,bt=(typeof self=="undefined"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,rt=gt||bt||Function("return this")(),Q=(e===void 0?"undefined":i(e))=="object"&&e&&!e.nodeType&&e,K=Q&&(r===void 0?"undefined":i(r))=="object"&&r&&!r.nodeType&&r,nt=K&&K.exports===Q,At=nt&>.process,ot=function(){try{return At&&At.binding&&At.binding("util")}catch(Et){}}(),ut=ot&&ot.isTypedArray;function Mt(Et,Ut){for(var se=-1,je=Et==null?0:Et.length,Ar=0,er=[];++se<je;){var vr=Et[se];Ut(vr,se,Et)&&(er[Ar++]=vr)}return er}function Bt(Et,Ut){for(var se=-1,je=Ut.length,Ar=Et.length;++se<je;)Et[Ar+se]=Ut[se];return Et}function G(Et,Ut){for(var se=-1,je=Et==null?0:Et.length;++se<je;)if(Ut(Et[se],se,Et))return!0;return!1}function Z(Et,Ut){for(var se=-1,je=Array(Et);++se<Et;)je[se]=Ut(se);return je}function J(Et){return function(Ut){return Et(Ut)}}function St(Et,Ut){return Et.has(Ut)}function It(Et,Ut){return Et==null?void 0:Et[Ut]}function Ft(Et){var Ut=-1,se=Array(Et.size);return Et.forEach(function(je,Ar){se[++Ut]=[Ar,je]}),se}function Xt(Et,Ut){return function(se){return Et(Ut(se))}}function me(Et){var Ut=-1,se=Array(Et.size);return Et.forEach(function(je){se[++Ut]=je}),se}var fe,Kt=Array.prototype,ie=Function.prototype,ct=Object.prototype,pt=rt["__core-js_shared__"],_t=ie.toString,vt=ct.hasOwnProperty,Y=(fe=/[^.]+$/.exec(pt&&pt.keys&&pt.keys.IE_PROTO||""))?"Symbol(src)_1."+fe:"",ht=ct.toString,at=RegExp("^"+_t.call(vt).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),it=nt?rt.Buffer:void 0,q=rt.Symbol,wt=rt.Uint8Array,Pt=ct.propertyIsEnumerable,V=Kt.splice,Rt=q?q.toStringTag:void 0,mt=Object.getOwnPropertySymbols,dt=it?it.isBuffer:void 0,Tt=Xt(Object.keys,Object),Ot=co(rt,"DataView"),qt=co(rt,"Map"),Lt=co(rt,"Promise"),Ht=co(rt,"Set"),le=co(rt,"WeakMap"),Ce=co(Object,"create"),Zt=uo(Ot),ae=uo(qt),he=uo(Lt),Wt=uo(Ht),pe=uo(le),Se=q?q.prototype:void 0,de=Se?Se.valueOf:void 0;function ge(Et){var Ut=-1,se=Et==null?0:Et.length;for(this.clear();++Ut<se;){var je=Et[Ut];this.set(je[0],je[1])}}function Fe(){this.__data__=Ce?Ce(null):{},this.size=0}function re(Et){var Ut=this.has(Et)&&delete this.__data__[Et];return this.size-=Ut?1:0,Ut}function Ae(Et){var Ut=this.__data__;if(Ce){var se=Ut[Et];return se===f?void 0:se}return vt.call(Ut,Et)?Ut[Et]:void 0}function De(Et){var Ut=this.__data__;return Ce?Ut[Et]!==void 0:vt.call(Ut,Et)}function Ue(Et,Ut){var se=this.__data__;return this.size+=this.has(Et)?0:1,se[Et]=Ce&&Ut===void 0?f:Ut,this}function Sr(Et){var Ut=-1,se=Et==null?0:Et.length;for(this.clear();++Ut<se;){var je=Et[Ut];this.set(je[0],je[1])}}function ir(){this.__data__=[],this.size=0}function $e(Et){var Ut=this.__data__,se=wn(Ut,Et);return!(se<0||(se==Ut.length-1?Ut.pop():V.call(Ut,se,1),--this.size,0))}function ii(Et){var Ut=this.__data__,se=wn(Ut,Et);return se<0?void 0:Ut[se][1]}function oi(Et){return wn(this.__data__,Et)>-1}function Zr(Et,Ut){var se=this.__data__,je=wn(se,Et);return je<0?(++this.size,se.push([Et,Ut])):se[je][1]=Ut,this}function Br(Et){var Ut=-1,se=Et==null?0:Et.length;for(this.clear();++Ut<se;){var je=Et[Ut];this.set(je[0],je[1])}}function On(){this.size=0,this.__data__={hash:new ge,map:new(qt||Sr),string:new ge}}function Dn(Et){var Ut=va(this,Et).delete(Et);return this.size-=Ut?1:0,Ut}function Xn(Et){return va(this,Et).get(Et)}function ai(Et){return va(this,Et).has(Et)}function Oe(Et,Ut){var se=va(this,Et),je=se.size;return se.set(Et,Ut),this.size+=se.size==je?0:1,this}function kt(Et){var Ut=-1,se=Et==null?0:Et.length;for(this.__data__=new Br;++Ut<se;)this.add(Et[Ut])}function Dt(Et){return this.__data__.set(Et,f),this}function Nt(Et){return this.__data__.has(Et)}function ye(Et){var Ut=this.__data__=new Sr(Et);this.size=Ut.size}function Le(){this.__data__=new Sr,this.size=0}function gr(Et){var Ut=this.__data__,se=Ut.delete(Et);return this.size=Ut.size,se}function Kr(Et){return this.__data__.get(Et)}function sn(Et){return this.__data__.has(Et)}function Ur(Et,Ut){var se=this.__data__;if(se instanceof Sr){var je=se.__data__;if(!qt||je.length<c-1)return je.push([Et,Ut]),this.size=++se.size,this;se=this.__data__=new Br(je)}return se.set(Et,Ut),this.size=se.size,this}function Pi(Et,Ut){var se=Mi(Et),je=!se&&fo(Et),Ar=!se&&!je&&ci(Et),er=!se&&!je&&!Ar&&wa(Et),vr=se||je||Ar||er,Hr=vr?Z(Et.length,String):[],cn=Hr.length;for(var wr in Et)!Ut&&!vt.call(Et,wr)||vr&&(wr=="length"||Ar&&(wr=="offset"||wr=="parent")||er&&(wr=="buffer"||wr=="byteLength"||wr=="byteOffset")||Dr(wr,cn))||Hr.push(wr);return Hr}function wn(Et,Ut){for(var se=Et.length;se--;)if(Za(Et[se][0],Ut))return se;return-1}function $i(Et,Ut,se){var je=Ut(Et);return Mi(Et)?je:Bt(je,se(Et))}function si(Et){return Et==null?Et===void 0?F:g:Rt&&Rt in Object(Et)?Yi(Et):ga(Et)}function en(Et){return ho(Et)&&si(Et)==p}function Oo(Et,Ut,se,je,Ar){return Et===Ut||(Et==null||Ut==null||!ho(Et)&&!ho(Ut)?Et!=Et&&Ut!=Ut:qi(Et,Ut,se,je,Oo,Ar))}function qi(Et,Ut,se,je,Ar,er){var vr=Mi(Et),Hr=Mi(Ut),cn=vr?m:gi(Et),wr=Hr?m:gi(Ut),Lr=(cn=cn==p?w:cn)==w,un=(wr=wr==p?w:wr)==w,Nr=cn==wr;if(Nr&&ci(Et)){if(!ci(Ut))return!1;vr=!0,Lr=!1}if(Nr&&!Lr)return er||(er=new ye),vr||wa(Et)?Ka(Et,Ut,se,je,Ar,er):Nn(Et,Ut,cn,se,je,Ar,er);if(!(se&l)){var vn=Lr&&vt.call(Et,"__wrapped__"),Zn=un&&vt.call(Ut,"__wrapped__");if(vn||Zn){var Cn=vn?Et.value():Et,$t=Zn?Ut.value():Ut;return er||(er=new ye),Ar(Cn,$t,se,je,er)}}return!!Nr&&(er||(er=new ye),Dc(Et,Ut,se,je,Ar,er))}function Gi(Et){return!(!Ja(Et)||Xa(Et))&&($o(Et)?at:X).test(uo(Et))}function Ro(Et){return ho(Et)&&lo(Et.length)&&!!ft[si(Et)]}function Ds(Et){if(!Nc(Et))return Tt(Et);var Ut=[];for(var se in Object(Et))vt.call(Et,se)&&se!="constructor"&&Ut.push(se);return Ut}function Ka(Et,Ut,se,je,Ar,er){var vr=se&l,Hr=Et.length,cn=Ut.length;if(Hr!=cn&&!(vr&&cn>Hr))return!1;var wr=er.get(Et);if(wr&&er.get(Ut))return wr==Ut;var Lr=-1,un=!0,Nr=se&u?new kt:void 0;for(er.set(Et,Ut),er.set(Ut,Et);++Lr<Hr;){var vn=Et[Lr],Zn=Ut[Lr];if(je)var Cn=vr?je(Zn,vn,Lr,Ut,Et,er):je(vn,Zn,Lr,Et,Ut,er);if(Cn!==void 0){if(Cn)continue;un=!1;break}if(Nr){if(!G(Ut,function($t,Qt){if(!St(Nr,Qt)&&(vn===$t||Ar(vn,$t,se,je,er)))return Nr.push(Qt)})){un=!1;break}}else if(vn!==Zn&&!Ar(vn,Zn,se,je,er)){un=!1;break}}return er.delete(Et),er.delete(Ut),un}function Nn(Et,Ut,se,je,Ar,er,vr){switch(se){case x:if(Et.byteLength!=Ut.byteLength||Et.byteOffset!=Ut.byteOffset)return!1;Et=Et.buffer,Ut=Ut.buffer;case I:return!(Et.byteLength!=Ut.byteLength||!er(new wt(Et),new wt(Ut)));case v:case _:case d:return Za(+Et,+Ut);case s:return Et.name==Ut.name&&Et.message==Ut.message;case A:case D:return Et==Ut+"";case a:var Hr=Ft;case j:var cn=je&l;if(Hr||(Hr=me),Et.size!=Ut.size&&!cn)return!1;var wr=vr.get(Et);if(wr)return wr==Ut;je|=u,vr.set(Et,Ut);var Lr=Ka(Hr(Et),Hr(Ut),je,Ar,er,vr);return vr.delete(Et),Lr;case N:if(de)return de.call(Et)==de.call(Ut)}return!1}function Dc(Et,Ut,se,je,Ar,er){var vr=se&l,Hr=Fn(Et),cn=Hr.length;if(cn!=Fn(Ut).length&&!vr)return!1;for(var wr=cn;wr--;){var Lr=Hr[wr];if(!(vr?Lr in Ut:vt.call(Ut,Lr)))return!1}var un=er.get(Et);if(un&&er.get(Ut))return un==Ut;var Nr=!0;er.set(Et,Ut),er.set(Ut,Et);for(var vn=vr;++wr<cn;){var Zn=Et[Lr=Hr[wr]],Cn=Ut[Lr];if(je)var $t=vr?je(Cn,Zn,Lr,Ut,Et,er):je(Zn,Cn,Lr,Et,Ut,er);if(!($t===void 0?Zn===Cn||Ar(Zn,Cn,se,je,er):$t)){Nr=!1;break}vn||(vn=Lr=="constructor")}if(Nr&&!vn){var Qt=Et.constructor,ee=Ut.constructor;Qt==ee||!("constructor"in Et)||!("constructor"in Ut)||typeof Qt=="function"&&Qt instanceof Qt&&typeof ee=="function"&&ee instanceof ee||(Nr=!1)}return er.delete(Et),er.delete(Ut),Nr}function Fn(Et){return $i(Et,Qa,ba)}function va(Et,Ut){var se=Et.__data__;return Ki(Ut)?se[typeof Ut=="string"?"string":"hash"]:se.map}function co(Et,Ut){var se=It(Et,Ut);return Gi(se)?se:void 0}function Yi(Et){var Ut=vt.call(Et,Rt),se=Et[Rt];try{Et[Rt]=void 0;var je=!0}catch(er){}var Ar=ht.call(Et);return je&&(Ut?Et[Rt]=se:delete Et[Rt]),Ar}ge.prototype.clear=Fe,ge.prototype.delete=re,ge.prototype.get=Ae,ge.prototype.has=De,ge.prototype.set=Ue,Sr.prototype.clear=ir,Sr.prototype.delete=$e,Sr.prototype.get=ii,Sr.prototype.has=oi,Sr.prototype.set=Zr,Br.prototype.clear=On,Br.prototype.delete=Dn,Br.prototype.get=Xn,Br.prototype.has=ai,Br.prototype.set=Oe,kt.prototype.add=kt.prototype.push=Dt,kt.prototype.has=Nt,ye.prototype.clear=Le,ye.prototype.delete=gr,ye.prototype.get=Kr,ye.prototype.has=sn,ye.prototype.set=Ur;var ba=mt?function(Et){return Et==null?[]:(Et=Object(Et),Mt(mt(Et),function(Ut){return Pt.call(Et,Ut)}))}:Rn,gi=si;function Dr(Et,Ut){return!!(Ut=Ut==null?y:Ut)&&(typeof Et=="number"||et.test(Et))&&Et>-1&&Et%1==0&&Et<Ut}function Ki(Et){var Ut=i(Et);return Ut=="string"||Ut=="number"||Ut=="symbol"||Ut=="boolean"?Et!=="__proto__":Et===null}function Xa(Et){return!!Y&&Y in Et}function Nc(Et){var Ut=Et&&Et.constructor;return Et===(typeof Ut=="function"&&Ut.prototype||ct)}function ga(Et){return ht.call(Et)}function uo(Et){if(Et!=null){try{return _t.call(Et)}catch(Ut){}try{return Et+""}catch(Ut){}}return""}function Za(Et,Ut){return Et===Ut||Et!=Et&&Ut!=Ut}(Ot&&gi(new Ot(new ArrayBuffer(1)))!=x||qt&&gi(new qt)!=a||Lt&&gi(Lt.resolve())!=k||Ht&&gi(new Ht)!=j||le&&gi(new le)!=T)&&(gi=function(Et){var Ut=si(Et),se=Ut==w?Et.constructor:void 0,je=se?uo(se):"";if(je)switch(je){case Zt:return x;case ae:return a;case he:return k;case Wt:return j;case pe:return T}return Ut});var fo=en(function(){return arguments}())?en:function(Et){return ho(Et)&&vt.call(Et,"callee")&&!Pt.call(Et,"callee")},Mi=Array.isArray;function Co(Et){return Et!=null&&lo(Et.length)&&!$o(Et)}var ci=dt||ts;function Ns(Et,Ut){return Oo(Et,Ut)}function $o(Et){if(!Ja(Et))return!1;var Ut=si(Et);return Ut==o||Ut==h||Ut==b||Ut==S}function lo(Et){return typeof Et=="number"&&Et>-1&&Et%1==0&&Et<=y}function Ja(Et){var Ut=i(Et);return Et!=null&&(Ut=="object"||Ut=="function")}function ho(Et){return Et!=null&&i(Et)=="object"}var wa=ut?J(ut):Ro;function Qa(Et){return Co(Et)?Pi(Et):Ds(Et)}function Rn(){return[]}function ts(){return!1}r.exports=Ns}).call(this,dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],430:[function(t,r,e){(function(n){function i(A){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j})(A)}var c="[object AsyncFunction]",f="[object Function]",l="[object GeneratorFunction]",u="[object Null]",y="[object Proxy]",p="[object Undefined]",m=(n===void 0?"undefined":i(n))=="object"&&n&&n.Object===Object&&n,b=(typeof self=="undefined"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,v=m||b||Function("return this")(),_=Object.prototype,s=_.hasOwnProperty,o=_.toString,h=v.Symbol,a=h?h.toStringTag:void 0;function d(A){return A==null?A===void 0?p:u:a&&a in Object(A)?g(A):w(A)}function g(A){var j=s.call(A,a),D=A[a];try{A[a]=void 0;var N=!0}catch(T){}var F=o.call(A);return N&&(j?A[a]=D:delete A[a]),F}function w(A){return o.call(A)}function k(A){if(!S(A))return!1;var j=d(A);return j==f||j==l||j==c||j==y}function S(A){var j=i(A);return A!=null&&(j=="object"||j=="function")}r.exports=k}).call(this,dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],431:[function(t,r,e){function n(i){return i==null}r.exports=n},{}],432:[function(t,r,e){function n(i){return i===void 0}r.exports=n},{}],433:[function(t,r,e){(function(n){function i(it){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q})(it)}var c=200,f="__lodash_hash_undefined__",l=1/0,u="[object Function]",y="[object GeneratorFunction]",p=/[\\^$.*+?()[\]{}|]/g,m=/^\[object .+?Constructor\]$/,b=(n===void 0?"undefined":i(n))=="object"&&n&&n.Object===Object&&n,v=(typeof self=="undefined"?"undefined":i(self))=="object"&&self&&self.Object===Object&&self,_=b||v||Function("return this")();function s(it,q){return!(!it||!it.length)&&a(it,q,0)>-1}function o(it,q,wt){for(var Pt=-1,V=it?it.length:0;++Pt<V;)if(wt(q,it[Pt]))return!0;return!1}function h(it,q,wt,Pt){for(var V=it.length,Rt=wt+(Pt?1:-1);Pt?Rt--:++Rt<V;)if(q(it[Rt],Rt,it))return Rt;return-1}function a(it,q,wt){if(q!=q)return h(it,d,wt);for(var Pt=wt-1,V=it.length;++Pt<V;)if(it[Pt]===q)return Pt;return-1}function d(it){return it!=it}function g(it,q){return it.has(q)}function w(it,q){return it==null?void 0:it[q]}function k(it){var q=!1;if(it!=null&&typeof it.toString!="function")try{q=!!(it+"")}catch(wt){}return q}function S(it){var q=-1,wt=Array(it.size);return it.forEach(function(Pt){wt[++q]=Pt}),wt}var A,j=Array.prototype,D=Function.prototype,N=Object.prototype,F=_["__core-js_shared__"],T=(A=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(src)_1."+A:"",I=D.toString,x=N.hasOwnProperty,O=N.toString,R=RegExp("^"+I.call(x).replace(p,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),C=j.splice,P=Kt(_,"Map"),L=Kt(_,"Set"),H=Kt(Object,"create");function U(it){var q=-1,wt=it?it.length:0;for(this.clear();++q<wt;){var Pt=it[q];this.set(Pt[0],Pt[1])}}function B(){this.__data__=H?H(null):{}}function W(it){return this.has(it)&&delete this.__data__[it]}function X(it){var q=this.__data__;if(H){var wt=q[it];return wt===f?void 0:wt}return x.call(q,it)?q[it]:void 0}function et(it){var q=this.__data__;return H?q[it]!==void 0:x.call(q,it)}function ft(it,q){return this.__data__[it]=H&&q===void 0?f:q,this}function gt(it){var q=-1,wt=it?it.length:0;for(this.clear();++q<wt;){var Pt=it[q];this.set(Pt[0],Pt[1])}}function bt(){this.__data__=[]}function rt(it){var q=this.__data__,wt=It(q,it);return!(wt<0||(wt==q.length-1?q.pop():C.call(q,wt,1),0))}function Q(it){var q=this.__data__,wt=It(q,it);return wt<0?void 0:q[wt][1]}function K(it){return It(this.__data__,it)>-1}function nt(it,q){var wt=this.__data__,Pt=It(wt,it);return Pt<0?wt.push([it,q]):wt[Pt][1]=q,this}function At(it){var q=-1,wt=it?it.length:0;for(this.clear();++q<wt;){var Pt=it[q];this.set(Pt[0],Pt[1])}}function ot(){this.__data__={hash:new U,map:new(P||gt),string:new U}}function ut(it){return fe(this,it).delete(it)}function Mt(it){return fe(this,it).get(it)}function Bt(it){return fe(this,it).has(it)}function G(it,q){return fe(this,it).set(it,q),this}function Z(it){var q=-1,wt=it?it.length:0;for(this.__data__=new At;++q<wt;)this.add(it[q])}function J(it){return this.__data__.set(it,f),this}function St(it){return this.__data__.has(it)}function It(it,q){for(var wt=it.length;wt--;)if(vt(it[wt][0],q))return wt;return-1}function Ft(it){return!(!ht(it)||ct(it))&&(Y(it)||k(it)?R:m).test(pt(it))}function Xt(it,q,wt){var Pt=-1,V=s,Rt=it.length,mt=!0,dt=[],Tt=dt;if(wt)mt=!1,V=o;else if(Rt>=c){var Ot=q?null:me(it);if(Ot)return S(Ot);mt=!1,V=g,Tt=new Z}else Tt=q?[]:dt;t:for(;++Pt<Rt;){var qt=it[Pt],Lt=q?q(qt):qt;if(qt=wt||qt!==0?qt:0,mt&&Lt==Lt){for(var Ht=Tt.length;Ht--;)if(Tt[Ht]===Lt)continue t;q&&Tt.push(Lt),dt.push(qt)}else V(Tt,Lt,wt)||(Tt!==dt&&Tt.push(Lt),dt.push(qt))}return dt}U.prototype.clear=B,U.prototype.delete=W,U.prototype.get=X,U.prototype.has=et,U.prototype.set=ft,gt.prototype.clear=bt,gt.prototype.delete=rt,gt.prototype.get=Q,gt.prototype.has=K,gt.prototype.set=nt,At.prototype.clear=ot,At.prototype.delete=ut,At.prototype.get=Mt,At.prototype.has=Bt,At.prototype.set=G,Z.prototype.add=Z.prototype.push=J,Z.prototype.has=St;var me=L&&1/S(new L([,-0]))[1]==l?function(it){return new L(it)}:at;function fe(it,q){var wt=it.__data__;return ie(q)?wt[typeof q=="string"?"string":"hash"]:wt.map}function Kt(it,q){var wt=w(it,q);return Ft(wt)?wt:void 0}function ie(it){var q=i(it);return q=="string"||q=="number"||q=="symbol"||q=="boolean"?it!=="__proto__":it===null}function ct(it){return!!T&&T in it}function pt(it){if(it!=null){try{return I.call(it)}catch(q){}try{return it+""}catch(q){}}return""}function _t(it){return it&&it.length?Xt(it):[]}function vt(it,q){return it===q||it!=it&&q!=q}function Y(it){var q=ht(it)?O.call(it):"";return q==u||q==y}function ht(it){var q=i(it);return!!it&&(q=="object"||q=="function")}function at(){}r.exports=_t}).call(this,dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],434:[function(t,r,e){var n=t("inherits"),i=t("hash-base"),c=t("safe-buffer").Buffer,f=new Array(16);function l(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(v,_){return v<<_|v>>>32-_}function y(v,_,s,o,h,a,d){return u(v+(_&s|~_&o)+h+a|0,d)+_|0}function p(v,_,s,o,h,a,d){return u(v+(_&o|s&~o)+h+a|0,d)+_|0}function m(v,_,s,o,h,a,d){return u(v+(_^s^o)+h+a|0,d)+_|0}function b(v,_,s,o,h,a,d){return u(v+(s^(_|~o))+h+a|0,d)+_|0}n(l,i),l.prototype._update=function(){for(var v=f,_=0;_<16;++_)v[_]=this._block.readInt32LE(4*_);var s=this._a,o=this._b,h=this._c,a=this._d;s=y(s,o,h,a,v[0],3614090360,7),a=y(a,s,o,h,v[1],3905402710,12),h=y(h,a,s,o,v[2],606105819,17),o=y(o,h,a,s,v[3],3250441966,22),s=y(s,o,h,a,v[4],4118548399,7),a=y(a,s,o,h,v[5],1200080426,12),h=y(h,a,s,o,v[6],2821735955,17),o=y(o,h,a,s,v[7],4249261313,22),s=y(s,o,h,a,v[8],1770035416,7),a=y(a,s,o,h,v[9],2336552879,12),h=y(h,a,s,o,v[10],4294925233,17),o=y(o,h,a,s,v[11],2304563134,22),s=y(s,o,h,a,v[12],1804603682,7),a=y(a,s,o,h,v[13],4254626195,12),h=y(h,a,s,o,v[14],2792965006,17),s=p(s,o=y(o,h,a,s,v[15],1236535329,22),h,a,v[1],4129170786,5),a=p(a,s,o,h,v[6],3225465664,9),h=p(h,a,s,o,v[11],643717713,14),o=p(o,h,a,s,v[0],3921069994,20),s=p(s,o,h,a,v[5],3593408605,5),a=p(a,s,o,h,v[10],38016083,9),h=p(h,a,s,o,v[15],3634488961,14),o=p(o,h,a,s,v[4],3889429448,20),s=p(s,o,h,a,v[9],568446438,5),a=p(a,s,o,h,v[14],3275163606,9),h=p(h,a,s,o,v[3],4107603335,14),o=p(o,h,a,s,v[8],1163531501,20),s=p(s,o,h,a,v[13],2850285829,5),a=p(a,s,o,h,v[2],4243563512,9),h=p(h,a,s,o,v[7],1735328473,14),s=m(s,o=p(o,h,a,s,v[12],2368359562,20),h,a,v[5],4294588738,4),a=m(a,s,o,h,v[8],2272392833,11),h=m(h,a,s,o,v[11],1839030562,16),o=m(o,h,a,s,v[14],4259657740,23),s=m(s,o,h,a,v[1],2763975236,4),a=m(a,s,o,h,v[4],1272893353,11),h=m(h,a,s,o,v[7],4139469664,16),o=m(o,h,a,s,v[10],3200236656,23),s=m(s,o,h,a,v[13],681279174,4),a=m(a,s,o,h,v[0],3936430074,11),h=m(h,a,s,o,v[3],3572445317,16),o=m(o,h,a,s,v[6],76029189,23),s=m(s,o,h,a,v[9],3654602809,4),a=m(a,s,o,h,v[12],3873151461,11),h=m(h,a,s,o,v[15],530742520,16),s=b(s,o=m(o,h,a,s,v[2],3299628645,23),h,a,v[0],4096336452,6),a=b(a,s,o,h,v[7],1126891415,10),h=b(h,a,s,o,v[14],2878612391,15),o=b(o,h,a,s,v[5],4237533241,21),s=b(s,o,h,a,v[12],1700485571,6),a=b(a,s,o,h,v[3],2399980690,10),h=b(h,a,s,o,v[10],4293915773,15),o=b(o,h,a,s,v[1],2240044497,21),s=b(s,o,h,a,v[8],1873313359,6),a=b(a,s,o,h,v[15],4264355552,10),h=b(h,a,s,o,v[6],2734768916,15),o=b(o,h,a,s,v[13],1309151649,21),s=b(s,o,h,a,v[4],4149444226,6),a=b(a,s,o,h,v[11],3174756917,10),h=b(h,a,s,o,v[2],718787259,15),o=b(o,h,a,s,v[9],3951481745,21),this._a=this._a+s|0,this._b=this._b+o|0,this._c=this._c+h|0,this._d=this._d+a|0},l.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var v=c.allocUnsafe(16);return v.writeInt32LE(this._a,0),v.writeInt32LE(this._b,4),v.writeInt32LE(this._c,8),v.writeInt32LE(this._d,12),v},r.exports=l},{"hash-base":370,inherits:387,"safe-buffer":494}],435:[function(t,r,e){var n=t("bn.js"),i=t("brorand");function c(f){this.rand=f||new i.Rand}r.exports=c,c.create=function(f){return new c(f)},c.prototype._randbelow=function(f){var l=f.bitLength(),u=Math.ceil(l/8);do var y=new n(this.rand.generate(u));while(y.cmp(f)>=0);return y},c.prototype._randrange=function(f,l){var u=l.sub(f);return f.add(this._randbelow(u))},c.prototype.test=function(f,l,u){var y=f.bitLength(),p=n.mont(f),m=new n(1).toRed(p);l||(l=Math.max(1,y/48|0));for(var b=f.subn(1),v=0;!b.testn(v);v++);for(var _=f.shrn(v),s=b.toRed(p),o=!0;l>0;l--){var h=this._randrange(new n(2),b);u&&u(h);var a=h.toRed(p).redPow(_);if(a.cmp(m)!==0&&a.cmp(s)!==0){for(var d=1;d<v;d++){if((a=a.redSqr()).cmp(m)===0)return!1;if(a.cmp(s)===0)break}if(d===v)return!1}}return o},c.prototype.getDivisor=function(f,l){var u=f.bitLength(),y=n.mont(f),p=new n(1).toRed(y);l||(l=Math.max(1,u/48|0));for(var m=f.subn(1),b=0;!m.testn(b);b++);for(var v=f.shrn(b),_=m.toRed(y);l>0;l--){var s=this._randrange(new n(2),m),o=f.gcd(s);if(o.cmpn(1)!==0)return o;var h=s.toRed(y).redPow(v);if(h.cmp(p)!==0&&h.cmp(_)!==0){for(var a=1;a<b;a++){if((h=h.redSqr()).cmp(p)===0)return h.fromRed().subn(1).gcd(f);if(h.cmp(_)===0)break}if(a===b)return(h=h.redSqr()).fromRed().subn(1).gcd(f)}}return!1}},{"bn.js":436,brorand:184}],436:[function(t,r,e){arguments[4][181][0].apply(e,arguments)},{buffer:185,dup:181}],437:[function(t,r,e){function n(i,c){if(!i)throw new Error(c||"Assertion failed")}r.exports=n,n.equal=function(i,c,f){if(i!=c)throw new Error(f||"Assertion failed: "+i+" != "+c)}},{}],438:[function(t,r,e){var n=e;function i(l,u){if(Array.isArray(l))return l.slice();if(!l)return[];var y=[];if(typeof l!="string"){for(var p=0;p<l.length;p++)y[p]=0|l[p];return y}if(u==="hex")for((l=l.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(l="0"+l),p=0;p<l.length;p+=2)y.push(parseInt(l[p]+l[p+1],16));else for(p=0;p<l.length;p++){var m=l.charCodeAt(p),b=m>>8,v=255&m;b?y.push(b,v):y.push(v)}return y}function c(l){return l.length===1?"0"+l:l}function f(l){for(var u="",y=0;y<l.length;y++)u+=c(l[y].toString(16));return u}n.toArray=i,n.zero2=c,n.toHex=f,n.encode=function(l,u){return u==="hex"?f(l):l}},{}],439:[function(t,r,e){var n={};(0,t("./lib/utils/common").assign)(n,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),r.exports=n},{"./lib/deflate":440,"./lib/inflate":441,"./lib/utils/common":442,"./lib/zlib/constants":445}],440:[function(t,r,e){var n=t("./zlib/deflate"),i=t("./utils/common"),c=t("./utils/strings"),f=t("./zlib/messages"),l=t("./zlib/zstream"),u=Object.prototype.toString,y=0,p=4,m=0,b=1,v=2,_=-1,s=0,o=8;function h(w){if(!(this instanceof h))return new h(w);this.options=i.assign({level:_,method:o,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},w||{});var k=this.options;k.raw&&k.windowBits>0?k.windowBits=-k.windowBits:k.gzip&&k.windowBits>0&&k.windowBits<16&&(k.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var S=n.deflateInit2(this.strm,k.level,k.method,k.windowBits,k.memLevel,k.strategy);if(S!==m)throw new Error(f[S]);if(k.header&&n.deflateSetHeader(this.strm,k.header),k.dictionary){var A;if(A=typeof k.dictionary=="string"?c.string2buf(k.dictionary):u.call(k.dictionary)==="[object ArrayBuffer]"?new Uint8Array(k.dictionary):k.dictionary,(S=n.deflateSetDictionary(this.strm,A))!==m)throw new Error(f[S]);this._dict_set=!0}}function a(w,k){var S=new h(k);if(S.push(w,!0),S.err)throw S.msg||f[S.err];return S.result}function d(w,k){return(k=k||{}).raw=!0,a(w,k)}function g(w,k){return(k=k||{}).gzip=!0,a(w,k)}h.prototype.push=function(w,k){var S,A,j=this.strm,D=this.options.chunkSize;if(this.ended)return!1;A=k===~~k?k:k===!0?p:y,typeof w=="string"?j.input=c.string2buf(w):u.call(w)==="[object ArrayBuffer]"?j.input=new Uint8Array(w):j.input=w,j.next_in=0,j.avail_in=j.input.length;do{if(j.avail_out===0&&(j.output=new i.Buf8(D),j.next_out=0,j.avail_out=D),(S=n.deflate(j,A))!==b&&S!==m)return this.onEnd(S),this.ended=!0,!1;j.avail_out!==0&&(j.avail_in!==0||A!==p&&A!==v)||(this.options.to==="string"?this.onData(c.buf2binstring(i.shrinkBuf(j.output,j.next_out))):this.onData(i.shrinkBuf(j.output,j.next_out)))}while((j.avail_in>0||j.avail_out===0)&&S!==b);return A===p?(S=n.deflateEnd(this.strm),this.onEnd(S),this.ended=!0,S===m):A!==v||(this.onEnd(m),j.avail_out=0,!0)},h.prototype.onData=function(w){this.chunks.push(w)},h.prototype.onEnd=function(w){w===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=w,this.msg=this.strm.msg},e.Deflate=h,e.deflate=a,e.deflateRaw=d,e.gzip=g},{"./utils/common":442,"./utils/strings":443,"./zlib/deflate":447,"./zlib/messages":452,"./zlib/zstream":454}],441:[function(t,r,e){var n=t("./zlib/inflate"),i=t("./utils/common"),c=t("./utils/strings"),f=t("./zlib/constants"),l=t("./zlib/messages"),u=t("./zlib/zstream"),y=t("./zlib/gzheader"),p=Object.prototype.toString;function m(_){if(!(this instanceof m))return new m(_);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},_||{});var s=this.options;s.raw&&s.windowBits>=0&&s.windowBits<16&&(s.windowBits=-s.windowBits,s.windowBits===0&&(s.windowBits=-15)),!(s.windowBits>=0&&s.windowBits<16)||_&&_.windowBits||(s.windowBits+=32),s.windowBits>15&&s.windowBits<48&&!(15&s.windowBits)&&(s.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var o=n.inflateInit2(this.strm,s.windowBits);if(o!==f.Z_OK)throw new Error(l[o]);if(this.header=new y,n.inflateGetHeader(this.strm,this.header),s.dictionary&&(typeof s.dictionary=="string"?s.dictionary=c.string2buf(s.dictionary):p.call(s.dictionary)==="[object ArrayBuffer]"&&(s.dictionary=new Uint8Array(s.dictionary)),s.raw&&(o=n.inflateSetDictionary(this.strm,s.dictionary))!==f.Z_OK))throw new Error(l[o])}function b(_,s){var o=new m(s);if(o.push(_,!0),o.err)throw o.msg||l[o.err];return o.result}function v(_,s){return(s=s||{}).raw=!0,b(_,s)}m.prototype.push=function(_,s){var o,h,a,d,g,w=this.strm,k=this.options.chunkSize,S=this.options.dictionary,A=!1;if(this.ended)return!1;h=s===~~s?s:s===!0?f.Z_FINISH:f.Z_NO_FLUSH,typeof _=="string"?w.input=c.binstring2buf(_):p.call(_)==="[object ArrayBuffer]"?w.input=new Uint8Array(_):w.input=_,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new i.Buf8(k),w.next_out=0,w.avail_out=k),(o=n.inflate(w,f.Z_NO_FLUSH))===f.Z_NEED_DICT&&S&&(o=n.inflateSetDictionary(this.strm,S)),o===f.Z_BUF_ERROR&&A===!0&&(o=f.Z_OK,A=!1),o!==f.Z_STREAM_END&&o!==f.Z_OK)return this.onEnd(o),this.ended=!0,!1;w.next_out&&(w.avail_out!==0&&o!==f.Z_STREAM_END&&(w.avail_in!==0||h!==f.Z_FINISH&&h!==f.Z_SYNC_FLUSH)||(this.options.to==="string"?(a=c.utf8border(w.output,w.next_out),d=w.next_out-a,g=c.buf2string(w.output,a),w.next_out=d,w.avail_out=k-d,d&&i.arraySet(w.output,w.output,a,d,0),this.onData(g)):this.onData(i.shrinkBuf(w.output,w.next_out)))),w.avail_in===0&&w.avail_out===0&&(A=!0)}while((w.avail_in>0||w.avail_out===0)&&o!==f.Z_STREAM_END);return o===f.Z_STREAM_END&&(h=f.Z_FINISH),h===f.Z_FINISH?(o=n.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===f.Z_OK):h!==f.Z_SYNC_FLUSH||(this.onEnd(f.Z_OK),w.avail_out=0,!0)},m.prototype.onData=function(_){this.chunks.push(_)},m.prototype.onEnd=function(_){_===f.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=_,this.msg=this.strm.msg},e.Inflate=m,e.inflate=b,e.inflateRaw=v,e.ungzip=b},{"./utils/common":442,"./utils/strings":443,"./zlib/constants":445,"./zlib/gzheader":448,"./zlib/inflate":450,"./zlib/messages":452,"./zlib/zstream":454}],442:[function(t,r,e){function n(u){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(u)}var i=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function c(u,y){return Object.prototype.hasOwnProperty.call(u,y)}e.assign=function(u){for(var y=Array.prototype.slice.call(arguments,1);y.length;){var p=y.shift();if(p){if(n(p)!=="object")throw new TypeError(p+"must be non-object");for(var m in p)c(p,m)&&(u[m]=p[m])}}return u},e.shrinkBuf=function(u,y){return u.length===y?u:u.subarray?u.subarray(0,y):(u.length=y,u)};var f={arraySet:function(u,y,p,m,b){if(y.subarray&&u.subarray)u.set(y.subarray(p,p+m),b);else for(var v=0;v<m;v++)u[b+v]=y[p+v]},flattenChunks:function(u){var y,p,m,b,v,_;for(m=0,y=0,p=u.length;y<p;y++)m+=u[y].length;for(_=new Uint8Array(m),b=0,y=0,p=u.length;y<p;y++)v=u[y],_.set(v,b),b+=v.length;return _}},l={arraySet:function(u,y,p,m,b){for(var v=0;v<m;v++)u[b+v]=y[p+v]},flattenChunks:function(u){return[].concat.apply([],u)}};e.setTyped=function(u){u?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,f)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,l))},e.setTyped(i)},{}],443:[function(t,r,e){var n=t("./common"),i=!0,c=!0;try{String.fromCharCode.apply(null,[0])}catch(y){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(y){c=!1}for(var f=new n.Buf8(256),l=0;l<256;l++)f[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;function u(y,p){if(p<65534&&(y.subarray&&c||!y.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(y,p));for(var m="",b=0;b<p;b++)m+=String.fromCharCode(y[b]);return m}f[254]=f[254]=1,e.string2buf=function(y){var p,m,b,v,_,s=y.length,o=0;for(v=0;v<s;v++)(64512&(m=y.charCodeAt(v)))==55296&&v+1<s&&(64512&(b=y.charCodeAt(v+1)))==56320&&(m=65536+(m-55296<<10)+(b-56320),v++),o+=m<128?1:m<2048?2:m<65536?3:4;for(p=new n.Buf8(o),_=0,v=0;_<o;v++)(64512&(m=y.charCodeAt(v)))==55296&&v+1<s&&(64512&(b=y.charCodeAt(v+1)))==56320&&(m=65536+(m-55296<<10)+(b-56320),v++),m<128?p[_++]=m:m<2048?(p[_++]=192|m>>>6,p[_++]=128|63&m):m<65536?(p[_++]=224|m>>>12,p[_++]=128|m>>>6&63,p[_++]=128|63&m):(p[_++]=240|m>>>18,p[_++]=128|m>>>12&63,p[_++]=128|m>>>6&63,p[_++]=128|63&m);return p},e.buf2binstring=function(y){return u(y,y.length)},e.binstring2buf=function(y){for(var p=new n.Buf8(y.length),m=0,b=p.length;m<b;m++)p[m]=y.charCodeAt(m);return p},e.buf2string=function(y,p){var m,b,v,_,s=p||y.length,o=new Array(2*s);for(b=0,m=0;m<s;)if((v=y[m++])<128)o[b++]=v;else if((_=f[v])>4)o[b++]=65533,m+=_-1;else{for(v&=_===2?31:_===3?15:7;_>1&&m<s;)v=v<<6|63&y[m++],_--;_>1?o[b++]=65533:v<65536?o[b++]=v:(v-=65536,o[b++]=55296|v>>10&1023,o[b++]=56320|1023&v)}return u(o,b)},e.utf8border=function(y,p){var m;for((p=p||y.length)>y.length&&(p=y.length),m=p-1;m>=0&&(192&y[m])==128;)m--;return m<0||m===0?p:m+f[y[m]]>p?m:p}},{"./common":442}],444:[function(t,r,e){function n(i,c,f,l){for(var u=65535&i|0,y=i>>>16&65535|0,p=0;f!==0;){f-=p=f>2e3?2e3:f;do y=y+(u=u+c[l++]|0)|0;while(--p);u%=65521,y%=65521}return u|y<<16|0}r.exports=n},{}],445:[function(t,r,e){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],446:[function(t,r,e){function n(){for(var f,l=[],u=0;u<256;u++){f=u;for(var y=0;y<8;y++)f=1&f?3988292384^f>>>1:f>>>1;l[u]=f}return l}var i=n();function c(f,l,u,y){var p=i,m=y+u;f^=-1;for(var b=y;b<m;b++)f=f>>>8^p[255&(f^l[b])];return-1^f}r.exports=c},{}],447:[function(t,r,e){var n,i=t("../utils/common"),c=t("./trees"),f=t("./adler32"),l=t("./crc32"),u=t("./messages"),y=0,p=1,m=3,b=4,v=5,_=0,s=1,o=-2,h=-3,a=-5,d=-1,g=1,w=2,k=3,S=4,A=0,j=2,D=8,N=9,F=15,T=8,I=286,x=30,O=19,R=2*I+1,C=15,P=3,L=258,H=L+P+1,U=32,B=42,W=69,X=73,et=91,ft=103,gt=113,bt=666,rt=1,Q=2,K=3,nt=4,At=3;function ot(V,Rt){return V.msg=u[Rt],Rt}function ut(V){return(V<<1)-(V>4?9:0)}function Mt(V){for(var Rt=V.length;--Rt>=0;)V[Rt]=0}function Bt(V){var Rt=V.state,mt=Rt.pending;mt>V.avail_out&&(mt=V.avail_out),mt!==0&&(i.arraySet(V.output,Rt.pending_buf,Rt.pending_out,mt,V.next_out),V.next_out+=mt,Rt.pending_out+=mt,V.total_out+=mt,V.avail_out-=mt,Rt.pending-=mt,Rt.pending===0&&(Rt.pending_out=0))}function G(V,Rt){c._tr_flush_block(V,V.block_start>=0?V.block_start:-1,V.strstart-V.block_start,Rt),V.block_start=V.strstart,Bt(V.strm)}function Z(V,Rt){V.pending_buf[V.pending++]=Rt}function J(V,Rt){V.pending_buf[V.pending++]=Rt>>>8&255,V.pending_buf[V.pending++]=255&Rt}function St(V,Rt,mt,dt){var Tt=V.avail_in;return Tt>dt&&(Tt=dt),Tt===0?0:(V.avail_in-=Tt,i.arraySet(Rt,V.input,V.next_in,Tt,mt),V.state.wrap===1?V.adler=f(V.adler,Rt,Tt,mt):V.state.wrap===2&&(V.adler=l(V.adler,Rt,Tt,mt)),V.next_in+=Tt,V.total_in+=Tt,Tt)}function It(V,Rt){var mt,dt,Tt=V.max_chain_length,Ot=V.strstart,qt=V.prev_length,Lt=V.nice_match,Ht=V.strstart>V.w_size-H?V.strstart-(V.w_size-H):0,le=V.window,Ce=V.w_mask,Zt=V.prev,ae=V.strstart+L,he=le[Ot+qt-1],Wt=le[Ot+qt];V.prev_length>=V.good_match&&(Tt>>=2),Lt>V.lookahead&&(Lt=V.lookahead);do if(le[(mt=Rt)+qt]===Wt&&le[mt+qt-1]===he&&le[mt]===le[Ot]&&le[++mt]===le[Ot+1]){Ot+=2,mt++;do;while(le[++Ot]===le[++mt]&&le[++Ot]===le[++mt]&&le[++Ot]===le[++mt]&&le[++Ot]===le[++mt]&&le[++Ot]===le[++mt]&&le[++Ot]===le[++mt]&&le[++Ot]===le[++mt]&&le[++Ot]===le[++mt]&&Ot<ae);if(dt=L-(ae-Ot),Ot=ae-L,dt>qt){if(V.match_start=Rt,qt=dt,dt>=Lt)break;he=le[Ot+qt-1],Wt=le[Ot+qt]}}while((Rt=Zt[Rt&Ce])>Ht&&--Tt!=0);return qt<=V.lookahead?qt:V.lookahead}function Ft(V){var Rt,mt,dt,Tt,Ot,qt=V.w_size;do{if(Tt=V.window_size-V.lookahead-V.strstart,V.strstart>=qt+(qt-H)){i.arraySet(V.window,V.window,qt,qt,0),V.match_start-=qt,V.strstart-=qt,V.block_start-=qt,Rt=mt=V.hash_size;do dt=V.head[--Rt],V.head[Rt]=dt>=qt?dt-qt:0;while(--mt);Rt=mt=qt;do dt=V.prev[--Rt],V.prev[Rt]=dt>=qt?dt-qt:0;while(--mt);Tt+=qt}if(V.strm.avail_in===0)break;if(mt=St(V.strm,V.window,V.strstart+V.lookahead,Tt),V.lookahead+=mt,V.lookahead+V.insert>=P)for(Ot=V.strstart-V.insert,V.ins_h=V.window[Ot],V.ins_h=(V.ins_h<<V.hash_shift^V.window[Ot+1])&V.hash_mask;V.insert&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[Ot+P-1])&V.hash_mask,V.prev[Ot&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=Ot,Ot++,V.insert--,!(V.lookahead+V.insert<P)););}while(V.lookahead<H&&V.strm.avail_in!==0)}function Xt(V,Rt){var mt=65535;for(mt>V.pending_buf_size-5&&(mt=V.pending_buf_size-5);;){if(V.lookahead<=1){if(Ft(V),V.lookahead===0&&Rt===y)return rt;if(V.lookahead===0)break}V.strstart+=V.lookahead,V.lookahead=0;var dt=V.block_start+mt;if((V.strstart===0||V.strstart>=dt)&&(V.lookahead=V.strstart-dt,V.strstart=dt,G(V,!1),V.strm.avail_out===0)||V.strstart-V.block_start>=V.w_size-H&&(G(V,!1),V.strm.avail_out===0))return rt}return V.insert=0,Rt===b?(G(V,!0),V.strm.avail_out===0?K:nt):(V.strstart>V.block_start&&(G(V,!1),V.strm.avail_out),rt)}function me(V,Rt){for(var mt,dt;;){if(V.lookahead<H){if(Ft(V),V.lookahead<H&&Rt===y)return rt;if(V.lookahead===0)break}if(mt=0,V.lookahead>=P&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+P-1])&V.hash_mask,mt=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),mt!==0&&V.strstart-mt<=V.w_size-H&&(V.match_length=It(V,mt)),V.match_length>=P)if(dt=c._tr_tally(V,V.strstart-V.match_start,V.match_length-P),V.lookahead-=V.match_length,V.match_length<=V.max_lazy_match&&V.lookahead>=P){V.match_length--;do V.strstart++,V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+P-1])&V.hash_mask,mt=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart;while(--V.match_length!=0);V.strstart++}else V.strstart+=V.match_length,V.match_length=0,V.ins_h=V.window[V.strstart],V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+1])&V.hash_mask;else dt=c._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++;if(dt&&(G(V,!1),V.strm.avail_out===0))return rt}return V.insert=V.strstart<P-1?V.strstart:P-1,Rt===b?(G(V,!0),V.strm.avail_out===0?K:nt):V.last_lit&&(G(V,!1),V.strm.avail_out===0)?rt:Q}function fe(V,Rt){for(var mt,dt,Tt;;){if(V.lookahead<H){if(Ft(V),V.lookahead<H&&Rt===y)return rt;if(V.lookahead===0)break}if(mt=0,V.lookahead>=P&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+P-1])&V.hash_mask,mt=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),V.prev_length=V.match_length,V.prev_match=V.match_start,V.match_length=P-1,mt!==0&&V.prev_length<V.max_lazy_match&&V.strstart-mt<=V.w_size-H&&(V.match_length=It(V,mt),V.match_length<=5&&(V.strategy===g||V.match_length===P&&V.strstart-V.match_start>4096)&&(V.match_length=P-1)),V.prev_length>=P&&V.match_length<=V.prev_length){Tt=V.strstart+V.lookahead-P,dt=c._tr_tally(V,V.strstart-1-V.prev_match,V.prev_length-P),V.lookahead-=V.prev_length-1,V.prev_length-=2;do++V.strstart<=Tt&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+P-1])&V.hash_mask,mt=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart);while(--V.prev_length!=0);if(V.match_available=0,V.match_length=P-1,V.strstart++,dt&&(G(V,!1),V.strm.avail_out===0))return rt}else if(V.match_available){if((dt=c._tr_tally(V,0,V.window[V.strstart-1]))&&G(V,!1),V.strstart++,V.lookahead--,V.strm.avail_out===0)return rt}else V.match_available=1,V.strstart++,V.lookahead--}return V.match_available&&(dt=c._tr_tally(V,0,V.window[V.strstart-1]),V.match_available=0),V.insert=V.strstart<P-1?V.strstart:P-1,Rt===b?(G(V,!0),V.strm.avail_out===0?K:nt):V.last_lit&&(G(V,!1),V.strm.avail_out===0)?rt:Q}function Kt(V,Rt){for(var mt,dt,Tt,Ot,qt=V.window;;){if(V.lookahead<=L){if(Ft(V),V.lookahead<=L&&Rt===y)return rt;if(V.lookahead===0)break}if(V.match_length=0,V.lookahead>=P&&V.strstart>0&&(dt=qt[Tt=V.strstart-1])===qt[++Tt]&&dt===qt[++Tt]&&dt===qt[++Tt]){Ot=V.strstart+L;do;while(dt===qt[++Tt]&&dt===qt[++Tt]&&dt===qt[++Tt]&&dt===qt[++Tt]&&dt===qt[++Tt]&&dt===qt[++Tt]&&dt===qt[++Tt]&&dt===qt[++Tt]&&Tt<Ot);V.match_length=L-(Ot-Tt),V.match_length>V.lookahead&&(V.match_length=V.lookahead)}if(V.match_length>=P?(mt=c._tr_tally(V,1,V.match_length-P),V.lookahead-=V.match_length,V.strstart+=V.match_length,V.match_length=0):(mt=c._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++),mt&&(G(V,!1),V.strm.avail_out===0))return rt}return V.insert=0,Rt===b?(G(V,!0),V.strm.avail_out===0?K:nt):V.last_lit&&(G(V,!1),V.strm.avail_out===0)?rt:Q}function ie(V,Rt){for(var mt;;){if(V.lookahead===0&&(Ft(V),V.lookahead===0)){if(Rt===y)return rt;break}if(V.match_length=0,mt=c._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++,mt&&(G(V,!1),V.strm.avail_out===0))return rt}return V.insert=0,Rt===b?(G(V,!0),V.strm.avail_out===0?K:nt):V.last_lit&&(G(V,!1),V.strm.avail_out===0)?rt:Q}function ct(V,Rt,mt,dt,Tt){this.good_length=V,this.max_lazy=Rt,this.nice_length=mt,this.max_chain=dt,this.func=Tt}function pt(V){V.window_size=2*V.w_size,Mt(V.head),V.max_lazy_match=n[V.level].max_lazy,V.good_match=n[V.level].good_length,V.nice_match=n[V.level].nice_length,V.max_chain_length=n[V.level].max_chain,V.strstart=0,V.block_start=0,V.lookahead=0,V.insert=0,V.match_length=V.prev_length=P-1,V.match_available=0,V.ins_h=0}function _t(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=D,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*R),this.dyn_dtree=new i.Buf16(2*(2*x+1)),this.bl_tree=new i.Buf16(2*(2*O+1)),Mt(this.dyn_ltree),Mt(this.dyn_dtree),Mt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(C+1),this.heap=new i.Buf16(2*I+1),Mt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*I+1),Mt(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function vt(V){var Rt;return V&&V.state?(V.total_in=V.total_out=0,V.data_type=j,(Rt=V.state).pending=0,Rt.pending_out=0,Rt.wrap<0&&(Rt.wrap=-Rt.wrap),Rt.status=Rt.wrap?B:gt,V.adler=Rt.wrap===2?0:1,Rt.last_flush=y,c._tr_init(Rt),_):ot(V,o)}function Y(V){var Rt=vt(V);return Rt===_&&pt(V.state),Rt}function ht(V,Rt){return V&&V.state?V.state.wrap!==2?o:(V.state.gzhead=Rt,_):o}function at(V,Rt,mt,dt,Tt,Ot){if(!V)return o;var qt=1;if(Rt===d&&(Rt=6),dt<0?(qt=0,dt=-dt):dt>15&&(qt=2,dt-=16),Tt<1||Tt>N||mt!==D||dt<8||dt>15||Rt<0||Rt>9||Ot<0||Ot>S)return ot(V,o);dt===8&&(dt=9);var Lt=new _t;return V.state=Lt,Lt.strm=V,Lt.wrap=qt,Lt.gzhead=null,Lt.w_bits=dt,Lt.w_size=1<<Lt.w_bits,Lt.w_mask=Lt.w_size-1,Lt.hash_bits=Tt+7,Lt.hash_size=1<<Lt.hash_bits,Lt.hash_mask=Lt.hash_size-1,Lt.hash_shift=~~((Lt.hash_bits+P-1)/P),Lt.window=new i.Buf8(2*Lt.w_size),Lt.head=new i.Buf16(Lt.hash_size),Lt.prev=new i.Buf16(Lt.w_size),Lt.lit_bufsize=1<<Tt+6,Lt.pending_buf_size=4*Lt.lit_bufsize,Lt.pending_buf=new i.Buf8(Lt.pending_buf_size),Lt.d_buf=1*Lt.lit_bufsize,Lt.l_buf=3*Lt.lit_bufsize,Lt.level=Rt,Lt.strategy=Ot,Lt.method=mt,Y(V)}function it(V,Rt){return at(V,Rt,D,F,T,A)}function q(V,Rt){var mt,dt,Tt,Ot;if(!V||!V.state||Rt>v||Rt<0)return V?ot(V,o):o;if(dt=V.state,!V.output||!V.input&&V.avail_in!==0||dt.status===bt&&Rt!==b)return ot(V,V.avail_out===0?a:o);if(dt.strm=V,mt=dt.last_flush,dt.last_flush=Rt,dt.status===B)if(dt.wrap===2)V.adler=0,Z(dt,31),Z(dt,139),Z(dt,8),dt.gzhead?(Z(dt,(dt.gzhead.text?1:0)+(dt.gzhead.hcrc?2:0)+(dt.gzhead.extra?4:0)+(dt.gzhead.name?8:0)+(dt.gzhead.comment?16:0)),Z(dt,255&dt.gzhead.time),Z(dt,dt.gzhead.time>>8&255),Z(dt,dt.gzhead.time>>16&255),Z(dt,dt.gzhead.time>>24&255),Z(dt,dt.level===9?2:dt.strategy>=w||dt.level<2?4:0),Z(dt,255&dt.gzhead.os),dt.gzhead.extra&&dt.gzhead.extra.length&&(Z(dt,255&dt.gzhead.extra.length),Z(dt,dt.gzhead.extra.length>>8&255)),dt.gzhead.hcrc&&(V.adler=l(V.adler,dt.pending_buf,dt.pending,0)),dt.gzindex=0,dt.status=W):(Z(dt,0),Z(dt,0),Z(dt,0),Z(dt,0),Z(dt,0),Z(dt,dt.level===9?2:dt.strategy>=w||dt.level<2?4:0),Z(dt,At),dt.status=gt);else{var qt=D+(dt.w_bits-8<<4)<<8;qt|=(dt.strategy>=w||dt.level<2?0:dt.level<6?1:dt.level===6?2:3)<<6,dt.strstart!==0&&(qt|=U),qt+=31-qt%31,dt.status=gt,J(dt,qt),dt.strstart!==0&&(J(dt,V.adler>>>16),J(dt,65535&V.adler)),V.adler=1}if(dt.status===W)if(dt.gzhead.extra){for(Tt=dt.pending;dt.gzindex<(65535&dt.gzhead.extra.length)&&(dt.pending!==dt.pending_buf_size||(dt.gzhead.hcrc&&dt.pending>Tt&&(V.adler=l(V.adler,dt.pending_buf,dt.pending-Tt,Tt)),Bt(V),Tt=dt.pending,dt.pending!==dt.pending_buf_size));)Z(dt,255&dt.gzhead.extra[dt.gzindex]),dt.gzindex++;dt.gzhead.hcrc&&dt.pending>Tt&&(V.adler=l(V.adler,dt.pending_buf,dt.pending-Tt,Tt)),dt.gzindex===dt.gzhead.extra.length&&(dt.gzindex=0,dt.status=X)}else dt.status=X;if(dt.status===X)if(dt.gzhead.name){Tt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>Tt&&(V.adler=l(V.adler,dt.pending_buf,dt.pending-Tt,Tt)),Bt(V),Tt=dt.pending,dt.pending===dt.pending_buf_size)){Ot=1;break}Ot=dt.gzindex<dt.gzhead.name.length?255&dt.gzhead.name.charCodeAt(dt.gzindex++):0,Z(dt,Ot)}while(Ot!==0);dt.gzhead.hcrc&&dt.pending>Tt&&(V.adler=l(V.adler,dt.pending_buf,dt.pending-Tt,Tt)),Ot===0&&(dt.gzindex=0,dt.status=et)}else dt.status=et;if(dt.status===et)if(dt.gzhead.comment){Tt=dt.pending;do{if(dt.pending===dt.pending_buf_size&&(dt.gzhead.hcrc&&dt.pending>Tt&&(V.adler=l(V.adler,dt.pending_buf,dt.pending-Tt,Tt)),Bt(V),Tt=dt.pending,dt.pending===dt.pending_buf_size)){Ot=1;break}Ot=dt.gzindex<dt.gzhead.comment.length?255&dt.gzhead.comment.charCodeAt(dt.gzindex++):0,Z(dt,Ot)}while(Ot!==0);dt.gzhead.hcrc&&dt.pending>Tt&&(V.adler=l(V.adler,dt.pending_buf,dt.pending-Tt,Tt)),Ot===0&&(dt.status=ft)}else dt.status=ft;if(dt.status===ft&&(dt.gzhead.hcrc?(dt.pending+2>dt.pending_buf_size&&Bt(V),dt.pending+2<=dt.pending_buf_size&&(Z(dt,255&V.adler),Z(dt,V.adler>>8&255),V.adler=0,dt.status=gt)):dt.status=gt),dt.pending!==0){if(Bt(V),V.avail_out===0)return dt.last_flush=-1,_}else if(V.avail_in===0&&ut(Rt)<=ut(mt)&&Rt!==b)return ot(V,a);if(dt.status===bt&&V.avail_in!==0)return ot(V,a);if(V.avail_in!==0||dt.lookahead!==0||Rt!==y&&dt.status!==bt){var Lt=dt.strategy===w?ie(dt,Rt):dt.strategy===k?Kt(dt,Rt):n[dt.level].func(dt,Rt);if(Lt!==K&&Lt!==nt||(dt.status=bt),Lt===rt||Lt===K)return V.avail_out===0&&(dt.last_flush=-1),_;if(Lt===Q&&(Rt===p?c._tr_align(dt):Rt!==v&&(c._tr_stored_block(dt,0,0,!1),Rt===m&&(Mt(dt.head),dt.lookahead===0&&(dt.strstart=0,dt.block_start=0,dt.insert=0))),Bt(V),V.avail_out===0))return dt.last_flush=-1,_}return Rt!==b?_:dt.wrap<=0?s:(dt.wrap===2?(Z(dt,255&V.adler),Z(dt,V.adler>>8&255),Z(dt,V.adler>>16&255),Z(dt,V.adler>>24&255),Z(dt,255&V.total_in),Z(dt,V.total_in>>8&255),Z(dt,V.total_in>>16&255),Z(dt,V.total_in>>24&255)):(J(dt,V.adler>>>16),J(dt,65535&V.adler)),Bt(V),dt.wrap>0&&(dt.wrap=-dt.wrap),dt.pending!==0?_:s)}function wt(V){var Rt;return V&&V.state?(Rt=V.state.status)!==B&&Rt!==W&&Rt!==X&&Rt!==et&&Rt!==ft&&Rt!==gt&&Rt!==bt?ot(V,o):(V.state=null,Rt===gt?ot(V,h):_):o}function Pt(V,Rt){var mt,dt,Tt,Ot,qt,Lt,Ht,le,Ce=Rt.length;if(!V||!V.state||(Ot=(mt=V.state).wrap)===2||Ot===1&&mt.status!==B||mt.lookahead)return o;for(Ot===1&&(V.adler=f(V.adler,Rt,Ce,0)),mt.wrap=0,Ce>=mt.w_size&&(Ot===0&&(Mt(mt.head),mt.strstart=0,mt.block_start=0,mt.insert=0),le=new i.Buf8(mt.w_size),i.arraySet(le,Rt,Ce-mt.w_size,mt.w_size,0),Rt=le,Ce=mt.w_size),qt=V.avail_in,Lt=V.next_in,Ht=V.input,V.avail_in=Ce,V.next_in=0,V.input=Rt,Ft(mt);mt.lookahead>=P;){dt=mt.strstart,Tt=mt.lookahead-(P-1);do mt.ins_h=(mt.ins_h<<mt.hash_shift^mt.window[dt+P-1])&mt.hash_mask,mt.prev[dt&mt.w_mask]=mt.head[mt.ins_h],mt.head[mt.ins_h]=dt,dt++;while(--Tt);mt.strstart=dt,mt.lookahead=P-1,Ft(mt)}return mt.strstart+=mt.lookahead,mt.block_start=mt.strstart,mt.insert=mt.lookahead,mt.lookahead=0,mt.match_length=mt.prev_length=P-1,mt.match_available=0,V.next_in=Lt,V.input=Ht,V.avail_in=qt,mt.wrap=Ot,_}n=[new ct(0,0,0,0,Xt),new ct(4,4,8,4,me),new ct(4,5,16,8,me),new ct(4,6,32,32,me),new ct(4,4,16,16,fe),new ct(8,16,32,32,fe),new ct(8,16,128,128,fe),new ct(8,32,128,256,fe),new ct(32,128,258,1024,fe),new ct(32,258,258,4096,fe)],e.deflateInit=it,e.deflateInit2=at,e.deflateReset=Y,e.deflateResetKeep=vt,e.deflateSetHeader=ht,e.deflate=q,e.deflateEnd=wt,e.deflateSetDictionary=Pt,e.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":442,"./adler32":444,"./crc32":446,"./messages":452,"./trees":453}],448:[function(t,r,e){function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}r.exports=n},{}],449:[function(t,r,e){var n=30,i=12;r.exports=function(c,f){var l,u,y,p,m,b,v,_,s,o,h,a,d,g,w,k,S,A,j,D,N,F,T,I,x;l=c.state,u=c.next_in,I=c.input,y=u+(c.avail_in-5),p=c.next_out,x=c.output,m=p-(f-c.avail_out),b=p+(c.avail_out-257),v=l.dmax,_=l.wsize,s=l.whave,o=l.wnext,h=l.window,a=l.hold,d=l.bits,g=l.lencode,w=l.distcode,k=(1<<l.lenbits)-1,S=(1<<l.distbits)-1;t:do{d<15&&(a+=I[u++]<<d,d+=8,a+=I[u++]<<d,d+=8),A=g[a&k];e:for(;;){if(a>>>=j=A>>>24,d-=j,(j=A>>>16&255)==0)x[p++]=65535&A;else{if(!(16&j)){if(!(64&j)){A=g[(65535&A)+(a&(1<<j)-1)];continue e}if(32&j){l.mode=i;break t}c.msg="invalid literal/length code",l.mode=n;break t}D=65535&A,(j&=15)&&(d<j&&(a+=I[u++]<<d,d+=8),D+=a&(1<<j)-1,a>>>=j,d-=j),d<15&&(a+=I[u++]<<d,d+=8,a+=I[u++]<<d,d+=8),A=w[a&S];r:for(;;){if(a>>>=j=A>>>24,d-=j,!(16&(j=A>>>16&255))){if(!(64&j)){A=w[(65535&A)+(a&(1<<j)-1)];continue r}c.msg="invalid distance code",l.mode=n;break t}if(N=65535&A,d<(j&=15)&&(a+=I[u++]<<d,(d+=8)<j&&(a+=I[u++]<<d,d+=8)),(N+=a&(1<<j)-1)>v){c.msg="invalid distance too far back",l.mode=n;break t}if(a>>>=j,d-=j,N>(j=p-m)){if((j=N-j)>s&&l.sane){c.msg="invalid distance too far back",l.mode=n;break t}if(F=0,T=h,o===0){if(F+=_-j,j<D){D-=j;do x[p++]=h[F++];while(--j);F=p-N,T=x}}else if(o<j){if(F+=_+o-j,(j-=o)<D){D-=j;do x[p++]=h[F++];while(--j);if(F=0,o<D){D-=j=o;do x[p++]=h[F++];while(--j);F=p-N,T=x}}}else if(F+=o-j,j<D){D-=j;do x[p++]=h[F++];while(--j);F=p-N,T=x}for(;D>2;)x[p++]=T[F++],x[p++]=T[F++],x[p++]=T[F++],D-=3;D&&(x[p++]=T[F++],D>1&&(x[p++]=T[F++]))}else{F=p-N;do x[p++]=x[F++],x[p++]=x[F++],x[p++]=x[F++],D-=3;while(D>2);D&&(x[p++]=x[F++],D>1&&(x[p++]=x[F++]))}break}}break}}while(u<y&&p<b);u-=D=d>>3,a&=(1<<(d-=D<<3))-1,c.next_in=u,c.next_out=p,c.avail_in=u<y?y-u+5:5-(u-y),c.avail_out=p<b?b-p+257:257-(p-b),l.hold=a,l.bits=d}},{}],450:[function(t,r,e){var n=t("../utils/common"),i=t("./adler32"),c=t("./crc32"),f=t("./inffast"),l=t("./inftrees"),u=0,y=1,p=2,m=4,b=5,v=6,_=0,s=1,o=2,h=-2,a=-3,d=-4,g=-5,w=8,k=1,S=2,A=3,j=4,D=5,N=6,F=7,T=8,I=9,x=10,O=11,R=12,C=13,P=14,L=15,H=16,U=17,B=18,W=19,X=20,et=21,ft=22,gt=23,bt=24,rt=25,Q=26,K=27,nt=28,At=29,ot=30,ut=31,Mt=852,Bt=592,G=15;function Z(at){return(at>>>24&255)+(at>>>8&65280)+((65280&at)<<8)+((255&at)<<24)}function J(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function St(at){var it;return at&&at.state?(it=at.state,at.total_in=at.total_out=it.total=0,at.msg="",it.wrap&&(at.adler=1&it.wrap),it.mode=k,it.last=0,it.havedict=0,it.dmax=32768,it.head=null,it.hold=0,it.bits=0,it.lencode=it.lendyn=new n.Buf32(Mt),it.distcode=it.distdyn=new n.Buf32(Bt),it.sane=1,it.back=-1,_):h}function It(at){var it;return at&&at.state?((it=at.state).wsize=0,it.whave=0,it.wnext=0,St(at)):h}function Ft(at,it){var q,wt;return at&&at.state?(wt=at.state,it<0?(q=0,it=-it):(q=1+(it>>4),it<48&&(it&=15)),it&&(it<8||it>15)?h:(wt.window!==null&&wt.wbits!==it&&(wt.window=null),wt.wrap=q,wt.wbits=it,It(at))):h}function Xt(at,it){var q,wt;return at?(wt=new J,at.state=wt,wt.window=null,(q=Ft(at,it))!==_&&(at.state=null),q):h}function me(at){return Xt(at,G)}var fe,Kt,ie=!0;function ct(at){if(ie){var it;for(fe=new n.Buf32(512),Kt=new n.Buf32(32),it=0;it<144;)at.lens[it++]=8;for(;it<256;)at.lens[it++]=9;for(;it<280;)at.lens[it++]=7;for(;it<288;)at.lens[it++]=8;for(l(y,at.lens,0,288,fe,0,at.work,{bits:9}),it=0;it<32;)at.lens[it++]=5;l(p,at.lens,0,32,Kt,0,at.work,{bits:5}),ie=!1}at.lencode=fe,at.lenbits=9,at.distcode=Kt,at.distbits=5}function pt(at,it,q,wt){var Pt,V=at.state;return V.window===null&&(V.wsize=1<<V.wbits,V.wnext=0,V.whave=0,V.window=new n.Buf8(V.wsize)),wt>=V.wsize?(n.arraySet(V.window,it,q-V.wsize,V.wsize,0),V.wnext=0,V.whave=V.wsize):((Pt=V.wsize-V.wnext)>wt&&(Pt=wt),n.arraySet(V.window,it,q-wt,Pt,V.wnext),(wt-=Pt)?(n.arraySet(V.window,it,q-wt,wt,0),V.wnext=wt,V.whave=V.wsize):(V.wnext+=Pt,V.wnext===V.wsize&&(V.wnext=0),V.whave<V.wsize&&(V.whave+=Pt))),0}function _t(at,it){var q,wt,Pt,V,Rt,mt,dt,Tt,Ot,qt,Lt,Ht,le,Ce,Zt,ae,he,Wt,pe,Se,de,ge,Fe,re,Ae=0,De=new n.Buf8(4),Ue=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!at||!at.state||!at.output||!at.input&&at.avail_in!==0)return h;(q=at.state).mode===R&&(q.mode=C),Rt=at.next_out,Pt=at.output,dt=at.avail_out,V=at.next_in,wt=at.input,mt=at.avail_in,Tt=q.hold,Ot=q.bits,qt=mt,Lt=dt,ge=_;t:for(;;)switch(q.mode){case k:if(q.wrap===0){q.mode=C;break}for(;Ot<16;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}if(2&q.wrap&&Tt===35615){q.check=0,De[0]=255&Tt,De[1]=Tt>>>8&255,q.check=c(q.check,De,2,0),Tt=0,Ot=0,q.mode=S;break}if(q.flags=0,q.head&&(q.head.done=!1),!(1&q.wrap)||(((255&Tt)<<8)+(Tt>>8))%31){at.msg="incorrect header check",q.mode=ot;break}if((15&Tt)!==w){at.msg="unknown compression method",q.mode=ot;break}if(Ot-=4,de=8+(15&(Tt>>>=4)),q.wbits===0)q.wbits=de;else if(de>q.wbits){at.msg="invalid window size",q.mode=ot;break}q.dmax=1<<de,at.adler=q.check=1,q.mode=512&Tt?x:R,Tt=0,Ot=0;break;case S:for(;Ot<16;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}if(q.flags=Tt,(255&q.flags)!==w){at.msg="unknown compression method",q.mode=ot;break}if(57344&q.flags){at.msg="unknown header flags set",q.mode=ot;break}q.head&&(q.head.text=Tt>>8&1),512&q.flags&&(De[0]=255&Tt,De[1]=Tt>>>8&255,q.check=c(q.check,De,2,0)),Tt=0,Ot=0,q.mode=A;case A:for(;Ot<32;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}q.head&&(q.head.time=Tt),512&q.flags&&(De[0]=255&Tt,De[1]=Tt>>>8&255,De[2]=Tt>>>16&255,De[3]=Tt>>>24&255,q.check=c(q.check,De,4,0)),Tt=0,Ot=0,q.mode=j;case j:for(;Ot<16;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}q.head&&(q.head.xflags=255&Tt,q.head.os=Tt>>8),512&q.flags&&(De[0]=255&Tt,De[1]=Tt>>>8&255,q.check=c(q.check,De,2,0)),Tt=0,Ot=0,q.mode=D;case D:if(1024&q.flags){for(;Ot<16;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}q.length=Tt,q.head&&(q.head.extra_len=Tt),512&q.flags&&(De[0]=255&Tt,De[1]=Tt>>>8&255,q.check=c(q.check,De,2,0)),Tt=0,Ot=0}else q.head&&(q.head.extra=null);q.mode=N;case N:if(1024&q.flags&&((Ht=q.length)>mt&&(Ht=mt),Ht&&(q.head&&(de=q.head.extra_len-q.length,q.head.extra||(q.head.extra=new Array(q.head.extra_len)),n.arraySet(q.head.extra,wt,V,Ht,de)),512&q.flags&&(q.check=c(q.check,wt,Ht,V)),mt-=Ht,V+=Ht,q.length-=Ht),q.length))break t;q.length=0,q.mode=F;case F:if(2048&q.flags){if(mt===0)break t;Ht=0;do de=wt[V+Ht++],q.head&&de&&q.length<65536&&(q.head.name+=String.fromCharCode(de));while(de&&Ht<mt);if(512&q.flags&&(q.check=c(q.check,wt,Ht,V)),mt-=Ht,V+=Ht,de)break t}else q.head&&(q.head.name=null);q.length=0,q.mode=T;case T:if(4096&q.flags){if(mt===0)break t;Ht=0;do de=wt[V+Ht++],q.head&&de&&q.length<65536&&(q.head.comment+=String.fromCharCode(de));while(de&&Ht<mt);if(512&q.flags&&(q.check=c(q.check,wt,Ht,V)),mt-=Ht,V+=Ht,de)break t}else q.head&&(q.head.comment=null);q.mode=I;case I:if(512&q.flags){for(;Ot<16;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}if(Tt!==(65535&q.check)){at.msg="header crc mismatch",q.mode=ot;break}Tt=0,Ot=0}q.head&&(q.head.hcrc=q.flags>>9&1,q.head.done=!0),at.adler=q.check=0,q.mode=R;break;case x:for(;Ot<32;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}at.adler=q.check=Z(Tt),Tt=0,Ot=0,q.mode=O;case O:if(q.havedict===0)return at.next_out=Rt,at.avail_out=dt,at.next_in=V,at.avail_in=mt,q.hold=Tt,q.bits=Ot,o;at.adler=q.check=1,q.mode=R;case R:if(it===b||it===v)break t;case C:if(q.last){Tt>>>=7&Ot,Ot-=7&Ot,q.mode=K;break}for(;Ot<3;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}switch(q.last=1&Tt,Ot-=1,3&(Tt>>>=1)){case 0:q.mode=P;break;case 1:if(ct(q),q.mode=X,it===v){Tt>>>=2,Ot-=2;break t}break;case 2:q.mode=U;break;case 3:at.msg="invalid block type",q.mode=ot}Tt>>>=2,Ot-=2;break;case P:for(Tt>>>=7&Ot,Ot-=7&Ot;Ot<32;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}if((65535&Tt)!=(Tt>>>16^65535)){at.msg="invalid stored block lengths",q.mode=ot;break}if(q.length=65535&Tt,Tt=0,Ot=0,q.mode=L,it===v)break t;case L:q.mode=H;case H:if(Ht=q.length){if(Ht>mt&&(Ht=mt),Ht>dt&&(Ht=dt),Ht===0)break t;n.arraySet(Pt,wt,V,Ht,Rt),mt-=Ht,V+=Ht,dt-=Ht,Rt+=Ht,q.length-=Ht;break}q.mode=R;break;case U:for(;Ot<14;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}if(q.nlen=257+(31&Tt),Tt>>>=5,Ot-=5,q.ndist=1+(31&Tt),Tt>>>=5,Ot-=5,q.ncode=4+(15&Tt),Tt>>>=4,Ot-=4,q.nlen>286||q.ndist>30){at.msg="too many length or distance symbols",q.mode=ot;break}q.have=0,q.mode=B;case B:for(;q.have<q.ncode;){for(;Ot<3;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}q.lens[Ue[q.have++]]=7&Tt,Tt>>>=3,Ot-=3}for(;q.have<19;)q.lens[Ue[q.have++]]=0;if(q.lencode=q.lendyn,q.lenbits=7,Fe={bits:q.lenbits},ge=l(u,q.lens,0,19,q.lencode,0,q.work,Fe),q.lenbits=Fe.bits,ge){at.msg="invalid code lengths set",q.mode=ot;break}q.have=0,q.mode=W;case W:for(;q.have<q.nlen+q.ndist;){for(;ae=(Ae=q.lencode[Tt&(1<<q.lenbits)-1])>>>16&255,he=65535&Ae,!((Zt=Ae>>>24)<=Ot);){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}if(he<16)Tt>>>=Zt,Ot-=Zt,q.lens[q.have++]=he;else{if(he===16){for(re=Zt+2;Ot<re;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}if(Tt>>>=Zt,Ot-=Zt,q.have===0){at.msg="invalid bit length repeat",q.mode=ot;break}de=q.lens[q.have-1],Ht=3+(3&Tt),Tt>>>=2,Ot-=2}else if(he===17){for(re=Zt+3;Ot<re;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}Ot-=Zt,de=0,Ht=3+(7&(Tt>>>=Zt)),Tt>>>=3,Ot-=3}else{for(re=Zt+7;Ot<re;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}Ot-=Zt,de=0,Ht=11+(127&(Tt>>>=Zt)),Tt>>>=7,Ot-=7}if(q.have+Ht>q.nlen+q.ndist){at.msg="invalid bit length repeat",q.mode=ot;break}for(;Ht--;)q.lens[q.have++]=de}}if(q.mode===ot)break;if(q.lens[256]===0){at.msg="invalid code -- missing end-of-block",q.mode=ot;break}if(q.lenbits=9,Fe={bits:q.lenbits},ge=l(y,q.lens,0,q.nlen,q.lencode,0,q.work,Fe),q.lenbits=Fe.bits,ge){at.msg="invalid literal/lengths set",q.mode=ot;break}if(q.distbits=6,q.distcode=q.distdyn,Fe={bits:q.distbits},ge=l(p,q.lens,q.nlen,q.ndist,q.distcode,0,q.work,Fe),q.distbits=Fe.bits,ge){at.msg="invalid distances set",q.mode=ot;break}if(q.mode=X,it===v)break t;case X:q.mode=et;case et:if(mt>=6&&dt>=258){at.next_out=Rt,at.avail_out=dt,at.next_in=V,at.avail_in=mt,q.hold=Tt,q.bits=Ot,f(at,Lt),Rt=at.next_out,Pt=at.output,dt=at.avail_out,V=at.next_in,wt=at.input,mt=at.avail_in,Tt=q.hold,Ot=q.bits,q.mode===R&&(q.back=-1);break}for(q.back=0;ae=(Ae=q.lencode[Tt&(1<<q.lenbits)-1])>>>16&255,he=65535&Ae,!((Zt=Ae>>>24)<=Ot);){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}if(ae&&!(240&ae)){for(Wt=Zt,pe=ae,Se=he;ae=(Ae=q.lencode[Se+((Tt&(1<<Wt+pe)-1)>>Wt)])>>>16&255,he=65535&Ae,!(Wt+(Zt=Ae>>>24)<=Ot);){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}Tt>>>=Wt,Ot-=Wt,q.back+=Wt}if(Tt>>>=Zt,Ot-=Zt,q.back+=Zt,q.length=he,ae===0){q.mode=Q;break}if(32&ae){q.back=-1,q.mode=R;break}if(64&ae){at.msg="invalid literal/length code",q.mode=ot;break}q.extra=15&ae,q.mode=ft;case ft:if(q.extra){for(re=q.extra;Ot<re;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}q.length+=Tt&(1<<q.extra)-1,Tt>>>=q.extra,Ot-=q.extra,q.back+=q.extra}q.was=q.length,q.mode=gt;case gt:for(;ae=(Ae=q.distcode[Tt&(1<<q.distbits)-1])>>>16&255,he=65535&Ae,!((Zt=Ae>>>24)<=Ot);){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}if(!(240&ae)){for(Wt=Zt,pe=ae,Se=he;ae=(Ae=q.distcode[Se+((Tt&(1<<Wt+pe)-1)>>Wt)])>>>16&255,he=65535&Ae,!(Wt+(Zt=Ae>>>24)<=Ot);){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}Tt>>>=Wt,Ot-=Wt,q.back+=Wt}if(Tt>>>=Zt,Ot-=Zt,q.back+=Zt,64&ae){at.msg="invalid distance code",q.mode=ot;break}q.offset=he,q.extra=15&ae,q.mode=bt;case bt:if(q.extra){for(re=q.extra;Ot<re;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}q.offset+=Tt&(1<<q.extra)-1,Tt>>>=q.extra,Ot-=q.extra,q.back+=q.extra}if(q.offset>q.dmax){at.msg="invalid distance too far back",q.mode=ot;break}q.mode=rt;case rt:if(dt===0)break t;if(Ht=Lt-dt,q.offset>Ht){if((Ht=q.offset-Ht)>q.whave&&q.sane){at.msg="invalid distance too far back",q.mode=ot;break}Ht>q.wnext?(Ht-=q.wnext,le=q.wsize-Ht):le=q.wnext-Ht,Ht>q.length&&(Ht=q.length),Ce=q.window}else Ce=Pt,le=Rt-q.offset,Ht=q.length;Ht>dt&&(Ht=dt),dt-=Ht,q.length-=Ht;do Pt[Rt++]=Ce[le++];while(--Ht);q.length===0&&(q.mode=et);break;case Q:if(dt===0)break t;Pt[Rt++]=q.length,dt--,q.mode=et;break;case K:if(q.wrap){for(;Ot<32;){if(mt===0)break t;mt--,Tt|=wt[V++]<<Ot,Ot+=8}if(Lt-=dt,at.total_out+=Lt,q.total+=Lt,Lt&&(at.adler=q.check=q.flags?c(q.check,Pt,Lt,Rt-Lt):i(q.check,Pt,Lt,Rt-Lt)),Lt=dt,(q.flags?Tt:Z(Tt))!==q.check){at.msg="incorrect data check",q.mode=ot;break}Tt=0,Ot=0}q.mode=nt;case nt:if(q.wrap&&q.flags){for(;Ot<32;){if(mt===0)break t;mt--,Tt+=wt[V++]<<Ot,Ot+=8}if(Tt!==(4294967295&q.total)){at.msg="incorrect length check",q.mode=ot;break}Tt=0,Ot=0}q.mode=At;case At:ge=s;break t;case ot:ge=a;break t;case ut:return d;default:return h}return at.next_out=Rt,at.avail_out=dt,at.next_in=V,at.avail_in=mt,q.hold=Tt,q.bits=Ot,(q.wsize||Lt!==at.avail_out&&q.mode<ot&&(q.mode<K||it!==m))&&pt(at,at.output,at.next_out,Lt-at.avail_out),qt-=at.avail_in,Lt-=at.avail_out,at.total_in+=qt,at.total_out+=Lt,q.total+=Lt,q.wrap&&Lt&&(at.adler=q.check=q.flags?c(q.check,Pt,Lt,at.next_out-Lt):i(q.check,Pt,Lt,at.next_out-Lt)),at.data_type=q.bits+(q.last?64:0)+(q.mode===R?128:0)+(q.mode===X||q.mode===L?256:0),(qt===0&&Lt===0||it===m)&&ge===_&&(ge=g),ge}function vt(at){if(!at||!at.state)return h;var it=at.state;return it.window&&(it.window=null),at.state=null,_}function Y(at,it){var q;return at&&at.state&&2&(q=at.state).wrap?(q.head=it,it.done=!1,_):h}function ht(at,it){var q,wt=it.length;return at&&at.state?(q=at.state).wrap!==0&&q.mode!==O?h:q.mode===O&&i(1,it,wt,0)!==q.check?a:pt(at,it,wt,wt)?(q.mode=ut,d):(q.havedict=1,_):h}e.inflateReset=It,e.inflateReset2=Ft,e.inflateResetKeep=St,e.inflateInit=me,e.inflateInit2=Xt,e.inflate=_t,e.inflateEnd=vt,e.inflateGetHeader=Y,e.inflateSetDictionary=ht,e.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":442,"./adler32":444,"./crc32":446,"./inffast":449,"./inftrees":451}],451:[function(t,r,e){var n=t("../utils/common"),i=15,c=852,f=592,l=0,u=1,y=2,p=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],m=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],b=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(_,s,o,h,a,d,g,w){var k,S,A,j,D,N,F,T,I,x=w.bits,O=0,R=0,C=0,P=0,L=0,H=0,U=0,B=0,W=0,X=0,et=null,ft=0,gt=new n.Buf16(i+1),bt=new n.Buf16(i+1),rt=null,Q=0;for(O=0;O<=i;O++)gt[O]=0;for(R=0;R<h;R++)gt[s[o+R]]++;for(L=x,P=i;P>=1&>[P]===0;P--);if(L>P&&(L=P),P===0)return a[d++]=20971520,a[d++]=20971520,w.bits=1,0;for(C=1;C<P&>[C]===0;C++);for(L<C&&(L=C),B=1,O=1;O<=i;O++)if(B<<=1,(B-=gt[O])<0)return-1;if(B>0&&(_===l||P!==1))return-1;for(bt[1]=0,O=1;O<i;O++)bt[O+1]=bt[O]+gt[O];for(R=0;R<h;R++)s[o+R]!==0&&(g[bt[s[o+R]]++]=R);if(_===l?(et=rt=g,N=19):_===u?(et=p,ft-=257,rt=m,Q-=257,N=256):(et=b,rt=v,N=-1),X=0,R=0,O=C,D=d,H=L,U=0,A=-1,j=(W=1<<L)-1,_===u&&W>c||_===y&&W>f)return 1;for(;;){F=O-U,g[R]<N?(T=0,I=g[R]):g[R]>N?(T=rt[Q+g[R]],I=et[ft+g[R]]):(T=96,I=0),k=1<<O-U,C=S=1<<H;do a[D+(X>>U)+(S-=k)]=F<<24|T<<16|I|0;while(S!==0);for(k=1<<O-1;X&k;)k>>=1;if(k!==0?(X&=k-1,X+=k):X=0,R++,--gt[O]==0){if(O===P)break;O=s[o+g[R]]}if(O>L&&(X&j)!==A){for(U===0&&(U=L),D+=C,B=1<<(H=O-U);H+U<P&&!((B-=gt[H+U])<=0);)H++,B<<=1;if(W+=1<<H,_===u&&W>c||_===y&&W>f)return 1;a[A=X&j]=L<<24|H<<16|D-d|0}}return X!==0&&(a[D+X]=O-U<<24|64<<16|0),w.bits=L,0}},{"../utils/common":442}],452:[function(t,r,e){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],453:[function(t,r,e){var n=t("../utils/common"),i=4,c=0,f=1,l=2;function u(Y){for(var ht=Y.length;--ht>=0;)Y[ht]=0}var y=0,p=1,m=2,b=3,v=258,_=29,s=256,o=s+1+_,h=30,a=19,d=2*o+1,g=15,w=16,k=7,S=256,A=16,j=17,D=18,N=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],F=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x=512,O=new Array(2*(o+2));u(O);var R=new Array(2*h);u(R);var C=new Array(x);u(C);var P=new Array(v-b+1);u(P);var L=new Array(_);u(L);var H,U,B,W=new Array(h);function X(Y,ht,at,it,q){this.static_tree=Y,this.extra_bits=ht,this.extra_base=at,this.elems=it,this.max_length=q,this.has_stree=Y&&Y.length}function et(Y,ht){this.dyn_tree=Y,this.max_code=0,this.stat_desc=ht}function ft(Y){return Y<256?C[Y]:C[256+(Y>>>7)]}function gt(Y,ht){Y.pending_buf[Y.pending++]=255&ht,Y.pending_buf[Y.pending++]=ht>>>8&255}function bt(Y,ht,at){Y.bi_valid>w-at?(Y.bi_buf|=ht<<Y.bi_valid&65535,gt(Y,Y.bi_buf),Y.bi_buf=ht>>w-Y.bi_valid,Y.bi_valid+=at-w):(Y.bi_buf|=ht<<Y.bi_valid&65535,Y.bi_valid+=at)}function rt(Y,ht,at){bt(Y,at[2*ht],at[2*ht+1])}function Q(Y,ht){var at=0;do at|=1&Y,Y>>>=1,at<<=1;while(--ht>0);return at>>>1}function K(Y){Y.bi_valid===16?(gt(Y,Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0):Y.bi_valid>=8&&(Y.pending_buf[Y.pending++]=255&Y.bi_buf,Y.bi_buf>>=8,Y.bi_valid-=8)}function nt(Y,ht){var at,it,q,wt,Pt,V,Rt=ht.dyn_tree,mt=ht.max_code,dt=ht.stat_desc.static_tree,Tt=ht.stat_desc.has_stree,Ot=ht.stat_desc.extra_bits,qt=ht.stat_desc.extra_base,Lt=ht.stat_desc.max_length,Ht=0;for(wt=0;wt<=g;wt++)Y.bl_count[wt]=0;for(Rt[2*Y.heap[Y.heap_max]+1]=0,at=Y.heap_max+1;at<d;at++)(wt=Rt[2*Rt[2*(it=Y.heap[at])+1]+1]+1)>Lt&&(wt=Lt,Ht++),Rt[2*it+1]=wt,it>mt||(Y.bl_count[wt]++,Pt=0,it>=qt&&(Pt=Ot[it-qt]),V=Rt[2*it],Y.opt_len+=V*(wt+Pt),Tt&&(Y.static_len+=V*(dt[2*it+1]+Pt)));if(Ht!==0){do{for(wt=Lt-1;Y.bl_count[wt]===0;)wt--;Y.bl_count[wt]--,Y.bl_count[wt+1]+=2,Y.bl_count[Lt]--,Ht-=2}while(Ht>0);for(wt=Lt;wt!==0;wt--)for(it=Y.bl_count[wt];it!==0;)(q=Y.heap[--at])>mt||(Rt[2*q+1]!==wt&&(Y.opt_len+=(wt-Rt[2*q+1])*Rt[2*q],Rt[2*q+1]=wt),it--)}}function At(Y,ht,at){var it,q,wt=new Array(g+1),Pt=0;for(it=1;it<=g;it++)wt[it]=Pt=Pt+at[it-1]<<1;for(q=0;q<=ht;q++){var V=Y[2*q+1];V!==0&&(Y[2*q]=Q(wt[V]++,V))}}function ot(){var Y,ht,at,it,q,wt=new Array(g+1);for(at=0,it=0;it<_-1;it++)for(L[it]=at,Y=0;Y<1<<N[it];Y++)P[at++]=it;for(P[at-1]=it,q=0,it=0;it<16;it++)for(W[it]=q,Y=0;Y<1<<F[it];Y++)C[q++]=it;for(q>>=7;it<h;it++)for(W[it]=q<<7,Y=0;Y<1<<F[it]-7;Y++)C[256+q++]=it;for(ht=0;ht<=g;ht++)wt[ht]=0;for(Y=0;Y<=143;)O[2*Y+1]=8,Y++,wt[8]++;for(;Y<=255;)O[2*Y+1]=9,Y++,wt[9]++;for(;Y<=279;)O[2*Y+1]=7,Y++,wt[7]++;for(;Y<=287;)O[2*Y+1]=8,Y++,wt[8]++;for(At(O,o+1,wt),Y=0;Y<h;Y++)R[2*Y+1]=5,R[2*Y]=Q(Y,5);H=new X(O,N,s+1,o,g),U=new X(R,F,0,h,g),B=new X(new Array(0),T,0,a,k)}function ut(Y){var ht;for(ht=0;ht<o;ht++)Y.dyn_ltree[2*ht]=0;for(ht=0;ht<h;ht++)Y.dyn_dtree[2*ht]=0;for(ht=0;ht<a;ht++)Y.bl_tree[2*ht]=0;Y.dyn_ltree[2*S]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Mt(Y){Y.bi_valid>8?gt(Y,Y.bi_buf):Y.bi_valid>0&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function Bt(Y,ht,at,it){Mt(Y),it&&(gt(Y,at),gt(Y,~at)),n.arraySet(Y.pending_buf,Y.window,ht,at,Y.pending),Y.pending+=at}function G(Y,ht,at,it){var q=2*ht,wt=2*at;return Y[q]<Y[wt]||Y[q]===Y[wt]&&it[ht]<=it[at]}function Z(Y,ht,at){for(var it=Y.heap[at],q=at<<1;q<=Y.heap_len&&(q<Y.heap_len&&G(ht,Y.heap[q+1],Y.heap[q],Y.depth)&&q++,!G(ht,it,Y.heap[q],Y.depth));)Y.heap[at]=Y.heap[q],at=q,q<<=1;Y.heap[at]=it}function J(Y,ht,at){var it,q,wt,Pt,V=0;if(Y.last_lit!==0)do it=Y.pending_buf[Y.d_buf+2*V]<<8|Y.pending_buf[Y.d_buf+2*V+1],q=Y.pending_buf[Y.l_buf+V],V++,it===0?rt(Y,q,ht):(rt(Y,(wt=P[q])+s+1,ht),(Pt=N[wt])!==0&&bt(Y,q-=L[wt],Pt),rt(Y,wt=ft(--it),at),(Pt=F[wt])!==0&&bt(Y,it-=W[wt],Pt));while(V<Y.last_lit);rt(Y,S,ht)}function St(Y,ht){var at,it,q,wt=ht.dyn_tree,Pt=ht.stat_desc.static_tree,V=ht.stat_desc.has_stree,Rt=ht.stat_desc.elems,mt=-1;for(Y.heap_len=0,Y.heap_max=d,at=0;at<Rt;at++)wt[2*at]!==0?(Y.heap[++Y.heap_len]=mt=at,Y.depth[at]=0):wt[2*at+1]=0;for(;Y.heap_len<2;)wt[2*(q=Y.heap[++Y.heap_len]=mt<2?++mt:0)]=1,Y.depth[q]=0,Y.opt_len--,V&&(Y.static_len-=Pt[2*q+1]);for(ht.max_code=mt,at=Y.heap_len>>1;at>=1;at--)Z(Y,wt,at);q=Rt;do at=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Z(Y,wt,1),it=Y.heap[1],Y.heap[--Y.heap_max]=at,Y.heap[--Y.heap_max]=it,wt[2*q]=wt[2*at]+wt[2*it],Y.depth[q]=(Y.depth[at]>=Y.depth[it]?Y.depth[at]:Y.depth[it])+1,wt[2*at+1]=wt[2*it+1]=q,Y.heap[1]=q++,Z(Y,wt,1);while(Y.heap_len>=2);Y.heap[--Y.heap_max]=Y.heap[1],nt(Y,ht),At(wt,mt,Y.bl_count)}function It(Y,ht,at){var it,q,wt=-1,Pt=ht[1],V=0,Rt=7,mt=4;for(Pt===0&&(Rt=138,mt=3),ht[2*(at+1)+1]=65535,it=0;it<=at;it++)q=Pt,Pt=ht[2*(it+1)+1],++V<Rt&&q===Pt||(V<mt?Y.bl_tree[2*q]+=V:q!==0?(q!==wt&&Y.bl_tree[2*q]++,Y.bl_tree[2*A]++):V<=10?Y.bl_tree[2*j]++:Y.bl_tree[2*D]++,V=0,wt=q,Pt===0?(Rt=138,mt=3):q===Pt?(Rt=6,mt=3):(Rt=7,mt=4))}function Ft(Y,ht,at){var it,q,wt=-1,Pt=ht[1],V=0,Rt=7,mt=4;for(Pt===0&&(Rt=138,mt=3),it=0;it<=at;it++)if(q=Pt,Pt=ht[2*(it+1)+1],!(++V<Rt&&q===Pt)){if(V<mt)do rt(Y,q,Y.bl_tree);while(--V!=0);else q!==0?(q!==wt&&(rt(Y,q,Y.bl_tree),V--),rt(Y,A,Y.bl_tree),bt(Y,V-3,2)):V<=10?(rt(Y,j,Y.bl_tree),bt(Y,V-3,3)):(rt(Y,D,Y.bl_tree),bt(Y,V-11,7));V=0,wt=q,Pt===0?(Rt=138,mt=3):q===Pt?(Rt=6,mt=3):(Rt=7,mt=4)}}function Xt(Y){var ht;for(It(Y,Y.dyn_ltree,Y.l_desc.max_code),It(Y,Y.dyn_dtree,Y.d_desc.max_code),St(Y,Y.bl_desc),ht=a-1;ht>=3&&Y.bl_tree[2*I[ht]+1]===0;ht--);return Y.opt_len+=3*(ht+1)+5+5+4,ht}function me(Y,ht,at,it){var q;for(bt(Y,ht-257,5),bt(Y,at-1,5),bt(Y,it-4,4),q=0;q<it;q++)bt(Y,Y.bl_tree[2*I[q]+1],3);Ft(Y,Y.dyn_ltree,ht-1),Ft(Y,Y.dyn_dtree,at-1)}function fe(Y){var ht,at=4093624447;for(ht=0;ht<=31;ht++,at>>>=1)if(1&at&&Y.dyn_ltree[2*ht]!==0)return c;if(Y.dyn_ltree[18]!==0||Y.dyn_ltree[20]!==0||Y.dyn_ltree[26]!==0)return f;for(ht=32;ht<s;ht++)if(Y.dyn_ltree[2*ht]!==0)return f;return c}u(W);var Kt=!1;function ie(Y){Kt||(ot(),Kt=!0),Y.l_desc=new et(Y.dyn_ltree,H),Y.d_desc=new et(Y.dyn_dtree,U),Y.bl_desc=new et(Y.bl_tree,B),Y.bi_buf=0,Y.bi_valid=0,ut(Y)}function ct(Y,ht,at,it){bt(Y,(y<<1)+(it?1:0),3),Bt(Y,ht,at,!0)}function pt(Y){bt(Y,p<<1,3),rt(Y,S,O),K(Y)}function _t(Y,ht,at,it){var q,wt,Pt=0;Y.level>0?(Y.strm.data_type===l&&(Y.strm.data_type=fe(Y)),St(Y,Y.l_desc),St(Y,Y.d_desc),Pt=Xt(Y),q=Y.opt_len+3+7>>>3,(wt=Y.static_len+3+7>>>3)<=q&&(q=wt)):q=wt=at+5,at+4<=q&&ht!==-1?ct(Y,ht,at,it):Y.strategy===i||wt===q?(bt(Y,(p<<1)+(it?1:0),3),J(Y,O,R)):(bt(Y,(m<<1)+(it?1:0),3),me(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,Pt+1),J(Y,Y.dyn_ltree,Y.dyn_dtree)),ut(Y),it&&Mt(Y)}function vt(Y,ht,at){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=ht>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&ht,Y.pending_buf[Y.l_buf+Y.last_lit]=255&at,Y.last_lit++,ht===0?Y.dyn_ltree[2*at]++:(Y.matches++,ht--,Y.dyn_ltree[2*(P[at]+s+1)]++,Y.dyn_dtree[2*ft(ht)]++),Y.last_lit===Y.lit_bufsize-1}e._tr_init=ie,e._tr_stored_block=ct,e._tr_flush_block=_t,e._tr_tally=vt,e._tr_align=pt},{"../utils/common":442}],454:[function(t,r,e){function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}r.exports=n},{}],455:[function(t,r,e){r.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(t,r,e){var n=t("asn1.js");e.certificate=t("./certificate");var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});e.RSAPrivateKey=i;var c=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});e.RSAPublicKey=c;var f=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(l),this.key("subjectPublicKey").bitstr())});e.PublicKey=f;var l=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),u=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(l),this.key("subjectPrivateKey").octstr())});e.PrivateKey=u;var y=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});e.EncryptedPrivateKey=y;var p=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});e.DSAPrivateKey=p,e.DSAparam=n.define("DSAparam",function(){this.int()});var m=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(b),this.key("publicKey").optional().explicit(1).bitstr())});e.ECPrivateKey=m;var b=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});e.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":167}],457:[function(t,r,e){var n=t("asn1.js"),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),c=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),f=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),l=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(f),this.key("subjectPublicKey").bitstr())}),u=n.define("RelativeDistinguishedName",function(){this.setof(c)}),y=n.define("RDNSequence",function(){this.seqof(u)}),p=n.define("Name",function(){this.choice({rdnSequence:this.use(y)})}),m=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),b=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),v=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(f),this.key("issuer").use(p),this.key("validity").use(m),this.key("subject").use(p),this.key("subjectPublicKeyInfo").use(l),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(b).optional())}),_=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(v),this.key("signatureAlgorithm").use(f),this.key("signatureValue").bitstr())});r.exports=_},{"asn1.js":167}],458:[function(t,r,e){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,c=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,f=t("evp_bytestokey"),l=t("browserify-aes"),u=t("safe-buffer").Buffer;r.exports=function(y,p){var m,b=y.toString(),v=b.match(n);if(v){var _="aes"+v[1],s=u.from(v[2],"hex"),o=u.from(v[3].replace(/[\r\n]/g,""),"base64"),h=f(p,s.slice(0,8),parseInt(v[1],10)).key,a=[],d=l.createDecipheriv(_,h,s);a.push(d.update(o)),a.push(d.final()),m=u.concat(a)}else{var g=b.match(c);m=u.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:b.match(i)[1],data:m}}},{"browserify-aes":188,evp_bytestokey:368,"safe-buffer":494}],459:[function(t,r,e){function n(b){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(b)}var i=t("./asn1"),c=t("./aesid.json"),f=t("./fixProc"),l=t("browserify-aes"),u=t("pbkdf2"),y=t("safe-buffer").Buffer;function p(b){var v;n(b)!=="object"||y.isBuffer(b)||(v=b.passphrase,b=b.key),typeof b=="string"&&(b=y.from(b));var _,s,o=f(b,v),h=o.tag,a=o.data;switch(h){case"CERTIFICATE":s=i.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=i.PublicKey.decode(a,"der")),_=s.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=i.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+_)}case"ENCRYPTED PRIVATE KEY":a=m(a=i.EncryptedPrivateKey.decode(a,"der"),v);case"PRIVATE KEY":switch(_=(s=i.PrivateKey.decode(a,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:i.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=i.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+_)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return{curve:(a=i.ECPrivateKey.decode(a,"der")).parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+h)}}function m(b,v){var _=b.algorithm.decrypt.kde.kdeparams.salt,s=parseInt(b.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=c[b.algorithm.decrypt.cipher.algo.join(".")],h=b.algorithm.decrypt.cipher.iv,a=b.subjectPrivateKey,d=parseInt(o.split("-")[1],10)/8,g=u.pbkdf2Sync(v,_,s,d,"sha1"),w=l.createDecipheriv(o,g,h),k=[];return k.push(w.update(a)),k.push(w.final()),y.concat(k)}r.exports=p,p.signature=i.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":188,pbkdf2:460,"safe-buffer":494}],460:[function(t,r,e){e.pbkdf2=t("./lib/async"),e.pbkdf2Sync=t("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(t,r,e){(function(n,i){var c,f=t("safe-buffer").Buffer,l=t("./precondition"),u=t("./default-encoding"),y=t("./sync"),p=t("./to-buffer"),m=i.crypto&&i.crypto.subtle,b={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},v=[];function _(h){if(i.process&&!i.process.browser||!m||!m.importKey||!m.deriveBits)return Promise.resolve(!1);if(v[h]!==void 0)return v[h];var a=s(c=c||f.alloc(8),c,10,128,h).then(function(){return!0}).catch(function(){return!1});return v[h]=a,a}function s(h,a,d,g,w){return m.importKey("raw",h,{name:"PBKDF2"},!1,["deriveBits"]).then(function(k){return m.deriveBits({name:"PBKDF2",salt:a,iterations:d,hash:{name:w}},k,g<<3)}).then(function(k){return f.from(k)})}function o(h,a){h.then(function(d){n.nextTick(function(){a(null,d)})},function(d){n.nextTick(function(){a(d)})})}r.exports=function(h,a,d,g,w,k){typeof w=="function"&&(k=w,w=void 0);var S=b[(w=w||"sha1").toLowerCase()];if(!S||typeof i.Promise!="function")return n.nextTick(function(){var A;try{A=y(h,a,d,g,w)}catch(j){return k(j)}k(null,A)});if(l(d,g),h=p(h,u,"Password"),a=p(a,u,"Salt"),typeof k!="function")throw new Error("No callback provided to pbkdf2");o(_(S).then(function(A){return A?s(h,a,d,g,S):y(h,a,d,g,w)}),k)}}).call(this,t("_process"),dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,_process:467,"safe-buffer":494}],462:[function(t,r,e){(function(n){var i;i=n.browser?"utf-8":n.version?parseInt(n.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",r.exports=i}).call(this,t("_process"))},{_process:467}],463:[function(t,r,e){var n=Math.pow(2,30)-1;r.exports=function(i,c){if(typeof i!="number")throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if(typeof c!="number")throw new TypeError("Key length not a number");if(c<0||c>n||c!=c)throw new TypeError("Bad key length")}},{}],464:[function(t,r,e){var n=t("create-hash/md5"),i=t("ripemd160"),c=t("sha.js"),f=t("safe-buffer").Buffer,l=t("./precondition"),u=t("./default-encoding"),y=t("./to-buffer"),p=f.alloc(128),m={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function b(s,o,h){var a=v(s),d=s==="sha512"||s==="sha384"?128:64;o.length>d?o=a(o):o.length<d&&(o=f.concat([o,p],d));for(var g=f.allocUnsafe(d+m[s]),w=f.allocUnsafe(d+m[s]),k=0;k<d;k++)g[k]=54^o[k],w[k]=92^o[k];var S=f.allocUnsafe(d+h+4);g.copy(S,0,0,d),this.ipad1=S,this.ipad2=g,this.opad=w,this.alg=s,this.blocksize=d,this.hash=a,this.size=m[s]}function v(s){function o(a){return c(s).update(a).digest()}function h(a){return new i().update(a).digest()}return s==="rmd160"||s==="ripemd160"?h:s==="md5"?n:o}function _(s,o,h,a,d){l(h,a);var g=new b(d=d||"sha1",s=y(s,u,"Password"),(o=y(o,u,"Salt")).length),w=f.allocUnsafe(a),k=f.allocUnsafe(o.length+4);o.copy(k,0,0,o.length);for(var S=0,A=m[d],j=Math.ceil(a/A),D=1;D<=j;D++){k.writeUInt32BE(D,o.length);for(var N=g.run(k,g.ipad1),F=N,T=1;T<h;T++){F=g.run(F,g.ipad2);for(var I=0;I<A;I++)N[I]^=F[I]}N.copy(w,S),S+=A}return w}b.prototype.run=function(s,o){return s.copy(o,this.blocksize),this.hash(o).copy(this.opad,this.blocksize),this.hash(this.opad)},r.exports=_},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":332,ripemd160:493,"safe-buffer":494,"sha.js":499}],465:[function(t,r,e){var n=t("safe-buffer").Buffer;r.exports=function(i,c,f){if(n.isBuffer(i))return i;if(typeof i=="string")return n.from(i,c);if(ArrayBuffer.isView(i))return n.from(i.buffer);throw new TypeError(f+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(t,r,e){(function(n){function i(c,f,l,u){if(typeof c!="function")throw new TypeError('"callback" argument must be a function');var y,p,m=arguments.length;switch(m){case 0:case 1:return n.nextTick(c);case 2:return n.nextTick(function(){c.call(null,f)});case 3:return n.nextTick(function(){c.call(null,f,l)});case 4:return n.nextTick(function(){c.call(null,f,l,u)});default:for(y=new Array(m-1),p=0;p<y.length;)y[p++]=arguments[p];return n.nextTick(function(){c.apply(null,y)})}}n===void 0||!n.version||n.version.indexOf("v0.")===0||n.version.indexOf("v1.")===0&&n.version.indexOf("v1.8.")!==0?r.exports={nextTick:i}:r.exports=n}).call(this,t("_process"))},{_process:467}],467:[function(t,r,e){var n,i,c=r.exports={};function f(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function u(a){if(n===setTimeout)return setTimeout(a,0);if((n===f||!n)&&setTimeout)return n=setTimeout,setTimeout(a,0);try{return n(a,0)}catch(d){try{return n.call(null,a,0)}catch(g){return n.call(this,a,0)}}}function y(a){if(i===clearTimeout)return clearTimeout(a);if((i===l||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(a);try{return i(a)}catch(d){try{return i.call(null,a)}catch(g){return i.call(this,a)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:f}catch(a){n=f}try{i=typeof clearTimeout=="function"?clearTimeout:l}catch(a){i=l}})();var p,m=[],b=!1,v=-1;function _(){b&&p&&(b=!1,p.length?m=p.concat(m):v=-1,m.length&&s())}function s(){if(!b){var a=u(_);b=!0;for(var d=m.length;d;){for(p=m,m=[];++v<d;)p&&p[v].run();v=-1,d=m.length}p=null,b=!1,y(a)}}function o(a,d){this.fun=a,this.array=d}function h(){}c.nextTick=function(a){var d=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)d[g-1]=arguments[g];m.push(new o(a,d)),m.length!==1||b||u(s)},o.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=h,c.addListener=h,c.once=h,c.off=h,c.removeListener=h,c.removeAllListeners=h,c.emit=h,c.prependListener=h,c.prependOnceListener=h,c.listeners=function(a){return[]},c.binding=function(a){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(a){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},{}],468:[function(t,r,e){e.publicEncrypt=t("./publicEncrypt"),e.privateDecrypt=t("./privateDecrypt"),e.privateEncrypt=function(n,i){return e.publicEncrypt(n,i,!0)},e.publicDecrypt=function(n,i){return e.privateDecrypt(n,i,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(t,r,e){var n=t("create-hash"),i=t("safe-buffer").Buffer;function c(f){var l=i.allocUnsafe(4);return l.writeUInt32BE(f,0),l}r.exports=function(f,l){for(var u,y=i.alloc(0),p=0;y.length<l;)u=c(p++),y=i.concat([y,n("sha1").update(f).update(u).digest()]);return y.slice(0,l)}},{"create-hash":331,"safe-buffer":494}],470:[function(t,r,e){arguments[4][181][0].apply(e,arguments)},{buffer:185,dup:181}],471:[function(t,r,e){var n=t("parse-asn1"),i=t("./mgf"),c=t("./xor"),f=t("bn.js"),l=t("browserify-rsa"),u=t("create-hash"),y=t("./withPublic"),p=t("safe-buffer").Buffer;function m(_,s){var o=_.modulus.byteLength(),h=u("sha1").update(p.alloc(0)).digest(),a=h.length;if(s[0]!==0)throw new Error("decryption error");var d=s.slice(1,a+1),g=s.slice(a+1),w=c(d,i(g,a)),k=c(g,i(w,o-a-1));if(v(h,k.slice(0,a)))throw new Error("decryption error");for(var S=a;k[S]===0;)S++;if(k[S++]!==1)throw new Error("decryption error");return k.slice(S)}function b(_,s,o){for(var h=s.slice(0,2),a=2,d=0;s[a++]!==0;)if(a>=s.length){d++;break}var g=s.slice(2,a-1);if((h.toString("hex")!=="0002"&&!o||h.toString("hex")!=="0001"&&o)&&d++,g.length<8&&d++,d)throw new Error("decryption error");return s.slice(a)}function v(_,s){_=p.from(_),s=p.from(s);var o=0,h=_.length;_.length!==s.length&&(o++,h=Math.min(_.length,s.length));for(var a=-1;++a<h;)o+=_[a]^s[a];return o}r.exports=function(_,s,o){var h;h=_.padding?_.padding:o?1:4;var a,d=n(_),g=d.modulus.byteLength();if(s.length>g||new f(s).cmp(d.modulus)>=0)throw new Error("decryption error");a=o?y(new f(s),d):l(s,d);var w=p.alloc(g-a.length);if(a=p.concat([w,a],g),h===4)return m(d,a);if(h===1)return b(d,a,o);if(h===3)return a;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":206,"create-hash":331,"parse-asn1":459,"safe-buffer":494}],472:[function(t,r,e){var n=t("parse-asn1"),i=t("randombytes"),c=t("create-hash"),f=t("./mgf"),l=t("./xor"),u=t("bn.js"),y=t("./withPublic"),p=t("browserify-rsa"),m=t("safe-buffer").Buffer;function b(s,o){var h=s.modulus.byteLength(),a=o.length,d=c("sha1").update(m.alloc(0)).digest(),g=d.length,w=2*g;if(a>h-w-2)throw new Error("message too long");var k=m.alloc(h-a-w-2),S=h-g-1,A=i(g),j=l(m.concat([d,k,m.alloc(1,1),o],S),f(A,S)),D=l(A,f(j,g));return new u(m.concat([m.alloc(1),D,j],h))}function v(s,o,h){var a,d=o.length,g=s.modulus.byteLength();if(d>g-11)throw new Error("message too long");return a=h?m.alloc(g-d-3,255):_(g-d-3),new u(m.concat([m.from([0,h?1:2]),a,m.alloc(1),o],g))}function _(s){for(var o,h=m.allocUnsafe(s),a=0,d=i(2*s),g=0;a<s;)g===d.length&&(d=i(2*s),g=0),(o=d[g++])&&(h[a++]=o);return h}r.exports=function(s,o,h){var a;a=s.padding?s.padding:h?1:4;var d,g=n(s);if(a===4)d=b(g,o);else if(a===1)d=v(g,o,h);else{if(a!==3)throw new Error("unknown padding");if((d=new u(o)).cmp(g.modulus)>=0)throw new Error("data too long for modulus")}return h?p(d,g):y(d,g)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":206,"create-hash":331,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(t,r,e){var n=t("bn.js"),i=t("safe-buffer").Buffer;function c(f,l){return i.from(f.toRed(n.mont(l.modulus)).redPow(new n(l.publicExponent)).fromRed().toArray())}r.exports=c},{"bn.js":470,"safe-buffer":494}],474:[function(t,r,e){r.exports=function(n,i){for(var c=n.length,f=-1;++f<c;)n[f]^=i[f];return n}},{}],475:[function(t,r,e){(function(n,i){var c=65536,f=4294967295;function l(){throw new Error(`Secure random number generation is not supported by this browser.
|
||
Use Chrome, Firefox or Internet Explorer 11`)}var u=t("safe-buffer").Buffer,y=i.crypto||i.msCrypto;function p(m,b){if(m>f)throw new RangeError("requested too many random bytes");var v=u.allocUnsafe(m);if(m>0)if(m>c)for(var _=0;_<m;_+=c)y.getRandomValues(v.slice(_,_+c));else y.getRandomValues(v);return typeof b=="function"?n.nextTick(function(){b(null,v)}):v}y&&y.getRandomValues?r.exports=p:r.exports=l}).call(this,t("_process"),dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{_process:467,"safe-buffer":494}],476:[function(t,r,e){(function(n,i){function c(){throw new Error(`secure random number generation not supported by this browser
|
||
use chrome, FireFox or Internet Explorer 11`)}var f=t("safe-buffer"),l=t("randombytes"),u=f.Buffer,y=f.kMaxLength,p=i.crypto||i.msCrypto,m=Math.pow(2,32)-1;function b(h,a){if(typeof h!="number"||h!=h)throw new TypeError("offset must be a number");if(h>m||h<0)throw new TypeError("offset must be a uint32");if(h>y||h>a)throw new RangeError("offset out of range")}function v(h,a,d){if(typeof h!="number"||h!=h)throw new TypeError("size must be a number");if(h>m||h<0)throw new TypeError("size must be a uint32");if(h+a>d||h>y)throw new RangeError("buffer too small")}function _(h,a,d,g){if(!(u.isBuffer(h)||h instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof a=="function")g=a,a=0,d=h.length;else if(typeof d=="function")g=d,d=h.length-a;else if(typeof g!="function")throw new TypeError('"cb" argument must be a function');return b(a,h.length),v(d,a,h.length),s(h,a,d,g)}function s(h,a,d,g){if(n.browser){var w=h.buffer,k=new Uint8Array(w,a,d);return p.getRandomValues(k),g?void n.nextTick(function(){g(null,h)}):h}if(!g)return l(d).copy(h,a),h;l(d,function(S,A){if(S)return g(S);A.copy(h,a),g(null,h)})}function o(h,a,d){if(a===void 0&&(a=0),!(u.isBuffer(h)||h instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return b(a,h.length),d===void 0&&(d=h.length-a),v(d,a,h.length),s(h,a,d)}p&&p.getRandomValues||!n.browser?(e.randomFill=_,e.randomFillSync=o):(e.randomFill=c,e.randomFillSync=c)}).call(this,t("_process"),dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(t,r,e){function n(m){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(m)}function i(m,b){m.prototype=Object.create(b.prototype),m.prototype.constructor=m,m.__proto__=b}var c={};function f(m,b,v){function _(o,h,a){return typeof b=="string"?b:b(o,h,a)}v||(v=Error);var s=function(o){function h(a,d,g){return o.call(this,_(a,d,g))||this}return i(h,o),h}(v);s.prototype.name=v.name,s.prototype.code=m,c[m]=s}function l(m,b){if(Array.isArray(m)){var v=m.length;return m=m.map(function(_){return String(_)}),v>2?"one of ".concat(b," ").concat(m.slice(0,v-1).join(", "),", or ")+m[v-1]:v===2?"one of ".concat(b," ").concat(m[0]," or ").concat(m[1]):"of ".concat(b," ").concat(m[0])}return"of ".concat(b," ").concat(String(m))}function u(m,b,v){return m.substr(!v||v<0?0:+v,b.length)===b}function y(m,b,v){return(v===void 0||v>m.length)&&(v=m.length),m.substring(v-b.length,v)===b}function p(m,b,v){return typeof v!="number"&&(v=0),!(v+b.length>m.length)&&m.indexOf(b,v)!==-1}f("ERR_INVALID_OPT_VALUE",function(m,b){return'The value "'+b+'" is invalid for option "'+m+'"'},TypeError),f("ERR_INVALID_ARG_TYPE",function(m,b,v){var _,s;if(typeof b=="string"&&u(b,"not ")?(_="must not be",b=b.replace(/^not /,"")):_="must be",y(m," argument"))s="The ".concat(m," ").concat(_," ").concat(l(b,"type"));else{var o=p(m,".")?"property":"argument";s='The "'.concat(m,'" ').concat(o," ").concat(_," ").concat(l(b,"type"))}return s+=". Received type ".concat(n(v))},TypeError),f("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),f("ERR_METHOD_NOT_IMPLEMENTED",function(m){return"The "+m+" method is not implemented"}),f("ERR_STREAM_PREMATURE_CLOSE","Premature close"),f("ERR_STREAM_DESTROYED",function(m){return"Cannot call "+m+" after a stream was destroyed"}),f("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),f("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),f("ERR_STREAM_WRITE_AFTER_END","write after end"),f("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),f("ERR_UNKNOWN_ENCODING",function(m){return"Unknown encoding: "+m},TypeError),f("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),r.exports.codes=c},{}],478:[function(t,r,e){(function(n){var i=Object.keys||function(v){var _=[];for(var s in v)_.push(s);return _};r.exports=p;var c=t("./_stream_readable"),f=t("./_stream_writable");t("inherits")(p,c);for(var l=i(f.prototype),u=0;u<l.length;u++){var y=l[u];p.prototype[y]||(p.prototype[y]=f.prototype[y])}function p(v){if(!(this instanceof p))return new p(v);c.call(this,v),f.call(this,v),this.allowHalfOpen=!0,v&&(v.readable===!1&&(this.readable=!1),v.writable===!1&&(this.writable=!1),v.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",m)))}function m(){this._writableState.ended||n.nextTick(b,this)}function b(v){v.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(p.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(p.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(v){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=v,this._writableState.destroyed=v)}})}).call(this,t("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:387}],479:[function(t,r,e){r.exports=i;var n=t("./_stream_transform");function i(c){if(!(this instanceof i))return new i(c);n.call(this,c)}t("inherits")(i,n),i.prototype._transform=function(c,f,l){l(null,c)}},{"./_stream_transform":481,inherits:387}],480:[function(t,r,e){(function(n,i){var c;r.exports=T,T.ReadableState=F,t("events").EventEmitter;var f=function(ot,ut){return ot.listeners(ut).length},l=t("./internal/streams/stream"),u=t("buffer").Buffer,y=i.Uint8Array||function(){};function p(ot){return u.from(ot)}function m(ot){return u.isBuffer(ot)||ot instanceof y}var b,v=t("util");b=v&&v.debuglog?v.debuglog("stream"):function(){};var _,s,o,h=t("./internal/streams/buffer_list"),a=t("./internal/streams/destroy"),d=t("./internal/streams/state").getHighWaterMark,g=t("../errors").codes,w=g.ERR_INVALID_ARG_TYPE,k=g.ERR_STREAM_PUSH_AFTER_EOF,S=g.ERR_METHOD_NOT_IMPLEMENTED,A=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t("inherits")(T,l);var j=a.errorOrDestroy,D=["error","close","destroy","pause","resume"];function N(ot,ut,Mt){if(typeof ot.prependListener=="function")return ot.prependListener(ut,Mt);ot._events&&ot._events[ut]?Array.isArray(ot._events[ut])?ot._events[ut].unshift(Mt):ot._events[ut]=[Mt,ot._events[ut]]:ot.on(ut,Mt)}function F(ot,ut,Mt){c=c||t("./_stream_duplex"),ot=ot||{},typeof Mt!="boolean"&&(Mt=ut instanceof c),this.objectMode=!!ot.objectMode,Mt&&(this.objectMode=this.objectMode||!!ot.readableObjectMode),this.highWaterMark=d(this,ot,"readableHighWaterMark",Mt),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=ot.emitClose!==!1,this.autoDestroy=!!ot.autoDestroy,this.destroyed=!1,this.defaultEncoding=ot.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ot.encoding&&(_||(_=t("string_decoder/").StringDecoder),this.decoder=new _(ot.encoding),this.encoding=ot.encoding)}function T(ot){if(c=c||t("./_stream_duplex"),!(this instanceof T))return new T(ot);var ut=this instanceof c;this._readableState=new F(ot,this,ut),this.readable=!0,ot&&(typeof ot.read=="function"&&(this._read=ot.read),typeof ot.destroy=="function"&&(this._destroy=ot.destroy)),l.call(this)}function I(ot,ut,Mt,Bt,G){b("readableAddChunk",ut);var Z,J=ot._readableState;if(ut===null)J.reading=!1,L(ot,J);else if(G||(Z=O(J,ut)),Z)j(ot,Z);else if(J.objectMode||ut&&ut.length>0)if(typeof ut=="string"||J.objectMode||Object.getPrototypeOf(ut)===u.prototype||(ut=p(ut)),Bt)J.endEmitted?j(ot,new A):x(ot,J,ut,!0);else if(J.ended)j(ot,new k);else{if(J.destroyed)return!1;J.reading=!1,J.decoder&&!Mt?(ut=J.decoder.write(ut),J.objectMode||ut.length!==0?x(ot,J,ut,!1):B(ot,J)):x(ot,J,ut,!1)}else Bt||(J.reading=!1,B(ot,J));return!J.ended&&(J.length<J.highWaterMark||J.length===0)}function x(ot,ut,Mt,Bt){ut.flowing&&ut.length===0&&!ut.sync?(ut.awaitDrain=0,ot.emit("data",Mt)):(ut.length+=ut.objectMode?1:Mt.length,Bt?ut.buffer.unshift(Mt):ut.buffer.push(Mt),ut.needReadable&&H(ot)),B(ot,ut)}function O(ot,ut){var Mt;return m(ut)||typeof ut=="string"||ut===void 0||ot.objectMode||(Mt=new w("chunk",["string","Buffer","Uint8Array"],ut)),Mt}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(ot){this._readableState&&(this._readableState.destroyed=ot)}}),T.prototype.destroy=a.destroy,T.prototype._undestroy=a.undestroy,T.prototype._destroy=function(ot,ut){ut(ot)},T.prototype.push=function(ot,ut){var Mt,Bt=this._readableState;return Bt.objectMode?Mt=!0:typeof ot=="string"&&((ut=ut||Bt.defaultEncoding)!==Bt.encoding&&(ot=u.from(ot,ut),ut=""),Mt=!0),I(this,ot,ut,!1,Mt)},T.prototype.unshift=function(ot){return I(this,ot,null,!0,!1)},T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(ot){_||(_=t("string_decoder/").StringDecoder);var ut=new _(ot);this._readableState.decoder=ut,this._readableState.encoding=this._readableState.decoder.encoding;for(var Mt=this._readableState.buffer.head,Bt="";Mt!==null;)Bt+=ut.write(Mt.data),Mt=Mt.next;return this._readableState.buffer.clear(),Bt!==""&&this._readableState.buffer.push(Bt),this._readableState.length=Bt.length,this};var R=1073741824;function C(ot){return ot>=R?ot=R:(ot--,ot|=ot>>>1,ot|=ot>>>2,ot|=ot>>>4,ot|=ot>>>8,ot|=ot>>>16,ot++),ot}function P(ot,ut){return ot<=0||ut.length===0&&ut.ended?0:ut.objectMode?1:ot!=ot?ut.flowing&&ut.length?ut.buffer.head.data.length:ut.length:(ot>ut.highWaterMark&&(ut.highWaterMark=C(ot)),ot<=ut.length?ot:ut.ended?ut.length:(ut.needReadable=!0,0))}function L(ot,ut){if(b("onEofChunk"),!ut.ended){if(ut.decoder){var Mt=ut.decoder.end();Mt&&Mt.length&&(ut.buffer.push(Mt),ut.length+=ut.objectMode?1:Mt.length)}ut.ended=!0,ut.sync?H(ot):(ut.needReadable=!1,ut.emittedReadable||(ut.emittedReadable=!0,U(ot)))}}function H(ot){var ut=ot._readableState;b("emitReadable",ut.needReadable,ut.emittedReadable),ut.needReadable=!1,ut.emittedReadable||(b("emitReadable",ut.flowing),ut.emittedReadable=!0,n.nextTick(U,ot))}function U(ot){var ut=ot._readableState;b("emitReadable_",ut.destroyed,ut.length,ut.ended),ut.destroyed||!ut.length&&!ut.ended||(ot.emit("readable"),ut.emittedReadable=!1),ut.needReadable=!ut.flowing&&!ut.ended&&ut.length<=ut.highWaterMark,rt(ot)}function B(ot,ut){ut.readingMore||(ut.readingMore=!0,n.nextTick(W,ot,ut))}function W(ot,ut){for(;!ut.reading&&!ut.ended&&(ut.length<ut.highWaterMark||ut.flowing&&ut.length===0);){var Mt=ut.length;if(b("maybeReadMore read 0"),ot.read(0),Mt===ut.length)break}ut.readingMore=!1}function X(ot){return function(){var ut=ot._readableState;b("pipeOnDrain",ut.awaitDrain),ut.awaitDrain&&ut.awaitDrain--,ut.awaitDrain===0&&f(ot,"data")&&(ut.flowing=!0,rt(ot))}}function et(ot){var ut=ot._readableState;ut.readableListening=ot.listenerCount("readable")>0,ut.resumeScheduled&&!ut.paused?ut.flowing=!0:ot.listenerCount("data")>0&&ot.resume()}function ft(ot){b("readable nexttick read 0"),ot.read(0)}function gt(ot,ut){ut.resumeScheduled||(ut.resumeScheduled=!0,n.nextTick(bt,ot,ut))}function bt(ot,ut){b("resume",ut.reading),ut.reading||ot.read(0),ut.resumeScheduled=!1,ot.emit("resume"),rt(ot),ut.flowing&&!ut.reading&&ot.read(0)}function rt(ot){var ut=ot._readableState;for(b("flow",ut.flowing);ut.flowing&&ot.read()!==null;);}function Q(ot,ut){return ut.length===0?null:(ut.objectMode?Mt=ut.buffer.shift():!ot||ot>=ut.length?(Mt=ut.decoder?ut.buffer.join(""):ut.buffer.length===1?ut.buffer.first():ut.buffer.concat(ut.length),ut.buffer.clear()):Mt=ut.buffer.consume(ot,ut.decoder),Mt);var Mt}function K(ot){var ut=ot._readableState;b("endReadable",ut.endEmitted),ut.endEmitted||(ut.ended=!0,n.nextTick(nt,ut,ot))}function nt(ot,ut){if(b("endReadableNT",ot.endEmitted,ot.length),!ot.endEmitted&&ot.length===0&&(ot.endEmitted=!0,ut.readable=!1,ut.emit("end"),ot.autoDestroy)){var Mt=ut._writableState;(!Mt||Mt.autoDestroy&&Mt.finished)&&ut.destroy()}}function At(ot,ut){for(var Mt=0,Bt=ot.length;Mt<Bt;Mt++)if(ot[Mt]===ut)return Mt;return-1}T.prototype.read=function(ot){b("read",ot),ot=parseInt(ot,10);var ut=this._readableState,Mt=ot;if(ot!==0&&(ut.emittedReadable=!1),ot===0&&ut.needReadable&&((ut.highWaterMark!==0?ut.length>=ut.highWaterMark:ut.length>0)||ut.ended))return b("read: emitReadable",ut.length,ut.ended),ut.length===0&&ut.ended?K(this):H(this),null;if((ot=P(ot,ut))===0&&ut.ended)return ut.length===0&&K(this),null;var Bt,G=ut.needReadable;return b("need readable",G),(ut.length===0||ut.length-ot<ut.highWaterMark)&&b("length less than watermark",G=!0),ut.ended||ut.reading?b("reading or ended",G=!1):G&&(b("do read"),ut.reading=!0,ut.sync=!0,ut.length===0&&(ut.needReadable=!0),this._read(ut.highWaterMark),ut.sync=!1,ut.reading||(ot=P(Mt,ut))),(Bt=ot>0?Q(ot,ut):null)===null?(ut.needReadable=ut.length<=ut.highWaterMark,ot=0):(ut.length-=ot,ut.awaitDrain=0),ut.length===0&&(ut.ended||(ut.needReadable=!0),Mt!==ot&&ut.ended&&K(this)),Bt!==null&&this.emit("data",Bt),Bt},T.prototype._read=function(ot){j(this,new S("_read()"))},T.prototype.pipe=function(ot,ut){var Mt=this,Bt=this._readableState;switch(Bt.pipesCount){case 0:Bt.pipes=ot;break;case 1:Bt.pipes=[Bt.pipes,ot];break;default:Bt.pipes.push(ot)}Bt.pipesCount+=1,b("pipe count=%d opts=%j",Bt.pipesCount,ut);var G=ut&&ut.end===!1||ot===n.stdout||ot===n.stderr?ie:J;function Z(ct,pt){b("onunpipe"),ct===Mt&&pt&&pt.hasUnpiped===!1&&(pt.hasUnpiped=!0,Ft())}function J(){b("onend"),ot.end()}Bt.endEmitted?n.nextTick(G):Mt.once("end",G),ot.on("unpipe",Z);var St=X(Mt);ot.on("drain",St);var It=!1;function Ft(){b("cleanup"),ot.removeListener("close",fe),ot.removeListener("finish",Kt),ot.removeListener("drain",St),ot.removeListener("error",me),ot.removeListener("unpipe",Z),Mt.removeListener("end",J),Mt.removeListener("end",ie),Mt.removeListener("data",Xt),It=!0,!Bt.awaitDrain||ot._writableState&&!ot._writableState.needDrain||St()}function Xt(ct){b("ondata");var pt=ot.write(ct);b("dest.write",pt),pt===!1&&((Bt.pipesCount===1&&Bt.pipes===ot||Bt.pipesCount>1&&At(Bt.pipes,ot)!==-1)&&!It&&(b("false write response, pause",Bt.awaitDrain),Bt.awaitDrain++),Mt.pause())}function me(ct){b("onerror",ct),ie(),ot.removeListener("error",me),f(ot,"error")===0&&j(ot,ct)}function fe(){ot.removeListener("finish",Kt),ie()}function Kt(){b("onfinish"),ot.removeListener("close",fe),ie()}function ie(){b("unpipe"),Mt.unpipe(ot)}return Mt.on("data",Xt),N(ot,"error",me),ot.once("close",fe),ot.once("finish",Kt),ot.emit("pipe",Mt),Bt.flowing||(b("pipe resume"),Mt.resume()),ot},T.prototype.unpipe=function(ot){var ut=this._readableState,Mt={hasUnpiped:!1};if(ut.pipesCount===0)return this;if(ut.pipesCount===1)return ot&&ot!==ut.pipes||(ot||(ot=ut.pipes),ut.pipes=null,ut.pipesCount=0,ut.flowing=!1,ot&&ot.emit("unpipe",this,Mt)),this;if(!ot){var Bt=ut.pipes,G=ut.pipesCount;ut.pipes=null,ut.pipesCount=0,ut.flowing=!1;for(var Z=0;Z<G;Z++)Bt[Z].emit("unpipe",this,{hasUnpiped:!1});return this}var J=At(ut.pipes,ot);return J===-1||(ut.pipes.splice(J,1),ut.pipesCount-=1,ut.pipesCount===1&&(ut.pipes=ut.pipes[0]),ot.emit("unpipe",this,Mt)),this},T.prototype.on=function(ot,ut){var Mt=l.prototype.on.call(this,ot,ut),Bt=this._readableState;return ot==="data"?(Bt.readableListening=this.listenerCount("readable")>0,Bt.flowing!==!1&&this.resume()):ot==="readable"&&(Bt.endEmitted||Bt.readableListening||(Bt.readableListening=Bt.needReadable=!0,Bt.flowing=!1,Bt.emittedReadable=!1,b("on readable",Bt.length,Bt.reading),Bt.length?H(this):Bt.reading||n.nextTick(ft,this))),Mt},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(ot,ut){var Mt=l.prototype.removeListener.call(this,ot,ut);return ot==="readable"&&n.nextTick(et,this),Mt},T.prototype.removeAllListeners=function(ot){var ut=l.prototype.removeAllListeners.apply(this,arguments);return ot!=="readable"&&ot!==void 0||n.nextTick(et,this),ut},T.prototype.resume=function(){var ot=this._readableState;return ot.flowing||(b("resume"),ot.flowing=!ot.readableListening,gt(this,ot)),ot.paused=!1,this},T.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(ot){var ut=this,Mt=this._readableState,Bt=!1;for(var G in ot.on("end",function(){if(b("wrapped end"),Mt.decoder&&!Mt.ended){var J=Mt.decoder.end();J&&J.length&&ut.push(J)}ut.push(null)}),ot.on("data",function(J){b("wrapped data"),Mt.decoder&&(J=Mt.decoder.write(J)),Mt.objectMode&&J==null||(Mt.objectMode||J&&J.length)&&(ut.push(J)||(Bt=!0,ot.pause()))}),ot)this[G]===void 0&&typeof ot[G]=="function"&&(this[G]=function(J){return function(){return ot[J].apply(ot,arguments)}}(G));for(var Z=0;Z<D.length;Z++)ot.on(D[Z],this.emit.bind(this,D[Z]));return this._read=function(J){b("wrapped _read",J),Bt&&(Bt=!1,ot.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return s===void 0&&(s=t("./internal/streams/async_iterator")),s(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(ot){this._readableState&&(this._readableState.flowing=ot)}}),T._fromList=Q,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(T.from=function(ot,ut){return o===void 0&&(o=t("./internal/streams/from")),o(T,ot,ut)})}).call(this,t("_process"),dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:216,events:367,inherits:387,"string_decoder/":520,util:185}],481:[function(t,r,e){r.exports=p;var n=t("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,c=n.ERR_MULTIPLE_CALLBACK,f=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,l=n.ERR_TRANSFORM_WITH_LENGTH_0,u=t("./_stream_duplex");function y(v,_){var s=this._transformState;s.transforming=!1;var o=s.writecb;if(o===null)return this.emit("error",new c);s.writechunk=null,s.writecb=null,_!=null&&this.push(_),o(v);var h=this._readableState;h.reading=!1,(h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}function p(v){if(!(this instanceof p))return new p(v);u.call(this,v),this._transformState={afterTransform:y.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,v&&(typeof v.transform=="function"&&(this._transform=v.transform),typeof v.flush=="function"&&(this._flush=v.flush)),this.on("prefinish",m)}function m(){var v=this;typeof this._flush!="function"||this._readableState.destroyed?b(this,null,null):this._flush(function(_,s){b(v,_,s)})}function b(v,_,s){if(_)return v.emit("error",_);if(s!=null&&v.push(s),v._writableState.length)throw new l;if(v._transformState.transforming)throw new f;return v.push(null)}t("inherits")(p,u),p.prototype.push=function(v,_){return this._transformState.needTransform=!1,u.prototype.push.call(this,v,_)},p.prototype._transform=function(v,_,s){s(new i("_transform()"))},p.prototype._write=function(v,_,s){var o=this._transformState;if(o.writecb=s,o.writechunk=v,o.writeencoding=_,!o.transforming){var h=this._readableState;(o.needTransform||h.needReadable||h.length<h.highWaterMark)&&this._read(h.highWaterMark)}},p.prototype._read=function(v){var _=this._transformState;_.writechunk===null||_.transforming?_.needTransform=!0:(_.transforming=!0,this._transform(_.writechunk,_.writeencoding,_.afterTransform))},p.prototype._destroy=function(v,_){u.prototype._destroy.call(this,v,function(s){_(s)})}},{"../errors":477,"./_stream_duplex":478,inherits:387}],482:[function(t,r,e){(function(n,i){function c(rt){var Q=this;this.next=null,this.entry=null,this.finish=function(){bt(Q,rt)}}var f;r.exports=F,F.WritableState=N;var l={deprecate:t("util-deprecate")},u=t("./internal/streams/stream"),y=t("buffer").Buffer,p=i.Uint8Array||function(){};function m(rt){return y.from(rt)}function b(rt){return y.isBuffer(rt)||rt instanceof p}var v,_=t("./internal/streams/destroy"),s=t("./internal/streams/state").getHighWaterMark,o=t("../errors").codes,h=o.ERR_INVALID_ARG_TYPE,a=o.ERR_METHOD_NOT_IMPLEMENTED,d=o.ERR_MULTIPLE_CALLBACK,g=o.ERR_STREAM_CANNOT_PIPE,w=o.ERR_STREAM_DESTROYED,k=o.ERR_STREAM_NULL_VALUES,S=o.ERR_STREAM_WRITE_AFTER_END,A=o.ERR_UNKNOWN_ENCODING,j=_.errorOrDestroy;function D(){}function N(rt,Q,K){f=f||t("./_stream_duplex"),rt=rt||{},typeof K!="boolean"&&(K=Q instanceof f),this.objectMode=!!rt.objectMode,K&&(this.objectMode=this.objectMode||!!rt.writableObjectMode),this.highWaterMark=s(this,rt,"writableHighWaterMark",K),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var nt=rt.decodeStrings===!1;this.decodeStrings=!nt,this.defaultEncoding=rt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(At){L(Q,At)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=rt.emitClose!==!1,this.autoDestroy=!!rt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new c(this)}function F(rt){var Q=this instanceof(f=f||t("./_stream_duplex"));if(!Q&&!v.call(F,this))return new F(rt);this._writableState=new N(rt,this,Q),this.writable=!0,rt&&(typeof rt.write=="function"&&(this._write=rt.write),typeof rt.writev=="function"&&(this._writev=rt.writev),typeof rt.destroy=="function"&&(this._destroy=rt.destroy),typeof rt.final=="function"&&(this._final=rt.final)),u.call(this)}function T(rt,Q){var K=new S;j(rt,K),n.nextTick(Q,K)}function I(rt,Q,K,nt){var At;return K===null?At=new k:typeof K=="string"||Q.objectMode||(At=new h("chunk",["string","Buffer"],K)),!At||(j(rt,At),n.nextTick(nt,At),!1)}function x(rt,Q,K){return rt.objectMode||rt.decodeStrings===!1||typeof Q!="string"||(Q=y.from(Q,K)),Q}function O(rt,Q,K,nt,At,ot){if(!K){var ut=x(Q,nt,At);nt!==ut&&(K=!0,At="buffer",nt=ut)}var Mt=Q.objectMode?1:nt.length;Q.length+=Mt;var Bt=Q.length<Q.highWaterMark;if(Bt||(Q.needDrain=!0),Q.writing||Q.corked){var G=Q.lastBufferedRequest;Q.lastBufferedRequest={chunk:nt,encoding:At,isBuf:K,callback:ot,next:null},G?G.next=Q.lastBufferedRequest:Q.bufferedRequest=Q.lastBufferedRequest,Q.bufferedRequestCount+=1}else R(rt,Q,!1,Mt,nt,At,ot);return Bt}function R(rt,Q,K,nt,At,ot,ut){Q.writelen=nt,Q.writecb=ut,Q.writing=!0,Q.sync=!0,Q.destroyed?Q.onwrite(new w("write")):K?rt._writev(At,Q.onwrite):rt._write(At,ot,Q.onwrite),Q.sync=!1}function C(rt,Q,K,nt,At){--Q.pendingcb,K?(n.nextTick(At,nt),n.nextTick(ft,rt,Q),rt._writableState.errorEmitted=!0,j(rt,nt)):(At(nt),rt._writableState.errorEmitted=!0,j(rt,nt),ft(rt,Q))}function P(rt){rt.writing=!1,rt.writecb=null,rt.length-=rt.writelen,rt.writelen=0}function L(rt,Q){var K=rt._writableState,nt=K.sync,At=K.writecb;if(typeof At!="function")throw new d;if(P(K),Q)C(rt,K,nt,Q,At);else{var ot=W(K)||rt.destroyed;ot||K.corked||K.bufferProcessing||!K.bufferedRequest||B(rt,K),nt?n.nextTick(H,rt,K,ot,At):H(rt,K,ot,At)}}function H(rt,Q,K,nt){K||U(rt,Q),Q.pendingcb--,nt(),ft(rt,Q)}function U(rt,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,rt.emit("drain"))}function B(rt,Q){Q.bufferProcessing=!0;var K=Q.bufferedRequest;if(rt._writev&&K&&K.next){var nt=Q.bufferedRequestCount,At=new Array(nt),ot=Q.corkedRequestsFree;ot.entry=K;for(var ut=0,Mt=!0;K;)At[ut]=K,K.isBuf||(Mt=!1),K=K.next,ut+=1;At.allBuffers=Mt,R(rt,Q,!0,Q.length,At,"",ot.finish),Q.pendingcb++,Q.lastBufferedRequest=null,ot.next?(Q.corkedRequestsFree=ot.next,ot.next=null):Q.corkedRequestsFree=new c(Q),Q.bufferedRequestCount=0}else{for(;K;){var Bt=K.chunk,G=K.encoding,Z=K.callback;if(R(rt,Q,!1,Q.objectMode?1:Bt.length,Bt,G,Z),K=K.next,Q.bufferedRequestCount--,Q.writing)break}K===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=K,Q.bufferProcessing=!1}function W(rt){return rt.ending&&rt.length===0&&rt.bufferedRequest===null&&!rt.finished&&!rt.writing}function X(rt,Q){rt._final(function(K){Q.pendingcb--,K&&j(rt,K),Q.prefinished=!0,rt.emit("prefinish"),ft(rt,Q)})}function et(rt,Q){Q.prefinished||Q.finalCalled||(typeof rt._final!="function"||Q.destroyed?(Q.prefinished=!0,rt.emit("prefinish")):(Q.pendingcb++,Q.finalCalled=!0,n.nextTick(X,rt,Q)))}function ft(rt,Q){var K=W(Q);if(K&&(et(rt,Q),Q.pendingcb===0&&(Q.finished=!0,rt.emit("finish"),Q.autoDestroy))){var nt=rt._readableState;(!nt||nt.autoDestroy&&nt.endEmitted)&&rt.destroy()}return K}function gt(rt,Q,K){Q.ending=!0,ft(rt,Q),K&&(Q.finished?n.nextTick(K):rt.once("finish",K)),Q.ended=!0,rt.writable=!1}function bt(rt,Q,K){var nt=rt.entry;for(rt.entry=null;nt;){var At=nt.callback;Q.pendingcb--,At(K),nt=nt.next}Q.corkedRequestsFree.next=rt}t("inherits")(F,u),N.prototype.getBuffer=function(){for(var rt=this.bufferedRequest,Q=[];rt;)Q.push(rt),rt=rt.next;return Q},function(){try{Object.defineProperty(N.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(rt){}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(v=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(rt){return!!v.call(this,rt)||this===F&&rt&&rt._writableState instanceof N}})):v=function(rt){return rt instanceof this},F.prototype.pipe=function(){j(this,new g)},F.prototype.write=function(rt,Q,K){var nt=this._writableState,At=!1,ot=!nt.objectMode&&b(rt);return ot&&!y.isBuffer(rt)&&(rt=m(rt)),typeof Q=="function"&&(K=Q,Q=null),ot?Q="buffer":Q||(Q=nt.defaultEncoding),typeof K!="function"&&(K=D),nt.ending?T(this,K):(ot||I(this,nt,rt,K))&&(nt.pendingcb++,At=O(this,nt,ot,rt,Q,K)),At},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){var rt=this._writableState;rt.corked&&(rt.corked--,rt.writing||rt.corked||rt.bufferProcessing||!rt.bufferedRequest||B(this,rt))},F.prototype.setDefaultEncoding=function(rt){if(typeof rt=="string"&&(rt=rt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((rt+"").toLowerCase())>-1))throw new A(rt);return this._writableState.defaultEncoding=rt,this},Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),F.prototype._write=function(rt,Q,K){K(new a("_write()"))},F.prototype._writev=null,F.prototype.end=function(rt,Q,K){var nt=this._writableState;return typeof rt=="function"?(K=rt,rt=null,Q=null):typeof Q=="function"&&(K=Q,Q=null),rt!=null&&this.write(rt,Q),nt.corked&&(nt.corked=1,this.uncork()),nt.ending||gt(this,nt,K),this},Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(rt){this._writableState&&(this._writableState.destroyed=rt)}}),F.prototype.destroy=_.destroy,F.prototype._undestroy=_.undestroy,F.prototype._destroy=function(rt,Q){Q(rt)}}).call(this,t("_process"),dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:216,inherits:387,"util-deprecate":522}],483:[function(t,r,e){(function(n){var i;function c(w,k,S){return k in w?Object.defineProperty(w,k,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[k]=S,w}var f=t("./end-of-stream"),l=Symbol("lastResolve"),u=Symbol("lastReject"),y=Symbol("error"),p=Symbol("ended"),m=Symbol("lastPromise"),b=Symbol("handlePromise"),v=Symbol("stream");function _(w,k){return{value:w,done:k}}function s(w){var k=w[l];if(k!==null){var S=w[v].read();S!==null&&(w[m]=null,w[l]=null,w[u]=null,k(_(S,!1)))}}function o(w){n.nextTick(s,w)}function h(w,k){return function(S,A){w.then(function(){k[p]?S(_(void 0,!0)):k[b](S,A)},A)}}var a=Object.getPrototypeOf(function(){}),d=Object.setPrototypeOf((c(i={get stream(){return this[v]},next:function(){var w=this,k=this[y];if(k!==null)return Promise.reject(k);if(this[p])return Promise.resolve(_(void 0,!0));if(this[v].destroyed)return new Promise(function(D,N){n.nextTick(function(){w[y]?N(w[y]):D(_(void 0,!0))})});var S,A=this[m];if(A)S=new Promise(h(A,this));else{var j=this[v].read();if(j!==null)return Promise.resolve(_(j,!1));S=new Promise(this[b])}return this[m]=S,S}},Symbol.asyncIterator,function(){return this}),c(i,"return",function(){var w=this;return new Promise(function(k,S){w[v].destroy(null,function(A){A?S(A):k(_(void 0,!0))})})}),i),a),g=function(w){var k,S=Object.create(d,(c(k={},v,{value:w,writable:!0}),c(k,l,{value:null,writable:!0}),c(k,u,{value:null,writable:!0}),c(k,y,{value:null,writable:!0}),c(k,p,{value:w._readableState.endEmitted,writable:!0}),c(k,b,{value:function(A,j){var D=S[v].read();D?(S[m]=null,S[l]=null,S[u]=null,A(_(D,!1))):(S[l]=A,S[u]=j)},writable:!0}),k));return S[m]=null,f(w,function(A){if(A&&A.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=S[u];return j!==null&&(S[m]=null,S[l]=null,S[u]=null,j(A)),void(S[y]=A)}var D=S[l];D!==null&&(S[m]=null,S[l]=null,S[u]=null,D(_(void 0,!0))),S[p]=!0}),w.on("readable",o.bind(null,S)),S};r.exports=g}).call(this,t("_process"))},{"./end-of-stream":486,_process:467}],484:[function(t,r,e){function n(v,_){var s=Object.keys(v);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(v);_&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(v,h).enumerable})),s.push.apply(s,o)}return s}function i(v){for(var _=1;_<arguments.length;_++){var s=arguments[_]!=null?arguments[_]:{};_%2?n(Object(s),!0).forEach(function(o){c(v,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(s)):n(Object(s)).forEach(function(o){Object.defineProperty(v,o,Object.getOwnPropertyDescriptor(s,o))})}return v}function c(v,_,s){return _ in v?Object.defineProperty(v,_,{value:s,enumerable:!0,configurable:!0,writable:!0}):v[_]=s,v}function f(v,_){if(!(v instanceof _))throw new TypeError("Cannot call a class as a function")}function l(v,_){for(var s=0;s<_.length;s++){var o=_[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(v,o.key,o)}}function u(v,_,s){return _&&l(v.prototype,_),s&&l(v,s),v}var y=t("buffer").Buffer,p=t("util").inspect,m=p&&p.custom||"inspect";function b(v,_,s){y.prototype.copy.call(v,_,s)}r.exports=function(){function v(){f(this,v),this.head=null,this.tail=null,this.length=0}return u(v,[{key:"push",value:function(_){var s={data:_,next:null};this.length>0?this.tail.next=s:this.head=s,this.tail=s,++this.length}},{key:"unshift",value:function(_){var s={data:_,next:this.head};this.length===0&&(this.tail=s),this.head=s,++this.length}},{key:"shift",value:function(){if(this.length!==0){var _=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,_}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(_){if(this.length===0)return"";for(var s=this.head,o=""+s.data;s=s.next;)o+=_+s.data;return o}},{key:"concat",value:function(_){if(this.length===0)return y.alloc(0);for(var s=y.allocUnsafe(_>>>0),o=this.head,h=0;o;)b(o.data,s,h),h+=o.data.length,o=o.next;return s}},{key:"consume",value:function(_,s){var o;return _<this.head.data.length?(o=this.head.data.slice(0,_),this.head.data=this.head.data.slice(_)):o=_===this.head.data.length?this.shift():s?this._getString(_):this._getBuffer(_),o}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(_){var s=this.head,o=1,h=s.data;for(_-=h.length;s=s.next;){var a=s.data,d=_>a.length?a.length:_;if(d===a.length?h+=a:h+=a.slice(0,_),(_-=d)==0){d===a.length?(++o,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=a.slice(d));break}++o}return this.length-=o,h}},{key:"_getBuffer",value:function(_){var s=y.allocUnsafe(_),o=this.head,h=1;for(o.data.copy(s),_-=o.data.length;o=o.next;){var a=o.data,d=_>a.length?a.length:_;if(a.copy(s,s.length-_,0,d),(_-=d)==0){d===a.length?(++h,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=a.slice(d));break}++h}return this.length-=h,s}},{key:m,value:function(_,s){return p(this,i({},s,{depth:0,customInspect:!1}))}}]),v}()},{buffer:216,util:185}],485:[function(t,r,e){(function(n){function i(p,m){var b=this,v=this._readableState&&this._readableState.destroyed,_=this._writableState&&this._writableState.destroyed;return v||_?(m?m(p):p&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(u,this,p)):n.nextTick(u,this,p)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(p||null,function(s){!m&&s?b._writableState?b._writableState.errorEmitted?n.nextTick(f,b):(b._writableState.errorEmitted=!0,n.nextTick(c,b,s)):n.nextTick(c,b,s):m?(n.nextTick(f,b),m(s)):n.nextTick(f,b)}),this)}function c(p,m){u(p,m),f(p)}function f(p){p._writableState&&!p._writableState.emitClose||p._readableState&&!p._readableState.emitClose||p.emit("close")}function l(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function u(p,m){p.emit("error",m)}function y(p,m){var b=p._readableState,v=p._writableState;b&&b.autoDestroy||v&&v.autoDestroy?p.destroy(m):p.emit("error",m)}r.exports={destroy:i,undestroy:l,errorOrDestroy:y}}).call(this,t("_process"))},{_process:467}],486:[function(t,r,e){var n=t("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(u){var y=!1;return function(){if(!y){y=!0;for(var p=arguments.length,m=new Array(p),b=0;b<p;b++)m[b]=arguments[b];u.apply(this,m)}}}function c(){}function f(u){return u.setHeader&&typeof u.abort=="function"}function l(u,y,p){if(typeof y=="function")return l(u,null,y);y||(y={}),p=i(p||c);var m=y.readable||y.readable!==!1&&u.readable,b=y.writable||y.writable!==!1&&u.writable,v=function(){u.writable||s()},_=u._writableState&&u._writableState.finished,s=function(){b=!1,_=!0,m||p.call(u)},o=u._readableState&&u._readableState.endEmitted,h=function(){m=!1,o=!0,b||p.call(u)},a=function(w){p.call(u,w)},d=function(){var w;return m&&!o?(u._readableState&&u._readableState.ended||(w=new n),p.call(u,w)):b&&!_?(u._writableState&&u._writableState.ended||(w=new n),p.call(u,w)):void 0},g=function(){u.req.on("finish",s)};return f(u)?(u.on("complete",s),u.on("abort",d),u.req?g():u.on("request",g)):b&&!u._writableState&&(u.on("end",v),u.on("close",v)),u.on("end",h),u.on("finish",s),y.error!==!1&&u.on("error",a),u.on("close",d),function(){u.removeListener("complete",s),u.removeListener("abort",d),u.removeListener("request",g),u.req&&u.req.removeListener("finish",s),u.removeListener("end",v),u.removeListener("close",v),u.removeListener("finish",s),u.removeListener("end",h),u.removeListener("error",a),u.removeListener("close",d)}}r.exports=l},{"../../../errors":477}],487:[function(t,r,e){r.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(t,r,e){var n;function i(s){var o=!1;return function(){o||(o=!0,s.apply(void 0,arguments))}}var c=t("../../../errors").codes,f=c.ERR_MISSING_ARGS,l=c.ERR_STREAM_DESTROYED;function u(s){if(s)throw s}function y(s){return s.setHeader&&typeof s.abort=="function"}function p(s,o,h,a){a=i(a);var d=!1;s.on("close",function(){d=!0}),n===void 0&&(n=t("./end-of-stream")),n(s,{readable:o,writable:h},function(w){if(w)return a(w);d=!0,a()});var g=!1;return function(w){if(!d&&!g)return g=!0,y(s)?s.abort():typeof s.destroy=="function"?s.destroy():void a(w||new l("pipe"))}}function m(s){s()}function b(s,o){return s.pipe(o)}function v(s){return s.length?typeof s[s.length-1]!="function"?u:s.pop():u}function _(){for(var s=arguments.length,o=new Array(s),h=0;h<s;h++)o[h]=arguments[h];var a,d=v(o);if(Array.isArray(o[0])&&(o=o[0]),o.length<2)throw new f("streams");var g=o.map(function(w,k){var S=k<o.length-1;return p(w,S,k>0,function(A){a||(a=A),A&&g.forEach(m),S||(g.forEach(m),d(a))})});return o.reduce(b)}r.exports=_},{"../../../errors":477,"./end-of-stream":486}],489:[function(t,r,e){var n=t("../../../errors").codes.ERR_INVALID_OPT_VALUE;function i(f,l,u){return f.highWaterMark!=null?f.highWaterMark:l?f[u]:null}function c(f,l,u,y){var p=i(l,y,u);if(p!=null){if(!isFinite(p)||Math.floor(p)!==p||p<0)throw new n(y?u:"highWaterMark",p);return Math.floor(p)}return f.objectMode?16:16384}r.exports={getHighWaterMark:c}},{"../../../errors":477}],490:[function(t,r,e){r.exports=t("events").EventEmitter},{events:367}],491:[function(t,r,e){(e=r.exports=t("./lib/_stream_readable.js")).Stream=e,e.Readable=e,e.Writable=t("./lib/_stream_writable.js"),e.Duplex=t("./lib/_stream_duplex.js"),e.Transform=t("./lib/_stream_transform.js"),e.PassThrough=t("./lib/_stream_passthrough.js"),e.finished=t("./lib/internal/streams/end-of-stream.js"),e.pipeline=t("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(t,r,e){function n(c){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(c)}var i=function(c){var f,l=Object.prototype,u=l.hasOwnProperty,y=typeof Symbol=="function"?Symbol:{},p=y.iterator||"@@iterator",m=y.asyncIterator||"@@asyncIterator",b=y.toStringTag||"@@toStringTag";function v(H,U,B){return Object.defineProperty(H,U,{value:B,enumerable:!0,configurable:!0,writable:!0}),H[U]}try{v({},"")}catch(H){v=function(U,B,W){return U[B]=W}}function _(H,U,B,W){var X=U&&U.prototype instanceof w?U:w,et=Object.create(X.prototype),ft=new C(W||[]);return et._invoke=I(H,B,ft),et}function s(H,U,B){try{return{type:"normal",arg:H.call(U,B)}}catch(W){return{type:"throw",arg:W}}}c.wrap=_;var o="suspendedStart",h="suspendedYield",a="executing",d="completed",g={};function w(){}function k(){}function S(){}var A={};A[p]=function(){return this};var j=Object.getPrototypeOf,D=j&&j(j(P([])));D&&D!==l&&u.call(D,p)&&(A=D);var N=S.prototype=w.prototype=Object.create(A);function F(H){["next","throw","return"].forEach(function(U){v(H,U,function(B){return this._invoke(U,B)})})}function T(H,U){function B(et,ft,gt,bt){var rt=s(H[et],H,ft);if(rt.type!=="throw"){var Q=rt.arg,K=Q.value;return K&&n(K)==="object"&&u.call(K,"__await")?U.resolve(K.__await).then(function(nt){B("next",nt,gt,bt)},function(nt){B("throw",nt,gt,bt)}):U.resolve(K).then(function(nt){Q.value=nt,gt(Q)},function(nt){return B("throw",nt,gt,bt)})}bt(rt.arg)}var W;function X(et,ft){function gt(){return new U(function(bt,rt){B(et,ft,bt,rt)})}return W=W?W.then(gt,gt):gt()}this._invoke=X}function I(H,U,B){var W=o;return function(X,et){if(W===a)throw new Error("Generator is already running");if(W===d){if(X==="throw")throw et;return L()}for(B.method=X,B.arg=et;;){var ft=B.delegate;if(ft){var gt=x(ft,B);if(gt){if(gt===g)continue;return gt}}if(B.method==="next")B.sent=B._sent=B.arg;else if(B.method==="throw"){if(W===o)throw W=d,B.arg;B.dispatchException(B.arg)}else B.method==="return"&&B.abrupt("return",B.arg);W=a;var bt=s(H,U,B);if(bt.type==="normal"){if(W=B.done?d:h,bt.arg===g)continue;return{value:bt.arg,done:B.done}}bt.type==="throw"&&(W=d,B.method="throw",B.arg=bt.arg)}}}function x(H,U){var B=H.iterator[U.method];if(B===f){if(U.delegate=null,U.method==="throw"){if(H.iterator.return&&(U.method="return",U.arg=f,x(H,U),U.method==="throw"))return g;U.method="throw",U.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var W=s(B,H.iterator,U.arg);if(W.type==="throw")return U.method="throw",U.arg=W.arg,U.delegate=null,g;var X=W.arg;return X?X.done?(U[H.resultName]=X.value,U.next=H.nextLoc,U.method!=="return"&&(U.method="next",U.arg=f),U.delegate=null,g):X:(U.method="throw",U.arg=new TypeError("iterator result is not an object"),U.delegate=null,g)}function O(H){var U={tryLoc:H[0]};1 in H&&(U.catchLoc=H[1]),2 in H&&(U.finallyLoc=H[2],U.afterLoc=H[3]),this.tryEntries.push(U)}function R(H){var U=H.completion||{};U.type="normal",delete U.arg,H.completion=U}function C(H){this.tryEntries=[{tryLoc:"root"}],H.forEach(O,this),this.reset(!0)}function P(H){if(H){var U=H[p];if(U)return U.call(H);if(typeof H.next=="function")return H;if(!isNaN(H.length)){var B=-1,W=function X(){for(;++B<H.length;)if(u.call(H,B))return X.value=H[B],X.done=!1,X;return X.value=f,X.done=!0,X};return W.next=W}}return{next:L}}function L(){return{value:f,done:!0}}return k.prototype=N.constructor=S,S.constructor=k,k.displayName=v(S,b,"GeneratorFunction"),c.isGeneratorFunction=function(H){var U=typeof H=="function"&&H.constructor;return!!U&&(U===k||(U.displayName||U.name)==="GeneratorFunction")},c.mark=function(H){return Object.setPrototypeOf?Object.setPrototypeOf(H,S):(H.__proto__=S,v(H,b,"GeneratorFunction")),H.prototype=Object.create(N),H},c.awrap=function(H){return{__await:H}},F(T.prototype),T.prototype[m]=function(){return this},c.AsyncIterator=T,c.async=function(H,U,B,W,X){X===void 0&&(X=Promise);var et=new T(_(H,U,B,W),X);return c.isGeneratorFunction(U)?et:et.next().then(function(ft){return ft.done?ft.value:et.next()})},F(N),v(N,b,"Generator"),N[p]=function(){return this},N.toString=function(){return"[object Generator]"},c.keys=function(H){var U=[];for(var B in H)U.push(B);return U.reverse(),function W(){for(;U.length;){var X=U.pop();if(X in H)return W.value=X,W.done=!1,W}return W.done=!0,W}},c.values=P,C.prototype={constructor:C,reset:function(H){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,this.tryEntries.forEach(R),!H)for(var U in this)U.charAt(0)==="t"&&u.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=f)},stop:function(){this.done=!0;var H=this.tryEntries[0].completion;if(H.type==="throw")throw H.arg;return this.rval},dispatchException:function(H){if(this.done)throw H;var U=this;function B(bt,rt){return et.type="throw",et.arg=H,U.next=bt,rt&&(U.method="next",U.arg=f),!!rt}for(var W=this.tryEntries.length-1;W>=0;--W){var X=this.tryEntries[W],et=X.completion;if(X.tryLoc==="root")return B("end");if(X.tryLoc<=this.prev){var ft=u.call(X,"catchLoc"),gt=u.call(X,"finallyLoc");if(ft&>){if(this.prev<X.catchLoc)return B(X.catchLoc,!0);if(this.prev<X.finallyLoc)return B(X.finallyLoc)}else if(ft){if(this.prev<X.catchLoc)return B(X.catchLoc,!0)}else{if(!gt)throw new Error("try statement without catch or finally");if(this.prev<X.finallyLoc)return B(X.finallyLoc)}}}},abrupt:function(H,U){for(var B=this.tryEntries.length-1;B>=0;--B){var W=this.tryEntries[B];if(W.tryLoc<=this.prev&&u.call(W,"finallyLoc")&&this.prev<W.finallyLoc){var X=W;break}}X&&(H==="break"||H==="continue")&&X.tryLoc<=U&&U<=X.finallyLoc&&(X=null);var et=X?X.completion:{};return et.type=H,et.arg=U,X?(this.method="next",this.next=X.finallyLoc,g):this.complete(et)},complete:function(H,U){if(H.type==="throw")throw H.arg;return H.type==="break"||H.type==="continue"?this.next=H.arg:H.type==="return"?(this.rval=this.arg=H.arg,this.method="return",this.next="end"):H.type==="normal"&&U&&(this.next=U),g},finish:function(H){for(var U=this.tryEntries.length-1;U>=0;--U){var B=this.tryEntries[U];if(B.finallyLoc===H)return this.complete(B.completion,B.afterLoc),R(B),g}},catch:function(H){for(var U=this.tryEntries.length-1;U>=0;--U){var B=this.tryEntries[U];if(B.tryLoc===H){var W=B.completion;if(W.type==="throw"){var X=W.arg;R(B)}return X}}throw new Error("illegal catch attempt")},delegateYield:function(H,U,B){return this.delegate={iterator:P(H),resultName:U,nextLoc:B},this.method==="next"&&(this.arg=f),g}},c}((r===void 0?"undefined":n(r))==="object"?r.exports:{});try{regeneratorRuntime=i}catch(c){Function("r","regeneratorRuntime = r")(i)}},{}],493:[function(t,r,e){var n=t("buffer").Buffer,i=t("inherits"),c=t("hash-base"),f=new Array(16),l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],p=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],m=[0,1518500249,1859775393,2400959708,2840853838],b=[1352829926,1548603684,1836072691,2053994217,0];function v(){c.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function _(g,w){return g<<w|g>>>32-w}function s(g,w,k,S,A,j,D,N){return _(g+(w^k^S)+j+D|0,N)+A|0}function o(g,w,k,S,A,j,D,N){return _(g+(w&k|~w&S)+j+D|0,N)+A|0}function h(g,w,k,S,A,j,D,N){return _(g+((w|~k)^S)+j+D|0,N)+A|0}function a(g,w,k,S,A,j,D,N){return _(g+(w&S|k&~S)+j+D|0,N)+A|0}function d(g,w,k,S,A,j,D,N){return _(g+(w^(k|~S))+j+D|0,N)+A|0}i(v,c),v.prototype._update=function(){for(var g=f,w=0;w<16;++w)g[w]=this._block.readInt32LE(4*w);for(var k=0|this._a,S=0|this._b,A=0|this._c,j=0|this._d,D=0|this._e,N=0|this._a,F=0|this._b,T=0|this._c,I=0|this._d,x=0|this._e,O=0;O<80;O+=1){var R,C;O<16?(R=s(k,S,A,j,D,g[l[O]],m[0],y[O]),C=d(N,F,T,I,x,g[u[O]],b[0],p[O])):O<32?(R=o(k,S,A,j,D,g[l[O]],m[1],y[O]),C=a(N,F,T,I,x,g[u[O]],b[1],p[O])):O<48?(R=h(k,S,A,j,D,g[l[O]],m[2],y[O]),C=h(N,F,T,I,x,g[u[O]],b[2],p[O])):O<64?(R=a(k,S,A,j,D,g[l[O]],m[3],y[O]),C=o(N,F,T,I,x,g[u[O]],b[3],p[O])):(R=d(k,S,A,j,D,g[l[O]],m[4],y[O]),C=s(N,F,T,I,x,g[u[O]],b[4],p[O])),k=D,D=j,j=_(A,10),A=S,S=R,N=x,x=I,I=_(T,10),T=F,F=C}var P=this._b+A+I|0;this._b=this._c+j+x|0,this._c=this._d+D+N|0,this._d=this._e+k+F|0,this._e=this._a+S+T|0,this._a=P},v.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var g=n.alloc?n.alloc(20):new n(20);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g.writeInt32LE(this._e,16),g},r.exports=v},{buffer:216,"hash-base":370,inherits:387}],494:[function(t,r,e){var n=t("buffer"),i=n.Buffer;function c(l,u){for(var y in l)u[y]=l[y]}function f(l,u,y){return i(l,u,y)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?r.exports=n:(c(n,e),e.Buffer=f),c(i,f),f.from=function(l,u,y){if(typeof l=="number")throw new TypeError("Argument must not be a number");return i(l,u,y)},f.alloc=function(l,u,y){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=i(l);return u!==void 0?typeof y=="string"?p.fill(u,y):p.fill(u):p.fill(0),p},f.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return i(l)},f.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(l)}},{buffer:216}],495:[function(t,r,e){(function(n){function i(p){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(p)}var c,f=t("buffer"),l=f.Buffer,u={};for(c in f)f.hasOwnProperty(c)&&c!=="SlowBuffer"&&c!=="Buffer"&&(u[c]=f[c]);var y=u.Buffer={};for(c in l)l.hasOwnProperty(c)&&c!=="allocUnsafe"&&c!=="allocUnsafeSlow"&&(y[c]=l[c]);if(u.Buffer.prototype=l.prototype,y.from&&y.from!==Uint8Array.from||(y.from=function(p,m,b){if(typeof p=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+i(p));if(p&&p.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+i(p));return l(p,m,b)}),y.alloc||(y.alloc=function(p,m,b){if(typeof p!="number")throw new TypeError('The "size" argument must be of type number. Received type '+i(p));if(p<0||p>=2*(1<<30))throw new RangeError('The value "'+p+'" is invalid for option "size"');var v=l(p);return m&&m.length!==0?typeof b=="string"?v.fill(m,b):v.fill(m):v.fill(0),v}),!u.kStringMaxLength)try{u.kStringMaxLength=n.binding("buffer").kStringMaxLength}catch(p){}u.constants||(u.constants={MAX_LENGTH:u.kMaxLength},u.kStringMaxLength&&(u.constants.MAX_STRING_LENGTH=u.kStringMaxLength)),r.exports=u}).call(this,t("_process"))},{_process:467,buffer:216}],496:[function(t,r,e){function n(Oe,kt){var Dt;if(typeof Symbol=="undefined"||Oe[Symbol.iterator]==null){if(Array.isArray(Oe)||(Dt=p(Oe))||kt&&Oe&&typeof Oe.length=="number"){Dt&&(Oe=Dt);var Nt=0,ye=function(){};return{s:ye,n:function(){return Nt>=Oe.length?{done:!0}:{done:!1,value:Oe[Nt++]}},e:function(sn){throw sn},f:ye}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Le,gr=!0,Kr=!1;return{s:function(){Dt=Oe[Symbol.iterator]()},n:function(){var sn=Dt.next();return gr=sn.done,sn},e:function(sn){Kr=!0,Le=sn},f:function(){try{gr||Dt.return==null||Dt.return()}finally{if(Kr)throw Le}}}}function i(Oe){return(i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(kt){return typeof kt}:function(kt){return kt&&typeof Symbol=="function"&&kt.constructor===Symbol&&kt!==Symbol.prototype?"symbol":typeof kt})(Oe)}function c(Oe,kt){if(!(Oe instanceof kt))throw new TypeError("Cannot call a class as a function")}function f(Oe,kt){for(var Dt=0;Dt<kt.length;Dt++){var Nt=kt[Dt];Nt.enumerable=Nt.enumerable||!1,Nt.configurable=!0,"value"in Nt&&(Nt.writable=!0),Object.defineProperty(Oe,Nt.key,Nt)}}function l(Oe,kt,Dt){return kt&&f(Oe.prototype,kt),Dt&&f(Oe,Dt),Oe}function u(Oe){return b(Oe)||m(Oe)||p(Oe)||y()}function y(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(Oe,kt){if(Oe){if(typeof Oe=="string")return v(Oe,kt);var Dt=Object.prototype.toString.call(Oe).slice(8,-1);return Dt==="Object"&&Oe.constructor&&(Dt=Oe.constructor.name),Dt==="Map"||Dt==="Set"?Array.from(Oe):Dt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Dt)?v(Oe,kt):void 0}}function m(Oe){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Oe))return Array.from(Oe)}function b(Oe){if(Array.isArray(Oe))return v(Oe)}function v(Oe,kt){(kt==null||kt>Oe.length)&&(kt=Oe.length);for(var Dt=0,Nt=new Array(kt);Dt<kt;Dt++)Nt[Dt]=Oe[Dt];return Nt}Object.defineProperty(e,"__esModule",{value:!0});var _=t("xmlchars/xml/1.0/ed5"),s=t("xmlchars/xml/1.1/ed2"),o=t("xmlchars/xmlns/1.0/ed3"),h=_.isS,a=_.isChar,d=_.isNameStartChar,g=_.isNameChar,w=_.S_LIST,k=_.NAME_RE,S=s.isChar,A=o.isNCNameStartChar,j=o.isNCNameChar,D=o.NC_NAME_RE,N="http://www.w3.org/XML/1998/namespace",F="http://www.w3.org/2000/xmlns/",T={__proto__:null,xml:N,xmlns:F},I={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},x=-1,O=-2,R=0,C=1,P=2,L=3,H=4,U=5,B=6,W=7,X=8,et=9,ft=10,gt=11,bt=12,rt=13,Q=14,K=15,nt=16,At=17,ot=18,ut=19,Mt=20,Bt=21,G=22,Z=23,J=24,St=25,It=26,Ft=27,Xt=28,me=29,fe=30,Kt=31,ie=32,ct=33,pt=34,_t=35,vt=36,Y=37,ht=38,at=39,it=40,q=41,wt=42,Pt=43,V=44,Rt=9,mt=10,dt=13,Tt=32,Ot=33,qt=34,Lt=38,Ht=39,le=45,Ce=47,Zt=59,ae=60,he=61,Wt=62,pe=63,Se=91,de=93,ge=133,Fe=8232,re=function(Oe){return Oe===qt||Oe===Ht},Ae=[qt,Ht],De=[].concat(Ae,[Se,Wt]),Ue=[].concat(Ae,[ae,de]),Sr=[he,pe].concat(u(w)),ir=[].concat(u(w),[Wt,Lt,ae]);function $e(Oe,kt,Dt){switch(kt){case"xml":Dt!==N&&Oe.fail("xml prefix must be bound to ".concat(N,"."));break;case"xmlns":Dt!==F&&Oe.fail("xmlns prefix must be bound to ".concat(F,"."))}switch(Dt){case F:Oe.fail(kt===""?"the default namespace may not be set to ".concat(Dt,"."):'may not assign a prefix (even "xmlns") to the URI '.concat(F,"."));break;case N:switch(kt){case"xml":break;case"":Oe.fail("the default namespace may not be set to ".concat(Dt,"."));break;default:Oe.fail("may not assign the xml namespace to another prefix.")}}}function ii(Oe,kt){for(var Dt=0,Nt=Object.keys(kt);Dt<Nt.length;Dt++){var ye=Nt[Dt];$e(Oe,ye,kt[ye])}}var oi=function(Oe){return D.test(Oe)},Zr=function(Oe){return k.test(Oe)},Br=0,On=1,Dn=2;e.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var Xn={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"},ai=function(){function Oe(kt){c(this,Oe),this.opt=kt!=null?kt:{},this.fragmentOpt=!!this.opt.fragment;var Dt=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,Dt){this.nameStartCheck=A,this.nameCheck=j,this.isName=oi,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},T);var Nt=this.opt.additionalNamespaces;Nt!=null&&(ii(this,Nt),Object.assign(this.ns,Nt))}else this.nameStartCheck=d,this.nameCheck=g,this.isName=Zr,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}return l(Oe,[{key:"_init",value:function(){var kt;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=Br,this.attribList=[];var Dt=this.fragmentOpt;this.state=Dt?rt:R,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=Dt,this.xmlDeclPossible=!Dt,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;var Nt=this.opt.defaultXMLVersion;if(Nt===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");Nt="1.0"}this.setXMLVersion(Nt),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(I),(kt=this.readyHandler)===null||kt===void 0||kt.call(this)}},{key:"on",value:function(kt,Dt){this[Xn[kt]]=Dt}},{key:"off",value:function(kt){this[Xn[kt]]=void 0}},{key:"makeError",value:function(kt){var Dt,Nt=(Dt=this.fileName)!==null&&Dt!==void 0?Dt:"";return this.trackPosition&&(Nt.length>0&&(Nt+=":"),Nt+="".concat(this.line,":").concat(this.column)),Nt.length>0&&(Nt+=": "),new Error(Nt+kt)}},{key:"fail",value:function(kt){var Dt=this.makeError(kt),Nt=this.errorHandler;if(Nt===void 0)throw Dt;return Nt(Dt),this}},{key:"write",value:function(kt){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");var Dt=!1;kt===null?(Dt=!0,kt=""):i(kt)==="object"&&(kt=kt.toString()),this.carriedFromPrevious!==void 0&&(kt="".concat(this.carriedFromPrevious).concat(kt),this.carriedFromPrevious=void 0);var Nt=kt.length,ye=kt.charCodeAt(Nt-1);!Dt&&(ye===dt||ye>=55296&&ye<=56319)&&(this.carriedFromPrevious=kt[Nt-1],Nt--,kt=kt.slice(0,Nt));var Le=this.stateTable;for(this.chunk=kt,this.i=0;this.i<Nt;)Le[this.state].call(this);return this.chunkPosition+=Nt,Dt?this.end():this}},{key:"close",value:function(){return this.write(null)}},{key:"getCode10",value:function(){var kt=this.chunk,Dt=this.i;if(this.prevI=Dt,this.i=Dt+1,Dt>=kt.length)return x;var Nt=kt.charCodeAt(Dt);if(this.column++,Nt<55296){if(Nt>=Tt||Nt===Rt)return Nt;switch(Nt){case mt:return this.line++,this.column=0,this.positionAtNewLine=this.position,mt;case dt:return kt.charCodeAt(Dt+1)===mt&&(this.i=Dt+2),this.line++,this.column=0,this.positionAtNewLine=this.position,O;default:return this.fail("disallowed character."),Nt}}if(Nt>56319)return Nt>=57344&&Nt<=65533||this.fail("disallowed character."),Nt;var ye=65536+1024*(Nt-55296)+(kt.charCodeAt(Dt+1)-56320);return this.i=Dt+2,ye>1114111&&this.fail("disallowed character."),ye}},{key:"getCode11",value:function(){var kt=this.chunk,Dt=this.i;if(this.prevI=Dt,this.i=Dt+1,Dt>=kt.length)return x;var Nt=kt.charCodeAt(Dt);if(this.column++,Nt<55296){if(Nt>31&&Nt<127||Nt>159&&Nt!==Fe||Nt===Rt)return Nt;switch(Nt){case mt:return this.line++,this.column=0,this.positionAtNewLine=this.position,mt;case dt:var ye=kt.charCodeAt(Dt+1);ye!==mt&&ye!==ge||(this.i=Dt+2);case ge:case Fe:return this.line++,this.column=0,this.positionAtNewLine=this.position,O;default:return this.fail("disallowed character."),Nt}}if(Nt>56319)return Nt>=57344&&Nt<=65533||this.fail("disallowed character."),Nt;var Le=65536+1024*(Nt-55296)+(kt.charCodeAt(Dt+1)-56320);return this.i=Dt+2,Le>1114111&&this.fail("disallowed character."),Le}},{key:"getCodeNorm",value:function(){var kt=this.getCode();return kt===O?mt:kt}},{key:"unget",value:function(){this.i=this.prevI,this.column--}},{key:"captureTo",value:function(kt){for(var Dt=this.i,Nt=this.chunk;;){var ye=this.getCode(),Le=ye===O,gr=Le?mt:ye;if(gr===x||kt.includes(gr))return this.text+=Nt.slice(Dt,this.prevI),gr;Le&&(this.text+="".concat(Nt.slice(Dt,this.prevI),`
|
||
`),Dt=this.i)}}},{key:"captureToChar",value:function(kt){for(var Dt=this.i,Nt=this.chunk;;){var ye=this.getCode();switch(ye){case O:this.text+="".concat(Nt.slice(Dt,this.prevI),`
|
||
`),Dt=this.i,ye=mt;break;case x:return this.text+=Nt.slice(Dt),!1}if(ye===kt)return this.text+=Nt.slice(Dt,this.prevI),!0}}},{key:"captureNameChars",value:function(){for(var kt=this.chunk,Dt=this.i;;){var Nt=this.getCode();if(Nt===x)return this.name+=kt.slice(Dt),x;if(!g(Nt))return this.name+=kt.slice(Dt,this.prevI),Nt===O?mt:Nt}}},{key:"skipSpaces",value:function(){for(;;){var kt=this.getCodeNorm();if(kt===x||!h(kt))return kt}}},{key:"setXMLVersion",value:function(kt){this.currentXMLVersion=kt,kt==="1.0"?(this.isChar=a,this.getCode=this.getCode10):(this.isChar=S,this.getCode=this.getCode11)}},{key:"sBegin",value:function(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=C}},{key:"sBeginWhitespace",value:function(){var kt=this.i,Dt=this.skipSpaces();switch(this.prevI!==kt&&(this.xmlDeclPossible=!1),Dt){case ae:if(this.state=K,this.text.length!==0)throw new Error("no-empty text at start");break;case x:break;default:this.unget(),this.state=rt,this.xmlDeclPossible=!1}}},{key:"sDoctype",value:function(){var kt,Dt=this.captureTo(De);switch(Dt){case Wt:(kt=this.doctypeHandler)===null||kt===void 0||kt.call(this,this.text),this.text="",this.state=rt,this.doctype=!0;break;case x:break;default:this.text+=String.fromCodePoint(Dt),Dt===Se?this.state=H:re(Dt)&&(this.state=L,this.q=Dt)}}},{key:"sDoctypeQuote",value:function(){var kt=this.q;this.captureToChar(kt)&&(this.text+=String.fromCodePoint(kt),this.q=null,this.state=P)}},{key:"sDTD",value:function(){var kt=this.captureTo(Ue);kt!==x&&(this.text+=String.fromCodePoint(kt),kt===de?this.state=P:kt===ae?this.state=B:re(kt)&&(this.state=U,this.q=kt))}},{key:"sDTDQuoted",value:function(){var kt=this.q;this.captureToChar(kt)&&(this.text+=String.fromCodePoint(kt),this.state=H,this.q=null)}},{key:"sDTDOpenWaka",value:function(){var kt=this.getCodeNorm();switch(this.text+=String.fromCodePoint(kt),kt){case Ot:this.state=W,this.openWakaBang="";break;case pe:this.state=gt;break;default:this.state=H}}},{key:"sDTDOpenWakaBang",value:function(){var kt=String.fromCodePoint(this.getCodeNorm()),Dt=this.openWakaBang+=kt;this.text+=kt,Dt!=="-"&&(this.state=Dt==="--"?X:H,this.openWakaBang="")}},{key:"sDTDComment",value:function(){this.captureToChar(le)&&(this.text+="-",this.state=et)}},{key:"sDTDCommentEnding",value:function(){var kt=this.getCodeNorm();this.text+=String.fromCodePoint(kt),this.state=kt===le?ft:X}},{key:"sDTDCommentEnded",value:function(){var kt=this.getCodeNorm();this.text+=String.fromCodePoint(kt),kt===Wt?this.state=H:(this.fail("malformed comment."),this.state=X)}},{key:"sDTDPI",value:function(){this.captureToChar(pe)&&(this.text+="?",this.state=bt)}},{key:"sDTDPIEnding",value:function(){var kt=this.getCodeNorm();this.text+=String.fromCodePoint(kt),kt===Wt&&(this.state=H)}},{key:"sText",value:function(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}},{key:"sEntity",value:function(){var kt=this.i,Dt=this.chunk;t:for(;;)switch(this.getCode()){case O:this.entity+="".concat(Dt.slice(kt,this.prevI),`
|
||
`),kt=this.i;break;case Zt:var Nt=this.entityReturnState,ye=this.entity+Dt.slice(kt,this.prevI);this.state=Nt;var Le=void 0;ye===""?(this.fail("empty entity name."),Le="&;"):(Le=this.parseEntity(ye),this.entity=""),Nt===rt&&this.textHandler===void 0||(this.text+=Le);break t;case x:this.entity+=Dt.slice(kt);break t}}},{key:"sOpenWaka",value:function(){var kt=this.getCode();if(d(kt))this.state=pt,this.unget(),this.xmlDeclPossible=!1;else switch(kt){case Ce:this.state=Pt,this.xmlDeclPossible=!1;break;case Ot:this.state=nt,this.openWakaBang="",this.xmlDeclPossible=!1;break;case pe:this.state=Z;break;default:this.fail("disallowed character in tag name"),this.state=rt,this.xmlDeclPossible=!1}}},{key:"sOpenWakaBang",value:function(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=Mt,this.openWakaBang="";break;case"--":this.state=At,this.openWakaBang="";break;case"DOCTYPE":this.state=P,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}},{key:"sComment",value:function(){this.captureToChar(le)&&(this.state=ot)}},{key:"sCommentEnding",value:function(){var kt,Dt=this.getCodeNorm();Dt===le?(this.state=ut,(kt=this.commentHandler)===null||kt===void 0||kt.call(this,this.text),this.text=""):(this.text+="-".concat(String.fromCodePoint(Dt)),this.state=At)}},{key:"sCommentEnded",value:function(){var kt=this.getCodeNorm();kt!==Wt?(this.fail("malformed comment."),this.text+="--".concat(String.fromCodePoint(kt)),this.state=At):this.state=rt}},{key:"sCData",value:function(){this.captureToChar(de)&&(this.state=Bt)}},{key:"sCDataEnding",value:function(){var kt=this.getCodeNorm();kt===de?this.state=G:(this.text+="]".concat(String.fromCodePoint(kt)),this.state=Mt)}},{key:"sCDataEnding2",value:function(){var kt,Dt=this.getCodeNorm();switch(Dt){case Wt:(kt=this.cdataHandler)===null||kt===void 0||kt.call(this,this.text),this.text="",this.state=rt;break;case de:this.text+="]";break;default:this.text+="]]".concat(String.fromCodePoint(Dt)),this.state=Mt}}},{key:"sPIFirstChar",value:function(){var kt=this.getCodeNorm();this.nameStartCheck(kt)?(this.piTarget+=String.fromCodePoint(kt),this.state=J):kt===pe||h(kt)?(this.fail("processing instruction without a target."),this.state=kt===pe?It:St):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(kt),this.state=J)}},{key:"sPIRest",value:function(){for(var kt=this.chunk,Dt=this.i;;){var Nt=this.getCodeNorm();if(Nt===x)return void(this.piTarget+=kt.slice(Dt));if(!this.nameCheck(Nt)){this.piTarget+=kt.slice(Dt,this.prevI);var ye=Nt===pe;ye||h(Nt)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=ye?ct:Ft):this.state=ye?It:St:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(Nt));break}}}},{key:"sPIBody",value:function(){if(this.text.length===0){var kt=this.getCodeNorm();kt===pe?this.state=It:h(kt)||(this.text=String.fromCodePoint(kt))}else this.captureToChar(pe)&&(this.state=It)}},{key:"sPIEnding",value:function(){var kt,Dt=this.getCodeNorm();if(Dt===Wt){var Nt=this.piTarget;Nt.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(kt=this.piHandler)===null||kt===void 0||kt.call(this,{target:Nt,body:this.text}),this.piTarget=this.text="",this.state=rt}else Dt===pe?this.text+="?":(this.text+="?".concat(String.fromCodePoint(Dt)),this.state=St);this.xmlDeclPossible=!1}},{key:"sXMLDeclNameStart",value:function(){var kt=this.skipSpaces();kt!==pe?kt!==x&&(this.state=Xt,this.name=String.fromCodePoint(kt)):this.state=ct}},{key:"sXMLDeclName",value:function(){var kt=this.captureTo(Sr);if(kt===pe)return this.state=ct,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(h(kt)||kt===he){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail("expected the name ".concat(this.xmlDeclExpects[0],"."));break;default:this.fail("expected one of ".concat(this.xmlDeclExpects.join(", ")))}this.state=kt===he?fe:me}}},{key:"sXMLDeclEq",value:function(){var kt=this.getCodeNorm();if(kt===pe)return this.state=ct,void this.fail("XML declaration is incomplete.");h(kt)||(kt!==he&&this.fail("value required."),this.state=fe)}},{key:"sXMLDeclValueStart",value:function(){var kt=this.getCodeNorm();if(kt===pe)return this.state=ct,void this.fail("XML declaration is incomplete.");h(kt)||(re(kt)?this.q=kt:(this.fail("value must be quoted."),this.q=Tt),this.state=Kt)}},{key:"sXMLDeclValue",value:function(){var kt=this.captureTo([this.q,pe]);if(kt===pe)return this.state=ct,this.text="",void this.fail("XML declaration is incomplete.");if(kt!==x){var Dt=this.text;switch(this.text="",this.name){case"version":this.xmlDeclExpects=["encoding","standalone"];var Nt=Dt;this.xmlDecl.version=Nt,/^1\.[0-9]+$/.test(Nt)?this.opt.forceXMLVersion||this.setXMLVersion(Nt):this.fail("version number must match /^1\\.[0-9]+$/.");break;case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(Dt)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=Dt;break;case"standalone":Dt!=="yes"&&Dt!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=Dt}this.name="",this.state=ie}}},{key:"sXMLDeclSeparator",value:function(){var kt=this.getCodeNorm();kt!==pe?(h(kt)||(this.fail("whitespace required."),this.unget()),this.state=Ft):this.state=ct}},{key:"sXMLDeclEnding",value:function(){var kt;this.getCodeNorm()===Wt?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(kt=this.xmldeclHandler)===null||kt===void 0||kt.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=rt):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}},{key:"sOpenTag",value:function(){var kt,Dt=this.captureNameChars();if(Dt!==x){var Nt=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=Nt.ns=Object.create(null)),(kt=this.openTagStartHandler)===null||kt===void 0||kt.call(this,Nt),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),Dt){case Wt:this.openTag();break;case Ce:this.state=_t;break;default:h(Dt)||this.fail("disallowed character in tag name."),this.state=vt}}}},{key:"sOpenTagSlash",value:function(){this.getCode()===Wt?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=vt)}},{key:"sAttrib",value:function(){var kt=this.skipSpaces();kt!==x&&(d(kt)?(this.unget(),this.state=Y):kt===Wt?this.openTag():kt===Ce?this.state=_t:this.fail("disallowed character in attribute name."))}},{key:"sAttribName",value:function(){var kt=this.captureNameChars();kt===he?this.state=at:h(kt)?this.state=ht:kt===Wt?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):kt!==x&&this.fail("disallowed character in attribute name.")}},{key:"sAttribNameSawWhite",value:function(){var kt=this.skipSpaces();switch(kt){case x:return;case he:this.state=at;break;default:this.fail("attribute without value."),this.text="",this.name="",kt===Wt?this.openTag():d(kt)?(this.unget(),this.state=Y):(this.fail("disallowed character in attribute name."),this.state=vt)}}},{key:"sAttribValue",value:function(){var kt=this.getCodeNorm();re(kt)?(this.q=kt,this.state=it):h(kt)||(this.fail("unquoted attribute value."),this.state=wt,this.unget())}},{key:"sAttribValueQuoted",value:function(){for(var kt=this.q,Dt=this.chunk,Nt=this.i;;)switch(this.getCode()){case kt:return this.pushAttrib(this.name,this.text+Dt.slice(Nt,this.prevI)),this.name=this.text="",this.q=null,void(this.state=q);case Lt:return this.text+=Dt.slice(Nt,this.prevI),this.state=Q,void(this.entityReturnState=it);case mt:case O:case Rt:this.text+="".concat(Dt.slice(Nt,this.prevI)," "),Nt=this.i;break;case ae:return this.text+=Dt.slice(Nt,this.prevI),void this.fail("disallowed character.");case x:return void(this.text+=Dt.slice(Nt))}}},{key:"sAttribValueClosed",value:function(){var kt=this.getCodeNorm();h(kt)?this.state=vt:kt===Wt?this.openTag():kt===Ce?this.state=_t:d(kt)?(this.fail("no whitespace between attributes."),this.unget(),this.state=Y):this.fail("disallowed character in attribute name.")}},{key:"sAttribValueUnquoted",value:function(){var kt=this.captureTo(ir);switch(kt){case Lt:this.state=Q,this.entityReturnState=wt;break;case ae:this.fail("disallowed character.");break;case x:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",kt===Wt?this.openTag():this.state=vt}}},{key:"sCloseTag",value:function(){var kt=this.captureNameChars();kt===Wt?this.closeTag():h(kt)?this.state=V:kt!==x&&this.fail("disallowed character in closing tag.")}},{key:"sCloseTagSawWhite",value:function(){switch(this.skipSpaces()){case Wt:this.closeTag();break;case x:break;default:this.fail("disallowed character in closing tag.")}}},{key:"handleTextInRoot",value:function(){var kt=this.i,Dt=this.forbiddenState,Nt=this.chunk,ye=this.textHandler;t:for(;;)switch(this.getCode()){case ae:if(this.state=K,ye!==void 0){var Le=this.text,gr=Nt.slice(kt,this.prevI);Le.length!==0?(ye(Le+gr),this.text=""):gr.length!==0&&ye(gr)}Dt=Br;break t;case Lt:this.state=Q,this.entityReturnState=rt,ye!==void 0&&(this.text+=Nt.slice(kt,this.prevI)),Dt=Br;break t;case de:switch(Dt){case Br:Dt=On;break;case On:Dt=Dn;break;case Dn:break;default:throw new Error("impossible state")}break;case Wt:Dt===Dn&&this.fail('the string "]]>" is disallowed in char data.'),Dt=Br;break;case O:ye!==void 0&&(this.text+="".concat(Nt.slice(kt,this.prevI),`
|
||
`)),kt=this.i,Dt=Br;break;case x:ye!==void 0&&(this.text+=Nt.slice(kt));break t;default:Dt=Br}this.forbiddenState=Dt}},{key:"handleTextOutsideRoot",value:function(){var kt=this.i,Dt=this.chunk,Nt=this.textHandler,ye=!1;t:for(;;){var Le=this.getCode();switch(Le){case ae:if(this.state=K,Nt!==void 0){var gr=this.text,Kr=Dt.slice(kt,this.prevI);gr.length!==0?(Nt(gr+Kr),this.text=""):Kr.length!==0&&Nt(Kr)}break t;case Lt:this.state=Q,this.entityReturnState=rt,Nt!==void 0&&(this.text+=Dt.slice(kt,this.prevI)),ye=!0;break t;case O:Nt!==void 0&&(this.text+="".concat(Dt.slice(kt,this.prevI),`
|
||
`)),kt=this.i;break;case x:Nt!==void 0&&(this.text+=Dt.slice(kt));break t;default:h(Le)||(ye=!0)}}ye&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}},{key:"pushAttribNS",value:function(kt,Dt){var Nt,ye=this.qname(kt),Le=ye.prefix,gr=ye.local,Kr={name:kt,prefix:Le,local:gr,value:Dt};if(this.attribList.push(Kr),(Nt=this.attributeHandler)===null||Nt===void 0||Nt.call(this,Kr),Le==="xmlns"){var sn=Dt.trim();this.currentXMLVersion==="1.0"&&sn===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[gr]=sn,$e(this,gr,sn)}else if(kt==="xmlns"){var Ur=Dt.trim();this.topNS[""]=Ur,$e(this,"",Ur)}}},{key:"pushAttribPlain",value:function(kt,Dt){var Nt,ye={name:kt,value:Dt};this.attribList.push(ye),(Nt=this.attributeHandler)===null||Nt===void 0||Nt.call(this,ye)}},{key:"end",value:function(){var kt,Dt;this.sawRoot||this.fail("document must contain a root element.");for(var Nt=this.tags;Nt.length>0;){var ye=Nt.pop();this.fail("unclosed tag: ".concat(ye.name))}this.state!==R&&this.state!==rt&&this.fail("unexpected end.");var Le=this.text;return Le.length!==0&&((kt=this.textHandler)===null||kt===void 0||kt.call(this,Le),this.text=""),this._closed=!0,(Dt=this.endHandler)===null||Dt===void 0||Dt.call(this),this._init(),this}},{key:"resolve",value:function(kt){var Dt,Nt,ye=this.topNS[kt];if(ye!==void 0)return ye;for(var Le=this.tags,gr=Le.length-1;gr>=0;gr--)if((ye=Le[gr].ns[kt])!==void 0)return ye;return(ye=this.ns[kt])!==void 0?ye:(Nt=(Dt=this.opt).resolvePrefix)===null||Nt===void 0?void 0:Nt.call(Dt,kt)}},{key:"qname",value:function(kt){var Dt=kt.indexOf(":");if(Dt===-1)return{prefix:"",local:kt};var Nt=kt.slice(Dt+1),ye=kt.slice(0,Dt);return(ye===""||Nt===""||Nt.includes(":"))&&this.fail("malformed name: ".concat(kt,".")),{prefix:ye,local:Nt}}},{key:"processAttribsNS",value:function(){var kt,Dt=this.attribList,Nt=this.tag,ye=this.qname(Nt.name),Le=ye.prefix,gr=ye.local;Nt.prefix=Le,Nt.local=gr;var Kr=Nt.uri=(kt=this.resolve(Le))!==null&&kt!==void 0?kt:"";if(Le!==""&&(Le==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),Kr===""&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(Le),".")),Nt.uri=Le)),Dt.length!==0){var sn,Ur=Nt.attributes,Pi=new Set,wn=n(Dt);try{for(wn.s();!(sn=wn.n()).done;){var $i=sn.value,si=$i.name,en=$i.prefix,Oo=$i.local,qi=void 0,Gi=void 0;en===""?(qi=si==="xmlns"?F:"",Gi=si):((qi=this.resolve(en))===void 0&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(en),".")),qi=en),Gi="{".concat(qi,"}").concat(Oo)),Pi.has(Gi)&&this.fail("duplicate attribute: ".concat(Gi,".")),Pi.add(Gi),$i.uri=qi,Ur[si]=$i}}catch(Ro){wn.e(Ro)}finally{wn.f()}this.attribList=[]}}},{key:"processAttribsPlain",value:function(){var kt,Dt=this.attribList,Nt=this.tag.attributes,ye=n(Dt);try{for(ye.s();!(kt=ye.n()).done;){var Le=kt.value,gr=Le.name,Kr=Le.value;Nt[gr]!==void 0&&this.fail("duplicate attribute: ".concat(gr,".")),Nt[gr]=Kr}}catch(sn){ye.e(sn)}finally{ye.f()}this.attribList=[]}},{key:"openTag",value:function(){var kt;this.processAttribs();var Dt=this.tags,Nt=this.tag;Nt.isSelfClosing=!1,(kt=this.openTagHandler)===null||kt===void 0||kt.call(this,Nt),Dt.push(Nt),this.state=rt,this.name=""}},{key:"openSelfClosingTag",value:function(){var kt,Dt,Nt;this.processAttribs();var ye=this.tags,Le=this.tag;Le.isSelfClosing=!0,(kt=this.openTagHandler)===null||kt===void 0||kt.call(this,Le),(Dt=this.closeTagHandler)===null||Dt===void 0||Dt.call(this,Le),(this.tag=(Nt=ye[ye.length-1])!==null&&Nt!==void 0?Nt:null)===null&&(this.closedRoot=!0),this.state=rt,this.name=""}},{key:"closeTag",value:function(){var kt=this.tags,Dt=this.name;if(this.state=rt,this.name="",Dt==="")return this.fail("weird empty close tag."),void(this.text+="</>");for(var Nt=this.closeTagHandler,ye=kt.length;ye-- >0;){var Le=this.tag=kt.pop();if(this.topNS=Le.ns,Nt==null||Nt(Le),Le.name===Dt)break;this.fail("unexpected close tag.")}ye===0?this.closedRoot=!0:ye<0&&(this.fail("unmatched closing tag: ".concat(Dt,".")),this.text+="</".concat(Dt,">"))}},{key:"parseEntity",value:function(kt){if(kt[0]!=="#"){var Dt=this.ENTITIES[kt];return Dt!==void 0?Dt:(this.fail(this.isName(kt)?"undefined entity.":"disallowed character in entity name."),"&".concat(kt,";"))}var Nt=NaN;return kt[1]==="x"&&/^#x[0-9a-f]+$/i.test(kt)?Nt=parseInt(kt.slice(2),16):/^#[0-9]+$/.test(kt)&&(Nt=parseInt(kt.slice(1),10)),this.isChar(Nt)?String.fromCodePoint(Nt):(this.fail("malformed character entity."),"&".concat(kt,";"))}},{key:"closed",get:function(){return this._closed}},{key:"position",get:function(){return this.chunkPosition+this.i}},{key:"columnIndex",get:function(){return this.position-this.positionAtNewLine}}]),Oe}();e.SaxesParser=ai},{"xmlchars/xml/1.0/ed5":541,"xmlchars/xml/1.1/ed2":542,"xmlchars/xmlns/1.0/ed3":543}],497:[function(t,r,e){(function(n){r.exports=typeof n=="function"?n:function(){var i=[].slice.apply(arguments);i.splice(1,0,0),setTimeout.apply(null,i)}}).call(this,t("timers").setImmediate)},{timers:521}],498:[function(t,r,e){var n=t("safe-buffer").Buffer;function i(c,f){this._block=n.alloc(c),this._finalSize=f,this._blockSize=c,this._len=0}i.prototype.update=function(c,f){typeof c=="string"&&(f=f||"utf8",c=n.from(c,f));for(var l=this._block,u=this._blockSize,y=c.length,p=this._len,m=0;m<y;){for(var b=p%u,v=Math.min(y-m,u-b),_=0;_<v;_++)l[b+_]=c[m+_];m+=v,(p+=v)%u==0&&this._update(l)}return this._len+=y,this},i.prototype.digest=function(c){var f=this._len%this._blockSize;this._block[f]=128,this._block.fill(0,f+1),f>=this._finalSize&&(this._update(this._block),this._block.fill(0));var l=8*this._len;if(l<=4294967295)this._block.writeUInt32BE(l,this._blockSize-4);else{var u=(4294967295&l)>>>0,y=(l-u)/4294967296;this._block.writeUInt32BE(y,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var p=this._hash();return c?p.toString(c):p},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},r.exports=i},{"safe-buffer":494}],499:[function(t,r,e){var n=r.exports=function(i){i=i.toLowerCase();var c=n[i];if(!c)throw new Error(i+" is not supported (we accept pull requests)");return new c};n.sha=t("./sha"),n.sha1=t("./sha1"),n.sha224=t("./sha224"),n.sha256=t("./sha256"),n.sha384=t("./sha384"),n.sha512=t("./sha512")},{"./sha":500,"./sha1":501,"./sha224":502,"./sha256":503,"./sha384":504,"./sha512":505}],500:[function(t,r,e){var n=t("inherits"),i=t("./hash"),c=t("safe-buffer").Buffer,f=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);function u(){this.init(),this._w=l,i.call(this,64,56)}function y(b){return b<<5|b>>>27}function p(b){return b<<30|b>>>2}function m(b,v,_,s){return b===0?v&_|~v&s:b===2?v&_|v&s|_&s:v^_^s}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(b){for(var v=this._w,_=0|this._a,s=0|this._b,o=0|this._c,h=0|this._d,a=0|this._e,d=0;d<16;++d)v[d]=b.readInt32BE(4*d);for(;d<80;++d)v[d]=v[d-3]^v[d-8]^v[d-14]^v[d-16];for(var g=0;g<80;++g){var w=~~(g/20),k=y(_)+m(w,s,o,h)+a+v[g]+f[w]|0;a=h,h=o,o=p(s),s=_,_=k}this._a=_+this._a|0,this._b=s+this._b|0,this._c=o+this._c|0,this._d=h+this._d|0,this._e=a+this._e|0},u.prototype._hash=function(){var b=c.allocUnsafe(20);return b.writeInt32BE(0|this._a,0),b.writeInt32BE(0|this._b,4),b.writeInt32BE(0|this._c,8),b.writeInt32BE(0|this._d,12),b.writeInt32BE(0|this._e,16),b},r.exports=u},{"./hash":498,inherits:387,"safe-buffer":494}],501:[function(t,r,e){var n=t("inherits"),i=t("./hash"),c=t("safe-buffer").Buffer,f=[1518500249,1859775393,-1894007588,-899497514],l=new Array(80);function u(){this.init(),this._w=l,i.call(this,64,56)}function y(v){return v<<1|v>>>31}function p(v){return v<<5|v>>>27}function m(v){return v<<30|v>>>2}function b(v,_,s,o){return v===0?_&s|~_&o:v===2?_&s|_&o|s&o:_^s^o}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(v){for(var _=this._w,s=0|this._a,o=0|this._b,h=0|this._c,a=0|this._d,d=0|this._e,g=0;g<16;++g)_[g]=v.readInt32BE(4*g);for(;g<80;++g)_[g]=y(_[g-3]^_[g-8]^_[g-14]^_[g-16]);for(var w=0;w<80;++w){var k=~~(w/20),S=p(s)+b(k,o,h,a)+d+_[w]+f[k]|0;d=a,a=h,h=m(o),o=s,s=S}this._a=s+this._a|0,this._b=o+this._b|0,this._c=h+this._c|0,this._d=a+this._d|0,this._e=d+this._e|0},u.prototype._hash=function(){var v=c.allocUnsafe(20);return v.writeInt32BE(0|this._a,0),v.writeInt32BE(0|this._b,4),v.writeInt32BE(0|this._c,8),v.writeInt32BE(0|this._d,12),v.writeInt32BE(0|this._e,16),v},r.exports=u},{"./hash":498,inherits:387,"safe-buffer":494}],502:[function(t,r,e){var n=t("inherits"),i=t("./sha256"),c=t("./hash"),f=t("safe-buffer").Buffer,l=new Array(64);function u(){this.init(),this._w=l,c.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var y=f.allocUnsafe(28);return y.writeInt32BE(this._a,0),y.writeInt32BE(this._b,4),y.writeInt32BE(this._c,8),y.writeInt32BE(this._d,12),y.writeInt32BE(this._e,16),y.writeInt32BE(this._f,20),y.writeInt32BE(this._g,24),y},r.exports=u},{"./hash":498,"./sha256":503,inherits:387,"safe-buffer":494}],503:[function(t,r,e){var n=t("inherits"),i=t("./hash"),c=t("safe-buffer").Buffer,f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],l=new Array(64);function u(){this.init(),this._w=l,i.call(this,64,56)}function y(s,o,h){return h^s&(o^h)}function p(s,o,h){return s&o|h&(s|o)}function m(s){return(s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10)}function b(s){return(s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7)}function v(s){return(s>>>7|s<<25)^(s>>>18|s<<14)^s>>>3}function _(s){return(s>>>17|s<<15)^(s>>>19|s<<13)^s>>>10}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(s){for(var o=this._w,h=0|this._a,a=0|this._b,d=0|this._c,g=0|this._d,w=0|this._e,k=0|this._f,S=0|this._g,A=0|this._h,j=0;j<16;++j)o[j]=s.readInt32BE(4*j);for(;j<64;++j)o[j]=_(o[j-2])+o[j-7]+v(o[j-15])+o[j-16]|0;for(var D=0;D<64;++D){var N=A+b(w)+y(w,k,S)+f[D]+o[D]|0,F=m(h)+p(h,a,d)|0;A=S,S=k,k=w,w=g+N|0,g=d,d=a,a=h,h=N+F|0}this._a=h+this._a|0,this._b=a+this._b|0,this._c=d+this._c|0,this._d=g+this._d|0,this._e=w+this._e|0,this._f=k+this._f|0,this._g=S+this._g|0,this._h=A+this._h|0},u.prototype._hash=function(){var s=c.allocUnsafe(32);return s.writeInt32BE(this._a,0),s.writeInt32BE(this._b,4),s.writeInt32BE(this._c,8),s.writeInt32BE(this._d,12),s.writeInt32BE(this._e,16),s.writeInt32BE(this._f,20),s.writeInt32BE(this._g,24),s.writeInt32BE(this._h,28),s},r.exports=u},{"./hash":498,inherits:387,"safe-buffer":494}],504:[function(t,r,e){var n=t("inherits"),i=t("./sha512"),c=t("./hash"),f=t("safe-buffer").Buffer,l=new Array(160);function u(){this.init(),this._w=l,c.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var y=f.allocUnsafe(48);function p(m,b,v){y.writeInt32BE(m,v),y.writeInt32BE(b,v+4)}return p(this._ah,this._al,0),p(this._bh,this._bl,8),p(this._ch,this._cl,16),p(this._dh,this._dl,24),p(this._eh,this._el,32),p(this._fh,this._fl,40),y},r.exports=u},{"./hash":498,"./sha512":505,inherits:387,"safe-buffer":494}],505:[function(t,r,e){var n=t("inherits"),i=t("./hash"),c=t("safe-buffer").Buffer,f=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],l=new Array(160);function u(){this.init(),this._w=l,i.call(this,128,112)}function y(a,d,g){return g^a&(d^g)}function p(a,d,g){return a&d|g&(a|d)}function m(a,d){return(a>>>28|d<<4)^(d>>>2|a<<30)^(d>>>7|a<<25)}function b(a,d){return(a>>>14|d<<18)^(a>>>18|d<<14)^(d>>>9|a<<23)}function v(a,d){return(a>>>1|d<<31)^(a>>>8|d<<24)^a>>>7}function _(a,d){return(a>>>1|d<<31)^(a>>>8|d<<24)^(a>>>7|d<<25)}function s(a,d){return(a>>>19|d<<13)^(d>>>29|a<<3)^a>>>6}function o(a,d){return(a>>>19|d<<13)^(d>>>29|a<<3)^(a>>>6|d<<26)}function h(a,d){return a>>>0<d>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(a){for(var d=this._w,g=0|this._ah,w=0|this._bh,k=0|this._ch,S=0|this._dh,A=0|this._eh,j=0|this._fh,D=0|this._gh,N=0|this._hh,F=0|this._al,T=0|this._bl,I=0|this._cl,x=0|this._dl,O=0|this._el,R=0|this._fl,C=0|this._gl,P=0|this._hl,L=0;L<32;L+=2)d[L]=a.readInt32BE(4*L),d[L+1]=a.readInt32BE(4*L+4);for(;L<160;L+=2){var H=d[L-30],U=d[L-30+1],B=v(H,U),W=_(U,H),X=s(H=d[L-4],U=d[L-4+1]),et=o(U,H),ft=d[L-14],gt=d[L-14+1],bt=d[L-32],rt=d[L-32+1],Q=W+gt|0,K=B+ft+h(Q,W)|0;K=(K=K+X+h(Q=Q+et|0,et)|0)+bt+h(Q=Q+rt|0,rt)|0,d[L]=K,d[L+1]=Q}for(var nt=0;nt<160;nt+=2){K=d[nt],Q=d[nt+1];var At=p(g,w,k),ot=p(F,T,I),ut=m(g,F),Mt=m(F,g),Bt=b(A,O),G=b(O,A),Z=f[nt],J=f[nt+1],St=y(A,j,D),It=y(O,R,C),Ft=P+G|0,Xt=N+Bt+h(Ft,P)|0;Xt=(Xt=(Xt=Xt+St+h(Ft=Ft+It|0,It)|0)+Z+h(Ft=Ft+J|0,J)|0)+K+h(Ft=Ft+Q|0,Q)|0;var me=Mt+ot|0,fe=ut+At+h(me,Mt)|0;N=D,P=C,D=j,C=R,j=A,R=O,A=S+Xt+h(O=x+Ft|0,x)|0,S=k,x=I,k=w,I=T,w=g,T=F,g=Xt+fe+h(F=Ft+me|0,Ft)|0}this._al=this._al+F|0,this._bl=this._bl+T|0,this._cl=this._cl+I|0,this._dl=this._dl+x|0,this._el=this._el+O|0,this._fl=this._fl+R|0,this._gl=this._gl+C|0,this._hl=this._hl+P|0,this._ah=this._ah+g+h(this._al,F)|0,this._bh=this._bh+w+h(this._bl,T)|0,this._ch=this._ch+k+h(this._cl,I)|0,this._dh=this._dh+S+h(this._dl,x)|0,this._eh=this._eh+A+h(this._el,O)|0,this._fh=this._fh+j+h(this._fl,R)|0,this._gh=this._gh+D+h(this._gl,C)|0,this._hh=this._hh+N+h(this._hl,P)|0},u.prototype._hash=function(){var a=c.allocUnsafe(64);function d(g,w,k){a.writeInt32BE(g,k),a.writeInt32BE(w,k+4)}return d(this._ah,this._al,0),d(this._bh,this._bl,8),d(this._ch,this._cl,16),d(this._dh,this._dl,24),d(this._eh,this._el,32),d(this._fh,this._fl,40),d(this._gh,this._gl,48),d(this._hh,this._hl,56),a},r.exports=u},{"./hash":498,inherits:387,"safe-buffer":494}],506:[function(t,r,e){r.exports=i;var n=t("events").EventEmitter;function i(){n.call(this)}t("inherits")(i,n),i.Readable=t("readable-stream/readable.js"),i.Writable=t("readable-stream/writable.js"),i.Duplex=t("readable-stream/duplex.js"),i.Transform=t("readable-stream/transform.js"),i.PassThrough=t("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(c,f){var l=this;function u(s){c.writable&&c.write(s)===!1&&l.pause&&l.pause()}function y(){l.readable&&l.resume&&l.resume()}l.on("data",u),c.on("drain",y),c._isStdio||f&&f.end===!1||(l.on("end",m),l.on("close",b));var p=!1;function m(){p||(p=!0,c.end())}function b(){p||(p=!0,typeof c.destroy=="function"&&c.destroy())}function v(s){if(_(),n.listenerCount(this,"error")===0)throw s}function _(){l.removeListener("data",u),c.removeListener("drain",y),l.removeListener("end",m),l.removeListener("close",b),l.removeListener("error",v),c.removeListener("error",v),l.removeListener("end",_),l.removeListener("close",_),c.removeListener("close",_)}return l.on("error",v),c.on("error",v),l.on("end",_),l.on("close",_),c.on("close",_),c.emit("pipe",l),c}},{events:367,inherits:387,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],507:[function(t,r,e){r.exports=t("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(t,r,e){var n=t("process-nextick-args"),i=Object.keys||function(_){var s=[];for(var o in _)s.push(o);return s};r.exports=m;var c=Object.create(t("core-util-is"));c.inherits=t("inherits");var f=t("./_stream_readable"),l=t("./_stream_writable");c.inherits(m,f);for(var u=i(l.prototype),y=0;y<u.length;y++){var p=u[y];m.prototype[p]||(m.prototype[p]=l.prototype[p])}function m(_){if(!(this instanceof m))return new m(_);f.call(this,_),l.call(this,_),_&&_.readable===!1&&(this.readable=!1),_&&_.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,_&&_.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",b)}function b(){this.allowHalfOpen||this._writableState.ended||n.nextTick(v,this)}function v(_){_.end()}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(_){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=_,this._writableState.destroyed=_)}}),m.prototype._destroy=function(_,s){this.push(null),this.end(),n.nextTick(s,_)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":328,inherits:387,"process-nextick-args":466}],509:[function(t,r,e){r.exports=c;var n=t("./_stream_transform"),i=Object.create(t("core-util-is"));function c(f){if(!(this instanceof c))return new c(f);n.call(this,f)}i.inherits=t("inherits"),i.inherits(c,n),c.prototype._transform=function(f,l,u){u(null,f)}},{"./_stream_transform":511,"core-util-is":328,inherits:387}],510:[function(t,r,e){(function(n,i){var c=t("process-nextick-args");r.exports=S;var f,l=t("isarray");S.ReadableState=k,t("events").EventEmitter;var u=function(K,nt){return K.listeners(nt).length},y=t("./internal/streams/stream"),p=t("safe-buffer").Buffer,m=i.Uint8Array||function(){};function b(K){return p.from(K)}function v(K){return p.isBuffer(K)||K instanceof m}var _=Object.create(t("core-util-is"));_.inherits=t("inherits");var s=t("util"),o=void 0;o=s&&s.debuglog?s.debuglog("stream"):function(){};var h,a=t("./internal/streams/BufferList"),d=t("./internal/streams/destroy");_.inherits(S,y);var g=["error","close","destroy","pause","resume"];function w(K,nt,At){if(typeof K.prependListener=="function")return K.prependListener(nt,At);K._events&&K._events[nt]?l(K._events[nt])?K._events[nt].unshift(At):K._events[nt]=[At,K._events[nt]]:K.on(nt,At)}function k(K,nt){K=K||{};var At=nt instanceof(f=f||t("./_stream_duplex"));this.objectMode=!!K.objectMode,At&&(this.objectMode=this.objectMode||!!K.readableObjectMode);var ot=K.highWaterMark,ut=K.readableHighWaterMark,Mt=this.objectMode?16:16384;this.highWaterMark=ot||ot===0?ot:At&&(ut||ut===0)?ut:Mt,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=K.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,K.encoding&&(h||(h=t("string_decoder/").StringDecoder),this.decoder=new h(K.encoding),this.encoding=K.encoding)}function S(K){if(f=f||t("./_stream_duplex"),!(this instanceof S))return new S(K);this._readableState=new k(K,this),this.readable=!0,K&&(typeof K.read=="function"&&(this._read=K.read),typeof K.destroy=="function"&&(this._destroy=K.destroy)),y.call(this)}function A(K,nt,At,ot,ut){var Mt,Bt=K._readableState;return nt===null?(Bt.reading=!1,x(K,Bt)):(ut||(Mt=D(Bt,nt)),Mt?K.emit("error",Mt):Bt.objectMode||nt&&nt.length>0?(typeof nt=="string"||Bt.objectMode||Object.getPrototypeOf(nt)===p.prototype||(nt=b(nt)),ot?Bt.endEmitted?K.emit("error",new Error("stream.unshift() after end event")):j(K,Bt,nt,!0):Bt.ended?K.emit("error",new Error("stream.push() after EOF")):(Bt.reading=!1,Bt.decoder&&!At?(nt=Bt.decoder.write(nt),Bt.objectMode||nt.length!==0?j(K,Bt,nt,!1):C(K,Bt)):j(K,Bt,nt,!1))):ot||(Bt.reading=!1)),N(Bt)}function j(K,nt,At,ot){nt.flowing&&nt.length===0&&!nt.sync?(K.emit("data",At),K.read(0)):(nt.length+=nt.objectMode?1:At.length,ot?nt.buffer.unshift(At):nt.buffer.push(At),nt.needReadable&&O(K)),C(K,nt)}function D(K,nt){var At;return v(nt)||typeof nt=="string"||nt===void 0||K.objectMode||(At=new TypeError("Invalid non-string/buffer chunk")),At}function N(K){return!K.ended&&(K.needReadable||K.length<K.highWaterMark||K.length===0)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(K){this._readableState&&(this._readableState.destroyed=K)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(K,nt){this.push(null),nt(K)},S.prototype.push=function(K,nt){var At,ot=this._readableState;return ot.objectMode?At=!0:typeof K=="string"&&((nt=nt||ot.defaultEncoding)!==ot.encoding&&(K=p.from(K,nt),nt=""),At=!0),A(this,K,nt,!1,At)},S.prototype.unshift=function(K){return A(this,K,null,!0,!1)},S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(K){return h||(h=t("string_decoder/").StringDecoder),this._readableState.decoder=new h(K),this._readableState.encoding=K,this};var F=8388608;function T(K){return K>=F?K=F:(K--,K|=K>>>1,K|=K>>>2,K|=K>>>4,K|=K>>>8,K|=K>>>16,K++),K}function I(K,nt){return K<=0||nt.length===0&&nt.ended?0:nt.objectMode?1:K!=K?nt.flowing&&nt.length?nt.buffer.head.data.length:nt.length:(K>nt.highWaterMark&&(nt.highWaterMark=T(K)),K<=nt.length?K:nt.ended?nt.length:(nt.needReadable=!0,0))}function x(K,nt){if(!nt.ended){if(nt.decoder){var At=nt.decoder.end();At&&At.length&&(nt.buffer.push(At),nt.length+=nt.objectMode?1:At.length)}nt.ended=!0,O(K)}}function O(K){var nt=K._readableState;nt.needReadable=!1,nt.emittedReadable||(o("emitReadable",nt.flowing),nt.emittedReadable=!0,nt.sync?c.nextTick(R,K):R(K))}function R(K){o("emit readable"),K.emit("readable"),W(K)}function C(K,nt){nt.readingMore||(nt.readingMore=!0,c.nextTick(P,K,nt))}function P(K,nt){for(var At=nt.length;!nt.reading&&!nt.flowing&&!nt.ended&&nt.length<nt.highWaterMark&&(o("maybeReadMore read 0"),K.read(0),At!==nt.length);)At=nt.length;nt.readingMore=!1}function L(K){return function(){var nt=K._readableState;o("pipeOnDrain",nt.awaitDrain),nt.awaitDrain&&nt.awaitDrain--,nt.awaitDrain===0&&u(K,"data")&&(nt.flowing=!0,W(K))}}function H(K){o("readable nexttick read 0"),K.read(0)}function U(K,nt){nt.resumeScheduled||(nt.resumeScheduled=!0,c.nextTick(B,K,nt))}function B(K,nt){nt.reading||(o("resume read 0"),K.read(0)),nt.resumeScheduled=!1,nt.awaitDrain=0,K.emit("resume"),W(K),nt.flowing&&!nt.reading&&K.read(0)}function W(K){var nt=K._readableState;for(o("flow",nt.flowing);nt.flowing&&K.read()!==null;);}function X(K,nt){return nt.length===0?null:(nt.objectMode?At=nt.buffer.shift():!K||K>=nt.length?(At=nt.decoder?nt.buffer.join(""):nt.buffer.length===1?nt.buffer.head.data:nt.buffer.concat(nt.length),nt.buffer.clear()):At=et(K,nt.buffer,nt.decoder),At);var At}function et(K,nt,At){var ot;return K<nt.head.data.length?(ot=nt.head.data.slice(0,K),nt.head.data=nt.head.data.slice(K)):ot=K===nt.head.data.length?nt.shift():At?ft(K,nt):gt(K,nt),ot}function ft(K,nt){var At=nt.head,ot=1,ut=At.data;for(K-=ut.length;At=At.next;){var Mt=At.data,Bt=K>Mt.length?Mt.length:K;if(Bt===Mt.length?ut+=Mt:ut+=Mt.slice(0,K),(K-=Bt)==0){Bt===Mt.length?(++ot,At.next?nt.head=At.next:nt.head=nt.tail=null):(nt.head=At,At.data=Mt.slice(Bt));break}++ot}return nt.length-=ot,ut}function gt(K,nt){var At=p.allocUnsafe(K),ot=nt.head,ut=1;for(ot.data.copy(At),K-=ot.data.length;ot=ot.next;){var Mt=ot.data,Bt=K>Mt.length?Mt.length:K;if(Mt.copy(At,At.length-K,0,Bt),(K-=Bt)==0){Bt===Mt.length?(++ut,ot.next?nt.head=ot.next:nt.head=nt.tail=null):(nt.head=ot,ot.data=Mt.slice(Bt));break}++ut}return nt.length-=ut,At}function bt(K){var nt=K._readableState;if(nt.length>0)throw new Error('"endReadable()" called on non-empty stream');nt.endEmitted||(nt.ended=!0,c.nextTick(rt,nt,K))}function rt(K,nt){K.endEmitted||K.length!==0||(K.endEmitted=!0,nt.readable=!1,nt.emit("end"))}function Q(K,nt){for(var At=0,ot=K.length;At<ot;At++)if(K[At]===nt)return At;return-1}S.prototype.read=function(K){o("read",K),K=parseInt(K,10);var nt=this._readableState,At=K;if(K!==0&&(nt.emittedReadable=!1),K===0&&nt.needReadable&&(nt.length>=nt.highWaterMark||nt.ended))return o("read: emitReadable",nt.length,nt.ended),nt.length===0&&nt.ended?bt(this):O(this),null;if((K=I(K,nt))===0&&nt.ended)return nt.length===0&&bt(this),null;var ot,ut=nt.needReadable;return o("need readable",ut),(nt.length===0||nt.length-K<nt.highWaterMark)&&o("length less than watermark",ut=!0),nt.ended||nt.reading?o("reading or ended",ut=!1):ut&&(o("do read"),nt.reading=!0,nt.sync=!0,nt.length===0&&(nt.needReadable=!0),this._read(nt.highWaterMark),nt.sync=!1,nt.reading||(K=I(At,nt))),(ot=K>0?X(K,nt):null)===null?(nt.needReadable=!0,K=0):nt.length-=K,nt.length===0&&(nt.ended||(nt.needReadable=!0),At!==K&&nt.ended&&bt(this)),ot!==null&&this.emit("data",ot),ot},S.prototype._read=function(K){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(K,nt){var At=this,ot=this._readableState;switch(ot.pipesCount){case 0:ot.pipes=K;break;case 1:ot.pipes=[ot.pipes,K];break;default:ot.pipes.push(K)}ot.pipesCount+=1,o("pipe count=%d opts=%j",ot.pipesCount,nt);var ut=nt&&nt.end===!1||K===n.stdout||K===n.stderr?fe:Bt;function Mt(Kt,ie){o("onunpipe"),Kt===At&&ie&&ie.hasUnpiped===!1&&(ie.hasUnpiped=!0,J())}function Bt(){o("onend"),K.end()}ot.endEmitted?c.nextTick(ut):At.once("end",ut),K.on("unpipe",Mt);var G=L(At);K.on("drain",G);var Z=!1;function J(){o("cleanup"),K.removeListener("close",Xt),K.removeListener("finish",me),K.removeListener("drain",G),K.removeListener("error",Ft),K.removeListener("unpipe",Mt),At.removeListener("end",Bt),At.removeListener("end",fe),At.removeListener("data",It),Z=!0,!ot.awaitDrain||K._writableState&&!K._writableState.needDrain||G()}var St=!1;function It(Kt){o("ondata"),St=!1,K.write(Kt)!==!1||St||((ot.pipesCount===1&&ot.pipes===K||ot.pipesCount>1&&Q(ot.pipes,K)!==-1)&&!Z&&(o("false write response, pause",At._readableState.awaitDrain),At._readableState.awaitDrain++,St=!0),At.pause())}function Ft(Kt){o("onerror",Kt),fe(),K.removeListener("error",Ft),u(K,"error")===0&&K.emit("error",Kt)}function Xt(){K.removeListener("finish",me),fe()}function me(){o("onfinish"),K.removeListener("close",Xt),fe()}function fe(){o("unpipe"),At.unpipe(K)}return At.on("data",It),w(K,"error",Ft),K.once("close",Xt),K.once("finish",me),K.emit("pipe",At),ot.flowing||(o("pipe resume"),At.resume()),K},S.prototype.unpipe=function(K){var nt=this._readableState,At={hasUnpiped:!1};if(nt.pipesCount===0)return this;if(nt.pipesCount===1)return K&&K!==nt.pipes||(K||(K=nt.pipes),nt.pipes=null,nt.pipesCount=0,nt.flowing=!1,K&&K.emit("unpipe",this,At)),this;if(!K){var ot=nt.pipes,ut=nt.pipesCount;nt.pipes=null,nt.pipesCount=0,nt.flowing=!1;for(var Mt=0;Mt<ut;Mt++)ot[Mt].emit("unpipe",this,At);return this}var Bt=Q(nt.pipes,K);return Bt===-1||(nt.pipes.splice(Bt,1),nt.pipesCount-=1,nt.pipesCount===1&&(nt.pipes=nt.pipes[0]),K.emit("unpipe",this,At)),this},S.prototype.on=function(K,nt){var At=y.prototype.on.call(this,K,nt);if(K==="data")this._readableState.flowing!==!1&&this.resume();else if(K==="readable"){var ot=this._readableState;ot.endEmitted||ot.readableListening||(ot.readableListening=ot.needReadable=!0,ot.emittedReadable=!1,ot.reading?ot.length&&O(this):c.nextTick(H,this))}return At},S.prototype.addListener=S.prototype.on,S.prototype.resume=function(){var K=this._readableState;return K.flowing||(o("resume"),K.flowing=!0,U(this,K)),this},S.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this},S.prototype.wrap=function(K){var nt=this,At=this._readableState,ot=!1;for(var ut in K.on("end",function(){if(o("wrapped end"),At.decoder&&!At.ended){var Bt=At.decoder.end();Bt&&Bt.length&&nt.push(Bt)}nt.push(null)}),K.on("data",function(Bt){o("wrapped data"),At.decoder&&(Bt=At.decoder.write(Bt)),At.objectMode&&Bt==null||(At.objectMode||Bt&&Bt.length)&&(nt.push(Bt)||(ot=!0,K.pause()))}),K)this[ut]===void 0&&typeof K[ut]=="function"&&(this[ut]=function(Bt){return function(){return K[Bt].apply(K,arguments)}}(ut));for(var Mt=0;Mt<g.length;Mt++)K.on(g[Mt],this.emit.bind(this,g[Mt]));return this._read=function(Bt){o("wrapped _read",Bt),ot&&(ot=!1,K.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=X}).call(this,t("_process"),dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":328,events:367,inherits:387,isarray:389,"process-nextick-args":466,"safe-buffer":494,"string_decoder/":520,util:185}],511:[function(t,r,e){r.exports=f;var n=t("./_stream_duplex"),i=Object.create(t("core-util-is"));function c(y,p){var m=this._transformState;m.transforming=!1;var b=m.writecb;if(!b)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,p!=null&&this.push(p),b(y);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function f(y){if(!(this instanceof f))return new f(y);n.call(this,y),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,y&&(typeof y.transform=="function"&&(this._transform=y.transform),typeof y.flush=="function"&&(this._flush=y.flush)),this.on("prefinish",l)}function l(){var y=this;typeof this._flush=="function"?this._flush(function(p,m){u(y,p,m)}):u(this,null,null)}function u(y,p,m){if(p)return y.emit("error",p);if(m!=null&&y.push(m),y._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(y._transformState.transforming)throw new Error("Calling transform done when still transforming");return y.push(null)}i.inherits=t("inherits"),i.inherits(f,n),f.prototype.push=function(y,p){return this._transformState.needTransform=!1,n.prototype.push.call(this,y,p)},f.prototype._transform=function(y,p,m){throw new Error("_transform() is not implemented")},f.prototype._write=function(y,p,m){var b=this._transformState;if(b.writecb=m,b.writechunk=y,b.writeencoding=p,!b.transforming){var v=this._readableState;(b.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},f.prototype._read=function(y){var p=this._transformState;p.writechunk!==null&&p.writecb&&!p.transforming?(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform)):p.needTransform=!0},f.prototype._destroy=function(y,p){var m=this;n.prototype._destroy.call(this,y,function(b){p(b),m.emit("close")})}},{"./_stream_duplex":508,"core-util-is":328,inherits:387}],512:[function(t,r,e){(function(n,i,c){var f=t("process-nextick-args");function l(B){var W=this;this.next=null,this.entry=null,this.finish=function(){U(W,B)}}r.exports=w;var u,y=!n.browser&&["v0.10","v0.9."].indexOf(n.version.slice(0,5))>-1?c:f.nextTick;w.WritableState=g;var p=Object.create(t("core-util-is"));p.inherits=t("inherits");var m={deprecate:t("util-deprecate")},b=t("./internal/streams/stream"),v=t("safe-buffer").Buffer,_=i.Uint8Array||function(){};function s(B){return v.from(B)}function o(B){return v.isBuffer(B)||B instanceof _}var h,a=t("./internal/streams/destroy");function d(){}function g(B,W){u=u||t("./_stream_duplex"),B=B||{};var X=W instanceof u;this.objectMode=!!B.objectMode,X&&(this.objectMode=this.objectMode||!!B.writableObjectMode);var et=B.highWaterMark,ft=B.writableHighWaterMark,gt=this.objectMode?16:16384;this.highWaterMark=et||et===0?et:X&&(ft||ft===0)?ft:gt,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var bt=B.decodeStrings===!1;this.decodeStrings=!bt,this.defaultEncoding=B.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(rt){T(W,rt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function w(B){if(u=u||t("./_stream_duplex"),!(h.call(w,this)||this instanceof u))return new w(B);this._writableState=new g(B,this),this.writable=!0,B&&(typeof B.write=="function"&&(this._write=B.write),typeof B.writev=="function"&&(this._writev=B.writev),typeof B.destroy=="function"&&(this._destroy=B.destroy),typeof B.final=="function"&&(this._final=B.final)),b.call(this)}function k(B,W){var X=new Error("write after end");B.emit("error",X),f.nextTick(W,X)}function S(B,W,X,et){var ft=!0,gt=!1;return X===null?gt=new TypeError("May not write null values to stream"):typeof X=="string"||X===void 0||W.objectMode||(gt=new TypeError("Invalid non-string/buffer chunk")),gt&&(B.emit("error",gt),f.nextTick(et,gt),ft=!1),ft}function A(B,W,X){return B.objectMode||B.decodeStrings===!1||typeof W!="string"||(W=v.from(W,X)),W}function j(B,W,X,et,ft,gt){if(!X){var bt=A(W,et,ft);et!==bt&&(X=!0,ft="buffer",et=bt)}var rt=W.objectMode?1:et.length;W.length+=rt;var Q=W.length<W.highWaterMark;if(Q||(W.needDrain=!0),W.writing||W.corked){var K=W.lastBufferedRequest;W.lastBufferedRequest={chunk:et,encoding:ft,isBuf:X,callback:gt,next:null},K?K.next=W.lastBufferedRequest:W.bufferedRequest=W.lastBufferedRequest,W.bufferedRequestCount+=1}else D(B,W,!1,rt,et,ft,gt);return Q}function D(B,W,X,et,ft,gt,bt){W.writelen=et,W.writecb=bt,W.writing=!0,W.sync=!0,X?B._writev(ft,W.onwrite):B._write(ft,gt,W.onwrite),W.sync=!1}function N(B,W,X,et,ft){--W.pendingcb,X?(f.nextTick(ft,et),f.nextTick(L,B,W),B._writableState.errorEmitted=!0,B.emit("error",et)):(ft(et),B._writableState.errorEmitted=!0,B.emit("error",et),L(B,W))}function F(B){B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0}function T(B,W){var X=B._writableState,et=X.sync,ft=X.writecb;if(F(X),W)N(B,X,et,W,ft);else{var gt=R(X);gt||X.corked||X.bufferProcessing||!X.bufferedRequest||O(B,X),et?y(I,B,X,gt,ft):I(B,X,gt,ft)}}function I(B,W,X,et){X||x(B,W),W.pendingcb--,et(),L(B,W)}function x(B,W){W.length===0&&W.needDrain&&(W.needDrain=!1,B.emit("drain"))}function O(B,W){W.bufferProcessing=!0;var X=W.bufferedRequest;if(B._writev&&X&&X.next){var et=W.bufferedRequestCount,ft=new Array(et),gt=W.corkedRequestsFree;gt.entry=X;for(var bt=0,rt=!0;X;)ft[bt]=X,X.isBuf||(rt=!1),X=X.next,bt+=1;ft.allBuffers=rt,D(B,W,!0,W.length,ft,"",gt.finish),W.pendingcb++,W.lastBufferedRequest=null,gt.next?(W.corkedRequestsFree=gt.next,gt.next=null):W.corkedRequestsFree=new l(W),W.bufferedRequestCount=0}else{for(;X;){var Q=X.chunk,K=X.encoding,nt=X.callback;if(D(B,W,!1,W.objectMode?1:Q.length,Q,K,nt),X=X.next,W.bufferedRequestCount--,W.writing)break}X===null&&(W.lastBufferedRequest=null)}W.bufferedRequest=X,W.bufferProcessing=!1}function R(B){return B.ending&&B.length===0&&B.bufferedRequest===null&&!B.finished&&!B.writing}function C(B,W){B._final(function(X){W.pendingcb--,X&&B.emit("error",X),W.prefinished=!0,B.emit("prefinish"),L(B,W)})}function P(B,W){W.prefinished||W.finalCalled||(typeof B._final=="function"?(W.pendingcb++,W.finalCalled=!0,f.nextTick(C,B,W)):(W.prefinished=!0,B.emit("prefinish")))}function L(B,W){var X=R(W);return X&&(P(B,W),W.pendingcb===0&&(W.finished=!0,B.emit("finish"))),X}function H(B,W,X){W.ending=!0,L(B,W),X&&(W.finished?f.nextTick(X):B.once("finish",X)),W.ended=!0,B.writable=!1}function U(B,W,X){var et=B.entry;for(B.entry=null;et;){var ft=et.callback;W.pendingcb--,ft(X),et=et.next}W.corkedRequestsFree?W.corkedRequestsFree.next=B:W.corkedRequestsFree=B}p.inherits(w,b),g.prototype.getBuffer=function(){for(var B=this.bufferedRequest,W=[];B;)W.push(B),B=B.next;return W},function(){try{Object.defineProperty(g.prototype,"buffer",{get:m.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(B){}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(w,Symbol.hasInstance,{value:function(B){return!!h.call(this,B)||this===w&&B&&B._writableState instanceof g}})):h=function(B){return B instanceof this},w.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},w.prototype.write=function(B,W,X){var et=this._writableState,ft=!1,gt=!et.objectMode&&o(B);return gt&&!v.isBuffer(B)&&(B=s(B)),typeof W=="function"&&(X=W,W=null),gt?W="buffer":W||(W=et.defaultEncoding),typeof X!="function"&&(X=d),et.ended?k(this,X):(gt||S(this,et,B,X))&&(et.pendingcb++,ft=j(this,et,gt,B,W,X)),ft},w.prototype.cork=function(){this._writableState.corked++},w.prototype.uncork=function(){var B=this._writableState;B.corked&&(B.corked--,B.writing||B.corked||B.finished||B.bufferProcessing||!B.bufferedRequest||O(this,B))},w.prototype.setDefaultEncoding=function(B){if(typeof B=="string"&&(B=B.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((B+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+B);return this._writableState.defaultEncoding=B,this},Object.defineProperty(w.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),w.prototype._write=function(B,W,X){X(new Error("_write() is not implemented"))},w.prototype._writev=null,w.prototype.end=function(B,W,X){var et=this._writableState;typeof B=="function"?(X=B,B=null,W=null):typeof W=="function"&&(X=W,W=null),B!=null&&this.write(B,W),et.corked&&(et.corked=1,this.uncork()),et.ending||et.finished||H(this,et,X)},Object.defineProperty(w.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(B){this._writableState&&(this._writableState.destroyed=B)}}),w.prototype.destroy=a.destroy,w.prototype._undestroy=a.undestroy,w.prototype._destroy=function(B,W){this.end(),W(B)}}).call(this,t("_process"),dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{},t("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":328,inherits:387,"process-nextick-args":466,"safe-buffer":494,timers:521,"util-deprecate":522}],513:[function(t,r,e){function n(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}var i=t("safe-buffer").Buffer,c=t("util");function f(l,u,y){l.copy(u,y)}r.exports=function(){function l(){n(this,l),this.head=null,this.tail=null,this.length=0}return l.prototype.push=function(u){var y={data:u,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length},l.prototype.unshift=function(u){var y={data:u,next:this.head};this.length===0&&(this.tail=y),this.head=y,++this.length},l.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},l.prototype.clear=function(){this.head=this.tail=null,this.length=0},l.prototype.join=function(u){if(this.length===0)return"";for(var y=this.head,p=""+y.data;y=y.next;)p+=u+y.data;return p},l.prototype.concat=function(u){if(this.length===0)return i.alloc(0);if(this.length===1)return this.head.data;for(var y=i.allocUnsafe(u>>>0),p=this.head,m=0;p;)f(p.data,y,m),m+=p.data.length,p=p.next;return y},l}(),c&&c.inspect&&c.inspect.custom&&(r.exports.prototype[c.inspect.custom]=function(){var l=c.inspect({length:this.length});return this.constructor.name+" "+l})},{"safe-buffer":494,util:185}],514:[function(t,r,e){var n=t("process-nextick-args");function i(l,u){var y=this,p=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return p||m?(u?u(l):!l||this._writableState&&this._writableState.errorEmitted||n.nextTick(f,this,l),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(l||null,function(b){!u&&b?(n.nextTick(f,y,b),y._writableState&&(y._writableState.errorEmitted=!0)):u&&u(b)}),this)}function c(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function f(l,u){l.emit("error",u)}r.exports={destroy:i,undestroy:c}},{"process-nextick-args":466}],515:[function(t,r,e){arguments[4][490][0].apply(e,arguments)},{dup:490,events:367}],516:[function(t,r,e){r.exports=t("./readable").PassThrough},{"./readable":517}],517:[function(t,r,e){(e=r.exports=t("./lib/_stream_readable.js")).Stream=e,e.Readable=e,e.Writable=t("./lib/_stream_writable.js"),e.Duplex=t("./lib/_stream_duplex.js"),e.Transform=t("./lib/_stream_transform.js"),e.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(t,r,e){r.exports=t("./readable").Transform},{"./readable":517}],519:[function(t,r,e){r.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(t,r,e){var n=t("safe-buffer").Buffer,i=n.isEncoding||function(g){switch((g=""+g)&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function c(g){if(!g)return"utf8";for(var w;;)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(w)return;g=(""+g).toLowerCase(),w=!0}}function f(g){var w=c(g);if(typeof w!="string"&&(n.isEncoding===i||!i(g)))throw new Error("Unknown encoding: "+g);return w||g}function l(g){var w;switch(this.encoding=f(g),this.encoding){case"utf16le":this.text=_,this.end=s,w=4;break;case"utf8":this.fillLast=m,w=4;break;case"base64":this.text=o,this.end=h,w=3;break;default:return this.write=a,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(w)}function u(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function y(g,w,k){var S=w.length-1;if(S<k)return 0;var A=u(w[S]);return A>=0?(A>0&&(g.lastNeed=A-1),A):--S<k||A===-2?0:(A=u(w[S]))>=0?(A>0&&(g.lastNeed=A-2),A):--S<k||A===-2?0:(A=u(w[S]))>=0?(A>0&&(A===2?A=0:g.lastNeed=A-3),A):0}function p(g,w,k){if((192&w[0])!=128)return g.lastNeed=0,"<22>";if(g.lastNeed>1&&w.length>1){if((192&w[1])!=128)return g.lastNeed=1,"<22>";if(g.lastNeed>2&&w.length>2&&(192&w[2])!=128)return g.lastNeed=2,"<22>"}}function m(g){var w=this.lastTotal-this.lastNeed,k=p(this,g);return k!==void 0?k:this.lastNeed<=g.length?(g.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,w,0,g.length),void(this.lastNeed-=g.length))}function b(g,w){var k=y(this,g,w);if(!this.lastNeed)return g.toString("utf8",w);this.lastTotal=k;var S=g.length-(k-this.lastNeed);return g.copy(this.lastChar,0,S),g.toString("utf8",w,S)}function v(g){var w=g&&g.length?this.write(g):"";return this.lastNeed?w+"<22>":w}function _(g,w){if((g.length-w)%2==0){var k=g.toString("utf16le",w);if(k){var S=k.charCodeAt(k.length-1);if(S>=55296&&S<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],k.slice(0,-1)}return k}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",w,g.length-1)}function s(g){var w=g&&g.length?this.write(g):"";if(this.lastNeed){var k=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,k)}return w}function o(g,w){var k=(g.length-w)%3;return k===0?g.toString("base64",w):(this.lastNeed=3-k,this.lastTotal=3,k===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",w,g.length-k))}function h(g){var w=g&&g.length?this.write(g):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function a(g){return g.toString(this.encoding)}function d(g){return g&&g.length?this.write(g):""}e.StringDecoder=l,l.prototype.write=function(g){if(g.length===0)return"";var w,k;if(this.lastNeed){if((w=this.fillLast(g))===void 0)return"";k=this.lastNeed,this.lastNeed=0}else k=0;return k<g.length?w?w+this.text(g,k):this.text(g,k):w||""},l.prototype.end=v,l.prototype.text=b,l.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},{"safe-buffer":494}],521:[function(t,r,e){(function(n,i){var c=t("process/browser.js").nextTick,f=Function.prototype.apply,l=Array.prototype.slice,u={},y=0;function p(m,b){this._id=m,this._clearFn=b}e.setTimeout=function(){return new p(f.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new p(f.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(m){m.close()},p.prototype.unref=p.prototype.ref=function(){},p.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(m,b){clearTimeout(m._idleTimeoutId),m._idleTimeout=b},e.unenroll=function(m){clearTimeout(m._idleTimeoutId),m._idleTimeout=-1},e._unrefActive=e.active=function(m){clearTimeout(m._idleTimeoutId);var b=m._idleTimeout;b>=0&&(m._idleTimeoutId=setTimeout(function(){m._onTimeout&&m._onTimeout()},b))},e.setImmediate=typeof n=="function"?n:function(m){var b=y++,v=!(arguments.length<2)&&l.call(arguments,1);return u[b]=!0,c(function(){u[b]&&(v?m.apply(null,v):m.call(null),e.clearImmediate(b))}),b},e.clearImmediate=typeof i=="function"?i:function(m){delete u[m]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":467,timers:521}],522:[function(t,r,e){(function(n){function i(f,l){if(c("noDeprecation"))return f;var u=!1;function y(){if(!u){if(c("throwDeprecation"))throw new Error(l);c("traceDeprecation")?console.trace(l):console.warn(l),u=!0}return f.apply(this,arguments)}return y}function c(f){try{if(!n.localStorage)return!1}catch(u){return!1}var l=n.localStorage[f];return l!=null&&String(l).toLowerCase()==="true"}r.exports=i}).call(this,dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],523:[function(t,r,e){typeof Object.create=="function"?r.exports=function(n,i){n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:r.exports=function(n,i){n.super_=i;var c=function(){};c.prototype=i.prototype,n.prototype=new c,n.prototype.constructor=n}},{}],524:[function(t,r,e){function n(i){return(n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(i)}r.exports=function(i){return i&&n(i)==="object"&&typeof i.copy=="function"&&typeof i.fill=="function"&&typeof i.readUInt8=="function"}},{}],525:[function(t,r,e){(function(n,i){function c(U){return(c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B})(U)}var f=/%[sdj%]/g;e.format=function(U){if(!A(U)){for(var B=[],W=0;W<arguments.length;W++)B.push(y(arguments[W]));return B.join(" ")}W=1;for(var X=arguments,et=X.length,ft=String(U).replace(f,function(bt){if(bt==="%%")return"%";if(W>=et)return bt;switch(bt){case"%s":return String(X[W++]);case"%d":return Number(X[W++]);case"%j":try{return JSON.stringify(X[W++])}catch(rt){return"[Circular]"}default:return bt}}),gt=X[W];W<et;gt=X[++W])w(gt)||!F(gt)?ft+=" "+gt:ft+=" "+y(gt);return ft},e.deprecate=function(U,B){if(D(i.process))return function(){return e.deprecate(U,B).apply(this,arguments)};if(n.noDeprecation===!0)return U;var W=!1;function X(){if(!W){if(n.throwDeprecation)throw new Error(B);n.traceDeprecation?console.trace(B):console.error(B),W=!0}return U.apply(this,arguments)}return X};var l,u={};function y(U,B){var W={seen:[],stylize:m};return arguments.length>=3&&(W.depth=arguments[2]),arguments.length>=4&&(W.colors=arguments[3]),g(B)?W.showHidden=B:B&&e._extend(W,B),D(W.showHidden)&&(W.showHidden=!1),D(W.depth)&&(W.depth=2),D(W.colors)&&(W.colors=!1),D(W.customInspect)&&(W.customInspect=!0),W.colors&&(W.stylize=p),v(W,U,W.depth)}function p(U,B){var W=y.styles[B];return W?"\x1B["+y.colors[W][0]+"m"+U+"\x1B["+y.colors[W][1]+"m":U}function m(U,B){return U}function b(U){var B={};return U.forEach(function(W,X){B[W]=!0}),B}function v(U,B,W){if(U.customInspect&&B&&x(B.inspect)&&B.inspect!==e.inspect&&(!B.constructor||B.constructor.prototype!==B)){var X=B.inspect(W,U);return A(X)||(X=v(U,X,W)),X}var et=_(U,B);if(et)return et;var ft=Object.keys(B),gt=b(ft);if(U.showHidden&&(ft=Object.getOwnPropertyNames(B)),I(B)&&(ft.indexOf("message")>=0||ft.indexOf("description")>=0))return s(B);if(ft.length===0){if(x(B)){var bt=B.name?": "+B.name:"";return U.stylize("[Function"+bt+"]","special")}if(N(B))return U.stylize(RegExp.prototype.toString.call(B),"regexp");if(T(B))return U.stylize(Date.prototype.toString.call(B),"date");if(I(B))return s(B)}var rt,Q="",K=!1,nt=["{","}"];return d(B)&&(K=!0,nt=["[","]"]),x(B)&&(Q=" [Function"+(B.name?": "+B.name:"")+"]"),N(B)&&(Q=" "+RegExp.prototype.toString.call(B)),T(B)&&(Q=" "+Date.prototype.toUTCString.call(B)),I(B)&&(Q=" "+s(B)),ft.length!==0||K&&B.length!=0?W<0?N(B)?U.stylize(RegExp.prototype.toString.call(B),"regexp"):U.stylize("[Object]","special"):(U.seen.push(B),rt=K?o(U,B,W,gt,ft):ft.map(function(At){return h(U,B,W,gt,At,K)}),U.seen.pop(),a(rt,Q,nt)):nt[0]+Q+nt[1]}function _(U,B){if(D(B))return U.stylize("undefined","undefined");if(A(B)){var W="'"+JSON.stringify(B).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(W,"string")}return S(B)?U.stylize(""+B,"number"):g(B)?U.stylize(""+B,"boolean"):w(B)?U.stylize("null","null"):void 0}function s(U){return"["+Error.prototype.toString.call(U)+"]"}function o(U,B,W,X,et){for(var ft=[],gt=0,bt=B.length;gt<bt;++gt)H(B,String(gt))?ft.push(h(U,B,W,X,String(gt),!0)):ft.push("");return et.forEach(function(rt){rt.match(/^\d+$/)||ft.push(h(U,B,W,X,rt,!0))}),ft}function h(U,B,W,X,et,ft){var gt,bt,rt;if((rt=Object.getOwnPropertyDescriptor(B,et)||{value:B[et]}).get?bt=rt.set?U.stylize("[Getter/Setter]","special"):U.stylize("[Getter]","special"):rt.set&&(bt=U.stylize("[Setter]","special")),H(X,et)||(gt="["+et+"]"),bt||(U.seen.indexOf(rt.value)<0?(bt=w(W)?v(U,rt.value,null):v(U,rt.value,W-1)).indexOf(`
|
||
`)>-1&&(bt=ft?bt.split(`
|
||
`).map(function(Q){return" "+Q}).join(`
|
||
`).substr(2):`
|
||
`+bt.split(`
|
||
`).map(function(Q){return" "+Q}).join(`
|
||
`)):bt=U.stylize("[Circular]","special")),D(gt)){if(ft&&et.match(/^\d+$/))return bt;(gt=JSON.stringify(""+et)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(gt=gt.substr(1,gt.length-2),gt=U.stylize(gt,"name")):(gt=gt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),gt=U.stylize(gt,"string"))}return gt+": "+bt}function a(U,B,W){return U.reduce(function(X,et){return et.indexOf(`
|
||
`),X+et.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?W[0]+(B===""?"":B+`
|
||
`)+" "+U.join(`,
|
||
`)+" "+W[1]:W[0]+B+" "+U.join(", ")+" "+W[1]}function d(U){return Array.isArray(U)}function g(U){return typeof U=="boolean"}function w(U){return U===null}function k(U){return U==null}function S(U){return typeof U=="number"}function A(U){return typeof U=="string"}function j(U){return c(U)==="symbol"}function D(U){return U===void 0}function N(U){return F(U)&&R(U)==="[object RegExp]"}function F(U){return c(U)==="object"&&U!==null}function T(U){return F(U)&&R(U)==="[object Date]"}function I(U){return F(U)&&(R(U)==="[object Error]"||U instanceof Error)}function x(U){return typeof U=="function"}function O(U){return U===null||typeof U=="boolean"||typeof U=="number"||typeof U=="string"||c(U)==="symbol"||U===void 0}function R(U){return Object.prototype.toString.call(U)}function C(U){return U<10?"0"+U.toString(10):U.toString(10)}e.debuglog=function(U){if(D(l)&&(l=n.env.NODE_DEBUG||""),U=U.toUpperCase(),!u[U])if(new RegExp("\\b"+U+"\\b","i").test(l)){var B=n.pid;u[U]=function(){var W=e.format.apply(e,arguments);console.error("%s %d: %s",U,B,W)}}else u[U]=function(){};return u[U]},e.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=g,e.isNull=w,e.isNullOrUndefined=k,e.isNumber=S,e.isString=A,e.isSymbol=j,e.isUndefined=D,e.isRegExp=N,e.isObject=F,e.isDate=T,e.isError=I,e.isFunction=x,e.isPrimitive=O,e.isBuffer=t("./support/isBuffer");var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var U=new Date,B=[C(U.getHours()),C(U.getMinutes()),C(U.getSeconds())].join(":");return[U.getDate(),P[U.getMonth()],B].join(" ")}function H(U,B){return Object.prototype.hasOwnProperty.call(U,B)}e.log=function(){console.log("%s - %s",L(),e.format.apply(e,arguments))},e.inherits=t("inherits"),e._extend=function(U,B){if(!B||!F(B))return U;for(var W=Object.keys(B),X=W.length;X--;)U[W[X]]=B[W[X]];return U}}).call(this,t("_process"),dr!==void 0?dr:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":524,_process:467,inherits:523}],526:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return m.default}});var n=b(t("./v1.js")),i=b(t("./v3.js")),c=b(t("./v4.js")),f=b(t("./v5.js")),l=b(t("./nil.js")),u=b(t("./version.js")),y=b(t("./validate.js")),p=b(t("./stringify.js")),m=b(t("./parse.js"));function b(v){return v&&v.__esModule?v:{default:v}}},{"./nil.js":528,"./parse.js":529,"./stringify.js":533,"./v1.js":534,"./v3.js":535,"./v4.js":537,"./v5.js":538,"./validate.js":539,"./version.js":540}],527:[function(t,r,e){function n(o){if(typeof o=="string"){var h=unescape(encodeURIComponent(o));o=new Uint8Array(h.length);for(var a=0;a<h.length;++a)o[a]=h.charCodeAt(a)}return i(f(l(o),8*o.length))}function i(o){for(var h=[],a=32*o.length,d="0123456789abcdef",g=0;g<a;g+=8){var w=o[g>>5]>>>g%32&255,k=parseInt(d.charAt(w>>>4&15)+d.charAt(15&w),16);h.push(k)}return h}function c(o){return 14+(o+64>>>9<<4)+1}function f(o,h){o[h>>5]|=128<<h%32,o[c(h)-1]=h;for(var a=1732584193,d=-271733879,g=-1732584194,w=271733878,k=0;k<o.length;k+=16){var S=a,A=d,j=g,D=w;a=m(a,d,g,w,o[k],7,-680876936),w=m(w,a,d,g,o[k+1],12,-389564586),g=m(g,w,a,d,o[k+2],17,606105819),d=m(d,g,w,a,o[k+3],22,-1044525330),a=m(a,d,g,w,o[k+4],7,-176418897),w=m(w,a,d,g,o[k+5],12,1200080426),g=m(g,w,a,d,o[k+6],17,-1473231341),d=m(d,g,w,a,o[k+7],22,-45705983),a=m(a,d,g,w,o[k+8],7,1770035416),w=m(w,a,d,g,o[k+9],12,-1958414417),g=m(g,w,a,d,o[k+10],17,-42063),d=m(d,g,w,a,o[k+11],22,-1990404162),a=m(a,d,g,w,o[k+12],7,1804603682),w=m(w,a,d,g,o[k+13],12,-40341101),g=m(g,w,a,d,o[k+14],17,-1502002290),a=b(a,d=m(d,g,w,a,o[k+15],22,1236535329),g,w,o[k+1],5,-165796510),w=b(w,a,d,g,o[k+6],9,-1069501632),g=b(g,w,a,d,o[k+11],14,643717713),d=b(d,g,w,a,o[k],20,-373897302),a=b(a,d,g,w,o[k+5],5,-701558691),w=b(w,a,d,g,o[k+10],9,38016083),g=b(g,w,a,d,o[k+15],14,-660478335),d=b(d,g,w,a,o[k+4],20,-405537848),a=b(a,d,g,w,o[k+9],5,568446438),w=b(w,a,d,g,o[k+14],9,-1019803690),g=b(g,w,a,d,o[k+3],14,-187363961),d=b(d,g,w,a,o[k+8],20,1163531501),a=b(a,d,g,w,o[k+13],5,-1444681467),w=b(w,a,d,g,o[k+2],9,-51403784),g=b(g,w,a,d,o[k+7],14,1735328473),a=v(a,d=b(d,g,w,a,o[k+12],20,-1926607734),g,w,o[k+5],4,-378558),w=v(w,a,d,g,o[k+8],11,-2022574463),g=v(g,w,a,d,o[k+11],16,1839030562),d=v(d,g,w,a,o[k+14],23,-35309556),a=v(a,d,g,w,o[k+1],4,-1530992060),w=v(w,a,d,g,o[k+4],11,1272893353),g=v(g,w,a,d,o[k+7],16,-155497632),d=v(d,g,w,a,o[k+10],23,-1094730640),a=v(a,d,g,w,o[k+13],4,681279174),w=v(w,a,d,g,o[k],11,-358537222),g=v(g,w,a,d,o[k+3],16,-722521979),d=v(d,g,w,a,o[k+6],23,76029189),a=v(a,d,g,w,o[k+9],4,-640364487),w=v(w,a,d,g,o[k+12],11,-421815835),g=v(g,w,a,d,o[k+15],16,530742520),a=_(a,d=v(d,g,w,a,o[k+2],23,-995338651),g,w,o[k],6,-198630844),w=_(w,a,d,g,o[k+7],10,1126891415),g=_(g,w,a,d,o[k+14],15,-1416354905),d=_(d,g,w,a,o[k+5],21,-57434055),a=_(a,d,g,w,o[k+12],6,1700485571),w=_(w,a,d,g,o[k+3],10,-1894986606),g=_(g,w,a,d,o[k+10],15,-1051523),d=_(d,g,w,a,o[k+1],21,-2054922799),a=_(a,d,g,w,o[k+8],6,1873313359),w=_(w,a,d,g,o[k+15],10,-30611744),g=_(g,w,a,d,o[k+6],15,-1560198380),d=_(d,g,w,a,o[k+13],21,1309151649),a=_(a,d,g,w,o[k+4],6,-145523070),w=_(w,a,d,g,o[k+11],10,-1120210379),g=_(g,w,a,d,o[k+2],15,718787259),d=_(d,g,w,a,o[k+9],21,-343485551),a=u(a,S),d=u(d,A),g=u(g,j),w=u(w,D)}return[a,d,g,w]}function l(o){if(o.length===0)return[];for(var h=8*o.length,a=new Uint32Array(c(h)),d=0;d<h;d+=8)a[d>>5]|=(255&o[d/8])<<d%32;return a}function u(o,h){var a=(65535&o)+(65535&h);return(o>>16)+(h>>16)+(a>>16)<<16|65535&a}function y(o,h){return o<<h|o>>>32-h}function p(o,h,a,d,g,w){return u(y(u(u(h,o),u(d,w)),g),a)}function m(o,h,a,d,g,w,k){return p(h&a|~h&d,o,h,g,w,k)}function b(o,h,a,d,g,w,k){return p(h&d|a&~d,o,h,g,w,k)}function v(o,h,a,d,g,w,k){return p(h^a^d,o,h,g,w,k)}function _(o,h,a,d,g,w,k){return p(a^(h|~d),o,h,g,w,k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=n;e.default=s},{}],528:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n="00000000-0000-0000-0000-000000000000";e.default=n},{}],529:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(t("./validate.js"));function i(l){return l&&l.__esModule?l:{default:l}}function c(l){if(!(0,n.default)(l))throw TypeError("Invalid UUID");var u,y=new Uint8Array(16);return y[0]=(u=parseInt(l.slice(0,8),16))>>>24,y[1]=u>>>16&255,y[2]=u>>>8&255,y[3]=255&u,y[4]=(u=parseInt(l.slice(9,13),16))>>>8,y[5]=255&u,y[6]=(u=parseInt(l.slice(14,18),16))>>>8,y[7]=255&u,y[8]=(u=parseInt(l.slice(19,23),16))>>>8,y[9]=255&u,y[10]=(u=parseInt(l.slice(24,36),16))/1099511627776&255,y[11]=u/4294967296&255,y[12]=u>>>24&255,y[13]=u>>>16&255,y[14]=u>>>8&255,y[15]=255&u,y}var f=c;e.default=f},{"./validate.js":539}],530:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;e.default=n},{}],531:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var n=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),i=new Uint8Array(16);function c(){if(!n)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}},{}],532:[function(t,r,e){function n(l,u,y,p){switch(l){case 0:return u&y^~u&p;case 1:case 3:return u^y^p;case 2:return u&y^u&p^y&p}}function i(l,u){return l<<u|l>>>32-u}function c(l){var u=[1518500249,1859775393,2400959708,3395469782],y=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof l=="string"){var p=unescape(encodeURIComponent(l));l=[];for(var m=0;m<p.length;++m)l.push(p.charCodeAt(m))}else Array.isArray(l)||(l=Array.prototype.slice.call(l));l.push(128);for(var b=l.length/4+2,v=Math.ceil(b/16),_=new Array(v),s=0;s<v;++s){for(var o=new Uint32Array(16),h=0;h<16;++h)o[h]=l[64*s+4*h]<<24|l[64*s+4*h+1]<<16|l[64*s+4*h+2]<<8|l[64*s+4*h+3];_[s]=o}_[v-1][14]=8*(l.length-1)/Math.pow(2,32),_[v-1][14]=Math.floor(_[v-1][14]),_[v-1][15]=8*(l.length-1)&4294967295;for(var a=0;a<v;++a){for(var d=new Uint32Array(80),g=0;g<16;++g)d[g]=_[a][g];for(var w=16;w<80;++w)d[w]=i(d[w-3]^d[w-8]^d[w-14]^d[w-16],1);for(var k=y[0],S=y[1],A=y[2],j=y[3],D=y[4],N=0;N<80;++N){var F=Math.floor(N/20),T=i(k,5)+n(F,S,A,j)+D+u[F]+d[N]>>>0;D=j,j=A,A=i(S,30)>>>0,S=k,k=T}y[0]=y[0]+k>>>0,y[1]=y[1]+S>>>0,y[2]=y[2]+A>>>0,y[3]=y[3]+j>>>0,y[4]=y[4]+D>>>0}return[y[0]>>24&255,y[0]>>16&255,y[0]>>8&255,255&y[0],y[1]>>24&255,y[1]>>16&255,y[1]>>8&255,255&y[1],y[2]>>24&255,y[2]>>16&255,y[2]>>8&255,255&y[2],y[3]>>24&255,y[3]>>16&255,y[3]>>8&255,255&y[3],y[4]>>24&255,y[4]>>16&255,y[4]>>8&255,255&y[4]]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f=c;e.default=f},{}],533:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(t("./validate.js"));function i(y){return y&&y.__esModule?y:{default:y}}for(var c=[],f=0;f<256;++f)c.push((f+256).toString(16).substr(1));function l(y){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=(c[y[p+0]]+c[y[p+1]]+c[y[p+2]]+c[y[p+3]]+"-"+c[y[p+4]]+c[y[p+5]]+"-"+c[y[p+6]]+c[y[p+7]]+"-"+c[y[p+8]]+c[y[p+9]]+"-"+c[y[p+10]]+c[y[p+11]]+c[y[p+12]]+c[y[p+13]]+c[y[p+14]]+c[y[p+15]]).toLowerCase();if(!(0,n.default)(m))throw TypeError("Stringified UUID is invalid");return m}var u=l;e.default=u},{"./validate.js":539}],534:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i,c=l(t("./rng.js")),f=l(t("./stringify.js"));function l(b){return b&&b.__esModule?b:{default:b}}var u=0,y=0;function p(b,v,_){var s=v&&_||0,o=v||new Array(16),h=(b=b||{}).node||n,a=b.clockseq!==void 0?b.clockseq:i;if(h==null||a==null){var d=b.random||(b.rng||c.default)();h==null&&(h=n=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),a==null&&(a=i=16383&(d[6]<<8|d[7]))}var g=b.msecs!==void 0?b.msecs:Date.now(),w=b.nsecs!==void 0?b.nsecs:y+1,k=g-u+(w-y)/1e4;if(k<0&&b.clockseq===void 0&&(a=a+1&16383),(k<0||g>u)&&b.nsecs===void 0&&(w=0),w>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=g,y=w,i=a;var S=(1e4*(268435455&(g+=122192928e5))+w)%4294967296;o[s++]=S>>>24&255,o[s++]=S>>>16&255,o[s++]=S>>>8&255,o[s++]=255&S;var A=g/4294967296*1e4&268435455;o[s++]=A>>>8&255,o[s++]=255&A,o[s++]=A>>>24&15|16,o[s++]=A>>>16&255,o[s++]=a>>>8|128,o[s++]=255&a;for(var j=0;j<6;++j)o[s+j]=h[j];return v||(0,f.default)(o)}var m=p;e.default=m},{"./rng.js":531,"./stringify.js":533}],535:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=c(t("./v35.js")),i=c(t("./md5.js"));function c(l){return l&&l.__esModule?l:{default:l}}var f=(0,n.default)("v3",48,i.default);e.default=f},{"./md5.js":527,"./v35.js":536}],536:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=y,e.URL=e.DNS=void 0;var n=c(t("./stringify.js")),i=c(t("./parse.js"));function c(p){return p&&p.__esModule?p:{default:p}}function f(p){p=unescape(encodeURIComponent(p));for(var m=[],b=0;b<p.length;++b)m.push(p.charCodeAt(b));return m}var l="6ba7b810-9dad-11d1-80b4-00c04fd430c8";e.DNS=l;var u="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function y(p,m,b){function v(_,s,o,h){if(typeof _=="string"&&(_=f(_)),typeof s=="string"&&(s=(0,i.default)(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+_.length);if(a.set(s),a.set(_,s.length),(a=b(a))[6]=15&a[6]|m,a[8]=63&a[8]|128,o){h=h||0;for(var d=0;d<16;++d)o[h+d]=a[d];return o}return(0,n.default)(a)}try{v.name=p}catch(_){}return v.DNS=l,v.URL=u,v}e.URL=u},{"./parse.js":529,"./stringify.js":533}],537:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=c(t("./rng.js")),i=c(t("./stringify.js"));function c(u){return u&&u.__esModule?u:{default:u}}function f(u,y,p){var m=(u=u||{}).random||(u.rng||n.default)();if(m[6]=15&m[6]|64,m[8]=63&m[8]|128,y){p=p||0;for(var b=0;b<16;++b)y[p+b]=m[b];return y}return(0,i.default)(m)}var l=f;e.default=l},{"./rng.js":531,"./stringify.js":533}],538:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=c(t("./v35.js")),i=c(t("./sha1.js"));function c(l){return l&&l.__esModule?l:{default:l}}var f=(0,n.default)("v5",80,i.default);e.default=f},{"./sha1.js":532,"./v35.js":536}],539:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(t("./regex.js"));function i(l){return l&&l.__esModule?l:{default:l}}function c(l){return typeof l=="string"&&n.default.test(l)}var f=c;e.default=f},{"./regex.js":530}],540:[function(t,r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(t("./validate.js"));function i(l){return l&&l.__esModule?l:{default:l}}function c(l){if(!(0,n.default)(l))throw TypeError("Invalid UUID");return parseInt(l.substr(14,1),16)}var f=c;e.default=f},{"./validate.js":539}],541:[function(t,r,e){/**
|
||
* Character classes and associated utilities for the 5th edition of XML 1.0.
|
||
*
|
||
* @author Louis-Dominique Dubeau
|
||
* @license MIT
|
||
* @copyright Louis-Dominique Dubeau
|
||
*/Object.defineProperty(e,"__esModule",{value:!0}),e.CHAR=`
|
||
\r --<2D>𐀀-`,e.S=` \r
|
||
`,e.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",e.NAME_CHAR="-"+e.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",e.CHAR_RE=new RegExp("^["+e.CHAR+"]$","u"),e.S_RE=new RegExp("^["+e.S+"]+$","u"),e.NAME_START_CHAR_RE=new RegExp("^["+e.NAME_START_CHAR+"]$","u"),e.NAME_CHAR_RE=new RegExp("^["+e.NAME_CHAR+"]$","u"),e.NAME_RE=new RegExp("^["+e.NAME_START_CHAR+"]["+e.NAME_CHAR+"]*$","u"),e.NMTOKEN_RE=new RegExp("^["+e.NAME_CHAR+"]+$","u");var n=9,i=10,c=13,f=32;function l(m){return m>=f&&m<=55295||m===i||m===c||m===n||m>=57344&&m<=65533||m>=65536&&m<=1114111}function u(m){return m===f||m===i||m===c||m===n}function y(m){return m>=65&&m<=90||m>=97&&m<=122||m===58||m===95||m===8204||m===8205||m>=192&&m<=214||m>=216&&m<=246||m>=248&&m<=767||m>=880&&m<=893||m>=895&&m<=8191||m>=8304&&m<=8591||m>=11264&&m<=12271||m>=12289&&m<=55295||m>=63744&&m<=64975||m>=65008&&m<=65533||m>=65536&&m<=983039}function p(m){return y(m)||m>=48&&m<=57||m===45||m===46||m===183||m>=768&&m<=879||m>=8255&&m<=8256}e.S_LIST=[f,i,c,n],e.isChar=l,e.isS=u,e.isNameStartChar=y,e.isNameChar=p},{}],542:[function(t,r,e){/**
|
||
* Character classes and associated utilities for the 2nd edition of XML 1.1.
|
||
*
|
||
* @author Louis-Dominique Dubeau
|
||
* @license MIT
|
||
* @copyright Louis-Dominique Dubeau
|
||
*/Object.defineProperty(e,"__esModule",{value:!0}),e.CHAR="--<2D>𐀀-",e.RESTRICTED_CHAR="-\b\v\f---",e.S=` \r
|
||
`,e.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",e.NAME_CHAR="-"+e.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",e.CHAR_RE=new RegExp("^["+e.CHAR+"]$","u"),e.RESTRICTED_CHAR_RE=new RegExp("^["+e.RESTRICTED_CHAR+"]$","u"),e.S_RE=new RegExp("^["+e.S+"]+$","u"),e.NAME_START_CHAR_RE=new RegExp("^["+e.NAME_START_CHAR+"]$","u"),e.NAME_CHAR_RE=new RegExp("^["+e.NAME_CHAR+"]$","u"),e.NAME_RE=new RegExp("^["+e.NAME_START_CHAR+"]["+e.NAME_CHAR+"]*$","u"),e.NMTOKEN_RE=new RegExp("^["+e.NAME_CHAR+"]+$","u");var n=9,i=10,c=13,f=32;function l(v){return v>=1&&v<=55295||v>=57344&&v<=65533||v>=65536&&v<=1114111}function u(v){return v>=1&&v<=8||v===11||v===12||v>=14&&v<=31||v>=127&&v<=132||v>=134&&v<=159}function y(v){return v===9||v===10||v===13||v>31&&v<127||v===133||v>159&&v<=55295||v>=57344&&v<=65533||v>=65536&&v<=1114111}function p(v){return v===f||v===i||v===c||v===n}function m(v){return v>=65&&v<=90||v>=97&&v<=122||v===58||v===95||v===8204||v===8205||v>=192&&v<=214||v>=216&&v<=246||v>=248&&v<=767||v>=880&&v<=893||v>=895&&v<=8191||v>=8304&&v<=8591||v>=11264&&v<=12271||v>=12289&&v<=55295||v>=63744&&v<=64975||v>=65008&&v<=65533||v>=65536&&v<=983039}function b(v){return m(v)||v>=48&&v<=57||v===45||v===46||v===183||v>=768&&v<=879||v>=8255&&v<=8256}e.S_LIST=[f,i,c,n],e.isChar=l,e.isRestrictedChar=u,e.isCharAndNotRestricted=y,e.isS=p,e.isNameStartChar=m,e.isNameChar=b},{}],543:[function(t,r,e){function n(c){return c>=65&&c<=90||c===95||c>=97&&c<=122||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=767||c>=880&&c<=893||c>=895&&c<=8191||c>=8204&&c<=8205||c>=8304&&c<=8591||c>=11264&&c<=12271||c>=12289&&c<=55295||c>=63744&&c<=64975||c>=65008&&c<=65533||c>=65536&&c<=983039}function i(c){return n(c)||c===45||c===46||c>=48&&c<=57||c===183||c>=768&&c<=879||c>=8255&&c<=8256}/**
|
||
* Character class utilities for XML NS 1.0 edition 3.
|
||
*
|
||
* @author Louis-Dominique Dubeau
|
||
* @license MIT
|
||
* @copyright Louis-Dominique Dubeau
|
||
*/Object.defineProperty(e,"__esModule",{value:!0}),e.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",e.NC_NAME_CHAR="-"+e.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",e.NC_NAME_START_CHAR_RE=new RegExp("^["+e.NC_NAME_START_CHAR+"]$","u"),e.NC_NAME_CHAR_RE=new RegExp("^["+e.NC_NAME_CHAR+"]$","u"),e.NC_NAME_RE=new RegExp("^["+e.NC_NAME_START_CHAR+"]["+e.NC_NAME_CHAR+"]*$","u"),e.isNCNameStartChar=n,e.isNCNameChar=i},{}]},{},[15])(15);var G2=/^\s+/,Y2=/\s+$/;function ze(t,r){if(r=r||{},(t=t||"")instanceof ze)return t;if(!(this instanceof ze))return new ze(t,r);var e=function(n){var i={r:0,g:0,b:0},c=1,f=null,l=null,u=null,y=!1,p=!1;typeof n=="string"&&(n=function(_){_=_.replace(G2,"").replace(Y2,"").toLowerCase();var s,o=!1;if(fl[_])_=fl[_],o=!0;else if(_=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(s=no.rgb.exec(_))?{r:s[1],g:s[2],b:s[3]}:(s=no.rgba.exec(_))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=no.hsl.exec(_))?{h:s[1],s:s[2],l:s[3]}:(s=no.hsla.exec(_))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=no.hsv.exec(_))?{h:s[1],s:s[2],v:s[3]}:(s=no.hsva.exec(_))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=no.hex8.exec(_))?{r:Ei(s[1]),g:Ei(s[2]),b:Ei(s[3]),a:Fp(s[4]),format:o?"name":"hex8"}:(s=no.hex6.exec(_))?{r:Ei(s[1]),g:Ei(s[2]),b:Ei(s[3]),format:o?"name":"hex"}:(s=no.hex4.exec(_))?{r:Ei(s[1]+""+s[1]),g:Ei(s[2]+""+s[2]),b:Ei(s[3]+""+s[3]),a:Fp(s[4]+""+s[4]),format:o?"name":"hex8"}:(s=no.hex3.exec(_))?{r:Ei(s[1]+""+s[1]),g:Ei(s[2]+""+s[2]),b:Ei(s[3]+""+s[3]),format:o?"name":"hex"}:!1}(n)),ul(n)=="object"&&(No(n.r)&&No(n.g)&&No(n.b)?(m=n.r,b=n.g,v=n.b,i={r:255*Gr(m,255),g:255*Gr(b,255),b:255*Gr(v,255)},y=!0,p=String(n.r).substr(-1)==="%"?"prgb":"rgb"):No(n.h)&&No(n.s)&&No(n.v)?(f=tc(n.s),l=tc(n.v),i=function(_,s,o){_=6*Gr(_,360),s=Gr(s,100),o=Gr(o,100);var h=Math.floor(_),a=_-h,d=o*(1-s),g=o*(1-a*s),w=o*(1-(1-a)*s),k=h%6,S=[o,g,d,d,w,o][k],A=[w,o,o,g,d,d][k],j=[d,d,w,o,o,g][k];return{r:255*S,g:255*A,b:255*j}}(n.h,f,l),y=!0,p="hsv"):No(n.h)&&No(n.s)&&No(n.l)&&(f=tc(n.s),u=tc(n.l),i=function(_,s,o){var h,a,d;function g(S,A,j){return j<0&&(j+=1),j>1&&(j-=1),j<1/6?S+6*(A-S)*j:j<.5?A:j<2/3?S+(A-S)*(2/3-j)*6:S}if(_=Gr(_,360),s=Gr(s,100),o=Gr(o,100),s===0)h=a=d=o;else{var w=o<.5?o*(1+s):o+s-o*s,k=2*o-w;h=g(k,w,_+1/3),a=g(k,w,_),d=g(k,w,_-1/3)}return{r:255*h,g:255*a,b:255*d}}(n.h,f,u),y=!0,p="hsl"),n.hasOwnProperty("a")&&(c=n.a));var m,b,v;return c=Dp(c),{ok:y,format:n.format||p,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:c}}(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||e.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}function Ap(t,r,e){t=Gr(t,255),r=Gr(r,255),e=Gr(e,255);var n,i,c=Math.max(t,r,e),f=Math.min(t,r,e),l=(c+f)/2;if(c==f)n=i=0;else{var u=c-f;switch(i=l>.5?u/(2-c-f):u/(c+f),c){case t:n=(r-e)/u+(r<e?6:0);break;case r:n=(e-t)/u+2;break;case e:n=(t-r)/u+4}n/=6}return{h:n,s:i,l}}function Pp(t,r,e){t=Gr(t,255),r=Gr(r,255),e=Gr(e,255);var n,i,c=Math.max(t,r,e),f=Math.min(t,r,e),l=c,u=c-f;if(i=c===0?0:u/c,c==f)n=0;else{switch(c){case t:n=(r-e)/u+(r<e?6:0);break;case r:n=(e-t)/u+2;break;case e:n=(t-r)/u+4}n/=6}return{h:n,s:i,v:l}}function Mp(t,r,e,n){var i=[ro(Math.round(t).toString(16)),ro(Math.round(r).toString(16)),ro(Math.round(e).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function jp(t,r,e,n){return[ro(Np(n)),ro(Math.round(t).toString(16)),ro(Math.round(r).toString(16)),ro(Math.round(e).toString(16))].join("")}function K2(t,r){r=r===0?0:r||10;var e=ze(t).toHsl();return e.s-=r/100,e.s=hu(e.s),ze(e)}function X2(t,r){r=r===0?0:r||10;var e=ze(t).toHsl();return e.s+=r/100,e.s=hu(e.s),ze(e)}function Z2(t){return ze(t).desaturate(100)}function J2(t,r){r=r===0?0:r||10;var e=ze(t).toHsl();return e.l+=r/100,e.l=hu(e.l),ze(e)}function Q2(t,r){r=r===0?0:r||10;var e=ze(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(-r/100*255))),e.g=Math.max(0,Math.min(255,e.g-Math.round(-r/100*255))),e.b=Math.max(0,Math.min(255,e.b-Math.round(-r/100*255))),ze(e)}function tw(t,r){r=r===0?0:r||10;var e=ze(t).toHsl();return e.l-=r/100,e.l=hu(e.l),ze(e)}function ew(t,r){var e=ze(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,ze(e)}function rw(t){var r=ze(t).toHsl();return r.h=(r.h+180)%360,ze(r)}function Ip(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=ze(t).toHsl(),n=[ze(t)],i=360/r,c=1;c<r;c++)n.push(ze({h:(e.h+c*i)%360,s:e.s,l:e.l}));return n}function nw(t){var r=ze(t).toHsl(),e=r.h;return[ze(t),ze({h:(e+72)%360,s:r.s,l:r.l}),ze({h:(e+216)%360,s:r.s,l:r.l})]}function iw(t,r,e){r=r||6,e=e||30;var n=ze(t).toHsl(),i=360/e,c=[ze(t)];for(n.h=(n.h-(i*r>>1)+720)%360;--r;)n.h=(n.h+i)%360,c.push(ze(n));return c}function ow(t,r){r=r||6;for(var e=ze(t).toHsv(),n=e.h,i=e.s,c=e.v,f=[],l=1/r;r--;)f.push(ze({h:n,s:i,v:c})),c=(c+l)%1;return f}ze.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,r,e,n=this.toRgb();return t=n.r/255,r=n.g/255,e=n.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))},setAlpha:function(t){return this._a=Dp(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Pp(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Pp(this._r,this._g,this._b),r=Math.round(360*t.h),e=Math.round(100*t.s),n=Math.round(100*t.v);return this._a==1?"hsv("+r+", "+e+"%, "+n+"%)":"hsva("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=Ap(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Ap(this._r,this._g,this._b),r=Math.round(360*t.h),e=Math.round(100*t.s),n=Math.round(100*t.l);return this._a==1?"hsl("+r+", "+e+"%, "+n+"%)":"hsla("+r+", "+e+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return Mp(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(r,e,n,i,c){var f=[ro(Math.round(r).toString(16)),ro(Math.round(e).toString(16)),ro(Math.round(n).toString(16)),ro(Np(i))];return c&&f[0].charAt(0)==f[0].charAt(1)&&f[1].charAt(0)==f[1].charAt(1)&&f[2].charAt(0)==f[2].charAt(1)&&f[3].charAt(0)==f[3].charAt(1)?f[0].charAt(0)+f[1].charAt(0)+f[2].charAt(0)+f[3].charAt(0):f.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*Gr(this._r,255))+"%",g:Math.round(100*Gr(this._g,255))+"%",b:Math.round(100*Gr(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*Gr(this._r,255))+"%, "+Math.round(100*Gr(this._g,255))+"%, "+Math.round(100*Gr(this._b,255))+"%)":"rgba("+Math.round(100*Gr(this._r,255))+"%, "+Math.round(100*Gr(this._g,255))+"%, "+Math.round(100*Gr(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(aw[Mp(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var r="#"+jp(this._r,this._g,this._b,this._a),e=r,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=ze(t);e="#"+jp(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+e+")"},toString:function(t){var r=!!t;t=t||this._format;var e=!1,n=this._a<1&&this._a>=0;return r||!n||t!=="hex"&&t!=="hex6"&&t!=="hex3"&&t!=="hex4"&&t!=="hex8"&&t!=="name"?(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),t!=="hex"&&t!=="hex6"||(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString()):t==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return ze(this.toString())},_applyModification:function(t,r){var e=t.apply(null,[this].concat([].slice.call(r)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(J2,arguments)},brighten:function(){return this._applyModification(Q2,arguments)},darken:function(){return this._applyModification(tw,arguments)},desaturate:function(){return this._applyModification(K2,arguments)},saturate:function(){return this._applyModification(X2,arguments)},greyscale:function(){return this._applyModification(Z2,arguments)},spin:function(){return this._applyModification(ew,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(iw,arguments)},complement:function(){return this._applyCombination(rw,arguments)},monochromatic:function(){return this._applyCombination(ow,arguments)},splitcomplement:function(){return this._applyCombination(nw,arguments)},triad:function(){return this._applyCombination(Ip,[3])},tetrad:function(){return this._applyCombination(Ip,[4])}},ze.fromRatio=function(t,r){if(ul(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=n==="a"?t[n]:tc(t[n]));t=e}return ze(t,r)},ze.equals=function(t,r){return!(!t||!r)&&ze(t).toRgbString()==ze(r).toRgbString()},ze.random=function(){return ze.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},ze.mix=function(t,r,e){e=e===0?0:e||50;var n=ze(t).toRgb(),i=ze(r).toRgb(),c=e/100;return ze({r:(i.r-n.r)*c+n.r,g:(i.g-n.g)*c+n.g,b:(i.b-n.b)*c+n.b,a:(i.a-n.a)*c+n.a})},ze.readability=function(t,r){var e=ze(t),n=ze(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)},ze.isReadable=function(t,r,e){var n,i,c=ze.readability(t,r);switch(i=!1,(n=function(f){var l,u;return l=((f=f||{level:"AA",size:"small"}).level||"AA").toUpperCase(),u=(f.size||"small").toLowerCase(),l!=="AA"&&l!=="AAA"&&(l="AA"),u!=="small"&&u!=="large"&&(u="small"),{level:l,size:u}}(e)).level+n.size){case"AAsmall":case"AAAlarge":i=c>=4.5;break;case"AAlarge":i=c>=3;break;case"AAAsmall":i=c>=7}return i},ze.mostReadable=function(t,r,e){var n,i,c,f,l=null,u=0;i=(e=e||{}).includeFallbackColors,c=e.level,f=e.size;for(var y=0;y<r.length;y++)(n=ze.readability(t,r[y]))>u&&(u=n,l=ze(r[y]));return ze.isReadable(t,l,{level:c,size:f})||!i?l:(e.includeFallbackColors=!1,ze.mostReadable(t,["#fff","#000"],e))};var fl=ze.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},aw=ze.hexNames=function(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}(fl);function Dp(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Gr(t,r){(function(n){return typeof n=="string"&&n.indexOf(".")!=-1&&parseFloat(n)===1})(t)&&(t="100%");var e=function(n){return typeof n=="string"&&n.indexOf("%")!=-1}(t);return t=Math.min(r,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*r,10)/100),Math.abs(t-r)<1e-6?1:t%r/parseFloat(r)}function hu(t){return Math.min(1,Math.max(0,t))}function Ei(t){return parseInt(t,16)}function ro(t){return t.length==1?"0"+t:""+t}function tc(t){return t<=1&&(t=100*t+"%"),t}function Np(t){return Math.round(255*parseFloat(t)).toString(16)}function Fp(t){return Ei(t)/255}var oa,du,pu,no=(du="[\\s|\\(]+("+(oa="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+oa+")[,|\\s]+("+oa+")\\s*\\)?",pu="[\\s|\\(]+("+oa+")[,|\\s]+("+oa+")[,|\\s]+("+oa+")[,|\\s]+("+oa+")\\s*\\)?",{CSS_UNIT:new RegExp(oa),rgb:new RegExp("rgb"+du),rgba:new RegExp("rgba"+pu),hsl:new RegExp("hsl"+du),hsla:new RegExp("hsla"+pu),hsv:new RegExp("hsv"+du),hsva:new RegExp("hsva"+pu),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function No(t){return!!no.CSS_UNIT.exec(t)}var Pa={};function Lp(t){for(var r=(t=t.replace("#","")).match(/../g),e=0;e<3;e++)r[e]=parseInt(r[e],16);return r}function Bp(t,r,e){for(var n=[t.toString(16),r.toString(16),e.toString(16)],i=0;i<3;i++)n[i].length==1&&(n[i]="0"+n[i]);return"#"+n.join("")}(function(t,r){(function(){var e,n="Expected a function",i="__lodash_hash_undefined__",c="__lodash_placeholder__",f=16,l=32,u=64,y=128,p=256,m=1/0,b=9007199254740991,v=NaN,_=4294967295,s=[["ary",y],["bind",1],["bindKey",2],["curry",8],["curryRight",f],["flip",512],["partial",l],["partialRight",u],["rearg",p]],o="[object Arguments]",h="[object Array]",a="[object Boolean]",d="[object Date]",g="[object Error]",w="[object Function]",k="[object GeneratorFunction]",S="[object Map]",A="[object Number]",j="[object Object]",D="[object Promise]",N="[object RegExp]",F="[object Set]",T="[object String]",I="[object Symbol]",x="[object WeakMap]",O="[object ArrayBuffer]",R="[object DataView]",C="[object Float32Array]",P="[object Float64Array]",L="[object Int8Array]",H="[object Int16Array]",U="[object Int32Array]",B="[object Uint8Array]",W="[object Uint8ClampedArray]",X="[object Uint16Array]",et="[object Uint32Array]",ft=/\b__p \+= '';/g,gt=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,Q=/[&<>"']/g,K=RegExp(rt.source),nt=RegExp(Q.source),At=/<%-([\s\S]+?)%>/g,ot=/<%([\s\S]+?)%>/g,ut=/<%=([\s\S]+?)%>/g,Mt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bt=/^\w*$/,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,J=RegExp(Z.source),St=/^\s+/,It=/\s/,Ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Xt=/\{\n\/\* \[wrapped with (.+)\] \*/,me=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kt=/[()=,{}\[\]\/\s]/,ie=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,_t=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,Y=/^\[object .+?Constructor\]$/,ht=/^0o[0-7]+$/i,at=/^(?:0|[1-9]\d*)$/,it=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,q=/($^)/,wt=/['\n\r\u2028\u2029\\]/g,Pt="\\ud800-\\udfff",V="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Rt="\\u2700-\\u27bf",mt="a-z\\xdf-\\xf6\\xf8-\\xff",dt="A-Z\\xc0-\\xd6\\xd8-\\xde",Tt="\\ufe0e\\ufe0f",Ot="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qt="['’]",Lt="["+Pt+"]",Ht="["+Ot+"]",le="["+V+"]",Ce="\\d+",Zt="["+Rt+"]",ae="["+mt+"]",he="[^"+Pt+Ot+Ce+Rt+mt+dt+"]",Wt="\\ud83c[\\udffb-\\udfff]",pe="[^"+Pt+"]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",de="[\\ud800-\\udbff][\\udc00-\\udfff]",ge="["+dt+"]",Fe="\\u200d",re="(?:"+ae+"|"+he+")",Ae="(?:"+ge+"|"+he+")",De="(?:['’](?:d|ll|m|re|s|t|ve))?",Ue="(?:['’](?:D|LL|M|RE|S|T|VE))?",Sr="(?:"+le+"|"+Wt+")?",ir="["+Tt+"]?",$e=ir+Sr+("(?:"+Fe+"(?:"+[pe,Se,de].join("|")+")"+ir+Sr+")*"),ii="(?:"+[Zt,Se,de].join("|")+")"+$e,oi="(?:"+[pe+le+"?",le,Se,de,Lt].join("|")+")",Zr=RegExp(qt,"g"),Br=RegExp(le,"g"),On=RegExp(Wt+"(?="+Wt+")|"+oi+$e,"g"),Dn=RegExp([ge+"?"+ae+"+"+De+"(?="+[Ht,ge,"$"].join("|")+")",Ae+"+"+Ue+"(?="+[Ht,ge+re,"$"].join("|")+")",ge+"?"+re+"+"+De,ge+"+"+Ue,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ce,ii].join("|"),"g"),Xn=RegExp("["+Fe+Pt+V+Tt+"]"),ai=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Oe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kt=-1,Dt={};Dt[C]=Dt[P]=Dt[L]=Dt[H]=Dt[U]=Dt[B]=Dt[W]=Dt[X]=Dt[et]=!0,Dt[o]=Dt[h]=Dt[O]=Dt[a]=Dt[R]=Dt[d]=Dt[g]=Dt[w]=Dt[S]=Dt[A]=Dt[j]=Dt[N]=Dt[F]=Dt[T]=Dt[x]=!1;var Nt={};Nt[o]=Nt[h]=Nt[O]=Nt[R]=Nt[a]=Nt[d]=Nt[C]=Nt[P]=Nt[L]=Nt[H]=Nt[U]=Nt[S]=Nt[A]=Nt[j]=Nt[N]=Nt[F]=Nt[T]=Nt[I]=Nt[B]=Nt[W]=Nt[X]=Nt[et]=!0,Nt[g]=Nt[w]=Nt[x]=!1;var ye={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Le=parseFloat,gr=parseInt,Kr=typeof dr=="object"&&dr&&dr.Object===Object&&dr,sn=typeof self=="object"&&self&&self.Object===Object&&self,Ur=Kr||sn||Function("return this")(),Pi=r&&!r.nodeType&&r,wn=Pi&&t&&!t.nodeType&&t,$i=wn&&wn.exports===Pi,si=$i&&Kr.process,en=function(){try{var $t=wn&&wn.require&&wn.require("util").types;return $t||si&&si.binding&&si.binding("util")}catch(Qt){}}(),Oo=en&&en.isArrayBuffer,qi=en&&en.isDate,Gi=en&&en.isMap,Ro=en&&en.isRegExp,Ds=en&&en.isSet,Ka=en&&en.isTypedArray;function Nn($t,Qt,ee){switch(ee.length){case 0:return $t.call(Qt);case 1:return $t.call(Qt,ee[0]);case 2:return $t.call(Qt,ee[0],ee[1]);case 3:return $t.call(Qt,ee[0],ee[1],ee[2])}return $t.apply(Qt,ee)}function Dc($t,Qt,ee,Pe){for(var tr=-1,lt=$t==null?0:$t.length;++tr<lt;){var Ct=$t[tr];Qt(Pe,Ct,ee(Ct),$t)}return Pe}function Fn($t,Qt){for(var ee=-1,Pe=$t==null?0:$t.length;++ee<Pe&&Qt($t[ee],ee,$t)!==!1;);return $t}function va($t,Qt){for(var ee=$t==null?0:$t.length;ee--&&Qt($t[ee],ee,$t)!==!1;);return $t}function co($t,Qt){for(var ee=-1,Pe=$t==null?0:$t.length;++ee<Pe;)if(!Qt($t[ee],ee,$t))return!1;return!0}function Yi($t,Qt){for(var ee=-1,Pe=$t==null?0:$t.length,tr=0,lt=[];++ee<Pe;){var Ct=$t[ee];Qt(Ct,ee,$t)&&(lt[tr++]=Ct)}return lt}function ba($t,Qt){return!!($t!=null&&$t.length)&&Mi($t,Qt,0)>-1}function gi($t,Qt,ee){for(var Pe=-1,tr=$t==null?0:$t.length;++Pe<tr;)if(ee(Qt,$t[Pe]))return!0;return!1}function Dr($t,Qt){for(var ee=-1,Pe=$t==null?0:$t.length,tr=Array(Pe);++ee<Pe;)tr[ee]=Qt($t[ee],ee,$t);return tr}function Ki($t,Qt){for(var ee=-1,Pe=Qt.length,tr=$t.length;++ee<Pe;)$t[tr+ee]=Qt[ee];return $t}function Xa($t,Qt,ee,Pe){var tr=-1,lt=$t==null?0:$t.length;for(Pe&<&&(ee=$t[++tr]);++tr<lt;)ee=Qt(ee,$t[tr],tr,$t);return ee}function Nc($t,Qt,ee,Pe){var tr=$t==null?0:$t.length;for(Pe&&tr&&(ee=$t[--tr]);tr--;)ee=Qt(ee,$t[tr],tr,$t);return ee}function ga($t,Qt){for(var ee=-1,Pe=$t==null?0:$t.length;++ee<Pe;)if(Qt($t[ee],ee,$t))return!0;return!1}var uo=$o("length");function Za($t,Qt,ee){var Pe;return ee($t,function(tr,lt,Ct){if(Qt(tr,lt,Ct))return Pe=lt,!1}),Pe}function fo($t,Qt,ee,Pe){for(var tr=$t.length,lt=ee+(Pe?1:-1);Pe?lt--:++lt<tr;)if(Qt($t[lt],lt,$t))return lt;return-1}function Mi($t,Qt,ee){return Qt==Qt?function(Pe,tr,lt){for(var Ct=lt-1,Gt=Pe.length;++Ct<Gt;)if(Pe[Ct]===tr)return Ct;return-1}($t,Qt,ee):fo($t,ci,ee)}function Co($t,Qt,ee,Pe){for(var tr=ee-1,lt=$t.length;++tr<lt;)if(Pe($t[tr],Qt))return tr;return-1}function ci($t){return $t!=$t}function Ns($t,Qt){var ee=$t==null?0:$t.length;return ee?ho($t,Qt)/ee:v}function $o($t){return function(Qt){return Qt==null?e:Qt[$t]}}function lo($t){return function(Qt){return $t==null?e:$t[Qt]}}function Ja($t,Qt,ee,Pe,tr){return tr($t,function(lt,Ct,Gt){ee=Pe?(Pe=!1,lt):Qt(ee,lt,Ct,Gt)}),ee}function ho($t,Qt){for(var ee,Pe=-1,tr=$t.length;++Pe<tr;){var lt=Qt($t[Pe]);lt!==e&&(ee=ee===e?lt:ee+lt)}return ee}function wa($t,Qt){for(var ee=-1,Pe=Array($t);++ee<$t;)Pe[ee]=Qt(ee);return Pe}function Qa($t){return $t&&$t.slice(0,vn($t)+1).replace(St,"")}function Rn($t){return function(Qt){return $t(Qt)}}function ts($t,Qt){return Dr(Qt,function(ee){return $t[ee]})}function Et($t,Qt){return $t.has(Qt)}function Ut($t,Qt){for(var ee=-1,Pe=$t.length;++ee<Pe&&Mi(Qt,$t[ee],0)>-1;);return ee}function se($t,Qt){for(var ee=$t.length;ee--&&Mi(Qt,$t[ee],0)>-1;);return ee}var je=lo({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Ar=lo({"&":"&","<":"<",">":">",'"':""","'":"'"});function er($t){return"\\"+ye[$t]}function vr($t){return Xn.test($t)}function Hr($t){var Qt=-1,ee=Array($t.size);return $t.forEach(function(Pe,tr){ee[++Qt]=[tr,Pe]}),ee}function cn($t,Qt){return function(ee){return $t(Qt(ee))}}function wr($t,Qt){for(var ee=-1,Pe=$t.length,tr=0,lt=[];++ee<Pe;){var Ct=$t[ee];Ct!==Qt&&Ct!==c||($t[ee]=c,lt[tr++]=ee)}return lt}function Lr($t){var Qt=-1,ee=Array($t.size);return $t.forEach(function(Pe){ee[++Qt]=Pe}),ee}function un($t){return vr($t)?function(Qt){for(var ee=On.lastIndex=0;On.test(Qt);)++ee;return ee}($t):uo($t)}function Nr($t){return vr($t)?function(Qt){return Qt.match(On)||[]}($t):function(Qt){return Qt.split("")}($t)}function vn($t){for(var Qt=$t.length;Qt--&&It.test($t.charAt(Qt)););return Qt}var Zn=lo({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Cn=function $t(Qt){var ee,Pe=(Qt=Qt==null?Ur:Cn.defaults(Ur.Object(),Qt,Cn.pick(Ur,Oe))).Array,tr=Qt.Date,lt=Qt.Error,Ct=Qt.Function,Gt=Qt.Math,te=Qt.Object,He=Qt.RegExp,Ie=Qt.String,Ke=Qt.TypeError,Er=Pe.prototype,Xr=Ct.prototype,zr=te.prototype,Wr=Qt["__core-js_shared__"],Ln=Xr.toString,or=zr.hasOwnProperty,ui=0,fi=(ee=/[^.]+$/.exec(Wr&&Wr.keys&&Wr.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"",wi=zr.toString,qo=Ln.call(te),Go=Ur._,Fs=He("^"+Ln.call(or).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Yu=$i?Qt.Buffer:e,_a=Qt.Symbol,Ku=Qt.Uint8Array,ay=Yu?Yu.allocUnsafe:e,Xu=cn(te.getPrototypeOf,te),sy=te.create,cy=zr.propertyIsEnumerable,Zu=Er.splice,uy=_a?_a.isConcatSpreadable:e,Fc=_a?_a.iterator:e,es=_a?_a.toStringTag:e,Ju=function(){try{var E=as(te,"defineProperty");return E({},"",{}),E}catch(M){}}(),g5=Qt.clearTimeout!==Ur.clearTimeout&&Qt.clearTimeout,w5=tr&&tr.now!==Ur.Date.now&&tr.now,_5=Qt.setTimeout!==Ur.setTimeout&&Qt.setTimeout,Qu=Gt.ceil,tf=Gt.floor,Th=te.getOwnPropertySymbols,k5=Yu?Yu.isBuffer:e,fy=Qt.isFinite,x5=Er.join,S5=cn(te.keys,te),_n=Gt.max,Jn=Gt.min,E5=tr.now,T5=Qt.parseInt,ly=Gt.random,O5=Er.reverse,Oh=as(Qt,"DataView"),Lc=as(Qt,"Map"),Rh=as(Qt,"Promise"),Ls=as(Qt,"Set"),Bc=as(Qt,"WeakMap"),zc=as(te,"create"),ef=Bc&&new Bc,Bs={},R5=ss(Oh),C5=ss(Lc),A5=ss(Rh),P5=ss(Ls),M5=ss(Bc),rf=_a?_a.prototype:e,Uc=rf?rf.valueOf:e,hy=rf?rf.toString:e;function yt(E){if(rn(E)&&!ar(E)&&!(E instanceof xr)){if(E instanceof Xi)return E;if(or.call(E,"__wrapped__"))return pv(E)}return new Xi(E)}var zs=function(){function E(){}return function(M){if(!Jr(M))return{};if(sy)return sy(M);E.prototype=M;var z=new E;return E.prototype=e,z}}();function nf(){}function Xi(E,M){this.__wrapped__=E,this.__actions__=[],this.__chain__=!!M,this.__index__=0,this.__values__=e}function xr(E){this.__wrapped__=E,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=_,this.__views__=[]}function rs(E){var M=-1,z=E==null?0:E.length;for(this.clear();++M<z;){var tt=E[M];this.set(tt[0],tt[1])}}function Yo(E){var M=-1,z=E==null?0:E.length;for(this.clear();++M<z;){var tt=E[M];this.set(tt[0],tt[1])}}function Ko(E){var M=-1,z=E==null?0:E.length;for(this.clear();++M<z;){var tt=E[M];this.set(tt[0],tt[1])}}function ns(E){var M=-1,z=E==null?0:E.length;for(this.__data__=new Ko;++M<z;)this.add(E[M])}function po(E){var M=this.__data__=new Yo(E);this.size=M.size}function dy(E,M){var z=ar(E),tt=!z&&cs(E),st=!z&&!tt&&Ta(E),xt=!z&&!tt&&!st&&Vs(E),jt=z||tt||st||xt,zt=jt?wa(E.length,Ie):[],Vt=zt.length;for(var ne in E)!M&&!or.call(E,ne)||jt&&(ne=="length"||st&&(ne=="offset"||ne=="parent")||xt&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||Qo(ne,Vt))||zt.push(ne);return zt}function py(E){var M=E.length;return M?E[Bh(0,M-1)]:e}function j5(E,M){return bf(_i(E),is(M,0,E.length))}function I5(E){return bf(_i(E))}function Ch(E,M,z){(z!==e&&!mo(E[M],z)||z===e&&!(M in E))&&Xo(E,M,z)}function Hc(E,M,z){var tt=E[M];or.call(E,M)&&mo(tt,z)&&(z!==e||M in E)||Xo(E,M,z)}function of(E,M){for(var z=E.length;z--;)if(mo(E[z][0],M))return z;return-1}function D5(E,M,z,tt){return ka(E,function(st,xt,jt){M(tt,st,z(st),jt)}),tt}function my(E,M){return E&&Po(M,An(M),E)}function Xo(E,M,z){M=="__proto__"&&Ju?Ju(E,M,{configurable:!0,enumerable:!0,value:z,writable:!0}):E[M]=z}function Ah(E,M){for(var z=-1,tt=M.length,st=Pe(tt),xt=E==null;++z<tt;)st[z]=xt?e:hd(E,M[z]);return st}function is(E,M,z){return E==E&&(z!==e&&(E=E<=z?E:z),M!==e&&(E=E>=M?E:M)),E}function Zi(E,M,z,tt,st,xt){var jt,zt=1&M,Vt=2&M,ne=4&M;if(z&&(jt=st?z(E,tt,st,xt):z(E)),jt!==e)return jt;if(!Jr(E))return E;var oe=ar(E);if(oe){if(jt=function(ce){var _e=ce.length,Xe=new ce.constructor(_e);return _e&&typeof ce[0]=="string"&&or.call(ce,"index")&&(Xe.index=ce.index,Xe.input=ce.input),Xe}(E),!zt)return _i(E,jt)}else{var be=Qn(E),Ne=be==w||be==k;if(Ta(E))return By(E,zt);if(be==j||be==o||Ne&&!st){if(jt=Vt||Ne?{}:iv(E),!zt)return Vt?function(ce,_e){return Po(ce,rv(ce),_e)}(E,function(ce,_e){return ce&&Po(_e,xi(_e),ce)}(jt,E)):function(ce,_e){return Po(ce,Qh(ce),_e)}(E,my(jt,E))}else{if(!Nt[be])return st?E:{};jt=function(ce,_e,Xe){var Re=ce.constructor;switch(_e){case O:return qh(ce);case a:case d:return new Re(+ce);case R:return function(rr,Rr){var We=Rr?qh(rr.buffer):rr.buffer;return new rr.constructor(We,rr.byteOffset,rr.byteLength)}(ce,Xe);case C:case P:case L:case H:case U:case B:case W:case X:case et:return zy(ce,Xe);case S:return new Re;case A:case T:return new Re(ce);case N:return function(rr){var Rr=new rr.constructor(rr.source,pt.exec(rr));return Rr.lastIndex=rr.lastIndex,Rr}(ce);case F:return new Re;case I:return cr=ce,Uc?te(Uc.call(cr)):{}}var cr}(E,be,zt)}}xt||(xt=new po);var Be=xt.get(E);if(Be)return Be;xt.set(E,jt),Mv(E)?E.forEach(function(ce){jt.add(Zi(ce,M,z,ce,E,xt))}):Av(E)&&E.forEach(function(ce,_e){jt.set(_e,Zi(ce,M,z,_e,E,xt))});var qe=oe?e:(ne?Vt?Xh:Kh:Vt?xi:An)(E);return Fn(qe||E,function(ce,_e){qe&&(ce=E[_e=ce]),Hc(jt,_e,Zi(ce,M,z,_e,E,xt))}),jt}function yy(E,M,z){var tt=z.length;if(E==null)return!tt;for(E=te(E);tt--;){var st=z[tt],xt=M[st],jt=E[st];if(jt===e&&!(st in E)||!xt(jt))return!1}return!0}function vy(E,M,z){if(typeof E!="function")throw new Ke(n);return Kc(function(){E.apply(e,z)},M)}function Wc(E,M,z,tt){var st=-1,xt=ba,jt=!0,zt=E.length,Vt=[],ne=M.length;if(!zt)return Vt;z&&(M=Dr(M,Rn(z))),tt?(xt=gi,jt=!1):M.length>=200&&(xt=Et,jt=!1,M=new ns(M));t:for(;++st<zt;){var oe=E[st],be=z==null?oe:z(oe);if(oe=tt||oe!==0?oe:0,jt&&be==be){for(var Ne=ne;Ne--;)if(M[Ne]===be)continue t;Vt.push(oe)}else xt(M,be,tt)||Vt.push(oe)}return Vt}yt.templateSettings={escape:At,evaluate:ot,interpolate:ut,variable:"",imports:{_:yt}},yt.prototype=nf.prototype,yt.prototype.constructor=yt,Xi.prototype=zs(nf.prototype),Xi.prototype.constructor=Xi,xr.prototype=zs(nf.prototype),xr.prototype.constructor=xr,rs.prototype.clear=function(){this.__data__=zc?zc(null):{},this.size=0},rs.prototype.delete=function(E){var M=this.has(E)&&delete this.__data__[E];return this.size-=M?1:0,M},rs.prototype.get=function(E){var M=this.__data__;if(zc){var z=M[E];return z===i?e:z}return or.call(M,E)?M[E]:e},rs.prototype.has=function(E){var M=this.__data__;return zc?M[E]!==e:or.call(M,E)},rs.prototype.set=function(E,M){var z=this.__data__;return this.size+=this.has(E)?0:1,z[E]=zc&&M===e?i:M,this},Yo.prototype.clear=function(){this.__data__=[],this.size=0},Yo.prototype.delete=function(E){var M=this.__data__,z=of(M,E);return!(z<0)&&(z==M.length-1?M.pop():Zu.call(M,z,1),--this.size,!0)},Yo.prototype.get=function(E){var M=this.__data__,z=of(M,E);return z<0?e:M[z][1]},Yo.prototype.has=function(E){return of(this.__data__,E)>-1},Yo.prototype.set=function(E,M){var z=this.__data__,tt=of(z,E);return tt<0?(++this.size,z.push([E,M])):z[tt][1]=M,this},Ko.prototype.clear=function(){this.size=0,this.__data__={hash:new rs,map:new(Lc||Yo),string:new rs}},Ko.prototype.delete=function(E){var M=vf(this,E).delete(E);return this.size-=M?1:0,M},Ko.prototype.get=function(E){return vf(this,E).get(E)},Ko.prototype.has=function(E){return vf(this,E).has(E)},Ko.prototype.set=function(E,M){var z=vf(this,E),tt=z.size;return z.set(E,M),this.size+=z.size==tt?0:1,this},ns.prototype.add=ns.prototype.push=function(E){return this.__data__.set(E,i),this},ns.prototype.has=function(E){return this.__data__.has(E)},po.prototype.clear=function(){this.__data__=new Yo,this.size=0},po.prototype.delete=function(E){var M=this.__data__,z=M.delete(E);return this.size=M.size,z},po.prototype.get=function(E){return this.__data__.get(E)},po.prototype.has=function(E){return this.__data__.has(E)},po.prototype.set=function(E,M){var z=this.__data__;if(z instanceof Yo){var tt=z.__data__;if(!Lc||tt.length<199)return tt.push([E,M]),this.size=++z.size,this;z=this.__data__=new Ko(tt)}return z.set(E,M),this.size=z.size,this};var ka=Vy(Ao),by=Vy(Mh,!0);function N5(E,M){var z=!0;return ka(E,function(tt,st,xt){return z=!!M(tt,st,xt)}),z}function af(E,M,z){for(var tt=-1,st=E.length;++tt<st;){var xt=E[tt],jt=M(xt);if(jt!=null&&(zt===e?jt==jt&&!Ii(jt):z(jt,zt)))var zt=jt,Vt=xt}return Vt}function gy(E,M){var z=[];return ka(E,function(tt,st,xt){M(tt,st,xt)&&z.push(tt)}),z}function Bn(E,M,z,tt,st){var xt=-1,jt=E.length;for(z||(z=Y5),st||(st=[]);++xt<jt;){var zt=E[xt];M>0&&z(zt)?M>1?Bn(zt,M-1,z,tt,st):Ki(st,zt):tt||(st[st.length]=zt)}return st}var Ph=$y(),wy=$y(!0);function Ao(E,M){return E&&Ph(E,M,An)}function Mh(E,M){return E&&wy(E,M,An)}function sf(E,M){return Yi(M,function(z){return ta(E[z])})}function os(E,M){for(var z=0,tt=(M=Sa(M,E)).length;E!=null&&z<tt;)E=E[Mo(M[z++])];return z&&z==tt?E:e}function _y(E,M,z){var tt=M(E);return ar(E)?tt:Ki(tt,z(E))}function li(E){return E==null?E===e?"[object Undefined]":"[object Null]":es&&es in te(E)?function(M){var z=or.call(M,es),tt=M[es];try{M[es]=e;var st=!0}catch(jt){}var xt=wi.call(M);return st&&(z?M[es]=tt:delete M[es]),xt}(E):function(M){return wi.call(M)}(E)}function jh(E,M){return E>M}function F5(E,M){return E!=null&&or.call(E,M)}function L5(E,M){return E!=null&&M in te(E)}function Ih(E,M,z){for(var tt=z?gi:ba,st=E[0].length,xt=E.length,jt=xt,zt=Pe(xt),Vt=1/0,ne=[];jt--;){var oe=E[jt];jt&&M&&(oe=Dr(oe,Rn(M))),Vt=Jn(oe.length,Vt),zt[jt]=!z&&(M||st>=120&&oe.length>=120)?new ns(jt&&oe):e}oe=E[0];var be=-1,Ne=zt[0];t:for(;++be<st&&ne.length<Vt;){var Be=oe[be],qe=M?M(Be):Be;if(Be=z||Be!==0?Be:0,!(Ne?Et(Ne,qe):tt(ne,qe,z))){for(jt=xt;--jt;){var ce=zt[jt];if(!(ce?Et(ce,qe):tt(E[jt],qe,z)))continue t}Ne&&Ne.push(qe),ne.push(Be)}}return ne}function Vc(E,M,z){var tt=(E=cv(E,M=Sa(M,E)))==null?E:E[Mo(Qi(M))];return tt==null?e:Nn(tt,E,z)}function ky(E){return rn(E)&&li(E)==o}function $c(E,M,z,tt,st){return E===M||(E==null||M==null||!rn(E)&&!rn(M)?E!=E&&M!=M:function(xt,jt,zt,Vt,ne,oe){var be=ar(xt),Ne=ar(jt),Be=be?h:Qn(xt),qe=Ne?h:Qn(jt),ce=(Be=Be==o?j:Be)==j,_e=(qe=qe==o?j:qe)==j,Xe=Be==qe;if(Xe&&Ta(xt)){if(!Ta(jt))return!1;be=!0,ce=!1}if(Xe&&!ce)return oe||(oe=new po),be||Vs(xt)?ev(xt,jt,zt,Vt,ne,oe):function(We,Ze,kn,ln,di,qr,ti){switch(kn){case R:if(We.byteLength!=Ze.byteLength||We.byteOffset!=Ze.byteOffset)return!1;We=We.buffer,Ze=Ze.buffer;case O:return!(We.byteLength!=Ze.byteLength||!qr(new Ku(We),new Ku(Ze)));case a:case d:case A:return mo(+We,+Ze);case g:return We.name==Ze.name&&We.message==Ze.message;case N:case T:return We==Ze+"";case S:var jo=Hr;case F:var Oa=1&ln;if(jo||(jo=Lr),We.size!=Ze.size&&!Oa)return!1;var Of=ti.get(We);if(Of)return Of==Ze;ln|=2,ti.set(We,Ze);var kd=ev(jo(We),jo(Ze),ln,di,qr,ti);return ti.delete(We),kd;case I:if(Uc)return Uc.call(We)==Uc.call(Ze)}return!1}(xt,jt,Be,zt,Vt,ne,oe);if(!(1&zt)){var Re=ce&&or.call(xt,"__wrapped__"),cr=_e&&or.call(jt,"__wrapped__");if(Re||cr){var rr=Re?xt.value():xt,Rr=cr?jt.value():jt;return oe||(oe=new po),ne(rr,Rr,zt,Vt,oe)}}return Xe?(oe||(oe=new po),function(We,Ze,kn,ln,di,qr){var ti=1&kn,jo=Kh(We),Oa=jo.length,Of=Kh(Ze),kd=Of.length;if(Oa!=kd&&!ti)return!1;for(var Rf=Oa;Rf--;){var us=jo[Rf];if(!(ti?us in Ze:or.call(Ze,us)))return!1}var qv=qr.get(We),Gv=qr.get(Ze);if(qv&&Gv)return qv==Ze&&Gv==We;var Cf=!0;qr.set(We,Ze),qr.set(Ze,We);for(var xd=ti;++Rf<Oa;){var Af=We[us=jo[Rf]],Pf=Ze[us];if(ln)var Yv=ti?ln(Pf,Af,us,Ze,We,qr):ln(Af,Pf,us,We,Ze,qr);if(!(Yv===e?Af===Pf||di(Af,Pf,kn,ln,qr):Yv)){Cf=!1;break}xd||(xd=us=="constructor")}if(Cf&&!xd){var Mf=We.constructor,jf=Ze.constructor;Mf==jf||!("constructor"in We)||!("constructor"in Ze)||typeof Mf=="function"&&Mf instanceof Mf&&typeof jf=="function"&&jf instanceof jf||(Cf=!1)}return qr.delete(We),qr.delete(Ze),Cf}(xt,jt,zt,Vt,ne,oe)):!1}(E,M,z,tt,$c,st))}function Dh(E,M,z,tt){var st=z.length,xt=st,jt=!tt;if(E==null)return!xt;for(E=te(E);st--;){var zt=z[st];if(jt&&zt[2]?zt[1]!==E[zt[0]]:!(zt[0]in E))return!1}for(;++st<xt;){var Vt=(zt=z[st])[0],ne=E[Vt],oe=zt[1];if(jt&&zt[2]){if(ne===e&&!(Vt in E))return!1}else{var be=new po;if(tt)var Ne=tt(ne,oe,Vt,E,M,be);if(!(Ne===e?$c(oe,ne,3,tt,be):Ne))return!1}}return!0}function xy(E){return!(!Jr(E)||(M=E,fi&&fi in M))&&(ta(E)?Fs:Y).test(ss(E));var M}function Sy(E){return typeof E=="function"?E:E==null?Si:typeof E=="object"?ar(E)?Oy(E[0],E[1]):Ty(E):$v(E)}function Nh(E){if(!Yc(E))return S5(E);var M=[];for(var z in te(E))or.call(E,z)&&z!="constructor"&&M.push(z);return M}function B5(E){if(!Jr(E))return function(st){var xt=[];if(st!=null)for(var jt in te(st))xt.push(jt);return xt}(E);var M=Yc(E),z=[];for(var tt in E)(tt!="constructor"||!M&&or.call(E,tt))&&z.push(tt);return z}function Fh(E,M){return E<M}function Ey(E,M){var z=-1,tt=ki(E)?Pe(E.length):[];return ka(E,function(st,xt,jt){tt[++z]=M(st,xt,jt)}),tt}function Ty(E){var M=Jh(E);return M.length==1&&M[0][2]?av(M[0][0],M[0][1]):function(z){return z===E||Dh(z,E,M)}}function Oy(E,M){return td(E)&&ov(M)?av(Mo(E),M):function(z){var tt=hd(z,E);return tt===e&&tt===M?dd(z,E):$c(M,tt,3)}}function cf(E,M,z,tt,st){E!==M&&Ph(M,function(xt,jt){if(st||(st=new po),Jr(xt))(function(Vt,ne,oe,be,Ne,Be,qe){var ce=rd(Vt,oe),_e=rd(ne,oe),Xe=qe.get(_e);if(Xe)return void Ch(Vt,oe,Xe);var Re=Be?Be(ce,_e,oe+"",Vt,ne,qe):e,cr=Re===e;if(cr){var rr=ar(_e),Rr=!rr&&Ta(_e),We=!rr&&!Rr&&Vs(_e);Re=_e,rr||Rr||We?ar(ce)?Re=ce:fn(ce)?Re=_i(ce):Rr?(cr=!1,Re=By(_e,!0)):We?(cr=!1,Re=zy(_e,!0)):Re=[]:Xc(_e)||cs(_e)?(Re=ce,cs(ce)?Re=Dv(ce):Jr(ce)&&!ta(ce)||(Re=iv(_e))):cr=!1}cr&&(qe.set(_e,Re),Ne(Re,_e,be,Be,qe),qe.delete(_e)),Ch(Vt,oe,Re)})(E,M,jt,z,cf,tt,st);else{var zt=tt?tt(rd(E,jt),xt,jt+"",E,M,st):e;zt===e&&(zt=xt),Ch(E,jt,zt)}},xi)}function Ry(E,M){var z=E.length;if(z)return Qo(M+=M<0?z:0,z)?E[M]:e}function Cy(E,M,z){M=M.length?Dr(M,function(st){return ar(st)?function(xt){return os(xt,st.length===1?st[0]:st)}:st}):[Si];var tt=-1;return M=Dr(M,Rn(Ge())),function(st,xt){var jt=st.length;for(st.sort(xt);jt--;)st[jt]=st[jt].value;return st}(Ey(E,function(st,xt,jt){return{criteria:Dr(M,function(zt){return zt(st)}),index:++tt,value:st}}),function(st,xt){return function(jt,zt,Vt){for(var ne=-1,oe=jt.criteria,be=zt.criteria,Ne=oe.length,Be=Vt.length;++ne<Ne;){var qe=Uy(oe[ne],be[ne]);if(qe)return ne>=Be?qe:qe*(Vt[ne]=="desc"?-1:1)}return jt.index-zt.index}(st,xt,z)})}function Ay(E,M,z){for(var tt=-1,st=M.length,xt={};++tt<st;){var jt=M[tt],zt=os(E,jt);z(zt,jt)&&qc(xt,Sa(jt,E),zt)}return xt}function Lh(E,M,z,tt){var st=tt?Co:Mi,xt=-1,jt=M.length,zt=E;for(E===M&&(M=_i(M)),z&&(zt=Dr(E,Rn(z)));++xt<jt;)for(var Vt=0,ne=M[xt],oe=z?z(ne):ne;(Vt=st(zt,oe,Vt,tt))>-1;)zt!==E&&Zu.call(zt,Vt,1),Zu.call(E,Vt,1);return E}function Py(E,M){for(var z=E?M.length:0,tt=z-1;z--;){var st=M[z];if(z==tt||st!==xt){var xt=st;Qo(st)?Zu.call(E,st,1):Hh(E,st)}}return E}function Bh(E,M){return E+tf(ly()*(M-E+1))}function zh(E,M){var z="";if(!E||M<1||M>b)return z;do M%2&&(z+=E),(M=tf(M/2))&&(E+=E);while(M);return z}function mr(E,M){return nd(sv(E,M,Si),E+"")}function z5(E){return py($s(E))}function U5(E,M){var z=$s(E);return bf(z,is(M,0,z.length))}function qc(E,M,z,tt){if(!Jr(E))return E;for(var st=-1,xt=(M=Sa(M,E)).length,jt=xt-1,zt=E;zt!=null&&++st<xt;){var Vt=Mo(M[st]),ne=z;if(Vt==="__proto__"||Vt==="constructor"||Vt==="prototype")return E;if(st!=jt){var oe=zt[Vt];(ne=tt?tt(oe,Vt,zt):e)===e&&(ne=Jr(oe)?oe:Qo(M[st+1])?[]:{})}Hc(zt,Vt,ne),zt=zt[Vt]}return E}var My=ef?function(E,M){return ef.set(E,M),E}:Si,H5=Ju?function(E,M){return Ju(E,"toString",{configurable:!0,enumerable:!1,value:md(M),writable:!0})}:Si;function W5(E){return bf($s(E))}function Ji(E,M,z){var tt=-1,st=E.length;M<0&&(M=-M>st?0:st+M),(z=z>st?st:z)<0&&(z+=st),st=M>z?0:z-M>>>0,M>>>=0;for(var xt=Pe(st);++tt<st;)xt[tt]=E[tt+M];return xt}function V5(E,M){var z;return ka(E,function(tt,st,xt){return!(z=M(tt,st,xt))}),!!z}function uf(E,M,z){var tt=0,st=E==null?tt:E.length;if(typeof M=="number"&&M==M&&st<=2147483647){for(;tt<st;){var xt=tt+st>>>1,jt=E[xt];jt!==null&&!Ii(jt)&&(z?jt<=M:jt<M)?tt=xt+1:st=xt}return st}return Uh(E,M,Si,z)}function Uh(E,M,z,tt){var st=0,xt=E==null?0:E.length;if(xt===0)return 0;for(var jt=(M=z(M))!=M,zt=M===null,Vt=Ii(M),ne=M===e;st<xt;){var oe=tf((st+xt)/2),be=z(E[oe]),Ne=be!==e,Be=be===null,qe=be==be,ce=Ii(be);if(jt)var _e=tt||qe;else _e=ne?qe&&(tt||Ne):zt?qe&&Ne&&(tt||!Be):Vt?qe&&Ne&&!Be&&(tt||!ce):!Be&&!ce&&(tt?be<=M:be<M);_e?st=oe+1:xt=oe}return Jn(xt,4294967294)}function jy(E,M){for(var z=-1,tt=E.length,st=0,xt=[];++z<tt;){var jt=E[z],zt=M?M(jt):jt;if(!z||!mo(zt,Vt)){var Vt=zt;xt[st++]=jt===0?0:jt}}return xt}function Iy(E){return typeof E=="number"?E:Ii(E)?v:+E}function ji(E){if(typeof E=="string")return E;if(ar(E))return Dr(E,ji)+"";if(Ii(E))return hy?hy.call(E):"";var M=E+"";return M=="0"&&1/E==-1/0?"-0":M}function xa(E,M,z){var tt=-1,st=ba,xt=E.length,jt=!0,zt=[],Vt=zt;if(z)jt=!1,st=gi;else if(xt>=200){var ne=M?null:q5(E);if(ne)return Lr(ne);jt=!1,st=Et,Vt=new ns}else Vt=M?[]:zt;t:for(;++tt<xt;){var oe=E[tt],be=M?M(oe):oe;if(oe=z||oe!==0?oe:0,jt&&be==be){for(var Ne=Vt.length;Ne--;)if(Vt[Ne]===be)continue t;M&&Vt.push(be),zt.push(oe)}else st(Vt,be,z)||(Vt!==zt&&Vt.push(be),zt.push(oe))}return zt}function Hh(E,M){return(E=cv(E,M=Sa(M,E)))==null||delete E[Mo(Qi(M))]}function Dy(E,M,z,tt){return qc(E,M,z(os(E,M)),tt)}function ff(E,M,z,tt){for(var st=E.length,xt=tt?st:-1;(tt?xt--:++xt<st)&&M(E[xt],xt,E););return z?Ji(E,tt?0:xt,tt?xt+1:st):Ji(E,tt?xt+1:0,tt?st:xt)}function Ny(E,M){var z=E;return z instanceof xr&&(z=z.value()),Xa(M,function(tt,st){return st.func.apply(st.thisArg,Ki([tt],st.args))},z)}function Wh(E,M,z){var tt=E.length;if(tt<2)return tt?xa(E[0]):[];for(var st=-1,xt=Pe(tt);++st<tt;)for(var jt=E[st],zt=-1;++zt<tt;)zt!=st&&(xt[st]=Wc(xt[st]||jt,E[zt],M,z));return xa(Bn(xt,1),M,z)}function Fy(E,M,z){for(var tt=-1,st=E.length,xt=M.length,jt={};++tt<st;){var zt=tt<xt?M[tt]:e;z(jt,E[tt],zt)}return jt}function Vh(E){return fn(E)?E:[]}function $h(E){return typeof E=="function"?E:Si}function Sa(E,M){return ar(E)?E:td(E,M)?[E]:dv(Pr(E))}var $5=mr;function Ea(E,M,z){var tt=E.length;return z=z===e?tt:z,!M&&z>=tt?E:Ji(E,M,z)}var Ly=g5||function(E){return Ur.clearTimeout(E)};function By(E,M){if(M)return E.slice();var z=E.length,tt=ay?ay(z):new E.constructor(z);return E.copy(tt),tt}function qh(E){var M=new E.constructor(E.byteLength);return new Ku(M).set(new Ku(E)),M}function zy(E,M){var z=M?qh(E.buffer):E.buffer;return new E.constructor(z,E.byteOffset,E.length)}function Uy(E,M){if(E!==M){var z=E!==e,tt=E===null,st=E==E,xt=Ii(E),jt=M!==e,zt=M===null,Vt=M==M,ne=Ii(M);if(!zt&&!ne&&!xt&&E>M||xt&&jt&&Vt&&!zt&&!ne||tt&&jt&&Vt||!z&&Vt||!st)return 1;if(!tt&&!xt&&!ne&&E<M||ne&&z&&st&&!tt&&!xt||zt&&z&&st||!jt&&st||!Vt)return-1}return 0}function Hy(E,M,z,tt){for(var st=-1,xt=E.length,jt=z.length,zt=-1,Vt=M.length,ne=_n(xt-jt,0),oe=Pe(Vt+ne),be=!tt;++zt<Vt;)oe[zt]=M[zt];for(;++st<jt;)(be||st<xt)&&(oe[z[st]]=E[st]);for(;ne--;)oe[zt++]=E[st++];return oe}function Wy(E,M,z,tt){for(var st=-1,xt=E.length,jt=-1,zt=z.length,Vt=-1,ne=M.length,oe=_n(xt-zt,0),be=Pe(oe+ne),Ne=!tt;++st<oe;)be[st]=E[st];for(var Be=st;++Vt<ne;)be[Be+Vt]=M[Vt];for(;++jt<zt;)(Ne||st<xt)&&(be[Be+z[jt]]=E[st++]);return be}function _i(E,M){var z=-1,tt=E.length;for(M||(M=Pe(tt));++z<tt;)M[z]=E[z];return M}function Po(E,M,z,tt){var st=!z;z||(z={});for(var xt=-1,jt=M.length;++xt<jt;){var zt=M[xt],Vt=tt?tt(z[zt],E[zt],zt,z,E):e;Vt===e&&(Vt=E[zt]),st?Xo(z,zt,Vt):Hc(z,zt,Vt)}return z}function lf(E,M){return function(z,tt){var st=ar(z)?Dc:D5,xt=M?M():{};return st(z,E,Ge(tt,2),xt)}}function Us(E){return mr(function(M,z){var tt=-1,st=z.length,xt=st>1?z[st-1]:e,jt=st>2?z[2]:e;for(xt=E.length>3&&typeof xt=="function"?(st--,xt):e,jt&&hi(z[0],z[1],jt)&&(xt=st<3?e:xt,st=1),M=te(M);++tt<st;){var zt=z[tt];zt&&E(M,zt,tt,xt)}return M})}function Vy(E,M){return function(z,tt){if(z==null)return z;if(!ki(z))return E(z,tt);for(var st=z.length,xt=M?st:-1,jt=te(z);(M?xt--:++xt<st)&&tt(jt[xt],xt,jt)!==!1;);return z}}function $y(E){return function(M,z,tt){for(var st=-1,xt=te(M),jt=tt(M),zt=jt.length;zt--;){var Vt=jt[E?zt:++st];if(z(xt[Vt],Vt,xt)===!1)break}return M}}function qy(E){return function(M){var z=vr(M=Pr(M))?Nr(M):e,tt=z?z[0]:M.charAt(0),st=z?Ea(z,1).join(""):M.slice(1);return tt[E]()+st}}function Hs(E){return function(M){return Xa(Wv(Hv(M).replace(Zr,"")),E,"")}}function Gc(E){return function(){var M=arguments;switch(M.length){case 0:return new E;case 1:return new E(M[0]);case 2:return new E(M[0],M[1]);case 3:return new E(M[0],M[1],M[2]);case 4:return new E(M[0],M[1],M[2],M[3]);case 5:return new E(M[0],M[1],M[2],M[3],M[4]);case 6:return new E(M[0],M[1],M[2],M[3],M[4],M[5]);case 7:return new E(M[0],M[1],M[2],M[3],M[4],M[5],M[6])}var z=zs(E.prototype),tt=E.apply(z,M);return Jr(tt)?tt:z}}function Gy(E){return function(M,z,tt){var st=te(M);if(!ki(M)){var xt=Ge(z,3);M=An(M),z=function(zt){return xt(st[zt],zt,st)}}var jt=E(M,z,tt);return jt>-1?st[xt?M[jt]:jt]:e}}function Yy(E){return Jo(function(M){var z=M.length,tt=z,st=Xi.prototype.thru;for(E&&M.reverse();tt--;){var xt=M[tt];if(typeof xt!="function")throw new Ke(n);if(st&&!jt&&yf(xt)=="wrapper")var jt=new Xi([],!0)}for(tt=jt?tt:z;++tt<z;){var zt=yf(xt=M[tt]),Vt=zt=="wrapper"?Zh(xt):e;jt=Vt&&ed(Vt[0])&&Vt[1]==424&&!Vt[4].length&&Vt[9]==1?jt[yf(Vt[0])].apply(jt,Vt[3]):xt.length==1&&ed(xt)?jt[zt]():jt.thru(xt)}return function(){var ne=arguments,oe=ne[0];if(jt&&ne.length==1&&ar(oe))return jt.plant(oe).value();for(var be=0,Ne=z?M[be].apply(this,ne):oe;++be<z;)Ne=M[be].call(this,Ne);return Ne}})}function hf(E,M,z,tt,st,xt,jt,zt,Vt,ne){var oe=M&y,be=1&M,Ne=2&M,Be=24&M,qe=512&M,ce=Ne?e:Gc(E);return function _e(){for(var Xe=arguments.length,Re=Pe(Xe),cr=Xe;cr--;)Re[cr]=arguments[cr];if(Be)var rr=Ws(_e),Rr=function(ln,di){for(var qr=ln.length,ti=0;qr--;)ln[qr]===di&&++ti;return ti}(Re,rr);if(tt&&(Re=Hy(Re,tt,st,Be)),xt&&(Re=Wy(Re,xt,jt,Be)),Xe-=Rr,Be&&Xe<ne){var We=wr(Re,rr);return Zy(E,M,hf,_e.placeholder,z,Re,We,zt,Vt,ne-Xe)}var Ze=be?z:this,kn=Ne?Ze[E]:E;return Xe=Re.length,zt?Re=function(ln,di){for(var qr=ln.length,ti=Jn(di.length,qr),jo=_i(ln);ti--;){var Oa=di[ti];ln[ti]=Qo(Oa,qr)?jo[Oa]:e}return ln}(Re,zt):qe&&Xe>1&&Re.reverse(),oe&&Vt<Xe&&(Re.length=Vt),this&&this!==Ur&&this instanceof _e&&(kn=ce||Gc(kn)),kn.apply(Ze,Re)}}function Ky(E,M){return function(z,tt){return function(st,xt,jt,zt){return Ao(st,function(Vt,ne,oe){xt(zt,jt(Vt),ne,oe)}),zt}(z,E,M(tt),{})}}function df(E,M){return function(z,tt){var st;if(z===e&&tt===e)return M;if(z!==e&&(st=z),tt!==e){if(st===e)return tt;typeof z=="string"||typeof tt=="string"?(z=ji(z),tt=ji(tt)):(z=Iy(z),tt=Iy(tt)),st=E(z,tt)}return st}}function Gh(E){return Jo(function(M){return M=Dr(M,Rn(Ge())),mr(function(z){var tt=this;return E(M,function(st){return Nn(st,tt,z)})})})}function pf(E,M){var z=(M=M===e?" ":ji(M)).length;if(z<2)return z?zh(M,E):M;var tt=zh(M,Qu(E/un(M)));return vr(M)?Ea(Nr(tt),0,E).join(""):tt.slice(0,E)}function Xy(E){return function(M,z,tt){return tt&&typeof tt!="number"&&hi(M,z,tt)&&(z=tt=e),M=ea(M),z===e?(z=M,M=0):z=ea(z),function(st,xt,jt,zt){for(var Vt=-1,ne=_n(Qu((xt-st)/(jt||1)),0),oe=Pe(ne);ne--;)oe[zt?ne:++Vt]=st,st+=jt;return oe}(M,z,tt=tt===e?M<z?1:-1:ea(tt),E)}}function mf(E){return function(M,z){return typeof M=="string"&&typeof z=="string"||(M=to(M),z=to(z)),E(M,z)}}function Zy(E,M,z,tt,st,xt,jt,zt,Vt,ne){var oe=8&M;M|=oe?l:u,4&(M&=~(oe?u:l))||(M&=-4);var be=[E,M,st,oe?xt:e,oe?jt:e,oe?e:xt,oe?e:jt,zt,Vt,ne],Ne=z.apply(e,be);return ed(E)&&uv(Ne,be),Ne.placeholder=tt,fv(Ne,E,M)}function Yh(E){var M=Gt[E];return function(z,tt){if(z=to(z),(tt=tt==null?0:Jn(fr(tt),292))&&fy(z)){var st=(Pr(z)+"e").split("e");return+((st=(Pr(M(st[0]+"e"+(+st[1]+tt)))+"e").split("e"))[0]+"e"+(+st[1]-tt))}return M(z)}}var q5=Ls&&1/Lr(new Ls([,-0]))[1]==m?function(E){return new Ls(E)}:bd;function Jy(E){return function(M){var z=Qn(M);return z==S?Hr(M):z==F?function(tt){var st=-1,xt=Array(tt.size);return tt.forEach(function(jt){xt[++st]=[jt,jt]}),xt}(M):function(tt,st){return Dr(st,function(xt){return[xt,tt[xt]]})}(M,E(M))}}function Zo(E,M,z,tt,st,xt,jt,zt){var Vt=2&M;if(!Vt&&typeof E!="function")throw new Ke(n);var ne=tt?tt.length:0;if(ne||(M&=-97,tt=st=e),jt=jt===e?jt:_n(fr(jt),0),zt=zt===e?zt:fr(zt),ne-=st?st.length:0,M&u){var oe=tt,be=st;tt=st=e}var Ne=Vt?e:Zh(E),Be=[E,M,z,tt,st,oe,be,xt,jt,zt];if(Ne&&function(ce,_e){var Xe=ce[1],Re=_e[1],cr=Xe|Re,rr=cr<131,Rr=Re==y&&Xe==8||Re==y&&Xe==p&&ce[7].length<=_e[8]||Re==384&&_e[7].length<=_e[8]&&Xe==8;if(!rr&&!Rr)return ce;1&Re&&(ce[2]=_e[2],cr|=1&Xe?0:4);var We=_e[3];if(We){var Ze=ce[3];ce[3]=Ze?Hy(Ze,We,_e[4]):We,ce[4]=Ze?wr(ce[3],c):_e[4]}(We=_e[5])&&(Ze=ce[5],ce[5]=Ze?Wy(Ze,We,_e[6]):We,ce[6]=Ze?wr(ce[5],c):_e[6]),(We=_e[7])&&(ce[7]=We),Re&y&&(ce[8]=ce[8]==null?_e[8]:Jn(ce[8],_e[8])),ce[9]==null&&(ce[9]=_e[9]),ce[0]=_e[0],ce[1]=cr}(Be,Ne),E=Be[0],M=Be[1],z=Be[2],tt=Be[3],st=Be[4],!(zt=Be[9]=Be[9]===e?Vt?0:E.length:_n(Be[9]-ne,0))&&24&M&&(M&=-25),M&&M!=1)qe=M==8||M==f?function(ce,_e,Xe){var Re=Gc(ce);return function cr(){for(var rr=arguments.length,Rr=Pe(rr),We=rr,Ze=Ws(cr);We--;)Rr[We]=arguments[We];var kn=rr<3&&Rr[0]!==Ze&&Rr[rr-1]!==Ze?[]:wr(Rr,Ze);return(rr-=kn.length)<Xe?Zy(ce,_e,hf,cr.placeholder,e,Rr,kn,e,e,Xe-rr):Nn(this&&this!==Ur&&this instanceof cr?Re:ce,this,Rr)}}(E,M,zt):M!=l&&M!=33||st.length?hf.apply(e,Be):function(ce,_e,Xe,Re){var cr=1&_e,rr=Gc(ce);return function Rr(){for(var We=-1,Ze=arguments.length,kn=-1,ln=Re.length,di=Pe(ln+Ze),qr=this&&this!==Ur&&this instanceof Rr?rr:ce;++kn<ln;)di[kn]=Re[kn];for(;Ze--;)di[kn++]=arguments[++We];return Nn(qr,cr?Xe:this,di)}}(E,M,z,tt);else var qe=function(ce,_e,Xe){var Re=1&_e,cr=Gc(ce);return function rr(){return(this&&this!==Ur&&this instanceof rr?cr:ce).apply(Re?Xe:this,arguments)}}(E,M,z);return fv((Ne?My:uv)(qe,Be),E,M)}function Qy(E,M,z,tt){return E===e||mo(E,zr[z])&&!or.call(tt,z)?M:E}function tv(E,M,z,tt,st,xt){return Jr(E)&&Jr(M)&&(xt.set(M,E),cf(E,M,e,tv,xt),xt.delete(M)),E}function G5(E){return Xc(E)?e:E}function ev(E,M,z,tt,st,xt){var jt=1&z,zt=E.length,Vt=M.length;if(zt!=Vt&&!(jt&&Vt>zt))return!1;var ne=xt.get(E),oe=xt.get(M);if(ne&&oe)return ne==M&&oe==E;var be=-1,Ne=!0,Be=2&z?new ns:e;for(xt.set(E,M),xt.set(M,E);++be<zt;){var qe=E[be],ce=M[be];if(tt)var _e=jt?tt(ce,qe,be,M,E,xt):tt(qe,ce,be,E,M,xt);if(_e!==e){if(_e)continue;Ne=!1;break}if(Be){if(!ga(M,function(Xe,Re){if(!Et(Be,Re)&&(qe===Xe||st(qe,Xe,z,tt,xt)))return Be.push(Re)})){Ne=!1;break}}else if(qe!==ce&&!st(qe,ce,z,tt,xt)){Ne=!1;break}}return xt.delete(E),xt.delete(M),Ne}function Jo(E){return nd(sv(E,e,vv),E+"")}function Kh(E){return _y(E,An,Qh)}function Xh(E){return _y(E,xi,rv)}var Zh=ef?function(E){return ef.get(E)}:bd;function yf(E){for(var M=E.name+"",z=Bs[M],tt=or.call(Bs,M)?z.length:0;tt--;){var st=z[tt],xt=st.func;if(xt==null||xt==E)return st.name}return M}function Ws(E){return(or.call(yt,"placeholder")?yt:E).placeholder}function Ge(){var E=yt.iteratee||yd;return E=E===yd?Sy:E,arguments.length?E(arguments[0],arguments[1]):E}function vf(E,M){var z,tt,st=E.__data__;return((tt=typeof(z=M))=="string"||tt=="number"||tt=="symbol"||tt=="boolean"?z!=="__proto__":z===null)?st[typeof M=="string"?"string":"hash"]:st.map}function Jh(E){for(var M=An(E),z=M.length;z--;){var tt=M[z],st=E[tt];M[z]=[tt,st,ov(st)]}return M}function as(E,M){var z=function(tt,st){return tt==null?e:tt[st]}(E,M);return xy(z)?z:e}var Qh=Th?function(E){return E==null?[]:(E=te(E),Yi(Th(E),function(M){return cy.call(E,M)}))}:gd,rv=Th?function(E){for(var M=[];E;)Ki(M,Qh(E)),E=Xu(E);return M}:gd,Qn=li;function nv(E,M,z){for(var tt=-1,st=(M=Sa(M,E)).length,xt=!1;++tt<st;){var jt=Mo(M[tt]);if(!(xt=E!=null&&z(E,jt)))break;E=E[jt]}return xt||++tt!=st?xt:!!(st=E==null?0:E.length)&&Sf(st)&&Qo(jt,st)&&(ar(E)||cs(E))}function iv(E){return typeof E.constructor!="function"||Yc(E)?{}:zs(Xu(E))}function Y5(E){return ar(E)||cs(E)||!!(uy&&E&&E[uy])}function Qo(E,M){var z=typeof E;return!!(M=M==null?b:M)&&(z=="number"||z!="symbol"&&at.test(E))&&E>-1&&E%1==0&&E<M}function hi(E,M,z){if(!Jr(z))return!1;var tt=typeof M;return!!(tt=="number"?ki(z)&&Qo(M,z.length):tt=="string"&&M in z)&&mo(z[M],E)}function td(E,M){if(ar(E))return!1;var z=typeof E;return!(z!="number"&&z!="symbol"&&z!="boolean"&&E!=null&&!Ii(E))||Bt.test(E)||!Mt.test(E)||M!=null&&E in te(M)}function ed(E){var M=yf(E),z=yt[M];if(typeof z!="function"||!(M in xr.prototype))return!1;if(E===z)return!0;var tt=Zh(z);return!!tt&&E===tt[0]}(Oh&&Qn(new Oh(new ArrayBuffer(1)))!=R||Lc&&Qn(new Lc)!=S||Rh&&Qn(Rh.resolve())!=D||Ls&&Qn(new Ls)!=F||Bc&&Qn(new Bc)!=x)&&(Qn=function(E){var M=li(E),z=M==j?E.constructor:e,tt=z?ss(z):"";if(tt)switch(tt){case R5:return R;case C5:return S;case A5:return D;case P5:return F;case M5:return x}return M});var K5=Wr?ta:wd;function Yc(E){var M=E&&E.constructor;return E===(typeof M=="function"&&M.prototype||zr)}function ov(E){return E==E&&!Jr(E)}function av(E,M){return function(z){return z!=null&&z[E]===M&&(M!==e||E in te(z))}}function sv(E,M,z){return M=_n(M===e?E.length-1:M,0),function(){for(var tt=arguments,st=-1,xt=_n(tt.length-M,0),jt=Pe(xt);++st<xt;)jt[st]=tt[M+st];st=-1;for(var zt=Pe(M+1);++st<M;)zt[st]=tt[st];return zt[M]=z(jt),Nn(E,this,zt)}}function cv(E,M){return M.length<2?E:os(E,Ji(M,0,-1))}function rd(E,M){if((M!=="constructor"||typeof E[M]!="function")&&M!="__proto__")return E[M]}var uv=lv(My),Kc=_5||function(E,M){return Ur.setTimeout(E,M)},nd=lv(H5);function fv(E,M,z){var tt=M+"";return nd(E,function(st,xt){var jt=xt.length;if(!jt)return st;var zt=jt-1;return xt[zt]=(jt>1?"& ":"")+xt[zt],xt=xt.join(jt>2?", ":" "),st.replace(Ft,`{
|
||
/* [wrapped with `+xt+`] */
|
||
`)}(tt,function(st,xt){return Fn(s,function(jt){var zt="_."+jt[0];xt&jt[1]&&!ba(st,zt)&&st.push(zt)}),st.sort()}(function(st){var xt=st.match(Xt);return xt?xt[1].split(me):[]}(tt),z)))}function lv(E){var M=0,z=0;return function(){var tt=E5(),st=16-(tt-z);if(z=tt,st>0){if(++M>=800)return arguments[0]}else M=0;return E.apply(e,arguments)}}function bf(E,M){var z=-1,tt=E.length,st=tt-1;for(M=M===e?tt:M;++z<M;){var xt=Bh(z,st),jt=E[xt];E[xt]=E[z],E[z]=jt}return E.length=M,E}var hv,id,od,dv=(hv=function(E){var M=[];return E.charCodeAt(0)===46&&M.push(""),E.replace(G,function(z,tt,st,xt){M.push(st?xt.replace(ie,"$1"):tt||z)}),M},id=kf(hv,function(E){return od.size===500&&od.clear(),E}),od=id.cache,id);function Mo(E){if(typeof E=="string"||Ii(E))return E;var M=E+"";return M=="0"&&1/E==-1/0?"-0":M}function ss(E){if(E!=null){try{return Ln.call(E)}catch(M){}try{return E+""}catch(M){}}return""}function pv(E){if(E instanceof xr)return E.clone();var M=new Xi(E.__wrapped__,E.__chain__);return M.__actions__=_i(E.__actions__),M.__index__=E.__index__,M.__values__=E.__values__,M}var X5=mr(function(E,M){return fn(E)?Wc(E,Bn(M,1,fn,!0)):[]}),Z5=mr(function(E,M){var z=Qi(M);return fn(z)&&(z=e),fn(E)?Wc(E,Bn(M,1,fn,!0),Ge(z,2)):[]}),J5=mr(function(E,M){var z=Qi(M);return fn(z)&&(z=e),fn(E)?Wc(E,Bn(M,1,fn,!0),e,z):[]});function mv(E,M,z){var tt=E==null?0:E.length;if(!tt)return-1;var st=z==null?0:fr(z);return st<0&&(st=_n(tt+st,0)),fo(E,Ge(M,3),st)}function yv(E,M,z){var tt=E==null?0:E.length;if(!tt)return-1;var st=tt-1;return z!==e&&(st=fr(z),st=z<0?_n(tt+st,0):Jn(st,tt-1)),fo(E,Ge(M,3),st,!0)}function vv(E){return E!=null&&E.length?Bn(E,1):[]}function bv(E){return E&&E.length?E[0]:e}var Q5=mr(function(E){var M=Dr(E,Vh);return M.length&&M[0]===E[0]?Ih(M):[]}),t_=mr(function(E){var M=Qi(E),z=Dr(E,Vh);return M===Qi(z)?M=e:z.pop(),z.length&&z[0]===E[0]?Ih(z,Ge(M,2)):[]}),e_=mr(function(E){var M=Qi(E),z=Dr(E,Vh);return(M=typeof M=="function"?M:e)&&z.pop(),z.length&&z[0]===E[0]?Ih(z,e,M):[]});function Qi(E){var M=E==null?0:E.length;return M?E[M-1]:e}var r_=mr(gv);function gv(E,M){return E&&E.length&&M&&M.length?Lh(E,M):E}var n_=Jo(function(E,M){var z=E==null?0:E.length,tt=Ah(E,M);return Py(E,Dr(M,function(st){return Qo(st,z)?+st:st}).sort(Uy)),tt});function ad(E){return E==null?E:O5.call(E)}var i_=mr(function(E){return xa(Bn(E,1,fn,!0))}),o_=mr(function(E){var M=Qi(E);return fn(M)&&(M=e),xa(Bn(E,1,fn,!0),Ge(M,2))}),a_=mr(function(E){var M=Qi(E);return M=typeof M=="function"?M:e,xa(Bn(E,1,fn,!0),e,M)});function sd(E){if(!E||!E.length)return[];var M=0;return E=Yi(E,function(z){if(fn(z))return M=_n(z.length,M),!0}),wa(M,function(z){return Dr(E,$o(z))})}function wv(E,M){if(!E||!E.length)return[];var z=sd(E);return M==null?z:Dr(z,function(tt){return Nn(M,e,tt)})}var s_=mr(function(E,M){return fn(E)?Wc(E,M):[]}),c_=mr(function(E){return Wh(Yi(E,fn))}),u_=mr(function(E){var M=Qi(E);return fn(M)&&(M=e),Wh(Yi(E,fn),Ge(M,2))}),f_=mr(function(E){var M=Qi(E);return M=typeof M=="function"?M:e,Wh(Yi(E,fn),e,M)}),l_=mr(sd),h_=mr(function(E){var M=E.length,z=M>1?E[M-1]:e;return z=typeof z=="function"?(E.pop(),z):e,wv(E,z)});function _v(E){var M=yt(E);return M.__chain__=!0,M}function gf(E,M){return M(E)}var d_=Jo(function(E){var M=E.length,z=M?E[0]:0,tt=this.__wrapped__,st=function(xt){return Ah(xt,E)};return!(M>1||this.__actions__.length)&&tt instanceof xr&&Qo(z)?((tt=tt.slice(z,+z+(M?1:0))).__actions__.push({func:gf,args:[st],thisArg:e}),new Xi(tt,this.__chain__).thru(function(xt){return M&&!xt.length&&xt.push(e),xt})):this.thru(st)}),p_=lf(function(E,M,z){or.call(E,z)?++E[z]:Xo(E,z,1)}),m_=Gy(mv),y_=Gy(yv);function kv(E,M){return(ar(E)?Fn:ka)(E,Ge(M,3))}function xv(E,M){return(ar(E)?va:by)(E,Ge(M,3))}var v_=lf(function(E,M,z){or.call(E,z)?E[z].push(M):Xo(E,z,[M])}),b_=mr(function(E,M,z){var tt=-1,st=typeof M=="function",xt=ki(E)?Pe(E.length):[];return ka(E,function(jt){xt[++tt]=st?Nn(M,jt,z):Vc(jt,M,z)}),xt}),g_=lf(function(E,M,z){Xo(E,z,M)});function wf(E,M){return(ar(E)?Dr:Ey)(E,Ge(M,3))}var w_=lf(function(E,M,z){E[z?0:1].push(M)},function(){return[[],[]]}),__=mr(function(E,M){if(E==null)return[];var z=M.length;return z>1&&hi(E,M[0],M[1])?M=[]:z>2&&hi(M[0],M[1],M[2])&&(M=[M[0]]),Cy(E,Bn(M,1),[])}),_f=w5||function(){return Ur.Date.now()};function Sv(E,M,z){return M=z?e:M,M=E&&M==null?E.length:M,Zo(E,y,e,e,e,e,M)}function Ev(E,M){var z;if(typeof M!="function")throw new Ke(n);return E=fr(E),function(){return--E>0&&(z=M.apply(this,arguments)),E<=1&&(M=e),z}}var cd=mr(function(E,M,z){var tt=1;if(z.length){var st=wr(z,Ws(cd));tt|=l}return Zo(E,tt,M,z,st)}),Tv=mr(function(E,M,z){var tt=3;if(z.length){var st=wr(z,Ws(Tv));tt|=l}return Zo(M,tt,E,z,st)});function Ov(E,M,z){var tt,st,xt,jt,zt,Vt,ne=0,oe=!1,be=!1,Ne=!0;if(typeof E!="function")throw new Ke(n);function Be(Re){var cr=tt,rr=st;return tt=st=e,ne=Re,jt=E.apply(rr,cr)}function qe(Re){var cr=Re-Vt;return Vt===e||cr>=M||cr<0||be&&Re-ne>=xt}function ce(){var Re=_f();if(qe(Re))return _e(Re);zt=Kc(ce,function(cr){var rr=M-(cr-Vt);return be?Jn(rr,xt-(cr-ne)):rr}(Re))}function _e(Re){return zt=e,Ne&&tt?Be(Re):(tt=st=e,jt)}function Xe(){var Re=_f(),cr=qe(Re);if(tt=arguments,st=this,Vt=Re,cr){if(zt===e)return function(rr){return ne=rr,zt=Kc(ce,M),oe?Be(rr):jt}(Vt);if(be)return Ly(zt),zt=Kc(ce,M),Be(Vt)}return zt===e&&(zt=Kc(ce,M)),jt}return M=to(M)||0,Jr(z)&&(oe=!!z.leading,xt=(be="maxWait"in z)?_n(to(z.maxWait)||0,M):xt,Ne="trailing"in z?!!z.trailing:Ne),Xe.cancel=function(){zt!==e&&Ly(zt),ne=0,tt=Vt=st=zt=e},Xe.flush=function(){return zt===e?jt:_e(_f())},Xe}var k_=mr(function(E,M){return vy(E,1,M)}),x_=mr(function(E,M,z){return vy(E,to(M)||0,z)});function kf(E,M){if(typeof E!="function"||M!=null&&typeof M!="function")throw new Ke(n);var z=function tt(){var st=arguments,xt=M?M.apply(this,st):st[0],jt=tt.cache;if(jt.has(xt))return jt.get(xt);var zt=E.apply(this,st);return tt.cache=jt.set(xt,zt)||jt,zt};return z.cache=new(kf.Cache||Ko),z}function xf(E){if(typeof E!="function")throw new Ke(n);return function(){var M=arguments;switch(M.length){case 0:return!E.call(this);case 1:return!E.call(this,M[0]);case 2:return!E.call(this,M[0],M[1]);case 3:return!E.call(this,M[0],M[1],M[2])}return!E.apply(this,M)}}kf.Cache=Ko;var S_=$5(function(E,M){var z=(M=M.length==1&&ar(M[0])?Dr(M[0],Rn(Ge())):Dr(Bn(M,1),Rn(Ge()))).length;return mr(function(tt){for(var st=-1,xt=Jn(tt.length,z);++st<xt;)tt[st]=M[st].call(this,tt[st]);return Nn(E,this,tt)})}),ud=mr(function(E,M){var z=wr(M,Ws(ud));return Zo(E,l,e,M,z)}),Rv=mr(function(E,M){var z=wr(M,Ws(Rv));return Zo(E,u,e,M,z)}),E_=Jo(function(E,M){return Zo(E,p,e,e,e,M)});function mo(E,M){return E===M||E!=E&&M!=M}var T_=mf(jh),O_=mf(function(E,M){return E>=M}),cs=ky(function(){return arguments}())?ky:function(E){return rn(E)&&or.call(E,"callee")&&!cy.call(E,"callee")},ar=Pe.isArray,R_=Oo?Rn(Oo):function(E){return rn(E)&&li(E)==O};function ki(E){return E!=null&&Sf(E.length)&&!ta(E)}function fn(E){return rn(E)&&ki(E)}var Ta=k5||wd,C_=qi?Rn(qi):function(E){return rn(E)&&li(E)==d};function fd(E){if(!rn(E))return!1;var M=li(E);return M==g||M=="[object DOMException]"||typeof E.message=="string"&&typeof E.name=="string"&&!Xc(E)}function ta(E){if(!Jr(E))return!1;var M=li(E);return M==w||M==k||M=="[object AsyncFunction]"||M=="[object Proxy]"}function Cv(E){return typeof E=="number"&&E==fr(E)}function Sf(E){return typeof E=="number"&&E>-1&&E%1==0&&E<=b}function Jr(E){var M=typeof E;return E!=null&&(M=="object"||M=="function")}function rn(E){return E!=null&&typeof E=="object"}var Av=Gi?Rn(Gi):function(E){return rn(E)&&Qn(E)==S};function Pv(E){return typeof E=="number"||rn(E)&&li(E)==A}function Xc(E){if(!rn(E)||li(E)!=j)return!1;var M=Xu(E);if(M===null)return!0;var z=or.call(M,"constructor")&&M.constructor;return typeof z=="function"&&z instanceof z&&Ln.call(z)==qo}var ld=Ro?Rn(Ro):function(E){return rn(E)&&li(E)==N},Mv=Ds?Rn(Ds):function(E){return rn(E)&&Qn(E)==F};function Ef(E){return typeof E=="string"||!ar(E)&&rn(E)&&li(E)==T}function Ii(E){return typeof E=="symbol"||rn(E)&&li(E)==I}var Vs=Ka?Rn(Ka):function(E){return rn(E)&&Sf(E.length)&&!!Dt[li(E)]},A_=mf(Fh),P_=mf(function(E,M){return E<=M});function jv(E){if(!E)return[];if(ki(E))return Ef(E)?Nr(E):_i(E);if(Fc&&E[Fc])return function(z){for(var tt,st=[];!(tt=z.next()).done;)st.push(tt.value);return st}(E[Fc]());var M=Qn(E);return(M==S?Hr:M==F?Lr:$s)(E)}function ea(E){return E?(E=to(E))===m||E===-1/0?17976931348623157e292*(E<0?-1:1):E==E?E:0:E===0?E:0}function fr(E){var M=ea(E),z=M%1;return M==M?z?M-z:M:0}function Iv(E){return E?is(fr(E),0,_):0}function to(E){if(typeof E=="number")return E;if(Ii(E))return v;if(Jr(E)){var M=typeof E.valueOf=="function"?E.valueOf():E;E=Jr(M)?M+"":M}if(typeof E!="string")return E===0?E:+E;E=Qa(E);var z=vt.test(E);return z||ht.test(E)?gr(E.slice(2),z?2:8):_t.test(E)?v:+E}function Dv(E){return Po(E,xi(E))}function Pr(E){return E==null?"":ji(E)}var M_=Us(function(E,M){if(Yc(M)||ki(M))Po(M,An(M),E);else for(var z in M)or.call(M,z)&&Hc(E,z,M[z])}),Nv=Us(function(E,M){Po(M,xi(M),E)}),Tf=Us(function(E,M,z,tt){Po(M,xi(M),E,tt)}),j_=Us(function(E,M,z,tt){Po(M,An(M),E,tt)}),I_=Jo(Ah),D_=mr(function(E,M){E=te(E);var z=-1,tt=M.length,st=tt>2?M[2]:e;for(st&&hi(M[0],M[1],st)&&(tt=1);++z<tt;)for(var xt=M[z],jt=xi(xt),zt=-1,Vt=jt.length;++zt<Vt;){var ne=jt[zt],oe=E[ne];(oe===e||mo(oe,zr[ne])&&!or.call(E,ne))&&(E[ne]=xt[ne])}return E}),N_=mr(function(E){return E.push(e,tv),Nn(Fv,e,E)});function hd(E,M,z){var tt=E==null?e:os(E,M);return tt===e?z:tt}function dd(E,M){return E!=null&&nv(E,M,L5)}var F_=Ky(function(E,M,z){M!=null&&typeof M.toString!="function"&&(M=wi.call(M)),E[M]=z},md(Si)),L_=Ky(function(E,M,z){M!=null&&typeof M.toString!="function"&&(M=wi.call(M)),or.call(E,M)?E[M].push(z):E[M]=[z]},Ge),B_=mr(Vc);function An(E){return ki(E)?dy(E):Nh(E)}function xi(E){return ki(E)?dy(E,!0):B5(E)}var z_=Us(function(E,M,z){cf(E,M,z)}),Fv=Us(function(E,M,z,tt){cf(E,M,z,tt)}),U_=Jo(function(E,M){var z={};if(E==null)return z;var tt=!1;M=Dr(M,function(xt){return xt=Sa(xt,E),tt||(tt=xt.length>1),xt}),Po(E,Xh(E),z),tt&&(z=Zi(z,7,G5));for(var st=M.length;st--;)Hh(z,M[st]);return z}),H_=Jo(function(E,M){return E==null?{}:function(z,tt){return Ay(z,tt,function(st,xt){return dd(z,xt)})}(E,M)});function Lv(E,M){if(E==null)return{};var z=Dr(Xh(E),function(tt){return[tt]});return M=Ge(M),Ay(E,z,function(tt,st){return M(tt,st[0])})}var Bv=Jy(An),zv=Jy(xi);function $s(E){return E==null?[]:ts(E,An(E))}var W_=Hs(function(E,M,z){return M=M.toLowerCase(),E+(z?Uv(M):M)});function Uv(E){return pd(Pr(E).toLowerCase())}function Hv(E){return(E=Pr(E))&&E.replace(it,je).replace(Br,"")}var V_=Hs(function(E,M,z){return E+(z?"-":"")+M.toLowerCase()}),$_=Hs(function(E,M,z){return E+(z?" ":"")+M.toLowerCase()}),q_=qy("toLowerCase"),G_=Hs(function(E,M,z){return E+(z?"_":"")+M.toLowerCase()}),Y_=Hs(function(E,M,z){return E+(z?" ":"")+pd(M)}),K_=Hs(function(E,M,z){return E+(z?" ":"")+M.toUpperCase()}),pd=qy("toUpperCase");function Wv(E,M,z){return E=Pr(E),(M=z?e:M)===e?function(tt){return ai.test(tt)}(E)?function(tt){return tt.match(Dn)||[]}(E):function(tt){return tt.match(fe)||[]}(E):E.match(M)||[]}var Vv=mr(function(E,M){try{return Nn(E,e,M)}catch(z){return fd(z)?z:new lt(z)}}),X_=Jo(function(E,M){return Fn(M,function(z){z=Mo(z),Xo(E,z,cd(E[z],E))}),E});function md(E){return function(){return E}}var Z_=Yy(),J_=Yy(!0);function Si(E){return E}function yd(E){return Sy(typeof E=="function"?E:Zi(E,1))}var Q_=mr(function(E,M){return function(z){return Vc(z,E,M)}}),t8=mr(function(E,M){return function(z){return Vc(E,z,M)}});function vd(E,M,z){var tt=An(M),st=sf(M,tt);z!=null||Jr(M)&&(st.length||!tt.length)||(z=M,M=E,E=this,st=sf(M,An(M)));var xt=!(Jr(z)&&"chain"in z&&!z.chain),jt=ta(E);return Fn(st,function(zt){var Vt=M[zt];E[zt]=Vt,jt&&(E.prototype[zt]=function(){var ne=this.__chain__;if(xt||ne){var oe=E(this.__wrapped__);return(oe.__actions__=_i(this.__actions__)).push({func:Vt,args:arguments,thisArg:E}),oe.__chain__=ne,oe}return Vt.apply(E,Ki([this.value()],arguments))})}),E}function bd(){}var e8=Gh(Dr),r8=Gh(co),n8=Gh(ga);function $v(E){return td(E)?$o(Mo(E)):function(M){return function(z){return os(z,M)}}(E)}var i8=Xy(),o8=Xy(!0);function gd(){return[]}function wd(){return!1}var a8=df(function(E,M){return E+M},0),s8=Yh("ceil"),c8=df(function(E,M){return E/M},1),u8=Yh("floor"),_d,f8=df(function(E,M){return E*M},1),l8=Yh("round"),h8=df(function(E,M){return E-M},0);return yt.after=function(E,M){if(typeof M!="function")throw new Ke(n);return E=fr(E),function(){if(--E<1)return M.apply(this,arguments)}},yt.ary=Sv,yt.assign=M_,yt.assignIn=Nv,yt.assignInWith=Tf,yt.assignWith=j_,yt.at=I_,yt.before=Ev,yt.bind=cd,yt.bindAll=X_,yt.bindKey=Tv,yt.castArray=function(){if(!arguments.length)return[];var E=arguments[0];return ar(E)?E:[E]},yt.chain=_v,yt.chunk=function(E,M,z){M=(z?hi(E,M,z):M===e)?1:_n(fr(M),0);var tt=E==null?0:E.length;if(!tt||M<1)return[];for(var st=0,xt=0,jt=Pe(Qu(tt/M));st<tt;)jt[xt++]=Ji(E,st,st+=M);return jt},yt.compact=function(E){for(var M=-1,z=E==null?0:E.length,tt=0,st=[];++M<z;){var xt=E[M];xt&&(st[tt++]=xt)}return st},yt.concat=function(){var E=arguments.length;if(!E)return[];for(var M=Pe(E-1),z=arguments[0],tt=E;tt--;)M[tt-1]=arguments[tt];return Ki(ar(z)?_i(z):[z],Bn(M,1))},yt.cond=function(E){var M=E==null?0:E.length,z=Ge();return E=M?Dr(E,function(tt){if(typeof tt[1]!="function")throw new Ke(n);return[z(tt[0]),tt[1]]}):[],mr(function(tt){for(var st=-1;++st<M;){var xt=E[st];if(Nn(xt[0],this,tt))return Nn(xt[1],this,tt)}})},yt.conforms=function(E){return function(M){var z=An(M);return function(tt){return yy(tt,M,z)}}(Zi(E,1))},yt.constant=md,yt.countBy=p_,yt.create=function(E,M){var z=zs(E);return M==null?z:my(z,M)},yt.curry=function E(M,z,tt){var st=Zo(M,8,e,e,e,e,e,z=tt?e:z);return st.placeholder=E.placeholder,st},yt.curryRight=function E(M,z,tt){var st=Zo(M,f,e,e,e,e,e,z=tt?e:z);return st.placeholder=E.placeholder,st},yt.debounce=Ov,yt.defaults=D_,yt.defaultsDeep=N_,yt.defer=k_,yt.delay=x_,yt.difference=X5,yt.differenceBy=Z5,yt.differenceWith=J5,yt.drop=function(E,M,z){var tt=E==null?0:E.length;return tt?Ji(E,(M=z||M===e?1:fr(M))<0?0:M,tt):[]},yt.dropRight=function(E,M,z){var tt=E==null?0:E.length;return tt?Ji(E,0,(M=tt-(M=z||M===e?1:fr(M)))<0?0:M):[]},yt.dropRightWhile=function(E,M){return E&&E.length?ff(E,Ge(M,3),!0,!0):[]},yt.dropWhile=function(E,M){return E&&E.length?ff(E,Ge(M,3),!0):[]},yt.fill=function(E,M,z,tt){var st=E==null?0:E.length;return st?(z&&typeof z!="number"&&hi(E,M,z)&&(z=0,tt=st),function(xt,jt,zt,Vt){var ne=xt.length;for((zt=fr(zt))<0&&(zt=-zt>ne?0:ne+zt),(Vt=Vt===e||Vt>ne?ne:fr(Vt))<0&&(Vt+=ne),Vt=zt>Vt?0:Iv(Vt);zt<Vt;)xt[zt++]=jt;return xt}(E,M,z,tt)):[]},yt.filter=function(E,M){return(ar(E)?Yi:gy)(E,Ge(M,3))},yt.flatMap=function(E,M){return Bn(wf(E,M),1)},yt.flatMapDeep=function(E,M){return Bn(wf(E,M),m)},yt.flatMapDepth=function(E,M,z){return z=z===e?1:fr(z),Bn(wf(E,M),z)},yt.flatten=vv,yt.flattenDeep=function(E){return E!=null&&E.length?Bn(E,m):[]},yt.flattenDepth=function(E,M){return E!=null&&E.length?Bn(E,M=M===e?1:fr(M)):[]},yt.flip=function(E){return Zo(E,512)},yt.flow=Z_,yt.flowRight=J_,yt.fromPairs=function(E){for(var M=-1,z=E==null?0:E.length,tt={};++M<z;){var st=E[M];tt[st[0]]=st[1]}return tt},yt.functions=function(E){return E==null?[]:sf(E,An(E))},yt.functionsIn=function(E){return E==null?[]:sf(E,xi(E))},yt.groupBy=v_,yt.initial=function(E){return E!=null&&E.length?Ji(E,0,-1):[]},yt.intersection=Q5,yt.intersectionBy=t_,yt.intersectionWith=e_,yt.invert=F_,yt.invertBy=L_,yt.invokeMap=b_,yt.iteratee=yd,yt.keyBy=g_,yt.keys=An,yt.keysIn=xi,yt.map=wf,yt.mapKeys=function(E,M){var z={};return M=Ge(M,3),Ao(E,function(tt,st,xt){Xo(z,M(tt,st,xt),tt)}),z},yt.mapValues=function(E,M){var z={};return M=Ge(M,3),Ao(E,function(tt,st,xt){Xo(z,st,M(tt,st,xt))}),z},yt.matches=function(E){return Ty(Zi(E,1))},yt.matchesProperty=function(E,M){return Oy(E,Zi(M,1))},yt.memoize=kf,yt.merge=z_,yt.mergeWith=Fv,yt.method=Q_,yt.methodOf=t8,yt.mixin=vd,yt.negate=xf,yt.nthArg=function(E){return E=fr(E),mr(function(M){return Ry(M,E)})},yt.omit=U_,yt.omitBy=function(E,M){return Lv(E,xf(Ge(M)))},yt.once=function(E){return Ev(2,E)},yt.orderBy=function(E,M,z,tt){return E==null?[]:(ar(M)||(M=M==null?[]:[M]),ar(z=tt?e:z)||(z=z==null?[]:[z]),Cy(E,M,z))},yt.over=e8,yt.overArgs=S_,yt.overEvery=r8,yt.overSome=n8,yt.partial=ud,yt.partialRight=Rv,yt.partition=w_,yt.pick=H_,yt.pickBy=Lv,yt.property=$v,yt.propertyOf=function(E){return function(M){return E==null?e:os(E,M)}},yt.pull=r_,yt.pullAll=gv,yt.pullAllBy=function(E,M,z){return E&&E.length&&M&&M.length?Lh(E,M,Ge(z,2)):E},yt.pullAllWith=function(E,M,z){return E&&E.length&&M&&M.length?Lh(E,M,e,z):E},yt.pullAt=n_,yt.range=i8,yt.rangeRight=o8,yt.rearg=E_,yt.reject=function(E,M){return(ar(E)?Yi:gy)(E,xf(Ge(M,3)))},yt.remove=function(E,M){var z=[];if(!E||!E.length)return z;var tt=-1,st=[],xt=E.length;for(M=Ge(M,3);++tt<xt;){var jt=E[tt];M(jt,tt,E)&&(z.push(jt),st.push(tt))}return Py(E,st),z},yt.rest=function(E,M){if(typeof E!="function")throw new Ke(n);return mr(E,M=M===e?M:fr(M))},yt.reverse=ad,yt.sampleSize=function(E,M,z){return M=(z?hi(E,M,z):M===e)?1:fr(M),(ar(E)?j5:U5)(E,M)},yt.set=function(E,M,z){return E==null?E:qc(E,M,z)},yt.setWith=function(E,M,z,tt){return tt=typeof tt=="function"?tt:e,E==null?E:qc(E,M,z,tt)},yt.shuffle=function(E){return(ar(E)?I5:W5)(E)},yt.slice=function(E,M,z){var tt=E==null?0:E.length;return tt?(z&&typeof z!="number"&&hi(E,M,z)?(M=0,z=tt):(M=M==null?0:fr(M),z=z===e?tt:fr(z)),Ji(E,M,z)):[]},yt.sortBy=__,yt.sortedUniq=function(E){return E&&E.length?jy(E):[]},yt.sortedUniqBy=function(E,M){return E&&E.length?jy(E,Ge(M,2)):[]},yt.split=function(E,M,z){return z&&typeof z!="number"&&hi(E,M,z)&&(M=z=e),(z=z===e?_:z>>>0)?(E=Pr(E))&&(typeof M=="string"||M!=null&&!ld(M))&&!(M=ji(M))&&vr(E)?Ea(Nr(E),0,z):E.split(M,z):[]},yt.spread=function(E,M){if(typeof E!="function")throw new Ke(n);return M=M==null?0:_n(fr(M),0),mr(function(z){var tt=z[M],st=Ea(z,0,M);return tt&&Ki(st,tt),Nn(E,this,st)})},yt.tail=function(E){var M=E==null?0:E.length;return M?Ji(E,1,M):[]},yt.take=function(E,M,z){return E&&E.length?Ji(E,0,(M=z||M===e?1:fr(M))<0?0:M):[]},yt.takeRight=function(E,M,z){var tt=E==null?0:E.length;return tt?Ji(E,(M=tt-(M=z||M===e?1:fr(M)))<0?0:M,tt):[]},yt.takeRightWhile=function(E,M){return E&&E.length?ff(E,Ge(M,3),!1,!0):[]},yt.takeWhile=function(E,M){return E&&E.length?ff(E,Ge(M,3)):[]},yt.tap=function(E,M){return M(E),E},yt.throttle=function(E,M,z){var tt=!0,st=!0;if(typeof E!="function")throw new Ke(n);return Jr(z)&&(tt="leading"in z?!!z.leading:tt,st="trailing"in z?!!z.trailing:st),Ov(E,M,{leading:tt,maxWait:M,trailing:st})},yt.thru=gf,yt.toArray=jv,yt.toPairs=Bv,yt.toPairsIn=zv,yt.toPath=function(E){return ar(E)?Dr(E,Mo):Ii(E)?[E]:_i(dv(Pr(E)))},yt.toPlainObject=Dv,yt.transform=function(E,M,z){var tt=ar(E),st=tt||Ta(E)||Vs(E);if(M=Ge(M,4),z==null){var xt=E&&E.constructor;z=st?tt?new xt:[]:Jr(E)&&ta(xt)?zs(Xu(E)):{}}return(st?Fn:Ao)(E,function(jt,zt,Vt){return M(z,jt,zt,Vt)}),z},yt.unary=function(E){return Sv(E,1)},yt.union=i_,yt.unionBy=o_,yt.unionWith=a_,yt.uniq=function(E){return E&&E.length?xa(E):[]},yt.uniqBy=function(E,M){return E&&E.length?xa(E,Ge(M,2)):[]},yt.uniqWith=function(E,M){return M=typeof M=="function"?M:e,E&&E.length?xa(E,e,M):[]},yt.unset=function(E,M){return E==null||Hh(E,M)},yt.unzip=sd,yt.unzipWith=wv,yt.update=function(E,M,z){return E==null?E:Dy(E,M,$h(z))},yt.updateWith=function(E,M,z,tt){return tt=typeof tt=="function"?tt:e,E==null?E:Dy(E,M,$h(z),tt)},yt.values=$s,yt.valuesIn=function(E){return E==null?[]:ts(E,xi(E))},yt.without=s_,yt.words=Wv,yt.wrap=function(E,M){return ud($h(M),E)},yt.xor=c_,yt.xorBy=u_,yt.xorWith=f_,yt.zip=l_,yt.zipObject=function(E,M){return Fy(E||[],M||[],Hc)},yt.zipObjectDeep=function(E,M){return Fy(E||[],M||[],qc)},yt.zipWith=h_,yt.entries=Bv,yt.entriesIn=zv,yt.extend=Nv,yt.extendWith=Tf,vd(yt,yt),yt.add=a8,yt.attempt=Vv,yt.camelCase=W_,yt.capitalize=Uv,yt.ceil=s8,yt.clamp=function(E,M,z){return z===e&&(z=M,M=e),z!==e&&(z=(z=to(z))==z?z:0),M!==e&&(M=(M=to(M))==M?M:0),is(to(E),M,z)},yt.clone=function(E){return Zi(E,4)},yt.cloneDeep=function(E){return Zi(E,5)},yt.cloneDeepWith=function(E,M){return Zi(E,5,M=typeof M=="function"?M:e)},yt.cloneWith=function(E,M){return Zi(E,4,M=typeof M=="function"?M:e)},yt.conformsTo=function(E,M){return M==null||yy(E,M,An(M))},yt.deburr=Hv,yt.defaultTo=function(E,M){return E==null||E!=E?M:E},yt.divide=c8,yt.endsWith=function(E,M,z){E=Pr(E),M=ji(M);var tt=E.length,st=z=z===e?tt:is(fr(z),0,tt);return(z-=M.length)>=0&&E.slice(z,st)==M},yt.eq=mo,yt.escape=function(E){return(E=Pr(E))&&nt.test(E)?E.replace(Q,Ar):E},yt.escapeRegExp=function(E){return(E=Pr(E))&&J.test(E)?E.replace(Z,"\\$&"):E},yt.every=function(E,M,z){var tt=ar(E)?co:N5;return z&&hi(E,M,z)&&(M=e),tt(E,Ge(M,3))},yt.find=m_,yt.findIndex=mv,yt.findKey=function(E,M){return Za(E,Ge(M,3),Ao)},yt.findLast=y_,yt.findLastIndex=yv,yt.findLastKey=function(E,M){return Za(E,Ge(M,3),Mh)},yt.floor=u8,yt.forEach=kv,yt.forEachRight=xv,yt.forIn=function(E,M){return E==null?E:Ph(E,Ge(M,3),xi)},yt.forInRight=function(E,M){return E==null?E:wy(E,Ge(M,3),xi)},yt.forOwn=function(E,M){return E&&Ao(E,Ge(M,3))},yt.forOwnRight=function(E,M){return E&&Mh(E,Ge(M,3))},yt.get=hd,yt.gt=T_,yt.gte=O_,yt.has=function(E,M){return E!=null&&nv(E,M,F5)},yt.hasIn=dd,yt.head=bv,yt.identity=Si,yt.includes=function(E,M,z,tt){E=ki(E)?E:$s(E),z=z&&!tt?fr(z):0;var st=E.length;return z<0&&(z=_n(st+z,0)),Ef(E)?z<=st&&E.indexOf(M,z)>-1:!!st&&Mi(E,M,z)>-1},yt.indexOf=function(E,M,z){var tt=E==null?0:E.length;if(!tt)return-1;var st=z==null?0:fr(z);return st<0&&(st=_n(tt+st,0)),Mi(E,M,st)},yt.inRange=function(E,M,z){return M=ea(M),z===e?(z=M,M=0):z=ea(z),function(tt,st,xt){return tt>=Jn(st,xt)&&tt<_n(st,xt)}(E=to(E),M,z)},yt.invoke=B_,yt.isArguments=cs,yt.isArray=ar,yt.isArrayBuffer=R_,yt.isArrayLike=ki,yt.isArrayLikeObject=fn,yt.isBoolean=function(E){return E===!0||E===!1||rn(E)&&li(E)==a},yt.isBuffer=Ta,yt.isDate=C_,yt.isElement=function(E){return rn(E)&&E.nodeType===1&&!Xc(E)},yt.isEmpty=function(E){if(E==null)return!0;if(ki(E)&&(ar(E)||typeof E=="string"||typeof E.splice=="function"||Ta(E)||Vs(E)||cs(E)))return!E.length;var M=Qn(E);if(M==S||M==F)return!E.size;if(Yc(E))return!Nh(E).length;for(var z in E)if(or.call(E,z))return!1;return!0},yt.isEqual=function(E,M){return $c(E,M)},yt.isEqualWith=function(E,M,z){var tt=(z=typeof z=="function"?z:e)?z(E,M):e;return tt===e?$c(E,M,e,z):!!tt},yt.isError=fd,yt.isFinite=function(E){return typeof E=="number"&&fy(E)},yt.isFunction=ta,yt.isInteger=Cv,yt.isLength=Sf,yt.isMap=Av,yt.isMatch=function(E,M){return E===M||Dh(E,M,Jh(M))},yt.isMatchWith=function(E,M,z){return z=typeof z=="function"?z:e,Dh(E,M,Jh(M),z)},yt.isNaN=function(E){return Pv(E)&&E!=+E},yt.isNative=function(E){if(K5(E))throw new lt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return xy(E)},yt.isNil=function(E){return E==null},yt.isNull=function(E){return E===null},yt.isNumber=Pv,yt.isObject=Jr,yt.isObjectLike=rn,yt.isPlainObject=Xc,yt.isRegExp=ld,yt.isSafeInteger=function(E){return Cv(E)&&E>=-9007199254740991&&E<=b},yt.isSet=Mv,yt.isString=Ef,yt.isSymbol=Ii,yt.isTypedArray=Vs,yt.isUndefined=function(E){return E===e},yt.isWeakMap=function(E){return rn(E)&&Qn(E)==x},yt.isWeakSet=function(E){return rn(E)&&li(E)=="[object WeakSet]"},yt.join=function(E,M){return E==null?"":x5.call(E,M)},yt.kebabCase=V_,yt.last=Qi,yt.lastIndexOf=function(E,M,z){var tt=E==null?0:E.length;if(!tt)return-1;var st=tt;return z!==e&&(st=(st=fr(z))<0?_n(tt+st,0):Jn(st,tt-1)),M==M?function(xt,jt,zt){for(var Vt=zt+1;Vt--;)if(xt[Vt]===jt)return Vt;return Vt}(E,M,st):fo(E,ci,st,!0)},yt.lowerCase=$_,yt.lowerFirst=q_,yt.lt=A_,yt.lte=P_,yt.max=function(E){return E&&E.length?af(E,Si,jh):e},yt.maxBy=function(E,M){return E&&E.length?af(E,Ge(M,2),jh):e},yt.mean=function(E){return Ns(E,Si)},yt.meanBy=function(E,M){return Ns(E,Ge(M,2))},yt.min=function(E){return E&&E.length?af(E,Si,Fh):e},yt.minBy=function(E,M){return E&&E.length?af(E,Ge(M,2),Fh):e},yt.stubArray=gd,yt.stubFalse=wd,yt.stubObject=function(){return{}},yt.stubString=function(){return""},yt.stubTrue=function(){return!0},yt.multiply=f8,yt.nth=function(E,M){return E&&E.length?Ry(E,fr(M)):e},yt.noConflict=function(){return Ur._===this&&(Ur._=Go),this},yt.noop=bd,yt.now=_f,yt.pad=function(E,M,z){E=Pr(E);var tt=(M=fr(M))?un(E):0;if(!M||tt>=M)return E;var st=(M-tt)/2;return pf(tf(st),z)+E+pf(Qu(st),z)},yt.padEnd=function(E,M,z){E=Pr(E);var tt=(M=fr(M))?un(E):0;return M&&tt<M?E+pf(M-tt,z):E},yt.padStart=function(E,M,z){E=Pr(E);var tt=(M=fr(M))?un(E):0;return M&&tt<M?pf(M-tt,z)+E:E},yt.parseInt=function(E,M,z){return z||M==null?M=0:M&&(M=+M),T5(Pr(E).replace(St,""),M||0)},yt.random=function(E,M,z){if(z&&typeof z!="boolean"&&hi(E,M,z)&&(M=z=e),z===e&&(typeof M=="boolean"?(z=M,M=e):typeof E=="boolean"&&(z=E,E=e)),E===e&&M===e?(E=0,M=1):(E=ea(E),M===e?(M=E,E=0):M=ea(M)),E>M){var tt=E;E=M,M=tt}if(z||E%1||M%1){var st=ly();return Jn(E+st*(M-E+Le("1e-"+((st+"").length-1))),M)}return Bh(E,M)},yt.reduce=function(E,M,z){var tt=ar(E)?Xa:Ja,st=arguments.length<3;return tt(E,Ge(M,4),z,st,ka)},yt.reduceRight=function(E,M,z){var tt=ar(E)?Nc:Ja,st=arguments.length<3;return tt(E,Ge(M,4),z,st,by)},yt.repeat=function(E,M,z){return M=(z?hi(E,M,z):M===e)?1:fr(M),zh(Pr(E),M)},yt.replace=function(){var E=arguments,M=Pr(E[0]);return E.length<3?M:M.replace(E[1],E[2])},yt.result=function(E,M,z){var tt=-1,st=(M=Sa(M,E)).length;for(st||(st=1,E=e);++tt<st;){var xt=E==null?e:E[Mo(M[tt])];xt===e&&(tt=st,xt=z),E=ta(xt)?xt.call(E):xt}return E},yt.round=l8,yt.runInContext=$t,yt.sample=function(E){return(ar(E)?py:z5)(E)},yt.size=function(E){if(E==null)return 0;if(ki(E))return Ef(E)?un(E):E.length;var M=Qn(E);return M==S||M==F?E.size:Nh(E).length},yt.snakeCase=G_,yt.some=function(E,M,z){var tt=ar(E)?ga:V5;return z&&hi(E,M,z)&&(M=e),tt(E,Ge(M,3))},yt.sortedIndex=function(E,M){return uf(E,M)},yt.sortedIndexBy=function(E,M,z){return Uh(E,M,Ge(z,2))},yt.sortedIndexOf=function(E,M){var z=E==null?0:E.length;if(z){var tt=uf(E,M);if(tt<z&&mo(E[tt],M))return tt}return-1},yt.sortedLastIndex=function(E,M){return uf(E,M,!0)},yt.sortedLastIndexBy=function(E,M,z){return Uh(E,M,Ge(z,2),!0)},yt.sortedLastIndexOf=function(E,M){if(E!=null&&E.length){var z=uf(E,M,!0)-1;if(mo(E[z],M))return z}return-1},yt.startCase=Y_,yt.startsWith=function(E,M,z){return E=Pr(E),z=z==null?0:is(fr(z),0,E.length),M=ji(M),E.slice(z,z+M.length)==M},yt.subtract=h8,yt.sum=function(E){return E&&E.length?ho(E,Si):0},yt.sumBy=function(E,M){return E&&E.length?ho(E,Ge(M,2)):0},yt.template=function(E,M,z){var tt=yt.templateSettings;z&&hi(E,M,z)&&(M=e),E=Pr(E),M=Tf({},M,tt,Qy);var st,xt,jt=Tf({},M.imports,tt.imports,Qy),zt=An(jt),Vt=ts(jt,zt),ne=0,oe=M.interpolate||q,be="__p += '",Ne=He((M.escape||q).source+"|"+oe.source+"|"+(oe===ut?ct:q).source+"|"+(M.evaluate||q).source+"|$","g"),Be="//# sourceURL="+(or.call(M,"sourceURL")?(M.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kt+"]")+`
|
||
`;E.replace(Ne,function(_e,Xe,Re,cr,rr,Rr){return Re||(Re=cr),be+=E.slice(ne,Rr).replace(wt,er),Xe&&(st=!0,be+=`' +
|
||
__e(`+Xe+`) +
|
||
'`),rr&&(xt=!0,be+=`';
|
||
`+rr+`;
|
||
__p += '`),Re&&(be+=`' +
|
||
((__t = (`+Re+`)) == null ? '' : __t) +
|
||
'`),ne=Rr+_e.length,_e}),be+=`';
|
||
`;var qe=or.call(M,"variable")&&M.variable;if(qe){if(Kt.test(qe))throw new lt("Invalid `variable` option passed into `_.template`")}else be=`with (obj) {
|
||
`+be+`
|
||
}
|
||
`;be=(xt?be.replace(ft,""):be).replace(gt,"$1").replace(bt,"$1;"),be="function("+(qe||"obj")+`) {
|
||
`+(qe?"":`obj || (obj = {});
|
||
`)+"var __t, __p = ''"+(st?", __e = _.escape":"")+(xt?`, __j = Array.prototype.join;
|
||
function print() { __p += __j.call(arguments, '') }
|
||
`:`;
|
||
`)+be+`return __p
|
||
}`;var ce=Vv(function(){return Ct(zt,Be+"return "+be).apply(e,Vt)});if(ce.source=be,fd(ce))throw ce;return ce},yt.times=function(E,M){if((E=fr(E))<1||E>b)return[];var z=_,tt=Jn(E,_);M=Ge(M),E-=_;for(var st=wa(tt,M);++z<E;)M(z);return st},yt.toFinite=ea,yt.toInteger=fr,yt.toLength=Iv,yt.toLower=function(E){return Pr(E).toLowerCase()},yt.toNumber=to,yt.toSafeInteger=function(E){return E?is(fr(E),-9007199254740991,b):E===0?E:0},yt.toString=Pr,yt.toUpper=function(E){return Pr(E).toUpperCase()},yt.trim=function(E,M,z){if((E=Pr(E))&&(z||M===e))return Qa(E);if(!E||!(M=ji(M)))return E;var tt=Nr(E),st=Nr(M);return Ea(tt,Ut(tt,st),se(tt,st)+1).join("")},yt.trimEnd=function(E,M,z){if((E=Pr(E))&&(z||M===e))return E.slice(0,vn(E)+1);if(!E||!(M=ji(M)))return E;var tt=Nr(E);return Ea(tt,0,se(tt,Nr(M))+1).join("")},yt.trimStart=function(E,M,z){if((E=Pr(E))&&(z||M===e))return E.replace(St,"");if(!E||!(M=ji(M)))return E;var tt=Nr(E);return Ea(tt,Ut(tt,Nr(M))).join("")},yt.truncate=function(E,M){var z=30,tt="...";if(Jr(M)){var st="separator"in M?M.separator:st;z="length"in M?fr(M.length):z,tt="omission"in M?ji(M.omission):tt}var xt=(E=Pr(E)).length;if(vr(E)){var jt=Nr(E);xt=jt.length}if(z>=xt)return E;var zt=z-un(tt);if(zt<1)return tt;var Vt=jt?Ea(jt,0,zt).join(""):E.slice(0,zt);if(st===e)return Vt+tt;if(jt&&(zt+=Vt.length-zt),ld(st)){if(E.slice(zt).search(st)){var ne,oe=Vt;for(st.global||(st=He(st.source,Pr(pt.exec(st))+"g")),st.lastIndex=0;ne=st.exec(oe);)var be=ne.index;Vt=Vt.slice(0,be===e?zt:be)}}else if(E.indexOf(ji(st),zt)!=zt){var Ne=Vt.lastIndexOf(st);Ne>-1&&(Vt=Vt.slice(0,Ne))}return Vt+tt},yt.unescape=function(E){return(E=Pr(E))&&K.test(E)?E.replace(rt,Zn):E},yt.uniqueId=function(E){var M=++ui;return Pr(E)+M},yt.upperCase=K_,yt.upperFirst=pd,yt.each=kv,yt.eachRight=xv,yt.first=bv,vd(yt,(_d={},Ao(yt,function(E,M){or.call(yt.prototype,M)||(_d[M]=E)}),_d),{chain:!1}),yt.VERSION="4.17.21",Fn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(E){yt[E].placeholder=yt}),Fn(["drop","take"],function(E,M){xr.prototype[E]=function(z){z=z===e?1:_n(fr(z),0);var tt=this.__filtered__&&!M?new xr(this):this.clone();return tt.__filtered__?tt.__takeCount__=Jn(z,tt.__takeCount__):tt.__views__.push({size:Jn(z,_),type:E+(tt.__dir__<0?"Right":"")}),tt},xr.prototype[E+"Right"]=function(z){return this.reverse()[E](z).reverse()}}),Fn(["filter","map","takeWhile"],function(E,M){var z=M+1,tt=z==1||z==3;xr.prototype[E]=function(st){var xt=this.clone();return xt.__iteratees__.push({iteratee:Ge(st,3),type:z}),xt.__filtered__=xt.__filtered__||tt,xt}}),Fn(["head","last"],function(E,M){var z="take"+(M?"Right":"");xr.prototype[E]=function(){return this[z](1).value()[0]}}),Fn(["initial","tail"],function(E,M){var z="drop"+(M?"":"Right");xr.prototype[E]=function(){return this.__filtered__?new xr(this):this[z](1)}}),xr.prototype.compact=function(){return this.filter(Si)},xr.prototype.find=function(E){return this.filter(E).head()},xr.prototype.findLast=function(E){return this.reverse().find(E)},xr.prototype.invokeMap=mr(function(E,M){return typeof E=="function"?new xr(this):this.map(function(z){return Vc(z,E,M)})}),xr.prototype.reject=function(E){return this.filter(xf(Ge(E)))},xr.prototype.slice=function(E,M){E=fr(E);var z=this;return z.__filtered__&&(E>0||M<0)?new xr(z):(E<0?z=z.takeRight(-E):E&&(z=z.drop(E)),M!==e&&(z=(M=fr(M))<0?z.dropRight(-M):z.take(M-E)),z)},xr.prototype.takeRightWhile=function(E){return this.reverse().takeWhile(E).reverse()},xr.prototype.toArray=function(){return this.take(_)},Ao(xr.prototype,function(E,M){var z=/^(?:filter|find|map|reject)|While$/.test(M),tt=/^(?:head|last)$/.test(M),st=yt[tt?"take"+(M=="last"?"Right":""):M],xt=tt||/^find/.test(M);st&&(yt.prototype[M]=function(){var jt=this.__wrapped__,zt=tt?[1]:arguments,Vt=jt instanceof xr,ne=zt[0],oe=Vt||ar(jt),be=function(Xe){var Re=st.apply(yt,Ki([Xe],zt));return tt&&Ne?Re[0]:Re};oe&&z&&typeof ne=="function"&&ne.length!=1&&(Vt=oe=!1);var Ne=this.__chain__,Be=!!this.__actions__.length,qe=xt&&!Ne,ce=Vt&&!Be;if(!xt&&oe){jt=ce?jt:new xr(this);var _e=E.apply(jt,zt);return _e.__actions__.push({func:gf,args:[be],thisArg:e}),new Xi(_e,Ne)}return qe&&ce?E.apply(this,zt):(_e=this.thru(be),qe?tt?_e.value()[0]:_e.value():_e)})}),Fn(["pop","push","shift","sort","splice","unshift"],function(E){var M=Er[E],z=/^(?:push|sort|unshift)$/.test(E)?"tap":"thru",tt=/^(?:pop|shift)$/.test(E);yt.prototype[E]=function(){var st=arguments;if(tt&&!this.__chain__){var xt=this.value();return M.apply(ar(xt)?xt:[],st)}return this[z](function(jt){return M.apply(ar(jt)?jt:[],st)})}}),Ao(xr.prototype,function(E,M){var z=yt[M];if(z){var tt=z.name+"";or.call(Bs,tt)||(Bs[tt]=[]),Bs[tt].push({name:M,func:z})}}),Bs[hf(e,2).name]=[{name:"wrapper",func:e}],xr.prototype.clone=function(){var E=new xr(this.__wrapped__);return E.__actions__=_i(this.__actions__),E.__dir__=this.__dir__,E.__filtered__=this.__filtered__,E.__iteratees__=_i(this.__iteratees__),E.__takeCount__=this.__takeCount__,E.__views__=_i(this.__views__),E},xr.prototype.reverse=function(){if(this.__filtered__){var E=new xr(this);E.__dir__=-1,E.__filtered__=!0}else(E=this.clone()).__dir__*=-1;return E},xr.prototype.value=function(){var E=this.__wrapped__.value(),M=this.__dir__,z=ar(E),tt=M<0,st=z?E.length:0,xt=function(Rr,We,Ze){for(var kn=-1,ln=Ze.length;++kn<ln;){var di=Ze[kn],qr=di.size;switch(di.type){case"drop":Rr+=qr;break;case"dropRight":We-=qr;break;case"take":We=Jn(We,Rr+qr);break;case"takeRight":Rr=_n(Rr,We-qr)}}return{start:Rr,end:We}}(0,st,this.__views__),jt=xt.start,zt=xt.end,Vt=zt-jt,ne=tt?zt:jt-1,oe=this.__iteratees__,be=oe.length,Ne=0,Be=Jn(Vt,this.__takeCount__);if(!z||!tt&&st==Vt&&Be==Vt)return Ny(E,this.__actions__);var qe=[];t:for(;Vt--&&Ne<Be;){for(var ce=-1,_e=E[ne+=M];++ce<be;){var Xe=oe[ce],Re=Xe.iteratee,cr=Xe.type,rr=Re(_e);if(cr==2)_e=rr;else if(!rr){if(cr==1)continue t;break t}}qe[Ne++]=_e}return qe},yt.prototype.at=d_,yt.prototype.chain=function(){return _v(this)},yt.prototype.commit=function(){return new Xi(this.value(),this.__chain__)},yt.prototype.next=function(){this.__values__===e&&(this.__values__=jv(this.value()));var E=this.__index__>=this.__values__.length;return{done:E,value:E?e:this.__values__[this.__index__++]}},yt.prototype.plant=function(E){for(var M,z=this;z instanceof nf;){var tt=pv(z);tt.__index__=0,tt.__values__=e,M?st.__wrapped__=tt:M=tt;var st=tt;z=z.__wrapped__}return st.__wrapped__=E,M},yt.prototype.reverse=function(){var E=this.__wrapped__;if(E instanceof xr){var M=E;return this.__actions__.length&&(M=new xr(this)),(M=M.reverse()).__actions__.push({func:gf,args:[ad],thisArg:e}),new Xi(M,this.__chain__)}return this.thru(ad)},yt.prototype.toJSON=yt.prototype.valueOf=yt.prototype.value=function(){return Ny(this.__wrapped__,this.__actions__)},yt.prototype.first=yt.prototype.head,Fc&&(yt.prototype[Fc]=function(){return this}),yt}();wn?((wn.exports=Cn)._=Cn,Pi._=Cn):Ur._=Cn}).call(dr)})({get exports(){return Pa},set exports(t){Pa=t}},Pa);var ll={};(function(t,r){t.exports=function(){var e=1e3,n=6e4,i=36e5,c="millisecond",f="second",l="minute",u="hour",y="day",p="week",m="month",b="quarter",v="year",_="date",s="Invalid Date",o=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,a={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var I=["th","st","nd","rd"],x=T%100;return"["+T+(I[(x-20)%10]||I[x]||I[0])+"]"}},d=function(T,I,x){var O=String(T);return!O||O.length>=I?T:""+Array(I+1-O.length).join(x)+T},g={s:d,z:function(T){var I=-T.utcOffset(),x=Math.abs(I),O=Math.floor(x/60),R=x%60;return(I<=0?"+":"-")+d(O,2,"0")+":"+d(R,2,"0")},m:function T(I,x){if(I.date()<x.date())return-T(x,I);var O=12*(x.year()-I.year())+(x.month()-I.month()),R=I.clone().add(O,m),C=x-R<0,P=I.clone().add(O+(C?-1:1),m);return+(-(O+(x-R)/(C?R-P:P-R))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:m,y:v,w:p,d:y,D:_,h:u,m:l,s:f,ms:c,Q:b}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},w="en",k={};k[w]=a;var S=function(T){return T instanceof N},A=function T(I,x,O){var R;if(!I)return w;if(typeof I=="string"){var C=I.toLowerCase();k[C]&&(R=C),x&&(k[C]=x,R=C);var P=I.split("-");if(!R&&P.length>1)return T(P[0])}else{var L=I.name;k[L]=I,R=L}return!O&&R&&(w=R),R||!O&&w},j=function(T,I){if(S(T))return T.clone();var x=typeof I=="object"?I:{};return x.date=T,x.args=arguments,new N(x)},D=g;D.l=A,D.i=S,D.w=function(T,I){return j(T,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var N=function(){function T(x){this.$L=A(x.locale,null,!0),this.parse(x)}var I=T.prototype;return I.parse=function(x){this.$d=function(O){var R=O.date,C=O.utc;if(R===null)return new Date(NaN);if(D.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var P=R.match(o);if(P){var L=P[2]-1||0,H=(P[7]||"0").substring(0,3);return C?new Date(Date.UTC(P[1],L,P[3]||1,P[4]||0,P[5]||0,P[6]||0,H)):new Date(P[1],L,P[3]||1,P[4]||0,P[5]||0,P[6]||0,H)}}return new Date(R)}(x),this.$x=x.x||{},this.init()},I.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},I.$utils=function(){return D},I.isValid=function(){return this.$d.toString()!==s},I.isSame=function(x,O){var R=j(x);return this.startOf(O)<=R&&R<=this.endOf(O)},I.isAfter=function(x,O){return j(x)<this.startOf(O)},I.isBefore=function(x,O){return this.endOf(O)<j(x)},I.$g=function(x,O,R){return D.u(x)?this[O]:this.set(R,x)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(x,O){var R=this,C=!!D.u(O)||O,P=D.p(x),L=function(gt,bt){var rt=D.w(R.$u?Date.UTC(R.$y,bt,gt):new Date(R.$y,bt,gt),R);return C?rt:rt.endOf(y)},H=function(gt,bt){return D.w(R.toDate()[gt].apply(R.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(bt)),R)},U=this.$W,B=this.$M,W=this.$D,X="set"+(this.$u?"UTC":"");switch(P){case v:return C?L(1,0):L(31,11);case m:return C?L(1,B):L(0,B+1);case p:var et=this.$locale().weekStart||0,ft=(U<et?U+7:U)-et;return L(C?W-ft:W+(6-ft),B);case y:case _:return H(X+"Hours",0);case u:return H(X+"Minutes",1);case l:return H(X+"Seconds",2);case f:return H(X+"Milliseconds",3);default:return this.clone()}},I.endOf=function(x){return this.startOf(x,!1)},I.$set=function(x,O){var R,C=D.p(x),P="set"+(this.$u?"UTC":""),L=(R={},R[y]=P+"Date",R[_]=P+"Date",R[m]=P+"Month",R[v]=P+"FullYear",R[u]=P+"Hours",R[l]=P+"Minutes",R[f]=P+"Seconds",R[c]=P+"Milliseconds",R)[C],H=C===y?this.$D+(O-this.$W):O;if(C===m||C===v){var U=this.clone().set(_,1);U.$d[L](H),U.init(),this.$d=U.set(_,Math.min(this.$D,U.daysInMonth())).$d}else L&&this.$d[L](H);return this.init(),this},I.set=function(x,O){return this.clone().$set(x,O)},I.get=function(x){return this[D.p(x)]()},I.add=function(x,O){var R,C=this;x=Number(x);var P=D.p(O),L=function(B){var W=j(C);return D.w(W.date(W.date()+Math.round(B*x)),C)};if(P===m)return this.set(m,this.$M+x);if(P===v)return this.set(v,this.$y+x);if(P===y)return L(1);if(P===p)return L(7);var H=(R={},R[l]=n,R[u]=i,R[f]=e,R)[P]||1,U=this.$d.getTime()+x*H;return D.w(U,this)},I.subtract=function(x,O){return this.add(-1*x,O)},I.format=function(x){var O=this,R=this.$locale();if(!this.isValid())return R.invalidDate||s;var C=x||"YYYY-MM-DDTHH:mm:ssZ",P=D.z(this),L=this.$H,H=this.$m,U=this.$M,B=R.weekdays,W=R.months,X=function(bt,rt,Q,K){return bt&&(bt[rt]||bt(O,C))||Q[rt].slice(0,K)},et=function(bt){return D.s(L%12||12,bt,"0")},ft=R.meridiem||function(bt,rt,Q){var K=bt<12?"AM":"PM";return Q?K.toLowerCase():K},gt={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:D.s(U+1,2,"0"),MMM:X(R.monthsShort,U,W,3),MMMM:X(W,U),D:this.$D,DD:D.s(this.$D,2,"0"),d:String(this.$W),dd:X(R.weekdaysMin,this.$W,B,2),ddd:X(R.weekdaysShort,this.$W,B,3),dddd:B[this.$W],H:String(L),HH:D.s(L,2,"0"),h:et(1),hh:et(2),a:ft(L,H,!0),A:ft(L,H,!1),m:String(H),mm:D.s(H,2,"0"),s:String(this.$s),ss:D.s(this.$s,2,"0"),SSS:D.s(this.$ms,3,"0"),Z:P};return C.replace(h,function(bt,rt){return rt||gt[bt]||P.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(x,O,R){var C,P=D.p(O),L=j(x),H=(L.utcOffset()-this.utcOffset())*n,U=this-L,B=D.m(this,L);return B=(C={},C[v]=B/12,C[m]=B,C[b]=B/3,C[p]=(U-H)/6048e5,C[y]=(U-H)/864e5,C[u]=U/i,C[l]=U/n,C[f]=U/e,C)[P]||U,R?B:D.a(B)},I.daysInMonth=function(){return this.endOf(m).$D},I.$locale=function(){return k[this.$L]},I.locale=function(x,O){if(!x)return this.$L;var R=this.clone(),C=A(x,O,!0);return C&&(R.$L=C),R},I.clone=function(){return D.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},T}(),F=N.prototype;return j.prototype=F,[["$ms",c],["$s",f],["$m",l],["$H",u],["$W",y],["$M",m],["$y",v],["$D",_]].forEach(function(T){F[T[1]]=function(I){return this.$g(I,T[0],T[1])}}),j.extend=function(T,I){return T.$i||(T(I,N,j),T.$i=!0),j},j.locale=A,j.isDayjs=S,j.unix=function(T){return j(1e3*T)},j.en=k[w],j.Ls=k,j.p={},j}()})({get exports(){return ll},set exports(t){ll=t}});const bs=ll;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var hl={version:"0.18.5"},zp=1252,sw=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],dl={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},pl=function(t){sw.indexOf(t)!=-1&&(zp=dl[0]=t)},io=function(t){pl(t)};function ml(){io(1200),pl(1252)}function Up(t){for(var r=[],e=0,n=t.length;e<n;++e)r[e]=t.charCodeAt(e);return r}function Hp(t){for(var r=[],e=0;e<t.length>>1;++e)r[e]=String.fromCharCode(t.charCodeAt(2*e+1)+(t.charCodeAt(2*e)<<8));return r.join("")}var aa,ec=function(t){var r=t.charCodeAt(0),e=t.charCodeAt(1);return r==255&&e==254?function(n){for(var i=[],c=0;c<n.length>>1;++c)i[c]=String.fromCharCode(n.charCodeAt(2*c)+(n.charCodeAt(2*c+1)<<8));return i.join("")}(t.slice(2)):r==254&&e==255?Hp(t.slice(2)):r==65279?t.slice(1):t},mu=function(t){return String.fromCharCode(t)},Wp=function(t){return String.fromCharCode(t)},sa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function rc(t){for(var r="",e=0,n=0,i=0,c=0,f=0,l=0,u=0,y=0;y<t.length;)c=(e=t.charCodeAt(y++))>>2,f=(3&e)<<4|(n=t.charCodeAt(y++))>>4,l=(15&n)<<2|(i=t.charCodeAt(y++))>>6,u=63&i,isNaN(n)?l=u=64:isNaN(i)&&(u=64),r+=sa.charAt(c)+sa.charAt(f)+sa.charAt(l)+sa.charAt(u);return r}function Ti(t){var r="",e=0,n=0,i=0,c=0,f=0,l=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<t.length;)e=sa.indexOf(t.charAt(u++))<<2|(c=sa.indexOf(t.charAt(u++)))>>4,r+=String.fromCharCode(e),n=(15&c)<<4|(f=sa.indexOf(t.charAt(u++)))>>2,f!==64&&(r+=String.fromCharCode(n)),i=(3&f)<<6|(l=sa.indexOf(t.charAt(u++))),l!==64&&(r+=String.fromCharCode(i));return r}var pr=function(){return typeof Buffer!="undefined"&&typeof process!="undefined"&&process.versions!==void 0&&!!process.versions.node}(),Fo=function(){if(typeof Buffer!="undefined"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch(r){t=!0}return t?function(r,e){return e?new Buffer(r,e):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}();function ca(t){return pr?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array!="undefined"?new Uint8Array(t):new Array(t)}function Vp(t){return pr?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array!="undefined"?new Uint8Array(t):new Array(t)}var Oi=function(t){return pr?Fo(t,"binary"):t.split("").map(function(r){return 255&r.charCodeAt(0)})};function yu(t){if(typeof ArrayBuffer=="undefined")return Oi(t);for(var r=new ArrayBuffer(t.length),e=new Uint8Array(r),n=0;n!=t.length;++n)e[n]=255&t.charCodeAt(n);return r}function ua(t){if(Array.isArray(t))return t.map(function(n){return String.fromCharCode(n)}).join("");for(var r=[],e=0;e<t.length;++e)r[e]=String.fromCharCode(t[e]);return r.join("")}function yl(t){if(typeof ArrayBuffer=="undefined")throw new Error("Unsupported");if(t instanceof ArrayBuffer)return yl(new Uint8Array(t));for(var r=new Array(t.length),e=0;e<t.length;++e)r[e]=t[e];return r}var xn=pr?function(t){return Buffer.concat(t.map(function(r){return Buffer.isBuffer(r)?r:Fo(r)}))}:function(t){if(typeof Uint8Array!="undefined"){var r=0,e=0;for(r=0;r<t.length;++r)e+=t[r].length;var n=new Uint8Array(e),i=0;for(r=0,e=0;r<t.length;e+=i,++r)if(i=t[r].length,t[r]instanceof Uint8Array)n.set(t[r],e);else{if(typeof t[r]=="string")throw"wtf";n.set(new Uint8Array(t[r]),e)}return n}return[].concat.apply([],t.map(function(c){return Array.isArray(c)?c:[].slice.call(c)}))},ei=/\u0000/g,nc=/[\u0001-\u0006]/g;function gs(t){for(var r="",e=t.length-1;e>=0;)r+=t.charAt(e--);return r}function oo(t,r){var e=""+t;return e.length>=r?e:Qr("0",r-e.length)+e}function vl(t,r){var e=""+t;return e.length>=r?e:Qr(" ",r-e.length)+e}function vu(t,r){var e=""+t;return e.length>=r?e:e+Qr(" ",r-e.length)}var $p=Math.pow(2,32);function ws(t,r){return t>$p||t<-$p?function(e,n){var i=""+Math.round(e);return i.length>=n?i:Qr("0",n-i.length)+i}(t,r):function(e,n){var i=""+e;return i.length>=n?i:Qr("0",n-i.length)+i}(Math.round(t),r)}function bu(t,r){return r=r||0,t.length>=7+r&&(32|t.charCodeAt(r))==103&&(32|t.charCodeAt(r+1))==101&&(32|t.charCodeAt(r+2))==110&&(32|t.charCodeAt(r+3))==101&&(32|t.charCodeAt(r+4))==114&&(32|t.charCodeAt(r+5))==97&&(32|t.charCodeAt(r+6))==108}var qp=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],bl=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],Je={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Gp={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},cw={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function gu(t,r,e){for(var n=t<0?-1:1,i=t*n,c=0,f=1,l=0,u=1,y=0,p=0,m=Math.floor(i);y<r&&(l=(m=Math.floor(i))*f+c,p=m*y+u,!(i-m<5e-8));)i=1/(i-m),c=f,f=l,u=y,y=p;if(p>r&&(y>r?(p=u,l=c):(p=y,l=f)),!e)return[0,n*l,p];var b=Math.floor(n*l/p);return[b,n*l-b*p,p]}function Ma(t,r,e){if(t>2958465||t<0)return null;var n=0|t,i=Math.floor(86400*(t-n)),c=0,f=[],l={D:n,T:i,u:86400*(t-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(l.u)<1e-6&&(l.u=0),r&&r.date1904&&(n+=1462),l.u>.9999&&(l.u=0,++i==86400&&(l.T=i=0,++n,++l.D)),n===60)f=e?[1317,10,29]:[1900,2,29],c=3;else if(n===0)f=e?[1317,8,29]:[1900,1,0],c=6;else{n>60&&--n;var u=new Date(1900,0,1);u.setDate(u.getDate()+n-1),f=[u.getFullYear(),u.getMonth()+1,u.getDate()],c=u.getDay(),n<60&&(c=(c+6)%7),e&&(c=function(y,p){p[0]-=581;var m=y.getDay();return y<60&&(m=(m+6)%7),m}(u,f))}return l.y=f[0],l.m=f[1],l.d=f[2],l.S=i%60,i=Math.floor(i/60),l.M=i%60,i=Math.floor(i/60),l.H=i,l.q=c,l}var Yp=new Date(1899,11,31,0,0,0),uw=Yp.getTime(),fw=new Date(1900,2,1,0,0,0);function Kp(t,r){var e=t.getTime();return r?e-=1262304e5:t>=fw&&(e+=864e5),(e-(uw+6e4*(t.getTimezoneOffset()-Yp.getTimezoneOffset())))/864e5}function gl(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function ic(t){var r,e=Math.floor(Math.log(Math.abs(t))*Math.LOG10E);return r=e>=-4&&e<=-1?t.toPrecision(10+e):Math.abs(e)<=9?function(n){var i=n<0?12:11,c=gl(n.toFixed(12));return c.length<=i||(c=n.toPrecision(10)).length<=i?c:n.toExponential(5)}(t):e===10?t.toFixed(10).substr(0,12):function(n){var i=gl(n.toFixed(11));return i.length>(n<0?12:11)||i==="0"||i==="-0"?n.toPrecision(6):i}(t),gl(function(n){return n.indexOf("E")==-1?n:n.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(r.toUpperCase()))}function ja(t,r){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(0|t)===t?t.toString(10):ic(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return Ni(14,Kp(t,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+t)}function lw(t,r,e,n){var i,c="",f=0,l=0,u=e.y,y=0;switch(t){case 98:u=e.y+543;case 121:switch(r.length){case 1:case 2:i=u%100,y=2;break;default:i=u%1e4,y=4}break;case 109:switch(r.length){case 1:case 2:i=e.m,y=r.length;break;case 3:return bl[e.m-1][1];case 5:return bl[e.m-1][0];default:return bl[e.m-1][2]}break;case 100:switch(r.length){case 1:case 2:i=e.d,y=r.length;break;case 3:return qp[e.q][0];default:return qp[e.q][1]}break;case 104:switch(r.length){case 1:case 2:i=1+(e.H+11)%12,y=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:i=e.H,y=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:i=e.M,y=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return e.u!==0||r!="s"&&r!="ss"?(l=n>=2?n===3?1e3:100:n===1?10:1,(f=Math.round(l*(e.S+e.u)))>=60*l&&(f=0),r==="s"?f===0?"0":""+f/l:(c=oo(f,2+n),r==="ss"?c.substr(0,2):"."+c.substr(2,r.length-1))):oo(e.S,r.length);case 90:switch(r){case"[h]":case"[hh]":i=24*e.D+e.H;break;case"[m]":case"[mm]":i=60*(24*e.D+e.H)+e.M;break;case"[s]":case"[ss]":i=60*(60*(24*e.D+e.H)+e.M)+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+r}y=r.length===3?1:2;break;case 101:i=u,y=1}return y>0?oo(i,y):""}function fa(t){if(t.length<=3)return t;for(var r=t.length%3,e=t.substr(0,r);r!=t.length;r+=3)e+=(e.length>0?",":"")+t.substr(r,3);return e}var Xp=/%/g;function Zp(t,r){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+Zp(t,-r);var i=t.indexOf(".");i===-1&&(i=t.indexOf("E"));var c=Math.floor(Math.log(r)*Math.LOG10E)%i;if(c<0&&(c+=i),(e=(r/Math.pow(10,c)).toPrecision(n+1+(i+c)%i)).indexOf("e")===-1){var f=Math.floor(Math.log(r)*Math.LOG10E);for(e.indexOf(".")===-1?e=e.charAt(0)+"."+e.substr(1)+"E+"+(f-e.length+c):e+="E+"+(f-c);e.substr(0,2)==="0.";)e=(e=e.charAt(0)+e.substr(2,i)+"."+e.substr(2+i)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(l,u,y,p){return u+y+p.substr(0,(i+c)%i)+"."+p.substr(c)+"E"})}else e=r.toExponential(n);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}var Jp=/# (\?+)( ?)\/( ?)(\d+)/,Qp=/^#*0*\.([0#]+)/,t0=/\).*[0#]/,e0=/\(###\) ###\\?-####/;function ri(t){for(var r,e="",n=0;n!=t.length;++n)switch(r=t.charCodeAt(n)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(r)}return e}function r0(t,r){var e=Math.pow(10,r);return""+Math.round(t*e)/e}function n0(t,r){var e=t-Math.floor(t),n=Math.pow(10,r);return r<(""+Math.round(e*n)).length?0:Math.round(e*n)}function Di(t,r,e){if(t.charCodeAt(0)===40&&!r.match(t0)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Di("n",n,e):"("+Di("n",n,-e)+")"}if(r.charCodeAt(r.length-1)===44)return function(_,s,o){for(var h=s.length-1;s.charCodeAt(h-1)===44;)--h;return Lo(_,s.substr(0,h),o/Math.pow(10,3*(s.length-h)))}(t,r,e);if(r.indexOf("%")!==-1)return function(_,s,o){var h=s.replace(Xp,""),a=s.length-h.length;return Lo(_,h,o*Math.pow(10,2*a))+Qr("%",a)}(t,r,e);if(r.indexOf("E")!==-1)return Zp(r,e);if(r.charCodeAt(0)===36)return"$"+Di(t,r.substr(r.charAt(1)==" "?2:1),e);var i,c,f,l,u=Math.abs(e),y=e<0?"-":"";if(r.match(/^00+$/))return y+ws(u,r.length);if(r.match(/^[#?]+$/))return(i=ws(e,0))==="0"&&(i=""),i.length>r.length?i:ri(r.substr(0,r.length-i.length))+i;if(c=r.match(Jp))return function(_,s,o){var h=parseInt(_[4],10),a=Math.round(s*h),d=Math.floor(a/h),g=a-d*h,w=h;return o+(d===0?"":""+d)+" "+(g===0?Qr(" ",_[1].length+1+_[4].length):vl(g,_[1].length)+_[2]+"/"+_[3]+oo(w,_[4].length))}(c,u,y);if(r.match(/^#+0+$/))return y+ws(u,r.length-r.indexOf("0"));if(c=r.match(Qp))return i=r0(e,c[1].length).replace(/^([^\.]+)$/,"$1."+ri(c[1])).replace(/\.$/,"."+ri(c[1])).replace(/\.(\d*)$/,function(_,s){return"."+s+Qr("0",ri(c[1]).length-s.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),c=r.match(/^(0*)\.(#*)$/))return y+r0(u,c[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,c[1].length?"0.":".");if(c=r.match(/^#{1,3},##0(\.?)$/))return y+fa(ws(u,0));if(c=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Di(t,r,-e):fa(""+(Math.floor(e)+function(_,s){return s<(""+Math.round((_-Math.floor(_))*Math.pow(10,s))).length?1:0}(e,c[1].length)))+"."+oo(n0(e,c[1].length),c[1].length);if(c=r.match(/^#,#*,#0/))return Di(t,r.replace(/^#,#*,/,""),e);if(c=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=gs(Di(t,r.replace(/[\\-]/g,""),e)),f=0,gs(gs(r.replace(/\\/g,"")).replace(/[0#]/g,function(_){return f<i.length?i.charAt(f++):_==="0"?"0":""}));if(r.match(e0))return"("+(i=Di(t,"##########",e)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var p="";if(c=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return f=Math.min(c[4].length,7),l=gu(u,Math.pow(10,f)-1,!1),i=""+y,(p=Lo("n",c[1],l[1])).charAt(p.length-1)==" "&&(p=p.substr(0,p.length-1)+"0"),i+=p+c[2]+"/"+c[3],(p=vu(l[2],f)).length<c[4].length&&(p=ri(c[4].substr(c[4].length-p.length))+p),i+=p;if(c=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return f=Math.min(Math.max(c[1].length,c[4].length),7),y+((l=gu(u,Math.pow(10,f)-1,!0))[0]||(l[1]?"":"0"))+" "+(l[1]?vl(l[1],f)+c[2]+"/"+c[3]+vu(l[2],f):Qr(" ",2*f+1+c[2].length+c[3].length));if(c=r.match(/^[#0?]+$/))return i=ws(e,0),r.length<=i.length?i:ri(r.substr(0,r.length-i.length))+i;if(c=r.match(/^([#0?]+)\.([#0]+)$/)){i=""+e.toFixed(Math.min(c[2].length,10)).replace(/([^0])0+$/,"$1"),f=i.indexOf(".");var m=r.indexOf(".")-f,b=r.length-i.length-m;return ri(r.substr(0,m)+i+r.substr(r.length-b))}if(c=r.match(/^00,000\.([#0]*0)$/))return f=n0(e,c[1].length),e<0?"-"+Di(t,r,-e):fa(function(_){return _<2147483647&&_>-2147483648?""+(_>=0?0|_:_-1|0):""+Math.floor(_)}(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(_){return"00,"+(_.length<3?oo(0,3-_.length):"")+_})+"."+oo(f,c[1].length);switch(r){case"###,##0.00":return Di(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var v=fa(ws(u,0));return v!=="0"?y+v:"";case"###,###.00":return Di(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return Di(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function i0(t,r){var e,n=t.indexOf("E")-t.indexOf(".")-1;if(t.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+i0(t,-r);var i=t.indexOf(".");i===-1&&(i=t.indexOf("E"));var c=Math.floor(Math.log(r)*Math.LOG10E)%i;if(c<0&&(c+=i),!(e=(r/Math.pow(10,c)).toPrecision(n+1+(i+c)%i)).match(/[Ee]/)){var f=Math.floor(Math.log(r)*Math.LOG10E);e.indexOf(".")===-1?e=e.charAt(0)+"."+e.substr(1)+"E+"+(f-e.length+c):e+="E+"+(f-c),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(l,u,y,p){return u+y+p.substr(0,(i+c)%i)+"."+p.substr(c)+"E"})}else e=r.toExponential(n);return t.match(/E\+00$/)&&e.match(/e[+-]\d$/)&&(e=e.substr(0,e.length-1)+"0"+e.charAt(e.length-1)),t.match(/E\-/)&&e.match(/e\+/)&&(e=e.replace(/e\+/,"e")),e.replace("e","E")}function wo(t,r,e){if(t.charCodeAt(0)===40&&!r.match(t0)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?wo("n",n,e):"("+wo("n",n,-e)+")"}if(r.charCodeAt(r.length-1)===44)return function(_,s,o){for(var h=s.length-1;s.charCodeAt(h-1)===44;)--h;return Lo(_,s.substr(0,h),o/Math.pow(10,3*(s.length-h)))}(t,r,e);if(r.indexOf("%")!==-1)return function(_,s,o){var h=s.replace(Xp,""),a=s.length-h.length;return Lo(_,h,o*Math.pow(10,2*a))+Qr("%",a)}(t,r,e);if(r.indexOf("E")!==-1)return i0(r,e);if(r.charCodeAt(0)===36)return"$"+wo(t,r.substr(r.charAt(1)==" "?2:1),e);var i,c,f,l,u=Math.abs(e),y=e<0?"-":"";if(r.match(/^00+$/))return y+oo(u,r.length);if(r.match(/^[#?]+$/))return i=""+e,e===0&&(i=""),i.length>r.length?i:ri(r.substr(0,r.length-i.length))+i;if(c=r.match(Jp))return function(_,s,o){return o+(s===0?"":""+s)+Qr(" ",_[1].length+2+_[4].length)}(c,u,y);if(r.match(/^#+0+$/))return y+oo(u,r.length-r.indexOf("0"));if(c=r.match(Qp))return i=(i=(""+e).replace(/^([^\.]+)$/,"$1."+ri(c[1])).replace(/\.$/,"."+ri(c[1]))).replace(/\.(\d*)$/,function(_,s){return"."+s+Qr("0",ri(c[1]).length-s.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),c=r.match(/^(0*)\.(#*)$/))return y+(""+u).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,c[1].length?"0.":".");if(c=r.match(/^#{1,3},##0(\.?)$/))return y+fa(""+u);if(c=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+wo(t,r,-e):fa(""+e)+"."+Qr("0",c[1].length);if(c=r.match(/^#,#*,#0/))return wo(t,r.replace(/^#,#*,/,""),e);if(c=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=gs(wo(t,r.replace(/[\\-]/g,""),e)),f=0,gs(gs(r.replace(/\\/g,"")).replace(/[0#]/g,function(_){return f<i.length?i.charAt(f++):_==="0"?"0":""}));if(r.match(e0))return"("+(i=wo(t,"##########",e)).substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var p="";if(c=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return f=Math.min(c[4].length,7),l=gu(u,Math.pow(10,f)-1,!1),i=""+y,(p=Lo("n",c[1],l[1])).charAt(p.length-1)==" "&&(p=p.substr(0,p.length-1)+"0"),i+=p+c[2]+"/"+c[3],(p=vu(l[2],f)).length<c[4].length&&(p=ri(c[4].substr(c[4].length-p.length))+p),i+=p;if(c=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return f=Math.min(Math.max(c[1].length,c[4].length),7),y+((l=gu(u,Math.pow(10,f)-1,!0))[0]||(l[1]?"":"0"))+" "+(l[1]?vl(l[1],f)+c[2]+"/"+c[3]+vu(l[2],f):Qr(" ",2*f+1+c[2].length+c[3].length));if(c=r.match(/^[#0?]+$/))return i=""+e,r.length<=i.length?i:ri(r.substr(0,r.length-i.length))+i;if(c=r.match(/^([#0]+)\.([#0]+)$/)){i=""+e.toFixed(Math.min(c[2].length,10)).replace(/([^0])0+$/,"$1"),f=i.indexOf(".");var m=r.indexOf(".")-f,b=r.length-i.length-m;return ri(r.substr(0,m)+i+r.substr(r.length-b))}if(c=r.match(/^00,000\.([#0]*0)$/))return e<0?"-"+wo(t,r,-e):fa(""+e).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(_){return"00,"+(_.length<3?oo(0,3-_.length):"")+_})+"."+oo(0,c[1].length);switch(r){case"###,###":case"##,###":case"#,###":var v=fa(""+u);return v!=="0"?y+v:"";default:if(r.match(/\.[0#?]*$/))return wo(t,r.slice(0,r.lastIndexOf(".")),e)+ri(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function Lo(t,r,e){return(0|e)===e?wo(t,r,e):Di(t,r,e)}var o0=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function _s(t){for(var r=0,e="",n="";r<t.length;)switch(e=t.charAt(r)){case"G":bu(t,r)&&(r+=6),r++;break;case'"':for(;t.charCodeAt(++r)!==34&&r<t.length;);++r;break;case"\\":case"_":r+=2;break;case"@":++r;break;case"B":case"b":if(t.charAt(r+1)==="1"||t.charAt(r+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(t.substr(r,3).toUpperCase()==="A/P"||t.substr(r,5).toUpperCase()==="AM/PM"||t.substr(r,5).toUpperCase()==="上午/下午")return!0;++r;break;case"[":for(n=e;t.charAt(r++)!=="]"&&r<t.length;)n+=t.charAt(r);if(n.match(o0))return!0;break;case".":case"0":case"#":for(;r<t.length&&("0#?.,E+-%".indexOf(e=t.charAt(++r))>-1||e=="\\"&&t.charAt(r+1)=="-"&&"0#".indexOf(t.charAt(r+2))>-1););break;case"?":for(;t.charAt(++r)===e;);break;case"*":++r,t.charAt(r)!=" "&&t.charAt(r)!="*"||++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<t.length&&"0123456789".indexOf(t.charAt(++r))>-1;);break;default:++r}return!1}var a0=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function s0(t,r){if(r==null)return!1;var e=parseFloat(r[2]);switch(r[1]){case"=":if(t==e)return!0;break;case">":if(t>e)return!0;break;case"<":if(t<e)return!0;break;case"<>":if(t!=e)return!0;break;case">=":if(t>=e)return!0;break;case"<=":if(t<=e)return!0}return!1}function hw(t,r){var e=function(u){for(var y=[],p=!1,m=0,b=0;m<u.length;++m)switch(u.charCodeAt(m)){case 34:p=!p;break;case 95:case 42:case 92:++m;break;case 59:y[y.length]=u.substr(b,m-b),b=m+1}if(y[y.length]=u.substr(b),p===!0)throw new Error("Format |"+u+"| unterminated string ");return y}(t),n=e.length,i=e[n-1].indexOf("@");if(n<4&&i>-1&&--n,e.length>4)throw new Error("cannot find right format for |"+e.join("|")+"|");if(typeof r!="number")return[4,e.length===4||i>-1?e[e.length-1]:"@"];switch(e.length){case 1:e=i>-1?["General","General","General",e[0]]:[e[0],e[0],e[0],"@"];break;case 2:e=i>-1?[e[0],e[0],e[0],e[1]]:[e[0],e[1],e[0],"@"];break;case 3:e=i>-1?[e[0],e[1],e[0],e[2]]:[e[0],e[1],e[2],"@"]}var c=r>0?e[0]:r<0?e[1]:e[2];if(e[0].indexOf("[")===-1&&e[1].indexOf("[")===-1)return[n,c];if(e[0].match(/\[[=<>]/)!=null||e[1].match(/\[[=<>]/)!=null){var f=e[0].match(a0),l=e[1].match(a0);return s0(r,f)?[n,e[0]]:s0(r,l)?[n,e[1]]:[n,e[f!=null&&l!=null?2:1]]}return[n,c]}function Ni(t,r,e){e==null&&(e={});var n="";switch(typeof t){case"string":n=t=="m/d/yy"&&e.dateNF?e.dateNF:t;break;case"number":(n=t==14&&e.dateNF?e.dateNF:(e.table!=null?e.table:Je)[t])==null&&(n=e.table&&e.table[Gp[t]]||Je[Gp[t]]),n==null&&(n=cw[t]||"General")}if(bu(n,0))return ja(r,e);r instanceof Date&&(r=Kp(r,e.date1904));var i=hw(n,r);if(bu(i[1]))return ja(r,e);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return function(c,f,l,u){for(var y,p,m,b=[],v="",_=0,s="",o="t",h="H";_<c.length;)switch(s=c.charAt(_)){case"G":if(!bu(c,_))throw new Error("unrecognized character "+s+" in "+c);b[b.length]={t:"G",v:"General"},_+=7;break;case'"':for(v="";(m=c.charCodeAt(++_))!==34&&_<c.length;)v+=String.fromCharCode(m);b[b.length]={t:"t",v},++_;break;case"\\":var a=c.charAt(++_),d=a==="("||a===")"?a:"t";b[b.length]={t:d,v:a},++_;break;case"_":b[b.length]={t:"t",v:" "},_+=2;break;case"@":b[b.length]={t:"T",v:f},++_;break;case"B":case"b":if(c.charAt(_+1)==="1"||c.charAt(_+1)==="2"){if(y==null&&(y=Ma(f,l,c.charAt(_+1)==="2"))==null)return"";b[b.length]={t:"X",v:c.substr(_,2)},o=s,_+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(f<0||y==null&&(y=Ma(f,l))==null)return"";for(v=s;++_<c.length&&c.charAt(_).toLowerCase()===s;)v+=s;s==="m"&&o.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=h),b[b.length]={t:s,v},o=s;break;case"A":case"a":case"上":var g={t:s,v:s};if(y==null&&(y=Ma(f,l)),c.substr(_,3).toUpperCase()==="A/P"?(y!=null&&(g.v=y.H>=12?"P":"A"),g.t="T",h="h",_+=3):c.substr(_,5).toUpperCase()==="AM/PM"?(y!=null&&(g.v=y.H>=12?"PM":"AM"),g.t="T",_+=5,h="h"):c.substr(_,5).toUpperCase()==="上午/下午"?(y!=null&&(g.v=y.H>=12?"下午":"上午"),g.t="T",_+=5,h="h"):(g.t="t",++_),y==null&&g.t==="T")return"";b[b.length]=g,o=s;break;case"[":for(v=s;c.charAt(_++)!=="]"&&_<c.length;)v+=c.charAt(_);if(v.slice(-1)!=="]")throw'unterminated "[" block: |'+v+"|";if(v.match(o0)){if(y==null&&(y=Ma(f,l))==null)return"";b[b.length]={t:"Z",v:v.toLowerCase()},o=v.charAt(1)}else v.indexOf("$")>-1&&(v=(v.match(/\$([^-\[\]]*)/)||[])[1]||"$",_s(c)||(b[b.length]={t:"t",v}));break;case".":if(y!=null){for(v=s;++_<c.length&&(s=c.charAt(_))==="0";)v+=s;b[b.length]={t:"s",v};break}case"0":case"#":for(v=s;++_<c.length&&"0#?.,E+-%".indexOf(s=c.charAt(_))>-1;)v+=s;b[b.length]={t:"n",v};break;case"?":for(v=s;c.charAt(++_)===s;)v+=s;b[b.length]={t:s,v},o=s;break;case"*":++_,c.charAt(_)!=" "&&c.charAt(_)!="*"||++_;break;case"(":case")":b[b.length]={t:u===1?"t":s,v:s},++_;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(v=s;_<c.length&&"0123456789".indexOf(c.charAt(++_))>-1;)v+=c.charAt(_);b[b.length]={t:"D",v};break;case" ":b[b.length]={t:s,v:s},++_;break;case"$":b[b.length]={t:"t",v:"$"},++_;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+c);b[b.length]={t:"t",v:s},++_}var w,k=0,S=0;for(_=b.length-1,o="t";_>=0;--_)switch(b[_].t){case"h":case"H":b[_].t=h,o="h",k<1&&(k=1);break;case"s":(w=b[_].v.match(/\.0+$/))&&(S=Math.max(S,w[0].length-1)),k<3&&(k=3);case"d":case"y":case"M":case"e":o=b[_].t;break;case"m":o==="s"&&(b[_].t="M",k<2&&(k=2));break;case"X":break;case"Z":k<1&&b[_].v.match(/[Hh]/)&&(k=1),k<2&&b[_].v.match(/[Mm]/)&&(k=2),k<3&&b[_].v.match(/[Ss]/)&&(k=3)}switch(k){case 0:break;case 1:y.u>=.5&&(y.u=0,++y.S),y.S>=60&&(y.S=0,++y.M),y.M>=60&&(y.M=0,++y.H);break;case 2:y.u>=.5&&(y.u=0,++y.S),y.S>=60&&(y.S=0,++y.M)}var A,j="";for(_=0;_<b.length;++_)switch(b[_].t){case"t":case"T":case" ":case"D":break;case"X":b[_].v="",b[_].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":b[_].v=lw(b[_].t.charCodeAt(0),b[_].v,y,S),b[_].t="t";break;case"n":case"?":for(A=_+1;b[A]!=null&&((s=b[A].t)==="?"||s==="D"||(s===" "||s==="t")&&b[A+1]!=null&&(b[A+1].t==="?"||b[A+1].t==="t"&&b[A+1].v==="/")||b[_].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(b[A].v==="/"||b[A].v===" "&&b[A+1]!=null&&b[A+1].t=="?"));)b[_].v+=b[A].v,b[A]={v:"",t:";"},++A;j+=b[_].v,_=A-1;break;case"G":b[_].t="t",b[_].v=ja(f,l)}var D,N,F="";if(j.length>0){j.charCodeAt(0)==40?(D=f<0&&j.charCodeAt(0)===45?-f:f,N=Lo("n",j,D)):(N=Lo("n",j,D=f<0&&u>1?-f:f),D<0&&b[0]&&b[0].t=="t"&&(N=N.substr(1),b[0].v="-"+b[0].v)),A=N.length-1;var T=b.length;for(_=0;_<b.length;++_)if(b[_]!=null&&b[_].t!="t"&&b[_].v.indexOf(".")>-1){T=_;break}var I=b.length;if(T===b.length&&N.indexOf("E")===-1){for(_=b.length-1;_>=0;--_)b[_]!=null&&"n?".indexOf(b[_].t)!==-1&&(A>=b[_].v.length-1?(A-=b[_].v.length,b[_].v=N.substr(A+1,b[_].v.length)):A<0?b[_].v="":(b[_].v=N.substr(0,A+1),A=-1),b[_].t="t",I=_);A>=0&&I<b.length&&(b[I].v=N.substr(0,A+1)+b[I].v)}else if(T!==b.length&&N.indexOf("E")===-1){for(A=N.indexOf(".")-1,_=T;_>=0;--_)if(b[_]!=null&&"n?".indexOf(b[_].t)!==-1){for(p=b[_].v.indexOf(".")>-1&&_===T?b[_].v.indexOf(".")-1:b[_].v.length-1,F=b[_].v.substr(p+1);p>=0;--p)A>=0&&(b[_].v.charAt(p)==="0"||b[_].v.charAt(p)==="#")&&(F=N.charAt(A--)+F);b[_].v=F,b[_].t="t",I=_}for(A>=0&&I<b.length&&(b[I].v=N.substr(0,A+1)+b[I].v),A=N.indexOf(".")+1,_=T;_<b.length;++_)if(b[_]!=null&&("n?(".indexOf(b[_].t)!==-1||_===T)){for(p=b[_].v.indexOf(".")>-1&&_===T?b[_].v.indexOf(".")+1:0,F=b[_].v.substr(0,p);p<b[_].v.length;++p)A<N.length&&(F+=N.charAt(A++));b[_].v=F,b[_].t="t",I=_}}}for(_=0;_<b.length;++_)b[_]!=null&&"n?".indexOf(b[_].t)>-1&&(D=u>1&&f<0&&_>0&&b[_-1].v==="-"?-f:f,b[_].v=Lo(b[_].t,b[_].v,D),b[_].t="t");var x="";for(_=0;_!==b.length;++_)b[_]!=null&&(x+=b[_].v);return x}(i[1],r,e,i[0])}function Bo(t,r){if(typeof r!="number"){r=+r||-1;for(var e=0;e<392;++e)if(Je[e]!=null){if(Je[e]==t){r=e;break}}else r<0&&(r=e);r<0&&(r=391)}return Je[r]=t,r}function wu(t){for(var r=0;r!=392;++r)t[r]!==void 0&&Bo(t[r],r)}function ks(){var t;t||(t={}),t[0]="General",t[1]="0",t[2]="0.00",t[3]="#,##0",t[4]="#,##0.00",t[9]="0%",t[10]="0.00%",t[11]="0.00E+00",t[12]="# ?/?",t[13]="# ??/??",t[14]="m/d/yy",t[15]="d-mmm-yy",t[16]="d-mmm",t[17]="mmm-yy",t[18]="h:mm AM/PM",t[19]="h:mm:ss AM/PM",t[20]="h:mm",t[21]="h:mm:ss",t[22]="m/d/yy h:mm",t[37]="#,##0 ;(#,##0)",t[38]="#,##0 ;[Red](#,##0)",t[39]="#,##0.00;(#,##0.00)",t[40]="#,##0.00;[Red](#,##0.00)",t[45]="mm:ss",t[46]="[h]:mm:ss",t[47]="mmss.0",t[48]="##0.0E+0",t[49]="@",t[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',Je=t}var dw={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},c0=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,pw=function(){var t={};t.version="1.2.0";var r=function(){for(var a=0,d=new Array(256),g=0;g!=256;++g)a=1&(a=1&(a=1&(a=1&(a=1&(a=1&(a=1&(a=1&(a=g)?-306674912^a>>>1:a>>>1)?-306674912^a>>>1:a>>>1)?-306674912^a>>>1:a>>>1)?-306674912^a>>>1:a>>>1)?-306674912^a>>>1:a>>>1)?-306674912^a>>>1:a>>>1)?-306674912^a>>>1:a>>>1)?-306674912^a>>>1:a>>>1,d[g]=a;return typeof Int32Array!="undefined"?new Int32Array(d):d}(),e=function(a){var d=0,g=0,w=0,k=typeof Int32Array!="undefined"?new Int32Array(4096):new Array(4096);for(w=0;w!=256;++w)k[w]=a[w];for(w=0;w!=256;++w)for(g=a[w],d=256+w;d<4096;d+=256)g=k[d]=g>>>8^a[255&g];var S=[];for(w=1;w!=16;++w)S[w-1]=typeof Int32Array!="undefined"?k.subarray(256*w,256*w+256):k.slice(256*w,256*w+256);return S}(r),n=e[0],i=e[1],c=e[2],f=e[3],l=e[4],u=e[5],y=e[6],p=e[7],m=e[8],b=e[9],v=e[10],_=e[11],s=e[12],o=e[13],h=e[14];return t.table=r,t.bstr=function(a,d){for(var g=-1^d,w=0,k=a.length;w<k;)g=g>>>8^r[255&(g^a.charCodeAt(w++))];return~g},t.buf=function(a,d){for(var g=-1^d,w=a.length-15,k=0;k<w;)g=h[a[k++]^255&g]^o[a[k++]^g>>8&255]^s[a[k++]^g>>16&255]^_[a[k++]^g>>>24]^v[a[k++]]^b[a[k++]]^m[a[k++]]^p[a[k++]]^y[a[k++]]^u[a[k++]]^l[a[k++]]^f[a[k++]]^c[a[k++]]^i[a[k++]]^n[a[k++]]^r[a[k++]];for(w+=15;k<w;)g=g>>>8^r[255&(g^a[k++])];return~g},t.str=function(a,d){for(var g=-1^d,w=0,k=a.length,S=0,A=0;w<k;)(S=a.charCodeAt(w++))<128?g=g>>>8^r[255&(g^S)]:S<2048?g=(g=g>>>8^r[255&(g^(192|S>>6&31))])>>>8^r[255&(g^(128|63&S))]:S>=55296&&S<57344?(S=64+(1023&S),A=1023&a.charCodeAt(w++),g=(g=(g=(g=g>>>8^r[255&(g^(240|S>>8&7))])>>>8^r[255&(g^(128|S>>2&63))])>>>8^r[255&(g^(128|A>>6&15|(3&S)<<4))])>>>8^r[255&(g^(128|63&A))]):g=(g=(g=g>>>8^r[255&(g^(224|S>>12&15))])>>>8^r[255&(g^(128|S>>6&63))])>>>8^r[255&(g^(128|63&S))];return~g},t}(),Ve=function(){var t,r={};function e(ct){if(ct.charAt(ct.length-1)=="/")return ct.slice(0,-1).indexOf("/")===-1?ct:e(ct.slice(0,-1));var pt=ct.lastIndexOf("/");return pt===-1?ct:ct.slice(0,pt+1)}function n(ct){if(ct.charAt(ct.length-1)=="/")return n(ct.slice(0,-1));var pt=ct.lastIndexOf("/");return pt===-1?ct:ct.slice(pt+1)}function i(ct,pt){typeof pt=="string"&&(pt=new Date(pt));var _t=pt.getHours();_t=(_t=_t<<6|pt.getMinutes())<<5|pt.getSeconds()>>>1,ct.write_shift(2,_t);var vt=pt.getFullYear()-1980;vt=(vt=vt<<4|pt.getMonth()+1)<<5|pt.getDate(),ct.write_shift(2,vt)}function c(ct){jn(ct,0);for(var pt={},_t=0;ct.l<=ct.length-4;){var vt=ct.read_shift(2),Y=ct.read_shift(2),ht=ct.l+Y,at={};vt===21589&&(1&(_t=ct.read_shift(1))&&(at.mtime=ct.read_shift(4)),Y>5&&(2&_t&&(at.atime=ct.read_shift(4)),4&_t&&(at.ctime=ct.read_shift(4))),at.mtime&&(at.mt=new Date(1e3*at.mtime))),ct.l=ht,pt[vt]=at}return pt}function f(){return t||(t={})}function l(ct,pt){if(ct[0]==80&&ct[1]==75)return St(ct,pt);if((32|ct[0])==109&&(32|ct[1])==105)return function(Zt,ae){if(k(Zt.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var he=ae&&ae.root||"",Wt=(pr&&Buffer.isBuffer(Zt)?Zt.toString("binary"):k(Zt)).split(`\r
|
||
`),pe=0,Se="";for(pe=0;pe<Wt.length;++pe)if(Se=Wt[pe],/^Content-Location:/i.test(Se)&&(Se=Se.slice(Se.indexOf("file")),he||(he=Se.slice(0,Se.lastIndexOf("/")+1)),Se.slice(0,he.length)!=he))for(;he.length>0&&(he=(he=he.slice(0,he.length-1)).slice(0,he.lastIndexOf("/")+1),Se.slice(0,he.length)!=he););var de=(Wt[1]||"").match(/boundary="(.*?)"/);if(!de)throw new Error("MAD cannot find boundary");var ge="--"+(de[1]||""),Fe=[],re=[],Ae={FileIndex:Fe,FullPaths:re};b(Ae);var De,Ue=0;for(pe=0;pe<Wt.length;++pe){var Sr=Wt[pe];Sr!==ge&&Sr!==ge+"--"||(Ue++&&Kt(Ae,Wt.slice(De,pe),he),De=pe)}return Ae}(ct,pt);if(ct.length<512)throw new Error("CFB file size "+ct.length+" < 512");var _t,vt,Y,ht,at,it,q=512,wt=[],Pt=ct.slice(0,512);jn(Pt,0);var V=function(Zt){if(Zt[Zt.l]==80&&Zt[Zt.l+1]==75)return[0,0];Zt.chk(a,"Header Signature: "),Zt.l+=16;var ae=Zt.read_shift(2,"u");return[Zt.read_shift(2,"u"),ae]}(Pt);switch(_t=V[0]){case 3:q=512;break;case 4:q=4096;break;case 0:if(V[1]==0)return St(ct,pt);default:throw new Error("Major Version: Expected 3 or 4 saw "+_t)}q!==512&&jn(Pt=ct.slice(0,q),28);var Rt=ct.slice(0,q);(function(Zt,ae){var he=9;switch(Zt.l+=2,he=Zt.read_shift(2)){case 9:if(ae!=3)throw new Error("Sector Shift: Expected 9 saw "+he);break;case 12:if(ae!=4)throw new Error("Sector Shift: Expected 12 saw "+he);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+he)}Zt.chk("0600","Mini Sector Shift: "),Zt.chk("000000000000","Reserved: ")})(Pt,_t);var mt=Pt.read_shift(4,"i");if(_t===3&&mt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+mt);Pt.l+=4,ht=Pt.read_shift(4,"i"),Pt.l+=4,Pt.chk("00100000","Mini Stream Cutoff Size: "),at=Pt.read_shift(4,"i"),vt=Pt.read_shift(4,"i"),it=Pt.read_shift(4,"i"),Y=Pt.read_shift(4,"i");for(var dt=-1,Tt=0;Tt<109&&!((dt=Pt.read_shift(4,"i"))<0);++Tt)wt[Tt]=dt;var Ot=function(Zt,ae){for(var he=Math.ceil(Zt.length/ae)-1,Wt=[],pe=1;pe<he;++pe)Wt[pe-1]=Zt.slice(pe*ae,(pe+1)*ae);return Wt[he-1]=Zt.slice(he*ae),Wt}(ct,q);y(it,Y,Ot,q,wt);var qt=function(Zt,ae,he,Wt){var pe=Zt.length,Se=[],de=[],ge=[],Fe=[],re=Wt-1,Ae=0,De=0,Ue=0,Sr=0;for(Ae=0;Ae<pe;++Ae)if(ge=[],(Ue=Ae+ae)>=pe&&(Ue-=pe),!de[Ue]){Fe=[];var ir=[];for(De=Ue;De>=0;){ir[De]=!0,de[De]=!0,ge[ge.length]=De,Fe.push(Zt[De]);var $e=he[Math.floor(4*De/Wt)];if(Wt<4+(Sr=4*De&re))throw new Error("FAT boundary crossed: "+De+" 4 "+Wt);if(!Zt[$e]||ir[De=Na(Zt[$e],Sr)])break}Se[Ue]={nodes:ge,data:C0([Fe])}}return Se}(Ot,ht,wt,q);qt[ht].name="!Directory",vt>0&&at!==h&&(qt[at].name="!MiniFAT"),qt[wt[0]].name="!FAT",qt.fat_addrs=wt,qt.ssz=q;var Lt=[],Ht=[],le=[];(function(Zt,ae,he,Wt,pe,Se,de,ge){for(var Fe,re=0,Ae=Wt.length?2:0,De=ae[Zt].data,Ue=0,Sr=0;Ue<De.length;Ue+=128){var ir=De.slice(Ue,Ue+128);jn(ir,64),Sr=ir.read_shift(2),Fe=Rl(ir,0,Sr-Ae),Wt.push(Fe);var $e={name:Fe,type:ir.read_shift(1),color:ir.read_shift(1),L:ir.read_shift(4,"i"),R:ir.read_shift(4,"i"),C:ir.read_shift(4,"i"),clsid:ir.read_shift(16),state:ir.read_shift(4,"i"),start:0,size:0};ir.read_shift(2)+ir.read_shift(2)+ir.read_shift(2)+ir.read_shift(2)!==0&&($e.ct=m(ir,ir.l-8)),ir.read_shift(2)+ir.read_shift(2)+ir.read_shift(2)+ir.read_shift(2)!==0&&($e.mt=m(ir,ir.l-8)),$e.start=ir.read_shift(4,"i"),$e.size=ir.read_shift(4,"i"),$e.size<0&&$e.start<0&&($e.size=$e.type=0,$e.start=h,$e.name=""),$e.type===5?(re=$e.start,pe>0&&re!==h&&(ae[re].name="!StreamData")):$e.size>=4096?($e.storage="fat",ae[$e.start]===void 0&&(ae[$e.start]=p(he,$e.start,ae.fat_addrs,ae.ssz)),ae[$e.start].name=$e.name,$e.content=ae[$e.start].data.slice(0,$e.size)):($e.storage="minifat",$e.size<0?$e.size=0:re!==h&&$e.start!==h&&ae[re]&&($e.content=u($e,ae[re].data,(ae[ge]||{}).data))),$e.content&&jn($e.content,0),Se[Fe]=$e,de.push($e)}})(ht,qt,Ot,Lt,vt,{},Ht,at),function(Zt,ae,he){for(var Wt=0,pe=0,Se=0,de=0,ge=0,Fe=he.length,re=[],Ae=[];Wt<Fe;++Wt)re[Wt]=Ae[Wt]=Wt,ae[Wt]=he[Wt];for(;ge<Ae.length;++ge)pe=Zt[Wt=Ae[ge]].L,Se=Zt[Wt].R,de=Zt[Wt].C,re[Wt]===Wt&&(pe!==-1&&re[pe]!==pe&&(re[Wt]=re[pe]),Se!==-1&&re[Se]!==Se&&(re[Wt]=re[Se])),de!==-1&&(re[de]=Wt),pe!==-1&&Wt!=re[Wt]&&(re[pe]=re[Wt],Ae.lastIndexOf(pe)<ge&&Ae.push(pe)),Se!==-1&&Wt!=re[Wt]&&(re[Se]=re[Wt],Ae.lastIndexOf(Se)<ge&&Ae.push(Se));for(Wt=1;Wt<Fe;++Wt)re[Wt]===Wt&&(Se!==-1&&re[Se]!==Se?re[Wt]=re[Se]:pe!==-1&&re[pe]!==pe&&(re[Wt]=re[pe]));for(Wt=1;Wt<Fe;++Wt)if(Zt[Wt].type!==0){if((ge=Wt)!=re[ge])do ge=re[ge],ae[Wt]=ae[ge]+"/"+ae[Wt];while(ge!==0&&re[ge]!==-1&&ge!=re[ge]);re[Wt]=-1}for(ae[0]+="/",Wt=1;Wt<Fe;++Wt)Zt[Wt].type!==2&&(ae[Wt]+="/")}(Ht,le,Lt),Lt.shift();var Ce={FileIndex:Ht,FullPaths:le};return pt&&pt.raw&&(Ce.raw={header:Rt,sectors:Ot}),Ce}function u(ct,pt,_t){for(var vt=ct.start,Y=ct.size,ht=[],at=vt;_t&&Y>0&&at>=0;)ht.push(pt.slice(at*o,at*o+o)),Y-=o,at=Na(_t,4*at);return ht.length===0?Jt(0):xn(ht).slice(0,ct.size)}function y(ct,pt,_t,vt,Y){var ht=h;if(ct===h){if(pt!==0)throw new Error("DIFAT chain shorter than expected")}else if(ct!==-1){var at=_t[ct],it=(vt>>>2)-1;if(!at)return;for(var q=0;q<it&&(ht=Na(at,4*q))!==h;++q)Y.push(ht);y(Na(at,vt-4),pt-1,_t,vt,Y)}}function p(ct,pt,_t,vt,Y){var ht=[],at=[];Y||(Y=[]);var it=vt-1,q=0,wt=0;for(q=pt;q>=0;){Y[q]=!0,ht[ht.length]=q,at.push(ct[q]);var Pt=_t[Math.floor(4*q/vt)];if(vt<4+(wt=4*q&it))throw new Error("FAT boundary crossed: "+q+" 4 "+vt);if(!ct[Pt])break;q=Na(ct[Pt],wt)}return{nodes:ht,data:C0([at])}}function m(ct,pt){return new Date(1e3*(Ai(ct,pt+4)/1e7*Math.pow(2,32)+Ai(ct,pt)/1e7-11644473600))}function b(ct,pt){var _t=pt||{},vt=_t.root||"Root Entry";if(ct.FullPaths||(ct.FullPaths=[]),ct.FileIndex||(ct.FileIndex=[]),ct.FullPaths.length!==ct.FileIndex.length)throw new Error("inconsistent CFB structure");ct.FullPaths.length===0&&(ct.FullPaths[0]=vt+"/",ct.FileIndex[0]={name:vt,type:5}),_t.CLSID&&(ct.FileIndex[0].clsid=_t.CLSID),function(Y){var ht="Sh33tJ5";if(!Ve.find(Y,"/"+ht)){var at=Jt(4);at[0]=55,at[1]=at[3]=50,at[2]=54,Y.FileIndex.push({name:ht,type:2,content:at,size:4,L:69,R:69,C:69}),Y.FullPaths.push(Y.FullPaths[0]+ht),v(Y)}}(ct)}function v(ct,pt){b(ct);for(var _t=!1,vt=!1,Y=ct.FullPaths.length-1;Y>=0;--Y){var ht=ct.FileIndex[Y];switch(ht.type){case 0:vt?_t=!0:(ct.FileIndex.pop(),ct.FullPaths.pop());break;case 1:case 2:case 5:vt=!0,isNaN(ht.R*ht.L*ht.C)&&(_t=!0),ht.R>-1&&ht.L>-1&&ht.R==ht.L&&(_t=!0);break;default:_t=!0}}if(_t||pt){var at=new Date(1987,1,19),it=0,q=Object.create?Object.create(null):{},wt=[];for(Y=0;Y<ct.FullPaths.length;++Y)q[ct.FullPaths[Y]]=!0,ct.FileIndex[Y].type!==0&&wt.push([ct.FullPaths[Y],ct.FileIndex[Y]]);for(Y=0;Y<wt.length;++Y){var Pt=e(wt[Y][0]);(vt=q[Pt])||(wt.push([Pt,{name:n(Pt).replace("/",""),type:1,clsid:g,ct:at,mt:at,content:null}]),q[Pt]=!0)}for(wt.sort(function(mt,dt){return function(Tt,Ot){for(var qt=Tt.split("/"),Lt=Ot.split("/"),Ht=0,le=0,Ce=Math.min(qt.length,Lt.length);Ht<Ce;++Ht){if(le=qt[Ht].length-Lt[Ht].length)return le;if(qt[Ht]!=Lt[Ht])return qt[Ht]<Lt[Ht]?-1:1}return qt.length-Lt.length}(mt[0],dt[0])}),ct.FullPaths=[],ct.FileIndex=[],Y=0;Y<wt.length;++Y)ct.FullPaths[Y]=wt[Y][0],ct.FileIndex[Y]=wt[Y][1];for(Y=0;Y<wt.length;++Y){var V=ct.FileIndex[Y],Rt=ct.FullPaths[Y];if(V.name=n(Rt).replace("/",""),V.L=V.R=V.C=-(V.color=1),V.size=V.content?V.content.length:0,V.start=0,V.clsid=V.clsid||g,Y===0)V.C=wt.length>1?1:-1,V.size=0,V.type=5;else if(Rt.slice(-1)=="/"){for(it=Y+1;it<wt.length&&e(ct.FullPaths[it])!=Rt;++it);for(V.C=it>=wt.length?-1:it,it=Y+1;it<wt.length&&e(ct.FullPaths[it])!=e(Rt);++it);V.R=it>=wt.length?-1:it,V.type=1}else e(ct.FullPaths[Y+1]||"")==e(Rt)&&(V.R=Y+1),V.type=2}}}function _(ct,pt){var _t=pt||{};if(_t.fileType=="mad")return function(mt,dt){for(var Tt=dt||{},Ot=Tt.boundary||"SheetJS",qt=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(Ot="------="+Ot).slice(2)+'"',"","",""],Lt=mt.FullPaths[0],Ht=Lt,le=mt.FileIndex[0],Ce=1;Ce<mt.FullPaths.length;++Ce)if(Ht=mt.FullPaths[Ce].slice(Lt.length),(le=mt.FileIndex[Ce]).size&&le.content&&Ht!="Sh33tJ5"){Ht=Ht.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(ge){return"_x"+ge.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(ge){return"_u"+ge.charCodeAt(0).toString(16)+"_"});for(var Zt=le.content,ae=pr&&Buffer.isBuffer(Zt)?Zt.toString("binary"):k(Zt),he=0,Wt=Math.min(1024,ae.length),pe=0,Se=0;Se<=Wt;++Se)(pe=ae.charCodeAt(Se))>=32&&pe<128&&++he;var de=he>=4*Wt/5;qt.push(Ot),qt.push("Content-Location: "+(Tt.root||"file:///C:/SheetJS/")+Ht),qt.push("Content-Transfer-Encoding: "+(de?"quoted-printable":"base64")),qt.push("Content-Type: "+Xt(le,Ht)),qt.push(""),qt.push(de?fe(ae):me(ae))}return qt.push(Ot+`--\r
|
||
`),qt.join(`\r
|
||
`)}(ct,_t);if(v(ct),_t.fileType==="zip")return function(mt,dt){var Tt=dt||{},Ot=[],qt=[],Lt=Jt(1),Ht=Tt.compression?8:0,le=0,Ce=0,Zt=0,ae=0,he=0,Wt=mt.FullPaths[0],pe=Wt,Se=mt.FileIndex[0],de=[],ge=0;for(Ce=1;Ce<mt.FullPaths.length;++Ce)if(pe=mt.FullPaths[Ce].slice(Wt.length),(Se=mt.FileIndex[Ce]).size&&Se.content&&pe!="Sh33tJ5"){var Fe=ae,re=Jt(pe.length);for(Zt=0;Zt<pe.length;++Zt)re.write_shift(1,127&pe.charCodeAt(Zt));re=re.slice(0,re.l),de[he]=pw.buf(Se.content,0);var Ae=Se.content;Ht==8&&(Ae=S(Ae)),(Lt=Jt(30)).write_shift(4,67324752),Lt.write_shift(2,20),Lt.write_shift(2,le),Lt.write_shift(2,Ht),Se.mt?i(Lt,Se.mt):Lt.write_shift(4,0),Lt.write_shift(-4,de[he]),Lt.write_shift(4,Ae.length),Lt.write_shift(4,Se.content.length),Lt.write_shift(2,re.length),Lt.write_shift(2,0),ae+=Lt.length,Ot.push(Lt),ae+=re.length,Ot.push(re),ae+=Ae.length,Ot.push(Ae),(Lt=Jt(46)).write_shift(4,33639248),Lt.write_shift(2,0),Lt.write_shift(2,20),Lt.write_shift(2,le),Lt.write_shift(2,Ht),Lt.write_shift(4,0),Lt.write_shift(-4,de[he]),Lt.write_shift(4,Ae.length),Lt.write_shift(4,Se.content.length),Lt.write_shift(2,re.length),Lt.write_shift(2,0),Lt.write_shift(2,0),Lt.write_shift(2,0),Lt.write_shift(2,0),Lt.write_shift(4,0),Lt.write_shift(4,Fe),ge+=Lt.l,qt.push(Lt),ge+=re.length,qt.push(re),++he}return Lt=Jt(22),Lt.write_shift(4,101010256),Lt.write_shift(2,0),Lt.write_shift(2,0),Lt.write_shift(2,he),Lt.write_shift(2,he),Lt.write_shift(4,ge),Lt.write_shift(4,ae),Lt.write_shift(2,0),xn([xn(Ot),xn(qt),Lt])}(ct,_t);var vt=function(mt){for(var dt=0,Tt=0,Ot=0;Ot<mt.FileIndex.length;++Ot){var qt=mt.FileIndex[Ot];if(qt.content){var Lt=qt.content.length;Lt>0&&(Lt<4096?dt+=Lt+63>>6:Tt+=Lt+511>>9)}}for(var Ht=mt.FullPaths.length+3>>2,le=dt+127>>7,Ce=(dt+7>>3)+Tt+Ht+le,Zt=Ce+127>>7,ae=Zt<=109?0:Math.ceil((Zt-109)/127);Ce+Zt+ae+127>>7>Zt;)ae=++Zt<=109?0:Math.ceil((Zt-109)/127);var he=[1,ae,Zt,le,Ht,Tt,dt,0];return mt.FileIndex[0].size=dt<<6,he[7]=(mt.FileIndex[0].start=he[0]+he[1]+he[2]+he[3]+he[4]+he[5])+(he[6]+7>>3),he}(ct),Y=Jt(vt[7]<<9),ht=0,at=0;for(ht=0;ht<8;++ht)Y.write_shift(1,d[ht]);for(ht=0;ht<8;++ht)Y.write_shift(2,0);for(Y.write_shift(2,62),Y.write_shift(2,3),Y.write_shift(2,65534),Y.write_shift(2,9),Y.write_shift(2,6),ht=0;ht<3;++ht)Y.write_shift(2,0);for(Y.write_shift(4,0),Y.write_shift(4,vt[2]),Y.write_shift(4,vt[0]+vt[1]+vt[2]+vt[3]-1),Y.write_shift(4,0),Y.write_shift(4,4096),Y.write_shift(4,vt[3]?vt[0]+vt[1]+vt[2]-1:h),Y.write_shift(4,vt[3]),Y.write_shift(-4,vt[1]?vt[0]-1:h),Y.write_shift(4,vt[1]),ht=0;ht<109;++ht)Y.write_shift(-4,ht<vt[2]?vt[1]+ht:-1);if(vt[1])for(at=0;at<vt[1];++at){for(;ht<236+127*at;++ht)Y.write_shift(-4,ht<vt[2]?vt[1]+ht:-1);Y.write_shift(-4,at===vt[1]-1?h:at+1)}var it=function(mt){for(at+=mt;ht<at-1;++ht)Y.write_shift(-4,ht+1);mt&&(++ht,Y.write_shift(-4,h))};for(at=ht=0,at+=vt[1];ht<at;++ht)Y.write_shift(-4,w.DIFSECT);for(at+=vt[2];ht<at;++ht)Y.write_shift(-4,w.FATSECT);it(vt[3]),it(vt[4]);for(var q=0,wt=0,Pt=ct.FileIndex[0];q<ct.FileIndex.length;++q)(Pt=ct.FileIndex[q]).content&&((wt=Pt.content.length)<4096||(Pt.start=at,it(wt+511>>9)));for(it(vt[6]+7>>3);511&Y.l;)Y.write_shift(-4,w.ENDOFCHAIN);for(at=ht=0,q=0;q<ct.FileIndex.length;++q)(Pt=ct.FileIndex[q]).content&&(!(wt=Pt.content.length)||wt>=4096||(Pt.start=at,it(wt+63>>6)));for(;511&Y.l;)Y.write_shift(-4,w.ENDOFCHAIN);for(ht=0;ht<vt[4]<<2;++ht){var V=ct.FullPaths[ht];if(V&&V.length!==0){Pt=ct.FileIndex[ht],ht===0&&(Pt.start=Pt.size?Pt.start-1:h);var Rt=ht===0&&_t.root||Pt.name;if(wt=2*(Rt.length+1),Y.write_shift(64,Rt,"utf16le"),Y.write_shift(2,wt),Y.write_shift(1,Pt.type),Y.write_shift(1,Pt.color),Y.write_shift(-4,Pt.L),Y.write_shift(-4,Pt.R),Y.write_shift(-4,Pt.C),Pt.clsid)Y.write_shift(16,Pt.clsid,"hex");else for(q=0;q<4;++q)Y.write_shift(4,0);Y.write_shift(4,Pt.state||0),Y.write_shift(4,0),Y.write_shift(4,0),Y.write_shift(4,0),Y.write_shift(4,0),Y.write_shift(4,Pt.start),Y.write_shift(4,Pt.size),Y.write_shift(4,0)}else{for(q=0;q<17;++q)Y.write_shift(4,0);for(q=0;q<3;++q)Y.write_shift(4,-1);for(q=0;q<12;++q)Y.write_shift(4,0)}}for(ht=1;ht<ct.FileIndex.length;++ht)if((Pt=ct.FileIndex[ht]).size>=4096)if(Y.l=Pt.start+1<<9,pr&&Buffer.isBuffer(Pt.content))Pt.content.copy(Y,Y.l,0,Pt.size),Y.l+=Pt.size+511&-512;else{for(q=0;q<Pt.size;++q)Y.write_shift(1,Pt.content[q]);for(;511&q;++q)Y.write_shift(1,0)}for(ht=1;ht<ct.FileIndex.length;++ht)if((Pt=ct.FileIndex[ht]).size>0&&Pt.size<4096)if(pr&&Buffer.isBuffer(Pt.content))Pt.content.copy(Y,Y.l,0,Pt.size),Y.l+=Pt.size+63&-64;else{for(q=0;q<Pt.size;++q)Y.write_shift(1,Pt.content[q]);for(;63&q;++q)Y.write_shift(1,0)}if(pr)Y.l=Y.length;else for(;Y.l<Y.length;)Y.write_shift(1,0);return Y}r.version="1.2.1";var s,o=64,h=-2,a="d0cf11e0a1b11ae1",d=[208,207,17,224,161,177,26,225],g="00000000000000000000000000000000",w={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:h,FREESECT:-1,HEADER_SIGNATURE:a,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:g,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function k(ct){for(var pt=new Array(ct.length),_t=0;_t<ct.length;++_t)pt[_t]=String.fromCharCode(ct[_t]);return pt.join("")}function S(ct){return s?s.deflateRawSync(ct):nt(ct)}for(var A=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],D=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],N,F,T=typeof Uint8Array!="undefined",I=T?new Uint8Array(256):[],x=0;x<256;++x)I[x]=(F=void 0,255&((F=139536&((N=x)<<1|N<<11)|558144&(N<<5|N<<15))>>16|F>>8|F));function O(ct,pt){var _t=I[255&ct];return pt<=8?_t>>>8-pt:(_t=_t<<8|I[ct>>8&255],pt<=16?_t>>>16-pt:(_t=_t<<8|I[ct>>16&255])>>>24-pt)}function R(ct,pt){var _t=7&pt,vt=pt>>>3;return(ct[vt]|(_t<=6?0:ct[vt+1]<<8))>>>_t&3}function C(ct,pt){var _t=7&pt,vt=pt>>>3;return(ct[vt]|(_t<=5?0:ct[vt+1]<<8))>>>_t&7}function P(ct,pt){var _t=7&pt,vt=pt>>>3;return(ct[vt]|(_t<=3?0:ct[vt+1]<<8))>>>_t&31}function L(ct,pt){var _t=7&pt,vt=pt>>>3;return(ct[vt]|(_t<=1?0:ct[vt+1]<<8))>>>_t&127}function H(ct,pt,_t){var vt=7&pt,Y=pt>>>3,ht=(1<<_t)-1,at=ct[Y]>>>vt;return _t<8-vt?at&ht:(at|=ct[Y+1]<<8-vt,_t<16-vt?at&ht:(at|=ct[Y+2]<<16-vt,_t<24-vt?at&ht:(at|=ct[Y+3]<<24-vt)&ht))}function U(ct,pt,_t){var vt=7&pt,Y=pt>>>3;return vt<=5?ct[Y]|=(7&_t)<<vt:(ct[Y]|=_t<<vt&255,ct[Y+1]=(7&_t)>>8-vt),pt+3}function B(ct,pt,_t){return _t=(1&_t)<<(7&pt),ct[pt>>>3]|=_t,pt+1}function W(ct,pt,_t){var vt=pt>>>3;return _t<<=7&pt,ct[vt]|=255&_t,_t>>>=8,ct[vt+1]=_t,pt+8}function X(ct,pt,_t){var vt=pt>>>3;return _t<<=7&pt,ct[vt]|=255&_t,_t>>>=8,ct[vt+1]=255&_t,ct[vt+2]=_t>>>8,pt+16}function et(ct,pt){var _t=ct.length,vt=2*_t>pt?2*_t:pt+5,Y=0;if(_t>=pt)return ct;if(pr){var ht=Vp(vt);if(ct.copy)ct.copy(ht);else for(;Y<ct.length;++Y)ht[Y]=ct[Y];return ht}if(T){var at=new Uint8Array(vt);if(at.set)at.set(ct);else for(;Y<_t;++Y)at[Y]=ct[Y];return at}return ct.length=vt,ct}function ft(ct){for(var pt=new Array(ct),_t=0;_t<ct;++_t)pt[_t]=0;return pt}function gt(ct,pt,_t){var vt=1,Y=0,ht=0,at=0,it=0,q=ct.length,wt=T?new Uint16Array(32):ft(32);for(ht=0;ht<32;++ht)wt[ht]=0;for(ht=q;ht<_t;++ht)ct[ht]=0;q=ct.length;var Pt=T?new Uint16Array(q):ft(q);for(ht=0;ht<q;++ht)wt[Y=ct[ht]]++,vt<Y&&(vt=Y),Pt[ht]=0;for(wt[0]=0,ht=1;ht<=vt;++ht)wt[ht+16]=it=it+wt[ht-1]<<1;for(ht=0;ht<q;++ht)(it=ct[ht])!=0&&(Pt[ht]=wt[it+16]++);var V=0;for(ht=0;ht<q;++ht)if((V=ct[ht])!=0)for(it=O(Pt[ht],vt)>>vt-V,at=(1<<vt+4-V)-1;at>=0;--at)pt[it|at<<V]=15&V|ht<<4;return vt}var bt=T?new Uint16Array(512):ft(512),rt=T?new Uint16Array(32):ft(32);if(!T){for(var Q=0;Q<512;++Q)bt[Q]=0;for(Q=0;Q<32;++Q)rt[Q]=0}(function(){for(var ct=[],pt=0;pt<32;pt++)ct.push(5);gt(ct,rt,32);var _t=[];for(pt=0;pt<=143;pt++)_t.push(8);for(;pt<=255;pt++)_t.push(9);for(;pt<=279;pt++)_t.push(7);for(;pt<=287;pt++)_t.push(8);gt(_t,bt,288)})();var K=function(){for(var ct=T?new Uint8Array(32768):[],pt=0,_t=0;pt<D.length-1;++pt)for(;_t<D[pt+1];++_t)ct[_t]=pt;for(;_t<32768;++_t)ct[_t]=29;var vt=T?new Uint8Array(259):[];for(pt=0,_t=0;pt<j.length-1;++pt)for(;_t<j[pt+1];++_t)vt[_t]=pt;return function(Y,ht){return Y.length<8?function(at,it){for(var q=0;q<at.length;){var wt=Math.min(65535,at.length-q),Pt=q+wt==at.length;for(it.write_shift(1,+Pt),it.write_shift(2,wt),it.write_shift(2,65535&~wt);wt-- >0;)it[it.l++]=at[q++]}return it.l}(Y,ht):function(at,it){for(var q=0,wt=0,Pt=T?new Uint16Array(32768):[];wt<at.length;){var V=Math.min(65535,at.length-wt);if(V<10){for(7&(q=U(it,q,+(wt+V==at.length)))&&(q+=8-(7&q)),it.l=q/8|0,it.write_shift(2,V),it.write_shift(2,65535&~V);V-- >0;)it[it.l++]=at[wt++];q=8*it.l}else{q=U(it,q,+(wt+V==at.length)+2);for(var Rt=0;V-- >0;){var mt=at[wt],dt=-1,Tt=0;if((dt=Pt[Rt=32767&(Rt<<5^mt)])&&((dt|=-32768&wt)>wt&&(dt-=32768),dt<wt))for(;at[dt+Tt]==at[wt+Tt]&&Tt<250;)++Tt;if(Tt>2){(mt=vt[Tt])<=22?q=W(it,q,I[mt+1]>>1)-1:(W(it,q,3),W(it,q+=5,I[mt-23]>>5),q+=3);var Ot=mt<8?0:mt-4>>2;Ot>0&&(X(it,q,Tt-j[mt]),q+=Ot),mt=ct[wt-dt],q=W(it,q,I[mt]>>3),q-=3;var qt=mt<4?0:mt-2>>1;qt>0&&(X(it,q,wt-dt-D[mt]),q+=qt);for(var Lt=0;Lt<Tt;++Lt)Pt[Rt]=32767&wt,Rt=32767&(Rt<<5^at[wt]),++wt;V-=Tt-1}else mt<=143?mt+=48:q=B(it,q,1),q=W(it,q,I[mt]),Pt[Rt]=32767&wt,++wt}q=W(it,q,0)-1}}return it.l=(q+7)/8|0,it.l}(Y,ht)}}();function nt(ct){var pt=Jt(50+Math.floor(1.1*ct.length)),_t=K(ct,pt);return pt.slice(0,_t)}var At=T?new Uint16Array(32768):ft(32768),ot=T?new Uint16Array(32768):ft(32768),ut=T?new Uint16Array(128):ft(128),Mt=1,Bt=1;function G(ct,pt){var _t=P(ct,pt)+257,vt=P(ct,pt+=5)+1,Y=function(Ht,le){var Ce=7&le,Zt=le>>>3;return(Ht[Zt]|(Ce<=4?0:Ht[Zt+1]<<8))>>>Ce&15}(ct,pt+=5)+4;pt+=4;for(var ht=0,at=T?new Uint8Array(19):ft(19),it=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],q=1,wt=T?new Uint8Array(8):ft(8),Pt=T?new Uint8Array(8):ft(8),V=at.length,Rt=0;Rt<Y;++Rt)at[A[Rt]]=ht=C(ct,pt),q<ht&&(q=ht),wt[ht]++,pt+=3;var mt=0;for(wt[0]=0,Rt=1;Rt<=q;++Rt)Pt[Rt]=mt=mt+wt[Rt-1]<<1;for(Rt=0;Rt<V;++Rt)(mt=at[Rt])!=0&&(it[Rt]=Pt[mt]++);var dt=0;for(Rt=0;Rt<V;++Rt)if((dt=at[Rt])!=0){mt=I[it[Rt]]>>8-dt;for(var Tt=(1<<7-dt)-1;Tt>=0;--Tt)ut[mt|Tt<<dt]=7&dt|Rt<<3}var Ot=[];for(q=1;Ot.length<_t+vt;)switch(pt+=7&(mt=ut[L(ct,pt)]),mt>>>=3){case 16:for(ht=3+R(ct,pt),pt+=2,mt=Ot[Ot.length-1];ht-- >0;)Ot.push(mt);break;case 17:for(ht=3+C(ct,pt),pt+=3;ht-- >0;)Ot.push(0);break;case 18:for(ht=11+L(ct,pt),pt+=7;ht-- >0;)Ot.push(0);break;default:Ot.push(mt),q<mt&&(q=mt)}var qt=Ot.slice(0,_t),Lt=Ot.slice(_t);for(Rt=_t;Rt<286;++Rt)qt[Rt]=0;for(Rt=vt;Rt<30;++Rt)Lt[Rt]=0;return Mt=gt(qt,At,286),Bt=gt(Lt,ot,30),pt}function Z(ct,pt){var _t=function(vt,Y){if(vt[0]==3&&!(3&vt[1]))return[ca(Y),2];for(var ht=0,at=0,it=Vp(Y||262144),q=0,wt=it.length>>>0,Pt=0,V=0;!(1&at);)if(at=C(vt,ht),ht+=3,at>>>1!=0)for(at>>1==1?(Pt=9,V=5):(ht=G(vt,ht),Pt=Mt,V=Bt);;){!Y&&wt<q+32767&&(wt=(it=et(it,q+32767)).length);var Rt=H(vt,ht,Pt),mt=at>>>1==1?bt[Rt]:At[Rt];if(ht+=15&mt,((mt>>>=4)>>>8&255)==0)it[q++]=mt;else{if(mt==256)break;var dt=(mt-=257)<8?0:mt-4>>2;dt>5&&(dt=0);var Tt=q+j[mt];dt>0&&(Tt+=H(vt,ht,dt),ht+=dt),Rt=H(vt,ht,V),ht+=15&(mt=at>>>1==1?rt[Rt]:ot[Rt]);var Ot=(mt>>>=4)<4?0:mt-2>>1,qt=D[mt];for(Ot>0&&(qt+=H(vt,ht,Ot),ht+=Ot),!Y&&wt<Tt&&(wt=(it=et(it,Tt+100)).length);q<Tt;)it[q]=it[q-qt],++q}}else{7&ht&&(ht+=8-(7&ht));var Lt=vt[ht>>>3]|vt[1+(ht>>>3)]<<8;if(ht+=32,Lt>0)for(!Y&&wt<q+Lt&&(wt=(it=et(it,q+Lt)).length);Lt-- >0;)it[q++]=vt[ht>>>3],ht+=8}return Y?[it,ht+7>>>3]:[it.slice(0,q),ht+7>>>3]}(ct.slice(ct.l||0),pt);return ct.l+=_t[1],_t[0]}function J(ct,pt){if(!ct)throw new Error(pt);typeof console!="undefined"&&console.error(pt)}function St(ct,pt){var _t=ct;jn(_t,0);var vt={FileIndex:[],FullPaths:[]};b(vt,{root:pt.root});for(var Y=_t.length-4;(_t[Y]!=80||_t[Y+1]!=75||_t[Y+2]!=5||_t[Y+3]!=6)&&Y>=0;)--Y;_t.l=Y+4,_t.l+=4;var ht=_t.read_shift(2);_t.l+=6;var at=_t.read_shift(4);for(_t.l=at,Y=0;Y<ht;++Y){_t.l+=20;var it=_t.read_shift(4),q=_t.read_shift(4),wt=_t.read_shift(2),Pt=_t.read_shift(2),V=_t.read_shift(2);_t.l+=8;var Rt=_t.read_shift(4),mt=c(_t.slice(_t.l+wt,_t.l+wt+Pt));_t.l+=wt+Pt+V;var dt=_t.l;_t.l=Rt+4,It(_t,it,q,vt,mt),_t.l=dt}return vt}function It(ct,pt,_t,vt,Y){ct.l+=2;var ht=ct.read_shift(2),at=ct.read_shift(2),it=function(qt){var Lt=65535&qt.read_shift(2),Ht=65535&qt.read_shift(2),le=new Date,Ce=31&Ht,Zt=15&(Ht>>>=5);Ht>>>=4,le.setMilliseconds(0),le.setFullYear(Ht+1980),le.setMonth(Zt-1),le.setDate(Ce);var ae=31&Lt,he=63&(Lt>>>=5);return Lt>>>=6,le.setHours(Lt),le.setMinutes(he),le.setSeconds(ae<<1),le}(ct);if(8257&ht)throw new Error("Unsupported ZIP encryption");ct.read_shift(4);for(var q=ct.read_shift(4),wt=ct.read_shift(4),Pt=ct.read_shift(2),V=ct.read_shift(2),Rt="",mt=0;mt<Pt;++mt)Rt+=String.fromCharCode(ct[ct.l++]);if(V){var dt=c(ct.slice(ct.l,ct.l+V));(dt[21589]||{}).mt&&(it=dt[21589].mt),((Y||{})[21589]||{}).mt&&(it=Y[21589].mt)}ct.l+=V;var Tt=ct.slice(ct.l,ct.l+q);switch(at){case 8:Tt=function(qt,Lt){if(!s)return Z(qt,Lt);var Ht=new s.InflateRaw,le=Ht._processChunk(qt.slice(qt.l),Ht._finishFlushFlag);return qt.l+=Ht.bytesRead,le}(ct,wt);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+at)}var Ot=!1;8&ht&&(ct.read_shift(4)==134695760&&(ct.read_shift(4),Ot=!0),q=ct.read_shift(4),wt=ct.read_shift(4)),q!=pt&&J(Ot,"Bad compressed size: "+pt+" != "+q),wt!=_t&&J(Ot,"Bad uncompressed size: "+_t+" != "+wt),ie(vt,Rt,Tt,{unsafe:!0,mt:it})}var Ft={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Xt(ct,pt){if(ct.ctype)return ct.ctype;var _t=ct.name||"",vt=_t.match(/\.([^\.]+)$/);return vt&&Ft[vt[1]]||pt&&(vt=(_t=pt).match(/[\.\\]([^\.\\])+$/))&&Ft[vt[1]]?Ft[vt[1]]:"application/octet-stream"}function me(ct){for(var pt=rc(ct),_t=[],vt=0;vt<pt.length;vt+=76)_t.push(pt.slice(vt,vt+76));return _t.join(`\r
|
||
`)+`\r
|
||
`}function fe(ct){var pt=ct.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(wt){var Pt=wt.charCodeAt(0).toString(16).toUpperCase();return"="+(Pt.length==1?"0"+Pt:Pt)});(pt=pt.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)==`
|
||
`&&(pt="=0D"+pt.slice(1));for(var _t=[],vt=(pt=pt.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,`
|
||
=0A`).replace(/([^\r\n])\n/gm,"$1=0A")).split(`\r
|
||
`),Y=0;Y<vt.length;++Y){var ht=vt[Y];if(ht.length!=0)for(var at=0;at<ht.length;){var it=76,q=ht.slice(at,at+it);q.charAt(it-1)=="="?it--:q.charAt(it-2)=="="?it-=2:q.charAt(it-3)=="="&&(it-=3),q=ht.slice(at,at+it),(at+=it)<ht.length&&(q+="="),_t.push(q)}else _t.push("")}return _t.join(`\r
|
||
`)}function Kt(ct,pt,_t){for(var vt,Y="",ht="",at="",it=0;it<10;++it){var q=pt[it];if(!q||q.match(/^\s*$/))break;var wt=q.match(/^(.*?):\s*([^\s].*)$/);if(wt)switch(wt[1].toLowerCase()){case"content-location":Y=wt[2].trim();break;case"content-type":at=wt[2].trim();break;case"content-transfer-encoding":ht=wt[2].trim()}}switch(++it,ht.toLowerCase()){case"base64":vt=Oi(Ti(pt.slice(it).join("")));break;case"quoted-printable":vt=function(V){for(var Rt=[],mt=0;mt<V.length;++mt){for(var dt=V[mt];mt<=V.length&&dt.charAt(dt.length-1)=="=";)dt=dt.slice(0,dt.length-1)+V[++mt];Rt.push(dt)}for(var Tt=0;Tt<Rt.length;++Tt)Rt[Tt]=Rt[Tt].replace(/[=][0-9A-Fa-f]{2}/g,function(Ot){return String.fromCharCode(parseInt(Ot.slice(1),16))});return Oi(Rt.join(`\r
|
||
`))}(pt.slice(it));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+ht)}var Pt=ie(ct,Y.slice(_t.length),vt,{unsafe:!0});at&&(Pt.ctype=at)}function ie(ct,pt,_t,vt){var Y=vt&&vt.unsafe;Y||b(ct);var ht=!Y&&Ve.find(ct,pt);if(!ht){var at=ct.FullPaths[0];pt.slice(0,at.length)==at?at=pt:(at.slice(-1)!="/"&&(at+="/"),at=(at+pt).replace("//","/")),ht={name:n(pt),type:2},ct.FileIndex.push(ht),ct.FullPaths.push(at),Y||Ve.utils.cfb_gc(ct)}return ht.content=_t,ht.size=_t?_t.length:0,vt&&(vt.CLSID&&(ht.clsid=vt.CLSID),vt.mt&&(ht.mt=vt.mt),vt.ct&&(ht.ct=vt.ct)),ht}return r.find=function(ct,pt){var _t=ct.FullPaths.map(function(q){return q.toUpperCase()}),vt=_t.map(function(q){var wt=q.split("/");return wt[wt.length-(q.slice(-1)=="/"?2:1)]}),Y=!1;pt.charCodeAt(0)===47?(Y=!0,pt=_t[0].slice(0,-1)+pt):Y=pt.indexOf("/")!==-1;var ht=pt.toUpperCase(),at=Y===!0?_t.indexOf(ht):vt.indexOf(ht);if(at!==-1)return ct.FileIndex[at];var it=!ht.match(nc);for(ht=ht.replace(ei,""),it&&(ht=ht.replace(nc,"!")),at=0;at<_t.length;++at)if((it?_t[at].replace(nc,"!"):_t[at]).replace(ei,"")==ht||(it?vt[at].replace(nc,"!"):vt[at]).replace(ei,"")==ht)return ct.FileIndex[at];return null},r.read=function(ct,pt){var _t=pt&&pt.type;switch(_t||pr&&Buffer.isBuffer(ct)&&(_t="buffer"),_t||"base64"){case"file":return function(vt,Y){return f(),l(t.readFileSync(vt),Y)}(ct,pt);case"base64":return l(Oi(Ti(ct)),pt);case"binary":return l(Oi(ct),pt)}return l(ct,pt)},r.parse=l,r.write=function(ct,pt){var _t=_(ct,pt);switch(pt&&pt.type||"buffer"){case"file":return f(),t.writeFileSync(pt.filename,_t),_t;case"binary":return typeof _t=="string"?_t:k(_t);case"base64":return rc(typeof _t=="string"?_t:k(_t));case"buffer":if(pr)return Buffer.isBuffer(_t)?_t:Fo(_t);case"array":return typeof _t=="string"?Oi(_t):_t}return _t},r.writeFile=function(ct,pt,_t){f();var vt=_(ct,_t);t.writeFileSync(pt,vt)},r.utils={cfb_new:function(ct){var pt={};return b(pt,ct),pt},cfb_add:ie,cfb_del:function(ct,pt){b(ct);var _t=Ve.find(ct,pt);if(_t){for(var vt=0;vt<ct.FileIndex.length;++vt)if(ct.FileIndex[vt]==_t)return ct.FileIndex.splice(vt,1),ct.FullPaths.splice(vt,1),!0}return!1},cfb_mov:function(ct,pt,_t){b(ct);var vt=Ve.find(ct,pt);if(vt){for(var Y=0;Y<ct.FileIndex.length;++Y)if(ct.FileIndex[Y]==vt)return ct.FileIndex[Y].name=n(_t),ct.FullPaths[Y]=_t,!0}return!1},cfb_gc:function(ct){v(ct,!0)},ReadShift:hc,CheckField:$0,prep_blob:jn,bconcat:xn,use_zlib:function(ct){try{var pt=new ct.InflateRaw;if(pt._processChunk(new Uint8Array([3,0]),pt._finishFlushFlag),!pt.bytesRead)throw new Error("zlib does not expose bytesRead");s=ct}catch(_t){console.error("cannot use native zlib: "+(_t.message||_t))}},_deflateRaw:nt,_inflateRaw:Z,consts:w},r}();function mw(t){return typeof t=="string"?yu(t):Array.isArray(t)?function(r){if(typeof Uint8Array=="undefined")throw new Error("Unsupported");return new Uint8Array(r)}(t):t}function oc(t,r,e){if(typeof Deno!="undefined"){if(e&&typeof r=="string")switch(e){case"utf8":r=new TextEncoder(e).encode(r);break;case"binary":r=yu(r);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,r)}var n=e=="utf8"?ko(r):r;if(typeof IE_SaveFile!="undefined")return IE_SaveFile(n,t);if(typeof Blob!="undefined"){var i=new Blob([mw(n)],{type:"application/octet-stream"});if(typeof navigator!="undefined"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,t);if(typeof saveAs!="undefined")return saveAs(i,t);if(typeof URL!="undefined"&&typeof document!="undefined"&&document.createElement&&URL.createObjectURL){var c=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout!="undefined"&&setTimeout(function(){URL.revokeObjectURL(c)},6e4),chrome.downloads.download({url:c,filename:t,saveAs:!0});var f=document.createElement("a");if(f.download!=null)return f.download=t,f.href=c,document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL&&typeof setTimeout!="undefined"&&setTimeout(function(){URL.revokeObjectURL(c)},6e4),c}}if(typeof $!="undefined"&&typeof File!="undefined"&&typeof Folder!="undefined")try{var l=File(t);return l.open("w"),l.encoding="binary",Array.isArray(r)&&(r=ua(r)),l.write(r),l.close(),r}catch(u){if(!u.message||!u.message.match(/onstruct/))throw u}throw new Error("cannot save file "+t)}function nn(t){for(var r=Object.keys(t),e=[],n=0;n<r.length;++n)Object.prototype.hasOwnProperty.call(t,r[n])&&e.push(r[n]);return e}function u0(t,r){for(var e=[],n=nn(t),i=0;i!==n.length;++i)e[t[n[i]][r]]==null&&(e[t[n[i]][r]]=n[i]);return e}function _u(t){for(var r=[],e=nn(t),n=0;n!==e.length;++n)r[t[e[n]]]=e[n];return r}function ku(t){for(var r=[],e=nn(t),n=0;n!==e.length;++n)r[t[e[n]]]=parseInt(e[n],10);return r}var xu=new Date(1899,11,30,0,0,0);function Pn(t,r){var e=t.getTime();return r&&(e-=1263168e5),(e-(xu.getTime()+6e4*(t.getTimezoneOffset()-xu.getTimezoneOffset())))/864e5}var f0=new Date,yw=xu.getTime()+6e4*(f0.getTimezoneOffset()-xu.getTimezoneOffset()),l0=f0.getTimezoneOffset();function Su(t){var r=new Date;return r.setTime(24*t*60*60*1e3+yw),r.getTimezoneOffset()!==l0&&r.setTime(r.getTime()+6e4*(r.getTimezoneOffset()-l0)),r}function vw(t){var r=0,e=0,n=!1,i=t.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!i)throw new Error("|"+t+"| is not an ISO8601 Duration");for(var c=1;c!=i.length;++c)if(i[c]){switch(e=1,c>3&&(n=!0),i[c].slice(i[c].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[c].slice(i[c].length-1));case"D":e*=24;case"H":e*=60;case"M":if(!n)throw new Error("Unsupported ISO Duration Field: M");e*=60}r+=e*parseInt(i[c],10)}return r}var h0=new Date("2017-02-19T19:06:09.000Z"),d0=isNaN(h0.getFullYear())?new Date("2/19/17"):h0,bw=d0.getFullYear()==2017;function Yr(t,r){var e=new Date(t);if(bw)return r>0?e.setTime(e.getTime()+60*e.getTimezoneOffset()*1e3):r<0&&e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e;if(t instanceof Date)return t;if(d0.getFullYear()==1917&&!isNaN(e.getFullYear())){var n=e.getFullYear();return t.indexOf(""+n)>-1||e.setFullYear(e.getFullYear()+100),e}var i=t.match(/\d+/g)||["2017","2","19","0","0","0"],c=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return t.indexOf("Z")>-1&&(c=new Date(c.getTime()-60*c.getTimezoneOffset()*1e3)),c}function Ia(t,r){if(pr&&Buffer.isBuffer(t)){if(r){if(t[0]==255&&t[1]==254)return ko(t.slice(2).toString("utf16le"));if(t[1]==254&&t[2]==255)return ko(Hp(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder!="undefined")try{if(r){if(t[0]==255&&t[1]==254)return ko(new TextDecoder("utf-16le").decode(t.slice(2)));if(t[0]==254&&t[1]==255)return ko(new TextDecoder("utf-16be").decode(t.slice(2)))}var e={"€":"","‚":"",ƒ:"","„":"","…":"
","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(c){return e[c]||c})}catch(c){}for(var n=[],i=0;i!=t.length;++i)n.push(String.fromCharCode(t[i]));return n.join("")}function Vr(t){if(typeof JSON!="undefined"&&!Array.isArray(t))return JSON.parse(JSON.stringify(t));if(typeof t!="object"||t==null)return t;if(t instanceof Date)return new Date(t.getTime());var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Vr(t[e]));return r}function Qr(t,r){for(var e="";e.length<r;)e+=t;return e}function zo(t){var r=Number(t);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(t))return r;var e=1,n=t.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return e*=100,""});return isNaN(r=Number(n))?(n=n.replace(/[(](.*)[)]/,function(i,c){return e=-e,c}),isNaN(r=Number(n))?r:r/e):r/e}var gw=["january","february","march","april","may","june","july","august","september","october","november","december"];function ac(t){var r=new Date(t),e=new Date(NaN),n=r.getYear(),i=r.getMonth(),c=r.getDate();if(isNaN(c))return e;var f=t.toLowerCase();if(f.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((f=f.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&gw.indexOf(f)==-1)return e}else if(f.match(/[a-z]/))return e;return n<0||n>8099?e:(i>0||c>1)&&n!=101?r:t.match(/[^-0-9:,\/\\]/)?e:r}var ww=function(){var t="abacaba".split(/(:?b)/i).length==5;return function(r,e,n){if(t||typeof e=="string")return r.split(e);for(var i=r.split(e),c=[i[0]],f=1;f<i.length;++f)c.push(n),c.push(i[f]);return c}}();function p0(t){return t?t.content&&t.type?Ia(t.content,!0):t.data?ec(t.data):t.asNodeBuffer&&pr?ec(t.asNodeBuffer().toString("binary")):t.asBinary?ec(t.asBinary()):t._data&&t._data.getContent?ec(Ia(Array.prototype.slice.call(t._data.getContent(),0))):null:null}function m0(t){if(!t)return null;if(t.data)return Up(t.data);if(t.asNodeBuffer&&pr)return t.asNodeBuffer();if(t._data&&t._data.getContent){var r=t._data.getContent();return typeof r=="string"?Up(r):Array.prototype.slice.call(r)}return t.content&&t.type?t.content:null}function Fi(t,r){for(var e=t.FullPaths||nn(t.files),n=r.toLowerCase().replace(/[\/]/g,"\\"),i=n.replace(/\\/g,"/"),c=0;c<e.length;++c){var f=e[c].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==f||i==f)return t.files?t.files[e[c]]:t.FileIndex[c]}return null}function wl(t,r){var e=Fi(t,r);if(e==null)throw new Error("Cannot find file "+r+" in zip");return e}function dn(t,r,e){if(!e)return(n=wl(t,r))&&n.name.slice(-4)===".bin"?m0(n):p0(n);var n;if(!r)return null;try{return dn(t,r)}catch(i){return null}}function Ri(t,r,e){if(!e)return p0(wl(t,r));if(!r)return null;try{return Ri(t,r)}catch(n){return null}}function y0(t,r,e){if(!e)return m0(wl(t,r));if(!r)return null;try{return y0(t,r)}catch(n){return null}}function v0(t){for(var r=t.FullPaths||nn(t.files),e=[],n=0;n<r.length;++n)r[n].slice(-1)!="/"&&e.push(r[n].replace(/^Root Entry[\/]/,""));return e.sort()}function ur(t,r,e){if(t.FullPaths){var n;if(typeof e=="string")return n=pr?Fo(e):function(i){for(var c=[],f=0,l=i.length+250,u=ca(i.length+255),y=0;y<i.length;++y){var p=i.charCodeAt(y);if(p<128)u[f++]=p;else if(p<2048)u[f++]=192|p>>6&31,u[f++]=128|63&p;else if(p>=55296&&p<57344){p=64+(1023&p);var m=1023&i.charCodeAt(++y);u[f++]=240|p>>8&7,u[f++]=128|p>>2&63,u[f++]=128|m>>6&15|(3&p)<<4,u[f++]=128|63&m}else u[f++]=224|p>>12&15,u[f++]=128|p>>6&63,u[f++]=128|63&p;f>l&&(c.push(u.slice(0,f)),f=0,u=ca(65535),l=65530)}return c.push(u.slice(0,f)),xn(c)}(e),Ve.utils.cfb_add(t,r,n);Ve.utils.cfb_add(t,r,e)}else t.file(r,e)}function _l(){return Ve.utils.cfb_new()}function b0(t,r){switch(r.type){case"base64":return Ve.read(t,{type:"base64"});case"binary":return Ve.read(t,{type:"binary"});case"buffer":case"array":return Ve.read(t,{type:"buffer"})}throw new Error("Unrecognized type "+r.type)}function sc(t,r){if(t.charAt(0)=="/")return t.slice(1);var e=r.split("/");r.slice(-1)!="/"&&e.pop();for(var n=t.split("/");n.length!==0;){var i=n.shift();i===".."?e.pop():i!=="."&&e.push(i)}return e.join("/")}var on=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
||
`,_w=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,g0=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Hn=on.match(g0)?g0:/<[^>]*>/g,kw=/<\w*:/,xw=/<(\/?)\w+:/;function Qe(t,r,e){for(var n={},i=0,c=0;i!==t.length&&(c=t.charCodeAt(i))!==32&&c!==10&&c!==13;++i);if(r||(n[0]=t.slice(0,i)),i===t.length)return n;var f=t.match(_w),l=0,u="",y=0,p="",m="",b=1;if(f)for(y=0;y!=f.length;++y){for(m=f[y],c=0;c!=m.length&&m.charCodeAt(c)!==61;++c);for(p=m.slice(0,c).trim();m.charCodeAt(c+1)==32;)++c;for(b=(i=m.charCodeAt(c+1))==34||i==39?1:0,u=m.slice(c+1+b,m.length-b),l=0;l!=p.length&&p.charCodeAt(l)!==58;++l);if(l===p.length)p.indexOf("_")>0&&(p=p.slice(0,p.indexOf("_"))),n[p]=u,e||(n[p.toLowerCase()]=u);else{var v=(l===5&&p.slice(0,5)==="xmlns"?"xmlns":"")+p.slice(l+1);if(n[v]&&p.slice(l-3,l)=="ext")continue;n[v]=u,e||(n[v.toLowerCase()]=u)}}return n}function _o(t){return t.replace(xw,"<$1")}var w0={""":'"',"'":"'",">":">","<":"<","&":"&"},kl=_u(w0),Tr=function(){var t=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,r=/_x([\da-fA-F]{4})_/gi;return function e(n){var i=n+"",c=i.indexOf("<![CDATA[");if(c==-1)return i.replace(t,function(l,u){return w0[l]||String.fromCharCode(parseInt(u,l.indexOf("x")>-1?16:10))||l}).replace(r,function(l,u){return String.fromCharCode(parseInt(u,16))});var f=i.indexOf("]]>");return e(i.slice(0,c))+i.slice(c+9,f)+e(i.slice(f+3))}}(),xl=/[&<>'"]/g,Sw=/[\u0000-\u0008\u000b-\u001f]/g;function Mr(t){return(t+"").replace(xl,function(r){return kl[r]}).replace(Sw,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function _0(t){return Mr(t).replace(/ /g,"_x0020_")}var k0=/[\u0000-\u001f]/g;function Sl(t){return(t+"").replace(xl,function(r){return kl[r]}).replace(/\n/g,"<br/>").replace(k0,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var x0=function(){var t=/&#(\d+);/g;function r(e,n){return String.fromCharCode(parseInt(n,10))}return function(e){return e.replace(t,r)}}();function $r(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function El(t){for(var r="",e=0,n=0,i=0,c=0,f=0,l=0;e<t.length;)(n=t.charCodeAt(e++))<128?r+=String.fromCharCode(n):(i=t.charCodeAt(e++),n>191&&n<224?(f=(31&n)<<6,f|=63&i,r+=String.fromCharCode(f)):(c=t.charCodeAt(e++),n<240?r+=String.fromCharCode((15&n)<<12|(63&i)<<6|63&c):(l=((7&n)<<18|(63&i)<<12|(63&c)<<6|63&(f=t.charCodeAt(e++)))-65536,r+=String.fromCharCode(55296+(l>>>10&1023)),r+=String.fromCharCode(56320+(1023&l)))));return r}function S0(t){var r,e,n,i=ca(2*t.length),c=1,f=0,l=0;for(e=0;e<t.length;e+=c)c=1,(n=t.charCodeAt(e))<128?r=n:n<224?(r=64*(31&n)+(63&t.charCodeAt(e+1)),c=2):n<240?(r=4096*(15&n)+64*(63&t.charCodeAt(e+1))+(63&t.charCodeAt(e+2)),c=3):(c=4,r=262144*(7&n)+4096*(63&t.charCodeAt(e+1))+64*(63&t.charCodeAt(e+2))+(63&t.charCodeAt(e+3)),l=55296+((r-=65536)>>>10&1023),r=56320+(1023&r)),l!==0&&(i[f++]=255&l,i[f++]=l>>>8,l=0),i[f++]=r%256,i[f++]=r>>>8;return i.slice(0,f).toString("ucs2")}function E0(t){return Fo(t,"binary").toString("utf8")}var Eu="foo bar bazâð£",Fr=pr&&(E0(Eu)==El(Eu)&&E0||S0(Eu)==El(Eu)&&S0)||El,ko=pr?function(t){return Fo(t,"utf8").toString("binary")}:function(t){for(var r=[],e=0,n=0,i=0;e<t.length;)switch(n=t.charCodeAt(e++),!0){case n<128:r.push(String.fromCharCode(n));break;case n<2048:r.push(String.fromCharCode(192+(n>>6))),r.push(String.fromCharCode(128+(63&n)));break;case(n>=55296&&n<57344):n-=55296,i=t.charCodeAt(e++)-56320+(n<<10),r.push(String.fromCharCode(240+(i>>18&7))),r.push(String.fromCharCode(144+(i>>12&63))),r.push(String.fromCharCode(128+(i>>6&63))),r.push(String.fromCharCode(128+(63&i)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(63&n)))}return r.join("")},cc=function(){var t={};return function(r,e){var n=r+"|"+(e||"");return t[n]?t[n]:t[n]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",e||"")}}(),Ew=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(r){for(var e=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
|
||
`).replace(/<[^>]*>/g,""),n=0;n<t.length;++n)e=e.replace(t[n][0],t[n][1]);return e}}(),Tw=function(){var t={};return function(r){return t[r]!==void 0?t[r]:t[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),Ow=/<\/?(?:vt:)?variant>/g,Rw=/<(?:vt:)([^>]*)>([\s\S]*)</;function T0(t,r){var e=Qe(t),n=t.match(Tw(e.baseType))||[],i=[];if(n.length!=e.size){if(r.WTF)throw new Error("unexpected vector length "+n.length+" != "+e.size);return i}return n.forEach(function(c){var f=c.replace(Ow,"").match(Rw);f&&i.push({v:Fr(f[2]),t:f[1]})}),i}var O0=/(^\s|\s$|\n)/;function Mn(t,r){return"<"+t+(r.match(O0)?' xml:space="preserve"':"")+">"+r+"</"+t+">"}function uc(t){return nn(t).map(function(r){return" "+r+'="'+t[r]+'"'}).join("")}function we(t,r,e){return"<"+t+(e!=null?uc(e):"")+(r!=null?(r.match(O0)?' xml:space="preserve"':"")+">"+r+"</"+t:"/")+">"}function Tl(t,r){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(r)throw e}return""}function Ol(t){if(pr&&Buffer.isBuffer(t))return t.toString("utf8");if(typeof t=="string")return t;if(typeof Uint8Array!="undefined"&&t instanceof Uint8Array)return Fr(ua(yl(t)));throw new Error("Bad input format: expected Buffer or string")}var fc=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,bn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Da=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Ci={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},R0=function(t){for(var r=[],e=0;e<t[0].length;++e)if(t[0][e])for(var n=0,i=t[0][e].length;n<i;n+=10240)r.push.apply(r,t[0][e].slice(n,n+10240));return r},C0=pr?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(r){return Buffer.isBuffer(r)?r:Fo(r)})):R0(t)}:R0,A0=function(t,r,e){for(var n=[],i=r;i<e;i+=2)n.push(String.fromCharCode(Uo(t,i)));return n.join("").replace(ei,"")},Rl=pr?function(t,r,e){return Buffer.isBuffer(t)?t.toString("utf16le",r,e).replace(ei,""):A0(t,r,e)}:A0,P0=function(t,r,e){for(var n=[],i=r;i<r+e;++i)n.push(("0"+t[i].toString(16)).slice(-2));return n.join("")},M0=pr?function(t,r,e){return Buffer.isBuffer(t)?t.toString("hex",r,r+e):P0(t,r,e)}:P0,j0=function(t,r,e){for(var n=[],i=r;i<e;i++)n.push(String.fromCharCode(xs(t,i)));return n.join("")},lc=pr?function(t,r,e){return Buffer.isBuffer(t)?t.toString("utf8",r,e):j0(t,r,e)}:j0,I0=function(t,r){var e=Ai(t,r);return e>0?lc(t,r+4,r+4+e-1):""},D0=I0,N0=function(t,r){var e=Ai(t,r);return e>0?lc(t,r+4,r+4+e-1):""},F0=N0,L0=function(t,r){var e=2*Ai(t,r);return e>0?lc(t,r+4,r+4+e-1):""},B0=L0,z0=function(t,r){var e=Ai(t,r);return e>0?Rl(t,r+4,r+4+e):""},U0=z0,H0=function(t,r){var e=Ai(t,r);return e>0?lc(t,r+4,r+4+e):""},W0=H0,V0=function(t,r){return function(e,n){for(var i=1-2*(e[n+7]>>>7),c=((127&e[n+7])<<4)+(e[n+6]>>>4&15),f=15&e[n+6],l=5;l>=0;--l)f=256*f+e[n+l];return c==2047?f==0?i*(1/0):NaN:(c==0?c=-1022:(c-=1023,f+=Math.pow(2,52)),i*Math.pow(2,c-52)*f)}(t,r)},Tu=V0,Cl=function(t){return Array.isArray(t)||typeof Uint8Array!="undefined"&&t instanceof Uint8Array};pr&&(D0=function(t,r){if(!Buffer.isBuffer(t))return I0(t,r);var e=t.readUInt32LE(r);return e>0?t.toString("utf8",r+4,r+4+e-1):""},F0=function(t,r){if(!Buffer.isBuffer(t))return N0(t,r);var e=t.readUInt32LE(r);return e>0?t.toString("utf8",r+4,r+4+e-1):""},B0=function(t,r){if(!Buffer.isBuffer(t))return L0(t,r);var e=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+e-1)},U0=function(t,r){if(!Buffer.isBuffer(t))return z0(t,r);var e=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+e)},W0=function(t,r){if(!Buffer.isBuffer(t))return H0(t,r);var e=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+e)},Tu=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):V0(t,r)},Cl=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array!="undefined"&&t instanceof Uint8Array});var xs=function(t,r){return t[r]},Uo=function(t,r){return 256*t[r+1]+t[r]},Cw=function(t,r){var e=256*t[r+1]+t[r];return e<32768?e:-1*(65535-e+1)},Ai=function(t,r){return t[r+3]*(1<<24)+(t[r+2]<<16)+(t[r+1]<<8)+t[r]},Na=function(t,r){return t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]},Aw=function(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};function hc(t,r){var e,n,i,c,f,l,u="",y=[];switch(r){case"dbcs":if(l=this.l,pr&&Buffer.isBuffer(this))u=this.slice(this.l,this.l+2*t).toString("utf16le");else for(f=0;f<t;++f)u+=String.fromCharCode(Uo(this,l)),l+=2;t*=2;break;case"utf8":u=lc(this,this.l,this.l+t);break;case"utf16le":t*=2,u=Rl(this,this.l,this.l+t);break;case"wstr":return hc.call(this,t,"dbcs");case"lpstr-ansi":u=D0(this,this.l),t=4+Ai(this,this.l);break;case"lpstr-cp":u=F0(this,this.l),t=4+Ai(this,this.l);break;case"lpwstr":u=B0(this,this.l),t=4+2*Ai(this,this.l);break;case"lpp4":t=4+Ai(this,this.l),u=U0(this,this.l),2&t&&(t+=2);break;case"8lpp4":t=4+Ai(this,this.l),u=W0(this,this.l),3&t&&(t+=4-(3&t));break;case"cstr":for(t=0,u="";(i=xs(this,this.l+t++))!==0;)y.push(mu(i));u=y.join("");break;case"_wstr":for(t=0,u="";(i=Uo(this,this.l+t))!==0;)y.push(mu(i)),t+=2;t+=2,u=y.join("");break;case"dbcs-cont":for(u="",l=this.l,f=0;f<t;++f){if(this.lens&&this.lens.indexOf(l)!==-1)return i=xs(this,l),this.l=l+1,c=hc.call(this,t-f,i?"dbcs-cont":"sbcs-cont"),y.join("")+c;y.push(mu(Uo(this,l))),l+=2}u=y.join(""),t*=2;break;case"cpstr":case"sbcs-cont":for(u="",l=this.l,f=0;f!=t;++f){if(this.lens&&this.lens.indexOf(l)!==-1)return i=xs(this,l),this.l=l+1,c=hc.call(this,t-f,i?"dbcs-cont":"sbcs-cont"),y.join("")+c;y.push(mu(xs(this,l))),l+=1}u=y.join("");break;default:switch(t){case 1:return e=xs(this,this.l),this.l++,e;case 2:return e=(r==="i"?Cw:Uo)(this,this.l),this.l+=2,e;case 4:case-4:return r==="i"||!(128&this[this.l+3])?(e=(t>0?Na:Aw)(this,this.l),this.l+=4,e):(n=Ai(this,this.l),this.l+=4,n);case 8:case-8:if(r==="f")return n=t==8?Tu(this,this.l):Tu([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;t=8;case 16:u=M0(this,this.l,t)}}return this.l+=t,u}var Pw=function(t,r,e){t[e]=255&r,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},Mw=function(t,r,e){t[e]=255&r,t[e+1]=r>>8&255,t[e+2]=r>>16&255,t[e+3]=r>>24&255},jw=function(t,r,e){t[e]=255&r,t[e+1]=r>>>8&255};function Iw(t,r,e){var n=0,i=0;if(e==="dbcs"){for(i=0;i!=r.length;++i)jw(this,r.charCodeAt(i),this.l+2*i);n=2*r.length}else if(e==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=r.length;++i)this[this.l+i]=255&r.charCodeAt(i);n=r.length}else{if(e==="hex"){for(;i<t;++i)this[this.l++]=parseInt(r.slice(2*i,2*i+2),16)||0;return this}if(e==="utf16le"){var c=Math.min(this.l+t,this.length);for(i=0;i<Math.min(r.length,t);++i){var f=r.charCodeAt(i);this[this.l++]=255&f,this[this.l++]=f>>8}for(;this.l<c;)this[this.l++]=0;return this}switch(t){case 1:n=1,this[this.l]=255&r;break;case 2:n=2,this[this.l]=255&r,r>>>=8,this[this.l+1]=255&r;break;case 3:n=3,this[this.l]=255&r,r>>>=8,this[this.l+1]=255&r,r>>>=8,this[this.l+2]=255&r;break;case 4:n=4,Pw(this,r,this.l);break;case 8:if(n=8,e==="f"){(function(l,u,y){var p=(u<0||1/u==-1/0?1:0)<<7,m=0,b=0,v=p?-u:u;isFinite(v)?v==0?m=b=0:(m=Math.floor(Math.log(v)/Math.LN2),b=v*Math.pow(2,52-m),m<=-1023&&(!isFinite(b)||b<Math.pow(2,52))?m=-1022:(b-=Math.pow(2,52),m+=1023)):(m=2047,b=isNaN(u)?26985:0);for(var _=0;_<=5;++_,b/=256)l[y+_]=255&b;l[y+6]=(15&m)<<4|15&b,l[y+7]=m>>4|p})(this,r,this.l);break}case 16:break;case-4:n=4,Mw(this,r,this.l)}}return this.l+=n,this}function $0(t,r){var e=M0(this,this.l,t.length>>1);if(e!==t)throw new Error(r+"Expected "+t+" saw "+e);this.l+=t.length>>1}function jn(t,r){t.l=r,t.read_shift=hc,t.chk=$0,t.write_shift=Iw}function Wn(t,r){t.l+=r}function Jt(t){var r=ca(t);return jn(r,0),r}function Ho(t,r,e){if(t){var n,i,c;jn(t,t.l||0);for(var f=t.length,l=0,u=0;t.l<f;){128&(l=t.read_shift(1))&&(l=(127&l)+((127&t.read_shift(1))<<7));var y=Mc[l]||Mc[65535];for(c=127&(n=t.read_shift(1)),i=1;i<4&&128&n;++i)c+=(127&(n=t.read_shift(1)))<<7*i;u=t.l+c;var p=y.f&&y.f(t,c,e);if(t.l=u,r(p,y,l))return}}}function vi(){var t=[],r=pr?256:2048,e=function(f){var l=Jt(f);return jn(l,0),l},n=e(r),i=function(){n&&(n.length>n.l&&((n=n.slice(0,n.l)).l=n.length),n.length>0&&t.push(n),n=null)},c=function(f){return n&&f<n.length-n.l?n:(i(),n=e(Math.max(f+1,r)))};return{next:c,push:function(f){i(),(n=f).l==null&&(n.l=n.length),c(r)},end:function(){return i(),xn(t)},_bufs:t}}function ue(t,r,e,n){var i,c=+r;if(!isNaN(c)){n||(n=Mc[c].p||(e||[]).length||0),i=1+(c>=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var f=t.next(i);c<=127?f.write_shift(1,c):(f.write_shift(1,128+(127&c)),f.write_shift(1,c>>7));for(var l=0;l!=4;++l){if(!(n>=128)){f.write_shift(1,n);break}f.write_shift(1,128+(127&n)),n>>=7}n>0&&Cl(e)&&t.push(e)}}function dc(t,r,e){var n=Vr(t);if(r.s?(n.cRel&&(n.c+=r.s.c),n.rRel&&(n.r+=r.s.r)):(n.cRel&&(n.c+=r.c),n.rRel&&(n.r+=r.r)),!e||e.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function q0(t,r,e){var n=Vr(t);return n.s=dc(n.s,r.s,e),n.e=dc(n.e,r.s,e),n}function pc(t,r){if(t.cRel&&t.c<0)for(t=Vr(t);t.c<0;)t.c+=r>8?16384:256;if(t.rRel&&t.r<0)for(t=Vr(t);t.r<0;)t.r+=r>8?1048576:r>5?65536:16384;var e=nr(t);return t.cRel||t.cRel==null||(e=e.replace(/^([A-Z])/,"$$$1")),t.rRel||t.rRel==null||(e=function(n){return n.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(e)),e}function Al(t,r){return t.s.r!=0||t.s.rRel||t.e.r!=(r.biff>=12?1048575:r.biff>=8?65536:16384)||t.e.rRel?t.s.c!=0||t.s.cRel||t.e.c!=(r.biff>=12?16383:255)||t.e.cRel?pc(t.s,r.biff)+":"+pc(t.e,r.biff):(t.s.rRel?"":"$")+Sn(t.s.r)+":"+(t.e.rRel?"":"$")+Sn(t.e.r):(t.s.cRel?"":"$")+pn(t.s.c)+":"+(t.e.cRel?"":"$")+pn(t.e.c)}function G0(t){return parseInt(t.replace(/\$(\d+)$/,"$1"),10)-1}function Sn(t){return""+(t+1)}function Y0(t){for(var r=t.replace(/^\$([A-Z])/,"$1"),e=0,n=0;n!==r.length;++n)e=26*e+r.charCodeAt(n)-64;return e-1}function pn(t){if(t<0)throw new Error("invalid column "+t);var r="";for(++t;t;t=Math.floor((t-1)/26))r=String.fromCharCode((t-1)%26+65)+r;return r}function gn(t){for(var r=0,e=0,n=0;n<t.length;++n){var i=t.charCodeAt(n);i>=48&&i<=57?r=10*r+(i-48):i>=65&&i<=90&&(e=26*e+(i-64))}return{c:e-1,r:r-1}}function nr(t){for(var r=t.c+1,e="";r;r=(r-1)/26|0)e=String.fromCharCode((r-1)%26+65)+e;return e+(t.r+1)}function Li(t){var r=t.indexOf(":");return r==-1?{s:gn(t),e:gn(t)}:{s:gn(t.slice(0,r)),e:gn(t.slice(r+1))}}function br(t,r){return r===void 0||typeof r=="number"?br(t.s,t.e):(typeof t!="string"&&(t=nr(t)),typeof r!="string"&&(r=nr(r)),t==r?t:t+":"+r)}function Cr(t){var r={s:{c:0,r:0},e:{c:0,r:0}},e=0,n=0,i=0,c=t.length;for(e=0;n<c&&!((i=t.charCodeAt(n)-64)<1||i>26);++n)e=26*e+i;for(r.s.c=--e,e=0;n<c&&!((i=t.charCodeAt(n)-48)<0||i>9);++n)e=10*e+i;if(r.s.r=--e,n===c||i!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,e=0;n!=c&&!((i=t.charCodeAt(n)-64)<1||i>26);++n)e=26*e+i;for(r.e.c=--e,e=0;n!=c&&!((i=t.charCodeAt(n)-48)<0||i>9);++n)e=10*e+i;return r.e.r=--e,r}function Dw(t,r){var e=t.t=="d"&&r instanceof Date;if(t.z!=null)try{return t.w=Ni(t.z,e?Pn(r):r)}catch(n){}try{return t.w=Ni((t.XF||{}).numFmtId||(e?14:0),e?Pn(r):r)}catch(n){return""+r}}function la(t,r,e){return t==null||t.t==null||t.t=="z"?"":t.w!==void 0?t.w:(t.t=="d"&&!t.z&&e&&e.dateNF&&(t.z=e.dateNF),t.t=="e"?Wo[t.v]||t.v:Dw(t,r==null?t.v:r))}function Fa(t,r){var e=r&&r.sheet?r.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function mc(t,r){return function(e,n,i){var c=i||{},f=e?Array.isArray(e):c.dense,l=e||(f?[]:{}),u=0,y=0;if(l&&c.origin!=null){if(typeof c.origin=="number")u=c.origin;else{var p=typeof c.origin=="string"?gn(c.origin):c.origin;u=p.r,y=p.c}l["!ref"]||(l["!ref"]="A1:A1")}var m={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(l["!ref"]){var b=Cr(l["!ref"]);m.s.c=b.s.c,m.s.r=b.s.r,m.e.c=Math.max(m.e.c,b.e.c),m.e.r=Math.max(m.e.r,b.e.r),u==-1&&(m.e.r=u=b.e.r+1)}for(var v=0;v!=n.length;++v)if(n[v]){if(!Array.isArray(n[v]))throw new Error("aoa_to_sheet expects an array of arrays");for(var _=0;_!=n[v].length;++_)if(n[v][_]!==void 0){var s={v:n[v][_]},o=u+v,h=y+_;if(m.s.r>o&&(m.s.r=o),m.s.c>h&&(m.s.c=h),m.e.r<o&&(m.e.r=o),m.e.c<h&&(m.e.c=h),!n[v][_]||typeof n[v][_]!="object"||Array.isArray(n[v][_])||n[v][_]instanceof Date)if(Array.isArray(s.v)&&(s.f=n[v][_][1],s.v=s.v[0]),s.v===null)if(s.f)s.t="n";else if(c.nullError)s.t="e",s.v=0;else{if(!c.sheetStubs)continue;s.t="z"}else typeof s.v=="number"?s.t="n":typeof s.v=="boolean"?s.t="b":s.v instanceof Date?(s.z=c.dateNF||Je[14],c.cellDates?(s.t="d",s.w=Ni(s.z,Pn(s.v))):(s.t="n",s.v=Pn(s.v),s.w=Ni(s.z,s.v))):s.t="s";else s=n[v][_];if(f)l[o]||(l[o]=[]),l[o][h]&&l[o][h].z&&(s.z=l[o][h].z),l[o][h]=s;else{var a=nr({c:h,r:o});l[a]&&l[a].z&&(s.z=l[a].z),l[a]=s}}}return m.s.c<1e7&&(l["!ref"]=br(m)),l}(null,t,r)}function ao(t,r){return r||(r=Jt(4)),r.write_shift(4,t),r}function Vn(t){var r=t.read_shift(4);return r===0?"":t.read_shift(r,"dbcs")}function En(t,r){var e=!1;return r==null&&(e=!0,r=Jt(4+2*t.length)),r.write_shift(4,t.length),t.length>0&&r.write_shift(0,t,"dbcs"),e?r.slice(0,r.l):r}function Nw(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function Pl(t,r){var e=t.l,n=t.read_shift(1),i=Vn(t),c=[],f={t:i,h:i};if(1&n){for(var l=t.read_shift(4),u=0;u!=l;++u)c.push(Nw(t));f.r=c}else f.r=[{ich:0,ifnt:0}];return t.l=e+r,f}var Fw=Pl;function Lw(t,r){var e=!1;return r==null&&(e=!0,r=Jt(23+4*t.t.length)),r.write_shift(1,1),En(t.t,r),r.write_shift(4,1),function(n,i){i||(i=Jt(4)),i.write_shift(2,n.ich||0),i.write_shift(2,n.ifnt||0)}({ich:0,ifnt:0},r),e?r.slice(0,r.l):r}function Bi(t){var r=t.read_shift(4),e=t.read_shift(2);return e+=t.read_shift(1)<<16,t.l++,{c:r,iStyleRef:e}}function La(t,r){return r==null&&(r=Jt(8)),r.write_shift(-4,t.c),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}function Ba(t){var r=t.read_shift(2);return r+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:r}}function za(t,r){return r==null&&(r=Jt(4)),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}var Bw=Vn,K0=En;function Ml(t){var r=t.read_shift(4);return r===0||r===4294967295?"":t.read_shift(r,"dbcs")}function Ou(t,r){var e=!1;return r==null&&(e=!0,r=Jt(127)),r.write_shift(4,t.length>0?t.length:4294967295),t.length>0&&r.write_shift(0,t,"dbcs"),e?r.slice(0,r.l):r}var zw=Vn,jl=Ml,Il=Ou;function Dl(t){var r=t.slice(t.l,t.l+4),e=1&r[0],n=2&r[0];t.l+=4;var i=n===0?Tu([0,0,0,0,252&r[0],r[1],r[2],r[3]],0):Na(r,0)>>2;return e?i/100:i}function X0(t,r){r==null&&(r=Jt(4));var e=0,n=0,i=100*t;if(t==(0|t)&&t>=-(1<<29)&&t<1<<29?n=1:i==(0|i)&&i>=-(1<<29)&&i<1<<29&&(n=1,e=1),!n)throw new Error("unsupported RkNumber "+t);r.write_shift(-4,((e?i:t)<<2)+(e+2))}function Z0(t){var r={s:{},e:{}};return r.s.r=t.read_shift(4),r.e.r=t.read_shift(4),r.s.c=t.read_shift(4),r.e.c=t.read_shift(4),r}var Ua=Z0,Ss=function(t,r){return r||(r=Jt(16)),r.write_shift(4,t.s.r),r.write_shift(4,t.e.r),r.write_shift(4,t.s.c),r.write_shift(4,t.e.c),r};function $n(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Es(t,r){return(r||Jt(8)).write_shift(8,t,"f")}function Ru(t,r){if(r||(r=Jt(8)),!t||t.auto)return r.write_shift(4,0),r.write_shift(4,0),r;t.index!=null?(r.write_shift(1,2),r.write_shift(1,t.index)):t.theme!=null?(r.write_shift(1,6),r.write_shift(1,t.theme)):(r.write_shift(1,5),r.write_shift(1,0));var e=t.tint||0;if(e>0?e*=32767:e<0&&(e*=32768),r.write_shift(2,e),t.rgb&&t.theme==null){var n=t.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),r.write_shift(1,parseInt(n.slice(0,2),16)),r.write_shift(1,parseInt(n.slice(2,4),16)),r.write_shift(1,parseInt(n.slice(4,6),16)),r.write_shift(1,255)}else r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);return r}function J0(t,r){var e=t.read_shift(4);switch(e){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[t.read_shift(4)]||""}if(e>400)throw new Error("Unsupported Clipboard: "+e.toString(16));return t.l-=4,t.read_shift(0,r==1?"lpstr":"lpwstr")}var Nl=2,bi=3,Q0=12,Tn=80,t1=81,Uw=[Tn,t1],Fl={1:{n:"CodePage",t:Nl},2:{n:"Category",t:Tn},3:{n:"PresentationFormat",t:Tn},4:{n:"ByteCount",t:bi},5:{n:"LineCount",t:bi},6:{n:"ParagraphCount",t:bi},7:{n:"SlideCount",t:bi},8:{n:"NoteCount",t:bi},9:{n:"HiddenCount",t:bi},10:{n:"MultimediaClipCount",t:bi},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:Tn},15:{n:"Company",t:Tn},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:bi},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:bi,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:Tn},27:{n:"ContentStatus",t:Tn},28:{n:"Language",t:Tn},29:{n:"Version",t:Tn},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Ll={1:{n:"CodePage",t:Nl},2:{n:"Title",t:Tn},3:{n:"Subject",t:Tn},4:{n:"Author",t:Tn},5:{n:"Keywords",t:Tn},6:{n:"Comments",t:Tn},7:{n:"Template",t:Tn},8:{n:"LastAuthor",t:Tn},9:{n:"RevNumber",t:Tn},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:bi},15:{n:"WordCount",t:bi},16:{n:"CharCount",t:bi},17:{n:"Thumbnail",t:71},18:{n:"Application",t:Tn},19:{n:"DocSecurity",t:bi},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},e1={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Hw=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Ww(t){return t.map(function(r){return[r>>16&255,r>>8&255,255&r]})}var Ts=Vr(Ww([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Wo={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},r1={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Bl={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Cu={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function n1(t,r){var e,n=function(u){for(var y=[],p=nn(u),m=0;m!==p.length;++m)y[u[p[m]]]==null&&(y[u[p[m]]]=[]),y[u[p[m]]].push(p[m]);return y}(Bl),i=[];i[i.length]=on,i[i.length]=we("Types",null,{xmlns:bn.CT,"xmlns:xsd":bn.xsd,"xmlns:xsi":bn.xsi}),i=i.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(u){return we("Default",null,{Extension:u[0],ContentType:u[1]})}));var c=function(u){t[u]&&t[u].length>0&&(e=t[u][0],i[i.length]=we("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Cu[u][r.bookType]||Cu[u].xlsx}))},f=function(u){(t[u]||[]).forEach(function(y){i[i.length]=we("Override",null,{PartName:(y[0]=="/"?"":"/")+y,ContentType:Cu[u][r.bookType]||Cu[u].xlsx})})},l=function(u){(t[u]||[]).forEach(function(y){i[i.length]=we("Override",null,{PartName:(y[0]=="/"?"":"/")+y,ContentType:n[u][0]})})};return c("workbooks"),f("sheets"),f("charts"),l("themes"),["strs","styles"].forEach(c),["coreprops","extprops","custprops"].forEach(l),l("vba"),l("comments"),l("threadedcomments"),l("drawings"),f("metadata"),l("people"),i.length>2&&(i[i.length]="</Types>",i[1]=i[1].replace("/>",">")),i.join("")}var yr={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function yc(t){var r=t.lastIndexOf("/");return t.slice(0,r+1)+"_rels/"+t.slice(r+1)+".rels"}function vc(t,r){var e={"!id":{}};if(!t)return e;r.charAt(0)!=="/"&&(r="/"+r);var n={};return(t.match(Hn)||[]).forEach(function(i){var c=Qe(i);if(c[0]==="<Relationship"){var f={};f.Type=c.Type,f.Target=c.Target,f.Id=c.Id,c.TargetMode&&(f.TargetMode=c.TargetMode);var l=c.TargetMode==="External"?c.Target:sc(c.Target,r);e[l]=f,n[c.Id]=f}}),e["!id"]=n,e}function Os(t){var r=[on,we("Relationships",null,{xmlns:bn.RELS})];return nn(t["!id"]).forEach(function(e){r[r.length]=we("Relationship",null,t["!id"][e])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function jr(t,r,e,n,i,c){if(i||(i={}),t["!id"]||(t["!id"]={}),t["!idx"]||(t["!idx"]=1),r<0)for(r=t["!idx"];t["!id"]["rId"+r];++r);if(t["!idx"]=r+1,i.Id="rId"+r,i.Type=n,i.Target=e,c?i.TargetMode=c:[yr.HLINK,yr.XPATH,yr.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),t["!id"][i.Id])throw new Error("Cannot rewrite rId "+r);return t["!id"][i.Id]=i,t[("/"+i.Target).replace("//","/")]=i,r}var Vw="application/vnd.oasis.opendocument.spreadsheet";function i1(t,r,e){return[' <rdf:Description rdf:about="'+t+`">
|
||
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(e||"odf")+"#"+r+`"/>
|
||
`,` </rdf:Description>
|
||
`].join("")}function o1(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+hl.version+"</meta:generator></office:meta></office:document-meta>"}var zi=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],$w=function(){for(var t=new Array(zi.length),r=0;r<zi.length;++r){var e=zi[r],n="(?:"+e[0].slice(0,e[0].indexOf(":"))+":)"+e[0].slice(e[0].indexOf(":")+1);t[r]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return t}();function a1(t){var r={};t=Fr(t);for(var e=0;e<zi.length;++e){var n=zi[e],i=t.match($w[e]);i!=null&&i.length>0&&(r[n[1]]=Tr(i[1])),n[2]==="date"&&r[n[1]]&&(r[n[1]]=Yr(r[n[1]]))}return r}function zl(t,r,e,n,i){i[t]==null&&r!=null&&r!==""&&(i[t]=r,r=Mr(r),n[n.length]=e?we(t,r,e):Mn(t,r))}function s1(t,r){var e=r||{},n=[on,we("cp:coreProperties",null,{"xmlns:cp":bn.CORE_PROPS,"xmlns:dc":bn.dc,"xmlns:dcterms":bn.dcterms,"xmlns:dcmitype":bn.dcmitype,"xmlns:xsi":bn.xsi})],i={};if(!t&&!e.Props)return n.join("");t&&(t.CreatedDate!=null&&zl("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:Tl(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),t.ModifiedDate!=null&&zl("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:Tl(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var c=0;c!=zi.length;++c){var f=zi[c],l=e.Props&&e.Props[f[1]]!=null?e.Props[f[1]]:t?t[f[1]]:null;l===!0?l="1":l===!1?l="0":typeof l=="number"&&(l=String(l)),l!=null&&zl(f[0],l,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Ha=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],c1=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function u1(t,r,e,n){var i=[];if(typeof t=="string")i=T0(t,n);else for(var c=0;c<t.length;++c)i=i.concat(t[c].map(function(p){return{v:p}}));var f=typeof r=="string"?T0(r,n).map(function(p){return p.v}):r,l=0,u=0;if(f.length>0)for(var y=0;y!==i.length;y+=2){switch(u=+i[y+1].v,i[y].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":e.Worksheets=u,e.SheetNames=f.slice(l,l+u);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":e.NamedRanges=u,e.DefinedNames=f.slice(l,l+u);break;case"Charts":case"Diagramme":e.Chartsheets=u,e.ChartNames=f.slice(l,l+u)}l+=u}}function f1(t){var r=[],e=we;return t||(t={}),t.Application="SheetJS",r[r.length]=on,r[r.length]=we("Properties",null,{xmlns:bn.EXT_PROPS,"xmlns:vt":bn.vt}),Ha.forEach(function(n){if(t[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Mr(String(t[n[1]]));break;case"bool":i=t[n[1]]?"true":"false"}i!==void 0&&(r[r.length]=e(n[0],i))}}),r[r.length]=e("HeadingPairs",e("vt:vector",e("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+e("vt:variant",e("vt:i4",String(t.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=e("TitlesOfParts",e("vt:vector",t.SheetNames.map(function(n){return"<vt:lpstr>"+Mr(n)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var qw=/<[^>]+>[^<]*/g;function l1(t){var r=[on,we("Properties",null,{xmlns:bn.CUST_PROPS,"xmlns:vt":bn.vt})];if(!t)return r.join("");var e=1;return nn(t).forEach(function(n){++e,r[r.length]=we("property",function(i,c){switch(typeof i){case"string":var f=we("vt:lpwstr",Mr(i));return c&&(f=f.replace(/"/g,"_x0022_")),f;case"number":return we((0|i)==i?"vt:i4":"vt:r8",Mr(String(i)));case"boolean":return we("vt:bool",i?"true":"false")}if(i instanceof Date)return we("vt:filetime",Tl(i));throw new Error("Unable to serialize "+i)}(t[n],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:Mr(n)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var Ul,Hl={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Gw(t,r,e){Ul||(Ul=_u(Hl)),t[r=Ul[r]||r]=e}function Wl(t){var r=t.read_shift(4),e=t.read_shift(4);return new Date(1e3*(e/1e7*Math.pow(2,32)+r/1e7-11644473600)).toISOString().replace(/\.000/,"")}function h1(t,r,e){var n=t.l,i=t.read_shift(0,"lpstr-cp");if(e)for(;t.l-n&3;)++t.l;return i}function d1(t,r,e){var n=t.read_shift(0,"lpwstr");return e&&(t.l+=4-(n.length+1&3)&3),n}function p1(t,r,e){return r===31?d1(t):h1(t,0,e)}function m1(t,r,e){return p1(t,r,e===!1?0:4)}function Yw(t){var r=t.l,e=Au(t,t1);return t[t.l]==0&&t[t.l+1]==0&&t.l-r&2&&(t.l+=2),[e,Au(t,bi)]}function y1(t,r){for(var e=t.read_shift(4),n={},i=0;i!=e;++i){var c=t.read_shift(4),f=t.read_shift(4);n[c]=t.read_shift(f,r===1200?"utf16le":"utf8").replace(ei,"").replace(nc,"!"),r===1200&&f%2&&(t.l+=2)}return 3&t.l&&(t.l=t.l>>3<<2),n}function v1(t){var r=t.read_shift(4),e=t.slice(t.l,t.l+r);return t.l+=r,(3&r)>0&&(t.l+=4-(3&r)&3),e}function Au(t,r,e){var n,i=t.read_shift(2),c=e||{};if(t.l+=2,r!==Q0&&i!==r&&Uw.indexOf(r)===-1&&((65534&r)!=4126||(65534&i)!=4126))throw new Error("Expected type "+r+" saw "+i);switch(r===Q0?i:r){case 2:return n=t.read_shift(2,"i"),c.raw||(t.l+=2),n;case 3:return n=t.read_shift(4,"i");case 11:return t.read_shift(4)!==0;case 19:return n=t.read_shift(4);case 30:return h1(t,0,4).replace(ei,"");case 31:return d1(t);case 64:return Wl(t);case 65:return v1(t);case 71:return function(f){var l={};return l.Size=f.read_shift(4),f.l+=l.Size+3-(l.Size-1)%4,l}(t);case 80:return m1(t,i,!c.raw).replace(ei,"");case 81:return function(f,l){if(!l)throw new Error("VtUnalignedString must have positive length");return p1(f,l,0)}(t,i).replace(ei,"");case 4108:return function(f){for(var l=f.read_shift(4),u=[],y=0;y<l/2;++y)u.push(Yw(f));return u}(t);case 4126:case 4127:return i==4127?function(f){for(var l=f.read_shift(4),u=[],y=0;y!=l;++y){var p=f.l;u[y]=f.read_shift(0,"lpwstr").replace(ei,""),f.l-p&2&&(f.l+=2)}return u}(t):function(f){for(var l=f.read_shift(4),u=[],y=0;y!=l;++y)u[y]=f.read_shift(0,"lpstr-cp").replace(ei,"");return u}(t);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+i)}}function b1(t,r){var e=Jt(4),n=Jt(4);switch(e.write_shift(4,t==80?31:t),t){case 3:n.write_shift(-4,r);break;case 5:(n=Jt(8)).write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=function(i){var c=(typeof i=="string"?new Date(Date.parse(i)):i).getTime()/1e3+11644473600,f=c%Math.pow(2,32),l=(c-f)/Math.pow(2,32);l*=1e7;var u=(f*=1e7)/Math.pow(2,32)|0;u>0&&(f%=Math.pow(2,32),l+=u);var y=Jt(8);return y.write_shift(4,f),y.write_shift(4,l),y}(r);break;case 31:case 80:for((n=Jt(4+2*(r.length+1)+(r.length%2?0:2))).write_shift(4,r.length+1),n.write_shift(0,r,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+r)}return xn([e,n])}function g1(t,r){var e=t.l,n=t.read_shift(4),i=t.read_shift(4),c=[],f=0,l=0,u=-1,y={};for(f=0;f!=i;++f){var p=t.read_shift(4),m=t.read_shift(4);c[f]=[p,m+e]}c.sort(function(a,d){return a[1]-d[1]});var b={};for(f=0;f!=i;++f){if(t.l!==c[f][1]){var v=!0;if(f>0&&r)switch(r[c[f-1][0]].t){case 2:t.l+2===c[f][1]&&(t.l+=2,v=!1);break;case 80:case 4108:t.l<=c[f][1]&&(t.l=c[f][1],v=!1)}if((!r||f==0)&&t.l<=c[f][1]&&(v=!1,t.l=c[f][1]),v)throw new Error("Read Error: Expected address "+c[f][1]+" at "+t.l+" :"+f)}if(r){var _=r[c[f][0]];if(b[_.n]=Au(t,_.t,{raw:!0}),_.p==="version"&&(b[_.n]=String(b[_.n]>>16)+"."+("0000"+String(65535&b[_.n])).slice(-4)),_.n=="CodePage")switch(b[_.n]){case 0:b[_.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:io(l=b[_.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+b[_.n])}}else if(c[f][0]===1){if(l=b.CodePage=Au(t,Nl),io(l),u!==-1){var s=t.l;t.l=c[u][1],y=y1(t,l),t.l=s}}else if(c[f][0]===0){if(l===0){u=f,t.l=c[f+1][1];continue}y=y1(t,l)}else{var o,h=y[c[f][0]];switch(t[t.l]){case 65:t.l+=4,o=v1(t);break;case 30:case 31:t.l+=4,o=m1(t,t[t.l-4]).replace(/\u0000+$/,"");break;case 3:t.l+=4,o=t.read_shift(4,"i");break;case 19:t.l+=4,o=t.read_shift(4);break;case 5:t.l+=4,o=t.read_shift(8,"f");break;case 11:t.l+=4,o=an(t,4);break;case 64:t.l+=4,o=Yr(Wl(t));break;default:throw new Error("unparsed value: "+t[t.l])}b[h]=o}}return t.l=e+n,b}var w1=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Kw(t){switch(typeof t){case"boolean":return 11;case"number":return(0|t)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64}return-1}function _1(t,r,e){var n=Jt(8),i=[],c=[],f=8,l=0,u=Jt(8),y=Jt(8);if(u.write_shift(4,2),u.write_shift(4,1200),y.write_shift(4,1),c.push(u),i.push(y),f+=8+u.length,!r){(y=Jt(8)).write_shift(4,0),i.unshift(y);var p=[Jt(4)];for(p[0].write_shift(4,t.length),l=0;l<t.length;++l){var m=t[l][0];for((u=Jt(8+2*(m.length+1)+(m.length%2?0:2))).write_shift(4,l+2),u.write_shift(4,m.length+1),u.write_shift(0,m,"dbcs");u.l!=u.length;)u.write_shift(1,0);p.push(u)}u=xn(p),c.unshift(u),f+=8+u.length}for(l=0;l<t.length;++l)if((!r||r[t[l][0]])&&!(w1.indexOf(t[l][0])>-1||c1.indexOf(t[l][0])>-1)&&t[l][1]!=null){var b=t[l][1],v=0;if(r){var _=e[v=+r[t[l][0]]];if(_.p=="version"&&typeof b=="string"){var s=b.split(".");b=(+s[0]<<16)+(+s[1]||0)}u=b1(_.t,b)}else{var o=Kw(b);o==-1&&(o=31,b=String(b)),u=b1(o,b)}c.push(u),(y=Jt(8)).write_shift(4,r?v:2+l),i.push(y),f+=8+u.length}var h=8*(c.length+1);for(l=0;l<c.length;++l)i[l].write_shift(4,h),h+=c[l].length;return n.write_shift(4,f),n.write_shift(4,c.length),xn([n].concat(i).concat(c))}function k1(t,r,e){var n=t.content;if(!n)return{};jn(n,0);var i,c,f,l,u=0;n.chk("feff","Byte Order: "),n.read_shift(2);var y=n.read_shift(4),p=n.read_shift(16);if(p!==Ve.utils.consts.HEADER_CLSID&&p!==e)throw new Error("Bad PropertySet CLSID "+p);if((i=n.read_shift(4))!==1&&i!==2)throw new Error("Unrecognized #Sets: "+i);if(c=n.read_shift(16),l=n.read_shift(4),i===1&&l!==n.l)throw new Error("Length mismatch: "+l+" !== "+n.l);i===2&&(f=n.read_shift(16),u=n.read_shift(4));var m,b=g1(n,r),v={SystemIdentifier:y};for(var _ in b)v[_]=b[_];if(v.FMTID=c,i===1)return v;if(u-n.l==2&&(n.l+=2),n.l!==u)throw new Error("Length mismatch 2: "+n.l+" !== "+u);try{m=g1(n,null)}catch(s){}for(_ in m)v[_]=m[_];return v.FMTID=[c,f],v}function x1(t,r,e,n,i,c){var f=Jt(i?68:48),l=[f];f.write_shift(2,65534),f.write_shift(2,0),f.write_shift(4,842412599),f.write_shift(16,Ve.utils.consts.HEADER_CLSID,"hex"),f.write_shift(4,i?2:1),f.write_shift(16,r,"hex"),f.write_shift(4,i?68:48);var u=_1(t,e,n);if(l.push(u),i){var y=_1(i,null,null);f.write_shift(16,c,"hex"),f.write_shift(4,68+u.length),l.push(y)}return xn(l)}function ha(t,r){return t.read_shift(r),null}function an(t,r){return t.read_shift(r)===1}function ni(t,r){return r||(r=Jt(2)),r.write_shift(2,+!!t),r}function mn(t){return t.read_shift(2,"u")}function Ui(t,r){return r||(r=Jt(2)),r.write_shift(2,t),r}function S1(t,r){return function(e,n,i){for(var c=[],f=e.l+n;e.l<f;)c.push(i(e,f-e.l));if(f!==e.l)throw new Error("Slurp error");return c}(t,r,mn)}function E1(t,r,e){return e||(e=Jt(2)),e.write_shift(1,r=="e"?+t:+!!t),e.write_shift(1,r=="e"?1:0),e}function bc(t,r,e){var n=t.read_shift(e&&e.biff>=12?2:1),i="sbcs-cont";return e&&e.biff,e&&e.biff!=8?e.biff==12&&(i="wstr"):t.read_shift(1)&&(i="dbcs-cont"),e.biff>=2&&e.biff<=5&&(i="cpstr"),n?t.read_shift(n,i):""}function Xw(t){var r,e=t.read_shift(2),n=t.read_shift(1),i=4&n,c=8&n,f=1+(1&n),l=0,u={};c&&(l=t.read_shift(2)),i&&(r=t.read_shift(4));var y=f==2?"dbcs-cont":"sbcs-cont",p=e===0?"":t.read_shift(e,y);return c&&(t.l+=4*l),i&&(t.l+=r),u.t=p,c||(u.raw="<t>"+u.t+"</t>",u.r=u.t),u}function Zw(t){var r=t.t||"",e=Jt(3);e.write_shift(2,r.length),e.write_shift(1,1);var n=Jt(2*r.length);return n.write_shift(2*r.length,r,"utf16le"),xn([e,n])}function Wa(t,r,e){if(e){if(e.biff>=2&&e.biff<=5)return t.read_shift(r,"cpstr");if(e.biff>=12)return t.read_shift(r,"dbcs-cont")}return t.read_shift(1)===0?t.read_shift(r,"sbcs-cont"):t.read_shift(r,"dbcs-cont")}function gc(t,r,e){var n=t.read_shift(e&&e.biff==2?1:2);return n===0?(t.l++,""):Wa(t,n,e)}function Va(t,r,e){if(e.biff>5)return gc(t,0,e);var n=t.read_shift(1);return n===0?(t.l++,""):t.read_shift(n,e.biff<=4||!t.lens?"cpstr":"sbcs-cont")}function T1(t,r,e){return e||(e=Jt(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function Jw(t,r){var e=t.read_shift(16);switch(e){case"e0c9ea79f9bace118c8200aa004ba90b":return function(n){var i=n.read_shift(4),c=n.l,f=!1;i>24&&(n.l+=i-24,n.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(f=!0),n.l=c);var l=n.read_shift((f?i-24:i)>>1,"utf16le").replace(ei,"");return f&&(n.l+=24),l}(t);case"0303000000000000c000000000000046":return function(n){for(var i=n.read_shift(2),c="";i-- >0;)c+="../";var f=n.read_shift(0,"lpstr-ansi");if(n.l+=2,n.read_shift(2)!=57005)throw new Error("Bad FileMoniker");if(n.read_shift(4)===0)return c+f.replace(/\\/g,"/");var l=n.read_shift(4);if(n.read_shift(2)!=3)throw new Error("Bad FileMoniker");return c+n.read_shift(l>>1,"utf16le").replace(ei,"")}(t);default:throw new Error("Unsupported Moniker "+e)}}function Pu(t){var r=t.read_shift(4);return r>0?t.read_shift(r,"utf16le").replace(ei,""):""}function O1(t,r){r||(r=Jt(6+2*t.length)),r.write_shift(4,1+t.length);for(var e=0;e<t.length;++e)r.write_shift(2,t.charCodeAt(e));return r.write_shift(2,0),r}function Qw(t){var r=Jt(512),e=0,n=t.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),c=i>-1?31:23;switch(n.charAt(0)){case"#":c=28;break;case".":c&=-3}r.write_shift(4,2),r.write_shift(4,c);var f=[8,6815827,6619237,4849780,83];for(e=0;e<f.length;++e)r.write_shift(4,f[e]);if(c==28)O1(n=n.slice(1),r);else if(2&c){for(f="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),e=0;e<f.length;++e)r.write_shift(1,parseInt(f[e],16));var l=i>-1?n.slice(0,i):n;for(r.write_shift(4,2*(l.length+1)),e=0;e<l.length;++e)r.write_shift(2,l.charCodeAt(e));r.write_shift(2,0),8&c&&O1(i>-1?n.slice(i+1):"",r)}else{for(f="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e<f.length;++e)r.write_shift(1,parseInt(f[e],16));for(var u=0;n.slice(3*u,3*u+3)=="../"||n.slice(3*u,3*u+3)=="..\\";)++u;for(r.write_shift(2,u),r.write_shift(4,n.length-3*u+1),e=0;e<n.length-3*u;++e)r.write_shift(1,255&n.charCodeAt(e+3*u));for(r.write_shift(1,0),r.write_shift(2,65535),r.write_shift(2,57005),e=0;e<6;++e)r.write_shift(4,0)}return r.slice(0,r.l)}function R1(t){return[t.read_shift(1),t.read_shift(1),t.read_shift(1),t.read_shift(1)]}function C1(t,r){var e=R1(t);return e[3]=0,e}function xo(t){return{r:t.read_shift(2),c:t.read_shift(2),ixfe:t.read_shift(2)}}function $a(t,r,e,n){return n||(n=Jt(6)),n.write_shift(2,t),n.write_shift(2,r),n.write_shift(2,e||0),n}function t3(t,r,e){var n=e.biff>8?4:2;return[t.read_shift(n),t.read_shift(n,"i"),t.read_shift(n,"i")]}function A1(t){return[t.read_shift(2),Dl(t)]}function Mu(t){var r=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(2),r},e:{c:t.read_shift(2),r:e}}}function P1(t,r){return r||(r=Jt(8)),r.write_shift(2,t.s.r),r.write_shift(2,t.e.r),r.write_shift(2,t.s.c),r.write_shift(2,t.e.c),r}function M1(t){var r=t.read_shift(2),e=t.read_shift(2);return{s:{c:t.read_shift(1),r},e:{c:t.read_shift(1),r:e}}}var e3=M1;function j1(t){t.l+=4;var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(2);return t.l+=12,[e,r,n]}function qn(t){t.l+=2,t.l+=t.read_shift(2)}var r3={0:qn,4:qn,5:qn,6:qn,7:function(t){return t.l+=4,t.cf=t.read_shift(2),{}},8:qn,9:qn,10:qn,11:qn,12:qn,13:function(t){var r={};return t.l+=4,t.l+=16,r.fSharedNote=t.read_shift(2),t.l+=4,r},14:qn,15:qn,16:qn,17:qn,18:qn,19:qn,20:qn,21:j1};function ju(t,r){var e={BIFFVer:0,dt:0};switch(e.BIFFVer=t.read_shift(2),(r-=2)>=2&&(e.dt=t.read_shift(2),t.l-=2),e.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+e.BIFFVer)}return t.read_shift(r),e}function Vl(t,r,e){var n=1536,i=16;switch(e.bookType){case"biff8":case"xla":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;default:throw new Error("unsupported BIFF version")}var c=Jt(i);return c.write_shift(2,n),c.write_shift(2,r),i>4&&c.write_shift(2,29282),i>6&&c.write_shift(2,1997),i>8&&(c.write_shift(2,49161),c.write_shift(2,1),c.write_shift(2,1798),c.write_shift(2,0)),c}function n3(t,r){var e=!r||r.biff>=8?2:1,n=Jt(8+e*t.name.length);n.write_shift(4,t.pos),n.write_shift(1,t.hs||0),n.write_shift(1,t.dt),n.write_shift(1,t.name.length),r.biff>=8&&n.write_shift(1,1),n.write_shift(e*t.name.length,t.name,r.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function I1(t,r,e){var n=0;e&&e.biff==2||(n=t.read_shift(2));var i=t.read_shift(2);return e&&e.biff==2&&(n=1-(i>>15),i&=32767),[{Unsynced:1&n,DyZero:(2&n)>>1,ExAsc:(4&n)>>2,ExDsc:(8&n)>>3},i]}function i3(t,r,e,n){var i=e&&e.biff==5;n||(n=Jt(i?3+r.length:5+2*r.length)),n.write_shift(2,t),n.write_shift(i?1:2,r.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*r.length,r,i?"sbcs":"utf16le");var c=n.length>n.l?n.slice(0,n.l):n;return c.l==null&&(c.l=c.length),c}var o3=Va;function D1(t,r,e){var n=t.l+r,i=e.biff!=8&&e.biff?2:4,c=t.read_shift(i),f=t.read_shift(i),l=t.read_shift(2),u=t.read_shift(2);return t.l=n,{s:{r:c,c:l},e:{r:f,c:u}}}function N1(t,r,e,n){var i=e&&e.biff==5;n||(n=Jt(i?16:20)),n.write_shift(2,0),t.style?(n.write_shift(2,t.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,t.numFmtId||0),n.write_shift(2,r<<4));var c=0;return t.numFmtId>0&&i&&(c|=1024),n.write_shift(4,c),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function F1(t,r,e){var n=xo(t);e.biff!=2&&r!=9||++t.l;var i=function(c){var f=c.read_shift(1);return c.read_shift(1)===1?f:f===1}(t);return n.val=i,n.t=i===!0||i===!1?"b":"e",n}var L1=function(t,r,e){return r===0?"":Va(t,0,e)};function B1(t,r,e){var n,i=t.read_shift(2),c={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return e.sbcch===14849&&(n=function(f,l,u){f.l+=4,l-=4;var y=f.l+l,p=bc(f,0,u),m=f.read_shift(2);if(m!==(y-=f.l))throw new Error("Malformed AddinUdf: padding = "+y+" != "+m);return f.l+=m,p}(t,r-2,e)),c.body=n||t.read_shift(r-2),typeof n=="string"&&(c.Name=n),c}var a3=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function z1(t,r,e){var n=t.l+r,i=t.read_shift(2),c=t.read_shift(1),f=t.read_shift(1),l=t.read_shift(e&&e.biff==2?1:2),u=0;(!e||e.biff>=5)&&(e.biff!=5&&(t.l+=2),u=t.read_shift(2),e.biff==5&&(t.l+=2),t.l+=4);var y=Wa(t,f,e);32&i&&(y=a3[y.charCodeAt(0)]);var p=n-t.l;e&&e.biff==2&&--p;var m=n!=t.l&&l!==0&&p>0?function(b,v,_,s){var o,h=b.l+v,a=Oc(b,s,_);return h!==b.l&&(o=Tc(b,h-b.l,a,_)),[a,o]}(t,p,e,l):[];return{chKey:c,Name:y,itab:u,rgce:m}}function U1(t,r,e){if(e.biff<8)return function(f,l,u){f[f.l+1]==3&&f[f.l]++;var y=bc(f,0,u);return y.charCodeAt(0)==3?y.slice(1):y}(t,0,e);for(var n=[],i=t.l+r,c=t.read_shift(e.biff>8?4:2);c--!=0;)n.push(t3(t,e.biff,e));if(t.l!=i)throw new Error("Bad ExternSheet: "+t.l+" != "+i);return n}function H1(t,r,e){var n=e3(t);switch(e.biff){case 2:t.l++,r-=7;break;case 3:case 4:t.l+=2,r-=8;break;default:t.l+=6,r-=12}return[n,v4(t,r,e)]}var s3={8:function(t,r){var e=t.l+r;t.l+=10;var n=t.read_shift(2);t.l+=4,t.l+=2,t.l+=2,t.l+=2,t.l+=4;var i=t.read_shift(1);return t.l+=i,t.l=e,{fmt:n}}};function c3(t){var r=Jt(24),e=gn(t[0]);r.write_shift(2,e.r),r.write_shift(2,e.r),r.write_shift(2,e.c),r.write_shift(2,e.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)r.write_shift(1,parseInt(n[i],16));return xn([r,Qw(t[1])])}function u3(t){var r=t[1].Tooltip,e=Jt(10+2*(r.length+1));e.write_shift(2,2048);var n=gn(t[0]);e.write_shift(2,n.r),e.write_shift(2,n.r),e.write_shift(2,n.c),e.write_shift(2,n.c);for(var i=0;i<r.length;++i)e.write_shift(2,r.charCodeAt(i));return e.write_shift(2,0),e}function W1(t,r,e){if(!e.cellStyles)return Wn(t,r);var n=e&&e.biff>=12?4:2,i=t.read_shift(n),c=t.read_shift(n),f=t.read_shift(n),l=t.read_shift(n),u=t.read_shift(2);n==2&&(t.l+=2);var y={s:i,e:c,w:f,ixfe:l,flags:u};return(e.biff>=5||!e.biff)&&(y.level=u>>8&7),y}var f3=xo,l3=S1,h3=gc,d3=[2,3,48,49,131,139,140,245],$l=function(){var t={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=_u({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function e(i,c){var f=c||{};f.dateNF||(f.dateNF="yyyymmdd");var l=mc(function(u,y){var p=[],m=ca(1);switch(y.type){case"base64":m=Oi(Ti(u));break;case"binary":m=Oi(u);break;case"buffer":case"array":m=u}jn(m,0);var b=m.read_shift(1),v=!!(136&b),_=!1,s=!1;switch(b){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:_=!0,v=!0;break;case 140:s=!0;break;default:throw new Error("DBF Unsupported Version: "+b.toString(16))}var o=0,h=521;b==2&&(o=m.read_shift(2)),m.l+=3,b!=2&&(o=m.read_shift(4)),o>1048576&&(o=1e6),b!=2&&(h=m.read_shift(2));var a=m.read_shift(2),d=y.codepage||1252;b!=2&&(m.l+=16,m.read_shift(1),m[m.l]!==0&&(d=t[m[m.l]]),m.l+=1,m.l+=2),s&&(m.l+=36);for(var g=[],w={},k=Math.min(m.length,b==2?521:h-10-(_?264:0)),S=s?32:11;m.l<k&&m[m.l]!=13;)switch((w={}).name=aa.utils.decode(d,m.slice(m.l,m.l+S)).replace(/[\u0000\r\n].*$/g,""),m.l+=S,w.type=String.fromCharCode(m.read_shift(1)),b==2||s||(w.offset=m.read_shift(4)),w.len=m.read_shift(1),b==2&&(w.offset=m.read_shift(2)),w.dec=m.read_shift(1),w.name.length&&g.push(w),b!=2&&(m.l+=s?13:14),w.type){case"B":_&&w.len==8||!y.WTF||console.log("Skipping "+w.name+":"+w.type);break;case"G":case"P":y.WTF&&console.log("Skipping "+w.name+":"+w.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+w.type)}if(m[m.l]!==13&&(m.l=h-1),m.read_shift(1)!==13)throw new Error("DBF Terminator not found "+m.l+" "+m[m.l]);m.l=h;var A=0,j=0;for(p[0]=[],j=0;j!=g.length;++j)p[0][j]=g[j].name;for(;o-- >0;)if(m[m.l]!==42)for(++m.l,p[++A]=[],j=0,j=0;j!=g.length;++j){var D=m.slice(m.l,m.l+g[j].len);m.l+=g[j].len,jn(D,0);var N=aa.utils.decode(d,D);switch(g[j].type){case"C":N.trim().length&&(p[A][j]=N.replace(/\s+$/,""));break;case"D":N.length===8?p[A][j]=new Date(+N.slice(0,4),+N.slice(4,6)-1,+N.slice(6,8)):p[A][j]=N;break;case"F":p[A][j]=parseFloat(N.trim());break;case"+":case"I":p[A][j]=s?2147483648^D.read_shift(-4,"i"):D.read_shift(4,"i");break;case"L":switch(N.trim().toUpperCase()){case"Y":case"T":p[A][j]=!0;break;case"N":case"F":p[A][j]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+N+"|")}break;case"M":if(!v)throw new Error("DBF Unexpected MEMO for type "+b.toString(16));p[A][j]="##MEMO##"+(s?parseInt(N.trim(),10):D.read_shift(4));break;case"N":(N=N.replace(/\u0000/g,"").trim())&&N!="."&&(p[A][j]=+N||0);break;case"@":p[A][j]=new Date(D.read_shift(-8,"f")-621356832e5);break;case"T":p[A][j]=new Date(864e5*(D.read_shift(4)-2440588)+D.read_shift(4));break;case"Y":p[A][j]=D.read_shift(4,"i")/1e4+D.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":p[A][j]=-D.read_shift(-8,"f");break;case"B":if(_&&g[j].len==8){p[A][j]=D.read_shift(8,"f");break}case"G":case"P":D.l+=g[j].len;break;case"0":if(g[j].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+g[j].type)}}else m.l+=a;if(b!=2&&m.l<m.length&&m[m.l++]!=26)throw new Error("DBF EOF Marker missing "+(m.l-1)+" of "+m.length+" "+m[m.l-1].toString(16));return y&&y.sheetRows&&(p=p.slice(0,y.sheetRows)),y.DBF=g,p}(i,f),f);return l["!cols"]=f.DBF.map(function(u){return{wch:u.len,DBF:u}}),delete f.DBF,l}var n={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(i,c){try{return Fa(e(i,c),c)}catch(f){if(c&&c.WTF)throw f}return{SheetNames:[],Sheets:{}}},to_sheet:e,from_sheet:function(i,c){var f=c||{};if(+f.codepage>=0&&io(+f.codepage),f.type=="string")throw new Error("Cannot write DBF to JS string");var l=vi(),u=Xm(i,{header:1,raw:!0,cellDates:!0}),y=u[0],p=u.slice(1),m=i["!cols"]||[],b=0,v=0,_=0,s=1;for(b=0;b<y.length;++b)if(((m[b]||{}).DBF||{}).name)y[b]=m[b].DBF.name,++_;else if(y[b]!=null){if(++_,typeof y[b]=="number"&&(y[b]=y[b].toString(10)),typeof y[b]!="string")throw new Error("DBF Invalid column name "+y[b]+" |"+typeof y[b]+"|");if(y.indexOf(y[b])!==b){for(v=0;v<1024;++v)if(y.indexOf(y[b]+"_"+v)==-1){y[b]+="_"+v;break}}}var o=Cr(i["!ref"]),h=[],a=[],d=[];for(b=0;b<=o.e.c-o.s.c;++b){var g="",w="",k=0,S=[];for(v=0;v<p.length;++v)p[v][b]!=null&&S.push(p[v][b]);if(S.length!=0&&y[b]!=null){for(v=0;v<S.length;++v){switch(typeof S[v]){case"number":w="B";break;case"string":default:w="C";break;case"boolean":w="L";break;case"object":w=S[v]instanceof Date?"D":"C"}k=Math.max(k,String(S[v]).length),g=g&&g!=w?"C":w}k>250&&(k=250),(w=((m[b]||{}).DBF||{}).type)=="C"&&m[b].DBF.len>k&&(k=m[b].DBF.len),g=="B"&&w=="N"&&(g="N",d[b]=m[b].DBF.dec,k=m[b].DBF.len),a[b]=g=="C"||w=="N"?k:n[g]||0,s+=a[b],h[b]=g}else h[b]="?"}var A=l.next(32);for(A.write_shift(4,318902576),A.write_shift(4,p.length),A.write_shift(2,296+32*_),A.write_shift(2,s),b=0;b<4;++b)A.write_shift(4,0);for(A.write_shift(4,0|(+r[zp]||3)<<8),b=0,v=0;b<y.length;++b)if(y[b]!=null){var j=l.next(32),D=(y[b].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);j.write_shift(1,D,"sbcs"),j.write_shift(1,h[b]=="?"?"C":h[b],"sbcs"),j.write_shift(4,v),j.write_shift(1,a[b]||n[h[b]]||0),j.write_shift(1,d[b]||0),j.write_shift(1,2),j.write_shift(4,0),j.write_shift(1,0),j.write_shift(4,0),j.write_shift(4,0),v+=a[b]||n[h[b]]||0}var N=l.next(264);for(N.write_shift(4,13),b=0;b<65;++b)N.write_shift(4,0);for(b=0;b<p.length;++b){var F=l.next(s);for(F.write_shift(1,0),v=0;v<y.length;++v)if(y[v]!=null)switch(h[v]){case"L":F.write_shift(1,p[b][v]==null?63:p[b][v]?84:70);break;case"B":F.write_shift(8,p[b][v]||0,"f");break;case"N":var T="0";for(typeof p[b][v]=="number"&&(T=p[b][v].toFixed(d[v]||0)),_=0;_<a[v]-T.length;++_)F.write_shift(1,32);F.write_shift(1,T,"sbcs");break;case"D":p[b][v]?(F.write_shift(4,("0000"+p[b][v].getFullYear()).slice(-4),"sbcs"),F.write_shift(2,("00"+(p[b][v].getMonth()+1)).slice(-2),"sbcs"),F.write_shift(2,("00"+p[b][v].getDate()).slice(-2),"sbcs")):F.write_shift(8,"00000000","sbcs");break;case"C":var I=String(p[b][v]!=null?p[b][v]:"").slice(0,a[v]);for(F.write_shift(1,I,"sbcs"),_=0;_<a[v]-I.length;++_)F.write_shift(1,32)}}return l.next(1).write_shift(1,26),l.end()}}}(),V1=function(){var t={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("\x1BN("+nn(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(l,u){var y=t[u];return typeof y=="number"?Wp(y):y},n=function(l,u,y){var p=u.charCodeAt(0)-32<<4|y.charCodeAt(0)-48;return p==59?l:Wp(p)};function i(l,u){var y,p=l.split(/[\n\r]+/),m=-1,b=-1,v=0,_=0,s=[],o=[],h=null,a={},d=[],g=[],w=[],k=0;for(+u.codepage>=0&&io(+u.codepage);v!==p.length;++v){k=0;var S,A=p[v].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,e),j=A.replace(/;;/g,"\0").split(";").map(function(L){return L.replace(/\u0000/g,";")}),D=j[0];if(A.length>0)switch(D){case"ID":case"E":case"B":case"O":case"W":break;case"P":j[1].charAt(0)=="P"&&o.push(A.slice(3).replace(/;;/g,";"));break;case"C":var N=!1,F=!1,T=!1,I=!1,x=-1,O=-1;for(_=1;_<j.length;++_)switch(j[_].charAt(0)){case"A":case"G":break;case"X":b=parseInt(j[_].slice(1))-1,F=!0;break;case"Y":for(m=parseInt(j[_].slice(1))-1,F||(b=0),y=s.length;y<=m;++y)s[y]=[];break;case"K":(S=j[_].slice(1)).charAt(0)==='"'?S=S.slice(1,S.length-1):S==="TRUE"?S=!0:S==="FALSE"?S=!1:isNaN(zo(S))?isNaN(ac(S).getDate())||(S=Yr(S)):(S=zo(S),h!==null&&_s(h)&&(S=Su(S))),N=!0;break;case"E":I=!0;var R=Ps(j[_].slice(1),{r:m,c:b});s[m][b]=[s[m][b],R];break;case"S":T=!0,s[m][b]=[s[m][b],"S5S"];break;case"R":x=parseInt(j[_].slice(1))-1;break;case"C":O=parseInt(j[_].slice(1))-1;break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+A)}if(N&&(s[m][b]&&s[m][b].length==2?s[m][b][0]=S:s[m][b]=S,h=null),T){if(I)throw new Error("SYLK shared formula cannot have own formula");var C=x>-1&&s[x][O];if(!C||!C[1])throw new Error("SYLK shared formula cannot find base");s[m][b][1]=fm(C[1],{r:m-x,c:b-O})}break;case"F":var P=0;for(_=1;_<j.length;++_)switch(j[_].charAt(0)){case"X":b=parseInt(j[_].slice(1))-1,++P;break;case"Y":for(m=parseInt(j[_].slice(1))-1,y=s.length;y<=m;++y)s[y]=[];break;case"M":k=parseInt(j[_].slice(1))/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":h=o[parseInt(j[_].slice(1))];break;case"W":for(w=j[_].slice(1).split(" "),y=parseInt(w[0],10);y<=parseInt(w[1],10);++y)k=parseInt(w[2],10),g[y-1]=k===0?{hidden:!0}:{wch:k},da(g[y-1]);break;case"C":g[b=parseInt(j[_].slice(1))-1]||(g[b]={});break;case"R":d[m=parseInt(j[_].slice(1))-1]||(d[m]={}),k>0?(d[m].hpt=k,d[m].hpx=Cs(k)):k===0&&(d[m].hidden=!0);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+A)}P<1&&(h=null);break;default:if(u&&u.WTF)throw new Error("SYLK bad record "+A)}}return d.length>0&&(a["!rows"]=d),g.length>0&&(a["!cols"]=g),u&&u.sheetRows&&(s=s.slice(0,u.sheetRows)),[s,a]}function c(l,u){var y=function(v,_){switch(_.type){case"base64":return i(Ti(v),_);case"binary":return i(v,_);case"buffer":return i(pr&&Buffer.isBuffer(v)?v.toString("binary"):ua(v),_);case"array":return i(Ia(v),_)}throw new Error("Unrecognized type "+_.type)}(l,u),p=y[0],m=y[1],b=mc(p,u);return nn(m).forEach(function(v){b[v]=m[v]}),b}function f(l,u,y,p){var m="C;Y"+(y+1)+";X"+(p+1)+";K";switch(l.t){case"n":m+=l.v||0,l.f&&!l.F&&(m+=";E"+Ql(l.f,{r:y,c:p}));break;case"b":m+=l.v?"TRUE":"FALSE";break;case"e":m+=l.w||l.v;break;case"d":m+='"'+(l.w||l.v)+'"';break;case"s":m+='"'+l.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return m}return t["|"]=254,{to_workbook:function(l,u){return Fa(c(l,u),u)},to_sheet:c,from_sheet:function(l,u){var y,p,m=["ID;PWXL;N;E"],b=[],v=Cr(l["!ref"]),_=Array.isArray(l),s=`\r
|
||
`;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),l["!cols"]&&(p=m,l["!cols"].forEach(function(d,g){var w="F;W"+(g+1)+" "+(g+1)+" ";d.hidden?w+="0":(typeof d.width!="number"||d.wpx||(d.wpx=_c(d.width)),typeof d.wpx!="number"||d.wch||(d.wch=kc(d.wpx)),typeof d.wch=="number"&&(w+=Math.round(d.wch))),w.charAt(w.length-1)!=" "&&p.push(w)})),l["!rows"]&&function(d,g){g.forEach(function(w,k){var S="F;";w.hidden?S+="M0;":w.hpt?S+="M"+20*w.hpt+";":w.hpx&&(S+="M"+20*xc(w.hpx)+";"),S.length>2&&d.push(S+"R"+(k+1))})}(m,l["!rows"]),m.push("B;Y"+(v.e.r-v.s.r+1)+";X"+(v.e.c-v.s.c+1)+";D"+[v.s.c,v.s.r,v.e.c,v.e.r].join(" "));for(var o=v.s.r;o<=v.e.r;++o)for(var h=v.s.c;h<=v.e.c;++h){var a=nr({r:o,c:h});(y=_?(l[o]||[])[h]:l[a])&&(y.v!=null||y.f&&!y.F)&&b.push(f(y,0,o,h))}return m.join(s)+s+b.join(s)+s+"E"+s}}}(),$1=function(){function t(e,n){for(var i=e.split(`
|
||
`),c=-1,f=-1,l=0,u=[];l!==i.length;++l)if(i[l].trim()!=="BOT"){if(!(c<0)){for(var y=i[l].trim().split(","),p=y[0],m=y[1],b=i[++l]||"";1&(b.match(/["]/g)||[]).length&&l<i.length-1;)b+=`
|
||
`+i[++l];switch(b=b.trim(),+p){case-1:if(b==="BOT"){u[++c]=[],f=0;continue}if(b!=="EOD")throw new Error("Unrecognized DIF special command "+b);break;case 0:b==="TRUE"?u[c][f]=!0:b==="FALSE"?u[c][f]=!1:isNaN(zo(m))?isNaN(ac(m).getDate())?u[c][f]=m:u[c][f]=Yr(m):u[c][f]=zo(m),++f;break;case 1:(b=(b=b.slice(1,b.length-1)).replace(/""/g,'"'))&&b.match(/^=".*"$/)&&(b=b.slice(2,-1)),u[c][f++]=b!==""?b:null}if(b==="EOD")break}}else u[++c]=[],f=0;return n&&n.sheetRows&&(u=u.slice(0,n.sheetRows)),u}function r(e,n){return mc(function(i,c){switch(c.type){case"base64":return t(Ti(i),c);case"binary":return t(i,c);case"buffer":return t(pr&&Buffer.isBuffer(i)?i.toString("binary"):ua(i),c);case"array":return t(Ia(i),c)}throw new Error("Unrecognized type "+c.type)}(e,n),n)}return{to_workbook:function(e,n){return Fa(r(e,n),n)},to_sheet:r,from_sheet:function(){var e=function(i,c,f,l,u){i.push(c),i.push(f+","+l),i.push('"'+u.replace(/"/g,'""')+'"')},n=function(i,c,f,l){i.push(c+","+f),i.push(c==1?'"'+l.replace(/"/g,'""')+'"':l)};return function(i){var c,f=[],l=Cr(i["!ref"]),u=Array.isArray(i);e(f,"TABLE",0,1,"sheetjs"),e(f,"VECTORS",0,l.e.r-l.s.r+1,""),e(f,"TUPLES",0,l.e.c-l.s.c+1,""),e(f,"DATA",0,0,"");for(var y=l.s.r;y<=l.e.r;++y){n(f,-1,0,"BOT");for(var p=l.s.c;p<=l.e.c;++p){var m=nr({r:y,c:p});if(c=u?(i[y]||[])[p]:i[m])switch(c.t){case"n":var b=c.w;b||c.v==null||(b=c.v),b==null?c.f&&!c.F?n(f,1,0,"="+c.f):n(f,1,0,""):n(f,0,b,"V");break;case"b":n(f,0,c.v?1:0,c.v?"TRUE":"FALSE");break;case"s":n(f,1,0,isNaN(c.v)?c.v:'="'+c.v+'"');break;case"d":c.w||(c.w=Ni(c.z||Je[14],Pn(Yr(c.v)))),n(f,0,c.w,"V");break;default:n(f,1,0,"")}else n(f,1,0,"")}}return n(f,-1,0,"EOD"),f.join(`\r
|
||
`)}}()}}(),q1=function(){function t(l){return l.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(l,u){return mc(function(y,p){for(var m=y.split(`
|
||
`),b=-1,v=-1,_=0,s=[];_!==m.length;++_){var o=m[_].trim().split(":");if(o[0]==="cell"){var h=gn(o[1]);if(s.length<=h.r)for(b=s.length;b<=h.r;++b)s[b]||(s[b]=[]);switch(b=h.r,v=h.c,o[2]){case"t":s[b][v]=o[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
|
||
`);break;case"v":s[b][v]=+o[3];break;case"vtf":var a=o[o.length-1];case"vtc":o[3]==="nl"?s[b][v]=!!+o[4]:s[b][v]=+o[4],o[2]=="vtf"&&(s[b][v]=[s[b][v],a])}}}return p&&p.sheetRows&&(s=s.slice(0,p.sheetRows)),s}(l,u),u)}var e=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
|
||
`),n=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
|
||
`)+`
|
||
`,i=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
|
||
`),c="--SocialCalcSpreadsheetControlSave--";function f(l){if(!l||!l["!ref"])return"";for(var u,y=[],p=[],m="",b=Li(l["!ref"]),v=Array.isArray(l),_=b.s.r;_<=b.e.r;++_)for(var s=b.s.c;s<=b.e.c;++s)if(m=nr({r:_,c:s}),(u=v?(l[_]||[])[s]:l[m])&&u.v!=null&&u.t!=="z"){switch(p=["cell",m,"t"],u.t){case"s":case"str":p.push(t(u.v));break;case"n":u.f?(p[2]="vtf",p[3]="n",p[4]=u.v,p[5]=t(u.f)):(p[2]="v",p[3]=u.v);break;case"b":p[2]="vt"+(u.f?"f":"c"),p[3]="nl",p[4]=u.v?"1":"0",p[5]=t(u.f||(u.v?"TRUE":"FALSE"));break;case"d":var o=Pn(Yr(u.v));p[2]="vtc",p[3]="nd",p[4]=""+o,p[5]=u.w||Ni(u.z||Je[14],o);break;case"e":continue}y.push(p.join(":"))}return y.push("sheet:c:"+(b.e.c-b.s.c+1)+":r:"+(b.e.r-b.s.r+1)+":tvf:1"),y.push("valueformat:1:text-wiki"),y.join(`
|
||
`)}return{to_workbook:function(l,u){return Fa(r(l,u),u)},to_sheet:r,from_sheet:function(l){return[e,n,i,n,f(l),c].join(`
|
||
`)}}}(),Rs=function(){function t(l,u,y,p,m){m.raw?u[y][p]=l:l===""||(l==="TRUE"?u[y][p]=!0:l==="FALSE"?u[y][p]=!1:isNaN(zo(l))?isNaN(ac(l).getDate())?u[y][p]=l:u[y][p]=Yr(l):u[y][p]=zo(l))}var r={44:",",9:" ",59:";",124:"|"},e={44:3,9:2,59:1,124:0};function n(l){for(var u={},y=!1,p=0,m=0;p<l.length;++p)(m=l.charCodeAt(p))==34?y=!y:!y&&m in r&&(u[m]=(u[m]||0)+1);for(p in m=[],u)Object.prototype.hasOwnProperty.call(u,p)&&m.push([u[p],p]);if(!m.length)for(p in u=e)Object.prototype.hasOwnProperty.call(u,p)&&m.push([u[p],p]);return m.sort(function(b,v){return b[0]-v[0]||e[b[1]]-e[v[1]]}),r[m.pop()[1]]||44}function i(l,u){var y=u||{},p="",m=y.dense?[]:{},b={s:{c:0,r:0},e:{c:0,r:0}};l.slice(0,4)=="sep="?l.charCodeAt(5)==13&&l.charCodeAt(6)==10?(p=l.charAt(4),l=l.slice(7)):l.charCodeAt(5)==13||l.charCodeAt(5)==10?(p=l.charAt(4),l=l.slice(6)):p=n(l.slice(0,1024)):p=y&&y.FS?y.FS:n(l.slice(0,1024));var v=0,_=0,s=0,o=0,h=0,a=p.charCodeAt(0),d=!1,g=0,w=l.charCodeAt(0);l=l.replace(/\r\n/gm,`
|
||
`);var k,S,A=y.dateNF!=null?(k=y.dateNF,S=(S=typeof k=="number"?Je[k]:k).replace(c0,"(\\d+)"),new RegExp("^"+S+"$")):null;function j(){var D=l.slice(o,h),N={};if(D.charAt(0)=='"'&&D.charAt(D.length-1)=='"'&&(D=D.slice(1,-1).replace(/""/g,'"')),D.length===0)N.t="z";else if(y.raw)N.t="s",N.v=D;else if(D.trim().length===0)N.t="s",N.v=D;else if(D.charCodeAt(0)==61)D.charCodeAt(1)==34&&D.charCodeAt(D.length-1)==34?(N.t="s",N.v=D.slice(2,-1).replace(/""/g,'"')):D.length!=1?(N.t="n",N.f=D.slice(1)):(N.t="s",N.v=D);else if(D=="TRUE")N.t="b",N.v=!0;else if(D=="FALSE")N.t="b",N.v=!1;else if(isNaN(s=zo(D)))if(!isNaN(ac(D).getDate())||A&&D.match(A)){N.z=y.dateNF||Je[14];var F=0;A&&D.match(A)&&(D=function(T,I,x){var O=-1,R=-1,C=-1,P=-1,L=-1,H=-1;(I.match(c0)||[]).forEach(function(W,X){var et=parseInt(x[X+1],10);switch(W.toLowerCase().charAt(0)){case"y":O=et;break;case"d":C=et;break;case"h":P=et;break;case"s":H=et;break;case"m":P>=0?L=et:R=et}}),H>=0&&L==-1&&R>=0&&(L=R,R=-1);var U=(""+(O>=0?O:new Date().getFullYear())).slice(-4)+"-"+("00"+(R>=1?R:1)).slice(-2)+"-"+("00"+(C>=1?C:1)).slice(-2);U.length==7&&(U="0"+U),U.length==8&&(U="20"+U);var B=("00"+(P>=0?P:0)).slice(-2)+":"+("00"+(L>=0?L:0)).slice(-2)+":"+("00"+(H>=0?H:0)).slice(-2);return P==-1&&L==-1&&H==-1?U:O==-1&&R==-1&&C==-1?B:U+"T"+B}(0,y.dateNF,D.match(A)||[]),F=1),y.cellDates?(N.t="d",N.v=Yr(D,F)):(N.t="n",N.v=Pn(Yr(D,F))),y.cellText!==!1&&(N.w=Ni(N.z,N.v instanceof Date?Pn(N.v):N.v)),y.cellNF||delete N.z}else N.t="s",N.v=D;else N.t="n",y.cellText!==!1&&(N.w=D),N.v=s;if(N.t=="z"||(y.dense?(m[v]||(m[v]=[]),m[v][_]=N):m[nr({c:_,r:v})]=N),o=h+1,w=l.charCodeAt(o),b.e.c<_&&(b.e.c=_),b.e.r<v&&(b.e.r=v),g==a)++_;else if(_=0,++v,y.sheetRows&&y.sheetRows<=v)return!0}t:for(;h<l.length;++h)switch(g=l.charCodeAt(h)){case 34:w===34&&(d=!d);break;case a:case 10:case 13:if(!d&&j())break t}return h-o>0&&j(),m["!ref"]=br(b),m}function c(l,u){return u&&u.PRN?u.FS||l.slice(0,4)=="sep="||l.indexOf(" ")>=0||l.indexOf(",")>=0||l.indexOf(";")>=0?i(l,u):mc(function(y,p){var m=p||{},b=[];if(!y||y.length===0)return b;for(var v=y.split(/[\r\n]/),_=v.length-1;_>=0&&v[_].length===0;)--_;for(var s=10,o=0,h=0;h<=_;++h)(o=v[h].indexOf(" "))==-1?o=v[h].length:o++,s=Math.max(s,o);for(h=0;h<=_;++h){b[h]=[];var a=0;for(t(v[h].slice(0,s).trim(),b,h,a,m),a=1;a<=(v[h].length-s)/10+1;++a)t(v[h].slice(s+10*(a-1),s+10*a).trim(),b,h,a,m)}return m.sheetRows&&(b=b.slice(0,m.sheetRows)),b}(l,u),u):i(l,u)}function f(l,u){var y="",p=u.type=="string"?[0,0,0,0]:yh(l,u);switch(u.type){case"base64":y=Ti(l);break;case"binary":case"string":y=l;break;case"buffer":y=u.codepage==65001?l.toString("utf8"):u.codepage&&aa!==void 0?aa.utils.decode(u.codepage,l):pr&&Buffer.isBuffer(l)?l.toString("binary"):ua(l);break;case"array":y=Ia(l);break;default:throw new Error("Unrecognized type "+u.type)}return p[0]==239&&p[1]==187&&p[2]==191?y=Fr(y.slice(3)):u.type!="string"&&u.type!="buffer"&&u.codepage==65001?y=Fr(y):u.type=="binary"&&aa!==void 0&&u.codepage&&(y=aa.utils.decode(u.codepage,aa.utils.encode(28591,y))),y.slice(0,19)=="socialcalc:version:"?q1.to_sheet(u.type=="string"?y:Fr(y),u):c(y,u)}return{to_workbook:function(l,u){return Fa(f(l,u),u)},to_sheet:f,from_sheet:function(l){for(var u,y=[],p=Cr(l["!ref"]),m=Array.isArray(l),b=p.s.r;b<=p.e.r;++b){for(var v=[],_=p.s.c;_<=p.e.c;++_){var s=nr({r:b,c:_});if((u=m?(l[b]||[])[_]:l[s])&&u.v!=null){for(var o=(u.w||(la(u),u.w)||"").slice(0,10);o.length<10;)o+=" ";v.push(o+(_===0?" ":""))}else v.push(" ")}y.push(v.join(""))}return y.join(`
|
||
`)}}}(),qa=function(){function t(d,g,w){if(d){jn(d,d.l||0);for(var k=w.Enum||h;d.l<d.length;){var S=d.read_shift(2),A=k[S]||k[65535],j=d.read_shift(2),D=d.l+j,N=A.f&&A.f(d,j,w);if(d.l=D,g(N,A,S))return}}}function r(d,g){if(!d)return d;var w=g||{},k=w.dense?[]:{},S="Sheet1",A="",j=0,D={},N=[],F=[],T={s:{r:0,c:0},e:{r:0,c:0}},I=w.sheetRows||0;if(d[2]==0&&(d[3]==8||d[3]==9)&&d.length>=16&&d[14]==5&&d[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(d[2]==2)w.Enum=h,t(d,function(C,P,L){switch(L){case 0:w.vers=C,C>=4096&&(w.qpro=!0);break;case 6:T=C;break;case 204:C&&(A=C);break;case 222:A=C;break;case 15:case 51:w.qpro||(C[1].v=C[1].v.slice(1));case 13:case 14:case 16:L==14&&(112&C[2])==112&&(15&C[2])>1&&(15&C[2])<15&&(C[1].z=w.dateNF||Je[14],w.cellDates&&(C[1].t="d",C[1].v=Su(C[1].v))),w.qpro&&C[3]>j&&(k["!ref"]=br(T),D[S]=k,N.push(S),k=w.dense?[]:{},T={s:{r:0,c:0},e:{r:0,c:0}},j=C[3],S=A||"Sheet"+(j+1),A="");var H=w.dense?(k[C[0].r]||[])[C[0].c]:k[nr(C[0])];if(H){H.t=C[1].t,H.v=C[1].v,C[1].z!=null&&(H.z=C[1].z),C[1].f!=null&&(H.f=C[1].f);break}w.dense?(k[C[0].r]||(k[C[0].r]=[]),k[C[0].r][C[0].c]=C[1]):k[nr(C[0])]=C[1]}},w);else{if(d[2]!=26&&d[2]!=14)throw new Error("Unrecognized LOTUS BOF "+d[2]);w.Enum=a,d[2]==14&&(w.qpro=!0,d.l=0),t(d,function(C,P,L){switch(L){case 204:S=C;break;case 22:C[1].v=C[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(C[3]>j&&(k["!ref"]=br(T),D[S]=k,N.push(S),k=w.dense?[]:{},T={s:{r:0,c:0},e:{r:0,c:0}},j=C[3],S="Sheet"+(j+1)),I>0&&C[0].r>=I)break;w.dense?(k[C[0].r]||(k[C[0].r]=[]),k[C[0].r][C[0].c]=C[1]):k[nr(C[0])]=C[1],T.e.c<C[0].c&&(T.e.c=C[0].c),T.e.r<C[0].r&&(T.e.r=C[0].r);break;case 27:C[14e3]&&(F[C[14e3][0]]=C[14e3][1]);break;case 1537:F[C[0]]=C[1],C[0]==j&&(S=C[1])}},w)}if(k["!ref"]=br(T),D[A||S]=k,N.push(A||S),!F.length)return{SheetNames:N,Sheets:D};for(var x={},O=[],R=0;R<F.length;++R)D[N[R]]?(O.push(F[R]||N[R]),x[F[R]]=D[F[R]]||D[N[R]]):(O.push(F[R]),x[F[R]]={"!ref":"A1"});return{SheetNames:O,Sheets:x}}function e(d,g,w){var k=[{c:0,r:0},{t:"n",v:0},0,0];return w.qpro&&w.vers!=20768?(k[0].c=d.read_shift(1),k[3]=d.read_shift(1),k[0].r=d.read_shift(2),d.l+=2):(k[2]=d.read_shift(1),k[0].c=d.read_shift(2),k[0].r=d.read_shift(2)),k}function n(d,g,w){var k=d.l+g,S=e(d,0,w);if(S[1].t="s",w.vers==20768){d.l++;var A=d.read_shift(1);return S[1].v=d.read_shift(A,"utf8"),S}return w.qpro&&d.l++,S[1].v=d.read_shift(k-d.l,"cstr"),S}function i(d,g,w){var k=Jt(7+w.length);k.write_shift(1,255),k.write_shift(2,g),k.write_shift(2,d),k.write_shift(1,39);for(var S=0;S<k.length;++S){var A=w.charCodeAt(S);k.write_shift(1,A>=128?95:A)}return k.write_shift(1,0),k}function c(d,g,w){var k=Jt(7);return k.write_shift(1,255),k.write_shift(2,g),k.write_shift(2,d),k.write_shift(2,w,"i"),k}function f(d,g,w){var k=Jt(13);return k.write_shift(1,255),k.write_shift(2,g),k.write_shift(2,d),k.write_shift(8,w,"f"),k}function l(d,g,w){var k=32768&g;return g=(k?d:0)+((g&=-32769)>=8192?g-16384:g),(k?"":"$")+(w?pn(g):Sn(g))}var u={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function p(d){var g=[{c:0,r:0},{t:"n",v:0},0];return g[0].r=d.read_shift(2),g[3]=d[d.l++],g[0].c=d[d.l++],g}function m(d,g,w,k){var S=Jt(6+k.length);S.write_shift(2,d),S.write_shift(1,w),S.write_shift(1,g),S.write_shift(1,39);for(var A=0;A<k.length;++A){var j=k.charCodeAt(A);S.write_shift(1,j>=128?95:j)}return S.write_shift(1,0),S}function b(d,g){var w=p(d),k=d.read_shift(4),S=d.read_shift(4),A=d.read_shift(2);if(A==65535)return k===0&&S===3221225472?(w[1].t="e",w[1].v=15):k===0&&S===3489660928?(w[1].t="e",w[1].v=42):w[1].v=0,w;var j=32768&A;return A=(32767&A)-16446,w[1].v=(1-2*j)*(S*Math.pow(2,A+32)+k*Math.pow(2,A)),w}function v(d,g,w,k){var S=Jt(14);if(S.write_shift(2,d),S.write_shift(1,w),S.write_shift(1,g),k==0)return S.write_shift(4,0),S.write_shift(4,0),S.write_shift(2,65535),S;var A,j=0,D=0,N=0;return k<0&&(j=1,k=-k),D=0|Math.log2(k),!(2147483648&(N=(k/=Math.pow(2,D-31))>>>0))&&(++D,N=(k/=2)>>>0),k-=N,N|=2147483648,N>>>=0,A=(k*=Math.pow(2,32))>>>0,S.write_shift(4,A),S.write_shift(4,N),D+=16383+(j?32768:0),S.write_shift(2,D),S}function _(d,g){var w=p(d),k=d.read_shift(8,"f");return w[1].v=k,w}function s(d,g){return d[d.l+g-1]==0?d.read_shift(g,"cstr"):""}function o(d,g){var w=Jt(5+d.length);w.write_shift(2,14e3),w.write_shift(2,g);for(var k=0;k<d.length;++k){var S=d.charCodeAt(k);w[w.l++]=S>127?95:S}return w[w.l++]=0,w}var h={0:{n:"BOF",f:mn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(d,g,w){var k={s:{c:0,r:0},e:{c:0,r:0}};return g==8&&w.qpro?(k.s.c=d.read_shift(1),d.l++,k.s.r=d.read_shift(2),k.e.c=d.read_shift(1),d.l++,k.e.r=d.read_shift(2),k):(k.s.c=d.read_shift(2),k.s.r=d.read_shift(2),g==12&&w.qpro&&(d.l+=2),k.e.c=d.read_shift(2),k.e.r=d.read_shift(2),g==12&&w.qpro&&(d.l+=2),k.s.c==65535&&(k.s.c=k.e.c=k.s.r=k.e.r=0),k)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(d,g,w){var k=e(d,0,w);return k[1].v=d.read_shift(2,"i"),k}},14:{n:"NUMBER",f:function(d,g,w){var k=e(d,0,w);return k[1].v=d.read_shift(8,"f"),k}},15:{n:"LABEL",f:n},16:{n:"FORMULA",f:function(d,g,w){var k=d.l+g,S=e(d,0,w);if(S[1].v=d.read_shift(8,"f"),w.qpro)d.l=k;else{var A=d.read_shift(2);(function(j,D){jn(j,0);for(var N=[],F=0,T="",I="",x="",O="";j.l<j.length;){var R=j[j.l++];switch(R){case 0:N.push(j.read_shift(8,"f"));break;case 1:I=l(D[0].c,j.read_shift(2),!0),T=l(D[0].r,j.read_shift(2),!1),N.push(I+T);break;case 2:var C=l(D[0].c,j.read_shift(2),!0),P=l(D[0].r,j.read_shift(2),!1);I=l(D[0].c,j.read_shift(2),!0),T=l(D[0].r,j.read_shift(2),!1),N.push(C+P+":"+I+T);break;case 3:if(j.l<j.length)return void console.error("WK1 premature formula end");break;case 4:N.push("("+N.pop()+")");break;case 5:N.push(j.read_shift(2));break;case 6:for(var L="";R=j[j.l++];)L+=String.fromCharCode(R);N.push('"'+L.replace(/"/g,'""')+'"');break;case 8:N.push("-"+N.pop());break;case 23:N.push("+"+N.pop());break;case 22:N.push("NOT("+N.pop()+")");break;case 20:case 21:O=N.pop(),x=N.pop(),N.push(["AND","OR"][R-20]+"("+x+","+O+")");break;default:if(R<32&&y[R])O=N.pop(),x=N.pop(),N.push(x+y[R]+O);else{if(!u[R])return R<=7?console.error("WK1 invalid opcode "+R.toString(16)):R<=24?console.error("WK1 unsupported op "+R.toString(16)):R<=30?console.error("WK1 invalid opcode "+R.toString(16)):R<=115?console.error("WK1 unsupported function opcode "+R.toString(16)):console.error("WK1 unrecognized opcode "+R.toString(16));if((F=u[R][1])==69&&(F=j[j.l++]),F>N.length)return void console.error("WK1 bad formula parse 0x"+R.toString(16)+":|"+N.join("|")+"|");var H=N.slice(-F);N.length-=F,N.push(u[R][0]+"("+H.join(",")+")")}}}N.length==1?D[1].f=""+N[0]:console.error("WK1 bad formula parse |"+N.join("|")+"|")})(d.slice(d.l,d.l+A),S),d.l+=A}return S}},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:n},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:s},222:{n:"SHEETNAMELP",f:function(d,g){var w=d[d.l++];w>g-1&&(w=g-1);for(var k="";k.length<w;)k+=String.fromCharCode(d[d.l++]);return k}},65535:{n:""}},a={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:function(d,g){var w=p(d);return w[1].t="s",w[1].v=d.read_shift(g-4,"cstr"),w}},23:{n:"NUMBER17",f:b},24:{n:"NUMBER18",f:function(d,g){var w=p(d);w[1].v=d.read_shift(2);var k=w[1].v>>1;if(1&w[1].v)switch(7&k){case 0:k=5e3*(k>>3);break;case 1:k=500*(k>>3);break;case 2:k=(k>>3)/20;break;case 3:k=(k>>3)/200;break;case 4:k=(k>>3)/2e3;break;case 5:k=(k>>3)/2e4;break;case 6:k=(k>>3)/16;break;case 7:k=(k>>3)/64}return w[1].v=k,w}},25:{n:"FORMULA19",f:function(d,g){var w=b(d);return d.l+=g-14,w}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(d,g){for(var w={},k=d.l+g;d.l<k;){var S=d.read_shift(2);if(S==14e3){for(w[S]=[0,""],w[S][0]=d.read_shift(2);d[d.l];)w[S][1]+=String.fromCharCode(d[d.l]),d.l++;d.l++}}return w}},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:function(d,g){var w=p(d),k=d.read_shift(4);return w[1].v=k>>6,w}},38:{n:"??"},39:{n:"NUMBER27",f:_},40:{n:"FORMULA28",f:function(d,g){var w=_(d);return d.l+=g-10,w}},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:s},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:function(d,g,w){if(w.qpro&&!(g<21)){var k=d.read_shift(1);return d.l+=17,d.l+=1,d.l+=2,[k,d.read_shift(g-21,"cstr")]}}},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:function(d,g){var w=g||{};if(+w.codepage>=0&&io(+w.codepage),w.type=="string")throw new Error("Cannot write WK1 to JS string");var k,S,A=vi(),j=Cr(d["!ref"]),D=Array.isArray(d),N=[];ke(A,0,(k=1030,(S=Jt(2)).write_shift(2,k),S)),ke(A,6,function(C){var P=Jt(8);return P.write_shift(2,C.s.c),P.write_shift(2,C.s.r),P.write_shift(2,C.e.c),P.write_shift(2,C.e.r),P}(j));for(var F=Math.min(j.e.r,8191),T=j.s.r;T<=F;++T)for(var I=Sn(T),x=j.s.c;x<=j.e.c;++x){T===j.s.r&&(N[x]=pn(x));var O=N[x]+I,R=D?(d[T]||[])[x]:d[O];R&&R.t!="z"&&(R.t=="n"?(0|R.v)==R.v&&R.v>=-32768&&R.v<=32767?ke(A,13,c(T,x,R.v)):ke(A,14,f(T,x,R.v)):ke(A,15,i(T,x,la(R).slice(0,239))))}return ke(A,1),A.end()},book_to_wk3:function(d,g){var w=g||{};if(+w.codepage>=0&&io(+w.codepage),w.type=="string")throw new Error("Cannot write WK3 to JS string");var k=vi();ke(k,0,function(L){var H=Jt(26);H.write_shift(2,4096),H.write_shift(2,4),H.write_shift(4,0);for(var U=0,B=0,W=0,X=0;X<L.SheetNames.length;++X){var et=L.SheetNames[X],ft=L.Sheets[et];if(ft&&ft["!ref"]){++W;var gt=Li(ft["!ref"]);U<gt.e.r&&(U=gt.e.r),B<gt.e.c&&(B=gt.e.c)}}return U>8191&&(U=8191),H.write_shift(2,U),H.write_shift(1,W),H.write_shift(1,B),H.write_shift(2,0),H.write_shift(2,0),H.write_shift(1,1),H.write_shift(1,2),H.write_shift(4,0),H.write_shift(4,0),H}(d));for(var S=0,A=0;S<d.SheetNames.length;++S)(d.Sheets[d.SheetNames[S]]||{})["!ref"]&&ke(k,27,o(d.SheetNames[S],A++));var j=0;for(S=0;S<d.SheetNames.length;++S){var D=d.Sheets[d.SheetNames[S]];if(D&&D["!ref"]){for(var N=Cr(D["!ref"]),F=Array.isArray(D),T=[],I=Math.min(N.e.r,8191),x=N.s.r;x<=I;++x)for(var O=Sn(x),R=N.s.c;R<=N.e.c;++R){x===N.s.r&&(T[R]=pn(R));var C=T[R]+O,P=F?(D[x]||[])[R]:D[C];P&&P.t!="z"&&(P.t=="n"?ke(k,23,v(x,R,j,P.v)):ke(k,22,m(x,R,j,la(P).slice(0,239))))}++j}}return ke(k,1),k.end()},to_workbook:function(d,g){switch(g.type){case"base64":return r(Oi(Ti(d)),g);case"binary":return r(Oi(d),g);case"buffer":case"array":return r(d,g)}throw"Unsupported type "+g.type}}}(),p3=function(){var t=cc("t"),r=cc("rPr");function e(c){var f=c.match(t);if(!f)return{t:"s",v:""};var l={t:"s",v:Tr(f[1])},u=c.match(r);return u&&(l.s=function(y){var p={},m=y.match(Hn),b=0,v=!1;if(m)for(;b!=m.length;++b){var _=Qe(m[b]);switch(_[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!_.val)break;case"<shadow>":case"<shadow/>":p.shadow=1;break;case"</shadow>":break;case"<charset":if(_.val=="1")break;p.cp=dl[parseInt(_.val,10)];break;case"<outline":if(!_.val)break;case"<outline>":case"<outline/>":p.outline=1;break;case"</outline>":break;case"<rFont":p.name=_.val;break;case"<sz":p.sz=_.val;break;case"<strike":if(!_.val)break;case"<strike>":case"<strike/>":p.strike=1;break;case"</strike>":break;case"<u":if(!_.val)break;switch(_.val){case"double":p.uval="double";break;case"singleAccounting":p.uval="single-accounting";break;case"doubleAccounting":p.uval="double-accounting"}case"<u>":case"<u/>":p.u=1;break;case"</u>":break;case"<b":if(_.val=="0")break;case"<b>":case"<b/>":p.b=1;break;case"</b>":break;case"<i":if(_.val=="0")break;case"<i>":case"<i/>":p.i=1;break;case"</i>":break;case"<color":_.rgb&&(p.color=_.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":p.family=_.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":p.valign=_.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":v=!0;break;case"</ext>":v=!1;break;default:if(_[0].charCodeAt(1)!==47&&!v)throw new Error("Unrecognized rich format "+_[0])}}return p}(u[1])),l}var n=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(c){return c.replace(n,"").split(i).map(e).filter(function(f){return f.v})}}(),m3=function(){var t=/(\r\n|\n)/g;function r(e){var n=[[],e.v,[]];return e.v?(e.s&&function(i,c,f){var l=[];i.u&&l.push("text-decoration: underline;"),i.uval&&l.push("text-underline-style:"+i.uval+";"),i.sz&&l.push("font-size:"+i.sz+"pt;"),i.outline&&l.push("text-effect: outline;"),i.shadow&&l.push("text-shadow: auto;"),c.push('<span style="'+l.join("")+'">'),i.b&&(c.push("<b>"),f.push("</b>")),i.i&&(c.push("<i>"),f.push("</i>")),i.strike&&(c.push("<s>"),f.push("</s>"));var u=i.valign||"";u=="superscript"||u=="super"?u="sup":u=="subscript"&&(u="sub"),u!=""&&(c.push("<"+u+">"),f.push("</"+u+">")),f.push("</span>")}(e.s,n[0],n[2]),n[0].join("")+n[1].replace(t,"<br/>")+n[2].join("")):""}return function(e){return e.map(r).join("")}}(),y3=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,v3=/<(?:\w+:)?r>/,b3=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function ql(t,r){var e=!r||r.cellHTML,n={};return t?(t.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Tr(Fr(t.slice(t.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Fr(t),e&&(n.h=Sl(n.t))):t.match(v3)&&(n.r=Fr(t),n.t=Tr(Fr((t.replace(b3,"").match(y3)||[]).join("").replace(Hn,""))),e&&(n.h=m3(p3(n.r)))),n):{t:""}}var g3=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,w3=/<(?:\w+:)?(?:si|sstItem)>/g,_3=/<\/(?:\w+:)?(?:si|sstItem)>/,k3=/^\s|\s$|[\t\n\r]/;function G1(t,r){if(!r.bookSST)return"";var e=[on];e[e.length]=we("sst",null,{xmlns:Da[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(t[n]!=null){var i=t[n],c="<si>";i.r?c+=i.r:(c+="<t",i.t||(i.t=""),i.t.match(k3)&&(c+=' xml:space="preserve"'),c+=">"+Mr(i.t)+"</t>"),c+="</si>",e[e.length]=c}return e.length>2&&(e[e.length]="</sst>",e[1]=e[1].replace("/>",">")),e.join("")}var x3=function(t,r){var e=!1;return r==null&&(e=!0,r=Jt(15+4*t.t.length)),r.write_shift(1,0),En(t.t,r),e?r.slice(0,r.l):r};function S3(t){var r=vi();ue(r,159,function(n,i){return i||(i=Jt(8)),i.write_shift(4,n.Count),i.write_shift(4,n.Unique),i}(t));for(var e=0;e<t.length;++e)ue(r,19,x3(t[e]));return ue(r,160),r.end()}function Y1(t){for(var r=[],e=t.split(""),n=0;n<e.length;++n)r[n]=e[n].charCodeAt(0);return r}function Vo(t,r){var e={};return e.Major=t.read_shift(2),e.Minor=t.read_shift(2),r>=4&&(t.l+=r-4),e}function E3(t){for(var r=t.read_shift(4),e=t.l+r-4,n={},i=t.read_shift(4),c=[];i-- >0;)c.push({t:t.read_shift(4),v:t.read_shift(0,"lpp4")});if(n.name=t.read_shift(0,"lpp4"),n.comps=c,t.l!=e)throw new Error("Bad DataSpaceMapEntry: "+t.l+" != "+e);return n}function T3(t){var r=function(e){var n={};return e.read_shift(4),e.l+=4,n.id=e.read_shift(0,"lpp4"),n.name=e.read_shift(0,"lpp4"),n.R=Vo(e,4),n.U=Vo(e,4),n.W=Vo(e,4),n}(t);if(r.ename=t.read_shift(0,"8lpp4"),r.blksz=t.read_shift(4),r.cmode=t.read_shift(4),t.read_shift(4)!=4)throw new Error("Bad !Primary record");return r}function K1(t,r){var e=t.l+r,n={};n.Flags=63&t.read_shift(4),t.l+=4,n.AlgID=t.read_shift(4);var i=!1;switch(n.AlgID){case 26126:case 26127:case 26128:i=n.Flags==36;break;case 26625:i=n.Flags==4;break;case 0:i=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=t.read_shift(4),n.KeySize=t.read_shift(4),n.ProviderType=t.read_shift(4),t.l+=8,n.CSPName=t.read_shift(e-t.l>>1,"utf16le"),t.l=e,n}function X1(t,r){var e={},n=t.l+r;return t.l+=4,e.Salt=t.slice(t.l,t.l+16),t.l+=16,e.Verifier=t.slice(t.l,t.l+16),t.l+=16,t.read_shift(4),e.VerifierHash=t.slice(t.l,n),t.l=n,e}function O3(t){if((63&t.read_shift(4))!=36)throw new Error("EncryptionInfo mismatch");var r=t.read_shift(4);return{t:"Std",h:K1(t,r),v:X1(t,t.length-t.l)}}function R3(){throw new Error("File is password-protected: ECMA-376 Extensible")}function C3(t){var r=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];t.l+=4;var e=t.read_shift(t.length-t.l,"utf8"),n={};return e.replace(Hn,function(i){var c=Qe(i);switch(_o(c[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":r.forEach(function(f){n[f]=c[f]});break;case"<dataIntegrity":n.encryptedHmacKey=c.encryptedHmacKey,n.encryptedHmacValue=c.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"<keyEncryptor":n.uri=c.uri;break;case"<encryptedKey":n.encs.push(c);break;default:throw c[0]}}),n}function Gl(t){var r,e,n=0,i=Y1(t),c=i.length+1;for((r=ca(c))[0]=i.length,e=1;e!=c;++e)r[e]=i[e-1];for(e=c-1;e>=0;--e)n=((16384&n?1:0)|n<<1&32767)^r[e];return 52811^n}var Z1=function(){var t=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],r=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],e=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(i,c){return 255&((f=i^c)/2|128*f);var f};return function(i){for(var c,f,l,u=Y1(i),y=function(v){for(var _=r[v.length-1],s=104,o=v.length-1;o>=0;--o)for(var h=v[o],a=0;a!=7;++a)64&h&&(_^=e[s]),h*=2,--s;return _}(u),p=u.length,m=ca(16),b=0;b!=16;++b)m[b]=0;for((1&p)==1&&(c=y>>8,m[p]=n(t[0],c),--p,c=255&y,f=u[u.length-1],m[p]=n(f,c));p>0;)c=y>>8,m[--p]=n(u[p],c),c=255&y,m[--p]=n(u[p],c);for(p=15,l=15-u.length;l>0;)c=y>>8,m[p]=n(t[l],c),--l,c=255&y,m[--p]=n(u[p],c),--p,--l;return m}}(),A3=function(t){var r=0,e=Z1(t);return function(n){var i=function(c,f,l,u,y){var p,m;for(y||(y=f),u||(u=Z1(c)),p=0;p!=f.length;++p)m=f[p],m=255&((m^=u[l])>>5|m<<3),y[p]=m,++l;return[y,l,u]}("",n,r,e);return r=i[1],i[0]}};function P3(t,r,e){var n=e||{};return n.Info=t.read_shift(2),t.l-=2,n.Info===1?n.Data=function(i){var c={},f=c.EncryptionVersionInfo=Vo(i,4);if(f.Major!=1||f.Minor!=1)throw"unrecognized version code "+f.Major+" : "+f.Minor;return c.Salt=i.read_shift(16),c.EncryptedVerifier=i.read_shift(16),c.EncryptedVerifierHash=i.read_shift(16),c}(t):n.Data=function(i,c){var f={},l=f.EncryptionVersionInfo=Vo(i,4);if(c-=4,l.Minor!=2)throw new Error("unrecognized minor version code: "+l.Minor);if(l.Major>4||l.Major<2)throw new Error("unrecognized major version code: "+l.Major);f.Flags=i.read_shift(4),c-=4;var u=i.read_shift(4);return c-=4,f.EncryptionHeader=K1(i,u),c-=u,f.EncryptionVerifier=X1(i,c),f}(t,r),n}var J1=function(){function t(e,n){switch(n.type){case"base64":return r(Ti(e),n);case"binary":return r(e,n);case"buffer":return r(pr&&Buffer.isBuffer(e)?e.toString("binary"):ua(e),n);case"array":return r(Ia(e),n)}throw new Error("Unrecognized type "+n.type)}function r(e,n){var i=(n||{}).dense?[]:{},c=e.match(/\\trowd.*?\\row\b/g);if(!c.length)throw new Error("RTF missing table");var f={s:{c:0,r:0},e:{c:0,r:c.length-1}};return c.forEach(function(l,u){Array.isArray(i)&&(i[u]=[]);for(var y,p=/\\\w+\b/g,m=0,b=-1;y=p.exec(l);){if(y[0]==="\\cell"){var v=l.slice(m,p.lastIndex-y[0].length);if(v[0]==" "&&(v=v.slice(1)),++b,v.length){var _={v,t:"s"};Array.isArray(i)?i[u][b]=_:i[nr({r:u,c:b})]=_}}m=p.lastIndex}b>f.e.c&&(f.e.c=b)}),i["!ref"]=br(f),i}return{to_workbook:function(e,n){return Fa(t(e,n),n)},to_sheet:t,from_sheet:function(e){for(var n,i=["{\\rtf1\\ansi"],c=Cr(e["!ref"]),f=Array.isArray(e),l=c.s.r;l<=c.e.r;++l){i.push("\\trowd\\trautofit1");for(var u=c.s.c;u<=c.e.c;++u)i.push("\\cellx"+(u+1));for(i.push("\\pard\\intbl"),u=c.s.c;u<=c.e.c;++u){var y=nr({r:l,c:u});(n=f?(e[l]||[])[u]:e[y])&&(n.v!=null||n.f&&!n.F)&&(i.push(" "+(n.w||(la(n),n.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}}}();function wc(t){for(var r=0,e=1;r!=3;++r)e=256*e+(t[r]>255?255:t[r]<0?0:t[r]);return e.toString(16).toUpperCase().slice(1)}function Iu(t,r){if(r===0)return t;var e,n,i=function(c){var f=c[0]/255,l=c[1]/255,u=c[2]/255,y=Math.max(f,l,u),p=Math.min(f,l,u),m=y-p;if(m===0)return[0,0,f];var b,v=0,_=y+p;switch(b=m/(_>1?2-_:_),y){case f:v=((l-u)/m+6)%6;break;case l:v=(u-f)/m+2;break;case u:v=(f-l)/m+4}return[v/6,b,_/2]}((n=(e=t).slice(e[0]==="#"?1:0).slice(0,6),[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)]));return i[2]=r<0?i[2]*(1+r):1-(1-i[2])*(1-r),wc(function(c){var f,l=c[0],u=c[1],y=c[2],p=2*u*(y<.5?y:1-y),m=y-p/2,b=[m,m,m],v=6*l;if(u!==0)switch(0|v){case 0:case 6:f=p*v,b[0]+=p,b[1]+=f;break;case 1:f=p*(2-v),b[0]+=f,b[1]+=p;break;case 2:f=p*(v-2),b[1]+=p,b[2]+=f;break;case 3:f=p*(4-v),b[1]+=f,b[2]+=p;break;case 4:f=p*(v-4),b[2]+=p,b[0]+=f;break;case 5:f=p*(6-v),b[2]+=f,b[0]+=p}for(var _=0;_!=3;++_)b[_]=Math.round(255*b[_]);return b}(i))}var Q1=6,M3=15,j3=1,Gn=Q1;function _c(t){return Math.floor((t+Math.round(128/Gn)/256)*Gn)}function kc(t){return Math.floor((t-5)/Gn*100+.5)/100}function Du(t){return Math.round((t*Gn+5)/Gn*256)/256}function Yl(t){return Du(kc(_c(t)))}function Kl(t){var r=Math.abs(t-Yl(t)),e=Gn;if(r>.005)for(Gn=j3;Gn<M3;++Gn)Math.abs(t-Yl(t))<=r&&(r=Math.abs(t-Yl(t)),e=Gn);Gn=e}function da(t){t.width?(t.wpx=_c(t.width),t.wch=kc(t.wpx),t.MDW=Gn):t.wpx?(t.wch=kc(t.wpx),t.width=Du(t.wch),t.MDW=Gn):typeof t.wch=="number"&&(t.width=Du(t.wch),t.wpx=_c(t.width),t.MDW=Gn),t.customWidth&&delete t.customWidth}var tm=96;function xc(t){return 96*t/tm}function Cs(t){return t*tm/96}var I3={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"},Nu=["numFmtId","fillId","fontId","borderId","xfId"],Fu=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],D3=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,e=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,n=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(c,f,l){var u,y={};return c&&((u=(c=c.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(t))&&function(p,m,b){m.NumberFmt=[];for(var v=nn(Je),_=0;_<v.length;++_)m.NumberFmt[v[_]]=Je[v[_]];var s=p[0].match(Hn);if(s)for(_=0;_<s.length;++_){var o=Qe(s[_]);switch(_o(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var h=Tr(Fr(o.formatCode)),a=parseInt(o.numFmtId,10);if(m.NumberFmt[a]=h,a>0){if(a>392){for(a=392;a>60&&m.NumberFmt[a]!=null;--a);m.NumberFmt[a]=h}Bo(h,a)}break;default:if(b.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}(u,y,l),(u=c.match(n))&&function(p,m,b,v){m.Fonts=[];var _={},s=!1;(p[0].match(Hn)||[]).forEach(function(o){var h=Qe(o);switch(_o(h[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":m.Fonts.push(_),_={};break;case"<name":h.val&&(_.name=Fr(h.val));break;case"<b":_.bold=h.val?$r(h.val):1;break;case"<b/>":_.bold=1;break;case"<i":_.italic=h.val?$r(h.val):1;break;case"<i/>":_.italic=1;break;case"<u":switch(h.val){case"none":_.underline=0;break;case"single":_.underline=1;break;case"double":_.underline=2;break;case"singleAccounting":_.underline=33;break;case"doubleAccounting":_.underline=34}break;case"<u/>":_.underline=1;break;case"<strike":_.strike=h.val?$r(h.val):1;break;case"<strike/>":_.strike=1;break;case"<outline":_.outline=h.val?$r(h.val):1;break;case"<outline/>":_.outline=1;break;case"<shadow":_.shadow=h.val?$r(h.val):1;break;case"<shadow/>":_.shadow=1;break;case"<condense":_.condense=h.val?$r(h.val):1;break;case"<condense/>":_.condense=1;break;case"<extend":_.extend=h.val?$r(h.val):1;break;case"<extend/>":_.extend=1;break;case"<sz":h.val&&(_.sz=+h.val);break;case"<vertAlign":h.val&&(_.vertAlign=h.val);break;case"<family":h.val&&(_.family=parseInt(h.val,10));break;case"<scheme":h.val&&(_.scheme=h.val);break;case"<charset":if(h.val=="1")break;h.codepage=dl[parseInt(h.val,10)];break;case"<color":if(_.color||(_.color={}),h.auto&&(_.color.auto=$r(h.auto)),h.rgb)_.color.rgb=h.rgb.slice(-6);else if(h.indexed){_.color.index=parseInt(h.indexed,10);var a=Ts[_.color.index];_.color.index==81&&(a=Ts[1]),a||(a=Ts[1]),_.color.rgb=a[0].toString(16)+a[1].toString(16)+a[2].toString(16)}else h.theme&&(_.color.theme=parseInt(h.theme,10),h.tint&&(_.color.tint=parseFloat(h.tint)),h.theme&&b.themeElements&&b.themeElements.clrScheme&&(_.color.rgb=Iu(b.themeElements.clrScheme[_.color.theme].rgb,_.color.tint||0)));break;case"<AlternateContent":case"<ext":s=!0;break;case"</AlternateContent>":case"</ext>":s=!1;break;default:if(v&&v.WTF&&!s)throw new Error("unrecognized "+h[0]+" in fonts")}})}(u,y,f,l),(u=c.match(e))&&function(p,m,b,v){m.Fills=[];var _={},s=!1;(p[0].match(Hn)||[]).forEach(function(o){var h=Qe(o);switch(_o(h[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":_={},m.Fills.push(_);break;case"<gradientFill":case"</gradientFill>":m.Fills.push(_),_={};break;case"<patternFill":case"<patternFill>":h.patternType&&(_.patternType=h.patternType);break;case"<bgColor":_.bgColor||(_.bgColor={}),h.indexed&&(_.bgColor.indexed=parseInt(h.indexed,10)),h.theme&&(_.bgColor.theme=parseInt(h.theme,10)),h.tint&&(_.bgColor.tint=parseFloat(h.tint)),h.rgb&&(_.bgColor.rgb=h.rgb.slice(-6));break;case"<fgColor":_.fgColor||(_.fgColor={}),h.theme&&(_.fgColor.theme=parseInt(h.theme,10)),h.tint&&(_.fgColor.tint=parseFloat(h.tint)),h.rgb!=null&&(_.fgColor.rgb=h.rgb.slice(-6));break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(v&&v.WTF&&!s)throw new Error("unrecognized "+h[0]+" in fills")}})}(u,y,0,l),(u=c.match(i))&&function(p,m,b,v){m.Borders=[];var _={},s=!1;(p[0].match(Hn)||[]).forEach(function(o){var h=Qe(o);switch(_o(h[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":_={},h.diagonalUp&&(_.diagonalUp=$r(h.diagonalUp)),h.diagonalDown&&(_.diagonalDown=$r(h.diagonalDown)),m.Borders.push(_);break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(v&&v.WTF&&!s)throw new Error("unrecognized "+h[0]+" in borders")}})}(u,y,0,l),(u=c.match(r))&&function(p,m,b){var v;m.CellXf=[];var _=!1;(p[0].match(Hn)||[]).forEach(function(s){var o=Qe(s),h=0;switch(_o(o[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":for(delete(v=o)[0],h=0;h<Nu.length;++h)v[Nu[h]]&&(v[Nu[h]]=parseInt(v[Nu[h]],10));for(h=0;h<Fu.length;++h)v[Fu[h]]&&(v[Fu[h]]=$r(v[Fu[h]]));if(m.NumberFmt&&v.numFmtId>392){for(h=392;h>60;--h)if(m.NumberFmt[v.numFmtId]==m.NumberFmt[h]){v.numFmtId=h;break}}m.CellXf.push(v);break;case"<alignment":case"<alignment/>":var a={};o.vertical&&(a.vertical=o.vertical),o.horizontal&&(a.horizontal=o.horizontal),o.textRotation!=null&&(a.textRotation=o.textRotation),o.indent&&(a.indent=o.indent),o.wrapText&&(a.wrapText=$r(o.wrapText)),v.alignment=a;break;case"<AlternateContent":case"<ext":_=!0;break;case"</AlternateContent>":case"</ext>":_=!1;break;default:if(b&&b.WTF&&!_)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}(u,y,l)),y}}();function em(t,r){var e,n=[on,we("styleSheet",null,{xmlns:Da[0],"xmlns:vt":bn.vt})];return t.SSF&&(e=function(i){var c=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(f){for(var l=f[0];l<=f[1];++l)i[l]!=null&&(c[c.length]=we("numFmt",null,{numFmtId:l,formatCode:Mr(i[l])}))}),c.length===1?"":(c[c.length]="</numFmts>",c[0]=we("numFmts",null,{count:c.length-2}).replace("/>",">"),c.join(""))}(t.SSF))!=null&&(n[n.length]=e),n[n.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',n[n.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',n[n.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',n[n.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(e=function(i){var c=[];return c[c.length]=we("cellXfs",null),i.forEach(function(f){c[c.length]=we("xf",null,f)}),c[c.length]="</cellXfs>",c.length===2?"":(c[0]=we("cellXfs",null,{count:c.length-2}).replace("/>",">"),c.join(""))}(r.cellXfs))&&(n[n.length]=e),n[n.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',n[n.length]='<dxfs count="0"/>',n[n.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',n.length>2&&(n[n.length]="</styleSheet>",n[1]=n[1].replace("/>",">")),n.join("")}function N3(t,r,e){e||(e=Jt(6+4*r.length)),e.write_shift(2,t),En(r,e);var n=e.length>e.l?e.slice(0,e.l):e;return e.l==null&&(e.l=e.length),n}function F3(t,r){r||(r=Jt(153)),r.write_shift(2,20*t.sz),function(i,c){c||(c=Jt(2));var f=(i.italic?2:0)|(i.strike?8:0)|(i.outline?16:0)|(i.shadow?32:0)|(i.condense?64:0)|(i.extend?128:0);c.write_shift(1,f),c.write_shift(1,0)}(t,r),r.write_shift(2,t.bold?700:400);var e=0;t.vertAlign=="superscript"?e=1:t.vertAlign=="subscript"&&(e=2),r.write_shift(2,e),r.write_shift(1,t.underline||0),r.write_shift(1,t.family||0),r.write_shift(1,t.charset||0),r.write_shift(1,0),Ru(t.color,r);var n=0;return t.scheme=="major"&&(n=1),t.scheme=="minor"&&(n=2),r.write_shift(1,n),En(t.name,r),r.length>r.l?r.slice(0,r.l):r}var Xl,L3=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],B3=Wn;function rm(t,r){r||(r=Jt(84)),Xl||(Xl=_u(L3));var e=Xl[t.patternType];e==null&&(e=40),r.write_shift(4,e);var n=0;if(e!=40)for(Ru({auto:1},r),Ru({auto:1},r);n<12;++n)r.write_shift(4,0);else{for(;n<4;++n)r.write_shift(4,0);for(;n<12;++n)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function nm(t,r,e){return e||(e=Jt(16)),e.write_shift(2,r||0),e.write_shift(2,t.numFmtId||0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function Sc(t,r){return r||(r=Jt(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var z3=Wn;function U3(t){var r;ue(t,613,ao(1)),ue(t,46,(r||(r=Jt(51)),r.write_shift(1,0),Sc(0,r),Sc(0,r),Sc(0,r),Sc(0,r),Sc(0,r),r.length>r.l?r.slice(0,r.l):r)),ue(t,614)}function H3(t){var r,e;ue(t,619,ao(1)),ue(t,48,(r={xfId:0,builtinId:0,name:"Normal"},e||(e=Jt(52)),e.write_shift(4,r.xfId),e.write_shift(2,1),e.write_shift(1,+r.builtinId),e.write_shift(1,0),Ou(r.name||"",e),e.length>e.l?e.slice(0,e.l):e)),ue(t,620)}function W3(t){ue(t,508,function(r,e,n){var i=Jt(2052);return i.write_shift(4,r),Ou(e,i),Ou(n,i),i.length>i.l?i.slice(0,i.l):i}(0,"TableStyleMedium9","PivotStyleMedium4")),ue(t,509)}function V3(t,r){var e=vi();return ue(e,278),function(n,i){if(i){var c=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(f){for(var l=f[0];l<=f[1];++l)i[l]!=null&&++c}),c!=0&&(ue(n,615,ao(c)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(f){for(var l=f[0];l<=f[1];++l)i[l]!=null&&ue(n,44,N3(l,i[l]))}),ue(n,616))}}(e,t.SSF),function(n){ue(n,611,ao(1)),ue(n,43,F3({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ue(n,612)}(e),function(n){ue(n,603,ao(2)),ue(n,45,rm({patternType:"none"})),ue(n,45,rm({patternType:"gray125"})),ue(n,604)}(e),U3(e),function(n){ue(n,626,ao(1)),ue(n,47,nm({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ue(n,627)}(e),function(n,i){ue(n,617,ao(i.length)),i.forEach(function(c){ue(n,47,nm(c,0))}),ue(n,618)}(e,r.cellXfs),H3(e),function(n){ue(n,505,ao(0)),ue(n,506)}(e),W3(e),ue(e,279),e.end()}var $3=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function q3(t,r,e){r.themeElements.clrScheme=[];var n={};(t[0].match(Hn)||[]).forEach(function(i){var c=Qe(i);switch(c[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=c.val;break;case"<a:sysClr":n.rgb=c.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":c[0].charAt(1)==="/"?(r.themeElements.clrScheme[$3.indexOf(c[0])]=n,n={}):n.name=c[0].slice(3,c[0].length-1);break;default:if(e&&e.WTF)throw new Error("Unrecognized "+c[0]+" in clrScheme")}})}function G3(){}function Y3(){}var K3=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,X3=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,Z3=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,J3=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function im(t,r){var e;t&&t.length!==0||(t=Zl());var n={};if(!(e=t.match(J3)))throw new Error("themeElements not found in theme");return function(i,c,f){var l;c.themeElements={},[["clrScheme",K3,q3],["fontScheme",X3,G3],["fmtScheme",Z3,Y3]].forEach(function(u){if(!(l=i.match(u[1])))throw new Error(u[0]+" not found in themeElements");u[2](l,c,f)})}(e[0],n,r),n.raw=t,n}function Zl(t,r){if(r&&r.themeXLSX)return r.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var e=[on];return e[e.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',e[e.length]="<a:themeElements>",e[e.length]='<a:clrScheme name="Office">',e[e.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',e[e.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',e[e.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',e[e.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',e[e.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',e[e.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',e[e.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',e[e.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',e[e.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',e[e.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',e[e.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',e[e.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',e[e.length]="</a:clrScheme>",e[e.length]='<a:fontScheme name="Office">',e[e.length]="<a:majorFont>",e[e.length]='<a:latin typeface="Cambria"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',e[e.length]='<a:font script="Hang" typeface="맑은 고딕"/>',e[e.length]='<a:font script="Hans" typeface="宋体"/>',e[e.length]='<a:font script="Hant" typeface="新細明體"/>',e[e.length]='<a:font script="Arab" typeface="Times New Roman"/>',e[e.length]='<a:font script="Hebr" typeface="Times New Roman"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="MoolBoran"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Times New Roman"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:majorFont>",e[e.length]="<a:minorFont>",e[e.length]='<a:latin typeface="Calibri"/>',e[e.length]='<a:ea typeface=""/>',e[e.length]='<a:cs typeface=""/>',e[e.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',e[e.length]='<a:font script="Hang" typeface="맑은 고딕"/>',e[e.length]='<a:font script="Hans" typeface="宋体"/>',e[e.length]='<a:font script="Hant" typeface="新細明體"/>',e[e.length]='<a:font script="Arab" typeface="Arial"/>',e[e.length]='<a:font script="Hebr" typeface="Arial"/>',e[e.length]='<a:font script="Thai" typeface="Tahoma"/>',e[e.length]='<a:font script="Ethi" typeface="Nyala"/>',e[e.length]='<a:font script="Beng" typeface="Vrinda"/>',e[e.length]='<a:font script="Gujr" typeface="Shruti"/>',e[e.length]='<a:font script="Khmr" typeface="DaunPenh"/>',e[e.length]='<a:font script="Knda" typeface="Tunga"/>',e[e.length]='<a:font script="Guru" typeface="Raavi"/>',e[e.length]='<a:font script="Cans" typeface="Euphemia"/>',e[e.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',e[e.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',e[e.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',e[e.length]='<a:font script="Thaa" typeface="MV Boli"/>',e[e.length]='<a:font script="Deva" typeface="Mangal"/>',e[e.length]='<a:font script="Telu" typeface="Gautami"/>',e[e.length]='<a:font script="Taml" typeface="Latha"/>',e[e.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',e[e.length]='<a:font script="Orya" typeface="Kalinga"/>',e[e.length]='<a:font script="Mlym" typeface="Kartika"/>',e[e.length]='<a:font script="Laoo" typeface="DokChampa"/>',e[e.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',e[e.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',e[e.length]='<a:font script="Viet" typeface="Arial"/>',e[e.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',e[e.length]='<a:font script="Geor" typeface="Sylfaen"/>',e[e.length]="</a:minorFont>",e[e.length]="</a:fontScheme>",e[e.length]='<a:fmtScheme name="Office">',e[e.length]="<a:fillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="1"/>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:lin ang="16200000" scaled="0"/>',e[e.length]="</a:gradFill>",e[e.length]="</a:fillStyleLst>",e[e.length]="<a:lnStyleLst>",e[e.length]='<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>',e[e.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',e[e.length]="</a:lnStyleLst>",e[e.length]="<a:effectStyleLst>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]="</a:effectStyle>",e[e.length]="<a:effectStyle>",e[e.length]="<a:effectLst>",e[e.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',e[e.length]="</a:effectLst>",e[e.length]='<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>',e[e.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',e[e.length]="</a:effectStyle>",e[e.length]="</a:effectStyleLst>",e[e.length]="<a:bgFillStyleLst>",e[e.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]='<a:gradFill rotWithShape="1">',e[e.length]="<a:gsLst>",e[e.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',e[e.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',e[e.length]="</a:gsLst>",e[e.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',e[e.length]="</a:gradFill>",e[e.length]="</a:bgFillStyleLst>",e[e.length]="</a:fmtScheme>",e[e.length]="</a:themeElements>",e[e.length]="<a:objectDefaults>",e[e.length]="<a:spDef>",e[e.length]='<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>',e[e.length]="</a:spDef>",e[e.length]="<a:lnDef>",e[e.length]='<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>',e[e.length]="</a:lnDef>",e[e.length]="</a:objectDefaults>",e[e.length]="<a:extraClrSchemeLst/>",e[e.length]="</a:theme>",e.join("")}function Q3(t){var r={};switch(r.xclrType=t.read_shift(2),r.nTintShade=t.read_shift(2),r.xclrType){case 0:case 4:t.l+=4;break;case 1:r.xclrValue=function(e,n){return Wn(e,n)}(t,4);break;case 2:r.xclrValue=R1(t);break;case 3:r.xclrValue=function(e){return e.read_shift(4)}(t)}return t.l+=8,r}function t4(t){var r=t.read_shift(2),e=t.read_shift(2)-4,n=[r];switch(r){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=Q3(t);break;case 6:n[1]=function(i,c){return Wn(i,c)}(t,e);break;case 14:case 15:n[1]=t.read_shift(e===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+r+" "+e)}return n}function e4(){var t,r,e=vi();return ue(e,332),ue(e,334,ao(1)),ue(e,335,((r=Jt(12+2*(t={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,t.flags),r.write_shift(4,t.version),En(t.name,r),r.slice(0,r.l))),ue(e,336),ue(e,339,function(n,i){var c=Jt(8+2*i.length);return c.write_shift(4,n),En(i,c),c.slice(0,c.l)}(1,"XLDAPR")),ue(e,52),ue(e,35,ao(514)),ue(e,4096,ao(0)),ue(e,4097,Ui(1)),ue(e,36),ue(e,53),ue(e,340),ue(e,337,function(n,i){var c=Jt(8);return c.write_shift(4,n),c.write_shift(4,i?1:0),c}(1,!0)),ue(e,51,function(n){var i=Jt(4+8*n.length);i.write_shift(4,n.length);for(var c=0;c<n.length;++c)i.write_shift(4,n[c][0]),i.write_shift(4,n[c][1]);return i}([[1,0]])),ue(e,338),ue(e,333),e.end()}function om(){var t=[on];return t.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
|
||
<metadataTypes count="1">
|
||
<metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
|
||
</metadataTypes>
|
||
<futureMetadata name="XLDAPR" count="1">
|
||
<bk>
|
||
<extLst>
|
||
<ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
|
||
<xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
|
||
</ext>
|
||
</extLst>
|
||
</bk>
|
||
</futureMetadata>
|
||
<cellMetadata count="1">
|
||
<bk>
|
||
<rc t="1" v="0"/>
|
||
</bk>
|
||
</cellMetadata>
|
||
</metadata>`),t.join("")}var As=1024;function am(t,r){for(var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),i=[we("xml",null,{"xmlns:v":Ci.v,"xmlns:o":Ci.o,"xmlns:x":Ci.x,"xmlns:mv":Ci.mv}).replace(/\/>/,">"),we("o:shapelayout",we("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),we("v:shapetype",[we("v:stroke",null,{joinstyle:"miter"}),we("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:e.join(","),path:n})];As<1e3*t;)As+=1e3;return r.forEach(function(c){var f=gn(c[0]),l={color2:"#BEFF82",type:"gradient"};l.type=="gradient"&&(l.angle="-180");var u=l.type=="gradient"?we("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,y=we("v:fill",u,l);++As,i=i.concat(["<v:shape"+uc({id:"_x0000_s"+As,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(c[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",y,we("v:shadow",null,{on:"t",obscured:"t"}),we("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Mn("x:Anchor",[f.c+1,0,f.r+1,0,f.c+3,20,f.r+5,20].join(",")),Mn("x:AutoFill","False"),Mn("x:Row",String(f.r)),Mn("x:Column",String(f.c)),c[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function sm(t,r,e,n){var i,c=Array.isArray(t);r.forEach(function(f){var l=gn(f.ref);if(c?(t[l.r]||(t[l.r]=[]),i=t[l.r][l.c]):i=t[f.ref],!i){i={t:"z"},c?t[l.r][l.c]=i:t[f.ref]=i;var u=Cr(t["!ref"]||"BDWGO1000001:A1");u.s.r>l.r&&(u.s.r=l.r),u.e.r<l.r&&(u.e.r=l.r),u.s.c>l.c&&(u.s.c=l.c),u.e.c<l.c&&(u.e.c=l.c);var y=br(u);y!==t["!ref"]&&(t["!ref"]=y)}i.c||(i.c=[]);var p={a:f.author,t:f.t,r:f.r,T:e};f.h&&(p.h=f.h);for(var m=i.c.length-1;m>=0;--m){if(!e&&i.c[m].T)return;e&&!i.c[m].T&&i.c.splice(m,1)}if(e&&n){for(m=0;m<n.length;++m)if(p.a==n[m].id){p.a=n[m].name||p.a;break}}i.c.push(p)})}function cm(t){var r=[on,we("comments",null,{xmlns:Da[0]})],e=[];return r.push("<authors>"),t.forEach(function(n){n[1].forEach(function(i){var c=Mr(i.a);e.indexOf(c)==-1&&(e.push(c),r.push("<author>"+c+"</author>")),i.T&&i.ID&&e.indexOf("tc="+i.ID)==-1&&(e.push("tc="+i.ID),r.push("<author>tc="+i.ID+"</author>"))})}),e.length==0&&(e.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),t.forEach(function(n){var i=0,c=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=e.indexOf("tc="+n[1][0].ID):n[1].forEach(function(u){u.a&&(i=e.indexOf(Mr(u.a))),c.push(u.t||"")}),r.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),c.length<=1)r.push(Mn("t",Mr(c[0]||"")));else{for(var f=`Comment:
|
||
`+c[0]+`
|
||
`,l=1;l<c.length;++l)f+=`Reply:
|
||
`+c[l]+`
|
||
`;r.push(Mn("t",Mr(f)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function r4(t,r,e){var n=[on,we("ThreadedComments",null,{xmlns:bn.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(i){var c="";(i[1]||[]).forEach(function(f,l){if(f.T){f.a&&r.indexOf(f.a)==-1&&r.push(f.a);var u={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};l==0?c=u.id:u.parentId=c,f.ID=u.id,f.a&&(u.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(f.a)).slice(-12)+"}"),n.push(we("threadedComment",Mn("text",f.t||""),u))}else delete f.ID})}),n.push("</ThreadedComments>"),n.join("")}var n4=Vn;function i4(t){var r=vi(),e=[];return ue(r,628),ue(r,630),t.forEach(function(n){n[1].forEach(function(i){e.indexOf(i.a)>-1||(e.push(i.a.slice(0,54)),ue(r,632,function(c){return En(c.slice(0,54))}(i.a)))})}),ue(r,631),ue(r,633),t.forEach(function(n){n[1].forEach(function(i){i.iauthor=e.indexOf(i.a);var c={s:gn(n[0]),e:gn(n[0])};ue(r,635,function(f,l){return l==null&&(l=Jt(36)),l.write_shift(4,f[1].iauthor),Ss(f[0],l),l.write_shift(4,0),l.write_shift(4,0),l.write_shift(4,0),l.write_shift(4,0),l}([c,i])),i.t&&i.t.length>0&&ue(r,637,Lw(i)),ue(r,636),delete i.iauthor})}),ue(r,634),ue(r,629),r.end()}var o4="application/vnd.ms-office.vbaProject",um=["xlsb","xlsm","xlam","biff8","xla"],Ps=function(){var t=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function e(n,i,c,f){var l=!1,u=!1;c.length==0?u=!0:c.charAt(0)=="["&&(u=!0,c=c.slice(1,-1)),f.length==0?l=!0:f.charAt(0)=="["&&(l=!0,f=f.slice(1,-1));var y=c.length>0?0|parseInt(c,10):0,p=f.length>0?0|parseInt(f,10):0;return l?p+=r.c:--p,u?y+=r.r:--y,i+(l?"":"$")+pn(p)+(u?"":"$")+Sn(y)}return function(n,i){return r=i,n.replace(t,e)}}(),Jl=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Ql=function(){return function(t,r){return t.replace(Jl,function(e,n,i,c,f,l){var u=Y0(c)-(i?0:r.c),y=G0(l)-(f?0:r.r);return n+"R"+(y==0?"":f?y+1:"["+y+"]")+"C"+(u==0?"":i?u+1:"["+u+"]")})}}();function fm(t,r){return t.replace(Jl,function(e,n,i,c,f,l){return n+(i=="$"?i+c:pn(Y0(c)+r.c))+(f=="$"?f+l:Sn(G0(l)+r.r))})}function a4(t,r,e){var n=Li(r).s,i=gn(e);return fm(t,{r:i.r-n.r,c:i.c-n.c})}function lm(t){return t.replace(/_xlfn\./g,"")}function yn(t){t.l+=1}function pa(t,r){var e=t.read_shift(r==1?1:2);return[16383&e,e>>14&1,e>>15&1]}function hm(t,r,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return dm(t);e.biff==12&&(n=4)}var i=t.read_shift(n),c=t.read_shift(n),f=pa(t,2),l=pa(t,2);return{s:{r:i,c:f[0],cRel:f[1],rRel:f[2]},e:{r:c,c:l[0],cRel:l[1],rRel:l[2]}}}function dm(t){var r=pa(t,2),e=pa(t,2),n=t.read_shift(1),i=t.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:e[0],c:i,cRel:e[1],rRel:e[2]}}}function pm(t,r,e){if(e&&e.biff>=2&&e.biff<=5)return function(c){var f=pa(c,2),l=c.read_shift(1);return{r:f[0],c:l,cRel:f[1],rRel:f[2]}}(t);var n=t.read_shift(e&&e.biff==12?4:2),i=pa(t,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function s4(t){var r=t.read_shift(2),e=t.read_shift(2);return{r,c:255&e,fQuoted:!!(16384&e),cRel:e>>15,rRel:e>>15}}function mm(t){var r=1&t[t.l+1];return t.l+=4,[r,1]}function ym(t){return[t.read_shift(1),t.read_shift(1)]}function c4(t,r){var e=[t.read_shift(1)];if(r==12)switch(e[0]){case 2:e[0]=4;break;case 4:e[0]=16;break;case 0:e[0]=1;break;case 1:e[0]=2}switch(e[0]){case 4:e[1]=an(t,1)?"TRUE":"FALSE",r!=12&&(t.l+=7);break;case 37:case 16:e[1]=Wo[t[t.l]],t.l+=r==12?4:8;break;case 0:t.l+=8;break;case 1:e[1]=$n(t);break;case 2:e[1]=Va(t,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function u4(t,r,e){for(var n=t.read_shift(e.biff==12?4:2),i=[],c=0;c!=n;++c)i.push((e.biff==12?Ua:Mu)(t));return i}function f4(t,r,e){var n=0,i=0;e.biff==12?(n=t.read_shift(4),i=t.read_shift(4)):(i=1+t.read_shift(1),n=1+t.read_shift(2)),e.biff>=2&&e.biff<8&&(--n,--i==0&&(i=256));for(var c=0,f=[];c!=n&&(f[c]=[]);++c)for(var l=0;l!=i;++l)f[c][l]=c4(t,e.biff);return f}function Ec(t,r,e){return t.l+=2,[s4(t)]}function th(t){return t.l+=6,[]}function vm(t){return t.l+=2,[mn(t),1&t.read_shift(2)]}var l4=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],bm={1:{n:"PtgExp",f:function(t,r,e){return t.l++,e&&e.biff==12?[t.read_shift(4,"i"),0]:[t.read_shift(2),t.read_shift(e&&e.biff==2?1:2)]}},2:{n:"PtgTbl",f:Wn},3:{n:"PtgAdd",f:yn},4:{n:"PtgSub",f:yn},5:{n:"PtgMul",f:yn},6:{n:"PtgDiv",f:yn},7:{n:"PtgPower",f:yn},8:{n:"PtgConcat",f:yn},9:{n:"PtgLt",f:yn},10:{n:"PtgLe",f:yn},11:{n:"PtgEq",f:yn},12:{n:"PtgGe",f:yn},13:{n:"PtgGt",f:yn},14:{n:"PtgNe",f:yn},15:{n:"PtgIsect",f:yn},16:{n:"PtgUnion",f:yn},17:{n:"PtgRange",f:yn},18:{n:"PtgUplus",f:yn},19:{n:"PtgUminus",f:yn},20:{n:"PtgPercent",f:yn},21:{n:"PtgParen",f:yn},22:{n:"PtgMissArg",f:yn},23:{n:"PtgStr",f:function(t,r,e){return t.l++,bc(t,0,e)}},26:{n:"PtgSheet",f:function(t,r,e){return t.l+=5,t.l+=2,t.l+=e.biff==2?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(t,r,e){return t.l+=e.biff==2?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(t){return t.l++,Wo[t.read_shift(1)]}},29:{n:"PtgBool",f:function(t){return t.l++,t.read_shift(1)!==0}},30:{n:"PtgInt",f:function(t){return t.l++,t.read_shift(2)}},31:{n:"PtgNum",f:function(t){return t.l++,$n(t)}},32:{n:"PtgArray",f:function(t,r,e){var n=(96&t[t.l++])>>5;return t.l+=e.biff==2?6:e.biff==12?14:7,[n]}},33:{n:"PtgFunc",f:function(t,r,e){var n=(96&t[t.l])>>5;t.l+=1;var i=t.read_shift(e&&e.biff<=3?1:2);return[S4[i],_m[i],n]}},34:{n:"PtgFuncVar",f:function(t,r,e){var n=t[t.l++],i=t.read_shift(1),c=e&&e.biff<=3?[n==88?-1:0,t.read_shift(1)]:function(f){return[f[f.l+1]>>7,32767&f.read_shift(2)]}(t);return[i,(c[0]===0?_m:x4)[c[1]]]}},35:{n:"PtgName",f:function(t,r,e){var n=t.read_shift(1)>>>5&3,i=!e||e.biff>=8?4:2,c=t.read_shift(i);switch(e.biff){case 2:t.l+=5;break;case 3:case 4:t.l+=8;break;case 5:t.l+=12}return[n,0,c]}},36:{n:"PtgRef",f:function(t,r,e){var n=(96&t[t.l])>>5;return t.l+=1,[n,pm(t,0,e)]}},37:{n:"PtgArea",f:function(t,r,e){return[(96&t[t.l++])>>5,hm(t,e.biff>=2&&e.biff,e)]}},38:{n:"PtgMemArea",f:function(t,r,e){var n=t.read_shift(1)>>>5&3;return t.l+=e&&e.biff==2?3:4,[n,t.read_shift(e&&e.biff==2?1:2)]}},39:{n:"PtgMemErr",f:Wn},40:{n:"PtgMemNoMem",f:Wn},41:{n:"PtgMemFunc",f:function(t,r,e){return[t.read_shift(1)>>>5&3,t.read_shift(e&&e.biff==2?1:2)]}},42:{n:"PtgRefErr",f:function(t,r,e){var n=t.read_shift(1)>>>5&3;return t.l+=4,e.biff<8&&t.l--,e.biff==12&&(t.l+=2),[n]}},43:{n:"PtgAreaErr",f:function(t,r,e){var n=(96&t[t.l++])>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[n]}},44:{n:"PtgRefN",f:function(t,r,e){var n=(96&t[t.l])>>5;t.l+=1;var i=function(c,f,l){var u=l&&l.biff?l.biff:8;if(u>=2&&u<=5)return function(v){var _=v.read_shift(2),s=v.read_shift(1),o=(32768&_)>>15,h=(16384&_)>>14;return _&=16383,o==1&&_>=8192&&(_-=16384),h==1&&s>=128&&(s-=256),{r:_,c:s,cRel:h,rRel:o}}(c);var y=c.read_shift(u>=12?4:2),p=c.read_shift(2),m=(16384&p)>>14,b=(32768&p)>>15;if(p&=16383,b==1)for(;y>524287;)y-=1048576;if(m==1)for(;p>8191;)p-=16384;return{r:y,c:p,cRel:m,rRel:b}}(t,0,e);return[n,i]}},45:{n:"PtgAreaN",f:function(t,r,e){var n=(96&t[t.l++])>>5,i=function(c,f,l){if(l.biff<8)return dm(c);var u=c.read_shift(l.biff==12?4:2),y=c.read_shift(l.biff==12?4:2),p=pa(c,2),m=pa(c,2);return{s:{r:u,c:p[0],cRel:p[1],rRel:p[2]},e:{r:y,c:m[0],cRel:m[1],rRel:m[2]}}}(t,0,e);return[n,i]}},46:{n:"PtgMemAreaN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(t){return[t.read_shift(1)>>>5&3,t.read_shift(2)]}},57:{n:"PtgNameX",f:function(t,r,e){return e.biff==5?function(n){var i=n.read_shift(1)>>>5&3,c=n.read_shift(2,"i");n.l+=8;var f=n.read_shift(2);return n.l+=12,[i,c,f]}(t):[t.read_shift(1)>>>5&3,t.read_shift(2),t.read_shift(4)]}},58:{n:"PtgRef3d",f:function(t,r,e){var n=(96&t[t.l])>>5;t.l+=1;var i=t.read_shift(2);return e&&e.biff==5&&(t.l+=12),[n,i,pm(t,0,e)]}},59:{n:"PtgArea3d",f:function(t,r,e){var n=(96&t[t.l++])>>5,i=t.read_shift(2,"i");if(e)switch(e.biff){case 5:t.l+=12;break}return[n,i,hm(t,0,e)]}},60:{n:"PtgRefErr3d",f:function(t,r,e){var n=(96&t[t.l++])>>5,i=t.read_shift(2),c=4;if(e)switch(e.biff){case 5:c=15;break;case 12:c=6}return t.l+=c,[n,i]}},61:{n:"PtgAreaErr3d",f:function(t,r,e){var n=(96&t[t.l++])>>5,i=t.read_shift(2),c=8;if(e)switch(e.biff){case 5:t.l+=12,c=6;break;case 12:c=12}return t.l+=c,[n,i]}},255:{}},h4={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},d4={1:{n:"PtgElfLel",f:vm},2:{n:"PtgElfRw",f:Ec},3:{n:"PtgElfCol",f:Ec},6:{n:"PtgElfRwV",f:Ec},7:{n:"PtgElfColV",f:Ec},10:{n:"PtgElfRadical",f:Ec},11:{n:"PtgElfRadicalS",f:th},13:{n:"PtgElfColS",f:th},15:{n:"PtgElfColSV",f:th},16:{n:"PtgElfRadicalLel",f:vm},25:{n:"PtgList",f:function(t){t.l+=2;var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(4),i=t.read_shift(2),c=t.read_shift(2);return{ixti:r,coltype:3&e,rt:l4[e>>2&31],idx:n,c:i,C:c}}},29:{n:"PtgSxName",f:function(t){return t.l+=2,[t.read_shift(4)]}},255:{}},p4={0:{n:"PtgAttrNoop",f:function(t){return t.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(t,r,e){var n=255&t[t.l+1]?1:0;return t.l+=e&&e.biff==2?3:4,[n]}},2:{n:"PtgAttrIf",f:function(t,r,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&e.biff==2?1:2)]}},4:{n:"PtgAttrChoose",f:function(t,r,e){t.l+=2;for(var n=t.read_shift(e&&e.biff==2?1:2),i=[],c=0;c<=n;++c)i.push(t.read_shift(e&&e.biff==2?1:2));return i}},8:{n:"PtgAttrGoto",f:function(t,r,e){var n=255&t[t.l+1]?1:0;return t.l+=2,[n,t.read_shift(e&&e.biff==2?1:2)]}},16:{n:"PtgAttrSum",f:function(t,r,e){t.l+=e&&e.biff==2?3:4}},32:{n:"PtgAttrBaxcel",f:mm},33:{n:"PtgAttrBaxcel",f:mm},64:{n:"PtgAttrSpace",f:function(t){return t.read_shift(2),ym(t)}},65:{n:"PtgAttrSpaceSemi",f:function(t){return t.read_shift(2),ym(t)}},128:{n:"PtgAttrIfError",f:function(t){var r=255&t[t.l+1]?1:0;return t.l+=2,[r,t.read_shift(2)]}},255:{}};function Tc(t,r,e,n){if(n.biff<8)return Wn(t,r);for(var i=t.l+r,c=[],f=0;f!==e.length;++f)switch(e[f][0]){case"PtgArray":e[f][1]=f4(t,0,n),c.push(e[f][1]);break;case"PtgMemArea":e[f][2]=u4(t,e[f][1],n),c.push(e[f][2]);break;case"PtgExp":n&&n.biff==12&&(e[f][1][1]=t.read_shift(4),c.push(e[f][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[f][0]}return(r=i-t.l)!==0&&c.push(Wn(t,r)),c}function Oc(t,r,e){for(var n,i,c=t.l+r,f=[];c!=t.l;)r=c-t.l,i=t[t.l],n=bm[i]||bm[h4[i]],i!==24&&i!==25||(n=(i===24?d4:p4)[t[t.l+1]]),n&&n.f?f.push([n.n,n.f(t,r,e)]):Wn(t,r);return f}function m4(t){for(var r=[],e=0;e<t.length;++e){for(var n=t[e],i=[],c=0;c<n.length;++c){var f=n[c];f?f[0]===2?i.push('"'+f[1].replace(/"/g,'""')+'"'):i.push(f[1]):i.push("")}r.push(i.join(","))}return r.join(";")}var y4={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function gm(t,r,e){if(!t)return"SH33TJSERR0";if(e.biff>8&&(!t.XTI||!t.XTI[r]))return t.SheetNames[r];if(!t.XTI)return"SH33TJSERR6";var n=t.XTI[r];if(e.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":t.XTI[r-1];if(!n)return"SH33TJSERR1";var i="";if(e.biff>8)switch(t[n[0]][0]){case 357:return i=n[1]==-1?"#REF":t.SheetNames[n[1]],n[1]==n[2]?i:i+":"+t.SheetNames[n[2]];case 358:return e.SID!=null?t.SheetNames[e.SID]:"SH33TJSSAME"+t[n[0]][0];default:return"SH33TJSSRC"+t[n[0]][0]}switch(t[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":t.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+t.SheetNames[n[2]];case 14849:return t[n[0]].slice(1).map(function(c){return c.Name}).join(";;");default:return t[n[0]][0][3]?(i=n[1]==-1?"#REF":t[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+t[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function wm(t,r,e){var n=gm(t,r,e);return n=="#REF"?n:function(i,c){if(!(i||c&&c.biff<=5&&c.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(i)?"'"+i+"'":i}(n,e)}function Yn(t,r,e,n,i){var c,f,l,u,y=i&&i.biff||8,p={s:{c:0,r:0},e:{c:0,r:0}},m=[],b=0,v=0,_="";if(!t[0]||!t[0][0])return"";for(var s=-1,o="",h=0,a=t[0].length;h<a;++h){var d=t[0][h];switch(d[0]){case"PtgUminus":m.push("-"+m.pop());break;case"PtgUplus":m.push("+"+m.pop());break;case"PtgPercent":m.push(m.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(c=m.pop(),f=m.pop(),s>=0){switch(t[0][s][1][0]){case 0:o=Qr(" ",t[0][s][1][1]);break;case 1:o=Qr("\r",t[0][s][1][1]);break;default:if(o="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][s][1][0])}f+=o,s=-1}m.push(f+y4[d[0]]+c);break;case"PtgIsect":c=m.pop(),f=m.pop(),m.push(f+" "+c);break;case"PtgUnion":c=m.pop(),f=m.pop(),m.push(f+","+c);break;case"PtgRange":c=m.pop(),f=m.pop(),m.push(f+":"+c);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":l=dc(d[1][1],p,i),m.push(pc(l,y));break;case"PtgRefN":l=e?dc(d[1][1],e,i):d[1][1],m.push(pc(l,y));break;case"PtgRef3d":b=d[1][1],l=dc(d[1][2],p,i),_=wm(n,b,i),m.push(_+"!"+pc(l,y));break;case"PtgFunc":case"PtgFuncVar":var g=d[1][0],w=d[1][1];g||(g=0);var k=(g&=127)==0?[]:m.slice(-g);m.length-=g,w==="User"&&(w=k.shift()),m.push(w+"("+k.join(",")+")");break;case"PtgBool":m.push(d[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":m.push(d[1]);break;case"PtgNum":m.push(String(d[1]));break;case"PtgStr":m.push('"'+d[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":u=q0(d[1][1],e?{s:e}:p,i),m.push(Al(u,i));break;case"PtgArea":u=q0(d[1][1],p,i),m.push(Al(u,i));break;case"PtgArea3d":b=d[1][1],u=d[1][2],_=wm(n,b,i),m.push(_+"!"+Al(u,i));break;case"PtgAttrSum":m.push("SUM("+m.pop()+")");break;case"PtgName":v=d[1][2];var S=(n.names||[])[v-1]||(n[0]||[])[v],A=S?S.Name:"SH33TJSNAME"+String(v);A&&A.slice(0,6)=="_xlfn."&&!i.xlfn&&(A=A.slice(6)),m.push(A);break;case"PtgNameX":var j,D=d[1][1];if(v=d[1][2],!(i.biff<=5)){var N="";if(((n[D]||[])[0]||[])[0]==14849||(((n[D]||[])[0]||[])[0]==1025?n[D][v]&&n[D][v].itab>0&&(N=n.SheetNames[n[D][v].itab-1]+"!"):N=n.SheetNames[v-1]+"!"),n[D]&&n[D][v])N+=n[D][v].Name;else if(n[0]&&n[0][v])N+=n[0][v].Name;else{var F=(gm(n,D,i)||"").split(";;");F[v-1]?N=F[v-1]:N+="SH33TJSERRX"}m.push(N);break}D<0&&(D=-D),n[D]&&(j=n[D][v]),j||(j={Name:"SH33TJSERRY"}),m.push(j.Name);break;case"PtgParen":var T="(",I=")";if(s>=0){switch(o="",t[0][s][1][0]){case 2:T=Qr(" ",t[0][s][1][1])+T;break;case 3:T=Qr("\r",t[0][s][1][1])+T;break;case 4:I=Qr(" ",t[0][s][1][1])+I;break;case 5:I=Qr("\r",t[0][s][1][1])+I;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][s][1][0])}s=-1}m.push(T+m.pop()+I);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":m.push("#REF!");break;case"PtgExp":l={c:d[1][1],r:d[1][0]};var x={c:e.c,r:e.r};if(n.sharedf[nr(l)]){var O=n.sharedf[nr(l)];m.push(Yn(O,p,x,n,i))}else{var R=!1;for(c=0;c!=n.arrayf.length;++c)if(f=n.arrayf[c],!(l.c<f[0].s.c||l.c>f[0].e.c||l.r<f[0].s.r||l.r>f[0].e.r)){m.push(Yn(f[1],p,x,n,i)),R=!0;break}R||m.push(d[1])}break;case"PtgArray":m.push("{"+m4(d[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":s=h;break;case"PtgMissArg":m.push("");break;case"PtgList":m.push("Table"+d[1].idx+"[#"+d[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(d))}if(i.biff!=3&&s>=0&&["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(t[0][h][0])==-1){var C=!0;switch((d=t[0][s])[1][0]){case 4:C=!1;case 0:o=Qr(" ",d[1][1]);break;case 5:C=!1;case 1:o=Qr("\r",d[1][1]);break;default:if(o="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+d[1][0])}m.push((C?o:"")+m.pop()+(C?"":o)),s=-1}}if(m.length>1&&i.WTF)throw new Error("bad formula stack");return m[0]}function v4(t,r,e){var n,i=t.l+r,c=e.biff==2?1:2,f=t.read_shift(c);if(f==65535)return[[],Wn(t,r-2)];var l=Oc(t,f,e);return r!==f+c&&(n=Tc(t,r-f-c,l,e)),t.l=i,[l,n]}function b4(t,r,e){var n,i=t.l+r,c=t.read_shift(2),f=Oc(t,c,e);return c==65535?[[],Wn(t,r-2)]:(r!==c+2&&(n=Tc(t,i-c-2,f,e)),[f,n])}function eh(t,r,e){var n=t.l+r,i=xo(t);e.biff==2&&++t.l;var c=function(u){var y;if(Uo(u,u.l+6)!==65535)return[$n(u),"n"];switch(u[u.l]){case 0:return u.l+=8,["String","s"];case 1:return y=u[u.l+2]===1,u.l+=8,[y,"b"];case 2:return y=u[u.l+2],u.l+=8,[y,"e"];case 3:return u.l+=8,["","s"]}return[]}(t),f=t.read_shift(1);e.biff!=2&&(t.read_shift(1),e.biff>=5&&t.read_shift(4));var l=function(u,y,p){var m,b=u.l+y,v=p.biff==2?1:2,_=u.read_shift(v);if(_==65535)return[[],Wn(u,y-2)];var s=Oc(u,_,p);return y!==_+v&&(m=Tc(u,y-_-v,s,p)),u.l=b,[s,m]}(t,n-t.l,e);return{cell:i,val:c[0],formula:l,shared:f>>3&1,tt:c[1]}}function g4(t,r,e,n,i){var c=$a(r,e,i),f=function(p){if(p==null){var m=Jt(8);return m.write_shift(1,3),m.write_shift(1,0),m.write_shift(2,0),m.write_shift(2,0),m.write_shift(2,65535),m}return Es(typeof p=="number"?p:0)}(t.v),l=Jt(6);l.write_shift(2,33),l.write_shift(4,0);for(var u=Jt(t.bf.length),y=0;y<t.bf.length;++y)u[y]=t.bf[y];return xn([c,f,l,u])}function Lu(t,r,e){var n=t.read_shift(4),i=Oc(t,n,e),c=t.read_shift(4);return[i,c>0?Tc(t,c,i,e):null]}var w4=Lu,Bu=Lu,_4=Lu,k4=Lu,x4={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},_m={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},S4={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function km(t){return t.slice(0,3)=="of:"&&(t=t.slice(3)),t.charCodeAt(0)==61&&(t=t.slice(1)).charCodeAt(0)==61&&(t=t.slice(1)),(t=(t=(t=t.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(r,e){return e.replace(/\./g,"")})).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function rh(t){var r=t.split(":");return[r[0].split(".")[0],r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}var Rc={},Ms={},Cc=typeof Map!="undefined";function nh(t,r,e){var n=0,i=t.length;if(e){if(Cc?e.has(r):Object.prototype.hasOwnProperty.call(e,r)){for(var c=Cc?e.get(r):e[r];n<c.length;++n)if(t[c[n]].t===r)return t.Count++,c[n]}}else for(;n<i;++n)if(t[n].t===r)return t.Count++,n;return t[i]={t:r},t.Count++,t.Unique++,e&&(Cc?(e.has(r)||e.set(r,[]),e.get(r).push(i)):(Object.prototype.hasOwnProperty.call(e,r)||(e[r]=[]),e[r].push(i))),i}function zu(t,r){var e={min:t+1,max:t+1},n=-1;return r.MDW&&(Gn=r.MDW),r.width!=null?e.customWidth=1:r.wpx!=null?n=kc(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(e.width=Du(n),e.customWidth=1):r.width!=null&&(e.width=r.width),r.hidden&&(e.hidden=!0),r.level!=null&&(e.outlineLevel=e.level=r.level),e}function Ga(t,r){if(t){var e=[.7,.7,.75,.75,.3,.3];r=="xlml"&&(e=[1,1,1,1,.5,.5]),t.left==null&&(t.left=e[0]),t.right==null&&(t.right=e[1]),t.top==null&&(t.top=e[2]),t.bottom==null&&(t.bottom=e[3]),t.header==null&&(t.header=e[4]),t.footer==null&&(t.footer=e[5])}}function ma(t,r,e){var n=e.revssf[r.z!=null?r.z:"General"],i=60,c=t.length;if(n==null&&e.ssf){for(;i<392;++i)if(e.ssf[i]==null){Bo(r.z,i),e.ssf[i]=r.z,e.revssf[r.z]=n=i;break}}for(i=0;i!=c;++i)if(t[i].numFmtId===n)return i;return t[c]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},c}function xm(t,r,e,n,i,c){try{n.cellNF&&(t.z=Je[r])}catch(l){if(n.WTF)throw l}if(t.t!=="z"||n.cellStyles){if(t.t==="d"&&typeof t.v=="string"&&(t.v=Yr(t.v)),(!n||n.cellText!==!1)&&t.t!=="z")try{if(Je[r]==null&&Bo(dw[r]||"General",r),t.t==="e")t.w=t.w||Wo[t.v];else if(r===0)if(t.t==="n")(0|t.v)===t.v?t.w=t.v.toString(10):t.w=ic(t.v);else if(t.t==="d"){var f=Pn(t.v);t.w=(0|f)===f?f.toString(10):ic(f)}else{if(t.v===void 0)return"";t.w=ja(t.v,Ms)}else t.t==="d"?t.w=Ni(r,Pn(t.v),Ms):t.w=Ni(r,t.v,Ms)}catch(l){if(n.WTF)throw l}if(n.cellStyles&&e!=null)try{t.s=c.Fills[e],t.s.fgColor&&t.s.fgColor.theme&&!t.s.fgColor.rgb&&(t.s.fgColor.rgb=Iu(i.themeElements.clrScheme[t.s.fgColor.theme].rgb,t.s.fgColor.tint||0),n.WTF&&(t.s.fgColor.raw_rgb=i.themeElements.clrScheme[t.s.fgColor.theme].rgb)),t.s.bgColor&&t.s.bgColor.theme&&(t.s.bgColor.rgb=Iu(i.themeElements.clrScheme[t.s.bgColor.theme].rgb,t.s.bgColor.tint||0),n.WTF&&(t.s.bgColor.raw_rgb=i.themeElements.clrScheme[t.s.bgColor.theme].rgb))}catch(l){if(n.WTF&&c.Fills)throw l}}}function E4(t,r,e){if(t&&t["!ref"]){var n=Cr(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+e+"): "+t["!ref"])}}var T4=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,O4=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,R4=/<(?:\w:)?hyperlink [^>]*>/gm,C4=/"(\w*:\w*)"/,A4=/<(?:\w:)?col\b[^>]*[\/]?>/g,P4=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,M4=/<(?:\w:)?pageMargins[^>]*\/>/g,Sm=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,j4=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,I4=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function D4(t,r,e,n,i,c,f){if(!t)return t;n||(n={"!id":{}});var l=r.dense?[]:{},u={s:{r:2e6,c:2e6},e:{r:0,c:0}},y="",p="",m=t.match(O4);m?(y=t.slice(0,m.index),p=t.slice(m.index+m[0].length)):y=p=t;var b=y.match(Sm);b?ih(b[0],l,i,e):(b=y.match(j4))&&function(D,N,F,T,I){ih(D.slice(0,D.indexOf(">")),F,T,I)}(b[0],b[1],l,i,e);var v=(y.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(v>0){var _=y.slice(v,v+50).match(C4);_&&function(D,N){var F=Cr(N);F.s.r<=F.e.r&&F.s.c<=F.e.c&&F.s.r>=0&&F.s.c>=0&&(D["!ref"]=br(F))}(l,_[1])}var s=y.match(I4);s&&s[1]&&function(D,N){N.Views||(N.Views=[{}]),(D.match(L4)||[]).forEach(function(F,T){var I=Qe(F);N.Views[T]||(N.Views[T]={}),+I.zoomScale&&(N.Views[T].zoom=+I.zoomScale),$r(I.rightToLeft)&&(N.Views[T].RTL=!0)})}(s[1],i);var o=[];if(r.cellStyles){var h=y.match(A4);h&&function(D,N){for(var F=!1,T=0;T!=N.length;++T){var I=Qe(N[T],!0);I.hidden&&(I.hidden=$r(I.hidden));var x=parseInt(I.min,10)-1,O=parseInt(I.max,10)-1;for(I.outlineLevel&&(I.level=+I.outlineLevel||0),delete I.min,delete I.max,I.width=+I.width,!F&&I.width&&(F=!0,Kl(I.width)),da(I);x<=O;)D[x++]=Vr(I)}}(o,h)}m&&z4(m[1],l,r,u,c,f);var a=p.match(P4);a&&(l["!autofilter"]=function(D){var N={ref:(D.match(/ref="([^"]*)"/)||[])[1]};return N}(a[0]));var d=[],g=p.match(T4);if(g)for(v=0;v!=g.length;++v)d[v]=Cr(g[v].slice(g[v].indexOf('"')+1));var w=p.match(R4);w&&function(D,N,F){for(var T=Array.isArray(D),I=0;I!=N.length;++I){var x=Qe(Fr(N[I]),!0);if(!x.ref)return;var O=((F||{})["!id"]||[])[x.id];O?(x.Target=O.Target,x.location&&(x.Target+="#"+Tr(x.location))):(x.Target="#"+Tr(x.location),O={Target:x.Target,TargetMode:"Internal"}),x.Rel=O,x.tooltip&&(x.Tooltip=x.tooltip,delete x.tooltip);for(var R=Cr(x.ref),C=R.s.r;C<=R.e.r;++C)for(var P=R.s.c;P<=R.e.c;++P){var L=nr({c:P,r:C});T?(D[C]||(D[C]=[]),D[C][P]||(D[C][P]={t:"z",v:void 0}),D[C][P].l=x):(D[L]||(D[L]={t:"z",v:void 0}),D[L].l=x)}}}(l,w,n);var k,S,A=p.match(M4);if(A&&(l["!margins"]=(k=Qe(A[0]),S={},["left","right","top","bottom","header","footer"].forEach(function(D){k[D]&&(S[D]=parseFloat(k[D]))}),S)),!l["!ref"]&&u.e.c>=u.s.c&&u.e.r>=u.s.r&&(l["!ref"]=br(u)),r.sheetRows>0&&l["!ref"]){var j=Cr(l["!ref"]);r.sheetRows<=+j.e.r&&(j.e.r=r.sheetRows-1,j.e.r>u.e.r&&(j.e.r=u.e.r),j.e.r<j.s.r&&(j.s.r=j.e.r),j.e.c>u.e.c&&(j.e.c=u.e.c),j.e.c<j.s.c&&(j.s.c=j.e.c),l["!fullref"]=l["!ref"],l["!ref"]=br(j))}return o.length>0&&(l["!cols"]=o),d.length>0&&(l["!merges"]=d),l}function ih(t,r,e,n){var i=Qe(t);e.Sheets[n]||(e.Sheets[n]={}),i.codeName&&(e.Sheets[n].CodeName=Tr(Fr(i.codeName)))}var N4=["objects","scenarios","selectLockedCells","selectUnlockedCells"],F4=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],L4=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function B4(t,r,e,n){if(t.c&&e["!comments"].push([r,t.c]),t.v===void 0&&typeof t.f!="string"||t.t==="z"&&!t.f)return"";var i="",c=t.t,f=t.v;if(t.t!=="z")switch(t.t){case"b":i=t.v?"1":"0";break;case"n":i=""+t.v;break;case"e":i=Wo[t.v];break;case"d":n&&n.cellDates?i=Yr(t.v,-1).toISOString():((t=Vr(t)).t="n",i=""+(t.v=Pn(Yr(t.v)))),t.z===void 0&&(t.z=Je[14]);break;default:i=t.v}var l=Mn("v",Mr(i)),u={r},y=ma(n.cellXfs,t,n);switch(y!==0&&(u.s=y),t.t){case"n":case"z":break;case"d":u.t="d";break;case"b":u.t="b";break;case"e":u.t="e";break;default:if(t.v==null){delete t.t;break}if(t.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){l=Mn("v",""+nh(n.Strings,t.v,n.revStrings)),u.t="s";break}u.t="str"}if(t.t!=c&&(t.t=c,t.v=f),typeof t.f=="string"&&t.f){var p=t.F&&t.F.slice(0,r.length)==r?{t:"array",ref:t.F}:null;l=we("f",Mr(t.f),p)+(t.v!=null?l:"")}return t.l&&e["!links"].push([r,t.l]),t.D&&(u.cm=1),we("c",l,u)}var z4=function(){var t=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/,e=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,c=cc("v"),f=cc("f");return function(l,u,y,p,m,b){for(var v,_,s,o,h,a=0,d="",g=[],w=[],k=0,S=0,A=0,j="",D=0,N=0,F=0,T=0,I=Array.isArray(b.CellXf),x=[],O=[],R=Array.isArray(u),C=[],P={},L=!1,H=!!y.sheetStubs,U=l.split(r),B=0,W=U.length;B!=W;++B){var X=(d=U[B].trim()).length;if(X!==0){var et=0;t:for(a=0;a<X;++a)switch(d[a]){case">":if(d[a-1]!="/"){++a;break t}if(y&&y.cellStyles){if(D=(_=Qe(d.slice(et,a),!0)).r!=null?parseInt(_.r,10):D+1,N=-1,y.sheetRows&&y.sheetRows<D)continue;P={},L=!1,_.ht&&(L=!0,P.hpt=parseFloat(_.ht),P.hpx=Cs(P.hpt)),_.hidden=="1"&&(L=!0,P.hidden=!0),_.outlineLevel!=null&&(L=!0,P.level=+_.outlineLevel),L&&(C[D-1]=P)}break;case"<":et=a}if(et>=a)break;if(D=(_=Qe(d.slice(et,a),!0)).r!=null?parseInt(_.r,10):D+1,N=-1,!(y.sheetRows&&y.sheetRows<D)){p.s.r>D-1&&(p.s.r=D-1),p.e.r<D-1&&(p.e.r=D-1),y&&y.cellStyles&&(P={},L=!1,_.ht&&(L=!0,P.hpt=parseFloat(_.ht),P.hpx=Cs(P.hpt)),_.hidden=="1"&&(L=!0,P.hidden=!0),_.outlineLevel!=null&&(L=!0,P.level=+_.outlineLevel),L&&(C[D-1]=P)),g=d.slice(a).split(t);for(var ft=0;ft!=g.length&&g[ft].trim().charAt(0)=="<";++ft);for(g=g.slice(ft),a=0;a!=g.length;++a)if((d=g[a].trim()).length!==0){if(w=d.match(e),k=a,S=0,A=0,d="<c "+(d.slice(0,1)=="<"?">":"")+d,w!=null&&w.length===2){for(k=0,j=w[1],S=0;S!=j.length&&!((A=j.charCodeAt(S)-64)<1||A>26);++S)k=26*k+A;N=--k}else++N;for(S=0;S!=d.length&&d.charCodeAt(S)!==62;++S);if(++S,(_=Qe(d.slice(0,S),!0)).r||(_.r=nr({r:D-1,c:N})),v={t:""},(w=(j=d.slice(S)).match(c))!=null&&w[1]!==""&&(v.v=Tr(w[1])),y.cellFormula){if((w=j.match(f))!=null&&w[1]!==""){if(v.f=Tr(Fr(w[1])).replace(/\r\n/g,`
|
||
`),y.xlfn||(v.f=lm(v.f)),w[0].indexOf('t="array"')>-1)v.F=(j.match(i)||[])[1],v.F.indexOf(":")>-1&&x.push([Cr(v.F),v.F]);else if(w[0].indexOf('t="shared"')>-1){o=Qe(w[0]);var gt=Tr(Fr(w[1]));y.xlfn||(gt=lm(gt)),O[parseInt(o.si,10)]=[o,gt,_.r]}}else(w=j.match(/<f[^>]*\/>/))&&O[(o=Qe(w[0])).si]&&(v.f=a4(O[o.si][1],O[o.si][2],_.r));var bt=gn(_.r);for(S=0;S<x.length;++S)bt.r>=x[S][0].s.r&&bt.r<=x[S][0].e.r&&bt.c>=x[S][0].s.c&&bt.c<=x[S][0].e.c&&(v.F=x[S][1])}if(_.t==null&&v.v===void 0)if(v.f||v.F)v.v=0,v.t="n";else{if(!H)continue;v.t="z"}else v.t=_.t||"n";switch(p.s.c>N&&(p.s.c=N),p.e.c<N&&(p.e.c=N),v.t){case"n":if(v.v==""||v.v==null){if(!H)continue;v.t="z"}else v.v=parseFloat(v.v);break;case"s":if(v.v===void 0){if(!H)continue;v.t="z"}else s=Rc[parseInt(v.v,10)],v.v=s.t,v.r=s.r,y.cellHTML&&(v.h=s.h);break;case"str":v.t="s",v.v=v.v!=null?Fr(v.v):"",y.cellHTML&&(v.h=Sl(v.v));break;case"inlineStr":w=j.match(n),v.t="s",w!=null&&(s=ql(w[1]))?(v.v=s.t,y.cellHTML&&(v.h=s.h)):v.v="";break;case"b":v.v=$r(v.v);break;case"d":y.cellDates?v.v=Yr(v.v,1):(v.v=Pn(Yr(v.v,1)),v.t="n");break;case"e":y&&y.cellText===!1||(v.w=v.v),v.v=r1[v.v]}if(F=T=0,h=null,I&&_.s!==void 0&&(h=b.CellXf[_.s])!=null&&(h.numFmtId!=null&&(F=h.numFmtId),y.cellStyles&&h.fillId!=null&&(T=h.fillId)),xm(v,F,T,y,m,b),y.cellDates&&I&&v.t=="n"&&_s(Je[F])&&(v.t="d",v.v=Su(v.v)),_.cm&&y.xlmeta){var rt=(y.xlmeta.Cell||[])[+_.cm-1];rt&&rt.type=="XLDAPR"&&(v.D=!0)}if(R){var Q=gn(_.r);u[Q.r]||(u[Q.r]=[]),u[Q.r][Q.c]=v}else u[_.r]=v}}}}C.length>0&&(u["!rows"]=C)}}();function Em(t,r,e,n){var i,c=[on,we("worksheet",null,{xmlns:Da[0],"xmlns:r":bn.r})],f=e.SheetNames[t],l="",u=e.Sheets[f];u==null&&(u={});var y=u["!ref"]||"A1",p=Cr(y);if(p.e.c>16383||p.e.r>1048575){if(r.WTF)throw new Error("Range "+y+" exceeds format limit A1:XFD1048576");p.e.c=Math.min(p.e.c,16383),p.e.r=Math.min(p.e.c,1048575),y=br(p)}n||(n={}),u["!comments"]=[];var m=[];(function(o,h,a,d,g){var w=!1,k={},S=null;if(d.bookType!=="xlsx"&&h.vbaraw){var A=h.SheetNames[a];try{h.Workbook&&(A=h.Workbook.Sheets[a].CodeName||A)}catch(D){}w=!0,k.codeName=ko(Mr(A))}if(o&&o["!outline"]){var j={summaryBelow:1,summaryRight:1};o["!outline"].above&&(j.summaryBelow=0),o["!outline"].left&&(j.summaryRight=0),S=(S||"")+we("outlinePr",null,j)}(w||S)&&(g[g.length]=we("sheetPr",S,k))})(u,e,t,r,c),c[c.length]=we("dimension",null,{ref:y}),c[c.length]=function(o,h,a,d){var g={workbookViewId:"0"};return(((d||{}).Workbook||{}).Views||[])[0]&&(g.rightToLeft=d.Workbook.Views[0].RTL?"1":"0"),we("sheetViews",we("sheetView",null,g),{})}(0,0,0,e),r.sheetFormat&&(c[c.length]=we("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),u["!cols"]!=null&&u["!cols"].length>0&&(c[c.length]=function(o,h){for(var a,d=["<cols>"],g=0;g!=h.length;++g)(a=h[g])&&(d[d.length]=we("col",null,zu(g,a)));return d[d.length]="</cols>",d.join("")}(0,u["!cols"])),c[i=c.length]="<sheetData/>",u["!links"]=[],u["!ref"]!=null&&(l=function(o,h,a,d){var g,w,k=[],S=[],A=Cr(o["!ref"]),j="",D="",N=[],F=0,T=0,I=o["!rows"],x=Array.isArray(o),O={r:D},R=-1;for(T=A.s.c;T<=A.e.c;++T)N[T]=pn(T);for(F=A.s.r;F<=A.e.r;++F){for(S=[],D=Sn(F),T=A.s.c;T<=A.e.c;++T){g=N[T]+D;var C=x?(o[F]||[])[T]:o[g];C!==void 0&&(j=B4(C,g,o,h))!=null&&S.push(j)}(S.length>0||I&&I[F])&&(O={r:D},I&&I[F]&&((w=I[F]).hidden&&(O.hidden=1),R=-1,w.hpx?R=xc(w.hpx):w.hpt&&(R=w.hpt),R>-1&&(O.ht=R,O.customHeight=1),w.level&&(O.outlineLevel=w.level)),k[k.length]=we("row",S.join(""),O))}if(I)for(;F<I.length;++F)I&&I[F]&&(O={r:F+1},(w=I[F]).hidden&&(O.hidden=1),R=-1,w.hpx?R=xc(w.hpx):w.hpt&&(R=w.hpt),R>-1&&(O.ht=R,O.customHeight=1),w.level&&(O.outlineLevel=w.level),k[k.length]=we("row","",O));return k.join("")}(u,r),l.length>0&&(c[c.length]=l)),c.length>i+1&&(c[c.length]="</sheetData>",c[i]=c[i].replace("/>",">")),u["!protect"]&&(c[c.length]=function(o){var h={sheet:1};return N4.forEach(function(a){o[a]!=null&&o[a]&&(h[a]="1")}),F4.forEach(function(a){o[a]==null||o[a]||(h[a]="0")}),o.password&&(h.password=Gl(o.password).toString(16).toUpperCase()),we("sheetProtection",null,h)}(u["!protect"])),u["!autofilter"]!=null&&(c[c.length]=function(o,h,a,d){var g=typeof o.ref=="string"?o.ref:br(o.ref);a.Workbook||(a.Workbook={Sheets:[]}),a.Workbook.Names||(a.Workbook.Names=[]);var w=a.Workbook.Names,k=Li(g);k.s.r==k.e.r&&(k.e.r=Li(h["!ref"]).e.r,g=br(k));for(var S=0;S<w.length;++S){var A=w[S];if(A.Name=="_xlnm._FilterDatabase"&&A.Sheet==d){A.Ref="'"+a.SheetNames[d]+"'!"+g;break}}return S==w.length&&w.push({Name:"_xlnm._FilterDatabase",Sheet:d,Ref:"'"+a.SheetNames[d]+"'!"+g}),we("autoFilter",null,{ref:g})}(u["!autofilter"],u,e,t)),u["!merges"]!=null&&u["!merges"].length>0&&(c[c.length]=function(o){if(o.length===0)return"";for(var h='<mergeCells count="'+o.length+'">',a=0;a!=o.length;++a)h+='<mergeCell ref="'+br(o[a])+'"/>';return h+"</mergeCells>"}(u["!merges"]));var b,v,_=-1,s=-1;return u["!links"].length>0&&(c[c.length]="<hyperlinks>",u["!links"].forEach(function(o){o[1].Target&&(b={ref:o[0]},o[1].Target.charAt(0)!="#"&&(s=jr(n,-1,Mr(o[1].Target).replace(/#.*$/,""),yr.HLINK),b["r:id"]="rId"+s),(_=o[1].Target.indexOf("#"))>-1&&(b.location=Mr(o[1].Target.slice(_+1))),o[1].Tooltip&&(b.tooltip=Mr(o[1].Tooltip)),c[c.length]=we("hyperlink",null,b))}),c[c.length]="</hyperlinks>"),delete u["!links"],u["!margins"]!=null&&(c[c.length]=(Ga(v=u["!margins"]),we("pageMargins",null,v))),r&&!r.ignoreEC&&r.ignoreEC!=null||(c[c.length]=Mn("ignoredErrors",we("ignoredError",null,{numberStoredAsText:1,sqref:y}))),m.length>0&&(s=jr(n,-1,"../drawings/drawing"+(t+1)+".xml",yr.DRAW),c[c.length]=we("drawing",null,{"r:id":"rId"+s}),u["!drawing"]=m),u["!comments"].length>0&&(s=jr(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",yr.VML),c[c.length]=we("legacyDrawing",null,{"r:id":"rId"+s}),u["!legacy"]=s),c.length>1&&(c[c.length]="</worksheet>",c[1]=c[1].replace("/>",">")),c.join("")}function U4(t,r,e,n){var i=function(c,f,l){var u=Jt(145),y=(l["!rows"]||[])[c]||{};u.write_shift(4,c),u.write_shift(4,0);var p=320;y.hpx?p=20*xc(y.hpx):y.hpt&&(p=20*y.hpt),u.write_shift(2,p),u.write_shift(1,0);var m=0;y.level&&(m|=y.level),y.hidden&&(m|=16),(y.hpx||y.hpt)&&(m|=32),u.write_shift(1,m),u.write_shift(1,0);var b=0,v=u.l;u.l+=4;for(var _={r:c,c:0},s=0;s<16;++s)if(!(f.s.c>s+1<<10||f.e.c<s<<10)){for(var o=-1,h=-1,a=s<<10;a<s+1<<10;++a)_.c=a,(Array.isArray(l)?(l[_.r]||[])[_.c]:l[nr(_)])&&(o<0&&(o=a),h=a);o<0||(++b,u.write_shift(4,o),u.write_shift(4,h))}var d=u.l;return u.l=v,u.write_shift(4,b),u.l=d,u.length>u.l?u.slice(0,u.l):u}(n,e,r);(i.length>17||(r["!rows"]||[])[n])&&ue(t,0,i)}var H4=Ua,W4=Ss;function Tm(t){return[Ba(t),$n(t),"n"]}var V4=Ua,$4=Ss,Om=["left","right","top","bottom","header","footer"];function q4(t,r,e,n,i,c,f){if(r.v===void 0)return!1;var l="";switch(r.t){case"b":l=r.v?"1":"0";break;case"d":(r=Vr(r)).z=r.z||Je[14],r.v=Pn(Yr(r.v)),r.t="n";break;case"n":case"e":l=""+r.v;break;default:l=r.v}var u={r:e,c:n};switch(u.s=ma(i.cellXfs,r,i),r.l&&c["!links"].push([nr(u),r.l]),r.c&&c["!comments"].push([nr(u),r.c]),r.t){case"s":case"str":return i.bookSST?(l=nh(i.Strings,r.v,i.revStrings),u.t="s",u.v=l,f?ue(t,18,function(y,p,m){return m==null&&(m=Jt(8)),za(p,m),m.write_shift(4,p.v),m}(0,u)):ue(t,7,function(y,p,m){return m==null&&(m=Jt(12)),La(p,m),m.write_shift(4,p.v),m}(0,u))):(u.t="str",f?ue(t,17,function(y,p,m){return m==null&&(m=Jt(8+4*y.v.length)),za(p,m),En(y.v,m),m.length>m.l?m.slice(0,m.l):m}(r,u)):ue(t,6,function(y,p,m){return m==null&&(m=Jt(12+4*y.v.length)),La(p,m),En(y.v,m),m.length>m.l?m.slice(0,m.l):m}(r,u))),!0;case"n":return r.v==(0|r.v)&&r.v>-1e3&&r.v<1e3?f?ue(t,13,function(y,p,m){return m==null&&(m=Jt(8)),za(p,m),X0(y.v,m),m}(r,u)):ue(t,2,function(y,p,m){return m==null&&(m=Jt(12)),La(p,m),X0(y.v,m),m}(r,u)):f?ue(t,16,function(y,p,m){return m==null&&(m=Jt(12)),za(p,m),Es(y.v,m),m}(r,u)):ue(t,5,function(y,p,m){return m==null&&(m=Jt(16)),La(p,m),Es(y.v,m),m}(r,u)),!0;case"b":return u.t="b",f?ue(t,15,function(y,p,m){return m==null&&(m=Jt(5)),za(p,m),m.write_shift(1,y.v?1:0),m}(r,u)):ue(t,4,function(y,p,m){return m==null&&(m=Jt(9)),La(p,m),m.write_shift(1,y.v?1:0),m}(r,u)),!0;case"e":return u.t="e",f?ue(t,14,function(y,p,m){return m==null&&(m=Jt(8)),za(p,m),m.write_shift(1,y.v),m.write_shift(2,0),m.write_shift(1,0),m}(r,u)):ue(t,3,function(y,p,m){return m==null&&(m=Jt(9)),La(p,m),m.write_shift(1,y.v),m}(r,u)),!0}return f?ue(t,12,function(y,p,m){return m==null&&(m=Jt(4)),za(p,m)}(0,u)):ue(t,1,function(y,p,m){return m==null&&(m=Jt(8)),La(p,m)}(0,u)),!0}function G4(t,r){var e,n;r&&r["!merges"]&&(ue(t,177,(e=r["!merges"].length,n==null&&(n=Jt(4)),n.write_shift(4,e),n)),r["!merges"].forEach(function(i){ue(t,176,$4(i))}),ue(t,178))}function Y4(t,r){r&&r["!cols"]&&(ue(t,390),r["!cols"].forEach(function(e,n){e&&ue(t,60,function(i,c,f){f==null&&(f=Jt(18));var l=zu(i,c);f.write_shift(-4,i),f.write_shift(-4,i),f.write_shift(4,256*(l.width||10)),f.write_shift(4,0);var u=0;return c.hidden&&(u|=1),typeof l.width=="number"&&(u|=2),c.level&&(u|=c.level<<8),f.write_shift(2,u),f}(n,e))}),ue(t,391))}function K4(t,r){var e,n;r&&r["!ref"]&&(ue(t,648),ue(t,649,(e=Cr(r["!ref"]),(n=Jt(24)).write_shift(4,4),n.write_shift(4,1),Ss(e,n),n)),ue(t,650))}function X4(t,r,e){r["!links"].forEach(function(n){if(n[1].Target){var i=jr(e,-1,n[1].Target.replace(/#.*$/,""),yr.HLINK);ue(t,494,function(c,f){var l=Jt(50+4*(c[1].Target.length+(c[1].Tooltip||"").length));Ss({s:gn(c[0]),e:gn(c[0])},l),Il("rId"+f,l);var u=c[1].Target.indexOf("#");return En((u==-1?"":c[1].Target.slice(u+1))||"",l),En(c[1].Tooltip||"",l),En("",l),l.slice(0,l.l)}(n,i))}}),delete r["!links"]}function Z4(t,r,e){ue(t,133),ue(t,137,function(n,i,c){c==null&&(c=Jt(30));var f=924;return(((i||{}).Views||[])[0]||{}).RTL&&(f|=32),c.write_shift(2,f),c.write_shift(4,0),c.write_shift(4,0),c.write_shift(4,0),c.write_shift(1,0),c.write_shift(1,0),c.write_shift(2,0),c.write_shift(2,100),c.write_shift(2,0),c.write_shift(2,0),c.write_shift(2,0),c.write_shift(4,0),c}(0,e)),ue(t,138),ue(t,134)}function J4(t,r){var e,n;r["!protect"]&&ue(t,535,(e=r["!protect"],n==null&&(n=Jt(66)),n.write_shift(2,e.password?Gl(e.password):0),n.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(i){i[1]?n.write_shift(4,e[i[0]]==null||e[i[0]]?0:1):n.write_shift(4,e[i[0]]!=null&&e[i[0]]?0:1)}),n))}function Q4(t,r,e,n){var i=vi(),c=e.SheetNames[t],f=e.Sheets[c]||{},l=c;try{e&&e.Workbook&&(l=e.Workbook.Sheets[t].CodeName||l)}catch(m){}var u,y,p=Cr(f["!ref"]||"A1");if(p.e.c>16383||p.e.r>1048575){if(r.WTF)throw new Error("Range "+(f["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");p.e.c=Math.min(p.e.c,16383),p.e.r=Math.min(p.e.c,1048575)}return f["!links"]=[],f["!comments"]=[],ue(i,129),(e.vbaraw||f["!outline"])&&ue(i,147,function(m,b,v){v==null&&(v=Jt(84+4*m.length));var _=192;b&&(b.above&&(_&=-65),b.left&&(_&=-129)),v.write_shift(1,_);for(var s=1;s<3;++s)v.write_shift(1,0);return Ru({auto:1},v),v.write_shift(-4,-1),v.write_shift(-4,-1),K0(m,v),v.slice(0,v.l)}(l,f["!outline"])),ue(i,148,W4(p)),Z4(i,0,e.Workbook),Y4(i,f),function(m,b,v,_){var s,o=Cr(b["!ref"]||"A1"),h="",a=[];ue(m,145);var d=Array.isArray(b),g=o.e.r;b["!rows"]&&(g=Math.max(o.e.r,b["!rows"].length-1));for(var w=o.s.r;w<=g;++w){h=Sn(w),U4(m,b,o,w);var k=!1;if(w<=o.e.r)for(var S=o.s.c;S<=o.e.c;++S){w===o.s.r&&(a[S]=pn(S)),s=a[S]+h;var A=d?(b[w]||[])[S]:b[s];k=!!A&&q4(m,A,w,S,_,b,k)}}ue(m,146)}(i,f,0,r),J4(i,f),function(m,b,v,_){if(b["!autofilter"]){var s=b["!autofilter"],o=typeof s.ref=="string"?s.ref:br(s.ref);v.Workbook||(v.Workbook={Sheets:[]}),v.Workbook.Names||(v.Workbook.Names=[]);var h=v.Workbook.Names,a=Li(o);a.s.r==a.e.r&&(a.e.r=Li(b["!ref"]).e.r,o=br(a));for(var d=0;d<h.length;++d){var g=h[d];if(g.Name=="_xlnm._FilterDatabase"&&g.Sheet==_){g.Ref="'"+v.SheetNames[_]+"'!"+o;break}}d==h.length&&h.push({Name:"_xlnm._FilterDatabase",Sheet:_,Ref:"'"+v.SheetNames[_]+"'!"+o}),ue(m,161,Ss(Cr(o))),ue(m,162)}}(i,f,e,t),G4(i,f),X4(i,f,n),f["!margins"]&&ue(i,476,(u=f["!margins"],y==null&&(y=Jt(48)),Ga(u),Om.forEach(function(m){Es(u[m],y)}),y)),r&&!r.ignoreEC&&r.ignoreEC!=null||K4(i,f),function(m,b,v,_){if(b["!comments"].length>0){var s=jr(_,-1,"../drawings/vmlDrawing"+(v+1)+".vml",yr.VML);ue(m,551,Il("rId"+s)),b["!legacy"]=s}}(i,f,t,n),ue(i,130),i.end()}function t6(t,r,e,n,i,c){var f=c||{"!type":"chart"};if(!t)return c;var l=0,u=0,y="A",p={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(t.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(m){var b=function(v){var _,s=[],o=v.match(/^<c:numCache>/);(v.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(a){var d=a.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);d&&(s[+d[1]]=o?+d[2]:d[2])});var h=Tr((v.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(v.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach(function(a){_=a.replace(/<.*?>/g,"")}),[s,h,_]}(m);p.s.r=p.s.c=0,p.e.c=l,y=pn(l),b[0].forEach(function(v,_){f[y+Sn(_)]={t:"n",v,z:b[1]},u=_}),p.e.r<u&&(p.e.r=u),++l}),l>0&&(f["!ref"]=br(p)),f}var oh=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],e6=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],r6=[],n6=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Rm(t,r){for(var e=0;e!=t.length;++e)for(var n=t[e],i=0;i!=r.length;++i){var c=r[i];if(n[c[0]]==null)n[c[0]]=c[1];else switch(c[2]){case"bool":typeof n[c[0]]=="string"&&(n[c[0]]=$r(n[c[0]]));break;case"int":typeof n[c[0]]=="string"&&(n[c[0]]=parseInt(n[c[0]],10))}}}function Cm(t,r){for(var e=0;e!=r.length;++e){var n=r[e];if(t[n[0]]==null)t[n[0]]=n[1];else switch(n[2]){case"bool":typeof t[n[0]]=="string"&&(t[n[0]]=$r(t[n[0]]));break;case"int":typeof t[n[0]]=="string"&&(t[n[0]]=parseInt(t[n[0]],10))}}}function Am(t){Cm(t.WBProps,oh),Cm(t.CalcPr,n6),Rm(t.WBView,e6),Rm(t.Sheets,r6),Ms.date1904=$r(t.WBProps.date1904)}var i6="][*?/\\".split("");function Pm(t,r){if(t.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var e=!0;return i6.forEach(function(n){if(t.indexOf(n)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");e=!1}}),e}function o6(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var r,e,n,i=t.Workbook&&t.Workbook.Sheets||[];r=t.SheetNames,e=i,n=!!t.vbaraw,r.forEach(function(f,l){Pm(f);for(var u=0;u<l;++u)if(f==r[u])throw new Error("Duplicate Sheet Name: "+f);if(n){var y=e&&e[l]&&e[l].CodeName||f;if(y.charCodeAt(0)==95&&y.length>22)throw new Error("Bad Code Name: Worksheet"+y)}});for(var c=0;c<t.SheetNames.length;++c)E4(t.Sheets[t.SheetNames[c]],t.SheetNames[c],c)}var a6=/<\w+:workbook/;function Mm(t){var r=[on];r[r.length]=we("workbook",null,{xmlns:Da[0],"xmlns:r":bn.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(oh.forEach(function(l){t.Workbook.WBProps[l[0]]!=null&&t.Workbook.WBProps[l[0]]!=l[1]&&(n[l[0]]=t.Workbook.WBProps[l[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=we("workbookPr",null,n);var i=t.Workbook&&t.Workbook.Sheets||[],c=0;if(i&&i[0]&&i[0].Hidden){for(r[r.length]="<bookViews>",c=0;c!=t.SheetNames.length&&i[c]&&i[c].Hidden;++c);c==t.SheetNames.length&&(c=0),r[r.length]='<workbookView firstSheet="'+c+'" activeTab="'+c+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",c=0;c!=t.SheetNames.length;++c){var f={name:Mr(t.SheetNames[c].slice(0,31))};if(f.sheetId=""+(c+1),f["r:id"]="rId"+(c+1),i[c])switch(i[c].Hidden){case 1:f.state="hidden";break;case 2:f.state="veryHidden"}r[r.length]=we("sheet",null,f)}return r[r.length]="</sheets>",e&&(r[r.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(l){var u={name:l.Name};l.Comment&&(u.comment=l.Comment),l.Sheet!=null&&(u.localSheetId=""+l.Sheet),l.Hidden&&(u.hidden="1"),l.Ref&&(r[r.length]=we("definedName",Mr(l.Ref),u))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function s6(t,r){var e={};return t.read_shift(4),e.ArchID=t.read_shift(4),t.l+=r-8,e}function c6(t,r){if(r.Workbook&&r.Workbook.Sheets){for(var e,n,i=r.Workbook.Sheets,c=0,f=-1,l=-1;c<i.length;++c)!i[c]||!i[c].Hidden&&f==-1?f=c:i[c].Hidden==1&&l==-1&&(l=c);l>f||(ue(t,135),ue(t,158,(e=f,n||(n=Jt(29)),n.write_shift(-4,0),n.write_shift(-4,460),n.write_shift(4,28800),n.write_shift(4,17600),n.write_shift(4,500),n.write_shift(4,e),n.write_shift(4,e),n.write_shift(1,120),n.length>n.l?n.slice(0,n.l):n)),ue(t,136))}}function u6(t,r){var e=vi();return ue(e,131),ue(e,128,function(n,i){i||(i=Jt(127));for(var c=0;c!=4;++c)i.write_shift(4,0);return En("SheetJS",i),En(hl.version,i),En(hl.version,i),En("7262",i),i.length>i.l?i.slice(0,i.l):i}()),ue(e,153,function(n,i){i||(i=Jt(72));var c=0;return n&&n.filterPrivacy&&(c|=8),i.write_shift(4,c),i.write_shift(4,0),K0(n&&n.CodeName||"ThisWorkbook",i),i.slice(0,i.l)}(t.Workbook&&t.Workbook.WBProps||null)),c6(e,t),function(n,i){ue(n,143);for(var c=0;c!=i.SheetNames.length;++c)ue(n,156,(f={Hidden:i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[c]&&i.Workbook.Sheets[c].Hidden||0,iTabID:c+1,strRelID:"rId"+(c+1),name:i.SheetNames[c]},(l=void 0)||(l=Jt(127)),l.write_shift(4,f.Hidden),l.write_shift(4,f.iTabID),Il(f.strRelID,l),En(f.name.slice(0,31),l),l.length>l.l?l.slice(0,l.l):l));var f,l;ue(n,144)}(e,t),ue(e,132),e.end()}function f6(t,r,e){return r.slice(-4)===".bin"?function(n,i){var c={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},f=[],l=!1;i||(i={}),i.biff=12;var u=[],y=[[]];return y.SheetNames=[],y.XTI=[],Mc[16]={n:"BrtFRTArchID$",f:s6},Ho(n,function(p,m,b){switch(b){case 156:y.SheetNames.push(p.name),c.Sheets.push(p);break;case 153:c.WBProps=p;break;case 39:p.Sheet!=null&&(i.SID=p.Sheet),p.Ref=Yn(p.Ptg,0,null,y,i),delete i.SID,delete p.Ptg,u.push(p);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:y[0].length?y.push([b,p]):y[0]=[b,p],y[y.length-1].XTI=[];break;case 362:y.length===0&&(y[0]=[],y[0].XTI=[]),y[y.length-1].XTI=y[y.length-1].XTI.concat(p),y.XTI=y.XTI.concat(p);break;case 35:case 37:f.push(b),l=!0;break;case 36:case 38:f.pop(),l=!1;break;default:if(!m.T){if(!l||i.WTF&&f[f.length-1]!=37&&f[f.length-1]!=35)throw new Error("Unexpected record 0x"+b.toString(16))}}},i),Am(c),c.Names=u,c.supbooks=y,c}(t,e):function(n,i){if(!n)throw new Error("Could not find file");var c={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},f=!1,l="xmlns",u={},y=0;if(n.replace(Hn,function(p,m){var b=Qe(p);switch(_o(b[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":p.match(a6)&&(l="xmlns"+p.match(/<(\w+):/)[1]),c.xmlns=b[l];break;case"<fileVersion":delete b[0],c.AppVersion=b;break;case"<workbookPr":case"<workbookPr/>":oh.forEach(function(v){if(b[v[0]]!=null)switch(v[2]){case"bool":c.WBProps[v[0]]=$r(b[v[0]]);break;case"int":c.WBProps[v[0]]=parseInt(b[v[0]],10);break;default:c.WBProps[v[0]]=b[v[0]]}}),b.codeName&&(c.WBProps.CodeName=Fr(b.codeName));break;case"<workbookView":case"<workbookView/>":delete b[0],c.WBView.push(b);break;case"<sheet":switch(b.state){case"hidden":b.Hidden=1;break;case"veryHidden":b.Hidden=2;break;default:b.Hidden=0}delete b.state,b.name=Tr(Fr(b.name)),delete b[0],c.Sheets.push(b);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":f=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":f=!1;break;case"<definedName":(u={}).Name=Fr(b.name),b.comment&&(u.Comment=b.comment),b.localSheetId&&(u.Sheet=+b.localSheetId),$r(b.hidden||"0")&&(u.Hidden=!0),y=m+p.length;break;case"</definedName>":u.Ref=Tr(Fr(n.slice(y,m))),c.Names.push(u);break;case"<calcPr":case"<calcPr/>":delete b[0],c.CalcPr=b;break;default:if(!f&&i.WTF)throw new Error("unrecognized "+b[0]+" in workbook")}return p}),Da.indexOf(c.xmlns)===-1)throw new Error("Unknown Namespace: "+c.xmlns);return Am(c),c}(t,e)}function l6(t,r,e,n,i,c,f,l){return r.slice(-4)===".bin"?function(u,y,p,m,b,v,_){if(!u)return u;var s=y||{};m||(m={"!id":{}});var o,h,a,d,g,w,k,S,A,j,D=s.dense?[]:{},N={s:{r:2e6,c:2e6},e:{r:0,c:0}},F=!1,T=!1,I=[];s.biff=12,s["!row"]=0;var x=0,O=!1,R=[],C={},P=s.supbooks||b.supbooks||[[]];if(P.sharedf=C,P.arrayf=R,P.SheetNames=b.SheetNames||b.Sheets.map(function(et){return et.name}),!s.supbooks&&(s.supbooks=P,b.Names))for(var L=0;L<b.Names.length;++L)P[0][L+1]=b.Names[L];var H,U=[],B=[],W=!1;if(Mc[16]={n:"BrtShortReal",f:Tm},Ho(u,function(et,ft,gt){if(!T)switch(gt){case 148:o=et;break;case 0:h=et,s.sheetRows&&s.sheetRows<=h.r&&(T=!0),A=Sn(g=h.r),s["!row"]=h.r,(et.hidden||et.hpt||et.level!=null)&&(et.hpt&&(et.hpx=Cs(et.hpt)),B[et.r]=et);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(a={t:et[2]},et[2]){case"n":a.v=et[1];break;case"s":S=Rc[et[1]],a.v=S.t,a.r=S.r;break;case"b":a.v=!!et[1];break;case"e":a.v=et[1],s.cellText!==!1&&(a.w=Wo[a.v]);break;case"str":a.t="s",a.v=et[1];break;case"is":a.t="s",a.v=et[1].t}if((d=_.CellXf[et[0].iStyleRef])&&xm(a,d.numFmtId,null,s,v,_),w=et[0].c==-1?w+1:et[0].c,s.dense?(D[g]||(D[g]=[]),D[g][w]=a):D[pn(w)+A]=a,s.cellFormula){for(O=!1,x=0;x<R.length;++x){var bt=R[x];h.r>=bt[0].s.r&&h.r<=bt[0].e.r&&w>=bt[0].s.c&&w<=bt[0].e.c&&(a.F=br(bt[0]),O=!0)}!O&&et.length>3&&(a.f=et[3])}if(N.s.r>h.r&&(N.s.r=h.r),N.s.c>w&&(N.s.c=w),N.e.r<h.r&&(N.e.r=h.r),N.e.c<w&&(N.e.c=w),s.cellDates&&d&&a.t=="n"&&_s(Je[d.numFmtId])){var rt=Ma(a.v);rt&&(a.t="d",a.v=new Date(rt.y,rt.m-1,rt.d,rt.H,rt.M,rt.S,rt.u))}H&&(H.type=="XLDAPR"&&(a.D=!0),H=void 0);break;case 1:case 12:if(!s.sheetStubs||F)break;a={t:"z",v:void 0},w=et[0].c==-1?w+1:et[0].c,s.dense?(D[g]||(D[g]=[]),D[g][w]=a):D[pn(w)+A]=a,N.s.r>h.r&&(N.s.r=h.r),N.s.c>w&&(N.s.c=w),N.e.r<h.r&&(N.e.r=h.r),N.e.c<w&&(N.e.c=w),H&&(H.type=="XLDAPR"&&(a.D=!0),H=void 0);break;case 176:I.push(et);break;case 49:H=((s.xlmeta||{}).Cell||[])[et-1];break;case 494:var Q=m["!id"][et.relId];for(Q?(et.Target=Q.Target,et.loc&&(et.Target+="#"+et.loc),et.Rel=Q):et.relId==""&&(et.Target="#"+et.loc),g=et.rfx.s.r;g<=et.rfx.e.r;++g)for(w=et.rfx.s.c;w<=et.rfx.e.c;++w)s.dense?(D[g]||(D[g]=[]),D[g][w]||(D[g][w]={t:"z",v:void 0}),D[g][w].l=et):(k=nr({c:w,r:g}),D[k]||(D[k]={t:"z",v:void 0}),D[k].l=et);break;case 426:if(!s.cellFormula)break;R.push(et),(j=s.dense?D[g][w]:D[pn(w)+A]).f=Yn(et[1],0,{r:h.r,c:w},P,s),j.F=br(et[0]);break;case 427:if(!s.cellFormula)break;C[nr(et[0].s)]=et[1],(j=s.dense?D[g][w]:D[pn(w)+A]).f=Yn(et[1],0,{r:h.r,c:w},P,s);break;case 60:if(!s.cellStyles)break;for(;et.e>=et.s;)U[et.e--]={width:et.w/256,hidden:!!(1&et.flags),level:et.level},W||(W=!0,Kl(et.w/256)),da(U[et.e+1]);break;case 161:D["!autofilter"]={ref:br(et)};break;case 476:D["!margins"]=et;break;case 147:b.Sheets[p]||(b.Sheets[p]={}),et.name&&(b.Sheets[p].CodeName=et.name),(et.above||et.left)&&(D["!outline"]={above:et.above,left:et.left});break;case 137:b.Views||(b.Views=[{}]),b.Views[0]||(b.Views[0]={}),et.RTL&&(b.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:case 37:F=!0;break;case 36:case 38:F=!1;break;default:if(!ft.T){if(!F||s.WTF)throw new Error("Unexpected record 0x"+gt.toString(16))}}},s),delete s.supbooks,delete s["!row"],!D["!ref"]&&(N.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0))&&(D["!ref"]=br(o||N)),s.sheetRows&&D["!ref"]){var X=Cr(D["!ref"]);s.sheetRows<=+X.e.r&&(X.e.r=s.sheetRows-1,X.e.r>N.e.r&&(X.e.r=N.e.r),X.e.r<X.s.r&&(X.s.r=X.e.r),X.e.c>N.e.c&&(X.e.c=N.e.c),X.e.c<X.s.c&&(X.s.c=X.e.c),D["!fullref"]=D["!ref"],D["!ref"]=br(X))}return I.length>0&&(D["!merges"]=I),U.length>0&&(D["!cols"]=U),B.length>0&&(D["!rows"]=B),D}(t,n,e,i,c,f,l):D4(t,n,e,i,c,f,l)}function h6(t,r,e,n,i,c,f,l){return r.slice(-4)===".bin"?function(u,y,p,m,b){if(!u)return u;m||(m={"!id":{}});var v={"!type":"chart","!drawel":null,"!rel":""},_=!1;return Ho(u,function(s,o,h){switch(h){case 550:v["!rel"]=s;break;case 651:b.Sheets[p]||(b.Sheets[p]={}),s.name&&(b.Sheets[p].CodeName=s.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:case 37:case 38:break;case 35:_=!0;break;case 36:_=!1;break;default:if(!(o.T>0)){if(!(o.T<0)){if(!_||y.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}}}},y),m["!id"][v["!rel"]]&&(v["!drawel"]=m["!id"][v["!rel"]]),v}(t,n,e,i,c):function(u,y,p,m,b){if(!u)return u;m||(m={"!id":{}});var v,_={"!type":"chart","!drawel":null,"!rel":""},s=u.match(Sm);return s&&ih(s[0],0,b,p),(v=u.match(/drawing r:id="(.*?)"/))&&(_["!rel"]=v[1]),m["!id"][_["!rel"]]&&(_["!drawel"]=m["!id"][_["!rel"]]),_}(t,0,e,i,c)}function d6(t,r,e,n){return r.slice(-4)===".bin"?function(i,c,f){var l={NumberFmt:[]};for(var u in Je)l.NumberFmt[u]=Je[u];l.CellXf=[],l.Fonts=[];var y=[],p=!1;return Ho(i,function(m,b,v){switch(v){case 44:l.NumberFmt[m[0]]=m[1],Bo(m[1],m[0]);break;case 43:l.Fonts.push(m),m.color.theme!=null&&c&&c.themeElements&&c.themeElements.clrScheme&&(m.color.rgb=Iu(c.themeElements.clrScheme[m.color.theme].rgb,m.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:y[y.length-1]==617&&l.CellXf.push(m);break;case 35:p=!0;break;case 36:p=!1;break;case 37:y.push(v),p=!0;break;case 38:y.pop(),p=!1;break;default:if(b.T>0)y.push(v);else if(b.T<0)y.pop();else if(!p||f.WTF&&y[y.length-1]!=37)throw new Error("Unexpected record 0x"+v.toString(16))}}),l}(t,e,n):D3(t,e,n)}function p6(t,r,e){return r.slice(-4)===".bin"?function(n,i){var c=[],f=!1;return Ho(n,function(l,u,y){switch(y){case 159:c.Count=l[0],c.Unique=l[1];break;case 19:c.push(l);break;case 160:return!0;case 35:f=!0;break;case 36:f=!1;break;default:if(u.T,!f||i.WTF)throw new Error("Unexpected record 0x"+y.toString(16))}}),c}(t,e):function(n,i){var c=[],f="";if(!n)return c;var l=n.match(g3);if(l){f=l[2].replace(w3,"").split(_3);for(var u=0;u!=f.length;++u){var y=ql(f[u].trim(),i);y!=null&&(c[c.length]=y)}l=Qe(l[1]),c.Count=l.count,c.Unique=l.uniqueCount}return c}(t,e)}function m6(t,r,e){return r.slice(-4)===".bin"?function(n,i){var c=[],f=[],l={},u=!1;return Ho(n,function(y,p,m){switch(m){case 632:f.push(y);break;case 635:l=y;break;case 637:l.t=y.t,l.h=y.h,l.r=y.r;break;case 636:if(l.author=f[l.iauthor],delete l.iauthor,i.sheetRows&&l.rfx&&i.sheetRows<=l.rfx.r)break;l.t||(l.t=""),delete l.rfx,c.push(l);break;case 3072:case 37:case 38:break;case 35:u=!0;break;case 36:u=!1;break;default:if(!p.T){if(!u||i.WTF)throw new Error("Unexpected record 0x"+m.toString(16))}}}),c}(t,e):function(n,i){if(n.match(/<(?:\w+:)?comments *\/>/))return[];var c=[],f=[],l=n.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);l&&l[1]&&l[1].split(/<\/\w*:?author>/).forEach(function(y){if(y!==""&&y.trim()!==""){var p=y.match(/<(?:\w+:)?author[^>]*>(.*)/);p&&c.push(p[1])}});var u=n.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return u&&u[1]&&u[1].split(/<\/\w*:?comment>/).forEach(function(y){if(y!==""&&y.trim()!==""){var p=y.match(/<(?:\w+:)?comment[^>]*>/);if(p){var m=Qe(p[0]),b={author:m.authorId&&c[m.authorId]||"sheetjsghost",ref:m.ref,guid:m.guid},v=gn(m.ref);if(!(i.sheetRows&&i.sheetRows<=v.r)){var _=y.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),s=!!_&&!!_[1]&&ql(_[1])||{r:"",t:"",h:""};b.r=s.r,s.r=="<t></t>"&&(s.t=s.h=""),b.t=(s.t||"").replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`),i.cellHTML&&(b.h=s.h),f.push(b)}}}}),f}(t,e)}function y6(t,r,e){return r.slice(-4)===".bin"?function(n,i,c){var f=[];return Ho(n,function(l,u,y){if(y===63)f.push(l);else if(!u.T)throw new Error("Unexpected record 0x"+y.toString(16))}),f}(t):function(n){var i=[];if(!n)return i;var c=1;return(n.match(Hn)||[]).forEach(function(f){var l=Qe(f);switch(l[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete l[0],l.i?c=l.i:l.i=c,i.push(l)}}),i}(t)}function v6(t,r,e,n){if(e.slice(-4)===".bin")return function(i,c,f,l){if(!i)return i;var u=l||{},y=!1;Ho(i,function(p,m,b){switch(b){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:y=!0;break;case 36:y=!1;break;default:if(!m.T){if(!y||u.WTF)throw new Error("Unexpected record 0x"+b.toString(16))}}},u)}(t,0,0,n)}function b6(t,r,e){return r.slice(-4)===".bin"?function(n,i,c){var f={Types:[],Cell:[],Value:[]},l=c||{},u=[],y=!1,p=2;return Ho(n,function(m,b,v){switch(v){case 335:f.Types.push({name:m.name});break;case 51:m.forEach(function(_){p==1?f.Cell.push({type:f.Types[_[0]-1].name,index:_[1]}):p==0&&f.Value.push({type:f.Types[_[0]-1].name,index:_[1]})});break;case 337:p=m?1:0;break;case 338:p=2;break;case 35:u.push(v),y=!0;break;case 36:u.pop(),y=!1;break;default:if(!b.T){if(!y||l.WTF&&u[u.length-1]!=35)throw new Error("Unexpected record 0x"+v.toString(16))}}}),f}(t,0,e):function(n,i,c){var f={Types:[],Cell:[],Value:[]};if(!n)return f;var l,u=!1,y=2;return n.replace(Hn,function(p){var m=Qe(p);switch(_o(m[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":f.Types.push({name:m.name});break;case"<futureMetadata":for(var b=0;b<f.Types.length;++b)f.Types[b].name==m.name&&(l=f.Types[b]);break;case"<rc":y==1?f.Cell.push({type:f.Types[m.t-1].name,index:+m.v}):y==0&&f.Value.push({type:f.Types[m.t-1].name,index:+m.v});break;case"<cellMetadata":y=1;break;case"</cellMetadata>":case"</valueMetadata>":y=2;break;case"<valueMetadata":y=0;break;case"<ext":u=!0;break;case"</ext>":u=!1;break;case"<rvb":if(!l)break;l.offsets||(l.offsets=[]),l.offsets.push(+m.i);break;default:if(!u&&c.WTF)throw new Error("unrecognized "+m[0]+" in metadata")}return p}),f}(t,0,e)}function g6(t,r,e,n,i){return(r.slice(-4)===".bin"?Q4:Em)(t,e,n,i)}function w6(t,r,e){return(r.slice(-4)===".bin"?i4:cm)(t)}var Ac,jm=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Im=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function so(t,r){var e=t.split(/\s+/),n=[];if(r||(n[0]=e[0]),e.length===1)return n;var i,c,f,l=t.match(jm);if(l)for(f=0;f!=l.length;++f)(c=(i=l[f].match(Im))[1].indexOf(":"))===-1?n[i[1]]=i[2].slice(1,i[2].length-1):n[i[1].slice(0,6)==="xmlns:"?"xmlns"+i[1].slice(6):i[1].slice(c+1)]=i[2].slice(1,i[2].length-1);return n}function _6(t){var r={};if(t.split(/\s+/).length===1)return r;var e,n,i,c=t.match(jm);if(c)for(i=0;i!=c.length;++i)(n=(e=c[i].match(Im))[1].indexOf(":"))===-1?r[e[1]]=e[2].slice(1,e[2].length-1):r[e[1].slice(0,6)==="xmlns:"?"xmlns"+e[1].slice(6):e[1].slice(n+1)]=e[2].slice(1,e[2].length-1);return r}function k6(t,r,e,n){var i=n;switch((e[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=$r(n);break;case"i2":case"int":i=parseInt(n,10);break;case"r4":case"float":i=parseFloat(n);break;case"date":case"dateTime.tz":i=Yr(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+e[0])}t[Tr(r)]=i}function x6(t,r,e){if(t.t!=="z"){if(!e||e.cellText!==!1)try{t.t==="e"?t.w=t.w||Wo[t.v]:r==="General"?t.t==="n"?(0|t.v)===t.v?t.w=t.v.toString(10):t.w=ic(t.v):t.w=ja(t.v):t.w=(n=r||"General",i=t.v,(c=Ac[n]||Tr(n))==="General"?ja(i):Ni(c,i))}catch(u){if(e.WTF)throw u}var n,i,c;try{var f=Ac[r]||r||"General";if(e.cellNF&&(t.z=f),e.cellDates&&t.t=="n"&&_s(f)){var l=Ma(t.v);l&&(t.t="d",t.v=new Date(l.y,l.m-1,l.d,l.H,l.M,l.S,l.u))}}catch(u){if(e.WTF)throw u}}}function S6(t,r,e){if(e.cellStyles&&r.Interior){var n=r.Interior;n.Pattern&&(n.patternType=I3[n.Pattern]||n.Pattern)}t[r.ID]=r}function E6(t,r,e,n,i,c,f,l,u,y){var p="General",m=n.StyleID,b={};y=y||{};var v=[],_=0;for(m===void 0&&l&&(m=l.StyleID),m===void 0&&f&&(m=f.StyleID);c[m]!==void 0&&(c[m].nf&&(p=c[m].nf),c[m].Interior&&v.push(c[m].Interior),c[m].Parent);)m=c[m].Parent;switch(e.Type){case"Boolean":n.t="b",n.v=$r(t);break;case"String":n.t="s",n.r=x0(Tr(t)),n.v=t.indexOf("<")>-1?Tr(r||t).replace(/<.*?>/g,""):n.r;break;case"DateTime":t.slice(-1)!="Z"&&(t+="Z"),n.v=(Yr(t)-new Date(Date.UTC(1899,11,30)))/864e5,n.v!=n.v?n.v=Tr(t):n.v<60&&(n.v=n.v-1),p&&p!="General"||(p="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+t),n.t||(n.t="n");break;case"Error":n.t="e",n.v=r1[t],y.cellText!==!1&&(n.w=t);break;default:t==""&&r==""?n.t="z":(n.t="s",n.v=x0(r||t))}if(x6(n,p,y),y.cellFormula!==!1)if(n.Formula){var s=Tr(n.Formula);s.charCodeAt(0)==61&&(s=s.slice(1)),n.f=Ps(s,i),delete n.Formula,n.ArrayRange=="RC"?n.F=Ps("RC:RC",i):n.ArrayRange&&(n.F=Ps(n.ArrayRange,i),u.push([Cr(n.F),n.F]))}else for(_=0;_<u.length;++_)i.r>=u[_][0].s.r&&i.r<=u[_][0].e.r&&i.c>=u[_][0].s.c&&i.c<=u[_][0].e.c&&(n.F=u[_][1]);y.cellStyles&&(v.forEach(function(o){!b.patternType&&o.patternType&&(b.patternType=o.patternType)}),n.s=b),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function T6(t){t.t=t.v||"",t.t=t.t.replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`),t.v=t.w=t.ixfe=void 0}function ah(t,r){var e=r||{};ks();var n=ec(Ol(t));e.type!="binary"&&e.type!="array"&&e.type!="base64"||(n=Fr(n));var i,c=n.slice(0,1024).toLowerCase(),f=!1;if((1023&(c=c.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&c.indexOf(","),1023&c.indexOf(";"))){var l=Vr(e);return l.type="string",Rs.to_workbook(n,l)}if(c.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(Bt){c.indexOf("<"+Bt)>=0&&(f=!0)}),f)return function(Bt,G){var Z=Bt.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!Z||Z.length==0)throw new Error("Invalid HTML: could not find <table>");if(Z.length==1)return Fa(Lm(Z[0],G),G);var J={SheetNames:[],Sheets:{}};return Z.forEach(function(St,It){Qm(J,Lm(St,G),"Sheet"+(It+1))}),J}(n,e);Ac={"General Number":"General","General Date":Je[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Je[15],"Short Date":Je[14],"Long Time":Je[19],"Medium Time":Je[18],"Short Time":Je[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Je[2],Standard:Je[4],Percent:Je[10],Scientific:Je[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var u,y,p=[],m={},b=[],v=e.dense?[]:{},_="",s={},o={},h=so('<Data ss:Type="String">'),a=0,d=0,g=0,w={s:{r:2e6,c:2e6},e:{r:0,c:0}},k={},S={},A="",j=0,D=[],N={},F={},T=0,I=[],x=[],O={},R=[],C=!1,P=[],L=[],H={},U=0,B=0,W={Sheets:[],WBProps:{date1904:!1}},X={};fc.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/gm,"");for(var et="";i=fc.exec(n);)switch(i[3]=(et=i[3]).toLowerCase()){case"data":if(et=="data"){if(i[1]==="/"){if((u=p.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else i[0].charAt(i[0].length-2)!=="/"&&p.push([i[3],!0]);break}if(p[p.length-1][1])break;i[1]==="/"?E6(n.slice(a,i.index),A,h,p[p.length-1][0]=="comment"?O:s,{c:d,r:g},k,R[d],o,P,e):(A="",h=so(i[0]),a=i.index+i[0].length);break;case"cell":if(i[1]==="/")if(x.length>0&&(s.c=x),(!e.sheetRows||e.sheetRows>g)&&s.v!==void 0&&(e.dense?(v[g]||(v[g]=[]),v[g][d]=s):v[pn(d)+Sn(g)]=s),s.HRef&&(s.l={Target:Tr(s.HRef)},s.HRefScreenTip&&(s.l.Tooltip=s.HRefScreenTip),delete s.HRef,delete s.HRefScreenTip),(s.MergeAcross||s.MergeDown)&&(U=d+(0|parseInt(s.MergeAcross,10)),B=g+(0|parseInt(s.MergeDown,10)),D.push({s:{c:d,r:g},e:{c:U,r:B}})),e.sheetStubs)if(s.MergeAcross||s.MergeDown){for(var ft=d;ft<=U;++ft)for(var gt=g;gt<=B;++gt)(ft>d||gt>g)&&(e.dense?(v[gt]||(v[gt]=[]),v[gt][ft]={t:"z"}):v[pn(ft)+Sn(gt)]={t:"z"});d=U+1}else++d;else s.MergeAcross?d=U+1:++d;else(s=_6(i[0])).Index&&(d=+s.Index-1),d<w.s.c&&(w.s.c=d),d>w.e.c&&(w.e.c=d),i[0].slice(-2)==="/>"&&++d,x=[];break;case"row":i[1]==="/"||i[0].slice(-2)==="/>"?(g<w.s.r&&(w.s.r=g),g>w.e.r&&(w.e.r=g),i[0].slice(-2)==="/>"&&(o=so(i[0])).Index&&(g=+o.Index-1),d=0,++g):((o=so(i[0])).Index&&(g=+o.Index-1),H={},(o.AutoFitHeight=="0"||o.Height)&&(H.hpx=parseInt(o.Height,10),H.hpt=xc(H.hpx),L[g]=H),o.Hidden=="1"&&(H.hidden=!0,L[g]=H));break;case"worksheet":if(i[1]==="/"){if((u=p.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"));b.push(_),w.s.r<=w.e.r&&w.s.c<=w.e.c&&(v["!ref"]=br(w),e.sheetRows&&e.sheetRows<=w.e.r&&(v["!fullref"]=v["!ref"],w.e.r=e.sheetRows-1,v["!ref"]=br(w))),D.length&&(v["!merges"]=D),R.length>0&&(v["!cols"]=R),L.length>0&&(v["!rows"]=L),m[_]=v}else w={s:{r:2e6,c:2e6},e:{r:0,c:0}},g=d=0,p.push([i[3],!1]),u=so(i[0]),_=Tr(u.Name),v=e.dense?[]:{},D=[],P=[],L=[],X={name:_,Hidden:0},W.Sheets.push(X);break;case"table":if(i[1]==="/"){if((u=p.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else{if(i[0].slice(-2)=="/>")break;p.push([i[3],!1]),R=[],C=!1}break;case"style":i[1]==="/"?S6(k,S,e):S=so(i[0]);break;case"numberformat":S.nf=Tr(so(i[0]).Format||"General"),Ac[S.nf]&&(S.nf=Ac[S.nf]);for(var bt=0;bt!=392&&Je[bt]!=S.nf;++bt);if(bt==392){for(bt=57;bt!=392;++bt)if(Je[bt]==null){Bo(S.nf,bt);break}}break;case"column":if(p[p.length-1][0]!=="table")break;if((y=so(i[0])).Hidden&&(y.hidden=!0,delete y.Hidden),y.Width&&(y.wpx=parseInt(y.Width,10)),!C&&y.wpx>10){C=!0,Gn=Q1;for(var rt=0;rt<R.length;++rt)R[rt]&&da(R[rt])}C&&da(y),R[y.Index-1||R.length]=y;for(var Q=0;Q<+y.Span;++Q)R[R.length]=Vr(y);break;case"namedrange":if(i[1]==="/")break;W.Names||(W.Names=[]);var K=Qe(i[0]),nt={Name:K.Name,Ref:Ps(K.RefersTo.slice(1),{r:0,c:0})};W.Sheets.length>0&&(nt.Sheet=W.Sheets.length-1),W.Names.push(nt);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if(i[0].slice(-2)==="/>")break;i[1]==="/"?A+=n.slice(j,i.index):j=i.index+i[0].length;break;case"interior":if(!e.cellStyles)break;S.Interior=so(i[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(i[0].slice(-2)==="/>")break;i[1]==="/"?Gw(N,et,n.slice(T,i.index)):T=i.index+i[0].length;break;case"styles":case"workbook":if(i[1]==="/"){if((u=p.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else p.push([i[3],!1]);break;case"comment":if(i[1]==="/"){if((u=p.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"));T6(O),x.push(O)}else p.push([i[3],!1]),O={a:(u=so(i[0])).Author};break;case"autofilter":if(i[1]==="/"){if((u=p.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else if(i[0].charAt(i[0].length-2)!=="/"){var At=so(i[0]);v["!autofilter"]={ref:Ps(At.Range).replace(/\$/g,"")},p.push([i[3],!0])}break;case"datavalidation":if(i[1]==="/"){if((u=p.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else i[0].charAt(i[0].length-2)!=="/"&&p.push([i[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(i[1]==="/"){if((u=p.pop())[0]!==i[3])throw new Error("Bad state: "+u.join("|"))}else i[0].charAt(i[0].length-2)!=="/"&&p.push([i[3],!0]);break;default:if(p.length==0&&i[3]=="document"||p.length==0&&i[3]=="uof")return Um(n,e);var ot=!0;switch(p[p.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:ot=!1}break;case"componentoptions":switch(i[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:ot=!1}break;case"excelworkbook":switch(i[3]){case"date1904":W.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:ot=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":case"height":case"width":break;default:ot=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if(i[0].slice(-2)!=="/>")if(i[1]==="/")switch(n.slice(T,i.index)){case"SheetHidden":X.Hidden=1;break;case"SheetVeryHidden":X.Hidden=2}else T=i.index+i[0].length;break;case"header":v["!margins"]||Ga(v["!margins"]={},"xlml"),isNaN(+Qe(i[0]).Margin)||(v["!margins"].header=+Qe(i[0]).Margin);break;case"footer":v["!margins"]||Ga(v["!margins"]={},"xlml"),isNaN(+Qe(i[0]).Margin)||(v["!margins"].footer=+Qe(i[0]).Margin);break;case"pagemargins":var ut=Qe(i[0]);v["!margins"]||Ga(v["!margins"]={},"xlml"),isNaN(+ut.Top)||(v["!margins"].top=+ut.Top),isNaN(+ut.Left)||(v["!margins"].left=+ut.Left),isNaN(+ut.Right)||(v["!margins"].right=+ut.Right),isNaN(+ut.Bottom)||(v["!margins"].bottom=+ut.Bottom);break;case"displayrighttoleft":W.Views||(W.Views=[]),W.Views[0]||(W.Views[0]={}),W.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":v["!outline"]||(v["!outline"]={}),v["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":v["!outline"]||(v["!outline"]={}),v["!outline"].left=!0;break;default:ot=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:ot=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:ot=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:ot=!1}break;case"querytable":switch(i[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:ot=!1}break;case"datavalidation":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:ot=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:ot=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:ot=!1}break;case"smarttags":break;default:ot=!1}if(ot||i[3].match(/!\[CDATA/))break;if(!p[p.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+p.join("|");if(p[p.length-1][0]==="customdocumentproperties"){if(i[0].slice(-2)==="/>")break;i[1]==="/"?k6(F,et,I,n.slice(T,i.index)):(I=i,T=i.index+i[0].length);break}if(e.WTF)throw"Unrecognized tag: "+i[3]+"|"+p.join("|")}var Mt={};return e.bookSheets||e.bookProps||(Mt.Sheets=m),Mt.SheetNames=b,Mt.Workbook=W,Mt.SSF=Vr(Je),Mt.Props=N,Mt.Custprops=F,Mt}function sh(t,r){switch(ph(r=r||{}),r.type||"base64"){case"base64":return ah(Ti(t),r);case"binary":case"buffer":case"file":return ah(t,r);case"array":return ah(ua(t),r)}}function O6(t,r){var e=[];return t.Props&&e.push(function(n,i){var c=[];return nn(Hl).map(function(f){for(var l=0;l<zi.length;++l)if(zi[l][1]==f)return zi[l];for(l=0;l<Ha.length;++l)if(Ha[l][1]==f)return Ha[l];throw f}).forEach(function(f){if(n[f[1]]!=null){var l=i&&i.Props&&i.Props[f[1]]!=null?i.Props[f[1]]:n[f[1]];f[2]==="date"&&(l=new Date(l).toISOString().replace(/\.\d*Z/,"Z")),typeof l=="number"?l=String(l):l===!0||l===!1?l=l?"1":"0":l instanceof Date&&(l=new Date(l).toISOString().replace(/\.\d*Z/,"")),c.push(Mn(Hl[f[1]]||f[1],l))}}),we("DocumentProperties",c.join(""),{xmlns:Ci.o})}(t.Props,r)),t.Custprops&&e.push(function(n,i){var c=["Worksheets","SheetNames"],f="CustomDocumentProperties",l=[];return n&&nn(n).forEach(function(u){if(Object.prototype.hasOwnProperty.call(n,u)){for(var y=0;y<zi.length;++y)if(u==zi[y][1])return;for(y=0;y<Ha.length;++y)if(u==Ha[y][1])return;for(y=0;y<c.length;++y)if(u==c[y])return;var p=n[u],m="string";typeof p=="number"?(m="float",p=String(p)):p===!0||p===!1?(m="boolean",p=p?"1":"0"):p=String(p),l.push(we(_0(u),p,{"dt:dt":m}))}}),i&&nn(i).forEach(function(u){if(Object.prototype.hasOwnProperty.call(i,u)&&(!n||!Object.prototype.hasOwnProperty.call(n,u))){var y=i[u],p="string";typeof y=="number"?(p="float",y=String(y)):y===!0||y===!1?(p="boolean",y=y?"1":"0"):y instanceof Date?(p="dateTime.tz",y=y.toISOString()):y=String(y),l.push(we(_0(u),y,{"dt:dt":p}))}}),"<"+f+' xmlns="'+Ci.o+'">'+l.join("")+"</"+f+">"}(t.Props,t.Custprops)),e.join("")}function Dm(t){return we("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+Ql(t.Ref,{r:0,c:0})})}function R6(t,r,e,n,i,c,f){if(!t||t.v==null&&t.f==null)return"";var l={};if(t.f&&(l["ss:Formula"]="="+Mr(Ql(t.f,f))),t.F&&t.F.slice(0,r.length)==r){var u=gn(t.F.slice(r.length+1));l["ss:ArrayRange"]="RC:R"+(u.r==f.r?"":"["+(u.r-f.r)+"]")+"C"+(u.c==f.c?"":"["+(u.c-f.c)+"]")}if(t.l&&t.l.Target&&(l["ss:HRef"]=Mr(t.l.Target),t.l.Tooltip&&(l["x:HRefScreenTip"]=Mr(t.l.Tooltip))),e["!merges"])for(var y=e["!merges"],p=0;p!=y.length;++p)y[p].s.c==f.c&&y[p].s.r==f.r&&(y[p].e.c>y[p].s.c&&(l["ss:MergeAcross"]=y[p].e.c-y[p].s.c),y[p].e.r>y[p].s.r&&(l["ss:MergeDown"]=y[p].e.r-y[p].s.r));var m="",b="";switch(t.t){case"z":if(!n.sheetStubs)return"";break;case"n":m="Number",b=String(t.v);break;case"b":m="Boolean",b=t.v?"1":"0";break;case"e":m="Error",b=Wo[t.v];break;case"d":m="DateTime",b=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||Je[14]);break;case"s":m="String",b=((t.v||"")+"").replace(xl,function(o){return kl[o]}).replace(k0,function(o){return"&#x"+o.charCodeAt(0).toString(16).toUpperCase()+";"})}var v=ma(n.cellXfs,t,n);l["ss:StyleID"]="s"+(21+v),l["ss:Index"]=f.c+1;var _=t.v!=null?b:"",s=t.t=="z"?"":'<Data ss:Type="'+m+'">'+_+"</Data>";return(t.c||[]).length>0&&(s+=t.c.map(function(o){var h=we("ss:Data",(o.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return we("Comment",h,{"ss:Author":o.a})}).join("")),we("Cell",s,l)}function C6(t,r){var e='<Row ss:Index="'+(t+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=Cs(r.hpt)),r.hpx&&(e+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(e+=' ss:Hidden="1"')),e+">"}function A6(t,r,e){var n=[],i=e.SheetNames[t],c=e.Sheets[i],f=c?function(l,u,y,p){if(!l||!((p||{}).Workbook||{}).Names)return"";for(var m=p.Workbook.Names,b=[],v=0;v<m.length;++v){var _=m[v];_.Sheet==y&&(_.Name.match(/^_xlfn\./)||b.push(Dm(_)))}return b.join("")}(c,0,t,e):"";return f.length>0&&n.push("<Names>"+f+"</Names>"),f=c?function(l,u,y,p){if(!l["!ref"])return"";var m=Cr(l["!ref"]),b=l["!merges"]||[],v=0,_=[];l["!cols"]&&l["!cols"].forEach(function(S,A){da(S);var j=!!S.width,D=zu(A,S),N={"ss:Index":A+1};j&&(N["ss:Width"]=_c(D.width)),S.hidden&&(N["ss:Hidden"]="1"),_.push(we("Column",null,N))});for(var s=Array.isArray(l),o=m.s.r;o<=m.e.r;++o){for(var h=[C6(o,(l["!rows"]||[])[o])],a=m.s.c;a<=m.e.c;++a){var d=!1;for(v=0;v!=b.length;++v)if(!(b[v].s.c>a||b[v].s.r>o||b[v].e.c<a||b[v].e.r<o)){b[v].s.c==a&&b[v].s.r==o||(d=!0);break}if(!d){var g={r:o,c:a},w=nr(g),k=s?(l[o]||[])[a]:l[w];h.push(R6(k,w,l,u,0,0,g))}}h.push("</Row>"),h.length>2&&_.push(h.join(""))}return _.join("")}(c,r):"",f.length>0&&n.push("<Table>"+f+"</Table>"),n.push(function(l,u,y,p){if(!l)return"";var m=[];if(l["!margins"]&&(m.push("<PageSetup>"),l["!margins"].header&&m.push(we("Header",null,{"x:Margin":l["!margins"].header})),l["!margins"].footer&&m.push(we("Footer",null,{"x:Margin":l["!margins"].footer})),m.push(we("PageMargins",null,{"x:Bottom":l["!margins"].bottom||"0.75","x:Left":l["!margins"].left||"0.7","x:Right":l["!margins"].right||"0.7","x:Top":l["!margins"].top||"0.75"})),m.push("</PageSetup>")),p&&p.Workbook&&p.Workbook.Sheets&&p.Workbook.Sheets[y])if(p.Workbook.Sheets[y].Hidden)m.push(we("Visible",p.Workbook.Sheets[y].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var b=0;b<y&&(!p.Workbook.Sheets[b]||p.Workbook.Sheets[b].Hidden);++b);b==y&&m.push("<Selected/>")}return((((p||{}).Workbook||{}).Views||[])[0]||{}).RTL&&m.push("<DisplayRightToLeft/>"),l["!protect"]&&(m.push(Mn("ProtectContents","True")),l["!protect"].objects&&m.push(Mn("ProtectObjects","True")),l["!protect"].scenarios&&m.push(Mn("ProtectScenarios","True")),l["!protect"].selectLockedCells==null||l["!protect"].selectLockedCells?l["!protect"].selectUnlockedCells==null||l["!protect"].selectUnlockedCells||m.push(Mn("EnableSelection","UnlockedCells")):m.push(Mn("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(v){l["!protect"][v[0]]&&m.push("<"+v[1]+"/>")})),m.length==0?"":we("WorksheetOptions",m.join(""),{xmlns:Ci.x})}(c,0,t,e)),n.join("")}function P6(t,r){r||(r={}),t.SSF||(t.SSF=Vr(Je)),t.SSF&&(ks(),wu(t.SSF),r.revssf=ku(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF,r.cellXfs=[],ma(r.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(O6(t,r)),e.push(""),e.push(""),e.push("");for(var n=0;n<t.SheetNames.length;++n)e.push(we("Worksheet",A6(n,r,t),{"ss:Name":Mr(t.SheetNames[n])}));return e[2]=function(i,c){var f=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return c.cellXfs.forEach(function(l,u){var y=[];y.push(we("NumberFormat",null,{"ss:Format":Mr(Je[l.numFmtId])}));var p={"ss:ID":"s"+(21+u)};f.push(we("Style",y.join(""),p))}),we("Styles",f.join(""))}(0,r),e[3]=function(i){if(!((i||{}).Workbook||{}).Names)return"";for(var c=i.Workbook.Names,f=[],l=0;l<c.length;++l){var u=c[l];u.Sheet==null&&(u.Name.match(/^_xlfn\./)||f.push(Dm(u)))}return we("Names",f.join(""))}(t),on+we("Workbook",e.join(""),{xmlns:Ci.ss,"xmlns:o":Ci.o,"xmlns:x":Ci.x,"xmlns:ss":Ci.ss,"xmlns:dt":Ci.dt,"xmlns:html":Ci.html})}function M6(t){var r={},e=t.content;if(e.l=28,r.AnsiUserType=e.read_shift(0,"lpstr-ansi"),r.AnsiClipboardFormat=function(i){return J0(i,1)}(e),e.length-e.l<=4)return r;var n=e.read_shift(4);return n==0||n>40?r:(e.l-=4,r.Reserved1=e.read_shift(0,"lpstr-ansi"),e.length-e.l<=4||(n=e.read_shift(4))!==1907505652?r:(r.UnicodeClipboardFormat=function(i){return J0(i,2)}(e),(n=e.read_shift(4))==0||n>40?r:(e.l-=4,void(r.Reserved2=e.read_shift(0,"lpwstr")))))}var j6=[60,1084,2066,2165,2175];function I6(t,r,e,n,i){var c=n,f=[],l=e.slice(e.l,e.l+c);if(i&&i.enc&&i.enc.insitu&&l.length>0)switch(t){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:i.enc.insitu(l)}f.push(l),e.l+=c;for(var u=Uo(e,e.l),y=ch[u],p=0;y!=null&&j6.indexOf(u)>-1;)c=Uo(e,e.l+2),p=e.l+4,u==2066?p+=4:u!=2165&&u!=2175||(p+=12),l=e.slice(p,e.l+4+c),f.push(l),e.l+=4+c,y=ch[u=Uo(e,e.l)];var m=xn(f);jn(m,0);var b=0;m.lens=[];for(var v=0;v<f.length;++v)m.lens.push(b),b+=f[v].length;if(m.length<n)throw"XLS Record 0x"+t.toString(16)+" Truncated: "+m.length+" < "+n;return r.f(m,m.length,i)}function So(t,r,e){if(t.t!=="z"&&t.XF){var n=0;try{n=t.z||t.XF.numFmtId||0,r.cellNF&&(t.z=Je[n])}catch(c){if(r.WTF)throw c}if(!r||r.cellText!==!1)try{t.t==="e"?t.w=t.w||Wo[t.v]:n===0||n=="General"?t.t==="n"?(0|t.v)===t.v?t.w=t.v.toString(10):t.w=ic(t.v):t.w=ja(t.v):t.w=Ni(n,t.v,{date1904:!!e,dateNF:r&&r.dateNF})}catch(c){if(r.WTF)throw c}if(r.cellDates&&n&&t.t=="n"&&_s(Je[n]||String(n))){var i=Ma(t.v);i&&(t.t="d",t.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}}function Uu(t,r,e){return{v:t,ixfe:r,t:e}}function D6(t,r){var e,n,i,c,f,l,u,y,p={opts:{}},m={},b=r.dense?[]:{},v={},_={},s=null,o=[],h="",a={},d="",g={},w=[],k=[],S=[],A={Sheets:[],WBProps:{date1904:!1},Views:[{}]},j={},D=function(Kt){return Kt<8?Ts[Kt]:Kt<64&&S[Kt-8]||Ts[Kt]},N=function(Kt,ie,ct){if(!(H>1||ct.sheetRows&&Kt.r>=ct.sheetRows)){if(ct.cellStyles&&ie.XF&&ie.XF.data&&function(_t,vt,Y){var ht,at=vt.XF.data;at&&at.patternType&&Y&&Y.cellStyles&&(vt.s={},vt.s.patternType=at.patternType,(ht=wc(D(at.icvFore)))&&(vt.s.fgColor={rgb:ht}),(ht=wc(D(at.icvBack)))&&(vt.s.bgColor={rgb:ht}))}(0,ie,ct),delete ie.ixfe,delete ie.XF,e=Kt,d=nr(Kt),_&&_.s&&_.e||(_={s:{r:0,c:0},e:{r:0,c:0}}),Kt.r<_.s.r&&(_.s.r=Kt.r),Kt.c<_.s.c&&(_.s.c=Kt.c),Kt.r+1>_.e.r&&(_.e.r=Kt.r+1),Kt.c+1>_.e.c&&(_.e.c=Kt.c+1),ct.cellFormula&&ie.f){for(var pt=0;pt<w.length;++pt)if(!(w[pt][0].s.c>Kt.c||w[pt][0].s.r>Kt.r||w[pt][0].e.c<Kt.c||w[pt][0].e.r<Kt.r)){ie.F=br(w[pt][0]),w[pt][0].s.c==Kt.c&&w[pt][0].s.r==Kt.r||delete ie.f,ie.f&&(ie.f=""+Yn(w[pt][1],0,Kt,C,F));break}}ct.dense?(b[Kt.r]||(b[Kt.r]=[]),b[Kt.r][Kt.c]=ie):b[d]=ie}},F={enc:!1,sbcch:0,snames:[],sharedf:g,arrayf:w,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};r.password&&(F.password=r.password);var T=[],I=[],x=[],O=[],R=!1,C=[];C.SheetNames=F.snames,C.sharedf=F.sharedf,C.arrayf=F.arrayf,C.names=[],C.XTI=[];var P,L=0,H=0,U=0,B=[],W=[];F.codepage=1200,io(1200);for(var X=!1;t.l<t.length-1;){var et=t.l,ft=t.read_shift(2);if(ft===0&&L===10)break;var gt=t.l===t.length?0:t.read_shift(2),bt=ch[ft];if(bt&&bt.f){if(r.bookSheets&&L===133&&ft!==133)break;if(L=ft,bt.r===2||bt.r==12){var rt=t.read_shift(2);if(gt-=2,!F.enc&&rt!==ft&&((255&rt)<<8|rt>>8)!==ft)throw new Error("rt mismatch: "+rt+"!="+ft);bt.r==12&&(t.l+=10,gt-=10)}var Q={};if(Q=ft===10?bt.f(t,gt,F):I6(ft,bt,t,gt,F),H==0&&[9,521,1033,2057].indexOf(L)===-1)continue;switch(ft){case 34:p.opts.Date1904=A.WBProps.date1904=Q;break;case 134:p.opts.WriteProtect=!0;break;case 47:if(F.enc||(t.l=0),F.enc=Q,!r.password)throw new Error("File is password-protected");if(Q.valid==null)throw new Error("Encryption scheme unsupported");if(!Q.valid)throw new Error("Password is incorrect");break;case 92:F.lastuser=Q;break;case 66:var K=Number(Q);switch(K){case 21010:K=1200;break;case 32768:K=1e4;break;case 32769:K=1252}io(F.codepage=K),X=!0;break;case 317:F.rrtabid=Q;break;case 25:F.winlocked=Q;break;case 439:p.opts.RefreshAll=Q;break;case 12:p.opts.CalcCount=Q;break;case 16:p.opts.CalcDelta=Q;break;case 17:p.opts.CalcIter=Q;break;case 13:p.opts.CalcMode=Q;break;case 14:p.opts.CalcPrecision=Q;break;case 95:p.opts.CalcSaveRecalc=Q;break;case 15:F.CalcRefMode=Q;break;case 2211:p.opts.FullCalc=Q;break;case 129:Q.fDialog&&(b["!type"]="dialog"),Q.fBelow||((b["!outline"]||(b["!outline"]={})).above=!0),Q.fRight||((b["!outline"]||(b["!outline"]={})).left=!0);break;case 224:k.push(Q);break;case 430:C.push([Q]),C[C.length-1].XTI=[];break;case 35:case 547:C[C.length-1].push(Q);break;case 24:case 536:P={Name:Q.Name,Ref:Yn(Q.rgce,0,null,C,F)},Q.itab>0&&(P.Sheet=Q.itab-1),C.names.push(P),C[0]||(C[0]=[],C[0].XTI=[]),C[C.length-1].push(Q),Q.Name=="_xlnm._FilterDatabase"&&Q.itab>0&&Q.rgce&&Q.rgce[0]&&Q.rgce[0][0]&&Q.rgce[0][0][0]=="PtgArea3d"&&(W[Q.itab-1]={ref:br(Q.rgce[0][0][1][2])});break;case 22:F.ExternCount=Q;break;case 23:C.length==0&&(C[0]=[],C[0].XTI=[]),C[C.length-1].XTI=C[C.length-1].XTI.concat(Q),C.XTI=C.XTI.concat(Q);break;case 2196:if(F.biff<8)break;P!=null&&(P.Comment=Q[1]);break;case 18:b["!protect"]=Q;break;case 19:Q!==0&&F.WTF&&console.error("Password verifier: "+Q);break;case 133:v[Q.pos]=Q,F.snames.push(Q.name);break;case 10:if(--H)break;if(_.e){if(_.e.r>0&&_.e.c>0){if(_.e.r--,_.e.c--,b["!ref"]=br(_),r.sheetRows&&r.sheetRows<=_.e.r){var nt=_.e.r;_.e.r=r.sheetRows-1,b["!fullref"]=b["!ref"],b["!ref"]=br(_),_.e.r=nt}_.e.r++,_.e.c++}T.length>0&&(b["!merges"]=T),I.length>0&&(b["!objects"]=I),x.length>0&&(b["!cols"]=x),O.length>0&&(b["!rows"]=O),A.Sheets.push(j)}h===""?a=b:m[h]=b,b=r.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(F.biff===8&&(F.biff={9:2,521:3,1033:4}[ft]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Q.BIFFVer]||8),F.biffguess=Q.BIFFVer==0,Q.BIFFVer==0&&Q.dt==4096&&(F.biff=5,X=!0,io(F.codepage=28591)),F.biff==8&&Q.BIFFVer==0&&Q.dt==16&&(F.biff=2),H++)break;if(b=r.dense?[]:{},F.biff<8&&!X&&(X=!0,io(F.codepage=r.codepage||1252)),F.biff<5||Q.BIFFVer==0&&Q.dt==4096){h===""&&(h="Sheet1"),_={s:{r:0,c:0},e:{r:0,c:0}};var At={pos:t.l-gt,name:h};v[At.pos]=At,F.snames.push(h)}else h=(v[et]||{name:""}).name;Q.dt==32&&(b["!type"]="chart"),Q.dt==64&&(b["!type"]="macro"),T=[],I=[],F.arrayf=w=[],x=[],O=[],R=!1,j={Hidden:(v[et]||{hs:0}).hs,name:h};break;case 515:case 3:case 2:b["!type"]=="chart"&&(r.dense?(b[Q.r]||[])[Q.c]:b[nr({c:Q.c,r:Q.r})])&&++Q.c,l={ixfe:Q.ixfe,XF:k[Q.ixfe]||{},v:Q.val,t:"n"},U>0&&(l.z=B[l.ixfe>>8&63]),So(l,r,p.opts.Date1904),N({c:Q.c,r:Q.r},l,r);break;case 5:case 517:l={ixfe:Q.ixfe,XF:k[Q.ixfe],v:Q.val,t:Q.t},U>0&&(l.z=B[l.ixfe>>8&63]),So(l,r,p.opts.Date1904),N({c:Q.c,r:Q.r},l,r);break;case 638:l={ixfe:Q.ixfe,XF:k[Q.ixfe],v:Q.rknum,t:"n"},U>0&&(l.z=B[l.ixfe>>8&63]),So(l,r,p.opts.Date1904),N({c:Q.c,r:Q.r},l,r);break;case 189:for(var ot=Q.c;ot<=Q.C;++ot){var ut=Q.rkrec[ot-Q.c][0];l={ixfe:ut,XF:k[ut],v:Q.rkrec[ot-Q.c][1],t:"n"},U>0&&(l.z=B[l.ixfe>>8&63]),So(l,r,p.opts.Date1904),N({c:ot,r:Q.r},l,r)}break;case 6:case 518:case 1030:if(Q.val=="String"){s=Q;break}if((l=Uu(Q.val,Q.cell.ixfe,Q.tt)).XF=k[l.ixfe],r.cellFormula){var Mt=Q.formula;if(Mt&&Mt[0]&&Mt[0][0]&&Mt[0][0][0]=="PtgExp"){var Bt=Mt[0][0][1][0],G=Mt[0][0][1][1],Z=nr({r:Bt,c:G});g[Z]?l.f=""+Yn(Q.formula,0,Q.cell,C,F):l.F=((r.dense?(b[Bt]||[])[G]:b[Z])||{}).F}else l.f=""+Yn(Q.formula,0,Q.cell,C,F)}U>0&&(l.z=B[l.ixfe>>8&63]),So(l,r,p.opts.Date1904),N(Q.cell,l,r),s=Q;break;case 7:case 519:if(!s)throw new Error("String record expects Formula");s.val=Q,(l=Uu(Q,s.cell.ixfe,"s")).XF=k[l.ixfe],r.cellFormula&&(l.f=""+Yn(s.formula,0,s.cell,C,F)),U>0&&(l.z=B[l.ixfe>>8&63]),So(l,r,p.opts.Date1904),N(s.cell,l,r),s=null;break;case 33:case 545:w.push(Q);var J=nr(Q[0].s);if(n=r.dense?(b[Q[0].s.r]||[])[Q[0].s.c]:b[J],r.cellFormula&&n){if(!s||!J||!n)break;n.f=""+Yn(Q[1],0,Q[0],C,F),n.F=br(Q[0])}break;case 1212:if(!r.cellFormula)break;if(d){if(!s)break;g[nr(s.cell)]=Q[0],((n=r.dense?(b[s.cell.r]||[])[s.cell.c]:b[nr(s.cell)])||{}).f=""+Yn(Q[0],0,e,C,F)}break;case 253:l=Uu(o[Q.isst].t,Q.ixfe,"s"),o[Q.isst].h&&(l.h=o[Q.isst].h),l.XF=k[l.ixfe],U>0&&(l.z=B[l.ixfe>>8&63]),So(l,r,p.opts.Date1904),N({c:Q.c,r:Q.r},l,r);break;case 513:r.sheetStubs&&(l={ixfe:Q.ixfe,XF:k[Q.ixfe],t:"z"},U>0&&(l.z=B[l.ixfe>>8&63]),So(l,r,p.opts.Date1904),N({c:Q.c,r:Q.r},l,r));break;case 190:if(r.sheetStubs)for(var St=Q.c;St<=Q.C;++St){var It=Q.ixfe[St-Q.c];l={ixfe:It,XF:k[It],t:"z"},U>0&&(l.z=B[l.ixfe>>8&63]),So(l,r,p.opts.Date1904),N({c:St,r:Q.r},l,r)}break;case 214:case 516:case 4:(l=Uu(Q.val,Q.ixfe,"s")).XF=k[l.ixfe],U>0&&(l.z=B[l.ixfe>>8&63]),So(l,r,p.opts.Date1904),N({c:Q.c,r:Q.r},l,r);break;case 0:case 512:H===1&&(_=Q);break;case 252:o=Q;break;case 1054:if(F.biff==4){B[U++]=Q[1];for(var Ft=0;Ft<U+163&&Je[Ft]!=Q[1];++Ft);Ft>=163&&Bo(Q[1],U+163)}else Bo(Q[1],Q[0]);break;case 30:B[U++]=Q;for(var Xt=0;Xt<U+163&&Je[Xt]!=Q;++Xt);Xt>=163&&Bo(Q,U+163);break;case 229:T=T.concat(Q);break;case 93:I[Q.cmo[0]]=F.lastobj=Q;break;case 438:F.lastobj.TxO=Q;break;case 127:F.lastobj.ImData=Q;break;case 440:for(f=Q[0].s.r;f<=Q[0].e.r;++f)for(c=Q[0].s.c;c<=Q[0].e.c;++c)(n=r.dense?(b[f]||[])[c]:b[nr({c,r:f})])&&(n.l=Q[1]);break;case 2048:for(f=Q[0].s.r;f<=Q[0].e.r;++f)for(c=Q[0].s.c;c<=Q[0].e.c;++c)(n=r.dense?(b[f]||[])[c]:b[nr({c,r:f})])&&n.l&&(n.l.Tooltip=Q[1]);break;case 28:if(F.biff<=5&&F.biff>=2)break;n=r.dense?(b[Q[0].r]||[])[Q[0].c]:b[nr(Q[0])];var me=I[Q[2]];n||(r.dense?(b[Q[0].r]||(b[Q[0].r]=[]),n=b[Q[0].r][Q[0].c]={t:"z"}):n=b[nr(Q[0])]={t:"z"},_.e.r=Math.max(_.e.r,Q[0].r),_.s.r=Math.min(_.s.r,Q[0].r),_.e.c=Math.max(_.e.c,Q[0].c),_.s.c=Math.min(_.s.c,Q[0].c)),n.c||(n.c=[]),i={a:Q[1],t:me.TxO.t},n.c.push(i);break;case 2173:k[Q.ixfe],Q.ext.forEach(function(Kt){Kt[0]});break;case 125:if(!F.cellStyles)break;for(;Q.e>=Q.s;)x[Q.e--]={width:Q.w/256,level:Q.level||0,hidden:!!(1&Q.flags)},R||(R=!0,Kl(Q.w/256)),da(x[Q.e+1]);break;case 520:var fe={};Q.level!=null&&(O[Q.r]=fe,fe.level=Q.level),Q.hidden&&(O[Q.r]=fe,fe.hidden=!0),Q.hpt&&(O[Q.r]=fe,fe.hpt=Q.hpt,fe.hpx=Cs(Q.hpt));break;case 38:case 39:case 40:case 41:b["!margins"]||Ga(b["!margins"]={}),b["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[ft]]=Q;break;case 161:b["!margins"]||Ga(b["!margins"]={}),b["!margins"].header=Q.header,b["!margins"].footer=Q.footer;break;case 574:Q.RTL&&(A.Views[0].RTL=!0);break;case 146:S=Q;break;case 2198:y=Q;break;case 140:u=Q;break;case 442:h?j.CodeName=Q||j.name:A.WBProps.CodeName=Q||"ThisWorkbook"}}else bt||console.error("Missing Info for XLS Record 0x"+ft.toString(16)),t.l+=gt}return p.SheetNames=nn(v).sort(function(Kt,ie){return Number(Kt)-Number(ie)}).map(function(Kt){return v[Kt].name}),r.bookSheets||(p.Sheets=m),!p.SheetNames.length&&a["!ref"]?(p.SheetNames.push("Sheet1"),p.Sheets&&(p.Sheets.Sheet1=a)):p.Preamble=a,p.Sheets&&W.forEach(function(Kt,ie){p.Sheets[p.SheetNames[ie]]["!autofilter"]=Kt}),p.Strings=o,p.SSF=Vr(Je),F.enc&&(p.Encryption=F.enc),y&&(p.Themes=y),p.Metadata={},u!==void 0&&(p.Metadata.Country=u),C.names.length>0&&(A.Names=C.names),p.Workbook=A,p}var Pc={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Nm(t,r){var e,n,i,c;if(r||(r={}),ph(r),ml(),r.codepage&&pl(r.codepage),t.FullPaths){if(Ve.find(t,"/encryption"))throw new Error("File is password-protected");e=Ve.find(t,"!CompObj"),n=Ve.find(t,"/Workbook")||Ve.find(t,"/Book")}else{switch(r.type){case"base64":t=Oi(Ti(t));break;case"binary":t=Oi(t);break;case"buffer":break;case"array":Array.isArray(t)||(t=Array.prototype.slice.call(t))}jn(t,0),n={content:t}}if(e&&M6(e),r.bookProps&&!r.bookSheets)i={};else{var f=pr?"buffer":"array";if(n&&n.content)i=D6(n.content,r);else if((c=Ve.find(t,"PerfectOffice_MAIN"))&&c.content)i=qa.to_workbook(c.content,(r.type=f,r));else{if(!(c=Ve.find(t,"NativeContent_MAIN"))||!c.content)throw(c=Ve.find(t,"MN0"))&&c.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");i=qa.to_workbook(c.content,(r.type=f,r))}r.bookVBA&&t.FullPaths&&Ve.find(t,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=function(u){var y=Ve.utils.cfb_new({root:"R"});return u.FullPaths.forEach(function(p,m){if(p.slice(-1)!=="/"&&p.match(/_VBA_PROJECT_CUR/)){var b=p.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Ve.utils.cfb_add(y,b,u.FileIndex[m].content)}}),Ve.write(y)}(t))}var l={};return t.FullPaths&&function(u,y,p){var m=Ve.find(u,"/!DocumentSummaryInformation");if(m&&m.size>0)try{var b=k1(m,Fl,Pc.DSI);for(var v in b)y[v]=b[v]}catch(h){if(p.WTF)throw h}var _=Ve.find(u,"/!SummaryInformation");if(_&&_.size>0)try{var s=k1(_,Ll,Pc.SI);for(var o in s)y[o]==null&&(y[o]=s[o])}catch(h){if(p.WTF)throw h}y.HeadingPairs&&y.TitlesOfParts&&(u1(y.HeadingPairs,y.TitlesOfParts,y,p),delete y.HeadingPairs,delete y.TitlesOfParts)}(t,l,r),i.Props=i.Custprops=l,r.bookFiles&&(i.cfb=t),i}function N6(t,r){var e=r||{},n=Ve.utils.cfb_new({root:"R"}),i="/Workbook";switch(e.bookType||"xls"){case"xls":e.bookType="biff8";case"xla":e.bookType||(e.bookType="xla");case"biff8":i="/Workbook",e.biff=8;break;case"biff5":i="/Book",e.biff=5;break;default:throw new Error("invalid type "+e.bookType+" for XLS CFB")}return Ve.utils.cfb_add(n,i,Fm(t,e)),e.biff==8&&(t.Props||t.Custprops)&&function(c,f){var l,u=[],y=[],p=[],m=0,b=u0(Fl,"n"),v=u0(Ll,"n");if(c.Props)for(l=nn(c.Props),m=0;m<l.length;++m)(Object.prototype.hasOwnProperty.call(b,l[m])?u:Object.prototype.hasOwnProperty.call(v,l[m])?y:p).push([l[m],c.Props[l[m]]]);if(c.Custprops)for(l=nn(c.Custprops),m=0;m<l.length;++m)Object.prototype.hasOwnProperty.call(c.Props||{},l[m])||(Object.prototype.hasOwnProperty.call(b,l[m])?u:Object.prototype.hasOwnProperty.call(v,l[m])?y:p).push([l[m],c.Custprops[l[m]]]);var _=[];for(m=0;m<p.length;++m)w1.indexOf(p[m][0])>-1||c1.indexOf(p[m][0])>-1||p[m][1]!=null&&_.push(p[m]);y.length&&Ve.utils.cfb_add(f,"/SummaryInformation",x1(y,Pc.SI,v,Ll)),(u.length||_.length)&&Ve.utils.cfb_add(f,"/DocumentSummaryInformation",x1(u,Pc.DSI,b,Fl,_.length?_:null,Pc.UDI))}(t,n),e.biff==8&&t.vbaraw&&function(c,f){f.FullPaths.forEach(function(l,u){if(u!=0){var y=l.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");y.slice(-1)!=="/"&&Ve.utils.cfb_add(c,y,f.FileIndex[u].content)}})}(n,Ve.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),n}var Mc={0:{f:function(t,r){var e={},n=t.l+r;e.r=t.read_shift(4),t.l+=4;var i=t.read_shift(2);t.l+=1;var c=t.read_shift(1);return t.l=n,7&c&&(e.level=7&c),16&c&&(e.hidden=!0),32&c&&(e.hpt=i/20),e}},1:{f:function(t){return[Bi(t)]}},2:{f:function(t){return[Bi(t),Dl(t),"n"]}},3:{f:function(t){return[Bi(t),t.read_shift(1),"e"]}},4:{f:function(t){return[Bi(t),t.read_shift(1),"b"]}},5:{f:function(t){return[Bi(t),$n(t),"n"]}},6:{f:function(t){return[Bi(t),Vn(t),"str"]}},7:{f:function(t){return[Bi(t),t.read_shift(4),"s"]}},8:{f:function(t,r,e){var n=t.l+r,i=Bi(t);i.r=e["!row"];var c=[i,Vn(t),"str"];if(e.cellFormula){t.l+=2;var f=Bu(t,n-t.l,e);c[3]=Yn(f,0,i,e.supbooks,e)}else t.l=n;return c}},9:{f:function(t,r,e){var n=t.l+r,i=Bi(t);i.r=e["!row"];var c=[i,$n(t),"n"];if(e.cellFormula){t.l+=2;var f=Bu(t,n-t.l,e);c[3]=Yn(f,0,i,e.supbooks,e)}else t.l=n;return c}},10:{f:function(t,r,e){var n=t.l+r,i=Bi(t);i.r=e["!row"];var c=[i,t.read_shift(1),"b"];if(e.cellFormula){t.l+=2;var f=Bu(t,n-t.l,e);c[3]=Yn(f,0,i,e.supbooks,e)}else t.l=n;return c}},11:{f:function(t,r,e){var n=t.l+r,i=Bi(t);i.r=e["!row"];var c=[i,t.read_shift(1),"e"];if(e.cellFormula){t.l+=2;var f=Bu(t,n-t.l,e);c[3]=Yn(f,0,i,e.supbooks,e)}else t.l=n;return c}},12:{f:function(t){return[Ba(t)]}},13:{f:function(t){return[Ba(t),Dl(t),"n"]}},14:{f:function(t){return[Ba(t),t.read_shift(1),"e"]}},15:{f:function(t){return[Ba(t),t.read_shift(1),"b"]}},16:{f:Tm},17:{f:function(t){return[Ba(t),Vn(t),"str"]}},18:{f:function(t){return[Ba(t),t.read_shift(4),"s"]}},19:{f:Pl},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(t,r,e){var n=t.l+r;t.l+=4,t.l+=1;var i=t.read_shift(4),c=zw(t),f=_4(t,0,e),l=Ml(t);t.l=n;var u={Name:c,Ptg:f};return i<268435455&&(u.Sheet=i),l&&(u.Comment=l),u}},40:{},42:{},43:{f:function(t,r,e){var n={};n.sz=t.read_shift(2)/20;var i=function(u){var y=u.read_shift(1);return u.l++,{fBold:1&y,fItalic:2&y,fUnderline:4&y,fStrikeout:8&y,fOutline:16&y,fShadow:32&y,fCondense:64&y,fExtend:128&y}}(t);switch(i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1),t.read_shift(2)===700&&(n.bold=1),t.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript"}var c=t.read_shift(1);c!=0&&(n.underline=c);var f=t.read_shift(1);f>0&&(n.family=f);var l=t.read_shift(1);switch(l>0&&(n.charset=l),t.l++,n.color=function(u){var y={},p=u.read_shift(1)>>>1,m=u.read_shift(1),b=u.read_shift(2,"i"),v=u.read_shift(1),_=u.read_shift(1),s=u.read_shift(1);switch(u.l++,p){case 0:y.auto=1;break;case 1:y.index=m;var o=Ts[m];o&&(y.rgb=wc(o));break;case 2:y.rgb=wc([v,_,s]);break;case 3:y.theme=m}return b!=0&&(y.tint=b>0?b/32767:b/32768),y}(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor"}return n.name=Vn(t),n}},44:{f:function(t,r){return[t.read_shift(2),Vn(t)]}},45:{f:B3},46:{f:z3},47:{f:function(t,r){var e=t.l+r,n=t.read_shift(2),i=t.read_shift(2);return t.l=e,{ixfe:n,numFmtId:i}}},48:{},49:{f:function(t){return t.read_shift(4,"i")}},50:{},51:{f:function(t){for(var r=[],e=t.read_shift(4);e-- >0;)r.push([t.read_shift(4),t.read_shift(4)]);return r}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:W1},62:{f:function(t){return[Bi(t),Pl(t),"is"]}},63:{f:function(t){var r={};r.i=t.read_shift(4);var e={};e.r=t.read_shift(4),e.c=t.read_shift(4),r.r=nr(e);var n=t.read_shift(1);return 2&n&&(r.l="1"),8&n&&(r.a="1"),r}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Wn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(t){var r=t.read_shift(2);return t.l+=28,{RTL:32&r}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(t,r){var e={},n=t[t.l];return++t.l,e.above=!(64&n),e.left=!(128&n),t.l+=18,e.name=Bw(t),e}},148:{f:H4,p:16},151:{f:function(){}},152:{},153:{f:function(t,r){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var i=r>8?Vn(t):"";return i.length>0&&(e.CodeName=i),e.autoCompressPictures=!!(65536&n),e.backupFile=!!(64&n),e.checkCompatibility=!!(4096&n),e.date1904=!!(1&n),e.filterPrivacy=!!(8&n),e.hidePivotFieldList=!!(1024&n),e.promptedSolutions=!!(16&n),e.publishItems=!!(2048&n),e.refreshAllConnections=!!(262144&n),e.saveExternalLinkValues=!!(128&n),e.showBorderUnselectedTables=!!(4&n),e.showInkAnnotation=!!(32&n),e.showObjects=["all","placeholders","none"][n>>13&3],e.showPivotChartFilter=!!(32768&n),e.updateLinks=["userSet","never","always"][n>>8&3],e}},154:{},155:{},156:{f:function(t,r){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=jl(t),e.name=Vn(t),e}},157:{},158:{},159:{T:1,f:function(t){return[t.read_shift(4),t.read_shift(4)]}},160:{T:-1},161:{T:1,f:Ua},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:V4},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(t,r){return{flags:t.read_shift(4),version:t.read_shift(4),name:Vn(t)}}},336:{T:-1},337:{f:function(t){return t.l+=4,t.read_shift(4)!=0},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:jl},357:{},358:{},359:{},360:{T:1},361:{},362:{f:U1},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(t,r,e){var n=t.l+r,i=Z0(t),c=t.read_shift(1),f=[i];if(f[2]=c,e.cellFormula){var l=w4(t,n-t.l,e);f[1]=l}else t.l=n;return f}},427:{f:function(t,r,e){var n=t.l+r,i=[Ua(t)];if(e.cellFormula){var c=k4(t,n-t.l,e);i[1]=c,t.l=n}else t.l=n;return i}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(t){var r={};return Om.forEach(function(e){r[e]=$n(t)}),r}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(t,r){var e=t.l+r,n=Ua(t),i=Ml(t),c=Vn(t),f=Vn(t),l=Vn(t);t.l=e;var u={rfx:n,relId:i,loc:c,display:l};return f&&(u.Tooltip=f),u}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:jl},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:n4},633:{T:1},634:{T:-1},635:{T:1,f:function(t){var r={};r.iauthor=t.read_shift(4);var e=Ua(t);return r.rfx=e.s,r.ref=nr(e.s),t.l+=16,r}},636:{T:-1},637:{f:Fw},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(t,r){return t.l+=10,{name:Vn(t)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},ch={6:{f:eh},10:{f:ha},12:{f:mn},13:{f:mn},14:{f:an},15:{f:an},16:{f:$n},17:{f:an},18:{f:an},19:{f:mn},20:{f:L1},21:{f:L1},23:{f:U1},24:{f:z1},25:{f:an},26:{},27:{},28:{f:function(t,r,e){return function(n,i,c){if(!(c.biff<8)){var f=n.read_shift(2),l=n.read_shift(2),u=n.read_shift(2),y=n.read_shift(2),p=Va(n,0,c);return c.biff<8&&n.read_shift(1),[{r:f,c:l},p,y,u]}}(t,0,e)}},29:{},34:{f:an},35:{f:B1},38:{f:$n},39:{f:$n},40:{f:$n},41:{f:$n},42:{f:an},43:{f:an},47:{f:function(t,r,e){var n={Type:e.biff>=8?t.read_shift(2):0};return n.Type?P3(t,r-2,n):function(i,c,f,l){var u={key:mn(i),verificationBytes:mn(i)};f.password&&(u.verifier=Gl(f.password)),l.valid=u.verificationBytes===u.verifier,l.valid&&(l.insitu=A3(f.password))}(t,e.biff,e,n),n}},49:{f:function(t,r,e){var n={dyHeight:t.read_shift(2),fl:t.read_shift(2)};switch(e&&e.biff||8){case 2:break;case 3:case 4:t.l+=2;break;default:t.l+=10}return n.name=bc(t,0,e),n}},51:{f:mn},60:{},61:{f:function(t){return{Pos:[t.read_shift(2),t.read_shift(2)],Dim:[t.read_shift(2),t.read_shift(2)],Flags:t.read_shift(2),CurTab:t.read_shift(2),FirstTab:t.read_shift(2),Selected:t.read_shift(2),TabRatio:t.read_shift(2)}}},64:{f:an},65:{f:function(){}},66:{f:mn},77:{},80:{},81:{},82:{},85:{f:mn},89:{},90:{},91:{},92:{f:function(t,r,e){if(e.enc)return t.l+=r,"";var n=t.l,i=Va(t,0,e);return t.read_shift(r+n-t.l),i}},93:{f:function(t,r,e){if(e&&e.biff<8)return function(c,f,l){c.l+=4;var u=c.read_shift(2),y=c.read_shift(2),p=c.read_shift(2);c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=6,f-=36;var m=[];return m.push((s3[u]||Wn)(c,f,l)),{cmo:[y,u,p],ft:m}}(t,r,e);var n=j1(t),i=function(c,f){for(var l=c.l+f,u=[];c.l<l;){var y=c.read_shift(2);c.l-=2;try{u.push(r3[y](c,l-c.l))}catch(p){return c.l=l,u}}return c.l!=l&&(c.l=l),u}(t,r-22,n[1]);return{cmo:n,ft:i}}},94:{},95:{f:an},96:{},97:{},99:{f:an},125:{f:W1},128:{f:function(t){t.l+=4;var r=[t.read_shift(2),t.read_shift(2)];if(r[0]!==0&&r[0]--,r[1]!==0&&r[1]--,r[0]>7||r[1]>7)throw new Error("Bad Gutters: "+r.join("|"));return r}},129:{f:function(t,r,e){var n=e&&e.biff==8||r==2?t.read_shift(2):(t.l+=r,0);return{fDialog:16&n,fBelow:64&n,fRight:128&n}}},130:{f:mn},131:{f:an},132:{f:an},133:{f:function(t,r,e){var n=t.read_shift(4),i=3&t.read_shift(1),c=t.read_shift(1);switch(c){case 0:c="Worksheet";break;case 1:c="Macrosheet";break;case 2:c="Chartsheet";break;case 6:c="VBAModule"}var f=bc(t,0,e);return f.length===0&&(f="Sheet1"),{pos:n,hs:i,dt:c,name:f}}},134:{},140:{f:function(t){var r,e=[0,0];return r=t.read_shift(2),e[0]=e1[r]||r,r=t.read_shift(2),e[1]=e1[r]||r,e}},141:{f:mn},144:{},146:{f:function(t){for(var r=t.read_shift(2),e=[];r-- >0;)e.push(C1(t));return e}},151:{},152:{},153:{},154:{},155:{},156:{f:mn},157:{},158:{},160:{f:l3},161:{f:function(t,r){var e={};return r<32||(t.l+=16,e.header=$n(t),e.footer=$n(t),t.l+=2),e}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(t,r){for(var e=t.l+r-2,n=t.read_shift(2),i=t.read_shift(2),c=[];t.l<e;)c.push(A1(t));if(t.l!==e)throw new Error("MulRK read error");var f=t.read_shift(2);if(c.length!=f-i+1)throw new Error("MulRK length mismatch");return{r:n,c:i,C:f,rkrec:c}}},190:{f:function(t,r){for(var e=t.l+r-2,n=t.read_shift(2),i=t.read_shift(2),c=[];t.l<e;)c.push(t.read_shift(2));if(t.l!==e)throw new Error("MulBlank read error");var f=t.read_shift(2);if(c.length!=f-i+1)throw new Error("MulBlank length mismatch");return{r:n,c:i,C:f,ixfe:c}}},193:{f:ha},197:{},198:{},199:{},200:{},201:{},202:{f:an},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:mn},220:{},221:{f:an},222:{},224:{f:function(t,r,e){var n={};return n.ifnt=t.read_shift(2),n.numFmtId=t.read_shift(2),n.flags=t.read_shift(2),n.fStyle=n.flags>>2&1,n.data=function(i,c,f,l){var u={},y=i.read_shift(4),p=i.read_shift(4),m=i.read_shift(4),b=i.read_shift(2);return u.patternType=Hw[m>>26],l.cellStyles&&(u.alc=7&y,u.fWrap=y>>3&1,u.alcV=y>>4&7,u.fJustLast=y>>7&1,u.trot=y>>8&255,u.cIndent=y>>16&15,u.fShrinkToFit=y>>20&1,u.iReadOrder=y>>22&2,u.fAtrNum=y>>26&1,u.fAtrFnt=y>>27&1,u.fAtrAlc=y>>28&1,u.fAtrBdr=y>>29&1,u.fAtrPat=y>>30&1,u.fAtrProt=y>>31&1,u.dgLeft=15&p,u.dgRight=p>>4&15,u.dgTop=p>>8&15,u.dgBottom=p>>12&15,u.icvLeft=p>>16&127,u.icvRight=p>>23&127,u.grbitDiag=p>>30&3,u.icvTop=127&m,u.icvBottom=m>>7&127,u.icvDiag=m>>14&127,u.dgDiag=m>>21&15,u.icvFore=127&b,u.icvBack=b>>7&127,u.fsxButton=b>>14&1),u}(t,0,n.fStyle,e),n}},225:{f:function(t,r){return r===0||t.read_shift(2),1200}},226:{f:ha},227:{},229:{f:function(t,r){for(var e=[],n=t.read_shift(2);n--;)e.push(Mu(t));return e}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(t,r){for(var e=t.l+r,n=t.read_shift(4),i=t.read_shift(4),c=[],f=0;f!=i&&t.l<e;++f)c.push(Xw(t));return c.Count=n,c.Unique=i,c}},253:{f:function(t){var r=xo(t);return r.isst=t.read_shift(4),r}},255:{f:function(t,r){var e={};return e.dsst=t.read_shift(2),t.l+=r-2,e}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:S1},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:an},353:{f:ha},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(t,r,e){var n=t.l+r,i=t.read_shift(2),c=t.read_shift(2);if(e.sbcch=c,c==1025||c==14849)return[c,i];if(c<1||c>255)throw new Error("Unexpected SupBook type: "+c);for(var f=Wa(t,c),l=[];n>t.l;)l.push(gc(t));return[c,i,f,l]}},431:{f:an},432:{},433:{},434:{},437:{},438:{f:function(t,r,e){var n=t.l,i="";try{t.l+=4;var c=(e.lastobj||{cmo:[0,0]}).cmo[1];[0,5,7,11,12,14].indexOf(c)==-1?t.l+=6:function(p){var m=p.read_shift(1);p.l++;var b=p.read_shift(2);return p.l+=2,[m,b]}(t);var f=t.read_shift(2);t.read_shift(2),mn(t);var l=t.read_shift(2);t.l+=l;for(var u=1;u<t.lens.length-1;++u){if(t.l-n!=t.lens[u])throw new Error("TxO: bad continue record");var y=t[t.l];if((i+=Wa(t,t.lens[u+1]-t.lens[u]-1)).length>=(y?f:2*f))break}if(i.length!==f&&i.length!==2*f)throw new Error("cchText: "+f+" != "+i.length);return t.l=n+r,{t:i}}catch(p){return t.l=n+r,{t:i}}}},439:{f:an},440:{f:function(t,r){var e=Mu(t);t.l+=16;var n=function(i,c){var f=i.l+c,l=i.read_shift(4);if(l!==2)throw new Error("Unrecognized streamVersion: "+l);var u=i.read_shift(2);i.l+=2;var y,p,m,b,v,_,s="";16&u&&(y=Pu(i,i.l)),128&u&&(p=Pu(i,i.l)),(257&u)==257&&(m=Pu(i,i.l)),(257&u)==1&&(b=Jw(i,i.l)),8&u&&(s=Pu(i,i.l)),32&u&&(v=i.read_shift(16)),64&u&&(_=Wl(i)),i.l=f;var o=p||m||b||"";o&&s&&(o+="#"+s),o||(o="#"+s),2&u&&o.charAt(0)=="/"&&o.charAt(1)!="/"&&(o="file://"+o);var h={Target:o};return v&&(h.guid=v),_&&(h.time=_),y&&(h.Tooltip=y),h}(t,r-24);return[e,n]}},441:{},442:{f:gc},443:{},444:{f:mn},445:{},446:{},448:{f:ha},449:{f:function(t){return t.read_shift(2),t.read_shift(4)},r:2},450:{f:ha},512:{f:D1},513:{f:f3},515:{f:function(t,r,e){e.biffguess&&e.biff==2&&(e.biff=5);var n=xo(t),i=$n(t);return n.val=i,n}},516:{f:function(t,r,e){e.biffguess&&e.biff==2&&(e.biff=5),t.l;var n=xo(t);e.biff==2&&t.l++;var i=gc(t,t.l,e);return n.val=i,n}},517:{f:F1},519:{f:h3},520:{f:function(t){var r={};r.r=t.read_shift(2),r.c=t.read_shift(2),r.cnt=t.read_shift(2)-r.c;var e=t.read_shift(2);t.l+=4;var n=t.read_shift(1);return t.l+=3,7&n&&(r.level=7&n),32&n&&(r.hidden=!0),64&n&&(r.hpt=e/20),r}},523:{},545:{f:H1},549:{f:I1},566:{},574:{f:function(t,r,e){return e&&e.biff>=2&&e.biff<5?{}:{RTL:64&t.read_shift(2)}}},638:{f:function(t){var r=t.read_shift(2),e=t.read_shift(2),n=A1(t);return{r,c:e,ixfe:n[0],rknum:n[1]}}},659:{},1048:{},1054:{f:function(t,r,e){return[t.read_shift(2),Va(t,0,e)]}},1084:{},1212:{f:function(t,r,e){var n=M1(t);t.l++;var i=t.read_shift(1);return[b4(t,r-=8,e),i,n]}},2048:{f:function(t,r){t.read_shift(2);var e=Mu(t),n=t.read_shift((r-10)/2,"dbcs-cont");return[e,n=n.replace(ei,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:ju},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:ha},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(t){t.l+=2;var r={cxfs:0,crc:0};return r.cxfs=t.read_shift(2),r.crc=t.read_shift(4),r},r:12},2173:{f:function(t,r){t.l,t.l+=2;var e=t.read_shift(2);t.l+=2;for(var n=t.read_shift(2),i=[];n-- >0;)i.push(t4(t,t.l));return{ixfe:e,ext:i}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:an,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(t,r,e){if(!(e.biff<8)){var n=t.read_shift(2),i=t.read_shift(2);return[Wa(t,n,e),Wa(t,i,e)]}t.l+=r},r:12},2197:{},2198:{f:function(t,r,e){var n=t.l+r;if(t.read_shift(4)!==124226)if(e.cellStyles){var i,c=t.slice(t.l);t.l=n;try{i=b0(c,{type:"array"})}catch(l){return}var f=Ri(i,"theme/theme/theme1.xml",!0);if(f)return im(f,e)}else t.l=n},r:12},2199:{},2200:{},2201:{},2202:{f:function(t){return[t.read_shift(4)!==0,t.read_shift(4)!==0,t.read_shift(4)]},r:12},2203:{f:ha},2204:{},2205:{},2206:{},2207:{},2211:{f:function(t){var r=function(e){var n=e.read_shift(2),i=e.read_shift(2);return e.l+=8,{type:n,flags:i}}(t);if(r.type!=2211)throw new Error("Invalid Future Record "+r.type);return t.read_shift(4)!==0}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:mn},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(t,r,e){var n={area:!1};if(e.biff!=5)return t.l+=r,n;var i=t.read_shift(1);return t.l+=3,16&i&&(n.area=!0),n}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(t){for(var r=t.read_shift(2),e=[];r-- >0;)e.push(C1(t));return e}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:D1},1:{},2:{f:function(t){var r=xo(t);++t.l;var e=t.read_shift(2);return r.t="n",r.val=e,r}},3:{f:function(t){var r=xo(t);++t.l;var e=$n(t);return r.t="n",r.val=e,r}},4:{f:function(t,r,e){e.biffguess&&e.biff==5&&(e.biff=2);var n=xo(t);++t.l;var i=Va(t,0,e);return n.t="str",n.val=i,n}},5:{f:F1},7:{f:function(t){var r=t.read_shift(1);return r===0?(t.l++,""):t.read_shift(r,"sbcs-cont")}},8:{},9:{f:ju},11:{},22:{f:mn},30:{f:o3},31:{},32:{},33:{f:H1},36:{},37:{f:I1},50:{f:function(t,r){t.l+=6,t.l+=2,t.l+=1,t.l+=3,t.l+=1,t.l+=r-13}},62:{},52:{},67:{},68:{f:mn},69:{},86:{},126:{},127:{f:function(t){var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(4),i={fmt:r,env:e,len:n,data:t.slice(t.l,t.l+n)};return t.l+=n,i}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(t,r,e){var n=t.l+r,i=xo(t),c=t.read_shift(2),f=Wa(t,c,e);return t.l=n,i.t="str",i.val=f,i}},223:{},234:{},354:{},421:{},518:{f:eh},521:{f:ju},536:{f:z1},547:{f:B1},561:{},579:{},1030:{f:eh},1033:{f:ju},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function ke(t,r,e,n){var i=r;if(!isNaN(i)){var c=n||(e||[]).length||0,f=t.next(4);f.write_shift(2,i),f.write_shift(2,c),c>0&&Cl(e)&&t.push(e)}}function jc(t,r,e){return t||(t=Jt(7)),t.write_shift(2,r),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function F6(t,r,e,n){if(r.v!=null)switch(r.t){case"d":case"n":var i=r.t=="d"?Pn(Yr(r.v)):r.v;return void(i==(0|i)&&i>=0&&i<65536?ke(t,2,(c=e,f=n,l=i,u=Jt(9),jc(u,c,f),u.write_shift(2,l),u)):ke(t,3,function(y,p,m){var b=Jt(15);return jc(b,y,p),b.write_shift(8,m,"f"),b}(e,n,i)));case"b":case"e":return void ke(t,5,function(y,p,m,b){var v=Jt(9);return jc(v,y,p),E1(m,b||"b",v),v}(e,n,r.v,r.t));case"s":case"str":return void ke(t,4,function(y,p,m){var b=Jt(8+2*m.length);return jc(b,y,p),b.write_shift(1,m.length),b.write_shift(m.length,m,"sbcs"),b.l<b.length?b.slice(0,b.l):b}(e,n,(r.v||"").slice(0,255)))}var c,f,l,u;ke(t,1,jc(null,e,n))}function L6(t,r){for(var e=r||{},n=vi(),i=0,c=0;c<t.SheetNames.length;++c)t.SheetNames[c]==e.sheet&&(i=c);if(i==0&&e.sheet&&t.SheetNames[0]!=e.sheet)throw new Error("Sheet not found: "+e.sheet);return ke(n,e.biff==4?1033:e.biff==3?521:9,Vl(0,16,e)),function(f,l,u,y){var p,m=Array.isArray(l),b=Cr(l["!ref"]||"A1"),v="",_=[];if(b.e.c>255||b.e.r>16383){if(y.WTF)throw new Error("Range "+(l["!ref"]||"A1")+" exceeds format limit A1:IV16384");b.e.c=Math.min(b.e.c,255),b.e.r=Math.min(b.e.c,16383),p=br(b)}for(var s=b.s.r;s<=b.e.r;++s){v=Sn(s);for(var o=b.s.c;o<=b.e.c;++o){s===b.s.r&&(_[o]=pn(o)),p=_[o]+v;var h=m?(l[s]||[])[o]:l[p];h&&F6(f,h,s,o)}}}(n,t.Sheets[t.SheetNames[i]],0,e),ke(n,10),n.end()}function B6(t,r,e){ke(t,49,function(n,i){var c=n.name||"Arial",f=i&&i.biff==5,l=Jt(f?15+c.length:16+2*c.length);return l.write_shift(2,20*(n.sz||12)),l.write_shift(4,0),l.write_shift(2,400),l.write_shift(4,0),l.write_shift(2,0),l.write_shift(1,c.length),f||l.write_shift(1,1),l.write_shift((f?1:2)*c.length,c,f?"sbcs":"utf16le"),l}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},e))}function z6(t,r){if(r){var e=0;r.forEach(function(n,i){++e<=256&&n&&ke(t,125,function(c,f){var l=Jt(12);l.write_shift(2,f),l.write_shift(2,f),l.write_shift(2,256*c.width),l.write_shift(2,0);var u=0;return c.hidden&&(u|=1),l.write_shift(1,u),u=c.level||0,l.write_shift(1,u),l.write_shift(2,0),l}(zu(i,n),i))})}}function U6(t,r,e,n,i){var c=16+ma(i.cellXfs,r,i);if(r.v!=null||r.bf)if(r.bf)ke(t,6,g4(r,e,n,0,c));else switch(r.t){case"d":case"n":ke(t,515,function(f,l,u,y){var p=Jt(14);return $a(f,l,y,p),Es(u,p),p}(e,n,r.t=="d"?Pn(Yr(r.v)):r.v,c));break;case"b":case"e":ke(t,517,function(f,l,u,y,p,m){var b=Jt(8);return $a(f,l,y,b),E1(u,m,b),b}(e,n,r.v,c,0,r.t));break;case"s":case"str":i.bookSST?ke(t,253,function(f,l,u,y){var p=Jt(10);return $a(f,l,y,p),p.write_shift(4,u),p}(e,n,nh(i.Strings,r.v,i.revStrings),c)):ke(t,516,function(f,l,u,y,p){var m=!p||p.biff==8,b=Jt(+m+8+(1+m)*u.length);return $a(f,l,y,b),b.write_shift(2,u.length),m&&b.write_shift(1,1),b.write_shift((1+m)*u.length,u,m?"utf16le":"sbcs"),b}(e,n,(r.v||"").slice(0,255),c,i));break;default:ke(t,513,$a(e,n,c))}else ke(t,513,$a(e,n,c))}function H6(t,r,e){var n,i,c,f=vi(),l=e.SheetNames[t],u=e.Sheets[l]||{},y=(e||{}).Workbook||{},p=(y.Sheets||[])[t]||{},m=Array.isArray(u),b=r.biff==8,v="",_=[],s=Cr(u["!ref"]||"A1"),o=b?65536:16384;if(s.e.c>255||s.e.r>=o){if(r.WTF)throw new Error("Range "+(u["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,o-1)}ke(f,2057,Vl(0,16,r)),ke(f,13,Ui(1)),ke(f,12,Ui(100)),ke(f,15,ni(!0)),ke(f,17,ni(!1)),ke(f,16,Es(.001)),ke(f,95,ni(!0)),ke(f,42,ni(!1)),ke(f,43,ni(!1)),ke(f,130,Ui(1)),ke(f,128,(i=[0,0],(c=Jt(8)).write_shift(4,0),c.write_shift(2,i[0]?i[0]+1:0),c.write_shift(2,i[1]?i[1]+1:0),c)),ke(f,131,ni(!1)),ke(f,132,ni(!1)),b&&z6(f,u["!cols"]),ke(f,512,function(w,k){var S=k.biff!=8&&k.biff?2:4,A=Jt(2*S+6);return A.write_shift(S,w.s.r),A.write_shift(S,w.e.r+1),A.write_shift(2,w.s.c),A.write_shift(2,w.e.c+1),A.write_shift(2,0),A}(s,r)),b&&(u["!links"]=[]);for(var h=s.s.r;h<=s.e.r;++h){v=Sn(h);for(var a=s.s.c;a<=s.e.c;++a){h===s.s.r&&(_[a]=pn(a)),n=_[a]+v;var d=m?(u[h]||[])[a]:u[n];d&&(U6(f,d,h,a,r),b&&d.l&&u["!links"].push([n,d.l]))}}var g=p.CodeName||p.name||l;return b&&ke(f,574,function(w){var k=Jt(18),S=1718;return w&&w.RTL&&(S|=64),k.write_shift(2,S),k.write_shift(4,0),k.write_shift(4,64),k.write_shift(4,0),k.write_shift(4,0),k}((y.Views||[])[0])),b&&(u["!merges"]||[]).length&&ke(f,229,function(w){var k=Jt(2+8*w.length);k.write_shift(2,w.length);for(var S=0;S<w.length;++S)P1(w[S],k);return k}(u["!merges"])),b&&function(w,k){for(var S=0;S<k["!links"].length;++S){var A=k["!links"][S];ke(w,440,c3(A)),A[1].Tooltip&&ke(w,2048,u3(A))}delete k["!links"]}(f,u),ke(f,442,T1(g)),b&&function(w,k){var S=Jt(19);S.write_shift(4,2151),S.write_shift(4,0),S.write_shift(4,0),S.write_shift(2,3),S.write_shift(1,1),S.write_shift(4,0),ke(w,2151,S),(S=Jt(39)).write_shift(4,2152),S.write_shift(4,0),S.write_shift(4,0),S.write_shift(2,3),S.write_shift(1,0),S.write_shift(4,0),S.write_shift(2,1),S.write_shift(4,4),S.write_shift(2,0),P1(Cr(k["!ref"]||"A1"),S),S.write_shift(4,4),ke(w,2152,S)}(f,u),ke(f,10),f.end()}function W6(t,r,e){var n,i=vi(),c=(t||{}).Workbook||{},f=c.Sheets||[],l=c.WBProps||{},u=e.biff==8,y=e.biff==5;ke(i,2057,Vl(0,5,e)),e.bookType=="xla"&&ke(i,135),ke(i,225,u?Ui(1200):null),ke(i,193,function(d,g){g||(g=Jt(d));for(var w=0;w<d;++w)g.write_shift(1,0);return g}(2)),y&&ke(i,191),y&&ke(i,192),ke(i,226),ke(i,92,function(d,g){var w=!g||g.biff==8,k=Jt(w?112:54);for(k.write_shift(g.biff==8?2:1,7),w&&k.write_shift(1,0),k.write_shift(4,859007059),k.write_shift(4,5458548|(w?0:536870912));k.l<k.length;)k.write_shift(1,w?0:32);return k}(0,e)),ke(i,66,Ui(u?1200:1252)),u&&ke(i,353,Ui(0)),u&&ke(i,448),ke(i,317,function(d){for(var g=Jt(2*d),w=0;w<d;++w)g.write_shift(2,w+1);return g}(t.SheetNames.length)),u&&t.vbaraw&&ke(i,211),u&&t.vbaraw&&ke(i,442,T1(l.CodeName||"ThisWorkbook")),ke(i,156,Ui(17)),ke(i,25,ni(!1)),ke(i,18,ni(!1)),ke(i,19,Ui(0)),u&&ke(i,431,ni(!1)),u&&ke(i,444,Ui(0)),ke(i,61,((n=Jt(18)).write_shift(2,0),n.write_shift(2,0),n.write_shift(2,29280),n.write_shift(2,17600),n.write_shift(2,56),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,1),n.write_shift(2,500),n)),ke(i,64,ni(!1)),ke(i,141,Ui(0)),ke(i,34,ni(function(d){return d.Workbook&&d.Workbook.WBProps&&$r(d.Workbook.WBProps.date1904)?"true":"false"}(t)=="true")),ke(i,14,ni(!0)),u&&ke(i,439,ni(!1)),ke(i,218,Ui(0)),B6(i,0,e),function(d,g,w){g&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(k){for(var S=k[0];S<=k[1];++S)g[S]!=null&&ke(d,1054,i3(S,g[S],w))})}(i,t.SSF,e),function(d,g){for(var w=0;w<16;++w)ke(d,224,N1({numFmtId:0,style:!0},0,g));g.cellXfs.forEach(function(k){ke(d,224,N1(k,0,g))})}(i,e),u&&ke(i,352,ni(!1));var p=i.end(),m=vi();u&&ke(m,140,function(d){return d||(d=Jt(4)),d.write_shift(2,1),d.write_shift(2,1),d}()),u&&e.Strings&&function(d,g,w,k){var S=k||(w||[]).length||0;if(S<=8224)return ke(d,g,w,S);var A=g;if(!isNaN(A)){for(var j=w.parts||[],D=0,N=0,F=0;F+(j[D]||8224)<=8224;)F+=j[D]||8224,D++;var T=d.next(4);for(T.write_shift(2,A),T.write_shift(2,F),d.push(w.slice(N,N+F)),N+=F;N<S;){for((T=d.next(4)).write_shift(2,60),F=0;F+(j[D]||8224)<=8224;)F+=j[D]||8224,D++;T.write_shift(2,F),d.push(w.slice(N,N+F)),N+=F}}}(m,252,function(d,g){var w=Jt(8);w.write_shift(4,d.Count),w.write_shift(4,d.Unique);for(var k=[],S=0;S<d.length;++S)k[S]=Zw(d[S]);var A=xn([w].concat(k));return A.parts=[w.length].concat(k.map(function(j){return j.length})),A}(e.Strings)),ke(m,10);var b=m.end(),v=vi(),_=0,s=0;for(s=0;s<t.SheetNames.length;++s)_+=(u?12:11)+(u?2:1)*t.SheetNames[s].length;var o=p.length+_+b.length;for(s=0;s<t.SheetNames.length;++s)ke(v,133,n3({pos:o,hs:(f[s]||{}).Hidden||0,dt:0,name:t.SheetNames[s]},e)),o+=r[s].length;var h=v.end();if(_!=h.length)throw new Error("BS8 "+_+" != "+h.length);var a=[];return p.length&&a.push(p),h.length&&a.push(h),b.length&&a.push(b),xn(a)}function Fm(t,r){for(var e=0;e<=t.SheetNames.length;++e){var n=t.Sheets[t.SheetNames[e]];n&&n["!ref"]&&Li(n["!ref"]).e.c>255&&typeof console!="undefined"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255). Data may be lost.")}var i=r||{};switch(i.biff||2){case 8:case 5:return function(c,f){var l=f||{},u=[];c&&!c.SSF&&(c.SSF=Vr(Je)),c&&c.SSF&&(ks(),wu(c.SSF),l.revssf=ku(c.SSF),l.revssf[c.SSF[65535]]=0,l.ssf=c.SSF),l.Strings=[],l.Strings.Count=0,l.Strings.Unique=0,mh(l),l.cellXfs=[],ma(l.cellXfs,{},{revssf:{General:0}}),c.Props||(c.Props={});for(var y=0;y<c.SheetNames.length;++y)u[u.length]=H6(y,l,c);return u.unshift(W6(c,u,l)),xn(u)}(t,r);case 4:case 3:case 2:return L6(t,r)}throw new Error("invalid type "+i.bookType+" for BIFF")}function Lm(t,r){var e=r||{},n=e.dense?[]:{},i=(t=t.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var c=t.match(/<\/table/i),f=i.index,l=c&&c.index||t.length,u=ww(t.slice(f,l),/(:?<tr[^>]*>)/i,"<tr>"),y=-1,p=0,m=0,b=0,v={s:{r:1e7,c:1e7},e:{r:0,c:0}},_=[];for(f=0;f<u.length;++f){var s=u[f].trim(),o=s.slice(0,3).toLowerCase();if(o!="<tr"){if(o=="<td"||o=="<th"){var h=s.split(/<\/t[dh]>/i);for(l=0;l<h.length;++l){var a=h[l].trim();if(a.match(/<t[dh]/i)){for(var d=a,g=0;d.charAt(0)=="<"&&(g=d.indexOf(">"))>-1;)d=d.slice(g+1);for(var w=0;w<_.length;++w){var k=_[w];k.s.c==p&&k.s.r<y&&y<=k.e.r&&(p=k.e.c+1,w=-1)}var S=Qe(a.slice(0,a.indexOf(">")));b=S.colspan?+S.colspan:1,((m=+S.rowspan)>1||b>1)&&_.push({s:{r:y,c:p},e:{r:y+(m||1)-1,c:p+b-1}});var A=S.t||S["data-t"]||"";if(d.length)if(d=Ew(d),v.s.r>y&&(v.s.r=y),v.e.r<y&&(v.e.r=y),v.s.c>p&&(v.s.c=p),v.e.c<p&&(v.e.c=p),d.length){var j={t:"s",v:d};e.raw||!d.trim().length||A=="s"||(d==="TRUE"?j={t:"b",v:!0}:d==="FALSE"?j={t:"b",v:!1}:isNaN(zo(d))?isNaN(ac(d).getDate())||(j={t:"d",v:Yr(d)},e.cellDates||(j={t:"n",v:Pn(j.v)}),j.z=e.dateNF||Je[14]):j={t:"n",v:zo(d)}),e.dense?(n[y]||(n[y]=[]),n[y][p]=j):n[nr({r:y,c:p})]=j,p+=b}else p+=b;else p+=b}}}}else{if(++y,e.sheetRows&&e.sheetRows<=y){--y;break}p=0}}return n["!ref"]=br(v),_.length&&(n["!merges"]=_),n}function V6(t,r,e,n){for(var i=t["!merges"]||[],c=[],f=r.s.c;f<=r.e.c;++f){for(var l=0,u=0,y=0;y<i.length;++y)if(!(i[y].s.r>e||i[y].s.c>f||i[y].e.r<e||i[y].e.c<f)){if(i[y].s.r<e||i[y].s.c<f){l=-1;break}l=i[y].e.r-i[y].s.r+1,u=i[y].e.c-i[y].s.c+1;break}if(!(l<0)){var p=nr({r:e,c:f}),m=n.dense?(t[e]||[])[f]:t[p],b=m&&m.v!=null&&(m.h||Sl(m.w||(la(m),m.w)||""))||"",v={};l>1&&(v.rowspan=l),u>1&&(v.colspan=u),n.editable?b='<span contenteditable="true">'+b+"</span>":m&&(v["data-t"]=m&&m.t||"z",m.v!=null&&(v["data-v"]=m.v),m.z!=null&&(v["data-z"]=m.z),m.l&&(m.l.Target||"#").charAt(0)!="#"&&(b='<a href="'+m.l.Target+'">'+b+"</a>")),v.id=(n.id||"sjs")+"-"+p,c.push(we("td",b,v))}}return"<tr>"+c.join("")+"</tr>"}var $6='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',q6="</body></html>",G6={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function Bm(t,r){var e,n,i,c,f,l,u,y,p=r||{},m=Ol(t),b=[],v={name:""},_="",s=0,o={},h=[],a=p.dense?[]:{},d={value:""},g="",w=0,k=[],S=-1,A=-1,j={s:{r:1e6,c:1e7},e:{r:0,c:0}},D=0,N={},F=[],T={},I=[],x=1,O=1,R=[],C={Names:[]},P={},L=["",""],H=[],U={},B="",W=0,X=!1,et=!1,ft=0;for(fc.lastIndex=0,m=m.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");f=fc.exec(m);)switch(f[3]=f[3].replace(/_.*$/,"")){case"table":case"工作表":f[1]==="/"?(j.e.c>=j.s.c&&j.e.r>=j.s.r?a["!ref"]=br(j):a["!ref"]="A1:A1",p.sheetRows>0&&p.sheetRows<=j.e.r&&(a["!fullref"]=a["!ref"],j.e.r=p.sheetRows-1,a["!ref"]=br(j)),F.length&&(a["!merges"]=F),I.length&&(a["!rows"]=I),i.name=i.名称||i.name,typeof JSON!="undefined"&&JSON.stringify(i),h.push(i.name),o[i.name]=a,et=!1):f[0].charAt(f[0].length-2)!=="/"&&(i=Qe(f[0],!1),S=A=-1,j.s.r=j.s.c=1e7,j.e.r=j.e.c=0,a=p.dense?[]:{},F=[],I=[],et=!0);break;case"table-row-group":f[1]==="/"?--D:++D;break;case"table-row":case"行":if(f[1]==="/"){S+=x,x=1;break}if((c=Qe(f[0],!1)).行号?S=c.行号-1:S==-1&&(S=0),(x=+c["number-rows-repeated"]||1)<10)for(ft=0;ft<x;++ft)D>0&&(I[S+ft]={level:D});A=-1;break;case"covered-table-cell":f[1]!=="/"&&++A,p.sheetStubs&&(p.dense?(a[S]||(a[S]=[]),a[S][A]={t:"z"}):a[nr({r:S,c:A})]={t:"z"}),g="",k=[];break;case"table-cell":case"数据":if(f[0].charAt(f[0].length-2)==="/")++A,d=Qe(f[0],!1),O=parseInt(d["number-columns-repeated"]||"1",10),l={t:"z",v:null},d.formula&&p.cellFormula!=0&&(l.f=km(Tr(d.formula))),(d.数据类型||d["value-type"])=="string"&&(l.t="s",l.v=Tr(d["string-value"]||""),p.dense?(a[S]||(a[S]=[]),a[S][A]=l):a[nr({r:S,c:A})]=l),A+=O-1;else if(f[1]!=="/"){g="",w=0,k=[],O=1;var gt=x?S+x-1:S;if(++A>j.e.c&&(j.e.c=A),A<j.s.c&&(j.s.c=A),S<j.s.r&&(j.s.r=S),gt>j.e.r&&(j.e.r=gt),H=[],U={},l={t:(d=Qe(f[0],!1)).数据类型||d["value-type"],v:null},p.cellFormula)if(d.formula&&(d.formula=Tr(d.formula)),d["number-matrix-columns-spanned"]&&d["number-matrix-rows-spanned"]&&(T={s:{r:S,c:A},e:{r:S+(parseInt(d["number-matrix-rows-spanned"],10)||0)-1,c:A+(parseInt(d["number-matrix-columns-spanned"],10)||0)-1}},l.F=br(T),R.push([T,l.F])),d.formula)l.f=km(d.formula);else for(ft=0;ft<R.length;++ft)S>=R[ft][0].s.r&&S<=R[ft][0].e.r&&A>=R[ft][0].s.c&&A<=R[ft][0].e.c&&(l.F=R[ft][1]);switch((d["number-columns-spanned"]||d["number-rows-spanned"])&&(T={s:{r:S,c:A},e:{r:S+(parseInt(d["number-rows-spanned"],10)||0)-1,c:A+(parseInt(d["number-columns-spanned"],10)||0)-1}},F.push(T)),d["number-columns-repeated"]&&(O=parseInt(d["number-columns-repeated"],10)),l.t){case"boolean":l.t="b",l.v=$r(d["boolean-value"]);break;case"float":case"percentage":case"currency":l.t="n",l.v=parseFloat(d.value);break;case"date":l.t="d",l.v=Yr(d["date-value"]),p.cellDates||(l.t="n",l.v=Pn(l.v)),l.z="m/d/yy";break;case"time":l.t="n",l.v=vw(d["time-value"])/86400,p.cellDates&&(l.t="d",l.v=Su(l.v)),l.z="HH:MM:SS";break;case"number":l.t="n",l.v=parseFloat(d.数据数值);break;default:if(l.t!=="string"&&l.t!=="text"&&l.t)throw new Error("Unsupported value type "+l.t);l.t="s",d["string-value"]!=null&&(g=Tr(d["string-value"]),k=[])}}else{if(X=!1,l.t==="s"&&(l.v=g||"",k.length&&(l.R=k),X=w==0),P.Target&&(l.l=P),H.length>0&&(l.c=H,H=[]),g&&p.cellText!==!1&&(l.w=g),X&&(l.t="z",delete l.v),(!X||p.sheetStubs)&&!(p.sheetRows&&p.sheetRows<=S))for(var bt=0;bt<x;++bt){if(O=parseInt(d["number-columns-repeated"]||"1",10),p.dense)for(a[S+bt]||(a[S+bt]=[]),a[S+bt][A]=bt==0?l:Vr(l);--O>0;)a[S+bt][A+O]=Vr(l);else for(a[nr({r:S+bt,c:A})]=l;--O>0;)a[nr({r:S+bt,c:A+O})]=Vr(l);j.e.c<=A&&(j.e.c=A)}A+=(O=parseInt(d["number-columns-repeated"]||"1",10))-1,O=0,l={},g="",k=[]}P={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(f[1]==="/"){if((e=b.pop())[0]!==f[3])throw"Bad state: "+e}else f[0].charAt(f[0].length-2)!=="/"&&b.push([f[3],!0]);break;case"annotation":if(f[1]==="/"){if((e=b.pop())[0]!==f[3])throw"Bad state: "+e;U.t=g,k.length&&(U.R=k),U.a=B,H.push(U)}else f[0].charAt(f[0].length-2)!=="/"&&b.push([f[3],!1]);B="",W=0,g="",w=0,k=[];break;case"creator":f[1]==="/"?B=m.slice(W,f.index):W=f.index+f[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(f[1]==="/"){if((e=b.pop())[0]!==f[3])throw"Bad state: "+e}else f[0].charAt(f[0].length-2)!=="/"&&b.push([f[3],!1]);g="",w=0,k=[];break;case"scientific-number":case"currency-symbol":case"currency-style":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"fraction":case"boolean-style":case"boolean":case"text-style":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(f[1]==="/"){if(N[v.name]=_,(e=b.pop())[0]!==f[3])throw"Bad state: "+e}else f[0].charAt(f[0].length-2)!=="/"&&(_="",v=Qe(f[0],!1),b.push([f[3],!0]));break;case"number":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(b[b.length-1][0]){case"time-style":case"date-style":n=Qe(f[0],!1),_+=G6[f[3]][n.style==="long"?1:0]}break;case"text":if(f[0].slice(-2)==="/>")break;if(f[1]==="/")switch(b[b.length-1][0]){case"number-style":case"date-style":case"time-style":_+=m.slice(s,f.index)}else s=f.index+f[0].length;break;case"named-range":L=rh((n=Qe(f[0],!1))["cell-range-address"]);var rt={Name:n.name,Ref:L[0]+"!"+L[1]};et&&(rt.Sheet=h.length),C.Names.push(rt);break;case"p":case"文本串":if(["master-styles"].indexOf(b[b.length-1][0])>-1)break;if(f[1]!=="/"||d&&d["string-value"])Qe(f[0],!1),w=f.index+f[0].length;else{var Q=(u=m.slice(w,f.index),y=void 0,y=u.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(nt,At){return Array(parseInt(At,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,`
|
||
`),[Tr(y.replace(/<[^>]*>/g,""))]);g=(g.length>0?g+`
|
||
`:"")+Q[0]}break;case"database-range":if(f[1]==="/")break;try{o[(L=rh(Qe(f[0])["target-range-address"]))[0]]["!autofilter"]={ref:L[1]}}catch(nt){}break;case"a":if(f[1]!=="/"){if(!(P=Qe(f[0],!1)).href)break;P.Target=Tr(P.href),delete P.href,P.Target.charAt(0)=="#"&&P.Target.indexOf(".")>-1?(L=rh(P.Target.slice(1)),P.Target="#"+L[0]+"!"+L[1]):P.Target.match(/^\.\.[\\\/]/)&&(P.Target=P.Target.slice(3))}break;default:switch(f[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(p.WTF)throw new Error(f)}}var K={Sheets:o,SheetNames:h,Workbook:C};return p.bookSheets&&delete K.Sheets,K}function zm(t,r){r=r||{},Fi(t,"META-INF/manifest.xml")&&function(i,c){for(var f,l,u=Ol(i);f=fc.exec(u);)switch(f[3]){case"manifest":break;case"file-entry":if((l=Qe(f[0],!1)).path=="/"&&l.type!==Vw)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(c&&c.WTF)throw f}}(dn(t,"META-INF/manifest.xml"),r);var e=Ri(t,"content.xml");if(!e)throw new Error("Missing content.xml in ODS / UOF file");var n=Bm(Fr(e),r);return Fi(t,"meta.xml")&&(n.Props=a1(dn(t,"meta.xml"))),n}function Um(t,r){return Bm(t,r)}var Y6=function(){var t=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),r="<office:document-styles "+uc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+t+"</office:document-styles>";return function(){return on+r}}(),Hm=function(){var t=` <table:table-cell />
|
||
`,r=function(e,n,i){var c=[];c.push(' <table:table table:name="'+Mr(n.SheetNames[i])+`" table:style-name="ta1">
|
||
`);var f=0,l=0,u=Li(e["!ref"]||"A1"),y=e["!merges"]||[],p=0,m=Array.isArray(e);if(e["!cols"])for(l=0;l<=u.e.c;++l)c.push(" <table:table-column"+(e["!cols"][l]?' table:style-name="co'+e["!cols"][l].ods+'"':"")+`></table:table-column>
|
||
`);var b="",v=e["!rows"]||[];for(f=0;f<u.s.r;++f)b=v[f]?' table:style-name="ro'+v[f].ods+'"':"",c.push(" <table:table-row"+b+`></table:table-row>
|
||
`);for(;f<=u.e.r;++f){for(b=v[f]?' table:style-name="ro'+v[f].ods+'"':"",c.push(" <table:table-row"+b+`>
|
||
`),l=0;l<u.s.c;++l)c.push(t);for(;l<=u.e.c;++l){var _=!1,s={},o="";for(p=0;p!=y.length;++p)if(!(y[p].s.c>l||y[p].s.r>f||y[p].e.c<l||y[p].e.r<f)){y[p].s.c==l&&y[p].s.r==f||(_=!0),s["table:number-columns-spanned"]=y[p].e.c-y[p].s.c+1,s["table:number-rows-spanned"]=y[p].e.r-y[p].s.r+1;break}if(_)c.push(` <table:covered-table-cell/>
|
||
`);else{var h=nr({r:f,c:l}),a=m?(e[f]||[])[l]:e[h];if(a&&a.f&&(s["table:formula"]=Mr(("of:="+a.f.replace(Jl,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),a.F&&a.F.slice(0,h.length)==h)){var d=Li(a.F);s["table:number-matrix-columns-spanned"]=d.e.c-d.s.c+1,s["table:number-matrix-rows-spanned"]=d.e.r-d.s.r+1}if(a){switch(a.t){case"b":o=a.v?"TRUE":"FALSE",s["office:value-type"]="boolean",s["office:boolean-value"]=a.v?"true":"false";break;case"n":o=a.w||String(a.v||0),s["office:value-type"]="float",s["office:value"]=a.v||0;break;case"s":case"str":o=a.v==null?"":a.v,s["office:value-type"]="string";break;case"d":o=a.w||Yr(a.v).toISOString(),s["office:value-type"]="date",s["office:date-value"]=Yr(a.v).toISOString(),s["table:style-name"]="ce1";break;default:c.push(t);continue}var g=Mr(o).replace(/ +/g,function(k){return'<text:s text:c="'+k.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");if(a.l&&a.l.Target){var w=a.l.Target;(w=w.charAt(0)=="#"?"#"+w.slice(1).replace(/\./,"!"):w).charAt(0)=="#"||w.match(/^\w+:/)||(w="../"+w),g=we("text:a",g,{"xlink:href":w.replace(/&/g,"&")})}c.push(" "+we("table:table-cell",we("text:p",g,{}),s)+`
|
||
`)}else c.push(t)}}c.push(` </table:table-row>
|
||
`)}return c.push(` </table:table>
|
||
`),c.join("")};return function(e,n){var i=[on],c=uc({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),f=uc({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});n.bookType=="fods"?(i.push("<office:document"+c+f+`>
|
||
`),i.push(o1().replace(/office:document-meta/g,"office:meta"))):i.push("<office:document-content"+c+`>
|
||
`),function(u,y){u.push(` <office:automatic-styles>
|
||
`),u.push(` <number:date-style style:name="N37" number:automatic-order="true">
|
||
`),u.push(` <number:month number:style="long"/>
|
||
`),u.push(` <number:text>/</number:text>
|
||
`),u.push(` <number:day number:style="long"/>
|
||
`),u.push(` <number:text>/</number:text>
|
||
`),u.push(` <number:year/>
|
||
`),u.push(` </number:date-style>
|
||
`);var p=0;y.SheetNames.map(function(b){return y.Sheets[b]}).forEach(function(b){if(b&&b["!cols"]){for(var v=0;v<b["!cols"].length;++v)if(b["!cols"][v]){var _=b["!cols"][v];if(_.width==null&&_.wpx==null&&_.wch==null)continue;da(_),_.ods=p;var s=b["!cols"][v].wpx+"px";u.push(' <style:style style:name="co'+p+`" style:family="table-column">
|
||
`),u.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+s+`"/>
|
||
`),u.push(` </style:style>
|
||
`),++p}}});var m=0;y.SheetNames.map(function(b){return y.Sheets[b]}).forEach(function(b){if(b&&b["!rows"]){for(var v=0;v<b["!rows"].length;++v)if(b["!rows"][v]){b["!rows"][v].ods=m;var _=b["!rows"][v].hpx+"px";u.push(' <style:style style:name="ro'+m+`" style:family="table-row">
|
||
`),u.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+_+`"/>
|
||
`),u.push(` </style:style>
|
||
`),++m}}}),u.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
|
||
`),u.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
|
||
`),u.push(` </style:style>
|
||
`),u.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
|
||
`),u.push(` </office:automatic-styles>
|
||
`)}(i,e),i.push(` <office:body>
|
||
`),i.push(` <office:spreadsheet>
|
||
`);for(var l=0;l!=e.SheetNames.length;++l)i.push(r(e.Sheets[e.SheetNames[l]],e,l));return i.push(` </office:spreadsheet>
|
||
`),i.push(` </office:body>
|
||
`),n.bookType=="fods"?i.push("</office:document>"):i.push("</office:document-content>"),i.join("")}}();function Wm(t,r){if(r.bookType=="fods")return Hm(t,r);var e=_l(),n="",i=[],c=[];return ur(e,n="mimetype","application/vnd.oasis.opendocument.spreadsheet"),ur(e,n="content.xml",Hm(t,r)),i.push([n,"text/xml"]),c.push([n,"ContentFile"]),ur(e,n="styles.xml",Y6(t,r)),i.push([n,"text/xml"]),c.push([n,"StylesFile"]),ur(e,n="meta.xml",on+o1()),i.push([n,"text/xml"]),c.push([n,"MetadataFile"]),ur(e,n="manifest.rdf",function(f){var l,u,y=[on];y.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||
`);for(var p=0;p!=f.length;++p)y.push(i1(f[p][0],f[p][1])),y.push((l="",u=f[p][0],[' <rdf:Description rdf:about="'+l+`">
|
||
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+u+`"/>
|
||
`,` </rdf:Description>
|
||
`].join("")));return y.push(i1("","Document","pkg")),y.push("</rdf:RDF>"),y.join("")}(c)),i.push([n,"application/rdf+xml"]),ur(e,n="META-INF/manifest.xml",function(f){var l=[on];l.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
|
||
`),l.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
|
||
`);for(var u=0;u<f.length;++u)l.push(' <manifest:file-entry manifest:full-path="'+f[u][0]+'" manifest:media-type="'+f[u][1]+`"/>
|
||
`);return l.push("</manifest:manifest>"),l.join("")}(i)),e}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Ya(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function uh(t){return typeof TextDecoder!="undefined"?new TextDecoder().decode(t):Fr(ua(t))}function K6(t){return typeof TextEncoder!="undefined"?new TextEncoder().encode(t):Oi(ko(t))}function ya(t){var r=t.reduce(function(i,c){return i+c.length},0),e=new Uint8Array(r),n=0;return t.forEach(function(i){e.set(i,n),n+=i.length}),e}function Vm(t){return 16843009*((t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135)>>>24}function Ic(t,r){var e=r?r[0]:0,n=127&t[e];t:if(t[e++]>=128&&(n|=(127&t[e])<<7,t[e++]<128||(n|=(127&t[e])<<14,t[e++]<128)||(n|=(127&t[e])<<21,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,28),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,35),++e,t[e++]<128)||(n+=(127&t[e])*Math.pow(2,42),++e,t[e++]<128)))break t;return r&&(r[0]=e),n}function Ir(t){var r=new Uint8Array(7);r[0]=127&t;var e=1;t:if(t>127){if(r[e-1]|=128,r[e]=t>>7&127,++e,t<=16383||(r[e-1]|=128,r[e]=t>>14&127,++e,t<=2097151)||(r[e-1]|=128,r[e]=t>>21&127,++e,t<=268435455)||(r[e-1]|=128,r[e]=t/256>>>21&127,++e,t<=34359738367)||(r[e-1]|=128,r[e]=t/65536>>>21&127,++e,t<=4398046511103))break t;r[e-1]|=128,r[e]=t/16777216>>>21&127,++e}return r.slice(0,e)}function tn(t){var r=0,e=127&t[r];t:if(t[r++]>=128){if(e|=(127&t[r])<<7,t[r++]<128||(e|=(127&t[r])<<14,t[r++]<128)||(e|=(127&t[r])<<21,t[r++]<128))break t;e|=(127&t[r])<<28}return e}function Or(t){for(var r=[],e=[0];e[0]<t.length;){var n,i=e[0],c=Ic(t,e),f=7&c,l=0;if((c=Math.floor(c/8))==0)break;switch(f){case 0:for(var u=e[0];t[e[0]++]>=128;);n=t.slice(u,e[0]);break;case 5:l=4,n=t.slice(e[0],e[0]+l),e[0]+=l;break;case 1:l=8,n=t.slice(e[0],e[0]+l),e[0]+=l;break;case 2:l=Ic(t,e),n=t.slice(e[0],e[0]+l),e[0]+=l;break;default:throw new Error("PB Type ".concat(f," for Field ").concat(c," at offset ").concat(i))}var y={data:n,type:f};r[c]==null?r[c]=[y]:r[c].push(y)}return r}function In(t){var r=[];return t.forEach(function(e,n){e.forEach(function(i){i.data&&(r.push(Ir(8*n+i.type)),i.type==2&&r.push(Ir(i.data.length)),r.push(i.data))})}),ya(r)}function fh(t,r){return(t==null?void 0:t.map(function(e){return r(e.data)}))||[]}function Hi(t){for(var r,e=[],n=[0];n[0]<t.length;){var i=Ic(t,n),c=Or(t.slice(n[0],n[0]+i));n[0]+=i;var f={id:tn(c[1][0].data),messages:[]};c[2].forEach(function(l){var u=Or(l.data),y=tn(u[3][0].data);f.messages.push({meta:u,data:t.slice(n[0],n[0]+y)}),n[0]+=y}),(r=c[3])!=null&&r[0]&&(f.merge=tn(c[3][0].data)>>>0>0),e.push(f)}return e}function js(t){var r=[];return t.forEach(function(e){var n=[];n[1]=[{data:Ir(e.id),type:0}],n[2]=[],e.merge!=null&&(n[3]=[{data:Ir(+!!e.merge),type:0}]);var i=[];e.messages.forEach(function(f){i.push(f.data),f.meta[3]=[{type:0,data:Ir(f.data.length)}],n[2].push({data:In(f.meta),type:2})});var c=In(n);r.push(Ir(c.length)),r.push(c),i.forEach(function(f){return r.push(f)})}),ya(r)}function X6(t,r){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e=[0],n=Ic(r,e),i=[];e[0]<r.length;){var c=3&r[e[0]];if(c!=0){var f=0,l=0;if(c==1?(l=4+(r[e[0]]>>2&7),f=(224&r[e[0]++])<<3,f|=r[e[0]++]):(l=1+(r[e[0]++]>>2),c==2?(f=r[e[0]]|r[e[0]+1]<<8,e[0]+=2):(f=(r[e[0]]|r[e[0]+1]<<8|r[e[0]+2]<<16|r[e[0]+3]<<24)>>>0,e[0]+=4)),i=[ya(i)],f==0)throw new Error("Invalid offset 0");if(f>i[0].length)throw new Error("Invalid offset beyond length");if(l>=f)for(i.push(i[0].slice(-f)),l-=f;l>=i[i.length-1].length;)i.push(i[i.length-1]),l-=i[i.length-1].length;i.push(i[0].slice(-f,-f+l))}else{var u=r[e[0]++]>>2;if(u<60)++u;else{var y=u-59;u=r[e[0]],y>1&&(u|=r[e[0]+1]<<8),y>2&&(u|=r[e[0]+2]<<16),y>3&&(u|=r[e[0]+3]<<24),u>>>=0,u++,e[0]+=y}i.push(r.slice(e[0],e[0]+u)),e[0]+=u}}var p=ya(i);if(p.length!=n)throw new Error("Unexpected length: ".concat(p.length," != ").concat(n));return p}function Wi(t){for(var r=[],e=0;e<t.length;){var n=t[e++],i=t[e]|t[e+1]<<8|t[e+2]<<16;e+=3,r.push(X6(n,t.slice(e,e+i))),e+=i}if(e!==t.length)throw new Error("data is not a valid framed stream!");return ya(r)}function Is(t){for(var r=[],e=0;e<t.length;){var n=Math.min(t.length-e,268435455),i=new Uint8Array(4);r.push(i);var c=Ir(n),f=c.length;r.push(c),n<=60?(f++,r.push(new Uint8Array([n-1<<2]))):n<=256?(f+=2,r.push(new Uint8Array([240,n-1&255]))):n<=65536?(f+=3,r.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(f+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(f+=5,r.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),r.push(t.slice(e,e+n)),f+=n,i[0]=0,i[1]=255&f,i[2]=f>>8&255,i[3]=f>>16&255,e+=n}return ya(r)}function Z6(t,r,e){var n,i=Ya(t),c=i.getUint32(8,!0),f=12,l=-1,u=-1,y=NaN,p=NaN,m=new Date(2001,0,1);switch(1&c&&(y=function(b,v){for(var _=(127&b[v+15])<<7|b[v+14]>>1,s=1&b[v+14],o=v+13;o>=v;--o)s=256*s+b[o];return(128&b[v+15]?-s:s)*Math.pow(10,_-6176)}(t,f),f+=16),2&c&&(p=i.getFloat64(f,!0),f+=8),4&c&&(m.setTime(m.getTime()+1e3*i.getFloat64(f,!0)),f+=8),8&c&&(u=i.getUint32(f,!0),f+=4),16&c&&(l=i.getUint32(f,!0),f+=4),t[1]){case 0:break;case 2:case 10:n={t:"n",v:y};break;case 3:n={t:"s",v:r[u]};break;case 5:n={t:"d",v:m};break;case 6:n={t:"b",v:p>0};break;case 7:n={t:"n",v:p/86400};break;case 8:n={t:"e",v:0};break;case 9:if(!(l>-1))throw new Error("Unsupported cell type ".concat(t[1]," : ").concat(31&c," : ").concat(t.slice(0,4)));n={t:"s",v:e[l]};break;default:throw new Error("Unsupported cell type ".concat(t[1]," : ").concat(31&c," : ").concat(t.slice(0,4)))}return n}function lh(t,r){var e=new Uint8Array(32),n=Ya(e),i=12,c=0;switch(e[0]=5,t.t){case"n":e[1]=2,function(f,l,u){var y=Math.floor(u==0?0:Math.LOG10E*Math.log(Math.abs(u)))+6176-20,p=u/Math.pow(10,y-6176);f[l+15]|=y>>7,f[l+14]|=(127&y)<<1;for(var m=0;p>=1;++m,p/=256)f[l+m]=255&p;f[l+15]|=u>=0?0:128}(e,i,t.v),c|=1,i+=16;break;case"b":e[1]=6,n.setFloat64(i,t.v?1:0,!0),c|=2,i+=8;break;case"s":if(r.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));e[1]=3,n.setUint32(i,r.indexOf(t.v),!0),c|=8,i+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,c,!0),e.slice(0,i)}function hh(t,r){var e=new Uint8Array(32),n=Ya(e),i=12,c=0;switch(e[0]=3,t.t){case"n":e[2]=2,n.setFloat64(i,t.v,!0),c|=32,i+=8;break;case"b":e[2]=6,n.setFloat64(i,t.v?1:0,!0),c|=32,i+=8;break;case"s":if(r.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));e[2]=3,n.setUint32(i,r.indexOf(t.v),!0),c|=16,i+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,c,!0),e.slice(0,i)}function J6(t,r,e){switch(t[0]){case 0:case 1:case 2:case 3:return function(n,i,c,f){var l,u=Ya(n),y=u.getUint32(4,!0),p=(f>1?12:8)+4*Vm(y&(f>1?3470:398)),m=-1,b=-1,v=NaN,_=new Date(2001,0,1);switch(512&y&&(m=u.getUint32(p,!0),p+=4),p+=4*Vm(y&(f>1?12288:4096)),16&y&&(b=u.getUint32(p,!0),p+=4),32&y&&(v=u.getFloat64(p,!0),p+=8),64&y&&(_.setTime(_.getTime()+1e3*u.getFloat64(p,!0)),p+=8),n[2]){case 0:break;case 2:l={t:"n",v};break;case 3:l={t:"s",v:i[b]};break;case 5:l={t:"d",v:_};break;case 6:l={t:"b",v:v>0};break;case 7:l={t:"n",v:v/86400};break;case 8:l={t:"e",v:0};break;case 9:if(m>-1)l={t:"s",v:c[m]};else if(b>-1)l={t:"s",v:i[b]};else{if(isNaN(v))throw new Error("Unsupported cell type ".concat(n.slice(0,4)));l={t:"n",v}}break;default:throw new Error("Unsupported cell type ".concat(n.slice(0,4)))}return l}(t,r,e,t[0]);case 5:return Z6(t,r,e);default:throw new Error("Unsupported payload version ".concat(t[0]))}}function Kn(t){return Ic(Or(t)[1][0].data)}function $m(t,r){var e=Or(r.data),n=tn(e[1][0].data),i=e[3],c=[];return(i||[]).forEach(function(f){var l=Or(f.data),u=tn(l[1][0].data)>>>0;switch(n){case 1:c[u]=uh(l[3][0].data);break;case 8:var y=Or(t[Kn(l[9][0].data)][0].data),p=t[Kn(y[1][0].data)][0],m=tn(p.meta[1][0].data);if(m!=2001)throw new Error("2000 unexpected reference to ".concat(m));var b=Or(p.data);c[u]=b[3].map(function(v){return uh(v.data)}).join("")}}),c}function Q6(t,r){var e,n=Or(r.data),i=(e=n==null?void 0:n[7])!=null&&e[0]?tn(n[7][0].data)>>>0>0?1:0:-1,c=fh(n[5],function(f){return function(l,u){var y,p,m,b,v,_,s,o,h,a,d,g,w,k,S,A,j=Or(l),D=tn(j[1][0].data)>>>0,N=tn(j[2][0].data)>>>0,F=((p=(y=j[8])==null?void 0:y[0])==null?void 0:p.data)&&tn(j[8][0].data)>0||!1;if((b=(m=j[7])==null?void 0:m[0])!=null&&b.data&&u!=0)S=(_=(v=j[7])==null?void 0:v[0])==null?void 0:_.data,A=(o=(s=j[6])==null?void 0:s[0])==null?void 0:o.data;else{if(!((a=(h=j[4])==null?void 0:h[0])!=null&&a.data)||u==1)throw"NUMBERS Tile missing ".concat(u," cell storage");S=(g=(d=j[4])==null?void 0:d[0])==null?void 0:g.data,A=(k=(w=j[3])==null?void 0:w[0])==null?void 0:k.data}for(var T=F?4:1,I=Ya(S),x=[],O=0;O<S.length/2;++O){var R=I.getUint16(2*O,!0);R<65535&&x.push([O,R])}if(x.length!=N)throw"Expected ".concat(N," cells, found ").concat(x.length);var C=[];for(O=0;O<x.length-1;++O)C[x[O][0]]=A.subarray(x[O][1]*T,x[O+1][1]*T);return x.length>=1&&(C[x[x.length-1][0]]=A.subarray(x[x.length-1][1]*T)),{R:D,cells:C}}(f,i)});return{nrows:tn(n[4][0].data)>>>0,data:c.reduce(function(f,l){return f[l.R]||(f[l.R]=[]),l.cells.forEach(function(u,y){if(f[l.R][y])throw new Error("Duplicate cell r=".concat(l.R," c=").concat(y));f[l.R][y]=u}),f},[])}}function t5(t,r){var e={"!ref":"A1"},n=t[Kn(Or(r.data)[2][0].data)],i=tn(n[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return function(c,f,l){var u,y=Or(f.data),p={s:{r:0,c:0},e:{r:0,c:0}};if(p.e.r=(tn(y[6][0].data)>>>0)-1,p.e.r<0)throw new Error("Invalid row varint ".concat(y[6][0].data));if(p.e.c=(tn(y[7][0].data)>>>0)-1,p.e.c<0)throw new Error("Invalid col varint ".concat(y[7][0].data));l["!ref"]=br(p);var m=Or(y[4][0].data),b=$m(c,c[Kn(m[4][0].data)][0]),v=(u=m[17])!=null&&u[0]?$m(c,c[Kn(m[17][0].data)][0]):[],_=Or(m[3][0].data),s=0;_[1].forEach(function(o){var h=Or(o.data),a=c[Kn(h[2][0].data)][0],d=tn(a.meta[1][0].data);if(d!=6002)throw new Error("6001 unexpected reference to ".concat(d));var g=Q6(0,a);g.data.forEach(function(w,k){w.forEach(function(S,A){var j=nr({r:s+k,c:A}),D=J6(S,b,v);D&&(l[j]=D)})}),s+=g.nrows})}(t,n[0],e),e}function e5(t,r){var e={SheetNames:[],Sheets:{}};if(fh(Or(r.data)[1],Kn).forEach(function(n){t[n].forEach(function(i){if(tn(i.meta[1][0].data)==2){var c=function(f,l){var u,y=Or(l.data),p={name:(u=y[1])!=null&&u[0]?uh(y[1][0].data):"",sheets:[]};return fh(y[2],Kn).forEach(function(m){f[m].forEach(function(b){tn(b.meta[1][0].data)==6e3&&p.sheets.push(t5(f,b))})}),p}(t,i);c.sheets.forEach(function(f,l){Qm(e,f,l==0?c.name:c.name+"_"+l,!0)})}})}),e.SheetNames.length==0)throw new Error("Empty NUMBERS file");return e}function dh(t){var r,e,n,i,c={},f=[];if(t.FullPaths.forEach(function(u){if(u.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),t.FileIndex.forEach(function(u){if(u.name.match(/\.iwa$/)){var y,p;try{y=Wi(u.content)}catch(m){return console.log("?? "+u.content.length+" "+(m.message||m))}try{p=Hi(y)}catch(m){return console.log("## "+(m.message||m))}p.forEach(function(m){c[m.id]=m.messages,f.push(m.id)})}}),!f.length)throw new Error("File has no messages");var l=((i=(n=(e=(r=c==null?void 0:c[1])==null?void 0:r[0])==null?void 0:e.meta)==null?void 0:n[1])==null?void 0:i[0].data)&&tn(c[1][0].meta[1][0].data)==1&&c[1][0];if(l||f.forEach(function(u){c[u].forEach(function(y){if(tn(y.meta[1][0].data)>>>0==1){if(l)throw new Error("Document has multiple roots");l=y}})}),!l)throw new Error("Cannot find Document root");return e5(c,l)}function r5(t,r,e){var n,i,c,f;if(!((n=t[6])!=null&&n[0])||!((i=t[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";if((f=(c=t[8])==null?void 0:c[0])!=null&&f.data&&tn(t[8][0].data)>0)throw"Math only works with normal offsets";for(var l=0,u=Ya(t[7][0].data),y=0,p=[],m=Ya(t[4][0].data),b=0,v=[],_=0;_<r.length;++_)if(r[_]!=null){var s,o;switch(u.setUint16(2*_,y,!0),m.setUint16(2*_,b,!0),typeof r[_]){case"string":s=lh({t:"s",v:r[_]},e),o=hh({t:"s",v:r[_]},e);break;case"number":s=lh({t:"n",v:r[_]},e),o=hh({t:"n",v:r[_]},e);break;case"boolean":s=lh({t:"b",v:r[_]},e),o=hh({t:"b",v:r[_]},e);break;default:throw new Error("Unsupported value "+r[_])}p.push(s),y+=s.length,v.push(o),b+=o.length,++l}else u.setUint16(2*_,65535,!0),m.setUint16(2*_,65535);for(t[2][0].data=Ir(l);_<t[7][0].data.length/2;++_)u.setUint16(2*_,65535,!0),m.setUint16(2*_,65535,!0);return t[6][0].data=ya(p),t[3][0].data=ya(v),l}function qm(t){return function(r){for(var e=0;e!=t.length;++e){var n=t[e];r[n[0]]===void 0&&(r[n[0]]=n[1]),n[2]==="n"&&(r[n[0]]=Number(r[n[0]]))}}}function ph(t){qm([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(t)}function mh(t){qm([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function n5(t,r,e,n,i,c,f,l,u,y,p,m){try{c[n]=vc(Ri(t,e,!0),r);var b,v=dn(t,r);switch(l){case"sheet":b=l6(v,r,i,u,c[n],y,p,m);break;case"chart":if(!(b=h6(v,r,i,u,c[n],y))||!b["!drawel"])break;var _=sc(b["!drawel"].Target,r),s=yc(_),o=function(w,k){if(!w)return"??";var S=(w.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return k["!id"][S].Target}(Ri(t,_,!0),vc(Ri(t,s,!0),_)),h=sc(o,_),a=yc(h);b=t6(Ri(t,h,!0),0,0,vc(Ri(t,a,!0),h),0,b);break;case"macro":g=r,c[n],g.slice(-4),b={"!type":"macro"};break;case"dialog":b=function(w,k,S,A,j,D,N,F){return k.slice(-4),{"!type":"dialog"}}(0,r,0,0,c[n]);break;default:throw new Error("Unrecognized sheet type "+l)}f[n]=b;var d=[];c&&c[n]&&nn(c[n]).forEach(function(w){var k="";if(c[n][w].Type==yr.CMNT){k=sc(c[n][w].Target,r);var S=m6(dn(t,k,!0),k,u);if(!S||!S.length)return;sm(b,S,!1)}c[n][w].Type==yr.TCMNT&&(k=sc(c[n][w].Target,r),d=d.concat(function(A,j){var D=[],N=!1,F={},T=0;return A.replace(Hn,function(I,x){var O=Qe(I);switch(_o(O[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":F={author:O.personId,guid:O.id,ref:O.ref,T:1};break;case"</threadedComment>":F.t!=null&&D.push(F);break;case"<text>":case"<text":T=x+I.length;break;case"</text>":F.t=A.slice(T,x).replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`);break;case"<mentions":case"<mentions>":case"<ext":N=!0;break;case"</mentions>":case"</ext>":N=!1;break;default:if(!N&&j.WTF)throw new Error("unrecognized "+O[0]+" in threaded comments")}return I}),D}(dn(t,k,!0),u)))}),d&&d.length&&sm(b,d,!0,u.people||[])}catch(w){if(u.WTF)throw w}var g}function Vi(t){return t.charAt(0)=="/"?t.slice(1):t}function i5(t,r){if(ks(),ph(r=r||{}),Fi(t,"META-INF/manifest.xml")||Fi(t,"objectdata.xml"))return zm(t,r);if(Fi(t,"Index/Document.iwa")){if(typeof Uint8Array=="undefined")throw new Error("NUMBERS file parsing requires Uint8Array support");if(dh!==void 0){if(t.FileIndex)return dh(t);var e=Ve.utils.cfb_new();return v0(t).forEach(function(I){ur(e,I,y0(t,I))}),dh(e)}throw new Error("Unsupported NUMBERS file")}if(!Fi(t,"[Content_Types].xml"))throw Fi(t,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Fi(t,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n,i,c=v0(t),f=function(I){var x={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!I||!I.match)return x;var O={};if((I.match(Hn)||[]).forEach(function(R){var C=Qe(R);switch(C[0].replace(kw,"<")){case"<?xml":break;case"<Types":x.xmlns=C["xmlns"+(C[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":O[C.Extension]=C.ContentType;break;case"<Override":x[Bl[C.ContentType]]!==void 0&&x[Bl[C.ContentType]].push(C.PartName)}}),x.xmlns!==bn.CT)throw new Error("Unknown Namespace: "+x.xmlns);return x.calcchain=x.calcchains.length>0?x.calcchains[0]:"",x.sst=x.strs.length>0?x.strs[0]:"",x.style=x.styles.length>0?x.styles[0]:"",x.defaults=O,delete x.calcchains,x}(Ri(t,"[Content_Types].xml")),l=!1;if(f.workbooks.length===0&&dn(t,i="xl/workbook.xml",!0)&&f.workbooks.push(i),f.workbooks.length===0){if(!dn(t,i="xl/workbook.bin",!0))throw new Error("Could not find workbook");f.workbooks.push(i),l=!0}f.workbooks[0].slice(-3)=="bin"&&(l=!0);var u={},y={};if(!r.bookSheets&&!r.bookProps){if(Rc=[],f.sst)try{Rc=p6(dn(t,Vi(f.sst)),f.sst,r)}catch(I){if(r.WTF)throw I}r.cellStyles&&f.themes.length&&(u=function(I,x,O){return im(I,O)}(Ri(t,f.themes[0].replace(/^\//,""),!0)||"",f.themes[0],r)),f.style&&(y=d6(dn(t,Vi(f.style)),f.style,u,r))}f.links.map(function(I){try{return vc(Ri(t,yc(Vi(I))),I),v6(dn(t,Vi(I)),0,I,r)}catch(x){}});var p=f6(dn(t,Vi(f.workbooks[0])),f.workbooks[0],r),m={},b="";f.coreprops.length&&((b=dn(t,Vi(f.coreprops[0]),!0))&&(m=a1(b)),f.extprops.length!==0&&(b=dn(t,Vi(f.extprops[0]),!0))&&function(I,x,O){var R={};x||(x={}),I=Fr(I),Ha.forEach(function(C){var P=(I.match(cc(C[0]))||[])[1];switch(C[2]){case"string":P&&(x[C[1]]=Tr(P));break;case"bool":x[C[1]]=P==="true";break;case"raw":var L=I.match(new RegExp("<"+C[0]+"[^>]*>([\\s\\S]*?)</"+C[0]+">"));L&&L.length>0&&(R[C[1]]=L[1])}}),R.HeadingPairs&&R.TitlesOfParts&&u1(R.HeadingPairs,R.TitlesOfParts,x,O)}(b,m,r));var v={};r.bookSheets&&!r.bookProps||f.custprops.length!==0&&(b=Ri(t,Vi(f.custprops[0]),!0))&&(v=function(I,x){var O={},R="",C=I.match(qw);if(C)for(var P=0;P!=C.length;++P){var L=C[P],H=Qe(L);switch(H[0]){case"<?xml":case"<Properties":break;case"<property":R=Tr(H.name);break;case"</property>":R=null;break;default:if(L.indexOf("<vt:")===0){var U=L.split(">"),B=U[0].slice(4),W=U[1];switch(B){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":O[R]=Tr(W);break;case"bool":O[R]=$r(W);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":O[R]=parseInt(W,10);break;case"r4":case"r8":case"decimal":O[R]=parseFloat(W);break;case"filetime":case"date":O[R]=Yr(W);break;default:if(B.slice(-1)=="/")break;x.WTF&&typeof console!="undefined"&&console.warn("Unexpected",L,B,U)}}else if(L.slice(0,2)!=="</"){if(x.WTF)throw new Error(L)}}}return O}(b,r));var _={};if((r.bookSheets||r.bookProps)&&(p.Sheets?n=p.Sheets.map(function(I){return I.name}):m.Worksheets&&m.SheetNames.length>0&&(n=m.SheetNames),r.bookProps&&(_.Props=m,_.Custprops=v),r.bookSheets&&n!==void 0&&(_.SheetNames=n),r.bookSheets?_.SheetNames:r.bookProps))return _;n={};var s={};r.bookDeps&&f.calcchain&&(s=y6(dn(t,Vi(f.calcchain)),f.calcchain));var o,h,a=0,d={},g=p.Sheets;m.Worksheets=g.length,m.SheetNames=[];for(var w=0;w!=g.length;++w)m.SheetNames[w]=g[w].name;var k=l?"bin":"xml",S=f.workbooks[0].lastIndexOf("/"),A=(f.workbooks[0].slice(0,S+1)+"_rels/"+f.workbooks[0].slice(S+1)+".rels").replace(/^\//,"");Fi(t,A)||(A="xl/_rels/workbook."+k+".rels");var j=vc(Ri(t,A,!0),A.replace(/_rels.*/,"s5s"));(f.metadata||[]).length>=1&&(r.xlmeta=b6(dn(t,Vi(f.metadata[0])),f.metadata[0],r)),(f.people||[]).length>=1&&(r.people=function(I,x){var O=[],R=!1;return I.replace(Hn,function(C){var P=Qe(C);switch(_o(P[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":O.push({name:P.displayname,id:P.id});break;case"<ext":R=!0;break;case"</ext>":R=!1;break;default:if(!R&&x.WTF)throw new Error("unrecognized "+P[0]+" in threaded comments")}return C}),O}(dn(t,Vi(f.people[0])),r)),j&&(j=function(I,x){if(!I)return 0;try{I=x.map(function(O){return O.id||(O.id=O.strRelID),[O.name,I["!id"][O.id].Target,(R=I["!id"][O.id].Type,yr.WS.indexOf(R)>-1?"sheet":R==yr.CS?"chart":R==yr.DS?"dialog":R==yr.MS?"macro":R&&R.length?R:"sheet")];var R})}catch(O){return null}return I&&I.length!==0?I:null}(j,p.Sheets));var D=dn(t,"xl/worksheets/sheet.xml",!0)?1:0;t:for(a=0;a!=m.Worksheets;++a){var N="sheet";if(j&&j[a]?(o="xl/"+j[a][1].replace(/[\/]?xl\//,""),Fi(t,o)||(o=j[a][1]),Fi(t,o)||(o=A.replace(/_rels\/.*$/,"")+j[a][1]),N=j[a][2]):o=(o="xl/worksheets/sheet"+(a+1-D)+"."+k).replace(/sheet0\./,"sheet."),h=o.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(a!=r.sheets)continue t;break;case"string":if(m.SheetNames[a].toLowerCase()!=r.sheets.toLowerCase())continue t;break;default:if(Array.isArray&&Array.isArray(r.sheets)){for(var F=!1,T=0;T!=r.sheets.length;++T)typeof r.sheets[T]=="number"&&r.sheets[T]==a&&(F=1),typeof r.sheets[T]=="string"&&r.sheets[T].toLowerCase()==m.SheetNames[a].toLowerCase()&&(F=1);if(!F)continue t}}n5(t,o,h,m.SheetNames[a],a,d,n,N,r,p,u,y)}return _={Directory:f,Workbook:p,Props:m,Custprops:v,Deps:s,Sheets:n,SheetNames:m.SheetNames,Strings:Rc,Styles:y,Themes:u,SSF:Vr(Je)},r&&r.bookFiles&&(t.files?(_.keys=c,_.files=t.files):(_.keys=[],_.files={},t.FullPaths.forEach(function(I,x){I=I.replace(/^Root Entry[\/]/,""),_.keys.push(I),_.files[I]=t.FileIndex[x]}))),r&&r.bookVBA&&(f.vba.length>0?_.vbaraw=dn(t,Vi(f.vba[0]),!0):f.defaults&&f.defaults.bin===o4&&(_.vbaraw=dn(t,"xl/vbaProject.bin",!0))),_}function o5(t,r){var e,n,i=r||{},c="Workbook",f=Ve.find(t,c);try{if(c="/!DataSpaces/Version",!(f=Ve.find(t,c))||!f.content)throw new Error("ECMA-376 Encrypted file missing "+c);if(e=f.content,(n={}).id=e.read_shift(0,"lpp4"),n.R=Vo(e,4),n.U=Vo(e,4),n.W=Vo(e,4),c="/!DataSpaces/DataSpaceMap",!(f=Ve.find(t,c))||!f.content)throw new Error("ECMA-376 Encrypted file missing "+c);var l=function(p){var m=[];p.l+=4;for(var b=p.read_shift(4);b-- >0;)m.push(E3(p));return m}(f.content);if(l.length!==1||l[0].comps.length!==1||l[0].comps[0].t!==0||l[0].name!=="StrongEncryptionDataSpace"||l[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+c);if(c="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(f=Ve.find(t,c))||!f.content)throw new Error("ECMA-376 Encrypted file missing "+c);var u=function(p){var m=[];p.l+=4;for(var b=p.read_shift(4);b-- >0;)m.push(p.read_shift(0,"lpp4"));return m}(f.content);if(u.length!=1||u[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+c);if(c="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(f=Ve.find(t,c))||!f.content)throw new Error("ECMA-376 Encrypted file missing "+c);T3(f.content)}catch(p){}if(c="/EncryptionInfo",!(f=Ve.find(t,c))||!f.content)throw new Error("ECMA-376 Encrypted file missing "+c);var y=function(p){var m=Vo(p);switch(m.Minor){case 2:return[m.Minor,O3(p)];case 3:return[m.Minor,R3()];case 4:return[m.Minor,C3(p)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+m.Minor)}(f.content);if(c="/EncryptedPackage",!(f=Ve.find(t,c))||!f.content)throw new Error("ECMA-376 Encrypted file missing "+c);if(y[0]==4&&typeof decrypt_agile!="undefined")return decrypt_agile(y[1],f.content,i.password||"",i);if(y[0]==2&&typeof decrypt_std76!="undefined")return decrypt_std76(y[1],f.content,i.password||"",i);throw new Error("File is password-protected")}function a5(t,r){return r.bookType=="ods"?Wm(t,r):r.bookType=="numbers"?function(e,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var i=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var c=Li(i["!ref"]);c.s.r=c.s.c=0;var f=!1;c.e.c>9&&(f=!0,c.e.c=9),c.e.r>49&&(f=!0,c.e.r=49),f&&console.error("The Numbers writer is currently limited to ".concat(br(c)));var l=Xm(i,{range:c,header:1}),u=["~Sh33tJ5~"];l.forEach(function(B){return B.forEach(function(W){typeof W=="string"&&u.push(W)})});var y={},p=[],m=Ve.read(n.numbers,{type:"base64"});m.FileIndex.map(function(B,W){return[B,m.FullPaths[W]]}).forEach(function(B){var W=B[0],X=B[1];W.type==2&&W.name.match(/\.iwa/)&&Hi(Wi(W.content)).forEach(function(et){p.push(et.id),y[et.id]={deps:[],location:X,type:tn(et.messages[0].meta[1][0].data)}})}),p.sort(function(B,W){return B-W});var b=p.filter(function(B){return B>1}).map(function(B){return[B,Ir(B)]});m.FileIndex.map(function(B,W){return[B,m.FullPaths[W]]}).forEach(function(B){var W=B[0];B[1],W.name.match(/\.iwa/)&&Hi(Wi(W.content)).forEach(function(X){X.messages.forEach(function(et){b.forEach(function(ft){X.messages.some(function(gt){return tn(gt.meta[1][0].data)!=11006&&function(bt,rt){t:for(var Q=0;Q<=bt.length-rt.length;++Q){for(var K=0;K<rt.length;++K)if(bt[Q+K]!=rt[K])continue t;return!0}return!1}(gt.data,ft[1])})&&y[ft[0]].deps.push(X.id)})})})});for(var v,_=Ve.find(m,y[1].location),s=Hi(Wi(_.content)),o=0;o<s.length;++o){var h=s[o];h.id==1&&(v=h)}var a=Kn(Or(v.messages[0].data)[1][0].data);for(s=Hi(Wi((_=Ve.find(m,y[a].location)).content)),o=0;o<s.length;++o)(h=s[o]).id==a&&(v=h);for(a=Kn(Or(v.messages[0].data)[2][0].data),s=Hi(Wi((_=Ve.find(m,y[a].location)).content)),o=0;o<s.length;++o)(h=s[o]).id==a&&(v=h);for(a=Kn(Or(v.messages[0].data)[2][0].data),s=Hi(Wi((_=Ve.find(m,y[a].location)).content)),o=0;o<s.length;++o)(h=s[o]).id==a&&(v=h);var d=Or(v.messages[0].data);d[6][0].data=Ir(c.e.r+1),d[7][0].data=Ir(c.e.c+1);for(var g=Kn(d[46][0].data),w=Ve.find(m,y[g].location),k=Hi(Wi(w.content)),S=0;S<k.length&&k[S].id!=g;++S);if(k[S].id!=g)throw"Bad ColumnRowUIDMapArchive";var A=Or(k[S].messages[0].data);A[1]=[],A[2]=[],A[3]=[];for(var j=0;j<=c.e.c;++j){var D=[];D[1]=D[2]=[{type:0,data:Ir(j+420690)}],A[1].push({type:2,data:In(D)}),A[2].push({type:0,data:Ir(j)}),A[3].push({type:0,data:Ir(j)})}A[4]=[],A[5]=[],A[6]=[];for(var N=0;N<=c.e.r;++N)(D=[])[1]=D[2]=[{type:0,data:Ir(N+726270)}],A[4].push({type:2,data:In(D)}),A[5].push({type:0,data:Ir(N)}),A[6].push({type:0,data:Ir(N)});k[S].messages[0].data=In(A),w.content=Is(js(k)),w.size=w.content.length,delete d[46];var F=Or(d[4][0].data);F[7][0].data=Ir(c.e.r+1);var T=Kn(Or(F[1][0].data)[2][0].data);if((k=Hi(Wi((w=Ve.find(m,y[T].location)).content)))[0].id!=T)throw"Bad HeaderStorageBucket";var I=Or(k[0].messages[0].data);for(N=0;N<l.length;++N){var x=Or(I[2][0].data);x[1][0].data=Ir(N),x[4][0].data=Ir(l[N].length),I[2][N]={type:I[2][0].type,data:In(x)}}k[0].messages[0].data=In(I),w.content=Is(js(k)),w.size=w.content.length;var O=Kn(F[2][0].data);if((k=Hi(Wi((w=Ve.find(m,y[O].location)).content)))[0].id!=O)throw"Bad HeaderStorageBucket";for(I=Or(k[0].messages[0].data),j=0;j<=c.e.c;++j)(x=Or(I[2][0].data))[1][0].data=Ir(j),x[4][0].data=Ir(c.e.r+1),I[2][j]={type:I[2][0].type,data:In(x)};k[0].messages[0].data=In(I),w.content=Is(js(k)),w.size=w.content.length;var R=Kn(F[4][0].data);(function(){for(var B,W=Ve.find(m,y[R].location),X=Hi(Wi(W.content)),et=0;et<X.length;++et){var ft=X[et];ft.id==R&&(B=ft)}var gt=Or(B.messages[0].data);gt[3]=[];var bt=[];u.forEach(function(Q,K){bt[1]=[{type:0,data:Ir(K)}],bt[2]=[{type:0,data:Ir(1)}],bt[3]=[{type:2,data:K6(Q)}],gt[3].push({type:2,data:In(bt)})}),B.messages[0].data=In(gt);var rt=Is(js(X));W.content=rt,W.size=W.content.length})();var C=Or(F[3][0].data),P=C[1][0];delete C[2];var L=Or(P.data),H=Kn(L[2][0].data);(function(){for(var B,W=Ve.find(m,y[H].location),X=Hi(Wi(W.content)),et=0;et<X.length;++et){var ft=X[et];ft.id==H&&(B=ft)}var gt=Or(B.messages[0].data);delete gt[6],delete C[7];var bt=new Uint8Array(gt[5][0].data);gt[5]=[];for(var rt=0,Q=0;Q<=c.e.r;++Q){var K=Or(bt);rt+=r5(K,l[Q],u),K[1][0].data=Ir(Q),gt[5].push({data:In(K),type:2})}gt[1]=[{type:0,data:Ir(c.e.c+1)}],gt[2]=[{type:0,data:Ir(c.e.r+1)}],gt[3]=[{type:0,data:Ir(rt)}],gt[4]=[{type:0,data:Ir(c.e.r+1)}],B.messages[0].data=In(gt);var nt=Is(js(X));W.content=nt,W.size=W.content.length})(),P.data=In(L),F[3][0].data=In(C),d[4][0].data=In(F),v.messages[0].data=In(d);var U=Is(js(s));return _.content=U,_.size=_.content.length,m}(t,r):r.bookType=="xlsb"?function(e,n){As=1024,e&&!e.SSF&&(e.SSF=Vr(Je)),e&&e.SSF&&(ks(),wu(e.SSF),n.revssf=ku(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Cc?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var i=n.bookType=="xlsb"?"bin":"xml",c=um.indexOf(n.bookType)>-1,f={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};mh(n=n||{});var l=_l(),u="",y=0;if(n.cellXfs=[],ma(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),ur(l,u="docProps/core.xml",s1(e.Props,n)),f.coreprops.push(u),jr(n.rels,2,u,yr.CORE_PROPS),u="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(e.Workbook&&e.Workbook.Sheets){for(var p=[],m=0;m<e.SheetNames.length;++m)(e.Workbook.Sheets[m]||{}).Hidden!=2&&p.push(e.SheetNames[m]);e.Props.SheetNames=p}else e.Props.SheetNames=e.SheetNames;for(e.Props.Worksheets=e.Props.SheetNames.length,ur(l,u,f1(e.Props)),f.extprops.push(u),jr(n.rels,3,u,yr.EXT_PROPS),e.Custprops!==e.Props&&nn(e.Custprops||{}).length>0&&(ur(l,u="docProps/custom.xml",l1(e.Custprops)),f.custprops.push(u),jr(n.rels,4,u,yr.CUST_PROPS)),y=1;y<=e.SheetNames.length;++y){var b={"!id":{}},v=e.Sheets[e.SheetNames[y-1]];if((v||{})["!type"],ur(l,u="xl/worksheets/sheet"+y+"."+i,g6(y-1,u,n,e,b)),f.sheets.push(u),jr(n.wbrels,-1,"worksheets/sheet"+y+"."+i,yr.WS[0]),v){var _=v["!comments"],s=!1,o="";_&&_.length>0&&(ur(l,o="xl/comments"+y+"."+i,w6(_,o)),f.comments.push(o),jr(b,-1,"../comments"+y+"."+i,yr.CMNT),s=!0),v["!legacy"]&&s&&ur(l,"xl/drawings/vmlDrawing"+y+".vml",am(y,v["!comments"])),delete v["!comments"],delete v["!legacy"]}b["!id"].rId1&&ur(l,yc(u),Os(b))}return n.Strings!=null&&n.Strings.length>0&&(ur(l,u="xl/sharedStrings."+i,function(h,a,d){return(a.slice(-4)===".bin"?S3:G1)(h,d)}(n.Strings,u,n)),f.strs.push(u),jr(n.wbrels,-1,"sharedStrings."+i,yr.SST)),ur(l,u="xl/workbook."+i,function(h,a,d){return(a.slice(-4)===".bin"?u6:Mm)(h)}(e,u)),f.workbooks.push(u),jr(n.rels,1,u,yr.WB),ur(l,u="xl/theme/theme1.xml",Zl(e.Themes,n)),f.themes.push(u),jr(n.wbrels,-1,"theme/theme1.xml",yr.THEME),ur(l,u="xl/styles."+i,function(h,a,d){return(a.slice(-4)===".bin"?V3:em)(h,d)}(e,u,n)),f.styles.push(u),jr(n.wbrels,-1,"styles."+i,yr.STY),e.vbaraw&&c&&(ur(l,u="xl/vbaProject.bin",e.vbaraw),f.vba.push(u),jr(n.wbrels,-1,"vbaProject.bin",yr.VBA)),ur(l,u="xl/metadata."+i,function(h){return(h.slice(-4)===".bin"?e4:om)()}(u)),f.metadata.push(u),jr(n.wbrels,-1,"metadata."+i,yr.XLMETA),ur(l,"[Content_Types].xml",n1(f,n)),ur(l,"_rels/.rels",Os(n.rels)),ur(l,"xl/_rels/workbook."+i+".rels",Os(n.wbrels)),delete n.revssf,delete n.ssf,l}(t,r):function(e,n){As=1024,e&&!e.SSF&&(e.SSF=Vr(Je)),e&&e.SSF&&(ks(),wu(e.SSF),n.revssf=ku(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.rels={},n.wbrels={},n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Cc?n.revStrings=new Map:(n.revStrings={},n.revStrings.foo=[],delete n.revStrings.foo);var i="xml",c=um.indexOf(n.bookType)>-1,f={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};mh(n=n||{});var l=_l(),u="",y=0;if(n.cellXfs=[],ma(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),ur(l,u="docProps/core.xml",s1(e.Props,n)),f.coreprops.push(u),jr(n.rels,2,u,yr.CORE_PROPS),u="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(e.Workbook&&e.Workbook.Sheets){for(var p=[],m=0;m<e.SheetNames.length;++m)(e.Workbook.Sheets[m]||{}).Hidden!=2&&p.push(e.SheetNames[m]);e.Props.SheetNames=p}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,ur(l,u,f1(e.Props)),f.extprops.push(u),jr(n.rels,3,u,yr.EXT_PROPS),e.Custprops!==e.Props&&nn(e.Custprops||{}).length>0&&(ur(l,u="docProps/custom.xml",l1(e.Custprops)),f.custprops.push(u),jr(n.rels,4,u,yr.CUST_PROPS));var b=["SheetJ5"];for(n.tcid=0,y=1;y<=e.SheetNames.length;++y){var v={"!id":{}},_=e.Sheets[e.SheetNames[y-1]];if((_||{})["!type"],ur(l,u="xl/worksheets/sheet"+y+"."+i,Em(y-1,n,e,v)),f.sheets.push(u),jr(n.wbrels,-1,"worksheets/sheet"+y+"."+i,yr.WS[0]),_){var s=_["!comments"],o=!1,h="";if(s&&s.length>0){var a=!1;s.forEach(function(d){d[1].forEach(function(g){g.T==1&&(a=!0)})}),a&&(ur(l,h="xl/threadedComments/threadedComment"+y+"."+i,r4(s,b,n)),f.threadedcomments.push(h),jr(v,-1,"../threadedComments/threadedComment"+y+"."+i,yr.TCMNT)),ur(l,h="xl/comments"+y+"."+i,cm(s)),f.comments.push(h),jr(v,-1,"../comments"+y+"."+i,yr.CMNT),o=!0}_["!legacy"]&&o&&ur(l,"xl/drawings/vmlDrawing"+y+".vml",am(y,_["!comments"])),delete _["!comments"],delete _["!legacy"]}v["!id"].rId1&&ur(l,yc(u),Os(v))}return n.Strings!=null&&n.Strings.length>0&&(ur(l,u="xl/sharedStrings."+i,G1(n.Strings,n)),f.strs.push(u),jr(n.wbrels,-1,"sharedStrings."+i,yr.SST)),ur(l,u="xl/workbook."+i,Mm(e)),f.workbooks.push(u),jr(n.rels,1,u,yr.WB),ur(l,u="xl/theme/theme1.xml",Zl(e.Themes,n)),f.themes.push(u),jr(n.wbrels,-1,"theme/theme1.xml",yr.THEME),ur(l,u="xl/styles."+i,em(e,n)),f.styles.push(u),jr(n.wbrels,-1,"styles."+i,yr.STY),e.vbaraw&&c&&(ur(l,u="xl/vbaProject.bin",e.vbaraw),f.vba.push(u),jr(n.wbrels,-1,"vbaProject.bin",yr.VBA)),ur(l,u="xl/metadata."+i,om()),f.metadata.push(u),jr(n.wbrels,-1,"metadata."+i,yr.XLMETA),b.length>1&&(ur(l,u="xl/persons/person.xml",function(d){var g=[on,we("personList",null,{xmlns:bn.TCMNT,"xmlns:x":Da[0]}).replace(/[\/]>/,">")];return d.forEach(function(w,k){g.push(we("person",null,{displayName:w,id:"{54EE7950-7262-4200-6969-"+("000000000000"+k).slice(-12)+"}",userId:w,providerId:"None"}))}),g.push("</personList>"),g.join("")}(b)),f.people.push(u),jr(n.wbrels,-1,"persons/person.xml",yr.PEOPLE)),ur(l,"[Content_Types].xml",n1(f,n)),ur(l,"_rels/.rels",Os(n.rels)),ur(l,"xl/_rels/workbook."+i+".rels",Os(n.wbrels)),delete n.revssf,delete n.ssf,l}(t,r)}function yh(t,r){var e="";switch((r||{}).type||"base64"){case"buffer":case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=Ti(t.slice(0,12));break;case"binary":e=t;break;default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3),e.charCodeAt(4),e.charCodeAt(5),e.charCodeAt(6),e.charCodeAt(7)]}function Gm(t,r){var e=0;t:for(;e<t.length;)switch(t.charCodeAt(e)){case 10:case 13:case 32:++e;break;case 60:return sh(t.slice(e),r);default:break t}return Rs.to_workbook(t,r)}function vh(t,r,e,n){return n?(e.type="string",Rs.to_workbook(t,e)):Rs.to_workbook(r,e)}function bh(t,r){ml();var e=r||{};if(typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer)return bh(new Uint8Array(t),((e=Vr(e)).type="array",e));typeof Uint8Array!="undefined"&&t instanceof Uint8Array&&!e.type&&(e.type=typeof Deno!="undefined"?"buffer":"array");var n,i=t,c=!1;if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),Ms={},e.dateNF&&(Ms.dateNF=e.dateNF),e.type||(e.type=pr&&Buffer.isBuffer(t)?"buffer":"base64"),e.type=="file"&&(e.type=pr?"buffer":"binary",i=function(u){if(typeof Deno!="undefined")return Deno.readFileSync(u);if(typeof $!="undefined"&&typeof File!="undefined"&&typeof Folder!="undefined")try{var y=File(u);y.open("r"),y.encoding="binary";var p=y.read();return y.close(),p}catch(m){if(!m.message||!m.message.match(/onstruct/))throw m}throw new Error("Cannot access file "+u)}(t),typeof Uint8Array=="undefined"||pr||(e.type="array")),e.type=="string"&&(c=!0,e.type="binary",e.codepage=65001,i=function(u){return u.match(/[^\x00-\x7F]/)?ko(u):u}(t)),e.type=="array"&&typeof Uint8Array!="undefined"&&t instanceof Uint8Array&&typeof ArrayBuffer!="undefined"){var f=new ArrayBuffer(3),l=new Uint8Array(f);if(l.foo="bar",!l.foo)return(e=Vr(e)).type="array",bh(yl(i),e)}switch((n=yh(i,e))[0]){case 208:if(n[1]===207&&n[2]===17&&n[3]===224&&n[4]===161&&n[5]===177&&n[6]===26&&n[7]===225)return function(u,y){return Ve.find(u,"EncryptedPackage")?o5(u,y):Nm(u,y)}(Ve.read(i,e),e);break;case 9:if(n[1]<=8)return Nm(i,e);break;case 60:return sh(i,e);case 73:if(n[1]===73&&n[2]===42&&n[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(n[1]===68)return function(u,y){var p=y||{},m=!!p.WTF;p.WTF=!0;try{var b=V1.to_workbook(u,p);return p.WTF=m,b}catch(v){if(p.WTF=m,!v.message.match(/SYLK bad record ID/)&&m)throw v;return Rs.to_workbook(u,y)}}(i,e);break;case 84:if(n[1]===65&&n[2]===66&&n[3]===76)return $1.to_workbook(i,e);break;case 80:return n[1]===75&&n[2]<9&&n[3]<9?function(u,y){var p=u,m=y||{};return m.type||(m.type=pr&&Buffer.isBuffer(u)?"buffer":"base64"),i5(b0(p,m),m)}(i,e):vh(t,i,e,c);case 239:return n[3]===60?sh(i,e):vh(t,i,e,c);case 255:if(n[1]===254)return function(u,y){var p=u;return y.type=="base64"&&(p=Ti(p)),p=aa.utils.decode(1200,p.slice(2),"str"),y.type="binary",Gm(p,y)}(i,e);if(n[1]===0&&n[2]===2&&n[3]===0)return qa.to_workbook(i,e);break;case 0:if(n[1]===0&&(n[2]>=2&&n[3]===0||n[2]===0&&(n[3]===8||n[3]===9)))return qa.to_workbook(i,e);break;case 3:case 131:case 139:case 140:return $l.to_workbook(i,e);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return J1.to_workbook(i,e);break;case 10:case 13:case 32:return function(u,y){var p="",m=yh(u,y);switch(y.type){case"base64":p=Ti(u);break;case"binary":p=u;break;case"buffer":p=u.toString("binary");break;case"array":p=Ia(u);break;default:throw new Error("Unrecognized type "+y.type)}return m[0]==239&&m[1]==187&&m[2]==191&&(p=Fr(p)),y.type="binary",Gm(p,y)}(i,e);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet")}return d3.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?$l.to_workbook(i,e):vh(t,i,e,c)}function Ym(t,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return oc(r.file,Ve.write(t,{type:pr?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return Ve.write(t,r)}function s5(t,r){var e=Vr(r||{});return function(n,i){var c={},f=pr?"nodebuffer":typeof Uint8Array!="undefined"?"array":"string";if(i.compression&&(c.compression="DEFLATE"),i.password)c.type=f;else switch(i.type){case"base64":c.type="base64";break;case"binary":c.type="string";break;case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");case"buffer":case"file":c.type=f;break;default:throw new Error("Unrecognized type "+i.type)}var l=n.FullPaths?Ve.write(n,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[c.type]||c.type,compression:!!i.compression}):n.generate(c);if(typeof Deno!="undefined"&&typeof l=="string"){if(i.type=="binary"||i.type=="base64")return l;l=new Uint8Array(yu(l))}return i.password&&typeof encrypt_agile!="undefined"?Ym(encrypt_agile(l,i.password),i):i.type==="file"?oc(i.file,l):i.type=="string"?Fr(l):l}(a5(t,e),e)}function Eo(t,r,e){e||(e="");var n=e+t;switch(r.type){case"base64":return rc(ko(n));case"binary":return ko(n);case"string":return t;case"file":return oc(r.file,n,"utf8");case"buffer":return pr?Fo(n,"utf8"):typeof TextEncoder!="undefined"?new TextEncoder().encode(n):Eo(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function Hu(t,r){switch(r.type){case"string":case"base64":case"binary":for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return r.type=="base64"?rc(e):r.type=="string"?Fr(e):e;case"file":return oc(r.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+r.type)}}function Km(t,r){ml(),o6(t);var e=Vr(r||{});if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),e.type=="array"){e.type="binary";var n=Km(t,e);return e.type="array",yu(n)}var i=0;if(e.sheet&&(i=typeof e.sheet=="number"?e.sheet:t.SheetNames.indexOf(e.sheet),!t.SheetNames[i]))throw new Error("Sheet not found: "+e.sheet+" : "+typeof e.sheet);switch(e.bookType||"xlsb"){case"xml":case"xlml":return Eo(P6(t,e),e);case"slk":case"sylk":return Eo(V1.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"htm":case"html":return Eo(function(c,f){var l=f||{},u=l.header!=null?l.header:$6,y=l.footer!=null?l.footer:q6,p=[u],m=Li(c["!ref"]);l.dense=Array.isArray(c),p.push(function(v,_,s){return[].join("")+"<table"+(s&&s.id?' id="'+s.id+'"':"")+">"}(0,0,l));for(var b=m.s.r;b<=m.e.r;++b)p.push(V6(c,m,b,l));return p.push("</table>"+y),p.join("")}(t.Sheets[t.SheetNames[i]],e),e);case"txt":return function(c,f){switch(f.type){case"base64":return rc(c);case"binary":case"string":return c;case"file":return oc(f.file,c,"binary");case"buffer":return pr?Fo(c,"binary"):c.split("").map(function(l){return l.charCodeAt(0)})}throw new Error("Unrecognized type "+f.type)}(function(c,f){f||(f={}),f.FS=" ",f.RS=`
|
||
`;var l=Jm(c,f);return l}(t.Sheets[t.SheetNames[i]],e),e);case"csv":return Eo(Jm(t.Sheets[t.SheetNames[i]],e),e,"\uFEFF");case"dif":return Eo($1.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"dbf":return Hu($l.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"prn":return Eo(Rs.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"rtf":return Eo(J1.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"eth":return Eo(q1.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"fods":return Eo(Wm(t,e),e);case"wk1":return Hu(qa.sheet_to_wk1(t.Sheets[t.SheetNames[i]],e),e);case"wk3":return Hu(qa.book_to_wk3(t,e),e);case"biff2":e.biff||(e.biff=2);case"biff3":e.biff||(e.biff=3);case"biff4":return e.biff||(e.biff=4),Hu(Fm(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),function(c,f){var l=f||{};return Ym(N6(c,l),l)}(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return s5(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function c5(t,r,e,n,i,c,f,l){var u=Sn(e),y=l.defval,p=l.raw||!Object.prototype.hasOwnProperty.call(l,"raw"),m=!0,b=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(b,"__rowNum__",{value:e,enumerable:!1})}catch(o){b.__rowNum__=e}else b.__rowNum__=e;if(!f||t[e])for(var v=r.s.c;v<=r.e.c;++v){var _=f?t[e][v]:t[n[v]+u];if(_!==void 0&&_.t!==void 0){var s=_.v;switch(_.t){case"z":if(s==null)break;continue;case"e":s=s==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+_.t)}if(c[v]!=null){if(s==null)if(_.t=="e"&&s===null)b[c[v]]=null;else if(y!==void 0)b[c[v]]=y;else{if(!p||s!==null)continue;b[c[v]]=null}else b[c[v]]=p&&(_.t!=="n"||_.t==="n"&&l.rawNumbers!==!1)?s:la(_,s,l);s!=null&&(m=!1)}}else{if(y===void 0)continue;c[v]!=null&&(b[c[v]]=y)}}return{row:b,isempty:m}}function Xm(t,r){if(t==null||t["!ref"]==null)return[];var e={t:"n",v:0},n=0,i=1,c=[],f=0,l="",u={s:{r:0,c:0},e:{r:0,c:0}},y=r||{},p=y.range!=null?y.range:t["!ref"];switch(y.header===1?n=1:y.header==="A"?n=2:Array.isArray(y.header)?n=3:y.header==null&&(n=0),typeof p){case"string":u=Cr(p);break;case"number":(u=Cr(t["!ref"])).s.r=p;break;default:u=p}n>0&&(i=0);var m=Sn(u.s.r),b=[],v=[],_=0,s=0,o=Array.isArray(t),h=u.s.r,a=0,d={};o&&!t[h]&&(t[h]=[]);var g=y.skipHidden&&t["!cols"]||[],w=y.skipHidden&&t["!rows"]||[];for(a=u.s.c;a<=u.e.c;++a)if(!(g[a]||{}).hidden)switch(b[a]=pn(a),e=o?t[h][a]:t[b[a]+m],n){case 1:c[a]=a-u.s.c;break;case 2:c[a]=b[a];break;case 3:c[a]=y.header[a-u.s.c];break;default:if(e==null&&(e={w:"__EMPTY",t:"s"}),l=f=la(e,null,y),s=d[f]||0){do l=f+"_"+s++;while(d[l]);d[f]=s,d[l]=1}else d[f]=1;c[a]=l}for(h=u.s.r+i;h<=u.e.r;++h)if(!(w[h]||{}).hidden){var k=c5(t,u,h,b,n,c,o,y);(k.isempty===!1||(n===1?y.blankrows!==!1:y.blankrows))&&(v[_++]=k.row)}return v.length=_,v}var Zm=/"/g;function u5(t,r,e,n,i,c,f,l){for(var u=!0,y=[],p="",m=Sn(e),b=r.s.c;b<=r.e.c;++b)if(n[b]){var v=l.dense?(t[e]||[])[b]:t[n[b]+m];if(v==null)p="";else if(v.v!=null){u=!1,p=""+(l.rawNumbers&&v.t=="n"?v.v:la(v,null,l));for(var _=0,s=0;_!==p.length;++_)if((s=p.charCodeAt(_))===i||s===c||s===34||l.forceQuotes){p='"'+p.replace(Zm,'""')+'"';break}p=="ID"&&(p='"ID"')}else v.f==null||v.F?p="":(u=!1,(p="="+v.f).indexOf(",")>=0&&(p='"'+p.replace(Zm,'""')+'"'));y.push(p)}return l.blankrows===!1&&u?null:y.join(f)}function Jm(t,r){var e=[],n=r==null?{}:r;if(t==null||t["!ref"]==null)return"";var i=Cr(t["!ref"]),c=n.FS!==void 0?n.FS:",",f=c.charCodeAt(0),l=n.RS!==void 0?n.RS:`
|
||
`,u=l.charCodeAt(0),y=new RegExp((c=="|"?"\\|":c)+"+$"),p="",m=[];n.dense=Array.isArray(t);for(var b=n.skipHidden&&t["!cols"]||[],v=n.skipHidden&&t["!rows"]||[],_=i.s.c;_<=i.e.c;++_)(b[_]||{}).hidden||(m[_]=pn(_));for(var s=0,o=i.s.r;o<=i.e.r;++o)(v[o]||{}).hidden||(p=u5(t,i,o,m,f,u,c,n))!=null&&(n.strip&&(p=p.replace(y,"")),(p||n.blankrows!==!1)&&e.push((s++?l:"")+p));return delete n.dense,e.join("")}function Qm(t,r,e,n){var i=1;if(!e)for(;i<=65535&&t.SheetNames.indexOf(e="Sheet"+i)!=-1;++i,e=void 0);if(!e||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&t.SheetNames.indexOf(e)>=0){var c=e.match(/(^.*?)(\d+)$/);i=c&&+c[2]||0;var f=c&&c[1]||e;for(++i;i<=65535&&t.SheetNames.indexOf(e=f+i)!=-1;++i);}if(Pm(e),t.SheetNames.indexOf(e)>=0)throw new Error("Worksheet with name |"+e+"| already exists!");return t.SheetNames.push(e),t.Sheets[e]=r,e}function ty(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}var gh=["#FFFFFF","#000000","#BFBFBF","#323232","#4472C4","#ED7D31","#A5A5A5","#FFC000","#5B9BD5","#71AD47"],wh=["#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#000000","#FFFFFF","#FF0000","#00FF00","#0000FF","#FFFF00","#FF00FF","#00FFFF","#800000","#008000","#000080","#808000","#800080","#008080","#C0C0C0","#808080","#9999FF","#993366","#FFFFCC","#CCFFFF","#660066","#FF8080","#0066CC","#CCCCFF","#000080","#FF00FF","#FFFF00","#00FFFF","#800080","#800000","#008080","#0000FF","#00CCFF","#CCFFFF","#CCFFCC","#FFFF99","#99CCFF","#FF99CC","#CC99FF","#FFCC99","#3366FF","#33CCCC","#99CC00","#FFCC00","#FF9900","#FF6600","#666699","#969696","#003366","#339966","#003300","#333300","#993300","#993366","#333399","#333333","#FFFFFF"],f5=80;function ey(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(e,n){return new Promise(function(i,c){var f=new XMLHttpRequest;f.open(n.method||"GET",e,!0),f.responseType=n.responseType||"arraybuffer",f.onload=function(){f.status===200?i(f.response):c(f.status)},f.onerror=function(){c(f.status)},f.withCredentials=n.withCredentials||!1,n.headers&&Object.keys(n.headers).forEach(function(l){f.setRequestHeader(l,n.headers[l])}),f.send(n.body)})}(function(e){return typeof e=="string"?e:e instanceof Blob?URL.createObjectURL(e):e instanceof ArrayBuffer?URL.createObjectURL(new Blob([e])):e instanceof Response?URL.createObjectURL(e.blob()):e}(t),r)}function _h(t){if(typeof t=="object")return"#000000";if(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.test(t))return t.startsWith("#")?t:"#"+t;t=t.trim().toLowerCase();var r={};try{var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r.r=parseInt(e[2],16),r.g=parseInt(e[3],16),r.b=parseInt(e[4],16),r.a=parseInt(e[1],16)/255,ze("rgba(".concat(r.r,", ").concat(r.g,", ").concat(r.b,", ").concat(r.a,")")).toHexString()}catch(n){console.warn(n)}}function kh(t,r){return t>9?"#C7C9CC":r===void 0?gh[t]:r>0?function(e,n){for(var i=Lp(e),c=0;c<3;c++)i[c]=Math.floor((255-i[c])*n+i[c]);return Bp(i[0],i[1],i[2])}(gh[t],r):function(e,n){for(var i=Lp(e),c=0;c<3;c++)i[c]=Math.floor(i[c]*(1-n));return Bp(i[0],i[1],i[2])}(gh[t],Math.abs(r))}function l5(t){t.style=Pa.cloneDeep(t.style);var r=null;t.style.fill&&t.style.fill.fgColor&&(r=t.style.fill.fgColor.argb?_h(t.style.fill.fgColor.argb):t.style.fill.fgColor.hasOwnProperty("theme")?kh(t.style.fill.fgColor.theme,t.style.fill.fgColor.tint):t.style.fill.fgColor.indexed&&wh[t.style.fill.fgColor.indexed]||"#C7C9CC"),r&&(t.style.bgcolor=r);var e=null;if(t.style.font&&t.style.font.color&&(e=t.style.font.color.argb?_h(t.style.font.color.argb):t.style.font.color.hasOwnProperty("theme")?kh(t.style.font.color.theme,t.style.font.color.tint):t.style.font.color.indexed&&wh[t.style.font.color.indexed]||"#000000"),e&&(t.style.color=e),t.style.alignment&&(t.style.alignment.horizontal&&(t.style.align=t.style.alignment.horizontal),t.style.alignment.vertical&&(t.style.valign=t.style.alignment.vertical)),t.style.alignment&&t.style.alignment.wrapText&&(t.style.textwrap=!0),t.style.border){var n={};Object.keys(t.style.border).forEach(function(i){var c=t.style.border[i],f="#000000";typeof c.color=="string"?f=c.color:c.color&&(c.color.argb?f=_h(c.color.argb):c.color.hasOwnProperty("theme")?f=kh(c.color.theme,c.color.tint):c.color.indexed&&(f=wh[c.color.indexed])),n[i]=[c.style||"thin",f]}),t.style.border2=function(i){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?ty(Object(f),!0).forEach(function(l){If(i,l,f[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(f)):ty(Object(f)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(f,l))})}return i}({},t.style.border),t.style.border=n}return t.style.font&&t.style.font.size&&typeof t.style.font.size=="number"&&(t.style.font.size=Math.round(t.style.font.size/1.333333)),t.style}function h5(t,r){var e=[],n=[];return t.eachSheet(function(i){n.push(i);var c={name:i.name,styles:[],rows:{},cols:{},merges:[],media:[]},f=[];for(var l in i._merges){c.merges.push(i._merges[l].shortRange);var u={};u.startAddress=i._merges[l].tl,u.endAddress=i._merges[l].br,u.YRange=i._merges[l].model.bottom-i._merges[l].model.top,u.XRange=i._merges[l].model.right-i._merges[l].model.left,f.push(u)}(function(p,m,b){for(var v=0;v<(p.columns||[]).length;v++)m.cols[v.toString()]={},p.columns[v].width?m.cols[v.toString()].width=6*p.columns[v].width+(b.widthOffset||0):m.cols[v.toString()].width=f5+(b.widthOffset||0);m.cols.len=Math.max(Object.keys(m.cols).length,b.minColLength||0)})(i,c,r),(i._rows||[]).forEach(function(p,m){c.rows[m]={cells:{}},p.height?c.rows[m].height=p.height+(r.heightOffset||0):c.rows[m].height=24+(r.heightOffset||0),(p._cells||[]).forEach(function(b,v){c.rows[m].cells[v]={};var _=Pa.find(f,function(s){return s.startAddress==b._address});_&&b.master.address!=_.startAddress||(_&&(c.rows[m].cells[v].merge=[_.YRange,_.XRange]),c.rows[m].cells[v].text=function(s){var o=s.numFmt,h=s.value;switch(s.type){case 2:try{if(s.style.numFmt){if(s.style.numFmt.endsWith("%")){var a=s.style.numFmt.match(/\.(\d+)%/);return a?(100*h).toFixed(a[1].length)+"%":100*h+"%"}if(/0(\.0+)?/.test(s.style.numFmt)){var d="";if(s.style.numFmt.startsWith("$")?d="$":s.style.numFmt.startsWith('"¥')&&(d="¥"),h===0&&s.style.numFmt.startsWith("_"))return"-";var g=s.style.numFmt.match(/0\.(0+)(_|;|$)/);g=g?g[1].length:0;var w=h.toFixed(g)+"";if(s.style.numFmt.includes("#,##")){for(var k=(w=w.split("."))[0].split("").reverse(),S=[],A=0;A<k.length;A++)S.push(k[A]),(A+1)%3==0&&A<k.length-1&&k[A+1]!=="-"&&S.push(",");w[0]=S.reverse().join(""),w=w.join(".")}return d+w}}return h+""}catch(j){return h}case 3:return h;case 4:switch(o){case"yyyy-mm-dd;@":default:return bs(h).format("YYYY-MM-DD");case"mm-dd-yy":return bs(h).format("YYYY/MM/DD");case"[$-F800]dddd, mmmm dd, yyyy":return bs(h).format("YYYY年M月D日 ddd");case'm"月"d"日";@':return bs(h).format("M月D日");case"yyyy/m/d h:mm;@":case'm/d/yy "h":mm':return bs(h).subtract(8,"hour").format("YYYY/M/DD HH:mm");case"h:mm;@":return bs(h).format("HH:mm")}case 5:return h.text;case 6:return Pa.get(h,"result.error")||h.result;case 8:return s.text;case 9:return s.text.toUpperCase();default:return h}}(b),c.styles.push(l5(b)),c.rows[m].cells[v].style=c.styles.length-1)})}),c._media&&(c.media=c._media);var y=Object.keys(c.rows);c.rows.len=Math.max(+y[y.length-1]+1,r.hasOwnProperty("minRowLength")?r.minRowLength:100),e.push(c)}),t._worksheets=n,{workbookData:e,workbookSource:t,medias:t.media||[]}}var Wu=[];function Vu(t,r,e,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};e&&e._media.length&&e._media.forEach(function(c){var f=c.imageId,l=c.range;if(c.type==="image"){var u=function(y,p,m,b){for(var v,_,s=b.widthOffset,o=b.heightOffset,h=p.tl,a=h===void 0?{}:h,d=p.br,g=d===void 0?{}:d,w=a.nativeCol,k=w===void 0?0:w,S=a.nativeColOff,A=S===void 0?0:S,j=a.nativeRow,D=j===void 0?0:j,N=a.nativeRowOff,F=N===void 0?0:N,T=$u,I=qu,x=0;x<k;x++){var O;T+=6*(y==null||(O=y._columns)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.width)||xh,T+=s||0}for(var R=0;R<D;R++){var C;I+=(y==null||(C=y._rows)===null||C===void 0||(C=C[R])===null||C===void 0?void 0:C.height)||Sh,I+=o||0}var P,L,H=T+A/12700,U=I+F/12700,B=g.nativeCol,W=B===void 0?0:B,X=g.nativeColOff,et=X===void 0?0:X,ft=g.nativeRow,gt=ft===void 0?0:ft,bt=g.nativeRowOff,rt=bt===void 0?0:bt;if(k===W)P=(et-A)/12700;else{var Q;P=(6*(y==null||(Q=y._columns)===null||Q===void 0||(Q=Q[k])===null||Q===void 0?void 0:Q.width)||xh)-A/12700;for(var K=k+1;K<W;K++){var nt;P+=6*(y==null||(nt=y._columns)===null||nt===void 0||(nt=nt[K])===null||nt===void 0?void 0:nt.width)||xh}P+=et/12700}if(D===gt)L=(rt-F)/12700;else{var At;L=((y==null||(At=y._rows)===null||At===void 0||(At=At[D])===null||At===void 0?void 0:At.height)||Sh)-F/12700;for(var ot=D+1;ot<gt;ot++){var ut;L+=(y==null||(ut=y._rows)===null||ut===void 0||(ut=ut[ot])===null||ut===void 0?void 0:ut.height)||Sh}L+=rt/12700}return{x:(H-((m==null||(v=m.scroll)===null||v===void 0?void 0:v.x)||0))*To,y:(U-((m==null||(_=m.scroll)===null||_===void 0?void 0:_.y)||0))*To,width:P*To,height:L*To}}(e,l,n,i);(function(y,p,m,b){(function(v,_){return new Promise(function(s,o){if(Wu[v])return s(Wu[v]);var h=_.buffer.buffer,a=new Blob([h],{type:"image/"+_.extension}),d=URL.createObjectURL(a),g=new Image;g.src=d,g.onload=function(){s(g),Wu[v]=g},g.onerror=function(w){o(w)}})})(p,m).then(function(v){var _=0,s=0,o=v.width,h=v.height,a=b.x,d=b.y,g=b.width,w=b.height,k=g/o,S=w/h;if(a<$u*To){var A=$u*To-a;a=$u*To,g-=A,o-=A/k,_+=A/k}if(d<qu*To){var j=qu*To-d;d=qu*To,w-=j,h-=j/S,s+=j/S}y.drawImage(v,_,s,o,h,a,d,g,w)}).catch(function(v){console.error(v)})})(t,f,r[f],u)}})}var $u=60,qu=25,xh=80,Sh=24,To=window.devicePixelRatio;function ry(){Wu=[]}function d5(t,r){var e=typeof Symbol!="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(u,y){if(u){if(typeof u=="string")return ny(u,y);var p=Object.prototype.toString.call(u).slice(8,-1);if(p==="Object"&&u.constructor&&(p=u.constructor.name),p==="Map"||p==="Set")return Array.from(u);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return ny(u,y)}}(t))||r&&t&&typeof t.length=="number"){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c,f=!0,l=!1;return{s:function(){e=e.call(t)},n:function(){var u=e.next();return f=u.done,u},e:function(u){l=!0,c=u},f:function(){try{f||e.return==null||e.return()}finally{if(l)throw c}}}}function ny(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function p5(t){if(t){var r,e=d5(t.querySelectorAll("input"));try{for(e.s();!(r=e.n()).done;){var n=r.value;n&&!n.readOnly&&(n.readOnly=!0)}}catch(i){e.e(i)}finally{e.f()}document.activeElement&&document.activeElement.blur()}}const m5=(t,r)=>{const e=t.__vccOpts||t;for(const[n,i]of r)e[n]=i;return e};function iy(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),e.push.apply(e,n)}return e}function Eh(t){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?iy(Object(e),!0).forEach(function(n){If(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):iy(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}var oy={xls:!1,minColLength:20},y5=yo.defineComponent({name:"VueOfficeExcel",props:{src:[String,ArrayBuffer,Blob],requestOptions:{type:Object,default:function(){return{}}},options:{type:Object,default:function(){return Eh({},oy)}}},emits:["rendered","error"],setup:function(t,r){var e=r.emit,n=yo.ref(null),i=yo.ref(null),c={_worksheets:[]},f=[],l=0,u=null,y=null,p=null,m=null;function b(o){m=o,function(h,a){try{return a&&(h=Km(bh(h,{type:"array"}),{bookType:"xlsx",type:"array"})),new sl.Workbook().xlsx.load(h)}catch(d){return console.warn(d),Promise.reject(d)}}(o,t.options.xls).then(function(h){if(!h._worksheets||h._worksheets.length===0)throw new Error("未获取到数据,可能文件格式不正确或文件已损坏");t.options.beforeTransformData&&typeof t.options.beforeTransformData=="function"&&(h=t.options.beforeTransformData(h));var a=h5(h,Eh(Eh({},oy),t.options)),d=a.workbookData,g=a.medias,w=a.workbookSource;t.options.transformData&&typeof t.options.transformData=="function"&&(d=t.options.transformData(d)),f=g,c=w,p=null,l=0,ry(),y.loadData(d),Vu(u,f,c._worksheets[l],p,t.options),e("rendered")}).catch(function(h){console.warn(h),f=[],c={_worksheets:[]},ry(),y&&y.loadData({}),e("error",h)})}var v=Pa.debounce(p5,200).bind(this,i.value),_=new MutationObserver(v),s={attributes:!0,childList:!0,subtree:!0};return yo.onMounted(function(){yo.nextTick(function(){_.observe(i.value,s),v(i);var o=(y=new Rp(i.value,{mode:"read",showToolbar:!1,showContextmenu:t.options.showContextmenu||!1,view:{height:function(){return n.value&&n.value.clientHeight||300},width:function(){return n.value&&n.value.clientWidth||1200}},row:{height:24,len:100},col:{len:26,width:80,indexWidth:60,minWidth:60},autoFocus:!1}).loadData({})).bottombar.swapFunc;y.bottombar.swapFunc=function(g){o.call(y.bottombar,g),l=g,setTimeout(function(){y.reRender(),Vu(u,f,c._worksheets[l],p,t.options)})};var h=y.sheet.editor.clear;y.sheet.editor.clear=function(){for(var g=arguments.length,w=new Array(g),k=0;k<g;k++)w[k]=arguments[k];h.apply(y.sheet.editor,w),setTimeout(function(){Vu(u,f,c._worksheets[l],p,t.options)})};var a=y.sheet.editor.setOffset;y.sheet.editor.setOffset=function(){for(var g=arguments.length,w=new Array(g),k=0;k<g;k++)w[k]=arguments[k];a.apply(y.sheet.editor,w),p=w[0],Vu(u,f,c._worksheets[l],p,t.options)};var d=i.value.querySelector("canvas");u=d.getContext("2d"),t.src&&ey(t.src,t.requestOptions).then(b).catch(function(g){f=[],c={_worksheets:[]},y.loadData({}),e("error",g)})})}),yo.onBeforeUnmount(function(){_.disconnect(),y=null}),yo.watch(function(){return t.src},function(){t.src?ey(t.src,t.requestOptions).then(b).catch(function(o){f=[],c={_worksheets:[]},y.loadData({}),e("error",o)}):(f=[],c={_worksheets:[]},y.loadData({}),e("error",new Error("src属性不能为空")))}),{wrapperRef:n,rootRef:i,save:function(o){(function(h,a){cl.apply(this,arguments)})(o||"vue-office-excel-".concat(new Date().getTime(),".xlsx"),m)}}}}),v5={class:"vue-office-excel",ref:"wrapperRef"},b5={class:"vue-office-excel-main",ref:"rootRef"};const Gu=m5(y5,[["render",function(t,r,e,n,i,c){return fs.openBlock(),fs.createElementBlock("div",v5,[fs.createElementVNode("div",b5,null,512)],512)}]]);return Gu.install=function(t){t.component(Gu.name,Gu)},Gu})})(Kv);var w8=Kv.exports;const _8=d8(w8),k8="https://xiaoxian521.github.io/hyperlink/other/excel.xlsx",E8=p8({name:"Excels",__name:"excels",setup(Ed){function Td(){}function yo(){}return(fs,ls)=>(v8(),m8(y8(_8),{src:k8,style:{height:"100vh"},onRendered:Td,onError:yo}))}});export{E8 as default};
|