mirror of
https://github.com/501351981/vue-office.git
synced 2025-06-15 07:00:00 +08:00
174 lines
1.4 MiB
174 lines
1.4 MiB
import{y as It,A as Ci}from"./index-b9f20394.js";import{c as Ea}from"./_commonjs-dynamic-modules-302442b1.js";import{g as V0}from"./url-065d6777.js";import{l as Mf}from"./lodash-1ce1e4ec.js";class Bi{constructor(r,e=""){typeof r=="string"?(this.el=document.createElement(r),this.el.className=e):this.el=r,this.data={}}data(r,e){return e!==void 0?(this.data[r]=e,this):this.data[r]}on(r,e){const[n,...i]=r.split(".");let s=n;return s==="mousewheel"&&/Firefox/i.test(window.navigator.userAgent)&&(s="DOMMouseScroll"),this.el.addEventListener(s,o=>{e(o);for(let h=0;h<i.length;h+=1){const c=i[h];if(c==="left"&&o.button!==0||c==="right"&&o.button!==2)return;c==="stop"&&o.stopPropagation()}}),this}offset(r){if(r!==void 0)return Object.keys(r).forEach(o=>{this.css(o,`${r[o]}px`)}),this;const{offsetTop:e,offsetLeft:n,offsetHeight:i,offsetWidth:s}=this.el;return{top:e,left:n,height:i,width:s}}scroll(r){const{el:e}=this;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}}box(){return this.el.getBoundingClientRect()}parent(){return new Bi(this.el.parentNode)}children(...r){return arguments.length===0?this.el.childNodes:(r.forEach(e=>this.child(e)),this)}removeChild(r){this.el.removeChild(r)}child(r){let e=r;return typeof r=="string"?e=document.createTextNode(r):r instanceof Bi&&(e=r.el),this.el.appendChild(e),this}contains(r){return this.el.contains(r)}className(r){return r!==void 0?(this.el.className=r,this):this.el.className}addClass(r){return this.el.classList.add(r),this}hasClass(r){return this.el.classList.contains(r)}removeClass(r){return this.el.classList.remove(r),this}toggle(r="active"){return this.toggleClass(r)}toggleClass(r){return this.el.classList.toggle(r)}active(r=!0,e="active"){return r?this.addClass(e):this.removeClass(e),this}checked(r=!0){return this.active(r,"checked"),this}disabled(r=!0){return r?this.addClass("disabled"):this.removeClass("disabled"),this}attr(r,e){if(e!==void 0)this.el.setAttribute(r,e);else{if(typeof r=="string")return this.el.getAttribute(r);Object.keys(r).forEach(n=>{this.el.setAttribute(n,r[n])})}return this}removeAttr(r){return this.el.removeAttribute(r),this}html(r){return r!==void 0?(this.el.innerHTML=r,this):this.el.innerHTML}val(r){return r!==void 0?(this.el.value=r,this):this.el.value}focus(){this.el.focus()}cssRemoveKeys(...r){return r.forEach(e=>this.el.style.removeProperty(e)),this}css(r,e){return e===void 0&&typeof r!="string"?(Object.keys(r).forEach(n=>{this.el.style[n]=r[n]}),this):e!==void 0?(this.el.style[r]=e,this):this.el.style[r]}computedStyle(){return window.getComputedStyle(this.el,null)}show(){return this.css("display","block"),this}hide(){return this.css("display","none"),this}}const He=(t,r="")=>new Bi(t,r),li=["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 uh(t){let r="",e=t;for(;e>=li.length;)e/=li.length,e-=1,r+=li[parseInt(e,10)%li.length];const n=t%li.length;return r+=li[n],r}function G0(t){let r=0;for(let e=0;e<t.length-1;e+=1){const n=t.charCodeAt(e)-65,i=t.length-1-e;r+=li.length**i+li.length*n}return r+=t.charCodeAt(t.length-1)-65,r}function di(t){let r="",e="";for(let n=0;n<t.length;n+=1)t.charAt(n)>="0"&&t.charAt(n)<="9"?e+=t.charAt(n):r+=t.charAt(n);return[G0(r),parseInt(e,10)-1]}function Yn(t,r){return`${uh(t)}${r+1}`}function ys(t,r,e,n=()=>!0){if(r===0&&e===0)return t;const[i,s]=di(t);return n(i,s)?Yn(i+r,s+e):t}class ar{constructor(r,e,n,i,s=0,o=0){this.sri=r,this.sci=e,this.eri=n,this.eci=i,this.w=s,this.h=o}set(r,e,n,i){this.sri=r,this.sci=e,this.eri=n,this.eci=i}multiple(){return this.eri-this.sri>0||this.eci-this.sci>0}includes(...r){let[e,n]=[0,0];r.length===1?[n,e]=di(r[0]):r.length===2&&([e,n]=r);const{sri:i,sci:s,eri:o,eci:h}=this;return i<=e&&e<=o&&s<=n&&n<=h}each(r,e=()=>!0){const{sri:n,sci:i,eri:s,eci:o}=this;for(let h=n;h<=s;h+=1)if(e(h))for(let c=i;c<=o;c+=1)r(h,c)}contains(r){return this.sri<=r.sri&&this.sci<=r.sci&&this.eri>=r.eri&&this.eci>=r.eci}within(r){return this.sri>=r.sri&&this.sci>=r.sci&&this.eri<=r.eri&&this.eci<=r.eci}disjoint(r){return this.sri>r.eri||this.sci>r.eci||r.sri>this.eri||r.sci>this.eci}intersects(r){return this.sri<=r.eri&&this.sci<=r.eci&&r.sri<=this.eri&&r.sci<=this.eci}union(r){const{sri:e,sci:n,eri:i,eci:s}=this;return new ar(r.sri<e?r.sri:e,r.sci<n?r.sci:n,r.eri>i?r.eri:i,r.eci>s?r.eci:s)}difference(r){const e=[],n=(u,p,m,d)=>{e.push(new ar(u,p,m,d))},{sri:i,sci:s,eri:o,eci:h}=this,c=r.sri-i,a=r.sci-s,f=o-r.eri,l=h-r.eci;return c>0?(n(i,s,r.sri-1,h),f>0?(n(r.eri+1,s,o,h),a>0&&n(r.sri,s,r.eri,r.sci-1),l>0&&n(r.sri,r.eci+1,r.eri,h)):(a>0&&n(r.sri,s,o,r.sci-1),l>0&&n(r.sri,r.eci+1,o,h))):f>0&&(n(r.eri+1,s,o,h),a>0&&n(i,s,r.eri,r.sci-1),l>0&&n(i,r.eci+1,r.eri,h)),a>0?(n(i,s,o,r.sci-1),l>0?(n(i,r.eri+1,o,h),c>0&&n(i,r.sci,r.sri-1,r.eci),f>0&&n(r.sri+1,r.sci,o,r.eci)):(c>0&&n(i,r.sci,r.sri-1,h),f>0&&n(r.sri+1,r.sci,o,h))):l>0&&(n(o,r.eci+1,o,h),c>0&&n(i,s,r.sri-1,r.eci),f>0&&n(r.eri+1,s,o,r.eci)),e}size(){return[this.eri-this.sri+1,this.eci-this.sci+1]}toString(){const{sri:r,sci:e,eri:n,eci:i}=this;let s=Yn(e,r);return this.multiple()&&(s=`${s}:${Yn(i,n)}`),s}clone(){const{sri:r,sci:e,eri:n,eci:i,w:s,h:o}=this;return new ar(r,e,n,i,s,o)}equals(r){return this.eri===r.eri&&this.eci===r.eci&&this.sri===r.sri&&this.sci===r.sci}static valueOf(r){const e=r.split(":"),[n,i]=di(e[0]);let[s,o]=[i,n];return e.length>1&&([o,s]=di(e[1])),new ar(i,n,s,o)}}let K0=class{constructor(){this.range=new ar(0,0,0,0),this.ri=0,this.ci=0}multiple(){return this.range.multiple()}setIndexes(r,e){this.ri=r,this.ci=e}size(){return this.range.size()}};class Y0{constructor(){this.x=0,this.y=0,this.ri=0,this.ci=0}}class Z0{constructor(){this.undoItems=[],this.redoItems=[]}add(r){this.undoItems.push(JSON.stringify(r)),this.redoItems=[]}canUndo(){return this.undoItems.length>0}canRedo(){return this.redoItems.length>0}undo(r,e){const{undoItems:n,redoItems:i}=this;this.canUndo()&&(i.push(JSON.stringify(r)),e(JSON.parse(n.pop())))}redo(r,e){const{undoItems:n,redoItems:i}=this;this.canRedo()&&(n.push(JSON.stringify(r)),e(JSON.parse(i.pop())))}}class J0{constructor(){this.range=null,this.state="clear"}copy(r){return this.range=r,this.state="copy",this}cut(r){return this.range=r,this.state="cut",this}isCopy(){return this.state==="copy"}isCut(){return this.state==="cut"}isClear(){return this.state==="clear"}clear(){this.range=null,this.state="clear"}}class Sl{constructor(r,e,n){this.ci=r,this.operator=e,this.value=n}set(r,e){this.operator=r,this.value=e}includes(r){const{operator:e,value:n}=this;return e==="all"?!0:e==="in"?n.includes(r):!1}vlength(){const{operator:r,value:e}=this;return r==="in"?e.length:0}getData(){const{ci:r,operator:e,value:n}=this;return{ci:r,operator:e,value:n}}}class kl{constructor(r,e){this.ci=r,this.order=e}asc(){return this.order==="asc"}desc(){return this.order==="desc"}}class Q0{constructor(){this.ref=null,this.filters=[],this.sort=null}setData({ref:r,filters:e,sort:n}){r!=null&&(this.ref=r,this.filters=e.map(i=>new Sl(i.ci,i.operator,i.value)),n&&(this.sort=new kl(n.ci,n.order)))}getData(){if(this.active()){const{ref:r,filters:e,sort:n}=this;return{ref:r,filters:e.map(i=>i.getData()),sort:n}}return{}}addFilter(r,e,n){const i=this.getFilter(r);i==null?this.filters.push(new Sl(r,e,n)):i.set(e,n)}setSort(r,e){this.sort=e?new kl(r,e):null}includes(r,e){return this.active()?this.hrange().includes(r,e):!1}getSort(r){const{sort:e}=this;return e&&e.ci===r?e:null}getFilter(r){const{filters:e}=this;for(let n=0;n<e.length;n+=1)if(e[n].ci===r)return e[n];return null}filteredRows(r){const e=new Set,n=new Set;if(this.active()){const{sri:i,eri:s}=this.range(),{filters:o}=this;for(let h=i+1;h<=s;h+=1)for(let c=0;c<o.length;c+=1){const a=o[c],f=r(h,a.ci),l=f?f.text:"";if(a.includes(l))n.add(h);else{e.add(h);break}}}return{rset:e,fset:n}}items(r,e){const n={};if(this.active()){const{sri:i,eri:s}=this.range();for(let o=i+1;o<=s;o+=1){const h=e(o,r);if(h!==null&&!/^\s*$/.test(h.text)){const c=h.text,a=(n[c]||0)+1;n[c]=a}else n[""]=(n[""]||0)+1}}return n}range(){return ar.valueOf(this.ref)}hrange(){const r=this.range();return r.eri=r.sri,r}clear(){this.ref=null,this.filters=[],this.sort=null}active(){return this.ref!==null}}class Of{constructor(r=[]){this._=r}forEach(r){this._.forEach(r)}deleteWithin(r){this._=this._.filter(e=>!e.within(r))}getFirstIncludes(r,e){for(let n=0;n<this._.length;n+=1){const i=this._[n];if(i.includes(r,e))return i}return null}filterIntersects(r){return new Of(this._.filter(e=>e.intersects(r)))}intersects(r){for(let e=0;e<this._.length;e+=1)if(this._[e].intersects(r))return!0;return!1}union(r){let e=r;return this._.forEach(n=>{n.intersects(e)&&(e=n.union(e))}),e}add(r){this.deleteWithin(r),this._.push(r)}shift(r,e,n,i){this._.forEach(s=>{const{sri:o,sci:h,eri:c,eci:a}=s,f=s;r==="row"?o>=e?(f.sri+=n,f.eri+=n):o<e&&e<=c&&(f.eri+=n,i(o,h,n,0)):r==="column"&&(h>=e?(f.sci+=n,f.eci+=n):h<e&&e<=a&&(f.eci+=n,i(o,h,0,n)))})}move(r,e,n){this._.forEach(i=>{const s=i;s.within(r)&&(s.eri+=e,s.sri+=e,s.sci+=n,s.eci+=n)})}setData(r){return this._=r.map(e=>ar.valueOf(e)),this}getData(){return this._.map(r=>r.toString())}}function q0(t){return JSON.parse(JSON.stringify(t))}const dh=(t={},...r)=>(r.forEach(e=>{Object.keys(e).forEach(n=>{const i=e[n];typeof i=="string"||typeof i=="number"||typeof i=="boolean"?t[n]=i:typeof i!="function"&&!Array.isArray(i)&&i instanceof Object?(t[n]=t[n]||{},dh(t[n],i)):t[n]=i})}),t);function cf(t,r){const e=Object.keys(t);if(e.length!==Object.keys(r).length)return!1;for(let n=0;n<e.length;n+=1){const i=e[n],s=t[i],o=r[i];if(o===void 0)return!1;if(typeof s=="string"||typeof s=="number"||typeof s=="boolean"){if(s!==o)return!1}else if(Array.isArray(s)){if(s.length!==o.length)return!1;for(let h=0;h<s.length;h+=1)if(!cf(s[h],o[h]))return!1}else if(typeof s!="function"&&!Array.isArray(s)&&s instanceof Object&&!cf(s,o))return!1}return!0}const ed=(t,r=e=>e)=>{let e=0,n=0;return Object.keys(t).forEach(i=>{e+=r(t[i],i),n+=1}),[e,n]};function td(t,r){const e=t[`${r}`];return delete t[`${r}`],e}function rd(t,r,e,n,i,s){let o=e,h=n,c=t;for(;c<r&&!(o>i);c+=1)h=s(c),o+=h;return[c,o-h,h]}function nd(t,r,e){let n=0;for(let i=t;i<r;i+=1)n+=e(i);return n}function id(t,r,e){for(let n=t;n<r;n+=1)e(n)}function sd(t,r){if(t.length===r.length){for(let e=0;e<t.length;e+=1)if(t[e]!==r[e])return!1}else return!1;return!0}function Lo(t){const r=`${t}`;let e=0,n=!1;for(let i=0;i<r.length;i+=1)n===!0&&(e+=1),r.charAt(i)==="."&&(n=!0);return e}function Ai(t,r,e){if(Number.isNaN(r)||Number.isNaN(e))return r+t+e;const n=Lo(r),i=Lo(e),s=Number(r),o=Number(e);let h=0;if(t==="-")h=s-o;else if(t==="+")h=s+o;else if(t==="*")h=s*o;else if(t==="/")return h=s/o,Lo(h)>5?h.toFixed(2):h;return h.toFixed(Math.max(n,i))}const Kr={cloneDeep:q0,merge:(...t)=>dh({},...t),equals:cf,arrayEquals:sd,sum:ed,rangeEach:id,rangeSum:nd,rangeReduceIf:rd,deleteProperty:td,numberCalc:Ai};class ad{constructor({len:r,height:e}){this._={},this.len=r,this.height=e}getHeight(r){if(this.isHide(r))return 0;const e=this.get(r);return e&&e.height?e.height:this.height}setHeight(r,e){const n=this.getOrNew(r);n.height=e}unhide(r){let e=r;for(;e>0&&(e-=1,this.isHide(e));)this.setHide(e,!1)}isHide(r){const e=this.get(r);return e&&e.hide}setHide(r,e){const n=this.getOrNew(r);e===!0?n.hide=!0:delete n.hide}setStyle(r,e){const n=this.getOrNew(r);n.style=e}sumHeight(r,e,n){return Kr.rangeSum(r,e,i=>n&&n.has(i)?0:this.getHeight(i))}totalHeight(){return this.sumHeight(0,this.len)}get(r){return this._[r]}getOrNew(r){return this._[r]=this._[r]||{cells:{}},this._[r]}getCell(r,e){const n=this.get(r);return n!==void 0&&n.cells!==void 0&&n.cells[e]!==void 0?n.cells[e]:null}getCellMerge(r,e){const n=this.getCell(r,e);return n&&n.merge?n.merge:[0,0]}getCellOrNew(r,e){const n=this.getOrNew(r);return n.cells[e]=n.cells[e]||{},n.cells[e]}setCell(r,e,n,i="all"){const s=this.getOrNew(r);i==="all"?s.cells[e]=n:i==="text"?(s.cells[e]=s.cells[e]||{},s.cells[e].text=n.text):i==="format"&&(s.cells[e]=s.cells[e]||{},s.cells[e].style=n.style,n.merge&&(s.cells[e].merge=n.merge))}setCellText(r,e,n){const i=this.getCellOrNew(r,e);i.editable!==!1&&(i.text=n)}copyPaste(r,e,n,i=!1,s=()=>{}){const{sri:o,sci:h,eri:c,eci:a}=r,f=e.sri,l=e.sci,u=e.eri,p=e.eci,[m,d]=r.size(),[v,x]=e.size();let g=!0,b=0;(u<o||p<h)&&(g=!1,u<o?b=v:b=x);for(let w=o;w<=c;w+=1)if(this._[w]){for(let y=h;y<=a;y+=1)if(this._[w].cells&&this._[w].cells[y])for(let T=f;T<=u;T+=m)for(let C=l;C<=p;C+=d){const M=T+(w-o),I=C+(y-h),B=Kr.cloneDeep(this._[w].cells[y]);if(i&&B&&B.text&&B.text.length>0){const{text:U}=B;let j=C-l+(T-f)+2;if(g||(j-=b+1),U[0]==="=")B.text=U.replace(/[a-zA-Z]{1,3}\d+/g,H=>{let[G,L]=[0,0];return o===f?G=j-1:L=j-1,/^\d+$/.test(H)?H:ys(H,G,L)});else if(m<=1&&d>1&&(f>c||u<o)||d<=1&&m>1&&(l>a||p<h)||m<=1&&d<=1){const H=/[\\.\d]+$/.exec(U);if(H!==null){const G=Number(H[0])+j-1;B.text=U.substring(0,H.index)+G}}}this.setCell(M,I,B,n),s(M,I,B)}}}cutPaste(r,e){const n={};this.each(i=>{this.eachCells(i,s=>{let o=parseInt(i,10),h=parseInt(s,10);r.includes(i,s)&&(o=e.sri+(o-r.sri),h=e.sci+(h-r.sci)),n[o]=n[o]||{cells:{}},n[o].cells[h]=this._[i].cells[s]})}),this._=n}paste(r,e){if(r.length<=0)return;const{sri:n,sci:i}=e;r.forEach((s,o)=>{const h=n+o;s.forEach((c,a)=>{const f=i+a;this.setCellText(h,f,c)})})}insert(r,e=1){const n={};this.each((i,s)=>{let o=parseInt(i,10);o>=r&&(o+=e,this.eachCells(i,(h,c)=>{c.text&&c.text[0]==="="&&(c.text=c.text.replace(/[a-zA-Z]{1,3}\d+/g,a=>ys(a,0,e,(f,l)=>l>=r)))})),n[o]=s}),this._=n,this.len+=e}delete(r,e){const n=e-r+1,i={};this.each((s,o)=>{const h=parseInt(s,10);h<r?i[h]=o:s>e&&(i[h-n]=o,this.eachCells(s,(c,a)=>{a.text&&a.text[0]==="="&&(a.text=a.text.replace(/[a-zA-Z]{1,3}\d+/g,f=>ys(f,0,-n,(l,u)=>u>e)))}))}),this._=i,this.len-=n}insertColumn(r,e=1){this.each((n,i)=>{const s={};this.eachCells(n,(o,h)=>{let c=parseInt(o,10);c>=r&&(c+=e,h.text&&h.text[0]==="="&&(h.text=h.text.replace(/[a-zA-Z]{1,3}\d+/g,a=>ys(a,e,0,f=>f>=r)))),s[c]=h}),i.cells=s})}deleteColumn(r,e){const n=e-r+1;this.each((i,s)=>{const o={};this.eachCells(i,(h,c)=>{const a=parseInt(h,10);a<r?o[a]=c:a>e&&(o[a-n]=c,c.text&&c.text[0]==="="&&(c.text=c.text.replace(/[a-zA-Z]{1,3}\d+/g,f=>ys(f,-n,0,l=>l>e))))}),s.cells=o})}deleteCells(r,e="all"){r.each((n,i)=>{this.deleteCell(n,i,e)})}deleteCell(r,e,n="all"){const i=this.get(r);if(i!==null){const s=this.getCell(r,e);s!==null&&s.editable!==!1&&(n==="all"?delete i.cells[e]:n==="text"?(s.text&&delete s.text,s.value&&delete s.value):n==="format"?(s.style!==void 0&&delete s.style,s.merge&&delete s.merge):n==="merge"&&s.merge&&delete s.merge)}}maxCell(){const r=Object.keys(this._),e=r[r.length-1],n=this._[e];if(n){const{cells:i}=n,s=Object.keys(i),o=s[s.length-1];return[parseInt(e,10),parseInt(o,10)]}return[0,0]}each(r){Object.entries(this._).forEach(([e,n])=>{r(e,n)})}eachCells(r,e){this._[r]&&this._[r].cells&&Object.entries(this._[r].cells).forEach(([n,i])=>{e(n,i)})}setData(r){r.len&&(this.len=r.len,delete r.len),this._=r}getData(){const{len:r}=this;return Object.assign({len:r},this._)}}class od{constructor({len:r,width:e,indexWidth:n,minWidth:i}){this._={},this.len=r,this.width=e,this.indexWidth=n,this.minWidth=i}setData(r){r.len&&(this.len=r.len,delete r.len),this._=r}getData(){const{len:r}=this;return Object.assign({len:r},this._)}getWidth(r){if(this.isHide(r))return 0;const e=this._[r];return e&&e.width?e.width:this.width}getOrNew(r){return this._[r]=this._[r]||{},this._[r]}setWidth(r,e){const n=this.getOrNew(r);n.width=e}unhide(r){let e=r;for(;e>0&&(e-=1,this.isHide(e));)this.setHide(e,!1)}isHide(r){const e=this._[r];return e&&e.hide}setHide(r,e){const n=this.getOrNew(r);e===!0?n.hide=!0:delete n.hide}setStyle(r,e){const n=this.getOrNew(r);n.style=e}sumWidth(r,e){return Kr.rangeSum(r,e,n=>this.getWidth(n))}totalWidth(){return this.sumWidth(0,this.len)}}const fd={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"}}};let hf=["en"];const ph={en:fd};function Cl(t,r){if(r)for(const e of hf){if(!r[e])break;let n=r[e];const i=t.match(/(?:\\.|[^.])+/g);for(let s=0;s<i.length;s+=1){const o=i[s],h=n[o];if(!h)break;if(s===i.length-1)return h;n=h}}}function ur(t){let r=Cl(t,ph);return!r&&window&&window.x_spreadsheet&&window.x_spreadsheet.$messages&&(r=Cl(t,window.x_spreadsheet.$messages)),r||""}function Dt(t){return()=>ur(t)}function mh(t,r,e=!1){e?hf=[t]:hf.unshift(t),r&&(ph[t]=r)}const Al={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function yn(t,r,...e){let n="";return t||(n=ur(`validation.${r}`,...e)),[t,n]}class gh{constructor(r,e,n,i){this.required=e,this.value=n,this.type=r,this.operator=i,this.message=""}parseValue(r){const{type:e}=this;return e==="date"?new Date(r):e==="number"?Number(r):r}equals(r){let e=this.type===r.type&&this.required===r.required&&this.operator===r.operator;return e&&(Array.isArray(this.value)?e=Kr.arrayEquals(this.value,r.value):e=this.value===r.value),e}values(){return this.value.split(",")}validate(r){const{required:e,operator:n,value:i,type:s}=this;if(e&&/^\s*$/.test(r))return yn(!1,"required");if(/^\s*$/.test(r))return[!0];if(Al[s]&&!Al[s].test(r))return yn(!1,"notMatch");if(s==="list")return yn(this.values().includes(r),"notIn");if(n){const o=this.parseValue(r);if(n==="be"){const[h,c]=i;return yn(o>=this.parseValue(h)&&o<=this.parseValue(c),"between",h,c)}if(n==="nbe"){const[h,c]=i;return yn(o<this.parseValue(h)||o>this.parseValue(c),"notBetween",h,c)}if(n==="eq")return yn(o===this.parseValue(i),"equal",i);if(n==="neq")return yn(o!==this.parseValue(i),"notEqual",i);if(n==="lt")return yn(o<this.parseValue(i),"lessThan",i);if(n==="lte")return yn(o<=this.parseValue(i),"lessThanEqual",i);if(n==="gt")return yn(o>this.parseValue(i),"greaterThan",i);if(n==="gte")return yn(o>=this.parseValue(i),"greaterThanEqual",i)}return[!0]}}class Va{constructor(r,e,n){this.refs=e,this.mode=r,this.validator=n}includes(r,e){const{refs:n}=this;for(let i=0;i<n.length;i+=1)if(ar.valueOf(n[i]).includes(r,e))return!0;return!1}addRef(r){this.remove(ar.valueOf(r)),this.refs.push(r)}remove(r){const e=[];this.refs.forEach(n=>{const i=ar.valueOf(n);i.intersects(r)?i.difference(r).forEach(o=>e.push(o.toString())):e.push(n)}),this.refs=e}getData(){const{refs:r,mode:e,validator:n}=this,{type:i,required:s,operator:o,value:h}=n;return{refs:r,mode:e,type:i,required:s,operator:o,value:h}}static valueOf({refs:r,mode:e,type:n,required:i,operator:s,value:o}){return new Va(e,r,new gh(n,i,o,s))}}class ld{constructor(){this._=[],this.errors=new Map}getError(r,e){return this.errors.get(`${r}_${e}`)}validate(r,e,n){const i=this.get(r,e),s=`${r}_${e}`,{errors:o}=this;if(i!==null){const[h,c]=i.validator.validate(n);h?o.delete(s):o.set(s,c)}else o.delete(s);return!0}add(r,e,{type:n,required:i,value:s,operator:o}){const h=new gh(n,i,s,o),c=this.getByValidator(h);c!==null?c.addRef(e):this._.push(new Va(r,[e],h))}getByValidator(r){for(let e=0;e<this._.length;e+=1){const n=this._[e];if(n.validator.equals(r))return n}return null}get(r,e){for(let n=0;n<this._.length;n+=1){const i=this._[n];if(i.includes(r,e))return i}return null}remove(r){this.each(e=>{e.remove(r)})}each(r){this._.forEach(e=>r(e))}getData(){return this._.filter(r=>r.refs.length>0).map(r=>r.getData())}setData(r){this._=r.map(e=>Va.valueOf(e))}}const cd={mode:"edit",view:{height:()=>document.documentElement.clientHeight,width:()=>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"}},hd=41,ud=41,Fl=(t,r)=>Object.prototype.hasOwnProperty.call(t,r);function Rl(t,r,e=()=>{}){const{merges:n}=this,i=r.clone(),[s,o]=t.size(),[h,c]=r.size();return s>h&&(i.eri=r.sri+s-1),o>c&&(i.eci=r.sci+o-1),n.intersects(i)?(e(ur("error.pasteForMergedCell")),!1):!0}function Ml(t,r,e,n=!1){const{rows:i,merges:s}=this;(e==="all"||e==="format")&&(i.deleteCells(r,e),s.deleteWithin(r)),i.copyPaste(t,r,e,n,(o,h,c)=>{if(c&&c.merge){const[a,f]=c.merge;if(a<=0&&f<=0)return;s.add(new ar(o,h,o+a,h+f))}})}function dd(t,r){const{clipboard:e,rows:n,merges:i}=this;n.cutPaste(t,r),i.move(t,r.sri-t.sri,r.sci-t.sci),e.clear()}function qi(t,r,e){const{styles:n,rows:i}=this,s=i.getCellOrNew(t,r);let o={};s.style!==void 0&&(o=Kr.cloneDeep(n[s.style])),o=Kr.merge(o,{border:e}),s.style=this.addStyle(o)}function pd({mode:t,style:r,color:e}){const{styles:n,selector:i,rows:s}=this,{sri:o,sci:h,eri:c,eci:a}=i.range,f=!this.isSignleSelected();if(!(!f&&(t==="inside"||t==="horizontal"||t==="vertical"))){if(t==="outside"&&!f)qi.call(this,o,h,{top:[r,e],bottom:[r,e],left:[r,e],right:[r,e]});else if(t==="none")i.range.each((l,u)=>{const p=s.getCell(l,u);if(p&&p.style!==void 0){const m=Kr.cloneDeep(n[p.style]);delete m.border,p.style=this.addStyle(m)}});else if(t==="all"||t==="inside"||t==="outside"||t==="horizontal"||t==="vertical"){const l=[];for(let u=o;u<=c;u+=1)for(let p=h;p<=a;p+=1){const m=[];for(let y=0;y<l.length;y+=1){const[T,C,M,I]=l[y];if(u===T+M+1&&m.push(y),T<=u&&u<=T+M&&p===C){p+=I+1;break}}if(m.forEach(y=>l.splice(y,1)),p>a)break;const d=s.getCell(u,p);let[v,x]=[0,0];d&&d.merge&&([v,x]=d.merge,l.push([u,p,v,x]));const g=v>0&&u+v===c,b=x>0&&p+x===a;let w={};t==="all"?w={bottom:[r,e],top:[r,e],left:[r,e],right:[r,e]}:t==="inside"?(!b&&p<a&&(w.right=[r,e]),!g&&u<c&&(w.bottom=[r,e])):t==="horizontal"?!g&&u<c&&(w.bottom=[r,e]):t==="vertical"?!b&&p<a&&(w.right=[r,e]):t==="outside"&&f&&(o===u&&(w.top=[r,e]),(g||c===u)&&(w.bottom=[r,e]),h===p&&(w.left=[r,e]),(b||a===p)&&(w.right=[r,e])),Object.keys(w).length>0&&qi.call(this,u,p,w),p+=x}}else if(t==="top"||t==="bottom")for(let l=h;l<=a;l+=1)t==="top"&&(qi.call(this,o,l,{top:[r,e]}),l+=s.getCellMerge(o,l)[1]),t==="bottom"&&(qi.call(this,c,l,{bottom:[r,e]}),l+=s.getCellMerge(c,l)[1]);else if(t==="left"||t==="right")for(let l=o;l<=c;l+=1)t==="left"&&(qi.call(this,l,h,{left:[r,e]}),l+=s.getCellMerge(l,h)[0]),t==="right"&&(qi.call(this,l,a,{right:[r,e]}),l+=s.getCellMerge(l,a)[0])}}function md(t,r){const{rows:e}=this,n=this.freezeTotalHeight();let i=e.height;n+e.height<t&&(i-=r);const s=this.exceptRowSet;let o=0,h=i,{height:c}=e;for(;o<e.len&&!(h>t);o+=1)s.has(o)||(c=e.getHeight(o),h+=c);return h-=c,h<=0?{ri:-1,top:0,height:c}:{ri:o-1,top:h,height:c}}function gd(t,r){const{cols:e}=this,n=this.freezeTotalWidth();let i=e.indexWidth;n+e.indexWidth<t&&(i-=r);const[s,o,h]=Kr.rangeReduceIf(0,e.len,i,e.indexWidth,t,c=>e.getWidth(c));return o<=0?{ci:-1,left:0,width:e.indexWidth}:{ci:s-1,left:o,width:h}}class vd{constructor(r,e){this.settings=Kr.merge(cd,e||{}),this.name=r||"sheet",this.freeze=[0,0],this.styles=[],this.merges=new Of,this.rows=new ad(this.settings.row),this.cols=new od(this.settings.col),this.validations=new ld,this.hyperlinks={},this.comments={},this.selector=new K0,this.scroll=new Y0,this.history=new Z0,this.clipboard=new J0,this.autoFilter=new Q0,this.change=()=>{},this.exceptRowSet=new Set,this.sortedRowMap=new Map,this.unsortedRowMap=new Map}addValidation(r,e,n){this.changeData(()=>{this.validations.add(r,e,n)})}removeValidation(){const{range:r}=this.selector;this.changeData(()=>{this.validations.remove(r)})}getSelectedValidator(){const{ri:r,ci:e}=this.selector,n=this.validations.get(r,e);return n?n.validator:null}getSelectedValidation(){const{ri:r,ci:e,range:n}=this.selector,i=this.validations.get(r,e),s={ref:n.toString()};return i!==null&&(s.mode=i.mode,s.validator=i.validator),s}canUndo(){return this.history.canUndo()}canRedo(){return this.history.canRedo()}undo(){this.history.undo(this.getData(),r=>{this.setData(r)})}redo(){this.history.redo(this.getData(),r=>{this.setData(r)})}copy(){this.clipboard.copy(this.selector.range)}copyToSystemClipboard(){if(navigator.clipboard===void 0)return;let r="";const e=this.rows.getData();for(let n=this.selector.range.sri;n<=this.selector.range.eri;n+=1){if(Fl(e,n)){for(let i=this.selector.range.sci;i<=this.selector.range.eci;i+=1)if(i>this.selector.range.sci&&(r+=" "),Fl(e[n].cells,i)){const s=String(e[n].cells[i].text);s.indexOf(`
|
||
`)===-1&&s.indexOf(" ")===-1&&s.indexOf('"')===-1?r+=s:r+=`"${s}"`}}else for(let i=this.selector.range.sci;i<=this.selector.range.eci;i+=1)r+=" ";r+=`
|
||
`}navigator.clipboard.writeText(r).then(()=>{},n=>{console.log("text copy to the system clipboard error ",r,n)})}cut(){this.clipboard.cut(this.selector.range)}paste(r="all",e=()=>{}){const{clipboard:n,selector:i}=this;return n.isClear()||!Rl.call(this,n.range,i.range,e)?!1:(this.changeData(()=>{n.isCopy()?Ml.call(this,n.range,i.range,r):n.isCut()&&dd.call(this,n.range,i.range)}),!0)}pasteFromText(r){const e=r.split(`\r
|
||
`).map(s=>s.replace(/"/g,"").split(" "));e.length>0&&(e.length-=1);const{rows:n,selector:i}=this;this.changeData(()=>{n.paste(e,i.range)})}autofill(r,e,n=()=>{}){const i=this.selector.range;return Rl.call(this,i,r,n)?(this.changeData(()=>{Ml.call(this,i,r,e,!0)}),!0):!1}clearClipboard(){this.clipboard.clear()}calSelectedRangeByEnd(r,e){const{selector:n,rows:i,cols:s,merges:o}=this;let{sri:h,sci:c,eri:a,eci:f}=n.range;const l=n.ri,u=n.ci;let[p,m]=[r,e];return r<0&&(p=i.len-1),e<0&&(m=s.len-1),p>l?[h,a]=[l,p]:[h,a]=[p,l],m>u?[c,f]=[u,m]:[c,f]=[m,u],n.range=o.union(new ar(h,c,a,f)),n.range=o.union(n.range),n.range}calSelectedRangeByStart(r,e){const{selector:n,rows:i,cols:s,merges:o}=this;let h=o.getFirstIncludes(r,e);return h===null&&(h=new ar(r,e,r,e),r===-1&&(h.sri=0,h.eri=i.len-1),e===-1&&(h.sci=0,h.eci=s.len-1)),n.range=h,h}setSelectedCellAttr(r,e){this.changeData(()=>{const{selector:n,styles:i,rows:s}=this;if(r==="merge")e?this.merge():this.unmerge();else if(r==="border")pd.call(this,e);else if(r==="formula"){const{ri:o,ci:h,range:c}=n;if(n.multiple()){const[a,f]=n.size(),{sri:l,sci:u,eri:p,eci:m}=c;if(a>1)for(let d=u;d<=m;d+=1){const v=s.getCellOrNew(p+1,d);v.text=`=${e}(${Yn(d,l)}:${Yn(d,p)})`}else if(f>1){const d=s.getCellOrNew(o,m+1);d.text=`=${e}(${Yn(u,o)}:${Yn(m,o)})`}}else{const a=s.getCellOrNew(o,h);a.text=`=${e}()`}}else n.range.each((o,h)=>{const c=s.getCellOrNew(o,h);let a={};if(c.style!==void 0&&(a=Kr.cloneDeep(i[c.style])),r==="format")a.format=e,c.style=this.addStyle(a);else if(r==="font-bold"||r==="font-italic"||r==="font-name"||r==="font-size"){const f={};f[r.split("-")[1]]=e,a.font=Object.assign(a.font||{},f),c.style=this.addStyle(a)}else r==="strike"||r==="textwrap"||r==="underline"||r==="align"||r==="valign"||r==="color"||r==="bgcolor"?(a[r]=e,c.style=this.addStyle(a)):c[r]=e})})}setSelectedCellText(r,e="input"){const{autoFilter:n,selector:i,rows:s}=this,{ri:o,ci:h}=i;let c=o;this.unsortedRowMap.has(o)&&(c=this.unsortedRowMap.get(o));const a=s.getCell(c,h),f=a?a.text:"";if(this.setCellText(c,h,r,e),n.active()){const l=n.getFilter(h);if(l){const u=l.value.findIndex(p=>p===f);u>=0&&l.value.splice(u,1,r)}}}getSelectedCell(){const{ri:r,ci:e}=this.selector;let n=r;return this.unsortedRowMap.has(r)&&(n=this.unsortedRowMap.get(r)),this.rows.getCell(n,e)}xyInSelectedRect(r,e){const{left:n,top:i,width:s,height:o}=this.getSelectedRect(),h=r-this.cols.indexWidth,c=e-this.rows.height;return h>n&&h<n+s&&c>i&&c<i+o}getSelectedRect(){return this.getRect(this.selector.range)}getClipboardRect(){const{clipboard:r}=this;return r.isClear()?{left:-100,top:-100}:this.getRect(r.range)}getRect(r){const{scroll:e,rows:n,cols:i,exceptRowSet:s}=this,{sri:o,sci:h,eri:c,eci:a}=r;if(o<0&&h<0)return{left:0,l:0,top:0,t:0,scroll:e};const f=i.sumWidth(0,h),l=n.sumHeight(0,o,s),u=n.sumHeight(o,c+1,s),p=i.sumWidth(h,a+1);let m=f-e.x,d=l-e.y;const v=this.freezeTotalHeight(),x=this.freezeTotalWidth();return x>0&&x>f&&(m=f),v>0&&v>l&&(d=l),{l:f,t:l,left:m,top:d,height:u,width:p,scroll:e}}getCellRectByXY(r,e){const{scroll:n,merges:i,rows:s,cols:o}=this;let{ri:h,top:c,height:a}=md.call(this,e,n.y),{ci:f,left:l,width:u}=gd.call(this,r,n.x);if(f===-1&&(u=o.totalWidth()),h===-1&&(a=s.totalHeight()),h>=0||f>=0){const p=i.getFirstIncludes(h,f);p&&(h=p.sri,f=p.sci,{left:l,top:c,width:u,height:a}=this.cellRect(h,f))}return{ri:h,ci:f,left:l,top:c,width:u,height:a}}isSignleSelected(){const{sri:r,sci:e,eri:n,eci:i}=this.selector.range,s=this.getCell(r,e);if(s&&s.merge){const[o,h]=s.merge;if(r+o===n&&e+h===i)return!0}return!this.selector.multiple()}canUnmerge(){const{sri:r,sci:e,eri:n,eci:i}=this.selector.range,s=this.getCell(r,e);if(s&&s.merge){const[o,h]=s.merge;if(r+o===n&&e+h===i)return!0}return!1}merge(){const{selector:r,rows:e}=this;if(this.isSignleSelected())return;const[n,i]=r.size();if(n>1||i>1){const{sri:s,sci:o}=r.range;this.changeData(()=>{const h=e.getCellOrNew(s,o);h.merge=[n-1,i-1],this.merges.add(r.range),this.rows.deleteCells(r.range),this.rows.setCell(s,o,h)})}}unmerge(){const{selector:r}=this;if(!this.isSignleSelected())return;const{sri:e,sci:n}=r.range;this.changeData(()=>{this.rows.deleteCell(e,n,"merge"),this.merges.deleteWithin(r.range)})}canAutofilter(){return!this.autoFilter.active()}autofilter(){const{autoFilter:r,selector:e}=this;this.changeData(()=>{r.active()?(r.clear(),this.exceptRowSet=new Set,this.sortedRowMap=new Map,this.unsortedRowMap=new Map):r.ref=e.range.toString()})}setAutoFilter(r,e,n,i){const{autoFilter:s}=this;s.addFilter(r,n,i),s.setSort(r,e),this.resetAutoFilter()}resetAutoFilter(){const{autoFilter:r,rows:e}=this;if(!r.active())return;const{sort:n}=r,{rset:i,fset:s}=r.filteredRows((c,a)=>e.getCell(c,a)),o=Array.from(s),h=Array.from(s);n&&o.sort((c,a)=>n.order==="asc"?c-a:n.order==="desc"?a-c:0),this.exceptRowSet=i,this.sortedRowMap=new Map,this.unsortedRowMap=new Map,o.forEach((c,a)=>{this.sortedRowMap.set(h[a],c),this.unsortedRowMap.set(c,h[a])})}deleteCell(r="all"){const{selector:e}=this;this.changeData(()=>{this.rows.deleteCells(e.range,r),(r==="all"||r==="format")&&this.merges.deleteWithin(e.range)})}insert(r,e=1){this.changeData(()=>{const{sri:n,sci:i}=this.selector.range,{rows:s,merges:o,cols:h}=this;let c=n;r==="row"?s.insert(n,e):r==="column"&&(s.insertColumn(i,e),c=i,h.len+=1),o.shift(r,c,e,(a,f,l,u)=>{const p=s.getCell(a,f);p.merge[0]+=l,p.merge[1]+=u})})}delete(r){this.changeData(()=>{const{rows:e,merges:n,selector:i,cols:s}=this,{range:o}=i,{sri:h,sci:c,eri:a,eci:f}=i.range,[l,u]=i.range.size();let p=h,m=l;r==="row"?e.delete(h,a):r==="column"&&(e.deleteColumn(c,f),p=o.sci,m=u,s.len-=1),n.shift(r,p,-m,(d,v,x,g)=>{const b=e.getCell(d,v);b.merge[0]+=x,b.merge[1]+=g,b.merge[0]===0&&b.merge[1]===0&&delete b.merge})})}scrollx(r,e){const{scroll:n,freeze:i,cols:s}=this,[,o]=i,[h,c,a]=Kr.rangeReduceIf(o,s.len,0,0,r,l=>s.getWidth(l));let f=c;r>0&&(f+=a),n.x!==f&&(n.ci=r>0?h:0,n.x=f,e())}scrolly(r,e){const{scroll:n,freeze:i,rows:s}=this,[o]=i,[h,c,a]=Kr.rangeReduceIf(o,s.len,0,0,r,l=>s.getHeight(l));let f=c;r>0&&(f+=a),n.y!==f&&(n.ri=r>0?h:0,n.y=f,e())}cellRect(r,e){const{rows:n,cols:i}=this,s=i.sumWidth(0,e),o=n.sumHeight(0,r),h=n.getCell(r,e);let c=i.getWidth(e),a=n.getHeight(r);if(h!==null&&h.merge){const[f,l]=h.merge;if(f>0)for(let u=1;u<=f;u+=1)a+=n.getHeight(r+u);if(l>0)for(let u=1;u<=l;u+=1)c+=i.getWidth(e+u)}return{left:s,top:o,width:c,height:a,cell:h}}getCell(r,e){return this.rows.getCell(r,e)}getCellTextOrDefault(r,e){const n=this.getCell(r,e);return n&&n.text?n.text:""}getCellStyle(r,e){const n=this.getCell(r,e);return n&&n.style!==void 0?this.styles[n.style]:null}getCellStyleOrDefault(r,e){const{styles:n,rows:i}=this,s=i.getCell(r,e),o=s&&s.style!==void 0?n[s.style]:{};return Kr.merge(this.defaultStyle(),o)}getSelectedCellStyle(){const{ri:r,ci:e}=this.selector;return this.getCellStyleOrDefault(r,e)}setCellText(r,e,n,i){const{rows:s,history:o,validations:h}=this;i==="finished"?(s.setCellText(r,e,""),o.add(this.getData()),s.setCellText(r,e,n)):(s.setCellText(r,e,n),this.change(this.getData())),h.validate(r,e,n)}freezeIsActive(){const[r,e]=this.freeze;return r>0||e>0}setFreeze(r,e){this.changeData(()=>{this.freeze=[r,e]})}freezeTotalWidth(){return this.cols.sumWidth(0,this.freeze[1])}freezeTotalHeight(){return this.rows.sumHeight(0,this.freeze[0])}setRowHeight(r,e){this.changeData(()=>{this.rows.setHeight(r,e)})}setColWidth(r,e){this.changeData(()=>{this.cols.setWidth(r,e)})}viewHeight(){const{view:r,showToolbar:e,showBottomBar:n}=this.settings;let i=r.height();return n&&(i-=ud),e&&(i-=hd),i}viewWidth(){return this.settings.view.width()}freezeViewRange(){const[r,e]=this.freeze;return new ar(0,0,r-1,e-1,this.freezeTotalWidth(),this.freezeTotalHeight())}contentRange(){const{rows:r,cols:e}=this,[n,i]=r.maxCell(),s=r.sumHeight(0,n+1),o=e.sumWidth(0,i+1);return new ar(0,0,n,i,o,s)}exceptRowTotalHeight(r,e){const{exceptRowSet:n,rows:i}=this,s=Array.from(n);let o=0;return s.forEach(h=>{if(h<r||h>e){const c=i.getHeight(h);o+=c}}),o}viewRange(){const{scroll:r,rows:e,cols:n,freeze:i,exceptRowSet:s}=this;let{ri:o,ci:h}=r;o<=0&&([o]=i),h<=0&&([,h]=i);let[c,a]=[0,0],[f,l]=[e.len,n.len];for(let u=o;u<e.len&&(s.has(u)||(a+=e.getHeight(u),f=u),!(a>this.viewHeight()));u+=1);for(let u=h;u<n.len&&(c+=n.getWidth(u),l=u,!(c>this.viewWidth()));u+=1);return new ar(o,h,f,l,c,a)}eachMergesInView(r,e){this.merges.filterIntersects(r).forEach(n=>e(n))}hideRowsOrCols(){const{rows:r,cols:e,selector:n}=this,[i,s]=n.size(),{sri:o,sci:h,eri:c,eci:a}=n.range;if(i===r.len)for(let f=h;f<=a;f+=1)e.setHide(f,!0);else if(s===e.len)for(let f=o;f<=c;f+=1)r.setHide(f,!0)}unhideRowsOrCols(r,e){this[`${r}s`].unhide(e)}rowEach(r,e,n){let i=0;const{rows:s}=this,o=this.exceptRowSet,h=[...o];let c=0;for(let a=0;a<h.length;a+=1)h[a]<r&&(c+=1);for(let a=r+c;a<=e+c;a+=1)if(o.has(a))c+=1;else{const f=s.getHeight(a);if(f>0&&(n(a,i,f),i+=f,i>this.viewHeight()))break}}colEach(r,e,n){let i=0;const{cols:s}=this;for(let o=r;o<=e;o+=1){const h=s.getWidth(o);if(h>0&&(n(o,i,h),i+=h,i>this.viewWidth()))break}}defaultStyle(){return this.settings.style}addStyle(r){const{styles:e}=this;for(let n=0;n<e.length;n+=1){const i=e[n];if(Kr.equals(i,r))return n}return e.push(r),e.length-1}changeData(r){this.history.add(this.getData()),r(),this.change(this.getData())}setData(r){return Object.keys(r).forEach(e=>{if(e==="merges"||e==="rows"||e==="cols"||e==="validations")this[e].setData(r[e]);else if(e==="freeze"){const[n,i]=di(r[e]);this.freeze=[i,n]}else e==="autofilter"?this.autoFilter.setData(r[e]):r[e]!==void 0&&(this[e]=r[e])}),this}getData(){const{name:r,freeze:e,styles:n,merges:i,rows:s,cols:o,validations:h,autoFilter:c}=this;return{name:r,freeze:Yn(e[1],e[0]),styles:n,merges:i.getData(),rows:s.getData(),cols:o.getData(),validations:h.getData(),autofilter:c.getData()}}}function Zr(t,r,e){t.addEventListener(r,e)}function Ga(t,r,e){t.removeEventListener(r,e)}function ms(t){t.xclickoutside&&(Ga(window.document.body,"click",t.xclickoutside),delete t.xclickoutside)}function Js(t,r){t.xclickoutside=e=>{e.detail===2||t.contains(e.target)||(r?r(t):(t.hide(),ms(t)))},Zr(window.document.body,"click",t.xclickoutside)}function vh(t,r,e){Zr(t,"mousemove",r);const n=t;n.xEvtUp=i=>{Ga(t,"mousemove",r),Ga(t,"mouseup",t.xEvtUp),e(i)},Zr(t,"mouseup",t.xEvtUp)}function Ol(t,r,e,n){let i="";Math.abs(t)>Math.abs(r)?(i=t>0?"right":"left",n(i,t,e)):(i=r>0?"down":"up",n(i,r,e))}function xd(t,{move:r,end:e}){let n=0,i=0;Zr(t,"touchstart",s=>{const{pageX:o,pageY:h}=s.touches[0];n=o,i=h}),Zr(t,"touchmove",s=>{if(!r)return;const{pageX:o,pageY:h}=s.changedTouches[0],c=o-n,a=h-i;(Math.abs(c)>10||Math.abs(a)>10)&&(Ol(c,a,s,r),n=o,i=h),s.preventDefault()}),Zr(t,"touchend",s=>{if(!e)return;const{pageX:o,pageY:h}=s.changedTouches[0],c=o-n,a=h-i;Ol(c,a,s,e)})}function bd(){const t=new Map;function r(o,h){const c=()=>{const f=t.get(o);return Array.isArray(f)&&f.push(h)||!1},a=()=>t.set(o,[].concat(h));return t.has(o)&&c()||a()}function e(o,h){const c=()=>{const a=t.get(o);for(const f of a)f.call(null,...h)};return t.has(o)&&c()}function n(o,h){const c=()=>{const a=t.get(o),f=a.indexOf(h);return f>=0&&a.splice(f,1)&&t.get(o).length===0&&t.delete(o)};return t.has(o)&&c()}function i(o,h){const c=(...a)=>{h.call(null,...a),n(o,c)};return r(o,c)}function s(){t.clear()}return{get current(){return t},on:r,once:i,fire:e,removeListener:n,removeAllListeners:s}}const Je="x-spreadsheet";class Il{constructor(r=!1,e){this.moving=!1,this.vertical=r,this.el=He("div",`${Je}-resizer ${r?"vertical":"horizontal"}`).children(this.unhideHoverEl=He("div",`${Je}-resizer-hover`).on("dblclick.stop",n=>this.mousedblclickHandler(n)).css("position","absolute").hide(),this.hoverEl=He("div",`${Je}-resizer-hover`).on("mousedown.stop",n=>this.mousedownHandler(n)),this.lineEl=He("div",`${Je}-resizer-line`).hide()).hide(),this.cRect=null,this.finishedFn=null,this.minDistance=e,this.unhideFn=()=>{}}showUnhide(r){this.unhideIndex=r,this.unhideHoverEl.show()}hideUnhide(){this.unhideHoverEl.hide()}show(r,e){const{moving:n,vertical:i,hoverEl:s,lineEl:o,el:h,unhideHoverEl:c}=this;if(n)return;this.cRect=r;const{left:a,top:f,width:l,height:u}=r;h.offset({left:i?a+l-5:a,top:i?f:f+u-5}).show(),s.offset({width:i?5:l,height:i?u:5}),o.offset({width:i?0:e.width,height:i?e.height:0}),c.offset({left:i?5-l:a,top:i?f:5-u,width:i?5:l,height:i?u:5})}hide(){this.el.offset({left:0,top:0}).hide(),this.hideUnhide()}mousedblclickHandler(){this.unhideIndex&&this.unhideFn(this.unhideIndex)}mousedownHandler(r){let e=r;const{el:n,lineEl:i,cRect:s,vertical:o,minDistance:h}=this;let c=o?s.width:s.height;i.show(),vh(window,a=>{this.moving=!0,e!==null&&a.buttons===1&&(o?(c+=a.movementX,c>h&&n.css("left",`${s.left+c}px`)):(c+=a.movementY,c>h&&n.css("top",`${s.top+c}px`)),e=a)},()=>{e=null,i.hide(),this.moving=!1,this.hide(),this.finishedFn&&(c<h&&(c=h),this.finishedFn(s,c))})}}class Dl{constructor(r){this.vertical=r,this.moveFn=null,this.el=He("div",`${Je}-scrollbar ${r?"vertical":"horizontal"}`).child(this.contentEl=He("div","")).on("mousemove.stop",()=>{}).on("scroll.stop",e=>{const{scrollTop:n,scrollLeft:i}=e.target;this.moveFn&&this.moveFn(this.vertical?n:i,e)})}move(r){return this.el.scroll(r),this}scroll(){return this.el.scroll()}set(r,e){const n=r-1;if(e>n){const i=this.vertical?"height":"width";this.el.css(i,`${n-15}px`).show(),this.contentEl.css(this.vertical?"width":"height","1px").css(i,`${e}px`)}else this.el.hide();return this}}const Ta=2*2-1;let uf=10;class Sa{constructor(r=!1){this.useHideInput=r,this.inputChange=()=>{},this.cornerEl=He("div",`${Je}-selector-corner`),this.areaEl=He("div",`${Je}-selector-area`).child(this.cornerEl).hide(),this.clipboardEl=He("div",`${Je}-selector-clipboard`).hide(),this.autofillEl=He("div",`${Je}-selector-autofill`).hide(),this.el=He("div",`${Je}-selector`).css("z-index",`${uf}`).children(this.areaEl,this.clipboardEl,this.autofillEl).hide(),r&&(this.hideInput=He("input","").on("compositionend",e=>{this.inputChange(e.target.value)}),this.el.child(this.hideInputDiv=He("div","hide-input").child(this.hideInput)),this.el.child(this.hideInputDiv=He("div","hide-input").child(this.hideInput))),uf+=1}setOffset(r){return this.el.offset(r).show(),this}hide(){return this.el.hide(),this}setAreaOffset(r){const{left:e,top:n,width:i,height:s}=r,o={width:i-Ta+.8,height:s-Ta+.8,left:e-.8,top:n-.8};this.areaEl.offset(o).show(),this.useHideInput&&(this.hideInputDiv.offset(o),this.hideInput.val("").focus())}setClipboardOffset(r){const{left:e,top:n,width:i,height:s}=r;this.clipboardEl.offset({left:e,top:n,width:i-5,height:s-5})}showAutofill(r){const{left:e,top:n,width:i,height:s}=r;this.autofillEl.offset({width:i-Ta,height:s-Ta,left:e,top:n}).show()}hideAutofill(){this.autofillEl.hide()}showClipboard(){this.clipboardEl.show()}hideClipboard(){this.clipboardEl.hide()}}function If(t){const{data:r}=this,{left:e,top:n,width:i,height:s,scroll:o,l:h,t:c}=t,a=r.freezeTotalWidth(),f=r.freezeTotalHeight();let l=e-a;a>h&&(l-=o.x);let u=n-f;return f>c&&(u-=o.y),{left:l,top:u,width:i,height:s}}function Df(t){const{data:r}=this,{left:e,width:n,height:i,l:s,t:o,scroll:h}=t,c=r.freezeTotalWidth();let a=e-c;return c>s&&(a-=h.x),{left:a,top:o,width:n,height:i}}function Nf(t){const{data:r}=this,{top:e,width:n,height:i,l:s,t:o,scroll:h}=t,c=r.freezeTotalHeight();let a=e-c;return c>o&&(a-=h.y),{left:s,top:a,width:n,height:i}}function df(t){const{br:r}=this;r.setAreaOffset(If.call(this,t))}function wd(t){const{tl:r}=this;r.setAreaOffset(t)}function xh(t){const{t:r}=this;r.setAreaOffset(Df.call(this,t))}function bh(t){const{l:r}=this;r.setAreaOffset(Nf.call(this,t))}function wh(t){const{l:r}=this;r.setClipboardOffset(Nf.call(this,t))}function pf(t){const{br:r}=this;r.setClipboardOffset(If.call(this,t))}function yd(t){const{tl:r}=this;r.setClipboardOffset(t)}function yh(t){const{t:r}=this;r.setClipboardOffset(Df.call(this,t))}function Nl(t){df.call(this,t),wd.call(this,t),xh.call(this,t),bh.call(this,t)}function Pl(t){pf.call(this,t),yd.call(this,t),yh.call(this,t),wh.call(this,t)}class _d{constructor(r){this.inputChange=()=>{},this.data=r,this.br=new Sa(!0),this.t=new Sa,this.l=new Sa,this.tl=new Sa,this.br.inputChange=e=>{this.inputChange(e)},this.br.el.show(),this.offset=null,this.areaOffset=null,this.indexes=null,this.range=null,this.arange=null,this.el=He("div",`${Je}-selectors`).children(this.tl.el,this.t.el,this.l.el,this.br.el).hide(),this.lastri=-1,this.lastci=-1,uf+=1}resetData(r){this.data=r,this.range=r.selector.range,this.resetAreaOffset()}hide(){this.el.hide()}resetOffset(){const{data:r,tl:e,t:n,l:i,br:s}=this,o=r.freezeTotalHeight(),h=r.freezeTotalWidth();o>0||h>0?(e.setOffset({width:h,height:o}),n.setOffset({left:h,height:o}),i.setOffset({top:o,width:h}),s.setOffset({left:h,top:o})):(e.hide(),n.hide(),i.hide(),s.setOffset({left:0,top:0}))}resetAreaOffset(){const r=this.data.getSelectedRect(),e=this.data.getClipboardRect();Nl.call(this,r),Pl.call(this,e),this.resetOffset()}resetBRTAreaOffset(){const r=this.data.getSelectedRect(),e=this.data.getClipboardRect();df.call(this,r),xh.call(this,r),pf.call(this,e),yh.call(this,e),this.resetOffset()}resetBRLAreaOffset(){const r=this.data.getSelectedRect(),e=this.data.getClipboardRect();df.call(this,r),bh.call(this,r),pf.call(this,e),wh.call(this,e),this.resetOffset()}set(r,e,n=!0){const{data:i}=this,s=i.calSelectedRangeByStart(r,e),{sri:o,sci:h}=s;if(n){let[c,a]=[r,e];r<0&&(c=0),e<0&&(a=0),i.selector.setIndexes(c,a),this.indexes=[c,a]}this.moveIndexes=[o,h],this.range=s,this.resetAreaOffset(),this.el.show()}setEnd(r,e,n=!0){const{data:i,lastri:s,lastci:o}=this;if(n){if(r===s&&e===o)return;this.lastri=r,this.lastci=e}this.range=i.calSelectedRangeByEnd(r,e),Nl.call(this,this.data.getSelectedRect())}reset(){const{eri:r,eci:e}=this.data.selector.range;this.setEnd(r,e)}showAutofill(r,e){if(r===-1&&e===-1)return;const{sri:n,sci:i,eri:s,eci:o}=this.range,[h,c]=[r,e],a=n-r,f=i-e,l=s-r,u=o-e;if(f>0)this.arange=new ar(n,c,s,i-1);else if(a>0)this.arange=new ar(h,i,n-1,o);else if(u<0)this.arange=new ar(n,o+1,s,c);else if(l<0)this.arange=new ar(s+1,i,h,o);else{this.arange=null;return}if(this.arange!==null){const p=this.data.getRect(this.arange);p.width+=2,p.height+=2;const{br:m,l:d,t:v,tl:x}=this;m.showAutofill(If.call(this,p)),d.showAutofill(Nf.call(this,p)),v.showAutofill(Df.call(this,p)),x.showAutofill(p)}}hideAutofill(){["br","l","t","tl"].forEach(r=>{this[r].hideAutofill()})}showClipboard(){const r=this.data.getClipboardRect();Pl.call(this,r),["br","l","t","tl"].forEach(e=>{this[e].showClipboard()})}hideClipboard(){["br","l","t","tl"].forEach(r=>{this[r].hideClipboard()})}}function Ed(t){t.preventDefault(),t.stopPropagation();const{filterItems:r}=this;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 Td(t){t.stopPropagation();const{filterItems:r}=this;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 Bl(t){t.preventDefault();const{filterItems:r}=this;r.length<=0||(t.stopPropagation(),this.itemIndex<0&&(this.itemIndex=0),r[this.itemIndex].el.click(),this.hide())}function Sd(t){const{keyCode:r}=t;switch(t.ctrlKey&&t.stopPropagation(),r){case 37:t.stopPropagation();break;case 38:Ed.call(this,t);break;case 39:t.stopPropagation();break;case 40:Td.call(this,t);break;case 13:Bl.call(this,t);break;case 9:Bl.call(this,t);break;default:t.stopPropagation();break}}class _h{constructor(r,e,n="200px"){this.filterItems=[],this.items=r,this.el=He("div",`${Je}-suggest`).css("width",n).hide(),this.itemClick=e,this.itemIndex=-1}setOffset(r){this.el.cssRemoveKeys("top","bottom").offset(r)}hide(){const{el:r}=this;this.filterItems=[],this.itemIndex=-1,r.hide(),ms(this.el.parent())}setItems(r){this.items=r}search(r){let{items:e}=this;if(/^\s*$/.test(r)||(e=e.filter(i=>(i.key||i).startsWith(r.toUpperCase()))),e=e.map(i=>{let{title:s}=i;s?typeof s=="function"&&(s=s()):s=i;const o=He("div",`${Je}-item`).child(s).on("click.stop",()=>{this.itemClick(i),this.hide()});return i.label&&o.child(He("div","label").html(i.label)),o}),this.filterItems=e,e.length<=0)return;const{el:n}=this;n.html("").children(...e).show(),Js(n.parent(),()=>{this.hide()})}bindInputEvents(r){r.on("keydown",e=>Sd.call(this,e))}}class Br extends Bi{constructor(r){super("div",`${Je}-icon`),this.iconNameEl=He("div",`${Je}-icon-img ${r}`),this.child(this.iconNameEl)}setName(r){this.iconNameEl.className(`${Je}-icon-img ${r}`)}}function Ll(t,r){t.setMonth(t.getMonth()+r)}function kd(t,r){const e=new Date(t);return e.setDate(r-t.getDay()+1),e}function Cd(t,r,e){const n=new Date(t,r,1,23,59,59),i=[[],[],[],[],[],[]];for(let s=0;s<6;s+=1)for(let o=0;o<7;o+=1){const h=s*7+o,c=kd(n,h),a=c.getMonth()!==r,f=c.getMonth()===e.getMonth()&&c.getDate()===e.getDate();i[s][o]={d:c,disabled:a,active:f}}return i}class Ad{constructor(r){this.value=r,this.cvalue=new Date(r),this.headerLeftEl=He("div","calendar-header-left"),this.bodyEl=He("tbody",""),this.buildAll(),this.el=He("div","x-spreadsheet-calendar").children(He("div","calendar-header").children(this.headerLeftEl,He("div","calendar-header-right").children(He("a","calendar-prev").on("click.stop",()=>this.prev()).child(new Br("chevron-left")),He("a","calendar-next").on("click.stop",()=>this.next()).child(new Br("chevron-right")))),He("table","calendar-body").children(He("thead","").child(He("tr","").children(...ur("calendar.weeks").map(e=>He("th","cell").child(e)))),this.bodyEl)),this.selectChange=()=>{}}setValue(r){this.value=r,this.cvalue=new Date(r),this.buildAll()}prev(){const{value:r}=this;Ll(r,-1),this.buildAll()}next(){const{value:r}=this;Ll(r,1),this.buildAll()}buildAll(){this.buildHeaderLeft(),this.buildBody()}buildHeaderLeft(){const{value:r}=this;this.headerLeftEl.html(`${ur("calendar.months")[r.getMonth()]} ${r.getFullYear()}`)}buildBody(){const{value:r,cvalue:e,bodyEl:n}=this,s=Cd(r.getFullYear(),r.getMonth(),e).map(o=>{const h=o.map(c=>{let a="cell";return c.disabled&&(a+=" disabled"),c.active&&(a+=" active"),He("td","").child(He("div",a).on("click.stop",()=>{this.selectChange(c.d)}).child(c.d.getDate().toString()))});return He("tr","").children(...h)});n.html("").children(...s)}}class Fd{constructor(){this.calendar=new Ad(new Date),this.el=He("div",`${Je}-datepicker`).child(this.calendar.el).hide()}setValue(r){const{calendar:e}=this;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}change(r){this.calendar.selectChange=e=>{r(e),this.hide()}}show(){this.el.show()}hide(){this.el.hide()}}function Ka(){const{inputText:t}=this;if(!/^\s*$/.test(t)){const{textlineEl:r,textEl:e,areaOffset:n}=this,i=t.split(`
|
||
`),s=Math.max(...i.map(l=>l.length)),h=r.offset().width/t.length,c=(s+1)*h+5,a=this.viewFn().width-n.left-h;let f=i.length;if(c>n.width){let l=c;c>a&&(l=a,f+=parseInt(c/a,10),f+=c%a>0?1:0),e.css("width",`${l}px`)}f*=this.rowHeight,f>n.height&&e.css("height",`${f}px`)}}function Rd({target:t},r){const{value:e,selectionEnd:n}=t,i=`${e.slice(0,n)}${r}${e.slice(n)}`;t.value=i,t.setSelectionRange(n+1,n+1),this.inputText=i,this.textlineEl.html(i),Ka.call(this)}function Md(t){const{keyCode:r,altKey:e}=t;r!==13&&r!==9&&t.stopPropagation(),r===13&&e&&(Rd.call(this,t,`
|
||
`),t.stopPropagation()),r===13&&!e&&t.preventDefault()}function Od(t){const r=t.target.value,{suggest:e,textlineEl:n,validator:i}=this,{cell:s}=this;if(s!==null)if("editable"in s&&s.editable===!0||s.editable===void 0){if(this.inputText=r,i)i.type==="list"?e.search(r):e.hide();else{const o=r.lastIndexOf("=");o!==-1?e.search(r.substring(o+1)):e.hide()}n.html(r),Ka.call(this),this.change("input",r)}else t.target.value=s.text;else{if(this.inputText=r,i)i.type==="list"?e.search(r):e.hide();else{const o=r.lastIndexOf("=");o!==-1?e.search(r.substring(o+1)):e.hide()}n.html(r),Ka.call(this),this.change("input",r)}}function Id(t){const{el:r}=this.textEl;setTimeout(()=>{r.focus(),r.setSelectionRange(t,t)},0)}function Eh(t,r){const{textEl:e,textlineEl:n}=this;e.el.blur(),e.val(t),n.html(t),Id.call(this,r)}function Dd(t){const{inputText:r,validator:e}=this;let n=0;if(e&&e.type==="list")this.inputText=t,n=this.inputText.length;else{const i=r.lastIndexOf("="),s=r.substring(0,i+1);let o=r.substring(i+1);o.indexOf(")")!==-1?o=o.substring(o.indexOf(")")):o="",this.inputText=`${s+t.key}(`,n=this.inputText.length,this.inputText+=`)${o}`}Eh.call(this,this.inputText,n)}function Nd(){this.suggest.setItems(this.formulas)}function Pd(t){let r=t.getMonth()+1,e=t.getDate();return r<10&&(r=`0${r}`),e<10&&(e=`0${e}`),`${t.getFullYear()}-${r}-${e}`}class Bd{constructor(r,e,n){this.viewFn=e,this.rowHeight=n,this.formulas=r,this.suggest=new _h(r,i=>{Dd.call(this,i)}),this.datepicker=new Fd,this.datepicker.change(i=>{this.setText(Pd(i)),this.clear()}),this.areaEl=He("div",`${Je}-editor-area`).children(this.textEl=He("textarea","").on("input",i=>Od.call(this,i)).on("paste.stop",()=>{}).on("keydown",i=>Md.call(this,i)),this.textlineEl=He("div","textline"),this.suggest.el,this.datepicker.el).on("mousemove.stop",()=>{}).on("mousedown.stop",()=>{}),this.el=He("div",`${Je}-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=()=>{}}setFreezeLengths(r,e){this.freeze.w=r,this.freeze.h=e}clear(){this.inputText!==""&&this.change("finished",this.inputText),this.cell=null,this.areaOffset=null,this.inputText="",this.el.hide(),this.textEl.val(""),this.textlineEl.html(""),Nd.call(this),this.datepicker.hide()}setOffset(r,e="top"){const{textEl:n,areaEl:i,suggest:s,freeze:o,el:h}=this;if(r){this.areaOffset=r;const{left:c,top:a,width:f,height:l,l:u,t:p}=r,m={left:0,top:0};o.w>u&&o.h>p||(o.w<u&&o.h<p?(m.left=o.w,m.top=o.h):o.w>u?m.top=o.h:o.h>p&&(m.left=o.w)),h.offset(m),i.offset({left:c-m.left-.8,top:a-m.top-.8}),n.offset({width:f-9+.8,height:l-3+.8});const d={left:0};d[e]=l,s.setOffset(d),s.hide()}}setCell(r,e){const{el:n,datepicker:i,suggest:s}=this;n.show(),this.cell=r;const o=r&&r.text||"";if(this.setText(o),this.validator=e,e){const{type:h}=e;h==="date"&&(i.show(),/^\s*$/.test(o)||i.setValue(o)),h==="list"&&(s.setItems(e.values()),s.search(""))}}setText(r){this.inputText=r,Eh.call(this,r,r.length),Ka.call(this)}}class Mi extends Bi{constructor(r,e=""){super("div",`${Je}-button ${e}`),this.child(ur(`button.${r}`))}}function Ya(){return window.devicePixelRatio||1}function Pf(){return Ya()-.5}function _t(t){return parseInt(t*Ya(),10)}function es(t){const r=_t(t);return r>0?r-.5:.5}class Ld{constructor(r,e,n,i,s=0){this.x=r,this.y=e,this.width=n,this.height=i,this.padding=s,this.bgcolor="#ffffff",this.borderTop=null,this.borderRight=null,this.borderBottom=null,this.borderLeft=null}setBorders({top:r,bottom:e,left:n,right:i}){r&&(this.borderTop=r),i&&(this.borderRight=i),e&&(this.borderBottom=e),n&&(this.borderLeft=n)}innerWidth(){return this.width-this.padding*2-2}innerHeight(){return this.height-this.padding*2-2}textx(r){const{width:e,padding:n}=this;let{x:i}=this;return r==="left"?i+=n:r==="center"?i+=e/2:r==="right"&&(i+=e-n),i}texty(r,e){const{height:n,padding:i}=this;let{y:s}=this;return r==="top"?s+=i:r==="middle"?s+=n/2-e/2:r==="bottom"&&(s+=n-i-e),s}topxys(){const{x:r,y:e,width:n}=this;return[[r,e],[r+n,e]]}rightxys(){const{x:r,y:e,width:n,height:i}=this;return[[r+n,e],[r+n,e+i]]}bottomxys(){const{x:r,y:e,width:n,height:i}=this;return[[r,e+i],[r+n,e+i]]}leftxys(){const{x:r,y:e,height:n}=this;return[[r,e],[r,e+n]]}}function jl(t,r,e,n,i,s,o){const h={x:0,y:0};t==="underline"?i==="bottom"?h.y=0:i==="top"?h.y=-(s+2):h.y=-s/2:t==="strike"&&(i==="bottom"?h.y=s/2:i==="top"&&(h.y=-(s/2+2))),n==="center"?h.x=o/2:n==="right"&&(h.x=o),this.line([r-h.x,e-h.y],[r-h.x+o,e-h.y])}class Th{constructor(r,e,n){this.el=r,this.ctx=r.getContext("2d"),this.resize(e,n),this.ctx.scale(Ya(),Ya())}resize(r,e){this.el.style.width=`${r}px`,this.el.style.height=`${e}px`,this.el.width=_t(r),this.el.height=_t(e)}clear(){const{width:r,height:e}=this.el;return this.ctx.clearRect(0,0,r,e),this}attr(r){return Object.assign(this.ctx,r),this}save(){return this.ctx.save(),this.ctx.beginPath(),this}restore(){return this.ctx.restore(),this}beginPath(){return this.ctx.beginPath(),this}translate(r,e){return this.ctx.translate(_t(r),_t(e)),this}scale(r,e){return this.ctx.scale(r,e),this}clearRect(r,e,n,i){return this.ctx.clearRect(r,e,n,i),this}fillRect(r,e,n,i){return this.ctx.fillRect(_t(r)-.5,_t(e)-.5,_t(n),_t(i)),this}fillText(r,e,n){return this.ctx.fillText(r,_t(e),_t(n)),this}text(r,e,n={},i=!0){const{ctx:s}=this,{align:o,valign:h,font:c,color:a,strike:f,underline:l}=n,u=e.textx(o);s.save(),s.beginPath(),this.attr({textAlign:o,textBaseline:h,font:`${c.italic?"italic":""} ${c.bold?"bold":""} ${_t(c.size)}px ${c.name}`,fillStyle:a,strokeStyle:a});const p=`${r}`.split(`
|
||
`),m=e.innerWidth(),d=[];p.forEach(g=>{const b=s.measureText(g).width;if(i&&b>_t(m)){let w={w:0,len:0,start:0};for(let y=0;y<g.length;y+=1)w.w>=_t(m)&&(d.push(g.substr(w.start,w.len)),w={w:0,len:0,start:y}),w.len+=1,w.w+=s.measureText(g[y]).width+1;w.len>0&&d.push(g.substr(w.start,w.len))}else d.push(g)});const v=(d.length-1)*(c.size+2);let x=e.texty(h,v);return d.forEach(g=>{const b=s.measureText(g).width;this.fillText(g,u,x),f&&jl.call(this,"strike",u,x,o,h,c.size,b),l&&jl.call(this,"underline",u,x,o,h,c.size,b),x+=c.size+2}),s.restore(),this}border(r,e){const{ctx:n}=this;return n.lineWidth=Pf,n.strokeStyle=e,r==="medium"?n.lineWidth=_t(2)-.5:r==="thick"?n.lineWidth=_t(3):r==="dashed"?n.setLineDash([_t(3),_t(2)]):r==="dotted"?n.setLineDash([_t(1),_t(1)]):r==="double"&&n.setLineDash([_t(2),0]),this}line(...r){const{ctx:e}=this;if(r.length>1){e.beginPath();const[n,i]=r[0];e.moveTo(es(n),es(i));for(let s=1;s<r.length;s+=1){const[o,h]=r[s];e.lineTo(es(o),es(h))}e.stroke()}return this}strokeBorders(r){const{ctx:e}=this;e.save();const{borderTop:n,borderRight:i,borderBottom:s,borderLeft:o}=r;n&&(this.border(...n),this.line(...r.topxys())),i&&(this.border(...i),this.line(...r.rightxys())),s&&(this.border(...s),this.line(...r.bottomxys())),o&&(this.border(...o),this.line(...r.leftxys())),e.restore()}dropdown(r){const{ctx:e}=this,{x:n,y:i,width:s,height:o}=r,h=n+s-15,c=i+o-15;e.save(),e.beginPath(),e.moveTo(_t(h),_t(c)),e.lineTo(_t(h+8),_t(c)),e.lineTo(_t(h+4),_t(c+6)),e.closePath(),e.fillStyle="rgba(0, 0, 0, .45)",e.fill(),e.restore()}error(r){const{ctx:e}=this,{x:n,y:i,width:s}=r,o=n+s-1;e.save(),e.beginPath(),e.moveTo(_t(o-8),_t(i-1)),e.lineTo(_t(o),_t(i-1)),e.lineTo(_t(o),_t(i+8)),e.closePath(),e.fillStyle="rgba(255, 0, 0, .65)",e.fill(),e.restore()}frozen(r){const{ctx:e}=this,{x:n,y:i,width:s}=r,o=n+s-1;e.save(),e.beginPath(),e.moveTo(_t(o-8),_t(i-1)),e.lineTo(_t(o),_t(i-1)),e.lineTo(_t(o),_t(i+8)),e.closePath(),e.fillStyle="rgba(0, 255, 0, .85)",e.fill(),e.restore()}rect(r,e){const{ctx:n}=this,{x:i,y:s,width:o,height:h,bgcolor:c}=r;n.save(),n.beginPath(),n.fillStyle=c||"#fff",n.rect(es(i+1),es(s+1),_t(o-2),_t(h-2)),n.clip(),n.fill(),e(),n.restore()}}const Ul=[{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"}],mf=[{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}];function jd(t){for(let r=0;r<mf.length;r+=1){const e=mf[r];if(e.pt===t)return e.px}return t}const Ud=t=>{const r=[],e=[];let n=[],i=0,s="",o=1,h="";for(let c=0;c<t.length;c+=1){const a=t.charAt(c);if(a!==" "){if(a>="a"&&a<="z")n.push(a.toUpperCase());else if(a>="0"&&a<="9"||a>="A"&&a<="Z"||a===".")n.push(a);else if(a==='"'){for(c+=1;t.charAt(c)!=='"';)n.push(t.charAt(c)),c+=1;e.push(`"${n.join("")}`),n=[]}else if(a==="-"&&/[+\-*/,(]/.test(h))n.push(a);else{if(a!=="("&&n.length>0&&e.push(n.join("")),a===")"){let f=r.pop();if(i===2)try{const[l,u]=di(e.pop()),[p,m]=di(e.pop());let d=0;for(let v=p;v<=l;v+=1)for(let x=m;x<=u;x+=1)e.push(Yn(v,x)),d+=1;e.push([f,d])}catch{}else if(i===1||i===3)i===3&&e.push(s),e.push([f,o]),o=1;else for(;f!=="("&&(e.push(f),!(r.length<=0));)f=r.pop();i=0}else if(a==="="||a===">"||a==="<"){const f=t.charAt(c+1);s=a,(f==="="||f==="-")&&(s+=f,c+=1),i=3}else if(a===":")i=2;else if(a===",")i===3&&e.push(s),i=1,o+=1;else if(a==="("&&n.length>0)r.push(n.join(""));else{if(r.length>0&&(a==="+"||a==="-")){let f=r[r.length-1];if(f!=="("&&e.push(r.pop()),f==="*"||f==="/")for(;r.length>0&&(f=r[r.length-1],f!=="(");)e.push(r.pop())}else if(r.length>0){const f=r[r.length-1];(f==="*"||f==="/")&&e.push(r.pop())}r.push(a)}n=[]}h=a}}for(n.length>0&&e.push(n.join(""));r.length>0;)e.push(r.pop());return e},Hd=(t,r)=>{const[e]=t;let n=t;if(e==='"')return t.substring(1);let i=1;if(e==="-"&&(n=t.substring(1),i=-1),n[0]>="0"&&n[0]<="9")return i*Number(n);const[s,o]=di(n);return i*r(s,o)},zd=(t,r,e,n)=>{const i=[];for(let s=0;s<t.length;s+=1){const o=t[s],h=o[0];if(o==="+"){const c=i.pop();i.push(Ai("+",i.pop(),c))}else if(o==="-")if(i.length===1){const c=i.pop();i.push(Ai("*",c,-1))}else{const c=i.pop();i.push(Ai("-",i.pop(),c))}else if(o==="*")i.push(Ai("*",i.pop(),i.pop()));else if(o==="/"){const c=i.pop();i.push(Ai("/",i.pop(),c))}else if(h==="="||h===">"||h==="<"){let c=i.pop();Number.isNaN(c)||(c=Number(c));let a=i.pop();Number.isNaN(a)||(a=Number(a));let f=!1;h==="="?f=a===c:o===">"?f=a>c:o===">="?f=a>=c:o==="<"?f=a<c:o==="<="&&(f=a<=c),i.push(f)}else if(Array.isArray(o)){const[c,a]=o,f=[];for(let l=0;l<a;l+=1)f.push(i.pop());i.push(r[c].render(f.reverse()))}else{if(n.includes(o))return 0;(h>="a"&&h<="z"||h>="A"&&h<="Z")&&n.push(o),i.push(Hd(o,e)),n.pop()}}return i[0]},Sh=(t,r,e,n=[])=>{if(t[0]==="="){const i=Ud(t.substring(1));return i.length<=0?t:zd(i,r,(s,o)=>Sh(e(s,o),r,e,n),n)}return t},$d={render:Sh},Bf=[{key:"SUM",title:Dt("formula.sum"),render:t=>t.reduce((r,e)=>Ai("+",r,e),0)},{key:"AVERAGE",title:Dt("formula.average"),render:t=>t.reduce((r,e)=>Number(r)+Number(e),0)/t.length},{key:"MAX",title:Dt("formula.max"),render:t=>Math.max(...t.map(r=>Number(r)))},{key:"MIN",title:Dt("formula.min"),render:t=>Math.min(...t.map(r=>Number(r)))},{key:"IF",title:Dt("formula._if"),render:([t,r,e])=>t?r:e},{key:"AND",title:Dt("formula.and"),render:t=>t.every(r=>r)},{key:"OR",title:Dt("formula.or"),render:t=>t.some(r=>r)},{key:"CONCAT",title:Dt("formula.concat"),render:t=>t.join("")}],Wd=Bf,kh={};Bf.forEach(t=>{kh[t.key]=t});const ts=t=>t,ka=t=>{if(/^(-?\d*.?\d*)$/.test(t)){const r=Number(t).toFixed(2).toString(),[e,...n]=r.split("\\.");return[e.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),...n]}return t},Es=[{key:"normal",title:Dt("format.normal"),type:"string",render:ts},{key:"text",title:Dt("format.text"),type:"string",render:ts},{key:"number",title:Dt("format.number"),type:"number",label:"1,000.12",render:ka},{key:"percent",title:Dt("format.percent"),type:"number",label:"10.12%",render:t=>`${t}%`},{key:"rmb",title:Dt("format.rmb"),type:"number",label:"¥10.00",render:t=>`¥${ka(t)}`},{key:"usd",title:Dt("format.usd"),type:"number",label:"$10.00",render:t=>`$${ka(t)}`},{key:"eur",title:Dt("format.eur"),type:"number",label:"€10.00",render:t=>`€${ka(t)}`},{key:"date",title:Dt("format.date"),type:"date",label:"26/09/2008",render:ts},{key:"time",title:Dt("format.time"),type:"date",label:"15:59:00",render:ts},{key:"datetime",title:Dt("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:ts},{key:"duration",title:Dt("format.duration"),type:"date",label:"24:01:00",render:ts}],Ch={};Es.forEach(t=>{Ch[t.key]=t});const Xd=5,Vd={fillStyle:"#f4f5f8"},Gd={fillStyle:"#fff",lineWidth:Pf,strokeStyle:"#e6e6e6"};function Kd(){return{textAlign:"center",textBaseline:"middle",font:`500 ${_t(12)}px Source Sans Pro`,fillStyle:"#585757",lineWidth:Pf(),strokeStyle:"#e6e6e6"}}function Ah(t,r,e,n=0){const{left:i,top:s,width:o,height:h}=t.cellRect(r,e);return new Ld(i,s+n,o,h,Xd)}function Za(t,r,e,n,i=0){const{sortedRowMap:s,rows:o,cols:h}=r;if(o.isHide(e)||h.isHide(n))return;let c=e;s.has(e)&&(c=s.get(e));const a=r.getCell(c,n);if(a===null)return;let f=!1;"editable"in a&&a.editable===!1&&(f=!0);const l=r.getCellStyleOrDefault(c,n),u=Ah(r,e,n,i);u.bgcolor=l.bgcolor,l.border!==void 0&&(u.setBorders(l.border),t.strokeBorders(u)),t.rect(u,()=>{let p="";r.settings.evalPaused?p=a.text||"":p=$d.render(a.text||"",kh,(v,x)=>r.getCellTextOrDefault(x,v)),l.format&&(p=Ch[l.format].render(p));const m=Object.assign({},l.font);m.size=jd(m.size),t.text(p,u,{align:l.align,valign:l.valign,font:m,color:l.color,strike:l.strike,underline:l.underline},l.textwrap),r.validations.getError(e,n)&&t.error(u),f&&t.frozen(u)})}function Yd(t){const{data:r,draw:e}=this;if(t){const{autoFilter:n}=r;if(!n.active())return;const i=n.hrange();t.intersects(i)&&i.each((s,o)=>{const h=Ah(r,s,o);e.dropdown(h)})}}function Ca(t,r,e,n,i){const{draw:s,data:o}=this;s.save(),s.translate(r,e).translate(n,i);const{exceptRowSet:h}=o,c=l=>{const u=h.has(l);if(u){const p=o.rows.getHeight(l);s.translate(0,-p)}return!u},a=o.exceptRowTotalHeight(t.sri,t.eri);s.save(),s.translate(0,-a),t.each((l,u)=>{Za(s,o,l,u)},l=>c(l)),s.restore();const f=new Set;s.save(),s.translate(0,-a),o.eachMergesInView(t,({sri:l,sci:u,eri:p})=>{if(!h.has(l))Za(s,o,l,u);else if(!f.has(l)){f.add(l);const m=o.rows.sumHeight(l,p+1);s.translate(0,-m)}}),s.restore(),Yd.call(this,t),s.restore()}function Hl(t,r,e,n){const{draw:i}=this;i.save(),i.attr({fillStyle:"rgba(75, 137, 255, 0.08)"}).fillRect(t,r,e,n),i.restore()}function Aa(t,r,e,n,i,s){const{draw:o,data:h}=this,c=r.h,a=r.w,f=s+n,l=i+e;o.save(),o.attr(Vd),(t==="all"||t==="left")&&o.fillRect(0,f,e,c),(t==="all"||t==="top")&&o.fillRect(l,0,a,n);const{sri:u,sci:p,eri:m,eci:d}=h.selector.range;o.attr(Kd()),(t==="all"||t==="left")&&(h.rowEach(r.sri,r.eri,(v,x,g)=>{const b=f+x,w=v;o.line([0,b],[e,b]),u<=w&&w<m+1&&Hl.call(this,0,b,e,g),o.fillText(w+1,e/2,b+g/2),v>0&&h.rows.isHide(v-1)&&(o.save(),o.attr({strokeStyle:"#c6c6c6"}),o.line([5,b+5],[e-5,b+5]),o.restore())}),o.line([0,c+f],[e,c+f]),o.line([e,f],[e,c+f])),(t==="all"||t==="top")&&(h.colEach(r.sci,r.eci,(v,x,g)=>{const b=l+x,w=v;o.line([b,0],[b,n]),p<=w&&w<d+1&&Hl.call(this,b,0,g,n),o.fillText(uh(w),b+g/2,n/2),v>0&&h.cols.isHide(v-1)&&(o.save(),o.attr({strokeStyle:"#c6c6c6"}),o.line([b+5,5],[b+5,n-5]),o.restore())}),o.line([a+l,0],[a+l,n]),o.line([0,n],[a+l,n])),o.restore()}function Zd(t,r){const{draw:e}=this;e.save(),e.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,t,r),e.restore()}function Fa({sri:t,sci:r,eri:e,eci:n,w:i,h:s},o,h,c,a){const{draw:f,data:l}=this,{settings:u}=l;if(f.save(),f.attr(Gd).translate(o+c,h+a),!u.showGrid){f.restore();return}l.rowEach(t,e,(p,m,d)=>{p!==t&&f.line([0,m],[i,m]),p===e&&f.line([0,m+d],[i,m+d])}),l.colEach(r,n,(p,m,d)=>{p!==r&&f.line([m,0],[m,s]),p===n&&f.line([m+d,0],[m+d,s])}),f.restore()}function Jd(t,r,e,n){const{draw:i,data:s}=this,o=s.viewWidth()-t,h=s.viewHeight()-r;i.save().translate(t,r).attr({strokeStyle:"rgba(75, 137, 255, .6)"}),i.line([0,n],[o,n]),i.line([e,0],[e,h]),i.restore()}class Qd{constructor(r,e){this.el=r,this.draw=new Th(r,e.viewWidth(),e.viewHeight()),this.data=e}resetData(r){this.data=r,this.render()}render(){const{data:r}=this,{rows:e,cols:n}=r,i=n.indexWidth,s=e.height;this.draw.resize(r.viewWidth(),r.viewHeight()),this.clear();const o=r.viewRange(),h=r.freezeTotalWidth(),c=r.freezeTotalHeight(),{x:a,y:f}=r.scroll;Fa.call(this,o,i,s,h,c),Ca.call(this,o,i,s,-a,-f),Aa.call(this,"all",o,i,s,h,c),Zd.call(this,i,s);const[l,u]=r.freeze;if(l>0||u>0){if(l>0){const m=o.clone();m.sri=0,m.eri=l-1,m.h=c,Fa.call(this,m,i,s,h,0),Ca.call(this,m,i,s,-a,0),Aa.call(this,"top",m,i,s,h,0)}if(u>0){const m=o.clone();m.sci=0,m.eci=u-1,m.w=h,Fa.call(this,m,i,s,0,c),Aa.call(this,"left",m,i,s,0,c),Ca.call(this,m,i,s,0,-f)}const p=r.freezeViewRange();Fa.call(this,p,i,s,0,0),Aa.call(this,"all",p,i,s,0,0),Ca.call(this,p,i,s,0,0),Jd.call(this,i,s,h,c)}}clear(){this.draw.clear()}}const Ha=[["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]],gf=["landscape","portrait"];function Ja(t){return parseInt(96*t,10)}function zl(t){t==="cancel"?this.el.hide():this.toPrint()}function qd(t){const{paper:r}=this,{value:e}=t.target,n=Ha[e];r.w=Ja(n[1]),r.h=Ja(n[2]),this.preview()}function ep(t){const{paper:r}=this,{value:e}=t.target,n=gf[e];r.orientation=n,this.preview()}let tp=class{constructor(r){this.paper={w:Ja(Ha[0][1]),h:Ja(Ha[0][2]),padding:50,orientation:gf[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=He("div",`${Je}-print`).children(He("div",`${Je}-print-bar`).children(He("div","-title").child("Print settings"),He("div","-right").children(He("div",`${Je}-buttons`).children(new Mi("cancel").on("click",zl.bind(this,"cancel")),new Mi("next","primary").on("click",zl.bind(this,"next"))))),He("div",`${Je}-print-content`).children(this.contentEl=He("div","-content"),He("div","-sider").child(He("form","").children(He("fieldset","").children(He("label","").child(`${ur("print.size")}`),He("select","").children(...Ha.map((e,n)=>He("option","").attr("value",n).child(`${e[0]} ( ${e[1]}''x${e[2]}'' )`))).on("change",qd.bind(this))),He("fieldset","").children(He("label","").child(`${ur("print.orientation")}`),He("select","").children(...gf.map((e,n)=>He("option","").attr("value",n).child(`${ur("print.orientations")[n]}`))).on("change",ep.bind(this))))))).hide()}resetData(r){this.data=r}preview(){const{data:r,paper:e}=this,{width:n,height:i,padding:s}=e,o=n-s*2,h=i-s*2,c=r.contentRange(),a=parseInt(c.h/h,10)+1,f=o/c.w;let l=s;const u=s;f>1&&(l+=(o-c.w)/2);let p=0,m=0;this.contentEl.html(""),this.canvases=[];const d={sri:0,sci:0,eri:0,eci:0};for(let v=0;v<a;v+=1){let x=0,g=0;const b=He("div",`${Je}-canvas-card`),w=He("canvas",`${Je}-canvas`);this.canvases.push(w.el);const y=new Th(w.el,n,i);for(y.save(),y.translate(l,u),f<1&&y.scale(f,f);p<=c.eri;p+=1){const C=r.rows.getHeight(p);if(x+=C,x<h)for(let M=0;M<=c.eci;M+=1)Za(y,r,p,M,m),d.eci=M;else{g=-(x-C);break}}d.eri=p,y.restore(),y.save(),y.translate(l,u),f<1&&y.scale(f,f);const T=m;r.eachMergesInView(d,({sri:C,sci:M})=>{Za(y,r,C,M,T)}),y.restore(),d.sri=d.eri,d.sci=d.eci,m+=g,this.contentEl.child(He("div",`${Je}-canvas-card-wraper`).child(b.child(w)))}this.el.show()}toPrint(){this.el.hide();const{paper:r}=this,e=He("iframe","").hide(),{el:n}=e;window.document.body.appendChild(n);const{contentWindow:i}=n,s=i.document,o=document.createElement("style");o.innerHTML=`
|
||
@page { size: ${r.width}px ${r.height}px; };
|
||
canvas {
|
||
page-break-before: auto;
|
||
page-break-after: always;
|
||
image-rendering: pixelated;
|
||
};
|
||
`,s.head.appendChild(o),this.canvases.forEach(h=>{const c=h.cloneNode(!1);c.getContext("2d").drawImage(h,0,0),s.body.appendChild(c)}),i.print()}};const rp=[{key:"copy",title:Dt("contextmenu.copy"),label:"Ctrl+C"},{key:"cut",title:Dt("contextmenu.cut"),label:"Ctrl+X"},{key:"paste",title:Dt("contextmenu.paste"),label:"Ctrl+V"},{key:"paste-value",title:Dt("contextmenu.pasteValue"),label:"Ctrl+Shift+V"},{key:"paste-format",title:Dt("contextmenu.pasteFormat"),label:"Ctrl+Alt+V"},{key:"divider"},{key:"insert-row",title:Dt("contextmenu.insertRow")},{key:"insert-column",title:Dt("contextmenu.insertColumn")},{key:"divider"},{key:"delete-row",title:Dt("contextmenu.deleteRow")},{key:"delete-column",title:Dt("contextmenu.deleteColumn")},{key:"delete-cell-text",title:Dt("contextmenu.deleteCellText")},{key:"hide",title:Dt("contextmenu.hide")},{key:"divider"},{key:"validation",title:Dt("contextmenu.validation")},{key:"divider"},{key:"cell-printable",title:Dt("contextmenu.cellprintable")},{key:"cell-non-printable",title:Dt("contextmenu.cellnonprintable")},{key:"divider"},{key:"cell-editable",title:Dt("contextmenu.celleditable")},{key:"cell-non-editable",title:Dt("contextmenu.cellnoneditable")}];function np(t){return t.key==="divider"?He("div",`${Je}-item divider`):He("div",`${Je}-item`).on("click",()=>{this.itemClick(t.key),this.hide()}).children(t.title(),He("div","label").child(t.label||""))}function ip(){return rp.map(t=>np.call(this,t))}let sp=class{constructor(r,e=!1){this.menuItems=ip.call(this),this.el=He("div",`${Je}-contextmenu`).children(...this.menuItems).hide(),this.viewFn=r,this.itemClick=()=>{},this.isHide=e,this.setMode("range")}setMode(r){const e=this.menuItems[12];r==="row-col"?e.show():e.hide()}hide(){const{el:r}=this;r.hide(),ms(r)}setPosition(r,e){if(this.isHide)return;const{el:n}=this,{width:i}=n.show().offset(),s=this.viewFn(),o=s.height/2;let h=r;s.width-r<=i&&(h-=i),n.css("left",`${h}px`),e>o?n.css("bottom",`${s.height-e}px`).css("max-height",`${e}px`).css("top","auto"):n.css("top",`${e}px`).css("max-height",`${s.height-e}px`).css("bottom","auto"),Js(n)}};function ap(t,r){if(r.classList.contains("active"))return;const{left:e,top:n,width:i,height:s}=r.getBoundingClientRect(),o=He("div",`${Je}-tooltip`).html(t).show();document.body.appendChild(o.el);const h=o.box();o.css("left",`${e+i/2-h.width/2}px`).css("top",`${n+s+2}px`),Zr(r,"mouseleave",()=>{document.body.contains(o.el)&&document.body.removeChild(o.el)}),Zr(r,"click",()=>{document.body.contains(o.el)&&document.body.removeChild(o.el)})}class Lf{constructor(r,e,n){this.tip=ur(`toolbar.${r.replace(/-[a-z]/g,i=>i[1].toUpperCase())}`),e&&(this.tip+=` (${e})`),this.tag=r,this.shortcut=e,this.value=n,this.el=this.element(),this.change=()=>{}}element(){const{tip:r}=this;return He("div",`${Je}-toolbar-btn`).on("mouseenter",e=>{ap(r,e.target)}).attr("data-tooltip",r)}setState(){}}class jn extends Lf{dropdown(){}getValue(r){return r}element(){const{tag:r}=this;return this.dd=this.dropdown(),this.dd.change=e=>this.change(r,this.getValue(e)),super.element().child(this.dd)}setState(r){r&&(this.value=r,this.dd.setTitle(r))}}class Un extends Bi{constructor(r,e,n,i,...s){super("div",`${Je}-dropdown ${i}`),this.title=r,this.change=()=>{},this.headerClick=()=>{},typeof r=="string"?this.title=He("div",`${Je}-dropdown-title`).child(r):n&&this.title.addClass("arrow-left"),this.contentEl=He("div",`${Je}-dropdown-content`).css("width",e).hide(),this.setContentChildren(...s),this.headerEl=He("div",`${Je}-dropdown-header`),this.headerEl.on("click",()=>{this.contentEl.css("display")!=="block"?this.show():this.hide()}).children(this.title,n?He("div",`${Je}-icon arrow-right`).child(He("div",`${Je}-icon-img arrow-down`)):""),this.children(this.headerEl,this.contentEl)}setContentChildren(...r){this.contentEl.html(""),r.length>0&&this.contentEl.children(...r)}setTitle(r){this.title.html(r),this.hide()}show(){const{contentEl:r}=this;r.show(),this.parent().active(),Js(this.parent(),()=>{this.hide()})}hide(){this.parent().active(!1),this.contentEl.hide(),ms(this.parent())}}function op(t){return He("div",`${Je}-item`).child(new Br(t))}class Fh extends Un{constructor(r,e){const n=new Br(`align-${e}`),i=r.map(s=>op(`align-${s}`).on("click",()=>{this.setTitle(s),this.change(s)}));super(n,"auto",!0,"bottom-left",...i)}setTitle(r){this.title.setName(`align-${r}`),this.hide()}}class fp extends jn{constructor(r){super("align","",r)}dropdown(){const{value:r}=this;return new Fh(["left","center","right"],r)}}class lp extends jn{constructor(r){super("valign","",r)}dropdown(){const{value:r}=this;return new Fh(["top","middle","bottom"],r)}}class ti extends Lf{element(){const{tag:r}=this;return super.element().child(new Br(r)).on("click",()=>this.click())}click(){this.change(this.tag,this.toggle())}setState(r){this.el.active(r)}toggle(){return this.el.toggle()}active(){return this.el.hasClass("active")}}class cp extends ti{constructor(){super("autofilter")}setState(){}}class hp extends ti{constructor(){super("font-bold","Ctrl+B")}}class up extends ti{constructor(){super("font-italic","Ctrl+I")}}class dp extends ti{constructor(){super("strike","Ctrl+U")}}class pp extends ti{constructor(){super("underline","Ctrl+U")}}const mp=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],gp=[["#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"]],vp=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function jo(t){return He("td","").child(He("div",`${Je}-color-palette-cell`).on("click.stop",()=>this.change(t)).css("background-color",t))}class xp{constructor(){this.el=He("div",`${Je}-color-palette`),this.change=()=>{};const r=He("table","").children(He("tbody","").children(He("tr",`${Je}-theme-color-placeholders`).children(...mp.map(e=>jo.call(this,e))),...gp.map(e=>He("tr",`${Je}-theme-colors`).children(...e.map(n=>jo.call(this,n)))),He("tr",`${Je}-standard-colors`).children(...vp.map(e=>jo.call(this,e)))));this.el.child(r)}}class jf extends Un{constructor(r,e){const n=new Br(r).css("height","16px").css("border-bottom",`3px solid ${e}`),i=new xp;i.change=s=>{this.setTitle(s),this.change(s)},super(n,"auto",!1,"bottom-left",i.el)}setTitle(r){this.title.css("border-color",r),this.hide()}}const bp=[["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>']];class wp extends Un{constructor(r){const e=new Br("line-type");let n=0;const i=bp.map((s,o)=>He("div",`${Je}-item state ${r===s[0]?"checked":""}`).on("click",()=>{i[n].toggle("checked"),i[o].toggle("checked"),n=o,this.hide(),this.change(s)}).child(He("div",`${Je}-line-type`).html(s[1])));super(e,"auto",!1,"bottom-left",...i)}}function $l(...t){return He("table","").child(He("tbody","").children(...t))}function Wl(t){return He("td","").child(He("div",`${Je}-border-palette-cell`).child(new Br(`border-${t}`)).on("click",()=>{this.mode=t;const{mode:r,style:e,color:n}=this;this.change({mode:r,style:e,color:n})}))}class yp{constructor(){this.color="#000",this.style="thin",this.mode="all",this.change=()=>{},this.ddColor=new jf("line-color",this.color),this.ddColor.change=e=>{this.color=e},this.ddType=new wp(this.style),this.ddType.change=([e])=>{this.style=e},this.el=He("div",`${Je}-border-palette`);const r=$l(He("tr","").children(He("td",`${Je}-border-palette-left`).child($l(He("tr","").children(...["all","inside","horizontal","vertical","outside"].map(e=>Wl.call(this,e))),He("tr","").children(...["left","top","right","bottom","none"].map(e=>Wl.call(this,e))))),He("td",`${Je}-border-palette-right`).children(He("div",`${Je}-toolbar-btn`).child(this.ddColor.el),He("div",`${Je}-toolbar-btn`).child(this.ddType.el))));this.el.child(r)}}class _p extends Un{constructor(){const r=new Br("border-all"),e=new yp;e.change=n=>{this.change(n),this.hide()},super(r,"auto",!1,"bottom-left",e.el)}}class Ep extends jn{constructor(){super("border")}dropdown(){return new _p}}class ho extends Lf{element(){return super.element().child(new Br(this.tag)).on("click",()=>this.change(this.tag))}setState(r){this.el.disabled(r)}}class Tp extends ho{constructor(){super("clearformat")}}class Sp extends ti{constructor(){super("paintformat")}setState(){}}class kp extends jn{constructor(r){super("color",void 0,r)}dropdown(){const{tag:r,value:e}=this;return new jf(r,e)}}class Cp extends jn{constructor(r){super("bgcolor",void 0,r)}dropdown(){const{tag:r,value:e}=this;return new jf(r,e)}}class Ap extends Un{constructor(){const r=mf.map(e=>He("div",`${Je}-item`).on("click",()=>{this.setTitle(`${e.pt}`),this.change(e)}).child(`${e.pt}`));super("10","60px",!0,"bottom-left",...r)}}let Fp=class extends jn{constructor(){super("font-size")}getValue(r){return r.pt}dropdown(){return new Ap}};class Rp extends Un{constructor(){const r=Ul.map(e=>He("div",`${Je}-item`).on("click",()=>{this.setTitle(e.title),this.change(e)}).child(e.title));super(Ul[0].title,"160px",!0,"bottom-left",...r)}}class Mp extends jn{constructor(){super("font-name")}getValue(r){return r.key}dropdown(){return new Rp}}class Op extends Un{constructor(){let r=Es.slice(0);r.splice(2,0,{key:"divider"}),r.splice(8,0,{key:"divider"}),r=r.map(e=>{const n=He("div",`${Je}-item`);return e.key==="divider"?n.addClass("divider"):(n.child(e.title()).on("click",()=>{this.setTitle(e.title()),this.change(e)}),e.label&&n.child(He("div","label").html(e.label))),n}),super("Normal","220px",!0,"bottom-left",...r)}setTitle(r){for(let e=0;e<Es.length;e+=1)Es[e].key===r&&this.title.html(Es[e].title());this.hide()}}let Ip=class extends jn{constructor(){super("format")}getValue(r){return r.key}dropdown(){return new Op}};class Dp extends Un{constructor(){const r=Bf.map(e=>He("div",`${Je}-item`).on("click",()=>{this.hide(),this.change(e)}).child(e.key));super(new Br("formula"),"180px",!0,"bottom-left",...r)}}class Np extends jn{constructor(){super("formula")}getValue(r){return r.key}dropdown(){return new Dp}}class Pp extends ti{constructor(){super("freeze")}}class Bp extends ti{constructor(){super("merge")}setState(r,e){this.el.active(r).disabled(e)}}class Lp extends ho{constructor(){super("redo","Ctrl+Y")}}class jp extends ho{constructor(){super("undo","Ctrl+Z")}}class Up extends ho{constructor(){super("print","Ctrl+P")}}class Hp extends ti{constructor(){super("textwrap")}}let zp=class extends Un{constructor(){const r=new Br("ellipsis"),e=He("div",`${Je}-toolbar-more`);super(r,"auto",!1,"bottom-right",e),this.moreBtns=e,this.contentEl.css("max-width","420px")}};class $p extends jn{constructor(){super("more"),this.el.hide()}dropdown(){return new zp}show(){this.el.show()}hide(){this.el.hide()}}function rs(){return He("div",`${Je}-toolbar-divider`)}function Wp(){this.btns2=[],this.items.forEach(t=>{if(Array.isArray(t))t.forEach(({el:r})=>{const e=r.box(),{marginLeft:n,marginRight:i}=r.computedStyle();this.btns2.push([r,e.width+parseInt(n,10)+parseInt(i,10)])});else{const r=t.box(),{marginLeft:e,marginRight:n}=t.computedStyle();this.btns2.push([t,r.width+parseInt(e,10)+parseInt(n,10)])}})}function Xl(){const{el:t,btns:r,moreEl:e,btns2:n}=this,{moreBtns:i,contentEl:s}=e.dd;t.css("width",`${this.widthFn()-60}px`);const o=t.box();let h=160,c=12;const a=[],f=[];n.forEach(([l,u],p)=>{h+=u,p===n.length-1||h<o.width?a.push(l):(c+=u,f.push(l))}),r.html("").children(...a),i.html("").children(...f),s.css("width",`${c}px`),f.length>0?e.show():e.hide()}class Xp{constructor(r,e,n=!1){this.data=r,this.change=()=>{},this.widthFn=e,this.isHide=n;const i=r.defaultStyle();this.items=[[this.undoEl=new jp,this.redoEl=new Lp,new Up,this.paintformatEl=new Sp,this.clearformatEl=new Tp],rs(),[this.formatEl=new Ip],rs(),[this.fontEl=new Mp,this.fontSizeEl=new Fp],rs(),[this.boldEl=new hp,this.italicEl=new up,this.underlineEl=new pp,this.strikeEl=new dp,this.textColorEl=new kp(i.color)],rs(),[this.fillColorEl=new Cp(i.bgcolor),this.borderEl=new Ep,this.mergeEl=new Bp],rs(),[this.alignEl=new fp(i.align),this.valignEl=new lp(i.valign),this.textwrapEl=new Hp],rs(),[this.freezeEl=new Pp,this.autofilterEl=new cp,this.formulaEl=new Np,this.moreEl=new $p]],this.el=He("div",`${Je}-toolbar`),this.btns=He("div",`${Je}-toolbar-btns`),this.items.forEach(s=>{Array.isArray(s)?s.forEach(o=>{this.btns.child(o.el),o.change=(...h)=>{this.change(...h)}}):this.btns.child(s.el)}),this.el.child(this.btns),n?this.el.hide():(this.reset(),setTimeout(()=>{Wp.call(this),Xl.call(this)},0),Zr(window,"resize",()=>{Xl.call(this)}))}paintformatActive(){return this.paintformatEl.active()}paintformatToggle(){this.paintformatEl.toggle()}trigger(r){this[`${r}El`].click()}resetData(r){this.data=r,this.reset()}reset(){if(this.isHide)return;const{data:r}=this,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());const{font:n,format:i}=e;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())}}class Vp{constructor(r,e,n="600px"){this.title=r,this.el=He("div",`${Je}-modal`).css("width",n).children(He("div",`${Je}-modal-header`).children(new Br("close").on("click.stop",()=>this.hide()),this.title),He("div",`${Je}-modal-content`).children(...e)).hide()}show(){this.dimmer=He("div",`${Je}-dimmer active`),document.body.appendChild(this.dimmer.el);const{width:r,height:e}=this.el.show().box(),{clientHeight:n,clientWidth:i}=document.documentElement;this.el.offset({left:(i-r)/2,top:(n-e)/3}),window.xkeydownEsc=s=>{s.keyCode===27&&this.hide()},Zr(window,"keydown",window.xkeydownEsc)}hide(){this.el.hide(),document.body.removeChild(this.dimmer.el),Ga(window,"keydown",window.xkeydownEsc),delete window.xkeydownEsc}}class as{constructor(r,e){this.vchange=()=>{},this.el=He("div",`${Je}-form-input`),this.input=He("input","").css("width",r).on("input",n=>this.vchange(n)).attr("placeholder",e),this.el.child(this.input)}focus(){setTimeout(()=>{this.input.el.focus()},10)}hint(r){this.input.attr("placeholder",r)}val(r){return this.input.val(r)}}class Uo{constructor(r,e,n,i=o=>o,s=()=>{}){this.key=r,this.getTitle=i,this.vchange=()=>{},this.el=He("div",`${Je}-form-select`),this.suggest=new _h(e.map(o=>({key:o,title:this.getTitle(o)})),o=>{this.itemClick(o.key),s(o.key),this.vchange(o.key)},n,this.el),this.el.children(this.itemEl=He("div","input-text").html(this.getTitle(r)),this.suggest.el).on("click",()=>this.show())}show(){this.suggest.search("")}itemClick(r){this.key=r,this.itemEl.html(this.getTitle(r))}val(r){return r!==void 0?(this.key=r,this.itemEl.html(this.getTitle(r)),this):this.key}}const Gp={number:/(^\d+$)|(^\d+(\.\d{0,4})?$)/,date:/^\d{4}-\d{1,2}-\d{1,2}$/};class oi{constructor(r,e,n,i){this.label="",this.rule=e,n&&(this.label=He("label","label").css("width",`${i}px`).html(n)),this.tip=He("div","tip").child("tip").hide(),this.input=r,this.input.vchange=()=>this.validate(),this.el=He("div",`${Je}-form-field`).children(this.label,r.el,this.tip)}isShow(){return this.el.css("display")!=="none"}show(){this.el.show()}hide(){return this.el.hide(),this}val(r){return this.input.val(r)}hint(r){this.input.hint(r)}validate(){const{input:r,rule:e,tip:n,el:i}=this,s=r.val();return e.required&&/^\s*$/.test(s)?(n.html(ur("validation.required")),i.addClass("error"),!1):(e.type||e.pattern)&&!(e.pattern||Gp[e.type]).test(s)?(n.html(ur("validation.notMatch")),i.addClass("error"),!1):(i.removeClass("error"),!0)}}const Vl=100;class Kp extends Vp{constructor(){const r=new oi(new Uo("cell",["cell"],"100%",a=>ur(`dataValidation.modeType.${a}`)),{required:!0},`${ur("dataValidation.range")}:`,Vl),e=new oi(new as("120px","E3 or E3:F12"),{required:!0,pattern:/^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/}),n=new oi(new Uo("list",["list","number","date","phone","email"],"100%",a=>ur(`dataValidation.type.${a}`),a=>this.criteriaSelected(a)),{required:!0},`${ur("dataValidation.criteria")}:`,Vl),i=new oi(new Uo("be",["be","nbe","eq","neq","lt","lte","gt","gte"],"160px",a=>ur(`dataValidation.operator.${a}`),a=>this.criteriaOperatorSelected(a)),{required:!0}).hide(),s=new oi(new as("70px","10"),{required:!0}).hide(),o=new oi(new as("70px","100"),{required:!0,type:"number"}).hide(),h=new oi(new as("120px","a,b,c"),{required:!0}),c=new oi(new as("70px","10"),{required:!0,type:"number"}).hide();super(ur("contextmenu.validation"),[He("div",`${Je}-form-fields`).children(r.el,e.el),He("div",`${Je}-form-fields`).children(n.el,i.el,s.el,o.el,c.el,h.el),He("div",`${Je}-buttons`).children(new Mi("cancel").on("click",()=>this.btnClick("cancel")),new Mi("remove").on("click",()=>this.btnClick("remove")),new Mi("save","primary").on("click",()=>this.btnClick("save")))]),this.mf=r,this.rf=e,this.cf=n,this.of=i,this.minvf=s,this.maxvf=o,this.vf=c,this.svf=h,this.change=()=>{}}showVf(r){const e=r==="date"?"2018-11-12":"10",{vf:n}=this;n.input.hint(e),n.show()}criteriaSelected(r){const{of:e,minvf:n,maxvf:i,vf:s,svf:o}=this;r==="date"||r==="number"?(e.show(),n.rule.type=r,i.rule.type=r,r==="date"?(n.hint("2018-11-12"),i.hint("2019-11-12")):(n.hint("10"),i.hint("100")),n.show(),i.show(),s.hide(),o.hide()):(r==="list"?o.show():o.hide(),s.hide(),e.hide(),n.hide(),i.hide())}criteriaOperatorSelected(r){if(!r)return;const{minvf:e,maxvf:n,vf:i}=this;if(r==="be"||r==="nbe")e.show(),n.show(),i.hide();else{const s=this.cf.val();i.rule.type=s,s==="date"?i.hint("2018-11-12"):i.hint("10"),i.show(),e.hide(),n.hide()}}btnClick(r){if(r==="cancel")this.hide();else if(r==="remove")this.change("remove"),this.hide();else if(r==="save"){const e=["mf","rf","cf","of","svf","vf","minvf","maxvf"];for(let c=0;c<e.length;c+=1){const a=this[e[c]];if(a.isShow()&&!a.validate())return}const n=this.mf.val(),i=this.rf.val(),s=this.cf.val(),o=this.of.val();let h=this.svf.val();(s==="number"||s==="date")&&(o==="be"||o==="nbe"?h=[this.minvf.val(),this.maxvf.val()]:h=this.vf.val()),this.change("save",n,i,{type:s,operator:o,required:!1,value:h}),this.hide()}}setValue(r){if(r){const{mf:e,rf:n,cf:i,of:s,svf:o,vf:h,minvf:c,maxvf:a}=this,{mode:f,ref:l,validator:u}=r,{type:p,operator:m,value:d}=u||{type:"list"};e.val(f||"cell"),n.val(l),i.val(p),s.val(m),Array.isArray(d)?(c.val(d[0]),a.val(d[1])):(o.val(d||""),h.val(d||"")),this.criteriaSelected(p),this.criteriaOperatorSelected(m)}this.show()}}function Rh(t){return He("div",`${Je}-item ${t}`)}function Gl(t){return Rh("state").child(ur(`sort.${t}`)).on("click.stop",()=>this.itemClick(t))}function Yp(t){const{filterbEl:r,filterValues:e}=this;r.html(""),Object.keys(t).forEach((i,s)=>{const o=t[i],h=e.includes(i)?"checked":"";r.child(He("div",`${Je}-item state ${h}`).on("click.stop",()=>this.filterClick(s,i)).children(i===""?ur("filter.empty"):i,He("div","label").html(`(${o})`)))})}function Kl(){const{filterhEl:t,filterValues:r,values:e}=this;t.html(`${r.length} / ${e.length}`),t.checked(r.length===e.length)}class Zp{constructor(){this.filterbEl=He("div",`${Je}-body`),this.filterhEl=He("div",`${Je}-header state`).on("click.stop",()=>this.filterClick(0,"all")),this.el=He("div",`${Je}-sort-filter`).children(this.sortAscEl=Gl.call(this,"asc"),this.sortDescEl=Gl.call(this,"desc"),Rh("divider"),He("div",`${Je}-filter`).children(this.filterhEl,this.filterbEl),He("div",`${Je}-buttons`).children(new Mi("cancel").on("click",()=>this.btnClick("cancel")),new Mi("ok","primary").on("click",()=>this.btnClick("ok")))).hide(),this.ci=null,this.sortDesc=null,this.values=null,this.filterValues=[]}btnClick(r){if(r==="ok"){const{ci:e,sort:n,filterValues:i}=this;this.ok&&this.ok(e,n,"in",i)}this.hide()}itemClick(r){this.sort=r;const{sortAscEl:e,sortDescEl:n}=this;e.checked(r==="asc"),n.checked(r==="desc")}filterClick(r,e){const{filterbEl:n,filterValues:i,values:s}=this,o=n.children();e==="all"?o.length===i.length?(this.filterValues=[],o.forEach(h=>He(h).checked(!1))):(this.filterValues=Array.from(s),o.forEach(h=>He(h).checked(!0))):He(o[r]).toggle("checked")?i.push(e):i.splice(i.findIndex(c=>c===e),1),Kl.call(this)}set(r,e,n,i){this.ci=r;const{sortAscEl:s,sortDescEl:o}=this;i!==null?(this.sort=i.order,s.checked(i.asc()),o.checked(i.desc())):(this.sortDesc=null,s.checked(!1),o.checked(!1)),this.values=Object.keys(e),this.filterValues=n?Array.from(n.value):Object.keys(e),Yp.call(this,e,n),Kl.call(this)}setOffset(r){this.el.offset(r).show();let e=1;Js(this.el,()=>{e<=0&&this.hide(),e-=1})}show(){this.el.show()}hide(){this.el.hide(),ms(this.el)}}function Mh(t,r){const e=He("div",`${Je}-toast`),n=He("div",`${Je}-dimmer active`),i=()=>{document.body.removeChild(e.el),document.body.removeChild(n.el)};e.children(He("div",`${Je}-toast-header`).children(new Br("close").on("click.stop",()=>i()),t),He("div",`${Je}-toast-content`).html(r)),document.body.appendChild(e.el),document.body.appendChild(n.el);const{width:s,height:o}=e.box(),{clientHeight:h,clientWidth:c}=document.documentElement;e.offset({left:(c-s)/2,top:(h-o)/3})}function Ho(t,r){let e;return(...n)=>{const i=this,s=n;e||(e=setTimeout(()=>{e=null,t.apply(i,s)},r))}}function Jp(){const{data:t,verticalScrollbar:r,horizontalScrollbar:e}=this,{l:n,t:i,left:s,top:o,width:h,height:c}=t.getSelectedRect(),a=this.getTableOffset();if(Math.abs(s)+h>a.width)e.move({left:n+h-a.width});else{const f=t.freezeTotalWidth();s<f&&e.move({left:n-1-f})}if(Math.abs(o)+c>a.height)r.move({top:i+c-a.height-1});else{const f=t.freezeTotalHeight();o<f&&r.move({top:i-1-f})}}function Oi(t,r,e,n=!0,i=!1){if(r===-1&&e===-1)return;const{table:s,selector:o,toolbar:h,data:c,contextMenu:a}=this;a.setMode(r===-1||e===-1?"row-col":"range");const f=c.getCell(r,e);t?(o.setEnd(r,e,i),this.trigger("cells-selected",f,o.range)):(o.set(r,e,n),this.trigger("cell-selected",f,r,e)),h.reset(),s.render()}function In(t,r){const{selector:e,data:n}=this,{rows:i,cols:s}=n;let[o,h]=e.indexes;const{eri:c,eci:a}=e.range;t&&([o,h]=e.moveIndexes),r==="left"?h>0&&(h-=1):r==="right"?(a!==h&&(h=a),h<s.len-1&&(h+=1)):r==="up"?o>0&&(o-=1):r==="down"?(c!==o&&(o=c),o<i.len-1&&(o+=1)):r==="row-first"?h=0:r==="row-last"?h=s.len-1:r==="col-first"?o=0:r==="col-last"&&(o=i.len-1),t&&(e.moveIndexes=[o,h]),Oi.call(this,t,o,h),Jp.call(this)}function Qp(t){if(t.buttons!==0||t.target.className===`${Je}-resizer-hover`)return;const{offsetX:r,offsetY:e}=t,{rowResizer:n,colResizer:i,tableEl:s,data:o}=this,{rows:h,cols:c}=o;if(r>c.indexWidth&&e>h.height){n.hide(),i.hide();return}const a=s.box(),f=o.getCellRectByXY(t.offsetX,t.offsetY);f.ri>=0&&f.ci===-1?(f.width=c.indexWidth,n.show(f,{width:a.width}),h.isHide(f.ri-1)?n.showUnhide(f.ri):n.hideUnhide()):n.hide(),f.ri===-1&&f.ci>=0?(f.height=h.height,i.show(f,{height:a.height}),c.isHide(f.ci-1)?i.showUnhide(f.ci):i.hideUnhide()):i.hide()}function qp(t){const{verticalScrollbar:r,horizontalScrollbar:e,data:n}=this,{top:i}=r.scroll(),{left:s}=e.scroll(),{rows:o,cols:h}=n,{deltaY:c,deltaX:a}=t,f=(v,x)=>{let g=v,b=0;do b=x(g),g+=1;while(b<=0);return b},l=v=>{if(v>0){const x=n.scroll.ri+1;if(x<o.len){const g=f(x,b=>o.getHeight(b));r.move({top:i+g-1})}}else{const x=n.scroll.ri-1;if(x>=0){const g=f(x,b=>o.getHeight(b));r.move({top:x===0?0:i-g})}}},u=v=>{if(v>0){const x=n.scroll.ci+1;if(x<h.len){const g=f(x,b=>h.getWidth(b));e.move({left:s+g-1})}}else{const x=n.scroll.ci-1;if(x>=0){const g=f(x,b=>h.getWidth(b));e.move({left:x===0?0:s-g})}}},p=Math.abs(c),m=Math.abs(a),d=Math.max(p,m);/Firefox/i.test(window.navigator.userAgent)&&Ho(l(t.detail),50),d===m&&Ho(u(a),50),d===p&&Ho(l(c),50)}function e1(t,r){const{verticalScrollbar:e,horizontalScrollbar:n}=this,{top:i}=e.scroll(),{left:s}=n.scroll();t==="left"||t==="right"?n.move({left:s-r}):(t==="up"||t==="down")&&e.move({top:i-r})}function Uf(){const{data:t,verticalScrollbar:r}=this,{height:e}=this.getTableOffset(),n=t.exceptRowTotalHeight(0,-1);r.set(e,t.rows.totalHeight()-n)}function Hf(){const{data:t,horizontalScrollbar:r}=this,{width:e}=this.getTableOffset();t&&r.set(e,t.cols.totalWidth())}function t1(){const{selector:t,data:r,editor:e}=this,[n,i]=r.freeze;if(n>0||i>0){const s=r.freezeTotalWidth(),o=r.freezeTotalHeight();e.setFreezeLengths(s,o)}t.resetAreaOffset()}function Yr(){const{tableEl:t,overlayerEl:r,overlayerCEl:e,table:n,toolbar:i,selector:s,el:o}=this,h=this.getTableOffset(),c=this.getRect();t.attr(c),r.offset(c),e.offset(h),o.css("width",`${c.width}px`),Uf.call(this),Hf.call(this),t1.call(this),n.render(),i.reset(),s.reset()}function Qs(){const{data:t,selector:r}=this;t.clearClipboard(),r.hideClipboard()}function vf(){const{data:t,selector:r}=this;t.copy(),t.copyToSystemClipboard(),r.showClipboard()}function Yl(){const{data:t,selector:r}=this;t.cut(),r.showClipboard()}function Ts(t,r){const{data:e}=this;if(e.settings.mode!=="read"){if(e.paste(t,n=>Mh("Tip",n)))Yr.call(this);else if(r){const n=r.clipboardData.getData("text/plain");this.data.pasteFromText(n),Yr.call(this)}}}function r1(){this.data.hideRowsOrCols(),Yr.call(this)}function Zl(t,r){this.data.unhideRowsOrCols(t,r),Yr.call(this)}function n1(){const{data:t}=this;t.autofilter(),Yr.call(this)}function i1(){const{toolbar:t}=this;t.paintformatActive()&&(Ts.call(this,"format"),Qs.call(this),t.paintformatToggle())}function Jl(t){const{selector:r,data:e,table:n,sortFilter:i}=this,{offsetX:s,offsetY:o}=t,h=t.target.className===`${Je}-selector-corner`,c=e.getCellRectByXY(s,o),{left:a,top:f,width:l,height:u}=c;let{ri:p,ci:m}=c;const{autoFilter:d}=e;if(d.includes(p,m)&&a+l-20<s&&f+u-20<o){const v=d.items(m,(x,g)=>e.rows.getCell(x,g));i.hide(),i.set(m,v,d.getFilter(m),d.getSort(m)),i.setOffset({left:a,top:f+u+2});return}t.shiftKey||(h?r.showAutofill(p,m):Oi.call(this,!1,p,m),vh(window,v=>{({ri:p,ci:m}=e.getCellRectByXY(v.offsetX,v.offsetY)),h?r.showAutofill(p,m):v.buttons===1&&!v.shiftKey&&Oi.call(this,!0,p,m,!0,!0)},()=>{h&&r.arange&&e.settings.mode!=="read"&&e.autofill(r.arange,"all",v=>Mh("Tip",v))&&n.render(),r.hideAutofill(),i1.call(this)})),!h&&t.buttons===1&&t.shiftKey&&Oi.call(this,!0,p,m)}function qs(){const{editor:t,data:r}=this,e=r.getSelectedRect(),n=this.getTableOffset();let i="top";e.top>n.height/2&&(i="bottom"),t.setOffset(e,i)}function Ss(){const{editor:t,data:r}=this;r.settings.mode!=="read"&&(qs.call(this),t.setCell(r.getSelectedCell(),r.getSelectedValidator()),Qs.call(this))}function s1(t){const{data:r,table:e,selector:n}=this;r.scrolly(t,()=>{n.resetBRLAreaOffset(),qs.call(this),e.render()})}function a1(t){const{data:r,table:e,selector:n}=this;r.scrollx(t,()=>{n.resetBRTAreaOffset(),qs.call(this),e.render()})}function o1(t,r){const{ri:e}=t,{table:n,selector:i,data:s}=this;s.rows.setHeight(e,r),n.render(),i.resetAreaOffset(),Uf.call(this),qs.call(this)}function f1(t,r){const{ci:e}=t,{table:n,selector:i,data:s}=this;s.cols.setWidth(e,r),n.render(),i.resetAreaOffset(),Hf.call(this),qs.call(this)}function zo(t,r="finished"){const{data:e,table:n}=this;if(e.settings.mode==="read")return;e.setSelectedCellText(t,r);const{ri:i,ci:s}=e.selector;r==="finished"?n.render():this.trigger("cell-edited",t,i,s)}function za(t){const{data:r}=this;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),Qs.call(this),Yr.call(this))}function l1(t,r){const{data:e}=this;if(t==="undo")this.undo();else if(t==="redo")this.redo();else if(t==="print")this.print.preview();else if(t==="paintformat")r===!0?vf.call(this):Qs.call(this);else if(t==="clearformat")za.call(this,"delete-cell-format");else if(t!=="link"){if(t!=="chart")if(t==="autofilter")n1.call(this);else if(t==="freeze")if(r){const{ri:n,ci:i}=e.selector;this.freeze(n,i)}else this.freeze(0,0);else e.setSelectedCellAttr(t,r),t==="formula"&&!e.selector.multiple()&&Ss.call(this),Yr.call(this)}}function c1(t,r,e,n){this.data.setAutoFilter(t,r,e,n),Yr.call(this)}function h1(){const{selector:t,overlayerEl:r,rowResizer:e,colResizer:n,verticalScrollbar:i,horizontalScrollbar:s,editor:o,contextMenu:h,toolbar:c,modalValidation:a,sortFilter:f}=this;r.on("mousemove",l=>{Qp.call(this,l)}).on("mousedown",l=>{o.clear(),h.hide(),l.buttons===2?(this.data.xyInSelectedRect(l.offsetX,l.offsetY)||Jl.call(this,l),h.setPosition(l.offsetX,l.offsetY),l.stopPropagation()):l.detail===2?Ss.call(this):Jl.call(this,l)}).on("mousewheel.stop",l=>{qp.call(this,l)}).on("mouseout",l=>{const{offsetX:u,offsetY:p}=l;p<=0&&n.hide(),u<=0&&e.hide()}),t.inputChange=l=>{zo.call(this,l,"input"),Ss.call(this)},xd(r.el,{move:(l,u)=>{e1.call(this,l,u)}}),c.change=(l,u)=>l1.call(this,l,u),f.ok=(l,u,p,m)=>c1.call(this,l,u,p,m),e.finishedFn=(l,u)=>{o1.call(this,l,u)},n.finishedFn=(l,u)=>{f1.call(this,l,u)},e.unhideFn=l=>{Zl.call(this,"row",l)},n.unhideFn=l=>{Zl.call(this,"col",l)},i.moveFn=(l,u)=>{s1.call(this,l,u)},s.moveFn=(l,u)=>{a1.call(this,l,u)},o.change=(l,u)=>{zo.call(this,u,l)},a.change=(l,...u)=>{l==="save"?this.data.addValidation(...u):this.data.removeValidation()},h.itemClick=l=>{l==="validation"?a.setValue(this.data.getSelectedValidation()):l==="copy"?vf.call(this):l==="cut"?Yl.call(this):l==="paste"?Ts.call(this,"all"):l==="paste-value"?Ts.call(this,"text"):l==="paste-format"?Ts.call(this,"format"):l==="hide"?r1.call(this):za.call(this,l)},Zr(window,"resize",()=>{this.reload()}),Zr(window,"click",l=>{this.focusing=r.contains(l.target)}),Zr(window,"paste",l=>{this.focusing&&(Ts.call(this,"all",l),l.preventDefault())}),Zr(window,"keydown",l=>{if(!this.focusing)return;const u=l.keyCode||l.which,{key:p,ctrlKey:m,shiftKey:d,metaKey:v}=l;if(m||v)switch(u){case 90:this.undo(),l.preventDefault();break;case 89:this.redo(),l.preventDefault();break;case 67:vf.call(this),l.preventDefault();break;case 88:Yl.call(this),l.preventDefault();break;case 85:c.trigger("underline"),l.preventDefault();break;case 86:break;case 37:In.call(this,d,"row-first"),l.preventDefault();break;case 38:In.call(this,d,"col-first"),l.preventDefault();break;case 39:In.call(this,d,"row-last"),l.preventDefault();break;case 40:In.call(this,d,"col-last"),l.preventDefault();break;case 32:Oi.call(this,!1,-1,this.data.selector.ci,!1),l.preventDefault();break;case 66:c.trigger("bold");break;case 73:c.trigger("italic");break}else{switch(u){case 32:d&&Oi.call(this,!1,this.data.selector.ri,-1,!1);break;case 27:h.hide(),Qs.call(this);break;case 37:In.call(this,d,"left"),l.preventDefault();break;case 38:In.call(this,d,"up"),l.preventDefault();break;case 39:In.call(this,d,"right"),l.preventDefault();break;case 40:In.call(this,d,"down"),l.preventDefault();break;case 9:o.clear(),In.call(this,!1,d?"left":"right"),l.preventDefault();break;case 13:o.clear(),In.call(this,!1,d?"up":"down"),l.preventDefault();break;case 8:za.call(this,"delete-cell-text"),l.preventDefault();break}p==="Delete"?(za.call(this,"delete-cell-text"),l.preventDefault()):u>=65&&u<=90||u>=48&&u<=57||u>=96&&u<=105||l.key==="="?(zo.call(this,l.key,"input"),Ss.call(this)):u===113&&Ss.call(this)}})}class u1{constructor(r,e){this.eventMap=bd();const{view:n,showToolbar:i,showContextmenu:s}=e.settings;this.el=He("div",`${Je}-sheet`),this.toolbar=new Xp(e,n.width,!i),this.print=new tp(e),r.children(this.toolbar.el,this.el,this.print.el),this.data=e,this.tableEl=He("canvas",`${Je}-table`),this.rowResizer=new Il(!1,e.rows.height),this.colResizer=new Il(!0,e.cols.minWidth),this.verticalScrollbar=new Dl(!0),this.horizontalScrollbar=new Dl(!1),this.editor=new Bd(Wd,()=>this.getTableOffset(),e.rows.height),this.modalValidation=new Kp,this.contextMenu=new sp(()=>this.getRect(),!s),this.selector=new _d(e),this.overlayerCEl=He("div",`${Je}-overlayer-content`).children(this.editor.el,this.selector.el),this.overlayerEl=He("div",`${Je}-overlayer`).child(this.overlayerCEl),this.sortFilter=new Zp,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 Qd(this.tableEl.el,e),h1.call(this),Yr.call(this),Oi.call(this,!1,0,0)}on(r,e){return this.eventMap.on(r,e),this}trigger(r,...e){const{eventMap:n}=this;n.fire(r,e)}resetData(r){this.editor.clear(),this.data=r,Uf.call(this),Hf.call(this),this.toolbar.resetData(r),this.print.resetData(r),this.selector.resetData(r),this.table.resetData(r)}loadData(r){return this.data.setData(r),Yr.call(this),this}freeze(r,e){const{data:n}=this;return n.setFreeze(r,e),Yr.call(this),this}undo(){this.data.undo(),Yr.call(this)}redo(){this.data.redo(),Yr.call(this)}reload(){return Yr.call(this),this}getRect(){const{data:r}=this;return{width:r.viewWidth(),height:r.viewHeight()}}getTableOffset(){const{rows:r,cols:e}=this.data,{width:n,height:i}=this.getRect();return{width:n-e.indexWidth,height:i-r.height,left:e.indexWidth,top:r.height}}}class d1 extends Un{constructor(r){const e=new Br("ellipsis");super(e,"auto",!1,"top-left"),this.contentClick=r}reset(r){const e=r.map((n,i)=>He("div",`${Je}-item`).css("width","150px").css("font-weight","normal").on("click",()=>{this.contentClick(i),this.hide()}).child(n));this.setContentChildren(...e)}setTitle(){}}const p1=[{key:"delete",title:Dt("contextmenu.deleteSheet")}];function m1(t){return He("div",`${Je}-item`).child(t.title()).on("click",()=>{this.itemClick(t.key),this.hide()})}function g1(){return p1.map(t=>m1.call(this,t))}class v1{constructor(){this.el=He("div",`${Je}-contextmenu`).css("width","160px").children(...g1.call(this)).hide(),this.itemClick=()=>{}}hide(){const{el:r}=this;r.hide(),ms(r)}setOffset(r){const{el:e}=this;e.offset(r),e.show(),Js(e)}}class x1{constructor(r=()=>{},e=()=>{},n=()=>{},i=()=>{}){this.swapFunc=e,this.updateFunc=i,this.dataNames=[],this.activeEl=null,this.deleteEl=null,this.items=[],this.moreEl=new d1(s=>{this.clickSwap2(this.items[s])}),this.contextMenu=new v1,this.contextMenu.itemClick=n,this.el=He("div",`${Je}-bottombar`).children(this.contextMenu.el,this.menuEl=He("ul",`${Je}-menu`).child(He("li","").children(new Br("add").on("click",()=>{r()}),He("span","").child(this.moreEl))))}addItem(r,e){this.dataNames.push(r);const n=He("li",e?"active":"").child(r);n.on("click",()=>{this.clickSwap2(n)}).on("contextmenu",i=>{const{offsetLeft:s,offsetHeight:o}=i.target;this.contextMenu.setOffset({left:s,bottom:o+1}),this.deleteEl=n}).on("dblclick",()=>{const i=n.html(),s=new as("auto","");s.val(i),s.input.on("blur",({target:o})=>{const{value:h}=o,c=this.dataNames.findIndex(a=>a===i);this.renameItem(c,h)}),n.html("").child(s.el),s.focus()}),e&&this.clickSwap(n),this.items.push(n),this.menuEl.child(n),this.moreEl.reset(this.dataNames)}renameItem(r,e){this.dataNames.splice(r,1,e),this.moreEl.reset(this.dataNames),this.items[r].html("").child(e),this.updateFunc(r,e)}clear(){this.items.forEach(r=>{this.menuEl.removeChild(r.el)}),this.items=[],this.dataNames=[],this.moreEl.reset(this.dataNames)}deleteItem(){const{activeEl:r,deleteEl:e}=this;if(this.items.length>1){const n=this.items.findIndex(i=>i===e);if(this.items.splice(n,1),this.dataNames.splice(n,1),this.menuEl.removeChild(e.el),this.moreEl.reset(this.dataNames),r===e){const[i]=this.items;return this.activeEl=i,this.activeEl.toggle(),[n,0]}return[n,-1]}return[-1]}clickSwap2(r){const e=this.items.findIndex(n=>n===r);this.clickSwap(r),this.activeEl.toggle(),this.swapFunc(e)}clickSwap(r){this.activeEl!==null&&this.activeEl.toggle(),this.activeEl=r}}class b1{constructor(r,e={}){let n=r;this.options={showBottomBar:!0,...e},this.sheetIndex=1,this.datas=[],typeof r=="string"&&(n=document.querySelector(r)),this.bottombar=this.options.showBottomBar?new x1(()=>{const s=this.addSheet();this.sheet.resetData(s)},s=>{const o=this.datas[s];this.sheet.resetData(o)},()=>{this.deleteSheet()},(s,o)=>{this.datas[s].name=o}):null,this.data=this.addSheet();const i=He("div",`${Je}`).on("contextmenu",s=>s.preventDefault());n.appendChild(i.el),this.sheet=new u1(i,this.data),this.bottombar!==null&&i.child(this.bottombar.el)}addSheet(r,e=!0){const n=r||`sheet${this.sheetIndex}`,i=new vd(n,this.options);return i.change=(...s)=>{this.sheet.trigger("change",...s)},this.datas.push(i),this.bottombar!==null&&this.bottombar.addItem(n,e),this.sheetIndex+=1,i}deleteSheet(){if(this.bottombar===null)return;const[r,e]=this.bottombar.deleteItem();r>=0&&(this.datas.splice(r,1),e>=0&&this.sheet.resetData(this.datas[e]))}loadData(r){const e=Array.isArray(r)?r:[r];if(this.bottombar!==null&&this.bottombar.clear(),this.datas=[],e.length>0)for(let n=0;n<e.length;n+=1){const i=e[n],s=this.addSheet(i.name,n===0);s.setData(i),n===0&&this.sheet.resetData(s)}return this}getData(){return this.datas.map(r=>r.getData())}cellText(r,e,n,i=0){return this.datas[i].setCellText(r,e,n,"finished"),this}cell(r,e,n=0){return this.datas[n].getCell(r,e)}cellStyle(r,e,n=0){return this.datas[n].getCellStyle(r,e)}reRender(){return this.sheet.table.render(),this}on(r,e){return this.sheet.on(r,e),this}validate(){const{validations:r}=this.data;return r.errors.size<=0}change(r){return this.sheet.on("change",r),this}static locale(r,e){mh(r,e)}}const w1=(t,r={})=>new b1(t,r);window&&(window.x_spreadsheet=w1,window.x_spreadsheet.locale=(t,r)=>mh(t,r));var Oh={exports:{}};(function(t,r){(function(e){t.exports=e()})(function(){return function(){function e(n,i,s){function o(a,f){if(!i[a]){if(!n[a]){var l=typeof Ea=="function"&&Ea;if(!f&&l)return l(a,!0);if(h)return h(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var p=i[a]={exports:{}};n[a][0].call(p.exports,function(m){var d=n[a][1][m];return o(d||m)},p,p.exports,e,n,i,s)}return i[a].exports}for(var h=typeof Ea=="function"&&Ea,c=0;c<s.length;c++)o(s[c]);return o}return e}()({1:[function(e,n,i){const s=e("fs"),o=e("fast-csv"),h=e("dayjs/plugin/customParseFormat"),c=e("dayjs/plugin/utc"),a=e("dayjs").extend(h).extend(c),f=e("../utils/stream-buf"),{fs:{exists:l}}=e("../utils/utils"),u={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!"}};class p{constructor(d){this.workbook=d,this.worksheet=null}async readFile(d,v){if(v=v||{},!await l(d))throw new Error(`File not found: ${d}`);const x=s.createReadStream(d),g=await this.read(x,v);return x.close(),g}read(d,v){return v=v||{},new Promise((x,g)=>{const b=this.workbook.addWorksheet(v.sheetName),w=v.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],y=v.map||function(C){if(C==="")return null;const M=Number(C);if(!Number.isNaN(M)&&M!==1/0)return M;const I=w.reduce((U,j)=>{if(U)return U;const H=a(C,j,!0);return H.isValid()?H:null},null);if(I)return new Date(I.valueOf());const B=u[C];return B!==void 0?B:C},T=o.parse(v.parserOptions).on("data",C=>{b.addRow(C.map(y))}).on("end",()=>{T.emit("worksheet",b)});T.on("worksheet",x).on("error",g),d.pipe(T)})}createInputStream(){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")}write(d,v){return new Promise((x,g)=>{v=v||{};const b=this.workbook.getWorksheet(v.sheetName||v.sheetId),w=o.format(v.formatterOptions);d.on("finish",()=>{x()}),w.on("error",g),w.pipe(d);const{dateFormat:y,dateUTC:T}=v,C=v.map||(B=>{if(B){if(B.text||B.hyperlink)return B.hyperlink||B.text||"";if(B.formula||B.result)return B.result||"";if(B instanceof Date)return y?T?a.utc(B).format(y):a(B).format(y):T?a.utc(B).format():a(B).format();if(B.error)return B.error;if(typeof B=="object")return JSON.stringify(B)}return B}),M=v.includeEmptyRows===void 0||v.includeEmptyRows;let I=1;b&&b.eachRow((B,U)=>{if(M)for(;I++<U-1;)w.write([]);const{values:j}=B;j.shift(),w.write(j.map(C)),I=U}),w.end()})}writeFile(d,v){v=v||{};const x={encoding:v.encoding||"utf8"},g=s.createWriteStream(d,x);return this.write(g,v)}async writeBuffer(d){const v=new f;return await this.write(v,d),v.read()}}n.exports=p},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,n,i){const s=e("../utils/col-cache");class o{constructor(c,a){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=c,!a)this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0;else if(typeof a=="string"){const l=s.decodeAddress(a);this.nativeCol=l.col+f,this.nativeColOff=0,this.nativeRow=l.row+f,this.nativeRowOff=0}else a.nativeCol!==void 0?(this.nativeCol=a.nativeCol||0,this.nativeColOff=a.nativeColOff||0,this.nativeRow=a.nativeRow||0,this.nativeRowOff=a.nativeRowOff||0):a.col!==void 0?(this.col=a.col+f,this.row=a.row+f):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0)}static asInstance(c){return c instanceof o||c==null?c:new o(c)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(c){this.nativeCol=Math.floor(c),this.nativeColOff=Math.floor((c-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(c){this.nativeRow=Math.floor(c),this.nativeRowOff=Math.floor((c-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(this.worksheet.getColumn(this.nativeCol+1).width*1e4):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(this.worksheet.getRow(this.nativeRow+1).height*1e4):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(c){this.nativeCol=c.nativeCol,this.nativeColOff=c.nativeColOff,this.nativeRow=c.nativeRow,this.nativeRowOff=c.nativeRowOff}}n.exports=o},{"../utils/col-cache":19}],3:[function(e,n,i){const s=e("../utils/col-cache"),o=e("../utils/under-dash"),h=e("./enums"),{slideFormula:c}=e("../utils/shared-formula"),a=e("./note");class f{constructor(I,B,U){if(!I||!B)throw new Error("A Cell needs a Row");this._row=I,this._column=B,s.validateAddress(U),this._address=U,this._value=C.create(f.Types.Null,this),this.style=this._mergeStyle(I.style,B.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(I){this.style.numFmt=I}get font(){return this.style.font}set font(I){this.style.font=I}get alignment(){return this.style.alignment}set alignment(I){this.style.alignment=I}get border(){return this.style.border}set border(I){this.style.border=I}get fill(){return this.style.fill}set fill(I){this.style.fill=I}get protection(){return this.style.protection}set protection(I){this.style.protection=I}_mergeStyle(I,B,U){const j=I&&I.numFmt||B&&B.numFmt;j&&(U.numFmt=j);const H=I&&I.font||B&&B.font;H&&(U.font=H);const G=I&&I.alignment||B&&B.alignment;G&&(U.alignment=G);const L=I&&I.border||B&&B.border;L&&(U.border=L);const R=I&&I.fill||B&&B.fill;R&&(U.fill=R);const F=I&&I.protection||B&&B.protection;return F&&(U.protection=F),U}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===f.Types.Merge}merge(I,B){this._value.release(),this._value=C.create(f.Types.Merge,this,I),B||(this.style=I.style)}unmerge(){this.type===f.Types.Merge&&(this._value.release(),this._value=C.create(f.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(I){return this._value.type!==f.Types.Merge?!1:this._value.isMergedTo(I)}get master(){return this.type===f.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===f.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(I){if(this.type===f.Types.Merge){this._value.master.value=I;return}this._value.release(),this._value=C.create(C.getType(I),this,I)}get note(){return this._comment&&this._comment.note}set note(I){this._comment=new a(I)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(I){this.type===f.Types.String&&(this._value=C.create(f.Types.Hyperlink,this,{text:this._value.value,hyperlink:I}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:I}=this._row;return{sheetName:I.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(I){this.names=[I]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(I){const{definedNames:B}=this.workbook;B.removeAllNames(this.fullAddress),I.forEach(U=>{B.addEx(this.fullAddress,U)})}addName(I){this.workbook.definedNames.addEx(this.fullAddress,I)}removeName(I){this.workbook.definedNames.removeEx(this.fullAddress,I)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(I){this._dataValidations.add(this.address,I)}get model(){const{model:I}=this._value;return I.style=this.style,this._comment&&(I.comment=this._comment.model),I}set model(I){if(this._value.release(),this._value=C.create(I.type,this),this._value.model=I,I.comment)switch(I.comment.type){case"note":this._comment=a.fromModel(I.comment);break}I.style?this.style=I.style:this.style={}}}f.Types=h.ValueType;class l{constructor(I){this.model={address:I.address,type:f.Types.Null}}get value(){return null}set value(I){}get type(){return f.Types.Null}get effectiveType(){return f.Types.Null}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return""}release(){}toString(){return""}}class u{constructor(I,B){this.model={address:I.address,type:f.Types.Number,value:B}}get value(){return this.model.value}set value(I){this.model.value=I}get type(){return f.Types.Number}get effectiveType(){return f.Types.Number}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class p{constructor(I,B){this.model={address:I.address,type:f.Types.String,value:B}}get value(){return this.model.value}set value(I){this.model.value=I}get type(){return f.Types.String}get effectiveType(){return f.Types.String}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}class m{constructor(I,B){this.model={address:I.address,type:f.Types.String,value:B}}get value(){return this.model.value}set value(I){this.model.value=I}toString(){return this.model.value.richText.map(I=>I.text).join("")}get type(){return f.Types.RichText}get effectiveType(){return f.Types.RichText}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}class d{constructor(I,B){this.model={address:I.address,type:f.Types.Date,value:B}}get value(){return this.model.value}set value(I){this.model.value=I}get type(){return f.Types.Date}get effectiveType(){return f.Types.Date}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}class v{constructor(I,B){this.model={address:I.address,type:f.Types.Hyperlink,text:B?B.text:void 0,hyperlink:B?B.hyperlink:void 0},B&&B.tooltip&&(this.model.tooltip=B.tooltip)}get value(){const I={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(I.tooltip=this.model.tooltip),I}set value(I){this.model={text:I.text,hyperlink:I.hyperlink},I.tooltip&&(this.model.tooltip=I.tooltip)}get text(){return this.model.text}set text(I){this.model.text=I}get hyperlink(){return this.model.hyperlink}set hyperlink(I){this.model.hyperlink=I}get type(){return f.Types.Hyperlink}get effectiveType(){return f.Types.Hyperlink}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}class x{constructor(I,B){this.model={address:I.address,type:f.Types.Merge,master:B?B.address:void 0},this._master=B,B&&B.addMergeRef()}get value(){return this._master.value}set value(I){I instanceof f?(this._master&&this._master.releaseMergeRef(),I.addMergeRef(),this._master=I):this._master.value=I}isMergedTo(I){return I===this._master}get master(){return this._master}get type(){return f.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}class g{constructor(I,B){this.cell=I,this.model={address:I.address,type:f.Types.Formula,shareType:B?B.shareType:void 0,ref:B?B.ref:void 0,formula:B?B.formula:void 0,sharedFormula:B?B.sharedFormula:void 0,result:B?B.result:void 0}}_copyModel(I){const B={},U=j=>{const H=I[j];H&&(B[j]=H)};return U("formula"),U("result"),U("ref"),U("shareType"),U("sharedFormula"),B}get value(){return this._copyModel(this.model)}set value(I){this.model=this._copyModel(I)}validate(I){switch(C.getType(I)){case f.Types.Null:case f.Types.String:case f.Types.Number:case f.Types.Date:break;case f.Types.Hyperlink:case f.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){const I=this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),B=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);return{ranges:I,cells:B}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(I){this.model.formula=I}get formulaType(){return this.model.formula?h.FormulaType.Master:this.model.sharedFormula?h.FormulaType.Shared:h.FormulaType.None}get result(){return this.model.result}set result(I){this.model.result=I}get type(){return f.Types.Formula}get effectiveType(){const I=this.model.result;return I==null?h.ValueType.Null:I instanceof String||typeof I=="string"?h.ValueType.String:typeof I=="number"?h.ValueType.Number:I instanceof Date?h.ValueType.Date:I.text&&I.hyperlink?h.ValueType.Hyperlink:I.formula?h.ValueType.Formula:h.ValueType.Null}get address(){return this.model.address}set address(I){this.model.address=I}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:I}=this.cell,B=I.findCell(this.model.sharedFormula);this._translatedFormula=B&&c(B.formula,B.address,this.model.address)}return this._translatedFormula}toCsvString(){return`${this.model.result||""}`}release(){}toString(){return this.model.result?this.model.result.toString():""}}class b{constructor(I,B){this.model={address:I.address,type:f.Types.SharedString,value:B}}get value(){return this.model.value}set value(I){this.model.value=I}get type(){return f.Types.SharedString}get effectiveType(){return f.Types.SharedString}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class w{constructor(I,B){this.model={address:I.address,type:f.Types.Boolean,value:B}}get value(){return this.model.value}set value(I){this.model.value=I}get type(){return f.Types.Boolean}get effectiveType(){return f.Types.Boolean}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}class y{constructor(I,B){this.model={address:I.address,type:f.Types.Error,value:B}}get value(){return this.model.value}set value(I){this.model.value=I}get type(){return f.Types.Error}get effectiveType(){return f.Types.Error}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}class T{constructor(I,B){this.model={address:I.address,type:f.Types.String,value:JSON.stringify(B),rawValue:B}}get value(){return this.model.rawValue}set value(I){this.model.rawValue=I,this.model.value=JSON.stringify(I)}get type(){return f.Types.String}get effectiveType(){return f.Types.String}get address(){return this.model.address}set address(I){this.model.address=I}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}const C={getType(M){return M==null?f.Types.Null:M instanceof String||typeof M=="string"?f.Types.String:typeof M=="number"?f.Types.Number:typeof M=="boolean"?f.Types.Boolean:M instanceof Date?f.Types.Date:M.text&&M.hyperlink?f.Types.Hyperlink:M.formula||M.sharedFormula?f.Types.Formula:M.richText?f.Types.RichText:M.sharedString?f.Types.SharedString:M.error?f.Types.Error:f.Types.JSON},types:[{t:f.Types.Null,f:l},{t:f.Types.Number,f:u},{t:f.Types.String,f:p},{t:f.Types.Date,f:d},{t:f.Types.Hyperlink,f:v},{t:f.Types.Formula,f:g},{t:f.Types.Merge,f:x},{t:f.Types.JSON,f:T},{t:f.Types.SharedString,f:b},{t:f.Types.RichText,f:m},{t:f.Types.Boolean,f:w},{t:f.Types.Error,f:y}].reduce((M,I)=>(M[I.t]=I.f,M),[]),create(M,I,B){const U=this.types[M];if(!U)throw new Error(`Could not create Value of type ${M}`);return new U(I,B)}};n.exports=f},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,n,i){const s=e("../utils/under-dash"),o=e("./enums"),h=e("../utils/col-cache"),c=9;class a{constructor(l,u,p){this._worksheet=l,this._number=u,p!==!1&&(this.defn=p)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return h.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==c}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(l){l?(this.key=l.key,this.width=l.width!==void 0?l.width:c,this.outlineLevel=l.outlineLevel,l.style?this.style=l.style:this.style={},this.header=l.header,this._hidden=!!l.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(l){l!==void 0?(this._header=l,this.headers.forEach((u,p)=>{this._worksheet.getCell(p+1,this.number).value=u})):this._header=void 0}get key(){return this._key}set key(l){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=l,l&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(l){this._hidden=l}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(l){this._outlineLevel=l}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(l){return this.width===l.width&&this.hidden===l.hidden&&this.outlineLevel===l.outlineLevel&&s.isEqual(this.style,l.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const l=this.style;return!(l&&(l.font||l.numFmt||l.alignment||l.border||l.fill||l.protection))}get headerCount(){return this.headers.length}eachCell(l,u){const p=this.number;u||(u=l,l=null),this._worksheet.eachRow(l,(m,d)=>{u(m.getCell(p),d)})}get values(){const l=[];return this.eachCell((u,p)=>{u&&u.type!==o.ValueType.Null&&(l[p]=u.value)}),l}set values(l){if(!l)return;const u=this.number;let p=0;l.hasOwnProperty("0")&&(p=1),l.forEach((m,d)=>{this._worksheet.getCell(d+p,u).value=m})}_applyStyle(l,u){return this.style[l]=u,this.eachCell(p=>{p[l]=u}),u}get numFmt(){return this.style.numFmt}set numFmt(l){this._applyStyle("numFmt",l)}get font(){return this.style.font}set font(l){this._applyStyle("font",l)}get alignment(){return this.style.alignment}set alignment(l){this._applyStyle("alignment",l)}get protection(){return this.style.protection}set protection(l){this._applyStyle("protection",l)}get border(){return this.style.border}set border(l){this._applyStyle("border",l)}get fill(){return this.style.fill}set fill(l){this._applyStyle("fill",l)}static toModel(l){const u=[];let p=null;return l&&l.forEach((m,d)=>{m.isDefault?p&&(p=null):!p||!m.equivalentTo(p)?(p={min:d+1,max:d+1,width:m.width!==void 0?m.width:c,style:m.style,isCustomWidth:m.isCustomWidth,hidden:m.hidden,outlineLevel:m.outlineLevel,collapsed:m.collapsed},u.push(p)):p.max=d+1}),u.length?u:void 0}static fromModel(l,u){u=u||[];const p=[];let m=1,d=0;for(u=u.sort(function(v,x){return v.min-x.min});d<u.length;){const v=u[d++];for(;m<v.min;)p.push(new a(l,m++));for(;m<=v.max;)p.push(new a(l,m++,v))}return p.length?p:null}}n.exports=a},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,n,i){class s{constructor(h){this.model=h||{}}add(h,c){return this.model[h]=c}find(h){return this.model[h]}remove(h){this.model[h]=void 0}}n.exports=s},{}],6:[function(e,n,i){const s=e("../utils/under-dash"),o=e("../utils/col-cache"),h=e("../utils/cell-matrix"),c=e("./range"),a=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;class f{constructor(){this.matrixMap={}}getMatrix(u){return this.matrixMap[u]||(this.matrixMap[u]=new h)}add(u,p){const m=o.decodeEx(u);this.addEx(m,p)}addEx(u,p){const m=this.getMatrix(p);if(u.top)for(let d=u.left;d<=u.right;d++)for(let v=u.top;v<=u.bottom;v++){const x={sheetName:u.sheetName,address:o.n2l(d)+v,row:v,col:d};m.addCellEx(x)}else m.addCellEx(u)}remove(u,p){const m=o.decodeEx(u);this.removeEx(m,p)}removeEx(u,p){this.getMatrix(p).removeCellEx(u)}removeAllNames(u){s.each(this.matrixMap,p=>{p.removeCellEx(u)})}forEach(u){s.each(this.matrixMap,(p,m)=>{p.forEach(d=>{u(m,d)})})}getNames(u){return this.getNamesEx(o.decodeEx(u))}getNamesEx(u){return s.map(this.matrixMap,(p,m)=>p.findCellEx(u)&&m).filter(Boolean)}_explore(u,p){p.mark=!1;const{sheetName:m}=p,d=new c(p.row,p.col,p.row,p.col,m);let v,x;function g(w,y){const T=u.findCellAt(m,w,p.col);return!T||!T.mark?!1:(d[y]=w,T.mark=!1,!0)}for(x=p.row-1;g(x,"top");x--);for(x=p.row+1;g(x,"bottom");x++);function b(w,y){const T=[];for(x=d.top;x<=d.bottom;x++){const C=u.findCellAt(m,x,w);if(C&&C.mark)T.push(C);else return!1}d[y]=w;for(let C=0;C<T.length;C++)T[C].mark=!1;return!0}for(v=p.col-1;b(v,"left");v--);for(v=p.col+1;b(v,"right");v++);return d}getRanges(u,p){if(p=p||this.matrixMap[u],!p)return{name:u,ranges:[]};p.forEach(d=>{d.mark=!0});const m=p.map(d=>d.mark&&this._explore(p,d)).filter(Boolean).map(d=>d.$shortRange);return{name:u,ranges:m}}normaliseMatrix(u,p){u.forEachInSheet(p,(m,d,v)=>{m&&(m.row!==d||m.col!==v)&&(m.row=d,m.col=v,m.address=o.n2l(v)+d)})}spliceRows(u,p,m,d){s.each(this.matrixMap,v=>{v.spliceRows(u,p,m,d),this.normaliseMatrix(v,u)})}spliceColumns(u,p,m,d){s.each(this.matrixMap,v=>{v.spliceColumns(u,p,m,d),this.normaliseMatrix(v,u)})}get model(){return s.map(this.matrixMap,(u,p)=>this.getRanges(p,u)).filter(u=>u.ranges.length)}set model(u){const p=this.matrixMap={};u.forEach(m=>{const d=p[m.name]=new h;m.ranges.forEach(v=>{a.test(v.split("!").pop()||"")&&d.addCell(v)})})}}n.exports=f},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,n,i){n.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,n,i){const s=e("../utils/col-cache"),o=e("./anchor");class h{constructor(a,f){this.worksheet=a,this.model=f}get model(){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 model(a){let{type:f,imageId:l,range:u,hyperlinks:p}=a;if(this.type=f,this.imageId=l,f==="image")if(typeof u=="string"){const m=s.decode(u);this.range={tl:new o(this.worksheet,{col:m.left,row:m.top},-1),br:new o(this.worksheet,{col:m.right,row:m.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,u.tl,0),br:u.br&&new o(this.worksheet,u.br,0),ext:u.ext,editAs:u.editAs,hyperlinks:p||u.hyperlinks}}}n.exports=h},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,n,i){const s=e("../utils/under-dash");class o{constructor(c){this.note=c}get model(){let c=null;switch(typeof this.note){case"string":c={type:"note",note:{texts:[{text:this.note}]}};break;default:c={type:"note",note:this.note};break}return s.deepMerge({},o.DEFAULT_CONFIGS,c)}set model(c){const{note:a}=c,{texts:f}=a;f.length===1&&Object.keys(f[0]).length===1?this.note=f[0].text:this.note=a}static fromModel(c){const a=new o;return a.model=c,a}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},n.exports=o},{"../utils/under-dash":26}],10:[function(e,n,i){const s=e("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(c,a,f,l,u){if(arguments.length<4){const p=s.decodeAddress(c),m=s.decodeAddress(a);this.model={top:Math.min(p.row,m.row),left:Math.min(p.col,m.col),bottom:Math.max(p.row,m.row),right:Math.max(p.col,m.col),sheetName:f},this.setTLBR(p.row,p.col,m.row,m.col,u)}else this.model={top:Math.min(c,f),left:Math.min(a,l),bottom:Math.max(c,f),right:Math.max(a,l),sheetName:u}}decode(c){switch(c.length){case 5:this.setTLBR(c[0],c[1],c[2],c[3],c[4]);break;case 4:this.setTLBR(c[0],c[1],c[2],c[3]);break;case 3:this.setTLBR(c[0],c[1],c[2]);break;case 2:this.setTLBR(c[0],c[1]);break;case 1:{const a=c[0];if(a instanceof o)this.model={top:a.model.top,left:a.model.left,bottom:a.model.bottom,right:a.model.right,sheetName:a.sheetName};else if(a instanceof Array)this.decode(a);else if(a.top&&a.left&&a.bottom&&a.right)this.model={top:a.top,left:a.left,bottom:a.bottom,right:a.right,sheetName:a.sheetName};else{const f=s.decodeEx(a);f.top?this.model={top:f.top,left:f.left,bottom:f.bottom,right:f.right,sheetName:f.sheetName}:this.model={top:f.row,left:f.col,bottom:f.row,right:f.col,sheetName:f.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() - ${c.length}`)}}get top(){return this.model.top||1}set top(c){this.model.top=c}get left(){return this.model.left||1}set left(c){this.model.left=c}get bottom(){return this.model.bottom||1}set bottom(c){this.model.bottom=c}get right(){return this.model.right||1}set right(c){this.model.right=c}get sheetName(){return this.model.sheetName}set sheetName(c){this.model.sheetName=c}get _serialisedSheetName(){const{sheetName:c}=this.model;return c?/^[a-zA-Z0-9]*$/.test(c)?`${c}!`:`'${c}'!`:""}expand(c,a,f,l){(!this.model.top||c<this.top)&&(this.top=c),(!this.model.left||a<this.left)&&(this.left=a),(!this.model.bottom||f>this.bottom)&&(this.bottom=f),(!this.model.right||l>this.right)&&(this.right=l)}expandRow(c){if(c){const{dimensions:a,number:f}=c;a&&this.expand(f,a.min,f,a.max)}}expandToAddress(c){const a=s.decodeEx(c);this.expand(a.row,a.col,a.row,a.col)}get tl(){return s.n2l(this.left)+this.top}get $t$l(){return`$${s.n2l(this.left)}$${this.top}`}get br(){return s.n2l(this.right)+this.bottom}get $b$r(){return`$${s.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(c){return!(c.sheetName&&this.sheetName&&c.sheetName!==this.sheetName||c.bottom<this.top||c.top>this.bottom||c.right<this.left||c.left>this.right)}contains(c){const a=s.decodeEx(c);return this.containsEx(a)}containsEx(c){return c.sheetName&&this.sheetName&&c.sheetName!==this.sheetName?!1:c.row>=this.top&&c.row<=this.bottom&&c.col>=this.left&&c.col<=this.right}forEachAddress(c){for(let a=this.left;a<=this.right;a++)for(let f=this.top;f<=this.bottom;f++)c(s.encodeAddress(f,a),f,a)}}n.exports=o},{"../utils/col-cache":19}],11:[function(e,n,i){const s=e("../utils/under-dash"),o=e("./enums"),h=e("../utils/col-cache"),c=e("./cell");class a{constructor(l,u){this._worksheet=l,this._number=u,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(l){return this._cells[l-1]}getCellEx(l){let u=this._cells[l.col-1];if(!u){const p=this._worksheet.getColumn(l.col);u=new c(this,p,l.address),this._cells[l.col-1]=u}return u}getCell(l){if(typeof l=="string"){const u=this._worksheet.getColumnKey(l);u?l=u.number:l=h.l2n(l)}return this._cells[l-1]||this.getCellEx({address:h.encodeAddress(this._number,l),row:this._number,col:l})}splice(l,u){const p=l+u;for(var m=arguments.length,d=new Array(m>2?m-2:0),v=2;v<m;v++)d[v-2]=arguments[v];const x=d.length-u,g=this._cells.length;let b,w,y;if(x<0)for(b=l+d.length;b<=g;b++)y=this._cells[b-1],w=this._cells[b-x-1],w?(y=this.getCell(b),y.value=w.value,y.style=w.style,y._comment=w._comment):y&&(y.value=null,y.style={},y._comment=void 0);else if(x>0)for(b=g;b>=p;b--)w=this._cells[b-1],w?(y=this.getCell(b+x),y.value=w.value,y.style=w.style,y._comment=w._comment):this._cells[b+x-1]=void 0;for(b=0;b<d.length;b++)y=this.getCell(l+b),y.value=d[b],y.style={},y._comment=void 0}eachCell(l,u){if(u||(u=l,l=null),l&&l.includeEmpty){const p=this._cells.length;for(let m=1;m<=p;m++)u(this.getCell(m),m)}else this._cells.forEach((p,m)=>{p&&p.type!==o.ValueType.Null&&u(p,m+1)})}addPageBreak(l,u){const p=this._worksheet,m=Math.max(0,l-1)||0,d=Math.max(0,u-1)||16838,v={id:this._number,max:d,man:1};m&&(v.min=m),p.rowBreaks.push(v)}get values(){const l=[];return this._cells.forEach(u=>{u&&u.type!==o.ValueType.Null&&(l[u.col]=u.value)}),l}set values(l){if(this._cells=[],l)if(l instanceof Array){let u=0;l.hasOwnProperty("0")&&(u=1),l.forEach((p,m)=>{p!==void 0&&(this.getCellEx({address:h.encodeAddress(this._number,m+u),row:this._number,col:m+u}).value=p)})}else this._worksheet.eachColumnKey((u,p)=>{l[p]!==void 0&&(this.getCellEx({address:h.encodeAddress(this._number,u.number),row:this._number,col:u.number}).value=l[p])})}get hasValues(){return s.some(this._cells,l=>l&&l.type!==o.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let l=0;return this.eachCell(()=>{l++}),l}get dimensions(){let l=0,u=0;return this._cells.forEach(p=>{p&&p.type!==o.ValueType.Null&&((!l||l>p.col)&&(l=p.col),u<p.col&&(u=p.col))}),l>0?{min:l,max:u}:null}_applyStyle(l,u){return this.style[l]=u,this._cells.forEach(p=>{p&&(p[l]=u)}),u}get numFmt(){return this.style.numFmt}set numFmt(l){this._applyStyle("numFmt",l)}get font(){return this.style.font}set font(l){this._applyStyle("font",l)}get alignment(){return this.style.alignment}set alignment(l){this._applyStyle("alignment",l)}get protection(){return this.style.protection}set protection(l){this._applyStyle("protection",l)}get border(){return this.style.border}set border(l){this._applyStyle("border",l)}get fill(){return this.style.fill}set fill(l){this._applyStyle("fill",l)}get hidden(){return!!this._hidden}set hidden(l){this._hidden=l}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(l){this._outlineLevel=l}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const l=[];let u=0,p=0;return this._cells.forEach(m=>{if(m){const d=m.model;d&&((!u||u>m.col)&&(u=m.col),p<m.col&&(p=m.col),l.push(d))}}),this.height||l.length?{cells:l,number:this.number,min:u,max:p,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(l){if(l.number!==this._number)throw new Error("Invalid row number in model");this._cells=[];let u;l.cells.forEach(p=>{switch(p.type){case c.Types.Merge:break;default:{let m;if(p.address)m=h.decodeAddress(p.address);else if(u){const{row:v}=u,x=u.col+1;m={row:v,col:x,address:h.encodeAddress(v,x),$col$row:`$${h.n2l(x)}$${v}`}}u=m;const d=this.getCellEx(m);d.model=p;break}}}),l.height?this.height=l.height:delete this.height,this.hidden=l.hidden,this.outlineLevel=l.outlineLevel||0,this.style=l.style&&JSON.parse(JSON.stringify(l.style))||{}}}n.exports=a},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,n,i){const s=e("../utils/col-cache");class o{constructor(a,f,l){this.table=a,this.column=f,this.index=l}_set(a,f){this.table.cacheState(),this.column[a]=f}get name(){return this.column.name}set name(a){this._set("name",a)}get filterButton(){return this.column.filterButton}set filterButton(a){this.column.filterButton=a}get style(){return this.column.style}set style(a){this.column.style=a}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(a){this._set("totalsRowLabel",a)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(a){this._set("totalsRowFunction",a)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(a){this._set("totalsRowResult",a)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(a){this._set("totalsRowFormula",a)}}class h{constructor(a,f){this.worksheet=a,f&&(this.table=f,this.validate(),this.store())}getFormula(a){switch(a.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${a.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${a.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${a.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${a.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${a.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${a.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${a.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${a.name}])`;case"custom":return a.totalsRowFormula;default:throw new Error(`Invalid Totals Row Function: ${a.totalsRowFunction}`)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:a}=this,f=(x,g,b)=>{x[g]===void 0&&(x[g]=b)};f(a,"headerRow",!0),f(a,"totalsRow",!1),f(a,"style",{}),f(a.style,"theme","TableStyleMedium2"),f(a.style,"showFirstColumn",!1),f(a.style,"showLastColumn",!1),f(a.style,"showRowStripes",!1),f(a.style,"showColumnStripes",!1);const l=(x,g)=>{if(!x)throw new Error(g)};l(a.ref,"Table must have ref"),l(a.columns,"Table must have column definitions"),l(a.rows,"Table must have row definitions"),a.tl=s.decodeAddress(a.ref);const{row:u,col:p}=a.tl;l(u>0,"Table must be on valid row"),l(p>0,"Table must be on valid col");const{width:m,filterHeight:d,tableHeight:v}=this;a.autoFilterRef=s.encode(u,p,u+d-1,p+m-1),a.tableRef=s.encode(u,p,u+v-1,p+m-1),a.columns.forEach((x,g)=>{l(x.name,`Column ${g} must have a name`),g===0?f(x,"totalsRowLabel","Total"):(f(x,"totalsRowFunction","none"),x.totalsRowFormula=this.getFormula(x))})}store(){const a=(d,v)=>{v&&Object.keys(v).forEach(x=>{d[x]=v[x]})},{worksheet:f,table:l}=this,{row:u,col:p}=l.tl;let m=0;if(l.headerRow){const d=f.getRow(u+m++);l.columns.forEach((v,x)=>{const{style:g,name:b}=v,w=d.getCell(p+x);w.value=b,a(w,g)})}if(l.rows.forEach(d=>{const v=f.getRow(u+m++);d.forEach((x,g)=>{const b=v.getCell(p+g);b.value=x,a(b,l.columns[g].style)})}),l.totalsRow){const d=f.getRow(u+m++);l.columns.forEach((v,x)=>{const g=d.getCell(p+x);x===0?g.value=v.totalsRowLabel:this.getFormula(v)?g.value={formula:v.totalsRowFormula,result:v.totalsRowResult}:g.value=null,a(g,v.style)})}}load(a){const{table:f}=this,{row:l,col:u}=f.tl;let p=0;if(f.headerRow){const m=a.getRow(l+p++);f.columns.forEach((d,v)=>{const x=m.getCell(u+v);x.value=d.name})}if(f.rows.forEach(m=>{const d=a.getRow(l+p++);m.forEach((v,x)=>{const g=d.getCell(u+x);g.value=v})}),f.totalsRow){const m=a.getRow(l+p++);f.columns.forEach((d,v)=>{const x=m.getCell(u+v);v===0?x.value=d.totalsRowLabel:this.getFormula(d)&&(x.value={formula:d.totalsRowFormula,result:d.totalsRowResult})})}}get model(){return this.table}set model(a){this.table=a}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const a=s.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let f=0;f<this._cache.tableHeight;f++){const l=this.worksheet.getRow(a.row+f);for(let u=0;u<this._cache.width;u++){const p=l.getCell(a.col+u);p.value=null}}else{for(let f=this.tableHeight;f<this._cache.tableHeight;f++){const l=this.worksheet.getRow(a.row+f);for(let u=0;u<this._cache.width;u++){const p=l.getCell(a.col+u);p.value=null}}for(let f=0;f<this.tableHeight;f++){const l=this.worksheet.getRow(a.row+f);for(let u=this.width;u<this._cache.width;u++){const p=l.getCell(a.col+u);p.value=null}}}this.store()}addRow(a,f){this.cacheState(),f===void 0?this.table.rows.push(a):this.table.rows.splice(f,0,a)}removeRows(a){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(a,f)}getColumn(a){const f=this.table.columns[a];return new o(this,f,a)}addColumn(a,f,l){this.cacheState(),l===void 0?(this.table.columns.push(a),this.table.rows.forEach((u,p)=>{u.push(f[p])})):(this.table.columns.splice(l,0,a),this.table.rows.forEach((u,p)=>{u.splice(l,0,f[p])}))}removeColumns(a){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(a,f),this.table.rows.forEach(l=>{l.splice(a,f)})}_assign(a,f,l){this.cacheState(),a[f]=l}get ref(){return this.table.ref}set ref(a){this._assign(this.table,"ref",a)}get name(){return this.table.name}set name(a){this.table.name=a}get displayName(){return this.table.displyName||this.table.name}set displayNamename(a){this.table.displayName=a}get headerRow(){return this.table.headerRow}set headerRow(a){this._assign(this.table,"headerRow",a)}get totalsRow(){return this.table.totalsRow}set totalsRow(a){this._assign(this.table,"totalsRow",a)}get theme(){return this.table.style.name}set theme(a){this.table.style.name=a}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(a){this.table.style.showFirstColumn=a}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(a){this.table.style.showLastColumn=a}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(a){this.table.style.showRowStripes=a}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(a){this.table.style.showColumnStripes=a}}n.exports=h},{"../utils/col-cache":19}],13:[function(e,n,i){const s=e("./worksheet"),o=e("./defined-names"),h=e("../xlsx/xlsx"),c=e("../csv/csv");class a{constructor(){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 o}get xlsx(){return this._xlsx||(this._xlsx=new h(this)),this._xlsx}get csv(){return this._csv||(this._csv=new c(this)),this._csv}get nextId(){for(let l=1;l<this._worksheets.length;l++)if(!this._worksheets[l])return l;return this._worksheets.length||1}addWorksheet(l,u){const p=this.nextId;u&&(typeof u=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),u={properties:{tabColor:{argb:u}}}):(u.argb||u.theme||u.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),u={properties:{tabColor:u}}));const m=this._worksheets.reduce((x,g)=>(g&&g.orderNo)>x?g.orderNo:x,0),d=Object.assign({},u,{id:p,name:l,orderNo:m+1,workbook:this}),v=new s(d);return this._worksheets[p]=v,v}removeWorksheetEx(l){delete this._worksheets[l.id]}removeWorksheet(l){const u=this.getWorksheet(l);u&&u.destroy()}getWorksheet(l){if(l===void 0)return this._worksheets.find(Boolean);if(typeof l=="number")return this._worksheets[l];if(typeof l=="string")return this._worksheets.find(u=>u&&u.name===l)}get worksheets(){return this._worksheets.slice(1).sort((l,u)=>l.orderNo-u.orderNo).filter(Boolean)}eachSheet(l){this.worksheets.forEach(u=>{l(u,u.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(l){const u=this.media.length;return this.media.push(Object.assign({},l,{type:"image"})),u}getImage(l){return this.media[l]}get model(){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(l=>l.model),sheets:this.worksheets.map(l=>l.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 model(l){this.creator=l.creator,this.lastModifiedBy=l.lastModifiedBy,this.lastPrinted=l.lastPrinted,this.created=l.created,this.modified=l.modified,this.company=l.company,this.manager=l.manager,this.title=l.title,this.subject=l.subject,this.keywords=l.keywords,this.category=l.category,this.description=l.description,this.language=l.language,this.revision=l.revision,this.contentStatus=l.contentStatus,this.properties=l.properties,this.calcProperties=l.calcProperties,this._worksheets=[],l.worksheets.forEach(u=>{const{id:p,name:m,state:d}=u,v=l.sheets&&l.sheets.findIndex(g=>g.id===p),x=this._worksheets[p]=new s({id:p,name:m,orderNo:v,state:d,workbook:this});x.model=u}),this._definedNames.model=l.definedNames,this.views=l.views,this._themes=l.themes,this.media=l.media||[]}}n.exports=a},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,n,i){const s=e("../utils/under-dash"),o=e("../utils/col-cache"),h=e("./range"),c=e("./row"),a=e("./column"),f=e("./enums"),l=e("./image"),u=e("./table"),p=e("./data-validations"),m=e("../utils/encryptor"),{copyStyle:d}=e("../utils/copy-style");class v{constructor(g){g=g||{},this._workbook=g.workbook,this.id=g.id,this.orderNo=g.orderNo,this.name=g.name,this.state=g.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},g.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:!!(g.pageSetup&&(g.pageSetup.fitToWidth||g.pageSetup.fitToHeight)&&!g.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},g.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},g.headerFooter),this.dataValidations=new p,this.views=g.views||[],this.autoFilter=g.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(g){if(g===void 0&&(g=`sheet${this.id}`),this._name!==g){if(typeof g!="string")throw new Error("The name has to be a string.");if(g==="")throw new Error("The name can't be empty.");if(g==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(g))throw new Error(`Worksheet name ${g} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(g))throw new Error(`The first or last character of worksheet name cannot be a single quotation mark: ${g}`);if(g&&g.length>31&&(console.warn(`Worksheet name ${g} exceeds 31 chars. This will be truncated`),g=g.substring(0,31)),this._workbook._worksheets.find(b=>b&&b.name.toLowerCase()===g.toLowerCase()))throw new Error(`Worksheet name already exists: ${g}`);this._name=g}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const g=new h;return this._rows.forEach(b=>{if(b){const w=b.dimensions;w&&g.expand(b.number,w.min,b.number,w.max)}}),g}get columns(){return this._columns}set columns(g){this._headerRowCount=g.reduce((y,T)=>{const C=T.header&&1||T.headers&&T.headers.length||0;return Math.max(y,C)},0);let b=1;const w=this._columns=[];g.forEach(y=>{const T=new a(this,b++,!1);w.push(T),T.defn=y})}getColumnKey(g){return this._keys[g]}setColumnKey(g,b){this._keys[g]=b}deleteColumnKey(g){delete this._keys[g]}eachColumnKey(g){s.each(this._keys,g)}getColumn(g){if(typeof g=="string"){const b=this._keys[g];if(b)return b;g=o.l2n(g)}if(this._columns||(this._columns=[]),g>this._columns.length){let b=this._columns.length+1;for(;b<=g;)this._columns.push(new a(this,b++))}return this._columns[g-1]}spliceColumns(g,b){const y=this._rows.length;for(var T=arguments.length,C=new Array(T>2?T-2:0),M=2;M<T;M++)C[M-2]=arguments[M];if(C.length>0)for(let j=0;j<y;j++){const H=[g,b];C.forEach(L=>{H.push(L[j]||null)});const G=this.getRow(j+1);G.splice.apply(G,H)}else this._rows.forEach(j=>{j&&j.splice(g,b)});const I=C.length-b,B=g+b,U=this._columns.length;if(I<0)for(let j=g+C.length;j<=U;j++)this.getColumn(j).defn=this.getColumn(j-I).defn;else if(I>0)for(let j=U;j>=B;j--)this.getColumn(j+I).defn=this.getColumn(j).defn;for(let j=g;j<g+C.length;j++)this.getColumn(j).defn=null;this.workbook.definedNames.spliceColumns(this.name,g,b,C.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let g=0;return this.eachRow(b=>{g=Math.max(g,b.cellCount)}),g}get actualColumnCount(){const g=[];let b=0;return this.eachRow(w=>{w.eachCell(y=>{let{col:T}=y;g[T]||(g[T]=!0,b++)})}),b}_commitRow(){}get _lastRowNumber(){const g=this._rows;let b=g.length;for(;b>0&&g[b-1]===void 0;)b--;return b}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(g){return this._rows[g-1]}findRows(g,b){return this._rows.slice(g-1,g-1+b)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let g=0;return this.eachRow(()=>{g++}),g}getRow(g){let b=this._rows[g-1];return b||(b=this._rows[g-1]=new c(this,g)),b}getRows(g,b){if(b<1)return;const w=[];for(let y=g;y<g+b;y++)w.push(this.getRow(y));return w}addRow(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const w=this._nextRow,y=this.getRow(w);return y.values=g,this._setStyleOption(w,b[0]==="i"?b:"n"),y}addRows(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const w=[];return g.forEach(y=>{w.push(this.addRow(y,b))}),w}insertRow(g,b){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(g,0,b),this._setStyleOption(g,w),this.getRow(g)}insertRows(g,b){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(g,0,...b),w!=="n")for(let y=0;y<b.length;y++)w[0]==="o"&&this.findRow(b.length+g+y)!==void 0?this._copyStyle(b.length+g+y,g+y,w[1]==="+"):w[0]==="i"&&this.findRow(g-1)!==void 0&&this._copyStyle(g-1,g+y,w[1]==="+");return this.getRows(g,b.length)}_setStyleOption(g){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";b[0]==="o"&&this.findRow(g+1)!==void 0?this._copyStyle(g+1,g,b[1]==="+"):b[0]==="i"&&this.findRow(g-1)!==void 0&&this._copyStyle(g-1,g,b[1]==="+")}_copyStyle(g,b){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const y=this.getRow(g),T=this.getRow(b);T.style=d(y.style),y.eachCell({includeEmpty:w},(C,M)=>{T.getCell(M).style=d(C.style)}),T.height=y.height}duplicateRow(g,b){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const y=this._rows[g-1],T=new Array(b).fill(y.values);this.spliceRows(g+1,w?0:b,...T);for(let C=0;C<b;C++){const M=this._rows[g+C];M.style=y.style,M.height=y.height,y.eachCell({includeEmpty:!0},(I,B)=>{M.getCell(B).style=I.style})}}spliceRows(g,b){const w=g+b;for(var y=arguments.length,T=new Array(y>2?y-2:0),C=2;C<y;C++)T[C-2]=arguments[C];const M=T.length,I=M-b,B=this._rows.length;let U,j;if(I<0)for(g===B&&(this._rows[B-1]=void 0),U=w;U<=B;U++)if(j=this._rows[U-1],j){const H=this.getRow(U+I);H.values=j.values,H.style=j.style,H.height=j.height,j.eachCell({includeEmpty:!0},(G,L)=>{H.getCell(L).style=G.style}),this._rows[U-1]=void 0}else this._rows[U+I-1]=void 0;else if(I>0)for(U=B;U>=w;U--)if(j=this._rows[U-1],j){const H=this.getRow(U+I);H.values=j.values,H.style=j.style,H.height=j.height,j.eachCell({includeEmpty:!0},(G,L)=>{if(H.getCell(L).style=G.style,G._value.constructor.name==="MergeValue"){const R=this.getRow(G._row._number+M).getCell(L),F=G._value._master,_=this.getRow(F._row._number+M).getCell(F._column._number);R.merge(_)}})}else this._rows[U+I-1]=void 0;for(U=0;U<M;U++){const H=this.getRow(g+U);H.style={},H.values=T[U]}this.workbook.definedNames.spliceRows(this.name,g,b,M)}eachRow(g,b){if(b||(b=g,g=void 0),g&&g.includeEmpty){const w=this._rows.length;for(let y=1;y<=w;y++)b(this.getRow(y),y)}else this._rows.forEach(w=>{w&&w.hasValues&&b(w,w.number)})}getSheetValues(){const g=[];return this._rows.forEach(b=>{b&&(g[b.number]=b.values)}),g}findCell(g,b){const w=o.getAddress(g,b),y=this._rows[w.row-1];return y?y.findCell(w.col):void 0}getCell(g,b){const w=o.getAddress(g,b);return this.getRow(w.row).getCellEx(w)}mergeCells(){for(var g=arguments.length,b=new Array(g),w=0;w<g;w++)b[w]=arguments[w];const y=new h(b);this._mergeCellsInternal(y)}mergeCellsWithoutStyle(){for(var g=arguments.length,b=new Array(g),w=0;w<g;w++)b[w]=arguments[w];const y=new h(b);this._mergeCellsInternal(y,!0)}_mergeCellsInternal(g,b){s.each(this._merges,y=>{if(y.intersects(g))throw new Error("Cannot merge already merged cells")});const w=this.getCell(g.top,g.left);for(let y=g.top;y<=g.bottom;y++)for(let T=g.left;T<=g.right;T++)(y>g.top||T>g.left)&&this.getCell(y,T).merge(w,b);this._merges[w.address]=g}_unMergeMaster(g){const b=this._merges[g.address];if(b){for(let w=b.top;w<=b.bottom;w++)for(let y=b.left;y<=b.right;y++)this.getCell(w,y).unmerge();delete this._merges[g.address]}}get hasMerges(){return s.some(this._merges,Boolean)}unMergeCells(){for(var g=arguments.length,b=new Array(g),w=0;w<g;w++)b[w]=arguments[w];const y=new h(b);for(let T=y.top;T<=y.bottom;T++)for(let C=y.left;C<=y.right;C++){const M=this.findCell(T,C);M&&(M.type===f.ValueType.Merge?this._unMergeMaster(M.master):this._merges[M.address]&&this._unMergeMaster(M))}}fillFormula(g,b,w){let y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const T=o.decode(g),{top:C,left:M,bottom:I,right:B}=T,U=B-M+1,j=o.encodeAddress(C,M),H=y==="shared";let G;typeof w=="function"?G=w:Array.isArray(w)?Array.isArray(w[0])?G=(R,F)=>w[R-C][F-M]:G=(R,F)=>w[(R-C)*U+(F-M)]:G=()=>{};let L=!0;for(let R=C;R<=I;R++)for(let F=M;F<=B;F++)L?(this.getCell(R,F).value={shareType:y,formula:b,ref:g,result:G(R,F)},L=!1):this.getCell(R,F).value=H?{sharedFormula:j,result:G(R,F)}:G(R,F)}addImage(g,b){const w={type:"image",imageId:g,range:b};this._media.push(new l(this,w))}getImages(){return this._media.filter(g=>g.type==="image")}addBackgroundImage(g){const b={type:"background",imageId:g};this._media.push(new l(this,b))}getBackgroundImageId(){const g=this._media.find(b=>b.type==="background");return g&&g.imageId}protect(g,b){return new Promise(w=>{this.sheetProtection={sheet:!0},b&&"spinCount"in b&&(b.spinCount=Number.isFinite(b.spinCount)?Math.round(Math.max(0,b.spinCount)):1e5),g&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=m.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=b&&"spinCount"in b?b.spinCount:1e5,this.sheetProtection.hashValue=m.convertPasswordToHash(g,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),b&&(this.sheetProtection=Object.assign(this.sheetProtection,b),!g&&"spinCount"in b&&delete this.sheetProtection.spinCount),w()})}unprotect(){this.sheetProtection=null}addTable(g){const b=new u(this,g);return this.tables[g.name]=b,b}getTable(g){return this.tables[g]}removeTable(g){delete this.tables[g]}getTables(){return Object.values(this.tables)}addConditionalFormatting(g){this.conditionalFormattings.push(g)}removeConditionalFormatting(g){typeof g=="number"?this.conditionalFormattings.splice(g,1):g instanceof Function?this.conditionalFormattings=this.conditionalFormattings.filter(g):this.conditionalFormattings=[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(g){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=g}get model(){const g={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(y=>y.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(y=>y.model),conditionalFormattings:this.conditionalFormattings};g.cols=a.toModel(this.columns);const b=g.rows=[],w=g.dimensions=new h;return this._rows.forEach(y=>{const T=y&&y.model;T&&(w.expand(T.number,T.min,T.number,T.max),b.push(T))}),g.merges=[],s.each(this._merges,y=>{g.merges.push(y.range)}),g}_parseRows(g){this._rows=[],g.rows.forEach(b=>{const w=new c(this,b.number);this._rows[w.number-1]=w,w.model=b})}_parseMergeCells(g){s.each(g.mergeCells,b=>{this.mergeCellsWithoutStyle(b)})}set model(g){this.name=g.name,this._columns=a.fromModel(this,g.cols),this._parseRows(g),this._parseMergeCells(g),this.dataValidations=new p(g.dataValidations),this.properties=g.properties,this.pageSetup=g.pageSetup,this.headerFooter=g.headerFooter,this.views=g.views,this.autoFilter=g.autoFilter,this._media=g.media.map(b=>new l(this,b)),this.sheetProtection=g.sheetProtection,this.tables=g.tables.reduce((b,w)=>{const y=new u;return y.model=w,b[w.name]=y,b},{}),this.conditionalFormattings=g.conditionalFormattings}}n.exports=v},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,n,i){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const s={Workbook:e("./doc/workbook")},o=e("./doc/enums");Object.keys(o).forEach(h=>{s[h]=o[h]}),n.exports=s},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,n,i){const s=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function o(h){return typeof h=="string"?h:s?s.decode(h):h.toString()}i.bufferToString=o},{}],17:[function(e,n,i){const s=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=e("buffer");function h(c){return typeof c!="string"?c:s?o.from(s.encode(c).buffer):o.from(c)}i.stringToBuffer=h},{buffer:220}],18:[function(e,n,i){const s=e("./under-dash"),o=e("./col-cache");class h{constructor(a){this.template=a,this.sheets={}}addCell(a){this.addCellEx(o.decodeEx(a))}getCell(a){return this.findCellEx(o.decodeEx(a),!0)}findCell(a){return this.findCellEx(o.decodeEx(a),!1)}findCellAt(a,f,l){const u=this.sheets[a],p=u&&u[f];return p&&p[l]}addCellEx(a){if(a.top)for(let f=a.top;f<=a.bottom;f++)for(let l=a.left;l<=a.right;l++)this.getCellAt(a.sheetName,f,l);else this.findCellEx(a,!0)}getCellEx(a){return this.findCellEx(a,!0)}findCellEx(a,f){const l=this.findSheet(a,f),u=this.findSheetRow(l,a,f);return this.findRowCell(u,a,f)}getCellAt(a,f,l){const u=this.sheets[a]||(this.sheets[a]=[]),p=u[f]||(u[f]=[]);return p[l]||(p[l]={sheetName:a,address:o.n2l(l)+f,row:f,col:l})}removeCellEx(a){const f=this.findSheet(a);if(!f)return;const l=this.findSheetRow(f,a);l&&delete l[a.col]}forEachInSheet(a,f){const l=this.sheets[a];l&&l.forEach((u,p)=>{u&&u.forEach((m,d)=>{m&&f(m,p,d)})})}forEach(a){s.each(this.sheets,(f,l)=>{this.forEachInSheet(l,a)})}map(a){const f=[];return this.forEach(l=>{f.push(a(l))}),f}findSheet(a,f){const l=a.sheetName;if(this.sheets[l])return this.sheets[l];if(f)return this.sheets[l]=[]}findSheetRow(a,f,l){const{row:u}=f;if(a&&a[u])return a[u];if(l)return a[u]=[]}findRowCell(a,f,l){const{col:u}=f;if(a&&a[u])return a[u];if(l)return a[u]=this.template?Object.assign(f,JSON.parse(JSON.stringify(this.template))):f}spliceRows(a,f,l,u){const p=this.sheets[a];if(p){const m=[];for(let d=0;d<u;d++)m.push([]);p.splice(f,l,...m)}}spliceColumns(a,f,l,u){const p=this.sheets[a];if(p){const m=[];for(let d=0;d<u;d++)m.push(null);s.each(p,d=>{d.splice(f,l,...m)})}}}n.exports=h},{"./col-cache":19,"./under-dash":26}],19:[function(e,n,i){const s=/^[A-Z]+\d+$/,o={_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(h){return h<=26?1:h<=676?2:3},_fill(h){let c,a,f,l,u,p=1;if(h>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&h>=1){for(;p<=26;)c=this._dictionary[p-1],this._n2l[p]=c,this._l2n[c]=p,p++;this._l2nFill=1}if(this._l2nFill<2&&h>=2){for(p=27;p<=702;)a=p-27,f=a%26,l=Math.floor(a/26),c=this._dictionary[l]+this._dictionary[f],this._n2l[p]=c,this._l2n[c]=p,p++;this._l2nFill=2}if(this._l2nFill<3&&h>=3){for(p=703;p<=16384;)a=p-703,f=a%26,l=Math.floor(a/26)%26,u=Math.floor(a/676),c=this._dictionary[u]+this._dictionary[l]+this._dictionary[f],this._n2l[p]=c,this._l2n[c]=p,p++;this._l2nFill=3}},l2n(h){if(this._l2n[h]||this._fill(h.length),!this._l2n[h])throw new Error(`Out of bounds. Invalid column letter: ${h}`);return this._l2n[h]},n2l(h){if(h<1||h>16384)throw new Error(`${h} is out of bounds. Excel supports columns from 1 to 16384`);return this._n2l[h]||this._fill(this._level(h)),this._n2l[h]},_hash:{},validateAddress(h){if(!s.test(h))throw new Error(`Invalid Address: ${h}`);return!0},decodeAddress(h){const c=h.length<5&&this._hash[h];if(c)return c;let a=!1,f="",l=0,u=!1,p="",m=0;for(let v=0,x;v<h.length;v++)if(x=h.charCodeAt(v),!u&&x>=65&&x<=90)a=!0,f+=h[v],l=l*26+x-64;else if(x>=48&&x<=57)u=!0,p+=h[v],m=m*10+x-48;else if(u&&a&&x!==36)break;if(!a)l=void 0;else if(l>16384)throw new Error(`Out of bounds. Invalid column letter: ${f}`);u||(m=void 0),h=f+p;const d={address:h,col:l,row:m,$col$row:`$${f}$${p}`};return l<=100&&m<=100&&(this._hash[h]=d,this._hash[d.$col$row]=d),d},getAddress(h,c){if(c){const a=this.n2l(c)+h;return this.decodeAddress(a)}return this.decodeAddress(h)},decode(h){const c=h.split(":");if(c.length===2){const a=this.decodeAddress(c[0]),f=this.decodeAddress(c[1]),l={top:Math.min(a.row,f.row),left:Math.min(a.col,f.col),bottom:Math.max(a.row,f.row),right:Math.max(a.col,f.col)};return l.tl=this.n2l(l.left)+l.top,l.br=this.n2l(l.right)+l.bottom,l.dimensions=`${l.tl}:${l.br}`,l}return this.decodeAddress(h)},decodeEx(h){const c=h.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),a=c[1]||c[2],f=c[3],l=f.split(":");if(l.length>1){let p=this.decodeAddress(l[0]),m=this.decodeAddress(l[1]);const d=Math.min(p.row,m.row),v=Math.min(p.col,m.col),x=Math.max(p.row,m.row),g=Math.max(p.col,m.col);return p=this.n2l(v)+d,m=this.n2l(g)+x,{top:d,left:v,bottom:x,right:g,sheetName:a,tl:{address:p,col:v,row:d,$col$row:`$${this.n2l(v)}$${d}`,sheetName:a},br:{address:m,col:g,row:x,$col$row:`$${this.n2l(g)}$${x}`,sheetName:a},dimensions:`${p}:${m}`}}if(f.startsWith("#"))return a?{sheetName:a,error:f}:{error:f};const u=this.decodeAddress(f);return a?{sheetName:a,...u}:u},encodeAddress(h,c){return o.n2l(c)+h},encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(h,c){const[a,f,,l,u]=h,[p,m]=c;return p>=a&&p<=l&&m>=f&&m<=u}};n.exports=o},{}],20:[function(e,n,i){const s=(a,f)=>({...a,...f.reduce((l,u)=>(a[u]&&(l[u]={...a[u]}),l),{})}),o=function(a,f,l){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];a[l]&&(f[l]=s(a[l],u))},h=a=>Object.keys(a).length===0,c=a=>{if(!a)return a;if(h(a))return{};const f={...a};return o(a,f,"font",["color"]),o(a,f,"alignment"),o(a,f,"protection"),a.border&&(o(a,f,"border"),o(a.border,f.border,"top",["color"]),o(a.border,f.border,"left",["color"]),o(a.border,f.border,"bottom",["color"]),o(a.border,f.border,"right",["color"]),o(a.border,f.border,"diagonal",["color"])),a.fill&&(o(a,f,"fill",["fgColor","bgColor","center"]),a.fill.stops&&(f.fill.stops=a.fill.stops.map(l=>s(l,["color"])))),f};i.copyStyle=c},{}],21:[function(e,n,i){(function(s){(function(){const o=e("crypto"),h={hash(c){const a=o.createHash(c);for(var f=arguments.length,l=new Array(f>1?f-1:0),u=1;u<f;u++)l[u-1]=arguments[u];return a.update(s.concat(l)),a.digest()},convertPasswordToHash(c,a,f,l){if(a=a.toLowerCase(),o.getHashes().indexOf(a)<0)throw new Error(`Hash algorithm '${a}' not supported!`);const p=s.from(c,"utf16le");let m=this.hash(a,s.from(f,"base64"),p);for(let d=0;d<l;d++){const v=s.alloc(4);v.writeUInt32LE(d,0),m=this.hash(a,m,v)}return m.toString("base64")},randomBytes(c){return o.randomBytes(c)}};n.exports=h}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,n,i){const{SaxesParser:s}=e("saxes"),{PassThrough:o}=e("readable-stream"),{bufferToString:h}=e("./browser-buffer-decode");n.exports=async function*(c){c.pipe&&!c[Symbol.asyncIterator]&&(c=c.pipe(new o));const a=new s;let f;a.on("error",u=>{f=u});let l=[];a.on("opentag",u=>l.push({eventType:"opentag",value:u})),a.on("text",u=>l.push({eventType:"text",value:u})),a.on("closetag",u=>l.push({eventType:"closetag",value:u}));for await(const u of c){if(a.write(h(u)),f)throw f;yield l,l=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,n,i){const s=e("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,h=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;function c(a,f,l){const u=s.decode(f),p=s.decode(l);return a.replace(o,(m,d,v,x,g)=>{if(g)return m;const b=h.exec(x);if(b){const w=b[1],y=b[2].toUpperCase(),T=b[3],C=b[4];if(y.length>3||y.length===3&&y>"XFD")return m;let M=s.l2n(y),I=parseInt(C,10);return w||(M+=p.col-u.col),T||(I+=p.row-u.row),(d||"")+(w||"")+s.n2l(M)+(T||"")+I}return m})}n.exports={slideFormula:c}},{"./col-cache":19}],24:[function(e,n,i){(function(s,o){(function(){const h=e("readable-stream"),c=e("./utils"),a=e("./string-buf");class f{constructor(v,x){this._data=v,this._encoding=x}get length(){return this.toBuffer().length}copy(v,x,g,b){return this.toBuffer().copy(v,x,g,b)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class l{constructor(v){this._data=v}get length(){return this._data.length}copy(v,x,g,b){return this._data._buf.copy(v,x,g,b)}toBuffer(){return this._data.toBuffer()}}class u{constructor(v){this._data=v}get length(){return this._data.length}copy(v,x,g,b){this._data.copy(v,x,g,b)}toBuffer(){return this._data}}class p{constructor(v){this.size=v,this.buffer=o.alloc(v),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const v=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(v,0,this.iRead,this.iWrite),v}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(v){let x;return v===0?null:v===void 0||v>=this.length?(x=this.toBuffer(),this.iRead=this.iWrite,x):(x=o.alloc(v),this.buffer.copy(x,0,this.iRead,v),this.iRead+=v,x)}write(v,x,g){const b=Math.min(g,this.size-this.iWrite);return v.copy(this.buffer,this.iWrite,x,x+b),this.iWrite+=b,b}}const m=function(d){d=d||{},this.bufSize=d.bufSize||1024*1024,this.buffers=[],this.batch=d.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};c.inherits(m,h.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(d=>d.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const v=this.buffers[this.buffers.length-1];if(!v.full)return v}const d=new p(this.bufSize);return this.buffers.push(d),d},async _pipe(d){const v=function(x){return new Promise(g=>{x.write(d.toBuffer(),()=>{g()})})};await Promise.all(this.pipes.map(v))},_writeToBuffers(d){let v=0;const x=d.length;for(;v<x;){const g=this._getWritableBuffer();v+=g.write(d,v,x-v)}},async write(d,v,x){v instanceof Function&&(x=v,v="utf8"),x=x||c.nop;let g;if(d instanceof a)g=new l(d);else if(d instanceof o)g=new u(d);else if(typeof d=="string"||d instanceof String||d instanceof ArrayBuffer)g=new f(d,v);else throw new Error("Chunk must be one of type String, Buffer or StringBuf.");if(this.pipes.length)if(this.batch)for(this._writeToBuffers(g);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(g),s.nextTick(x)):(await this._pipe(g),x());else this.paused||this.emit("data",g.toBuffer()),this._writeToBuffers(g),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(d,v,x){const g=b=>{b?x(b):(this._flush(),this.pipes.forEach(w=>{w.end()}),this.emit("finish"))};d?this.write(d,v,g):g()},read(d){let v;if(d){for(v=[];d&&this.buffers.length&&!this.buffers[0].eod;){const x=this.buffers[0],g=x.read(d);d-=g.length,v.push(g),x.eod&&x.full&&this.buffers.shift()}return o.concat(v)}return v=this.buffers.map(x=>x.toBuffer()).filter(Boolean),this.buffers=[],o.concat(v)},setEncoding(d){this.encoding=d},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(d){this.pipes.push(d),!this.paused&&this.buffers.length&&this.end()},unpipe(d){this.pipes=this.pipes.filter(v=>v!==d)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),n.exports=m}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,n,i){(function(s){(function(){class o{constructor(c){this._buf=s.alloc(c&&c.size||16384),this._encoding=c&&c.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=s.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(c){c=c||0,this._buffer=void 0,this._inPos=c}_grow(c){let a=this._buf.length*2;for(;a<c;)a*=2;const f=s.alloc(a);this._buf.copy(f,0),this._buf=f}addText(c){this._buffer=void 0;let a=this._inPos+this._buf.write(c,this._inPos,this._encoding);for(;a>=this._buf.length-4;)this._grow(this._inPos+c.length),a=this._inPos+this._buf.write(c,this._inPos,this._encoding);this._inPos=a}addStringBuf(c){c.length&&(this._buffer=void 0,this.length+c.length>this.capacity&&this._grow(this.length+c.length),c._buf.copy(this._buf,this._inPos,0,c.length),this._inPos+=c.length)}}n.exports=o}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,n,i){const{toString:s}=Object.prototype,o=/["&<>]/,h={each:function(a,f){a&&(Array.isArray(a)?a.forEach(f):Object.keys(a).forEach(l=>{f(a[l],l)}))},some:function(a,f){return a?Array.isArray(a)?a.some(f):Object.keys(a).some(l=>f(a[l],l)):!1},every:function(a,f){return a?Array.isArray(a)?a.every(f):Object.keys(a).every(l=>f(a[l],l)):!0},map:function(a,f){return a?Array.isArray(a)?a.map(f):Object.keys(a).map(l=>f(a[l],l)):[]},keyBy(c,a){return c.reduce((f,l)=>(f[l[a]]=l,f),{})},isEqual:function(a,f){const l=typeof a,u=typeof f,p=Array.isArray(a),m=Array.isArray(f);let d;if(l!==u)return!1;switch(typeof a){case"object":if(p||m)return p&&m?a.length===f.length&&a.every((v,x)=>{const g=f[x];return h.isEqual(v,g)}):!1;if(a===null||f===null)return a===f;if(d=Object.keys(a),Object.keys(f).length!==d.length)return!1;for(const v of d)if(!f.hasOwnProperty(v))return!1;return h.every(a,(v,x)=>{const g=f[x];return h.isEqual(v,g)});default:return a===f}},escapeHtml(c){const a=o.exec(c);if(!a)return c;let f="",l="",u=0,p=a.index;for(;p<c.length;p++){switch(c.charAt(p)){case'"':l=""";break;case"&":l="&";break;case"'":l="'";break;case"<":l="<";break;case">":l=">";break;default:continue}u!==p&&(f+=c.substring(u,p)),u=p+1,f+=l}return u!==p?f+c.substring(u,p):f},strcmp(c,a){return c<a?-1:c>a?1:0},isUndefined(c){return s.call(c)==="[object Undefined]"},isObject(c){return s.call(c)==="[object Object]"},deepMerge(){const c=arguments[0]||{},{length:a}=arguments;let f,l,u;function p(m,d){f=c[d],u=Array.isArray(m),h.isObject(m)||u?(u?(u=!1,l=f&&Array.isArray(f)?f:[]):l=f&&h.isObject(f)?f:{},c[d]=h.deepMerge(l,m)):h.isUndefined(m)||(c[d]=m)}for(let m=0;m<a;m++)h.each(arguments[m],p);return c}};n.exports=h},{}],27:[function(e,n,i){(function(s,o){(function(){const h=e("fs"),c=function(l,u,p,m){l.super_=u,m||(m=p,p=null),p&&Object.keys(p).forEach(v=>{Object.defineProperty(l,v,Object.getOwnPropertyDescriptor(p,v))});const d={constructor:{value:l,enumerable:!1,writable:!1,configurable:!0}};m&&Object.keys(m).forEach(v=>{d[v]=Object.getOwnPropertyDescriptor(m,v)}),l.prototype=Object.create(u.prototype,d)},a=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,f={nop(){},promiseImmediate(l){return new Promise(u=>{s.setImmediate?o(()=>{u(l)}):setTimeout(()=>{u(l)},1)})},inherits:c,dateToExcel(l,u){return 25569+l.getTime()/(24*3600*1e3)-(u?1462:0)},excelToDate(l,u){const p=Math.round((l-25569+(u?1462:0))*24*3600*1e3);return new Date(p)},parsePath(l){const u=l.lastIndexOf("/");return{path:l.substring(0,u),name:l.substring(u+1)}},getRelsPath(l){const u=f.parsePath(l);return`${u.path}/_rels/${u.name}.rels`},xmlEncode(l){const u=a.exec(l);if(!u)return l;let p="",m="",d=0,v=u.index;for(;v<l.length;v++){const x=l.charCodeAt(v);switch(x){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(x<=31&&(x<=8||x>=11&&x!==13)){m="";break}continue}}d!==v&&(p+=l.substring(d,v)),d=v+1,m&&(p+=m)}return d!==v?p+l.substring(d,v):p},xmlDecode(l){return l.replace(/&([a-z]*);/g,u=>{switch(u){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return u}})},validInt(l){const u=parseInt(l,10);return Number.isNaN(u)?0:u},isDateFmt(l){return l?(l=l.replace(/\[[^\]]*]/g,""),l=l.replace(/"[^"]*"/g,""),l.match(/[ymdhMsb]+/)!==null):!1},fs:{exists(l){return new Promise(u=>{h.access(l,h.constants.F_OK,p=>{u(!p)})})}},toIsoDateString(l){return l.toIsoString().subsstr(0,10)},parseBoolean(l){return l===!0||l==="true"||l===1||l==="1"}};n.exports=f}).call(this)}).call(this,typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,n,i){const s=e("./under-dash"),o=e("./utils"),h="<",c=">",a="</",f="/>";function l(m,d,v){m.push(` ${d}="${o.xmlEncode(v.toString())}"`)}function u(m,d){if(d){const v=[];s.each(d,(x,g)=>{x!==void 0&&l(v,g,x)}),m.push(v.join(""))}}class p{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(d){const v=this._xml;v.push("<?xml"),u(v,d),v.push(`?>
|
||
`)}openNode(d,v){const x=this.tos,g=this._xml;x&&this.open&&g.push(c),this._stack.push(d),g.push(h),g.push(d),u(g,v),this.leaf=!0,this.open=!0}addAttribute(d,v){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");v!==void 0&&l(this._xml,d,v)}addAttributes(d){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");u(this._xml,d)}writeText(d){const v=this._xml;this.open&&(v.push(c),this.open=!1),this.leaf=!1,v.push(o.xmlEncode(d.toString()))}writeXml(d){this.open&&(this._xml.push(c),this.open=!1),this.leaf=!1,this._xml.push(d)}closeNode(){const d=this._stack.pop(),v=this._xml;this.leaf?v.push(f):(v.push(a),v.push(d),v.push(c)),this.open=!1,this.leaf=!1}leafNode(d,v,x){this.openNode(d,v),x!==void 0&&this.writeText(x),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const 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}get xml(){return this.closeAll(),this._xml.join("")}}p.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},n.exports=p},{"./under-dash":26,"./utils":27}],29:[function(e,n,i){(function(s){(function(){const o=e("events"),h=e("jszip"),c=e("./stream-buf"),{stringToBuffer:a}=e("./browser-buffer-encode");class f extends o.EventEmitter{constructor(u){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},u),this.zip=new h,this.stream=new c}append(u,p){p.hasOwnProperty("base64")&&p.base64?this.zip.file(p.name,u,{base64:!0}):(s.browser&&typeof u=="string"&&(u=a(u)),this.zip.file(p.name,u))}async finalize(){const u=await this.zip.generateAsync(this.options);this.stream.end(u),this.emit("finish")}read(u){return this.stream.read(u)}setEncoding(u){return this.stream.setEncoding(u)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(u,p){return this.stream.pipe(u,p)}unpipe(u){return this.stream.unpipe(u)}unshift(u){return this.stream.unshift(u)}wrap(u){return this.stream.wrap(u)}}n.exports={ZipWriter:f}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,n,i){n.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,n,i){n.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,n,i){const s=e("../../utils/parse-sax"),o=e("../../utils/xml-stream");class h{prepare(){}render(){}parseOpen(a){}parseText(a){}parseClose(a){}reconcile(a,f){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(a=>{a instanceof h?a.reset():a.xform&&a.xform.reset()})}mergeModel(a){this.model=Object.assign(this.model||{},a)}async parse(a){for await(const f of a)for(const{eventType:l,value:u}of f)if(l==="opentag")this.parseOpen(u);else if(l==="text")this.parseText(u);else if(l==="closetag"&&!this.parseClose(u.name))return this.model;return this.model}async parseStream(a){return this.parse(s(a))}get xml(){return this.toXml(this.model)}toXml(a){const f=new o;return this.render(f,a),f.xml}static toAttribute(a,f){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(a===void 0){if(l)return f}else if(l||a!==f)return a.toString()}static toStringAttribute(a,f){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return h.toAttribute(a,f,l)}static toStringValue(a,f){return a===void 0?f:a}static toBoolAttribute(a,f){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(a===void 0){if(l)return f}else if(l||a!==f)return a?"1":"0"}static toBoolValue(a,f){return a===void 0?f:a==="1"}static toIntAttribute(a,f){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return h.toAttribute(a,f,l)}static toIntValue(a,f){return a===void 0?f:parseInt(a,10)}static toFloatAttribute(a,f){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return h.toAttribute(a,f,l)}static toFloatValue(a,f){return a===void 0?f:parseFloat(a)}}n.exports=h},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,n,i){const s=e("../base-xform"),o=e("../../../utils/col-cache");class h extends s{render(l,u){l.openNode("definedName",{name:u.name,localSheetId:u.localSheetId}),l.writeText(u.ranges.join(",")),l.closeNode()}parseOpen(l){switch(l.name){case"definedName":return this._parsedName=l.attributes.name,this._parsedLocalSheetId=l.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(l){this._parsedText.push(l)}parseClose(){return this.model={name:this._parsedName,ranges:a(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}function c(f){try{return o.decodeEx(f),!0}catch{return!1}}function a(f){const l=[];let u=!1,p="";return f.split(",").forEach(m=>{if(!m)return;const d=(m.match(/'/g)||[]).length;if(!d){u?p+=`${m},`:c(m)&&l.push(m);return}const v=d%2===0;!u&&v&&c(m)?l.push(m):u&&!v?(u=!1,c(p+m)&&l.push(p+m),p=""):(u=!0,p+=`${m},`)}),l}n.exports=h},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,n,i){const s=e("../../../utils/utils"),o=e("../base-xform");class h extends o{render(a,f){a.leafNode("sheet",{sheetId:f.id,name:f.name,state:f.state,"r:id":f.rId})}parseOpen(a){return a.name==="sheet"?(this.model={name:s.xmlDecode(a.attributes.name),id:parseInt(a.attributes.sheetId,10),state:a.attributes.state,rId:a.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}n.exports=h},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,n,i){const s=e("../base-xform");class o extends s{render(c,a){c.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:a.fullCalcOnLoad?1:void 0})}parseOpen(c){return c.name==="calcPr"?(this.model={},!0):!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],36:[function(e,n,i){const s=e("../base-xform");class o extends s{render(c,a){c.leafNode("workbookPr",{date1904:a.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(c){return c.name==="workbookPr"?(this.model={date1904:c.attributes.date1904==="1"},!0):!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],37:[function(e,n,i){const s=e("../base-xform");class o extends s{render(c,a){const f={xWindow:a.x||0,yWindow:a.y||0,windowWidth:a.width||12e3,windowHeight:a.height||24e3,firstSheet:a.firstSheet,activeTab:a.activeTab};a.visibility&&a.visibility!=="visible"&&(f.visibility=a.visibility),c.leafNode("workbookView",f)}parseOpen(c){if(c.name==="workbookView"){const a=this.model={},f=function(u,p,m){const d=p!==void 0?a[u]=p:m;d!==void 0&&(a[u]=d)},l=function(u,p,m){const d=p!==void 0?a[u]=parseInt(p,10):m;d!==void 0&&(a[u]=d)};return l("x",c.attributes.xWindow,0),l("y",c.attributes.yWindow,0),l("width",c.attributes.windowWidth,25e3),l("height",c.attributes.windowHeight,1e4),f("visibility",c.attributes.visibility,"visible"),l("activeTab",c.attributes.activeTab,void 0),l("firstSheet",c.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],38:[function(e,n,i){const s=e("../../../utils/under-dash"),o=e("../../../utils/col-cache"),h=e("../../../utils/xml-stream"),c=e("../base-xform"),a=e("../static-xform"),f=e("../list-xform"),l=e("./defined-name-xform"),u=e("./sheet-xform"),p=e("./workbook-view-xform"),m=e("./workbook-properties-xform"),d=e("./workbook-calc-properties-xform");class v extends c{constructor(){super(),this.map={fileVersion:v.STATIC_XFORMS.fileVersion,workbookPr:new m,bookViews:new f({tag:"bookViews",count:!1,childXform:new p}),sheets:new f({tag:"sheets",count:!1,childXform:new u}),definedNames:new f({tag:"definedNames",count:!1,childXform:new l}),calcPr:new d}}prepare(g){g.sheets=g.worksheets;const b=[];let w=0;g.sheets.forEach(y=>{if(y.pageSetup&&y.pageSetup.printArea&&y.pageSetup.printArea.split("&&").forEach(T=>{const C=T.split(":"),M={name:"_xlnm.Print_Area",ranges:[`'${y.name}'!$${C[0]}:$${C[1]}`],localSheetId:w};b.push(M)}),y.pageSetup&&(y.pageSetup.printTitlesRow||y.pageSetup.printTitlesColumn)){const T=[];if(y.pageSetup.printTitlesColumn){const M=y.pageSetup.printTitlesColumn.split(":");T.push(`'${y.name}'!$${M[0]}:$${M[1]}`)}if(y.pageSetup.printTitlesRow){const M=y.pageSetup.printTitlesRow.split(":");T.push(`'${y.name}'!$${M[0]}:$${M[1]}`)}const C={name:"_xlnm.Print_Titles",ranges:T,localSheetId:w};b.push(C)}w++}),b.length&&(g.definedNames=g.definedNames.concat(b)),(g.media||[]).forEach((y,T)=>{y.name=y.type+(T+1)})}render(g,b){g.openXml(h.StdDocAttributes),g.openNode("workbook",v.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(g),this.map.workbookPr.render(g,b.properties),this.map.bookViews.render(g,b.views),this.map.sheets.render(g,b.sheets),this.map.definedNames.render(g,b.definedNames),this.map.calcPr.render(g,b.calcProperties),g.closeNode()}parseOpen(g){if(this.parser)return this.parser.parseOpen(g),!0;switch(g.name){case"workbook":return!0;default:return this.parser=this.map[g.name],this.parser&&this.parser.parseOpen(g),!0}}parseText(g){this.parser&&this.parser.parseText(g)}parseClose(g){if(this.parser)return this.parser.parseClose(g)||(this.parser=void 0),!0;switch(g){case"workbook":return 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;default:return!0}}reconcile(g){const b=(g.workbookRels||[]).reduce((M,I)=>(M[I.Id]=I,M),{}),w=[];let y,T=0;(g.sheets||[]).forEach(M=>{const I=b[M.rId];I&&(y=g.worksheetHash[`xl/${I.Target.replace(/^(\s|\/xl\/)+/,"")}`],y&&(y.name=M.name,y.id=M.id,y.state=M.state,w[T++]=y))});const C=[];s.each(g.definedNames,M=>{if(M.name==="_xlnm.Print_Area"){if(y=w[M.localSheetId],y){y.pageSetup||(y.pageSetup={});const I=o.decodeEx(M.ranges[0]);y.pageSetup.printArea=y.pageSetup.printArea?`${y.pageSetup.printArea}&&${I.dimensions}`:I.dimensions}}else if(M.name==="_xlnm.Print_Titles"){if(y=w[M.localSheetId],y){y.pageSetup||(y.pageSetup={});const I=M.ranges.join(","),B=/\$/g,U=/\$\d+:\$\d+/,j=I.match(U);if(j&&j.length){const L=j[0];y.pageSetup.printTitlesRow=L.replace(B,"")}const H=/\$[A-Z]+:\$[A-Z]+/,G=I.match(H);if(G&&G.length){const L=G[0];y.pageSetup.printTitlesColumn=L.replace(B,"")}}}else C.push(M)}),g.definedNames=C,g.media.forEach((M,I)=>{M.index=I})}}v.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"},v.STATIC_XFORMS={fileVersion:new a({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},n.exports=v},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,n,i){const s=e("../strings/rich-text-xform"),o=e("../../../utils/utils"),h=e("../base-xform"),c=n.exports=function(a){this.model=a};o.inherits(c,h,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new s),this._richTextXform},render(a,f){f=f||this.model,a.openNode("comment",{ref:f.ref,authorId:0}),a.openNode("text"),f&&f.note&&f.note.texts&&f.note.texts.forEach(l=>{this.richTextXform.render(a,l)}),a.closeNode(),a.closeNode()},parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"comment":return this.model={type:"note",note:{texts:[]},...a.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(a),!0;default:return!1}},parseText(a){this.parser&&this.parser.parseText(a)},parseClose(a){switch(a){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(a),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,n,i){const s=e("../../../utils/xml-stream"),o=e("../../../utils/utils"),h=e("../base-xform"),c=e("./comment-xform"),a=n.exports=function(){this.map={comment:new c}};o.inherits(a,h,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(f,l){l=l||this.model,f.openXml(s.StdDocAttributes),f.openNode("comments",a.COMMENTS_ATTRIBUTES),f.openNode("authors"),f.leafNode("author",null,"Author"),f.closeNode(),f.openNode("commentList"),l.comments.forEach(u=>{this.map.comment.render(f,u)}),f.closeNode(),f.closeNode()},parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(f),!0;default:return!1}},parseText(f){this.parser&&this.parser.parseText(f)},parseClose(f){switch(f){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(f),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,n,i){const s=e("../../base-xform");class o extends s{constructor(c){super(),this._model=c}get tag(){return this._model&&this._model.tag}render(c,a,f){a===f[2]?c.leafNode(this.tag):this.tag==="x:SizeWithCells"&&a===f[1]&&c.leafNode(this.tag)}parseOpen(c){switch(c.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}n.exports=o},{"../../base-xform":32}],42:[function(e,n,i){const s=e("../../base-xform");class o extends s{constructor(c){super(),this._model=c}get tag(){return this._model&&this._model.tag}render(c,a){c.leafNode(this.tag,null,a)}parseOpen(c){switch(c.name){case this.tag:return this.text="",!0;default:return!1}}parseText(c){this.text=c}parseClose(){return!1}}n.exports=o},{"../../base-xform":32}],43:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"x:Anchor"}getAnchorRect(c){const a=Math.floor(c.left),f=Math.floor((c.left-a)*68),l=Math.floor(c.top),u=Math.floor((c.top-l)*18),p=Math.floor(c.right),m=Math.floor((c.right-p)*68),d=Math.floor(c.bottom),v=Math.floor((c.bottom-d)*18);return[a,f,l,u,p,m,d,v]}getDefaultRect(c){const a=c.col,f=6,l=Math.max(c.row-2,0),u=14,p=a+2,m=2,d=l+4;return[a,f,l,u,p,m,d,16]}render(c,a){const f=a.anchor?this.getAnchorRect(a.anchor):this.getDefaultRect(a.refAddress);c.leafNode("x:Anchor",null,f.join(", "))}parseOpen(c){switch(c.name){case this.tag:return this.text="",!0;default:return!1}}parseText(c){this.text=c}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],44:[function(e,n,i){const s=e("../base-xform"),o=e("./vml-anchor-xform"),h=e("./style/vml-protection-xform"),c=e("./style/vml-position-xform"),a=["twoCells","oneCells","absolute"];class f extends s{constructor(){super(),this.map={"x:Anchor":new o,"x:Locked":new h({tag:"x:Locked"}),"x:LockText":new h({tag:"x:LockText"}),"x:SizeWithCells":new c({tag:"x:SizeWithCells"}),"x:MoveWithCells":new c({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(u,p){const{protection:m,editAs:d}=p.note;u.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(u,d,a),this.map["x:SizeWithCells"].render(u,d,a),this.map["x:Anchor"].render(u,p),this.map["x:Locked"].render(u,m.locked),u.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(u,m.lockText),u.leafNode("x:Row",null,p.refAddress.row-1),u.leafNode("x:Column",null,p.refAddress.col-1),u.closeNode()}parseOpen(u){switch(u.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u);break}return!0}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const u=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),p=Object.keys(u).length;this.model.editAs=a[p],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}}n.exports=f},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,n,i){const s=e("../../../utils/xml-stream"),o=e("../base-xform"),h=e("./vml-shape-xform");class c extends o{constructor(){super(),this.map={"v:shape":new h}}get tag(){return"xml"}render(f,l){f.openXml(s.StdDocAttributes),f.openNode(this.tag,c.DRAWING_ATTRIBUTES),f.openNode("o:shapelayout",{"v:ext":"edit"}),f.leafNode("o:idmap",{"v:ext":"edit",data:1}),f.closeNode(),f.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),f.leafNode("v:stroke",{joinstyle:"miter"}),f.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),f.closeNode(),l.comments.forEach((u,p)=>{this.map["v:shape"].render(f,u,p)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f);break}return!0}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(f){case this.tag:return!1;default:return!0}}reconcile(f,l){f.anchors.forEach(u=>{u.br?this.map["xdr:twoCellAnchor"].reconcile(u,l):this.map["xdr:oneCellAnchor"].reconcile(u,l)})}}c.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"},n.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,n,i){const s=e("../base-xform"),o=e("./vml-textbox-xform"),h=e("./vml-client-data-xform");class c extends s{constructor(){super(),this.map={"v:textbox":new o,"x:ClientData":new h}}get tag(){return"v:shape"}render(f,l,u){f.openNode("v:shape",c.V_SHAPE_ATTRIBUTES(l,u)),f.leafNode("v:fill",{color2:"infoBackground [80]"}),f.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),f.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(f,l),this.map["x:ClientData"].render(f,l),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset(),this.model={margins:{insetmode:f.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f);break}return!0}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case this.tag:return 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;default:return!0}}}c.V_SHAPE_ATTRIBUTES=(a,f)=>({id:`_x0000_s${1025+f}`,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}),n.exports=c},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"v:textbox"}conversionUnit(c,a,f){return`${parseFloat(c)*a.toFixed(2)}${f}`}reverseConversionUnit(c){return(c||"").split(",").map(a=>Number(parseFloat(this.conversionUnit(parseFloat(a),.1,"")).toFixed(2)))}render(c,a){const f={style:"mso-direction-alt:auto"};if(a&&a.note){let{inset:l}=a.note&&a.note.margins;Array.isArray(l)&&(l=l.map(u=>this.conversionUnit(u,10,"mm")).join(",")),l&&(f.inset=l)}c.openNode("v:textbox",f),c.leafNode("div",{style:"text-align:left"}),c.closeNode()}parseOpen(c){switch(c.name){case this.tag:return this.model={inset:this.reverseConversionUnit(c.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(c){switch(c){case this.tag:return!1;default:return!0}}}n.exports=o},{"../base-xform":32}],48:[function(e,n,i){const s=e("./base-xform");class o extends s{createNewModel(c){return{}}parseOpen(c){return this.parser=this.parser||this.map[c.name],this.parser?(this.parser.parseOpen(c),!0):c.name===this.tag?(this.model=this.createNewModel(c),!0):!1}parseText(c){this.parser&&this.parser.parseText(c)}onParserClose(c,a){this.model[c]=a.model}parseClose(c){return this.parser?(this.parser.parseClose(c)||(this.onParserClose(c,this.parser),this.parser=void 0),!0):c!==this.tag}}n.exports=o},{"./base-xform":32}],49:[function(e,n,i){const s=e("../base-xform");class o extends s{render(c,a){c.openNode("HeadingPairs"),c.openNode("vt:vector",{size:2,baseType:"variant"}),c.openNode("vt:variant"),c.leafNode("vt:lpstr",void 0,"Worksheets"),c.closeNode(),c.openNode("vt:variant"),c.leafNode("vt:i4",void 0,a.length),c.closeNode(),c.closeNode(),c.closeNode()}parseOpen(c){return c.name==="HeadingPairs"}parseText(){}parseClose(c){return c!=="HeadingPairs"}}n.exports=o},{"../base-xform":32}],50:[function(e,n,i){const s=e("../base-xform");class o extends s{render(c,a){c.openNode("TitlesOfParts"),c.openNode("vt:vector",{size:a.length,baseType:"lpstr"}),a.forEach(f=>{c.leafNode("vt:lpstr",void 0,f.name)}),c.closeNode(),c.closeNode()}parseOpen(c){return c.name==="TitlesOfParts"}parseText(){}parseClose(c){return c!=="TitlesOfParts"}}n.exports=o},{"../base-xform":32}],51:[function(e,n,i){const s=e("../../../utils/xml-stream"),o=e("../base-xform"),h=e("../simple/string-xform"),c=e("./app-heading-pairs-xform"),a=e("./app-titles-of-parts-xform");class f extends o{constructor(){super(),this.map={Company:new h({tag:"Company"}),Manager:new h({tag:"Manager"}),HeadingPairs:new c,TitleOfParts:new a}}render(u,p){u.openXml(s.StdDocAttributes),u.openNode("Properties",f.PROPERTY_ATTRIBUTES),u.leafNode("Application",void 0,"Microsoft Excel"),u.leafNode("DocSecurity",void 0,"0"),u.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(u,p.worksheets),this.map.TitleOfParts.render(u,p.worksheets),this.map.Company.render(u,p.company||""),this.map.Manager.render(u,p.manager),u.leafNode("LinksUpToDate",void 0,"false"),u.leafNode("SharedDoc",void 0,"false"),u.leafNode("HyperlinksChanged",void 0,"false"),u.leafNode("AppVersion",void 0,"16.0300"),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"Properties":return!0;default:return this.parser=this.map[u.name],this.parser?(this.parser.parseOpen(u),!0):!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}f.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3,6}/,"")},f.DateAttrs={"xsi:type":"dcterms:W3CDTF"},f.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},n.exports=f},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,n,i){const s=e("../../../utils/xml-stream"),o=e("../base-xform");class h extends o{render(a,f){a.openXml(s.StdDocAttributes),a.openNode("Types",h.PROPERTY_ATTRIBUTES);const l={};(f.media||[]).forEach(p=>{if(p.type==="image"){const m=p.extension;l[m]||(l[m]=!0,a.leafNode("Default",{Extension:m,ContentType:`image/${m}`}))}}),a.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),a.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),a.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),f.worksheets.forEach(p=>{const m=`/xl/worksheets/sheet${p.id}.xml`;a.leafNode("Override",{PartName:m,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),a.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),a.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),f.sharedStrings&&f.sharedStrings.count&&a.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),f.tables&&f.tables.forEach(p=>{a.leafNode("Override",{PartName:`/xl/tables/${p.target}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),f.drawings&&f.drawings.forEach(p=>{a.leafNode("Override",{PartName:`/xl/drawings/${p.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),f.commentRefs&&(a.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),f.commentRefs.forEach(p=>{let{commentName:m}=p;a.leafNode("Override",{PartName:`/xl/${m}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),a.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),a.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),a.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}h.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},n.exports=h},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,n,i){const s=e("../../../utils/xml-stream"),o=e("../base-xform"),h=e("../simple/date-xform"),c=e("../simple/string-xform"),a=e("../simple/integer-xform");class f extends o{constructor(){super(),this.map={"dc:creator":new c({tag:"dc:creator"}),"dc:title":new c({tag:"dc:title"}),"dc:subject":new c({tag:"dc:subject"}),"dc:description":new c({tag:"dc:description"}),"dc:identifier":new c({tag:"dc:identifier"}),"dc:language":new c({tag:"dc:language"}),"cp:keywords":new c({tag:"cp:keywords"}),"cp:category":new c({tag:"cp:category"}),"cp:lastModifiedBy":new c({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new h({tag:"cp:lastPrinted",format:f.DateFormat}),"cp:revision":new a({tag:"cp:revision"}),"cp:version":new c({tag:"cp:version"}),"cp:contentStatus":new c({tag:"cp:contentStatus"}),"cp:contentType":new c({tag:"cp:contentType"}),"dcterms:created":new h({tag:"dcterms:created",attrs:f.DateAttrs,format:f.DateFormat}),"dcterms:modified":new h({tag:"dcterms:modified",attrs:f.DateAttrs,format:f.DateFormat})}}render(u,p){u.openXml(s.StdDocAttributes),u.openNode("cp:coreProperties",f.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(u,p.creator),this.map["dc:title"].render(u,p.title),this.map["dc:subject"].render(u,p.subject),this.map["dc:description"].render(u,p.description),this.map["dc:identifier"].render(u,p.identifier),this.map["dc:language"].render(u,p.language),this.map["cp:keywords"].render(u,p.keywords),this.map["cp:category"].render(u,p.category),this.map["cp:lastModifiedBy"].render(u,p.lastModifiedBy),this.map["cp:lastPrinted"].render(u,p.lastPrinted),this.map["cp:revision"].render(u,p.revision),this.map["cp:version"].render(u,p.version),this.map["cp:contentStatus"].render(u,p.contentStatus),this.map["cp:contentType"].render(u,p.contentType),this.map["dcterms:created"].render(u,p.created),this.map["dcterms:modified"].render(u,p.modified),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[u.name],this.parser)return this.parser.parseOpen(u),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(u)}`)}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){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: ${u}`)}}}f.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3}/,"")},f.DateAttrs={"xsi:type":"dcterms:W3CDTF"},f.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"},n.exports=f},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,n,i){const s=e("../base-xform");class o extends s{render(c,a){c.leafNode("Relationship",a)}parseOpen(c){switch(c.name){case"Relationship":return this.model=c.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],55:[function(e,n,i){const s=e("../../../utils/xml-stream"),o=e("../base-xform"),h=e("./relationship-xform");class c extends o{constructor(){super(),this.map={Relationship:new h}}render(f,l){l=l||this._values,f.openXml(s.StdDocAttributes),f.openNode("Relationships",c.RELATIONSHIPS_ATTRIBUTES),l.forEach(u=>{this.map.Relationship.render(f,u)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[f.name],this.parser)return this.parser.parseOpen(f),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(f)}`)}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(f){case"Relationships":return!1;default:throw new Error(`Unexpected xml node in parseClose: ${f}`)}}}c.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},n.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,n,i){const s=e("../base-xform");class o extends s{parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:this.reset(),this.model={range:{editAs:c.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c);break}return!0}parseText(c){this.parser&&this.parser.parseText(c)}reconcilePicture(c,a){if(c&&c.rId){const l=a.rels[c.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(l){const u=l[1],p=a.mediaIndex[u];return a.media[p]}}}}n.exports=o},{"../base-xform":32}],57:[function(e,n,i){const s=e("../base-xform"),o=e("./blip-xform");class h extends s{constructor(){super(),this.map={"a:blip":new o}}get tag(){return"xdr:blipFill"}render(a,f){a.openNode(this.tag),this.map["a:blip"].render(a,f),a.openNode("a:stretch"),a.leafNode("a:fillRect"),a.closeNode(),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a);break}return!0}parseText(){}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}n.exports=h},{"../base-xform":32,"./blip-xform":58}],58:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"a:blip"}render(c,a){c.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":a.rId,cstate:"print"})}parseOpen(c){switch(c.name){case this.tag:return this.model={rId:c.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(c){switch(c){case this.tag:return!1;default:return!0}}}n.exports=o},{"../base-xform":32}],59:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"xdr:cNvPicPr"}render(c){c.openNode(this.tag),c.leafNode("a:picLocks",{noChangeAspect:"1"}),c.closeNode()}parseOpen(c){switch(c.name){case this.tag:return!0;default:return!0}}parseText(){}parseClose(c){switch(c){case this.tag:return!1;default:return!0}}}n.exports=o},{"../base-xform":32}],60:[function(e,n,i){const s=e("../base-xform"),o=e("./hlink-click-xform"),h=e("./ext-lst-xform");class c extends s{constructor(){super(),this.map={"a:hlinkClick":new o,"a:extLst":new h}}get tag(){return"xdr:cNvPr"}render(f,l){f.openNode(this.tag,{id:l.index,name:`Picture ${l.index}`}),this.map["a:hlinkClick"].render(f,l),this.map["a:extLst"].render(f,l),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset();break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f);break}return!0}parseText(){}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}n.exports=c},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,n,i){const s=e("../base-xform"),o=e("../simple/integer-xform");class h extends s{constructor(a){super(),this.tag=a.tag,this.map={"xdr:col":new o({tag:"xdr:col",zero:!0}),"xdr:colOff":new o({tag:"xdr:colOff",zero:!0}),"xdr:row":new o({tag:"xdr:row",zero:!0}),"xdr:rowOff":new o({tag:"xdr:rowOff",zero:!0})}}render(a,f){a.openNode(this.tag),this.map["xdr:col"].render(a,f.nativeCol),this.map["xdr:colOff"].render(a,f.nativeColOff),this.map["xdr:row"].render(a,f.nativeRow),this.map["xdr:rowOff"].render(a,f.nativeRowOff),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset();break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a);break}return!0}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.parser=void 0),!0;switch(a){case this.tag:return 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;default:return!0}}}n.exports=h},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,n,i){const s=e("../../../utils/col-cache"),o=e("../../../utils/xml-stream"),h=e("../base-xform"),c=e("./two-cell-anchor-xform"),a=e("./one-cell-anchor-xform");function f(u){return(typeof u.range=="string"?s.decode(u.range):u.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}class l extends h{constructor(){super(),this.map={"xdr:twoCellAnchor":new c,"xdr:oneCellAnchor":new a}}prepare(p){p.anchors.forEach((m,d)=>{m.anchorType=f(m),this.map[m.anchorType].prepare(m,{index:d})})}get tag(){return"xdr:wsDr"}render(p,m){p.openXml(o.StdDocAttributes),p.openNode(this.tag,l.DRAWING_ATTRIBUTES),m.anchors.forEach(d=>{this.map[d.anchorType].render(p,d)}),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p);break}return!0}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(p){case this.tag:return!1;default:return!0}}reconcile(p,m){p.anchors.forEach(d=>{d.br?this.map["xdr:twoCellAnchor"].reconcile(d,m):this.map["xdr:oneCellAnchor"].reconcile(d,m)})}}l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},n.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"a:extLst"}render(c){c.openNode(this.tag),c.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),c.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),c.closeNode(),c.closeNode()}parseOpen(c){switch(c.name){case this.tag:return!0;default:return!0}}parseText(){}parseClose(c){switch(c){case this.tag:return!1;default:return!0}}}n.exports=o},{"../base-xform":32}],64:[function(e,n,i){const s=e("../base-xform"),o=9525;class h extends s{constructor(a){super(),this.tag=a.tag,this.map={}}render(a,f){a.openNode(this.tag);const l=Math.floor(f.width*o),u=Math.floor(f.height*o);a.addAttribute("cx",l),a.addAttribute("cy",u),a.closeNode()}parseOpen(a){return a.name===this.tag?(this.model={width:parseInt(a.attributes.cx||"0",10)/o,height:parseInt(a.attributes.cy||"0",10)/o},!0):!1}parseText(){}parseClose(){return!1}}n.exports=h},{"../base-xform":32}],65:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"a:hlinkClick"}render(c,a){a.hyperlinks&&a.hyperlinks.rId&&c.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":a.hyperlinks.rId,tooltip:a.hyperlinks.tooltip})}parseOpen(c){switch(c.name){case this.tag:return this.model={hyperlinks:{rId:c.attributes["r:id"],tooltip:c.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],66:[function(e,n,i){const s=e("../base-xform"),o=e("./c-nv-pr-xform"),h=e("./c-nv-pic-pr-xform");class c extends s{constructor(){super(),this.map={"xdr:cNvPr":new o,"xdr:cNvPicPr":new h}}get tag(){return"xdr:nvPicPr"}render(f,l){f.openNode(this.tag),this.map["xdr:cNvPr"].render(f,l),this.map["xdr:cNvPicPr"].render(f,l),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset();break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f);break}return!0}parseText(){}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}n.exports=c},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,n,i){const s=e("./base-cell-anchor-xform"),o=e("../static-xform"),h=e("./cell-position-xform"),c=e("./ext-xform"),a=e("./pic-xform");class f extends s{constructor(){super(),this.map={"xdr:from":new h({tag:"xdr:from"}),"xdr:ext":new c({tag:"xdr:ext"}),"xdr:pic":new a,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(u,p){this.map["xdr:pic"].prepare(u.picture,p)}render(u,p){u.openNode(this.tag,{editAs:p.range.editAs||"oneCell"}),this.map["xdr:from"].render(u,p.range.tl),this.map["xdr:ext"].render(u,p.range.ext),this.map["xdr:pic"].render(u,p.picture),this.map["xdr:clientData"].render(u,{}),u.closeNode()}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return 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;default:return!0}}reconcile(u,p){u.medium=this.reconcilePicture(u.picture,p)}}n.exports=f},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,n,i){const s=e("../base-xform"),o=e("../static-xform"),h=e("./blip-fill-xform"),c=e("./nv-pic-pr-xform"),a=e("./sp-pr");class f extends s{constructor(){super(),this.map={"xdr:nvPicPr":new c,"xdr:blipFill":new h,"xdr:spPr":new o(a)}}get tag(){return"xdr:pic"}prepare(u,p){u.index=p.index+1}render(u,p){u.openNode(this.tag),this.map["xdr:nvPicPr"].render(u,p),this.map["xdr:blipFill"].render(u,p),this.map["xdr:spPr"].render(u,p),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.tag:this.reset();break;default:this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u);break}return!0}parseText(){}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(u){case this.tag:return!1;default:return!0}}}n.exports=f},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,n,i){n.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,n,i){const s=e("./base-cell-anchor-xform"),o=e("../static-xform"),h=e("./cell-position-xform"),c=e("./pic-xform");class a extends s{constructor(){super(),this.map={"xdr:from":new h({tag:"xdr:from"}),"xdr:to":new h({tag:"xdr:to"}),"xdr:pic":new c,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(l,u){this.map["xdr:pic"].prepare(l.picture,u)}render(l,u){l.openNode(this.tag,{editAs:u.range.editAs||"oneCell"}),this.map["xdr:from"].render(l,u.range.tl),this.map["xdr:to"].render(l,u.range.br),this.map["xdr:pic"].render(l,u.picture),this.map["xdr:clientData"].render(l,{}),l.closeNode()}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return 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;default:return!0}}reconcile(l,u){l.medium=this.reconcilePicture(l.picture,u)}}n.exports=a},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,n,i){const s=e("./base-xform");class o extends s{constructor(c){super(),this.tag=c.tag,this.always=!!c.always,this.count=c.count,this.empty=c.empty,this.$count=c.$count||"count",this.$=c.$,this.childXform=c.childXform,this.maxItems=c.maxItems}prepare(c,a){const{childXform:f}=this;c&&c.forEach((l,u)=>{a.index=u,f.prepare(l,a)})}render(c,a){if(this.always||a&&a.length){c.openNode(this.tag,this.$),this.count&&c.addAttribute(this.$count,a&&a.length||0);const{childXform:f}=this;(a||[]).forEach((l,u)=>{f.render(c,l,u)}),c.closeNode()}else this.empty&&c.leafNode(this.tag)}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case this.tag:return this.model=[],!0;default:return this.childXform.parseOpen(c)?(this.parser=this.childXform,!0):!1}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser){if(!this.parser.parseClose(c)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(c,a){if(c){const{childXform:f}=this;c.forEach(l=>{f.reconcile(l,a)})}}}n.exports=o},{"./base-xform":32}],72:[function(e,n,i){const s=e("../../../utils/col-cache"),o=e("../base-xform");class h extends o{get tag(){return"autoFilter"}render(a,f){if(f)if(typeof f=="string")a.leafNode("autoFilter",{ref:f});else{const l=function(m){return typeof m=="string"?m:s.getAddress(m.row,m.column).address},u=l(f.from),p=l(f.to);u&&p&&a.leafNode("autoFilter",{ref:`${u}:${p}`})}}parseOpen(a){a.name==="autoFilter"&&(this.model=a.attributes.ref)}}n.exports=h},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,n,i){const s=e("../../../utils/utils"),o=e("../base-xform"),h=e("../../../doc/range"),c=e("../../../doc/enums"),a=e("../strings/rich-text-xform");function f(p){if(p==null)return c.ValueType.Null;if(p instanceof String||typeof p=="string")return c.ValueType.String;if(typeof p=="number")return c.ValueType.Number;if(typeof p=="boolean")return c.ValueType.Boolean;if(p instanceof Date)return c.ValueType.Date;if(p.text&&p.hyperlink)return c.ValueType.Hyperlink;if(p.formula)return c.ValueType.Formula;if(p.error)return c.ValueType.Error;throw new Error("I could not understand type of value")}function l(p){switch(p.type){case c.ValueType.Formula:return f(p.result);default:return p.type}}class u extends o{constructor(){super(),this.richTextXForm=new a}get tag(){return"c"}prepare(m,d){const v=d.styles.addStyleModel(m.style||{},l(m));switch(v&&(m.styleId=v),m.comment&&d.comments.push({...m.comment,ref:m.address}),m.type){case c.ValueType.String:case c.ValueType.RichText:d.sharedStrings&&(m.ssId=d.sharedStrings.add(m.value));break;case c.ValueType.Date:d.date1904&&(m.date1904=!0);break;case c.ValueType.Hyperlink:d.sharedStrings&&m.text!==void 0&&m.text!==null&&(m.ssId=d.sharedStrings.add(m.text)),d.hyperlinks.push({address:m.address,target:m.hyperlink,tooltip:m.tooltip});break;case c.ValueType.Merge:d.merges.add(m);break;case c.ValueType.Formula:if(d.date1904&&(m.date1904=!0),m.shareType==="shared"&&(m.si=d.siFormulae++),m.formula)d.formulae[m.address]=m;else if(m.sharedFormula){const x=d.formulae[m.sharedFormula];if(!x)throw new Error(`Shared Formula master must exist above and or left of clone for cell ${m.address}`);x.si===void 0?(x.shareType="shared",x.si=d.siFormulae++,x.range=new h(x.address,m.address)):x.range&&x.range.expandToAddress(m.address),m.si=x.si}break}}renderFormula(m,d){let v=null;switch(d.shareType){case"shared":v={t:"shared",ref:d.ref||d.range.range,si:d.si};break;case"array":v={t:"array",ref:d.ref};break;default:d.si!==void 0&&(v={t:"shared",si:d.si});break}switch(f(d.result)){case c.ValueType.Null:m.leafNode("f",v,d.formula);break;case c.ValueType.String:m.addAttribute("t","str"),m.leafNode("f",v,d.formula),m.leafNode("v",null,d.result);break;case c.ValueType.Number:m.leafNode("f",v,d.formula),m.leafNode("v",null,d.result);break;case c.ValueType.Boolean:m.addAttribute("t","b"),m.leafNode("f",v,d.formula),m.leafNode("v",null,d.result?1:0);break;case c.ValueType.Error:m.addAttribute("t","e"),m.leafNode("f",v,d.formula),m.leafNode("v",null,d.result.error);break;case c.ValueType.Date:m.leafNode("f",v,d.formula),m.leafNode("v",null,s.dateToExcel(d.result,d.date1904));break;default:throw new Error("I could not understand type of value")}}render(m,d){if(!(d.type===c.ValueType.Null&&!d.styleId)){switch(m.openNode("c"),m.addAttribute("r",d.address),d.styleId&&m.addAttribute("s",d.styleId),d.type){case c.ValueType.Null:break;case c.ValueType.Number:m.leafNode("v",null,d.value);break;case c.ValueType.Boolean:m.addAttribute("t","b"),m.leafNode("v",null,d.value?"1":"0");break;case c.ValueType.Error:m.addAttribute("t","e"),m.leafNode("v",null,d.value.error);break;case c.ValueType.String:case c.ValueType.RichText:d.ssId!==void 0?(m.addAttribute("t","s"),m.leafNode("v",null,d.ssId)):d.value&&d.value.richText?(m.addAttribute("t","inlineStr"),m.openNode("is"),d.value.richText.forEach(v=>{this.richTextXForm.render(m,v)}),m.closeNode("is")):(m.addAttribute("t","str"),m.leafNode("v",null,d.value));break;case c.ValueType.Date:m.leafNode("v",null,s.dateToExcel(d.value,d.date1904));break;case c.ValueType.Hyperlink:d.ssId!==void 0?(m.addAttribute("t","s"),m.leafNode("v",null,d.ssId)):(m.addAttribute("t","str"),m.leafNode("v",null,d.text));break;case c.ValueType.Formula:this.renderFormula(m,d);break;case c.ValueType.Merge:break}m.closeNode()}}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case"c":return this.model={address:m.attributes.r},this.t=m.attributes.t,m.attributes.s&&(this.model.styleId=parseInt(m.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=m.attributes.si,this.model.shareType=m.attributes.t,this.model.ref=m.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(m),!0;default:return!1}}parseText(m){if(this.parser){this.parser.parseText(m);return}switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+m:m;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+m:m:this.model.value=this.model.value?this.model.value+m:m;break}}parseClose(m){switch(m){case"c":{const{model:d}=this;if(d.formula||d.shareType)d.type=c.ValueType.Formula,d.value&&(this.t==="str"?d.result=s.xmlDecode(d.value):this.t==="b"?d.result=parseInt(d.value,10)!==0:this.t==="e"?d.result={error:d.value}:d.result=parseFloat(d.value),d.value=void 0);else if(d.value!==void 0)switch(this.t){case"s":d.type=c.ValueType.String,d.value=parseInt(d.value,10);break;case"str":d.type=c.ValueType.String,d.value=s.xmlDecode(d.value);break;case"inlineStr":d.type=c.ValueType.String;break;case"b":d.type=c.ValueType.Boolean,d.value=parseInt(d.value,10)!==0;break;case"e":d.type=c.ValueType.Error,d.value={error:d.value};break;default:d.type=c.ValueType.Number,d.value=parseFloat(d.value);break}else d.styleId?d.type=c.ValueType.Null:d.type=c.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(m),!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(m),!0):!1}}reconcile(m,d){const v=m.styleId&&d.styles&&d.styles.getStyleModel(m.styleId);switch(v&&(m.style=v),m.styleId!==void 0&&(m.styleId=void 0),m.type){case c.ValueType.String:typeof m.value=="number"&&d.sharedStrings&&(m.value=d.sharedStrings.getString(m.value)),m.value.richText&&(m.type=c.ValueType.RichText);break;case c.ValueType.Number:v&&s.isDateFmt(v.numFmt)&&(m.type=c.ValueType.Date,m.value=s.excelToDate(m.value,d.date1904));break;case c.ValueType.Formula:m.result!==void 0&&v&&s.isDateFmt(v.numFmt)&&(m.result=s.excelToDate(m.result,d.date1904)),m.shareType==="shared"&&(m.ref?d.formulae[m.si]=m.address:(m.sharedFormula=d.formulae[m.si],delete m.shareType),delete m.si);break}const x=d.hyperlinkMap[m.address];x&&(m.type===c.ValueType.Formula?(m.text=m.result,m.result=void 0):(m.text=m.value,m.value=void 0),m.type=c.ValueType.Hyperlink,m.hyperlink=x);const g=d.commentsMap&&d.commentsMap[m.address];g&&(m.comment=g)}}n.exports=u},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,n,i){const s=e("../../base-xform");class o extends s{get tag(){return"x14:cfIcon"}render(c,a){c.leafNode(this.tag,{iconSet:a.iconSet,iconId:a.iconId})}parseOpen(c){let{attributes:a}=c;this.model={iconSet:a.iconSet,iconId:s.toIntValue(a.iconId)}}parseClose(c){return c!==this.tag}}n.exports=o},{"../../base-xform":32}],75:[function(e,n,i){const{v4:s}=e("uuid"),o=e("../../base-xform"),h=e("../../composite-xform"),c=e("./databar-ext-xform"),a=e("./icon-set-ext-xform"),f={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class l extends h{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new c,"x14:iconSet":this.iconSetXform=new a}}get tag(){return"x14:cfRule"}static isExt(p){return p.type==="dataBar"?c.isExt(p):!!(p.type==="iconSet"&&(p.custom||f[p.iconSet]))}prepare(p){l.isExt(p)&&(p.x14Id=`{${s()}}`.toUpperCase())}render(p,m){if(l.isExt(m))switch(m.type){case"dataBar":this.renderDataBar(p,m);break;case"iconSet":this.renderIconSet(p,m);break}}renderDataBar(p,m){p.openNode(this.tag,{type:"dataBar",id:m.x14Id}),this.databarXform.render(p,m),p.closeNode()}renderIconSet(p,m){p.openNode(this.tag,{type:"iconSet",priority:m.priority,id:m.x14Id||`{${s()}}`}),this.iconSetXform.render(p,m),p.closeNode()}createNewModel(p){let{attributes:m}=p;return{type:m.type,x14Id:m.id,priority:o.toIntValue(m.priority)}}onParserClose(p,m){Object.assign(this.model,m.model)}}n.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,n,i){const s=e("../../composite-xform"),o=e("./f-ext-xform");class h extends s{constructor(){super(),this.map={"xm:f":this.fExtXform=new o}}get tag(){return"x14:cfvo"}render(a,f){a.openNode(this.tag,{type:f.type}),f.value!==void 0&&this.fExtXform.render(a,f.value),a.closeNode()}createNewModel(a){return{type:a.attributes.type}}onParserClose(a,f){switch(a){case"xm:f":this.model.value=f.model?parseFloat(f.model):0;break}}}n.exports=h},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,n,i){const s=e("../../composite-xform"),o=e("./sqref-ext-xform"),h=e("./cf-rule-ext-xform");class c extends s{constructor(){super(),this.map={"xm:sqref":this.sqRef=new o,"x14:cfRule":this.cfRule=new h}}get tag(){return"x14:conditionalFormatting"}prepare(f,l){f.rules.forEach(u=>{this.cfRule.prepare(u,l)})}render(f,l){l.rules.some(h.isExt)&&(f.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),l.rules.filter(h.isExt).forEach(u=>this.cfRule.render(f,u)),this.sqRef.render(f,l.ref),f.closeNode())}createNewModel(){return{rules:[]}}onParserClose(f,l){switch(f){case"xm:sqref":this.model.ref=l.model;break;case"x14:cfRule":this.model.rules.push(l.model);break}}}n.exports=c},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,n,i){const s=e("../../composite-xform"),o=e("./cf-rule-ext-xform"),h=e("./conditional-formatting-ext-xform");class c extends s{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new h}}get tag(){return"x14:conditionalFormattings"}hasContent(f){return f.hasExtContent===void 0&&(f.hasExtContent=f.some(l=>l.rules.some(o.isExt))),f.hasExtContent}prepare(f,l){f.forEach(u=>{this.cfXform.prepare(u,l)})}render(f,l){this.hasContent(l)&&(f.openNode(this.tag),l.forEach(u=>this.cfXform.render(f,u)),f.closeNode())}createNewModel(){return[]}onParserClose(f,l){this.model.push(l.model)}}n.exports=c},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,n,i){const s=e("../../base-xform"),o=e("../../composite-xform"),h=e("../../style/color-xform"),c=e("./cfvo-ext-xform");class a extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new c,"x14:borderColor":this.borderColorXform=new h("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new h("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new h("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new h("x14:axisColor")}}static isExt(l){return!l.gradient}get tag(){return"x14:dataBar"}render(l,u){l.openNode(this.tag,{minLength:s.toIntAttribute(u.minLength,0,!0),maxLength:s.toIntAttribute(u.maxLength,100,!0),border:s.toBoolAttribute(u.border,!1),gradient:s.toBoolAttribute(u.gradient,!0),negativeBarColorSameAsPositive:s.toBoolAttribute(u.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:s.toBoolAttribute(u.negativeBarBorderColorSameAsPositive,!0),axisPosition:s.toAttribute(u.axisPosition,"auto"),direction:s.toAttribute(u.direction,"leftToRight")}),u.cfvo.forEach(p=>{this.cfvoXform.render(l,p)}),this.borderColorXform.render(l,u.borderColor),this.negativeBorderColorXform.render(l,u.negativeBorderColor),this.negativeFillColorXform.render(l,u.negativeFillColor),this.axisColorXform.render(l,u.axisColor),l.closeNode()}createNewModel(l){let{attributes:u}=l;return{cfvo:[],minLength:s.toIntValue(u.minLength,0),maxLength:s.toIntValue(u.maxLength,100),border:s.toBoolValue(u.border,!1),gradient:s.toBoolValue(u.gradient,!0),negativeBarColorSameAsPositive:s.toBoolValue(u.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:s.toBoolValue(u.negativeBarBorderColorSameAsPositive,!0),axisPosition:s.toStringValue(u.axisPosition,"auto"),direction:s.toStringValue(u.direction,"leftToRight")}}onParserClose(l,u){const[,p]=l.split(":");switch(p){case"cfvo":this.model.cfvo.push(u.model);break;default:this.model[p]=u.model;break}}}n.exports=a},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,n,i){const s=e("../../base-xform");class o extends s{get tag(){return"xm:f"}render(c,a){c.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(c){this.model+=c}parseClose(c){return c!==this.tag}}n.exports=o},{"../../base-xform":32}],81:[function(e,n,i){const s=e("../../base-xform"),o=e("../../composite-xform"),h=e("./cfvo-ext-xform"),c=e("./cf-icon-ext-xform");class a extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new h,"x14:cfIcon":this.cfIconXform=new c}}get tag(){return"x14:iconSet"}render(l,u){l.openNode(this.tag,{iconSet:s.toStringAttribute(u.iconSet),reverse:s.toBoolAttribute(u.reverse,!1),showValue:s.toBoolAttribute(u.showValue,!0),custom:s.toBoolAttribute(u.icons,!1)}),u.cfvo.forEach(p=>{this.cfvoXform.render(l,p)}),u.icons&&u.icons.forEach((p,m)=>{p.iconId=m,this.cfIconXform.render(l,p)}),l.closeNode()}createNewModel(l){let{attributes:u}=l;return{cfvo:[],iconSet:s.toStringValue(u.iconSet,"3TrafficLights"),reverse:s.toBoolValue(u.reverse,!1),showValue:s.toBoolValue(u.showValue,!0)}}onParserClose(l,u){const[,p]=l.split(":");switch(p){case"cfvo":this.model.cfvo.push(u.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(u.model);break;default:this.model[p]=u.model;break}}}n.exports=a},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,n,i){const s=e("../../base-xform");class o extends s{get tag(){return"xm:sqref"}render(c,a){c.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(c){this.model+=c}parseClose(c){return c!==this.tag}}n.exports=o},{"../../base-xform":32}],83:[function(e,n,i){const s=e("../../base-xform"),o=e("../../composite-xform"),h=e("../../../../doc/range"),c=e("./databar-xform"),a=e("./ext-lst-ref-xform"),f=e("./formula-xform"),l=e("./color-scale-xform"),u=e("./icon-set-xform"),p={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},m=g=>{if(g.formulae&&g.formulae[0])return g.formulae[0];const b=new h(g.ref),{tl:w}=b;switch(g.operator){case"containsText":return`NOT(ISERROR(SEARCH("${g.text}",${w})))`;case"containsBlanks":return`LEN(TRIM(${w}))=0`;case"notContainsBlanks":return`LEN(TRIM(${w}))>0`;case"containsErrors":return`ISERROR(${w})`;case"notContainsErrors":return`NOT(ISERROR(${w}))`;default:return}},d=g=>{if(g.formulae&&g.formulae[0])return g.formulae[0];const b=new h(g.ref),{tl:w}=b;switch(g.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${w},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${w},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${w},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${w},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${w},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${w},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${w},1)=TODAY()-1`;case"today":return`FLOOR(${w},1)=TODAY()`;case"tomorrow":return`FLOOR(${w},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${w},1)<=6,FLOOR(${w},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${w})=MONTH(EDATE(TODAY(),0-1)),YEAR(${w})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${w})=MONTH(TODAY()),YEAR(${w})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${w})=MONTH(EDATE(TODAY(),0+1)),YEAR(${w})=YEAR(EDATE(TODAY(),0+1)))`;default:return}},v=g=>{const{type:b,operator:w}=g;switch(b){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:b};default:return{type:b,operator:w}}};class x extends o{constructor(){super(),this.map={dataBar:this.databarXform=new c,extLst:this.extLstRefXform=new a,formula:this.formulaXform=new f,colorScale:this.colorScaleXform=new l,iconSet:this.iconSetXform=new u}}get tag(){return"cfRule"}static isPrimitive(b){return!(b.type==="iconSet"&&(b.custom||p[b.iconSet]))}render(b,w){switch(w.type){case"expression":this.renderExpression(b,w);break;case"cellIs":this.renderCellIs(b,w);break;case"top10":this.renderTop10(b,w);break;case"aboveAverage":this.renderAboveAverage(b,w);break;case"dataBar":this.renderDataBar(b,w);break;case"colorScale":this.renderColorScale(b,w);break;case"iconSet":this.renderIconSet(b,w);break;case"containsText":this.renderText(b,w);break;case"timePeriod":this.renderTimePeriod(b,w);break}}renderExpression(b,w){b.openNode(this.tag,{type:"expression",dxfId:w.dxfId,priority:w.priority}),this.formulaXform.render(b,w.formulae[0]),b.closeNode()}renderCellIs(b,w){b.openNode(this.tag,{type:"cellIs",dxfId:w.dxfId,priority:w.priority,operator:w.operator}),w.formulae.forEach(y=>{this.formulaXform.render(b,y)}),b.closeNode()}renderTop10(b,w){b.leafNode(this.tag,{type:"top10",dxfId:w.dxfId,priority:w.priority,percent:s.toBoolAttribute(w.percent,!1),bottom:s.toBoolAttribute(w.bottom,!1),rank:s.toIntValue(w.rank,10,!0)})}renderAboveAverage(b,w){b.leafNode(this.tag,{type:"aboveAverage",dxfId:w.dxfId,priority:w.priority,aboveAverage:s.toBoolAttribute(w.aboveAverage,!0)})}renderDataBar(b,w){b.openNode(this.tag,{type:"dataBar",priority:w.priority}),this.databarXform.render(b,w),this.extLstRefXform.render(b,w),b.closeNode()}renderColorScale(b,w){b.openNode(this.tag,{type:"colorScale",priority:w.priority}),this.colorScaleXform.render(b,w),b.closeNode()}renderIconSet(b,w){x.isPrimitive(w)&&(b.openNode(this.tag,{type:"iconSet",priority:w.priority}),this.iconSetXform.render(b,w),b.closeNode())}renderText(b,w){b.openNode(this.tag,{type:w.operator,dxfId:w.dxfId,priority:w.priority,operator:s.toStringAttribute(w.operator,"containsText")});const y=m(w);y&&this.formulaXform.render(b,y),b.closeNode()}renderTimePeriod(b,w){b.openNode(this.tag,{type:"timePeriod",dxfId:w.dxfId,priority:w.priority,timePeriod:w.timePeriod});const y=d(w);y&&this.formulaXform.render(b,y),b.closeNode()}createNewModel(b){let{attributes:w}=b;return{...v(w),dxfId:s.toIntValue(w.dxfId),priority:s.toIntValue(w.priority),timePeriod:w.timePeriod,percent:s.toBoolValue(w.percent),bottom:s.toBoolValue(w.bottom),rank:s.toIntValue(w.rank),aboveAverage:s.toBoolValue(w.aboveAverage)}}onParserClose(b,w){switch(b){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,w.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(w.model);break}}}n.exports=x},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,n,i){const s=e("../../base-xform");class o extends s{get tag(){return"cfvo"}render(c,a){c.leafNode(this.tag,{type:a.type,val:a.value})}parseOpen(c){this.model={type:c.attributes.type,value:s.toFloatValue(c.attributes.val)}}parseClose(c){return c!==this.tag}}n.exports=o},{"../../base-xform":32}],85:[function(e,n,i){const s=e("../../composite-xform"),o=e("../../style/color-xform"),h=e("./cfvo-xform");class c extends s{constructor(){super(),this.map={cfvo:this.cfvoXform=new h,color:this.colorXform=new o}}get tag(){return"colorScale"}render(f,l){f.openNode(this.tag),l.cfvo.forEach(u=>{this.cfvoXform.render(f,u)}),l.color.forEach(u=>{this.colorXform.render(f,u)}),f.closeNode()}createNewModel(f){return{cfvo:[],color:[]}}onParserClose(f,l){this.model[f].push(l.model)}}n.exports=c},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,n,i){const s=e("../../composite-xform"),o=e("./cf-rule-xform");class h extends s{constructor(){super(),this.map={cfRule:new o}}get tag(){return"conditionalFormatting"}render(a,f){f.rules.some(o.isPrimitive)&&(a.openNode(this.tag,{sqref:f.ref}),f.rules.forEach(l=>{o.isPrimitive(l)&&(l.ref=f.ref,this.map.cfRule.render(a,l))}),a.closeNode())}createNewModel(a){let{attributes:f}=a;return{ref:f.sqref,rules:[]}}onParserClose(a,f){this.model.rules.push(f.model)}}n.exports=h},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,n,i){const s=e("../../base-xform"),o=e("./conditional-formatting-xform");class h extends s{constructor(){super(),this.cfXform=new o}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(a,f){let l=a.reduce((u,p)=>Math.max(u,...p.rules.map(m=>m.priority||0)),1);a.forEach(u=>{u.rules.forEach(p=>{p.priority||(p.priority=l++),p.style&&(p.dxfId=f.styles.addDxfStyle(p.style))})})}render(a,f){f.forEach(l=>{this.cfXform.render(a,l)})}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(a),!0;default:return!1}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return this.parser?this.parser.parseClose(a)?!0:(this.model.push(this.parser.model),this.parser=void 0,!1):!1}reconcile(a,f){a.forEach(l=>{l.rules.forEach(u=>{u.dxfId!==void 0&&(u.style=f.styles.getDxfStyle(u.dxfId),delete u.dxfId)})})}}n.exports=h},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,n,i){const s=e("../../composite-xform"),o=e("../../style/color-xform"),h=e("./cfvo-xform");class c extends s{constructor(){super(),this.map={cfvo:this.cfvoXform=new h,color:this.colorXform=new o}}get tag(){return"dataBar"}render(f,l){f.openNode(this.tag),l.cfvo.forEach(u=>{this.cfvoXform.render(f,u)}),this.colorXform.render(f,l.color),f.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(f,l){switch(f){case"cfvo":this.model.cfvo.push(l.model);break;case"color":this.model.color=l.model;break}}}n.exports=c},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,n,i){const s=e("../../base-xform"),o=e("../../composite-xform");class h extends s{get tag(){return"x14:id"}render(l,u){l.leafNode(this.tag,null,u)}parseOpen(){this.model=""}parseText(l){this.model+=l}parseClose(l){return l!==this.tag}}class c extends o{constructor(){super(),this.map={"x14:id":this.idXform=new h}}get tag(){return"ext"}render(l,u){l.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(l,u.x14Id),l.closeNode()}createNewModel(){return{}}onParserClose(l,u){this.model.x14Id=u.model}}class a extends o{constructor(){super(),this.map={ext:new c}}get tag(){return"extLst"}render(l,u){l.openNode(this.tag),this.map.ext.render(l,u),l.closeNode()}createNewModel(){return{}}onParserClose(l,u){Object.assign(this.model,u.model)}}n.exports=a},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,n,i){const s=e("../../base-xform");class o extends s{get tag(){return"formula"}render(c,a){c.leafNode(this.tag,null,a)}parseOpen(){this.model=""}parseText(c){this.model+=c}parseClose(c){return c!==this.tag}}n.exports=o},{"../../base-xform":32}],91:[function(e,n,i){const s=e("../../base-xform"),o=e("../../composite-xform"),h=e("./cfvo-xform");class c extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new h}}get tag(){return"iconSet"}render(f,l){f.openNode(this.tag,{iconSet:s.toStringAttribute(l.iconSet,"3TrafficLights"),reverse:s.toBoolAttribute(l.reverse,!1),showValue:s.toBoolAttribute(l.showValue,!0)}),l.cfvo.forEach(u=>{this.cfvoXform.render(f,u)}),f.closeNode()}createNewModel(f){let{attributes:l}=f;return{iconSet:s.toStringValue(l.iconSet,"3TrafficLights"),reverse:s.toBoolValue(l.reverse),showValue:s.toBoolValue(l.showValue),cfvo:[]}}onParserClose(f,l){this.model[f].push(l.model)}}n.exports=c},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,n,i){const s=e("../../../utils/utils"),o=e("../base-xform");class h extends o{get tag(){return"col"}prepare(a,f){const l=f.styles.addStyleModel(a.style||{});l&&(a.styleId=l)}render(a,f){a.openNode("col"),a.addAttribute("min",f.min),a.addAttribute("max",f.max),f.width&&a.addAttribute("width",f.width),f.styleId&&a.addAttribute("style",f.styleId),f.hidden&&a.addAttribute("hidden","1"),f.bestFit&&a.addAttribute("bestFit","1"),f.outlineLevel&&a.addAttribute("outlineLevel",f.outlineLevel),f.collapsed&&a.addAttribute("collapsed","1"),a.addAttribute("customWidth","1"),a.closeNode()}parseOpen(a){if(a.name==="col"){const f=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&&(f.styleId=parseInt(a.attributes.style,10)),s.parseBoolean(a.attributes.hidden)&&(f.hidden=!0),s.parseBoolean(a.attributes.bestFit)&&(f.bestFit=!0),a.attributes.outlineLevel&&(f.outlineLevel=parseInt(a.attributes.outlineLevel,10)),s.parseBoolean(a.attributes.collapsed)&&(f.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(a,f){a.styleId&&(a.style=f.styles.getStyleModel(a.styleId))}}n.exports=h},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,n,i){const s=e("../../../utils/under-dash"),o=e("../../../utils/utils"),h=e("../../../utils/col-cache"),c=e("../base-xform"),a=e("../../../doc/range");function f(m,d,v,x){const g=d[v];g!==void 0?m[v]=g:x!==void 0&&(m[v]=x)}function l(m,d,v,x){const g=d[v];g!==void 0?m[v]=o.parseBoolean(g):x!==void 0&&(m[v]=x)}function u(m){const d=s.map(m,(g,b)=>({address:b,dataValidation:g,marked:!1})).sort((g,b)=>s.strcmp(g.address,b.address)),v=s.keyBy(d,"address"),x=(g,b,w)=>{for(let y=0;y<b;y++){const T=h.encodeAddress(g.row+y,w);if(!m[T]||!s.isEqual(m[g.address],m[T]))return!1}return!0};return d.map(g=>{if(!g.marked){const b=h.decodeEx(g.address);if(b.dimensions)return v[b.dimensions].marked=!0,{...g.dataValidation,sqref:g.address};let w=1,y=h.encodeAddress(b.row+w,b.col);for(;m[y]&&s.isEqual(g.dataValidation,m[y]);)w++,y=h.encodeAddress(b.row+w,b.col);let T=1;for(;x(b,w,b.col+T);)T++;for(let C=0;C<w;C++)for(let M=0;M<T;M++)y=h.encodeAddress(b.row+C,b.col+M),v[y].marked=!0;if(w>1||T>1){const C=b.row+(w-1),M=b.col+(T-1);return{...g.dataValidation,sqref:`${g.address}:${h.encodeAddress(C,M)}`}}return{...g.dataValidation,sqref:g.address}}return null}).filter(Boolean)}class p extends c{get tag(){return"dataValidations"}render(d,v){const x=u(v);x.length&&(d.openNode("dataValidations",{count:x.length}),x.forEach(g=>{d.openNode("dataValidation"),g.type!=="any"&&(d.addAttribute("type",g.type),g.operator&&g.type!=="list"&&g.operator!=="between"&&d.addAttribute("operator",g.operator),g.allowBlank&&d.addAttribute("allowBlank","1")),g.showInputMessage&&d.addAttribute("showInputMessage","1"),g.promptTitle&&d.addAttribute("promptTitle",g.promptTitle),g.prompt&&d.addAttribute("prompt",g.prompt),g.showErrorMessage&&d.addAttribute("showErrorMessage","1"),g.errorStyle&&d.addAttribute("errorStyle",g.errorStyle),g.errorTitle&&d.addAttribute("errorTitle",g.errorTitle),g.error&&d.addAttribute("error",g.error),d.addAttribute("sqref",g.sqref),(g.formulae||[]).forEach((b,w)=>{d.openNode(`formula${w+1}`),g.type==="date"?d.writeText(o.dateToExcel(new Date(b))):d.writeText(b),d.closeNode()}),d.closeNode()}),d.closeNode())}parseOpen(d){switch(d.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=d.attributes.sqref;const v={type:d.attributes.type||"any",formulae:[]};switch(d.attributes.type&&l(v,d.attributes,"allowBlank"),l(v,d.attributes,"showInputMessage"),l(v,d.attributes,"showErrorMessage"),v.type){case"any":case"list":case"custom":break;default:f(v,d.attributes,"operator","between");break}return f(v,d.attributes,"promptTitle"),f(v,d.attributes,"prompt"),f(v,d.attributes,"errorStyle"),f(v,d.attributes,"errorTitle"),f(v,d.attributes,"error"),this._dataValidation=v,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(d){this._formula&&this._formula.push(d)}parseClose(d){switch(d){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(x=>{x.includes(":")?new a(x).forEachAddress(b=>{this.model[b]=this._dataValidation}):this.model[x]=this._dataValidation}),!0;case"formula1":case"formula2":{let v=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":v=parseInt(v,10);break;case"decimal":v=parseFloat(v);break;case"date":v=o.excelToDate(parseFloat(v));break}return this._dataValidation.formulae.push(v),this._formula=void 0,!0}default:return!0}}}n.exports=p},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"dimension"}render(c,a){a&&c.leafNode("dimension",{ref:a})}parseOpen(c){return c.name==="dimension"?(this.model=c.attributes.ref,!0):!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],95:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"drawing"}render(c,a){a&&c.leafNode(this.tag,{"r:id":a.rId})}parseOpen(c){switch(c.name){case this.tag:return this.model={rId:c.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],96:[function(e,n,i){const s=e("../composite-xform"),o=e("./cf-ext/conditional-formattings-ext-xform");class h extends s{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new o}}get tag(){return"ext"}hasContent(f){return this.conditionalFormattings.hasContent(f.conditionalFormattings)}prepare(f,l){this.conditionalFormattings.prepare(f.conditionalFormattings,l)}render(f,l){f.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(f,l.conditionalFormattings),f.closeNode()}createNewModel(){return{}}onParserClose(f,l){this.model[f]=l.model}}class c extends s{constructor(){super(),this.map={ext:this.ext=new h}}get tag(){return"extLst"}prepare(f,l){this.ext.prepare(f,l)}hasContent(f){return this.ext.hasContent(f)}render(f,l){this.hasContent(l)&&(f.openNode("extLst"),this.ext.render(f,l),f.closeNode())}createNewModel(){return{}}onParserClose(f,l){Object.assign(this.model,l.model)}}n.exports=c},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"headerFooter"}render(c,a){if(a){c.addRollback();let f=!1;c.openNode("headerFooter"),a.differentFirst&&(c.addAttribute("differentFirst","1"),f=!0),a.differentOddEven&&(c.addAttribute("differentOddEven","1"),f=!0),a.oddHeader&&typeof a.oddHeader=="string"&&(c.leafNode("oddHeader",null,a.oddHeader),f=!0),a.oddFooter&&typeof a.oddFooter=="string"&&(c.leafNode("oddFooter",null,a.oddFooter),f=!0),a.evenHeader&&typeof a.evenHeader=="string"&&(c.leafNode("evenHeader",null,a.evenHeader),f=!0),a.evenFooter&&typeof a.evenFooter=="string"&&(c.leafNode("evenFooter",null,a.evenFooter),f=!0),a.firstHeader&&typeof a.firstHeader=="string"&&(c.leafNode("firstHeader",null,a.firstHeader),f=!0),a.firstFooter&&typeof a.firstFooter=="string"&&(c.leafNode("firstFooter",null,a.firstFooter),f=!0),f?(c.closeNode(),c.commit()):c.rollback()}}parseOpen(c){switch(c.name){case"headerFooter":return this.model={},c.attributes.differentFirst&&(this.model.differentFirst=parseInt(c.attributes.differentFirst,0)===1),c.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(c.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}}parseText(c){switch(this.currentNode){case"oddHeader":this.model.oddHeader=c;break;case"oddFooter":this.model.oddFooter=c;break;case"evenHeader":this.model.evenHeader=c;break;case"evenFooter":this.model.evenFooter=c;break;case"firstHeader":this.model.firstHeader=c;break;case"firstFooter":this.model.firstFooter=c;break}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}n.exports=o},{"../base-xform":32}],98:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"hyperlink"}render(c,a){this.isInternalLink(a)?c.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip,location:a.target}):c.leafNode("hyperlink",{ref:a.address,"r:id":a.rId,tooltip:a.tooltip})}parseOpen(c){return c.name==="hyperlink"?(this.model={address:c.attributes.ref,rId:c.attributes["r:id"],tooltip:c.attributes.tooltip},c.attributes.location&&(this.model.target=c.attributes.location),!0):!1}parseText(){}parseClose(){return!1}isInternalLink(c){return c.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(c.target)}}n.exports=o},{"../base-xform":32}],99:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"mergeCell"}render(c,a){c.leafNode("mergeCell",{ref:a})}parseOpen(c){return c.name==="mergeCell"?(this.model=c.attributes.ref,!0):!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],100:[function(e,n,i){const s=e("../../../utils/under-dash"),o=e("../../../doc/range"),h=e("../../../utils/col-cache"),c=e("../../../doc/enums");class a{constructor(){this.merges={}}add(l){if(this.merges[l.master])this.merges[l.master].expandToAddress(l.address);else{const u=`${l.master}:${l.address}`;this.merges[l.master]=new o(u)}}get mergeCells(){return s.map(this.merges,l=>l.range)}reconcile(l,u){s.each(l,p=>{const m=h.decode(p);for(let d=m.top;d<=m.bottom;d++){const v=u[d-1];for(let x=m.left;x<=m.right;x++){const g=v.cells[x-1];g?g.type===c.ValueType.Merge&&(g.master=m.tl):v.cells[x]={type:c.ValueType.Null,address:h.encodeAddress(d,x)}}}})}getMasterAddress(l){const u=this.hash[l];return u&&u.tl}}n.exports=a},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,n,i){const s=e("../base-xform"),o=c=>typeof c<"u";class h extends s{get tag(){return"outlinePr"}render(a,f){return f&&(o(f.summaryBelow)||o(f.summaryRight))?(a.leafNode(this.tag,{summaryBelow:o(f.summaryBelow)?Number(f.summaryBelow):void 0,summaryRight:o(f.summaryRight)?Number(f.summaryRight):void 0}),!0):!1}parseOpen(a){return a.name===this.tag?(this.model={summaryBelow:o(a.attributes.summaryBelow)?!!Number(a.attributes.summaryBelow):void 0,summaryRight:o(a.attributes.summaryRight)?!!Number(a.attributes.summaryRight):void 0},!0):!1}parseText(){}parseClose(){return!1}}n.exports=h},{"../base-xform":32}],102:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"brk"}render(c,a){c.leafNode("brk",a)}parseOpen(c){return c.name==="brk"?(this.model=c.attributes.ref,!0):!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],103:[function(e,n,i){const s=e("../../../utils/under-dash"),o=e("../base-xform");class h extends o{get tag(){return"pageMargins"}render(a,f){if(f){const l={left:f.left,right:f.right,top:f.top,bottom:f.bottom,header:f.header,footer:f.footer};s.some(l,u=>u!==void 0)&&a.leafNode(this.tag,l)}}parseOpen(a){switch(a.name){case this.tag:return this.model={left:parseFloat(a.attributes.left||.7),right:parseFloat(a.attributes.right||.7),top:parseFloat(a.attributes.top||.75),bottom:parseFloat(a.attributes.bottom||.75),header:parseFloat(a.attributes.header||.3),footer:parseFloat(a.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}n.exports=h},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"pageSetUpPr"}render(c,a){return a&&a.fitToPage?(c.leafNode(this.tag,{fitToPage:a.fitToPage?"1":void 0}),!0):!1}parseOpen(c){return c.name===this.tag?(this.model={fitToPage:c.attributes.fitToPage==="1"},!0):!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],105:[function(e,n,i){const s=e("../../../utils/under-dash"),o=e("../base-xform");function h(p){return p?"1":void 0}function c(p){switch(p){case"overThenDown":return p;default:return}}function a(p){switch(p){case"atEnd":case"asDisplyed":return p;default:return}}function f(p){switch(p){case"dash":case"blank":case"NA":return p;default:return}}function l(p){return p!==void 0?parseInt(p,10):void 0}class u extends o{get tag(){return"pageSetup"}render(m,d){if(d){const v={paperSize:d.paperSize,orientation:d.orientation,horizontalDpi:d.horizontalDpi,verticalDpi:d.verticalDpi,pageOrder:c(d.pageOrder),blackAndWhite:h(d.blackAndWhite),draft:h(d.draft),cellComments:a(d.cellComments),errors:f(d.errors),scale:d.scale,fitToWidth:d.fitToWidth,fitToHeight:d.fitToHeight,firstPageNumber:d.firstPageNumber,useFirstPageNumber:h(d.firstPageNumber),usePrinterDefaults:h(d.usePrinterDefaults),copies:d.copies};s.some(v,x=>x!==void 0)&&m.leafNode(this.tag,v)}}parseOpen(m){switch(m.name){case this.tag:return this.model={paperSize:l(m.attributes.paperSize),orientation:m.attributes.orientation||"portrait",horizontalDpi:parseInt(m.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(m.attributes.verticalDpi||"4294967295",10),pageOrder:m.attributes.pageOrder||"downThenOver",blackAndWhite:m.attributes.blackAndWhite==="1",draft:m.attributes.draft==="1",cellComments:m.attributes.cellComments||"None",errors:m.attributes.errors||"displayed",scale:parseInt(m.attributes.scale||"100",10),fitToWidth:parseInt(m.attributes.fitToWidth||"1",10),fitToHeight:parseInt(m.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(m.attributes.firstPageNumber||"1",10),useFirstPageNumber:m.attributes.useFirstPageNumber==="1",usePrinterDefaults:m.attributes.usePrinterDefaults==="1",copies:parseInt(m.attributes.copies||"1",10)},!0;default:return!1}}parseText(){}parseClose(){return!1}}n.exports=u},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"picture"}render(c,a){a&&c.leafNode(this.tag,{"r:id":a.rId})}parseOpen(c){switch(c.name){case this.tag:return this.model={rId:c.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],107:[function(e,n,i){const s=e("../../../utils/under-dash"),o=e("../base-xform");function h(a){return a?"1":void 0}class c extends o{get tag(){return"printOptions"}render(f,l){if(l){const u={headings:h(l.showRowColHeaders),gridLines:h(l.showGridLines),horizontalCentered:h(l.horizontalCentered),verticalCentered:h(l.verticalCentered)};s.some(u,p=>p!==void 0)&&f.leafNode(this.tag,u)}}parseOpen(f){switch(f.name){case this.tag:return this.model={showRowColHeaders:f.attributes.headings==="1",showGridLines:f.attributes.gridLines==="1",horizontalCentered:f.attributes.horizontalCentered==="1",verticalCentered:f.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}n.exports=c},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,n,i){const s=e("./page-breaks-xform"),o=e("../list-xform");class h extends o{constructor(){const a={tag:"rowBreaks",count:!0,childXform:new s};super(a)}render(a,f){if(f&&f.length){a.openNode(this.tag,this.$),this.count&&(a.addAttribute(this.$count,f.length),a.addAttribute("manualBreakCount",f.length));const{childXform:l}=this;f.forEach(u=>{l.render(a,u)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}}n.exports=h},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,n,i){const s=e("../base-xform"),o=e("../../../utils/utils"),h=e("./cell-xform");class c extends s{constructor(f){super(),this.maxItems=f&&f.maxItems,this.map={c:new h}}get tag(){return"row"}prepare(f,l){const u=l.styles.addStyleModel(f.style);u&&(f.styleId=u);const p=this.map.c;f.cells.forEach(m=>{p.prepare(m,l)})}render(f,l,u){f.openNode("row"),f.addAttribute("r",l.number),l.height&&(f.addAttribute("ht",l.height),f.addAttribute("customHeight","1")),l.hidden&&f.addAttribute("hidden","1"),l.min>0&&l.max>0&&l.min<=l.max&&f.addAttribute("spans",`${l.min}:${l.max}`),l.styleId&&(f.addAttribute("s",l.styleId),f.addAttribute("customFormat","1")),f.addAttribute("x14ac:dyDescent","0.25"),l.outlineLevel&&f.addAttribute("outlineLevel",l.outlineLevel),l.collapsed&&f.addAttribute("collapsed","1");const p=this.map.c;l.cells.forEach(m=>{p.render(f,m,u)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;if(f.name==="row"){this.numRowsSeen+=1;const l=f.attributes.spans?f.attributes.spans.split(":").map(p=>parseInt(p,10)):[void 0,void 0],u=this.model={number:parseInt(f.attributes.r,10),min:l[0],max:l[1],cells:[]};return f.attributes.s&&(u.styleId=parseInt(f.attributes.s,10)),o.parseBoolean(f.attributes.hidden)&&(u.hidden=!0),o.parseBoolean(f.attributes.bestFit)&&(u.bestFit=!0),f.attributes.ht&&(u.height=parseFloat(f.attributes.ht)),f.attributes.outlineLevel&&(u.outlineLevel=parseInt(f.attributes.outlineLevel,10)),o.parseBoolean(f.attributes.collapsed)&&(u.collapsed=!0),!0}return this.parser=this.map[f.name],this.parser?(this.parser.parseOpen(f),!0):!1}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser){if(!this.parser.parseClose(f)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(f,l){f.style=f.styleId?l.styles.getStyleModel(f.styleId):{},f.styleId!==void 0&&(f.styleId=void 0);const u=this.map.c;f.cells.forEach(p=>{u.reconcile(p,l)})}}n.exports=c},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,n,i){const s=e("../../../utils/under-dash"),o=e("../base-xform");class h extends o{get tag(){return"sheetFormatPr"}render(a,f){if(f){const l={defaultRowHeight:f.defaultRowHeight,outlineLevelRow:f.outlineLevelRow,outlineLevelCol:f.outlineLevelCol,"x14ac:dyDescent":f.dyDescent};f.defaultColWidth&&(l.defaultColWidth=f.defaultColWidth),(!f.defaultRowHeight||f.defaultRowHeight!==15)&&(l.customHeight="1"),s.some(l,u=>u!==void 0)&&a.leafNode("sheetFormatPr",l)}}parseOpen(a){return a.name==="sheetFormatPr"?(this.model={defaultRowHeight:parseFloat(a.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(a.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(a.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(a.attributes.outlineLevelCol||"0",10)},a.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(a.attributes.defaultColWidth)),!0):!1}parseText(){}parseClose(){return!1}}n.exports=h},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,n,i){const s=e("../base-xform"),o=e("../style/color-xform"),h=e("./page-setup-properties-xform"),c=e("./outline-properties-xform");class a extends s{constructor(){super(),this.map={tabColor:new o("tabColor"),pageSetUpPr:new h,outlinePr:new c}}get tag(){return"sheetPr"}render(l,u){if(u){l.addRollback(),l.openNode("sheetPr");let p=!1;p=this.map.tabColor.render(l,u.tabColor)||p,p=this.map.pageSetUpPr.render(l,u.pageSetup)||p,p=this.map.outlinePr.render(l,u.outlineProperties)||p,p?(l.closeNode(),l.commit()):l.rollback()}}parseOpen(l){return this.parser?(this.parser.parseOpen(l),!0):l.name===this.tag?(this.reset(),!0):this.map[l.name]?(this.parser=this.map[l.name],this.parser.parseOpen(l),!0):!1}parseText(l){return this.parser?(this.parser.parseText(l),!0):!1}parseClose(l){return this.parser?(this.parser.parseClose(l)||(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)}}n.exports=a},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,n,i){const s=e("../../../utils/under-dash"),o=e("../base-xform");function h(f,l){return f?l:void 0}function c(f,l){return f===l?!0:void 0}class a extends o{get tag(){return"sheetProtection"}render(l,u){if(u){const p={sheet:h(u.sheet,"1"),selectLockedCells:u.selectLockedCells===!1?"1":void 0,selectUnlockedCells:u.selectUnlockedCells===!1?"1":void 0,formatCells:h(u.formatCells,"0"),formatColumns:h(u.formatColumns,"0"),formatRows:h(u.formatRows,"0"),insertColumns:h(u.insertColumns,"0"),insertRows:h(u.insertRows,"0"),insertHyperlinks:h(u.insertHyperlinks,"0"),deleteColumns:h(u.deleteColumns,"0"),deleteRows:h(u.deleteRows,"0"),sort:h(u.sort,"0"),autoFilter:h(u.autoFilter,"0"),pivotTables:h(u.pivotTables,"0")};u.sheet&&(p.algorithmName=u.algorithmName,p.hashValue=u.hashValue,p.saltValue=u.saltValue,p.spinCount=u.spinCount,p.objects=h(u.objects===!1,"1"),p.scenarios=h(u.scenarios===!1,"1")),s.some(p,m=>m!==void 0)&&l.leafNode(this.tag,p)}}parseOpen(l){switch(l.name){case this.tag:return this.model={sheet:c(l.attributes.sheet,"1"),objects:l.attributes.objects==="1"?!1:void 0,scenarios:l.attributes.scenarios==="1"?!1:void 0,selectLockedCells:l.attributes.selectLockedCells==="1"?!1:void 0,selectUnlockedCells:l.attributes.selectUnlockedCells==="1"?!1:void 0,formatCells:c(l.attributes.formatCells,"0"),formatColumns:c(l.attributes.formatColumns,"0"),formatRows:c(l.attributes.formatRows,"0"),insertColumns:c(l.attributes.insertColumns,"0"),insertRows:c(l.attributes.insertRows,"0"),insertHyperlinks:c(l.attributes.insertHyperlinks,"0"),deleteColumns:c(l.attributes.deleteColumns,"0"),deleteRows:c(l.attributes.deleteRows,"0"),sort:c(l.attributes.sort,"0"),autoFilter:c(l.attributes.autoFilter,"0"),pivotTables:c(l.attributes.pivotTables,"0")},l.attributes.algorithmName&&(this.model.algorithmName=l.attributes.algorithmName,this.model.hashValue=l.attributes.hashValue,this.model.saltValue=l.attributes.saltValue,this.model.spinCount=parseInt(l.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}n.exports=a},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,n,i){const s=e("../../../utils/col-cache"),o=e("../base-xform"),h={frozen:"frozen",frozenSplit:"frozen",split:"split"};class c extends o{get tag(){return"sheetView"}prepare(f){switch(f.state){case"frozen":case"split":break;default:f.state="normal";break}}render(f,l){f.openNode("sheetView",{workbookViewId:l.workbookViewId||0});const u=function(x,g,b){b&&f.addAttribute(x,g)};u("rightToLeft","1",l.rightToLeft===!0),u("tabSelected","1",l.tabSelected),u("showRuler","0",l.showRuler===!1),u("showRowColHeaders","0",l.showRowColHeaders===!1),u("showGridLines","0",l.showGridLines===!1),u("zoomScale",l.zoomScale,l.zoomScale),u("zoomScaleNormal",l.zoomScaleNormal,l.zoomScaleNormal),u("view",l.style,l.style);let p,m,d,v;switch(l.state){case"frozen":m=l.xSplit||0,d=l.ySplit||0,p=l.topLeftCell||s.getAddress(d+1,m+1).address,v=l.xSplit&&l.ySplit&&"bottomRight"||l.xSplit&&"topRight"||"bottomLeft",f.leafNode("pane",{xSplit:l.xSplit||void 0,ySplit:l.ySplit||void 0,topLeftCell:p,activePane:v,state:"frozen"}),f.leafNode("selection",{pane:v,activeCell:l.activeCell,sqref:l.activeCell});break;case"split":l.activePane==="topLeft"&&(l.activePane=void 0),f.leafNode("pane",{xSplit:l.xSplit||void 0,ySplit:l.ySplit||void 0,topLeftCell:l.topLeftCell,activePane:l.activePane}),f.leafNode("selection",{pane:l.activePane,activeCell:l.activeCell,sqref:l.activeCell});break;case"normal":l.activeCell&&f.leafNode("selection",{activeCell:l.activeCell,sqref:l.activeCell});break}f.closeNode()}parseOpen(f){switch(f.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(f.attributes.workbookViewId,10),rightToLeft:f.attributes.rightToLeft==="1",tabSelected:f.attributes.tabSelected==="1",showRuler:f.attributes.showRuler!=="0",showRowColHeaders:f.attributes.showRowColHeaders!=="0",showGridLines:f.attributes.showGridLines!=="0",zoomScale:parseInt(f.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(f.attributes.zoomScaleNormal||"100",10),style:f.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(f.attributes.xSplit||"0",10),ySplit:parseInt(f.attributes.ySplit||"0",10),topLeftCell:f.attributes.topLeftCell,activePane:f.attributes.activePane||"topLeft",state:f.attributes.state},!0;case"selection":{const l=f.attributes.pane||"topLeft";return this.selections[l]={pane:l,activeCell:f.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(f){let l,u;switch(f){case"sheetView":return this.sheetView&&this.pane?(l=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:h[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"&&(l.activePane=this.pane.activePane),u=this.selections[this.pane.activePane],u&&u.activeCell&&(l.activeCell=u.activeCell),this.sheetView.style&&(l.style=this.sheetView.style)):(l=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},u=this.selections.topLeft,u&&u.activeCell&&(l.activeCell=u.activeCell),this.sheetView.style&&(l.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}n.exports=c},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"tablePart"}render(c,a){a&&c.leafNode(this.tag,{"r:id":a.rId})}parseOpen(c){switch(c.name){case this.tag:return this.model={rId:c.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],115:[function(e,n,i){const s=e("../../../utils/under-dash"),o=e("../../../utils/col-cache"),h=e("../../../utils/xml-stream"),c=e("../../rel-type"),a=e("./merges"),f=e("../base-xform"),l=e("../list-xform"),u=e("./row-xform"),p=e("./col-xform"),m=e("./dimension-xform"),d=e("./hyperlink-xform"),v=e("./merge-cell-xform"),x=e("./data-validations-xform"),g=e("./sheet-properties-xform"),b=e("./sheet-format-properties-xform"),w=e("./sheet-view-xform"),y=e("./sheet-protection-xform"),T=e("./page-margins-xform"),C=e("./page-setup-xform"),M=e("./print-options-xform"),I=e("./auto-filter-xform"),B=e("./picture-xform"),U=e("./drawing-xform"),j=e("./table-part-xform"),H=e("./row-breaks-xform"),G=e("./header-footer-xform"),L=e("./cf/conditional-formattings-xform"),R=e("./ext-lst-xform"),F=(N,P)=>{Object.keys(P).forEach(D=>{const A=N[D],S=P[D];A===void 0&&S!==void 0&&(N[D]=S)})},_=(N,P)=>{if(!P||!P.length)return N;if(!N||!N.length)return P;const D={},A={};return N.forEach(S=>{D[S.ref]=S,S.rules.forEach(E=>{const{x14Id:O}=E;O&&(A[O]=E)})}),P.forEach(S=>{S.rules.forEach(E=>{const O=A[E.x14Id];O?F(O,E):D[S.ref]?D[S.ref].rules.push(E):N.push({ref:S.ref,rules:[E]})})}),N};class k extends f{constructor(P){super();const{maxRows:D,maxCols:A,ignoreNodes:S}=P||{};this.ignoreNodes=S||[],this.map={sheetPr:new g,dimension:new m,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new w}),sheetFormatPr:new b,cols:new l({tag:"cols",count:!1,childXform:new p}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new u({maxItems:A}),maxItems:D}),autoFilter:new I,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new v}),rowBreaks:new H,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new d}),pageMargins:new T,dataValidations:new x,pageSetup:new C,headerFooter:new G,printOptions:new M,picture:new B,drawing:new U,sheetProtection:new y,tableParts:new l({tag:"tableParts",count:!0,childXform:new j}),conditionalFormatting:new L,extLst:new R}}prepare(P,D){D.merges=new a,P.hyperlinks=D.hyperlinks=[],P.comments=D.comments=[],D.formulae={},D.siFormulae=0,this.map.cols.prepare(P.cols,D),this.map.sheetData.prepare(P.rows,D),this.map.conditionalFormatting.prepare(P.conditionalFormattings,D),P.mergeCells=D.merges.mergeCells;const A=P.rels=[];function S(z){return`rId${z.length+1}`}if(P.hyperlinks.forEach(z=>{const J=S(A);z.rId=J,A.push({Id:J,Type:c.Hyperlink,Target:z.target,TargetMode:"External"})}),P.comments.length>0){const z={Id:S(A),Type:c.Comments,Target:`../comments${P.id}.xml`};A.push(z);const J={Id:S(A),Type:c.VmlDrawing,Target:`../drawings/vmlDrawing${P.id}.vml`};A.push(J),P.comments.forEach(re=>{re.refAddress=o.decodeAddress(re.ref)}),D.commentRefs.push({commentName:`comments${P.id}`,vmlDrawing:`vmlDrawing${P.id}`})}const E=[];let O;P.media.forEach(z=>{if(z.type==="background"){const J=S(A);O=D.media[z.imageId],A.push({Id:J,Type:c.Image,Target:`../media/${O.name}.${O.extension}`}),P.background={rId:J},P.image=D.media[z.imageId]}else if(z.type==="image"){let{drawing:J}=P;O=D.media[z.imageId],J||(J=P.drawing={rId:S(A),name:`drawing${++D.drawingsCount}`,anchors:[],rels:[]},D.drawings.push(J),A.push({Id:J.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${J.name}.xml`}));let re=this.preImageId===z.imageId?E[z.imageId]:E[J.rels.length];re||(re=S(J.rels),E[J.rels.length]=re,J.rels.push({Id:re,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${O.name}.${O.extension}`}));const se={picture:{rId:re},range:z.range};if(z.hyperlinks&&z.hyperlinks.hyperlink){const Ce=S(J.rels);E[J.rels.length]=Ce,se.picture.hyperlinks={tooltip:z.hyperlinks.tooltip,rId:Ce},J.rels.push({Id:Ce,Type:c.Hyperlink,Target:z.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=z.imageId,J.anchors.push(se)}}),P.tables.forEach(z=>{const J=S(A);z.rId=J,A.push({Id:J,Type:c.Table,Target:`../tables/${z.target}`}),z.columns.forEach(re=>{const{style:se}=re;se&&(re.dxfId=D.styles.addDxfStyle(se))})}),this.map.extLst.prepare(P,D)}render(P,D){P.openXml(h.StdDocAttributes),P.openNode("worksheet",k.WORKSHEET_ATTRIBUTES);const A=D.properties?{defaultRowHeight:D.properties.defaultRowHeight,dyDescent:D.properties.dyDescent,outlineLevelCol:D.properties.outlineLevelCol,outlineLevelRow:D.properties.outlineLevelRow}:void 0;D.properties&&D.properties.defaultColWidth&&(A.defaultColWidth=D.properties.defaultColWidth);const S={outlineProperties:D.properties&&D.properties.outlineProperties,tabColor:D.properties&&D.properties.tabColor,pageSetup:D.pageSetup&&D.pageSetup.fitToPage?{fitToPage:D.pageSetup.fitToPage}:void 0},E=D.pageSetup&&D.pageSetup.margins,O={showRowColHeaders:D.pageSetup&&D.pageSetup.showRowColHeaders,showGridLines:D.pageSetup&&D.pageSetup.showGridLines,horizontalCentered:D.pageSetup&&D.pageSetup.horizontalCentered,verticalCentered:D.pageSetup&&D.pageSetup.verticalCentered},z=D.sheetProtection;this.map.sheetPr.render(P,S),this.map.dimension.render(P,D.dimensions),this.map.sheetViews.render(P,D.views),this.map.sheetFormatPr.render(P,A),this.map.cols.render(P,D.cols),this.map.sheetData.render(P,D.rows),this.map.sheetProtection.render(P,z),this.map.autoFilter.render(P,D.autoFilter),this.map.mergeCells.render(P,D.mergeCells),this.map.conditionalFormatting.render(P,D.conditionalFormattings),this.map.dataValidations.render(P,D.dataValidations),this.map.hyperlinks.render(P,D.hyperlinks),this.map.printOptions.render(P,O),this.map.pageMargins.render(P,E),this.map.pageSetup.render(P,D.pageSetup),this.map.headerFooter.render(P,D.headerFooter),this.map.rowBreaks.render(P,D.rowBreaks),this.map.drawing.render(P,D.drawing),this.map.picture.render(P,D.background),this.map.tableParts.render(P,D.tables),this.map.extLst.render(P,D),D.rels&&D.rels.forEach(J=>{J.Type===c.VmlDrawing&&P.leafNode("legacyDrawing",{"r:id":J.Id})}),P.closeNode()}parseOpen(P){return this.parser?(this.parser.parseOpen(P),!0):P.name==="worksheet"?(s.each(this.map,D=>{D.reset()}),!0):(this.map[P.name]&&!this.ignoreNodes.includes(P.name)&&(this.parser=this.map[P.name],this.parser.parseOpen(P)),!0)}parseText(P){this.parser&&this.parser.parseText(P)}parseClose(P){if(this.parser)return this.parser.parseClose(P)||(this.parser=void 0),!0;switch(P){case"worksheet":{const D=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(D.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(D.outlineProperties=this.map.sheetPr.model.outlineProperties);const A={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},S=Object.assign(A,this.map.pageSetup.model,this.map.printOptions.model),E=_(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:D,views:this.map.sheetViews.model,pageSetup:S,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:E},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(P,D){const A=(P.relationships||[]).reduce((E,O)=>{if(E[O.Id]=O,O.Type===c.Comments&&(P.comments=D.comments[O.Target].comments),O.Type===c.VmlDrawing&&P.comments&&P.comments.length){const z=D.vmlDrawings[O.Target].comments;P.comments.forEach((J,re)=>{J.note=Object.assign({},J.note,z[re])})}return E},{});if(D.commentsMap=(P.comments||[]).reduce((E,O)=>(O.ref&&(E[O.ref]=O),E),{}),D.hyperlinkMap=(P.hyperlinks||[]).reduce((E,O)=>(O.rId&&(E[O.address]=A[O.rId].Target),E),{}),D.formulae={},P.rows=P.rows&&P.rows.filter(Boolean)||[],P.rows.forEach(E=>{E.cells=E.cells&&E.cells.filter(Boolean)||[]}),this.map.cols.reconcile(P.cols,D),this.map.sheetData.reconcile(P.rows,D),this.map.conditionalFormatting.reconcile(P.conditionalFormattings,D),P.media=[],P.drawing){const O=A[P.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(O){const z=O[1];D.drawings[z].anchors.forEach(re=>{if(re.medium){const se={type:"image",imageId:re.medium.index,range:re.range,hyperlinks:re.picture.hyperlinks};P.media.push(se)}})}}const S=P.background&&A[P.background.rId];if(S){const E=S.Target.split("/media/")[1],O=D.mediaIndex&&D.mediaIndex[E];O!==void 0&&P.media.push({type:"background",imageId:O})}P.tables=(P.tables||[]).map(E=>{const O=A[E.rId];return D.tables[O.Target]}),delete P.relationships,delete P.hyperlinks,delete P.comments}}k.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"},n.exports=k},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,n,i){const s=e("../base-xform");class o extends s{constructor(c){super(),this.tag=c.tag,this.attr=c.attr}render(c,a){a&&(c.openNode(this.tag),c.closeNode())}parseOpen(c){c.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],117:[function(e,n,i){const s=e("../base-xform");class o extends s{constructor(c){super(),this.tag=c.tag,this.attr=c.attr,this.attrs=c.attrs,this._format=c.format||function(a){try{return Number.isNaN(a.getTime())?"":a.toISOString()}catch{return""}},this._parse=c.parse||function(a){return new Date(a)}}render(c,a){a&&(c.openNode(this.tag),this.attrs&&c.addAttributes(this.attrs),this.attr?c.addAttribute(this.attr,this._format(a)):c.writeText(this._format(a)),c.closeNode())}parseOpen(c){c.name===this.tag&&(this.attr?this.model=this._parse(c.attributes[this.attr]):this.text=[])}parseText(c){this.attr||this.text.push(c)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}n.exports=o},{"../base-xform":32}],118:[function(e,n,i){const s=e("../base-xform");class o extends s{constructor(c){super(),this.tag=c.tag,this.attr=c.attr,this.attrs=c.attrs,this.zero=c.zero}render(c,a){(a||this.zero)&&(c.openNode(this.tag),this.attrs&&c.addAttributes(this.attrs),this.attr?c.addAttribute(this.attr,a):c.writeText(a),c.closeNode())}parseOpen(c){return c.name===this.tag?(this.attr?this.model=parseInt(c.attributes[this.attr],10):this.text=[],!0):!1}parseText(c){this.attr||this.text.push(c)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}n.exports=o},{"../base-xform":32}],119:[function(e,n,i){const s=e("../base-xform");class o extends s{constructor(c){super(),this.tag=c.tag,this.attr=c.attr,this.attrs=c.attrs}render(c,a){a!==void 0&&(c.openNode(this.tag),this.attrs&&c.addAttributes(this.attrs),this.attr?c.addAttribute(this.attr,a):c.writeText(a),c.closeNode())}parseOpen(c){c.name===this.tag&&(this.attr?this.model=c.attributes[this.attr]:this.text=[])}parseText(c){this.attr||this.text.push(c)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}n.exports=o},{"../base-xform":32}],120:[function(e,n,i){const s=e("./base-xform"),o=e("../../utils/xml-stream");function h(a,f){a.openNode(f.tag,f.$),f.c&&f.c.forEach(l=>{h(a,l)}),f.t&&a.writeText(f.t),a.closeNode()}class c extends s{constructor(f){super(),this._model=f}render(f){if(!this._xml){const l=new o;h(l,this._model),this._xml=l.xml}f.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(f){switch(f){case this._model.tag:return!1;default:return!0}}}n.exports=c},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,n,i){const s=e("./text-xform"),o=e("./rich-text-xform"),h=e("../base-xform");class c extends h{constructor(){super(),this.map={r:new o,t:new s}}get tag(){return"rPh"}render(f,l){if(f.openNode(this.tag,{sb:l.sb||0,eb:l.eb||0}),l&&l.hasOwnProperty("richText")&&l.richText){const{r:u}=this.map;l.richText.forEach(p=>{u.render(f,p)})}else l&&this.map.t.render(f,l.text);f.closeNode()}parseOpen(f){const{name:l}=f;return this.parser?(this.parser.parseOpen(f),!0):l===this.tag?(this.model={sb:parseInt(f.attributes.sb,10),eb:parseInt(f.attributes.eb,10)},!0):(this.parser=this.map[l],this.parser?(this.parser.parseOpen(f),!0):!1)}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser){if(!this.parser.parseClose(f)){switch(f){case"r":{let l=this.model.richText;l||(l=this.model.richText=[]),l.push(this.parser.model);break}case"t":this.model.text=this.parser.model;break}this.parser=void 0}return!0}switch(f){case this.tag:return!1;default:return!0}}}n.exports=c},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,n,i){const s=e("./text-xform"),o=e("../style/font-xform"),h=e("../base-xform");class c extends h{constructor(f){super(),this.model=f}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new s)}get fontXform(){return this._fontXform||(this._fontXform=new o(c.FONT_OPTIONS))}render(f,l){l=l||this.model,f.openNode("r"),l.font&&this.fontXform.render(f,l.font),this.textXform.render(f,l.text),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(f),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(f),!0;default:return!1}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){switch(f){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(f),!0}}}c.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},n.exports=c},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,n,i){const s=e("./text-xform"),o=e("./rich-text-xform"),h=e("./phonetic-text-xform"),c=e("../base-xform");class a extends c{constructor(l){super(),this.model=l,this.map={r:new o,t:new s,rPh:new h}}get tag(){return"si"}render(l,u){l.openNode(this.tag),u&&u.hasOwnProperty("richText")&&u.richText?u.richText.length?u.richText.forEach(p=>{this.map.r.render(l,p)}):this.map.t.render(l,""):u!=null&&this.map.t.render(l,u),l.closeNode()}parseOpen(l){const{name:u}=l;return this.parser?(this.parser.parseOpen(l),!0):u===this.tag?(this.model={},!0):(this.parser=this.map[u],this.parser?(this.parser.parseOpen(l),!0):!1)}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser){if(!this.parser.parseClose(l)){switch(l){case"r":{let u=this.model.richText;u||(u=this.model.richText=[]),u.push(this.parser.model);break}case"t":this.model=this.parser.model;break}this.parser=void 0}return!0}switch(l){case this.tag:return!1;default:return!0}}}n.exports=a},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,n,i){const s=e("../../../utils/xml-stream"),o=e("../base-xform"),h=e("./shared-string-xform");class c extends o{constructor(f){super(),this.model=f||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new h)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(f){return this.model.values[f]}add(f){return f.richText?this.addRichText(f):this.addText(f)}addText(f){let l=this.hash[f];return l===void 0&&(l=this.hash[f]=this.model.values.length,this.model.values.push(f)),this.model.count++,l}addRichText(f){const l=this.sharedStringXform.toXml(f);let u=this.rich[l];return u===void 0&&(u=this.rich[l]=this.model.values.length,this.model.values.push(f)),this.model.count++,u}render(f,l){l=l||this._values,f.openXml(s.StdDocAttributes),f.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:l.count,uniqueCount:l.values.length});const u=this.sharedStringXform;l.values.forEach(p=>{u.render(f,p)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(f),!0;default:throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(f)}`)}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(f){case"sst":return!1;default:throw new Error(`Unexpected xml node in parseClose: ${f}`)}}}n.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"t"}render(c,a){c.openNode("t"),/^\s|\n|\s$/.test(a)&&c.addAttribute("xml:space","preserve"),c.writeText(a),c.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(c,a)=>String.fromCharCode(parseInt(a,16)))}parseOpen(c){switch(c.name){case"t":return this._text=[],!0;default:return!1}}parseText(c){this._text.push(c)}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],126:[function(e,n,i){const s=e("../../../doc/enums"),o=e("../../../utils/utils"),h=e("../base-xform"),c={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((l,u)=>(l[u]=!0,l),{}),horizontal(l){return this.horizontalValues[l]?l:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((l,u)=>(l[u]=!0,l),{}),vertical(l){return l==="middle"?"center":this.verticalValues[l]?l:void 0},wrapText(l){return l?!0:void 0},shrinkToFit(l){return l?!0:void 0},textRotation(l){switch(l){case"vertical":return l;default:return l=o.validInt(l),l>=-90&&l<=90?l:void 0}},indent(l){return l=o.validInt(l),Math.max(0,l)},readingOrder(l){switch(l){case"ltr":return s.ReadingOrder.LeftToRight;case"rtl":return s.ReadingOrder.RightToLeft;default:return}}},a={toXml(l){if(l=c.textRotation(l),l){if(l==="vertical")return 255;const u=Math.round(l);if(u>=0&&u<=90)return u;if(u<0&&u>=-90)return 90-u}},toModel(l){const u=o.validInt(l);if(u!==void 0){if(u===255)return"vertical";if(u>=0&&u<=90)return u;if(u>90&&u<=180)return 90-u}}};class f extends h{get tag(){return"alignment"}render(u,p){u.addRollback(),u.openNode("alignment");let m=!1;function d(v,x){x&&(u.addAttribute(v,x),m=!0)}d("horizontal",c.horizontal(p.horizontal)),d("vertical",c.vertical(p.vertical)),d("wrapText",c.wrapText(p.wrapText)?"1":!1),d("shrinkToFit",c.shrinkToFit(p.shrinkToFit)?"1":!1),d("indent",c.indent(p.indent)),d("textRotation",a.toXml(p.textRotation)),d("readingOrder",c.readingOrder(p.readingOrder)),u.closeNode(),m?u.commit():u.rollback()}parseOpen(u){const p={};let m=!1;function d(v,x,g){v&&(p[x]=g,m=!0)}d(u.attributes.horizontal,"horizontal",u.attributes.horizontal),d(u.attributes.vertical,"vertical",u.attributes.vertical==="center"?"middle":u.attributes.vertical),d(u.attributes.wrapText,"wrapText",o.parseBoolean(u.attributes.wrapText)),d(u.attributes.shrinkToFit,"shrinkToFit",o.parseBoolean(u.attributes.shrinkToFit)),d(u.attributes.indent,"indent",parseInt(u.attributes.indent,10)),d(u.attributes.textRotation,"textRotation",a.toModel(u.attributes.textRotation)),d(u.attributes.readingOrder,"readingOrder",u.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=m?p:null}parseText(){}parseClose(){return!1}}n.exports=f},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,n,i){const s=e("../base-xform"),o=e("../../../utils/utils"),h=e("./color-xform");class c extends s{constructor(l){super(),this.name=l,this.map={color:new h}}get tag(){return this.name}render(l,u,p){const m=u&&u.color||p||this.defaultColor;l.openNode(this.name),u&&u.style&&(l.addAttribute("style",u.style),m&&this.map.color.render(l,m)),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.name:{const{style:u}=l.attributes;return u?this.model={style:u}:this.model=void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(l),!0;default:return!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):(l===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(l){return c.validStyleValues[l]}}c.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((f,l)=>(f[l]=!0,f),{});class a extends s{constructor(){super(),this.map={top:new c("top"),left:new c("left"),bottom:new c("bottom"),right:new c("right"),diagonal:new c("diagonal")}}render(l,u){const{color:p}=u;l.openNode("border"),u.diagonal&&u.diagonal.style&&(u.diagonal.up&&l.addAttribute("diagonalUp","1"),u.diagonal.down&&l.addAttribute("diagonalDown","1"));function m(d,v){d&&!d.color&&u.color&&(d={...d,color:u.color}),v.render(l,d,p)}m(u.left,this.map.left),m(u.right,this.map.right),m(u.top,this.map.top),m(u.bottom,this.map.bottom),m(u.diagonal,this.map.diagonal),l.closeNode()}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"border":return this.reset(),this.diagonalUp=o.parseBoolean(l.attributes.diagonalUp),this.diagonalDown=o.parseBoolean(l.attributes.diagonalDown),!0;default:return this.parser=this.map[l.name],this.parser?(this.parser.parseOpen(l),!0):!1}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;if(l==="border"){const u=this.model={},p=function(m,d,v){d&&(v&&Object.assign(d,v),u[m]=d)};p("left",this.map.left.model),p("right",this.map.right.model),p("top",this.map.top.model),p("bottom",this.map.bottom.model),p("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}n.exports=a},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,n,i){const s=e("../base-xform");class o extends s{constructor(c){super(),this.name=c||"color"}get tag(){return this.name}render(c,a){return a?(c.openNode(this.name),a.argb?c.addAttribute("rgb",a.argb):a.theme!==void 0?(c.addAttribute("theme",a.theme),a.tint!==void 0&&c.addAttribute("tint",a.tint)):a.indexed!==void 0?c.addAttribute("indexed",a.indexed):c.addAttribute("auto","1"),c.closeNode(),!0):!1}parseOpen(c){return c.name===this.name?(c.attributes.rgb?this.model={argb:c.attributes.rgb}:c.attributes.theme?(this.model={theme:parseInt(c.attributes.theme,10)},c.attributes.tint&&(this.model.tint=parseFloat(c.attributes.tint))):c.attributes.indexed?this.model={indexed:parseInt(c.attributes.indexed,10)}:this.model=void 0,!0):!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],129:[function(e,n,i){const s=e("../base-xform"),o=e("./alignment-xform"),h=e("./border-xform"),c=e("./fill-xform"),a=e("./font-xform"),f=e("./numfmt-xform"),l=e("./protection-xform");class u extends s{constructor(){super(),this.map={alignment:new o,border:new h,fill:new c,font:new a,numFmt:new f,protection:new l}}get tag(){return"dxf"}render(m,d){if(m.openNode(this.tag),d.font&&this.map.font.render(m,d.font),d.numFmt&&d.numFmtId){const v={id:d.numFmtId,formatCode:d.numFmt};this.map.numFmt.render(m,v)}d.fill&&this.map.fill.render(m,d.fill),d.alignment&&this.map.alignment.render(m,d.alignment),d.border&&this.map.border.render(m,d.border),d.protection&&this.map.protection.render(m,d.protection),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;switch(m.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[m.name],this.parser&&this.parser.parseOpen(m),!0}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){return this.parser?(this.parser.parseClose(m)||(this.parser=void 0),!0):m===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):!0}}n.exports=u},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,n,i){const s=e("../base-xform"),o=e("./color-xform");class h extends s{constructor(){super(),this.map={color:new o}}get tag(){return"stop"}render(u,p){u.openNode("stop"),u.addAttribute("position",p.position),this.map.color.render(u,p.color),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"stop":return this.model={position:parseFloat(u.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(u),!0;default:return!1}}parseText(){}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.model.color=this.parser.model,this.parser=void 0),!0):!1}}class c extends s{constructor(){super(),this.map={fgColor:new o("fgColor"),bgColor:new o("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(u,p){u.openNode("patternFill"),u.addAttribute("patternType",p.pattern),p.fgColor&&this.map.fgColor.render(u,p.fgColor),p.bgColor&&this.map.bgColor.render(u,p.bgColor),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"patternFill":return this.model={type:"pattern",pattern:u.attributes.patternType},!0;default:return this.parser=this.map[u.name],this.parser?(this.parser.parseOpen(u),!0):!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser.model&&(this.model[u]=this.parser.model),this.parser=void 0),!0):!1}}class a extends s{constructor(){super(),this.map={stop:new h}}get name(){return"gradient"}get tag(){return"gradientFill"}render(u,p){switch(u.openNode("gradientFill"),p.gradient){case"angle":u.addAttribute("degree",p.degree);break;case"path":u.addAttribute("type","path"),p.center.left&&(u.addAttribute("left",p.center.left),p.center.right===void 0&&u.addAttribute("right",p.center.left)),p.center.right&&u.addAttribute("right",p.center.right),p.center.top&&(u.addAttribute("top",p.center.top),p.center.bottom===void 0&&u.addAttribute("bottom",p.center.top)),p.center.bottom&&u.addAttribute("bottom",p.center.bottom);break}const m=this.map.stop;p.stops.forEach(d=>{m.render(u,d)}),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"gradientFill":{const p=this.model={stops:[]};return u.attributes.degree?(p.gradient="angle",p.degree=parseInt(u.attributes.degree,10)):u.attributes.type==="path"&&(p.gradient="path",p.center={left:u.attributes.left?parseFloat(u.attributes.left):0,top:u.attributes.top?parseFloat(u.attributes.top):0},u.attributes.right!==u.attributes.left&&(p.center.right=u.attributes.right?parseFloat(u.attributes.right):0),u.attributes.bottom!==u.attributes.top&&(p.center.bottom=u.attributes.bottom?parseFloat(u.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0):!1}}class f extends s{constructor(){super(),this.map={patternFill:new c,gradientFill:new a}}get tag(){return"fill"}render(u,p){switch(u.addRollback(),u.openNode("fill"),p.type){case"pattern":this.map.patternFill.render(u,p);break;case"gradient":this.map.gradientFill.render(u,p);break;default:u.rollback();return}u.closeNode(),u.commit()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"fill":return this.model={},!0;default:return this.parser=this.map[u.name],this.parser?(this.parser.parseOpen(u),!0):!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0):!1}validStyle(u){return f.validPatternValues[u]}}f.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((l,u)=>(l[u]=!0,l),{}),f.StopXform=h,f.PatternFillXform=c,f.GradientFillXform=a,n.exports=f},{"../base-xform":32,"./color-xform":128}],131:[function(e,n,i){const s=e("./color-xform"),o=e("../simple/boolean-xform"),h=e("../simple/integer-xform"),c=e("../simple/string-xform"),a=e("./underline-xform"),f=e("../../../utils/under-dash"),l=e("../base-xform");class u extends l{constructor(m){super(),this.options=m||u.OPTIONS,this.map={b:{prop:"bold",xform:new o({tag:"b",attr:"val"})},i:{prop:"italic",xform:new o({tag:"i",attr:"val"})},u:{prop:"underline",xform:new a},charset:{prop:"charset",xform:new h({tag:"charset",attr:"val"})},color:{prop:"color",xform:new s},condense:{prop:"condense",xform:new o({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new o({tag:"extend",attr:"val"})},family:{prop:"family",xform:new h({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new o({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new c({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new c({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new o({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new o({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new h({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new c({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(m,d){const{map:v}=this;m.openNode(this.options.tagName),f.each(this.map,(x,g)=>{v[g].xform.render(m,d[x.prop])}),m.closeNode()}parseOpen(m){if(this.parser)return this.parser.parseOpen(m),!0;if(this.map[m.name])return this.parser=this.map[m.name].xform,this.parser.parseOpen(m);switch(m.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser&&!this.parser.parseClose(m)){const d=this.map[m];return this.parser.model&&(this.model[d.prop]=this.parser.model),this.parser=void 0,!0}switch(m){case this.options.tagName:return!1;default:return!0}}}u.OPTIONS={tagName:"font",fontNameTag:"name"},n.exports=u},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,n,i){const s=e("../../../utils/under-dash"),o=e("../../defaultnumformats"),h=e("../base-xform");function c(){const l={};return s.each(o,(u,p)=>{u.f&&(l[u.f]=parseInt(p,10))}),l}const a=c();class f extends h{constructor(u,p){super(),this.id=u,this.formatCode=p}get tag(){return"numFmt"}render(u,p){u.leafNode("numFmt",{numFmtId:p.id,formatCode:p.formatCode})}parseOpen(u){switch(u.name){case"numFmt":return this.model={id:parseInt(u.attributes.numFmtId,10),formatCode:u.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}f.getDefaultFmtId=function(u){return a[u]},f.getDefaultFmtCode=function(u){return o[u]&&o[u].f},n.exports=f},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,n,i){const s=e("../base-xform"),o={boolean(c,a){return c===void 0?a:c}};class h extends s{get tag(){return"protection"}render(a,f){a.addRollback(),a.openNode("protection");let l=!1;function u(p,m){m!==void 0&&(a.addAttribute(p,m),l=!0)}u("locked",o.boolean(f.locked,!0)?void 0:"0"),u("hidden",o.boolean(f.hidden,!1)?"1":void 0),a.closeNode(),l?a.commit():a.rollback()}parseOpen(a){const f={locked:a.attributes.locked!=="0",hidden:a.attributes.hidden==="1"},l=!f.locked||f.hidden;this.model=l?f:null}parseText(){}parseClose(){return!1}}n.exports=h},{"../base-xform":32}],134:[function(e,n,i){const s=e("../base-xform"),o=e("./alignment-xform"),h=e("./protection-xform");class c extends s{constructor(f){super(),this.xfId=!!(f&&f.xfId),this.map={alignment:new o,protection:new h}}get tag(){return"xf"}render(f,l){f.openNode("xf",{numFmtId:l.numFmtId||0,fontId:l.fontId||0,fillId:l.fillId||0,borderId:l.borderId||0}),this.xfId&&f.addAttribute("xfId",l.xfId||0),l.numFmtId&&f.addAttribute("applyNumberFormat","1"),l.fontId&&f.addAttribute("applyFont","1"),l.fillId&&f.addAttribute("applyFill","1"),l.borderId&&f.addAttribute("applyBorder","1"),l.alignment&&f.addAttribute("applyAlignment","1"),l.protection&&f.addAttribute("applyProtection","1"),l.alignment&&this.map.alignment.render(f,l.alignment),l.protection&&this.map.protection.render(f,l.protection),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"xf":return this.model={numFmtId:parseInt(f.attributes.numFmtId,10),fontId:parseInt(f.attributes.fontId,10),fillId:parseInt(f.attributes.fillId,10),borderId:parseInt(f.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(f.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(f),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(f),!0;default:return!1}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return this.parser?(this.parser.parseClose(f)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):f!=="xf"}}n.exports=c},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,n,i){const s=e("../../../doc/enums"),o=e("../../../utils/xml-stream"),h=e("../base-xform"),c=e("../static-xform"),a=e("../list-xform"),f=e("./font-xform"),l=e("./fill-xform"),u=e("./border-xform"),p=e("./numfmt-xform"),m=e("./style-xform"),d=e("./dxf-xform"),v=164;class x extends h{constructor(w){super(),this.map={numFmts:new a({tag:"numFmts",count:!0,childXform:new p}),fonts:new a({tag:"fonts",count:!0,childXform:new f,$:{"x14ac:knownFonts":1}}),fills:new a({tag:"fills",count:!0,childXform:new l}),borders:new a({tag:"borders",count:!0,childXform:new u}),cellStyleXfs:new a({tag:"cellStyleXfs",count:!0,childXform:new m}),cellXfs:new a({tag:"cellXfs",count:!0,childXform:new m({xfId:!0})}),dxfs:new a({tag:"dxfs",always:!0,count:!0,childXform:new d}),numFmt:new p,font:new f,fill:new l,border:new u,style:new m({xfId:!0}),cellStyles:x.STATIC_XFORMS.cellStyles,tableStyles:x.STATIC_XFORMS.tableStyles,extLst:x.STATIC_XFORMS.extLst},w&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){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}render(w,y){y=y||this.model,w.openXml(o.StdDocAttributes),w.openNode("styleSheet",x.STYLESHEET_ATTRIBUTES),this.index?(y.numFmts&&y.numFmts.length&&(w.openNode("numFmts",{count:y.numFmts.length}),y.numFmts.forEach(T=>{w.writeXml(T)}),w.closeNode()),y.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),w.openNode("fonts",{count:y.fonts.length,"x14ac:knownFonts":1}),y.fonts.forEach(T=>{w.writeXml(T)}),w.closeNode(),w.openNode("fills",{count:y.fills.length}),y.fills.forEach(T=>{w.writeXml(T)}),w.closeNode(),w.openNode("borders",{count:y.borders.length}),y.borders.forEach(T=>{w.writeXml(T)}),w.closeNode(),this.map.cellStyleXfs.render(w,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),w.openNode("cellXfs",{count:y.styles.length}),y.styles.forEach(T=>{w.writeXml(T)}),w.closeNode()):(this.map.numFmts.render(w,y.numFmts),this.map.fonts.render(w,y.fonts),this.map.fills.render(w,y.fills),this.map.borders.render(w,y.borders),this.map.cellStyleXfs.render(w,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(w,y.styles)),x.STATIC_XFORMS.cellStyles.render(w),this.map.dxfs.render(w,y.dxfs),x.STATIC_XFORMS.tableStyles.render(w),x.STATIC_XFORMS.extLst.render(w),w.closeNode()}parseOpen(w){if(this.parser)return this.parser.parseOpen(w),!0;switch(w.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[w.name],this.parser&&this.parser.parseOpen(w),!0}}parseText(w){this.parser&&this.parser.parseText(w)}parseClose(w){if(this.parser)return this.parser.parseClose(w)||(this.parser=void 0),!0;switch(w){case"styleSheet":{this.model={};const y=(T,C)=>{C.model&&C.model.length&&(this.model[T]=C.model)};if(y("numFmts",this.map.numFmts),y("fonts",this.map.fonts),y("fills",this.map.fills),y("borders",this.map.borders),y("styles",this.map.cellXfs),y("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const T=this.index.numFmt;this.model.numFmts.forEach(C=>{T[C.id]=C.formatCode})}return!1}default:return!0}}addStyleModel(w,y){if(!w)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(w))return this.weakMap.get(w);const T={};if(y=y||s.ValueType.Number,w.numFmt)T.numFmtId=this._addNumFmtStr(w.numFmt);else switch(y){case s.ValueType.Number:T.numFmtId=this._addNumFmtStr("General");break;case s.ValueType.Date:T.numFmtId=this._addNumFmtStr("mm-dd-yy");break}w.font&&(T.fontId=this._addFont(w.font)),w.border&&(T.borderId=this._addBorder(w.border)),w.fill&&(T.fillId=this._addFill(w.fill)),w.alignment&&(T.alignment=w.alignment),w.protection&&(T.protection=w.protection);const C=this._addStyle(T);return this.weakMap&&this.weakMap.set(w,C),C}getStyleModel(w){const y=this.model.styles[w];if(!y)return null;let T=this.index.model[w];if(T)return T;if(T=this.index.model[w]={},y.numFmtId){const M=this.index.numFmt[y.numFmtId]||p.getDefaultFmtCode(y.numFmtId);M&&(T.numFmt=M)}function C(M,I,B){if(B||B===0){const U=I[B];U&&(T[M]=U)}}return C("font",this.model.fonts,y.fontId),C("border",this.model.borders,y.borderId),C("fill",this.model.fills,y.fillId),y.alignment&&(T.alignment=y.alignment),y.protection&&(T.protection=y.protection),T}addDxfStyle(w){return w.numFmt&&(w.numFmtId=this._addNumFmtStr(w.numFmt)),this.model.dxfs.push(w),this.model.dxfs.length-1}getDxfStyle(w){return this.model.dxfs[w]}_addStyle(w){const y=this.map.style.toXml(w);let T=this.index.style[y];return T===void 0&&(T=this.index.style[y]=this.model.styles.length,this.model.styles.push(y)),T}_addNumFmtStr(w){let y=p.getDefaultFmtId(w);if(y!==void 0||(y=this.index.numFmt[w],y!==void 0))return y;y=this.index.numFmt[w]=v+this.model.numFmts.length;const T=this.map.numFmt.toXml({id:y,formatCode:w});return this.model.numFmts.push(T),y}_addFont(w){const y=this.map.font.toXml(w);let T=this.index.font[y];return T===void 0&&(T=this.index.font[y]=this.model.fonts.length,this.model.fonts.push(y)),T}_addBorder(w){const y=this.map.border.toXml(w);let T=this.index.border[y];return T===void 0&&(T=this.index.border[y]=this.model.borders.length,this.model.borders.push(y)),T}_addFill(w){const y=this.map.fill.toXml(w);let T=this.index.fill[y];return T===void 0&&(T=this.index.fill[y]=this.model.fills.length,this.model.fills.push(y)),T}}x.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"},x.STATIC_XFORMS={cellStyles:new c({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new c({tag:"dxfs",$:{count:0}}),tableStyles:new c({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new c({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"}}]}]})};class g extends x{constructor(){super(),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"}]}}parseStream(w){return w.autodrain(),Promise.resolve()}addStyleModel(w,y){switch(y){case s.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const w={numFmtId:p.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(w)}return this._dateStyleId}getStyleModel(){return{}}}x.Mock=g,n.exports=x},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,n,i){const s=e("../base-xform");class o extends s{constructor(c){super(),this.model=c}get tag(){return"u"}render(c,a){if(a=a||this.model,a===!0)c.leafNode("u");else{const f=o.Attributes[a];f&&c.leafNode("u",f)}}parseOpen(c){c.name==="u"&&(this.model=c.attributes.val||!0)}parseText(){}parseClose(){return!1}}o.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},n.exports=o},{"../base-xform":32}],137:[function(e,n,i){const s=e("../base-xform"),o=e("./filter-column-xform");class h extends s{constructor(){super(),this.map={filterColumn:new o}}get tag(){return"autoFilter"}prepare(a){a.columns.forEach((f,l)=>{this.map.filterColumn.prepare(f,{index:l})})}render(a,f){return a.openNode(this.tag,{ref:f.autoFilterRef}),f.columns.forEach(l=>{this.map.filterColumn.render(a,l)}),a.closeNode(),!0}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:return this.model={autoFilterRef:a.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[a.name],this.parser)return this.parseOpen(a),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(a)}`)}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(a){case this.tag:return!1;default:throw new Error(`Unexpected xml node in parseClose: ${a}`)}}}n.exports=h},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"customFilter"}render(c,a){c.leafNode(this.tag,{val:a.val,operator:a.operator})}parseOpen(c){return c.name===this.tag?(this.model={val:c.attributes.val,operator:c.attributes.operator},!0):!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],139:[function(e,n,i){const s=e("../base-xform"),o=e("../list-xform"),h=e("./custom-filter-xform"),c=e("./filter-xform");class a extends s{constructor(){super(),this.map={customFilters:new o({tag:"customFilters",count:!1,empty:!0,childXform:new h}),filters:new o({tag:"filters",count:!1,empty:!0,childXform:new c})}}get tag(){return"filterColumn"}prepare(l,u){l.colId=u.index.toString()}render(l,u){return u.customFilters?(l.openNode(this.tag,{colId:u.colId,hiddenButton:u.filterButton?"0":"1"}),this.map.customFilters.render(l,u.customFilters),l.closeNode(),!0):(l.leafNode(this.tag,{colId:u.colId,hiddenButton:u.filterButton?"0":"1"}),!0)}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;const{attributes:u}=l;switch(l.name){case this.tag:return this.model={filterButton:u.hiddenButton==="0"},!0;default:if(this.parser=this.map[l.name],this.parser)return this.parseOpen(l),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(l)}`)}}parseText(){}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.parser=void 0),!0;switch(l){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}n.exports=a},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"filter"}render(c,a){c.leafNode(this.tag,{val:a.val})}parseOpen(c){return c.name===this.tag?(this.model={val:c.attributes.val},!0):!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],141:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"tableColumn"}prepare(c,a){c.id=a.index+1}render(c,a){return c.leafNode(this.tag,{id:a.id.toString(),name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId}),!0}parseOpen(c){if(c.name===this.tag){const{attributes:a}=c;return this.model={name:a.name,totalsRowLabel:a.totalsRowLabel,totalsRowFunction:a.totalsRowFunction,dxfId:a.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],142:[function(e,n,i){const s=e("../base-xform");class o extends s{get tag(){return"tableStyleInfo"}render(c,a){return c.leafNode(this.tag,{name:a.theme?a.theme:void 0,showFirstColumn:a.showFirstColumn?"1":"0",showLastColumn:a.showLastColumn?"1":"0",showRowStripes:a.showRowStripes?"1":"0",showColumnStripes:a.showColumnStripes?"1":"0"}),!0}parseOpen(c){if(c.name===this.tag){const{attributes:a}=c;return this.model={theme:a.name?a.name:null,showFirstColumn:a.showFirstColumn==="1",showLastColumn:a.showLastColumn==="1",showRowStripes:a.showRowStripes==="1",showColumnStripes:a.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}n.exports=o},{"../base-xform":32}],143:[function(e,n,i){const s=e("../../../utils/xml-stream"),o=e("../base-xform"),h=e("../list-xform"),c=e("./auto-filter-xform"),a=e("./table-column-xform"),f=e("./table-style-info-xform");class l extends o{constructor(){super(),this.map={autoFilter:new c,tableColumns:new h({tag:"tableColumns",count:!0,empty:!0,childXform:new a}),tableStyleInfo:new f}}prepare(p,m){this.map.autoFilter.prepare(p),this.map.tableColumns.prepare(p.columns,m)}get tag(){return"table"}render(p,m){p.openXml(s.StdDocAttributes),p.openNode(this.tag,{...l.TABLE_ATTRIBUTES,id:m.id,name:m.name,displayName:m.displayName||m.name,ref:m.tableRef,totalsRowCount:m.totalsRow?"1":void 0,totalsRowShown:m.totalsRow?void 0:"1",headerRowCount:m.headerRow?"1":"0"}),this.map.autoFilter.render(p,m),this.map.tableColumns.render(p,m.columns),this.map.tableStyleInfo.render(p,m.style),p.closeNode()}parseOpen(p){if(this.parser)return this.parser.parseOpen(p),!0;const{name:m,attributes:d}=p;switch(m){case this.tag:this.reset(),this.model={name:d.name,displayName:d.displayName||d.name,tableRef:d.ref,totalsRow:d.totalsRowCount==="1",headerRow:d.headerRowCount==="1"};break;default:this.parser=this.map[p.name],this.parser&&this.parser.parseOpen(p);break}return!0}parseText(p){this.parser&&this.parser.parseText(p)}parseClose(p){if(this.parser)return this.parser.parseClose(p)||(this.parser=void 0),!0;switch(p){case this.tag:return 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((m,d)=>{this.model.columns[d].filterButton=m.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(p,m){p.columns.forEach(d=>{d.dxfId!==void 0&&(d.style=m.styles.getDxfStyle(d.dxfId))})}}l.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},n.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,n,i){(function(s,o){(function(){const h=e("fs"),c=e("jszip"),{PassThrough:a}=e("readable-stream"),f=e("../utils/zip-stream"),l=e("../utils/stream-buf"),u=e("../utils/utils"),p=e("../utils/xml-stream"),{bufferToString:m}=e("../utils/browser-buffer-decode"),d=e("./xform/style/styles-xform"),v=e("./xform/core/core-xform"),x=e("./xform/strings/shared-strings-xform"),g=e("./xform/core/relationships-xform"),b=e("./xform/core/content-types-xform"),w=e("./xform/core/app-xform"),y=e("./xform/book/workbook-xform"),T=e("./xform/sheet/worksheet-xform"),C=e("./xform/drawing/drawing-xform"),M=e("./xform/table/table-xform"),I=e("./xform/comment/comments-xform"),B=e("./xform/comment/vml-notes-xform"),U=e("./xml/theme1");function j(G,L){return new Promise((R,F)=>{h.readFile(G,L,(_,k)=>{_?F(_):R(k)})})}class H{constructor(L){this.workbook=L}async readFile(L,R){if(!await u.fs.exists(L))throw new Error(`File not found: ${L}`);const F=h.createReadStream(L);try{const _=await this.read(F,R);return F.close(),_}catch(_){throw F.close(),_}}parseRels(L){return new g().parseStream(L)}parseWorkbook(L){return new y().parseStream(L)}parseSharedStrings(L){return new x().parseStream(L)}reconcile(L,R){const F=new y,_=new T(R),k=new C,N=new M;F.reconcile(L);const P={media:L.media,mediaIndex:L.mediaIndex};Object.keys(L.drawings).forEach(S=>{const E=L.drawings[S],O=L.drawingRels[S];O&&(P.rels=O.reduce((z,J)=>(z[J.Id]=J,z),{}),(E.anchors||[]).forEach(z=>{const J=z.picture&&z.picture.hyperlinks;J&&P.rels[J.rId]&&(J.hyperlink=P.rels[J.rId].Target,delete J.rId)}),k.reconcile(E,P))});const D={styles:L.styles};Object.values(L.tables).forEach(S=>{N.reconcile(S,D)});const A={styles:L.styles,sharedStrings:L.sharedStrings,media:L.media,mediaIndex:L.mediaIndex,date1904:L.properties&&L.properties.date1904,drawings:L.drawings,comments:L.comments,tables:L.tables,vmlDrawings:L.vmlDrawings};L.worksheets.forEach(S=>{S.relationships=L.worksheetRels[S.sheetNo],_.reconcile(S,A)}),delete L.worksheetHash,delete L.worksheetRels,delete L.globalRels,delete L.sharedStrings,delete L.workbookRels,delete L.sheetDefs,delete L.styles,delete L.mediaIndex,delete L.drawings,delete L.drawingRels,delete L.vmlDrawings}async _processWorksheetEntry(L,R,F,_,k){const P=await new T(_).parseStream(L);P.sheetNo=F,R.worksheetHash[k]=P,R.worksheets.push(P)}async _processCommentEntry(L,R,F){const k=await new I().parseStream(L);R.comments[`../${F}.xml`]=k}async _processTableEntry(L,R,F){const k=await new M().parseStream(L);R.tables[`../tables/${F}.xml`]=k}async _processWorksheetRelsEntry(L,R,F){const k=await new g().parseStream(L);R.worksheetRels[F]=k}async _processMediaEntry(L,R,F){const _=F.lastIndexOf(".");if(_>=1){const k=F.substr(_+1),N=F.substr(0,_);await new Promise((P,D)=>{const A=new l;A.on("finish",()=>{R.mediaIndex[F]=R.media.length,R.mediaIndex[N]=R.media.length;const S={type:"image",name:N,extension:k,buffer:A.toBuffer()};R.media.push(S),P()}),L.on("error",S=>{D(S)}),L.pipe(A)})}}async _processDrawingEntry(L,R,F){const k=await new C().parseStream(L);R.drawings[F]=k}async _processDrawingRelsEntry(L,R,F){const k=await new g().parseStream(L);R.drawingRels[F]=k}async _processVmlDrawingEntry(L,R,F){const k=await new B().parseStream(L);R.vmlDrawings[`../drawings/${F}.vml`]=k}async _processThemeEntry(L,R,F){await new Promise((_,k)=>{const N=new l;L.on("error",k),N.on("error",k),N.on("finish",()=>{R.themes[F]=N.read().toString(),_()}),L.pipe(N)})}createInputStream(){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")}async read(L,R){!L[Symbol.asyncIterator]&&L.pipe&&(L=L.pipe(new a));const F=[];for await(const _ of L)F.push(_);return this.load(o.concat(F),R)}async load(L,R){let F;R&&R.base64?F=o.from(L.toString(),"base64"):F=L;const _={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},k=await c.loadAsync(F);for(const N of Object.values(k.files))if(!N.dir){let P=N.name;P[0]==="/"&&(P=P.substr(1));let D;if(P.match(/xl\/media\//)||P.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))D=new a,D.write(await N.async("nodebuffer"));else{D=new a({writableObjectMode:!0,readableObjectMode:!0});let A;s.browser?A=m(await N.async("nodebuffer")):A=await N.async("string");const S=16*1024;for(let E=0;E<A.length;E+=S)D.write(A.substring(E,E+S))}switch(D.end(),P){case"_rels/.rels":_.globalRels=await this.parseRels(D);break;case"xl/workbook.xml":{const A=await this.parseWorkbook(D);_.sheets=A.sheets,_.definedNames=A.definedNames,_.views=A.views,_.properties=A.properties,_.calcProperties=A.calcProperties;break}case"xl/_rels/workbook.xml.rels":_.workbookRels=await this.parseRels(D);break;case"xl/sharedStrings.xml":_.sharedStrings=new x,await _.sharedStrings.parseStream(D);break;case"xl/styles.xml":_.styles=new d,await _.styles.parseStream(D);break;case"docProps/app.xml":{const S=await new w().parseStream(D);_.company=S.company,_.manager=S.manager;break}case"docProps/core.xml":{const S=await new v().parseStream(D);Object.assign(_,S);break}default:{let A=P.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(A){await this._processWorksheetEntry(D,_,A[1],R,P);break}if(A=P.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),A){await this._processWorksheetRelsEntry(D,_,A[1]);break}if(A=P.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),A){await this._processThemeEntry(D,_,A[1]);break}if(A=P.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),A){await this._processMediaEntry(D,_,A[1]);break}if(A=P.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),A){await this._processDrawingEntry(D,_,A[1]);break}if(A=P.match(/xl\/(comments\d+)[.]xml/),A){await this._processCommentEntry(D,_,A[1]);break}if(A=P.match(/xl\/tables\/(table\d+)[.]xml/),A){await this._processTableEntry(D,_,A[1]);break}if(A=P.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),A){await this._processDrawingRelsEntry(D,_,A[1]);break}if(A=P.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),A){await this._processVmlDrawingEntry(D,_,A[1]);break}}}}return this.reconcile(_,R),this.workbook.model=_,this.workbook}async addMedia(L,R){await Promise.all(R.media.map(async F=>{if(F.type==="image"){const _=`xl/media/${F.name}.${F.extension}`;if(F.filename){const k=await j(F.filename);return L.append(k,{name:_})}if(F.buffer)return L.append(F.buffer,{name:_});if(F.base64){const k=F.base64,N=k.substring(k.indexOf(",")+1);return L.append(N,{name:_,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(L,R){const F=new C,_=new g;R.worksheets.forEach(k=>{const{drawing:N}=k;if(N){F.prepare(N,{});let P=F.toXml(N);L.append(P,{name:`xl/drawings/${N.name}.xml`}),P=_.toXml(N.rels),L.append(P,{name:`xl/drawings/_rels/${N.name}.xml.rels`})}})}addTables(L,R){const F=new M;R.worksheets.forEach(_=>{const{tables:k}=_;k.forEach(N=>{F.prepare(N,{});const P=F.toXml(N);L.append(P,{name:`xl/tables/${N.target}`})})})}async addContentTypes(L,R){const _=new b().toXml(R);L.append(_,{name:"[Content_Types].xml"})}async addApp(L,R){const _=new w().toXml(R);L.append(_,{name:"docProps/app.xml"})}async addCore(L,R){const F=new v;L.append(F.toXml(R),{name:"docProps/core.xml"})}async addThemes(L,R){const F=R.themes||{theme1:U};Object.keys(F).forEach(_=>{const k=F[_],N=`xl/theme/${_}.xml`;L.append(k,{name:N})})}async addOfficeRels(L){const F=new g().toXml([{Id:"rId1",Type:H.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:H.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:H.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);L.append(F,{name:"_rels/.rels"})}async addWorkbookRels(L,R){let F=1;const _=[{Id:`rId${F++}`,Type:H.RelType.Styles,Target:"styles.xml"},{Id:`rId${F++}`,Type:H.RelType.Theme,Target:"theme/theme1.xml"}];R.sharedStrings.count&&_.push({Id:`rId${F++}`,Type:H.RelType.SharedStrings,Target:"sharedStrings.xml"}),R.worksheets.forEach(P=>{P.rId=`rId${F++}`,_.push({Id:P.rId,Type:H.RelType.Worksheet,Target:`worksheets/sheet${P.id}.xml`})});const N=new g().toXml(_);L.append(N,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(L,R){R.sharedStrings&&R.sharedStrings.count&&L.append(R.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(L,R){const{xml:F}=R.styles;F&&L.append(F,{name:"xl/styles.xml"})}async addWorkbook(L,R){const F=new y;L.append(F.toXml(R),{name:"xl/workbook.xml"})}async addWorksheets(L,R){const F=new T,_=new g,k=new I,N=new B;R.worksheets.forEach(P=>{let D=new p;F.render(D,P),L.append(D.xml,{name:`xl/worksheets/sheet${P.id}.xml`}),P.rels&&P.rels.length&&(D=new p,_.render(D,P.rels),L.append(D.xml,{name:`xl/worksheets/_rels/sheet${P.id}.xml.rels`})),P.comments.length>0&&(D=new p,k.render(D,P),L.append(D.xml,{name:`xl/comments${P.id}.xml`}),D=new p,N.render(D,P),L.append(D.xml,{name:`xl/drawings/vmlDrawing${P.id}.vml`}))})}_finalize(L){return new Promise((R,F)=>{L.on("finish",()=>{R(this)}),L.on("error",F),L.finalize()})}prepareModel(L,R){L.creator=L.creator||"ExcelJS",L.lastModifiedBy=L.lastModifiedBy||"ExcelJS",L.created=L.created||new Date,L.modified=L.modified||new Date,L.useSharedStrings=R.useSharedStrings!==void 0?R.useSharedStrings:!0,L.useStyles=R.useStyles!==void 0?R.useStyles:!0,L.sharedStrings=new x,L.styles=L.useStyles?new d(!0):new d.Mock;const F=new y,_=new T;F.prepare(L);const k={sharedStrings:L.sharedStrings,styles:L.styles,date1904:L.properties.date1904,drawingsCount:0,media:L.media};k.drawings=L.drawings=[],k.commentRefs=L.commentRefs=[];let N=0;L.tables=[],L.worksheets.forEach(P=>{P.tables.forEach(D=>{N++,D.target=`table${N}.xml`,D.id=N,L.tables.push(D)}),_.prepare(P,k)})}async write(L,R){R=R||{};const{model:F}=this.workbook,_=new f.ZipWriter(R.zip);return _.pipe(L),this.prepareModel(F,R),await this.addContentTypes(_,F),await this.addOfficeRels(_,F),await this.addWorkbookRels(_,F),await this.addWorksheets(_,F),await this.addSharedStrings(_,F),await this.addDrawings(_,F),await this.addTables(_,F),await Promise.all([this.addThemes(_,F),this.addStyles(_,F)]),await this.addMedia(_,F),await Promise.all([this.addApp(_,F),this.addCore(_,F)]),await this.addWorkbook(_,F),this._finalize(_)}writeFile(L,R){const F=h.createWriteStream(L);return new Promise((_,k)=>{F.on("finish",()=>{_()}),F.on("error",N=>{k(N)}),this.write(F,R).then(()=>{F.end()}).catch(N=>{k(N)})})}async writeBuffer(L){const R=new l;return await this.write(R,L),R.read()}}H.RelType=e("./rel-type"),n.exports=H}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,n,i){n.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>`},{}],146:[function(e,n,i){(function(s){(function(){Object.defineProperty(i,"__esModule",{value:!0}),i.CsvFormatterStream=void 0;const o=e("stream"),h=e("./formatter");class c extends o.Transform{constructor(f){super({writableObjectMode:f.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=f,this.rowFormatter=new h.RowFormatter(f),this.hasWrittenBOM=!f.writeBOM}transform(f){return this.rowFormatter.rowTransform=f,this}_transform(f,l,u){let p=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(f,(m,d)=>m?(p=!0,u(m)):(d&&d.forEach(v=>{this.push(s.from(v,"utf8"))}),p=!0,u()))}catch(m){if(p)throw m;u(m)}}_flush(f){this.rowFormatter.finish((l,u)=>l?f(l):(u&&u.forEach(p=>{this.push(s.from(p,"utf8"))}),f()))}}i.CsvFormatterStream=c}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.FormatterOptions=void 0;class s{constructor(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var 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,h||{}),typeof(h==null?void 0:h.quoteHeaders)>"u"&&(this.quoteHeaders=this.quoteColumns),(h==null?void 0:h.quote)===!0?this.quote='"':(h==null?void 0:h.quote)===!1&&(this.quote=""),typeof(h==null?void 0:h.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((c=h.writeHeaders)!==null&&c!==void 0?c:!0),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}i.FormatterOptions=s},{}],148:[function(e,n,i){var s=function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(i,"__esModule",{value:!0}),i.FieldFormatter=void 0;const o=s(e("lodash.isboolean")),h=s(e("lodash.isnil")),c=s(e("lodash.escaperegexp"));class a{constructor(l){this._headers=null,this.formatterOptions=l,l.headers!==null&&(this.headers=l.headers),this.REPLACE_REGEXP=new RegExp(l.quote,"g");const u=`[${l.delimiter}${c.default(l.rowDelimiter)}|\r|
|
||
]`;this.ESCAPE_REGEXP=new RegExp(u)}set headers(l){this._headers=l}shouldQuote(l,u){const p=u?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return o.default(p)?p:Array.isArray(p)?p[l]:this._headers!==null?p[this._headers[l]]:!1}format(l,u,p){const m=`${h.default(l)?"":l}`.replace(/\0/g,""),{formatterOptions:d}=this;return d.quote!==""&&m.indexOf(d.quote)!==-1?this.quoteField(m.replace(this.REPLACE_REGEXP,d.escapedQuote)):m.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(u,p)?this.quoteField(m):m}quoteField(l){const{quote:u}=this.formatterOptions;return`${u}${l}${u}`}}i.FieldFormatter=a},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,n,i){var s=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(i,"__esModule",{value:!0}),i.RowFormatter=void 0;const o=s(e("lodash.isfunction")),h=s(e("lodash.isequal")),c=e("./FieldFormatter"),a=e("../types");class f{constructor(u){this.rowCount=0,this.formatterOptions=u,this.fieldFormatter=new c.FieldFormatter(u),this.headers=u.headers,this.shouldWriteHeaders=u.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),u.transform&&(this.rowTransform=u.transform)}static isRowHashArray(u){return Array.isArray(u)?Array.isArray(u[0])&&u[0].length===2:!1}static isRowArray(u){return Array.isArray(u)&&!this.isRowHashArray(u)}static gatherHeaders(u){return f.isRowHashArray(u)?u.map(p=>p[0]):Array.isArray(u)?u:Object.keys(u)}static createTransform(u){return a.isSyncTransform(u)?(p,m)=>{let d=null;try{d=u(p)}catch(v){return m(v)}return m(null,d)}:(p,m)=>{u(p,m)}}set rowTransform(u){if(!o.default(u))throw new TypeError("The transform should be a function");this._rowTransform=f.createTransform(u)}format(u,p){this.callTransformer(u,(m,d)=>{if(m)return p(m);if(!u)return p(null);const v=[];if(d){const{shouldFormatColumns:x,headers:g}=this.checkHeaders(d);if(this.shouldWriteHeaders&&g&&!this.hasWrittenHeaders&&(v.push(this.formatColumns(g,!0)),this.hasWrittenHeaders=!0),x){const b=this.gatherColumns(d);v.push(this.formatColumns(b,!1))}}return p(null,v)})}finish(u){const p=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return u(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));p.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&p.push(this.formatterOptions.rowDelimiter),u(null,p)}checkHeaders(u){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const p=f.gatherHeaders(u);return this.headers=p,this.fieldFormatter.headers=p,this.shouldWriteHeaders?{shouldFormatColumns:!h.default(p,u),headers:p}:{shouldFormatColumns:!0,headers:null}}gatherColumns(u){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(u)?f.isRowHashArray(u)?this.headers.map((p,m)=>{const d=u[m];return d?d[1]:""}):f.isRowArray(u)&&!this.shouldWriteHeaders?u:this.headers.map((p,m)=>u[m]):this.headers.map(p=>u[p])}callTransformer(u,p){return this._rowTransform?this._rowTransform(u,p):p(null,u)}formatColumns(u,p){const m=u.map((v,x)=>this.fieldFormatter.format(v,x,p)).join(this.formatterOptions.delimiter),{rowCount:d}=this;return this.rowCount+=1,d?[this.formatterOptions.rowDelimiter,m].join(""):m}}i.RowFormatter=f},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.FieldFormatter=i.RowFormatter=void 0;var s=e("./RowFormatter");Object.defineProperty(i,"RowFormatter",{enumerable:!0,get:function(){return s.RowFormatter}});var o=e("./FieldFormatter");Object.defineProperty(i,"FieldFormatter",{enumerable:!0,get:function(){return o.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,n,i){(function(s){(function(){var o=Object.create?function(x,g,b,w){w===void 0&&(w=b),Object.defineProperty(x,w,{enumerable:!0,get:function(){return g[b]}})}:function(x,g,b,w){w===void 0&&(w=b),x[w]=g[b]},h=Object.create?function(x,g){Object.defineProperty(x,"default",{enumerable:!0,value:g})}:function(x,g){x.default=g},c=function(x){if(x&&x.__esModule)return x;var g={};if(x!=null)for(var b in x)b!=="default"&&Object.prototype.hasOwnProperty.call(x,b)&&o(g,x,b);return h(g,x),g},a=function(x,g){for(var b in x)b!=="default"&&!Object.prototype.hasOwnProperty.call(g,b)&&o(g,x,b)};Object.defineProperty(i,"__esModule",{value:!0}),i.writeToPath=i.writeToString=i.writeToBuffer=i.writeToStream=i.write=i.format=i.FormatterOptions=i.CsvFormatterStream=void 0;const f=e("util"),l=e("stream"),u=c(e("fs")),p=e("./FormatterOptions"),m=e("./CsvFormatterStream");a(e("./types"),i);var d=e("./CsvFormatterStream");Object.defineProperty(i,"CsvFormatterStream",{enumerable:!0,get:function(){return d.CsvFormatterStream}});var v=e("./FormatterOptions");Object.defineProperty(i,"FormatterOptions",{enumerable:!0,get:function(){return v.FormatterOptions}}),i.format=x=>new m.CsvFormatterStream(new p.FormatterOptions(x)),i.write=(x,g)=>{const b=i.format(g),w=f.promisify((y,T)=>{b.write(y,void 0,T)});return x.reduce((y,T)=>y.then(()=>w(T)),Promise.resolve()).then(()=>b.end()).catch(y=>{b.emit("error",y)}),b},i.writeToStream=(x,g,b)=>i.write(g,b).pipe(x),i.writeToBuffer=function(x){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const b=[],w=new l.Writable({write(y,T,C){b.push(y),C()}});return new Promise((y,T)=>{w.on("error",T).on("finish",()=>y(s.concat(b))),i.write(x,g).pipe(w)})},i.writeToString=(x,g)=>i.writeToBuffer(x,g).then(b=>b.toString()),i.writeToPath=(x,g,b)=>{const w=u.createWriteStream(x,{encoding:"utf8"});return i.write(g,b).pipe(w)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.isSyncTransform=void 0,i.isSyncTransform=s=>s.length===1},{}],153:[function(e,n,i){(function(s){(function(){Object.defineProperty(i,"__esModule",{value:!0}),i.CsvParserStream=void 0;const o=e("string_decoder"),h=e("stream"),c=e("./transforms"),a=e("./parser");class f extends h.Transform{constructor(u){super({objectMode:u.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=u,this.parser=new a.Parser(u),this.headerTransformer=new c.HeaderTransformer(u),this.decoder=new o.StringDecoder(u.encoding),this.rowTransformerValidator=new c.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(u){return this.rowTransformerValidator.rowTransform=u,this}validate(u){return this.rowTransformerValidator.rowValidator=u,this}emit(u){if(u==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var p=arguments.length,m=new Array(p>1?p-1:0),d=1;d<p;d++)m[d-1]=arguments[d];return super.emit(u,...m)}_transform(u,p,m){if(this.hasHitRowLimit)return m();const d=f.wrapDoneCallback(m);try{const{lines:v}=this,x=v+this.decoder.write(u),g=this.parse(x,!0);return this.processRows(g,d)}catch(v){return d(v)}}_flush(u){const p=f.wrapDoneCallback(u);if(this.hasHitRowLimit)return p();try{const m=this.lines+this.decoder.end(),d=this.parse(m,!1);return this.processRows(d,p)}catch(m){return p(m)}}parse(u,p){if(!u)return[];const{line:m,rows:d}=this.parser.parse(u,p);return this.lines=m,d}processRows(u,p){const m=u.length,d=v=>{const x=w=>{if(w)return p(w);if(v%100===0){s(()=>d(v+1));return}return d(v+1)};if(this.checkAndEmitHeaders(),v>=m||this.hasHitRowLimit)return p();if(this.parsedLineCount+=1,this.shouldSkipLine)return x();const g=u[v];this.rowCount+=1,this.parsedRowCount+=1;const b=this.rowCount;return this.transformRow(g,(w,y)=>{if(w)return this.rowCount-=1,x(w);if(!y)return x(new Error("expected transform result"));if(!y.isValid)this.emit("data-invalid",y.row,b,y.reason);else if(y.row)return this.pushRow(y.row,x);return x()})};d(0)}transformRow(u,p){try{this.headerTransformer.transform(u,(m,d)=>m?p(m):d?d.isValid?d.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(d.row,p):this.skipRow(p):(this.rowCount-=1,this.parsedRowCount-=1,p(null,{row:null,isValid:!0})):this.shouldEmitRows?p(null,{isValid:!1,row:u}):this.skipRow(p):p(new Error("Expected result from header transform")))}catch(m){p(m)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(u){return this.rowCount-=1,u(null,{row:null,isValid:!0})}pushRow(u,p){try{this.parserOptions.objectMode?this.push(u):this.push(JSON.stringify(u)),p()}catch(m){p(m)}}static wrapDoneCallback(u){let p=!1;return function(m){if(m){if(p)throw m;p=!0,u(m);return}for(var d=arguments.length,v=new Array(d>1?d-1:0),x=1;x<d;x++)v[x-1]=arguments[x];u(...v)}}}i.CsvParserStream=f}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,n,i){var s=function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(i,"__esModule",{value:!0}),i.ParserOptions=void 0;const o=s(e("lodash.escaperegexp")),h=s(e("lodash.isnil"));class c{constructor(f){var l;if(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,f||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=o.default(this.delimiter),this.escapeChar=(l=this.escape)!==null&&l!==void 0?l:this.quote,this.supportsComments=!h.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}i.ParserOptions=c},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,n,i){var s=Object.create?function(d,v,x,g){g===void 0&&(g=x),Object.defineProperty(d,g,{enumerable:!0,get:function(){return v[x]}})}:function(d,v,x,g){g===void 0&&(g=x),d[g]=v[x]},o=Object.create?function(d,v){Object.defineProperty(d,"default",{enumerable:!0,value:v})}:function(d,v){d.default=v},h=function(d){if(d&&d.__esModule)return d;var v={};if(d!=null)for(var x in d)x!=="default"&&Object.prototype.hasOwnProperty.call(d,x)&&s(v,d,x);return o(v,d),v},c=function(d,v){for(var x in d)x!=="default"&&!Object.prototype.hasOwnProperty.call(v,x)&&s(v,d,x)};Object.defineProperty(i,"__esModule",{value:!0}),i.parseString=i.parseFile=i.parseStream=i.parse=i.ParserOptions=i.CsvParserStream=void 0;const a=h(e("fs")),f=e("stream"),l=e("./ParserOptions"),u=e("./CsvParserStream");c(e("./types"),i);var p=e("./CsvParserStream");Object.defineProperty(i,"CsvParserStream",{enumerable:!0,get:function(){return p.CsvParserStream}});var m=e("./ParserOptions");Object.defineProperty(i,"ParserOptions",{enumerable:!0,get:function(){return m.ParserOptions}}),i.parse=d=>new u.CsvParserStream(new l.ParserOptions(d)),i.parseStream=(d,v)=>d.pipe(new u.CsvParserStream(new l.ParserOptions(v))),i.parseFile=function(d){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a.createReadStream(d).pipe(new u.CsvParserStream(new l.ParserOptions(v)))},i.parseString=(d,v)=>{const x=new f.Readable;return x.push(d),x.push(null),x.pipe(new u.CsvParserStream(new l.ParserOptions(v)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.Parser=void 0;const s=e("./Scanner"),o=e("./RowParser"),h=e("./Token");class c{constructor(f){this.parserOptions=f,this.rowParser=new o.RowParser(this.parserOptions)}static removeBOM(f){return f&&f.charCodeAt(0)===65279?f.slice(1):f}parse(f,l){const u=new s.Scanner({line:c.removeBOM(f),parserOptions:this.parserOptions,hasMoreData:l});return this.parserOptions.supportsComments?this.parseWithComments(u):this.parseWithoutComments(u)}parseWithoutComments(f){const l=[];let u=!0;for(;u;)u=this.parseRow(f,l);return{line:f.line,rows:l}}parseWithComments(f){const{parserOptions:l}=this,u=[];for(let p=f.nextCharacterToken;p!==null;p=f.nextCharacterToken)if(h.Token.isTokenComment(p,l)){if(f.advancePastLine()===null)return{line:f.lineFromCursor,rows:u};if(!f.hasMoreCharacters)return{line:f.lineFromCursor,rows:u};f.truncateToCursor()}else if(!this.parseRow(f,u))break;return{line:f.line,rows:u}}parseRow(f,l){if(!f.nextNonSpaceToken)return!1;const p=this.rowParser.parse(f);return p===null?!1:(this.parserOptions.ignoreEmpty&&o.RowParser.isEmptyRow(p)||l.push(p),!0)}}i.Parser=c},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.RowParser=void 0;const s=e("./column"),o=e("./Token"),h="";class c{constructor(f){this.parserOptions=f,this.columnParser=new s.ColumnParser(f)}static isEmptyRow(f){return f.join(h).replace(/\s+/g,h)===h}parse(f){const{parserOptions:l}=this,{hasMoreData:u}=f,p=f,m=[];let d=this.getStartToken(p,m);for(;d;){if(o.Token.isTokenRowDelimiter(d))return p.advancePastToken(d),!p.hasMoreCharacters&&o.Token.isTokenCarriageReturn(d,l)&&u?null:(p.truncateToCursor(),m);if(!this.shouldSkipColumnParse(p,d,m)){const v=this.columnParser.parse(p);if(v===null)return null;m.push(v)}d=p.nextNonSpaceToken}return u?null:(p.truncateToCursor(),m)}getStartToken(f,l){const u=f.nextNonSpaceToken;return u!==null&&o.Token.isTokenDelimiter(u,this.parserOptions)?(l.push(""),f.nextNonSpaceToken):u}shouldSkipColumnParse(f,l,u){const{parserOptions:p}=this;if(o.Token.isTokenDelimiter(l,p)){f.advancePastToken(l);const m=f.nextCharacterToken;if(!f.hasMoreCharacters||m!==null&&o.Token.isTokenRowDelimiter(m)||m!==null&&o.Token.isTokenDelimiter(m,p))return u.push(""),!0}return!1}}i.RowParser=c},{"./Token":159,"./column":164}],158:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.Scanner=void 0;const s=e("./Token"),o=/((?:\r\n)|\n|\r)/;class h{constructor(a){this.cursor=0,this.line=a.line,this.lineLength=this.line.length,this.parserOptions=a.parserOptions,this.hasMoreData=a.hasMoreData,this.cursor=a.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:a}=this,f=this.parserOptions.NEXT_TOKEN_REGEXP;if(a.search(f)===-1)return null;const l=f.exec(a);if(l==null)return null;const u=l[1],p=this.cursor+(l.index||0);return new s.Token({token:u,startCursor:p,endCursor:p+u.length-1})}get nextCharacterToken(){const{cursor:a,lineLength:f}=this;return f<=a?null:new s.Token({token:this.line[a],startCursor:a,endCursor:a})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const a=o.exec(this.lineFromCursor);return a?(this.cursor+=(a.index||0)+a[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(a){return this.cursor=a,this}advanceToToken(a){return this.cursor=a.startCursor,this}advancePastToken(a){return this.cursor=a.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}i.Scanner=h},{"./Token":159}],159:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.Token=void 0;class s{constructor(h){this.token=h.token,this.startCursor=h.startCursor,this.endCursor=h.endCursor}static isTokenRowDelimiter(h){const c=h.token;return c==="\r"||c===`
|
||
`||c===`\r
|
||
`}static isTokenCarriageReturn(h,c){return h.token===c.carriageReturn}static isTokenComment(h,c){return c.supportsComments&&!!h&&h.token===c.comment}static isTokenEscapeCharacter(h,c){return h.token===c.escapeChar}static isTokenQuote(h,c){return h.token===c.quote}static isTokenDelimiter(h,c){return h.token===c.delimiter}}i.Token=s},{}],160:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnFormatter=void 0;class s{constructor(h){h.trim?this.format=c=>c.trim():h.ltrim?this.format=c=>c.trimLeft():h.rtrim?this.format=c=>c.trimRight():this.format=c=>c}}i.ColumnFormatter=s},{}],161:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnParser=void 0;const s=e("./NonQuotedColumnParser"),o=e("./QuotedColumnParser"),h=e("../Token");class c{constructor(f){this.parserOptions=f,this.quotedColumnParser=new o.QuotedColumnParser(f),this.nonQuotedColumnParser=new s.NonQuotedColumnParser(f)}parse(f){const{nextNonSpaceToken:l}=f;return l!==null&&h.Token.isTokenQuote(l,this.parserOptions)?(f.advanceToToken(l),this.quotedColumnParser.parse(f)):this.nonQuotedColumnParser.parse(f)}}i.ColumnParser=c},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.NonQuotedColumnParser=void 0;const s=e("./ColumnFormatter"),o=e("../Token");class h{constructor(a){this.parserOptions=a,this.columnFormatter=new s.ColumnFormatter(a)}parse(a){if(!a.hasMoreCharacters)return null;const{parserOptions:f}=this,l=[];let u=a.nextCharacterToken;for(;u&&!(o.Token.isTokenDelimiter(u,f)||o.Token.isTokenRowDelimiter(u));u=a.nextCharacterToken)l.push(u.token),a.advancePastToken(u);return this.columnFormatter.format(l.join(""))}}i.NonQuotedColumnParser=h},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.QuotedColumnParser=void 0;const s=e("./ColumnFormatter"),o=e("../Token");class h{constructor(a){this.parserOptions=a,this.columnFormatter=new s.ColumnFormatter(a)}parse(a){if(!a.hasMoreCharacters)return null;const f=a.cursor,{foundClosingQuote:l,col:u}=this.gatherDataBetweenQuotes(a);if(!l){if(a.advanceTo(f),!a.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${a.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(a),u}gatherDataBetweenQuotes(a){const{parserOptions:f}=this;let l=!1,u=!1;const p=[];let m=a.nextCharacterToken;for(;!u&&m!==null;m=a.nextCharacterToken){const d=o.Token.isTokenQuote(m,f);if(!l&&d)l=!0;else if(l)if(o.Token.isTokenEscapeCharacter(m,f)){a.advancePastToken(m);const v=a.nextCharacterToken;v!==null&&(o.Token.isTokenQuote(v,f)||o.Token.isTokenEscapeCharacter(v,f))?(p.push(v.token),m=v):d?u=!0:p.push(m.token)}else d?u=!0:p.push(m.token);a.advancePastToken(m)}return{col:this.columnFormatter.format(p.join("")),foundClosingQuote:u}}checkForMalformedColumn(a){const{parserOptions:f}=this,{nextNonSpaceToken:l}=a;if(l){const u=o.Token.isTokenDelimiter(l,f),p=o.Token.isTokenRowDelimiter(l);if(!(u||p)){const m=a.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${f.escapedDelimiter}' OR new line got: '${l.token}'. at '${m}`)}a.advanceToToken(l)}else a.hasMoreData||a.advancePastLine()}}i.QuotedColumnParser=h},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnFormatter=i.QuotedColumnParser=i.NonQuotedColumnParser=i.ColumnParser=void 0;var s=e("./ColumnParser");Object.defineProperty(i,"ColumnParser",{enumerable:!0,get:function(){return s.ColumnParser}});var o=e("./NonQuotedColumnParser");Object.defineProperty(i,"NonQuotedColumnParser",{enumerable:!0,get:function(){return o.NonQuotedColumnParser}});var h=e("./QuotedColumnParser");Object.defineProperty(i,"QuotedColumnParser",{enumerable:!0,get:function(){return h.QuotedColumnParser}});var c=e("./ColumnFormatter");Object.defineProperty(i,"ColumnFormatter",{enumerable:!0,get:function(){return c.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.QuotedColumnParser=i.NonQuotedColumnParser=i.ColumnParser=i.Token=i.Scanner=i.RowParser=i.Parser=void 0;var s=e("./Parser");Object.defineProperty(i,"Parser",{enumerable:!0,get:function(){return s.Parser}});var o=e("./RowParser");Object.defineProperty(i,"RowParser",{enumerable:!0,get:function(){return o.RowParser}});var h=e("./Scanner");Object.defineProperty(i,"Scanner",{enumerable:!0,get:function(){return h.Scanner}});var c=e("./Token");Object.defineProperty(i,"Token",{enumerable:!0,get:function(){return c.Token}});var a=e("./column");Object.defineProperty(i,"ColumnParser",{enumerable:!0,get:function(){return a.ColumnParser}}),Object.defineProperty(i,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}}),Object.defineProperty(i,"QuotedColumnParser",{enumerable:!0,get:function(){return a.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,n,i){var s=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(i,"__esModule",{value:!0}),i.HeaderTransformer=void 0;const o=s(e("lodash.isundefined")),h=s(e("lodash.isfunction")),c=s(e("lodash.uniq")),a=s(e("lodash.groupby"));class f{constructor(u){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=u,u.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(u.headers)?this.setHeaders(u.headers):h.default(u.headers)&&(this.headersTransform=u.headers)}transform(u,p){return this.shouldMapRow(u)?p(null,this.processRow(u)):p(null,{row:null,isValid:!0})}shouldMapRow(u){const{parserOptions:p}=this;if(!this.headersTransform&&p.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(u)){if(this.headersTransform)this.setHeaders(this.headersTransform(u));else if(this.shouldUseFirstRow)this.setHeaders(u);else return!0;return!1}return!0}processRow(u){if(!this.headers)return{row:u,isValid:!0};const{parserOptions:p}=this;if(!p.discardUnmappedColumns&&u.length>this.headersLength){if(!p.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${u.length}`);return{row:u,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${u.length}`}}return p.strictColumnHandling&&u.length<this.headersLength?{row:u,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${u.length}`}:{row:this.mapHeaders(u),isValid:!0}}mapHeaders(u){const p={},{headers:m,headersLength:d}=this;for(let v=0;v<d;v+=1){const x=m[v];if(!o.default(x)){const g=u[v];o.default(g)?p[x]="":p[x]=g}}return p}setHeaders(u){var p;const m=u.filter(d=>!!d);if(c.default(m).length!==m.length){const d=a.default(m),v=Object.keys(d).filter(x=>d[x].length>1);throw new Error(`Duplicate headers found ${JSON.stringify(v)}`)}this.headers=u,this.receivedHeaders=!0,this.headersLength=((p=this.headers)===null||p===void 0?void 0:p.length)||0}}i.HeaderTransformer=f},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,n,i){var s=function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(i,"__esModule",{value:!0}),i.RowTransformerValidator=void 0;const o=s(e("lodash.isfunction")),h=e("../types");class c{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(f){return h.isSyncTransform(f)?(l,u)=>{let p=null;try{p=f(l)}catch(m){return u(m)}return u(null,p)}:f}static createValidator(f){return h.isSyncValidate(f)?(l,u)=>{u(null,{row:l,isValid:f(l)})}:(l,u)=>{f(l,(p,m,d)=>p?u(p):m?u(null,{row:l,isValid:m,reason:d}):u(null,{row:l,isValid:!1,reason:d}))}}set rowTransform(f){if(!o.default(f))throw new TypeError("The transform should be a function");this._rowTransform=c.createTransform(f)}set rowValidator(f){if(!o.default(f))throw new TypeError("The validate should be a function");this._rowValidator=c.createValidator(f)}transformAndValidate(f,l){return this.callTransformer(f,(u,p)=>u?l(u):p?this.callValidator(p,(m,d)=>m?l(m):d&&!d.isValid?l(null,{row:p,isValid:!1,reason:d.reason}):l(null,{row:p,isValid:!0})):l(null,{row:null,isValid:!0}))}callTransformer(f,l){return this._rowTransform?this._rowTransform(f,l):l(null,f)}callValidator(f,l){return this._rowValidator?this._rowValidator(f,l):l(null,{row:f,isValid:!0})}}i.RowTransformerValidator=c},{"../types":169,"lodash.isfunction":446}],168:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.HeaderTransformer=i.RowTransformerValidator=void 0;var s=e("./RowTransformerValidator");Object.defineProperty(i,"RowTransformerValidator",{enumerable:!0,get:function(){return s.RowTransformerValidator}});var o=e("./HeaderTransformer");Object.defineProperty(i,"HeaderTransformer",{enumerable:!0,get:function(){return o.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.isSyncValidate=i.isSyncTransform=void 0,i.isSyncTransform=s=>s.length===1,i.isSyncValidate=s=>s.length===1},{}],170:[function(e,n,i){const s=i;s.bignum=e("bn.js"),s.define=e("./asn1/api").define,s.base=e("./asn1/base"),s.constants=e("./asn1/constants"),s.decoders=e("./asn1/decoders"),s.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,n,i){const s=e("./encoders"),o=e("./decoders"),h=e("inherits"),c=i;c.define=function(l,u){return new a(l,u)};function a(f,l){this.name=f,this.body=l,this.decoders={},this.encoders={}}a.prototype._createNamed=function(l){const u=this.name;function p(m){this._initNamed(m,u)}return h(p,l),p.prototype._initNamed=function(d,v){l.call(this,d,v)},new p(this)},a.prototype._getDecoder=function(l){return l=l||"der",this.decoders.hasOwnProperty(l)||(this.decoders[l]=this._createNamed(o[l])),this.decoders[l]},a.prototype.decode=function(l,u,p){return this._getDecoder(u).decode(l,p)},a.prototype._getEncoder=function(l){return l=l||"der",this.encoders.hasOwnProperty(l)||(this.encoders[l]=this._createNamed(s[l])),this.encoders[l]},a.prototype.encode=function(l,u,p){return this._getEncoder(u).encode(l,p)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,n,i){const s=e("inherits"),o=e("../base/reporter").Reporter,h=e("safer-buffer").Buffer;function c(f,l){if(o.call(this,l),!h.isBuffer(f)){this.error("Input not Buffer");return}this.base=f,this.offset=0,this.length=f.length}s(c,o),i.DecoderBuffer=c,c.isDecoderBuffer=function(l){return l instanceof c?!0:typeof l=="object"&&h.isBuffer(l.base)&&l.constructor.name==="DecoderBuffer"&&typeof l.offset=="number"&&typeof l.length=="number"&&typeof l.save=="function"&&typeof l.restore=="function"&&typeof l.isEmpty=="function"&&typeof l.readUInt8=="function"&&typeof l.skip=="function"&&typeof l.raw=="function"},c.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},c.prototype.restore=function(l){const u=new c(this.base);return u.offset=l.offset,u.length=this.offset,this.offset=l.offset,o.prototype.restore.call(this,l.reporter),u},c.prototype.isEmpty=function(){return this.offset===this.length},c.prototype.readUInt8=function(l){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(l||"DecoderBuffer overrun")},c.prototype.skip=function(l,u){if(!(this.offset+l<=this.length))return this.error(u||"DecoderBuffer overrun");const p=new c(this.base);return p._reporterState=this._reporterState,p.offset=this.offset,p.length=this.offset+l,this.offset+=l,p},c.prototype.raw=function(l){return this.base.slice(l?l.offset:this.offset,this.length)};function a(f,l){if(Array.isArray(f))this.length=0,this.value=f.map(function(u){return a.isEncoderBuffer(u)||(u=new a(u,l)),this.length+=u.length,u},this);else if(typeof f=="number"){if(!(0<=f&&f<=255))return l.error("non-byte EncoderBuffer value");this.value=f,this.length=1}else if(typeof f=="string")this.value=f,this.length=h.byteLength(f);else if(h.isBuffer(f))this.value=f,this.length=f.length;else return l.error("Unsupported type: "+typeof f)}i.EncoderBuffer=a,a.isEncoderBuffer=function(l){return l instanceof a?!0:typeof l=="object"&&l.constructor.name==="EncoderBuffer"&&typeof l.length=="number"&&typeof l.join=="function"},a.prototype.join=function(l,u){return l||(l=h.alloc(this.length)),u||(u=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(p){p.join(l,u),u+=p.length}):(typeof this.value=="number"?l[u]=this.value:typeof this.value=="string"?l.write(this.value,u):h.isBuffer(this.value)&&this.value.copy(l,u),u+=this.length)),l}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,n,i){const s=i;s.Reporter=e("./reporter").Reporter,s.DecoderBuffer=e("./buffer").DecoderBuffer,s.EncoderBuffer=e("./buffer").EncoderBuffer,s.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,n,i){const s=e("../base/reporter").Reporter,o=e("../base/buffer").EncoderBuffer,h=e("../base/buffer").DecoderBuffer,c=e("minimalistic-assert"),a=["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"],f=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a),l=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function u(m,d,v){const x={};this._baseState=x,x.name=v,x.enc=m,x.parent=d||null,x.children=null,x.tag=null,x.args=null,x.reverseArgs=null,x.choice=null,x.optional=!1,x.any=!1,x.obj=!1,x.use=null,x.useDecoder=null,x.key=null,x.default=null,x.explicit=null,x.implicit=null,x.contains=null,x.parent||(x.children=[],this._wrap())}n.exports=u;const p=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const d=this._baseState,v={};p.forEach(function(g){v[g]=d[g]});const x=new this.constructor(v.parent);return x._baseState=v,x},u.prototype._wrap=function(){const d=this._baseState;f.forEach(function(v){this[v]=function(){const g=new this.constructor(this);return d.children.push(g),g[v].apply(g,arguments)}},this)},u.prototype._init=function(d){const v=this._baseState;c(v.parent===null),d.call(this),v.children=v.children.filter(function(x){return x._baseState.parent===this},this),c.equal(v.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(d){const v=this._baseState,x=d.filter(function(g){return g instanceof this.constructor},this);d=d.filter(function(g){return!(g instanceof this.constructor)},this),x.length!==0&&(c(v.children===null),v.children=x,x.forEach(function(g){g._baseState.parent=this},this)),d.length!==0&&(c(v.args===null),v.args=d,v.reverseArgs=d.map(function(g){if(typeof g!="object"||g.constructor!==Object)return g;const b={};return Object.keys(g).forEach(function(w){w==(w|0)&&(w|=0);const y=g[w];b[y]=w}),b}))},l.forEach(function(m){u.prototype[m]=function(){const v=this._baseState;throw new Error(m+" not implemented for encoding: "+v.enc)}}),a.forEach(function(m){u.prototype[m]=function(){const v=this._baseState,x=Array.prototype.slice.call(arguments);return c(v.tag===null),v.tag=m,this._useArgs(x),this}}),u.prototype.use=function(d){c(d);const v=this._baseState;return c(v.use===null),v.use=d,this},u.prototype.optional=function(){const d=this._baseState;return d.optional=!0,this},u.prototype.def=function(d){const v=this._baseState;return c(v.default===null),v.default=d,v.optional=!0,this},u.prototype.explicit=function(d){const v=this._baseState;return c(v.explicit===null&&v.implicit===null),v.explicit=d,this},u.prototype.implicit=function(d){const v=this._baseState;return c(v.explicit===null&&v.implicit===null),v.implicit=d,this},u.prototype.obj=function(){const d=this._baseState,v=Array.prototype.slice.call(arguments);return d.obj=!0,v.length!==0&&this._useArgs(v),this},u.prototype.key=function(d){const v=this._baseState;return c(v.key===null),v.key=d,this},u.prototype.any=function(){const d=this._baseState;return d.any=!0,this},u.prototype.choice=function(d){const v=this._baseState;return c(v.choice===null),v.choice=d,this._useArgs(Object.keys(d).map(function(x){return d[x]})),this},u.prototype.contains=function(d){const v=this._baseState;return c(v.use===null),v.contains=d,this},u.prototype._decode=function(d,v){const x=this._baseState;if(x.parent===null)return d.wrapResult(x.children[0]._decode(d,v));let g=x.default,b=!0,w=null;if(x.key!==null&&(w=d.enterKey(x.key)),x.optional){let T=null;if(x.explicit!==null?T=x.explicit:x.implicit!==null?T=x.implicit:x.tag!==null&&(T=x.tag),T===null&&!x.any){const C=d.save();try{x.choice===null?this._decodeGeneric(x.tag,d,v):this._decodeChoice(d,v),b=!0}catch{b=!1}d.restore(C)}else if(b=this._peekTag(d,T,x.any),d.isError(b))return b}let y;if(x.obj&&b&&(y=d.enterObject()),b){if(x.explicit!==null){const C=this._decodeTag(d,x.explicit);if(d.isError(C))return C;d=C}const T=d.offset;if(x.use===null&&x.choice===null){let C;x.any&&(C=d.save());const M=this._decodeTag(d,x.implicit!==null?x.implicit:x.tag,x.any);if(d.isError(M))return M;x.any?g=d.raw(C):d=M}if(v&&v.track&&x.tag!==null&&v.track(d.path(),T,d.length,"tagged"),v&&v.track&&x.tag!==null&&v.track(d.path(),d.offset,d.length,"content"),x.any||(x.choice===null?g=this._decodeGeneric(x.tag,d,v):g=this._decodeChoice(d,v)),d.isError(g))return g;if(!x.any&&x.choice===null&&x.children!==null&&x.children.forEach(function(M){M._decode(d,v)}),x.contains&&(x.tag==="octstr"||x.tag==="bitstr")){const C=new h(g);g=this._getUse(x.contains,d._reporterState.obj)._decode(C,v)}}return x.obj&&b&&(g=d.leaveObject(y)),x.key!==null&&(g!==null||b===!0)?d.leaveKey(w,x.key,g):w!==null&&d.exitKey(w),g},u.prototype._decodeGeneric=function(d,v,x){const g=this._baseState;return d==="seq"||d==="set"?null:d==="seqof"||d==="setof"?this._decodeList(v,d,g.args[0],x):/str$/.test(d)?this._decodeStr(v,d,x):d==="objid"&&g.args?this._decodeObjid(v,g.args[0],g.args[1],x):d==="objid"?this._decodeObjid(v,null,null,x):d==="gentime"||d==="utctime"?this._decodeTime(v,d,x):d==="null_"?this._decodeNull(v,x):d==="bool"?this._decodeBool(v,x):d==="objDesc"?this._decodeStr(v,d,x):d==="int"||d==="enum"?this._decodeInt(v,g.args&&g.args[0],x):g.use!==null?this._getUse(g.use,v._reporterState.obj)._decode(v,x):v.error("unknown tag: "+d)},u.prototype._getUse=function(d,v){const x=this._baseState;return x.useDecoder=this._use(d,v),c(x.useDecoder._baseState.parent===null),x.useDecoder=x.useDecoder._baseState.children[0],x.implicit!==x.useDecoder._baseState.implicit&&(x.useDecoder=x.useDecoder.clone(),x.useDecoder._baseState.implicit=x.implicit),x.useDecoder},u.prototype._decodeChoice=function(d,v){const x=this._baseState;let g=null,b=!1;return Object.keys(x.choice).some(function(w){const y=d.save(),T=x.choice[w];try{const C=T._decode(d,v);if(d.isError(C))return!1;g={type:w,value:C},b=!0}catch{return d.restore(y),!1}return!0},this),b?g:d.error("Choice not matched")},u.prototype._createEncoderBuffer=function(d){return new o(d,this.reporter)},u.prototype._encode=function(d,v,x){const g=this._baseState;if(g.default!==null&&g.default===d)return;const b=this._encodeValue(d,v,x);if(b!==void 0&&!this._skipDefault(b,v,x))return b},u.prototype._encodeValue=function(d,v,x){const g=this._baseState;if(g.parent===null)return g.children[0]._encode(d,v||new s);let b=null;if(this.reporter=v,g.optional&&d===void 0)if(g.default!==null)d=g.default;else return;let w=null,y=!1;if(g.any)b=this._createEncoderBuffer(d);else if(g.choice)b=this._encodeChoice(d,v);else if(g.contains)w=this._getUse(g.contains,x)._encode(d,v),y=!0;else if(g.children)w=g.children.map(function(T){if(T._baseState.tag==="null_")return T._encode(null,v,d);if(T._baseState.key===null)return v.error("Child should have a key");const C=v.enterKey(T._baseState.key);if(typeof d!="object")return v.error("Child expected, but input is not object");const M=T._encode(d[T._baseState.key],v,d);return v.leaveKey(C),M},this).filter(function(T){return T}),w=this._createEncoderBuffer(w);else if(g.tag==="seqof"||g.tag==="setof"){if(!(g.args&&g.args.length===1))return v.error("Too many args for : "+g.tag);if(!Array.isArray(d))return v.error("seqof/setof, but data is not Array");const T=this.clone();T._baseState.implicit=null,w=this._createEncoderBuffer(d.map(function(C){const M=this._baseState;return this._getUse(M.args[0],d)._encode(C,v)},T))}else g.use!==null?b=this._getUse(g.use,x)._encode(d,v):(w=this._encodePrimitive(g.tag,d),y=!0);if(!g.any&&g.choice===null){const T=g.implicit!==null?g.implicit:g.tag,C=g.implicit===null?"universal":"context";T===null?g.use===null&&v.error("Tag could be omitted only for .use()"):g.use===null&&(b=this._encodeComposite(T,y,C,w))}return g.explicit!==null&&(b=this._encodeComposite(g.explicit,!1,"context",b)),b},u.prototype._encodeChoice=function(d,v){const x=this._baseState,g=x.choice[d.type];return g||c(!1,d.type+" not found in "+JSON.stringify(Object.keys(x.choice))),g._encode(d.value,v)},u.prototype._encodePrimitive=function(d,v){const x=this._baseState;if(/str$/.test(d))return this._encodeStr(v,d);if(d==="objid"&&x.args)return this._encodeObjid(v,x.reverseArgs[0],x.args[1]);if(d==="objid")return this._encodeObjid(v,null,null);if(d==="gentime"||d==="utctime")return this._encodeTime(v,d);if(d==="null_")return this._encodeNull();if(d==="int"||d==="enum")return this._encodeInt(v,x.args&&x.reverseArgs[0]);if(d==="bool")return this._encodeBool(v);if(d==="objDesc")return this._encodeStr(v,d);throw new Error("Unsupported tag: "+d)},u.prototype._isNumstr=function(d){return/^[0-9 ]*$/.test(d)},u.prototype._isPrintstr=function(d){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(d)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,n,i){const s=e("inherits");function o(c){this._reporterState={obj:null,path:[],options:c||{},errors:[]}}i.Reporter=o,o.prototype.isError=function(a){return a instanceof h},o.prototype.save=function(){const a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},o.prototype.restore=function(a){const f=this._reporterState;f.obj=a.obj,f.path=f.path.slice(0,a.pathLen)},o.prototype.enterKey=function(a){return this._reporterState.path.push(a)},o.prototype.exitKey=function(a){const f=this._reporterState;f.path=f.path.slice(0,a-1)},o.prototype.leaveKey=function(a,f,l){const u=this._reporterState;this.exitKey(a),u.obj!==null&&(u.obj[f]=l)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const a=this._reporterState,f=a.obj;return a.obj={},f},o.prototype.leaveObject=function(a){const f=this._reporterState,l=f.obj;return f.obj=a,l},o.prototype.error=function(a){let f;const l=this._reporterState,u=a instanceof h;if(u?f=a:f=new h(l.path.map(function(p){return"["+JSON.stringify(p)+"]"}).join(""),a.message||a,a.stack),!l.options.partial)throw f;return u||l.errors.push(f),f},o.prototype.wrapResult=function(a){const f=this._reporterState;return f.options.partial?{result:this.isError(a)?null:a,errors:f.errors}:a};function h(c,a){this.path=c,this.rethrow(a)}s(h,Error),h.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,h),!this.stack)try{throw new Error(this.message)}catch(f){this.stack=f.stack}return this}},{inherits:440}],176:[function(e,n,i){function s(o){const h={};return Object.keys(o).forEach(function(c){(c|0)==c&&(c=c|0);const a=o[c];h[a]=c}),h}i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=s(i.tagClass),i.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"},i.tagByName=s(i.tag)},{}],177:[function(e,n,i){const s=i;s._reverse=function(h){const c={};return Object.keys(h).forEach(function(a){(a|0)==a&&(a=a|0);const f=h[a];c[f]=a}),c},s.der=e("./der")},{"./der":176}],178:[function(e,n,i){const s=e("inherits"),o=e("bn.js"),h=e("../base/buffer").DecoderBuffer,c=e("../base/node"),a=e("../constants/der");function f(m){this.enc="der",this.name=m.name,this.entity=m,this.tree=new l,this.tree._init(m.body)}n.exports=f,f.prototype.decode=function(d,v){return h.isDecoderBuffer(d)||(d=new h(d,v)),this.tree._decode(d,v)};function l(m){c.call(this,"der",m)}s(l,c),l.prototype._peekTag=function(d,v,x){if(d.isEmpty())return!1;const g=d.save(),b=u(d,'Failed to peek tag: "'+v+'"');return d.isError(b)?b:(d.restore(g),b.tag===v||b.tagStr===v||b.tagStr+"of"===v||x)},l.prototype._decodeTag=function(d,v,x){const g=u(d,'Failed to decode tag of "'+v+'"');if(d.isError(g))return g;let b=p(d,g.primitive,'Failed to get length of "'+v+'"');if(d.isError(b))return b;if(!x&&g.tag!==v&&g.tagStr!==v&&g.tagStr+"of"!==v)return d.error('Failed to match tag: "'+v+'"');if(g.primitive||b!==null)return d.skip(b,'Failed to match body of: "'+v+'"');const w=d.save(),y=this._skipUntilEnd(d,'Failed to skip indefinite length body: "'+this.tag+'"');return d.isError(y)?y:(b=d.offset-w.offset,d.restore(w),d.skip(b,'Failed to match body of: "'+v+'"'))},l.prototype._skipUntilEnd=function(d,v){for(;;){const x=u(d,v);if(d.isError(x))return x;const g=p(d,x.primitive,v);if(d.isError(g))return g;let b;if(x.primitive||g!==null?b=d.skip(g):b=this._skipUntilEnd(d,v),d.isError(b))return b;if(x.tagStr==="end")break}},l.prototype._decodeList=function(d,v,x,g){const b=[];for(;!d.isEmpty();){const w=this._peekTag(d,"end");if(d.isError(w))return w;const y=x.decode(d,"der",g);if(d.isError(y)&&w)break;b.push(y)}return b},l.prototype._decodeStr=function(d,v){if(v==="bitstr"){const x=d.readUInt8();return d.isError(x)?x:{unused:x,data:d.raw()}}else if(v==="bmpstr"){const x=d.raw();if(x.length%2===1)return d.error("Decoding of string type: bmpstr length mismatch");let g="";for(let b=0;b<x.length/2;b++)g+=String.fromCharCode(x.readUInt16BE(b*2));return g}else if(v==="numstr"){const x=d.raw().toString("ascii");return this._isNumstr(x)?x:d.error("Decoding of string type: numstr unsupported characters")}else{if(v==="octstr")return d.raw();if(v==="objDesc")return d.raw();if(v==="printstr"){const x=d.raw().toString("ascii");return this._isPrintstr(x)?x:d.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(v)?d.raw().toString():d.error("Decoding of string type: "+v+" unsupported")}},l.prototype._decodeObjid=function(d,v,x){let g;const b=[];let w=0,y=0;for(;!d.isEmpty();)y=d.readUInt8(),w<<=7,w|=y&127,y&128||(b.push(w),w=0);y&128&&b.push(w);const T=b[0]/40|0,C=b[0]%40;if(x?g=b:g=[T,C].concat(b.slice(1)),v){let M=v[g.join(" ")];M===void 0&&(M=v[g.join(".")]),M!==void 0&&(g=M)}return g},l.prototype._decodeTime=function(d,v){const x=d.raw().toString();let g,b,w,y,T,C;if(v==="gentime")g=x.slice(0,4)|0,b=x.slice(4,6)|0,w=x.slice(6,8)|0,y=x.slice(8,10)|0,T=x.slice(10,12)|0,C=x.slice(12,14)|0;else if(v==="utctime")g=x.slice(0,2)|0,b=x.slice(2,4)|0,w=x.slice(4,6)|0,y=x.slice(6,8)|0,T=x.slice(8,10)|0,C=x.slice(10,12)|0,g<70?g=2e3+g:g=1900+g;else return d.error("Decoding "+v+" time is not supported yet");return Date.UTC(g,b-1,w,y,T,C,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(d){const v=d.readUInt8();return d.isError(v)?v:v!==0},l.prototype._decodeInt=function(d,v){const x=d.raw();let g=new o(x);return v&&(g=v[g.toString(10)]||g),g},l.prototype._use=function(d,v){return typeof d=="function"&&(d=d(v)),d._getDecoder("der").tree};function u(m,d){let v=m.readUInt8(d);if(m.isError(v))return v;const x=a.tagClass[v>>6],g=(v&32)===0;if((v&31)===31){let w=v;for(v=0;(w&128)===128;){if(w=m.readUInt8(d),m.isError(w))return w;v<<=7,v|=w&127}}else v&=31;const b=a.tag[v];return{cls:x,primitive:g,tag:v,tagStr:b}}function p(m,d,v){let x=m.readUInt8(v);if(m.isError(x))return x;if(!d&&x===128)return null;if(!(x&128))return x;const g=x&127;if(g>4)return m.error("length octect is too long");x=0;for(let b=0;b<g;b++){x<<=8;const w=m.readUInt8(v);if(m.isError(w))return w;x|=w}return x}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,n,i){const s=i;s.der=e("./der"),s.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,n,i){const s=e("inherits"),o=e("safer-buffer").Buffer,h=e("./der");function c(a){h.call(this,a),this.enc="pem"}s(c,h),n.exports=c,c.prototype.decode=function(f,l){const u=f.toString().split(/[\r\n]+/g),p=l.label.toUpperCase(),m=/^-----(BEGIN|END) ([^-]+)-----$/;let d=-1,v=-1;for(let b=0;b<u.length;b++){const w=u[b].match(m);if(w!==null&&w[2]===p)if(d===-1){if(w[1]!=="BEGIN")break;d=b}else{if(w[1]!=="END")break;v=b;break}}if(d===-1||v===-1)throw new Error("PEM section not found for: "+p);const x=u.slice(d+1,v).join("");x.replace(/[^a-z0-9+/=]+/gi,"");const g=o.from(x,"base64");return h.prototype.decode.call(this,g,l)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,n,i){const s=e("inherits"),o=e("safer-buffer").Buffer,h=e("../base/node"),c=e("../constants/der");function a(p){this.enc="der",this.name=p.name,this.entity=p,this.tree=new f,this.tree._init(p.body)}n.exports=a,a.prototype.encode=function(m,d){return this.tree._encode(m,d).join()};function f(p){h.call(this,"der",p)}s(f,h),f.prototype._encodeComposite=function(m,d,v,x){const g=u(m,d,v,this.reporter);if(x.length<128){const y=o.alloc(2);return y[0]=g,y[1]=x.length,this._createEncoderBuffer([y,x])}let b=1;for(let y=x.length;y>=256;y>>=8)b++;const w=o.alloc(1+1+b);w[0]=g,w[1]=128|b;for(let y=1+b,T=x.length;T>0;y--,T>>=8)w[y]=T&255;return this._createEncoderBuffer([w,x])},f.prototype._encodeStr=function(m,d){if(d==="bitstr")return this._createEncoderBuffer([m.unused|0,m.data]);if(d==="bmpstr"){const v=o.alloc(m.length*2);for(let x=0;x<m.length;x++)v.writeUInt16BE(m.charCodeAt(x),x*2);return this._createEncoderBuffer(v)}else return d==="numstr"?this._isNumstr(m)?this._createEncoderBuffer(m):this.reporter.error("Encoding of string type: numstr supports only digits and space"):d==="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(d)?this._createEncoderBuffer(m):d==="objDesc"?this._createEncoderBuffer(m):this.reporter.error("Encoding of string type: "+d+" unsupported")},f.prototype._encodeObjid=function(m,d,v){if(typeof m=="string"){if(!d)return this.reporter.error("string objid given, but no values map found");if(!d.hasOwnProperty(m))return this.reporter.error("objid not found in values map");m=d[m].split(/[\s.]+/g);for(let w=0;w<m.length;w++)m[w]|=0}else if(Array.isArray(m)){m=m.slice();for(let w=0;w<m.length;w++)m[w]|=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,m[0]*40+m[1])}let x=0;for(let w=0;w<m.length;w++){let y=m[w];for(x++;y>=128;y>>=7)x++}const g=o.alloc(x);let b=g.length-1;for(let w=m.length-1;w>=0;w--){let y=m[w];for(g[b--]=y&127;(y>>=7)>0;)g[b--]=128|y&127}return this._createEncoderBuffer(g)};function l(p){return p<10?"0"+p:p}f.prototype._encodeTime=function(m,d){let v;const x=new Date(m);return d==="gentime"?v=[l(x.getUTCFullYear()),l(x.getUTCMonth()+1),l(x.getUTCDate()),l(x.getUTCHours()),l(x.getUTCMinutes()),l(x.getUTCSeconds()),"Z"].join(""):d==="utctime"?v=[l(x.getUTCFullYear()%100),l(x.getUTCMonth()+1),l(x.getUTCDate()),l(x.getUTCHours()),l(x.getUTCMinutes()),l(x.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+d+" time is not supported yet"),this._encodeStr(v,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.prototype._encodeInt=function(m,d){if(typeof m=="string"){if(!d)return this.reporter.error("String int or enum given, but no values map");if(!d.hasOwnProperty(m))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(m));m=d[m]}if(typeof m!="number"&&!o.isBuffer(m)){const g=m.toArray();!m.sign&&g[0]&128&&g.unshift(0),m=o.from(g)}if(o.isBuffer(m)){let g=m.length;m.length===0&&g++;const b=o.alloc(g);return m.copy(b),m.length===0&&(b[0]=0),this._createEncoderBuffer(b)}if(m<128)return this._createEncoderBuffer(m);if(m<256)return this._createEncoderBuffer([0,m]);let v=1;for(let g=m;g>=256;g>>=8)v++;const x=new Array(v);for(let g=x.length-1;g>=0;g--)x[g]=m&255,m>>=8;return x[0]&128&&x.unshift(0),this._createEncoderBuffer(o.from(x))},f.prototype._encodeBool=function(m){return this._createEncoderBuffer(m?255:0)},f.prototype._use=function(m,d){return typeof m=="function"&&(m=m(d)),m._getEncoder("der").tree},f.prototype._skipDefault=function(m,d,v){const x=this._baseState;let g;if(x.default===null)return!1;const b=m.join();if(x.defaultBuffer===void 0&&(x.defaultBuffer=this._encodeValue(x.default,d,v).join()),b.length!==x.defaultBuffer.length)return!1;for(g=0;g<b.length;g++)if(b[g]!==x.defaultBuffer[g])return!1;return!0};function u(p,m,d,v){let x;if(p==="seqof"?p="seq":p==="setof"&&(p="set"),c.tagByName.hasOwnProperty(p))x=c.tagByName[p];else if(typeof p=="number"&&(p|0)===p)x=p;else return v.error("Unknown tag: "+p);return x>=31?v.error("Multi-octet tag encoding unsupported"):(m||(x|=32),x|=c.tagClassByName[d||"universal"]<<6,x)}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,n,i){const s=i;s.der=e("./der"),s.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,n,i){const s=e("inherits"),o=e("./der");function h(c){o.call(this,c),this.enc="pem"}s(h,o),n.exports=h,h.prototype.encode=function(a,f){const u=o.prototype.encode.call(this,a).toString("base64"),p=["-----BEGIN "+f.label+"-----"];for(let m=0;m<u.length;m+=64)p.push(u.slice(m,m+64));return p.push("-----END "+f.label+"-----"),p.join(`
|
||
`)}},{"./der":181,inherits:440}],184:[function(e,n,i){(function(s,o){function h(L,R){if(!L)throw new Error(R||"Assertion failed")}function c(L,R){L.super_=R;var F=function(){};F.prototype=R.prototype,L.prototype=new F,L.prototype.constructor=L}function a(L,R,F){if(a.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,L!==null&&((R==="le"||R==="be")&&(F=R,R=10),this._init(L||0,R||10,F||"be"))}typeof s=="object"?s.exports=a:o.BN=a,a.BN=a,a.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=e("buffer").Buffer}catch{}a.isBN=function(R){return R instanceof a?!0:R!==null&&typeof R=="object"&&R.constructor.wordSize===a.wordSize&&Array.isArray(R.words)},a.max=function(R,F){return R.cmp(F)>0?R:F},a.min=function(R,F){return R.cmp(F)<0?R:F},a.prototype._init=function(R,F,_){if(typeof R=="number")return this._initNumber(R,F,_);if(typeof R=="object")return this._initArray(R,F,_);F==="hex"&&(F=16),h(F===(F|0)&&F>=2&&F<=36),R=R.toString().replace(/\s+/g,"");var k=0;R[0]==="-"&&(k++,this.negative=1),k<R.length&&(F===16?this._parseHex(R,k,_):(this._parseBase(R,F,k),_==="le"&&this._initArray(this.toArray(),F,_)))},a.prototype._initNumber=function(R,F,_){R<0&&(this.negative=1,R=-R),R<67108864?(this.words=[R&67108863],this.length=1):R<4503599627370496?(this.words=[R&67108863,R/67108864&67108863],this.length=2):(h(R<9007199254740992),this.words=[R&67108863,R/67108864&67108863,1],this.length=3),_==="le"&&this._initArray(this.toArray(),F,_)},a.prototype._initArray=function(R,F,_){if(h(typeof R.length=="number"),R.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(R.length/3),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var N,P,D=0;if(_==="be")for(k=R.length-1,N=0;k>=0;k-=3)P=R[k]|R[k-1]<<8|R[k-2]<<16,this.words[N]|=P<<D&67108863,this.words[N+1]=P>>>26-D&67108863,D+=24,D>=26&&(D-=26,N++);else if(_==="le")for(k=0,N=0;k<R.length;k+=3)P=R[k]|R[k+1]<<8|R[k+2]<<16,this.words[N]|=P<<D&67108863,this.words[N+1]=P>>>26-D&67108863,D+=24,D>=26&&(D-=26,N++);return this.strip()};function l(L,R){var F=L.charCodeAt(R);return F>=65&&F<=70?F-55:F>=97&&F<=102?F-87:F-48&15}function u(L,R,F){var _=l(L,F);return F-1>=R&&(_|=l(L,F-1)<<4),_}a.prototype._parseHex=function(R,F,_){this.length=Math.ceil((R.length-F)/6),this.words=new Array(this.length);for(var k=0;k<this.length;k++)this.words[k]=0;var N=0,P=0,D;if(_==="be")for(k=R.length-1;k>=F;k-=2)D=u(R,F,k)<<N,this.words[P]|=D&67108863,N>=18?(N-=18,P+=1,this.words[P]|=D>>>26):N+=8;else{var A=R.length-F;for(k=A%2===0?F+1:F;k<R.length;k+=2)D=u(R,F,k)<<N,this.words[P]|=D&67108863,N>=18?(N-=18,P+=1,this.words[P]|=D>>>26):N+=8}this.strip()};function p(L,R,F,_){for(var k=0,N=Math.min(L.length,F),P=R;P<N;P++){var D=L.charCodeAt(P)-48;k*=_,D>=49?k+=D-49+10:D>=17?k+=D-17+10:k+=D}return k}a.prototype._parseBase=function(R,F,_){this.words=[0],this.length=1;for(var k=0,N=1;N<=67108863;N*=F)k++;k--,N=N/F|0;for(var P=R.length-_,D=P%k,A=Math.min(P,P-D)+_,S=0,E=_;E<A;E+=k)S=p(R,E,E+k,F),this.imuln(N),this.words[0]+S<67108864?this.words[0]+=S:this._iaddn(S);if(D!==0){var O=1;for(S=p(R,E,R.length,F),E=0;E<D;E++)O*=F;this.imuln(O),this.words[0]+S<67108864?this.words[0]+=S:this._iaddn(S)}this.strip()},a.prototype.copy=function(R){R.words=new Array(this.length);for(var F=0;F<this.length;F++)R.words[F]=this.words[F];R.length=this.length,R.negative=this.negative,R.red=this.red},a.prototype.clone=function(){var R=new a(null);return this.copy(R),R},a.prototype._expand=function(R){for(;this.length<R;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","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"],d=[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],v=[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];a.prototype.toString=function(R,F){R=R||10,F=F|0||1;var _;if(R===16||R==="hex"){_="";for(var k=0,N=0,P=0;P<this.length;P++){var D=this.words[P],A=((D<<k|N)&16777215).toString(16);N=D>>>24-k&16777215,N!==0||P!==this.length-1?_=m[6-A.length]+A+_:_=A+_,k+=2,k>=26&&(k-=26,P--)}for(N!==0&&(_=N.toString(16)+_);_.length%F!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}if(R===(R|0)&&R>=2&&R<=36){var S=d[R],E=v[R];_="";var O=this.clone();for(O.negative=0;!O.isZero();){var z=O.modn(E).toString(R);O=O.idivn(E),O.isZero()?_=z+_:_=m[S-z.length]+z+_}for(this.isZero()&&(_="0"+_);_.length%F!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}h(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var R=this.words[0];return this.length===2?R+=this.words[1]*67108864:this.length===3&&this.words[2]===1?R+=4503599627370496+this.words[1]*67108864:this.length>2&&h(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-R:R},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(R,F){return h(typeof f<"u"),this.toArrayLike(f,R,F)},a.prototype.toArray=function(R,F){return this.toArrayLike(Array,R,F)},a.prototype.toArrayLike=function(R,F,_){var k=this.byteLength(),N=_||Math.max(1,k);h(k<=N,"byte array longer than desired length"),h(N>0,"Requested array length <= 0"),this.strip();var P=F==="le",D=new R(N),A,S,E=this.clone();if(P){for(S=0;!E.isZero();S++)A=E.andln(255),E.iushrn(8),D[S]=A;for(;S<N;S++)D[S]=0}else{for(S=0;S<N-k;S++)D[S]=0;for(S=0;!E.isZero();S++)A=E.andln(255),E.iushrn(8),D[N-S-1]=A}return D},Math.clz32?a.prototype._countBits=function(R){return 32-Math.clz32(R)}:a.prototype._countBits=function(R){var F=R,_=0;return F>=4096&&(_+=13,F>>>=13),F>=64&&(_+=7,F>>>=7),F>=8&&(_+=4,F>>>=4),F>=2&&(_+=2,F>>>=2),_+F},a.prototype._zeroBits=function(R){if(R===0)return 26;var F=R,_=0;return F&8191||(_+=13,F>>>=13),F&127||(_+=7,F>>>=7),F&15||(_+=4,F>>>=4),F&3||(_+=2,F>>>=2),F&1||_++,_},a.prototype.bitLength=function(){var R=this.words[this.length-1],F=this._countBits(R);return(this.length-1)*26+F};function x(L){for(var R=new Array(L.bitLength()),F=0;F<R.length;F++){var _=F/26|0,k=F%26;R[F]=(L.words[_]&1<<k)>>>k}return R}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var R=0,F=0;F<this.length;F++){var _=this._zeroBits(this.words[F]);if(R+=_,_!==26)break}return R},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(R){return this.negative!==0?this.abs().inotn(R).iaddn(1):this.clone()},a.prototype.fromTwos=function(R){return this.testn(R-1)?this.notn(R).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(R){for(;this.length<R.length;)this.words[this.length++]=0;for(var F=0;F<R.length;F++)this.words[F]=this.words[F]|R.words[F];return this.strip()},a.prototype.ior=function(R){return h((this.negative|R.negative)===0),this.iuor(R)},a.prototype.or=function(R){return this.length>R.length?this.clone().ior(R):R.clone().ior(this)},a.prototype.uor=function(R){return this.length>R.length?this.clone().iuor(R):R.clone().iuor(this)},a.prototype.iuand=function(R){var F;this.length>R.length?F=R:F=this;for(var _=0;_<F.length;_++)this.words[_]=this.words[_]&R.words[_];return this.length=F.length,this.strip()},a.prototype.iand=function(R){return h((this.negative|R.negative)===0),this.iuand(R)},a.prototype.and=function(R){return this.length>R.length?this.clone().iand(R):R.clone().iand(this)},a.prototype.uand=function(R){return this.length>R.length?this.clone().iuand(R):R.clone().iuand(this)},a.prototype.iuxor=function(R){var F,_;this.length>R.length?(F=this,_=R):(F=R,_=this);for(var k=0;k<_.length;k++)this.words[k]=F.words[k]^_.words[k];if(this!==F)for(;k<F.length;k++)this.words[k]=F.words[k];return this.length=F.length,this.strip()},a.prototype.ixor=function(R){return h((this.negative|R.negative)===0),this.iuxor(R)},a.prototype.xor=function(R){return this.length>R.length?this.clone().ixor(R):R.clone().ixor(this)},a.prototype.uxor=function(R){return this.length>R.length?this.clone().iuxor(R):R.clone().iuxor(this)},a.prototype.inotn=function(R){h(typeof R=="number"&&R>=0);var F=Math.ceil(R/26)|0,_=R%26;this._expand(F),_>0&&F--;for(var k=0;k<F;k++)this.words[k]=~this.words[k]&67108863;return _>0&&(this.words[k]=~this.words[k]&67108863>>26-_),this.strip()},a.prototype.notn=function(R){return this.clone().inotn(R)},a.prototype.setn=function(R,F){h(typeof R=="number"&&R>=0);var _=R/26|0,k=R%26;return this._expand(_+1),F?this.words[_]=this.words[_]|1<<k:this.words[_]=this.words[_]&~(1<<k),this.strip()},a.prototype.iadd=function(R){var F;if(this.negative!==0&&R.negative===0)return this.negative=0,F=this.isub(R),this.negative^=1,this._normSign();if(this.negative===0&&R.negative!==0)return R.negative=0,F=this.isub(R),R.negative=1,F._normSign();var _,k;this.length>R.length?(_=this,k=R):(_=R,k=this);for(var N=0,P=0;P<k.length;P++)F=(_.words[P]|0)+(k.words[P]|0)+N,this.words[P]=F&67108863,N=F>>>26;for(;N!==0&&P<_.length;P++)F=(_.words[P]|0)+N,this.words[P]=F&67108863,N=F>>>26;if(this.length=_.length,N!==0)this.words[this.length]=N,this.length++;else if(_!==this)for(;P<_.length;P++)this.words[P]=_.words[P];return this},a.prototype.add=function(R){var F;return R.negative!==0&&this.negative===0?(R.negative=0,F=this.sub(R),R.negative^=1,F):R.negative===0&&this.negative!==0?(this.negative=0,F=R.sub(this),this.negative=1,F):this.length>R.length?this.clone().iadd(R):R.clone().iadd(this)},a.prototype.isub=function(R){if(R.negative!==0){R.negative=0;var F=this.iadd(R);return R.negative=1,F._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(R),this.negative=1,this._normSign();var _=this.cmp(R);if(_===0)return this.negative=0,this.length=1,this.words[0]=0,this;var k,N;_>0?(k=this,N=R):(k=R,N=this);for(var P=0,D=0;D<N.length;D++)F=(k.words[D]|0)-(N.words[D]|0)+P,P=F>>26,this.words[D]=F&67108863;for(;P!==0&&D<k.length;D++)F=(k.words[D]|0)+P,P=F>>26,this.words[D]=F&67108863;if(P===0&&D<k.length&&k!==this)for(;D<k.length;D++)this.words[D]=k.words[D];return this.length=Math.max(this.length,D),k!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(R){return this.clone().isub(R)};function g(L,R,F){F.negative=R.negative^L.negative;var _=L.length+R.length|0;F.length=_,_=_-1|0;var k=L.words[0]|0,N=R.words[0]|0,P=k*N,D=P&67108863,A=P/67108864|0;F.words[0]=D;for(var S=1;S<_;S++){for(var E=A>>>26,O=A&67108863,z=Math.min(S,R.length-1),J=Math.max(0,S-L.length+1);J<=z;J++){var re=S-J|0;k=L.words[re]|0,N=R.words[J]|0,P=k*N+O,E+=P/67108864|0,O=P&67108863}F.words[S]=O|0,A=E|0}return A!==0?F.words[S]=A|0:F.length--,F.strip()}var b=function(R,F,_){var k=R.words,N=F.words,P=_.words,D=0,A,S,E,O=k[0]|0,z=O&8191,J=O>>>13,re=k[1]|0,se=re&8191,Ce=re>>>13,Y=k[2]|0,q=Y&8191,K=Y>>>13,Q=k[3]|0,he=Q&8191,we=Q>>>13,ae=k[4]|0,te=ae&8191,Z=ae>>>13,W=k[5]|0,V=W&8191,fe=W>>>13,ye=k[6]|0,X=ye&8191,ve=ye>>>13,ke=k[7]|0,ee=ke&8191,ne=ke>>>13,de=k[8]|0,_e=de&8191,Re=de>>>13,Ae=k[9]|0,Ne=Ae&8191,Xe=Ae>>>13,Le=N[0]|0,xe=Le&8191,Me=Le>>>13,Be=N[1]|0,Ve=Be&8191,ot=Be>>>13,ct=N[2]|0,rt=ct&8191,nt=ct>>>13,mt=N[3]|0,et=mt&8191,tt=mt>>>13,vt=N[4]|0,ft=vt&8191,kt=vt>>>13,Tt=N[5]|0,lt=Tt&8191,Ct=Tt>>>13,Mt=N[6]|0,gt=Mt&8191,ie=Mt>>>13,ge=N[7]|0,le=ge&8191,ue=ge>>>13,pe=N[8]|0,me=pe&8191,Ie=pe>>>13,je=N[9]|0,Fe=je&8191,Pe=je>>>13;_.negative=R.negative^F.negative,_.length=19,A=Math.imul(z,xe),S=Math.imul(z,Me),S=S+Math.imul(J,xe)|0,E=Math.imul(J,Me);var Oe=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,A=Math.imul(se,xe),S=Math.imul(se,Me),S=S+Math.imul(Ce,xe)|0,E=Math.imul(Ce,Me),A=A+Math.imul(z,Ve)|0,S=S+Math.imul(z,ot)|0,S=S+Math.imul(J,Ve)|0,E=E+Math.imul(J,ot)|0;var $e=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+($e>>>26)|0,$e&=67108863,A=Math.imul(q,xe),S=Math.imul(q,Me),S=S+Math.imul(K,xe)|0,E=Math.imul(K,Me),A=A+Math.imul(se,Ve)|0,S=S+Math.imul(se,ot)|0,S=S+Math.imul(Ce,Ve)|0,E=E+Math.imul(Ce,ot)|0,A=A+Math.imul(z,rt)|0,S=S+Math.imul(z,nt)|0,S=S+Math.imul(J,rt)|0,E=E+Math.imul(J,nt)|0;var ce=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(ce>>>26)|0,ce&=67108863,A=Math.imul(he,xe),S=Math.imul(he,Me),S=S+Math.imul(we,xe)|0,E=Math.imul(we,Me),A=A+Math.imul(q,Ve)|0,S=S+Math.imul(q,ot)|0,S=S+Math.imul(K,Ve)|0,E=E+Math.imul(K,ot)|0,A=A+Math.imul(se,rt)|0,S=S+Math.imul(se,nt)|0,S=S+Math.imul(Ce,rt)|0,E=E+Math.imul(Ce,nt)|0,A=A+Math.imul(z,et)|0,S=S+Math.imul(z,tt)|0,S=S+Math.imul(J,et)|0,E=E+Math.imul(J,tt)|0;var Te=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(Te>>>26)|0,Te&=67108863,A=Math.imul(te,xe),S=Math.imul(te,Me),S=S+Math.imul(Z,xe)|0,E=Math.imul(Z,Me),A=A+Math.imul(he,Ve)|0,S=S+Math.imul(he,ot)|0,S=S+Math.imul(we,Ve)|0,E=E+Math.imul(we,ot)|0,A=A+Math.imul(q,rt)|0,S=S+Math.imul(q,nt)|0,S=S+Math.imul(K,rt)|0,E=E+Math.imul(K,nt)|0,A=A+Math.imul(se,et)|0,S=S+Math.imul(se,tt)|0,S=S+Math.imul(Ce,et)|0,E=E+Math.imul(Ce,tt)|0,A=A+Math.imul(z,ft)|0,S=S+Math.imul(z,kt)|0,S=S+Math.imul(J,ft)|0,E=E+Math.imul(J,kt)|0;var Ee=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,A=Math.imul(V,xe),S=Math.imul(V,Me),S=S+Math.imul(fe,xe)|0,E=Math.imul(fe,Me),A=A+Math.imul(te,Ve)|0,S=S+Math.imul(te,ot)|0,S=S+Math.imul(Z,Ve)|0,E=E+Math.imul(Z,ot)|0,A=A+Math.imul(he,rt)|0,S=S+Math.imul(he,nt)|0,S=S+Math.imul(we,rt)|0,E=E+Math.imul(we,nt)|0,A=A+Math.imul(q,et)|0,S=S+Math.imul(q,tt)|0,S=S+Math.imul(K,et)|0,E=E+Math.imul(K,tt)|0,A=A+Math.imul(se,ft)|0,S=S+Math.imul(se,kt)|0,S=S+Math.imul(Ce,ft)|0,E=E+Math.imul(Ce,kt)|0,A=A+Math.imul(z,lt)|0,S=S+Math.imul(z,Ct)|0,S=S+Math.imul(J,lt)|0,E=E+Math.imul(J,Ct)|0;var Ue=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,A=Math.imul(X,xe),S=Math.imul(X,Me),S=S+Math.imul(ve,xe)|0,E=Math.imul(ve,Me),A=A+Math.imul(V,Ve)|0,S=S+Math.imul(V,ot)|0,S=S+Math.imul(fe,Ve)|0,E=E+Math.imul(fe,ot)|0,A=A+Math.imul(te,rt)|0,S=S+Math.imul(te,nt)|0,S=S+Math.imul(Z,rt)|0,E=E+Math.imul(Z,nt)|0,A=A+Math.imul(he,et)|0,S=S+Math.imul(he,tt)|0,S=S+Math.imul(we,et)|0,E=E+Math.imul(we,tt)|0,A=A+Math.imul(q,ft)|0,S=S+Math.imul(q,kt)|0,S=S+Math.imul(K,ft)|0,E=E+Math.imul(K,kt)|0,A=A+Math.imul(se,lt)|0,S=S+Math.imul(se,Ct)|0,S=S+Math.imul(Ce,lt)|0,E=E+Math.imul(Ce,Ct)|0,A=A+Math.imul(z,gt)|0,S=S+Math.imul(z,ie)|0,S=S+Math.imul(J,gt)|0,E=E+Math.imul(J,ie)|0;var Ke=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,A=Math.imul(ee,xe),S=Math.imul(ee,Me),S=S+Math.imul(ne,xe)|0,E=Math.imul(ne,Me),A=A+Math.imul(X,Ve)|0,S=S+Math.imul(X,ot)|0,S=S+Math.imul(ve,Ve)|0,E=E+Math.imul(ve,ot)|0,A=A+Math.imul(V,rt)|0,S=S+Math.imul(V,nt)|0,S=S+Math.imul(fe,rt)|0,E=E+Math.imul(fe,nt)|0,A=A+Math.imul(te,et)|0,S=S+Math.imul(te,tt)|0,S=S+Math.imul(Z,et)|0,E=E+Math.imul(Z,tt)|0,A=A+Math.imul(he,ft)|0,S=S+Math.imul(he,kt)|0,S=S+Math.imul(we,ft)|0,E=E+Math.imul(we,kt)|0,A=A+Math.imul(q,lt)|0,S=S+Math.imul(q,Ct)|0,S=S+Math.imul(K,lt)|0,E=E+Math.imul(K,Ct)|0,A=A+Math.imul(se,gt)|0,S=S+Math.imul(se,ie)|0,S=S+Math.imul(Ce,gt)|0,E=E+Math.imul(Ce,ie)|0,A=A+Math.imul(z,le)|0,S=S+Math.imul(z,ue)|0,S=S+Math.imul(J,le)|0,E=E+Math.imul(J,ue)|0;var at=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(at>>>26)|0,at&=67108863,A=Math.imul(_e,xe),S=Math.imul(_e,Me),S=S+Math.imul(Re,xe)|0,E=Math.imul(Re,Me),A=A+Math.imul(ee,Ve)|0,S=S+Math.imul(ee,ot)|0,S=S+Math.imul(ne,Ve)|0,E=E+Math.imul(ne,ot)|0,A=A+Math.imul(X,rt)|0,S=S+Math.imul(X,nt)|0,S=S+Math.imul(ve,rt)|0,E=E+Math.imul(ve,nt)|0,A=A+Math.imul(V,et)|0,S=S+Math.imul(V,tt)|0,S=S+Math.imul(fe,et)|0,E=E+Math.imul(fe,tt)|0,A=A+Math.imul(te,ft)|0,S=S+Math.imul(te,kt)|0,S=S+Math.imul(Z,ft)|0,E=E+Math.imul(Z,kt)|0,A=A+Math.imul(he,lt)|0,S=S+Math.imul(he,Ct)|0,S=S+Math.imul(we,lt)|0,E=E+Math.imul(we,Ct)|0,A=A+Math.imul(q,gt)|0,S=S+Math.imul(q,ie)|0,S=S+Math.imul(K,gt)|0,E=E+Math.imul(K,ie)|0,A=A+Math.imul(se,le)|0,S=S+Math.imul(se,ue)|0,S=S+Math.imul(Ce,le)|0,E=E+Math.imul(Ce,ue)|0,A=A+Math.imul(z,me)|0,S=S+Math.imul(z,Ie)|0,S=S+Math.imul(J,me)|0,E=E+Math.imul(J,Ie)|0;var dt=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(dt>>>26)|0,dt&=67108863,A=Math.imul(Ne,xe),S=Math.imul(Ne,Me),S=S+Math.imul(Xe,xe)|0,E=Math.imul(Xe,Me),A=A+Math.imul(_e,Ve)|0,S=S+Math.imul(_e,ot)|0,S=S+Math.imul(Re,Ve)|0,E=E+Math.imul(Re,ot)|0,A=A+Math.imul(ee,rt)|0,S=S+Math.imul(ee,nt)|0,S=S+Math.imul(ne,rt)|0,E=E+Math.imul(ne,nt)|0,A=A+Math.imul(X,et)|0,S=S+Math.imul(X,tt)|0,S=S+Math.imul(ve,et)|0,E=E+Math.imul(ve,tt)|0,A=A+Math.imul(V,ft)|0,S=S+Math.imul(V,kt)|0,S=S+Math.imul(fe,ft)|0,E=E+Math.imul(fe,kt)|0,A=A+Math.imul(te,lt)|0,S=S+Math.imul(te,Ct)|0,S=S+Math.imul(Z,lt)|0,E=E+Math.imul(Z,Ct)|0,A=A+Math.imul(he,gt)|0,S=S+Math.imul(he,ie)|0,S=S+Math.imul(we,gt)|0,E=E+Math.imul(we,ie)|0,A=A+Math.imul(q,le)|0,S=S+Math.imul(q,ue)|0,S=S+Math.imul(K,le)|0,E=E+Math.imul(K,ue)|0,A=A+Math.imul(se,me)|0,S=S+Math.imul(se,Ie)|0,S=S+Math.imul(Ce,me)|0,E=E+Math.imul(Ce,Ie)|0,A=A+Math.imul(z,Fe)|0,S=S+Math.imul(z,Pe)|0,S=S+Math.imul(J,Fe)|0,E=E+Math.imul(J,Pe)|0;var Nt=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,A=Math.imul(Ne,Ve),S=Math.imul(Ne,ot),S=S+Math.imul(Xe,Ve)|0,E=Math.imul(Xe,ot),A=A+Math.imul(_e,rt)|0,S=S+Math.imul(_e,nt)|0,S=S+Math.imul(Re,rt)|0,E=E+Math.imul(Re,nt)|0,A=A+Math.imul(ee,et)|0,S=S+Math.imul(ee,tt)|0,S=S+Math.imul(ne,et)|0,E=E+Math.imul(ne,tt)|0,A=A+Math.imul(X,ft)|0,S=S+Math.imul(X,kt)|0,S=S+Math.imul(ve,ft)|0,E=E+Math.imul(ve,kt)|0,A=A+Math.imul(V,lt)|0,S=S+Math.imul(V,Ct)|0,S=S+Math.imul(fe,lt)|0,E=E+Math.imul(fe,Ct)|0,A=A+Math.imul(te,gt)|0,S=S+Math.imul(te,ie)|0,S=S+Math.imul(Z,gt)|0,E=E+Math.imul(Z,ie)|0,A=A+Math.imul(he,le)|0,S=S+Math.imul(he,ue)|0,S=S+Math.imul(we,le)|0,E=E+Math.imul(we,ue)|0,A=A+Math.imul(q,me)|0,S=S+Math.imul(q,Ie)|0,S=S+Math.imul(K,me)|0,E=E+Math.imul(K,Ie)|0,A=A+Math.imul(se,Fe)|0,S=S+Math.imul(se,Pe)|0,S=S+Math.imul(Ce,Fe)|0,E=E+Math.imul(Ce,Pe)|0;var pr=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(pr>>>26)|0,pr&=67108863,A=Math.imul(Ne,rt),S=Math.imul(Ne,nt),S=S+Math.imul(Xe,rt)|0,E=Math.imul(Xe,nt),A=A+Math.imul(_e,et)|0,S=S+Math.imul(_e,tt)|0,S=S+Math.imul(Re,et)|0,E=E+Math.imul(Re,tt)|0,A=A+Math.imul(ee,ft)|0,S=S+Math.imul(ee,kt)|0,S=S+Math.imul(ne,ft)|0,E=E+Math.imul(ne,kt)|0,A=A+Math.imul(X,lt)|0,S=S+Math.imul(X,Ct)|0,S=S+Math.imul(ve,lt)|0,E=E+Math.imul(ve,Ct)|0,A=A+Math.imul(V,gt)|0,S=S+Math.imul(V,ie)|0,S=S+Math.imul(fe,gt)|0,E=E+Math.imul(fe,ie)|0,A=A+Math.imul(te,le)|0,S=S+Math.imul(te,ue)|0,S=S+Math.imul(Z,le)|0,E=E+Math.imul(Z,ue)|0,A=A+Math.imul(he,me)|0,S=S+Math.imul(he,Ie)|0,S=S+Math.imul(we,me)|0,E=E+Math.imul(we,Ie)|0,A=A+Math.imul(q,Fe)|0,S=S+Math.imul(q,Pe)|0,S=S+Math.imul(K,Fe)|0,E=E+Math.imul(K,Pe)|0;var Jt=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,A=Math.imul(Ne,et),S=Math.imul(Ne,tt),S=S+Math.imul(Xe,et)|0,E=Math.imul(Xe,tt),A=A+Math.imul(_e,ft)|0,S=S+Math.imul(_e,kt)|0,S=S+Math.imul(Re,ft)|0,E=E+Math.imul(Re,kt)|0,A=A+Math.imul(ee,lt)|0,S=S+Math.imul(ee,Ct)|0,S=S+Math.imul(ne,lt)|0,E=E+Math.imul(ne,Ct)|0,A=A+Math.imul(X,gt)|0,S=S+Math.imul(X,ie)|0,S=S+Math.imul(ve,gt)|0,E=E+Math.imul(ve,ie)|0,A=A+Math.imul(V,le)|0,S=S+Math.imul(V,ue)|0,S=S+Math.imul(fe,le)|0,E=E+Math.imul(fe,ue)|0,A=A+Math.imul(te,me)|0,S=S+Math.imul(te,Ie)|0,S=S+Math.imul(Z,me)|0,E=E+Math.imul(Z,Ie)|0,A=A+Math.imul(he,Fe)|0,S=S+Math.imul(he,Pe)|0,S=S+Math.imul(we,Fe)|0,E=E+Math.imul(we,Pe)|0;var jt=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(jt>>>26)|0,jt&=67108863,A=Math.imul(Ne,ft),S=Math.imul(Ne,kt),S=S+Math.imul(Xe,ft)|0,E=Math.imul(Xe,kt),A=A+Math.imul(_e,lt)|0,S=S+Math.imul(_e,Ct)|0,S=S+Math.imul(Re,lt)|0,E=E+Math.imul(Re,Ct)|0,A=A+Math.imul(ee,gt)|0,S=S+Math.imul(ee,ie)|0,S=S+Math.imul(ne,gt)|0,E=E+Math.imul(ne,ie)|0,A=A+Math.imul(X,le)|0,S=S+Math.imul(X,ue)|0,S=S+Math.imul(ve,le)|0,E=E+Math.imul(ve,ue)|0,A=A+Math.imul(V,me)|0,S=S+Math.imul(V,Ie)|0,S=S+Math.imul(fe,me)|0,E=E+Math.imul(fe,Ie)|0,A=A+Math.imul(te,Fe)|0,S=S+Math.imul(te,Pe)|0,S=S+Math.imul(Z,Fe)|0,E=E+Math.imul(Z,Pe)|0;var mr=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(mr>>>26)|0,mr&=67108863,A=Math.imul(Ne,lt),S=Math.imul(Ne,Ct),S=S+Math.imul(Xe,lt)|0,E=Math.imul(Xe,Ct),A=A+Math.imul(_e,gt)|0,S=S+Math.imul(_e,ie)|0,S=S+Math.imul(Re,gt)|0,E=E+Math.imul(Re,ie)|0,A=A+Math.imul(ee,le)|0,S=S+Math.imul(ee,ue)|0,S=S+Math.imul(ne,le)|0,E=E+Math.imul(ne,ue)|0,A=A+Math.imul(X,me)|0,S=S+Math.imul(X,Ie)|0,S=S+Math.imul(ve,me)|0,E=E+Math.imul(ve,Ie)|0,A=A+Math.imul(V,Fe)|0,S=S+Math.imul(V,Pe)|0,S=S+Math.imul(fe,Fe)|0,E=E+Math.imul(fe,Pe)|0;var Ur=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,A=Math.imul(Ne,gt),S=Math.imul(Ne,ie),S=S+Math.imul(Xe,gt)|0,E=Math.imul(Xe,ie),A=A+Math.imul(_e,le)|0,S=S+Math.imul(_e,ue)|0,S=S+Math.imul(Re,le)|0,E=E+Math.imul(Re,ue)|0,A=A+Math.imul(ee,me)|0,S=S+Math.imul(ee,Ie)|0,S=S+Math.imul(ne,me)|0,E=E+Math.imul(ne,Ie)|0,A=A+Math.imul(X,Fe)|0,S=S+Math.imul(X,Pe)|0,S=S+Math.imul(ve,Fe)|0,E=E+Math.imul(ve,Pe)|0;var Ot=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,A=Math.imul(Ne,le),S=Math.imul(Ne,ue),S=S+Math.imul(Xe,le)|0,E=Math.imul(Xe,ue),A=A+Math.imul(_e,me)|0,S=S+Math.imul(_e,Ie)|0,S=S+Math.imul(Re,me)|0,E=E+Math.imul(Re,Ie)|0,A=A+Math.imul(ee,Fe)|0,S=S+Math.imul(ee,Pe)|0,S=S+Math.imul(ne,Fe)|0,E=E+Math.imul(ne,Pe)|0;var vn=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(vn>>>26)|0,vn&=67108863,A=Math.imul(Ne,me),S=Math.imul(Ne,Ie),S=S+Math.imul(Xe,me)|0,E=Math.imul(Xe,Ie),A=A+Math.imul(_e,Fe)|0,S=S+Math.imul(_e,Pe)|0,S=S+Math.imul(Re,Fe)|0,E=E+Math.imul(Re,Pe)|0;var xn=(D+A|0)+((S&8191)<<13)|0;D=(E+(S>>>13)|0)+(xn>>>26)|0,xn&=67108863,A=Math.imul(Ne,Fe),S=Math.imul(Ne,Pe),S=S+Math.imul(Xe,Fe)|0,E=Math.imul(Xe,Pe);var bn=(D+A|0)+((S&8191)<<13)|0;return D=(E+(S>>>13)|0)+(bn>>>26)|0,bn&=67108863,P[0]=Oe,P[1]=$e,P[2]=ce,P[3]=Te,P[4]=Ee,P[5]=Ue,P[6]=Ke,P[7]=at,P[8]=dt,P[9]=Nt,P[10]=pr,P[11]=Jt,P[12]=jt,P[13]=mr,P[14]=Ur,P[15]=Ot,P[16]=vn,P[17]=xn,P[18]=bn,D!==0&&(P[19]=D,_.length++),_};Math.imul||(b=g);function w(L,R,F){F.negative=R.negative^L.negative,F.length=L.length+R.length;for(var _=0,k=0,N=0;N<F.length-1;N++){var P=k;k=0;for(var D=_&67108863,A=Math.min(N,R.length-1),S=Math.max(0,N-L.length+1);S<=A;S++){var E=N-S,O=L.words[E]|0,z=R.words[S]|0,J=O*z,re=J&67108863;P=P+(J/67108864|0)|0,re=re+D|0,D=re&67108863,P=P+(re>>>26)|0,k+=P>>>26,P&=67108863}F.words[N]=D,_=P,P=k}return _!==0?F.words[N]=_:F.length--,F.strip()}function y(L,R,F){var _=new T;return _.mulp(L,R,F)}a.prototype.mulTo=function(R,F){var _,k=this.length+R.length;return this.length===10&&R.length===10?_=b(this,R,F):k<63?_=g(this,R,F):k<1024?_=w(this,R,F):_=y(this,R,F),_};function T(L,R){this.x=L,this.y=R}T.prototype.makeRBT=function(R){for(var F=new Array(R),_=a.prototype._countBits(R)-1,k=0;k<R;k++)F[k]=this.revBin(k,_,R);return F},T.prototype.revBin=function(R,F,_){if(R===0||R===_-1)return R;for(var k=0,N=0;N<F;N++)k|=(R&1)<<F-N-1,R>>=1;return k},T.prototype.permute=function(R,F,_,k,N,P){for(var D=0;D<P;D++)k[D]=F[R[D]],N[D]=_[R[D]]},T.prototype.transform=function(R,F,_,k,N,P){this.permute(P,R,F,_,k,N);for(var D=1;D<N;D<<=1)for(var A=D<<1,S=Math.cos(2*Math.PI/A),E=Math.sin(2*Math.PI/A),O=0;O<N;O+=A)for(var z=S,J=E,re=0;re<D;re++){var se=_[O+re],Ce=k[O+re],Y=_[O+re+D],q=k[O+re+D],K=z*Y-J*q;q=z*q+J*Y,Y=K,_[O+re]=se+Y,k[O+re]=Ce+q,_[O+re+D]=se-Y,k[O+re+D]=Ce-q,re!==A&&(K=S*z-E*J,J=S*J+E*z,z=K)}},T.prototype.guessLen13b=function(R,F){var _=Math.max(F,R)|1,k=_&1,N=0;for(_=_/2|0;_;_=_>>>1)N++;return 1<<N+1+k},T.prototype.conjugate=function(R,F,_){if(!(_<=1))for(var k=0;k<_/2;k++){var N=R[k];R[k]=R[_-k-1],R[_-k-1]=N,N=F[k],F[k]=-F[_-k-1],F[_-k-1]=-N}},T.prototype.normalize13b=function(R,F){for(var _=0,k=0;k<F/2;k++){var N=Math.round(R[2*k+1]/F)*8192+Math.round(R[2*k]/F)+_;R[k]=N&67108863,N<67108864?_=0:_=N/67108864|0}return R},T.prototype.convert13b=function(R,F,_,k){for(var N=0,P=0;P<F;P++)N=N+(R[P]|0),_[2*P]=N&8191,N=N>>>13,_[2*P+1]=N&8191,N=N>>>13;for(P=2*F;P<k;++P)_[P]=0;h(N===0),h((N&-8192)===0)},T.prototype.stub=function(R){for(var F=new Array(R),_=0;_<R;_++)F[_]=0;return F},T.prototype.mulp=function(R,F,_){var k=2*this.guessLen13b(R.length,F.length),N=this.makeRBT(k),P=this.stub(k),D=new Array(k),A=new Array(k),S=new Array(k),E=new Array(k),O=new Array(k),z=new Array(k),J=_.words;J.length=k,this.convert13b(R.words,R.length,D,k),this.convert13b(F.words,F.length,E,k),this.transform(D,P,A,S,k,N),this.transform(E,P,O,z,k,N);for(var re=0;re<k;re++){var se=A[re]*O[re]-S[re]*z[re];S[re]=A[re]*z[re]+S[re]*O[re],A[re]=se}return this.conjugate(A,S,k),this.transform(A,S,J,P,k,N),this.conjugate(J,P,k),this.normalize13b(J,k),_.negative=R.negative^F.negative,_.length=R.length+F.length,_.strip()},a.prototype.mul=function(R){var F=new a(null);return F.words=new Array(this.length+R.length),this.mulTo(R,F)},a.prototype.mulf=function(R){var F=new a(null);return F.words=new Array(this.length+R.length),y(this,R,F)},a.prototype.imul=function(R){return this.clone().mulTo(R,this)},a.prototype.imuln=function(R){h(typeof R=="number"),h(R<67108864);for(var F=0,_=0;_<this.length;_++){var k=(this.words[_]|0)*R,N=(k&67108863)+(F&67108863);F>>=26,F+=k/67108864|0,F+=N>>>26,this.words[_]=N&67108863}return F!==0&&(this.words[_]=F,this.length++),this},a.prototype.muln=function(R){return this.clone().imuln(R)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(R){var F=x(R);if(F.length===0)return new a(1);for(var _=this,k=0;k<F.length&&F[k]===0;k++,_=_.sqr());if(++k<F.length)for(var N=_.sqr();k<F.length;k++,N=N.sqr())F[k]!==0&&(_=_.mul(N));return _},a.prototype.iushln=function(R){h(typeof R=="number"&&R>=0);var F=R%26,_=(R-F)/26,k=67108863>>>26-F<<26-F,N;if(F!==0){var P=0;for(N=0;N<this.length;N++){var D=this.words[N]&k,A=(this.words[N]|0)-D<<F;this.words[N]=A|P,P=D>>>26-F}P&&(this.words[N]=P,this.length++)}if(_!==0){for(N=this.length-1;N>=0;N--)this.words[N+_]=this.words[N];for(N=0;N<_;N++)this.words[N]=0;this.length+=_}return this.strip()},a.prototype.ishln=function(R){return h(this.negative===0),this.iushln(R)},a.prototype.iushrn=function(R,F,_){h(typeof R=="number"&&R>=0);var k;F?k=(F-F%26)/26:k=0;var N=R%26,P=Math.min((R-N)/26,this.length),D=67108863^67108863>>>N<<N,A=_;if(k-=P,k=Math.max(0,k),A){for(var S=0;S<P;S++)A.words[S]=this.words[S];A.length=P}if(P!==0)if(this.length>P)for(this.length-=P,S=0;S<this.length;S++)this.words[S]=this.words[S+P];else this.words[0]=0,this.length=1;var E=0;for(S=this.length-1;S>=0&&(E!==0||S>=k);S--){var O=this.words[S]|0;this.words[S]=E<<26-N|O>>>N,E=O&D}return A&&E!==0&&(A.words[A.length++]=E),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(R,F,_){return h(this.negative===0),this.iushrn(R,F,_)},a.prototype.shln=function(R){return this.clone().ishln(R)},a.prototype.ushln=function(R){return this.clone().iushln(R)},a.prototype.shrn=function(R){return this.clone().ishrn(R)},a.prototype.ushrn=function(R){return this.clone().iushrn(R)},a.prototype.testn=function(R){h(typeof R=="number"&&R>=0);var F=R%26,_=(R-F)/26,k=1<<F;if(this.length<=_)return!1;var N=this.words[_];return!!(N&k)},a.prototype.imaskn=function(R){h(typeof R=="number"&&R>=0);var F=R%26,_=(R-F)/26;if(h(this.negative===0,"imaskn works only with positive numbers"),this.length<=_)return this;if(F!==0&&_++,this.length=Math.min(_,this.length),F!==0){var k=67108863^67108863>>>F<<F;this.words[this.length-1]&=k}return this.strip()},a.prototype.maskn=function(R){return this.clone().imaskn(R)},a.prototype.iaddn=function(R){return h(typeof R=="number"),h(R<67108864),R<0?this.isubn(-R):this.negative!==0?this.length===1&&(this.words[0]|0)<R?(this.words[0]=R-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(R),this.negative=1,this):this._iaddn(R)},a.prototype._iaddn=function(R){this.words[0]+=R;for(var F=0;F<this.length&&this.words[F]>=67108864;F++)this.words[F]-=67108864,F===this.length-1?this.words[F+1]=1:this.words[F+1]++;return this.length=Math.max(this.length,F+1),this},a.prototype.isubn=function(R){if(h(typeof R=="number"),h(R<67108864),R<0)return this.iaddn(-R);if(this.negative!==0)return this.negative=0,this.iaddn(R),this.negative=1,this;if(this.words[0]-=R,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var F=0;F<this.length&&this.words[F]<0;F++)this.words[F]+=67108864,this.words[F+1]-=1;return this.strip()},a.prototype.addn=function(R){return this.clone().iaddn(R)},a.prototype.subn=function(R){return this.clone().isubn(R)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(R,F,_){var k=R.length+_,N;this._expand(k);var P,D=0;for(N=0;N<R.length;N++){P=(this.words[N+_]|0)+D;var A=(R.words[N]|0)*F;P-=A&67108863,D=(P>>26)-(A/67108864|0),this.words[N+_]=P&67108863}for(;N<this.length-_;N++)P=(this.words[N+_]|0)+D,D=P>>26,this.words[N+_]=P&67108863;if(D===0)return this.strip();for(h(D===-1),D=0,N=0;N<this.length;N++)P=-(this.words[N]|0)+D,D=P>>26,this.words[N]=P&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(R,F){var _=this.length-R.length,k=this.clone(),N=R,P=N.words[N.length-1]|0,D=this._countBits(P);_=26-D,_!==0&&(N=N.ushln(_),k.iushln(_),P=N.words[N.length-1]|0);var A=k.length-N.length,S;if(F!=="mod"){S=new a(null),S.length=A+1,S.words=new Array(S.length);for(var E=0;E<S.length;E++)S.words[E]=0}var O=k.clone()._ishlnsubmul(N,1,A);O.negative===0&&(k=O,S&&(S.words[A]=1));for(var z=A-1;z>=0;z--){var J=(k.words[N.length+z]|0)*67108864+(k.words[N.length+z-1]|0);for(J=Math.min(J/P|0,67108863),k._ishlnsubmul(N,J,z);k.negative!==0;)J--,k.negative=0,k._ishlnsubmul(N,1,z),k.isZero()||(k.negative^=1);S&&(S.words[z]=J)}return S&&S.strip(),k.strip(),F!=="div"&&_!==0&&k.iushrn(_),{div:S||null,mod:k}},a.prototype.divmod=function(R,F,_){if(h(!R.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var k,N,P;return this.negative!==0&&R.negative===0?(P=this.neg().divmod(R,F),F!=="mod"&&(k=P.div.neg()),F!=="div"&&(N=P.mod.neg(),_&&N.negative!==0&&N.iadd(R)),{div:k,mod:N}):this.negative===0&&R.negative!==0?(P=this.divmod(R.neg(),F),F!=="mod"&&(k=P.div.neg()),{div:k,mod:P.mod}):this.negative&R.negative?(P=this.neg().divmod(R.neg(),F),F!=="div"&&(N=P.mod.neg(),_&&N.negative!==0&&N.isub(R)),{div:P.div,mod:N}):R.length>this.length||this.cmp(R)<0?{div:new a(0),mod:this}:R.length===1?F==="div"?{div:this.divn(R.words[0]),mod:null}:F==="mod"?{div:null,mod:new a(this.modn(R.words[0]))}:{div:this.divn(R.words[0]),mod:new a(this.modn(R.words[0]))}:this._wordDiv(R,F)},a.prototype.div=function(R){return this.divmod(R,"div",!1).div},a.prototype.mod=function(R){return this.divmod(R,"mod",!1).mod},a.prototype.umod=function(R){return this.divmod(R,"mod",!0).mod},a.prototype.divRound=function(R){var F=this.divmod(R);if(F.mod.isZero())return F.div;var _=F.div.negative!==0?F.mod.isub(R):F.mod,k=R.ushrn(1),N=R.andln(1),P=_.cmp(k);return P<0||N===1&&P===0?F.div:F.div.negative!==0?F.div.isubn(1):F.div.iaddn(1)},a.prototype.modn=function(R){h(R<=67108863);for(var F=(1<<26)%R,_=0,k=this.length-1;k>=0;k--)_=(F*_+(this.words[k]|0))%R;return _},a.prototype.idivn=function(R){h(R<=67108863);for(var F=0,_=this.length-1;_>=0;_--){var k=(this.words[_]|0)+F*67108864;this.words[_]=k/R|0,F=k%R}return this.strip()},a.prototype.divn=function(R){return this.clone().idivn(R)},a.prototype.egcd=function(R){h(R.negative===0),h(!R.isZero());var F=this,_=R.clone();F.negative!==0?F=F.umod(R):F=F.clone();for(var k=new a(1),N=new a(0),P=new a(0),D=new a(1),A=0;F.isEven()&&_.isEven();)F.iushrn(1),_.iushrn(1),++A;for(var S=_.clone(),E=F.clone();!F.isZero();){for(var O=0,z=1;!(F.words[0]&z)&&O<26;++O,z<<=1);if(O>0)for(F.iushrn(O);O-- >0;)(k.isOdd()||N.isOdd())&&(k.iadd(S),N.isub(E)),k.iushrn(1),N.iushrn(1);for(var J=0,re=1;!(_.words[0]&re)&&J<26;++J,re<<=1);if(J>0)for(_.iushrn(J);J-- >0;)(P.isOdd()||D.isOdd())&&(P.iadd(S),D.isub(E)),P.iushrn(1),D.iushrn(1);F.cmp(_)>=0?(F.isub(_),k.isub(P),N.isub(D)):(_.isub(F),P.isub(k),D.isub(N))}return{a:P,b:D,gcd:_.iushln(A)}},a.prototype._invmp=function(R){h(R.negative===0),h(!R.isZero());var F=this,_=R.clone();F.negative!==0?F=F.umod(R):F=F.clone();for(var k=new a(1),N=new a(0),P=_.clone();F.cmpn(1)>0&&_.cmpn(1)>0;){for(var D=0,A=1;!(F.words[0]&A)&&D<26;++D,A<<=1);if(D>0)for(F.iushrn(D);D-- >0;)k.isOdd()&&k.iadd(P),k.iushrn(1);for(var S=0,E=1;!(_.words[0]&E)&&S<26;++S,E<<=1);if(S>0)for(_.iushrn(S);S-- >0;)N.isOdd()&&N.iadd(P),N.iushrn(1);F.cmp(_)>=0?(F.isub(_),k.isub(N)):(_.isub(F),N.isub(k))}var O;return F.cmpn(1)===0?O=k:O=N,O.cmpn(0)<0&&O.iadd(R),O},a.prototype.gcd=function(R){if(this.isZero())return R.abs();if(R.isZero())return this.abs();var F=this.clone(),_=R.clone();F.negative=0,_.negative=0;for(var k=0;F.isEven()&&_.isEven();k++)F.iushrn(1),_.iushrn(1);do{for(;F.isEven();)F.iushrn(1);for(;_.isEven();)_.iushrn(1);var N=F.cmp(_);if(N<0){var P=F;F=_,_=P}else if(N===0||_.cmpn(1)===0)break;F.isub(_)}while(!0);return _.iushln(k)},a.prototype.invm=function(R){return this.egcd(R).a.umod(R)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(R){return this.words[0]&R},a.prototype.bincn=function(R){h(typeof R=="number");var F=R%26,_=(R-F)/26,k=1<<F;if(this.length<=_)return this._expand(_+1),this.words[_]|=k,this;for(var N=k,P=_;N!==0&&P<this.length;P++){var D=this.words[P]|0;D+=N,N=D>>>26,D&=67108863,this.words[P]=D}return N!==0&&(this.words[P]=N,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(R){var F=R<0;if(this.negative!==0&&!F)return-1;if(this.negative===0&&F)return 1;this.strip();var _;if(this.length>1)_=1;else{F&&(R=-R),h(R<=67108863,"Number is too big");var k=this.words[0]|0;_=k===R?0:k<R?-1:1}return this.negative!==0?-_|0:_},a.prototype.cmp=function(R){if(this.negative!==0&&R.negative===0)return-1;if(this.negative===0&&R.negative!==0)return 1;var F=this.ucmp(R);return this.negative!==0?-F|0:F},a.prototype.ucmp=function(R){if(this.length>R.length)return 1;if(this.length<R.length)return-1;for(var F=0,_=this.length-1;_>=0;_--){var k=this.words[_]|0,N=R.words[_]|0;if(k!==N){k<N?F=-1:k>N&&(F=1);break}}return F},a.prototype.gtn=function(R){return this.cmpn(R)===1},a.prototype.gt=function(R){return this.cmp(R)===1},a.prototype.gten=function(R){return this.cmpn(R)>=0},a.prototype.gte=function(R){return this.cmp(R)>=0},a.prototype.ltn=function(R){return this.cmpn(R)===-1},a.prototype.lt=function(R){return this.cmp(R)===-1},a.prototype.lten=function(R){return this.cmpn(R)<=0},a.prototype.lte=function(R){return this.cmp(R)<=0},a.prototype.eqn=function(R){return this.cmpn(R)===0},a.prototype.eq=function(R){return this.cmp(R)===0},a.red=function(R){return new H(R)},a.prototype.toRed=function(R){return h(!this.red,"Already a number in reduction context"),h(this.negative===0,"red works only with positives"),R.convertTo(this)._forceRed(R)},a.prototype.fromRed=function(){return h(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(R){return this.red=R,this},a.prototype.forceRed=function(R){return h(!this.red,"Already a number in reduction context"),this._forceRed(R)},a.prototype.redAdd=function(R){return h(this.red,"redAdd works only with red numbers"),this.red.add(this,R)},a.prototype.redIAdd=function(R){return h(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,R)},a.prototype.redSub=function(R){return h(this.red,"redSub works only with red numbers"),this.red.sub(this,R)},a.prototype.redISub=function(R){return h(this.red,"redISub works only with red numbers"),this.red.isub(this,R)},a.prototype.redShl=function(R){return h(this.red,"redShl works only with red numbers"),this.red.shl(this,R)},a.prototype.redMul=function(R){return h(this.red,"redMul works only with red numbers"),this.red._verify2(this,R),this.red.mul(this,R)},a.prototype.redIMul=function(R){return h(this.red,"redMul works only with red numbers"),this.red._verify2(this,R),this.red.imul(this,R)},a.prototype.redSqr=function(){return h(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return h(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return h(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return h(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return h(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(R){return h(this.red&&!R.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,R)};var C={k256:null,p224:null,p192:null,p25519:null};function M(L,R){this.name=L,this.p=new a(R,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}M.prototype._tmp=function(){var R=new a(null);return R.words=new Array(Math.ceil(this.n/13)),R},M.prototype.ireduce=function(R){var F=R,_;do this.split(F,this.tmp),F=this.imulK(F),F=F.iadd(this.tmp),_=F.bitLength();while(_>this.n);var k=_<this.n?-1:F.ucmp(this.p);return k===0?(F.words[0]=0,F.length=1):k>0?F.isub(this.p):F.strip!==void 0?F.strip():F._strip(),F},M.prototype.split=function(R,F){R.iushrn(this.n,0,F)},M.prototype.imulK=function(R){return R.imul(this.k)};function I(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(I,M),I.prototype.split=function(R,F){for(var _=4194303,k=Math.min(R.length,9),N=0;N<k;N++)F.words[N]=R.words[N];if(F.length=k,R.length<=9){R.words[0]=0,R.length=1;return}var P=R.words[9];for(F.words[F.length++]=P&_,N=10;N<R.length;N++){var D=R.words[N]|0;R.words[N-10]=(D&_)<<4|P>>>22,P=D}P>>>=22,R.words[N-10]=P,P===0&&R.length>10?R.length-=10:R.length-=9},I.prototype.imulK=function(R){R.words[R.length]=0,R.words[R.length+1]=0,R.length+=2;for(var F=0,_=0;_<R.length;_++){var k=R.words[_]|0;F+=k*977,R.words[_]=F&67108863,F=k*64+(F/67108864|0)}return R.words[R.length-1]===0&&(R.length--,R.words[R.length-1]===0&&R.length--),R};function B(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(B,M);function U(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(U,M);function j(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(j,M),j.prototype.imulK=function(R){for(var F=0,_=0;_<R.length;_++){var k=(R.words[_]|0)*19+F,N=k&67108863;k>>>=26,R.words[_]=N,F=k}return F!==0&&(R.words[R.length++]=F),R},a._prime=function(R){if(C[R])return C[R];var F;if(R==="k256")F=new I;else if(R==="p224")F=new B;else if(R==="p192")F=new U;else if(R==="p25519")F=new j;else throw new Error("Unknown prime "+R);return C[R]=F,F};function H(L){if(typeof L=="string"){var R=a._prime(L);this.m=R.p,this.prime=R}else h(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}H.prototype._verify1=function(R){h(R.negative===0,"red works only with positives"),h(R.red,"red works only with red numbers")},H.prototype._verify2=function(R,F){h((R.negative|F.negative)===0,"red works only with positives"),h(R.red&&R.red===F.red,"red works only with red numbers")},H.prototype.imod=function(R){return this.prime?this.prime.ireduce(R)._forceRed(this):R.umod(this.m)._forceRed(this)},H.prototype.neg=function(R){return R.isZero()?R.clone():this.m.sub(R)._forceRed(this)},H.prototype.add=function(R,F){this._verify2(R,F);var _=R.add(F);return _.cmp(this.m)>=0&&_.isub(this.m),_._forceRed(this)},H.prototype.iadd=function(R,F){this._verify2(R,F);var _=R.iadd(F);return _.cmp(this.m)>=0&&_.isub(this.m),_},H.prototype.sub=function(R,F){this._verify2(R,F);var _=R.sub(F);return _.cmpn(0)<0&&_.iadd(this.m),_._forceRed(this)},H.prototype.isub=function(R,F){this._verify2(R,F);var _=R.isub(F);return _.cmpn(0)<0&&_.iadd(this.m),_},H.prototype.shl=function(R,F){return this._verify1(R),this.imod(R.ushln(F))},H.prototype.imul=function(R,F){return this._verify2(R,F),this.imod(R.imul(F))},H.prototype.mul=function(R,F){return this._verify2(R,F),this.imod(R.mul(F))},H.prototype.isqr=function(R){return this.imul(R,R.clone())},H.prototype.sqr=function(R){return this.mul(R,R)},H.prototype.sqrt=function(R){if(R.isZero())return R.clone();var F=this.m.andln(3);if(h(F%2===1),F===3){var _=this.m.add(new a(1)).iushrn(2);return this.pow(R,_)}for(var k=this.m.subn(1),N=0;!k.isZero()&&k.andln(1)===0;)N++,k.iushrn(1);h(!k.isZero());var P=new a(1).toRed(this),D=P.redNeg(),A=this.m.subn(1).iushrn(1),S=this.m.bitLength();for(S=new a(2*S*S).toRed(this);this.pow(S,A).cmp(D)!==0;)S.redIAdd(D);for(var E=this.pow(S,k),O=this.pow(R,k.addn(1).iushrn(1)),z=this.pow(R,k),J=N;z.cmp(P)!==0;){for(var re=z,se=0;re.cmp(P)!==0;se++)re=re.redSqr();h(se<J);var Ce=this.pow(E,new a(1).iushln(J-se-1));O=O.redMul(Ce),E=Ce.redSqr(),z=z.redMul(E),J=se}return O},H.prototype.invm=function(R){var F=R._invmp(this.m);return F.negative!==0?(F.negative=0,this.imod(F).redNeg()):this.imod(F)},H.prototype.pow=function(R,F){if(F.isZero())return new a(1).toRed(this);if(F.cmpn(1)===0)return R.clone();var _=4,k=new Array(1<<_);k[0]=new a(1).toRed(this),k[1]=R;for(var N=2;N<k.length;N++)k[N]=this.mul(k[N-1],R);var P=k[0],D=0,A=0,S=F.bitLength()%26;for(S===0&&(S=26),N=F.length-1;N>=0;N--){for(var E=F.words[N],O=S-1;O>=0;O--){var z=E>>O&1;if(P!==k[0]&&(P=this.sqr(P)),z===0&&D===0){A=0;continue}D<<=1,D|=z,A++,!(A!==_&&(N!==0||O!==0))&&(P=this.mul(P,k[D]),A=0,D=0)}S=26}return P},H.prototype.convertTo=function(R){var F=R.umod(this.m);return F===R?F.clone():F},H.prototype.convertFrom=function(R){var F=R.clone();return F.red=null,F},a.mont=function(R){return new G(R)};function G(L){H.call(this,L),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}c(G,H),G.prototype.convertTo=function(R){return this.imod(R.ushln(this.shift))},G.prototype.convertFrom=function(R){var F=this.imod(R.mul(this.rinv));return F.red=null,F},G.prototype.imul=function(R,F){if(R.isZero()||F.isZero())return R.words[0]=0,R.length=1,R;var _=R.imul(F),k=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=_.isub(k).iushrn(this.shift),P=N;return N.cmp(this.m)>=0?P=N.isub(this.m):N.cmpn(0)<0&&(P=N.iadd(this.m)),P._forceRed(this)},G.prototype.mul=function(R,F){if(R.isZero()||F.isZero())return new a(0)._forceRed(this);var _=R.mul(F),k=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=_.isub(k).iushrn(this.shift),P=N;return N.cmp(this.m)>=0?P=N.isub(this.m):N.cmpn(0)<0&&(P=N.iadd(this.m)),P._forceRed(this)},G.prototype.invm=function(R){var F=this.imod(R._invmp(this.m).mul(this.r2));return F._forceRed(this)}})(typeof n>"u"||n,void 0)},{buffer:188}],185:[function(e,n,i){i.byteLength=u,i.toByteArray=m,i.fromByteArray=x;for(var s=[],o=[],h=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,f=c.length;a<f;++a)s[a]=c[a],o[c.charCodeAt(a)]=a;o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63;function l(g){var b=g.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=g.indexOf("=");w===-1&&(w=b);var y=w===b?0:4-w%4;return[w,y]}function u(g){var b=l(g),w=b[0],y=b[1];return(w+y)*3/4-y}function p(g,b,w){return(b+w)*3/4-w}function m(g){var b,w=l(g),y=w[0],T=w[1],C=new h(p(g,y,T)),M=0,I=T>0?y-4:y,B;for(B=0;B<I;B+=4)b=o[g.charCodeAt(B)]<<18|o[g.charCodeAt(B+1)]<<12|o[g.charCodeAt(B+2)]<<6|o[g.charCodeAt(B+3)],C[M++]=b>>16&255,C[M++]=b>>8&255,C[M++]=b&255;return T===2&&(b=o[g.charCodeAt(B)]<<2|o[g.charCodeAt(B+1)]>>4,C[M++]=b&255),T===1&&(b=o[g.charCodeAt(B)]<<10|o[g.charCodeAt(B+1)]<<4|o[g.charCodeAt(B+2)]>>2,C[M++]=b>>8&255,C[M++]=b&255),C}function d(g){return s[g>>18&63]+s[g>>12&63]+s[g>>6&63]+s[g&63]}function v(g,b,w){for(var y,T=[],C=b;C<w;C+=3)y=(g[C]<<16&16711680)+(g[C+1]<<8&65280)+(g[C+2]&255),T.push(d(y));return T.join("")}function x(g){for(var b,w=g.length,y=w%3,T=[],C=16383,M=0,I=w-y;M<I;M+=C)T.push(v(g,M,M+C>I?I:M+C));return y===1?(b=g[w-1],T.push(s[b>>2]+s[b<<4&63]+"==")):y===2&&(b=(g[w-2]<<8)+g[w-1],T.push(s[b>>10]+s[b>>4&63]+s[b<<2&63]+"=")),T.join("")}},{}],186:[function(e,n,i){(function(s,o){function h(F,_){if(!F)throw new Error(_||"Assertion failed")}function c(F,_){F.super_=_;var k=function(){};k.prototype=_.prototype,F.prototype=new k,F.prototype.constructor=F}function a(F,_,k){if(a.isBN(F))return F;this.negative=0,this.words=null,this.length=0,this.red=null,F!==null&&((_==="le"||_==="be")&&(k=_,_=10),this._init(F||0,_||10,k||"be"))}typeof s=="object"?s.exports=a:o.BN=a,a.BN=a,a.wordSize=26;var f;try{typeof window<"u"&&typeof window.Buffer<"u"?f=window.Buffer:f=e("buffer").Buffer}catch{}a.isBN=function(_){return _ instanceof a?!0:_!==null&&typeof _=="object"&&_.constructor.wordSize===a.wordSize&&Array.isArray(_.words)},a.max=function(_,k){return _.cmp(k)>0?_:k},a.min=function(_,k){return _.cmp(k)<0?_:k},a.prototype._init=function(_,k,N){if(typeof _=="number")return this._initNumber(_,k,N);if(typeof _=="object")return this._initArray(_,k,N);k==="hex"&&(k=16),h(k===(k|0)&&k>=2&&k<=36),_=_.toString().replace(/\s+/g,"");var P=0;_[0]==="-"&&(P++,this.negative=1),P<_.length&&(k===16?this._parseHex(_,P,N):(this._parseBase(_,k,P),N==="le"&&this._initArray(this.toArray(),k,N)))},a.prototype._initNumber=function(_,k,N){_<0&&(this.negative=1,_=-_),_<67108864?(this.words=[_&67108863],this.length=1):_<4503599627370496?(this.words=[_&67108863,_/67108864&67108863],this.length=2):(h(_<9007199254740992),this.words=[_&67108863,_/67108864&67108863,1],this.length=3),N==="le"&&this._initArray(this.toArray(),k,N)},a.prototype._initArray=function(_,k,N){if(h(typeof _.length=="number"),_.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(_.length/3),this.words=new Array(this.length);for(var P=0;P<this.length;P++)this.words[P]=0;var D,A,S=0;if(N==="be")for(P=_.length-1,D=0;P>=0;P-=3)A=_[P]|_[P-1]<<8|_[P-2]<<16,this.words[D]|=A<<S&67108863,this.words[D+1]=A>>>26-S&67108863,S+=24,S>=26&&(S-=26,D++);else if(N==="le")for(P=0,D=0;P<_.length;P+=3)A=_[P]|_[P+1]<<8|_[P+2]<<16,this.words[D]|=A<<S&67108863,this.words[D+1]=A>>>26-S&67108863,S+=24,S>=26&&(S-=26,D++);return this._strip()};function l(F,_){var k=F.charCodeAt(_);if(k>=48&&k<=57)return k-48;if(k>=65&&k<=70)return k-55;if(k>=97&&k<=102)return k-87;h(!1,"Invalid character in "+F)}function u(F,_,k){var N=l(F,k);return k-1>=_&&(N|=l(F,k-1)<<4),N}a.prototype._parseHex=function(_,k,N){this.length=Math.ceil((_.length-k)/6),this.words=new Array(this.length);for(var P=0;P<this.length;P++)this.words[P]=0;var D=0,A=0,S;if(N==="be")for(P=_.length-1;P>=k;P-=2)S=u(_,k,P)<<D,this.words[A]|=S&67108863,D>=18?(D-=18,A+=1,this.words[A]|=S>>>26):D+=8;else{var E=_.length-k;for(P=E%2===0?k+1:k;P<_.length;P+=2)S=u(_,k,P)<<D,this.words[A]|=S&67108863,D>=18?(D-=18,A+=1,this.words[A]|=S>>>26):D+=8}this._strip()};function p(F,_,k,N){for(var P=0,D=0,A=Math.min(F.length,k),S=_;S<A;S++){var E=F.charCodeAt(S)-48;P*=N,E>=49?D=E-49+10:E>=17?D=E-17+10:D=E,h(E>=0&&D<N,"Invalid character"),P+=D}return P}a.prototype._parseBase=function(_,k,N){this.words=[0],this.length=1;for(var P=0,D=1;D<=67108863;D*=k)P++;P--,D=D/k|0;for(var A=_.length-N,S=A%P,E=Math.min(A,A-S)+N,O=0,z=N;z<E;z+=P)O=p(_,z,z+P,k),this.imuln(D),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O);if(S!==0){var J=1;for(O=p(_,z,_.length,k),z=0;z<S;z++)J*=k;this.imuln(J),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O)}this._strip()},a.prototype.copy=function(_){_.words=new Array(this.length);for(var k=0;k<this.length;k++)_.words[k]=this.words[k];_.length=this.length,_.negative=this.negative,_.red=this.red};function m(F,_){F.words=_.words,F.length=_.length,F.negative=_.negative,F.red=_.red}if(a.prototype._move=function(_){m(_,this)},a.prototype.clone=function(){var _=new a(null);return this.copy(_),_},a.prototype._expand=function(_){for(;this.length<_;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch{a.prototype.inspect=d}else a.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var v=["","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"],x=[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],g=[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];a.prototype.toString=function(_,k){_=_||10,k=k|0||1;var N;if(_===16||_==="hex"){N="";for(var P=0,D=0,A=0;A<this.length;A++){var S=this.words[A],E=((S<<P|D)&16777215).toString(16);D=S>>>24-P&16777215,P+=2,P>=26&&(P-=26,A--),D!==0||A!==this.length-1?N=v[6-E.length]+E+N:N=E+N}for(D!==0&&(N=D.toString(16)+N);N.length%k!==0;)N="0"+N;return this.negative!==0&&(N="-"+N),N}if(_===(_|0)&&_>=2&&_<=36){var O=x[_],z=g[_];N="";var J=this.clone();for(J.negative=0;!J.isZero();){var re=J.modrn(z).toString(_);J=J.idivn(z),J.isZero()?N=re+N:N=v[O-re.length]+re+N}for(this.isZero()&&(N="0"+N);N.length%k!==0;)N="0"+N;return this.negative!==0&&(N="-"+N),N}h(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var _=this.words[0];return this.length===2?_+=this.words[1]*67108864:this.length===3&&this.words[2]===1?_+=4503599627370496+this.words[1]*67108864:this.length>2&&h(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-_:_},a.prototype.toJSON=function(){return this.toString(16,2)},f&&(a.prototype.toBuffer=function(_,k){return this.toArrayLike(f,_,k)}),a.prototype.toArray=function(_,k){return this.toArrayLike(Array,_,k)};var b=function(_,k){return _.allocUnsafe?_.allocUnsafe(k):new _(k)};a.prototype.toArrayLike=function(_,k,N){this._strip();var P=this.byteLength(),D=N||Math.max(1,P);h(P<=D,"byte array longer than desired length"),h(D>0,"Requested array length <= 0");var A=b(_,D),S=k==="le"?"LE":"BE";return this["_toArrayLike"+S](A,P),A},a.prototype._toArrayLikeLE=function(_,k){for(var N=0,P=0,D=0,A=0;D<this.length;D++){var S=this.words[D]<<A|P;_[N++]=S&255,N<_.length&&(_[N++]=S>>8&255),N<_.length&&(_[N++]=S>>16&255),A===6?(N<_.length&&(_[N++]=S>>24&255),P=0,A=0):(P=S>>>24,A+=2)}if(N<_.length)for(_[N++]=P;N<_.length;)_[N++]=0},a.prototype._toArrayLikeBE=function(_,k){for(var N=_.length-1,P=0,D=0,A=0;D<this.length;D++){var S=this.words[D]<<A|P;_[N--]=S&255,N>=0&&(_[N--]=S>>8&255),N>=0&&(_[N--]=S>>16&255),A===6?(N>=0&&(_[N--]=S>>24&255),P=0,A=0):(P=S>>>24,A+=2)}if(N>=0)for(_[N--]=P;N>=0;)_[N--]=0},Math.clz32?a.prototype._countBits=function(_){return 32-Math.clz32(_)}:a.prototype._countBits=function(_){var k=_,N=0;return k>=4096&&(N+=13,k>>>=13),k>=64&&(N+=7,k>>>=7),k>=8&&(N+=4,k>>>=4),k>=2&&(N+=2,k>>>=2),N+k},a.prototype._zeroBits=function(_){if(_===0)return 26;var k=_,N=0;return k&8191||(N+=13,k>>>=13),k&127||(N+=7,k>>>=7),k&15||(N+=4,k>>>=4),k&3||(N+=2,k>>>=2),k&1||N++,N},a.prototype.bitLength=function(){var _=this.words[this.length-1],k=this._countBits(_);return(this.length-1)*26+k};function w(F){for(var _=new Array(F.bitLength()),k=0;k<_.length;k++){var N=k/26|0,P=k%26;_[k]=F.words[N]>>>P&1}return _}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var _=0,k=0;k<this.length;k++){var N=this._zeroBits(this.words[k]);if(_+=N,N!==26)break}return _},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(_){return this.negative!==0?this.abs().inotn(_).iaddn(1):this.clone()},a.prototype.fromTwos=function(_){return this.testn(_-1)?this.notn(_).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(_){for(;this.length<_.length;)this.words[this.length++]=0;for(var k=0;k<_.length;k++)this.words[k]=this.words[k]|_.words[k];return this._strip()},a.prototype.ior=function(_){return h((this.negative|_.negative)===0),this.iuor(_)},a.prototype.or=function(_){return this.length>_.length?this.clone().ior(_):_.clone().ior(this)},a.prototype.uor=function(_){return this.length>_.length?this.clone().iuor(_):_.clone().iuor(this)},a.prototype.iuand=function(_){var k;this.length>_.length?k=_:k=this;for(var N=0;N<k.length;N++)this.words[N]=this.words[N]&_.words[N];return this.length=k.length,this._strip()},a.prototype.iand=function(_){return h((this.negative|_.negative)===0),this.iuand(_)},a.prototype.and=function(_){return this.length>_.length?this.clone().iand(_):_.clone().iand(this)},a.prototype.uand=function(_){return this.length>_.length?this.clone().iuand(_):_.clone().iuand(this)},a.prototype.iuxor=function(_){var k,N;this.length>_.length?(k=this,N=_):(k=_,N=this);for(var P=0;P<N.length;P++)this.words[P]=k.words[P]^N.words[P];if(this!==k)for(;P<k.length;P++)this.words[P]=k.words[P];return this.length=k.length,this._strip()},a.prototype.ixor=function(_){return h((this.negative|_.negative)===0),this.iuxor(_)},a.prototype.xor=function(_){return this.length>_.length?this.clone().ixor(_):_.clone().ixor(this)},a.prototype.uxor=function(_){return this.length>_.length?this.clone().iuxor(_):_.clone().iuxor(this)},a.prototype.inotn=function(_){h(typeof _=="number"&&_>=0);var k=Math.ceil(_/26)|0,N=_%26;this._expand(k),N>0&&k--;for(var P=0;P<k;P++)this.words[P]=~this.words[P]&67108863;return N>0&&(this.words[P]=~this.words[P]&67108863>>26-N),this._strip()},a.prototype.notn=function(_){return this.clone().inotn(_)},a.prototype.setn=function(_,k){h(typeof _=="number"&&_>=0);var N=_/26|0,P=_%26;return this._expand(N+1),k?this.words[N]=this.words[N]|1<<P:this.words[N]=this.words[N]&~(1<<P),this._strip()},a.prototype.iadd=function(_){var k;if(this.negative!==0&&_.negative===0)return this.negative=0,k=this.isub(_),this.negative^=1,this._normSign();if(this.negative===0&&_.negative!==0)return _.negative=0,k=this.isub(_),_.negative=1,k._normSign();var N,P;this.length>_.length?(N=this,P=_):(N=_,P=this);for(var D=0,A=0;A<P.length;A++)k=(N.words[A]|0)+(P.words[A]|0)+D,this.words[A]=k&67108863,D=k>>>26;for(;D!==0&&A<N.length;A++)k=(N.words[A]|0)+D,this.words[A]=k&67108863,D=k>>>26;if(this.length=N.length,D!==0)this.words[this.length]=D,this.length++;else if(N!==this)for(;A<N.length;A++)this.words[A]=N.words[A];return this},a.prototype.add=function(_){var k;return _.negative!==0&&this.negative===0?(_.negative=0,k=this.sub(_),_.negative^=1,k):_.negative===0&&this.negative!==0?(this.negative=0,k=_.sub(this),this.negative=1,k):this.length>_.length?this.clone().iadd(_):_.clone().iadd(this)},a.prototype.isub=function(_){if(_.negative!==0){_.negative=0;var k=this.iadd(_);return _.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(_),this.negative=1,this._normSign();var N=this.cmp(_);if(N===0)return this.negative=0,this.length=1,this.words[0]=0,this;var P,D;N>0?(P=this,D=_):(P=_,D=this);for(var A=0,S=0;S<D.length;S++)k=(P.words[S]|0)-(D.words[S]|0)+A,A=k>>26,this.words[S]=k&67108863;for(;A!==0&&S<P.length;S++)k=(P.words[S]|0)+A,A=k>>26,this.words[S]=k&67108863;if(A===0&&S<P.length&&P!==this)for(;S<P.length;S++)this.words[S]=P.words[S];return this.length=Math.max(this.length,S),P!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(_){return this.clone().isub(_)};function y(F,_,k){k.negative=_.negative^F.negative;var N=F.length+_.length|0;k.length=N,N=N-1|0;var P=F.words[0]|0,D=_.words[0]|0,A=P*D,S=A&67108863,E=A/67108864|0;k.words[0]=S;for(var O=1;O<N;O++){for(var z=E>>>26,J=E&67108863,re=Math.min(O,_.length-1),se=Math.max(0,O-F.length+1);se<=re;se++){var Ce=O-se|0;P=F.words[Ce]|0,D=_.words[se]|0,A=P*D+J,z+=A/67108864|0,J=A&67108863}k.words[O]=J|0,E=z|0}return E!==0?k.words[O]=E|0:k.length--,k._strip()}var T=function(_,k,N){var P=_.words,D=k.words,A=N.words,S=0,E,O,z,J=P[0]|0,re=J&8191,se=J>>>13,Ce=P[1]|0,Y=Ce&8191,q=Ce>>>13,K=P[2]|0,Q=K&8191,he=K>>>13,we=P[3]|0,ae=we&8191,te=we>>>13,Z=P[4]|0,W=Z&8191,V=Z>>>13,fe=P[5]|0,ye=fe&8191,X=fe>>>13,ve=P[6]|0,ke=ve&8191,ee=ve>>>13,ne=P[7]|0,de=ne&8191,_e=ne>>>13,Re=P[8]|0,Ae=Re&8191,Ne=Re>>>13,Xe=P[9]|0,Le=Xe&8191,xe=Xe>>>13,Me=D[0]|0,Be=Me&8191,Ve=Me>>>13,ot=D[1]|0,ct=ot&8191,rt=ot>>>13,nt=D[2]|0,mt=nt&8191,et=nt>>>13,tt=D[3]|0,vt=tt&8191,ft=tt>>>13,kt=D[4]|0,Tt=kt&8191,lt=kt>>>13,Ct=D[5]|0,Mt=Ct&8191,gt=Ct>>>13,ie=D[6]|0,ge=ie&8191,le=ie>>>13,ue=D[7]|0,pe=ue&8191,me=ue>>>13,Ie=D[8]|0,je=Ie&8191,Fe=Ie>>>13,Pe=D[9]|0,Oe=Pe&8191,$e=Pe>>>13;N.negative=_.negative^k.negative,N.length=19,E=Math.imul(re,Be),O=Math.imul(re,Ve),O=O+Math.imul(se,Be)|0,z=Math.imul(se,Ve);var ce=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(ce>>>26)|0,ce&=67108863,E=Math.imul(Y,Be),O=Math.imul(Y,Ve),O=O+Math.imul(q,Be)|0,z=Math.imul(q,Ve),E=E+Math.imul(re,ct)|0,O=O+Math.imul(re,rt)|0,O=O+Math.imul(se,ct)|0,z=z+Math.imul(se,rt)|0;var Te=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(Te>>>26)|0,Te&=67108863,E=Math.imul(Q,Be),O=Math.imul(Q,Ve),O=O+Math.imul(he,Be)|0,z=Math.imul(he,Ve),E=E+Math.imul(Y,ct)|0,O=O+Math.imul(Y,rt)|0,O=O+Math.imul(q,ct)|0,z=z+Math.imul(q,rt)|0,E=E+Math.imul(re,mt)|0,O=O+Math.imul(re,et)|0,O=O+Math.imul(se,mt)|0,z=z+Math.imul(se,et)|0;var Ee=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,E=Math.imul(ae,Be),O=Math.imul(ae,Ve),O=O+Math.imul(te,Be)|0,z=Math.imul(te,Ve),E=E+Math.imul(Q,ct)|0,O=O+Math.imul(Q,rt)|0,O=O+Math.imul(he,ct)|0,z=z+Math.imul(he,rt)|0,E=E+Math.imul(Y,mt)|0,O=O+Math.imul(Y,et)|0,O=O+Math.imul(q,mt)|0,z=z+Math.imul(q,et)|0,E=E+Math.imul(re,vt)|0,O=O+Math.imul(re,ft)|0,O=O+Math.imul(se,vt)|0,z=z+Math.imul(se,ft)|0;var Ue=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,E=Math.imul(W,Be),O=Math.imul(W,Ve),O=O+Math.imul(V,Be)|0,z=Math.imul(V,Ve),E=E+Math.imul(ae,ct)|0,O=O+Math.imul(ae,rt)|0,O=O+Math.imul(te,ct)|0,z=z+Math.imul(te,rt)|0,E=E+Math.imul(Q,mt)|0,O=O+Math.imul(Q,et)|0,O=O+Math.imul(he,mt)|0,z=z+Math.imul(he,et)|0,E=E+Math.imul(Y,vt)|0,O=O+Math.imul(Y,ft)|0,O=O+Math.imul(q,vt)|0,z=z+Math.imul(q,ft)|0,E=E+Math.imul(re,Tt)|0,O=O+Math.imul(re,lt)|0,O=O+Math.imul(se,Tt)|0,z=z+Math.imul(se,lt)|0;var Ke=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(Ke>>>26)|0,Ke&=67108863,E=Math.imul(ye,Be),O=Math.imul(ye,Ve),O=O+Math.imul(X,Be)|0,z=Math.imul(X,Ve),E=E+Math.imul(W,ct)|0,O=O+Math.imul(W,rt)|0,O=O+Math.imul(V,ct)|0,z=z+Math.imul(V,rt)|0,E=E+Math.imul(ae,mt)|0,O=O+Math.imul(ae,et)|0,O=O+Math.imul(te,mt)|0,z=z+Math.imul(te,et)|0,E=E+Math.imul(Q,vt)|0,O=O+Math.imul(Q,ft)|0,O=O+Math.imul(he,vt)|0,z=z+Math.imul(he,ft)|0,E=E+Math.imul(Y,Tt)|0,O=O+Math.imul(Y,lt)|0,O=O+Math.imul(q,Tt)|0,z=z+Math.imul(q,lt)|0,E=E+Math.imul(re,Mt)|0,O=O+Math.imul(re,gt)|0,O=O+Math.imul(se,Mt)|0,z=z+Math.imul(se,gt)|0;var at=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(at>>>26)|0,at&=67108863,E=Math.imul(ke,Be),O=Math.imul(ke,Ve),O=O+Math.imul(ee,Be)|0,z=Math.imul(ee,Ve),E=E+Math.imul(ye,ct)|0,O=O+Math.imul(ye,rt)|0,O=O+Math.imul(X,ct)|0,z=z+Math.imul(X,rt)|0,E=E+Math.imul(W,mt)|0,O=O+Math.imul(W,et)|0,O=O+Math.imul(V,mt)|0,z=z+Math.imul(V,et)|0,E=E+Math.imul(ae,vt)|0,O=O+Math.imul(ae,ft)|0,O=O+Math.imul(te,vt)|0,z=z+Math.imul(te,ft)|0,E=E+Math.imul(Q,Tt)|0,O=O+Math.imul(Q,lt)|0,O=O+Math.imul(he,Tt)|0,z=z+Math.imul(he,lt)|0,E=E+Math.imul(Y,Mt)|0,O=O+Math.imul(Y,gt)|0,O=O+Math.imul(q,Mt)|0,z=z+Math.imul(q,gt)|0,E=E+Math.imul(re,ge)|0,O=O+Math.imul(re,le)|0,O=O+Math.imul(se,ge)|0,z=z+Math.imul(se,le)|0;var dt=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(dt>>>26)|0,dt&=67108863,E=Math.imul(de,Be),O=Math.imul(de,Ve),O=O+Math.imul(_e,Be)|0,z=Math.imul(_e,Ve),E=E+Math.imul(ke,ct)|0,O=O+Math.imul(ke,rt)|0,O=O+Math.imul(ee,ct)|0,z=z+Math.imul(ee,rt)|0,E=E+Math.imul(ye,mt)|0,O=O+Math.imul(ye,et)|0,O=O+Math.imul(X,mt)|0,z=z+Math.imul(X,et)|0,E=E+Math.imul(W,vt)|0,O=O+Math.imul(W,ft)|0,O=O+Math.imul(V,vt)|0,z=z+Math.imul(V,ft)|0,E=E+Math.imul(ae,Tt)|0,O=O+Math.imul(ae,lt)|0,O=O+Math.imul(te,Tt)|0,z=z+Math.imul(te,lt)|0,E=E+Math.imul(Q,Mt)|0,O=O+Math.imul(Q,gt)|0,O=O+Math.imul(he,Mt)|0,z=z+Math.imul(he,gt)|0,E=E+Math.imul(Y,ge)|0,O=O+Math.imul(Y,le)|0,O=O+Math.imul(q,ge)|0,z=z+Math.imul(q,le)|0,E=E+Math.imul(re,pe)|0,O=O+Math.imul(re,me)|0,O=O+Math.imul(se,pe)|0,z=z+Math.imul(se,me)|0;var Nt=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,E=Math.imul(Ae,Be),O=Math.imul(Ae,Ve),O=O+Math.imul(Ne,Be)|0,z=Math.imul(Ne,Ve),E=E+Math.imul(de,ct)|0,O=O+Math.imul(de,rt)|0,O=O+Math.imul(_e,ct)|0,z=z+Math.imul(_e,rt)|0,E=E+Math.imul(ke,mt)|0,O=O+Math.imul(ke,et)|0,O=O+Math.imul(ee,mt)|0,z=z+Math.imul(ee,et)|0,E=E+Math.imul(ye,vt)|0,O=O+Math.imul(ye,ft)|0,O=O+Math.imul(X,vt)|0,z=z+Math.imul(X,ft)|0,E=E+Math.imul(W,Tt)|0,O=O+Math.imul(W,lt)|0,O=O+Math.imul(V,Tt)|0,z=z+Math.imul(V,lt)|0,E=E+Math.imul(ae,Mt)|0,O=O+Math.imul(ae,gt)|0,O=O+Math.imul(te,Mt)|0,z=z+Math.imul(te,gt)|0,E=E+Math.imul(Q,ge)|0,O=O+Math.imul(Q,le)|0,O=O+Math.imul(he,ge)|0,z=z+Math.imul(he,le)|0,E=E+Math.imul(Y,pe)|0,O=O+Math.imul(Y,me)|0,O=O+Math.imul(q,pe)|0,z=z+Math.imul(q,me)|0,E=E+Math.imul(re,je)|0,O=O+Math.imul(re,Fe)|0,O=O+Math.imul(se,je)|0,z=z+Math.imul(se,Fe)|0;var pr=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(pr>>>26)|0,pr&=67108863,E=Math.imul(Le,Be),O=Math.imul(Le,Ve),O=O+Math.imul(xe,Be)|0,z=Math.imul(xe,Ve),E=E+Math.imul(Ae,ct)|0,O=O+Math.imul(Ae,rt)|0,O=O+Math.imul(Ne,ct)|0,z=z+Math.imul(Ne,rt)|0,E=E+Math.imul(de,mt)|0,O=O+Math.imul(de,et)|0,O=O+Math.imul(_e,mt)|0,z=z+Math.imul(_e,et)|0,E=E+Math.imul(ke,vt)|0,O=O+Math.imul(ke,ft)|0,O=O+Math.imul(ee,vt)|0,z=z+Math.imul(ee,ft)|0,E=E+Math.imul(ye,Tt)|0,O=O+Math.imul(ye,lt)|0,O=O+Math.imul(X,Tt)|0,z=z+Math.imul(X,lt)|0,E=E+Math.imul(W,Mt)|0,O=O+Math.imul(W,gt)|0,O=O+Math.imul(V,Mt)|0,z=z+Math.imul(V,gt)|0,E=E+Math.imul(ae,ge)|0,O=O+Math.imul(ae,le)|0,O=O+Math.imul(te,ge)|0,z=z+Math.imul(te,le)|0,E=E+Math.imul(Q,pe)|0,O=O+Math.imul(Q,me)|0,O=O+Math.imul(he,pe)|0,z=z+Math.imul(he,me)|0,E=E+Math.imul(Y,je)|0,O=O+Math.imul(Y,Fe)|0,O=O+Math.imul(q,je)|0,z=z+Math.imul(q,Fe)|0,E=E+Math.imul(re,Oe)|0,O=O+Math.imul(re,$e)|0,O=O+Math.imul(se,Oe)|0,z=z+Math.imul(se,$e)|0;var Jt=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,E=Math.imul(Le,ct),O=Math.imul(Le,rt),O=O+Math.imul(xe,ct)|0,z=Math.imul(xe,rt),E=E+Math.imul(Ae,mt)|0,O=O+Math.imul(Ae,et)|0,O=O+Math.imul(Ne,mt)|0,z=z+Math.imul(Ne,et)|0,E=E+Math.imul(de,vt)|0,O=O+Math.imul(de,ft)|0,O=O+Math.imul(_e,vt)|0,z=z+Math.imul(_e,ft)|0,E=E+Math.imul(ke,Tt)|0,O=O+Math.imul(ke,lt)|0,O=O+Math.imul(ee,Tt)|0,z=z+Math.imul(ee,lt)|0,E=E+Math.imul(ye,Mt)|0,O=O+Math.imul(ye,gt)|0,O=O+Math.imul(X,Mt)|0,z=z+Math.imul(X,gt)|0,E=E+Math.imul(W,ge)|0,O=O+Math.imul(W,le)|0,O=O+Math.imul(V,ge)|0,z=z+Math.imul(V,le)|0,E=E+Math.imul(ae,pe)|0,O=O+Math.imul(ae,me)|0,O=O+Math.imul(te,pe)|0,z=z+Math.imul(te,me)|0,E=E+Math.imul(Q,je)|0,O=O+Math.imul(Q,Fe)|0,O=O+Math.imul(he,je)|0,z=z+Math.imul(he,Fe)|0,E=E+Math.imul(Y,Oe)|0,O=O+Math.imul(Y,$e)|0,O=O+Math.imul(q,Oe)|0,z=z+Math.imul(q,$e)|0;var jt=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(jt>>>26)|0,jt&=67108863,E=Math.imul(Le,mt),O=Math.imul(Le,et),O=O+Math.imul(xe,mt)|0,z=Math.imul(xe,et),E=E+Math.imul(Ae,vt)|0,O=O+Math.imul(Ae,ft)|0,O=O+Math.imul(Ne,vt)|0,z=z+Math.imul(Ne,ft)|0,E=E+Math.imul(de,Tt)|0,O=O+Math.imul(de,lt)|0,O=O+Math.imul(_e,Tt)|0,z=z+Math.imul(_e,lt)|0,E=E+Math.imul(ke,Mt)|0,O=O+Math.imul(ke,gt)|0,O=O+Math.imul(ee,Mt)|0,z=z+Math.imul(ee,gt)|0,E=E+Math.imul(ye,ge)|0,O=O+Math.imul(ye,le)|0,O=O+Math.imul(X,ge)|0,z=z+Math.imul(X,le)|0,E=E+Math.imul(W,pe)|0,O=O+Math.imul(W,me)|0,O=O+Math.imul(V,pe)|0,z=z+Math.imul(V,me)|0,E=E+Math.imul(ae,je)|0,O=O+Math.imul(ae,Fe)|0,O=O+Math.imul(te,je)|0,z=z+Math.imul(te,Fe)|0,E=E+Math.imul(Q,Oe)|0,O=O+Math.imul(Q,$e)|0,O=O+Math.imul(he,Oe)|0,z=z+Math.imul(he,$e)|0;var mr=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(mr>>>26)|0,mr&=67108863,E=Math.imul(Le,vt),O=Math.imul(Le,ft),O=O+Math.imul(xe,vt)|0,z=Math.imul(xe,ft),E=E+Math.imul(Ae,Tt)|0,O=O+Math.imul(Ae,lt)|0,O=O+Math.imul(Ne,Tt)|0,z=z+Math.imul(Ne,lt)|0,E=E+Math.imul(de,Mt)|0,O=O+Math.imul(de,gt)|0,O=O+Math.imul(_e,Mt)|0,z=z+Math.imul(_e,gt)|0,E=E+Math.imul(ke,ge)|0,O=O+Math.imul(ke,le)|0,O=O+Math.imul(ee,ge)|0,z=z+Math.imul(ee,le)|0,E=E+Math.imul(ye,pe)|0,O=O+Math.imul(ye,me)|0,O=O+Math.imul(X,pe)|0,z=z+Math.imul(X,me)|0,E=E+Math.imul(W,je)|0,O=O+Math.imul(W,Fe)|0,O=O+Math.imul(V,je)|0,z=z+Math.imul(V,Fe)|0,E=E+Math.imul(ae,Oe)|0,O=O+Math.imul(ae,$e)|0,O=O+Math.imul(te,Oe)|0,z=z+Math.imul(te,$e)|0;var Ur=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,E=Math.imul(Le,Tt),O=Math.imul(Le,lt),O=O+Math.imul(xe,Tt)|0,z=Math.imul(xe,lt),E=E+Math.imul(Ae,Mt)|0,O=O+Math.imul(Ae,gt)|0,O=O+Math.imul(Ne,Mt)|0,z=z+Math.imul(Ne,gt)|0,E=E+Math.imul(de,ge)|0,O=O+Math.imul(de,le)|0,O=O+Math.imul(_e,ge)|0,z=z+Math.imul(_e,le)|0,E=E+Math.imul(ke,pe)|0,O=O+Math.imul(ke,me)|0,O=O+Math.imul(ee,pe)|0,z=z+Math.imul(ee,me)|0,E=E+Math.imul(ye,je)|0,O=O+Math.imul(ye,Fe)|0,O=O+Math.imul(X,je)|0,z=z+Math.imul(X,Fe)|0,E=E+Math.imul(W,Oe)|0,O=O+Math.imul(W,$e)|0,O=O+Math.imul(V,Oe)|0,z=z+Math.imul(V,$e)|0;var Ot=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,E=Math.imul(Le,Mt),O=Math.imul(Le,gt),O=O+Math.imul(xe,Mt)|0,z=Math.imul(xe,gt),E=E+Math.imul(Ae,ge)|0,O=O+Math.imul(Ae,le)|0,O=O+Math.imul(Ne,ge)|0,z=z+Math.imul(Ne,le)|0,E=E+Math.imul(de,pe)|0,O=O+Math.imul(de,me)|0,O=O+Math.imul(_e,pe)|0,z=z+Math.imul(_e,me)|0,E=E+Math.imul(ke,je)|0,O=O+Math.imul(ke,Fe)|0,O=O+Math.imul(ee,je)|0,z=z+Math.imul(ee,Fe)|0,E=E+Math.imul(ye,Oe)|0,O=O+Math.imul(ye,$e)|0,O=O+Math.imul(X,Oe)|0,z=z+Math.imul(X,$e)|0;var vn=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(vn>>>26)|0,vn&=67108863,E=Math.imul(Le,ge),O=Math.imul(Le,le),O=O+Math.imul(xe,ge)|0,z=Math.imul(xe,le),E=E+Math.imul(Ae,pe)|0,O=O+Math.imul(Ae,me)|0,O=O+Math.imul(Ne,pe)|0,z=z+Math.imul(Ne,me)|0,E=E+Math.imul(de,je)|0,O=O+Math.imul(de,Fe)|0,O=O+Math.imul(_e,je)|0,z=z+Math.imul(_e,Fe)|0,E=E+Math.imul(ke,Oe)|0,O=O+Math.imul(ke,$e)|0,O=O+Math.imul(ee,Oe)|0,z=z+Math.imul(ee,$e)|0;var xn=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(xn>>>26)|0,xn&=67108863,E=Math.imul(Le,pe),O=Math.imul(Le,me),O=O+Math.imul(xe,pe)|0,z=Math.imul(xe,me),E=E+Math.imul(Ae,je)|0,O=O+Math.imul(Ae,Fe)|0,O=O+Math.imul(Ne,je)|0,z=z+Math.imul(Ne,Fe)|0,E=E+Math.imul(de,Oe)|0,O=O+Math.imul(de,$e)|0,O=O+Math.imul(_e,Oe)|0,z=z+Math.imul(_e,$e)|0;var bn=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(bn>>>26)|0,bn&=67108863,E=Math.imul(Le,je),O=Math.imul(Le,Fe),O=O+Math.imul(xe,je)|0,z=Math.imul(xe,Fe),E=E+Math.imul(Ae,Oe)|0,O=O+Math.imul(Ae,$e)|0,O=O+Math.imul(Ne,Oe)|0,z=z+Math.imul(Ne,$e)|0;var yi=(S+E|0)+((O&8191)<<13)|0;S=(z+(O>>>13)|0)+(yi>>>26)|0,yi&=67108863,E=Math.imul(Le,Oe),O=Math.imul(Le,$e),O=O+Math.imul(xe,Oe)|0,z=Math.imul(xe,$e);var _i=(S+E|0)+((O&8191)<<13)|0;return S=(z+(O>>>13)|0)+(_i>>>26)|0,_i&=67108863,A[0]=ce,A[1]=Te,A[2]=Ee,A[3]=Ue,A[4]=Ke,A[5]=at,A[6]=dt,A[7]=Nt,A[8]=pr,A[9]=Jt,A[10]=jt,A[11]=mr,A[12]=Ur,A[13]=Ot,A[14]=vn,A[15]=xn,A[16]=bn,A[17]=yi,A[18]=_i,S!==0&&(A[19]=S,N.length++),N};Math.imul||(T=y);function C(F,_,k){k.negative=_.negative^F.negative,k.length=F.length+_.length;for(var N=0,P=0,D=0;D<k.length-1;D++){var A=P;P=0;for(var S=N&67108863,E=Math.min(D,_.length-1),O=Math.max(0,D-F.length+1);O<=E;O++){var z=D-O,J=F.words[z]|0,re=_.words[O]|0,se=J*re,Ce=se&67108863;A=A+(se/67108864|0)|0,Ce=Ce+S|0,S=Ce&67108863,A=A+(Ce>>>26)|0,P+=A>>>26,A&=67108863}k.words[D]=S,N=A,A=P}return N!==0?k.words[D]=N:k.length--,k._strip()}function M(F,_,k){return C(F,_,k)}a.prototype.mulTo=function(_,k){var N,P=this.length+_.length;return this.length===10&&_.length===10?N=T(this,_,k):P<63?N=y(this,_,k):P<1024?N=C(this,_,k):N=M(this,_,k),N},a.prototype.mul=function(_){var k=new a(null);return k.words=new Array(this.length+_.length),this.mulTo(_,k)},a.prototype.mulf=function(_){var k=new a(null);return k.words=new Array(this.length+_.length),M(this,_,k)},a.prototype.imul=function(_){return this.clone().mulTo(_,this)},a.prototype.imuln=function(_){var k=_<0;k&&(_=-_),h(typeof _=="number"),h(_<67108864);for(var N=0,P=0;P<this.length;P++){var D=(this.words[P]|0)*_,A=(D&67108863)+(N&67108863);N>>=26,N+=D/67108864|0,N+=A>>>26,this.words[P]=A&67108863}return N!==0&&(this.words[P]=N,this.length++),k?this.ineg():this},a.prototype.muln=function(_){return this.clone().imuln(_)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(_){var k=w(_);if(k.length===0)return new a(1);for(var N=this,P=0;P<k.length&&k[P]===0;P++,N=N.sqr());if(++P<k.length)for(var D=N.sqr();P<k.length;P++,D=D.sqr())k[P]!==0&&(N=N.mul(D));return N},a.prototype.iushln=function(_){h(typeof _=="number"&&_>=0);var k=_%26,N=(_-k)/26,P=67108863>>>26-k<<26-k,D;if(k!==0){var A=0;for(D=0;D<this.length;D++){var S=this.words[D]&P,E=(this.words[D]|0)-S<<k;this.words[D]=E|A,A=S>>>26-k}A&&(this.words[D]=A,this.length++)}if(N!==0){for(D=this.length-1;D>=0;D--)this.words[D+N]=this.words[D];for(D=0;D<N;D++)this.words[D]=0;this.length+=N}return this._strip()},a.prototype.ishln=function(_){return h(this.negative===0),this.iushln(_)},a.prototype.iushrn=function(_,k,N){h(typeof _=="number"&&_>=0);var P;k?P=(k-k%26)/26:P=0;var D=_%26,A=Math.min((_-D)/26,this.length),S=67108863^67108863>>>D<<D,E=N;if(P-=A,P=Math.max(0,P),E){for(var O=0;O<A;O++)E.words[O]=this.words[O];E.length=A}if(A!==0)if(this.length>A)for(this.length-=A,O=0;O<this.length;O++)this.words[O]=this.words[O+A];else this.words[0]=0,this.length=1;var z=0;for(O=this.length-1;O>=0&&(z!==0||O>=P);O--){var J=this.words[O]|0;this.words[O]=z<<26-D|J>>>D,z=J&S}return E&&z!==0&&(E.words[E.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(_,k,N){return h(this.negative===0),this.iushrn(_,k,N)},a.prototype.shln=function(_){return this.clone().ishln(_)},a.prototype.ushln=function(_){return this.clone().iushln(_)},a.prototype.shrn=function(_){return this.clone().ishrn(_)},a.prototype.ushrn=function(_){return this.clone().iushrn(_)},a.prototype.testn=function(_){h(typeof _=="number"&&_>=0);var k=_%26,N=(_-k)/26,P=1<<k;if(this.length<=N)return!1;var D=this.words[N];return!!(D&P)},a.prototype.imaskn=function(_){h(typeof _=="number"&&_>=0);var k=_%26,N=(_-k)/26;if(h(this.negative===0,"imaskn works only with positive numbers"),this.length<=N)return this;if(k!==0&&N++,this.length=Math.min(N,this.length),k!==0){var P=67108863^67108863>>>k<<k;this.words[this.length-1]&=P}return this._strip()},a.prototype.maskn=function(_){return this.clone().imaskn(_)},a.prototype.iaddn=function(_){return h(typeof _=="number"),h(_<67108864),_<0?this.isubn(-_):this.negative!==0?this.length===1&&(this.words[0]|0)<=_?(this.words[0]=_-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(_),this.negative=1,this):this._iaddn(_)},a.prototype._iaddn=function(_){this.words[0]+=_;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},a.prototype.isubn=function(_){if(h(typeof _=="number"),h(_<67108864),_<0)return this.iaddn(-_);if(this.negative!==0)return this.negative=0,this.iaddn(_),this.negative=1,this;if(this.words[0]-=_,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this._strip()},a.prototype.addn=function(_){return this.clone().iaddn(_)},a.prototype.subn=function(_){return this.clone().isubn(_)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(_,k,N){var P=_.length+N,D;this._expand(P);var A,S=0;for(D=0;D<_.length;D++){A=(this.words[D+N]|0)+S;var E=(_.words[D]|0)*k;A-=E&67108863,S=(A>>26)-(E/67108864|0),this.words[D+N]=A&67108863}for(;D<this.length-N;D++)A=(this.words[D+N]|0)+S,S=A>>26,this.words[D+N]=A&67108863;if(S===0)return this._strip();for(h(S===-1),S=0,D=0;D<this.length;D++)A=-(this.words[D]|0)+S,S=A>>26,this.words[D]=A&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(_,k){var N=this.length-_.length,P=this.clone(),D=_,A=D.words[D.length-1]|0,S=this._countBits(A);N=26-S,N!==0&&(D=D.ushln(N),P.iushln(N),A=D.words[D.length-1]|0);var E=P.length-D.length,O;if(k!=="mod"){O=new a(null),O.length=E+1,O.words=new Array(O.length);for(var z=0;z<O.length;z++)O.words[z]=0}var J=P.clone()._ishlnsubmul(D,1,E);J.negative===0&&(P=J,O&&(O.words[E]=1));for(var re=E-1;re>=0;re--){var se=(P.words[D.length+re]|0)*67108864+(P.words[D.length+re-1]|0);for(se=Math.min(se/A|0,67108863),P._ishlnsubmul(D,se,re);P.negative!==0;)se--,P.negative=0,P._ishlnsubmul(D,1,re),P.isZero()||(P.negative^=1);O&&(O.words[re]=se)}return O&&O._strip(),P._strip(),k!=="div"&&N!==0&&P.iushrn(N),{div:O||null,mod:P}},a.prototype.divmod=function(_,k,N){if(h(!_.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var P,D,A;return this.negative!==0&&_.negative===0?(A=this.neg().divmod(_,k),k!=="mod"&&(P=A.div.neg()),k!=="div"&&(D=A.mod.neg(),N&&D.negative!==0&&D.iadd(_)),{div:P,mod:D}):this.negative===0&&_.negative!==0?(A=this.divmod(_.neg(),k),k!=="mod"&&(P=A.div.neg()),{div:P,mod:A.mod}):this.negative&_.negative?(A=this.neg().divmod(_.neg(),k),k!=="div"&&(D=A.mod.neg(),N&&D.negative!==0&&D.isub(_)),{div:A.div,mod:D}):_.length>this.length||this.cmp(_)<0?{div:new a(0),mod:this}:_.length===1?k==="div"?{div:this.divn(_.words[0]),mod:null}:k==="mod"?{div:null,mod:new a(this.modrn(_.words[0]))}:{div:this.divn(_.words[0]),mod:new a(this.modrn(_.words[0]))}:this._wordDiv(_,k)},a.prototype.div=function(_){return this.divmod(_,"div",!1).div},a.prototype.mod=function(_){return this.divmod(_,"mod",!1).mod},a.prototype.umod=function(_){return this.divmod(_,"mod",!0).mod},a.prototype.divRound=function(_){var k=this.divmod(_);if(k.mod.isZero())return k.div;var N=k.div.negative!==0?k.mod.isub(_):k.mod,P=_.ushrn(1),D=_.andln(1),A=N.cmp(P);return A<0||D===1&&A===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},a.prototype.modrn=function(_){var k=_<0;k&&(_=-_),h(_<=67108863);for(var N=(1<<26)%_,P=0,D=this.length-1;D>=0;D--)P=(N*P+(this.words[D]|0))%_;return k?-P:P},a.prototype.modn=function(_){return this.modrn(_)},a.prototype.idivn=function(_){var k=_<0;k&&(_=-_),h(_<=67108863);for(var N=0,P=this.length-1;P>=0;P--){var D=(this.words[P]|0)+N*67108864;this.words[P]=D/_|0,N=D%_}return this._strip(),k?this.ineg():this},a.prototype.divn=function(_){return this.clone().idivn(_)},a.prototype.egcd=function(_){h(_.negative===0),h(!_.isZero());var k=this,N=_.clone();k.negative!==0?k=k.umod(_):k=k.clone();for(var P=new a(1),D=new a(0),A=new a(0),S=new a(1),E=0;k.isEven()&&N.isEven();)k.iushrn(1),N.iushrn(1),++E;for(var O=N.clone(),z=k.clone();!k.isZero();){for(var J=0,re=1;!(k.words[0]&re)&&J<26;++J,re<<=1);if(J>0)for(k.iushrn(J);J-- >0;)(P.isOdd()||D.isOdd())&&(P.iadd(O),D.isub(z)),P.iushrn(1),D.iushrn(1);for(var se=0,Ce=1;!(N.words[0]&Ce)&&se<26;++se,Ce<<=1);if(se>0)for(N.iushrn(se);se-- >0;)(A.isOdd()||S.isOdd())&&(A.iadd(O),S.isub(z)),A.iushrn(1),S.iushrn(1);k.cmp(N)>=0?(k.isub(N),P.isub(A),D.isub(S)):(N.isub(k),A.isub(P),S.isub(D))}return{a:A,b:S,gcd:N.iushln(E)}},a.prototype._invmp=function(_){h(_.negative===0),h(!_.isZero());var k=this,N=_.clone();k.negative!==0?k=k.umod(_):k=k.clone();for(var P=new a(1),D=new a(0),A=N.clone();k.cmpn(1)>0&&N.cmpn(1)>0;){for(var S=0,E=1;!(k.words[0]&E)&&S<26;++S,E<<=1);if(S>0)for(k.iushrn(S);S-- >0;)P.isOdd()&&P.iadd(A),P.iushrn(1);for(var O=0,z=1;!(N.words[0]&z)&&O<26;++O,z<<=1);if(O>0)for(N.iushrn(O);O-- >0;)D.isOdd()&&D.iadd(A),D.iushrn(1);k.cmp(N)>=0?(k.isub(N),P.isub(D)):(N.isub(k),D.isub(P))}var J;return k.cmpn(1)===0?J=P:J=D,J.cmpn(0)<0&&J.iadd(_),J},a.prototype.gcd=function(_){if(this.isZero())return _.abs();if(_.isZero())return this.abs();var k=this.clone(),N=_.clone();k.negative=0,N.negative=0;for(var P=0;k.isEven()&&N.isEven();P++)k.iushrn(1),N.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;N.isEven();)N.iushrn(1);var D=k.cmp(N);if(D<0){var A=k;k=N,N=A}else if(D===0||N.cmpn(1)===0)break;k.isub(N)}while(!0);return N.iushln(P)},a.prototype.invm=function(_){return this.egcd(_).a.umod(_)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(_){return this.words[0]&_},a.prototype.bincn=function(_){h(typeof _=="number");var k=_%26,N=(_-k)/26,P=1<<k;if(this.length<=N)return this._expand(N+1),this.words[N]|=P,this;for(var D=P,A=N;D!==0&&A<this.length;A++){var S=this.words[A]|0;S+=D,D=S>>>26,S&=67108863,this.words[A]=S}return D!==0&&(this.words[A]=D,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(_){var k=_<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this._strip();var N;if(this.length>1)N=1;else{k&&(_=-_),h(_<=67108863,"Number is too big");var P=this.words[0]|0;N=P===_?0:P<_?-1:1}return this.negative!==0?-N|0:N},a.prototype.cmp=function(_){if(this.negative!==0&&_.negative===0)return-1;if(this.negative===0&&_.negative!==0)return 1;var k=this.ucmp(_);return this.negative!==0?-k|0:k},a.prototype.ucmp=function(_){if(this.length>_.length)return 1;if(this.length<_.length)return-1;for(var k=0,N=this.length-1;N>=0;N--){var P=this.words[N]|0,D=_.words[N]|0;if(P!==D){P<D?k=-1:P>D&&(k=1);break}}return k},a.prototype.gtn=function(_){return this.cmpn(_)===1},a.prototype.gt=function(_){return this.cmp(_)===1},a.prototype.gten=function(_){return this.cmpn(_)>=0},a.prototype.gte=function(_){return this.cmp(_)>=0},a.prototype.ltn=function(_){return this.cmpn(_)===-1},a.prototype.lt=function(_){return this.cmp(_)===-1},a.prototype.lten=function(_){return this.cmpn(_)<=0},a.prototype.lte=function(_){return this.cmp(_)<=0},a.prototype.eqn=function(_){return this.cmpn(_)===0},a.prototype.eq=function(_){return this.cmp(_)===0},a.red=function(_){return new L(_)},a.prototype.toRed=function(_){return h(!this.red,"Already a number in reduction context"),h(this.negative===0,"red works only with positives"),_.convertTo(this)._forceRed(_)},a.prototype.fromRed=function(){return h(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(_){return this.red=_,this},a.prototype.forceRed=function(_){return h(!this.red,"Already a number in reduction context"),this._forceRed(_)},a.prototype.redAdd=function(_){return h(this.red,"redAdd works only with red numbers"),this.red.add(this,_)},a.prototype.redIAdd=function(_){return h(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,_)},a.prototype.redSub=function(_){return h(this.red,"redSub works only with red numbers"),this.red.sub(this,_)},a.prototype.redISub=function(_){return h(this.red,"redISub works only with red numbers"),this.red.isub(this,_)},a.prototype.redShl=function(_){return h(this.red,"redShl works only with red numbers"),this.red.shl(this,_)},a.prototype.redMul=function(_){return h(this.red,"redMul works only with red numbers"),this.red._verify2(this,_),this.red.mul(this,_)},a.prototype.redIMul=function(_){return h(this.red,"redMul works only with red numbers"),this.red._verify2(this,_),this.red.imul(this,_)},a.prototype.redSqr=function(){return h(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return h(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return h(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return h(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return h(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(_){return h(this.red&&!_.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,_)};var I={k256:null,p224:null,p192:null,p25519:null};function B(F,_){this.name=F,this.p=new a(_,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}B.prototype._tmp=function(){var _=new a(null);return _.words=new Array(Math.ceil(this.n/13)),_},B.prototype.ireduce=function(_){var k=_,N;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),N=k.bitLength();while(N>this.n);var P=N<this.n?-1:k.ucmp(this.p);return P===0?(k.words[0]=0,k.length=1):P>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},B.prototype.split=function(_,k){_.iushrn(this.n,0,k)},B.prototype.imulK=function(_){return _.imul(this.k)};function U(){B.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(U,B),U.prototype.split=function(_,k){for(var N=4194303,P=Math.min(_.length,9),D=0;D<P;D++)k.words[D]=_.words[D];if(k.length=P,_.length<=9){_.words[0]=0,_.length=1;return}var A=_.words[9];for(k.words[k.length++]=A&N,D=10;D<_.length;D++){var S=_.words[D]|0;_.words[D-10]=(S&N)<<4|A>>>22,A=S}A>>>=22,_.words[D-10]=A,A===0&&_.length>10?_.length-=10:_.length-=9},U.prototype.imulK=function(_){_.words[_.length]=0,_.words[_.length+1]=0,_.length+=2;for(var k=0,N=0;N<_.length;N++){var P=_.words[N]|0;k+=P*977,_.words[N]=k&67108863,k=P*64+(k/67108864|0)}return _.words[_.length-1]===0&&(_.length--,_.words[_.length-1]===0&&_.length--),_};function j(){B.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(j,B);function H(){B.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(H,B);function G(){B.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(G,B),G.prototype.imulK=function(_){for(var k=0,N=0;N<_.length;N++){var P=(_.words[N]|0)*19+k,D=P&67108863;P>>>=26,_.words[N]=D,k=P}return k!==0&&(_.words[_.length++]=k),_},a._prime=function(_){if(I[_])return I[_];var k;if(_==="k256")k=new U;else if(_==="p224")k=new j;else if(_==="p192")k=new H;else if(_==="p25519")k=new G;else throw new Error("Unknown prime "+_);return I[_]=k,k};function L(F){if(typeof F=="string"){var _=a._prime(F);this.m=_.p,this.prime=_}else h(F.gtn(1),"modulus must be greater than 1"),this.m=F,this.prime=null}L.prototype._verify1=function(_){h(_.negative===0,"red works only with positives"),h(_.red,"red works only with red numbers")},L.prototype._verify2=function(_,k){h((_.negative|k.negative)===0,"red works only with positives"),h(_.red&&_.red===k.red,"red works only with red numbers")},L.prototype.imod=function(_){return this.prime?this.prime.ireduce(_)._forceRed(this):(m(_,_.umod(this.m)._forceRed(this)),_)},L.prototype.neg=function(_){return _.isZero()?_.clone():this.m.sub(_)._forceRed(this)},L.prototype.add=function(_,k){this._verify2(_,k);var N=_.add(k);return N.cmp(this.m)>=0&&N.isub(this.m),N._forceRed(this)},L.prototype.iadd=function(_,k){this._verify2(_,k);var N=_.iadd(k);return N.cmp(this.m)>=0&&N.isub(this.m),N},L.prototype.sub=function(_,k){this._verify2(_,k);var N=_.sub(k);return N.cmpn(0)<0&&N.iadd(this.m),N._forceRed(this)},L.prototype.isub=function(_,k){this._verify2(_,k);var N=_.isub(k);return N.cmpn(0)<0&&N.iadd(this.m),N},L.prototype.shl=function(_,k){return this._verify1(_),this.imod(_.ushln(k))},L.prototype.imul=function(_,k){return this._verify2(_,k),this.imod(_.imul(k))},L.prototype.mul=function(_,k){return this._verify2(_,k),this.imod(_.mul(k))},L.prototype.isqr=function(_){return this.imul(_,_.clone())},L.prototype.sqr=function(_){return this.mul(_,_)},L.prototype.sqrt=function(_){if(_.isZero())return _.clone();var k=this.m.andln(3);if(h(k%2===1),k===3){var N=this.m.add(new a(1)).iushrn(2);return this.pow(_,N)}for(var P=this.m.subn(1),D=0;!P.isZero()&&P.andln(1)===0;)D++,P.iushrn(1);h(!P.isZero());var A=new a(1).toRed(this),S=A.redNeg(),E=this.m.subn(1).iushrn(1),O=this.m.bitLength();for(O=new a(2*O*O).toRed(this);this.pow(O,E).cmp(S)!==0;)O.redIAdd(S);for(var z=this.pow(O,P),J=this.pow(_,P.addn(1).iushrn(1)),re=this.pow(_,P),se=D;re.cmp(A)!==0;){for(var Ce=re,Y=0;Ce.cmp(A)!==0;Y++)Ce=Ce.redSqr();h(Y<se);var q=this.pow(z,new a(1).iushln(se-Y-1));J=J.redMul(q),z=q.redSqr(),re=re.redMul(z),se=Y}return J},L.prototype.invm=function(_){var k=_._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},L.prototype.pow=function(_,k){if(k.isZero())return new a(1).toRed(this);if(k.cmpn(1)===0)return _.clone();var N=4,P=new Array(1<<N);P[0]=new a(1).toRed(this),P[1]=_;for(var D=2;D<P.length;D++)P[D]=this.mul(P[D-1],_);var A=P[0],S=0,E=0,O=k.bitLength()%26;for(O===0&&(O=26),D=k.length-1;D>=0;D--){for(var z=k.words[D],J=O-1;J>=0;J--){var re=z>>J&1;if(A!==P[0]&&(A=this.sqr(A)),re===0&&S===0){E=0;continue}S<<=1,S|=re,E++,!(E!==N&&(D!==0||J!==0))&&(A=this.mul(A,P[S]),E=0,S=0)}O=26}return A},L.prototype.convertTo=function(_){var k=_.umod(this.m);return k===_?k.clone():k},L.prototype.convertFrom=function(_){var k=_.clone();return k.red=null,k},a.mont=function(_){return new R(_)};function R(F){L.call(this,F),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}c(R,L),R.prototype.convertTo=function(_){return this.imod(_.ushln(this.shift))},R.prototype.convertFrom=function(_){var k=this.imod(_.mul(this.rinv));return k.red=null,k},R.prototype.imul=function(_,k){if(_.isZero()||k.isZero())return _.words[0]=0,_.length=1,_;var N=_.imul(k),P=N.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D=N.isub(P).iushrn(this.shift),A=D;return D.cmp(this.m)>=0?A=D.isub(this.m):D.cmpn(0)<0&&(A=D.iadd(this.m)),A._forceRed(this)},R.prototype.mul=function(_,k){if(_.isZero()||k.isZero())return new a(0)._forceRed(this);var N=_.mul(k),P=N.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),D=N.isub(P).iushrn(this.shift),A=D;return D.cmp(this.m)>=0?A=D.isub(this.m):D.cmpn(0)<0&&(A=D.iadd(this.m)),A._forceRed(this)},R.prototype.invm=function(_){var k=this.imod(_._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof n>"u"||n,void 0)},{buffer:188}],187:[function(e,n,i){var s;n.exports=function(a){return s||(s=new o(null)),s.generate(a)};function o(c){this.rand=c}if(n.exports.Rand=o,o.prototype.generate=function(a){return this._rand(a)},o.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var f=new Uint8Array(a),l=0;l<f.length;l++)f[l]=this.rand.getByte();return f},typeof self=="object")self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(a){var f=new Uint8Array(a);return self.crypto.getRandomValues(f),f}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(a){var f=new Uint8Array(a);return self.msCrypto.getRandomValues(f),f}:typeof window=="object"&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var h=e("crypto");if(typeof h.randomBytes!="function")throw new Error("Not supported");o.prototype._rand=function(a){return h.randomBytes(a)}}catch{}},{crypto:188}],188:[function(e,n,i){},{}],189:[function(e,n,i){var s=e("safe-buffer").Buffer;function o(u){s.isBuffer(u)||(u=s.from(u));for(var p=u.length/4|0,m=new Array(p),d=0;d<p;d++)m[d]=u.readUInt32BE(d*4);return m}function h(u){for(var p=0;p<u.length;u++)u[p]=0}function c(u,p,m,d,v){for(var x=m[0],g=m[1],b=m[2],w=m[3],y=u[0]^p[0],T=u[1]^p[1],C=u[2]^p[2],M=u[3]^p[3],I,B,U,j,H=4,G=1;G<v;G++)I=x[y>>>24]^g[T>>>16&255]^b[C>>>8&255]^w[M&255]^p[H++],B=x[T>>>24]^g[C>>>16&255]^b[M>>>8&255]^w[y&255]^p[H++],U=x[C>>>24]^g[M>>>16&255]^b[y>>>8&255]^w[T&255]^p[H++],j=x[M>>>24]^g[y>>>16&255]^b[T>>>8&255]^w[C&255]^p[H++],y=I,T=B,C=U,M=j;return I=(d[y>>>24]<<24|d[T>>>16&255]<<16|d[C>>>8&255]<<8|d[M&255])^p[H++],B=(d[T>>>24]<<24|d[C>>>16&255]<<16|d[M>>>8&255]<<8|d[y&255])^p[H++],U=(d[C>>>24]<<24|d[M>>>16&255]<<16|d[y>>>8&255]<<8|d[T&255])^p[H++],j=(d[M>>>24]<<24|d[y>>>16&255]<<16|d[T>>>8&255]<<8|d[C&255])^p[H++],I=I>>>0,B=B>>>0,U=U>>>0,j=j>>>0,[I,B,U,j]}var a=[0,1,2,4,8,16,32,64,128,27,54],f=function(){for(var u=new Array(256),p=0;p<256;p++)p<128?u[p]=p<<1:u[p]=p<<1^283;for(var m=[],d=[],v=[[],[],[],[]],x=[[],[],[],[]],g=0,b=0,w=0;w<256;++w){var y=b^b<<1^b<<2^b<<3^b<<4;y=y>>>8^y&255^99,m[g]=y,d[y]=g;var T=u[g],C=u[T],M=u[C],I=u[y]*257^y*16843008;v[0][g]=I<<24|I>>>8,v[1][g]=I<<16|I>>>16,v[2][g]=I<<8|I>>>24,v[3][g]=I,I=M*16843009^C*65537^T*257^g*16843008,x[0][y]=I<<24|I>>>8,x[1][y]=I<<16|I>>>16,x[2][y]=I<<8|I>>>24,x[3][y]=I,g===0?g=b=1:(g=T^u[u[u[M^T]]],b^=u[u[b]])}return{SBOX:m,INV_SBOX:d,SUB_MIX:v,INV_SUB_MIX:x}}();function l(u){this._key=o(u),this._reset()}l.blockSize=4*4,l.keySize=256/8,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var u=this._key,p=u.length,m=p+6,d=(m+1)*4,v=[],x=0;x<p;x++)v[x]=u[x];for(x=p;x<d;x++){var g=v[x-1];x%p===0?(g=g<<8|g>>>24,g=f.SBOX[g>>>24]<<24|f.SBOX[g>>>16&255]<<16|f.SBOX[g>>>8&255]<<8|f.SBOX[g&255],g^=a[x/p|0]<<24):p>6&&x%p===4&&(g=f.SBOX[g>>>24]<<24|f.SBOX[g>>>16&255]<<16|f.SBOX[g>>>8&255]<<8|f.SBOX[g&255]),v[x]=v[x-p]^g}for(var b=[],w=0;w<d;w++){var y=d-w,T=v[y-(w%4?0:4)];w<4||y<=4?b[w]=T:b[w]=f.INV_SUB_MIX[0][f.SBOX[T>>>24]]^f.INV_SUB_MIX[1][f.SBOX[T>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[T>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[T&255]]}this._nRounds=m,this._keySchedule=v,this._invKeySchedule=b},l.prototype.encryptBlockRaw=function(u){return u=o(u),c(u,this._keySchedule,f.SUB_MIX,f.SBOX,this._nRounds)},l.prototype.encryptBlock=function(u){var p=this.encryptBlockRaw(u),m=s.allocUnsafe(16);return m.writeUInt32BE(p[0],0),m.writeUInt32BE(p[1],4),m.writeUInt32BE(p[2],8),m.writeUInt32BE(p[3],12),m},l.prototype.decryptBlock=function(u){u=o(u);var p=u[1];u[1]=u[3],u[3]=p;var m=c(u,this._invKeySchedule,f.INV_SUB_MIX,f.INV_SBOX,this._nRounds),d=s.allocUnsafe(16);return d.writeUInt32BE(m[0],0),d.writeUInt32BE(m[3],4),d.writeUInt32BE(m[2],8),d.writeUInt32BE(m[1],12),d},l.prototype.scrub=function(){h(this._keySchedule),h(this._invKeySchedule),h(this._key)},n.exports.AES=l},{"safe-buffer":494}],190:[function(e,n,i){var s=e("./aes"),o=e("safe-buffer").Buffer,h=e("cipher-base"),c=e("inherits"),a=e("./ghash"),f=e("buffer-xor"),l=e("./incr32");function u(d,v){var x=0;d.length!==v.length&&x++;for(var g=Math.min(d.length,v.length),b=0;b<g;++b)x+=d[b]^v[b];return x}function p(d,v,x){if(v.length===12)return d._finID=o.concat([v,o.from([0,0,0,1])]),o.concat([v,o.from([0,0,0,2])]);var g=new a(x),b=v.length,w=b%16;g.update(v),w&&(w=16-w,g.update(o.alloc(w,0))),g.update(o.alloc(8,0));var y=b*8,T=o.alloc(8);T.writeUIntBE(y,0,8),g.update(T),d._finID=g.state;var C=o.from(d._finID);return l(C),C}function m(d,v,x,g){h.call(this);var b=o.alloc(4,0);this._cipher=new s.AES(v);var w=this._cipher.encryptBlock(b);this._ghash=new a(w),x=p(this,x,w),this._prev=o.from(x),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=g,this._alen=0,this._len=0,this._mode=d,this._authTag=null,this._called=!1}c(m,h),m.prototype._update=function(d){if(!this._called&&this._alen){var v=16-this._alen%16;v<16&&(v=o.alloc(v,0),this._ghash.update(v))}this._called=!0;var x=this._mode.encrypt(this,d);return this._decrypt?this._ghash.update(d):this._ghash.update(x),this._len+=d.length,x},m.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var d=f(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&u(d,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=d,this._cipher.scrub()},m.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},m.prototype.setAuthTag=function(v){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=v},m.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},n.exports=m},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,n,i){var s=e("./encrypter"),o=e("./decrypter"),h=e("./modes/list.json");function c(){return Object.keys(h)}i.createCipher=i.Cipher=s.createCipher,i.createCipheriv=i.Cipheriv=s.createCipheriv,i.createDecipher=i.Decipher=o.createDecipher,i.createDecipheriv=i.Decipheriv=o.createDecipheriv,i.listCiphers=i.getCiphers=c},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,n,i){var s=e("./authCipher"),o=e("safe-buffer").Buffer,h=e("./modes"),c=e("./streamCipher"),a=e("cipher-base"),f=e("./aes"),l=e("evp_bytestokey"),u=e("inherits");function p(g,b,w){a.call(this),this._cache=new m,this._last=void 0,this._cipher=new f.AES(b),this._prev=o.from(w),this._mode=g,this._autopadding=!0}u(p,a),p.prototype._update=function(g){this._cache.add(g);for(var b,w,y=[];b=this._cache.get(this._autopadding);)w=this._mode.decrypt(this,b),y.push(w);return o.concat(y)},p.prototype._final=function(){var g=this._cache.flush();if(this._autopadding)return d(this._mode.decrypt(this,g));if(g)throw new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(g){return this._autopadding=!!g,this};function m(){this.cache=o.allocUnsafe(0)}m.prototype.add=function(g){this.cache=o.concat([this.cache,g])},m.prototype.get=function(g){var b;if(g){if(this.cache.length>16)return b=this.cache.slice(0,16),this.cache=this.cache.slice(16),b}else if(this.cache.length>=16)return b=this.cache.slice(0,16),this.cache=this.cache.slice(16),b;return null},m.prototype.flush=function(){if(this.cache.length)return this.cache};function d(g){var b=g[15];if(b<1||b>16)throw new Error("unable to decrypt data");for(var w=-1;++w<b;)if(g[w+(16-b)]!==b)throw new Error("unable to decrypt data");if(b!==16)return g.slice(0,16-b)}function v(g,b,w){var y=h[g.toLowerCase()];if(!y)throw new TypeError("invalid suite type");if(typeof w=="string"&&(w=o.from(w)),y.mode!=="GCM"&&w.length!==y.iv)throw new TypeError("invalid iv length "+w.length);if(typeof b=="string"&&(b=o.from(b)),b.length!==y.key/8)throw new TypeError("invalid key length "+b.length);return y.type==="stream"?new c(y.module,b,w,!0):y.type==="auth"?new s(y.module,b,w,!0):new p(y.module,b,w)}function x(g,b){var w=h[g.toLowerCase()];if(!w)throw new TypeError("invalid suite type");var y=l(b,!1,w.key,w.iv);return v(g,y.key,y.iv)}i.createDecipher=x,i.createDecipheriv=v},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,n,i){var s=e("./modes"),o=e("./authCipher"),h=e("safe-buffer").Buffer,c=e("./streamCipher"),a=e("cipher-base"),f=e("./aes"),l=e("evp_bytestokey"),u=e("inherits");function p(g,b,w){a.call(this),this._cache=new d,this._cipher=new f.AES(b),this._prev=h.from(w),this._mode=g,this._autopadding=!0}u(p,a),p.prototype._update=function(g){this._cache.add(g);for(var b,w,y=[];b=this._cache.get();)w=this._mode.encrypt(this,b),y.push(w);return h.concat(y)};var m=h.alloc(16,16);p.prototype._final=function(){var g=this._cache.flush();if(this._autopadding)return g=this._mode.encrypt(this,g),this._cipher.scrub(),g;if(!g.equals(m))throw this._cipher.scrub(),new Error("data not multiple of block length")},p.prototype.setAutoPadding=function(g){return this._autopadding=!!g,this};function d(){this.cache=h.allocUnsafe(0)}d.prototype.add=function(g){this.cache=h.concat([this.cache,g])},d.prototype.get=function(){if(this.cache.length>15){var g=this.cache.slice(0,16);return this.cache=this.cache.slice(16),g}return null},d.prototype.flush=function(){for(var g=16-this.cache.length,b=h.allocUnsafe(g),w=-1;++w<g;)b.writeUInt8(g,w);return h.concat([this.cache,b])};function v(g,b,w){var y=s[g.toLowerCase()];if(!y)throw new TypeError("invalid suite type");if(typeof b=="string"&&(b=h.from(b)),b.length!==y.key/8)throw new TypeError("invalid key length "+b.length);if(typeof w=="string"&&(w=h.from(w)),y.mode!=="GCM"&&w.length!==y.iv)throw new TypeError("invalid iv length "+w.length);return y.type==="stream"?new c(y.module,b,w):y.type==="auth"?new o(y.module,b,w):new p(y.module,b,w)}function x(g,b){var w=s[g.toLowerCase()];if(!w)throw new TypeError("invalid suite type");var y=l(b,!1,w.key,w.iv);return v(g,y.key,y.iv)}i.createCipheriv=v,i.createCipher=x},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,n,i){var s=e("safe-buffer").Buffer,o=s.alloc(16,0);function h(f){return[f.readUInt32BE(0),f.readUInt32BE(4),f.readUInt32BE(8),f.readUInt32BE(12)]}function c(f){var l=s.allocUnsafe(16);return l.writeUInt32BE(f[0]>>>0,0),l.writeUInt32BE(f[1]>>>0,4),l.writeUInt32BE(f[2]>>>0,8),l.writeUInt32BE(f[3]>>>0,12),l}function a(f){this.h=f,this.state=s.alloc(16,0),this.cache=s.allocUnsafe(0)}a.prototype.ghash=function(f){for(var l=-1;++l<f.length;)this.state[l]^=f[l];this._multiply()},a.prototype._multiply=function(){for(var f=h(this.h),l=[0,0,0,0],u,p,m,d=-1;++d<128;){for(p=(this.state[~~(d/8)]&1<<7-d%8)!==0,p&&(l[0]^=f[0],l[1]^=f[1],l[2]^=f[2],l[3]^=f[3]),m=(f[3]&1)!==0,u=3;u>0;u--)f[u]=f[u]>>>1|(f[u-1]&1)<<31;f[0]=f[0]>>>1,m&&(f[0]=f[0]^225<<24)}this.state=c(l)},a.prototype.update=function(f){this.cache=s.concat([this.cache,f]);for(var l;this.cache.length>=16;)l=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(l)},a.prototype.final=function(f,l){return this.cache.length&&this.ghash(s.concat([this.cache,o],16)),this.ghash(c([0,f,0,l])),this.state},n.exports=a},{"safe-buffer":494}],195:[function(e,n,i){function s(o){for(var h=o.length,c;h--;)if(c=o.readUInt8(h),c===255)o.writeUInt8(0,h);else{c++,o.writeUInt8(c,h);break}}n.exports=s},{}],196:[function(e,n,i){var s=e("buffer-xor");i.encrypt=function(o,h){var c=s(h,o._prev);return o._prev=o._cipher.encryptBlock(c),o._prev},i.decrypt=function(o,h){var c=o._prev;o._prev=h;var a=o._cipher.decryptBlock(h);return s(a,c)}},{"buffer-xor":219}],197:[function(e,n,i){var s=e("safe-buffer").Buffer,o=e("buffer-xor");function h(c,a,f){var l=a.length,u=o(a,c._cache);return c._cache=c._cache.slice(l),c._prev=s.concat([c._prev,f?a:u]),u}i.encrypt=function(c,a,f){for(var l=s.allocUnsafe(0),u;a.length;)if(c._cache.length===0&&(c._cache=c._cipher.encryptBlock(c._prev),c._prev=s.allocUnsafe(0)),c._cache.length<=a.length)u=c._cache.length,l=s.concat([l,h(c,a.slice(0,u),f)]),a=a.slice(u);else{l=s.concat([l,h(c,a,f)]);break}return l}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,n,i){var s=e("safe-buffer").Buffer;function o(c,a,f){for(var l,u=-1,p=8,m=0,d,v;++u<p;)l=c._cipher.encryptBlock(c._prev),d=a&1<<7-u?128:0,v=l[0]^d,m+=(v&128)>>u%8,c._prev=h(c._prev,f?d:v);return m}function h(c,a){var f=c.length,l=-1,u=s.allocUnsafe(c.length);for(c=s.concat([c,s.from([a])]);++l<f;)u[l]=c[l]<<1|c[l+1]>>7;return u}i.encrypt=function(c,a,f){for(var l=a.length,u=s.allocUnsafe(l),p=-1;++p<l;)u[p]=o(c,a[p],f);return u}},{"safe-buffer":494}],199:[function(e,n,i){var s=e("safe-buffer").Buffer;function o(h,c,a){var f=h._cipher.encryptBlock(h._prev),l=f[0]^c;return h._prev=s.concat([h._prev.slice(1),s.from([a?c:l])]),l}i.encrypt=function(h,c,a){for(var f=c.length,l=s.allocUnsafe(f),u=-1;++u<f;)l[u]=o(h,c[u],a);return l}},{"safe-buffer":494}],200:[function(e,n,i){var s=e("buffer-xor"),o=e("safe-buffer").Buffer,h=e("../incr32");function c(f){var l=f._cipher.encryptBlockRaw(f._prev);return h(f._prev),l}var a=16;i.encrypt=function(f,l){var u=Math.ceil(l.length/a),p=f._cache.length;f._cache=o.concat([f._cache,o.allocUnsafe(u*a)]);for(var m=0;m<u;m++){var d=c(f),v=p+m*a;f._cache.writeUInt32BE(d[0],v+0),f._cache.writeUInt32BE(d[1],v+4),f._cache.writeUInt32BE(d[2],v+8),f._cache.writeUInt32BE(d[3],v+12)}var x=f._cache.slice(0,l.length);return f._cache=f._cache.slice(l.length),s(l,x)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,n,i){i.encrypt=function(s,o){return s._cipher.encryptBlock(o)},i.decrypt=function(s,o){return s._cipher.decryptBlock(o)}},{}],202:[function(e,n,i){var s={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},o=e("./list.json");for(var h in o)o[h].module=s[o[h].mode];n.exports=o},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,n,i){n.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"}}},{}],204:[function(e,n,i){(function(s){(function(){var o=e("buffer-xor");function h(c){return c._prev=c._cipher.encryptBlock(c._prev),c._prev}i.encrypt=function(c,a){for(;c._cache.length<a.length;)c._cache=s.concat([c._cache,h(c)]);var f=c._cache.slice(0,a.length);return c._cache=c._cache.slice(a.length),o(a,f)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,n,i){var s=e("./aes"),o=e("safe-buffer").Buffer,h=e("cipher-base"),c=e("inherits");function a(f,l,u,p){h.call(this),this._cipher=new s.AES(l),this._prev=o.from(u),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=p,this._mode=f}c(a,h),a.prototype._update=function(f){return this._mode.encrypt(this,f,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},n.exports=a},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,n,i){var s=e("browserify-des"),o=e("browserify-aes/browser"),h=e("browserify-aes/modes"),c=e("browserify-des/modes"),a=e("evp_bytestokey");function f(d,v){d=d.toLowerCase();var x,g;if(h[d])x=h[d].key,g=h[d].iv;else if(c[d])x=c[d].key*8,g=c[d].iv;else throw new TypeError("invalid suite type");var b=a(v,!1,x,g);return u(d,b.key,b.iv)}function l(d,v){d=d.toLowerCase();var x,g;if(h[d])x=h[d].key,g=h[d].iv;else if(c[d])x=c[d].key*8,g=c[d].iv;else throw new TypeError("invalid suite type");var b=a(v,!1,x,g);return p(d,b.key,b.iv)}function u(d,v,x){if(d=d.toLowerCase(),h[d])return o.createCipheriv(d,v,x);if(c[d])return new s({key:v,iv:x,mode:d});throw new TypeError("invalid suite type")}function p(d,v,x){if(d=d.toLowerCase(),h[d])return o.createDecipheriv(d,v,x);if(c[d])return new s({key:v,iv:x,mode:d,decrypt:!0});throw new TypeError("invalid suite type")}function m(){return Object.keys(c).concat(o.getCiphers())}i.createCipher=i.Cipher=f,i.createCipheriv=i.Cipheriv=u,i.createDecipher=i.Decipher=l,i.createDecipheriv=i.Decipheriv=p,i.listCiphers=i.getCiphers=m},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,n,i){var s=e("cipher-base"),o=e("des.js"),h=e("inherits"),c=e("safe-buffer").Buffer,a={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],n.exports=f,h(f,s);function f(l){s.call(this);var u=l.mode.toLowerCase(),p=a[u],m;l.decrypt?m="decrypt":m="encrypt";var d=l.key;c.isBuffer(d)||(d=c.from(d)),(u==="des-ede"||u==="des-ede-cbc")&&(d=c.concat([d,d.slice(0,8)]));var v=l.iv;c.isBuffer(v)||(v=c.from(v)),this._des=p.create({key:d,iv:v,type:m})}f.prototype._update=function(l){return c.from(this._des.update(l))},f.prototype._final=function(){return c.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,n,i){i["des-ecb"]={key:8,iv:0},i["des-cbc"]=i.des={key:8,iv:8},i["des-ede3-cbc"]=i.des3={key:24,iv:8},i["des-ede3"]={key:24,iv:0},i["des-ede-cbc"]={key:16,iv:8},i["des-ede"]={key:16,iv:0}},{}],209:[function(e,n,i){(function(s){(function(){var o=e("bn.js"),h=e("randombytes");function c(l){var u=a(l),p=u.toRed(o.mont(l.modulus)).redPow(new o(l.publicExponent)).fromRed();return{blinder:p,unblinder:u.invm(l.modulus)}}function a(l){var u=l.modulus.byteLength(),p;do p=new o(h(u));while(p.cmp(l.modulus)>=0||!p.umod(l.prime1)||!p.umod(l.prime2));return p}function f(l,u){var p=c(u),m=u.modulus.byteLength(),d=new o(l).mul(p.blinder).umod(u.modulus),v=d.toRed(o.mont(u.prime1)),x=d.toRed(o.mont(u.prime2)),g=u.coefficient,b=u.prime1,w=u.prime2,y=v.redPow(u.exponent1).fromRed(),T=x.redPow(u.exponent2).fromRed(),C=y.isub(T).imul(g).umod(b).imul(w);return T.iadd(C).imul(p.unblinder).umod(u.modulus).toArrayLike(s,"be",m)}f.getr=a,n.exports=f}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,n,i){n.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,n,i){n.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"}}},{}],212:[function(e,n,i){n.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"}},{}],213:[function(e,n,i){var s=e("safe-buffer").Buffer,o=e("create-hash"),h=e("readable-stream"),c=e("inherits"),a=e("./sign"),f=e("./verify"),l=e("./algorithms.json");Object.keys(l).forEach(function(v){l[v].id=s.from(l[v].id,"hex"),l[v.toLowerCase()]=l[v]});function u(v){h.Writable.call(this);var x=l[v];if(!x)throw new Error("Unknown message digest");this._hashType=x.hash,this._hash=o(x.hash),this._tag=x.id,this._signType=x.sign}c(u,h.Writable),u.prototype._write=function(x,g,b){this._hash.update(x),b()},u.prototype.update=function(x,g){return typeof x=="string"&&(x=s.from(x,g)),this._hash.update(x),this},u.prototype.sign=function(x,g){this.end();var b=this._hash.digest(),w=a(b,x,this._hashType,this._signType,this._tag);return g?w.toString(g):w};function p(v){h.Writable.call(this);var x=l[v];if(!x)throw new Error("Unknown message digest");this._hash=o(x.hash),this._tag=x.id,this._signType=x.sign}c(p,h.Writable),p.prototype._write=function(x,g,b){this._hash.update(x),b()},p.prototype.update=function(x,g){return typeof x=="string"&&(x=s.from(x,g)),this._hash.update(x),this},p.prototype.verify=function(x,g,b){typeof g=="string"&&(g=s.from(g,b)),this.end();var w=this._hash.digest();return f(g,w,x,this._signType,this._tag)};function m(v){return new u(v)}function d(v){return new p(v)}n.exports={Sign:m,Verify:d,createSign:m,createVerify:d}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,n,i){var s=e("safe-buffer").Buffer,o=e("create-hmac"),h=e("browserify-rsa"),c=e("elliptic").ec,a=e("bn.js"),f=e("parse-asn1"),l=e("./curves.json");function u(y,T,C,M,I){var B=f(T);if(B.curve){if(M!=="ecdsa"&&M!=="ecdsa/rsa")throw new Error("wrong private key type");return p(y,B)}else if(B.type==="dsa"){if(M!=="dsa")throw new Error("wrong private key type");return m(y,B,C)}else if(M!=="rsa"&&M!=="ecdsa/rsa")throw new Error("wrong private key type");y=s.concat([I,y]);for(var U=B.modulus.byteLength(),j=[0,1];y.length+j.length+1<U;)j.push(255);j.push(0);for(var H=-1;++H<y.length;)j.push(y[H]);var G=h(j,B);return G}function p(y,T){var C=l[T.curve.join(".")];if(!C)throw new Error("unknown curve "+T.curve.join("."));var M=new c(C),I=M.keyFromPrivate(T.privateKey),B=I.sign(y);return s.from(B.toDER())}function m(y,T,C){for(var M=T.params.priv_key,I=T.params.p,B=T.params.q,U=T.params.g,j=new a(0),H,G=x(y,B).mod(B),L=!1,R=v(M,B,y,C);L===!1;)H=b(B,R,C),j=w(U,H,I,B),L=H.invm(B).imul(G.add(M.mul(j))).mod(B),L.cmpn(0)===0&&(L=!1,j=new a(0));return d(j,L)}function d(y,T){y=y.toArray(),T=T.toArray(),y[0]&128&&(y=[0].concat(y)),T[0]&128&&(T=[0].concat(T));var C=y.length+T.length+4,M=[48,C,2,y.length];return M=M.concat(y,[2,T.length],T),s.from(M)}function v(y,T,C,M){if(y=s.from(y.toArray()),y.length<T.byteLength()){var I=s.alloc(T.byteLength()-y.length);y=s.concat([I,y])}var B=C.length,U=g(C,T),j=s.alloc(B);j.fill(1);var H=s.alloc(B);return H=o(M,H).update(j).update(s.from([0])).update(y).update(U).digest(),j=o(M,H).update(j).digest(),H=o(M,H).update(j).update(s.from([1])).update(y).update(U).digest(),j=o(M,H).update(j).digest(),{k:H,v:j}}function x(y,T){var C=new a(y),M=(y.length<<3)-T.bitLength();return M>0&&C.ishrn(M),C}function g(y,T){y=x(y,T),y=y.mod(T);var C=s.from(y.toArray());if(C.length<T.byteLength()){var M=s.alloc(T.byteLength()-C.length);C=s.concat([M,C])}return C}function b(y,T,C){var M,I;do{for(M=s.alloc(0);M.length*8<y.bitLength();)T.v=o(C,T.k).update(T.v).digest(),M=s.concat([M,T.v]);I=x(M,y),T.k=o(C,T.k).update(T.v).update(s.from([0])).digest(),T.v=o(C,T.k).update(T.v).digest()}while(I.cmp(y)!==-1);return I}function w(y,T,C,M){return y.toRed(a.mont(C)).redPow(T).fromRed().mod(M)}n.exports=u,n.exports.getKey=v,n.exports.makeKey=b},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,n,i){var s=e("safe-buffer").Buffer,o=e("bn.js"),h=e("elliptic").ec,c=e("parse-asn1"),a=e("./curves.json");function f(m,d,v,x,g){var b=c(v);if(b.type==="ec"){if(x!=="ecdsa"&&x!=="ecdsa/rsa")throw new Error("wrong public key type");return l(m,d,b)}else if(b.type==="dsa"){if(x!=="dsa")throw new Error("wrong public key type");return u(m,d,b)}else if(x!=="rsa"&&x!=="ecdsa/rsa")throw new Error("wrong public key type");d=s.concat([g,d]);for(var w=b.modulus.byteLength(),y=[1],T=0;d.length+y.length+2<w;)y.push(255),T++;y.push(0);for(var C=-1;++C<d.length;)y.push(d[C]);y=s.from(y);var M=o.mont(b.modulus);m=new o(m).toRed(M),m=m.redPow(new o(b.publicExponent)),m=s.from(m.fromRed().toArray());var I=T<8?1:0;for(w=Math.min(m.length,y.length),m.length!==y.length&&(I=1),C=-1;++C<w;)I|=m[C]^y[C];return I===0}function l(m,d,v){var x=a[v.data.algorithm.curve.join(".")];if(!x)throw new Error("unknown curve "+v.data.algorithm.curve.join("."));var g=new h(x),b=v.data.subjectPrivateKey.data;return g.verify(d,m,b)}function u(m,d,v){var x=v.data.p,g=v.data.q,b=v.data.g,w=v.data.pub_key,y=c.signature.decode(m,"der"),T=y.s,C=y.r;p(T,g),p(C,g);var M=o.mont(x),I=T.invm(g),B=b.toRed(M).redPow(new o(d).mul(I).mod(g)).fromRed().mul(w.toRed(M).redPow(C.mul(I).mod(g)).fromRed()).mod(x).mod(g);return B.cmp(C)===0}function p(m,d){if(m.cmpn(0)<=0)throw new Error("invalid sig");if(m.cmp(d)>=d)throw new Error("invalid sig")}n.exports=f},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,n,i){},{}],217:[function(e,n,i){var s=e("buffer"),o=s.Buffer;function h(a,f){for(var l in a)f[l]=a[l]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?n.exports=s:(h(s,i),i.Buffer=c);function c(a,f,l){return o(a,f,l)}h(o,c),c.from=function(a,f,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return o(a,f,l)},c.alloc=function(a,f,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=o(a);return f!==void 0?typeof l=="string"?u.fill(f,l):u.fill(f):u.fill(0),u},c.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return o(a)},c.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return s.SlowBuffer(a)}},{buffer:220}],218:[function(e,n,i){var s=e("safe-buffer").Buffer,o=s.isEncoding||function(T){switch(T=""+T,T&&T.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 h(T){if(!T)return"utf8";for(var C;;)switch(T){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 T;default:if(C)return;T=(""+T).toLowerCase(),C=!0}}function c(T){var C=h(T);if(typeof C!="string"&&(s.isEncoding===o||!o(T)))throw new Error("Unknown encoding: "+T);return C||T}i.StringDecoder=a;function a(T){this.encoding=c(T);var C;switch(this.encoding){case"utf16le":this.text=v,this.end=x,C=4;break;case"utf8":this.fillLast=p,C=4;break;case"base64":this.text=g,this.end=b,C=3;break;default:this.write=w,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=s.allocUnsafe(C)}a.prototype.write=function(T){if(T.length===0)return"";var C,M;if(this.lastNeed){if(C=this.fillLast(T),C===void 0)return"";M=this.lastNeed,this.lastNeed=0}else M=0;return M<T.length?C?C+this.text(T,M):this.text(T,M):C||""},a.prototype.end=d,a.prototype.text=m,a.prototype.fillLast=function(T){if(this.lastNeed<=T.length)return T.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);T.copy(this.lastChar,this.lastTotal-this.lastNeed,0,T.length),this.lastNeed-=T.length};function f(T){return T<=127?0:T>>5===6?2:T>>4===14?3:T>>3===30?4:T>>6===2?-1:-2}function l(T,C,M){var I=C.length-1;if(I<M)return 0;var B=f(C[I]);return B>=0?(B>0&&(T.lastNeed=B-1),B):--I<M||B===-2?0:(B=f(C[I]),B>=0?(B>0&&(T.lastNeed=B-2),B):--I<M||B===-2?0:(B=f(C[I]),B>=0?(B>0&&(B===2?B=0:T.lastNeed=B-3),B):0))}function u(T,C,M){if((C[0]&192)!==128)return T.lastNeed=0,"<22>";if(T.lastNeed>1&&C.length>1){if((C[1]&192)!==128)return T.lastNeed=1,"<22>";if(T.lastNeed>2&&C.length>2&&(C[2]&192)!==128)return T.lastNeed=2,"<22>"}}function p(T){var C=this.lastTotal-this.lastNeed,M=u(this,T);if(M!==void 0)return M;if(this.lastNeed<=T.length)return T.copy(this.lastChar,C,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);T.copy(this.lastChar,C,0,T.length),this.lastNeed-=T.length}function m(T,C){var M=l(this,T,C);if(!this.lastNeed)return T.toString("utf8",C);this.lastTotal=M;var I=T.length-(M-this.lastNeed);return T.copy(this.lastChar,0,I),T.toString("utf8",C,I)}function d(T){var C=T&&T.length?this.write(T):"";return this.lastNeed?C+"<22>":C}function v(T,C){if((T.length-C)%2===0){var M=T.toString("utf16le",C);if(M){var I=M.charCodeAt(M.length-1);if(I>=55296&&I<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=T[T.length-2],this.lastChar[1]=T[T.length-1],M.slice(0,-1)}return M}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=T[T.length-1],T.toString("utf16le",C,T.length-1)}function x(T){var C=T&&T.length?this.write(T):"";if(this.lastNeed){var M=this.lastTotal-this.lastNeed;return C+this.lastChar.toString("utf16le",0,M)}return C}function g(T,C){var M=(T.length-C)%3;return M===0?T.toString("base64",C):(this.lastNeed=3-M,this.lastTotal=3,M===1?this.lastChar[0]=T[T.length-1]:(this.lastChar[0]=T[T.length-2],this.lastChar[1]=T[T.length-1]),T.toString("base64",C,T.length-M))}function b(T){var C=T&&T.length?this.write(T):"";return this.lastNeed?C+this.lastChar.toString("base64",0,3-this.lastNeed):C}function w(T){return T.toString(this.encoding)}function y(T){return T&&T.length?this.write(T):""}},{"safe-buffer":217}],219:[function(e,n,i){(function(s){(function(){n.exports=function(h,c){for(var a=Math.min(h.length,c.length),f=new s(a),l=0;l<a;++l)f[l]=h[l]^c[l];return f}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,n,i){(function(s){(function(){var o=e("base64-js"),h=e("ieee754");i.Buffer=l,i.SlowBuffer=y,i.INSPECT_MAX_BYTES=50;var c=2147483647;i.kMaxLength=c,l.TYPED_ARRAY_SUPPORT=a(),!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&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.");function a(){try{var Z=new Uint8Array(1);return Z.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Z.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function f(Z){if(Z>c)throw new RangeError('The value "'+Z+'" is invalid for option "size"');var W=new Uint8Array(Z);return W.__proto__=l.prototype,W}function l(Z,W,V){if(typeof Z=="number"){if(typeof W=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(Z)}return u(Z,W,V)}typeof Symbol<"u"&&Symbol.species!=null&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),l.poolSize=8192;function u(Z,W,V){if(typeof Z=="string")return v(Z,W);if(ArrayBuffer.isView(Z))return x(Z);if(Z==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Z);if(ae(Z,ArrayBuffer)||Z&&ae(Z.buffer,ArrayBuffer))return g(Z,W,V);if(typeof Z=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var fe=Z.valueOf&&Z.valueOf();if(fe!=null&&fe!==Z)return l.from(fe,W,V);var ye=b(Z);if(ye)return ye;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Z[Symbol.toPrimitive]=="function")return l.from(Z[Symbol.toPrimitive]("string"),W,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Z)}l.from=function(Z,W,V){return u(Z,W,V)},l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array;function p(Z){if(typeof Z!="number")throw new TypeError('"size" argument must be of type number');if(Z<0)throw new RangeError('The value "'+Z+'" is invalid for option "size"')}function m(Z,W,V){return p(Z),Z<=0?f(Z):W!==void 0?typeof V=="string"?f(Z).fill(W,V):f(Z).fill(W):f(Z)}l.alloc=function(Z,W,V){return m(Z,W,V)};function d(Z){return p(Z),f(Z<0?0:w(Z)|0)}l.allocUnsafe=function(Z){return d(Z)},l.allocUnsafeSlow=function(Z){return d(Z)};function v(Z,W){if((typeof W!="string"||W==="")&&(W="utf8"),!l.isEncoding(W))throw new TypeError("Unknown encoding: "+W);var V=T(Z,W)|0,fe=f(V),ye=fe.write(Z,W);return ye!==V&&(fe=fe.slice(0,ye)),fe}function x(Z){for(var W=Z.length<0?0:w(Z.length)|0,V=f(W),fe=0;fe<W;fe+=1)V[fe]=Z[fe]&255;return V}function g(Z,W,V){if(W<0||Z.byteLength<W)throw new RangeError('"offset" is outside of buffer bounds');if(Z.byteLength<W+(V||0))throw new RangeError('"length" is outside of buffer bounds');var fe;return W===void 0&&V===void 0?fe=new Uint8Array(Z):V===void 0?fe=new Uint8Array(Z,W):fe=new Uint8Array(Z,W,V),fe.__proto__=l.prototype,fe}function b(Z){if(l.isBuffer(Z)){var W=w(Z.length)|0,V=f(W);return V.length===0||Z.copy(V,0,0,W),V}if(Z.length!==void 0)return typeof Z.length!="number"||te(Z.length)?f(0):x(Z);if(Z.type==="Buffer"&&Array.isArray(Z.data))return x(Z.data)}function w(Z){if(Z>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return Z|0}function y(Z){return+Z!=Z&&(Z=0),l.alloc(+Z)}l.isBuffer=function(W){return W!=null&&W._isBuffer===!0&&W!==l.prototype},l.compare=function(W,V){if(ae(W,Uint8Array)&&(W=l.from(W,W.offset,W.byteLength)),ae(V,Uint8Array)&&(V=l.from(V,V.offset,V.byteLength)),!l.isBuffer(W)||!l.isBuffer(V))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(W===V)return 0;for(var fe=W.length,ye=V.length,X=0,ve=Math.min(fe,ye);X<ve;++X)if(W[X]!==V[X]){fe=W[X],ye=V[X];break}return fe<ye?-1:ye<fe?1:0},l.isEncoding=function(W){switch(String(W).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}},l.concat=function(W,V){if(!Array.isArray(W))throw new TypeError('"list" argument must be an Array of Buffers');if(W.length===0)return l.alloc(0);var fe;if(V===void 0)for(V=0,fe=0;fe<W.length;++fe)V+=W[fe].length;var ye=l.allocUnsafe(V),X=0;for(fe=0;fe<W.length;++fe){var ve=W[fe];if(ae(ve,Uint8Array)&&(ve=l.from(ve)),!l.isBuffer(ve))throw new TypeError('"list" argument must be an Array of Buffers');ve.copy(ye,X),X+=ve.length}return ye};function T(Z,W){if(l.isBuffer(Z))return Z.length;if(ArrayBuffer.isView(Z)||ae(Z,ArrayBuffer))return Z.byteLength;if(typeof Z!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Z);var V=Z.length,fe=arguments.length>2&&arguments[2]===!0;if(!fe&&V===0)return 0;for(var ye=!1;;)switch(W){case"ascii":case"latin1":case"binary":return V;case"utf8":case"utf-8":return q(Z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V*2;case"hex":return V>>>1;case"base64":return he(Z).length;default:if(ye)return fe?-1:q(Z).length;W=(""+W).toLowerCase(),ye=!0}}l.byteLength=T;function C(Z,W,V){var fe=!1;if((W===void 0||W<0)&&(W=0),W>this.length||((V===void 0||V>this.length)&&(V=this.length),V<=0)||(V>>>=0,W>>>=0,V<=W))return"";for(Z||(Z="utf8");;)switch(Z){case"hex":return A(this,W,V);case"utf8":case"utf-8":return _(this,W,V);case"ascii":return P(this,W,V);case"latin1":case"binary":return D(this,W,V);case"base64":return F(this,W,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,W,V);default:if(fe)throw new TypeError("Unknown encoding: "+Z);Z=(Z+"").toLowerCase(),fe=!0}}l.prototype._isBuffer=!0;function M(Z,W,V){var fe=Z[W];Z[W]=Z[V],Z[V]=fe}l.prototype.swap16=function(){var W=this.length;if(W%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var V=0;V<W;V+=2)M(this,V,V+1);return this},l.prototype.swap32=function(){var W=this.length;if(W%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var V=0;V<W;V+=4)M(this,V,V+3),M(this,V+1,V+2);return this},l.prototype.swap64=function(){var W=this.length;if(W%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var V=0;V<W;V+=8)M(this,V,V+7),M(this,V+1,V+6),M(this,V+2,V+5),M(this,V+3,V+4);return this},l.prototype.toString=function(){var W=this.length;return W===0?"":arguments.length===0?_(this,0,W):C.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(W){if(!l.isBuffer(W))throw new TypeError("Argument must be a Buffer");return this===W?!0:l.compare(this,W)===0},l.prototype.inspect=function(){var W="",V=i.INSPECT_MAX_BYTES;return W=this.toString("hex",0,V).replace(/(.{2})/g,"$1 ").trim(),this.length>V&&(W+=" ... "),"<Buffer "+W+">"},l.prototype.compare=function(W,V,fe,ye,X){if(ae(W,Uint8Array)&&(W=l.from(W,W.offset,W.byteLength)),!l.isBuffer(W))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof W);if(V===void 0&&(V=0),fe===void 0&&(fe=W?W.length:0),ye===void 0&&(ye=0),X===void 0&&(X=this.length),V<0||fe>W.length||ye<0||X>this.length)throw new RangeError("out of range index");if(ye>=X&&V>=fe)return 0;if(ye>=X)return-1;if(V>=fe)return 1;if(V>>>=0,fe>>>=0,ye>>>=0,X>>>=0,this===W)return 0;for(var ve=X-ye,ke=fe-V,ee=Math.min(ve,ke),ne=this.slice(ye,X),de=W.slice(V,fe),_e=0;_e<ee;++_e)if(ne[_e]!==de[_e]){ve=ne[_e],ke=de[_e];break}return ve<ke?-1:ke<ve?1:0};function I(Z,W,V,fe,ye){if(Z.length===0)return-1;if(typeof V=="string"?(fe=V,V=0):V>2147483647?V=2147483647:V<-2147483648&&(V=-2147483648),V=+V,te(V)&&(V=ye?0:Z.length-1),V<0&&(V=Z.length+V),V>=Z.length){if(ye)return-1;V=Z.length-1}else if(V<0)if(ye)V=0;else return-1;if(typeof W=="string"&&(W=l.from(W,fe)),l.isBuffer(W))return W.length===0?-1:B(Z,W,V,fe,ye);if(typeof W=="number")return W=W&255,typeof Uint8Array.prototype.indexOf=="function"?ye?Uint8Array.prototype.indexOf.call(Z,W,V):Uint8Array.prototype.lastIndexOf.call(Z,W,V):B(Z,[W],V,fe,ye);throw new TypeError("val must be string, number or Buffer")}function B(Z,W,V,fe,ye){var X=1,ve=Z.length,ke=W.length;if(fe!==void 0&&(fe=String(fe).toLowerCase(),fe==="ucs2"||fe==="ucs-2"||fe==="utf16le"||fe==="utf-16le")){if(Z.length<2||W.length<2)return-1;X=2,ve/=2,ke/=2,V/=2}function ee(Ae,Ne){return X===1?Ae[Ne]:Ae.readUInt16BE(Ne*X)}var ne;if(ye){var de=-1;for(ne=V;ne<ve;ne++)if(ee(Z,ne)===ee(W,de===-1?0:ne-de)){if(de===-1&&(de=ne),ne-de+1===ke)return de*X}else de!==-1&&(ne-=ne-de),de=-1}else for(V+ke>ve&&(V=ve-ke),ne=V;ne>=0;ne--){for(var _e=!0,Re=0;Re<ke;Re++)if(ee(Z,ne+Re)!==ee(W,Re)){_e=!1;break}if(_e)return ne}return-1}l.prototype.includes=function(W,V,fe){return this.indexOf(W,V,fe)!==-1},l.prototype.indexOf=function(W,V,fe){return I(this,W,V,fe,!0)},l.prototype.lastIndexOf=function(W,V,fe){return I(this,W,V,fe,!1)};function U(Z,W,V,fe){V=Number(V)||0;var ye=Z.length-V;fe?(fe=Number(fe),fe>ye&&(fe=ye)):fe=ye;var X=W.length;fe>X/2&&(fe=X/2);for(var ve=0;ve<fe;++ve){var ke=parseInt(W.substr(ve*2,2),16);if(te(ke))return ve;Z[V+ve]=ke}return ve}function j(Z,W,V,fe){return we(q(W,Z.length-V),Z,V,fe)}function H(Z,W,V,fe){return we(K(W),Z,V,fe)}function G(Z,W,V,fe){return H(Z,W,V,fe)}function L(Z,W,V,fe){return we(he(W),Z,V,fe)}function R(Z,W,V,fe){return we(Q(W,Z.length-V),Z,V,fe)}l.prototype.write=function(W,V,fe,ye){if(V===void 0)ye="utf8",fe=this.length,V=0;else if(fe===void 0&&typeof V=="string")ye=V,fe=this.length,V=0;else if(isFinite(V))V=V>>>0,isFinite(fe)?(fe=fe>>>0,ye===void 0&&(ye="utf8")):(ye=fe,fe=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var X=this.length-V;if((fe===void 0||fe>X)&&(fe=X),W.length>0&&(fe<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");ye||(ye="utf8");for(var ve=!1;;)switch(ye){case"hex":return U(this,W,V,fe);case"utf8":case"utf-8":return j(this,W,V,fe);case"ascii":return H(this,W,V,fe);case"latin1":case"binary":return G(this,W,V,fe);case"base64":return L(this,W,V,fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,W,V,fe);default:if(ve)throw new TypeError("Unknown encoding: "+ye);ye=(""+ye).toLowerCase(),ve=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(Z,W,V){return W===0&&V===Z.length?o.fromByteArray(Z):o.fromByteArray(Z.slice(W,V))}function _(Z,W,V){V=Math.min(Z.length,V);for(var fe=[],ye=W;ye<V;){var X=Z[ye],ve=null,ke=X>239?4:X>223?3:X>191?2:1;if(ye+ke<=V){var ee,ne,de,_e;switch(ke){case 1:X<128&&(ve=X);break;case 2:ee=Z[ye+1],(ee&192)===128&&(_e=(X&31)<<6|ee&63,_e>127&&(ve=_e));break;case 3:ee=Z[ye+1],ne=Z[ye+2],(ee&192)===128&&(ne&192)===128&&(_e=(X&15)<<12|(ee&63)<<6|ne&63,_e>2047&&(_e<55296||_e>57343)&&(ve=_e));break;case 4:ee=Z[ye+1],ne=Z[ye+2],de=Z[ye+3],(ee&192)===128&&(ne&192)===128&&(de&192)===128&&(_e=(X&15)<<18|(ee&63)<<12|(ne&63)<<6|de&63,_e>65535&&_e<1114112&&(ve=_e))}}ve===null?(ve=65533,ke=1):ve>65535&&(ve-=65536,fe.push(ve>>>10&1023|55296),ve=56320|ve&1023),fe.push(ve),ye+=ke}return N(fe)}var k=4096;function N(Z){var W=Z.length;if(W<=k)return String.fromCharCode.apply(String,Z);for(var V="",fe=0;fe<W;)V+=String.fromCharCode.apply(String,Z.slice(fe,fe+=k));return V}function P(Z,W,V){var fe="";V=Math.min(Z.length,V);for(var ye=W;ye<V;++ye)fe+=String.fromCharCode(Z[ye]&127);return fe}function D(Z,W,V){var fe="";V=Math.min(Z.length,V);for(var ye=W;ye<V;++ye)fe+=String.fromCharCode(Z[ye]);return fe}function A(Z,W,V){var fe=Z.length;(!W||W<0)&&(W=0),(!V||V<0||V>fe)&&(V=fe);for(var ye="",X=W;X<V;++X)ye+=Y(Z[X]);return ye}function S(Z,W,V){for(var fe=Z.slice(W,V),ye="",X=0;X<fe.length;X+=2)ye+=String.fromCharCode(fe[X]+fe[X+1]*256);return ye}l.prototype.slice=function(W,V){var fe=this.length;W=~~W,V=V===void 0?fe:~~V,W<0?(W+=fe,W<0&&(W=0)):W>fe&&(W=fe),V<0?(V+=fe,V<0&&(V=0)):V>fe&&(V=fe),V<W&&(V=W);var ye=this.subarray(W,V);return ye.__proto__=l.prototype,ye};function E(Z,W,V){if(Z%1!==0||Z<0)throw new RangeError("offset is not uint");if(Z+W>V)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function(W,V,fe){W=W>>>0,V=V>>>0,fe||E(W,V,this.length);for(var ye=this[W],X=1,ve=0;++ve<V&&(X*=256);)ye+=this[W+ve]*X;return ye},l.prototype.readUIntBE=function(W,V,fe){W=W>>>0,V=V>>>0,fe||E(W,V,this.length);for(var ye=this[W+--V],X=1;V>0&&(X*=256);)ye+=this[W+--V]*X;return ye},l.prototype.readUInt8=function(W,V){return W=W>>>0,V||E(W,1,this.length),this[W]},l.prototype.readUInt16LE=function(W,V){return W=W>>>0,V||E(W,2,this.length),this[W]|this[W+1]<<8},l.prototype.readUInt16BE=function(W,V){return W=W>>>0,V||E(W,2,this.length),this[W]<<8|this[W+1]},l.prototype.readUInt32LE=function(W,V){return W=W>>>0,V||E(W,4,this.length),(this[W]|this[W+1]<<8|this[W+2]<<16)+this[W+3]*16777216},l.prototype.readUInt32BE=function(W,V){return W=W>>>0,V||E(W,4,this.length),this[W]*16777216+(this[W+1]<<16|this[W+2]<<8|this[W+3])},l.prototype.readIntLE=function(W,V,fe){W=W>>>0,V=V>>>0,fe||E(W,V,this.length);for(var ye=this[W],X=1,ve=0;++ve<V&&(X*=256);)ye+=this[W+ve]*X;return X*=128,ye>=X&&(ye-=Math.pow(2,8*V)),ye},l.prototype.readIntBE=function(W,V,fe){W=W>>>0,V=V>>>0,fe||E(W,V,this.length);for(var ye=V,X=1,ve=this[W+--ye];ye>0&&(X*=256);)ve+=this[W+--ye]*X;return X*=128,ve>=X&&(ve-=Math.pow(2,8*V)),ve},l.prototype.readInt8=function(W,V){return W=W>>>0,V||E(W,1,this.length),this[W]&128?(255-this[W]+1)*-1:this[W]},l.prototype.readInt16LE=function(W,V){W=W>>>0,V||E(W,2,this.length);var fe=this[W]|this[W+1]<<8;return fe&32768?fe|4294901760:fe},l.prototype.readInt16BE=function(W,V){W=W>>>0,V||E(W,2,this.length);var fe=this[W+1]|this[W]<<8;return fe&32768?fe|4294901760:fe},l.prototype.readInt32LE=function(W,V){return W=W>>>0,V||E(W,4,this.length),this[W]|this[W+1]<<8|this[W+2]<<16|this[W+3]<<24},l.prototype.readInt32BE=function(W,V){return W=W>>>0,V||E(W,4,this.length),this[W]<<24|this[W+1]<<16|this[W+2]<<8|this[W+3]},l.prototype.readFloatLE=function(W,V){return W=W>>>0,V||E(W,4,this.length),h.read(this,W,!0,23,4)},l.prototype.readFloatBE=function(W,V){return W=W>>>0,V||E(W,4,this.length),h.read(this,W,!1,23,4)},l.prototype.readDoubleLE=function(W,V){return W=W>>>0,V||E(W,8,this.length),h.read(this,W,!0,52,8)},l.prototype.readDoubleBE=function(W,V){return W=W>>>0,V||E(W,8,this.length),h.read(this,W,!1,52,8)};function O(Z,W,V,fe,ye,X){if(!l.isBuffer(Z))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>ye||W<X)throw new RangeError('"value" argument is out of bounds');if(V+fe>Z.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function(W,V,fe,ye){if(W=+W,V=V>>>0,fe=fe>>>0,!ye){var X=Math.pow(2,8*fe)-1;O(this,W,V,fe,X,0)}var ve=1,ke=0;for(this[V]=W&255;++ke<fe&&(ve*=256);)this[V+ke]=W/ve&255;return V+fe},l.prototype.writeUIntBE=function(W,V,fe,ye){if(W=+W,V=V>>>0,fe=fe>>>0,!ye){var X=Math.pow(2,8*fe)-1;O(this,W,V,fe,X,0)}var ve=fe-1,ke=1;for(this[V+ve]=W&255;--ve>=0&&(ke*=256);)this[V+ve]=W/ke&255;return V+fe},l.prototype.writeUInt8=function(W,V,fe){return W=+W,V=V>>>0,fe||O(this,W,V,1,255,0),this[V]=W&255,V+1},l.prototype.writeUInt16LE=function(W,V,fe){return W=+W,V=V>>>0,fe||O(this,W,V,2,65535,0),this[V]=W&255,this[V+1]=W>>>8,V+2},l.prototype.writeUInt16BE=function(W,V,fe){return W=+W,V=V>>>0,fe||O(this,W,V,2,65535,0),this[V]=W>>>8,this[V+1]=W&255,V+2},l.prototype.writeUInt32LE=function(W,V,fe){return W=+W,V=V>>>0,fe||O(this,W,V,4,4294967295,0),this[V+3]=W>>>24,this[V+2]=W>>>16,this[V+1]=W>>>8,this[V]=W&255,V+4},l.prototype.writeUInt32BE=function(W,V,fe){return W=+W,V=V>>>0,fe||O(this,W,V,4,4294967295,0),this[V]=W>>>24,this[V+1]=W>>>16,this[V+2]=W>>>8,this[V+3]=W&255,V+4},l.prototype.writeIntLE=function(W,V,fe,ye){if(W=+W,V=V>>>0,!ye){var X=Math.pow(2,8*fe-1);O(this,W,V,fe,X-1,-X)}var ve=0,ke=1,ee=0;for(this[V]=W&255;++ve<fe&&(ke*=256);)W<0&&ee===0&&this[V+ve-1]!==0&&(ee=1),this[V+ve]=(W/ke>>0)-ee&255;return V+fe},l.prototype.writeIntBE=function(W,V,fe,ye){if(W=+W,V=V>>>0,!ye){var X=Math.pow(2,8*fe-1);O(this,W,V,fe,X-1,-X)}var ve=fe-1,ke=1,ee=0;for(this[V+ve]=W&255;--ve>=0&&(ke*=256);)W<0&&ee===0&&this[V+ve+1]!==0&&(ee=1),this[V+ve]=(W/ke>>0)-ee&255;return V+fe},l.prototype.writeInt8=function(W,V,fe){return W=+W,V=V>>>0,fe||O(this,W,V,1,127,-128),W<0&&(W=255+W+1),this[V]=W&255,V+1},l.prototype.writeInt16LE=function(W,V,fe){return W=+W,V=V>>>0,fe||O(this,W,V,2,32767,-32768),this[V]=W&255,this[V+1]=W>>>8,V+2},l.prototype.writeInt16BE=function(W,V,fe){return W=+W,V=V>>>0,fe||O(this,W,V,2,32767,-32768),this[V]=W>>>8,this[V+1]=W&255,V+2},l.prototype.writeInt32LE=function(W,V,fe){return W=+W,V=V>>>0,fe||O(this,W,V,4,2147483647,-2147483648),this[V]=W&255,this[V+1]=W>>>8,this[V+2]=W>>>16,this[V+3]=W>>>24,V+4},l.prototype.writeInt32BE=function(W,V,fe){return W=+W,V=V>>>0,fe||O(this,W,V,4,2147483647,-2147483648),W<0&&(W=4294967295+W+1),this[V]=W>>>24,this[V+1]=W>>>16,this[V+2]=W>>>8,this[V+3]=W&255,V+4};function z(Z,W,V,fe,ye,X){if(V+fe>Z.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("Index out of range")}function J(Z,W,V,fe,ye){return W=+W,V=V>>>0,ye||z(Z,W,V,4),h.write(Z,W,V,fe,23,4),V+4}l.prototype.writeFloatLE=function(W,V,fe){return J(this,W,V,!0,fe)},l.prototype.writeFloatBE=function(W,V,fe){return J(this,W,V,!1,fe)};function re(Z,W,V,fe,ye){return W=+W,V=V>>>0,ye||z(Z,W,V,8),h.write(Z,W,V,fe,52,8),V+8}l.prototype.writeDoubleLE=function(W,V,fe){return re(this,W,V,!0,fe)},l.prototype.writeDoubleBE=function(W,V,fe){return re(this,W,V,!1,fe)},l.prototype.copy=function(W,V,fe,ye){if(!l.isBuffer(W))throw new TypeError("argument should be a Buffer");if(fe||(fe=0),!ye&&ye!==0&&(ye=this.length),V>=W.length&&(V=W.length),V||(V=0),ye>0&&ye<fe&&(ye=fe),ye===fe||W.length===0||this.length===0)return 0;if(V<0)throw new RangeError("targetStart out of bounds");if(fe<0||fe>=this.length)throw new RangeError("Index out of range");if(ye<0)throw new RangeError("sourceEnd out of bounds");ye>this.length&&(ye=this.length),W.length-V<ye-fe&&(ye=W.length-V+fe);var X=ye-fe;if(this===W&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(V,fe,ye);else if(this===W&&fe<V&&V<ye)for(var ve=X-1;ve>=0;--ve)W[ve+V]=this[ve+fe];else Uint8Array.prototype.set.call(W,this.subarray(fe,ye),V);return X},l.prototype.fill=function(W,V,fe,ye){if(typeof W=="string"){if(typeof V=="string"?(ye=V,V=0,fe=this.length):typeof fe=="string"&&(ye=fe,fe=this.length),ye!==void 0&&typeof ye!="string")throw new TypeError("encoding must be a string");if(typeof ye=="string"&&!l.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye);if(W.length===1){var X=W.charCodeAt(0);(ye==="utf8"&&X<128||ye==="latin1")&&(W=X)}}else typeof W=="number"&&(W=W&255);if(V<0||this.length<V||this.length<fe)throw new RangeError("Out of range index");if(fe<=V)return this;V=V>>>0,fe=fe===void 0?this.length:fe>>>0,W||(W=0);var ve;if(typeof W=="number")for(ve=V;ve<fe;++ve)this[ve]=W;else{var ke=l.isBuffer(W)?W:l.from(W,ye),ee=ke.length;if(ee===0)throw new TypeError('The value "'+W+'" is invalid for argument "value"');for(ve=0;ve<fe-V;++ve)this[ve+V]=ke[ve%ee]}return this};var se=/[^+/0-9A-Za-z-_]/g;function Ce(Z){if(Z=Z.split("=")[0],Z=Z.trim().replace(se,""),Z.length<2)return"";for(;Z.length%4!==0;)Z=Z+"=";return Z}function Y(Z){return Z<16?"0"+Z.toString(16):Z.toString(16)}function q(Z,W){W=W||1/0;for(var V,fe=Z.length,ye=null,X=[],ve=0;ve<fe;++ve){if(V=Z.charCodeAt(ve),V>55295&&V<57344){if(!ye){if(V>56319){(W-=3)>-1&&X.push(239,191,189);continue}else if(ve+1===fe){(W-=3)>-1&&X.push(239,191,189);continue}ye=V;continue}if(V<56320){(W-=3)>-1&&X.push(239,191,189),ye=V;continue}V=(ye-55296<<10|V-56320)+65536}else ye&&(W-=3)>-1&&X.push(239,191,189);if(ye=null,V<128){if((W-=1)<0)break;X.push(V)}else if(V<2048){if((W-=2)<0)break;X.push(V>>6|192,V&63|128)}else if(V<65536){if((W-=3)<0)break;X.push(V>>12|224,V>>6&63|128,V&63|128)}else if(V<1114112){if((W-=4)<0)break;X.push(V>>18|240,V>>12&63|128,V>>6&63|128,V&63|128)}else throw new Error("Invalid code point")}return X}function K(Z){for(var W=[],V=0;V<Z.length;++V)W.push(Z.charCodeAt(V)&255);return W}function Q(Z,W){for(var V,fe,ye,X=[],ve=0;ve<Z.length&&!((W-=2)<0);++ve)V=Z.charCodeAt(ve),fe=V>>8,ye=V%256,X.push(ye),X.push(fe);return X}function he(Z){return o.toByteArray(Ce(Z))}function we(Z,W,V,fe){for(var ye=0;ye<fe&&!(ye+V>=W.length||ye>=Z.length);++ye)W[ye+V]=Z[ye];return ye}function ae(Z,W){return Z instanceof W||Z!=null&&Z.constructor!=null&&Z.constructor.name!=null&&Z.constructor.name===W.name}function te(Z){return Z!==Z}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,n,i){var s=e("safe-buffer").Buffer,o=e("stream").Transform,h=e("string_decoder").StringDecoder,c=e("inherits");function a(f){o.call(this),this.hashMode=typeof f=="string",this.hashMode?this[f]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}c(a,o),a.prototype.update=function(f,l,u){typeof f=="string"&&(f=s.from(f,l));var p=this._update(f);return this.hashMode?this:(u&&(p=this._toString(p,u)),p)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(f,l,u){var p;try{this.hashMode?this._update(f):this.push(this._update(f))}catch(m){p=m}finally{u(p)}},a.prototype._flush=function(f){var l;try{this.push(this.__final())}catch(u){l=u}f(l)},a.prototype._finalOrDigest=function(f){var l=this.__final()||s.alloc(0);return f&&(l=this._toString(l,f,!0)),l},a.prototype._toString=function(f,l,u){if(this._decoder||(this._decoder=new h(l),this._encoding=l),this._encoding!==l)throw new Error("can't switch encodings");var p=this._decoder.write(f);return u&&(p+=this._decoder.end()),p},n.exports=a},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,n,i){var s=e("../internals/is-callable"),o=e("../internals/try-to-string"),h=TypeError;n.exports=function(c){if(s(c))return c;throw new h(o(c)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,n,i){var s=e("../internals/is-constructor"),o=e("../internals/try-to-string"),h=TypeError;n.exports=function(c){if(s(c))return c;throw new h(o(c)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,n,i){var s=e("../internals/is-callable"),o=String,h=TypeError;n.exports=function(c){if(typeof c=="object"||s(c))return c;throw new h("Can't set "+o(c)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,n,i){var s=e("../internals/well-known-symbol"),o=e("../internals/object-create"),h=e("../internals/object-define-property").f,c=s("unscopables"),a=Array.prototype;a[c]===void 0&&h(a,c,{configurable:!0,value:o(null)}),n.exports=function(f){a[c][f]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,n,i){var s=e("../internals/object-is-prototype-of"),o=TypeError;n.exports=function(h,c){if(s(c,h))return h;throw new o("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,n,i){var s=e("../internals/is-object"),o=String,h=TypeError;n.exports=function(c){if(s(c))return c;throw new h(o(c)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,n,i){var s=e("../internals/to-indexed-object"),o=e("../internals/to-absolute-index"),h=e("../internals/length-of-array-like"),c=function(a){return function(f,l,u){var p=s(f),m=h(p),d=o(u,m),v;if(a&&l!==l){for(;m>d;)if(v=p[d++],v!==v)return!0}else for(;m>d;d++)if((a||d in p)&&p[d]===l)return a||d||0;return!a&&-1}};n.exports={includes:c(!0),indexOf:c(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,n,i){var s=e("../internals/function-bind-context"),o=e("../internals/function-uncurry-this"),h=e("../internals/indexed-object"),c=e("../internals/to-object"),a=e("../internals/length-of-array-like"),f=e("../internals/array-species-create"),l=o([].push),u=function(p){var m=p===1,d=p===2,v=p===3,x=p===4,g=p===6,b=p===7,w=p===5||g;return function(y,T,C,M){for(var I=c(y),B=h(I),U=s(T,C),j=a(B),H=0,G=M||f,L=m?G(y,j):d||b?G(y,0):void 0,R,F;j>H;H++)if((w||H in B)&&(R=B[H],F=U(R,H,I),p))if(m)L[H]=F;else if(F)switch(p){case 3:return!0;case 5:return R;case 6:return H;case 2:l(L,R)}else switch(p){case 4:return!1;case 7:l(L,R)}return g?-1:v||x?x:L}};n.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,n,i){var s=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),h=e("../internals/create-property"),c=Array,a=Math.max;n.exports=function(f,l,u){for(var p=o(f),m=s(l,p),d=s(u===void 0?p:u,p),v=c(a(d-m,0)),x=0;m<d;m++,x++)h(v,x,f[m]);return v.length=x,v}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,n,i){var s=e("../internals/function-uncurry-this");n.exports=s([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,n,i){var s=e("../internals/is-array"),o=e("../internals/is-constructor"),h=e("../internals/is-object"),c=e("../internals/well-known-symbol"),a=c("species"),f=Array;n.exports=function(l){var u;return s(l)&&(u=l.constructor,o(u)&&(u===f||s(u.prototype))?u=void 0:h(u)&&(u=u[a],u===null&&(u=void 0))),u===void 0?f:u}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,n,i){var s=e("../internals/array-species-constructor");n.exports=function(o,h){return new(s(o))(h===0?0:h)}},{"../internals/array-species-constructor":232}],234:[function(e,n,i){var s=e("../internals/well-known-symbol"),o=s("iterator"),h=!1;try{var c=0,a={next:function(){return{done:!!c++}},return:function(){h=!0}};a[o]=function(){return this},Array.from(a,function(){throw 2})}catch{}n.exports=function(f,l){try{if(!l&&!h)return!1}catch{return!1}var u=!1;try{var p={};p[o]=function(){return{next:function(){return{done:u=!0}}}},f(p)}catch{}return u}},{"../internals/well-known-symbol":357}],235:[function(e,n,i){var s=e("../internals/function-uncurry-this"),o=s({}.toString),h=s("".slice);n.exports=function(c){return h(o(c),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,n,i){var s=e("../internals/to-string-tag-support"),o=e("../internals/is-callable"),h=e("../internals/classof-raw"),c=e("../internals/well-known-symbol"),a=c("toStringTag"),f=Object,l=h(function(){return arguments}())==="Arguments",u=function(p,m){try{return p[m]}catch{}};n.exports=s?h:function(p){var m,d,v;return p===void 0?"Undefined":p===null?"Null":typeof(d=u(m=f(p),a))=="string"?d:l?h(m):(v=h(m))==="Object"&&o(m.callee)?"Arguments":v}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,n,i){var s=e("../internals/has-own-property"),o=e("../internals/own-keys"),h=e("../internals/object-get-own-property-descriptor"),c=e("../internals/object-define-property");n.exports=function(a,f,l){for(var u=o(f),p=c.f,m=h.f,d=0;d<u.length;d++){var v=u[d];!s(a,v)&&!(l&&s(l,v))&&p(a,v,m(f,v))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,n,i){var s=e("../internals/well-known-symbol"),o=s("match");n.exports=function(h){var c=/./;try{"/./"[h](c)}catch{try{return c[o]=!1,"/./"[h](c)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,n,i){var s=e("../internals/fails");n.exports=!s(function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype})},{"../internals/fails":260}],240:[function(e,n,i){n.exports=function(s,o){return{value:s,done:o}}},{}],241:[function(e,n,i){var s=e("../internals/descriptors"),o=e("../internals/object-define-property"),h=e("../internals/create-property-descriptor");n.exports=s?function(c,a,f){return o.f(c,a,h(1,f))}:function(c,a,f){return c[a]=f,c}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,n,i){n.exports=function(s,o){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:o}}},{}],243:[function(e,n,i){var s=e("../internals/to-property-key"),o=e("../internals/object-define-property"),h=e("../internals/create-property-descriptor");n.exports=function(c,a,f){var l=s(a);l in c?o.f(c,l,h(0,f)):c[l]=f}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,n,i){var s=e("../internals/make-built-in"),o=e("../internals/object-define-property");n.exports=function(h,c,a){return a.get&&s(a.get,c,{getter:!0}),a.set&&s(a.set,c,{setter:!0}),o.f(h,c,a)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,n,i){var s=e("../internals/is-callable"),o=e("../internals/object-define-property"),h=e("../internals/make-built-in"),c=e("../internals/define-global-property");n.exports=function(a,f,l,u){u||(u={});var p=u.enumerable,m=u.name!==void 0?u.name:f;if(s(l)&&h(l,m,u),u.global)p?a[f]=l:c(f,l);else{try{u.unsafe?a[f]&&(p=!0):delete a[f]}catch{}p?a[f]=l:o.f(a,f,{value:l,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return a}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,n,i){var s=e("../internals/global"),o=Object.defineProperty;n.exports=function(h,c){try{o(s,h,{value:c,configurable:!0,writable:!0})}catch{s[h]=c}return c}},{"../internals/global":274}],247:[function(e,n,i){var s=e("../internals/fails");n.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},{"../internals/fails":260}],248:[function(e,n,i){var s=typeof document=="object"&&document.all,o=typeof s>"u"&&s!==void 0;n.exports={all:s,IS_HTMLDDA:o}},{}],249:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/is-object"),h=s.document,c=o(h)&&o(h.createElement);n.exports=function(a){return c?h.createElement(a):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,n,i){var s=e("../internals/engine-is-deno"),o=e("../internals/engine-is-node");n.exports=!s&&!o&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,n,i){n.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(e,n,i){var s=e("../internals/engine-user-agent");n.exports=/ipad|iphone|ipod/i.test(s)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(e,n,i){var s=e("../internals/engine-user-agent");n.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},{"../internals/engine-user-agent":256}],254:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/classof-raw");n.exports=o(s.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,n,i){var s=e("../internals/engine-user-agent");n.exports=/web0s(?!.*chrome)/i.test(s)},{"../internals/engine-user-agent":256}],256:[function(e,n,i){n.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/engine-user-agent"),h=s.process,c=s.Deno,a=h&&h.versions||c&&c.version,f=a&&a.v8,l,u;f&&(l=f.split("."),u=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!u&&o&&(l=o.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=o.match(/Chrome\/(\d+)/),l&&(u=+l[1]))),n.exports=u},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,n,i){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/object-get-own-property-descriptor").f,h=e("../internals/create-non-enumerable-property"),c=e("../internals/define-built-in"),a=e("../internals/define-global-property"),f=e("../internals/copy-constructor-properties"),l=e("../internals/is-forced");n.exports=function(u,p){var m=u.target,d=u.global,v=u.stat,x,g,b,w,y,T;if(d?g=s:v?g=s[m]||a(m,{}):g=(s[m]||{}).prototype,g)for(b in p){if(y=p[b],u.dontCallGetSet?(T=o(g,b),w=T&&T.value):w=g[b],x=l(d?b:m+(v?".":"#")+b,u.forced),!x&&w!==void 0){if(typeof y==typeof w)continue;f(y,w)}(u.sham||w&&w.sham)&&h(y,"sham",!0),c(g,b,y,u)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,n,i){n.exports=function(s){try{return!!s()}catch{return!0}}},{}],261:[function(e,n,i){var s=e("../internals/function-bind-native"),o=Function.prototype,h=o.apply,c=o.call;n.exports=typeof Reflect=="object"&&Reflect.apply||(s?c.bind(h):function(){return c.apply(h,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,n,i){var s=e("../internals/function-uncurry-this-clause"),o=e("../internals/a-callable"),h=e("../internals/function-bind-native"),c=s(s.bind);n.exports=function(a,f){return o(a),f===void 0?a:h?c(a,f):function(){return a.apply(f,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,n,i){var s=e("../internals/fails");n.exports=!s(function(){var o=(function(){}).bind();return typeof o!="function"||o.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,n,i){var s=e("../internals/function-bind-native"),o=Function.prototype.call;n.exports=s?o.bind(o):function(){return o.apply(o,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,n,i){var s=e("../internals/descriptors"),o=e("../internals/has-own-property"),h=Function.prototype,c=s&&Object.getOwnPropertyDescriptor,a=o(h,"name"),f=a&&(function(){}).name==="something",l=a&&(!s||s&&c(h,"name").configurable);n.exports={EXISTS:a,PROPER:f,CONFIGURABLE:l}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,n,i){var s=e("../internals/function-uncurry-this"),o=e("../internals/a-callable");n.exports=function(h,c,a){try{return s(o(Object.getOwnPropertyDescriptor(h,c)[a]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,n,i){var s=e("../internals/classof-raw"),o=e("../internals/function-uncurry-this");n.exports=function(h){if(s(h)==="Function")return o(h)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,n,i){var s=e("../internals/function-bind-native"),o=Function.prototype,h=o.call,c=s&&o.bind.bind(h,h);n.exports=s?c:function(a){return function(){return h.apply(a,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/is-callable"),h=function(c){return o(c)?c:void 0};n.exports=function(c,a){return arguments.length<2?h(s[c]):s[c]&&s[c][a]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,n,i){var s=e("../internals/classof"),o=e("../internals/get-method"),h=e("../internals/is-null-or-undefined"),c=e("../internals/iterators"),a=e("../internals/well-known-symbol"),f=a("iterator");n.exports=function(l){if(!h(l))return o(l,f)||o(l,"@@iterator")||c[s(l)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,n,i){var s=e("../internals/function-call"),o=e("../internals/a-callable"),h=e("../internals/an-object"),c=e("../internals/try-to-string"),a=e("../internals/get-iterator-method"),f=TypeError;n.exports=function(l,u){var p=arguments.length<2?a(l):u;if(o(p))return h(s(p,l));throw new f(c(l)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,n,i){var s=e("../internals/function-uncurry-this"),o=e("../internals/is-array"),h=e("../internals/is-callable"),c=e("../internals/classof-raw"),a=e("../internals/to-string"),f=s([].push);n.exports=function(l){if(h(l))return l;if(o(l)){for(var u=l.length,p=[],m=0;m<u;m++){var d=l[m];typeof d=="string"?f(p,d):(typeof d=="number"||c(d)==="Number"||c(d)==="String")&&f(p,a(d))}var v=p.length,x=!0;return function(g,b){if(x)return x=!1,b;if(o(this))return b;for(var w=0;w<v;w++)if(p[w]===g)return b}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,n,i){var s=e("../internals/a-callable"),o=e("../internals/is-null-or-undefined");n.exports=function(h,c){var a=h[c];return o(a)?void 0:s(a)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,n,i){(function(s){(function(){var o=function(h){return h&&h.Math===Math&&h};n.exports=o(typeof globalThis=="object"&&globalThis)||o(typeof window=="object"&&window)||o(typeof self=="object"&&self)||o(typeof s=="object"&&s)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(e,n,i){var s=e("../internals/function-uncurry-this"),o=e("../internals/to-object"),h=s({}.hasOwnProperty);n.exports=Object.hasOwn||function(a,f){return h(o(a),f)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,n,i){n.exports={}},{}],277:[function(e,n,i){n.exports=function(s,o){try{arguments.length===1?console.error(s):console.error(s,o)}catch{}}},{}],278:[function(e,n,i){var s=e("../internals/get-built-in");n.exports=s("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,n,i){var s=e("../internals/descriptors"),o=e("../internals/fails"),h=e("../internals/document-create-element");n.exports=!s&&!o(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!==7})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,n,i){var s=e("../internals/function-uncurry-this"),o=e("../internals/fails"),h=e("../internals/classof-raw"),c=Object,a=s("".split);n.exports=o(function(){return!c("z").propertyIsEnumerable(0)})?function(f){return h(f)==="String"?a(f,""):c(f)}:c},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,n,i){var s=e("../internals/function-uncurry-this"),o=e("../internals/is-callable"),h=e("../internals/shared-store"),c=s(Function.toString);o(h.inspectSource)||(h.inspectSource=function(a){return c(a)}),n.exports=h.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,n,i){var s=e("../internals/weak-map-basic-detection"),o=e("../internals/global"),h=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),a=e("../internals/has-own-property"),f=e("../internals/shared-store"),l=e("../internals/shared-key"),u=e("../internals/hidden-keys"),p="Object already initialized",m=o.TypeError,d=o.WeakMap,v,x,g,b=function(C){return g(C)?x(C):v(C,{})},w=function(C){return function(M){var I;if(!h(M)||(I=x(M)).type!==C)throw new m("Incompatible receiver, "+C+" required");return I}};if(s||f.state){var y=f.state||(f.state=new d);y.get=y.get,y.has=y.has,y.set=y.set,v=function(C,M){if(y.has(C))throw new m(p);return M.facade=C,y.set(C,M),M},x=function(C){return y.get(C)||{}},g=function(C){return y.has(C)}}else{var T=l("state");u[T]=!0,v=function(C,M){if(a(C,T))throw new m(p);return M.facade=C,c(C,T,M),M},x=function(C){return a(C,T)?C[T]:{}},g=function(C){return a(C,T)}}n.exports={set:v,get:x,has:g,enforce:b,getterFor:w}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,n,i){var s=e("../internals/well-known-symbol"),o=e("../internals/iterators"),h=s("iterator"),c=Array.prototype;n.exports=function(a){return a!==void 0&&(o.Array===a||c[h]===a)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,n,i){var s=e("../internals/classof-raw");n.exports=Array.isArray||function(h){return s(h)==="Array"}},{"../internals/classof-raw":235}],285:[function(e,n,i){var s=e("../internals/document-all"),o=s.all;n.exports=s.IS_HTMLDDA?function(h){return typeof h=="function"||h===o}:function(h){return typeof h=="function"}},{"../internals/document-all":248}],286:[function(e,n,i){var s=e("../internals/function-uncurry-this"),o=e("../internals/fails"),h=e("../internals/is-callable"),c=e("../internals/classof"),a=e("../internals/get-built-in"),f=e("../internals/inspect-source"),l=function(){},u=[],p=a("Reflect","construct"),m=/^\s*(?:class|function)\b/,d=s(m.exec),v=!m.test(l),x=function(w){if(!h(w))return!1;try{return p(l,u,w),!0}catch{return!1}},g=function(w){if(!h(w))return!1;switch(c(w)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!d(m,f(w))}catch{return!0}};g.sham=!0,n.exports=!p||o(function(){var b;return x(x.call)||!x(Object)||!x(function(){b=!0})||b})?g:x},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,n,i){var s=e("../internals/fails"),o=e("../internals/is-callable"),h=/#|\.prototype\./,c=function(p,m){var d=f[a(p)];return d===u?!0:d===l?!1:o(m)?s(m):!!m},a=c.normalize=function(p){return String(p).replace(h,".").toLowerCase()},f=c.data={},l=c.NATIVE="N",u=c.POLYFILL="P";n.exports=c},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,n,i){n.exports=function(s){return s==null}},{}],289:[function(e,n,i){var s=e("../internals/is-callable"),o=e("../internals/document-all"),h=o.all;n.exports=o.IS_HTMLDDA?function(c){return typeof c=="object"?c!==null:s(c)||c===h}:function(c){return typeof c=="object"?c!==null:s(c)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,n,i){n.exports=!1},{}],291:[function(e,n,i){var s=e("../internals/is-object"),o=e("../internals/classof-raw"),h=e("../internals/well-known-symbol"),c=h("match");n.exports=function(a){var f;return s(a)&&((f=a[c])!==void 0?!!f:o(a)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,n,i){var s=e("../internals/get-built-in"),o=e("../internals/is-callable"),h=e("../internals/object-is-prototype-of"),c=e("../internals/use-symbol-as-uid"),a=Object;n.exports=c?function(f){return typeof f=="symbol"}:function(f){var l=s("Symbol");return o(l)&&h(l.prototype,a(f))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,n,i){var s=e("../internals/function-bind-context"),o=e("../internals/function-call"),h=e("../internals/an-object"),c=e("../internals/try-to-string"),a=e("../internals/is-array-iterator-method"),f=e("../internals/length-of-array-like"),l=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator"),p=e("../internals/get-iterator-method"),m=e("../internals/iterator-close"),d=TypeError,v=function(g,b){this.stopped=g,this.result=b},x=v.prototype;n.exports=function(g,b,w){var y=w&&w.that,T=!!(w&&w.AS_ENTRIES),C=!!(w&&w.IS_RECORD),M=!!(w&&w.IS_ITERATOR),I=!!(w&&w.INTERRUPTED),B=s(b,y),U,j,H,G,L,R,F,_=function(N){return U&&m(U,"normal",N),new v(!0,N)},k=function(N){return T?(h(N),I?B(N[0],N[1],_):B(N[0],N[1])):I?B(N,_):B(N)};if(C)U=g.iterator;else if(M)U=g;else{if(j=p(g),!j)throw new d(c(g)+" is not iterable");if(a(j)){for(H=0,G=f(g);G>H;H++)if(L=k(g[H]),L&&l(x,L))return L;return new v(!1)}U=u(g,j)}for(R=C?g.next:U.next;!(F=o(R,U)).done;){try{L=k(F.value)}catch(N){m(U,"throw",N)}if(typeof L=="object"&&L&&l(x,L))return L}return new v(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,n,i){var s=e("../internals/function-call"),o=e("../internals/an-object"),h=e("../internals/get-method");n.exports=function(c,a,f){var l,u;o(c);try{if(l=h(c,"return"),!l){if(a==="throw")throw f;return f}l=s(l,c)}catch(p){u=!0,l=p}if(a==="throw")throw f;if(u)throw l;return o(l),f}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,n,i){var s=e("../internals/iterators-core").IteratorPrototype,o=e("../internals/object-create"),h=e("../internals/create-property-descriptor"),c=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),f=function(){return this};n.exports=function(l,u,p,m){var d=u+" Iterator";return l.prototype=o(s,{next:h(+!m,p)}),c(l,d,!1,!0),a[d]=f,l}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/function-call"),h=e("../internals/is-pure"),c=e("../internals/function-name"),a=e("../internals/is-callable"),f=e("../internals/iterator-create-constructor"),l=e("../internals/object-get-prototype-of"),u=e("../internals/object-set-prototype-of"),p=e("../internals/set-to-string-tag"),m=e("../internals/create-non-enumerable-property"),d=e("../internals/define-built-in"),v=e("../internals/well-known-symbol"),x=e("../internals/iterators"),g=e("../internals/iterators-core"),b=c.PROPER,w=c.CONFIGURABLE,y=g.IteratorPrototype,T=g.BUGGY_SAFARI_ITERATORS,C=v("iterator"),M="keys",I="values",B="entries",U=function(){return this};n.exports=function(j,H,G,L,R,F,_){f(G,H,L);var k=function(re){if(re===R&&S)return S;if(!T&&re&&re in D)return D[re];switch(re){case M:return function(){return new G(this,re)};case I:return function(){return new G(this,re)};case B:return function(){return new G(this,re)}}return function(){return new G(this)}},N=H+" Iterator",P=!1,D=j.prototype,A=D[C]||D["@@iterator"]||R&&D[R],S=!T&&A||k(R),E=H==="Array"&&D.entries||A,O,z,J;if(E&&(O=l(E.call(new j)),O!==Object.prototype&&O.next&&(!h&&l(O)!==y&&(u?u(O,y):a(O[C])||d(O,C,U)),p(O,N,!0,!0),h&&(x[N]=U))),b&&R===I&&A&&A.name!==I&&(!h&&w?m(D,"name",I):(P=!0,S=function(){return o(A,this)})),R)if(z={values:k(I),keys:F?S:k(M),entries:k(B)},_)for(J in z)(T||P||!(J in D))&&d(D,J,z[J]);else s({target:H,proto:!0,forced:T||P},z);return(!h||_)&&D[C]!==S&&d(D,C,S,{name:R}),x[H]=S,z}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,n,i){var s=e("../internals/fails"),o=e("../internals/is-callable"),h=e("../internals/is-object"),c=e("../internals/object-create"),a=e("../internals/object-get-prototype-of"),f=e("../internals/define-built-in"),l=e("../internals/well-known-symbol"),u=e("../internals/is-pure"),p=l("iterator"),m=!1,d,v,x;[].keys&&(x=[].keys(),"next"in x?(v=a(a(x)),v!==Object.prototype&&(d=v)):m=!0);var g=!h(d)||s(function(){var b={};return d[p].call(b)!==b});g?d={}:u&&(d=c(d)),o(d[p])||f(d,p,function(){return this}),n.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:m}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,n,i){arguments[4][276][0].apply(i,arguments)},{dup:276}],299:[function(e,n,i){var s=e("../internals/to-length");n.exports=function(o){return s(o.length)}},{"../internals/to-length":343}],300:[function(e,n,i){var s=e("../internals/function-uncurry-this"),o=e("../internals/fails"),h=e("../internals/is-callable"),c=e("../internals/has-own-property"),a=e("../internals/descriptors"),f=e("../internals/function-name").CONFIGURABLE,l=e("../internals/inspect-source"),u=e("../internals/internal-state"),p=u.enforce,m=u.get,d=String,v=Object.defineProperty,x=s("".slice),g=s("".replace),b=s([].join),w=a&&!o(function(){return v(function(){},"length",{value:8}).length!==8}),y=String(String).split("String"),T=n.exports=function(C,M,I){x(d(M),0,7)==="Symbol("&&(M="["+g(d(M),/^Symbol\(([^)]*)\)/,"$1")+"]"),I&&I.getter&&(M="get "+M),I&&I.setter&&(M="set "+M),(!c(C,"name")||f&&C.name!==M)&&(a?v(C,"name",{value:M,configurable:!0}):C.name=M),w&&I&&c(I,"arity")&&C.length!==I.arity&&v(C,"length",{value:I.arity});try{I&&c(I,"constructor")&&I.constructor?a&&v(C,"prototype",{writable:!1}):C.prototype&&(C.prototype=void 0)}catch{}var B=p(C);return c(B,"source")||(B.source=b(y,typeof M=="string"?M:"")),C};Function.prototype.toString=T(function(){return h(this)&&m(this).source||l(this)},"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,n,i){var s=Math.ceil,o=Math.floor;n.exports=Math.trunc||function(c){var a=+c;return(a>0?o:s)(a)}},{}],302:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/function-bind-context"),h=e("../internals/object-get-own-property-descriptor").f,c=e("../internals/task").set,a=e("../internals/queue"),f=e("../internals/engine-is-ios"),l=e("../internals/engine-is-ios-pebble"),u=e("../internals/engine-is-webos-webkit"),p=e("../internals/engine-is-node"),m=s.MutationObserver||s.WebKitMutationObserver,d=s.document,v=s.process,x=s.Promise,g=h(s,"queueMicrotask"),b=g&&g.value,w,y,T,C,M;if(!b){var I=new a,B=function(){var U,j;for(p&&(U=v.domain)&&U.exit();j=I.get();)try{j()}catch(H){throw I.head&&w(),H}U&&U.enter()};!f&&!p&&!u&&m&&d?(y=!0,T=d.createTextNode(""),new m(B).observe(T,{characterData:!0}),w=function(){T.data=y=!y}):!l&&x&&x.resolve?(C=x.resolve(void 0),C.constructor=x,M=o(C.then,C),w=function(){M(B)}):p?w=function(){v.nextTick(B)}:(c=o(c,s),w=function(){c(B)}),b=function(U){I.head||w(),I.add(U)}}n.exports=b},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,n,i){var s=e("../internals/a-callable"),o=TypeError,h=function(c){var a,f;this.promise=new c(function(l,u){if(a!==void 0||f!==void 0)throw new o("Bad Promise constructor");a=l,f=u}),this.resolve=s(a),this.reject=s(f)};n.exports.f=function(c){return new h(c)}},{"../internals/a-callable":222}],304:[function(e,n,i){var s=e("../internals/is-regexp"),o=TypeError;n.exports=function(h){if(s(h))throw new o("The method doesn't accept regular expressions");return h}},{"../internals/is-regexp":291}],305:[function(e,n,i){var s=e("../internals/descriptors"),o=e("../internals/function-uncurry-this"),h=e("../internals/function-call"),c=e("../internals/fails"),a=e("../internals/object-keys"),f=e("../internals/object-get-own-property-symbols"),l=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),p=e("../internals/indexed-object"),m=Object.assign,d=Object.defineProperty,v=o([].concat);n.exports=!m||c(function(){if(s&&m({b:1},m(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var x={},g={},b=Symbol("assign detection"),w="abcdefghijklmnopqrst";return x[b]=7,w.split("").forEach(function(y){g[y]=y}),m({},x)[b]!==7||a(m({},g)).join("")!==w})?function(g,b){for(var w=u(g),y=arguments.length,T=1,C=f.f,M=l.f;y>T;)for(var I=p(arguments[T++]),B=C?v(a(I),C(I)):a(I),U=B.length,j=0,H;U>j;)H=B[j++],(!s||h(M,I,H))&&(w[H]=I[H]);return w}:m},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,n,i){var s=e("../internals/an-object"),o=e("../internals/object-define-properties"),h=e("../internals/enum-bug-keys"),c=e("../internals/hidden-keys"),a=e("../internals/html"),f=e("../internals/document-create-element"),l=e("../internals/shared-key"),u=">",p="<",m="prototype",d="script",v=l("IE_PROTO"),x=function(){},g=function(C){return p+d+u+C+p+"/"+d+u},b=function(C){C.write(g("")),C.close();var M=C.parentWindow.Object;return C=null,M},w=function(){var C=f("iframe"),M="java"+d+":",I;return C.style.display="none",a.appendChild(C),C.src=String(M),I=C.contentWindow.document,I.open(),I.write(g("document.F=Object")),I.close(),I.F},y,T=function(){try{y=new ActiveXObject("htmlfile")}catch{}T=typeof document<"u"?document.domain&&y?b(y):w():b(y);for(var C=h.length;C--;)delete T[m][h[C]];return T()};c[v]=!0,n.exports=Object.create||function(M,I){var B;return M!==null?(x[m]=s(M),B=new x,x[m]=null,B[v]=M):B=T(),I===void 0?B:o.f(B,I)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,n,i){var s=e("../internals/descriptors"),o=e("../internals/v8-prototype-define-bug"),h=e("../internals/object-define-property"),c=e("../internals/an-object"),a=e("../internals/to-indexed-object"),f=e("../internals/object-keys");i.f=s&&!o?Object.defineProperties:function(u,p){c(u);for(var m=a(p),d=f(p),v=d.length,x=0,g;v>x;)h.f(u,g=d[x++],m[g]);return u}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,n,i){var s=e("../internals/descriptors"),o=e("../internals/ie8-dom-define"),h=e("../internals/v8-prototype-define-bug"),c=e("../internals/an-object"),a=e("../internals/to-property-key"),f=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",m="configurable",d="writable";i.f=s?h?function(x,g,b){if(c(x),g=a(g),c(b),typeof x=="function"&&g==="prototype"&&"value"in b&&d in b&&!b[d]){var w=u(x,g);w&&w[d]&&(x[g]=b.value,b={configurable:m in b?b[m]:w[m],enumerable:p in b?b[p]:w[p],writable:!1})}return l(x,g,b)}:l:function(x,g,b){if(c(x),g=a(g),c(b),o)try{return l(x,g,b)}catch{}if("get"in b||"set"in b)throw new f("Accessors not supported");return"value"in b&&(x[g]=b.value),x}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,n,i){var s=e("../internals/descriptors"),o=e("../internals/function-call"),h=e("../internals/object-property-is-enumerable"),c=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),f=e("../internals/to-property-key"),l=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),p=Object.getOwnPropertyDescriptor;i.f=s?p:function(d,v){if(d=a(d),v=f(v),u)try{return p(d,v)}catch{}if(l(d,v))return c(!o(h.f,d,v),d[v])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,n,i){var s=e("../internals/classof-raw"),o=e("../internals/to-indexed-object"),h=e("../internals/object-get-own-property-names").f,c=e("../internals/array-slice-simple"),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(l){try{return h(l)}catch{return c(a)}};n.exports.f=function(u){return a&&s(u)==="Window"?f(u):h(o(u))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,n,i){var s=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys"),h=o.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(a){return s(a,h)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,n,i){i.f=Object.getOwnPropertySymbols},{}],313:[function(e,n,i){var s=e("../internals/has-own-property"),o=e("../internals/is-callable"),h=e("../internals/to-object"),c=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),f=c("IE_PROTO"),l=Object,u=l.prototype;n.exports=a?l.getPrototypeOf:function(p){var m=h(p);if(s(m,f))return m[f];var d=m.constructor;return o(d)&&m instanceof d?d.prototype:m instanceof l?u:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,n,i){var s=e("../internals/function-uncurry-this");n.exports=s({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,n,i){var s=e("../internals/function-uncurry-this"),o=e("../internals/has-own-property"),h=e("../internals/to-indexed-object"),c=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),f=s([].push);n.exports=function(l,u){var p=h(l),m=0,d=[],v;for(v in p)!o(a,v)&&o(p,v)&&f(d,v);for(;u.length>m;)o(p,v=u[m++])&&(~c(d,v)||f(d,v));return d}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,n,i){var s=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys");n.exports=Object.keys||function(c){return s(c,o)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,n,i){var s={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,h=o&&!s.call({1:2},1);i.f=h?function(a){var f=o(this,a);return!!f&&f.enumerable}:s},{}],318:[function(e,n,i){var s=e("../internals/function-uncurry-this-accessor"),o=e("../internals/an-object"),h=e("../internals/a-possible-prototype");n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,a={},f;try{f=s(Object.prototype,"__proto__","set"),f(a,[]),c=a instanceof Array}catch{}return function(u,p){return o(u),h(p),c?f(u,p):u.__proto__=p,u}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,n,i){var s=e("../internals/descriptors"),o=e("../internals/fails"),h=e("../internals/function-uncurry-this"),c=e("../internals/object-get-prototype-of"),a=e("../internals/object-keys"),f=e("../internals/to-indexed-object"),l=e("../internals/object-property-is-enumerable").f,u=h(l),p=h([].push),m=s&&o(function(){var v=Object.create(null);return v[2]=2,!u(v,2)}),d=function(v){return function(x){for(var g=f(x),b=a(g),w=m&&c(g)===null,y=b.length,T=0,C=[],M;y>T;)M=b[T++],(!s||(w?M in g:u(g,M)))&&p(C,v?[M,g[M]]:g[M]);return C}};n.exports={entries:d(!0),values:d(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,n,i){var s=e("../internals/function-call"),o=e("../internals/is-callable"),h=e("../internals/is-object"),c=TypeError;n.exports=function(a,f){var l,u;if(f==="string"&&o(l=a.toString)&&!h(u=s(l,a))||o(l=a.valueOf)&&!h(u=s(l,a))||f!=="string"&&o(l=a.toString)&&!h(u=s(l,a)))return u;throw new c("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,n,i){var s=e("../internals/get-built-in"),o=e("../internals/function-uncurry-this"),h=e("../internals/object-get-own-property-names"),c=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),f=o([].concat);n.exports=s("Reflect","ownKeys")||function(u){var p=h.f(a(u)),m=c.f;return m?f(p,m(u)):p}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,n,i){var s=e("../internals/global");n.exports=s},{"../internals/global":274}],323:[function(e,n,i){n.exports=function(s){try{return{error:!1,value:s()}}catch(o){return{error:!0,value:o}}}},{}],324:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/promise-native-constructor"),h=e("../internals/is-callable"),c=e("../internals/is-forced"),a=e("../internals/inspect-source"),f=e("../internals/well-known-symbol"),l=e("../internals/engine-is-browser"),u=e("../internals/engine-is-deno"),p=e("../internals/is-pure"),m=e("../internals/engine-v8-version"),d=o&&o.prototype,v=f("species"),x=!1,g=h(s.PromiseRejectionEvent),b=c("Promise",function(){var w=a(o),y=w!==String(o);if(!y&&m===66||p&&!(d.catch&&d.finally))return!0;if(!m||m<51||!/native code/.test(w)){var T=new o(function(I){I(1)}),C=function(I){I(function(){},function(){})},M=T.constructor={};if(M[v]=C,x=T.then(function(){})instanceof C,!x)return!0}return!y&&(l||u)&&!g});n.exports={CONSTRUCTOR:b,REJECTION_EVENT:g,SUBCLASSING:x}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,n,i){var s=e("../internals/global");n.exports=s.Promise},{"../internals/global":274}],326:[function(e,n,i){var s=e("../internals/an-object"),o=e("../internals/is-object"),h=e("../internals/new-promise-capability");n.exports=function(c,a){if(s(c),o(a)&&a.constructor===c)return a;var f=h.f(c),l=f.resolve;return l(a),f.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,n,i){var s=e("../internals/promise-native-constructor"),o=e("../internals/check-correctness-of-iteration"),h=e("../internals/promise-constructor-detection").CONSTRUCTOR;n.exports=h||!o(function(c){s.all(c).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,n,i){var s=function(){this.head=null,this.tail=null};s.prototype={add:function(o){var h={item:o,next:null},c=this.tail;c?c.next=h:this.head=h,this.tail=h},get:function(){var o=this.head;if(o){var h=this.head=o.next;return h===null&&(this.tail=null),o.item}}},n.exports=s},{}],329:[function(e,n,i){var s=e("../internals/is-null-or-undefined"),o=TypeError;n.exports=function(h){if(s(h))throw new o("Can't call method on "+h);return h}},{"../internals/is-null-or-undefined":288}],330:[function(e,n,i){var s=e("../internals/get-built-in"),o=e("../internals/define-built-in-accessor"),h=e("../internals/well-known-symbol"),c=e("../internals/descriptors"),a=h("species");n.exports=function(f){var l=s(f);c&&l&&!l[a]&&o(l,a,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,n,i){var s=e("../internals/object-define-property").f,o=e("../internals/has-own-property"),h=e("../internals/well-known-symbol"),c=h("toStringTag");n.exports=function(a,f,l){a&&!l&&(a=a.prototype),a&&!o(a,c)&&s(a,c,{configurable:!0,value:f})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,n,i){var s=e("../internals/shared"),o=e("../internals/uid"),h=s("keys");n.exports=function(c){return h[c]||(h[c]=o(c))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/define-global-property"),h="__core-js_shared__",c=s[h]||o(h,{});n.exports=c},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,n,i){var s=e("../internals/is-pure"),o=e("../internals/shared-store");(n.exports=function(h,c){return o[h]||(o[h]=c!==void 0?c:{})})("versions",[]).push({version:"3.33.0",mode:s?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,n,i){var s=e("../internals/an-object"),o=e("../internals/a-constructor"),h=e("../internals/is-null-or-undefined"),c=e("../internals/well-known-symbol"),a=c("species");n.exports=function(f,l){var u=s(f).constructor,p;return u===void 0||h(p=s(u)[a])?l:o(p)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,n,i){var s=e("../internals/engine-v8-version"),o=e("../internals/fails"),h=e("../internals/global"),c=h.String;n.exports=!!Object.getOwnPropertySymbols&&!o(function(){var a=Symbol("symbol detection");return!c(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&s&&s<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,n,i){var s=e("../internals/function-call"),o=e("../internals/get-built-in"),h=e("../internals/well-known-symbol"),c=e("../internals/define-built-in");n.exports=function(){var a=o("Symbol"),f=a&&a.prototype,l=f&&f.valueOf,u=h("toPrimitive");f&&!f[u]&&c(f,u,function(p){return s(l,this)},{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,n,i){var s=e("../internals/symbol-constructor-detection");n.exports=s&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/function-apply"),h=e("../internals/function-bind-context"),c=e("../internals/is-callable"),a=e("../internals/has-own-property"),f=e("../internals/fails"),l=e("../internals/html"),u=e("../internals/array-slice"),p=e("../internals/document-create-element"),m=e("../internals/validate-arguments-length"),d=e("../internals/engine-is-ios"),v=e("../internals/engine-is-node"),x=s.setImmediate,g=s.clearImmediate,b=s.process,w=s.Dispatch,y=s.Function,T=s.MessageChannel,C=s.String,M=0,I={},B="onreadystatechange",U,j,H,G;f(function(){U=s.location});var L=function(k){if(a(I,k)){var N=I[k];delete I[k],N()}},R=function(k){return function(){L(k)}},F=function(k){L(k.data)},_=function(k){s.postMessage(C(k),U.protocol+"//"+U.host)};(!x||!g)&&(x=function(N){m(arguments.length,1);var P=c(N)?N:y(N),D=u(arguments,1);return I[++M]=function(){o(P,void 0,D)},j(M),M},g=function(N){delete I[N]},v?j=function(k){b.nextTick(R(k))}:w&&w.now?j=function(k){w.now(R(k))}:T&&!d?(H=new T,G=H.port2,H.port1.onmessage=F,j=h(G.postMessage,G)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&U&&U.protocol!=="file:"&&!f(_)?(j=_,s.addEventListener("message",F,!1)):B in p("script")?j=function(k){l.appendChild(p("script"))[B]=function(){l.removeChild(this),L(k)}}:j=function(k){setTimeout(R(k),0)}),n.exports={set:x,clear:g}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,n,i){var s=e("../internals/to-integer-or-infinity"),o=Math.max,h=Math.min;n.exports=function(c,a){var f=s(c);return f<0?o(f+a,0):h(f,a)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,n,i){var s=e("../internals/indexed-object"),o=e("../internals/require-object-coercible");n.exports=function(h){return s(o(h))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,n,i){var s=e("../internals/math-trunc");n.exports=function(o){var h=+o;return h!==h||h===0?0:s(h)}},{"../internals/math-trunc":301}],343:[function(e,n,i){var s=e("../internals/to-integer-or-infinity"),o=Math.min;n.exports=function(h){return h>0?o(s(h),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,n,i){var s=e("../internals/require-object-coercible"),o=Object;n.exports=function(h){return o(s(h))}},{"../internals/require-object-coercible":329}],345:[function(e,n,i){var s=e("../internals/function-call"),o=e("../internals/is-object"),h=e("../internals/is-symbol"),c=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),f=e("../internals/well-known-symbol"),l=TypeError,u=f("toPrimitive");n.exports=function(p,m){if(!o(p)||h(p))return p;var d=c(p,u),v;if(d){if(m===void 0&&(m="default"),v=s(d,p,m),!o(v)||h(v))return v;throw new l("Can't convert object to primitive value")}return m===void 0&&(m="number"),a(p,m)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,n,i){var s=e("../internals/to-primitive"),o=e("../internals/is-symbol");n.exports=function(h){var c=s(h,"string");return o(c)?c:c+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,n,i){var s=e("../internals/well-known-symbol"),o=s("toStringTag"),h={};h[o]="z",n.exports=String(h)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(e,n,i){var s=e("../internals/classof"),o=String;n.exports=function(h){if(s(h)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return o(h)}},{"../internals/classof":236}],349:[function(e,n,i){var s=String;n.exports=function(o){try{return s(o)}catch{return"Object"}}},{}],350:[function(e,n,i){var s=e("../internals/function-uncurry-this"),o=0,h=Math.random(),c=s(1 .toString);n.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+c(++o+h,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,n,i){var s=e("../internals/symbol-constructor-detection");n.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(e,n,i){var s=e("../internals/descriptors"),o=e("../internals/fails");n.exports=s&&o(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,n,i){var s=TypeError;n.exports=function(o,h){if(o<h)throw new s("Not enough arguments");return o}},{}],354:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/is-callable"),h=s.WeakMap;n.exports=o(h)&&/native code/.test(String(h))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,n,i){var s=e("../internals/path"),o=e("../internals/has-own-property"),h=e("../internals/well-known-symbol-wrapped"),c=e("../internals/object-define-property").f;n.exports=function(a){var f=s.Symbol||(s.Symbol={});o(f,a)||c(f,a,{value:h.f(a)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,n,i){var s=e("../internals/well-known-symbol");i.f=s},{"../internals/well-known-symbol":357}],357:[function(e,n,i){var s=e("../internals/global"),o=e("../internals/shared"),h=e("../internals/has-own-property"),c=e("../internals/uid"),a=e("../internals/symbol-constructor-detection"),f=e("../internals/use-symbol-as-uid"),l=s.Symbol,u=o("wks"),p=f?l.for||l:l&&l.withoutSetter||c;n.exports=function(m){return h(u,m)||(u[m]=a&&h(l,m)?l[m]:p("Symbol."+m)),u[m]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/array-iteration").findIndex,h=e("../internals/add-to-unscopables"),c="findIndex",a=!0;c in[]&&Array(1)[c](function(){a=!1}),s({target:"Array",proto:!0,forced:a},{findIndex:function(l){return o(this,l,arguments.length>1?arguments[1]:void 0)}}),h(c)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/array-iteration").find,h=e("../internals/add-to-unscopables"),c="find",a=!0;c in[]&&Array(1)[c](function(){a=!1}),s({target:"Array",proto:!0,forced:a},{find:function(l){return o(this,l,arguments.length>1?arguments[1]:void 0)}}),h(c)},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/array-includes").includes,h=e("../internals/fails"),c=e("../internals/add-to-unscopables"),a=h(function(){return!Array(1).includes()});s({target:"Array",proto:!0,forced:a},{includes:function(l){return o(this,l,arguments.length>1?arguments[1]:void 0)}}),c("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,n,i){var s=e("../internals/to-indexed-object"),o=e("../internals/add-to-unscopables"),h=e("../internals/iterators"),c=e("../internals/internal-state"),a=e("../internals/object-define-property").f,f=e("../internals/iterator-define"),l=e("../internals/create-iter-result-object"),u=e("../internals/is-pure"),p=e("../internals/descriptors"),m="Array Iterator",d=c.set,v=c.getterFor(m);n.exports=f(Array,"Array",function(g,b){d(this,{type:m,target:s(g),index:0,kind:b})},function(){var g=v(this),b=g.target,w=g.kind,y=g.index++;if(!b||y>=b.length)return g.target=void 0,l(void 0,!0);switch(w){case"keys":return l(y,!1);case"values":return l(b[y],!1)}return l([y,b[y]],!1)},"values");var x=h.Arguments=h.Array;if(o("keys"),o("values"),o("entries"),!u&&p&&x.name!=="values")try{a(x,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/get-built-in"),h=e("../internals/function-apply"),c=e("../internals/function-call"),a=e("../internals/function-uncurry-this"),f=e("../internals/fails"),l=e("../internals/is-callable"),u=e("../internals/is-symbol"),p=e("../internals/array-slice"),m=e("../internals/get-json-replacer-function"),d=e("../internals/symbol-constructor-detection"),v=String,x=o("JSON","stringify"),g=a(/./.exec),b=a("".charAt),w=a("".charCodeAt),y=a("".replace),T=a(1 .toString),C=/[\uD800-\uDFFF]/g,M=/^[\uD800-\uDBFF]$/,I=/^[\uDC00-\uDFFF]$/,B=!d||f(function(){var G=o("Symbol")("stringify detection");return x([G])!=="[null]"||x({a:G})!=="{}"||x(Object(G))!=="{}"}),U=f(function(){return x("\uDF06\uD834")!=='"\\udf06\\ud834"'||x("\uDEAD")!=='"\\udead"'}),j=function(G,L){var R=p(arguments),F=m(L);if(!(!l(F)&&(G===void 0||u(G))))return R[1]=function(_,k){if(l(F)&&(k=c(F,this,v(_),k)),!u(k))return k},h(x,null,R)},H=function(G,L,R){var F=b(R,L-1),_=b(R,L+1);return g(M,G)&&!g(I,_)||g(I,G)&&!g(M,F)?"\\u"+T(w(G,0),16):G};x&&s({target:"JSON",stat:!0,arity:3,forced:B||U},{stringify:function(L,R,F){var _=p(arguments),k=h(B?j:x,null,_);return U&&typeof k=="string"?y(k,C,H):k}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,n,i){var s=e("../internals/export");s({target:"Number",stat:!0},{isNaN:function(h){return h!==h}})},{"../internals/export":259}],364:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/object-assign");s({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/symbol-constructor-detection"),h=e("../internals/fails"),c=e("../internals/object-get-own-property-symbols"),a=e("../internals/to-object"),f=!o||h(function(){c.f(1)});s({target:"Object",stat:!0,forced:f},{getOwnPropertySymbols:function(u){var p=c.f;return p?p(a(u)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/to-object"),h=e("../internals/object-keys"),c=e("../internals/fails"),a=c(function(){h(1)});s({target:"Object",stat:!0,forced:a},{keys:function(l){return h(o(l))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/object-to-array").values;s({target:"Object",stat:!0},{values:function(c){return o(c)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/function-call"),h=e("../internals/a-callable"),c=e("../internals/new-promise-capability"),a=e("../internals/perform"),f=e("../internals/iterate"),l=e("../internals/promise-statics-incorrect-iteration");s({target:"Promise",stat:!0,forced:l},{all:function(p){var m=this,d=c.f(m),v=d.resolve,x=d.reject,g=a(function(){var b=h(m.resolve),w=[],y=0,T=1;f(p,function(C){var M=y++,I=!1;T++,o(b,m,C).then(function(B){I||(I=!0,w[M]=B,--T||v(w))},x)}),--T||v(w)});return g.error&&x(g.value),d.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/is-pure"),h=e("../internals/promise-constructor-detection").CONSTRUCTOR,c=e("../internals/promise-native-constructor"),a=e("../internals/get-built-in"),f=e("../internals/is-callable"),l=e("../internals/define-built-in"),u=c&&c.prototype;if(s({target:"Promise",proto:!0,forced:h,real:!0},{catch:function(m){return this.then(void 0,m)}}),!o&&f(c)){var p=a("Promise").prototype.catch;u.catch!==p&&l(u,"catch",p,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/is-pure"),h=e("../internals/engine-is-node"),c=e("../internals/global"),a=e("../internals/function-call"),f=e("../internals/define-built-in"),l=e("../internals/object-set-prototype-of"),u=e("../internals/set-to-string-tag"),p=e("../internals/set-species"),m=e("../internals/a-callable"),d=e("../internals/is-callable"),v=e("../internals/is-object"),x=e("../internals/an-instance"),g=e("../internals/species-constructor"),b=e("../internals/task").set,w=e("../internals/microtask"),y=e("../internals/host-report-errors"),T=e("../internals/perform"),C=e("../internals/queue"),M=e("../internals/internal-state"),I=e("../internals/promise-native-constructor"),B=e("../internals/promise-constructor-detection"),U=e("../internals/new-promise-capability"),j="Promise",H=B.CONSTRUCTOR,G=B.REJECTION_EVENT,L=B.SUBCLASSING,R=M.getterFor(j),F=M.set,_=I&&I.prototype,k=I,N=_,P=c.TypeError,D=c.document,A=c.process,S=U.f,E=S,O=!!(D&&D.createEvent&&c.dispatchEvent),z="unhandledrejection",J="rejectionhandled",re=0,se=1,Ce=2,Y=1,q=2,K,Q,he,we,ae=function(ee){var ne;return v(ee)&&d(ne=ee.then)?ne:!1},te=function(ee,ne){var de=ne.value,_e=ne.state===se,Re=_e?ee.ok:ee.fail,Ae=ee.resolve,Ne=ee.reject,Xe=ee.domain,Le,xe,Me;try{Re?(_e||(ne.rejection===q&&ye(ne),ne.rejection=Y),Re===!0?Le=de:(Xe&&Xe.enter(),Le=Re(de),Xe&&(Xe.exit(),Me=!0)),Le===ee.promise?Ne(new P("Promise-chain cycle")):(xe=ae(Le))?a(xe,Le,Ae,Ne):Ae(Le)):Ne(de)}catch(Be){Xe&&!Me&&Xe.exit(),Ne(Be)}},Z=function(ee,ne){ee.notified||(ee.notified=!0,w(function(){for(var de=ee.reactions,_e;_e=de.get();)te(_e,ee);ee.notified=!1,ne&&!ee.rejection&&V(ee)}))},W=function(ee,ne,de){var _e,Re;O?(_e=D.createEvent("Event"),_e.promise=ne,_e.reason=de,_e.initEvent(ee,!1,!0),c.dispatchEvent(_e)):_e={promise:ne,reason:de},!G&&(Re=c["on"+ee])?Re(_e):ee===z&&y("Unhandled promise rejection",de)},V=function(ee){a(b,c,function(){var ne=ee.facade,de=ee.value,_e=fe(ee),Re;if(_e&&(Re=T(function(){h?A.emit("unhandledRejection",de,ne):W(z,ne,de)}),ee.rejection=h||fe(ee)?q:Y,Re.error))throw Re.value})},fe=function(ee){return ee.rejection!==Y&&!ee.parent},ye=function(ee){a(b,c,function(){var ne=ee.facade;h?A.emit("rejectionHandled",ne):W(J,ne,ee.value)})},X=function(ee,ne,de){return function(_e){ee(ne,_e,de)}},ve=function(ee,ne,de){ee.done||(ee.done=!0,de&&(ee=de),ee.value=ne,ee.state=Ce,Z(ee,!0))},ke=function(ee,ne,de){if(!ee.done){ee.done=!0,de&&(ee=de);try{if(ee.facade===ne)throw new P("Promise can't be resolved itself");var _e=ae(ne);_e?w(function(){var Re={done:!1};try{a(_e,ne,X(ke,Re,ee),X(ve,Re,ee))}catch(Ae){ve(Re,Ae,ee)}}):(ee.value=ne,ee.state=se,Z(ee,!1))}catch(Re){ve({done:!1},Re,ee)}}};if(H&&(k=function(ne){x(this,N),m(ne),a(K,this);var de=R(this);try{ne(X(ke,de),X(ve,de))}catch(_e){ve(de,_e)}},N=k.prototype,K=function(ne){F(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:re,value:void 0})},K.prototype=f(N,"then",function(ne,de){var _e=R(this),Re=S(g(this,k));return _e.parent=!0,Re.ok=d(ne)?ne:!0,Re.fail=d(de)&&de,Re.domain=h?A.domain:void 0,_e.state===re?_e.reactions.add(Re):w(function(){te(Re,_e)}),Re.promise}),Q=function(){var ee=new K,ne=R(ee);this.promise=ee,this.resolve=X(ke,ne),this.reject=X(ve,ne)},U.f=S=function(ee){return ee===k||ee===he?new Q(ee):E(ee)},!o&&d(I)&&_!==Object.prototype)){we=_.then,L||f(_,"then",function(ne,de){var _e=this;return new k(function(Re,Ae){a(we,_e,Re,Ae)}).then(ne,de)},{unsafe:!0});try{delete _.constructor}catch{}l&&l(_,N)}s({global:!0,constructor:!0,wrap:!0,forced:H},{Promise:k}),u(k,j,!1,!0),p(j)},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/is-pure"),h=e("../internals/promise-native-constructor"),c=e("../internals/fails"),a=e("../internals/get-built-in"),f=e("../internals/is-callable"),l=e("../internals/species-constructor"),u=e("../internals/promise-resolve"),p=e("../internals/define-built-in"),m=h&&h.prototype,d=!!h&&c(function(){m.finally.call({then:function(){}},function(){})});if(s({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(x){var g=l(this,a("Promise")),b=f(x);return this.then(b?function(w){return u(g,x()).then(function(){return w})}:x,b?function(w){return u(g,x()).then(function(){throw w})}:x)}}),!o&&f(h)){var v=a("Promise").prototype.finally;m.finally!==v&&p(m,"finally",v,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,n,i){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/function-call"),h=e("../internals/a-callable"),c=e("../internals/new-promise-capability"),a=e("../internals/perform"),f=e("../internals/iterate"),l=e("../internals/promise-statics-incorrect-iteration");s({target:"Promise",stat:!0,forced:l},{race:function(p){var m=this,d=c.f(m),v=d.reject,x=a(function(){var g=h(m.resolve);f(p,function(b){o(g,m,b).then(d.resolve,v)})});return x.error&&v(x.value),d.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/function-call"),h=e("../internals/new-promise-capability"),c=e("../internals/promise-constructor-detection").CONSTRUCTOR;s({target:"Promise",stat:!0,forced:c},{reject:function(f){var l=h.f(this);return o(l.reject,void 0,f),l.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/get-built-in"),h=e("../internals/is-pure"),c=e("../internals/promise-native-constructor"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,f=e("../internals/promise-resolve"),l=o("Promise"),u=h&&!a;s({target:"Promise",stat:!0,forced:h||a},{resolve:function(m){return f(u&&this===l?c:this,m)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/function-uncurry-this"),h=e("../internals/to-absolute-index"),c=RangeError,a=String.fromCharCode,f=String.fromCodePoint,l=o([].join),u=!!f&&f.length!==1;s({target:"String",stat:!0,arity:1,forced:u},{fromCodePoint:function(m){for(var d=[],v=arguments.length,x=0,g;v>x;){if(g=+arguments[x++],h(g,1114111)!==g)throw new c(g+" is not a valid code point");d[x]=g<65536?a(g):a(((g-=65536)>>10)+55296,g%1024+56320)}return l(d,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/function-uncurry-this"),h=e("../internals/not-a-regexp"),c=e("../internals/require-object-coercible"),a=e("../internals/to-string"),f=e("../internals/correct-is-regexp-logic"),l=o("".indexOf);s({target:"String",proto:!0,forced:!f("includes")},{includes:function(p){return!!~l(a(c(this)),a(h(p)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,n,i){var s=e("../internals/well-known-symbol-define");s("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/global"),h=e("../internals/function-call"),c=e("../internals/function-uncurry-this"),a=e("../internals/is-pure"),f=e("../internals/descriptors"),l=e("../internals/symbol-constructor-detection"),u=e("../internals/fails"),p=e("../internals/has-own-property"),m=e("../internals/object-is-prototype-of"),d=e("../internals/an-object"),v=e("../internals/to-indexed-object"),x=e("../internals/to-property-key"),g=e("../internals/to-string"),b=e("../internals/create-property-descriptor"),w=e("../internals/object-create"),y=e("../internals/object-keys"),T=e("../internals/object-get-own-property-names"),C=e("../internals/object-get-own-property-names-external"),M=e("../internals/object-get-own-property-symbols"),I=e("../internals/object-get-own-property-descriptor"),B=e("../internals/object-define-property"),U=e("../internals/object-define-properties"),j=e("../internals/object-property-is-enumerable"),H=e("../internals/define-built-in"),G=e("../internals/define-built-in-accessor"),L=e("../internals/shared"),R=e("../internals/shared-key"),F=e("../internals/hidden-keys"),_=e("../internals/uid"),k=e("../internals/well-known-symbol"),N=e("../internals/well-known-symbol-wrapped"),P=e("../internals/well-known-symbol-define"),D=e("../internals/symbol-define-to-primitive"),A=e("../internals/set-to-string-tag"),S=e("../internals/internal-state"),E=e("../internals/array-iteration").forEach,O=R("hidden"),z="Symbol",J="prototype",re=S.set,se=S.getterFor(z),Ce=Object[J],Y=o.Symbol,q=Y&&Y[J],K=o.RangeError,Q=o.TypeError,he=o.QObject,we=I.f,ae=B.f,te=C.f,Z=j.f,W=c([].push),V=L("symbols"),fe=L("op-symbols"),ye=L("wks"),X=!he||!he[J]||!he[J].findChild,ve=function(Le,xe,Me){var Be=we(Ce,xe);Be&&delete Ce[xe],ae(Le,xe,Me),Be&&Le!==Ce&&ae(Ce,xe,Be)},ke=f&&u(function(){return w(ae({},"a",{get:function(){return ae(this,"a",{value:7}).a}})).a!==7})?ve:ae,ee=function(Le,xe){var Me=V[Le]=w(q);return re(Me,{type:z,tag:Le,description:xe}),f||(Me.description=xe),Me},ne=function(xe,Me,Be){xe===Ce&&ne(fe,Me,Be),d(xe);var Ve=x(Me);return d(Be),p(V,Ve)?(Be.enumerable?(p(xe,O)&&xe[O][Ve]&&(xe[O][Ve]=!1),Be=w(Be,{enumerable:b(0,!1)})):(p(xe,O)||ae(xe,O,b(1,{})),xe[O][Ve]=!0),ke(xe,Ve,Be)):ae(xe,Ve,Be)},de=function(xe,Me){d(xe);var Be=v(Me),Ve=y(Be).concat(Xe(Be));return E(Ve,function(ot){(!f||h(Re,Be,ot))&&ne(xe,ot,Be[ot])}),xe},_e=function(xe,Me){return Me===void 0?w(xe):de(w(xe),Me)},Re=function(xe){var Me=x(xe),Be=h(Z,this,Me);return this===Ce&&p(V,Me)&&!p(fe,Me)?!1:Be||!p(this,Me)||!p(V,Me)||p(this,O)&&this[O][Me]?Be:!0},Ae=function(xe,Me){var Be=v(xe),Ve=x(Me);if(!(Be===Ce&&p(V,Ve)&&!p(fe,Ve))){var ot=we(Be,Ve);return ot&&p(V,Ve)&&!(p(Be,O)&&Be[O][Ve])&&(ot.enumerable=!0),ot}},Ne=function(xe){var Me=te(v(xe)),Be=[];return E(Me,function(Ve){!p(V,Ve)&&!p(F,Ve)&&W(Be,Ve)}),Be},Xe=function(Le){var xe=Le===Ce,Me=te(xe?fe:v(Le)),Be=[];return E(Me,function(Ve){p(V,Ve)&&(!xe||p(Ce,Ve))&&W(Be,V[Ve])}),Be};l||(Y=function(){if(m(q,this))throw new Q("Symbol is not a constructor");var xe=!arguments.length||arguments[0]===void 0?void 0:g(arguments[0]),Me=_(xe),Be=function(Ve){this===Ce&&h(Be,fe,Ve),p(this,O)&&p(this[O],Me)&&(this[O][Me]=!1);var ot=b(1,Ve);try{ke(this,Me,ot)}catch(ct){if(!(ct instanceof K))throw ct;ve(this,Me,ot)}};return f&&X&&ke(Ce,Me,{configurable:!0,set:Be}),ee(Me,xe)},q=Y[J],H(q,"toString",function(){return se(this).tag}),H(Y,"withoutSetter",function(Le){return ee(_(Le),Le)}),j.f=Re,B.f=ne,U.f=de,I.f=Ae,T.f=C.f=Ne,M.f=Xe,N.f=function(Le){return ee(k(Le),Le)},f&&(G(q,"description",{configurable:!0,get:function(){return se(this).description}}),a||H(Ce,"propertyIsEnumerable",Re,{unsafe:!0}))),s({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:Y}),E(y(ye),function(Le){P(Le)}),s({target:z,stat:!0,forced:!l},{useSetter:function(){X=!0},useSimple:function(){X=!1}}),s({target:"Object",stat:!0,forced:!l,sham:!f},{create:_e,defineProperty:ne,defineProperties:de,getOwnPropertyDescriptor:Ae}),s({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:Ne}),D(),A(Y,z),F[O]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/get-built-in"),h=e("../internals/has-own-property"),c=e("../internals/to-string"),a=e("../internals/shared"),f=e("../internals/symbol-registry-detection"),l=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");s({target:"Symbol",stat:!0,forced:!f},{for:function(p){var m=c(p);if(h(l,m))return l[m];var d=o("Symbol")(m);return l[m]=d,u[d]=m,d}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,n,i){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,n,i){var s=e("../internals/export"),o=e("../internals/has-own-property"),h=e("../internals/is-symbol"),c=e("../internals/try-to-string"),a=e("../internals/shared"),f=e("../internals/symbol-registry-detection"),l=a("symbol-to-string-registry");s({target:"Symbol",stat:!0,forced:!f},{keyFor:function(p){if(!h(p))throw new TypeError(c(p)+" is not a symbol");if(o(l,p))return l[p]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,n,i){function s(w){return Array.isArray?Array.isArray(w):b(w)==="[object Array]"}i.isArray=s;function o(w){return typeof w=="boolean"}i.isBoolean=o;function h(w){return w===null}i.isNull=h;function c(w){return w==null}i.isNullOrUndefined=c;function a(w){return typeof w=="number"}i.isNumber=a;function f(w){return typeof w=="string"}i.isString=f;function l(w){return typeof w=="symbol"}i.isSymbol=l;function u(w){return w===void 0}i.isUndefined=u;function p(w){return b(w)==="[object RegExp]"}i.isRegExp=p;function m(w){return typeof w=="object"&&w!==null}i.isObject=m;function d(w){return b(w)==="[object Date]"}i.isDate=d;function v(w){return b(w)==="[object Error]"||w instanceof Error}i.isError=v;function x(w){return typeof w=="function"}i.isFunction=x;function g(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||typeof w>"u"}i.isPrimitive=g,i.isBuffer=e("buffer").Buffer.isBuffer;function b(w){return Object.prototype.toString.call(w)}},{buffer:220}],384:[function(e,n,i){(function(s){(function(){var o=e("elliptic"),h=e("bn.js");n.exports=function(u){return new a(u)};var c={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}};c.p224=c.secp224r1,c.p256=c.secp256r1=c.prime256v1,c.p192=c.secp192r1=c.prime192v1,c.p384=c.secp384r1,c.p521=c.secp521r1;function a(l){this.curveType=c[l],this.curveType||(this.curveType={name:l}),this.curve=new o.ec(this.curveType.name),this.keys=void 0}a.prototype.generateKeys=function(l,u){return this.keys=this.curve.genKeyPair(),this.getPublicKey(l,u)},a.prototype.computeSecret=function(l,u,p){u=u||"utf8",s.isBuffer(l)||(l=new s(l,u));var m=this.curve.keyFromPublic(l).getPublic(),d=m.mul(this.keys.getPrivate()).getX();return f(d,p,this.curveType.byteLength)},a.prototype.getPublicKey=function(l,u){var p=this.keys.getPublic(u==="compressed",!0);return u==="hybrid"&&(p[p.length-1]%2?p[0]=7:p[0]=6),f(p,l)},a.prototype.getPrivateKey=function(l){return f(this.keys.getPrivate(),l)},a.prototype.setPublicKey=function(l,u){return u=u||"utf8",s.isBuffer(l)||(l=new s(l,u)),this.keys._importPublic(l),this},a.prototype.setPrivateKey=function(l,u){u=u||"utf8",s.isBuffer(l)||(l=new s(l,u));var p=new h(l);return p=p.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(p),this};function f(l,u,p){Array.isArray(l)||(l=l.toArray());var m=new s(l);if(p&&m.length<p){var d=new s(p-m.length);d.fill(0),m=s.concat([d,m])}return u?m.toString(u):m}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,n,i){arguments[4][184][0].apply(i,arguments)},{buffer:188,dup:184}],386:[function(e,n,i){var s=e("inherits"),o=e("md5.js"),h=e("ripemd160"),c=e("sha.js"),a=e("cipher-base");function f(l){a.call(this,"digest"),this._hash=l}s(f,a),f.prototype._update=function(l){this._hash.update(l)},f.prototype._final=function(){return this._hash.digest()},n.exports=function(u){return u=u.toLowerCase(),u==="md5"?new o:u==="rmd160"||u==="ripemd160"?new h:new f(c(u))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,n,i){var s=e("md5.js");n.exports=function(o){return new s().update(o).digest()}},{"md5.js":450}],388:[function(e,n,i){var s=e("inherits"),o=e("./legacy"),h=e("cipher-base"),c=e("safe-buffer").Buffer,a=e("create-hash/md5"),f=e("ripemd160"),l=e("sha.js"),u=c.alloc(128);function p(m,d){h.call(this,"digest"),typeof d=="string"&&(d=c.from(d));var v=m==="sha512"||m==="sha384"?128:64;if(this._alg=m,this._key=d,d.length>v){var x=m==="rmd160"?new f:l(m);d=x.update(d).digest()}else d.length<v&&(d=c.concat([d,u],v));for(var g=this._ipad=c.allocUnsafe(v),b=this._opad=c.allocUnsafe(v),w=0;w<v;w++)g[w]=d[w]^54,b[w]=d[w]^92;this._hash=m==="rmd160"?new f:l(m),this._hash.update(g)}s(p,h),p.prototype._update=function(m){this._hash.update(m)},p.prototype._final=function(){var m=this._hash.digest(),d=this._alg==="rmd160"?new f:l(this._alg);return d.update(this._opad).update(m).digest()},n.exports=function(d,v){return d=d.toLowerCase(),d==="rmd160"||d==="ripemd160"?new p("rmd160",v):d==="md5"?new o(a,v):new p(d,v)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,n,i){var s=e("inherits"),o=e("safe-buffer").Buffer,h=e("cipher-base"),c=o.alloc(128),a=64;function f(l,u){h.call(this,"digest"),typeof u=="string"&&(u=o.from(u)),this._alg=l,this._key=u,u.length>a?u=l(u):u.length<a&&(u=o.concat([u,c],a));for(var p=this._ipad=o.allocUnsafe(a),m=this._opad=o.allocUnsafe(a),d=0;d<a;d++)p[d]=u[d]^54,m[d]=u[d]^92;this._hash=[p]}s(f,h),f.prototype._update=function(l){this._hash.push(l)},f.prototype._final=function(){var l=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,l]))},n.exports=f},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,n,i){i.randomBytes=i.rng=i.pseudoRandomBytes=i.prng=e("randombytes"),i.createHash=i.Hash=e("create-hash"),i.createHmac=i.Hmac=e("create-hmac");var s=e("browserify-sign/algos"),o=Object.keys(s),h=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);i.getHashes=function(){return h};var c=e("pbkdf2");i.pbkdf2=c.pbkdf2,i.pbkdf2Sync=c.pbkdf2Sync;var a=e("browserify-cipher");i.Cipher=a.Cipher,i.createCipher=a.createCipher,i.Cipheriv=a.Cipheriv,i.createCipheriv=a.createCipheriv,i.Decipher=a.Decipher,i.createDecipher=a.createDecipher,i.Decipheriv=a.Decipheriv,i.createDecipheriv=a.createDecipheriv,i.getCiphers=a.getCiphers,i.listCiphers=a.listCiphers;var f=e("diffie-hellman");i.DiffieHellmanGroup=f.DiffieHellmanGroup,i.createDiffieHellmanGroup=f.createDiffieHellmanGroup,i.getDiffieHellman=f.getDiffieHellman,i.createDiffieHellman=f.createDiffieHellman,i.DiffieHellman=f.DiffieHellman;var l=e("browserify-sign");i.createSign=l.createSign,i.Sign=l.Sign,i.createVerify=l.createVerify,i.Verify=l.Verify,i.createECDH=e("create-ecdh");var u=e("public-encrypt");i.publicEncrypt=u.publicEncrypt,i.privateEncrypt=u.privateEncrypt,i.publicDecrypt=u.publicDecrypt,i.privateDecrypt=u.privateDecrypt;var p=e("randomfill");i.randomFill=p.randomFill,i.randomFillSync=p.randomFillSync,i.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
||
`))},i.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":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,n,i){(function(s,o){typeof i=="object"&&typeof n<"u"?n.exports=o():(s=typeof globalThis<"u"?globalThis:s||self).dayjs=o()})(void 0,function(){var s=1e3,o=6e4,h=36e5,c="millisecond",a="second",f="minute",l="hour",u="day",p="week",m="month",d="quarter",v="year",x="date",g="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,y={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(F){var _=["th","st","nd","rd"],k=F%100;return"["+F+(_[(k-20)%10]||_[k]||_[0])+"]"}},T=function(F,_,k){var N=String(F);return!N||N.length>=_?F:""+Array(_+1-N.length).join(k)+F},C={s:T,z:function(F){var _=-F.utcOffset(),k=Math.abs(_),N=Math.floor(k/60),P=k%60;return(_<=0?"+":"-")+T(N,2,"0")+":"+T(P,2,"0")},m:function F(_,k){if(_.date()<k.date())return-F(k,_);var N=12*(k.year()-_.year())+(k.month()-_.month()),P=_.clone().add(N,m),D=k-P<0,A=_.clone().add(N+(D?-1:1),m);return+(-(N+(k-P)/(D?P-A:A-P))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:m,y:v,w:p,d:u,D:x,h:l,m:f,s:a,ms:c,Q:d}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},M="en",I={};I[M]=y;var B="$isDayjsObject",U=function(F){return F instanceof L||!(!F||!F[B])},j=function F(_,k,N){var P;if(!_)return M;if(typeof _=="string"){var D=_.toLowerCase();I[D]&&(P=D),k&&(I[D]=k,P=D);var A=_.split("-");if(!P&&A.length>1)return F(A[0])}else{var S=_.name;I[S]=_,P=S}return!N&&P&&(M=P),P||!N&&M},H=function(F,_){if(U(F))return F.clone();var k=typeof _=="object"?_:{};return k.date=F,k.args=arguments,new L(k)},G=C;G.l=j,G.i=U,G.w=function(F,_){return H(F,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var L=function(){function F(k){this.$L=j(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[B]=!0}var _=F.prototype;return _.parse=function(k){this.$d=function(N){var P=N.date,D=N.utc;if(P===null)return new Date(NaN);if(G.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var A=P.match(b);if(A){var S=A[2]-1||0,E=(A[7]||"0").substring(0,3);return D?new Date(Date.UTC(A[1],S,A[3]||1,A[4]||0,A[5]||0,A[6]||0,E)):new Date(A[1],S,A[3]||1,A[4]||0,A[5]||0,A[6]||0,E)}}return new Date(P)}(k),this.init()},_.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},_.$utils=function(){return G},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function(k,N){var P=H(k);return this.startOf(N)<=P&&P<=this.endOf(N)},_.isAfter=function(k,N){return H(k)<this.startOf(N)},_.isBefore=function(k,N){return this.endOf(N)<H(k)},_.$g=function(k,N,P){return G.u(k)?this[N]:this.set(P,k)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(k,N){var P=this,D=!!G.u(N)||N,A=G.p(k),S=function(Y,q){var K=G.w(P.$u?Date.UTC(P.$y,q,Y):new Date(P.$y,q,Y),P);return D?K:K.endOf(u)},E=function(Y,q){return G.w(P.toDate()[Y].apply(P.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(q)),P)},O=this.$W,z=this.$M,J=this.$D,re="set"+(this.$u?"UTC":"");switch(A){case v:return D?S(1,0):S(31,11);case m:return D?S(1,z):S(0,z+1);case p:var se=this.$locale().weekStart||0,Ce=(O<se?O+7:O)-se;return S(D?J-Ce:J+(6-Ce),z);case u:case x:return E(re+"Hours",0);case l:return E(re+"Minutes",1);case f:return E(re+"Seconds",2);case a:return E(re+"Milliseconds",3);default:return this.clone()}},_.endOf=function(k){return this.startOf(k,!1)},_.$set=function(k,N){var P,D=G.p(k),A="set"+(this.$u?"UTC":""),S=(P={},P[u]=A+"Date",P[x]=A+"Date",P[m]=A+"Month",P[v]=A+"FullYear",P[l]=A+"Hours",P[f]=A+"Minutes",P[a]=A+"Seconds",P[c]=A+"Milliseconds",P)[D],E=D===u?this.$D+(N-this.$W):N;if(D===m||D===v){var O=this.clone().set(x,1);O.$d[S](E),O.init(),this.$d=O.set(x,Math.min(this.$D,O.daysInMonth())).$d}else S&&this.$d[S](E);return this.init(),this},_.set=function(k,N){return this.clone().$set(k,N)},_.get=function(k){return this[G.p(k)]()},_.add=function(k,N){var P,D=this;k=Number(k);var A=G.p(N),S=function(z){var J=H(D);return G.w(J.date(J.date()+Math.round(z*k)),D)};if(A===m)return this.set(m,this.$M+k);if(A===v)return this.set(v,this.$y+k);if(A===u)return S(1);if(A===p)return S(7);var E=(P={},P[f]=o,P[l]=h,P[a]=s,P)[A]||1,O=this.$d.getTime()+k*E;return G.w(O,this)},_.subtract=function(k,N){return this.add(-1*k,N)},_.format=function(k){var N=this,P=this.$locale();if(!this.isValid())return P.invalidDate||g;var D=k||"YYYY-MM-DDTHH:mm:ssZ",A=G.z(this),S=this.$H,E=this.$m,O=this.$M,z=P.weekdays,J=P.months,re=P.meridiem,se=function(q,K,Q,he){return q&&(q[K]||q(N,D))||Q[K].slice(0,he)},Ce=function(q){return G.s(S%12||12,q,"0")},Y=re||function(q,K,Q){var he=q<12?"AM":"PM";return Q?he.toLowerCase():he};return D.replace(w,function(q,K){return K||function(Q){switch(Q){case"YY":return String(N.$y).slice(-2);case"YYYY":return G.s(N.$y,4,"0");case"M":return O+1;case"MM":return G.s(O+1,2,"0");case"MMM":return se(P.monthsShort,O,J,3);case"MMMM":return se(J,O);case"D":return N.$D;case"DD":return G.s(N.$D,2,"0");case"d":return String(N.$W);case"dd":return se(P.weekdaysMin,N.$W,z,2);case"ddd":return se(P.weekdaysShort,N.$W,z,3);case"dddd":return z[N.$W];case"H":return String(S);case"HH":return G.s(S,2,"0");case"h":return Ce(1);case"hh":return Ce(2);case"a":return Y(S,E,!0);case"A":return Y(S,E,!1);case"m":return String(E);case"mm":return G.s(E,2,"0");case"s":return String(N.$s);case"ss":return G.s(N.$s,2,"0");case"SSS":return G.s(N.$ms,3,"0");case"Z":return A}return null}(q)||A.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(k,N,P){var D,A=this,S=G.p(N),E=H(k),O=(E.utcOffset()-this.utcOffset())*o,z=this-E,J=function(){return G.m(A,E)};switch(S){case v:D=J()/12;break;case m:D=J();break;case d:D=J()/3;break;case p:D=(z-O)/6048e5;break;case u:D=(z-O)/864e5;break;case l:D=z/h;break;case f:D=z/o;break;case a:D=z/s;break;default:D=z}return P?D:G.a(D)},_.daysInMonth=function(){return this.endOf(m).$D},_.$locale=function(){return I[this.$L]},_.locale=function(k,N){if(!k)return this.$L;var P=this.clone(),D=j(k,N,!0);return D&&(P.$L=D),P},_.clone=function(){return G.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},F}(),R=L.prototype;return H.prototype=R,[["$ms",c],["$s",a],["$m",f],["$H",l],["$W",u],["$M",m],["$y",v],["$D",x]].forEach(function(F){R[F[1]]=function(_){return this.$g(_,F[0],F[1])}}),H.extend=function(F,_){return F.$i||(F(_,L,H),F.$i=!0),H},H.locale=j,H.isDayjs=U,H.unix=function(F){return H(1e3*F)},H.en=I[M],H.Ls=I,H.p={},H})},{}],392:[function(e,n,i){(function(s,o){typeof i=="object"&&typeof n<"u"?n.exports=o():(s=typeof globalThis<"u"?globalThis:s||self).dayjs_plugin_customParseFormat=o()})(void 0,function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,h=/\d\d/,c=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,f={},l=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(b){this[g]=+b}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var w=b.match(/([+-]|\d\d)/g),y=60*w[1]+(+w[2]||0);return y===0?0:w[0]==="+"?-y:y}(g)}],m=function(g){var b=f[g];return b&&(b.indexOf?b:b.s.concat(b.f))},d=function(g,b){var w,y=f.meridiem;if(y){for(var T=1;T<=24;T+=1)if(g.indexOf(y(T,0,b))>-1){w=T>12;break}}else w=g===(b?"pm":"PM");return w},v={A:[a,function(g){this.afternoon=d(g,!1)}],a:[a,function(g){this.afternoon=d(g,!0)}],S:[/\d/,function(g){this.milliseconds=100*+g}],SS:[h,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[c,u("seconds")],ss:[c,u("seconds")],m:[c,u("minutes")],mm:[c,u("minutes")],H:[c,u("hours")],h:[c,u("hours")],HH:[c,u("hours")],hh:[c,u("hours")],D:[c,u("day")],DD:[h,u("day")],Do:[a,function(g){var b=f.ordinal,w=g.match(/\d+/);if(this.day=w[0],b)for(var y=1;y<=31;y+=1)b(y).replace(/\[|\]/g,"")===g&&(this.day=y)}],M:[c,u("month")],MM:[h,u("month")],MMM:[a,function(g){var b=m("months"),w=(m("monthsShort")||b.map(function(y){return y.slice(0,3)})).indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[a,function(g){var b=m("months").indexOf(g)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[h,function(g){this.year=l(g)}],YYYY:[/\d{4}/,u("year")],Z:p,ZZ:p};function x(g){var b,w;b=g,w=f&&f.formats;for(var y=(g=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(j,H,G){var L=G&&G.toUpperCase();return H||w[G]||s[G]||w[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,F,_){return F||_.slice(1)})})).match(o),T=y.length,C=0;C<T;C+=1){var M=y[C],I=v[M],B=I&&I[0],U=I&&I[1];y[C]=U?{regex:B,parser:U}:M.replace(/^\[|\]$/g,"")}return function(j){for(var H={},G=0,L=0;G<T;G+=1){var R=y[G];if(typeof R=="string")L+=R.length;else{var F=R.regex,_=R.parser,k=j.slice(L),N=F.exec(k)[0];_.call(H,N),j=j.replace(N,"")}}return function(P){var D=P.afternoon;if(D!==void 0){var A=P.hours;D?A<12&&(P.hours+=12):A===12&&(P.hours=0),delete P.afternoon}}(H),H}}return function(g,b,w){w.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(l=g.parseTwoDigitYear);var y=b.prototype,T=y.parse;y.parse=function(C){var M=C.date,I=C.utc,B=C.args;this.$u=I;var U=B[1];if(typeof U=="string"){var j=B[2]===!0,H=B[3]===!0,G=j||H,L=B[2];H&&(L=B[2]),f=this.$locale(),!j&&L&&(f=w.Ls[L]),this.$d=function(k,N,P){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*k);var D=x(N)(k),A=D.year,S=D.month,E=D.day,O=D.hours,z=D.minutes,J=D.seconds,re=D.milliseconds,se=D.zone,Ce=new Date,Y=E||(A||S?1:Ce.getDate()),q=A||Ce.getFullYear(),K=0;A&&!S||(K=S>0?S-1:Ce.getMonth());var Q=O||0,he=z||0,we=J||0,ae=re||0;return se?new Date(Date.UTC(q,K,Y,Q,he,we,ae+60*se.offset*1e3)):P?new Date(Date.UTC(q,K,Y,Q,he,we,ae)):new Date(q,K,Y,Q,he,we,ae)}catch{return new Date("")}}(M,U,I),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),G&&M!=this.format(U)&&(this.$d=new Date("")),f={}}else if(U instanceof Array)for(var R=U.length,F=1;F<=R;F+=1){B[1]=U[F-1];var _=w.apply(this,B);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}F===R&&(this.$d=new Date(""))}else T.call(this,C)}}})},{}],393:[function(e,n,i){(function(s,o){typeof i=="object"&&typeof n<"u"?n.exports=o():(s=typeof globalThis<"u"?globalThis:s||self).dayjs_plugin_utc=o()})(void 0,function(){var s="minute",o=/[+-]\d\d(?::?\d\d)?/g,h=/([+-]|\d\d)/g;return function(c,a,f){var l=a.prototype;f.utc=function(g){var b={date:g,utc:!0,args:arguments};return new a(b)},l.utc=function(g){var b=f(this.toDate(),{locale:this.$L,utc:!0});return g?b.add(this.utcOffset(),s):b},l.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var p=l.init;l.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else p.call(this)};var m=l.utcOffset;l.utcOffset=function(g,b){var w=this.$utils().u;if(w(g))return this.$u?0:w(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=function(M){M===void 0&&(M="");var I=M.match(o);if(!I)return null;var B=(""+I[0]).match(h)||["-",0,0],U=B[0],j=60*+B[1]+ +B[2];return j===0?0:U==="+"?j:-j}(g),g===null))return this;var y=Math.abs(g)<=16?60*g:g,T=this;if(b)return T.$offset=y,T.$u=g===0,T;if(g!==0){var C=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(T=this.local().add(y+C,s)).$offset=y,T.$x.$localOffset=C}else T=this.utc();return T};var d=l.format;l.format=function(g){var b=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,b)},l.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var v=l.toDate;l.toDate=function(g){return g==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():v.call(this)};var x=l.diff;l.diff=function(g,b,w){if(g&&this.$u===g.$u)return x.call(this,g,b,w);var y=this.local(),T=f(g).local();return x.call(y,T,b,w)}}})},{}],394:[function(e,n,i){i.utils=e("./des/utils"),i.Cipher=e("./des/cipher"),i.DES=e("./des/des"),i.CBC=e("./des/cbc"),i.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,n,i){var s=e("minimalistic-assert"),o=e("inherits"),h={};function c(f){s.equal(f.length,8,"Invalid IV length"),this.iv=new Array(8);for(var l=0;l<this.iv.length;l++)this.iv[l]=f[l]}function a(f){function l(d){f.call(this,d),this._cbcInit()}o(l,f);for(var u=Object.keys(h),p=0;p<u.length;p++){var m=u[p];l.prototype[m]=h[m]}return l.create=function(v){return new l(v)},l}i.instantiate=a,h._cbcInit=function(){var l=new c(this.options.iv);this._cbcState=l},h._update=function(l,u,p,m){var d=this._cbcState,v=this.constructor.super_.prototype,x=d.iv;if(this.type==="encrypt"){for(var g=0;g<this.blockSize;g++)x[g]^=l[u+g];v._update.call(this,x,0,p,m);for(var g=0;g<this.blockSize;g++)x[g]=p[m+g]}else{v._update.call(this,l,u,p,m);for(var g=0;g<this.blockSize;g++)p[m+g]^=x[g];for(var g=0;g<this.blockSize;g++)x[g]=l[u+g]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,n,i){var s=e("minimalistic-assert");function o(h){this.options=h,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=h.padding!==!1}n.exports=o,o.prototype._init=function(){},o.prototype.update=function(c){return c.length===0?[]:this.type==="decrypt"?this._updateDecrypt(c):this._updateEncrypt(c)},o.prototype._buffer=function(c,a){for(var f=Math.min(this.buffer.length-this.bufferOff,c.length-a),l=0;l<f;l++)this.buffer[this.bufferOff+l]=c[a+l];return this.bufferOff+=f,f},o.prototype._flushBuffer=function(c,a){return this._update(this.buffer,0,c,a),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(c){var a=0,f=0,l=(this.bufferOff+c.length)/this.blockSize|0,u=new Array(l*this.blockSize);this.bufferOff!==0&&(a+=this._buffer(c,a),this.bufferOff===this.buffer.length&&(f+=this._flushBuffer(u,f)));for(var p=c.length-(c.length-a)%this.blockSize;a<p;a+=this.blockSize)this._update(c,a,u,f),f+=this.blockSize;for(;a<c.length;a++,this.bufferOff++)this.buffer[this.bufferOff]=c[a];return u},o.prototype._updateDecrypt=function(c){for(var a=0,f=0,l=Math.ceil((this.bufferOff+c.length)/this.blockSize)-1,u=new Array(l*this.blockSize);l>0;l--)a+=this._buffer(c,a),f+=this._flushBuffer(u,f);return a+=this._buffer(c,a),u},o.prototype.final=function(c){var a;c&&(a=this.update(c));var f;return this.type==="encrypt"?f=this._finalEncrypt():f=this._finalDecrypt(),a?a.concat(f):f},o.prototype._pad=function(c,a){if(a===0)return!1;for(;a<c.length;)c[a++]=0;return!0},o.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},o.prototype._unpad=function(c){return c},o.prototype._finalDecrypt=function(){s.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":453}],397:[function(e,n,i){var s=e("minimalistic-assert"),o=e("inherits"),h=e("./utils"),c=e("./cipher");function a(){this.tmp=new Array(2),this.keys=null}function f(u){c.call(this,u);var p=new a;this._desState=p,this.deriveKeys(p,u.key)}o(f,c),n.exports=f,f.create=function(p){return new f(p)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];f.prototype.deriveKeys=function(p,m){p.keys=new Array(16*2),s.equal(m.length,this.blockSize,"Invalid key length");var d=h.readUInt32BE(m,0),v=h.readUInt32BE(m,4);h.pc1(d,v,p.tmp,0),d=p.tmp[0],v=p.tmp[1];for(var x=0;x<p.keys.length;x+=2){var g=l[x>>>1];d=h.r28shl(d,g),v=h.r28shl(v,g),h.pc2(d,v,p.keys,x)}},f.prototype._update=function(p,m,d,v){var x=this._desState,g=h.readUInt32BE(p,m),b=h.readUInt32BE(p,m+4);h.ip(g,b,x.tmp,0),g=x.tmp[0],b=x.tmp[1],this.type==="encrypt"?this._encrypt(x,g,b,x.tmp,0):this._decrypt(x,g,b,x.tmp,0),g=x.tmp[0],b=x.tmp[1],h.writeUInt32BE(d,g,v),h.writeUInt32BE(d,b,v+4)},f.prototype._pad=function(p,m){if(this.padding===!1)return!1;for(var d=p.length-m,v=m;v<p.length;v++)p[v]=d;return!0},f.prototype._unpad=function(p){if(this.padding===!1)return p;for(var m=p[p.length-1],d=p.length-m;d<p.length;d++)s.equal(p[d],m);return p.slice(0,p.length-m)},f.prototype._encrypt=function(p,m,d,v,x){for(var g=m,b=d,w=0;w<p.keys.length;w+=2){var y=p.keys[w],T=p.keys[w+1];h.expand(b,p.tmp,0),y^=p.tmp[0],T^=p.tmp[1];var C=h.substitute(y,T),M=h.permute(C),I=b;b=(g^M)>>>0,g=I}h.rip(b,g,v,x)},f.prototype._decrypt=function(p,m,d,v,x){for(var g=d,b=m,w=p.keys.length-2;w>=0;w-=2){var y=p.keys[w],T=p.keys[w+1];h.expand(g,p.tmp,0),y^=p.tmp[0],T^=p.tmp[1];var C=h.substitute(y,T),M=h.permute(C),I=g;g=(b^M)>>>0,b=I}h.rip(g,b,v,x)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,n,i){var s=e("minimalistic-assert"),o=e("inherits"),h=e("./cipher"),c=e("./des");function a(l,u){s.equal(u.length,24,"Invalid key length");var p=u.slice(0,8),m=u.slice(8,16),d=u.slice(16,24);l==="encrypt"?this.ciphers=[c.create({type:"encrypt",key:p}),c.create({type:"decrypt",key:m}),c.create({type:"encrypt",key:d})]:this.ciphers=[c.create({type:"decrypt",key:d}),c.create({type:"encrypt",key:m}),c.create({type:"decrypt",key:p})]}function f(l){h.call(this,l);var u=new a(this.type,this.options.key);this._edeState=u}o(f,h),n.exports=f,f.create=function(u){return new f(u)},f.prototype._update=function(u,p,m,d){var v=this._edeState;v.ciphers[0]._update(u,p,m,d),v.ciphers[1]._update(m,d,m,d),v.ciphers[2]._update(m,d,m,d)},f.prototype._pad=c.prototype._pad,f.prototype._unpad=c.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,n,i){i.readUInt32BE=function(a,f){var l=a[0+f]<<24|a[1+f]<<16|a[2+f]<<8|a[3+f];return l>>>0},i.writeUInt32BE=function(a,f,l){a[0+l]=f>>>24,a[1+l]=f>>>16&255,a[2+l]=f>>>8&255,a[3+l]=f&255},i.ip=function(a,f,l,u){for(var p=0,m=0,d=6;d>=0;d-=2){for(var v=0;v<=24;v+=8)p<<=1,p|=f>>>v+d&1;for(var v=0;v<=24;v+=8)p<<=1,p|=a>>>v+d&1}for(var d=6;d>=0;d-=2){for(var v=1;v<=25;v+=8)m<<=1,m|=f>>>v+d&1;for(var v=1;v<=25;v+=8)m<<=1,m|=a>>>v+d&1}l[u+0]=p>>>0,l[u+1]=m>>>0},i.rip=function(a,f,l,u){for(var p=0,m=0,d=0;d<4;d++)for(var v=24;v>=0;v-=8)p<<=1,p|=f>>>v+d&1,p<<=1,p|=a>>>v+d&1;for(var d=4;d<8;d++)for(var v=24;v>=0;v-=8)m<<=1,m|=f>>>v+d&1,m<<=1,m|=a>>>v+d&1;l[u+0]=p>>>0,l[u+1]=m>>>0},i.pc1=function(a,f,l,u){for(var p=0,m=0,d=7;d>=5;d--){for(var v=0;v<=24;v+=8)p<<=1,p|=f>>v+d&1;for(var v=0;v<=24;v+=8)p<<=1,p|=a>>v+d&1}for(var v=0;v<=24;v+=8)p<<=1,p|=f>>v+d&1;for(var d=1;d<=3;d++){for(var v=0;v<=24;v+=8)m<<=1,m|=f>>v+d&1;for(var v=0;v<=24;v+=8)m<<=1,m|=a>>v+d&1}for(var v=0;v<=24;v+=8)m<<=1,m|=a>>v+d&1;l[u+0]=p>>>0,l[u+1]=m>>>0},i.r28shl=function(a,f){return a<<f&268435455|a>>>28-f};var s=[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];i.pc2=function(a,f,l,u){for(var p=0,m=0,d=s.length>>>1,v=0;v<d;v++)p<<=1,p|=a>>>s[v]&1;for(var v=d;v<s.length;v++)m<<=1,m|=f>>>s[v]&1;l[u+0]=p>>>0,l[u+1]=m>>>0},i.expand=function(a,f,l){var u=0,p=0;u=(a&1)<<5|a>>>27;for(var m=23;m>=15;m-=4)u<<=6,u|=a>>>m&63;for(var m=11;m>=3;m-=4)p|=a>>>m&63,p<<=6;p|=(a&31)<<1|a>>>31,f[l+0]=u>>>0,f[l+1]=p>>>0};var o=[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];i.substitute=function(a,f){for(var l=0,u=0;u<4;u++){var p=a>>>18-u*6&63,m=o[u*64+p];l<<=4,l|=m}for(var u=0;u<4;u++){var p=f>>>18-u*6&63,m=o[4*64+u*64+p];l<<=4,l|=m}return l>>>0};var h=[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];i.permute=function(a){for(var f=0,l=0;l<h.length;l++)f<<=1,f|=a>>>h[l]&1;return f>>>0},i.padSplit=function(a,f,l){for(var u=a.toString(2);u.length<f;)u="0"+u;for(var p=[],m=0;m<f;m+=l)p.push(u.slice(m,m+l));return p.join(" ")}},{}],400:[function(e,n,i){(function(s){(function(){var o=e("./lib/generatePrime"),h=e("./lib/primes.json"),c=e("./lib/dh");function a(u){var p=new s(h[u].prime,"hex"),m=new s(h[u].gen,"hex");return new c(p,m)}var f={binary:!0,hex:!0,base64:!0};function l(u,p,m,d){return s.isBuffer(p)||f[p]===void 0?l(u,"binary",p,m):(p=p||"binary",d=d||"binary",m=m||new s([2]),s.isBuffer(m)||(m=new s(m,d)),typeof u=="number"?new c(o(u,m),m,!0):(s.isBuffer(u)||(u=new s(u,p)),new c(u,m,!0)))}i.DiffieHellmanGroup=i.createDiffieHellmanGroup=i.getDiffieHellman=a,i.createDiffieHellman=i.DiffieHellman=l}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,n,i){(function(s){(function(){var o=e("bn.js"),h=e("miller-rabin"),c=new h,a=new o(24),f=new o(11),l=new o(10),u=new o(3),p=new o(7),m=e("./generatePrime"),d=e("randombytes");n.exports=w;function v(T,C){return C=C||"utf8",s.isBuffer(T)||(T=new s(T,C)),this._pub=new o(T),this}function x(T,C){return C=C||"utf8",s.isBuffer(T)||(T=new s(T,C)),this._priv=new o(T),this}var g={};function b(T,C){var M=C.toString("hex"),I=[M,T.toString(16)].join("_");if(I in g)return g[I];var B=0;if(T.isEven()||!m.simpleSieve||!m.fermatTest(T)||!c.test(T))return B+=1,M==="02"||M==="05"?B+=8:B+=4,g[I]=B,B;c.test(T.shrn(1))||(B+=2);var U;switch(M){case"02":T.mod(a).cmp(f)&&(B+=8);break;case"05":U=T.mod(l),U.cmp(u)&&U.cmp(p)&&(B+=8);break;default:B+=4}return g[I]=B,B}function w(T,C,M){this.setGenerator(C),this.__prime=new o(T),this._prime=o.mont(this.__prime),this._primeLen=T.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,M?(this.setPublicKey=v,this.setPrivateKey=x):this._primeCode=8}Object.defineProperty(w.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=b(this.__prime,this.__gen)),this._primeCode}}),w.prototype.generateKeys=function(){return this._priv||(this._priv=new o(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},w.prototype.computeSecret=function(T){T=new o(T),T=T.toRed(this._prime);var C=T.redPow(this._priv).fromRed(),M=new s(C.toArray()),I=this.getPrime();if(M.length<I.length){var B=new s(I.length-M.length);B.fill(0),M=s.concat([B,M])}return M},w.prototype.getPublicKey=function(C){return y(this._pub,C)},w.prototype.getPrivateKey=function(C){return y(this._priv,C)},w.prototype.getPrime=function(T){return y(this.__prime,T)},w.prototype.getGenerator=function(T){return y(this._gen,T)},w.prototype.setGenerator=function(T,C){return C=C||"utf8",s.isBuffer(T)||(T=new s(T,C)),this.__gen=T,this._gen=new o(T),this};function y(T,C){var M=new s(T.toArray());return C?M.toString(C):M}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,n,i){var s=e("randombytes");n.exports=y,y.simpleSieve=b,y.fermatTest=w;var o=e("bn.js"),h=new o(24),c=e("miller-rabin"),a=new c,f=new o(1),l=new o(2),u=new o(5);new o(16),new o(8);var p=new o(10),m=new o(3);new o(7);var d=new o(11),v=new o(4);new o(12);var x=null;function g(){if(x!==null)return x;var T=1048576,C=[];C[0]=2;for(var M=1,I=3;I<T;I+=2){for(var B=Math.ceil(Math.sqrt(I)),U=0;U<M&&C[U]<=B&&I%C[U]!==0;U++);M!==U&&C[U]<=B||(C[M++]=I)}return x=C,C}function b(T){for(var C=g(),M=0;M<C.length;M++)if(T.modn(C[M])===0)return T.cmpn(C[M])===0;return!0}function w(T){var C=o.mont(T);return l.toRed(C).redPow(T.subn(1)).fromRed().cmpn(1)===0}function y(T,C){if(T<16)return C===2||C===5?new o([140,123]):new o([140,39]);C=new o(C);for(var M,I;;){for(M=new o(s(Math.ceil(T/8)));M.bitLength()>T;)M.ishrn(1);if(M.isEven()&&M.iadd(f),M.testn(1)||M.iadd(l),C.cmp(l)){if(!C.cmp(u))for(;M.mod(p).cmp(m);)M.iadd(v)}else for(;M.mod(h).cmp(d);)M.iadd(v);if(I=M.shrn(1),b(I)&&b(M)&&w(I)&&w(M)&&a.test(I)&&a.test(M))return M}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,n,i){n.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"}}},{}],404:[function(e,n,i){arguments[4][184][0].apply(i,arguments)},{buffer:188,dup:184}],405:[function(e,n,i){var s=i;s.version=e("../package.json").version,s.utils=e("./elliptic/utils"),s.rand=e("brorand"),s.curve=e("./elliptic/curve"),s.curves=e("./elliptic/curves"),s.ec=e("./elliptic/ec"),s.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,n,i){var s=e("bn.js"),o=e("../utils"),h=o.getNAF,c=o.getJSF,a=o.assert;function f(u,p){this.type=u,this.p=new s(p.p,16),this.red=p.prime?s.red(p.prime):s.mont(this.p),this.zero=new s(0).toRed(this.red),this.one=new s(1).toRed(this.red),this.two=new s(2).toRed(this.red),this.n=p.n&&new s(p.n,16),this.g=p.g&&this.pointFromJSON(p.g,p.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 m=this.n&&this.p.div(this.n);!m||m.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}n.exports=f,f.prototype.point=function(){throw new Error("Not implemented")},f.prototype.validate=function(){throw new Error("Not implemented")},f.prototype._fixedNafMul=function(p,m){a(p.precomputed);var d=p._getDoubles(),v=h(m,1,this._bitLength),x=(1<<d.step+1)-(d.step%2===0?2:1);x/=3;var g=[],b,w;for(b=0;b<v.length;b+=d.step){w=0;for(var y=b+d.step-1;y>=b;y--)w=(w<<1)+v[y];g.push(w)}for(var T=this.jpoint(null,null,null),C=this.jpoint(null,null,null),M=x;M>0;M--){for(b=0;b<g.length;b++)w=g[b],w===M?C=C.mixedAdd(d.points[b]):w===-M&&(C=C.mixedAdd(d.points[b].neg()));T=T.add(C)}return T.toP()},f.prototype._wnafMul=function(p,m){var d=4,v=p._getNAFPoints(d);d=v.wnd;for(var x=v.points,g=h(m,d,this._bitLength),b=this.jpoint(null,null,null),w=g.length-1;w>=0;w--){for(var y=0;w>=0&&g[w]===0;w--)y++;if(w>=0&&y++,b=b.dblp(y),w<0)break;var T=g[w];a(T!==0),p.type==="affine"?T>0?b=b.mixedAdd(x[T-1>>1]):b=b.mixedAdd(x[-T-1>>1].neg()):T>0?b=b.add(x[T-1>>1]):b=b.add(x[-T-1>>1].neg())}return p.type==="affine"?b.toP():b},f.prototype._wnafMulAdd=function(p,m,d,v,x){var g=this._wnafT1,b=this._wnafT2,w=this._wnafT3,y=0,T,C,M;for(T=0;T<v;T++){M=m[T];var I=M._getNAFPoints(p);g[T]=I.wnd,b[T]=I.points}for(T=v-1;T>=1;T-=2){var B=T-1,U=T;if(g[B]!==1||g[U]!==1){w[B]=h(d[B],g[B],this._bitLength),w[U]=h(d[U],g[U],this._bitLength),y=Math.max(w[B].length,y),y=Math.max(w[U].length,y);continue}var j=[m[B],null,null,m[U]];m[B].y.cmp(m[U].y)===0?(j[1]=m[B].add(m[U]),j[2]=m[B].toJ().mixedAdd(m[U].neg())):m[B].y.cmp(m[U].y.redNeg())===0?(j[1]=m[B].toJ().mixedAdd(m[U]),j[2]=m[B].add(m[U].neg())):(j[1]=m[B].toJ().mixedAdd(m[U]),j[2]=m[B].toJ().mixedAdd(m[U].neg()));var H=[-3,-1,-5,-7,0,7,5,1,3],G=c(d[B],d[U]);for(y=Math.max(G[0].length,y),w[B]=new Array(y),w[U]=new Array(y),C=0;C<y;C++){var L=G[0][C]|0,R=G[1][C]|0;w[B][C]=H[(L+1)*3+(R+1)],w[U][C]=0,b[B]=j}}var F=this.jpoint(null,null,null),_=this._wnafT4;for(T=y;T>=0;T--){for(var k=0;T>=0;){var N=!0;for(C=0;C<v;C++)_[C]=w[C][T]|0,_[C]!==0&&(N=!1);if(!N)break;k++,T--}if(T>=0&&k++,F=F.dblp(k),T<0)break;for(C=0;C<v;C++){var P=_[C];P!==0&&(P>0?M=b[C][P-1>>1]:P<0&&(M=b[C][-P-1>>1].neg()),M.type==="affine"?F=F.mixedAdd(M):F=F.add(M))}}for(T=0;T<v;T++)b[T]=null;return x?F:F.toP()};function l(u,p){this.curve=u,this.type=p,this.precomputed=null}f.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},f.prototype.decodePoint=function(p,m){p=o.toArray(p,m);var d=this.p.byteLength();if((p[0]===4||p[0]===6||p[0]===7)&&p.length-1===2*d){p[0]===6?a(p[p.length-1]%2===0):p[0]===7&&a(p[p.length-1]%2===1);var v=this.point(p.slice(1,1+d),p.slice(1+d,1+2*d));return v}else if((p[0]===2||p[0]===3)&&p.length-1===d)return this.pointFromX(p.slice(1,1+d),p[0]===3);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(p){return this.encode(p,!0)},l.prototype._encode=function(p){var m=this.curve.p.byteLength(),d=this.getX().toArray("be",m);return p?[this.getY().isEven()?2:3].concat(d):[4].concat(d,this.getY().toArray("be",m))},l.prototype.encode=function(p,m){return o.encode(this._encode(m),p)},l.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},l.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):!1},l.prototype._getDoubles=function(p,m){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var d=[this],v=this,x=0;x<m;x+=p){for(var g=0;g<p;g++)v=v.dbl();d.push(v)}return{step:p,points:d}},l.prototype._getNAFPoints=function(p){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var m=[this],d=(1<<p)-1,v=d===1?null:this.dbl(),x=1;x<d;x++)m[x]=m[x-1].add(v);return{wnd:p,points:m}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(p){for(var m=this,d=0;d<p;d++)m=m.dbl();return m}},{"../utils":419,"bn.js":420}],407:[function(e,n,i){var s=e("../utils"),o=e("bn.js"),h=e("inherits"),c=e("./base"),a=s.assert;function f(u){this.twisted=(u.a|0)!==1,this.mOneA=this.twisted&&(u.a|0)===-1,this.extended=this.mOneA,c.call(this,"edwards",u),this.a=new o(u.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(u.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(u.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(u.c|0)===1}h(f,c),n.exports=f,f.prototype._mulA=function(p){return this.mOneA?p.redNeg():this.a.redMul(p)},f.prototype._mulC=function(p){return this.oneC?p:this.c.redMul(p)},f.prototype.jpoint=function(p,m,d,v){return this.point(p,m,d,v)},f.prototype.pointFromX=function(p,m){p=new o(p,16),p.red||(p=p.toRed(this.red));var d=p.redSqr(),v=this.c2.redSub(this.a.redMul(d)),x=this.one.redSub(this.c2.redMul(this.d).redMul(d)),g=v.redMul(x.redInvm()),b=g.redSqrt();if(b.redSqr().redSub(g).cmp(this.zero)!==0)throw new Error("invalid point");var w=b.fromRed().isOdd();return(m&&!w||!m&&w)&&(b=b.redNeg()),this.point(p,b)},f.prototype.pointFromY=function(p,m){p=new o(p,16),p.red||(p=p.toRed(this.red));var d=p.redSqr(),v=d.redSub(this.c2),x=d.redMul(this.d).redMul(this.c2).redSub(this.a),g=v.redMul(x.redInvm());if(g.cmp(this.zero)===0){if(m)throw new Error("invalid point");return this.point(this.zero,p)}var b=g.redSqrt();if(b.redSqr().redSub(g).cmp(this.zero)!==0)throw new Error("invalid point");return b.fromRed().isOdd()!==m&&(b=b.redNeg()),this.point(b,p)},f.prototype.validate=function(p){if(p.isInfinity())return!0;p.normalize();var m=p.x.redSqr(),d=p.y.redSqr(),v=m.redMul(this.a).redAdd(d),x=this.c2.redMul(this.one.redAdd(this.d.redMul(m).redMul(d)));return v.cmp(x)===0};function l(u,p,m,d,v){c.BasePoint.call(this,u,"projective"),p===null&&m===null&&d===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 o(p,16),this.y=new o(m,16),this.z=d?new o(d,16):this.curve.one,this.t=v&&new o(v,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()))))}h(l,c.BasePoint),f.prototype.pointFromJSON=function(p){return l.fromJSON(this,p)},f.prototype.point=function(p,m,d,v){return new l(this,p,m,d,v)},l.fromJSON=function(p,m){return new l(p,m[0],m[1],m[2])},l.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)+">"},l.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},l.prototype._extDbl=function(){var p=this.x.redSqr(),m=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var v=this.curve._mulA(p),x=this.x.redAdd(this.y).redSqr().redISub(p).redISub(m),g=v.redAdd(m),b=g.redSub(d),w=v.redSub(m),y=x.redMul(b),T=g.redMul(w),C=x.redMul(w),M=b.redMul(g);return this.curve.point(y,T,M,C)},l.prototype._projDbl=function(){var p=this.x.redAdd(this.y).redSqr(),m=this.x.redSqr(),d=this.y.redSqr(),v,x,g,b,w,y;if(this.curve.twisted){b=this.curve._mulA(m);var T=b.redAdd(d);this.zOne?(v=p.redSub(m).redSub(d).redMul(T.redSub(this.curve.two)),x=T.redMul(b.redSub(d)),g=T.redSqr().redSub(T).redSub(T)):(w=this.z.redSqr(),y=T.redSub(w).redISub(w),v=p.redSub(m).redISub(d).redMul(y),x=T.redMul(b.redSub(d)),g=T.redMul(y))}else b=m.redAdd(d),w=this.curve._mulC(this.z).redSqr(),y=b.redSub(w).redSub(w),v=this.curve._mulC(p.redISub(b)).redMul(y),x=this.curve._mulC(b).redMul(m.redISub(d)),g=b.redMul(y);return this.curve.point(v,x,g)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(p){var m=this.y.redSub(this.x).redMul(p.y.redSub(p.x)),d=this.y.redAdd(this.x).redMul(p.y.redAdd(p.x)),v=this.t.redMul(this.curve.dd).redMul(p.t),x=this.z.redMul(p.z.redAdd(p.z)),g=d.redSub(m),b=x.redSub(v),w=x.redAdd(v),y=d.redAdd(m),T=g.redMul(b),C=w.redMul(y),M=g.redMul(y),I=b.redMul(w);return this.curve.point(T,C,I,M)},l.prototype._projAdd=function(p){var m=this.z.redMul(p.z),d=m.redSqr(),v=this.x.redMul(p.x),x=this.y.redMul(p.y),g=this.curve.d.redMul(v).redMul(x),b=d.redSub(g),w=d.redAdd(g),y=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(v).redISub(x),T=m.redMul(b).redMul(y),C,M;return this.curve.twisted?(C=m.redMul(w).redMul(x.redSub(this.curve._mulA(v))),M=b.redMul(w)):(C=m.redMul(w).redMul(x.redSub(v)),M=this.curve._mulC(b).redMul(w)),this.curve.point(T,C,M)},l.prototype.add=function(p){return this.isInfinity()?p:p.isInfinity()?this:this.curve.extended?this._extAdd(p):this._projAdd(p)},l.prototype.mul=function(p){return this._hasDoubles(p)?this.curve._fixedNafMul(this,p):this.curve._wnafMul(this,p)},l.prototype.mulAdd=function(p,m,d){return this.curve._wnafMulAdd(1,[this,m],[p,d],2,!1)},l.prototype.jmulAdd=function(p,m,d){return this.curve._wnafMulAdd(1,[this,m],[p,d],2,!0)},l.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},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(p){return this===p||this.getX().cmp(p.getX())===0&&this.getY().cmp(p.getY())===0},l.prototype.eqXToP=function(p){var m=p.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(m)===0)return!0;for(var d=p.clone(),v=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(m.redIAdd(v),this.x.cmp(m)===0)return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,n,i){var s=i;s.base=e("./base"),s.short=e("./short"),s.mont=e("./mont"),s.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,n,i){var s=e("bn.js"),o=e("inherits"),h=e("./base"),c=e("../utils");function a(l){h.call(this,"mont",l),this.a=new s(l.a,16).toRed(this.red),this.b=new s(l.b,16).toRed(this.red),this.i4=new s(4).toRed(this.red).redInvm(),this.two=new s(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}o(a,h),n.exports=a,a.prototype.validate=function(u){var p=u.normalize().x,m=p.redSqr(),d=m.redMul(p).redAdd(m.redMul(this.a)).redAdd(p),v=d.redSqrt();return v.redSqr().cmp(d)===0};function f(l,u,p){h.BasePoint.call(this,l,"projective"),u===null&&p===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new s(u,16),this.z=new s(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(f,h.BasePoint),a.prototype.decodePoint=function(u,p){return this.point(c.toArray(u,p),1)},a.prototype.point=function(u,p){return new f(this,u,p)},a.prototype.pointFromJSON=function(u){return f.fromJSON(this,u)},f.prototype.precompute=function(){},f.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},f.fromJSON=function(u,p){return new f(u,p[0],p[1]||u.one)},f.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)+">"},f.prototype.isInfinity=function(){return this.z.cmpn(0)===0},f.prototype.dbl=function(){var u=this.x.redAdd(this.z),p=u.redSqr(),m=this.x.redSub(this.z),d=m.redSqr(),v=p.redSub(d),x=p.redMul(d),g=v.redMul(d.redAdd(this.curve.a24.redMul(v)));return this.curve.point(x,g)},f.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.diffAdd=function(u,p){var m=this.x.redAdd(this.z),d=this.x.redSub(this.z),v=u.x.redAdd(u.z),x=u.x.redSub(u.z),g=x.redMul(m),b=v.redMul(d),w=p.z.redMul(g.redAdd(b).redSqr()),y=p.x.redMul(g.redISub(b).redSqr());return this.curve.point(w,y)},f.prototype.mul=function(u){for(var p=u.clone(),m=this,d=this.curve.point(null,null),v=this,x=[];p.cmpn(0)!==0;p.iushrn(1))x.push(p.andln(1));for(var g=x.length-1;g>=0;g--)x[g]===0?(m=m.diffAdd(d,v),d=d.dbl()):(d=m.diffAdd(d,v),m=m.dbl());return d},f.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},f.prototype.eq=function(u){return this.getX().cmp(u.getX())===0},f.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,n,i){var s=e("../utils"),o=e("bn.js"),h=e("inherits"),c=e("./base"),a=s.assert;function f(p){c.call(this,"short",p),this.a=new o(p.a,16).toRed(this.red),this.b=new o(p.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(p),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}h(f,c),n.exports=f,f.prototype._getEndomorphism=function(m){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var d,v;if(m.beta)d=new o(m.beta,16).toRed(this.red);else{var x=this._getEndoRoots(this.p);d=x[0].cmp(x[1])<0?x[0]:x[1],d=d.toRed(this.red)}if(m.lambda)v=new o(m.lambda,16);else{var g=this._getEndoRoots(this.n);this.g.mul(g[0]).x.cmp(this.g.x.redMul(d))===0?v=g[0]:(v=g[1],a(this.g.mul(v).x.cmp(this.g.x.redMul(d))===0))}var b;return m.basis?b=m.basis.map(function(w){return{a:new o(w.a,16),b:new o(w.b,16)}}):b=this._getEndoBasis(v),{beta:d,lambda:v,basis:b}}},f.prototype._getEndoRoots=function(m){var d=m===this.p?this.red:o.mont(m),v=new o(2).toRed(d).redInvm(),x=v.redNeg(),g=new o(3).toRed(d).redNeg().redSqrt().redMul(v),b=x.redAdd(g).fromRed(),w=x.redSub(g).fromRed();return[b,w]},f.prototype._getEndoBasis=function(m){for(var d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),v=m,x=this.n.clone(),g=new o(1),b=new o(0),w=new o(0),y=new o(1),T,C,M,I,B,U,j,H=0,G,L;v.cmpn(0)!==0;){var R=x.div(v);G=x.sub(R.mul(v)),L=w.sub(R.mul(g));var F=y.sub(R.mul(b));if(!M&&G.cmp(d)<0)T=j.neg(),C=g,M=G.neg(),I=L;else if(M&&++H===2)break;j=G,x=v,v=G,w=g,g=L,y=b,b=F}B=G.neg(),U=L;var _=M.sqr().add(I.sqr()),k=B.sqr().add(U.sqr());return k.cmp(_)>=0&&(B=T,U=C),M.negative&&(M=M.neg(),I=I.neg()),B.negative&&(B=B.neg(),U=U.neg()),[{a:M,b:I},{a:B,b:U}]},f.prototype._endoSplit=function(m){var d=this.endo.basis,v=d[0],x=d[1],g=x.b.mul(m).divRound(this.n),b=v.b.neg().mul(m).divRound(this.n),w=g.mul(v.a),y=b.mul(x.a),T=g.mul(v.b),C=b.mul(x.b),M=m.sub(w).sub(y),I=T.add(C).neg();return{k1:M,k2:I}},f.prototype.pointFromX=function(m,d){m=new o(m,16),m.red||(m=m.toRed(this.red));var v=m.redSqr().redMul(m).redIAdd(m.redMul(this.a)).redIAdd(this.b),x=v.redSqrt();if(x.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");var g=x.fromRed().isOdd();return(d&&!g||!d&&g)&&(x=x.redNeg()),this.point(m,x)},f.prototype.validate=function(m){if(m.inf)return!0;var d=m.x,v=m.y,x=this.a.redMul(d),g=d.redSqr().redMul(d).redIAdd(x).redIAdd(this.b);return v.redSqr().redISub(g).cmpn(0)===0},f.prototype._endoWnafMulAdd=function(m,d,v){for(var x=this._endoWnafT1,g=this._endoWnafT2,b=0;b<m.length;b++){var w=this._endoSplit(d[b]),y=m[b],T=y._getBeta();w.k1.negative&&(w.k1.ineg(),y=y.neg(!0)),w.k2.negative&&(w.k2.ineg(),T=T.neg(!0)),x[b*2]=y,x[b*2+1]=T,g[b*2]=w.k1,g[b*2+1]=w.k2}for(var C=this._wnafMulAdd(1,x,g,b*2,v),M=0;M<b*2;M++)x[M]=null,g[M]=null;return C};function l(p,m,d,v){c.BasePoint.call(this,p,"affine"),m===null&&d===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(m,16),this.y=new o(d,16),v&&(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)}h(l,c.BasePoint),f.prototype.point=function(m,d,v){return new l(this,m,d,v)},f.prototype.pointFromJSON=function(m,d){return l.fromJSON(this,m,d)},l.prototype._getBeta=function(){if(this.curve.endo){var m=this.precomputed;if(m&&m.beta)return m.beta;var d=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(m){var v=this.curve,x=function(g){return v.point(g.x.redMul(v.endo.beta),g.y)};m.beta=d,d.precomputed={beta:null,naf:m.naf&&{wnd:m.naf.wnd,points:m.naf.points.map(x)},doubles:m.doubles&&{step:m.doubles.step,points:m.doubles.points.map(x)}}}return d}},l.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]},l.fromJSON=function(m,d,v){typeof d=="string"&&(d=JSON.parse(d));var x=m.point(d[0],d[1],v);if(!d[2])return x;function g(w){return m.point(w[0],w[1],v)}var b=d[2];return x.precomputed={beta:null,doubles:b.doubles&&{step:b.doubles.step,points:[x].concat(b.doubles.points.map(g))},naf:b.naf&&{wnd:b.naf.wnd,points:[x].concat(b.naf.points.map(g))}},x},l.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)+">"},l.prototype.isInfinity=function(){return this.inf},l.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 d=this.y.redSub(m.y);d.cmpn(0)!==0&&(d=d.redMul(this.x.redSub(m.x).redInvm()));var v=d.redSqr().redISub(this.x).redISub(m.x),x=d.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,x)},l.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 d=this.curve.a,v=this.x.redSqr(),x=m.redInvm(),g=v.redAdd(v).redIAdd(v).redIAdd(d).redMul(x),b=g.redSqr().redISub(this.x.redAdd(this.x)),w=g.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,w)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(m){return m=new o(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)},l.prototype.mulAdd=function(m,d,v){var x=[this,d],g=[m,v];return this.curve.endo?this.curve._endoWnafMulAdd(x,g):this.curve._wnafMulAdd(1,x,g,2)},l.prototype.jmulAdd=function(m,d,v){var x=[this,d],g=[m,v];return this.curve.endo?this.curve._endoWnafMulAdd(x,g,!0):this.curve._wnafMulAdd(1,x,g,2,!0)},l.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)},l.prototype.neg=function(m){if(this.inf)return this;var d=this.curve.point(this.x,this.y.redNeg());if(m&&this.precomputed){var v=this.precomputed,x=function(g){return g.neg()};d.precomputed={naf:v.naf&&{wnd:v.naf.wnd,points:v.naf.points.map(x)},doubles:v.doubles&&{step:v.doubles.step,points:v.doubles.points.map(x)}}}return d},l.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var m=this.curve.jpoint(this.x,this.y,this.curve.one);return m};function u(p,m,d,v){c.BasePoint.call(this,p,"jacobian"),m===null&&d===null&&v===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(m,16),this.y=new o(d,16),this.z=new o(v,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}h(u,c.BasePoint),f.prototype.jpoint=function(m,d,v){return new u(this,m,d,v)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var m=this.z.redInvm(),d=m.redSqr(),v=this.x.redMul(d),x=this.y.redMul(d).redMul(m);return this.curve.point(v,x)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(m){if(this.isInfinity())return m;if(m.isInfinity())return this;var d=m.z.redSqr(),v=this.z.redSqr(),x=this.x.redMul(d),g=m.x.redMul(v),b=this.y.redMul(d.redMul(m.z)),w=m.y.redMul(v.redMul(this.z)),y=x.redSub(g),T=b.redSub(w);if(y.cmpn(0)===0)return T.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=y.redSqr(),M=C.redMul(y),I=x.redMul(C),B=T.redSqr().redIAdd(M).redISub(I).redISub(I),U=T.redMul(I.redISub(B)).redISub(b.redMul(M)),j=this.z.redMul(m.z).redMul(y);return this.curve.jpoint(B,U,j)},u.prototype.mixedAdd=function(m){if(this.isInfinity())return m.toJ();if(m.isInfinity())return this;var d=this.z.redSqr(),v=this.x,x=m.x.redMul(d),g=this.y,b=m.y.redMul(d).redMul(this.z),w=v.redSub(x),y=g.redSub(b);if(w.cmpn(0)===0)return y.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var T=w.redSqr(),C=T.redMul(w),M=v.redMul(T),I=y.redSqr().redIAdd(C).redISub(M).redISub(M),B=y.redMul(M.redISub(I)).redISub(g.redMul(C)),U=this.z.redMul(w);return this.curve.jpoint(I,B,U)},u.prototype.dblp=function(m){if(m===0)return this;if(this.isInfinity())return this;if(!m)return this.dbl();var d;if(this.curve.zeroA||this.curve.threeA){var v=this;for(d=0;d<m;d++)v=v.dbl();return v}var x=this.curve.a,g=this.curve.tinv,b=this.x,w=this.y,y=this.z,T=y.redSqr().redSqr(),C=w.redAdd(w);for(d=0;d<m;d++){var M=b.redSqr(),I=C.redSqr(),B=I.redSqr(),U=M.redAdd(M).redIAdd(M).redIAdd(x.redMul(T)),j=b.redMul(I),H=U.redSqr().redISub(j.redAdd(j)),G=j.redISub(H),L=U.redMul(G);L=L.redIAdd(L).redISub(B);var R=C.redMul(y);d+1<m&&(T=T.redMul(B)),b=H,y=R,C=L}return this.curve.jpoint(b,C.redMul(g),y)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var m,d,v;if(this.zOne){var x=this.x.redSqr(),g=this.y.redSqr(),b=g.redSqr(),w=this.x.redAdd(g).redSqr().redISub(x).redISub(b);w=w.redIAdd(w);var y=x.redAdd(x).redIAdd(x),T=y.redSqr().redISub(w).redISub(w),C=b.redIAdd(b);C=C.redIAdd(C),C=C.redIAdd(C),m=T,d=y.redMul(w.redISub(T)).redISub(C),v=this.y.redAdd(this.y)}else{var M=this.x.redSqr(),I=this.y.redSqr(),B=I.redSqr(),U=this.x.redAdd(I).redSqr().redISub(M).redISub(B);U=U.redIAdd(U);var j=M.redAdd(M).redIAdd(M),H=j.redSqr(),G=B.redIAdd(B);G=G.redIAdd(G),G=G.redIAdd(G),m=H.redISub(U).redISub(U),d=j.redMul(U.redISub(m)).redISub(G),v=this.y.redMul(this.z),v=v.redIAdd(v)}return this.curve.jpoint(m,d,v)},u.prototype._threeDbl=function(){var m,d,v;if(this.zOne){var x=this.x.redSqr(),g=this.y.redSqr(),b=g.redSqr(),w=this.x.redAdd(g).redSqr().redISub(x).redISub(b);w=w.redIAdd(w);var y=x.redAdd(x).redIAdd(x).redIAdd(this.curve.a),T=y.redSqr().redISub(w).redISub(w);m=T;var C=b.redIAdd(b);C=C.redIAdd(C),C=C.redIAdd(C),d=y.redMul(w.redISub(T)).redISub(C),v=this.y.redAdd(this.y)}else{var M=this.z.redSqr(),I=this.y.redSqr(),B=this.x.redMul(I),U=this.x.redSub(M).redMul(this.x.redAdd(M));U=U.redAdd(U).redIAdd(U);var j=B.redIAdd(B);j=j.redIAdd(j);var H=j.redAdd(j);m=U.redSqr().redISub(H),v=this.y.redAdd(this.z).redSqr().redISub(I).redISub(M);var G=I.redSqr();G=G.redIAdd(G),G=G.redIAdd(G),G=G.redIAdd(G),d=U.redMul(j.redISub(m)).redISub(G)}return this.curve.jpoint(m,d,v)},u.prototype._dbl=function(){var m=this.curve.a,d=this.x,v=this.y,x=this.z,g=x.redSqr().redSqr(),b=d.redSqr(),w=v.redSqr(),y=b.redAdd(b).redIAdd(b).redIAdd(m.redMul(g)),T=d.redAdd(d);T=T.redIAdd(T);var C=T.redMul(w),M=y.redSqr().redISub(C.redAdd(C)),I=C.redISub(M),B=w.redSqr();B=B.redIAdd(B),B=B.redIAdd(B),B=B.redIAdd(B);var U=y.redMul(I).redISub(B),j=v.redAdd(v).redMul(x);return this.curve.jpoint(M,U,j)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var m=this.x.redSqr(),d=this.y.redSqr(),v=this.z.redSqr(),x=d.redSqr(),g=m.redAdd(m).redIAdd(m),b=g.redSqr(),w=this.x.redAdd(d).redSqr().redISub(m).redISub(x);w=w.redIAdd(w),w=w.redAdd(w).redIAdd(w),w=w.redISub(b);var y=w.redSqr(),T=x.redIAdd(x);T=T.redIAdd(T),T=T.redIAdd(T),T=T.redIAdd(T);var C=g.redIAdd(w).redSqr().redISub(b).redISub(y).redISub(T),M=d.redMul(C);M=M.redIAdd(M),M=M.redIAdd(M);var I=this.x.redMul(y).redISub(M);I=I.redIAdd(I),I=I.redIAdd(I);var B=this.y.redMul(C.redMul(T.redISub(C)).redISub(w.redMul(y)));B=B.redIAdd(B),B=B.redIAdd(B),B=B.redIAdd(B);var U=this.z.redAdd(w).redSqr().redISub(v).redISub(y);return this.curve.jpoint(I,B,U)},u.prototype.mul=function(m,d){return m=new o(m,d),this.curve._wnafMul(this,m)},u.prototype.eq=function(m){if(m.type==="affine")return this.eq(m.toJ());if(this===m)return!0;var d=this.z.redSqr(),v=m.z.redSqr();if(this.x.redMul(v).redISub(m.x.redMul(d)).cmpn(0)!==0)return!1;var x=d.redMul(this.z),g=v.redMul(m.z);return this.y.redMul(g).redISub(m.y.redMul(x)).cmpn(0)===0},u.prototype.eqXToP=function(m){var d=this.z.redSqr(),v=m.toRed(this.curve.red).redMul(d);if(this.x.cmp(v)===0)return!0;for(var x=m.clone(),g=this.curve.redN.redMul(d);;){if(x.iadd(this.curve.n),x.cmp(this.curve.p)>=0)return!1;if(v.redIAdd(g),this.x.cmp(v)===0)return!0}},u.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)+">"},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,n,i){var s=i,o=e("hash.js"),h=e("./curve"),c=e("./utils"),a=c.assert;function f(p){p.type==="short"?this.curve=new h.short(p):p.type==="edwards"?this.curve=new h.edwards(p):this.curve=new h.mont(p),this.g=this.curve.g,this.n=this.curve.n,this.hash=p.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}s.PresetCurve=f;function l(p,m){Object.defineProperty(s,p,{configurable:!0,enumerable:!0,get:function(){var d=new f(m);return Object.defineProperty(s,p,{configurable:!0,enumerable:!0,value:d}),d}})}l("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("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:o.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"]}),l("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:o.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"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var u;try{u=e("./precomputed/secp256k1")}catch{u=void 0}l("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,n,i){var s=e("bn.js"),o=e("hmac-drbg"),h=e("../utils"),c=e("../curves"),a=e("brorand"),f=h.assert,l=e("./key"),u=e("./signature");function p(m){if(!(this instanceof p))return new p(m);typeof m=="string"&&(f(Object.prototype.hasOwnProperty.call(c,m),"Unknown curve "+m),m=c[m]),m instanceof c.PresetCurve&&(m={curve:m}),this.curve=m.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=m.curve.g,this.g.precompute(m.curve.n.bitLength()+1),this.hash=m.hash||m.curve.hash}n.exports=p,p.prototype.keyPair=function(d){return new l(this,d)},p.prototype.keyFromPrivate=function(d,v){return l.fromPrivate(this,d,v)},p.prototype.keyFromPublic=function(d,v){return l.fromPublic(this,d,v)},p.prototype.genKeyPair=function(d){d||(d={});for(var v=new o({hash:this.hash,pers:d.pers,persEnc:d.persEnc||"utf8",entropy:d.entropy||a(this.hash.hmacStrength),entropyEnc:d.entropy&&d.entropyEnc||"utf8",nonce:this.n.toArray()}),x=this.n.byteLength(),g=this.n.sub(new s(2));;){var b=new s(v.generate(x));if(!(b.cmp(g)>0))return b.iaddn(1),this.keyFromPrivate(b)}},p.prototype._truncateToN=function(d,v){var x=d.byteLength()*8-this.n.bitLength();return x>0&&(d=d.ushrn(x)),!v&&d.cmp(this.n)>=0?d.sub(this.n):d},p.prototype.sign=function(d,v,x,g){typeof x=="object"&&(g=x,x=null),g||(g={}),v=this.keyFromPrivate(v,x),d=this._truncateToN(new s(d,16));for(var b=this.n.byteLength(),w=v.getPrivate().toArray("be",b),y=d.toArray("be",b),T=new o({hash:this.hash,entropy:w,nonce:y,pers:g.pers,persEnc:g.persEnc||"utf8"}),C=this.n.sub(new s(1)),M=0;;M++){var I=g.k?g.k(M):new s(T.generate(this.n.byteLength()));if(I=this._truncateToN(I,!0),!(I.cmpn(1)<=0||I.cmp(C)>=0)){var B=this.g.mul(I);if(!B.isInfinity()){var U=B.getX(),j=U.umod(this.n);if(j.cmpn(0)!==0){var H=I.invm(this.n).mul(j.mul(v.getPrivate()).iadd(d));if(H=H.umod(this.n),H.cmpn(0)!==0){var G=(B.getY().isOdd()?1:0)|(U.cmp(j)!==0?2:0);return g.canonical&&H.cmp(this.nh)>0&&(H=this.n.sub(H),G^=1),new u({r:j,s:H,recoveryParam:G})}}}}}},p.prototype.verify=function(d,v,x,g){d=this._truncateToN(new s(d,16)),x=this.keyFromPublic(x,g),v=new u(v,"hex");var b=v.r,w=v.s;if(b.cmpn(1)<0||b.cmp(this.n)>=0||w.cmpn(1)<0||w.cmp(this.n)>=0)return!1;var y=w.invm(this.n),T=y.mul(d).umod(this.n),C=y.mul(b).umod(this.n),M;return this.curve._maxwellTrick?(M=this.g.jmulAdd(T,x.getPublic(),C),M.isInfinity()?!1:M.eqXToP(b)):(M=this.g.mulAdd(T,x.getPublic(),C),M.isInfinity()?!1:M.getX().umod(this.n).cmp(b)===0)},p.prototype.recoverPubKey=function(m,d,v,x){f((3&v)===v,"The recovery param is more than two bits"),d=new u(d,x);var g=this.n,b=new s(m),w=d.r,y=d.s,T=v&1,C=v>>1;if(w.cmp(this.curve.p.umod(this.curve.n))>=0&&C)throw new Error("Unable to find sencond key candinate");C?w=this.curve.pointFromX(w.add(this.curve.n),T):w=this.curve.pointFromX(w,T);var M=d.r.invm(g),I=g.sub(b).mul(M).umod(g),B=y.mul(M).umod(g);return this.g.mulAdd(I,w,B)},p.prototype.getKeyRecoveryParam=function(m,d,v,x){if(d=new u(d,x),d.recoveryParam!==null)return d.recoveryParam;for(var g=0;g<4;g++){var b;try{b=this.recoverPubKey(m,d,g)}catch{continue}if(b.eq(v))return g}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,n,i){var s=e("bn.js"),o=e("../utils"),h=o.assert;function c(a,f){this.ec=a,this.priv=null,this.pub=null,f.priv&&this._importPrivate(f.priv,f.privEnc),f.pub&&this._importPublic(f.pub,f.pubEnc)}n.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 s(f,l||16),this.priv=this.priv.umod(this.ec.curve.n)},c.prototype._importPublic=function(f,l){if(f.x||f.y){this.ec.curve.type==="mont"?h(f.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&h(f.x&&f.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(f.x,f.y);return}this.pub=this.ec.curve.decodePoint(f,l)},c.prototype.derive=function(f){return f.validate()||h(f.validate(),"public point not validated"),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":419,"bn.js":420}],414:[function(e,n,i){var s=e("bn.js"),o=e("../utils"),h=o.assert;function c(p,m){if(p instanceof c)return p;this._importDER(p,m)||(h(p.r&&p.s,"Signature without r or s"),this.r=new s(p.r,16),this.s=new s(p.s,16),p.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=p.recoveryParam)}n.exports=c;function a(){this.place=0}function f(p,m){var d=p[m.place++];if(!(d&128))return d;var v=d&15;if(v===0||v>4)return!1;for(var x=0,g=0,b=m.place;g<v;g++,b++)x<<=8,x|=p[b],x>>>=0;return x<=127?!1:(m.place=b,x)}function l(p){for(var m=0,d=p.length-1;!p[m]&&!(p[m+1]&128)&&m<d;)m++;return m===0?p:p.slice(m)}c.prototype._importDER=function(m,d){m=o.toArray(m,d);var v=new a;if(m[v.place++]!==48)return!1;var x=f(m,v);if(x===!1||x+v.place!==m.length||m[v.place++]!==2)return!1;var g=f(m,v);if(g===!1)return!1;var b=m.slice(v.place,g+v.place);if(v.place+=g,m[v.place++]!==2)return!1;var w=f(m,v);if(w===!1||m.length!==w+v.place)return!1;var y=m.slice(v.place,w+v.place);if(b[0]===0)if(b[1]&128)b=b.slice(1);else return!1;if(y[0]===0)if(y[1]&128)y=y.slice(1);else return!1;return this.r=new s(b),this.s=new s(y),this.recoveryParam=null,!0};function u(p,m){if(m<128){p.push(m);return}var d=1+(Math.log(m)/Math.LN2>>>3);for(p.push(d|128);--d;)p.push(m>>>(d<<3)&255);p.push(m)}c.prototype.toDER=function(m){var d=this.r.toArray(),v=this.s.toArray();for(d[0]&128&&(d=[0].concat(d)),v[0]&128&&(v=[0].concat(v)),d=l(d),v=l(v);!v[0]&&!(v[1]&128);)v=v.slice(1);var x=[2];u(x,d.length),x=x.concat(d),x.push(2),u(x,v.length);var g=x.concat(v),b=[48];return u(b,g.length),b=b.concat(g),o.encode(b,m)}},{"../utils":419,"bn.js":420}],415:[function(e,n,i){var s=e("hash.js"),o=e("../curves"),h=e("../utils"),c=h.assert,a=h.parseBytes,f=e("./key"),l=e("./signature");function u(p){if(c(p==="ed25519","only tested with ed25519 so far"),!(this instanceof u))return new u(p);p=o[p].curve,this.curve=p,this.g=p.g,this.g.precompute(p.n.bitLength()+1),this.pointClass=p.point().constructor,this.encodingLength=Math.ceil(p.n.bitLength()/8),this.hash=s.sha512}n.exports=u,u.prototype.sign=function(m,d){m=a(m);var v=this.keyFromSecret(d),x=this.hashInt(v.messagePrefix(),m),g=this.g.mul(x),b=this.encodePoint(g),w=this.hashInt(b,v.pubBytes(),m).mul(v.priv()),y=x.add(w).umod(this.curve.n);return this.makeSignature({R:g,S:y,Rencoded:b})},u.prototype.verify=function(m,d,v){m=a(m),d=this.makeSignature(d);var x=this.keyFromPublic(v),g=this.hashInt(d.Rencoded(),x.pubBytes(),m),b=this.g.mul(d.S()),w=d.R().add(x.pub().mul(g));return w.eq(b)},u.prototype.hashInt=function(){for(var m=this.hash(),d=0;d<arguments.length;d++)m.update(arguments[d]);return h.intFromLE(m.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(m){return f.fromPublic(this,m)},u.prototype.keyFromSecret=function(m){return f.fromSecret(this,m)},u.prototype.makeSignature=function(m){return m instanceof l?m:new l(this,m)},u.prototype.encodePoint=function(m){var d=m.getY().toArray("le",this.encodingLength);return d[this.encodingLength-1]|=m.getX().isOdd()?128:0,d},u.prototype.decodePoint=function(m){m=h.parseBytes(m);var d=m.length-1,v=m.slice(0,d).concat(m[d]&-129),x=(m[d]&128)!==0,g=h.intFromLE(v);return this.curve.pointFromY(g,x)},u.prototype.encodeInt=function(m){return m.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(m){return h.intFromLE(m)},u.prototype.isPoint=function(m){return m instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,n,i){var s=e("../utils"),o=s.assert,h=s.parseBytes,c=s.cachedProperty;function a(f,l){this.eddsa=f,this._secret=h(l.secret),f.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=h(l.pub)}a.fromPublic=function(l,u){return u instanceof a?u:new a(l,{pub:u})},a.fromSecret=function(l,u){return u instanceof a?u:new a(l,{secret:u})},a.prototype.secret=function(){return this._secret},c(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),c(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),c(a,"privBytes",function(){var l=this.eddsa,u=this.hash(),p=l.encodingLength-1,m=u.slice(0,l.encodingLength);return m[0]&=248,m[p]&=127,m[p]|=64,m}),c(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),c(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),c(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(l){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(l,this)},a.prototype.verify=function(l,u){return this.eddsa.verify(l,u,this)},a.prototype.getSecret=function(l){return o(this._secret,"KeyPair is public only"),s.encode(this.secret(),l)},a.prototype.getPublic=function(l){return s.encode(this.pubBytes(),l)},n.exports=a},{"../utils":419}],417:[function(e,n,i){var s=e("bn.js"),o=e("../utils"),h=o.assert,c=o.cachedProperty,a=o.parseBytes;function f(l,u){this.eddsa=l,typeof u!="object"&&(u=a(u)),Array.isArray(u)&&(u={R:u.slice(0,l.encodingLength),S:u.slice(l.encodingLength)}),h(u.R&&u.S,"Signature without R or S"),l.isPoint(u.R)&&(this._R=u.R),u.S instanceof s&&(this._S=u.S),this._Rencoded=Array.isArray(u.R)?u.R:u.Rencoded,this._Sencoded=Array.isArray(u.S)?u.S:u.Sencoded}c(f,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),c(f,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),c(f,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),c(f,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),f.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},f.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},n.exports=f},{"../utils":419,"bn.js":420}],418:[function(e,n,i){n.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"]]}}},{}],419:[function(e,n,i){var s=i,o=e("bn.js"),h=e("minimalistic-assert"),c=e("minimalistic-crypto-utils");s.assert=h,s.toArray=c.toArray,s.zero2=c.zero2,s.toHex=c.toHex,s.encode=c.encode;function a(m,d,v){var x=new Array(Math.max(m.bitLength(),v)+1);x.fill(0);for(var g=1<<d+1,b=m.clone(),w=0;w<x.length;w++){var y,T=b.andln(g-1);b.isOdd()?(T>(g>>1)-1?y=(g>>1)-T:y=T,b.isubn(y)):y=0,x[w]=y,b.iushrn(1)}return x}s.getNAF=a;function f(m,d){var v=[[],[]];m=m.clone(),d=d.clone();for(var x=0,g=0,b;m.cmpn(-x)>0||d.cmpn(-g)>0;){var w=m.andln(3)+x&3,y=d.andln(3)+g&3;w===3&&(w=-1),y===3&&(y=-1);var T;w&1?(b=m.andln(7)+x&7,(b===3||b===5)&&y===2?T=-w:T=w):T=0,v[0].push(T);var C;y&1?(b=d.andln(7)+g&7,(b===3||b===5)&&w===2?C=-y:C=y):C=0,v[1].push(C),2*x===T+1&&(x=1-x),2*g===C+1&&(g=1-g),m.iushrn(1),d.iushrn(1)}return v}s.getJSF=f;function l(m,d,v){var x="_"+d;m.prototype[d]=function(){return this[x]!==void 0?this[x]:this[x]=v.call(this)}}s.cachedProperty=l;function u(m){return typeof m=="string"?s.toArray(m,"hex"):m}s.parseBytes=u;function p(m){return new o(m,"hex","le")}s.intFromLE=p},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,n,i){arguments[4][184][0].apply(i,arguments)},{buffer:188,dup:184}],421:[function(e,n,i){n.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,n,i){var s=Object.create||B,o=Object.keys||U,h=Function.prototype.bind||j;function c(){(!this._events||!Object.prototype.hasOwnProperty.call(this,"_events"))&&(this._events=s(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}n.exports=c,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._maxListeners=void 0;var a=10,f;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),f=l.x===0}catch{f=!1}f?Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(H){if(typeof H!="number"||H<0||H!==H)throw new TypeError('"defaultMaxListeners" must be a positive number');a=H}}):c.defaultMaxListeners=a,c.prototype.setMaxListeners=function(G){if(typeof G!="number"||G<0||isNaN(G))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=G,this};function u(H){return H._maxListeners===void 0?c.defaultMaxListeners:H._maxListeners}c.prototype.getMaxListeners=function(){return u(this)};function p(H,G,L){if(G)H.call(L);else for(var R=H.length,F=M(H,R),_=0;_<R;++_)F[_].call(L)}function m(H,G,L,R){if(G)H.call(L,R);else for(var F=H.length,_=M(H,F),k=0;k<F;++k)_[k].call(L,R)}function d(H,G,L,R,F){if(G)H.call(L,R,F);else for(var _=H.length,k=M(H,_),N=0;N<_;++N)k[N].call(L,R,F)}function v(H,G,L,R,F,_){if(G)H.call(L,R,F,_);else for(var k=H.length,N=M(H,k),P=0;P<k;++P)N[P].call(L,R,F,_)}function x(H,G,L,R){if(G)H.apply(L,R);else for(var F=H.length,_=M(H,F),k=0;k<F;++k)_[k].apply(L,R)}c.prototype.emit=function(G){var L,R,F,_,k,N,P=G==="error";if(N=this._events,N)P=P&&N.error==null;else if(!P)return!1;if(P){if(arguments.length>1&&(L=arguments[1]),L instanceof Error)throw L;var D=new Error('Unhandled "error" event. ('+L+")");throw D.context=L,D}if(R=N[G],!R)return!1;var A=typeof R=="function";switch(F=arguments.length,F){case 1:p(R,A,this);break;case 2:m(R,A,this,arguments[1]);break;case 3:d(R,A,this,arguments[1],arguments[2]);break;case 4:v(R,A,this,arguments[1],arguments[2],arguments[3]);break;default:for(_=new Array(F-1),k=1;k<F;k++)_[k-1]=arguments[k];x(R,A,this,_)}return!0};function g(H,G,L,R){var F,_,k;if(typeof L!="function")throw new TypeError('"listener" argument must be a function');if(_=H._events,_?(_.newListener&&(H.emit("newListener",G,L.listener?L.listener:L),_=H._events),k=_[G]):(_=H._events=s(null),H._eventsCount=0),!k)k=_[G]=L,++H._eventsCount;else if(typeof k=="function"?k=_[G]=R?[L,k]:[k,L]:R?k.unshift(L):k.push(L),!k.warned&&(F=u(H),F&&F>0&&k.length>F)){k.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+k.length+' "'+String(G)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');N.name="MaxListenersExceededWarning",N.emitter=H,N.type=G,N.count=k.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",N.name,N.message)}return H}c.prototype.addListener=function(G,L){return g(this,G,L,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(G,L){return g(this,G,L,!0)};function b(){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 H=new Array(arguments.length),G=0;G<H.length;++G)H[G]=arguments[G];this.listener.apply(this.target,H)}}function w(H,G,L){var R={fired:!1,wrapFn:void 0,target:H,type:G,listener:L},F=h.call(b,R);return F.listener=L,R.wrapFn=F,F}c.prototype.once=function(G,L){if(typeof L!="function")throw new TypeError('"listener" argument must be a function');return this.on(G,w(this,G,L)),this},c.prototype.prependOnceListener=function(G,L){if(typeof L!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(G,w(this,G,L)),this},c.prototype.removeListener=function(G,L){var R,F,_,k,N;if(typeof L!="function")throw new TypeError('"listener" argument must be a function');if(F=this._events,!F)return this;if(R=F[G],!R)return this;if(R===L||R.listener===L)--this._eventsCount===0?this._events=s(null):(delete F[G],F.removeListener&&this.emit("removeListener",G,R.listener||L));else if(typeof R!="function"){for(_=-1,k=R.length-1;k>=0;k--)if(R[k]===L||R[k].listener===L){N=R[k].listener,_=k;break}if(_<0)return this;_===0?R.shift():C(R,_),R.length===1&&(F[G]=R[0]),F.removeListener&&this.emit("removeListener",G,N||L)}return this},c.prototype.removeAllListeners=function(G){var L,R,F;if(R=this._events,!R)return this;if(!R.removeListener)return arguments.length===0?(this._events=s(null),this._eventsCount=0):R[G]&&(--this._eventsCount===0?this._events=s(null):delete R[G]),this;if(arguments.length===0){var _=o(R),k;for(F=0;F<_.length;++F)k=_[F],k!=="removeListener"&&this.removeAllListeners(k);return this.removeAllListeners("removeListener"),this._events=s(null),this._eventsCount=0,this}if(L=R[G],typeof L=="function")this.removeListener(G,L);else if(L)for(F=L.length-1;F>=0;F--)this.removeListener(G,L[F]);return this};function y(H,G,L){var R=H._events;if(!R)return[];var F=R[G];return F?typeof F=="function"?L?[F.listener||F]:[F]:L?I(F):M(F,F.length):[]}c.prototype.listeners=function(G){return y(this,G,!0)},c.prototype.rawListeners=function(G){return y(this,G,!1)},c.listenerCount=function(H,G){return typeof H.listenerCount=="function"?H.listenerCount(G):T.call(H,G)},c.prototype.listenerCount=T;function T(H){var G=this._events;if(G){var L=G[H];if(typeof L=="function")return 1;if(L)return L.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function C(H,G){for(var L=G,R=L+1,F=H.length;R<F;L+=1,R+=1)H[L]=H[R];H.pop()}function M(H,G){for(var L=new Array(G),R=0;R<G;++R)L[R]=H[R];return L}function I(H){for(var G=new Array(H.length),L=0;L<G.length;++L)G[L]=H[L].listener||H[L];return G}function B(H){var G=function(){};return G.prototype=H,new G}function U(H){for(var G in H)Object.prototype.hasOwnProperty.call(H,G);return G}function j(H){var G=this;return function(){return G.apply(H,arguments)}}},{}],423:[function(e,n,i){var s=e("safe-buffer").Buffer,o=e("md5.js");function h(c,a,f,l){if(s.isBuffer(c)||(c=s.from(c,"binary")),a&&(s.isBuffer(a)||(a=s.from(a,"binary")),a.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var u=f/8,p=s.alloc(u),m=s.alloc(l||0),d=s.alloc(0);u>0||l>0;){var v=new o;v.update(d),v.update(c),a&&v.update(a),d=v.digest();var x=0;if(u>0){var g=p.length-u;x=Math.min(u,d.length),d.copy(p,g,0,x),u-=x}if(x<d.length&&l>0){var b=m.length-l,w=Math.min(l,d.length-x);d.copy(m,b,x,x+w),l-=w}}return d.fill(0),{key:p,iv:m}}n.exports=h},{"md5.js":450,"safe-buffer":494}],424:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.CsvParserStream=i.ParserOptions=i.parseFile=i.parseStream=i.parseString=i.parse=i.FormatterOptions=i.CsvFormatterStream=i.writeToPath=i.writeToString=i.writeToBuffer=i.writeToStream=i.write=i.format=void 0;var s=e("@fast-csv/format");Object.defineProperty(i,"format",{enumerable:!0,get:function(){return s.format}}),Object.defineProperty(i,"write",{enumerable:!0,get:function(){return s.write}}),Object.defineProperty(i,"writeToStream",{enumerable:!0,get:function(){return s.writeToStream}}),Object.defineProperty(i,"writeToBuffer",{enumerable:!0,get:function(){return s.writeToBuffer}}),Object.defineProperty(i,"writeToString",{enumerable:!0,get:function(){return s.writeToString}}),Object.defineProperty(i,"writeToPath",{enumerable:!0,get:function(){return s.writeToPath}}),Object.defineProperty(i,"CsvFormatterStream",{enumerable:!0,get:function(){return s.CsvFormatterStream}}),Object.defineProperty(i,"FormatterOptions",{enumerable:!0,get:function(){return s.FormatterOptions}});var o=e("@fast-csv/parse");Object.defineProperty(i,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(i,"parseString",{enumerable:!0,get:function(){return o.parseString}}),Object.defineProperty(i,"parseStream",{enumerable:!0,get:function(){return o.parseStream}}),Object.defineProperty(i,"parseFile",{enumerable:!0,get:function(){return o.parseFile}}),Object.defineProperty(i,"ParserOptions",{enumerable:!0,get:function(){return o.ParserOptions}}),Object.defineProperty(i,"CsvParserStream",{enumerable:!0,get:function(){return o.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,n,i){var s=e("safe-buffer").Buffer,o=e("readable-stream").Transform,h=e("inherits");function c(f,l){if(!s.isBuffer(f)&&typeof f!="string")throw new TypeError(l+" must be a string or a buffer")}function a(f){o.call(this),this._block=s.allocUnsafe(f),this._blockSize=f,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}h(a,o),a.prototype._transform=function(f,l,u){var p=null;try{this.update(f,l)}catch(m){p=m}u(p)},a.prototype._flush=function(f){var l=null;try{this.push(this.digest())}catch(u){l=u}f(l)},a.prototype.update=function(f,l){if(c(f,"Data"),this._finalized)throw new Error("Digest already called");s.isBuffer(f)||(f=s.from(f,l));for(var u=this._block,p=0;this._blockOffset+f.length-p>=this._blockSize;){for(var m=this._blockOffset;m<this._blockSize;)u[m++]=f[p++];this._update(),this._blockOffset=0}for(;p<f.length;)u[this._blockOffset++]=f[p++];for(var d=0,v=f.length*8;v>0;++d)this._length[d]+=v,v=this._length[d]/4294967296|0,v>0&&(this._length[d]-=4294967296*v);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(f){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var l=this._digest();f!==void 0&&(l=l.toString(f)),this._block.fill(0),this._blockOffset=0;for(var u=0;u<4;++u)this._length[u]=0;return l},a.prototype._digest=function(){throw new Error("_digest is not implemented")},n.exports=a},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,n,i){var s=i;s.utils=e("./hash/utils"),s.common=e("./hash/common"),s.sha=e("./hash/sha"),s.ripemd=e("./hash/ripemd"),s.hmac=e("./hash/hmac"),s.sha1=s.sha.sha1,s.sha256=s.sha.sha256,s.sha224=s.sha.sha224,s.sha384=s.sha.sha384,s.sha512=s.sha.sha512,s.ripemd160=s.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,n,i){var s=e("./utils"),o=e("minimalistic-assert");function h(){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}i.BlockHash=h,h.prototype.update=function(a,f){if(a=s.toArray(a,f),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){a=this.pending;var l=a.length%this._delta8;this.pending=a.slice(a.length-l,a.length),this.pending.length===0&&(this.pending=null),a=s.join32(a,0,a.length-l,this.endian);for(var u=0;u<a.length;u+=this._delta32)this._update(a,u,u+this._delta32)}return this},h.prototype.digest=function(a){return this.update(this._pad()),o(this.pending===null),this._digest(a)},h.prototype._pad=function(){var a=this.pendingTotal,f=this._delta8,l=f-(a+this.padLength)%f,u=new Array(l+this.padLength);u[0]=128;for(var p=1;p<l;p++)u[p]=0;if(a<<=3,this.endian==="big"){for(var m=8;m<this.padLength;m++)u[p++]=0;u[p++]=0,u[p++]=0,u[p++]=0,u[p++]=0,u[p++]=a>>>24&255,u[p++]=a>>>16&255,u[p++]=a>>>8&255,u[p++]=a&255}else for(u[p++]=a&255,u[p++]=a>>>8&255,u[p++]=a>>>16&255,u[p++]=a>>>24&255,u[p++]=0,u[p++]=0,u[p++]=0,u[p++]=0,m=8;m<this.padLength;m++)u[p++]=0;return u}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,n,i){var s=e("./utils"),o=e("minimalistic-assert");function h(c,a,f){if(!(this instanceof h))return new h(c,a,f);this.Hash=c,this.blockSize=c.blockSize/8,this.outSize=c.outSize/8,this.inner=null,this.outer=null,this._init(s.toArray(a,f))}n.exports=h,h.prototype._init=function(a){a.length>this.blockSize&&(a=new this.Hash().update(a).digest()),o(a.length<=this.blockSize);for(var f=a.length;f<this.blockSize;f++)a.push(0);for(f=0;f<a.length;f++)a[f]^=54;for(this.inner=new this.Hash().update(a),f=0;f<a.length;f++)a[f]^=106;this.outer=new this.Hash().update(a)},h.prototype.update=function(a,f){return this.inner.update(a,f),this},h.prototype.digest=function(a){return this.outer.update(this.inner.digest()),this.outer.digest(a)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,n,i){var s=e("./utils"),o=e("./common"),h=s.rotl32,c=s.sum32,a=s.sum32_3,f=s.sum32_4,l=o.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}s.inherits(u,l),i.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(y,T){for(var C=this.h[0],M=this.h[1],I=this.h[2],B=this.h[3],U=this.h[4],j=C,H=M,G=I,L=B,R=U,F=0;F<80;F++){var _=c(h(f(C,p(F,M,I,B),y[v[F]+T],m(F)),g[F]),U);C=U,U=B,B=h(I,10),I=M,M=_,_=c(h(f(j,p(79-F,H,G,L),y[x[F]+T],d(F)),b[F]),R),j=R,R=L,L=h(G,10),G=H,H=_}_=a(this.h[1],I,L),this.h[1]=a(this.h[2],B,R),this.h[2]=a(this.h[3],U,j),this.h[3]=a(this.h[4],C,H),this.h[4]=a(this.h[0],M,G),this.h[0]=_},u.prototype._digest=function(y){return y==="hex"?s.toHex32(this.h,"little"):s.split32(this.h,"little")};function p(w,y,T,C){return w<=15?y^T^C:w<=31?y&T|~y&C:w<=47?(y|~T)^C:w<=63?y&C|T&~C:y^(T|~C)}function m(w){return w<=15?0:w<=31?1518500249:w<=47?1859775393:w<=63?2400959708:2840853838}function d(w){return w<=15?1352829926:w<=31?1548603684:w<=47?1836072691:w<=63?2053994217:0}var v=[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],x=[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],g=[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],b=[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":427,"./utils":437}],430:[function(e,n,i){i.sha1=e("./sha/1"),i.sha224=e("./sha/224"),i.sha256=e("./sha/256"),i.sha384=e("./sha/384"),i.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,n,i){var s=e("../utils"),o=e("../common"),h=e("./common"),c=s.rotl32,a=s.sum32,f=s.sum32_5,l=h.ft_1,u=o.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function m(){if(!(this instanceof m))return new m;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}s.inherits(m,u),n.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.prototype._update=function(v,x){for(var g=this.W,b=0;b<16;b++)g[b]=v[x+b];for(;b<g.length;b++)g[b]=c(g[b-3]^g[b-8]^g[b-14]^g[b-16],1);var w=this.h[0],y=this.h[1],T=this.h[2],C=this.h[3],M=this.h[4];for(b=0;b<g.length;b++){var I=~~(b/20),B=f(c(w,5),l(I,y,T,C),M,g[b],p[I]);M=C,C=T,T=c(y,30),y=w,w=B}this.h[0]=a(this.h[0],w),this.h[1]=a(this.h[1],y),this.h[2]=a(this.h[2],T),this.h[3]=a(this.h[3],C),this.h[4]=a(this.h[4],M)},m.prototype._digest=function(v){return v==="hex"?s.toHex32(this.h,"big"):s.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,n,i){var s=e("../utils"),o=e("./256");function h(){if(!(this instanceof h))return new h;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}s.inherits(h,o),n.exports=h,h.blockSize=512,h.outSize=224,h.hmacStrength=192,h.padLength=64,h.prototype._digest=function(a){return a==="hex"?s.toHex32(this.h.slice(0,7),"big"):s.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,n,i){var s=e("../utils"),o=e("../common"),h=e("./common"),c=e("minimalistic-assert"),a=s.sum32,f=s.sum32_4,l=s.sum32_5,u=h.ch32,p=h.maj32,m=h.s0_256,d=h.s1_256,v=h.g0_256,x=h.g1_256,g=o.BlockHash,b=[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 w(){if(!(this instanceof w))return new w;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}s.inherits(w,g),n.exports=w,w.blockSize=512,w.outSize=256,w.hmacStrength=192,w.padLength=64,w.prototype._update=function(T,C){for(var M=this.W,I=0;I<16;I++)M[I]=T[C+I];for(;I<M.length;I++)M[I]=f(x(M[I-2]),M[I-7],v(M[I-15]),M[I-16]);var B=this.h[0],U=this.h[1],j=this.h[2],H=this.h[3],G=this.h[4],L=this.h[5],R=this.h[6],F=this.h[7];for(c(this.k.length===M.length),I=0;I<M.length;I++){var _=l(F,d(G),u(G,L,R),this.k[I],M[I]),k=a(m(B),p(B,U,j));F=R,R=L,L=G,G=a(H,_),H=j,j=U,U=B,B=a(_,k)}this.h[0]=a(this.h[0],B),this.h[1]=a(this.h[1],U),this.h[2]=a(this.h[2],j),this.h[3]=a(this.h[3],H),this.h[4]=a(this.h[4],G),this.h[5]=a(this.h[5],L),this.h[6]=a(this.h[6],R),this.h[7]=a(this.h[7],F)},w.prototype._digest=function(T){return T==="hex"?s.toHex32(this.h,"big"):s.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,n,i){var s=e("../utils"),o=e("./512");function h(){if(!(this instanceof h))return new h;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}s.inherits(h,o),n.exports=h,h.blockSize=1024,h.outSize=384,h.hmacStrength=192,h.padLength=128,h.prototype._digest=function(a){return a==="hex"?s.toHex32(this.h.slice(0,12),"big"):s.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,n,i){var s=e("../utils"),o=e("../common"),h=e("minimalistic-assert"),c=s.rotr64_hi,a=s.rotr64_lo,f=s.shr64_hi,l=s.shr64_lo,u=s.sum64,p=s.sum64_hi,m=s.sum64_lo,d=s.sum64_4_hi,v=s.sum64_4_lo,x=s.sum64_5_hi,g=s.sum64_5_lo,b=o.BlockHash,w=[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 y(){if(!(this instanceof y))return new y;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=w,this.W=new Array(160)}s.inherits(y,b),n.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(k,N){for(var P=this.W,D=0;D<32;D++)P[D]=k[N+D];for(;D<P.length;D+=2){var A=R(P[D-4],P[D-3]),S=F(P[D-4],P[D-3]),E=P[D-14],O=P[D-13],z=G(P[D-30],P[D-29]),J=L(P[D-30],P[D-29]),re=P[D-32],se=P[D-31];P[D]=d(A,S,E,O,z,J,re,se),P[D+1]=v(A,S,E,O,z,J,re,se)}},y.prototype._update=function(k,N){this._prepareBlock(k,N);var P=this.W,D=this.h[0],A=this.h[1],S=this.h[2],E=this.h[3],O=this.h[4],z=this.h[5],J=this.h[6],re=this.h[7],se=this.h[8],Ce=this.h[9],Y=this.h[10],q=this.h[11],K=this.h[12],Q=this.h[13],he=this.h[14],we=this.h[15];h(this.k.length===P.length);for(var ae=0;ae<P.length;ae+=2){var te=he,Z=we,W=j(se,Ce),V=H(se,Ce),fe=T(se,Ce,Y,q,K),ye=C(se,Ce,Y,q,K,Q),X=this.k[ae],ve=this.k[ae+1],ke=P[ae],ee=P[ae+1],ne=x(te,Z,W,V,fe,ye,X,ve,ke,ee),de=g(te,Z,W,V,fe,ye,X,ve,ke,ee);te=B(D,A),Z=U(D,A),W=M(D,A,S,E,O),V=I(D,A,S,E,O,z);var _e=p(te,Z,W,V),Re=m(te,Z,W,V);he=K,we=Q,K=Y,Q=q,Y=se,q=Ce,se=p(J,re,ne,de),Ce=m(re,re,ne,de),J=O,re=z,O=S,z=E,S=D,E=A,D=p(ne,de,_e,Re),A=m(ne,de,_e,Re)}u(this.h,0,D,A),u(this.h,2,S,E),u(this.h,4,O,z),u(this.h,6,J,re),u(this.h,8,se,Ce),u(this.h,10,Y,q),u(this.h,12,K,Q),u(this.h,14,he,we)},y.prototype._digest=function(k){return k==="hex"?s.toHex32(this.h,"big"):s.split32(this.h,"big")};function T(_,k,N,P,D){var A=_&N^~_&D;return A<0&&(A+=4294967296),A}function C(_,k,N,P,D,A){var S=k&P^~k&A;return S<0&&(S+=4294967296),S}function M(_,k,N,P,D){var A=_&N^_&D^N&D;return A<0&&(A+=4294967296),A}function I(_,k,N,P,D,A){var S=k&P^k&A^P&A;return S<0&&(S+=4294967296),S}function B(_,k){var N=c(_,k,28),P=c(k,_,2),D=c(k,_,7),A=N^P^D;return A<0&&(A+=4294967296),A}function U(_,k){var N=a(_,k,28),P=a(k,_,2),D=a(k,_,7),A=N^P^D;return A<0&&(A+=4294967296),A}function j(_,k){var N=c(_,k,14),P=c(_,k,18),D=c(k,_,9),A=N^P^D;return A<0&&(A+=4294967296),A}function H(_,k){var N=a(_,k,14),P=a(_,k,18),D=a(k,_,9),A=N^P^D;return A<0&&(A+=4294967296),A}function G(_,k){var N=c(_,k,1),P=c(_,k,8),D=f(_,k,7),A=N^P^D;return A<0&&(A+=4294967296),A}function L(_,k){var N=a(_,k,1),P=a(_,k,8),D=l(_,k,7),A=N^P^D;return A<0&&(A+=4294967296),A}function R(_,k){var N=c(_,k,19),P=c(k,_,29),D=f(_,k,6),A=N^P^D;return A<0&&(A+=4294967296),A}function F(_,k){var N=a(_,k,19),P=a(k,_,29),D=l(_,k,6),A=N^P^D;return A<0&&(A+=4294967296),A}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,n,i){var s=e("../utils"),o=s.rotr32;function h(d,v,x,g){if(d===0)return c(v,x,g);if(d===1||d===3)return f(v,x,g);if(d===2)return a(v,x,g)}i.ft_1=h;function c(d,v,x){return d&v^~d&x}i.ch32=c;function a(d,v,x){return d&v^d&x^v&x}i.maj32=a;function f(d,v,x){return d^v^x}i.p32=f;function l(d){return o(d,2)^o(d,13)^o(d,22)}i.s0_256=l;function u(d){return o(d,6)^o(d,11)^o(d,25)}i.s1_256=u;function p(d){return o(d,7)^o(d,18)^d>>>3}i.g0_256=p;function m(d){return o(d,17)^o(d,19)^d>>>10}i.g1_256=m},{"../utils":437}],437:[function(e,n,i){var s=e("minimalistic-assert"),o=e("inherits");i.inherits=o;function h(F,_){return(F.charCodeAt(_)&64512)!==55296||_<0||_+1>=F.length?!1:(F.charCodeAt(_+1)&64512)===56320}function c(F,_){if(Array.isArray(F))return F.slice();if(!F)return[];var k=[];if(typeof F=="string")if(_){if(_==="hex")for(F=F.replace(/[^a-z0-9]+/ig,""),F.length%2!==0&&(F="0"+F),P=0;P<F.length;P+=2)k.push(parseInt(F[P]+F[P+1],16))}else for(var N=0,P=0;P<F.length;P++){var D=F.charCodeAt(P);D<128?k[N++]=D:D<2048?(k[N++]=D>>6|192,k[N++]=D&63|128):h(F,P)?(D=65536+((D&1023)<<10)+(F.charCodeAt(++P)&1023),k[N++]=D>>18|240,k[N++]=D>>12&63|128,k[N++]=D>>6&63|128,k[N++]=D&63|128):(k[N++]=D>>12|224,k[N++]=D>>6&63|128,k[N++]=D&63|128)}else for(P=0;P<F.length;P++)k[P]=F[P]|0;return k}i.toArray=c;function a(F){for(var _="",k=0;k<F.length;k++)_+=u(F[k].toString(16));return _}i.toHex=a;function f(F){var _=F>>>24|F>>>8&65280|F<<8&16711680|(F&255)<<24;return _>>>0}i.htonl=f;function l(F,_){for(var k="",N=0;N<F.length;N++){var P=F[N];_==="little"&&(P=f(P)),k+=p(P.toString(16))}return k}i.toHex32=l;function u(F){return F.length===1?"0"+F:F}i.zero2=u;function p(F){return F.length===7?"0"+F:F.length===6?"00"+F:F.length===5?"000"+F:F.length===4?"0000"+F:F.length===3?"00000"+F:F.length===2?"000000"+F:F.length===1?"0000000"+F:F}i.zero8=p;function m(F,_,k,N){var P=k-_;s(P%4===0);for(var D=new Array(P/4),A=0,S=_;A<D.length;A++,S+=4){var E;N==="big"?E=F[S]<<24|F[S+1]<<16|F[S+2]<<8|F[S+3]:E=F[S+3]<<24|F[S+2]<<16|F[S+1]<<8|F[S],D[A]=E>>>0}return D}i.join32=m;function d(F,_){for(var k=new Array(F.length*4),N=0,P=0;N<F.length;N++,P+=4){var D=F[N];_==="big"?(k[P]=D>>>24,k[P+1]=D>>>16&255,k[P+2]=D>>>8&255,k[P+3]=D&255):(k[P+3]=D>>>24,k[P+2]=D>>>16&255,k[P+1]=D>>>8&255,k[P]=D&255)}return k}i.split32=d;function v(F,_){return F>>>_|F<<32-_}i.rotr32=v;function x(F,_){return F<<_|F>>>32-_}i.rotl32=x;function g(F,_){return F+_>>>0}i.sum32=g;function b(F,_,k){return F+_+k>>>0}i.sum32_3=b;function w(F,_,k,N){return F+_+k+N>>>0}i.sum32_4=w;function y(F,_,k,N,P){return F+_+k+N+P>>>0}i.sum32_5=y;function T(F,_,k,N){var P=F[_],D=F[_+1],A=N+D>>>0,S=(A<N?1:0)+k+P;F[_]=S>>>0,F[_+1]=A}i.sum64=T;function C(F,_,k,N){var P=_+N>>>0,D=(P<_?1:0)+F+k;return D>>>0}i.sum64_hi=C;function M(F,_,k,N){var P=_+N;return P>>>0}i.sum64_lo=M;function I(F,_,k,N,P,D,A,S){var E=0,O=_;O=O+N>>>0,E+=O<_?1:0,O=O+D>>>0,E+=O<D?1:0,O=O+S>>>0,E+=O<S?1:0;var z=F+k+P+A+E;return z>>>0}i.sum64_4_hi=I;function B(F,_,k,N,P,D,A,S){var E=_+N+D+S;return E>>>0}i.sum64_4_lo=B;function U(F,_,k,N,P,D,A,S,E,O){var z=0,J=_;J=J+N>>>0,z+=J<_?1:0,J=J+D>>>0,z+=J<D?1:0,J=J+S>>>0,z+=J<S?1:0,J=J+O>>>0,z+=J<O?1:0;var re=F+k+P+A+E+z;return re>>>0}i.sum64_5_hi=U;function j(F,_,k,N,P,D,A,S,E,O){var z=_+N+D+S+O;return z>>>0}i.sum64_5_lo=j;function H(F,_,k){var N=_<<32-k|F>>>k;return N>>>0}i.rotr64_hi=H;function G(F,_,k){var N=F<<32-k|_>>>k;return N>>>0}i.rotr64_lo=G;function L(F,_,k){return F>>>k}i.shr64_hi=L;function R(F,_,k){var N=F<<32-k|_>>>k;return N>>>0}i.shr64_lo=R},{inherits:440,"minimalistic-assert":453}],438:[function(e,n,i){var s=e("hash.js"),o=e("minimalistic-crypto-utils"),h=e("minimalistic-assert");function c(a){if(!(this instanceof c))return new c(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var f=o.toArray(a.entropy,a.entropyEnc||"hex"),l=o.toArray(a.nonce,a.nonceEnc||"hex"),u=o.toArray(a.pers,a.persEnc||"hex");h(f.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(f,l,u)}n.exports=c,c.prototype._init=function(f,l,u){var p=f.concat(l).concat(u);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},c.prototype._hmac=function(){return new s.hmac(this.hash,this.K)},c.prototype._update=function(f){var l=this._hmac().update(this.V).update([0]);f&&(l=l.update(f)),this.K=l.digest(),this.V=this._hmac().update(this.V).digest(),f&&(this.K=this._hmac().update(this.V).update([1]).update(f).digest(),this.V=this._hmac().update(this.V).digest())},c.prototype.reseed=function(f,l,u,p){typeof l!="string"&&(p=u,u=l,l=null),f=o.toArray(f,l),u=o.toArray(u,p),h(f.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(f.concat(u||[])),this._reseed=1},c.prototype.generate=function(f,l,u,p){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof l!="string"&&(p=u,u=l,l=null),u&&(u=o.toArray(u,p||"hex"),this._update(u));for(var m=[];m.length<f;)this.V=this._hmac().update(this.V).digest(),m=m.concat(this.V);var d=m.slice(0,f);return this._update(u),this._reseed++,o.encode(d,l)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,n,i){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */i.read=function(s,o,h,c,a){var f,l,u=a*8-c-1,p=(1<<u)-1,m=p>>1,d=-7,v=h?a-1:0,x=h?-1:1,g=s[o+v];for(v+=x,f=g&(1<<-d)-1,g>>=-d,d+=u;d>0;f=f*256+s[o+v],v+=x,d-=8);for(l=f&(1<<-d)-1,f>>=-d,d+=c;d>0;l=l*256+s[o+v],v+=x,d-=8);if(f===0)f=1-m;else{if(f===p)return l?NaN:(g?-1:1)*(1/0);l=l+Math.pow(2,c),f=f-m}return(g?-1:1)*l*Math.pow(2,f-c)},i.write=function(s,o,h,c,a,f){var l,u,p,m=f*8-a-1,d=(1<<m)-1,v=d>>1,x=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=c?0:f-1,b=c?1:-1,w=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(u=isNaN(o)?1:0,l=d):(l=Math.floor(Math.log(o)/Math.LN2),o*(p=Math.pow(2,-l))<1&&(l--,p*=2),l+v>=1?o+=x/p:o+=x*Math.pow(2,1-v),o*p>=2&&(l++,p/=2),l+v>=d?(u=0,l=d):l+v>=1?(u=(o*p-1)*Math.pow(2,a),l=l+v):(u=o*Math.pow(2,v-1)*Math.pow(2,a),l=0));a>=8;s[h+g]=u&255,g+=b,u/=256,a-=8);for(l=l<<a|u,m+=a;m>0;s[h+g]=l&255,g+=b,l/=256,m-=8);s[h+g-b]|=w*128}},{}],440:[function(e,n,i){typeof Object.create=="function"?n.exports=function(o,h){h&&(o.super_=h,o.prototype=Object.create(h.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}))}:n.exports=function(o,h){if(h){o.super_=h;var c=function(){};c.prototype=h.prototype,o.prototype=new c,o.prototype.constructor=o}}},{}],441:[function(e,n,i){(function(s,o,h,c,a,f,l,u){(function(){/*!
|
||
|
||
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
||
<http://stuartk.com/jszip>
|
||
|
||
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
||
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
||
|
||
JSZip uses the library pako released under the MIT license :
|
||
https://github.com/nodeca/pako/blob/main/LICENSE
|
||
*/(function(p){typeof i=="object"&&typeof n<"u"?n.exports=p():(typeof window<"u"?window:typeof o<"u"?o:typeof self<"u"?self:this).JSZip=p()})(function(){return function p(m,d,v){function x(w,y){if(!d[w]){if(!m[w]){var T=typeof e=="function"&&e;if(!y&&T)return T(w,!0);if(g)return g(w,!0);var C=new Error("Cannot find module '"+w+"'");throw C.code="MODULE_NOT_FOUND",C}var M=d[w]={exports:{}};m[w][0].call(M.exports,function(I){var B=m[w][1][I];return x(B||I)},M,M.exports,p,m,d,v)}return d[w].exports}for(var g=typeof e=="function"&&e,b=0;b<v.length;b++)x(v[b]);return x}({1:[function(p,m,d){var v=p("./utils"),x=p("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(b){for(var w,y,T,C,M,I,B,U=[],j=0,H=b.length,G=H,L=v.getTypeOf(b)!=="string";j<b.length;)G=H-j,T=L?(w=b[j++],y=j<H?b[j++]:0,j<H?b[j++]:0):(w=b.charCodeAt(j++),y=j<H?b.charCodeAt(j++):0,j<H?b.charCodeAt(j++):0),C=w>>2,M=(3&w)<<4|y>>4,I=1<G?(15&y)<<2|T>>6:64,B=2<G?63&T:64,U.push(g.charAt(C)+g.charAt(M)+g.charAt(I)+g.charAt(B));return U.join("")},d.decode=function(b){var w,y,T,C,M,I,B=0,U=0,j="data:";if(b.substr(0,j.length)===j)throw new Error("Invalid base64 input, it looks like a data url.");var H,G=3*(b=b.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(b.charAt(b.length-1)===g.charAt(64)&&G--,b.charAt(b.length-2)===g.charAt(64)&&G--,G%1!=0)throw new Error("Invalid base64 input, bad content length.");for(H=x.uint8array?new Uint8Array(0|G):new Array(0|G);B<b.length;)w=g.indexOf(b.charAt(B++))<<2|(C=g.indexOf(b.charAt(B++)))>>4,y=(15&C)<<4|(M=g.indexOf(b.charAt(B++)))>>2,T=(3&M)<<6|(I=g.indexOf(b.charAt(B++))),H[U++]=w,M!==64&&(H[U++]=y),I!==64&&(H[U++]=T);return H}},{"./support":30,"./utils":32}],2:[function(p,m,d){var v=p("./external"),x=p("./stream/DataWorker"),g=p("./stream/Crc32Probe"),b=p("./stream/DataLengthProbe");function w(y,T,C,M,I){this.compressedSize=y,this.uncompressedSize=T,this.crc32=C,this.compression=M,this.compressedContent=I}w.prototype={getContentWorker:function(){var y=new x(v.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new b("data_length")),T=this;return y.on("end",function(){if(this.streamInfo.data_length!==T.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new x(v.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},w.createWorkerFrom=function(y,T,C){return y.pipe(new g).pipe(new b("uncompressedSize")).pipe(T.compressWorker(C)).pipe(new b("compressedSize")).withStreamInfo("compression",T)},m.exports=w},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(p,m,d){var v=p("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new v("STORE compression")},uncompressWorker:function(){return new v("STORE decompression")}},d.DEFLATE=p("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(p,m,d){var v=p("./utils"),x=function(){for(var g,b=[],w=0;w<256;w++){g=w;for(var y=0;y<8;y++)g=1&g?3988292384^g>>>1:g>>>1;b[w]=g}return b}();m.exports=function(g,b){return g!==void 0&&g.length?v.getTypeOf(g)!=="string"?function(w,y,T,C){var M=x,I=C+T;w^=-1;for(var B=C;B<I;B++)w=w>>>8^M[255&(w^y[B])];return-1^w}(0|b,g,g.length,0):function(w,y,T,C){var M=x,I=C+T;w^=-1;for(var B=C;B<I;B++)w=w>>>8^M[255&(w^y.charCodeAt(B))];return-1^w}(0|b,g,g.length,0):0}},{"./utils":32}],5:[function(p,m,d){d.base64=!1,d.binary=!1,d.dir=!1,d.createFolders=!0,d.date=null,d.compression=null,d.compressionOptions=null,d.comment=null,d.unixPermissions=null,d.dosPermissions=null},{}],6:[function(p,m,d){var v=null;v=typeof Promise<"u"?Promise:p("lie"),m.exports={Promise:v}},{lie:37}],7:[function(p,m,d){var v=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",x=p("pako"),g=p("./utils"),b=p("./stream/GenericWorker"),w=v?"uint8array":"array";function y(T,C){b.call(this,"FlateWorker/"+T),this._pako=null,this._pakoAction=T,this._pakoOptions=C,this.meta={}}d.magic="\b\0",g.inherits(y,b),y.prototype.processChunk=function(T){this.meta=T.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(w,T.data),!1)},y.prototype.flush=function(){b.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){b.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new x[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var T=this;this._pako.onData=function(C){T.push({data:C,meta:T.meta})}},d.compressWorker=function(T){return new y("Deflate",T)},d.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(p,m,d){function v(M,I){var B,U="";for(B=0;B<I;B++)U+=String.fromCharCode(255&M),M>>>=8;return U}function x(M,I,B,U,j,H){var G,L,R=M.file,F=M.compression,_=H!==w.utf8encode,k=g.transformTo("string",H(R.name)),N=g.transformTo("string",w.utf8encode(R.name)),P=R.comment,D=g.transformTo("string",H(P)),A=g.transformTo("string",w.utf8encode(P)),S=N.length!==R.name.length,E=A.length!==P.length,O="",z="",J="",re=R.dir,se=R.date,Ce={crc32:0,compressedSize:0,uncompressedSize:0};I&&!B||(Ce.crc32=M.crc32,Ce.compressedSize=M.compressedSize,Ce.uncompressedSize=M.uncompressedSize);var Y=0;I&&(Y|=8),_||!S&&!E||(Y|=2048);var q=0,K=0;re&&(q|=16),j==="UNIX"?(K=798,q|=function(he,we){var ae=he;return he||(ae=we?16893:33204),(65535&ae)<<16}(R.unixPermissions,re)):(K=20,q|=function(he){return 63&(he||0)}(R.dosPermissions)),G=se.getUTCHours(),G<<=6,G|=se.getUTCMinutes(),G<<=5,G|=se.getUTCSeconds()/2,L=se.getUTCFullYear()-1980,L<<=4,L|=se.getUTCMonth()+1,L<<=5,L|=se.getUTCDate(),S&&(z=v(1,1)+v(y(k),4)+N,O+="up"+v(z.length,2)+z),E&&(J=v(1,1)+v(y(D),4)+A,O+="uc"+v(J.length,2)+J);var Q="";return Q+=`
|
||
\0`,Q+=v(Y,2),Q+=F.magic,Q+=v(G,2),Q+=v(L,2),Q+=v(Ce.crc32,4),Q+=v(Ce.compressedSize,4),Q+=v(Ce.uncompressedSize,4),Q+=v(k.length,2),Q+=v(O.length,2),{fileRecord:T.LOCAL_FILE_HEADER+Q+k+O,dirRecord:T.CENTRAL_FILE_HEADER+v(K,2)+Q+v(D.length,2)+"\0\0\0\0"+v(q,4)+v(U,4)+k+O+D}}var g=p("../utils"),b=p("../stream/GenericWorker"),w=p("../utf8"),y=p("../crc32"),T=p("../signature");function C(M,I,B,U){b.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=I,this.zipPlatform=B,this.encodeFileName=U,this.streamFiles=M,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(C,b),C.prototype.push=function(M){var I=M.meta.percent||0,B=this.entriesCount,U=this._sources.length;this.accumulate?this.contentBuffer.push(M):(this.bytesWritten+=M.data.length,b.prototype.push.call(this,{data:M.data,meta:{currentFile:this.currentFile,percent:B?(I+100*(B-U-1))/B:100}}))},C.prototype.openedSource=function(M){this.currentSourceOffset=this.bytesWritten,this.currentFile=M.file.name;var I=this.streamFiles&&!M.file.dir;if(I){var B=x(M,I,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:B.fileRecord,meta:{percent:0}})}else this.accumulate=!0},C.prototype.closedSource=function(M){this.accumulate=!1;var I=this.streamFiles&&!M.file.dir,B=x(M,I,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(B.dirRecord),I)this.push({data:function(U){return T.DATA_DESCRIPTOR+v(U.crc32,4)+v(U.compressedSize,4)+v(U.uncompressedSize,4)}(M),meta:{percent:100}});else for(this.push({data:B.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},C.prototype.flush=function(){for(var M=this.bytesWritten,I=0;I<this.dirRecords.length;I++)this.push({data:this.dirRecords[I],meta:{percent:100}});var B=this.bytesWritten-M,U=function(j,H,G,L,R){var F=g.transformTo("string",R(L));return T.CENTRAL_DIRECTORY_END+"\0\0\0\0"+v(j,2)+v(j,2)+v(H,4)+v(G,4)+v(F.length,2)+F}(this.dirRecords.length,B,M,this.zipComment,this.encodeFileName);this.push({data:U,meta:{percent:100}})},C.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},C.prototype.registerPrevious=function(M){this._sources.push(M);var I=this;return M.on("data",function(B){I.processChunk(B)}),M.on("end",function(){I.closedSource(I.previous.streamInfo),I._sources.length?I.prepareNextSource():I.end()}),M.on("error",function(B){I.error(B)}),this},C.prototype.resume=function(){return!!b.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},C.prototype.error=function(M){var I=this._sources;if(!b.prototype.error.call(this,M))return!1;for(var B=0;B<I.length;B++)try{I[B].error(M)}catch{}return!0},C.prototype.lock=function(){b.prototype.lock.call(this);for(var M=this._sources,I=0;I<M.length;I++)M[I].lock()},m.exports=C},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(p,m,d){var v=p("../compressions"),x=p("./ZipFileWorker");d.generateWorker=function(g,b,w){var y=new x(b.streamFiles,w,b.platform,b.encodeFileName),T=0;try{g.forEach(function(C,M){T++;var I=function(H,G){var L=H||G,R=v[L];if(!R)throw new Error(L+" is not a valid compression method !");return R}(M.options.compression,b.compression),B=M.options.compressionOptions||b.compressionOptions||{},U=M.dir,j=M.date;M._compressWorker(I,B).withStreamInfo("file",{name:C,dir:U,date:j,comment:M.comment||"",unixPermissions:M.unixPermissions,dosPermissions:M.dosPermissions}).pipe(y)}),y.entriesCount=T}catch(C){y.error(C)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(p,m,d){function v(){if(!(this instanceof v))return new v;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var x=new v;for(var g in this)typeof this[g]!="function"&&(x[g]=this[g]);return x}}(v.prototype=p("./object")).loadAsync=p("./load"),v.support=p("./support"),v.defaults=p("./defaults"),v.version="3.10.1",v.loadAsync=function(x,g){return new v().loadAsync(x,g)},v.external=p("./external"),m.exports=v},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(p,m,d){var v=p("./utils"),x=p("./external"),g=p("./utf8"),b=p("./zipEntries"),w=p("./stream/Crc32Probe"),y=p("./nodejsUtils");function T(C){return new x.Promise(function(M,I){var B=C.decompressed.getContentWorker().pipe(new w);B.on("error",function(U){I(U)}).on("end",function(){B.streamInfo.crc32!==C.decompressed.crc32?I(new Error("Corrupted zip : CRC32 mismatch")):M()}).resume()})}m.exports=function(C,M){var I=this;return M=v.extend(M||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),y.isNode&&y.isStream(C)?x.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):v.prepareContent("the loaded zip file",C,!0,M.optimizedBinaryString,M.base64).then(function(B){var U=new b(M);return U.load(B),U}).then(function(B){var U=[x.Promise.resolve(B)],j=B.files;if(M.checkCRC32)for(var H=0;H<j.length;H++)U.push(T(j[H]));return x.Promise.all(U)}).then(function(B){for(var U=B.shift(),j=U.files,H=0;H<j.length;H++){var G=j[H],L=G.fileNameStr,R=v.resolve(G.fileNameStr);I.file(R,G.decompressed,{binary:!0,optimizedBinaryString:!0,date:G.date,dir:G.dir,comment:G.fileCommentStr.length?G.fileCommentStr:null,unixPermissions:G.unixPermissions,dosPermissions:G.dosPermissions,createFolders:M.createFolders}),G.dir||(I.file(R).unsafeOriginalName=L)}return U.zipComment.length&&(I.comment=U.zipComment),I})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(p,m,d){var v=p("../utils"),x=p("../stream/GenericWorker");function g(b,w){x.call(this,"Nodejs stream input adapter for "+b),this._upstreamEnded=!1,this._bindStream(w)}v.inherits(g,x),g.prototype._bindStream=function(b){var w=this;(this._stream=b).pause(),b.on("data",function(y){w.push({data:y,meta:{percent:0}})}).on("error",function(y){w.isPaused?this.generatedError=y:w.error(y)}).on("end",function(){w.isPaused?w._upstreamEnded=!0:w.end()})},g.prototype.pause=function(){return!!x.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!x.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},m.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(p,m,d){var v=p("readable-stream").Readable;function x(g,b,w){v.call(this,b),this._helper=g;var y=this;g.on("data",function(T,C){y.push(T)||y._helper.pause(),w&&w(C)}).on("error",function(T){y.emit("error",T)}).on("end",function(){y.push(null)})}p("../utils").inherits(x,v),x.prototype._read=function(){this._helper.resume()},m.exports=x},{"../utils":32,"readable-stream":16}],14:[function(p,m,d){m.exports={isNode:typeof h<"u",newBufferFrom:function(v,x){if(h.from&&h.from!==Uint8Array.from)return h.from(v,x);if(typeof v=="number")throw new Error('The "data" argument must not be a number');return new h(v,x)},allocBuffer:function(v){if(h.alloc)return h.alloc(v);var x=new h(v);return x.fill(0),x},isBuffer:function(v){return h.isBuffer(v)},isStream:function(v){return v&&typeof v.on=="function"&&typeof v.pause=="function"&&typeof v.resume=="function"}}},{}],15:[function(p,m,d){function v(R,F,_){var k,N=g.getTypeOf(F),P=g.extend(_||{},y);P.date=P.date||new Date,P.compression!==null&&(P.compression=P.compression.toUpperCase()),typeof P.unixPermissions=="string"&&(P.unixPermissions=parseInt(P.unixPermissions,8)),P.unixPermissions&&16384&P.unixPermissions&&(P.dir=!0),P.dosPermissions&&16&P.dosPermissions&&(P.dir=!0),P.dir&&(R=j(R)),P.createFolders&&(k=U(R))&&H.call(this,k,!0);var D=N==="string"&&P.binary===!1&&P.base64===!1;_&&_.binary!==void 0||(P.binary=!D),(F instanceof T&&F.uncompressedSize===0||P.dir||!F||F.length===0)&&(P.base64=!1,P.binary=!0,F="",P.compression="STORE",N="string");var A=null;A=F instanceof T||F instanceof b?F:I.isNode&&I.isStream(F)?new B(R,F):g.prepareContent(R,F,P.binary,P.optimizedBinaryString,P.base64);var S=new C(R,A,P);this.files[R]=S}var x=p("./utf8"),g=p("./utils"),b=p("./stream/GenericWorker"),w=p("./stream/StreamHelper"),y=p("./defaults"),T=p("./compressedObject"),C=p("./zipObject"),M=p("./generate"),I=p("./nodejsUtils"),B=p("./nodejs/NodejsStreamInputAdapter"),U=function(R){R.slice(-1)==="/"&&(R=R.substring(0,R.length-1));var F=R.lastIndexOf("/");return 0<F?R.substring(0,F):""},j=function(R){return R.slice(-1)!=="/"&&(R+="/"),R},H=function(R,F){return F=F!==void 0?F:y.createFolders,R=j(R),this.files[R]||v.call(this,R,null,{dir:!0,createFolders:F}),this.files[R]};function G(R){return Object.prototype.toString.call(R)==="[object RegExp]"}var L={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(R){var F,_,k;for(F in this.files)k=this.files[F],(_=F.slice(this.root.length,F.length))&&F.slice(0,this.root.length)===this.root&&R(_,k)},filter:function(R){var F=[];return this.forEach(function(_,k){R(_,k)&&F.push(k)}),F},file:function(R,F,_){if(arguments.length!==1)return R=this.root+R,v.call(this,R,F,_),this;if(G(R)){var k=R;return this.filter(function(P,D){return!D.dir&&k.test(P)})}var N=this.files[this.root+R];return N&&!N.dir?N:null},folder:function(R){if(!R)return this;if(G(R))return this.filter(function(N,P){return P.dir&&R.test(N)});var F=this.root+R,_=H.call(this,F),k=this.clone();return k.root=_.name,k},remove:function(R){R=this.root+R;var F=this.files[R];if(F||(R.slice(-1)!=="/"&&(R+="/"),F=this.files[R]),F&&!F.dir)delete this.files[R];else for(var _=this.filter(function(N,P){return P.name.slice(0,R.length)===R}),k=0;k<_.length;k++)delete this.files[_[k].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(R){var F,_={};try{if((_=g.extend(R||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:x.utf8encode})).type=_.type.toLowerCase(),_.compression=_.compression.toUpperCase(),_.type==="binarystring"&&(_.type="string"),!_.type)throw new Error("No output type specified.");g.checkSupport(_.type),_.platform!=="darwin"&&_.platform!=="freebsd"&&_.platform!=="linux"&&_.platform!=="sunos"||(_.platform="UNIX"),_.platform==="win32"&&(_.platform="DOS");var k=_.comment||this.comment||"";F=M.generateWorker(this,_,k)}catch(N){(F=new b("error")).error(N)}return new w(F,_.type||"string",_.mimeType)},generateAsync:function(R,F){return this.generateInternalStream(R).accumulate(F)},generateNodeStream:function(R,F){return(R=R||{}).type||(R.type="nodebuffer"),this.generateInternalStream(R).toNodejsStream(F)}};m.exports=L},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(p,m,d){m.exports=p("stream")},{stream:void 0}],17:[function(p,m,d){var v=p("./DataReader");function x(g){v.call(this,g);for(var b=0;b<this.data.length;b++)g[b]=255&g[b]}p("../utils").inherits(x,v),x.prototype.byteAt=function(g){return this.data[this.zero+g]},x.prototype.lastIndexOfSignature=function(g){for(var b=g.charCodeAt(0),w=g.charCodeAt(1),y=g.charCodeAt(2),T=g.charCodeAt(3),C=this.length-4;0<=C;--C)if(this.data[C]===b&&this.data[C+1]===w&&this.data[C+2]===y&&this.data[C+3]===T)return C-this.zero;return-1},x.prototype.readAndCheckSignature=function(g){var b=g.charCodeAt(0),w=g.charCodeAt(1),y=g.charCodeAt(2),T=g.charCodeAt(3),C=this.readData(4);return b===C[0]&&w===C[1]&&y===C[2]&&T===C[3]},x.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var b=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,b},m.exports=x},{"../utils":32,"./DataReader":18}],18:[function(p,m,d){var v=p("../utils");function x(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}x.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var b,w=0;for(this.checkOffset(g),b=this.index+g-1;b>=this.index;b--)w=(w<<8)+this.byteAt(b);return this.index+=g,w},readString:function(g){return v.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},m.exports=x},{"../utils":32}],19:[function(p,m,d){var v=p("./Uint8ArrayReader");function x(g){v.call(this,g)}p("../utils").inherits(x,v),x.prototype.readData=function(g){this.checkOffset(g);var b=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,b},m.exports=x},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(p,m,d){var v=p("./DataReader");function x(g){v.call(this,g)}p("../utils").inherits(x,v),x.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},x.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},x.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},x.prototype.readData=function(g){this.checkOffset(g);var b=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,b},m.exports=x},{"../utils":32,"./DataReader":18}],21:[function(p,m,d){var v=p("./ArrayReader");function x(g){v.call(this,g)}p("../utils").inherits(x,v),x.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var b=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,b},m.exports=x},{"../utils":32,"./ArrayReader":17}],22:[function(p,m,d){var v=p("../utils"),x=p("../support"),g=p("./ArrayReader"),b=p("./StringReader"),w=p("./NodeBufferReader"),y=p("./Uint8ArrayReader");m.exports=function(T){var C=v.getTypeOf(T);return v.checkSupport(C),C!=="string"||x.uint8array?C==="nodebuffer"?new w(T):x.uint8array?new y(v.transformTo("uint8array",T)):new g(v.transformTo("array",T)):new b(T)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(p,m,d){d.LOCAL_FILE_HEADER="PK",d.CENTRAL_FILE_HEADER="PK",d.CENTRAL_DIRECTORY_END="PK",d.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",d.ZIP64_CENTRAL_DIRECTORY_END="PK",d.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(p,m,d){var v=p("./GenericWorker"),x=p("../utils");function g(b){v.call(this,"ConvertWorker to "+b),this.destType=b}x.inherits(g,v),g.prototype.processChunk=function(b){this.push({data:x.transformTo(this.destType,b.data),meta:b.meta})},m.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(p,m,d){var v=p("./GenericWorker"),x=p("../crc32");function g(){v.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}p("../utils").inherits(g,v),g.prototype.processChunk=function(b){this.streamInfo.crc32=x(b.data,this.streamInfo.crc32||0),this.push(b)},m.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(p,m,d){var v=p("../utils"),x=p("./GenericWorker");function g(b){x.call(this,"DataLengthProbe for "+b),this.propName=b,this.withStreamInfo(b,0)}v.inherits(g,x),g.prototype.processChunk=function(b){if(b){var w=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=w+b.data.length}x.prototype.processChunk.call(this,b)},m.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(p,m,d){var v=p("../utils"),x=p("./GenericWorker");function g(b){x.call(this,"DataWorker");var w=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,b.then(function(y){w.dataIsReady=!0,w.data=y,w.max=y&&y.length||0,w.type=v.getTypeOf(y),w.isPaused||w._tickAndRepeat()},function(y){w.error(y)})}v.inherits(g,x),g.prototype.cleanUp=function(){x.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!x.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,v.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(v.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var b=null,w=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":b=this.data.substring(this.index,w);break;case"uint8array":b=this.data.subarray(this.index,w);break;case"array":case"nodebuffer":b=this.data.slice(this.index,w)}return this.index=w,this.push({data:b,meta:{percent:this.max?this.index/this.max*100:0}})},m.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(p,m,d){function v(x){this.name=x||"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}v.prototype={push:function(x){this.emit("data",x)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(x){this.emit("error",x)}return!0},error:function(x){return!this.isFinished&&(this.isPaused?this.generatedError=x:(this.isFinished=!0,this.emit("error",x),this.previous&&this.previous.error(x),this.cleanUp()),!0)},on:function(x,g){return this._listeners[x].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(x,g){if(this._listeners[x])for(var b=0;b<this._listeners[x].length;b++)this._listeners[x][b].call(this,g)},pipe:function(x){return x.registerPrevious(this)},registerPrevious:function(x){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=x.streamInfo,this.mergeStreamInfo(),this.previous=x;var g=this;return x.on("data",function(b){g.processChunk(b)}),x.on("end",function(){g.end()}),x.on("error",function(b){g.error(b)}),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;var x=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),x=!0),this.previous&&this.previous.resume(),!x},flush:function(){},processChunk:function(x){this.push(x)},withStreamInfo:function(x,g){return this.extraStreamInfo[x]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var x in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,x)&&(this.streamInfo[x]=this.extraStreamInfo[x])},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 x="Worker "+this.name;return this.previous?this.previous+" -> "+x:x}},m.exports=v},{}],29:[function(p,m,d){var v=p("../utils"),x=p("./ConvertWorker"),g=p("./GenericWorker"),b=p("../base64"),w=p("../support"),y=p("../external"),T=null;if(w.nodestream)try{T=p("../nodejs/NodejsStreamOutputAdapter")}catch{}function C(I,B){return new y.Promise(function(U,j){var H=[],G=I._internalType,L=I._outputType,R=I._mimeType;I.on("data",function(F,_){H.push(F),B&&B(_)}).on("error",function(F){H=[],j(F)}).on("end",function(){try{var F=function(_,k,N){switch(_){case"blob":return v.newBlob(v.transformTo("arraybuffer",k),N);case"base64":return b.encode(k);default:return v.transformTo(_,k)}}(L,function(_,k){var N,P=0,D=null,A=0;for(N=0;N<k.length;N++)A+=k[N].length;switch(_){case"string":return k.join("");case"array":return Array.prototype.concat.apply([],k);case"uint8array":for(D=new Uint8Array(A),N=0;N<k.length;N++)D.set(k[N],P),P+=k[N].length;return D;case"nodebuffer":return h.concat(k);default:throw new Error("concat : unsupported type '"+_+"'")}}(G,H),R);U(F)}catch(_){j(_)}H=[]}).resume()})}function M(I,B,U){var j=B;switch(B){case"blob":case"arraybuffer":j="uint8array";break;case"base64":j="string"}try{this._internalType=j,this._outputType=B,this._mimeType=U,v.checkSupport(j),this._worker=I.pipe(new x(j)),I.lock()}catch(H){this._worker=new g("error"),this._worker.error(H)}}M.prototype={accumulate:function(I){return C(this,I)},on:function(I,B){var U=this;return I==="data"?this._worker.on(I,function(j){B.call(U,j.data,j.meta)}):this._worker.on(I,function(){v.delay(B,arguments,U)}),this},resume:function(){return v.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(I){if(v.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new T(this,{objectMode:this._outputType!=="nodebuffer"},I)}},m.exports=M},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(p,m,d){if(d.base64=!0,d.array=!0,d.string=!0,d.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",d.nodebuffer=typeof h<"u",d.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")d.blob=!1;else{var v=new ArrayBuffer(0);try{d.blob=new Blob([v],{type:"application/zip"}).size===0}catch{try{var x=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);x.append(v),d.blob=x.getBlob("application/zip").size===0}catch{d.blob=!1}}}try{d.nodestream=!!p("readable-stream").Readable}catch{d.nodestream=!1}},{"readable-stream":16}],31:[function(p,m,d){for(var v=p("./utils"),x=p("./support"),g=p("./nodejsUtils"),b=p("./stream/GenericWorker"),w=new Array(256),y=0;y<256;y++)w[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;w[254]=w[254]=1;function T(){b.call(this,"utf-8 decode"),this.leftOver=null}function C(){b.call(this,"utf-8 encode")}d.utf8encode=function(M){return x.nodebuffer?g.newBufferFrom(M,"utf-8"):function(I){var B,U,j,H,G,L=I.length,R=0;for(H=0;H<L;H++)(64512&(U=I.charCodeAt(H)))==55296&&H+1<L&&(64512&(j=I.charCodeAt(H+1)))==56320&&(U=65536+(U-55296<<10)+(j-56320),H++),R+=U<128?1:U<2048?2:U<65536?3:4;for(B=x.uint8array?new Uint8Array(R):new Array(R),H=G=0;G<R;H++)(64512&(U=I.charCodeAt(H)))==55296&&H+1<L&&(64512&(j=I.charCodeAt(H+1)))==56320&&(U=65536+(U-55296<<10)+(j-56320),H++),U<128?B[G++]=U:(U<2048?B[G++]=192|U>>>6:(U<65536?B[G++]=224|U>>>12:(B[G++]=240|U>>>18,B[G++]=128|U>>>12&63),B[G++]=128|U>>>6&63),B[G++]=128|63&U);return B}(M)},d.utf8decode=function(M){return x.nodebuffer?v.transformTo("nodebuffer",M).toString("utf-8"):function(I){var B,U,j,H,G=I.length,L=new Array(2*G);for(B=U=0;B<G;)if((j=I[B++])<128)L[U++]=j;else if(4<(H=w[j]))L[U++]=65533,B+=H-1;else{for(j&=H===2?31:H===3?15:7;1<H&&B<G;)j=j<<6|63&I[B++],H--;1<H?L[U++]=65533:j<65536?L[U++]=j:(j-=65536,L[U++]=55296|j>>10&1023,L[U++]=56320|1023&j)}return L.length!==U&&(L.subarray?L=L.subarray(0,U):L.length=U),v.applyFromCharCode(L)}(M=v.transformTo(x.uint8array?"uint8array":"array",M))},v.inherits(T,b),T.prototype.processChunk=function(M){var I=v.transformTo(x.uint8array?"uint8array":"array",M.data);if(this.leftOver&&this.leftOver.length){if(x.uint8array){var B=I;(I=new Uint8Array(B.length+this.leftOver.length)).set(this.leftOver,0),I.set(B,this.leftOver.length)}else I=this.leftOver.concat(I);this.leftOver=null}var U=function(H,G){var L;for((G=G||H.length)>H.length&&(G=H.length),L=G-1;0<=L&&(192&H[L])==128;)L--;return L<0||L===0?G:L+w[H[L]]>G?L:G}(I),j=I;U!==I.length&&(x.uint8array?(j=I.subarray(0,U),this.leftOver=I.subarray(U,I.length)):(j=I.slice(0,U),this.leftOver=I.slice(U,I.length))),this.push({data:d.utf8decode(j),meta:M.meta})},T.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=T,v.inherits(C,b),C.prototype.processChunk=function(M){this.push({data:d.utf8encode(M.data),meta:M.meta})},d.Utf8EncodeWorker=C},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(p,m,d){var v=p("./support"),x=p("./base64"),g=p("./nodejsUtils"),b=p("./external");function w(B){return B}function y(B,U){for(var j=0;j<B.length;++j)U[j]=255&B.charCodeAt(j);return U}p("setimmediate"),d.newBlob=function(B,U){d.checkSupport("blob");try{return new Blob([B],{type:U})}catch{try{var j=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return j.append(B),j.getBlob(U)}catch{throw new Error("Bug : can't construct the Blob.")}}};var T={stringifyByChunk:function(B,U,j){var H=[],G=0,L=B.length;if(L<=j)return String.fromCharCode.apply(null,B);for(;G<L;)U==="array"||U==="nodebuffer"?H.push(String.fromCharCode.apply(null,B.slice(G,Math.min(G+j,L)))):H.push(String.fromCharCode.apply(null,B.subarray(G,Math.min(G+j,L)))),G+=j;return H.join("")},stringifyByChar:function(B){for(var U="",j=0;j<B.length;j++)U+=String.fromCharCode(B[j]);return U},applyCanBeUsed:{uint8array:function(){try{return v.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return v.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch{return!1}}()}};function C(B){var U=65536,j=d.getTypeOf(B),H=!0;if(j==="uint8array"?H=T.applyCanBeUsed.uint8array:j==="nodebuffer"&&(H=T.applyCanBeUsed.nodebuffer),H)for(;1<U;)try{return T.stringifyByChunk(B,j,U)}catch{U=Math.floor(U/2)}return T.stringifyByChar(B)}function M(B,U){for(var j=0;j<B.length;j++)U[j]=B[j];return U}d.applyFromCharCode=C;var I={};I.string={string:w,array:function(B){return y(B,new Array(B.length))},arraybuffer:function(B){return I.string.uint8array(B).buffer},uint8array:function(B){return y(B,new Uint8Array(B.length))},nodebuffer:function(B){return y(B,g.allocBuffer(B.length))}},I.array={string:C,array:w,arraybuffer:function(B){return new Uint8Array(B).buffer},uint8array:function(B){return new Uint8Array(B)},nodebuffer:function(B){return g.newBufferFrom(B)}},I.arraybuffer={string:function(B){return C(new Uint8Array(B))},array:function(B){return M(new Uint8Array(B),new Array(B.byteLength))},arraybuffer:w,uint8array:function(B){return new Uint8Array(B)},nodebuffer:function(B){return g.newBufferFrom(new Uint8Array(B))}},I.uint8array={string:C,array:function(B){return M(B,new Array(B.length))},arraybuffer:function(B){return B.buffer},uint8array:w,nodebuffer:function(B){return g.newBufferFrom(B)}},I.nodebuffer={string:C,array:function(B){return M(B,new Array(B.length))},arraybuffer:function(B){return I.nodebuffer.uint8array(B).buffer},uint8array:function(B){return M(B,new Uint8Array(B.length))},nodebuffer:w},d.transformTo=function(B,U){if(U=U||"",!B)return U;d.checkSupport(B);var j=d.getTypeOf(U);return I[j][B](U)},d.resolve=function(B){for(var U=B.split("/"),j=[],H=0;H<U.length;H++){var G=U[H];G==="."||G===""&&H!==0&&H!==U.length-1||(G===".."?j.pop():j.push(G))}return j.join("/")},d.getTypeOf=function(B){return typeof B=="string"?"string":Object.prototype.toString.call(B)==="[object Array]"?"array":v.nodebuffer&&g.isBuffer(B)?"nodebuffer":v.uint8array&&B instanceof Uint8Array?"uint8array":v.arraybuffer&&B instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(B){if(!v[B.toLowerCase()])throw new Error(B+" is not supported by this platform")},d.MAX_VALUE_16BITS=65535,d.MAX_VALUE_32BITS=-1,d.pretty=function(B){var U,j,H="";for(j=0;j<(B||"").length;j++)H+="\\x"+((U=B.charCodeAt(j))<16?"0":"")+U.toString(16).toUpperCase();return H},d.delay=function(B,U,j){u(function(){B.apply(j||null,U||[])})},d.inherits=function(B,U){function j(){}j.prototype=U.prototype,B.prototype=new j},d.extend=function(){var B,U,j={};for(B=0;B<arguments.length;B++)for(U in arguments[B])Object.prototype.hasOwnProperty.call(arguments[B],U)&&j[U]===void 0&&(j[U]=arguments[B][U]);return j},d.prepareContent=function(B,U,j,H,G){return b.Promise.resolve(U).then(function(L){return v.blob&&(L instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(L))!==-1)&&typeof FileReader<"u"?new b.Promise(function(R,F){var _=new FileReader;_.onload=function(k){R(k.target.result)},_.onerror=function(k){F(k.target.error)},_.readAsArrayBuffer(L)}):L}).then(function(L){var R=d.getTypeOf(L);return R?(R==="arraybuffer"?L=d.transformTo("uint8array",L):R==="string"&&(G?L=x.decode(L):j&&H!==!0&&(L=function(F){return y(F,v.uint8array?new Uint8Array(F.length):new Array(F.length))}(L))),L):b.Promise.reject(new Error("Can't read the data of '"+B+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(p,m,d){var v=p("./reader/readerFor"),x=p("./utils"),g=p("./signature"),b=p("./zipEntry"),w=p("./support");function y(T){this.files=[],this.loadOptions=T}y.prototype={checkSignature:function(T){if(!this.reader.readAndCheckSignature(T)){this.reader.index-=4;var C=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+x.pretty(C)+", expected "+x.pretty(T)+")")}},isSignature:function(T,C){var M=this.reader.index;this.reader.setIndex(T);var I=this.reader.readString(4)===C;return this.reader.setIndex(M),I},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 T=this.reader.readData(this.zipCommentLength),C=w.uint8array?"uint8array":"array",M=x.transformTo(C,T);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 T,C,M,I=this.zip64EndOfCentralSize-44;0<I;)T=this.reader.readInt(2),C=this.reader.readInt(4),M=this.reader.readData(C),this.zip64ExtensibleData[T]={id:T,length:C,value:M}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var T,C;for(T=0;T<this.files.length;T++)C=this.files[T],this.reader.setIndex(C.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),C.readLocalPart(this.reader),C.handleUTF8(),C.processAttributes()},readCentralDir:function(){var T;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(T=new b({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(T);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 T=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(T<0)throw this.isSignature(0,g.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(T);var C=T;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===x.MAX_VALUE_16BITS||this.diskWithCentralDirStart===x.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===x.MAX_VALUE_16BITS||this.centralDirRecords===x.MAX_VALUE_16BITS||this.centralDirSize===x.MAX_VALUE_32BITS||this.centralDirOffset===x.MAX_VALUE_32BITS){if(this.zip64=!0,(T=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(T),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.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(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var M=this.centralDirOffset+this.centralDirSize;this.zip64&&(M+=20,M+=12+this.zip64EndOfCentralSize);var I=C-M;if(0<I)this.isSignature(C,g.CENTRAL_FILE_HEADER)||(this.reader.zero=I);else if(I<0)throw new Error("Corrupted zip: missing "+Math.abs(I)+" bytes.")},prepareReader:function(T){this.reader=v(T)},load:function(T){this.prepareReader(T),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},m.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(p,m,d){var v=p("./reader/readerFor"),x=p("./utils"),g=p("./compressedObject"),b=p("./crc32"),w=p("./utf8"),y=p("./compressions"),T=p("./support");function C(M,I){this.options=M,this.loadOptions=I}C.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(M){var I,B;if(M.skip(22),this.fileNameLength=M.readInt(2),B=M.readInt(2),this.fileName=M.readData(this.fileNameLength),M.skip(B),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((I=function(U){for(var j in y)if(Object.prototype.hasOwnProperty.call(y,j)&&y[j].magic===U)return y[j];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+x.pretty(this.compressionMethod)+" unknown (inner file : "+x.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,I,M.readData(this.compressedSize))},readCentralPart:function(M){this.versionMadeBy=M.readInt(2),M.skip(2),this.bitFlag=M.readInt(2),this.compressionMethod=M.readString(2),this.date=M.readDate(),this.crc32=M.readInt(4),this.compressedSize=M.readInt(4),this.uncompressedSize=M.readInt(4);var I=M.readInt(2);if(this.extraFieldsLength=M.readInt(2),this.fileCommentLength=M.readInt(2),this.diskNumberStart=M.readInt(2),this.internalFileAttributes=M.readInt(2),this.externalFileAttributes=M.readInt(4),this.localHeaderOffset=M.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");M.skip(I),this.readExtraFields(M),this.parseZIP64ExtraField(M),this.fileComment=M.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var M=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),M==0&&(this.dosPermissions=63&this.externalFileAttributes),M==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var M=v(this.extraFields[1].value);this.uncompressedSize===x.MAX_VALUE_32BITS&&(this.uncompressedSize=M.readInt(8)),this.compressedSize===x.MAX_VALUE_32BITS&&(this.compressedSize=M.readInt(8)),this.localHeaderOffset===x.MAX_VALUE_32BITS&&(this.localHeaderOffset=M.readInt(8)),this.diskNumberStart===x.MAX_VALUE_32BITS&&(this.diskNumberStart=M.readInt(4))}},readExtraFields:function(M){var I,B,U,j=M.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});M.index+4<j;)I=M.readInt(2),B=M.readInt(2),U=M.readData(B),this.extraFields[I]={id:I,length:B,value:U};M.setIndex(j)},handleUTF8:function(){var M=T.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=w.utf8decode(this.fileName),this.fileCommentStr=w.utf8decode(this.fileComment);else{var I=this.findExtraFieldUnicodePath();if(I!==null)this.fileNameStr=I;else{var B=x.transformTo(M,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(B)}var U=this.findExtraFieldUnicodeComment();if(U!==null)this.fileCommentStr=U;else{var j=x.transformTo(M,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(j)}}},findExtraFieldUnicodePath:function(){var M=this.extraFields[28789];if(M){var I=v(M.value);return I.readInt(1)!==1||b(this.fileName)!==I.readInt(4)?null:w.utf8decode(I.readData(M.length-5))}return null},findExtraFieldUnicodeComment:function(){var M=this.extraFields[25461];if(M){var I=v(M.value);return I.readInt(1)!==1||b(this.fileComment)!==I.readInt(4)?null:w.utf8decode(I.readData(M.length-5))}return null}},m.exports=C},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(p,m,d){function v(I,B,U){this.name=I,this.dir=U.dir,this.date=U.date,this.comment=U.comment,this.unixPermissions=U.unixPermissions,this.dosPermissions=U.dosPermissions,this._data=B,this._dataBinary=U.binary,this.options={compression:U.compression,compressionOptions:U.compressionOptions}}var x=p("./stream/StreamHelper"),g=p("./stream/DataWorker"),b=p("./utf8"),w=p("./compressedObject"),y=p("./stream/GenericWorker");v.prototype={internalStream:function(I){var B=null,U="string";try{if(!I)throw new Error("No output type specified.");var j=(U=I.toLowerCase())==="string"||U==="text";U!=="binarystring"&&U!=="text"||(U="string"),B=this._decompressWorker();var H=!this._dataBinary;H&&!j&&(B=B.pipe(new b.Utf8EncodeWorker)),!H&&j&&(B=B.pipe(new b.Utf8DecodeWorker))}catch(G){(B=new y("error")).error(G)}return new x(B,U,"")},async:function(I,B){return this.internalStream(I).accumulate(B)},nodeStream:function(I,B){return this.internalStream(I||"nodebuffer").toNodejsStream(B)},_compressWorker:function(I,B){if(this._data instanceof w&&this._data.compression.magic===I.magic)return this._data.getCompressedWorker();var U=this._decompressWorker();return this._dataBinary||(U=U.pipe(new b.Utf8EncodeWorker)),w.createWorkerFrom(U,I,B)},_decompressWorker:function(){return this._data instanceof w?this._data.getContentWorker():this._data instanceof y?this._data:new g(this._data)}};for(var T=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],C=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},M=0;M<T.length;M++)v.prototype[T[M]]=C;m.exports=v},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(p,m,d){(function(v){var x,g,b=v.MutationObserver||v.WebKitMutationObserver;if(b){var w=0,y=new b(I),T=v.document.createTextNode("");y.observe(T,{characterData:!0}),x=function(){T.data=w=++w%2}}else if(v.setImmediate||v.MessageChannel===void 0)x="document"in v&&"onreadystatechange"in v.document.createElement("script")?function(){var B=v.document.createElement("script");B.onreadystatechange=function(){I(),B.onreadystatechange=null,B.parentNode.removeChild(B),B=null},v.document.documentElement.appendChild(B)}:function(){setTimeout(I,0)};else{var C=new v.MessageChannel;C.port1.onmessage=I,x=function(){C.port2.postMessage(0)}}var M=[];function I(){var B,U;g=!0;for(var j=M.length;j;){for(U=M,M=[],B=-1;++B<j;)U[B]();j=M.length}g=!1}m.exports=function(B){M.push(B)!==1||g||x()}}).call(this,typeof o<"u"?o:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(p,m,d){var v=p("immediate");function x(){}var g={},b=["REJECTED"],w=["FULFILLED"],y=["PENDING"];function T(j){if(typeof j!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,j!==x&&B(this,j)}function C(j,H,G){this.promise=j,typeof H=="function"&&(this.onFulfilled=H,this.callFulfilled=this.otherCallFulfilled),typeof G=="function"&&(this.onRejected=G,this.callRejected=this.otherCallRejected)}function M(j,H,G){v(function(){var L;try{L=H(G)}catch(R){return g.reject(j,R)}L===j?g.reject(j,new TypeError("Cannot resolve promise with itself")):g.resolve(j,L)})}function I(j){var H=j&&j.then;if(j&&(typeof j=="object"||typeof j=="function")&&typeof H=="function")return function(){H.apply(j,arguments)}}function B(j,H){var G=!1;function L(_){G||(G=!0,g.reject(j,_))}function R(_){G||(G=!0,g.resolve(j,_))}var F=U(function(){H(R,L)});F.status==="error"&&L(F.value)}function U(j,H){var G={};try{G.value=j(H),G.status="success"}catch(L){G.status="error",G.value=L}return G}(m.exports=T).prototype.finally=function(j){if(typeof j!="function")return this;var H=this.constructor;return this.then(function(G){return H.resolve(j()).then(function(){return G})},function(G){return H.resolve(j()).then(function(){throw G})})},T.prototype.catch=function(j){return this.then(null,j)},T.prototype.then=function(j,H){if(typeof j!="function"&&this.state===w||typeof H!="function"&&this.state===b)return this;var G=new this.constructor(x);return this.state!==y?M(G,this.state===w?j:H,this.outcome):this.queue.push(new C(G,j,H)),G},C.prototype.callFulfilled=function(j){g.resolve(this.promise,j)},C.prototype.otherCallFulfilled=function(j){M(this.promise,this.onFulfilled,j)},C.prototype.callRejected=function(j){g.reject(this.promise,j)},C.prototype.otherCallRejected=function(j){M(this.promise,this.onRejected,j)},g.resolve=function(j,H){var G=U(I,H);if(G.status==="error")return g.reject(j,G.value);var L=G.value;if(L)B(j,L);else{j.state=w,j.outcome=H;for(var R=-1,F=j.queue.length;++R<F;)j.queue[R].callFulfilled(H)}return j},g.reject=function(j,H){j.state=b,j.outcome=H;for(var G=-1,L=j.queue.length;++G<L;)j.queue[G].callRejected(H);return j},T.resolve=function(j){return j instanceof this?j:g.resolve(new this(x),j)},T.reject=function(j){var H=new this(x);return g.reject(H,j)},T.all=function(j){var H=this;if(Object.prototype.toString.call(j)!=="[object Array]")return this.reject(new TypeError("must be an array"));var G=j.length,L=!1;if(!G)return this.resolve([]);for(var R=new Array(G),F=0,_=-1,k=new this(x);++_<G;)N(j[_],_);return k;function N(P,D){H.resolve(P).then(function(A){R[D]=A,++F!==G||L||(L=!0,g.resolve(k,R))},function(A){L||(L=!0,g.reject(k,A))})}},T.race=function(j){var H=this;if(Object.prototype.toString.call(j)!=="[object Array]")return this.reject(new TypeError("must be an array"));var G=j.length,L=!1;if(!G)return this.resolve([]);for(var R=-1,F=new this(x);++R<G;)_=j[R],H.resolve(_).then(function(k){L||(L=!0,g.resolve(F,k))},function(k){L||(L=!0,g.reject(F,k))});var _;return F}},{immediate:36}],38:[function(p,m,d){var v={};(0,p("./lib/utils/common").assign)(v,p("./lib/deflate"),p("./lib/inflate"),p("./lib/zlib/constants")),m.exports=v},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(p,m,d){var v=p("./zlib/deflate"),x=p("./utils/common"),g=p("./utils/strings"),b=p("./zlib/messages"),w=p("./zlib/zstream"),y=Object.prototype.toString,T=0,C=-1,M=0,I=8;function B(j){if(!(this instanceof B))return new B(j);this.options=x.assign({level:C,method:I,chunkSize:16384,windowBits:15,memLevel:8,strategy:M,to:""},j||{});var H=this.options;H.raw&&0<H.windowBits?H.windowBits=-H.windowBits:H.gzip&&0<H.windowBits&&H.windowBits<16&&(H.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new w,this.strm.avail_out=0;var G=v.deflateInit2(this.strm,H.level,H.method,H.windowBits,H.memLevel,H.strategy);if(G!==T)throw new Error(b[G]);if(H.header&&v.deflateSetHeader(this.strm,H.header),H.dictionary){var L;if(L=typeof H.dictionary=="string"?g.string2buf(H.dictionary):y.call(H.dictionary)==="[object ArrayBuffer]"?new Uint8Array(H.dictionary):H.dictionary,(G=v.deflateSetDictionary(this.strm,L))!==T)throw new Error(b[G]);this._dict_set=!0}}function U(j,H){var G=new B(H);if(G.push(j,!0),G.err)throw G.msg||b[G.err];return G.result}B.prototype.push=function(j,H){var G,L,R=this.strm,F=this.options.chunkSize;if(this.ended)return!1;L=H===~~H?H:H===!0?4:0,typeof j=="string"?R.input=g.string2buf(j):y.call(j)==="[object ArrayBuffer]"?R.input=new Uint8Array(j):R.input=j,R.next_in=0,R.avail_in=R.input.length;do{if(R.avail_out===0&&(R.output=new x.Buf8(F),R.next_out=0,R.avail_out=F),(G=v.deflate(R,L))!==1&&G!==T)return this.onEnd(G),!(this.ended=!0);R.avail_out!==0&&(R.avail_in!==0||L!==4&&L!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(x.shrinkBuf(R.output,R.next_out))):this.onData(x.shrinkBuf(R.output,R.next_out)))}while((0<R.avail_in||R.avail_out===0)&&G!==1);return L===4?(G=v.deflateEnd(this.strm),this.onEnd(G),this.ended=!0,G===T):L!==2||(this.onEnd(T),!(R.avail_out=0))},B.prototype.onData=function(j){this.chunks.push(j)},B.prototype.onEnd=function(j){j===T&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=x.flattenChunks(this.chunks)),this.chunks=[],this.err=j,this.msg=this.strm.msg},d.Deflate=B,d.deflate=U,d.deflateRaw=function(j,H){return(H=H||{}).raw=!0,U(j,H)},d.gzip=function(j,H){return(H=H||{}).gzip=!0,U(j,H)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(p,m,d){var v=p("./zlib/inflate"),x=p("./utils/common"),g=p("./utils/strings"),b=p("./zlib/constants"),w=p("./zlib/messages"),y=p("./zlib/zstream"),T=p("./zlib/gzheader"),C=Object.prototype.toString;function M(B){if(!(this instanceof M))return new M(B);this.options=x.assign({chunkSize:16384,windowBits:0,to:""},B||{});var U=this.options;U.raw&&0<=U.windowBits&&U.windowBits<16&&(U.windowBits=-U.windowBits,U.windowBits===0&&(U.windowBits=-15)),!(0<=U.windowBits&&U.windowBits<16)||B&&B.windowBits||(U.windowBits+=32),15<U.windowBits&&U.windowBits<48&&!(15&U.windowBits)&&(U.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var j=v.inflateInit2(this.strm,U.windowBits);if(j!==b.Z_OK)throw new Error(w[j]);this.header=new T,v.inflateGetHeader(this.strm,this.header)}function I(B,U){var j=new M(U);if(j.push(B,!0),j.err)throw j.msg||w[j.err];return j.result}M.prototype.push=function(B,U){var j,H,G,L,R,F,_=this.strm,k=this.options.chunkSize,N=this.options.dictionary,P=!1;if(this.ended)return!1;H=U===~~U?U:U===!0?b.Z_FINISH:b.Z_NO_FLUSH,typeof B=="string"?_.input=g.binstring2buf(B):C.call(B)==="[object ArrayBuffer]"?_.input=new Uint8Array(B):_.input=B,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new x.Buf8(k),_.next_out=0,_.avail_out=k),(j=v.inflate(_,b.Z_NO_FLUSH))===b.Z_NEED_DICT&&N&&(F=typeof N=="string"?g.string2buf(N):C.call(N)==="[object ArrayBuffer]"?new Uint8Array(N):N,j=v.inflateSetDictionary(this.strm,F)),j===b.Z_BUF_ERROR&&P===!0&&(j=b.Z_OK,P=!1),j!==b.Z_STREAM_END&&j!==b.Z_OK)return this.onEnd(j),!(this.ended=!0);_.next_out&&(_.avail_out!==0&&j!==b.Z_STREAM_END&&(_.avail_in!==0||H!==b.Z_FINISH&&H!==b.Z_SYNC_FLUSH)||(this.options.to==="string"?(G=g.utf8border(_.output,_.next_out),L=_.next_out-G,R=g.buf2string(_.output,G),_.next_out=L,_.avail_out=k-L,L&&x.arraySet(_.output,_.output,G,L,0),this.onData(R)):this.onData(x.shrinkBuf(_.output,_.next_out)))),_.avail_in===0&&_.avail_out===0&&(P=!0)}while((0<_.avail_in||_.avail_out===0)&&j!==b.Z_STREAM_END);return j===b.Z_STREAM_END&&(H=b.Z_FINISH),H===b.Z_FINISH?(j=v.inflateEnd(this.strm),this.onEnd(j),this.ended=!0,j===b.Z_OK):H!==b.Z_SYNC_FLUSH||(this.onEnd(b.Z_OK),!(_.avail_out=0))},M.prototype.onData=function(B){this.chunks.push(B)},M.prototype.onEnd=function(B){B===b.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=x.flattenChunks(this.chunks)),this.chunks=[],this.err=B,this.msg=this.strm.msg},d.Inflate=M,d.inflate=I,d.inflateRaw=function(B,U){return(U=U||{}).raw=!0,I(B,U)},d.ungzip=I},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(p,m,d){var v=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";d.assign=function(b){for(var w=Array.prototype.slice.call(arguments,1);w.length;){var y=w.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var T in y)y.hasOwnProperty(T)&&(b[T]=y[T])}}return b},d.shrinkBuf=function(b,w){return b.length===w?b:b.subarray?b.subarray(0,w):(b.length=w,b)};var x={arraySet:function(b,w,y,T,C){if(w.subarray&&b.subarray)b.set(w.subarray(y,y+T),C);else for(var M=0;M<T;M++)b[C+M]=w[y+M]},flattenChunks:function(b){var w,y,T,C,M,I;for(w=T=0,y=b.length;w<y;w++)T+=b[w].length;for(I=new Uint8Array(T),w=C=0,y=b.length;w<y;w++)M=b[w],I.set(M,C),C+=M.length;return I}},g={arraySet:function(b,w,y,T,C){for(var M=0;M<T;M++)b[C+M]=w[y+M]},flattenChunks:function(b){return[].concat.apply([],b)}};d.setTyped=function(b){b?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,x)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,g))},d.setTyped(v)},{}],42:[function(p,m,d){var v=p("./common"),x=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch{x=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{g=!1}for(var b=new v.Buf8(256),w=0;w<256;w++)b[w]=252<=w?6:248<=w?5:240<=w?4:224<=w?3:192<=w?2:1;function y(T,C){if(C<65537&&(T.subarray&&g||!T.subarray&&x))return String.fromCharCode.apply(null,v.shrinkBuf(T,C));for(var M="",I=0;I<C;I++)M+=String.fromCharCode(T[I]);return M}b[254]=b[254]=1,d.string2buf=function(T){var C,M,I,B,U,j=T.length,H=0;for(B=0;B<j;B++)(64512&(M=T.charCodeAt(B)))==55296&&B+1<j&&(64512&(I=T.charCodeAt(B+1)))==56320&&(M=65536+(M-55296<<10)+(I-56320),B++),H+=M<128?1:M<2048?2:M<65536?3:4;for(C=new v.Buf8(H),B=U=0;U<H;B++)(64512&(M=T.charCodeAt(B)))==55296&&B+1<j&&(64512&(I=T.charCodeAt(B+1)))==56320&&(M=65536+(M-55296<<10)+(I-56320),B++),M<128?C[U++]=M:(M<2048?C[U++]=192|M>>>6:(M<65536?C[U++]=224|M>>>12:(C[U++]=240|M>>>18,C[U++]=128|M>>>12&63),C[U++]=128|M>>>6&63),C[U++]=128|63&M);return C},d.buf2binstring=function(T){return y(T,T.length)},d.binstring2buf=function(T){for(var C=new v.Buf8(T.length),M=0,I=C.length;M<I;M++)C[M]=T.charCodeAt(M);return C},d.buf2string=function(T,C){var M,I,B,U,j=C||T.length,H=new Array(2*j);for(M=I=0;M<j;)if((B=T[M++])<128)H[I++]=B;else if(4<(U=b[B]))H[I++]=65533,M+=U-1;else{for(B&=U===2?31:U===3?15:7;1<U&&M<j;)B=B<<6|63&T[M++],U--;1<U?H[I++]=65533:B<65536?H[I++]=B:(B-=65536,H[I++]=55296|B>>10&1023,H[I++]=56320|1023&B)}return y(H,I)},d.utf8border=function(T,C){var M;for((C=C||T.length)>T.length&&(C=T.length),M=C-1;0<=M&&(192&T[M])==128;)M--;return M<0||M===0?C:M+b[T[M]]>C?M:C}},{"./common":41}],43:[function(p,m,d){m.exports=function(v,x,g,b){for(var w=65535&v|0,y=v>>>16&65535|0,T=0;g!==0;){for(g-=T=2e3<g?2e3:g;y=y+(w=w+x[b++]|0)|0,--T;);w%=65521,y%=65521}return w|y<<16|0}},{}],44:[function(p,m,d){m.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}},{}],45:[function(p,m,d){var v=function(){for(var x,g=[],b=0;b<256;b++){x=b;for(var w=0;w<8;w++)x=1&x?3988292384^x>>>1:x>>>1;g[b]=x}return g}();m.exports=function(x,g,b,w){var y=v,T=w+b;x^=-1;for(var C=w;C<T;C++)x=x>>>8^y[255&(x^g[C])];return-1^x}},{}],46:[function(p,m,d){var v,x=p("../utils/common"),g=p("./trees"),b=p("./adler32"),w=p("./crc32"),y=p("./messages"),T=0,C=4,M=0,I=-2,B=-1,U=4,j=2,H=8,G=9,L=286,R=30,F=19,_=2*L+1,k=15,N=3,P=258,D=P+N+1,A=42,S=113,E=1,O=2,z=3,J=4;function re(X,ve){return X.msg=y[ve],ve}function se(X){return(X<<1)-(4<X?9:0)}function Ce(X){for(var ve=X.length;0<=--ve;)X[ve]=0}function Y(X){var ve=X.state,ke=ve.pending;ke>X.avail_out&&(ke=X.avail_out),ke!==0&&(x.arraySet(X.output,ve.pending_buf,ve.pending_out,ke,X.next_out),X.next_out+=ke,ve.pending_out+=ke,X.total_out+=ke,X.avail_out-=ke,ve.pending-=ke,ve.pending===0&&(ve.pending_out=0))}function q(X,ve){g._tr_flush_block(X,0<=X.block_start?X.block_start:-1,X.strstart-X.block_start,ve),X.block_start=X.strstart,Y(X.strm)}function K(X,ve){X.pending_buf[X.pending++]=ve}function Q(X,ve){X.pending_buf[X.pending++]=ve>>>8&255,X.pending_buf[X.pending++]=255&ve}function he(X,ve){var ke,ee,ne=X.max_chain_length,de=X.strstart,_e=X.prev_length,Re=X.nice_match,Ae=X.strstart>X.w_size-D?X.strstart-(X.w_size-D):0,Ne=X.window,Xe=X.w_mask,Le=X.prev,xe=X.strstart+P,Me=Ne[de+_e-1],Be=Ne[de+_e];X.prev_length>=X.good_match&&(ne>>=2),Re>X.lookahead&&(Re=X.lookahead);do if(Ne[(ke=ve)+_e]===Be&&Ne[ke+_e-1]===Me&&Ne[ke]===Ne[de]&&Ne[++ke]===Ne[de+1]){de+=2,ke++;do;while(Ne[++de]===Ne[++ke]&&Ne[++de]===Ne[++ke]&&Ne[++de]===Ne[++ke]&&Ne[++de]===Ne[++ke]&&Ne[++de]===Ne[++ke]&&Ne[++de]===Ne[++ke]&&Ne[++de]===Ne[++ke]&&Ne[++de]===Ne[++ke]&&de<xe);if(ee=P-(xe-de),de=xe-P,_e<ee){if(X.match_start=ve,Re<=(_e=ee))break;Me=Ne[de+_e-1],Be=Ne[de+_e]}}while((ve=Le[ve&Xe])>Ae&&--ne!=0);return _e<=X.lookahead?_e:X.lookahead}function we(X){var ve,ke,ee,ne,de,_e,Re,Ae,Ne,Xe,Le=X.w_size;do{if(ne=X.window_size-X.lookahead-X.strstart,X.strstart>=Le+(Le-D)){for(x.arraySet(X.window,X.window,Le,Le,0),X.match_start-=Le,X.strstart-=Le,X.block_start-=Le,ve=ke=X.hash_size;ee=X.head[--ve],X.head[ve]=Le<=ee?ee-Le:0,--ke;);for(ve=ke=Le;ee=X.prev[--ve],X.prev[ve]=Le<=ee?ee-Le:0,--ke;);ne+=Le}if(X.strm.avail_in===0)break;if(_e=X.strm,Re=X.window,Ae=X.strstart+X.lookahead,Ne=ne,Xe=void 0,Xe=_e.avail_in,Ne<Xe&&(Xe=Ne),ke=Xe===0?0:(_e.avail_in-=Xe,x.arraySet(Re,_e.input,_e.next_in,Xe,Ae),_e.state.wrap===1?_e.adler=b(_e.adler,Re,Xe,Ae):_e.state.wrap===2&&(_e.adler=w(_e.adler,Re,Xe,Ae)),_e.next_in+=Xe,_e.total_in+=Xe,Xe),X.lookahead+=ke,X.lookahead+X.insert>=N)for(de=X.strstart-X.insert,X.ins_h=X.window[de],X.ins_h=(X.ins_h<<X.hash_shift^X.window[de+1])&X.hash_mask;X.insert&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[de+N-1])&X.hash_mask,X.prev[de&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=de,de++,X.insert--,!(X.lookahead+X.insert<N)););}while(X.lookahead<D&&X.strm.avail_in!==0)}function ae(X,ve){for(var ke,ee;;){if(X.lookahead<D){if(we(X),X.lookahead<D&&ve===T)return E;if(X.lookahead===0)break}if(ke=0,X.lookahead>=N&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+N-1])&X.hash_mask,ke=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),ke!==0&&X.strstart-ke<=X.w_size-D&&(X.match_length=he(X,ke)),X.match_length>=N)if(ee=g._tr_tally(X,X.strstart-X.match_start,X.match_length-N),X.lookahead-=X.match_length,X.match_length<=X.max_lazy_match&&X.lookahead>=N){for(X.match_length--;X.strstart++,X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+N-1])&X.hash_mask,ke=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart,--X.match_length!=0;);X.strstart++}else X.strstart+=X.match_length,X.match_length=0,X.ins_h=X.window[X.strstart],X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+1])&X.hash_mask;else ee=g._tr_tally(X,0,X.window[X.strstart]),X.lookahead--,X.strstart++;if(ee&&(q(X,!1),X.strm.avail_out===0))return E}return X.insert=X.strstart<N-1?X.strstart:N-1,ve===C?(q(X,!0),X.strm.avail_out===0?z:J):X.last_lit&&(q(X,!1),X.strm.avail_out===0)?E:O}function te(X,ve){for(var ke,ee,ne;;){if(X.lookahead<D){if(we(X),X.lookahead<D&&ve===T)return E;if(X.lookahead===0)break}if(ke=0,X.lookahead>=N&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+N-1])&X.hash_mask,ke=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),X.prev_length=X.match_length,X.prev_match=X.match_start,X.match_length=N-1,ke!==0&&X.prev_length<X.max_lazy_match&&X.strstart-ke<=X.w_size-D&&(X.match_length=he(X,ke),X.match_length<=5&&(X.strategy===1||X.match_length===N&&4096<X.strstart-X.match_start)&&(X.match_length=N-1)),X.prev_length>=N&&X.match_length<=X.prev_length){for(ne=X.strstart+X.lookahead-N,ee=g._tr_tally(X,X.strstart-1-X.prev_match,X.prev_length-N),X.lookahead-=X.prev_length-1,X.prev_length-=2;++X.strstart<=ne&&(X.ins_h=(X.ins_h<<X.hash_shift^X.window[X.strstart+N-1])&X.hash_mask,ke=X.prev[X.strstart&X.w_mask]=X.head[X.ins_h],X.head[X.ins_h]=X.strstart),--X.prev_length!=0;);if(X.match_available=0,X.match_length=N-1,X.strstart++,ee&&(q(X,!1),X.strm.avail_out===0))return E}else if(X.match_available){if((ee=g._tr_tally(X,0,X.window[X.strstart-1]))&&q(X,!1),X.strstart++,X.lookahead--,X.strm.avail_out===0)return E}else X.match_available=1,X.strstart++,X.lookahead--}return X.match_available&&(ee=g._tr_tally(X,0,X.window[X.strstart-1]),X.match_available=0),X.insert=X.strstart<N-1?X.strstart:N-1,ve===C?(q(X,!0),X.strm.avail_out===0?z:J):X.last_lit&&(q(X,!1),X.strm.avail_out===0)?E:O}function Z(X,ve,ke,ee,ne){this.good_length=X,this.max_lazy=ve,this.nice_length=ke,this.max_chain=ee,this.func=ne}function W(){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=H,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 x.Buf16(2*_),this.dyn_dtree=new x.Buf16(2*(2*R+1)),this.bl_tree=new x.Buf16(2*(2*F+1)),Ce(this.dyn_ltree),Ce(this.dyn_dtree),Ce(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new x.Buf16(k+1),this.heap=new x.Buf16(2*L+1),Ce(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new x.Buf16(2*L+1),Ce(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 V(X){var ve;return X&&X.state?(X.total_in=X.total_out=0,X.data_type=j,(ve=X.state).pending=0,ve.pending_out=0,ve.wrap<0&&(ve.wrap=-ve.wrap),ve.status=ve.wrap?A:S,X.adler=ve.wrap===2?0:1,ve.last_flush=T,g._tr_init(ve),M):re(X,I)}function fe(X){var ve=V(X);return ve===M&&function(ke){ke.window_size=2*ke.w_size,Ce(ke.head),ke.max_lazy_match=v[ke.level].max_lazy,ke.good_match=v[ke.level].good_length,ke.nice_match=v[ke.level].nice_length,ke.max_chain_length=v[ke.level].max_chain,ke.strstart=0,ke.block_start=0,ke.lookahead=0,ke.insert=0,ke.match_length=ke.prev_length=N-1,ke.match_available=0,ke.ins_h=0}(X.state),ve}function ye(X,ve,ke,ee,ne,de){if(!X)return I;var _e=1;if(ve===B&&(ve=6),ee<0?(_e=0,ee=-ee):15<ee&&(_e=2,ee-=16),ne<1||G<ne||ke!==H||ee<8||15<ee||ve<0||9<ve||de<0||U<de)return re(X,I);ee===8&&(ee=9);var Re=new W;return(X.state=Re).strm=X,Re.wrap=_e,Re.gzhead=null,Re.w_bits=ee,Re.w_size=1<<Re.w_bits,Re.w_mask=Re.w_size-1,Re.hash_bits=ne+7,Re.hash_size=1<<Re.hash_bits,Re.hash_mask=Re.hash_size-1,Re.hash_shift=~~((Re.hash_bits+N-1)/N),Re.window=new x.Buf8(2*Re.w_size),Re.head=new x.Buf16(Re.hash_size),Re.prev=new x.Buf16(Re.w_size),Re.lit_bufsize=1<<ne+6,Re.pending_buf_size=4*Re.lit_bufsize,Re.pending_buf=new x.Buf8(Re.pending_buf_size),Re.d_buf=1*Re.lit_bufsize,Re.l_buf=3*Re.lit_bufsize,Re.level=ve,Re.strategy=de,Re.method=ke,fe(X)}v=[new Z(0,0,0,0,function(X,ve){var ke=65535;for(ke>X.pending_buf_size-5&&(ke=X.pending_buf_size-5);;){if(X.lookahead<=1){if(we(X),X.lookahead===0&&ve===T)return E;if(X.lookahead===0)break}X.strstart+=X.lookahead,X.lookahead=0;var ee=X.block_start+ke;if((X.strstart===0||X.strstart>=ee)&&(X.lookahead=X.strstart-ee,X.strstart=ee,q(X,!1),X.strm.avail_out===0)||X.strstart-X.block_start>=X.w_size-D&&(q(X,!1),X.strm.avail_out===0))return E}return X.insert=0,ve===C?(q(X,!0),X.strm.avail_out===0?z:J):(X.strstart>X.block_start&&(q(X,!1),X.strm.avail_out),E)}),new Z(4,4,8,4,ae),new Z(4,5,16,8,ae),new Z(4,6,32,32,ae),new Z(4,4,16,16,te),new Z(8,16,32,32,te),new Z(8,16,128,128,te),new Z(8,32,128,256,te),new Z(32,128,258,1024,te),new Z(32,258,258,4096,te)],d.deflateInit=function(X,ve){return ye(X,ve,H,15,8,0)},d.deflateInit2=ye,d.deflateReset=fe,d.deflateResetKeep=V,d.deflateSetHeader=function(X,ve){return X&&X.state?X.state.wrap!==2?I:(X.state.gzhead=ve,M):I},d.deflate=function(X,ve){var ke,ee,ne,de;if(!X||!X.state||5<ve||ve<0)return X?re(X,I):I;if(ee=X.state,!X.output||!X.input&&X.avail_in!==0||ee.status===666&&ve!==C)return re(X,X.avail_out===0?-5:I);if(ee.strm=X,ke=ee.last_flush,ee.last_flush=ve,ee.status===A)if(ee.wrap===2)X.adler=0,K(ee,31),K(ee,139),K(ee,8),ee.gzhead?(K(ee,(ee.gzhead.text?1:0)+(ee.gzhead.hcrc?2:0)+(ee.gzhead.extra?4:0)+(ee.gzhead.name?8:0)+(ee.gzhead.comment?16:0)),K(ee,255&ee.gzhead.time),K(ee,ee.gzhead.time>>8&255),K(ee,ee.gzhead.time>>16&255),K(ee,ee.gzhead.time>>24&255),K(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),K(ee,255&ee.gzhead.os),ee.gzhead.extra&&ee.gzhead.extra.length&&(K(ee,255&ee.gzhead.extra.length),K(ee,ee.gzhead.extra.length>>8&255)),ee.gzhead.hcrc&&(X.adler=w(X.adler,ee.pending_buf,ee.pending,0)),ee.gzindex=0,ee.status=69):(K(ee,0),K(ee,0),K(ee,0),K(ee,0),K(ee,0),K(ee,ee.level===9?2:2<=ee.strategy||ee.level<2?4:0),K(ee,3),ee.status=S);else{var _e=H+(ee.w_bits-8<<4)<<8;_e|=(2<=ee.strategy||ee.level<2?0:ee.level<6?1:ee.level===6?2:3)<<6,ee.strstart!==0&&(_e|=32),_e+=31-_e%31,ee.status=S,Q(ee,_e),ee.strstart!==0&&(Q(ee,X.adler>>>16),Q(ee,65535&X.adler)),X.adler=1}if(ee.status===69)if(ee.gzhead.extra){for(ne=ee.pending;ee.gzindex<(65535&ee.gzhead.extra.length)&&(ee.pending!==ee.pending_buf_size||(ee.gzhead.hcrc&&ee.pending>ne&&(X.adler=w(X.adler,ee.pending_buf,ee.pending-ne,ne)),Y(X),ne=ee.pending,ee.pending!==ee.pending_buf_size));)K(ee,255&ee.gzhead.extra[ee.gzindex]),ee.gzindex++;ee.gzhead.hcrc&&ee.pending>ne&&(X.adler=w(X.adler,ee.pending_buf,ee.pending-ne,ne)),ee.gzindex===ee.gzhead.extra.length&&(ee.gzindex=0,ee.status=73)}else ee.status=73;if(ee.status===73)if(ee.gzhead.name){ne=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>ne&&(X.adler=w(X.adler,ee.pending_buf,ee.pending-ne,ne)),Y(X),ne=ee.pending,ee.pending===ee.pending_buf_size)){de=1;break}de=ee.gzindex<ee.gzhead.name.length?255&ee.gzhead.name.charCodeAt(ee.gzindex++):0,K(ee,de)}while(de!==0);ee.gzhead.hcrc&&ee.pending>ne&&(X.adler=w(X.adler,ee.pending_buf,ee.pending-ne,ne)),de===0&&(ee.gzindex=0,ee.status=91)}else ee.status=91;if(ee.status===91)if(ee.gzhead.comment){ne=ee.pending;do{if(ee.pending===ee.pending_buf_size&&(ee.gzhead.hcrc&&ee.pending>ne&&(X.adler=w(X.adler,ee.pending_buf,ee.pending-ne,ne)),Y(X),ne=ee.pending,ee.pending===ee.pending_buf_size)){de=1;break}de=ee.gzindex<ee.gzhead.comment.length?255&ee.gzhead.comment.charCodeAt(ee.gzindex++):0,K(ee,de)}while(de!==0);ee.gzhead.hcrc&&ee.pending>ne&&(X.adler=w(X.adler,ee.pending_buf,ee.pending-ne,ne)),de===0&&(ee.status=103)}else ee.status=103;if(ee.status===103&&(ee.gzhead.hcrc?(ee.pending+2>ee.pending_buf_size&&Y(X),ee.pending+2<=ee.pending_buf_size&&(K(ee,255&X.adler),K(ee,X.adler>>8&255),X.adler=0,ee.status=S)):ee.status=S),ee.pending!==0){if(Y(X),X.avail_out===0)return ee.last_flush=-1,M}else if(X.avail_in===0&&se(ve)<=se(ke)&&ve!==C)return re(X,-5);if(ee.status===666&&X.avail_in!==0)return re(X,-5);if(X.avail_in!==0||ee.lookahead!==0||ve!==T&&ee.status!==666){var Re=ee.strategy===2?function(Ae,Ne){for(var Xe;;){if(Ae.lookahead===0&&(we(Ae),Ae.lookahead===0)){if(Ne===T)return E;break}if(Ae.match_length=0,Xe=g._tr_tally(Ae,0,Ae.window[Ae.strstart]),Ae.lookahead--,Ae.strstart++,Xe&&(q(Ae,!1),Ae.strm.avail_out===0))return E}return Ae.insert=0,Ne===C?(q(Ae,!0),Ae.strm.avail_out===0?z:J):Ae.last_lit&&(q(Ae,!1),Ae.strm.avail_out===0)?E:O}(ee,ve):ee.strategy===3?function(Ae,Ne){for(var Xe,Le,xe,Me,Be=Ae.window;;){if(Ae.lookahead<=P){if(we(Ae),Ae.lookahead<=P&&Ne===T)return E;if(Ae.lookahead===0)break}if(Ae.match_length=0,Ae.lookahead>=N&&0<Ae.strstart&&(Le=Be[xe=Ae.strstart-1])===Be[++xe]&&Le===Be[++xe]&&Le===Be[++xe]){Me=Ae.strstart+P;do;while(Le===Be[++xe]&&Le===Be[++xe]&&Le===Be[++xe]&&Le===Be[++xe]&&Le===Be[++xe]&&Le===Be[++xe]&&Le===Be[++xe]&&Le===Be[++xe]&&xe<Me);Ae.match_length=P-(Me-xe),Ae.match_length>Ae.lookahead&&(Ae.match_length=Ae.lookahead)}if(Ae.match_length>=N?(Xe=g._tr_tally(Ae,1,Ae.match_length-N),Ae.lookahead-=Ae.match_length,Ae.strstart+=Ae.match_length,Ae.match_length=0):(Xe=g._tr_tally(Ae,0,Ae.window[Ae.strstart]),Ae.lookahead--,Ae.strstart++),Xe&&(q(Ae,!1),Ae.strm.avail_out===0))return E}return Ae.insert=0,Ne===C?(q(Ae,!0),Ae.strm.avail_out===0?z:J):Ae.last_lit&&(q(Ae,!1),Ae.strm.avail_out===0)?E:O}(ee,ve):v[ee.level].func(ee,ve);if(Re!==z&&Re!==J||(ee.status=666),Re===E||Re===z)return X.avail_out===0&&(ee.last_flush=-1),M;if(Re===O&&(ve===1?g._tr_align(ee):ve!==5&&(g._tr_stored_block(ee,0,0,!1),ve===3&&(Ce(ee.head),ee.lookahead===0&&(ee.strstart=0,ee.block_start=0,ee.insert=0))),Y(X),X.avail_out===0))return ee.last_flush=-1,M}return ve!==C?M:ee.wrap<=0?1:(ee.wrap===2?(K(ee,255&X.adler),K(ee,X.adler>>8&255),K(ee,X.adler>>16&255),K(ee,X.adler>>24&255),K(ee,255&X.total_in),K(ee,X.total_in>>8&255),K(ee,X.total_in>>16&255),K(ee,X.total_in>>24&255)):(Q(ee,X.adler>>>16),Q(ee,65535&X.adler)),Y(X),0<ee.wrap&&(ee.wrap=-ee.wrap),ee.pending!==0?M:1)},d.deflateEnd=function(X){var ve;return X&&X.state?(ve=X.state.status)!==A&&ve!==69&&ve!==73&&ve!==91&&ve!==103&&ve!==S&&ve!==666?re(X,I):(X.state=null,ve===S?re(X,-3):M):I},d.deflateSetDictionary=function(X,ve){var ke,ee,ne,de,_e,Re,Ae,Ne,Xe=ve.length;if(!X||!X.state||(de=(ke=X.state).wrap)===2||de===1&&ke.status!==A||ke.lookahead)return I;for(de===1&&(X.adler=b(X.adler,ve,Xe,0)),ke.wrap=0,Xe>=ke.w_size&&(de===0&&(Ce(ke.head),ke.strstart=0,ke.block_start=0,ke.insert=0),Ne=new x.Buf8(ke.w_size),x.arraySet(Ne,ve,Xe-ke.w_size,ke.w_size,0),ve=Ne,Xe=ke.w_size),_e=X.avail_in,Re=X.next_in,Ae=X.input,X.avail_in=Xe,X.next_in=0,X.input=ve,we(ke);ke.lookahead>=N;){for(ee=ke.strstart,ne=ke.lookahead-(N-1);ke.ins_h=(ke.ins_h<<ke.hash_shift^ke.window[ee+N-1])&ke.hash_mask,ke.prev[ee&ke.w_mask]=ke.head[ke.ins_h],ke.head[ke.ins_h]=ee,ee++,--ne;);ke.strstart=ee,ke.lookahead=N-1,we(ke)}return ke.strstart+=ke.lookahead,ke.block_start=ke.strstart,ke.insert=ke.lookahead,ke.lookahead=0,ke.match_length=ke.prev_length=N-1,ke.match_available=0,X.next_in=Re,X.input=Ae,X.avail_in=_e,ke.wrap=de,M},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(p,m,d){m.exports=function(){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}},{}],48:[function(p,m,d){m.exports=function(v,x){var g,b,w,y,T,C,M,I,B,U,j,H,G,L,R,F,_,k,N,P,D,A,S,E,O;g=v.state,b=v.next_in,E=v.input,w=b+(v.avail_in-5),y=v.next_out,O=v.output,T=y-(x-v.avail_out),C=y+(v.avail_out-257),M=g.dmax,I=g.wsize,B=g.whave,U=g.wnext,j=g.window,H=g.hold,G=g.bits,L=g.lencode,R=g.distcode,F=(1<<g.lenbits)-1,_=(1<<g.distbits)-1;e:do{G<15&&(H+=E[b++]<<G,G+=8,H+=E[b++]<<G,G+=8),k=L[H&F];t:for(;;){if(H>>>=N=k>>>24,G-=N,(N=k>>>16&255)===0)O[y++]=65535&k;else{if(!(16&N)){if(!(64&N)){k=L[(65535&k)+(H&(1<<N)-1)];continue t}if(32&N){g.mode=12;break e}v.msg="invalid literal/length code",g.mode=30;break e}P=65535&k,(N&=15)&&(G<N&&(H+=E[b++]<<G,G+=8),P+=H&(1<<N)-1,H>>>=N,G-=N),G<15&&(H+=E[b++]<<G,G+=8,H+=E[b++]<<G,G+=8),k=R[H&_];r:for(;;){if(H>>>=N=k>>>24,G-=N,!(16&(N=k>>>16&255))){if(!(64&N)){k=R[(65535&k)+(H&(1<<N)-1)];continue r}v.msg="invalid distance code",g.mode=30;break e}if(D=65535&k,G<(N&=15)&&(H+=E[b++]<<G,(G+=8)<N&&(H+=E[b++]<<G,G+=8)),M<(D+=H&(1<<N)-1)){v.msg="invalid distance too far back",g.mode=30;break e}if(H>>>=N,G-=N,(N=y-T)<D){if(B<(N=D-N)&&g.sane){v.msg="invalid distance too far back",g.mode=30;break e}if(S=j,(A=0)===U){if(A+=I-N,N<P){for(P-=N;O[y++]=j[A++],--N;);A=y-D,S=O}}else if(U<N){if(A+=I+U-N,(N-=U)<P){for(P-=N;O[y++]=j[A++],--N;);if(A=0,U<P){for(P-=N=U;O[y++]=j[A++],--N;);A=y-D,S=O}}}else if(A+=U-N,N<P){for(P-=N;O[y++]=j[A++],--N;);A=y-D,S=O}for(;2<P;)O[y++]=S[A++],O[y++]=S[A++],O[y++]=S[A++],P-=3;P&&(O[y++]=S[A++],1<P&&(O[y++]=S[A++]))}else{for(A=y-D;O[y++]=O[A++],O[y++]=O[A++],O[y++]=O[A++],2<(P-=3););P&&(O[y++]=O[A++],1<P&&(O[y++]=O[A++]))}break}}break}}while(b<w&&y<C);b-=P=G>>3,H&=(1<<(G-=P<<3))-1,v.next_in=b,v.next_out=y,v.avail_in=b<w?w-b+5:5-(b-w),v.avail_out=y<C?C-y+257:257-(y-C),g.hold=H,g.bits=G}},{}],49:[function(p,m,d){var v=p("../utils/common"),x=p("./adler32"),g=p("./crc32"),b=p("./inffast"),w=p("./inftrees"),y=1,T=2,C=0,M=-2,I=1,B=852,U=592;function j(A){return(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)}function H(){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 v.Buf16(320),this.work=new v.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function G(A){var S;return A&&A.state?(S=A.state,A.total_in=A.total_out=S.total=0,A.msg="",S.wrap&&(A.adler=1&S.wrap),S.mode=I,S.last=0,S.havedict=0,S.dmax=32768,S.head=null,S.hold=0,S.bits=0,S.lencode=S.lendyn=new v.Buf32(B),S.distcode=S.distdyn=new v.Buf32(U),S.sane=1,S.back=-1,C):M}function L(A){var S;return A&&A.state?((S=A.state).wsize=0,S.whave=0,S.wnext=0,G(A)):M}function R(A,S){var E,O;return A&&A.state?(O=A.state,S<0?(E=0,S=-S):(E=1+(S>>4),S<48&&(S&=15)),S&&(S<8||15<S)?M:(O.window!==null&&O.wbits!==S&&(O.window=null),O.wrap=E,O.wbits=S,L(A))):M}function F(A,S){var E,O;return A?(O=new H,(A.state=O).window=null,(E=R(A,S))!==C&&(A.state=null),E):M}var _,k,N=!0;function P(A){if(N){var S;for(_=new v.Buf32(512),k=new v.Buf32(32),S=0;S<144;)A.lens[S++]=8;for(;S<256;)A.lens[S++]=9;for(;S<280;)A.lens[S++]=7;for(;S<288;)A.lens[S++]=8;for(w(y,A.lens,0,288,_,0,A.work,{bits:9}),S=0;S<32;)A.lens[S++]=5;w(T,A.lens,0,32,k,0,A.work,{bits:5}),N=!1}A.lencode=_,A.lenbits=9,A.distcode=k,A.distbits=5}function D(A,S,E,O){var z,J=A.state;return J.window===null&&(J.wsize=1<<J.wbits,J.wnext=0,J.whave=0,J.window=new v.Buf8(J.wsize)),O>=J.wsize?(v.arraySet(J.window,S,E-J.wsize,J.wsize,0),J.wnext=0,J.whave=J.wsize):(O<(z=J.wsize-J.wnext)&&(z=O),v.arraySet(J.window,S,E-O,z,J.wnext),(O-=z)?(v.arraySet(J.window,S,E-O,O,0),J.wnext=O,J.whave=J.wsize):(J.wnext+=z,J.wnext===J.wsize&&(J.wnext=0),J.whave<J.wsize&&(J.whave+=z))),0}d.inflateReset=L,d.inflateReset2=R,d.inflateResetKeep=G,d.inflateInit=function(A){return F(A,15)},d.inflateInit2=F,d.inflate=function(A,S){var E,O,z,J,re,se,Ce,Y,q,K,Q,he,we,ae,te,Z,W,V,fe,ye,X,ve,ke,ee,ne=0,de=new v.Buf8(4),_e=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!A||!A.state||!A.output||!A.input&&A.avail_in!==0)return M;(E=A.state).mode===12&&(E.mode=13),re=A.next_out,z=A.output,Ce=A.avail_out,J=A.next_in,O=A.input,se=A.avail_in,Y=E.hold,q=E.bits,K=se,Q=Ce,ve=C;e:for(;;)switch(E.mode){case I:if(E.wrap===0){E.mode=13;break}for(;q<16;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}if(2&E.wrap&&Y===35615){de[E.check=0]=255&Y,de[1]=Y>>>8&255,E.check=g(E.check,de,2,0),q=Y=0,E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&Y)<<8)+(Y>>8))%31){A.msg="incorrect header check",E.mode=30;break}if((15&Y)!=8){A.msg="unknown compression method",E.mode=30;break}if(q-=4,X=8+(15&(Y>>>=4)),E.wbits===0)E.wbits=X;else if(X>E.wbits){A.msg="invalid window size",E.mode=30;break}E.dmax=1<<X,A.adler=E.check=1,E.mode=512&Y?10:12,q=Y=0;break;case 2:for(;q<16;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}if(E.flags=Y,(255&E.flags)!=8){A.msg="unknown compression method",E.mode=30;break}if(57344&E.flags){A.msg="unknown header flags set",E.mode=30;break}E.head&&(E.head.text=Y>>8&1),512&E.flags&&(de[0]=255&Y,de[1]=Y>>>8&255,E.check=g(E.check,de,2,0)),q=Y=0,E.mode=3;case 3:for(;q<32;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}E.head&&(E.head.time=Y),512&E.flags&&(de[0]=255&Y,de[1]=Y>>>8&255,de[2]=Y>>>16&255,de[3]=Y>>>24&255,E.check=g(E.check,de,4,0)),q=Y=0,E.mode=4;case 4:for(;q<16;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}E.head&&(E.head.xflags=255&Y,E.head.os=Y>>8),512&E.flags&&(de[0]=255&Y,de[1]=Y>>>8&255,E.check=g(E.check,de,2,0)),q=Y=0,E.mode=5;case 5:if(1024&E.flags){for(;q<16;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}E.length=Y,E.head&&(E.head.extra_len=Y),512&E.flags&&(de[0]=255&Y,de[1]=Y>>>8&255,E.check=g(E.check,de,2,0)),q=Y=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(se<(he=E.length)&&(he=se),he&&(E.head&&(X=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Array(E.head.extra_len)),v.arraySet(E.head.extra,O,J,he,X)),512&E.flags&&(E.check=g(E.check,O,he,J)),se-=he,J+=he,E.length-=he),E.length))break e;E.length=0,E.mode=7;case 7:if(2048&E.flags){if(se===0)break e;for(he=0;X=O[J+he++],E.head&&X&&E.length<65536&&(E.head.name+=String.fromCharCode(X)),X&&he<se;);if(512&E.flags&&(E.check=g(E.check,O,he,J)),se-=he,J+=he,X)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=8;case 8:if(4096&E.flags){if(se===0)break e;for(he=0;X=O[J+he++],E.head&&X&&E.length<65536&&(E.head.comment+=String.fromCharCode(X)),X&&he<se;);if(512&E.flags&&(E.check=g(E.check,O,he,J)),se-=he,J+=he,X)break e}else E.head&&(E.head.comment=null);E.mode=9;case 9:if(512&E.flags){for(;q<16;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}if(Y!==(65535&E.check)){A.msg="header crc mismatch",E.mode=30;break}q=Y=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),A.adler=E.check=0,E.mode=12;break;case 10:for(;q<32;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}A.adler=E.check=j(Y),q=Y=0,E.mode=11;case 11:if(E.havedict===0)return A.next_out=re,A.avail_out=Ce,A.next_in=J,A.avail_in=se,E.hold=Y,E.bits=q,2;A.adler=E.check=1,E.mode=12;case 12:if(S===5||S===6)break e;case 13:if(E.last){Y>>>=7&q,q-=7&q,E.mode=27;break}for(;q<3;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}switch(E.last=1&Y,q-=1,3&(Y>>>=1)){case 0:E.mode=14;break;case 1:if(P(E),E.mode=20,S!==6)break;Y>>>=2,q-=2;break e;case 2:E.mode=17;break;case 3:A.msg="invalid block type",E.mode=30}Y>>>=2,q-=2;break;case 14:for(Y>>>=7&q,q-=7&q;q<32;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}if((65535&Y)!=(Y>>>16^65535)){A.msg="invalid stored block lengths",E.mode=30;break}if(E.length=65535&Y,q=Y=0,E.mode=15,S===6)break e;case 15:E.mode=16;case 16:if(he=E.length){if(se<he&&(he=se),Ce<he&&(he=Ce),he===0)break e;v.arraySet(z,O,J,he,re),se-=he,J+=he,Ce-=he,re+=he,E.length-=he;break}E.mode=12;break;case 17:for(;q<14;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}if(E.nlen=257+(31&Y),Y>>>=5,q-=5,E.ndist=1+(31&Y),Y>>>=5,q-=5,E.ncode=4+(15&Y),Y>>>=4,q-=4,286<E.nlen||30<E.ndist){A.msg="too many length or distance symbols",E.mode=30;break}E.have=0,E.mode=18;case 18:for(;E.have<E.ncode;){for(;q<3;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}E.lens[_e[E.have++]]=7&Y,Y>>>=3,q-=3}for(;E.have<19;)E.lens[_e[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,ke={bits:E.lenbits},ve=w(0,E.lens,0,19,E.lencode,0,E.work,ke),E.lenbits=ke.bits,ve){A.msg="invalid code lengths set",E.mode=30;break}E.have=0,E.mode=19;case 19:for(;E.have<E.nlen+E.ndist;){for(;Z=(ne=E.lencode[Y&(1<<E.lenbits)-1])>>>16&255,W=65535&ne,!((te=ne>>>24)<=q);){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}if(W<16)Y>>>=te,q-=te,E.lens[E.have++]=W;else{if(W===16){for(ee=te+2;q<ee;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}if(Y>>>=te,q-=te,E.have===0){A.msg="invalid bit length repeat",E.mode=30;break}X=E.lens[E.have-1],he=3+(3&Y),Y>>>=2,q-=2}else if(W===17){for(ee=te+3;q<ee;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}q-=te,X=0,he=3+(7&(Y>>>=te)),Y>>>=3,q-=3}else{for(ee=te+7;q<ee;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}q-=te,X=0,he=11+(127&(Y>>>=te)),Y>>>=7,q-=7}if(E.have+he>E.nlen+E.ndist){A.msg="invalid bit length repeat",E.mode=30;break}for(;he--;)E.lens[E.have++]=X}}if(E.mode===30)break;if(E.lens[256]===0){A.msg="invalid code -- missing end-of-block",E.mode=30;break}if(E.lenbits=9,ke={bits:E.lenbits},ve=w(y,E.lens,0,E.nlen,E.lencode,0,E.work,ke),E.lenbits=ke.bits,ve){A.msg="invalid literal/lengths set",E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,ke={bits:E.distbits},ve=w(T,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,ke),E.distbits=ke.bits,ve){A.msg="invalid distances set",E.mode=30;break}if(E.mode=20,S===6)break e;case 20:E.mode=21;case 21:if(6<=se&&258<=Ce){A.next_out=re,A.avail_out=Ce,A.next_in=J,A.avail_in=se,E.hold=Y,E.bits=q,b(A,Q),re=A.next_out,z=A.output,Ce=A.avail_out,J=A.next_in,O=A.input,se=A.avail_in,Y=E.hold,q=E.bits,E.mode===12&&(E.back=-1);break}for(E.back=0;Z=(ne=E.lencode[Y&(1<<E.lenbits)-1])>>>16&255,W=65535&ne,!((te=ne>>>24)<=q);){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}if(Z&&!(240&Z)){for(V=te,fe=Z,ye=W;Z=(ne=E.lencode[ye+((Y&(1<<V+fe)-1)>>V)])>>>16&255,W=65535&ne,!(V+(te=ne>>>24)<=q);){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}Y>>>=V,q-=V,E.back+=V}if(Y>>>=te,q-=te,E.back+=te,E.length=W,Z===0){E.mode=26;break}if(32&Z){E.back=-1,E.mode=12;break}if(64&Z){A.msg="invalid literal/length code",E.mode=30;break}E.extra=15&Z,E.mode=22;case 22:if(E.extra){for(ee=E.extra;q<ee;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}E.length+=Y&(1<<E.extra)-1,Y>>>=E.extra,q-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=23;case 23:for(;Z=(ne=E.distcode[Y&(1<<E.distbits)-1])>>>16&255,W=65535&ne,!((te=ne>>>24)<=q);){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}if(!(240&Z)){for(V=te,fe=Z,ye=W;Z=(ne=E.distcode[ye+((Y&(1<<V+fe)-1)>>V)])>>>16&255,W=65535&ne,!(V+(te=ne>>>24)<=q);){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}Y>>>=V,q-=V,E.back+=V}if(Y>>>=te,q-=te,E.back+=te,64&Z){A.msg="invalid distance code",E.mode=30;break}E.offset=W,E.extra=15&Z,E.mode=24;case 24:if(E.extra){for(ee=E.extra;q<ee;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}E.offset+=Y&(1<<E.extra)-1,Y>>>=E.extra,q-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){A.msg="invalid distance too far back",E.mode=30;break}E.mode=25;case 25:if(Ce===0)break e;if(he=Q-Ce,E.offset>he){if((he=E.offset-he)>E.whave&&E.sane){A.msg="invalid distance too far back",E.mode=30;break}we=he>E.wnext?(he-=E.wnext,E.wsize-he):E.wnext-he,he>E.length&&(he=E.length),ae=E.window}else ae=z,we=re-E.offset,he=E.length;for(Ce<he&&(he=Ce),Ce-=he,E.length-=he;z[re++]=ae[we++],--he;);E.length===0&&(E.mode=21);break;case 26:if(Ce===0)break e;z[re++]=E.length,Ce--,E.mode=21;break;case 27:if(E.wrap){for(;q<32;){if(se===0)break e;se--,Y|=O[J++]<<q,q+=8}if(Q-=Ce,A.total_out+=Q,E.total+=Q,Q&&(A.adler=E.check=E.flags?g(E.check,z,Q,re-Q):x(E.check,z,Q,re-Q)),Q=Ce,(E.flags?Y:j(Y))!==E.check){A.msg="incorrect data check",E.mode=30;break}q=Y=0}E.mode=28;case 28:if(E.wrap&&E.flags){for(;q<32;){if(se===0)break e;se--,Y+=O[J++]<<q,q+=8}if(Y!==(4294967295&E.total)){A.msg="incorrect length check",E.mode=30;break}q=Y=0}E.mode=29;case 29:ve=1;break e;case 30:ve=-3;break e;case 31:return-4;case 32:default:return M}return A.next_out=re,A.avail_out=Ce,A.next_in=J,A.avail_in=se,E.hold=Y,E.bits=q,(E.wsize||Q!==A.avail_out&&E.mode<30&&(E.mode<27||S!==4))&&D(A,A.output,A.next_out,Q-A.avail_out)?(E.mode=31,-4):(K-=A.avail_in,Q-=A.avail_out,A.total_in+=K,A.total_out+=Q,E.total+=Q,E.wrap&&Q&&(A.adler=E.check=E.flags?g(E.check,z,Q,A.next_out-Q):x(E.check,z,Q,A.next_out-Q)),A.data_type=E.bits+(E.last?64:0)+(E.mode===12?128:0)+(E.mode===20||E.mode===15?256:0),(K==0&&Q===0||S===4)&&ve===C&&(ve=-5),ve)},d.inflateEnd=function(A){if(!A||!A.state)return M;var S=A.state;return S.window&&(S.window=null),A.state=null,C},d.inflateGetHeader=function(A,S){var E;return A&&A.state&&2&(E=A.state).wrap?((E.head=S).done=!1,C):M},d.inflateSetDictionary=function(A,S){var E,O=S.length;return A&&A.state?(E=A.state).wrap!==0&&E.mode!==11?M:E.mode===11&&x(1,S,O,0)!==E.check?-3:D(A,S,O,O)?(E.mode=31,-4):(E.havedict=1,C):M},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(p,m,d){var v=p("../utils/common"),x=[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],g=[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],w=[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];m.exports=function(y,T,C,M,I,B,U,j){var H,G,L,R,F,_,k,N,P,D=j.bits,A=0,S=0,E=0,O=0,z=0,J=0,re=0,se=0,Ce=0,Y=0,q=null,K=0,Q=new v.Buf16(16),he=new v.Buf16(16),we=null,ae=0;for(A=0;A<=15;A++)Q[A]=0;for(S=0;S<M;S++)Q[T[C+S]]++;for(z=D,O=15;1<=O&&Q[O]===0;O--);if(O<z&&(z=O),O===0)return I[B++]=20971520,I[B++]=20971520,j.bits=1,0;for(E=1;E<O&&Q[E]===0;E++);for(z<E&&(z=E),A=se=1;A<=15;A++)if(se<<=1,(se-=Q[A])<0)return-1;if(0<se&&(y===0||O!==1))return-1;for(he[1]=0,A=1;A<15;A++)he[A+1]=he[A]+Q[A];for(S=0;S<M;S++)T[C+S]!==0&&(U[he[T[C+S]]++]=S);if(_=y===0?(q=we=U,19):y===1?(q=x,K-=257,we=g,ae-=257,256):(q=b,we=w,-1),A=E,F=B,re=S=Y=0,L=-1,R=(Ce=1<<(J=z))-1,y===1&&852<Ce||y===2&&592<Ce)return 1;for(;;){for(k=A-re,P=U[S]<_?(N=0,U[S]):U[S]>_?(N=we[ae+U[S]],q[K+U[S]]):(N=96,0),H=1<<A-re,E=G=1<<J;I[F+(Y>>re)+(G-=H)]=k<<24|N<<16|P|0,G!==0;);for(H=1<<A-1;Y&H;)H>>=1;if(H!==0?(Y&=H-1,Y+=H):Y=0,S++,--Q[A]==0){if(A===O)break;A=T[C+U[S]]}if(z<A&&(Y&R)!==L){for(re===0&&(re=z),F+=E,se=1<<(J=A-re);J+re<O&&!((se-=Q[J+re])<=0);)J++,se<<=1;if(Ce+=1<<J,y===1&&852<Ce||y===2&&592<Ce)return 1;I[L=Y&R]=z<<24|J<<16|F-B|0}}return Y!==0&&(I[F+Y]=A-re<<24|64<<16|0),j.bits=z,0}},{"../utils/common":41}],51:[function(p,m,d){m.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"}},{}],52:[function(p,m,d){var v=p("../utils/common"),x=0,g=1;function b(ne){for(var de=ne.length;0<=--de;)ne[de]=0}var w=0,y=29,T=256,C=T+1+y,M=30,I=19,B=2*C+1,U=15,j=16,H=7,G=256,L=16,R=17,F=18,_=[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],k=[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],N=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=new Array(2*(C+2));b(D);var A=new Array(2*M);b(A);var S=new Array(512);b(S);var E=new Array(256);b(E);var O=new Array(y);b(O);var z,J,re,se=new Array(M);function Ce(ne,de,_e,Re,Ae){this.static_tree=ne,this.extra_bits=de,this.extra_base=_e,this.elems=Re,this.max_length=Ae,this.has_stree=ne&&ne.length}function Y(ne,de){this.dyn_tree=ne,this.max_code=0,this.stat_desc=de}function q(ne){return ne<256?S[ne]:S[256+(ne>>>7)]}function K(ne,de){ne.pending_buf[ne.pending++]=255&de,ne.pending_buf[ne.pending++]=de>>>8&255}function Q(ne,de,_e){ne.bi_valid>j-_e?(ne.bi_buf|=de<<ne.bi_valid&65535,K(ne,ne.bi_buf),ne.bi_buf=de>>j-ne.bi_valid,ne.bi_valid+=_e-j):(ne.bi_buf|=de<<ne.bi_valid&65535,ne.bi_valid+=_e)}function he(ne,de,_e){Q(ne,_e[2*de],_e[2*de+1])}function we(ne,de){for(var _e=0;_e|=1&ne,ne>>>=1,_e<<=1,0<--de;);return _e>>>1}function ae(ne,de,_e){var Re,Ae,Ne=new Array(U+1),Xe=0;for(Re=1;Re<=U;Re++)Ne[Re]=Xe=Xe+_e[Re-1]<<1;for(Ae=0;Ae<=de;Ae++){var Le=ne[2*Ae+1];Le!==0&&(ne[2*Ae]=we(Ne[Le]++,Le))}}function te(ne){var de;for(de=0;de<C;de++)ne.dyn_ltree[2*de]=0;for(de=0;de<M;de++)ne.dyn_dtree[2*de]=0;for(de=0;de<I;de++)ne.bl_tree[2*de]=0;ne.dyn_ltree[2*G]=1,ne.opt_len=ne.static_len=0,ne.last_lit=ne.matches=0}function Z(ne){8<ne.bi_valid?K(ne,ne.bi_buf):0<ne.bi_valid&&(ne.pending_buf[ne.pending++]=ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0}function W(ne,de,_e,Re){var Ae=2*de,Ne=2*_e;return ne[Ae]<ne[Ne]||ne[Ae]===ne[Ne]&&Re[de]<=Re[_e]}function V(ne,de,_e){for(var Re=ne.heap[_e],Ae=_e<<1;Ae<=ne.heap_len&&(Ae<ne.heap_len&&W(de,ne.heap[Ae+1],ne.heap[Ae],ne.depth)&&Ae++,!W(de,Re,ne.heap[Ae],ne.depth));)ne.heap[_e]=ne.heap[Ae],_e=Ae,Ae<<=1;ne.heap[_e]=Re}function fe(ne,de,_e){var Re,Ae,Ne,Xe,Le=0;if(ne.last_lit!==0)for(;Re=ne.pending_buf[ne.d_buf+2*Le]<<8|ne.pending_buf[ne.d_buf+2*Le+1],Ae=ne.pending_buf[ne.l_buf+Le],Le++,Re===0?he(ne,Ae,de):(he(ne,(Ne=E[Ae])+T+1,de),(Xe=_[Ne])!==0&&Q(ne,Ae-=O[Ne],Xe),he(ne,Ne=q(--Re),_e),(Xe=k[Ne])!==0&&Q(ne,Re-=se[Ne],Xe)),Le<ne.last_lit;);he(ne,G,de)}function ye(ne,de){var _e,Re,Ae,Ne=de.dyn_tree,Xe=de.stat_desc.static_tree,Le=de.stat_desc.has_stree,xe=de.stat_desc.elems,Me=-1;for(ne.heap_len=0,ne.heap_max=B,_e=0;_e<xe;_e++)Ne[2*_e]!==0?(ne.heap[++ne.heap_len]=Me=_e,ne.depth[_e]=0):Ne[2*_e+1]=0;for(;ne.heap_len<2;)Ne[2*(Ae=ne.heap[++ne.heap_len]=Me<2?++Me:0)]=1,ne.depth[Ae]=0,ne.opt_len--,Le&&(ne.static_len-=Xe[2*Ae+1]);for(de.max_code=Me,_e=ne.heap_len>>1;1<=_e;_e--)V(ne,Ne,_e);for(Ae=xe;_e=ne.heap[1],ne.heap[1]=ne.heap[ne.heap_len--],V(ne,Ne,1),Re=ne.heap[1],ne.heap[--ne.heap_max]=_e,ne.heap[--ne.heap_max]=Re,Ne[2*Ae]=Ne[2*_e]+Ne[2*Re],ne.depth[Ae]=(ne.depth[_e]>=ne.depth[Re]?ne.depth[_e]:ne.depth[Re])+1,Ne[2*_e+1]=Ne[2*Re+1]=Ae,ne.heap[1]=Ae++,V(ne,Ne,1),2<=ne.heap_len;);ne.heap[--ne.heap_max]=ne.heap[1],function(Be,Ve){var ot,ct,rt,nt,mt,et,tt=Ve.dyn_tree,vt=Ve.max_code,ft=Ve.stat_desc.static_tree,kt=Ve.stat_desc.has_stree,Tt=Ve.stat_desc.extra_bits,lt=Ve.stat_desc.extra_base,Ct=Ve.stat_desc.max_length,Mt=0;for(nt=0;nt<=U;nt++)Be.bl_count[nt]=0;for(tt[2*Be.heap[Be.heap_max]+1]=0,ot=Be.heap_max+1;ot<B;ot++)Ct<(nt=tt[2*tt[2*(ct=Be.heap[ot])+1]+1]+1)&&(nt=Ct,Mt++),tt[2*ct+1]=nt,vt<ct||(Be.bl_count[nt]++,mt=0,lt<=ct&&(mt=Tt[ct-lt]),et=tt[2*ct],Be.opt_len+=et*(nt+mt),kt&&(Be.static_len+=et*(ft[2*ct+1]+mt)));if(Mt!==0){do{for(nt=Ct-1;Be.bl_count[nt]===0;)nt--;Be.bl_count[nt]--,Be.bl_count[nt+1]+=2,Be.bl_count[Ct]--,Mt-=2}while(0<Mt);for(nt=Ct;nt!==0;nt--)for(ct=Be.bl_count[nt];ct!==0;)vt<(rt=Be.heap[--ot])||(tt[2*rt+1]!==nt&&(Be.opt_len+=(nt-tt[2*rt+1])*tt[2*rt],tt[2*rt+1]=nt),ct--)}}(ne,de),ae(Ne,Me,ne.bl_count)}function X(ne,de,_e){var Re,Ae,Ne=-1,Xe=de[1],Le=0,xe=7,Me=4;for(Xe===0&&(xe=138,Me=3),de[2*(_e+1)+1]=65535,Re=0;Re<=_e;Re++)Ae=Xe,Xe=de[2*(Re+1)+1],++Le<xe&&Ae===Xe||(Le<Me?ne.bl_tree[2*Ae]+=Le:Ae!==0?(Ae!==Ne&&ne.bl_tree[2*Ae]++,ne.bl_tree[2*L]++):Le<=10?ne.bl_tree[2*R]++:ne.bl_tree[2*F]++,Ne=Ae,Me=(Le=0)===Xe?(xe=138,3):Ae===Xe?(xe=6,3):(xe=7,4))}function ve(ne,de,_e){var Re,Ae,Ne=-1,Xe=de[1],Le=0,xe=7,Me=4;for(Xe===0&&(xe=138,Me=3),Re=0;Re<=_e;Re++)if(Ae=Xe,Xe=de[2*(Re+1)+1],!(++Le<xe&&Ae===Xe)){if(Le<Me)for(;he(ne,Ae,ne.bl_tree),--Le!=0;);else Ae!==0?(Ae!==Ne&&(he(ne,Ae,ne.bl_tree),Le--),he(ne,L,ne.bl_tree),Q(ne,Le-3,2)):Le<=10?(he(ne,R,ne.bl_tree),Q(ne,Le-3,3)):(he(ne,F,ne.bl_tree),Q(ne,Le-11,7));Ne=Ae,Me=(Le=0)===Xe?(xe=138,3):Ae===Xe?(xe=6,3):(xe=7,4)}}b(se);var ke=!1;function ee(ne,de,_e,Re){Q(ne,(w<<1)+(Re?1:0),3),function(Ae,Ne,Xe,Le){Z(Ae),Le&&(K(Ae,Xe),K(Ae,~Xe)),v.arraySet(Ae.pending_buf,Ae.window,Ne,Xe,Ae.pending),Ae.pending+=Xe}(ne,de,_e,!0)}d._tr_init=function(ne){ke||(function(){var de,_e,Re,Ae,Ne,Xe=new Array(U+1);for(Ae=Re=0;Ae<y-1;Ae++)for(O[Ae]=Re,de=0;de<1<<_[Ae];de++)E[Re++]=Ae;for(E[Re-1]=Ae,Ae=Ne=0;Ae<16;Ae++)for(se[Ae]=Ne,de=0;de<1<<k[Ae];de++)S[Ne++]=Ae;for(Ne>>=7;Ae<M;Ae++)for(se[Ae]=Ne<<7,de=0;de<1<<k[Ae]-7;de++)S[256+Ne++]=Ae;for(_e=0;_e<=U;_e++)Xe[_e]=0;for(de=0;de<=143;)D[2*de+1]=8,de++,Xe[8]++;for(;de<=255;)D[2*de+1]=9,de++,Xe[9]++;for(;de<=279;)D[2*de+1]=7,de++,Xe[7]++;for(;de<=287;)D[2*de+1]=8,de++,Xe[8]++;for(ae(D,C+1,Xe),de=0;de<M;de++)A[2*de+1]=5,A[2*de]=we(de,5);z=new Ce(D,_,T+1,C,U),J=new Ce(A,k,0,M,U),re=new Ce(new Array(0),N,0,I,H)}(),ke=!0),ne.l_desc=new Y(ne.dyn_ltree,z),ne.d_desc=new Y(ne.dyn_dtree,J),ne.bl_desc=new Y(ne.bl_tree,re),ne.bi_buf=0,ne.bi_valid=0,te(ne)},d._tr_stored_block=ee,d._tr_flush_block=function(ne,de,_e,Re){var Ae,Ne,Xe=0;0<ne.level?(ne.strm.data_type===2&&(ne.strm.data_type=function(Le){var xe,Me=4093624447;for(xe=0;xe<=31;xe++,Me>>>=1)if(1&Me&&Le.dyn_ltree[2*xe]!==0)return x;if(Le.dyn_ltree[18]!==0||Le.dyn_ltree[20]!==0||Le.dyn_ltree[26]!==0)return g;for(xe=32;xe<T;xe++)if(Le.dyn_ltree[2*xe]!==0)return g;return x}(ne)),ye(ne,ne.l_desc),ye(ne,ne.d_desc),Xe=function(Le){var xe;for(X(Le,Le.dyn_ltree,Le.l_desc.max_code),X(Le,Le.dyn_dtree,Le.d_desc.max_code),ye(Le,Le.bl_desc),xe=I-1;3<=xe&&Le.bl_tree[2*P[xe]+1]===0;xe--);return Le.opt_len+=3*(xe+1)+5+5+4,xe}(ne),Ae=ne.opt_len+3+7>>>3,(Ne=ne.static_len+3+7>>>3)<=Ae&&(Ae=Ne)):Ae=Ne=_e+5,_e+4<=Ae&&de!==-1?ee(ne,de,_e,Re):ne.strategy===4||Ne===Ae?(Q(ne,2+(Re?1:0),3),fe(ne,D,A)):(Q(ne,4+(Re?1:0),3),function(Le,xe,Me,Be){var Ve;for(Q(Le,xe-257,5),Q(Le,Me-1,5),Q(Le,Be-4,4),Ve=0;Ve<Be;Ve++)Q(Le,Le.bl_tree[2*P[Ve]+1],3);ve(Le,Le.dyn_ltree,xe-1),ve(Le,Le.dyn_dtree,Me-1)}(ne,ne.l_desc.max_code+1,ne.d_desc.max_code+1,Xe+1),fe(ne,ne.dyn_ltree,ne.dyn_dtree)),te(ne),Re&&Z(ne)},d._tr_tally=function(ne,de,_e){return ne.pending_buf[ne.d_buf+2*ne.last_lit]=de>>>8&255,ne.pending_buf[ne.d_buf+2*ne.last_lit+1]=255&de,ne.pending_buf[ne.l_buf+ne.last_lit]=255&_e,ne.last_lit++,de===0?ne.dyn_ltree[2*_e]++:(ne.matches++,de--,ne.dyn_ltree[2*(E[_e]+T+1)]++,ne.dyn_dtree[2*q(de)]++),ne.last_lit===ne.lit_bufsize-1},d._tr_align=function(ne){Q(ne,2,3),he(ne,G,D),function(de){de.bi_valid===16?(K(de,de.bi_buf),de.bi_buf=0,de.bi_valid=0):8<=de.bi_valid&&(de.pending_buf[de.pending++]=255&de.bi_buf,de.bi_buf>>=8,de.bi_valid-=8)}(ne)}},{"../utils/common":41}],53:[function(p,m,d){m.exports=function(){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}},{}],54:[function(p,m,d){(function(v){(function(x,g){if(!x.setImmediate){var b,w,y,T,C=1,M={},I=!1,B=x.document,U=Object.getPrototypeOf&&Object.getPrototypeOf(x);U=U&&U.setTimeout?U:x,b={}.toString.call(x.process)==="[object process]"?function(L){s.nextTick(function(){H(L)})}:function(){if(x.postMessage&&!x.importScripts){var L=!0,R=x.onmessage;return x.onmessage=function(){L=!1},x.postMessage("","*"),x.onmessage=R,L}}()?(T="setImmediate$"+Math.random()+"$",x.addEventListener?x.addEventListener("message",G,!1):x.attachEvent("onmessage",G),function(L){x.postMessage(T+L,"*")}):x.MessageChannel?((y=new MessageChannel).port1.onmessage=function(L){H(L.data)},function(L){y.port2.postMessage(L)}):B&&"onreadystatechange"in B.createElement("script")?(w=B.documentElement,function(L){var R=B.createElement("script");R.onreadystatechange=function(){H(L),R.onreadystatechange=null,w.removeChild(R),R=null},w.appendChild(R)}):function(L){setTimeout(H,0,L)},U.setImmediate=function(L){typeof L!="function"&&(L=new Function(""+L));for(var R=new Array(arguments.length-1),F=0;F<R.length;F++)R[F]=arguments[F+1];var _={callback:L,args:R};return M[C]=_,b(C),C++},U.clearImmediate=j}function j(L){delete M[L]}function H(L){if(I)setTimeout(H,0,L);else{var R=M[L];if(R){I=!0;try{(function(F){var _=F.callback,k=F.args;switch(k.length){case 0:_();break;case 1:_(k[0]);break;case 2:_(k[0],k[1]);break;case 3:_(k[0],k[1],k[2]);break;default:_.apply(g,k)}})(R)}finally{j(L),I=!1}}}}function G(L){L.source===x&&typeof L.data=="string"&&L.data.indexOf(T)===0&&H(+L.data.slice(T.length))}})(typeof self>"u"?v===void 0?this:v:self)}).call(this,typeof o<"u"?o:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,e("_process"),typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,n,i){(function(s){(function(){var o=1/0,h="[object Symbol]",c=/[\\^$.*+?()[\]{}|]/g,a=RegExp(c.source),f=typeof s=="object"&&s&&s.Object===Object&&s,l=typeof self=="object"&&self&&self.Object===Object&&self,u=f||l||Function("return this")(),p=Object.prototype,m=p.toString,d=u.Symbol,v=d?d.prototype:void 0,x=v?v.toString:void 0;function g(C){if(typeof C=="string")return C;if(w(C))return x?x.call(C):"";var M=C+"";return M=="0"&&1/C==-o?"-0":M}function b(C){return!!C&&typeof C=="object"}function w(C){return typeof C=="symbol"||b(C)&&m.call(C)==h}function y(C){return C==null?"":g(C)}function T(C){return C=y(C),C&&a.test(C)?C.replace(c,"\\$&"):C}n.exports=T}).call(this)}).call(this,typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(e,n,i){(function(s){(function(){var o=200,h="Expected a function",c="__lodash_hash_undefined__",a=1,f=2,l=1/0,u=9007199254740991,p="[object Arguments]",m="[object Array]",d="[object Boolean]",v="[object Date]",x="[object Error]",g="[object Function]",b="[object GeneratorFunction]",w="[object Map]",y="[object Number]",T="[object Object]",C="[object Promise]",M="[object RegExp]",I="[object Set]",B="[object String]",U="[object Symbol]",j="[object WeakMap]",H="[object ArrayBuffer]",G="[object DataView]",L="[object Float32Array]",R="[object Float64Array]",F="[object Int8Array]",_="[object Int16Array]",k="[object Int32Array]",N="[object Uint8Array]",P="[object Uint8ClampedArray]",D="[object Uint16Array]",A="[object Uint32Array]",S=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,O=/^\./,z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/[\\^$.*+?()[\]{}|]/g,re=/\\(\\)?/g,se=/^\[object .+?Constructor\]$/,Ce=/^(?:0|[1-9]\d*)$/,Y={};Y[L]=Y[R]=Y[F]=Y[_]=Y[k]=Y[N]=Y[P]=Y[D]=Y[A]=!0,Y[p]=Y[m]=Y[H]=Y[d]=Y[G]=Y[v]=Y[x]=Y[g]=Y[w]=Y[y]=Y[T]=Y[M]=Y[I]=Y[B]=Y[j]=!1;var q=typeof s=="object"&&s&&s.Object===Object&&s,K=typeof self=="object"&&self&&self.Object===Object&&self,Q=q||K||Function("return this")(),he=typeof i=="object"&&i&&!i.nodeType&&i,we=he&&typeof n=="object"&&n&&!n.nodeType&&n,ae=we&&we.exports===he,te=ae&&q.process,Z=function(){try{return te&&te.binding("util")}catch{}}(),W=Z&&Z.isTypedArray;function V(oe,Se,ze,Ze){for(var pt=-1,st=oe?oe.length:0;++pt<st;){var At=oe[pt];Se(Ze,At,ze(At),oe)}return Ze}function fe(oe,Se){for(var ze=-1,Ze=oe?oe.length:0;++ze<Ze;)if(Se(oe[ze],ze,oe))return!0;return!1}function ye(oe){return function(Se){return Se==null?void 0:Se[oe]}}function X(oe,Se){for(var ze=-1,Ze=Array(oe);++ze<oe;)Ze[ze]=Se(ze);return Ze}function ve(oe){return function(Se){return oe(Se)}}function ke(oe,Se){return oe==null?void 0:oe[Se]}function ee(oe){var Se=!1;if(oe!=null&&typeof oe.toString!="function")try{Se=!!(oe+"")}catch{}return Se}function ne(oe){var Se=-1,ze=Array(oe.size);return oe.forEach(function(Ze,pt){ze[++Se]=[pt,Ze]}),ze}function de(oe,Se){return function(ze){return oe(Se(ze))}}function _e(oe){var Se=-1,ze=Array(oe.size);return oe.forEach(function(Ze){ze[++Se]=Ze}),ze}var Re=Array.prototype,Ae=Function.prototype,Ne=Object.prototype,Xe=Q["__core-js_shared__"],Le=function(){var oe=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||"");return oe?"Symbol(src)_1."+oe:""}(),xe=Ae.toString,Me=Ne.hasOwnProperty,Be=Ne.toString,Ve=RegExp("^"+xe.call(Me).replace(J,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=Q.Symbol,ct=Q.Uint8Array,rt=Ne.propertyIsEnumerable,nt=Re.splice,mt=de(Object.keys,Object),et=Rn(Q,"DataView"),tt=Rn(Q,"Map"),vt=Rn(Q,"Promise"),ft=Rn(Q,"Set"),kt=Rn(Q,"WeakMap"),Tt=Rn(Object,"create"),lt=Ge(et),Ct=Ge(tt),Mt=Ge(vt),gt=Ge(ft),ie=Ge(kt),ge=ot?ot.prototype:void 0,le=ge?ge.valueOf:void 0,ue=ge?ge.toString:void 0;function pe(oe){var Se=-1,ze=oe?oe.length:0;for(this.clear();++Se<ze;){var Ze=oe[Se];this.set(Ze[0],Ze[1])}}function me(){this.__data__=Tt?Tt(null):{}}function Ie(oe){return this.has(oe)&&delete this.__data__[oe]}function je(oe){var Se=this.__data__;if(Tt){var ze=Se[oe];return ze===c?void 0:ze}return Me.call(Se,oe)?Se[oe]:void 0}function Fe(oe){var Se=this.__data__;return Tt?Se[oe]!==void 0:Me.call(Se,oe)}function Pe(oe,Se){var ze=this.__data__;return ze[oe]=Tt&&Se===void 0?c:Se,this}pe.prototype.clear=me,pe.prototype.delete=Ie,pe.prototype.get=je,pe.prototype.has=Fe,pe.prototype.set=Pe;function Oe(oe){var Se=-1,ze=oe?oe.length:0;for(this.clear();++Se<ze;){var Ze=oe[Se];this.set(Ze[0],Ze[1])}}function $e(){this.__data__=[]}function ce(oe){var Se=this.__data__,ze=$n(Se,oe);if(ze<0)return!1;var Ze=Se.length-1;return ze==Ze?Se.pop():nt.call(Se,ze,1),!0}function Te(oe){var Se=this.__data__,ze=$n(Se,oe);return ze<0?void 0:Se[ze][1]}function Ee(oe){return $n(this.__data__,oe)>-1}function Ue(oe,Se){var ze=this.__data__,Ze=$n(ze,oe);return Ze<0?ze.push([oe,Se]):ze[Ze][1]=Se,this}Oe.prototype.clear=$e,Oe.prototype.delete=ce,Oe.prototype.get=Te,Oe.prototype.has=Ee,Oe.prototype.set=Ue;function Ke(oe){var Se=-1,ze=oe?oe.length:0;for(this.clear();++Se<ze;){var Ze=oe[Se];this.set(Ze[0],Ze[1])}}function at(){this.__data__={hash:new pe,map:new(tt||Oe),string:new pe}}function dt(oe){return Wn(this,oe).delete(oe)}function Nt(oe){return Wn(this,oe).get(oe)}function pr(oe){return Wn(this,oe).has(oe)}function Jt(oe,Se){return Wn(this,oe).set(oe,Se),this}Ke.prototype.clear=at,Ke.prototype.delete=dt,Ke.prototype.get=Nt,Ke.prototype.has=pr,Ke.prototype.set=Jt;function jt(oe){var Se=-1,ze=oe?oe.length:0;for(this.__data__=new Ke;++Se<ze;)this.add(oe[Se])}function mr(oe){return this.__data__.set(oe,c),this}function Ur(oe){return this.__data__.has(oe)}jt.prototype.add=jt.prototype.push=mr,jt.prototype.has=Ur;function Ot(oe){this.__data__=new Oe(oe)}function vn(){this.__data__=new Oe}function xn(oe){return this.__data__.delete(oe)}function bn(oe){return this.__data__.get(oe)}function yi(oe){return this.__data__.has(oe)}function _i(oe,Se){var ze=this.__data__;if(ze instanceof Oe){var Ze=ze.__data__;if(!tt||Ze.length<o-1)return Ze.push([oe,Se]),this;ze=this.__data__=new Ke(Ze)}return ze.set(oe,Se),this}Ot.prototype.clear=vn,Ot.prototype.delete=xn,Ot.prototype.get=bn,Ot.prototype.has=yi,Ot.prototype.set=_i;function Eo(oe,Se){var ze=Xt(oe)||Gt(oe)?X(oe.length,String):[],Ze=ze.length,pt=!!Ze;for(var st in oe)(Se||Me.call(oe,st))&&!(pt&&(st=="length"||ws(st,Ze)))&&ze.push(st);return ze}function $n(oe,Se){for(var ze=oe.length;ze--;)if(wt(oe[ze][0],Se))return ze;return-1}function To(oe,Se,ze,Ze){return Ei(oe,function(pt,st,At){Se(Ze,pt,ze(pt),At)}),Ze}var Ei=Io(ca),la=Do();function ca(oe,Se){return oe&&la(oe,Se,Vn)}function ha(oe,Se){Se=Ti(Se,oe)?[Se]:pa(Se);for(var ze=0,Ze=Se.length;oe!=null&&ze<Ze;)oe=oe[De(Se[ze++])];return ze&&ze==Ze?oe:void 0}function So(oe){return Be.call(oe)}function ko(oe,Se){return oe!=null&&Se in Object(oe)}function bs(oe,Se,ze,Ze,pt){return oe===Se?!0:oe==null||Se==null||!ir(oe)&&!Tr(Se)?oe!==oe&&Se!==Se:ua(oe,Se,bs,ze,Ze,pt)}function ua(oe,Se,ze,Ze,pt,st){var At=Xt(oe),Vt=Xt(Se),er=m,xr=m;At||(er=Mn(oe),er=er==p?T:er),Vt||(xr=Mn(Se),xr=xr==p?T:xr);var zr=er==T&&!ee(oe),Vr=xr==T&&!ee(Se),br=er==xr;if(br&&!zr)return st||(st=new Ot),At||On(oe)?Fn(oe,Se,ze,Ze,pt,st):ma(oe,Se,er,ze,Ze,pt,st);if(!(pt&f)){var sn=zr&&Me.call(oe,"__wrapped__"),an=Vr&&Me.call(Se,"__wrapped__");if(sn||an){var ai=sn?oe.value():oe,Gn=an?Se.value():Se;return st||(st=new Ot),ze(ai,Gn,Ze,pt,st)}}return br?(st||(st=new Ot),No(oe,Se,ze,Ze,pt,st)):!1}function Co(oe,Se,ze,Ze){var pt=ze.length,st=pt,At=!Ze;if(oe==null)return!st;for(oe=Object(oe);pt--;){var Vt=ze[pt];if(At&&Vt[2]?Vt[1]!==oe[Vt[0]]:!(Vt[0]in oe))return!1}for(;++pt<st;){Vt=ze[pt];var er=Vt[0],xr=oe[er],zr=Vt[1];if(At&&Vt[2]){if(xr===void 0&&!(er in oe))return!1}else{var Vr=new Ot;if(Ze)var br=Ze(xr,zr,er,oe,Se,Vr);if(!(br===void 0?bs(zr,xr,Ze,a|f,Vr):br))return!1}}return!0}function Ao(oe){if(!ir(oe)||va(oe))return!1;var Se=Fr(oe)||ee(oe)?Ve:se;return Se.test(Ge(oe))}function da(oe){return Tr(oe)&&Hr(oe.length)&&!!Y[Be.call(oe)]}function Ji(oe){return typeof oe=="function"?oe:oe==null?Qi:typeof oe=="object"?Xt(oe)?Ro(oe[0],oe[1]):Fo(oe):X0(oe)}function si(oe){if(!Bo(oe))return mt(oe);var Se=[];for(var ze in Object(oe))Me.call(oe,ze)&&ze!="constructor"&&Se.push(ze);return Se}function Fo(oe){var Se=Po(oe);return Se.length==1&&Se[0][2]?ba(Se[0][0],Se[0][1]):function(ze){return ze===oe||Co(ze,oe,Se)}}function Ro(oe,Se){return Ti(oe)&&xa(Se)?ba(De(oe),Se):function(ze){var Ze=Xn(ze,oe);return Ze===void 0&&Ze===Se?wa(ze,oe):bs(Se,Ze,void 0,a|f)}}function An(oe){return function(Se){return ha(Se,oe)}}function Mo(oe){if(typeof oe=="string")return oe;if(Rr(oe))return ue?ue.call(oe):"";var Se=oe+"";return Se=="0"&&1/oe==-l?"-0":Se}function pa(oe){return Xt(oe)?oe:be(oe)}function Oo(oe,Se){return function(ze,Ze){var pt=Xt(ze)?V:To,st=Se?Se():{};return pt(ze,oe,Ji(Ze),st)}}function Io(oe,Se){return function(ze,Ze){if(ze==null)return ze;if(!nr(ze))return oe(ze,Ze);for(var pt=ze.length,st=Se?pt:-1,At=Object(ze);(Se?st--:++st<pt)&&Ze(At[st],st,At)!==!1;);return ze}}function Do(oe){return function(Se,ze,Ze){for(var pt=-1,st=Object(Se),At=Ze(Se),Vt=At.length;Vt--;){var er=At[oe?Vt:++pt];if(ze(st[er],er,st)===!1)break}return Se}}function Fn(oe,Se,ze,Ze,pt,st){var At=pt&f,Vt=oe.length,er=Se.length;if(Vt!=er&&!(At&&er>Vt))return!1;var xr=st.get(oe);if(xr&&st.get(Se))return xr==Se;var zr=-1,Vr=!0,br=pt&a?new jt:void 0;for(st.set(oe,Se),st.set(Se,oe);++zr<Vt;){var sn=oe[zr],an=Se[zr];if(Ze)var ai=At?Ze(an,sn,zr,Se,oe,st):Ze(sn,an,zr,oe,Se,st);if(ai!==void 0){if(ai)continue;Vr=!1;break}if(br){if(!fe(Se,function(Gn,ki){if(!br.has(ki)&&(sn===Gn||ze(sn,Gn,Ze,pt,st)))return br.add(ki)})){Vr=!1;break}}else if(!(sn===an||ze(sn,an,Ze,pt,st))){Vr=!1;break}}return st.delete(oe),st.delete(Se),Vr}function ma(oe,Se,ze,Ze,pt,st,At){switch(ze){case G:if(oe.byteLength!=Se.byteLength||oe.byteOffset!=Se.byteOffset)return!1;oe=oe.buffer,Se=Se.buffer;case H:return!(oe.byteLength!=Se.byteLength||!Ze(new ct(oe),new ct(Se)));case d:case v:case y:return wt(+oe,+Se);case x:return oe.name==Se.name&&oe.message==Se.message;case M:case B:return oe==Se+"";case w:var Vt=ne;case I:var er=st&f;if(Vt||(Vt=_e),oe.size!=Se.size&&!er)return!1;var xr=At.get(oe);if(xr)return xr==Se;st|=a,At.set(oe,Se);var zr=Fn(Vt(oe),Vt(Se),Ze,pt,st,At);return At.delete(oe),zr;case U:if(le)return le.call(oe)==le.call(Se)}return!1}function No(oe,Se,ze,Ze,pt,st){var At=pt&f,Vt=Vn(oe),er=Vt.length,xr=Vn(Se),zr=xr.length;if(er!=zr&&!At)return!1;for(var Vr=er;Vr--;){var br=Vt[Vr];if(!(At?br in Se:Me.call(Se,br)))return!1}var sn=st.get(oe);if(sn&&st.get(Se))return sn==Se;var an=!0;st.set(oe,Se),st.set(Se,oe);for(var ai=At;++Vr<er;){br=Vt[Vr];var Gn=oe[br],ki=Se[br];if(Ze)var Tl=At?Ze(ki,Gn,br,Se,oe,st):Ze(Gn,ki,br,oe,Se,st);if(!(Tl===void 0?Gn===ki||ze(Gn,ki,Ze,pt,st):Tl)){an=!1;break}ai||(ai=br=="constructor")}if(an&&!ai){var ya=oe.constructor,_a=Se.constructor;ya!=_a&&"constructor"in oe&&"constructor"in Se&&!(typeof ya=="function"&&ya instanceof ya&&typeof _a=="function"&&_a instanceof _a)&&(an=!1)}return st.delete(oe),st.delete(Se),an}function Wn(oe,Se){var ze=oe.__data__;return Si(Se)?ze[typeof Se=="string"?"string":"hash"]:ze.map}function Po(oe){for(var Se=Vn(oe),ze=Se.length;ze--;){var Ze=Se[ze],pt=oe[Ze];Se[ze]=[Ze,pt,xa(pt)]}return Se}function Rn(oe,Se){var ze=ke(oe,Se);return Ao(ze)?ze:void 0}var Mn=So;(et&&Mn(new et(new ArrayBuffer(1)))!=G||tt&&Mn(new tt)!=w||vt&&Mn(vt.resolve())!=C||ft&&Mn(new ft)!=I||kt&&Mn(new kt)!=j)&&(Mn=function(oe){var Se=Be.call(oe),ze=Se==T?oe.constructor:void 0,Ze=ze?Ge(ze):void 0;if(Ze)switch(Ze){case lt:return G;case Ct:return w;case Mt:return C;case gt:return I;case ie:return j}return Se});function ga(oe,Se,ze){Se=Ti(Se,oe)?[Se]:pa(Se);for(var Ze,pt=-1,At=Se.length;++pt<At;){var st=De(Se[pt]);if(!(Ze=oe!=null&&ze(oe,st)))break;oe=oe[st]}if(Ze)return Ze;var At=oe?oe.length:0;return!!At&&Hr(At)&&ws(st,At)&&(Xt(oe)||Gt(oe))}function ws(oe,Se){return Se=Se??u,!!Se&&(typeof oe=="number"||Ce.test(oe))&&oe>-1&&oe%1==0&&oe<Se}function Ti(oe,Se){if(Xt(oe))return!1;var ze=typeof oe;return ze=="number"||ze=="symbol"||ze=="boolean"||oe==null||Rr(oe)?!0:E.test(oe)||!S.test(oe)||Se!=null&&oe in Object(Se)}function Si(oe){var Se=typeof oe;return Se=="string"||Se=="number"||Se=="symbol"||Se=="boolean"?oe!=="__proto__":oe===null}function va(oe){return!!Le&&Le in oe}function Bo(oe){var Se=oe&&oe.constructor,ze=typeof Se=="function"&&Se.prototype||Ne;return oe===ze}function xa(oe){return oe===oe&&!ir(oe)}function ba(oe,Se){return function(ze){return ze==null?!1:ze[oe]===Se&&(Se!==void 0||oe in Object(ze))}}var be=Ut(function(oe){oe=wn(oe);var Se=[];return O.test(oe)&&Se.push(""),oe.replace(z,function(ze,Ze,pt,st){Se.push(pt?st.replace(re,"$1"):Ze||ze)}),Se});function De(oe){if(typeof oe=="string"||Rr(oe))return oe;var Se=oe+"";return Se=="0"&&1/oe==-l?"-0":Se}function Ge(oe){if(oe!=null){try{return xe.call(oe)}catch{}try{return oe+""}catch{}}return""}var it=Oo(function(oe,Se,ze){Me.call(oe,ze)?oe[ze].push(Se):oe[ze]=[Se]});function Ut(oe,Se){if(typeof oe!="function"||Se&&typeof Se!="function")throw new TypeError(h);var ze=function(){var Ze=arguments,pt=Se?Se.apply(this,Ze):Ze[0],st=ze.cache;if(st.has(pt))return st.get(pt);var At=oe.apply(this,Ze);return ze.cache=st.set(pt,At),At};return ze.cache=new(Ut.Cache||Ke),ze}Ut.Cache=Ke;function wt(oe,Se){return oe===Se||oe!==oe&&Se!==Se}function Gt(oe){return Kt(oe)&&Me.call(oe,"callee")&&(!rt.call(oe,"callee")||Be.call(oe)==p)}var Xt=Array.isArray;function nr(oe){return oe!=null&&Hr(oe.length)&&!Fr(oe)}function Kt(oe){return Tr(oe)&&nr(oe)}function Fr(oe){var Se=ir(oe)?Be.call(oe):"";return Se==g||Se==b}function Hr(oe){return typeof oe=="number"&&oe>-1&&oe%1==0&&oe<=u}function ir(oe){var Se=typeof oe;return!!oe&&(Se=="object"||Se=="function")}function Tr(oe){return!!oe&&typeof oe=="object"}function Rr(oe){return typeof oe=="symbol"||Tr(oe)&&Be.call(oe)==U}var On=W?ve(W):da;function wn(oe){return oe==null?"":Mo(oe)}function Xn(oe,Se,ze){var Ze=oe==null?void 0:ha(oe,Se);return Ze===void 0?ze:Ze}function wa(oe,Se){return oe!=null&&ga(oe,Se,ko)}function Vn(oe){return nr(oe)?Eo(oe):si(oe)}function Qi(oe){return oe}function X0(oe){return Ti(oe)?ye(De(oe)):An(oe)}n.exports=it}).call(this)}).call(this,typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(e,n,i){var s="[object Boolean]",o=Object.prototype,h=o.toString;function c(f){return f===!0||f===!1||a(f)&&h.call(f)==s}function a(f){return!!f&&typeof f=="object"}n.exports=c},{}],445:[function(e,n,i){(function(s){(function(){var o=200,h="__lodash_hash_undefined__",c=1,a=2,f=9007199254740991,l="[object Arguments]",u="[object Array]",p="[object AsyncFunction]",m="[object Boolean]",d="[object Date]",v="[object Error]",x="[object Function]",g="[object GeneratorFunction]",b="[object Map]",w="[object Number]",y="[object Null]",T="[object Object]",C="[object Promise]",M="[object Proxy]",I="[object RegExp]",B="[object Set]",U="[object String]",j="[object Symbol]",H="[object Undefined]",G="[object WeakMap]",L="[object ArrayBuffer]",R="[object DataView]",F="[object Float32Array]",_="[object Float64Array]",k="[object Int8Array]",N="[object Int16Array]",P="[object Int32Array]",D="[object Uint8Array]",A="[object Uint8ClampedArray]",S="[object Uint16Array]",E="[object Uint32Array]",O=/[\\^$.*+?()[\]{}|]/g,z=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,re={};re[F]=re[_]=re[k]=re[N]=re[P]=re[D]=re[A]=re[S]=re[E]=!0,re[l]=re[u]=re[L]=re[m]=re[R]=re[d]=re[v]=re[x]=re[b]=re[w]=re[T]=re[I]=re[B]=re[U]=re[G]=!1;var se=typeof s=="object"&&s&&s.Object===Object&&s,Ce=typeof self=="object"&&self&&self.Object===Object&&self,Y=se||Ce||Function("return this")(),q=typeof i=="object"&&i&&!i.nodeType&&i,K=q&&typeof n=="object"&&n&&!n.nodeType&&n,Q=K&&K.exports===q,he=Q&&se.process,we=function(){try{return he&&he.binding&&he.binding("util")}catch{}}(),ae=we&&we.isTypedArray;function te(be,De){for(var Ge=-1,it=be==null?0:be.length,Ut=0,wt=[];++Ge<it;){var Gt=be[Ge];De(Gt,Ge,be)&&(wt[Ut++]=Gt)}return wt}function Z(be,De){for(var Ge=-1,it=De.length,Ut=be.length;++Ge<it;)be[Ut+Ge]=De[Ge];return be}function W(be,De){for(var Ge=-1,it=be==null?0:be.length;++Ge<it;)if(De(be[Ge],Ge,be))return!0;return!1}function V(be,De){for(var Ge=-1,it=Array(be);++Ge<be;)it[Ge]=De(Ge);return it}function fe(be){return function(De){return be(De)}}function ye(be,De){return be.has(De)}function X(be,De){return be==null?void 0:be[De]}function ve(be){var De=-1,Ge=Array(be.size);return be.forEach(function(it,Ut){Ge[++De]=[Ut,it]}),Ge}function ke(be,De){return function(Ge){return be(De(Ge))}}function ee(be){var De=-1,Ge=Array(be.size);return be.forEach(function(it){Ge[++De]=it}),Ge}var ne=Array.prototype,de=Function.prototype,_e=Object.prototype,Re=Y["__core-js_shared__"],Ae=de.toString,Ne=_e.hasOwnProperty,Xe=function(){var be=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||"");return be?"Symbol(src)_1."+be:""}(),Le=_e.toString,xe=RegExp("^"+Ae.call(Ne).replace(O,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Q?Y.Buffer:void 0,Be=Y.Symbol,Ve=Y.Uint8Array,ot=_e.propertyIsEnumerable,ct=ne.splice,rt=Be?Be.toStringTag:void 0,nt=Object.getOwnPropertySymbols,mt=Me?Me.isBuffer:void 0,et=ke(Object.keys,Object),tt=si(Y,"DataView"),vt=si(Y,"Map"),ft=si(Y,"Promise"),kt=si(Y,"Set"),Tt=si(Y,"WeakMap"),lt=si(Object,"create"),Ct=Fn(tt),Mt=Fn(vt),gt=Fn(ft),ie=Fn(kt),ge=Fn(Tt),le=Be?Be.prototype:void 0,ue=le?le.valueOf:void 0;function pe(be){var De=-1,Ge=be==null?0:be.length;for(this.clear();++De<Ge;){var it=be[De];this.set(it[0],it[1])}}function me(){this.__data__=lt?lt(null):{},this.size=0}function Ie(be){var De=this.has(be)&&delete this.__data__[be];return this.size-=De?1:0,De}function je(be){var De=this.__data__;if(lt){var Ge=De[be];return Ge===h?void 0:Ge}return Ne.call(De,be)?De[be]:void 0}function Fe(be){var De=this.__data__;return lt?De[be]!==void 0:Ne.call(De,be)}function Pe(be,De){var Ge=this.__data__;return this.size+=this.has(be)?0:1,Ge[be]=lt&&De===void 0?h:De,this}pe.prototype.clear=me,pe.prototype.delete=Ie,pe.prototype.get=je,pe.prototype.has=Fe,pe.prototype.set=Pe;function Oe(be){var De=-1,Ge=be==null?0:be.length;for(this.clear();++De<Ge;){var it=be[De];this.set(it[0],it[1])}}function $e(){this.__data__=[],this.size=0}function ce(be){var De=this.__data__,Ge=$n(De,be);if(Ge<0)return!1;var it=De.length-1;return Ge==it?De.pop():ct.call(De,Ge,1),--this.size,!0}function Te(be){var De=this.__data__,Ge=$n(De,be);return Ge<0?void 0:De[Ge][1]}function Ee(be){return $n(this.__data__,be)>-1}function Ue(be,De){var Ge=this.__data__,it=$n(Ge,be);return it<0?(++this.size,Ge.push([be,De])):Ge[it][1]=De,this}Oe.prototype.clear=$e,Oe.prototype.delete=ce,Oe.prototype.get=Te,Oe.prototype.has=Ee,Oe.prototype.set=Ue;function Ke(be){var De=-1,Ge=be==null?0:be.length;for(this.clear();++De<Ge;){var it=be[De];this.set(it[0],it[1])}}function at(){this.size=0,this.__data__={hash:new pe,map:new(vt||Oe),string:new pe}}function dt(be){var De=Ji(this,be).delete(be);return this.size-=De?1:0,De}function Nt(be){return Ji(this,be).get(be)}function pr(be){return Ji(this,be).has(be)}function Jt(be,De){var Ge=Ji(this,be),it=Ge.size;return Ge.set(be,De),this.size+=Ge.size==it?0:1,this}Ke.prototype.clear=at,Ke.prototype.delete=dt,Ke.prototype.get=Nt,Ke.prototype.has=pr,Ke.prototype.set=Jt;function jt(be){var De=-1,Ge=be==null?0:be.length;for(this.__data__=new Ke;++De<Ge;)this.add(be[De])}function mr(be){return this.__data__.set(be,h),this}function Ur(be){return this.__data__.has(be)}jt.prototype.add=jt.prototype.push=mr,jt.prototype.has=Ur;function Ot(be){var De=this.__data__=new Oe(be);this.size=De.size}function vn(){this.__data__=new Oe,this.size=0}function xn(be){var De=this.__data__,Ge=De.delete(be);return this.size=De.size,Ge}function bn(be){return this.__data__.get(be)}function yi(be){return this.__data__.has(be)}function _i(be,De){var Ge=this.__data__;if(Ge instanceof Oe){var it=Ge.__data__;if(!vt||it.length<o-1)return it.push([be,De]),this.size=++Ge.size,this;Ge=this.__data__=new Ke(it)}return Ge.set(be,De),this.size=Ge.size,this}Ot.prototype.clear=vn,Ot.prototype.delete=xn,Ot.prototype.get=bn,Ot.prototype.has=yi,Ot.prototype.set=_i;function Eo(be,De){var Ge=Wn(be),it=!Ge&&No(be),Ut=!Ge&&!it&&Rn(be),wt=!Ge&&!it&&!Ut&&va(be),Gt=Ge||it||Ut||wt,Xt=Gt?V(be.length,String):[],nr=Xt.length;for(var Kt in be)(De||Ne.call(be,Kt))&&!(Gt&&(Kt=="length"||Ut&&(Kt=="offset"||Kt=="parent")||wt&&(Kt=="buffer"||Kt=="byteLength"||Kt=="byteOffset")||Mo(Kt,nr)))&&Xt.push(Kt);return Xt}function $n(be,De){for(var Ge=be.length;Ge--;)if(ma(be[Ge][0],De))return Ge;return-1}function To(be,De,Ge){var it=De(be);return Wn(be)?it:Z(it,Ge(be))}function Ei(be){return be==null?be===void 0?H:y:rt&&rt in Object(be)?Fo(be):Do(be)}function la(be){return Si(be)&&Ei(be)==l}function ca(be,De,Ge,it,Ut){return be===De?!0:be==null||De==null||!Si(be)&&!Si(De)?be!==be&&De!==De:ha(be,De,Ge,it,ca,Ut)}function ha(be,De,Ge,it,Ut,wt){var Gt=Wn(be),Xt=Wn(De),nr=Gt?u:An(be),Kt=Xt?u:An(De);nr=nr==l?T:nr,Kt=Kt==l?T:Kt;var Fr=nr==T,Hr=Kt==T,ir=nr==Kt;if(ir&&Rn(be)){if(!Rn(De))return!1;Gt=!0,Fr=!1}if(ir&&!Fr)return wt||(wt=new Ot),Gt||va(be)?ua(be,De,Ge,it,Ut,wt):Co(be,De,nr,Ge,it,Ut,wt);if(!(Ge&c)){var Tr=Fr&&Ne.call(be,"__wrapped__"),Rr=Hr&&Ne.call(De,"__wrapped__");if(Tr||Rr){var On=Tr?be.value():be,wn=Rr?De.value():De;return wt||(wt=new Ot),Ut(On,wn,Ge,it,wt)}}return ir?(wt||(wt=new Ot),Ao(be,De,Ge,it,Ut,wt)):!1}function So(be){if(!Ti(be)||Oo(be))return!1;var De=ga(be)?xe:z;return De.test(Fn(be))}function ko(be){return Si(be)&&ws(be.length)&&!!re[Ei(be)]}function bs(be){if(!Io(be))return et(be);var De=[];for(var Ge in Object(be))Ne.call(be,Ge)&&Ge!="constructor"&&De.push(Ge);return De}function ua(be,De,Ge,it,Ut,wt){var Gt=Ge&c,Xt=be.length,nr=De.length;if(Xt!=nr&&!(Gt&&nr>Xt))return!1;var Kt=wt.get(be);if(Kt&&wt.get(De))return Kt==De;var Fr=-1,Hr=!0,ir=Ge&a?new jt:void 0;for(wt.set(be,De),wt.set(De,be);++Fr<Xt;){var Tr=be[Fr],Rr=De[Fr];if(it)var On=Gt?it(Rr,Tr,Fr,De,be,wt):it(Tr,Rr,Fr,be,De,wt);if(On!==void 0){if(On)continue;Hr=!1;break}if(ir){if(!W(De,function(wn,Xn){if(!ye(ir,Xn)&&(Tr===wn||Ut(Tr,wn,Ge,it,wt)))return ir.push(Xn)})){Hr=!1;break}}else if(!(Tr===Rr||Ut(Tr,Rr,Ge,it,wt))){Hr=!1;break}}return wt.delete(be),wt.delete(De),Hr}function Co(be,De,Ge,it,Ut,wt,Gt){switch(Ge){case R:if(be.byteLength!=De.byteLength||be.byteOffset!=De.byteOffset)return!1;be=be.buffer,De=De.buffer;case L:return!(be.byteLength!=De.byteLength||!wt(new Ve(be),new Ve(De)));case m:case d:case w:return ma(+be,+De);case v:return be.name==De.name&&be.message==De.message;case I:case U:return be==De+"";case b:var Xt=ve;case B:var nr=it&c;if(Xt||(Xt=ee),be.size!=De.size&&!nr)return!1;var Kt=Gt.get(be);if(Kt)return Kt==De;it|=a,Gt.set(be,De);var Fr=ua(Xt(be),Xt(De),it,Ut,wt,Gt);return Gt.delete(be),Fr;case j:if(ue)return ue.call(be)==ue.call(De)}return!1}function Ao(be,De,Ge,it,Ut,wt){var Gt=Ge&c,Xt=da(be),nr=Xt.length,Kt=da(De),Fr=Kt.length;if(nr!=Fr&&!Gt)return!1;for(var Hr=nr;Hr--;){var ir=Xt[Hr];if(!(Gt?ir in De:Ne.call(De,ir)))return!1}var Tr=wt.get(be);if(Tr&&wt.get(De))return Tr==De;var Rr=!0;wt.set(be,De),wt.set(De,be);for(var On=Gt;++Hr<nr;){ir=Xt[Hr];var wn=be[ir],Xn=De[ir];if(it)var wa=Gt?it(Xn,wn,ir,De,be,wt):it(wn,Xn,ir,be,De,wt);if(!(wa===void 0?wn===Xn||Ut(wn,Xn,Ge,it,wt):wa)){Rr=!1;break}On||(On=ir=="constructor")}if(Rr&&!On){var Vn=be.constructor,Qi=De.constructor;Vn!=Qi&&"constructor"in be&&"constructor"in De&&!(typeof Vn=="function"&&Vn instanceof Vn&&typeof Qi=="function"&&Qi instanceof Qi)&&(Rr=!1)}return wt.delete(be),wt.delete(De),Rr}function da(be){return To(be,Bo,Ro)}function Ji(be,De){var Ge=be.__data__;return pa(De)?Ge[typeof De=="string"?"string":"hash"]:Ge.map}function si(be,De){var Ge=X(be,De);return So(Ge)?Ge:void 0}function Fo(be){var De=Ne.call(be,rt),Ge=be[rt];try{be[rt]=void 0;var it=!0}catch{}var Ut=Le.call(be);return it&&(De?be[rt]=Ge:delete be[rt]),Ut}var Ro=nt?function(be){return be==null?[]:(be=Object(be),te(nt(be),function(De){return ot.call(be,De)}))}:xa,An=Ei;(tt&&An(new tt(new ArrayBuffer(1)))!=R||vt&&An(new vt)!=b||ft&&An(ft.resolve())!=C||kt&&An(new kt)!=B||Tt&&An(new Tt)!=G)&&(An=function(be){var De=Ei(be),Ge=De==T?be.constructor:void 0,it=Ge?Fn(Ge):"";if(it)switch(it){case Ct:return R;case Mt:return b;case gt:return C;case ie:return B;case ge:return G}return De});function Mo(be,De){return De=De??f,!!De&&(typeof be=="number"||J.test(be))&&be>-1&&be%1==0&&be<De}function pa(be){var De=typeof be;return De=="string"||De=="number"||De=="symbol"||De=="boolean"?be!=="__proto__":be===null}function Oo(be){return!!Xe&&Xe in be}function Io(be){var De=be&&be.constructor,Ge=typeof De=="function"&&De.prototype||_e;return be===Ge}function Do(be){return Le.call(be)}function Fn(be){if(be!=null){try{return Ae.call(be)}catch{}try{return be+""}catch{}}return""}function ma(be,De){return be===De||be!==be&&De!==De}var No=la(function(){return arguments}())?la:function(be){return Si(be)&&Ne.call(be,"callee")&&!ot.call(be,"callee")},Wn=Array.isArray;function Po(be){return be!=null&&ws(be.length)&&!ga(be)}var Rn=mt||ba;function Mn(be,De){return ca(be,De)}function ga(be){if(!Ti(be))return!1;var De=Ei(be);return De==x||De==g||De==p||De==M}function ws(be){return typeof be=="number"&&be>-1&&be%1==0&&be<=f}function Ti(be){var De=typeof be;return be!=null&&(De=="object"||De=="function")}function Si(be){return be!=null&&typeof be=="object"}var va=ae?fe(ae):ko;function Bo(be){return Po(be)?Eo(be):bs(be)}function xa(){return[]}function ba(){return!1}n.exports=Mn}).call(this)}).call(this,typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(e,n,i){(function(s){(function(){var o="[object AsyncFunction]",h="[object Function]",c="[object GeneratorFunction]",a="[object Null]",f="[object Proxy]",l="[object Undefined]",u=typeof s=="object"&&s&&s.Object===Object&&s,p=typeof self=="object"&&self&&self.Object===Object&&self,m=u||p||Function("return this")(),d=Object.prototype,v=d.hasOwnProperty,x=d.toString,g=m.Symbol,b=g?g.toStringTag:void 0;function w(I){return I==null?I===void 0?l:a:b&&b in Object(I)?y(I):T(I)}function y(I){var B=v.call(I,b),U=I[b];try{I[b]=void 0;var j=!0}catch{}var H=x.call(I);return j&&(B?I[b]=U:delete I[b]),H}function T(I){return x.call(I)}function C(I){if(!M(I))return!1;var B=w(I);return B==h||B==c||B==o||B==f}function M(I){var B=typeof I;return I!=null&&(B=="object"||B=="function")}n.exports=C}).call(this)}).call(this,typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(e,n,i){function s(o){return o==null}n.exports=s},{}],448:[function(e,n,i){function s(o){return o===void 0}n.exports=s},{}],449:[function(e,n,i){(function(s){(function(){var o=200,h="__lodash_hash_undefined__",c=1/0,a="[object Function]",f="[object GeneratorFunction]",l=/[\\^$.*+?()[\]{}|]/g,u=/^\[object .+?Constructor\]$/,p=typeof s=="object"&&s&&s.Object===Object&&s,m=typeof self=="object"&&self&&self.Object===Object&&self,d=p||m||Function("return this")();function v(xe,Me){var Be=xe?xe.length:0;return!!Be&&b(xe,Me,0)>-1}function x(xe,Me,Be){for(var Ve=-1,ot=xe?xe.length:0;++Ve<ot;)if(Be(Me,xe[Ve]))return!0;return!1}function g(xe,Me,Be,Ve){for(var ot=xe.length,ct=Be+(Ve?1:-1);Ve?ct--:++ct<ot;)if(Me(xe[ct],ct,xe))return ct;return-1}function b(xe,Me,Be){if(Me!==Me)return g(xe,w,Be);for(var Ve=Be-1,ot=xe.length;++Ve<ot;)if(xe[Ve]===Me)return Ve;return-1}function w(xe){return xe!==xe}function y(xe,Me){return xe.has(Me)}function T(xe,Me){return xe==null?void 0:xe[Me]}function C(xe){var Me=!1;if(xe!=null&&typeof xe.toString!="function")try{Me=!!(xe+"")}catch{}return Me}function M(xe){var Me=-1,Be=Array(xe.size);return xe.forEach(function(Ve){Be[++Me]=Ve}),Be}var I=Array.prototype,B=Function.prototype,U=Object.prototype,j=d["__core-js_shared__"],H=function(){var xe=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return xe?"Symbol(src)_1."+xe:""}(),G=B.toString,L=U.hasOwnProperty,R=U.toString,F=RegExp("^"+G.call(L).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=I.splice,k=ee(d,"Map"),N=ee(d,"Set"),P=ee(Object,"create");function D(xe){var Me=-1,Be=xe?xe.length:0;for(this.clear();++Me<Be;){var Ve=xe[Me];this.set(Ve[0],Ve[1])}}function A(){this.__data__=P?P(null):{}}function S(xe){return this.has(xe)&&delete this.__data__[xe]}function E(xe){var Me=this.__data__;if(P){var Be=Me[xe];return Be===h?void 0:Be}return L.call(Me,xe)?Me[xe]:void 0}function O(xe){var Me=this.__data__;return P?Me[xe]!==void 0:L.call(Me,xe)}function z(xe,Me){var Be=this.__data__;return Be[xe]=P&&Me===void 0?h:Me,this}D.prototype.clear=A,D.prototype.delete=S,D.prototype.get=E,D.prototype.has=O,D.prototype.set=z;function J(xe){var Me=-1,Be=xe?xe.length:0;for(this.clear();++Me<Be;){var Ve=xe[Me];this.set(Ve[0],Ve[1])}}function re(){this.__data__=[]}function se(xe){var Me=this.__data__,Be=fe(Me,xe);if(Be<0)return!1;var Ve=Me.length-1;return Be==Ve?Me.pop():_.call(Me,Be,1),!0}function Ce(xe){var Me=this.__data__,Be=fe(Me,xe);return Be<0?void 0:Me[Be][1]}function Y(xe){return fe(this.__data__,xe)>-1}function q(xe,Me){var Be=this.__data__,Ve=fe(Be,xe);return Ve<0?Be.push([xe,Me]):Be[Ve][1]=Me,this}J.prototype.clear=re,J.prototype.delete=se,J.prototype.get=Ce,J.prototype.has=Y,J.prototype.set=q;function K(xe){var Me=-1,Be=xe?xe.length:0;for(this.clear();++Me<Be;){var Ve=xe[Me];this.set(Ve[0],Ve[1])}}function Q(){this.__data__={hash:new D,map:new(k||J),string:new D}}function he(xe){return ke(this,xe).delete(xe)}function we(xe){return ke(this,xe).get(xe)}function ae(xe){return ke(this,xe).has(xe)}function te(xe,Me){return ke(this,xe).set(xe,Me),this}K.prototype.clear=Q,K.prototype.delete=he,K.prototype.get=we,K.prototype.has=ae,K.prototype.set=te;function Z(xe){var Me=-1,Be=xe?xe.length:0;for(this.__data__=new K;++Me<Be;)this.add(xe[Me])}function W(xe){return this.__data__.set(xe,h),this}function V(xe){return this.__data__.has(xe)}Z.prototype.add=Z.prototype.push=W,Z.prototype.has=V;function fe(xe,Me){for(var Be=xe.length;Be--;)if(Ae(xe[Be][0],Me))return Be;return-1}function ye(xe){if(!Xe(xe)||de(xe))return!1;var Me=Ne(xe)||C(xe)?F:u;return Me.test(_e(xe))}function X(xe,Me,Be){var Ve=-1,ot=v,ct=xe.length,rt=!0,nt=[],mt=nt;if(Be)rt=!1,ot=x;else if(ct>=o){var et=Me?null:ve(xe);if(et)return M(et);rt=!1,ot=y,mt=new Z}else mt=Me?[]:nt;e:for(;++Ve<ct;){var tt=xe[Ve],vt=Me?Me(tt):tt;if(tt=Be||tt!==0?tt:0,rt&&vt===vt){for(var ft=mt.length;ft--;)if(mt[ft]===vt)continue e;Me&&mt.push(vt),nt.push(tt)}else ot(mt,vt,Be)||(mt!==nt&&mt.push(vt),nt.push(tt))}return nt}var ve=N&&1/M(new N([,-0]))[1]==c?function(xe){return new N(xe)}:Le;function ke(xe,Me){var Be=xe.__data__;return ne(Me)?Be[typeof Me=="string"?"string":"hash"]:Be.map}function ee(xe,Me){var Be=T(xe,Me);return ye(Be)?Be:void 0}function ne(xe){var Me=typeof xe;return Me=="string"||Me=="number"||Me=="symbol"||Me=="boolean"?xe!=="__proto__":xe===null}function de(xe){return!!H&&H in xe}function _e(xe){if(xe!=null){try{return G.call(xe)}catch{}try{return xe+""}catch{}}return""}function Re(xe){return xe&&xe.length?X(xe):[]}function Ae(xe,Me){return xe===Me||xe!==xe&&Me!==Me}function Ne(xe){var Me=Xe(xe)?R.call(xe):"";return Me==a||Me==f}function Xe(xe){var Me=typeof xe;return!!xe&&(Me=="object"||Me=="function")}function Le(){}n.exports=Re}).call(this)}).call(this,typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(e,n,i){var s=e("inherits"),o=e("hash-base"),h=e("safe-buffer").Buffer,c=new Array(16);function a(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}s(a,o),a.prototype._update=function(){for(var d=c,v=0;v<16;++v)d[v]=this._block.readInt32LE(v*4);var x=this._a,g=this._b,b=this._c,w=this._d;x=l(x,g,b,w,d[0],3614090360,7),w=l(w,x,g,b,d[1],3905402710,12),b=l(b,w,x,g,d[2],606105819,17),g=l(g,b,w,x,d[3],3250441966,22),x=l(x,g,b,w,d[4],4118548399,7),w=l(w,x,g,b,d[5],1200080426,12),b=l(b,w,x,g,d[6],2821735955,17),g=l(g,b,w,x,d[7],4249261313,22),x=l(x,g,b,w,d[8],1770035416,7),w=l(w,x,g,b,d[9],2336552879,12),b=l(b,w,x,g,d[10],4294925233,17),g=l(g,b,w,x,d[11],2304563134,22),x=l(x,g,b,w,d[12],1804603682,7),w=l(w,x,g,b,d[13],4254626195,12),b=l(b,w,x,g,d[14],2792965006,17),g=l(g,b,w,x,d[15],1236535329,22),x=u(x,g,b,w,d[1],4129170786,5),w=u(w,x,g,b,d[6],3225465664,9),b=u(b,w,x,g,d[11],643717713,14),g=u(g,b,w,x,d[0],3921069994,20),x=u(x,g,b,w,d[5],3593408605,5),w=u(w,x,g,b,d[10],38016083,9),b=u(b,w,x,g,d[15],3634488961,14),g=u(g,b,w,x,d[4],3889429448,20),x=u(x,g,b,w,d[9],568446438,5),w=u(w,x,g,b,d[14],3275163606,9),b=u(b,w,x,g,d[3],4107603335,14),g=u(g,b,w,x,d[8],1163531501,20),x=u(x,g,b,w,d[13],2850285829,5),w=u(w,x,g,b,d[2],4243563512,9),b=u(b,w,x,g,d[7],1735328473,14),g=u(g,b,w,x,d[12],2368359562,20),x=p(x,g,b,w,d[5],4294588738,4),w=p(w,x,g,b,d[8],2272392833,11),b=p(b,w,x,g,d[11],1839030562,16),g=p(g,b,w,x,d[14],4259657740,23),x=p(x,g,b,w,d[1],2763975236,4),w=p(w,x,g,b,d[4],1272893353,11),b=p(b,w,x,g,d[7],4139469664,16),g=p(g,b,w,x,d[10],3200236656,23),x=p(x,g,b,w,d[13],681279174,4),w=p(w,x,g,b,d[0],3936430074,11),b=p(b,w,x,g,d[3],3572445317,16),g=p(g,b,w,x,d[6],76029189,23),x=p(x,g,b,w,d[9],3654602809,4),w=p(w,x,g,b,d[12],3873151461,11),b=p(b,w,x,g,d[15],530742520,16),g=p(g,b,w,x,d[2],3299628645,23),x=m(x,g,b,w,d[0],4096336452,6),w=m(w,x,g,b,d[7],1126891415,10),b=m(b,w,x,g,d[14],2878612391,15),g=m(g,b,w,x,d[5],4237533241,21),x=m(x,g,b,w,d[12],1700485571,6),w=m(w,x,g,b,d[3],2399980690,10),b=m(b,w,x,g,d[10],4293915773,15),g=m(g,b,w,x,d[1],2240044497,21),x=m(x,g,b,w,d[8],1873313359,6),w=m(w,x,g,b,d[15],4264355552,10),b=m(b,w,x,g,d[6],2734768916,15),g=m(g,b,w,x,d[13],1309151649,21),x=m(x,g,b,w,d[4],4149444226,6),w=m(w,x,g,b,d[11],3174756917,10),b=m(b,w,x,g,d[2],718787259,15),g=m(g,b,w,x,d[9],3951481745,21),this._a=this._a+x|0,this._b=this._b+g|0,this._c=this._c+b|0,this._d=this._d+w|0},a.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 d=h.allocUnsafe(16);return d.writeInt32LE(this._a,0),d.writeInt32LE(this._b,4),d.writeInt32LE(this._c,8),d.writeInt32LE(this._d,12),d};function f(d,v){return d<<v|d>>>32-v}function l(d,v,x,g,b,w,y){return f(d+(v&x|~v&g)+b+w|0,y)+v|0}function u(d,v,x,g,b,w,y){return f(d+(v&g|x&~g)+b+w|0,y)+v|0}function p(d,v,x,g,b,w,y){return f(d+(v^x^g)+b+w|0,y)+v|0}function m(d,v,x,g,b,w,y){return f(d+(x^(v|~g))+b+w|0,y)+v|0}n.exports=a},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,n,i){var s=e("bn.js"),o=e("brorand");function h(c){this.rand=c||new o.Rand}n.exports=h,h.create=function(a){return new h(a)},h.prototype._randbelow=function(a){var f=a.bitLength(),l=Math.ceil(f/8);do var u=new s(this.rand.generate(l));while(u.cmp(a)>=0);return u},h.prototype._randrange=function(a,f){var l=f.sub(a);return a.add(this._randbelow(l))},h.prototype.test=function(a,f,l){var u=a.bitLength(),p=s.mont(a),m=new s(1).toRed(p);f||(f=Math.max(1,u/48|0));for(var d=a.subn(1),v=0;!d.testn(v);v++);for(var x=a.shrn(v),g=d.toRed(p),b=!0;f>0;f--){var w=this._randrange(new s(2),d);l&&l(w);var y=w.toRed(p).redPow(x);if(!(y.cmp(m)===0||y.cmp(g)===0)){for(var T=1;T<v;T++){if(y=y.redSqr(),y.cmp(m)===0)return!1;if(y.cmp(g)===0)break}if(T===v)return!1}}return b},h.prototype.getDivisor=function(a,f){var l=a.bitLength(),u=s.mont(a),p=new s(1).toRed(u);f||(f=Math.max(1,l/48|0));for(var m=a.subn(1),d=0;!m.testn(d);d++);for(var v=a.shrn(d),x=m.toRed(u);f>0;f--){var g=this._randrange(new s(2),m),b=a.gcd(g);if(b.cmpn(1)!==0)return b;var w=g.toRed(u).redPow(v);if(!(w.cmp(p)===0||w.cmp(x)===0)){for(var y=1;y<d;y++){if(w=w.redSqr(),w.cmp(p)===0)return w.fromRed().subn(1).gcd(a);if(w.cmp(x)===0)break}if(y===d)return w=w.redSqr(),w.fromRed().subn(1).gcd(a)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,n,i){arguments[4][184][0].apply(i,arguments)},{buffer:188,dup:184}],453:[function(e,n,i){n.exports=s;function s(o,h){if(!o)throw new Error(h||"Assertion failed")}s.equal=function(h,c,a){if(h!=c)throw new Error(a||"Assertion failed: "+h+" != "+c)}},{}],454:[function(e,n,i){var s=i;function o(a,f){if(Array.isArray(a))return a.slice();if(!a)return[];var l=[];if(typeof a!="string"){for(var u=0;u<a.length;u++)l[u]=a[u]|0;return l}if(f==="hex"){a=a.replace(/[^a-z0-9]+/ig,""),a.length%2!==0&&(a="0"+a);for(var u=0;u<a.length;u+=2)l.push(parseInt(a[u]+a[u+1],16))}else for(var u=0;u<a.length;u++){var p=a.charCodeAt(u),m=p>>8,d=p&255;m?l.push(m,d):l.push(d)}return l}s.toArray=o;function h(a){return a.length===1?"0"+a:a}s.zero2=h;function c(a){for(var f="",l=0;l<a.length;l++)f+=h(a[l].toString(16));return f}s.toHex=c,s.encode=function(f,l){return l==="hex"?c(f):f}},{}],455:[function(e,n,i){n.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(e,n,i){var s=e("asn1.js");i.certificate=e("./certificate");var o=s.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())});i.RSAPrivateKey=o;var h=s.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});i.RSAPublicKey=h;var c=s.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});i.PublicKey=c;var a=s.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())}),f=s.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});i.PrivateKey=f;var l=s.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())});i.EncryptedPrivateKey=l;var u=s.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())});i.DSAPrivateKey=u,i.DSAparam=s.define("DSAparam",function(){this.int()});var p=s.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(m),this.key("publicKey").optional().explicit(1).bitstr())});i.ECPrivateKey=p;var m=s.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});i.signature=s.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(e,n,i){var s=e("asn1.js"),o=s.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),h=s.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),c=s.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=s.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(c),this.key("subjectPublicKey").bitstr())}),f=s.define("RelativeDistinguishedName",function(){this.setof(h)}),l=s.define("RDNSequence",function(){this.seqof(f)}),u=s.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),p=s.define("Validity",function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))}),m=s.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=s.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(c),this.key("issuer").use(u),this.key("validity").use(p),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(m).optional())}),v=s.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(c),this.key("signatureValue").bitstr())});n.exports=v},{"asn1.js":170}],458:[function(e,n,i){var s=/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,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,h=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,c=e("evp_bytestokey"),a=e("browserify-aes"),f=e("safe-buffer").Buffer;n.exports=function(l,u){var p=l.toString(),m=p.match(s),d;if(m){var x="aes"+m[1],g=f.from(m[2],"hex"),b=f.from(m[3].replace(/[\r\n]/g,""),"base64"),w=c(u,g.slice(0,8),parseInt(m[1],10)).key,y=[],T=a.createDecipheriv(x,w,g);y.push(T.update(b)),y.push(T.final()),d=f.concat(y)}else{var v=p.match(h);d=f.from(v[2].replace(/[\r\n]/g,""),"base64")}var C=p.match(o)[1];return{tag:C,data:d}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,n,i){var s=e("./asn1"),o=e("./aesid.json"),h=e("./fixProc"),c=e("browserify-aes"),a=e("pbkdf2"),f=e("safe-buffer").Buffer;n.exports=l;function l(p){var m;typeof p=="object"&&!f.isBuffer(p)&&(m=p.passphrase,p=p.key),typeof p=="string"&&(p=f.from(p));var d=h(p,m),v=d.tag,x=d.data,g,b;switch(v){case"CERTIFICATE":b=s.certificate.decode(x,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(b||(b=s.PublicKey.decode(x,"der")),g=b.algorithm.algorithm.join("."),g){case"1.2.840.113549.1.1.1":return s.RSAPublicKey.decode(b.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return b.subjectPrivateKey=b.subjectPublicKey,{type:"ec",data:b};case"1.2.840.10040.4.1":return b.algorithm.params.pub_key=s.DSAparam.decode(b.subjectPublicKey.data,"der"),{type:"dsa",data:b.algorithm.params};default:throw new Error("unknown key id "+g)}case"ENCRYPTED PRIVATE KEY":x=s.EncryptedPrivateKey.decode(x,"der"),x=u(x,m);case"PRIVATE KEY":switch(b=s.PrivateKey.decode(x,"der"),g=b.algorithm.algorithm.join("."),g){case"1.2.840.113549.1.1.1":return s.RSAPrivateKey.decode(b.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:b.algorithm.curve,privateKey:s.ECPrivateKey.decode(b.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return b.algorithm.params.priv_key=s.DSAparam.decode(b.subjectPrivateKey,"der"),{type:"dsa",params:b.algorithm.params};default:throw new Error("unknown key id "+g)}case"RSA PUBLIC KEY":return s.RSAPublicKey.decode(x,"der");case"RSA PRIVATE KEY":return s.RSAPrivateKey.decode(x,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:s.DSAPrivateKey.decode(x,"der")};case"EC PRIVATE KEY":return x=s.ECPrivateKey.decode(x,"der"),{curve:x.parameters.value,privateKey:x.privateKey};default:throw new Error("unknown key type "+v)}}l.signature=s.signature;function u(p,m){var d=p.algorithm.decrypt.kde.kdeparams.salt,v=parseInt(p.algorithm.decrypt.kde.kdeparams.iters.toString(),10),x=o[p.algorithm.decrypt.cipher.algo.join(".")],g=p.algorithm.decrypt.cipher.iv,b=p.subjectPrivateKey,w=parseInt(x.split("-")[1],10)/8,y=a.pbkdf2Sync(m,d,v,w,"sha1"),T=c.createDecipheriv(x,y,g),C=[];return C.push(T.update(b)),C.push(T.final()),f.concat(C)}},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,n,i){i.pbkdf2=e("./lib/async"),i.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,n,i){(function(s){(function(){var o=e("safe-buffer").Buffer,h=e("./precondition"),c=e("./default-encoding"),a=e("./sync"),f=e("./to-buffer"),l,u=s.crypto&&s.crypto.subtle,p={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"},m=[];function d(w){if(s.process&&!s.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(m[w]!==void 0)return m[w];l=l||o.alloc(8);var y=g(l,l,10,128,w).then(function(){return!0}).catch(function(){return!1});return m[w]=y,y}var v;function x(){return v||(s.process&&s.process.nextTick?v=s.process.nextTick:s.queueMicrotask?v=s.queueMicrotask:s.setImmediate?v=s.setImmediate:v=s.setTimeout,v)}function g(w,y,T,C,M){return u.importKey("raw",w,{name:"PBKDF2"},!1,["deriveBits"]).then(function(I){return u.deriveBits({name:"PBKDF2",salt:y,iterations:T,hash:{name:M}},I,C<<3)}).then(function(I){return o.from(I)})}function b(w,y){w.then(function(T){x()(function(){y(null,T)})},function(T){x()(function(){y(T)})})}n.exports=function(w,y,T,C,M,I){typeof M=="function"&&(I=M,M=void 0),M=M||"sha1";var B=p[M.toLowerCase()];if(!B||typeof s.Promise!="function"){x()(function(){var U;try{U=a(w,y,T,C,M)}catch(j){return I(j)}I(null,U)});return}if(h(T,C),w=f(w,c,"Password"),y=f(y,c,"Salt"),typeof I!="function")throw new Error("No callback provided to pbkdf2");b(d(B).then(function(U){return U?g(w,y,T,C,B):a(w,y,T,C,M)}),I)}}).call(this)}).call(this,typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,n,i){(function(s,o){(function(){var h;if(o.process&&o.process.browser)h="utf-8";else if(o.process&&o.process.version){var c=parseInt(s.version.split(".")[0].slice(1),10);h=c>=6?"utf-8":"binary"}else h="utf-8";n.exports=h}).call(this)}).call(this,e("_process"),typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(e,n,i){var s=Math.pow(2,30)-1;n.exports=function(o,h){if(typeof o!="number")throw new TypeError("Iterations not a number");if(o<0)throw new TypeError("Bad iterations");if(typeof h!="number")throw new TypeError("Key length not a number");if(h<0||h>s||h!==h)throw new TypeError("Bad key length")}},{}],464:[function(e,n,i){var s=e("create-hash/md5"),o=e("ripemd160"),h=e("sha.js"),c=e("safe-buffer").Buffer,a=e("./precondition"),f=e("./default-encoding"),l=e("./to-buffer"),u=c.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function m(x,g,b){var w=d(x),y=x==="sha512"||x==="sha384"?128:64;g.length>y?g=w(g):g.length<y&&(g=c.concat([g,u],y));for(var T=c.allocUnsafe(y+p[x]),C=c.allocUnsafe(y+p[x]),M=0;M<y;M++)T[M]=g[M]^54,C[M]=g[M]^92;var I=c.allocUnsafe(y+b+4);T.copy(I,0,0,y),this.ipad1=I,this.ipad2=T,this.opad=C,this.alg=x,this.blocksize=y,this.hash=w,this.size=p[x]}m.prototype.run=function(x,g){x.copy(g,this.blocksize);var b=this.hash(g);return b.copy(this.opad,this.blocksize),this.hash(this.opad)};function d(x){function g(w){return h(x).update(w).digest()}function b(w){return new o().update(w).digest()}return x==="rmd160"||x==="ripemd160"?b:x==="md5"?s:g}function v(x,g,b,w,y){a(b,w),x=l(x,f,"Password"),g=l(g,f,"Salt"),y=y||"sha1";var T=new m(y,x,g.length),C=c.allocUnsafe(w),M=c.allocUnsafe(g.length+4);g.copy(M,0,0,g.length);for(var I=0,B=p[y],U=Math.ceil(w/B),j=1;j<=U;j++){M.writeUInt32BE(j,g.length);for(var H=T.run(M,T.ipad1),G=H,L=1;L<b;L++){G=T.run(G,T.ipad2);for(var R=0;R<B;R++)H[R]^=G[R]}H.copy(C,I),I+=B}return C}n.exports=v},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,n,i){var s=e("safe-buffer").Buffer;n.exports=function(o,h,c){if(s.isBuffer(o))return o;if(typeof o=="string")return s.from(o,h);if(ArrayBuffer.isView(o))return s.from(o.buffer);throw new TypeError(c+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,n,i){(function(s){(function(){typeof s>"u"||!s.version||s.version.indexOf("v0.")===0||s.version.indexOf("v1.")===0&&s.version.indexOf("v1.8.")!==0?n.exports={nextTick:o}:n.exports=s;function o(h,c,a,f){if(typeof h!="function")throw new TypeError('"callback" argument must be a function');var l=arguments.length,u,p;switch(l){case 0:case 1:return s.nextTick(h);case 2:return s.nextTick(function(){h.call(null,c)});case 3:return s.nextTick(function(){h.call(null,c,a)});case 4:return s.nextTick(function(){h.call(null,c,a,f)});default:for(u=new Array(l-1),p=0;p<u.length;)u[p++]=arguments[p];return s.nextTick(function(){h.apply(null,u)})}}}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,n,i){var s=n.exports={},o,h;function c(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?o=setTimeout:o=c}catch{o=c}try{typeof clearTimeout=="function"?h=clearTimeout:h=a}catch{h=a}})();function f(w){if(o===setTimeout)return setTimeout(w,0);if((o===c||!o)&&setTimeout)return o=setTimeout,setTimeout(w,0);try{return o(w,0)}catch{try{return o.call(null,w,0)}catch{return o.call(this,w,0)}}}function l(w){if(h===clearTimeout)return clearTimeout(w);if((h===a||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(w);try{return h(w)}catch{try{return h.call(null,w)}catch{return h.call(this,w)}}}var u=[],p=!1,m,d=-1;function v(){!p||!m||(p=!1,m.length?u=m.concat(u):d=-1,u.length&&x())}function x(){if(!p){var w=f(v);p=!0;for(var y=u.length;y;){for(m=u,u=[];++d<y;)m&&m[d].run();d=-1,y=u.length}m=null,p=!1,l(w)}}s.nextTick=function(w){var y=new Array(arguments.length-1);if(arguments.length>1)for(var T=1;T<arguments.length;T++)y[T-1]=arguments[T];u.push(new g(w,y)),u.length===1&&!p&&f(x)};function g(w,y){this.fun=w,this.array=y}g.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={};function b(){}s.on=b,s.addListener=b,s.once=b,s.off=b,s.removeListener=b,s.removeAllListeners=b,s.emit=b,s.prependListener=b,s.prependOnceListener=b,s.listeners=function(w){return[]},s.binding=function(w){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(w){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],468:[function(e,n,i){i.publicEncrypt=e("./publicEncrypt"),i.privateDecrypt=e("./privateDecrypt"),i.privateEncrypt=function(o,h){return i.publicEncrypt(o,h,!0)},i.publicDecrypt=function(o,h){return i.privateDecrypt(o,h,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,n,i){var s=e("create-hash"),o=e("safe-buffer").Buffer;n.exports=function(c,a){for(var f=o.alloc(0),l=0,u;f.length<a;)u=h(l++),f=o.concat([f,s("sha1").update(c).update(u).digest()]);return f.slice(0,a)};function h(c){var a=o.allocUnsafe(4);return a.writeUInt32BE(c,0),a}},{"create-hash":386,"safe-buffer":494}],470:[function(e,n,i){arguments[4][184][0].apply(i,arguments)},{buffer:188,dup:184}],471:[function(e,n,i){var s=e("parse-asn1"),o=e("./mgf"),h=e("./xor"),c=e("bn.js"),a=e("browserify-rsa"),f=e("create-hash"),l=e("./withPublic"),u=e("safe-buffer").Buffer;n.exports=function(x,g,b){var w;x.padding?w=x.padding:b?w=1:w=4;var y=s(x),T=y.modulus.byteLength();if(g.length>T||new c(g).cmp(y.modulus)>=0)throw new Error("decryption error");var C;b?C=l(new c(g),y):C=a(g,y);var M=u.alloc(T-C.length);if(C=u.concat([M,C],T),w===4)return p(y,C);if(w===1)return m(y,C,b);if(w===3)return C;throw new Error("unknown padding")};function p(v,x){var g=v.modulus.byteLength(),b=f("sha1").update(u.alloc(0)).digest(),w=b.length;if(x[0]!==0)throw new Error("decryption error");var y=x.slice(1,w+1),T=x.slice(w+1),C=h(y,o(T,w)),M=h(T,o(C,g-w-1));if(d(b,M.slice(0,w)))throw new Error("decryption error");for(var I=w;M[I]===0;)I++;if(M[I++]!==1)throw new Error("decryption error");return M.slice(I)}function m(v,x,g){for(var b=x.slice(0,2),w=2,y=0;x[w++]!==0;)if(w>=x.length){y++;break}var T=x.slice(2,w-1);if((b.toString("hex")!=="0002"&&!g||b.toString("hex")!=="0001"&&g)&&y++,T.length<8&&y++,y)throw new Error("decryption error");return x.slice(w)}function d(v,x){v=u.from(v),x=u.from(x);var g=0,b=v.length;v.length!==x.length&&(g++,b=Math.min(v.length,x.length));for(var w=-1;++w<b;)g+=v[w]^x[w];return g}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,n,i){var s=e("parse-asn1"),o=e("randombytes"),h=e("create-hash"),c=e("./mgf"),a=e("./xor"),f=e("bn.js"),l=e("./withPublic"),u=e("browserify-rsa"),p=e("safe-buffer").Buffer;n.exports=function(g,b,w){var y;g.padding?y=g.padding:w?y=1:y=4;var T=s(g),C;if(y===4)C=m(T,b);else if(y===1)C=d(T,b,w);else if(y===3){if(C=new f(b),C.cmp(T.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return w?u(C,T):l(C,T)};function m(x,g){var b=x.modulus.byteLength(),w=g.length,y=h("sha1").update(p.alloc(0)).digest(),T=y.length,C=2*T;if(w>b-C-2)throw new Error("message too long");var M=p.alloc(b-w-C-2),I=b-T-1,B=o(T),U=a(p.concat([y,M,p.alloc(1,1),g],I),c(B,I)),j=a(B,c(U,T));return new f(p.concat([p.alloc(1),j,U],b))}function d(x,g,b){var w=g.length,y=x.modulus.byteLength();if(w>y-11)throw new Error("message too long");var T;return b?T=p.alloc(y-w-3,255):T=v(y-w-3),new f(p.concat([p.from([0,b?1:2]),T,p.alloc(1),g],y))}function v(x){for(var g=p.allocUnsafe(x),b=0,w=o(x*2),y=0,T;b<x;)y===w.length&&(w=o(x*2),y=0),T=w[y++],T&&(g[b++]=T);return g}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,n,i){var s=e("bn.js"),o=e("safe-buffer").Buffer;function h(c,a){return o.from(c.toRed(s.mont(a.modulus)).redPow(new s(a.publicExponent)).fromRed().toArray())}n.exports=h},{"bn.js":470,"safe-buffer":494}],474:[function(e,n,i){n.exports=function(o,h){for(var c=o.length,a=-1;++a<c;)o[a]^=h[a];return o}},{}],475:[function(e,n,i){(function(s,o){(function(){var h=65536,c=4294967295;function a(){throw new Error(`Secure random number generation is not supported by this browser.
|
||
Use Chrome, Firefox or Internet Explorer 11`)}var f=e("safe-buffer").Buffer,l=o.crypto||o.msCrypto;l&&l.getRandomValues?n.exports=u:n.exports=a;function u(p,m){if(p>c)throw new RangeError("requested too many random bytes");var d=f.allocUnsafe(p);if(p>0)if(p>h)for(var v=0;v<p;v+=h)l.getRandomValues(d.slice(v,v+h));else l.getRandomValues(d);return typeof m=="function"?s.nextTick(function(){m(null,d)}):d}}).call(this)}).call(this,e("_process"),typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,n,i){(function(s,o){(function(){function h(){throw new Error(`secure random number generation not supported by this browser
|
||
use chrome, FireFox or Internet Explorer 11`)}var c=e("safe-buffer"),a=e("randombytes"),f=c.Buffer,l=c.kMaxLength,u=o.crypto||o.msCrypto,p=Math.pow(2,32)-1;function m(b,w){if(typeof b!="number"||b!==b)throw new TypeError("offset must be a number");if(b>p||b<0)throw new TypeError("offset must be a uint32");if(b>l||b>w)throw new RangeError("offset out of range")}function d(b,w,y){if(typeof b!="number"||b!==b)throw new TypeError("size must be a number");if(b>p||b<0)throw new TypeError("size must be a uint32");if(b+w>y||b>l)throw new RangeError("buffer too small")}u&&u.getRandomValues||!s.browser?(i.randomFill=v,i.randomFillSync=g):(i.randomFill=h,i.randomFillSync=h);function v(b,w,y,T){if(!f.isBuffer(b)&&!(b instanceof o.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof w=="function")T=w,w=0,y=b.length;else if(typeof y=="function")T=y,y=b.length-w;else if(typeof T!="function")throw new TypeError('"cb" argument must be a function');return m(w,b.length),d(y,w,b.length),x(b,w,y,T)}function x(b,w,y,T){if(s.browser){var C=b.buffer,M=new Uint8Array(C,w,y);if(u.getRandomValues(M),T){s.nextTick(function(){T(null,b)});return}return b}if(T){a(y,function(B,U){if(B)return T(B);U.copy(b,w),T(null,b)});return}var I=a(y);return I.copy(b,w),b}function g(b,w,y){if(typeof w>"u"&&(w=0),!f.isBuffer(b)&&!(b instanceof o.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return m(w,b.length),y===void 0&&(y=b.length-w),d(y,w,b.length),x(b,w,y)}}).call(this)}).call(this,e("_process"),typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,n,i){function s(u,p){u.prototype=Object.create(p.prototype),u.prototype.constructor=u,u.__proto__=p}var o={};function h(u,p,m){m||(m=Error);function d(x,g,b){return typeof p=="string"?p:p(x,g,b)}var v=function(x){s(g,x);function g(b,w,y){return x.call(this,d(b,w,y))||this}return g}(m);v.prototype.name=m.name,v.prototype.code=u,o[u]=v}function c(u,p){if(Array.isArray(u)){var m=u.length;return u=u.map(function(d){return String(d)}),m>2?"one of ".concat(p," ").concat(u.slice(0,m-1).join(", "),", or ")+u[m-1]:m===2?"one of ".concat(p," ").concat(u[0]," or ").concat(u[1]):"of ".concat(p," ").concat(u[0])}else return"of ".concat(p," ").concat(String(u))}function a(u,p,m){return u.substr(!m||m<0?0:+m,p.length)===p}function f(u,p,m){return(m===void 0||m>u.length)&&(m=u.length),u.substring(m-p.length,m)===p}function l(u,p,m){return typeof m!="number"&&(m=0),m+p.length>u.length?!1:u.indexOf(p,m)!==-1}h("ERR_INVALID_OPT_VALUE",function(u,p){return'The value "'+p+'" is invalid for option "'+u+'"'},TypeError),h("ERR_INVALID_ARG_TYPE",function(u,p,m){var d;typeof p=="string"&&a(p,"not ")?(d="must not be",p=p.replace(/^not /,"")):d="must be";var v;if(f(u," argument"))v="The ".concat(u," ").concat(d," ").concat(c(p,"type"));else{var x=l(u,".")?"property":"argument";v='The "'.concat(u,'" ').concat(x," ").concat(d," ").concat(c(p,"type"))}return v+=". Received type ".concat(typeof m),v},TypeError),h("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),h("ERR_METHOD_NOT_IMPLEMENTED",function(u){return"The "+u+" method is not implemented"}),h("ERR_STREAM_PREMATURE_CLOSE","Premature close"),h("ERR_STREAM_DESTROYED",function(u){return"Cannot call "+u+" after a stream was destroyed"}),h("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),h("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),h("ERR_STREAM_WRITE_AFTER_END","write after end"),h("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),h("ERR_UNKNOWN_ENCODING",function(u){return"Unknown encoding: "+u},TypeError),h("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),n.exports.codes=o},{}],478:[function(e,n,i){(function(s){(function(){var o=Object.keys||function(d){var v=[];for(var x in d)v.push(x);return v};n.exports=u;var h=e("./_stream_readable"),c=e("./_stream_writable");e("inherits")(u,h);for(var a=o(c.prototype),f=0;f<a.length;f++){var l=a[f];u.prototype[l]||(u.prototype[l]=c.prototype[l])}function u(d){if(!(this instanceof u))return new u(d);h.call(this,d),c.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",p)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function p(){this._writableState.ended||s.nextTick(m,this)}function m(d){d.end()}Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1: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)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,n,i){n.exports=o;var s=e("./_stream_transform");e("inherits")(o,s);function o(h){if(!(this instanceof o))return new o(h);s.call(this,h)}o.prototype._transform=function(h,c,a){a(null,h)}},{"./_stream_transform":481,inherits:440}],480:[function(e,n,i){(function(s,o){(function(){n.exports=R;var h;R.ReadableState=L,e("events").EventEmitter;var c=function(te,Z){return te.listeners(Z).length},a=e("./internal/streams/stream"),f=e("buffer").Buffer,l=(typeof o<"u"?o:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(ae){return f.from(ae)}function p(ae){return f.isBuffer(ae)||ae instanceof l}var m=e("util"),d;m&&m.debuglog?d=m.debuglog("stream"):d=function(){};var v=e("./internal/streams/buffer_list"),x=e("./internal/streams/destroy"),g=e("./internal/streams/state"),b=g.getHighWaterMark,w=e("../errors").codes,y=w.ERR_INVALID_ARG_TYPE,T=w.ERR_STREAM_PUSH_AFTER_EOF,C=w.ERR_METHOD_NOT_IMPLEMENTED,M=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,I,B,U;e("inherits")(R,a);var j=x.errorOrDestroy,H=["error","close","destroy","pause","resume"];function G(ae,te,Z){if(typeof ae.prependListener=="function")return ae.prependListener(te,Z);!ae._events||!ae._events[te]?ae.on(te,Z):Array.isArray(ae._events[te])?ae._events[te].unshift(Z):ae._events[te]=[Z,ae._events[te]]}function L(ae,te,Z){h=h||e("./_stream_duplex"),ae=ae||{},typeof Z!="boolean"&&(Z=te instanceof h),this.objectMode=!!ae.objectMode,Z&&(this.objectMode=this.objectMode||!!ae.readableObjectMode),this.highWaterMark=b(this,ae,"readableHighWaterMark",Z),this.buffer=new v,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=ae.emitClose!==!1,this.autoDestroy=!!ae.autoDestroy,this.destroyed=!1,this.defaultEncoding=ae.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ae.encoding&&(I||(I=e("string_decoder/").StringDecoder),this.decoder=new I(ae.encoding),this.encoding=ae.encoding)}function R(ae){if(h=h||e("./_stream_duplex"),!(this instanceof R))return new R(ae);var te=this instanceof h;this._readableState=new L(ae,this,te),this.readable=!0,ae&&(typeof ae.read=="function"&&(this._read=ae.read),typeof ae.destroy=="function"&&(this._destroy=ae.destroy)),a.call(this)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){this._readableState&&(this._readableState.destroyed=te)}}),R.prototype.destroy=x.destroy,R.prototype._undestroy=x.undestroy,R.prototype._destroy=function(ae,te){te(ae)},R.prototype.push=function(ae,te){var Z=this._readableState,W;return Z.objectMode?W=!0:typeof ae=="string"&&(te=te||Z.defaultEncoding,te!==Z.encoding&&(ae=f.from(ae,te),te=""),W=!0),F(this,ae,te,!1,W)},R.prototype.unshift=function(ae){return F(this,ae,null,!0,!1)};function F(ae,te,Z,W,V){d("readableAddChunk",te);var fe=ae._readableState;if(te===null)fe.reading=!1,A(ae,fe);else{var ye;if(V||(ye=k(fe,te)),ye)j(ae,ye);else if(fe.objectMode||te&&te.length>0)if(typeof te!="string"&&!fe.objectMode&&Object.getPrototypeOf(te)!==f.prototype&&(te=u(te)),W)fe.endEmitted?j(ae,new M):_(ae,fe,te,!0);else if(fe.ended)j(ae,new T);else{if(fe.destroyed)return!1;fe.reading=!1,fe.decoder&&!Z?(te=fe.decoder.write(te),fe.objectMode||te.length!==0?_(ae,fe,te,!1):O(ae,fe)):_(ae,fe,te,!1)}else W||(fe.reading=!1,O(ae,fe))}return!fe.ended&&(fe.length<fe.highWaterMark||fe.length===0)}function _(ae,te,Z,W){te.flowing&&te.length===0&&!te.sync?(te.awaitDrain=0,ae.emit("data",Z)):(te.length+=te.objectMode?1:Z.length,W?te.buffer.unshift(Z):te.buffer.push(Z),te.needReadable&&S(ae)),O(ae,te)}function k(ae,te){var Z;return!p(te)&&typeof te!="string"&&te!==void 0&&!ae.objectMode&&(Z=new y("chunk",["string","Buffer","Uint8Array"],te)),Z}R.prototype.isPaused=function(){return this._readableState.flowing===!1},R.prototype.setEncoding=function(ae){I||(I=e("string_decoder/").StringDecoder);var te=new I(ae);this._readableState.decoder=te,this._readableState.encoding=this._readableState.decoder.encoding;for(var Z=this._readableState.buffer.head,W="";Z!==null;)W+=te.write(Z.data),Z=Z.next;return this._readableState.buffer.clear(),W!==""&&this._readableState.buffer.push(W),this._readableState.length=W.length,this};var N=1073741824;function P(ae){return ae>=N?ae=N:(ae--,ae|=ae>>>1,ae|=ae>>>2,ae|=ae>>>4,ae|=ae>>>8,ae|=ae>>>16,ae++),ae}function D(ae,te){return ae<=0||te.length===0&&te.ended?0:te.objectMode?1:ae!==ae?te.flowing&&te.length?te.buffer.head.data.length:te.length:(ae>te.highWaterMark&&(te.highWaterMark=P(ae)),ae<=te.length?ae:te.ended?te.length:(te.needReadable=!0,0))}R.prototype.read=function(ae){d("read",ae),ae=parseInt(ae,10);var te=this._readableState,Z=ae;if(ae!==0&&(te.emittedReadable=!1),ae===0&&te.needReadable&&((te.highWaterMark!==0?te.length>=te.highWaterMark:te.length>0)||te.ended))return d("read: emitReadable",te.length,te.ended),te.length===0&&te.ended?Q(this):S(this),null;if(ae=D(ae,te),ae===0&&te.ended)return te.length===0&&Q(this),null;var W=te.needReadable;d("need readable",W),(te.length===0||te.length-ae<te.highWaterMark)&&(W=!0,d("length less than watermark",W)),te.ended||te.reading?(W=!1,d("reading or ended",W)):W&&(d("do read"),te.reading=!0,te.sync=!0,te.length===0&&(te.needReadable=!0),this._read(te.highWaterMark),te.sync=!1,te.reading||(ae=D(Z,te)));var V;return ae>0?V=K(ae,te):V=null,V===null?(te.needReadable=te.length<=te.highWaterMark,ae=0):(te.length-=ae,te.awaitDrain=0),te.length===0&&(te.ended||(te.needReadable=!0),Z!==ae&&te.ended&&Q(this)),V!==null&&this.emit("data",V),V};function A(ae,te){if(d("onEofChunk"),!te.ended){if(te.decoder){var Z=te.decoder.end();Z&&Z.length&&(te.buffer.push(Z),te.length+=te.objectMode?1:Z.length)}te.ended=!0,te.sync?S(ae):(te.needReadable=!1,te.emittedReadable||(te.emittedReadable=!0,E(ae)))}}function S(ae){var te=ae._readableState;d("emitReadable",te.needReadable,te.emittedReadable),te.needReadable=!1,te.emittedReadable||(d("emitReadable",te.flowing),te.emittedReadable=!0,s.nextTick(E,ae))}function E(ae){var te=ae._readableState;d("emitReadable_",te.destroyed,te.length,te.ended),!te.destroyed&&(te.length||te.ended)&&(ae.emit("readable"),te.emittedReadable=!1),te.needReadable=!te.flowing&&!te.ended&&te.length<=te.highWaterMark,q(ae)}function O(ae,te){te.readingMore||(te.readingMore=!0,s.nextTick(z,ae,te))}function z(ae,te){for(;!te.reading&&!te.ended&&(te.length<te.highWaterMark||te.flowing&&te.length===0);){var Z=te.length;if(d("maybeReadMore read 0"),ae.read(0),Z===te.length)break}te.readingMore=!1}R.prototype._read=function(ae){j(this,new C("_read()"))},R.prototype.pipe=function(ae,te){var Z=this,W=this._readableState;switch(W.pipesCount){case 0:W.pipes=ae;break;case 1:W.pipes=[W.pipes,ae];break;default:W.pipes.push(ae);break}W.pipesCount+=1,d("pipe count=%d opts=%j",W.pipesCount,te);var V=(!te||te.end!==!1)&&ae!==s.stdout&&ae!==s.stderr,fe=V?X:Ae;W.endEmitted?s.nextTick(fe):Z.once("end",fe),ae.on("unpipe",ye);function ye(Ne,Xe){d("onunpipe"),Ne===Z&&Xe&&Xe.hasUnpiped===!1&&(Xe.hasUnpiped=!0,ee())}function X(){d("onend"),ae.end()}var ve=J(Z);ae.on("drain",ve);var ke=!1;function ee(){d("cleanup"),ae.removeListener("close",_e),ae.removeListener("finish",Re),ae.removeListener("drain",ve),ae.removeListener("error",de),ae.removeListener("unpipe",ye),Z.removeListener("end",X),Z.removeListener("end",Ae),Z.removeListener("data",ne),ke=!0,W.awaitDrain&&(!ae._writableState||ae._writableState.needDrain)&&ve()}Z.on("data",ne);function ne(Ne){d("ondata");var Xe=ae.write(Ne);d("dest.write",Xe),Xe===!1&&((W.pipesCount===1&&W.pipes===ae||W.pipesCount>1&&we(W.pipes,ae)!==-1)&&!ke&&(d("false write response, pause",W.awaitDrain),W.awaitDrain++),Z.pause())}function de(Ne){d("onerror",Ne),Ae(),ae.removeListener("error",de),c(ae,"error")===0&&j(ae,Ne)}G(ae,"error",de);function _e(){ae.removeListener("finish",Re),Ae()}ae.once("close",_e);function Re(){d("onfinish"),ae.removeListener("close",_e),Ae()}ae.once("finish",Re);function Ae(){d("unpipe"),Z.unpipe(ae)}return ae.emit("pipe",Z),W.flowing||(d("pipe resume"),Z.resume()),ae};function J(ae){return function(){var Z=ae._readableState;d("pipeOnDrain",Z.awaitDrain),Z.awaitDrain&&Z.awaitDrain--,Z.awaitDrain===0&&c(ae,"data")&&(Z.flowing=!0,q(ae))}}R.prototype.unpipe=function(ae){var te=this._readableState,Z={hasUnpiped:!1};if(te.pipesCount===0)return this;if(te.pipesCount===1)return ae&&ae!==te.pipes?this:(ae||(ae=te.pipes),te.pipes=null,te.pipesCount=0,te.flowing=!1,ae&&ae.emit("unpipe",this,Z),this);if(!ae){var W=te.pipes,V=te.pipesCount;te.pipes=null,te.pipesCount=0,te.flowing=!1;for(var fe=0;fe<V;fe++)W[fe].emit("unpipe",this,{hasUnpiped:!1});return this}var ye=we(te.pipes,ae);return ye===-1?this:(te.pipes.splice(ye,1),te.pipesCount-=1,te.pipesCount===1&&(te.pipes=te.pipes[0]),ae.emit("unpipe",this,Z),this)},R.prototype.on=function(ae,te){var Z=a.prototype.on.call(this,ae,te),W=this._readableState;return ae==="data"?(W.readableListening=this.listenerCount("readable")>0,W.flowing!==!1&&this.resume()):ae==="readable"&&!W.endEmitted&&!W.readableListening&&(W.readableListening=W.needReadable=!0,W.flowing=!1,W.emittedReadable=!1,d("on readable",W.length,W.reading),W.length?S(this):W.reading||s.nextTick(se,this)),Z},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(ae,te){var Z=a.prototype.removeListener.call(this,ae,te);return ae==="readable"&&s.nextTick(re,this),Z},R.prototype.removeAllListeners=function(ae){var te=a.prototype.removeAllListeners.apply(this,arguments);return(ae==="readable"||ae===void 0)&&s.nextTick(re,this),te};function re(ae){var te=ae._readableState;te.readableListening=ae.listenerCount("readable")>0,te.resumeScheduled&&!te.paused?te.flowing=!0:ae.listenerCount("data")>0&&ae.resume()}function se(ae){d("readable nexttick read 0"),ae.read(0)}R.prototype.resume=function(){var ae=this._readableState;return ae.flowing||(d("resume"),ae.flowing=!ae.readableListening,Ce(this,ae)),ae.paused=!1,this};function Ce(ae,te){te.resumeScheduled||(te.resumeScheduled=!0,s.nextTick(Y,ae,te))}function Y(ae,te){d("resume",te.reading),te.reading||ae.read(0),te.resumeScheduled=!1,ae.emit("resume"),q(ae),te.flowing&&!te.reading&&ae.read(0)}R.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function q(ae){var te=ae._readableState;for(d("flow",te.flowing);te.flowing&&ae.read()!==null;);}R.prototype.wrap=function(ae){var te=this,Z=this._readableState,W=!1;ae.on("end",function(){if(d("wrapped end"),Z.decoder&&!Z.ended){var ye=Z.decoder.end();ye&&ye.length&&te.push(ye)}te.push(null)}),ae.on("data",function(ye){if(d("wrapped data"),Z.decoder&&(ye=Z.decoder.write(ye)),!(Z.objectMode&&ye==null)&&!(!Z.objectMode&&(!ye||!ye.length))){var X=te.push(ye);X||(W=!0,ae.pause())}});for(var V in ae)this[V]===void 0&&typeof ae[V]=="function"&&(this[V]=function(X){return function(){return ae[X].apply(ae,arguments)}}(V));for(var fe=0;fe<H.length;fe++)ae.on(H[fe],this.emit.bind(this,H[fe]));return this._read=function(ye){d("wrapped _read",ye),W&&(W=!1,ae.resume())},this},typeof Symbol=="function"&&(R.prototype[Symbol.asyncIterator]=function(){return B===void 0&&(B=e("./internal/streams/async_iterator")),B(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(te){this._readableState&&(this._readableState.flowing=te)}}),R._fromList=K,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function K(ae,te){if(te.length===0)return null;var Z;return te.objectMode?Z=te.buffer.shift():!ae||ae>=te.length?(te.decoder?Z=te.buffer.join(""):te.buffer.length===1?Z=te.buffer.first():Z=te.buffer.concat(te.length),te.buffer.clear()):Z=te.buffer.consume(ae,te.decoder),Z}function Q(ae){var te=ae._readableState;d("endReadable",te.endEmitted),te.endEmitted||(te.ended=!0,s.nextTick(he,te,ae))}function he(ae,te){if(d("endReadableNT",ae.endEmitted,ae.length),!ae.endEmitted&&ae.length===0&&(ae.endEmitted=!0,te.readable=!1,te.emit("end"),ae.autoDestroy)){var Z=te._writableState;(!Z||Z.autoDestroy&&Z.finished)&&te.destroy()}}typeof Symbol=="function"&&(R.from=function(ae,te){return U===void 0&&(U=e("./internal/streams/from")),U(R,ae,te)});function we(ae,te){for(var Z=0,W=ae.length;Z<W;Z++)if(ae[Z]===te)return Z;return-1}}).call(this)}).call(this,e("_process"),typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?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:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,n,i){n.exports=u;var s=e("../errors").codes,o=s.ERR_METHOD_NOT_IMPLEMENTED,h=s.ERR_MULTIPLE_CALLBACK,c=s.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=s.ERR_TRANSFORM_WITH_LENGTH_0,f=e("./_stream_duplex");e("inherits")(u,f);function l(d,v){var x=this._transformState;x.transforming=!1;var g=x.writecb;if(g===null)return this.emit("error",new h);x.writechunk=null,x.writecb=null,v!=null&&this.push(v),g(d);var b=this._readableState;b.reading=!1,(b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}function u(d){if(!(this instanceof u))return new u(d);f.call(this,d),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",p)}function p(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(v,x){m(d,v,x)}):m(this,null,null)}u.prototype.push=function(d,v){return this._transformState.needTransform=!1,f.prototype.push.call(this,d,v)},u.prototype._transform=function(d,v,x){x(new o("_transform()"))},u.prototype._write=function(d,v,x){var g=this._transformState;if(g.writecb=x,g.writechunk=d,g.writeencoding=v,!g.transforming){var b=this._readableState;(g.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},u.prototype._read=function(d){var v=this._transformState;v.writechunk!==null&&!v.transforming?(v.transforming=!0,this._transform(v.writechunk,v.writeencoding,v.afterTransform)):v.needTransform=!0},u.prototype._destroy=function(d,v){f.prototype._destroy.call(this,d,function(x){v(x)})};function m(d,v,x){if(v)return d.emit("error",v);if(x!=null&&d.push(x),d._writableState.length)throw new a;if(d._transformState.transforming)throw new c;return d.push(null)}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,n,i){(function(s,o){(function(){n.exports=L;function h(q){var K=this;this.next=null,this.entry=null,this.finish=function(){Y(K,q)}}var c;L.WritableState=H;var a={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),l=e("buffer").Buffer,u=(typeof o<"u"?o:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function p(q){return l.from(q)}function m(q){return l.isBuffer(q)||q instanceof u}var d=e("./internal/streams/destroy"),v=e("./internal/streams/state"),x=v.getHighWaterMark,g=e("../errors").codes,b=g.ERR_INVALID_ARG_TYPE,w=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_MULTIPLE_CALLBACK,T=g.ERR_STREAM_CANNOT_PIPE,C=g.ERR_STREAM_DESTROYED,M=g.ERR_STREAM_NULL_VALUES,I=g.ERR_STREAM_WRITE_AFTER_END,B=g.ERR_UNKNOWN_ENCODING,U=d.errorOrDestroy;e("inherits")(L,f);function j(){}function H(q,K,Q){c=c||e("./_stream_duplex"),q=q||{},typeof Q!="boolean"&&(Q=K instanceof c),this.objectMode=!!q.objectMode,Q&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=x(this,q,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var he=q.decodeStrings===!1;this.decodeStrings=!he,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(we){A(K,we)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}H.prototype.getBuffer=function(){for(var K=this.bufferedRequest,Q=[];K;)Q.push(K),K=K.next;return Q},function(){try{Object.defineProperty(H.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var G;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(G=Function.prototype[Symbol.hasInstance],Object.defineProperty(L,Symbol.hasInstance,{value:function(K){return G.call(this,K)?!0:this!==L?!1:K&&K._writableState instanceof H}})):G=function(K){return K instanceof this};function L(q){c=c||e("./_stream_duplex");var K=this instanceof c;if(!K&&!G.call(L,this))return new L(q);this._writableState=new H(q,this,K),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),f.call(this)}L.prototype.pipe=function(){U(this,new T)};function R(q,K){var Q=new I;U(q,Q),s.nextTick(K,Q)}function F(q,K,Q,he){var we;return Q===null?we=new M:typeof Q!="string"&&!K.objectMode&&(we=new b("chunk",["string","Buffer"],Q)),we?(U(q,we),s.nextTick(he,we),!1):!0}L.prototype.write=function(q,K,Q){var he=this._writableState,we=!1,ae=!he.objectMode&&m(q);return ae&&!l.isBuffer(q)&&(q=p(q)),typeof K=="function"&&(Q=K,K=null),ae?K="buffer":K||(K=he.defaultEncoding),typeof Q!="function"&&(Q=j),he.ending?R(this,Q):(ae||F(this,he,q,Q))&&(he.pendingcb++,we=k(this,he,ae,q,K,Q)),we},L.prototype.cork=function(){this._writableState.corked++},L.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&O(this,q))},L.prototype.setDefaultEncoding=function(K){if(typeof K=="string"&&(K=K.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((K+"").toLowerCase())>-1))throw new B(K);return this._writableState.defaultEncoding=K,this},Object.defineProperty(L.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(q,K,Q){return!q.objectMode&&q.decodeStrings!==!1&&typeof K=="string"&&(K=l.from(K,Q)),K}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(q,K,Q,he,we,ae){if(!Q){var te=_(K,he,we);he!==te&&(Q=!0,we="buffer",he=te)}var Z=K.objectMode?1:he.length;K.length+=Z;var W=K.length<K.highWaterMark;if(W||(K.needDrain=!0),K.writing||K.corked){var V=K.lastBufferedRequest;K.lastBufferedRequest={chunk:he,encoding:we,isBuf:Q,callback:ae,next:null},V?V.next=K.lastBufferedRequest:K.bufferedRequest=K.lastBufferedRequest,K.bufferedRequestCount+=1}else N(q,K,!1,Z,he,we,ae);return W}function N(q,K,Q,he,we,ae,te){K.writelen=he,K.writecb=te,K.writing=!0,K.sync=!0,K.destroyed?K.onwrite(new C("write")):Q?q._writev(we,K.onwrite):q._write(we,ae,K.onwrite),K.sync=!1}function P(q,K,Q,he,we){--K.pendingcb,Q?(s.nextTick(we,he),s.nextTick(se,q,K),q._writableState.errorEmitted=!0,U(q,he)):(we(he),q._writableState.errorEmitted=!0,U(q,he),se(q,K))}function D(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function A(q,K){var Q=q._writableState,he=Q.sync,we=Q.writecb;if(typeof we!="function")throw new y;if(D(Q),K)P(q,Q,he,K,we);else{var ae=z(Q)||q.destroyed;!ae&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&O(q,Q),he?s.nextTick(S,q,Q,ae,we):S(q,Q,ae,we)}}function S(q,K,Q,he){Q||E(q,K),K.pendingcb--,he(),se(q,K)}function E(q,K){K.length===0&&K.needDrain&&(K.needDrain=!1,q.emit("drain"))}function O(q,K){K.bufferProcessing=!0;var Q=K.bufferedRequest;if(q._writev&&Q&&Q.next){var he=K.bufferedRequestCount,we=new Array(he),ae=K.corkedRequestsFree;ae.entry=Q;for(var te=0,Z=!0;Q;)we[te]=Q,Q.isBuf||(Z=!1),Q=Q.next,te+=1;we.allBuffers=Z,N(q,K,!0,K.length,we,"",ae.finish),K.pendingcb++,K.lastBufferedRequest=null,ae.next?(K.corkedRequestsFree=ae.next,ae.next=null):K.corkedRequestsFree=new h(K),K.bufferedRequestCount=0}else{for(;Q;){var W=Q.chunk,V=Q.encoding,fe=Q.callback,ye=K.objectMode?1:W.length;if(N(q,K,!1,ye,W,V,fe),Q=Q.next,K.bufferedRequestCount--,K.writing)break}Q===null&&(K.lastBufferedRequest=null)}K.bufferedRequest=Q,K.bufferProcessing=!1}L.prototype._write=function(q,K,Q){Q(new w("_write()"))},L.prototype._writev=null,L.prototype.end=function(q,K,Q){var he=this._writableState;return typeof q=="function"?(Q=q,q=null,K=null):typeof K=="function"&&(Q=K,K=null),q!=null&&this.write(q,K),he.corked&&(he.corked=1,this.uncork()),he.ending||Ce(this,he,Q),this},Object.defineProperty(L.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function z(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function J(q,K){q._final(function(Q){K.pendingcb--,Q&&U(q,Q),K.prefinished=!0,q.emit("prefinish"),se(q,K)})}function re(q,K){!K.prefinished&&!K.finalCalled&&(typeof q._final=="function"&&!K.destroyed?(K.pendingcb++,K.finalCalled=!0,s.nextTick(J,q,K)):(K.prefinished=!0,q.emit("prefinish")))}function se(q,K){var Q=z(K);if(Q&&(re(q,K),K.pendingcb===0&&(K.finished=!0,q.emit("finish"),K.autoDestroy))){var he=q._readableState;(!he||he.autoDestroy&&he.endEmitted)&&q.destroy()}return Q}function Ce(q,K,Q){K.ending=!0,se(q,K),Q&&(K.finished?s.nextTick(Q):q.once("finish",Q)),K.ended=!0,q.writable=!1}function Y(q,K,Q){var he=q.entry;for(q.entry=null;he;){var we=he.callback;K.pendingcb--,we(Q),he=he.next}K.corkedRequestsFree.next=q}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(K){this._writableState&&(this._writableState.destroyed=K)}}),L.prototype.destroy=d.destroy,L.prototype._undestroy=d.undestroy,L.prototype._destroy=function(q,K){K(q)}}).call(this)}).call(this,e("_process"),typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,n,i){(function(s){(function(){var o;function h(I,B,U){return B=c(B),B in I?Object.defineProperty(I,B,{value:U,enumerable:!0,configurable:!0,writable:!0}):I[B]=U,I}function c(I){var B=a(I,"string");return typeof B=="symbol"?B:String(B)}function a(I,B){if(typeof I!="object"||I===null)return I;var U=I[Symbol.toPrimitive];if(U!==void 0){var j=U.call(I,B||"default");if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(I)}var f=e("./end-of-stream"),l=Symbol("lastResolve"),u=Symbol("lastReject"),p=Symbol("error"),m=Symbol("ended"),d=Symbol("lastPromise"),v=Symbol("handlePromise"),x=Symbol("stream");function g(I,B){return{value:I,done:B}}function b(I){var B=I[l];if(B!==null){var U=I[x].read();U!==null&&(I[d]=null,I[l]=null,I[u]=null,B(g(U,!1)))}}function w(I){s.nextTick(b,I)}function y(I,B){return function(U,j){I.then(function(){if(B[m]){U(g(void 0,!0));return}B[v](U,j)},j)}}var T=Object.getPrototypeOf(function(){}),C=Object.setPrototypeOf((o={get stream(){return this[x]},next:function(){var B=this,U=this[p];if(U!==null)return Promise.reject(U);if(this[m])return Promise.resolve(g(void 0,!0));if(this[x].destroyed)return new Promise(function(L,R){s.nextTick(function(){B[p]?R(B[p]):L(g(void 0,!0))})});var j=this[d],H;if(j)H=new Promise(y(j,this));else{var G=this[x].read();if(G!==null)return Promise.resolve(g(G,!1));H=new Promise(this[v])}return this[d]=H,H}},h(o,Symbol.asyncIterator,function(){return this}),h(o,"return",function(){var B=this;return new Promise(function(U,j){B[x].destroy(null,function(H){if(H){j(H);return}U(g(void 0,!0))})})}),o),T),M=function(B){var U,j=Object.create(C,(U={},h(U,x,{value:B,writable:!0}),h(U,l,{value:null,writable:!0}),h(U,u,{value:null,writable:!0}),h(U,p,{value:null,writable:!0}),h(U,m,{value:B._readableState.endEmitted,writable:!0}),h(U,v,{value:function(G,L){var R=j[x].read();R?(j[d]=null,j[l]=null,j[u]=null,G(g(R,!1))):(j[l]=G,j[u]=L)},writable:!0}),U));return j[d]=null,f(B,function(H){if(H&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"){var G=j[u];G!==null&&(j[d]=null,j[l]=null,j[u]=null,G(H)),j[p]=H;return}var L=j[l];L!==null&&(j[d]=null,j[l]=null,j[u]=null,L(g(void 0,!0))),j[m]=!0}),B.on("readable",w.bind(null,j)),j};n.exports=M}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,n,i){function s(b,w){var y=Object.keys(b);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(b);w&&(T=T.filter(function(C){return Object.getOwnPropertyDescriptor(b,C).enumerable})),y.push.apply(y,T)}return y}function o(b){for(var w=1;w<arguments.length;w++){var y=arguments[w]!=null?arguments[w]:{};w%2?s(Object(y),!0).forEach(function(T){h(b,T,y[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(y)):s(Object(y)).forEach(function(T){Object.defineProperty(b,T,Object.getOwnPropertyDescriptor(y,T))})}return b}function h(b,w,y){return w=l(w),w in b?Object.defineProperty(b,w,{value:y,enumerable:!0,configurable:!0,writable:!0}):b[w]=y,b}function c(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}function a(b,w){for(var y=0;y<w.length;y++){var T=w[y];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,l(T.key),T)}}function f(b,w,y){return w&&a(b.prototype,w),y&&a(b,y),Object.defineProperty(b,"prototype",{writable:!1}),b}function l(b){var w=u(b,"string");return typeof w=="symbol"?w:String(w)}function u(b,w){if(typeof b!="object"||b===null)return b;var y=b[Symbol.toPrimitive];if(y!==void 0){var T=y.call(b,w||"default");if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(b)}var p=e("buffer"),m=p.Buffer,d=e("util"),v=d.inspect,x=v&&v.custom||"inspect";function g(b,w,y){m.prototype.copy.call(b,w,y)}n.exports=function(){function b(){c(this,b),this.head=null,this.tail=null,this.length=0}return f(b,[{key:"push",value:function(y){var T={data:y,next:null};this.length>0?this.tail.next=T:this.head=T,this.tail=T,++this.length}},{key:"unshift",value:function(y){var T={data:y,next:this.head};this.length===0&&(this.tail=T),this.head=T,++this.length}},{key:"shift",value:function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";for(var T=this.head,C=""+T.data;T=T.next;)C+=y+T.data;return C}},{key:"concat",value:function(y){if(this.length===0)return m.alloc(0);for(var T=m.allocUnsafe(y>>>0),C=this.head,M=0;C;)g(C.data,T,M),M+=C.data.length,C=C.next;return T}},{key:"consume",value:function(y,T){var C;return y<this.head.data.length?(C=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y)):y===this.head.data.length?C=this.shift():C=T?this._getString(y):this._getBuffer(y),C}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var T=this.head,C=1,M=T.data;for(y-=M.length;T=T.next;){var I=T.data,B=y>I.length?I.length:y;if(B===I.length?M+=I:M+=I.slice(0,y),y-=B,y===0){B===I.length?(++C,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=I.slice(B));break}++C}return this.length-=C,M}},{key:"_getBuffer",value:function(y){var T=m.allocUnsafe(y),C=this.head,M=1;for(C.data.copy(T),y-=C.data.length;C=C.next;){var I=C.data,B=y>I.length?I.length:y;if(I.copy(T,T.length-y,0,B),y-=B,y===0){B===I.length?(++M,C.next?this.head=C.next:this.head=this.tail=null):(this.head=C,C.data=I.slice(B));break}++M}return this.length-=M,T}},{key:x,value:function(y,T){return v(this,o(o({},T),{},{depth:0,customInspect:!1}))}}]),b}()},{buffer:220,util:188}],485:[function(e,n,i){(function(s){(function(){function o(u,p){var m=this,d=this._readableState&&this._readableState.destroyed,v=this._writableState&&this._writableState.destroyed;return d||v?(p?p(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,s.nextTick(f,this,u)):s.nextTick(f,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(x){!p&&x?m._writableState?m._writableState.errorEmitted?s.nextTick(c,m):(m._writableState.errorEmitted=!0,s.nextTick(h,m,x)):s.nextTick(h,m,x):p?(s.nextTick(c,m),p(x)):s.nextTick(c,m)}),this)}function h(u,p){f(u,p),c(u)}function c(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}function a(){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 f(u,p){u.emit("error",p)}function l(u,p){var m=u._readableState,d=u._writableState;m&&m.autoDestroy||d&&d.autoDestroy?u.destroy(p):u.emit("error",p)}n.exports={destroy:o,undestroy:a,errorOrDestroy:l}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,n,i){var s=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function o(f){var l=!1;return function(){if(!l){l=!0;for(var u=arguments.length,p=new Array(u),m=0;m<u;m++)p[m]=arguments[m];f.apply(this,p)}}}function h(){}function c(f){return f.setHeader&&typeof f.abort=="function"}function a(f,l,u){if(typeof l=="function")return a(f,null,l);l||(l={}),u=o(u||h);var p=l.readable||l.readable!==!1&&f.readable,m=l.writable||l.writable!==!1&&f.writable,d=function(){f.writable||x()},v=f._writableState&&f._writableState.finished,x=function(){m=!1,v=!0,p||u.call(f)},g=f._readableState&&f._readableState.endEmitted,b=function(){p=!1,g=!0,m||u.call(f)},w=function(M){u.call(f,M)},y=function(){var M;if(p&&!g)return(!f._readableState||!f._readableState.ended)&&(M=new s),u.call(f,M);if(m&&!v)return(!f._writableState||!f._writableState.ended)&&(M=new s),u.call(f,M)},T=function(){f.req.on("finish",x)};return c(f)?(f.on("complete",x),f.on("abort",y),f.req?T():f.on("request",T)):m&&!f._writableState&&(f.on("end",d),f.on("close",d)),f.on("end",b),f.on("finish",x),l.error!==!1&&f.on("error",w),f.on("close",y),function(){f.removeListener("complete",x),f.removeListener("abort",y),f.removeListener("request",T),f.req&&f.req.removeListener("finish",x),f.removeListener("end",d),f.removeListener("close",d),f.removeListener("finish",x),f.removeListener("end",b),f.removeListener("error",w),f.removeListener("close",y)}}n.exports=a},{"../../../errors":477}],487:[function(e,n,i){n.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,n,i){var s;function o(x){var g=!1;return function(){g||(g=!0,x.apply(void 0,arguments))}}var h=e("../../../errors").codes,c=h.ERR_MISSING_ARGS,a=h.ERR_STREAM_DESTROYED;function f(x){if(x)throw x}function l(x){return x.setHeader&&typeof x.abort=="function"}function u(x,g,b,w){w=o(w);var y=!1;x.on("close",function(){y=!0}),s===void 0&&(s=e("./end-of-stream")),s(x,{readable:g,writable:b},function(C){if(C)return w(C);y=!0,w()});var T=!1;return function(C){if(!y&&!T){if(T=!0,l(x))return x.abort();if(typeof x.destroy=="function")return x.destroy();w(C||new a("pipe"))}}}function p(x){x()}function m(x,g){return x.pipe(g)}function d(x){return!x.length||typeof x[x.length-1]!="function"?f:x.pop()}function v(){for(var x=arguments.length,g=new Array(x),b=0;b<x;b++)g[b]=arguments[b];var w=d(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new c("streams");var y,T=g.map(function(C,M){var I=M<g.length-1,B=M>0;return u(C,I,B,function(U){y||(y=U),U&&T.forEach(p),!I&&(T.forEach(p),w(y))})});return g.reduce(m)}n.exports=v},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,n,i){var s=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;function o(c,a,f){return c.highWaterMark!=null?c.highWaterMark:a?c[f]:null}function h(c,a,f,l){var u=o(a,l,f);if(u!=null){if(!(isFinite(u)&&Math.floor(u)===u)||u<0){var p=l?f:"highWaterMark";throw new s(p,u)}return Math.floor(u)}return c.objectMode?16:16*1024}n.exports={getHighWaterMark:h}},{"../../../errors":477}],490:[function(e,n,i){n.exports=e("events").EventEmitter},{events:422}],491:[function(e,n,i){i=n.exports=e("./lib/_stream_readable.js"),i.Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js"),i.finished=e("./lib/internal/streams/end-of-stream.js"),i.pipeline=e("./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(e,n,i){var s=function(o){var h=Object.prototype,c=h.hasOwnProperty,a=Object.defineProperty||function(A,S,E){A[S]=E.value},f,l=typeof Symbol=="function"?Symbol:{},u=l.iterator||"@@iterator",p=l.asyncIterator||"@@asyncIterator",m=l.toStringTag||"@@toStringTag";function d(A,S,E){return Object.defineProperty(A,S,{value:E,enumerable:!0,configurable:!0,writable:!0}),A[S]}try{d({},"")}catch{d=function(S,E,O){return S[E]=O}}function v(A,S,E,O){var z=S&&S.prototype instanceof C?S:C,J=Object.create(z.prototype),re=new N(O||[]);return a(J,"_invoke",{value:R(A,E,re)}),J}o.wrap=v;function x(A,S,E){try{return{type:"normal",arg:A.call(S,E)}}catch(O){return{type:"throw",arg:O}}}var g="suspendedStart",b="suspendedYield",w="executing",y="completed",T={};function C(){}function M(){}function I(){}var B={};d(B,u,function(){return this});var U=Object.getPrototypeOf,j=U&&U(U(P([])));j&&j!==h&&c.call(j,u)&&(B=j);var H=I.prototype=C.prototype=Object.create(B);M.prototype=I,a(H,"constructor",{value:I,configurable:!0}),a(I,"constructor",{value:M,configurable:!0}),M.displayName=d(I,m,"GeneratorFunction");function G(A){["next","throw","return"].forEach(function(S){d(A,S,function(E){return this._invoke(S,E)})})}o.isGeneratorFunction=function(A){var S=typeof A=="function"&&A.constructor;return S?S===M||(S.displayName||S.name)==="GeneratorFunction":!1},o.mark=function(A){return Object.setPrototypeOf?Object.setPrototypeOf(A,I):(A.__proto__=I,d(A,m,"GeneratorFunction")),A.prototype=Object.create(H),A},o.awrap=function(A){return{__await:A}};function L(A,S){function E(J,re,se,Ce){var Y=x(A[J],A,re);if(Y.type==="throw")Ce(Y.arg);else{var q=Y.arg,K=q.value;return K&&typeof K=="object"&&c.call(K,"__await")?S.resolve(K.__await).then(function(Q){E("next",Q,se,Ce)},function(Q){E("throw",Q,se,Ce)}):S.resolve(K).then(function(Q){q.value=Q,se(q)},function(Q){return E("throw",Q,se,Ce)})}}var O;function z(J,re){function se(){return new S(function(Ce,Y){E(J,re,Ce,Y)})}return O=O?O.then(se,se):se()}a(this,"_invoke",{value:z})}G(L.prototype),d(L.prototype,p,function(){return this}),o.AsyncIterator=L,o.async=function(A,S,E,O,z){z===void 0&&(z=Promise);var J=new L(v(A,S,E,O),z);return o.isGeneratorFunction(S)?J:J.next().then(function(re){return re.done?re.value:J.next()})};function R(A,S,E){var O=g;return function(J,re){if(O===w)throw new Error("Generator is already running");if(O===y){if(J==="throw")throw re;return D()}for(E.method=J,E.arg=re;;){var se=E.delegate;if(se){var Ce=F(se,E);if(Ce){if(Ce===T)continue;return Ce}}if(E.method==="next")E.sent=E._sent=E.arg;else if(E.method==="throw"){if(O===g)throw O=y,E.arg;E.dispatchException(E.arg)}else E.method==="return"&&E.abrupt("return",E.arg);O=w;var Y=x(A,S,E);if(Y.type==="normal"){if(O=E.done?y:b,Y.arg===T)continue;return{value:Y.arg,done:E.done}}else Y.type==="throw"&&(O=y,E.method="throw",E.arg=Y.arg)}}}function F(A,S){var E=S.method,O=A.iterator[E];if(O===f)return S.delegate=null,E==="throw"&&A.iterator.return&&(S.method="return",S.arg=f,F(A,S),S.method==="throw")||E!=="return"&&(S.method="throw",S.arg=new TypeError("The iterator does not provide a '"+E+"' method")),T;var z=x(O,A.iterator,S.arg);if(z.type==="throw")return S.method="throw",S.arg=z.arg,S.delegate=null,T;var J=z.arg;if(!J)return S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,T;if(J.done)S[A.resultName]=J.value,S.next=A.nextLoc,S.method!=="return"&&(S.method="next",S.arg=f);else return J;return S.delegate=null,T}G(H),d(H,m,"Generator"),d(H,u,function(){return this}),d(H,"toString",function(){return"[object Generator]"});function _(A){var S={tryLoc:A[0]};1 in A&&(S.catchLoc=A[1]),2 in A&&(S.finallyLoc=A[2],S.afterLoc=A[3]),this.tryEntries.push(S)}function k(A){var S=A.completion||{};S.type="normal",delete S.arg,A.completion=S}function N(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(_,this),this.reset(!0)}o.keys=function(A){var S=Object(A),E=[];for(var O in S)E.push(O);return E.reverse(),function z(){for(;E.length;){var J=E.pop();if(J in S)return z.value=J,z.done=!1,z}return z.done=!0,z}};function P(A){if(A){var S=A[u];if(S)return S.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var E=-1,O=function z(){for(;++E<A.length;)if(c.call(A,E))return z.value=A[E],z.done=!1,z;return z.value=f,z.done=!0,z};return O.next=O}}return{next:D}}o.values=P;function D(){return{value:f,done:!0}}return N.prototype={constructor:N,reset:function(A){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(k),!A)for(var S in this)S.charAt(0)==="t"&&c.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=f)},stop:function(){this.done=!0;var A=this.tryEntries[0],S=A.completion;if(S.type==="throw")throw S.arg;return this.rval},dispatchException:function(A){if(this.done)throw A;var S=this;function E(Ce,Y){return J.type="throw",J.arg=A,S.next=Ce,Y&&(S.method="next",S.arg=f),!!Y}for(var O=this.tryEntries.length-1;O>=0;--O){var z=this.tryEntries[O],J=z.completion;if(z.tryLoc==="root")return E("end");if(z.tryLoc<=this.prev){var re=c.call(z,"catchLoc"),se=c.call(z,"finallyLoc");if(re&&se){if(this.prev<z.catchLoc)return E(z.catchLoc,!0);if(this.prev<z.finallyLoc)return E(z.finallyLoc)}else if(re){if(this.prev<z.catchLoc)return E(z.catchLoc,!0)}else if(se){if(this.prev<z.finallyLoc)return E(z.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(A,S){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.tryLoc<=this.prev&&c.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var z=O;break}}z&&(A==="break"||A==="continue")&&z.tryLoc<=S&&S<=z.finallyLoc&&(z=null);var J=z?z.completion:{};return J.type=A,J.arg=S,z?(this.method="next",this.next=z.finallyLoc,T):this.complete(J)},complete:function(A,S){if(A.type==="throw")throw A.arg;return A.type==="break"||A.type==="continue"?this.next=A.arg:A.type==="return"?(this.rval=this.arg=A.arg,this.method="return",this.next="end"):A.type==="normal"&&S&&(this.next=S),T},finish:function(A){for(var S=this.tryEntries.length-1;S>=0;--S){var E=this.tryEntries[S];if(E.finallyLoc===A)return this.complete(E.completion,E.afterLoc),k(E),T}},catch:function(A){for(var S=this.tryEntries.length-1;S>=0;--S){var E=this.tryEntries[S];if(E.tryLoc===A){var O=E.completion;if(O.type==="throw"){var z=O.arg;k(E)}return z}}throw new Error("illegal catch attempt")},delegateYield:function(A,S,E){return this.delegate={iterator:P(A),resultName:S,nextLoc:E},this.method==="next"&&(this.arg=f),T}},o}(typeof n=="object"?n.exports:{});try{regeneratorRuntime=s}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=s:Function("r","regeneratorRuntime = r")(s)}},{}],493:[function(e,n,i){var s=e("buffer").Buffer,o=e("inherits"),h=e("hash-base"),c=new Array(16),a=[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],f=[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],l=[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],u=[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],p=[0,1518500249,1859775393,2400959708,2840853838],m=[1352829926,1548603684,1836072691,2053994217,0];function d(){h.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}o(d,h),d.prototype._update=function(){for(var T=c,C=0;C<16;++C)T[C]=this._block.readInt32LE(C*4);for(var M=this._a|0,I=this._b|0,B=this._c|0,U=this._d|0,j=this._e|0,H=this._a|0,G=this._b|0,L=this._c|0,R=this._d|0,F=this._e|0,_=0;_<80;_+=1){var k,N;_<16?(k=x(M,I,B,U,j,T[a[_]],p[0],l[_]),N=y(H,G,L,R,F,T[f[_]],m[0],u[_])):_<32?(k=g(M,I,B,U,j,T[a[_]],p[1],l[_]),N=w(H,G,L,R,F,T[f[_]],m[1],u[_])):_<48?(k=b(M,I,B,U,j,T[a[_]],p[2],l[_]),N=b(H,G,L,R,F,T[f[_]],m[2],u[_])):_<64?(k=w(M,I,B,U,j,T[a[_]],p[3],l[_]),N=g(H,G,L,R,F,T[f[_]],m[3],u[_])):(k=y(M,I,B,U,j,T[a[_]],p[4],l[_]),N=x(H,G,L,R,F,T[f[_]],m[4],u[_])),M=j,j=U,U=v(B,10),B=I,I=k,H=F,F=R,R=v(L,10),L=G,G=N}var P=this._b+B+R|0;this._b=this._c+U+F|0,this._c=this._d+j+H|0,this._d=this._e+M+G|0,this._e=this._a+I+L|0,this._a=P},d.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 T=s.alloc?s.alloc(20):new s(20);return T.writeInt32LE(this._a,0),T.writeInt32LE(this._b,4),T.writeInt32LE(this._c,8),T.writeInt32LE(this._d,12),T.writeInt32LE(this._e,16),T};function v(T,C){return T<<C|T>>>32-C}function x(T,C,M,I,B,U,j,H){return v(T+(C^M^I)+U+j|0,H)+B|0}function g(T,C,M,I,B,U,j,H){return v(T+(C&M|~C&I)+U+j|0,H)+B|0}function b(T,C,M,I,B,U,j,H){return v(T+((C|~M)^I)+U+j|0,H)+B|0}function w(T,C,M,I,B,U,j,H){return v(T+(C&I|M&~I)+U+j|0,H)+B|0}function y(T,C,M,I,B,U,j,H){return v(T+(C^(M|~I))+U+j|0,H)+B|0}n.exports=d},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,n,i){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var s=e("buffer"),o=s.Buffer;function h(a,f){for(var l in a)f[l]=a[l]}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?n.exports=s:(h(s,i),i.Buffer=c);function c(a,f,l){return o(a,f,l)}c.prototype=Object.create(o.prototype),h(o,c),c.from=function(a,f,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return o(a,f,l)},c.alloc=function(a,f,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var u=o(a);return f!==void 0?typeof l=="string"?u.fill(f,l):u.fill(f):u.fill(0),u},c.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return o(a)},c.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return s.SlowBuffer(a)}},{buffer:220}],495:[function(e,n,i){(function(s){(function(){var o=e("buffer"),h=o.Buffer,c={},a;for(a in o)o.hasOwnProperty(a)&&(a==="SlowBuffer"||a==="Buffer"||(c[a]=o[a]));var f=c.Buffer={};for(a in h)h.hasOwnProperty(a)&&(a==="allocUnsafe"||a==="allocUnsafeSlow"||(f[a]=h[a]));if(c.Buffer.prototype=h.prototype,(!f.from||f.from===Uint8Array.from)&&(f.from=function(l,u,p){if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof l);if(l&&typeof l.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);return h(l,u,p)}),f.alloc||(f.alloc=function(l,u,p){if(typeof l!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof l);if(l<0||l>=2*(1<<30))throw new RangeError('The value "'+l+'" is invalid for option "size"');var m=h(l);return!u||u.length===0?m.fill(0):typeof p=="string"?m.fill(u,p):m.fill(u),m}),!c.kStringMaxLength)try{c.kStringMaxLength=s.binding("buffer").kStringMaxLength}catch{}c.constants||(c.constants={MAX_LENGTH:c.kMaxLength},c.kStringMaxLength&&(c.constants.MAX_STRING_LENGTH=c.kStringMaxLength)),n.exports=c}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0});const s=e("xmlchars/xml/1.0/ed5"),o=e("xmlchars/xml/1.1/ed2"),h=e("xmlchars/xmlns/1.0/ed3");var c=s.isS,a=s.isChar,f=s.isNameStartChar,l=s.isNameChar,u=s.S_LIST,p=s.NAME_RE,m=o.isChar,d=h.isNCNameStartChar,v=h.isNCNameChar,x=h.NC_NAME_RE;const g="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",w={__proto__:null,xml:g,xmlns:b},y={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},T=-1,C=-2,M=0,I=1,B=2,U=3,j=4,H=5,G=6,L=7,R=8,F=9,_=10,k=11,N=12,P=13,D=14,A=15,S=16,E=17,O=18,z=19,J=20,re=21,se=22,Ce=23,Y=24,q=25,K=26,Q=27,he=28,we=29,ae=30,te=31,Z=32,W=33,V=34,fe=35,ye=36,X=37,ve=38,ke=39,ee=40,ne=41,de=42,_e=43,Re=44,Ae=9,Ne=10,Xe=13,Le=32,xe=33,Me=34,Be=38,Ve=39,ot=45,ct=47,rt=59,nt=60,mt=61,et=62,tt=63,vt=91,ft=93,kt=133,Tt=8232,lt=$e=>$e===Me||$e===Ve,Ct=[Me,Ve],Mt=[...Ct,vt,et],gt=[...Ct,nt,ft],ie=[mt,tt,...u],ge=[...u,et,Be,nt];function le($e,ce,Te){switch(ce){case"xml":Te!==g&&$e.fail(`xml prefix must be bound to ${g}.`);break;case"xmlns":Te!==b&&$e.fail(`xmlns prefix must be bound to ${b}.`);break}switch(Te){case b:$e.fail(ce===""?`the default namespace may not be set to ${Te}.`:`may not assign a prefix (even "xmlns") to the URI ${b}.`);break;case g:switch(ce){case"xml":break;case"":$e.fail(`the default namespace may not be set to ${Te}.`);break;default:$e.fail("may not assign the xml namespace to another prefix.")}break}}function ue($e,ce){for(const Te of Object.keys(ce))le($e,Te,ce[Te])}const pe=$e=>x.test($e),me=$e=>p.test($e),Ie=0,je=1,Fe=2;i.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const Pe={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"};class Oe{constructor(ce){this.opt=ce??{},this.fragmentOpt=!!this.opt.fragment;const Te=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,Te){this.nameStartCheck=d,this.nameCheck=v,this.isName=pe,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},w);const Ee=this.opt.additionalNamespaces;Ee!=null&&(ue(this,Ee),Object.assign(this.ns,Ee))}else this.nameStartCheck=f,this.nameCheck=l,this.isName=me,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()}get closed(){return this._closed}_init(){var ce;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=Ie,this.attribList=[];const{fragmentOpt:Te}=this;this.state=Te?P:M,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=Te,this.xmlDeclPossible=!Te,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:Ee}=this.opt;if(Ee===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");Ee="1.0"}this.setXMLVersion(Ee),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(y),(ce=this.readyHandler)===null||ce===void 0||ce.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(ce,Te){this[Pe[ce]]=Te}off(ce){this[Pe[ce]]=void 0}makeError(ce){var Te;let Ee=(Te=this.fileName)!==null&&Te!==void 0?Te:"";return this.trackPosition&&(Ee.length>0&&(Ee+=":"),Ee+=`${this.line}:${this.column}`),Ee.length>0&&(Ee+=": "),new Error(Ee+ce)}fail(ce){const Te=this.makeError(ce),Ee=this.errorHandler;if(Ee===void 0)throw Te;return Ee(Te),this}write(ce){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let Te=!1;ce===null?(Te=!0,ce=""):typeof ce=="object"&&(ce=ce.toString()),this.carriedFromPrevious!==void 0&&(ce=`${this.carriedFromPrevious}${ce}`,this.carriedFromPrevious=void 0);let Ee=ce.length;const Ue=ce.charCodeAt(Ee-1);!Te&&(Ue===Xe||Ue>=55296&&Ue<=56319)&&(this.carriedFromPrevious=ce[Ee-1],Ee--,ce=ce.slice(0,Ee));const{stateTable:Ke}=this;for(this.chunk=ce,this.i=0;this.i<Ee;)Ke[this.state].call(this);return this.chunkPosition+=Ee,Te?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:ce,i:Te}=this;if(this.prevI=Te,this.i=Te+1,Te>=ce.length)return T;const Ee=ce.charCodeAt(Te);if(this.column++,Ee<55296){if(Ee>=Le||Ee===Ae)return Ee;switch(Ee){case Ne:return this.line++,this.column=0,this.positionAtNewLine=this.position,Ne;case Xe:return ce.charCodeAt(Te+1)===Ne&&(this.i=Te+2),this.line++,this.column=0,this.positionAtNewLine=this.position,C;default:return this.fail("disallowed character."),Ee}}if(Ee>56319)return Ee>=57344&&Ee<=65533||this.fail("disallowed character."),Ee;const Ue=65536+(Ee-55296)*1024+(ce.charCodeAt(Te+1)-56320);return this.i=Te+2,Ue>1114111&&this.fail("disallowed character."),Ue}getCode11(){const{chunk:ce,i:Te}=this;if(this.prevI=Te,this.i=Te+1,Te>=ce.length)return T;const Ee=ce.charCodeAt(Te);if(this.column++,Ee<55296){if(Ee>31&&Ee<127||Ee>159&&Ee!==Tt||Ee===Ae)return Ee;switch(Ee){case Ne:return this.line++,this.column=0,this.positionAtNewLine=this.position,Ne;case Xe:{const Ke=ce.charCodeAt(Te+1);(Ke===Ne||Ke===kt)&&(this.i=Te+2)}case kt:case Tt:return this.line++,this.column=0,this.positionAtNewLine=this.position,C;default:return this.fail("disallowed character."),Ee}}if(Ee>56319)return Ee>=57344&&Ee<=65533||this.fail("disallowed character."),Ee;const Ue=65536+(Ee-55296)*1024+(ce.charCodeAt(Te+1)-56320);return this.i=Te+2,Ue>1114111&&this.fail("disallowed character."),Ue}getCodeNorm(){const ce=this.getCode();return ce===C?Ne:ce}unget(){this.i=this.prevI,this.column--}captureTo(ce){let{i:Te}=this;const{chunk:Ee}=this;for(;;){const Ue=this.getCode(),Ke=Ue===C,at=Ke?Ne:Ue;if(at===T||ce.includes(at))return this.text+=Ee.slice(Te,this.prevI),at;Ke&&(this.text+=`${Ee.slice(Te,this.prevI)}
|
||
`,Te=this.i)}}captureToChar(ce){let{i:Te}=this;const{chunk:Ee}=this;for(;;){let Ue=this.getCode();switch(Ue){case C:this.text+=`${Ee.slice(Te,this.prevI)}
|
||
`,Te=this.i,Ue=Ne;break;case T:return this.text+=Ee.slice(Te),!1}if(Ue===ce)return this.text+=Ee.slice(Te,this.prevI),!0}}captureNameChars(){const{chunk:ce,i:Te}=this;for(;;){const Ee=this.getCode();if(Ee===T)return this.name+=ce.slice(Te),T;if(!l(Ee))return this.name+=ce.slice(Te,this.prevI),Ee===C?Ne:Ee}}skipSpaces(){for(;;){const ce=this.getCodeNorm();if(ce===T||!c(ce))return ce}}setXMLVersion(ce){this.currentXMLVersion=ce,ce==="1.0"?(this.isChar=a,this.getCode=this.getCode10):(this.isChar=m,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=I}sBeginWhitespace(){const ce=this.i,Te=this.skipSpaces();switch(this.prevI!==ce&&(this.xmlDeclPossible=!1),Te){case nt:if(this.state=A,this.text.length!==0)throw new Error("no-empty text at start");break;case T:break;default:this.unget(),this.state=P,this.xmlDeclPossible=!1}}sDoctype(){var ce;const Te=this.captureTo(Mt);switch(Te){case et:{(ce=this.doctypeHandler)===null||ce===void 0||ce.call(this,this.text),this.text="",this.state=P,this.doctype=!0;break}case T:break;default:this.text+=String.fromCodePoint(Te),Te===vt?this.state=j:lt(Te)&&(this.state=U,this.q=Te)}}sDoctypeQuote(){const ce=this.q;this.captureToChar(ce)&&(this.text+=String.fromCodePoint(ce),this.q=null,this.state=B)}sDTD(){const ce=this.captureTo(gt);ce!==T&&(this.text+=String.fromCodePoint(ce),ce===ft?this.state=B:ce===nt?this.state=G:lt(ce)&&(this.state=H,this.q=ce))}sDTDQuoted(){const ce=this.q;this.captureToChar(ce)&&(this.text+=String.fromCodePoint(ce),this.state=j,this.q=null)}sDTDOpenWaka(){const ce=this.getCodeNorm();switch(this.text+=String.fromCodePoint(ce),ce){case xe:this.state=L,this.openWakaBang="";break;case tt:this.state=k;break;default:this.state=j}}sDTDOpenWakaBang(){const ce=String.fromCodePoint(this.getCodeNorm()),Te=this.openWakaBang+=ce;this.text+=ce,Te!=="-"&&(this.state=Te==="--"?R:j,this.openWakaBang="")}sDTDComment(){this.captureToChar(ot)&&(this.text+="-",this.state=F)}sDTDCommentEnding(){const ce=this.getCodeNorm();this.text+=String.fromCodePoint(ce),this.state=ce===ot?_:R}sDTDCommentEnded(){const ce=this.getCodeNorm();this.text+=String.fromCodePoint(ce),ce===et?this.state=j:(this.fail("malformed comment."),this.state=R)}sDTDPI(){this.captureToChar(tt)&&(this.text+="?",this.state=N)}sDTDPIEnding(){const ce=this.getCodeNorm();this.text+=String.fromCodePoint(ce),ce===et&&(this.state=j)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:ce}=this;const{chunk:Te}=this;e:for(;;)switch(this.getCode()){case C:this.entity+=`${Te.slice(ce,this.prevI)}
|
||
`,ce=this.i;break;case rt:{const{entityReturnState:Ee}=this,Ue=this.entity+Te.slice(ce,this.prevI);this.state=Ee;let Ke;Ue===""?(this.fail("empty entity name."),Ke="&;"):(Ke=this.parseEntity(Ue),this.entity=""),(Ee!==P||this.textHandler!==void 0)&&(this.text+=Ke);break e}case T:this.entity+=Te.slice(ce);break e}}sOpenWaka(){const ce=this.getCode();if(f(ce))this.state=V,this.unget(),this.xmlDeclPossible=!1;else switch(ce){case ct:this.state=_e,this.xmlDeclPossible=!1;break;case xe:this.state=S,this.openWakaBang="",this.xmlDeclPossible=!1;break;case tt:this.state=Ce;break;default:this.fail("disallowed character in tag name"),this.state=P,this.xmlDeclPossible=!1}}sOpenWakaBang(){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=J,this.openWakaBang="";break;case"--":this.state=E,this.openWakaBang="";break;case"DOCTYPE":this.state=B,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(ot)&&(this.state=O)}sCommentEnding(){var ce;const Te=this.getCodeNorm();Te===ot?(this.state=z,(ce=this.commentHandler)===null||ce===void 0||ce.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(Te)}`,this.state=E)}sCommentEnded(){const ce=this.getCodeNorm();ce!==et?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(ce)}`,this.state=E):this.state=P}sCData(){this.captureToChar(ft)&&(this.state=re)}sCDataEnding(){const ce=this.getCodeNorm();ce===ft?this.state=se:(this.text+=`]${String.fromCodePoint(ce)}`,this.state=J)}sCDataEnding2(){var ce;const Te=this.getCodeNorm();switch(Te){case et:{(ce=this.cdataHandler)===null||ce===void 0||ce.call(this,this.text),this.text="",this.state=P;break}case ft:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(Te)}`,this.state=J}}sPIFirstChar(){const ce=this.getCodeNorm();this.nameStartCheck(ce)?(this.piTarget+=String.fromCodePoint(ce),this.state=Y):ce===tt||c(ce)?(this.fail("processing instruction without a target."),this.state=ce===tt?K:q):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(ce),this.state=Y)}sPIRest(){const{chunk:ce,i:Te}=this;for(;;){const Ee=this.getCodeNorm();if(Ee===T){this.piTarget+=ce.slice(Te);return}if(!this.nameCheck(Ee)){this.piTarget+=ce.slice(Te,this.prevI);const Ue=Ee===tt;Ue||c(Ee)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=Ue?W:Q):this.state=Ue?K:q:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(Ee));break}}}sPIBody(){if(this.text.length===0){const ce=this.getCodeNorm();ce===tt?this.state=K:c(ce)||(this.text=String.fromCodePoint(ce))}else this.captureToChar(tt)&&(this.state=K)}sPIEnding(){var ce;const Te=this.getCodeNorm();if(Te===et){const{piTarget:Ee}=this;Ee.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(ce=this.piHandler)===null||ce===void 0||ce.call(this,{target:Ee,body:this.text}),this.piTarget=this.text="",this.state=P}else Te===tt?this.text+="?":(this.text+=`?${String.fromCodePoint(Te)}`,this.state=q);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const ce=this.skipSpaces();if(ce===tt){this.state=W;return}ce!==T&&(this.state=he,this.name=String.fromCodePoint(ce))}sXMLDeclName(){const ce=this.captureTo(ie);if(ce===tt){this.state=W,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(c(ce)||ce===mt){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 ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=ce===mt?ae:we}}sXMLDeclEq(){const ce=this.getCodeNorm();if(ce===tt){this.state=W,this.fail("XML declaration is incomplete.");return}c(ce)||(ce!==mt&&this.fail("value required."),this.state=ae)}sXMLDeclValueStart(){const ce=this.getCodeNorm();if(ce===tt){this.state=W,this.fail("XML declaration is incomplete.");return}c(ce)||(lt(ce)?this.q=ce:(this.fail("value must be quoted."),this.q=Le),this.state=te)}sXMLDeclValue(){const ce=this.captureTo([this.q,tt]);if(ce===tt){this.state=W,this.text="",this.fail("XML declaration is incomplete.");return}if(ce===T)return;const Te=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const Ee=Te;this.xmlDecl.version=Ee,/^1\.[0-9]+$/.test(Ee)?this.opt.forceXMLVersion||this.setXMLVersion(Ee):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(Te)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=Te;break;case"standalone":Te!=="yes"&&Te!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=Te;break}this.name="",this.state=Z}sXMLDeclSeparator(){const ce=this.getCodeNorm();if(ce===tt){this.state=W;return}c(ce)||(this.fail("whitespace required."),this.unget()),this.state=Q}sXMLDeclEnding(){var ce;this.getCodeNorm()===et?(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."),(ce=this.xmldeclHandler)===null||ce===void 0||ce.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=P):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var ce;const Te=this.captureNameChars();if(Te===T)return;const Ee=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=Ee.ns=Object.create(null)),(ce=this.openTagStartHandler)===null||ce===void 0||ce.call(this,Ee),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),Te){case et:this.openTag();break;case ct:this.state=fe;break;default:c(Te)||this.fail("disallowed character in tag name."),this.state=ye}}sOpenTagSlash(){this.getCode()===et?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=ye)}sAttrib(){const ce=this.skipSpaces();ce!==T&&(f(ce)?(this.unget(),this.state=X):ce===et?this.openTag():ce===ct?this.state=fe:this.fail("disallowed character in attribute name."))}sAttribName(){const ce=this.captureNameChars();ce===mt?this.state=ke:c(ce)?this.state=ve:ce===et?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):ce!==T&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const ce=this.skipSpaces();switch(ce){case T:return;case mt:this.state=ke;break;default:this.fail("attribute without value."),this.text="",this.name="",ce===et?this.openTag():f(ce)?(this.unget(),this.state=X):(this.fail("disallowed character in attribute name."),this.state=ye)}}sAttribValue(){const ce=this.getCodeNorm();lt(ce)?(this.q=ce,this.state=ee):c(ce)||(this.fail("unquoted attribute value."),this.state=de,this.unget())}sAttribValueQuoted(){const{q:ce,chunk:Te}=this;let{i:Ee}=this;for(;;)switch(this.getCode()){case ce:this.pushAttrib(this.name,this.text+Te.slice(Ee,this.prevI)),this.name=this.text="",this.q=null,this.state=ne;return;case Be:this.text+=Te.slice(Ee,this.prevI),this.state=D,this.entityReturnState=ee;return;case Ne:case C:case Ae:this.text+=`${Te.slice(Ee,this.prevI)} `,Ee=this.i;break;case nt:this.text+=Te.slice(Ee,this.prevI),this.fail("disallowed character.");return;case T:this.text+=Te.slice(Ee);return}}sAttribValueClosed(){const ce=this.getCodeNorm();c(ce)?this.state=ye:ce===et?this.openTag():ce===ct?this.state=fe:f(ce)?(this.fail("no whitespace between attributes."),this.unget(),this.state=X):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const ce=this.captureTo(ge);switch(ce){case Be:this.state=D,this.entityReturnState=de;break;case nt:this.fail("disallowed character.");break;case T:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",ce===et?this.openTag():this.state=ye}}sCloseTag(){const ce=this.captureNameChars();ce===et?this.closeTag():c(ce)?this.state=Re:ce!==T&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case et:this.closeTag();break;case T:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:ce,forbiddenState:Te}=this;const{chunk:Ee,textHandler:Ue}=this;e:for(;;)switch(this.getCode()){case nt:{if(this.state=A,Ue!==void 0){const{text:Ke}=this,at=Ee.slice(ce,this.prevI);Ke.length!==0?(Ue(Ke+at),this.text=""):at.length!==0&&Ue(at)}Te=Ie;break e}case Be:this.state=D,this.entityReturnState=P,Ue!==void 0&&(this.text+=Ee.slice(ce,this.prevI)),Te=Ie;break e;case ft:switch(Te){case Ie:Te=je;break;case je:Te=Fe;break;case Fe:break;default:throw new Error("impossible state")}break;case et:Te===Fe&&this.fail('the string "]]>" is disallowed in char data.'),Te=Ie;break;case C:Ue!==void 0&&(this.text+=`${Ee.slice(ce,this.prevI)}
|
||
`),ce=this.i,Te=Ie;break;case T:Ue!==void 0&&(this.text+=Ee.slice(ce));break e;default:Te=Ie}this.forbiddenState=Te}handleTextOutsideRoot(){let{i:ce}=this;const{chunk:Te,textHandler:Ee}=this;let Ue=!1;e:for(;;){const Ke=this.getCode();switch(Ke){case nt:{if(this.state=A,Ee!==void 0){const{text:at}=this,dt=Te.slice(ce,this.prevI);at.length!==0?(Ee(at+dt),this.text=""):dt.length!==0&&Ee(dt)}break e}case Be:this.state=D,this.entityReturnState=P,Ee!==void 0&&(this.text+=Te.slice(ce,this.prevI)),Ue=!0;break e;case C:Ee!==void 0&&(this.text+=`${Te.slice(ce,this.prevI)}
|
||
`),ce=this.i;break;case T:Ee!==void 0&&(this.text+=Te.slice(ce));break e;default:c(Ke)||(Ue=!0)}}Ue&&(!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))}pushAttribNS(ce,Te){var Ee;const{prefix:Ue,local:Ke}=this.qname(ce),at={name:ce,prefix:Ue,local:Ke,value:Te};if(this.attribList.push(at),(Ee=this.attributeHandler)===null||Ee===void 0||Ee.call(this,at),Ue==="xmlns"){const dt=Te.trim();this.currentXMLVersion==="1.0"&&dt===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[Ke]=dt,le(this,Ke,dt)}else if(ce==="xmlns"){const dt=Te.trim();this.topNS[""]=dt,le(this,"",dt)}}pushAttribPlain(ce,Te){var Ee;const Ue={name:ce,value:Te};this.attribList.push(Ue),(Ee=this.attributeHandler)===null||Ee===void 0||Ee.call(this,Ue)}end(){var ce,Te;this.sawRoot||this.fail("document must contain a root element.");const{tags:Ee}=this;for(;Ee.length>0;){const Ke=Ee.pop();this.fail(`unclosed tag: ${Ke.name}`)}this.state!==M&&this.state!==P&&this.fail("unexpected end.");const{text:Ue}=this;return Ue.length!==0&&((ce=this.textHandler)===null||ce===void 0||ce.call(this,Ue),this.text=""),this._closed=!0,(Te=this.endHandler)===null||Te===void 0||Te.call(this),this._init(),this}resolve(ce){var Te,Ee;let Ue=this.topNS[ce];if(Ue!==void 0)return Ue;const{tags:Ke}=this;for(let at=Ke.length-1;at>=0;at--)if(Ue=Ke[at].ns[ce],Ue!==void 0)return Ue;return Ue=this.ns[ce],Ue!==void 0?Ue:(Ee=(Te=this.opt).resolvePrefix)===null||Ee===void 0?void 0:Ee.call(Te,ce)}qname(ce){const Te=ce.indexOf(":");if(Te===-1)return{prefix:"",local:ce};const Ee=ce.slice(Te+1),Ue=ce.slice(0,Te);return(Ue===""||Ee===""||Ee.includes(":"))&&this.fail(`malformed name: ${ce}.`),{prefix:Ue,local:Ee}}processAttribsNS(){var ce;const{attribList:Te}=this,Ee=this.tag;{const{prefix:at,local:dt}=this.qname(Ee.name);Ee.prefix=at,Ee.local=dt;const Nt=Ee.uri=(ce=this.resolve(at))!==null&&ce!==void 0?ce:"";at!==""&&(at==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),Nt===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(at)}.`),Ee.uri=at))}if(Te.length===0)return;const{attributes:Ue}=Ee,Ke=new Set;for(const at of Te){const{name:dt,prefix:Nt,local:pr}=at;let Jt,jt;Nt===""?(Jt=dt==="xmlns"?b:"",jt=dt):(Jt=this.resolve(Nt),Jt===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(Nt)}.`),Jt=Nt),jt=`{${Jt}}${pr}`),Ke.has(jt)&&this.fail(`duplicate attribute: ${jt}.`),Ke.add(jt),at.uri=Jt,Ue[dt]=at}this.attribList=[]}processAttribsPlain(){const{attribList:ce}=this,Te=this.tag.attributes;for(const{name:Ee,value:Ue}of ce)Te[Ee]!==void 0&&this.fail(`duplicate attribute: ${Ee}.`),Te[Ee]=Ue;this.attribList=[]}openTag(){var ce;this.processAttribs();const{tags:Te}=this,Ee=this.tag;Ee.isSelfClosing=!1,(ce=this.openTagHandler)===null||ce===void 0||ce.call(this,Ee),Te.push(Ee),this.state=P,this.name=""}openSelfClosingTag(){var ce,Te,Ee;this.processAttribs();const{tags:Ue}=this,Ke=this.tag;Ke.isSelfClosing=!0,(ce=this.openTagHandler)===null||ce===void 0||ce.call(this,Ke),(Te=this.closeTagHandler)===null||Te===void 0||Te.call(this,Ke),(this.tag=(Ee=Ue[Ue.length-1])!==null&&Ee!==void 0?Ee:null)===null&&(this.closedRoot=!0),this.state=P,this.name=""}closeTag(){const{tags:ce,name:Te}=this;if(this.state=P,this.name="",Te===""){this.fail("weird empty close tag."),this.text+="</>";return}const Ee=this.closeTagHandler;let Ue=ce.length;for(;Ue-- >0;){const Ke=this.tag=ce.pop();if(this.topNS=Ke.ns,Ee==null||Ee(Ke),Ke.name===Te)break;this.fail("unexpected close tag.")}Ue===0?this.closedRoot=!0:Ue<0&&(this.fail(`unmatched closing tag: ${Te}.`),this.text+=`</${Te}>`)}parseEntity(ce){if(ce[0]!=="#"){const Ee=this.ENTITIES[ce];return Ee!==void 0?Ee:(this.fail(this.isName(ce)?"undefined entity.":"disallowed character in entity name."),`&${ce};`)}let Te=NaN;return ce[1]==="x"&&/^#x[0-9a-f]+$/i.test(ce)?Te=parseInt(ce.slice(2),16):/^#[0-9]+$/.test(ce)&&(Te=parseInt(ce.slice(1),10)),this.isChar(Te)?String.fromCodePoint(Te):(this.fail("malformed character entity."),`&${ce};`)}}i.SaxesParser=Oe},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,n,i){var s=e("safe-buffer").Buffer;function o(h,c){this._block=s.alloc(h),this._finalSize=c,this._blockSize=h,this._len=0}o.prototype.update=function(h,c){typeof h=="string"&&(c=c||"utf8",h=s.from(h,c));for(var a=this._block,f=this._blockSize,l=h.length,u=this._len,p=0;p<l;){for(var m=u%f,d=Math.min(l-p,f-m),v=0;v<d;v++)a[m+v]=h[p+v];u+=d,p+=d,u%f===0&&this._update(a)}return this._len+=l,this},o.prototype.digest=function(h){var c=this._len%this._blockSize;this._block[c]=128,this._block.fill(0,c+1),c>=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=this._len*8;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var f=(a&4294967295)>>>0,l=(a-f)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(f,this._blockSize-4)}this._update(this._block);var u=this._hash();return h?u.toString(h):u},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},n.exports=o},{"safe-buffer":494}],498:[function(e,n,i){var s=n.exports=function(h){h=h.toLowerCase();var c=s[h];if(!c)throw new Error(h+" is not supported (we accept pull requests)");return new c};s.sha=e("./sha"),s.sha1=e("./sha1"),s.sha224=e("./sha224"),s.sha256=e("./sha256"),s.sha384=e("./sha384"),s.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,n,i){var s=e("inherits"),o=e("./hash"),h=e("safe-buffer").Buffer,c=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function f(){this.init(),this._w=a,o.call(this,64,56)}s(f,o),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(m){return m<<5|m>>>27}function u(m){return m<<30|m>>>2}function p(m,d,v,x){return m===0?d&v|~d&x:m===2?d&v|d&x|v&x:d^v^x}f.prototype._update=function(m){for(var d=this._w,v=this._a|0,x=this._b|0,g=this._c|0,b=this._d|0,w=this._e|0,y=0;y<16;++y)d[y]=m.readInt32BE(y*4);for(;y<80;++y)d[y]=d[y-3]^d[y-8]^d[y-14]^d[y-16];for(var T=0;T<80;++T){var C=~~(T/20),M=l(v)+p(C,x,g,b)+w+d[T]+c[C]|0;w=b,b=g,g=u(x),x=v,v=M}this._a=v+this._a|0,this._b=x+this._b|0,this._c=g+this._c|0,this._d=b+this._d|0,this._e=w+this._e|0},f.prototype._hash=function(){var m=h.allocUnsafe(20);return m.writeInt32BE(this._a|0,0),m.writeInt32BE(this._b|0,4),m.writeInt32BE(this._c|0,8),m.writeInt32BE(this._d|0,12),m.writeInt32BE(this._e|0,16),m},n.exports=f},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,n,i){var s=e("inherits"),o=e("./hash"),h=e("safe-buffer").Buffer,c=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function f(){this.init(),this._w=a,o.call(this,64,56)}s(f,o),f.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(d){return d<<1|d>>>31}function u(d){return d<<5|d>>>27}function p(d){return d<<30|d>>>2}function m(d,v,x,g){return d===0?v&x|~v&g:d===2?v&x|v&g|x&g:v^x^g}f.prototype._update=function(d){for(var v=this._w,x=this._a|0,g=this._b|0,b=this._c|0,w=this._d|0,y=this._e|0,T=0;T<16;++T)v[T]=d.readInt32BE(T*4);for(;T<80;++T)v[T]=l(v[T-3]^v[T-8]^v[T-14]^v[T-16]);for(var C=0;C<80;++C){var M=~~(C/20),I=u(x)+m(M,g,b,w)+y+v[C]+c[M]|0;y=w,w=b,b=p(g),g=x,x=I}this._a=x+this._a|0,this._b=g+this._b|0,this._c=b+this._c|0,this._d=w+this._d|0,this._e=y+this._e|0},f.prototype._hash=function(){var d=h.allocUnsafe(20);return d.writeInt32BE(this._a|0,0),d.writeInt32BE(this._b|0,4),d.writeInt32BE(this._c|0,8),d.writeInt32BE(this._d|0,12),d.writeInt32BE(this._e|0,16),d},n.exports=f},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,n,i){var s=e("inherits"),o=e("./sha256"),h=e("./hash"),c=e("safe-buffer").Buffer,a=new Array(64);function f(){this.init(),this._w=a,h.call(this,64,56)}s(f,o),f.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},f.prototype._hash=function(){var l=c.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},n.exports=f},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,n,i){var s=e("inherits"),o=e("./hash"),h=e("safe-buffer").Buffer,c=[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],a=new Array(64);function f(){this.init(),this._w=a,o.call(this,64,56)}s(f,o),f.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};function l(x,g,b){return b^x&(g^b)}function u(x,g,b){return x&g|b&(x|g)}function p(x){return(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10)}function m(x){return(x>>>6|x<<26)^(x>>>11|x<<21)^(x>>>25|x<<7)}function d(x){return(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3}function v(x){return(x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10}f.prototype._update=function(x){for(var g=this._w,b=this._a|0,w=this._b|0,y=this._c|0,T=this._d|0,C=this._e|0,M=this._f|0,I=this._g|0,B=this._h|0,U=0;U<16;++U)g[U]=x.readInt32BE(U*4);for(;U<64;++U)g[U]=v(g[U-2])+g[U-7]+d(g[U-15])+g[U-16]|0;for(var j=0;j<64;++j){var H=B+m(C)+l(C,M,I)+c[j]+g[j]|0,G=p(b)+u(b,w,y)|0;B=I,I=M,M=C,C=T+H|0,T=y,y=w,w=b,b=H+G|0}this._a=b+this._a|0,this._b=w+this._b|0,this._c=y+this._c|0,this._d=T+this._d|0,this._e=C+this._e|0,this._f=M+this._f|0,this._g=I+this._g|0,this._h=B+this._h|0},f.prototype._hash=function(){var x=h.allocUnsafe(32);return x.writeInt32BE(this._a,0),x.writeInt32BE(this._b,4),x.writeInt32BE(this._c,8),x.writeInt32BE(this._d,12),x.writeInt32BE(this._e,16),x.writeInt32BE(this._f,20),x.writeInt32BE(this._g,24),x.writeInt32BE(this._h,28),x},n.exports=f},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,n,i){var s=e("inherits"),o=e("./sha512"),h=e("./hash"),c=e("safe-buffer").Buffer,a=new Array(160);function f(){this.init(),this._w=a,h.call(this,128,112)}s(f,o),f.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},f.prototype._hash=function(){var l=c.allocUnsafe(48);function u(p,m,d){l.writeInt32BE(p,d),l.writeInt32BE(m,d+4)}return u(this._ah,this._al,0),u(this._bh,this._bl,8),u(this._ch,this._cl,16),u(this._dh,this._dl,24),u(this._eh,this._el,32),u(this._fh,this._fl,40),l},n.exports=f},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,n,i){var s=e("inherits"),o=e("./hash"),h=e("safe-buffer").Buffer,c=[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],a=new Array(160);function f(){this.init(),this._w=a,o.call(this,128,112)}s(f,o),f.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};function l(w,y,T){return T^w&(y^T)}function u(w,y,T){return w&y|T&(w|y)}function p(w,y){return(w>>>28|y<<4)^(y>>>2|w<<30)^(y>>>7|w<<25)}function m(w,y){return(w>>>14|y<<18)^(w>>>18|y<<14)^(y>>>9|w<<23)}function d(w,y){return(w>>>1|y<<31)^(w>>>8|y<<24)^w>>>7}function v(w,y){return(w>>>1|y<<31)^(w>>>8|y<<24)^(w>>>7|y<<25)}function x(w,y){return(w>>>19|y<<13)^(y>>>29|w<<3)^w>>>6}function g(w,y){return(w>>>19|y<<13)^(y>>>29|w<<3)^(w>>>6|y<<26)}function b(w,y){return w>>>0<y>>>0?1:0}f.prototype._update=function(w){for(var y=this._w,T=this._ah|0,C=this._bh|0,M=this._ch|0,I=this._dh|0,B=this._eh|0,U=this._fh|0,j=this._gh|0,H=this._hh|0,G=this._al|0,L=this._bl|0,R=this._cl|0,F=this._dl|0,_=this._el|0,k=this._fl|0,N=this._gl|0,P=this._hl|0,D=0;D<32;D+=2)y[D]=w.readInt32BE(D*4),y[D+1]=w.readInt32BE(D*4+4);for(;D<160;D+=2){var A=y[D-30],S=y[D-15*2+1],E=d(A,S),O=v(S,A);A=y[D-2*2],S=y[D-2*2+1];var z=x(A,S),J=g(S,A),re=y[D-7*2],se=y[D-7*2+1],Ce=y[D-16*2],Y=y[D-16*2+1],q=O+se|0,K=E+re+b(q,O)|0;q=q+J|0,K=K+z+b(q,J)|0,q=q+Y|0,K=K+Ce+b(q,Y)|0,y[D]=K,y[D+1]=q}for(var Q=0;Q<160;Q+=2){K=y[Q],q=y[Q+1];var he=u(T,C,M),we=u(G,L,R),ae=p(T,G),te=p(G,T),Z=m(B,_),W=m(_,B),V=c[Q],fe=c[Q+1],ye=l(B,U,j),X=l(_,k,N),ve=P+W|0,ke=H+Z+b(ve,P)|0;ve=ve+X|0,ke=ke+ye+b(ve,X)|0,ve=ve+fe|0,ke=ke+V+b(ve,fe)|0,ve=ve+q|0,ke=ke+K+b(ve,q)|0;var ee=te+we|0,ne=ae+he+b(ee,te)|0;H=j,P=N,j=U,N=k,U=B,k=_,_=F+ve|0,B=I+ke+b(_,F)|0,I=M,F=R,M=C,R=L,C=T,L=G,G=ve+ee|0,T=ke+ne+b(G,ve)|0}this._al=this._al+G|0,this._bl=this._bl+L|0,this._cl=this._cl+R|0,this._dl=this._dl+F|0,this._el=this._el+_|0,this._fl=this._fl+k|0,this._gl=this._gl+N|0,this._hl=this._hl+P|0,this._ah=this._ah+T+b(this._al,G)|0,this._bh=this._bh+C+b(this._bl,L)|0,this._ch=this._ch+M+b(this._cl,R)|0,this._dh=this._dh+I+b(this._dl,F)|0,this._eh=this._eh+B+b(this._el,_)|0,this._fh=this._fh+U+b(this._fl,k)|0,this._gh=this._gh+j+b(this._gl,N)|0,this._hh=this._hh+H+b(this._hl,P)|0},f.prototype._hash=function(){var w=h.allocUnsafe(64);function y(T,C,M){w.writeInt32BE(T,M),w.writeInt32BE(C,M+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),y(this._gh,this._gl,48),y(this._hh,this._hl,56),w},n.exports=f},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,n,i){n.exports=h;var s=e("events").EventEmitter,o=e("inherits");o(h,s),h.Readable=e("readable-stream/readable.js"),h.Writable=e("readable-stream/writable.js"),h.Duplex=e("readable-stream/duplex.js"),h.Transform=e("readable-stream/transform.js"),h.PassThrough=e("readable-stream/passthrough.js"),h.Stream=h;function h(){s.call(this)}h.prototype.pipe=function(c,a){var f=this;function l(g){c.writable&&c.write(g)===!1&&f.pause&&f.pause()}f.on("data",l);function u(){f.readable&&f.resume&&f.resume()}c.on("drain",u),!c._isStdio&&(!a||a.end!==!1)&&(f.on("end",m),f.on("close",d));var p=!1;function m(){p||(p=!0,c.end())}function d(){p||(p=!0,typeof c.destroy=="function"&&c.destroy())}function v(g){if(x(),s.listenerCount(this,"error")===0)throw g}f.on("error",v),c.on("error",v);function x(){f.removeListener("data",l),c.removeListener("drain",u),f.removeListener("end",m),f.removeListener("close",d),f.removeListener("error",v),c.removeListener("error",v),f.removeListener("end",x),f.removeListener("close",x),c.removeListener("close",x)}return f.on("end",x),f.on("close",x),c.on("close",x),c.emit("pipe",f),c}},{events:422,inherits:440,"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}],506:[function(e,n,i){var s={}.toString;n.exports=Array.isArray||function(o){return s.call(o)=="[object Array]"}},{}],507:[function(e,n,i){n.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,n,i){var s=e("process-nextick-args"),o=Object.keys||function(v){var x=[];for(var g in v)x.push(g);return x};n.exports=p;var h=Object.create(e("core-util-is"));h.inherits=e("inherits");var c=e("./_stream_readable"),a=e("./_stream_writable");h.inherits(p,c);for(var f=o(a.prototype),l=0;l<f.length;l++){var u=f[l];p.prototype[u]||(p.prototype[u]=a.prototype[u])}function p(v){if(!(this instanceof p))return new p(v);c.call(this,v),a.call(this,v),v&&v.readable===!1&&(this.readable=!1),v&&v.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,v&&v.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",m)}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function m(){this.allowHalfOpen||this._writableState.ended||s.nextTick(d,this)}function d(v){v.end()}Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1: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)}}),p.prototype._destroy=function(v,x){this.push(null),this.end(),s.nextTick(x,v)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,n,i){n.exports=h;var s=e("./_stream_transform"),o=Object.create(e("core-util-is"));o.inherits=e("inherits"),o.inherits(h,s);function h(c){if(!(this instanceof h))return new h(c);s.call(this,c)}h.prototype._transform=function(c,a,f){f(null,c)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,n,i){(function(s,o){(function(){var h=e("process-nextick-args");n.exports=I;var c=e("isarray"),a;I.ReadableState=M,e("events").EventEmitter;var f=function(K,Q){return K.listeners(Q).length},l=e("./internal/streams/stream"),u=e("safe-buffer").Buffer,p=(typeof o<"u"?o:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function m(K){return u.from(K)}function d(K){return u.isBuffer(K)||K instanceof p}var v=Object.create(e("core-util-is"));v.inherits=e("inherits");var x=e("util"),g=void 0;x&&x.debuglog?g=x.debuglog("stream"):g=function(){};var b=e("./internal/streams/BufferList"),w=e("./internal/streams/destroy"),y;v.inherits(I,l);var T=["error","close","destroy","pause","resume"];function C(K,Q,he){if(typeof K.prependListener=="function")return K.prependListener(Q,he);!K._events||!K._events[Q]?K.on(Q,he):c(K._events[Q])?K._events[Q].unshift(he):K._events[Q]=[he,K._events[Q]]}function M(K,Q){a=a||e("./_stream_duplex"),K=K||{};var he=Q instanceof a;this.objectMode=!!K.objectMode,he&&(this.objectMode=this.objectMode||!!K.readableObjectMode);var we=K.highWaterMark,ae=K.readableHighWaterMark,te=this.objectMode?16:16*1024;we||we===0?this.highWaterMark=we:he&&(ae||ae===0)?this.highWaterMark=ae:this.highWaterMark=te,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,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&&(y||(y=e("string_decoder/").StringDecoder),this.decoder=new y(K.encoding),this.encoding=K.encoding)}function I(K){if(a=a||e("./_stream_duplex"),!(this instanceof I))return new I(K);this._readableState=new M(K,this),this.readable=!0,K&&(typeof K.read=="function"&&(this._read=K.read),typeof K.destroy=="function"&&(this._destroy=K.destroy)),l.call(this)}Object.defineProperty(I.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(K){this._readableState&&(this._readableState.destroyed=K)}}),I.prototype.destroy=w.destroy,I.prototype._undestroy=w.undestroy,I.prototype._destroy=function(K,Q){this.push(null),Q(K)},I.prototype.push=function(K,Q){var he=this._readableState,we;return he.objectMode?we=!0:typeof K=="string"&&(Q=Q||he.defaultEncoding,Q!==he.encoding&&(K=u.from(K,Q),Q=""),we=!0),B(this,K,Q,!1,we)},I.prototype.unshift=function(K){return B(this,K,null,!0,!1)};function B(K,Q,he,we,ae){var te=K._readableState;if(Q===null)te.reading=!1,F(K,te);else{var Z;ae||(Z=j(te,Q)),Z?K.emit("error",Z):te.objectMode||Q&&Q.length>0?(typeof Q!="string"&&!te.objectMode&&Object.getPrototypeOf(Q)!==u.prototype&&(Q=m(Q)),we?te.endEmitted?K.emit("error",new Error("stream.unshift() after end event")):U(K,te,Q,!0):te.ended?K.emit("error",new Error("stream.push() after EOF")):(te.reading=!1,te.decoder&&!he?(Q=te.decoder.write(Q),te.objectMode||Q.length!==0?U(K,te,Q,!1):N(K,te)):U(K,te,Q,!1))):we||(te.reading=!1)}return H(te)}function U(K,Q,he,we){Q.flowing&&Q.length===0&&!Q.sync?(K.emit("data",he),K.read(0)):(Q.length+=Q.objectMode?1:he.length,we?Q.buffer.unshift(he):Q.buffer.push(he),Q.needReadable&&_(K)),N(K,Q)}function j(K,Q){var he;return!d(Q)&&typeof Q!="string"&&Q!==void 0&&!K.objectMode&&(he=new TypeError("Invalid non-string/buffer chunk")),he}function H(K){return!K.ended&&(K.needReadable||K.length<K.highWaterMark||K.length===0)}I.prototype.isPaused=function(){return this._readableState.flowing===!1},I.prototype.setEncoding=function(K){return y||(y=e("string_decoder/").StringDecoder),this._readableState.decoder=new y(K),this._readableState.encoding=K,this};var G=8388608;function L(K){return K>=G?K=G:(K--,K|=K>>>1,K|=K>>>2,K|=K>>>4,K|=K>>>8,K|=K>>>16,K++),K}function R(K,Q){return K<=0||Q.length===0&&Q.ended?0:Q.objectMode?1:K!==K?Q.flowing&&Q.length?Q.buffer.head.data.length:Q.length:(K>Q.highWaterMark&&(Q.highWaterMark=L(K)),K<=Q.length?K:Q.ended?Q.length:(Q.needReadable=!0,0))}I.prototype.read=function(K){g("read",K),K=parseInt(K,10);var Q=this._readableState,he=K;if(K!==0&&(Q.emittedReadable=!1),K===0&&Q.needReadable&&(Q.length>=Q.highWaterMark||Q.ended))return g("read: emitReadable",Q.length,Q.ended),Q.length===0&&Q.ended?Ce(this):_(this),null;if(K=R(K,Q),K===0&&Q.ended)return Q.length===0&&Ce(this),null;var we=Q.needReadable;g("need readable",we),(Q.length===0||Q.length-K<Q.highWaterMark)&&(we=!0,g("length less than watermark",we)),Q.ended||Q.reading?(we=!1,g("reading or ended",we)):we&&(g("do read"),Q.reading=!0,Q.sync=!0,Q.length===0&&(Q.needReadable=!0),this._read(Q.highWaterMark),Q.sync=!1,Q.reading||(K=R(he,Q)));var ae;return K>0?ae=z(K,Q):ae=null,ae===null?(Q.needReadable=!0,K=0):Q.length-=K,Q.length===0&&(Q.ended||(Q.needReadable=!0),he!==K&&Q.ended&&Ce(this)),ae!==null&&this.emit("data",ae),ae};function F(K,Q){if(!Q.ended){if(Q.decoder){var he=Q.decoder.end();he&&he.length&&(Q.buffer.push(he),Q.length+=Q.objectMode?1:he.length)}Q.ended=!0,_(K)}}function _(K){var Q=K._readableState;Q.needReadable=!1,Q.emittedReadable||(g("emitReadable",Q.flowing),Q.emittedReadable=!0,Q.sync?h.nextTick(k,K):k(K))}function k(K){g("emit readable"),K.emit("readable"),O(K)}function N(K,Q){Q.readingMore||(Q.readingMore=!0,h.nextTick(P,K,Q))}function P(K,Q){for(var he=Q.length;!Q.reading&&!Q.flowing&&!Q.ended&&Q.length<Q.highWaterMark&&(g("maybeReadMore read 0"),K.read(0),he!==Q.length);)he=Q.length;Q.readingMore=!1}I.prototype._read=function(K){this.emit("error",new Error("_read() is not implemented"))},I.prototype.pipe=function(K,Q){var he=this,we=this._readableState;switch(we.pipesCount){case 0:we.pipes=K;break;case 1:we.pipes=[we.pipes,K];break;default:we.pipes.push(K);break}we.pipesCount+=1,g("pipe count=%d opts=%j",we.pipesCount,Q);var ae=(!Q||Q.end!==!1)&&K!==s.stdout&&K!==s.stderr,te=ae?W:de;we.endEmitted?h.nextTick(te):he.once("end",te),K.on("unpipe",Z);function Z(_e,Re){g("onunpipe"),_e===he&&Re&&Re.hasUnpiped===!1&&(Re.hasUnpiped=!0,ye())}function W(){g("onend"),K.end()}var V=D(he);K.on("drain",V);var fe=!1;function ye(){g("cleanup"),K.removeListener("close",ee),K.removeListener("finish",ne),K.removeListener("drain",V),K.removeListener("error",ke),K.removeListener("unpipe",Z),he.removeListener("end",W),he.removeListener("end",de),he.removeListener("data",ve),fe=!0,we.awaitDrain&&(!K._writableState||K._writableState.needDrain)&&V()}var X=!1;he.on("data",ve);function ve(_e){g("ondata"),X=!1;var Re=K.write(_e);Re===!1&&!X&&((we.pipesCount===1&&we.pipes===K||we.pipesCount>1&&q(we.pipes,K)!==-1)&&!fe&&(g("false write response, pause",we.awaitDrain),we.awaitDrain++,X=!0),he.pause())}function ke(_e){g("onerror",_e),de(),K.removeListener("error",ke),f(K,"error")===0&&K.emit("error",_e)}C(K,"error",ke);function ee(){K.removeListener("finish",ne),de()}K.once("close",ee);function ne(){g("onfinish"),K.removeListener("close",ee),de()}K.once("finish",ne);function de(){g("unpipe"),he.unpipe(K)}return K.emit("pipe",he),we.flowing||(g("pipe resume"),he.resume()),K};function D(K){return function(){var Q=K._readableState;g("pipeOnDrain",Q.awaitDrain),Q.awaitDrain&&Q.awaitDrain--,Q.awaitDrain===0&&f(K,"data")&&(Q.flowing=!0,O(K))}}I.prototype.unpipe=function(K){var Q=this._readableState,he={hasUnpiped:!1};if(Q.pipesCount===0)return this;if(Q.pipesCount===1)return K&&K!==Q.pipes?this:(K||(K=Q.pipes),Q.pipes=null,Q.pipesCount=0,Q.flowing=!1,K&&K.emit("unpipe",this,he),this);if(!K){var we=Q.pipes,ae=Q.pipesCount;Q.pipes=null,Q.pipesCount=0,Q.flowing=!1;for(var te=0;te<ae;te++)we[te].emit("unpipe",this,{hasUnpiped:!1});return this}var Z=q(Q.pipes,K);return Z===-1?this:(Q.pipes.splice(Z,1),Q.pipesCount-=1,Q.pipesCount===1&&(Q.pipes=Q.pipes[0]),K.emit("unpipe",this,he),this)},I.prototype.on=function(K,Q){var he=l.prototype.on.call(this,K,Q);if(K==="data")this._readableState.flowing!==!1&&this.resume();else if(K==="readable"){var we=this._readableState;!we.endEmitted&&!we.readableListening&&(we.readableListening=we.needReadable=!0,we.emittedReadable=!1,we.reading?we.length&&_(this):h.nextTick(A,this))}return he},I.prototype.addListener=I.prototype.on;function A(K){g("readable nexttick read 0"),K.read(0)}I.prototype.resume=function(){var K=this._readableState;return K.flowing||(g("resume"),K.flowing=!0,S(this,K)),this};function S(K,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,h.nextTick(E,K,Q))}function E(K,Q){Q.reading||(g("resume read 0"),K.read(0)),Q.resumeScheduled=!1,Q.awaitDrain=0,K.emit("resume"),O(K),Q.flowing&&!Q.reading&&K.read(0)}I.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function O(K){var Q=K._readableState;for(g("flow",Q.flowing);Q.flowing&&K.read()!==null;);}I.prototype.wrap=function(K){var Q=this,he=this._readableState,we=!1;K.on("end",function(){if(g("wrapped end"),he.decoder&&!he.ended){var Z=he.decoder.end();Z&&Z.length&&Q.push(Z)}Q.push(null)}),K.on("data",function(Z){if(g("wrapped data"),he.decoder&&(Z=he.decoder.write(Z)),!(he.objectMode&&Z==null)&&!(!he.objectMode&&(!Z||!Z.length))){var W=Q.push(Z);W||(we=!0,K.pause())}});for(var ae in K)this[ae]===void 0&&typeof K[ae]=="function"&&(this[ae]=function(Z){return function(){return K[Z].apply(K,arguments)}}(ae));for(var te=0;te<T.length;te++)K.on(T[te],this.emit.bind(this,T[te]));return this._read=function(Z){g("wrapped _read",Z),we&&(we=!1,K.resume())},this},Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),I._fromList=z;function z(K,Q){if(Q.length===0)return null;var he;return Q.objectMode?he=Q.buffer.shift():!K||K>=Q.length?(Q.decoder?he=Q.buffer.join(""):Q.buffer.length===1?he=Q.buffer.head.data:he=Q.buffer.concat(Q.length),Q.buffer.clear()):he=J(K,Q.buffer,Q.decoder),he}function J(K,Q,he){var we;return K<Q.head.data.length?(we=Q.head.data.slice(0,K),Q.head.data=Q.head.data.slice(K)):K===Q.head.data.length?we=Q.shift():we=he?re(K,Q):se(K,Q),we}function re(K,Q){var he=Q.head,we=1,ae=he.data;for(K-=ae.length;he=he.next;){var te=he.data,Z=K>te.length?te.length:K;if(Z===te.length?ae+=te:ae+=te.slice(0,K),K-=Z,K===0){Z===te.length?(++we,he.next?Q.head=he.next:Q.head=Q.tail=null):(Q.head=he,he.data=te.slice(Z));break}++we}return Q.length-=we,ae}function se(K,Q){var he=u.allocUnsafe(K),we=Q.head,ae=1;for(we.data.copy(he),K-=we.data.length;we=we.next;){var te=we.data,Z=K>te.length?te.length:K;if(te.copy(he,he.length-K,0,Z),K-=Z,K===0){Z===te.length?(++ae,we.next?Q.head=we.next:Q.head=Q.tail=null):(Q.head=we,we.data=te.slice(Z));break}++ae}return Q.length-=ae,he}function Ce(K){var Q=K._readableState;if(Q.length>0)throw new Error('"endReadable()" called on non-empty stream');Q.endEmitted||(Q.ended=!0,h.nextTick(Y,Q,K))}function Y(K,Q){!K.endEmitted&&K.length===0&&(K.endEmitted=!0,Q.readable=!1,Q.emit("end"))}function q(K,Q){for(var he=0,we=K.length;he<we;he++)if(K[he]===Q)return he;return-1}}).call(this)}).call(this,e("_process"),typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,n,i){n.exports=c;var s=e("./_stream_duplex"),o=Object.create(e("core-util-is"));o.inherits=e("inherits"),o.inherits(c,s);function h(l,u){var p=this._transformState;p.transforming=!1;var m=p.writecb;if(!m)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,u!=null&&this.push(u),m(l);var d=this._readableState;d.reading=!1,(d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}function c(l){if(!(this instanceof c))return new c(l);s.call(this,l),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,l&&(typeof l.transform=="function"&&(this._transform=l.transform),typeof l.flush=="function"&&(this._flush=l.flush)),this.on("prefinish",a)}function a(){var l=this;typeof this._flush=="function"?this._flush(function(u,p){f(l,u,p)}):f(this,null,null)}c.prototype.push=function(l,u){return this._transformState.needTransform=!1,s.prototype.push.call(this,l,u)},c.prototype._transform=function(l,u,p){throw new Error("_transform() is not implemented")},c.prototype._write=function(l,u,p){var m=this._transformState;if(m.writecb=p,m.writechunk=l,m.writeencoding=u,!m.transforming){var d=this._readableState;(m.needTransform||d.needReadable||d.length<d.highWaterMark)&&this._read(d.highWaterMark)}},c.prototype._read=function(l){var u=this._transformState;u.writechunk!==null&&u.writecb&&!u.transforming?(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform)):u.needTransform=!0},c.prototype._destroy=function(l,u){var p=this;s.prototype._destroy.call(this,l,function(m){u(m),p.emit("close")})};function f(l,u,p){if(u)return l.emit("error",u);if(p!=null&&l.push(p),l._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(l._transformState.transforming)throw new Error("Calling transform done when still transforming");return l.push(null)}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,n,i){(function(s,o,h){(function(){var c=e("process-nextick-args");n.exports=C;function a(E){var O=this;this.next=null,this.entry=null,this.finish=function(){S(O,E)}}var f=!s.browser&&["v0.10","v0.9."].indexOf(s.version.slice(0,5))>-1?h:c.nextTick,l;C.WritableState=y;var u=Object.create(e("core-util-is"));u.inherits=e("inherits");var p={deprecate:e("util-deprecate")},m=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,v=(typeof o<"u"?o:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function x(E){return d.from(E)}function g(E){return d.isBuffer(E)||E instanceof v}var b=e("./internal/streams/destroy");u.inherits(C,m);function w(){}function y(E,O){l=l||e("./_stream_duplex"),E=E||{};var z=O instanceof l;this.objectMode=!!E.objectMode,z&&(this.objectMode=this.objectMode||!!E.writableObjectMode);var J=E.highWaterMark,re=E.writableHighWaterMark,se=this.objectMode?16:16*1024;J||J===0?this.highWaterMark=J:z&&(re||re===0)?this.highWaterMark=re:this.highWaterMark=se,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 Ce=E.decodeStrings===!1;this.decodeStrings=!Ce,this.defaultEncoding=E.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Y){L(O,Y)},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 a(this)}y.prototype.getBuffer=function(){for(var O=this.bufferedRequest,z=[];O;)z.push(O),O=O.next;return z},function(){try{Object.defineProperty(y.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var T;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(T=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(E){return T.call(this,E)?!0:this!==C?!1:E&&E._writableState instanceof y}})):T=function(E){return E instanceof this};function C(E){if(l=l||e("./_stream_duplex"),!T.call(C,this)&&!(this instanceof l))return new C(E);this._writableState=new y(E,this),this.writable=!0,E&&(typeof E.write=="function"&&(this._write=E.write),typeof E.writev=="function"&&(this._writev=E.writev),typeof E.destroy=="function"&&(this._destroy=E.destroy),typeof E.final=="function"&&(this._final=E.final)),m.call(this)}C.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function M(E,O){var z=new Error("write after end");E.emit("error",z),c.nextTick(O,z)}function I(E,O,z,J){var re=!0,se=!1;return z===null?se=new TypeError("May not write null values to stream"):typeof z!="string"&&z!==void 0&&!O.objectMode&&(se=new TypeError("Invalid non-string/buffer chunk")),se&&(E.emit("error",se),c.nextTick(J,se),re=!1),re}C.prototype.write=function(E,O,z){var J=this._writableState,re=!1,se=!J.objectMode&&g(E);return se&&!d.isBuffer(E)&&(E=x(E)),typeof O=="function"&&(z=O,O=null),se?O="buffer":O||(O=J.defaultEncoding),typeof z!="function"&&(z=w),J.ended?M(this,z):(se||I(this,J,E,z))&&(J.pendingcb++,re=U(this,J,se,E,O,z)),re},C.prototype.cork=function(){var E=this._writableState;E.corked++},C.prototype.uncork=function(){var E=this._writableState;E.corked&&(E.corked--,!E.writing&&!E.corked&&!E.bufferProcessing&&E.bufferedRequest&&_(this,E))},C.prototype.setDefaultEncoding=function(O){if(typeof O=="string"&&(O=O.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+O);return this._writableState.defaultEncoding=O,this};function B(E,O,z){return!E.objectMode&&E.decodeStrings!==!1&&typeof O=="string"&&(O=d.from(O,z)),O}Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function U(E,O,z,J,re,se){if(!z){var Ce=B(O,J,re);J!==Ce&&(z=!0,re="buffer",J=Ce)}var Y=O.objectMode?1:J.length;O.length+=Y;var q=O.length<O.highWaterMark;if(q||(O.needDrain=!0),O.writing||O.corked){var K=O.lastBufferedRequest;O.lastBufferedRequest={chunk:J,encoding:re,isBuf:z,callback:se,next:null},K?K.next=O.lastBufferedRequest:O.bufferedRequest=O.lastBufferedRequest,O.bufferedRequestCount+=1}else j(E,O,!1,Y,J,re,se);return q}function j(E,O,z,J,re,se,Ce){O.writelen=J,O.writecb=Ce,O.writing=!0,O.sync=!0,z?E._writev(re,O.onwrite):E._write(re,se,O.onwrite),O.sync=!1}function H(E,O,z,J,re){--O.pendingcb,z?(c.nextTick(re,J),c.nextTick(D,E,O),E._writableState.errorEmitted=!0,E.emit("error",J)):(re(J),E._writableState.errorEmitted=!0,E.emit("error",J),D(E,O))}function G(E){E.writing=!1,E.writecb=null,E.length-=E.writelen,E.writelen=0}function L(E,O){var z=E._writableState,J=z.sync,re=z.writecb;if(G(z),O)H(E,z,J,O,re);else{var se=k(z);!se&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&_(E,z),J?f(R,E,z,se,re):R(E,z,se,re)}}function R(E,O,z,J){z||F(E,O),O.pendingcb--,J(),D(E,O)}function F(E,O){O.length===0&&O.needDrain&&(O.needDrain=!1,E.emit("drain"))}function _(E,O){O.bufferProcessing=!0;var z=O.bufferedRequest;if(E._writev&&z&&z.next){var J=O.bufferedRequestCount,re=new Array(J),se=O.corkedRequestsFree;se.entry=z;for(var Ce=0,Y=!0;z;)re[Ce]=z,z.isBuf||(Y=!1),z=z.next,Ce+=1;re.allBuffers=Y,j(E,O,!0,O.length,re,"",se.finish),O.pendingcb++,O.lastBufferedRequest=null,se.next?(O.corkedRequestsFree=se.next,se.next=null):O.corkedRequestsFree=new a(O),O.bufferedRequestCount=0}else{for(;z;){var q=z.chunk,K=z.encoding,Q=z.callback,he=O.objectMode?1:q.length;if(j(E,O,!1,he,q,K,Q),z=z.next,O.bufferedRequestCount--,O.writing)break}z===null&&(O.lastBufferedRequest=null)}O.bufferedRequest=z,O.bufferProcessing=!1}C.prototype._write=function(E,O,z){z(new Error("_write() is not implemented"))},C.prototype._writev=null,C.prototype.end=function(E,O,z){var J=this._writableState;typeof E=="function"?(z=E,E=null,O=null):typeof O=="function"&&(z=O,O=null),E!=null&&this.write(E,O),J.corked&&(J.corked=1,this.uncork()),J.ending||A(this,J,z)};function k(E){return E.ending&&E.length===0&&E.bufferedRequest===null&&!E.finished&&!E.writing}function N(E,O){E._final(function(z){O.pendingcb--,z&&E.emit("error",z),O.prefinished=!0,E.emit("prefinish"),D(E,O)})}function P(E,O){!O.prefinished&&!O.finalCalled&&(typeof E._final=="function"?(O.pendingcb++,O.finalCalled=!0,c.nextTick(N,E,O)):(O.prefinished=!0,E.emit("prefinish")))}function D(E,O){var z=k(O);return z&&(P(E,O),O.pendingcb===0&&(O.finished=!0,E.emit("finish"))),z}function A(E,O,z){O.ending=!0,D(E,O),z&&(O.finished?c.nextTick(z):E.once("finish",z)),O.ended=!0,E.writable=!1}function S(E,O,z){var J=E.entry;for(E.entry=null;J;){var re=J.callback;O.pendingcb--,re(z),J=J.next}O.corkedRequestsFree.next=E}Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),C.prototype.destroy=b.destroy,C.prototype._undestroy=b.undestroy,C.prototype._destroy=function(E,O){this.end(),O(E)}}).call(this)}).call(this,e("_process"),typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,n,i){function s(a,f){if(!(a instanceof f))throw new TypeError("Cannot call a class as a function")}var o=e("safe-buffer").Buffer,h=e("util");function c(a,f,l){a.copy(f,l)}n.exports=function(){function a(){s(this,a),this.head=null,this.tail=null,this.length=0}return a.prototype.push=function(l){var u={data:l,next:null};this.length>0?this.tail.next=u:this.head=u,this.tail=u,++this.length},a.prototype.unshift=function(l){var u={data:l,next:this.head};this.length===0&&(this.tail=u),this.head=u,++this.length},a.prototype.shift=function(){if(this.length!==0){var l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}},a.prototype.clear=function(){this.head=this.tail=null,this.length=0},a.prototype.join=function(l){if(this.length===0)return"";for(var u=this.head,p=""+u.data;u=u.next;)p+=l+u.data;return p},a.prototype.concat=function(l){if(this.length===0)return o.alloc(0);for(var u=o.allocUnsafe(l>>>0),p=this.head,m=0;p;)c(p.data,u,m),m+=p.data.length,p=p.next;return u},a}(),h&&h.inspect&&h.inspect.custom&&(n.exports.prototype[h.inspect.custom]=function(){var a=h.inspect({length:this.length});return this.constructor.name+" "+a})},{"safe-buffer":520,util:188}],514:[function(e,n,i){var s=e("process-nextick-args");function o(a,f){var l=this,u=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return u||p?(f?f(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,s.nextTick(c,this,a)):s.nextTick(c,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(m){!f&&m?l._writableState?l._writableState.errorEmitted||(l._writableState.errorEmitted=!0,s.nextTick(c,l,m)):s.nextTick(c,l,m):f&&f(m)}),this)}function h(){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 c(a,f){a.emit("error",f)}n.exports={destroy:o,undestroy:h}},{"process-nextick-args":466}],515:[function(e,n,i){arguments[4][490][0].apply(i,arguments)},{dup:490,events:422}],516:[function(e,n,i){n.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,n,i){i=n.exports=e("./lib/_stream_readable.js"),i.Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./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(e,n,i){n.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,n,i){n.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,n,i){arguments[4][217][0].apply(i,arguments)},{buffer:220,dup:217}],521:[function(e,n,i){arguments[4][218][0].apply(i,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,n,i){arguments[4][218][0].apply(i,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,n,i){(function(s,o){(function(){var h=e("process/browser.js").nextTick,c=Function.prototype.apply,a=Array.prototype.slice,f={},l=0;i.setTimeout=function(){return new u(c.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new u(c.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(p){p.close()};function u(p,m){this._id=p,this._clearFn=m}u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(p,m){clearTimeout(p._idleTimeoutId),p._idleTimeout=m},i.unenroll=function(p){clearTimeout(p._idleTimeoutId),p._idleTimeout=-1},i._unrefActive=i.active=function(p){clearTimeout(p._idleTimeoutId);var m=p._idleTimeout;m>=0&&(p._idleTimeoutId=setTimeout(function(){p._onTimeout&&p._onTimeout()},m))},i.setImmediate=typeof s=="function"?s:function(p){var m=l++,d=arguments.length<2?!1:a.call(arguments,1);return f[m]=!0,h(function(){f[m]&&(d?p.apply(null,d):p.call(null),i.clearImmediate(m))}),m},i.clearImmediate=typeof o=="function"?o:function(p){delete f[p]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,n,i){(function(s){(function(){n.exports=o;function o(c,a){if(h("noDeprecation"))return c;var f=!1;function l(){if(!f){if(h("throwDeprecation"))throw new Error(a);h("traceDeprecation")?console.trace(a):console.warn(a),f=!0}return c.apply(this,arguments)}return l}function h(c){try{if(!s.localStorage)return!1}catch{return!1}var a=s.localStorage[c];return a==null?!1:String(a).toLowerCase()==="true"}}).call(this)}).call(this,typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(e,n,i){typeof Object.create=="function"?n.exports=function(o,h){o.super_=h,o.prototype=Object.create(h.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}})}:n.exports=function(o,h){o.super_=h;var c=function(){};c.prototype=h.prototype,o.prototype=new c,o.prototype.constructor=o}},{}],526:[function(e,n,i){n.exports=function(o){return o&&typeof o=="object"&&typeof o.copy=="function"&&typeof o.fill=="function"&&typeof o.readUInt8=="function"}},{}],527:[function(e,n,i){(function(s,o){(function(){var h=/%[sdj%]/g;i.format=function(A){if(!I(A)){for(var S=[],E=0;E<arguments.length;E++)S.push(f(arguments[E]));return S.join(" ")}for(var E=1,O=arguments,z=O.length,J=String(A).replace(h,function(se){if(se==="%%")return"%";if(E>=z)return se;switch(se){case"%s":return String(O[E++]);case"%d":return Number(O[E++]);case"%j":try{return JSON.stringify(O[E++])}catch{return"[Circular]"}default:return se}}),re=O[E];E<z;re=O[++E])T(re)||!H(re)?J+=" "+re:J+=" "+f(re);return J},i.deprecate=function(A,S){if(U(o.process))return function(){return i.deprecate(A,S).apply(this,arguments)};if(s.noDeprecation===!0)return A;var E=!1;function O(){if(!E){if(s.throwDeprecation)throw new Error(S);s.traceDeprecation?console.trace(S):console.error(S),E=!0}return A.apply(this,arguments)}return O};var c={},a;i.debuglog=function(A){if(U(a)&&(a={}.NODE_DEBUG||""),A=A.toUpperCase(),!c[A])if(new RegExp("\\b"+A+"\\b","i").test(a)){var S=s.pid;c[A]=function(){var E=i.format.apply(i,arguments);console.error("%s %d: %s",A,S,E)}}else c[A]=function(){};return c[A]};function f(A,S){var E={seen:[],stylize:u};return arguments.length>=3&&(E.depth=arguments[2]),arguments.length>=4&&(E.colors=arguments[3]),y(S)?E.showHidden=S:S&&i._extend(E,S),U(E.showHidden)&&(E.showHidden=!1),U(E.depth)&&(E.depth=2),U(E.colors)&&(E.colors=!1),U(E.customInspect)&&(E.customInspect=!0),E.colors&&(E.stylize=l),m(E,A,E.depth)}i.inspect=f,f.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]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(A,S){var E=f.styles[S];return E?"\x1B["+f.colors[E][0]+"m"+A+"\x1B["+f.colors[E][1]+"m":A}function u(A,S){return A}function p(A){var S={};return A.forEach(function(E,O){S[E]=!0}),S}function m(A,S,E){if(A.customInspect&&S&&R(S.inspect)&&S.inspect!==i.inspect&&!(S.constructor&&S.constructor.prototype===S)){var O=S.inspect(E,A);return I(O)||(O=m(A,O,E)),O}var z=d(A,S);if(z)return z;var J=Object.keys(S),re=p(J);if(A.showHidden&&(J=Object.getOwnPropertyNames(S)),L(S)&&(J.indexOf("message")>=0||J.indexOf("description")>=0))return v(S);if(J.length===0){if(R(S)){var se=S.name?": "+S.name:"";return A.stylize("[Function"+se+"]","special")}if(j(S))return A.stylize(RegExp.prototype.toString.call(S),"regexp");if(G(S))return A.stylize(Date.prototype.toString.call(S),"date");if(L(S))return v(S)}var Ce="",Y=!1,q=["{","}"];if(w(S)&&(Y=!0,q=["[","]"]),R(S)){var K=S.name?": "+S.name:"";Ce=" [Function"+K+"]"}if(j(S)&&(Ce=" "+RegExp.prototype.toString.call(S)),G(S)&&(Ce=" "+Date.prototype.toUTCString.call(S)),L(S)&&(Ce=" "+v(S)),J.length===0&&(!Y||S.length==0))return q[0]+Ce+q[1];if(E<0)return j(S)?A.stylize(RegExp.prototype.toString.call(S),"regexp"):A.stylize("[Object]","special");A.seen.push(S);var Q;return Y?Q=x(A,S,E,re,J):Q=J.map(function(he){return g(A,S,E,re,he,Y)}),A.seen.pop(),b(Q,Ce,q)}function d(A,S){if(U(S))return A.stylize("undefined","undefined");if(I(S)){var E="'"+JSON.stringify(S).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(E,"string")}if(M(S))return A.stylize(""+S,"number");if(y(S))return A.stylize(""+S,"boolean");if(T(S))return A.stylize("null","null")}function v(A){return"["+Error.prototype.toString.call(A)+"]"}function x(A,S,E,O,z){for(var J=[],re=0,se=S.length;re<se;++re)D(S,String(re))?J.push(g(A,S,E,O,String(re),!0)):J.push("");return z.forEach(function(Ce){Ce.match(/^\d+$/)||J.push(g(A,S,E,O,Ce,!0))}),J}function g(A,S,E,O,z,J){var re,se,Ce;if(Ce=Object.getOwnPropertyDescriptor(S,z)||{value:S[z]},Ce.get?Ce.set?se=A.stylize("[Getter/Setter]","special"):se=A.stylize("[Getter]","special"):Ce.set&&(se=A.stylize("[Setter]","special")),D(O,z)||(re="["+z+"]"),se||(A.seen.indexOf(Ce.value)<0?(T(E)?se=m(A,Ce.value,null):se=m(A,Ce.value,E-1),se.indexOf(`
|
||
`)>-1&&(J?se=se.split(`
|
||
`).map(function(Y){return" "+Y}).join(`
|
||
`).substr(2):se=`
|
||
`+se.split(`
|
||
`).map(function(Y){return" "+Y}).join(`
|
||
`))):se=A.stylize("[Circular]","special")),U(re)){if(J&&z.match(/^\d+$/))return se;re=JSON.stringify(""+z),re.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(re=re.substr(1,re.length-2),re=A.stylize(re,"name")):(re=re.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),re=A.stylize(re,"string"))}return re+": "+se}function b(A,S,E){var O=A.reduce(function(z,J){return J.indexOf(`
|
||
`)>=0,z+J.replace(/\u001b\[\d\d?m/g,"").length+1},0);return O>60?E[0]+(S===""?"":S+`
|
||
`)+" "+A.join(`,
|
||
`)+" "+E[1]:E[0]+S+" "+A.join(", ")+" "+E[1]}function w(A){return Array.isArray(A)}i.isArray=w;function y(A){return typeof A=="boolean"}i.isBoolean=y;function T(A){return A===null}i.isNull=T;function C(A){return A==null}i.isNullOrUndefined=C;function M(A){return typeof A=="number"}i.isNumber=M;function I(A){return typeof A=="string"}i.isString=I;function B(A){return typeof A=="symbol"}i.isSymbol=B;function U(A){return A===void 0}i.isUndefined=U;function j(A){return H(A)&&_(A)==="[object RegExp]"}i.isRegExp=j;function H(A){return typeof A=="object"&&A!==null}i.isObject=H;function G(A){return H(A)&&_(A)==="[object Date]"}i.isDate=G;function L(A){return H(A)&&(_(A)==="[object Error]"||A instanceof Error)}i.isError=L;function R(A){return typeof A=="function"}i.isFunction=R;function F(A){return A===null||typeof A=="boolean"||typeof A=="number"||typeof A=="string"||typeof A=="symbol"||typeof A>"u"}i.isPrimitive=F,i.isBuffer=e("./support/isBuffer");function _(A){return Object.prototype.toString.call(A)}function k(A){return A<10?"0"+A.toString(10):A.toString(10)}var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var A=new Date,S=[k(A.getHours()),k(A.getMinutes()),k(A.getSeconds())].join(":");return[A.getDate(),N[A.getMonth()],S].join(" ")}i.log=function(){console.log("%s - %s",P(),i.format.apply(i,arguments))},i.inherits=e("inherits"),i._extend=function(A,S){if(!S||!H(S))return A;for(var E=Object.keys(S),O=E.length;O--;)A[E[O]]=S[E[O]];return A};function D(A,S){return Object.prototype.hasOwnProperty.call(A,S)}}).call(this)}).call(this,e("_process"),typeof It<"u"?It:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"v1",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(i,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"v4",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(i,"v5",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(i,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(i,"version",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(i,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(i,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(i,"parse",{enumerable:!0,get:function(){return p.default}});var s=m(e("./v1.js")),o=m(e("./v3.js")),h=m(e("./v4.js")),c=m(e("./v5.js")),a=m(e("./nil.js")),f=m(e("./version.js")),l=m(e("./validate.js")),u=m(e("./stringify.js")),p=m(e("./parse.js"));function m(d){return d&&d.__esModule?d:{default:d}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;function s(g){if(typeof g=="string"){const b=unescape(encodeURIComponent(g));g=new Uint8Array(b.length);for(let w=0;w<b.length;++w)g[w]=b.charCodeAt(w)}return o(c(a(g),g.length*8))}function o(g){const b=[],w=g.length*32,y="0123456789abcdef";for(let T=0;T<w;T+=8){const C=g[T>>5]>>>T%32&255,M=parseInt(y.charAt(C>>>4&15)+y.charAt(C&15),16);b.push(M)}return b}function h(g){return(g+64>>>9<<4)+14+1}function c(g,b){g[b>>5]|=128<<b%32,g[h(b)-1]=b;let w=1732584193,y=-271733879,T=-1732584194,C=271733878;for(let M=0;M<g.length;M+=16){const I=w,B=y,U=T,j=C;w=p(w,y,T,C,g[M],7,-680876936),C=p(C,w,y,T,g[M+1],12,-389564586),T=p(T,C,w,y,g[M+2],17,606105819),y=p(y,T,C,w,g[M+3],22,-1044525330),w=p(w,y,T,C,g[M+4],7,-176418897),C=p(C,w,y,T,g[M+5],12,1200080426),T=p(T,C,w,y,g[M+6],17,-1473231341),y=p(y,T,C,w,g[M+7],22,-45705983),w=p(w,y,T,C,g[M+8],7,1770035416),C=p(C,w,y,T,g[M+9],12,-1958414417),T=p(T,C,w,y,g[M+10],17,-42063),y=p(y,T,C,w,g[M+11],22,-1990404162),w=p(w,y,T,C,g[M+12],7,1804603682),C=p(C,w,y,T,g[M+13],12,-40341101),T=p(T,C,w,y,g[M+14],17,-1502002290),y=p(y,T,C,w,g[M+15],22,1236535329),w=m(w,y,T,C,g[M+1],5,-165796510),C=m(C,w,y,T,g[M+6],9,-1069501632),T=m(T,C,w,y,g[M+11],14,643717713),y=m(y,T,C,w,g[M],20,-373897302),w=m(w,y,T,C,g[M+5],5,-701558691),C=m(C,w,y,T,g[M+10],9,38016083),T=m(T,C,w,y,g[M+15],14,-660478335),y=m(y,T,C,w,g[M+4],20,-405537848),w=m(w,y,T,C,g[M+9],5,568446438),C=m(C,w,y,T,g[M+14],9,-1019803690),T=m(T,C,w,y,g[M+3],14,-187363961),y=m(y,T,C,w,g[M+8],20,1163531501),w=m(w,y,T,C,g[M+13],5,-1444681467),C=m(C,w,y,T,g[M+2],9,-51403784),T=m(T,C,w,y,g[M+7],14,1735328473),y=m(y,T,C,w,g[M+12],20,-1926607734),w=d(w,y,T,C,g[M+5],4,-378558),C=d(C,w,y,T,g[M+8],11,-2022574463),T=d(T,C,w,y,g[M+11],16,1839030562),y=d(y,T,C,w,g[M+14],23,-35309556),w=d(w,y,T,C,g[M+1],4,-1530992060),C=d(C,w,y,T,g[M+4],11,1272893353),T=d(T,C,w,y,g[M+7],16,-155497632),y=d(y,T,C,w,g[M+10],23,-1094730640),w=d(w,y,T,C,g[M+13],4,681279174),C=d(C,w,y,T,g[M],11,-358537222),T=d(T,C,w,y,g[M+3],16,-722521979),y=d(y,T,C,w,g[M+6],23,76029189),w=d(w,y,T,C,g[M+9],4,-640364487),C=d(C,w,y,T,g[M+12],11,-421815835),T=d(T,C,w,y,g[M+15],16,530742520),y=d(y,T,C,w,g[M+2],23,-995338651),w=v(w,y,T,C,g[M],6,-198630844),C=v(C,w,y,T,g[M+7],10,1126891415),T=v(T,C,w,y,g[M+14],15,-1416354905),y=v(y,T,C,w,g[M+5],21,-57434055),w=v(w,y,T,C,g[M+12],6,1700485571),C=v(C,w,y,T,g[M+3],10,-1894986606),T=v(T,C,w,y,g[M+10],15,-1051523),y=v(y,T,C,w,g[M+1],21,-2054922799),w=v(w,y,T,C,g[M+8],6,1873313359),C=v(C,w,y,T,g[M+15],10,-30611744),T=v(T,C,w,y,g[M+6],15,-1560198380),y=v(y,T,C,w,g[M+13],21,1309151649),w=v(w,y,T,C,g[M+4],6,-145523070),C=v(C,w,y,T,g[M+11],10,-1120210379),T=v(T,C,w,y,g[M+2],15,718787259),y=v(y,T,C,w,g[M+9],21,-343485551),w=f(w,I),y=f(y,B),T=f(T,U),C=f(C,j)}return[w,y,T,C]}function a(g){if(g.length===0)return[];const b=g.length*8,w=new Uint32Array(h(b));for(let y=0;y<b;y+=8)w[y>>5]|=(g[y/8]&255)<<y%32;return w}function f(g,b){const w=(g&65535)+(b&65535);return(g>>16)+(b>>16)+(w>>16)<<16|w&65535}function l(g,b){return g<<b|g>>>32-b}function u(g,b,w,y,T,C){return f(l(f(f(b,g),f(y,C)),T),w)}function p(g,b,w,y,T,C,M){return u(b&w|~b&y,g,b,T,C,M)}function m(g,b,w,y,T,C,M){return u(b&y|w&~y,g,b,T,C,M)}function d(g,b,w,y,T,C,M){return u(b^w^y,g,b,T,C,M)}function v(g,b,w,y,T,C,M){return u(w^(b|~y),g,b,T,C,M)}var x=s;i.default=x},{}],530:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s="00000000-0000-0000-0000-000000000000";i.default=s},{}],531:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=o(e("./validate.js"));function o(a){return a&&a.__esModule?a:{default:a}}function h(a){if(!(0,s.default)(a))throw TypeError("Invalid UUID");let f;const l=new Uint8Array(16);return l[0]=(f=parseInt(a.slice(0,8),16))>>>24,l[1]=f>>>16&255,l[2]=f>>>8&255,l[3]=f&255,l[4]=(f=parseInt(a.slice(9,13),16))>>>8,l[5]=f&255,l[6]=(f=parseInt(a.slice(14,18),16))>>>8,l[7]=f&255,l[8]=(f=parseInt(a.slice(19,23),16))>>>8,l[9]=f&255,l[10]=(f=parseInt(a.slice(24,36),16))/1099511627776&255,l[11]=f/4294967296&255,l[12]=f>>>24&255,l[13]=f>>>16&255,l[14]=f>>>8&255,l[15]=f&255,l}var c=h;i.default=c},{"./validate.js":541}],532:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=/^(?:[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;i.default=s},{}],533:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=h;let s;const o=new Uint8Array(16);function h(){if(!s&&(s=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(o)}},{}],534:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;function s(a,f,l,u){switch(a){case 0:return f&l^~f&u;case 1:return f^l^u;case 2:return f&l^f&u^l&u;case 3:return f^l^u}}function o(a,f){return a<<f|a>>>32-f}function h(a){const f=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const d=unescape(encodeURIComponent(a));a=[];for(let v=0;v<d.length;++v)a.push(d.charCodeAt(v))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const u=a.length/4+2,p=Math.ceil(u/16),m=new Array(p);for(let d=0;d<p;++d){const v=new Uint32Array(16);for(let x=0;x<16;++x)v[x]=a[d*64+x*4]<<24|a[d*64+x*4+1]<<16|a[d*64+x*4+2]<<8|a[d*64+x*4+3];m[d]=v}m[p-1][14]=(a.length-1)*8/Math.pow(2,32),m[p-1][14]=Math.floor(m[p-1][14]),m[p-1][15]=(a.length-1)*8&4294967295;for(let d=0;d<p;++d){const v=new Uint32Array(80);for(let T=0;T<16;++T)v[T]=m[d][T];for(let T=16;T<80;++T)v[T]=o(v[T-3]^v[T-8]^v[T-14]^v[T-16],1);let x=l[0],g=l[1],b=l[2],w=l[3],y=l[4];for(let T=0;T<80;++T){const C=Math.floor(T/20),M=o(x,5)+s(C,g,b,w)+y+f[C]+v[T]>>>0;y=w,w=b,b=o(g,30)>>>0,g=x,x=M}l[0]=l[0]+x>>>0,l[1]=l[1]+g>>>0,l[2]=l[2]+b>>>0,l[3]=l[3]+w>>>0,l[4]=l[4]+y>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var c=h;i.default=c},{}],535:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=o(e("./validate.js"));function o(f){return f&&f.__esModule?f:{default:f}}const h=[];for(let f=0;f<256;++f)h.push((f+256).toString(16).substr(1));function c(f){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const u=(h[f[l+0]]+h[f[l+1]]+h[f[l+2]]+h[f[l+3]]+"-"+h[f[l+4]]+h[f[l+5]]+"-"+h[f[l+6]]+h[f[l+7]]+"-"+h[f[l+8]]+h[f[l+9]]+"-"+h[f[l+10]]+h[f[l+11]]+h[f[l+12]]+h[f[l+13]]+h[f[l+14]]+h[f[l+15]]).toLowerCase();if(!(0,s.default)(u))throw TypeError("Stringified UUID is invalid");return u}var a=c;i.default=a},{"./validate.js":541}],536:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=h(e("./rng.js")),o=h(e("./stringify.js"));function h(m){return m&&m.__esModule?m:{default:m}}let c,a,f=0,l=0;function u(m,d,v){let x=d&&v||0;const g=d||new Array(16);m=m||{};let b=m.node||c,w=m.clockseq!==void 0?m.clockseq:a;if(b==null||w==null){const B=m.random||(m.rng||s.default)();b==null&&(b=c=[B[0]|1,B[1],B[2],B[3],B[4],B[5]]),w==null&&(w=a=(B[6]<<8|B[7])&16383)}let y=m.msecs!==void 0?m.msecs:Date.now(),T=m.nsecs!==void 0?m.nsecs:l+1;const C=y-f+(T-l)/1e4;if(C<0&&m.clockseq===void 0&&(w=w+1&16383),(C<0||y>f)&&m.nsecs===void 0&&(T=0),T>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=y,l=T,a=w,y+=122192928e5;const M=((y&268435455)*1e4+T)%4294967296;g[x++]=M>>>24&255,g[x++]=M>>>16&255,g[x++]=M>>>8&255,g[x++]=M&255;const I=y/4294967296*1e4&268435455;g[x++]=I>>>8&255,g[x++]=I&255,g[x++]=I>>>24&15|16,g[x++]=I>>>16&255,g[x++]=w>>>8|128,g[x++]=w&255;for(let B=0;B<6;++B)g[x+B]=b[B];return d||(0,o.default)(g)}var p=u;i.default=p},{"./rng.js":533,"./stringify.js":535}],537:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=h(e("./v35.js")),o=h(e("./md5.js"));function h(f){return f&&f.__esModule?f:{default:f}}var a=(0,s.default)("v3",48,o.default);i.default=a},{"./md5.js":529,"./v35.js":538}],538:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=l,i.URL=i.DNS=void 0;var s=h(e("./stringify.js")),o=h(e("./parse.js"));function h(u){return u&&u.__esModule?u:{default:u}}function c(u){u=unescape(encodeURIComponent(u));const p=[];for(let m=0;m<u.length;++m)p.push(u.charCodeAt(m));return p}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";i.DNS=a;const f="6ba7b811-9dad-11d1-80b4-00c04fd430c8";i.URL=f;function l(u,p,m){function d(v,x,g,b){if(typeof v=="string"&&(v=c(v)),typeof x=="string"&&(x=(0,o.default)(x)),x.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+v.length);if(w.set(x),w.set(v,x.length),w=m(w),w[6]=w[6]&15|p,w[8]=w[8]&63|128,g){b=b||0;for(let y=0;y<16;++y)g[b+y]=w[y];return g}return(0,s.default)(w)}try{d.name=u}catch{}return d.DNS=a,d.URL=f,d}},{"./parse.js":531,"./stringify.js":535}],539:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=h(e("./rng.js")),o=h(e("./stringify.js"));function h(f){return f&&f.__esModule?f:{default:f}}function c(f,l,u){f=f||{};const p=f.random||(f.rng||s.default)();if(p[6]=p[6]&15|64,p[8]=p[8]&63|128,l){u=u||0;for(let m=0;m<16;++m)l[u+m]=p[m];return l}return(0,o.default)(p)}var a=c;i.default=a},{"./rng.js":533,"./stringify.js":535}],540:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=h(e("./v35.js")),o=h(e("./sha1.js"));function h(f){return f&&f.__esModule?f:{default:f}}var a=(0,s.default)("v5",80,o.default);i.default=a},{"./sha1.js":534,"./v35.js":538}],541:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=o(e("./regex.js"));function o(a){return a&&a.__esModule?a:{default:a}}function h(a){return typeof a=="string"&&s.default.test(a)}var c=h;i.default=c},{"./regex.js":532}],542:[function(e,n,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var s=o(e("./validate.js"));function o(a){return a&&a.__esModule?a:{default:a}}function h(a){if(!(0,s.default)(a))throw TypeError("Invalid UUID");return parseInt(a.substr(14,1),16)}var c=h;i.default=c},{"./validate.js":541}],543:[function(e,n,i){/**
|
||
* 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(i,"__esModule",{value:!0}),i.CHAR=`
|
||
\r --<2D>𐀀-`,i.S=` \r
|
||
`,i.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",i.NAME_CHAR="-"+i.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",i.CHAR_RE=new RegExp("^["+i.CHAR+"]$","u"),i.S_RE=new RegExp("^["+i.S+"]+$","u"),i.NAME_START_CHAR_RE=new RegExp("^["+i.NAME_START_CHAR+"]$","u"),i.NAME_CHAR_RE=new RegExp("^["+i.NAME_CHAR+"]$","u"),i.NAME_RE=new RegExp("^["+i.NAME_START_CHAR+"]["+i.NAME_CHAR+"]*$","u"),i.NMTOKEN_RE=new RegExp("^["+i.NAME_CHAR+"]+$","u");var s=9,o=10,h=13,c=32;i.S_LIST=[c,o,h,s];function a(p){return p>=c&&p<=55295||p===o||p===h||p===s||p>=57344&&p<=65533||p>=65536&&p<=1114111}i.isChar=a;function f(p){return p===c||p===o||p===h||p===s}i.isS=f;function l(p){return p>=65&&p<=90||p>=97&&p<=122||p===58||p===95||p===8204||p===8205||p>=192&&p<=214||p>=216&&p<=246||p>=248&&p<=767||p>=880&&p<=893||p>=895&&p<=8191||p>=8304&&p<=8591||p>=11264&&p<=12271||p>=12289&&p<=55295||p>=63744&&p<=64975||p>=65008&&p<=65533||p>=65536&&p<=983039}i.isNameStartChar=l;function u(p){return l(p)||p>=48&&p<=57||p===45||p===46||p===183||p>=768&&p<=879||p>=8255&&p<=8256}i.isNameChar=u},{}],544:[function(e,n,i){/**
|
||
* 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(i,"__esModule",{value:!0}),i.CHAR="--<2D>𐀀-",i.RESTRICTED_CHAR="-\b\v\f---",i.S=` \r
|
||
`,i.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",i.NAME_CHAR="-"+i.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",i.CHAR_RE=new RegExp("^["+i.CHAR+"]$","u"),i.RESTRICTED_CHAR_RE=new RegExp("^["+i.RESTRICTED_CHAR+"]$","u"),i.S_RE=new RegExp("^["+i.S+"]+$","u"),i.NAME_START_CHAR_RE=new RegExp("^["+i.NAME_START_CHAR+"]$","u"),i.NAME_CHAR_RE=new RegExp("^["+i.NAME_CHAR+"]$","u"),i.NAME_RE=new RegExp("^["+i.NAME_START_CHAR+"]["+i.NAME_CHAR+"]*$","u"),i.NMTOKEN_RE=new RegExp("^["+i.NAME_CHAR+"]+$","u");var s=9,o=10,h=13,c=32;i.S_LIST=[c,o,h,s];function a(d){return d>=1&&d<=55295||d>=57344&&d<=65533||d>=65536&&d<=1114111}i.isChar=a;function f(d){return d>=1&&d<=8||d===11||d===12||d>=14&&d<=31||d>=127&&d<=132||d>=134&&d<=159}i.isRestrictedChar=f;function l(d){return d===9||d===10||d===13||d>31&&d<127||d===133||d>159&&d<=55295||d>=57344&&d<=65533||d>=65536&&d<=1114111}i.isCharAndNotRestricted=l;function u(d){return d===c||d===o||d===h||d===s}i.isS=u;function p(d){return d>=65&&d<=90||d>=97&&d<=122||d===58||d===95||d===8204||d===8205||d>=192&&d<=214||d>=216&&d<=246||d>=248&&d<=767||d>=880&&d<=893||d>=895&&d<=8191||d>=8304&&d<=8591||d>=11264&&d<=12271||d>=12289&&d<=55295||d>=63744&&d<=64975||d>=65008&&d<=65533||d>=65536&&d<=983039}i.isNameStartChar=p;function m(d){return p(d)||d>=48&&d<=57||d===45||d===46||d===183||d>=768&&d<=879||d>=8255&&d<=8256}i.isNameChar=m},{}],545:[function(e,n,i){/**
|
||
* Character class utilities for XML NS 1.0 edition 3.
|
||
*
|
||
* @author Louis-Dominique Dubeau
|
||
* @license MIT
|
||
* @copyright Louis-Dominique Dubeau
|
||
*/Object.defineProperty(i,"__esModule",{value:!0}),i.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-<2D>𐀀-",i.NC_NAME_CHAR="-"+i.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",i.NC_NAME_START_CHAR_RE=new RegExp("^["+i.NC_NAME_START_CHAR+"]$","u"),i.NC_NAME_CHAR_RE=new RegExp("^["+i.NC_NAME_CHAR+"]$","u"),i.NC_NAME_RE=new RegExp("^["+i.NC_NAME_START_CHAR+"]["+i.NC_NAME_CHAR+"]*$","u");function s(h){return h>=65&&h<=90||h===95||h>=97&&h<=122||h>=192&&h<=214||h>=216&&h<=246||h>=248&&h<=767||h>=880&&h<=893||h>=895&&h<=8191||h>=8204&&h<=8205||h>=8304&&h<=8591||h>=11264&&h<=12271||h>=12289&&h<=55295||h>=63744&&h<=64975||h>=65008&&h<=65533||h>=65536&&h<=983039}i.isNCNameStartChar=s;function o(h){return s(h)||h===45||h===46||h>=48&&h<=57||h===183||h>=768&&h<=879||h>=8255&&h<=8256}i.isNCNameChar=o},{}]},{},[15])(15)})})(Oh);var y1=Oh.exports;function Qa(t){"@babel/helpers - typeof";return Qa=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},Qa(t)}var _1=/^\s+/,E1=/\s+$/;function ht(t,r){if(t=t||"",r=r||{},t instanceof ht)return t;if(!(this instanceof ht))return new ht(t,r);var e=T1(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}ht.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 r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},getLuminance:function(){var r=this.toRgb(),e,n,i,s,o,h;return e=r.r/255,n=r.g/255,i=r.b/255,e<=.03928?s=e/12.92:s=Math.pow((e+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),i<=.03928?h=i/12.92:h=Math.pow((i+.055)/1.055,2.4),.2126*s+.7152*o+.0722*h},setAlpha:function(r){return this._a=Ih(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=ql(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=ql(this._r,this._g,this._b),e=Math.round(r.h*360),n=Math.round(r.s*100),i=Math.round(r.v*100);return this._a==1?"hsv("+e+", "+n+"%, "+i+"%)":"hsva("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var r=Ql(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=Ql(this._r,this._g,this._b),e=Math.round(r.h*360),n=Math.round(r.s*100),i=Math.round(r.l*100);return this._a==1?"hsl("+e+", "+n+"%, "+i+"%)":"hsla("+e+", "+n+"%, "+i+"%, "+this._roundA+")"},toHex:function(r){return ec(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return A1(this._r,this._g,this._b,this._a,r)},toHex8String:function(r){return"#"+this.toHex8(r)},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(Qt(this._r,255)*100)+"%",g:Math.round(Qt(this._g,255)*100)+"%",b:Math.round(Qt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Qt(this._r,255)*100)+"%, "+Math.round(Qt(this._g,255)*100)+"%, "+Math.round(Qt(this._b,255)*100)+"%)":"rgba("+Math.round(Qt(this._r,255)*100)+"%, "+Math.round(Qt(this._g,255)*100)+"%, "+Math.round(Qt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:U1[ec(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var e="#"+tc(this._r,this._g,this._b,this._a),n=e,i=this._gradientType?"GradientType = 1, ":"";if(r){var s=ht(r);n="#"+tc(s._r,s._g,s._b,s._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+e+",endColorstr="+n+")"},toString:function(r){var e=!!r;r=r||this._format;var n=!1,i=this._a<1&&this._a>=0,s=!e&&i&&(r==="hex"||r==="hex6"||r==="hex3"||r==="hex4"||r==="hex8"||r==="name");return s?r==="name"&&this._a===0?this.toName():this.toRgbString():(r==="rgb"&&(n=this.toRgbString()),r==="prgb"&&(n=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(n=this.toHexString()),r==="hex3"&&(n=this.toHexString(!0)),r==="hex4"&&(n=this.toHex8String(!0)),r==="hex8"&&(n=this.toHex8String()),r==="name"&&(n=this.toName()),r==="hsl"&&(n=this.toHslString()),r==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return ht(this.toString())},_applyModification:function(r,e){var n=r.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(O1,arguments)},brighten:function(){return this._applyModification(I1,arguments)},darken:function(){return this._applyModification(D1,arguments)},desaturate:function(){return this._applyModification(F1,arguments)},saturate:function(){return this._applyModification(R1,arguments)},greyscale:function(){return this._applyModification(M1,arguments)},spin:function(){return this._applyModification(N1,arguments)},_applyCombination:function(r,e){return r.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(L1,arguments)},complement:function(){return this._applyCombination(P1,arguments)},monochromatic:function(){return this._applyCombination(j1,arguments)},splitcomplement:function(){return this._applyCombination(B1,arguments)},triad:function(){return this._applyCombination(rc,[3])},tetrad:function(){return this._applyCombination(rc,[4])}};ht.fromRatio=function(t,r){if(Qa(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=ks(t[n]));t=e}return ht(t,r)};function T1(t){var r={r:0,g:0,b:0},e=1,n=null,i=null,s=null,o=!1,h=!1;return typeof t=="string"&&(t=W1(t)),Qa(t)=="object"&&(Kn(t.r)&&Kn(t.g)&&Kn(t.b)?(r=S1(t.r,t.g,t.b),o=!0,h=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Kn(t.h)&&Kn(t.s)&&Kn(t.v)?(n=ks(t.s),i=ks(t.v),r=C1(t.h,n,i),o=!0,h="hsv"):Kn(t.h)&&Kn(t.s)&&Kn(t.l)&&(n=ks(t.s),s=ks(t.l),r=k1(t.h,n,s),o=!0,h="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=Ih(e),{ok:o,format:t.format||h,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:e}}function S1(t,r,e){return{r:Qt(t,255)*255,g:Qt(r,255)*255,b:Qt(e,255)*255}}function Ql(t,r,e){t=Qt(t,255),r=Qt(r,255),e=Qt(e,255);var n=Math.max(t,r,e),i=Math.min(t,r,e),s,o,h=(n+i)/2;if(n==i)s=o=0;else{var c=n-i;switch(o=h>.5?c/(2-n-i):c/(n+i),n){case t:s=(r-e)/c+(r<e?6:0);break;case r:s=(e-t)/c+2;break;case e:s=(t-r)/c+4;break}s/=6}return{h:s,s:o,l:h}}function k1(t,r,e){var n,i,s;t=Qt(t,360),r=Qt(r,100),e=Qt(e,100);function o(a,f,l){return l<0&&(l+=1),l>1&&(l-=1),l<1/6?a+(f-a)*6*l:l<1/2?f:l<2/3?a+(f-a)*(2/3-l)*6:a}if(r===0)n=i=s=e;else{var h=e<.5?e*(1+r):e+r-e*r,c=2*e-h;n=o(c,h,t+1/3),i=o(c,h,t),s=o(c,h,t-1/3)}return{r:n*255,g:i*255,b:s*255}}function ql(t,r,e){t=Qt(t,255),r=Qt(r,255),e=Qt(e,255);var n=Math.max(t,r,e),i=Math.min(t,r,e),s,o,h=n,c=n-i;if(o=n===0?0:c/n,n==i)s=0;else{switch(n){case t:s=(r-e)/c+(r<e?6:0);break;case r:s=(e-t)/c+2;break;case e:s=(t-r)/c+4;break}s/=6}return{h:s,s:o,v:h}}function C1(t,r,e){t=Qt(t,360)*6,r=Qt(r,100),e=Qt(e,100);var n=Math.floor(t),i=t-n,s=e*(1-r),o=e*(1-i*r),h=e*(1-(1-i)*r),c=n%6,a=[e,o,s,s,h,e][c],f=[h,e,e,o,s,s][c],l=[s,s,h,e,e,o][c];return{r:a*255,g:f*255,b:l*255}}function ec(t,r,e,n){var i=[Tn(Math.round(t).toString(16)),Tn(Math.round(r).toString(16)),Tn(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 A1(t,r,e,n,i){var s=[Tn(Math.round(t).toString(16)),Tn(Math.round(r).toString(16)),Tn(Math.round(e).toString(16)),Tn(Dh(n))];return i&&s[0].charAt(0)==s[0].charAt(1)&&s[1].charAt(0)==s[1].charAt(1)&&s[2].charAt(0)==s[2].charAt(1)&&s[3].charAt(0)==s[3].charAt(1)?s[0].charAt(0)+s[1].charAt(0)+s[2].charAt(0)+s[3].charAt(0):s.join("")}function tc(t,r,e,n){var i=[Tn(Dh(n)),Tn(Math.round(t).toString(16)),Tn(Math.round(r).toString(16)),Tn(Math.round(e).toString(16))];return i.join("")}ht.equals=function(t,r){return!t||!r?!1:ht(t).toRgbString()==ht(r).toRgbString()};ht.random=function(){return ht.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function F1(t,r){r=r===0?0:r||10;var e=ht(t).toHsl();return e.s-=r/100,e.s=uo(e.s),ht(e)}function R1(t,r){r=r===0?0:r||10;var e=ht(t).toHsl();return e.s+=r/100,e.s=uo(e.s),ht(e)}function M1(t){return ht(t).desaturate(100)}function O1(t,r){r=r===0?0:r||10;var e=ht(t).toHsl();return e.l+=r/100,e.l=uo(e.l),ht(e)}function I1(t,r){r=r===0?0:r||10;var e=ht(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(255*-(r/100)))),e.g=Math.max(0,Math.min(255,e.g-Math.round(255*-(r/100)))),e.b=Math.max(0,Math.min(255,e.b-Math.round(255*-(r/100)))),ht(e)}function D1(t,r){r=r===0?0:r||10;var e=ht(t).toHsl();return e.l-=r/100,e.l=uo(e.l),ht(e)}function N1(t,r){var e=ht(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,ht(e)}function P1(t){var r=ht(t).toHsl();return r.h=(r.h+180)%360,ht(r)}function rc(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=ht(t).toHsl(),n=[ht(t)],i=360/r,s=1;s<r;s++)n.push(ht({h:(e.h+s*i)%360,s:e.s,l:e.l}));return n}function B1(t){var r=ht(t).toHsl(),e=r.h;return[ht(t),ht({h:(e+72)%360,s:r.s,l:r.l}),ht({h:(e+216)%360,s:r.s,l:r.l})]}function L1(t,r,e){r=r||6,e=e||30;var n=ht(t).toHsl(),i=360/e,s=[ht(t)];for(n.h=(n.h-(i*r>>1)+720)%360;--r;)n.h=(n.h+i)%360,s.push(ht(n));return s}function j1(t,r){r=r||6;for(var e=ht(t).toHsv(),n=e.h,i=e.s,s=e.v,o=[],h=1/r;r--;)o.push(ht({h:n,s:i,v:s})),s=(s+h)%1;return o}ht.mix=function(t,r,e){e=e===0?0:e||50;var n=ht(t).toRgb(),i=ht(r).toRgb(),s=e/100,o={r:(i.r-n.r)*s+n.r,g:(i.g-n.g)*s+n.g,b:(i.b-n.b)*s+n.b,a:(i.a-n.a)*s+n.a};return ht(o)};ht.readability=function(t,r){var e=ht(t),n=ht(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)};ht.isReadable=function(t,r,e){var n=ht.readability(t,r),i,s;switch(s=!1,i=X1(e),i.level+i.size){case"AAsmall":case"AAAlarge":s=n>=4.5;break;case"AAlarge":s=n>=3;break;case"AAAsmall":s=n>=7;break}return s};ht.mostReadable=function(t,r,e){var n=null,i=0,s,o,h,c;e=e||{},o=e.includeFallbackColors,h=e.level,c=e.size;for(var a=0;a<r.length;a++)s=ht.readability(t,r[a]),s>i&&(i=s,n=ht(r[a]));return ht.isReadable(t,n,{level:h,size:c})||!o?n:(e.includeFallbackColors=!1,ht.mostReadable(t,["#fff","#000"],e))};var xf=ht.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"},U1=ht.hexNames=H1(xf);function H1(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function Ih(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Qt(t,r){z1(t)&&(t="100%");var e=$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 uo(t){return Math.min(1,Math.max(0,t))}function Qr(t){return parseInt(t,16)}function z1(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function $1(t){return typeof t=="string"&&t.indexOf("%")!=-1}function Tn(t){return t.length==1?"0"+t:""+t}function ks(t){return t<=1&&(t=t*100+"%"),t}function Dh(t){return Math.round(parseFloat(t)*255).toString(16)}function nc(t){return Qr(t)/255}var En=function(){var t="[-\\+]?\\d+%?",r="[-\\+]?\\d*\\.\\d+%?",e="(?:"+r+")|(?:"+t+")",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",i="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),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 Kn(t){return!!En.CSS_UNIT.exec(t)}function W1(t){t=t.replace(_1,"").replace(E1,"").toLowerCase();var r=!1;if(xf[t])t=xf[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=En.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=En.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=En.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=En.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=En.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=En.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=En.hex8.exec(t))?{r:Qr(e[1]),g:Qr(e[2]),b:Qr(e[3]),a:nc(e[4]),format:r?"name":"hex8"}:(e=En.hex6.exec(t))?{r:Qr(e[1]),g:Qr(e[2]),b:Qr(e[3]),format:r?"name":"hex"}:(e=En.hex4.exec(t))?{r:Qr(e[1]+""+e[1]),g:Qr(e[2]+""+e[2]),b:Qr(e[3]+""+e[3]),a:nc(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=En.hex3.exec(t))?{r:Qr(e[1]+""+e[1]),g:Qr(e[2]+""+e[2]),b:Qr(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function X1(t){var r,e;return t=t||{level:"AA",size:"small"},r=(t.level||"AA").toUpperCase(),e=(t.size||"small").toLowerCase(),r!=="AA"&&r!=="AAA"&&(r="AA"),e!=="small"&&e!=="large"&&(e="small"),{level:r,size:e}}function Nh(t){t=t.replace("#","");for(var r=t.match(/../g),e=0;e<3;e++)r[e]=parseInt(r[e],16);return r}function Ph(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 V1(t,r){for(var e=Nh(t),n=0;n<3;n++)e[n]=Math.floor(e[n]*(1-r));return Ph(e[0],e[1],e[2])}function G1(t,r){for(var e=Nh(t),n=0;n<3;n++)e[n]=Math.floor((255-e[n])*r+e[n]);return Ph(e[0],e[1],e[2])}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var qa={};qa.version="0.18.5";var Bh=1252,K1=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],zf={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},$f=function(t){K1.indexOf(t)!=-1&&(Bh=zf[0]=t)};function Y1(){$f(1252)}var Sn=function(t){$f(t)};function Wf(){Sn(1200),Y1()}function ic(t){for(var r=[],e=0,n=t.length;e<n;++e)r[e]=t.charCodeAt(e);return r}function Z1(t){for(var r=[],e=0;e<t.length>>1;++e)r[e]=String.fromCharCode(t.charCodeAt(2*e)+(t.charCodeAt(2*e+1)<<8));return r.join("")}function Lh(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 Cs=function(t){var r=t.charCodeAt(0),e=t.charCodeAt(1);return r==255&&e==254?Z1(t.slice(2)):r==254&&e==255?Lh(t.slice(2)):r==65279?t.slice(1):t},Ra=function(r){return String.fromCharCode(r)},sc=function(r){return String.fromCharCode(r)},ci,hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ls(t){for(var r="",e=0,n=0,i=0,s=0,o=0,h=0,c=0,a=0;a<t.length;)e=t.charCodeAt(a++),s=e>>2,n=t.charCodeAt(a++),o=(e&3)<<4|n>>4,i=t.charCodeAt(a++),h=(n&15)<<2|i>>6,c=i&63,isNaN(n)?h=c=64:isNaN(i)&&(c=64),r+=hi.charAt(s)+hi.charAt(o)+hi.charAt(h)+hi.charAt(c);return r}function nn(t){var r="",e=0,n=0,i=0,s=0,o=0,h=0,c=0;t=t.replace(/[^\w\+\/\=]/g,"");for(var a=0;a<t.length;)s=hi.indexOf(t.charAt(a++)),o=hi.indexOf(t.charAt(a++)),e=s<<2|o>>4,r+=String.fromCharCode(e),h=hi.indexOf(t.charAt(a++)),n=(o&15)<<4|h>>2,h!==64&&(r+=String.fromCharCode(n)),c=hi.indexOf(t.charAt(a++)),i=(h&3)<<6|c,c!==64&&(r+=String.fromCharCode(i));return r}var St=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),ri=function(){if(typeof Buffer<"u"){var t=!Buffer.from;if(!t)try{Buffer.from("foo","utf8")}catch{t=!0}return t?function(r,e){return e?new Buffer(r,e):new Buffer(r)}:Buffer.from.bind(Buffer)}return function(){}}();function pi(t){return St?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function ac(t){return St?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var tn=function(r){return St?ri(r,"binary"):r.split("").map(function(e){return e.charCodeAt(0)&255})};function po(t){if(typeof ArrayBuffer>"u")return tn(t);for(var r=new ArrayBuffer(t.length),e=new Uint8Array(r),n=0;n!=t.length;++n)e[n]=t.charCodeAt(n)&255;return r}function bi(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 J1(t){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(t)}function Xf(t){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(t instanceof ArrayBuffer)return Xf(new Uint8Array(t));for(var r=new Array(t.length),e=0;e<t.length;++e)r[e]=t[e];return r}var yr=St?function(t){return Buffer.concat(t.map(function(r){return Buffer.isBuffer(r)?r:ri(r)}))}:function(t){if(typeof Uint8Array<"u"){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(s){return Array.isArray(s)?s:[].slice.call(s)}))};function Q1(t){for(var r=[],e=0,n=t.length+250,i=pi(t.length+255),s=0;s<t.length;++s){var o=t.charCodeAt(s);if(o<128)i[e++]=o;else if(o<2048)i[e++]=192|o>>6&31,i[e++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var h=t.charCodeAt(++s)&1023;i[e++]=240|o>>8&7,i[e++]=128|o>>2&63,i[e++]=128|h>>6&15|(o&3)<<4,i[e++]=128|h&63}else i[e++]=224|o>>12&15,i[e++]=128|o>>6&63,i[e++]=128|o&63;e>n&&(r.push(i.slice(0,e)),e=0,i=pi(65535),n=65530)}return r.push(i.slice(0,e)),yr(r)}var Xr=/\u0000/g,As=/[\u0001-\u0006]/g;function ls(t){for(var r="",e=t.length-1;e>=0;)r+=t.charAt(e--);return r}function kn(t,r){var e=""+t;return e.length>=r?e:tr("0",r-e.length)+e}function Vf(t,r){var e=""+t;return e.length>=r?e:tr(" ",r-e.length)+e}function eo(t,r){var e=""+t;return e.length>=r?e:e+tr(" ",r-e.length)}function q1(t,r){var e=""+Math.round(t);return e.length>=r?e:tr("0",r-e.length)+e}function em(t,r){var e=""+t;return e.length>=r?e:tr("0",r-e.length)+e}var oc=Math.pow(2,32);function ns(t,r){if(t>oc||t<-oc)return q1(t,r);var e=Math.round(t);return em(e,r)}function to(t,r){return r=r||0,t.length>=7+r&&(t.charCodeAt(r)|32)===103&&(t.charCodeAt(r+1)|32)===101&&(t.charCodeAt(r+2)|32)===110&&(t.charCodeAt(r+3)|32)===101&&(t.charCodeAt(r+4)|32)===114&&(t.charCodeAt(r+5)|32)===97&&(t.charCodeAt(r+6)|32)===108}var fc=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],$o=[["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"]];function tm(t){return 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"秒 "',t}var xt={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"秒 "'},lc={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},rm={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 ro(t,r,e){for(var n=t<0?-1:1,i=t*n,s=0,o=1,h=0,c=1,a=0,f=0,l=Math.floor(i);a<r&&(l=Math.floor(i),h=l*o+s,f=l*a+c,!(i-l<5e-8));)i=1/(i-l),s=o,o=h,c=a,a=f;if(f>r&&(a>r?(f=c,h=s):(f=a,h=o)),!e)return[0,n*h,f];var u=Math.floor(n*h/f);return[u,n*h-u*f,f]}function Ri(t,r,e){if(t>2958465||t<0)return null;var n=t|0,i=Math.floor(86400*(t-n)),s=0,o=[],h={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(h.u)<1e-6&&(h.u=0),r&&r.date1904&&(n+=1462),h.u>.9999&&(h.u=0,++i==86400&&(h.T=i=0,++n,++h.D)),n===60)o=e?[1317,10,29]:[1900,2,29],s=3;else if(n===0)o=e?[1317,8,29]:[1900,1,0],s=6;else{n>60&&--n;var c=new Date(1900,0,1);c.setDate(c.getDate()+n-1),o=[c.getFullYear(),c.getMonth()+1,c.getDate()],s=c.getDay(),n<60&&(s=(s+6)%7),e&&(s=fm(c,o))}return h.y=o[0],h.m=o[1],h.d=o[2],h.S=i%60,i=Math.floor(i/60),h.M=i%60,i=Math.floor(i/60),h.H=i,h.q=s,h}var jh=new Date(1899,11,31,0,0,0),nm=jh.getTime(),im=new Date(1900,2,1,0,0,0);function Uh(t,r){var e=t.getTime();return r?e-=1461*24*60*60*1e3:t>=im&&(e+=24*60*60*1e3),(e-(nm+(t.getTimezoneOffset()-jh.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Gf(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function sm(t){return t.indexOf("E")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function am(t){var r=t<0?12:11,e=Gf(t.toFixed(12));return e.length<=r||(e=t.toPrecision(10),e.length<=r)?e:t.toExponential(5)}function om(t){var r=Gf(t.toFixed(11));return r.length>(t<0?12:11)||r==="0"||r==="-0"?t.toPrecision(6):r}function js(t){var r=Math.floor(Math.log(Math.abs(t))*Math.LOG10E),e;return r>=-4&&r<=-1?e=t.toPrecision(10+r):Math.abs(r)<=9?e=am(t):r===10?e=t.toFixed(10).substr(0,12):e=om(t),Gf(sm(e.toUpperCase()))}function Li(t,r){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(t|0)===t?t.toString(10):js(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return pn(14,Uh(t,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+t)}function fm(t,r){r[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}function lm(t,r,e,n){var i="",s=0,o=0,h=e.y,c,a=0;switch(t){case 98:h=e.y+543;case 121:switch(r.length){case 1:case 2:c=h%100,a=2;break;default:c=h%1e4,a=4;break}break;case 109:switch(r.length){case 1:case 2:c=e.m,a=r.length;break;case 3:return $o[e.m-1][1];case 5:return $o[e.m-1][0];default:return $o[e.m-1][2]}break;case 100:switch(r.length){case 1:case 2:c=e.d,a=r.length;break;case 3:return fc[e.q][0];default:return fc[e.q][1]}break;case 104:switch(r.length){case 1:case 2:c=1+(e.H+11)%12,a=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:c=e.H,a=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:c=e.M,a=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")?kn(e.S,r.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,s=Math.round(o*(e.S+e.u)),s>=60*o&&(s=0),r==="s"?s===0?"0":""+s/o:(i=kn(s,2+n),r==="ss"?i.substr(0,2):"."+i.substr(2,r.length-1)));case 90:switch(r){case"[h]":case"[hh]":c=e.D*24+e.H;break;case"[m]":case"[mm]":c=(e.D*24+e.H)*60+e.M;break;case"[s]":case"[ss]":c=((e.D*24+e.H)*60+e.M)*60+Math.round(e.S+e.u);break;default:throw"bad abstime format: "+r}a=r.length===3?1:2;break;case 101:c=h,a=1;break}var f=a>0?kn(c,a):"";return f}function ui(t){var r=3;if(t.length<=r)return t;for(var e=t.length%r,n=t.substr(0,e);e!=t.length;e+=r)n+=(n.length>0?",":"")+t.substr(e,r);return n}var Hh=/%/g;function cm(t,r,e){var n=r.replace(Hh,""),i=r.length-n.length;return Jn(t,n,e*Math.pow(10,2*i))+tr("%",i)}function hm(t,r,e){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return Jn(t,r.substr(0,n),e/Math.pow(10,3*(r.length-n)))}function zh(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"-"+zh(t,-r);var i=t.indexOf(".");i===-1&&(i=t.indexOf("E"));var s=Math.floor(Math.log(r)*Math.LOG10E)%i;if(s<0&&(s+=i),e=(r/Math.pow(10,s)).toPrecision(n+1+(i+s)%i),e.indexOf("e")===-1){var o=Math.floor(Math.log(r)*Math.LOG10E);for(e.indexOf(".")===-1?e=e.charAt(0)+"."+e.substr(1)+"E+"+(o-e.length+s):e+="E+"+(o-s);e.substr(0,2)==="0.";)e=e.charAt(0)+e.substr(2,i)+"."+e.substr(2+i),e=e.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(h,c,a,f){return c+a+f.substr(0,(i+s)%i)+"."+f.substr(s)+"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 $h=/# (\?+)( ?)\/( ?)(\d+)/;function um(t,r,e){var n=parseInt(t[4],10),i=Math.round(r*n),s=Math.floor(i/n),o=i-s*n,h=n;return e+(s===0?"":""+s)+" "+(o===0?tr(" ",t[1].length+1+t[4].length):Vf(o,t[1].length)+t[2]+"/"+t[3]+kn(h,t[4].length))}function dm(t,r,e){return e+(r===0?"":""+r)+tr(" ",t[1].length+2+t[4].length)}var Wh=/^#*0*\.([0#]+)/,Xh=/\).*[0#]/,Vh=/\(###\) ###\\?-####/;function $r(t){for(var r="",e,n=0;n!=t.length;++n)switch(e=t.charCodeAt(n)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(e)}return r}function cc(t,r){var e=Math.pow(10,r);return""+Math.round(t*e)/e}function hc(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 pm(t,r){return r<(""+Math.round((t-Math.floor(t))*Math.pow(10,r))).length?1:0}function mm(t){return t<2147483647&&t>-2147483648?""+(t>=0?t|0:t-1|0):""+Math.floor(t)}function fn(t,r,e){if(t.charCodeAt(0)===40&&!r.match(Xh)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?fn("n",n,e):"("+fn("n",n,-e)+")"}if(r.charCodeAt(r.length-1)===44)return hm(t,r,e);if(r.indexOf("%")!==-1)return cm(t,r,e);if(r.indexOf("E")!==-1)return zh(r,e);if(r.charCodeAt(0)===36)return"$"+fn(t,r.substr(r.charAt(1)==" "?2:1),e);var i,s,o,h,c=Math.abs(e),a=e<0?"-":"";if(r.match(/^00+$/))return a+ns(c,r.length);if(r.match(/^[#?]+$/))return i=ns(e,0),i==="0"&&(i=""),i.length>r.length?i:$r(r.substr(0,r.length-i.length))+i;if(s=r.match($h))return um(s,c,a);if(r.match(/^#+0+$/))return a+ns(c,r.length-r.indexOf("0"));if(s=r.match(Wh))return i=cc(e,s[1].length).replace(/^([^\.]+)$/,"$1."+$r(s[1])).replace(/\.$/,"."+$r(s[1])).replace(/\.(\d*)$/,function(m,d){return"."+d+tr("0",$r(s[1]).length-d.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return a+cc(c,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=r.match(/^#{1,3},##0(\.?)$/))return a+ui(ns(c,0));if(s=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+fn(t,r,-e):ui(""+(Math.floor(e)+pm(e,s[1].length)))+"."+kn(hc(e,s[1].length),s[1].length);if(s=r.match(/^#,#*,#0/))return fn(t,r.replace(/^#,#*,/,""),e);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=ls(fn(t,r.replace(/[\\-]/g,""),e)),o=0,ls(ls(r.replace(/\\/g,"")).replace(/[0#]/g,function(m){return o<i.length?i.charAt(o++):m==="0"?"0":""}));if(r.match(Vh))return i=fn(t,"##########",e),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var f="";if(s=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),h=ro(c,Math.pow(10,o)-1,!1),i=""+a,f=Jn("n",s[1],h[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),i+=f+s[2]+"/"+s[3],f=eo(h[2],o),f.length<s[4].length&&(f=$r(s[4].substr(s[4].length-f.length))+f),i+=f,i;if(s=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),h=ro(c,Math.pow(10,o)-1,!0),a+(h[0]||(h[1]?"":"0"))+" "+(h[1]?Vf(h[1],o)+s[2]+"/"+s[3]+eo(h[2],o):tr(" ",2*o+1+s[2].length+s[3].length));if(s=r.match(/^[#0?]+$/))return i=ns(e,0),r.length<=i.length?i:$r(r.substr(0,r.length-i.length))+i;if(s=r.match(/^([#0?]+)\.([#0]+)$/)){i=""+e.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var l=r.indexOf(".")-o,u=r.length-i.length-l;return $r(r.substr(0,l)+i+r.substr(r.length-u))}if(s=r.match(/^00,000\.([#0]*0)$/))return o=hc(e,s[1].length),e<0?"-"+fn(t,r,-e):ui(mm(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?kn(0,3-m.length):"")+m})+"."+kn(o,s[1].length);switch(r){case"###,##0.00":return fn(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var p=ui(ns(c,0));return p!=="0"?a+p:"";case"###,###.00":return fn(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return fn(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function gm(t,r,e){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return Jn(t,r.substr(0,n),e/Math.pow(10,3*(r.length-n)))}function vm(t,r,e){var n=r.replace(Hh,""),i=r.length-n.length;return Jn(t,n,e*Math.pow(10,2*i))+tr("%",i)}function Gh(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"-"+Gh(t,-r);var i=t.indexOf(".");i===-1&&(i=t.indexOf("E"));var s=Math.floor(Math.log(r)*Math.LOG10E)%i;if(s<0&&(s+=i),e=(r/Math.pow(10,s)).toPrecision(n+1+(i+s)%i),!e.match(/[Ee]/)){var o=Math.floor(Math.log(r)*Math.LOG10E);e.indexOf(".")===-1?e=e.charAt(0)+"."+e.substr(1)+"E+"+(o-e.length+s):e+="E+"+(o-s),e=e.replace(/\+-/,"-")}e=e.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(h,c,a,f){return c+a+f.substr(0,(i+s)%i)+"."+f.substr(s)+"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 Nn(t,r,e){if(t.charCodeAt(0)===40&&!r.match(Xh)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Nn("n",n,e):"("+Nn("n",n,-e)+")"}if(r.charCodeAt(r.length-1)===44)return gm(t,r,e);if(r.indexOf("%")!==-1)return vm(t,r,e);if(r.indexOf("E")!==-1)return Gh(r,e);if(r.charCodeAt(0)===36)return"$"+Nn(t,r.substr(r.charAt(1)==" "?2:1),e);var i,s,o,h,c=Math.abs(e),a=e<0?"-":"";if(r.match(/^00+$/))return a+kn(c,r.length);if(r.match(/^[#?]+$/))return i=""+e,e===0&&(i=""),i.length>r.length?i:$r(r.substr(0,r.length-i.length))+i;if(s=r.match($h))return dm(s,c,a);if(r.match(/^#+0+$/))return a+kn(c,r.length-r.indexOf("0"));if(s=r.match(Wh))return i=(""+e).replace(/^([^\.]+)$/,"$1."+$r(s[1])).replace(/\.$/,"."+$r(s[1])),i=i.replace(/\.(\d*)$/,function(m,d){return"."+d+tr("0",$r(s[1]).length-d.length)}),r.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),s=r.match(/^(0*)\.(#*)$/))return a+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=r.match(/^#{1,3},##0(\.?)$/))return a+ui(""+c);if(s=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Nn(t,r,-e):ui(""+e)+"."+tr("0",s[1].length);if(s=r.match(/^#,#*,#0/))return Nn(t,r.replace(/^#,#*,/,""),e);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=ls(Nn(t,r.replace(/[\\-]/g,""),e)),o=0,ls(ls(r.replace(/\\/g,"")).replace(/[0#]/g,function(m){return o<i.length?i.charAt(o++):m==="0"?"0":""}));if(r.match(Vh))return i=Nn(t,"##########",e),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var f="";if(s=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(s[4].length,7),h=ro(c,Math.pow(10,o)-1,!1),i=""+a,f=Jn("n",s[1],h[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),i+=f+s[2]+"/"+s[3],f=eo(h[2],o),f.length<s[4].length&&(f=$r(s[4].substr(s[4].length-f.length))+f),i+=f,i;if(s=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(s[1].length,s[4].length),7),h=ro(c,Math.pow(10,o)-1,!0),a+(h[0]||(h[1]?"":"0"))+" "+(h[1]?Vf(h[1],o)+s[2]+"/"+s[3]+eo(h[2],o):tr(" ",2*o+1+s[2].length+s[3].length));if(s=r.match(/^[#0?]+$/))return i=""+e,r.length<=i.length?i:$r(r.substr(0,r.length-i.length))+i;if(s=r.match(/^([#0]+)\.([#0]+)$/)){i=""+e.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var l=r.indexOf(".")-o,u=r.length-i.length-l;return $r(r.substr(0,l)+i+r.substr(r.length-u))}if(s=r.match(/^00,000\.([#0]*0)$/))return e<0?"-"+Nn(t,r,-e):ui(""+e).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?kn(0,3-m.length):"")+m})+"."+kn(0,s[1].length);switch(r){case"###,###":case"##,###":case"#,###":var p=ui(""+c);return p!=="0"?a+p:"";default:if(r.match(/\.[0#?]*$/))return Nn(t,r.slice(0,r.lastIndexOf(".")),e)+$r(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function Jn(t,r,e){return(e|0)===e?Nn(t,r,e):fn(t,r,e)}function xm(t){for(var r=[],e=!1,n=0,i=0;n<t.length;++n)switch(t.charCodeAt(n)){case 34:e=!e;break;case 95:case 42:case 92:++n;break;case 59:r[r.length]=t.substr(i,n-i),i=n+1}if(r[r.length]=t.substr(i),e===!0)throw new Error("Format |"+t+"| unterminated string ");return r}var Kh=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function gs(t){for(var r=0,e="",n="";r<t.length;)switch(e=t.charAt(r)){case"G":to(t,r)&&(r+=6),r++;break;case'"':for(;t.charCodeAt(++r)!==34&&r<t.length;);++r;break;case"\\":r+=2;break;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(Kh))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;case" ":++r;break;default:++r;break}return!1}function bm(t,r,e,n){for(var i=[],s="",o=0,h="",c="t",a,f,l,u="H";o<t.length;)switch(h=t.charAt(o)){case"G":if(!to(t,o))throw new Error("unrecognized character "+h+" in "+t);i[i.length]={t:"G",v:"General"},o+=7;break;case'"':for(s="";(l=t.charCodeAt(++o))!==34&&o<t.length;)s+=String.fromCharCode(l);i[i.length]={t:"t",v:s},++o;break;case"\\":var p=t.charAt(++o),m=p==="("||p===")"?p:"t";i[i.length]={t:m,v:p},++o;break;case"_":i[i.length]={t:"t",v:" "},o+=2;break;case"@":i[i.length]={t:"T",v:r},++o;break;case"B":case"b":if(t.charAt(o+1)==="1"||t.charAt(o+1)==="2"){if(a==null&&(a=Ri(r,e,t.charAt(o+1)==="2"),a==null))return"";i[i.length]={t:"X",v:t.substr(o,2)},c=h,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":h=h.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(r<0||a==null&&(a=Ri(r,e),a==null))return"";for(s=h;++o<t.length&&t.charAt(o).toLowerCase()===h;)s+=h;h==="m"&&c.toLowerCase()==="h"&&(h="M"),h==="h"&&(h=u),i[i.length]={t:h,v:s},c=h;break;case"A":case"a":case"上":var d={t:h,v:h};if(a==null&&(a=Ri(r,e)),t.substr(o,3).toUpperCase()==="A/P"?(a!=null&&(d.v=a.H>=12?"P":"A"),d.t="T",u="h",o+=3):t.substr(o,5).toUpperCase()==="AM/PM"?(a!=null&&(d.v=a.H>=12?"PM":"AM"),d.t="T",o+=5,u="h"):t.substr(o,5).toUpperCase()==="上午/下午"?(a!=null&&(d.v=a.H>=12?"下午":"上午"),d.t="T",o+=5,u="h"):(d.t="t",++o),a==null&&d.t==="T")return"";i[i.length]=d,c=h;break;case"[":for(s=h;t.charAt(o++)!=="]"&&o<t.length;)s+=t.charAt(o);if(s.slice(-1)!=="]")throw'unterminated "[" block: |'+s+"|";if(s.match(Kh)){if(a==null&&(a=Ri(r,e),a==null))return"";i[i.length]={t:"Z",v:s.toLowerCase()},c=s.charAt(1)}else s.indexOf("$")>-1&&(s=(s.match(/\$([^-\[\]]*)/)||[])[1]||"$",gs(t)||(i[i.length]={t:"t",v:s}));break;case".":if(a!=null){for(s=h;++o<t.length&&(h=t.charAt(o))==="0";)s+=h;i[i.length]={t:"s",v:s};break}case"0":case"#":for(s=h;++o<t.length&&"0#?.,E+-%".indexOf(h=t.charAt(o))>-1;)s+=h;i[i.length]={t:"n",v:s};break;case"?":for(s=h;t.charAt(++o)===h;)s+=h;i[i.length]={t:h,v:s},c=h;break;case"*":++o,(t.charAt(o)==" "||t.charAt(o)=="*")&&++o;break;case"(":case")":i[i.length]={t:n===1?"t":h,v:h},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(s=h;o<t.length&&"0123456789".indexOf(t.charAt(++o))>-1;)s+=t.charAt(o);i[i.length]={t:"D",v:s};break;case" ":i[i.length]={t:h,v:h},++o;break;case"$":i[i.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(h)===-1)throw new Error("unrecognized character "+h+" in "+t);i[i.length]={t:"t",v:h},++o;break}var v=0,x=0,g;for(o=i.length-1,c="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=u,c="h",v<1&&(v=1);break;case"s":(g=i[o].v.match(/\.0+$/))&&(x=Math.max(x,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":c=i[o].t;break;case"m":c==="s"&&(i[o].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&i[o].v.match(/[Hh]/)&&(v=1),v<2&&i[o].v.match(/[Mm]/)&&(v=2),v<3&&i[o].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M),a.M>=60&&(a.M=0,++a.H);break;case 2:a.u>=.5&&(a.u=0,++a.S),a.S>=60&&(a.S=0,++a.M);break}var b="",w;for(o=0;o<i.length;++o)switch(i[o].t){case"t":case"T":case" ":case"D":break;case"X":i[o].v="",i[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[o].v=lm(i[o].t.charCodeAt(0),i[o].v,a,x),i[o].t="t";break;case"n":case"?":for(w=o+1;i[w]!=null&&((h=i[w].t)==="?"||h==="D"||(h===" "||h==="t")&&i[w+1]!=null&&(i[w+1].t==="?"||i[w+1].t==="t"&&i[w+1].v==="/")||i[o].t==="("&&(h===" "||h==="n"||h===")")||h==="t"&&(i[w].v==="/"||i[w].v===" "&&i[w+1]!=null&&i[w+1].t=="?"));)i[o].v+=i[w].v,i[w]={v:"",t:";"},++w;b+=i[o].v,o=w-1;break;case"G":i[o].t="t",i[o].v=Li(r,e);break}var y="",T,C;if(b.length>0){b.charCodeAt(0)==40?(T=r<0&&b.charCodeAt(0)===45?-r:r,C=Jn("n",b,T)):(T=r<0&&n>1?-r:r,C=Jn("n",b,T),T<0&&i[0]&&i[0].t=="t"&&(C=C.substr(1),i[0].v="-"+i[0].v)),w=C.length-1;var M=i.length;for(o=0;o<i.length;++o)if(i[o]!=null&&i[o].t!="t"&&i[o].v.indexOf(".")>-1){M=o;break}var I=i.length;if(M===i.length&&C.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(w>=i[o].v.length-1?(w-=i[o].v.length,i[o].v=C.substr(w+1,i[o].v.length)):w<0?i[o].v="":(i[o].v=C.substr(0,w+1),w=-1),i[o].t="t",I=o);w>=0&&I<i.length&&(i[I].v=C.substr(0,w+1)+i[I].v)}else if(M!==i.length&&C.indexOf("E")===-1){for(w=C.indexOf(".")-1,o=M;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(f=i[o].v.indexOf(".")>-1&&o===M?i[o].v.indexOf(".")-1:i[o].v.length-1,y=i[o].v.substr(f+1);f>=0;--f)w>=0&&(i[o].v.charAt(f)==="0"||i[o].v.charAt(f)==="#")&&(y=C.charAt(w--)+y);i[o].v=y,i[o].t="t",I=o}for(w>=0&&I<i.length&&(i[I].v=C.substr(0,w+1)+i[I].v),w=C.indexOf(".")+1,o=M;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==M)){for(f=i[o].v.indexOf(".")>-1&&o===M?i[o].v.indexOf(".")+1:0,y=i[o].v.substr(0,f);f<i[o].v.length;++f)w<C.length&&(y+=C.charAt(w++));i[o].v=y,i[o].t="t",I=o}}}for(o=0;o<i.length;++o)i[o]!=null&&"n?".indexOf(i[o].t)>-1&&(T=n>1&&r<0&&o>0&&i[o-1].v==="-"?-r:r,i[o].v=Jn(i[o].t,i[o].v,T),i[o].t="t");var B="";for(o=0;o!==i.length;++o)i[o]!=null&&(B+=i[o].v);return B}var uc=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function dc(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;break}return!1}function wm(t,r){var e=xm(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],"@"];break}var s=r>0?e[0]:r<0?e[1]:e[2];if(e[0].indexOf("[")===-1&&e[1].indexOf("[")===-1)return[n,s];if(e[0].match(/\[[=<>]/)!=null||e[1].match(/\[[=<>]/)!=null){var o=e[0].match(uc),h=e[1].match(uc);return dc(r,o)?[n,e[0]]:dc(r,h)?[n,e[1]]:[n,e[o!=null&&h!=null?2:1]]}return[n,s]}function pn(t,r,e){e==null&&(e={});var n="";switch(typeof t){case"string":t=="m/d/yy"&&e.dateNF?n=e.dateNF:n=t;break;case"number":t==14&&e.dateNF?n=e.dateNF:n=(e.table!=null?e.table:xt)[t],n==null&&(n=e.table&&e.table[lc[t]]||xt[lc[t]]),n==null&&(n=rm[t]||"General");break}if(to(n,0))return Li(r,e);r instanceof Date&&(r=Uh(r,e.date1904));var i=wm(n,r);if(to(i[1]))return Li(r,e);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return bm(i[1],r,e,i[0])}function Qn(t,r){if(typeof r!="number"){r=+r||-1;for(var e=0;e<392;++e){if(xt[e]==null){r<0&&(r=e);continue}if(xt[e]==t){r=e;break}}r<0&&(r=391)}return xt[r]=t,r}function mo(t){for(var r=0;r!=392;++r)t[r]!==void 0&&Qn(t[r],r)}function vs(){xt=tm()}var ym={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"},Yh=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function _m(t){var r=typeof t=="number"?xt[t]:t;return r=r.replace(Yh,"(\\d+)"),new RegExp("^"+r+"$")}function Em(t,r,e){var n=-1,i=-1,s=-1,o=-1,h=-1,c=-1;(r.match(Yh)||[]).forEach(function(l,u){var p=parseInt(e[u+1],10);switch(l.toLowerCase().charAt(0)){case"y":n=p;break;case"d":s=p;break;case"h":o=p;break;case"s":c=p;break;case"m":o>=0?h=p:i=p;break}}),c>=0&&h==-1&&i>=0&&(h=i,i=-1);var a=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);a.length==7&&(a="0"+a),a.length==8&&(a="20"+a);var f=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(h>=0?h:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return o==-1&&h==-1&&c==-1?a:n==-1&&i==-1&&s==-1?f:a+"T"+f}var Tm=function(){var t={};t.version="1.2.0";function r(){for(var C=0,M=new Array(256),I=0;I!=256;++I)C=I,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,M[I]=C;return typeof Int32Array<"u"?new Int32Array(M):M}var e=r();function n(C){var M=0,I=0,B=0,U=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(B=0;B!=256;++B)U[B]=C[B];for(B=0;B!=256;++B)for(I=C[B],M=256+B;M<4096;M+=256)I=U[M]=I>>>8^C[I&255];var j=[];for(B=1;B!=16;++B)j[B-1]=typeof Int32Array<"u"?U.subarray(B*256,B*256+256):U.slice(B*256,B*256+256);return j}var i=n(e),s=i[0],o=i[1],h=i[2],c=i[3],a=i[4],f=i[5],l=i[6],u=i[7],p=i[8],m=i[9],d=i[10],v=i[11],x=i[12],g=i[13],b=i[14];function w(C,M){for(var I=M^-1,B=0,U=C.length;B<U;)I=I>>>8^e[(I^C.charCodeAt(B++))&255];return~I}function y(C,M){for(var I=M^-1,B=C.length-15,U=0;U<B;)I=b[C[U++]^I&255]^g[C[U++]^I>>8&255]^x[C[U++]^I>>16&255]^v[C[U++]^I>>>24]^d[C[U++]]^m[C[U++]]^p[C[U++]]^u[C[U++]]^l[C[U++]]^f[C[U++]]^a[C[U++]]^c[C[U++]]^h[C[U++]]^o[C[U++]]^s[C[U++]]^e[C[U++]];for(B+=15;U<B;)I=I>>>8^e[(I^C[U++])&255];return~I}function T(C,M){for(var I=M^-1,B=0,U=C.length,j=0,H=0;B<U;)j=C.charCodeAt(B++),j<128?I=I>>>8^e[(I^j)&255]:j<2048?(I=I>>>8^e[(I^(192|j>>6&31))&255],I=I>>>8^e[(I^(128|j&63))&255]):j>=55296&&j<57344?(j=(j&1023)+64,H=C.charCodeAt(B++)&1023,I=I>>>8^e[(I^(240|j>>8&7))&255],I=I>>>8^e[(I^(128|j>>2&63))&255],I=I>>>8^e[(I^(128|H>>6&15|(j&3)<<4))&255],I=I>>>8^e[(I^(128|H&63))&255]):(I=I>>>8^e[(I^(224|j>>12&15))&255],I=I>>>8^e[(I^(128|j>>6&63))&255],I=I>>>8^e[(I^(128|j&63))&255]);return~I}return t.table=e,t.bstr=w,t.buf=y,t.str=T,t}(),ut=function(){var r={};r.version="1.2.1";function e(ie,ge){for(var le=ie.split("/"),ue=ge.split("/"),pe=0,me=0,Ie=Math.min(le.length,ue.length);pe<Ie;++pe){if(me=le[pe].length-ue[pe].length)return me;if(le[pe]!=ue[pe])return le[pe]<ue[pe]?-1:1}return le.length-ue.length}function n(ie){if(ie.charAt(ie.length-1)=="/")return ie.slice(0,-1).indexOf("/")===-1?ie:n(ie.slice(0,-1));var ge=ie.lastIndexOf("/");return ge===-1?ie:ie.slice(0,ge+1)}function i(ie){if(ie.charAt(ie.length-1)=="/")return i(ie.slice(0,-1));var ge=ie.lastIndexOf("/");return ge===-1?ie:ie.slice(ge+1)}function s(ie,ge){typeof ge=="string"&&(ge=new Date(ge));var le=ge.getHours();le=le<<6|ge.getMinutes(),le=le<<5|ge.getSeconds()>>>1,ie.write_shift(2,le);var ue=ge.getFullYear()-1980;ue=ue<<4|ge.getMonth()+1,ue=ue<<5|ge.getDate(),ie.write_shift(2,ue)}function o(ie){var ge=ie.read_shift(2)&65535,le=ie.read_shift(2)&65535,ue=new Date,pe=le&31;le>>>=5;var me=le&15;le>>>=4,ue.setMilliseconds(0),ue.setFullYear(le+1980),ue.setMonth(me-1),ue.setDate(pe);var Ie=ge&31;ge>>>=5;var je=ge&63;return ge>>>=6,ue.setHours(ge),ue.setMinutes(je),ue.setSeconds(Ie<<1),ue}function h(ie){kr(ie,0);for(var ge={},le=0;ie.l<=ie.length-4;){var ue=ie.read_shift(2),pe=ie.read_shift(2),me=ie.l+pe,Ie={};switch(ue){case 21589:le=ie.read_shift(1),le&1&&(Ie.mtime=ie.read_shift(4)),pe>5&&(le&2&&(Ie.atime=ie.read_shift(4)),le&4&&(Ie.ctime=ie.read_shift(4))),Ie.mtime&&(Ie.mt=new Date(Ie.mtime*1e3));break}ie.l=me,ge[ue]=Ie}return ge}var c;function a(){return c||(c={})}function f(ie,ge){if(ie[0]==80&&ie[1]==75)return Ve(ie,ge);if((ie[0]|32)==109&&(ie[1]|32)==105)return ft(ie,ge);if(ie.length<512)throw new Error("CFB file size "+ie.length+" < 512");var le=3,ue=512,pe=0,me=0,Ie=0,je=0,Fe=0,Pe=[],Oe=ie.slice(0,512);kr(Oe,0);var $e=l(Oe);switch(le=$e[0],le){case 3:ue=512;break;case 4:ue=4096;break;case 0:if($e[1]==0)return Ve(ie,ge);default:throw new Error("Major Version: Expected 3 or 4 saw "+le)}ue!==512&&(Oe=ie.slice(0,ue),kr(Oe,28));var ce=ie.slice(0,ue);u(Oe,le);var Te=Oe.read_shift(4,"i");if(le===3&&Te!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Te);Oe.l+=4,Ie=Oe.read_shift(4,"i"),Oe.l+=4,Oe.chk("00100000","Mini Stream Cutoff Size: "),je=Oe.read_shift(4,"i"),pe=Oe.read_shift(4,"i"),Fe=Oe.read_shift(4,"i"),me=Oe.read_shift(4,"i");for(var Ee=-1,Ue=0;Ue<109&&(Ee=Oe.read_shift(4,"i"),!(Ee<0));++Ue)Pe[Ue]=Ee;var Ke=p(ie,ue);v(Fe,me,Ke,ue,Pe);var at=g(Ke,Ie,Pe,ue);at[Ie].name="!Directory",pe>0&&je!==H&&(at[je].name="!MiniFAT"),at[Pe[0]].name="!FAT",at.fat_addrs=Pe,at.ssz=ue;var dt={},Nt=[],pr=[],Jt=[];b(Ie,at,Ke,Nt,pe,dt,pr,je),m(pr,Jt,Nt),Nt.shift();var jt={FileIndex:pr,FullPaths:Jt};return ge&&ge.raw&&(jt.raw={header:ce,sectors:Ke}),jt}function l(ie){if(ie[ie.l]==80&&ie[ie.l+1]==75)return[0,0];ie.chk(G,"Header Signature: "),ie.l+=16;var ge=ie.read_shift(2,"u");return[ie.read_shift(2,"u"),ge]}function u(ie,ge){var le=9;switch(ie.l+=2,le=ie.read_shift(2)){case 9:if(ge!=3)throw new Error("Sector Shift: Expected 9 saw "+le);break;case 12:if(ge!=4)throw new Error("Sector Shift: Expected 12 saw "+le);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+le)}ie.chk("0600","Mini Sector Shift: "),ie.chk("000000000000","Reserved: ")}function p(ie,ge){for(var le=Math.ceil(ie.length/ge)-1,ue=[],pe=1;pe<le;++pe)ue[pe-1]=ie.slice(pe*ge,(pe+1)*ge);return ue[le-1]=ie.slice(le*ge),ue}function m(ie,ge,le){for(var ue=0,pe=0,me=0,Ie=0,je=0,Fe=le.length,Pe=[],Oe=[];ue<Fe;++ue)Pe[ue]=Oe[ue]=ue,ge[ue]=le[ue];for(;je<Oe.length;++je)ue=Oe[je],pe=ie[ue].L,me=ie[ue].R,Ie=ie[ue].C,Pe[ue]===ue&&(pe!==-1&&Pe[pe]!==pe&&(Pe[ue]=Pe[pe]),me!==-1&&Pe[me]!==me&&(Pe[ue]=Pe[me])),Ie!==-1&&(Pe[Ie]=ue),pe!==-1&&ue!=Pe[ue]&&(Pe[pe]=Pe[ue],Oe.lastIndexOf(pe)<je&&Oe.push(pe)),me!==-1&&ue!=Pe[ue]&&(Pe[me]=Pe[ue],Oe.lastIndexOf(me)<je&&Oe.push(me));for(ue=1;ue<Fe;++ue)Pe[ue]===ue&&(me!==-1&&Pe[me]!==me?Pe[ue]=Pe[me]:pe!==-1&&Pe[pe]!==pe&&(Pe[ue]=Pe[pe]));for(ue=1;ue<Fe;++ue)if(ie[ue].type!==0){if(je=ue,je!=Pe[je])do je=Pe[je],ge[ue]=ge[je]+"/"+ge[ue];while(je!==0&&Pe[je]!==-1&&je!=Pe[je]);Pe[ue]=-1}for(ge[0]+="/",ue=1;ue<Fe;++ue)ie[ue].type!==2&&(ge[ue]+="/")}function d(ie,ge,le){for(var ue=ie.start,pe=ie.size,me=[],Ie=ue;le&&pe>0&&Ie>=0;)me.push(ge.slice(Ie*j,Ie*j+j)),pe-=j,Ie=Fi(le,Ie*4);return me.length===0?We(0):yr(me).slice(0,ie.size)}function v(ie,ge,le,ue,pe){var me=H;if(ie===H){if(ge!==0)throw new Error("DIFAT chain shorter than expected")}else if(ie!==-1){var Ie=le[ie],je=(ue>>>2)-1;if(!Ie)return;for(var Fe=0;Fe<je&&(me=Fi(Ie,Fe*4))!==H;++Fe)pe.push(me);v(Fi(Ie,ue-4),ge-1,le,ue,pe)}}function x(ie,ge,le,ue,pe){var me=[],Ie=[];pe||(pe=[]);var je=ue-1,Fe=0,Pe=0;for(Fe=ge;Fe>=0;){pe[Fe]=!0,me[me.length]=Fe,Ie.push(ie[Fe]);var Oe=le[Math.floor(Fe*4/ue)];if(Pe=Fe*4&je,ue<4+Pe)throw new Error("FAT boundary crossed: "+Fe+" 4 "+ue);if(!ie[Oe])break;Fe=Fi(ie[Oe],Pe)}return{nodes:me,data:Sc([Ie])}}function g(ie,ge,le,ue){var pe=ie.length,me=[],Ie=[],je=[],Fe=[],Pe=ue-1,Oe=0,$e=0,ce=0,Te=0;for(Oe=0;Oe<pe;++Oe)if(je=[],ce=Oe+ge,ce>=pe&&(ce-=pe),!Ie[ce]){Fe=[];var Ee=[];for($e=ce;$e>=0;){Ee[$e]=!0,Ie[$e]=!0,je[je.length]=$e,Fe.push(ie[$e]);var Ue=le[Math.floor($e*4/ue)];if(Te=$e*4&Pe,ue<4+Te)throw new Error("FAT boundary crossed: "+$e+" 4 "+ue);if(!ie[Ue]||($e=Fi(ie[Ue],Te),Ee[$e]))break}me[ce]={nodes:je,data:Sc([Fe])}}return me}function b(ie,ge,le,ue,pe,me,Ie,je){for(var Fe=0,Pe=ue.length?2:0,Oe=ge[ie].data,$e=0,ce=0,Te;$e<Oe.length;$e+=128){var Ee=Oe.slice($e,$e+128);kr(Ee,64),ce=Ee.read_shift(2),Te=el(Ee,0,ce-Pe),ue.push(Te);var Ue={name:Te,type:Ee.read_shift(1),color:Ee.read_shift(1),L:Ee.read_shift(4,"i"),R:Ee.read_shift(4,"i"),C:Ee.read_shift(4,"i"),clsid:Ee.read_shift(16),state:Ee.read_shift(4,"i"),start:0,size:0},Ke=Ee.read_shift(2)+Ee.read_shift(2)+Ee.read_shift(2)+Ee.read_shift(2);Ke!==0&&(Ue.ct=w(Ee,Ee.l-8));var at=Ee.read_shift(2)+Ee.read_shift(2)+Ee.read_shift(2)+Ee.read_shift(2);at!==0&&(Ue.mt=w(Ee,Ee.l-8)),Ue.start=Ee.read_shift(4,"i"),Ue.size=Ee.read_shift(4,"i"),Ue.size<0&&Ue.start<0&&(Ue.size=Ue.type=0,Ue.start=H,Ue.name=""),Ue.type===5?(Fe=Ue.start,pe>0&&Fe!==H&&(ge[Fe].name="!StreamData")):Ue.size>=4096?(Ue.storage="fat",ge[Ue.start]===void 0&&(ge[Ue.start]=x(le,Ue.start,ge.fat_addrs,ge.ssz)),ge[Ue.start].name=Ue.name,Ue.content=ge[Ue.start].data.slice(0,Ue.size)):(Ue.storage="minifat",Ue.size<0?Ue.size=0:Fe!==H&&Ue.start!==H&&ge[Fe]&&(Ue.content=d(Ue,ge[Fe].data,(ge[je]||{}).data))),Ue.content&&kr(Ue.content,0),me[Te]=Ue,Ie.push(Ue)}}function w(ie,ge){return new Date((en(ie,ge+4)/1e7*Math.pow(2,32)+en(ie,ge)/1e7-11644473600)*1e3)}function y(ie,ge){return a(),f(c.readFileSync(ie),ge)}function T(ie,ge){var le=ge&&ge.type;switch(le||St&&Buffer.isBuffer(ie)&&(le="buffer"),le||"base64"){case"file":return y(ie,ge);case"base64":return f(tn(nn(ie)),ge);case"binary":return f(tn(ie),ge)}return f(ie,ge)}function C(ie,ge){var le=ge||{},ue=le.root||"Root Entry";if(ie.FullPaths||(ie.FullPaths=[]),ie.FileIndex||(ie.FileIndex=[]),ie.FullPaths.length!==ie.FileIndex.length)throw new Error("inconsistent CFB structure");ie.FullPaths.length===0&&(ie.FullPaths[0]=ue+"/",ie.FileIndex[0]={name:ue,type:5}),le.CLSID&&(ie.FileIndex[0].clsid=le.CLSID),M(ie)}function M(ie){var ge="Sh33tJ5";if(!ut.find(ie,"/"+ge)){var le=We(4);le[0]=55,le[1]=le[3]=50,le[2]=54,ie.FileIndex.push({name:ge,type:2,content:le,size:4,L:69,R:69,C:69}),ie.FullPaths.push(ie.FullPaths[0]+ge),I(ie)}}function I(ie,ge){C(ie);for(var le=!1,ue=!1,pe=ie.FullPaths.length-1;pe>=0;--pe){var me=ie.FileIndex[pe];switch(me.type){case 0:ue?le=!0:(ie.FileIndex.pop(),ie.FullPaths.pop());break;case 1:case 2:case 5:ue=!0,isNaN(me.R*me.L*me.C)&&(le=!0),me.R>-1&&me.L>-1&&me.R==me.L&&(le=!0);break;default:le=!0;break}}if(!(!le&&!ge)){var Ie=new Date(1987,1,19),je=0,Fe=Object.create?Object.create(null):{},Pe=[];for(pe=0;pe<ie.FullPaths.length;++pe)Fe[ie.FullPaths[pe]]=!0,ie.FileIndex[pe].type!==0&&Pe.push([ie.FullPaths[pe],ie.FileIndex[pe]]);for(pe=0;pe<Pe.length;++pe){var Oe=n(Pe[pe][0]);ue=Fe[Oe],ue||(Pe.push([Oe,{name:i(Oe).replace("/",""),type:1,clsid:R,ct:Ie,mt:Ie,content:null}]),Fe[Oe]=!0)}for(Pe.sort(function(Te,Ee){return e(Te[0],Ee[0])}),ie.FullPaths=[],ie.FileIndex=[],pe=0;pe<Pe.length;++pe)ie.FullPaths[pe]=Pe[pe][0],ie.FileIndex[pe]=Pe[pe][1];for(pe=0;pe<Pe.length;++pe){var $e=ie.FileIndex[pe],ce=ie.FullPaths[pe];if($e.name=i(ce).replace("/",""),$e.L=$e.R=$e.C=-($e.color=1),$e.size=$e.content?$e.content.length:0,$e.start=0,$e.clsid=$e.clsid||R,pe===0)$e.C=Pe.length>1?1:-1,$e.size=0,$e.type=5;else if(ce.slice(-1)=="/"){for(je=pe+1;je<Pe.length&&n(ie.FullPaths[je])!=ce;++je);for($e.C=je>=Pe.length?-1:je,je=pe+1;je<Pe.length&&n(ie.FullPaths[je])!=n(ce);++je);$e.R=je>=Pe.length?-1:je,$e.type=1}else n(ie.FullPaths[pe+1]||"")==n(ce)&&($e.R=pe+1),$e.type=2}}}function B(ie,ge){var le=ge||{};if(le.fileType=="mad")return kt(ie,le);switch(I(ie),le.fileType){case"zip":return ct(ie,le)}var ue=function(Te){for(var Ee=0,Ue=0,Ke=0;Ke<Te.FileIndex.length;++Ke){var at=Te.FileIndex[Ke];if(at.content){var dt=at.content.length;dt>0&&(dt<4096?Ee+=dt+63>>6:Ue+=dt+511>>9)}}for(var Nt=Te.FullPaths.length+3>>2,pr=Ee+7>>3,Jt=Ee+127>>7,jt=pr+Ue+Nt+Jt,mr=jt+127>>7,Ur=mr<=109?0:Math.ceil((mr-109)/127);jt+mr+Ur+127>>7>mr;)Ur=++mr<=109?0:Math.ceil((mr-109)/127);var Ot=[1,Ur,mr,Jt,Nt,Ue,Ee,0];return Te.FileIndex[0].size=Ee<<6,Ot[7]=(Te.FileIndex[0].start=Ot[0]+Ot[1]+Ot[2]+Ot[3]+Ot[4]+Ot[5])+(Ot[6]+7>>3),Ot}(ie),pe=We(ue[7]<<9),me=0,Ie=0;{for(me=0;me<8;++me)pe.write_shift(1,L[me]);for(me=0;me<8;++me)pe.write_shift(2,0);for(pe.write_shift(2,62),pe.write_shift(2,3),pe.write_shift(2,65534),pe.write_shift(2,9),pe.write_shift(2,6),me=0;me<3;++me)pe.write_shift(2,0);for(pe.write_shift(4,0),pe.write_shift(4,ue[2]),pe.write_shift(4,ue[0]+ue[1]+ue[2]+ue[3]-1),pe.write_shift(4,0),pe.write_shift(4,4096),pe.write_shift(4,ue[3]?ue[0]+ue[1]+ue[2]-1:H),pe.write_shift(4,ue[3]),pe.write_shift(-4,ue[1]?ue[0]-1:H),pe.write_shift(4,ue[1]),me=0;me<109;++me)pe.write_shift(-4,me<ue[2]?ue[1]+me:-1)}if(ue[1])for(Ie=0;Ie<ue[1];++Ie){for(;me<236+Ie*127;++me)pe.write_shift(-4,me<ue[2]?ue[1]+me:-1);pe.write_shift(-4,Ie===ue[1]-1?H:Ie+1)}var je=function(Te){for(Ie+=Te;me<Ie-1;++me)pe.write_shift(-4,me+1);Te&&(++me,pe.write_shift(-4,H))};for(Ie=me=0,Ie+=ue[1];me<Ie;++me)pe.write_shift(-4,F.DIFSECT);for(Ie+=ue[2];me<Ie;++me)pe.write_shift(-4,F.FATSECT);je(ue[3]),je(ue[4]);for(var Fe=0,Pe=0,Oe=ie.FileIndex[0];Fe<ie.FileIndex.length;++Fe)Oe=ie.FileIndex[Fe],Oe.content&&(Pe=Oe.content.length,!(Pe<4096)&&(Oe.start=Ie,je(Pe+511>>9)));for(je(ue[6]+7>>3);pe.l&511;)pe.write_shift(-4,F.ENDOFCHAIN);for(Ie=me=0,Fe=0;Fe<ie.FileIndex.length;++Fe)Oe=ie.FileIndex[Fe],Oe.content&&(Pe=Oe.content.length,!(!Pe||Pe>=4096)&&(Oe.start=Ie,je(Pe+63>>6)));for(;pe.l&511;)pe.write_shift(-4,F.ENDOFCHAIN);for(me=0;me<ue[4]<<2;++me){var $e=ie.FullPaths[me];if(!$e||$e.length===0){for(Fe=0;Fe<17;++Fe)pe.write_shift(4,0);for(Fe=0;Fe<3;++Fe)pe.write_shift(4,-1);for(Fe=0;Fe<12;++Fe)pe.write_shift(4,0);continue}Oe=ie.FileIndex[me],me===0&&(Oe.start=Oe.size?Oe.start-1:H);var ce=me===0&&le.root||Oe.name;if(Pe=2*(ce.length+1),pe.write_shift(64,ce,"utf16le"),pe.write_shift(2,Pe),pe.write_shift(1,Oe.type),pe.write_shift(1,Oe.color),pe.write_shift(-4,Oe.L),pe.write_shift(-4,Oe.R),pe.write_shift(-4,Oe.C),Oe.clsid)pe.write_shift(16,Oe.clsid,"hex");else for(Fe=0;Fe<4;++Fe)pe.write_shift(4,0);pe.write_shift(4,Oe.state||0),pe.write_shift(4,0),pe.write_shift(4,0),pe.write_shift(4,0),pe.write_shift(4,0),pe.write_shift(4,Oe.start),pe.write_shift(4,Oe.size),pe.write_shift(4,0)}for(me=1;me<ie.FileIndex.length;++me)if(Oe=ie.FileIndex[me],Oe.size>=4096)if(pe.l=Oe.start+1<<9,St&&Buffer.isBuffer(Oe.content))Oe.content.copy(pe,pe.l,0,Oe.size),pe.l+=Oe.size+511&-512;else{for(Fe=0;Fe<Oe.size;++Fe)pe.write_shift(1,Oe.content[Fe]);for(;Fe&511;++Fe)pe.write_shift(1,0)}for(me=1;me<ie.FileIndex.length;++me)if(Oe=ie.FileIndex[me],Oe.size>0&&Oe.size<4096)if(St&&Buffer.isBuffer(Oe.content))Oe.content.copy(pe,pe.l,0,Oe.size),pe.l+=Oe.size+63&-64;else{for(Fe=0;Fe<Oe.size;++Fe)pe.write_shift(1,Oe.content[Fe]);for(;Fe&63;++Fe)pe.write_shift(1,0)}if(St)pe.l=pe.length;else for(;pe.l<pe.length;)pe.write_shift(1,0);return pe}function U(ie,ge){var le=ie.FullPaths.map(function(Fe){return Fe.toUpperCase()}),ue=le.map(function(Fe){var Pe=Fe.split("/");return Pe[Pe.length-(Fe.slice(-1)=="/"?2:1)]}),pe=!1;ge.charCodeAt(0)===47?(pe=!0,ge=le[0].slice(0,-1)+ge):pe=ge.indexOf("/")!==-1;var me=ge.toUpperCase(),Ie=pe===!0?le.indexOf(me):ue.indexOf(me);if(Ie!==-1)return ie.FileIndex[Ie];var je=!me.match(As);for(me=me.replace(Xr,""),je&&(me=me.replace(As,"!")),Ie=0;Ie<le.length;++Ie)if((je?le[Ie].replace(As,"!"):le[Ie]).replace(Xr,"")==me||(je?ue[Ie].replace(As,"!"):ue[Ie]).replace(Xr,"")==me)return ie.FileIndex[Ie];return null}var j=64,H=-2,G="d0cf11e0a1b11ae1",L=[208,207,17,224,161,177,26,225],R="00000000000000000000000000000000",F={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:H,FREESECT:-1,HEADER_SIGNATURE:G,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:R,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function _(ie,ge,le){a();var ue=B(ie,le);c.writeFileSync(ge,ue)}function k(ie){for(var ge=new Array(ie.length),le=0;le<ie.length;++le)ge[le]=String.fromCharCode(ie[le]);return ge.join("")}function N(ie,ge){var le=B(ie,ge);switch(ge&&ge.type||"buffer"){case"file":return a(),c.writeFileSync(ge.filename,le),le;case"binary":return typeof le=="string"?le:k(le);case"base64":return Ls(typeof le=="string"?le:k(le));case"buffer":if(St)return Buffer.isBuffer(le)?le:ri(le);case"array":return typeof le=="string"?tn(le):le}return le}var P;function D(ie){try{var ge=ie.InflateRaw,le=new ge;if(le._processChunk(new Uint8Array([3,0]),le._finishFlushFlag),le.bytesRead)P=ie;else throw new Error("zlib does not expose bytesRead")}catch(ue){console.error("cannot use native zlib: "+(ue.message||ue))}}function A(ie,ge){if(!P)return Me(ie,ge);var le=P.InflateRaw,ue=new le,pe=ue._processChunk(ie.slice(ie.l),ue._finishFlushFlag);return ie.l+=ue.bytesRead,pe}function S(ie){return P?P.deflateRawSync(ie):de(ie)}var E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=[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],z=[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];function J(ie){var ge=(ie<<1|ie<<11)&139536|(ie<<5|ie<<15)&558144;return(ge>>16|ge>>8|ge)&255}for(var re=typeof Uint8Array<"u",se=re?new Uint8Array(256):[],Ce=0;Ce<256;++Ce)se[Ce]=J(Ce);function Y(ie,ge){var le=se[ie&255];return ge<=8?le>>>8-ge:(le=le<<8|se[ie>>8&255],ge<=16?le>>>16-ge:(le=le<<8|se[ie>>16&255],le>>>24-ge))}function q(ie,ge){var le=ge&7,ue=ge>>>3;return(ie[ue]|(le<=6?0:ie[ue+1]<<8))>>>le&3}function K(ie,ge){var le=ge&7,ue=ge>>>3;return(ie[ue]|(le<=5?0:ie[ue+1]<<8))>>>le&7}function Q(ie,ge){var le=ge&7,ue=ge>>>3;return(ie[ue]|(le<=4?0:ie[ue+1]<<8))>>>le&15}function he(ie,ge){var le=ge&7,ue=ge>>>3;return(ie[ue]|(le<=3?0:ie[ue+1]<<8))>>>le&31}function we(ie,ge){var le=ge&7,ue=ge>>>3;return(ie[ue]|(le<=1?0:ie[ue+1]<<8))>>>le&127}function ae(ie,ge,le){var ue=ge&7,pe=ge>>>3,me=(1<<le)-1,Ie=ie[pe]>>>ue;return le<8-ue||(Ie|=ie[pe+1]<<8-ue,le<16-ue)||(Ie|=ie[pe+2]<<16-ue,le<24-ue)||(Ie|=ie[pe+3]<<24-ue),Ie&me}function te(ie,ge,le){var ue=ge&7,pe=ge>>>3;return ue<=5?ie[pe]|=(le&7)<<ue:(ie[pe]|=le<<ue&255,ie[pe+1]=(le&7)>>8-ue),ge+3}function Z(ie,ge,le){var ue=ge&7,pe=ge>>>3;return le=(le&1)<<ue,ie[pe]|=le,ge+1}function W(ie,ge,le){var ue=ge&7,pe=ge>>>3;return le<<=ue,ie[pe]|=le&255,le>>>=8,ie[pe+1]=le,ge+8}function V(ie,ge,le){var ue=ge&7,pe=ge>>>3;return le<<=ue,ie[pe]|=le&255,le>>>=8,ie[pe+1]=le&255,ie[pe+2]=le>>>8,ge+16}function fe(ie,ge){var le=ie.length,ue=2*le>ge?2*le:ge+5,pe=0;if(le>=ge)return ie;if(St){var me=ac(ue);if(ie.copy)ie.copy(me);else for(;pe<ie.length;++pe)me[pe]=ie[pe];return me}else if(re){var Ie=new Uint8Array(ue);if(Ie.set)Ie.set(ie);else for(;pe<le;++pe)Ie[pe]=ie[pe];return Ie}return ie.length=ue,ie}function ye(ie){for(var ge=new Array(ie),le=0;le<ie;++le)ge[le]=0;return ge}function X(ie,ge,le){var ue=1,pe=0,me=0,Ie=0,je=0,Fe=ie.length,Pe=re?new Uint16Array(32):ye(32);for(me=0;me<32;++me)Pe[me]=0;for(me=Fe;me<le;++me)ie[me]=0;Fe=ie.length;var Oe=re?new Uint16Array(Fe):ye(Fe);for(me=0;me<Fe;++me)Pe[pe=ie[me]]++,ue<pe&&(ue=pe),Oe[me]=0;for(Pe[0]=0,me=1;me<=ue;++me)Pe[me+16]=je=je+Pe[me-1]<<1;for(me=0;me<Fe;++me)je=ie[me],je!=0&&(Oe[me]=Pe[je+16]++);var $e=0;for(me=0;me<Fe;++me)if($e=ie[me],$e!=0)for(je=Y(Oe[me],ue)>>ue-$e,Ie=(1<<ue+4-$e)-1;Ie>=0;--Ie)ge[je|Ie<<$e]=$e&15|me<<4;return ue}var ve=re?new Uint16Array(512):ye(512),ke=re?new Uint16Array(32):ye(32);if(!re){for(var ee=0;ee<512;++ee)ve[ee]=0;for(ee=0;ee<32;++ee)ke[ee]=0}(function(){for(var ie=[],ge=0;ge<32;ge++)ie.push(5);X(ie,ke,32);var le=[];for(ge=0;ge<=143;ge++)le.push(8);for(;ge<=255;ge++)le.push(9);for(;ge<=279;ge++)le.push(7);for(;ge<=287;ge++)le.push(8);X(le,ve,288)})();var ne=function(){for(var ge=re?new Uint8Array(32768):[],le=0,ue=0;le<z.length-1;++le)for(;ue<z[le+1];++ue)ge[ue]=le;for(;ue<32768;++ue)ge[ue]=29;var pe=re?new Uint8Array(259):[];for(le=0,ue=0;le<O.length-1;++le)for(;ue<O[le+1];++ue)pe[ue]=le;function me(je,Fe){for(var Pe=0;Pe<je.length;){var Oe=Math.min(65535,je.length-Pe),$e=Pe+Oe==je.length;for(Fe.write_shift(1,+$e),Fe.write_shift(2,Oe),Fe.write_shift(2,~Oe&65535);Oe-- >0;)Fe[Fe.l++]=je[Pe++]}return Fe.l}function Ie(je,Fe){for(var Pe=0,Oe=0,$e=re?new Uint16Array(32768):[];Oe<je.length;){var ce=Math.min(65535,je.length-Oe);if(ce<10){for(Pe=te(Fe,Pe,+(Oe+ce==je.length)),Pe&7&&(Pe+=8-(Pe&7)),Fe.l=Pe/8|0,Fe.write_shift(2,ce),Fe.write_shift(2,~ce&65535);ce-- >0;)Fe[Fe.l++]=je[Oe++];Pe=Fe.l*8;continue}Pe=te(Fe,Pe,+(Oe+ce==je.length)+2);for(var Te=0;ce-- >0;){var Ee=je[Oe];Te=(Te<<5^Ee)&32767;var Ue=-1,Ke=0;if((Ue=$e[Te])&&(Ue|=Oe&-32768,Ue>Oe&&(Ue-=32768),Ue<Oe))for(;je[Ue+Ke]==je[Oe+Ke]&&Ke<250;)++Ke;if(Ke>2){Ee=pe[Ke],Ee<=22?Pe=W(Fe,Pe,se[Ee+1]>>1)-1:(W(Fe,Pe,3),Pe+=5,W(Fe,Pe,se[Ee-23]>>5),Pe+=3);var at=Ee<8?0:Ee-4>>2;at>0&&(V(Fe,Pe,Ke-O[Ee]),Pe+=at),Ee=ge[Oe-Ue],Pe=W(Fe,Pe,se[Ee]>>3),Pe-=3;var dt=Ee<4?0:Ee-2>>1;dt>0&&(V(Fe,Pe,Oe-Ue-z[Ee]),Pe+=dt);for(var Nt=0;Nt<Ke;++Nt)$e[Te]=Oe&32767,Te=(Te<<5^je[Oe])&32767,++Oe;ce-=Ke-1}else Ee<=143?Ee=Ee+48:Pe=Z(Fe,Pe,1),Pe=W(Fe,Pe,se[Ee]),$e[Te]=Oe&32767,++Oe}Pe=W(Fe,Pe,0)-1}return Fe.l=(Pe+7)/8|0,Fe.l}return function(Fe,Pe){return Fe.length<8?me(Fe,Pe):Ie(Fe,Pe)}}();function de(ie){var ge=We(50+Math.floor(ie.length*1.1)),le=ne(ie,ge);return ge.slice(0,le)}var _e=re?new Uint16Array(32768):ye(32768),Re=re?new Uint16Array(32768):ye(32768),Ae=re?new Uint16Array(128):ye(128),Ne=1,Xe=1;function Le(ie,ge){var le=he(ie,ge)+257;ge+=5;var ue=he(ie,ge)+1;ge+=5;var pe=Q(ie,ge)+4;ge+=4;for(var me=0,Ie=re?new Uint8Array(19):ye(19),je=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Fe=1,Pe=re?new Uint8Array(8):ye(8),Oe=re?new Uint8Array(8):ye(8),$e=Ie.length,ce=0;ce<pe;++ce)Ie[E[ce]]=me=K(ie,ge),Fe<me&&(Fe=me),Pe[me]++,ge+=3;var Te=0;for(Pe[0]=0,ce=1;ce<=Fe;++ce)Oe[ce]=Te=Te+Pe[ce-1]<<1;for(ce=0;ce<$e;++ce)(Te=Ie[ce])!=0&&(je[ce]=Oe[Te]++);var Ee=0;for(ce=0;ce<$e;++ce)if(Ee=Ie[ce],Ee!=0){Te=se[je[ce]]>>8-Ee;for(var Ue=(1<<7-Ee)-1;Ue>=0;--Ue)Ae[Te|Ue<<Ee]=Ee&7|ce<<3}var Ke=[];for(Fe=1;Ke.length<le+ue;)switch(Te=Ae[we(ie,ge)],ge+=Te&7,Te>>>=3){case 16:for(me=3+q(ie,ge),ge+=2,Te=Ke[Ke.length-1];me-- >0;)Ke.push(Te);break;case 17:for(me=3+K(ie,ge),ge+=3;me-- >0;)Ke.push(0);break;case 18:for(me=11+we(ie,ge),ge+=7;me-- >0;)Ke.push(0);break;default:Ke.push(Te),Fe<Te&&(Fe=Te);break}var at=Ke.slice(0,le),dt=Ke.slice(le);for(ce=le;ce<286;++ce)at[ce]=0;for(ce=ue;ce<30;++ce)dt[ce]=0;return Ne=X(at,_e,286),Xe=X(dt,Re,30),ge}function xe(ie,ge){if(ie[0]==3&&!(ie[1]&3))return[pi(ge),2];for(var le=0,ue=0,pe=ac(ge||1<<18),me=0,Ie=pe.length>>>0,je=0,Fe=0;!(ue&1);){if(ue=K(ie,le),le+=3,ue>>>1)ue>>1==1?(je=9,Fe=5):(le=Le(ie,le),je=Ne,Fe=Xe);else{le&7&&(le+=8-(le&7));var Pe=ie[le>>>3]|ie[(le>>>3)+1]<<8;if(le+=32,Pe>0)for(!ge&&Ie<me+Pe&&(pe=fe(pe,me+Pe),Ie=pe.length);Pe-- >0;)pe[me++]=ie[le>>>3],le+=8;continue}for(;;){!ge&&Ie<me+32767&&(pe=fe(pe,me+32767),Ie=pe.length);var Oe=ae(ie,le,je),$e=ue>>>1==1?ve[Oe]:_e[Oe];if(le+=$e&15,$e>>>=4,!($e>>>8&255))pe[me++]=$e;else{if($e==256)break;$e-=257;var ce=$e<8?0:$e-4>>2;ce>5&&(ce=0);var Te=me+O[$e];ce>0&&(Te+=ae(ie,le,ce),le+=ce),Oe=ae(ie,le,Fe),$e=ue>>>1==1?ke[Oe]:Re[Oe],le+=$e&15,$e>>>=4;var Ee=$e<4?0:$e-2>>1,Ue=z[$e];for(Ee>0&&(Ue+=ae(ie,le,Ee),le+=Ee),!ge&&Ie<Te&&(pe=fe(pe,Te+100),Ie=pe.length);me<Te;)pe[me]=pe[me-Ue],++me}}}return ge?[pe,le+7>>>3]:[pe.slice(0,me),le+7>>>3]}function Me(ie,ge){var le=ie.slice(ie.l||0),ue=xe(le,ge);return ie.l+=ue[1],ue[0]}function Be(ie,ge){if(ie)typeof console<"u"&&console.error(ge);else throw new Error(ge)}function Ve(ie,ge){var le=ie;kr(le,0);var ue=[],pe=[],me={FileIndex:ue,FullPaths:pe};C(me,{root:ge.root});for(var Ie=le.length-4;(le[Ie]!=80||le[Ie+1]!=75||le[Ie+2]!=5||le[Ie+3]!=6)&&Ie>=0;)--Ie;le.l=Ie+4,le.l+=4;var je=le.read_shift(2);le.l+=6;var Fe=le.read_shift(4);for(le.l=Fe,Ie=0;Ie<je;++Ie){le.l+=20;var Pe=le.read_shift(4),Oe=le.read_shift(4),$e=le.read_shift(2),ce=le.read_shift(2),Te=le.read_shift(2);le.l+=8;var Ee=le.read_shift(4),Ue=h(le.slice(le.l+$e,le.l+$e+ce));le.l+=$e+ce+Te;var Ke=le.l;le.l=Ee+4,ot(le,Pe,Oe,me,Ue),le.l=Ke}return me}function ot(ie,ge,le,ue,pe){ie.l+=2;var me=ie.read_shift(2),Ie=ie.read_shift(2),je=o(ie);if(me&8257)throw new Error("Unsupported ZIP encryption");for(var Fe=ie.read_shift(4),Pe=ie.read_shift(4),Oe=ie.read_shift(4),$e=ie.read_shift(2),ce=ie.read_shift(2),Te="",Ee=0;Ee<$e;++Ee)Te+=String.fromCharCode(ie[ie.l++]);if(ce){var Ue=h(ie.slice(ie.l,ie.l+ce));(Ue[21589]||{}).mt&&(je=Ue[21589].mt),((pe||{})[21589]||{}).mt&&(je=pe[21589].mt)}ie.l+=ce;var Ke=ie.slice(ie.l,ie.l+Pe);switch(Ie){case 8:Ke=A(ie,Oe);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Ie)}var at=!1;me&8&&(Fe=ie.read_shift(4),Fe==134695760&&(Fe=ie.read_shift(4),at=!0),Pe=ie.read_shift(4),Oe=ie.read_shift(4)),Pe!=ge&&Be(at,"Bad compressed size: "+ge+" != "+Pe),Oe!=le&&Be(at,"Bad uncompressed size: "+le+" != "+Oe),lt(ue,Te,Ke,{unsafe:!0,mt:je})}function ct(ie,ge){var le=ge||{},ue=[],pe=[],me=We(1),Ie=le.compression?8:0,je=0,Fe=0,Pe=0,Oe=0,$e=0,ce=ie.FullPaths[0],Te=ce,Ee=ie.FileIndex[0],Ue=[],Ke=0;for(Fe=1;Fe<ie.FullPaths.length;++Fe)if(Te=ie.FullPaths[Fe].slice(ce.length),Ee=ie.FileIndex[Fe],!(!Ee.size||!Ee.content||Te=="Sh33tJ5")){var at=Oe,dt=We(Te.length);for(Pe=0;Pe<Te.length;++Pe)dt.write_shift(1,Te.charCodeAt(Pe)&127);dt=dt.slice(0,dt.l),Ue[$e]=Tm.buf(Ee.content,0);var Nt=Ee.content;Ie==8&&(Nt=S(Nt)),me=We(30),me.write_shift(4,67324752),me.write_shift(2,20),me.write_shift(2,je),me.write_shift(2,Ie),Ee.mt?s(me,Ee.mt):me.write_shift(4,0),me.write_shift(-4,Ue[$e]),me.write_shift(4,Nt.length),me.write_shift(4,Ee.content.length),me.write_shift(2,dt.length),me.write_shift(2,0),Oe+=me.length,ue.push(me),Oe+=dt.length,ue.push(dt),Oe+=Nt.length,ue.push(Nt),me=We(46),me.write_shift(4,33639248),me.write_shift(2,0),me.write_shift(2,20),me.write_shift(2,je),me.write_shift(2,Ie),me.write_shift(4,0),me.write_shift(-4,Ue[$e]),me.write_shift(4,Nt.length),me.write_shift(4,Ee.content.length),me.write_shift(2,dt.length),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(4,0),me.write_shift(4,at),Ke+=me.l,pe.push(me),Ke+=dt.length,pe.push(dt),++$e}return me=We(22),me.write_shift(4,101010256),me.write_shift(2,0),me.write_shift(2,0),me.write_shift(2,$e),me.write_shift(2,$e),me.write_shift(4,Ke),me.write_shift(4,Oe),me.write_shift(2,0),yr([yr(ue),yr(pe),me])}var rt={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 nt(ie,ge){if(ie.ctype)return ie.ctype;var le=ie.name||"",ue=le.match(/\.([^\.]+)$/);return ue&&rt[ue[1]]||ge&&(ue=(le=ge).match(/[\.\\]([^\.\\])+$/),ue&&rt[ue[1]])?rt[ue[1]]:"application/octet-stream"}function mt(ie){for(var ge=Ls(ie),le=[],ue=0;ue<ge.length;ue+=76)le.push(ge.slice(ue,ue+76));return le.join(`\r
|
||
`)+`\r
|
||
`}function et(ie){var ge=ie.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Pe){var Oe=Pe.charCodeAt(0).toString(16).toUpperCase();return"="+(Oe.length==1?"0"+Oe:Oe)});ge=ge.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),ge.charAt(0)==`
|
||
`&&(ge="=0D"+ge.slice(1)),ge=ge.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
|
||
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var le=[],ue=ge.split(`\r
|
||
`),pe=0;pe<ue.length;++pe){var me=ue[pe];if(me.length==0){le.push("");continue}for(var Ie=0;Ie<me.length;){var je=76,Fe=me.slice(Ie,Ie+je);Fe.charAt(je-1)=="="?je--:Fe.charAt(je-2)=="="?je-=2:Fe.charAt(je-3)=="="&&(je-=3),Fe=me.slice(Ie,Ie+je),Ie+=je,Ie<me.length&&(Fe+="="),le.push(Fe)}}return le.join(`\r
|
||
`)}function tt(ie){for(var ge=[],le=0;le<ie.length;++le){for(var ue=ie[le];le<=ie.length&&ue.charAt(ue.length-1)=="=";)ue=ue.slice(0,ue.length-1)+ie[++le];ge.push(ue)}for(var pe=0;pe<ge.length;++pe)ge[pe]=ge[pe].replace(/[=][0-9A-Fa-f]{2}/g,function(me){return String.fromCharCode(parseInt(me.slice(1),16))});return tn(ge.join(`\r
|
||
`))}function vt(ie,ge,le){for(var ue="",pe="",me="",Ie,je=0;je<10;++je){var Fe=ge[je];if(!Fe||Fe.match(/^\s*$/))break;var Pe=Fe.match(/^(.*?):\s*([^\s].*)$/);if(Pe)switch(Pe[1].toLowerCase()){case"content-location":ue=Pe[2].trim();break;case"content-type":me=Pe[2].trim();break;case"content-transfer-encoding":pe=Pe[2].trim();break}}switch(++je,pe.toLowerCase()){case"base64":Ie=tn(nn(ge.slice(je).join("")));break;case"quoted-printable":Ie=tt(ge.slice(je));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+pe)}var Oe=lt(ie,ue.slice(le.length),Ie,{unsafe:!0});me&&(Oe.ctype=me)}function ft(ie,ge){if(k(ie.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var le=ge&&ge.root||"",ue=(St&&Buffer.isBuffer(ie)?ie.toString("binary"):k(ie)).split(`\r
|
||
`),pe=0,me="";for(pe=0;pe<ue.length;++pe)if(me=ue[pe],!!/^Content-Location:/i.test(me)&&(me=me.slice(me.indexOf("file")),le||(le=me.slice(0,me.lastIndexOf("/")+1)),me.slice(0,le.length)!=le))for(;le.length>0&&(le=le.slice(0,le.length-1),le=le.slice(0,le.lastIndexOf("/")+1),me.slice(0,le.length)!=le););var Ie=(ue[1]||"").match(/boundary="(.*?)"/);if(!Ie)throw new Error("MAD cannot find boundary");var je="--"+(Ie[1]||""),Fe=[],Pe=[],Oe={FileIndex:Fe,FullPaths:Pe};C(Oe);var $e,ce=0;for(pe=0;pe<ue.length;++pe){var Te=ue[pe];Te!==je&&Te!==je+"--"||(ce++&&vt(Oe,ue.slice($e,pe),le),$e=pe)}return Oe}function kt(ie,ge){var le=ge||{},ue=le.boundary||"SheetJS";ue="------="+ue;for(var pe=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+ue.slice(2)+'"',"","",""],me=ie.FullPaths[0],Ie=me,je=ie.FileIndex[0],Fe=1;Fe<ie.FullPaths.length;++Fe)if(Ie=ie.FullPaths[Fe].slice(me.length),je=ie.FileIndex[Fe],!(!je.size||!je.content||Ie=="Sh33tJ5")){Ie=Ie.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ke){return"_x"+Ke.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ke){return"_u"+Ke.charCodeAt(0).toString(16)+"_"});for(var Pe=je.content,Oe=St&&Buffer.isBuffer(Pe)?Pe.toString("binary"):k(Pe),$e=0,ce=Math.min(1024,Oe.length),Te=0,Ee=0;Ee<=ce;++Ee)(Te=Oe.charCodeAt(Ee))>=32&&Te<128&&++$e;var Ue=$e>=ce*4/5;pe.push(ue),pe.push("Content-Location: "+(le.root||"file:///C:/SheetJS/")+Ie),pe.push("Content-Transfer-Encoding: "+(Ue?"quoted-printable":"base64")),pe.push("Content-Type: "+nt(je,Ie)),pe.push(""),pe.push(Ue?et(Oe):mt(Oe))}return pe.push(ue+`--\r
|
||
`),pe.join(`\r
|
||
`)}function Tt(ie){var ge={};return C(ge,ie),ge}function lt(ie,ge,le,ue){var pe=ue&&ue.unsafe;pe||C(ie);var me=!pe&&ut.find(ie,ge);if(!me){var Ie=ie.FullPaths[0];ge.slice(0,Ie.length)==Ie?Ie=ge:(Ie.slice(-1)!="/"&&(Ie+="/"),Ie=(Ie+ge).replace("//","/")),me={name:i(ge),type:2},ie.FileIndex.push(me),ie.FullPaths.push(Ie),pe||ut.utils.cfb_gc(ie)}return me.content=le,me.size=le?le.length:0,ue&&(ue.CLSID&&(me.clsid=ue.CLSID),ue.mt&&(me.mt=ue.mt),ue.ct&&(me.ct=ue.ct)),me}function Ct(ie,ge){C(ie);var le=ut.find(ie,ge);if(le){for(var ue=0;ue<ie.FileIndex.length;++ue)if(ie.FileIndex[ue]==le)return ie.FileIndex.splice(ue,1),ie.FullPaths.splice(ue,1),!0}return!1}function Mt(ie,ge,le){C(ie);var ue=ut.find(ie,ge);if(ue){for(var pe=0;pe<ie.FileIndex.length;++pe)if(ie.FileIndex[pe]==ue)return ie.FileIndex[pe].name=i(le),ie.FullPaths[pe]=le,!0}return!1}function gt(ie){I(ie,!0)}return r.find=U,r.read=T,r.parse=f,r.write=N,r.writeFile=_,r.utils={cfb_new:Tt,cfb_add:lt,cfb_del:Ct,cfb_mov:Mt,cfb_gc:gt,ReadShift:Rs,CheckField:vu,prep_blob:kr,bconcat:yr,use_zlib:D,_deflateRaw:de,_inflateRaw:Me,consts:F},r}();function Sm(t){return typeof t=="string"?po(t):Array.isArray(t)?J1(t):t}function ea(t,r,e){if(typeof Deno<"u"){if(e&&typeof r=="string")switch(e){case"utf8":r=new TextEncoder(e).encode(r);break;case"binary":r=po(r);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,r)}var n=e=="utf8"?Ln(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var i=new Blob([Sm(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,t);if(typeof saveAs<"u")return saveAs(i,t);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var s=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),chrome.downloads.download({url:s,filename:t,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=t,o.href=s,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(s)},6e4),s}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var h=File(t);return h.open("w"),h.encoding="binary",Array.isArray(r)&&(r=bi(r)),h.write(r),h.close(),r}catch(c){if(!c.message||!c.message.match(/onstruct/))throw c}throw new Error("cannot save file "+t)}function km(t){if(typeof Deno<"u")return Deno.readFileSync(t);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var r=File(t);r.open("r"),r.encoding="binary";var e=r.read();return r.close(),e}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+t)}function or(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 pc(t,r){for(var e=[],n=or(t),i=0;i!==n.length;++i)e[t[n[i]][r]]==null&&(e[t[n[i]][r]]=n[i]);return e}function go(t){for(var r=[],e=or(t),n=0;n!==e.length;++n)r[t[e[n]]]=e[n];return r}function vo(t){for(var r=[],e=or(t),n=0;n!==e.length;++n)r[t[e[n]]]=parseInt(e[n],10);return r}function Cm(t){for(var r=[],e=or(t),n=0;n!==e.length;++n)r[t[e[n]]]==null&&(r[t[e[n]]]=[]),r[t[e[n]]].push(e[n]);return r}var no=new Date(1899,11,30,0,0,0);function Ar(t,r){var e=t.getTime();r&&(e-=1462*24*60*60*1e3);var n=no.getTime()+(t.getTimezoneOffset()-no.getTimezoneOffset())*6e4;return(e-n)/(24*60*60*1e3)}var Zh=new Date,Am=no.getTime()+(Zh.getTimezoneOffset()-no.getTimezoneOffset())*6e4,mc=Zh.getTimezoneOffset();function xo(t){var r=new Date;return r.setTime(t*24*60*60*1e3+Am),r.getTimezoneOffset()!==mc&&r.setTime(r.getTime()+(r.getTimezoneOffset()-mc)*6e4),r}function Fm(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 s=1;s!=i.length;++s)if(i[s]){switch(e=1,s>3&&(n=!0),i[s].slice(i[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[s].slice(i[s].length-1));case"D":e*=24;case"H":e*=60;case"M":if(n)e*=60;else throw new Error("Unsupported ISO Duration Field: M")}r+=e*parseInt(i[s],10)}return r}var gc=new Date("2017-02-19T19:06:09.000Z"),Jh=isNaN(gc.getFullYear())?new Date("2/19/17"):gc,Rm=Jh.getFullYear()==2017;function qt(t,r){var e=new Date(t);if(Rm)return r>0?e.setTime(e.getTime()+e.getTimezoneOffset()*60*1e3):r<0&&e.setTime(e.getTime()-e.getTimezoneOffset()*60*1e3),e;if(t instanceof Date)return t;if(Jh.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"],s=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return t.indexOf("Z")>-1&&(s=new Date(s.getTime()-s.getTimezoneOffset()*60*1e3)),s}function ji(t,r){if(St&&Buffer.isBuffer(t)){if(r){if(t[0]==255&&t[1]==254)return Ln(t.slice(2).toString("utf16le"));if(t[1]==254&&t[2]==255)return Ln(Lh(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(t[0]==255&&t[1]==254)return Ln(new TextDecoder("utf-16le").decode(t.slice(2)));if(t[0]==254&&t[1]==255)return Ln(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(s){return e[s]||s})}catch{}for(var n=[],i=0;i!=t.length;++i)n.push(String.fromCharCode(t[i]));return n.join("")}function Zt(t){if(typeof JSON<"u"&&!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]=Zt(t[e]));return r}function tr(t,r){for(var e="";e.length<r;)e+=t;return e}function qn(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,s){return e=-e,s}),!isNaN(r=Number(n)))?r/e:r}var Mm=["january","february","march","april","may","june","july","august","september","october","november","december"];function Us(t){var r=new Date(t),e=new Date(NaN),n=r.getYear(),i=r.getMonth(),s=r.getDate();if(isNaN(s))return e;var o=t.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&Mm.indexOf(o)==-1)return e}else if(o.match(/[a-z]/))return e;return n<0||n>8099?e:(i>0||s>1)&&n!=101?r:t.match(/[^-0-9:,\/\\]/)?e:r}var Om=function(){var t="abacaba".split(/(:?b)/i).length==5;return function(e,n,i){if(t||typeof n=="string")return e.split(n);for(var s=e.split(n),o=[s[0]],h=1;h<s.length;++h)o.push(i),o.push(s[h]);return o}}();function Qh(t){return t?t.content&&t.type?ji(t.content,!0):t.data?Cs(t.data):t.asNodeBuffer&&St?Cs(t.asNodeBuffer().toString("binary")):t.asBinary?Cs(t.asBinary()):t._data&&t._data.getContent?Cs(ji(Array.prototype.slice.call(t._data.getContent(),0))):null:null}function qh(t){if(!t)return null;if(t.data)return ic(t.data);if(t.asNodeBuffer&&St)return t.asNodeBuffer();if(t._data&&t._data.getContent){var r=t._data.getContent();return typeof r=="string"?ic(r):Array.prototype.slice.call(r)}return t.content&&t.type?t.content:null}function Im(t){return t&&t.name.slice(-4)===".bin"?qh(t):Qh(t)}function hn(t,r){for(var e=t.FullPaths||or(t.files),n=r.toLowerCase().replace(/[\/]/g,"\\"),i=n.replace(/\\/g,"/"),s=0;s<e.length;++s){var o=e[s].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==o||i==o)return t.files?t.files[e[s]]:t.FileIndex[s]}return null}function Kf(t,r){var e=hn(t,r);if(e==null)throw new Error("Cannot find file "+r+" in zip");return e}function cr(t,r,e){if(!e)return Im(Kf(t,r));if(!r)return null;try{return cr(t,r)}catch{return null}}function rn(t,r,e){if(!e)return Qh(Kf(t,r));if(!r)return null;try{return rn(t,r)}catch{return null}}function eu(t,r,e){if(!e)return qh(Kf(t,r));if(!r)return null;try{return eu(t,r)}catch{return null}}function vc(t){for(var r=t.FullPaths||or(t.files),e=[],n=0;n<r.length;++n)r[n].slice(-1)!="/"&&e.push(r[n].replace(/^Root Entry[\/]/,""));return e.sort()}function Et(t,r,e){if(t.FullPaths){if(typeof e=="string"){var n;return St?n=ri(e):n=Q1(e),ut.utils.cfb_add(t,r,n)}ut.utils.cfb_add(t,r,e)}else t.file(r,e)}function Yf(){return ut.utils.cfb_new()}function tu(t,r){switch(r.type){case"base64":return ut.read(t,{type:"base64"});case"binary":return ut.read(t,{type:"binary"});case"buffer":case"array":return ut.read(t,{type:"buffer"})}throw new Error("Unrecognized type "+r.type)}function Fs(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 fr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
||
`,Dm=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,xc=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,Nm=/<[^>]*>/g,jr=fr.match(xc)?xc:Nm,Pm=/<\w*:/,Bm=/<(\/?)\w+:/;function bt(t,r,e){for(var n={},i=0,s=0;i!==t.length&&!((s=t.charCodeAt(i))===32||s===10||s===13);++i);if(r||(n[0]=t.slice(0,i)),i===t.length)return n;var o=t.match(Dm),h=0,c="",a=0,f="",l="",u=1;if(o)for(a=0;a!=o.length;++a){for(l=o[a],s=0;s!=l.length&&l.charCodeAt(s)!==61;++s);for(f=l.slice(0,s).trim();l.charCodeAt(s+1)==32;)++s;for(u=(i=l.charCodeAt(s+1))==34||i==39?1:0,c=l.slice(s+1+u,l.length-u),h=0;h!=f.length&&f.charCodeAt(h)!==58;++h);if(h===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),n[f]=c,e||(n[f.toLowerCase()]=c);else{var p=(h===5&&f.slice(0,5)==="xmlns"?"xmlns":"")+f.slice(h+1);if(n[p]&&f.slice(h-3,h)=="ext")continue;n[p]=c,e||(n[p.toLowerCase()]=c)}}return n}function Hn(t){return t.replace(Bm,"<$1")}var ru={""":'"',"'":"'",">":">","<":"<","&":"&"},Zf=go(ru),Pt=function(){var t=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,r=/_x([\da-fA-F]{4})_/ig;return function e(n){var i=n+"",s=i.indexOf("<![CDATA[");if(s==-1)return i.replace(t,function(h,c){return ru[h]||String.fromCharCode(parseInt(c,h.indexOf("x")>-1?16:10))||h}).replace(r,function(h,c){return String.fromCharCode(parseInt(c,16))});var o=i.indexOf("]]>");return e(i.slice(0,s))+i.slice(s+9,o)+e(i.slice(o+3))}}(),Jf=/[&<>'"]/g,Lm=/[\u0000-\u0008\u000b-\u001f]/g;function $t(t){var r=t+"";return r.replace(Jf,function(e){return Zf[e]}).replace(Lm,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function bc(t){return $t(t).replace(/ /g,"_x0020_")}var nu=/[\u0000-\u001f]/g;function Qf(t){var r=t+"";return r.replace(Jf,function(e){return Zf[e]}).replace(/\n/g,"<br/>").replace(nu,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function jm(t){var r=t+"";return r.replace(Jf,function(e){return Zf[e]}).replace(nu,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}var wc=function(){var t=/&#(\d+);/g;function r(e,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(t,r)}}();function Um(t){return t.replace(/(\r\n|[\r\n])/g," ")}function Yt(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Wo(t){for(var r="",e=0,n=0,i=0,s=0,o=0,h=0;e<t.length;){if(n=t.charCodeAt(e++),n<128){r+=String.fromCharCode(n);continue}if(i=t.charCodeAt(e++),n>191&&n<224){o=(n&31)<<6,o|=i&63,r+=String.fromCharCode(o);continue}if(s=t.charCodeAt(e++),n<240){r+=String.fromCharCode((n&15)<<12|(i&63)<<6|s&63);continue}o=t.charCodeAt(e++),h=((n&7)<<18|(i&63)<<12|(s&63)<<6|o&63)-65536,r+=String.fromCharCode(55296+(h>>>10&1023)),r+=String.fromCharCode(56320+(h&1023))}return r}function yc(t){var r=pi(2*t.length),e,n,i=1,s=0,o=0,h;for(n=0;n<t.length;n+=i)i=1,(h=t.charCodeAt(n))<128?e=h:h<224?(e=(h&31)*64+(t.charCodeAt(n+1)&63),i=2):h<240?(e=(h&15)*4096+(t.charCodeAt(n+1)&63)*64+(t.charCodeAt(n+2)&63),i=3):(i=4,e=(h&7)*262144+(t.charCodeAt(n+1)&63)*4096+(t.charCodeAt(n+2)&63)*64+(t.charCodeAt(n+3)&63),e-=65536,o=55296+(e>>>10&1023),e=56320+(e&1023)),o!==0&&(r[s++]=o&255,r[s++]=o>>>8,o=0),r[s++]=e%256,r[s++]=e>>>8;return r.slice(0,s).toString("ucs2")}function _c(t){return ri(t,"binary").toString("utf8")}var Ma="foo bar bazâð£",Wt=St&&(_c(Ma)==Wo(Ma)&&_c||yc(Ma)==Wo(Ma)&&yc)||Wo,Ln=St?function(t){return ri(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+(n&63)));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+(i&63)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)))}return r.join("")},Hs=function(){var t={};return function(e,n){var i=e+"|"+(n||"");return t[i]?t[i]:t[i]=new RegExp("<(?:\\w+:)?"+e+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+e+">",n||"")}}(),Hm=function(){var t=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(e){for(var n=e.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,""),i=0;i<t.length;++i)n=n.replace(t[i][0],t[i][1]);return n}}(),zm=function(){var t={};return function(e){return t[e]!==void 0?t[e]:t[e]=new RegExp("<(?:vt:)?"+e+">([\\s\\S]*?)</(?:vt:)?"+e+">","g")}}(),$m=/<\/?(?:vt:)?variant>/g,Wm=/<(?:vt:)([^>]*)>([\s\S]*)</;function Ec(t,r){var e=bt(t),n=t.match(zm(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(s){var o=s.replace($m,"").match(Wm);o&&i.push({v:Wt(o[2]),t:o[1]})}),i}var iu=/(^\s|\s$|\n)/;function Cr(t,r){return"<"+t+(r.match(iu)?' xml:space="preserve"':"")+">"+r+"</"+t+">"}function zs(t){return or(t).map(function(r){return" "+r+'="'+t[r]+'"'}).join("")}function Qe(t,r,e){return"<"+t+(e!=null?zs(e):"")+(r!=null?(r.match(iu)?' xml:space="preserve"':"")+">"+r+"</"+t:"/")+">"}function bf(t,r){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(r)throw e}return""}function Xm(t,r){switch(typeof t){case"string":var e=Qe("vt:lpwstr",$t(t));return r&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return Qe((t|0)==t?"vt:i4":"vt:r8",$t(String(t)));case"boolean":return Qe("vt:bool",t?"true":"false")}if(t instanceof Date)return Qe("vt:filetime",bf(t));throw new Error("Unable to serialize "+t)}function qf(t){if(St&&Buffer.isBuffer(t))return t.toString("utf8");if(typeof t=="string")return t;if(typeof Uint8Array<"u"&&t instanceof Uint8Array)return Wt(bi(Xf(t)));throw new Error("Bad input format: expected Buffer or string")}var $s=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,gr={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"},Wi=["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"],qr={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"};function Vm(t,r){for(var e=1-2*(t[r+7]>>>7),n=((t[r+7]&127)<<4)+(t[r+6]>>>4&15),i=t[r+6]&15,s=5;s>=0;--s)i=i*256+t[r+s];return n==2047?i==0?e*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),e*Math.pow(2,n-52)*i)}function Gm(t,r,e){var n=(r<0||1/r==-1/0?1:0)<<7,i=0,s=0,o=n?-r:r;isFinite(o)?o==0?i=s=0:(i=Math.floor(Math.log(o)/Math.LN2),s=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?i=-1022:(s-=Math.pow(2,52),i+=1023)):(i=2047,s=isNaN(r)?26985:0);for(var h=0;h<=5;++h,s/=256)t[e+h]=s&255;t[e+6]=(i&15)<<4|s&15,t[e+7]=i>>4|n}var Tc=function(t){for(var r=[],e=10240,n=0;n<t[0].length;++n)if(t[0][n])for(var i=0,s=t[0][n].length;i<s;i+=e)r.push.apply(r,t[0][n].slice(i,i+e));return r},Sc=St?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(r){return Buffer.isBuffer(r)?r:ri(r)})):Tc(t)}:Tc,kc=function(t,r,e){for(var n=[],i=r;i<e;i+=2)n.push(String.fromCharCode(Zn(t,i)));return n.join("").replace(Xr,"")},el=St?function(t,r,e){return Buffer.isBuffer(t)?t.toString("utf16le",r,e).replace(Xr,""):kc(t,r,e)}:kc,Cc=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("")},su=St?function(t,r,e){return Buffer.isBuffer(t)?t.toString("hex",r,r+e):Cc(t,r,e)}:Cc,Ac=function(t,r,e){for(var n=[],i=r;i<e;i++)n.push(String.fromCharCode(os(t,i)));return n.join("")},ta=St?function(r,e,n){return Buffer.isBuffer(r)?r.toString("utf8",e,n):Ac(r,e,n)}:Ac,au=function(t,r){var e=en(t,r);return e>0?ta(t,r+4,r+4+e-1):""},ou=au,fu=function(t,r){var e=en(t,r);return e>0?ta(t,r+4,r+4+e-1):""},lu=fu,cu=function(t,r){var e=2*en(t,r);return e>0?ta(t,r+4,r+4+e-1):""},hu=cu,uu=function(r,e){var n=en(r,e);return n>0?el(r,e+4,e+4+n):""},du=uu,pu=function(t,r){var e=en(t,r);return e>0?ta(t,r+4,r+4+e):""},mu=pu,gu=function(t,r){return Vm(t,r)},io=gu,tl=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};St&&(ou=function(r,e){if(!Buffer.isBuffer(r))return au(r,e);var n=r.readUInt32LE(e);return n>0?r.toString("utf8",e+4,e+4+n-1):""},lu=function(r,e){if(!Buffer.isBuffer(r))return fu(r,e);var n=r.readUInt32LE(e);return n>0?r.toString("utf8",e+4,e+4+n-1):""},hu=function(r,e){if(!Buffer.isBuffer(r))return cu(r,e);var n=2*r.readUInt32LE(e);return r.toString("utf16le",e+4,e+4+n-1)},du=function(r,e){if(!Buffer.isBuffer(r))return uu(r,e);var n=r.readUInt32LE(e);return r.toString("utf16le",e+4,e+4+n)},mu=function(r,e){if(!Buffer.isBuffer(r))return pu(r,e);var n=r.readUInt32LE(e);return r.toString("utf8",e+4,e+4+n)},io=function(r,e){return Buffer.isBuffer(r)?r.readDoubleLE(e):gu(r,e)},tl=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var os=function(t,r){return t[r]},Zn=function(t,r){return t[r+1]*256+t[r]},Km=function(t,r){var e=t[r+1]*256+t[r];return e<32768?e:(65535-e+1)*-1},en=function(t,r){return t[r+3]*(1<<24)+(t[r+2]<<16)+(t[r+1]<<8)+t[r]},Fi=function(t,r){return t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]},Ym=function(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};function Rs(t,r){var e="",n,i,s=[],o,h,c,a;switch(r){case"dbcs":if(a=this.l,St&&Buffer.isBuffer(this))e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c<t;++c)e+=String.fromCharCode(Zn(this,a)),a+=2;t*=2;break;case"utf8":e=ta(this,this.l,this.l+t);break;case"utf16le":t*=2,e=el(this,this.l,this.l+t);break;case"wstr":return Rs.call(this,t,"dbcs");case"lpstr-ansi":e=ou(this,this.l),t=4+en(this,this.l);break;case"lpstr-cp":e=lu(this,this.l),t=4+en(this,this.l);break;case"lpwstr":e=hu(this,this.l),t=4+2*en(this,this.l);break;case"lpp4":t=4+en(this,this.l),e=du(this,this.l),t&2&&(t+=2);break;case"8lpp4":t=4+en(this,this.l),e=mu(this,this.l),t&3&&(t+=4-(t&3));break;case"cstr":for(t=0,e="";(o=os(this,this.l+t++))!==0;)s.push(Ra(o));e=s.join("");break;case"_wstr":for(t=0,e="";(o=Zn(this,this.l+t))!==0;)s.push(Ra(o)),t+=2;t+=2,e=s.join("");break;case"dbcs-cont":for(e="",a=this.l,c=0;c<t;++c){if(this.lens&&this.lens.indexOf(a)!==-1)return o=os(this,a),this.l=a+1,h=Rs.call(this,t-c,o?"dbcs-cont":"sbcs-cont"),s.join("")+h;s.push(Ra(Zn(this,a))),a+=2}e=s.join(""),t*=2;break;case"cpstr":case"sbcs-cont":for(e="",a=this.l,c=0;c!=t;++c){if(this.lens&&this.lens.indexOf(a)!==-1)return o=os(this,a),this.l=a+1,h=Rs.call(this,t-c,o?"dbcs-cont":"sbcs-cont"),s.join("")+h;s.push(Ra(os(this,a))),a+=1}e=s.join("");break;default:switch(t){case 1:return n=os(this,this.l),this.l++,n;case 2:return n=(r==="i"?Km:Zn)(this,this.l),this.l+=2,n;case 4:case-4:return r==="i"||!(this[this.l+3]&128)?(n=(t>0?Fi:Ym)(this,this.l),this.l+=4,n):(i=en(this,this.l),this.l+=4,i);case 8:case-8:if(r==="f")return t==8?i=io(this,this.l):i=io([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,i;t=8;case 16:e=su(this,this.l,t);break}}return this.l+=t,e}var Zm=function(t,r,e){t[e]=r&255,t[e+1]=r>>>8&255,t[e+2]=r>>>16&255,t[e+3]=r>>>24&255},Jm=function(t,r,e){t[e]=r&255,t[e+1]=r>>8&255,t[e+2]=r>>16&255,t[e+3]=r>>24&255},Qm=function(t,r,e){t[e]=r&255,t[e+1]=r>>>8&255};function qm(t,r,e){var n=0,i=0;if(e==="dbcs"){for(i=0;i!=r.length;++i)Qm(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]=r.charCodeAt(i)&255;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}else if(e==="utf16le"){var s=Math.min(this.l+t,this.length);for(i=0;i<Math.min(r.length,t);++i){var o=r.charCodeAt(i);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<s;)this[this.l++]=0;return this}else switch(t){case 1:n=1,this[this.l]=r&255;break;case 2:n=2,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255;break;case 3:n=3,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255,r>>>=8,this[this.l+2]=r&255;break;case 4:n=4,Zm(this,r,this.l);break;case 8:if(n=8,e==="f"){Gm(this,r,this.l);break}case 16:break;case-4:n=4,Jm(this,r,this.l);break}return this.l+=n,this}function vu(t,r){var e=su(this,this.l,t.length>>1);if(e!==t)throw new Error(r+"Expected "+t+" saw "+e);this.l+=t.length>>1}function kr(t,r){t.l=r,t.read_shift=Rs,t.chk=vu,t.write_shift=qm}function Lr(t,r){t.l+=r}function We(t){var r=pi(t);return kr(r,0),r}function ni(t,r,e){if(t){var n,i,s;kr(t,t.l||0);for(var o=t.length,h=0,c=0;t.l<o;){h=t.read_shift(1),h&128&&(h=(h&127)+((t.read_shift(1)&127)<<7));var a=Ys[h]||Ys[65535];for(n=t.read_shift(1),s=n&127,i=1;i<4&&n&128;++i)s+=((n=t.read_shift(1))&127)<<7*i;c=t.l+s;var f=a.f&&a.f(t,s,e);if(t.l=c,r(f,a,h))return}}}function Jr(){var t=[],r=St?256:2048,e=function(a){var f=We(a);return kr(f,0),f},n=e(r),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&t.push(n),n=null)},s=function(a){return n&&a<n.length-n.l?n:(i(),n=e(Math.max(a+1,r)))},o=function(){return i(),yr(t)},h=function(a){i(),n=a,n.l==null&&(n.l=n.length),s(r)};return{next:s,push:h,end:o,_bufs:t}}function Ye(t,r,e,n){var i=+r,s;if(!isNaN(i)){n||(n=Ys[i].p||(e||[]).length||0),s=1+(i>=128?1:0)+1,n>=128&&++s,n>=16384&&++s,n>=2097152&&++s;var o=t.next(s);i<=127?o.write_shift(1,i):(o.write_shift(1,(i&127)+128),o.write_shift(1,i>>7));for(var h=0;h!=4;++h)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&tl(e)&&t.push(e)}}function Ms(t,r,e){var n=Zt(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 Fc(t,r,e){var n=Zt(t);return n.s=Ms(n.s,r.s,e),n.e=Ms(n.e,r.s,e),n}function Os(t,r){if(t.cRel&&t.c<0)for(t=Zt(t);t.c<0;)t.c+=r>8?16384:256;if(t.rRel&&t.r<0)for(t=Zt(t);t.r<0;)t.r+=r>8?1048576:r>5?65536:16384;var e=yt(t);return!t.cRel&&t.cRel!=null&&(e=rg(e)),!t.rRel&&t.rRel!=null&&(e=eg(e)),e}function Xo(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.cRel?"":"$")+dr(t.s.c)+":"+(t.e.cRel?"":"$")+dr(t.e.c):t.s.c==0&&!t.s.cRel&&t.e.c==(r.biff>=12?16383:255)&&!t.e.cRel?(t.s.rRel?"":"$")+Er(t.s.r)+":"+(t.e.rRel?"":"$")+Er(t.e.r):Os(t.s,r.biff)+":"+Os(t.e,r.biff)}function xu(t){return parseInt(tg(t),10)-1}function Er(t){return""+(t+1)}function eg(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function tg(t){return t.replace(/\$(\d+)$/,"$1")}function bu(t){for(var r=ng(t),e=0,n=0;n!==r.length;++n)e=26*e+r.charCodeAt(n)-64;return e-1}function dr(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 rg(t){return t.replace(/^([A-Z])/,"$$$1")}function ng(t){return t.replace(/^\$([A-Z])/,"$1")}function vr(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 yt(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 mn(t){var r=t.indexOf(":");return r==-1?{s:vr(t),e:vr(t)}:{s:vr(t.slice(0,r)),e:vr(t.slice(r+1))}}function Rt(t,r){return typeof r>"u"||typeof r=="number"?Rt(t.s,t.e):(typeof t!="string"&&(t=yt(t)),typeof r!="string"&&(r=yt(r)),t==r?t:t+":"+r)}function Lt(t){var r={s:{c:0,r:0},e:{c:0,r:0}},e=0,n=0,i=0,s=t.length;for(e=0;n<s&&!((i=t.charCodeAt(n)-64)<1||i>26);++n)e=26*e+i;for(r.s.c=--e,e=0;n<s&&!((i=t.charCodeAt(n)-48)<0||i>9);++n)e=10*e+i;if(r.s.r=--e,n===s||i!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++n,e=0;n!=s&&!((i=t.charCodeAt(n)-64)<1||i>26);++n)e=26*e+i;for(r.e.c=--e,e=0;n!=s&&!((i=t.charCodeAt(n)-48)<0||i>9);++n)e=10*e+i;return r.e.r=--e,r}function Rc(t,r){var e=t.t=="d"&&r instanceof Date;if(t.z!=null)try{return t.w=pn(t.z,e?Ar(r):r)}catch{}try{return t.w=pn((t.XF||{}).numFmtId||(e?14:0),e?Ar(r):r)}catch{return""+r}}function mi(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"?ii[t.v]||t.v:r==null?Rc(t,t.v):Rc(t,r))}function Xi(t,r){var e=r&&r.sheet?r.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function ig(t,r,e){var n=e||{},i=t?Array.isArray(t):n.dense,s=t||(i?[]:{}),o=0,h=0;if(s&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var c=typeof n.origin=="string"?vr(n.origin):n.origin;o=c.r,h=c.c}s["!ref"]||(s["!ref"]="A1:A1")}var a={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var f=Lt(s["!ref"]);a.s.c=f.s.c,a.s.r=f.s.r,a.e.c=Math.max(a.e.c,f.e.c),a.e.r=Math.max(a.e.r,f.e.r),o==-1&&(a.e.r=o=f.e.r+1)}for(var l=0;l!=r.length;++l)if(r[l]){if(!Array.isArray(r[l]))throw new Error("aoa_to_sheet expects an array of arrays");for(var u=0;u!=r[l].length;++u)if(!(typeof r[l][u]>"u")){var p={v:r[l][u]},m=o+l,d=h+u;if(a.s.r>m&&(a.s.r=m),a.s.c>d&&(a.s.c=d),a.e.r<m&&(a.e.r=m),a.e.c<d&&(a.e.c=d),r[l][u]&&typeof r[l][u]=="object"&&!Array.isArray(r[l][u])&&!(r[l][u]instanceof Date))p=r[l][u];else if(Array.isArray(p.v)&&(p.f=r[l][u][1],p.v=p.v[0]),p.v===null)if(p.f)p.t="n";else if(n.nullError)p.t="e",p.v=0;else if(n.sheetStubs)p.t="z";else continue;else typeof p.v=="number"?p.t="n":typeof p.v=="boolean"?p.t="b":p.v instanceof Date?(p.z=n.dateNF||xt[14],n.cellDates?(p.t="d",p.w=pn(p.z,Ar(p.v))):(p.t="n",p.v=Ar(p.v),p.w=pn(p.z,p.v))):p.t="s";if(i)s[m]||(s[m]=[]),s[m][d]&&s[m][d].z&&(p.z=s[m][d].z),s[m][d]=p;else{var v=yt({c:d,r:m});s[v]&&s[v].z&&(p.z=s[v].z),s[v]=p}}}return a.s.c<1e7&&(s["!ref"]=Rt(a)),s}function ra(t,r){return ig(null,t,r)}function sg(t){return t.read_shift(4,"i")}function Cn(t,r){return r||(r=We(4)),r.write_shift(4,t),r}function Pr(t){var r=t.read_shift(4);return r===0?"":t.read_shift(r,"dbcs")}function _r(t,r){var e=!1;return r==null&&(e=!0,r=We(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 ag(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function og(t,r){return r||(r=We(4)),r.write_shift(2,t.ich||0),r.write_shift(2,t.ifnt||0),r}function rl(t,r){var e=t.l,n=t.read_shift(1),i=Pr(t),s=[],o={t:i,h:i};if(n&1){for(var h=t.read_shift(4),c=0;c!=h;++c)s.push(ag(t));o.r=s}else o.r=[{ich:0,ifnt:0}];return t.l=e+r,o}function fg(t,r){var e=!1;return r==null&&(e=!0,r=We(15+4*t.t.length)),r.write_shift(1,0),_r(t.t,r),e?r.slice(0,r.l):r}var lg=rl;function cg(t,r){var e=!1;return r==null&&(e=!0,r=We(23+4*t.t.length)),r.write_shift(1,1),_r(t.t,r),r.write_shift(4,1),og({ich:0,ifnt:0},r),e?r.slice(0,r.l):r}function gn(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 Vi(t,r){return r==null&&(r=We(8)),r.write_shift(-4,t.c),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}function Gi(t){var r=t.read_shift(2);return r+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:r}}function Ki(t,r){return r==null&&(r=We(4)),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}var hg=Pr,wu=_r;function nl(t){var r=t.read_shift(4);return r===0||r===4294967295?"":t.read_shift(r,"dbcs")}function so(t,r){var e=!1;return r==null&&(e=!0,r=We(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 ug=Pr,wf=nl,il=so;function sl(t){var r=t.slice(t.l,t.l+4),e=r[0]&1,n=r[0]&2;t.l+=4;var i=n===0?io([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Fi(r,0)>>2;return e?i/100:i}function yu(t,r){r==null&&(r=We(4));var e=0,n=0,i=t*100;if(t==(t|0)&&t>=-(1<<29)&&t<1<<29?n=1:i==(i|0)&&i>=-(1<<29)&&i<1<<29&&(n=1,e=1),n)r.write_shift(-4,((e?i:t)<<2)+(e+2));else throw new Error("unsupported RkNumber "+t)}function _u(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}function dg(t,r){return r||(r=We(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}var Yi=_u,xs=dg;function Nr(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function Ui(t,r){return(r||We(8)).write_shift(8,t,"f")}function pg(t){var r={},e=t.read_shift(1),n=e>>>1,i=t.read_shift(1),s=t.read_shift(2,"i"),o=t.read_shift(1),h=t.read_shift(1),c=t.read_shift(1);switch(t.l++,n){case 0:r.auto=1;break;case 1:r.index=i;var a=Ii[i];a&&(r.rgb=Xs(a));break;case 2:r.rgb=Xs([o,h,c]);break;case 3:r.theme=i;break}return s!=0&&(r.tint=s>0?s/32767:s/32768),r}function ao(t,r){if(r||(r=We(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)r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);else{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)}return r}function mg(t){var r=t.read_shift(1);t.l++;var e={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return e}function gg(t,r){r||(r=We(2));var e=(t.italic?2:0)|(t.strike?8:0)|(t.outline?16:0)|(t.shadow?32:0)|(t.condense?64:0)|(t.extend?128:0);return r.write_shift(1,e),r.write_shift(1,0),r}function Eu(t,r){var e={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=t.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return e[t.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return t.l-=4,t.read_shift(0,r==1?"lpstr":"lpwstr")}function vg(t){return Eu(t,1)}function xg(t){return Eu(t,2)}var al=2,Gr=3,Oa=11,Mc=12,oo=19,Ia=64,bg=65,wg=71,yg=4108,_g=4126,wr=80,Tu=81,Eg=[wr,Tu],yf={1:{n:"CodePage",t:al},2:{n:"Category",t:wr},3:{n:"PresentationFormat",t:wr},4:{n:"ByteCount",t:Gr},5:{n:"LineCount",t:Gr},6:{n:"ParagraphCount",t:Gr},7:{n:"SlideCount",t:Gr},8:{n:"NoteCount",t:Gr},9:{n:"HiddenCount",t:Gr},10:{n:"MultimediaClipCount",t:Gr},11:{n:"ScaleCrop",t:Oa},12:{n:"HeadingPairs",t:yg},13:{n:"TitlesOfParts",t:_g},14:{n:"Manager",t:wr},15:{n:"Company",t:wr},16:{n:"LinksUpToDate",t:Oa},17:{n:"CharacterCount",t:Gr},19:{n:"SharedDoc",t:Oa},22:{n:"HyperlinksChanged",t:Oa},23:{n:"AppVersion",t:Gr,p:"version"},24:{n:"DigSig",t:bg},26:{n:"ContentType",t:wr},27:{n:"ContentStatus",t:wr},28:{n:"Language",t:wr},29:{n:"Version",t:wr},255:{},2147483648:{n:"Locale",t:oo},2147483651:{n:"Behavior",t:oo},1919054434:{}},_f={1:{n:"CodePage",t:al},2:{n:"Title",t:wr},3:{n:"Subject",t:wr},4:{n:"Author",t:wr},5:{n:"Keywords",t:wr},6:{n:"Comments",t:wr},7:{n:"Template",t:wr},8:{n:"LastAuthor",t:wr},9:{n:"RevNumber",t:wr},10:{n:"EditTime",t:Ia},11:{n:"LastPrinted",t:Ia},12:{n:"CreatedDate",t:Ia},13:{n:"ModifiedDate",t:Ia},14:{n:"PageCount",t:Gr},15:{n:"WordCount",t:Gr},16:{n:"CharCount",t:Gr},17:{n:"Thumbnail",t:wg},18:{n:"Application",t:wr},19:{n:"DocSecurity",t:Gr},255:{},2147483648:{n:"Locale",t:oo},2147483651:{n:"Behavior",t:oo},1919054434:{}},Oc={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"},Tg=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Sg(t){return t.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var kg=Sg([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]),Ii=Zt(kg),ii={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Su={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Ef={"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"},Da={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 ol(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Cg(t){var r=ol();if(!t||!t.match)return r;var e={};if((t.match(jr)||[]).forEach(function(n){var i=bt(n);switch(i[0].replace(Pm,"<")){case"<?xml":break;case"<Types":r.xmlns=i["xmlns"+(i[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":e[i.Extension]=i.ContentType;break;case"<Override":r[Ef[i.ContentType]]!==void 0&&r[Ef[i.ContentType]].push(i.PartName);break}}),r.xmlns!==gr.CT)throw new Error("Unknown Namespace: "+r.xmlns);return r.calcchain=r.calcchains.length>0?r.calcchains[0]:"",r.sst=r.strs.length>0?r.strs[0]:"",r.style=r.styles.length>0?r.styles[0]:"",r.defaults=e,delete r.calcchains,r}function ku(t,r){var e=Cm(Ef),n=[],i;n[n.length]=fr,n[n.length]=Qe("Types",null,{xmlns:gr.CT,"xmlns:xsd":gr.xsd,"xmlns:xsi":gr.xsi}),n=n.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(c){return Qe("Default",null,{Extension:c[0],ContentType:c[1]})}));var s=function(c){t[c]&&t[c].length>0&&(i=t[c][0],n[n.length]=Qe("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:Da[c][r.bookType]||Da[c].xlsx}))},o=function(c){(t[c]||[]).forEach(function(a){n[n.length]=Qe("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Da[c][r.bookType]||Da[c].xlsx})})},h=function(c){(t[c]||[]).forEach(function(a){n[n.length]=Qe("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:e[c][0]})})};return s("workbooks"),o("sheets"),o("charts"),h("themes"),["strs","styles"].forEach(s),["coreprops","extprops","custprops"].forEach(h),h("vba"),h("comments"),h("threadedcomments"),h("drawings"),o("metadata"),h("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Ft={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 Ws(t){var r=t.lastIndexOf("/");return t.slice(0,r+1)+"_rels/"+t.slice(r+1)+".rels"}function Is(t,r){var e={"!id":{}};if(!t)return e;r.charAt(0)!=="/"&&(r="/"+r);var n={};return(t.match(jr)||[]).forEach(function(i){var s=bt(i);if(s[0]==="<Relationship"){var o={};o.Type=s.Type,o.Target=s.Target,o.Id=s.Id,s.TargetMode&&(o.TargetMode=s.TargetMode);var h=s.TargetMode==="External"?s.Target:Fs(s.Target,r);e[h]=o,n[s.Id]=o}}),e["!id"]=n,e}function cs(t){var r=[fr,Qe("Relationships",null,{xmlns:gr.RELS})];return or(t["!id"]).forEach(function(e){r[r.length]=Qe("Relationship",null,t["!id"][e])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function zt(t,r,e,n,i,s){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,s?i.TargetMode=s:[Ft.HLINK,Ft.XPATH,Ft.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 Ag="application/vnd.oasis.opendocument.spreadsheet";function Fg(t,r){for(var e=qf(t),n,i;n=$s.exec(e);)switch(n[3]){case"manifest":break;case"file-entry":if(i=bt(n[0],!1),i.path=="/"&&i.type!==Ag)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(r&&r.WTF)throw n}}function Rg(t){var r=[fr];r.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
|
||
`),r.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
|
||
`);for(var e=0;e<t.length;++e)r.push(' <manifest:file-entry manifest:full-path="'+t[e][0]+'" manifest:media-type="'+t[e][1]+`"/>
|
||
`);return r.push("</manifest:manifest>"),r.join("")}function Ic(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 Mg(t,r){return[' <rdf:Description rdf:about="'+t+`">
|
||
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+`"/>
|
||
`,` </rdf:Description>
|
||
`].join("")}function Og(t){var r=[fr];r.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||
`);for(var e=0;e!=t.length;++e)r.push(Ic(t[e][0],t[e][1])),r.push(Mg("",t[e][0]));return r.push(Ic("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}function Cu(){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 '+qa.version+"</meta:generator></office:meta></office:document-meta>"}var dn=[["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"]],Ig=function(){for(var t=new Array(dn.length),r=0;r<dn.length;++r){var e=dn[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 Au(t){var r={};t=Wt(t);for(var e=0;e<dn.length;++e){var n=dn[e],i=t.match(Ig[e]);i!=null&&i.length>0&&(r[n[1]]=Pt(i[1])),n[2]==="date"&&r[n[1]]&&(r[n[1]]=qt(r[n[1]]))}return r}function Vo(t,r,e,n,i){i[t]!=null||r==null||r===""||(i[t]=r,r=$t(r),n[n.length]=e?Qe(t,r,e):Cr(t,r))}function Fu(t,r){var e=r||{},n=[fr,Qe("cp:coreProperties",null,{"xmlns:cp":gr.CORE_PROPS,"xmlns:dc":gr.dc,"xmlns:dcterms":gr.dcterms,"xmlns:dcmitype":gr.dcmitype,"xmlns:xsi":gr.xsi})],i={};if(!t&&!e.Props)return n.join("");t&&(t.CreatedDate!=null&&Vo("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:bf(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),t.ModifiedDate!=null&&Vo("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:bf(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var s=0;s!=dn.length;++s){var o=dn[s],h=e.Props&&e.Props[o[1]]!=null?e.Props[o[1]]:t?t[o[1]]:null;h===!0?h="1":h===!1?h="0":typeof h=="number"&&(h=String(h)),h!=null&&Vo(o[0],h,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Di=[["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"]],Ru=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Mu(t,r,e,n){var i=[];if(typeof t=="string")i=Ec(t,n);else for(var s=0;s<t.length;++s)i=i.concat(t[s].map(function(f){return{v:f}}));var o=typeof r=="string"?Ec(r,n).map(function(f){return f.v}):r,h=0,c=0;if(o.length>0)for(var a=0;a!==i.length;a+=2){switch(c=+i[a+1].v,i[a].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=c,e.SheetNames=o.slice(h,h+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":e.NamedRanges=c,e.DefinedNames=o.slice(h,h+c);break;case"Charts":case"Diagramme":e.Chartsheets=c,e.ChartNames=o.slice(h,h+c);break}h+=c}}function Dg(t,r,e){var n={};return r||(r={}),t=Wt(t),Di.forEach(function(i){var s=(t.match(Hs(i[0]))||[])[1];switch(i[2]){case"string":s&&(r[i[1]]=Pt(s));break;case"bool":r[i[1]]=s==="true";break;case"raw":var o=t.match(new RegExp("<"+i[0]+"[^>]*>([\\s\\S]*?)</"+i[0]+">"));o&&o.length>0&&(n[i[1]]=o[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&Mu(n.HeadingPairs,n.TitlesOfParts,r,e),r}function Ou(t){var r=[],e=Qe;return t||(t={}),t.Application="SheetJS",r[r.length]=fr,r[r.length]=Qe("Properties",null,{xmlns:gr.EXT_PROPS,"xmlns:vt":gr.vt}),Di.forEach(function(n){if(t[n[1]]!==void 0){var i;switch(n[2]){case"string":i=$t(String(t[n[1]]));break;case"bool":i=t[n[1]]?"true":"false";break}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>"+$t(n)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var Ng=/<[^>]+>[^<]*/g;function Pg(t,r){var e={},n="",i=t.match(Ng);if(i)for(var s=0;s!=i.length;++s){var o=i[s],h=bt(o);switch(h[0]){case"<?xml":break;case"<Properties":break;case"<property":n=Pt(h.name);break;case"</property>":n=null;break;default:if(o.indexOf("<vt:")===0){var c=o.split(">"),a=c[0].slice(4),f=c[1];switch(a){case"lpstr":case"bstr":case"lpwstr":e[n]=Pt(f);break;case"bool":e[n]=Yt(f);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":e[n]=parseInt(f,10);break;case"r4":case"r8":case"decimal":e[n]=parseFloat(f);break;case"filetime":case"date":e[n]=qt(f);break;case"cy":case"error":e[n]=Pt(f);break;default:if(a.slice(-1)=="/")break;r.WTF&&typeof console<"u"&&console.warn("Unexpected",o,a,c)}}else if(o.slice(0,2)!=="</"){if(r.WTF)throw new Error(o)}}}return e}function Iu(t){var r=[fr,Qe("Properties",null,{xmlns:gr.CUST_PROPS,"xmlns:vt":gr.vt})];if(!t)return r.join("");var e=1;return or(t).forEach(function(i){++e,r[r.length]=Qe("property",Xm(t[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:$t(i)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var Tf={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"},Go;function Bg(t,r,e){Go||(Go=go(Tf)),r=Go[r]||r,t[r]=e}function Lg(t,r){var e=[];return or(Tf).map(function(n){for(var i=0;i<dn.length;++i)if(dn[i][1]==n)return dn[i];for(i=0;i<Di.length;++i)if(Di[i][1]==n)return Di[i];throw n}).forEach(function(n){if(t[n[1]]!=null){var i=r&&r.Props&&r.Props[n[1]]!=null?r.Props[n[1]]:t[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),e.push(Cr(Tf[n[1]]||n[1],i))}}),Qe("DocumentProperties",e.join(""),{xmlns:qr.o})}function jg(t,r){var e=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return t&&or(t).forEach(function(s){if(Object.prototype.hasOwnProperty.call(t,s)){for(var o=0;o<dn.length;++o)if(s==dn[o][1])return;for(o=0;o<Di.length;++o)if(s==Di[o][1])return;for(o=0;o<e.length;++o)if(s==e[o])return;var h=t[s],c="string";typeof h=="number"?(c="float",h=String(h)):h===!0||h===!1?(c="boolean",h=h?"1":"0"):h=String(h),i.push(Qe(bc(s),h,{"dt:dt":c}))}}),r&&or(r).forEach(function(s){if(Object.prototype.hasOwnProperty.call(r,s)&&!(t&&Object.prototype.hasOwnProperty.call(t,s))){var o=r[s],h="string";typeof o=="number"?(h="float",o=String(o)):o===!0||o===!1?(h="boolean",o=o?"1":"0"):o instanceof Date?(h="dateTime.tz",o=o.toISOString()):o=String(o),i.push(Qe(bc(s),o,{"dt:dt":h}))}}),"<"+n+' xmlns="'+qr.o+'">'+i.join("")+"</"+n+">"}function fl(t){var r=t.read_shift(4),e=t.read_shift(4);return new Date((e/1e7*Math.pow(2,32)+r/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function Ug(t){var r=typeof t=="string"?new Date(Date.parse(t)):t,e=r.getTime()/1e3+11644473600,n=e%Math.pow(2,32),i=(e-n)/Math.pow(2,32);n*=1e7,i*=1e7;var s=n/Math.pow(2,32)|0;s>0&&(n=n%Math.pow(2,32),i+=s);var o=We(8);return o.write_shift(4,n),o.write_shift(4,i),o}function Du(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 Nu(t,r,e){var n=t.read_shift(0,"lpwstr");return e&&(t.l+=4-(n.length+1&3)&3),n}function Pu(t,r,e){return r===31?Nu(t):Du(t,r,e)}function Sf(t,r,e){return Pu(t,r,e===!1?0:4)}function Hg(t,r){if(!r)throw new Error("VtUnalignedString must have positive length");return Pu(t,r,0)}function zg(t){for(var r=t.read_shift(4),e=[],n=0;n!=r;++n){var i=t.l;e[n]=t.read_shift(0,"lpwstr").replace(Xr,""),t.l-i&2&&(t.l+=2)}return e}function $g(t){for(var r=t.read_shift(4),e=[],n=0;n!=r;++n)e[n]=t.read_shift(0,"lpstr-cp").replace(Xr,"");return e}function Wg(t){var r=t.l,e=fo(t,Tu);t[t.l]==0&&t[t.l+1]==0&&t.l-r&2&&(t.l+=2);var n=fo(t,Gr);return[e,n]}function Xg(t){for(var r=t.read_shift(4),e=[],n=0;n<r/2;++n)e.push(Wg(t));return e}function Dc(t,r){for(var e=t.read_shift(4),n={},i=0;i!=e;++i){var s=t.read_shift(4),o=t.read_shift(4);n[s]=t.read_shift(o,r===1200?"utf16le":"utf8").replace(Xr,"").replace(As,"!"),r===1200&&o%2&&(t.l+=2)}return t.l&3&&(t.l=t.l>>2+1<<2),n}function Bu(t){var r=t.read_shift(4),e=t.slice(t.l,t.l+r);return t.l+=r,(r&3)>0&&(t.l+=4-(r&3)&3),e}function Vg(t){var r={};return r.Size=t.read_shift(4),t.l+=r.Size+3-(r.Size-1)%4,r}function fo(t,r,e){var n=t.read_shift(2),i,s=e||{};if(t.l+=2,r!==Mc&&n!==r&&Eg.indexOf(r)===-1&&!((r&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+r+" saw "+n);switch(r===Mc?n:r){case 2:return i=t.read_shift(2,"i"),s.raw||(t.l+=2),i;case 3:return i=t.read_shift(4,"i"),i;case 11:return t.read_shift(4)!==0;case 19:return i=t.read_shift(4),i;case 30:return Du(t,n,4).replace(Xr,"");case 31:return Nu(t);case 64:return fl(t);case 65:return Bu(t);case 71:return Vg(t);case 80:return Sf(t,n,!s.raw).replace(Xr,"");case 81:return Hg(t,n).replace(Xr,"");case 4108:return Xg(t);case 4126:case 4127:return n==4127?zg(t):$g(t);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+n)}}function Nc(t,r){var e=We(4),n=We(4);switch(e.write_shift(4,t==80?31:t),t){case 3:n.write_shift(-4,r);break;case 5:n=We(8),n.write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=Ug(r);break;case 31:case 80:for(n=We(4+2*(r.length+1)+(r.length%2?0:2)),n.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 yr([e,n])}function Pc(t,r){var e=t.l,n=t.read_shift(4),i=t.read_shift(4),s=[],o=0,h=0,c=-1,a={};for(o=0;o!=i;++o){var f=t.read_shift(4),l=t.read_shift(4);s[o]=[f,l+e]}s.sort(function(g,b){return g[1]-b[1]});var u={};for(o=0;o!=i;++o){if(t.l!==s[o][1]){var p=!0;if(o>0&&r)switch(r[s[o-1][0]].t){case 2:t.l+2===s[o][1]&&(t.l+=2,p=!1);break;case 80:t.l<=s[o][1]&&(t.l=s[o][1],p=!1);break;case 4108:t.l<=s[o][1]&&(t.l=s[o][1],p=!1);break}if((!r||o==0)&&t.l<=s[o][1]&&(p=!1,t.l=s[o][1]),p)throw new Error("Read Error: Expected address "+s[o][1]+" at "+t.l+" :"+o)}if(r){var m=r[s[o][0]];if(u[m.n]=fo(t,m.t,{raw:!0}),m.p==="version"&&(u[m.n]=String(u[m.n]>>16)+"."+("0000"+String(u[m.n]&65535)).slice(-4)),m.n=="CodePage")switch(u[m.n]){case 0:u[m.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:Sn(h=u[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+u[m.n])}}else if(s[o][0]===1){if(h=u.CodePage=fo(t,al),Sn(h),c!==-1){var d=t.l;t.l=s[c][1],a=Dc(t,h),t.l=d}}else if(s[o][0]===0){if(h===0){c=o,t.l=s[o+1][1];continue}a=Dc(t,h)}else{var v=a[s[o][0]],x;switch(t[t.l]){case 65:t.l+=4,x=Bu(t);break;case 30:t.l+=4,x=Sf(t,t[t.l-4]).replace(/\u0000+$/,"");break;case 31:t.l+=4,x=Sf(t,t[t.l-4]).replace(/\u0000+$/,"");break;case 3:t.l+=4,x=t.read_shift(4,"i");break;case 19:t.l+=4,x=t.read_shift(4);break;case 5:t.l+=4,x=t.read_shift(8,"f");break;case 11:t.l+=4,x=sr(t,4);break;case 64:t.l+=4,x=qt(fl(t));break;default:throw new Error("unparsed value: "+t[t.l])}u[v]=x}}return t.l=e+n,u}var Lu=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Gg(t){switch(typeof t){case"boolean":return 11;case"number":return(t|0)==t?3:5;case"string":return 31;case"object":if(t instanceof Date)return 64;break}return-1}function Bc(t,r,e){var n=We(8),i=[],s=[],o=8,h=0,c=We(8),a=We(8);if(c.write_shift(4,2),c.write_shift(4,1200),a.write_shift(4,1),s.push(c),i.push(a),o+=8+c.length,!r){a=We(8),a.write_shift(4,0),i.unshift(a);var f=[We(4)];for(f[0].write_shift(4,t.length),h=0;h<t.length;++h){var l=t[h][0];for(c=We(4+4+2*(l.length+1)+(l.length%2?0:2)),c.write_shift(4,h+2),c.write_shift(4,l.length+1),c.write_shift(0,l,"dbcs");c.l!=c.length;)c.write_shift(1,0);f.push(c)}c=yr(f),s.unshift(c),o+=8+c.length}for(h=0;h<t.length;++h)if(!(r&&!r[t[h][0]])&&!(Lu.indexOf(t[h][0])>-1||Ru.indexOf(t[h][0])>-1)&&t[h][1]!=null){var u=t[h][1],p=0;if(r){p=+r[t[h][0]];var m=e[p];if(m.p=="version"&&typeof u=="string"){var d=u.split(".");u=(+d[0]<<16)+(+d[1]||0)}c=Nc(m.t,u)}else{var v=Gg(u);v==-1&&(v=31,u=String(u)),c=Nc(v,u)}s.push(c),a=We(8),a.write_shift(4,r?p:2+h),i.push(a),o+=8+c.length}var x=8*(s.length+1);for(h=0;h<s.length;++h)i[h].write_shift(4,x),x+=s[h].length;return n.write_shift(4,o),n.write_shift(4,s.length),yr([n].concat(i).concat(s))}function Lc(t,r,e){var n=t.content;if(!n)return{};kr(n,0);var i,s,o,h,c=0;n.chk("feff","Byte Order: "),n.read_shift(2);var a=n.read_shift(4),f=n.read_shift(16);if(f!==ut.utils.consts.HEADER_CLSID&&f!==e)throw new Error("Bad PropertySet CLSID "+f);if(i=n.read_shift(4),i!==1&&i!==2)throw new Error("Unrecognized #Sets: "+i);if(s=n.read_shift(16),h=n.read_shift(4),i===1&&h!==n.l)throw new Error("Length mismatch: "+h+" !== "+n.l);i===2&&(o=n.read_shift(16),c=n.read_shift(4));var l=Pc(n,r),u={SystemIdentifier:a};for(var p in l)u[p]=l[p];if(u.FMTID=s,i===1)return u;if(c-n.l==2&&(n.l+=2),n.l!==c)throw new Error("Length mismatch 2: "+n.l+" !== "+c);var m;try{m=Pc(n,null)}catch{}for(p in m)u[p]=m[p];return u.FMTID=[s,o],u}function jc(t,r,e,n,i,s){var o=We(i?68:48),h=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,ut.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,i?2:1),o.write_shift(16,r,"hex"),o.write_shift(4,i?68:48);var c=Bc(t,e,n);if(h.push(c),i){var a=Bc(i,null,null);o.write_shift(16,s,"hex"),o.write_shift(4,68+c.length),h.push(a)}return yr(h)}function fi(t,r){return t.read_shift(r),null}function Kg(t,r){r||(r=We(t));for(var e=0;e<t;++e)r.write_shift(1,0);return r}function Yg(t,r,e){for(var n=[],i=t.l+r;t.l<i;)n.push(e(t,i-t.l));if(i!==t.l)throw new Error("Slurp error");return n}function sr(t,r){return t.read_shift(r)===1}function Wr(t,r){return r||(r=We(2)),r.write_shift(2,+!!t),r}function hr(t){return t.read_shift(2,"u")}function un(t,r){return r||(r=We(2)),r.write_shift(2,t),r}function ju(t,r){return Yg(t,r,hr)}function Zg(t){var r=t.read_shift(1),e=t.read_shift(1);return e===1?r:r===1}function Uu(t,r,e){return e||(e=We(2)),e.write_shift(1,r=="e"?+t:+!!t),e.write_shift(1,r=="e"?1:0),e}function na(t,r,e){var n=t.read_shift(e&&e.biff>=12?2:1),i="sbcs-cont";if(e&&e.biff>=8,!e||e.biff==8){var s=t.read_shift(1);s&&(i="dbcs-cont")}else e.biff==12&&(i="wstr");e.biff>=2&&e.biff<=5&&(i="cpstr");var o=n?t.read_shift(n,i):"";return o}function Jg(t){var r=t.read_shift(2),e=t.read_shift(1),n=e&4,i=e&8,s=1+(e&1),o=0,h,c={};i&&(o=t.read_shift(2)),n&&(h=t.read_shift(4));var a=s==2?"dbcs-cont":"sbcs-cont",f=r===0?"":t.read_shift(r,a);return i&&(t.l+=4*o),n&&(t.l+=h),c.t=f,i||(c.raw="<t>"+c.t+"</t>",c.r=c.t),c}function Qg(t){var r=t.t||"",e=We(3+0);e.write_shift(2,r.length),e.write_shift(1,1);var n=We(2*r.length);n.write_shift(2*r.length,r,"utf16le");var i=[e,n];return yr(i)}function Hi(t,r,e){var n;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")}var i=t.read_shift(1);return i===0?n=t.read_shift(r,"sbcs-cont"):n=t.read_shift(r,"dbcs-cont"),n}function ia(t,r,e){var n=t.read_shift(e&&e.biff==2?1:2);return n===0?(t.l++,""):Hi(t,n,e)}function Zi(t,r,e){if(e.biff>5)return ia(t,r,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 Hu(t,r,e){return e||(e=We(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function qg(t){var r=t.read_shift(1);t.l++;var e=t.read_shift(2);return t.l+=2,[r,e]}function ev(t){var r=t.read_shift(4),e=t.l,n=!1;r>24&&(t.l+=r-24,t.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),t.l=e);var i=t.read_shift((n?r-24:r)>>1,"utf16le").replace(Xr,"");return n&&(t.l+=24),i}function tv(t){for(var r=t.read_shift(2),e="";r-- >0;)e+="../";var n=t.read_shift(0,"lpstr-ansi");if(t.l+=2,t.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var i=t.read_shift(4);if(i===0)return e+n.replace(/\\/g,"/");var s=t.read_shift(4);if(t.read_shift(2)!=3)throw new Error("Bad FileMoniker");var o=t.read_shift(s>>1,"utf16le").replace(Xr,"");return e+o}function rv(t,r){var e=t.read_shift(16);switch(e){case"e0c9ea79f9bace118c8200aa004ba90b":return ev(t);case"0303000000000000c000000000000046":return tv(t);default:throw new Error("Unsupported Moniker "+e)}}function Na(t){var r=t.read_shift(4),e=r>0?t.read_shift(r,"utf16le").replace(Xr,""):"";return e}function Uc(t,r){r||(r=We(6+t.length*2)),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 nv(t,r){var e=t.l+r,n=t.read_shift(4);if(n!==2)throw new Error("Unrecognized streamVersion: "+n);var i=t.read_shift(2);t.l+=2;var s,o,h,c,a="",f,l;i&16&&(s=Na(t,e-t.l)),i&128&&(o=Na(t,e-t.l)),(i&257)===257&&(h=Na(t,e-t.l)),(i&257)===1&&(c=rv(t,e-t.l)),i&8&&(a=Na(t,e-t.l)),i&32&&(f=t.read_shift(16)),i&64&&(l=fl(t)),t.l=e;var u=o||h||c||"";u&&a&&(u+="#"+a),u||(u="#"+a),i&2&&u.charAt(0)=="/"&&u.charAt(1)!="/"&&(u="file://"+u);var p={Target:u};return f&&(p.guid=f),l&&(p.time=l),s&&(p.Tooltip=s),p}function iv(t){var r=We(512),e=0,n=t.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),s=i>-1?31:23;switch(n.charAt(0)){case"#":s=28;break;case".":s&=-3;break}r.write_shift(4,2),r.write_shift(4,s);var o=[8,6815827,6619237,4849780,83];for(e=0;e<o.length;++e)r.write_shift(4,o[e]);if(s==28)n=n.slice(1),Uc(n,r);else if(s&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),e=0;e<o.length;++e)r.write_shift(1,parseInt(o[e],16));var h=i>-1?n.slice(0,i):n;for(r.write_shift(4,2*(h.length+1)),e=0;e<h.length;++e)r.write_shift(2,h.charCodeAt(e));r.write_shift(2,0),s&8&&Uc(i>-1?n.slice(i+1):"",r)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),e=0;e<o.length;++e)r.write_shift(1,parseInt(o[e],16));for(var c=0;n.slice(c*3,c*3+3)=="../"||n.slice(c*3,c*3+3)=="..\\";)++c;for(r.write_shift(2,c),r.write_shift(4,n.length-3*c+1),e=0;e<n.length-3*c;++e)r.write_shift(1,n.charCodeAt(e+3*c)&255);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 zu(t){var r=t.read_shift(1),e=t.read_shift(1),n=t.read_shift(1),i=t.read_shift(1);return[r,e,n,i]}function $u(t,r){var e=zu(t);return e[3]=0,e}function zn(t){var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(2);return{r,c:e,ixfe:n}}function zi(t,r,e,n){return n||(n=We(6)),n.write_shift(2,t),n.write_shift(2,r),n.write_shift(2,e||0),n}function sv(t){var r=t.read_shift(2),e=t.read_shift(2);return t.l+=8,{type:r,flags:e}}function av(t,r,e){return r===0?"":Zi(t,r,e)}function ov(t,r,e){var n=e.biff>8?4:2,i=t.read_shift(n),s=t.read_shift(n,"i"),o=t.read_shift(n,"i");return[i,s,o]}function Wu(t){var r=t.read_shift(2),e=sl(t);return[r,e]}function fv(t,r,e){t.l+=4,r-=4;var n=t.l+r,i=na(t,r,e),s=t.read_shift(2);if(n-=t.l,s!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+s);return t.l+=s,i}function bo(t){var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(2),i=t.read_shift(2);return{s:{c:n,r},e:{c:i,r:e}}}function Xu(t,r){return r||(r=We(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 Vu(t){var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(1),i=t.read_shift(1);return{s:{c:n,r},e:{c:i,r:e}}}var lv=Vu;function Gu(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 cv(t){var r={};return t.l+=4,t.l+=16,r.fSharedNote=t.read_shift(2),t.l+=4,r}function hv(t){var r={};return t.l+=4,t.cf=t.read_shift(2),r}function Mr(t){t.l+=2,t.l+=t.read_shift(2)}var uv={0:Mr,4:Mr,5:Mr,6:Mr,7:hv,8:Mr,9:Mr,10:Mr,11:Mr,12:Mr,13:cv,14:Mr,15:Mr,16:Mr,17:Mr,18:Mr,19:Mr,20:Mr,21:Gu};function dv(t,r){for(var e=t.l+r,n=[];t.l<e;){var i=t.read_shift(2);t.l-=2;try{n.push(uv[i](t,e-t.l))}catch{return t.l=e,n}}return t.l!=e&&(t.l=e),n}function Pa(t,r){var e={BIFFVer:0,dt:0};switch(e.BIFFVer=t.read_shift(2),r-=2,r>=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 ll(t,r,e){var n=1536,i=16;switch(e.bookType){case"biff8":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;case"xla":break;default:throw new Error("unsupported BIFF version")}var s=We(i);return s.write_shift(2,n),s.write_shift(2,r),i>4&&s.write_shift(2,29282),i>6&&s.write_shift(2,1997),i>8&&(s.write_shift(2,49161),s.write_shift(2,1),s.write_shift(2,1798),s.write_shift(2,0)),s}function pv(t,r){return r===0||t.read_shift(2),1200}function mv(t,r,e){if(e.enc)return t.l+=r,"";var n=t.l,i=Zi(t,0,e);return t.read_shift(r+n-t.l),i}function gv(t,r){var e=!r||r.biff==8,n=We(e?112:54);for(n.write_shift(r.biff==8?2:1,7),e&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(e?0:536870912));n.l<n.length;)n.write_shift(1,e?0:32);return n}function vv(t,r,e){var n=e&&e.biff==8||r==2?t.read_shift(2):(t.l+=r,0);return{fDialog:n&16,fBelow:n&64,fRight:n&128}}function xv(t,r,e){var n=t.read_shift(4),i=t.read_shift(1)&3,s=t.read_shift(1);switch(s){case 0:s="Worksheet";break;case 1:s="Macrosheet";break;case 2:s="Chartsheet";break;case 6:s="VBAModule";break}var o=na(t,0,e);return o.length===0&&(o="Sheet1"),{pos:n,hs:i,dt:s,name:o}}function bv(t,r){var e=!r||r.biff>=8?2:1,n=We(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 wv(t,r){for(var e=t.l+r,n=t.read_shift(4),i=t.read_shift(4),s=[],o=0;o!=i&&t.l<e;++o)s.push(Jg(t));return s.Count=n,s.Unique=i,s}function yv(t,r){var e=We(8);e.write_shift(4,t.Count),e.write_shift(4,t.Unique);for(var n=[],i=0;i<t.length;++i)n[i]=Qg(t[i]);var s=yr([e].concat(n));return s.parts=[e.length].concat(n.map(function(o){return o.length})),s}function _v(t,r){var e={};return e.dsst=t.read_shift(2),t.l+=r-2,e}function Ev(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,n&7&&(r.level=n&7),n&32&&(r.hidden=!0),n&64&&(r.hpt=e/20),r}function Tv(t){var r=sv(t);if(r.type!=2211)throw new Error("Invalid Future Record "+r.type);var e=t.read_shift(4);return e!==0}function Sv(t){return t.read_shift(2),t.read_shift(4)}function Hc(t,r,e){var n=0;e&&e.biff==2||(n=t.read_shift(2));var i=t.read_shift(2);e&&e.biff==2&&(n=1-(i>>15),i&=32767);var s={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[s,i]}function kv(t){var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(2),i=t.read_shift(2),s=t.read_shift(2),o=t.read_shift(2),h=t.read_shift(2),c=t.read_shift(2),a=t.read_shift(2);return{Pos:[r,e],Dim:[n,i],Flags:s,CurTab:o,FirstTab:h,Selected:c,TabRatio:a}}function Cv(){var t=We(18);return t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,29280),t.write_shift(2,17600),t.write_shift(2,56),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,1),t.write_shift(2,500),t}function Av(t,r,e){if(e&&e.biff>=2&&e.biff<5)return{};var n=t.read_shift(2);return{RTL:n&64}}function Fv(t){var r=We(18),e=1718;return t&&t.RTL&&(e|=64),r.write_shift(2,e),r.write_shift(4,0),r.write_shift(4,64),r.write_shift(4,0),r.write_shift(4,0),r}function Rv(){}function Mv(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;break}return n.name=na(t,0,e),n}function Ov(t,r){var e=t.name||"Arial",n=r&&r.biff==5,i=n?15+e.length:16+2*e.length,s=We(i);return s.write_shift(2,(t.sz||12)*20),s.write_shift(4,0),s.write_shift(2,400),s.write_shift(4,0),s.write_shift(2,0),s.write_shift(1,e.length),n||s.write_shift(1,1),s.write_shift((n?1:2)*e.length,e,n?"sbcs":"utf16le"),s}function Iv(t){var r=zn(t);return r.isst=t.read_shift(4),r}function Dv(t,r,e,n){var i=We(10);return zi(t,r,n,i),i.write_shift(4,e),i}function Nv(t,r,e){e.biffguess&&e.biff==2&&(e.biff=5);var n=t.l+r,i=zn(t);e.biff==2&&t.l++;var s=ia(t,n-t.l,e);return i.val=s,i}function Pv(t,r,e,n,i){var s=!i||i.biff==8,o=We(6+2+ +s+(1+s)*e.length);return zi(t,r,n,o),o.write_shift(2,e.length),s&&o.write_shift(1,1),o.write_shift((1+s)*e.length,e,s?"utf16le":"sbcs"),o}function Bv(t,r,e){var n=t.read_shift(2),i=Zi(t,0,e);return[n,i]}function Lv(t,r,e,n){var i=e&&e.biff==5;n||(n=We(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 s=n.length>n.l?n.slice(0,n.l):n;return s.l==null&&(s.l=s.length),s}var jv=Zi;function zc(t,r,e){var n=t.l+r,i=e.biff==8||!e.biff?4:2,s=t.read_shift(i),o=t.read_shift(i),h=t.read_shift(2),c=t.read_shift(2);return t.l=n,{s:{r:s,c:h},e:{r:o,c}}}function Uv(t,r){var e=r.biff==8||!r.biff?4:2,n=We(2*e+6);return n.write_shift(e,t.s.r),n.write_shift(e,t.e.r+1),n.write_shift(2,t.s.c),n.write_shift(2,t.e.c+1),n.write_shift(2,0),n}function Hv(t){var r=t.read_shift(2),e=t.read_shift(2),n=Wu(t);return{r,c:e,ixfe:n[0],rknum:n[1]}}function zv(t,r){for(var e=t.l+r-2,n=t.read_shift(2),i=t.read_shift(2),s=[];t.l<e;)s.push(Wu(t));if(t.l!==e)throw new Error("MulRK read error");var o=t.read_shift(2);if(s.length!=o-i+1)throw new Error("MulRK length mismatch");return{r:n,c:i,C:o,rkrec:s}}function $v(t,r){for(var e=t.l+r-2,n=t.read_shift(2),i=t.read_shift(2),s=[];t.l<e;)s.push(t.read_shift(2));if(t.l!==e)throw new Error("MulBlank read error");var o=t.read_shift(2);if(s.length!=o-i+1)throw new Error("MulBlank length mismatch");return{r:n,c:i,C:o,ixfe:s}}function Wv(t,r,e,n){var i={},s=t.read_shift(4),o=t.read_shift(4),h=t.read_shift(4),c=t.read_shift(2);return i.patternType=Tg[h>>26],n.cellStyles&&(i.alc=s&7,i.fWrap=s>>3&1,i.alcV=s>>4&7,i.fJustLast=s>>7&1,i.trot=s>>8&255,i.cIndent=s>>16&15,i.fShrinkToFit=s>>20&1,i.iReadOrder=s>>22&2,i.fAtrNum=s>>26&1,i.fAtrFnt=s>>27&1,i.fAtrAlc=s>>28&1,i.fAtrBdr=s>>29&1,i.fAtrPat=s>>30&1,i.fAtrProt=s>>31&1,i.dgLeft=o&15,i.dgRight=o>>4&15,i.dgTop=o>>8&15,i.dgBottom=o>>12&15,i.icvLeft=o>>16&127,i.icvRight=o>>23&127,i.grbitDiag=o>>30&3,i.icvTop=h&127,i.icvBottom=h>>7&127,i.icvDiag=h>>14&127,i.dgDiag=h>>21&15,i.icvFore=c&127,i.icvBack=c>>7&127,i.fsxButton=c>>14&1),i}function Xv(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,r-=6,n.data=Wv(t,r,n.fStyle,e),n}function $c(t,r,e,n){var i=e&&e.biff==5;n||(n=We(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 s=0;return t.numFmtId>0&&i&&(s|=1024),n.write_shift(4,s),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function Vv(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}function Gv(t){var r=We(8);return r.write_shift(4,0),r.write_shift(2,t[0]?t[0]+1:0),r.write_shift(2,t[1]?t[1]+1:0),r}function Wc(t,r,e){var n=zn(t);(e.biff==2||r==9)&&++t.l;var i=Zg(t);return n.val=i,n.t=i===!0||i===!1?"b":"e",n}function Kv(t,r,e,n,i,s){var o=We(8);return zi(t,r,n,o),Uu(e,s,o),o}function Yv(t,r,e){e.biffguess&&e.biff==2&&(e.biff=5);var n=zn(t),i=Nr(t);return n.val=i,n}function Zv(t,r,e,n){var i=We(14);return zi(t,r,n,i),Ui(e,i),i}var Xc=av;function Jv(t,r,e){var n=t.l+r,i=t.read_shift(2),s=t.read_shift(2);if(e.sbcch=s,s==1025||s==14849)return[s,i];if(s<1||s>255)throw new Error("Unexpected SupBook type: "+s);for(var o=Hi(t,s),h=[];n>t.l;)h.push(ia(t));return[s,i,o,h]}function Vc(t,r,e){var n=t.read_shift(2),i,s={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return e.sbcch===14849&&(i=fv(t,r-2,e)),s.body=i||t.read_shift(r-2),typeof i=="string"&&(s.Name=i),s}var Qv=["_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 Gc(t,r,e){var n=t.l+r,i=t.read_shift(2),s=t.read_shift(1),o=t.read_shift(1),h=t.read_shift(e&&e.biff==2?1:2),c=0;(!e||e.biff>=5)&&(e.biff!=5&&(t.l+=2),c=t.read_shift(2),e.biff==5&&(t.l+=2),t.l+=4);var a=Hi(t,o,e);i&32&&(a=Qv[a.charCodeAt(0)]);var f=n-t.l;e&&e.biff==2&&--f;var l=n==t.l||h===0||!(f>0)?[]:dy(t,f,e,h);return{chKey:s,Name:a,itab:c,rgce:l}}function Ku(t,r,e){if(e.biff<8)return qv(t,r,e);for(var n=[],i=t.l+r,s=t.read_shift(e.biff>8?4:2);s--!==0;)n.push(ov(t,e.biff>8?12:6,e));if(t.l!=i)throw new Error("Bad ExternSheet: "+t.l+" != "+i);return n}function qv(t,r,e){t[t.l+1]==3&&t[t.l]++;var n=na(t,r,e);return n.charCodeAt(0)==3?n.slice(1):n}function ex(t,r,e){if(e.biff<8){t.l+=r;return}var n=t.read_shift(2),i=t.read_shift(2),s=Hi(t,n,e),o=Hi(t,i,e);return[s,o]}function tx(t,r,e){var n=Vu(t);t.l++;var i=t.read_shift(1);return r-=8,[py(t,r,e),i,n]}function Kc(t,r,e){var n=lv(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,hy(t,r,e)]}function rx(t){var r=t.read_shift(4)!==0,e=t.read_shift(4)!==0,n=t.read_shift(4);return[r,e,n]}function nx(t,r,e){if(!(e.biff<8)){var n=t.read_shift(2),i=t.read_shift(2),s=t.read_shift(2),o=t.read_shift(2),h=Zi(t,0,e);return e.biff<8&&t.read_shift(1),[{r:n,c:i},h,o,s]}}function ix(t,r,e){return nx(t,r,e)}function sx(t,r){for(var e=[],n=t.read_shift(2);n--;)e.push(bo(t));return e}function ax(t){var r=We(2+t.length*8);r.write_shift(2,t.length);for(var e=0;e<t.length;++e)Xu(t[e],r);return r}function ox(t,r,e){if(e&&e.biff<8)return lx(t,r,e);var n=Gu(t),i=dv(t,r-22,n[1]);return{cmo:n,ft:i}}var fx={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 lx(t,r,e){t.l+=4;var n=t.read_shift(2),i=t.read_shift(2),s=t.read_shift(2);t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=2,t.l+=6,r-=36;var o=[];return o.push((fx[n]||Lr)(t,r,e)),{cmo:[i,n,s],ft:o}}function cx(t,r,e){var n=t.l,i="";try{t.l+=4;var s=(e.lastobj||{cmo:[0,0]}).cmo[1],o;[0,5,7,11,12,14].indexOf(s)==-1?t.l+=6:o=qg(t,6,e);var h=t.read_shift(2);t.read_shift(2),hr(t,2);var c=t.read_shift(2);t.l+=c;for(var a=1;a<t.lens.length-1;++a){if(t.l-n!=t.lens[a])throw new Error("TxO: bad continue record");var f=t[t.l],l=Hi(t,t.lens[a+1]-t.lens[a]-1);if(i+=l,i.length>=(f?h:2*h))break}if(i.length!==h&&i.length!==h*2)throw new Error("cchText: "+h+" != "+i.length);return t.l=n+r,{t:i}}catch{return t.l=n+r,{t:i}}}function hx(t,r){var e=bo(t);t.l+=16;var n=nv(t,r-24);return[e,n]}function ux(t){var r=We(24),e=vr(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 yr([r,iv(t[1])])}function dx(t,r){t.read_shift(2);var e=bo(t),n=t.read_shift((r-10)/2,"dbcs-cont");return n=n.replace(Xr,""),[e,n]}function px(t){var r=t[1].Tooltip,e=We(10+2*(r.length+1));e.write_shift(2,2048);var n=vr(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 mx(t){var r=[0,0],e;return e=t.read_shift(2),r[0]=Oc[e]||e,e=t.read_shift(2),r[1]=Oc[e]||e,r}function gx(t){return t||(t=We(4)),t.write_shift(2,1),t.write_shift(2,1),t}function vx(t){for(var r=t.read_shift(2),e=[];r-- >0;)e.push($u(t));return e}function xx(t){for(var r=t.read_shift(2),e=[];r-- >0;)e.push($u(t));return e}function bx(t){t.l+=2;var r={cxfs:0,crc:0};return r.cxfs=t.read_shift(2),r.crc=t.read_shift(4),r}function Yu(t,r,e){if(!e.cellStyles)return Lr(t,r);var n=e&&e.biff>=12?4:2,i=t.read_shift(n),s=t.read_shift(n),o=t.read_shift(n),h=t.read_shift(n),c=t.read_shift(2);n==2&&(t.l+=2);var a={s:i,e:s,w:o,ixfe:h,flags:c};return(e.biff>=5||!e.biff)&&(a.level=c>>8&7),a}function wx(t,r){var e=We(12);e.write_shift(2,r),e.write_shift(2,r),e.write_shift(2,t.width*256),e.write_shift(2,0);var n=0;return t.hidden&&(n|=1),e.write_shift(1,n),n=t.level||0,e.write_shift(1,n),e.write_shift(2,0),e}function yx(t,r){var e={};return r<32||(t.l+=16,e.header=Nr(t),e.footer=Nr(t),t.l+=2),e}function _x(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,i&16&&(n.area=!0),n}function Ex(t){for(var r=We(2*t),e=0;e<t;++e)r.write_shift(2,e+1);return r}var Tx=zn,Sx=ju,kx=ia;function Cx(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}function Ax(t,r,e){e.biffguess&&e.biff==5&&(e.biff=2);var n=zn(t);++t.l;var i=Zi(t,r-7,e);return n.t="str",n.val=i,n}function Fx(t){var r=zn(t);++t.l;var e=Nr(t);return r.t="n",r.val=e,r}function Rx(t,r,e){var n=We(15);return fa(n,t,r),n.write_shift(8,e,"f"),n}function Mx(t){var r=zn(t);++t.l;var e=t.read_shift(2);return r.t="n",r.val=e,r}function Ox(t,r,e){var n=We(9);return fa(n,t,r),n.write_shift(2,e),n}function Ix(t){var r=t.read_shift(1);return r===0?(t.l++,""):t.read_shift(r,"sbcs-cont")}function Dx(t,r){t.l+=6,t.l+=2,t.l+=1,t.l+=3,t.l+=1,t.l+=r-13}function Nx(t,r,e){var n=t.l+r,i=zn(t),s=t.read_shift(2),o=Hi(t,s,e);return t.l=n,i.t="str",i.val=o,i}var Px=[2,3,48,49,131,139,140,245],kf=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=go({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(h,c){var a=[],f=pi(1);switch(c.type){case"base64":f=tn(nn(h));break;case"binary":f=tn(h);break;case"buffer":case"array":f=h;break}kr(f,0);var l=f.read_shift(1),u=!!(l&136),p=!1,m=!1;switch(l){case 2:break;case 3:break;case 48:p=!0,u=!0;break;case 49:p=!0,u=!0;break;case 131:break;case 139:break;case 140:m=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+l.toString(16))}var d=0,v=521;l==2&&(d=f.read_shift(2)),f.l+=3,l!=2&&(d=f.read_shift(4)),d>1048576&&(d=1e6),l!=2&&(v=f.read_shift(2));var x=f.read_shift(2),g=c.codepage||1252;l!=2&&(f.l+=16,f.read_shift(1),f[f.l]!==0&&(g=t[f[f.l]]),f.l+=1,f.l+=2),m&&(f.l+=36);for(var b=[],w={},y=Math.min(f.length,l==2?521:v-10-(p?264:0)),T=m?32:11;f.l<y&&f[f.l]!=13;)switch(w={},w.name=ci.utils.decode(g,f.slice(f.l,f.l+T)).replace(/[\u0000\r\n].*$/g,""),f.l+=T,w.type=String.fromCharCode(f.read_shift(1)),l!=2&&!m&&(w.offset=f.read_shift(4)),w.len=f.read_shift(1),l==2&&(w.offset=f.read_shift(2)),w.dec=f.read_shift(1),w.name.length&&b.push(w),l!=2&&(f.l+=m?13:14),w.type){case"B":(!p||w.len!=8)&&c.WTF&&console.log("Skipping "+w.name+":"+w.type);break;case"G":case"P":c.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(f[f.l]!==13&&(f.l=v-1),f.read_shift(1)!==13)throw new Error("DBF Terminator not found "+f.l+" "+f[f.l]);f.l=v;var C=0,M=0;for(a[0]=[],M=0;M!=b.length;++M)a[0][M]=b[M].name;for(;d-- >0;){if(f[f.l]===42){f.l+=x;continue}for(++f.l,a[++C]=[],M=0,M=0;M!=b.length;++M){var I=f.slice(f.l,f.l+b[M].len);f.l+=b[M].len,kr(I,0);var B=ci.utils.decode(g,I);switch(b[M].type){case"C":B.trim().length&&(a[C][M]=B.replace(/\s+$/,""));break;case"D":B.length===8?a[C][M]=new Date(+B.slice(0,4),+B.slice(4,6)-1,+B.slice(6,8)):a[C][M]=B;break;case"F":a[C][M]=parseFloat(B.trim());break;case"+":case"I":a[C][M]=m?I.read_shift(-4,"i")^2147483648:I.read_shift(4,"i");break;case"L":switch(B.trim().toUpperCase()){case"Y":case"T":a[C][M]=!0;break;case"N":case"F":a[C][M]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+B+"|")}break;case"M":if(!u)throw new Error("DBF Unexpected MEMO for type "+l.toString(16));a[C][M]="##MEMO##"+(m?parseInt(B.trim(),10):I.read_shift(4));break;case"N":B=B.replace(/\u0000/g,"").trim(),B&&B!="."&&(a[C][M]=+B||0);break;case"@":a[C][M]=new Date(I.read_shift(-8,"f")-621356832e5);break;case"T":a[C][M]=new Date((I.read_shift(4)-2440588)*864e5+I.read_shift(4));break;case"Y":a[C][M]=I.read_shift(4,"i")/1e4+I.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":a[C][M]=-I.read_shift(-8,"f");break;case"B":if(p&&b[M].len==8){a[C][M]=I.read_shift(8,"f");break}case"G":case"P":I.l+=b[M].len;break;case"0":if(b[M].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+b[M].type)}}}if(l!=2&&f.l<f.length&&f[f.l++]!=26)throw new Error("DBF EOF Marker missing "+(f.l-1)+" of "+f.length+" "+f[f.l-1].toString(16));return c&&c.sheetRows&&(a=a.slice(0,c.sheetRows)),c.DBF=b,a}function n(h,c){var a=c||{};a.dateNF||(a.dateNF="yyyymmdd");var f=ra(e(h,a),a);return f["!cols"]=a.DBF.map(function(l){return{wch:l.len,DBF:l}}),delete a.DBF,f}function i(h,c){try{return Xi(n(h,c),c)}catch(a){if(c&&c.WTF)throw a}return{SheetNames:[],Sheets:{}}}var s={B:8,C:250,L:1,D:8,"?":0,"":0};function o(h,c){var a=c||{};if(+a.codepage>=0&&Sn(+a.codepage),a.type=="string")throw new Error("Cannot write DBF to JS string");var f=Jr(),l=H0(h,{header:1,raw:!0,cellDates:!0}),u=l[0],p=l.slice(1),m=h["!cols"]||[],d=0,v=0,x=0,g=1;for(d=0;d<u.length;++d){if(((m[d]||{}).DBF||{}).name){u[d]=m[d].DBF.name,++x;continue}if(u[d]!=null){if(++x,typeof u[d]=="number"&&(u[d]=u[d].toString(10)),typeof u[d]!="string")throw new Error("DBF Invalid column name "+u[d]+" |"+typeof u[d]+"|");if(u.indexOf(u[d])!==d){for(v=0;v<1024;++v)if(u.indexOf(u[d]+"_"+v)==-1){u[d]+="_"+v;break}}}}var b=Lt(h["!ref"]),w=[],y=[],T=[];for(d=0;d<=b.e.c-b.s.c;++d){var C="",M="",I=0,B=[];for(v=0;v<p.length;++v)p[v][d]!=null&&B.push(p[v][d]);if(B.length==0||u[d]==null){w[d]="?";continue}for(v=0;v<B.length;++v){switch(typeof B[v]){case"number":M="B";break;case"string":M="C";break;case"boolean":M="L";break;case"object":M=B[v]instanceof Date?"D":"C";break;default:M="C"}I=Math.max(I,String(B[v]).length),C=C&&C!=M?"C":M}I>250&&(I=250),M=((m[d]||{}).DBF||{}).type,M=="C"&&m[d].DBF.len>I&&(I=m[d].DBF.len),C=="B"&&M=="N"&&(C="N",T[d]=m[d].DBF.dec,I=m[d].DBF.len),y[d]=C=="C"||M=="N"?I:s[C]||0,g+=y[d],w[d]=C}var U=f.next(32);for(U.write_shift(4,318902576),U.write_shift(4,p.length),U.write_shift(2,296+32*x),U.write_shift(2,g),d=0;d<4;++d)U.write_shift(4,0);for(U.write_shift(4,0|(+r[Bh]||3)<<8),d=0,v=0;d<u.length;++d)if(u[d]!=null){var j=f.next(32),H=(u[d].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);j.write_shift(1,H,"sbcs"),j.write_shift(1,w[d]=="?"?"C":w[d],"sbcs"),j.write_shift(4,v),j.write_shift(1,y[d]||s[w[d]]||0),j.write_shift(1,T[d]||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+=y[d]||s[w[d]]||0}var G=f.next(264);for(G.write_shift(4,13),d=0;d<65;++d)G.write_shift(4,0);for(d=0;d<p.length;++d){var L=f.next(g);for(L.write_shift(1,0),v=0;v<u.length;++v)if(u[v]!=null)switch(w[v]){case"L":L.write_shift(1,p[d][v]==null?63:p[d][v]?84:70);break;case"B":L.write_shift(8,p[d][v]||0,"f");break;case"N":var R="0";for(typeof p[d][v]=="number"&&(R=p[d][v].toFixed(T[v]||0)),x=0;x<y[v]-R.length;++x)L.write_shift(1,32);L.write_shift(1,R,"sbcs");break;case"D":p[d][v]?(L.write_shift(4,("0000"+p[d][v].getFullYear()).slice(-4),"sbcs"),L.write_shift(2,("00"+(p[d][v].getMonth()+1)).slice(-2),"sbcs"),L.write_shift(2,("00"+p[d][v].getDate()).slice(-2),"sbcs")):L.write_shift(8,"00000000","sbcs");break;case"C":var F=String(p[d][v]!=null?p[d][v]:"").slice(0,y[v]);for(L.write_shift(1,F,"sbcs"),x=0;x<y[v]-F.length;++x)L.write_shift(1,32);break}}return f.next(1).write_shift(1,26),f.end()}return{to_workbook:i,to_sheet:n,from_sheet:o}}(),Zu=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("+or(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,p){var m=t[p];return typeof m=="number"?sc(m):m},n=function(u,p,m){var d=p.charCodeAt(0)-32<<4|m.charCodeAt(0)-48;return d==59?u:sc(d)};t["|"]=254;function i(u,p){switch(p.type){case"base64":return s(nn(u),p);case"binary":return s(u,p);case"buffer":return s(St&&Buffer.isBuffer(u)?u.toString("binary"):bi(u),p);case"array":return s(ji(u),p)}throw new Error("Unrecognized type "+p.type)}function s(u,p){var m=u.split(/[\n\r]+/),d=-1,v=-1,x=0,g=0,b=[],w=[],y=null,T={},C=[],M=[],I=[],B=0,U;for(+p.codepage>=0&&Sn(+p.codepage);x!==m.length;++x){B=0;var j=m[x].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,e),H=j.replace(/;;/g,"\0").split(";").map(function(E){return E.replace(/\u0000/g,";")}),G=H[0],L;if(j.length>0)switch(G){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":H[1].charAt(0)=="P"&&w.push(j.slice(3).replace(/;;/g,";"));break;case"C":var R=!1,F=!1,_=!1,k=!1,N=-1,P=-1;for(g=1;g<H.length;++g)switch(H[g].charAt(0)){case"A":break;case"X":v=parseInt(H[g].slice(1))-1,F=!0;break;case"Y":for(d=parseInt(H[g].slice(1))-1,F||(v=0),U=b.length;U<=d;++U)b[U]=[];break;case"K":L=H[g].slice(1),L.charAt(0)==='"'?L=L.slice(1,L.length-1):L==="TRUE"?L=!0:L==="FALSE"?L=!1:isNaN(qn(L))?isNaN(Us(L).getDate())||(L=qt(L)):(L=qn(L),y!==null&&gs(y)&&(L=xo(L))),R=!0;break;case"E":k=!0;var D=hs(H[g].slice(1),{r:d,c:v});b[d][v]=[b[d][v],D];break;case"S":_=!0,b[d][v]=[b[d][v],"S5S"];break;case"G":break;case"R":N=parseInt(H[g].slice(1))-1;break;case"C":P=parseInt(H[g].slice(1))-1;break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+j)}if(R&&(b[d][v]&&b[d][v].length==2?b[d][v][0]=L:b[d][v]=L,y=null),_){if(k)throw new Error("SYLK shared formula cannot have own formula");var A=N>-1&&b[N][P];if(!A||!A[1])throw new Error("SYLK shared formula cannot find base");b[d][v][1]=p0(A[1],{r:d-N,c:v-P})}break;case"F":var S=0;for(g=1;g<H.length;++g)switch(H[g].charAt(0)){case"X":v=parseInt(H[g].slice(1))-1,++S;break;case"Y":for(d=parseInt(H[g].slice(1))-1,U=b.length;U<=d;++U)b[U]=[];break;case"M":B=parseInt(H[g].slice(1))/20;break;case"F":break;case"G":break;case"P":y=w[parseInt(H[g].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(I=H[g].slice(1).split(" "),U=parseInt(I[0],10);U<=parseInt(I[1],10);++U)B=parseInt(I[2],10),M[U-1]=B===0?{hidden:!0}:{wch:B},gi(M[U-1]);break;case"C":v=parseInt(H[g].slice(1))-1,M[v]||(M[v]={});break;case"R":d=parseInt(H[g].slice(1))-1,C[d]||(C[d]={}),B>0?(C[d].hpt=B,C[d].hpx=ps(B)):B===0&&(C[d].hidden=!0);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+j)}S<1&&(y=null);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+j)}}return C.length>0&&(T["!rows"]=C),M.length>0&&(T["!cols"]=M),p&&p.sheetRows&&(b=b.slice(0,p.sheetRows)),[b,T]}function o(u,p){var m=i(u,p),d=m[0],v=m[1],x=ra(d,p);return or(v).forEach(function(g){x[g]=v[g]}),x}function h(u,p){return Xi(o(u,p),p)}function c(u,p,m,d){var v="C;Y"+(m+1)+";X"+(d+1)+";K";switch(u.t){case"n":v+=u.v||0,u.f&&!u.F&&(v+=";E"+ml(u.f,{r:m,c:d}));break;case"b":v+=u.v?"TRUE":"FALSE";break;case"e":v+=u.w||u.v;break;case"d":v+='"'+(u.w||u.v)+'"';break;case"s":v+='"'+u.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return v}function a(u,p){p.forEach(function(m,d){var v="F;W"+(d+1)+" "+(d+1)+" ";m.hidden?v+="0":(typeof m.width=="number"&&!m.wpx&&(m.wpx=Vs(m.width)),typeof m.wpx=="number"&&!m.wch&&(m.wch=Gs(m.wpx)),typeof m.wch=="number"&&(v+=Math.round(m.wch))),v.charAt(v.length-1)!=" "&&u.push(v)})}function f(u,p){p.forEach(function(m,d){var v="F;";m.hidden?v+="M0;":m.hpt?v+="M"+20*m.hpt+";":m.hpx&&(v+="M"+20*Ks(m.hpx)+";"),v.length>2&&u.push(v+"R"+(d+1))})}function l(u,p){var m=["ID;PWXL;N;E"],d=[],v=Lt(u["!ref"]),x,g=Array.isArray(u),b=`\r
|
||
`;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),u["!cols"]&&a(m,u["!cols"]),u["!rows"]&&f(m,u["!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 w=v.s.r;w<=v.e.r;++w)for(var y=v.s.c;y<=v.e.c;++y){var T=yt({r:w,c:y});x=g?(u[w]||[])[y]:u[T],!(!x||x.v==null&&(!x.f||x.F))&&d.push(c(x,u,w,y))}return m.join(b)+b+d.join(b)+b+"E"+b}return{to_workbook:h,to_sheet:o,from_sheet:l}}(),Ju=function(){function t(s,o){switch(o.type){case"base64":return r(nn(s),o);case"binary":return r(s,o);case"buffer":return r(St&&Buffer.isBuffer(s)?s.toString("binary"):bi(s),o);case"array":return r(ji(s),o)}throw new Error("Unrecognized type "+o.type)}function r(s,o){for(var h=s.split(`
|
||
`),c=-1,a=-1,f=0,l=[];f!==h.length;++f){if(h[f].trim()==="BOT"){l[++c]=[],a=0;continue}if(!(c<0)){var u=h[f].trim().split(","),p=u[0],m=u[1];++f;for(var d=h[f]||"";(d.match(/["]/g)||[]).length&1&&f<h.length-1;)d+=`
|
||
`+h[++f];switch(d=d.trim(),+p){case-1:if(d==="BOT"){l[++c]=[],a=0;continue}else if(d!=="EOD")throw new Error("Unrecognized DIF special command "+d);break;case 0:d==="TRUE"?l[c][a]=!0:d==="FALSE"?l[c][a]=!1:isNaN(qn(m))?isNaN(Us(m).getDate())?l[c][a]=m:l[c][a]=qt(m):l[c][a]=qn(m),++a;break;case 1:d=d.slice(1,d.length-1),d=d.replace(/""/g,'"'),d&&d.match(/^=".*"$/)&&(d=d.slice(2,-1)),l[c][a++]=d!==""?d:null;break}if(d==="EOD")break}}return o&&o.sheetRows&&(l=l.slice(0,o.sheetRows)),l}function e(s,o){return ra(t(s,o),o)}function n(s,o){return Xi(e(s,o),o)}var i=function(){var s=function(c,a,f,l,u){c.push(a),c.push(f+","+l),c.push('"'+u.replace(/"/g,'""')+'"')},o=function(c,a,f,l){c.push(a+","+f),c.push(a==1?'"'+l.replace(/"/g,'""')+'"':l)};return function(c){var a=[],f=Lt(c["!ref"]),l,u=Array.isArray(c);s(a,"TABLE",0,1,"sheetjs"),s(a,"VECTORS",0,f.e.r-f.s.r+1,""),s(a,"TUPLES",0,f.e.c-f.s.c+1,""),s(a,"DATA",0,0,"");for(var p=f.s.r;p<=f.e.r;++p){o(a,-1,0,"BOT");for(var m=f.s.c;m<=f.e.c;++m){var d=yt({r:p,c:m});if(l=u?(c[p]||[])[m]:c[d],!l){o(a,1,0,"");continue}switch(l.t){case"n":var v=l.w;!v&&l.v!=null&&(v=l.v),v==null?l.f&&!l.F?o(a,1,0,"="+l.f):o(a,1,0,""):o(a,0,v,"V");break;case"b":o(a,0,l.v?1:0,l.v?"TRUE":"FALSE");break;case"s":o(a,1,0,isNaN(l.v)?l.v:'="'+l.v+'"');break;case"d":l.w||(l.w=pn(l.z||xt[14],Ar(qt(l.v)))),o(a,0,l.w,"V");break;default:o(a,1,0,"")}}}o(a,-1,0,"EOD");var x=`\r
|
||
`,g=a.join(x);return g}}();return{to_workbook:n,to_sheet:e,from_sheet:i}}(),Qu=function(){function t(l){return l.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
|
||
`)}function r(l){return l.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function e(l,u){for(var p=l.split(`
|
||
`),m=-1,d=-1,v=0,x=[];v!==p.length;++v){var g=p[v].trim().split(":");if(g[0]==="cell"){var b=vr(g[1]);if(x.length<=b.r)for(m=x.length;m<=b.r;++m)x[m]||(x[m]=[]);switch(m=b.r,d=b.c,g[2]){case"t":x[m][d]=t(g[3]);break;case"v":x[m][d]=+g[3];break;case"vtf":var w=g[g.length-1];case"vtc":switch(g[3]){case"nl":x[m][d]=!!+g[4];break;default:x[m][d]=+g[4];break}g[2]=="vtf"&&(x[m][d]=[x[m][d],w])}}}return u&&u.sheetRows&&(x=x.slice(0,u.sheetRows)),x}function n(l,u){return ra(e(l,u),u)}function i(l,u){return Xi(n(l,u),u)}var s=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
|
||
`),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
|
||
`)+`
|
||
`,h=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
|
||
`),c="--SocialCalcSpreadsheetControlSave--";function a(l){if(!l||!l["!ref"])return"";for(var u=[],p=[],m,d="",v=mn(l["!ref"]),x=Array.isArray(l),g=v.s.r;g<=v.e.r;++g)for(var b=v.s.c;b<=v.e.c;++b)if(d=yt({r:g,c:b}),m=x?(l[g]||[])[b]:l[d],!(!m||m.v==null||m.t==="z")){switch(p=["cell",d,"t"],m.t){case"s":case"str":p.push(r(m.v));break;case"n":m.f?(p[2]="vtf",p[3]="n",p[4]=m.v,p[5]=r(m.f)):(p[2]="v",p[3]=m.v);break;case"b":p[2]="vt"+(m.f?"f":"c"),p[3]="nl",p[4]=m.v?"1":"0",p[5]=r(m.f||(m.v?"TRUE":"FALSE"));break;case"d":var w=Ar(qt(m.v));p[2]="vtc",p[3]="nd",p[4]=""+w,p[5]=m.w||pn(m.z||xt[14],w);break;case"e":continue}u.push(p.join(":"))}return u.push("sheet:c:"+(v.e.c-v.s.c+1)+":r:"+(v.e.r-v.s.r+1)+":tvf:1"),u.push("valueformat:1:text-wiki"),u.join(`
|
||
`)}function f(l){return[s,o,h,o,a(l),c].join(`
|
||
`)}return{to_workbook:i,to_sheet:n,from_sheet:f}}(),ds=function(){function t(f,l,u,p,m){m.raw?l[u][p]=f:f===""||(f==="TRUE"?l[u][p]=!0:f==="FALSE"?l[u][p]=!1:isNaN(qn(f))?isNaN(Us(f).getDate())?l[u][p]=f:l[u][p]=qt(f):l[u][p]=qn(f))}function r(f,l){var u=l||{},p=[];if(!f||f.length===0)return p;for(var m=f.split(/[\r\n]/),d=m.length-1;d>=0&&m[d].length===0;)--d;for(var v=10,x=0,g=0;g<=d;++g)x=m[g].indexOf(" "),x==-1?x=m[g].length:x++,v=Math.max(v,x);for(g=0;g<=d;++g){p[g]=[];var b=0;for(t(m[g].slice(0,v).trim(),p,g,b,u),b=1;b<=(m[g].length-v)/10+1;++b)t(m[g].slice(v+(b-1)*10,v+b*10).trim(),p,g,b,u)}return u.sheetRows&&(p=p.slice(0,u.sheetRows)),p}var e={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(f){for(var l={},u=!1,p=0,m=0;p<f.length;++p)(m=f.charCodeAt(p))==34?u=!u:!u&&m in e&&(l[m]=(l[m]||0)+1);m=[];for(p in l)Object.prototype.hasOwnProperty.call(l,p)&&m.push([l[p],p]);if(!m.length){l=n;for(p in l)Object.prototype.hasOwnProperty.call(l,p)&&m.push([l[p],p])}return m.sort(function(d,v){return d[0]-v[0]||n[d[1]]-n[v[1]]}),e[m.pop()[1]]||44}function s(f,l){var u=l||{},p="",m=u.dense?[]:{},d={s:{c:0,r:0},e:{c:0,r:0}};f.slice(0,4)=="sep="?f.charCodeAt(5)==13&&f.charCodeAt(6)==10?(p=f.charAt(4),f=f.slice(7)):f.charCodeAt(5)==13||f.charCodeAt(5)==10?(p=f.charAt(4),f=f.slice(6)):p=i(f.slice(0,1024)):u&&u.FS?p=u.FS:p=i(f.slice(0,1024));var v=0,x=0,g=0,b=0,w=0,y=p.charCodeAt(0),T=!1,C=0,M=f.charCodeAt(0);f=f.replace(/\r\n/mg,`
|
||
`);var I=u.dateNF!=null?_m(u.dateNF):null;function B(){var U=f.slice(b,w),j={};if(U.charAt(0)=='"'&&U.charAt(U.length-1)=='"'&&(U=U.slice(1,-1).replace(/""/g,'"')),U.length===0)j.t="z";else if(u.raw)j.t="s",j.v=U;else if(U.trim().length===0)j.t="s",j.v=U;else if(U.charCodeAt(0)==61)U.charCodeAt(1)==34&&U.charCodeAt(U.length-1)==34?(j.t="s",j.v=U.slice(2,-1).replace(/""/g,'"')):Jb(U)?(j.t="n",j.f=U.slice(1)):(j.t="s",j.v=U);else if(U=="TRUE")j.t="b",j.v=!0;else if(U=="FALSE")j.t="b",j.v=!1;else if(!isNaN(g=qn(U)))j.t="n",u.cellText!==!1&&(j.w=U),j.v=g;else if(!isNaN(Us(U).getDate())||I&&U.match(I)){j.z=u.dateNF||xt[14];var H=0;I&&U.match(I)&&(U=Em(U,u.dateNF,U.match(I)||[]),H=1),u.cellDates?(j.t="d",j.v=qt(U,H)):(j.t="n",j.v=Ar(qt(U,H))),u.cellText!==!1&&(j.w=pn(j.z,j.v instanceof Date?Ar(j.v):j.v)),u.cellNF||delete j.z}else j.t="s",j.v=U;if(j.t=="z"||(u.dense?(m[v]||(m[v]=[]),m[v][x]=j):m[yt({c:x,r:v})]=j),b=w+1,M=f.charCodeAt(b),d.e.c<x&&(d.e.c=x),d.e.r<v&&(d.e.r=v),C==y)++x;else if(x=0,++v,u.sheetRows&&u.sheetRows<=v)return!0}e:for(;w<f.length;++w)switch(C=f.charCodeAt(w)){case 34:M===34&&(T=!T);break;case y:case 10:case 13:if(!T&&B())break e;break}return w-b>0&&B(),m["!ref"]=Rt(d),m}function o(f,l){return!(l&&l.PRN)||l.FS||f.slice(0,4)=="sep="||f.indexOf(" ")>=0||f.indexOf(",")>=0||f.indexOf(";")>=0?s(f,l):ra(r(f,l),l)}function h(f,l){var u="",p=l.type=="string"?[0,0,0,0]:El(f,l);switch(l.type){case"base64":u=nn(f);break;case"binary":u=f;break;case"buffer":l.codepage==65001?u=f.toString("utf8"):l.codepage&&typeof ci<"u"?u=ci.utils.decode(l.codepage,f):u=St&&Buffer.isBuffer(f)?f.toString("binary"):bi(f);break;case"array":u=ji(f);break;case"string":u=f;break;default:throw new Error("Unrecognized type "+l.type)}return p[0]==239&&p[1]==187&&p[2]==191?u=Wt(u.slice(3)):l.type!="string"&&l.type!="buffer"&&l.codepage==65001?u=Wt(u):l.type=="binary"&&typeof ci<"u"&&l.codepage&&(u=ci.utils.decode(l.codepage,ci.utils.encode(28591,u))),u.slice(0,19)=="socialcalc:version:"?Qu.to_sheet(l.type=="string"?u:Wt(u),l):o(u,l)}function c(f,l){return Xi(h(f,l),l)}function a(f){for(var l=[],u=Lt(f["!ref"]),p,m=Array.isArray(f),d=u.s.r;d<=u.e.r;++d){for(var v=[],x=u.s.c;x<=u.e.c;++x){var g=yt({r:d,c:x});if(p=m?(f[d]||[])[x]:f[g],!p||p.v==null){v.push(" ");continue}for(var b=(p.w||(mi(p),p.w)||"").slice(0,10);b.length<10;)b+=" ";v.push(b+(x===0?" ":""))}l.push(v.join(""))}return l.join(`
|
||
`)}return{to_workbook:c,to_sheet:h,from_sheet:a}}();function Bx(t,r){var e=r||{},n=!!e.WTF;e.WTF=!0;try{var i=Zu.to_workbook(t,e);return e.WTF=n,i}catch(s){if(e.WTF=n,!s.message.match(/SYLK bad record ID/)&&n)throw s;return ds.to_workbook(t,r)}}var Ni=function(){function t(D,A,S){if(D){kr(D,D.l||0);for(var E=S.Enum||N;D.l<D.length;){var O=D.read_shift(2),z=E[O]||E[65535],J=D.read_shift(2),re=D.l+J,se=z.f&&z.f(D,J,S);if(D.l=re,A(se,z,O))return}}}function r(D,A){switch(A.type){case"base64":return e(tn(nn(D)),A);case"binary":return e(tn(D),A);case"buffer":case"array":return e(D,A)}throw"Unsupported type "+A.type}function e(D,A){if(!D)return D;var S=A||{},E=S.dense?[]:{},O="Sheet1",z="",J=0,re={},se=[],Ce=[],Y={s:{r:0,c:0},e:{r:0,c:0}},q=S.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)S.Enum=N,t(D,function(we,ae,te){switch(te){case 0:S.vers=we,we>=4096&&(S.qpro=!0);break;case 6:Y=we;break;case 204:we&&(z=we);break;case 222:z=we;break;case 15:case 51:S.qpro||(we[1].v=we[1].v.slice(1));case 13:case 14:case 16:te==14&&(we[2]&112)==112&&(we[2]&15)>1&&(we[2]&15)<15&&(we[1].z=S.dateNF||xt[14],S.cellDates&&(we[1].t="d",we[1].v=xo(we[1].v))),S.qpro&&we[3]>J&&(E["!ref"]=Rt(Y),re[O]=E,se.push(O),E=S.dense?[]:{},Y={s:{r:0,c:0},e:{r:0,c:0}},J=we[3],O=z||"Sheet"+(J+1),z="");var Z=S.dense?(E[we[0].r]||[])[we[0].c]:E[yt(we[0])];if(Z){Z.t=we[1].t,Z.v=we[1].v,we[1].z!=null&&(Z.z=we[1].z),we[1].f!=null&&(Z.f=we[1].f);break}S.dense?(E[we[0].r]||(E[we[0].r]=[]),E[we[0].r][we[0].c]=we[1]):E[yt(we[0])]=we[1];break}},S);else if(D[2]==26||D[2]==14)S.Enum=P,D[2]==14&&(S.qpro=!0,D.l=0),t(D,function(we,ae,te){switch(te){case 204:O=we;break;case 22:we[1].v=we[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(we[3]>J&&(E["!ref"]=Rt(Y),re[O]=E,se.push(O),E=S.dense?[]:{},Y={s:{r:0,c:0},e:{r:0,c:0}},J=we[3],O="Sheet"+(J+1)),q>0&&we[0].r>=q)break;S.dense?(E[we[0].r]||(E[we[0].r]=[]),E[we[0].r][we[0].c]=we[1]):E[yt(we[0])]=we[1],Y.e.c<we[0].c&&(Y.e.c=we[0].c),Y.e.r<we[0].r&&(Y.e.r=we[0].r);break;case 27:we[14e3]&&(Ce[we[14e3][0]]=we[14e3][1]);break;case 1537:Ce[we[0]]=we[1],we[0]==J&&(O=we[1]);break}},S);else throw new Error("Unrecognized LOTUS BOF "+D[2]);if(E["!ref"]=Rt(Y),re[z||O]=E,se.push(z||O),!Ce.length)return{SheetNames:se,Sheets:re};for(var K={},Q=[],he=0;he<Ce.length;++he)re[se[he]]?(Q.push(Ce[he]||se[he]),K[Ce[he]]=re[Ce[he]]||re[se[he]]):(Q.push(Ce[he]),K[Ce[he]]={"!ref":"A1"});return{SheetNames:Q,Sheets:K}}function n(D,A){var S=A||{};if(+S.codepage>=0&&Sn(+S.codepage),S.type=="string")throw new Error("Cannot write WK1 to JS string");var E=Jr(),O=Lt(D["!ref"]),z=Array.isArray(D),J=[];qe(E,0,s(1030)),qe(E,6,c(O));for(var re=Math.min(O.e.r,8191),se=O.s.r;se<=re;++se)for(var Ce=Er(se),Y=O.s.c;Y<=O.e.c;++Y){se===O.s.r&&(J[Y]=dr(Y));var q=J[Y]+Ce,K=z?(D[se]||[])[Y]:D[q];if(!(!K||K.t=="z"))if(K.t=="n")(K.v|0)==K.v&&K.v>=-32768&&K.v<=32767?qe(E,13,p(se,Y,K.v)):qe(E,14,d(se,Y,K.v));else{var Q=mi(K);qe(E,15,l(se,Y,Q.slice(0,239)))}}return qe(E,1),E.end()}function i(D,A){var S=A||{};if(+S.codepage>=0&&Sn(+S.codepage),S.type=="string")throw new Error("Cannot write WK3 to JS string");var E=Jr();qe(E,0,o(D));for(var O=0,z=0;O<D.SheetNames.length;++O)(D.Sheets[D.SheetNames[O]]||{})["!ref"]&&qe(E,27,k(D.SheetNames[O],z++));var J=0;for(O=0;O<D.SheetNames.length;++O){var re=D.Sheets[D.SheetNames[O]];if(!(!re||!re["!ref"])){for(var se=Lt(re["!ref"]),Ce=Array.isArray(re),Y=[],q=Math.min(se.e.r,8191),K=se.s.r;K<=q;++K)for(var Q=Er(K),he=se.s.c;he<=se.e.c;++he){K===se.s.r&&(Y[he]=dr(he));var we=Y[he]+Q,ae=Ce?(re[K]||[])[he]:re[we];if(!(!ae||ae.t=="z"))if(ae.t=="n")qe(E,23,B(K,he,J,ae.v));else{var te=mi(ae);qe(E,22,C(K,he,J,te.slice(0,239)))}}++J}}return qe(E,1),E.end()}function s(D){var A=We(2);return A.write_shift(2,D),A}function o(D){var A=We(26);A.write_shift(2,4096),A.write_shift(2,4),A.write_shift(4,0);for(var S=0,E=0,O=0,z=0;z<D.SheetNames.length;++z){var J=D.SheetNames[z],re=D.Sheets[J];if(!(!re||!re["!ref"])){++O;var se=mn(re["!ref"]);S<se.e.r&&(S=se.e.r),E<se.e.c&&(E=se.e.c)}}return S>8191&&(S=8191),A.write_shift(2,S),A.write_shift(1,O),A.write_shift(1,E),A.write_shift(2,0),A.write_shift(2,0),A.write_shift(1,1),A.write_shift(1,2),A.write_shift(4,0),A.write_shift(4,0),A}function h(D,A,S){var E={s:{c:0,r:0},e:{c:0,r:0}};return A==8&&S.qpro?(E.s.c=D.read_shift(1),D.l++,E.s.r=D.read_shift(2),E.e.c=D.read_shift(1),D.l++,E.e.r=D.read_shift(2),E):(E.s.c=D.read_shift(2),E.s.r=D.read_shift(2),A==12&&S.qpro&&(D.l+=2),E.e.c=D.read_shift(2),E.e.r=D.read_shift(2),A==12&&S.qpro&&(D.l+=2),E.s.c==65535&&(E.s.c=E.e.c=E.s.r=E.e.r=0),E)}function c(D){var A=We(8);return A.write_shift(2,D.s.c),A.write_shift(2,D.s.r),A.write_shift(2,D.e.c),A.write_shift(2,D.e.r),A}function a(D,A,S){var E=[{c:0,r:0},{t:"n",v:0},0,0];return S.qpro&&S.vers!=20768?(E[0].c=D.read_shift(1),E[3]=D.read_shift(1),E[0].r=D.read_shift(2),D.l+=2):(E[2]=D.read_shift(1),E[0].c=D.read_shift(2),E[0].r=D.read_shift(2)),E}function f(D,A,S){var E=D.l+A,O=a(D,A,S);if(O[1].t="s",S.vers==20768){D.l++;var z=D.read_shift(1);return O[1].v=D.read_shift(z,"utf8"),O}return S.qpro&&D.l++,O[1].v=D.read_shift(E-D.l,"cstr"),O}function l(D,A,S){var E=We(7+S.length);E.write_shift(1,255),E.write_shift(2,A),E.write_shift(2,D),E.write_shift(1,39);for(var O=0;O<E.length;++O){var z=S.charCodeAt(O);E.write_shift(1,z>=128?95:z)}return E.write_shift(1,0),E}function u(D,A,S){var E=a(D,A,S);return E[1].v=D.read_shift(2,"i"),E}function p(D,A,S){var E=We(7);return E.write_shift(1,255),E.write_shift(2,A),E.write_shift(2,D),E.write_shift(2,S,"i"),E}function m(D,A,S){var E=a(D,A,S);return E[1].v=D.read_shift(8,"f"),E}function d(D,A,S){var E=We(13);return E.write_shift(1,255),E.write_shift(2,A),E.write_shift(2,D),E.write_shift(8,S,"f"),E}function v(D,A,S){var E=D.l+A,O=a(D,A,S);if(O[1].v=D.read_shift(8,"f"),S.qpro)D.l=E;else{var z=D.read_shift(2);w(D.slice(D.l,D.l+z),O),D.l+=z}return O}function x(D,A,S){var E=A&32768;return A&=-32769,A=(E?D:0)+(A>=8192?A-16384:A),(E?"":"$")+(S?dr(A):Er(A))}var g={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]},b=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function w(D,A){kr(D,0);for(var S=[],E=0,O="",z="",J="",re="";D.l<D.length;){var se=D[D.l++];switch(se){case 0:S.push(D.read_shift(8,"f"));break;case 1:z=x(A[0].c,D.read_shift(2),!0),O=x(A[0].r,D.read_shift(2),!1),S.push(z+O);break;case 2:{var Ce=x(A[0].c,D.read_shift(2),!0),Y=x(A[0].r,D.read_shift(2),!1);z=x(A[0].c,D.read_shift(2),!0),O=x(A[0].r,D.read_shift(2),!1),S.push(Ce+Y+":"+z+O)}break;case 3:if(D.l<D.length){console.error("WK1 premature formula end");return}break;case 4:S.push("("+S.pop()+")");break;case 5:S.push(D.read_shift(2));break;case 6:{for(var q="";se=D[D.l++];)q+=String.fromCharCode(se);S.push('"'+q.replace(/"/g,'""')+'"')}break;case 8:S.push("-"+S.pop());break;case 23:S.push("+"+S.pop());break;case 22:S.push("NOT("+S.pop()+")");break;case 20:case 21:re=S.pop(),J=S.pop(),S.push(["AND","OR"][se-20]+"("+J+","+re+")");break;default:if(se<32&&b[se])re=S.pop(),J=S.pop(),S.push(J+b[se]+re);else if(g[se]){if(E=g[se][1],E==69&&(E=D[D.l++]),E>S.length){console.error("WK1 bad formula parse 0x"+se.toString(16)+":|"+S.join("|")+"|");return}var K=S.slice(-E);S.length-=E,S.push(g[se][0]+"("+K.join(",")+")")}else return se<=7?console.error("WK1 invalid opcode "+se.toString(16)):se<=24?console.error("WK1 unsupported op "+se.toString(16)):se<=30?console.error("WK1 invalid opcode "+se.toString(16)):se<=115?console.error("WK1 unsupported function opcode "+se.toString(16)):console.error("WK1 unrecognized opcode "+se.toString(16))}}S.length==1?A[1].f=""+S[0]:console.error("WK1 bad formula parse |"+S.join("|")+"|")}function y(D){var A=[{c:0,r:0},{t:"n",v:0},0];return A[0].r=D.read_shift(2),A[3]=D[D.l++],A[0].c=D[D.l++],A}function T(D,A){var S=y(D);return S[1].t="s",S[1].v=D.read_shift(A-4,"cstr"),S}function C(D,A,S,E){var O=We(6+E.length);O.write_shift(2,D),O.write_shift(1,S),O.write_shift(1,A),O.write_shift(1,39);for(var z=0;z<E.length;++z){var J=E.charCodeAt(z);O.write_shift(1,J>=128?95:J)}return O.write_shift(1,0),O}function M(D,A){var S=y(D);S[1].v=D.read_shift(2);var E=S[1].v>>1;if(S[1].v&1)switch(E&7){case 0:E=(E>>3)*5e3;break;case 1:E=(E>>3)*500;break;case 2:E=(E>>3)/20;break;case 3:E=(E>>3)/200;break;case 4:E=(E>>3)/2e3;break;case 5:E=(E>>3)/2e4;break;case 6:E=(E>>3)/16;break;case 7:E=(E>>3)/64;break}return S[1].v=E,S}function I(D,A){var S=y(D),E=D.read_shift(4),O=D.read_shift(4),z=D.read_shift(2);if(z==65535)return E===0&&O===3221225472?(S[1].t="e",S[1].v=15):E===0&&O===3489660928?(S[1].t="e",S[1].v=42):S[1].v=0,S;var J=z&32768;return z=(z&32767)-16446,S[1].v=(1-J*2)*(O*Math.pow(2,z+32)+E*Math.pow(2,z)),S}function B(D,A,S,E){var O=We(14);if(O.write_shift(2,D),O.write_shift(1,S),O.write_shift(1,A),E==0)return O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,65535),O;var z=0,J=0,re=0,se=0;return E<0&&(z=1,E=-E),J=Math.log2(E)|0,E/=Math.pow(2,J-31),se=E>>>0,se&2147483648||(E/=2,++J,se=E>>>0),E-=se,se|=2147483648,se>>>=0,E*=Math.pow(2,32),re=E>>>0,O.write_shift(4,re),O.write_shift(4,se),J+=16383+(z?32768:0),O.write_shift(2,J),O}function U(D,A){var S=I(D);return D.l+=A-14,S}function j(D,A){var S=y(D),E=D.read_shift(4);return S[1].v=E>>6,S}function H(D,A){var S=y(D),E=D.read_shift(8,"f");return S[1].v=E,S}function G(D,A){var S=H(D);return D.l+=A-10,S}function L(D,A){return D[D.l+A-1]==0?D.read_shift(A,"cstr"):""}function R(D,A){var S=D[D.l++];S>A-1&&(S=A-1);for(var E="";E.length<S;)E+=String.fromCharCode(D[D.l++]);return E}function F(D,A,S){if(!(!S.qpro||A<21)){var E=D.read_shift(1);D.l+=17,D.l+=1,D.l+=2;var O=D.read_shift(A-21,"cstr");return[E,O]}}function _(D,A){for(var S={},E=D.l+A;D.l<E;){var O=D.read_shift(2);if(O==14e3){for(S[O]=[0,""],S[O][0]=D.read_shift(2);D[D.l];)S[O][1]+=String.fromCharCode(D[D.l]),D.l++;D.l++}}return S}function k(D,A){var S=We(5+D.length);S.write_shift(2,14e3),S.write_shift(2,A);for(var E=0;E<D.length;++E){var O=D.charCodeAt(E);S[S.l++]=O>127?95:O}return S[S.l++]=0,S}var N={0:{n:"BOF",f:hr},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:h},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:u},14:{n:"NUMBER",f:m},15:{n:"LABEL",f},16:{n:"FORMULA",f:v},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},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:L},222:{n:"SHEETNAMELP",f:R},65535:{n:""}},P={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:T},23:{n:"NUMBER17",f:I},24:{n:"NUMBER18",f:M},25:{n:"FORMULA19",f:U},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:_},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:j},38:{n:"??"},39:{n:"NUMBER27",f:H},40:{n:"FORMULA28",f:G},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:L},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:F},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:n,book_to_wk3:i,to_workbook:r}}();function Lx(t){var r={},e=t.match(jr),n=0,i=!1;if(e)for(;n!=e.length;++n){var s=bt(e[n]);switch(s[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!s.val)break;case"<shadow>":case"<shadow/>":r.shadow=1;break;case"</shadow>":break;case"<charset":if(s.val=="1")break;r.cp=zf[parseInt(s.val,10)];break;case"<outline":if(!s.val)break;case"<outline>":case"<outline/>":r.outline=1;break;case"</outline>":break;case"<rFont":r.name=s.val;break;case"<sz":r.sz=s.val;break;case"<strike":if(!s.val)break;case"<strike>":case"<strike/>":r.strike=1;break;case"</strike>":break;case"<u":if(!s.val)break;switch(s.val){case"double":r.uval="double";break;case"singleAccounting":r.uval="single-accounting";break;case"doubleAccounting":r.uval="double-accounting";break}case"<u>":case"<u/>":r.u=1;break;case"</u>":break;case"<b":if(s.val=="0")break;case"<b>":case"<b/>":r.b=1;break;case"</b>":break;case"<i":if(s.val=="0")break;case"<i>":case"<i/>":r.i=1;break;case"</i>":break;case"<color":s.rgb&&(r.color=s.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":r.family=s.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":r.valign=s.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(s[0].charCodeAt(1)!==47&&!i)throw new Error("Unrecognized rich format "+s[0])}}return r}var jx=function(){var t=Hs("t"),r=Hs("rPr");function e(s){var o=s.match(t);if(!o)return{t:"s",v:""};var h={t:"s",v:Pt(o[1])},c=s.match(r);return c&&(h.s=Lx(c[1])),h}var n=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(o){return o.replace(n,"").split(i).map(e).filter(function(h){return h.v})}}(),Ux=function(){var r=/(\r\n|\n)/g;function e(i,s,o){var h=[];i.u&&h.push("text-decoration: underline;"),i.uval&&h.push("text-underline-style:"+i.uval+";"),i.sz&&h.push("font-size:"+i.sz+"pt;"),i.outline&&h.push("text-effect: outline;"),i.shadow&&h.push("text-shadow: auto;"),s.push('<span style="'+h.join("")+'">'),i.b&&(s.push("<b>"),o.push("</b>")),i.i&&(s.push("<i>"),o.push("</i>")),i.strike&&(s.push("<s>"),o.push("</s>"));var c=i.valign||"";return c=="superscript"||c=="super"?c="sup":c=="subscript"&&(c="sub"),c!=""&&(s.push("<"+c+">"),o.push("</"+c+">")),o.push("</span>"),i}function n(i){var s=[[],i.v,[]];return i.v?(i.s&&e(i.s,s[0],s[2]),s[0].join("")+s[1].replace(r,"<br/>")+s[2].join("")):""}return function(s){return s.map(n).join("")}}(),Hx=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,zx=/<(?:\w+:)?r>/,$x=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function cl(t,r){var e=r?r.cellHTML:!0,n={};return t?(t.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Pt(Wt(t.slice(t.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Wt(t),e&&(n.h=Qf(n.t))):t.match(zx)&&(n.r=Wt(t),n.t=Pt(Wt((t.replace($x,"").match(Hx)||[]).join("").replace(jr,""))),e&&(n.h=Ux(jx(n.r)))),n):{t:""}}var Wx=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,Xx=/<(?:\w+:)?(?:si|sstItem)>/g,Vx=/<\/(?:\w+:)?(?:si|sstItem)>/;function Gx(t,r){var e=[],n="";if(!t)return e;var i=t.match(Wx);if(i){n=i[2].replace(Xx,"").split(Vx);for(var s=0;s!=n.length;++s){var o=cl(n[s].trim(),r);o!=null&&(e[e.length]=o)}i=bt(i[1]),e.Count=i.count,e.Unique=i.uniqueCount}return e}var Kx=/^\s|\s$|[\t\n\r]/;function qu(t,r){if(!r.bookSST)return"";var e=[fr];e[e.length]=Qe("sst",null,{xmlns:Wi[0],count:t.Count,uniqueCount:t.Unique});for(var n=0;n!=t.length;++n)if(t[n]!=null){var i=t[n],s="<si>";i.r?s+=i.r:(s+="<t",i.t||(i.t=""),i.t.match(Kx)&&(s+=' xml:space="preserve"'),s+=">"+$t(i.t)+"</t>"),s+="</si>",e[e.length]=s}return e.length>2&&(e[e.length]="</sst>",e[1]=e[1].replace("/>",">")),e.join("")}function Yx(t){return[t.read_shift(4),t.read_shift(4)]}function Zx(t,r){var e=[],n=!1;return ni(t,function(s,o,h){switch(h){case 159:e.Count=s[0],e.Unique=s[1];break;case 19:e.push(s);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(o.T,!n||r.WTF)throw new Error("Unexpected record 0x"+h.toString(16))}}),e}function Jx(t,r){return r||(r=We(8)),r.write_shift(4,t.Count),r.write_shift(4,t.Unique),r}var Qx=fg;function qx(t){var r=Jr();Ye(r,159,Jx(t));for(var e=0;e<t.length;++e)Ye(r,19,Qx(t[e]));return Ye(r,160),r.end()}function e0(t){for(var r=[],e=t.split(""),n=0;n<e.length;++n)r[n]=e[n].charCodeAt(0);return r}function ei(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 e2(t){var r={};return r.id=t.read_shift(0,"lpp4"),r.R=ei(t,4),r.U=ei(t,4),r.W=ei(t,4),r}function t2(t){for(var r=t.read_shift(4),e=t.l+r-4,n={},i=t.read_shift(4),s=[];i-- >0;)s.push({t:t.read_shift(4),v:t.read_shift(0,"lpp4")});if(n.name=t.read_shift(0,"lpp4"),n.comps=s,t.l!=e)throw new Error("Bad DataSpaceMapEntry: "+t.l+" != "+e);return n}function r2(t){var r=[];t.l+=4;for(var e=t.read_shift(4);e-- >0;)r.push(t2(t));return r}function n2(t){var r=[];t.l+=4;for(var e=t.read_shift(4);e-- >0;)r.push(t.read_shift(0,"lpp4"));return r}function i2(t){var r={};return t.read_shift(4),t.l+=4,r.id=t.read_shift(0,"lpp4"),r.name=t.read_shift(0,"lpp4"),r.R=ei(t,4),r.U=ei(t,4),r.W=ei(t,4),r}function s2(t){var r=i2(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 t0(t,r){var e=t.l+r,n={};n.Flags=t.read_shift(4)&63,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 r0(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 a2(t){var r=ei(t);switch(r.Minor){case 2:return[r.Minor,o2(t)];case 3:return[r.Minor,f2()];case 4:return[r.Minor,l2(t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}function o2(t){var r=t.read_shift(4);if((r&63)!=36)throw new Error("EncryptionInfo mismatch");var e=t.read_shift(4),n=t0(t,e),i=r0(t,t.length-t.l);return{t:"Std",h:n,v:i}}function f2(){throw new Error("File is password-protected: ECMA-376 Extensible")}function l2(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(jr,function(s){var o=bt(s);switch(Hn(o[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":r.forEach(function(h){n[h]=o[h]});break;case"<dataIntegrity":n.encryptedHmacKey=o.encryptedHmacKey,n.encryptedHmacValue=o.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":n.uri=o.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":n.encs.push(o);break;default:throw o[0]}}),n}function c2(t,r){var e={},n=e.EncryptionVersionInfo=ei(t,4);if(r-=4,n.Minor!=2)throw new Error("unrecognized minor version code: "+n.Minor);if(n.Major>4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);e.Flags=t.read_shift(4),r-=4;var i=t.read_shift(4);return r-=4,e.EncryptionHeader=t0(t,i),r-=i,e.EncryptionVerifier=r0(t,r),e}function h2(t){var r={},e=r.EncryptionVersionInfo=ei(t,4);if(e.Major!=1||e.Minor!=1)throw"unrecognized version code "+e.Major+" : "+e.Minor;return r.Salt=t.read_shift(16),r.EncryptedVerifier=t.read_shift(16),r.EncryptedVerifierHash=t.read_shift(16),r}function hl(t){var r=0,e,n=e0(t),i=n.length+1,s,o,h,c,a;for(e=pi(i),e[0]=n.length,s=1;s!=i;++s)e[s]=n[s-1];for(s=i-1;s>=0;--s)o=e[s],h=r&16384?1:0,c=r<<1&32767,a=h|c,r=a^o;return r^52811}var n0=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(o){return(o/2|o*128)&255},i=function(o,h){return n(o^h)},s=function(o){for(var h=r[o.length-1],c=104,a=o.length-1;a>=0;--a)for(var f=o[a],l=0;l!=7;++l)f&64&&(h^=e[c]),f*=2,--c;return h};return function(o){for(var h=e0(o),c=s(h),a=h.length,f=pi(16),l=0;l!=16;++l)f[l]=0;var u,p,m;for((a&1)===1&&(u=c>>8,f[a]=i(t[0],u),--a,u=c&255,p=h[h.length-1],f[a]=i(p,u));a>0;)--a,u=c>>8,f[a]=i(h[a],u),--a,u=c&255,f[a]=i(h[a],u);for(a=15,m=15-h.length;m>0;)u=c>>8,f[a]=i(t[m],u),--a,--m,u=c&255,f[a]=i(h[a],u),--a,--m;return f}}(),u2=function(t,r,e,n,i){i||(i=r),n||(n=n0(t));var s,o;for(s=0;s!=r.length;++s)o=r[s],o^=n[e],o=(o>>5|o<<3)&255,i[s]=o,++e;return[i,e,n]},d2=function(t){var r=0,e=n0(t);return function(n){var i=u2("",n,r,e);return r=i[1],i[0]}};function p2(t,r,e,n){var i={key:hr(t),verificationBytes:hr(t)};return e.password&&(i.verifier=hl(e.password)),n.valid=i.verificationBytes===i.verifier,n.valid&&(n.insitu=d2(e.password)),i}function m2(t,r,e){var n=e||{};return n.Info=t.read_shift(2),t.l-=2,n.Info===1?n.Data=h2(t):n.Data=c2(t,r),n}function g2(t,r,e){var n={Type:e.biff>=8?t.read_shift(2):0};return n.Type?m2(t,r-2,n):p2(t,e.biff>=8?r:r-2,e,n),n}var i0=function(){function t(i,s){switch(s.type){case"base64":return r(nn(i),s);case"binary":return r(i,s);case"buffer":return r(St&&Buffer.isBuffer(i)?i.toString("binary"):bi(i),s);case"array":return r(ji(i),s)}throw new Error("Unrecognized type "+s.type)}function r(i,s){var o=s||{},h=o.dense?[]:{},c=i.match(/\\trowd.*?\\row\b/g);if(!c.length)throw new Error("RTF missing table");var a={s:{c:0,r:0},e:{c:0,r:c.length-1}};return c.forEach(function(f,l){Array.isArray(h)&&(h[l]=[]);for(var u=/\\\w+\b/g,p=0,m,d=-1;m=u.exec(f);){switch(m[0]){case"\\cell":var v=f.slice(p,u.lastIndex-m[0].length);if(v[0]==" "&&(v=v.slice(1)),++d,v.length){var x={v,t:"s"};Array.isArray(h)?h[l][d]=x:h[yt({r:l,c:d})]=x}break}p=u.lastIndex}d>a.e.c&&(a.e.c=d)}),h["!ref"]=Rt(a),h}function e(i,s){return Xi(t(i,s),s)}function n(i){for(var s=["{\\rtf1\\ansi"],o=Lt(i["!ref"]),h,c=Array.isArray(i),a=o.s.r;a<=o.e.r;++a){s.push("\\trowd\\trautofit1");for(var f=o.s.c;f<=o.e.c;++f)s.push("\\cellx"+(f+1));for(s.push("\\pard\\intbl"),f=o.s.c;f<=o.e.c;++f){var l=yt({r:a,c:f});h=c?(i[a]||[])[f]:i[l],!(!h||h.v==null&&(!h.f||h.F))&&(s.push(" "+(h.w||(mi(h),h.w))),s.push("\\cell"))}s.push("\\pard\\intbl\\row")}return s.join("")+"}"}return{to_workbook:e,to_sheet:t,from_sheet:n}}();function v2(t){var r=t.slice(t[0]==="#"?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function Xs(t){for(var r=0,e=1;r!=3;++r)e=e*256+(t[r]>255?255:t[r]<0?0:t[r]);return e.toString(16).toUpperCase().slice(1)}function x2(t){var r=t[0]/255,e=t[1]/255,n=t[2]/255,i=Math.max(r,e,n),s=Math.min(r,e,n),o=i-s;if(o===0)return[0,0,r];var h=0,c=0,a=i+s;switch(c=o/(a>1?2-a:a),i){case r:h=((e-n)/o+6)%6;break;case e:h=(n-r)/o+2;break;case n:h=(r-e)/o+4;break}return[h/6,c,a/2]}function b2(t){var r=t[0],e=t[1],n=t[2],i=e*2*(n<.5?n:1-n),s=n-i/2,o=[s,s,s],h=6*r,c;if(e!==0)switch(h|0){case 0:case 6:c=i*h,o[0]+=i,o[1]+=c;break;case 1:c=i*(2-h),o[0]+=c,o[1]+=i;break;case 2:c=i*(h-2),o[1]+=i,o[2]+=c;break;case 3:c=i*(4-h),o[1]+=c,o[2]+=i;break;case 4:c=i*(h-4),o[2]+=i,o[0]+=c;break;case 5:c=i*(6-h),o[2]+=c,o[0]+=i;break}for(var a=0;a!=3;++a)o[a]=Math.round(o[a]*255);return o}function lo(t,r){if(r===0)return t;var e=x2(v2(t));return r<0?e[2]=e[2]*(1+r):e[2]=1-(1-e[2])*(1-r),Xs(b2(e))}var s0=6,w2=15,y2=1,Dr=s0;function Vs(t){return Math.floor((t+Math.round(128/Dr)/256)*Dr)}function Gs(t){return Math.floor((t-5)/Dr*100+.5)/100}function co(t){return Math.round((t*Dr+5)/Dr*256)/256}function Ko(t){return co(Gs(Vs(t)))}function ul(t){var r=Math.abs(t-Ko(t)),e=Dr;if(r>.005)for(Dr=y2;Dr<w2;++Dr)Math.abs(t-Ko(t))<=r&&(r=Math.abs(t-Ko(t)),e=Dr);Dr=e}function gi(t){t.width?(t.wpx=Vs(t.width),t.wch=Gs(t.wpx),t.MDW=Dr):t.wpx?(t.wch=Gs(t.wpx),t.width=co(t.wch),t.MDW=Dr):typeof t.wch=="number"&&(t.width=co(t.wch),t.wpx=Vs(t.width),t.MDW=Dr),t.customWidth&&delete t.customWidth}var _2=96,a0=_2;function Ks(t){return t*96/a0}function ps(t){return t*a0/96}var E2={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"};function T2(t,r,e,n){r.Borders=[];var i={},s=!1;(t[0].match(jr)||[]).forEach(function(o){var h=bt(o);switch(Hn(h[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":i={},h.diagonalUp&&(i.diagonalUp=Yt(h.diagonalUp)),h.diagonalDown&&(i.diagonalDown=Yt(h.diagonalDown)),r.Borders.push(i);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(n&&n.WTF&&!s)throw new Error("unrecognized "+h[0]+" in borders")}})}function S2(t,r,e,n){r.Fills=[];var i={},s=!1;(t[0].match(jr)||[]).forEach(function(o){var h=bt(o);switch(Hn(h[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":i={},r.Fills.push(i);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":r.Fills.push(i),i={};break;case"<patternFill":case"<patternFill>":h.patternType&&(i.patternType=h.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":i.bgColor||(i.bgColor={}),h.indexed&&(i.bgColor.indexed=parseInt(h.indexed,10)),h.theme&&(i.bgColor.theme=parseInt(h.theme,10)),h.tint&&(i.bgColor.tint=parseFloat(h.tint)),h.rgb&&(i.bgColor.rgb=h.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":i.fgColor||(i.fgColor={}),h.theme&&(i.fgColor.theme=parseInt(h.theme,10)),h.tint&&(i.fgColor.tint=parseFloat(h.tint)),h.rgb!=null&&(i.fgColor.rgb=h.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(n&&n.WTF&&!s)throw new Error("unrecognized "+h[0]+" in fills")}})}function k2(t,r,e,n){r.Fonts=[];var i={},s=!1;(t[0].match(jr)||[]).forEach(function(o){var h=bt(o);switch(Hn(h[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":r.Fonts.push(i),i={};break;case"<name":h.val&&(i.name=Wt(h.val));break;case"<name/>":case"</name>":break;case"<b":i.bold=h.val?Yt(h.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=h.val?Yt(h.val):1;break;case"<i/>":i.italic=1;break;case"<u":switch(h.val){case"none":i.underline=0;break;case"single":i.underline=1;break;case"double":i.underline=2;break;case"singleAccounting":i.underline=33;break;case"doubleAccounting":i.underline=34;break}break;case"<u/>":i.underline=1;break;case"<strike":i.strike=h.val?Yt(h.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=h.val?Yt(h.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=h.val?Yt(h.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=h.val?Yt(h.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=h.val?Yt(h.val):1;break;case"<extend/>":i.extend=1;break;case"<sz":h.val&&(i.sz=+h.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":h.val&&(i.vertAlign=h.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":h.val&&(i.family=parseInt(h.val,10));break;case"<family/>":case"</family>":break;case"<scheme":h.val&&(i.scheme=h.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(h.val=="1")break;h.codepage=zf[parseInt(h.val,10)];break;case"<color":if(i.color||(i.color={}),h.auto&&(i.color.auto=Yt(h.auto)),h.rgb)i.color.rgb=h.rgb.slice(-6);else if(h.indexed){i.color.index=parseInt(h.indexed,10);var c=Ii[i.color.index];i.color.index==81&&(c=Ii[1]),c||(c=Ii[1]),i.color.rgb=c[0].toString(16)+c[1].toString(16)+c[2].toString(16)}else h.theme&&(i.color.theme=parseInt(h.theme,10),h.tint&&(i.color.tint=parseFloat(h.tint)),h.theme&&e.themeElements&&e.themeElements.clrScheme&&(i.color.rgb=lo(e.themeElements.clrScheme[i.color.theme].rgb,i.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":s=!0;break;case"</AlternateContent>":s=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(n&&n.WTF&&!s)throw new Error("unrecognized "+h[0]+" in fonts")}})}function C2(t,r,e){r.NumberFmt=[];for(var n=or(xt),i=0;i<n.length;++i)r.NumberFmt[n[i]]=xt[n[i]];var s=t[0].match(jr);if(s)for(i=0;i<s.length;++i){var o=bt(s[i]);switch(Hn(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var h=Pt(Wt(o.formatCode)),c=parseInt(o.numFmtId,10);if(r.NumberFmt[c]=h,c>0){if(c>392){for(c=392;c>60&&r.NumberFmt[c]!=null;--c);r.NumberFmt[c]=h}Qn(h,c)}}break;case"</numFmt>":break;default:if(e.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}function A2(t){var r=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(var n=e[0];n<=e[1];++n)t[n]!=null&&(r[r.length]=Qe("numFmt",null,{numFmtId:n,formatCode:$t(t[n])}))}),r.length===1?"":(r[r.length]="</numFmts>",r[0]=Qe("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}var Ba=["numFmtId","fillId","fontId","borderId","xfId"],La=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function F2(t,r,e){r.CellXf=[];var n,i=!1;(t[0].match(jr)||[]).forEach(function(s){var o=bt(s),h=0;switch(Hn(o[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(n=o,delete n[0],h=0;h<Ba.length;++h)n[Ba[h]]&&(n[Ba[h]]=parseInt(n[Ba[h]],10));for(h=0;h<La.length;++h)n[La[h]]&&(n[La[h]]=Yt(n[La[h]]));if(r.NumberFmt&&n.numFmtId>392){for(h=392;h>60;--h)if(r.NumberFmt[n.numFmtId]==r.NumberFmt[h]){n.numFmtId=h;break}}r.CellXf.push(n);break;case"</xf>":break;case"<alignment":case"<alignment/>":var c={};o.vertical&&(c.vertical=o.vertical),o.horizontal&&(c.horizontal=o.horizontal),o.textRotation!=null&&(c.textRotation=o.textRotation),o.indent&&(c.indent=o.indent),o.wrapText&&(c.wrapText=Yt(o.wrapText)),n.alignment=c;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(e&&e.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}function R2(t){var r=[];return r[r.length]=Qe("cellXfs",null),t.forEach(function(e){r[r.length]=Qe("xf",null,e)}),r[r.length]="</cellXfs>",r.length===2?"":(r[0]=Qe("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}var M2=function(){var r=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,e=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,i=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,s=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(h,c,a){var f={};if(!h)return f;h=h.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var l;return(l=h.match(r))&&C2(l,f,a),(l=h.match(i))&&k2(l,f,c,a),(l=h.match(n))&&S2(l,f,c,a),(l=h.match(s))&&T2(l,f,c,a),(l=h.match(e))&&F2(l,f,a),f}}();function o0(t,r){var e=[fr,Qe("styleSheet",null,{xmlns:Wi[0],"xmlns:vt":gr.vt})],n;return t.SSF&&(n=A2(t.SSF))!=null&&(e[e.length]=n),e[e.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',e[e.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',e[e.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',e[e.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=R2(r.cellXfs))&&(e[e.length]=n),e[e.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',e[e.length]='<dxfs count="0"/>',e[e.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',e.length>2&&(e[e.length]="</styleSheet>",e[1]=e[1].replace("/>",">")),e.join("")}function O2(t,r){var e=t.read_shift(2),n=Pr(t);return[e,n]}function I2(t,r,e){e||(e=We(6+4*r.length)),e.write_shift(2,t),_r(r,e);var n=e.length>e.l?e.slice(0,e.l):e;return e.l==null&&(e.l=e.length),n}function D2(t,r,e){var n={};n.sz=t.read_shift(2)/20;var i=mg(t);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);var s=t.read_shift(2);switch(s===700&&(n.bold=1),t.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=t.read_shift(1);o!=0&&(n.underline=o);var h=t.read_shift(1);h>0&&(n.family=h);var c=t.read_shift(1);switch(c>0&&(n.charset=c),t.l++,n.color=pg(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Pr(t),n}function N2(t,r){r||(r=We(25+4*32)),r.write_shift(2,t.sz*20),gg(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),ao(t.color,r);var n=0;return t.scheme=="major"&&(n=1),t.scheme=="minor"&&(n=2),r.write_shift(1,n),_r(t.name,r),r.length>r.l?r.slice(0,r.l):r}var P2=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Yo,B2=Lr;function Yc(t,r){r||(r=We(4*3+8*7+16*1)),Yo||(Yo=go(P2));var e=Yo[t.patternType];e==null&&(e=40),r.write_shift(4,e);var n=0;if(e!=40)for(ao({auto:1},r),ao({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 L2(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}}function f0(t,r,e){e||(e=We(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);var n=0;return e.write_shift(1,n),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(1,0),e}function _s(t,r){return r||(r=We(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var j2=Lr;function U2(t,r){return r||(r=We(51)),r.write_shift(1,0),_s(null,r),_s(null,r),_s(null,r),_s(null,r),_s(null,r),r.length>r.l?r.slice(0,r.l):r}function H2(t,r){return r||(r=We(12+4*10)),r.write_shift(4,t.xfId),r.write_shift(2,1),r.write_shift(1,+t.builtinId),r.write_shift(1,0),so(t.name||"",r),r.length>r.l?r.slice(0,r.l):r}function z2(t,r,e){var n=We(2052);return n.write_shift(4,t),so(r,n),so(e,n),n.length>n.l?n.slice(0,n.l):n}function $2(t,r,e){var n={};n.NumberFmt=[];for(var i in xt)n.NumberFmt[i]=xt[i];n.CellXf=[],n.Fonts=[];var s=[],o=!1;return ni(t,function(c,a,f){switch(f){case 44:n.NumberFmt[c[0]]=c[1],Qn(c[1],c[0]);break;case 43:n.Fonts.push(c),c.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme&&(c.color.rgb=lo(r.themeElements.clrScheme[c.color.theme].rgb,c.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:s[s.length-1]==617&&n.CellXf.push(c);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:s.push(f),o=!0;break;case 38:s.pop(),o=!1;break;default:if(a.T>0)s.push(f);else if(a.T<0)s.pop();else if(!o||e.WTF&&s[s.length-1]!=37)throw new Error("Unexpected record 0x"+f.toString(16))}}),n}function W2(t,r){if(r){var e=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&++e}),e!=0&&(Ye(t,615,Cn(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&Ye(t,44,I2(i,r[i]))}),Ye(t,616))}}function X2(t){var r=1;Ye(t,611,Cn(r)),Ye(t,43,N2({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Ye(t,612)}function V2(t){var r=2;Ye(t,603,Cn(r)),Ye(t,45,Yc({patternType:"none"})),Ye(t,45,Yc({patternType:"gray125"})),Ye(t,604)}function G2(t){var r=1;Ye(t,613,Cn(r)),Ye(t,46,U2()),Ye(t,614)}function K2(t){var r=1;Ye(t,626,Cn(r)),Ye(t,47,f0({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Ye(t,627)}function Y2(t,r){Ye(t,617,Cn(r.length)),r.forEach(function(e){Ye(t,47,f0(e,0))}),Ye(t,618)}function Z2(t){var r=1;Ye(t,619,Cn(r)),Ye(t,48,H2({xfId:0,builtinId:0,name:"Normal"})),Ye(t,620)}function J2(t){var r=0;Ye(t,505,Cn(r)),Ye(t,506)}function Q2(t){var r=0;Ye(t,508,z2(r,"TableStyleMedium9","PivotStyleMedium4")),Ye(t,509)}function q2(t,r){var e=Jr();return Ye(e,278),W2(e,t.SSF),X2(e),V2(e),G2(e),K2(e),Y2(e,r.cellXfs),Z2(e),J2(e),Q2(e),Ye(e,279),e.end()}var eb=["</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 tb(t,r,e){r.themeElements.clrScheme=[];var n={};(t[0].match(jr)||[]).forEach(function(i){var s=bt(i);switch(s[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=s.val;break;case"<a:sysClr":n.rgb=s.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>":s[0].charAt(1)==="/"?(r.themeElements.clrScheme[eb.indexOf(s[0])]=n,n={}):n.name=s[0].slice(3,s[0].length-1);break;default:if(e&&e.WTF)throw new Error("Unrecognized "+s[0]+" in clrScheme")}})}function rb(){}function nb(){}var ib=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,sb=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,ab=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function ob(t,r,e){r.themeElements={};var n;[["clrScheme",ib,tb],["fontScheme",sb,rb],["fmtScheme",ab,nb]].forEach(function(i){if(!(n=t.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](n,r,e)})}var fb=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function l0(t,r){(!t||t.length===0)&&(t=dl());var e,n={};if(!(e=t.match(fb)))throw new Error("themeElements not found in theme");return ob(e[0],n,r),n.raw=t,n}function dl(t,r){if(r&&r.themeXLSX)return r.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var e=[fr];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 lb(t,r,e){var n=t.l+r,i=t.read_shift(4);if(i!==124226){if(!e.cellStyles){t.l=n;return}var s=t.slice(t.l);t.l=n;var o;try{o=tu(s,{type:"array"})}catch{return}var h=rn(o,"theme/theme/theme1.xml",!0);if(h)return l0(h,e)}}function cb(t){return t.read_shift(4)}function hb(t){var r={};switch(r.xclrType=t.read_shift(2),r.nTintShade=t.read_shift(2),r.xclrType){case 0:t.l+=4;break;case 1:r.xclrValue=ub(t,4);break;case 2:r.xclrValue=zu(t);break;case 3:r.xclrValue=cb(t);break;case 4:t.l+=4;break}return t.l+=8,r}function ub(t,r){return Lr(t,r)}function db(t,r){return Lr(t,r)}function pb(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]=hb(t);break;case 6:n[1]=db(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 mb(t,r){var e=t.l+r;t.l+=2;var n=t.read_shift(2);t.l+=2;for(var i=t.read_shift(2),s=[];i-- >0;)s.push(pb(t,e-t.l));return{ixfe:n,ext:s}}function gb(t,r){r.forEach(function(e){switch(e[0]){}})}function vb(t,r){return{flags:t.read_shift(4),version:t.read_shift(4),name:Pr(t)}}function xb(t){var r=We(12+2*t.name.length);return r.write_shift(4,t.flags),r.write_shift(4,t.version),_r(t.name,r),r.slice(0,r.l)}function bb(t){for(var r=[],e=t.read_shift(4);e-- >0;)r.push([t.read_shift(4),t.read_shift(4)]);return r}function wb(t){var r=We(4+8*t.length);r.write_shift(4,t.length);for(var e=0;e<t.length;++e)r.write_shift(4,t[e][0]),r.write_shift(4,t[e][1]);return r}function yb(t,r){var e=We(8+2*r.length);return e.write_shift(4,t),_r(r,e),e.slice(0,e.l)}function _b(t){return t.l+=4,t.read_shift(4)!=0}function Eb(t,r){var e=We(8);return e.write_shift(4,t),e.write_shift(4,r?1:0),e}function Tb(t,r,e){var n={Types:[],Cell:[],Value:[]},i=e||{},s=[],o=!1,h=2;return ni(t,function(c,a,f){switch(f){case 335:n.Types.push({name:c.name});break;case 51:c.forEach(function(l){h==1?n.Cell.push({type:n.Types[l[0]-1].name,index:l[1]}):h==0&&n.Value.push({type:n.Types[l[0]-1].name,index:l[1]})});break;case 337:h=c?1:0;break;case 338:h=2;break;case 35:s.push(f),o=!0;break;case 36:s.pop(),o=!1;break;default:if(!a.T){if(!o||i.WTF&&s[s.length-1]!=35)throw new Error("Unexpected record 0x"+f.toString(16))}}}),n}function Sb(){var t=Jr();return Ye(t,332),Ye(t,334,Cn(1)),Ye(t,335,xb({name:"XLDAPR",version:12e4,flags:3496657072})),Ye(t,336),Ye(t,339,yb(1,"XLDAPR")),Ye(t,52),Ye(t,35,Cn(514)),Ye(t,4096,Cn(0)),Ye(t,4097,un(1)),Ye(t,36),Ye(t,53),Ye(t,340),Ye(t,337,Eb(1,!0)),Ye(t,51,wb([[1,0]])),Ye(t,338),Ye(t,333),t.end()}function kb(t,r,e){var n={Types:[],Cell:[],Value:[]};if(!t)return n;var i=!1,s=2,o;return t.replace(jr,function(h){var c=bt(h);switch(Hn(c[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":n.Types.push({name:c.name});break;case"</metadataType>":break;case"<futureMetadata":for(var a=0;a<n.Types.length;++a)n.Types[a].name==c.name&&(o=n.Types[a]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":s==1?n.Cell.push({type:n.Types[c.t-1].name,index:+c.v}):s==0&&n.Value.push({type:n.Types[c.t-1].name,index:+c.v});break;case"</rc>":break;case"<cellMetadata":s=1;break;case"</cellMetadata>":s=2;break;case"<valueMetadata":s=0;break;case"</valueMetadata>":s=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;case"<rvb":if(!o)break;o.offsets||(o.offsets=[]),o.offsets.push(+c.i);break;default:if(!i&&e.WTF)throw new Error("unrecognized "+c[0]+" in metadata")}return h}),n}function c0(){var t=[fr];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("")}function Cb(t){var r=[];if(!t)return r;var e=1;return(t.match(jr)||[]).forEach(function(n){var i=bt(n);switch(i[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete i[0],i.i?e=i.i:i.i=e,r.push(i);break}}),r}function Ab(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=yt(e);var n=t.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}function Fb(t,r,e){var n=[];return ni(t,function(s,o,h){switch(h){case 63:n.push(s);break;default:if(!o.T)throw new Error("Unexpected record 0x"+h.toString(16))}}),n}function Rb(t,r,e,n){if(!t)return t;var i=n||{},s=!1;ni(t,function(h,c,a){switch(a){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:s=!0;break;case 36:s=!1;break;default:if(!c.T){if(!s||i.WTF)throw new Error("Unexpected record 0x"+a.toString(16))}}},i)}function Mb(t,r){if(!t)return"??";var e=(t.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][e].Target}var fs=1024;function h0(t,r){for(var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),i=[Qe("xml",null,{"xmlns:v":qr.v,"xmlns:o":qr.o,"xmlns:x":qr.x,"xmlns:mv":qr.mv}).replace(/\/>/,">"),Qe("o:shapelayout",Qe("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),Qe("v:shapetype",[Qe("v:stroke",null,{joinstyle:"miter"}),Qe("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:e.join(","),path:n})];fs<t*1e3;)fs+=1e3;return r.forEach(function(s){var o=vr(s[0]),h={color2:"#BEFF82",type:"gradient"};h.type=="gradient"&&(h.angle="-180");var c=h.type=="gradient"?Qe("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,a=Qe("v:fill",c,h),f={on:"t",obscured:"t"};++fs,i=i.concat(["<v:shape"+zs({id:"_x0000_s"+fs,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(s[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",a,Qe("v:shadow",null,f),Qe("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Cr("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),Cr("x:AutoFill","False"),Cr("x:Row",String(o.r)),Cr("x:Column",String(o.c)),s[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function Zc(t,r,e,n){var i=Array.isArray(t),s;r.forEach(function(o){var h=vr(o.ref);if(i?(t[h.r]||(t[h.r]=[]),s=t[h.r][h.c]):s=t[o.ref],!s){s={t:"z"},i?t[h.r][h.c]=s:t[o.ref]=s;var c=Lt(t["!ref"]||"BDWGO1000001:A1");c.s.r>h.r&&(c.s.r=h.r),c.e.r<h.r&&(c.e.r=h.r),c.s.c>h.c&&(c.s.c=h.c),c.e.c<h.c&&(c.e.c=h.c);var a=Rt(c);a!==t["!ref"]&&(t["!ref"]=a)}s.c||(s.c=[]);var f={a:o.author,t:o.t,r:o.r,T:e};o.h&&(f.h=o.h);for(var l=s.c.length-1;l>=0;--l){if(!e&&s.c[l].T)return;e&&!s.c[l].T&&s.c.splice(l,1)}if(e&&n){for(l=0;l<n.length;++l)if(f.a==n[l].id){f.a=n[l].name||f.a;break}}s.c.push(f)})}function Ob(t,r){if(t.match(/<(?:\w+:)?comments *\/>/))return[];var e=[],n=[],i=t.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(o){if(!(o===""||o.trim()==="")){var h=o.match(/<(?:\w+:)?author[^>]*>(.*)/);h&&e.push(h[1])}});var s=t.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return s&&s[1]&&s[1].split(/<\/\w*:?comment>/).forEach(function(o){if(!(o===""||o.trim()==="")){var h=o.match(/<(?:\w+:)?comment[^>]*>/);if(h){var c=bt(h[0]),a={author:c.authorId&&e[c.authorId]||"sheetjsghost",ref:c.ref,guid:c.guid},f=vr(c.ref);if(!(r.sheetRows&&r.sheetRows<=f.r)){var l=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),u=!!l&&!!l[1]&&cl(l[1])||{r:"",t:"",h:""};a.r=u.r,u.r=="<t></t>"&&(u.t=u.h=""),a.t=(u.t||"").replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`),r.cellHTML&&(a.h=u.h),n.push(a)}}}}),n}function u0(t){var r=[fr,Qe("comments",null,{xmlns:Wi[0]})],e=[];return r.push("<authors>"),t.forEach(function(n){n[1].forEach(function(i){var s=$t(i.a);e.indexOf(s)==-1&&(e.push(s),r.push("<author>"+s+"</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,s=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=e.indexOf("tc="+n[1][0].ID):n[1].forEach(function(c){c.a&&(i=e.indexOf($t(c.a))),s.push(c.t||"")}),r.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),s.length<=1)r.push(Cr("t",$t(s[0]||"")));else{for(var o=`Comment:
|
||
`+s[0]+`
|
||
`,h=1;h<s.length;++h)o+=`Reply:
|
||
`+s[h]+`
|
||
`;r.push(Cr("t",$t(o)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function Ib(t,r){var e=[],n=!1,i={},s=0;return t.replace(jr,function(h,c){var a=bt(h);switch(Hn(a[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":i={author:a.personId,guid:a.id,ref:a.ref,T:1};break;case"</threadedComment>":i.t!=null&&e.push(i);break;case"<text>":case"<text":s=c+h.length;break;case"</text>":i.t=t.slice(s,c).replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`);break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&r.WTF)throw new Error("unrecognized "+a[0]+" in threaded comments")}return h}),e}function Db(t,r,e){var n=[fr,Qe("ThreadedComments",null,{xmlns:gr.TCMNT}).replace(/[\/]>/,">")];return t.forEach(function(i){var s="";(i[1]||[]).forEach(function(o,h){if(!o.T){delete o.ID;return}o.a&&r.indexOf(o.a)==-1&&r.push(o.a);var c={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+e.tcid++).slice(-12)+"}"};h==0?s=c.id:c.parentId=s,o.ID=c.id,o.a&&(c.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(o.a)).slice(-12)+"}"),n.push(Qe("threadedComment",Cr("text",o.t||""),c))})}),n.push("</ThreadedComments>"),n.join("")}function Nb(t,r){var e=[],n=!1;return t.replace(jr,function(s){var o=bt(s);switch(Hn(o[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":e.push({name:o.displayname,id:o.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&r.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return s}),e}function Pb(t){var r=[fr,Qe("personList",null,{xmlns:gr.TCMNT,"xmlns:x":Wi[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,n){r.push(Qe("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))}),r.push("</personList>"),r.join("")}function Bb(t){var r={};r.iauthor=t.read_shift(4);var e=Yi(t);return r.rfx=e.s,r.ref=yt(e.s),t.l+=16,r}function Lb(t,r){return r==null&&(r=We(36)),r.write_shift(4,t[1].iauthor),xs(t[0],r),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r}var jb=Pr;function Ub(t){return _r(t.slice(0,54))}function Hb(t,r){var e=[],n=[],i={},s=!1;return ni(t,function(h,c,a){switch(a){case 632:n.push(h);break;case 635:i=h;break;case 637:i.t=h.t,i.h=h.h,i.r=h.r;break;case 636:if(i.author=n[i.iauthor],delete i.iauthor,r.sheetRows&&i.rfx&&r.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,e.push(i);break;case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:break;case 38:break;default:if(!c.T){if(!s||r.WTF)throw new Error("Unexpected record 0x"+a.toString(16))}}}),e}function zb(t){var r=Jr(),e=[];return Ye(r,628),Ye(r,630),t.forEach(function(n){n[1].forEach(function(i){e.indexOf(i.a)>-1||(e.push(i.a.slice(0,54)),Ye(r,632,Ub(i.a)))})}),Ye(r,631),Ye(r,633),t.forEach(function(n){n[1].forEach(function(i){i.iauthor=e.indexOf(i.a);var s={s:vr(n[0]),e:vr(n[0])};Ye(r,635,Lb([s,i])),i.t&&i.t.length>0&&Ye(r,637,cg(i)),Ye(r,636),delete i.iauthor})}),Ye(r,634),Ye(r,629),r.end()}var $b="application/vnd.ms-office.vbaProject";function Wb(t){var r=ut.utils.cfb_new({root:"R"});return t.FullPaths.forEach(function(e,n){if(!(e.slice(-1)==="/"||!e.match(/_VBA_PROJECT_CUR/))){var i=e.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");ut.utils.cfb_add(r,i,t.FileIndex[n].content)}}),ut.write(r)}function Xb(t,r){r.FullPaths.forEach(function(e,n){if(n!=0){var i=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&ut.utils.cfb_add(t,i,r.FileIndex[n].content)}})}var d0=["xlsb","xlsm","xlam","biff8","xla"];function Vb(){return{"!type":"dialog"}}function Gb(){return{"!type":"dialog"}}function Kb(){return{"!type":"macro"}}function Yb(){return{"!type":"macro"}}var hs=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,s,o){var h=!1,c=!1;s.length==0?c=!0:s.charAt(0)=="["&&(c=!0,s=s.slice(1,-1)),o.length==0?h=!0:o.charAt(0)=="["&&(h=!0,o=o.slice(1,-1));var a=s.length>0?parseInt(s,10)|0:0,f=o.length>0?parseInt(o,10)|0:0;return h?f+=r.c:--f,c?a+=r.r:--a,i+(h?"":"$")+dr(f)+(c?"":"$")+Er(a)}return function(i,s){return r=s,i.replace(t,e)}}(),pl=/(^|[^._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,ml=function(){return function(r,e){return r.replace(pl,function(n,i,s,o,h,c){var a=bu(o)-(s?0:e.c),f=xu(c)-(h?0:e.r),l=f==0?"":h?f+1:"["+f+"]",u=a==0?"":s?a+1:"["+a+"]";return i+"R"+l+"C"+u})}}();function p0(t,r){return t.replace(pl,function(e,n,i,s,o,h){return n+(i=="$"?i+s:dr(bu(s)+r.c))+(o=="$"?o+h:Er(xu(h)+r.r))})}function Zb(t,r,e){var n=mn(r),i=n.s,s=vr(e),o={r:s.r-i.r,c:s.c-i.c};return p0(t,o)}function Jb(t){return t.length!=1}function Jc(t){return t.replace(/_xlfn\./g,"")}function lr(t){t.l+=1}function vi(t,r){var e=t.read_shift(r==1?1:2);return[e&16383,e>>14&1,e>>15&1]}function m0(t,r,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return g0(t);e.biff==12&&(n=4)}var i=t.read_shift(n),s=t.read_shift(n),o=vi(t,2),h=vi(t,2);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:s,c:h[0],cRel:h[1],rRel:h[2]}}}function g0(t){var r=vi(t,2),e=vi(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 Qb(t,r,e){if(e.biff<8)return g0(t);var n=t.read_shift(e.biff==12?4:2),i=t.read_shift(e.biff==12?4:2),s=vi(t,2),o=vi(t,2);return{s:{r:n,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function v0(t,r,e){if(e&&e.biff>=2&&e.biff<=5)return qb(t);var n=t.read_shift(e&&e.biff==12?4:2),i=vi(t,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function qb(t){var r=vi(t,2),e=t.read_shift(1);return{r:r[0],c:e,cRel:r[1],rRel:r[2]}}function ew(t){var r=t.read_shift(2),e=t.read_shift(2);return{r,c:e&255,fQuoted:!!(e&16384),cRel:e>>15,rRel:e>>15}}function tw(t,r,e){var n=e&&e.biff?e.biff:8;if(n>=2&&n<=5)return rw(t);var i=t.read_shift(n>=12?4:2),s=t.read_shift(2),o=(s&16384)>>14,h=(s&32768)>>15;if(s&=16383,h==1)for(;i>524287;)i-=1048576;if(o==1)for(;s>8191;)s=s-16384;return{r:i,c:s,cRel:o,rRel:h}}function rw(t){var r=t.read_shift(2),e=t.read_shift(1),n=(r&32768)>>15,i=(r&16384)>>14;return r&=16383,n==1&&r>=8192&&(r=r-16384),i==1&&e>=128&&(e=e-256),{r,c:e,cRel:i,rRel:n}}function nw(t,r,e){var n=(t[t.l++]&96)>>5,i=m0(t,e.biff>=2&&e.biff<=5?6:8,e);return[n,i]}function iw(t,r,e){var n=(t[t.l++]&96)>>5,i=t.read_shift(2,"i"),s=8;if(e)switch(e.biff){case 5:t.l+=12,s=6;break;case 12:s=12;break}var o=m0(t,s,e);return[n,i,o]}function sw(t,r,e){var n=(t[t.l++]&96)>>5;return t.l+=e&&e.biff>8?12:e.biff<8?6:8,[n]}function aw(t,r,e){var n=(t[t.l++]&96)>>5,i=t.read_shift(2),s=8;if(e)switch(e.biff){case 5:t.l+=12,s=6;break;case 12:s=12;break}return t.l+=s,[n,i]}function ow(t,r,e){var n=(t[t.l++]&96)>>5,i=Qb(t,r-1,e);return[n,i]}function fw(t,r,e){var n=(t[t.l++]&96)>>5;return t.l+=e.biff==2?6:e.biff==12?14:7,[n]}function Qc(t){var r=t[t.l+1]&1,e=1;return t.l+=4,[r,e]}function lw(t,r,e){t.l+=2;for(var n=t.read_shift(e&&e.biff==2?1:2),i=[],s=0;s<=n;++s)i.push(t.read_shift(e&&e.biff==2?1:2));return i}function cw(t,r,e){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(e&&e.biff==2?1:2)]}function hw(t,r,e){var n=t[t.l+1]&255?1:0;return t.l+=2,[n,t.read_shift(e&&e.biff==2?1:2)]}function uw(t){var r=t[t.l+1]&255?1:0;return t.l+=2,[r,t.read_shift(2)]}function dw(t,r,e){var n=t[t.l+1]&255?1:0;return t.l+=e&&e.biff==2?3:4,[n]}function x0(t){var r=t.read_shift(1),e=t.read_shift(1);return[r,e]}function pw(t){return t.read_shift(2),x0(t)}function mw(t){return t.read_shift(2),x0(t)}function gw(t,r,e){var n=(t[t.l]&96)>>5;t.l+=1;var i=v0(t,0,e);return[n,i]}function vw(t,r,e){var n=(t[t.l]&96)>>5;t.l+=1;var i=tw(t,0,e);return[n,i]}function xw(t,r,e){var n=(t[t.l]&96)>>5;t.l+=1;var i=t.read_shift(2);e&&e.biff==5&&(t.l+=12);var s=v0(t,0,e);return[n,i,s]}function bw(t,r,e){var n=(t[t.l]&96)>>5;t.l+=1;var i=t.read_shift(e&&e.biff<=3?1:2);return[_y[i],y0[i],n]}function ww(t,r,e){var n=t[t.l++],i=t.read_shift(1),s=e&&e.biff<=3?[n==88?-1:0,t.read_shift(1)]:yw(t);return[i,(s[0]===0?y0:yy)[s[1]]]}function yw(t){return[t[t.l+1]>>7,t.read_shift(2)&32767]}function _w(t,r,e){t.l+=e&&e.biff==2?3:4}function Ew(t,r,e){if(t.l++,e&&e.biff==12)return[t.read_shift(4,"i"),0];var n=t.read_shift(2),i=t.read_shift(e&&e.biff==2?1:2);return[n,i]}function Tw(t){return t.l++,ii[t.read_shift(1)]}function Sw(t){return t.l++,t.read_shift(2)}function kw(t){return t.l++,t.read_shift(1)!==0}function Cw(t){return t.l++,Nr(t)}function Aw(t,r,e){return t.l++,na(t,r-1,e)}function Fw(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;break}switch(e[0]){case 4:e[1]=sr(t,1)?"TRUE":"FALSE",r!=12&&(t.l+=7);break;case 37:case 16:e[1]=ii[t[t.l]],t.l+=r==12?4:8;break;case 0:t.l+=8;break;case 1:e[1]=Nr(t);break;case 2:e[1]=Zi(t,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function Rw(t,r,e){for(var n=t.read_shift(e.biff==12?4:2),i=[],s=0;s!=n;++s)i.push((e.biff==12?Yi:bo)(t));return i}function Mw(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 s=0,o=[];s!=n&&(o[s]=[]);++s)for(var h=0;h!=i;++h)o[s][h]=Fw(t,e.biff);return o}function Ow(t,r,e){var n=t.read_shift(1)>>>5&3,i=!e||e.biff>=8?4:2,s=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;break}return[n,0,s]}function Iw(t,r,e){if(e.biff==5)return Dw(t);var n=t.read_shift(1)>>>5&3,i=t.read_shift(2),s=t.read_shift(4);return[n,i,s]}function Dw(t){var r=t.read_shift(1)>>>5&3,e=t.read_shift(2,"i");t.l+=8;var n=t.read_shift(2);return t.l+=12,[r,e,n]}function Nw(t,r,e){var n=t.read_shift(1)>>>5&3;t.l+=e&&e.biff==2?3:4;var i=t.read_shift(e&&e.biff==2?1:2);return[n,i]}function Pw(t,r,e){var n=t.read_shift(1)>>>5&3,i=t.read_shift(e&&e.biff==2?1:2);return[n,i]}function Bw(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]}function Lw(t,r,e){var n=(t[t.l++]&96)>>5,i=t.read_shift(2),s=4;if(e)switch(e.biff){case 5:s=15;break;case 12:s=6;break}return t.l+=s,[n,i]}var jw=Lr,Uw=Lr,Hw=Lr;function sa(t,r,e){return t.l+=2,[ew(t)]}function gl(t){return t.l+=6,[]}var zw=sa,$w=gl,Ww=gl,Xw=sa;function b0(t){return t.l+=2,[hr(t),t.read_shift(2)&1]}var Vw=sa,Gw=b0,Kw=gl,Yw=sa,Zw=sa,Jw=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function Qw(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),s=t.read_shift(2),o=Jw[e>>2&31];return{ixti:r,coltype:e&3,rt:o,idx:n,c:i,C:s}}function qw(t){return t.l+=2,[t.read_shift(4)]}function ey(t,r,e){return t.l+=5,t.l+=2,t.l+=e.biff==2?1:4,["PTGSHEET"]}function ty(t,r,e){return t.l+=e.biff==2?4:5,["PTGENDSHEET"]}function ry(t){var r=t.read_shift(1)>>>5&3,e=t.read_shift(2);return[r,e]}function ny(t){var r=t.read_shift(1)>>>5&3,e=t.read_shift(2);return[r,e]}function iy(t){return t.l+=4,[0,0]}var qc={1:{n:"PtgExp",f:Ew},2:{n:"PtgTbl",f:Hw},3:{n:"PtgAdd",f:lr},4:{n:"PtgSub",f:lr},5:{n:"PtgMul",f:lr},6:{n:"PtgDiv",f:lr},7:{n:"PtgPower",f:lr},8:{n:"PtgConcat",f:lr},9:{n:"PtgLt",f:lr},10:{n:"PtgLe",f:lr},11:{n:"PtgEq",f:lr},12:{n:"PtgGe",f:lr},13:{n:"PtgGt",f:lr},14:{n:"PtgNe",f:lr},15:{n:"PtgIsect",f:lr},16:{n:"PtgUnion",f:lr},17:{n:"PtgRange",f:lr},18:{n:"PtgUplus",f:lr},19:{n:"PtgUminus",f:lr},20:{n:"PtgPercent",f:lr},21:{n:"PtgParen",f:lr},22:{n:"PtgMissArg",f:lr},23:{n:"PtgStr",f:Aw},26:{n:"PtgSheet",f:ey},27:{n:"PtgEndSheet",f:ty},28:{n:"PtgErr",f:Tw},29:{n:"PtgBool",f:kw},30:{n:"PtgInt",f:Sw},31:{n:"PtgNum",f:Cw},32:{n:"PtgArray",f:fw},33:{n:"PtgFunc",f:bw},34:{n:"PtgFuncVar",f:ww},35:{n:"PtgName",f:Ow},36:{n:"PtgRef",f:gw},37:{n:"PtgArea",f:nw},38:{n:"PtgMemArea",f:Nw},39:{n:"PtgMemErr",f:jw},40:{n:"PtgMemNoMem",f:Uw},41:{n:"PtgMemFunc",f:Pw},42:{n:"PtgRefErr",f:Bw},43:{n:"PtgAreaErr",f:sw},44:{n:"PtgRefN",f:vw},45:{n:"PtgAreaN",f:ow},46:{n:"PtgMemAreaN",f:ry},47:{n:"PtgMemNoMemN",f:ny},57:{n:"PtgNameX",f:Iw},58:{n:"PtgRef3d",f:xw},59:{n:"PtgArea3d",f:iw},60:{n:"PtgRefErr3d",f:Lw},61:{n:"PtgAreaErr3d",f:aw},255:{}},sy={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},ay={1:{n:"PtgElfLel",f:b0},2:{n:"PtgElfRw",f:Yw},3:{n:"PtgElfCol",f:zw},6:{n:"PtgElfRwV",f:Zw},7:{n:"PtgElfColV",f:Xw},10:{n:"PtgElfRadical",f:Vw},11:{n:"PtgElfRadicalS",f:Kw},13:{n:"PtgElfColS",f:$w},15:{n:"PtgElfColSV",f:Ww},16:{n:"PtgElfRadicalLel",f:Gw},25:{n:"PtgList",f:Qw},29:{n:"PtgSxName",f:qw},255:{}},oy={0:{n:"PtgAttrNoop",f:iy},1:{n:"PtgAttrSemi",f:dw},2:{n:"PtgAttrIf",f:hw},4:{n:"PtgAttrChoose",f:lw},8:{n:"PtgAttrGoto",f:cw},16:{n:"PtgAttrSum",f:_w},32:{n:"PtgAttrBaxcel",f:Qc},33:{n:"PtgAttrBaxcel",f:Qc},64:{n:"PtgAttrSpace",f:pw},65:{n:"PtgAttrSpaceSemi",f:mw},128:{n:"PtgAttrIfError",f:uw},255:{}};function aa(t,r,e,n){if(n.biff<8)return Lr(t,r);for(var i=t.l+r,s=[],o=0;o!==e.length;++o)switch(e[o][0]){case"PtgArray":e[o][1]=Mw(t,0,n),s.push(e[o][1]);break;case"PtgMemArea":e[o][2]=Rw(t,e[o][1],n),s.push(e[o][2]);break;case"PtgExp":n&&n.biff==12&&(e[o][1][1]=t.read_shift(4),s.push(e[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+e[o][0]}return r=i-t.l,r!==0&&s.push(Lr(t,r)),s}function oa(t,r,e){for(var n=t.l+r,i,s,o=[];n!=t.l;)r=n-t.l,s=t[t.l],i=qc[s]||qc[sy[s]],(s===24||s===25)&&(i=(s===24?ay:oy)[t[t.l+1]]),!i||!i.f?Lr(t,r):o.push([i.n,i.f(t,r,e)]);return o}function fy(t){for(var r=[],e=0;e<t.length;++e){for(var n=t[e],i=[],s=0;s<n.length;++s){var o=n[s];if(o)switch(o[0]){case 2:i.push('"'+o[1].replace(/"/g,'""')+'"');break;default:i.push(o[1])}else i.push("")}r.push(i.join(","))}return r.join(";")}var ly={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function cy(t,r){if(!t&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(t)?"'"+t+"'":t}function w0(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];case 355: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(s){return s.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 eh(t,r,e){var n=w0(t,r,e);return n=="#REF"?n:cy(n,e)}function Ir(t,r,e,n,i){var s=i&&i.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},h=[],c,a,f,l=0,u=0,p,m="";if(!t[0]||!t[0][0])return"";for(var d=-1,v="",x=0,g=t[0].length;x<g;++x){var b=t[0][x];switch(b[0]){case"PtgUminus":h.push("-"+h.pop());break;case"PtgUplus":h.push("+"+h.pop());break;case"PtgPercent":h.push(h.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=h.pop(),a=h.pop(),d>=0){switch(t[0][d][1][0]){case 0:v=tr(" ",t[0][d][1][1]);break;case 1:v=tr("\r",t[0][d][1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][d][1][0])}a=a+v,d=-1}h.push(a+ly[b[0]]+c);break;case"PtgIsect":c=h.pop(),a=h.pop(),h.push(a+" "+c);break;case"PtgUnion":c=h.pop(),a=h.pop(),h.push(a+","+c);break;case"PtgRange":c=h.pop(),a=h.pop(),h.push(a+":"+c);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":f=Ms(b[1][1],o,i),h.push(Os(f,s));break;case"PtgRefN":f=e?Ms(b[1][1],e,i):b[1][1],h.push(Os(f,s));break;case"PtgRef3d":l=b[1][1],f=Ms(b[1][2],o,i),m=eh(n,l,i),h.push(m+"!"+Os(f,s));break;case"PtgFunc":case"PtgFuncVar":var w=b[1][0],y=b[1][1];w||(w=0),w&=127;var T=w==0?[]:h.slice(-w);h.length-=w,y==="User"&&(y=T.shift()),h.push(y+"("+T.join(",")+")");break;case"PtgBool":h.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":h.push(b[1]);break;case"PtgNum":h.push(String(b[1]));break;case"PtgStr":h.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":h.push(b[1]);break;case"PtgAreaN":p=Fc(b[1][1],e?{s:e}:o,i),h.push(Xo(p,i));break;case"PtgArea":p=Fc(b[1][1],o,i),h.push(Xo(p,i));break;case"PtgArea3d":l=b[1][1],p=b[1][2],m=eh(n,l,i),h.push(m+"!"+Xo(p,i));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":u=b[1][2];var C=(n.names||[])[u-1]||(n[0]||[])[u],M=C?C.Name:"SH33TJSNAME"+String(u);M&&M.slice(0,6)=="_xlfn."&&!i.xlfn&&(M=M.slice(6)),h.push(M);break;case"PtgNameX":var I=b[1][1];u=b[1][2];var B;if(i.biff<=5)I<0&&(I=-I),n[I]&&(B=n[I][u]);else{var U="";if(((n[I]||[])[0]||[])[0]==14849||(((n[I]||[])[0]||[])[0]==1025?n[I][u]&&n[I][u].itab>0&&(U=n.SheetNames[n[I][u].itab-1]+"!"):U=n.SheetNames[u-1]+"!"),n[I]&&n[I][u])U+=n[I][u].Name;else if(n[0]&&n[0][u])U+=n[0][u].Name;else{var j=(w0(n,I,i)||"").split(";;");j[u-1]?U=j[u-1]:U+="SH33TJSERRX"}h.push(U);break}B||(B={Name:"SH33TJSERRY"}),h.push(B.Name);break;case"PtgParen":var H="(",G=")";if(d>=0){switch(v="",t[0][d][1][0]){case 2:H=tr(" ",t[0][d][1][1])+H;break;case 3:H=tr("\r",t[0][d][1][1])+H;break;case 4:G=tr(" ",t[0][d][1][1])+G;break;case 5:G=tr("\r",t[0][d][1][1])+G;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][d][1][0])}d=-1}h.push(H+h.pop()+G);break;case"PtgRefErr":h.push("#REF!");break;case"PtgRefErr3d":h.push("#REF!");break;case"PtgExp":f={c:b[1][1],r:b[1][0]};var L={c:e.c,r:e.r};if(n.sharedf[yt(f)]){var R=n.sharedf[yt(f)];h.push(Ir(R,o,L,n,i))}else{var F=!1;for(c=0;c!=n.arrayf.length;++c)if(a=n.arrayf[c],!(f.c<a[0].s.c||f.c>a[0].e.c)&&!(f.r<a[0].s.r||f.r>a[0].e.r)){h.push(Ir(a[1],o,L,n,i)),F=!0;break}F||h.push(b[1])}break;case"PtgArray":h.push("{"+fy(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":d=x;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":h.push("");break;case"PtgAreaErr":h.push("#REF!");break;case"PtgAreaErr3d":h.push("#REF!");break;case"PtgList":h.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":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");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var _=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&d>=0&&_.indexOf(t[0][x][0])==-1){b=t[0][d];var k=!0;switch(b[1][0]){case 4:k=!1;case 0:v=tr(" ",b[1][1]);break;case 5:k=!1;case 1:v=tr("\r",b[1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}h.push((k?v:"")+h.pop()+(k?"":v)),d=-1}}if(h.length>1&&i.WTF)throw new Error("bad formula stack");return h[0]}function hy(t,r,e){var n=t.l+r,i=e.biff==2?1:2,s,o=t.read_shift(i);if(o==65535)return[[],Lr(t,r-2)];var h=oa(t,o,e);return r!==o+i&&(s=aa(t,r-o-i,h,e)),t.l=n,[h,s]}function uy(t,r,e){var n=t.l+r,i=e.biff==2?1:2,s,o=t.read_shift(i);if(o==65535)return[[],Lr(t,r-2)];var h=oa(t,o,e);return r!==o+i&&(s=aa(t,r-o-i,h,e)),t.l=n,[h,s]}function dy(t,r,e,n){var i=t.l+r,s=oa(t,n,e),o;return i!==t.l&&(o=aa(t,i-t.l,s,e)),[s,o]}function py(t,r,e){var n=t.l+r,i,s=t.read_shift(2),o=oa(t,s,e);return s==65535?[[],Lr(t,r-2)]:(r!==s+2&&(i=aa(t,n-s-2,o,e)),[o,i])}function my(t){var r;if(Zn(t,t.l+6)!==65535)return[Nr(t),"n"];switch(t[t.l]){case 0:return t.l+=8,["String","s"];case 1:return r=t[t.l+2]===1,t.l+=8,[r,"b"];case 2:return r=t[t.l+2],t.l+=8,[r,"e"];case 3:return t.l+=8,["","s"]}return[]}function gy(t){if(t==null){var r=We(8);return r.write_shift(1,3),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,65535),r}else if(typeof t=="number")return Ui(t);return Ui(0)}function Zo(t,r,e){var n=t.l+r,i=zn(t);e.biff==2&&++t.l;var s=my(t),o=t.read_shift(1);e.biff!=2&&(t.read_shift(1),e.biff>=5&&t.read_shift(4));var h=uy(t,n-t.l,e);return{cell:i,val:s[0],formula:h,shared:o>>3&1,tt:s[1]}}function vy(t,r,e,n,i){var s=zi(r,e,i),o=gy(t.v),h=We(6),c=33;h.write_shift(2,c),h.write_shift(4,0);for(var a=We(t.bf.length),f=0;f<t.bf.length;++f)a[f]=t.bf[f];var l=yr([s,o,h,a]);return l}function wo(t,r,e){var n=t.read_shift(4),i=oa(t,n,e),s=t.read_shift(4),o=s>0?aa(t,s,i,e):null;return[i,o]}var xy=wo,yo=wo,by=wo,wy=wo,yy={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"},y0={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"},_y={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 th(t){return t.slice(0,3)=="of:"&&(t=t.slice(3)),t.charCodeAt(0)==61&&(t=t.slice(1),t.charCodeAt(0)==61&&(t=t.slice(1))),t=t.replace(/COM\.MICROSOFT\./g,""),t=t.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(r,e){return e.replace(/\./g,"")}),t=t.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),t.replace(/[;~]/g,",").replace(/\|/g,";")}function Ey(t){var r="of:="+t.replace(pl,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function Jo(t){var r=t.split(":"),e=r[0].split(".")[0];return[e,r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}function Ty(t){return t.replace(/\./,"!")}var Ds={},us={},Ns=typeof Map<"u";function vl(t,r,e){var n=0,i=t.length;if(e){if(Ns?e.has(r):Object.prototype.hasOwnProperty.call(e,r)){for(var s=Ns?e.get(r):e[r];n<s.length;++n)if(t[s[n]].t===r)return t.Count++,s[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&&(Ns?(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 _o(t,r){var e={min:t+1,max:t+1},n=-1;return r.MDW&&(Dr=r.MDW),r.width!=null?e.customWidth=1:r.wpx!=null?n=Gs(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(e.width=co(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 Pi(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 wi(t,r,e){var n=e.revssf[r.z!=null?r.z:"General"],i=60,s=t.length;if(n==null&&e.ssf){for(;i<392;++i)if(e.ssf[i]==null){Qn(r.z,i),e.ssf[i]=r.z,e.revssf[r.z]=n=i;break}}for(i=0;i!=s;++i)if(t[i].numFmtId===n)return i;return t[s]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},s}function _0(t,r,e,n,i,s){try{n.cellNF&&(t.z=xt[r])}catch(h){if(n.WTF)throw h}if(!(t.t==="z"&&!n.cellStyles)){if(t.t==="d"&&typeof t.v=="string"&&(t.v=qt(t.v)),(!n||n.cellText!==!1)&&t.t!=="z")try{if(xt[r]==null&&Qn(ym[r]||"General",r),t.t==="e")t.w=t.w||ii[t.v];else if(r===0)if(t.t==="n")(t.v|0)===t.v?t.w=t.v.toString(10):t.w=js(t.v);else if(t.t==="d"){var o=Ar(t.v);(o|0)===o?t.w=o.toString(10):t.w=js(o)}else{if(t.v===void 0)return"";t.w=Li(t.v,us)}else t.t==="d"?t.w=pn(r,Ar(t.v),us):t.w=pn(r,t.v,us)}catch(h){if(n.WTF)throw h}if(n.cellStyles&&e!=null)try{t.s=s.Fills[e],t.s.fgColor&&t.s.fgColor.theme&&!t.s.fgColor.rgb&&(t.s.fgColor.rgb=lo(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=lo(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(h){if(n.WTF&&s.Fills)throw h}}}function Sy(t,r,e){if(t&&t["!ref"]){var n=Lt(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+e+"): "+t["!ref"])}}function ky(t,r){var e=Lt(r);e.s.r<=e.e.r&&e.s.c<=e.e.c&&e.s.r>=0&&e.s.c>=0&&(t["!ref"]=Rt(e))}var Cy=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Ay=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Fy=/<(?:\w:)?hyperlink [^>]*>/mg,Ry=/"(\w*:\w*)"/,My=/<(?:\w:)?col\b[^>]*[\/]?>/g,Oy=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,Iy=/<(?:\w:)?pageMargins[^>]*\/>/g,E0=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Dy=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Ny=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Py(t,r,e,n,i,s,o){if(!t)return t;n||(n={"!id":{}});var h=r.dense?[]:{},c={s:{r:2e6,c:2e6},e:{r:0,c:0}},a="",f="",l=t.match(Ay);l?(a=t.slice(0,l.index),f=t.slice(l.index+l[0].length)):a=f=t;var u=a.match(E0);u?xl(u[0],h,i,e):(u=a.match(Dy))&&Ly(u[0],u[1]||"",h,i,e);var p=(a.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(p>0){var m=a.slice(p,p+50).match(Ry);m&&ky(h,m[1])}var d=a.match(Ny);d&&d[1]&&Jy(d[1],i);var v=[];if(r.cellStyles){var x=a.match(My);x&&Vy(v,x)}l&&e_(l[1],h,r,c,s,o);var g=f.match(Oy);g&&(h["!autofilter"]=Ky(g[0]));var b=[],w=f.match(Cy);if(w)for(p=0;p!=w.length;++p)b[p]=Lt(w[p].slice(w[p].indexOf('"')+1));var y=f.match(Fy);y&&$y(h,y,n);var T=f.match(Iy);if(T&&(h["!margins"]=Wy(bt(T[0]))),!h["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(h["!ref"]=Rt(c)),r.sheetRows>0&&h["!ref"]){var C=Lt(h["!ref"]);r.sheetRows<=+C.e.r&&(C.e.r=r.sheetRows-1,C.e.r>c.e.r&&(C.e.r=c.e.r),C.e.r<C.s.r&&(C.s.r=C.e.r),C.e.c>c.e.c&&(C.e.c=c.e.c),C.e.c<C.s.c&&(C.s.c=C.e.c),h["!fullref"]=h["!ref"],h["!ref"]=Rt(C))}return v.length>0&&(h["!cols"]=v),b.length>0&&(h["!merges"]=b),h}function By(t){if(t.length===0)return"";for(var r='<mergeCells count="'+t.length+'">',e=0;e!=t.length;++e)r+='<mergeCell ref="'+Rt(t[e])+'"/>';return r+"</mergeCells>"}function xl(t,r,e,n){var i=bt(t);e.Sheets[n]||(e.Sheets[n]={}),i.codeName&&(e.Sheets[n].CodeName=Pt(Wt(i.codeName)))}function Ly(t,r,e,n,i){xl(t.slice(0,t.indexOf(">")),e,n,i)}function jy(t,r,e,n,i){var s=!1,o={},h=null;if(n.bookType!=="xlsx"&&r.vbaraw){var c=r.SheetNames[e];try{r.Workbook&&(c=r.Workbook.Sheets[e].CodeName||c)}catch{}s=!0,o.codeName=Ln($t(c))}if(t&&t["!outline"]){var a={summaryBelow:1,summaryRight:1};t["!outline"].above&&(a.summaryBelow=0),t["!outline"].left&&(a.summaryRight=0),h=(h||"")+Qe("outlinePr",null,a)}!s&&!h||(i[i.length]=Qe("sheetPr",h,o))}var Uy=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Hy=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function zy(t){var r={sheet:1};return Uy.forEach(function(e){t[e]!=null&&t[e]&&(r[e]="1")}),Hy.forEach(function(e){t[e]!=null&&!t[e]&&(r[e]="0")}),t.password&&(r.password=hl(t.password).toString(16).toUpperCase()),Qe("sheetProtection",null,r)}function $y(t,r,e){for(var n=Array.isArray(t),i=0;i!=r.length;++i){var s=bt(Wt(r[i]),!0);if(!s.ref)return;var o=((e||{})["!id"]||[])[s.id];o?(s.Target=o.Target,s.location&&(s.Target+="#"+Pt(s.location))):(s.Target="#"+Pt(s.location),o={Target:s.Target,TargetMode:"Internal"}),s.Rel=o,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var h=Lt(s.ref),c=h.s.r;c<=h.e.r;++c)for(var a=h.s.c;a<=h.e.c;++a){var f=yt({c:a,r:c});n?(t[c]||(t[c]=[]),t[c][a]||(t[c][a]={t:"z",v:void 0}),t[c][a].l=s):(t[f]||(t[f]={t:"z",v:void 0}),t[f].l=s)}}}function Wy(t){var r={};return["left","right","top","bottom","header","footer"].forEach(function(e){t[e]&&(r[e]=parseFloat(t[e]))}),r}function Xy(t){return Pi(t),Qe("pageMargins",null,t)}function Vy(t,r){for(var e=!1,n=0;n!=r.length;++n){var i=bt(r[n],!0);i.hidden&&(i.hidden=Yt(i.hidden));var s=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,!e&&i.width&&(e=!0,ul(i.width)),gi(i);s<=o;)t[s++]=Zt(i)}}function Gy(t,r){for(var e=["<cols>"],n,i=0;i!=r.length;++i)(n=r[i])&&(e[e.length]=Qe("col",null,_o(i,n)));return e[e.length]="</cols>",e.join("")}function Ky(t){var r={ref:(t.match(/ref="([^"]*)"/)||[])[1]};return r}function Yy(t,r,e,n){var i=typeof t.ref=="string"?t.ref:Rt(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var s=e.Workbook.Names,o=mn(i);o.s.r==o.e.r&&(o.e.r=mn(r["!ref"]).e.r,i=Rt(o));for(var h=0;h<s.length;++h){var c=s[h];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+e.SheetNames[n]+"'!"+i;break}}return h==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+e.SheetNames[n]+"'!"+i}),Qe("autoFilter",null,{ref:i})}var Zy=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function Jy(t,r){r.Views||(r.Views=[{}]),(t.match(Zy)||[]).forEach(function(e,n){var i=bt(e);r.Views[n]||(r.Views[n]={}),+i.zoomScale&&(r.Views[n].zoom=+i.zoomScale),Yt(i.rightToLeft)&&(r.Views[n].RTL=!0)})}function Qy(t,r,e,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Qe("sheetViews",Qe("sheetView",null,i),{})}function qy(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="",s=t.t,o=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=ii[t.v];break;case"d":n&&n.cellDates?i=qt(t.v,-1).toISOString():(t=Zt(t),t.t="n",i=""+(t.v=Ar(qt(t.v)))),typeof t.z>"u"&&(t.z=xt[14]);break;default:i=t.v;break}var h=Cr("v",$t(i)),c={r},a=wi(n.cellXfs,t,n);switch(a!==0&&(c.s=a),t.t){case"n":break;case"d":c.t="d";break;case"b":c.t="b";break;case"e":c.t="e";break;case"z":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){h=Cr("v",""+vl(n.Strings,t.v,n.revStrings)),c.t="s";break}c.t="str";break}if(t.t!=s&&(t.t=s,t.v=o),typeof t.f=="string"&&t.f){var f=t.F&&t.F.slice(0,r.length)==r?{t:"array",ref:t.F}:null;h=Qe("f",$t(t.f),f)+(t.v!=null?h:"")}return t.l&&e["!links"].push([r,t.l]),t.D&&(c.cm=1),Qe("c",h,c)}var e_=function(){var t=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/,e=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,s=Hs("v"),o=Hs("f");return function(c,a,f,l,u,p){for(var m=0,d="",v=[],x=[],g=0,b=0,w=0,y="",T,C,M=0,I=0,B,U,j=0,H=0,G=Array.isArray(p.CellXf),L,R=[],F=[],_=Array.isArray(a),k=[],N={},P=!1,D=!!f.sheetStubs,A=c.split(r),S=0,E=A.length;S!=E;++S){d=A[S].trim();var O=d.length;if(O!==0){var z=0;e:for(m=0;m<O;++m)switch(d[m]){case">":if(d[m-1]!="/"){++m;break e}if(f&&f.cellStyles){if(C=bt(d.slice(z,m),!0),M=C.r!=null?parseInt(C.r,10):M+1,I=-1,f.sheetRows&&f.sheetRows<M)continue;N={},P=!1,C.ht&&(P=!0,N.hpt=parseFloat(C.ht),N.hpx=ps(N.hpt)),C.hidden=="1"&&(P=!0,N.hidden=!0),C.outlineLevel!=null&&(P=!0,N.level=+C.outlineLevel),P&&(k[M-1]=N)}break;case"<":z=m;break}if(z>=m)break;if(C=bt(d.slice(z,m),!0),M=C.r!=null?parseInt(C.r,10):M+1,I=-1,!(f.sheetRows&&f.sheetRows<M)){l.s.r>M-1&&(l.s.r=M-1),l.e.r<M-1&&(l.e.r=M-1),f&&f.cellStyles&&(N={},P=!1,C.ht&&(P=!0,N.hpt=parseFloat(C.ht),N.hpx=ps(N.hpt)),C.hidden=="1"&&(P=!0,N.hidden=!0),C.outlineLevel!=null&&(P=!0,N.level=+C.outlineLevel),P&&(k[M-1]=N)),v=d.slice(m).split(t);for(var J=0;J!=v.length&&v[J].trim().charAt(0)=="<";++J);for(v=v.slice(J),m=0;m!=v.length;++m)if(d=v[m].trim(),d.length!==0){if(x=d.match(e),g=m,b=0,w=0,d="<c "+(d.slice(0,1)=="<"?">":"")+d,x!=null&&x.length===2){for(g=0,y=x[1],b=0;b!=y.length&&!((w=y.charCodeAt(b)-64)<1||w>26);++b)g=26*g+w;--g,I=g}else++I;for(b=0;b!=d.length&&d.charCodeAt(b)!==62;++b);if(++b,C=bt(d.slice(0,b),!0),C.r||(C.r=yt({r:M-1,c:I})),y=d.slice(b),T={t:""},(x=y.match(s))!=null&&x[1]!==""&&(T.v=Pt(x[1])),f.cellFormula){if((x=y.match(o))!=null&&x[1]!==""){if(T.f=Pt(Wt(x[1])).replace(/\r\n/g,`
|
||
`),f.xlfn||(T.f=Jc(T.f)),x[0].indexOf('t="array"')>-1)T.F=(y.match(i)||[])[1],T.F.indexOf(":")>-1&&R.push([Lt(T.F),T.F]);else if(x[0].indexOf('t="shared"')>-1){U=bt(x[0]);var re=Pt(Wt(x[1]));f.xlfn||(re=Jc(re)),F[parseInt(U.si,10)]=[U,re,C.r]}}else(x=y.match(/<f[^>]*\/>/))&&(U=bt(x[0]),F[U.si]&&(T.f=Zb(F[U.si][1],F[U.si][2],C.r)));var se=vr(C.r);for(b=0;b<R.length;++b)se.r>=R[b][0].s.r&&se.r<=R[b][0].e.r&&se.c>=R[b][0].s.c&&se.c<=R[b][0].e.c&&(T.F=R[b][1])}if(C.t==null&&T.v===void 0)if(T.f||T.F)T.v=0,T.t="n";else if(D)T.t="z";else continue;else T.t=C.t||"n";switch(l.s.c>I&&(l.s.c=I),l.e.c<I&&(l.e.c=I),T.t){case"n":if(T.v==""||T.v==null){if(!D)continue;T.t="z"}else T.v=parseFloat(T.v);break;case"s":if(typeof T.v>"u"){if(!D)continue;T.t="z"}else B=Ds[parseInt(T.v,10)],T.v=B.t,T.r=B.r,f.cellHTML&&(T.h=B.h);break;case"str":T.t="s",T.v=T.v!=null?Wt(T.v):"",f.cellHTML&&(T.h=Qf(T.v));break;case"inlineStr":x=y.match(n),T.t="s",x!=null&&(B=cl(x[1]))?(T.v=B.t,f.cellHTML&&(T.h=B.h)):T.v="";break;case"b":T.v=Yt(T.v);break;case"d":f.cellDates?T.v=qt(T.v,1):(T.v=Ar(qt(T.v,1)),T.t="n");break;case"e":(!f||f.cellText!==!1)&&(T.w=T.v),T.v=Su[T.v];break}if(j=H=0,L=null,G&&C.s!==void 0&&(L=p.CellXf[C.s],L!=null&&(L.numFmtId!=null&&(j=L.numFmtId),f.cellStyles&&L.fillId!=null&&(H=L.fillId))),_0(T,j,H,f,u,p),f.cellDates&&G&&T.t=="n"&&gs(xt[j])&&(T.t="d",T.v=xo(T.v)),C.cm&&f.xlmeta){var Ce=(f.xlmeta.Cell||[])[+C.cm-1];Ce&&Ce.type=="XLDAPR"&&(T.D=!0)}if(_){var Y=vr(C.r);a[Y.r]||(a[Y.r]=[]),a[Y.r][Y.c]=T}else a[C.r]=T}}}}k.length>0&&(a["!rows"]=k)}}();function t_(t,r,e,n){var i=[],s=[],o=Lt(t["!ref"]),h="",c,a="",f=[],l=0,u=0,p=t["!rows"],m=Array.isArray(t),d={r:a},v,x=-1;for(u=o.s.c;u<=o.e.c;++u)f[u]=dr(u);for(l=o.s.r;l<=o.e.r;++l){for(s=[],a=Er(l),u=o.s.c;u<=o.e.c;++u){c=f[u]+a;var g=m?(t[l]||[])[u]:t[c];g!==void 0&&(h=qy(g,c,t,r))!=null&&s.push(h)}(s.length>0||p&&p[l])&&(d={r:a},p&&p[l]&&(v=p[l],v.hidden&&(d.hidden=1),x=-1,v.hpx?x=Ks(v.hpx):v.hpt&&(x=v.hpt),x>-1&&(d.ht=x,d.customHeight=1),v.level&&(d.outlineLevel=v.level)),i[i.length]=Qe("row",s.join(""),d))}if(p)for(;l<p.length;++l)p&&p[l]&&(d={r:l+1},v=p[l],v.hidden&&(d.hidden=1),x=-1,v.hpx?x=Ks(v.hpx):v.hpt&&(x=v.hpt),x>-1&&(d.ht=x,d.customHeight=1),v.level&&(d.outlineLevel=v.level),i[i.length]=Qe("row","",d));return i.join("")}function T0(t,r,e,n){var i=[fr,Qe("worksheet",null,{xmlns:Wi[0],"xmlns:r":gr.r})],s=e.SheetNames[t],o=0,h="",c=e.Sheets[s];c==null&&(c={});var a=c["!ref"]||"A1",f=Lt(a);if(f.e.c>16383||f.e.r>1048575){if(r.WTF)throw new Error("Range "+a+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),a=Rt(f)}n||(n={}),c["!comments"]=[];var l=[];jy(c,e,t,r,i),i[i.length]=Qe("dimension",null,{ref:a}),i[i.length]=Qy(c,r,t,e),r.sheetFormat&&(i[i.length]=Qe("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),c["!cols"]!=null&&c["!cols"].length>0&&(i[i.length]=Gy(c,c["!cols"])),i[o=i.length]="<sheetData/>",c["!links"]=[],c["!ref"]!=null&&(h=t_(c,r),h.length>0&&(i[i.length]=h)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),c["!protect"]&&(i[i.length]=zy(c["!protect"])),c["!autofilter"]!=null&&(i[i.length]=Yy(c["!autofilter"],c,e,t)),c["!merges"]!=null&&c["!merges"].length>0&&(i[i.length]=By(c["!merges"]));var u=-1,p,m=-1;return c["!links"].length>0&&(i[i.length]="<hyperlinks>",c["!links"].forEach(function(d){d[1].Target&&(p={ref:d[0]},d[1].Target.charAt(0)!="#"&&(m=zt(n,-1,$t(d[1].Target).replace(/#.*$/,""),Ft.HLINK),p["r:id"]="rId"+m),(u=d[1].Target.indexOf("#"))>-1&&(p.location=$t(d[1].Target.slice(u+1))),d[1].Tooltip&&(p.tooltip=$t(d[1].Tooltip)),i[i.length]=Qe("hyperlink",null,p))}),i[i.length]="</hyperlinks>"),delete c["!links"],c["!margins"]!=null&&(i[i.length]=Xy(c["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(i[i.length]=Cr("ignoredErrors",Qe("ignoredError",null,{numberStoredAsText:1,sqref:a}))),l.length>0&&(m=zt(n,-1,"../drawings/drawing"+(t+1)+".xml",Ft.DRAW),i[i.length]=Qe("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=l),c["!comments"].length>0&&(m=zt(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Ft.VML),i[i.length]=Qe("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function r_(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 s=t.read_shift(1);return t.l=n,s&7&&(e.level=s&7),s&16&&(e.hidden=!0),s&32&&(e.hpt=i/20),e}function n_(t,r,e){var n=We(145),i=(e["!rows"]||[])[t]||{};n.write_shift(4,t),n.write_shift(4,0);var s=320;i.hpx?s=Ks(i.hpx)*20:i.hpt&&(s=i.hpt*20),n.write_shift(2,s),n.write_shift(1,0);var o=0;i.level&&(o|=i.level),i.hidden&&(o|=16),(i.hpx||i.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var h=0,c=n.l;n.l+=4;for(var a={r:t,c:0},f=0;f<16;++f)if(!(r.s.c>f+1<<10||r.e.c<f<<10)){for(var l=-1,u=-1,p=f<<10;p<f+1<<10;++p){a.c=p;var m=Array.isArray(e)?(e[a.r]||[])[a.c]:e[yt(a)];m&&(l<0&&(l=p),u=p)}l<0||(++h,n.write_shift(4,l),n.write_shift(4,u))}var d=n.l;return n.l=c,n.write_shift(4,h),n.l=d,n.length>n.l?n.slice(0,n.l):n}function i_(t,r,e,n){var i=n_(n,e,r);(i.length>17||(r["!rows"]||[])[n])&&Ye(t,0,i)}var s_=Yi,a_=xs;function o_(){}function f_(t,r){var e={},n=t[t.l];return++t.l,e.above=!(n&64),e.left=!(n&128),t.l+=18,e.name=hg(t),e}function l_(t,r,e){e==null&&(e=We(84+4*t.length));var n=192;r&&(r.above&&(n&=-65),r.left&&(n&=-129)),e.write_shift(1,n);for(var i=1;i<3;++i)e.write_shift(1,0);return ao({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),wu(t,e),e.slice(0,e.l)}function c_(t){var r=gn(t);return[r]}function h_(t,r,e){return e==null&&(e=We(8)),Vi(r,e)}function u_(t){var r=Gi(t);return[r]}function d_(t,r,e){return e==null&&(e=We(4)),Ki(r,e)}function p_(t){var r=gn(t),e=t.read_shift(1);return[r,e,"b"]}function m_(t,r,e){return e==null&&(e=We(9)),Vi(r,e),e.write_shift(1,t.v?1:0),e}function g_(t){var r=Gi(t),e=t.read_shift(1);return[r,e,"b"]}function v_(t,r,e){return e==null&&(e=We(5)),Ki(r,e),e.write_shift(1,t.v?1:0),e}function x_(t){var r=gn(t),e=t.read_shift(1);return[r,e,"e"]}function b_(t,r,e){return e==null&&(e=We(9)),Vi(r,e),e.write_shift(1,t.v),e}function w_(t){var r=Gi(t),e=t.read_shift(1);return[r,e,"e"]}function y_(t,r,e){return e==null&&(e=We(8)),Ki(r,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}function __(t){var r=gn(t),e=t.read_shift(4);return[r,e,"s"]}function E_(t,r,e){return e==null&&(e=We(12)),Vi(r,e),e.write_shift(4,r.v),e}function T_(t){var r=Gi(t),e=t.read_shift(4);return[r,e,"s"]}function S_(t,r,e){return e==null&&(e=We(8)),Ki(r,e),e.write_shift(4,r.v),e}function k_(t){var r=gn(t),e=Nr(t);return[r,e,"n"]}function C_(t,r,e){return e==null&&(e=We(16)),Vi(r,e),Ui(t.v,e),e}function S0(t){var r=Gi(t),e=Nr(t);return[r,e,"n"]}function A_(t,r,e){return e==null&&(e=We(12)),Ki(r,e),Ui(t.v,e),e}function F_(t){var r=gn(t),e=sl(t);return[r,e,"n"]}function R_(t,r,e){return e==null&&(e=We(12)),Vi(r,e),yu(t.v,e),e}function M_(t){var r=Gi(t),e=sl(t);return[r,e,"n"]}function O_(t,r,e){return e==null&&(e=We(8)),Ki(r,e),yu(t.v,e),e}function I_(t){var r=gn(t),e=rl(t);return[r,e,"is"]}function D_(t){var r=gn(t),e=Pr(t);return[r,e,"str"]}function N_(t,r,e){return e==null&&(e=We(12+4*t.v.length)),Vi(r,e),_r(t.v,e),e.length>e.l?e.slice(0,e.l):e}function P_(t){var r=Gi(t),e=Pr(t);return[r,e,"str"]}function B_(t,r,e){return e==null&&(e=We(8+4*t.v.length)),Ki(r,e),_r(t.v,e),e.length>e.l?e.slice(0,e.l):e}function L_(t,r,e){var n=t.l+r,i=gn(t);i.r=e["!row"];var s=t.read_shift(1),o=[i,s,"b"];if(e.cellFormula){t.l+=2;var h=yo(t,n-t.l,e);o[3]=Ir(h,null,i,e.supbooks,e)}else t.l=n;return o}function j_(t,r,e){var n=t.l+r,i=gn(t);i.r=e["!row"];var s=t.read_shift(1),o=[i,s,"e"];if(e.cellFormula){t.l+=2;var h=yo(t,n-t.l,e);o[3]=Ir(h,null,i,e.supbooks,e)}else t.l=n;return o}function U_(t,r,e){var n=t.l+r,i=gn(t);i.r=e["!row"];var s=Nr(t),o=[i,s,"n"];if(e.cellFormula){t.l+=2;var h=yo(t,n-t.l,e);o[3]=Ir(h,null,i,e.supbooks,e)}else t.l=n;return o}function H_(t,r,e){var n=t.l+r,i=gn(t);i.r=e["!row"];var s=Pr(t),o=[i,s,"str"];if(e.cellFormula){t.l+=2;var h=yo(t,n-t.l,e);o[3]=Ir(h,null,i,e.supbooks,e)}else t.l=n;return o}var z_=Yi,$_=xs;function W_(t,r){return r==null&&(r=We(4)),r.write_shift(4,t),r}function X_(t,r){var e=t.l+r,n=Yi(t),i=nl(t),s=Pr(t),o=Pr(t),h=Pr(t);t.l=e;var c={rfx:n,relId:i,loc:s,display:h};return o&&(c.Tooltip=o),c}function V_(t,r){var e=We(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));xs({s:vr(t[0]),e:vr(t[0])},e),il("rId"+r,e);var n=t[1].Target.indexOf("#"),i=n==-1?"":t[1].Target.slice(n+1);return _r(i||"",e),_r(t[1].Tooltip||"",e),_r("",e),e.slice(0,e.l)}function G_(){}function K_(t,r,e){var n=t.l+r,i=_u(t),s=t.read_shift(1),o=[i];if(o[2]=s,e.cellFormula){var h=xy(t,n-t.l,e);o[1]=h}else t.l=n;return o}function Y_(t,r,e){var n=t.l+r,i=Yi(t),s=[i];if(e.cellFormula){var o=wy(t,n-t.l,e);s[1]=o,t.l=n}else t.l=n;return s}function Z_(t,r,e){e==null&&(e=We(18));var n=_o(t,r);e.write_shift(-4,t),e.write_shift(-4,t),e.write_shift(4,(n.width||10)*256),e.write_shift(4,0);var i=0;return r.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),r.level&&(i|=r.level<<8),e.write_shift(2,i),e}var k0=["left","right","top","bottom","header","footer"];function J_(t){var r={};return k0.forEach(function(e){r[e]=Nr(t)}),r}function Q_(t,r){return r==null&&(r=We(6*8)),Pi(t),k0.forEach(function(e){Ui(t[e],r)}),r}function q_(t){var r=t.read_shift(2);return t.l+=28,{RTL:r&32}}function e4(t,r,e){e==null&&(e=We(30));var n=924;return(((r||{}).Views||[])[0]||{}).RTL&&(n|=32),e.write_shift(2,n),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,100),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(4,0),e}function t4(t){var r=We(24);return r.write_shift(4,4),r.write_shift(4,1),xs(t,r),r}function r4(t,r){return r==null&&(r=We(16*4+2)),r.write_shift(2,t.password?hl(t.password):0),r.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(e){e[1]?r.write_shift(4,t[e[0]]!=null&&!t[e[0]]?1:0):r.write_shift(4,t[e[0]]!=null&&t[e[0]]?0:1)}),r}function n4(){}function i4(){}function s4(t,r,e,n,i,s,o){if(!t)return t;var h=r||{};n||(n={"!id":{}});var c=h.dense?[]:{},a,f={s:{r:2e6,c:2e6},e:{r:0,c:0}},l=!1,u=!1,p,m,d,v,x,g,b,w,y,T=[];h.biff=12,h["!row"]=0;var C=0,M=!1,I=[],B={},U=h.supbooks||i.supbooks||[[]];if(U.sharedf=B,U.arrayf=I,U.SheetNames=i.SheetNames||i.Sheets.map(function(_){return _.name}),!h.supbooks&&(h.supbooks=U,i.Names))for(var j=0;j<i.Names.length;++j)U[0][j+1]=i.Names[j];var H=[],G=[],L=!1;Ys[16]={n:"BrtShortReal",f:S0};var R;if(ni(t,function(k,N,P){if(!u)switch(P){case 148:a=k;break;case 0:p=k,h.sheetRows&&h.sheetRows<=p.r&&(u=!0),w=Er(v=p.r),h["!row"]=p.r,(k.hidden||k.hpt||k.level!=null)&&(k.hpt&&(k.hpx=ps(k.hpt)),G[k.r]=k);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(m={t:k[2]},k[2]){case"n":m.v=k[1];break;case"s":b=Ds[k[1]],m.v=b.t,m.r=b.r;break;case"b":m.v=!!k[1];break;case"e":m.v=k[1],h.cellText!==!1&&(m.w=ii[m.v]);break;case"str":m.t="s",m.v=k[1];break;case"is":m.t="s",m.v=k[1].t;break}if((d=o.CellXf[k[0].iStyleRef])&&_0(m,d.numFmtId,null,h,s,o),x=k[0].c==-1?x+1:k[0].c,h.dense?(c[v]||(c[v]=[]),c[v][x]=m):c[dr(x)+w]=m,h.cellFormula){for(M=!1,C=0;C<I.length;++C){var D=I[C];p.r>=D[0].s.r&&p.r<=D[0].e.r&&x>=D[0].s.c&&x<=D[0].e.c&&(m.F=Rt(D[0]),M=!0)}!M&&k.length>3&&(m.f=k[3])}if(f.s.r>p.r&&(f.s.r=p.r),f.s.c>x&&(f.s.c=x),f.e.r<p.r&&(f.e.r=p.r),f.e.c<x&&(f.e.c=x),h.cellDates&&d&&m.t=="n"&&gs(xt[d.numFmtId])){var A=Ri(m.v);A&&(m.t="d",m.v=new Date(A.y,A.m-1,A.d,A.H,A.M,A.S,A.u))}R&&(R.type=="XLDAPR"&&(m.D=!0),R=void 0);break;case 1:case 12:if(!h.sheetStubs||l)break;m={t:"z",v:void 0},x=k[0].c==-1?x+1:k[0].c,h.dense?(c[v]||(c[v]=[]),c[v][x]=m):c[dr(x)+w]=m,f.s.r>p.r&&(f.s.r=p.r),f.s.c>x&&(f.s.c=x),f.e.r<p.r&&(f.e.r=p.r),f.e.c<x&&(f.e.c=x),R&&(R.type=="XLDAPR"&&(m.D=!0),R=void 0);break;case 176:T.push(k);break;case 49:R=((h.xlmeta||{}).Cell||[])[k-1];break;case 494:var S=n["!id"][k.relId];for(S?(k.Target=S.Target,k.loc&&(k.Target+="#"+k.loc),k.Rel=S):k.relId==""&&(k.Target="#"+k.loc),v=k.rfx.s.r;v<=k.rfx.e.r;++v)for(x=k.rfx.s.c;x<=k.rfx.e.c;++x)h.dense?(c[v]||(c[v]=[]),c[v][x]||(c[v][x]={t:"z",v:void 0}),c[v][x].l=k):(g=yt({c:x,r:v}),c[g]||(c[g]={t:"z",v:void 0}),c[g].l=k);break;case 426:if(!h.cellFormula)break;I.push(k),y=h.dense?c[v][x]:c[dr(x)+w],y.f=Ir(k[1],f,{r:p.r,c:x},U,h),y.F=Rt(k[0]);break;case 427:if(!h.cellFormula)break;B[yt(k[0].s)]=k[1],y=h.dense?c[v][x]:c[dr(x)+w],y.f=Ir(k[1],f,{r:p.r,c:x},U,h);break;case 60:if(!h.cellStyles)break;for(;k.e>=k.s;)H[k.e--]={width:k.w/256,hidden:!!(k.flags&1),level:k.level},L||(L=!0,ul(k.w/256)),gi(H[k.e+1]);break;case 161:c["!autofilter"]={ref:Rt(k)};break;case 476:c["!margins"]=k;break;case 147:i.Sheets[e]||(i.Sheets[e]={}),k.name&&(i.Sheets[e].CodeName=k.name),(k.above||k.left)&&(c["!outline"]={above:k.above,left:k.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),k.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;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:l=!0;break;case 36:l=!1;break;case 37:l=!0;break;case 38:l=!1;break;default:if(!N.T){if(!l||h.WTF)throw new Error("Unexpected record 0x"+P.toString(16))}}},h),delete h.supbooks,delete h["!row"],!c["!ref"]&&(f.s.r<2e6||a&&(a.e.r>0||a.e.c>0||a.s.r>0||a.s.c>0))&&(c["!ref"]=Rt(a||f)),h.sheetRows&&c["!ref"]){var F=Lt(c["!ref"]);h.sheetRows<=+F.e.r&&(F.e.r=h.sheetRows-1,F.e.r>f.e.r&&(F.e.r=f.e.r),F.e.r<F.s.r&&(F.s.r=F.e.r),F.e.c>f.e.c&&(F.e.c=f.e.c),F.e.c<F.s.c&&(F.s.c=F.e.c),c["!fullref"]=c["!ref"],c["!ref"]=Rt(F))}return T.length>0&&(c["!merges"]=T),H.length>0&&(c["!cols"]=H),G.length>0&&(c["!rows"]=G),c}function a4(t,r,e,n,i,s,o){if(r.v===void 0)return!1;var h="";switch(r.t){case"b":h=r.v?"1":"0";break;case"d":r=Zt(r),r.z=r.z||xt[14],r.v=Ar(qt(r.v)),r.t="n";break;case"n":case"e":h=""+r.v;break;default:h=r.v;break}var c={r:e,c:n};switch(c.s=wi(i.cellXfs,r,i),r.l&&s["!links"].push([yt(c),r.l]),r.c&&s["!comments"].push([yt(c),r.c]),r.t){case"s":case"str":return i.bookSST?(h=vl(i.Strings,r.v,i.revStrings),c.t="s",c.v=h,o?Ye(t,18,S_(r,c)):Ye(t,7,E_(r,c))):(c.t="str",o?Ye(t,17,B_(r,c)):Ye(t,6,N_(r,c))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?o?Ye(t,13,O_(r,c)):Ye(t,2,R_(r,c)):o?Ye(t,16,A_(r,c)):Ye(t,5,C_(r,c)),!0;case"b":return c.t="b",o?Ye(t,15,v_(r,c)):Ye(t,4,m_(r,c)),!0;case"e":return c.t="e",o?Ye(t,14,y_(r,c)):Ye(t,3,b_(r,c)),!0}return o?Ye(t,12,d_(r,c)):Ye(t,1,h_(r,c)),!0}function o4(t,r,e,n){var i=Lt(r["!ref"]||"A1"),s,o="",h=[];Ye(t,145);var c=Array.isArray(r),a=i.e.r;r["!rows"]&&(a=Math.max(i.e.r,r["!rows"].length-1));for(var f=i.s.r;f<=a;++f){o=Er(f),i_(t,r,i,f);var l=!1;if(f<=i.e.r)for(var u=i.s.c;u<=i.e.c;++u){f===i.s.r&&(h[u]=dr(u)),s=h[u]+o;var p=c?(r[f]||[])[u]:r[s];if(!p){l=!1;continue}l=a4(t,p,f,u,n,r,l)}}Ye(t,146)}function f4(t,r){!r||!r["!merges"]||(Ye(t,177,W_(r["!merges"].length)),r["!merges"].forEach(function(e){Ye(t,176,$_(e))}),Ye(t,178))}function l4(t,r){!r||!r["!cols"]||(Ye(t,390),r["!cols"].forEach(function(e,n){e&&Ye(t,60,Z_(n,e))}),Ye(t,391))}function c4(t,r){!r||!r["!ref"]||(Ye(t,648),Ye(t,649,t4(Lt(r["!ref"]))),Ye(t,650))}function h4(t,r,e){r["!links"].forEach(function(n){if(n[1].Target){var i=zt(e,-1,n[1].Target.replace(/#.*$/,""),Ft.HLINK);Ye(t,494,V_(n,i))}}),delete r["!links"]}function u4(t,r,e,n){if(r["!comments"].length>0){var i=zt(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Ft.VML);Ye(t,551,il("rId"+i)),r["!legacy"]=i}}function d4(t,r,e,n){if(r["!autofilter"]){var i=r["!autofilter"],s=typeof i.ref=="string"?i.ref:Rt(i.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,h=mn(s);h.s.r==h.e.r&&(h.e.r=mn(r["!ref"]).e.r,s=Rt(h));for(var c=0;c<o.length;++c){var a=o[c];if(a.Name=="_xlnm._FilterDatabase"&&a.Sheet==n){a.Ref="'"+e.SheetNames[n]+"'!"+s;break}}c==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+e.SheetNames[n]+"'!"+s}),Ye(t,161,xs(Lt(s))),Ye(t,162)}}function p4(t,r,e){Ye(t,133),Ye(t,137,e4(r,e)),Ye(t,138),Ye(t,134)}function m4(t,r){r["!protect"]&&Ye(t,535,r4(r["!protect"]))}function g4(t,r,e,n){var i=Jr(),s=e.SheetNames[t],o=e.Sheets[s]||{},h=s;try{e&&e.Workbook&&(h=e.Workbook.Sheets[t].CodeName||h)}catch{}var c=Lt(o["!ref"]||"A1");if(c.e.c>16383||c.e.r>1048575){if(r.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],Ye(i,129),(e.vbaraw||o["!outline"])&&Ye(i,147,l_(h,o["!outline"])),Ye(i,148,a_(c)),p4(i,o,e.Workbook),l4(i,o),o4(i,o,t,r),m4(i,o),d4(i,o,e,t),f4(i,o),h4(i,o,n),o["!margins"]&&Ye(i,476,Q_(o["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&c4(i,o),u4(i,o,t,n),Ye(i,130),i.end()}function v4(t){var r=[],e=t.match(/^<c:numCache>/),n;(t.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(s){var o=s.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);o&&(r[+o[1]]=e?+o[2]:o[2])});var i=Pt((t.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(t.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(s){n=s.replace(/<.*?>/g,"")}),[r,i,n]}function x4(t,r,e,n,i,s){var o=s||{"!type":"chart"};if(!t)return s;var h=0,c=0,a="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(t.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(l){var u=v4(l);f.s.r=f.s.c=0,f.e.c=h,a=dr(h),u[0].forEach(function(p,m){o[a+Er(m)]={t:"n",v:p,z:u[1]},c=m}),f.e.r<c&&(f.e.r=c),++h}),h>0&&(o["!ref"]=Rt(f)),o}function b4(t,r,e,n,i){if(!t)return t;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o,h=t.match(E0);return h&&xl(h[0],s,i,e),(o=t.match(/drawing r:id="(.*?)"/))&&(s["!rel"]=o[1]),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}function w4(t,r){t.l+=10;var e=Pr(t);return{name:e}}function y4(t,r,e,n,i){if(!t)return t;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o=!1;return ni(t,function(c,a,f){switch(f){case 550:s["!rel"]=c;break;case 651:i.Sheets[e]||(i.Sheets[e]={}),c.name&&(i.Sheets[e].CodeName=c.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(!(a.T>0)){if(!(a.T<0)){if(!o||r.WTF)throw new Error("Unexpected record 0x"+f.toString(16))}}}},r),n["!id"][s["!rel"]]&&(s["!drawel"]=n["!id"][s["!rel"]]),s}var bl=[["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"]],_4=[["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"]],E4=[],T4=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function rh(t,r){for(var e=0;e!=t.length;++e)for(var n=t[e],i=0;i!=r.length;++i){var s=r[i];if(n[s[0]]==null)n[s[0]]=s[1];else switch(s[2]){case"bool":typeof n[s[0]]=="string"&&(n[s[0]]=Yt(n[s[0]]));break;case"int":typeof n[s[0]]=="string"&&(n[s[0]]=parseInt(n[s[0]],10));break}}}function nh(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]]=Yt(t[n[0]]));break;case"int":typeof t[n[0]]=="string"&&(t[n[0]]=parseInt(t[n[0]],10));break}}}function C0(t){nh(t.WBProps,bl),nh(t.CalcPr,T4),rh(t.WBView,_4),rh(t.Sheets,E4),us.date1904=Yt(t.WBProps.date1904)}function S4(t){return!t.Workbook||!t.Workbook.WBProps?"false":Yt(t.Workbook.WBProps.date1904)?"true":"false"}var k4="][*?/\\".split("");function A0(t,r){if(t.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var e=!0;return k4.forEach(function(n){if(t.indexOf(n)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");e=!1}}),e}function C4(t,r,e){t.forEach(function(n,i){A0(n);for(var s=0;s<i;++s)if(n==t[s])throw new Error("Duplicate Sheet Name: "+n);if(e){var o=r&&r[i]&&r[i].CodeName||n;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function A4(t){if(!t||!t.SheetNames||!t.Sheets)throw new Error("Invalid Workbook");if(!t.SheetNames.length)throw new Error("Workbook is empty");var r=t.Workbook&&t.Workbook.Sheets||[];C4(t.SheetNames,r,!!t.vbaraw);for(var e=0;e<t.SheetNames.length;++e)Sy(t.Sheets[t.SheetNames[e]],t.SheetNames[e],e)}var F4=/<\w+:workbook/;function R4(t,r){if(!t)throw new Error("Could not find file");var e={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,i="xmlns",s={},o=0;if(t.replace(jr,function(c,a){var f=bt(c);switch(Hn(f[0])){case"<?xml":break;case"<workbook":c.match(F4)&&(i="xmlns"+c.match(/<(\w+):/)[1]),e.xmlns=f[i];break;case"</workbook>":break;case"<fileVersion":delete f[0],e.AppVersion=f;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":bl.forEach(function(l){if(f[l[0]]!=null)switch(l[2]){case"bool":e.WBProps[l[0]]=Yt(f[l[0]]);break;case"int":e.WBProps[l[0]]=parseInt(f[l[0]],10);break;default:e.WBProps[l[0]]=f[l[0]]}}),f.codeName&&(e.WBProps.CodeName=Wt(f.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete f[0],e.WBView.push(f);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(f.state){case"hidden":f.Hidden=1;break;case"veryHidden":f.Hidden=2;break;default:f.Hidden=0}delete f.state,f.name=Pt(Wt(f.name)),delete f[0],e.Sheets.push(f);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":n=!0;break;case"</definedNames>":n=!1;break;case"<definedName":s={},s.Name=Wt(f.name),f.comment&&(s.Comment=f.comment),f.localSheetId&&(s.Sheet=+f.localSheetId),Yt(f.hidden||"0")&&(s.Hidden=!0),o=a+c.length;break;case"</definedName>":s.Ref=Pt(Wt(t.slice(o,a))),e.Names.push(s);break;case"<definedName/>":break;case"<calcPr":delete f[0],e.CalcPr=f;break;case"<calcPr/>":delete f[0],e.CalcPr=f;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</AlternateContent>":n=!1;break;case"<revisionPtr":break;default:if(!n&&r.WTF)throw new Error("unrecognized "+f[0]+" in workbook")}return c}),Wi.indexOf(e.xmlns)===-1)throw new Error("Unknown Namespace: "+e.xmlns);return C0(e),e}function F0(t){var r=[fr];r[r.length]=Qe("workbook",null,{xmlns:Wi[0],"xmlns:r":gr.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(bl.forEach(function(h){t.Workbook.WBProps[h[0]]!=null&&t.Workbook.WBProps[h[0]]!=h[1]&&(n[h[0]]=t.Workbook.WBProps[h[0]])}),t.Workbook.WBProps.CodeName&&(n.codeName=t.Workbook.WBProps.CodeName,delete n.CodeName)),r[r.length]=Qe("workbookPr",null,n);var i=t.Workbook&&t.Workbook.Sheets||[],s=0;if(i&&i[0]&&i[0].Hidden){for(r[r.length]="<bookViews>",s=0;s!=t.SheetNames.length&&!(!i[s]||!i[s].Hidden);++s);s==t.SheetNames.length&&(s=0),r[r.length]='<workbookView firstSheet="'+s+'" activeTab="'+s+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",s=0;s!=t.SheetNames.length;++s){var o={name:$t(t.SheetNames[s].slice(0,31))};if(o.sheetId=""+(s+1),o["r:id"]="rId"+(s+1),i[s])switch(i[s].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}r[r.length]=Qe("sheet",null,o)}return r[r.length]="</sheets>",e&&(r[r.length]="<definedNames>",t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach(function(h){var c={name:h.Name};h.Comment&&(c.comment=h.Comment),h.Sheet!=null&&(c.localSheetId=""+h.Sheet),h.Hidden&&(c.hidden="1"),h.Ref&&(r[r.length]=Qe("definedName",$t(h.Ref),c))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function M4(t,r){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=wf(t),e.name=Pr(t),e}function O4(t,r){return r||(r=We(127)),r.write_shift(4,t.Hidden),r.write_shift(4,t.iTabID),il(t.strRelID,r),_r(t.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function I4(t,r){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var i=r>8?Pr(t):"";return i.length>0&&(e.CodeName=i),e.autoCompressPictures=!!(n&65536),e.backupFile=!!(n&64),e.checkCompatibility=!!(n&4096),e.date1904=!!(n&1),e.filterPrivacy=!!(n&8),e.hidePivotFieldList=!!(n&1024),e.promptedSolutions=!!(n&16),e.publishItems=!!(n&2048),e.refreshAllConnections=!!(n&262144),e.saveExternalLinkValues=!!(n&128),e.showBorderUnselectedTables=!!(n&4),e.showInkAnnotation=!!(n&32),e.showObjects=["all","placeholders","none"][n>>13&3],e.showPivotChartFilter=!!(n&32768),e.updateLinks=["userSet","never","always"][n>>8&3],e}function D4(t,r){r||(r=We(72));var e=0;return t&&t.filterPrivacy&&(e|=8),r.write_shift(4,e),r.write_shift(4,0),wu(t&&t.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function N4(t,r){var e={};return t.read_shift(4),e.ArchID=t.read_shift(4),t.l+=r-8,e}function P4(t,r,e){var n=t.l+r;t.l+=4,t.l+=1;var i=t.read_shift(4),s=ug(t),o=by(t,0,e),h=nl(t);t.l=n;var c={Name:s,Ptg:o};return i<268435455&&(c.Sheet=i),h&&(c.Comment=h),c}function B4(t,r){var e={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],i=!1;r||(r={}),r.biff=12;var s=[],o=[[]];return o.SheetNames=[],o.XTI=[],Ys[16]={n:"BrtFRTArchID$",f:N4},ni(t,function(c,a,f){switch(f){case 156:o.SheetNames.push(c.name),e.Sheets.push(c);break;case 153:e.WBProps=c;break;case 39:c.Sheet!=null&&(r.SID=c.Sheet),c.Ref=Ir(c.Ptg,null,null,o,r),delete r.SID,delete c.Ptg,s.push(c);break;case 1036:break;case 357:case 358:case 355:case 667:o[0].length?o.push([f,c]):o[0]=[f,c],o[o.length-1].XTI=[];break;case 362:o.length===0&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(c),o.XTI=o.XTI.concat(c);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;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:break;case 35:n.push(f),i=!0;break;case 36:n.pop(),i=!1;break;case 37:n.push(f),i=!0;break;case 38:n.pop(),i=!1;break;case 16:break;default:if(!a.T){if(!i||r.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+f.toString(16))}}},r),C0(e),e.Names=s,e.supbooks=o,e}function L4(t,r){Ye(t,143);for(var e=0;e!=r.SheetNames.length;++e){var n=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[e]&&r.Workbook.Sheets[e].Hidden||0,i={Hidden:n,iTabID:e+1,strRelID:"rId"+(e+1),name:r.SheetNames[e]};Ye(t,156,O4(i))}Ye(t,144)}function j4(t,r){r||(r=We(127));for(var e=0;e!=4;++e)r.write_shift(4,0);return _r("SheetJS",r),_r(qa.version,r),_r(qa.version,r),_r("7262",r),r.length>r.l?r.slice(0,r.l):r}function U4(t,r){r||(r=We(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,t),r.write_shift(4,t);var e=120;return r.write_shift(1,e),r.length>r.l?r.slice(0,r.l):r}function H4(t,r){if(!(!r.Workbook||!r.Workbook.Sheets)){for(var e=r.Workbook.Sheets,n=0,i=-1,s=-1;n<e.length;++n)!e[n]||!e[n].Hidden&&i==-1?i=n:e[n].Hidden==1&&s==-1&&(s=n);s>i||(Ye(t,135),Ye(t,158,U4(i)),Ye(t,136))}}function z4(t,r){var e=Jr();return Ye(e,131),Ye(e,128,j4()),Ye(e,153,D4(t.Workbook&&t.Workbook.WBProps||null)),H4(e,t),L4(e,t),Ye(e,132),e.end()}function $4(t,r,e){return r.slice(-4)===".bin"?B4(t,e):R4(t,e)}function W4(t,r,e,n,i,s,o,h){return r.slice(-4)===".bin"?s4(t,n,e,i,s,o,h):Py(t,n,e,i,s,o,h)}function X4(t,r,e,n,i,s,o,h){return r.slice(-4)===".bin"?y4(t,n,e,i,s):b4(t,n,e,i,s)}function V4(t,r,e,n,i,s,o,h){return r.slice(-4)===".bin"?Kb():Yb()}function G4(t,r,e,n,i,s,o,h){return r.slice(-4)===".bin"?Vb():Gb()}function K4(t,r,e,n){return r.slice(-4)===".bin"?$2(t,e,n):M2(t,e,n)}function Y4(t,r,e){return l0(t,e)}function Z4(t,r,e){return r.slice(-4)===".bin"?Zx(t,e):Gx(t,e)}function J4(t,r,e){return r.slice(-4)===".bin"?Hb(t,e):Ob(t,e)}function Q4(t,r,e){return r.slice(-4)===".bin"?Fb(t):Cb(t)}function q4(t,r,e,n){return e.slice(-4)===".bin"?Rb(t,r,e,n):void 0}function e3(t,r,e){return r.slice(-4)===".bin"?Tb(t,r,e):kb(t,r,e)}function t3(t,r,e){return(r.slice(-4)===".bin"?z4:F0)(t)}function r3(t,r,e,n,i){return(r.slice(-4)===".bin"?g4:T0)(t,e,n,i)}function n3(t,r,e){return(r.slice(-4)===".bin"?q2:o0)(t,e)}function i3(t,r,e){return(r.slice(-4)===".bin"?qx:qu)(t,e)}function s3(t,r,e){return(r.slice(-4)===".bin"?zb:u0)(t)}function a3(t){return(t.slice(-4)===".bin"?Sb:c0)()}var R0=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,M0=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function _n(t,r){var e=t.split(/\s+/),n=[];if(r||(n[0]=e[0]),e.length===1)return n;var i=t.match(R0),s,o,h,c;if(i)for(c=0;c!=i.length;++c)s=i[c].match(M0),(o=s[1].indexOf(":"))===-1?n[s[1]]=s[2].slice(1,s[2].length-1):(s[1].slice(0,6)==="xmlns:"?h="xmlns"+s[1].slice(6):h=s[1].slice(o+1),n[h]=s[2].slice(1,s[2].length-1));return n}function o3(t){var r=t.split(/\s+/),e={};if(r.length===1)return e;var n=t.match(R0),i,s,o,h;if(n)for(h=0;h!=n.length;++h)i=n[h].match(M0),(s=i[1].indexOf(":"))===-1?e[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?o="xmlns"+i[1].slice(6):o=i[1].slice(s+1),e[o]=i[2].slice(1,i[2].length-1));return e}var Ps;function f3(t,r){var e=Ps[t]||Pt(t);return e==="General"?Li(r):pn(e,r)}function l3(t,r,e,n){var i=n;switch((e[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=Yt(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=qt(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+e[0])}t[Pt(r)]=i}function c3(t,r,e){if(t.t!=="z"){if(!e||e.cellText!==!1)try{t.t==="e"?t.w=t.w||ii[t.v]:r==="General"?t.t==="n"?(t.v|0)===t.v?t.w=t.v.toString(10):t.w=js(t.v):t.w=Li(t.v):t.w=f3(r||"General",t.v)}catch(s){if(e.WTF)throw s}try{var n=Ps[r]||r||"General";if(e.cellNF&&(t.z=n),e.cellDates&&t.t=="n"&&gs(n)){var i=Ri(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))}}catch(s){if(e.WTF)throw s}}}function h3(t,r,e){if(e.cellStyles&&r.Interior){var n=r.Interior;n.Pattern&&(n.patternType=E2[n.Pattern]||n.Pattern)}t[r.ID]=r}function u3(t,r,e,n,i,s,o,h,c,a){var f="General",l=n.StyleID,u={};a=a||{};var p=[],m=0;for(l===void 0&&h&&(l=h.StyleID),l===void 0&&o&&(l=o.StyleID);s[l]!==void 0&&(s[l].nf&&(f=s[l].nf),s[l].Interior&&p.push(s[l].Interior),!!s[l].Parent);)l=s[l].Parent;switch(e.Type){case"Boolean":n.t="b",n.v=Yt(t);break;case"String":n.t="s",n.r=wc(Pt(t)),n.v=t.indexOf("<")>-1?Pt(r||t).replace(/<.*?>/g,""):n.r;break;case"DateTime":t.slice(-1)!="Z"&&(t+="Z"),n.v=(qt(t)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=Pt(t):n.v<60&&(n.v=n.v-1),(!f||f=="General")&&(f="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=Su[t],a.cellText!==!1&&(n.w=t);break;default:t==""&&r==""?n.t="z":(n.t="s",n.v=wc(r||t));break}if(c3(n,f,a),a.cellFormula!==!1)if(n.Formula){var d=Pt(n.Formula);d.charCodeAt(0)==61&&(d=d.slice(1)),n.f=hs(d,i),delete n.Formula,n.ArrayRange=="RC"?n.F=hs("RC:RC",i):n.ArrayRange&&(n.F=hs(n.ArrayRange,i),c.push([Lt(n.F),n.F]))}else for(m=0;m<c.length;++m)i.r>=c[m][0].s.r&&i.r<=c[m][0].e.r&&i.c>=c[m][0].s.c&&i.c<=c[m][0].e.c&&(n.F=c[m][1]);a.cellStyles&&(p.forEach(function(v){!u.patternType&&v.patternType&&(u.patternType=v.patternType)}),n.s=u),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function d3(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 Qo(t,r){var e=r||{};vs();var n=Cs(qf(t));(e.type=="binary"||e.type=="array"||e.type=="base64")&&(n=Wt(n));var i=n.slice(0,1024).toLowerCase(),s=!1;if(i=i.replace(/".*?"/g,""),(i.indexOf(">")&1023)>Math.min(i.indexOf(",")&1023,i.indexOf(";")&1023)){var o=Zt(e);return o.type="string",ds.to_workbook(n,o)}if(i.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(ae){i.indexOf("<"+ae)>=0&&(s=!0)}),s)return Q3(n,e);Ps={"General Number":"General","General Date":xt[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":xt[15],"Short Date":xt[14],"Long Time":xt[19],"Medium Time":xt[18],"Short Time":xt[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:xt[2],Standard:xt[4],Percent:xt[10],Scientific:xt[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var h,c=[],a,f={},l=[],u=e.dense?[]:{},p="",m={},d={},v=_n('<Data ss:Type="String">'),x=0,g=0,b=0,w={s:{r:2e6,c:2e6},e:{r:0,c:0}},y={},T={},C="",M=0,I=[],B={},U={},j=0,H=[],G=[],L={},R=[],F,_=!1,k=[],N=[],P={},D=0,A=0,S={Sheets:[],WBProps:{date1904:!1}},E={};$s.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var O="";h=$s.exec(n);)switch(h[3]=(O=h[3]).toLowerCase()){case"data":if(O=="data"){if(h[1]==="/"){if((a=c.pop())[0]!==h[3])throw new Error("Bad state: "+a.join("|"))}else h[0].charAt(h[0].length-2)!=="/"&&c.push([h[3],!0]);break}if(c[c.length-1][1])break;h[1]==="/"?u3(n.slice(x,h.index),C,v,c[c.length-1][0]=="comment"?L:m,{c:g,r:b},y,R[g],d,k,e):(C="",v=_n(h[0]),x=h.index+h[0].length);break;case"cell":if(h[1]==="/")if(G.length>0&&(m.c=G),(!e.sheetRows||e.sheetRows>b)&&m.v!==void 0&&(e.dense?(u[b]||(u[b]=[]),u[b][g]=m):u[dr(g)+Er(b)]=m),m.HRef&&(m.l={Target:Pt(m.HRef)},m.HRefScreenTip&&(m.l.Tooltip=m.HRefScreenTip),delete m.HRef,delete m.HRefScreenTip),(m.MergeAcross||m.MergeDown)&&(D=g+(parseInt(m.MergeAcross,10)|0),A=b+(parseInt(m.MergeDown,10)|0),I.push({s:{c:g,r:b},e:{c:D,r:A}})),!e.sheetStubs)m.MergeAcross?g=D+1:++g;else if(m.MergeAcross||m.MergeDown){for(var z=g;z<=D;++z)for(var J=b;J<=A;++J)(z>g||J>b)&&(e.dense?(u[J]||(u[J]=[]),u[J][z]={t:"z"}):u[dr(z)+Er(J)]={t:"z"});g=D+1}else++g;else m=o3(h[0]),m.Index&&(g=+m.Index-1),g<w.s.c&&(w.s.c=g),g>w.e.c&&(w.e.c=g),h[0].slice(-2)==="/>"&&++g,G=[];break;case"row":h[1]==="/"||h[0].slice(-2)==="/>"?(b<w.s.r&&(w.s.r=b),b>w.e.r&&(w.e.r=b),h[0].slice(-2)==="/>"&&(d=_n(h[0]),d.Index&&(b=+d.Index-1)),g=0,++b):(d=_n(h[0]),d.Index&&(b=+d.Index-1),P={},(d.AutoFitHeight=="0"||d.Height)&&(P.hpx=parseInt(d.Height,10),P.hpt=Ks(P.hpx),N[b]=P),d.Hidden=="1"&&(P.hidden=!0,N[b]=P));break;case"worksheet":if(h[1]==="/"){if((a=c.pop())[0]!==h[3])throw new Error("Bad state: "+a.join("|"));l.push(p),w.s.r<=w.e.r&&w.s.c<=w.e.c&&(u["!ref"]=Rt(w),e.sheetRows&&e.sheetRows<=w.e.r&&(u["!fullref"]=u["!ref"],w.e.r=e.sheetRows-1,u["!ref"]=Rt(w))),I.length&&(u["!merges"]=I),R.length>0&&(u["!cols"]=R),N.length>0&&(u["!rows"]=N),f[p]=u}else w={s:{r:2e6,c:2e6},e:{r:0,c:0}},b=g=0,c.push([h[3],!1]),a=_n(h[0]),p=Pt(a.Name),u=e.dense?[]:{},I=[],k=[],N=[],E={name:p,Hidden:0},S.Sheets.push(E);break;case"table":if(h[1]==="/"){if((a=c.pop())[0]!==h[3])throw new Error("Bad state: "+a.join("|"))}else{if(h[0].slice(-2)=="/>")break;c.push([h[3],!1]),R=[],_=!1}break;case"style":h[1]==="/"?h3(y,T,e):T=_n(h[0]);break;case"numberformat":T.nf=Pt(_n(h[0]).Format||"General"),Ps[T.nf]&&(T.nf=Ps[T.nf]);for(var re=0;re!=392&&xt[re]!=T.nf;++re);if(re==392){for(re=57;re!=392;++re)if(xt[re]==null){Qn(T.nf,re);break}}break;case"column":if(c[c.length-1][0]!=="table")break;if(F=_n(h[0]),F.Hidden&&(F.hidden=!0,delete F.Hidden),F.Width&&(F.wpx=parseInt(F.Width,10)),!_&&F.wpx>10){_=!0,Dr=s0;for(var se=0;se<R.length;++se)R[se]&&gi(R[se])}_&&gi(F),R[F.Index-1||R.length]=F;for(var Ce=0;Ce<+F.Span;++Ce)R[R.length]=Zt(F);break;case"namedrange":if(h[1]==="/")break;S.Names||(S.Names=[]);var Y=bt(h[0]),q={Name:Y.Name,Ref:hs(Y.RefersTo.slice(1),{r:0,c:0})};S.Sheets.length>0&&(q.Sheet=S.Sheets.length-1),S.Names.push(q);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(h[0].slice(-2)==="/>")break;h[1]==="/"?C+=n.slice(M,h.index):M=h.index+h[0].length;break;case"interior":if(!e.cellStyles)break;T.Interior=_n(h[0]);break;case"protection":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(h[0].slice(-2)==="/>")break;h[1]==="/"?Bg(B,O,n.slice(j,h.index)):j=h.index+h[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(h[1]==="/"){if((a=c.pop())[0]!==h[3])throw new Error("Bad state: "+a.join("|"))}else c.push([h[3],!1]);break;case"comment":if(h[1]==="/"){if((a=c.pop())[0]!==h[3])throw new Error("Bad state: "+a.join("|"));d3(L),G.push(L)}else c.push([h[3],!1]),a=_n(h[0]),L={a:a.Author};break;case"autofilter":if(h[1]==="/"){if((a=c.pop())[0]!==h[3])throw new Error("Bad state: "+a.join("|"))}else if(h[0].charAt(h[0].length-2)!=="/"){var K=_n(h[0]);u["!autofilter"]={ref:hs(K.Range).replace(/\$/g,"")},c.push([h[3],!0])}break;case"name":break;case"datavalidation":if(h[1]==="/"){if((a=c.pop())[0]!==h[3])throw new Error("Bad state: "+a.join("|"))}else h[0].charAt(h[0].length-2)!=="/"&&c.push([h[3],!0]);break;case"pixelsperinch":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(h[1]==="/"){if((a=c.pop())[0]!==h[3])throw new Error("Bad state: "+a.join("|"))}else h[0].charAt(h[0].length-2)!=="/"&&c.push([h[3],!0]);break;case"null":break;default:if(c.length==0&&h[3]=="document"||c.length==0&&h[3]=="uof")return oh(n,e);var Q=!0;switch(c[c.length-1][0]){case"officedocumentsettings":switch(h[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:Q=!1}break;case"componentoptions":switch(h[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:Q=!1}break;case"excelworkbook":switch(h[3]){case"date1904":S.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:Q=!1}break;case"workbookoptions":switch(h[3]){case"owcversion":break;case"height":break;case"width":break;default:Q=!1}break;case"worksheetoptions":switch(h[3]){case"visible":if(h[0].slice(-2)!=="/>")if(h[1]==="/")switch(n.slice(j,h.index)){case"SheetHidden":E.Hidden=1;break;case"SheetVeryHidden":E.Hidden=2;break}else j=h.index+h[0].length;break;case"header":u["!margins"]||Pi(u["!margins"]={},"xlml"),isNaN(+bt(h[0]).Margin)||(u["!margins"].header=+bt(h[0]).Margin);break;case"footer":u["!margins"]||Pi(u["!margins"]={},"xlml"),isNaN(+bt(h[0]).Margin)||(u["!margins"].footer=+bt(h[0]).Margin);break;case"pagemargins":var he=bt(h[0]);u["!margins"]||Pi(u["!margins"]={},"xlml"),isNaN(+he.Top)||(u["!margins"].top=+he.Top),isNaN(+he.Left)||(u["!margins"].left=+he.Left),isNaN(+he.Right)||(u["!margins"].right=+he.Right),isNaN(+he.Bottom)||(u["!margins"].bottom=+he.Bottom);break;case"displayrighttoleft":S.Views||(S.Views=[]),S.Views[0]||(S.Views[0]={}),S.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":u["!outline"]||(u["!outline"]={}),u["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":u["!outline"]||(u["!outline"]={}),u["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:Q=!1}break;case"pivottable":case"pivotcache":switch(h[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:Q=!1}break;case"pagebreaks":switch(h[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:Q=!1}break;case"autofilter":switch(h[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:Q=!1}break;case"querytable":switch(h[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:Q=!1}break;case"datavalidation":switch(h[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:Q=!1}break;case"sorting":case"conditionalformatting":switch(h[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:Q=!1}break;case"mapinfo":case"schema":case"data":switch(h[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:Q=!1}break;case"smarttags":break;default:Q=!1;break}if(Q||h[3].match(/!\[CDATA/))break;if(!c[c.length-1][1])throw"Unrecognized tag: "+h[3]+"|"+c.join("|");if(c[c.length-1][0]==="customdocumentproperties"){if(h[0].slice(-2)==="/>")break;h[1]==="/"?l3(U,O,H,n.slice(j,h.index)):(H=h,j=h.index+h[0].length);break}if(e.WTF)throw"Unrecognized tag: "+h[3]+"|"+c.join("|")}var we={};return!e.bookSheets&&!e.bookProps&&(we.Sheets=f),we.SheetNames=l,we.Workbook=S,we.SSF=Zt(xt),we.Props=B,we.Custprops=U,we}function Cf(t,r){switch(yl(r=r||{}),r.type||"base64"){case"base64":return Qo(nn(t),r);case"binary":case"buffer":case"file":return Qo(t,r);case"array":return Qo(bi(t),r)}}function p3(t,r){var e=[];return t.Props&&e.push(Lg(t.Props,r)),t.Custprops&&e.push(jg(t.Props,t.Custprops)),e.join("")}function m3(){return""}function g3(t,r){var e=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return r.cellXfs.forEach(function(n,i){var s=[];s.push(Qe("NumberFormat",null,{"ss:Format":$t(xt[n.numFmtId])}));var o={"ss:ID":"s"+(21+i)};e.push(Qe("Style",s.join(""),o))}),Qe("Styles",e.join(""))}function O0(t){return Qe("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+ml(t.Ref,{r:0,c:0})})}function v3(t){if(!((t||{}).Workbook||{}).Names)return"";for(var r=t.Workbook.Names,e=[],n=0;n<r.length;++n){var i=r[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||e.push(O0(i)))}return Qe("Names",e.join(""))}function x3(t,r,e,n){if(!t||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,s=[],o=0;o<i.length;++o){var h=i[o];h.Sheet==e&&(h.Name.match(/^_xlfn\./)||s.push(O0(h)))}return s.join("")}function b3(t,r,e,n){if(!t)return"";var i=[];if(t["!margins"]&&(i.push("<PageSetup>"),t["!margins"].header&&i.push(Qe("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&i.push(Qe("Footer",null,{"x:Margin":t["!margins"].footer})),i.push(Qe("PageMargins",null,{"x:Bottom":t["!margins"].bottom||"0.75","x:Left":t["!margins"].left||"0.7","x:Right":t["!margins"].right||"0.7","x:Top":t["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[e])if(n.Workbook.Sheets[e].Hidden)i.push(Qe("Visible",n.Workbook.Sheets[e].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var s=0;s<e&&!(n.Workbook.Sheets[s]&&!n.Workbook.Sheets[s].Hidden);++s);s==e&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),t["!protect"]&&(i.push(Cr("ProtectContents","True")),t["!protect"].objects&&i.push(Cr("ProtectObjects","True")),t["!protect"].scenarios&&i.push(Cr("ProtectScenarios","True")),t["!protect"].selectLockedCells!=null&&!t["!protect"].selectLockedCells?i.push(Cr("EnableSelection","NoSelection")):t["!protect"].selectUnlockedCells!=null&&!t["!protect"].selectUnlockedCells&&i.push(Cr("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){t["!protect"][o[0]]&&i.push("<"+o[1]+"/>")})),i.length==0?"":Qe("WorksheetOptions",i.join(""),{xmlns:qr.x})}function w3(t){return t.map(function(r){var e=Um(r.t||""),n=Qe("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return Qe("Comment",n,{"ss:Author":r.a})}).join("")}function y3(t,r,e,n,i,s,o){if(!t||t.v==null&&t.f==null)return"";var h={};if(t.f&&(h["ss:Formula"]="="+$t(ml(t.f,o))),t.F&&t.F.slice(0,r.length)==r){var c=vr(t.F.slice(r.length+1));h["ss:ArrayRange"]="RC:R"+(c.r==o.r?"":"["+(c.r-o.r)+"]")+"C"+(c.c==o.c?"":"["+(c.c-o.c)+"]")}if(t.l&&t.l.Target&&(h["ss:HRef"]=$t(t.l.Target),t.l.Tooltip&&(h["x:HRefScreenTip"]=$t(t.l.Tooltip))),e["!merges"])for(var a=e["!merges"],f=0;f!=a.length;++f)a[f].s.c!=o.c||a[f].s.r!=o.r||(a[f].e.c>a[f].s.c&&(h["ss:MergeAcross"]=a[f].e.c-a[f].s.c),a[f].e.r>a[f].s.r&&(h["ss:MergeDown"]=a[f].e.r-a[f].s.r));var l="",u="";switch(t.t){case"z":if(!n.sheetStubs)return"";break;case"n":l="Number",u=String(t.v);break;case"b":l="Boolean",u=t.v?"1":"0";break;case"e":l="Error",u=ii[t.v];break;case"d":l="DateTime",u=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||xt[14]);break;case"s":l="String",u=jm(t.v||"");break}var p=wi(n.cellXfs,t,n);h["ss:StyleID"]="s"+(21+p),h["ss:Index"]=o.c+1;var m=t.v!=null?u:"",d=t.t=="z"?"":'<Data ss:Type="'+l+'">'+m+"</Data>";return(t.c||[]).length>0&&(d+=w3(t.c)),Qe("Cell",d,h)}function _3(t,r){var e='<Row ss:Index="'+(t+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=ps(r.hpt)),r.hpx&&(e+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(e+=' ss:Hidden="1"')),e+">"}function E3(t,r,e,n){if(!t["!ref"])return"";var i=Lt(t["!ref"]),s=t["!merges"]||[],o=0,h=[];t["!cols"]&&t["!cols"].forEach(function(v,x){gi(v);var g=!!v.width,b=_o(x,v),w={"ss:Index":x+1};g&&(w["ss:Width"]=Vs(b.width)),v.hidden&&(w["ss:Hidden"]="1"),h.push(Qe("Column",null,w))});for(var c=Array.isArray(t),a=i.s.r;a<=i.e.r;++a){for(var f=[_3(a,(t["!rows"]||[])[a])],l=i.s.c;l<=i.e.c;++l){var u=!1;for(o=0;o!=s.length;++o)if(!(s[o].s.c>l)&&!(s[o].s.r>a)&&!(s[o].e.c<l)&&!(s[o].e.r<a)){(s[o].s.c!=l||s[o].s.r!=a)&&(u=!0);break}if(!u){var p={r:a,c:l},m=yt(p),d=c?(t[a]||[])[l]:t[m];f.push(y3(d,m,t,r,e,n,p))}}f.push("</Row>"),f.length>2&&h.push(f.join(""))}return h.join("")}function T3(t,r,e){var n=[],i=e.SheetNames[t],s=e.Sheets[i],o=s?x3(s,r,t,e):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=s?E3(s,r,t,e):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(b3(s,r,t,e)),n.join("")}function S3(t,r){r||(r={}),t.SSF||(t.SSF=Zt(xt)),t.SSF&&(vs(),mo(t.SSF),r.revssf=vo(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF,r.cellXfs=[],wi(r.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(p3(t,r)),e.push(m3()),e.push(""),e.push("");for(var n=0;n<t.SheetNames.length;++n)e.push(Qe("Worksheet",T3(n,r,t),{"ss:Name":$t(t.SheetNames[n])}));return e[2]=g3(t,r),e[3]=v3(t),fr+Qe("Workbook",e.join(""),{xmlns:qr.ss,"xmlns:o":qr.o,"xmlns:x":qr.x,"xmlns:ss":qr.ss,"xmlns:dt":qr.dt,"xmlns:html":qr.html})}function k3(t){var r={},e=t.content;if(e.l=28,r.AnsiUserType=e.read_shift(0,"lpstr-ansi"),r.AnsiClipboardFormat=vg(e),e.length-e.l<=4)return r;var n=e.read_shift(4);if(n==0||n>40||(e.l-=4,r.Reserved1=e.read_shift(0,"lpstr-ansi"),e.length-e.l<=4)||(n=e.read_shift(4),n!==1907505652)||(r.UnicodeClipboardFormat=xg(e),n=e.read_shift(4),n==0||n>40))return r;e.l-=4,r.Reserved2=e.read_shift(0,"lpwstr")}var C3=[60,1084,2066,2165,2175];function A3(t,r,e,n,i){var s=n,o=[],h=e.slice(e.l,e.l+s);if(i&&i.enc&&i.enc.insitu&&h.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:break;case 133:break;default:i.enc.insitu(h)}o.push(h),e.l+=s;for(var c=Zn(e,e.l),a=Af[c],f=0;a!=null&&C3.indexOf(c)>-1;)s=Zn(e,e.l+2),f=e.l+4,c==2066?f+=4:(c==2165||c==2175)&&(f+=12),h=e.slice(f,e.l+4+s),o.push(h),e.l+=4+s,a=Af[c=Zn(e,e.l)];var l=yr(o);kr(l,0);var u=0;l.lens=[];for(var p=0;p<o.length;++p)l.lens.push(u),u+=o[p].length;if(l.length<n)throw"XLS Record 0x"+t.toString(16)+" Truncated: "+l.length+" < "+n;return r.f(l,l.length,i)}function Dn(t,r,e){if(t.t!=="z"&&t.XF){var n=0;try{n=t.z||t.XF.numFmtId||0,r.cellNF&&(t.z=xt[n])}catch(s){if(r.WTF)throw s}if(!r||r.cellText!==!1)try{t.t==="e"?t.w=t.w||ii[t.v]:n===0||n=="General"?t.t==="n"?(t.v|0)===t.v?t.w=t.v.toString(10):t.w=js(t.v):t.w=Li(t.v):t.w=pn(n,t.v,{date1904:!!e,dateNF:r&&r.dateNF})}catch(s){if(r.WTF)throw s}if(r.cellDates&&n&&t.t=="n"&&gs(xt[n]||String(n))){var i=Ri(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 ja(t,r,e){return{v:t,ixfe:r,t:e}}function F3(t,r){var e={opts:{}},n={},i=r.dense?[]:{},s={},o={},h=null,c=[],a="",f={},l,u="",p,m,d,v,x={},g=[],b,w,y=[],T=[],C={Sheets:[],WBProps:{date1904:!1},Views:[{}]},M={},I=function(de){return de<8?Ii[de]:de<64&&T[de-8]||Ii[de]},B=function(de,_e,Re){var Ae=_e.XF.data;if(!(!Ae||!Ae.patternType||!Re||!Re.cellStyles)){_e.s={},_e.s.patternType=Ae.patternType;var Ne;(Ne=Xs(I(Ae.icvFore)))&&(_e.s.fgColor={rgb:Ne}),(Ne=Xs(I(Ae.icvBack)))&&(_e.s.bgColor={rgb:Ne})}},U=function(de,_e,Re){if(!(P>1)&&!(Re.sheetRows&&de.r>=Re.sheetRows)){if(Re.cellStyles&&_e.XF&&_e.XF.data&&B(de,_e,Re),delete _e.ixfe,delete _e.XF,l=de,u=yt(de),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),de.r<o.s.r&&(o.s.r=de.r),de.c<o.s.c&&(o.s.c=de.c),de.r+1>o.e.r&&(o.e.r=de.r+1),de.c+1>o.e.c&&(o.e.c=de.c+1),Re.cellFormula&&_e.f){for(var Ae=0;Ae<g.length;++Ae)if(!(g[Ae][0].s.c>de.c||g[Ae][0].s.r>de.r)&&!(g[Ae][0].e.c<de.c||g[Ae][0].e.r<de.r)){_e.F=Rt(g[Ae][0]),(g[Ae][0].s.c!=de.c||g[Ae][0].s.r!=de.r)&&delete _e.f,_e.f&&(_e.f=""+Ir(g[Ae][1],o,de,k,j));break}}Re.dense?(i[de.r]||(i[de.r]=[]),i[de.r][de.c]=_e):i[u]=_e}},j={enc:!1,sbcch:0,snames:[],sharedf:x,arrayf:g,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};r.password&&(j.password=r.password);var H,G=[],L=[],R=[],F=[],_=!1,k=[];k.SheetNames=j.snames,k.sharedf=j.sharedf,k.arrayf=j.arrayf,k.names=[],k.XTI=[];var N=0,P=0,D=0,A=[],S=[],E;j.codepage=1200,Sn(1200);for(var O=!1;t.l<t.length-1;){var z=t.l,J=t.read_shift(2);if(J===0&&N===10)break;var re=t.l===t.length?0:t.read_shift(2),se=Af[J];if(se&&se.f){if(r.bookSheets&&N===133&&J!==133)break;if(N=J,se.r===2||se.r==12){var Ce=t.read_shift(2);if(re-=2,!j.enc&&Ce!==J&&((Ce&255)<<8|Ce>>8)!==J)throw new Error("rt mismatch: "+Ce+"!="+J);se.r==12&&(t.l+=10,re-=10)}var Y={};if(J===10?Y=se.f(t,re,j):Y=A3(J,se,t,re,j),P==0&&[9,521,1033,2057].indexOf(N)===-1)continue;switch(J){case 34:e.opts.Date1904=C.WBProps.date1904=Y;break;case 134:e.opts.WriteProtect=!0;break;case 47:if(j.enc||(t.l=0),j.enc=Y,!r.password)throw new Error("File is password-protected");if(Y.valid==null)throw new Error("Encryption scheme unsupported");if(!Y.valid)throw new Error("Password is incorrect");break;case 92:j.lastuser=Y;break;case 66:var q=Number(Y);switch(q){case 21010:q=1200;break;case 32768:q=1e4;break;case 32769:q=1252;break}Sn(j.codepage=q),O=!0;break;case 317:j.rrtabid=Y;break;case 25:j.winlocked=Y;break;case 439:e.opts.RefreshAll=Y;break;case 12:e.opts.CalcCount=Y;break;case 16:e.opts.CalcDelta=Y;break;case 17:e.opts.CalcIter=Y;break;case 13:e.opts.CalcMode=Y;break;case 14:e.opts.CalcPrecision=Y;break;case 95:e.opts.CalcSaveRecalc=Y;break;case 15:j.CalcRefMode=Y;break;case 2211:e.opts.FullCalc=Y;break;case 129:Y.fDialog&&(i["!type"]="dialog"),Y.fBelow||((i["!outline"]||(i["!outline"]={})).above=!0),Y.fRight||((i["!outline"]||(i["!outline"]={})).left=!0);break;case 224:y.push(Y);break;case 430:k.push([Y]),k[k.length-1].XTI=[];break;case 35:case 547:k[k.length-1].push(Y);break;case 24:case 536:E={Name:Y.Name,Ref:Ir(Y.rgce,o,null,k,j)},Y.itab>0&&(E.Sheet=Y.itab-1),k.names.push(E),k[0]||(k[0]=[],k[0].XTI=[]),k[k.length-1].push(Y),Y.Name=="_xlnm._FilterDatabase"&&Y.itab>0&&Y.rgce&&Y.rgce[0]&&Y.rgce[0][0]&&Y.rgce[0][0][0]=="PtgArea3d"&&(S[Y.itab-1]={ref:Rt(Y.rgce[0][0][1][2])});break;case 22:j.ExternCount=Y;break;case 23:k.length==0&&(k[0]=[],k[0].XTI=[]),k[k.length-1].XTI=k[k.length-1].XTI.concat(Y),k.XTI=k.XTI.concat(Y);break;case 2196:if(j.biff<8)break;E!=null&&(E.Comment=Y[1]);break;case 18:i["!protect"]=Y;break;case 19:Y!==0&&j.WTF&&console.error("Password verifier: "+Y);break;case 133:s[Y.pos]=Y,j.snames.push(Y.name);break;case 10:{if(--P)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,i["!ref"]=Rt(o),r.sheetRows&&r.sheetRows<=o.e.r){var K=o.e.r;o.e.r=r.sheetRows-1,i["!fullref"]=i["!ref"],i["!ref"]=Rt(o),o.e.r=K}o.e.r++,o.e.c++}G.length>0&&(i["!merges"]=G),L.length>0&&(i["!objects"]=L),R.length>0&&(i["!cols"]=R),F.length>0&&(i["!rows"]=F),C.Sheets.push(M)}a===""?f=i:n[a]=i,i=r.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(j.biff===8&&(j.biff={9:2,521:3,1033:4}[J]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Y.BIFFVer]||8),j.biffguess=Y.BIFFVer==0,Y.BIFFVer==0&&Y.dt==4096&&(j.biff=5,O=!0,Sn(j.codepage=28591)),j.biff==8&&Y.BIFFVer==0&&Y.dt==16&&(j.biff=2),P++)break;if(i=r.dense?[]:{},j.biff<8&&!O&&(O=!0,Sn(j.codepage=r.codepage||1252)),j.biff<5||Y.BIFFVer==0&&Y.dt==4096){a===""&&(a="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var Q={pos:t.l-re,name:a};s[Q.pos]=Q,j.snames.push(a)}else a=(s[z]||{name:""}).name;Y.dt==32&&(i["!type"]="chart"),Y.dt==64&&(i["!type"]="macro"),G=[],L=[],j.arrayf=g=[],R=[],F=[],_=!1,M={Hidden:(s[z]||{hs:0}).hs,name:a}}break;case 515:case 3:case 2:i["!type"]=="chart"&&(r.dense?(i[Y.r]||[])[Y.c]:i[yt({c:Y.c,r:Y.r})])&&++Y.c,b={ixfe:Y.ixfe,XF:y[Y.ixfe]||{},v:Y.val,t:"n"},D>0&&(b.z=A[b.ixfe>>8&63]),Dn(b,r,e.opts.Date1904),U({c:Y.c,r:Y.r},b,r);break;case 5:case 517:b={ixfe:Y.ixfe,XF:y[Y.ixfe],v:Y.val,t:Y.t},D>0&&(b.z=A[b.ixfe>>8&63]),Dn(b,r,e.opts.Date1904),U({c:Y.c,r:Y.r},b,r);break;case 638:b={ixfe:Y.ixfe,XF:y[Y.ixfe],v:Y.rknum,t:"n"},D>0&&(b.z=A[b.ixfe>>8&63]),Dn(b,r,e.opts.Date1904),U({c:Y.c,r:Y.r},b,r);break;case 189:for(var he=Y.c;he<=Y.C;++he){var we=Y.rkrec[he-Y.c][0];b={ixfe:we,XF:y[we],v:Y.rkrec[he-Y.c][1],t:"n"},D>0&&(b.z=A[b.ixfe>>8&63]),Dn(b,r,e.opts.Date1904),U({c:he,r:Y.r},b,r)}break;case 6:case 518:case 1030:{if(Y.val=="String"){h=Y;break}if(b=ja(Y.val,Y.cell.ixfe,Y.tt),b.XF=y[b.ixfe],r.cellFormula){var ae=Y.formula;if(ae&&ae[0]&&ae[0][0]&&ae[0][0][0]=="PtgExp"){var te=ae[0][0][1][0],Z=ae[0][0][1][1],W=yt({r:te,c:Z});x[W]?b.f=""+Ir(Y.formula,o,Y.cell,k,j):b.F=((r.dense?(i[te]||[])[Z]:i[W])||{}).F}else b.f=""+Ir(Y.formula,o,Y.cell,k,j)}D>0&&(b.z=A[b.ixfe>>8&63]),Dn(b,r,e.opts.Date1904),U(Y.cell,b,r),h=Y}break;case 7:case 519:if(h)h.val=Y,b=ja(Y,h.cell.ixfe,"s"),b.XF=y[b.ixfe],r.cellFormula&&(b.f=""+Ir(h.formula,o,h.cell,k,j)),D>0&&(b.z=A[b.ixfe>>8&63]),Dn(b,r,e.opts.Date1904),U(h.cell,b,r),h=null;else throw new Error("String record expects Formula");break;case 33:case 545:{g.push(Y);var V=yt(Y[0].s);if(p=r.dense?(i[Y[0].s.r]||[])[Y[0].s.c]:i[V],r.cellFormula&&p){if(!h||!V||!p)break;p.f=""+Ir(Y[1],o,Y[0],k,j),p.F=Rt(Y[0])}}break;case 1212:{if(!r.cellFormula)break;if(u){if(!h)break;x[yt(h.cell)]=Y[0],p=r.dense?(i[h.cell.r]||[])[h.cell.c]:i[yt(h.cell)],(p||{}).f=""+Ir(Y[0],o,l,k,j)}}break;case 253:b=ja(c[Y.isst].t,Y.ixfe,"s"),c[Y.isst].h&&(b.h=c[Y.isst].h),b.XF=y[b.ixfe],D>0&&(b.z=A[b.ixfe>>8&63]),Dn(b,r,e.opts.Date1904),U({c:Y.c,r:Y.r},b,r);break;case 513:r.sheetStubs&&(b={ixfe:Y.ixfe,XF:y[Y.ixfe],t:"z"},D>0&&(b.z=A[b.ixfe>>8&63]),Dn(b,r,e.opts.Date1904),U({c:Y.c,r:Y.r},b,r));break;case 190:if(r.sheetStubs)for(var fe=Y.c;fe<=Y.C;++fe){var ye=Y.ixfe[fe-Y.c];b={ixfe:ye,XF:y[ye],t:"z"},D>0&&(b.z=A[b.ixfe>>8&63]),Dn(b,r,e.opts.Date1904),U({c:fe,r:Y.r},b,r)}break;case 214:case 516:case 4:b=ja(Y.val,Y.ixfe,"s"),b.XF=y[b.ixfe],D>0&&(b.z=A[b.ixfe>>8&63]),Dn(b,r,e.opts.Date1904),U({c:Y.c,r:Y.r},b,r);break;case 0:case 512:P===1&&(o=Y);break;case 252:c=Y;break;case 1054:if(j.biff==4){A[D++]=Y[1];for(var X=0;X<D+163&&xt[X]!=Y[1];++X);X>=163&&Qn(Y[1],D+163)}else Qn(Y[1],Y[0]);break;case 30:{A[D++]=Y;for(var ve=0;ve<D+163&&xt[ve]!=Y;++ve);ve>=163&&Qn(Y,D+163)}break;case 229:G=G.concat(Y);break;case 93:L[Y.cmo[0]]=j.lastobj=Y;break;case 438:j.lastobj.TxO=Y;break;case 127:j.lastobj.ImData=Y;break;case 440:for(v=Y[0].s.r;v<=Y[0].e.r;++v)for(d=Y[0].s.c;d<=Y[0].e.c;++d)p=r.dense?(i[v]||[])[d]:i[yt({c:d,r:v})],p&&(p.l=Y[1]);break;case 2048:for(v=Y[0].s.r;v<=Y[0].e.r;++v)for(d=Y[0].s.c;d<=Y[0].e.c;++d)p=r.dense?(i[v]||[])[d]:i[yt({c:d,r:v})],p&&p.l&&(p.l.Tooltip=Y[1]);break;case 28:{if(j.biff<=5&&j.biff>=2)break;p=r.dense?(i[Y[0].r]||[])[Y[0].c]:i[yt(Y[0])];var ke=L[Y[2]];p||(r.dense?(i[Y[0].r]||(i[Y[0].r]=[]),p=i[Y[0].r][Y[0].c]={t:"z"}):p=i[yt(Y[0])]={t:"z"},o.e.r=Math.max(o.e.r,Y[0].r),o.s.r=Math.min(o.s.r,Y[0].r),o.e.c=Math.max(o.e.c,Y[0].c),o.s.c=Math.min(o.s.c,Y[0].c)),p.c||(p.c=[]),m={a:Y[1],t:ke.TxO.t},p.c.push(m)}break;case 2173:gb(y[Y.ixfe],Y.ext);break;case 125:{if(!j.cellStyles)break;for(;Y.e>=Y.s;)R[Y.e--]={width:Y.w/256,level:Y.level||0,hidden:!!(Y.flags&1)},_||(_=!0,ul(Y.w/256)),gi(R[Y.e+1])}break;case 520:{var ee={};Y.level!=null&&(F[Y.r]=ee,ee.level=Y.level),Y.hidden&&(F[Y.r]=ee,ee.hidden=!0),Y.hpt&&(F[Y.r]=ee,ee.hpt=Y.hpt,ee.hpx=ps(Y.hpt))}break;case 38:case 39:case 40:case 41:i["!margins"]||Pi(i["!margins"]={}),i["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[J]]=Y;break;case 161:i["!margins"]||Pi(i["!margins"]={}),i["!margins"].header=Y.header,i["!margins"].footer=Y.footer;break;case 574:Y.RTL&&(C.Views[0].RTL=!0);break;case 146:T=Y;break;case 2198:H=Y;break;case 140:w=Y;break;case 442:a?M.CodeName=Y||M.name:C.WBProps.CodeName=Y||"ThisWorkbook";break}}else se||console.error("Missing Info for XLS Record 0x"+J.toString(16)),t.l+=re}return e.SheetNames=or(s).sort(function(ne,de){return Number(ne)-Number(de)}).map(function(ne){return s[ne].name}),r.bookSheets||(e.Sheets=n),!e.SheetNames.length&&f["!ref"]?(e.SheetNames.push("Sheet1"),e.Sheets&&(e.Sheets.Sheet1=f)):e.Preamble=f,e.Sheets&&S.forEach(function(ne,de){e.Sheets[e.SheetNames[de]]["!autofilter"]=ne}),e.Strings=c,e.SSF=Zt(xt),j.enc&&(e.Encryption=j.enc),H&&(e.Themes=H),e.Metadata={},w!==void 0&&(e.Metadata.Country=w),k.names.length>0&&(C.Names=k.names),e.Workbook=C,e}var Bs={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function R3(t,r,e){var n=ut.find(t,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var i=Lc(n,yf,Bs.DSI);for(var s in i)r[s]=i[s]}catch(a){if(e.WTF)throw a}var o=ut.find(t,"/!SummaryInformation");if(o&&o.size>0)try{var h=Lc(o,_f,Bs.SI);for(var c in h)r[c]==null&&(r[c]=h[c])}catch(a){if(e.WTF)throw a}r.HeadingPairs&&r.TitlesOfParts&&(Mu(r.HeadingPairs,r.TitlesOfParts,r,e),delete r.HeadingPairs,delete r.TitlesOfParts)}function M3(t,r){var e=[],n=[],i=[],s=0,o,h=pc(yf,"n"),c=pc(_f,"n");if(t.Props)for(o=or(t.Props),s=0;s<o.length;++s)(Object.prototype.hasOwnProperty.call(h,o[s])?e:Object.prototype.hasOwnProperty.call(c,o[s])?n:i).push([o[s],t.Props[o[s]]]);if(t.Custprops)for(o=or(t.Custprops),s=0;s<o.length;++s)Object.prototype.hasOwnProperty.call(t.Props||{},o[s])||(Object.prototype.hasOwnProperty.call(h,o[s])?e:Object.prototype.hasOwnProperty.call(c,o[s])?n:i).push([o[s],t.Custprops[o[s]]]);var a=[];for(s=0;s<i.length;++s)Lu.indexOf(i[s][0])>-1||Ru.indexOf(i[s][0])>-1||i[s][1]!=null&&a.push(i[s]);n.length&&ut.utils.cfb_add(r,"/SummaryInformation",jc(n,Bs.SI,c,_f)),(e.length||a.length)&&ut.utils.cfb_add(r,"/DocumentSummaryInformation",jc(e,Bs.DSI,h,yf,a.length?a:null,Bs.UDI))}function I0(t,r){r||(r={}),yl(r),Wf(),r.codepage&&$f(r.codepage);var e,n;if(t.FullPaths){if(ut.find(t,"/encryption"))throw new Error("File is password-protected");e=ut.find(t,"!CompObj"),n=ut.find(t,"/Workbook")||ut.find(t,"/Book")}else{switch(r.type){case"base64":t=tn(nn(t));break;case"binary":t=tn(t);break;case"buffer":break;case"array":Array.isArray(t)||(t=Array.prototype.slice.call(t));break}kr(t,0),n={content:t}}var i,s;if(e&&k3(e),r.bookProps&&!r.bookSheets)i={};else{var o=St?"buffer":"array";if(n&&n.content)i=F3(n.content,r);else if((s=ut.find(t,"PerfectOffice_MAIN"))&&s.content)i=Ni.to_workbook(s.content,(r.type=o,r));else if((s=ut.find(t,"NativeContent_MAIN"))&&s.content)i=Ni.to_workbook(s.content,(r.type=o,r));else throw(s=ut.find(t,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");r.bookVBA&&t.FullPaths&&ut.find(t,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=Wb(t))}var h={};return t.FullPaths&&R3(t,h,r),i.Props=i.Custprops=h,r.bookFiles&&(i.cfb=t),i}function O3(t,r){var e=r||{},n=ut.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 ut.utils.cfb_add(n,i,D0(t,e)),e.biff==8&&(t.Props||t.Custprops)&&M3(t,n),e.biff==8&&t.vbaraw&&Xb(n,ut.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),n}var Ys={0:{f:r_},1:{f:c_},2:{f:F_},3:{f:x_},4:{f:p_},5:{f:k_},6:{f:D_},7:{f:__},8:{f:H_},9:{f:U_},10:{f:L_},11:{f:j_},12:{f:u_},13:{f:M_},14:{f:w_},15:{f:g_},16:{f:S0},17:{f:P_},18:{f:T_},19:{f:rl},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:P4},40:{},42:{},43:{f:D2},44:{f:O2},45:{f:B2},46:{f:j2},47:{f:L2},48:{},49:{f:sg},50:{},51:{f:bb},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Yu},62:{f:I_},63:{f:Ab},64:{f:n4},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Lr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:q_},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:f_},148:{f:s_,p:16},151:{f:G_},152:{},153:{f:I4},154:{},155:{},156:{f:M4},157:{},158:{},159:{T:1,f:Yx},160:{T:-1},161:{T:1,f:Yi},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:z_},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:vb},336:{T:-1},337:{f:_b,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:wf},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Ku},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:K_},427:{f:Y_},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:J_},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:o_},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:X_},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:wf},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:jb},633:{T:1},634:{T:-1},635:{T:1,f:Bb},636:{T:-1},637:{f:lg},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:w4},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:i4},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:""}},Af={6:{f:Zo},10:{f:fi},12:{f:hr},13:{f:hr},14:{f:sr},15:{f:sr},16:{f:Nr},17:{f:sr},18:{f:sr},19:{f:hr},20:{f:Xc},21:{f:Xc},23:{f:Ku},24:{f:Gc},25:{f:sr},26:{},27:{},28:{f:ix},29:{},34:{f:sr},35:{f:Vc},38:{f:Nr},39:{f:Nr},40:{f:Nr},41:{f:Nr},42:{f:sr},43:{f:sr},47:{f:g2},49:{f:Mv},51:{f:hr},60:{},61:{f:kv},64:{f:sr},65:{f:Rv},66:{f:hr},77:{},80:{},81:{},82:{},85:{f:hr},89:{},90:{},91:{},92:{f:mv},93:{f:ox},94:{},95:{f:sr},96:{},97:{},99:{f:sr},125:{f:Yu},128:{f:Vv},129:{f:vv},130:{f:hr},131:{f:sr},132:{f:sr},133:{f:xv},134:{},140:{f:mx},141:{f:hr},144:{},146:{f:xx},151:{},152:{},153:{},154:{},155:{},156:{f:hr},157:{},158:{},160:{f:Sx},161:{f:yx},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:zv},190:{f:$v},193:{f:fi},197:{},198:{},199:{},200:{},201:{},202:{f:sr},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:hr},220:{},221:{f:sr},222:{},224:{f:Xv},225:{f:pv},226:{f:fi},227:{},229:{f:sx},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:wv},253:{f:Iv},255:{f:_v},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:ju},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:sr},353:{f:fi},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:Jv},431:{f:sr},432:{},433:{},434:{},437:{},438:{f:cx},439:{f:sr},440:{f:hx},441:{},442:{f:ia},443:{},444:{f:hr},445:{},446:{},448:{f:fi},449:{f:Sv,r:2},450:{f:fi},512:{f:zc},513:{f:Tx},515:{f:Yv},516:{f:Nv},517:{f:Wc},519:{f:kx},520:{f:Ev},523:{},545:{f:Kc},549:{f:Hc},566:{},574:{f:Av},638:{f:Hv},659:{},1048:{},1054:{f:Bv},1084:{},1212:{f:tx},2048:{f:dx},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Pa},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:fi},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:bx,r:12},2173:{f:mb,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:sr,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:ex,r:12},2197:{},2198:{f:lb,r:12},2199:{},2200:{},2201:{},2202:{f:rx,r:12},2203:{f:fi},2204:{},2205:{},2206:{},2207:{},2211:{f:Tv},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:hr},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:_x},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:vx},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:zc},1:{},2:{f:Mx},3:{f:Fx},4:{f:Ax},5:{f:Wc},7:{f:Ix},8:{},9:{f:Pa},11:{},22:{f:hr},30:{f:jv},31:{},32:{},33:{f:Kc},36:{},37:{f:Hc},50:{f:Dx},62:{},52:{},67:{},68:{f:hr},69:{},86:{},126:{},127:{f:Cx},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:Nx},223:{},234:{},354:{},421:{},518:{f:Zo},521:{f:Pa},536:{f:Gc},547:{f:Vc},561:{},579:{},1030:{f:Zo},1033:{f:Pa},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function qe(t,r,e,n){var i=r;if(!isNaN(i)){var s=n||(e||[]).length||0,o=t.next(4);o.write_shift(2,i),o.write_shift(2,s),s>0&&tl(e)&&t.push(e)}}function I3(t,r,e,n){var i=n||(e||[]).length||0;if(i<=8224)return qe(t,r,e,i);var s=r;if(!isNaN(s)){for(var o=e.parts||[],h=0,c=0,a=0;a+(o[h]||8224)<=8224;)a+=o[h]||8224,h++;var f=t.next(4);for(f.write_shift(2,s),f.write_shift(2,a),t.push(e.slice(c,c+a)),c+=a;c<i;){for(f=t.next(4),f.write_shift(2,60),a=0;a+(o[h]||8224)<=8224;)a+=o[h]||8224,h++;f.write_shift(2,a),t.push(e.slice(c,c+a)),c+=a}}}function fa(t,r,e){return t||(t=We(7)),t.write_shift(2,r),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function D3(t,r,e,n){var i=We(9);return fa(i,t,r),Uu(e,n||"b",i),i}function N3(t,r,e){var n=We(8+2*e.length);return fa(n,t,r),n.write_shift(1,e.length),n.write_shift(e.length,e,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function P3(t,r,e,n){if(r.v!=null)switch(r.t){case"d":case"n":var i=r.t=="d"?Ar(qt(r.v)):r.v;i==(i|0)&&i>=0&&i<65536?qe(t,2,Ox(e,n,i)):qe(t,3,Rx(e,n,i));return;case"b":case"e":qe(t,5,D3(e,n,r.v,r.t));return;case"s":case"str":qe(t,4,N3(e,n,(r.v||"").slice(0,255)));return}qe(t,1,fa(null,e,n))}function B3(t,r,e,n){var i=Array.isArray(r),s=Lt(r["!ref"]||"A1"),o,h="",c=[];if(s.e.c>255||s.e.r>16383){if(n.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");s.e.c=Math.min(s.e.c,255),s.e.r=Math.min(s.e.c,16383),o=Rt(s)}for(var a=s.s.r;a<=s.e.r;++a){h=Er(a);for(var f=s.s.c;f<=s.e.c;++f){a===s.s.r&&(c[f]=dr(f)),o=c[f]+h;var l=i?(r[a]||[])[f]:r[o];l&&P3(t,l,a,f)}}}function L3(t,r){for(var e=r||{},n=Jr(),i=0,s=0;s<t.SheetNames.length;++s)t.SheetNames[s]==e.sheet&&(i=s);if(i==0&&e.sheet&&t.SheetNames[0]!=e.sheet)throw new Error("Sheet not found: "+e.sheet);return qe(n,e.biff==4?1033:e.biff==3?521:9,ll(t,16,e)),B3(n,t.Sheets[t.SheetNames[i]],i,e),qe(n,10),n.end()}function j3(t,r,e){qe(t,49,Ov({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},e))}function U3(t,r,e){r&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&qe(t,1054,Lv(i,r[i],e))})}function H3(t,r){var e=We(19);e.write_shift(4,2151),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(2,3),e.write_shift(1,1),e.write_shift(4,0),qe(t,2151,e),e=We(39),e.write_shift(4,2152),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(2,3),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(2,1),e.write_shift(4,4),e.write_shift(2,0),Xu(Lt(r["!ref"]||"A1"),e),e.write_shift(4,4),qe(t,2152,e)}function z3(t,r){for(var e=0;e<16;++e)qe(t,224,$c({numFmtId:0,style:!0},0,r));r.cellXfs.forEach(function(n){qe(t,224,$c(n,0,r))})}function $3(t,r){for(var e=0;e<r["!links"].length;++e){var n=r["!links"][e];qe(t,440,ux(n)),n[1].Tooltip&&qe(t,2048,px(n))}delete r["!links"]}function W3(t,r){if(r){var e=0;r.forEach(function(n,i){++e<=256&&n&&qe(t,125,wx(_o(i,n),i))})}}function X3(t,r,e,n,i){var s=16+wi(i.cellXfs,r,i);if(r.v==null&&!r.bf){qe(t,513,zi(e,n,s));return}if(r.bf)qe(t,6,vy(r,e,n,i,s));else switch(r.t){case"d":case"n":var o=r.t=="d"?Ar(qt(r.v)):r.v;qe(t,515,Zv(e,n,o,s));break;case"b":case"e":qe(t,517,Kv(e,n,r.v,s,i,r.t));break;case"s":case"str":if(i.bookSST){var h=vl(i.Strings,r.v,i.revStrings);qe(t,253,Dv(e,n,h,s))}else qe(t,516,Pv(e,n,(r.v||"").slice(0,255),s,i));break;default:qe(t,513,zi(e,n,s))}}function V3(t,r,e){var n=Jr(),i=e.SheetNames[t],s=e.Sheets[i]||{},o=(e||{}).Workbook||{},h=(o.Sheets||[])[t]||{},c=Array.isArray(s),a=r.biff==8,f,l="",u=[],p=Lt(s["!ref"]||"A1"),m=a?65536:16384;if(p.e.c>255||p.e.r>=m){if(r.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:IV16384");p.e.c=Math.min(p.e.c,255),p.e.r=Math.min(p.e.c,m-1)}qe(n,2057,ll(e,16,r)),qe(n,13,un(1)),qe(n,12,un(100)),qe(n,15,Wr(!0)),qe(n,17,Wr(!1)),qe(n,16,Ui(.001)),qe(n,95,Wr(!0)),qe(n,42,Wr(!1)),qe(n,43,Wr(!1)),qe(n,130,un(1)),qe(n,128,Gv([0,0])),qe(n,131,Wr(!1)),qe(n,132,Wr(!1)),a&&W3(n,s["!cols"]),qe(n,512,Uv(p,r)),a&&(s["!links"]=[]);for(var d=p.s.r;d<=p.e.r;++d){l=Er(d);for(var v=p.s.c;v<=p.e.c;++v){d===p.s.r&&(u[v]=dr(v)),f=u[v]+l;var x=c?(s[d]||[])[v]:s[f];x&&(X3(n,x,d,v,r),a&&x.l&&s["!links"].push([f,x.l]))}}var g=h.CodeName||h.name||i;return a&&qe(n,574,Fv((o.Views||[])[0])),a&&(s["!merges"]||[]).length&&qe(n,229,ax(s["!merges"])),a&&$3(n,s),qe(n,442,Hu(g)),a&&H3(n,s),qe(n,10),n.end()}function G3(t,r,e){var n=Jr(),i=(t||{}).Workbook||{},s=i.Sheets||[],o=i.WBProps||{},h=e.biff==8,c=e.biff==5;if(qe(n,2057,ll(t,5,e)),e.bookType=="xla"&&qe(n,135),qe(n,225,h?un(1200):null),qe(n,193,Kg(2)),c&&qe(n,191),c&&qe(n,192),qe(n,226),qe(n,92,gv("SheetJS",e)),qe(n,66,un(h?1200:1252)),h&&qe(n,353,un(0)),h&&qe(n,448),qe(n,317,Ex(t.SheetNames.length)),h&&t.vbaraw&&qe(n,211),h&&t.vbaraw){var a=o.CodeName||"ThisWorkbook";qe(n,442,Hu(a))}qe(n,156,un(17)),qe(n,25,Wr(!1)),qe(n,18,Wr(!1)),qe(n,19,un(0)),h&&qe(n,431,Wr(!1)),h&&qe(n,444,un(0)),qe(n,61,Cv()),qe(n,64,Wr(!1)),qe(n,141,un(0)),qe(n,34,Wr(S4(t)=="true")),qe(n,14,Wr(!0)),h&&qe(n,439,Wr(!1)),qe(n,218,un(0)),j3(n,t,e),U3(n,t.SSF,e),z3(n,e),h&&qe(n,352,Wr(!1));var f=n.end(),l=Jr();h&&qe(l,140,gx()),h&&e.Strings&&I3(l,252,yv(e.Strings)),qe(l,10);var u=l.end(),p=Jr(),m=0,d=0;for(d=0;d<t.SheetNames.length;++d)m+=(h?12:11)+(h?2:1)*t.SheetNames[d].length;var v=f.length+m+u.length;for(d=0;d<t.SheetNames.length;++d){var x=s[d]||{};qe(p,133,bv({pos:v,hs:x.Hidden||0,dt:0,name:t.SheetNames[d]},e)),v+=r[d].length}var g=p.end();if(m!=g.length)throw new Error("BS8 "+m+" != "+g.length);var b=[];return f.length&&b.push(f),g.length&&b.push(g),u.length&&b.push(u),yr(b)}function K3(t,r){var e=r||{},n=[];t&&!t.SSF&&(t.SSF=Zt(xt)),t&&t.SSF&&(vs(),mo(t.SSF),e.revssf=vo(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,_l(e),e.cellXfs=[],wi(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var i=0;i<t.SheetNames.length;++i)n[n.length]=V3(i,e,t);return n.unshift(G3(t,n,e)),yr(n)}function D0(t,r){for(var e=0;e<=t.SheetNames.length;++e){var n=t.Sheets[t.SheetNames[e]];if(!(!n||!n["!ref"])){var i=mn(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+t.SheetNames[e]+"' extends beyond column IV (255). Data may be lost.")}}var s=r||{};switch(s.biff||2){case 8:case 5:return K3(t,r);case 4:case 3:case 2:return L3(t,r)}throw new Error("invalid type "+s.bookType+" for BIFF")}function ih(t,r){var e=r||{},n=e.dense?[]:{};t=t.replace(/<!--.*?-->/g,"");var i=t.match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var s=t.match(/<\/table/i),o=i.index,h=s&&s.index||t.length,c=Om(t.slice(o,h),/(:?<tr[^>]*>)/i,"<tr>"),a=-1,f=0,l=0,u=0,p={s:{r:1e7,c:1e7},e:{r:0,c:0}},m=[];for(o=0;o<c.length;++o){var d=c[o].trim(),v=d.slice(0,3).toLowerCase();if(v=="<tr"){if(++a,e.sheetRows&&e.sheetRows<=a){--a;break}f=0;continue}if(!(v!="<td"&&v!="<th")){var x=d.split(/<\/t[dh]>/i);for(h=0;h<x.length;++h){var g=x[h].trim();if(g.match(/<t[dh]/i)){for(var b=g,w=0;b.charAt(0)=="<"&&(w=b.indexOf(">"))>-1;)b=b.slice(w+1);for(var y=0;y<m.length;++y){var T=m[y];T.s.c==f&&T.s.r<a&&a<=T.e.r&&(f=T.e.c+1,y=-1)}var C=bt(g.slice(0,g.indexOf(">")));u=C.colspan?+C.colspan:1,((l=+C.rowspan)>1||u>1)&&m.push({s:{r:a,c:f},e:{r:a+(l||1)-1,c:f+u-1}});var M=C.t||C["data-t"]||"";if(!b.length){f+=u;continue}if(b=Hm(b),p.s.r>a&&(p.s.r=a),p.e.r<a&&(p.e.r=a),p.s.c>f&&(p.s.c=f),p.e.c<f&&(p.e.c=f),!b.length){f+=u;continue}var I={t:"s",v:b};e.raw||!b.trim().length||M=="s"||(b==="TRUE"?I={t:"b",v:!0}:b==="FALSE"?I={t:"b",v:!1}:isNaN(qn(b))?isNaN(Us(b).getDate())||(I={t:"d",v:qt(b)},e.cellDates||(I={t:"n",v:Ar(I.v)}),I.z=e.dateNF||xt[14]):I={t:"n",v:qn(b)}),e.dense?(n[a]||(n[a]=[]),n[a][f]=I):n[yt({r:a,c:f})]=I,f+=u}}}}return n["!ref"]=Rt(p),m.length&&(n["!merges"]=m),n}function Y3(t,r,e,n){for(var i=t["!merges"]||[],s=[],o=r.s.c;o<=r.e.c;++o){for(var h=0,c=0,a=0;a<i.length;++a)if(!(i[a].s.r>e||i[a].s.c>o)&&!(i[a].e.r<e||i[a].e.c<o)){if(i[a].s.r<e||i[a].s.c<o){h=-1;break}h=i[a].e.r-i[a].s.r+1,c=i[a].e.c-i[a].s.c+1;break}if(!(h<0)){var f=yt({r:e,c:o}),l=n.dense?(t[e]||[])[o]:t[f],u=l&&l.v!=null&&(l.h||Qf(l.w||(mi(l),l.w)||""))||"",p={};h>1&&(p.rowspan=h),c>1&&(p.colspan=c),n.editable?u='<span contenteditable="true">'+u+"</span>":l&&(p["data-t"]=l&&l.t||"z",l.v!=null&&(p["data-v"]=l.v),l.z!=null&&(p["data-z"]=l.z),l.l&&(l.l.Target||"#").charAt(0)!="#"&&(u='<a href="'+l.l.Target+'">'+u+"</a>")),p.id=(n.id||"sjs")+"-"+f,s.push(Qe("td",u,p))}}var m="<tr>";return m+s.join("")+"</tr>"}var Z3='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',J3="</body></html>";function Q3(t,r){var e=t.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!e||e.length==0)throw new Error("Invalid HTML: could not find <table>");if(e.length==1)return Xi(ih(e[0],r),r);var n=$0();return e.forEach(function(i,s){W0(n,ih(i,r),"Sheet"+(s+1))}),n}function q3(t,r,e){var n=[];return n.join("")+"<table"+(e&&e.id?' id="'+e.id+'"':"")+">"}function e6(t,r){var e=r||{},n=e.header!=null?e.header:Z3,i=e.footer!=null?e.footer:J3,s=[n],o=mn(t["!ref"]);e.dense=Array.isArray(t),s.push(q3(t,o,e));for(var h=o.s.r;h<=o.e.r;++h)s.push(Y3(t,o,h,e));return s.push("</table>"+i),s.join("")}function t6(t){var r=t.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(n,i){return Array(parseInt(i,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,`
|
||
`),e=Pt(r.replace(/<[^>]*>/g,""));return[e]}var sh={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 N0(t,r){var e=r||{},n=qf(t),i=[],s,o,h={name:""},c="",a=0,f,l,u={},p=[],m=e.dense?[]:{},d,v,x={value:""},g="",b=0,w=[],y=-1,T=-1,C={s:{r:1e6,c:1e7},e:{r:0,c:0}},M=0,I={},B=[],U={},j=0,H=0,G=[],L=1,R=1,F=[],_={Names:[]},k={},N=["",""],P=[],D={},A="",S=0,E=!1,O=!1,z=0;for($s.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");d=$s.exec(n);)switch(d[3]=d[3].replace(/_.*$/,"")){case"table":case"工作表":d[1]==="/"?(C.e.c>=C.s.c&&C.e.r>=C.s.r?m["!ref"]=Rt(C):m["!ref"]="A1:A1",e.sheetRows>0&&e.sheetRows<=C.e.r&&(m["!fullref"]=m["!ref"],C.e.r=e.sheetRows-1,m["!ref"]=Rt(C)),B.length&&(m["!merges"]=B),G.length&&(m["!rows"]=G),f.name=f.名称||f.name,typeof JSON<"u"&&JSON.stringify(f),p.push(f.name),u[f.name]=m,O=!1):d[0].charAt(d[0].length-2)!=="/"&&(f=bt(d[0],!1),y=T=-1,C.s.r=C.s.c=1e7,C.e.r=C.e.c=0,m=e.dense?[]:{},B=[],G=[],O=!0);break;case"table-row-group":d[1]==="/"?--M:++M;break;case"table-row":case"行":if(d[1]==="/"){y+=L,L=1;break}if(l=bt(d[0],!1),l.行号?y=l.行号-1:y==-1&&(y=0),L=+l["number-rows-repeated"]||1,L<10)for(z=0;z<L;++z)M>0&&(G[y+z]={level:M});T=-1;break;case"covered-table-cell":d[1]!=="/"&&++T,e.sheetStubs&&(e.dense?(m[y]||(m[y]=[]),m[y][T]={t:"z"}):m[yt({r:y,c:T})]={t:"z"}),g="",w=[];break;case"table-cell":case"数据":if(d[0].charAt(d[0].length-2)==="/")++T,x=bt(d[0],!1),R=parseInt(x["number-columns-repeated"]||"1",10),v={t:"z",v:null},x.formula&&e.cellFormula!=!1&&(v.f=th(Pt(x.formula))),(x.数据类型||x["value-type"])=="string"&&(v.t="s",v.v=Pt(x["string-value"]||""),e.dense?(m[y]||(m[y]=[]),m[y][T]=v):m[yt({r:y,c:T})]=v),T+=R-1;else if(d[1]!=="/"){++T,g="",b=0,w=[],R=1;var J=L?y+L-1:y;if(T>C.e.c&&(C.e.c=T),T<C.s.c&&(C.s.c=T),y<C.s.r&&(C.s.r=y),J>C.e.r&&(C.e.r=J),x=bt(d[0],!1),P=[],D={},v={t:x.数据类型||x["value-type"],v:null},e.cellFormula)if(x.formula&&(x.formula=Pt(x.formula)),x["number-matrix-columns-spanned"]&&x["number-matrix-rows-spanned"]&&(j=parseInt(x["number-matrix-rows-spanned"],10)||0,H=parseInt(x["number-matrix-columns-spanned"],10)||0,U={s:{r:y,c:T},e:{r:y+j-1,c:T+H-1}},v.F=Rt(U),F.push([U,v.F])),x.formula)v.f=th(x.formula);else for(z=0;z<F.length;++z)y>=F[z][0].s.r&&y<=F[z][0].e.r&&T>=F[z][0].s.c&&T<=F[z][0].e.c&&(v.F=F[z][1]);switch((x["number-columns-spanned"]||x["number-rows-spanned"])&&(j=parseInt(x["number-rows-spanned"],10)||0,H=parseInt(x["number-columns-spanned"],10)||0,U={s:{r:y,c:T},e:{r:y+j-1,c:T+H-1}},B.push(U)),x["number-columns-repeated"]&&(R=parseInt(x["number-columns-repeated"],10)),v.t){case"boolean":v.t="b",v.v=Yt(x["boolean-value"]);break;case"float":v.t="n",v.v=parseFloat(x.value);break;case"percentage":v.t="n",v.v=parseFloat(x.value);break;case"currency":v.t="n",v.v=parseFloat(x.value);break;case"date":v.t="d",v.v=qt(x["date-value"]),e.cellDates||(v.t="n",v.v=Ar(v.v)),v.z="m/d/yy";break;case"time":v.t="n",v.v=Fm(x["time-value"])/86400,e.cellDates&&(v.t="d",v.v=xo(v.v)),v.z="HH:MM:SS";break;case"number":v.t="n",v.v=parseFloat(x.数据数值);break;default:if(v.t==="string"||v.t==="text"||!v.t)v.t="s",x["string-value"]!=null&&(g=Pt(x["string-value"]),w=[]);else throw new Error("Unsupported value type "+v.t)}}else{if(E=!1,v.t==="s"&&(v.v=g||"",w.length&&(v.R=w),E=b==0),k.Target&&(v.l=k),P.length>0&&(v.c=P,P=[]),g&&e.cellText!==!1&&(v.w=g),E&&(v.t="z",delete v.v),(!E||e.sheetStubs)&&!(e.sheetRows&&e.sheetRows<=y))for(var re=0;re<L;++re){if(R=parseInt(x["number-columns-repeated"]||"1",10),e.dense)for(m[y+re]||(m[y+re]=[]),m[y+re][T]=re==0?v:Zt(v);--R>0;)m[y+re][T+R]=Zt(v);else for(m[yt({r:y+re,c:T})]=v;--R>0;)m[yt({r:y+re,c:T+R})]=Zt(v);C.e.c<=T&&(C.e.c=T)}R=parseInt(x["number-columns-repeated"]||"1",10),T+=R-1,R=0,v={},g="",w=[]}k={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(d[1]==="/"){if((s=i.pop())[0]!==d[3])throw"Bad state: "+s}else d[0].charAt(d[0].length-2)!=="/"&&i.push([d[3],!0]);break;case"annotation":if(d[1]==="/"){if((s=i.pop())[0]!==d[3])throw"Bad state: "+s;D.t=g,w.length&&(D.R=w),D.a=A,P.push(D)}else d[0].charAt(d[0].length-2)!=="/"&&i.push([d[3],!1]);A="",S=0,g="",b=0,w=[];break;case"creator":d[1]==="/"?A=n.slice(S,d.index):S=d.index+d[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(d[1]==="/"){if((s=i.pop())[0]!==d[3])throw"Bad state: "+s}else d[0].charAt(d[0].length-2)!=="/"&&i.push([d[3],!1]);g="",b=0,w=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(d[1]==="/"){if(I[h.name]=c,(s=i.pop())[0]!==d[3])throw"Bad state: "+s}else d[0].charAt(d[0].length-2)!=="/"&&(c="",h=bt(d[0],!1),i.push([d[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(i[i.length-1][0]){case"time-style":case"date-style":o=bt(d[0],!1),c+=sh[d[3]][o.style==="long"?1:0];break}break;case"fraction":break;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(i[i.length-1][0]){case"time-style":case"date-style":o=bt(d[0],!1),c+=sh[d[3]][o.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(d[0].slice(-2)==="/>")break;if(d[1]==="/")switch(i[i.length-1][0]){case"number-style":case"date-style":case"time-style":c+=n.slice(a,d.index);break}else a=d.index+d[0].length;break;case"named-range":o=bt(d[0],!1),N=Jo(o["cell-range-address"]);var se={Name:o.name,Ref:N[0]+"!"+N[1]};O&&(se.Sheet=p.length),_.Names.push(se);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(i[i.length-1][0])>-1)break;if(d[1]==="/"&&(!x||!x["string-value"])){var Ce=t6(n.slice(b,d.index));g=(g.length>0?g+`
|
||
`:"")+Ce[0]}else bt(d[0],!1),b=d.index+d[0].length;break;case"s":break;case"database-range":if(d[1]==="/")break;try{N=Jo(bt(d[0])["target-range-address"]),u[N[0]]["!autofilter"]={ref:N[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;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":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;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":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(d[1]!=="/"){if(k=bt(d[0],!1),!k.href)break;k.Target=Pt(k.href),delete k.href,k.Target.charAt(0)=="#"&&k.Target.indexOf(".")>-1?(N=Jo(k.Target.slice(1)),k.Target="#"+N[0]+"!"+N[1]):k.Target.match(/^\.\.[\\\/]/)&&(k.Target=k.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(d[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(e.WTF)throw new Error(d)}}var Y={Sheets:u,SheetNames:p,Workbook:_};return e.bookSheets&&delete Y.Sheets,Y}function ah(t,r){r=r||{},hn(t,"META-INF/manifest.xml")&&Fg(cr(t,"META-INF/manifest.xml"),r);var e=rn(t,"content.xml");if(!e)throw new Error("Missing content.xml in ODS / UOF file");var n=N0(Wt(e),r);return hn(t,"meta.xml")&&(n.Props=Au(cr(t,"meta.xml"))),n}function oh(t,r){return N0(t,r)}var r6=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 "+zs({"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 fr+r}}(),fh=function(){var t=function(s){return $t(s).replace(/ +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},r=` <table:table-cell />
|
||
`,e=` <table:covered-table-cell/>
|
||
`,n=function(s,o,h){var c=[];c.push(' <table:table table:name="'+$t(o.SheetNames[h])+`" table:style-name="ta1">
|
||
`);var a=0,f=0,l=mn(s["!ref"]||"A1"),u=s["!merges"]||[],p=0,m=Array.isArray(s);if(s["!cols"])for(f=0;f<=l.e.c;++f)c.push(" <table:table-column"+(s["!cols"][f]?' table:style-name="co'+s["!cols"][f].ods+'"':"")+`></table:table-column>
|
||
`);var d="",v=s["!rows"]||[];for(a=0;a<l.s.r;++a)d=v[a]?' table:style-name="ro'+v[a].ods+'"':"",c.push(" <table:table-row"+d+`></table:table-row>
|
||
`);for(;a<=l.e.r;++a){for(d=v[a]?' table:style-name="ro'+v[a].ods+'"':"",c.push(" <table:table-row"+d+`>
|
||
`),f=0;f<l.s.c;++f)c.push(r);for(;f<=l.e.c;++f){var x=!1,g={},b="";for(p=0;p!=u.length;++p)if(!(u[p].s.c>f)&&!(u[p].s.r>a)&&!(u[p].e.c<f)&&!(u[p].e.r<a)){(u[p].s.c!=f||u[p].s.r!=a)&&(x=!0),g["table:number-columns-spanned"]=u[p].e.c-u[p].s.c+1,g["table:number-rows-spanned"]=u[p].e.r-u[p].s.r+1;break}if(x){c.push(e);continue}var w=yt({r:a,c:f}),y=m?(s[a]||[])[f]:s[w];if(y&&y.f&&(g["table:formula"]=$t(Ey(y.f)),y.F&&y.F.slice(0,w.length)==w)){var T=mn(y.F);g["table:number-matrix-columns-spanned"]=T.e.c-T.s.c+1,g["table:number-matrix-rows-spanned"]=T.e.r-T.s.r+1}if(!y){c.push(r);continue}switch(y.t){case"b":b=y.v?"TRUE":"FALSE",g["office:value-type"]="boolean",g["office:boolean-value"]=y.v?"true":"false";break;case"n":b=y.w||String(y.v||0),g["office:value-type"]="float",g["office:value"]=y.v||0;break;case"s":case"str":b=y.v==null?"":y.v,g["office:value-type"]="string";break;case"d":b=y.w||qt(y.v).toISOString(),g["office:value-type"]="date",g["office:date-value"]=qt(y.v).toISOString(),g["table:style-name"]="ce1";break;default:c.push(r);continue}var C=t(b);if(y.l&&y.l.Target){var M=y.l.Target;M=M.charAt(0)=="#"?"#"+Ty(M.slice(1)):M,M.charAt(0)!="#"&&!M.match(/^\w+:/)&&(M="../"+M),C=Qe("text:a",C,{"xlink:href":M.replace(/&/g,"&")})}c.push(" "+Qe("table:table-cell",Qe("text:p",C,{}),g)+`
|
||
`)}c.push(` </table:table-row>
|
||
`)}return c.push(` </table:table>
|
||
`),c.join("")},i=function(s,o){s.push(` <office:automatic-styles>
|
||
`),s.push(` <number:date-style style:name="N37" number:automatic-order="true">
|
||
`),s.push(` <number:month number:style="long"/>
|
||
`),s.push(` <number:text>/</number:text>
|
||
`),s.push(` <number:day number:style="long"/>
|
||
`),s.push(` <number:text>/</number:text>
|
||
`),s.push(` <number:year/>
|
||
`),s.push(` </number:date-style>
|
||
`);var h=0;o.SheetNames.map(function(a){return o.Sheets[a]}).forEach(function(a){if(a&&a["!cols"]){for(var f=0;f<a["!cols"].length;++f)if(a["!cols"][f]){var l=a["!cols"][f];if(l.width==null&&l.wpx==null&&l.wch==null)continue;gi(l),l.ods=h;var u=a["!cols"][f].wpx+"px";s.push(' <style:style style:name="co'+h+`" style:family="table-column">
|
||
`),s.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+u+`"/>
|
||
`),s.push(` </style:style>
|
||
`),++h}}});var c=0;o.SheetNames.map(function(a){return o.Sheets[a]}).forEach(function(a){if(a&&a["!rows"]){for(var f=0;f<a["!rows"].length;++f)if(a["!rows"][f]){a["!rows"][f].ods=c;var l=a["!rows"][f].hpx+"px";s.push(' <style:style style:name="ro'+c+`" style:family="table-row">
|
||
`),s.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+l+`"/>
|
||
`),s.push(` </style:style>
|
||
`),++c}}}),s.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
|
||
`),s.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
|
||
`),s.push(` </style:style>
|
||
`),s.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
|
||
`),s.push(` </office:automatic-styles>
|
||
`)};return function(o,h){var c=[fr],a=zs({"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=zs({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});h.bookType=="fods"?(c.push("<office:document"+a+f+`>
|
||
`),c.push(Cu().replace(/office:document-meta/g,"office:meta"))):c.push("<office:document-content"+a+`>
|
||
`),i(c,o),c.push(` <office:body>
|
||
`),c.push(` <office:spreadsheet>
|
||
`);for(var l=0;l!=o.SheetNames.length;++l)c.push(n(o.Sheets[o.SheetNames[l]],o,l));return c.push(` </office:spreadsheet>
|
||
`),c.push(` </office:body>
|
||
`),h.bookType=="fods"?c.push("</office:document>"):c.push("</office:document-content>"),c.join("")}}();function P0(t,r){if(r.bookType=="fods")return fh(t,r);var e=Yf(),n="",i=[],s=[];return n="mimetype",Et(e,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Et(e,n,fh(t,r)),i.push([n,"text/xml"]),s.push([n,"ContentFile"]),n="styles.xml",Et(e,n,r6(t,r)),i.push([n,"text/xml"]),s.push([n,"StylesFile"]),n="meta.xml",Et(e,n,fr+Cu()),i.push([n,"text/xml"]),s.push([n,"MetadataFile"]),n="manifest.rdf",Et(e,n,Og(s)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Et(e,n,Rg(i)),e}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function $i(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ff(t){return typeof TextDecoder<"u"?new TextDecoder().decode(t):Wt(bi(t))}function n6(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):tn(Ln(t))}function i6(t,r){e:for(var e=0;e<=t.length-r.length;++e){for(var n=0;n<r.length;++n)if(t[e+n]!=r[n])continue e;return!0}return!1}function xi(t){var r=t.reduce(function(i,s){return i+s.length},0),e=new Uint8Array(r),n=0;return t.forEach(function(i){e.set(i,n),n+=i.length}),e}function lh(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),(t+(t>>4)&252645135)*16843009>>>24}function s6(t,r){for(var e=(t[r+15]&127)<<7|t[r+14]>>1,n=t[r+14]&1,i=r+13;i>=r;--i)n=n*256+t[i];return(t[r+15]&128?-n:n)*Math.pow(10,e-6176)}function a6(t,r,e){var n=Math.floor(e==0?0:Math.LOG10E*Math.log(Math.abs(e)))+6176-20,i=e/Math.pow(10,n-6176);t[r+15]|=n>>7,t[r+14]|=(n&127)<<1;for(var s=0;i>=1;++s,i/=256)t[r+s]=i&255;t[r+15]|=e>=0?0:128}function Zs(t,r){var e=r?r[0]:0,n=t[e]&127;e:if(t[e++]>=128&&(n|=(t[e]&127)<<7,t[e++]<128||(n|=(t[e]&127)<<14,t[e++]<128)||(n|=(t[e]&127)<<21,t[e++]<128)||(n+=(t[e]&127)*Math.pow(2,28),++e,t[e++]<128)||(n+=(t[e]&127)*Math.pow(2,35),++e,t[e++]<128)||(n+=(t[e]&127)*Math.pow(2,42),++e,t[e++]<128)))break e;return r&&(r[0]=e),n}function Ht(t){var r=new Uint8Array(7);r[0]=t&127;var e=1;e: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 e;r[e-1]|=128,r[e]=t/16777216>>>21&127,++e}return r.slice(0,e)}function rr(t){var r=0,e=t[r]&127;e:if(t[r++]>=128){if(e|=(t[r]&127)<<7,t[r++]<128||(e|=(t[r]&127)<<14,t[r++]<128)||(e|=(t[r]&127)<<21,t[r++]<128))break e;e|=(t[r]&127)<<28}return e}function Bt(t){for(var r=[],e=[0];e[0]<t.length;){var n=e[0],i=Zs(t,e),s=i&7;i=Math.floor(i/8);var o=0,h;if(i==0)break;switch(s){case 0:{for(var c=e[0];t[e[0]++]>=128;);h=t.slice(c,e[0])}break;case 5:o=4,h=t.slice(e[0],e[0]+o),e[0]+=o;break;case 1:o=8,h=t.slice(e[0],e[0]+o),e[0]+=o;break;case 2:o=Zs(t,e),h=t.slice(e[0],e[0]+o),e[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(s," for Field ").concat(i," at offset ").concat(n))}var a={data:h,type:s};r[i]==null?r[i]=[a]:r[i].push(a)}return r}function Sr(t){var r=[];return t.forEach(function(e,n){e.forEach(function(i){i.data&&(r.push(Ht(n*8+i.type)),i.type==2&&r.push(Ht(i.data.length)),r.push(i.data))})}),xi(r)}function wl(t,r){return(t==null?void 0:t.map(function(e){return r(e.data)}))||[]}function ln(t){for(var r,e=[],n=[0];n[0]<t.length;){var i=Zs(t,n),s=Bt(t.slice(n[0],n[0]+i));n[0]+=i;var o={id:rr(s[1][0].data),messages:[]};s[2].forEach(function(h){var c=Bt(h.data),a=rr(c[3][0].data);o.messages.push({meta:c,data:t.slice(n[0],n[0]+a)}),n[0]+=a}),(r=s[3])!=null&&r[0]&&(o.merge=rr(s[3][0].data)>>>0>0),e.push(o)}return e}function is(t){var r=[];return t.forEach(function(e){var n=[];n[1]=[{data:Ht(e.id),type:0}],n[2]=[],e.merge!=null&&(n[3]=[{data:Ht(+!!e.merge),type:0}]);var i=[];e.messages.forEach(function(o){i.push(o.data),o.meta[3]=[{type:0,data:Ht(o.data.length)}],n[2].push({data:Sr(o.meta),type:2})});var s=Sr(n);r.push(Ht(s.length)),r.push(s),i.forEach(function(o){return r.push(o)})}),xi(r)}function o6(t,r){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e=[0],n=Zs(r,e),i=[];e[0]<r.length;){var s=r[e[0]]&3;if(s==0){var o=r[e[0]++]>>2;if(o<60)++o;else{var h=o-59;o=r[e[0]],h>1&&(o|=r[e[0]+1]<<8),h>2&&(o|=r[e[0]+2]<<16),h>3&&(o|=r[e[0]+3]<<24),o>>>=0,o++,e[0]+=h}i.push(r.slice(e[0],e[0]+o)),e[0]+=o;continue}else{var c=0,a=0;if(s==1?(a=(r[e[0]]>>2&7)+4,c=(r[e[0]++]&224)<<3,c|=r[e[0]++]):(a=(r[e[0]++]>>2)+1,s==2?(c=r[e[0]]|r[e[0]+1]<<8,e[0]+=2):(c=(r[e[0]]|r[e[0]+1]<<8|r[e[0]+2]<<16|r[e[0]+3]<<24)>>>0,e[0]+=4)),i=[xi(i)],c==0)throw new Error("Invalid offset 0");if(c>i[0].length)throw new Error("Invalid offset beyond length");if(a>=c)for(i.push(i[0].slice(-c)),a-=c;a>=i[i.length-1].length;)i.push(i[i.length-1]),a-=i[i.length-1].length;i.push(i[0].slice(-c,-c+a))}}var f=xi(i);if(f.length!=n)throw new Error("Unexpected length: ".concat(f.length," != ").concat(n));return f}function cn(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(o6(n,t.slice(e,e+i))),e+=i}if(e!==t.length)throw new Error("data is not a valid framed stream!");return xi(r)}function ss(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 s=Ht(n),o=s.length;r.push(s),n<=60?(o++,r.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,r.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,r.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,r.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=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)),o+=n,i[0]=0,i[1]=o&255,i[2]=o>>8&255,i[3]=o>>16&255,e+=n}return xi(r)}function f6(t,r,e,n){var i=$i(t),s=i.getUint32(4,!0),o=(n>1?12:8)+lh(s&(n>1?3470:398))*4,h=-1,c=-1,a=NaN,f=new Date(2001,0,1);s&512&&(h=i.getUint32(o,!0),o+=4),o+=lh(s&(n>1?12288:4096))*4,s&16&&(c=i.getUint32(o,!0),o+=4),s&32&&(a=i.getFloat64(o,!0),o+=8),s&64&&(f.setTime(f.getTime()+i.getFloat64(o,!0)*1e3),o+=8);var l;switch(t[2]){case 0:break;case 2:l={t:"n",v:a};break;case 3:l={t:"s",v:r[c]};break;case 5:l={t:"d",v:f};break;case 6:l={t:"b",v:a>0};break;case 7:l={t:"n",v:a/86400};break;case 8:l={t:"e",v:0};break;case 9:if(h>-1)l={t:"s",v:e[h]};else if(c>-1)l={t:"s",v:r[c]};else if(!isNaN(a))l={t:"n",v:a};else throw new Error("Unsupported cell type ".concat(t.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(t.slice(0,4)))}return l}function l6(t,r,e){var n=$i(t),i=n.getUint32(8,!0),s=12,o=-1,h=-1,c=NaN,a=NaN,f=new Date(2001,0,1);i&1&&(c=s6(t,s),s+=16),i&2&&(a=n.getFloat64(s,!0),s+=8),i&4&&(f.setTime(f.getTime()+n.getFloat64(s,!0)*1e3),s+=8),i&8&&(h=n.getUint32(s,!0),s+=4),i&16&&(o=n.getUint32(s,!0),s+=4);var l;switch(t[1]){case 0:break;case 2:l={t:"n",v:c};break;case 3:l={t:"s",v:r[h]};break;case 5:l={t:"d",v:f};break;case 6:l={t:"b",v:a>0};break;case 7:l={t:"n",v:a/86400};break;case 8:l={t:"e",v:0};break;case 9:if(o>-1)l={t:"s",v:e[o]};else throw new Error("Unsupported cell type ".concat(t[1]," : ").concat(i&31," : ").concat(t.slice(0,4)));break;case 10:l={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(t[1]," : ").concat(i&31," : ").concat(t.slice(0,4)))}return l}function qo(t,r){var e=new Uint8Array(32),n=$i(e),i=12,s=0;switch(e[0]=5,t.t){case"n":e[1]=2,a6(e,i,t.v),s|=1,i+=16;break;case"b":e[1]=6,n.setFloat64(i,t.v?1:0,!0),s|=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),s|=8,i+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(8,s,!0),e.slice(0,i)}function ef(t,r){var e=new Uint8Array(32),n=$i(e),i=12,s=0;switch(e[0]=3,t.t){case"n":e[2]=2,n.setFloat64(i,t.v,!0),s|=32,i+=8;break;case"b":e[2]=6,n.setFloat64(i,t.v?1:0,!0),s|=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),s|=16,i+=4;break;default:throw"unsupported cell type "+t.t}return n.setUint32(4,s,!0),e.slice(0,i)}function c6(t,r,e){switch(t[0]){case 0:case 1:case 2:case 3:return f6(t,r,e,t[0]);case 5:return l6(t,r,e);default:throw new Error("Unsupported payload version ".concat(t[0]))}}function Or(t){var r=Bt(t);return Zs(r[1][0].data)}function ch(t,r){var e=Bt(r.data),n=rr(e[1][0].data),i=e[3],s=[];return(i||[]).forEach(function(o){var h=Bt(o.data),c=rr(h[1][0].data)>>>0;switch(n){case 1:s[c]=Ff(h[3][0].data);break;case 8:{var a=t[Or(h[9][0].data)][0],f=Bt(a.data),l=t[Or(f[1][0].data)][0],u=rr(l.meta[1][0].data);if(u!=2001)throw new Error("2000 unexpected reference to ".concat(u));var p=Bt(l.data);s[c]=p[3].map(function(m){return Ff(m.data)}).join("")}break}}),s}function h6(t,r){var e,n,i,s,o,h,c,a,f,l,u,p,m,d,v=Bt(t),x=rr(v[1][0].data)>>>0,g=rr(v[2][0].data)>>>0,b=((n=(e=v[8])==null?void 0:e[0])==null?void 0:n.data)&&rr(v[8][0].data)>0||!1,w,y;if((s=(i=v[7])==null?void 0:i[0])!=null&&s.data&&r!=0)w=(h=(o=v[7])==null?void 0:o[0])==null?void 0:h.data,y=(a=(c=v[6])==null?void 0:c[0])==null?void 0:a.data;else if((l=(f=v[4])==null?void 0:f[0])!=null&&l.data&&r!=1)w=(p=(u=v[4])==null?void 0:u[0])==null?void 0:p.data,y=(d=(m=v[3])==null?void 0:m[0])==null?void 0:d.data;else throw"NUMBERS Tile missing ".concat(r," cell storage");for(var T=b?4:1,C=$i(w),M=[],I=0;I<w.length/2;++I){var B=C.getUint16(I*2,!0);B<65535&&M.push([I,B])}if(M.length!=g)throw"Expected ".concat(g," cells, found ").concat(M.length);var U=[];for(I=0;I<M.length-1;++I)U[M[I][0]]=y.subarray(M[I][1]*T,M[I+1][1]*T);return M.length>=1&&(U[M[M.length-1][0]]=y.subarray(M[M.length-1][1]*T)),{R:x,cells:U}}function u6(t,r){var e,n=Bt(r.data),i=(e=n==null?void 0:n[7])!=null&&e[0]?rr(n[7][0].data)>>>0>0?1:0:-1,s=wl(n[5],function(o){return h6(o,i)});return{nrows:rr(n[4][0].data)>>>0,data:s.reduce(function(o,h){return o[h.R]||(o[h.R]=[]),h.cells.forEach(function(c,a){if(o[h.R][a])throw new Error("Duplicate cell r=".concat(h.R," c=").concat(a));o[h.R][a]=c}),o},[])}}function d6(t,r,e){var n,i=Bt(r.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(rr(i[6][0].data)>>>0)-1,s.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(s.e.c=(rr(i[7][0].data)>>>0)-1,s.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));e["!ref"]=Rt(s);var o=Bt(i[4][0].data),h=ch(t,t[Or(o[4][0].data)][0]),c=(n=o[17])!=null&&n[0]?ch(t,t[Or(o[17][0].data)][0]):[],a=Bt(o[3][0].data),f=0;a[1].forEach(function(l){var u=Bt(l.data),p=t[Or(u[2][0].data)][0],m=rr(p.meta[1][0].data);if(m!=6002)throw new Error("6001 unexpected reference to ".concat(m));var d=u6(t,p);d.data.forEach(function(v,x){v.forEach(function(g,b){var w=yt({r:f+x,c:b}),y=c6(g,h,c);y&&(e[w]=y)})}),f+=d.nrows})}function p6(t,r){var e=Bt(r.data),n={"!ref":"A1"},i=t[Or(e[2][0].data)],s=rr(i[0].meta[1][0].data);if(s!=6001)throw new Error("6000 unexpected reference to ".concat(s));return d6(t,i[0],n),n}function m6(t,r){var e,n=Bt(r.data),i={name:(e=n[1])!=null&&e[0]?Ff(n[1][0].data):"",sheets:[]},s=wl(n[2],Or);return s.forEach(function(o){t[o].forEach(function(h){var c=rr(h.meta[1][0].data);c==6e3&&i.sheets.push(p6(t,h))})}),i}function g6(t,r){var e=$0(),n=Bt(r.data),i=wl(n[1],Or);if(i.forEach(function(s){t[s].forEach(function(o){var h=rr(o.meta[1][0].data);if(h==2){var c=m6(t,o);c.sheets.forEach(function(a,f){W0(e,a,f==0?c.name:c.name+"_"+f,!0)})}})}),e.SheetNames.length==0)throw new Error("Empty NUMBERS file");return e}function tf(t){var r,e,n,i,s={},o=[];if(t.FullPaths.forEach(function(c){if(c.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),t.FileIndex.forEach(function(c){if(c.name.match(/\.iwa$/)){var a;try{a=cn(c.content)}catch(l){return console.log("?? "+c.content.length+" "+(l.message||l))}var f;try{f=ln(a)}catch(l){return console.log("## "+(l.message||l))}f.forEach(function(l){s[l.id]=l.messages,o.push(l.id)})}}),!o.length)throw new Error("File has no messages");var h=((i=(n=(e=(r=s==null?void 0:s[1])==null?void 0:r[0])==null?void 0:e.meta)==null?void 0:n[1])==null?void 0:i[0].data)&&rr(s[1][0].meta[1][0].data)==1&&s[1][0];if(h||o.forEach(function(c){s[c].forEach(function(a){var f=rr(a.meta[1][0].data)>>>0;if(f==1)if(!h)h=a;else throw new Error("Document has multiple roots")})}),!h)throw new Error("Cannot find Document root");return g6(s,h)}function v6(t,r,e){var n,i,s,o;if(!((n=t[6])!=null&&n[0])||!((i=t[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var h=((o=(s=t[8])==null?void 0:s[0])==null?void 0:o.data)&&rr(t[8][0].data)>0||!1;if(h)throw"Math only works with normal offsets";for(var c=0,a=$i(t[7][0].data),f=0,l=[],u=$i(t[4][0].data),p=0,m=[],d=0;d<r.length;++d){if(r[d]==null){a.setUint16(d*2,65535,!0),u.setUint16(d*2,65535);continue}a.setUint16(d*2,f,!0),u.setUint16(d*2,p,!0);var v,x;switch(typeof r[d]){case"string":v=qo({t:"s",v:r[d]},e),x=ef({t:"s",v:r[d]},e);break;case"number":v=qo({t:"n",v:r[d]},e),x=ef({t:"n",v:r[d]},e);break;case"boolean":v=qo({t:"b",v:r[d]},e),x=ef({t:"b",v:r[d]},e);break;default:throw new Error("Unsupported value "+r[d])}l.push(v),f+=v.length,m.push(x),p+=x.length,++c}for(t[2][0].data=Ht(c);d<t[7][0].data.length/2;++d)a.setUint16(d*2,65535,!0),u.setUint16(d*2,65535,!0);return t[6][0].data=xi(l),t[3][0].data=xi(m),c}function x6(t,r){if(!r||!r.numbers)throw new Error("Must pass a `numbers` option -- check the README");var e=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=mn(e["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(Rt(n)));var s=H0(e,{range:n,header:1}),o=["~Sh33tJ5~"];s.forEach(function(A){return A.forEach(function(S){typeof S=="string"&&o.push(S)})});var h={},c=[],a=ut.read(r.numbers,{type:"base64"});a.FileIndex.map(function(A,S){return[A,a.FullPaths[S]]}).forEach(function(A){var S=A[0],E=A[1];if(S.type==2&&S.name.match(/\.iwa/)){var O=S.content,z=cn(O),J=ln(z);J.forEach(function(re){c.push(re.id),h[re.id]={deps:[],location:E,type:rr(re.messages[0].meta[1][0].data)}})}}),c.sort(function(A,S){return A-S});var f=c.filter(function(A){return A>1}).map(function(A){return[A,Ht(A)]});a.FileIndex.map(function(A,S){return[A,a.FullPaths[S]]}).forEach(function(A){var S=A[0];if(A[1],!!S.name.match(/\.iwa/)){var E=ln(cn(S.content));E.forEach(function(O){O.messages.forEach(function(z){f.forEach(function(J){O.messages.some(function(re){return rr(re.meta[1][0].data)!=11006&&i6(re.data,J[1])})&&h[J[0]].deps.push(O.id)})})})}});for(var l=ut.find(a,h[1].location),u=ln(cn(l.content)),p,m=0;m<u.length;++m){var d=u[m];d.id==1&&(p=d)}var v=Or(Bt(p.messages[0].data)[1][0].data);for(l=ut.find(a,h[v].location),u=ln(cn(l.content)),m=0;m<u.length;++m)d=u[m],d.id==v&&(p=d);for(v=Or(Bt(p.messages[0].data)[2][0].data),l=ut.find(a,h[v].location),u=ln(cn(l.content)),m=0;m<u.length;++m)d=u[m],d.id==v&&(p=d);for(v=Or(Bt(p.messages[0].data)[2][0].data),l=ut.find(a,h[v].location),u=ln(cn(l.content)),m=0;m<u.length;++m)d=u[m],d.id==v&&(p=d);var x=Bt(p.messages[0].data);{x[6][0].data=Ht(n.e.r+1),x[7][0].data=Ht(n.e.c+1);var g=Or(x[46][0].data),b=ut.find(a,h[g].location),w=ln(cn(b.content));{for(var y=0;y<w.length&&w[y].id!=g;++y);if(w[y].id!=g)throw"Bad ColumnRowUIDMapArchive";var T=Bt(w[y].messages[0].data);T[1]=[],T[2]=[],T[3]=[];for(var C=0;C<=n.e.c;++C){var M=[];M[1]=M[2]=[{type:0,data:Ht(C+420690)}],T[1].push({type:2,data:Sr(M)}),T[2].push({type:0,data:Ht(C)}),T[3].push({type:0,data:Ht(C)})}T[4]=[],T[5]=[],T[6]=[];for(var I=0;I<=n.e.r;++I)M=[],M[1]=M[2]=[{type:0,data:Ht(I+726270)}],T[4].push({type:2,data:Sr(M)}),T[5].push({type:0,data:Ht(I)}),T[6].push({type:0,data:Ht(I)});w[y].messages[0].data=Sr(T)}b.content=ss(is(w)),b.size=b.content.length,delete x[46];var B=Bt(x[4][0].data);{B[7][0].data=Ht(n.e.r+1);var U=Bt(B[1][0].data),j=Or(U[2][0].data);b=ut.find(a,h[j].location),w=ln(cn(b.content));{if(w[0].id!=j)throw"Bad HeaderStorageBucket";var H=Bt(w[0].messages[0].data);for(I=0;I<s.length;++I){var G=Bt(H[2][0].data);G[1][0].data=Ht(I),G[4][0].data=Ht(s[I].length),H[2][I]={type:H[2][0].type,data:Sr(G)}}w[0].messages[0].data=Sr(H)}b.content=ss(is(w)),b.size=b.content.length;var L=Or(B[2][0].data);b=ut.find(a,h[L].location),w=ln(cn(b.content));{if(w[0].id!=L)throw"Bad HeaderStorageBucket";for(H=Bt(w[0].messages[0].data),C=0;C<=n.e.c;++C)G=Bt(H[2][0].data),G[1][0].data=Ht(C),G[4][0].data=Ht(n.e.r+1),H[2][C]={type:H[2][0].type,data:Sr(G)};w[0].messages[0].data=Sr(H)}b.content=ss(is(w)),b.size=b.content.length;var R=Or(B[4][0].data);(function(){for(var A=ut.find(a,h[R].location),S=ln(cn(A.content)),E,O=0;O<S.length;++O){var z=S[O];z.id==R&&(E=z)}var J=Bt(E.messages[0].data);{J[3]=[];var re=[];o.forEach(function(Y,q){re[1]=[{type:0,data:Ht(q)}],re[2]=[{type:0,data:Ht(1)}],re[3]=[{type:2,data:n6(Y)}],J[3].push({type:2,data:Sr(re)})})}E.messages[0].data=Sr(J);var se=is(S),Ce=ss(se);A.content=Ce,A.size=A.content.length})();var F=Bt(B[3][0].data);{var _=F[1][0];delete F[2];var k=Bt(_.data);{var N=Or(k[2][0].data);(function(){for(var A=ut.find(a,h[N].location),S=ln(cn(A.content)),E,O=0;O<S.length;++O){var z=S[O];z.id==N&&(E=z)}var J=Bt(E.messages[0].data);{delete J[6],delete F[7];var re=new Uint8Array(J[5][0].data);J[5]=[];for(var se=0,Ce=0;Ce<=n.e.r;++Ce){var Y=Bt(re);se+=v6(Y,s[Ce],o),Y[1][0].data=Ht(Ce),J[5].push({data:Sr(Y),type:2})}J[1]=[{type:0,data:Ht(n.e.c+1)}],J[2]=[{type:0,data:Ht(n.e.r+1)}],J[3]=[{type:0,data:Ht(se)}],J[4]=[{type:0,data:Ht(n.e.r+1)}]}E.messages[0].data=Sr(J);var q=is(S),K=ss(q);A.content=K,A.size=A.content.length})()}_.data=Sr(k)}B[3][0].data=Sr(F)}x[4][0].data=Sr(B)}p.messages[0].data=Sr(x);var P=is(u),D=ss(P);return l.content=D,l.size=l.content.length,a}function B0(t){return function(e){for(var n=0;n!=t.length;++n){var i=t[n];e[i[0]]===void 0&&(e[i[0]]=i[1]),i[2]==="n"&&(e[i[0]]=Number(e[i[0]]))}}}function yl(t){B0([["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 _l(t){B0([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function b6(t){return Ft.WS.indexOf(t)>-1?"sheet":t==Ft.CS?"chart":t==Ft.DS?"dialog":t==Ft.MS?"macro":t&&t.length?t:"sheet"}function w6(t,r){if(!t)return 0;try{t=r.map(function(n){return n.id||(n.id=n.strRelID),[n.name,t["!id"][n.id].Target,b6(t["!id"][n.id].Type)]})}catch{return null}return!t||t.length===0?null:t}function y6(t,r,e,n,i,s,o,h,c,a,f,l){try{s[n]=Is(rn(t,e,!0),r);var u=cr(t,r),p;switch(h){case"sheet":p=W4(u,r,i,c,s[n],a,f,l);break;case"chart":if(p=X4(u,r,i,c,s[n],a,f,l),!p||!p["!drawel"])break;var m=Fs(p["!drawel"].Target,r),d=Ws(m),v=Mb(rn(t,m,!0),Is(rn(t,d,!0),m)),x=Fs(v,m),g=Ws(x);p=x4(rn(t,x,!0),x,c,Is(rn(t,g,!0),x),a,p);break;case"macro":p=V4(u,r,i,c,s[n],a,f,l);break;case"dialog":p=G4(u,r,i,c,s[n],a,f,l);break;default:throw new Error("Unrecognized sheet type "+h)}o[n]=p;var b=[];s&&s[n]&&or(s[n]).forEach(function(w){var y="";if(s[n][w].Type==Ft.CMNT){y=Fs(s[n][w].Target,r);var T=J4(cr(t,y,!0),y,c);if(!T||!T.length)return;Zc(p,T,!1)}s[n][w].Type==Ft.TCMNT&&(y=Fs(s[n][w].Target,r),b=b.concat(Ib(cr(t,y,!0),c)))}),b&&b.length&&Zc(p,b,!0,c.people||[])}catch(w){if(c.WTF)throw w}}function on(t){return t.charAt(0)=="/"?t.slice(1):t}function _6(t,r){if(vs(),r=r||{},yl(r),hn(t,"META-INF/manifest.xml")||hn(t,"objectdata.xml"))return ah(t,r);if(hn(t,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof tf<"u"){if(t.FileIndex)return tf(t);var e=ut.utils.cfb_new();return vc(t).forEach(function(G){Et(e,G,eu(t,G))}),tf(e)}throw new Error("Unsupported NUMBERS file")}if(!hn(t,"[Content_Types].xml"))throw hn(t,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):hn(t,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=vc(t),i=Cg(rn(t,"[Content_Types].xml")),s=!1,o,h;if(i.workbooks.length===0&&(h="xl/workbook.xml",cr(t,h,!0)&&i.workbooks.push(h)),i.workbooks.length===0){if(h="xl/workbook.bin",!cr(t,h,!0))throw new Error("Could not find workbook");i.workbooks.push(h),s=!0}i.workbooks[0].slice(-3)=="bin"&&(s=!0);var c={},a={};if(!r.bookSheets&&!r.bookProps){if(Ds=[],i.sst)try{Ds=Z4(cr(t,on(i.sst)),i.sst,r)}catch(G){if(r.WTF)throw G}r.cellStyles&&i.themes.length&&(c=Y4(rn(t,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],r)),i.style&&(a=K4(cr(t,on(i.style)),i.style,c,r))}i.links.map(function(G){try{var L=Is(rn(t,Ws(on(G))),G);return q4(cr(t,on(G)),L,G,r)}catch{}});var f=$4(cr(t,on(i.workbooks[0])),i.workbooks[0],r),l={},u="";i.coreprops.length&&(u=cr(t,on(i.coreprops[0]),!0),u&&(l=Au(u)),i.extprops.length!==0&&(u=cr(t,on(i.extprops[0]),!0),u&&Dg(u,l,r)));var p={};(!r.bookSheets||r.bookProps)&&i.custprops.length!==0&&(u=rn(t,on(i.custprops[0]),!0),u&&(p=Pg(u,r)));var m={};if((r.bookSheets||r.bookProps)&&(f.Sheets?o=f.Sheets.map(function(L){return L.name}):l.Worksheets&&l.SheetNames.length>0&&(o=l.SheetNames),r.bookProps&&(m.Props=l,m.Custprops=p),r.bookSheets&&typeof o<"u"&&(m.SheetNames=o),r.bookSheets?m.SheetNames:r.bookProps))return m;o={};var d={};r.bookDeps&&i.calcchain&&(d=Q4(cr(t,on(i.calcchain)),i.calcchain));var v=0,x={},g,b;{var w=f.Sheets;l.Worksheets=w.length,l.SheetNames=[];for(var y=0;y!=w.length;++y)l.SheetNames[y]=w[y].name}var T=s?"bin":"xml",C=i.workbooks[0].lastIndexOf("/"),M=(i.workbooks[0].slice(0,C+1)+"_rels/"+i.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");hn(t,M)||(M="xl/_rels/workbook."+T+".rels");var I=Is(rn(t,M,!0),M.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(r.xlmeta=e3(cr(t,on(i.metadata[0])),i.metadata[0],r)),(i.people||[]).length>=1&&(r.people=Nb(cr(t,on(i.people[0])),r)),I&&(I=w6(I,f.Sheets));var B=cr(t,"xl/worksheets/sheet.xml",!0)?1:0;e:for(v=0;v!=l.Worksheets;++v){var U="sheet";if(I&&I[v]?(g="xl/"+I[v][1].replace(/[\/]?xl\//,""),hn(t,g)||(g=I[v][1]),hn(t,g)||(g=M.replace(/_rels\/.*$/,"")+I[v][1]),U=I[v][2]):(g="xl/worksheets/sheet"+(v+1-B)+"."+T,g=g.replace(/sheet0\./,"sheet.")),b=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(v!=r.sheets)continue e;break;case"string":if(l.SheetNames[v].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){for(var j=!1,H=0;H!=r.sheets.length;++H)typeof r.sheets[H]=="number"&&r.sheets[H]==v&&(j=1),typeof r.sheets[H]=="string"&&r.sheets[H].toLowerCase()==l.SheetNames[v].toLowerCase()&&(j=1);if(!j)continue e}}y6(t,g,b,l.SheetNames[v],v,x,o,U,r,f,c,a)}return m={Directory:i,Workbook:f,Props:l,Custprops:p,Deps:d,Sheets:o,SheetNames:l.SheetNames,Strings:Ds,Styles:a,Themes:c,SSF:Zt(xt)},r&&r.bookFiles&&(t.files?(m.keys=n,m.files=t.files):(m.keys=[],m.files={},t.FullPaths.forEach(function(G,L){G=G.replace(/^Root Entry[\/]/,""),m.keys.push(G),m.files[G]=t.FileIndex[L]}))),r&&r.bookVBA&&(i.vba.length>0?m.vbaraw=cr(t,on(i.vba[0]),!0):i.defaults&&i.defaults.bin===$b&&(m.vbaraw=cr(t,"xl/vbaProject.bin",!0))),m}function E6(t,r){var e=r||{},n="Workbook",i=ut.find(t,n);try{if(n="/!DataSpaces/Version",i=ut.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(e2(i.content),n="/!DataSpaces/DataSpaceMap",i=ut.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=r2(i.content);if(s.length!==1||s[0].comps.length!==1||s[0].comps[0].t!==0||s[0].name!=="StrongEncryptionDataSpace"||s[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=ut.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=n2(i.content);if(o.length!=1||o[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=ut.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);s2(i.content)}catch{}if(n="/EncryptionInfo",i=ut.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var h=a2(i.content);if(n="/EncryptedPackage",i=ut.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(h[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(h[1],i.content,e.password||"",e);if(h[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(h[1],i.content,e.password||"",e);throw new Error("File is password-protected")}function T6(t,r){return r.bookType=="ods"?P0(t,r):r.bookType=="numbers"?x6(t,r):r.bookType=="xlsb"?S6(t,r):k6(t,r)}function S6(t,r){fs=1024,t&&!t.SSF&&(t.SSF=Zt(xt)),t&&t.SSF&&(vs(),mo(t.SSF),r.revssf=vo(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Ns?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var e=r.bookType=="xlsb"?"bin":"xml",n=d0.indexOf(r.bookType)>-1,i=ol();_l(r=r||{});var s=Yf(),o="",h=0;if(r.cellXfs=[],wi(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",Et(s,o,Fu(t.Props,r)),i.coreprops.push(o),zt(r.rels,2,o,Ft.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var c=[],a=0;a<t.SheetNames.length;++a)(t.Workbook.Sheets[a]||{}).Hidden!=2&&c.push(t.SheetNames[a]);t.Props.SheetNames=c}for(t.Props.Worksheets=t.Props.SheetNames.length,Et(s,o,Ou(t.Props)),i.extprops.push(o),zt(r.rels,3,o,Ft.EXT_PROPS),t.Custprops!==t.Props&&or(t.Custprops||{}).length>0&&(o="docProps/custom.xml",Et(s,o,Iu(t.Custprops)),i.custprops.push(o),zt(r.rels,4,o,Ft.CUST_PROPS)),h=1;h<=t.SheetNames.length;++h){var f={"!id":{}},l=t.Sheets[t.SheetNames[h-1]],u=(l||{})["!type"]||"sheet";switch(u){case"chart":default:o="xl/worksheets/sheet"+h+"."+e,Et(s,o,r3(h-1,o,r,t,f)),i.sheets.push(o),zt(r.wbrels,-1,"worksheets/sheet"+h+"."+e,Ft.WS[0])}if(l){var p=l["!comments"],m=!1,d="";p&&p.length>0&&(d="xl/comments"+h+"."+e,Et(s,d,s3(p,d)),i.comments.push(d),zt(f,-1,"../comments"+h+"."+e,Ft.CMNT),m=!0),l["!legacy"]&&m&&Et(s,"xl/drawings/vmlDrawing"+h+".vml",h0(h,l["!comments"])),delete l["!comments"],delete l["!legacy"]}f["!id"].rId1&&Et(s,Ws(o),cs(f))}return r.Strings!=null&&r.Strings.length>0&&(o="xl/sharedStrings."+e,Et(s,o,i3(r.Strings,o,r)),i.strs.push(o),zt(r.wbrels,-1,"sharedStrings."+e,Ft.SST)),o="xl/workbook."+e,Et(s,o,t3(t,o)),i.workbooks.push(o),zt(r.rels,1,o,Ft.WB),o="xl/theme/theme1.xml",Et(s,o,dl(t.Themes,r)),i.themes.push(o),zt(r.wbrels,-1,"theme/theme1.xml",Ft.THEME),o="xl/styles."+e,Et(s,o,n3(t,o,r)),i.styles.push(o),zt(r.wbrels,-1,"styles."+e,Ft.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",Et(s,o,t.vbaraw),i.vba.push(o),zt(r.wbrels,-1,"vbaProject.bin",Ft.VBA)),o="xl/metadata."+e,Et(s,o,a3(o)),i.metadata.push(o),zt(r.wbrels,-1,"metadata."+e,Ft.XLMETA),Et(s,"[Content_Types].xml",ku(i,r)),Et(s,"_rels/.rels",cs(r.rels)),Et(s,"xl/_rels/workbook."+e+".rels",cs(r.wbrels)),delete r.revssf,delete r.ssf,s}function k6(t,r){fs=1024,t&&!t.SSF&&(t.SSF=Zt(xt)),t&&t.SSF&&(vs(),mo(t.SSF),r.revssf=vo(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Ns?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var e="xml",n=d0.indexOf(r.bookType)>-1,i=ol();_l(r=r||{});var s=Yf(),o="",h=0;if(r.cellXfs=[],wi(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",Et(s,o,Fu(t.Props,r)),i.coreprops.push(o),zt(r.rels,2,o,Ft.CORE_PROPS),o="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var c=[],a=0;a<t.SheetNames.length;++a)(t.Workbook.Sheets[a]||{}).Hidden!=2&&c.push(t.SheetNames[a]);t.Props.SheetNames=c}t.Props.Worksheets=t.Props.SheetNames.length,Et(s,o,Ou(t.Props)),i.extprops.push(o),zt(r.rels,3,o,Ft.EXT_PROPS),t.Custprops!==t.Props&&or(t.Custprops||{}).length>0&&(o="docProps/custom.xml",Et(s,o,Iu(t.Custprops)),i.custprops.push(o),zt(r.rels,4,o,Ft.CUST_PROPS));var f=["SheetJ5"];for(r.tcid=0,h=1;h<=t.SheetNames.length;++h){var l={"!id":{}},u=t.Sheets[t.SheetNames[h-1]],p=(u||{})["!type"]||"sheet";switch(p){case"chart":default:o="xl/worksheets/sheet"+h+"."+e,Et(s,o,T0(h-1,r,t,l)),i.sheets.push(o),zt(r.wbrels,-1,"worksheets/sheet"+h+"."+e,Ft.WS[0])}if(u){var m=u["!comments"],d=!1,v="";if(m&&m.length>0){var x=!1;m.forEach(function(g){g[1].forEach(function(b){b.T==!0&&(x=!0)})}),x&&(v="xl/threadedComments/threadedComment"+h+"."+e,Et(s,v,Db(m,f,r)),i.threadedcomments.push(v),zt(l,-1,"../threadedComments/threadedComment"+h+"."+e,Ft.TCMNT)),v="xl/comments"+h+"."+e,Et(s,v,u0(m)),i.comments.push(v),zt(l,-1,"../comments"+h+"."+e,Ft.CMNT),d=!0}u["!legacy"]&&d&&Et(s,"xl/drawings/vmlDrawing"+h+".vml",h0(h,u["!comments"])),delete u["!comments"],delete u["!legacy"]}l["!id"].rId1&&Et(s,Ws(o),cs(l))}return r.Strings!=null&&r.Strings.length>0&&(o="xl/sharedStrings."+e,Et(s,o,qu(r.Strings,r)),i.strs.push(o),zt(r.wbrels,-1,"sharedStrings."+e,Ft.SST)),o="xl/workbook."+e,Et(s,o,F0(t)),i.workbooks.push(o),zt(r.rels,1,o,Ft.WB),o="xl/theme/theme1.xml",Et(s,o,dl(t.Themes,r)),i.themes.push(o),zt(r.wbrels,-1,"theme/theme1.xml",Ft.THEME),o="xl/styles."+e,Et(s,o,o0(t,r)),i.styles.push(o),zt(r.wbrels,-1,"styles."+e,Ft.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",Et(s,o,t.vbaraw),i.vba.push(o),zt(r.wbrels,-1,"vbaProject.bin",Ft.VBA)),o="xl/metadata."+e,Et(s,o,c0()),i.metadata.push(o),zt(r.wbrels,-1,"metadata."+e,Ft.XLMETA),f.length>1&&(o="xl/persons/person.xml",Et(s,o,Pb(f)),i.people.push(o),zt(r.wbrels,-1,"persons/person.xml",Ft.PEOPLE)),Et(s,"[Content_Types].xml",ku(i,r)),Et(s,"_rels/.rels",cs(r.rels)),Et(s,"xl/_rels/workbook."+e+".rels",cs(r.wbrels)),delete r.revssf,delete r.ssf,s}function El(t,r){var e="";switch((r||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":e=nn(t.slice(0,12));break;case"binary":e=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];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 C6(t,r){return ut.find(t,"EncryptedPackage")?E6(t,r):I0(t,r)}function A6(t,r){var e,n=t,i=r||{};return i.type||(i.type=St&&Buffer.isBuffer(t)?"buffer":"base64"),e=tu(n,i),_6(e,i)}function L0(t,r){var e=0;e:for(;e<t.length;)switch(t.charCodeAt(e)){case 10:case 13:case 32:++e;break;case 60:return Cf(t.slice(e),r);default:break e}return ds.to_workbook(t,r)}function F6(t,r){var e="",n=El(t,r);switch(r.type){case"base64":e=nn(t);break;case"binary":e=t;break;case"buffer":e=t.toString("binary");break;case"array":e=ji(t);break;default:throw new Error("Unrecognized type "+r.type)}return n[0]==239&&n[1]==187&&n[2]==191&&(e=Wt(e)),r.type="binary",L0(e,r)}function R6(t,r){var e=t;return r.type=="base64"&&(e=nn(e)),e=ci.utils.decode(1200,e.slice(2),"str"),r.type="binary",L0(e,r)}function M6(t){return t.match(/[^\x00-\x7F]/)?Ln(t):t}function rf(t,r,e,n){return n?(e.type="string",ds.to_workbook(t,e)):ds.to_workbook(r,e)}function Rf(t,r){Wf();var e=r||{};if(typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer)return Rf(new Uint8Array(t),(e=Zt(e),e.type="array",e));typeof Uint8Array<"u"&&t instanceof Uint8Array&&!e.type&&(e.type=typeof Deno<"u"?"buffer":"array");var n=t,i=[0,0,0,0],s=!1;if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),us={},e.dateNF&&(us.dateNF=e.dateNF),e.type||(e.type=St&&Buffer.isBuffer(t)?"buffer":"base64"),e.type=="file"&&(e.type=St?"buffer":"binary",n=km(t),typeof Uint8Array<"u"&&!St&&(e.type="array")),e.type=="string"&&(s=!0,e.type="binary",e.codepage=65001,n=M6(t)),e.type=="array"&&typeof Uint8Array<"u"&&t instanceof Uint8Array&&typeof ArrayBuffer<"u"){var o=new ArrayBuffer(3),h=new Uint8Array(o);if(h.foo="bar",!h.foo)return e=Zt(e),e.type="array",Rf(Xf(n),e)}switch((i=El(n,e))[0]){case 208:if(i[1]===207&&i[2]===17&&i[3]===224&&i[4]===161&&i[5]===177&&i[6]===26&&i[7]===225)return C6(ut.read(n,e),e);break;case 9:if(i[1]<=8)return I0(n,e);break;case 60:return Cf(n,e);case 73:if(i[1]===73&&i[2]===42&&i[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(i[1]===68)return Bx(n,e);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return Ju.to_workbook(n,e);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?A6(n,e):rf(t,n,e,s);case 239:return i[3]===60?Cf(n,e):rf(t,n,e,s);case 255:if(i[1]===254)return R6(n,e);if(i[1]===0&&i[2]===2&&i[3]===0)return Ni.to_workbook(n,e);break;case 0:if(i[1]===0&&(i[2]>=2&&i[3]===0||i[2]===0&&(i[3]===8||i[3]===9)))return Ni.to_workbook(n,e);break;case 3:case 131:case 139:case 140:return kf.to_workbook(n,e);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return i0.to_workbook(n,e);break;case 10:case 13:case 32:return F6(n,e);case 137:if(i[1]===80&&i[2]===78&&i[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return Px.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?kf.to_workbook(n,e):rf(t,n,e,s)}function j0(t,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return ea(r.file,ut.write(t,{type:St?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return ut.write(t,r)}function O6(t,r){var e=Zt(r||{}),n=T6(t,e);return I6(n,e)}function I6(t,r){var e={},n=St?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(r.compression&&(e.compression="DEFLATE"),r.password)e.type=n;else switch(r.type){case"base64":e.type="base64";break;case"binary":e.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":case"file":e.type=n;break;default:throw new Error("Unrecognized type "+r.type)}var i=t.FullPaths?ut.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[e.type]||e.type,compression:!!r.compression}):t.generate(e);if(typeof Deno<"u"&&typeof i=="string"){if(r.type=="binary"||r.type=="base64")return i;i=new Uint8Array(po(i))}return r.password&&typeof encrypt_agile<"u"?j0(encrypt_agile(i,r.password),r):r.type==="file"?ea(r.file,i):r.type=="string"?Wt(i):i}function D6(t,r){var e=r||{},n=O3(t,e);return j0(n,e)}function Pn(t,r,e){e||(e="");var n=e+t;switch(r.type){case"base64":return Ls(Ln(n));case"binary":return Ln(n);case"string":return t;case"file":return ea(r.file,n,"utf8");case"buffer":return St?ri(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Pn(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function N6(t,r){switch(r.type){case"base64":return Ls(t);case"binary":return t;case"string":return t;case"file":return ea(r.file,t,"binary");case"buffer":return St?ri(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function Ua(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"?Ls(e):r.type=="string"?Wt(e):e;case"file":return ea(r.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+r.type)}}function U0(t,r){Wf(),A4(t);var e=Zt(r||{});if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),e.type=="array"){e.type="binary";var n=U0(t,e);return e.type="array",po(n)}var i=0;if(e.sheet&&(typeof e.sheet=="number"?i=e.sheet:i=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 Pn(S3(t,e),e);case"slk":case"sylk":return Pn(Zu.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"htm":case"html":return Pn(e6(t.Sheets[t.SheetNames[i]],e),e);case"txt":return N6(L6(t.Sheets[t.SheetNames[i]],e),e);case"csv":return Pn(z0(t.Sheets[t.SheetNames[i]],e),e,"\uFEFF");case"dif":return Pn(Ju.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"dbf":return Ua(kf.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"prn":return Pn(ds.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"rtf":return Pn(i0.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"eth":return Pn(Qu.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"fods":return Pn(P0(t,e),e);case"wk1":return Ua(Ni.sheet_to_wk1(t.Sheets[t.SheetNames[i]],e),e);case"wk3":return Ua(Ni.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),Ua(D0(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),D6(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return O6(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function P6(t,r,e,n,i,s,o,h){var c=Er(e),a=h.defval,f=h.raw||!Object.prototype.hasOwnProperty.call(h,"raw"),l=!0,u=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(u,"__rowNum__",{value:e,enumerable:!1})}catch{u.__rowNum__=e}else u.__rowNum__=e;if(!o||t[e])for(var p=r.s.c;p<=r.e.c;++p){var m=o?t[e][p]:t[n[p]+c];if(m===void 0||m.t===void 0){if(a===void 0)continue;s[p]!=null&&(u[s[p]]=a);continue}var d=m.v;switch(m.t){case"z":if(d==null)break;continue;case"e":d=d==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(s[p]!=null){if(d==null)if(m.t=="e"&&d===null)u[s[p]]=null;else if(a!==void 0)u[s[p]]=a;else if(f&&d===null)u[s[p]]=null;else continue;else u[s[p]]=f&&(m.t!=="n"||m.t==="n"&&h.rawNumbers!==!1)?d:mi(m,d,h);d!=null&&(l=!1)}}return{row:u,isempty:l}}function H0(t,r){if(t==null||t["!ref"]==null)return[];var e={t:"n",v:0},n=0,i=1,s=[],o=0,h="",c={s:{r:0,c:0},e:{r:0,c:0}},a=r||{},f=a.range!=null?a.range:t["!ref"];switch(a.header===1?n=1:a.header==="A"?n=2:Array.isArray(a.header)?n=3:a.header==null&&(n=0),typeof f){case"string":c=Lt(f);break;case"number":c=Lt(t["!ref"]),c.s.r=f;break;default:c=f}n>0&&(i=0);var l=Er(c.s.r),u=[],p=[],m=0,d=0,v=Array.isArray(t),x=c.s.r,g=0,b={};v&&!t[x]&&(t[x]=[]);var w=a.skipHidden&&t["!cols"]||[],y=a.skipHidden&&t["!rows"]||[];for(g=c.s.c;g<=c.e.c;++g)if(!(w[g]||{}).hidden)switch(u[g]=dr(g),e=v?t[x][g]:t[u[g]+l],n){case 1:s[g]=g-c.s.c;break;case 2:s[g]=u[g];break;case 3:s[g]=a.header[g-c.s.c];break;default:if(e==null&&(e={w:"__EMPTY",t:"s"}),h=o=mi(e,null,a),d=b[o]||0,!d)b[o]=1;else{do h=o+"_"+d++;while(b[h]);b[o]=d,b[h]=1}s[g]=h}for(x=c.s.r+i;x<=c.e.r;++x)if(!(y[x]||{}).hidden){var T=P6(t,c,x,u,n,s,v,a);(T.isempty===!1||(n===1?a.blankrows!==!1:a.blankrows))&&(p[m++]=T.row)}return p.length=m,p}var hh=/"/g;function B6(t,r,e,n,i,s,o,h){for(var c=!0,a=[],f="",l=Er(e),u=r.s.c;u<=r.e.c;++u)if(n[u]){var p=h.dense?(t[e]||[])[u]:t[n[u]+l];if(p==null)f="";else if(p.v!=null){c=!1,f=""+(h.rawNumbers&&p.t=="n"?p.v:mi(p,null,h));for(var m=0,d=0;m!==f.length;++m)if((d=f.charCodeAt(m))===i||d===s||d===34||h.forceQuotes){f='"'+f.replace(hh,'""')+'"';break}f=="ID"&&(f='"ID"')}else p.f!=null&&!p.F?(c=!1,f="="+p.f,f.indexOf(",")>=0&&(f='"'+f.replace(hh,'""')+'"')):f="";a.push(f)}return h.blankrows===!1&&c?null:a.join(o)}function z0(t,r){var e=[],n=r??{};if(t==null||t["!ref"]==null)return"";var i=Lt(t["!ref"]),s=n.FS!==void 0?n.FS:",",o=s.charCodeAt(0),h=n.RS!==void 0?n.RS:`
|
||
`,c=h.charCodeAt(0),a=new RegExp((s=="|"?"\\|":s)+"+$"),f="",l=[];n.dense=Array.isArray(t);for(var u=n.skipHidden&&t["!cols"]||[],p=n.skipHidden&&t["!rows"]||[],m=i.s.c;m<=i.e.c;++m)(u[m]||{}).hidden||(l[m]=dr(m));for(var d=0,v=i.s.r;v<=i.e.r;++v)(p[v]||{}).hidden||(f=B6(t,i,v,l,o,c,s,n),f!=null&&(n.strip&&(f=f.replace(a,"")),(f||n.blankrows!==!1)&&e.push((d++?h:"")+f)));return delete n.dense,e.join("")}function L6(t,r){r||(r={}),r.FS=" ",r.RS=`
|
||
`;var e=z0(t,r);return e}function $0(){return{SheetNames:[],Sheets:{}}}function W0(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 s=e.match(/(^.*?)(\d+)$/);i=s&&+s[2]||0;var o=s&&s[1]||e;for(++i;i<=65535&&t.SheetNames.indexOf(e=o+i)!=-1;++i);}if(A0(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}const nf=["#FFFFFF","#000000","#BFBFBF","#323232","#4472C4","#ED7D31","#A5A5A5","#FFC000","#5B9BD5","#71AD47"],sf=["#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","#000000"];let j6=80,U6=24;function i8(t,r={}){return H6(V0(t),r)}function H6(t,r){return new Promise(function(e,n){const i=new XMLHttpRequest;i.open(r.method||"GET",t,!0),i.responseType=r.responseType||"arraybuffer",i.onload=function(){i.status===200?e(i.response):n(i.status)},i.onerror=function(){n(i.status)},i.withCredentials=r.withCredentials||!1,r.headers&&Object.keys(r.headers).forEach(function(s){i.setRequestHeader(s,r.headers[s])}),i.send(r.body)})}function s8(t,r){try{if(r){const n=Rf(t,{type:"array"});t=U0(n,{bookType:"xlsx",type:"array"})}return new y1.Workbook().xlsx.load(t)}catch(e){return console.warn(e),Promise.reject(e)}}function z6(t,r,e){for(let n=0;n<(t.columns||[]).length;n++)r.cols[n.toString()]={},t.columns[n]._hidden?r.cols[n.toString()].width=.1:t.columns[n].width?r.cols[n.toString()].width=t.columns[n].width*6+(e.widthOffset||0):r.cols[n.toString()].width=j6+(e.widthOffset||0);r.cols.len=Math.max(Object.keys(r.cols).length,e.minColLength||0)}function $6(t){let{numFmt:r,value:e,type:n}=t;switch(n){case 2:try{if(t.style.numFmt){if(t.style.numFmt.endsWith("%")){let i=t.style.numFmt.match(/\.(\d+)%/);return i?(e*100).toFixed(i[1].length)+"%":e*100+"%"}else if(/0(\.0+)?/.test(t.style.numFmt)){let i="";if(t.style.numFmt.startsWith("$")?i="$":t.style.numFmt.startsWith('"¥')&&(i="¥"),e===0&&t.style.numFmt.startsWith("_"))return"-";let s=t.style.numFmt.match(/0\.(0+)(_|;|$)/);s?s=s[1].length:s=0;let o=e.toFixed(s)+"";if(t.style.numFmt.includes("#,##")){o=o.split(".");let h=o[0].split("").reverse(),c=[];for(let a=0;a<h.length;a++)c.push(h[a]),(a+1)%3===0&&a<h.length-1&&h[a+1]!=="-"&&c.push(",");o[0]=c.reverse().join(""),o=o.join(".")}return i+o}}return e+""}catch{return e}case 3:return e;case 4:switch(r){case"yyyy-mm-dd;@":return Ci(e).format("YYYY-MM-DD");case"mm-dd-yy":return Ci(e).format("YYYY/MM/DD");case"[$-F800]dddd, mmmm dd, yyyy":return Ci(e).format("YYYY年M月D日 ddd");case'm"月"d"日";@':return Ci(e).format("M月D日");case"yyyy/m/d h:mm;@":case'm/d/yy "h":mm':return Ci(e).subtract(8,"hour").format("YYYY/M/DD HH:mm");case"h:mm;@":return Ci(e).format("HH:mm");default:return Ci(e).format("YYYY-MM-DD")}case 5:return e.text;case 6:return Mf.get(e,"result.error")||e.result;case 8:return t.text;case 9:return t.text.toUpperCase();default:return e}}function af(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();let r={};try{let 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,ht(`rgba(${r.r}, ${r.g}, ${r.b}, ${r.a})`).toHexString()}catch(e){console.warn(e)}}function of(t,r){return t>9?"#C7C9CC":typeof r>"u"?nf[t]:r>0?G1(nf[t],r):V1(nf[t],Math.abs(r))}function W6(t){t.style=Mf.cloneDeep(t.style);let r=null;t.style.fill&&t.style.fill.fgColor&&(t.style.fill.fgColor.argb?r=af(t.style.fill.fgColor.argb):t.style.fill.fgColor.hasOwnProperty("theme")?r=of(t.style.fill.fgColor.theme,t.style.fill.fgColor.tint):t.style.fill.fgColor.indexed?r=sf[t.style.fill.fgColor.indexed]||"#C7C9CC":r="#C7C9CC"),r&&(t.style.bgcolor=r);let e=null;if(t.style.font&&t.style.font.color&&(t.style.font.color.argb?e=af(t.style.font.color.argb):t.style.font.color.hasOwnProperty("theme")?e=of(t.style.font.color.theme,t.style.font.color.tint):t.style.font.color.indexed?e=sf[t.style.font.color.indexed]||"#000000":e="#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){let n={};Object.keys(t.style.border).forEach(i=>{let s=t.style.border[i],o="#000000";typeof s.color=="string"?o=s.color:s.color&&(s.color.argb?o=af(s.color.argb):s.color.hasOwnProperty("theme")?o=of(s.color.theme,s.color.tint):s.color.indexed&&(o=sf[s.color.indexed])),n[i]=[s.style||"thin",o]}),t.style.border2={...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 a8(t,r){let e=[],n=[];return t.eachSheet(i=>{n.push(i);let s={name:i.name,styles:[],rows:{},cols:{},merges:[],media:[]},o=[];for(let a in i._merges){s.merges.push(i._merges[a].shortRange);let f={};f.startAddress=i._merges[a].tl,f.endAddress=i._merges[a].br,f.YRange=i._merges[a].model.bottom-i._merges[a].model.top,f.XRange=i._merges[a].model.right-i._merges[a].model.left,o.push(f)}let h=0;(i._rows||[]).forEach((a,f)=>{s.rows[f]={cells:{}},a._hidden?(s.rows[f].height=.1,a._cells=[]):a.height?s.rows[f].height=a.height+(r.heightOffset||0):s.rows[f].height=U6+(r.heightOffset||0),(a._cells||[]).forEach((l,u)=>{s.rows[f].cells[u]={},h=Math.max(h,u);let p=Mf.find(o,function(m){return m.startAddress==l._address});p&&l.master.address!=p.startAddress||(p&&(s.rows[f].cells[u].merge=[p.YRange,p.XRange]),s.rows[f].cells[u].text=$6(l),s.styles.push(W6(l)),s.rows[f].cells[u].style=s.styles.length-1)})}),s._media&&(s.media=s._media);let c=Object.keys(s.rows);s.rows.len=Math.max(+c[c.length-1]+1,r.hasOwnProperty("minRowLength")?r.minRowLength:100),i._columns&&i._columns.length>h+1&&(i._columns=i._columns.slice(0,h+1)),z6(i,s,r),e.push(s)}),t._worksheets=n,{workbookData:e,workbookSource:t,medias:t.media||[]}}let $a=[];function o8(t,r,e,n,i={}){e&&e._media.length&&e._media.forEach(s=>{let{imageId:o,range:h,type:c}=s;if(c==="image"){let a=X6(e,h,n,i);V6(t,o,r[o],a)}})}let Wa=60,Xa=25,ff=80,lf=24,Bn=window.devicePixelRatio;function X6(t,r,e,n){var C,M,I,B,U,j,H,G,L,R,F,_,k,N;let{widthOffset:i,heightOffset:s}=n,{tl:o,br:h,ext:c}=r,{nativeCol:a=0,nativeColOff:f=0,nativeRow:l=0,nativeRowOff:u=0}=o||{},p=Wa,m=Xa;for(let P=0;P<a;P++)p+=((M=(C=t==null?void 0:t._columns)==null?void 0:C[P])==null?void 0:M.width)*6||ff,p+=i||0;for(let P=0;P<l;P++)m+=((B=(I=t==null?void 0:t._rows)==null?void 0:I[P])==null?void 0:B.height)||lf,m+=s||0;let d=p+f/12700,v=m+u/12700,{nativeCol:x=0,nativeColOff:g=0,nativeRow:b=0,nativeRowOff:w=0}=h||{},y=0;if(a===x)y=(g-f)/12700;else if(h){y=(((j=(U=t==null?void 0:t._columns)==null?void 0:U[a])==null?void 0:j.width)*6||ff)-f/12700;for(let P=a+1;P<x;P++)y+=((G=(H=t==null?void 0:t._columns)==null?void 0:H[P])==null?void 0:G.width)*6||ff;y+=g/12700}else c!=null&&c.width&&(y=c.width/1.333333);let T;if(l===b)T=(w-u)/12700;else if(h){T=(((R=(L=t==null?void 0:t._rows)==null?void 0:L[l])==null?void 0:R.height)||lf)-u/12700;for(let P=l+1;P<b;P++)T+=((_=(F=t==null?void 0:t._rows)==null?void 0:F[P])==null?void 0:_.height)||lf;T+=w/12700}else c!=null&&c.height&&(T=c.height/1.333333);return{x:(d-(((k=e==null?void 0:e.scroll)==null?void 0:k.x)||0))*Bn,y:(v-(((N=e==null?void 0:e.scroll)==null?void 0:N.y)||0))*Bn,width:y*Bn,height:T*Bn}}function f8(){$a=[]}function V6(t,r,e,n){G6(r,e).then(i=>{let s=0,o=0,h=i.width,c=i.height,a=n.x,f=n.y,l=n.width,u=n.height,p=l/h,m=u/c;if(a<Wa*Bn){let v=Wa*Bn-a;a=Wa*Bn,l-=v,h-=v/p,s+=v/p}if(f<Xa*Bn){let v=Xa*Bn-f;f=Xa*Bn,u-=v,c-=v/m,o+=v/m}let d=window.outerWidth/window.innerWidth;t.drawImage(i,s,o,h,c,a*d,f*d,l*d,u*d)}).catch(i=>{console.error(i)})}function G6(t,r){return new Promise((e,n)=>{if($a[t])return e($a[t]);const{buffer:i}=r.buffer;let s=new Blob([i],{type:"image/"+r.extension}),o=URL.createObjectURL(s),h=new Image;h.src=o,h.onload=function(){e(h),$a[t]=h},h.onerror=function(c){n(c)}})}function l8(t){if(t){let r=t.querySelectorAll("input");for(let e of r)e&&!e.readOnly&&(e.readOnly=!0);document.activeElement&&document.activeElement.blur()}}export{b1 as S,o8 as a,s8 as b,f8 as c,i8 as g,l8 as r,a8 as t};
|