mirror of
https://github.com/501351981/vue-office.git
synced 2025-06-15 07:00:00 +08:00
200 lines
1.5 MiB
200 lines
1.5 MiB
import{x as Qt,y as Sa}from"./index-0390a516.js";import{c as Bl}from"./_commonjs-dynamic-modules-302442b1.js";import{g as r4}from"./url-de9b02cf.js";class Na{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 Na(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 Na&&(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 qe=(t,r="")=>new Na(t,r),ta=["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 em(t){let r="",e=t;for(;e>=ta.length;)e/=ta.length,e-=1,r+=ta[parseInt(e,10)%ta.length];const n=t%ta.length;return r+=ta[n],r}function n4(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+=ta.length**i+ta.length*n}return r+=t.charCodeAt(t.length-1)-65,r}function sa(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[n4(r),parseInt(e,10)-1]}function Is(t,r){return`${em(t)}${r+1}`}function uf(t,r,e,n=()=>!0){if(r===0&&e===0)return t;const[i,s]=sa(t);return n(i,s)?Is(i+r,s+e):t}class Zr{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]=sa(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 Zr(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 Zr(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=Is(e,r);return this.multiple()&&(s=`${s}:${Is(i,n)}`),s}clone(){const{sri:r,sci:e,eri:n,eci:i,w:s,h:o}=this;return new Zr(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]=sa(e[0]);let[s,o]=[i,n];return e.length>1&&([o,s]=sa(e[1])),new Zr(i,n,s,o)}}let i4=class{constructor(){this.range=new Zr(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 s4{constructor(){this.x=0,this.y=0,this.ri=0,this.ci=0}}class a4{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 o4{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 dp{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 pp{constructor(r,e){this.ci=r,this.order=e}asc(){return this.order==="asc"}desc(){return this.order==="desc"}}class f4{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 dp(i.ci,i.operator,i.value)),n&&(this.sort=new pp(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 dp(r,e,n)):i.set(e,n)}setSort(r,e){this.sort=e?new pp(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 Zr.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 ku{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 ku(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=>Zr.valueOf(e)),this}getData(){return this._.map(r=>r.toString())}}function l4(t){return JSON.parse(JSON.stringify(t))}const tm=(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]||{},tm(t[n],i)):t[n]=i})}),t);function su(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(!su(s[h],o[h]))return!1}else if(typeof s!="function"&&!Array.isArray(s)&&s instanceof Object&&!su(s,o))return!1}return!0}const c4=(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 h4(t,r){const e=t[`${r}`];return delete t[`${r}`],e}function u4(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 d4(t,r,e){let n=0;for(let i=t;i<r;i+=1)n+=e(i);return n}function p4(t,r,e){for(let n=t;n<r;n+=1)e(n)}function m4(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 Dh(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 ka(t,r,e){if(Number.isNaN(r)||Number.isNaN(e))return r+t+e;const n=Dh(r),i=Dh(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,Dh(h)>5?h.toFixed(2):h;return h.toFixed(Math.max(n,i))}const ri={cloneDeep:l4,merge:(...t)=>tm({},...t),equals:su,arrayEquals:m4,sum:c4,rangeEach:p4,rangeSum:d4,rangeReduceIf:u4,deleteProperty:h4,numberCalc:ka};class g4{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 ri.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,w=0;(u<o||p<h)&&(g=!1,u<o?w=v:w=x);for(let y=o;y<=c;y+=1)if(this._[y]){for(let _=h;_<=a;_+=1)if(this._[y].cells&&this._[y].cells[_])for(let k=f;k<=u;k+=m)for(let F=l;F<=p;F+=d){const O=k+(y-o),N=F+(_-h),U=ri.cloneDeep(this._[y].cells[_]);if(i&&U&&U.text&&U.text.length>0){const{text:z}=U;let W=F-l+(k-f)+2;if(g||(W-=w+1),z[0]==="=")U.text=z.replace(/[a-zA-Z]{1,3}\d+/g,X=>{let[J,H]=[0,0];return o===f?J=W-1:H=W-1,/^\d+$/.test(X)?X:uf(X,J,H)});else if(m<=1&&d>1&&(f>c||u<o)||d<=1&&m>1&&(l>a||p<h)||m<=1&&d<=1){const X=/[\\.\d]+$/.exec(z);if(X!==null){const J=Number(X[0])+W-1;U.text=z.substring(0,X.index)+J}}}this.setCell(O,N,U,n),s(O,N,U)}}}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=>uf(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=>uf(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=>uf(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=>uf(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 v4{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 ri.rangeSum(r,e,n=>this.getWidth(n))}totalWidth(){return this.sumWidth(0,this.len)}}const x4={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 au=["en"];const rm={en:x4};function mp(t,r){if(r)for(const e of au){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 sn(t){let r=mp(t,rm);return!r&&window&&window.x_spreadsheet&&window.x_spreadsheet.$messages&&(r=mp(t,window.x_spreadsheet.$messages)),r||""}function ur(t){return()=>sn(t)}function nm(t,r,e=!1){e?au=[t]:au.unshift(t),r&&(rm[t]=r)}const gp={phone:/^[1-9]\d{10}$/,email:/w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/};function Zi(t,r,...e){let n="";return t||(n=sn(`validation.${r}`,...e)),[t,n]}class im{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=ri.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 Zi(!1,"required");if(/^\s*$/.test(r))return[!0];if(gp[s]&&!gp[s].test(r))return Zi(!1,"notMatch");if(s==="list")return Zi(this.values().includes(r),"notIn");if(n){const o=this.parseValue(r);if(n==="be"){const[h,c]=i;return Zi(o>=this.parseValue(h)&&o<=this.parseValue(c),"between",h,c)}if(n==="nbe"){const[h,c]=i;return Zi(o<this.parseValue(h)||o>this.parseValue(c),"notBetween",h,c)}if(n==="eq")return Zi(o===this.parseValue(i),"equal",i);if(n==="neq")return Zi(o!==this.parseValue(i),"notEqual",i);if(n==="lt")return Zi(o<this.parseValue(i),"lessThan",i);if(n==="lte")return Zi(o<=this.parseValue(i),"lessThanEqual",i);if(n==="gt")return Zi(o>this.parseValue(i),"greaterThan",i);if(n==="gte")return Zi(o>=this.parseValue(i),"greaterThanEqual",i)}return[!0]}}class ac{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(Zr.valueOf(n[i]).includes(r,e))return!0;return!1}addRef(r){this.remove(Zr.valueOf(r)),this.refs.push(r)}remove(r){const e=[];this.refs.forEach(n=>{const i=Zr.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 ac(e,r,new im(n,i,o,s))}}class b4{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 im(n,i,s,o),c=this.getByValidator(h);c!==null?c.addRef(e):this._.push(new ac(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=>ac.valueOf(e))}}const w4={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"}},y4=41,_4=41,vp=(t,r)=>Object.prototype.hasOwnProperty.call(t,r);function xp(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(sn("error.pasteForMergedCell")),!1):!0}function bp(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 Zr(o,h,o+a,h+f))}})}function E4(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 _o(t,r,e){const{styles:n,rows:i}=this,s=i.getCellOrNew(t,r);let o={};s.style!==void 0&&(o=ri.cloneDeep(n[s.style])),o=ri.merge(o,{border:e}),s.style=this.addStyle(o)}function T4({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)_o.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=ri.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 _=0;_<l.length;_+=1){const[k,F,O,N]=l[_];if(u===k+O+1&&m.push(_),k<=u&&u<=k+O&&p===F){p+=N+1;break}}if(m.forEach(_=>l.splice(_,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,w=x>0&&p+x===a;let y={};t==="all"?y={bottom:[r,e],top:[r,e],left:[r,e],right:[r,e]}:t==="inside"?(!w&&p<a&&(y.right=[r,e]),!g&&u<c&&(y.bottom=[r,e])):t==="horizontal"?!g&&u<c&&(y.bottom=[r,e]):t==="vertical"?!w&&p<a&&(y.right=[r,e]):t==="outside"&&f&&(o===u&&(y.top=[r,e]),(g||c===u)&&(y.bottom=[r,e]),h===p&&(y.left=[r,e]),(w||a===p)&&(y.right=[r,e])),Object.keys(y).length>0&&_o.call(this,u,p,y),p+=x}}else if(t==="top"||t==="bottom")for(let l=h;l<=a;l+=1)t==="top"&&(_o.call(this,o,l,{top:[r,e]}),l+=s.getCellMerge(o,l)[1]),t==="bottom"&&(_o.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"&&(_o.call(this,l,h,{left:[r,e]}),l+=s.getCellMerge(l,h)[0]),t==="right"&&(_o.call(this,l,a,{right:[r,e]}),l+=s.getCellMerge(l,a)[0])}}function S4(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 k4(t,r){const{cols:e}=this,n=this.freezeTotalWidth();let i=e.indexWidth;n+e.indexWidth<t&&(i-=r);const[s,o,h]=ri.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 C4{constructor(r,e){this.settings=ri.merge(w4,e||{}),this.name=r||"sheet",this.freeze=[0,0],this.styles=[],this.merges=new ku,this.rows=new g4(this.settings.row),this.cols=new v4(this.settings.col),this.validations=new b4,this.hyperlinks={},this.comments={},this.selector=new i4,this.scroll=new s4,this.history=new a4,this.clipboard=new o4,this.autoFilter=new f4,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(vp(e,n)){for(let i=this.selector.range.sci;i<=this.selector.range.eci;i+=1)if(i>this.selector.range.sci&&(r+=" "),vp(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()||!xp.call(this,n.range,i.range,e)?!1:(this.changeData(()=>{n.isCopy()?bp.call(this,n.range,i.range,r):n.isCut()&&E4.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 xp.call(this,i,r,n)?(this.changeData(()=>{bp.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 Zr(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 Zr(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")T4.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}(${Is(d,l)}:${Is(d,p)})`}else if(f>1){const d=s.getCellOrNew(o,m+1);d.text=`=${e}(${Is(u,o)}:${Is(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=ri.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}=S4.call(this,e,n.y),{ci:f,left:l,width:u}=k4.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 w=e.getCell(d,v);w.merge[0]+=x,w.merge[1]+=g,w.merge[0]===0&&w.merge[1]===0&&delete w.merge})})}scrollx(r,e){const{scroll:n,freeze:i,cols:s}=this,[,o]=i,[h,c,a]=ri.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]=ri.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 ri.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-=_4),e&&(i-=y4),i}viewWidth(){return this.settings.view.width()}freezeViewRange(){const[r,e]=this.freeze;return new Zr(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 Zr(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 Zr(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(ri.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]=sa(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:Is(e[1],e[0]),styles:n,merges:i.getData(),rows:s.getData(),cols:o.getData(),validations:h.getData(),autofilter:c.getData()}}}function ii(t,r,e){t.addEventListener(r,e)}function oc(t,r,e){t.removeEventListener(r,e)}function Lo(t){t.xclickoutside&&(oc(window.document.body,"click",t.xclickoutside),delete t.xclickoutside)}function Wf(t,r){t.xclickoutside=e=>{e.detail===2||t.contains(e.target)||(r?r(t):(t.hide(),Lo(t)))},ii(window.document.body,"click",t.xclickoutside)}function sm(t,r,e){ii(t,"mousemove",r);const n=t;n.xEvtUp=i=>{oc(t,"mousemove",r),oc(t,"mouseup",t.xEvtUp),e(i)},ii(t,"mouseup",t.xEvtUp)}function wp(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 A4(t,{move:r,end:e}){let n=0,i=0;ii(t,"touchstart",s=>{const{pageX:o,pageY:h}=s.touches[0];n=o,i=h}),ii(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)&&(wp(c,a,s,r),n=o,i=h),s.preventDefault()}),ii(t,"touchend",s=>{if(!e)return;const{pageX:o,pageY:h}=s.changedTouches[0],c=o-n,a=h-i;wp(c,a,s,e)})}function F4(){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 dt="x-spreadsheet";class yp{constructor(r=!1,e){this.moving=!1,this.vertical=r,this.el=qe("div",`${dt}-resizer ${r?"vertical":"horizontal"}`).children(this.unhideHoverEl=qe("div",`${dt}-resizer-hover`).on("dblclick.stop",n=>this.mousedblclickHandler(n)).css("position","absolute").hide(),this.hoverEl=qe("div",`${dt}-resizer-hover`).on("mousedown.stop",n=>this.mousedownHandler(n)),this.lineEl=qe("div",`${dt}-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(),sm(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 _p{constructor(r){this.vertical=r,this.moveFn=null,this.el=qe("div",`${dt}-scrollbar ${r?"vertical":"horizontal"}`).child(this.contentEl=qe("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 Ll=2*2-1;let ou=10;class Ul{constructor(r=!1){this.useHideInput=r,this.inputChange=()=>{},this.cornerEl=qe("div",`${dt}-selector-corner`),this.areaEl=qe("div",`${dt}-selector-area`).child(this.cornerEl).hide(),this.clipboardEl=qe("div",`${dt}-selector-clipboard`).hide(),this.autofillEl=qe("div",`${dt}-selector-autofill`).hide(),this.el=qe("div",`${dt}-selector`).css("z-index",`${ou}`).children(this.areaEl,this.clipboardEl,this.autofillEl).hide(),r&&(this.hideInput=qe("input","").on("compositionend",e=>{this.inputChange(e.target.value)}),this.el.child(this.hideInputDiv=qe("div","hide-input").child(this.hideInput)),this.el.child(this.hideInputDiv=qe("div","hide-input").child(this.hideInput))),ou+=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-Ll+.8,height:s-Ll+.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-Ll,height:s-Ll,left:e,top:n}).show()}hideAutofill(){this.autofillEl.hide()}showClipboard(){this.clipboardEl.show()}hideClipboard(){this.clipboardEl.hide()}}function Cu(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 Au(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 Fu(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 fu(t){const{br:r}=this;r.setAreaOffset(Cu.call(this,t))}function R4(t){const{tl:r}=this;r.setAreaOffset(t)}function am(t){const{t:r}=this;r.setAreaOffset(Au.call(this,t))}function om(t){const{l:r}=this;r.setAreaOffset(Fu.call(this,t))}function fm(t){const{l:r}=this;r.setClipboardOffset(Fu.call(this,t))}function lu(t){const{br:r}=this;r.setClipboardOffset(Cu.call(this,t))}function M4(t){const{tl:r}=this;r.setClipboardOffset(t)}function lm(t){const{t:r}=this;r.setClipboardOffset(Au.call(this,t))}function Ep(t){fu.call(this,t),R4.call(this,t),am.call(this,t),om.call(this,t)}function Tp(t){lu.call(this,t),M4.call(this,t),lm.call(this,t),fm.call(this,t)}class I4{constructor(r){this.inputChange=()=>{},this.data=r,this.br=new Ul(!0),this.t=new Ul,this.l=new Ul,this.tl=new Ul,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=qe("div",`${dt}-selectors`).children(this.tl.el,this.t.el,this.l.el,this.br.el).hide(),this.lastri=-1,this.lastci=-1,ou+=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();Ep.call(this,r),Tp.call(this,e),this.resetOffset()}resetBRTAreaOffset(){const r=this.data.getSelectedRect(),e=this.data.getClipboardRect();fu.call(this,r),am.call(this,r),lu.call(this,e),lm.call(this,e),this.resetOffset()}resetBRLAreaOffset(){const r=this.data.getSelectedRect(),e=this.data.getClipboardRect();fu.call(this,r),om.call(this,r),lu.call(this,e),fm.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),Ep.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 Zr(n,c,s,i-1);else if(a>0)this.arange=new Zr(h,i,n-1,o);else if(u<0)this.arange=new Zr(n,o+1,s,c);else if(l<0)this.arange=new Zr(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(Cu.call(this,p)),d.showAutofill(Fu.call(this,p)),v.showAutofill(Au.call(this,p)),x.showAutofill(p)}}hideAutofill(){["br","l","t","tl"].forEach(r=>{this[r].hideAutofill()})}showClipboard(){const r=this.data.getClipboardRect();Tp.call(this,r),["br","l","t","tl"].forEach(e=>{this[e].showClipboard()})}hideClipboard(){["br","l","t","tl"].forEach(r=>{this[r].hideClipboard()})}}function O4(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 D4(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 Sp(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 N4(t){const{keyCode:r}=t;switch(t.ctrlKey&&t.stopPropagation(),r){case 37:t.stopPropagation();break;case 38:O4.call(this,t);break;case 39:t.stopPropagation();break;case 40:D4.call(this,t);break;case 13:Sp.call(this,t);break;case 9:Sp.call(this,t);break;default:t.stopPropagation();break}}class cm{constructor(r,e,n="200px"){this.filterItems=[],this.items=r,this.el=qe("div",`${dt}-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(),Lo(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=qe("div",`${dt}-item`).child(s).on("click.stop",()=>{this.itemClick(i),this.hide()});return i.label&&o.child(qe("div","label").html(i.label)),o}),this.filterItems=e,e.length<=0)return;const{el:n}=this;n.html("").children(...e).show(),Wf(n.parent(),()=>{this.hide()})}bindInputEvents(r){r.on("keydown",e=>N4.call(this,e))}}class Pn extends Na{constructor(r){super("div",`${dt}-icon`),this.iconNameEl=qe("div",`${dt}-icon-img ${r}`),this.child(this.iconNameEl)}setName(r){this.iconNameEl.className(`${dt}-icon-img ${r}`)}}function kp(t,r){t.setMonth(t.getMonth()+r)}function P4(t,r){const e=new Date(t);return e.setDate(r-t.getDay()+1),e}function B4(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=P4(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 L4{constructor(r){this.value=r,this.cvalue=new Date(r),this.headerLeftEl=qe("div","calendar-header-left"),this.bodyEl=qe("tbody",""),this.buildAll(),this.el=qe("div","x-spreadsheet-calendar").children(qe("div","calendar-header").children(this.headerLeftEl,qe("div","calendar-header-right").children(qe("a","calendar-prev").on("click.stop",()=>this.prev()).child(new Pn("chevron-left")),qe("a","calendar-next").on("click.stop",()=>this.next()).child(new Pn("chevron-right")))),qe("table","calendar-body").children(qe("thead","").child(qe("tr","").children(...sn("calendar.weeks").map(e=>qe("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;kp(r,-1),this.buildAll()}next(){const{value:r}=this;kp(r,1),this.buildAll()}buildAll(){this.buildHeaderLeft(),this.buildBody()}buildHeaderLeft(){const{value:r}=this;this.headerLeftEl.html(`${sn("calendar.months")[r.getMonth()]} ${r.getFullYear()}`)}buildBody(){const{value:r,cvalue:e,bodyEl:n}=this,s=B4(r.getFullYear(),r.getMonth(),e).map(o=>{const h=o.map(c=>{let a="cell";return c.disabled&&(a+=" disabled"),c.active&&(a+=" active"),qe("td","").child(qe("div",a).on("click.stop",()=>{this.selectChange(c.d)}).child(c.d.getDate().toString()))});return qe("tr","").children(...h)});n.html("").children(...s)}}class U4{constructor(){this.calendar=new L4(new Date),this.el=qe("div",`${dt}-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 fc(){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 j4({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),fc.call(this)}function H4(t){const{keyCode:r,altKey:e}=t;r!==13&&r!==9&&t.stopPropagation(),r===13&&e&&(j4.call(this,t,`
|
||
`),t.stopPropagation()),r===13&&!e&&t.preventDefault()}function W4(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),fc.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),fc.call(this),this.change("input",r)}}function $4(t){const{el:r}=this.textEl;setTimeout(()=>{r.focus(),r.setSelectionRange(t,t)},0)}function hm(t,r){const{textEl:e,textlineEl:n}=this;e.el.blur(),e.val(t),n.html(t),$4.call(this,r)}function z4(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}`}hm.call(this,this.inputText,n)}function X4(){this.suggest.setItems(this.formulas)}function V4(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 G4{constructor(r,e,n){this.viewFn=e,this.rowHeight=n,this.formulas=r,this.suggest=new cm(r,i=>{z4.call(this,i)}),this.datepicker=new U4,this.datepicker.change(i=>{this.setText(V4(i)),this.clear()}),this.areaEl=qe("div",`${dt}-editor-area`).children(this.textEl=qe("textarea","").on("input",i=>W4.call(this,i)).on("paste.stop",()=>{}).on("keydown",i=>H4.call(this,i)),this.textlineEl=qe("div","textline"),this.suggest.el,this.datepicker.el).on("mousemove.stop",()=>{}).on("mousedown.stop",()=>{}),this.el=qe("div",`${dt}-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(""),X4.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,hm.call(this,r,r.length),fc.call(this)}}class Fa extends Na{constructor(r,e=""){super("div",`${dt}-button ${e}`),this.child(sn(`button.${r}`))}}function lc(){return window.devicePixelRatio||1}function Ru(){return lc()-.5}function Zt(t){return parseInt(t*lc(),10)}function Eo(t){const r=Zt(t);return r>0?r-.5:.5}class K4{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 Cp(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 um{constructor(r,e,n){this.el=r,this.ctx=r.getContext("2d"),this.resize(e,n),this.ctx.scale(lc(),lc())}resize(r,e){this.el.style.width=`${r}px`,this.el.style.height=`${e}px`,this.el.width=Zt(r),this.el.height=Zt(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(Zt(r),Zt(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(Zt(r)-.5,Zt(e)-.5,Zt(n),Zt(i)),this}fillText(r,e,n){return this.ctx.fillText(r,Zt(e),Zt(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":""} ${Zt(c.size)}px ${c.name}`,fillStyle:a,strokeStyle:a});const p=`${r}`.split(`
|
||
`),m=e.innerWidth(),d=[];p.forEach(g=>{const w=s.measureText(g).width;if(i&&w>Zt(m)){let y={w:0,len:0,start:0};for(let _=0;_<g.length;_+=1)y.w>=Zt(m)&&(d.push(g.substr(y.start,y.len)),y={w:0,len:0,start:_}),y.len+=1,y.w+=s.measureText(g[_]).width+1;y.len>0&&d.push(g.substr(y.start,y.len))}else d.push(g)});const v=(d.length-1)*(c.size+2);let x=e.texty(h,v);return d.forEach(g=>{const w=s.measureText(g).width;this.fillText(g,u,x),f&&Cp.call(this,"strike",u,x,o,h,c.size,w),l&&Cp.call(this,"underline",u,x,o,h,c.size,w),x+=c.size+2}),s.restore(),this}border(r,e){const{ctx:n}=this;return n.lineWidth=Ru,n.strokeStyle=e,r==="medium"?n.lineWidth=Zt(2)-.5:r==="thick"?n.lineWidth=Zt(3):r==="dashed"?n.setLineDash([Zt(3),Zt(2)]):r==="dotted"?n.setLineDash([Zt(1),Zt(1)]):r==="double"&&n.setLineDash([Zt(2),0]),this}line(...r){const{ctx:e}=this;if(r.length>1){e.beginPath();const[n,i]=r[0];e.moveTo(Eo(n),Eo(i));for(let s=1;s<r.length;s+=1){const[o,h]=r[s];e.lineTo(Eo(o),Eo(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(Zt(h),Zt(c)),e.lineTo(Zt(h+8),Zt(c)),e.lineTo(Zt(h+4),Zt(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(Zt(o-8),Zt(i-1)),e.lineTo(Zt(o),Zt(i-1)),e.lineTo(Zt(o),Zt(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(Zt(o-8),Zt(i-1)),e.lineTo(Zt(o),Zt(i-1)),e.lineTo(Zt(o),Zt(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(Eo(i+1),Eo(s+1),Zt(o-2),Zt(h-2)),n.clip(),n.fill(),e(),n.restore()}}const Ap=[{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"}],cu=[{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 Y4(t){for(let r=0;r<cu.length;r+=1){const e=cu[r];if(e.pt===t)return e.px}return t}const Z4=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]=sa(e.pop()),[p,m]=sa(e.pop());let d=0;for(let v=p;v<=l;v+=1)for(let x=m;x<=u;x+=1)e.push(Is(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},J4=(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]=sa(n);return i*r(s,o)},Q4=(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(ka("+",i.pop(),c))}else if(o==="-")if(i.length===1){const c=i.pop();i.push(ka("*",c,-1))}else{const c=i.pop();i.push(ka("-",i.pop(),c))}else if(o==="*")i.push(ka("*",i.pop(),i.pop()));else if(o==="/"){const c=i.pop();i.push(ka("/",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(J4(o,e)),n.pop()}}return i[0]},dm=(t,r,e,n=[])=>{if(t[0]==="="){const i=Z4(t.substring(1));return i.length<=0?t:Q4(i,r,(s,o)=>dm(e(s,o),r,e,n),n)}return t},q4={render:dm},Mu=[{key:"SUM",title:ur("formula.sum"),render:t=>t.reduce((r,e)=>ka("+",r,e),0)},{key:"AVERAGE",title:ur("formula.average"),render:t=>t.reduce((r,e)=>Number(r)+Number(e),0)/t.length},{key:"MAX",title:ur("formula.max"),render:t=>Math.max(...t.map(r=>Number(r)))},{key:"MIN",title:ur("formula.min"),render:t=>Math.min(...t.map(r=>Number(r)))},{key:"IF",title:ur("formula._if"),render:([t,r,e])=>t?r:e},{key:"AND",title:ur("formula.and"),render:t=>t.every(r=>r)},{key:"OR",title:ur("formula.or"),render:t=>t.some(r=>r)},{key:"CONCAT",title:ur("formula.concat"),render:t=>t.join("")}],e3=Mu,pm={};Mu.forEach(t=>{pm[t.key]=t});const To=t=>t,jl=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},pf=[{key:"normal",title:ur("format.normal"),type:"string",render:To},{key:"text",title:ur("format.text"),type:"string",render:To},{key:"number",title:ur("format.number"),type:"number",label:"1,000.12",render:jl},{key:"percent",title:ur("format.percent"),type:"number",label:"10.12%",render:t=>`${t}%`},{key:"rmb",title:ur("format.rmb"),type:"number",label:"¥10.00",render:t=>`¥${jl(t)}`},{key:"usd",title:ur("format.usd"),type:"number",label:"$10.00",render:t=>`$${jl(t)}`},{key:"eur",title:ur("format.eur"),type:"number",label:"€10.00",render:t=>`€${jl(t)}`},{key:"date",title:ur("format.date"),type:"date",label:"26/09/2008",render:To},{key:"time",title:ur("format.time"),type:"date",label:"15:59:00",render:To},{key:"datetime",title:ur("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:To},{key:"duration",title:ur("format.duration"),type:"date",label:"24:01:00",render:To}],mm={};pf.forEach(t=>{mm[t.key]=t});const t3=5,r3={fillStyle:"#f4f5f8"},n3={fillStyle:"#fff",lineWidth:Ru,strokeStyle:"#e6e6e6"};function i3(){return{textAlign:"center",textBaseline:"middle",font:`500 ${Zt(12)}px Source Sans Pro`,fillStyle:"#585757",lineWidth:Ru(),strokeStyle:"#e6e6e6"}}function gm(t,r,e,n=0){const{left:i,top:s,width:o,height:h}=t.cellRect(r,e);return new K4(i,s+n,o,h,t3)}function cc(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=gm(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=q4.render(a.text||"",pm,(v,x)=>r.getCellTextOrDefault(x,v)),l.format&&(p=mm[l.format].render(p));const m=Object.assign({},l.font);m.size=Y4(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 s3(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=gm(r,s,o);e.dropdown(h)})}}function Hl(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)=>{cc(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))cc(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(),s3.call(this,t),s.restore()}function Fp(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 Wl(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(r3),(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(i3()),(t==="all"||t==="left")&&(h.rowEach(r.sri,r.eri,(v,x,g)=>{const w=f+x,y=v;o.line([0,w],[e,w]),u<=y&&y<m+1&&Fp.call(this,0,w,e,g),o.fillText(y+1,e/2,w+g/2),v>0&&h.rows.isHide(v-1)&&(o.save(),o.attr({strokeStyle:"#c6c6c6"}),o.line([5,w+5],[e-5,w+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 w=l+x,y=v;o.line([w,0],[w,n]),p<=y&&y<d+1&&Fp.call(this,w,0,g,n),o.fillText(em(y),w+g/2,n/2),v>0&&h.cols.isHide(v-1)&&(o.save(),o.attr({strokeStyle:"#c6c6c6"}),o.line([w+5,5],[w+5,n-5]),o.restore())}),o.line([a+l,0],[a+l,n]),o.line([0,n],[a+l,n])),o.restore()}function a3(t,r){const{draw:e}=this;e.save(),e.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,t,r),e.restore()}function $l({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(n3).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 o3(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 f3{constructor(r,e){this.el=r,this.draw=new um(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;$l.call(this,o,i,s,h,c),Hl.call(this,o,i,s,-a,-f),Wl.call(this,"all",o,i,s,h,c),a3.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,$l.call(this,m,i,s,h,0),Hl.call(this,m,i,s,-a,0),Wl.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,$l.call(this,m,i,s,0,c),Wl.call(this,"left",m,i,s,0,c),Hl.call(this,m,i,s,0,-f)}const p=r.freezeViewRange();$l.call(this,p,i,s,0,0),Wl.call(this,"all",p,i,s,0,0),Hl.call(this,p,i,s,0,0),o3.call(this,i,s,h,c)}}clear(){this.draw.clear()}}const tc=[["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]],hu=["landscape","portrait"];function hc(t){return parseInt(96*t,10)}function Rp(t){t==="cancel"?this.el.hide():this.toPrint()}function l3(t){const{paper:r}=this,{value:e}=t.target,n=tc[e];r.w=hc(n[1]),r.h=hc(n[2]),this.preview()}function c3(t){const{paper:r}=this,{value:e}=t.target,n=hu[e];r.orientation=n,this.preview()}let h3=class{constructor(r){this.paper={w:hc(tc[0][1]),h:hc(tc[0][2]),padding:50,orientation:hu[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=qe("div",`${dt}-print`).children(qe("div",`${dt}-print-bar`).children(qe("div","-title").child("Print settings"),qe("div","-right").children(qe("div",`${dt}-buttons`).children(new Fa("cancel").on("click",Rp.bind(this,"cancel")),new Fa("next","primary").on("click",Rp.bind(this,"next"))))),qe("div",`${dt}-print-content`).children(this.contentEl=qe("div","-content"),qe("div","-sider").child(qe("form","").children(qe("fieldset","").children(qe("label","").child(`${sn("print.size")}`),qe("select","").children(...tc.map((e,n)=>qe("option","").attr("value",n).child(`${e[0]} ( ${e[1]}''x${e[2]}'' )`))).on("change",l3.bind(this))),qe("fieldset","").children(qe("label","").child(`${sn("print.orientation")}`),qe("select","").children(...hu.map((e,n)=>qe("option","").attr("value",n).child(`${sn("print.orientations")[n]}`))).on("change",c3.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 w=qe("div",`${dt}-canvas-card`),y=qe("canvas",`${dt}-canvas`);this.canvases.push(y.el);const _=new um(y.el,n,i);for(_.save(),_.translate(l,u),f<1&&_.scale(f,f);p<=c.eri;p+=1){const F=r.rows.getHeight(p);if(x+=F,x<h)for(let O=0;O<=c.eci;O+=1)cc(_,r,p,O,m),d.eci=O;else{g=-(x-F);break}}d.eri=p,_.restore(),_.save(),_.translate(l,u),f<1&&_.scale(f,f);const k=m;r.eachMergesInView(d,({sri:F,sci:O})=>{cc(_,r,F,O,k)}),_.restore(),d.sri=d.eri,d.sci=d.eci,m+=g,this.contentEl.child(qe("div",`${dt}-canvas-card-wraper`).child(w.child(y)))}this.el.show()}toPrint(){this.el.hide();const{paper:r}=this,e=qe("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 u3=[{key:"copy",title:ur("contextmenu.copy"),label:"Ctrl+C"},{key:"cut",title:ur("contextmenu.cut"),label:"Ctrl+X"},{key:"paste",title:ur("contextmenu.paste"),label:"Ctrl+V"},{key:"paste-value",title:ur("contextmenu.pasteValue"),label:"Ctrl+Shift+V"},{key:"paste-format",title:ur("contextmenu.pasteFormat"),label:"Ctrl+Alt+V"},{key:"divider"},{key:"insert-row",title:ur("contextmenu.insertRow")},{key:"insert-column",title:ur("contextmenu.insertColumn")},{key:"divider"},{key:"delete-row",title:ur("contextmenu.deleteRow")},{key:"delete-column",title:ur("contextmenu.deleteColumn")},{key:"delete-cell-text",title:ur("contextmenu.deleteCellText")},{key:"hide",title:ur("contextmenu.hide")},{key:"divider"},{key:"validation",title:ur("contextmenu.validation")},{key:"divider"},{key:"cell-printable",title:ur("contextmenu.cellprintable")},{key:"cell-non-printable",title:ur("contextmenu.cellnonprintable")},{key:"divider"},{key:"cell-editable",title:ur("contextmenu.celleditable")},{key:"cell-non-editable",title:ur("contextmenu.cellnoneditable")}];function d3(t){return t.key==="divider"?qe("div",`${dt}-item divider`):qe("div",`${dt}-item`).on("click",()=>{this.itemClick(t.key),this.hide()}).children(t.title(),qe("div","label").child(t.label||""))}function p3(){return u3.map(t=>d3.call(this,t))}let m3=class{constructor(r,e=!1){this.menuItems=p3.call(this),this.el=qe("div",`${dt}-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(),Lo(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"),Wf(n)}};function g3(t,r){if(r.classList.contains("active"))return;const{left:e,top:n,width:i,height:s}=r.getBoundingClientRect(),o=qe("div",`${dt}-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`),ii(r,"mouseleave",()=>{document.body.contains(o.el)&&document.body.removeChild(o.el)}),ii(r,"click",()=>{document.body.contains(o.el)&&document.body.removeChild(o.el)})}class Iu{constructor(r,e,n){this.tip=sn(`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 qe("div",`${dt}-toolbar-btn`).on("mouseenter",e=>{g3(r,e.target)}).attr("data-tooltip",r)}setState(){}}class ps extends Iu{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 ms extends Na{constructor(r,e,n,i,...s){super("div",`${dt}-dropdown ${i}`),this.title=r,this.change=()=>{},this.headerClick=()=>{},typeof r=="string"?this.title=qe("div",`${dt}-dropdown-title`).child(r):n&&this.title.addClass("arrow-left"),this.contentEl=qe("div",`${dt}-dropdown-content`).css("width",e).hide(),this.setContentChildren(...s),this.headerEl=qe("div",`${dt}-dropdown-header`),this.headerEl.on("click",()=>{this.contentEl.css("display")!=="block"?this.show():this.hide()}).children(this.title,n?qe("div",`${dt}-icon arrow-right`).child(qe("div",`${dt}-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(),Wf(this.parent(),()=>{this.hide()})}hide(){this.parent().active(!1),this.contentEl.hide(),Lo(this.parent())}}function v3(t){return qe("div",`${dt}-item`).child(new Pn(t))}class vm extends ms{constructor(r,e){const n=new Pn(`align-${e}`),i=r.map(s=>v3(`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 x3 extends ps{constructor(r){super("align","",r)}dropdown(){const{value:r}=this;return new vm(["left","center","right"],r)}}class b3 extends ps{constructor(r){super("valign","",r)}dropdown(){const{value:r}=this;return new vm(["top","middle","bottom"],r)}}class Ls extends Iu{element(){const{tag:r}=this;return super.element().child(new Pn(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 w3 extends Ls{constructor(){super("autofilter")}setState(){}}class y3 extends Ls{constructor(){super("font-bold","Ctrl+B")}}class _3 extends Ls{constructor(){super("font-italic","Ctrl+I")}}class E3 extends Ls{constructor(){super("strike","Ctrl+U")}}class T3 extends Ls{constructor(){super("underline","Ctrl+U")}}const S3=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],k3=[["#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"]],C3=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function Nh(t){return qe("td","").child(qe("div",`${dt}-color-palette-cell`).on("click.stop",()=>this.change(t)).css("background-color",t))}class A3{constructor(){this.el=qe("div",`${dt}-color-palette`),this.change=()=>{};const r=qe("table","").children(qe("tbody","").children(qe("tr",`${dt}-theme-color-placeholders`).children(...S3.map(e=>Nh.call(this,e))),...k3.map(e=>qe("tr",`${dt}-theme-colors`).children(...e.map(n=>Nh.call(this,n)))),qe("tr",`${dt}-standard-colors`).children(...C3.map(e=>Nh.call(this,e)))));this.el.child(r)}}class Ou extends ms{constructor(r,e){const n=new Pn(r).css("height","16px").css("border-bottom",`3px solid ${e}`),i=new A3;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 F3=[["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 R3 extends ms{constructor(r){const e=new Pn("line-type");let n=0;const i=F3.map((s,o)=>qe("div",`${dt}-item state ${r===s[0]?"checked":""}`).on("click",()=>{i[n].toggle("checked"),i[o].toggle("checked"),n=o,this.hide(),this.change(s)}).child(qe("div",`${dt}-line-type`).html(s[1])));super(e,"auto",!1,"bottom-left",...i)}}function Mp(...t){return qe("table","").child(qe("tbody","").children(...t))}function Ip(t){return qe("td","").child(qe("div",`${dt}-border-palette-cell`).child(new Pn(`border-${t}`)).on("click",()=>{this.mode=t;const{mode:r,style:e,color:n}=this;this.change({mode:r,style:e,color:n})}))}class M3{constructor(){this.color="#000",this.style="thin",this.mode="all",this.change=()=>{},this.ddColor=new Ou("line-color",this.color),this.ddColor.change=e=>{this.color=e},this.ddType=new R3(this.style),this.ddType.change=([e])=>{this.style=e},this.el=qe("div",`${dt}-border-palette`);const r=Mp(qe("tr","").children(qe("td",`${dt}-border-palette-left`).child(Mp(qe("tr","").children(...["all","inside","horizontal","vertical","outside"].map(e=>Ip.call(this,e))),qe("tr","").children(...["left","top","right","bottom","none"].map(e=>Ip.call(this,e))))),qe("td",`${dt}-border-palette-right`).children(qe("div",`${dt}-toolbar-btn`).child(this.ddColor.el),qe("div",`${dt}-toolbar-btn`).child(this.ddType.el))));this.el.child(r)}}class I3 extends ms{constructor(){const r=new Pn("border-all"),e=new M3;e.change=n=>{this.change(n),this.hide()},super(r,"auto",!1,"bottom-left",e.el)}}class O3 extends ps{constructor(){super("border")}dropdown(){return new I3}}class kc extends Iu{element(){return super.element().child(new Pn(this.tag)).on("click",()=>this.change(this.tag))}setState(r){this.el.disabled(r)}}class D3 extends kc{constructor(){super("clearformat")}}class N3 extends Ls{constructor(){super("paintformat")}setState(){}}class P3 extends ps{constructor(r){super("color",void 0,r)}dropdown(){const{tag:r,value:e}=this;return new Ou(r,e)}}class B3 extends ps{constructor(r){super("bgcolor",void 0,r)}dropdown(){const{tag:r,value:e}=this;return new Ou(r,e)}}class L3 extends ms{constructor(){const r=cu.map(e=>qe("div",`${dt}-item`).on("click",()=>{this.setTitle(`${e.pt}`),this.change(e)}).child(`${e.pt}`));super("10","60px",!0,"bottom-left",...r)}}let U3=class extends ps{constructor(){super("font-size")}getValue(r){return r.pt}dropdown(){return new L3}};class j3 extends ms{constructor(){const r=Ap.map(e=>qe("div",`${dt}-item`).on("click",()=>{this.setTitle(e.title),this.change(e)}).child(e.title));super(Ap[0].title,"160px",!0,"bottom-left",...r)}}class H3 extends ps{constructor(){super("font-name")}getValue(r){return r.key}dropdown(){return new j3}}class W3 extends ms{constructor(){let r=pf.slice(0);r.splice(2,0,{key:"divider"}),r.splice(8,0,{key:"divider"}),r=r.map(e=>{const n=qe("div",`${dt}-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(qe("div","label").html(e.label))),n}),super("Normal","220px",!0,"bottom-left",...r)}setTitle(r){for(let e=0;e<pf.length;e+=1)pf[e].key===r&&this.title.html(pf[e].title());this.hide()}}let $3=class extends ps{constructor(){super("format")}getValue(r){return r.key}dropdown(){return new W3}};class z3 extends ms{constructor(){const r=Mu.map(e=>qe("div",`${dt}-item`).on("click",()=>{this.hide(),this.change(e)}).child(e.key));super(new Pn("formula"),"180px",!0,"bottom-left",...r)}}class X3 extends ps{constructor(){super("formula")}getValue(r){return r.key}dropdown(){return new z3}}class V3 extends Ls{constructor(){super("freeze")}}class G3 extends Ls{constructor(){super("merge")}setState(r,e){this.el.active(r).disabled(e)}}class K3 extends kc{constructor(){super("redo","Ctrl+Y")}}class Y3 extends kc{constructor(){super("undo","Ctrl+Z")}}class Z3 extends kc{constructor(){super("print","Ctrl+P")}}class J3 extends Ls{constructor(){super("textwrap")}}let Q3=class extends ms{constructor(){const r=new Pn("ellipsis"),e=qe("div",`${dt}-toolbar-more`);super(r,"auto",!1,"bottom-right",e),this.moreBtns=e,this.contentEl.css("max-width","420px")}};class q3 extends ps{constructor(){super("more"),this.el.hide()}dropdown(){return new Q3}show(){this.el.show()}hide(){this.el.hide()}}function So(){return qe("div",`${dt}-toolbar-divider`)}function e6(){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 Op(){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 t6{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 Y3,this.redoEl=new K3,new Z3,this.paintformatEl=new N3,this.clearformatEl=new D3],So(),[this.formatEl=new $3],So(),[this.fontEl=new H3,this.fontSizeEl=new U3],So(),[this.boldEl=new y3,this.italicEl=new _3,this.underlineEl=new T3,this.strikeEl=new E3,this.textColorEl=new P3(i.color)],So(),[this.fillColorEl=new B3(i.bgcolor),this.borderEl=new O3,this.mergeEl=new G3],So(),[this.alignEl=new x3(i.align),this.valignEl=new b3(i.valign),this.textwrapEl=new J3],So(),[this.freezeEl=new V3,this.autofilterEl=new w3,this.formulaEl=new X3,this.moreEl=new q3]],this.el=qe("div",`${dt}-toolbar`),this.btns=qe("div",`${dt}-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(()=>{e6.call(this),Op.call(this)},0),ii(window,"resize",()=>{Op.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 r6{constructor(r,e,n="600px"){this.title=r,this.el=qe("div",`${dt}-modal`).css("width",n).children(qe("div",`${dt}-modal-header`).children(new Pn("close").on("click.stop",()=>this.hide()),this.title),qe("div",`${dt}-modal-content`).children(...e)).hide()}show(){this.dimmer=qe("div",`${dt}-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()},ii(window,"keydown",window.xkeydownEsc)}hide(){this.el.hide(),document.body.removeChild(this.dimmer.el),oc(window,"keydown",window.xkeydownEsc),delete window.xkeydownEsc}}class Fo{constructor(r,e){this.vchange=()=>{},this.el=qe("div",`${dt}-form-input`),this.input=qe("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 Ph{constructor(r,e,n,i=o=>o,s=()=>{}){this.key=r,this.getTitle=i,this.vchange=()=>{},this.el=qe("div",`${dt}-form-select`),this.suggest=new cm(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=qe("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 n6={number:/(^\d+$)|(^\d+(\.\d{0,4})?$)/,date:/^\d{4}-\d{1,2}-\d{1,2}$/};class qs{constructor(r,e,n,i){this.label="",this.rule=e,n&&(this.label=qe("label","label").css("width",`${i}px`).html(n)),this.tip=qe("div","tip").child("tip").hide(),this.input=r,this.input.vchange=()=>this.validate(),this.el=qe("div",`${dt}-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(sn("validation.required")),i.addClass("error"),!1):(e.type||e.pattern)&&!(e.pattern||n6[e.type]).test(s)?(n.html(sn("validation.notMatch")),i.addClass("error"),!1):(i.removeClass("error"),!0)}}const Dp=100;class i6 extends r6{constructor(){const r=new qs(new Ph("cell",["cell"],"100%",a=>sn(`dataValidation.modeType.${a}`)),{required:!0},`${sn("dataValidation.range")}:`,Dp),e=new qs(new Fo("120px","E3 or E3:F12"),{required:!0,pattern:/^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/}),n=new qs(new Ph("list",["list","number","date","phone","email"],"100%",a=>sn(`dataValidation.type.${a}`),a=>this.criteriaSelected(a)),{required:!0},`${sn("dataValidation.criteria")}:`,Dp),i=new qs(new Ph("be",["be","nbe","eq","neq","lt","lte","gt","gte"],"160px",a=>sn(`dataValidation.operator.${a}`),a=>this.criteriaOperatorSelected(a)),{required:!0}).hide(),s=new qs(new Fo("70px","10"),{required:!0}).hide(),o=new qs(new Fo("70px","100"),{required:!0,type:"number"}).hide(),h=new qs(new Fo("120px","a,b,c"),{required:!0}),c=new qs(new Fo("70px","10"),{required:!0,type:"number"}).hide();super(sn("contextmenu.validation"),[qe("div",`${dt}-form-fields`).children(r.el,e.el),qe("div",`${dt}-form-fields`).children(n.el,i.el,s.el,o.el,c.el,h.el),qe("div",`${dt}-buttons`).children(new Fa("cancel").on("click",()=>this.btnClick("cancel")),new Fa("remove").on("click",()=>this.btnClick("remove")),new Fa("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 xm(t){return qe("div",`${dt}-item ${t}`)}function Np(t){return xm("state").child(sn(`sort.${t}`)).on("click.stop",()=>this.itemClick(t))}function s6(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(qe("div",`${dt}-item state ${h}`).on("click.stop",()=>this.filterClick(s,i)).children(i===""?sn("filter.empty"):i,qe("div","label").html(`(${o})`)))})}function Pp(){const{filterhEl:t,filterValues:r,values:e}=this;t.html(`${r.length} / ${e.length}`),t.checked(r.length===e.length)}class a6{constructor(){this.filterbEl=qe("div",`${dt}-body`),this.filterhEl=qe("div",`${dt}-header state`).on("click.stop",()=>this.filterClick(0,"all")),this.el=qe("div",`${dt}-sort-filter`).children(this.sortAscEl=Np.call(this,"asc"),this.sortDescEl=Np.call(this,"desc"),xm("divider"),qe("div",`${dt}-filter`).children(this.filterhEl,this.filterbEl),qe("div",`${dt}-buttons`).children(new Fa("cancel").on("click",()=>this.btnClick("cancel")),new Fa("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=>qe(h).checked(!1))):(this.filterValues=Array.from(s),o.forEach(h=>qe(h).checked(!0))):qe(o[r]).toggle("checked")?i.push(e):i.splice(i.findIndex(c=>c===e),1),Pp.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),s6.call(this,e,n),Pp.call(this)}setOffset(r){this.el.offset(r).show();let e=1;Wf(this.el,()=>{e<=0&&this.hide(),e-=1})}show(){this.el.show()}hide(){this.el.hide(),Lo(this.el)}}function bm(t,r){const e=qe("div",`${dt}-toast`),n=qe("div",`${dt}-dimmer active`),i=()=>{document.body.removeChild(e.el),document.body.removeChild(n.el)};e.children(qe("div",`${dt}-toast-header`).children(new Pn("close").on("click.stop",()=>i()),t),qe("div",`${dt}-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 Bh(t,r){let e;return(...n)=>{const i=this,s=n;e||(e=setTimeout(()=>{e=null,t.apply(i,s)},r))}}function o6(){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 Ra(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 fs(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]),Ra.call(this,t,o,h),o6.call(this)}function f6(t){if(t.buttons!==0||t.target.className===`${dt}-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 l6(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,w=0;do w=x(g),g+=1;while(w<=0);return w},l=v=>{if(v>0){const x=n.scroll.ri+1;if(x<o.len){const g=f(x,w=>o.getHeight(w));r.move({top:i+g-1})}}else{const x=n.scroll.ri-1;if(x>=0){const g=f(x,w=>o.getHeight(w));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,w=>h.getWidth(w));e.move({left:s+g-1})}}else{const x=n.scroll.ci-1;if(x>=0){const g=f(x,w=>h.getWidth(w));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)&&Bh(l(t.detail),50),d===m&&Bh(u(a),50),d===p&&Bh(l(c),50)}function c6(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 Du(){const{data:t,verticalScrollbar:r}=this,{height:e}=this.getTableOffset(),n=t.exceptRowTotalHeight(0,-1);r.set(e,t.rows.totalHeight()-n)}function Nu(){const{data:t,horizontalScrollbar:r}=this,{width:e}=this.getTableOffset();t&&r.set(e,t.cols.totalWidth())}function h6(){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 ni(){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`),Du.call(this),Nu.call(this),h6.call(this),n.render(),i.reset(),s.reset()}function $f(){const{data:t,selector:r}=this;t.clearClipboard(),r.hideClipboard()}function uu(){const{data:t,selector:r}=this;t.copy(),t.copyToSystemClipboard(),r.showClipboard()}function Bp(){const{data:t,selector:r}=this;t.cut(),r.showClipboard()}function mf(t,r){const{data:e}=this;if(e.settings.mode!=="read"){if(e.paste(t,n=>bm("Tip",n)))ni.call(this);else if(r){const n=r.clipboardData.getData("text/plain");this.data.pasteFromText(n),ni.call(this)}}}function u6(){this.data.hideRowsOrCols(),ni.call(this)}function Lp(t,r){this.data.unhideRowsOrCols(t,r),ni.call(this)}function d6(){const{data:t}=this;t.autofilter(),ni.call(this)}function p6(){const{toolbar:t}=this;t.paintformatActive()&&(mf.call(this,"format"),$f.call(this),t.paintformatToggle())}function Up(t){const{selector:r,data:e,table:n,sortFilter:i}=this,{offsetX:s,offsetY:o}=t,h=t.target.className===`${dt}-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):Ra.call(this,!1,p,m),sm(window,v=>{({ri:p,ci:m}=e.getCellRectByXY(v.offsetX,v.offsetY)),h?r.showAutofill(p,m):v.buttons===1&&!v.shiftKey&&Ra.call(this,!0,p,m,!0,!0)},()=>{h&&r.arange&&e.settings.mode!=="read"&&e.autofill(r.arange,"all",v=>bm("Tip",v))&&n.render(),r.hideAutofill(),p6.call(this)})),!h&&t.buttons===1&&t.shiftKey&&Ra.call(this,!0,p,m)}function zf(){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 gf(){const{editor:t,data:r}=this;r.settings.mode!=="read"&&(zf.call(this),t.setCell(r.getSelectedCell(),r.getSelectedValidator()),$f.call(this))}function m6(t){const{data:r,table:e,selector:n}=this;r.scrolly(t,()=>{n.resetBRLAreaOffset(),zf.call(this),e.render()})}function g6(t){const{data:r,table:e,selector:n}=this;r.scrollx(t,()=>{n.resetBRTAreaOffset(),zf.call(this),e.render()})}function v6(t,r){const{ri:e}=t,{table:n,selector:i,data:s}=this;s.rows.setHeight(e,r),n.render(),i.resetAreaOffset(),Du.call(this),zf.call(this)}function x6(t,r){const{ci:e}=t,{table:n,selector:i,data:s}=this;s.cols.setWidth(e,r),n.render(),i.resetAreaOffset(),Nu.call(this),zf.call(this)}function Lh(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 rc(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),$f.call(this),ni.call(this))}function b6(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?uu.call(this):$f.call(this);else if(t==="clearformat")rc.call(this,"delete-cell-format");else if(t!=="link"){if(t!=="chart")if(t==="autofilter")d6.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()&&gf.call(this),ni.call(this)}}function w6(t,r,e,n){this.data.setAutoFilter(t,r,e,n),ni.call(this)}function y6(){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=>{f6.call(this,l)}).on("mousedown",l=>{o.clear(),h.hide(),l.buttons===2?(this.data.xyInSelectedRect(l.offsetX,l.offsetY)||Up.call(this,l),h.setPosition(l.offsetX,l.offsetY),l.stopPropagation()):l.detail===2?gf.call(this):Up.call(this,l)}).on("mousewheel.stop",l=>{l6.call(this,l)}).on("mouseout",l=>{const{offsetX:u,offsetY:p}=l;p<=0&&n.hide(),u<=0&&e.hide()}),t.inputChange=l=>{Lh.call(this,l,"input"),gf.call(this)},A4(r.el,{move:(l,u)=>{c6.call(this,l,u)}}),c.change=(l,u)=>b6.call(this,l,u),f.ok=(l,u,p,m)=>w6.call(this,l,u,p,m),e.finishedFn=(l,u)=>{v6.call(this,l,u)},n.finishedFn=(l,u)=>{x6.call(this,l,u)},e.unhideFn=l=>{Lp.call(this,"row",l)},n.unhideFn=l=>{Lp.call(this,"col",l)},i.moveFn=(l,u)=>{m6.call(this,l,u)},s.moveFn=(l,u)=>{g6.call(this,l,u)},o.change=(l,u)=>{Lh.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"?uu.call(this):l==="cut"?Bp.call(this):l==="paste"?mf.call(this,"all"):l==="paste-value"?mf.call(this,"text"):l==="paste-format"?mf.call(this,"format"):l==="hide"?u6.call(this):rc.call(this,l)},ii(window,"resize",()=>{this.reload()}),ii(window,"click",l=>{this.focusing=r.contains(l.target)}),ii(window,"paste",l=>{this.focusing&&(mf.call(this,"all",l),l.preventDefault())}),ii(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:uu.call(this),l.preventDefault();break;case 88:Bp.call(this),l.preventDefault();break;case 85:c.trigger("underline"),l.preventDefault();break;case 86:break;case 37:fs.call(this,d,"row-first"),l.preventDefault();break;case 38:fs.call(this,d,"col-first"),l.preventDefault();break;case 39:fs.call(this,d,"row-last"),l.preventDefault();break;case 40:fs.call(this,d,"col-last"),l.preventDefault();break;case 32:Ra.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&&Ra.call(this,!1,this.data.selector.ri,-1,!1);break;case 27:h.hide(),$f.call(this);break;case 37:fs.call(this,d,"left"),l.preventDefault();break;case 38:fs.call(this,d,"up"),l.preventDefault();break;case 39:fs.call(this,d,"right"),l.preventDefault();break;case 40:fs.call(this,d,"down"),l.preventDefault();break;case 9:o.clear(),fs.call(this,!1,d?"left":"right"),l.preventDefault();break;case 13:o.clear(),fs.call(this,!1,d?"up":"down"),l.preventDefault();break;case 8:rc.call(this,"delete-cell-text"),l.preventDefault();break}p==="Delete"?(rc.call(this,"delete-cell-text"),l.preventDefault()):u>=65&&u<=90||u>=48&&u<=57||u>=96&&u<=105||l.key==="="?(Lh.call(this,l.key,"input"),gf.call(this)):u===113&&gf.call(this)}})}class _6{constructor(r,e){this.eventMap=F4();const{view:n,showToolbar:i,showContextmenu:s}=e.settings;this.el=qe("div",`${dt}-sheet`),this.toolbar=new t6(e,n.width,!i),this.print=new h3(e),r.children(this.toolbar.el,this.el,this.print.el),this.data=e,this.tableEl=qe("canvas",`${dt}-table`),this.rowResizer=new yp(!1,e.rows.height),this.colResizer=new yp(!0,e.cols.minWidth),this.verticalScrollbar=new _p(!0),this.horizontalScrollbar=new _p(!1),this.editor=new G4(e3,()=>this.getTableOffset(),e.rows.height),this.modalValidation=new i6,this.contextMenu=new m3(()=>this.getRect(),!s),this.selector=new I4(e),this.overlayerCEl=qe("div",`${dt}-overlayer-content`).children(this.editor.el,this.selector.el),this.overlayerEl=qe("div",`${dt}-overlayer`).child(this.overlayerCEl),this.sortFilter=new a6,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 f3(this.tableEl.el,e),y6.call(this),ni.call(this),Ra.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,Du.call(this),Nu.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),ni.call(this),this}freeze(r,e){const{data:n}=this;return n.setFreeze(r,e),ni.call(this),this}undo(){this.data.undo(),ni.call(this)}redo(){this.data.redo(),ni.call(this)}reload(){return ni.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 E6 extends ms{constructor(r){const e=new Pn("ellipsis");super(e,"auto",!1,"top-left"),this.contentClick=r}reset(r){const e=r.map((n,i)=>qe("div",`${dt}-item`).css("width","150px").css("font-weight","normal").on("click",()=>{this.contentClick(i),this.hide()}).child(n));this.setContentChildren(...e)}setTitle(){}}const T6=[{key:"delete",title:ur("contextmenu.deleteSheet")}];function S6(t){return qe("div",`${dt}-item`).child(t.title()).on("click",()=>{this.itemClick(t.key),this.hide()})}function k6(){return T6.map(t=>S6.call(this,t))}class C6{constructor(){this.el=qe("div",`${dt}-contextmenu`).css("width","160px").children(...k6.call(this)).hide(),this.itemClick=()=>{}}hide(){const{el:r}=this;r.hide(),Lo(r)}setOffset(r){const{el:e}=this;e.offset(r),e.show(),Wf(e)}}class A6{constructor(r=()=>{},e=()=>{},n=()=>{},i=()=>{}){this.swapFunc=e,this.updateFunc=i,this.dataNames=[],this.activeEl=null,this.deleteEl=null,this.items=[],this.moreEl=new E6(s=>{this.clickSwap2(this.items[s])}),this.contextMenu=new C6,this.contextMenu.itemClick=n,this.el=qe("div",`${dt}-bottombar`).children(this.contextMenu.el,this.menuEl=qe("ul",`${dt}-menu`).child(qe("li","").children(new Pn("add").on("click",()=>{r()}),qe("span","").child(this.moreEl))))}addItem(r,e){this.dataNames.push(r);const n=qe("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 Fo("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 F6{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 A6(()=>{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=qe("div",`${dt}`).on("contextmenu",s=>s.preventDefault());n.appendChild(i.el),this.sheet=new _6(i,this.data),this.bottombar!==null&&i.child(this.bottombar.el)}addSheet(r,e=!0){const n=r||`sheet${this.sheetIndex}`,i=new C4(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){nm(r,e)}}const R6=(t,r={})=>new F6(t,r);window&&(window.x_spreadsheet=R6,window.x_spreadsheet.locale=(t,r)=>nm(t,r));var wm={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 Bl=="function"&&Bl;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 Bl=="function"&&Bl,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 w=this.workbook.addWorksheet(v.sheetName),y=v.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],_=v.map||function(F){if(F==="")return null;const O=Number(F);if(!Number.isNaN(O)&&O!==1/0)return O;const N=y.reduce((z,W)=>{if(z)return z;const X=a(F,W,!0);return X.isValid()?X:null},null);if(N)return new Date(N.valueOf());const U=u[F];return U!==void 0?U:F},k=o.parse(v.parserOptions).on("data",F=>{w.addRow(F.map(_))}).on("end",()=>{k.emit("worksheet",w)});k.on("worksheet",x).on("error",g),d.pipe(k)})}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 w=this.workbook.getWorksheet(v.sheetName||v.sheetId),y=o.format(v.formatterOptions);d.on("finish",()=>{x()}),y.on("error",g),y.pipe(d);const{dateFormat:_,dateUTC:k}=v,F=v.map||(U=>{if(U){if(U.text||U.hyperlink)return U.hyperlink||U.text||"";if(U.formula||U.result)return U.result||"";if(U instanceof Date)return _?k?a.utc(U).format(_):a(U).format(_):k?a.utc(U).format():a(U).format();if(U.error)return U.error;if(typeof U=="object")return JSON.stringify(U)}return U}),O=v.includeEmptyRows===void 0||v.includeEmptyRows;let N=1;w&&w.eachRow((U,z)=>{if(O)for(;N++<z-1;)y.write([]);const{values:W}=U;W.shift(),y.write(W.map(F)),N=z}),y.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(N,U,z){if(!N||!U)throw new Error("A Cell needs a Row");this._row=N,this._column=U,s.validateAddress(z),this._address=z,this._value=F.create(f.Types.Null,this),this.style=this._mergeStyle(N.style,U.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(N){this.style.numFmt=N}get font(){return this.style.font}set font(N){this.style.font=N}get alignment(){return this.style.alignment}set alignment(N){this.style.alignment=N}get border(){return this.style.border}set border(N){this.style.border=N}get fill(){return this.style.fill}set fill(N){this.style.fill=N}get protection(){return this.style.protection}set protection(N){this.style.protection=N}_mergeStyle(N,U,z){const W=N&&N.numFmt||U&&U.numFmt;W&&(z.numFmt=W);const X=N&&N.font||U&&U.font;X&&(z.font=X);const J=N&&N.alignment||U&&U.alignment;J&&(z.alignment=J);const H=N&&N.border||U&&U.border;H&&(z.border=H);const I=N&&N.fill||U&&U.fill;I&&(z.fill=I);const M=N&&N.protection||U&&U.protection;return M&&(z.protection=M),z}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(N,U){this._value.release(),this._value=F.create(f.Types.Merge,this,N),U||(this.style=N.style)}unmerge(){this.type===f.Types.Merge&&(this._value.release(),this._value=F.create(f.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(N){return this._value.type!==f.Types.Merge?!1:this._value.isMergedTo(N)}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(N){if(this.type===f.Types.Merge){this._value.master.value=N;return}this._value.release(),this._value=F.create(F.getType(N),this,N)}get note(){return this._comment&&this._comment.note}set note(N){this._comment=new a(N)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(N){this.type===f.Types.String&&(this._value=F.create(f.Types.Hyperlink,this,{text:this._value.value,hyperlink:N}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:N}=this._row;return{sheetName:N.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(N){this.names=[N]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(N){const{definedNames:U}=this.workbook;U.removeAllNames(this.fullAddress),N.forEach(z=>{U.addEx(this.fullAddress,z)})}addName(N){this.workbook.definedNames.addEx(this.fullAddress,N)}removeName(N){this.workbook.definedNames.removeEx(this.fullAddress,N)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(N){this._dataValidations.add(this.address,N)}get model(){const{model:N}=this._value;return N.style=this.style,this._comment&&(N.comment=this._comment.model),N}set model(N){if(this._value.release(),this._value=F.create(N.type,this),this._value.model=N,N.comment)switch(N.comment.type){case"note":this._comment=a.fromModel(N.comment);break}N.style?this.style=N.style:this.style={}}}f.Types=h.ValueType;class l{constructor(N){this.model={address:N.address,type:f.Types.Null}}get value(){return null}set value(N){}get type(){return f.Types.Null}get effectiveType(){return f.Types.Null}get address(){return this.model.address}set address(N){this.model.address=N}toCsvString(){return""}release(){}toString(){return""}}class u{constructor(N,U){this.model={address:N.address,type:f.Types.Number,value:U}}get value(){return this.model.value}set value(N){this.model.value=N}get type(){return f.Types.Number}get effectiveType(){return f.Types.Number}get address(){return this.model.address}set address(N){this.model.address=N}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class p{constructor(N,U){this.model={address:N.address,type:f.Types.String,value:U}}get value(){return this.model.value}set value(N){this.model.value=N}get type(){return f.Types.String}get effectiveType(){return f.Types.String}get address(){return this.model.address}set address(N){this.model.address=N}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}class m{constructor(N,U){this.model={address:N.address,type:f.Types.String,value:U}}get value(){return this.model.value}set value(N){this.model.value=N}toString(){return this.model.value.richText.map(N=>N.text).join("")}get type(){return f.Types.RichText}get effectiveType(){return f.Types.RichText}get address(){return this.model.address}set address(N){this.model.address=N}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}class d{constructor(N,U){this.model={address:N.address,type:f.Types.Date,value:U}}get value(){return this.model.value}set value(N){this.model.value=N}get type(){return f.Types.Date}get effectiveType(){return f.Types.Date}get address(){return this.model.address}set address(N){this.model.address=N}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}class v{constructor(N,U){this.model={address:N.address,type:f.Types.Hyperlink,text:U?U.text:void 0,hyperlink:U?U.hyperlink:void 0},U&&U.tooltip&&(this.model.tooltip=U.tooltip)}get value(){const N={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(N.tooltip=this.model.tooltip),N}set value(N){this.model={text:N.text,hyperlink:N.hyperlink},N.tooltip&&(this.model.tooltip=N.tooltip)}get text(){return this.model.text}set text(N){this.model.text=N}get hyperlink(){return this.model.hyperlink}set hyperlink(N){this.model.hyperlink=N}get type(){return f.Types.Hyperlink}get effectiveType(){return f.Types.Hyperlink}get address(){return this.model.address}set address(N){this.model.address=N}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}class x{constructor(N,U){this.model={address:N.address,type:f.Types.Merge,master:U?U.address:void 0},this._master=U,U&&U.addMergeRef()}get value(){return this._master.value}set value(N){N instanceof f?(this._master&&this._master.releaseMergeRef(),N.addMergeRef(),this._master=N):this._master.value=N}isMergedTo(N){return N===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(N){this.model.address=N}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}class g{constructor(N,U){this.cell=N,this.model={address:N.address,type:f.Types.Formula,shareType:U?U.shareType:void 0,ref:U?U.ref:void 0,formula:U?U.formula:void 0,sharedFormula:U?U.sharedFormula:void 0,result:U?U.result:void 0}}_copyModel(N){const U={},z=W=>{const X=N[W];X&&(U[W]=X)};return z("formula"),z("result"),z("ref"),z("shareType"),z("sharedFormula"),U}get value(){return this._copyModel(this.model)}set value(N){this.model=this._copyModel(N)}validate(N){switch(F.getType(N)){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 N=this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),U=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:N,cells:U}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(N){this.model.formula=N}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(N){this.model.result=N}get type(){return f.Types.Formula}get effectiveType(){const N=this.model.result;return N==null?h.ValueType.Null:N instanceof String||typeof N=="string"?h.ValueType.String:typeof N=="number"?h.ValueType.Number:N instanceof Date?h.ValueType.Date:N.text&&N.hyperlink?h.ValueType.Hyperlink:N.formula?h.ValueType.Formula:h.ValueType.Null}get address(){return this.model.address}set address(N){this.model.address=N}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:N}=this.cell,U=N.findCell(this.model.sharedFormula);this._translatedFormula=U&&c(U.formula,U.address,this.model.address)}return this._translatedFormula}toCsvString(){return`${this.model.result||""}`}release(){}toString(){return this.model.result?this.model.result.toString():""}}class w{constructor(N,U){this.model={address:N.address,type:f.Types.SharedString,value:U}}get value(){return this.model.value}set value(N){this.model.value=N}get type(){return f.Types.SharedString}get effectiveType(){return f.Types.SharedString}get address(){return this.model.address}set address(N){this.model.address=N}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}class y{constructor(N,U){this.model={address:N.address,type:f.Types.Boolean,value:U}}get value(){return this.model.value}set value(N){this.model.value=N}get type(){return f.Types.Boolean}get effectiveType(){return f.Types.Boolean}get address(){return this.model.address}set address(N){this.model.address=N}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}class _{constructor(N,U){this.model={address:N.address,type:f.Types.Error,value:U}}get value(){return this.model.value}set value(N){this.model.value=N}get type(){return f.Types.Error}get effectiveType(){return f.Types.Error}get address(){return this.model.address}set address(N){this.model.address=N}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}class k{constructor(N,U){this.model={address:N.address,type:f.Types.String,value:JSON.stringify(U),rawValue:U}}get value(){return this.model.rawValue}set value(N){this.model.rawValue=N,this.model.value=JSON.stringify(N)}get type(){return f.Types.String}get effectiveType(){return f.Types.String}get address(){return this.model.address}set address(N){this.model.address=N}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}const F={getType(O){return O==null?f.Types.Null:O instanceof String||typeof O=="string"?f.Types.String:typeof O=="number"?f.Types.Number:typeof O=="boolean"?f.Types.Boolean:O instanceof Date?f.Types.Date:O.text&&O.hyperlink?f.Types.Hyperlink:O.formula||O.sharedFormula?f.Types.Formula:O.richText?f.Types.RichText:O.sharedString?f.Types.SharedString:O.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:k},{t:f.Types.SharedString,f:w},{t:f.Types.RichText,f:m},{t:f.Types.Boolean,f:y},{t:f.Types.Error,f:_}].reduce((O,N)=>(O[N.t]=N.f,O),[]),create(O,N,U){const z=this.types[O];if(!z)throw new Error(`Could not create Value of type ${O}`);return new z(N,U)}};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(y,_){const k=u.findCellAt(m,y,p.col);return!k||!k.mark?!1:(d[_]=y,k.mark=!1,!0)}for(x=p.row-1;g(x,"top");x--);for(x=p.row+1;g(x,"bottom");x++);function w(y,_){const k=[];for(x=d.top;x<=d.bottom;x++){const F=u.findCellAt(m,x,y);if(F&&F.mark)k.push(F);else return!1}d[_]=y;for(let F=0;F<k.length;F++)k[F].mark=!1;return!0}for(v=p.col-1;w(v,"left");v--);for(v=p.col+1;w(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 w,y,_;if(x<0)for(w=l+d.length;w<=g;w++)_=this._cells[w-1],y=this._cells[w-x-1],y?(_=this.getCell(w),_.value=y.value,_.style=y.style,_._comment=y._comment):_&&(_.value=null,_.style={},_._comment=void 0);else if(x>0)for(w=g;w>=p;w--)y=this._cells[w-1],y?(_=this.getCell(w+x),_.value=y.value,_.style=y.style,_._comment=y._comment):this._cells[w+x-1]=void 0;for(w=0;w<d.length;w++)_=this.getCell(l+w),_.value=d[w],_.style={},_._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,w)=>{x[g]===void 0&&(x[g]=w)};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:w}=v,y=d.getCell(p+x);y.value=w,a(y,g)})}if(l.rows.forEach(d=>{const v=f.getRow(u+m++);d.forEach((x,g)=>{const w=v.getCell(p+g);w.value=x,a(w,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(w=>w&&w.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(w=>{if(w){const y=w.dimensions;y&&g.expand(w.number,y.min,w.number,y.max)}}),g}get columns(){return this._columns}set columns(g){this._headerRowCount=g.reduce((_,k)=>{const F=k.header&&1||k.headers&&k.headers.length||0;return Math.max(_,F)},0);let w=1;const y=this._columns=[];g.forEach(_=>{const k=new a(this,w++,!1);y.push(k),k.defn=_})}getColumnKey(g){return this._keys[g]}setColumnKey(g,w){this._keys[g]=w}deleteColumnKey(g){delete this._keys[g]}eachColumnKey(g){s.each(this._keys,g)}getColumn(g){if(typeof g=="string"){const w=this._keys[g];if(w)return w;g=o.l2n(g)}if(this._columns||(this._columns=[]),g>this._columns.length){let w=this._columns.length+1;for(;w<=g;)this._columns.push(new a(this,w++))}return this._columns[g-1]}spliceColumns(g,w){const _=this._rows.length;for(var k=arguments.length,F=new Array(k>2?k-2:0),O=2;O<k;O++)F[O-2]=arguments[O];if(F.length>0)for(let W=0;W<_;W++){const X=[g,w];F.forEach(H=>{X.push(H[W]||null)});const J=this.getRow(W+1);J.splice.apply(J,X)}else this._rows.forEach(W=>{W&&W.splice(g,w)});const N=F.length-w,U=g+w,z=this._columns.length;if(N<0)for(let W=g+F.length;W<=z;W++)this.getColumn(W).defn=this.getColumn(W-N).defn;else if(N>0)for(let W=z;W>=U;W--)this.getColumn(W+N).defn=this.getColumn(W).defn;for(let W=g;W<g+F.length;W++)this.getColumn(W).defn=null;this.workbook.definedNames.spliceColumns(this.name,g,w,F.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let g=0;return this.eachRow(w=>{g=Math.max(g,w.cellCount)}),g}get actualColumnCount(){const g=[];let w=0;return this.eachRow(y=>{y.eachCell(_=>{let{col:k}=_;g[k]||(g[k]=!0,w++)})}),w}_commitRow(){}get _lastRowNumber(){const g=this._rows;let w=g.length;for(;w>0&&g[w-1]===void 0;)w--;return w}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,w){return this._rows.slice(g-1,g-1+w)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let g=0;return this.eachRow(()=>{g++}),g}getRow(g){let w=this._rows[g-1];return w||(w=this._rows[g-1]=new c(this,g)),w}getRows(g,w){if(w<1)return;const y=[];for(let _=g;_<g+w;_++)y.push(this.getRow(_));return y}addRow(g){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const y=this._nextRow,_=this.getRow(y);return _.values=g,this._setStyleOption(y,w[0]==="i"?w:"n"),_}addRows(g){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const y=[];return g.forEach(_=>{y.push(this.addRow(_,w))}),y}insertRow(g,w){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(g,0,w),this._setStyleOption(g,y),this.getRow(g)}insertRows(g,w){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(g,0,...w),y!=="n")for(let _=0;_<w.length;_++)y[0]==="o"&&this.findRow(w.length+g+_)!==void 0?this._copyStyle(w.length+g+_,g+_,y[1]==="+"):y[0]==="i"&&this.findRow(g-1)!==void 0&&this._copyStyle(g-1,g+_,y[1]==="+");return this.getRows(g,w.length)}_setStyleOption(g){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";w[0]==="o"&&this.findRow(g+1)!==void 0?this._copyStyle(g+1,g,w[1]==="+"):w[0]==="i"&&this.findRow(g-1)!==void 0&&this._copyStyle(g-1,g,w[1]==="+")}_copyStyle(g,w){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const _=this.getRow(g),k=this.getRow(w);k.style=d(_.style),_.eachCell({includeEmpty:y},(F,O)=>{k.getCell(O).style=d(F.style)}),k.height=_.height}duplicateRow(g,w){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const _=this._rows[g-1],k=new Array(w).fill(_.values);this.spliceRows(g+1,y?0:w,...k);for(let F=0;F<w;F++){const O=this._rows[g+F];O.style=_.style,O.height=_.height,_.eachCell({includeEmpty:!0},(N,U)=>{O.getCell(U).style=N.style})}}spliceRows(g,w){const y=g+w;for(var _=arguments.length,k=new Array(_>2?_-2:0),F=2;F<_;F++)k[F-2]=arguments[F];const O=k.length,N=O-w,U=this._rows.length;let z,W;if(N<0)for(g===U&&(this._rows[U-1]=void 0),z=y;z<=U;z++)if(W=this._rows[z-1],W){const X=this.getRow(z+N);X.values=W.values,X.style=W.style,X.height=W.height,W.eachCell({includeEmpty:!0},(J,H)=>{X.getCell(H).style=J.style}),this._rows[z-1]=void 0}else this._rows[z+N-1]=void 0;else if(N>0)for(z=U;z>=y;z--)if(W=this._rows[z-1],W){const X=this.getRow(z+N);X.values=W.values,X.style=W.style,X.height=W.height,W.eachCell({includeEmpty:!0},(J,H)=>{if(X.getCell(H).style=J.style,J._value.constructor.name==="MergeValue"){const I=this.getRow(J._row._number+O).getCell(H),M=J._value._master,E=this.getRow(M._row._number+O).getCell(M._column._number);I.merge(E)}})}else this._rows[z+N-1]=void 0;for(z=0;z<O;z++){const X=this.getRow(g+z);X.style={},X.values=k[z]}this.workbook.definedNames.spliceRows(this.name,g,w,O)}eachRow(g,w){if(w||(w=g,g=void 0),g&&g.includeEmpty){const y=this._rows.length;for(let _=1;_<=y;_++)w(this.getRow(_),_)}else this._rows.forEach(y=>{y&&y.hasValues&&w(y,y.number)})}getSheetValues(){const g=[];return this._rows.forEach(w=>{w&&(g[w.number]=w.values)}),g}findCell(g,w){const y=o.getAddress(g,w),_=this._rows[y.row-1];return _?_.findCell(y.col):void 0}getCell(g,w){const y=o.getAddress(g,w);return this.getRow(y.row).getCellEx(y)}mergeCells(){for(var g=arguments.length,w=new Array(g),y=0;y<g;y++)w[y]=arguments[y];const _=new h(w);this._mergeCellsInternal(_)}mergeCellsWithoutStyle(){for(var g=arguments.length,w=new Array(g),y=0;y<g;y++)w[y]=arguments[y];const _=new h(w);this._mergeCellsInternal(_,!0)}_mergeCellsInternal(g,w){s.each(this._merges,_=>{if(_.intersects(g))throw new Error("Cannot merge already merged cells")});const y=this.getCell(g.top,g.left);for(let _=g.top;_<=g.bottom;_++)for(let k=g.left;k<=g.right;k++)(_>g.top||k>g.left)&&this.getCell(_,k).merge(y,w);this._merges[y.address]=g}_unMergeMaster(g){const w=this._merges[g.address];if(w){for(let y=w.top;y<=w.bottom;y++)for(let _=w.left;_<=w.right;_++)this.getCell(y,_).unmerge();delete this._merges[g.address]}}get hasMerges(){return s.some(this._merges,Boolean)}unMergeCells(){for(var g=arguments.length,w=new Array(g),y=0;y<g;y++)w[y]=arguments[y];const _=new h(w);for(let k=_.top;k<=_.bottom;k++)for(let F=_.left;F<=_.right;F++){const O=this.findCell(k,F);O&&(O.type===f.ValueType.Merge?this._unMergeMaster(O.master):this._merges[O.address]&&this._unMergeMaster(O))}}fillFormula(g,w,y){let _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const k=o.decode(g),{top:F,left:O,bottom:N,right:U}=k,z=U-O+1,W=o.encodeAddress(F,O),X=_==="shared";let J;typeof y=="function"?J=y:Array.isArray(y)?Array.isArray(y[0])?J=(I,M)=>y[I-F][M-O]:J=(I,M)=>y[(I-F)*z+(M-O)]:J=()=>{};let H=!0;for(let I=F;I<=N;I++)for(let M=O;M<=U;M++)H?(this.getCell(I,M).value={shareType:_,formula:w,ref:g,result:J(I,M)},H=!1):this.getCell(I,M).value=X?{sharedFormula:W,result:J(I,M)}:J(I,M)}addImage(g,w){const y={type:"image",imageId:g,range:w};this._media.push(new l(this,y))}getImages(){return this._media.filter(g=>g.type==="image")}addBackgroundImage(g){const w={type:"background",imageId:g};this._media.push(new l(this,w))}getBackgroundImageId(){const g=this._media.find(w=>w.type==="background");return g&&g.imageId}protect(g,w){return new Promise(y=>{this.sheetProtection={sheet:!0},w&&"spinCount"in w&&(w.spinCount=Number.isFinite(w.spinCount)?Math.round(Math.max(0,w.spinCount)):1e5),g&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=m.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=w&&"spinCount"in w?w.spinCount:1e5,this.sheetProtection.hashValue=m.convertPasswordToHash(g,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),w&&(this.sheetProtection=Object.assign(this.sheetProtection,w),!g&&"spinCount"in w&&delete this.sheetProtection.spinCount),y()})}unprotect(){this.sheetProtection=null}addTable(g){const w=new u(this,g);return this.tables[g.name]=w,w}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(_=>_.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(_=>_.model),conditionalFormattings:this.conditionalFormattings};g.cols=a.toModel(this.columns);const w=g.rows=[],y=g.dimensions=new h;return this._rows.forEach(_=>{const k=_&&_.model;k&&(y.expand(k.number,k.min,k.number,k.max),w.push(k))}),g.merges=[],s.each(this._merges,_=>{g.merges.push(_.range)}),g}_parseRows(g){this._rows=[],g.rows.forEach(w=>{const y=new c(this,w.number);this._rows[y.number-1]=y,y.model=w})}_parseMergeCells(g){s.each(g.mergeCells,w=>{this.mergeCellsWithoutStyle(w)})}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(w=>new l(this,w)),this.sheetProtection=g.sheetProtection,this.tables=g.tables.reduce((w,y)=>{const _=new u;return _.model=y,w[y.name]=_,w},{}),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 w=h.exec(x);if(w){const y=w[1],_=w[2].toUpperCase(),k=w[3],F=w[4];if(_.length>3||_.length===3&&_>"XFD")return m;let O=s.l2n(_),N=parseInt(F,10);return y||(O+=p.col-u.col),k||(N+=p.row-u.row),(d||"")+(y||"")+s.n2l(O)+(k||"")+N}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,w){return this.toBuffer().copy(v,x,g,w)}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,w){return this._data._buf.copy(v,x,g,w)}toBuffer(){return this._data.toBuffer()}}class u{constructor(v){this._data=v}get length(){return this._data.length}copy(v,x,g,w){this._data.copy(v,x,g,w)}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 w=Math.min(g,this.size-this.iWrite);return v.copy(this.buffer,this.iWrite,x,x+w),this.iWrite+=w,w}}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=w=>{w?x(w):(this._flush(),this.pipes.forEach(y=>{y.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 Qt<"u"?Qt: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 w=[];let y=0;g.sheets.forEach(_=>{if(_.pageSetup&&_.pageSetup.printArea&&_.pageSetup.printArea.split("&&").forEach(k=>{const F=k.split(":"),O={name:"_xlnm.Print_Area",ranges:[`'${_.name}'!$${F[0]}:$${F[1]}`],localSheetId:y};w.push(O)}),_.pageSetup&&(_.pageSetup.printTitlesRow||_.pageSetup.printTitlesColumn)){const k=[];if(_.pageSetup.printTitlesColumn){const O=_.pageSetup.printTitlesColumn.split(":");k.push(`'${_.name}'!$${O[0]}:$${O[1]}`)}if(_.pageSetup.printTitlesRow){const O=_.pageSetup.printTitlesRow.split(":");k.push(`'${_.name}'!$${O[0]}:$${O[1]}`)}const F={name:"_xlnm.Print_Titles",ranges:k,localSheetId:y};w.push(F)}y++}),w.length&&(g.definedNames=g.definedNames.concat(w)),(g.media||[]).forEach((_,k)=>{_.name=_.type+(k+1)})}render(g,w){g.openXml(h.StdDocAttributes),g.openNode("workbook",v.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(g),this.map.workbookPr.render(g,w.properties),this.map.bookViews.render(g,w.views),this.map.sheets.render(g,w.sheets),this.map.definedNames.render(g,w.definedNames),this.map.calcPr.render(g,w.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 w=(g.workbookRels||[]).reduce((O,N)=>(O[N.Id]=N,O),{}),y=[];let _,k=0;(g.sheets||[]).forEach(O=>{const N=w[O.rId];N&&(_=g.worksheetHash[`xl/${N.Target.replace(/^(\s|\/xl\/)+/,"")}`],_&&(_.name=O.name,_.id=O.id,_.state=O.state,y[k++]=_))});const F=[];s.each(g.definedNames,O=>{if(O.name==="_xlnm.Print_Area"){if(_=y[O.localSheetId],_){_.pageSetup||(_.pageSetup={});const N=o.decodeEx(O.ranges[0]);_.pageSetup.printArea=_.pageSetup.printArea?`${_.pageSetup.printArea}&&${N.dimensions}`:N.dimensions}}else if(O.name==="_xlnm.Print_Titles"){if(_=y[O.localSheetId],_){_.pageSetup||(_.pageSetup={});const N=O.ranges.join(","),U=/\$/g,z=/\$\d+:\$\d+/,W=N.match(z);if(W&&W.length){const H=W[0];_.pageSetup.printTitlesRow=H.replace(U,"")}const X=/\$[A-Z]+:\$[A-Z]+/,J=N.match(X);if(J&&J.length){const H=J[0];_.pageSetup.printTitlesColumn=H.replace(U,"")}}}else F.push(O)}),g.definedNames=F,g.media.forEach((O,N)=>{O.index=N})}}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 w=new h(g.ref),{tl:y}=w;switch(g.operator){case"containsText":return`NOT(ISERROR(SEARCH("${g.text}",${y})))`;case"containsBlanks":return`LEN(TRIM(${y}))=0`;case"notContainsBlanks":return`LEN(TRIM(${y}))>0`;case"containsErrors":return`ISERROR(${y})`;case"notContainsErrors":return`NOT(ISERROR(${y}))`;default:return}},d=g=>{if(g.formulae&&g.formulae[0])return g.formulae[0];const w=new h(g.ref),{tl:y}=w;switch(g.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${y},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${y},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${y},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${y},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${y},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${y},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${y},1)=TODAY()-1`;case"today":return`FLOOR(${y},1)=TODAY()`;case"tomorrow":return`FLOOR(${y},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${y},1)<=6,FLOOR(${y},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${y})=MONTH(EDATE(TODAY(),0-1)),YEAR(${y})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${y})=MONTH(TODAY()),YEAR(${y})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${y})=MONTH(EDATE(TODAY(),0+1)),YEAR(${y})=YEAR(EDATE(TODAY(),0+1)))`;default:return}},v=g=>{const{type:w,operator:y}=g;switch(w){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:w};default:return{type:w,operator:y}}};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(w){return!(w.type==="iconSet"&&(w.custom||p[w.iconSet]))}render(w,y){switch(y.type){case"expression":this.renderExpression(w,y);break;case"cellIs":this.renderCellIs(w,y);break;case"top10":this.renderTop10(w,y);break;case"aboveAverage":this.renderAboveAverage(w,y);break;case"dataBar":this.renderDataBar(w,y);break;case"colorScale":this.renderColorScale(w,y);break;case"iconSet":this.renderIconSet(w,y);break;case"containsText":this.renderText(w,y);break;case"timePeriod":this.renderTimePeriod(w,y);break}}renderExpression(w,y){w.openNode(this.tag,{type:"expression",dxfId:y.dxfId,priority:y.priority}),this.formulaXform.render(w,y.formulae[0]),w.closeNode()}renderCellIs(w,y){w.openNode(this.tag,{type:"cellIs",dxfId:y.dxfId,priority:y.priority,operator:y.operator}),y.formulae.forEach(_=>{this.formulaXform.render(w,_)}),w.closeNode()}renderTop10(w,y){w.leafNode(this.tag,{type:"top10",dxfId:y.dxfId,priority:y.priority,percent:s.toBoolAttribute(y.percent,!1),bottom:s.toBoolAttribute(y.bottom,!1),rank:s.toIntValue(y.rank,10,!0)})}renderAboveAverage(w,y){w.leafNode(this.tag,{type:"aboveAverage",dxfId:y.dxfId,priority:y.priority,aboveAverage:s.toBoolAttribute(y.aboveAverage,!0)})}renderDataBar(w,y){w.openNode(this.tag,{type:"dataBar",priority:y.priority}),this.databarXform.render(w,y),this.extLstRefXform.render(w,y),w.closeNode()}renderColorScale(w,y){w.openNode(this.tag,{type:"colorScale",priority:y.priority}),this.colorScaleXform.render(w,y),w.closeNode()}renderIconSet(w,y){x.isPrimitive(y)&&(w.openNode(this.tag,{type:"iconSet",priority:y.priority}),this.iconSetXform.render(w,y),w.closeNode())}renderText(w,y){w.openNode(this.tag,{type:y.operator,dxfId:y.dxfId,priority:y.priority,operator:s.toStringAttribute(y.operator,"containsText")});const _=m(y);_&&this.formulaXform.render(w,_),w.closeNode()}renderTimePeriod(w,y){w.openNode(this.tag,{type:"timePeriod",dxfId:y.dxfId,priority:y.priority,timePeriod:y.timePeriod});const _=d(y);_&&this.formulaXform.render(w,_),w.closeNode()}createNewModel(w){let{attributes:y}=w;return{...v(y),dxfId:s.toIntValue(y.dxfId),priority:s.toIntValue(y.priority),timePeriod:y.timePeriod,percent:s.toBoolValue(y.percent),bottom:s.toBoolValue(y.bottom),rank:s.toIntValue(y.rank),aboveAverage:s.toBoolValue(y.aboveAverage)}}onParserClose(w,y){switch(w){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,y.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(y.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,w)=>({address:w,dataValidation:g,marked:!1})).sort((g,w)=>s.strcmp(g.address,w.address)),v=s.keyBy(d,"address"),x=(g,w,y)=>{for(let _=0;_<w;_++){const k=h.encodeAddress(g.row+_,y);if(!m[k]||!s.isEqual(m[g.address],m[k]))return!1}return!0};return d.map(g=>{if(!g.marked){const w=h.decodeEx(g.address);if(w.dimensions)return v[w.dimensions].marked=!0,{...g.dataValidation,sqref:g.address};let y=1,_=h.encodeAddress(w.row+y,w.col);for(;m[_]&&s.isEqual(g.dataValidation,m[_]);)y++,_=h.encodeAddress(w.row+y,w.col);let k=1;for(;x(w,y,w.col+k);)k++;for(let F=0;F<y;F++)for(let O=0;O<k;O++)_=h.encodeAddress(w.row+F,w.col+O),v[_].marked=!0;if(y>1||k>1){const F=w.row+(y-1),O=w.col+(k-1);return{...g.dataValidation,sqref:`${g.address}:${h.encodeAddress(F,O)}`}}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((w,y)=>{d.openNode(`formula${y+1}`),g.type==="date"?d.writeText(o.dateToExcel(new Date(w))):d.writeText(w),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(w=>{this.model[w]=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,w){w&&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"),w=e("./sheet-format-properties-xform"),y=e("./sheet-view-xform"),_=e("./sheet-protection-xform"),k=e("./page-margins-xform"),F=e("./page-setup-xform"),O=e("./print-options-xform"),N=e("./auto-filter-xform"),U=e("./picture-xform"),z=e("./drawing-xform"),W=e("./table-part-xform"),X=e("./row-breaks-xform"),J=e("./header-footer-xform"),H=e("./cf/conditional-formattings-xform"),I=e("./ext-lst-xform"),M=(B,L)=>{Object.keys(L).forEach(P=>{const R=B[P],C=L[P];R===void 0&&C!==void 0&&(B[P]=C)})},E=(B,L)=>{if(!L||!L.length)return B;if(!B||!B.length)return L;const P={},R={};return B.forEach(C=>{P[C.ref]=C,C.rules.forEach(S=>{const{x14Id:D}=S;D&&(R[D]=S)})}),L.forEach(C=>{C.rules.forEach(S=>{const D=R[S.x14Id];D?M(D,S):P[C.ref]?P[C.ref].rules.push(S):B.push({ref:C.ref,rules:[S]})})}),B};class A extends f{constructor(L){super();const{maxRows:P,maxCols:R,ignoreNodes:C}=L||{};this.ignoreNodes=C||[],this.map={sheetPr:new g,dimension:new m,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new y}),sheetFormatPr:new w,cols:new l({tag:"cols",count:!1,childXform:new p}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new u({maxItems:R}),maxItems:P}),autoFilter:new N,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new v}),rowBreaks:new X,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new d}),pageMargins:new k,dataValidations:new x,pageSetup:new F,headerFooter:new J,printOptions:new O,picture:new U,drawing:new z,sheetProtection:new _,tableParts:new l({tag:"tableParts",count:!0,childXform:new W}),conditionalFormatting:new H,extLst:new I}}prepare(L,P){P.merges=new a,L.hyperlinks=P.hyperlinks=[],L.comments=P.comments=[],P.formulae={},P.siFormulae=0,this.map.cols.prepare(L.cols,P),this.map.sheetData.prepare(L.rows,P),this.map.conditionalFormatting.prepare(L.conditionalFormattings,P),L.mergeCells=P.merges.mergeCells;const R=L.rels=[];function C(V){return`rId${V.length+1}`}if(L.hyperlinks.forEach(V=>{const te=C(R);V.rId=te,R.push({Id:te,Type:c.Hyperlink,Target:V.target,TargetMode:"External"})}),L.comments.length>0){const V={Id:C(R),Type:c.Comments,Target:`../comments${L.id}.xml`};R.push(V);const te={Id:C(R),Type:c.VmlDrawing,Target:`../drawings/vmlDrawing${L.id}.vml`};R.push(te),L.comments.forEach(oe=>{oe.refAddress=o.decodeAddress(oe.ref)}),P.commentRefs.push({commentName:`comments${L.id}`,vmlDrawing:`vmlDrawing${L.id}`})}const S=[];let D;L.media.forEach(V=>{if(V.type==="background"){const te=C(R);D=P.media[V.imageId],R.push({Id:te,Type:c.Image,Target:`../media/${D.name}.${D.extension}`}),L.background={rId:te},L.image=P.media[V.imageId]}else if(V.type==="image"){let{drawing:te}=L;D=P.media[V.imageId],te||(te=L.drawing={rId:C(R),name:`drawing${++P.drawingsCount}`,anchors:[],rels:[]},P.drawings.push(te),R.push({Id:te.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${te.name}.xml`}));let oe=this.preImageId===V.imageId?S[V.imageId]:S[te.rels.length];oe||(oe=C(te.rels),S[te.rels.length]=oe,te.rels.push({Id:oe,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${D.name}.${D.extension}`}));const he={picture:{rId:oe},range:V.range};if(V.hyperlinks&&V.hyperlinks.hyperlink){const Ne=C(te.rels);S[te.rels.length]=Ne,he.picture.hyperlinks={tooltip:V.hyperlinks.tooltip,rId:Ne},te.rels.push({Id:Ne,Type:c.Hyperlink,Target:V.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=V.imageId,te.anchors.push(he)}}),L.tables.forEach(V=>{const te=C(R);V.rId=te,R.push({Id:te,Type:c.Table,Target:`../tables/${V.target}`}),V.columns.forEach(oe=>{const{style:he}=oe;he&&(oe.dxfId=P.styles.addDxfStyle(he))})}),this.map.extLst.prepare(L,P)}render(L,P){L.openXml(h.StdDocAttributes),L.openNode("worksheet",A.WORKSHEET_ATTRIBUTES);const R=P.properties?{defaultRowHeight:P.properties.defaultRowHeight,dyDescent:P.properties.dyDescent,outlineLevelCol:P.properties.outlineLevelCol,outlineLevelRow:P.properties.outlineLevelRow}:void 0;P.properties&&P.properties.defaultColWidth&&(R.defaultColWidth=P.properties.defaultColWidth);const C={outlineProperties:P.properties&&P.properties.outlineProperties,tabColor:P.properties&&P.properties.tabColor,pageSetup:P.pageSetup&&P.pageSetup.fitToPage?{fitToPage:P.pageSetup.fitToPage}:void 0},S=P.pageSetup&&P.pageSetup.margins,D={showRowColHeaders:P.pageSetup&&P.pageSetup.showRowColHeaders,showGridLines:P.pageSetup&&P.pageSetup.showGridLines,horizontalCentered:P.pageSetup&&P.pageSetup.horizontalCentered,verticalCentered:P.pageSetup&&P.pageSetup.verticalCentered},V=P.sheetProtection;this.map.sheetPr.render(L,C),this.map.dimension.render(L,P.dimensions),this.map.sheetViews.render(L,P.views),this.map.sheetFormatPr.render(L,R),this.map.cols.render(L,P.cols),this.map.sheetData.render(L,P.rows),this.map.sheetProtection.render(L,V),this.map.autoFilter.render(L,P.autoFilter),this.map.mergeCells.render(L,P.mergeCells),this.map.conditionalFormatting.render(L,P.conditionalFormattings),this.map.dataValidations.render(L,P.dataValidations),this.map.hyperlinks.render(L,P.hyperlinks),this.map.printOptions.render(L,D),this.map.pageMargins.render(L,S),this.map.pageSetup.render(L,P.pageSetup),this.map.headerFooter.render(L,P.headerFooter),this.map.rowBreaks.render(L,P.rowBreaks),this.map.drawing.render(L,P.drawing),this.map.picture.render(L,P.background),this.map.tableParts.render(L,P.tables),this.map.extLst.render(L,P),P.rels&&P.rels.forEach(te=>{te.Type===c.VmlDrawing&&L.leafNode("legacyDrawing",{"r:id":te.Id})}),L.closeNode()}parseOpen(L){return this.parser?(this.parser.parseOpen(L),!0):L.name==="worksheet"?(s.each(this.map,P=>{P.reset()}),!0):(this.map[L.name]&&!this.ignoreNodes.includes(L.name)&&(this.parser=this.map[L.name],this.parser.parseOpen(L)),!0)}parseText(L){this.parser&&this.parser.parseText(L)}parseClose(L){if(this.parser)return this.parser.parseClose(L)||(this.parser=void 0),!0;switch(L){case"worksheet":{const P=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(P.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(P.outlineProperties=this.map.sheetPr.model.outlineProperties);const R={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},C=Object.assign(R,this.map.pageSetup.model,this.map.printOptions.model),S=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:P,views:this.map.sheetViews.model,pageSetup:C,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:S},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(L,P){const R=(L.relationships||[]).reduce((S,D)=>{if(S[D.Id]=D,D.Type===c.Comments&&(L.comments=P.comments[D.Target].comments),D.Type===c.VmlDrawing&&L.comments&&L.comments.length){const V=P.vmlDrawings[D.Target].comments;L.comments.forEach((te,oe)=>{te.note=Object.assign({},te.note,V[oe])})}return S},{});if(P.commentsMap=(L.comments||[]).reduce((S,D)=>(D.ref&&(S[D.ref]=D),S),{}),P.hyperlinkMap=(L.hyperlinks||[]).reduce((S,D)=>(D.rId&&(S[D.address]=R[D.rId].Target),S),{}),P.formulae={},L.rows=L.rows&&L.rows.filter(Boolean)||[],L.rows.forEach(S=>{S.cells=S.cells&&S.cells.filter(Boolean)||[]}),this.map.cols.reconcile(L.cols,P),this.map.sheetData.reconcile(L.rows,P),this.map.conditionalFormatting.reconcile(L.conditionalFormattings,P),L.media=[],L.drawing){const D=R[L.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(D){const V=D[1];P.drawings[V].anchors.forEach(oe=>{if(oe.medium){const he={type:"image",imageId:oe.medium.index,range:oe.range,hyperlinks:oe.picture.hyperlinks};L.media.push(he)}})}}const C=L.background&&R[L.background.rId];if(C){const S=C.Target.split("/media/")[1],D=P.mediaIndex&&P.mediaIndex[S];D!==void 0&&L.media.push({type:"background",imageId:D})}L.tables=(L.tables||[]).map(S=>{const D=R[S.rId];return P.tables[D.Target]}),delete L.relationships,delete L.hyperlinks,delete L.comments}}A.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=A},{"../../../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(y){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},y&&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(y,_){_=_||this.model,y.openXml(o.StdDocAttributes),y.openNode("styleSheet",x.STYLESHEET_ATTRIBUTES),this.index?(_.numFmts&&_.numFmts.length&&(y.openNode("numFmts",{count:_.numFmts.length}),_.numFmts.forEach(k=>{y.writeXml(k)}),y.closeNode()),_.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),y.openNode("fonts",{count:_.fonts.length,"x14ac:knownFonts":1}),_.fonts.forEach(k=>{y.writeXml(k)}),y.closeNode(),y.openNode("fills",{count:_.fills.length}),_.fills.forEach(k=>{y.writeXml(k)}),y.closeNode(),y.openNode("borders",{count:_.borders.length}),_.borders.forEach(k=>{y.writeXml(k)}),y.closeNode(),this.map.cellStyleXfs.render(y,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),y.openNode("cellXfs",{count:_.styles.length}),_.styles.forEach(k=>{y.writeXml(k)}),y.closeNode()):(this.map.numFmts.render(y,_.numFmts),this.map.fonts.render(y,_.fonts),this.map.fills.render(y,_.fills),this.map.borders.render(y,_.borders),this.map.cellStyleXfs.render(y,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(y,_.styles)),x.STATIC_XFORMS.cellStyles.render(y),this.map.dxfs.render(y,_.dxfs),x.STATIC_XFORMS.tableStyles.render(y),x.STATIC_XFORMS.extLst.render(y),y.closeNode()}parseOpen(y){if(this.parser)return this.parser.parseOpen(y),!0;switch(y.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[y.name],this.parser&&this.parser.parseOpen(y),!0}}parseText(y){this.parser&&this.parser.parseText(y)}parseClose(y){if(this.parser)return this.parser.parseClose(y)||(this.parser=void 0),!0;switch(y){case"styleSheet":{this.model={};const _=(k,F)=>{F.model&&F.model.length&&(this.model[k]=F.model)};if(_("numFmts",this.map.numFmts),_("fonts",this.map.fonts),_("fills",this.map.fills),_("borders",this.map.borders),_("styles",this.map.cellXfs),_("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const k=this.index.numFmt;this.model.numFmts.forEach(F=>{k[F.id]=F.formatCode})}return!1}default:return!0}}addStyleModel(y,_){if(!y)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(y))return this.weakMap.get(y);const k={};if(_=_||s.ValueType.Number,y.numFmt)k.numFmtId=this._addNumFmtStr(y.numFmt);else switch(_){case s.ValueType.Number:k.numFmtId=this._addNumFmtStr("General");break;case s.ValueType.Date:k.numFmtId=this._addNumFmtStr("mm-dd-yy");break}y.font&&(k.fontId=this._addFont(y.font)),y.border&&(k.borderId=this._addBorder(y.border)),y.fill&&(k.fillId=this._addFill(y.fill)),y.alignment&&(k.alignment=y.alignment),y.protection&&(k.protection=y.protection);const F=this._addStyle(k);return this.weakMap&&this.weakMap.set(y,F),F}getStyleModel(y){const _=this.model.styles[y];if(!_)return null;let k=this.index.model[y];if(k)return k;if(k=this.index.model[y]={},_.numFmtId){const O=this.index.numFmt[_.numFmtId]||p.getDefaultFmtCode(_.numFmtId);O&&(k.numFmt=O)}function F(O,N,U){if(U||U===0){const z=N[U];z&&(k[O]=z)}}return F("font",this.model.fonts,_.fontId),F("border",this.model.borders,_.borderId),F("fill",this.model.fills,_.fillId),_.alignment&&(k.alignment=_.alignment),_.protection&&(k.protection=_.protection),k}addDxfStyle(y){return y.numFmt&&(y.numFmtId=this._addNumFmtStr(y.numFmt)),this.model.dxfs.push(y),this.model.dxfs.length-1}getDxfStyle(y){return this.model.dxfs[y]}_addStyle(y){const _=this.map.style.toXml(y);let k=this.index.style[_];return k===void 0&&(k=this.index.style[_]=this.model.styles.length,this.model.styles.push(_)),k}_addNumFmtStr(y){let _=p.getDefaultFmtId(y);if(_!==void 0||(_=this.index.numFmt[y],_!==void 0))return _;_=this.index.numFmt[y]=v+this.model.numFmts.length;const k=this.map.numFmt.toXml({id:_,formatCode:y});return this.model.numFmts.push(k),_}_addFont(y){const _=this.map.font.toXml(y);let k=this.index.font[_];return k===void 0&&(k=this.index.font[_]=this.model.fonts.length,this.model.fonts.push(_)),k}_addBorder(y){const _=this.map.border.toXml(y);let k=this.index.border[_];return k===void 0&&(k=this.index.border[_]=this.model.borders.length,this.model.borders.push(_)),k}_addFill(y){const _=this.map.fill.toXml(y);let k=this.index.fill[_];return k===void 0&&(k=this.index.fill[_]=this.model.fills.length,this.model.fills.push(_)),k}}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(y){return y.autodrain(),Promise.resolve()}addStyleModel(y,_){switch(_){case s.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const y={numFmtId:p.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(y)}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"),w=e("./xform/core/content-types-xform"),y=e("./xform/core/app-xform"),_=e("./xform/book/workbook-xform"),k=e("./xform/sheet/worksheet-xform"),F=e("./xform/drawing/drawing-xform"),O=e("./xform/table/table-xform"),N=e("./xform/comment/comments-xform"),U=e("./xform/comment/vml-notes-xform"),z=e("./xml/theme1");function W(J,H){return new Promise((I,M)=>{h.readFile(J,H,(E,A)=>{E?M(E):I(A)})})}class X{constructor(H){this.workbook=H}async readFile(H,I){if(!await u.fs.exists(H))throw new Error(`File not found: ${H}`);const M=h.createReadStream(H);try{const E=await this.read(M,I);return M.close(),E}catch(E){throw M.close(),E}}parseRels(H){return new g().parseStream(H)}parseWorkbook(H){return new _().parseStream(H)}parseSharedStrings(H){return new x().parseStream(H)}reconcile(H,I){const M=new _,E=new k(I),A=new F,B=new O;M.reconcile(H);const L={media:H.media,mediaIndex:H.mediaIndex};Object.keys(H.drawings).forEach(C=>{const S=H.drawings[C],D=H.drawingRels[C];D&&(L.rels=D.reduce((V,te)=>(V[te.Id]=te,V),{}),(S.anchors||[]).forEach(V=>{const te=V.picture&&V.picture.hyperlinks;te&&L.rels[te.rId]&&(te.hyperlink=L.rels[te.rId].Target,delete te.rId)}),A.reconcile(S,L))});const P={styles:H.styles};Object.values(H.tables).forEach(C=>{B.reconcile(C,P)});const R={styles:H.styles,sharedStrings:H.sharedStrings,media:H.media,mediaIndex:H.mediaIndex,date1904:H.properties&&H.properties.date1904,drawings:H.drawings,comments:H.comments,tables:H.tables,vmlDrawings:H.vmlDrawings};H.worksheets.forEach(C=>{C.relationships=H.worksheetRels[C.sheetNo],E.reconcile(C,R)}),delete H.worksheetHash,delete H.worksheetRels,delete H.globalRels,delete H.sharedStrings,delete H.workbookRels,delete H.sheetDefs,delete H.styles,delete H.mediaIndex,delete H.drawings,delete H.drawingRels,delete H.vmlDrawings}async _processWorksheetEntry(H,I,M,E,A){const L=await new k(E).parseStream(H);L.sheetNo=M,I.worksheetHash[A]=L,I.worksheets.push(L)}async _processCommentEntry(H,I,M){const A=await new N().parseStream(H);I.comments[`../${M}.xml`]=A}async _processTableEntry(H,I,M){const A=await new O().parseStream(H);I.tables[`../tables/${M}.xml`]=A}async _processWorksheetRelsEntry(H,I,M){const A=await new g().parseStream(H);I.worksheetRels[M]=A}async _processMediaEntry(H,I,M){const E=M.lastIndexOf(".");if(E>=1){const A=M.substr(E+1),B=M.substr(0,E);await new Promise((L,P)=>{const R=new l;R.on("finish",()=>{I.mediaIndex[M]=I.media.length,I.mediaIndex[B]=I.media.length;const C={type:"image",name:B,extension:A,buffer:R.toBuffer()};I.media.push(C),L()}),H.on("error",C=>{P(C)}),H.pipe(R)})}}async _processDrawingEntry(H,I,M){const A=await new F().parseStream(H);I.drawings[M]=A}async _processDrawingRelsEntry(H,I,M){const A=await new g().parseStream(H);I.drawingRels[M]=A}async _processVmlDrawingEntry(H,I,M){const A=await new U().parseStream(H);I.vmlDrawings[`../drawings/${M}.vml`]=A}async _processThemeEntry(H,I,M){await new Promise((E,A)=>{const B=new l;H.on("error",A),B.on("error",A),B.on("finish",()=>{I.themes[M]=B.read().toString(),E()}),H.pipe(B)})}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(H,I){!H[Symbol.asyncIterator]&&H.pipe&&(H=H.pipe(new a));const M=[];for await(const E of H)M.push(E);return this.load(o.concat(M),I)}async load(H,I){let M;I&&I.base64?M=o.from(H.toString(),"base64"):M=H;const E={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},A=await c.loadAsync(M);for(const B of Object.values(A.files))if(!B.dir){let L=B.name;L[0]==="/"&&(L=L.substr(1));let P;if(L.match(/xl\/media\//)||L.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))P=new a,P.write(await B.async("nodebuffer"));else{P=new a({writableObjectMode:!0,readableObjectMode:!0});let R;s.browser?R=m(await B.async("nodebuffer")):R=await B.async("string");const C=16*1024;for(let S=0;S<R.length;S+=C)P.write(R.substring(S,S+C))}switch(P.end(),L){case"_rels/.rels":E.globalRels=await this.parseRels(P);break;case"xl/workbook.xml":{const R=await this.parseWorkbook(P);E.sheets=R.sheets,E.definedNames=R.definedNames,E.views=R.views,E.properties=R.properties,E.calcProperties=R.calcProperties;break}case"xl/_rels/workbook.xml.rels":E.workbookRels=await this.parseRels(P);break;case"xl/sharedStrings.xml":E.sharedStrings=new x,await E.sharedStrings.parseStream(P);break;case"xl/styles.xml":E.styles=new d,await E.styles.parseStream(P);break;case"docProps/app.xml":{const C=await new y().parseStream(P);E.company=C.company,E.manager=C.manager;break}case"docProps/core.xml":{const C=await new v().parseStream(P);Object.assign(E,C);break}default:{let R=L.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(R){await this._processWorksheetEntry(P,E,R[1],I,L);break}if(R=L.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),R){await this._processWorksheetRelsEntry(P,E,R[1]);break}if(R=L.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),R){await this._processThemeEntry(P,E,R[1]);break}if(R=L.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),R){await this._processMediaEntry(P,E,R[1]);break}if(R=L.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),R){await this._processDrawingEntry(P,E,R[1]);break}if(R=L.match(/xl\/(comments\d+)[.]xml/),R){await this._processCommentEntry(P,E,R[1]);break}if(R=L.match(/xl\/tables\/(table\d+)[.]xml/),R){await this._processTableEntry(P,E,R[1]);break}if(R=L.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),R){await this._processDrawingRelsEntry(P,E,R[1]);break}if(R=L.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),R){await this._processVmlDrawingEntry(P,E,R[1]);break}}}}return this.reconcile(E,I),this.workbook.model=E,this.workbook}async addMedia(H,I){await Promise.all(I.media.map(async M=>{if(M.type==="image"){const E=`xl/media/${M.name}.${M.extension}`;if(M.filename){const A=await W(M.filename);return H.append(A,{name:E})}if(M.buffer)return H.append(M.buffer,{name:E});if(M.base64){const A=M.base64,B=A.substring(A.indexOf(",")+1);return H.append(B,{name:E,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(H,I){const M=new F,E=new g;I.worksheets.forEach(A=>{const{drawing:B}=A;if(B){M.prepare(B,{});let L=M.toXml(B);H.append(L,{name:`xl/drawings/${B.name}.xml`}),L=E.toXml(B.rels),H.append(L,{name:`xl/drawings/_rels/${B.name}.xml.rels`})}})}addTables(H,I){const M=new O;I.worksheets.forEach(E=>{const{tables:A}=E;A.forEach(B=>{M.prepare(B,{});const L=M.toXml(B);H.append(L,{name:`xl/tables/${B.target}`})})})}async addContentTypes(H,I){const E=new w().toXml(I);H.append(E,{name:"[Content_Types].xml"})}async addApp(H,I){const E=new y().toXml(I);H.append(E,{name:"docProps/app.xml"})}async addCore(H,I){const M=new v;H.append(M.toXml(I),{name:"docProps/core.xml"})}async addThemes(H,I){const M=I.themes||{theme1:z};Object.keys(M).forEach(E=>{const A=M[E],B=`xl/theme/${E}.xml`;H.append(A,{name:B})})}async addOfficeRels(H){const M=new g().toXml([{Id:"rId1",Type:X.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:X.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:X.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);H.append(M,{name:"_rels/.rels"})}async addWorkbookRels(H,I){let M=1;const E=[{Id:`rId${M++}`,Type:X.RelType.Styles,Target:"styles.xml"},{Id:`rId${M++}`,Type:X.RelType.Theme,Target:"theme/theme1.xml"}];I.sharedStrings.count&&E.push({Id:`rId${M++}`,Type:X.RelType.SharedStrings,Target:"sharedStrings.xml"}),I.worksheets.forEach(L=>{L.rId=`rId${M++}`,E.push({Id:L.rId,Type:X.RelType.Worksheet,Target:`worksheets/sheet${L.id}.xml`})});const B=new g().toXml(E);H.append(B,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(H,I){I.sharedStrings&&I.sharedStrings.count&&H.append(I.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(H,I){const{xml:M}=I.styles;M&&H.append(M,{name:"xl/styles.xml"})}async addWorkbook(H,I){const M=new _;H.append(M.toXml(I),{name:"xl/workbook.xml"})}async addWorksheets(H,I){const M=new k,E=new g,A=new N,B=new U;I.worksheets.forEach(L=>{let P=new p;M.render(P,L),H.append(P.xml,{name:`xl/worksheets/sheet${L.id}.xml`}),L.rels&&L.rels.length&&(P=new p,E.render(P,L.rels),H.append(P.xml,{name:`xl/worksheets/_rels/sheet${L.id}.xml.rels`})),L.comments.length>0&&(P=new p,A.render(P,L),H.append(P.xml,{name:`xl/comments${L.id}.xml`}),P=new p,B.render(P,L),H.append(P.xml,{name:`xl/drawings/vmlDrawing${L.id}.vml`}))})}_finalize(H){return new Promise((I,M)=>{H.on("finish",()=>{I(this)}),H.on("error",M),H.finalize()})}prepareModel(H,I){H.creator=H.creator||"ExcelJS",H.lastModifiedBy=H.lastModifiedBy||"ExcelJS",H.created=H.created||new Date,H.modified=H.modified||new Date,H.useSharedStrings=I.useSharedStrings!==void 0?I.useSharedStrings:!0,H.useStyles=I.useStyles!==void 0?I.useStyles:!0,H.sharedStrings=new x,H.styles=H.useStyles?new d(!0):new d.Mock;const M=new _,E=new k;M.prepare(H);const A={sharedStrings:H.sharedStrings,styles:H.styles,date1904:H.properties.date1904,drawingsCount:0,media:H.media};A.drawings=H.drawings=[],A.commentRefs=H.commentRefs=[];let B=0;H.tables=[],H.worksheets.forEach(L=>{L.tables.forEach(P=>{B++,P.target=`table${B}.xml`,P.id=B,H.tables.push(P)}),E.prepare(L,A)})}async write(H,I){I=I||{};const{model:M}=this.workbook,E=new f.ZipWriter(I.zip);return E.pipe(H),this.prepareModel(M,I),await this.addContentTypes(E,M),await this.addOfficeRels(E,M),await this.addWorkbookRels(E,M),await this.addWorksheets(E,M),await this.addSharedStrings(E,M),await this.addDrawings(E,M),await this.addTables(E,M),await Promise.all([this.addThemes(E,M),this.addStyles(E,M)]),await this.addMedia(E,M),await Promise.all([this.addApp(E,M),this.addCore(E,M)]),await this.addWorkbook(E,M),this._finalize(E)}writeFile(H,I){const M=h.createWriteStream(H);return new Promise((E,A)=>{M.on("finish",()=>{E()}),M.on("error",B=>{A(B)}),this.write(M,I).then(()=>{M.end()}).catch(B=>{A(B)})})}async writeBuffer(H){const I=new l;return await this.write(I,H),I.read()}}X.RelType=e("./rel-type"),n.exports=X}).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 w=this.gatherColumns(d);v.push(this.formatColumns(w,!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,w,y){y===void 0&&(y=w),Object.defineProperty(x,y,{enumerable:!0,get:function(){return g[w]}})}:function(x,g,w,y){y===void 0&&(y=w),x[y]=g[w]},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 w in x)w!=="default"&&Object.prototype.hasOwnProperty.call(x,w)&&o(g,x,w);return h(g,x),g},a=function(x,g){for(var w in x)w!=="default"&&!Object.prototype.hasOwnProperty.call(g,w)&&o(g,x,w)};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 w=i.format(g),y=f.promisify((_,k)=>{w.write(_,void 0,k)});return x.reduce((_,k)=>_.then(()=>y(k)),Promise.resolve()).then(()=>w.end()).catch(_=>{w.emit("error",_)}),w},i.writeToStream=(x,g,w)=>i.write(g,w).pipe(x),i.writeToBuffer=function(x){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const w=[],y=new l.Writable({write(_,k,F){w.push(_),F()}});return new Promise((_,k)=>{y.on("error",k).on("finish",()=>_(s.concat(w))),i.write(x,g).pipe(y)})},i.writeToString=(x,g)=>i.writeToBuffer(x,g).then(w=>w.toString()),i.writeToPath=(x,g,w)=>{const y=u.createWriteStream(x,{encoding:"utf8"});return i.write(g,w).pipe(y)}}).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=y=>{if(y)return p(y);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 w=this.rowCount;return this.transformRow(g,(y,_)=>{if(y)return this.rowCount-=1,x(y);if(!_)return x(new Error("expected transform result"));if(!_.isValid)this.emit("data-invalid",_.row,w,_.reason);else if(_.row)return this.pushRow(_.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 w={};return Object.keys(g).forEach(function(y){y==(y|0)&&(y|=0);const _=g[y];w[_]=y}),w}))},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,w=!0,y=null;if(x.key!==null&&(y=d.enterKey(x.key)),x.optional){let k=null;if(x.explicit!==null?k=x.explicit:x.implicit!==null?k=x.implicit:x.tag!==null&&(k=x.tag),k===null&&!x.any){const F=d.save();try{x.choice===null?this._decodeGeneric(x.tag,d,v):this._decodeChoice(d,v),w=!0}catch{w=!1}d.restore(F)}else if(w=this._peekTag(d,k,x.any),d.isError(w))return w}let _;if(x.obj&&w&&(_=d.enterObject()),w){if(x.explicit!==null){const F=this._decodeTag(d,x.explicit);if(d.isError(F))return F;d=F}const k=d.offset;if(x.use===null&&x.choice===null){let F;x.any&&(F=d.save());const O=this._decodeTag(d,x.implicit!==null?x.implicit:x.tag,x.any);if(d.isError(O))return O;x.any?g=d.raw(F):d=O}if(v&&v.track&&x.tag!==null&&v.track(d.path(),k,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(O){O._decode(d,v)}),x.contains&&(x.tag==="octstr"||x.tag==="bitstr")){const F=new h(g);g=this._getUse(x.contains,d._reporterState.obj)._decode(F,v)}}return x.obj&&w&&(g=d.leaveObject(_)),x.key!==null&&(g!==null||w===!0)?d.leaveKey(y,x.key,g):y!==null&&d.exitKey(y),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,w=!1;return Object.keys(x.choice).some(function(y){const _=d.save(),k=x.choice[y];try{const F=k._decode(d,v);if(d.isError(F))return!1;g={type:y,value:F},w=!0}catch{return d.restore(_),!1}return!0},this),w?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 w=this._encodeValue(d,v,x);if(w!==void 0&&!this._skipDefault(w,v,x))return w},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 w=null;if(this.reporter=v,g.optional&&d===void 0)if(g.default!==null)d=g.default;else return;let y=null,_=!1;if(g.any)w=this._createEncoderBuffer(d);else if(g.choice)w=this._encodeChoice(d,v);else if(g.contains)y=this._getUse(g.contains,x)._encode(d,v),_=!0;else if(g.children)y=g.children.map(function(k){if(k._baseState.tag==="null_")return k._encode(null,v,d);if(k._baseState.key===null)return v.error("Child should have a key");const F=v.enterKey(k._baseState.key);if(typeof d!="object")return v.error("Child expected, but input is not object");const O=k._encode(d[k._baseState.key],v,d);return v.leaveKey(F),O},this).filter(function(k){return k}),y=this._createEncoderBuffer(y);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 k=this.clone();k._baseState.implicit=null,y=this._createEncoderBuffer(d.map(function(F){const O=this._baseState;return this._getUse(O.args[0],d)._encode(F,v)},k))}else g.use!==null?w=this._getUse(g.use,x)._encode(d,v):(y=this._encodePrimitive(g.tag,d),_=!0);if(!g.any&&g.choice===null){const k=g.implicit!==null?g.implicit:g.tag,F=g.implicit===null?"universal":"context";k===null?g.use===null&&v.error("Tag could be omitted only for .use()"):g.use===null&&(w=this._encodeComposite(k,_,F,y))}return g.explicit!==null&&(w=this._encodeComposite(g.explicit,!1,"context",w)),w},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(),w=u(d,'Failed to peek tag: "'+v+'"');return d.isError(w)?w:(d.restore(g),w.tag===v||w.tagStr===v||w.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 w=p(d,g.primitive,'Failed to get length of "'+v+'"');if(d.isError(w))return w;if(!x&&g.tag!==v&&g.tagStr!==v&&g.tagStr+"of"!==v)return d.error('Failed to match tag: "'+v+'"');if(g.primitive||w!==null)return d.skip(w,'Failed to match body of: "'+v+'"');const y=d.save(),_=this._skipUntilEnd(d,'Failed to skip indefinite length body: "'+this.tag+'"');return d.isError(_)?_:(w=d.offset-y.offset,d.restore(y),d.skip(w,'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 w;if(x.primitive||g!==null?w=d.skip(g):w=this._skipUntilEnd(d,v),d.isError(w))return w;if(x.tagStr==="end")break}},l.prototype._decodeList=function(d,v,x,g){const w=[];for(;!d.isEmpty();){const y=this._peekTag(d,"end");if(d.isError(y))return y;const _=x.decode(d,"der",g);if(d.isError(_)&&y)break;w.push(_)}return w},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 w=0;w<x.length/2;w++)g+=String.fromCharCode(x.readUInt16BE(w*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 w=[];let y=0,_=0;for(;!d.isEmpty();)_=d.readUInt8(),y<<=7,y|=_&127,_&128||(w.push(y),y=0);_&128&&w.push(y);const k=w[0]/40|0,F=w[0]%40;if(x?g=w:g=[k,F].concat(w.slice(1)),v){let O=v[g.join(" ")];O===void 0&&(O=v[g.join(".")]),O!==void 0&&(g=O)}return g},l.prototype._decodeTime=function(d,v){const x=d.raw().toString();let g,w,y,_,k,F;if(v==="gentime")g=x.slice(0,4)|0,w=x.slice(4,6)|0,y=x.slice(6,8)|0,_=x.slice(8,10)|0,k=x.slice(10,12)|0,F=x.slice(12,14)|0;else if(v==="utctime")g=x.slice(0,2)|0,w=x.slice(2,4)|0,y=x.slice(4,6)|0,_=x.slice(6,8)|0,k=x.slice(8,10)|0,F=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,w-1,y,_,k,F,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 y=v;for(v=0;(y&128)===128;){if(y=m.readUInt8(d),m.isError(y))return y;v<<=7,v|=y&127}}else v&=31;const w=a.tag[v];return{cls:x,primitive:g,tag:v,tagStr:w}}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 w=0;w<g;w++){x<<=8;const y=m.readUInt8(v);if(m.isError(y))return y;x|=y}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 w=0;w<u.length;w++){const y=u[w].match(m);if(y!==null&&y[2]===p)if(d===-1){if(y[1]!=="BEGIN")break;d=w}else{if(y[1]!=="END")break;v=w;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 _=o.alloc(2);return _[0]=g,_[1]=x.length,this._createEncoderBuffer([_,x])}let w=1;for(let _=x.length;_>=256;_>>=8)w++;const y=o.alloc(1+1+w);y[0]=g,y[1]=128|w;for(let _=1+w,k=x.length;k>0;_--,k>>=8)y[_]=k&255;return this._createEncoderBuffer([y,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 y=0;y<m.length;y++)m[y]|=0}else if(Array.isArray(m)){m=m.slice();for(let y=0;y<m.length;y++)m[y]|=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 y=0;y<m.length;y++){let _=m[y];for(x++;_>=128;_>>=7)x++}const g=o.alloc(x);let w=g.length-1;for(let y=m.length-1;y>=0;y--){let _=m[y];for(g[w--]=_&127;(_>>=7)>0;)g[w--]=128|_&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 w=o.alloc(g);return m.copy(w),m.length===0&&(w[0]=0),this._createEncoderBuffer(w)}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 w=m.join();if(x.defaultBuffer===void 0&&(x.defaultBuffer=this._encodeValue(x.default,d,v).join()),w.length!==x.defaultBuffer.length)return!1;for(g=0;g<w.length;g++)if(w[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(H,I){if(!H)throw new Error(I||"Assertion failed")}function c(H,I){H.super_=I;var M=function(){};M.prototype=I.prototype,H.prototype=new M,H.prototype.constructor=H}function a(H,I,M){if(a.isBN(H))return H;this.negative=0,this.words=null,this.length=0,this.red=null,H!==null&&((I==="le"||I==="be")&&(M=I,I=10),this._init(H||0,I||10,M||"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(I){return I instanceof a?!0:I!==null&&typeof I=="object"&&I.constructor.wordSize===a.wordSize&&Array.isArray(I.words)},a.max=function(I,M){return I.cmp(M)>0?I:M},a.min=function(I,M){return I.cmp(M)<0?I:M},a.prototype._init=function(I,M,E){if(typeof I=="number")return this._initNumber(I,M,E);if(typeof I=="object")return this._initArray(I,M,E);M==="hex"&&(M=16),h(M===(M|0)&&M>=2&&M<=36),I=I.toString().replace(/\s+/g,"");var A=0;I[0]==="-"&&(A++,this.negative=1),A<I.length&&(M===16?this._parseHex(I,A,E):(this._parseBase(I,M,A),E==="le"&&this._initArray(this.toArray(),M,E)))},a.prototype._initNumber=function(I,M,E){I<0&&(this.negative=1,I=-I),I<67108864?(this.words=[I&67108863],this.length=1):I<4503599627370496?(this.words=[I&67108863,I/67108864&67108863],this.length=2):(h(I<9007199254740992),this.words=[I&67108863,I/67108864&67108863,1],this.length=3),E==="le"&&this._initArray(this.toArray(),M,E)},a.prototype._initArray=function(I,M,E){if(h(typeof I.length=="number"),I.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(I.length/3),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var B,L,P=0;if(E==="be")for(A=I.length-1,B=0;A>=0;A-=3)L=I[A]|I[A-1]<<8|I[A-2]<<16,this.words[B]|=L<<P&67108863,this.words[B+1]=L>>>26-P&67108863,P+=24,P>=26&&(P-=26,B++);else if(E==="le")for(A=0,B=0;A<I.length;A+=3)L=I[A]|I[A+1]<<8|I[A+2]<<16,this.words[B]|=L<<P&67108863,this.words[B+1]=L>>>26-P&67108863,P+=24,P>=26&&(P-=26,B++);return this.strip()};function l(H,I){var M=H.charCodeAt(I);return M>=65&&M<=70?M-55:M>=97&&M<=102?M-87:M-48&15}function u(H,I,M){var E=l(H,M);return M-1>=I&&(E|=l(H,M-1)<<4),E}a.prototype._parseHex=function(I,M,E){this.length=Math.ceil((I.length-M)/6),this.words=new Array(this.length);for(var A=0;A<this.length;A++)this.words[A]=0;var B=0,L=0,P;if(E==="be")for(A=I.length-1;A>=M;A-=2)P=u(I,M,A)<<B,this.words[L]|=P&67108863,B>=18?(B-=18,L+=1,this.words[L]|=P>>>26):B+=8;else{var R=I.length-M;for(A=R%2===0?M+1:M;A<I.length;A+=2)P=u(I,M,A)<<B,this.words[L]|=P&67108863,B>=18?(B-=18,L+=1,this.words[L]|=P>>>26):B+=8}this.strip()};function p(H,I,M,E){for(var A=0,B=Math.min(H.length,M),L=I;L<B;L++){var P=H.charCodeAt(L)-48;A*=E,P>=49?A+=P-49+10:P>=17?A+=P-17+10:A+=P}return A}a.prototype._parseBase=function(I,M,E){this.words=[0],this.length=1;for(var A=0,B=1;B<=67108863;B*=M)A++;A--,B=B/M|0;for(var L=I.length-E,P=L%A,R=Math.min(L,L-P)+E,C=0,S=E;S<R;S+=A)C=p(I,S,S+A,M),this.imuln(B),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C);if(P!==0){var D=1;for(C=p(I,S,I.length,M),S=0;S<P;S++)D*=M;this.imuln(D),this.words[0]+C<67108864?this.words[0]+=C:this._iaddn(C)}this.strip()},a.prototype.copy=function(I){I.words=new Array(this.length);for(var M=0;M<this.length;M++)I.words[M]=this.words[M];I.length=this.length,I.negative=this.negative,I.red=this.red},a.prototype.clone=function(){var I=new a(null);return this.copy(I),I},a.prototype._expand=function(I){for(;this.length<I;)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(I,M){I=I||10,M=M|0||1;var E;if(I===16||I==="hex"){E="";for(var A=0,B=0,L=0;L<this.length;L++){var P=this.words[L],R=((P<<A|B)&16777215).toString(16);B=P>>>24-A&16777215,B!==0||L!==this.length-1?E=m[6-R.length]+R+E:E=R+E,A+=2,A>=26&&(A-=26,L--)}for(B!==0&&(E=B.toString(16)+E);E.length%M!==0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}if(I===(I|0)&&I>=2&&I<=36){var C=d[I],S=v[I];E="";var D=this.clone();for(D.negative=0;!D.isZero();){var V=D.modn(S).toString(I);D=D.idivn(S),D.isZero()?E=V+E:E=m[C-V.length]+V+E}for(this.isZero()&&(E="0"+E);E.length%M!==0;)E="0"+E;return this.negative!==0&&(E="-"+E),E}h(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var I=this.words[0];return this.length===2?I+=this.words[1]*67108864:this.length===3&&this.words[2]===1?I+=4503599627370496+this.words[1]*67108864:this.length>2&&h(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-I:I},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(I,M){return h(typeof f<"u"),this.toArrayLike(f,I,M)},a.prototype.toArray=function(I,M){return this.toArrayLike(Array,I,M)},a.prototype.toArrayLike=function(I,M,E){var A=this.byteLength(),B=E||Math.max(1,A);h(A<=B,"byte array longer than desired length"),h(B>0,"Requested array length <= 0"),this.strip();var L=M==="le",P=new I(B),R,C,S=this.clone();if(L){for(C=0;!S.isZero();C++)R=S.andln(255),S.iushrn(8),P[C]=R;for(;C<B;C++)P[C]=0}else{for(C=0;C<B-A;C++)P[C]=0;for(C=0;!S.isZero();C++)R=S.andln(255),S.iushrn(8),P[B-C-1]=R}return P},Math.clz32?a.prototype._countBits=function(I){return 32-Math.clz32(I)}:a.prototype._countBits=function(I){var M=I,E=0;return M>=4096&&(E+=13,M>>>=13),M>=64&&(E+=7,M>>>=7),M>=8&&(E+=4,M>>>=4),M>=2&&(E+=2,M>>>=2),E+M},a.prototype._zeroBits=function(I){if(I===0)return 26;var M=I,E=0;return M&8191||(E+=13,M>>>=13),M&127||(E+=7,M>>>=7),M&15||(E+=4,M>>>=4),M&3||(E+=2,M>>>=2),M&1||E++,E},a.prototype.bitLength=function(){var I=this.words[this.length-1],M=this._countBits(I);return(this.length-1)*26+M};function x(H){for(var I=new Array(H.bitLength()),M=0;M<I.length;M++){var E=M/26|0,A=M%26;I[M]=(H.words[E]&1<<A)>>>A}return I}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var I=0,M=0;M<this.length;M++){var E=this._zeroBits(this.words[M]);if(I+=E,E!==26)break}return I},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(I){return this.negative!==0?this.abs().inotn(I).iaddn(1):this.clone()},a.prototype.fromTwos=function(I){return this.testn(I-1)?this.notn(I).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(I){for(;this.length<I.length;)this.words[this.length++]=0;for(var M=0;M<I.length;M++)this.words[M]=this.words[M]|I.words[M];return this.strip()},a.prototype.ior=function(I){return h((this.negative|I.negative)===0),this.iuor(I)},a.prototype.or=function(I){return this.length>I.length?this.clone().ior(I):I.clone().ior(this)},a.prototype.uor=function(I){return this.length>I.length?this.clone().iuor(I):I.clone().iuor(this)},a.prototype.iuand=function(I){var M;this.length>I.length?M=I:M=this;for(var E=0;E<M.length;E++)this.words[E]=this.words[E]&I.words[E];return this.length=M.length,this.strip()},a.prototype.iand=function(I){return h((this.negative|I.negative)===0),this.iuand(I)},a.prototype.and=function(I){return this.length>I.length?this.clone().iand(I):I.clone().iand(this)},a.prototype.uand=function(I){return this.length>I.length?this.clone().iuand(I):I.clone().iuand(this)},a.prototype.iuxor=function(I){var M,E;this.length>I.length?(M=this,E=I):(M=I,E=this);for(var A=0;A<E.length;A++)this.words[A]=M.words[A]^E.words[A];if(this!==M)for(;A<M.length;A++)this.words[A]=M.words[A];return this.length=M.length,this.strip()},a.prototype.ixor=function(I){return h((this.negative|I.negative)===0),this.iuxor(I)},a.prototype.xor=function(I){return this.length>I.length?this.clone().ixor(I):I.clone().ixor(this)},a.prototype.uxor=function(I){return this.length>I.length?this.clone().iuxor(I):I.clone().iuxor(this)},a.prototype.inotn=function(I){h(typeof I=="number"&&I>=0);var M=Math.ceil(I/26)|0,E=I%26;this._expand(M),E>0&&M--;for(var A=0;A<M;A++)this.words[A]=~this.words[A]&67108863;return E>0&&(this.words[A]=~this.words[A]&67108863>>26-E),this.strip()},a.prototype.notn=function(I){return this.clone().inotn(I)},a.prototype.setn=function(I,M){h(typeof I=="number"&&I>=0);var E=I/26|0,A=I%26;return this._expand(E+1),M?this.words[E]=this.words[E]|1<<A:this.words[E]=this.words[E]&~(1<<A),this.strip()},a.prototype.iadd=function(I){var M;if(this.negative!==0&&I.negative===0)return this.negative=0,M=this.isub(I),this.negative^=1,this._normSign();if(this.negative===0&&I.negative!==0)return I.negative=0,M=this.isub(I),I.negative=1,M._normSign();var E,A;this.length>I.length?(E=this,A=I):(E=I,A=this);for(var B=0,L=0;L<A.length;L++)M=(E.words[L]|0)+(A.words[L]|0)+B,this.words[L]=M&67108863,B=M>>>26;for(;B!==0&&L<E.length;L++)M=(E.words[L]|0)+B,this.words[L]=M&67108863,B=M>>>26;if(this.length=E.length,B!==0)this.words[this.length]=B,this.length++;else if(E!==this)for(;L<E.length;L++)this.words[L]=E.words[L];return this},a.prototype.add=function(I){var M;return I.negative!==0&&this.negative===0?(I.negative=0,M=this.sub(I),I.negative^=1,M):I.negative===0&&this.negative!==0?(this.negative=0,M=I.sub(this),this.negative=1,M):this.length>I.length?this.clone().iadd(I):I.clone().iadd(this)},a.prototype.isub=function(I){if(I.negative!==0){I.negative=0;var M=this.iadd(I);return I.negative=1,M._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(I),this.negative=1,this._normSign();var E=this.cmp(I);if(E===0)return this.negative=0,this.length=1,this.words[0]=0,this;var A,B;E>0?(A=this,B=I):(A=I,B=this);for(var L=0,P=0;P<B.length;P++)M=(A.words[P]|0)-(B.words[P]|0)+L,L=M>>26,this.words[P]=M&67108863;for(;L!==0&&P<A.length;P++)M=(A.words[P]|0)+L,L=M>>26,this.words[P]=M&67108863;if(L===0&&P<A.length&&A!==this)for(;P<A.length;P++)this.words[P]=A.words[P];return this.length=Math.max(this.length,P),A!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(I){return this.clone().isub(I)};function g(H,I,M){M.negative=I.negative^H.negative;var E=H.length+I.length|0;M.length=E,E=E-1|0;var A=H.words[0]|0,B=I.words[0]|0,L=A*B,P=L&67108863,R=L/67108864|0;M.words[0]=P;for(var C=1;C<E;C++){for(var S=R>>>26,D=R&67108863,V=Math.min(C,I.length-1),te=Math.max(0,C-H.length+1);te<=V;te++){var oe=C-te|0;A=H.words[oe]|0,B=I.words[te]|0,L=A*B+D,S+=L/67108864|0,D=L&67108863}M.words[C]=D|0,R=S|0}return R!==0?M.words[C]=R|0:M.length--,M.strip()}var w=function(I,M,E){var A=I.words,B=M.words,L=E.words,P=0,R,C,S,D=A[0]|0,V=D&8191,te=D>>>13,oe=A[1]|0,he=oe&8191,Ne=oe>>>13,q=A[2]|0,ne=q&8191,Q=q>>>13,re=A[3]|0,ve=re&8191,Ce=re>>>13,ce=A[4]|0,se=ce&8191,ee=ce>>>13,G=A[5]|0,Z=G&8191,de=G>>>13,Ae=A[6]|0,K=Ae&8191,Te=Ae>>>13,Oe=A[7]|0,ie=Oe&8191,fe=Oe>>>13,we=A[8]|0,Fe=we&8191,Ue=we>>>13,Pe=A[9]|0,$e=Pe&8191,rt=Pe>>>13,Ze=B[0]|0,Se=Ze&8191,je=Ze>>>13,Ke=B[1]|0,st=Ke&8191,St=Ke>>>13,At=B[2]|0,bt=At&8191,wt=At>>>13,Dt=B[3]|0,gt=Dt&8191,xt=Dt>>>13,Bt=B[4]|0,kt=Bt&8191,er=Bt>>>13,zt=B[5]|0,Ct=zt&8191,Kt=zt>>>13,ir=B[6]|0,Nt=ir&8191,le=ir>>>13,Ee=B[7]|0,pe=Ee&8191,xe=Ee>>>13,ye=B[8]|0,_e=ye&8191,We=ye>>>13,Je=B[9]|0,Le=Je&8191,Ve=Je>>>13;E.negative=I.negative^M.negative,E.length=19,R=Math.imul(V,Se),C=Math.imul(V,je),C=C+Math.imul(te,Se)|0,S=Math.imul(te,je);var He=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(He>>>26)|0,He&=67108863,R=Math.imul(he,Se),C=Math.imul(he,je),C=C+Math.imul(Ne,Se)|0,S=Math.imul(Ne,je),R=R+Math.imul(V,st)|0,C=C+Math.imul(V,St)|0,C=C+Math.imul(te,st)|0,S=S+Math.imul(te,St)|0;var tt=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(tt>>>26)|0,tt&=67108863,R=Math.imul(ne,Se),C=Math.imul(ne,je),C=C+Math.imul(Q,Se)|0,S=Math.imul(Q,je),R=R+Math.imul(he,st)|0,C=C+Math.imul(he,St)|0,C=C+Math.imul(Ne,st)|0,S=S+Math.imul(Ne,St)|0,R=R+Math.imul(V,bt)|0,C=C+Math.imul(V,wt)|0,C=C+Math.imul(te,bt)|0,S=S+Math.imul(te,wt)|0;var me=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(me>>>26)|0,me&=67108863,R=Math.imul(ve,Se),C=Math.imul(ve,je),C=C+Math.imul(Ce,Se)|0,S=Math.imul(Ce,je),R=R+Math.imul(ne,st)|0,C=C+Math.imul(ne,St)|0,C=C+Math.imul(Q,st)|0,S=S+Math.imul(Q,St)|0,R=R+Math.imul(he,bt)|0,C=C+Math.imul(he,wt)|0,C=C+Math.imul(Ne,bt)|0,S=S+Math.imul(Ne,wt)|0,R=R+Math.imul(V,gt)|0,C=C+Math.imul(V,xt)|0,C=C+Math.imul(te,gt)|0,S=S+Math.imul(te,xt)|0;var Me=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(Me>>>26)|0,Me&=67108863,R=Math.imul(se,Se),C=Math.imul(se,je),C=C+Math.imul(ee,Se)|0,S=Math.imul(ee,je),R=R+Math.imul(ve,st)|0,C=C+Math.imul(ve,St)|0,C=C+Math.imul(Ce,st)|0,S=S+Math.imul(Ce,St)|0,R=R+Math.imul(ne,bt)|0,C=C+Math.imul(ne,wt)|0,C=C+Math.imul(Q,bt)|0,S=S+Math.imul(Q,wt)|0,R=R+Math.imul(he,gt)|0,C=C+Math.imul(he,xt)|0,C=C+Math.imul(Ne,gt)|0,S=S+Math.imul(Ne,xt)|0,R=R+Math.imul(V,kt)|0,C=C+Math.imul(V,er)|0,C=C+Math.imul(te,kt)|0,S=S+Math.imul(te,er)|0;var Re=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(Re>>>26)|0,Re&=67108863,R=Math.imul(Z,Se),C=Math.imul(Z,je),C=C+Math.imul(de,Se)|0,S=Math.imul(de,je),R=R+Math.imul(se,st)|0,C=C+Math.imul(se,St)|0,C=C+Math.imul(ee,st)|0,S=S+Math.imul(ee,St)|0,R=R+Math.imul(ve,bt)|0,C=C+Math.imul(ve,wt)|0,C=C+Math.imul(Ce,bt)|0,S=S+Math.imul(Ce,wt)|0,R=R+Math.imul(ne,gt)|0,C=C+Math.imul(ne,xt)|0,C=C+Math.imul(Q,gt)|0,S=S+Math.imul(Q,xt)|0,R=R+Math.imul(he,kt)|0,C=C+Math.imul(he,er)|0,C=C+Math.imul(Ne,kt)|0,S=S+Math.imul(Ne,er)|0,R=R+Math.imul(V,Ct)|0,C=C+Math.imul(V,Kt)|0,C=C+Math.imul(te,Ct)|0,S=S+Math.imul(te,Kt)|0;var Qe=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,R=Math.imul(K,Se),C=Math.imul(K,je),C=C+Math.imul(Te,Se)|0,S=Math.imul(Te,je),R=R+Math.imul(Z,st)|0,C=C+Math.imul(Z,St)|0,C=C+Math.imul(de,st)|0,S=S+Math.imul(de,St)|0,R=R+Math.imul(se,bt)|0,C=C+Math.imul(se,wt)|0,C=C+Math.imul(ee,bt)|0,S=S+Math.imul(ee,wt)|0,R=R+Math.imul(ve,gt)|0,C=C+Math.imul(ve,xt)|0,C=C+Math.imul(Ce,gt)|0,S=S+Math.imul(Ce,xt)|0,R=R+Math.imul(ne,kt)|0,C=C+Math.imul(ne,er)|0,C=C+Math.imul(Q,kt)|0,S=S+Math.imul(Q,er)|0,R=R+Math.imul(he,Ct)|0,C=C+Math.imul(he,Kt)|0,C=C+Math.imul(Ne,Ct)|0,S=S+Math.imul(Ne,Kt)|0,R=R+Math.imul(V,Nt)|0,C=C+Math.imul(V,le)|0,C=C+Math.imul(te,Nt)|0,S=S+Math.imul(te,le)|0;var lt=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(lt>>>26)|0,lt&=67108863,R=Math.imul(ie,Se),C=Math.imul(ie,je),C=C+Math.imul(fe,Se)|0,S=Math.imul(fe,je),R=R+Math.imul(K,st)|0,C=C+Math.imul(K,St)|0,C=C+Math.imul(Te,st)|0,S=S+Math.imul(Te,St)|0,R=R+Math.imul(Z,bt)|0,C=C+Math.imul(Z,wt)|0,C=C+Math.imul(de,bt)|0,S=S+Math.imul(de,wt)|0,R=R+Math.imul(se,gt)|0,C=C+Math.imul(se,xt)|0,C=C+Math.imul(ee,gt)|0,S=S+Math.imul(ee,xt)|0,R=R+Math.imul(ve,kt)|0,C=C+Math.imul(ve,er)|0,C=C+Math.imul(Ce,kt)|0,S=S+Math.imul(Ce,er)|0,R=R+Math.imul(ne,Ct)|0,C=C+Math.imul(ne,Kt)|0,C=C+Math.imul(Q,Ct)|0,S=S+Math.imul(Q,Kt)|0,R=R+Math.imul(he,Nt)|0,C=C+Math.imul(he,le)|0,C=C+Math.imul(Ne,Nt)|0,S=S+Math.imul(Ne,le)|0,R=R+Math.imul(V,pe)|0,C=C+Math.imul(V,xe)|0,C=C+Math.imul(te,pe)|0,S=S+Math.imul(te,xe)|0;var Et=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(Et>>>26)|0,Et&=67108863,R=Math.imul(Fe,Se),C=Math.imul(Fe,je),C=C+Math.imul(Ue,Se)|0,S=Math.imul(Ue,je),R=R+Math.imul(ie,st)|0,C=C+Math.imul(ie,St)|0,C=C+Math.imul(fe,st)|0,S=S+Math.imul(fe,St)|0,R=R+Math.imul(K,bt)|0,C=C+Math.imul(K,wt)|0,C=C+Math.imul(Te,bt)|0,S=S+Math.imul(Te,wt)|0,R=R+Math.imul(Z,gt)|0,C=C+Math.imul(Z,xt)|0,C=C+Math.imul(de,gt)|0,S=S+Math.imul(de,xt)|0,R=R+Math.imul(se,kt)|0,C=C+Math.imul(se,er)|0,C=C+Math.imul(ee,kt)|0,S=S+Math.imul(ee,er)|0,R=R+Math.imul(ve,Ct)|0,C=C+Math.imul(ve,Kt)|0,C=C+Math.imul(Ce,Ct)|0,S=S+Math.imul(Ce,Kt)|0,R=R+Math.imul(ne,Nt)|0,C=C+Math.imul(ne,le)|0,C=C+Math.imul(Q,Nt)|0,S=S+Math.imul(Q,le)|0,R=R+Math.imul(he,pe)|0,C=C+Math.imul(he,xe)|0,C=C+Math.imul(Ne,pe)|0,S=S+Math.imul(Ne,xe)|0,R=R+Math.imul(V,_e)|0,C=C+Math.imul(V,We)|0,C=C+Math.imul(te,_e)|0,S=S+Math.imul(te,We)|0;var Ot=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,R=Math.imul($e,Se),C=Math.imul($e,je),C=C+Math.imul(rt,Se)|0,S=Math.imul(rt,je),R=R+Math.imul(Fe,st)|0,C=C+Math.imul(Fe,St)|0,C=C+Math.imul(Ue,st)|0,S=S+Math.imul(Ue,St)|0,R=R+Math.imul(ie,bt)|0,C=C+Math.imul(ie,wt)|0,C=C+Math.imul(fe,bt)|0,S=S+Math.imul(fe,wt)|0,R=R+Math.imul(K,gt)|0,C=C+Math.imul(K,xt)|0,C=C+Math.imul(Te,gt)|0,S=S+Math.imul(Te,xt)|0,R=R+Math.imul(Z,kt)|0,C=C+Math.imul(Z,er)|0,C=C+Math.imul(de,kt)|0,S=S+Math.imul(de,er)|0,R=R+Math.imul(se,Ct)|0,C=C+Math.imul(se,Kt)|0,C=C+Math.imul(ee,Ct)|0,S=S+Math.imul(ee,Kt)|0,R=R+Math.imul(ve,Nt)|0,C=C+Math.imul(ve,le)|0,C=C+Math.imul(Ce,Nt)|0,S=S+Math.imul(Ce,le)|0,R=R+Math.imul(ne,pe)|0,C=C+Math.imul(ne,xe)|0,C=C+Math.imul(Q,pe)|0,S=S+Math.imul(Q,xe)|0,R=R+Math.imul(he,_e)|0,C=C+Math.imul(he,We)|0,C=C+Math.imul(Ne,_e)|0,S=S+Math.imul(Ne,We)|0,R=R+Math.imul(V,Le)|0,C=C+Math.imul(V,Ve)|0,C=C+Math.imul(te,Le)|0,S=S+Math.imul(te,Ve)|0;var sr=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(sr>>>26)|0,sr&=67108863,R=Math.imul($e,st),C=Math.imul($e,St),C=C+Math.imul(rt,st)|0,S=Math.imul(rt,St),R=R+Math.imul(Fe,bt)|0,C=C+Math.imul(Fe,wt)|0,C=C+Math.imul(Ue,bt)|0,S=S+Math.imul(Ue,wt)|0,R=R+Math.imul(ie,gt)|0,C=C+Math.imul(ie,xt)|0,C=C+Math.imul(fe,gt)|0,S=S+Math.imul(fe,xt)|0,R=R+Math.imul(K,kt)|0,C=C+Math.imul(K,er)|0,C=C+Math.imul(Te,kt)|0,S=S+Math.imul(Te,er)|0,R=R+Math.imul(Z,Ct)|0,C=C+Math.imul(Z,Kt)|0,C=C+Math.imul(de,Ct)|0,S=S+Math.imul(de,Kt)|0,R=R+Math.imul(se,Nt)|0,C=C+Math.imul(se,le)|0,C=C+Math.imul(ee,Nt)|0,S=S+Math.imul(ee,le)|0,R=R+Math.imul(ve,pe)|0,C=C+Math.imul(ve,xe)|0,C=C+Math.imul(Ce,pe)|0,S=S+Math.imul(Ce,xe)|0,R=R+Math.imul(ne,_e)|0,C=C+Math.imul(ne,We)|0,C=C+Math.imul(Q,_e)|0,S=S+Math.imul(Q,We)|0,R=R+Math.imul(he,Le)|0,C=C+Math.imul(he,Ve)|0,C=C+Math.imul(Ne,Le)|0,S=S+Math.imul(Ne,Ve)|0;var Wr=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,R=Math.imul($e,bt),C=Math.imul($e,wt),C=C+Math.imul(rt,bt)|0,S=Math.imul(rt,wt),R=R+Math.imul(Fe,gt)|0,C=C+Math.imul(Fe,xt)|0,C=C+Math.imul(Ue,gt)|0,S=S+Math.imul(Ue,xt)|0,R=R+Math.imul(ie,kt)|0,C=C+Math.imul(ie,er)|0,C=C+Math.imul(fe,kt)|0,S=S+Math.imul(fe,er)|0,R=R+Math.imul(K,Ct)|0,C=C+Math.imul(K,Kt)|0,C=C+Math.imul(Te,Ct)|0,S=S+Math.imul(Te,Kt)|0,R=R+Math.imul(Z,Nt)|0,C=C+Math.imul(Z,le)|0,C=C+Math.imul(de,Nt)|0,S=S+Math.imul(de,le)|0,R=R+Math.imul(se,pe)|0,C=C+Math.imul(se,xe)|0,C=C+Math.imul(ee,pe)|0,S=S+Math.imul(ee,xe)|0,R=R+Math.imul(ve,_e)|0,C=C+Math.imul(ve,We)|0,C=C+Math.imul(Ce,_e)|0,S=S+Math.imul(Ce,We)|0,R=R+Math.imul(ne,Le)|0,C=C+Math.imul(ne,Ve)|0,C=C+Math.imul(Q,Le)|0,S=S+Math.imul(Q,Ve)|0;var Rr=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,R=Math.imul($e,gt),C=Math.imul($e,xt),C=C+Math.imul(rt,gt)|0,S=Math.imul(rt,xt),R=R+Math.imul(Fe,kt)|0,C=C+Math.imul(Fe,er)|0,C=C+Math.imul(Ue,kt)|0,S=S+Math.imul(Ue,er)|0,R=R+Math.imul(ie,Ct)|0,C=C+Math.imul(ie,Kt)|0,C=C+Math.imul(fe,Ct)|0,S=S+Math.imul(fe,Kt)|0,R=R+Math.imul(K,Nt)|0,C=C+Math.imul(K,le)|0,C=C+Math.imul(Te,Nt)|0,S=S+Math.imul(Te,le)|0,R=R+Math.imul(Z,pe)|0,C=C+Math.imul(Z,xe)|0,C=C+Math.imul(de,pe)|0,S=S+Math.imul(de,xe)|0,R=R+Math.imul(se,_e)|0,C=C+Math.imul(se,We)|0,C=C+Math.imul(ee,_e)|0,S=S+Math.imul(ee,We)|0,R=R+Math.imul(ve,Le)|0,C=C+Math.imul(ve,Ve)|0,C=C+Math.imul(Ce,Le)|0,S=S+Math.imul(Ce,Ve)|0;var br=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(br>>>26)|0,br&=67108863,R=Math.imul($e,kt),C=Math.imul($e,er),C=C+Math.imul(rt,kt)|0,S=Math.imul(rt,er),R=R+Math.imul(Fe,Ct)|0,C=C+Math.imul(Fe,Kt)|0,C=C+Math.imul(Ue,Ct)|0,S=S+Math.imul(Ue,Kt)|0,R=R+Math.imul(ie,Nt)|0,C=C+Math.imul(ie,le)|0,C=C+Math.imul(fe,Nt)|0,S=S+Math.imul(fe,le)|0,R=R+Math.imul(K,pe)|0,C=C+Math.imul(K,xe)|0,C=C+Math.imul(Te,pe)|0,S=S+Math.imul(Te,xe)|0,R=R+Math.imul(Z,_e)|0,C=C+Math.imul(Z,We)|0,C=C+Math.imul(de,_e)|0,S=S+Math.imul(de,We)|0,R=R+Math.imul(se,Le)|0,C=C+Math.imul(se,Ve)|0,C=C+Math.imul(ee,Le)|0,S=S+Math.imul(ee,Ve)|0;var Vr=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,R=Math.imul($e,Ct),C=Math.imul($e,Kt),C=C+Math.imul(rt,Ct)|0,S=Math.imul(rt,Kt),R=R+Math.imul(Fe,Nt)|0,C=C+Math.imul(Fe,le)|0,C=C+Math.imul(Ue,Nt)|0,S=S+Math.imul(Ue,le)|0,R=R+Math.imul(ie,pe)|0,C=C+Math.imul(ie,xe)|0,C=C+Math.imul(fe,pe)|0,S=S+Math.imul(fe,xe)|0,R=R+Math.imul(K,_e)|0,C=C+Math.imul(K,We)|0,C=C+Math.imul(Te,_e)|0,S=S+Math.imul(Te,We)|0,R=R+Math.imul(Z,Le)|0,C=C+Math.imul(Z,Ve)|0,C=C+Math.imul(de,Le)|0,S=S+Math.imul(de,Ve)|0;var yn=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(yn>>>26)|0,yn&=67108863,R=Math.imul($e,Nt),C=Math.imul($e,le),C=C+Math.imul(rt,Nt)|0,S=Math.imul(rt,le),R=R+Math.imul(Fe,pe)|0,C=C+Math.imul(Fe,xe)|0,C=C+Math.imul(Ue,pe)|0,S=S+Math.imul(Ue,xe)|0,R=R+Math.imul(ie,_e)|0,C=C+Math.imul(ie,We)|0,C=C+Math.imul(fe,_e)|0,S=S+Math.imul(fe,We)|0,R=R+Math.imul(K,Le)|0,C=C+Math.imul(K,Ve)|0,C=C+Math.imul(Te,Le)|0,S=S+Math.imul(Te,Ve)|0;var ar=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(ar>>>26)|0,ar&=67108863,R=Math.imul($e,pe),C=Math.imul($e,xe),C=C+Math.imul(rt,pe)|0,S=Math.imul(rt,xe),R=R+Math.imul(Fe,_e)|0,C=C+Math.imul(Fe,We)|0,C=C+Math.imul(Ue,_e)|0,S=S+Math.imul(Ue,We)|0,R=R+Math.imul(ie,Le)|0,C=C+Math.imul(ie,Ve)|0,C=C+Math.imul(fe,Le)|0,S=S+Math.imul(fe,Ve)|0;var Vn=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,R=Math.imul($e,_e),C=Math.imul($e,We),C=C+Math.imul(rt,_e)|0,S=Math.imul(rt,We),R=R+Math.imul(Fe,Le)|0,C=C+Math.imul(Fe,Ve)|0,C=C+Math.imul(Ue,Le)|0,S=S+Math.imul(Ue,Ve)|0;var Gn=(P+R|0)+((C&8191)<<13)|0;P=(S+(C>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,R=Math.imul($e,Le),C=Math.imul($e,Ve),C=C+Math.imul(rt,Le)|0,S=Math.imul(rt,Ve);var Kn=(P+R|0)+((C&8191)<<13)|0;return P=(S+(C>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,L[0]=He,L[1]=tt,L[2]=me,L[3]=Me,L[4]=Re,L[5]=Qe,L[6]=lt,L[7]=Et,L[8]=Ot,L[9]=sr,L[10]=Wr,L[11]=Rr,L[12]=br,L[13]=Vr,L[14]=yn,L[15]=ar,L[16]=Vn,L[17]=Gn,L[18]=Kn,P!==0&&(L[19]=P,E.length++),E};Math.imul||(w=g);function y(H,I,M){M.negative=I.negative^H.negative,M.length=H.length+I.length;for(var E=0,A=0,B=0;B<M.length-1;B++){var L=A;A=0;for(var P=E&67108863,R=Math.min(B,I.length-1),C=Math.max(0,B-H.length+1);C<=R;C++){var S=B-C,D=H.words[S]|0,V=I.words[C]|0,te=D*V,oe=te&67108863;L=L+(te/67108864|0)|0,oe=oe+P|0,P=oe&67108863,L=L+(oe>>>26)|0,A+=L>>>26,L&=67108863}M.words[B]=P,E=L,L=A}return E!==0?M.words[B]=E:M.length--,M.strip()}function _(H,I,M){var E=new k;return E.mulp(H,I,M)}a.prototype.mulTo=function(I,M){var E,A=this.length+I.length;return this.length===10&&I.length===10?E=w(this,I,M):A<63?E=g(this,I,M):A<1024?E=y(this,I,M):E=_(this,I,M),E};function k(H,I){this.x=H,this.y=I}k.prototype.makeRBT=function(I){for(var M=new Array(I),E=a.prototype._countBits(I)-1,A=0;A<I;A++)M[A]=this.revBin(A,E,I);return M},k.prototype.revBin=function(I,M,E){if(I===0||I===E-1)return I;for(var A=0,B=0;B<M;B++)A|=(I&1)<<M-B-1,I>>=1;return A},k.prototype.permute=function(I,M,E,A,B,L){for(var P=0;P<L;P++)A[P]=M[I[P]],B[P]=E[I[P]]},k.prototype.transform=function(I,M,E,A,B,L){this.permute(L,I,M,E,A,B);for(var P=1;P<B;P<<=1)for(var R=P<<1,C=Math.cos(2*Math.PI/R),S=Math.sin(2*Math.PI/R),D=0;D<B;D+=R)for(var V=C,te=S,oe=0;oe<P;oe++){var he=E[D+oe],Ne=A[D+oe],q=E[D+oe+P],ne=A[D+oe+P],Q=V*q-te*ne;ne=V*ne+te*q,q=Q,E[D+oe]=he+q,A[D+oe]=Ne+ne,E[D+oe+P]=he-q,A[D+oe+P]=Ne-ne,oe!==R&&(Q=C*V-S*te,te=C*te+S*V,V=Q)}},k.prototype.guessLen13b=function(I,M){var E=Math.max(M,I)|1,A=E&1,B=0;for(E=E/2|0;E;E=E>>>1)B++;return 1<<B+1+A},k.prototype.conjugate=function(I,M,E){if(!(E<=1))for(var A=0;A<E/2;A++){var B=I[A];I[A]=I[E-A-1],I[E-A-1]=B,B=M[A],M[A]=-M[E-A-1],M[E-A-1]=-B}},k.prototype.normalize13b=function(I,M){for(var E=0,A=0;A<M/2;A++){var B=Math.round(I[2*A+1]/M)*8192+Math.round(I[2*A]/M)+E;I[A]=B&67108863,B<67108864?E=0:E=B/67108864|0}return I},k.prototype.convert13b=function(I,M,E,A){for(var B=0,L=0;L<M;L++)B=B+(I[L]|0),E[2*L]=B&8191,B=B>>>13,E[2*L+1]=B&8191,B=B>>>13;for(L=2*M;L<A;++L)E[L]=0;h(B===0),h((B&-8192)===0)},k.prototype.stub=function(I){for(var M=new Array(I),E=0;E<I;E++)M[E]=0;return M},k.prototype.mulp=function(I,M,E){var A=2*this.guessLen13b(I.length,M.length),B=this.makeRBT(A),L=this.stub(A),P=new Array(A),R=new Array(A),C=new Array(A),S=new Array(A),D=new Array(A),V=new Array(A),te=E.words;te.length=A,this.convert13b(I.words,I.length,P,A),this.convert13b(M.words,M.length,S,A),this.transform(P,L,R,C,A,B),this.transform(S,L,D,V,A,B);for(var oe=0;oe<A;oe++){var he=R[oe]*D[oe]-C[oe]*V[oe];C[oe]=R[oe]*V[oe]+C[oe]*D[oe],R[oe]=he}return this.conjugate(R,C,A),this.transform(R,C,te,L,A,B),this.conjugate(te,L,A),this.normalize13b(te,A),E.negative=I.negative^M.negative,E.length=I.length+M.length,E.strip()},a.prototype.mul=function(I){var M=new a(null);return M.words=new Array(this.length+I.length),this.mulTo(I,M)},a.prototype.mulf=function(I){var M=new a(null);return M.words=new Array(this.length+I.length),_(this,I,M)},a.prototype.imul=function(I){return this.clone().mulTo(I,this)},a.prototype.imuln=function(I){h(typeof I=="number"),h(I<67108864);for(var M=0,E=0;E<this.length;E++){var A=(this.words[E]|0)*I,B=(A&67108863)+(M&67108863);M>>=26,M+=A/67108864|0,M+=B>>>26,this.words[E]=B&67108863}return M!==0&&(this.words[E]=M,this.length++),this},a.prototype.muln=function(I){return this.clone().imuln(I)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(I){var M=x(I);if(M.length===0)return new a(1);for(var E=this,A=0;A<M.length&&M[A]===0;A++,E=E.sqr());if(++A<M.length)for(var B=E.sqr();A<M.length;A++,B=B.sqr())M[A]!==0&&(E=E.mul(B));return E},a.prototype.iushln=function(I){h(typeof I=="number"&&I>=0);var M=I%26,E=(I-M)/26,A=67108863>>>26-M<<26-M,B;if(M!==0){var L=0;for(B=0;B<this.length;B++){var P=this.words[B]&A,R=(this.words[B]|0)-P<<M;this.words[B]=R|L,L=P>>>26-M}L&&(this.words[B]=L,this.length++)}if(E!==0){for(B=this.length-1;B>=0;B--)this.words[B+E]=this.words[B];for(B=0;B<E;B++)this.words[B]=0;this.length+=E}return this.strip()},a.prototype.ishln=function(I){return h(this.negative===0),this.iushln(I)},a.prototype.iushrn=function(I,M,E){h(typeof I=="number"&&I>=0);var A;M?A=(M-M%26)/26:A=0;var B=I%26,L=Math.min((I-B)/26,this.length),P=67108863^67108863>>>B<<B,R=E;if(A-=L,A=Math.max(0,A),R){for(var C=0;C<L;C++)R.words[C]=this.words[C];R.length=L}if(L!==0)if(this.length>L)for(this.length-=L,C=0;C<this.length;C++)this.words[C]=this.words[C+L];else this.words[0]=0,this.length=1;var S=0;for(C=this.length-1;C>=0&&(S!==0||C>=A);C--){var D=this.words[C]|0;this.words[C]=S<<26-B|D>>>B,S=D&P}return R&&S!==0&&(R.words[R.length++]=S),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(I,M,E){return h(this.negative===0),this.iushrn(I,M,E)},a.prototype.shln=function(I){return this.clone().ishln(I)},a.prototype.ushln=function(I){return this.clone().iushln(I)},a.prototype.shrn=function(I){return this.clone().ishrn(I)},a.prototype.ushrn=function(I){return this.clone().iushrn(I)},a.prototype.testn=function(I){h(typeof I=="number"&&I>=0);var M=I%26,E=(I-M)/26,A=1<<M;if(this.length<=E)return!1;var B=this.words[E];return!!(B&A)},a.prototype.imaskn=function(I){h(typeof I=="number"&&I>=0);var M=I%26,E=(I-M)/26;if(h(this.negative===0,"imaskn works only with positive numbers"),this.length<=E)return this;if(M!==0&&E++,this.length=Math.min(E,this.length),M!==0){var A=67108863^67108863>>>M<<M;this.words[this.length-1]&=A}return this.strip()},a.prototype.maskn=function(I){return this.clone().imaskn(I)},a.prototype.iaddn=function(I){return h(typeof I=="number"),h(I<67108864),I<0?this.isubn(-I):this.negative!==0?this.length===1&&(this.words[0]|0)<I?(this.words[0]=I-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(I),this.negative=1,this):this._iaddn(I)},a.prototype._iaddn=function(I){this.words[0]+=I;for(var M=0;M<this.length&&this.words[M]>=67108864;M++)this.words[M]-=67108864,M===this.length-1?this.words[M+1]=1:this.words[M+1]++;return this.length=Math.max(this.length,M+1),this},a.prototype.isubn=function(I){if(h(typeof I=="number"),h(I<67108864),I<0)return this.iaddn(-I);if(this.negative!==0)return this.negative=0,this.iaddn(I),this.negative=1,this;if(this.words[0]-=I,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var M=0;M<this.length&&this.words[M]<0;M++)this.words[M]+=67108864,this.words[M+1]-=1;return this.strip()},a.prototype.addn=function(I){return this.clone().iaddn(I)},a.prototype.subn=function(I){return this.clone().isubn(I)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(I,M,E){var A=I.length+E,B;this._expand(A);var L,P=0;for(B=0;B<I.length;B++){L=(this.words[B+E]|0)+P;var R=(I.words[B]|0)*M;L-=R&67108863,P=(L>>26)-(R/67108864|0),this.words[B+E]=L&67108863}for(;B<this.length-E;B++)L=(this.words[B+E]|0)+P,P=L>>26,this.words[B+E]=L&67108863;if(P===0)return this.strip();for(h(P===-1),P=0,B=0;B<this.length;B++)L=-(this.words[B]|0)+P,P=L>>26,this.words[B]=L&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(I,M){var E=this.length-I.length,A=this.clone(),B=I,L=B.words[B.length-1]|0,P=this._countBits(L);E=26-P,E!==0&&(B=B.ushln(E),A.iushln(E),L=B.words[B.length-1]|0);var R=A.length-B.length,C;if(M!=="mod"){C=new a(null),C.length=R+1,C.words=new Array(C.length);for(var S=0;S<C.length;S++)C.words[S]=0}var D=A.clone()._ishlnsubmul(B,1,R);D.negative===0&&(A=D,C&&(C.words[R]=1));for(var V=R-1;V>=0;V--){var te=(A.words[B.length+V]|0)*67108864+(A.words[B.length+V-1]|0);for(te=Math.min(te/L|0,67108863),A._ishlnsubmul(B,te,V);A.negative!==0;)te--,A.negative=0,A._ishlnsubmul(B,1,V),A.isZero()||(A.negative^=1);C&&(C.words[V]=te)}return C&&C.strip(),A.strip(),M!=="div"&&E!==0&&A.iushrn(E),{div:C||null,mod:A}},a.prototype.divmod=function(I,M,E){if(h(!I.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var A,B,L;return this.negative!==0&&I.negative===0?(L=this.neg().divmod(I,M),M!=="mod"&&(A=L.div.neg()),M!=="div"&&(B=L.mod.neg(),E&&B.negative!==0&&B.iadd(I)),{div:A,mod:B}):this.negative===0&&I.negative!==0?(L=this.divmod(I.neg(),M),M!=="mod"&&(A=L.div.neg()),{div:A,mod:L.mod}):this.negative&I.negative?(L=this.neg().divmod(I.neg(),M),M!=="div"&&(B=L.mod.neg(),E&&B.negative!==0&&B.isub(I)),{div:L.div,mod:B}):I.length>this.length||this.cmp(I)<0?{div:new a(0),mod:this}:I.length===1?M==="div"?{div:this.divn(I.words[0]),mod:null}:M==="mod"?{div:null,mod:new a(this.modn(I.words[0]))}:{div:this.divn(I.words[0]),mod:new a(this.modn(I.words[0]))}:this._wordDiv(I,M)},a.prototype.div=function(I){return this.divmod(I,"div",!1).div},a.prototype.mod=function(I){return this.divmod(I,"mod",!1).mod},a.prototype.umod=function(I){return this.divmod(I,"mod",!0).mod},a.prototype.divRound=function(I){var M=this.divmod(I);if(M.mod.isZero())return M.div;var E=M.div.negative!==0?M.mod.isub(I):M.mod,A=I.ushrn(1),B=I.andln(1),L=E.cmp(A);return L<0||B===1&&L===0?M.div:M.div.negative!==0?M.div.isubn(1):M.div.iaddn(1)},a.prototype.modn=function(I){h(I<=67108863);for(var M=(1<<26)%I,E=0,A=this.length-1;A>=0;A--)E=(M*E+(this.words[A]|0))%I;return E},a.prototype.idivn=function(I){h(I<=67108863);for(var M=0,E=this.length-1;E>=0;E--){var A=(this.words[E]|0)+M*67108864;this.words[E]=A/I|0,M=A%I}return this.strip()},a.prototype.divn=function(I){return this.clone().idivn(I)},a.prototype.egcd=function(I){h(I.negative===0),h(!I.isZero());var M=this,E=I.clone();M.negative!==0?M=M.umod(I):M=M.clone();for(var A=new a(1),B=new a(0),L=new a(0),P=new a(1),R=0;M.isEven()&&E.isEven();)M.iushrn(1),E.iushrn(1),++R;for(var C=E.clone(),S=M.clone();!M.isZero();){for(var D=0,V=1;!(M.words[0]&V)&&D<26;++D,V<<=1);if(D>0)for(M.iushrn(D);D-- >0;)(A.isOdd()||B.isOdd())&&(A.iadd(C),B.isub(S)),A.iushrn(1),B.iushrn(1);for(var te=0,oe=1;!(E.words[0]&oe)&&te<26;++te,oe<<=1);if(te>0)for(E.iushrn(te);te-- >0;)(L.isOdd()||P.isOdd())&&(L.iadd(C),P.isub(S)),L.iushrn(1),P.iushrn(1);M.cmp(E)>=0?(M.isub(E),A.isub(L),B.isub(P)):(E.isub(M),L.isub(A),P.isub(B))}return{a:L,b:P,gcd:E.iushln(R)}},a.prototype._invmp=function(I){h(I.negative===0),h(!I.isZero());var M=this,E=I.clone();M.negative!==0?M=M.umod(I):M=M.clone();for(var A=new a(1),B=new a(0),L=E.clone();M.cmpn(1)>0&&E.cmpn(1)>0;){for(var P=0,R=1;!(M.words[0]&R)&&P<26;++P,R<<=1);if(P>0)for(M.iushrn(P);P-- >0;)A.isOdd()&&A.iadd(L),A.iushrn(1);for(var C=0,S=1;!(E.words[0]&S)&&C<26;++C,S<<=1);if(C>0)for(E.iushrn(C);C-- >0;)B.isOdd()&&B.iadd(L),B.iushrn(1);M.cmp(E)>=0?(M.isub(E),A.isub(B)):(E.isub(M),B.isub(A))}var D;return M.cmpn(1)===0?D=A:D=B,D.cmpn(0)<0&&D.iadd(I),D},a.prototype.gcd=function(I){if(this.isZero())return I.abs();if(I.isZero())return this.abs();var M=this.clone(),E=I.clone();M.negative=0,E.negative=0;for(var A=0;M.isEven()&&E.isEven();A++)M.iushrn(1),E.iushrn(1);do{for(;M.isEven();)M.iushrn(1);for(;E.isEven();)E.iushrn(1);var B=M.cmp(E);if(B<0){var L=M;M=E,E=L}else if(B===0||E.cmpn(1)===0)break;M.isub(E)}while(!0);return E.iushln(A)},a.prototype.invm=function(I){return this.egcd(I).a.umod(I)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(I){return this.words[0]&I},a.prototype.bincn=function(I){h(typeof I=="number");var M=I%26,E=(I-M)/26,A=1<<M;if(this.length<=E)return this._expand(E+1),this.words[E]|=A,this;for(var B=A,L=E;B!==0&&L<this.length;L++){var P=this.words[L]|0;P+=B,B=P>>>26,P&=67108863,this.words[L]=P}return B!==0&&(this.words[L]=B,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(I){var M=I<0;if(this.negative!==0&&!M)return-1;if(this.negative===0&&M)return 1;this.strip();var E;if(this.length>1)E=1;else{M&&(I=-I),h(I<=67108863,"Number is too big");var A=this.words[0]|0;E=A===I?0:A<I?-1:1}return this.negative!==0?-E|0:E},a.prototype.cmp=function(I){if(this.negative!==0&&I.negative===0)return-1;if(this.negative===0&&I.negative!==0)return 1;var M=this.ucmp(I);return this.negative!==0?-M|0:M},a.prototype.ucmp=function(I){if(this.length>I.length)return 1;if(this.length<I.length)return-1;for(var M=0,E=this.length-1;E>=0;E--){var A=this.words[E]|0,B=I.words[E]|0;if(A!==B){A<B?M=-1:A>B&&(M=1);break}}return M},a.prototype.gtn=function(I){return this.cmpn(I)===1},a.prototype.gt=function(I){return this.cmp(I)===1},a.prototype.gten=function(I){return this.cmpn(I)>=0},a.prototype.gte=function(I){return this.cmp(I)>=0},a.prototype.ltn=function(I){return this.cmpn(I)===-1},a.prototype.lt=function(I){return this.cmp(I)===-1},a.prototype.lten=function(I){return this.cmpn(I)<=0},a.prototype.lte=function(I){return this.cmp(I)<=0},a.prototype.eqn=function(I){return this.cmpn(I)===0},a.prototype.eq=function(I){return this.cmp(I)===0},a.red=function(I){return new X(I)},a.prototype.toRed=function(I){return h(!this.red,"Already a number in reduction context"),h(this.negative===0,"red works only with positives"),I.convertTo(this)._forceRed(I)},a.prototype.fromRed=function(){return h(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(I){return this.red=I,this},a.prototype.forceRed=function(I){return h(!this.red,"Already a number in reduction context"),this._forceRed(I)},a.prototype.redAdd=function(I){return h(this.red,"redAdd works only with red numbers"),this.red.add(this,I)},a.prototype.redIAdd=function(I){return h(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,I)},a.prototype.redSub=function(I){return h(this.red,"redSub works only with red numbers"),this.red.sub(this,I)},a.prototype.redISub=function(I){return h(this.red,"redISub works only with red numbers"),this.red.isub(this,I)},a.prototype.redShl=function(I){return h(this.red,"redShl works only with red numbers"),this.red.shl(this,I)},a.prototype.redMul=function(I){return h(this.red,"redMul works only with red numbers"),this.red._verify2(this,I),this.red.mul(this,I)},a.prototype.redIMul=function(I){return h(this.red,"redMul works only with red numbers"),this.red._verify2(this,I),this.red.imul(this,I)},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(I){return h(this.red&&!I.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,I)};var F={k256:null,p224:null,p192:null,p25519:null};function O(H,I){this.name=H,this.p=new a(I,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}O.prototype._tmp=function(){var I=new a(null);return I.words=new Array(Math.ceil(this.n/13)),I},O.prototype.ireduce=function(I){var M=I,E;do this.split(M,this.tmp),M=this.imulK(M),M=M.iadd(this.tmp),E=M.bitLength();while(E>this.n);var A=E<this.n?-1:M.ucmp(this.p);return A===0?(M.words[0]=0,M.length=1):A>0?M.isub(this.p):M.strip!==void 0?M.strip():M._strip(),M},O.prototype.split=function(I,M){I.iushrn(this.n,0,M)},O.prototype.imulK=function(I){return I.imul(this.k)};function N(){O.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(N,O),N.prototype.split=function(I,M){for(var E=4194303,A=Math.min(I.length,9),B=0;B<A;B++)M.words[B]=I.words[B];if(M.length=A,I.length<=9){I.words[0]=0,I.length=1;return}var L=I.words[9];for(M.words[M.length++]=L&E,B=10;B<I.length;B++){var P=I.words[B]|0;I.words[B-10]=(P&E)<<4|L>>>22,L=P}L>>>=22,I.words[B-10]=L,L===0&&I.length>10?I.length-=10:I.length-=9},N.prototype.imulK=function(I){I.words[I.length]=0,I.words[I.length+1]=0,I.length+=2;for(var M=0,E=0;E<I.length;E++){var A=I.words[E]|0;M+=A*977,I.words[E]=M&67108863,M=A*64+(M/67108864|0)}return I.words[I.length-1]===0&&(I.length--,I.words[I.length-1]===0&&I.length--),I};function U(){O.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(U,O);function z(){O.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(z,O);function W(){O.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(W,O),W.prototype.imulK=function(I){for(var M=0,E=0;E<I.length;E++){var A=(I.words[E]|0)*19+M,B=A&67108863;A>>>=26,I.words[E]=B,M=A}return M!==0&&(I.words[I.length++]=M),I},a._prime=function(I){if(F[I])return F[I];var M;if(I==="k256")M=new N;else if(I==="p224")M=new U;else if(I==="p192")M=new z;else if(I==="p25519")M=new W;else throw new Error("Unknown prime "+I);return F[I]=M,M};function X(H){if(typeof H=="string"){var I=a._prime(H);this.m=I.p,this.prime=I}else h(H.gtn(1),"modulus must be greater than 1"),this.m=H,this.prime=null}X.prototype._verify1=function(I){h(I.negative===0,"red works only with positives"),h(I.red,"red works only with red numbers")},X.prototype._verify2=function(I,M){h((I.negative|M.negative)===0,"red works only with positives"),h(I.red&&I.red===M.red,"red works only with red numbers")},X.prototype.imod=function(I){return this.prime?this.prime.ireduce(I)._forceRed(this):I.umod(this.m)._forceRed(this)},X.prototype.neg=function(I){return I.isZero()?I.clone():this.m.sub(I)._forceRed(this)},X.prototype.add=function(I,M){this._verify2(I,M);var E=I.add(M);return E.cmp(this.m)>=0&&E.isub(this.m),E._forceRed(this)},X.prototype.iadd=function(I,M){this._verify2(I,M);var E=I.iadd(M);return E.cmp(this.m)>=0&&E.isub(this.m),E},X.prototype.sub=function(I,M){this._verify2(I,M);var E=I.sub(M);return E.cmpn(0)<0&&E.iadd(this.m),E._forceRed(this)},X.prototype.isub=function(I,M){this._verify2(I,M);var E=I.isub(M);return E.cmpn(0)<0&&E.iadd(this.m),E},X.prototype.shl=function(I,M){return this._verify1(I),this.imod(I.ushln(M))},X.prototype.imul=function(I,M){return this._verify2(I,M),this.imod(I.imul(M))},X.prototype.mul=function(I,M){return this._verify2(I,M),this.imod(I.mul(M))},X.prototype.isqr=function(I){return this.imul(I,I.clone())},X.prototype.sqr=function(I){return this.mul(I,I)},X.prototype.sqrt=function(I){if(I.isZero())return I.clone();var M=this.m.andln(3);if(h(M%2===1),M===3){var E=this.m.add(new a(1)).iushrn(2);return this.pow(I,E)}for(var A=this.m.subn(1),B=0;!A.isZero()&&A.andln(1)===0;)B++,A.iushrn(1);h(!A.isZero());var L=new a(1).toRed(this),P=L.redNeg(),R=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new a(2*C*C).toRed(this);this.pow(C,R).cmp(P)!==0;)C.redIAdd(P);for(var S=this.pow(C,A),D=this.pow(I,A.addn(1).iushrn(1)),V=this.pow(I,A),te=B;V.cmp(L)!==0;){for(var oe=V,he=0;oe.cmp(L)!==0;he++)oe=oe.redSqr();h(he<te);var Ne=this.pow(S,new a(1).iushln(te-he-1));D=D.redMul(Ne),S=Ne.redSqr(),V=V.redMul(S),te=he}return D},X.prototype.invm=function(I){var M=I._invmp(this.m);return M.negative!==0?(M.negative=0,this.imod(M).redNeg()):this.imod(M)},X.prototype.pow=function(I,M){if(M.isZero())return new a(1).toRed(this);if(M.cmpn(1)===0)return I.clone();var E=4,A=new Array(1<<E);A[0]=new a(1).toRed(this),A[1]=I;for(var B=2;B<A.length;B++)A[B]=this.mul(A[B-1],I);var L=A[0],P=0,R=0,C=M.bitLength()%26;for(C===0&&(C=26),B=M.length-1;B>=0;B--){for(var S=M.words[B],D=C-1;D>=0;D--){var V=S>>D&1;if(L!==A[0]&&(L=this.sqr(L)),V===0&&P===0){R=0;continue}P<<=1,P|=V,R++,!(R!==E&&(B!==0||D!==0))&&(L=this.mul(L,A[P]),R=0,P=0)}C=26}return L},X.prototype.convertTo=function(I){var M=I.umod(this.m);return M===I?M.clone():M},X.prototype.convertFrom=function(I){var M=I.clone();return M.red=null,M},a.mont=function(I){return new J(I)};function J(H){X.call(this,H),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(J,X),J.prototype.convertTo=function(I){return this.imod(I.ushln(this.shift))},J.prototype.convertFrom=function(I){var M=this.imod(I.mul(this.rinv));return M.red=null,M},J.prototype.imul=function(I,M){if(I.isZero()||M.isZero())return I.words[0]=0,I.length=1,I;var E=I.imul(M),A=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=E.isub(A).iushrn(this.shift),L=B;return B.cmp(this.m)>=0?L=B.isub(this.m):B.cmpn(0)<0&&(L=B.iadd(this.m)),L._forceRed(this)},J.prototype.mul=function(I,M){if(I.isZero()||M.isZero())return new a(0)._forceRed(this);var E=I.mul(M),A=E.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=E.isub(A).iushrn(this.shift),L=B;return B.cmp(this.m)>=0?L=B.isub(this.m):B.cmpn(0)<0&&(L=B.iadd(this.m)),L._forceRed(this)},J.prototype.invm=function(I){var M=this.imod(I._invmp(this.m).mul(this.r2));return M._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 w=g.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=g.indexOf("=");y===-1&&(y=w);var _=y===w?0:4-y%4;return[y,_]}function u(g){var w=l(g),y=w[0],_=w[1];return(y+_)*3/4-_}function p(g,w,y){return(w+y)*3/4-y}function m(g){var w,y=l(g),_=y[0],k=y[1],F=new h(p(g,_,k)),O=0,N=k>0?_-4:_,U;for(U=0;U<N;U+=4)w=o[g.charCodeAt(U)]<<18|o[g.charCodeAt(U+1)]<<12|o[g.charCodeAt(U+2)]<<6|o[g.charCodeAt(U+3)],F[O++]=w>>16&255,F[O++]=w>>8&255,F[O++]=w&255;return k===2&&(w=o[g.charCodeAt(U)]<<2|o[g.charCodeAt(U+1)]>>4,F[O++]=w&255),k===1&&(w=o[g.charCodeAt(U)]<<10|o[g.charCodeAt(U+1)]<<4|o[g.charCodeAt(U+2)]>>2,F[O++]=w>>8&255,F[O++]=w&255),F}function d(g){return s[g>>18&63]+s[g>>12&63]+s[g>>6&63]+s[g&63]}function v(g,w,y){for(var _,k=[],F=w;F<y;F+=3)_=(g[F]<<16&16711680)+(g[F+1]<<8&65280)+(g[F+2]&255),k.push(d(_));return k.join("")}function x(g){for(var w,y=g.length,_=y%3,k=[],F=16383,O=0,N=y-_;O<N;O+=F)k.push(v(g,O,O+F>N?N:O+F));return _===1?(w=g[y-1],k.push(s[w>>2]+s[w<<4&63]+"==")):_===2&&(w=(g[y-2]<<8)+g[y-1],k.push(s[w>>10]+s[w>>4&63]+s[w<<2&63]+"=")),k.join("")}},{}],186:[function(e,n,i){(function(s,o){function h(M,E){if(!M)throw new Error(E||"Assertion failed")}function c(M,E){M.super_=E;var A=function(){};A.prototype=E.prototype,M.prototype=new A,M.prototype.constructor=M}function a(M,E,A){if(a.isBN(M))return M;this.negative=0,this.words=null,this.length=0,this.red=null,M!==null&&((E==="le"||E==="be")&&(A=E,E=10),this._init(M||0,E||10,A||"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(E){return E instanceof a?!0:E!==null&&typeof E=="object"&&E.constructor.wordSize===a.wordSize&&Array.isArray(E.words)},a.max=function(E,A){return E.cmp(A)>0?E:A},a.min=function(E,A){return E.cmp(A)<0?E:A},a.prototype._init=function(E,A,B){if(typeof E=="number")return this._initNumber(E,A,B);if(typeof E=="object")return this._initArray(E,A,B);A==="hex"&&(A=16),h(A===(A|0)&&A>=2&&A<=36),E=E.toString().replace(/\s+/g,"");var L=0;E[0]==="-"&&(L++,this.negative=1),L<E.length&&(A===16?this._parseHex(E,L,B):(this._parseBase(E,A,L),B==="le"&&this._initArray(this.toArray(),A,B)))},a.prototype._initNumber=function(E,A,B){E<0&&(this.negative=1,E=-E),E<67108864?(this.words=[E&67108863],this.length=1):E<4503599627370496?(this.words=[E&67108863,E/67108864&67108863],this.length=2):(h(E<9007199254740992),this.words=[E&67108863,E/67108864&67108863,1],this.length=3),B==="le"&&this._initArray(this.toArray(),A,B)},a.prototype._initArray=function(E,A,B){if(h(typeof E.length=="number"),E.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(E.length/3),this.words=new Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var P,R,C=0;if(B==="be")for(L=E.length-1,P=0;L>=0;L-=3)R=E[L]|E[L-1]<<8|E[L-2]<<16,this.words[P]|=R<<C&67108863,this.words[P+1]=R>>>26-C&67108863,C+=24,C>=26&&(C-=26,P++);else if(B==="le")for(L=0,P=0;L<E.length;L+=3)R=E[L]|E[L+1]<<8|E[L+2]<<16,this.words[P]|=R<<C&67108863,this.words[P+1]=R>>>26-C&67108863,C+=24,C>=26&&(C-=26,P++);return this._strip()};function l(M,E){var A=M.charCodeAt(E);if(A>=48&&A<=57)return A-48;if(A>=65&&A<=70)return A-55;if(A>=97&&A<=102)return A-87;h(!1,"Invalid character in "+M)}function u(M,E,A){var B=l(M,A);return A-1>=E&&(B|=l(M,A-1)<<4),B}a.prototype._parseHex=function(E,A,B){this.length=Math.ceil((E.length-A)/6),this.words=new Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var P=0,R=0,C;if(B==="be")for(L=E.length-1;L>=A;L-=2)C=u(E,A,L)<<P,this.words[R]|=C&67108863,P>=18?(P-=18,R+=1,this.words[R]|=C>>>26):P+=8;else{var S=E.length-A;for(L=S%2===0?A+1:A;L<E.length;L+=2)C=u(E,A,L)<<P,this.words[R]|=C&67108863,P>=18?(P-=18,R+=1,this.words[R]|=C>>>26):P+=8}this._strip()};function p(M,E,A,B){for(var L=0,P=0,R=Math.min(M.length,A),C=E;C<R;C++){var S=M.charCodeAt(C)-48;L*=B,S>=49?P=S-49+10:S>=17?P=S-17+10:P=S,h(S>=0&&P<B,"Invalid character"),L+=P}return L}a.prototype._parseBase=function(E,A,B){this.words=[0],this.length=1;for(var L=0,P=1;P<=67108863;P*=A)L++;L--,P=P/A|0;for(var R=E.length-B,C=R%L,S=Math.min(R,R-C)+B,D=0,V=B;V<S;V+=L)D=p(E,V,V+L,A),this.imuln(P),this.words[0]+D<67108864?this.words[0]+=D:this._iaddn(D);if(C!==0){var te=1;for(D=p(E,V,E.length,A),V=0;V<C;V++)te*=A;this.imuln(te),this.words[0]+D<67108864?this.words[0]+=D:this._iaddn(D)}this._strip()},a.prototype.copy=function(E){E.words=new Array(this.length);for(var A=0;A<this.length;A++)E.words[A]=this.words[A];E.length=this.length,E.negative=this.negative,E.red=this.red};function m(M,E){M.words=E.words,M.length=E.length,M.negative=E.negative,M.red=E.red}if(a.prototype._move=function(E){m(E,this)},a.prototype.clone=function(){var E=new a(null);return this.copy(E),E},a.prototype._expand=function(E){for(;this.length<E;)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(E,A){E=E||10,A=A|0||1;var B;if(E===16||E==="hex"){B="";for(var L=0,P=0,R=0;R<this.length;R++){var C=this.words[R],S=((C<<L|P)&16777215).toString(16);P=C>>>24-L&16777215,L+=2,L>=26&&(L-=26,R--),P!==0||R!==this.length-1?B=v[6-S.length]+S+B:B=S+B}for(P!==0&&(B=P.toString(16)+B);B.length%A!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}if(E===(E|0)&&E>=2&&E<=36){var D=x[E],V=g[E];B="";var te=this.clone();for(te.negative=0;!te.isZero();){var oe=te.modrn(V).toString(E);te=te.idivn(V),te.isZero()?B=oe+B:B=v[D-oe.length]+oe+B}for(this.isZero()&&(B="0"+B);B.length%A!==0;)B="0"+B;return this.negative!==0&&(B="-"+B),B}h(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var E=this.words[0];return this.length===2?E+=this.words[1]*67108864:this.length===3&&this.words[2]===1?E+=4503599627370496+this.words[1]*67108864:this.length>2&&h(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-E:E},a.prototype.toJSON=function(){return this.toString(16,2)},f&&(a.prototype.toBuffer=function(E,A){return this.toArrayLike(f,E,A)}),a.prototype.toArray=function(E,A){return this.toArrayLike(Array,E,A)};var w=function(E,A){return E.allocUnsafe?E.allocUnsafe(A):new E(A)};a.prototype.toArrayLike=function(E,A,B){this._strip();var L=this.byteLength(),P=B||Math.max(1,L);h(L<=P,"byte array longer than desired length"),h(P>0,"Requested array length <= 0");var R=w(E,P),C=A==="le"?"LE":"BE";return this["_toArrayLike"+C](R,L),R},a.prototype._toArrayLikeLE=function(E,A){for(var B=0,L=0,P=0,R=0;P<this.length;P++){var C=this.words[P]<<R|L;E[B++]=C&255,B<E.length&&(E[B++]=C>>8&255),B<E.length&&(E[B++]=C>>16&255),R===6?(B<E.length&&(E[B++]=C>>24&255),L=0,R=0):(L=C>>>24,R+=2)}if(B<E.length)for(E[B++]=L;B<E.length;)E[B++]=0},a.prototype._toArrayLikeBE=function(E,A){for(var B=E.length-1,L=0,P=0,R=0;P<this.length;P++){var C=this.words[P]<<R|L;E[B--]=C&255,B>=0&&(E[B--]=C>>8&255),B>=0&&(E[B--]=C>>16&255),R===6?(B>=0&&(E[B--]=C>>24&255),L=0,R=0):(L=C>>>24,R+=2)}if(B>=0)for(E[B--]=L;B>=0;)E[B--]=0},Math.clz32?a.prototype._countBits=function(E){return 32-Math.clz32(E)}:a.prototype._countBits=function(E){var A=E,B=0;return A>=4096&&(B+=13,A>>>=13),A>=64&&(B+=7,A>>>=7),A>=8&&(B+=4,A>>>=4),A>=2&&(B+=2,A>>>=2),B+A},a.prototype._zeroBits=function(E){if(E===0)return 26;var A=E,B=0;return A&8191||(B+=13,A>>>=13),A&127||(B+=7,A>>>=7),A&15||(B+=4,A>>>=4),A&3||(B+=2,A>>>=2),A&1||B++,B},a.prototype.bitLength=function(){var E=this.words[this.length-1],A=this._countBits(E);return(this.length-1)*26+A};function y(M){for(var E=new Array(M.bitLength()),A=0;A<E.length;A++){var B=A/26|0,L=A%26;E[A]=M.words[B]>>>L&1}return E}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var E=0,A=0;A<this.length;A++){var B=this._zeroBits(this.words[A]);if(E+=B,B!==26)break}return E},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(E){return this.negative!==0?this.abs().inotn(E).iaddn(1):this.clone()},a.prototype.fromTwos=function(E){return this.testn(E-1)?this.notn(E).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(E){for(;this.length<E.length;)this.words[this.length++]=0;for(var A=0;A<E.length;A++)this.words[A]=this.words[A]|E.words[A];return this._strip()},a.prototype.ior=function(E){return h((this.negative|E.negative)===0),this.iuor(E)},a.prototype.or=function(E){return this.length>E.length?this.clone().ior(E):E.clone().ior(this)},a.prototype.uor=function(E){return this.length>E.length?this.clone().iuor(E):E.clone().iuor(this)},a.prototype.iuand=function(E){var A;this.length>E.length?A=E:A=this;for(var B=0;B<A.length;B++)this.words[B]=this.words[B]&E.words[B];return this.length=A.length,this._strip()},a.prototype.iand=function(E){return h((this.negative|E.negative)===0),this.iuand(E)},a.prototype.and=function(E){return this.length>E.length?this.clone().iand(E):E.clone().iand(this)},a.prototype.uand=function(E){return this.length>E.length?this.clone().iuand(E):E.clone().iuand(this)},a.prototype.iuxor=function(E){var A,B;this.length>E.length?(A=this,B=E):(A=E,B=this);for(var L=0;L<B.length;L++)this.words[L]=A.words[L]^B.words[L];if(this!==A)for(;L<A.length;L++)this.words[L]=A.words[L];return this.length=A.length,this._strip()},a.prototype.ixor=function(E){return h((this.negative|E.negative)===0),this.iuxor(E)},a.prototype.xor=function(E){return this.length>E.length?this.clone().ixor(E):E.clone().ixor(this)},a.prototype.uxor=function(E){return this.length>E.length?this.clone().iuxor(E):E.clone().iuxor(this)},a.prototype.inotn=function(E){h(typeof E=="number"&&E>=0);var A=Math.ceil(E/26)|0,B=E%26;this._expand(A),B>0&&A--;for(var L=0;L<A;L++)this.words[L]=~this.words[L]&67108863;return B>0&&(this.words[L]=~this.words[L]&67108863>>26-B),this._strip()},a.prototype.notn=function(E){return this.clone().inotn(E)},a.prototype.setn=function(E,A){h(typeof E=="number"&&E>=0);var B=E/26|0,L=E%26;return this._expand(B+1),A?this.words[B]=this.words[B]|1<<L:this.words[B]=this.words[B]&~(1<<L),this._strip()},a.prototype.iadd=function(E){var A;if(this.negative!==0&&E.negative===0)return this.negative=0,A=this.isub(E),this.negative^=1,this._normSign();if(this.negative===0&&E.negative!==0)return E.negative=0,A=this.isub(E),E.negative=1,A._normSign();var B,L;this.length>E.length?(B=this,L=E):(B=E,L=this);for(var P=0,R=0;R<L.length;R++)A=(B.words[R]|0)+(L.words[R]|0)+P,this.words[R]=A&67108863,P=A>>>26;for(;P!==0&&R<B.length;R++)A=(B.words[R]|0)+P,this.words[R]=A&67108863,P=A>>>26;if(this.length=B.length,P!==0)this.words[this.length]=P,this.length++;else if(B!==this)for(;R<B.length;R++)this.words[R]=B.words[R];return this},a.prototype.add=function(E){var A;return E.negative!==0&&this.negative===0?(E.negative=0,A=this.sub(E),E.negative^=1,A):E.negative===0&&this.negative!==0?(this.negative=0,A=E.sub(this),this.negative=1,A):this.length>E.length?this.clone().iadd(E):E.clone().iadd(this)},a.prototype.isub=function(E){if(E.negative!==0){E.negative=0;var A=this.iadd(E);return E.negative=1,A._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(E),this.negative=1,this._normSign();var B=this.cmp(E);if(B===0)return this.negative=0,this.length=1,this.words[0]=0,this;var L,P;B>0?(L=this,P=E):(L=E,P=this);for(var R=0,C=0;C<P.length;C++)A=(L.words[C]|0)-(P.words[C]|0)+R,R=A>>26,this.words[C]=A&67108863;for(;R!==0&&C<L.length;C++)A=(L.words[C]|0)+R,R=A>>26,this.words[C]=A&67108863;if(R===0&&C<L.length&&L!==this)for(;C<L.length;C++)this.words[C]=L.words[C];return this.length=Math.max(this.length,C),L!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(E){return this.clone().isub(E)};function _(M,E,A){A.negative=E.negative^M.negative;var B=M.length+E.length|0;A.length=B,B=B-1|0;var L=M.words[0]|0,P=E.words[0]|0,R=L*P,C=R&67108863,S=R/67108864|0;A.words[0]=C;for(var D=1;D<B;D++){for(var V=S>>>26,te=S&67108863,oe=Math.min(D,E.length-1),he=Math.max(0,D-M.length+1);he<=oe;he++){var Ne=D-he|0;L=M.words[Ne]|0,P=E.words[he]|0,R=L*P+te,V+=R/67108864|0,te=R&67108863}A.words[D]=te|0,S=V|0}return S!==0?A.words[D]=S|0:A.length--,A._strip()}var k=function(E,A,B){var L=E.words,P=A.words,R=B.words,C=0,S,D,V,te=L[0]|0,oe=te&8191,he=te>>>13,Ne=L[1]|0,q=Ne&8191,ne=Ne>>>13,Q=L[2]|0,re=Q&8191,ve=Q>>>13,Ce=L[3]|0,ce=Ce&8191,se=Ce>>>13,ee=L[4]|0,G=ee&8191,Z=ee>>>13,de=L[5]|0,Ae=de&8191,K=de>>>13,Te=L[6]|0,Oe=Te&8191,ie=Te>>>13,fe=L[7]|0,we=fe&8191,Fe=fe>>>13,Ue=L[8]|0,Pe=Ue&8191,$e=Ue>>>13,rt=L[9]|0,Ze=rt&8191,Se=rt>>>13,je=P[0]|0,Ke=je&8191,st=je>>>13,St=P[1]|0,At=St&8191,bt=St>>>13,wt=P[2]|0,Dt=wt&8191,gt=wt>>>13,xt=P[3]|0,Bt=xt&8191,kt=xt>>>13,er=P[4]|0,zt=er&8191,Ct=er>>>13,Kt=P[5]|0,ir=Kt&8191,Nt=Kt>>>13,le=P[6]|0,Ee=le&8191,pe=le>>>13,xe=P[7]|0,ye=xe&8191,_e=xe>>>13,We=P[8]|0,Je=We&8191,Le=We>>>13,Ve=P[9]|0,He=Ve&8191,tt=Ve>>>13;B.negative=E.negative^A.negative,B.length=19,S=Math.imul(oe,Ke),D=Math.imul(oe,st),D=D+Math.imul(he,Ke)|0,V=Math.imul(he,st);var me=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(me>>>26)|0,me&=67108863,S=Math.imul(q,Ke),D=Math.imul(q,st),D=D+Math.imul(ne,Ke)|0,V=Math.imul(ne,st),S=S+Math.imul(oe,At)|0,D=D+Math.imul(oe,bt)|0,D=D+Math.imul(he,At)|0,V=V+Math.imul(he,bt)|0;var Me=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Me>>>26)|0,Me&=67108863,S=Math.imul(re,Ke),D=Math.imul(re,st),D=D+Math.imul(ve,Ke)|0,V=Math.imul(ve,st),S=S+Math.imul(q,At)|0,D=D+Math.imul(q,bt)|0,D=D+Math.imul(ne,At)|0,V=V+Math.imul(ne,bt)|0,S=S+Math.imul(oe,Dt)|0,D=D+Math.imul(oe,gt)|0,D=D+Math.imul(he,Dt)|0,V=V+Math.imul(he,gt)|0;var Re=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Re>>>26)|0,Re&=67108863,S=Math.imul(ce,Ke),D=Math.imul(ce,st),D=D+Math.imul(se,Ke)|0,V=Math.imul(se,st),S=S+Math.imul(re,At)|0,D=D+Math.imul(re,bt)|0,D=D+Math.imul(ve,At)|0,V=V+Math.imul(ve,bt)|0,S=S+Math.imul(q,Dt)|0,D=D+Math.imul(q,gt)|0,D=D+Math.imul(ne,Dt)|0,V=V+Math.imul(ne,gt)|0,S=S+Math.imul(oe,Bt)|0,D=D+Math.imul(oe,kt)|0,D=D+Math.imul(he,Bt)|0,V=V+Math.imul(he,kt)|0;var Qe=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,S=Math.imul(G,Ke),D=Math.imul(G,st),D=D+Math.imul(Z,Ke)|0,V=Math.imul(Z,st),S=S+Math.imul(ce,At)|0,D=D+Math.imul(ce,bt)|0,D=D+Math.imul(se,At)|0,V=V+Math.imul(se,bt)|0,S=S+Math.imul(re,Dt)|0,D=D+Math.imul(re,gt)|0,D=D+Math.imul(ve,Dt)|0,V=V+Math.imul(ve,gt)|0,S=S+Math.imul(q,Bt)|0,D=D+Math.imul(q,kt)|0,D=D+Math.imul(ne,Bt)|0,V=V+Math.imul(ne,kt)|0,S=S+Math.imul(oe,zt)|0,D=D+Math.imul(oe,Ct)|0,D=D+Math.imul(he,zt)|0,V=V+Math.imul(he,Ct)|0;var lt=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(lt>>>26)|0,lt&=67108863,S=Math.imul(Ae,Ke),D=Math.imul(Ae,st),D=D+Math.imul(K,Ke)|0,V=Math.imul(K,st),S=S+Math.imul(G,At)|0,D=D+Math.imul(G,bt)|0,D=D+Math.imul(Z,At)|0,V=V+Math.imul(Z,bt)|0,S=S+Math.imul(ce,Dt)|0,D=D+Math.imul(ce,gt)|0,D=D+Math.imul(se,Dt)|0,V=V+Math.imul(se,gt)|0,S=S+Math.imul(re,Bt)|0,D=D+Math.imul(re,kt)|0,D=D+Math.imul(ve,Bt)|0,V=V+Math.imul(ve,kt)|0,S=S+Math.imul(q,zt)|0,D=D+Math.imul(q,Ct)|0,D=D+Math.imul(ne,zt)|0,V=V+Math.imul(ne,Ct)|0,S=S+Math.imul(oe,ir)|0,D=D+Math.imul(oe,Nt)|0,D=D+Math.imul(he,ir)|0,V=V+Math.imul(he,Nt)|0;var Et=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Et>>>26)|0,Et&=67108863,S=Math.imul(Oe,Ke),D=Math.imul(Oe,st),D=D+Math.imul(ie,Ke)|0,V=Math.imul(ie,st),S=S+Math.imul(Ae,At)|0,D=D+Math.imul(Ae,bt)|0,D=D+Math.imul(K,At)|0,V=V+Math.imul(K,bt)|0,S=S+Math.imul(G,Dt)|0,D=D+Math.imul(G,gt)|0,D=D+Math.imul(Z,Dt)|0,V=V+Math.imul(Z,gt)|0,S=S+Math.imul(ce,Bt)|0,D=D+Math.imul(ce,kt)|0,D=D+Math.imul(se,Bt)|0,V=V+Math.imul(se,kt)|0,S=S+Math.imul(re,zt)|0,D=D+Math.imul(re,Ct)|0,D=D+Math.imul(ve,zt)|0,V=V+Math.imul(ve,Ct)|0,S=S+Math.imul(q,ir)|0,D=D+Math.imul(q,Nt)|0,D=D+Math.imul(ne,ir)|0,V=V+Math.imul(ne,Nt)|0,S=S+Math.imul(oe,Ee)|0,D=D+Math.imul(oe,pe)|0,D=D+Math.imul(he,Ee)|0,V=V+Math.imul(he,pe)|0;var Ot=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,S=Math.imul(we,Ke),D=Math.imul(we,st),D=D+Math.imul(Fe,Ke)|0,V=Math.imul(Fe,st),S=S+Math.imul(Oe,At)|0,D=D+Math.imul(Oe,bt)|0,D=D+Math.imul(ie,At)|0,V=V+Math.imul(ie,bt)|0,S=S+Math.imul(Ae,Dt)|0,D=D+Math.imul(Ae,gt)|0,D=D+Math.imul(K,Dt)|0,V=V+Math.imul(K,gt)|0,S=S+Math.imul(G,Bt)|0,D=D+Math.imul(G,kt)|0,D=D+Math.imul(Z,Bt)|0,V=V+Math.imul(Z,kt)|0,S=S+Math.imul(ce,zt)|0,D=D+Math.imul(ce,Ct)|0,D=D+Math.imul(se,zt)|0,V=V+Math.imul(se,Ct)|0,S=S+Math.imul(re,ir)|0,D=D+Math.imul(re,Nt)|0,D=D+Math.imul(ve,ir)|0,V=V+Math.imul(ve,Nt)|0,S=S+Math.imul(q,Ee)|0,D=D+Math.imul(q,pe)|0,D=D+Math.imul(ne,Ee)|0,V=V+Math.imul(ne,pe)|0,S=S+Math.imul(oe,ye)|0,D=D+Math.imul(oe,_e)|0,D=D+Math.imul(he,ye)|0,V=V+Math.imul(he,_e)|0;var sr=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(sr>>>26)|0,sr&=67108863,S=Math.imul(Pe,Ke),D=Math.imul(Pe,st),D=D+Math.imul($e,Ke)|0,V=Math.imul($e,st),S=S+Math.imul(we,At)|0,D=D+Math.imul(we,bt)|0,D=D+Math.imul(Fe,At)|0,V=V+Math.imul(Fe,bt)|0,S=S+Math.imul(Oe,Dt)|0,D=D+Math.imul(Oe,gt)|0,D=D+Math.imul(ie,Dt)|0,V=V+Math.imul(ie,gt)|0,S=S+Math.imul(Ae,Bt)|0,D=D+Math.imul(Ae,kt)|0,D=D+Math.imul(K,Bt)|0,V=V+Math.imul(K,kt)|0,S=S+Math.imul(G,zt)|0,D=D+Math.imul(G,Ct)|0,D=D+Math.imul(Z,zt)|0,V=V+Math.imul(Z,Ct)|0,S=S+Math.imul(ce,ir)|0,D=D+Math.imul(ce,Nt)|0,D=D+Math.imul(se,ir)|0,V=V+Math.imul(se,Nt)|0,S=S+Math.imul(re,Ee)|0,D=D+Math.imul(re,pe)|0,D=D+Math.imul(ve,Ee)|0,V=V+Math.imul(ve,pe)|0,S=S+Math.imul(q,ye)|0,D=D+Math.imul(q,_e)|0,D=D+Math.imul(ne,ye)|0,V=V+Math.imul(ne,_e)|0,S=S+Math.imul(oe,Je)|0,D=D+Math.imul(oe,Le)|0,D=D+Math.imul(he,Je)|0,V=V+Math.imul(he,Le)|0;var Wr=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Wr>>>26)|0,Wr&=67108863,S=Math.imul(Ze,Ke),D=Math.imul(Ze,st),D=D+Math.imul(Se,Ke)|0,V=Math.imul(Se,st),S=S+Math.imul(Pe,At)|0,D=D+Math.imul(Pe,bt)|0,D=D+Math.imul($e,At)|0,V=V+Math.imul($e,bt)|0,S=S+Math.imul(we,Dt)|0,D=D+Math.imul(we,gt)|0,D=D+Math.imul(Fe,Dt)|0,V=V+Math.imul(Fe,gt)|0,S=S+Math.imul(Oe,Bt)|0,D=D+Math.imul(Oe,kt)|0,D=D+Math.imul(ie,Bt)|0,V=V+Math.imul(ie,kt)|0,S=S+Math.imul(Ae,zt)|0,D=D+Math.imul(Ae,Ct)|0,D=D+Math.imul(K,zt)|0,V=V+Math.imul(K,Ct)|0,S=S+Math.imul(G,ir)|0,D=D+Math.imul(G,Nt)|0,D=D+Math.imul(Z,ir)|0,V=V+Math.imul(Z,Nt)|0,S=S+Math.imul(ce,Ee)|0,D=D+Math.imul(ce,pe)|0,D=D+Math.imul(se,Ee)|0,V=V+Math.imul(se,pe)|0,S=S+Math.imul(re,ye)|0,D=D+Math.imul(re,_e)|0,D=D+Math.imul(ve,ye)|0,V=V+Math.imul(ve,_e)|0,S=S+Math.imul(q,Je)|0,D=D+Math.imul(q,Le)|0,D=D+Math.imul(ne,Je)|0,V=V+Math.imul(ne,Le)|0,S=S+Math.imul(oe,He)|0,D=D+Math.imul(oe,tt)|0,D=D+Math.imul(he,He)|0,V=V+Math.imul(he,tt)|0;var Rr=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,S=Math.imul(Ze,At),D=Math.imul(Ze,bt),D=D+Math.imul(Se,At)|0,V=Math.imul(Se,bt),S=S+Math.imul(Pe,Dt)|0,D=D+Math.imul(Pe,gt)|0,D=D+Math.imul($e,Dt)|0,V=V+Math.imul($e,gt)|0,S=S+Math.imul(we,Bt)|0,D=D+Math.imul(we,kt)|0,D=D+Math.imul(Fe,Bt)|0,V=V+Math.imul(Fe,kt)|0,S=S+Math.imul(Oe,zt)|0,D=D+Math.imul(Oe,Ct)|0,D=D+Math.imul(ie,zt)|0,V=V+Math.imul(ie,Ct)|0,S=S+Math.imul(Ae,ir)|0,D=D+Math.imul(Ae,Nt)|0,D=D+Math.imul(K,ir)|0,V=V+Math.imul(K,Nt)|0,S=S+Math.imul(G,Ee)|0,D=D+Math.imul(G,pe)|0,D=D+Math.imul(Z,Ee)|0,V=V+Math.imul(Z,pe)|0,S=S+Math.imul(ce,ye)|0,D=D+Math.imul(ce,_e)|0,D=D+Math.imul(se,ye)|0,V=V+Math.imul(se,_e)|0,S=S+Math.imul(re,Je)|0,D=D+Math.imul(re,Le)|0,D=D+Math.imul(ve,Je)|0,V=V+Math.imul(ve,Le)|0,S=S+Math.imul(q,He)|0,D=D+Math.imul(q,tt)|0,D=D+Math.imul(ne,He)|0,V=V+Math.imul(ne,tt)|0;var br=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(br>>>26)|0,br&=67108863,S=Math.imul(Ze,Dt),D=Math.imul(Ze,gt),D=D+Math.imul(Se,Dt)|0,V=Math.imul(Se,gt),S=S+Math.imul(Pe,Bt)|0,D=D+Math.imul(Pe,kt)|0,D=D+Math.imul($e,Bt)|0,V=V+Math.imul($e,kt)|0,S=S+Math.imul(we,zt)|0,D=D+Math.imul(we,Ct)|0,D=D+Math.imul(Fe,zt)|0,V=V+Math.imul(Fe,Ct)|0,S=S+Math.imul(Oe,ir)|0,D=D+Math.imul(Oe,Nt)|0,D=D+Math.imul(ie,ir)|0,V=V+Math.imul(ie,Nt)|0,S=S+Math.imul(Ae,Ee)|0,D=D+Math.imul(Ae,pe)|0,D=D+Math.imul(K,Ee)|0,V=V+Math.imul(K,pe)|0,S=S+Math.imul(G,ye)|0,D=D+Math.imul(G,_e)|0,D=D+Math.imul(Z,ye)|0,V=V+Math.imul(Z,_e)|0,S=S+Math.imul(ce,Je)|0,D=D+Math.imul(ce,Le)|0,D=D+Math.imul(se,Je)|0,V=V+Math.imul(se,Le)|0,S=S+Math.imul(re,He)|0,D=D+Math.imul(re,tt)|0,D=D+Math.imul(ve,He)|0,V=V+Math.imul(ve,tt)|0;var Vr=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,S=Math.imul(Ze,Bt),D=Math.imul(Ze,kt),D=D+Math.imul(Se,Bt)|0,V=Math.imul(Se,kt),S=S+Math.imul(Pe,zt)|0,D=D+Math.imul(Pe,Ct)|0,D=D+Math.imul($e,zt)|0,V=V+Math.imul($e,Ct)|0,S=S+Math.imul(we,ir)|0,D=D+Math.imul(we,Nt)|0,D=D+Math.imul(Fe,ir)|0,V=V+Math.imul(Fe,Nt)|0,S=S+Math.imul(Oe,Ee)|0,D=D+Math.imul(Oe,pe)|0,D=D+Math.imul(ie,Ee)|0,V=V+Math.imul(ie,pe)|0,S=S+Math.imul(Ae,ye)|0,D=D+Math.imul(Ae,_e)|0,D=D+Math.imul(K,ye)|0,V=V+Math.imul(K,_e)|0,S=S+Math.imul(G,Je)|0,D=D+Math.imul(G,Le)|0,D=D+Math.imul(Z,Je)|0,V=V+Math.imul(Z,Le)|0,S=S+Math.imul(ce,He)|0,D=D+Math.imul(ce,tt)|0,D=D+Math.imul(se,He)|0,V=V+Math.imul(se,tt)|0;var yn=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(yn>>>26)|0,yn&=67108863,S=Math.imul(Ze,zt),D=Math.imul(Ze,Ct),D=D+Math.imul(Se,zt)|0,V=Math.imul(Se,Ct),S=S+Math.imul(Pe,ir)|0,D=D+Math.imul(Pe,Nt)|0,D=D+Math.imul($e,ir)|0,V=V+Math.imul($e,Nt)|0,S=S+Math.imul(we,Ee)|0,D=D+Math.imul(we,pe)|0,D=D+Math.imul(Fe,Ee)|0,V=V+Math.imul(Fe,pe)|0,S=S+Math.imul(Oe,ye)|0,D=D+Math.imul(Oe,_e)|0,D=D+Math.imul(ie,ye)|0,V=V+Math.imul(ie,_e)|0,S=S+Math.imul(Ae,Je)|0,D=D+Math.imul(Ae,Le)|0,D=D+Math.imul(K,Je)|0,V=V+Math.imul(K,Le)|0,S=S+Math.imul(G,He)|0,D=D+Math.imul(G,tt)|0,D=D+Math.imul(Z,He)|0,V=V+Math.imul(Z,tt)|0;var ar=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(ar>>>26)|0,ar&=67108863,S=Math.imul(Ze,ir),D=Math.imul(Ze,Nt),D=D+Math.imul(Se,ir)|0,V=Math.imul(Se,Nt),S=S+Math.imul(Pe,Ee)|0,D=D+Math.imul(Pe,pe)|0,D=D+Math.imul($e,Ee)|0,V=V+Math.imul($e,pe)|0,S=S+Math.imul(we,ye)|0,D=D+Math.imul(we,_e)|0,D=D+Math.imul(Fe,ye)|0,V=V+Math.imul(Fe,_e)|0,S=S+Math.imul(Oe,Je)|0,D=D+Math.imul(Oe,Le)|0,D=D+Math.imul(ie,Je)|0,V=V+Math.imul(ie,Le)|0,S=S+Math.imul(Ae,He)|0,D=D+Math.imul(Ae,tt)|0,D=D+Math.imul(K,He)|0,V=V+Math.imul(K,tt)|0;var Vn=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,S=Math.imul(Ze,Ee),D=Math.imul(Ze,pe),D=D+Math.imul(Se,Ee)|0,V=Math.imul(Se,pe),S=S+Math.imul(Pe,ye)|0,D=D+Math.imul(Pe,_e)|0,D=D+Math.imul($e,ye)|0,V=V+Math.imul($e,_e)|0,S=S+Math.imul(we,Je)|0,D=D+Math.imul(we,Le)|0,D=D+Math.imul(Fe,Je)|0,V=V+Math.imul(Fe,Le)|0,S=S+Math.imul(Oe,He)|0,D=D+Math.imul(Oe,tt)|0,D=D+Math.imul(ie,He)|0,V=V+Math.imul(ie,tt)|0;var Gn=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Gn>>>26)|0,Gn&=67108863,S=Math.imul(Ze,ye),D=Math.imul(Ze,_e),D=D+Math.imul(Se,ye)|0,V=Math.imul(Se,_e),S=S+Math.imul(Pe,Je)|0,D=D+Math.imul(Pe,Le)|0,D=D+Math.imul($e,Je)|0,V=V+Math.imul($e,Le)|0,S=S+Math.imul(we,He)|0,D=D+Math.imul(we,tt)|0,D=D+Math.imul(Fe,He)|0,V=V+Math.imul(Fe,tt)|0;var Kn=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,S=Math.imul(Ze,Je),D=Math.imul(Ze,Le),D=D+Math.imul(Se,Je)|0,V=Math.imul(Se,Le),S=S+Math.imul(Pe,He)|0,D=D+Math.imul(Pe,tt)|0,D=D+Math.imul($e,He)|0,V=V+Math.imul($e,tt)|0;var ji=(C+S|0)+((D&8191)<<13)|0;C=(V+(D>>>13)|0)+(ji>>>26)|0,ji&=67108863,S=Math.imul(Ze,He),D=Math.imul(Ze,tt),D=D+Math.imul(Se,He)|0,V=Math.imul(Se,tt);var xs=(C+S|0)+((D&8191)<<13)|0;return C=(V+(D>>>13)|0)+(xs>>>26)|0,xs&=67108863,R[0]=me,R[1]=Me,R[2]=Re,R[3]=Qe,R[4]=lt,R[5]=Et,R[6]=Ot,R[7]=sr,R[8]=Wr,R[9]=Rr,R[10]=br,R[11]=Vr,R[12]=yn,R[13]=ar,R[14]=Vn,R[15]=Gn,R[16]=Kn,R[17]=ji,R[18]=xs,C!==0&&(R[19]=C,B.length++),B};Math.imul||(k=_);function F(M,E,A){A.negative=E.negative^M.negative,A.length=M.length+E.length;for(var B=0,L=0,P=0;P<A.length-1;P++){var R=L;L=0;for(var C=B&67108863,S=Math.min(P,E.length-1),D=Math.max(0,P-M.length+1);D<=S;D++){var V=P-D,te=M.words[V]|0,oe=E.words[D]|0,he=te*oe,Ne=he&67108863;R=R+(he/67108864|0)|0,Ne=Ne+C|0,C=Ne&67108863,R=R+(Ne>>>26)|0,L+=R>>>26,R&=67108863}A.words[P]=C,B=R,R=L}return B!==0?A.words[P]=B:A.length--,A._strip()}function O(M,E,A){return F(M,E,A)}a.prototype.mulTo=function(E,A){var B,L=this.length+E.length;return this.length===10&&E.length===10?B=k(this,E,A):L<63?B=_(this,E,A):L<1024?B=F(this,E,A):B=O(this,E,A),B},a.prototype.mul=function(E){var A=new a(null);return A.words=new Array(this.length+E.length),this.mulTo(E,A)},a.prototype.mulf=function(E){var A=new a(null);return A.words=new Array(this.length+E.length),O(this,E,A)},a.prototype.imul=function(E){return this.clone().mulTo(E,this)},a.prototype.imuln=function(E){var A=E<0;A&&(E=-E),h(typeof E=="number"),h(E<67108864);for(var B=0,L=0;L<this.length;L++){var P=(this.words[L]|0)*E,R=(P&67108863)+(B&67108863);B>>=26,B+=P/67108864|0,B+=R>>>26,this.words[L]=R&67108863}return B!==0&&(this.words[L]=B,this.length++),A?this.ineg():this},a.prototype.muln=function(E){return this.clone().imuln(E)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(E){var A=y(E);if(A.length===0)return new a(1);for(var B=this,L=0;L<A.length&&A[L]===0;L++,B=B.sqr());if(++L<A.length)for(var P=B.sqr();L<A.length;L++,P=P.sqr())A[L]!==0&&(B=B.mul(P));return B},a.prototype.iushln=function(E){h(typeof E=="number"&&E>=0);var A=E%26,B=(E-A)/26,L=67108863>>>26-A<<26-A,P;if(A!==0){var R=0;for(P=0;P<this.length;P++){var C=this.words[P]&L,S=(this.words[P]|0)-C<<A;this.words[P]=S|R,R=C>>>26-A}R&&(this.words[P]=R,this.length++)}if(B!==0){for(P=this.length-1;P>=0;P--)this.words[P+B]=this.words[P];for(P=0;P<B;P++)this.words[P]=0;this.length+=B}return this._strip()},a.prototype.ishln=function(E){return h(this.negative===0),this.iushln(E)},a.prototype.iushrn=function(E,A,B){h(typeof E=="number"&&E>=0);var L;A?L=(A-A%26)/26:L=0;var P=E%26,R=Math.min((E-P)/26,this.length),C=67108863^67108863>>>P<<P,S=B;if(L-=R,L=Math.max(0,L),S){for(var D=0;D<R;D++)S.words[D]=this.words[D];S.length=R}if(R!==0)if(this.length>R)for(this.length-=R,D=0;D<this.length;D++)this.words[D]=this.words[D+R];else this.words[0]=0,this.length=1;var V=0;for(D=this.length-1;D>=0&&(V!==0||D>=L);D--){var te=this.words[D]|0;this.words[D]=V<<26-P|te>>>P,V=te&C}return S&&V!==0&&(S.words[S.length++]=V),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(E,A,B){return h(this.negative===0),this.iushrn(E,A,B)},a.prototype.shln=function(E){return this.clone().ishln(E)},a.prototype.ushln=function(E){return this.clone().iushln(E)},a.prototype.shrn=function(E){return this.clone().ishrn(E)},a.prototype.ushrn=function(E){return this.clone().iushrn(E)},a.prototype.testn=function(E){h(typeof E=="number"&&E>=0);var A=E%26,B=(E-A)/26,L=1<<A;if(this.length<=B)return!1;var P=this.words[B];return!!(P&L)},a.prototype.imaskn=function(E){h(typeof E=="number"&&E>=0);var A=E%26,B=(E-A)/26;if(h(this.negative===0,"imaskn works only with positive numbers"),this.length<=B)return this;if(A!==0&&B++,this.length=Math.min(B,this.length),A!==0){var L=67108863^67108863>>>A<<A;this.words[this.length-1]&=L}return this._strip()},a.prototype.maskn=function(E){return this.clone().imaskn(E)},a.prototype.iaddn=function(E){return h(typeof E=="number"),h(E<67108864),E<0?this.isubn(-E):this.negative!==0?this.length===1&&(this.words[0]|0)<=E?(this.words[0]=E-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(E),this.negative=1,this):this._iaddn(E)},a.prototype._iaddn=function(E){this.words[0]+=E;for(var A=0;A<this.length&&this.words[A]>=67108864;A++)this.words[A]-=67108864,A===this.length-1?this.words[A+1]=1:this.words[A+1]++;return this.length=Math.max(this.length,A+1),this},a.prototype.isubn=function(E){if(h(typeof E=="number"),h(E<67108864),E<0)return this.iaddn(-E);if(this.negative!==0)return this.negative=0,this.iaddn(E),this.negative=1,this;if(this.words[0]-=E,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var A=0;A<this.length&&this.words[A]<0;A++)this.words[A]+=67108864,this.words[A+1]-=1;return this._strip()},a.prototype.addn=function(E){return this.clone().iaddn(E)},a.prototype.subn=function(E){return this.clone().isubn(E)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(E,A,B){var L=E.length+B,P;this._expand(L);var R,C=0;for(P=0;P<E.length;P++){R=(this.words[P+B]|0)+C;var S=(E.words[P]|0)*A;R-=S&67108863,C=(R>>26)-(S/67108864|0),this.words[P+B]=R&67108863}for(;P<this.length-B;P++)R=(this.words[P+B]|0)+C,C=R>>26,this.words[P+B]=R&67108863;if(C===0)return this._strip();for(h(C===-1),C=0,P=0;P<this.length;P++)R=-(this.words[P]|0)+C,C=R>>26,this.words[P]=R&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(E,A){var B=this.length-E.length,L=this.clone(),P=E,R=P.words[P.length-1]|0,C=this._countBits(R);B=26-C,B!==0&&(P=P.ushln(B),L.iushln(B),R=P.words[P.length-1]|0);var S=L.length-P.length,D;if(A!=="mod"){D=new a(null),D.length=S+1,D.words=new Array(D.length);for(var V=0;V<D.length;V++)D.words[V]=0}var te=L.clone()._ishlnsubmul(P,1,S);te.negative===0&&(L=te,D&&(D.words[S]=1));for(var oe=S-1;oe>=0;oe--){var he=(L.words[P.length+oe]|0)*67108864+(L.words[P.length+oe-1]|0);for(he=Math.min(he/R|0,67108863),L._ishlnsubmul(P,he,oe);L.negative!==0;)he--,L.negative=0,L._ishlnsubmul(P,1,oe),L.isZero()||(L.negative^=1);D&&(D.words[oe]=he)}return D&&D._strip(),L._strip(),A!=="div"&&B!==0&&L.iushrn(B),{div:D||null,mod:L}},a.prototype.divmod=function(E,A,B){if(h(!E.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var L,P,R;return this.negative!==0&&E.negative===0?(R=this.neg().divmod(E,A),A!=="mod"&&(L=R.div.neg()),A!=="div"&&(P=R.mod.neg(),B&&P.negative!==0&&P.iadd(E)),{div:L,mod:P}):this.negative===0&&E.negative!==0?(R=this.divmod(E.neg(),A),A!=="mod"&&(L=R.div.neg()),{div:L,mod:R.mod}):this.negative&E.negative?(R=this.neg().divmod(E.neg(),A),A!=="div"&&(P=R.mod.neg(),B&&P.negative!==0&&P.isub(E)),{div:R.div,mod:P}):E.length>this.length||this.cmp(E)<0?{div:new a(0),mod:this}:E.length===1?A==="div"?{div:this.divn(E.words[0]),mod:null}:A==="mod"?{div:null,mod:new a(this.modrn(E.words[0]))}:{div:this.divn(E.words[0]),mod:new a(this.modrn(E.words[0]))}:this._wordDiv(E,A)},a.prototype.div=function(E){return this.divmod(E,"div",!1).div},a.prototype.mod=function(E){return this.divmod(E,"mod",!1).mod},a.prototype.umod=function(E){return this.divmod(E,"mod",!0).mod},a.prototype.divRound=function(E){var A=this.divmod(E);if(A.mod.isZero())return A.div;var B=A.div.negative!==0?A.mod.isub(E):A.mod,L=E.ushrn(1),P=E.andln(1),R=B.cmp(L);return R<0||P===1&&R===0?A.div:A.div.negative!==0?A.div.isubn(1):A.div.iaddn(1)},a.prototype.modrn=function(E){var A=E<0;A&&(E=-E),h(E<=67108863);for(var B=(1<<26)%E,L=0,P=this.length-1;P>=0;P--)L=(B*L+(this.words[P]|0))%E;return A?-L:L},a.prototype.modn=function(E){return this.modrn(E)},a.prototype.idivn=function(E){var A=E<0;A&&(E=-E),h(E<=67108863);for(var B=0,L=this.length-1;L>=0;L--){var P=(this.words[L]|0)+B*67108864;this.words[L]=P/E|0,B=P%E}return this._strip(),A?this.ineg():this},a.prototype.divn=function(E){return this.clone().idivn(E)},a.prototype.egcd=function(E){h(E.negative===0),h(!E.isZero());var A=this,B=E.clone();A.negative!==0?A=A.umod(E):A=A.clone();for(var L=new a(1),P=new a(0),R=new a(0),C=new a(1),S=0;A.isEven()&&B.isEven();)A.iushrn(1),B.iushrn(1),++S;for(var D=B.clone(),V=A.clone();!A.isZero();){for(var te=0,oe=1;!(A.words[0]&oe)&&te<26;++te,oe<<=1);if(te>0)for(A.iushrn(te);te-- >0;)(L.isOdd()||P.isOdd())&&(L.iadd(D),P.isub(V)),L.iushrn(1),P.iushrn(1);for(var he=0,Ne=1;!(B.words[0]&Ne)&&he<26;++he,Ne<<=1);if(he>0)for(B.iushrn(he);he-- >0;)(R.isOdd()||C.isOdd())&&(R.iadd(D),C.isub(V)),R.iushrn(1),C.iushrn(1);A.cmp(B)>=0?(A.isub(B),L.isub(R),P.isub(C)):(B.isub(A),R.isub(L),C.isub(P))}return{a:R,b:C,gcd:B.iushln(S)}},a.prototype._invmp=function(E){h(E.negative===0),h(!E.isZero());var A=this,B=E.clone();A.negative!==0?A=A.umod(E):A=A.clone();for(var L=new a(1),P=new a(0),R=B.clone();A.cmpn(1)>0&&B.cmpn(1)>0;){for(var C=0,S=1;!(A.words[0]&S)&&C<26;++C,S<<=1);if(C>0)for(A.iushrn(C);C-- >0;)L.isOdd()&&L.iadd(R),L.iushrn(1);for(var D=0,V=1;!(B.words[0]&V)&&D<26;++D,V<<=1);if(D>0)for(B.iushrn(D);D-- >0;)P.isOdd()&&P.iadd(R),P.iushrn(1);A.cmp(B)>=0?(A.isub(B),L.isub(P)):(B.isub(A),P.isub(L))}var te;return A.cmpn(1)===0?te=L:te=P,te.cmpn(0)<0&&te.iadd(E),te},a.prototype.gcd=function(E){if(this.isZero())return E.abs();if(E.isZero())return this.abs();var A=this.clone(),B=E.clone();A.negative=0,B.negative=0;for(var L=0;A.isEven()&&B.isEven();L++)A.iushrn(1),B.iushrn(1);do{for(;A.isEven();)A.iushrn(1);for(;B.isEven();)B.iushrn(1);var P=A.cmp(B);if(P<0){var R=A;A=B,B=R}else if(P===0||B.cmpn(1)===0)break;A.isub(B)}while(!0);return B.iushln(L)},a.prototype.invm=function(E){return this.egcd(E).a.umod(E)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(E){return this.words[0]&E},a.prototype.bincn=function(E){h(typeof E=="number");var A=E%26,B=(E-A)/26,L=1<<A;if(this.length<=B)return this._expand(B+1),this.words[B]|=L,this;for(var P=L,R=B;P!==0&&R<this.length;R++){var C=this.words[R]|0;C+=P,P=C>>>26,C&=67108863,this.words[R]=C}return P!==0&&(this.words[R]=P,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(E){var A=E<0;if(this.negative!==0&&!A)return-1;if(this.negative===0&&A)return 1;this._strip();var B;if(this.length>1)B=1;else{A&&(E=-E),h(E<=67108863,"Number is too big");var L=this.words[0]|0;B=L===E?0:L<E?-1:1}return this.negative!==0?-B|0:B},a.prototype.cmp=function(E){if(this.negative!==0&&E.negative===0)return-1;if(this.negative===0&&E.negative!==0)return 1;var A=this.ucmp(E);return this.negative!==0?-A|0:A},a.prototype.ucmp=function(E){if(this.length>E.length)return 1;if(this.length<E.length)return-1;for(var A=0,B=this.length-1;B>=0;B--){var L=this.words[B]|0,P=E.words[B]|0;if(L!==P){L<P?A=-1:L>P&&(A=1);break}}return A},a.prototype.gtn=function(E){return this.cmpn(E)===1},a.prototype.gt=function(E){return this.cmp(E)===1},a.prototype.gten=function(E){return this.cmpn(E)>=0},a.prototype.gte=function(E){return this.cmp(E)>=0},a.prototype.ltn=function(E){return this.cmpn(E)===-1},a.prototype.lt=function(E){return this.cmp(E)===-1},a.prototype.lten=function(E){return this.cmpn(E)<=0},a.prototype.lte=function(E){return this.cmp(E)<=0},a.prototype.eqn=function(E){return this.cmpn(E)===0},a.prototype.eq=function(E){return this.cmp(E)===0},a.red=function(E){return new H(E)},a.prototype.toRed=function(E){return h(!this.red,"Already a number in reduction context"),h(this.negative===0,"red works only with positives"),E.convertTo(this)._forceRed(E)},a.prototype.fromRed=function(){return h(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(E){return this.red=E,this},a.prototype.forceRed=function(E){return h(!this.red,"Already a number in reduction context"),this._forceRed(E)},a.prototype.redAdd=function(E){return h(this.red,"redAdd works only with red numbers"),this.red.add(this,E)},a.prototype.redIAdd=function(E){return h(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,E)},a.prototype.redSub=function(E){return h(this.red,"redSub works only with red numbers"),this.red.sub(this,E)},a.prototype.redISub=function(E){return h(this.red,"redISub works only with red numbers"),this.red.isub(this,E)},a.prototype.redShl=function(E){return h(this.red,"redShl works only with red numbers"),this.red.shl(this,E)},a.prototype.redMul=function(E){return h(this.red,"redMul works only with red numbers"),this.red._verify2(this,E),this.red.mul(this,E)},a.prototype.redIMul=function(E){return h(this.red,"redMul works only with red numbers"),this.red._verify2(this,E),this.red.imul(this,E)},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(E){return h(this.red&&!E.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,E)};var N={k256:null,p224:null,p192:null,p25519:null};function U(M,E){this.name=M,this.p=new a(E,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}U.prototype._tmp=function(){var E=new a(null);return E.words=new Array(Math.ceil(this.n/13)),E},U.prototype.ireduce=function(E){var A=E,B;do this.split(A,this.tmp),A=this.imulK(A),A=A.iadd(this.tmp),B=A.bitLength();while(B>this.n);var L=B<this.n?-1:A.ucmp(this.p);return L===0?(A.words[0]=0,A.length=1):L>0?A.isub(this.p):A.strip!==void 0?A.strip():A._strip(),A},U.prototype.split=function(E,A){E.iushrn(this.n,0,A)},U.prototype.imulK=function(E){return E.imul(this.k)};function z(){U.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}c(z,U),z.prototype.split=function(E,A){for(var B=4194303,L=Math.min(E.length,9),P=0;P<L;P++)A.words[P]=E.words[P];if(A.length=L,E.length<=9){E.words[0]=0,E.length=1;return}var R=E.words[9];for(A.words[A.length++]=R&B,P=10;P<E.length;P++){var C=E.words[P]|0;E.words[P-10]=(C&B)<<4|R>>>22,R=C}R>>>=22,E.words[P-10]=R,R===0&&E.length>10?E.length-=10:E.length-=9},z.prototype.imulK=function(E){E.words[E.length]=0,E.words[E.length+1]=0,E.length+=2;for(var A=0,B=0;B<E.length;B++){var L=E.words[B]|0;A+=L*977,E.words[B]=A&67108863,A=L*64+(A/67108864|0)}return E.words[E.length-1]===0&&(E.length--,E.words[E.length-1]===0&&E.length--),E};function W(){U.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}c(W,U);function X(){U.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}c(X,U);function J(){U.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}c(J,U),J.prototype.imulK=function(E){for(var A=0,B=0;B<E.length;B++){var L=(E.words[B]|0)*19+A,P=L&67108863;L>>>=26,E.words[B]=P,A=L}return A!==0&&(E.words[E.length++]=A),E},a._prime=function(E){if(N[E])return N[E];var A;if(E==="k256")A=new z;else if(E==="p224")A=new W;else if(E==="p192")A=new X;else if(E==="p25519")A=new J;else throw new Error("Unknown prime "+E);return N[E]=A,A};function H(M){if(typeof M=="string"){var E=a._prime(M);this.m=E.p,this.prime=E}else h(M.gtn(1),"modulus must be greater than 1"),this.m=M,this.prime=null}H.prototype._verify1=function(E){h(E.negative===0,"red works only with positives"),h(E.red,"red works only with red numbers")},H.prototype._verify2=function(E,A){h((E.negative|A.negative)===0,"red works only with positives"),h(E.red&&E.red===A.red,"red works only with red numbers")},H.prototype.imod=function(E){return this.prime?this.prime.ireduce(E)._forceRed(this):(m(E,E.umod(this.m)._forceRed(this)),E)},H.prototype.neg=function(E){return E.isZero()?E.clone():this.m.sub(E)._forceRed(this)},H.prototype.add=function(E,A){this._verify2(E,A);var B=E.add(A);return B.cmp(this.m)>=0&&B.isub(this.m),B._forceRed(this)},H.prototype.iadd=function(E,A){this._verify2(E,A);var B=E.iadd(A);return B.cmp(this.m)>=0&&B.isub(this.m),B},H.prototype.sub=function(E,A){this._verify2(E,A);var B=E.sub(A);return B.cmpn(0)<0&&B.iadd(this.m),B._forceRed(this)},H.prototype.isub=function(E,A){this._verify2(E,A);var B=E.isub(A);return B.cmpn(0)<0&&B.iadd(this.m),B},H.prototype.shl=function(E,A){return this._verify1(E),this.imod(E.ushln(A))},H.prototype.imul=function(E,A){return this._verify2(E,A),this.imod(E.imul(A))},H.prototype.mul=function(E,A){return this._verify2(E,A),this.imod(E.mul(A))},H.prototype.isqr=function(E){return this.imul(E,E.clone())},H.prototype.sqr=function(E){return this.mul(E,E)},H.prototype.sqrt=function(E){if(E.isZero())return E.clone();var A=this.m.andln(3);if(h(A%2===1),A===3){var B=this.m.add(new a(1)).iushrn(2);return this.pow(E,B)}for(var L=this.m.subn(1),P=0;!L.isZero()&&L.andln(1)===0;)P++,L.iushrn(1);h(!L.isZero());var R=new a(1).toRed(this),C=R.redNeg(),S=this.m.subn(1).iushrn(1),D=this.m.bitLength();for(D=new a(2*D*D).toRed(this);this.pow(D,S).cmp(C)!==0;)D.redIAdd(C);for(var V=this.pow(D,L),te=this.pow(E,L.addn(1).iushrn(1)),oe=this.pow(E,L),he=P;oe.cmp(R)!==0;){for(var Ne=oe,q=0;Ne.cmp(R)!==0;q++)Ne=Ne.redSqr();h(q<he);var ne=this.pow(V,new a(1).iushln(he-q-1));te=te.redMul(ne),V=ne.redSqr(),oe=oe.redMul(V),he=q}return te},H.prototype.invm=function(E){var A=E._invmp(this.m);return A.negative!==0?(A.negative=0,this.imod(A).redNeg()):this.imod(A)},H.prototype.pow=function(E,A){if(A.isZero())return new a(1).toRed(this);if(A.cmpn(1)===0)return E.clone();var B=4,L=new Array(1<<B);L[0]=new a(1).toRed(this),L[1]=E;for(var P=2;P<L.length;P++)L[P]=this.mul(L[P-1],E);var R=L[0],C=0,S=0,D=A.bitLength()%26;for(D===0&&(D=26),P=A.length-1;P>=0;P--){for(var V=A.words[P],te=D-1;te>=0;te--){var oe=V>>te&1;if(R!==L[0]&&(R=this.sqr(R)),oe===0&&C===0){S=0;continue}C<<=1,C|=oe,S++,!(S!==B&&(P!==0||te!==0))&&(R=this.mul(R,L[C]),S=0,C=0)}D=26}return R},H.prototype.convertTo=function(E){var A=E.umod(this.m);return A===E?A.clone():A},H.prototype.convertFrom=function(E){var A=E.clone();return A.red=null,A},a.mont=function(E){return new I(E)};function I(M){H.call(this,M),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(I,H),I.prototype.convertTo=function(E){return this.imod(E.ushln(this.shift))},I.prototype.convertFrom=function(E){var A=this.imod(E.mul(this.rinv));return A.red=null,A},I.prototype.imul=function(E,A){if(E.isZero()||A.isZero())return E.words[0]=0,E.length=1,E;var B=E.imul(A),L=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=B.isub(L).iushrn(this.shift),R=P;return P.cmp(this.m)>=0?R=P.isub(this.m):P.cmpn(0)<0&&(R=P.iadd(this.m)),R._forceRed(this)},I.prototype.mul=function(E,A){if(E.isZero()||A.isZero())return new a(0)._forceRed(this);var B=E.mul(A),L=B.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=B.isub(L).iushrn(this.shift),R=P;return P.cmp(this.m)>=0?R=P.isub(this.m):P.cmpn(0)<0&&(R=P.iadd(this.m)),R._forceRed(this)},I.prototype.invm=function(E){var A=this.imod(E._invmp(this.m).mul(this.r2));return A._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],w=m[2],y=m[3],_=u[0]^p[0],k=u[1]^p[1],F=u[2]^p[2],O=u[3]^p[3],N,U,z,W,X=4,J=1;J<v;J++)N=x[_>>>24]^g[k>>>16&255]^w[F>>>8&255]^y[O&255]^p[X++],U=x[k>>>24]^g[F>>>16&255]^w[O>>>8&255]^y[_&255]^p[X++],z=x[F>>>24]^g[O>>>16&255]^w[_>>>8&255]^y[k&255]^p[X++],W=x[O>>>24]^g[_>>>16&255]^w[k>>>8&255]^y[F&255]^p[X++],_=N,k=U,F=z,O=W;return N=(d[_>>>24]<<24|d[k>>>16&255]<<16|d[F>>>8&255]<<8|d[O&255])^p[X++],U=(d[k>>>24]<<24|d[F>>>16&255]<<16|d[O>>>8&255]<<8|d[_&255])^p[X++],z=(d[F>>>24]<<24|d[O>>>16&255]<<16|d[_>>>8&255]<<8|d[k&255])^p[X++],W=(d[O>>>24]<<24|d[_>>>16&255]<<16|d[k>>>8&255]<<8|d[F&255])^p[X++],N=N>>>0,U=U>>>0,z=z>>>0,W=W>>>0,[N,U,z,W]}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,w=0,y=0;y<256;++y){var _=w^w<<1^w<<2^w<<3^w<<4;_=_>>>8^_&255^99,m[g]=_,d[_]=g;var k=u[g],F=u[k],O=u[F],N=u[_]*257^_*16843008;v[0][g]=N<<24|N>>>8,v[1][g]=N<<16|N>>>16,v[2][g]=N<<8|N>>>24,v[3][g]=N,N=O*16843009^F*65537^k*257^g*16843008,x[0][_]=N<<24|N>>>8,x[1][_]=N<<16|N>>>16,x[2][_]=N<<8|N>>>24,x[3][_]=N,g===0?g=w=1:(g=k^u[u[u[O^k]]],w^=u[u[w]])}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 w=[],y=0;y<d;y++){var _=d-y,k=v[_-(y%4?0:4)];y<4||_<=4?w[y]=k:w[y]=f.INV_SUB_MIX[0][f.SBOX[k>>>24]]^f.INV_SUB_MIX[1][f.SBOX[k>>>16&255]]^f.INV_SUB_MIX[2][f.SBOX[k>>>8&255]]^f.INV_SUB_MIX[3][f.SBOX[k&255]]}this._nRounds=m,this._keySchedule=v,this._invKeySchedule=w},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),w=0;w<g;++w)x+=d[w]^v[w];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),w=v.length,y=w%16;g.update(v),y&&(y=16-y,g.update(o.alloc(y,0))),g.update(o.alloc(8,0));var _=w*8,k=o.alloc(8);k.writeUIntBE(_,0,8),g.update(k),d._finID=g.state;var F=o.from(d._finID);return l(F),F}function m(d,v,x,g){h.call(this);var w=o.alloc(4,0);this._cipher=new s.AES(v);var y=this._cipher.encryptBlock(w);this._ghash=new a(y),x=p(this,x,y),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,w,y){a.call(this),this._cache=new m,this._last=void 0,this._cipher=new f.AES(w),this._prev=o.from(y),this._mode=g,this._autopadding=!0}u(p,a),p.prototype._update=function(g){this._cache.add(g);for(var w,y,_=[];w=this._cache.get(this._autopadding);)y=this._mode.decrypt(this,w),_.push(y);return o.concat(_)},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 w;if(g){if(this.cache.length>16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w}else if(this.cache.length>=16)return w=this.cache.slice(0,16),this.cache=this.cache.slice(16),w;return null},m.prototype.flush=function(){if(this.cache.length)return this.cache};function d(g){var w=g[15];if(w<1||w>16)throw new Error("unable to decrypt data");for(var y=-1;++y<w;)if(g[y+(16-w)]!==w)throw new Error("unable to decrypt data");if(w!==16)return g.slice(0,16-w)}function v(g,w,y){var _=h[g.toLowerCase()];if(!_)throw new TypeError("invalid suite type");if(typeof y=="string"&&(y=o.from(y)),_.mode!=="GCM"&&y.length!==_.iv)throw new TypeError("invalid iv length "+y.length);if(typeof w=="string"&&(w=o.from(w)),w.length!==_.key/8)throw new TypeError("invalid key length "+w.length);return _.type==="stream"?new c(_.module,w,y,!0):_.type==="auth"?new s(_.module,w,y,!0):new p(_.module,w,y)}function x(g,w){var y=h[g.toLowerCase()];if(!y)throw new TypeError("invalid suite type");var _=l(w,!1,y.key,y.iv);return v(g,_.key,_.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,w,y){a.call(this),this._cache=new d,this._cipher=new f.AES(w),this._prev=h.from(y),this._mode=g,this._autopadding=!0}u(p,a),p.prototype._update=function(g){this._cache.add(g);for(var w,y,_=[];w=this._cache.get();)y=this._mode.encrypt(this,w),_.push(y);return h.concat(_)};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,w=h.allocUnsafe(g),y=-1;++y<g;)w.writeUInt8(g,y);return h.concat([this.cache,w])};function v(g,w,y){var _=s[g.toLowerCase()];if(!_)throw new TypeError("invalid suite type");if(typeof w=="string"&&(w=h.from(w)),w.length!==_.key/8)throw new TypeError("invalid key length "+w.length);if(typeof y=="string"&&(y=h.from(y)),_.mode!=="GCM"&&y.length!==_.iv)throw new TypeError("invalid iv length "+y.length);return _.type==="stream"?new c(_.module,w,y):_.type==="auth"?new o(_.module,w,y):new p(_.module,w,y)}function x(g,w){var y=s[g.toLowerCase()];if(!y)throw new TypeError("invalid suite type");var _=l(w,!1,y.key,y.iv);return v(g,_.key,_.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 w=a(v,!1,x,g);return u(d,w.key,w.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 w=a(v,!1,x,g);return p(d,w.key,w.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,w=u.prime1,y=u.prime2,_=v.redPow(u.exponent1).fromRed(),k=x.redPow(u.exponent2).fromRed(),F=_.isub(k).imul(g).umod(w).imul(y);return k.iadd(F).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,w){this._hash.update(x),w()},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 w=this._hash.digest(),y=a(w,x,this._hashType,this._signType,this._tag);return g?y.toString(g):y};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,w){this._hash.update(x),w()},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,w){typeof g=="string"&&(g=s.from(g,w)),this.end();var y=this._hash.digest();return f(g,y,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(_,k,F,O,N){var U=f(k);if(U.curve){if(O!=="ecdsa"&&O!=="ecdsa/rsa")throw new Error("wrong private key type");return p(_,U)}else if(U.type==="dsa"){if(O!=="dsa")throw new Error("wrong private key type");return m(_,U,F)}else if(O!=="rsa"&&O!=="ecdsa/rsa")throw new Error("wrong private key type");_=s.concat([N,_]);for(var z=U.modulus.byteLength(),W=[0,1];_.length+W.length+1<z;)W.push(255);W.push(0);for(var X=-1;++X<_.length;)W.push(_[X]);var J=h(W,U);return J}function p(_,k){var F=l[k.curve.join(".")];if(!F)throw new Error("unknown curve "+k.curve.join("."));var O=new c(F),N=O.keyFromPrivate(k.privateKey),U=N.sign(_);return s.from(U.toDER())}function m(_,k,F){for(var O=k.params.priv_key,N=k.params.p,U=k.params.q,z=k.params.g,W=new a(0),X,J=x(_,U).mod(U),H=!1,I=v(O,U,_,F);H===!1;)X=w(U,I,F),W=y(z,X,N,U),H=X.invm(U).imul(J.add(O.mul(W))).mod(U),H.cmpn(0)===0&&(H=!1,W=new a(0));return d(W,H)}function d(_,k){_=_.toArray(),k=k.toArray(),_[0]&128&&(_=[0].concat(_)),k[0]&128&&(k=[0].concat(k));var F=_.length+k.length+4,O=[48,F,2,_.length];return O=O.concat(_,[2,k.length],k),s.from(O)}function v(_,k,F,O){if(_=s.from(_.toArray()),_.length<k.byteLength()){var N=s.alloc(k.byteLength()-_.length);_=s.concat([N,_])}var U=F.length,z=g(F,k),W=s.alloc(U);W.fill(1);var X=s.alloc(U);return X=o(O,X).update(W).update(s.from([0])).update(_).update(z).digest(),W=o(O,X).update(W).digest(),X=o(O,X).update(W).update(s.from([1])).update(_).update(z).digest(),W=o(O,X).update(W).digest(),{k:X,v:W}}function x(_,k){var F=new a(_),O=(_.length<<3)-k.bitLength();return O>0&&F.ishrn(O),F}function g(_,k){_=x(_,k),_=_.mod(k);var F=s.from(_.toArray());if(F.length<k.byteLength()){var O=s.alloc(k.byteLength()-F.length);F=s.concat([O,F])}return F}function w(_,k,F){var O,N;do{for(O=s.alloc(0);O.length*8<_.bitLength();)k.v=o(F,k.k).update(k.v).digest(),O=s.concat([O,k.v]);N=x(O,_),k.k=o(F,k.k).update(k.v).update(s.from([0])).digest(),k.v=o(F,k.k).update(k.v).digest()}while(N.cmp(_)!==-1);return N}function y(_,k,F,O){return _.toRed(a.mont(F)).redPow(k).fromRed().mod(O)}n.exports=u,n.exports.getKey=v,n.exports.makeKey=w},{"./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 w=c(v);if(w.type==="ec"){if(x!=="ecdsa"&&x!=="ecdsa/rsa")throw new Error("wrong public key type");return l(m,d,w)}else if(w.type==="dsa"){if(x!=="dsa")throw new Error("wrong public key type");return u(m,d,w)}else if(x!=="rsa"&&x!=="ecdsa/rsa")throw new Error("wrong public key type");d=s.concat([g,d]);for(var y=w.modulus.byteLength(),_=[1],k=0;d.length+_.length+2<y;)_.push(255),k++;_.push(0);for(var F=-1;++F<d.length;)_.push(d[F]);_=s.from(_);var O=o.mont(w.modulus);m=new o(m).toRed(O),m=m.redPow(new o(w.publicExponent)),m=s.from(m.fromRed().toArray());var N=k<8?1:0;for(y=Math.min(m.length,_.length),m.length!==_.length&&(N=1),F=-1;++F<y;)N|=m[F]^_[F];return N===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),w=v.data.subjectPrivateKey.data;return g.verify(d,m,w)}function u(m,d,v){var x=v.data.p,g=v.data.q,w=v.data.g,y=v.data.pub_key,_=c.signature.decode(m,"der"),k=_.s,F=_.r;p(k,g),p(F,g);var O=o.mont(x),N=k.invm(g),U=w.toRed(O).redPow(new o(d).mul(N).mod(g)).fromRed().mul(y.toRed(O).redPow(F.mul(N).mod(g)).fromRed()).mod(x).mod(g);return U.cmp(F)===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(k){switch(k=""+k,k&&k.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(k){if(!k)return"utf8";for(var F;;)switch(k){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 k;default:if(F)return;k=(""+k).toLowerCase(),F=!0}}function c(k){var F=h(k);if(typeof F!="string"&&(s.isEncoding===o||!o(k)))throw new Error("Unknown encoding: "+k);return F||k}i.StringDecoder=a;function a(k){this.encoding=c(k);var F;switch(this.encoding){case"utf16le":this.text=v,this.end=x,F=4;break;case"utf8":this.fillLast=p,F=4;break;case"base64":this.text=g,this.end=w,F=3;break;default:this.write=y,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=s.allocUnsafe(F)}a.prototype.write=function(k){if(k.length===0)return"";var F,O;if(this.lastNeed){if(F=this.fillLast(k),F===void 0)return"";O=this.lastNeed,this.lastNeed=0}else O=0;return O<k.length?F?F+this.text(k,O):this.text(k,O):F||""},a.prototype.end=d,a.prototype.text=m,a.prototype.fillLast=function(k){if(this.lastNeed<=k.length)return k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,k.length),this.lastNeed-=k.length};function f(k){return k<=127?0:k>>5===6?2:k>>4===14?3:k>>3===30?4:k>>6===2?-1:-2}function l(k,F,O){var N=F.length-1;if(N<O)return 0;var U=f(F[N]);return U>=0?(U>0&&(k.lastNeed=U-1),U):--N<O||U===-2?0:(U=f(F[N]),U>=0?(U>0&&(k.lastNeed=U-2),U):--N<O||U===-2?0:(U=f(F[N]),U>=0?(U>0&&(U===2?U=0:k.lastNeed=U-3),U):0))}function u(k,F,O){if((F[0]&192)!==128)return k.lastNeed=0,"<22>";if(k.lastNeed>1&&F.length>1){if((F[1]&192)!==128)return k.lastNeed=1,"<22>";if(k.lastNeed>2&&F.length>2&&(F[2]&192)!==128)return k.lastNeed=2,"<22>"}}function p(k){var F=this.lastTotal-this.lastNeed,O=u(this,k);if(O!==void 0)return O;if(this.lastNeed<=k.length)return k.copy(this.lastChar,F,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,F,0,k.length),this.lastNeed-=k.length}function m(k,F){var O=l(this,k,F);if(!this.lastNeed)return k.toString("utf8",F);this.lastTotal=O;var N=k.length-(O-this.lastNeed);return k.copy(this.lastChar,0,N),k.toString("utf8",F,N)}function d(k){var F=k&&k.length?this.write(k):"";return this.lastNeed?F+"<22>":F}function v(k,F){if((k.length-F)%2===0){var O=k.toString("utf16le",F);if(O){var N=O.charCodeAt(O.length-1);if(N>=55296&&N<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],O.slice(0,-1)}return O}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",F,k.length-1)}function x(k){var F=k&&k.length?this.write(k):"";if(this.lastNeed){var O=this.lastTotal-this.lastNeed;return F+this.lastChar.toString("utf16le",0,O)}return F}function g(k,F){var O=(k.length-F)%3;return O===0?k.toString("base64",F):(this.lastNeed=3-O,this.lastTotal=3,O===1?this.lastChar[0]=k[k.length-1]:(this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1]),k.toString("base64",F,k.length-O))}function w(k){var F=k&&k.length?this.write(k):"";return this.lastNeed?F+this.lastChar.toString("base64",0,3-this.lastNeed):F}function y(k){return k.toString(this.encoding)}function _(k){return k&&k.length?this.write(k):""}},{"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=_,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 ee=new Uint8Array(1);return ee.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ee.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(ee){if(ee>c)throw new RangeError('The value "'+ee+'" is invalid for option "size"');var G=new Uint8Array(ee);return G.__proto__=l.prototype,G}function l(ee,G,Z){if(typeof ee=="number"){if(typeof G=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(ee)}return u(ee,G,Z)}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(ee,G,Z){if(typeof ee=="string")return v(ee,G);if(ArrayBuffer.isView(ee))return x(ee);if(ee==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee);if(ce(ee,ArrayBuffer)||ee&&ce(ee.buffer,ArrayBuffer))return g(ee,G,Z);if(typeof ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var de=ee.valueOf&&ee.valueOf();if(de!=null&&de!==ee)return l.from(de,G,Z);var Ae=w(ee);if(Ae)return Ae;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof ee[Symbol.toPrimitive]=="function")return l.from(ee[Symbol.toPrimitive]("string"),G,Z);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee)}l.from=function(ee,G,Z){return u(ee,G,Z)},l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array;function p(ee){if(typeof ee!="number")throw new TypeError('"size" argument must be of type number');if(ee<0)throw new RangeError('The value "'+ee+'" is invalid for option "size"')}function m(ee,G,Z){return p(ee),ee<=0?f(ee):G!==void 0?typeof Z=="string"?f(ee).fill(G,Z):f(ee).fill(G):f(ee)}l.alloc=function(ee,G,Z){return m(ee,G,Z)};function d(ee){return p(ee),f(ee<0?0:y(ee)|0)}l.allocUnsafe=function(ee){return d(ee)},l.allocUnsafeSlow=function(ee){return d(ee)};function v(ee,G){if((typeof G!="string"||G==="")&&(G="utf8"),!l.isEncoding(G))throw new TypeError("Unknown encoding: "+G);var Z=k(ee,G)|0,de=f(Z),Ae=de.write(ee,G);return Ae!==Z&&(de=de.slice(0,Ae)),de}function x(ee){for(var G=ee.length<0?0:y(ee.length)|0,Z=f(G),de=0;de<G;de+=1)Z[de]=ee[de]&255;return Z}function g(ee,G,Z){if(G<0||ee.byteLength<G)throw new RangeError('"offset" is outside of buffer bounds');if(ee.byteLength<G+(Z||0))throw new RangeError('"length" is outside of buffer bounds');var de;return G===void 0&&Z===void 0?de=new Uint8Array(ee):Z===void 0?de=new Uint8Array(ee,G):de=new Uint8Array(ee,G,Z),de.__proto__=l.prototype,de}function w(ee){if(l.isBuffer(ee)){var G=y(ee.length)|0,Z=f(G);return Z.length===0||ee.copy(Z,0,0,G),Z}if(ee.length!==void 0)return typeof ee.length!="number"||se(ee.length)?f(0):x(ee);if(ee.type==="Buffer"&&Array.isArray(ee.data))return x(ee.data)}function y(ee){if(ee>=c)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c.toString(16)+" bytes");return ee|0}function _(ee){return+ee!=ee&&(ee=0),l.alloc(+ee)}l.isBuffer=function(G){return G!=null&&G._isBuffer===!0&&G!==l.prototype},l.compare=function(G,Z){if(ce(G,Uint8Array)&&(G=l.from(G,G.offset,G.byteLength)),ce(Z,Uint8Array)&&(Z=l.from(Z,Z.offset,Z.byteLength)),!l.isBuffer(G)||!l.isBuffer(Z))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(G===Z)return 0;for(var de=G.length,Ae=Z.length,K=0,Te=Math.min(de,Ae);K<Te;++K)if(G[K]!==Z[K]){de=G[K],Ae=Z[K];break}return de<Ae?-1:Ae<de?1:0},l.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(G,Z){if(!Array.isArray(G))throw new TypeError('"list" argument must be an Array of Buffers');if(G.length===0)return l.alloc(0);var de;if(Z===void 0)for(Z=0,de=0;de<G.length;++de)Z+=G[de].length;var Ae=l.allocUnsafe(Z),K=0;for(de=0;de<G.length;++de){var Te=G[de];if(ce(Te,Uint8Array)&&(Te=l.from(Te)),!l.isBuffer(Te))throw new TypeError('"list" argument must be an Array of Buffers');Te.copy(Ae,K),K+=Te.length}return Ae};function k(ee,G){if(l.isBuffer(ee))return ee.length;if(ArrayBuffer.isView(ee)||ce(ee,ArrayBuffer))return ee.byteLength;if(typeof ee!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ee);var Z=ee.length,de=arguments.length>2&&arguments[2]===!0;if(!de&&Z===0)return 0;for(var Ae=!1;;)switch(G){case"ascii":case"latin1":case"binary":return Z;case"utf8":case"utf-8":return ne(ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z*2;case"hex":return Z>>>1;case"base64":return ve(ee).length;default:if(Ae)return de?-1:ne(ee).length;G=(""+G).toLowerCase(),Ae=!0}}l.byteLength=k;function F(ee,G,Z){var de=!1;if((G===void 0||G<0)&&(G=0),G>this.length||((Z===void 0||Z>this.length)&&(Z=this.length),Z<=0)||(Z>>>=0,G>>>=0,Z<=G))return"";for(ee||(ee="utf8");;)switch(ee){case"hex":return R(this,G,Z);case"utf8":case"utf-8":return E(this,G,Z);case"ascii":return L(this,G,Z);case"latin1":case"binary":return P(this,G,Z);case"base64":return M(this,G,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,G,Z);default:if(de)throw new TypeError("Unknown encoding: "+ee);ee=(ee+"").toLowerCase(),de=!0}}l.prototype._isBuffer=!0;function O(ee,G,Z){var de=ee[G];ee[G]=ee[Z],ee[Z]=de}l.prototype.swap16=function(){var G=this.length;if(G%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Z=0;Z<G;Z+=2)O(this,Z,Z+1);return this},l.prototype.swap32=function(){var G=this.length;if(G%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Z=0;Z<G;Z+=4)O(this,Z,Z+3),O(this,Z+1,Z+2);return this},l.prototype.swap64=function(){var G=this.length;if(G%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Z=0;Z<G;Z+=8)O(this,Z,Z+7),O(this,Z+1,Z+6),O(this,Z+2,Z+5),O(this,Z+3,Z+4);return this},l.prototype.toString=function(){var G=this.length;return G===0?"":arguments.length===0?E(this,0,G):F.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(G){if(!l.isBuffer(G))throw new TypeError("Argument must be a Buffer");return this===G?!0:l.compare(this,G)===0},l.prototype.inspect=function(){var G="",Z=i.INSPECT_MAX_BYTES;return G=this.toString("hex",0,Z).replace(/(.{2})/g,"$1 ").trim(),this.length>Z&&(G+=" ... "),"<Buffer "+G+">"},l.prototype.compare=function(G,Z,de,Ae,K){if(ce(G,Uint8Array)&&(G=l.from(G,G.offset,G.byteLength)),!l.isBuffer(G))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof G);if(Z===void 0&&(Z=0),de===void 0&&(de=G?G.length:0),Ae===void 0&&(Ae=0),K===void 0&&(K=this.length),Z<0||de>G.length||Ae<0||K>this.length)throw new RangeError("out of range index");if(Ae>=K&&Z>=de)return 0;if(Ae>=K)return-1;if(Z>=de)return 1;if(Z>>>=0,de>>>=0,Ae>>>=0,K>>>=0,this===G)return 0;for(var Te=K-Ae,Oe=de-Z,ie=Math.min(Te,Oe),fe=this.slice(Ae,K),we=G.slice(Z,de),Fe=0;Fe<ie;++Fe)if(fe[Fe]!==we[Fe]){Te=fe[Fe],Oe=we[Fe];break}return Te<Oe?-1:Oe<Te?1:0};function N(ee,G,Z,de,Ae){if(ee.length===0)return-1;if(typeof Z=="string"?(de=Z,Z=0):Z>2147483647?Z=2147483647:Z<-2147483648&&(Z=-2147483648),Z=+Z,se(Z)&&(Z=Ae?0:ee.length-1),Z<0&&(Z=ee.length+Z),Z>=ee.length){if(Ae)return-1;Z=ee.length-1}else if(Z<0)if(Ae)Z=0;else return-1;if(typeof G=="string"&&(G=l.from(G,de)),l.isBuffer(G))return G.length===0?-1:U(ee,G,Z,de,Ae);if(typeof G=="number")return G=G&255,typeof Uint8Array.prototype.indexOf=="function"?Ae?Uint8Array.prototype.indexOf.call(ee,G,Z):Uint8Array.prototype.lastIndexOf.call(ee,G,Z):U(ee,[G],Z,de,Ae);throw new TypeError("val must be string, number or Buffer")}function U(ee,G,Z,de,Ae){var K=1,Te=ee.length,Oe=G.length;if(de!==void 0&&(de=String(de).toLowerCase(),de==="ucs2"||de==="ucs-2"||de==="utf16le"||de==="utf-16le")){if(ee.length<2||G.length<2)return-1;K=2,Te/=2,Oe/=2,Z/=2}function ie(Pe,$e){return K===1?Pe[$e]:Pe.readUInt16BE($e*K)}var fe;if(Ae){var we=-1;for(fe=Z;fe<Te;fe++)if(ie(ee,fe)===ie(G,we===-1?0:fe-we)){if(we===-1&&(we=fe),fe-we+1===Oe)return we*K}else we!==-1&&(fe-=fe-we),we=-1}else for(Z+Oe>Te&&(Z=Te-Oe),fe=Z;fe>=0;fe--){for(var Fe=!0,Ue=0;Ue<Oe;Ue++)if(ie(ee,fe+Ue)!==ie(G,Ue)){Fe=!1;break}if(Fe)return fe}return-1}l.prototype.includes=function(G,Z,de){return this.indexOf(G,Z,de)!==-1},l.prototype.indexOf=function(G,Z,de){return N(this,G,Z,de,!0)},l.prototype.lastIndexOf=function(G,Z,de){return N(this,G,Z,de,!1)};function z(ee,G,Z,de){Z=Number(Z)||0;var Ae=ee.length-Z;de?(de=Number(de),de>Ae&&(de=Ae)):de=Ae;var K=G.length;de>K/2&&(de=K/2);for(var Te=0;Te<de;++Te){var Oe=parseInt(G.substr(Te*2,2),16);if(se(Oe))return Te;ee[Z+Te]=Oe}return Te}function W(ee,G,Z,de){return Ce(ne(G,ee.length-Z),ee,Z,de)}function X(ee,G,Z,de){return Ce(Q(G),ee,Z,de)}function J(ee,G,Z,de){return X(ee,G,Z,de)}function H(ee,G,Z,de){return Ce(ve(G),ee,Z,de)}function I(ee,G,Z,de){return Ce(re(G,ee.length-Z),ee,Z,de)}l.prototype.write=function(G,Z,de,Ae){if(Z===void 0)Ae="utf8",de=this.length,Z=0;else if(de===void 0&&typeof Z=="string")Ae=Z,de=this.length,Z=0;else if(isFinite(Z))Z=Z>>>0,isFinite(de)?(de=de>>>0,Ae===void 0&&(Ae="utf8")):(Ae=de,de=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-Z;if((de===void 0||de>K)&&(de=K),G.length>0&&(de<0||Z<0)||Z>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ae||(Ae="utf8");for(var Te=!1;;)switch(Ae){case"hex":return z(this,G,Z,de);case"utf8":case"utf-8":return W(this,G,Z,de);case"ascii":return X(this,G,Z,de);case"latin1":case"binary":return J(this,G,Z,de);case"base64":return H(this,G,Z,de);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,G,Z,de);default:if(Te)throw new TypeError("Unknown encoding: "+Ae);Ae=(""+Ae).toLowerCase(),Te=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(ee,G,Z){return G===0&&Z===ee.length?o.fromByteArray(ee):o.fromByteArray(ee.slice(G,Z))}function E(ee,G,Z){Z=Math.min(ee.length,Z);for(var de=[],Ae=G;Ae<Z;){var K=ee[Ae],Te=null,Oe=K>239?4:K>223?3:K>191?2:1;if(Ae+Oe<=Z){var ie,fe,we,Fe;switch(Oe){case 1:K<128&&(Te=K);break;case 2:ie=ee[Ae+1],(ie&192)===128&&(Fe=(K&31)<<6|ie&63,Fe>127&&(Te=Fe));break;case 3:ie=ee[Ae+1],fe=ee[Ae+2],(ie&192)===128&&(fe&192)===128&&(Fe=(K&15)<<12|(ie&63)<<6|fe&63,Fe>2047&&(Fe<55296||Fe>57343)&&(Te=Fe));break;case 4:ie=ee[Ae+1],fe=ee[Ae+2],we=ee[Ae+3],(ie&192)===128&&(fe&192)===128&&(we&192)===128&&(Fe=(K&15)<<18|(ie&63)<<12|(fe&63)<<6|we&63,Fe>65535&&Fe<1114112&&(Te=Fe))}}Te===null?(Te=65533,Oe=1):Te>65535&&(Te-=65536,de.push(Te>>>10&1023|55296),Te=56320|Te&1023),de.push(Te),Ae+=Oe}return B(de)}var A=4096;function B(ee){var G=ee.length;if(G<=A)return String.fromCharCode.apply(String,ee);for(var Z="",de=0;de<G;)Z+=String.fromCharCode.apply(String,ee.slice(de,de+=A));return Z}function L(ee,G,Z){var de="";Z=Math.min(ee.length,Z);for(var Ae=G;Ae<Z;++Ae)de+=String.fromCharCode(ee[Ae]&127);return de}function P(ee,G,Z){var de="";Z=Math.min(ee.length,Z);for(var Ae=G;Ae<Z;++Ae)de+=String.fromCharCode(ee[Ae]);return de}function R(ee,G,Z){var de=ee.length;(!G||G<0)&&(G=0),(!Z||Z<0||Z>de)&&(Z=de);for(var Ae="",K=G;K<Z;++K)Ae+=q(ee[K]);return Ae}function C(ee,G,Z){for(var de=ee.slice(G,Z),Ae="",K=0;K<de.length;K+=2)Ae+=String.fromCharCode(de[K]+de[K+1]*256);return Ae}l.prototype.slice=function(G,Z){var de=this.length;G=~~G,Z=Z===void 0?de:~~Z,G<0?(G+=de,G<0&&(G=0)):G>de&&(G=de),Z<0?(Z+=de,Z<0&&(Z=0)):Z>de&&(Z=de),Z<G&&(Z=G);var Ae=this.subarray(G,Z);return Ae.__proto__=l.prototype,Ae};function S(ee,G,Z){if(ee%1!==0||ee<0)throw new RangeError("offset is not uint");if(ee+G>Z)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function(G,Z,de){G=G>>>0,Z=Z>>>0,de||S(G,Z,this.length);for(var Ae=this[G],K=1,Te=0;++Te<Z&&(K*=256);)Ae+=this[G+Te]*K;return Ae},l.prototype.readUIntBE=function(G,Z,de){G=G>>>0,Z=Z>>>0,de||S(G,Z,this.length);for(var Ae=this[G+--Z],K=1;Z>0&&(K*=256);)Ae+=this[G+--Z]*K;return Ae},l.prototype.readUInt8=function(G,Z){return G=G>>>0,Z||S(G,1,this.length),this[G]},l.prototype.readUInt16LE=function(G,Z){return G=G>>>0,Z||S(G,2,this.length),this[G]|this[G+1]<<8},l.prototype.readUInt16BE=function(G,Z){return G=G>>>0,Z||S(G,2,this.length),this[G]<<8|this[G+1]},l.prototype.readUInt32LE=function(G,Z){return G=G>>>0,Z||S(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+this[G+3]*16777216},l.prototype.readUInt32BE=function(G,Z){return G=G>>>0,Z||S(G,4,this.length),this[G]*16777216+(this[G+1]<<16|this[G+2]<<8|this[G+3])},l.prototype.readIntLE=function(G,Z,de){G=G>>>0,Z=Z>>>0,de||S(G,Z,this.length);for(var Ae=this[G],K=1,Te=0;++Te<Z&&(K*=256);)Ae+=this[G+Te]*K;return K*=128,Ae>=K&&(Ae-=Math.pow(2,8*Z)),Ae},l.prototype.readIntBE=function(G,Z,de){G=G>>>0,Z=Z>>>0,de||S(G,Z,this.length);for(var Ae=Z,K=1,Te=this[G+--Ae];Ae>0&&(K*=256);)Te+=this[G+--Ae]*K;return K*=128,Te>=K&&(Te-=Math.pow(2,8*Z)),Te},l.prototype.readInt8=function(G,Z){return G=G>>>0,Z||S(G,1,this.length),this[G]&128?(255-this[G]+1)*-1:this[G]},l.prototype.readInt16LE=function(G,Z){G=G>>>0,Z||S(G,2,this.length);var de=this[G]|this[G+1]<<8;return de&32768?de|4294901760:de},l.prototype.readInt16BE=function(G,Z){G=G>>>0,Z||S(G,2,this.length);var de=this[G+1]|this[G]<<8;return de&32768?de|4294901760:de},l.prototype.readInt32LE=function(G,Z){return G=G>>>0,Z||S(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},l.prototype.readInt32BE=function(G,Z){return G=G>>>0,Z||S(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},l.prototype.readFloatLE=function(G,Z){return G=G>>>0,Z||S(G,4,this.length),h.read(this,G,!0,23,4)},l.prototype.readFloatBE=function(G,Z){return G=G>>>0,Z||S(G,4,this.length),h.read(this,G,!1,23,4)},l.prototype.readDoubleLE=function(G,Z){return G=G>>>0,Z||S(G,8,this.length),h.read(this,G,!0,52,8)},l.prototype.readDoubleBE=function(G,Z){return G=G>>>0,Z||S(G,8,this.length),h.read(this,G,!1,52,8)};function D(ee,G,Z,de,Ae,K){if(!l.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(G>Ae||G<K)throw new RangeError('"value" argument is out of bounds');if(Z+de>ee.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function(G,Z,de,Ae){if(G=+G,Z=Z>>>0,de=de>>>0,!Ae){var K=Math.pow(2,8*de)-1;D(this,G,Z,de,K,0)}var Te=1,Oe=0;for(this[Z]=G&255;++Oe<de&&(Te*=256);)this[Z+Oe]=G/Te&255;return Z+de},l.prototype.writeUIntBE=function(G,Z,de,Ae){if(G=+G,Z=Z>>>0,de=de>>>0,!Ae){var K=Math.pow(2,8*de)-1;D(this,G,Z,de,K,0)}var Te=de-1,Oe=1;for(this[Z+Te]=G&255;--Te>=0&&(Oe*=256);)this[Z+Te]=G/Oe&255;return Z+de},l.prototype.writeUInt8=function(G,Z,de){return G=+G,Z=Z>>>0,de||D(this,G,Z,1,255,0),this[Z]=G&255,Z+1},l.prototype.writeUInt16LE=function(G,Z,de){return G=+G,Z=Z>>>0,de||D(this,G,Z,2,65535,0),this[Z]=G&255,this[Z+1]=G>>>8,Z+2},l.prototype.writeUInt16BE=function(G,Z,de){return G=+G,Z=Z>>>0,de||D(this,G,Z,2,65535,0),this[Z]=G>>>8,this[Z+1]=G&255,Z+2},l.prototype.writeUInt32LE=function(G,Z,de){return G=+G,Z=Z>>>0,de||D(this,G,Z,4,4294967295,0),this[Z+3]=G>>>24,this[Z+2]=G>>>16,this[Z+1]=G>>>8,this[Z]=G&255,Z+4},l.prototype.writeUInt32BE=function(G,Z,de){return G=+G,Z=Z>>>0,de||D(this,G,Z,4,4294967295,0),this[Z]=G>>>24,this[Z+1]=G>>>16,this[Z+2]=G>>>8,this[Z+3]=G&255,Z+4},l.prototype.writeIntLE=function(G,Z,de,Ae){if(G=+G,Z=Z>>>0,!Ae){var K=Math.pow(2,8*de-1);D(this,G,Z,de,K-1,-K)}var Te=0,Oe=1,ie=0;for(this[Z]=G&255;++Te<de&&(Oe*=256);)G<0&&ie===0&&this[Z+Te-1]!==0&&(ie=1),this[Z+Te]=(G/Oe>>0)-ie&255;return Z+de},l.prototype.writeIntBE=function(G,Z,de,Ae){if(G=+G,Z=Z>>>0,!Ae){var K=Math.pow(2,8*de-1);D(this,G,Z,de,K-1,-K)}var Te=de-1,Oe=1,ie=0;for(this[Z+Te]=G&255;--Te>=0&&(Oe*=256);)G<0&&ie===0&&this[Z+Te+1]!==0&&(ie=1),this[Z+Te]=(G/Oe>>0)-ie&255;return Z+de},l.prototype.writeInt8=function(G,Z,de){return G=+G,Z=Z>>>0,de||D(this,G,Z,1,127,-128),G<0&&(G=255+G+1),this[Z]=G&255,Z+1},l.prototype.writeInt16LE=function(G,Z,de){return G=+G,Z=Z>>>0,de||D(this,G,Z,2,32767,-32768),this[Z]=G&255,this[Z+1]=G>>>8,Z+2},l.prototype.writeInt16BE=function(G,Z,de){return G=+G,Z=Z>>>0,de||D(this,G,Z,2,32767,-32768),this[Z]=G>>>8,this[Z+1]=G&255,Z+2},l.prototype.writeInt32LE=function(G,Z,de){return G=+G,Z=Z>>>0,de||D(this,G,Z,4,2147483647,-2147483648),this[Z]=G&255,this[Z+1]=G>>>8,this[Z+2]=G>>>16,this[Z+3]=G>>>24,Z+4},l.prototype.writeInt32BE=function(G,Z,de){return G=+G,Z=Z>>>0,de||D(this,G,Z,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),this[Z]=G>>>24,this[Z+1]=G>>>16,this[Z+2]=G>>>8,this[Z+3]=G&255,Z+4};function V(ee,G,Z,de,Ae,K){if(Z+de>ee.length)throw new RangeError("Index out of range");if(Z<0)throw new RangeError("Index out of range")}function te(ee,G,Z,de,Ae){return G=+G,Z=Z>>>0,Ae||V(ee,G,Z,4),h.write(ee,G,Z,de,23,4),Z+4}l.prototype.writeFloatLE=function(G,Z,de){return te(this,G,Z,!0,de)},l.prototype.writeFloatBE=function(G,Z,de){return te(this,G,Z,!1,de)};function oe(ee,G,Z,de,Ae){return G=+G,Z=Z>>>0,Ae||V(ee,G,Z,8),h.write(ee,G,Z,de,52,8),Z+8}l.prototype.writeDoubleLE=function(G,Z,de){return oe(this,G,Z,!0,de)},l.prototype.writeDoubleBE=function(G,Z,de){return oe(this,G,Z,!1,de)},l.prototype.copy=function(G,Z,de,Ae){if(!l.isBuffer(G))throw new TypeError("argument should be a Buffer");if(de||(de=0),!Ae&&Ae!==0&&(Ae=this.length),Z>=G.length&&(Z=G.length),Z||(Z=0),Ae>0&&Ae<de&&(Ae=de),Ae===de||G.length===0||this.length===0)return 0;if(Z<0)throw new RangeError("targetStart out of bounds");if(de<0||de>=this.length)throw new RangeError("Index out of range");if(Ae<0)throw new RangeError("sourceEnd out of bounds");Ae>this.length&&(Ae=this.length),G.length-Z<Ae-de&&(Ae=G.length-Z+de);var K=Ae-de;if(this===G&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Z,de,Ae);else if(this===G&&de<Z&&Z<Ae)for(var Te=K-1;Te>=0;--Te)G[Te+Z]=this[Te+de];else Uint8Array.prototype.set.call(G,this.subarray(de,Ae),Z);return K},l.prototype.fill=function(G,Z,de,Ae){if(typeof G=="string"){if(typeof Z=="string"?(Ae=Z,Z=0,de=this.length):typeof de=="string"&&(Ae=de,de=this.length),Ae!==void 0&&typeof Ae!="string")throw new TypeError("encoding must be a string");if(typeof Ae=="string"&&!l.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);if(G.length===1){var K=G.charCodeAt(0);(Ae==="utf8"&&K<128||Ae==="latin1")&&(G=K)}}else typeof G=="number"&&(G=G&255);if(Z<0||this.length<Z||this.length<de)throw new RangeError("Out of range index");if(de<=Z)return this;Z=Z>>>0,de=de===void 0?this.length:de>>>0,G||(G=0);var Te;if(typeof G=="number")for(Te=Z;Te<de;++Te)this[Te]=G;else{var Oe=l.isBuffer(G)?G:l.from(G,Ae),ie=Oe.length;if(ie===0)throw new TypeError('The value "'+G+'" is invalid for argument "value"');for(Te=0;Te<de-Z;++Te)this[Te+Z]=Oe[Te%ie]}return this};var he=/[^+/0-9A-Za-z-_]/g;function Ne(ee){if(ee=ee.split("=")[0],ee=ee.trim().replace(he,""),ee.length<2)return"";for(;ee.length%4!==0;)ee=ee+"=";return ee}function q(ee){return ee<16?"0"+ee.toString(16):ee.toString(16)}function ne(ee,G){G=G||1/0;for(var Z,de=ee.length,Ae=null,K=[],Te=0;Te<de;++Te){if(Z=ee.charCodeAt(Te),Z>55295&&Z<57344){if(!Ae){if(Z>56319){(G-=3)>-1&&K.push(239,191,189);continue}else if(Te+1===de){(G-=3)>-1&&K.push(239,191,189);continue}Ae=Z;continue}if(Z<56320){(G-=3)>-1&&K.push(239,191,189),Ae=Z;continue}Z=(Ae-55296<<10|Z-56320)+65536}else Ae&&(G-=3)>-1&&K.push(239,191,189);if(Ae=null,Z<128){if((G-=1)<0)break;K.push(Z)}else if(Z<2048){if((G-=2)<0)break;K.push(Z>>6|192,Z&63|128)}else if(Z<65536){if((G-=3)<0)break;K.push(Z>>12|224,Z>>6&63|128,Z&63|128)}else if(Z<1114112){if((G-=4)<0)break;K.push(Z>>18|240,Z>>12&63|128,Z>>6&63|128,Z&63|128)}else throw new Error("Invalid code point")}return K}function Q(ee){for(var G=[],Z=0;Z<ee.length;++Z)G.push(ee.charCodeAt(Z)&255);return G}function re(ee,G){for(var Z,de,Ae,K=[],Te=0;Te<ee.length&&!((G-=2)<0);++Te)Z=ee.charCodeAt(Te),de=Z>>8,Ae=Z%256,K.push(Ae),K.push(de);return K}function ve(ee){return o.toByteArray(Ne(ee))}function Ce(ee,G,Z,de){for(var Ae=0;Ae<de&&!(Ae+Z>=G.length||Ae>=ee.length);++Ae)G[Ae+Z]=ee[Ae];return Ae}function ce(ee,G){return ee instanceof G||ee!=null&&ee.constructor!=null&&ee.constructor.name!=null&&ee.constructor.name===G.name}function se(ee){return ee!==ee}}).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,w=p===7,y=p===5||g;return function(_,k,F,O){for(var N=c(_),U=h(N),z=s(k,F),W=a(U),X=0,J=O||f,H=m?J(_,W):d||w?J(_,0):void 0,I,M;W>X;X++)if((y||X in U)&&(I=U[X],M=z(I,X,N),p))if(m)H[X]=M;else if(M)switch(p){case 3:return!0;case 5:return I;case 6:return X;case 2:l(H,I)}else switch(p){case 4:return!1;case 7:l(H,I)}return g?-1:v||x?x:H}};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,w,y,_,k;if(d?g=s:v?g=s[m]||a(m,{}):g=(s[m]||{}).prototype,g)for(w in p){if(_=p[w],u.dontCallGetSet?(k=o(g,w),y=k&&k.value):y=g[w],x=l(d?w:m+(v?".":"#")+w,u.forced),!x&&y!==void 0){if(typeof _==typeof y)continue;f(_,y)}(u.sham||y&&y.sham)&&h(_,"sham",!0),c(g,w,_,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,w){if(x)return x=!1,w;if(o(this))return w;for(var y=0;y<v;y++)if(p[y]===g)return w}}}},{"../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 Qt<"u"?Qt: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,w=function(F){return g(F)?x(F):v(F,{})},y=function(F){return function(O){var N;if(!h(O)||(N=x(O)).type!==F)throw new m("Incompatible receiver, "+F+" required");return N}};if(s||f.state){var _=f.state||(f.state=new d);_.get=_.get,_.has=_.has,_.set=_.set,v=function(F,O){if(_.has(F))throw new m(p);return O.facade=F,_.set(F,O),O},x=function(F){return _.get(F)||{}},g=function(F){return _.has(F)}}else{var k=l("state");u[k]=!0,v=function(F,O){if(a(F,k))throw new m(p);return O.facade=F,c(F,k,O),O},x=function(F){return a(F,k)?F[k]:{}},g=function(F){return a(F,k)}}n.exports={set:v,get:x,has:g,enforce:w,getterFor:y}},{"../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(y){if(!h(y))return!1;try{return p(l,u,y),!0}catch{return!1}},g=function(y){if(!h(y))return!1;switch(c(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!d(m,f(y))}catch{return!0}};g.sham=!0,n.exports=!p||o(function(){var w;return x(x.call)||!x(Object)||!x(function(){w=!0})||w})?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,w){this.stopped=g,this.result=w},x=v.prototype;n.exports=function(g,w,y){var _=y&&y.that,k=!!(y&&y.AS_ENTRIES),F=!!(y&&y.IS_RECORD),O=!!(y&&y.IS_ITERATOR),N=!!(y&&y.INTERRUPTED),U=s(w,_),z,W,X,J,H,I,M,E=function(B){return z&&m(z,"normal",B),new v(!0,B)},A=function(B){return k?(h(B),N?U(B[0],B[1],E):U(B[0],B[1])):N?U(B,E):U(B)};if(F)z=g.iterator;else if(O)z=g;else{if(W=p(g),!W)throw new d(c(g)+" is not iterable");if(a(W)){for(X=0,J=f(g);J>X;X++)if(H=A(g[X]),H&&l(x,H))return H;return new v(!1)}z=u(g,W)}for(I=F?g.next:z.next;!(M=o(I,z)).done;){try{H=A(M.value)}catch(B){m(z,"throw",B)}if(typeof H=="object"&&H&&l(x,H))return H}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"),w=c.PROPER,y=c.CONFIGURABLE,_=g.IteratorPrototype,k=g.BUGGY_SAFARI_ITERATORS,F=v("iterator"),O="keys",N="values",U="entries",z=function(){return this};n.exports=function(W,X,J,H,I,M,E){f(J,X,H);var A=function(oe){if(oe===I&&C)return C;if(!k&&oe&&oe in P)return P[oe];switch(oe){case O:return function(){return new J(this,oe)};case N:return function(){return new J(this,oe)};case U:return function(){return new J(this,oe)}}return function(){return new J(this)}},B=X+" Iterator",L=!1,P=W.prototype,R=P[F]||P["@@iterator"]||I&&P[I],C=!k&&R||A(I),S=X==="Array"&&P.entries||R,D,V,te;if(S&&(D=l(S.call(new W)),D!==Object.prototype&&D.next&&(!h&&l(D)!==_&&(u?u(D,_):a(D[F])||d(D,F,z)),p(D,B,!0,!0),h&&(x[B]=z))),w&&I===N&&R&&R.name!==N&&(!h&&y?m(P,"name",N):(L=!0,C=function(){return o(R,this)})),I)if(V={values:A(N),keys:M?C:A(O),entries:A(U)},E)for(te in V)(k||L||!(te in P))&&d(P,te,V[te]);else s({target:X,proto:!0,forced:k||L},V);return(!h||E)&&P[F]!==C&&d(P,F,C,{name:I}),x[X]=C,V}},{"../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 w={};return d[p].call(w)!==w});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),w=s([].join),y=a&&!o(function(){return v(function(){},"length",{value:8}).length!==8}),_=String(String).split("String"),k=n.exports=function(F,O,N){x(d(O),0,7)==="Symbol("&&(O="["+g(d(O),/^Symbol\(([^)]*)\)/,"$1")+"]"),N&&N.getter&&(O="get "+O),N&&N.setter&&(O="set "+O),(!c(F,"name")||f&&F.name!==O)&&(a?v(F,"name",{value:O,configurable:!0}):F.name=O),y&&N&&c(N,"arity")&&F.length!==N.arity&&v(F,"length",{value:N.arity});try{N&&c(N,"constructor")&&N.constructor?a&&v(F,"prototype",{writable:!1}):F.prototype&&(F.prototype=void 0)}catch{}var U=p(F);return c(U,"source")||(U.source=w(_,typeof O=="string"?O:"")),F};Function.prototype.toString=k(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"),w=g&&g.value,y,_,k,F,O;if(!w){var N=new a,U=function(){var z,W;for(p&&(z=v.domain)&&z.exit();W=N.get();)try{W()}catch(X){throw N.head&&y(),X}z&&z.enter()};!f&&!p&&!u&&m&&d?(_=!0,k=d.createTextNode(""),new m(U).observe(k,{characterData:!0}),y=function(){k.data=_=!_}):!l&&x&&x.resolve?(F=x.resolve(void 0),F.constructor=x,O=o(F.then,F),y=function(){O(U)}):p?y=function(){v.nextTick(U)}:(c=o(c,s),y=function(){c(U)}),w=function(z){N.head||y(),N.add(z)}}n.exports=w},{"../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={},w=Symbol("assign detection"),y="abcdefghijklmnopqrst";return x[w]=7,y.split("").forEach(function(_){g[_]=_}),m({},x)[w]!==7||a(m({},g)).join("")!==y})?function(g,w){for(var y=u(g),_=arguments.length,k=1,F=f.f,O=l.f;_>k;)for(var N=p(arguments[k++]),U=F?v(a(N),F(N)):a(N),z=U.length,W=0,X;z>W;)X=U[W++],(!s||h(O,N,X))&&(y[X]=N[X]);return y}: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(F){return p+d+u+F+p+"/"+d+u},w=function(F){F.write(g("")),F.close();var O=F.parentWindow.Object;return F=null,O},y=function(){var F=f("iframe"),O="java"+d+":",N;return F.style.display="none",a.appendChild(F),F.src=String(O),N=F.contentWindow.document,N.open(),N.write(g("document.F=Object")),N.close(),N.F},_,k=function(){try{_=new ActiveXObject("htmlfile")}catch{}k=typeof document<"u"?document.domain&&_?w(_):y():w(_);for(var F=h.length;F--;)delete k[m][h[F]];return k()};c[v]=!0,n.exports=Object.create||function(O,N){var U;return O!==null?(x[m]=s(O),U=new x,x[m]=null,U[v]=O):U=k(),N===void 0?U:o.f(U,N)}},{"../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,w){if(c(x),g=a(g),c(w),typeof x=="function"&&g==="prototype"&&"value"in w&&d in w&&!w[d]){var y=u(x,g);y&&y[d]&&(x[g]=w.value,w={configurable:m in w?w[m]:y[m],enumerable:p in w?w[p]:y[p],writable:!1})}return l(x,g,w)}:l:function(x,g,w){if(c(x),g=a(g),c(w),o)try{return l(x,g,w)}catch{}if("get"in w||"set"in w)throw new f("Accessors not supported");return"value"in w&&(x[g]=w.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),w=a(g),y=m&&c(g)===null,_=w.length,k=0,F=[],O;_>k;)O=w[k++],(!s||(y?O in g:u(g,O)))&&p(F,v?[O,g[O]]:g[O]);return F}};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),w=c("Promise",function(){var y=a(o),_=y!==String(o);if(!_&&m===66||p&&!(d.catch&&d.finally))return!0;if(!m||m<51||!/native code/.test(y)){var k=new o(function(N){N(1)}),F=function(N){N(function(){},function(){})},O=k.constructor={};if(O[v]=F,x=k.then(function(){})instanceof F,!x)return!0}return!_&&(l||u)&&!g});n.exports={CONSTRUCTOR:w,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,w=s.process,y=s.Dispatch,_=s.Function,k=s.MessageChannel,F=s.String,O=0,N={},U="onreadystatechange",z,W,X,J;f(function(){z=s.location});var H=function(A){if(a(N,A)){var B=N[A];delete N[A],B()}},I=function(A){return function(){H(A)}},M=function(A){H(A.data)},E=function(A){s.postMessage(F(A),z.protocol+"//"+z.host)};(!x||!g)&&(x=function(B){m(arguments.length,1);var L=c(B)?B:_(B),P=u(arguments,1);return N[++O]=function(){o(L,void 0,P)},W(O),O},g=function(B){delete N[B]},v?W=function(A){w.nextTick(I(A))}:y&&y.now?W=function(A){y.now(I(A))}:k&&!d?(X=new k,J=X.port2,X.port1.onmessage=M,W=h(J.postMessage,J)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&z&&z.protocol!=="file:"&&!f(E)?(W=E,s.addEventListener("message",M,!1)):U in p("script")?W=function(A){l.appendChild(p("script"))[U]=function(){l.removeChild(this),H(A)}}:W=function(A){setTimeout(I(A),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,w){d(this,{type:m,target:s(g),index:0,kind:w})},function(){var g=v(this),w=g.target,y=g.kind,_=g.index++;if(!w||_>=w.length)return g.target=void 0,l(void 0,!0);switch(y){case"keys":return l(_,!1);case"values":return l(w[_],!1)}return l([_,w[_]],!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),w=a("".charAt),y=a("".charCodeAt),_=a("".replace),k=a(1 .toString),F=/[\uD800-\uDFFF]/g,O=/^[\uD800-\uDBFF]$/,N=/^[\uDC00-\uDFFF]$/,U=!d||f(function(){var J=o("Symbol")("stringify detection");return x([J])!=="[null]"||x({a:J})!=="{}"||x(Object(J))!=="{}"}),z=f(function(){return x("\uDF06\uD834")!=='"\\udf06\\ud834"'||x("\uDEAD")!=='"\\udead"'}),W=function(J,H){var I=p(arguments),M=m(H);if(!(!l(M)&&(J===void 0||u(J))))return I[1]=function(E,A){if(l(M)&&(A=c(M,this,v(E),A)),!u(A))return A},h(x,null,I)},X=function(J,H,I){var M=w(I,H-1),E=w(I,H+1);return g(O,J)&&!g(N,E)||g(N,J)&&!g(O,M)?"\\u"+k(y(J,0),16):J};x&&s({target:"JSON",stat:!0,arity:3,forced:U||z},{stringify:function(H,I,M){var E=p(arguments),A=h(U?W:x,null,E);return z&&typeof A=="string"?_(A,F,X):A}})},{"../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 w=h(m.resolve),y=[],_=0,k=1;f(p,function(F){var O=_++,N=!1;k++,o(w,m,F).then(function(U){N||(N=!0,y[O]=U,--k||v(y))},x)}),--k||v(y)});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"),w=e("../internals/task").set,y=e("../internals/microtask"),_=e("../internals/host-report-errors"),k=e("../internals/perform"),F=e("../internals/queue"),O=e("../internals/internal-state"),N=e("../internals/promise-native-constructor"),U=e("../internals/promise-constructor-detection"),z=e("../internals/new-promise-capability"),W="Promise",X=U.CONSTRUCTOR,J=U.REJECTION_EVENT,H=U.SUBCLASSING,I=O.getterFor(W),M=O.set,E=N&&N.prototype,A=N,B=E,L=c.TypeError,P=c.document,R=c.process,C=z.f,S=C,D=!!(P&&P.createEvent&&c.dispatchEvent),V="unhandledrejection",te="rejectionhandled",oe=0,he=1,Ne=2,q=1,ne=2,Q,re,ve,Ce,ce=function(ie){var fe;return v(ie)&&d(fe=ie.then)?fe:!1},se=function(ie,fe){var we=fe.value,Fe=fe.state===he,Ue=Fe?ie.ok:ie.fail,Pe=ie.resolve,$e=ie.reject,rt=ie.domain,Ze,Se,je;try{Ue?(Fe||(fe.rejection===ne&&Ae(fe),fe.rejection=q),Ue===!0?Ze=we:(rt&&rt.enter(),Ze=Ue(we),rt&&(rt.exit(),je=!0)),Ze===ie.promise?$e(new L("Promise-chain cycle")):(Se=ce(Ze))?a(Se,Ze,Pe,$e):Pe(Ze)):$e(we)}catch(Ke){rt&&!je&&rt.exit(),$e(Ke)}},ee=function(ie,fe){ie.notified||(ie.notified=!0,y(function(){for(var we=ie.reactions,Fe;Fe=we.get();)se(Fe,ie);ie.notified=!1,fe&&!ie.rejection&&Z(ie)}))},G=function(ie,fe,we){var Fe,Ue;D?(Fe=P.createEvent("Event"),Fe.promise=fe,Fe.reason=we,Fe.initEvent(ie,!1,!0),c.dispatchEvent(Fe)):Fe={promise:fe,reason:we},!J&&(Ue=c["on"+ie])?Ue(Fe):ie===V&&_("Unhandled promise rejection",we)},Z=function(ie){a(w,c,function(){var fe=ie.facade,we=ie.value,Fe=de(ie),Ue;if(Fe&&(Ue=k(function(){h?R.emit("unhandledRejection",we,fe):G(V,fe,we)}),ie.rejection=h||de(ie)?ne:q,Ue.error))throw Ue.value})},de=function(ie){return ie.rejection!==q&&!ie.parent},Ae=function(ie){a(w,c,function(){var fe=ie.facade;h?R.emit("rejectionHandled",fe):G(te,fe,ie.value)})},K=function(ie,fe,we){return function(Fe){ie(fe,Fe,we)}},Te=function(ie,fe,we){ie.done||(ie.done=!0,we&&(ie=we),ie.value=fe,ie.state=Ne,ee(ie,!0))},Oe=function(ie,fe,we){if(!ie.done){ie.done=!0,we&&(ie=we);try{if(ie.facade===fe)throw new L("Promise can't be resolved itself");var Fe=ce(fe);Fe?y(function(){var Ue={done:!1};try{a(Fe,fe,K(Oe,Ue,ie),K(Te,Ue,ie))}catch(Pe){Te(Ue,Pe,ie)}}):(ie.value=fe,ie.state=he,ee(ie,!1))}catch(Ue){Te({done:!1},Ue,ie)}}};if(X&&(A=function(fe){x(this,B),m(fe),a(Q,this);var we=I(this);try{fe(K(Oe,we),K(Te,we))}catch(Fe){Te(we,Fe)}},B=A.prototype,Q=function(fe){M(this,{type:W,done:!1,notified:!1,parent:!1,reactions:new F,rejection:!1,state:oe,value:void 0})},Q.prototype=f(B,"then",function(fe,we){var Fe=I(this),Ue=C(g(this,A));return Fe.parent=!0,Ue.ok=d(fe)?fe:!0,Ue.fail=d(we)&&we,Ue.domain=h?R.domain:void 0,Fe.state===oe?Fe.reactions.add(Ue):y(function(){se(Ue,Fe)}),Ue.promise}),re=function(){var ie=new Q,fe=I(ie);this.promise=ie,this.resolve=K(Oe,fe),this.reject=K(Te,fe)},z.f=C=function(ie){return ie===A||ie===ve?new re(ie):S(ie)},!o&&d(N)&&E!==Object.prototype)){Ce=E.then,H||f(E,"then",function(fe,we){var Fe=this;return new A(function(Ue,Pe){a(Ce,Fe,Ue,Pe)}).then(fe,we)},{unsafe:!0});try{delete E.constructor}catch{}l&&l(E,B)}s({global:!0,constructor:!0,wrap:!0,forced:X},{Promise:A}),u(A,W,!1,!0),p(W)},{"../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")),w=f(x);return this.then(w?function(y){return u(g,x()).then(function(){return y})}:x,w?function(y){return u(g,x()).then(function(){throw y})}: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(w){o(g,m,w).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"),w=e("../internals/create-property-descriptor"),y=e("../internals/object-create"),_=e("../internals/object-keys"),k=e("../internals/object-get-own-property-names"),F=e("../internals/object-get-own-property-names-external"),O=e("../internals/object-get-own-property-symbols"),N=e("../internals/object-get-own-property-descriptor"),U=e("../internals/object-define-property"),z=e("../internals/object-define-properties"),W=e("../internals/object-property-is-enumerable"),X=e("../internals/define-built-in"),J=e("../internals/define-built-in-accessor"),H=e("../internals/shared"),I=e("../internals/shared-key"),M=e("../internals/hidden-keys"),E=e("../internals/uid"),A=e("../internals/well-known-symbol"),B=e("../internals/well-known-symbol-wrapped"),L=e("../internals/well-known-symbol-define"),P=e("../internals/symbol-define-to-primitive"),R=e("../internals/set-to-string-tag"),C=e("../internals/internal-state"),S=e("../internals/array-iteration").forEach,D=I("hidden"),V="Symbol",te="prototype",oe=C.set,he=C.getterFor(V),Ne=Object[te],q=o.Symbol,ne=q&&q[te],Q=o.RangeError,re=o.TypeError,ve=o.QObject,Ce=N.f,ce=U.f,se=F.f,ee=W.f,G=c([].push),Z=H("symbols"),de=H("op-symbols"),Ae=H("wks"),K=!ve||!ve[te]||!ve[te].findChild,Te=function(Ze,Se,je){var Ke=Ce(Ne,Se);Ke&&delete Ne[Se],ce(Ze,Se,je),Ke&&Ze!==Ne&&ce(Ne,Se,Ke)},Oe=f&&u(function(){return y(ce({},"a",{get:function(){return ce(this,"a",{value:7}).a}})).a!==7})?Te:ce,ie=function(Ze,Se){var je=Z[Ze]=y(ne);return oe(je,{type:V,tag:Ze,description:Se}),f||(je.description=Se),je},fe=function(Se,je,Ke){Se===Ne&&fe(de,je,Ke),d(Se);var st=x(je);return d(Ke),p(Z,st)?(Ke.enumerable?(p(Se,D)&&Se[D][st]&&(Se[D][st]=!1),Ke=y(Ke,{enumerable:w(0,!1)})):(p(Se,D)||ce(Se,D,w(1,{})),Se[D][st]=!0),Oe(Se,st,Ke)):ce(Se,st,Ke)},we=function(Se,je){d(Se);var Ke=v(je),st=_(Ke).concat(rt(Ke));return S(st,function(St){(!f||h(Ue,Ke,St))&&fe(Se,St,Ke[St])}),Se},Fe=function(Se,je){return je===void 0?y(Se):we(y(Se),je)},Ue=function(Se){var je=x(Se),Ke=h(ee,this,je);return this===Ne&&p(Z,je)&&!p(de,je)?!1:Ke||!p(this,je)||!p(Z,je)||p(this,D)&&this[D][je]?Ke:!0},Pe=function(Se,je){var Ke=v(Se),st=x(je);if(!(Ke===Ne&&p(Z,st)&&!p(de,st))){var St=Ce(Ke,st);return St&&p(Z,st)&&!(p(Ke,D)&&Ke[D][st])&&(St.enumerable=!0),St}},$e=function(Se){var je=se(v(Se)),Ke=[];return S(je,function(st){!p(Z,st)&&!p(M,st)&&G(Ke,st)}),Ke},rt=function(Ze){var Se=Ze===Ne,je=se(Se?de:v(Ze)),Ke=[];return S(je,function(st){p(Z,st)&&(!Se||p(Ne,st))&&G(Ke,Z[st])}),Ke};l||(q=function(){if(m(ne,this))throw new re("Symbol is not a constructor");var Se=!arguments.length||arguments[0]===void 0?void 0:g(arguments[0]),je=E(Se),Ke=function(st){this===Ne&&h(Ke,de,st),p(this,D)&&p(this[D],je)&&(this[D][je]=!1);var St=w(1,st);try{Oe(this,je,St)}catch(At){if(!(At instanceof Q))throw At;Te(this,je,St)}};return f&&K&&Oe(Ne,je,{configurable:!0,set:Ke}),ie(je,Se)},ne=q[te],X(ne,"toString",function(){return he(this).tag}),X(q,"withoutSetter",function(Ze){return ie(E(Ze),Ze)}),W.f=Ue,U.f=fe,z.f=we,N.f=Pe,k.f=F.f=$e,O.f=rt,B.f=function(Ze){return ie(A(Ze),Ze)},f&&(J(ne,"description",{configurable:!0,get:function(){return he(this).description}}),a||X(Ne,"propertyIsEnumerable",Ue,{unsafe:!0}))),s({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:q}),S(_(Ae),function(Ze){L(Ze)}),s({target:V,stat:!0,forced:!l},{useSetter:function(){K=!0},useSimple:function(){K=!1}}),s({target:"Object",stat:!0,forced:!l,sham:!f},{create:Fe,defineProperty:fe,defineProperties:we,getOwnPropertyDescriptor:Pe}),s({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:$e}),P(),R(q,V),M[D]=!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(y){return Array.isArray?Array.isArray(y):w(y)==="[object Array]"}i.isArray=s;function o(y){return typeof y=="boolean"}i.isBoolean=o;function h(y){return y===null}i.isNull=h;function c(y){return y==null}i.isNullOrUndefined=c;function a(y){return typeof y=="number"}i.isNumber=a;function f(y){return typeof y=="string"}i.isString=f;function l(y){return typeof y=="symbol"}i.isSymbol=l;function u(y){return y===void 0}i.isUndefined=u;function p(y){return w(y)==="[object RegExp]"}i.isRegExp=p;function m(y){return typeof y=="object"&&y!==null}i.isObject=m;function d(y){return w(y)==="[object Date]"}i.isDate=d;function v(y){return w(y)==="[object Error]"||y instanceof Error}i.isError=v;function x(y){return typeof y=="function"}i.isFunction=x;function g(y){return y===null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"||typeof y=="symbol"||typeof y>"u"}i.isPrimitive=g,i.isBuffer=e("buffer").Buffer.isBuffer;function w(y){return Object.prototype.toString.call(y)}},{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),w=this._opad=c.allocUnsafe(v),y=0;y<v;y++)g[y]=d[y]^54,w[y]=d[y]^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",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|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,_={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(M){var E=["th","st","nd","rd"],A=M%100;return"["+M+(E[(A-20)%10]||E[A]||E[0])+"]"}},k=function(M,E,A){var B=String(M);return!B||B.length>=E?M:""+Array(E+1-B.length).join(A)+M},F={s:k,z:function(M){var E=-M.utcOffset(),A=Math.abs(E),B=Math.floor(A/60),L=A%60;return(E<=0?"+":"-")+k(B,2,"0")+":"+k(L,2,"0")},m:function M(E,A){if(E.date()<A.date())return-M(A,E);var B=12*(A.year()-E.year())+(A.month()-E.month()),L=E.clone().add(B,m),P=A-L<0,R=E.clone().add(B+(P?-1:1),m);return+(-(B+(A-L)/(P?L-R:R-L))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:m,y:v,w:p,d:u,D:x,h:l,m:f,s:a,ms:c,Q:d}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},O="en",N={};N[O]=_;var U="$isDayjsObject",z=function(M){return M instanceof H||!(!M||!M[U])},W=function M(E,A,B){var L;if(!E)return O;if(typeof E=="string"){var P=E.toLowerCase();N[P]&&(L=P),A&&(N[P]=A,L=P);var R=E.split("-");if(!L&&R.length>1)return M(R[0])}else{var C=E.name;N[C]=E,L=C}return!B&&L&&(O=L),L||!B&&O},X=function(M,E){if(z(M))return M.clone();var A=typeof E=="object"?E:{};return A.date=M,A.args=arguments,new H(A)},J=F;J.l=W,J.i=z,J.w=function(M,E){return X(M,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var H=function(){function M(A){this.$L=W(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[U]=!0}var E=M.prototype;return E.parse=function(A){this.$d=function(B){var L=B.date,P=B.utc;if(L===null)return new Date(NaN);if(J.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var R=L.match(w);if(R){var C=R[2]-1||0,S=(R[7]||"0").substring(0,3);return P?new Date(Date.UTC(R[1],C,R[3]||1,R[4]||0,R[5]||0,R[6]||0,S)):new Date(R[1],C,R[3]||1,R[4]||0,R[5]||0,R[6]||0,S)}}return new Date(L)}(A),this.init()},E.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},E.$utils=function(){return J},E.isValid=function(){return this.$d.toString()!==g},E.isSame=function(A,B){var L=X(A);return this.startOf(B)<=L&&L<=this.endOf(B)},E.isAfter=function(A,B){return X(A)<this.startOf(B)},E.isBefore=function(A,B){return this.endOf(B)<X(A)},E.$g=function(A,B,L){return J.u(A)?this[B]:this.set(L,A)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(A,B){var L=this,P=!!J.u(B)||B,R=J.p(A),C=function(q,ne){var Q=J.w(L.$u?Date.UTC(L.$y,ne,q):new Date(L.$y,ne,q),L);return P?Q:Q.endOf(u)},S=function(q,ne){return J.w(L.toDate()[q].apply(L.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(ne)),L)},D=this.$W,V=this.$M,te=this.$D,oe="set"+(this.$u?"UTC":"");switch(R){case v:return P?C(1,0):C(31,11);case m:return P?C(1,V):C(0,V+1);case p:var he=this.$locale().weekStart||0,Ne=(D<he?D+7:D)-he;return C(P?te-Ne:te+(6-Ne),V);case u:case x:return S(oe+"Hours",0);case l:return S(oe+"Minutes",1);case f:return S(oe+"Seconds",2);case a:return S(oe+"Milliseconds",3);default:return this.clone()}},E.endOf=function(A){return this.startOf(A,!1)},E.$set=function(A,B){var L,P=J.p(A),R="set"+(this.$u?"UTC":""),C=(L={},L[u]=R+"Date",L[x]=R+"Date",L[m]=R+"Month",L[v]=R+"FullYear",L[l]=R+"Hours",L[f]=R+"Minutes",L[a]=R+"Seconds",L[c]=R+"Milliseconds",L)[P],S=P===u?this.$D+(B-this.$W):B;if(P===m||P===v){var D=this.clone().set(x,1);D.$d[C](S),D.init(),this.$d=D.set(x,Math.min(this.$D,D.daysInMonth())).$d}else C&&this.$d[C](S);return this.init(),this},E.set=function(A,B){return this.clone().$set(A,B)},E.get=function(A){return this[J.p(A)]()},E.add=function(A,B){var L,P=this;A=Number(A);var R=J.p(B),C=function(V){var te=X(P);return J.w(te.date(te.date()+Math.round(V*A)),P)};if(R===m)return this.set(m,this.$M+A);if(R===v)return this.set(v,this.$y+A);if(R===u)return C(1);if(R===p)return C(7);var S=(L={},L[f]=o,L[l]=h,L[a]=s,L)[R]||1,D=this.$d.getTime()+A*S;return J.w(D,this)},E.subtract=function(A,B){return this.add(-1*A,B)},E.format=function(A){var B=this,L=this.$locale();if(!this.isValid())return L.invalidDate||g;var P=A||"YYYY-MM-DDTHH:mm:ssZ",R=J.z(this),C=this.$H,S=this.$m,D=this.$M,V=L.weekdays,te=L.months,oe=L.meridiem,he=function(ne,Q,re,ve){return ne&&(ne[Q]||ne(B,P))||re[Q].slice(0,ve)},Ne=function(ne){return J.s(C%12||12,ne,"0")},q=oe||function(ne,Q,re){var ve=ne<12?"AM":"PM";return re?ve.toLowerCase():ve};return P.replace(y,function(ne,Q){return Q||function(re){switch(re){case"YY":return String(B.$y).slice(-2);case"YYYY":return J.s(B.$y,4,"0");case"M":return D+1;case"MM":return J.s(D+1,2,"0");case"MMM":return he(L.monthsShort,D,te,3);case"MMMM":return he(te,D);case"D":return B.$D;case"DD":return J.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return he(L.weekdaysMin,B.$W,V,2);case"ddd":return he(L.weekdaysShort,B.$W,V,3);case"dddd":return V[B.$W];case"H":return String(C);case"HH":return J.s(C,2,"0");case"h":return Ne(1);case"hh":return Ne(2);case"a":return q(C,S,!0);case"A":return q(C,S,!1);case"m":return String(S);case"mm":return J.s(S,2,"0");case"s":return String(B.$s);case"ss":return J.s(B.$s,2,"0");case"SSS":return J.s(B.$ms,3,"0");case"Z":return R}return null}(ne)||R.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(A,B,L){var P,R=this,C=J.p(B),S=X(A),D=(S.utcOffset()-this.utcOffset())*o,V=this-S,te=function(){return J.m(R,S)};switch(C){case v:P=te()/12;break;case m:P=te();break;case d:P=te()/3;break;case p:P=(V-D)/6048e5;break;case u:P=(V-D)/864e5;break;case l:P=V/h;break;case f:P=V/o;break;case a:P=V/s;break;default:P=V}return L?P:J.a(P)},E.daysInMonth=function(){return this.endOf(m).$D},E.$locale=function(){return N[this.$L]},E.locale=function(A,B){if(!A)return this.$L;var L=this.clone(),P=W(A,B,!0);return P&&(L.$L=P),L},E.clone=function(){return J.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},M}(),I=H.prototype;return X.prototype=I,[["$ms",c],["$s",a],["$m",f],["$H",l],["$W",u],["$M",m],["$y",v],["$D",x]].forEach(function(M){I[M[1]]=function(E){return this.$g(E,M[0],M[1])}}),X.extend=function(M,E){return M.$i||(M(E,H,X),M.$i=!0),X},X.locale=W,X.isDayjs=z,X.unix=function(M){return X(1e3*M)},X.en=N[O],X.Ls=N,X.p={},X})},{}],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(w){this[g]=+w}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var y=w.match(/([+-]|\d\d)/g),_=60*y[1]+(+y[2]||0);return _===0?0:y[0]==="+"?-_:_}(g)}],m=function(g){var w=f[g];return w&&(w.indexOf?w:w.s.concat(w.f))},d=function(g,w){var y,_=f.meridiem;if(_){for(var k=1;k<=24;k+=1)if(g.indexOf(_(k,0,w))>-1){y=k>12;break}}else y=g===(w?"pm":"PM");return y},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 w=f.ordinal,y=g.match(/\d+/);if(this.day=y[0],w)for(var _=1;_<=31;_+=1)w(_).replace(/\[|\]/g,"")===g&&(this.day=_)}],M:[c,u("month")],MM:[h,u("month")],MMM:[a,function(g){var w=m("months"),y=(m("monthsShort")||w.map(function(_){return _.slice(0,3)})).indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[a,function(g){var w=m("months").indexOf(g)+1;if(w<1)throw new Error;this.month=w%12||w}],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 w,y;w=g,y=f&&f.formats;for(var _=(g=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(W,X,J){var H=J&&J.toUpperCase();return X||y[J]||s[J]||y[H].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,M,E){return M||E.slice(1)})})).match(o),k=_.length,F=0;F<k;F+=1){var O=_[F],N=v[O],U=N&&N[0],z=N&&N[1];_[F]=z?{regex:U,parser:z}:O.replace(/^\[|\]$/g,"")}return function(W){for(var X={},J=0,H=0;J<k;J+=1){var I=_[J];if(typeof I=="string")H+=I.length;else{var M=I.regex,E=I.parser,A=W.slice(H),B=M.exec(A)[0];E.call(X,B),W=W.replace(B,"")}}return function(L){var P=L.afternoon;if(P!==void 0){var R=L.hours;P?R<12&&(L.hours+=12):R===12&&(L.hours=0),delete L.afternoon}}(X),X}}return function(g,w,y){y.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(l=g.parseTwoDigitYear);var _=w.prototype,k=_.parse;_.parse=function(F){var O=F.date,N=F.utc,U=F.args;this.$u=N;var z=U[1];if(typeof z=="string"){var W=U[2]===!0,X=U[3]===!0,J=W||X,H=U[2];X&&(H=U[2]),f=this.$locale(),!W&&H&&(f=y.Ls[H]),this.$d=function(A,B,L){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*A);var P=x(B)(A),R=P.year,C=P.month,S=P.day,D=P.hours,V=P.minutes,te=P.seconds,oe=P.milliseconds,he=P.zone,Ne=new Date,q=S||(R||C?1:Ne.getDate()),ne=R||Ne.getFullYear(),Q=0;R&&!C||(Q=C>0?C-1:Ne.getMonth());var re=D||0,ve=V||0,Ce=te||0,ce=oe||0;return he?new Date(Date.UTC(ne,Q,q,re,ve,Ce,ce+60*he.offset*1e3)):L?new Date(Date.UTC(ne,Q,q,re,ve,Ce,ce)):new Date(ne,Q,q,re,ve,Ce,ce)}catch{return new Date("")}}(O,z,N),this.init(),H&&H!==!0&&(this.$L=this.locale(H).$L),J&&O!=this.format(z)&&(this.$d=new Date("")),f={}}else if(z instanceof Array)for(var I=z.length,M=1;M<=I;M+=1){U[1]=z[M-1];var E=y.apply(this,U);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}M===I&&(this.$d=new Date(""))}else k.call(this,F)}}})},{}],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 w={date:g,utc:!0,args:arguments};return new a(w)},l.utc=function(g){var w=f(this.toDate(),{locale:this.$L,utc:!0});return g?w.add(this.utcOffset(),s):w},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,w){var y=this.$utils().u;if(y(g))return this.$u?0:y(this.$offset)?m.call(this):this.$offset;if(typeof g=="string"&&(g=function(O){O===void 0&&(O="");var N=O.match(o);if(!N)return null;var U=(""+N[0]).match(h)||["-",0,0],z=U[0],W=60*+U[1]+ +U[2];return W===0?0:z==="+"?W:-W}(g),g===null))return this;var _=Math.abs(g)<=16?60*g:g,k=this;if(w)return k.$offset=_,k.$u=g===0,k;if(g!==0){var F=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(k=this.local().add(_+F,s)).$offset=_,k.$x.$localOffset=F}else k=this.utc();return k};var d=l.format;l.format=function(g){var w=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,w)},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,w,y){if(g&&this.$u===g.$u)return x.call(this,g,w,y);var _=this.local(),k=f(g).local();return x.call(_,k,w,y)}}})},{}],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),w=h.readUInt32BE(p,m+4);h.ip(g,w,x.tmp,0),g=x.tmp[0],w=x.tmp[1],this.type==="encrypt"?this._encrypt(x,g,w,x.tmp,0):this._decrypt(x,g,w,x.tmp,0),g=x.tmp[0],w=x.tmp[1],h.writeUInt32BE(d,g,v),h.writeUInt32BE(d,w,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,w=d,y=0;y<p.keys.length;y+=2){var _=p.keys[y],k=p.keys[y+1];h.expand(w,p.tmp,0),_^=p.tmp[0],k^=p.tmp[1];var F=h.substitute(_,k),O=h.permute(F),N=w;w=(g^O)>>>0,g=N}h.rip(w,g,v,x)},f.prototype._decrypt=function(p,m,d,v,x){for(var g=d,w=m,y=p.keys.length-2;y>=0;y-=2){var _=p.keys[y],k=p.keys[y+1];h.expand(g,p.tmp,0),_^=p.tmp[0],k^=p.tmp[1];var F=h.substitute(_,k),O=h.permute(F),N=g;g=(w^O)>>>0,w=N}h.rip(g,w,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=y;function v(k,F){return F=F||"utf8",s.isBuffer(k)||(k=new s(k,F)),this._pub=new o(k),this}function x(k,F){return F=F||"utf8",s.isBuffer(k)||(k=new s(k,F)),this._priv=new o(k),this}var g={};function w(k,F){var O=F.toString("hex"),N=[O,k.toString(16)].join("_");if(N in g)return g[N];var U=0;if(k.isEven()||!m.simpleSieve||!m.fermatTest(k)||!c.test(k))return U+=1,O==="02"||O==="05"?U+=8:U+=4,g[N]=U,U;c.test(k.shrn(1))||(U+=2);var z;switch(O){case"02":k.mod(a).cmp(f)&&(U+=8);break;case"05":z=k.mod(l),z.cmp(u)&&z.cmp(p)&&(U+=8);break;default:U+=4}return g[N]=U,U}function y(k,F,O){this.setGenerator(F),this.__prime=new o(k),this._prime=o.mont(this.__prime),this._primeLen=k.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,O?(this.setPublicKey=v,this.setPrivateKey=x):this._primeCode=8}Object.defineProperty(y.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=w(this.__prime,this.__gen)),this._primeCode}}),y.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()},y.prototype.computeSecret=function(k){k=new o(k),k=k.toRed(this._prime);var F=k.redPow(this._priv).fromRed(),O=new s(F.toArray()),N=this.getPrime();if(O.length<N.length){var U=new s(N.length-O.length);U.fill(0),O=s.concat([U,O])}return O},y.prototype.getPublicKey=function(F){return _(this._pub,F)},y.prototype.getPrivateKey=function(F){return _(this._priv,F)},y.prototype.getPrime=function(k){return _(this.__prime,k)},y.prototype.getGenerator=function(k){return _(this._gen,k)},y.prototype.setGenerator=function(k,F){return F=F||"utf8",s.isBuffer(k)||(k=new s(k,F)),this.__gen=k,this._gen=new o(k),this};function _(k,F){var O=new s(k.toArray());return F?O.toString(F):O}}).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=_,_.simpleSieve=w,_.fermatTest=y;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 k=1048576,F=[];F[0]=2;for(var O=1,N=3;N<k;N+=2){for(var U=Math.ceil(Math.sqrt(N)),z=0;z<O&&F[z]<=U&&N%F[z]!==0;z++);O!==z&&F[z]<=U||(F[O++]=N)}return x=F,F}function w(k){for(var F=g(),O=0;O<F.length;O++)if(k.modn(F[O])===0)return k.cmpn(F[O])===0;return!0}function y(k){var F=o.mont(k);return l.toRed(F).redPow(k.subn(1)).fromRed().cmpn(1)===0}function _(k,F){if(k<16)return F===2||F===5?new o([140,123]):new o([140,39]);F=new o(F);for(var O,N;;){for(O=new o(s(Math.ceil(k/8)));O.bitLength()>k;)O.ishrn(1);if(O.isEven()&&O.iadd(f),O.testn(1)||O.iadd(l),F.cmp(l)){if(!F.cmp(u))for(;O.mod(p).cmp(m);)O.iadd(v)}else for(;O.mod(h).cmp(d);)O.iadd(v);if(N=O.shrn(1),w(N)&&w(O)&&y(N)&&y(O)&&a.test(N)&&a.test(O))return O}}},{"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=[],w,y;for(w=0;w<v.length;w+=d.step){y=0;for(var _=w+d.step-1;_>=w;_--)y=(y<<1)+v[_];g.push(y)}for(var k=this.jpoint(null,null,null),F=this.jpoint(null,null,null),O=x;O>0;O--){for(w=0;w<g.length;w++)y=g[w],y===O?F=F.mixedAdd(d.points[w]):y===-O&&(F=F.mixedAdd(d.points[w].neg()));k=k.add(F)}return k.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),w=this.jpoint(null,null,null),y=g.length-1;y>=0;y--){for(var _=0;y>=0&&g[y]===0;y--)_++;if(y>=0&&_++,w=w.dblp(_),y<0)break;var k=g[y];a(k!==0),p.type==="affine"?k>0?w=w.mixedAdd(x[k-1>>1]):w=w.mixedAdd(x[-k-1>>1].neg()):k>0?w=w.add(x[k-1>>1]):w=w.add(x[-k-1>>1].neg())}return p.type==="affine"?w.toP():w},f.prototype._wnafMulAdd=function(p,m,d,v,x){var g=this._wnafT1,w=this._wnafT2,y=this._wnafT3,_=0,k,F,O;for(k=0;k<v;k++){O=m[k];var N=O._getNAFPoints(p);g[k]=N.wnd,w[k]=N.points}for(k=v-1;k>=1;k-=2){var U=k-1,z=k;if(g[U]!==1||g[z]!==1){y[U]=h(d[U],g[U],this._bitLength),y[z]=h(d[z],g[z],this._bitLength),_=Math.max(y[U].length,_),_=Math.max(y[z].length,_);continue}var W=[m[U],null,null,m[z]];m[U].y.cmp(m[z].y)===0?(W[1]=m[U].add(m[z]),W[2]=m[U].toJ().mixedAdd(m[z].neg())):m[U].y.cmp(m[z].y.redNeg())===0?(W[1]=m[U].toJ().mixedAdd(m[z]),W[2]=m[U].add(m[z].neg())):(W[1]=m[U].toJ().mixedAdd(m[z]),W[2]=m[U].toJ().mixedAdd(m[z].neg()));var X=[-3,-1,-5,-7,0,7,5,1,3],J=c(d[U],d[z]);for(_=Math.max(J[0].length,_),y[U]=new Array(_),y[z]=new Array(_),F=0;F<_;F++){var H=J[0][F]|0,I=J[1][F]|0;y[U][F]=X[(H+1)*3+(I+1)],y[z][F]=0,w[U]=W}}var M=this.jpoint(null,null,null),E=this._wnafT4;for(k=_;k>=0;k--){for(var A=0;k>=0;){var B=!0;for(F=0;F<v;F++)E[F]=y[F][k]|0,E[F]!==0&&(B=!1);if(!B)break;A++,k--}if(k>=0&&A++,M=M.dblp(A),k<0)break;for(F=0;F<v;F++){var L=E[F];L!==0&&(L>0?O=w[F][L-1>>1]:L<0&&(O=w[F][-L-1>>1].neg()),O.type==="affine"?M=M.mixedAdd(O):M=M.add(O))}}for(k=0;k<v;k++)w[k]=null;return x?M:M.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()),w=g.redSqrt();if(w.redSqr().redSub(g).cmp(this.zero)!==0)throw new Error("invalid point");var y=w.fromRed().isOdd();return(m&&!y||!m&&y)&&(w=w.redNeg()),this.point(p,w)},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 w=g.redSqrt();if(w.redSqr().redSub(g).cmp(this.zero)!==0)throw new Error("invalid point");return w.fromRed().isOdd()!==m&&(w=w.redNeg()),this.point(w,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),w=g.redSub(d),y=v.redSub(m),_=x.redMul(w),k=g.redMul(y),F=x.redMul(y),O=w.redMul(g);return this.curve.point(_,k,O,F)},l.prototype._projDbl=function(){var p=this.x.redAdd(this.y).redSqr(),m=this.x.redSqr(),d=this.y.redSqr(),v,x,g,w,y,_;if(this.curve.twisted){w=this.curve._mulA(m);var k=w.redAdd(d);this.zOne?(v=p.redSub(m).redSub(d).redMul(k.redSub(this.curve.two)),x=k.redMul(w.redSub(d)),g=k.redSqr().redSub(k).redSub(k)):(y=this.z.redSqr(),_=k.redSub(y).redISub(y),v=p.redSub(m).redISub(d).redMul(_),x=k.redMul(w.redSub(d)),g=k.redMul(_))}else w=m.redAdd(d),y=this.curve._mulC(this.z).redSqr(),_=w.redSub(y).redSub(y),v=this.curve._mulC(p.redISub(w)).redMul(_),x=this.curve._mulC(w).redMul(m.redISub(d)),g=w.redMul(_);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),w=x.redSub(v),y=x.redAdd(v),_=d.redAdd(m),k=g.redMul(w),F=y.redMul(_),O=g.redMul(_),N=w.redMul(y);return this.curve.point(k,F,N,O)},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),w=d.redSub(g),y=d.redAdd(g),_=this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(v).redISub(x),k=m.redMul(w).redMul(_),F,O;return this.curve.twisted?(F=m.redMul(y).redMul(x.redSub(this.curve._mulA(v))),O=w.redMul(y)):(F=m.redMul(y).redMul(x.redSub(v)),O=this.curve._mulC(w).redMul(y)),this.curve.point(k,F,O)},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),w=v.redMul(d),y=p.z.redMul(g.redAdd(w).redSqr()),_=p.x.redMul(g.redISub(w).redSqr());return this.curve.point(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 w;return m.basis?w=m.basis.map(function(y){return{a:new o(y.a,16),b:new o(y.b,16)}}):w=this._getEndoBasis(v),{beta:d,lambda:v,basis:w}}},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),w=x.redAdd(g).fromRed(),y=x.redSub(g).fromRed();return[w,y]},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),w=new o(0),y=new o(0),_=new o(1),k,F,O,N,U,z,W,X=0,J,H;v.cmpn(0)!==0;){var I=x.div(v);J=x.sub(I.mul(v)),H=y.sub(I.mul(g));var M=_.sub(I.mul(w));if(!O&&J.cmp(d)<0)k=W.neg(),F=g,O=J.neg(),N=H;else if(O&&++X===2)break;W=J,x=v,v=J,y=g,g=H,_=w,w=M}U=J.neg(),z=H;var E=O.sqr().add(N.sqr()),A=U.sqr().add(z.sqr());return A.cmp(E)>=0&&(U=k,z=F),O.negative&&(O=O.neg(),N=N.neg()),U.negative&&(U=U.neg(),z=z.neg()),[{a:O,b:N},{a:U,b:z}]},f.prototype._endoSplit=function(m){var d=this.endo.basis,v=d[0],x=d[1],g=x.b.mul(m).divRound(this.n),w=v.b.neg().mul(m).divRound(this.n),y=g.mul(v.a),_=w.mul(x.a),k=g.mul(v.b),F=w.mul(x.b),O=m.sub(y).sub(_),N=k.add(F).neg();return{k1:O,k2:N}},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,w=0;w<m.length;w++){var y=this._endoSplit(d[w]),_=m[w],k=_._getBeta();y.k1.negative&&(y.k1.ineg(),_=_.neg(!0)),y.k2.negative&&(y.k2.ineg(),k=k.neg(!0)),x[w*2]=_,x[w*2+1]=k,g[w*2]=y.k1,g[w*2+1]=y.k2}for(var F=this._wnafMulAdd(1,x,g,w*2,v),O=0;O<w*2;O++)x[O]=null,g[O]=null;return F};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(y){return m.point(y[0],y[1],v)}var w=d[2];return x.precomputed={beta:null,doubles:w.doubles&&{step:w.doubles.step,points:[x].concat(w.doubles.points.map(g))},naf:w.naf&&{wnd:w.naf.wnd,points:[x].concat(w.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),w=g.redSqr().redISub(this.x.redAdd(this.x)),y=g.redMul(this.x.redSub(w)).redISub(this.y);return this.curve.point(w,y)},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),w=this.y.redMul(d.redMul(m.z)),y=m.y.redMul(v.redMul(this.z)),_=x.redSub(g),k=w.redSub(y);if(_.cmpn(0)===0)return k.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var F=_.redSqr(),O=F.redMul(_),N=x.redMul(F),U=k.redSqr().redIAdd(O).redISub(N).redISub(N),z=k.redMul(N.redISub(U)).redISub(w.redMul(O)),W=this.z.redMul(m.z).redMul(_);return this.curve.jpoint(U,z,W)},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,w=m.y.redMul(d).redMul(this.z),y=v.redSub(x),_=g.redSub(w);if(y.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var k=y.redSqr(),F=k.redMul(y),O=v.redMul(k),N=_.redSqr().redIAdd(F).redISub(O).redISub(O),U=_.redMul(O.redISub(N)).redISub(g.redMul(F)),z=this.z.redMul(y);return this.curve.jpoint(N,U,z)},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,w=this.x,y=this.y,_=this.z,k=_.redSqr().redSqr(),F=y.redAdd(y);for(d=0;d<m;d++){var O=w.redSqr(),N=F.redSqr(),U=N.redSqr(),z=O.redAdd(O).redIAdd(O).redIAdd(x.redMul(k)),W=w.redMul(N),X=z.redSqr().redISub(W.redAdd(W)),J=W.redISub(X),H=z.redMul(J);H=H.redIAdd(H).redISub(U);var I=F.redMul(_);d+1<m&&(k=k.redMul(U)),w=X,_=I,F=H}return this.curve.jpoint(w,F.redMul(g),_)},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(),w=g.redSqr(),y=this.x.redAdd(g).redSqr().redISub(x).redISub(w);y=y.redIAdd(y);var _=x.redAdd(x).redIAdd(x),k=_.redSqr().redISub(y).redISub(y),F=w.redIAdd(w);F=F.redIAdd(F),F=F.redIAdd(F),m=k,d=_.redMul(y.redISub(k)).redISub(F),v=this.y.redAdd(this.y)}else{var O=this.x.redSqr(),N=this.y.redSqr(),U=N.redSqr(),z=this.x.redAdd(N).redSqr().redISub(O).redISub(U);z=z.redIAdd(z);var W=O.redAdd(O).redIAdd(O),X=W.redSqr(),J=U.redIAdd(U);J=J.redIAdd(J),J=J.redIAdd(J),m=X.redISub(z).redISub(z),d=W.redMul(z.redISub(m)).redISub(J),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(),w=g.redSqr(),y=this.x.redAdd(g).redSqr().redISub(x).redISub(w);y=y.redIAdd(y);var _=x.redAdd(x).redIAdd(x).redIAdd(this.curve.a),k=_.redSqr().redISub(y).redISub(y);m=k;var F=w.redIAdd(w);F=F.redIAdd(F),F=F.redIAdd(F),d=_.redMul(y.redISub(k)).redISub(F),v=this.y.redAdd(this.y)}else{var O=this.z.redSqr(),N=this.y.redSqr(),U=this.x.redMul(N),z=this.x.redSub(O).redMul(this.x.redAdd(O));z=z.redAdd(z).redIAdd(z);var W=U.redIAdd(U);W=W.redIAdd(W);var X=W.redAdd(W);m=z.redSqr().redISub(X),v=this.y.redAdd(this.z).redSqr().redISub(N).redISub(O);var J=N.redSqr();J=J.redIAdd(J),J=J.redIAdd(J),J=J.redIAdd(J),d=z.redMul(W.redISub(m)).redISub(J)}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(),w=d.redSqr(),y=v.redSqr(),_=w.redAdd(w).redIAdd(w).redIAdd(m.redMul(g)),k=d.redAdd(d);k=k.redIAdd(k);var F=k.redMul(y),O=_.redSqr().redISub(F.redAdd(F)),N=F.redISub(O),U=y.redSqr();U=U.redIAdd(U),U=U.redIAdd(U),U=U.redIAdd(U);var z=_.redMul(N).redISub(U),W=v.redAdd(v).redMul(x);return this.curve.jpoint(O,z,W)},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),w=g.redSqr(),y=this.x.redAdd(d).redSqr().redISub(m).redISub(x);y=y.redIAdd(y),y=y.redAdd(y).redIAdd(y),y=y.redISub(w);var _=y.redSqr(),k=x.redIAdd(x);k=k.redIAdd(k),k=k.redIAdd(k),k=k.redIAdd(k);var F=g.redIAdd(y).redSqr().redISub(w).redISub(_).redISub(k),O=d.redMul(F);O=O.redIAdd(O),O=O.redIAdd(O);var N=this.x.redMul(_).redISub(O);N=N.redIAdd(N),N=N.redIAdd(N);var U=this.y.redMul(F.redMul(k.redISub(F)).redISub(y.redMul(_)));U=U.redIAdd(U),U=U.redIAdd(U),U=U.redIAdd(U);var z=this.z.redAdd(y).redSqr().redISub(v).redISub(_);return this.curve.jpoint(N,U,z)},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 w=new s(v.generate(x));if(!(w.cmp(g)>0))return w.iaddn(1),this.keyFromPrivate(w)}},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 w=this.n.byteLength(),y=v.getPrivate().toArray("be",w),_=d.toArray("be",w),k=new o({hash:this.hash,entropy:y,nonce:_,pers:g.pers,persEnc:g.persEnc||"utf8"}),F=this.n.sub(new s(1)),O=0;;O++){var N=g.k?g.k(O):new s(k.generate(this.n.byteLength()));if(N=this._truncateToN(N,!0),!(N.cmpn(1)<=0||N.cmp(F)>=0)){var U=this.g.mul(N);if(!U.isInfinity()){var z=U.getX(),W=z.umod(this.n);if(W.cmpn(0)!==0){var X=N.invm(this.n).mul(W.mul(v.getPrivate()).iadd(d));if(X=X.umod(this.n),X.cmpn(0)!==0){var J=(U.getY().isOdd()?1:0)|(z.cmp(W)!==0?2:0);return g.canonical&&X.cmp(this.nh)>0&&(X=this.n.sub(X),J^=1),new u({r:W,s:X,recoveryParam:J})}}}}}},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 w=v.r,y=v.s;if(w.cmpn(1)<0||w.cmp(this.n)>=0||y.cmpn(1)<0||y.cmp(this.n)>=0)return!1;var _=y.invm(this.n),k=_.mul(d).umod(this.n),F=_.mul(w).umod(this.n),O;return this.curve._maxwellTrick?(O=this.g.jmulAdd(k,x.getPublic(),F),O.isInfinity()?!1:O.eqXToP(w)):(O=this.g.mulAdd(k,x.getPublic(),F),O.isInfinity()?!1:O.getX().umod(this.n).cmp(w)===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,w=new s(m),y=d.r,_=d.s,k=v&1,F=v>>1;if(y.cmp(this.curve.p.umod(this.curve.n))>=0&&F)throw new Error("Unable to find sencond key candinate");F?y=this.curve.pointFromX(y.add(this.curve.n),k):y=this.curve.pointFromX(y,k);var O=d.r.invm(g),N=g.sub(w).mul(O).umod(g),U=_.mul(O).umod(g);return this.g.mulAdd(N,y,U)},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 w;try{w=this.recoverPubKey(m,d,g)}catch{continue}if(w.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,w=m.place;g<v;g++,w++)x<<=8,x|=p[w],x>>>=0;return x<=127?!1:(m.place=w,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 w=m.slice(v.place,g+v.place);if(v.place+=g,m[v.place++]!==2)return!1;var y=f(m,v);if(y===!1||m.length!==y+v.place)return!1;var _=m.slice(v.place,y+v.place);if(w[0]===0)if(w[1]&128)w=w.slice(1);else return!1;if(_[0]===0)if(_[1]&128)_=_.slice(1);else return!1;return this.r=new s(w),this.s=new s(_),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),w=[48];return u(w,g.length),w=w.concat(g),o.encode(w,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),w=this.encodePoint(g),y=this.hashInt(w,v.pubBytes(),m).mul(v.priv()),_=x.add(y).umod(this.curve.n);return this.makeSignature({R:g,S:_,Rencoded:w})},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),w=this.g.mul(d.S()),y=d.R().add(x.pub().mul(g));return y.eq(w)},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,w=m.clone(),y=0;y<x.length;y++){var _,k=w.andln(g-1);w.isOdd()?(k>(g>>1)-1?_=(g>>1)-k:_=k,w.isubn(_)):_=0,x[y]=_,w.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,w;m.cmpn(-x)>0||d.cmpn(-g)>0;){var y=m.andln(3)+x&3,_=d.andln(3)+g&3;y===3&&(y=-1),_===3&&(_=-1);var k;y&1?(w=m.andln(7)+x&7,(w===3||w===5)&&_===2?k=-y:k=y):k=0,v[0].push(k);var F;_&1?(w=d.andln(7)+g&7,(w===3||w===5)&&y===2?F=-_:F=_):F=0,v[1].push(F),2*x===k+1&&(x=1-x),2*g===F+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||U,o=Object.keys||z,h=Function.prototype.bind||W;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(X){if(typeof X!="number"||X<0||X!==X)throw new TypeError('"defaultMaxListeners" must be a positive number');a=X}}):c.defaultMaxListeners=a,c.prototype.setMaxListeners=function(J){if(typeof J!="number"||J<0||isNaN(J))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=J,this};function u(X){return X._maxListeners===void 0?c.defaultMaxListeners:X._maxListeners}c.prototype.getMaxListeners=function(){return u(this)};function p(X,J,H){if(J)X.call(H);else for(var I=X.length,M=O(X,I),E=0;E<I;++E)M[E].call(H)}function m(X,J,H,I){if(J)X.call(H,I);else for(var M=X.length,E=O(X,M),A=0;A<M;++A)E[A].call(H,I)}function d(X,J,H,I,M){if(J)X.call(H,I,M);else for(var E=X.length,A=O(X,E),B=0;B<E;++B)A[B].call(H,I,M)}function v(X,J,H,I,M,E){if(J)X.call(H,I,M,E);else for(var A=X.length,B=O(X,A),L=0;L<A;++L)B[L].call(H,I,M,E)}function x(X,J,H,I){if(J)X.apply(H,I);else for(var M=X.length,E=O(X,M),A=0;A<M;++A)E[A].apply(H,I)}c.prototype.emit=function(J){var H,I,M,E,A,B,L=J==="error";if(B=this._events,B)L=L&&B.error==null;else if(!L)return!1;if(L){if(arguments.length>1&&(H=arguments[1]),H instanceof Error)throw H;var P=new Error('Unhandled "error" event. ('+H+")");throw P.context=H,P}if(I=B[J],!I)return!1;var R=typeof I=="function";switch(M=arguments.length,M){case 1:p(I,R,this);break;case 2:m(I,R,this,arguments[1]);break;case 3:d(I,R,this,arguments[1],arguments[2]);break;case 4:v(I,R,this,arguments[1],arguments[2],arguments[3]);break;default:for(E=new Array(M-1),A=1;A<M;A++)E[A-1]=arguments[A];x(I,R,this,E)}return!0};function g(X,J,H,I){var M,E,A;if(typeof H!="function")throw new TypeError('"listener" argument must be a function');if(E=X._events,E?(E.newListener&&(X.emit("newListener",J,H.listener?H.listener:H),E=X._events),A=E[J]):(E=X._events=s(null),X._eventsCount=0),!A)A=E[J]=H,++X._eventsCount;else if(typeof A=="function"?A=E[J]=I?[H,A]:[A,H]:I?A.unshift(H):A.push(H),!A.warned&&(M=u(X),M&&M>0&&A.length>M)){A.warned=!0;var B=new Error("Possible EventEmitter memory leak detected. "+A.length+' "'+String(J)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');B.name="MaxListenersExceededWarning",B.emitter=X,B.type=J,B.count=A.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",B.name,B.message)}return X}c.prototype.addListener=function(J,H){return g(this,J,H,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(J,H){return g(this,J,H,!0)};function w(){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 X=new Array(arguments.length),J=0;J<X.length;++J)X[J]=arguments[J];this.listener.apply(this.target,X)}}function y(X,J,H){var I={fired:!1,wrapFn:void 0,target:X,type:J,listener:H},M=h.call(w,I);return M.listener=H,I.wrapFn=M,M}c.prototype.once=function(J,H){if(typeof H!="function")throw new TypeError('"listener" argument must be a function');return this.on(J,y(this,J,H)),this},c.prototype.prependOnceListener=function(J,H){if(typeof H!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(J,y(this,J,H)),this},c.prototype.removeListener=function(J,H){var I,M,E,A,B;if(typeof H!="function")throw new TypeError('"listener" argument must be a function');if(M=this._events,!M)return this;if(I=M[J],!I)return this;if(I===H||I.listener===H)--this._eventsCount===0?this._events=s(null):(delete M[J],M.removeListener&&this.emit("removeListener",J,I.listener||H));else if(typeof I!="function"){for(E=-1,A=I.length-1;A>=0;A--)if(I[A]===H||I[A].listener===H){B=I[A].listener,E=A;break}if(E<0)return this;E===0?I.shift():F(I,E),I.length===1&&(M[J]=I[0]),M.removeListener&&this.emit("removeListener",J,B||H)}return this},c.prototype.removeAllListeners=function(J){var H,I,M;if(I=this._events,!I)return this;if(!I.removeListener)return arguments.length===0?(this._events=s(null),this._eventsCount=0):I[J]&&(--this._eventsCount===0?this._events=s(null):delete I[J]),this;if(arguments.length===0){var E=o(I),A;for(M=0;M<E.length;++M)A=E[M],A!=="removeListener"&&this.removeAllListeners(A);return this.removeAllListeners("removeListener"),this._events=s(null),this._eventsCount=0,this}if(H=I[J],typeof H=="function")this.removeListener(J,H);else if(H)for(M=H.length-1;M>=0;M--)this.removeListener(J,H[M]);return this};function _(X,J,H){var I=X._events;if(!I)return[];var M=I[J];return M?typeof M=="function"?H?[M.listener||M]:[M]:H?N(M):O(M,M.length):[]}c.prototype.listeners=function(J){return _(this,J,!0)},c.prototype.rawListeners=function(J){return _(this,J,!1)},c.listenerCount=function(X,J){return typeof X.listenerCount=="function"?X.listenerCount(J):k.call(X,J)},c.prototype.listenerCount=k;function k(X){var J=this._events;if(J){var H=J[X];if(typeof H=="function")return 1;if(H)return H.length}return 0}c.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};function F(X,J){for(var H=J,I=H+1,M=X.length;I<M;H+=1,I+=1)X[H]=X[I];X.pop()}function O(X,J){for(var H=new Array(J),I=0;I<J;++I)H[I]=X[I];return H}function N(X){for(var J=new Array(X.length),H=0;H<J.length;++H)J[H]=X[H].listener||X[H];return J}function U(X){var J=function(){};return J.prototype=X,new J}function z(X){for(var J in X)Object.prototype.hasOwnProperty.call(X,J);return J}function W(X){var J=this;return function(){return J.apply(X,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 w=m.length-l,y=Math.min(l,d.length-x);d.copy(m,w,x,x+y),l-=y}}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(_,k){for(var F=this.h[0],O=this.h[1],N=this.h[2],U=this.h[3],z=this.h[4],W=F,X=O,J=N,H=U,I=z,M=0;M<80;M++){var E=c(h(f(F,p(M,O,N,U),_[v[M]+k],m(M)),g[M]),z);F=z,z=U,U=h(N,10),N=O,O=E,E=c(h(f(W,p(79-M,X,J,H),_[x[M]+k],d(M)),w[M]),I),W=I,I=H,H=h(J,10),J=X,X=E}E=a(this.h[1],N,H),this.h[1]=a(this.h[2],U,I),this.h[2]=a(this.h[3],z,W),this.h[3]=a(this.h[4],F,X),this.h[4]=a(this.h[0],O,J),this.h[0]=E},u.prototype._digest=function(_){return _==="hex"?s.toHex32(this.h,"little"):s.split32(this.h,"little")};function p(y,_,k,F){return y<=15?_^k^F:y<=31?_&k|~_&F:y<=47?(_|~k)^F:y<=63?_&F|k&~F:_^(k|~F)}function m(y){return y<=15?0:y<=31?1518500249:y<=47?1859775393:y<=63?2400959708:2840853838}function d(y){return y<=15?1352829926:y<=31?1548603684:y<=47?1836072691:y<=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],w=[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,w=0;w<16;w++)g[w]=v[x+w];for(;w<g.length;w++)g[w]=c(g[w-3]^g[w-8]^g[w-14]^g[w-16],1);var y=this.h[0],_=this.h[1],k=this.h[2],F=this.h[3],O=this.h[4];for(w=0;w<g.length;w++){var N=~~(w/20),U=f(c(y,5),l(N,_,k,F),O,g[w],p[N]);O=F,F=k,k=c(_,30),_=y,y=U}this.h[0]=a(this.h[0],y),this.h[1]=a(this.h[1],_),this.h[2]=a(this.h[2],k),this.h[3]=a(this.h[3],F),this.h[4]=a(this.h[4],O)},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,w=[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 y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}s.inherits(y,g),n.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(k,F){for(var O=this.W,N=0;N<16;N++)O[N]=k[F+N];for(;N<O.length;N++)O[N]=f(x(O[N-2]),O[N-7],v(O[N-15]),O[N-16]);var U=this.h[0],z=this.h[1],W=this.h[2],X=this.h[3],J=this.h[4],H=this.h[5],I=this.h[6],M=this.h[7];for(c(this.k.length===O.length),N=0;N<O.length;N++){var E=l(M,d(J),u(J,H,I),this.k[N],O[N]),A=a(m(U),p(U,z,W));M=I,I=H,H=J,J=a(X,E),X=W,W=z,z=U,U=a(E,A)}this.h[0]=a(this.h[0],U),this.h[1]=a(this.h[1],z),this.h[2]=a(this.h[2],W),this.h[3]=a(this.h[3],X),this.h[4]=a(this.h[4],J),this.h[5]=a(this.h[5],H),this.h[6]=a(this.h[6],I),this.h[7]=a(this.h[7],M)},y.prototype._digest=function(k){return k==="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,w=o.BlockHash,y=[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 _(){if(!(this instanceof _))return new _;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}s.inherits(_,w),n.exports=_,_.blockSize=1024,_.outSize=512,_.hmacStrength=192,_.padLength=128,_.prototype._prepareBlock=function(A,B){for(var L=this.W,P=0;P<32;P++)L[P]=A[B+P];for(;P<L.length;P+=2){var R=I(L[P-4],L[P-3]),C=M(L[P-4],L[P-3]),S=L[P-14],D=L[P-13],V=J(L[P-30],L[P-29]),te=H(L[P-30],L[P-29]),oe=L[P-32],he=L[P-31];L[P]=d(R,C,S,D,V,te,oe,he),L[P+1]=v(R,C,S,D,V,te,oe,he)}},_.prototype._update=function(A,B){this._prepareBlock(A,B);var L=this.W,P=this.h[0],R=this.h[1],C=this.h[2],S=this.h[3],D=this.h[4],V=this.h[5],te=this.h[6],oe=this.h[7],he=this.h[8],Ne=this.h[9],q=this.h[10],ne=this.h[11],Q=this.h[12],re=this.h[13],ve=this.h[14],Ce=this.h[15];h(this.k.length===L.length);for(var ce=0;ce<L.length;ce+=2){var se=ve,ee=Ce,G=W(he,Ne),Z=X(he,Ne),de=k(he,Ne,q,ne,Q),Ae=F(he,Ne,q,ne,Q,re),K=this.k[ce],Te=this.k[ce+1],Oe=L[ce],ie=L[ce+1],fe=x(se,ee,G,Z,de,Ae,K,Te,Oe,ie),we=g(se,ee,G,Z,de,Ae,K,Te,Oe,ie);se=U(P,R),ee=z(P,R),G=O(P,R,C,S,D),Z=N(P,R,C,S,D,V);var Fe=p(se,ee,G,Z),Ue=m(se,ee,G,Z);ve=Q,Ce=re,Q=q,re=ne,q=he,ne=Ne,he=p(te,oe,fe,we),Ne=m(oe,oe,fe,we),te=D,oe=V,D=C,V=S,C=P,S=R,P=p(fe,we,Fe,Ue),R=m(fe,we,Fe,Ue)}u(this.h,0,P,R),u(this.h,2,C,S),u(this.h,4,D,V),u(this.h,6,te,oe),u(this.h,8,he,Ne),u(this.h,10,q,ne),u(this.h,12,Q,re),u(this.h,14,ve,Ce)},_.prototype._digest=function(A){return A==="hex"?s.toHex32(this.h,"big"):s.split32(this.h,"big")};function k(E,A,B,L,P){var R=E&B^~E&P;return R<0&&(R+=4294967296),R}function F(E,A,B,L,P,R){var C=A&L^~A&R;return C<0&&(C+=4294967296),C}function O(E,A,B,L,P){var R=E&B^E&P^B&P;return R<0&&(R+=4294967296),R}function N(E,A,B,L,P,R){var C=A&L^A&R^L&R;return C<0&&(C+=4294967296),C}function U(E,A){var B=c(E,A,28),L=c(A,E,2),P=c(A,E,7),R=B^L^P;return R<0&&(R+=4294967296),R}function z(E,A){var B=a(E,A,28),L=a(A,E,2),P=a(A,E,7),R=B^L^P;return R<0&&(R+=4294967296),R}function W(E,A){var B=c(E,A,14),L=c(E,A,18),P=c(A,E,9),R=B^L^P;return R<0&&(R+=4294967296),R}function X(E,A){var B=a(E,A,14),L=a(E,A,18),P=a(A,E,9),R=B^L^P;return R<0&&(R+=4294967296),R}function J(E,A){var B=c(E,A,1),L=c(E,A,8),P=f(E,A,7),R=B^L^P;return R<0&&(R+=4294967296),R}function H(E,A){var B=a(E,A,1),L=a(E,A,8),P=l(E,A,7),R=B^L^P;return R<0&&(R+=4294967296),R}function I(E,A){var B=c(E,A,19),L=c(A,E,29),P=f(E,A,6),R=B^L^P;return R<0&&(R+=4294967296),R}function M(E,A){var B=a(E,A,19),L=a(A,E,29),P=l(E,A,6),R=B^L^P;return R<0&&(R+=4294967296),R}},{"../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(M,E){return(M.charCodeAt(E)&64512)!==55296||E<0||E+1>=M.length?!1:(M.charCodeAt(E+1)&64512)===56320}function c(M,E){if(Array.isArray(M))return M.slice();if(!M)return[];var A=[];if(typeof M=="string")if(E){if(E==="hex")for(M=M.replace(/[^a-z0-9]+/ig,""),M.length%2!==0&&(M="0"+M),L=0;L<M.length;L+=2)A.push(parseInt(M[L]+M[L+1],16))}else for(var B=0,L=0;L<M.length;L++){var P=M.charCodeAt(L);P<128?A[B++]=P:P<2048?(A[B++]=P>>6|192,A[B++]=P&63|128):h(M,L)?(P=65536+((P&1023)<<10)+(M.charCodeAt(++L)&1023),A[B++]=P>>18|240,A[B++]=P>>12&63|128,A[B++]=P>>6&63|128,A[B++]=P&63|128):(A[B++]=P>>12|224,A[B++]=P>>6&63|128,A[B++]=P&63|128)}else for(L=0;L<M.length;L++)A[L]=M[L]|0;return A}i.toArray=c;function a(M){for(var E="",A=0;A<M.length;A++)E+=u(M[A].toString(16));return E}i.toHex=a;function f(M){var E=M>>>24|M>>>8&65280|M<<8&16711680|(M&255)<<24;return E>>>0}i.htonl=f;function l(M,E){for(var A="",B=0;B<M.length;B++){var L=M[B];E==="little"&&(L=f(L)),A+=p(L.toString(16))}return A}i.toHex32=l;function u(M){return M.length===1?"0"+M:M}i.zero2=u;function p(M){return M.length===7?"0"+M:M.length===6?"00"+M:M.length===5?"000"+M:M.length===4?"0000"+M:M.length===3?"00000"+M:M.length===2?"000000"+M:M.length===1?"0000000"+M:M}i.zero8=p;function m(M,E,A,B){var L=A-E;s(L%4===0);for(var P=new Array(L/4),R=0,C=E;R<P.length;R++,C+=4){var S;B==="big"?S=M[C]<<24|M[C+1]<<16|M[C+2]<<8|M[C+3]:S=M[C+3]<<24|M[C+2]<<16|M[C+1]<<8|M[C],P[R]=S>>>0}return P}i.join32=m;function d(M,E){for(var A=new Array(M.length*4),B=0,L=0;B<M.length;B++,L+=4){var P=M[B];E==="big"?(A[L]=P>>>24,A[L+1]=P>>>16&255,A[L+2]=P>>>8&255,A[L+3]=P&255):(A[L+3]=P>>>24,A[L+2]=P>>>16&255,A[L+1]=P>>>8&255,A[L]=P&255)}return A}i.split32=d;function v(M,E){return M>>>E|M<<32-E}i.rotr32=v;function x(M,E){return M<<E|M>>>32-E}i.rotl32=x;function g(M,E){return M+E>>>0}i.sum32=g;function w(M,E,A){return M+E+A>>>0}i.sum32_3=w;function y(M,E,A,B){return M+E+A+B>>>0}i.sum32_4=y;function _(M,E,A,B,L){return M+E+A+B+L>>>0}i.sum32_5=_;function k(M,E,A,B){var L=M[E],P=M[E+1],R=B+P>>>0,C=(R<B?1:0)+A+L;M[E]=C>>>0,M[E+1]=R}i.sum64=k;function F(M,E,A,B){var L=E+B>>>0,P=(L<E?1:0)+M+A;return P>>>0}i.sum64_hi=F;function O(M,E,A,B){var L=E+B;return L>>>0}i.sum64_lo=O;function N(M,E,A,B,L,P,R,C){var S=0,D=E;D=D+B>>>0,S+=D<E?1:0,D=D+P>>>0,S+=D<P?1:0,D=D+C>>>0,S+=D<C?1:0;var V=M+A+L+R+S;return V>>>0}i.sum64_4_hi=N;function U(M,E,A,B,L,P,R,C){var S=E+B+P+C;return S>>>0}i.sum64_4_lo=U;function z(M,E,A,B,L,P,R,C,S,D){var V=0,te=E;te=te+B>>>0,V+=te<E?1:0,te=te+P>>>0,V+=te<P?1:0,te=te+C>>>0,V+=te<C?1:0,te=te+D>>>0,V+=te<D?1:0;var oe=M+A+L+R+S+V;return oe>>>0}i.sum64_5_hi=z;function W(M,E,A,B,L,P,R,C,S,D){var V=E+B+P+C+D;return V>>>0}i.sum64_5_lo=W;function X(M,E,A){var B=E<<32-A|M>>>A;return B>>>0}i.rotr64_hi=X;function J(M,E,A){var B=M<<32-A|E>>>A;return B>>>0}i.rotr64_lo=J;function H(M,E,A){return M>>>A}i.shr64_hi=H;function I(M,E,A){var B=M<<32-A|E>>>A;return B>>>0}i.shr64_lo=I},{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,w=c?1:-1,y=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+=w,u/=256,a-=8);for(l=l<<a|u,m+=a;m>0;s[h+g]=l&255,g+=w,l/=256,m-=8);s[h+g-w]|=y*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(y,_){if(!d[y]){if(!m[y]){var k=typeof e=="function"&&e;if(!_&&k)return k(y,!0);if(g)return g(y,!0);var F=new Error("Cannot find module '"+y+"'");throw F.code="MODULE_NOT_FOUND",F}var O=d[y]={exports:{}};m[y][0].call(O.exports,function(N){var U=m[y][1][N];return x(U||N)},O,O.exports,p,m,d,v)}return d[y].exports}for(var g=typeof e=="function"&&e,w=0;w<v.length;w++)x(v[w]);return x}({1:[function(p,m,d){var v=p("./utils"),x=p("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(w){for(var y,_,k,F,O,N,U,z=[],W=0,X=w.length,J=X,H=v.getTypeOf(w)!=="string";W<w.length;)J=X-W,k=H?(y=w[W++],_=W<X?w[W++]:0,W<X?w[W++]:0):(y=w.charCodeAt(W++),_=W<X?w.charCodeAt(W++):0,W<X?w.charCodeAt(W++):0),F=y>>2,O=(3&y)<<4|_>>4,N=1<J?(15&_)<<2|k>>6:64,U=2<J?63&k:64,z.push(g.charAt(F)+g.charAt(O)+g.charAt(N)+g.charAt(U));return z.join("")},d.decode=function(w){var y,_,k,F,O,N,U=0,z=0,W="data:";if(w.substr(0,W.length)===W)throw new Error("Invalid base64 input, it looks like a data url.");var X,J=3*(w=w.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(w.charAt(w.length-1)===g.charAt(64)&&J--,w.charAt(w.length-2)===g.charAt(64)&&J--,J%1!=0)throw new Error("Invalid base64 input, bad content length.");for(X=x.uint8array?new Uint8Array(0|J):new Array(0|J);U<w.length;)y=g.indexOf(w.charAt(U++))<<2|(F=g.indexOf(w.charAt(U++)))>>4,_=(15&F)<<4|(O=g.indexOf(w.charAt(U++)))>>2,k=(3&O)<<6|(N=g.indexOf(w.charAt(U++))),X[z++]=y,O!==64&&(X[z++]=_),N!==64&&(X[z++]=k);return X}},{"./support":30,"./utils":32}],2:[function(p,m,d){var v=p("./external"),x=p("./stream/DataWorker"),g=p("./stream/Crc32Probe"),w=p("./stream/DataLengthProbe");function y(_,k,F,O,N){this.compressedSize=_,this.uncompressedSize=k,this.crc32=F,this.compression=O,this.compressedContent=N}y.prototype={getContentWorker:function(){var _=new x(v.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new w("data_length")),k=this;return _.on("end",function(){if(this.streamInfo.data_length!==k.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),_},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)}},y.createWorkerFrom=function(_,k,F){return _.pipe(new g).pipe(new w("uncompressedSize")).pipe(k.compressWorker(F)).pipe(new w("compressedSize")).withStreamInfo("compression",k)},m.exports=y},{"./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,w=[],y=0;y<256;y++){g=y;for(var _=0;_<8;_++)g=1&g?3988292384^g>>>1:g>>>1;w[y]=g}return w}();m.exports=function(g,w){return g!==void 0&&g.length?v.getTypeOf(g)!=="string"?function(y,_,k,F){var O=x,N=F+k;y^=-1;for(var U=F;U<N;U++)y=y>>>8^O[255&(y^_[U])];return-1^y}(0|w,g,g.length,0):function(y,_,k,F){var O=x,N=F+k;y^=-1;for(var U=F;U<N;U++)y=y>>>8^O[255&(y^_.charCodeAt(U))];return-1^y}(0|w,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"),w=p("./stream/GenericWorker"),y=v?"uint8array":"array";function _(k,F){w.call(this,"FlateWorker/"+k),this._pako=null,this._pakoAction=k,this._pakoOptions=F,this.meta={}}d.magic="\b\0",g.inherits(_,w),_.prototype.processChunk=function(k){this.meta=k.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(y,k.data),!1)},_.prototype.flush=function(){w.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},_.prototype.cleanUp=function(){w.prototype.cleanUp.call(this),this._pako=null},_.prototype._createPako=function(){this._pako=new x[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var k=this;this._pako.onData=function(F){k.push({data:F,meta:k.meta})}},d.compressWorker=function(k){return new _("Deflate",k)},d.uncompressWorker=function(){return new _("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(p,m,d){function v(O,N){var U,z="";for(U=0;U<N;U++)z+=String.fromCharCode(255&O),O>>>=8;return z}function x(O,N,U,z,W,X){var J,H,I=O.file,M=O.compression,E=X!==y.utf8encode,A=g.transformTo("string",X(I.name)),B=g.transformTo("string",y.utf8encode(I.name)),L=I.comment,P=g.transformTo("string",X(L)),R=g.transformTo("string",y.utf8encode(L)),C=B.length!==I.name.length,S=R.length!==L.length,D="",V="",te="",oe=I.dir,he=I.date,Ne={crc32:0,compressedSize:0,uncompressedSize:0};N&&!U||(Ne.crc32=O.crc32,Ne.compressedSize=O.compressedSize,Ne.uncompressedSize=O.uncompressedSize);var q=0;N&&(q|=8),E||!C&&!S||(q|=2048);var ne=0,Q=0;oe&&(ne|=16),W==="UNIX"?(Q=798,ne|=function(ve,Ce){var ce=ve;return ve||(ce=Ce?16893:33204),(65535&ce)<<16}(I.unixPermissions,oe)):(Q=20,ne|=function(ve){return 63&(ve||0)}(I.dosPermissions)),J=he.getUTCHours(),J<<=6,J|=he.getUTCMinutes(),J<<=5,J|=he.getUTCSeconds()/2,H=he.getUTCFullYear()-1980,H<<=4,H|=he.getUTCMonth()+1,H<<=5,H|=he.getUTCDate(),C&&(V=v(1,1)+v(_(A),4)+B,D+="up"+v(V.length,2)+V),S&&(te=v(1,1)+v(_(P),4)+R,D+="uc"+v(te.length,2)+te);var re="";return re+=`
|
||
\0`,re+=v(q,2),re+=M.magic,re+=v(J,2),re+=v(H,2),re+=v(Ne.crc32,4),re+=v(Ne.compressedSize,4),re+=v(Ne.uncompressedSize,4),re+=v(A.length,2),re+=v(D.length,2),{fileRecord:k.LOCAL_FILE_HEADER+re+A+D,dirRecord:k.CENTRAL_FILE_HEADER+v(Q,2)+re+v(P.length,2)+"\0\0\0\0"+v(ne,4)+v(z,4)+A+D+P}}var g=p("../utils"),w=p("../stream/GenericWorker"),y=p("../utf8"),_=p("../crc32"),k=p("../signature");function F(O,N,U,z){w.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=N,this.zipPlatform=U,this.encodeFileName=z,this.streamFiles=O,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(F,w),F.prototype.push=function(O){var N=O.meta.percent||0,U=this.entriesCount,z=this._sources.length;this.accumulate?this.contentBuffer.push(O):(this.bytesWritten+=O.data.length,w.prototype.push.call(this,{data:O.data,meta:{currentFile:this.currentFile,percent:U?(N+100*(U-z-1))/U:100}}))},F.prototype.openedSource=function(O){this.currentSourceOffset=this.bytesWritten,this.currentFile=O.file.name;var N=this.streamFiles&&!O.file.dir;if(N){var U=x(O,N,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:U.fileRecord,meta:{percent:0}})}else this.accumulate=!0},F.prototype.closedSource=function(O){this.accumulate=!1;var N=this.streamFiles&&!O.file.dir,U=x(O,N,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(U.dirRecord),N)this.push({data:function(z){return k.DATA_DESCRIPTOR+v(z.crc32,4)+v(z.compressedSize,4)+v(z.uncompressedSize,4)}(O),meta:{percent:100}});else for(this.push({data:U.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},F.prototype.flush=function(){for(var O=this.bytesWritten,N=0;N<this.dirRecords.length;N++)this.push({data:this.dirRecords[N],meta:{percent:100}});var U=this.bytesWritten-O,z=function(W,X,J,H,I){var M=g.transformTo("string",I(H));return k.CENTRAL_DIRECTORY_END+"\0\0\0\0"+v(W,2)+v(W,2)+v(X,4)+v(J,4)+v(M.length,2)+M}(this.dirRecords.length,U,O,this.zipComment,this.encodeFileName);this.push({data:z,meta:{percent:100}})},F.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},F.prototype.registerPrevious=function(O){this._sources.push(O);var N=this;return O.on("data",function(U){N.processChunk(U)}),O.on("end",function(){N.closedSource(N.previous.streamInfo),N._sources.length?N.prepareNextSource():N.end()}),O.on("error",function(U){N.error(U)}),this},F.prototype.resume=function(){return!!w.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},F.prototype.error=function(O){var N=this._sources;if(!w.prototype.error.call(this,O))return!1;for(var U=0;U<N.length;U++)try{N[U].error(O)}catch{}return!0},F.prototype.lock=function(){w.prototype.lock.call(this);for(var O=this._sources,N=0;N<O.length;N++)O[N].lock()},m.exports=F},{"../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,w,y){var _=new x(w.streamFiles,y,w.platform,w.encodeFileName),k=0;try{g.forEach(function(F,O){k++;var N=function(X,J){var H=X||J,I=v[H];if(!I)throw new Error(H+" is not a valid compression method !");return I}(O.options.compression,w.compression),U=O.options.compressionOptions||w.compressionOptions||{},z=O.dir,W=O.date;O._compressWorker(N,U).withStreamInfo("file",{name:F,dir:z,date:W,comment:O.comment||"",unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions}).pipe(_)}),_.entriesCount=k}catch(F){_.error(F)}return _}},{"../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"),w=p("./zipEntries"),y=p("./stream/Crc32Probe"),_=p("./nodejsUtils");function k(F){return new x.Promise(function(O,N){var U=F.decompressed.getContentWorker().pipe(new y);U.on("error",function(z){N(z)}).on("end",function(){U.streamInfo.crc32!==F.decompressed.crc32?N(new Error("Corrupted zip : CRC32 mismatch")):O()}).resume()})}m.exports=function(F,O){var N=this;return O=v.extend(O||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),_.isNode&&_.isStream(F)?x.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):v.prepareContent("the loaded zip file",F,!0,O.optimizedBinaryString,O.base64).then(function(U){var z=new w(O);return z.load(U),z}).then(function(U){var z=[x.Promise.resolve(U)],W=U.files;if(O.checkCRC32)for(var X=0;X<W.length;X++)z.push(k(W[X]));return x.Promise.all(z)}).then(function(U){for(var z=U.shift(),W=z.files,X=0;X<W.length;X++){var J=W[X],H=J.fileNameStr,I=v.resolve(J.fileNameStr);N.file(I,J.decompressed,{binary:!0,optimizedBinaryString:!0,date:J.date,dir:J.dir,comment:J.fileCommentStr.length?J.fileCommentStr:null,unixPermissions:J.unixPermissions,dosPermissions:J.dosPermissions,createFolders:O.createFolders}),J.dir||(N.file(I).unsafeOriginalName=H)}return z.zipComment.length&&(N.comment=z.zipComment),N})}},{"./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(w,y){x.call(this,"Nodejs stream input adapter for "+w),this._upstreamEnded=!1,this._bindStream(y)}v.inherits(g,x),g.prototype._bindStream=function(w){var y=this;(this._stream=w).pause(),w.on("data",function(_){y.push({data:_,meta:{percent:0}})}).on("error",function(_){y.isPaused?this.generatedError=_:y.error(_)}).on("end",function(){y.isPaused?y._upstreamEnded=!0:y.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,w,y){v.call(this,w),this._helper=g;var _=this;g.on("data",function(k,F){_.push(k)||_._helper.pause(),y&&y(F)}).on("error",function(k){_.emit("error",k)}).on("end",function(){_.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(I,M,E){var A,B=g.getTypeOf(M),L=g.extend(E||{},_);L.date=L.date||new Date,L.compression!==null&&(L.compression=L.compression.toUpperCase()),typeof L.unixPermissions=="string"&&(L.unixPermissions=parseInt(L.unixPermissions,8)),L.unixPermissions&&16384&L.unixPermissions&&(L.dir=!0),L.dosPermissions&&16&L.dosPermissions&&(L.dir=!0),L.dir&&(I=W(I)),L.createFolders&&(A=z(I))&&X.call(this,A,!0);var P=B==="string"&&L.binary===!1&&L.base64===!1;E&&E.binary!==void 0||(L.binary=!P),(M instanceof k&&M.uncompressedSize===0||L.dir||!M||M.length===0)&&(L.base64=!1,L.binary=!0,M="",L.compression="STORE",B="string");var R=null;R=M instanceof k||M instanceof w?M:N.isNode&&N.isStream(M)?new U(I,M):g.prepareContent(I,M,L.binary,L.optimizedBinaryString,L.base64);var C=new F(I,R,L);this.files[I]=C}var x=p("./utf8"),g=p("./utils"),w=p("./stream/GenericWorker"),y=p("./stream/StreamHelper"),_=p("./defaults"),k=p("./compressedObject"),F=p("./zipObject"),O=p("./generate"),N=p("./nodejsUtils"),U=p("./nodejs/NodejsStreamInputAdapter"),z=function(I){I.slice(-1)==="/"&&(I=I.substring(0,I.length-1));var M=I.lastIndexOf("/");return 0<M?I.substring(0,M):""},W=function(I){return I.slice(-1)!=="/"&&(I+="/"),I},X=function(I,M){return M=M!==void 0?M:_.createFolders,I=W(I),this.files[I]||v.call(this,I,null,{dir:!0,createFolders:M}),this.files[I]};function J(I){return Object.prototype.toString.call(I)==="[object RegExp]"}var H={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(I){var M,E,A;for(M in this.files)A=this.files[M],(E=M.slice(this.root.length,M.length))&&M.slice(0,this.root.length)===this.root&&I(E,A)},filter:function(I){var M=[];return this.forEach(function(E,A){I(E,A)&&M.push(A)}),M},file:function(I,M,E){if(arguments.length!==1)return I=this.root+I,v.call(this,I,M,E),this;if(J(I)){var A=I;return this.filter(function(L,P){return!P.dir&&A.test(L)})}var B=this.files[this.root+I];return B&&!B.dir?B:null},folder:function(I){if(!I)return this;if(J(I))return this.filter(function(B,L){return L.dir&&I.test(B)});var M=this.root+I,E=X.call(this,M),A=this.clone();return A.root=E.name,A},remove:function(I){I=this.root+I;var M=this.files[I];if(M||(I.slice(-1)!=="/"&&(I+="/"),M=this.files[I]),M&&!M.dir)delete this.files[I];else for(var E=this.filter(function(B,L){return L.name.slice(0,I.length)===I}),A=0;A<E.length;A++)delete this.files[E[A].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(I){var M,E={};try{if((E=g.extend(I||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:x.utf8encode})).type=E.type.toLowerCase(),E.compression=E.compression.toUpperCase(),E.type==="binarystring"&&(E.type="string"),!E.type)throw new Error("No output type specified.");g.checkSupport(E.type),E.platform!=="darwin"&&E.platform!=="freebsd"&&E.platform!=="linux"&&E.platform!=="sunos"||(E.platform="UNIX"),E.platform==="win32"&&(E.platform="DOS");var A=E.comment||this.comment||"";M=O.generateWorker(this,E,A)}catch(B){(M=new w("error")).error(B)}return new y(M,E.type||"string",E.mimeType)},generateAsync:function(I,M){return this.generateInternalStream(I).accumulate(M)},generateNodeStream:function(I,M){return(I=I||{}).type||(I.type="nodebuffer"),this.generateInternalStream(I).toNodejsStream(M)}};m.exports=H},{"./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 w=0;w<this.data.length;w++)g[w]=255&g[w]}p("../utils").inherits(x,v),x.prototype.byteAt=function(g){return this.data[this.zero+g]},x.prototype.lastIndexOfSignature=function(g){for(var w=g.charCodeAt(0),y=g.charCodeAt(1),_=g.charCodeAt(2),k=g.charCodeAt(3),F=this.length-4;0<=F;--F)if(this.data[F]===w&&this.data[F+1]===y&&this.data[F+2]===_&&this.data[F+3]===k)return F-this.zero;return-1},x.prototype.readAndCheckSignature=function(g){var w=g.charCodeAt(0),y=g.charCodeAt(1),_=g.charCodeAt(2),k=g.charCodeAt(3),F=this.readData(4);return w===F[0]&&y===F[1]&&_===F[2]&&k===F[3]},x.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var w=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,w},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 w,y=0;for(this.checkOffset(g),w=this.index+g-1;w>=this.index;w--)y=(y<<8)+this.byteAt(w);return this.index+=g,y},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 w=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,w},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 w=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,w},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 w=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,w},m.exports=x},{"../utils":32,"./ArrayReader":17}],22:[function(p,m,d){var v=p("../utils"),x=p("../support"),g=p("./ArrayReader"),w=p("./StringReader"),y=p("./NodeBufferReader"),_=p("./Uint8ArrayReader");m.exports=function(k){var F=v.getTypeOf(k);return v.checkSupport(F),F!=="string"||x.uint8array?F==="nodebuffer"?new y(k):x.uint8array?new _(v.transformTo("uint8array",k)):new g(v.transformTo("array",k)):new w(k)}},{"../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(w){v.call(this,"ConvertWorker to "+w),this.destType=w}x.inherits(g,v),g.prototype.processChunk=function(w){this.push({data:x.transformTo(this.destType,w.data),meta:w.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(w){this.streamInfo.crc32=x(w.data,this.streamInfo.crc32||0),this.push(w)},m.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(p,m,d){var v=p("../utils"),x=p("./GenericWorker");function g(w){x.call(this,"DataLengthProbe for "+w),this.propName=w,this.withStreamInfo(w,0)}v.inherits(g,x),g.prototype.processChunk=function(w){if(w){var y=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=y+w.data.length}x.prototype.processChunk.call(this,w)},m.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(p,m,d){var v=p("../utils"),x=p("./GenericWorker");function g(w){x.call(this,"DataWorker");var y=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,w.then(function(_){y.dataIsReady=!0,y.data=_,y.max=_&&_.length||0,y.type=v.getTypeOf(_),y.isPaused||y._tickAndRepeat()},function(_){y.error(_)})}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 w=null,y=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":w=this.data.substring(this.index,y);break;case"uint8array":w=this.data.subarray(this.index,y);break;case"array":case"nodebuffer":w=this.data.slice(this.index,y)}return this.index=y,this.push({data:w,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 w=0;w<this._listeners[x].length;w++)this._listeners[x][w].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(w){g.processChunk(w)}),x.on("end",function(){g.end()}),x.on("error",function(w){g.error(w)}),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"),w=p("../base64"),y=p("../support"),_=p("../external"),k=null;if(y.nodestream)try{k=p("../nodejs/NodejsStreamOutputAdapter")}catch{}function F(N,U){return new _.Promise(function(z,W){var X=[],J=N._internalType,H=N._outputType,I=N._mimeType;N.on("data",function(M,E){X.push(M),U&&U(E)}).on("error",function(M){X=[],W(M)}).on("end",function(){try{var M=function(E,A,B){switch(E){case"blob":return v.newBlob(v.transformTo("arraybuffer",A),B);case"base64":return w.encode(A);default:return v.transformTo(E,A)}}(H,function(E,A){var B,L=0,P=null,R=0;for(B=0;B<A.length;B++)R+=A[B].length;switch(E){case"string":return A.join("");case"array":return Array.prototype.concat.apply([],A);case"uint8array":for(P=new Uint8Array(R),B=0;B<A.length;B++)P.set(A[B],L),L+=A[B].length;return P;case"nodebuffer":return h.concat(A);default:throw new Error("concat : unsupported type '"+E+"'")}}(J,X),I);z(M)}catch(E){W(E)}X=[]}).resume()})}function O(N,U,z){var W=U;switch(U){case"blob":case"arraybuffer":W="uint8array";break;case"base64":W="string"}try{this._internalType=W,this._outputType=U,this._mimeType=z,v.checkSupport(W),this._worker=N.pipe(new x(W)),N.lock()}catch(X){this._worker=new g("error"),this._worker.error(X)}}O.prototype={accumulate:function(N){return F(this,N)},on:function(N,U){var z=this;return N==="data"?this._worker.on(N,function(W){U.call(z,W.data,W.meta)}):this._worker.on(N,function(){v.delay(U,arguments,z)}),this},resume:function(){return v.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(N){if(v.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new k(this,{objectMode:this._outputType!=="nodebuffer"},N)}},m.exports=O},{"../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"),w=p("./stream/GenericWorker"),y=new Array(256),_=0;_<256;_++)y[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;y[254]=y[254]=1;function k(){w.call(this,"utf-8 decode"),this.leftOver=null}function F(){w.call(this,"utf-8 encode")}d.utf8encode=function(O){return x.nodebuffer?g.newBufferFrom(O,"utf-8"):function(N){var U,z,W,X,J,H=N.length,I=0;for(X=0;X<H;X++)(64512&(z=N.charCodeAt(X)))==55296&&X+1<H&&(64512&(W=N.charCodeAt(X+1)))==56320&&(z=65536+(z-55296<<10)+(W-56320),X++),I+=z<128?1:z<2048?2:z<65536?3:4;for(U=x.uint8array?new Uint8Array(I):new Array(I),X=J=0;J<I;X++)(64512&(z=N.charCodeAt(X)))==55296&&X+1<H&&(64512&(W=N.charCodeAt(X+1)))==56320&&(z=65536+(z-55296<<10)+(W-56320),X++),z<128?U[J++]=z:(z<2048?U[J++]=192|z>>>6:(z<65536?U[J++]=224|z>>>12:(U[J++]=240|z>>>18,U[J++]=128|z>>>12&63),U[J++]=128|z>>>6&63),U[J++]=128|63&z);return U}(O)},d.utf8decode=function(O){return x.nodebuffer?v.transformTo("nodebuffer",O).toString("utf-8"):function(N){var U,z,W,X,J=N.length,H=new Array(2*J);for(U=z=0;U<J;)if((W=N[U++])<128)H[z++]=W;else if(4<(X=y[W]))H[z++]=65533,U+=X-1;else{for(W&=X===2?31:X===3?15:7;1<X&&U<J;)W=W<<6|63&N[U++],X--;1<X?H[z++]=65533:W<65536?H[z++]=W:(W-=65536,H[z++]=55296|W>>10&1023,H[z++]=56320|1023&W)}return H.length!==z&&(H.subarray?H=H.subarray(0,z):H.length=z),v.applyFromCharCode(H)}(O=v.transformTo(x.uint8array?"uint8array":"array",O))},v.inherits(k,w),k.prototype.processChunk=function(O){var N=v.transformTo(x.uint8array?"uint8array":"array",O.data);if(this.leftOver&&this.leftOver.length){if(x.uint8array){var U=N;(N=new Uint8Array(U.length+this.leftOver.length)).set(this.leftOver,0),N.set(U,this.leftOver.length)}else N=this.leftOver.concat(N);this.leftOver=null}var z=function(X,J){var H;for((J=J||X.length)>X.length&&(J=X.length),H=J-1;0<=H&&(192&X[H])==128;)H--;return H<0||H===0?J:H+y[X[H]]>J?H:J}(N),W=N;z!==N.length&&(x.uint8array?(W=N.subarray(0,z),this.leftOver=N.subarray(z,N.length)):(W=N.slice(0,z),this.leftOver=N.slice(z,N.length))),this.push({data:d.utf8decode(W),meta:O.meta})},k.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:d.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},d.Utf8DecodeWorker=k,v.inherits(F,w),F.prototype.processChunk=function(O){this.push({data:d.utf8encode(O.data),meta:O.meta})},d.Utf8EncodeWorker=F},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(p,m,d){var v=p("./support"),x=p("./base64"),g=p("./nodejsUtils"),w=p("./external");function y(U){return U}function _(U,z){for(var W=0;W<U.length;++W)z[W]=255&U.charCodeAt(W);return z}p("setimmediate"),d.newBlob=function(U,z){d.checkSupport("blob");try{return new Blob([U],{type:z})}catch{try{var W=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return W.append(U),W.getBlob(z)}catch{throw new Error("Bug : can't construct the Blob.")}}};var k={stringifyByChunk:function(U,z,W){var X=[],J=0,H=U.length;if(H<=W)return String.fromCharCode.apply(null,U);for(;J<H;)z==="array"||z==="nodebuffer"?X.push(String.fromCharCode.apply(null,U.slice(J,Math.min(J+W,H)))):X.push(String.fromCharCode.apply(null,U.subarray(J,Math.min(J+W,H)))),J+=W;return X.join("")},stringifyByChar:function(U){for(var z="",W=0;W<U.length;W++)z+=String.fromCharCode(U[W]);return z},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 F(U){var z=65536,W=d.getTypeOf(U),X=!0;if(W==="uint8array"?X=k.applyCanBeUsed.uint8array:W==="nodebuffer"&&(X=k.applyCanBeUsed.nodebuffer),X)for(;1<z;)try{return k.stringifyByChunk(U,W,z)}catch{z=Math.floor(z/2)}return k.stringifyByChar(U)}function O(U,z){for(var W=0;W<U.length;W++)z[W]=U[W];return z}d.applyFromCharCode=F;var N={};N.string={string:y,array:function(U){return _(U,new Array(U.length))},arraybuffer:function(U){return N.string.uint8array(U).buffer},uint8array:function(U){return _(U,new Uint8Array(U.length))},nodebuffer:function(U){return _(U,g.allocBuffer(U.length))}},N.array={string:F,array:y,arraybuffer:function(U){return new Uint8Array(U).buffer},uint8array:function(U){return new Uint8Array(U)},nodebuffer:function(U){return g.newBufferFrom(U)}},N.arraybuffer={string:function(U){return F(new Uint8Array(U))},array:function(U){return O(new Uint8Array(U),new Array(U.byteLength))},arraybuffer:y,uint8array:function(U){return new Uint8Array(U)},nodebuffer:function(U){return g.newBufferFrom(new Uint8Array(U))}},N.uint8array={string:F,array:function(U){return O(U,new Array(U.length))},arraybuffer:function(U){return U.buffer},uint8array:y,nodebuffer:function(U){return g.newBufferFrom(U)}},N.nodebuffer={string:F,array:function(U){return O(U,new Array(U.length))},arraybuffer:function(U){return N.nodebuffer.uint8array(U).buffer},uint8array:function(U){return O(U,new Uint8Array(U.length))},nodebuffer:y},d.transformTo=function(U,z){if(z=z||"",!U)return z;d.checkSupport(U);var W=d.getTypeOf(z);return N[W][U](z)},d.resolve=function(U){for(var z=U.split("/"),W=[],X=0;X<z.length;X++){var J=z[X];J==="."||J===""&&X!==0&&X!==z.length-1||(J===".."?W.pop():W.push(J))}return W.join("/")},d.getTypeOf=function(U){return typeof U=="string"?"string":Object.prototype.toString.call(U)==="[object Array]"?"array":v.nodebuffer&&g.isBuffer(U)?"nodebuffer":v.uint8array&&U instanceof Uint8Array?"uint8array":v.arraybuffer&&U instanceof ArrayBuffer?"arraybuffer":void 0},d.checkSupport=function(U){if(!v[U.toLowerCase()])throw new Error(U+" is not supported by this platform")},d.MAX_VALUE_16BITS=65535,d.MAX_VALUE_32BITS=-1,d.pretty=function(U){var z,W,X="";for(W=0;W<(U||"").length;W++)X+="\\x"+((z=U.charCodeAt(W))<16?"0":"")+z.toString(16).toUpperCase();return X},d.delay=function(U,z,W){u(function(){U.apply(W||null,z||[])})},d.inherits=function(U,z){function W(){}W.prototype=z.prototype,U.prototype=new W},d.extend=function(){var U,z,W={};for(U=0;U<arguments.length;U++)for(z in arguments[U])Object.prototype.hasOwnProperty.call(arguments[U],z)&&W[z]===void 0&&(W[z]=arguments[U][z]);return W},d.prepareContent=function(U,z,W,X,J){return w.Promise.resolve(z).then(function(H){return v.blob&&(H instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(H))!==-1)&&typeof FileReader<"u"?new w.Promise(function(I,M){var E=new FileReader;E.onload=function(A){I(A.target.result)},E.onerror=function(A){M(A.target.error)},E.readAsArrayBuffer(H)}):H}).then(function(H){var I=d.getTypeOf(H);return I?(I==="arraybuffer"?H=d.transformTo("uint8array",H):I==="string"&&(J?H=x.decode(H):W&&X!==!0&&(H=function(M){return _(M,v.uint8array?new Uint8Array(M.length):new Array(M.length))}(H))),H):w.Promise.reject(new Error("Can't read the data of '"+U+"'. 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"),w=p("./zipEntry"),y=p("./support");function _(k){this.files=[],this.loadOptions=k}_.prototype={checkSignature:function(k){if(!this.reader.readAndCheckSignature(k)){this.reader.index-=4;var F=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+x.pretty(F)+", expected "+x.pretty(k)+")")}},isSignature:function(k,F){var O=this.reader.index;this.reader.setIndex(k);var N=this.reader.readString(4)===F;return this.reader.setIndex(O),N},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 k=this.reader.readData(this.zipCommentLength),F=y.uint8array?"uint8array":"array",O=x.transformTo(F,k);this.zipComment=this.loadOptions.decodeFileName(O)},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 k,F,O,N=this.zip64EndOfCentralSize-44;0<N;)k=this.reader.readInt(2),F=this.reader.readInt(4),O=this.reader.readData(F),this.zip64ExtensibleData[k]={id:k,length:F,value:O}},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 k,F;for(k=0;k<this.files.length;k++)F=this.files[k],this.reader.setIndex(F.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),F.readLocalPart(this.reader),F.handleUTF8(),F.processAttributes()},readCentralDir:function(){var k;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(k=new w({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(k);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 k=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(k<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(k);var F=k;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,(k=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(k),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 O=this.centralDirOffset+this.centralDirSize;this.zip64&&(O+=20,O+=12+this.zip64EndOfCentralSize);var N=F-O;if(0<N)this.isSignature(F,g.CENTRAL_FILE_HEADER)||(this.reader.zero=N);else if(N<0)throw new Error("Corrupted zip: missing "+Math.abs(N)+" bytes.")},prepareReader:function(k){this.reader=v(k)},load:function(k){this.prepareReader(k),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},m.exports=_},{"./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"),w=p("./crc32"),y=p("./utf8"),_=p("./compressions"),k=p("./support");function F(O,N){this.options=O,this.loadOptions=N}F.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(O){var N,U;if(O.skip(22),this.fileNameLength=O.readInt(2),U=O.readInt(2),this.fileName=O.readData(this.fileNameLength),O.skip(U),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((N=function(z){for(var W in _)if(Object.prototype.hasOwnProperty.call(_,W)&&_[W].magic===z)return _[W];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,N,O.readData(this.compressedSize))},readCentralPart:function(O){this.versionMadeBy=O.readInt(2),O.skip(2),this.bitFlag=O.readInt(2),this.compressionMethod=O.readString(2),this.date=O.readDate(),this.crc32=O.readInt(4),this.compressedSize=O.readInt(4),this.uncompressedSize=O.readInt(4);var N=O.readInt(2);if(this.extraFieldsLength=O.readInt(2),this.fileCommentLength=O.readInt(2),this.diskNumberStart=O.readInt(2),this.internalFileAttributes=O.readInt(2),this.externalFileAttributes=O.readInt(4),this.localHeaderOffset=O.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");O.skip(N),this.readExtraFields(O),this.parseZIP64ExtraField(O),this.fileComment=O.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var O=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),O==0&&(this.dosPermissions=63&this.externalFileAttributes),O==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var O=v(this.extraFields[1].value);this.uncompressedSize===x.MAX_VALUE_32BITS&&(this.uncompressedSize=O.readInt(8)),this.compressedSize===x.MAX_VALUE_32BITS&&(this.compressedSize=O.readInt(8)),this.localHeaderOffset===x.MAX_VALUE_32BITS&&(this.localHeaderOffset=O.readInt(8)),this.diskNumberStart===x.MAX_VALUE_32BITS&&(this.diskNumberStart=O.readInt(4))}},readExtraFields:function(O){var N,U,z,W=O.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});O.index+4<W;)N=O.readInt(2),U=O.readInt(2),z=O.readData(U),this.extraFields[N]={id:N,length:U,value:z};O.setIndex(W)},handleUTF8:function(){var O=k.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=y.utf8decode(this.fileName),this.fileCommentStr=y.utf8decode(this.fileComment);else{var N=this.findExtraFieldUnicodePath();if(N!==null)this.fileNameStr=N;else{var U=x.transformTo(O,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(U)}var z=this.findExtraFieldUnicodeComment();if(z!==null)this.fileCommentStr=z;else{var W=x.transformTo(O,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(W)}}},findExtraFieldUnicodePath:function(){var O=this.extraFields[28789];if(O){var N=v(O.value);return N.readInt(1)!==1||w(this.fileName)!==N.readInt(4)?null:y.utf8decode(N.readData(O.length-5))}return null},findExtraFieldUnicodeComment:function(){var O=this.extraFields[25461];if(O){var N=v(O.value);return N.readInt(1)!==1||w(this.fileComment)!==N.readInt(4)?null:y.utf8decode(N.readData(O.length-5))}return null}},m.exports=F},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(p,m,d){function v(N,U,z){this.name=N,this.dir=z.dir,this.date=z.date,this.comment=z.comment,this.unixPermissions=z.unixPermissions,this.dosPermissions=z.dosPermissions,this._data=U,this._dataBinary=z.binary,this.options={compression:z.compression,compressionOptions:z.compressionOptions}}var x=p("./stream/StreamHelper"),g=p("./stream/DataWorker"),w=p("./utf8"),y=p("./compressedObject"),_=p("./stream/GenericWorker");v.prototype={internalStream:function(N){var U=null,z="string";try{if(!N)throw new Error("No output type specified.");var W=(z=N.toLowerCase())==="string"||z==="text";z!=="binarystring"&&z!=="text"||(z="string"),U=this._decompressWorker();var X=!this._dataBinary;X&&!W&&(U=U.pipe(new w.Utf8EncodeWorker)),!X&&W&&(U=U.pipe(new w.Utf8DecodeWorker))}catch(J){(U=new _("error")).error(J)}return new x(U,z,"")},async:function(N,U){return this.internalStream(N).accumulate(U)},nodeStream:function(N,U){return this.internalStream(N||"nodebuffer").toNodejsStream(U)},_compressWorker:function(N,U){if(this._data instanceof y&&this._data.compression.magic===N.magic)return this._data.getCompressedWorker();var z=this._decompressWorker();return this._dataBinary||(z=z.pipe(new w.Utf8EncodeWorker)),y.createWorkerFrom(z,N,U)},_decompressWorker:function(){return this._data instanceof y?this._data.getContentWorker():this._data instanceof _?this._data:new g(this._data)}};for(var k=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],F=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},O=0;O<k.length;O++)v.prototype[k[O]]=F;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,w=v.MutationObserver||v.WebKitMutationObserver;if(w){var y=0,_=new w(N),k=v.document.createTextNode("");_.observe(k,{characterData:!0}),x=function(){k.data=y=++y%2}}else if(v.setImmediate||v.MessageChannel===void 0)x="document"in v&&"onreadystatechange"in v.document.createElement("script")?function(){var U=v.document.createElement("script");U.onreadystatechange=function(){N(),U.onreadystatechange=null,U.parentNode.removeChild(U),U=null},v.document.documentElement.appendChild(U)}:function(){setTimeout(N,0)};else{var F=new v.MessageChannel;F.port1.onmessage=N,x=function(){F.port2.postMessage(0)}}var O=[];function N(){var U,z;g=!0;for(var W=O.length;W;){for(z=O,O=[],U=-1;++U<W;)z[U]();W=O.length}g=!1}m.exports=function(U){O.push(U)!==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={},w=["REJECTED"],y=["FULFILLED"],_=["PENDING"];function k(W){if(typeof W!="function")throw new TypeError("resolver must be a function");this.state=_,this.queue=[],this.outcome=void 0,W!==x&&U(this,W)}function F(W,X,J){this.promise=W,typeof X=="function"&&(this.onFulfilled=X,this.callFulfilled=this.otherCallFulfilled),typeof J=="function"&&(this.onRejected=J,this.callRejected=this.otherCallRejected)}function O(W,X,J){v(function(){var H;try{H=X(J)}catch(I){return g.reject(W,I)}H===W?g.reject(W,new TypeError("Cannot resolve promise with itself")):g.resolve(W,H)})}function N(W){var X=W&&W.then;if(W&&(typeof W=="object"||typeof W=="function")&&typeof X=="function")return function(){X.apply(W,arguments)}}function U(W,X){var J=!1;function H(E){J||(J=!0,g.reject(W,E))}function I(E){J||(J=!0,g.resolve(W,E))}var M=z(function(){X(I,H)});M.status==="error"&&H(M.value)}function z(W,X){var J={};try{J.value=W(X),J.status="success"}catch(H){J.status="error",J.value=H}return J}(m.exports=k).prototype.finally=function(W){if(typeof W!="function")return this;var X=this.constructor;return this.then(function(J){return X.resolve(W()).then(function(){return J})},function(J){return X.resolve(W()).then(function(){throw J})})},k.prototype.catch=function(W){return this.then(null,W)},k.prototype.then=function(W,X){if(typeof W!="function"&&this.state===y||typeof X!="function"&&this.state===w)return this;var J=new this.constructor(x);return this.state!==_?O(J,this.state===y?W:X,this.outcome):this.queue.push(new F(J,W,X)),J},F.prototype.callFulfilled=function(W){g.resolve(this.promise,W)},F.prototype.otherCallFulfilled=function(W){O(this.promise,this.onFulfilled,W)},F.prototype.callRejected=function(W){g.reject(this.promise,W)},F.prototype.otherCallRejected=function(W){O(this.promise,this.onRejected,W)},g.resolve=function(W,X){var J=z(N,X);if(J.status==="error")return g.reject(W,J.value);var H=J.value;if(H)U(W,H);else{W.state=y,W.outcome=X;for(var I=-1,M=W.queue.length;++I<M;)W.queue[I].callFulfilled(X)}return W},g.reject=function(W,X){W.state=w,W.outcome=X;for(var J=-1,H=W.queue.length;++J<H;)W.queue[J].callRejected(X);return W},k.resolve=function(W){return W instanceof this?W:g.resolve(new this(x),W)},k.reject=function(W){var X=new this(x);return g.reject(X,W)},k.all=function(W){var X=this;if(Object.prototype.toString.call(W)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=W.length,H=!1;if(!J)return this.resolve([]);for(var I=new Array(J),M=0,E=-1,A=new this(x);++E<J;)B(W[E],E);return A;function B(L,P){X.resolve(L).then(function(R){I[P]=R,++M!==J||H||(H=!0,g.resolve(A,I))},function(R){H||(H=!0,g.reject(A,R))})}},k.race=function(W){var X=this;if(Object.prototype.toString.call(W)!=="[object Array]")return this.reject(new TypeError("must be an array"));var J=W.length,H=!1;if(!J)return this.resolve([]);for(var I=-1,M=new this(x);++I<J;)E=W[I],X.resolve(E).then(function(A){H||(H=!0,g.resolve(M,A))},function(A){H||(H=!0,g.reject(M,A))});var E;return M}},{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"),w=p("./zlib/messages"),y=p("./zlib/zstream"),_=Object.prototype.toString,k=0,F=-1,O=0,N=8;function U(W){if(!(this instanceof U))return new U(W);this.options=x.assign({level:F,method:N,chunkSize:16384,windowBits:15,memLevel:8,strategy:O,to:""},W||{});var X=this.options;X.raw&&0<X.windowBits?X.windowBits=-X.windowBits:X.gzip&&0<X.windowBits&&X.windowBits<16&&(X.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var J=v.deflateInit2(this.strm,X.level,X.method,X.windowBits,X.memLevel,X.strategy);if(J!==k)throw new Error(w[J]);if(X.header&&v.deflateSetHeader(this.strm,X.header),X.dictionary){var H;if(H=typeof X.dictionary=="string"?g.string2buf(X.dictionary):_.call(X.dictionary)==="[object ArrayBuffer]"?new Uint8Array(X.dictionary):X.dictionary,(J=v.deflateSetDictionary(this.strm,H))!==k)throw new Error(w[J]);this._dict_set=!0}}function z(W,X){var J=new U(X);if(J.push(W,!0),J.err)throw J.msg||w[J.err];return J.result}U.prototype.push=function(W,X){var J,H,I=this.strm,M=this.options.chunkSize;if(this.ended)return!1;H=X===~~X?X:X===!0?4:0,typeof W=="string"?I.input=g.string2buf(W):_.call(W)==="[object ArrayBuffer]"?I.input=new Uint8Array(W):I.input=W,I.next_in=0,I.avail_in=I.input.length;do{if(I.avail_out===0&&(I.output=new x.Buf8(M),I.next_out=0,I.avail_out=M),(J=v.deflate(I,H))!==1&&J!==k)return this.onEnd(J),!(this.ended=!0);I.avail_out!==0&&(I.avail_in!==0||H!==4&&H!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(x.shrinkBuf(I.output,I.next_out))):this.onData(x.shrinkBuf(I.output,I.next_out)))}while((0<I.avail_in||I.avail_out===0)&&J!==1);return H===4?(J=v.deflateEnd(this.strm),this.onEnd(J),this.ended=!0,J===k):H!==2||(this.onEnd(k),!(I.avail_out=0))},U.prototype.onData=function(W){this.chunks.push(W)},U.prototype.onEnd=function(W){W===k&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=x.flattenChunks(this.chunks)),this.chunks=[],this.err=W,this.msg=this.strm.msg},d.Deflate=U,d.deflate=z,d.deflateRaw=function(W,X){return(X=X||{}).raw=!0,z(W,X)},d.gzip=function(W,X){return(X=X||{}).gzip=!0,z(W,X)}},{"./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"),w=p("./zlib/constants"),y=p("./zlib/messages"),_=p("./zlib/zstream"),k=p("./zlib/gzheader"),F=Object.prototype.toString;function O(U){if(!(this instanceof O))return new O(U);this.options=x.assign({chunkSize:16384,windowBits:0,to:""},U||{});var z=this.options;z.raw&&0<=z.windowBits&&z.windowBits<16&&(z.windowBits=-z.windowBits,z.windowBits===0&&(z.windowBits=-15)),!(0<=z.windowBits&&z.windowBits<16)||U&&U.windowBits||(z.windowBits+=32),15<z.windowBits&&z.windowBits<48&&!(15&z.windowBits)&&(z.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var W=v.inflateInit2(this.strm,z.windowBits);if(W!==w.Z_OK)throw new Error(y[W]);this.header=new k,v.inflateGetHeader(this.strm,this.header)}function N(U,z){var W=new O(z);if(W.push(U,!0),W.err)throw W.msg||y[W.err];return W.result}O.prototype.push=function(U,z){var W,X,J,H,I,M,E=this.strm,A=this.options.chunkSize,B=this.options.dictionary,L=!1;if(this.ended)return!1;X=z===~~z?z:z===!0?w.Z_FINISH:w.Z_NO_FLUSH,typeof U=="string"?E.input=g.binstring2buf(U):F.call(U)==="[object ArrayBuffer]"?E.input=new Uint8Array(U):E.input=U,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new x.Buf8(A),E.next_out=0,E.avail_out=A),(W=v.inflate(E,w.Z_NO_FLUSH))===w.Z_NEED_DICT&&B&&(M=typeof B=="string"?g.string2buf(B):F.call(B)==="[object ArrayBuffer]"?new Uint8Array(B):B,W=v.inflateSetDictionary(this.strm,M)),W===w.Z_BUF_ERROR&&L===!0&&(W=w.Z_OK,L=!1),W!==w.Z_STREAM_END&&W!==w.Z_OK)return this.onEnd(W),!(this.ended=!0);E.next_out&&(E.avail_out!==0&&W!==w.Z_STREAM_END&&(E.avail_in!==0||X!==w.Z_FINISH&&X!==w.Z_SYNC_FLUSH)||(this.options.to==="string"?(J=g.utf8border(E.output,E.next_out),H=E.next_out-J,I=g.buf2string(E.output,J),E.next_out=H,E.avail_out=A-H,H&&x.arraySet(E.output,E.output,J,H,0),this.onData(I)):this.onData(x.shrinkBuf(E.output,E.next_out)))),E.avail_in===0&&E.avail_out===0&&(L=!0)}while((0<E.avail_in||E.avail_out===0)&&W!==w.Z_STREAM_END);return W===w.Z_STREAM_END&&(X=w.Z_FINISH),X===w.Z_FINISH?(W=v.inflateEnd(this.strm),this.onEnd(W),this.ended=!0,W===w.Z_OK):X!==w.Z_SYNC_FLUSH||(this.onEnd(w.Z_OK),!(E.avail_out=0))},O.prototype.onData=function(U){this.chunks.push(U)},O.prototype.onEnd=function(U){U===w.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=x.flattenChunks(this.chunks)),this.chunks=[],this.err=U,this.msg=this.strm.msg},d.Inflate=O,d.inflate=N,d.inflateRaw=function(U,z){return(z=z||{}).raw=!0,N(U,z)},d.ungzip=N},{"./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(w){for(var y=Array.prototype.slice.call(arguments,1);y.length;){var _=y.shift();if(_){if(typeof _!="object")throw new TypeError(_+"must be non-object");for(var k in _)_.hasOwnProperty(k)&&(w[k]=_[k])}}return w},d.shrinkBuf=function(w,y){return w.length===y?w:w.subarray?w.subarray(0,y):(w.length=y,w)};var x={arraySet:function(w,y,_,k,F){if(y.subarray&&w.subarray)w.set(y.subarray(_,_+k),F);else for(var O=0;O<k;O++)w[F+O]=y[_+O]},flattenChunks:function(w){var y,_,k,F,O,N;for(y=k=0,_=w.length;y<_;y++)k+=w[y].length;for(N=new Uint8Array(k),y=F=0,_=w.length;y<_;y++)O=w[y],N.set(O,F),F+=O.length;return N}},g={arraySet:function(w,y,_,k,F){for(var O=0;O<k;O++)w[F+O]=y[_+O]},flattenChunks:function(w){return[].concat.apply([],w)}};d.setTyped=function(w){w?(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 w=new v.Buf8(256),y=0;y<256;y++)w[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;function _(k,F){if(F<65537&&(k.subarray&&g||!k.subarray&&x))return String.fromCharCode.apply(null,v.shrinkBuf(k,F));for(var O="",N=0;N<F;N++)O+=String.fromCharCode(k[N]);return O}w[254]=w[254]=1,d.string2buf=function(k){var F,O,N,U,z,W=k.length,X=0;for(U=0;U<W;U++)(64512&(O=k.charCodeAt(U)))==55296&&U+1<W&&(64512&(N=k.charCodeAt(U+1)))==56320&&(O=65536+(O-55296<<10)+(N-56320),U++),X+=O<128?1:O<2048?2:O<65536?3:4;for(F=new v.Buf8(X),U=z=0;z<X;U++)(64512&(O=k.charCodeAt(U)))==55296&&U+1<W&&(64512&(N=k.charCodeAt(U+1)))==56320&&(O=65536+(O-55296<<10)+(N-56320),U++),O<128?F[z++]=O:(O<2048?F[z++]=192|O>>>6:(O<65536?F[z++]=224|O>>>12:(F[z++]=240|O>>>18,F[z++]=128|O>>>12&63),F[z++]=128|O>>>6&63),F[z++]=128|63&O);return F},d.buf2binstring=function(k){return _(k,k.length)},d.binstring2buf=function(k){for(var F=new v.Buf8(k.length),O=0,N=F.length;O<N;O++)F[O]=k.charCodeAt(O);return F},d.buf2string=function(k,F){var O,N,U,z,W=F||k.length,X=new Array(2*W);for(O=N=0;O<W;)if((U=k[O++])<128)X[N++]=U;else if(4<(z=w[U]))X[N++]=65533,O+=z-1;else{for(U&=z===2?31:z===3?15:7;1<z&&O<W;)U=U<<6|63&k[O++],z--;1<z?X[N++]=65533:U<65536?X[N++]=U:(U-=65536,X[N++]=55296|U>>10&1023,X[N++]=56320|1023&U)}return _(X,N)},d.utf8border=function(k,F){var O;for((F=F||k.length)>k.length&&(F=k.length),O=F-1;0<=O&&(192&k[O])==128;)O--;return O<0||O===0?F:O+w[k[O]]>F?O:F}},{"./common":41}],43:[function(p,m,d){m.exports=function(v,x,g,w){for(var y=65535&v|0,_=v>>>16&65535|0,k=0;g!==0;){for(g-=k=2e3<g?2e3:g;_=_+(y=y+x[w++]|0)|0,--k;);y%=65521,_%=65521}return 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=[],w=0;w<256;w++){x=w;for(var y=0;y<8;y++)x=1&x?3988292384^x>>>1:x>>>1;g[w]=x}return g}();m.exports=function(x,g,w,y){var _=v,k=y+w;x^=-1;for(var F=y;F<k;F++)x=x>>>8^_[255&(x^g[F])];return-1^x}},{}],46:[function(p,m,d){var v,x=p("../utils/common"),g=p("./trees"),w=p("./adler32"),y=p("./crc32"),_=p("./messages"),k=0,F=4,O=0,N=-2,U=-1,z=4,W=2,X=8,J=9,H=286,I=30,M=19,E=2*H+1,A=15,B=3,L=258,P=L+B+1,R=42,C=113,S=1,D=2,V=3,te=4;function oe(K,Te){return K.msg=_[Te],Te}function he(K){return(K<<1)-(4<K?9:0)}function Ne(K){for(var Te=K.length;0<=--Te;)K[Te]=0}function q(K){var Te=K.state,Oe=Te.pending;Oe>K.avail_out&&(Oe=K.avail_out),Oe!==0&&(x.arraySet(K.output,Te.pending_buf,Te.pending_out,Oe,K.next_out),K.next_out+=Oe,Te.pending_out+=Oe,K.total_out+=Oe,K.avail_out-=Oe,Te.pending-=Oe,Te.pending===0&&(Te.pending_out=0))}function ne(K,Te){g._tr_flush_block(K,0<=K.block_start?K.block_start:-1,K.strstart-K.block_start,Te),K.block_start=K.strstart,q(K.strm)}function Q(K,Te){K.pending_buf[K.pending++]=Te}function re(K,Te){K.pending_buf[K.pending++]=Te>>>8&255,K.pending_buf[K.pending++]=255&Te}function ve(K,Te){var Oe,ie,fe=K.max_chain_length,we=K.strstart,Fe=K.prev_length,Ue=K.nice_match,Pe=K.strstart>K.w_size-P?K.strstart-(K.w_size-P):0,$e=K.window,rt=K.w_mask,Ze=K.prev,Se=K.strstart+L,je=$e[we+Fe-1],Ke=$e[we+Fe];K.prev_length>=K.good_match&&(fe>>=2),Ue>K.lookahead&&(Ue=K.lookahead);do if($e[(Oe=Te)+Fe]===Ke&&$e[Oe+Fe-1]===je&&$e[Oe]===$e[we]&&$e[++Oe]===$e[we+1]){we+=2,Oe++;do;while($e[++we]===$e[++Oe]&&$e[++we]===$e[++Oe]&&$e[++we]===$e[++Oe]&&$e[++we]===$e[++Oe]&&$e[++we]===$e[++Oe]&&$e[++we]===$e[++Oe]&&$e[++we]===$e[++Oe]&&$e[++we]===$e[++Oe]&&we<Se);if(ie=L-(Se-we),we=Se-L,Fe<ie){if(K.match_start=Te,Ue<=(Fe=ie))break;je=$e[we+Fe-1],Ke=$e[we+Fe]}}while((Te=Ze[Te&rt])>Pe&&--fe!=0);return Fe<=K.lookahead?Fe:K.lookahead}function Ce(K){var Te,Oe,ie,fe,we,Fe,Ue,Pe,$e,rt,Ze=K.w_size;do{if(fe=K.window_size-K.lookahead-K.strstart,K.strstart>=Ze+(Ze-P)){for(x.arraySet(K.window,K.window,Ze,Ze,0),K.match_start-=Ze,K.strstart-=Ze,K.block_start-=Ze,Te=Oe=K.hash_size;ie=K.head[--Te],K.head[Te]=Ze<=ie?ie-Ze:0,--Oe;);for(Te=Oe=Ze;ie=K.prev[--Te],K.prev[Te]=Ze<=ie?ie-Ze:0,--Oe;);fe+=Ze}if(K.strm.avail_in===0)break;if(Fe=K.strm,Ue=K.window,Pe=K.strstart+K.lookahead,$e=fe,rt=void 0,rt=Fe.avail_in,$e<rt&&(rt=$e),Oe=rt===0?0:(Fe.avail_in-=rt,x.arraySet(Ue,Fe.input,Fe.next_in,rt,Pe),Fe.state.wrap===1?Fe.adler=w(Fe.adler,Ue,rt,Pe):Fe.state.wrap===2&&(Fe.adler=y(Fe.adler,Ue,rt,Pe)),Fe.next_in+=rt,Fe.total_in+=rt,rt),K.lookahead+=Oe,K.lookahead+K.insert>=B)for(we=K.strstart-K.insert,K.ins_h=K.window[we],K.ins_h=(K.ins_h<<K.hash_shift^K.window[we+1])&K.hash_mask;K.insert&&(K.ins_h=(K.ins_h<<K.hash_shift^K.window[we+B-1])&K.hash_mask,K.prev[we&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=we,we++,K.insert--,!(K.lookahead+K.insert<B)););}while(K.lookahead<P&&K.strm.avail_in!==0)}function ce(K,Te){for(var Oe,ie;;){if(K.lookahead<P){if(Ce(K),K.lookahead<P&&Te===k)return S;if(K.lookahead===0)break}if(Oe=0,K.lookahead>=B&&(K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+B-1])&K.hash_mask,Oe=K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart),Oe!==0&&K.strstart-Oe<=K.w_size-P&&(K.match_length=ve(K,Oe)),K.match_length>=B)if(ie=g._tr_tally(K,K.strstart-K.match_start,K.match_length-B),K.lookahead-=K.match_length,K.match_length<=K.max_lazy_match&&K.lookahead>=B){for(K.match_length--;K.strstart++,K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+B-1])&K.hash_mask,Oe=K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart,--K.match_length!=0;);K.strstart++}else K.strstart+=K.match_length,K.match_length=0,K.ins_h=K.window[K.strstart],K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+1])&K.hash_mask;else ie=g._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++;if(ie&&(ne(K,!1),K.strm.avail_out===0))return S}return K.insert=K.strstart<B-1?K.strstart:B-1,Te===F?(ne(K,!0),K.strm.avail_out===0?V:te):K.last_lit&&(ne(K,!1),K.strm.avail_out===0)?S:D}function se(K,Te){for(var Oe,ie,fe;;){if(K.lookahead<P){if(Ce(K),K.lookahead<P&&Te===k)return S;if(K.lookahead===0)break}if(Oe=0,K.lookahead>=B&&(K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+B-1])&K.hash_mask,Oe=K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart),K.prev_length=K.match_length,K.prev_match=K.match_start,K.match_length=B-1,Oe!==0&&K.prev_length<K.max_lazy_match&&K.strstart-Oe<=K.w_size-P&&(K.match_length=ve(K,Oe),K.match_length<=5&&(K.strategy===1||K.match_length===B&&4096<K.strstart-K.match_start)&&(K.match_length=B-1)),K.prev_length>=B&&K.match_length<=K.prev_length){for(fe=K.strstart+K.lookahead-B,ie=g._tr_tally(K,K.strstart-1-K.prev_match,K.prev_length-B),K.lookahead-=K.prev_length-1,K.prev_length-=2;++K.strstart<=fe&&(K.ins_h=(K.ins_h<<K.hash_shift^K.window[K.strstart+B-1])&K.hash_mask,Oe=K.prev[K.strstart&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=K.strstart),--K.prev_length!=0;);if(K.match_available=0,K.match_length=B-1,K.strstart++,ie&&(ne(K,!1),K.strm.avail_out===0))return S}else if(K.match_available){if((ie=g._tr_tally(K,0,K.window[K.strstart-1]))&&ne(K,!1),K.strstart++,K.lookahead--,K.strm.avail_out===0)return S}else K.match_available=1,K.strstart++,K.lookahead--}return K.match_available&&(ie=g._tr_tally(K,0,K.window[K.strstart-1]),K.match_available=0),K.insert=K.strstart<B-1?K.strstart:B-1,Te===F?(ne(K,!0),K.strm.avail_out===0?V:te):K.last_lit&&(ne(K,!1),K.strm.avail_out===0)?S:D}function ee(K,Te,Oe,ie,fe){this.good_length=K,this.max_lazy=Te,this.nice_length=Oe,this.max_chain=ie,this.func=fe}function G(){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=X,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*E),this.dyn_dtree=new x.Buf16(2*(2*I+1)),this.bl_tree=new x.Buf16(2*(2*M+1)),Ne(this.dyn_ltree),Ne(this.dyn_dtree),Ne(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new x.Buf16(A+1),this.heap=new x.Buf16(2*H+1),Ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new x.Buf16(2*H+1),Ne(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 Z(K){var Te;return K&&K.state?(K.total_in=K.total_out=0,K.data_type=W,(Te=K.state).pending=0,Te.pending_out=0,Te.wrap<0&&(Te.wrap=-Te.wrap),Te.status=Te.wrap?R:C,K.adler=Te.wrap===2?0:1,Te.last_flush=k,g._tr_init(Te),O):oe(K,N)}function de(K){var Te=Z(K);return Te===O&&function(Oe){Oe.window_size=2*Oe.w_size,Ne(Oe.head),Oe.max_lazy_match=v[Oe.level].max_lazy,Oe.good_match=v[Oe.level].good_length,Oe.nice_match=v[Oe.level].nice_length,Oe.max_chain_length=v[Oe.level].max_chain,Oe.strstart=0,Oe.block_start=0,Oe.lookahead=0,Oe.insert=0,Oe.match_length=Oe.prev_length=B-1,Oe.match_available=0,Oe.ins_h=0}(K.state),Te}function Ae(K,Te,Oe,ie,fe,we){if(!K)return N;var Fe=1;if(Te===U&&(Te=6),ie<0?(Fe=0,ie=-ie):15<ie&&(Fe=2,ie-=16),fe<1||J<fe||Oe!==X||ie<8||15<ie||Te<0||9<Te||we<0||z<we)return oe(K,N);ie===8&&(ie=9);var Ue=new G;return(K.state=Ue).strm=K,Ue.wrap=Fe,Ue.gzhead=null,Ue.w_bits=ie,Ue.w_size=1<<Ue.w_bits,Ue.w_mask=Ue.w_size-1,Ue.hash_bits=fe+7,Ue.hash_size=1<<Ue.hash_bits,Ue.hash_mask=Ue.hash_size-1,Ue.hash_shift=~~((Ue.hash_bits+B-1)/B),Ue.window=new x.Buf8(2*Ue.w_size),Ue.head=new x.Buf16(Ue.hash_size),Ue.prev=new x.Buf16(Ue.w_size),Ue.lit_bufsize=1<<fe+6,Ue.pending_buf_size=4*Ue.lit_bufsize,Ue.pending_buf=new x.Buf8(Ue.pending_buf_size),Ue.d_buf=1*Ue.lit_bufsize,Ue.l_buf=3*Ue.lit_bufsize,Ue.level=Te,Ue.strategy=we,Ue.method=Oe,de(K)}v=[new ee(0,0,0,0,function(K,Te){var Oe=65535;for(Oe>K.pending_buf_size-5&&(Oe=K.pending_buf_size-5);;){if(K.lookahead<=1){if(Ce(K),K.lookahead===0&&Te===k)return S;if(K.lookahead===0)break}K.strstart+=K.lookahead,K.lookahead=0;var ie=K.block_start+Oe;if((K.strstart===0||K.strstart>=ie)&&(K.lookahead=K.strstart-ie,K.strstart=ie,ne(K,!1),K.strm.avail_out===0)||K.strstart-K.block_start>=K.w_size-P&&(ne(K,!1),K.strm.avail_out===0))return S}return K.insert=0,Te===F?(ne(K,!0),K.strm.avail_out===0?V:te):(K.strstart>K.block_start&&(ne(K,!1),K.strm.avail_out),S)}),new ee(4,4,8,4,ce),new ee(4,5,16,8,ce),new ee(4,6,32,32,ce),new ee(4,4,16,16,se),new ee(8,16,32,32,se),new ee(8,16,128,128,se),new ee(8,32,128,256,se),new ee(32,128,258,1024,se),new ee(32,258,258,4096,se)],d.deflateInit=function(K,Te){return Ae(K,Te,X,15,8,0)},d.deflateInit2=Ae,d.deflateReset=de,d.deflateResetKeep=Z,d.deflateSetHeader=function(K,Te){return K&&K.state?K.state.wrap!==2?N:(K.state.gzhead=Te,O):N},d.deflate=function(K,Te){var Oe,ie,fe,we;if(!K||!K.state||5<Te||Te<0)return K?oe(K,N):N;if(ie=K.state,!K.output||!K.input&&K.avail_in!==0||ie.status===666&&Te!==F)return oe(K,K.avail_out===0?-5:N);if(ie.strm=K,Oe=ie.last_flush,ie.last_flush=Te,ie.status===R)if(ie.wrap===2)K.adler=0,Q(ie,31),Q(ie,139),Q(ie,8),ie.gzhead?(Q(ie,(ie.gzhead.text?1:0)+(ie.gzhead.hcrc?2:0)+(ie.gzhead.extra?4:0)+(ie.gzhead.name?8:0)+(ie.gzhead.comment?16:0)),Q(ie,255&ie.gzhead.time),Q(ie,ie.gzhead.time>>8&255),Q(ie,ie.gzhead.time>>16&255),Q(ie,ie.gzhead.time>>24&255),Q(ie,ie.level===9?2:2<=ie.strategy||ie.level<2?4:0),Q(ie,255&ie.gzhead.os),ie.gzhead.extra&&ie.gzhead.extra.length&&(Q(ie,255&ie.gzhead.extra.length),Q(ie,ie.gzhead.extra.length>>8&255)),ie.gzhead.hcrc&&(K.adler=y(K.adler,ie.pending_buf,ie.pending,0)),ie.gzindex=0,ie.status=69):(Q(ie,0),Q(ie,0),Q(ie,0),Q(ie,0),Q(ie,0),Q(ie,ie.level===9?2:2<=ie.strategy||ie.level<2?4:0),Q(ie,3),ie.status=C);else{var Fe=X+(ie.w_bits-8<<4)<<8;Fe|=(2<=ie.strategy||ie.level<2?0:ie.level<6?1:ie.level===6?2:3)<<6,ie.strstart!==0&&(Fe|=32),Fe+=31-Fe%31,ie.status=C,re(ie,Fe),ie.strstart!==0&&(re(ie,K.adler>>>16),re(ie,65535&K.adler)),K.adler=1}if(ie.status===69)if(ie.gzhead.extra){for(fe=ie.pending;ie.gzindex<(65535&ie.gzhead.extra.length)&&(ie.pending!==ie.pending_buf_size||(ie.gzhead.hcrc&&ie.pending>fe&&(K.adler=y(K.adler,ie.pending_buf,ie.pending-fe,fe)),q(K),fe=ie.pending,ie.pending!==ie.pending_buf_size));)Q(ie,255&ie.gzhead.extra[ie.gzindex]),ie.gzindex++;ie.gzhead.hcrc&&ie.pending>fe&&(K.adler=y(K.adler,ie.pending_buf,ie.pending-fe,fe)),ie.gzindex===ie.gzhead.extra.length&&(ie.gzindex=0,ie.status=73)}else ie.status=73;if(ie.status===73)if(ie.gzhead.name){fe=ie.pending;do{if(ie.pending===ie.pending_buf_size&&(ie.gzhead.hcrc&&ie.pending>fe&&(K.adler=y(K.adler,ie.pending_buf,ie.pending-fe,fe)),q(K),fe=ie.pending,ie.pending===ie.pending_buf_size)){we=1;break}we=ie.gzindex<ie.gzhead.name.length?255&ie.gzhead.name.charCodeAt(ie.gzindex++):0,Q(ie,we)}while(we!==0);ie.gzhead.hcrc&&ie.pending>fe&&(K.adler=y(K.adler,ie.pending_buf,ie.pending-fe,fe)),we===0&&(ie.gzindex=0,ie.status=91)}else ie.status=91;if(ie.status===91)if(ie.gzhead.comment){fe=ie.pending;do{if(ie.pending===ie.pending_buf_size&&(ie.gzhead.hcrc&&ie.pending>fe&&(K.adler=y(K.adler,ie.pending_buf,ie.pending-fe,fe)),q(K),fe=ie.pending,ie.pending===ie.pending_buf_size)){we=1;break}we=ie.gzindex<ie.gzhead.comment.length?255&ie.gzhead.comment.charCodeAt(ie.gzindex++):0,Q(ie,we)}while(we!==0);ie.gzhead.hcrc&&ie.pending>fe&&(K.adler=y(K.adler,ie.pending_buf,ie.pending-fe,fe)),we===0&&(ie.status=103)}else ie.status=103;if(ie.status===103&&(ie.gzhead.hcrc?(ie.pending+2>ie.pending_buf_size&&q(K),ie.pending+2<=ie.pending_buf_size&&(Q(ie,255&K.adler),Q(ie,K.adler>>8&255),K.adler=0,ie.status=C)):ie.status=C),ie.pending!==0){if(q(K),K.avail_out===0)return ie.last_flush=-1,O}else if(K.avail_in===0&&he(Te)<=he(Oe)&&Te!==F)return oe(K,-5);if(ie.status===666&&K.avail_in!==0)return oe(K,-5);if(K.avail_in!==0||ie.lookahead!==0||Te!==k&&ie.status!==666){var Ue=ie.strategy===2?function(Pe,$e){for(var rt;;){if(Pe.lookahead===0&&(Ce(Pe),Pe.lookahead===0)){if($e===k)return S;break}if(Pe.match_length=0,rt=g._tr_tally(Pe,0,Pe.window[Pe.strstart]),Pe.lookahead--,Pe.strstart++,rt&&(ne(Pe,!1),Pe.strm.avail_out===0))return S}return Pe.insert=0,$e===F?(ne(Pe,!0),Pe.strm.avail_out===0?V:te):Pe.last_lit&&(ne(Pe,!1),Pe.strm.avail_out===0)?S:D}(ie,Te):ie.strategy===3?function(Pe,$e){for(var rt,Ze,Se,je,Ke=Pe.window;;){if(Pe.lookahead<=L){if(Ce(Pe),Pe.lookahead<=L&&$e===k)return S;if(Pe.lookahead===0)break}if(Pe.match_length=0,Pe.lookahead>=B&&0<Pe.strstart&&(Ze=Ke[Se=Pe.strstart-1])===Ke[++Se]&&Ze===Ke[++Se]&&Ze===Ke[++Se]){je=Pe.strstart+L;do;while(Ze===Ke[++Se]&&Ze===Ke[++Se]&&Ze===Ke[++Se]&&Ze===Ke[++Se]&&Ze===Ke[++Se]&&Ze===Ke[++Se]&&Ze===Ke[++Se]&&Ze===Ke[++Se]&&Se<je);Pe.match_length=L-(je-Se),Pe.match_length>Pe.lookahead&&(Pe.match_length=Pe.lookahead)}if(Pe.match_length>=B?(rt=g._tr_tally(Pe,1,Pe.match_length-B),Pe.lookahead-=Pe.match_length,Pe.strstart+=Pe.match_length,Pe.match_length=0):(rt=g._tr_tally(Pe,0,Pe.window[Pe.strstart]),Pe.lookahead--,Pe.strstart++),rt&&(ne(Pe,!1),Pe.strm.avail_out===0))return S}return Pe.insert=0,$e===F?(ne(Pe,!0),Pe.strm.avail_out===0?V:te):Pe.last_lit&&(ne(Pe,!1),Pe.strm.avail_out===0)?S:D}(ie,Te):v[ie.level].func(ie,Te);if(Ue!==V&&Ue!==te||(ie.status=666),Ue===S||Ue===V)return K.avail_out===0&&(ie.last_flush=-1),O;if(Ue===D&&(Te===1?g._tr_align(ie):Te!==5&&(g._tr_stored_block(ie,0,0,!1),Te===3&&(Ne(ie.head),ie.lookahead===0&&(ie.strstart=0,ie.block_start=0,ie.insert=0))),q(K),K.avail_out===0))return ie.last_flush=-1,O}return Te!==F?O:ie.wrap<=0?1:(ie.wrap===2?(Q(ie,255&K.adler),Q(ie,K.adler>>8&255),Q(ie,K.adler>>16&255),Q(ie,K.adler>>24&255),Q(ie,255&K.total_in),Q(ie,K.total_in>>8&255),Q(ie,K.total_in>>16&255),Q(ie,K.total_in>>24&255)):(re(ie,K.adler>>>16),re(ie,65535&K.adler)),q(K),0<ie.wrap&&(ie.wrap=-ie.wrap),ie.pending!==0?O:1)},d.deflateEnd=function(K){var Te;return K&&K.state?(Te=K.state.status)!==R&&Te!==69&&Te!==73&&Te!==91&&Te!==103&&Te!==C&&Te!==666?oe(K,N):(K.state=null,Te===C?oe(K,-3):O):N},d.deflateSetDictionary=function(K,Te){var Oe,ie,fe,we,Fe,Ue,Pe,$e,rt=Te.length;if(!K||!K.state||(we=(Oe=K.state).wrap)===2||we===1&&Oe.status!==R||Oe.lookahead)return N;for(we===1&&(K.adler=w(K.adler,Te,rt,0)),Oe.wrap=0,rt>=Oe.w_size&&(we===0&&(Ne(Oe.head),Oe.strstart=0,Oe.block_start=0,Oe.insert=0),$e=new x.Buf8(Oe.w_size),x.arraySet($e,Te,rt-Oe.w_size,Oe.w_size,0),Te=$e,rt=Oe.w_size),Fe=K.avail_in,Ue=K.next_in,Pe=K.input,K.avail_in=rt,K.next_in=0,K.input=Te,Ce(Oe);Oe.lookahead>=B;){for(ie=Oe.strstart,fe=Oe.lookahead-(B-1);Oe.ins_h=(Oe.ins_h<<Oe.hash_shift^Oe.window[ie+B-1])&Oe.hash_mask,Oe.prev[ie&Oe.w_mask]=Oe.head[Oe.ins_h],Oe.head[Oe.ins_h]=ie,ie++,--fe;);Oe.strstart=ie,Oe.lookahead=B-1,Ce(Oe)}return Oe.strstart+=Oe.lookahead,Oe.block_start=Oe.strstart,Oe.insert=Oe.lookahead,Oe.lookahead=0,Oe.match_length=Oe.prev_length=B-1,Oe.match_available=0,K.next_in=Ue,K.input=Pe,K.avail_in=Fe,Oe.wrap=we,O},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,w,y,_,k,F,O,N,U,z,W,X,J,H,I,M,E,A,B,L,P,R,C,S,D;g=v.state,w=v.next_in,S=v.input,y=w+(v.avail_in-5),_=v.next_out,D=v.output,k=_-(x-v.avail_out),F=_+(v.avail_out-257),O=g.dmax,N=g.wsize,U=g.whave,z=g.wnext,W=g.window,X=g.hold,J=g.bits,H=g.lencode,I=g.distcode,M=(1<<g.lenbits)-1,E=(1<<g.distbits)-1;e:do{J<15&&(X+=S[w++]<<J,J+=8,X+=S[w++]<<J,J+=8),A=H[X&M];t:for(;;){if(X>>>=B=A>>>24,J-=B,(B=A>>>16&255)===0)D[_++]=65535&A;else{if(!(16&B)){if(!(64&B)){A=H[(65535&A)+(X&(1<<B)-1)];continue t}if(32&B){g.mode=12;break e}v.msg="invalid literal/length code",g.mode=30;break e}L=65535&A,(B&=15)&&(J<B&&(X+=S[w++]<<J,J+=8),L+=X&(1<<B)-1,X>>>=B,J-=B),J<15&&(X+=S[w++]<<J,J+=8,X+=S[w++]<<J,J+=8),A=I[X&E];r:for(;;){if(X>>>=B=A>>>24,J-=B,!(16&(B=A>>>16&255))){if(!(64&B)){A=I[(65535&A)+(X&(1<<B)-1)];continue r}v.msg="invalid distance code",g.mode=30;break e}if(P=65535&A,J<(B&=15)&&(X+=S[w++]<<J,(J+=8)<B&&(X+=S[w++]<<J,J+=8)),O<(P+=X&(1<<B)-1)){v.msg="invalid distance too far back",g.mode=30;break e}if(X>>>=B,J-=B,(B=_-k)<P){if(U<(B=P-B)&&g.sane){v.msg="invalid distance too far back",g.mode=30;break e}if(C=W,(R=0)===z){if(R+=N-B,B<L){for(L-=B;D[_++]=W[R++],--B;);R=_-P,C=D}}else if(z<B){if(R+=N+z-B,(B-=z)<L){for(L-=B;D[_++]=W[R++],--B;);if(R=0,z<L){for(L-=B=z;D[_++]=W[R++],--B;);R=_-P,C=D}}}else if(R+=z-B,B<L){for(L-=B;D[_++]=W[R++],--B;);R=_-P,C=D}for(;2<L;)D[_++]=C[R++],D[_++]=C[R++],D[_++]=C[R++],L-=3;L&&(D[_++]=C[R++],1<L&&(D[_++]=C[R++]))}else{for(R=_-P;D[_++]=D[R++],D[_++]=D[R++],D[_++]=D[R++],2<(L-=3););L&&(D[_++]=D[R++],1<L&&(D[_++]=D[R++]))}break}}break}}while(w<y&&_<F);w-=L=J>>3,X&=(1<<(J-=L<<3))-1,v.next_in=w,v.next_out=_,v.avail_in=w<y?y-w+5:5-(w-y),v.avail_out=_<F?F-_+257:257-(_-F),g.hold=X,g.bits=J}},{}],49:[function(p,m,d){var v=p("../utils/common"),x=p("./adler32"),g=p("./crc32"),w=p("./inffast"),y=p("./inftrees"),_=1,k=2,F=0,O=-2,N=1,U=852,z=592;function W(R){return(R>>>24&255)+(R>>>8&65280)+((65280&R)<<8)+((255&R)<<24)}function X(){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 J(R){var C;return R&&R.state?(C=R.state,R.total_in=R.total_out=C.total=0,R.msg="",C.wrap&&(R.adler=1&C.wrap),C.mode=N,C.last=0,C.havedict=0,C.dmax=32768,C.head=null,C.hold=0,C.bits=0,C.lencode=C.lendyn=new v.Buf32(U),C.distcode=C.distdyn=new v.Buf32(z),C.sane=1,C.back=-1,F):O}function H(R){var C;return R&&R.state?((C=R.state).wsize=0,C.whave=0,C.wnext=0,J(R)):O}function I(R,C){var S,D;return R&&R.state?(D=R.state,C<0?(S=0,C=-C):(S=1+(C>>4),C<48&&(C&=15)),C&&(C<8||15<C)?O:(D.window!==null&&D.wbits!==C&&(D.window=null),D.wrap=S,D.wbits=C,H(R))):O}function M(R,C){var S,D;return R?(D=new X,(R.state=D).window=null,(S=I(R,C))!==F&&(R.state=null),S):O}var E,A,B=!0;function L(R){if(B){var C;for(E=new v.Buf32(512),A=new v.Buf32(32),C=0;C<144;)R.lens[C++]=8;for(;C<256;)R.lens[C++]=9;for(;C<280;)R.lens[C++]=7;for(;C<288;)R.lens[C++]=8;for(y(_,R.lens,0,288,E,0,R.work,{bits:9}),C=0;C<32;)R.lens[C++]=5;y(k,R.lens,0,32,A,0,R.work,{bits:5}),B=!1}R.lencode=E,R.lenbits=9,R.distcode=A,R.distbits=5}function P(R,C,S,D){var V,te=R.state;return te.window===null&&(te.wsize=1<<te.wbits,te.wnext=0,te.whave=0,te.window=new v.Buf8(te.wsize)),D>=te.wsize?(v.arraySet(te.window,C,S-te.wsize,te.wsize,0),te.wnext=0,te.whave=te.wsize):(D<(V=te.wsize-te.wnext)&&(V=D),v.arraySet(te.window,C,S-D,V,te.wnext),(D-=V)?(v.arraySet(te.window,C,S-D,D,0),te.wnext=D,te.whave=te.wsize):(te.wnext+=V,te.wnext===te.wsize&&(te.wnext=0),te.whave<te.wsize&&(te.whave+=V))),0}d.inflateReset=H,d.inflateReset2=I,d.inflateResetKeep=J,d.inflateInit=function(R){return M(R,15)},d.inflateInit2=M,d.inflate=function(R,C){var S,D,V,te,oe,he,Ne,q,ne,Q,re,ve,Ce,ce,se,ee,G,Z,de,Ae,K,Te,Oe,ie,fe=0,we=new v.Buf8(4),Fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!R||!R.state||!R.output||!R.input&&R.avail_in!==0)return O;(S=R.state).mode===12&&(S.mode=13),oe=R.next_out,V=R.output,Ne=R.avail_out,te=R.next_in,D=R.input,he=R.avail_in,q=S.hold,ne=S.bits,Q=he,re=Ne,Te=F;e:for(;;)switch(S.mode){case N:if(S.wrap===0){S.mode=13;break}for(;ne<16;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}if(2&S.wrap&&q===35615){we[S.check=0]=255&q,we[1]=q>>>8&255,S.check=g(S.check,we,2,0),ne=q=0,S.mode=2;break}if(S.flags=0,S.head&&(S.head.done=!1),!(1&S.wrap)||(((255&q)<<8)+(q>>8))%31){R.msg="incorrect header check",S.mode=30;break}if((15&q)!=8){R.msg="unknown compression method",S.mode=30;break}if(ne-=4,K=8+(15&(q>>>=4)),S.wbits===0)S.wbits=K;else if(K>S.wbits){R.msg="invalid window size",S.mode=30;break}S.dmax=1<<K,R.adler=S.check=1,S.mode=512&q?10:12,ne=q=0;break;case 2:for(;ne<16;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}if(S.flags=q,(255&S.flags)!=8){R.msg="unknown compression method",S.mode=30;break}if(57344&S.flags){R.msg="unknown header flags set",S.mode=30;break}S.head&&(S.head.text=q>>8&1),512&S.flags&&(we[0]=255&q,we[1]=q>>>8&255,S.check=g(S.check,we,2,0)),ne=q=0,S.mode=3;case 3:for(;ne<32;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}S.head&&(S.head.time=q),512&S.flags&&(we[0]=255&q,we[1]=q>>>8&255,we[2]=q>>>16&255,we[3]=q>>>24&255,S.check=g(S.check,we,4,0)),ne=q=0,S.mode=4;case 4:for(;ne<16;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}S.head&&(S.head.xflags=255&q,S.head.os=q>>8),512&S.flags&&(we[0]=255&q,we[1]=q>>>8&255,S.check=g(S.check,we,2,0)),ne=q=0,S.mode=5;case 5:if(1024&S.flags){for(;ne<16;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}S.length=q,S.head&&(S.head.extra_len=q),512&S.flags&&(we[0]=255&q,we[1]=q>>>8&255,S.check=g(S.check,we,2,0)),ne=q=0}else S.head&&(S.head.extra=null);S.mode=6;case 6:if(1024&S.flags&&(he<(ve=S.length)&&(ve=he),ve&&(S.head&&(K=S.head.extra_len-S.length,S.head.extra||(S.head.extra=new Array(S.head.extra_len)),v.arraySet(S.head.extra,D,te,ve,K)),512&S.flags&&(S.check=g(S.check,D,ve,te)),he-=ve,te+=ve,S.length-=ve),S.length))break e;S.length=0,S.mode=7;case 7:if(2048&S.flags){if(he===0)break e;for(ve=0;K=D[te+ve++],S.head&&K&&S.length<65536&&(S.head.name+=String.fromCharCode(K)),K&&ve<he;);if(512&S.flags&&(S.check=g(S.check,D,ve,te)),he-=ve,te+=ve,K)break e}else S.head&&(S.head.name=null);S.length=0,S.mode=8;case 8:if(4096&S.flags){if(he===0)break e;for(ve=0;K=D[te+ve++],S.head&&K&&S.length<65536&&(S.head.comment+=String.fromCharCode(K)),K&&ve<he;);if(512&S.flags&&(S.check=g(S.check,D,ve,te)),he-=ve,te+=ve,K)break e}else S.head&&(S.head.comment=null);S.mode=9;case 9:if(512&S.flags){for(;ne<16;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}if(q!==(65535&S.check)){R.msg="header crc mismatch",S.mode=30;break}ne=q=0}S.head&&(S.head.hcrc=S.flags>>9&1,S.head.done=!0),R.adler=S.check=0,S.mode=12;break;case 10:for(;ne<32;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}R.adler=S.check=W(q),ne=q=0,S.mode=11;case 11:if(S.havedict===0)return R.next_out=oe,R.avail_out=Ne,R.next_in=te,R.avail_in=he,S.hold=q,S.bits=ne,2;R.adler=S.check=1,S.mode=12;case 12:if(C===5||C===6)break e;case 13:if(S.last){q>>>=7&ne,ne-=7&ne,S.mode=27;break}for(;ne<3;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}switch(S.last=1&q,ne-=1,3&(q>>>=1)){case 0:S.mode=14;break;case 1:if(L(S),S.mode=20,C!==6)break;q>>>=2,ne-=2;break e;case 2:S.mode=17;break;case 3:R.msg="invalid block type",S.mode=30}q>>>=2,ne-=2;break;case 14:for(q>>>=7&ne,ne-=7≠ne<32;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}if((65535&q)!=(q>>>16^65535)){R.msg="invalid stored block lengths",S.mode=30;break}if(S.length=65535&q,ne=q=0,S.mode=15,C===6)break e;case 15:S.mode=16;case 16:if(ve=S.length){if(he<ve&&(ve=he),Ne<ve&&(ve=Ne),ve===0)break e;v.arraySet(V,D,te,ve,oe),he-=ve,te+=ve,Ne-=ve,oe+=ve,S.length-=ve;break}S.mode=12;break;case 17:for(;ne<14;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}if(S.nlen=257+(31&q),q>>>=5,ne-=5,S.ndist=1+(31&q),q>>>=5,ne-=5,S.ncode=4+(15&q),q>>>=4,ne-=4,286<S.nlen||30<S.ndist){R.msg="too many length or distance symbols",S.mode=30;break}S.have=0,S.mode=18;case 18:for(;S.have<S.ncode;){for(;ne<3;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}S.lens[Fe[S.have++]]=7&q,q>>>=3,ne-=3}for(;S.have<19;)S.lens[Fe[S.have++]]=0;if(S.lencode=S.lendyn,S.lenbits=7,Oe={bits:S.lenbits},Te=y(0,S.lens,0,19,S.lencode,0,S.work,Oe),S.lenbits=Oe.bits,Te){R.msg="invalid code lengths set",S.mode=30;break}S.have=0,S.mode=19;case 19:for(;S.have<S.nlen+S.ndist;){for(;ee=(fe=S.lencode[q&(1<<S.lenbits)-1])>>>16&255,G=65535&fe,!((se=fe>>>24)<=ne);){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}if(G<16)q>>>=se,ne-=se,S.lens[S.have++]=G;else{if(G===16){for(ie=se+2;ne<ie;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}if(q>>>=se,ne-=se,S.have===0){R.msg="invalid bit length repeat",S.mode=30;break}K=S.lens[S.have-1],ve=3+(3&q),q>>>=2,ne-=2}else if(G===17){for(ie=se+3;ne<ie;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}ne-=se,K=0,ve=3+(7&(q>>>=se)),q>>>=3,ne-=3}else{for(ie=se+7;ne<ie;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}ne-=se,K=0,ve=11+(127&(q>>>=se)),q>>>=7,ne-=7}if(S.have+ve>S.nlen+S.ndist){R.msg="invalid bit length repeat",S.mode=30;break}for(;ve--;)S.lens[S.have++]=K}}if(S.mode===30)break;if(S.lens[256]===0){R.msg="invalid code -- missing end-of-block",S.mode=30;break}if(S.lenbits=9,Oe={bits:S.lenbits},Te=y(_,S.lens,0,S.nlen,S.lencode,0,S.work,Oe),S.lenbits=Oe.bits,Te){R.msg="invalid literal/lengths set",S.mode=30;break}if(S.distbits=6,S.distcode=S.distdyn,Oe={bits:S.distbits},Te=y(k,S.lens,S.nlen,S.ndist,S.distcode,0,S.work,Oe),S.distbits=Oe.bits,Te){R.msg="invalid distances set",S.mode=30;break}if(S.mode=20,C===6)break e;case 20:S.mode=21;case 21:if(6<=he&&258<=Ne){R.next_out=oe,R.avail_out=Ne,R.next_in=te,R.avail_in=he,S.hold=q,S.bits=ne,w(R,re),oe=R.next_out,V=R.output,Ne=R.avail_out,te=R.next_in,D=R.input,he=R.avail_in,q=S.hold,ne=S.bits,S.mode===12&&(S.back=-1);break}for(S.back=0;ee=(fe=S.lencode[q&(1<<S.lenbits)-1])>>>16&255,G=65535&fe,!((se=fe>>>24)<=ne);){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}if(ee&&!(240&ee)){for(Z=se,de=ee,Ae=G;ee=(fe=S.lencode[Ae+((q&(1<<Z+de)-1)>>Z)])>>>16&255,G=65535&fe,!(Z+(se=fe>>>24)<=ne);){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}q>>>=Z,ne-=Z,S.back+=Z}if(q>>>=se,ne-=se,S.back+=se,S.length=G,ee===0){S.mode=26;break}if(32&ee){S.back=-1,S.mode=12;break}if(64&ee){R.msg="invalid literal/length code",S.mode=30;break}S.extra=15&ee,S.mode=22;case 22:if(S.extra){for(ie=S.extra;ne<ie;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}S.length+=q&(1<<S.extra)-1,q>>>=S.extra,ne-=S.extra,S.back+=S.extra}S.was=S.length,S.mode=23;case 23:for(;ee=(fe=S.distcode[q&(1<<S.distbits)-1])>>>16&255,G=65535&fe,!((se=fe>>>24)<=ne);){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}if(!(240&ee)){for(Z=se,de=ee,Ae=G;ee=(fe=S.distcode[Ae+((q&(1<<Z+de)-1)>>Z)])>>>16&255,G=65535&fe,!(Z+(se=fe>>>24)<=ne);){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}q>>>=Z,ne-=Z,S.back+=Z}if(q>>>=se,ne-=se,S.back+=se,64&ee){R.msg="invalid distance code",S.mode=30;break}S.offset=G,S.extra=15&ee,S.mode=24;case 24:if(S.extra){for(ie=S.extra;ne<ie;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}S.offset+=q&(1<<S.extra)-1,q>>>=S.extra,ne-=S.extra,S.back+=S.extra}if(S.offset>S.dmax){R.msg="invalid distance too far back",S.mode=30;break}S.mode=25;case 25:if(Ne===0)break e;if(ve=re-Ne,S.offset>ve){if((ve=S.offset-ve)>S.whave&&S.sane){R.msg="invalid distance too far back",S.mode=30;break}Ce=ve>S.wnext?(ve-=S.wnext,S.wsize-ve):S.wnext-ve,ve>S.length&&(ve=S.length),ce=S.window}else ce=V,Ce=oe-S.offset,ve=S.length;for(Ne<ve&&(ve=Ne),Ne-=ve,S.length-=ve;V[oe++]=ce[Ce++],--ve;);S.length===0&&(S.mode=21);break;case 26:if(Ne===0)break e;V[oe++]=S.length,Ne--,S.mode=21;break;case 27:if(S.wrap){for(;ne<32;){if(he===0)break e;he--,q|=D[te++]<<ne,ne+=8}if(re-=Ne,R.total_out+=re,S.total+=re,re&&(R.adler=S.check=S.flags?g(S.check,V,re,oe-re):x(S.check,V,re,oe-re)),re=Ne,(S.flags?q:W(q))!==S.check){R.msg="incorrect data check",S.mode=30;break}ne=q=0}S.mode=28;case 28:if(S.wrap&&S.flags){for(;ne<32;){if(he===0)break e;he--,q+=D[te++]<<ne,ne+=8}if(q!==(4294967295&S.total)){R.msg="incorrect length check",S.mode=30;break}ne=q=0}S.mode=29;case 29:Te=1;break e;case 30:Te=-3;break e;case 31:return-4;case 32:default:return O}return R.next_out=oe,R.avail_out=Ne,R.next_in=te,R.avail_in=he,S.hold=q,S.bits=ne,(S.wsize||re!==R.avail_out&&S.mode<30&&(S.mode<27||C!==4))&&P(R,R.output,R.next_out,re-R.avail_out)?(S.mode=31,-4):(Q-=R.avail_in,re-=R.avail_out,R.total_in+=Q,R.total_out+=re,S.total+=re,S.wrap&&re&&(R.adler=S.check=S.flags?g(S.check,V,re,R.next_out-re):x(S.check,V,re,R.next_out-re)),R.data_type=S.bits+(S.last?64:0)+(S.mode===12?128:0)+(S.mode===20||S.mode===15?256:0),(Q==0&&re===0||C===4)&&Te===F&&(Te=-5),Te)},d.inflateEnd=function(R){if(!R||!R.state)return O;var C=R.state;return C.window&&(C.window=null),R.state=null,F},d.inflateGetHeader=function(R,C){var S;return R&&R.state&&2&(S=R.state).wrap?((S.head=C).done=!1,F):O},d.inflateSetDictionary=function(R,C){var S,D=C.length;return R&&R.state?(S=R.state).wrap!==0&&S.mode!==11?O:S.mode===11&&x(1,C,D,0)!==S.check?-3:P(R,C,D,D)?(S.mode=31,-4):(S.havedict=1,F):O},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],w=[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],y=[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(_,k,F,O,N,U,z,W){var X,J,H,I,M,E,A,B,L,P=W.bits,R=0,C=0,S=0,D=0,V=0,te=0,oe=0,he=0,Ne=0,q=0,ne=null,Q=0,re=new v.Buf16(16),ve=new v.Buf16(16),Ce=null,ce=0;for(R=0;R<=15;R++)re[R]=0;for(C=0;C<O;C++)re[k[F+C]]++;for(V=P,D=15;1<=D&&re[D]===0;D--);if(D<V&&(V=D),D===0)return N[U++]=20971520,N[U++]=20971520,W.bits=1,0;for(S=1;S<D&&re[S]===0;S++);for(V<S&&(V=S),R=he=1;R<=15;R++)if(he<<=1,(he-=re[R])<0)return-1;if(0<he&&(_===0||D!==1))return-1;for(ve[1]=0,R=1;R<15;R++)ve[R+1]=ve[R]+re[R];for(C=0;C<O;C++)k[F+C]!==0&&(z[ve[k[F+C]]++]=C);if(E=_===0?(ne=Ce=z,19):_===1?(ne=x,Q-=257,Ce=g,ce-=257,256):(ne=w,Ce=y,-1),R=S,M=U,oe=C=q=0,H=-1,I=(Ne=1<<(te=V))-1,_===1&&852<Ne||_===2&&592<Ne)return 1;for(;;){for(A=R-oe,L=z[C]<E?(B=0,z[C]):z[C]>E?(B=Ce[ce+z[C]],ne[Q+z[C]]):(B=96,0),X=1<<R-oe,S=J=1<<te;N[M+(q>>oe)+(J-=X)]=A<<24|B<<16|L|0,J!==0;);for(X=1<<R-1;q&X;)X>>=1;if(X!==0?(q&=X-1,q+=X):q=0,C++,--re[R]==0){if(R===D)break;R=k[F+z[C]]}if(V<R&&(q&I)!==H){for(oe===0&&(oe=V),M+=S,he=1<<(te=R-oe);te+oe<D&&!((he-=re[te+oe])<=0);)te++,he<<=1;if(Ne+=1<<te,_===1&&852<Ne||_===2&&592<Ne)return 1;N[H=q&I]=V<<24|te<<16|M-U|0}}return q!==0&&(N[M+q]=R-oe<<24|64<<16|0),W.bits=V,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 w(fe){for(var we=fe.length;0<=--we;)fe[we]=0}var y=0,_=29,k=256,F=k+1+_,O=30,N=19,U=2*F+1,z=15,W=16,X=7,J=256,H=16,I=17,M=18,E=[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],A=[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],B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],P=new Array(2*(F+2));w(P);var R=new Array(2*O);w(R);var C=new Array(512);w(C);var S=new Array(256);w(S);var D=new Array(_);w(D);var V,te,oe,he=new Array(O);function Ne(fe,we,Fe,Ue,Pe){this.static_tree=fe,this.extra_bits=we,this.extra_base=Fe,this.elems=Ue,this.max_length=Pe,this.has_stree=fe&&fe.length}function q(fe,we){this.dyn_tree=fe,this.max_code=0,this.stat_desc=we}function ne(fe){return fe<256?C[fe]:C[256+(fe>>>7)]}function Q(fe,we){fe.pending_buf[fe.pending++]=255&we,fe.pending_buf[fe.pending++]=we>>>8&255}function re(fe,we,Fe){fe.bi_valid>W-Fe?(fe.bi_buf|=we<<fe.bi_valid&65535,Q(fe,fe.bi_buf),fe.bi_buf=we>>W-fe.bi_valid,fe.bi_valid+=Fe-W):(fe.bi_buf|=we<<fe.bi_valid&65535,fe.bi_valid+=Fe)}function ve(fe,we,Fe){re(fe,Fe[2*we],Fe[2*we+1])}function Ce(fe,we){for(var Fe=0;Fe|=1&fe,fe>>>=1,Fe<<=1,0<--we;);return Fe>>>1}function ce(fe,we,Fe){var Ue,Pe,$e=new Array(z+1),rt=0;for(Ue=1;Ue<=z;Ue++)$e[Ue]=rt=rt+Fe[Ue-1]<<1;for(Pe=0;Pe<=we;Pe++){var Ze=fe[2*Pe+1];Ze!==0&&(fe[2*Pe]=Ce($e[Ze]++,Ze))}}function se(fe){var we;for(we=0;we<F;we++)fe.dyn_ltree[2*we]=0;for(we=0;we<O;we++)fe.dyn_dtree[2*we]=0;for(we=0;we<N;we++)fe.bl_tree[2*we]=0;fe.dyn_ltree[2*J]=1,fe.opt_len=fe.static_len=0,fe.last_lit=fe.matches=0}function ee(fe){8<fe.bi_valid?Q(fe,fe.bi_buf):0<fe.bi_valid&&(fe.pending_buf[fe.pending++]=fe.bi_buf),fe.bi_buf=0,fe.bi_valid=0}function G(fe,we,Fe,Ue){var Pe=2*we,$e=2*Fe;return fe[Pe]<fe[$e]||fe[Pe]===fe[$e]&&Ue[we]<=Ue[Fe]}function Z(fe,we,Fe){for(var Ue=fe.heap[Fe],Pe=Fe<<1;Pe<=fe.heap_len&&(Pe<fe.heap_len&&G(we,fe.heap[Pe+1],fe.heap[Pe],fe.depth)&&Pe++,!G(we,Ue,fe.heap[Pe],fe.depth));)fe.heap[Fe]=fe.heap[Pe],Fe=Pe,Pe<<=1;fe.heap[Fe]=Ue}function de(fe,we,Fe){var Ue,Pe,$e,rt,Ze=0;if(fe.last_lit!==0)for(;Ue=fe.pending_buf[fe.d_buf+2*Ze]<<8|fe.pending_buf[fe.d_buf+2*Ze+1],Pe=fe.pending_buf[fe.l_buf+Ze],Ze++,Ue===0?ve(fe,Pe,we):(ve(fe,($e=S[Pe])+k+1,we),(rt=E[$e])!==0&&re(fe,Pe-=D[$e],rt),ve(fe,$e=ne(--Ue),Fe),(rt=A[$e])!==0&&re(fe,Ue-=he[$e],rt)),Ze<fe.last_lit;);ve(fe,J,we)}function Ae(fe,we){var Fe,Ue,Pe,$e=we.dyn_tree,rt=we.stat_desc.static_tree,Ze=we.stat_desc.has_stree,Se=we.stat_desc.elems,je=-1;for(fe.heap_len=0,fe.heap_max=U,Fe=0;Fe<Se;Fe++)$e[2*Fe]!==0?(fe.heap[++fe.heap_len]=je=Fe,fe.depth[Fe]=0):$e[2*Fe+1]=0;for(;fe.heap_len<2;)$e[2*(Pe=fe.heap[++fe.heap_len]=je<2?++je:0)]=1,fe.depth[Pe]=0,fe.opt_len--,Ze&&(fe.static_len-=rt[2*Pe+1]);for(we.max_code=je,Fe=fe.heap_len>>1;1<=Fe;Fe--)Z(fe,$e,Fe);for(Pe=Se;Fe=fe.heap[1],fe.heap[1]=fe.heap[fe.heap_len--],Z(fe,$e,1),Ue=fe.heap[1],fe.heap[--fe.heap_max]=Fe,fe.heap[--fe.heap_max]=Ue,$e[2*Pe]=$e[2*Fe]+$e[2*Ue],fe.depth[Pe]=(fe.depth[Fe]>=fe.depth[Ue]?fe.depth[Fe]:fe.depth[Ue])+1,$e[2*Fe+1]=$e[2*Ue+1]=Pe,fe.heap[1]=Pe++,Z(fe,$e,1),2<=fe.heap_len;);fe.heap[--fe.heap_max]=fe.heap[1],function(Ke,st){var St,At,bt,wt,Dt,gt,xt=st.dyn_tree,Bt=st.max_code,kt=st.stat_desc.static_tree,er=st.stat_desc.has_stree,zt=st.stat_desc.extra_bits,Ct=st.stat_desc.extra_base,Kt=st.stat_desc.max_length,ir=0;for(wt=0;wt<=z;wt++)Ke.bl_count[wt]=0;for(xt[2*Ke.heap[Ke.heap_max]+1]=0,St=Ke.heap_max+1;St<U;St++)Kt<(wt=xt[2*xt[2*(At=Ke.heap[St])+1]+1]+1)&&(wt=Kt,ir++),xt[2*At+1]=wt,Bt<At||(Ke.bl_count[wt]++,Dt=0,Ct<=At&&(Dt=zt[At-Ct]),gt=xt[2*At],Ke.opt_len+=gt*(wt+Dt),er&&(Ke.static_len+=gt*(kt[2*At+1]+Dt)));if(ir!==0){do{for(wt=Kt-1;Ke.bl_count[wt]===0;)wt--;Ke.bl_count[wt]--,Ke.bl_count[wt+1]+=2,Ke.bl_count[Kt]--,ir-=2}while(0<ir);for(wt=Kt;wt!==0;wt--)for(At=Ke.bl_count[wt];At!==0;)Bt<(bt=Ke.heap[--St])||(xt[2*bt+1]!==wt&&(Ke.opt_len+=(wt-xt[2*bt+1])*xt[2*bt],xt[2*bt+1]=wt),At--)}}(fe,we),ce($e,je,fe.bl_count)}function K(fe,we,Fe){var Ue,Pe,$e=-1,rt=we[1],Ze=0,Se=7,je=4;for(rt===0&&(Se=138,je=3),we[2*(Fe+1)+1]=65535,Ue=0;Ue<=Fe;Ue++)Pe=rt,rt=we[2*(Ue+1)+1],++Ze<Se&&Pe===rt||(Ze<je?fe.bl_tree[2*Pe]+=Ze:Pe!==0?(Pe!==$e&&fe.bl_tree[2*Pe]++,fe.bl_tree[2*H]++):Ze<=10?fe.bl_tree[2*I]++:fe.bl_tree[2*M]++,$e=Pe,je=(Ze=0)===rt?(Se=138,3):Pe===rt?(Se=6,3):(Se=7,4))}function Te(fe,we,Fe){var Ue,Pe,$e=-1,rt=we[1],Ze=0,Se=7,je=4;for(rt===0&&(Se=138,je=3),Ue=0;Ue<=Fe;Ue++)if(Pe=rt,rt=we[2*(Ue+1)+1],!(++Ze<Se&&Pe===rt)){if(Ze<je)for(;ve(fe,Pe,fe.bl_tree),--Ze!=0;);else Pe!==0?(Pe!==$e&&(ve(fe,Pe,fe.bl_tree),Ze--),ve(fe,H,fe.bl_tree),re(fe,Ze-3,2)):Ze<=10?(ve(fe,I,fe.bl_tree),re(fe,Ze-3,3)):(ve(fe,M,fe.bl_tree),re(fe,Ze-11,7));$e=Pe,je=(Ze=0)===rt?(Se=138,3):Pe===rt?(Se=6,3):(Se=7,4)}}w(he);var Oe=!1;function ie(fe,we,Fe,Ue){re(fe,(y<<1)+(Ue?1:0),3),function(Pe,$e,rt,Ze){ee(Pe),Ze&&(Q(Pe,rt),Q(Pe,~rt)),v.arraySet(Pe.pending_buf,Pe.window,$e,rt,Pe.pending),Pe.pending+=rt}(fe,we,Fe,!0)}d._tr_init=function(fe){Oe||(function(){var we,Fe,Ue,Pe,$e,rt=new Array(z+1);for(Pe=Ue=0;Pe<_-1;Pe++)for(D[Pe]=Ue,we=0;we<1<<E[Pe];we++)S[Ue++]=Pe;for(S[Ue-1]=Pe,Pe=$e=0;Pe<16;Pe++)for(he[Pe]=$e,we=0;we<1<<A[Pe];we++)C[$e++]=Pe;for($e>>=7;Pe<O;Pe++)for(he[Pe]=$e<<7,we=0;we<1<<A[Pe]-7;we++)C[256+$e++]=Pe;for(Fe=0;Fe<=z;Fe++)rt[Fe]=0;for(we=0;we<=143;)P[2*we+1]=8,we++,rt[8]++;for(;we<=255;)P[2*we+1]=9,we++,rt[9]++;for(;we<=279;)P[2*we+1]=7,we++,rt[7]++;for(;we<=287;)P[2*we+1]=8,we++,rt[8]++;for(ce(P,F+1,rt),we=0;we<O;we++)R[2*we+1]=5,R[2*we]=Ce(we,5);V=new Ne(P,E,k+1,F,z),te=new Ne(R,A,0,O,z),oe=new Ne(new Array(0),B,0,N,X)}(),Oe=!0),fe.l_desc=new q(fe.dyn_ltree,V),fe.d_desc=new q(fe.dyn_dtree,te),fe.bl_desc=new q(fe.bl_tree,oe),fe.bi_buf=0,fe.bi_valid=0,se(fe)},d._tr_stored_block=ie,d._tr_flush_block=function(fe,we,Fe,Ue){var Pe,$e,rt=0;0<fe.level?(fe.strm.data_type===2&&(fe.strm.data_type=function(Ze){var Se,je=4093624447;for(Se=0;Se<=31;Se++,je>>>=1)if(1&je&&Ze.dyn_ltree[2*Se]!==0)return x;if(Ze.dyn_ltree[18]!==0||Ze.dyn_ltree[20]!==0||Ze.dyn_ltree[26]!==0)return g;for(Se=32;Se<k;Se++)if(Ze.dyn_ltree[2*Se]!==0)return g;return x}(fe)),Ae(fe,fe.l_desc),Ae(fe,fe.d_desc),rt=function(Ze){var Se;for(K(Ze,Ze.dyn_ltree,Ze.l_desc.max_code),K(Ze,Ze.dyn_dtree,Ze.d_desc.max_code),Ae(Ze,Ze.bl_desc),Se=N-1;3<=Se&&Ze.bl_tree[2*L[Se]+1]===0;Se--);return Ze.opt_len+=3*(Se+1)+5+5+4,Se}(fe),Pe=fe.opt_len+3+7>>>3,($e=fe.static_len+3+7>>>3)<=Pe&&(Pe=$e)):Pe=$e=Fe+5,Fe+4<=Pe&&we!==-1?ie(fe,we,Fe,Ue):fe.strategy===4||$e===Pe?(re(fe,2+(Ue?1:0),3),de(fe,P,R)):(re(fe,4+(Ue?1:0),3),function(Ze,Se,je,Ke){var st;for(re(Ze,Se-257,5),re(Ze,je-1,5),re(Ze,Ke-4,4),st=0;st<Ke;st++)re(Ze,Ze.bl_tree[2*L[st]+1],3);Te(Ze,Ze.dyn_ltree,Se-1),Te(Ze,Ze.dyn_dtree,je-1)}(fe,fe.l_desc.max_code+1,fe.d_desc.max_code+1,rt+1),de(fe,fe.dyn_ltree,fe.dyn_dtree)),se(fe),Ue&&ee(fe)},d._tr_tally=function(fe,we,Fe){return fe.pending_buf[fe.d_buf+2*fe.last_lit]=we>>>8&255,fe.pending_buf[fe.d_buf+2*fe.last_lit+1]=255&we,fe.pending_buf[fe.l_buf+fe.last_lit]=255&Fe,fe.last_lit++,we===0?fe.dyn_ltree[2*Fe]++:(fe.matches++,we--,fe.dyn_ltree[2*(S[Fe]+k+1)]++,fe.dyn_dtree[2*ne(we)]++),fe.last_lit===fe.lit_bufsize-1},d._tr_align=function(fe){re(fe,2,3),ve(fe,J,P),function(we){we.bi_valid===16?(Q(we,we.bi_buf),we.bi_buf=0,we.bi_valid=0):8<=we.bi_valid&&(we.pending_buf[we.pending++]=255&we.bi_buf,we.bi_buf>>=8,we.bi_valid-=8)}(fe)}},{"../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 w,y,_,k,F=1,O={},N=!1,U=x.document,z=Object.getPrototypeOf&&Object.getPrototypeOf(x);z=z&&z.setTimeout?z:x,w={}.toString.call(x.process)==="[object process]"?function(H){s.nextTick(function(){X(H)})}:function(){if(x.postMessage&&!x.importScripts){var H=!0,I=x.onmessage;return x.onmessage=function(){H=!1},x.postMessage("","*"),x.onmessage=I,H}}()?(k="setImmediate$"+Math.random()+"$",x.addEventListener?x.addEventListener("message",J,!1):x.attachEvent("onmessage",J),function(H){x.postMessage(k+H,"*")}):x.MessageChannel?((_=new MessageChannel).port1.onmessage=function(H){X(H.data)},function(H){_.port2.postMessage(H)}):U&&"onreadystatechange"in U.createElement("script")?(y=U.documentElement,function(H){var I=U.createElement("script");I.onreadystatechange=function(){X(H),I.onreadystatechange=null,y.removeChild(I),I=null},y.appendChild(I)}):function(H){setTimeout(X,0,H)},z.setImmediate=function(H){typeof H!="function"&&(H=new Function(""+H));for(var I=new Array(arguments.length-1),M=0;M<I.length;M++)I[M]=arguments[M+1];var E={callback:H,args:I};return O[F]=E,w(F),F++},z.clearImmediate=W}function W(H){delete O[H]}function X(H){if(N)setTimeout(X,0,H);else{var I=O[H];if(I){N=!0;try{(function(M){var E=M.callback,A=M.args;switch(A.length){case 0:E();break;case 1:E(A[0]);break;case 2:E(A[0],A[1]);break;case 3:E(A[0],A[1],A[2]);break;default:E.apply(g,A)}})(I)}finally{W(H),N=!1}}}}function J(H){H.source===x&&typeof H.data=="string"&&H.data.indexOf(k)===0&&X(+H.data.slice(k.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 Qt<"u"?Qt: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(F){if(typeof F=="string")return F;if(y(F))return x?x.call(F):"";var O=F+"";return O=="0"&&1/F==-o?"-0":O}function w(F){return!!F&&typeof F=="object"}function y(F){return typeof F=="symbol"||w(F)&&m.call(F)==h}function _(F){return F==null?"":g(F)}function k(F){return F=_(F),F&&a.test(F)?F.replace(c,"\\$&"):F}n.exports=k}).call(this)}).call(this,typeof Qt<"u"?Qt: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]",w="[object GeneratorFunction]",y="[object Map]",_="[object Number]",k="[object Object]",F="[object Promise]",O="[object RegExp]",N="[object Set]",U="[object String]",z="[object Symbol]",W="[object WeakMap]",X="[object ArrayBuffer]",J="[object DataView]",H="[object Float32Array]",I="[object Float64Array]",M="[object Int8Array]",E="[object Int16Array]",A="[object Int32Array]",B="[object Uint8Array]",L="[object Uint8ClampedArray]",P="[object Uint16Array]",R="[object Uint32Array]",C=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/,D=/^\./,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,oe=/\\(\\)?/g,he=/^\[object .+?Constructor\]$/,Ne=/^(?:0|[1-9]\d*)$/,q={};q[H]=q[I]=q[M]=q[E]=q[A]=q[B]=q[L]=q[P]=q[R]=!0,q[p]=q[m]=q[X]=q[d]=q[J]=q[v]=q[x]=q[g]=q[y]=q[_]=q[k]=q[O]=q[N]=q[U]=q[W]=!1;var ne=typeof s=="object"&&s&&s.Object===Object&&s,Q=typeof self=="object"&&self&&self.Object===Object&&self,re=ne||Q||Function("return this")(),ve=typeof i=="object"&&i&&!i.nodeType&&i,Ce=ve&&typeof n=="object"&&n&&!n.nodeType&&n,ce=Ce&&Ce.exports===ve,se=ce&&ne.process,ee=function(){try{return se&&se.binding("util")}catch{}}(),G=ee&&ee.isTypedArray;function Z(ue,Ie,Ye,ht){for(var Mt=-1,_t=ue?ue.length:0;++Mt<_t;){var Yt=ue[Mt];Ie(ht,Yt,Ye(Yt),ue)}return ht}function de(ue,Ie){for(var Ye=-1,ht=ue?ue.length:0;++Ye<ht;)if(Ie(ue[Ye],Ye,ue))return!0;return!1}function Ae(ue){return function(Ie){return Ie==null?void 0:Ie[ue]}}function K(ue,Ie){for(var Ye=-1,ht=Array(ue);++Ye<ue;)ht[Ye]=Ie(Ye);return ht}function Te(ue){return function(Ie){return ue(Ie)}}function Oe(ue,Ie){return ue==null?void 0:ue[Ie]}function ie(ue){var Ie=!1;if(ue!=null&&typeof ue.toString!="function")try{Ie=!!(ue+"")}catch{}return Ie}function fe(ue){var Ie=-1,Ye=Array(ue.size);return ue.forEach(function(ht,Mt){Ye[++Ie]=[Mt,ht]}),Ye}function we(ue,Ie){return function(Ye){return ue(Ie(Ye))}}function Fe(ue){var Ie=-1,Ye=Array(ue.size);return ue.forEach(function(ht){Ye[++Ie]=ht}),Ye}var Ue=Array.prototype,Pe=Function.prototype,$e=Object.prototype,rt=re["__core-js_shared__"],Ze=function(){var ue=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||"");return ue?"Symbol(src)_1."+ue:""}(),Se=Pe.toString,je=$e.hasOwnProperty,Ke=$e.toString,st=RegExp("^"+Se.call(je).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),St=re.Symbol,At=re.Uint8Array,bt=$e.propertyIsEnumerable,wt=Ue.splice,Dt=we(Object.keys,Object),gt=_i(re,"DataView"),xt=_i(re,"Map"),Bt=_i(re,"Promise"),kt=_i(re,"Set"),er=_i(re,"WeakMap"),zt=_i(Object,"create"),Ct=at(gt),Kt=at(xt),ir=at(Bt),Nt=at(kt),le=at(er),Ee=St?St.prototype:void 0,pe=Ee?Ee.valueOf:void 0,xe=Ee?Ee.toString:void 0;function ye(ue){var Ie=-1,Ye=ue?ue.length:0;for(this.clear();++Ie<Ye;){var ht=ue[Ie];this.set(ht[0],ht[1])}}function _e(){this.__data__=zt?zt(null):{}}function We(ue){return this.has(ue)&&delete this.__data__[ue]}function Je(ue){var Ie=this.__data__;if(zt){var Ye=Ie[ue];return Ye===c?void 0:Ye}return je.call(Ie,ue)?Ie[ue]:void 0}function Le(ue){var Ie=this.__data__;return zt?Ie[ue]!==void 0:je.call(Ie,ue)}function Ve(ue,Ie){var Ye=this.__data__;return Ye[ue]=zt&&Ie===void 0?c:Ie,this}ye.prototype.clear=_e,ye.prototype.delete=We,ye.prototype.get=Je,ye.prototype.has=Le,ye.prototype.set=Ve;function He(ue){var Ie=-1,Ye=ue?ue.length:0;for(this.clear();++Ie<Ye;){var ht=ue[Ie];this.set(ht[0],ht[1])}}function tt(){this.__data__=[]}function me(ue){var Ie=this.__data__,Ye=Yn(Ie,ue);if(Ye<0)return!1;var ht=Ie.length-1;return Ye==ht?Ie.pop():wt.call(Ie,Ye,1),!0}function Me(ue){var Ie=this.__data__,Ye=Yn(Ie,ue);return Ye<0?void 0:Ie[Ye][1]}function Re(ue){return Yn(this.__data__,ue)>-1}function Qe(ue,Ie){var Ye=this.__data__,ht=Yn(Ye,ue);return ht<0?Ye.push([ue,Ie]):Ye[ht][1]=Ie,this}He.prototype.clear=tt,He.prototype.delete=me,He.prototype.get=Me,He.prototype.has=Re,He.prototype.set=Qe;function lt(ue){var Ie=-1,Ye=ue?ue.length:0;for(this.clear();++Ie<Ye;){var ht=ue[Ie];this.set(ht[0],ht[1])}}function Et(){this.__data__={hash:new ye,map:new(xt||He),string:new ye}}function Ot(ue){return oi(this,ue).delete(ue)}function sr(ue){return oi(this,ue).get(ue)}function Wr(ue){return oi(this,ue).has(ue)}function Rr(ue,Ie){return oi(this,ue).set(ue,Ie),this}lt.prototype.clear=Et,lt.prototype.delete=Ot,lt.prototype.get=sr,lt.prototype.has=Wr,lt.prototype.set=Rr;function br(ue){var Ie=-1,Ye=ue?ue.length:0;for(this.__data__=new lt;++Ie<Ye;)this.add(ue[Ie])}function Vr(ue){return this.__data__.set(ue,c),this}function yn(ue){return this.__data__.has(ue)}br.prototype.add=br.prototype.push=Vr,br.prototype.has=yn;function ar(ue){this.__data__=new He(ue)}function Vn(){this.__data__=new He}function Gn(ue){return this.__data__.delete(ue)}function Kn(ue){return this.__data__.get(ue)}function ji(ue){return this.__data__.has(ue)}function xs(ue,Ie){var Ye=this.__data__;if(Ye instanceof He){var ht=Ye.__data__;if(!xt||ht.length<o-1)return ht.push([ue,Ie]),this;Ye=this.__data__=new lt(ht)}return Ye.set(ue,Ie),this}ar.prototype.clear=Vn,ar.prototype.delete=Gn,ar.prototype.get=Kn,ar.prototype.has=ji,ar.prototype.set=xs;function Ya(ue,Ie){var Ye=yr(ue)||gr(ue)?K(ue.length,String):[],ht=Ye.length,Mt=!!ht;for(var _t in ue)(Ie||je.call(ue,_t))&&!(Mt&&(_t=="length"||ga(_t,ht)))&&Ye.push(_t);return Ye}function Yn(ue,Ie){for(var Ye=ue.length;Ye--;)if(jt(ue[Ye][0],Ie))return Ye;return-1}function Za(ue,Ie,Ye,ht){return bs(ue,function(Mt,_t,Yt){Ie(ht,Mt,Ye(Mt),Yt)}),ht}var bs=ro(pa),da=Xo();function pa(ue,Ie){return ue&&da(ue,Ie,$i)}function Ws(ue,Ie){Ie=mr(Ie,ue)?[Ie]:to(Ie);for(var Ye=0,ht=Ie.length;ue!=null&&Ye<ht;)ue=ue[ze(Ie[Ye++])];return Ye&&Ye==ht?ue:void 0}function Wo(ue){return Ke.call(ue)}function Ja(ue,Ie){return ue!=null&&Ie in Object(ue)}function ws(ue,Ie,Ye,ht,Mt){return ue===Ie?!0:ue==null||Ie==null||!Lr(ue)&&!qr(Ie)?ue!==ue&&Ie!==Ie:$s(ue,Ie,ws,Ye,ht,Mt)}function $s(ue,Ie,Ye,ht,Mt,_t){var Yt=yr(ue),Ar=yr(Ie),Dr=m,en=m;Yt||(Dr=Ei(ue),Dr=Dr==p?k:Dr),Ar||(en=Ei(Ie),en=en==p?k:en);var mn=Dr==k&&!ie(ue),ln=en==k&&!ie(Ie),Nr=Dr==en;if(Nr&&!mn)return _t||(_t=new ar),Yt||fi(ue)?yi(ue,Ie,Ye,ht,Mt,_t):no(ue,Ie,Dr,Ye,ht,Mt,_t);if(!(Mt&f)){var Zn=mn&&je.call(ue,"__wrapped__"),Un=ln&&je.call(Ie,"__wrapped__");if(Zn||Un){var zi=Zn?ue.value():ue,li=Un?Ie.value():Ie;return _t||(_t=new ar),Ye(zi,li,ht,Mt,_t)}}return Nr?(_t||(_t=new ar),Vo(ue,Ie,Ye,ht,Mt,_t)):!1}function ns(ue,Ie,Ye,ht){var Mt=Ye.length,_t=Mt,Yt=!ht;if(ue==null)return!_t;for(ue=Object(ue);Mt--;){var Ar=Ye[Mt];if(Yt&&Ar[2]?Ar[1]!==ue[Ar[0]]:!(Ar[0]in ue))return!1}for(;++Mt<_t;){Ar=Ye[Mt];var Dr=Ar[0],en=ue[Dr],mn=Ar[1];if(Yt&&Ar[2]){if(en===void 0&&!(Dr in ue))return!1}else{var ln=new ar;if(ht)var Nr=ht(en,mn,Dr,ue,Ie,ln);if(!(Nr===void 0?ws(mn,en,ht,a|f,ln):Nr))return!1}}return!0}function Qa(ue){if(!Lr(ue)||so(ue))return!1;var Ie=on(ue)||ie(ue)?st:he;return Ie.test(at(ue))}function ma(ue){return qr(ue)&&pn(ue.length)&&!!q[Ke.call(ue)]}function zs(ue){return typeof ue=="function"?ue:ue==null?ys:typeof ue=="object"?yr(ue)?eo(ue[0],ue[1]):qa(ue):is(ue)}function Hi(ue){if(!Ko(ue))return Dt(ue);var Ie=[];for(var Ye in Object(ue))je.call(ue,Ye)&&Ye!="constructor"&&Ie.push(Ye);return Ie}function qa(ue){var Ie=Go(ue);return Ie.length==1&&Ie[0][2]?oo(Ie[0][0],Ie[0][1]):function(Ye){return Ye===ue||ns(Ye,ue,Ie)}}function eo(ue,Ie){return mr(ue)&&ao(Ie)?oo(ze(ue),Ie):function(Ye){var ht=Wi(Ye,ue);return ht===void 0&&ht===Ie?_n(Ye,ue):ws(Ie,ht,void 0,a|f)}}function ai(ue){return function(Ie){return Ws(Ie,ue)}}function $o(ue){if(typeof ue=="string")return ue;if(fn(ue))return xe?xe.call(ue):"";var Ie=ue+"";return Ie=="0"&&1/ue==-l?"-0":Ie}function to(ue){return yr(ue)?ue:ke(ue)}function zo(ue,Ie){return function(Ye,ht){var Mt=yr(Ye)?Z:Za,_t=Ie?Ie():{};return Mt(Ye,ue,zs(ht),_t)}}function ro(ue,Ie){return function(Ye,ht){if(Ye==null)return Ye;if(!Ir(Ye))return ue(Ye,ht);for(var Mt=Ye.length,_t=Ie?Mt:-1,Yt=Object(Ye);(Ie?_t--:++_t<Mt)&&ht(Yt[_t],_t,Yt)!==!1;);return Ye}}function Xo(ue){return function(Ie,Ye,ht){for(var Mt=-1,_t=Object(Ie),Yt=ht(Ie),Ar=Yt.length;Ar--;){var Dr=Yt[ue?Ar:++Mt];if(Ye(_t[Dr],Dr,_t)===!1)break}return Ie}}function yi(ue,Ie,Ye,ht,Mt,_t){var Yt=Mt&f,Ar=ue.length,Dr=Ie.length;if(Ar!=Dr&&!(Yt&&Dr>Ar))return!1;var en=_t.get(ue);if(en&&_t.get(Ie))return en==Ie;var mn=-1,ln=!0,Nr=Mt&a?new br:void 0;for(_t.set(ue,Ie),_t.set(Ie,ue);++mn<Ar;){var Zn=ue[mn],Un=Ie[mn];if(ht)var zi=Yt?ht(Un,Zn,mn,Ie,ue,_t):ht(Zn,Un,mn,ue,Ie,_t);if(zi!==void 0){if(zi)continue;ln=!1;break}if(Nr){if(!de(Ie,function(li,Xi){if(!Nr.has(Xi)&&(Zn===li||Ye(Zn,li,ht,Mt,_t)))return Nr.add(Xi)})){ln=!1;break}}else if(!(Zn===Un||Ye(Zn,Un,ht,Mt,_t))){ln=!1;break}}return _t.delete(ue),_t.delete(Ie),ln}function no(ue,Ie,Ye,ht,Mt,_t,Yt){switch(Ye){case J:if(ue.byteLength!=Ie.byteLength||ue.byteOffset!=Ie.byteOffset)return!1;ue=ue.buffer,Ie=Ie.buffer;case X:return!(ue.byteLength!=Ie.byteLength||!ht(new At(ue),new At(Ie)));case d:case v:case _:return jt(+ue,+Ie);case x:return ue.name==Ie.name&&ue.message==Ie.message;case O:case U:return ue==Ie+"";case y:var Ar=fe;case N:var Dr=_t&f;if(Ar||(Ar=Fe),ue.size!=Ie.size&&!Dr)return!1;var en=Yt.get(ue);if(en)return en==Ie;_t|=a,Yt.set(ue,Ie);var mn=yi(Ar(ue),Ar(Ie),ht,Mt,_t,Yt);return Yt.delete(ue),mn;case z:if(pe)return pe.call(ue)==pe.call(Ie)}return!1}function Vo(ue,Ie,Ye,ht,Mt,_t){var Yt=Mt&f,Ar=$i(ue),Dr=Ar.length,en=$i(Ie),mn=en.length;if(Dr!=mn&&!Yt)return!1;for(var ln=Dr;ln--;){var Nr=Ar[ln];if(!(Yt?Nr in Ie:je.call(Ie,Nr)))return!1}var Zn=_t.get(ue);if(Zn&&_t.get(Ie))return Zn==Ie;var Un=!0;_t.set(ue,Ie),_t.set(Ie,ue);for(var zi=Yt;++ln<Dr;){Nr=Ar[ln];var li=ue[Nr],Xi=Ie[Nr];if(ht)var Yo=Yt?ht(Xi,li,Nr,Ie,ue,_t):ht(li,Xi,Nr,ue,Ie,_t);if(!(Yo===void 0?li===Xi||Ye(li,Xi,ht,Mt,_t):Yo)){Un=!1;break}zi||(zi=Nr=="constructor")}if(Un&&!zi){var fo=ue.constructor,Xs=Ie.constructor;fo!=Xs&&"constructor"in ue&&"constructor"in Ie&&!(typeof fo=="function"&&fo instanceof fo&&typeof Xs=="function"&&Xs instanceof Xs)&&(Un=!1)}return _t.delete(ue),_t.delete(Ie),Un}function oi(ue,Ie){var Ye=ue.__data__;return pr(Ie)?Ye[typeof Ie=="string"?"string":"hash"]:Ye.map}function Go(ue){for(var Ie=$i(ue),Ye=Ie.length;Ye--;){var ht=Ie[Ye],Mt=ue[ht];Ie[Ye]=[ht,Mt,ao(Mt)]}return Ie}function _i(ue,Ie){var Ye=Oe(ue,Ie);return Qa(Ye)?Ye:void 0}var Ei=Wo;(gt&&Ei(new gt(new ArrayBuffer(1)))!=J||xt&&Ei(new xt)!=y||Bt&&Ei(Bt.resolve())!=F||kt&&Ei(new kt)!=N||er&&Ei(new er)!=W)&&(Ei=function(ue){var Ie=Ke.call(ue),Ye=Ie==k?ue.constructor:void 0,ht=Ye?at(Ye):void 0;if(ht)switch(ht){case Ct:return J;case Kt:return y;case ir:return F;case Nt:return N;case le:return W}return Ie});function io(ue,Ie,Ye){Ie=mr(Ie,ue)?[Ie]:to(Ie);for(var ht,Mt=-1,Yt=Ie.length;++Mt<Yt;){var _t=ze(Ie[Mt]);if(!(ht=ue!=null&&Ye(ue,_t)))break;ue=ue[_t]}if(ht)return ht;var Yt=ue?ue.length:0;return!!Yt&&pn(Yt)&&ga(_t,Yt)&&(yr(ue)||gr(ue))}function ga(ue,Ie){return Ie=Ie??u,!!Ie&&(typeof ue=="number"||Ne.test(ue))&&ue>-1&&ue%1==0&&ue<Ie}function mr(ue,Ie){if(yr(ue))return!1;var Ye=typeof ue;return Ye=="number"||Ye=="symbol"||Ye=="boolean"||ue==null||fn(ue)?!0:S.test(ue)||!C.test(ue)||Ie!=null&&ue in Object(Ie)}function pr(ue){var Ie=typeof ue;return Ie=="string"||Ie=="number"||Ie=="symbol"||Ie=="boolean"?ue!=="__proto__":ue===null}function so(ue){return!!Ze&&Ze in ue}function Ko(ue){var Ie=ue&&ue.constructor,Ye=typeof Ie=="function"&&Ie.prototype||$e;return ue===Ye}function ao(ue){return ue===ue&&!Lr(ue)}function oo(ue,Ie){return function(Ye){return Ye==null?!1:Ye[ue]===Ie&&(Ie!==void 0||ue in Object(Ye))}}var ke=$t(function(ue){ue=Or(ue);var Ie=[];return D.test(ue)&&Ie.push(""),ue.replace(V,function(Ye,ht,Mt,_t){Ie.push(Mt?_t.replace(oe,"$1"):ht||Ye)}),Ie});function ze(ue){if(typeof ue=="string"||fn(ue))return ue;var Ie=ue+"";return Ie=="0"&&1/ue==-l?"-0":Ie}function at(ue){if(ue!=null){try{return Se.call(ue)}catch{}try{return ue+""}catch{}}return""}var yt=zo(function(ue,Ie,Ye){je.call(ue,Ye)?ue[Ye].push(Ie):ue[Ye]=[Ie]});function $t(ue,Ie){if(typeof ue!="function"||Ie&&typeof Ie!="function")throw new TypeError(h);var Ye=function(){var ht=arguments,Mt=Ie?Ie.apply(this,ht):ht[0],_t=Ye.cache;if(_t.has(Mt))return _t.get(Mt);var Yt=ue.apply(this,ht);return Ye.cache=_t.set(Mt,Yt),Yt};return Ye.cache=new($t.Cache||lt),Ye}$t.Cache=lt;function jt(ue,Ie){return ue===Ie||ue!==ue&&Ie!==Ie}function gr(ue){return or(ue)&&je.call(ue,"callee")&&(!bt.call(ue,"callee")||Ke.call(ue)==p)}var yr=Array.isArray;function Ir(ue){return ue!=null&&pn(ue.length)&&!on(ue)}function or(ue){return qr(ue)&&Ir(ue)}function on(ue){var Ie=Lr(ue)?Ke.call(ue):"";return Ie==g||Ie==w}function pn(ue){return typeof ue=="number"&&ue>-1&&ue%1==0&&ue<=u}function Lr(ue){var Ie=typeof ue;return!!ue&&(Ie=="object"||Ie=="function")}function qr(ue){return!!ue&&typeof ue=="object"}function fn(ue){return typeof ue=="symbol"||qr(ue)&&Ke.call(ue)==z}var fi=G?Te(G):ma;function Or(ue){return ue==null?"":$o(ue)}function Wi(ue,Ie,Ye){var ht=ue==null?void 0:Ws(ue,Ie);return ht===void 0?Ye:ht}function _n(ue,Ie){return ue!=null&&io(ue,Ie,Ja)}function $i(ue){return Ir(ue)?Ya(ue):Hi(ue)}function ys(ue){return ue}function is(ue){return mr(ue)?Ae(ze(ue)):ai(ue)}n.exports=yt}).call(this)}).call(this,typeof Qt<"u"?Qt: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]",w="[object Map]",y="[object Number]",_="[object Null]",k="[object Object]",F="[object Promise]",O="[object Proxy]",N="[object RegExp]",U="[object Set]",z="[object String]",W="[object Symbol]",X="[object Undefined]",J="[object WeakMap]",H="[object ArrayBuffer]",I="[object DataView]",M="[object Float32Array]",E="[object Float64Array]",A="[object Int8Array]",B="[object Int16Array]",L="[object Int32Array]",P="[object Uint8Array]",R="[object Uint8ClampedArray]",C="[object Uint16Array]",S="[object Uint32Array]",D=/[\\^$.*+?()[\]{}|]/g,V=/^\[object .+?Constructor\]$/,te=/^(?:0|[1-9]\d*)$/,oe={};oe[M]=oe[E]=oe[A]=oe[B]=oe[L]=oe[P]=oe[R]=oe[C]=oe[S]=!0,oe[l]=oe[u]=oe[H]=oe[m]=oe[I]=oe[d]=oe[v]=oe[x]=oe[w]=oe[y]=oe[k]=oe[N]=oe[U]=oe[z]=oe[J]=!1;var he=typeof s=="object"&&s&&s.Object===Object&&s,Ne=typeof self=="object"&&self&&self.Object===Object&&self,q=he||Ne||Function("return this")(),ne=typeof i=="object"&&i&&!i.nodeType&&i,Q=ne&&typeof n=="object"&&n&&!n.nodeType&&n,re=Q&&Q.exports===ne,ve=re&&he.process,Ce=function(){try{return ve&&ve.binding&&ve.binding("util")}catch{}}(),ce=Ce&&Ce.isTypedArray;function se(ke,ze){for(var at=-1,yt=ke==null?0:ke.length,$t=0,jt=[];++at<yt;){var gr=ke[at];ze(gr,at,ke)&&(jt[$t++]=gr)}return jt}function ee(ke,ze){for(var at=-1,yt=ze.length,$t=ke.length;++at<yt;)ke[$t+at]=ze[at];return ke}function G(ke,ze){for(var at=-1,yt=ke==null?0:ke.length;++at<yt;)if(ze(ke[at],at,ke))return!0;return!1}function Z(ke,ze){for(var at=-1,yt=Array(ke);++at<ke;)yt[at]=ze(at);return yt}function de(ke){return function(ze){return ke(ze)}}function Ae(ke,ze){return ke.has(ze)}function K(ke,ze){return ke==null?void 0:ke[ze]}function Te(ke){var ze=-1,at=Array(ke.size);return ke.forEach(function(yt,$t){at[++ze]=[$t,yt]}),at}function Oe(ke,ze){return function(at){return ke(ze(at))}}function ie(ke){var ze=-1,at=Array(ke.size);return ke.forEach(function(yt){at[++ze]=yt}),at}var fe=Array.prototype,we=Function.prototype,Fe=Object.prototype,Ue=q["__core-js_shared__"],Pe=we.toString,$e=Fe.hasOwnProperty,rt=function(){var ke=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||"");return ke?"Symbol(src)_1."+ke:""}(),Ze=Fe.toString,Se=RegExp("^"+Pe.call($e).replace(D,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),je=re?q.Buffer:void 0,Ke=q.Symbol,st=q.Uint8Array,St=Fe.propertyIsEnumerable,At=fe.splice,bt=Ke?Ke.toStringTag:void 0,wt=Object.getOwnPropertySymbols,Dt=je?je.isBuffer:void 0,gt=Oe(Object.keys,Object),xt=Hi(q,"DataView"),Bt=Hi(q,"Map"),kt=Hi(q,"Promise"),er=Hi(q,"Set"),zt=Hi(q,"WeakMap"),Ct=Hi(Object,"create"),Kt=yi(xt),ir=yi(Bt),Nt=yi(kt),le=yi(er),Ee=yi(zt),pe=Ke?Ke.prototype:void 0,xe=pe?pe.valueOf:void 0;function ye(ke){var ze=-1,at=ke==null?0:ke.length;for(this.clear();++ze<at;){var yt=ke[ze];this.set(yt[0],yt[1])}}function _e(){this.__data__=Ct?Ct(null):{},this.size=0}function We(ke){var ze=this.has(ke)&&delete this.__data__[ke];return this.size-=ze?1:0,ze}function Je(ke){var ze=this.__data__;if(Ct){var at=ze[ke];return at===h?void 0:at}return $e.call(ze,ke)?ze[ke]:void 0}function Le(ke){var ze=this.__data__;return Ct?ze[ke]!==void 0:$e.call(ze,ke)}function Ve(ke,ze){var at=this.__data__;return this.size+=this.has(ke)?0:1,at[ke]=Ct&&ze===void 0?h:ze,this}ye.prototype.clear=_e,ye.prototype.delete=We,ye.prototype.get=Je,ye.prototype.has=Le,ye.prototype.set=Ve;function He(ke){var ze=-1,at=ke==null?0:ke.length;for(this.clear();++ze<at;){var yt=ke[ze];this.set(yt[0],yt[1])}}function tt(){this.__data__=[],this.size=0}function me(ke){var ze=this.__data__,at=Yn(ze,ke);if(at<0)return!1;var yt=ze.length-1;return at==yt?ze.pop():At.call(ze,at,1),--this.size,!0}function Me(ke){var ze=this.__data__,at=Yn(ze,ke);return at<0?void 0:ze[at][1]}function Re(ke){return Yn(this.__data__,ke)>-1}function Qe(ke,ze){var at=this.__data__,yt=Yn(at,ke);return yt<0?(++this.size,at.push([ke,ze])):at[yt][1]=ze,this}He.prototype.clear=tt,He.prototype.delete=me,He.prototype.get=Me,He.prototype.has=Re,He.prototype.set=Qe;function lt(ke){var ze=-1,at=ke==null?0:ke.length;for(this.clear();++ze<at;){var yt=ke[ze];this.set(yt[0],yt[1])}}function Et(){this.size=0,this.__data__={hash:new ye,map:new(Bt||He),string:new ye}}function Ot(ke){var ze=zs(this,ke).delete(ke);return this.size-=ze?1:0,ze}function sr(ke){return zs(this,ke).get(ke)}function Wr(ke){return zs(this,ke).has(ke)}function Rr(ke,ze){var at=zs(this,ke),yt=at.size;return at.set(ke,ze),this.size+=at.size==yt?0:1,this}lt.prototype.clear=Et,lt.prototype.delete=Ot,lt.prototype.get=sr,lt.prototype.has=Wr,lt.prototype.set=Rr;function br(ke){var ze=-1,at=ke==null?0:ke.length;for(this.__data__=new lt;++ze<at;)this.add(ke[ze])}function Vr(ke){return this.__data__.set(ke,h),this}function yn(ke){return this.__data__.has(ke)}br.prototype.add=br.prototype.push=Vr,br.prototype.has=yn;function ar(ke){var ze=this.__data__=new He(ke);this.size=ze.size}function Vn(){this.__data__=new He,this.size=0}function Gn(ke){var ze=this.__data__,at=ze.delete(ke);return this.size=ze.size,at}function Kn(ke){return this.__data__.get(ke)}function ji(ke){return this.__data__.has(ke)}function xs(ke,ze){var at=this.__data__;if(at instanceof He){var yt=at.__data__;if(!Bt||yt.length<o-1)return yt.push([ke,ze]),this.size=++at.size,this;at=this.__data__=new lt(yt)}return at.set(ke,ze),this.size=at.size,this}ar.prototype.clear=Vn,ar.prototype.delete=Gn,ar.prototype.get=Kn,ar.prototype.has=ji,ar.prototype.set=xs;function Ya(ke,ze){var at=oi(ke),yt=!at&&Vo(ke),$t=!at&&!yt&&_i(ke),jt=!at&&!yt&&!$t&&so(ke),gr=at||yt||$t||jt,yr=gr?Z(ke.length,String):[],Ir=yr.length;for(var or in ke)(ze||$e.call(ke,or))&&!(gr&&(or=="length"||$t&&(or=="offset"||or=="parent")||jt&&(or=="buffer"||or=="byteLength"||or=="byteOffset")||$o(or,Ir)))&&yr.push(or);return yr}function Yn(ke,ze){for(var at=ke.length;at--;)if(no(ke[at][0],ze))return at;return-1}function Za(ke,ze,at){var yt=ze(ke);return oi(ke)?yt:ee(yt,at(ke))}function bs(ke){return ke==null?ke===void 0?X:_:bt&&bt in Object(ke)?qa(ke):Xo(ke)}function da(ke){return pr(ke)&&bs(ke)==l}function pa(ke,ze,at,yt,$t){return ke===ze?!0:ke==null||ze==null||!pr(ke)&&!pr(ze)?ke!==ke&&ze!==ze:Ws(ke,ze,at,yt,pa,$t)}function Ws(ke,ze,at,yt,$t,jt){var gr=oi(ke),yr=oi(ze),Ir=gr?u:ai(ke),or=yr?u:ai(ze);Ir=Ir==l?k:Ir,or=or==l?k:or;var on=Ir==k,pn=or==k,Lr=Ir==or;if(Lr&&_i(ke)){if(!_i(ze))return!1;gr=!0,on=!1}if(Lr&&!on)return jt||(jt=new ar),gr||so(ke)?$s(ke,ze,at,yt,$t,jt):ns(ke,ze,Ir,at,yt,$t,jt);if(!(at&c)){var qr=on&&$e.call(ke,"__wrapped__"),fn=pn&&$e.call(ze,"__wrapped__");if(qr||fn){var fi=qr?ke.value():ke,Or=fn?ze.value():ze;return jt||(jt=new ar),$t(fi,Or,at,yt,jt)}}return Lr?(jt||(jt=new ar),Qa(ke,ze,at,yt,$t,jt)):!1}function Wo(ke){if(!mr(ke)||zo(ke))return!1;var ze=io(ke)?Se:V;return ze.test(yi(ke))}function Ja(ke){return pr(ke)&&ga(ke.length)&&!!oe[bs(ke)]}function ws(ke){if(!ro(ke))return gt(ke);var ze=[];for(var at in Object(ke))$e.call(ke,at)&&at!="constructor"&&ze.push(at);return ze}function $s(ke,ze,at,yt,$t,jt){var gr=at&c,yr=ke.length,Ir=ze.length;if(yr!=Ir&&!(gr&&Ir>yr))return!1;var or=jt.get(ke);if(or&&jt.get(ze))return or==ze;var on=-1,pn=!0,Lr=at&a?new br:void 0;for(jt.set(ke,ze),jt.set(ze,ke);++on<yr;){var qr=ke[on],fn=ze[on];if(yt)var fi=gr?yt(fn,qr,on,ze,ke,jt):yt(qr,fn,on,ke,ze,jt);if(fi!==void 0){if(fi)continue;pn=!1;break}if(Lr){if(!G(ze,function(Or,Wi){if(!Ae(Lr,Wi)&&(qr===Or||$t(qr,Or,at,yt,jt)))return Lr.push(Wi)})){pn=!1;break}}else if(!(qr===fn||$t(qr,fn,at,yt,jt))){pn=!1;break}}return jt.delete(ke),jt.delete(ze),pn}function ns(ke,ze,at,yt,$t,jt,gr){switch(at){case I:if(ke.byteLength!=ze.byteLength||ke.byteOffset!=ze.byteOffset)return!1;ke=ke.buffer,ze=ze.buffer;case H:return!(ke.byteLength!=ze.byteLength||!jt(new st(ke),new st(ze)));case m:case d:case y:return no(+ke,+ze);case v:return ke.name==ze.name&&ke.message==ze.message;case N:case z:return ke==ze+"";case w:var yr=Te;case U:var Ir=yt&c;if(yr||(yr=ie),ke.size!=ze.size&&!Ir)return!1;var or=gr.get(ke);if(or)return or==ze;yt|=a,gr.set(ke,ze);var on=$s(yr(ke),yr(ze),yt,$t,jt,gr);return gr.delete(ke),on;case W:if(xe)return xe.call(ke)==xe.call(ze)}return!1}function Qa(ke,ze,at,yt,$t,jt){var gr=at&c,yr=ma(ke),Ir=yr.length,or=ma(ze),on=or.length;if(Ir!=on&&!gr)return!1;for(var pn=Ir;pn--;){var Lr=yr[pn];if(!(gr?Lr in ze:$e.call(ze,Lr)))return!1}var qr=jt.get(ke);if(qr&&jt.get(ze))return qr==ze;var fn=!0;jt.set(ke,ze),jt.set(ze,ke);for(var fi=gr;++pn<Ir;){Lr=yr[pn];var Or=ke[Lr],Wi=ze[Lr];if(yt)var _n=gr?yt(Wi,Or,Lr,ze,ke,jt):yt(Or,Wi,Lr,ke,ze,jt);if(!(_n===void 0?Or===Wi||$t(Or,Wi,at,yt,jt):_n)){fn=!1;break}fi||(fi=Lr=="constructor")}if(fn&&!fi){var $i=ke.constructor,ys=ze.constructor;$i!=ys&&"constructor"in ke&&"constructor"in ze&&!(typeof $i=="function"&&$i instanceof $i&&typeof ys=="function"&&ys instanceof ys)&&(fn=!1)}return jt.delete(ke),jt.delete(ze),fn}function ma(ke){return Za(ke,Ko,eo)}function zs(ke,ze){var at=ke.__data__;return to(ze)?at[typeof ze=="string"?"string":"hash"]:at.map}function Hi(ke,ze){var at=K(ke,ze);return Wo(at)?at:void 0}function qa(ke){var ze=$e.call(ke,bt),at=ke[bt];try{ke[bt]=void 0;var yt=!0}catch{}var $t=Ze.call(ke);return yt&&(ze?ke[bt]=at:delete ke[bt]),$t}var eo=wt?function(ke){return ke==null?[]:(ke=Object(ke),se(wt(ke),function(ze){return St.call(ke,ze)}))}:ao,ai=bs;(xt&&ai(new xt(new ArrayBuffer(1)))!=I||Bt&&ai(new Bt)!=w||kt&&ai(kt.resolve())!=F||er&&ai(new er)!=U||zt&&ai(new zt)!=J)&&(ai=function(ke){var ze=bs(ke),at=ze==k?ke.constructor:void 0,yt=at?yi(at):"";if(yt)switch(yt){case Kt:return I;case ir:return w;case Nt:return F;case le:return U;case Ee:return J}return ze});function $o(ke,ze){return ze=ze??f,!!ze&&(typeof ke=="number"||te.test(ke))&&ke>-1&&ke%1==0&&ke<ze}function to(ke){var ze=typeof ke;return ze=="string"||ze=="number"||ze=="symbol"||ze=="boolean"?ke!=="__proto__":ke===null}function zo(ke){return!!rt&&rt in ke}function ro(ke){var ze=ke&&ke.constructor,at=typeof ze=="function"&&ze.prototype||Fe;return ke===at}function Xo(ke){return Ze.call(ke)}function yi(ke){if(ke!=null){try{return Pe.call(ke)}catch{}try{return ke+""}catch{}}return""}function no(ke,ze){return ke===ze||ke!==ke&&ze!==ze}var Vo=da(function(){return arguments}())?da:function(ke){return pr(ke)&&$e.call(ke,"callee")&&!St.call(ke,"callee")},oi=Array.isArray;function Go(ke){return ke!=null&&ga(ke.length)&&!io(ke)}var _i=Dt||oo;function Ei(ke,ze){return pa(ke,ze)}function io(ke){if(!mr(ke))return!1;var ze=bs(ke);return ze==x||ze==g||ze==p||ze==O}function ga(ke){return typeof ke=="number"&&ke>-1&&ke%1==0&&ke<=f}function mr(ke){var ze=typeof ke;return ke!=null&&(ze=="object"||ze=="function")}function pr(ke){return ke!=null&&typeof ke=="object"}var so=ce?de(ce):Ja;function Ko(ke){return Go(ke)?Ya(ke):ws(ke)}function ao(){return[]}function oo(){return!1}n.exports=Ei}).call(this)}).call(this,typeof Qt<"u"?Qt: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,w=g?g.toStringTag:void 0;function y(N){return N==null?N===void 0?l:a:w&&w in Object(N)?_(N):k(N)}function _(N){var U=v.call(N,w),z=N[w];try{N[w]=void 0;var W=!0}catch{}var X=x.call(N);return W&&(U?N[w]=z:delete N[w]),X}function k(N){return x.call(N)}function F(N){if(!O(N))return!1;var U=y(N);return U==h||U==c||U==o||U==f}function O(N){var U=typeof N;return N!=null&&(U=="object"||U=="function")}n.exports=F}).call(this)}).call(this,typeof Qt<"u"?Qt: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(Se,je){var Ke=Se?Se.length:0;return!!Ke&&w(Se,je,0)>-1}function x(Se,je,Ke){for(var st=-1,St=Se?Se.length:0;++st<St;)if(Ke(je,Se[st]))return!0;return!1}function g(Se,je,Ke,st){for(var St=Se.length,At=Ke+(st?1:-1);st?At--:++At<St;)if(je(Se[At],At,Se))return At;return-1}function w(Se,je,Ke){if(je!==je)return g(Se,y,Ke);for(var st=Ke-1,St=Se.length;++st<St;)if(Se[st]===je)return st;return-1}function y(Se){return Se!==Se}function _(Se,je){return Se.has(je)}function k(Se,je){return Se==null?void 0:Se[je]}function F(Se){var je=!1;if(Se!=null&&typeof Se.toString!="function")try{je=!!(Se+"")}catch{}return je}function O(Se){var je=-1,Ke=Array(Se.size);return Se.forEach(function(st){Ke[++je]=st}),Ke}var N=Array.prototype,U=Function.prototype,z=Object.prototype,W=d["__core-js_shared__"],X=function(){var Se=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||"");return Se?"Symbol(src)_1."+Se:""}(),J=U.toString,H=z.hasOwnProperty,I=z.toString,M=RegExp("^"+J.call(H).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),E=N.splice,A=ie(d,"Map"),B=ie(d,"Set"),L=ie(Object,"create");function P(Se){var je=-1,Ke=Se?Se.length:0;for(this.clear();++je<Ke;){var st=Se[je];this.set(st[0],st[1])}}function R(){this.__data__=L?L(null):{}}function C(Se){return this.has(Se)&&delete this.__data__[Se]}function S(Se){var je=this.__data__;if(L){var Ke=je[Se];return Ke===h?void 0:Ke}return H.call(je,Se)?je[Se]:void 0}function D(Se){var je=this.__data__;return L?je[Se]!==void 0:H.call(je,Se)}function V(Se,je){var Ke=this.__data__;return Ke[Se]=L&&je===void 0?h:je,this}P.prototype.clear=R,P.prototype.delete=C,P.prototype.get=S,P.prototype.has=D,P.prototype.set=V;function te(Se){var je=-1,Ke=Se?Se.length:0;for(this.clear();++je<Ke;){var st=Se[je];this.set(st[0],st[1])}}function oe(){this.__data__=[]}function he(Se){var je=this.__data__,Ke=de(je,Se);if(Ke<0)return!1;var st=je.length-1;return Ke==st?je.pop():E.call(je,Ke,1),!0}function Ne(Se){var je=this.__data__,Ke=de(je,Se);return Ke<0?void 0:je[Ke][1]}function q(Se){return de(this.__data__,Se)>-1}function ne(Se,je){var Ke=this.__data__,st=de(Ke,Se);return st<0?Ke.push([Se,je]):Ke[st][1]=je,this}te.prototype.clear=oe,te.prototype.delete=he,te.prototype.get=Ne,te.prototype.has=q,te.prototype.set=ne;function Q(Se){var je=-1,Ke=Se?Se.length:0;for(this.clear();++je<Ke;){var st=Se[je];this.set(st[0],st[1])}}function re(){this.__data__={hash:new P,map:new(A||te),string:new P}}function ve(Se){return Oe(this,Se).delete(Se)}function Ce(Se){return Oe(this,Se).get(Se)}function ce(Se){return Oe(this,Se).has(Se)}function se(Se,je){return Oe(this,Se).set(Se,je),this}Q.prototype.clear=re,Q.prototype.delete=ve,Q.prototype.get=Ce,Q.prototype.has=ce,Q.prototype.set=se;function ee(Se){var je=-1,Ke=Se?Se.length:0;for(this.__data__=new Q;++je<Ke;)this.add(Se[je])}function G(Se){return this.__data__.set(Se,h),this}function Z(Se){return this.__data__.has(Se)}ee.prototype.add=ee.prototype.push=G,ee.prototype.has=Z;function de(Se,je){for(var Ke=Se.length;Ke--;)if(Pe(Se[Ke][0],je))return Ke;return-1}function Ae(Se){if(!rt(Se)||we(Se))return!1;var je=$e(Se)||F(Se)?M:u;return je.test(Fe(Se))}function K(Se,je,Ke){var st=-1,St=v,At=Se.length,bt=!0,wt=[],Dt=wt;if(Ke)bt=!1,St=x;else if(At>=o){var gt=je?null:Te(Se);if(gt)return O(gt);bt=!1,St=_,Dt=new ee}else Dt=je?[]:wt;e:for(;++st<At;){var xt=Se[st],Bt=je?je(xt):xt;if(xt=Ke||xt!==0?xt:0,bt&&Bt===Bt){for(var kt=Dt.length;kt--;)if(Dt[kt]===Bt)continue e;je&&Dt.push(Bt),wt.push(xt)}else St(Dt,Bt,Ke)||(Dt!==wt&&Dt.push(Bt),wt.push(xt))}return wt}var Te=B&&1/O(new B([,-0]))[1]==c?function(Se){return new B(Se)}:Ze;function Oe(Se,je){var Ke=Se.__data__;return fe(je)?Ke[typeof je=="string"?"string":"hash"]:Ke.map}function ie(Se,je){var Ke=k(Se,je);return Ae(Ke)?Ke:void 0}function fe(Se){var je=typeof Se;return je=="string"||je=="number"||je=="symbol"||je=="boolean"?Se!=="__proto__":Se===null}function we(Se){return!!X&&X in Se}function Fe(Se){if(Se!=null){try{return J.call(Se)}catch{}try{return Se+""}catch{}}return""}function Ue(Se){return Se&&Se.length?K(Se):[]}function Pe(Se,je){return Se===je||Se!==Se&&je!==je}function $e(Se){var je=rt(Se)?I.call(Se):"";return je==a||je==f}function rt(Se){var je=typeof Se;return!!Se&&(je=="object"||je=="function")}function Ze(){}n.exports=Ue}).call(this)}).call(this,typeof Qt<"u"?Qt: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,w=this._c,y=this._d;x=l(x,g,w,y,d[0],3614090360,7),y=l(y,x,g,w,d[1],3905402710,12),w=l(w,y,x,g,d[2],606105819,17),g=l(g,w,y,x,d[3],3250441966,22),x=l(x,g,w,y,d[4],4118548399,7),y=l(y,x,g,w,d[5],1200080426,12),w=l(w,y,x,g,d[6],2821735955,17),g=l(g,w,y,x,d[7],4249261313,22),x=l(x,g,w,y,d[8],1770035416,7),y=l(y,x,g,w,d[9],2336552879,12),w=l(w,y,x,g,d[10],4294925233,17),g=l(g,w,y,x,d[11],2304563134,22),x=l(x,g,w,y,d[12],1804603682,7),y=l(y,x,g,w,d[13],4254626195,12),w=l(w,y,x,g,d[14],2792965006,17),g=l(g,w,y,x,d[15],1236535329,22),x=u(x,g,w,y,d[1],4129170786,5),y=u(y,x,g,w,d[6],3225465664,9),w=u(w,y,x,g,d[11],643717713,14),g=u(g,w,y,x,d[0],3921069994,20),x=u(x,g,w,y,d[5],3593408605,5),y=u(y,x,g,w,d[10],38016083,9),w=u(w,y,x,g,d[15],3634488961,14),g=u(g,w,y,x,d[4],3889429448,20),x=u(x,g,w,y,d[9],568446438,5),y=u(y,x,g,w,d[14],3275163606,9),w=u(w,y,x,g,d[3],4107603335,14),g=u(g,w,y,x,d[8],1163531501,20),x=u(x,g,w,y,d[13],2850285829,5),y=u(y,x,g,w,d[2],4243563512,9),w=u(w,y,x,g,d[7],1735328473,14),g=u(g,w,y,x,d[12],2368359562,20),x=p(x,g,w,y,d[5],4294588738,4),y=p(y,x,g,w,d[8],2272392833,11),w=p(w,y,x,g,d[11],1839030562,16),g=p(g,w,y,x,d[14],4259657740,23),x=p(x,g,w,y,d[1],2763975236,4),y=p(y,x,g,w,d[4],1272893353,11),w=p(w,y,x,g,d[7],4139469664,16),g=p(g,w,y,x,d[10],3200236656,23),x=p(x,g,w,y,d[13],681279174,4),y=p(y,x,g,w,d[0],3936430074,11),w=p(w,y,x,g,d[3],3572445317,16),g=p(g,w,y,x,d[6],76029189,23),x=p(x,g,w,y,d[9],3654602809,4),y=p(y,x,g,w,d[12],3873151461,11),w=p(w,y,x,g,d[15],530742520,16),g=p(g,w,y,x,d[2],3299628645,23),x=m(x,g,w,y,d[0],4096336452,6),y=m(y,x,g,w,d[7],1126891415,10),w=m(w,y,x,g,d[14],2878612391,15),g=m(g,w,y,x,d[5],4237533241,21),x=m(x,g,w,y,d[12],1700485571,6),y=m(y,x,g,w,d[3],2399980690,10),w=m(w,y,x,g,d[10],4293915773,15),g=m(g,w,y,x,d[1],2240044497,21),x=m(x,g,w,y,d[8],1873313359,6),y=m(y,x,g,w,d[15],4264355552,10),w=m(w,y,x,g,d[6],2734768916,15),g=m(g,w,y,x,d[13],1309151649,21),x=m(x,g,w,y,d[4],4149444226,6),y=m(y,x,g,w,d[11],3174756917,10),w=m(w,y,x,g,d[2],718787259,15),g=m(g,w,y,x,d[9],3951481745,21),this._a=this._a+x|0,this._b=this._b+g|0,this._c=this._c+w|0,this._d=this._d+y|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,w,y,_){return f(d+(v&x|~v&g)+w+y|0,_)+v|0}function u(d,v,x,g,w,y,_){return f(d+(v&g|x&~g)+w+y|0,_)+v|0}function p(d,v,x,g,w,y,_){return f(d+(v^x^g)+w+y|0,_)+v|0}function m(d,v,x,g,w,y,_){return f(d+(x^(v|~g))+w+y|0,_)+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),w=!0;f>0;f--){var y=this._randrange(new s(2),d);l&&l(y);var _=y.toRed(p).redPow(x);if(!(_.cmp(m)===0||_.cmp(g)===0)){for(var k=1;k<v;k++){if(_=_.redSqr(),_.cmp(m)===0)return!1;if(_.cmp(g)===0)break}if(k===v)return!1}}return w},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),w=a.gcd(g);if(w.cmpn(1)!==0)return w;var y=g.toRed(u).redPow(v);if(!(y.cmp(p)===0||y.cmp(x)===0)){for(var _=1;_<d;_++){if(y=y.redSqr(),y.cmp(p)===0)return y.fromRed().subn(1).gcd(a);if(y.cmp(x)===0)break}if(_===d)return y=y.redSqr(),y.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"),w=f.from(m[3].replace(/[\r\n]/g,""),"base64"),y=c(u,g.slice(0,8),parseInt(m[1],10)).key,_=[],k=a.createDecipheriv(x,y,g);_.push(k.update(w)),_.push(k.final()),d=f.concat(_)}else{var v=p.match(h);d=f.from(v[2].replace(/[\r\n]/g,""),"base64")}var F=p.match(o)[1];return{tag:F,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,w;switch(v){case"CERTIFICATE":w=s.certificate.decode(x,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(w||(w=s.PublicKey.decode(x,"der")),g=w.algorithm.algorithm.join("."),g){case"1.2.840.113549.1.1.1":return s.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=s.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.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(w=s.PrivateKey.decode(x,"der"),g=w.algorithm.algorithm.join("."),g){case"1.2.840.113549.1.1.1":return s.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:s.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=s.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.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,w=p.subjectPrivateKey,y=parseInt(x.split("-")[1],10)/8,_=a.pbkdf2Sync(m,d,v,y,"sha1"),k=c.createDecipheriv(x,_,g),F=[];return F.push(k.update(w)),F.push(k.final()),f.concat(F)}},{"./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(y){if(s.process&&!s.process.browser||!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(m[y]!==void 0)return m[y];l=l||o.alloc(8);var _=g(l,l,10,128,y).then(function(){return!0}).catch(function(){return!1});return m[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(y,_,k,F,O){return u.importKey("raw",y,{name:"PBKDF2"},!1,["deriveBits"]).then(function(N){return u.deriveBits({name:"PBKDF2",salt:_,iterations:k,hash:{name:O}},N,F<<3)}).then(function(N){return o.from(N)})}function w(y,_){y.then(function(k){x()(function(){_(null,k)})},function(k){x()(function(){_(k)})})}n.exports=function(y,_,k,F,O,N){typeof O=="function"&&(N=O,O=void 0),O=O||"sha1";var U=p[O.toLowerCase()];if(!U||typeof s.Promise!="function"){x()(function(){var z;try{z=a(y,_,k,F,O)}catch(W){return N(W)}N(null,z)});return}if(h(k,F),y=f(y,c,"Password"),_=f(_,c,"Salt"),typeof N!="function")throw new Error("No callback provided to pbkdf2");w(d(U).then(function(z){return z?g(y,_,k,F,U):a(y,_,k,F,O)}),N)}}).call(this)}).call(this,typeof Qt<"u"?Qt: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 Qt<"u"?Qt: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,w){var y=d(x),_=x==="sha512"||x==="sha384"?128:64;g.length>_?g=y(g):g.length<_&&(g=c.concat([g,u],_));for(var k=c.allocUnsafe(_+p[x]),F=c.allocUnsafe(_+p[x]),O=0;O<_;O++)k[O]=g[O]^54,F[O]=g[O]^92;var N=c.allocUnsafe(_+w+4);k.copy(N,0,0,_),this.ipad1=N,this.ipad2=k,this.opad=F,this.alg=x,this.blocksize=_,this.hash=y,this.size=p[x]}m.prototype.run=function(x,g){x.copy(g,this.blocksize);var w=this.hash(g);return w.copy(this.opad,this.blocksize),this.hash(this.opad)};function d(x){function g(y){return h(x).update(y).digest()}function w(y){return new o().update(y).digest()}return x==="rmd160"||x==="ripemd160"?w:x==="md5"?s:g}function v(x,g,w,y,_){a(w,y),x=l(x,f,"Password"),g=l(g,f,"Salt"),_=_||"sha1";var k=new m(_,x,g.length),F=c.allocUnsafe(y),O=c.allocUnsafe(g.length+4);g.copy(O,0,0,g.length);for(var N=0,U=p[_],z=Math.ceil(y/U),W=1;W<=z;W++){O.writeUInt32BE(W,g.length);for(var X=k.run(O,k.ipad1),J=X,H=1;H<w;H++){J=k.run(J,k.ipad2);for(var I=0;I<U;I++)X[I]^=J[I]}X.copy(F,N),N+=U}return F}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(y){if(o===setTimeout)return setTimeout(y,0);if((o===c||!o)&&setTimeout)return o=setTimeout,setTimeout(y,0);try{return o(y,0)}catch{try{return o.call(null,y,0)}catch{return o.call(this,y,0)}}}function l(y){if(h===clearTimeout)return clearTimeout(y);if((h===a||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(y);try{return h(y)}catch{try{return h.call(null,y)}catch{return h.call(this,y)}}}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 y=f(v);p=!0;for(var _=u.length;_;){for(m=u,u=[];++d<_;)m&&m[d].run();d=-1,_=u.length}m=null,p=!1,l(y)}}s.nextTick=function(y){var _=new Array(arguments.length-1);if(arguments.length>1)for(var k=1;k<arguments.length;k++)_[k-1]=arguments[k];u.push(new g(y,_)),u.length===1&&!p&&f(x)};function g(y,_){this.fun=y,this.array=_}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 w(){}s.on=w,s.addListener=w,s.once=w,s.off=w,s.removeListener=w,s.removeAllListeners=w,s.emit=w,s.prependListener=w,s.prependOnceListener=w,s.listeners=function(y){return[]},s.binding=function(y){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(y){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,w){var y;x.padding?y=x.padding:w?y=1:y=4;var _=s(x),k=_.modulus.byteLength();if(g.length>k||new c(g).cmp(_.modulus)>=0)throw new Error("decryption error");var F;w?F=l(new c(g),_):F=a(g,_);var O=u.alloc(k-F.length);if(F=u.concat([O,F],k),y===4)return p(_,F);if(y===1)return m(_,F,w);if(y===3)return F;throw new Error("unknown padding")};function p(v,x){var g=v.modulus.byteLength(),w=f("sha1").update(u.alloc(0)).digest(),y=w.length;if(x[0]!==0)throw new Error("decryption error");var _=x.slice(1,y+1),k=x.slice(y+1),F=h(_,o(k,y)),O=h(k,o(F,g-y-1));if(d(w,O.slice(0,y)))throw new Error("decryption error");for(var N=y;O[N]===0;)N++;if(O[N++]!==1)throw new Error("decryption error");return O.slice(N)}function m(v,x,g){for(var w=x.slice(0,2),y=2,_=0;x[y++]!==0;)if(y>=x.length){_++;break}var k=x.slice(2,y-1);if((w.toString("hex")!=="0002"&&!g||w.toString("hex")!=="0001"&&g)&&_++,k.length<8&&_++,_)throw new Error("decryption error");return x.slice(y)}function d(v,x){v=u.from(v),x=u.from(x);var g=0,w=v.length;v.length!==x.length&&(g++,w=Math.min(v.length,x.length));for(var y=-1;++y<w;)g+=v[y]^x[y];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,w,y){var _;g.padding?_=g.padding:y?_=1:_=4;var k=s(g),F;if(_===4)F=m(k,w);else if(_===1)F=d(k,w,y);else if(_===3){if(F=new f(w),F.cmp(k.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return y?u(F,k):l(F,k)};function m(x,g){var w=x.modulus.byteLength(),y=g.length,_=h("sha1").update(p.alloc(0)).digest(),k=_.length,F=2*k;if(y>w-F-2)throw new Error("message too long");var O=p.alloc(w-y-F-2),N=w-k-1,U=o(k),z=a(p.concat([_,O,p.alloc(1,1),g],N),c(U,N)),W=a(U,c(z,k));return new f(p.concat([p.alloc(1),W,z],w))}function d(x,g,w){var y=g.length,_=x.modulus.byteLength();if(y>_-11)throw new Error("message too long");var k;return w?k=p.alloc(_-y-3,255):k=v(_-y-3),new f(p.concat([p.from([0,w?1:2]),k,p.alloc(1),g],_))}function v(x){for(var g=p.allocUnsafe(x),w=0,y=o(x*2),_=0,k;w<x;)_===y.length&&(y=o(x*2),_=0),k=y[_++],k&&(g[w++]=k);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 Qt<"u"?Qt: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(w,y){if(typeof w!="number"||w!==w)throw new TypeError("offset must be a number");if(w>p||w<0)throw new TypeError("offset must be a uint32");if(w>l||w>y)throw new RangeError("offset out of range")}function d(w,y,_){if(typeof w!="number"||w!==w)throw new TypeError("size must be a number");if(w>p||w<0)throw new TypeError("size must be a uint32");if(w+y>_||w>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(w,y,_,k){if(!f.isBuffer(w)&&!(w instanceof o.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof y=="function")k=y,y=0,_=w.length;else if(typeof _=="function")k=_,_=w.length-y;else if(typeof k!="function")throw new TypeError('"cb" argument must be a function');return m(y,w.length),d(_,y,w.length),x(w,y,_,k)}function x(w,y,_,k){if(s.browser){var F=w.buffer,O=new Uint8Array(F,y,_);if(u.getRandomValues(O),k){s.nextTick(function(){k(null,w)});return}return w}if(k){a(_,function(U,z){if(U)return k(U);z.copy(w,y),k(null,w)});return}var N=a(_);return N.copy(w,y),w}function g(w,y,_){if(typeof y>"u"&&(y=0),!f.isBuffer(w)&&!(w instanceof o.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return m(y,w.length),_===void 0&&(_=w.length-y),d(_,y,w.length),x(w,y,_)}}).call(this)}).call(this,e("_process"),typeof Qt<"u"?Qt: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,w){return typeof p=="string"?p:p(x,g,w)}var v=function(x){s(g,x);function g(w,y,_){return x.call(this,d(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=I;var h;I.ReadableState=H,e("events").EventEmitter;var c=function(se,ee){return se.listeners(ee).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(ce){return f.from(ce)}function p(ce){return f.isBuffer(ce)||ce 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"),w=g.getHighWaterMark,y=e("../errors").codes,_=y.ERR_INVALID_ARG_TYPE,k=y.ERR_STREAM_PUSH_AFTER_EOF,F=y.ERR_METHOD_NOT_IMPLEMENTED,O=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,N,U,z;e("inherits")(I,a);var W=x.errorOrDestroy,X=["error","close","destroy","pause","resume"];function J(ce,se,ee){if(typeof ce.prependListener=="function")return ce.prependListener(se,ee);!ce._events||!ce._events[se]?ce.on(se,ee):Array.isArray(ce._events[se])?ce._events[se].unshift(ee):ce._events[se]=[ee,ce._events[se]]}function H(ce,se,ee){h=h||e("./_stream_duplex"),ce=ce||{},typeof ee!="boolean"&&(ee=se instanceof h),this.objectMode=!!ce.objectMode,ee&&(this.objectMode=this.objectMode||!!ce.readableObjectMode),this.highWaterMark=w(this,ce,"readableHighWaterMark",ee),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=ce.emitClose!==!1,this.autoDestroy=!!ce.autoDestroy,this.destroyed=!1,this.defaultEncoding=ce.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ce.encoding&&(N||(N=e("string_decoder/").StringDecoder),this.decoder=new N(ce.encoding),this.encoding=ce.encoding)}function I(ce){if(h=h||e("./_stream_duplex"),!(this instanceof I))return new I(ce);var se=this instanceof h;this._readableState=new H(ce,this,se),this.readable=!0,ce&&(typeof ce.read=="function"&&(this._read=ce.read),typeof ce.destroy=="function"&&(this._destroy=ce.destroy)),a.call(this)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(se){this._readableState&&(this._readableState.destroyed=se)}}),I.prototype.destroy=x.destroy,I.prototype._undestroy=x.undestroy,I.prototype._destroy=function(ce,se){se(ce)},I.prototype.push=function(ce,se){var ee=this._readableState,G;return ee.objectMode?G=!0:typeof ce=="string"&&(se=se||ee.defaultEncoding,se!==ee.encoding&&(ce=f.from(ce,se),se=""),G=!0),M(this,ce,se,!1,G)},I.prototype.unshift=function(ce){return M(this,ce,null,!0,!1)};function M(ce,se,ee,G,Z){d("readableAddChunk",se);var de=ce._readableState;if(se===null)de.reading=!1,R(ce,de);else{var Ae;if(Z||(Ae=A(de,se)),Ae)W(ce,Ae);else if(de.objectMode||se&&se.length>0)if(typeof se!="string"&&!de.objectMode&&Object.getPrototypeOf(se)!==f.prototype&&(se=u(se)),G)de.endEmitted?W(ce,new O):E(ce,de,se,!0);else if(de.ended)W(ce,new k);else{if(de.destroyed)return!1;de.reading=!1,de.decoder&&!ee?(se=de.decoder.write(se),de.objectMode||se.length!==0?E(ce,de,se,!1):D(ce,de)):E(ce,de,se,!1)}else G||(de.reading=!1,D(ce,de))}return!de.ended&&(de.length<de.highWaterMark||de.length===0)}function E(ce,se,ee,G){se.flowing&&se.length===0&&!se.sync?(se.awaitDrain=0,ce.emit("data",ee)):(se.length+=se.objectMode?1:ee.length,G?se.buffer.unshift(ee):se.buffer.push(ee),se.needReadable&&C(ce)),D(ce,se)}function A(ce,se){var ee;return!p(se)&&typeof se!="string"&&se!==void 0&&!ce.objectMode&&(ee=new _("chunk",["string","Buffer","Uint8Array"],se)),ee}I.prototype.isPaused=function(){return this._readableState.flowing===!1},I.prototype.setEncoding=function(ce){N||(N=e("string_decoder/").StringDecoder);var se=new N(ce);this._readableState.decoder=se,this._readableState.encoding=this._readableState.decoder.encoding;for(var ee=this._readableState.buffer.head,G="";ee!==null;)G+=se.write(ee.data),ee=ee.next;return this._readableState.buffer.clear(),G!==""&&this._readableState.buffer.push(G),this._readableState.length=G.length,this};var B=1073741824;function L(ce){return ce>=B?ce=B:(ce--,ce|=ce>>>1,ce|=ce>>>2,ce|=ce>>>4,ce|=ce>>>8,ce|=ce>>>16,ce++),ce}function P(ce,se){return ce<=0||se.length===0&&se.ended?0:se.objectMode?1:ce!==ce?se.flowing&&se.length?se.buffer.head.data.length:se.length:(ce>se.highWaterMark&&(se.highWaterMark=L(ce)),ce<=se.length?ce:se.ended?se.length:(se.needReadable=!0,0))}I.prototype.read=function(ce){d("read",ce),ce=parseInt(ce,10);var se=this._readableState,ee=ce;if(ce!==0&&(se.emittedReadable=!1),ce===0&&se.needReadable&&((se.highWaterMark!==0?se.length>=se.highWaterMark:se.length>0)||se.ended))return d("read: emitReadable",se.length,se.ended),se.length===0&&se.ended?re(this):C(this),null;if(ce=P(ce,se),ce===0&&se.ended)return se.length===0&&re(this),null;var G=se.needReadable;d("need readable",G),(se.length===0||se.length-ce<se.highWaterMark)&&(G=!0,d("length less than watermark",G)),se.ended||se.reading?(G=!1,d("reading or ended",G)):G&&(d("do read"),se.reading=!0,se.sync=!0,se.length===0&&(se.needReadable=!0),this._read(se.highWaterMark),se.sync=!1,se.reading||(ce=P(ee,se)));var Z;return ce>0?Z=Q(ce,se):Z=null,Z===null?(se.needReadable=se.length<=se.highWaterMark,ce=0):(se.length-=ce,se.awaitDrain=0),se.length===0&&(se.ended||(se.needReadable=!0),ee!==ce&&se.ended&&re(this)),Z!==null&&this.emit("data",Z),Z};function R(ce,se){if(d("onEofChunk"),!se.ended){if(se.decoder){var ee=se.decoder.end();ee&&ee.length&&(se.buffer.push(ee),se.length+=se.objectMode?1:ee.length)}se.ended=!0,se.sync?C(ce):(se.needReadable=!1,se.emittedReadable||(se.emittedReadable=!0,S(ce)))}}function C(ce){var se=ce._readableState;d("emitReadable",se.needReadable,se.emittedReadable),se.needReadable=!1,se.emittedReadable||(d("emitReadable",se.flowing),se.emittedReadable=!0,s.nextTick(S,ce))}function S(ce){var se=ce._readableState;d("emitReadable_",se.destroyed,se.length,se.ended),!se.destroyed&&(se.length||se.ended)&&(ce.emit("readable"),se.emittedReadable=!1),se.needReadable=!se.flowing&&!se.ended&&se.length<=se.highWaterMark,ne(ce)}function D(ce,se){se.readingMore||(se.readingMore=!0,s.nextTick(V,ce,se))}function V(ce,se){for(;!se.reading&&!se.ended&&(se.length<se.highWaterMark||se.flowing&&se.length===0);){var ee=se.length;if(d("maybeReadMore read 0"),ce.read(0),ee===se.length)break}se.readingMore=!1}I.prototype._read=function(ce){W(this,new F("_read()"))},I.prototype.pipe=function(ce,se){var ee=this,G=this._readableState;switch(G.pipesCount){case 0:G.pipes=ce;break;case 1:G.pipes=[G.pipes,ce];break;default:G.pipes.push(ce);break}G.pipesCount+=1,d("pipe count=%d opts=%j",G.pipesCount,se);var Z=(!se||se.end!==!1)&&ce!==s.stdout&&ce!==s.stderr,de=Z?K:Pe;G.endEmitted?s.nextTick(de):ee.once("end",de),ce.on("unpipe",Ae);function Ae($e,rt){d("onunpipe"),$e===ee&&rt&&rt.hasUnpiped===!1&&(rt.hasUnpiped=!0,ie())}function K(){d("onend"),ce.end()}var Te=te(ee);ce.on("drain",Te);var Oe=!1;function ie(){d("cleanup"),ce.removeListener("close",Fe),ce.removeListener("finish",Ue),ce.removeListener("drain",Te),ce.removeListener("error",we),ce.removeListener("unpipe",Ae),ee.removeListener("end",K),ee.removeListener("end",Pe),ee.removeListener("data",fe),Oe=!0,G.awaitDrain&&(!ce._writableState||ce._writableState.needDrain)&&Te()}ee.on("data",fe);function fe($e){d("ondata");var rt=ce.write($e);d("dest.write",rt),rt===!1&&((G.pipesCount===1&&G.pipes===ce||G.pipesCount>1&&Ce(G.pipes,ce)!==-1)&&!Oe&&(d("false write response, pause",G.awaitDrain),G.awaitDrain++),ee.pause())}function we($e){d("onerror",$e),Pe(),ce.removeListener("error",we),c(ce,"error")===0&&W(ce,$e)}J(ce,"error",we);function Fe(){ce.removeListener("finish",Ue),Pe()}ce.once("close",Fe);function Ue(){d("onfinish"),ce.removeListener("close",Fe),Pe()}ce.once("finish",Ue);function Pe(){d("unpipe"),ee.unpipe(ce)}return ce.emit("pipe",ee),G.flowing||(d("pipe resume"),ee.resume()),ce};function te(ce){return function(){var ee=ce._readableState;d("pipeOnDrain",ee.awaitDrain),ee.awaitDrain&&ee.awaitDrain--,ee.awaitDrain===0&&c(ce,"data")&&(ee.flowing=!0,ne(ce))}}I.prototype.unpipe=function(ce){var se=this._readableState,ee={hasUnpiped:!1};if(se.pipesCount===0)return this;if(se.pipesCount===1)return ce&&ce!==se.pipes?this:(ce||(ce=se.pipes),se.pipes=null,se.pipesCount=0,se.flowing=!1,ce&&ce.emit("unpipe",this,ee),this);if(!ce){var G=se.pipes,Z=se.pipesCount;se.pipes=null,se.pipesCount=0,se.flowing=!1;for(var de=0;de<Z;de++)G[de].emit("unpipe",this,{hasUnpiped:!1});return this}var Ae=Ce(se.pipes,ce);return Ae===-1?this:(se.pipes.splice(Ae,1),se.pipesCount-=1,se.pipesCount===1&&(se.pipes=se.pipes[0]),ce.emit("unpipe",this,ee),this)},I.prototype.on=function(ce,se){var ee=a.prototype.on.call(this,ce,se),G=this._readableState;return ce==="data"?(G.readableListening=this.listenerCount("readable")>0,G.flowing!==!1&&this.resume()):ce==="readable"&&!G.endEmitted&&!G.readableListening&&(G.readableListening=G.needReadable=!0,G.flowing=!1,G.emittedReadable=!1,d("on readable",G.length,G.reading),G.length?C(this):G.reading||s.nextTick(he,this)),ee},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(ce,se){var ee=a.prototype.removeListener.call(this,ce,se);return ce==="readable"&&s.nextTick(oe,this),ee},I.prototype.removeAllListeners=function(ce){var se=a.prototype.removeAllListeners.apply(this,arguments);return(ce==="readable"||ce===void 0)&&s.nextTick(oe,this),se};function oe(ce){var se=ce._readableState;se.readableListening=ce.listenerCount("readable")>0,se.resumeScheduled&&!se.paused?se.flowing=!0:ce.listenerCount("data")>0&&ce.resume()}function he(ce){d("readable nexttick read 0"),ce.read(0)}I.prototype.resume=function(){var ce=this._readableState;return ce.flowing||(d("resume"),ce.flowing=!ce.readableListening,Ne(this,ce)),ce.paused=!1,this};function Ne(ce,se){se.resumeScheduled||(se.resumeScheduled=!0,s.nextTick(q,ce,se))}function q(ce,se){d("resume",se.reading),se.reading||ce.read(0),se.resumeScheduled=!1,ce.emit("resume"),ne(ce),se.flowing&&!se.reading&&ce.read(0)}I.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 ne(ce){var se=ce._readableState;for(d("flow",se.flowing);se.flowing&&ce.read()!==null;);}I.prototype.wrap=function(ce){var se=this,ee=this._readableState,G=!1;ce.on("end",function(){if(d("wrapped end"),ee.decoder&&!ee.ended){var Ae=ee.decoder.end();Ae&&Ae.length&&se.push(Ae)}se.push(null)}),ce.on("data",function(Ae){if(d("wrapped data"),ee.decoder&&(Ae=ee.decoder.write(Ae)),!(ee.objectMode&&Ae==null)&&!(!ee.objectMode&&(!Ae||!Ae.length))){var K=se.push(Ae);K||(G=!0,ce.pause())}});for(var Z in ce)this[Z]===void 0&&typeof ce[Z]=="function"&&(this[Z]=function(K){return function(){return ce[K].apply(ce,arguments)}}(Z));for(var de=0;de<X.length;de++)ce.on(X[de],this.emit.bind(this,X[de]));return this._read=function(Ae){d("wrapped _read",Ae),G&&(G=!1,ce.resume())},this},typeof Symbol=="function"&&(I.prototype[Symbol.asyncIterator]=function(){return U===void 0&&(U=e("./internal/streams/async_iterator")),U(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(se){this._readableState&&(this._readableState.flowing=se)}}),I._fromList=Q,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Q(ce,se){if(se.length===0)return null;var ee;return se.objectMode?ee=se.buffer.shift():!ce||ce>=se.length?(se.decoder?ee=se.buffer.join(""):se.buffer.length===1?ee=se.buffer.first():ee=se.buffer.concat(se.length),se.buffer.clear()):ee=se.buffer.consume(ce,se.decoder),ee}function re(ce){var se=ce._readableState;d("endReadable",se.endEmitted),se.endEmitted||(se.ended=!0,s.nextTick(ve,se,ce))}function ve(ce,se){if(d("endReadableNT",ce.endEmitted,ce.length),!ce.endEmitted&&ce.length===0&&(ce.endEmitted=!0,se.readable=!1,se.emit("end"),ce.autoDestroy)){var ee=se._writableState;(!ee||ee.autoDestroy&&ee.finished)&&se.destroy()}}typeof Symbol=="function"&&(I.from=function(ce,se){return z===void 0&&(z=e("./internal/streams/from")),z(I,ce,se)});function Ce(ce,se){for(var ee=0,G=ce.length;ee<G;ee++)if(ce[ee]===se)return ee;return-1}}).call(this)}).call(this,e("_process"),typeof Qt<"u"?Qt: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 w=this._readableState;w.reading=!1,(w.needReadable||w.length<w.highWaterMark)&&this._read(w.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 w=this._readableState;(g.needTransform||w.needReadable||w.length<w.highWaterMark)&&this._read(w.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=H;function h(ne){var Q=this;this.next=null,this.entry=null,this.finish=function(){q(Q,ne)}}var c;H.WritableState=X;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(ne){return l.from(ne)}function m(ne){return l.isBuffer(ne)||ne instanceof u}var d=e("./internal/streams/destroy"),v=e("./internal/streams/state"),x=v.getHighWaterMark,g=e("../errors").codes,w=g.ERR_INVALID_ARG_TYPE,y=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_MULTIPLE_CALLBACK,k=g.ERR_STREAM_CANNOT_PIPE,F=g.ERR_STREAM_DESTROYED,O=g.ERR_STREAM_NULL_VALUES,N=g.ERR_STREAM_WRITE_AFTER_END,U=g.ERR_UNKNOWN_ENCODING,z=d.errorOrDestroy;e("inherits")(H,f);function W(){}function X(ne,Q,re){c=c||e("./_stream_duplex"),ne=ne||{},typeof re!="boolean"&&(re=Q instanceof c),this.objectMode=!!ne.objectMode,re&&(this.objectMode=this.objectMode||!!ne.writableObjectMode),this.highWaterMark=x(this,ne,"writableHighWaterMark",re),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ve=ne.decodeStrings===!1;this.decodeStrings=!ve,this.defaultEncoding=ne.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ce){R(Q,Ce)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=ne.emitClose!==!1,this.autoDestroy=!!ne.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new h(this)}X.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,re=[];Q;)re.push(Q),Q=Q.next;return re},function(){try{Object.defineProperty(X.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var J;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(J=Function.prototype[Symbol.hasInstance],Object.defineProperty(H,Symbol.hasInstance,{value:function(Q){return J.call(this,Q)?!0:this!==H?!1:Q&&Q._writableState instanceof X}})):J=function(Q){return Q instanceof this};function H(ne){c=c||e("./_stream_duplex");var Q=this instanceof c;if(!Q&&!J.call(H,this))return new H(ne);this._writableState=new X(ne,this,Q),this.writable=!0,ne&&(typeof ne.write=="function"&&(this._write=ne.write),typeof ne.writev=="function"&&(this._writev=ne.writev),typeof ne.destroy=="function"&&(this._destroy=ne.destroy),typeof ne.final=="function"&&(this._final=ne.final)),f.call(this)}H.prototype.pipe=function(){z(this,new k)};function I(ne,Q){var re=new N;z(ne,re),s.nextTick(Q,re)}function M(ne,Q,re,ve){var Ce;return re===null?Ce=new O:typeof re!="string"&&!Q.objectMode&&(Ce=new w("chunk",["string","Buffer"],re)),Ce?(z(ne,Ce),s.nextTick(ve,Ce),!1):!0}H.prototype.write=function(ne,Q,re){var ve=this._writableState,Ce=!1,ce=!ve.objectMode&&m(ne);return ce&&!l.isBuffer(ne)&&(ne=p(ne)),typeof Q=="function"&&(re=Q,Q=null),ce?Q="buffer":Q||(Q=ve.defaultEncoding),typeof re!="function"&&(re=W),ve.ending?I(this,re):(ce||M(this,ve,ne,re))&&(ve.pendingcb++,Ce=A(this,ve,ce,ne,Q,re)),Ce},H.prototype.cork=function(){this._writableState.corked++},H.prototype.uncork=function(){var ne=this._writableState;ne.corked&&(ne.corked--,!ne.writing&&!ne.corked&&!ne.bufferProcessing&&ne.bufferedRequest&&D(this,ne))},H.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new U(Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(H.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function E(ne,Q,re){return!ne.objectMode&&ne.decodeStrings!==!1&&typeof Q=="string"&&(Q=l.from(Q,re)),Q}Object.defineProperty(H.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function A(ne,Q,re,ve,Ce,ce){if(!re){var se=E(Q,ve,Ce);ve!==se&&(re=!0,Ce="buffer",ve=se)}var ee=Q.objectMode?1:ve.length;Q.length+=ee;var G=Q.length<Q.highWaterMark;if(G||(Q.needDrain=!0),Q.writing||Q.corked){var Z=Q.lastBufferedRequest;Q.lastBufferedRequest={chunk:ve,encoding:Ce,isBuf:re,callback:ce,next:null},Z?Z.next=Q.lastBufferedRequest:Q.bufferedRequest=Q.lastBufferedRequest,Q.bufferedRequestCount+=1}else B(ne,Q,!1,ee,ve,Ce,ce);return G}function B(ne,Q,re,ve,Ce,ce,se){Q.writelen=ve,Q.writecb=se,Q.writing=!0,Q.sync=!0,Q.destroyed?Q.onwrite(new F("write")):re?ne._writev(Ce,Q.onwrite):ne._write(Ce,ce,Q.onwrite),Q.sync=!1}function L(ne,Q,re,ve,Ce){--Q.pendingcb,re?(s.nextTick(Ce,ve),s.nextTick(he,ne,Q),ne._writableState.errorEmitted=!0,z(ne,ve)):(Ce(ve),ne._writableState.errorEmitted=!0,z(ne,ve),he(ne,Q))}function P(ne){ne.writing=!1,ne.writecb=null,ne.length-=ne.writelen,ne.writelen=0}function R(ne,Q){var re=ne._writableState,ve=re.sync,Ce=re.writecb;if(typeof Ce!="function")throw new _;if(P(re),Q)L(ne,re,ve,Q,Ce);else{var ce=V(re)||ne.destroyed;!ce&&!re.corked&&!re.bufferProcessing&&re.bufferedRequest&&D(ne,re),ve?s.nextTick(C,ne,re,ce,Ce):C(ne,re,ce,Ce)}}function C(ne,Q,re,ve){re||S(ne,Q),Q.pendingcb--,ve(),he(ne,Q)}function S(ne,Q){Q.length===0&&Q.needDrain&&(Q.needDrain=!1,ne.emit("drain"))}function D(ne,Q){Q.bufferProcessing=!0;var re=Q.bufferedRequest;if(ne._writev&&re&&re.next){var ve=Q.bufferedRequestCount,Ce=new Array(ve),ce=Q.corkedRequestsFree;ce.entry=re;for(var se=0,ee=!0;re;)Ce[se]=re,re.isBuf||(ee=!1),re=re.next,se+=1;Ce.allBuffers=ee,B(ne,Q,!0,Q.length,Ce,"",ce.finish),Q.pendingcb++,Q.lastBufferedRequest=null,ce.next?(Q.corkedRequestsFree=ce.next,ce.next=null):Q.corkedRequestsFree=new h(Q),Q.bufferedRequestCount=0}else{for(;re;){var G=re.chunk,Z=re.encoding,de=re.callback,Ae=Q.objectMode?1:G.length;if(B(ne,Q,!1,Ae,G,Z,de),re=re.next,Q.bufferedRequestCount--,Q.writing)break}re===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=re,Q.bufferProcessing=!1}H.prototype._write=function(ne,Q,re){re(new y("_write()"))},H.prototype._writev=null,H.prototype.end=function(ne,Q,re){var ve=this._writableState;return typeof ne=="function"?(re=ne,ne=null,Q=null):typeof Q=="function"&&(re=Q,Q=null),ne!=null&&this.write(ne,Q),ve.corked&&(ve.corked=1,this.uncork()),ve.ending||Ne(this,ve,re),this},Object.defineProperty(H.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function V(ne){return ne.ending&&ne.length===0&&ne.bufferedRequest===null&&!ne.finished&&!ne.writing}function te(ne,Q){ne._final(function(re){Q.pendingcb--,re&&z(ne,re),Q.prefinished=!0,ne.emit("prefinish"),he(ne,Q)})}function oe(ne,Q){!Q.prefinished&&!Q.finalCalled&&(typeof ne._final=="function"&&!Q.destroyed?(Q.pendingcb++,Q.finalCalled=!0,s.nextTick(te,ne,Q)):(Q.prefinished=!0,ne.emit("prefinish")))}function he(ne,Q){var re=V(Q);if(re&&(oe(ne,Q),Q.pendingcb===0&&(Q.finished=!0,ne.emit("finish"),Q.autoDestroy))){var ve=ne._readableState;(!ve||ve.autoDestroy&&ve.endEmitted)&&ne.destroy()}return re}function Ne(ne,Q,re){Q.ending=!0,he(ne,Q),re&&(Q.finished?s.nextTick(re):ne.once("finish",re)),Q.ended=!0,ne.writable=!1}function q(ne,Q,re){var ve=ne.entry;for(ne.entry=null;ve;){var Ce=ve.callback;Q.pendingcb--,Ce(re),ve=ve.next}Q.corkedRequestsFree.next=ne}Object.defineProperty(H.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Q){this._writableState&&(this._writableState.destroyed=Q)}}),H.prototype.destroy=d.destroy,H.prototype._undestroy=d.undestroy,H.prototype._destroy=function(ne,Q){Q(ne)}}).call(this)}).call(this,e("_process"),typeof Qt<"u"?Qt: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(N,U,z){return U=c(U),U in N?Object.defineProperty(N,U,{value:z,enumerable:!0,configurable:!0,writable:!0}):N[U]=z,N}function c(N){var U=a(N,"string");return typeof U=="symbol"?U:String(U)}function a(N,U){if(typeof N!="object"||N===null)return N;var z=N[Symbol.toPrimitive];if(z!==void 0){var W=z.call(N,U||"default");if(typeof W!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(N)}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(N,U){return{value:N,done:U}}function w(N){var U=N[l];if(U!==null){var z=N[x].read();z!==null&&(N[d]=null,N[l]=null,N[u]=null,U(g(z,!1)))}}function y(N){s.nextTick(w,N)}function _(N,U){return function(z,W){N.then(function(){if(U[m]){z(g(void 0,!0));return}U[v](z,W)},W)}}var k=Object.getPrototypeOf(function(){}),F=Object.setPrototypeOf((o={get stream(){return this[x]},next:function(){var U=this,z=this[p];if(z!==null)return Promise.reject(z);if(this[m])return Promise.resolve(g(void 0,!0));if(this[x].destroyed)return new Promise(function(H,I){s.nextTick(function(){U[p]?I(U[p]):H(g(void 0,!0))})});var W=this[d],X;if(W)X=new Promise(_(W,this));else{var J=this[x].read();if(J!==null)return Promise.resolve(g(J,!1));X=new Promise(this[v])}return this[d]=X,X}},h(o,Symbol.asyncIterator,function(){return this}),h(o,"return",function(){var U=this;return new Promise(function(z,W){U[x].destroy(null,function(X){if(X){W(X);return}z(g(void 0,!0))})})}),o),k),O=function(U){var z,W=Object.create(F,(z={},h(z,x,{value:U,writable:!0}),h(z,l,{value:null,writable:!0}),h(z,u,{value:null,writable:!0}),h(z,p,{value:null,writable:!0}),h(z,m,{value:U._readableState.endEmitted,writable:!0}),h(z,v,{value:function(J,H){var I=W[x].read();I?(W[d]=null,W[l]=null,W[u]=null,J(g(I,!1))):(W[l]=J,W[u]=H)},writable:!0}),z));return W[d]=null,f(U,function(X){if(X&&X.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=W[u];J!==null&&(W[d]=null,W[l]=null,W[u]=null,J(X)),W[p]=X;return}var H=W[l];H!==null&&(W[d]=null,W[l]=null,W[u]=null,H(g(void 0,!0))),W[m]=!0}),U.on("readable",y.bind(null,W)),W};n.exports=O}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,n,i){function s(w,y){var _=Object.keys(w);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(w);y&&(k=k.filter(function(F){return Object.getOwnPropertyDescriptor(w,F).enumerable})),_.push.apply(_,k)}return _}function o(w){for(var y=1;y<arguments.length;y++){var _=arguments[y]!=null?arguments[y]:{};y%2?s(Object(_),!0).forEach(function(k){h(w,k,_[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(_)):s(Object(_)).forEach(function(k){Object.defineProperty(w,k,Object.getOwnPropertyDescriptor(_,k))})}return w}function h(w,y,_){return y=l(y),y in w?Object.defineProperty(w,y,{value:_,enumerable:!0,configurable:!0,writable:!0}):w[y]=_,w}function c(w,y){if(!(w instanceof y))throw new TypeError("Cannot call a class as a function")}function a(w,y){for(var _=0;_<y.length;_++){var k=y[_];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(w,l(k.key),k)}}function f(w,y,_){return y&&a(w.prototype,y),_&&a(w,_),Object.defineProperty(w,"prototype",{writable:!1}),w}function l(w){var y=u(w,"string");return typeof y=="symbol"?y:String(y)}function u(w,y){if(typeof w!="object"||w===null)return w;var _=w[Symbol.toPrimitive];if(_!==void 0){var k=_.call(w,y||"default");if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(w)}var p=e("buffer"),m=p.Buffer,d=e("util"),v=d.inspect,x=v&&v.custom||"inspect";function g(w,y,_){m.prototype.copy.call(w,y,_)}n.exports=function(){function w(){c(this,w),this.head=null,this.tail=null,this.length=0}return f(w,[{key:"push",value:function(_){var k={data:_,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(_){var k={data:_,next:this.head};this.length===0&&(this.tail=k),this.head=k,++this.length}},{key:"shift",value:function(){if(this.length!==0){var _=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,_}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(_){if(this.length===0)return"";for(var k=this.head,F=""+k.data;k=k.next;)F+=_+k.data;return F}},{key:"concat",value:function(_){if(this.length===0)return m.alloc(0);for(var k=m.allocUnsafe(_>>>0),F=this.head,O=0;F;)g(F.data,k,O),O+=F.data.length,F=F.next;return k}},{key:"consume",value:function(_,k){var F;return _<this.head.data.length?(F=this.head.data.slice(0,_),this.head.data=this.head.data.slice(_)):_===this.head.data.length?F=this.shift():F=k?this._getString(_):this._getBuffer(_),F}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(_){var k=this.head,F=1,O=k.data;for(_-=O.length;k=k.next;){var N=k.data,U=_>N.length?N.length:_;if(U===N.length?O+=N:O+=N.slice(0,_),_-=U,_===0){U===N.length?(++F,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=N.slice(U));break}++F}return this.length-=F,O}},{key:"_getBuffer",value:function(_){var k=m.allocUnsafe(_),F=this.head,O=1;for(F.data.copy(k),_-=F.data.length;F=F.next;){var N=F.data,U=_>N.length?N.length:_;if(N.copy(k,k.length-_,0,U),_-=U,_===0){U===N.length?(++O,F.next?this.head=F.next:this.head=this.tail=null):(this.head=F,F.data=N.slice(U));break}++O}return this.length-=O,k}},{key:x,value:function(_,k){return v(this,o(o({},k),{},{depth:0,customInspect:!1}))}}]),w}()},{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,w=function(){p=!1,g=!0,m||u.call(f)},y=function(O){u.call(f,O)},_=function(){var O;if(p&&!g)return(!f._readableState||!f._readableState.ended)&&(O=new s),u.call(f,O);if(m&&!v)return(!f._writableState||!f._writableState.ended)&&(O=new s),u.call(f,O)},k=function(){f.req.on("finish",x)};return c(f)?(f.on("complete",x),f.on("abort",_),f.req?k():f.on("request",k)):m&&!f._writableState&&(f.on("end",d),f.on("close",d)),f.on("end",w),f.on("finish",x),l.error!==!1&&f.on("error",y),f.on("close",_),function(){f.removeListener("complete",x),f.removeListener("abort",_),f.removeListener("request",k),f.req&&f.req.removeListener("finish",x),f.removeListener("end",d),f.removeListener("close",d),f.removeListener("finish",x),f.removeListener("end",w),f.removeListener("error",y),f.removeListener("close",_)}}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,w,y){y=o(y);var _=!1;x.on("close",function(){_=!0}),s===void 0&&(s=e("./end-of-stream")),s(x,{readable:g,writable:w},function(F){if(F)return y(F);_=!0,y()});var k=!1;return function(F){if(!_&&!k){if(k=!0,l(x))return x.abort();if(typeof x.destroy=="function")return x.destroy();y(F||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),w=0;w<x;w++)g[w]=arguments[w];var y=d(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new c("streams");var _,k=g.map(function(F,O){var N=O<g.length-1,U=O>0;return u(F,N,U,function(z){_||(_=z),z&&k.forEach(p),!N&&(k.forEach(p),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(R,C,S){R[C]=S.value},f,l=typeof Symbol=="function"?Symbol:{},u=l.iterator||"@@iterator",p=l.asyncIterator||"@@asyncIterator",m=l.toStringTag||"@@toStringTag";function d(R,C,S){return Object.defineProperty(R,C,{value:S,enumerable:!0,configurable:!0,writable:!0}),R[C]}try{d({},"")}catch{d=function(C,S,D){return C[S]=D}}function v(R,C,S,D){var V=C&&C.prototype instanceof F?C:F,te=Object.create(V.prototype),oe=new B(D||[]);return a(te,"_invoke",{value:I(R,S,oe)}),te}o.wrap=v;function x(R,C,S){try{return{type:"normal",arg:R.call(C,S)}}catch(D){return{type:"throw",arg:D}}}var g="suspendedStart",w="suspendedYield",y="executing",_="completed",k={};function F(){}function O(){}function N(){}var U={};d(U,u,function(){return this});var z=Object.getPrototypeOf,W=z&&z(z(L([])));W&&W!==h&&c.call(W,u)&&(U=W);var X=N.prototype=F.prototype=Object.create(U);O.prototype=N,a(X,"constructor",{value:N,configurable:!0}),a(N,"constructor",{value:O,configurable:!0}),O.displayName=d(N,m,"GeneratorFunction");function J(R){["next","throw","return"].forEach(function(C){d(R,C,function(S){return this._invoke(C,S)})})}o.isGeneratorFunction=function(R){var C=typeof R=="function"&&R.constructor;return C?C===O||(C.displayName||C.name)==="GeneratorFunction":!1},o.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,N):(R.__proto__=N,d(R,m,"GeneratorFunction")),R.prototype=Object.create(X),R},o.awrap=function(R){return{__await:R}};function H(R,C){function S(te,oe,he,Ne){var q=x(R[te],R,oe);if(q.type==="throw")Ne(q.arg);else{var ne=q.arg,Q=ne.value;return Q&&typeof Q=="object"&&c.call(Q,"__await")?C.resolve(Q.__await).then(function(re){S("next",re,he,Ne)},function(re){S("throw",re,he,Ne)}):C.resolve(Q).then(function(re){ne.value=re,he(ne)},function(re){return S("throw",re,he,Ne)})}}var D;function V(te,oe){function he(){return new C(function(Ne,q){S(te,oe,Ne,q)})}return D=D?D.then(he,he):he()}a(this,"_invoke",{value:V})}J(H.prototype),d(H.prototype,p,function(){return this}),o.AsyncIterator=H,o.async=function(R,C,S,D,V){V===void 0&&(V=Promise);var te=new H(v(R,C,S,D),V);return o.isGeneratorFunction(C)?te:te.next().then(function(oe){return oe.done?oe.value:te.next()})};function I(R,C,S){var D=g;return function(te,oe){if(D===y)throw new Error("Generator is already running");if(D===_){if(te==="throw")throw oe;return P()}for(S.method=te,S.arg=oe;;){var he=S.delegate;if(he){var Ne=M(he,S);if(Ne){if(Ne===k)continue;return Ne}}if(S.method==="next")S.sent=S._sent=S.arg;else if(S.method==="throw"){if(D===g)throw D=_,S.arg;S.dispatchException(S.arg)}else S.method==="return"&&S.abrupt("return",S.arg);D=y;var q=x(R,C,S);if(q.type==="normal"){if(D=S.done?_:w,q.arg===k)continue;return{value:q.arg,done:S.done}}else q.type==="throw"&&(D=_,S.method="throw",S.arg=q.arg)}}}function M(R,C){var S=C.method,D=R.iterator[S];if(D===f)return C.delegate=null,S==="throw"&&R.iterator.return&&(C.method="return",C.arg=f,M(R,C),C.method==="throw")||S!=="return"&&(C.method="throw",C.arg=new TypeError("The iterator does not provide a '"+S+"' method")),k;var V=x(D,R.iterator,C.arg);if(V.type==="throw")return C.method="throw",C.arg=V.arg,C.delegate=null,k;var te=V.arg;if(!te)return C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,k;if(te.done)C[R.resultName]=te.value,C.next=R.nextLoc,C.method!=="return"&&(C.method="next",C.arg=f);else return te;return C.delegate=null,k}J(X),d(X,m,"Generator"),d(X,u,function(){return this}),d(X,"toString",function(){return"[object Generator]"});function E(R){var C={tryLoc:R[0]};1 in R&&(C.catchLoc=R[1]),2 in R&&(C.finallyLoc=R[2],C.afterLoc=R[3]),this.tryEntries.push(C)}function A(R){var C=R.completion||{};C.type="normal",delete C.arg,R.completion=C}function B(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(E,this),this.reset(!0)}o.keys=function(R){var C=Object(R),S=[];for(var D in C)S.push(D);return S.reverse(),function V(){for(;S.length;){var te=S.pop();if(te in C)return V.value=te,V.done=!1,V}return V.done=!0,V}};function L(R){if(R){var C=R[u];if(C)return C.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var S=-1,D=function V(){for(;++S<R.length;)if(c.call(R,S))return V.value=R[S],V.done=!1,V;return V.value=f,V.done=!0,V};return D.next=D}}return{next:P}}o.values=L;function P(){return{value:f,done:!0}}return B.prototype={constructor:B,reset:function(R){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(A),!R)for(var C in this)C.charAt(0)==="t"&&c.call(this,C)&&!isNaN(+C.slice(1))&&(this[C]=f)},stop:function(){this.done=!0;var R=this.tryEntries[0],C=R.completion;if(C.type==="throw")throw C.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var C=this;function S(Ne,q){return te.type="throw",te.arg=R,C.next=Ne,q&&(C.method="next",C.arg=f),!!q}for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D],te=V.completion;if(V.tryLoc==="root")return S("end");if(V.tryLoc<=this.prev){var oe=c.call(V,"catchLoc"),he=c.call(V,"finallyLoc");if(oe&&he){if(this.prev<V.catchLoc)return S(V.catchLoc,!0);if(this.prev<V.finallyLoc)return S(V.finallyLoc)}else if(oe){if(this.prev<V.catchLoc)return S(V.catchLoc,!0)}else if(he){if(this.prev<V.finallyLoc)return S(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(R,C){for(var S=this.tryEntries.length-1;S>=0;--S){var D=this.tryEntries[S];if(D.tryLoc<=this.prev&&c.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var V=D;break}}V&&(R==="break"||R==="continue")&&V.tryLoc<=C&&C<=V.finallyLoc&&(V=null);var te=V?V.completion:{};return te.type=R,te.arg=C,V?(this.method="next",this.next=V.finallyLoc,k):this.complete(te)},complete:function(R,C){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&C&&(this.next=C),k},finish:function(R){for(var C=this.tryEntries.length-1;C>=0;--C){var S=this.tryEntries[C];if(S.finallyLoc===R)return this.complete(S.completion,S.afterLoc),A(S),k}},catch:function(R){for(var C=this.tryEntries.length-1;C>=0;--C){var S=this.tryEntries[C];if(S.tryLoc===R){var D=S.completion;if(D.type==="throw"){var V=D.arg;A(S)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(R,C,S){return this.delegate={iterator:L(R),resultName:C,nextLoc:S},this.method==="next"&&(this.arg=f),k}},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 k=c,F=0;F<16;++F)k[F]=this._block.readInt32LE(F*4);for(var O=this._a|0,N=this._b|0,U=this._c|0,z=this._d|0,W=this._e|0,X=this._a|0,J=this._b|0,H=this._c|0,I=this._d|0,M=this._e|0,E=0;E<80;E+=1){var A,B;E<16?(A=x(O,N,U,z,W,k[a[E]],p[0],l[E]),B=_(X,J,H,I,M,k[f[E]],m[0],u[E])):E<32?(A=g(O,N,U,z,W,k[a[E]],p[1],l[E]),B=y(X,J,H,I,M,k[f[E]],m[1],u[E])):E<48?(A=w(O,N,U,z,W,k[a[E]],p[2],l[E]),B=w(X,J,H,I,M,k[f[E]],m[2],u[E])):E<64?(A=y(O,N,U,z,W,k[a[E]],p[3],l[E]),B=g(X,J,H,I,M,k[f[E]],m[3],u[E])):(A=_(O,N,U,z,W,k[a[E]],p[4],l[E]),B=x(X,J,H,I,M,k[f[E]],m[4],u[E])),O=W,W=z,z=v(U,10),U=N,N=A,X=M,M=I,I=v(H,10),H=J,J=B}var L=this._b+U+I|0;this._b=this._c+z+M|0,this._c=this._d+W+X|0,this._d=this._e+O+J|0,this._e=this._a+N+H|0,this._a=L},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 k=s.alloc?s.alloc(20):new s(20);return k.writeInt32LE(this._a,0),k.writeInt32LE(this._b,4),k.writeInt32LE(this._c,8),k.writeInt32LE(this._d,12),k.writeInt32LE(this._e,16),k};function v(k,F){return k<<F|k>>>32-F}function x(k,F,O,N,U,z,W,X){return v(k+(F^O^N)+z+W|0,X)+U|0}function g(k,F,O,N,U,z,W,X){return v(k+(F&O|~F&N)+z+W|0,X)+U|0}function w(k,F,O,N,U,z,W,X){return v(k+((F|~O)^N)+z+W|0,X)+U|0}function y(k,F,O,N,U,z,W,X){return v(k+(F&N|O&~N)+z+W|0,X)+U|0}function _(k,F,O,N,U,z,W,X){return v(k+(F^(O|~N))+z+W|0,X)+U|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",w="http://www.w3.org/2000/xmlns/",y={__proto__:null,xml:g,xmlns:w},_={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},k=-1,F=-2,O=0,N=1,U=2,z=3,W=4,X=5,J=6,H=7,I=8,M=9,E=10,A=11,B=12,L=13,P=14,R=15,C=16,S=17,D=18,V=19,te=20,oe=21,he=22,Ne=23,q=24,ne=25,Q=26,re=27,ve=28,Ce=29,ce=30,se=31,ee=32,G=33,Z=34,de=35,Ae=36,K=37,Te=38,Oe=39,ie=40,fe=41,we=42,Fe=43,Ue=44,Pe=9,$e=10,rt=13,Ze=32,Se=33,je=34,Ke=38,st=39,St=45,At=47,bt=59,wt=60,Dt=61,gt=62,xt=63,Bt=91,kt=93,er=133,zt=8232,Ct=tt=>tt===je||tt===st,Kt=[je,st],ir=[...Kt,Bt,gt],Nt=[...Kt,wt,kt],le=[Dt,xt,...u],Ee=[...u,gt,Ke,wt];function pe(tt,me,Me){switch(me){case"xml":Me!==g&&tt.fail(`xml prefix must be bound to ${g}.`);break;case"xmlns":Me!==w&&tt.fail(`xmlns prefix must be bound to ${w}.`);break}switch(Me){case w:tt.fail(me===""?`the default namespace may not be set to ${Me}.`:`may not assign a prefix (even "xmlns") to the URI ${w}.`);break;case g:switch(me){case"xml":break;case"":tt.fail(`the default namespace may not be set to ${Me}.`);break;default:tt.fail("may not assign the xml namespace to another prefix.")}break}}function xe(tt,me){for(const Me of Object.keys(me))pe(tt,Me,me[Me])}const ye=tt=>x.test(tt),_e=tt=>p.test(tt),We=0,Je=1,Le=2;i.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const Ve={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 He{constructor(me){this.opt=me??{},this.fragmentOpt=!!this.opt.fragment;const Me=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,Me){this.nameStartCheck=d,this.nameCheck=v,this.isName=ye,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},y);const Re=this.opt.additionalNamespaces;Re!=null&&(xe(this,Re),Object.assign(this.ns,Re))}else this.nameStartCheck=f,this.nameCheck=l,this.isName=_e,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 me;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=We,this.attribList=[];const{fragmentOpt:Me}=this;this.state=Me?L:O,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=Me,this.xmlDeclPossible=!Me,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:Re}=this.opt;if(Re===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");Re="1.0"}this.setXMLVersion(Re),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(_),(me=this.readyHandler)===null||me===void 0||me.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(me,Me){this[Ve[me]]=Me}off(me){this[Ve[me]]=void 0}makeError(me){var Me;let Re=(Me=this.fileName)!==null&&Me!==void 0?Me:"";return this.trackPosition&&(Re.length>0&&(Re+=":"),Re+=`${this.line}:${this.column}`),Re.length>0&&(Re+=": "),new Error(Re+me)}fail(me){const Me=this.makeError(me),Re=this.errorHandler;if(Re===void 0)throw Me;return Re(Me),this}write(me){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let Me=!1;me===null?(Me=!0,me=""):typeof me=="object"&&(me=me.toString()),this.carriedFromPrevious!==void 0&&(me=`${this.carriedFromPrevious}${me}`,this.carriedFromPrevious=void 0);let Re=me.length;const Qe=me.charCodeAt(Re-1);!Me&&(Qe===rt||Qe>=55296&&Qe<=56319)&&(this.carriedFromPrevious=me[Re-1],Re--,me=me.slice(0,Re));const{stateTable:lt}=this;for(this.chunk=me,this.i=0;this.i<Re;)lt[this.state].call(this);return this.chunkPosition+=Re,Me?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:me,i:Me}=this;if(this.prevI=Me,this.i=Me+1,Me>=me.length)return k;const Re=me.charCodeAt(Me);if(this.column++,Re<55296){if(Re>=Ze||Re===Pe)return Re;switch(Re){case $e:return this.line++,this.column=0,this.positionAtNewLine=this.position,$e;case rt:return me.charCodeAt(Me+1)===$e&&(this.i=Me+2),this.line++,this.column=0,this.positionAtNewLine=this.position,F;default:return this.fail("disallowed character."),Re}}if(Re>56319)return Re>=57344&&Re<=65533||this.fail("disallowed character."),Re;const Qe=65536+(Re-55296)*1024+(me.charCodeAt(Me+1)-56320);return this.i=Me+2,Qe>1114111&&this.fail("disallowed character."),Qe}getCode11(){const{chunk:me,i:Me}=this;if(this.prevI=Me,this.i=Me+1,Me>=me.length)return k;const Re=me.charCodeAt(Me);if(this.column++,Re<55296){if(Re>31&&Re<127||Re>159&&Re!==zt||Re===Pe)return Re;switch(Re){case $e:return this.line++,this.column=0,this.positionAtNewLine=this.position,$e;case rt:{const lt=me.charCodeAt(Me+1);(lt===$e||lt===er)&&(this.i=Me+2)}case er:case zt:return this.line++,this.column=0,this.positionAtNewLine=this.position,F;default:return this.fail("disallowed character."),Re}}if(Re>56319)return Re>=57344&&Re<=65533||this.fail("disallowed character."),Re;const Qe=65536+(Re-55296)*1024+(me.charCodeAt(Me+1)-56320);return this.i=Me+2,Qe>1114111&&this.fail("disallowed character."),Qe}getCodeNorm(){const me=this.getCode();return me===F?$e:me}unget(){this.i=this.prevI,this.column--}captureTo(me){let{i:Me}=this;const{chunk:Re}=this;for(;;){const Qe=this.getCode(),lt=Qe===F,Et=lt?$e:Qe;if(Et===k||me.includes(Et))return this.text+=Re.slice(Me,this.prevI),Et;lt&&(this.text+=`${Re.slice(Me,this.prevI)}
|
||
`,Me=this.i)}}captureToChar(me){let{i:Me}=this;const{chunk:Re}=this;for(;;){let Qe=this.getCode();switch(Qe){case F:this.text+=`${Re.slice(Me,this.prevI)}
|
||
`,Me=this.i,Qe=$e;break;case k:return this.text+=Re.slice(Me),!1}if(Qe===me)return this.text+=Re.slice(Me,this.prevI),!0}}captureNameChars(){const{chunk:me,i:Me}=this;for(;;){const Re=this.getCode();if(Re===k)return this.name+=me.slice(Me),k;if(!l(Re))return this.name+=me.slice(Me,this.prevI),Re===F?$e:Re}}skipSpaces(){for(;;){const me=this.getCodeNorm();if(me===k||!c(me))return me}}setXMLVersion(me){this.currentXMLVersion=me,me==="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=N}sBeginWhitespace(){const me=this.i,Me=this.skipSpaces();switch(this.prevI!==me&&(this.xmlDeclPossible=!1),Me){case wt:if(this.state=R,this.text.length!==0)throw new Error("no-empty text at start");break;case k:break;default:this.unget(),this.state=L,this.xmlDeclPossible=!1}}sDoctype(){var me;const Me=this.captureTo(ir);switch(Me){case gt:{(me=this.doctypeHandler)===null||me===void 0||me.call(this,this.text),this.text="",this.state=L,this.doctype=!0;break}case k:break;default:this.text+=String.fromCodePoint(Me),Me===Bt?this.state=W:Ct(Me)&&(this.state=z,this.q=Me)}}sDoctypeQuote(){const me=this.q;this.captureToChar(me)&&(this.text+=String.fromCodePoint(me),this.q=null,this.state=U)}sDTD(){const me=this.captureTo(Nt);me!==k&&(this.text+=String.fromCodePoint(me),me===kt?this.state=U:me===wt?this.state=J:Ct(me)&&(this.state=X,this.q=me))}sDTDQuoted(){const me=this.q;this.captureToChar(me)&&(this.text+=String.fromCodePoint(me),this.state=W,this.q=null)}sDTDOpenWaka(){const me=this.getCodeNorm();switch(this.text+=String.fromCodePoint(me),me){case Se:this.state=H,this.openWakaBang="";break;case xt:this.state=A;break;default:this.state=W}}sDTDOpenWakaBang(){const me=String.fromCodePoint(this.getCodeNorm()),Me=this.openWakaBang+=me;this.text+=me,Me!=="-"&&(this.state=Me==="--"?I:W,this.openWakaBang="")}sDTDComment(){this.captureToChar(St)&&(this.text+="-",this.state=M)}sDTDCommentEnding(){const me=this.getCodeNorm();this.text+=String.fromCodePoint(me),this.state=me===St?E:I}sDTDCommentEnded(){const me=this.getCodeNorm();this.text+=String.fromCodePoint(me),me===gt?this.state=W:(this.fail("malformed comment."),this.state=I)}sDTDPI(){this.captureToChar(xt)&&(this.text+="?",this.state=B)}sDTDPIEnding(){const me=this.getCodeNorm();this.text+=String.fromCodePoint(me),me===gt&&(this.state=W)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:me}=this;const{chunk:Me}=this;e:for(;;)switch(this.getCode()){case F:this.entity+=`${Me.slice(me,this.prevI)}
|
||
`,me=this.i;break;case bt:{const{entityReturnState:Re}=this,Qe=this.entity+Me.slice(me,this.prevI);this.state=Re;let lt;Qe===""?(this.fail("empty entity name."),lt="&;"):(lt=this.parseEntity(Qe),this.entity=""),(Re!==L||this.textHandler!==void 0)&&(this.text+=lt);break e}case k:this.entity+=Me.slice(me);break e}}sOpenWaka(){const me=this.getCode();if(f(me))this.state=Z,this.unget(),this.xmlDeclPossible=!1;else switch(me){case At:this.state=Fe,this.xmlDeclPossible=!1;break;case Se:this.state=C,this.openWakaBang="",this.xmlDeclPossible=!1;break;case xt:this.state=Ne;break;default:this.fail("disallowed character in tag name"),this.state=L,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=te,this.openWakaBang="";break;case"--":this.state=S,this.openWakaBang="";break;case"DOCTYPE":this.state=U,(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(St)&&(this.state=D)}sCommentEnding(){var me;const Me=this.getCodeNorm();Me===St?(this.state=V,(me=this.commentHandler)===null||me===void 0||me.call(this,this.text),this.text=""):(this.text+=`-${String.fromCodePoint(Me)}`,this.state=S)}sCommentEnded(){const me=this.getCodeNorm();me!==gt?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(me)}`,this.state=S):this.state=L}sCData(){this.captureToChar(kt)&&(this.state=oe)}sCDataEnding(){const me=this.getCodeNorm();me===kt?this.state=he:(this.text+=`]${String.fromCodePoint(me)}`,this.state=te)}sCDataEnding2(){var me;const Me=this.getCodeNorm();switch(Me){case gt:{(me=this.cdataHandler)===null||me===void 0||me.call(this,this.text),this.text="",this.state=L;break}case kt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(Me)}`,this.state=te}}sPIFirstChar(){const me=this.getCodeNorm();this.nameStartCheck(me)?(this.piTarget+=String.fromCodePoint(me),this.state=q):me===xt||c(me)?(this.fail("processing instruction without a target."),this.state=me===xt?Q:ne):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(me),this.state=q)}sPIRest(){const{chunk:me,i:Me}=this;for(;;){const Re=this.getCodeNorm();if(Re===k){this.piTarget+=me.slice(Me);return}if(!this.nameCheck(Re)){this.piTarget+=me.slice(Me,this.prevI);const Qe=Re===xt;Qe||c(Re)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=Qe?G:re):this.state=Qe?Q:ne:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(Re));break}}}sPIBody(){if(this.text.length===0){const me=this.getCodeNorm();me===xt?this.state=Q:c(me)||(this.text=String.fromCodePoint(me))}else this.captureToChar(xt)&&(this.state=Q)}sPIEnding(){var me;const Me=this.getCodeNorm();if(Me===gt){const{piTarget:Re}=this;Re.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(me=this.piHandler)===null||me===void 0||me.call(this,{target:Re,body:this.text}),this.piTarget=this.text="",this.state=L}else Me===xt?this.text+="?":(this.text+=`?${String.fromCodePoint(Me)}`,this.state=ne);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const me=this.skipSpaces();if(me===xt){this.state=G;return}me!==k&&(this.state=ve,this.name=String.fromCodePoint(me))}sXMLDeclName(){const me=this.captureTo(le);if(me===xt){this.state=G,this.name+=this.text,this.text="",this.fail("XML declaration is incomplete.");return}if(c(me)||me===Dt){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=me===Dt?ce:Ce}}sXMLDeclEq(){const me=this.getCodeNorm();if(me===xt){this.state=G,this.fail("XML declaration is incomplete.");return}c(me)||(me!==Dt&&this.fail("value required."),this.state=ce)}sXMLDeclValueStart(){const me=this.getCodeNorm();if(me===xt){this.state=G,this.fail("XML declaration is incomplete.");return}c(me)||(Ct(me)?this.q=me:(this.fail("value must be quoted."),this.q=Ze),this.state=se)}sXMLDeclValue(){const me=this.captureTo([this.q,xt]);if(me===xt){this.state=G,this.text="",this.fail("XML declaration is incomplete.");return}if(me===k)return;const Me=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const Re=Me;this.xmlDecl.version=Re,/^1\.[0-9]+$/.test(Re)?this.opt.forceXMLVersion||this.setXMLVersion(Re):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(Me)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=Me;break;case"standalone":Me!=="yes"&&Me!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=Me;break}this.name="",this.state=ee}sXMLDeclSeparator(){const me=this.getCodeNorm();if(me===xt){this.state=G;return}c(me)||(this.fail("whitespace required."),this.unget()),this.state=re}sXMLDeclEnding(){var me;this.getCodeNorm()===gt?(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."),(me=this.xmldeclHandler)===null||me===void 0||me.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=L):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var me;const Me=this.captureNameChars();if(Me===k)return;const Re=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=Re.ns=Object.create(null)),(me=this.openTagStartHandler)===null||me===void 0||me.call(this,Re),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),Me){case gt:this.openTag();break;case At:this.state=de;break;default:c(Me)||this.fail("disallowed character in tag name."),this.state=Ae}}sOpenTagSlash(){this.getCode()===gt?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=Ae)}sAttrib(){const me=this.skipSpaces();me!==k&&(f(me)?(this.unget(),this.state=K):me===gt?this.openTag():me===At?this.state=de:this.fail("disallowed character in attribute name."))}sAttribName(){const me=this.captureNameChars();me===Dt?this.state=Oe:c(me)?this.state=Te:me===gt?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):me!==k&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const me=this.skipSpaces();switch(me){case k:return;case Dt:this.state=Oe;break;default:this.fail("attribute without value."),this.text="",this.name="",me===gt?this.openTag():f(me)?(this.unget(),this.state=K):(this.fail("disallowed character in attribute name."),this.state=Ae)}}sAttribValue(){const me=this.getCodeNorm();Ct(me)?(this.q=me,this.state=ie):c(me)||(this.fail("unquoted attribute value."),this.state=we,this.unget())}sAttribValueQuoted(){const{q:me,chunk:Me}=this;let{i:Re}=this;for(;;)switch(this.getCode()){case me:this.pushAttrib(this.name,this.text+Me.slice(Re,this.prevI)),this.name=this.text="",this.q=null,this.state=fe;return;case Ke:this.text+=Me.slice(Re,this.prevI),this.state=P,this.entityReturnState=ie;return;case $e:case F:case Pe:this.text+=`${Me.slice(Re,this.prevI)} `,Re=this.i;break;case wt:this.text+=Me.slice(Re,this.prevI),this.fail("disallowed character.");return;case k:this.text+=Me.slice(Re);return}}sAttribValueClosed(){const me=this.getCodeNorm();c(me)?this.state=Ae:me===gt?this.openTag():me===At?this.state=de:f(me)?(this.fail("no whitespace between attributes."),this.unget(),this.state=K):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const me=this.captureTo(Ee);switch(me){case Ke:this.state=P,this.entityReturnState=we;break;case wt:this.fail("disallowed character.");break;case k:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",me===gt?this.openTag():this.state=Ae}}sCloseTag(){const me=this.captureNameChars();me===gt?this.closeTag():c(me)?this.state=Ue:me!==k&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case gt:this.closeTag();break;case k:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:me,forbiddenState:Me}=this;const{chunk:Re,textHandler:Qe}=this;e:for(;;)switch(this.getCode()){case wt:{if(this.state=R,Qe!==void 0){const{text:lt}=this,Et=Re.slice(me,this.prevI);lt.length!==0?(Qe(lt+Et),this.text=""):Et.length!==0&&Qe(Et)}Me=We;break e}case Ke:this.state=P,this.entityReturnState=L,Qe!==void 0&&(this.text+=Re.slice(me,this.prevI)),Me=We;break e;case kt:switch(Me){case We:Me=Je;break;case Je:Me=Le;break;case Le:break;default:throw new Error("impossible state")}break;case gt:Me===Le&&this.fail('the string "]]>" is disallowed in char data.'),Me=We;break;case F:Qe!==void 0&&(this.text+=`${Re.slice(me,this.prevI)}
|
||
`),me=this.i,Me=We;break;case k:Qe!==void 0&&(this.text+=Re.slice(me));break e;default:Me=We}this.forbiddenState=Me}handleTextOutsideRoot(){let{i:me}=this;const{chunk:Me,textHandler:Re}=this;let Qe=!1;e:for(;;){const lt=this.getCode();switch(lt){case wt:{if(this.state=R,Re!==void 0){const{text:Et}=this,Ot=Me.slice(me,this.prevI);Et.length!==0?(Re(Et+Ot),this.text=""):Ot.length!==0&&Re(Ot)}break e}case Ke:this.state=P,this.entityReturnState=L,Re!==void 0&&(this.text+=Me.slice(me,this.prevI)),Qe=!0;break e;case F:Re!==void 0&&(this.text+=`${Me.slice(me,this.prevI)}
|
||
`),me=this.i;break;case k:Re!==void 0&&(this.text+=Me.slice(me));break e;default:c(lt)||(Qe=!0)}}Qe&&(!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(me,Me){var Re;const{prefix:Qe,local:lt}=this.qname(me),Et={name:me,prefix:Qe,local:lt,value:Me};if(this.attribList.push(Et),(Re=this.attributeHandler)===null||Re===void 0||Re.call(this,Et),Qe==="xmlns"){const Ot=Me.trim();this.currentXMLVersion==="1.0"&&Ot===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[lt]=Ot,pe(this,lt,Ot)}else if(me==="xmlns"){const Ot=Me.trim();this.topNS[""]=Ot,pe(this,"",Ot)}}pushAttribPlain(me,Me){var Re;const Qe={name:me,value:Me};this.attribList.push(Qe),(Re=this.attributeHandler)===null||Re===void 0||Re.call(this,Qe)}end(){var me,Me;this.sawRoot||this.fail("document must contain a root element.");const{tags:Re}=this;for(;Re.length>0;){const lt=Re.pop();this.fail(`unclosed tag: ${lt.name}`)}this.state!==O&&this.state!==L&&this.fail("unexpected end.");const{text:Qe}=this;return Qe.length!==0&&((me=this.textHandler)===null||me===void 0||me.call(this,Qe),this.text=""),this._closed=!0,(Me=this.endHandler)===null||Me===void 0||Me.call(this),this._init(),this}resolve(me){var Me,Re;let Qe=this.topNS[me];if(Qe!==void 0)return Qe;const{tags:lt}=this;for(let Et=lt.length-1;Et>=0;Et--)if(Qe=lt[Et].ns[me],Qe!==void 0)return Qe;return Qe=this.ns[me],Qe!==void 0?Qe:(Re=(Me=this.opt).resolvePrefix)===null||Re===void 0?void 0:Re.call(Me,me)}qname(me){const Me=me.indexOf(":");if(Me===-1)return{prefix:"",local:me};const Re=me.slice(Me+1),Qe=me.slice(0,Me);return(Qe===""||Re===""||Re.includes(":"))&&this.fail(`malformed name: ${me}.`),{prefix:Qe,local:Re}}processAttribsNS(){var me;const{attribList:Me}=this,Re=this.tag;{const{prefix:Et,local:Ot}=this.qname(Re.name);Re.prefix=Et,Re.local=Ot;const sr=Re.uri=(me=this.resolve(Et))!==null&&me!==void 0?me:"";Et!==""&&(Et==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),sr===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(Et)}.`),Re.uri=Et))}if(Me.length===0)return;const{attributes:Qe}=Re,lt=new Set;for(const Et of Me){const{name:Ot,prefix:sr,local:Wr}=Et;let Rr,br;sr===""?(Rr=Ot==="xmlns"?w:"",br=Ot):(Rr=this.resolve(sr),Rr===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(sr)}.`),Rr=sr),br=`{${Rr}}${Wr}`),lt.has(br)&&this.fail(`duplicate attribute: ${br}.`),lt.add(br),Et.uri=Rr,Qe[Ot]=Et}this.attribList=[]}processAttribsPlain(){const{attribList:me}=this,Me=this.tag.attributes;for(const{name:Re,value:Qe}of me)Me[Re]!==void 0&&this.fail(`duplicate attribute: ${Re}.`),Me[Re]=Qe;this.attribList=[]}openTag(){var me;this.processAttribs();const{tags:Me}=this,Re=this.tag;Re.isSelfClosing=!1,(me=this.openTagHandler)===null||me===void 0||me.call(this,Re),Me.push(Re),this.state=L,this.name=""}openSelfClosingTag(){var me,Me,Re;this.processAttribs();const{tags:Qe}=this,lt=this.tag;lt.isSelfClosing=!0,(me=this.openTagHandler)===null||me===void 0||me.call(this,lt),(Me=this.closeTagHandler)===null||Me===void 0||Me.call(this,lt),(this.tag=(Re=Qe[Qe.length-1])!==null&&Re!==void 0?Re:null)===null&&(this.closedRoot=!0),this.state=L,this.name=""}closeTag(){const{tags:me,name:Me}=this;if(this.state=L,this.name="",Me===""){this.fail("weird empty close tag."),this.text+="</>";return}const Re=this.closeTagHandler;let Qe=me.length;for(;Qe-- >0;){const lt=this.tag=me.pop();if(this.topNS=lt.ns,Re==null||Re(lt),lt.name===Me)break;this.fail("unexpected close tag.")}Qe===0?this.closedRoot=!0:Qe<0&&(this.fail(`unmatched closing tag: ${Me}.`),this.text+=`</${Me}>`)}parseEntity(me){if(me[0]!=="#"){const Re=this.ENTITIES[me];return Re!==void 0?Re:(this.fail(this.isName(me)?"undefined entity.":"disallowed character in entity name."),`&${me};`)}let Me=NaN;return me[1]==="x"&&/^#x[0-9a-f]+$/i.test(me)?Me=parseInt(me.slice(2),16):/^#[0-9]+$/.test(me)&&(Me=parseInt(me.slice(1),10)),this.isChar(Me)?String.fromCodePoint(Me):(this.fail("malformed character entity."),`&${me};`)}}i.SaxesParser=He},{"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,w=this._d|0,y=this._e|0,_=0;_<16;++_)d[_]=m.readInt32BE(_*4);for(;_<80;++_)d[_]=d[_-3]^d[_-8]^d[_-14]^d[_-16];for(var k=0;k<80;++k){var F=~~(k/20),O=l(v)+p(F,x,g,w)+y+d[k]+c[F]|0;y=w,w=g,g=u(x),x=v,v=O}this._a=v+this._a|0,this._b=x+this._b|0,this._c=g+this._c|0,this._d=w+this._d|0,this._e=y+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,w=this._c|0,y=this._d|0,_=this._e|0,k=0;k<16;++k)v[k]=d.readInt32BE(k*4);for(;k<80;++k)v[k]=l(v[k-3]^v[k-8]^v[k-14]^v[k-16]);for(var F=0;F<80;++F){var O=~~(F/20),N=u(x)+m(O,g,w,y)+_+v[F]+c[O]|0;_=y,y=w,w=p(g),g=x,x=N}this._a=x+this._a|0,this._b=g+this._b|0,this._c=w+this._c|0,this._d=y+this._d|0,this._e=_+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,w){return w^x&(g^w)}function u(x,g,w){return x&g|w&(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,w=this._a|0,y=this._b|0,_=this._c|0,k=this._d|0,F=this._e|0,O=this._f|0,N=this._g|0,U=this._h|0,z=0;z<16;++z)g[z]=x.readInt32BE(z*4);for(;z<64;++z)g[z]=v(g[z-2])+g[z-7]+d(g[z-15])+g[z-16]|0;for(var W=0;W<64;++W){var X=U+m(F)+l(F,O,N)+c[W]+g[W]|0,J=p(w)+u(w,y,_)|0;U=N,N=O,O=F,F=k+X|0,k=_,_=y,y=w,w=X+J|0}this._a=w+this._a|0,this._b=y+this._b|0,this._c=_+this._c|0,this._d=k+this._d|0,this._e=F+this._e|0,this._f=O+this._f|0,this._g=N+this._g|0,this._h=U+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(y,_,k){return k^y&(_^k)}function u(y,_,k){return y&_|k&(y|_)}function p(y,_){return(y>>>28|_<<4)^(_>>>2|y<<30)^(_>>>7|y<<25)}function m(y,_){return(y>>>14|_<<18)^(y>>>18|_<<14)^(_>>>9|y<<23)}function d(y,_){return(y>>>1|_<<31)^(y>>>8|_<<24)^y>>>7}function v(y,_){return(y>>>1|_<<31)^(y>>>8|_<<24)^(y>>>7|_<<25)}function x(y,_){return(y>>>19|_<<13)^(_>>>29|y<<3)^y>>>6}function g(y,_){return(y>>>19|_<<13)^(_>>>29|y<<3)^(y>>>6|_<<26)}function w(y,_){return y>>>0<_>>>0?1:0}f.prototype._update=function(y){for(var _=this._w,k=this._ah|0,F=this._bh|0,O=this._ch|0,N=this._dh|0,U=this._eh|0,z=this._fh|0,W=this._gh|0,X=this._hh|0,J=this._al|0,H=this._bl|0,I=this._cl|0,M=this._dl|0,E=this._el|0,A=this._fl|0,B=this._gl|0,L=this._hl|0,P=0;P<32;P+=2)_[P]=y.readInt32BE(P*4),_[P+1]=y.readInt32BE(P*4+4);for(;P<160;P+=2){var R=_[P-30],C=_[P-15*2+1],S=d(R,C),D=v(C,R);R=_[P-2*2],C=_[P-2*2+1];var V=x(R,C),te=g(C,R),oe=_[P-7*2],he=_[P-7*2+1],Ne=_[P-16*2],q=_[P-16*2+1],ne=D+he|0,Q=S+oe+w(ne,D)|0;ne=ne+te|0,Q=Q+V+w(ne,te)|0,ne=ne+q|0,Q=Q+Ne+w(ne,q)|0,_[P]=Q,_[P+1]=ne}for(var re=0;re<160;re+=2){Q=_[re],ne=_[re+1];var ve=u(k,F,O),Ce=u(J,H,I),ce=p(k,J),se=p(J,k),ee=m(U,E),G=m(E,U),Z=c[re],de=c[re+1],Ae=l(U,z,W),K=l(E,A,B),Te=L+G|0,Oe=X+ee+w(Te,L)|0;Te=Te+K|0,Oe=Oe+Ae+w(Te,K)|0,Te=Te+de|0,Oe=Oe+Z+w(Te,de)|0,Te=Te+ne|0,Oe=Oe+Q+w(Te,ne)|0;var ie=se+Ce|0,fe=ce+ve+w(ie,se)|0;X=W,L=B,W=z,B=A,z=U,A=E,E=M+Te|0,U=N+Oe+w(E,M)|0,N=O,M=I,O=F,I=H,F=k,H=J,J=Te+ie|0,k=Oe+fe+w(J,Te)|0}this._al=this._al+J|0,this._bl=this._bl+H|0,this._cl=this._cl+I|0,this._dl=this._dl+M|0,this._el=this._el+E|0,this._fl=this._fl+A|0,this._gl=this._gl+B|0,this._hl=this._hl+L|0,this._ah=this._ah+k+w(this._al,J)|0,this._bh=this._bh+F+w(this._bl,H)|0,this._ch=this._ch+O+w(this._cl,I)|0,this._dh=this._dh+N+w(this._dl,M)|0,this._eh=this._eh+U+w(this._el,E)|0,this._fh=this._fh+z+w(this._fl,A)|0,this._gh=this._gh+W+w(this._gl,B)|0,this._hh=this._hh+X+w(this._hl,L)|0},f.prototype._hash=function(){var y=h.allocUnsafe(64);function _(k,F,O){y.writeInt32BE(k,O),y.writeInt32BE(F,O+4)}return _(this._ah,this._al,0),_(this._bh,this._bl,8),_(this._ch,this._cl,16),_(this._dh,this._dl,24),_(this._eh,this._el,32),_(this._fh,this._fl,40),_(this._gh,this._gl,48),_(this._hh,this._hl,56),y},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=N;var c=e("isarray"),a;N.ReadableState=O,e("events").EventEmitter;var f=function(Q,re){return Q.listeners(re).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(Q){return u.from(Q)}function d(Q){return u.isBuffer(Q)||Q 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 w=e("./internal/streams/BufferList"),y=e("./internal/streams/destroy"),_;v.inherits(N,l);var k=["error","close","destroy","pause","resume"];function F(Q,re,ve){if(typeof Q.prependListener=="function")return Q.prependListener(re,ve);!Q._events||!Q._events[re]?Q.on(re,ve):c(Q._events[re])?Q._events[re].unshift(ve):Q._events[re]=[ve,Q._events[re]]}function O(Q,re){a=a||e("./_stream_duplex"),Q=Q||{};var ve=re instanceof a;this.objectMode=!!Q.objectMode,ve&&(this.objectMode=this.objectMode||!!Q.readableObjectMode);var Ce=Q.highWaterMark,ce=Q.readableHighWaterMark,se=this.objectMode?16:16*1024;Ce||Ce===0?this.highWaterMark=Ce:ve&&(ce||ce===0)?this.highWaterMark=ce:this.highWaterMark=se,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,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=Q.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Q.encoding&&(_||(_=e("string_decoder/").StringDecoder),this.decoder=new _(Q.encoding),this.encoding=Q.encoding)}function N(Q){if(a=a||e("./_stream_duplex"),!(this instanceof N))return new N(Q);this._readableState=new O(Q,this),this.readable=!0,Q&&(typeof Q.read=="function"&&(this._read=Q.read),typeof Q.destroy=="function"&&(this._destroy=Q.destroy)),l.call(this)}Object.defineProperty(N.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Q){this._readableState&&(this._readableState.destroyed=Q)}}),N.prototype.destroy=y.destroy,N.prototype._undestroy=y.undestroy,N.prototype._destroy=function(Q,re){this.push(null),re(Q)},N.prototype.push=function(Q,re){var ve=this._readableState,Ce;return ve.objectMode?Ce=!0:typeof Q=="string"&&(re=re||ve.defaultEncoding,re!==ve.encoding&&(Q=u.from(Q,re),re=""),Ce=!0),U(this,Q,re,!1,Ce)},N.prototype.unshift=function(Q){return U(this,Q,null,!0,!1)};function U(Q,re,ve,Ce,ce){var se=Q._readableState;if(re===null)se.reading=!1,M(Q,se);else{var ee;ce||(ee=W(se,re)),ee?Q.emit("error",ee):se.objectMode||re&&re.length>0?(typeof re!="string"&&!se.objectMode&&Object.getPrototypeOf(re)!==u.prototype&&(re=m(re)),Ce?se.endEmitted?Q.emit("error",new Error("stream.unshift() after end event")):z(Q,se,re,!0):se.ended?Q.emit("error",new Error("stream.push() after EOF")):(se.reading=!1,se.decoder&&!ve?(re=se.decoder.write(re),se.objectMode||re.length!==0?z(Q,se,re,!1):B(Q,se)):z(Q,se,re,!1))):Ce||(se.reading=!1)}return X(se)}function z(Q,re,ve,Ce){re.flowing&&re.length===0&&!re.sync?(Q.emit("data",ve),Q.read(0)):(re.length+=re.objectMode?1:ve.length,Ce?re.buffer.unshift(ve):re.buffer.push(ve),re.needReadable&&E(Q)),B(Q,re)}function W(Q,re){var ve;return!d(re)&&typeof re!="string"&&re!==void 0&&!Q.objectMode&&(ve=new TypeError("Invalid non-string/buffer chunk")),ve}function X(Q){return!Q.ended&&(Q.needReadable||Q.length<Q.highWaterMark||Q.length===0)}N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(Q){return _||(_=e("string_decoder/").StringDecoder),this._readableState.decoder=new _(Q),this._readableState.encoding=Q,this};var J=8388608;function H(Q){return Q>=J?Q=J:(Q--,Q|=Q>>>1,Q|=Q>>>2,Q|=Q>>>4,Q|=Q>>>8,Q|=Q>>>16,Q++),Q}function I(Q,re){return Q<=0||re.length===0&&re.ended?0:re.objectMode?1:Q!==Q?re.flowing&&re.length?re.buffer.head.data.length:re.length:(Q>re.highWaterMark&&(re.highWaterMark=H(Q)),Q<=re.length?Q:re.ended?re.length:(re.needReadable=!0,0))}N.prototype.read=function(Q){g("read",Q),Q=parseInt(Q,10);var re=this._readableState,ve=Q;if(Q!==0&&(re.emittedReadable=!1),Q===0&&re.needReadable&&(re.length>=re.highWaterMark||re.ended))return g("read: emitReadable",re.length,re.ended),re.length===0&&re.ended?Ne(this):E(this),null;if(Q=I(Q,re),Q===0&&re.ended)return re.length===0&&Ne(this),null;var Ce=re.needReadable;g("need readable",Ce),(re.length===0||re.length-Q<re.highWaterMark)&&(Ce=!0,g("length less than watermark",Ce)),re.ended||re.reading?(Ce=!1,g("reading or ended",Ce)):Ce&&(g("do read"),re.reading=!0,re.sync=!0,re.length===0&&(re.needReadable=!0),this._read(re.highWaterMark),re.sync=!1,re.reading||(Q=I(ve,re)));var ce;return Q>0?ce=V(Q,re):ce=null,ce===null?(re.needReadable=!0,Q=0):re.length-=Q,re.length===0&&(re.ended||(re.needReadable=!0),ve!==Q&&re.ended&&Ne(this)),ce!==null&&this.emit("data",ce),ce};function M(Q,re){if(!re.ended){if(re.decoder){var ve=re.decoder.end();ve&&ve.length&&(re.buffer.push(ve),re.length+=re.objectMode?1:ve.length)}re.ended=!0,E(Q)}}function E(Q){var re=Q._readableState;re.needReadable=!1,re.emittedReadable||(g("emitReadable",re.flowing),re.emittedReadable=!0,re.sync?h.nextTick(A,Q):A(Q))}function A(Q){g("emit readable"),Q.emit("readable"),D(Q)}function B(Q,re){re.readingMore||(re.readingMore=!0,h.nextTick(L,Q,re))}function L(Q,re){for(var ve=re.length;!re.reading&&!re.flowing&&!re.ended&&re.length<re.highWaterMark&&(g("maybeReadMore read 0"),Q.read(0),ve!==re.length);)ve=re.length;re.readingMore=!1}N.prototype._read=function(Q){this.emit("error",new Error("_read() is not implemented"))},N.prototype.pipe=function(Q,re){var ve=this,Ce=this._readableState;switch(Ce.pipesCount){case 0:Ce.pipes=Q;break;case 1:Ce.pipes=[Ce.pipes,Q];break;default:Ce.pipes.push(Q);break}Ce.pipesCount+=1,g("pipe count=%d opts=%j",Ce.pipesCount,re);var ce=(!re||re.end!==!1)&&Q!==s.stdout&&Q!==s.stderr,se=ce?G:we;Ce.endEmitted?h.nextTick(se):ve.once("end",se),Q.on("unpipe",ee);function ee(Fe,Ue){g("onunpipe"),Fe===ve&&Ue&&Ue.hasUnpiped===!1&&(Ue.hasUnpiped=!0,Ae())}function G(){g("onend"),Q.end()}var Z=P(ve);Q.on("drain",Z);var de=!1;function Ae(){g("cleanup"),Q.removeListener("close",ie),Q.removeListener("finish",fe),Q.removeListener("drain",Z),Q.removeListener("error",Oe),Q.removeListener("unpipe",ee),ve.removeListener("end",G),ve.removeListener("end",we),ve.removeListener("data",Te),de=!0,Ce.awaitDrain&&(!Q._writableState||Q._writableState.needDrain)&&Z()}var K=!1;ve.on("data",Te);function Te(Fe){g("ondata"),K=!1;var Ue=Q.write(Fe);Ue===!1&&!K&&((Ce.pipesCount===1&&Ce.pipes===Q||Ce.pipesCount>1&&ne(Ce.pipes,Q)!==-1)&&!de&&(g("false write response, pause",Ce.awaitDrain),Ce.awaitDrain++,K=!0),ve.pause())}function Oe(Fe){g("onerror",Fe),we(),Q.removeListener("error",Oe),f(Q,"error")===0&&Q.emit("error",Fe)}F(Q,"error",Oe);function ie(){Q.removeListener("finish",fe),we()}Q.once("close",ie);function fe(){g("onfinish"),Q.removeListener("close",ie),we()}Q.once("finish",fe);function we(){g("unpipe"),ve.unpipe(Q)}return Q.emit("pipe",ve),Ce.flowing||(g("pipe resume"),ve.resume()),Q};function P(Q){return function(){var re=Q._readableState;g("pipeOnDrain",re.awaitDrain),re.awaitDrain&&re.awaitDrain--,re.awaitDrain===0&&f(Q,"data")&&(re.flowing=!0,D(Q))}}N.prototype.unpipe=function(Q){var re=this._readableState,ve={hasUnpiped:!1};if(re.pipesCount===0)return this;if(re.pipesCount===1)return Q&&Q!==re.pipes?this:(Q||(Q=re.pipes),re.pipes=null,re.pipesCount=0,re.flowing=!1,Q&&Q.emit("unpipe",this,ve),this);if(!Q){var Ce=re.pipes,ce=re.pipesCount;re.pipes=null,re.pipesCount=0,re.flowing=!1;for(var se=0;se<ce;se++)Ce[se].emit("unpipe",this,{hasUnpiped:!1});return this}var ee=ne(re.pipes,Q);return ee===-1?this:(re.pipes.splice(ee,1),re.pipesCount-=1,re.pipesCount===1&&(re.pipes=re.pipes[0]),Q.emit("unpipe",this,ve),this)},N.prototype.on=function(Q,re){var ve=l.prototype.on.call(this,Q,re);if(Q==="data")this._readableState.flowing!==!1&&this.resume();else if(Q==="readable"){var Ce=this._readableState;!Ce.endEmitted&&!Ce.readableListening&&(Ce.readableListening=Ce.needReadable=!0,Ce.emittedReadable=!1,Ce.reading?Ce.length&&E(this):h.nextTick(R,this))}return ve},N.prototype.addListener=N.prototype.on;function R(Q){g("readable nexttick read 0"),Q.read(0)}N.prototype.resume=function(){var Q=this._readableState;return Q.flowing||(g("resume"),Q.flowing=!0,C(this,Q)),this};function C(Q,re){re.resumeScheduled||(re.resumeScheduled=!0,h.nextTick(S,Q,re))}function S(Q,re){re.reading||(g("resume read 0"),Q.read(0)),re.resumeScheduled=!1,re.awaitDrain=0,Q.emit("resume"),D(Q),re.flowing&&!re.reading&&Q.read(0)}N.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 D(Q){var re=Q._readableState;for(g("flow",re.flowing);re.flowing&&Q.read()!==null;);}N.prototype.wrap=function(Q){var re=this,ve=this._readableState,Ce=!1;Q.on("end",function(){if(g("wrapped end"),ve.decoder&&!ve.ended){var ee=ve.decoder.end();ee&&ee.length&&re.push(ee)}re.push(null)}),Q.on("data",function(ee){if(g("wrapped data"),ve.decoder&&(ee=ve.decoder.write(ee)),!(ve.objectMode&&ee==null)&&!(!ve.objectMode&&(!ee||!ee.length))){var G=re.push(ee);G||(Ce=!0,Q.pause())}});for(var ce in Q)this[ce]===void 0&&typeof Q[ce]=="function"&&(this[ce]=function(ee){return function(){return Q[ee].apply(Q,arguments)}}(ce));for(var se=0;se<k.length;se++)Q.on(k[se],this.emit.bind(this,k[se]));return this._read=function(ee){g("wrapped _read",ee),Ce&&(Ce=!1,Q.resume())},this},Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),N._fromList=V;function V(Q,re){if(re.length===0)return null;var ve;return re.objectMode?ve=re.buffer.shift():!Q||Q>=re.length?(re.decoder?ve=re.buffer.join(""):re.buffer.length===1?ve=re.buffer.head.data:ve=re.buffer.concat(re.length),re.buffer.clear()):ve=te(Q,re.buffer,re.decoder),ve}function te(Q,re,ve){var Ce;return Q<re.head.data.length?(Ce=re.head.data.slice(0,Q),re.head.data=re.head.data.slice(Q)):Q===re.head.data.length?Ce=re.shift():Ce=ve?oe(Q,re):he(Q,re),Ce}function oe(Q,re){var ve=re.head,Ce=1,ce=ve.data;for(Q-=ce.length;ve=ve.next;){var se=ve.data,ee=Q>se.length?se.length:Q;if(ee===se.length?ce+=se:ce+=se.slice(0,Q),Q-=ee,Q===0){ee===se.length?(++Ce,ve.next?re.head=ve.next:re.head=re.tail=null):(re.head=ve,ve.data=se.slice(ee));break}++Ce}return re.length-=Ce,ce}function he(Q,re){var ve=u.allocUnsafe(Q),Ce=re.head,ce=1;for(Ce.data.copy(ve),Q-=Ce.data.length;Ce=Ce.next;){var se=Ce.data,ee=Q>se.length?se.length:Q;if(se.copy(ve,ve.length-Q,0,ee),Q-=ee,Q===0){ee===se.length?(++ce,Ce.next?re.head=Ce.next:re.head=re.tail=null):(re.head=Ce,Ce.data=se.slice(ee));break}++ce}return re.length-=ce,ve}function Ne(Q){var re=Q._readableState;if(re.length>0)throw new Error('"endReadable()" called on non-empty stream');re.endEmitted||(re.ended=!0,h.nextTick(q,re,Q))}function q(Q,re){!Q.endEmitted&&Q.length===0&&(Q.endEmitted=!0,re.readable=!1,re.emit("end"))}function ne(Q,re){for(var ve=0,Ce=Q.length;ve<Ce;ve++)if(Q[ve]===re)return ve;return-1}}).call(this)}).call(this,e("_process"),typeof Qt<"u"?Qt: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=F;function a(S){var D=this;this.next=null,this.entry=null,this.finish=function(){C(D,S)}}var f=!s.browser&&["v0.10","v0.9."].indexOf(s.version.slice(0,5))>-1?h:c.nextTick,l;F.WritableState=_;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(S){return d.from(S)}function g(S){return d.isBuffer(S)||S instanceof v}var w=e("./internal/streams/destroy");u.inherits(F,m);function y(){}function _(S,D){l=l||e("./_stream_duplex"),S=S||{};var V=D instanceof l;this.objectMode=!!S.objectMode,V&&(this.objectMode=this.objectMode||!!S.writableObjectMode);var te=S.highWaterMark,oe=S.writableHighWaterMark,he=this.objectMode?16:16*1024;te||te===0?this.highWaterMark=te:V&&(oe||oe===0)?this.highWaterMark=oe:this.highWaterMark=he,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 Ne=S.decodeStrings===!1;this.decodeStrings=!Ne,this.defaultEncoding=S.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(q){H(D,q)},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)}_.prototype.getBuffer=function(){for(var D=this.bufferedRequest,V=[];D;)V.push(D),D=D.next;return V},function(){try{Object.defineProperty(_.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var k;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(k=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(S){return k.call(this,S)?!0:this!==F?!1:S&&S._writableState instanceof _}})):k=function(S){return S instanceof this};function F(S){if(l=l||e("./_stream_duplex"),!k.call(F,this)&&!(this instanceof l))return new F(S);this._writableState=new _(S,this),this.writable=!0,S&&(typeof S.write=="function"&&(this._write=S.write),typeof S.writev=="function"&&(this._writev=S.writev),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.final=="function"&&(this._final=S.final)),m.call(this)}F.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function O(S,D){var V=new Error("write after end");S.emit("error",V),c.nextTick(D,V)}function N(S,D,V,te){var oe=!0,he=!1;return V===null?he=new TypeError("May not write null values to stream"):typeof V!="string"&&V!==void 0&&!D.objectMode&&(he=new TypeError("Invalid non-string/buffer chunk")),he&&(S.emit("error",he),c.nextTick(te,he),oe=!1),oe}F.prototype.write=function(S,D,V){var te=this._writableState,oe=!1,he=!te.objectMode&&g(S);return he&&!d.isBuffer(S)&&(S=x(S)),typeof D=="function"&&(V=D,D=null),he?D="buffer":D||(D=te.defaultEncoding),typeof V!="function"&&(V=y),te.ended?O(this,V):(he||N(this,te,S,V))&&(te.pendingcb++,oe=z(this,te,he,S,D,V)),oe},F.prototype.cork=function(){var S=this._writableState;S.corked++},F.prototype.uncork=function(){var S=this._writableState;S.corked&&(S.corked--,!S.writing&&!S.corked&&!S.bufferProcessing&&S.bufferedRequest&&E(this,S))},F.prototype.setDefaultEncoding=function(D){if(typeof D=="string"&&(D=D.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((D+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+D);return this._writableState.defaultEncoding=D,this};function U(S,D,V){return!S.objectMode&&S.decodeStrings!==!1&&typeof D=="string"&&(D=d.from(D,V)),D}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function z(S,D,V,te,oe,he){if(!V){var Ne=U(D,te,oe);te!==Ne&&(V=!0,oe="buffer",te=Ne)}var q=D.objectMode?1:te.length;D.length+=q;var ne=D.length<D.highWaterMark;if(ne||(D.needDrain=!0),D.writing||D.corked){var Q=D.lastBufferedRequest;D.lastBufferedRequest={chunk:te,encoding:oe,isBuf:V,callback:he,next:null},Q?Q.next=D.lastBufferedRequest:D.bufferedRequest=D.lastBufferedRequest,D.bufferedRequestCount+=1}else W(S,D,!1,q,te,oe,he);return ne}function W(S,D,V,te,oe,he,Ne){D.writelen=te,D.writecb=Ne,D.writing=!0,D.sync=!0,V?S._writev(oe,D.onwrite):S._write(oe,he,D.onwrite),D.sync=!1}function X(S,D,V,te,oe){--D.pendingcb,V?(c.nextTick(oe,te),c.nextTick(P,S,D),S._writableState.errorEmitted=!0,S.emit("error",te)):(oe(te),S._writableState.errorEmitted=!0,S.emit("error",te),P(S,D))}function J(S){S.writing=!1,S.writecb=null,S.length-=S.writelen,S.writelen=0}function H(S,D){var V=S._writableState,te=V.sync,oe=V.writecb;if(J(V),D)X(S,V,te,D,oe);else{var he=A(V);!he&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&E(S,V),te?f(I,S,V,he,oe):I(S,V,he,oe)}}function I(S,D,V,te){V||M(S,D),D.pendingcb--,te(),P(S,D)}function M(S,D){D.length===0&&D.needDrain&&(D.needDrain=!1,S.emit("drain"))}function E(S,D){D.bufferProcessing=!0;var V=D.bufferedRequest;if(S._writev&&V&&V.next){var te=D.bufferedRequestCount,oe=new Array(te),he=D.corkedRequestsFree;he.entry=V;for(var Ne=0,q=!0;V;)oe[Ne]=V,V.isBuf||(q=!1),V=V.next,Ne+=1;oe.allBuffers=q,W(S,D,!0,D.length,oe,"",he.finish),D.pendingcb++,D.lastBufferedRequest=null,he.next?(D.corkedRequestsFree=he.next,he.next=null):D.corkedRequestsFree=new a(D),D.bufferedRequestCount=0}else{for(;V;){var ne=V.chunk,Q=V.encoding,re=V.callback,ve=D.objectMode?1:ne.length;if(W(S,D,!1,ve,ne,Q,re),V=V.next,D.bufferedRequestCount--,D.writing)break}V===null&&(D.lastBufferedRequest=null)}D.bufferedRequest=V,D.bufferProcessing=!1}F.prototype._write=function(S,D,V){V(new Error("_write() is not implemented"))},F.prototype._writev=null,F.prototype.end=function(S,D,V){var te=this._writableState;typeof S=="function"?(V=S,S=null,D=null):typeof D=="function"&&(V=D,D=null),S!=null&&this.write(S,D),te.corked&&(te.corked=1,this.uncork()),te.ending||R(this,te,V)};function A(S){return S.ending&&S.length===0&&S.bufferedRequest===null&&!S.finished&&!S.writing}function B(S,D){S._final(function(V){D.pendingcb--,V&&S.emit("error",V),D.prefinished=!0,S.emit("prefinish"),P(S,D)})}function L(S,D){!D.prefinished&&!D.finalCalled&&(typeof S._final=="function"?(D.pendingcb++,D.finalCalled=!0,c.nextTick(B,S,D)):(D.prefinished=!0,S.emit("prefinish")))}function P(S,D){var V=A(D);return V&&(L(S,D),D.pendingcb===0&&(D.finished=!0,S.emit("finish"))),V}function R(S,D,V){D.ending=!0,P(S,D),V&&(D.finished?c.nextTick(V):S.once("finish",V)),D.ended=!0,S.writable=!1}function C(S,D,V){var te=S.entry;for(S.entry=null;te;){var oe=te.callback;D.pendingcb--,oe(V),te=te.next}D.corkedRequestsFree.next=S}Object.defineProperty(F.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(S){this._writableState&&(this._writableState.destroyed=S)}}),F.prototype.destroy=w.destroy,F.prototype._undestroy=w.undestroy,F.prototype._destroy=function(S,D){this.end(),D(S)}}).call(this)}).call(this,e("_process"),typeof Qt<"u"?Qt: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 Qt<"u"?Qt: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(R){if(!N(R)){for(var C=[],S=0;S<arguments.length;S++)C.push(f(arguments[S]));return C.join(" ")}for(var S=1,D=arguments,V=D.length,te=String(R).replace(h,function(he){if(he==="%%")return"%";if(S>=V)return he;switch(he){case"%s":return String(D[S++]);case"%d":return Number(D[S++]);case"%j":try{return JSON.stringify(D[S++])}catch{return"[Circular]"}default:return he}}),oe=D[S];S<V;oe=D[++S])k(oe)||!X(oe)?te+=" "+oe:te+=" "+f(oe);return te},i.deprecate=function(R,C){if(z(o.process))return function(){return i.deprecate(R,C).apply(this,arguments)};if(s.noDeprecation===!0)return R;var S=!1;function D(){if(!S){if(s.throwDeprecation)throw new Error(C);s.traceDeprecation?console.trace(C):console.error(C),S=!0}return R.apply(this,arguments)}return D};var c={},a;i.debuglog=function(R){if(z(a)&&(a={}.NODE_DEBUG||""),R=R.toUpperCase(),!c[R])if(new RegExp("\\b"+R+"\\b","i").test(a)){var C=s.pid;c[R]=function(){var S=i.format.apply(i,arguments);console.error("%s %d: %s",R,C,S)}}else c[R]=function(){};return c[R]};function f(R,C){var S={seen:[],stylize:u};return arguments.length>=3&&(S.depth=arguments[2]),arguments.length>=4&&(S.colors=arguments[3]),_(C)?S.showHidden=C:C&&i._extend(S,C),z(S.showHidden)&&(S.showHidden=!1),z(S.depth)&&(S.depth=2),z(S.colors)&&(S.colors=!1),z(S.customInspect)&&(S.customInspect=!0),S.colors&&(S.stylize=l),m(S,R,S.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(R,C){var S=f.styles[C];return S?"\x1B["+f.colors[S][0]+"m"+R+"\x1B["+f.colors[S][1]+"m":R}function u(R,C){return R}function p(R){var C={};return R.forEach(function(S,D){C[S]=!0}),C}function m(R,C,S){if(R.customInspect&&C&&I(C.inspect)&&C.inspect!==i.inspect&&!(C.constructor&&C.constructor.prototype===C)){var D=C.inspect(S,R);return N(D)||(D=m(R,D,S)),D}var V=d(R,C);if(V)return V;var te=Object.keys(C),oe=p(te);if(R.showHidden&&(te=Object.getOwnPropertyNames(C)),H(C)&&(te.indexOf("message")>=0||te.indexOf("description")>=0))return v(C);if(te.length===0){if(I(C)){var he=C.name?": "+C.name:"";return R.stylize("[Function"+he+"]","special")}if(W(C))return R.stylize(RegExp.prototype.toString.call(C),"regexp");if(J(C))return R.stylize(Date.prototype.toString.call(C),"date");if(H(C))return v(C)}var Ne="",q=!1,ne=["{","}"];if(y(C)&&(q=!0,ne=["[","]"]),I(C)){var Q=C.name?": "+C.name:"";Ne=" [Function"+Q+"]"}if(W(C)&&(Ne=" "+RegExp.prototype.toString.call(C)),J(C)&&(Ne=" "+Date.prototype.toUTCString.call(C)),H(C)&&(Ne=" "+v(C)),te.length===0&&(!q||C.length==0))return ne[0]+Ne+ne[1];if(S<0)return W(C)?R.stylize(RegExp.prototype.toString.call(C),"regexp"):R.stylize("[Object]","special");R.seen.push(C);var re;return q?re=x(R,C,S,oe,te):re=te.map(function(ve){return g(R,C,S,oe,ve,q)}),R.seen.pop(),w(re,Ne,ne)}function d(R,C){if(z(C))return R.stylize("undefined","undefined");if(N(C)){var S="'"+JSON.stringify(C).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return R.stylize(S,"string")}if(O(C))return R.stylize(""+C,"number");if(_(C))return R.stylize(""+C,"boolean");if(k(C))return R.stylize("null","null")}function v(R){return"["+Error.prototype.toString.call(R)+"]"}function x(R,C,S,D,V){for(var te=[],oe=0,he=C.length;oe<he;++oe)P(C,String(oe))?te.push(g(R,C,S,D,String(oe),!0)):te.push("");return V.forEach(function(Ne){Ne.match(/^\d+$/)||te.push(g(R,C,S,D,Ne,!0))}),te}function g(R,C,S,D,V,te){var oe,he,Ne;if(Ne=Object.getOwnPropertyDescriptor(C,V)||{value:C[V]},Ne.get?Ne.set?he=R.stylize("[Getter/Setter]","special"):he=R.stylize("[Getter]","special"):Ne.set&&(he=R.stylize("[Setter]","special")),P(D,V)||(oe="["+V+"]"),he||(R.seen.indexOf(Ne.value)<0?(k(S)?he=m(R,Ne.value,null):he=m(R,Ne.value,S-1),he.indexOf(`
|
||
`)>-1&&(te?he=he.split(`
|
||
`).map(function(q){return" "+q}).join(`
|
||
`).substr(2):he=`
|
||
`+he.split(`
|
||
`).map(function(q){return" "+q}).join(`
|
||
`))):he=R.stylize("[Circular]","special")),z(oe)){if(te&&V.match(/^\d+$/))return he;oe=JSON.stringify(""+V),oe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(oe=oe.substr(1,oe.length-2),oe=R.stylize(oe,"name")):(oe=oe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),oe=R.stylize(oe,"string"))}return oe+": "+he}function w(R,C,S){var D=R.reduce(function(V,te){return te.indexOf(`
|
||
`)>=0,V+te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return D>60?S[0]+(C===""?"":C+`
|
||
`)+" "+R.join(`,
|
||
`)+" "+S[1]:S[0]+C+" "+R.join(", ")+" "+S[1]}function y(R){return Array.isArray(R)}i.isArray=y;function _(R){return typeof R=="boolean"}i.isBoolean=_;function k(R){return R===null}i.isNull=k;function F(R){return R==null}i.isNullOrUndefined=F;function O(R){return typeof R=="number"}i.isNumber=O;function N(R){return typeof R=="string"}i.isString=N;function U(R){return typeof R=="symbol"}i.isSymbol=U;function z(R){return R===void 0}i.isUndefined=z;function W(R){return X(R)&&E(R)==="[object RegExp]"}i.isRegExp=W;function X(R){return typeof R=="object"&&R!==null}i.isObject=X;function J(R){return X(R)&&E(R)==="[object Date]"}i.isDate=J;function H(R){return X(R)&&(E(R)==="[object Error]"||R instanceof Error)}i.isError=H;function I(R){return typeof R=="function"}i.isFunction=I;function M(R){return R===null||typeof R=="boolean"||typeof R=="number"||typeof R=="string"||typeof R=="symbol"||typeof R>"u"}i.isPrimitive=M,i.isBuffer=e("./support/isBuffer");function E(R){return Object.prototype.toString.call(R)}function A(R){return R<10?"0"+R.toString(10):R.toString(10)}var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var R=new Date,C=[A(R.getHours()),A(R.getMinutes()),A(R.getSeconds())].join(":");return[R.getDate(),B[R.getMonth()],C].join(" ")}i.log=function(){console.log("%s - %s",L(),i.format.apply(i,arguments))},i.inherits=e("inherits"),i._extend=function(R,C){if(!C||!X(C))return R;for(var S=Object.keys(C),D=S.length;D--;)R[S[D]]=C[S[D]];return R};function P(R,C){return Object.prototype.hasOwnProperty.call(R,C)}}).call(this)}).call(this,e("_process"),typeof Qt<"u"?Qt: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 w=unescape(encodeURIComponent(g));g=new Uint8Array(w.length);for(let y=0;y<w.length;++y)g[y]=w.charCodeAt(y)}return o(c(a(g),g.length*8))}function o(g){const w=[],y=g.length*32,_="0123456789abcdef";for(let k=0;k<y;k+=8){const F=g[k>>5]>>>k%32&255,O=parseInt(_.charAt(F>>>4&15)+_.charAt(F&15),16);w.push(O)}return w}function h(g){return(g+64>>>9<<4)+14+1}function c(g,w){g[w>>5]|=128<<w%32,g[h(w)-1]=w;let y=1732584193,_=-271733879,k=-1732584194,F=271733878;for(let O=0;O<g.length;O+=16){const N=y,U=_,z=k,W=F;y=p(y,_,k,F,g[O],7,-680876936),F=p(F,y,_,k,g[O+1],12,-389564586),k=p(k,F,y,_,g[O+2],17,606105819),_=p(_,k,F,y,g[O+3],22,-1044525330),y=p(y,_,k,F,g[O+4],7,-176418897),F=p(F,y,_,k,g[O+5],12,1200080426),k=p(k,F,y,_,g[O+6],17,-1473231341),_=p(_,k,F,y,g[O+7],22,-45705983),y=p(y,_,k,F,g[O+8],7,1770035416),F=p(F,y,_,k,g[O+9],12,-1958414417),k=p(k,F,y,_,g[O+10],17,-42063),_=p(_,k,F,y,g[O+11],22,-1990404162),y=p(y,_,k,F,g[O+12],7,1804603682),F=p(F,y,_,k,g[O+13],12,-40341101),k=p(k,F,y,_,g[O+14],17,-1502002290),_=p(_,k,F,y,g[O+15],22,1236535329),y=m(y,_,k,F,g[O+1],5,-165796510),F=m(F,y,_,k,g[O+6],9,-1069501632),k=m(k,F,y,_,g[O+11],14,643717713),_=m(_,k,F,y,g[O],20,-373897302),y=m(y,_,k,F,g[O+5],5,-701558691),F=m(F,y,_,k,g[O+10],9,38016083),k=m(k,F,y,_,g[O+15],14,-660478335),_=m(_,k,F,y,g[O+4],20,-405537848),y=m(y,_,k,F,g[O+9],5,568446438),F=m(F,y,_,k,g[O+14],9,-1019803690),k=m(k,F,y,_,g[O+3],14,-187363961),_=m(_,k,F,y,g[O+8],20,1163531501),y=m(y,_,k,F,g[O+13],5,-1444681467),F=m(F,y,_,k,g[O+2],9,-51403784),k=m(k,F,y,_,g[O+7],14,1735328473),_=m(_,k,F,y,g[O+12],20,-1926607734),y=d(y,_,k,F,g[O+5],4,-378558),F=d(F,y,_,k,g[O+8],11,-2022574463),k=d(k,F,y,_,g[O+11],16,1839030562),_=d(_,k,F,y,g[O+14],23,-35309556),y=d(y,_,k,F,g[O+1],4,-1530992060),F=d(F,y,_,k,g[O+4],11,1272893353),k=d(k,F,y,_,g[O+7],16,-155497632),_=d(_,k,F,y,g[O+10],23,-1094730640),y=d(y,_,k,F,g[O+13],4,681279174),F=d(F,y,_,k,g[O],11,-358537222),k=d(k,F,y,_,g[O+3],16,-722521979),_=d(_,k,F,y,g[O+6],23,76029189),y=d(y,_,k,F,g[O+9],4,-640364487),F=d(F,y,_,k,g[O+12],11,-421815835),k=d(k,F,y,_,g[O+15],16,530742520),_=d(_,k,F,y,g[O+2],23,-995338651),y=v(y,_,k,F,g[O],6,-198630844),F=v(F,y,_,k,g[O+7],10,1126891415),k=v(k,F,y,_,g[O+14],15,-1416354905),_=v(_,k,F,y,g[O+5],21,-57434055),y=v(y,_,k,F,g[O+12],6,1700485571),F=v(F,y,_,k,g[O+3],10,-1894986606),k=v(k,F,y,_,g[O+10],15,-1051523),_=v(_,k,F,y,g[O+1],21,-2054922799),y=v(y,_,k,F,g[O+8],6,1873313359),F=v(F,y,_,k,g[O+15],10,-30611744),k=v(k,F,y,_,g[O+6],15,-1560198380),_=v(_,k,F,y,g[O+13],21,1309151649),y=v(y,_,k,F,g[O+4],6,-145523070),F=v(F,y,_,k,g[O+11],10,-1120210379),k=v(k,F,y,_,g[O+2],15,718787259),_=v(_,k,F,y,g[O+9],21,-343485551),y=f(y,N),_=f(_,U),k=f(k,z),F=f(F,W)}return[y,_,k,F]}function a(g){if(g.length===0)return[];const w=g.length*8,y=new Uint32Array(h(w));for(let _=0;_<w;_+=8)y[_>>5]|=(g[_/8]&255)<<_%32;return y}function f(g,w){const y=(g&65535)+(w&65535);return(g>>16)+(w>>16)+(y>>16)<<16|y&65535}function l(g,w){return g<<w|g>>>32-w}function u(g,w,y,_,k,F){return f(l(f(f(w,g),f(_,F)),k),y)}function p(g,w,y,_,k,F,O){return u(w&y|~w&_,g,w,k,F,O)}function m(g,w,y,_,k,F,O){return u(w&_|y&~_,g,w,k,F,O)}function d(g,w,y,_,k,F,O){return u(w^y^_,g,w,k,F,O)}function v(g,w,y,_,k,F,O){return u(y^(w|~_),g,w,k,F,O)}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 k=0;k<16;++k)v[k]=m[d][k];for(let k=16;k<80;++k)v[k]=o(v[k-3]^v[k-8]^v[k-14]^v[k-16],1);let x=l[0],g=l[1],w=l[2],y=l[3],_=l[4];for(let k=0;k<80;++k){const F=Math.floor(k/20),O=o(x,5)+s(F,g,w,y)+_+f[F]+v[k]>>>0;_=y,y=w,w=o(g,30)>>>0,g=x,x=O}l[0]=l[0]+x>>>0,l[1]=l[1]+g>>>0,l[2]=l[2]+w>>>0,l[3]=l[3]+y>>>0,l[4]=l[4]+_>>>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 w=m.node||c,y=m.clockseq!==void 0?m.clockseq:a;if(w==null||y==null){const U=m.random||(m.rng||s.default)();w==null&&(w=c=[U[0]|1,U[1],U[2],U[3],U[4],U[5]]),y==null&&(y=a=(U[6]<<8|U[7])&16383)}let _=m.msecs!==void 0?m.msecs:Date.now(),k=m.nsecs!==void 0?m.nsecs:l+1;const F=_-f+(k-l)/1e4;if(F<0&&m.clockseq===void 0&&(y=y+1&16383),(F<0||_>f)&&m.nsecs===void 0&&(k=0),k>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=_,l=k,a=y,_+=122192928e5;const O=((_&268435455)*1e4+k)%4294967296;g[x++]=O>>>24&255,g[x++]=O>>>16&255,g[x++]=O>>>8&255,g[x++]=O&255;const N=_/4294967296*1e4&268435455;g[x++]=N>>>8&255,g[x++]=N&255,g[x++]=N>>>24&15|16,g[x++]=N>>>16&255,g[x++]=y>>>8|128,g[x++]=y&255;for(let U=0;U<6;++U)g[x+U]=w[U];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,w){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 y=new Uint8Array(16+v.length);if(y.set(x),y.set(v,x.length),y=m(y),y[6]=y[6]&15|p,y[8]=y[8]&63|128,g){w=w||0;for(let _=0;_<16;++_)g[w+_]=y[_];return g}return(0,s.default)(y)}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)})})(wm);var M6=wm.exports;function uc(t){"@babel/helpers - typeof";return uc=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},uc(t)}var I6=/^\s+/,O6=/\s+$/;function Rt(t,r){if(t=t||"",r=r||{},t instanceof Rt)return t;if(!(this instanceof Rt))return new Rt(t,r);var e=D6(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}Rt.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=ym(r),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var r=Hp(this._r,this._g,this._b);return{h:r.h*360,s:r.s,v:r.v,a:this._a}},toHsvString:function(){var r=Hp(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=jp(this._r,this._g,this._b);return{h:r.h*360,s:r.s,l:r.l,a:this._a}},toHslString:function(){var r=jp(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 Wp(this._r,this._g,this._b,r)},toHexString:function(r){return"#"+this.toHex(r)},toHex8:function(r){return L6(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(Ur(this._r,255)*100)+"%",g:Math.round(Ur(this._g,255)*100)+"%",b:Math.round(Ur(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ur(this._r,255)*100)+"%, "+Math.round(Ur(this._g,255)*100)+"%, "+Math.round(Ur(this._b,255)*100)+"%)":"rgba("+Math.round(Ur(this._r,255)*100)+"%, "+Math.round(Ur(this._g,255)*100)+"%, "+Math.round(Ur(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Z6[Wp(this._r,this._g,this._b,!0)]||!1},toFilter:function(r){var e="#"+$p(this._r,this._g,this._b,this._a),n=e,i=this._gradientType?"GradientType = 1, ":"";if(r){var s=Rt(r);n="#"+$p(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 Rt(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(W6,arguments)},brighten:function(){return this._applyModification($6,arguments)},darken:function(){return this._applyModification(z6,arguments)},desaturate:function(){return this._applyModification(U6,arguments)},saturate:function(){return this._applyModification(j6,arguments)},greyscale:function(){return this._applyModification(H6,arguments)},spin:function(){return this._applyModification(X6,arguments)},_applyCombination:function(r,e){return r.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(K6,arguments)},complement:function(){return this._applyCombination(V6,arguments)},monochromatic:function(){return this._applyCombination(Y6,arguments)},splitcomplement:function(){return this._applyCombination(G6,arguments)},triad:function(){return this._applyCombination(zp,[3])},tetrad:function(){return this._applyCombination(zp,[4])}};Rt.fromRatio=function(t,r){if(uc(t)=="object"){var e={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?e[n]=t[n]:e[n]=vf(t[n]));t=e}return Rt(t,r)};function D6(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=e8(t)),uc(t)=="object"&&(Ms(t.r)&&Ms(t.g)&&Ms(t.b)?(r=N6(t.r,t.g,t.b),o=!0,h=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Ms(t.h)&&Ms(t.s)&&Ms(t.v)?(n=vf(t.s),i=vf(t.v),r=B6(t.h,n,i),o=!0,h="hsv"):Ms(t.h)&&Ms(t.s)&&Ms(t.l)&&(n=vf(t.s),s=vf(t.l),r=P6(t.h,n,s),o=!0,h="hsl"),t.hasOwnProperty("a")&&(e=t.a)),e=ym(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 N6(t,r,e){return{r:Ur(t,255)*255,g:Ur(r,255)*255,b:Ur(e,255)*255}}function jp(t,r,e){t=Ur(t,255),r=Ur(r,255),e=Ur(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 P6(t,r,e){var n,i,s;t=Ur(t,360),r=Ur(r,100),e=Ur(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 Hp(t,r,e){t=Ur(t,255),r=Ur(r,255),e=Ur(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 B6(t,r,e){t=Ur(t,360)*6,r=Ur(r,100),e=Ur(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 Wp(t,r,e,n){var i=[qi(Math.round(t).toString(16)),qi(Math.round(r).toString(16)),qi(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 L6(t,r,e,n,i){var s=[qi(Math.round(t).toString(16)),qi(Math.round(r).toString(16)),qi(Math.round(e).toString(16)),qi(_m(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 $p(t,r,e,n){var i=[qi(_m(n)),qi(Math.round(t).toString(16)),qi(Math.round(r).toString(16)),qi(Math.round(e).toString(16))];return i.join("")}Rt.equals=function(t,r){return!t||!r?!1:Rt(t).toRgbString()==Rt(r).toRgbString()};Rt.random=function(){return Rt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function U6(t,r){r=r===0?0:r||10;var e=Rt(t).toHsl();return e.s-=r/100,e.s=Cc(e.s),Rt(e)}function j6(t,r){r=r===0?0:r||10;var e=Rt(t).toHsl();return e.s+=r/100,e.s=Cc(e.s),Rt(e)}function H6(t){return Rt(t).desaturate(100)}function W6(t,r){r=r===0?0:r||10;var e=Rt(t).toHsl();return e.l+=r/100,e.l=Cc(e.l),Rt(e)}function $6(t,r){r=r===0?0:r||10;var e=Rt(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)))),Rt(e)}function z6(t,r){r=r===0?0:r||10;var e=Rt(t).toHsl();return e.l-=r/100,e.l=Cc(e.l),Rt(e)}function X6(t,r){var e=Rt(t).toHsl(),n=(e.h+r)%360;return e.h=n<0?360+n:n,Rt(e)}function V6(t){var r=Rt(t).toHsl();return r.h=(r.h+180)%360,Rt(r)}function zp(t,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var e=Rt(t).toHsl(),n=[Rt(t)],i=360/r,s=1;s<r;s++)n.push(Rt({h:(e.h+s*i)%360,s:e.s,l:e.l}));return n}function G6(t){var r=Rt(t).toHsl(),e=r.h;return[Rt(t),Rt({h:(e+72)%360,s:r.s,l:r.l}),Rt({h:(e+216)%360,s:r.s,l:r.l})]}function K6(t,r,e){r=r||6,e=e||30;var n=Rt(t).toHsl(),i=360/e,s=[Rt(t)];for(n.h=(n.h-(i*r>>1)+720)%360;--r;)n.h=(n.h+i)%360,s.push(Rt(n));return s}function Y6(t,r){r=r||6;for(var e=Rt(t).toHsv(),n=e.h,i=e.s,s=e.v,o=[],h=1/r;r--;)o.push(Rt({h:n,s:i,v:s})),s=(s+h)%1;return o}Rt.mix=function(t,r,e){e=e===0?0:e||50;var n=Rt(t).toRgb(),i=Rt(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 Rt(o)};Rt.readability=function(t,r){var e=Rt(t),n=Rt(r);return(Math.max(e.getLuminance(),n.getLuminance())+.05)/(Math.min(e.getLuminance(),n.getLuminance())+.05)};Rt.isReadable=function(t,r,e){var n=Rt.readability(t,r),i,s;switch(s=!1,i=t8(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};Rt.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=Rt.readability(t,r[a]),s>i&&(i=s,n=Rt(r[a]));return Rt.isReadable(t,n,{level:h,size:c})||!o?n:(e.includeFallbackColors=!1,Rt.mostReadable(t,["#fff","#000"],e))};var du=Rt.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"},Z6=Rt.hexNames=J6(du);function J6(t){var r={};for(var e in t)t.hasOwnProperty(e)&&(r[t[e]]=e);return r}function ym(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Ur(t,r){Q6(t)&&(t="100%");var e=q6(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 Cc(t){return Math.min(1,Math.max(0,t))}function mi(t){return parseInt(t,16)}function Q6(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function q6(t){return typeof t=="string"&&t.indexOf("%")!=-1}function qi(t){return t.length==1?"0"+t:""+t}function vf(t){return t<=1&&(t=t*100+"%"),t}function _m(t){return Math.round(parseFloat(t)*255).toString(16)}function Xp(t){return mi(t)/255}var Qi=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 Ms(t){return!!Qi.CSS_UNIT.exec(t)}function e8(t){t=t.replace(I6,"").replace(O6,"").toLowerCase();var r=!1;if(du[t])t=du[t],r=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var e;return(e=Qi.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=Qi.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=Qi.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=Qi.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=Qi.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=Qi.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=Qi.hex8.exec(t))?{r:mi(e[1]),g:mi(e[2]),b:mi(e[3]),a:Xp(e[4]),format:r?"name":"hex8"}:(e=Qi.hex6.exec(t))?{r:mi(e[1]),g:mi(e[2]),b:mi(e[3]),format:r?"name":"hex"}:(e=Qi.hex4.exec(t))?{r:mi(e[1]+""+e[1]),g:mi(e[2]+""+e[2]),b:mi(e[3]+""+e[3]),a:Xp(e[4]+""+e[4]),format:r?"name":"hex8"}:(e=Qi.hex3.exec(t))?{r:mi(e[1]+""+e[1]),g:mi(e[2]+""+e[2]),b:mi(e[3]+""+e[3]),format:r?"name":"hex"}:!1}function t8(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}}var dc={exports:{}};/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/dc.exports;(function(t,r){(function(){var e,n="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",h="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",a=500,f="__lodash_placeholder__",l=1,u=2,p=4,m=1,d=2,v=1,x=2,g=4,w=8,y=16,_=32,k=64,F=128,O=256,N=512,U=30,z="...",W=800,X=16,J=1,H=2,I=3,M=1/0,E=9007199254740991,A=17976931348623157e292,B=0/0,L=4294967295,P=L-1,R=L>>>1,C=[["ary",F],["bind",v],["bindKey",x],["curry",w],["curryRight",y],["flip",N],["partial",_],["partialRight",k],["rearg",O]],S="[object Arguments]",D="[object Array]",V="[object AsyncFunction]",te="[object Boolean]",oe="[object Date]",he="[object DOMException]",Ne="[object Error]",q="[object Function]",ne="[object GeneratorFunction]",Q="[object Map]",re="[object Number]",ve="[object Null]",Ce="[object Object]",ce="[object Promise]",se="[object Proxy]",ee="[object RegExp]",G="[object Set]",Z="[object String]",de="[object Symbol]",Ae="[object Undefined]",K="[object WeakMap]",Te="[object WeakSet]",Oe="[object ArrayBuffer]",ie="[object DataView]",fe="[object Float32Array]",we="[object Float64Array]",Fe="[object Int8Array]",Ue="[object Int16Array]",Pe="[object Int32Array]",$e="[object Uint8Array]",rt="[object Uint8ClampedArray]",Ze="[object Uint16Array]",Se="[object Uint32Array]",je=/\b__p \+= '';/g,Ke=/\b(__p \+=) '' \+/g,st=/(__e\(.*?\)|\b__t\)) \+\n'';/g,St=/&(?:amp|lt|gt|quot|#39);/g,At=/[&<>"']/g,bt=RegExp(St.source),wt=RegExp(At.source),Dt=/<%-([\s\S]+?)%>/g,gt=/<%([\s\S]+?)%>/g,xt=/<%=([\s\S]+?)%>/g,Bt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kt=/^\w*$/,er=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zt=/[\\^$.*+?()[\]{}|]/g,Ct=RegExp(zt.source),Kt=/^\s+/,ir=/\s/,Nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,Ee=/,? & /,pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xe=/[()=,{}\[\]\/\s]/,ye=/\\(\\)?/g,_e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,Je=/^[-+]0x[0-9a-f]+$/i,Le=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,tt=/^(?:0|[1-9]\d*)$/,me=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Me=/($^)/,Re=/['\n\r\u2028\u2029\\]/g,Qe="\\ud800-\\udfff",lt="\\u0300-\\u036f",Et="\\ufe20-\\ufe2f",Ot="\\u20d0-\\u20ff",sr=lt+Et+Ot,Wr="\\u2700-\\u27bf",Rr="a-z\\xdf-\\xf6\\xf8-\\xff",br="\\xac\\xb1\\xd7\\xf7",Vr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",yn="\\u2000-\\u206f",ar=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vn="A-Z\\xc0-\\xd6\\xd8-\\xde",Gn="\\ufe0e\\ufe0f",Kn=br+Vr+yn+ar,ji="['’]",xs="["+Qe+"]",Ya="["+Kn+"]",Yn="["+sr+"]",Za="\\d+",bs="["+Wr+"]",da="["+Rr+"]",pa="[^"+Qe+Kn+Za+Wr+Rr+Vn+"]",Ws="\\ud83c[\\udffb-\\udfff]",Wo="(?:"+Yn+"|"+Ws+")",Ja="[^"+Qe+"]",ws="(?:\\ud83c[\\udde6-\\uddff]){2}",$s="[\\ud800-\\udbff][\\udc00-\\udfff]",ns="["+Vn+"]",Qa="\\u200d",ma="(?:"+da+"|"+pa+")",zs="(?:"+ns+"|"+pa+")",Hi="(?:"+ji+"(?:d|ll|m|re|s|t|ve))?",qa="(?:"+ji+"(?:D|LL|M|RE|S|T|VE))?",eo=Wo+"?",ai="["+Gn+"]?",$o="(?:"+Qa+"(?:"+[Ja,ws,$s].join("|")+")"+ai+eo+")*",to="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ro=ai+eo+$o,Xo="(?:"+[bs,ws,$s].join("|")+")"+ro,yi="(?:"+[Ja+Yn+"?",Yn,ws,$s,xs].join("|")+")",no=RegExp(ji,"g"),Vo=RegExp(Yn,"g"),oi=RegExp(Ws+"(?="+Ws+")|"+yi+ro,"g"),Go=RegExp([ns+"?"+da+"+"+Hi+"(?="+[Ya,ns,"$"].join("|")+")",zs+"+"+qa+"(?="+[Ya,ns+ma,"$"].join("|")+")",ns+"?"+ma+"+"+Hi,ns+"+"+qa,zo,to,Za,Xo].join("|"),"g"),_i=RegExp("["+Qa+Qe+sr+Gn+"]"),Ei=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,io=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ga=-1,mr={};mr[fe]=mr[we]=mr[Fe]=mr[Ue]=mr[Pe]=mr[$e]=mr[rt]=mr[Ze]=mr[Se]=!0,mr[S]=mr[D]=mr[Oe]=mr[te]=mr[ie]=mr[oe]=mr[Ne]=mr[q]=mr[Q]=mr[re]=mr[Ce]=mr[ee]=mr[G]=mr[Z]=mr[K]=!1;var pr={};pr[S]=pr[D]=pr[Oe]=pr[ie]=pr[te]=pr[oe]=pr[fe]=pr[we]=pr[Fe]=pr[Ue]=pr[Pe]=pr[Q]=pr[re]=pr[Ce]=pr[ee]=pr[G]=pr[Z]=pr[de]=pr[$e]=pr[rt]=pr[Ze]=pr[Se]=!0,pr[Ne]=pr[q]=pr[K]=!1;var so={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ko={"&":"&","<":"<",">":">",'"':""","'":"'"},ao={"&":"&","<":"<",">":">",""":'"',"'":"'"},oo={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ke=parseFloat,ze=parseInt,at=typeof Qt=="object"&&Qt&&Qt.Object===Object&&Qt,yt=typeof self=="object"&&self&&self.Object===Object&&self,$t=at||yt||Function("return this")(),jt=r&&!r.nodeType&&r,gr=jt&&!0&&t&&!t.nodeType&&t,yr=gr&&gr.exports===jt,Ir=yr&&at.process,or=function(){try{var Xe=gr&&gr.require&&gr.require("util").types;return Xe||Ir&&Ir.binding&&Ir.binding("util")}catch{}}(),on=or&&or.isArrayBuffer,pn=or&&or.isDate,Lr=or&&or.isMap,qr=or&&or.isRegExp,fn=or&&or.isSet,fi=or&&or.isTypedArray;function Or(Xe,it,et){switch(et.length){case 0:return Xe.call(it);case 1:return Xe.call(it,et[0]);case 2:return Xe.call(it,et[0],et[1]);case 3:return Xe.call(it,et[0],et[1],et[2])}return Xe.apply(it,et)}function Wi(Xe,it,et,Tt){for(var Xt=-1,wr=Xe==null?0:Xe.length;++Xt<wr;){var cn=Xe[Xt];it(Tt,cn,et(cn),Xe)}return Tt}function _n(Xe,it){for(var et=-1,Tt=Xe==null?0:Xe.length;++et<Tt&&it(Xe[et],et,Xe)!==!1;);return Xe}function $i(Xe,it){for(var et=Xe==null?0:Xe.length;et--&&it(Xe[et],et,Xe)!==!1;);return Xe}function ys(Xe,it){for(var et=-1,Tt=Xe==null?0:Xe.length;++et<Tt;)if(!it(Xe[et],et,Xe))return!1;return!0}function is(Xe,it){for(var et=-1,Tt=Xe==null?0:Xe.length,Xt=0,wr=[];++et<Tt;){var cn=Xe[et];it(cn,et,Xe)&&(wr[Xt++]=cn)}return wr}function ue(Xe,it){var et=Xe==null?0:Xe.length;return!!et&&Nr(Xe,it,0)>-1}function Ie(Xe,it,et){for(var Tt=-1,Xt=Xe==null?0:Xe.length;++Tt<Xt;)if(et(it,Xe[Tt]))return!0;return!1}function Ye(Xe,it){for(var et=-1,Tt=Xe==null?0:Xe.length,Xt=Array(Tt);++et<Tt;)Xt[et]=it(Xe[et],et,Xe);return Xt}function ht(Xe,it){for(var et=-1,Tt=it.length,Xt=Xe.length;++et<Tt;)Xe[Xt+et]=it[et];return Xe}function Mt(Xe,it,et,Tt){var Xt=-1,wr=Xe==null?0:Xe.length;for(Tt&&wr&&(et=Xe[++Xt]);++Xt<wr;)et=it(et,Xe[Xt],Xt,Xe);return et}function _t(Xe,it,et,Tt){var Xt=Xe==null?0:Xe.length;for(Tt&&Xt&&(et=Xe[--Xt]);Xt--;)et=it(et,Xe[Xt],Xt,Xe);return et}function Yt(Xe,it){for(var et=-1,Tt=Xe==null?0:Xe.length;++et<Tt;)if(it(Xe[et],et,Xe))return!0;return!1}var Ar=li("length");function Dr(Xe){return Xe.split("")}function en(Xe){return Xe.match(pe)||[]}function mn(Xe,it,et){var Tt;return et(Xe,function(Xt,wr,cn){if(it(Xt,wr,cn))return Tt=wr,!1}),Tt}function ln(Xe,it,et,Tt){for(var Xt=Xe.length,wr=et+(Tt?1:-1);Tt?wr--:++wr<Xt;)if(it(Xe[wr],wr,Xe))return wr;return-1}function Nr(Xe,it,et){return it===it?Wv(Xe,it,et):ln(Xe,Un,et)}function Zn(Xe,it,et,Tt){for(var Xt=et-1,wr=Xe.length;++Xt<wr;)if(Tt(Xe[Xt],it))return Xt;return-1}function Un(Xe){return Xe!==Xe}function zi(Xe,it){var et=Xe==null?0:Xe.length;return et?Xs(Xe,it)/et:B}function li(Xe){return function(it){return it==null?e:it[Xe]}}function Xi(Xe){return function(it){return Xe==null?e:Xe[it]}}function Yo(Xe,it,et,Tt,Xt){return Xt(Xe,function(wr,cn,Mr){et=Tt?(Tt=!1,wr):it(et,wr,cn,Mr)}),et}function fo(Xe,it){var et=Xe.length;for(Xe.sort(it);et--;)Xe[et]=Xe[et].value;return Xe}function Xs(Xe,it){for(var et,Tt=-1,Xt=Xe.length;++Tt<Xt;){var wr=it(Xe[Tt]);wr!==e&&(et=et===e?wr:et+wr)}return et}function Bc(Xe,it){for(var et=-1,Tt=Array(Xe);++et<Xe;)Tt[et]=it(et);return Tt}function Ov(Xe,it){return Ye(it,function(et){return[et,Xe[et]]})}function b0(Xe){return Xe&&Xe.slice(0,E0(Xe)+1).replace(Kt,"")}function ci(Xe){return function(it){return Xe(it)}}function Lc(Xe,it){return Ye(it,function(et){return Xe[et]})}function Zo(Xe,it){return Xe.has(it)}function w0(Xe,it){for(var et=-1,Tt=Xe.length;++et<Tt&&Nr(it,Xe[et],0)>-1;);return et}function y0(Xe,it){for(var et=Xe.length;et--&&Nr(it,Xe[et],0)>-1;);return et}function Dv(Xe,it){for(var et=Xe.length,Tt=0;et--;)Xe[et]===it&&++Tt;return Tt}var Nv=Xi(so),Pv=Xi(Ko);function Bv(Xe){return"\\"+oo[Xe]}function Lv(Xe,it){return Xe==null?e:Xe[it]}function lo(Xe){return _i.test(Xe)}function Uv(Xe){return Ei.test(Xe)}function jv(Xe){for(var it,et=[];!(it=Xe.next()).done;)et.push(it.value);return et}function Uc(Xe){var it=-1,et=Array(Xe.size);return Xe.forEach(function(Tt,Xt){et[++it]=[Xt,Tt]}),et}function _0(Xe,it){return function(et){return Xe(it(et))}}function Vs(Xe,it){for(var et=-1,Tt=Xe.length,Xt=0,wr=[];++et<Tt;){var cn=Xe[et];(cn===it||cn===f)&&(Xe[et]=f,wr[Xt++]=et)}return wr}function el(Xe){var it=-1,et=Array(Xe.size);return Xe.forEach(function(Tt){et[++it]=Tt}),et}function Hv(Xe){var it=-1,et=Array(Xe.size);return Xe.forEach(function(Tt){et[++it]=[Tt,Tt]}),et}function Wv(Xe,it,et){for(var Tt=et-1,Xt=Xe.length;++Tt<Xt;)if(Xe[Tt]===it)return Tt;return-1}function $v(Xe,it,et){for(var Tt=et+1;Tt--;)if(Xe[Tt]===it)return Tt;return Tt}function co(Xe){return lo(Xe)?Xv(Xe):Ar(Xe)}function Vi(Xe){return lo(Xe)?Vv(Xe):Dr(Xe)}function E0(Xe){for(var it=Xe.length;it--&&ir.test(Xe.charAt(it)););return it}var zv=Xi(ao);function Xv(Xe){for(var it=oi.lastIndex=0;oi.test(Xe);)++it;return it}function Vv(Xe){return Xe.match(oi)||[]}function Gv(Xe){return Xe.match(Go)||[]}var Kv=function Xe(it){it=it==null?$t:ho.defaults($t.Object(),it,ho.pick($t,io));var et=it.Array,Tt=it.Date,Xt=it.Error,wr=it.Function,cn=it.Math,Mr=it.Object,jc=it.RegExp,Yv=it.String,Ti=it.TypeError,tl=et.prototype,Zv=wr.prototype,uo=Mr.prototype,rl=it["__core-js_shared__"],nl=Zv.toString,Tr=uo.hasOwnProperty,Jv=0,T0=function(){var b=/[^.]+$/.exec(rl&&rl.keys&&rl.keys.IE_PROTO||"");return b?"Symbol(src)_1."+b:""}(),il=uo.toString,Qv=nl.call(Mr),qv=$t._,ex=jc("^"+nl.call(Tr).replace(zt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sl=yr?it.Buffer:e,Gs=it.Symbol,al=it.Uint8Array,S0=sl?sl.allocUnsafe:e,ol=_0(Mr.getPrototypeOf,Mr),k0=Mr.create,C0=uo.propertyIsEnumerable,fl=tl.splice,A0=Gs?Gs.isConcatSpreadable:e,Jo=Gs?Gs.iterator:e,va=Gs?Gs.toStringTag:e,ll=function(){try{var b=_a(Mr,"defineProperty");return b({},"",{}),b}catch{}}(),tx=it.clearTimeout!==$t.clearTimeout&&it.clearTimeout,rx=Tt&&Tt.now!==$t.Date.now&&Tt.now,nx=it.setTimeout!==$t.setTimeout&&it.setTimeout,cl=cn.ceil,hl=cn.floor,Hc=Mr.getOwnPropertySymbols,ix=sl?sl.isBuffer:e,F0=it.isFinite,sx=tl.join,ax=_0(Mr.keys,Mr),hn=cn.max,An=cn.min,ox=Tt.now,fx=it.parseInt,R0=cn.random,lx=tl.reverse,Wc=_a(it,"DataView"),Qo=_a(it,"Map"),$c=_a(it,"Promise"),po=_a(it,"Set"),qo=_a(it,"WeakMap"),ef=_a(Mr,"create"),ul=qo&&new qo,mo={},cx=Ea(Wc),hx=Ea(Qo),ux=Ea($c),dx=Ea(po),px=Ea(qo),dl=Gs?Gs.prototype:e,tf=dl?dl.valueOf:e,M0=dl?dl.toString:e;function ge(b){if($r(b)&&!Gt(b)&&!(b instanceof hr)){if(b instanceof Si)return b;if(Tr.call(b,"__wrapped__"))return Id(b)}return new Si(b)}var go=function(){function b(){}return function(T){if(!Hr(T))return{};if(k0)return k0(T);b.prototype=T;var j=new b;return b.prototype=e,j}}();function pl(){}function Si(b,T){this.__wrapped__=b,this.__actions__=[],this.__chain__=!!T,this.__index__=0,this.__values__=e}ge.templateSettings={escape:Dt,evaluate:gt,interpolate:xt,variable:"",imports:{_:ge}},ge.prototype=pl.prototype,ge.prototype.constructor=ge,Si.prototype=go(pl.prototype),Si.prototype.constructor=Si;function hr(b){this.__wrapped__=b,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=L,this.__views__=[]}function mx(){var b=new hr(this.__wrapped__);return b.__actions__=Jn(this.__actions__),b.__dir__=this.__dir__,b.__filtered__=this.__filtered__,b.__iteratees__=Jn(this.__iteratees__),b.__takeCount__=this.__takeCount__,b.__views__=Jn(this.__views__),b}function gx(){if(this.__filtered__){var b=new hr(this);b.__dir__=-1,b.__filtered__=!0}else b=this.clone(),b.__dir__*=-1;return b}function vx(){var b=this.__wrapped__.value(),T=this.__dir__,j=Gt(b),Y=T<0,ae=j?b.length:0,be=F2(0,ae,this.__views__),De=be.start,Be=be.end,Ge=Be-De,ot=Y?Be:De-1,ft=this.__iteratees__,ut=ft.length,vt=0,Ft=An(Ge,this.__takeCount__);if(!j||!Y&&ae==Ge&&Ft==Ge)return td(b,this.__actions__);var Lt=[];e:for(;Ge--&&vt<Ft;){ot+=T;for(var tr=-1,Ut=b[ot];++tr<ut;){var lr=ft[tr],dr=lr.iteratee,di=lr.type,Wn=dr(Ut);if(di==H)Ut=Wn;else if(!Wn){if(di==J)continue e;break e}}Lt[vt++]=Ut}return Lt}hr.prototype=go(pl.prototype),hr.prototype.constructor=hr;function xa(b){var T=-1,j=b==null?0:b.length;for(this.clear();++T<j;){var Y=b[T];this.set(Y[0],Y[1])}}function xx(){this.__data__=ef?ef(null):{},this.size=0}function bx(b){var T=this.has(b)&&delete this.__data__[b];return this.size-=T?1:0,T}function wx(b){var T=this.__data__;if(ef){var j=T[b];return j===c?e:j}return Tr.call(T,b)?T[b]:e}function yx(b){var T=this.__data__;return ef?T[b]!==e:Tr.call(T,b)}function _x(b,T){var j=this.__data__;return this.size+=this.has(b)?0:1,j[b]=ef&&T===e?c:T,this}xa.prototype.clear=xx,xa.prototype.delete=bx,xa.prototype.get=wx,xa.prototype.has=yx,xa.prototype.set=_x;function _s(b){var T=-1,j=b==null?0:b.length;for(this.clear();++T<j;){var Y=b[T];this.set(Y[0],Y[1])}}function Ex(){this.__data__=[],this.size=0}function Tx(b){var T=this.__data__,j=ml(T,b);if(j<0)return!1;var Y=T.length-1;return j==Y?T.pop():fl.call(T,j,1),--this.size,!0}function Sx(b){var T=this.__data__,j=ml(T,b);return j<0?e:T[j][1]}function kx(b){return ml(this.__data__,b)>-1}function Cx(b,T){var j=this.__data__,Y=ml(j,b);return Y<0?(++this.size,j.push([b,T])):j[Y][1]=T,this}_s.prototype.clear=Ex,_s.prototype.delete=Tx,_s.prototype.get=Sx,_s.prototype.has=kx,_s.prototype.set=Cx;function Es(b){var T=-1,j=b==null?0:b.length;for(this.clear();++T<j;){var Y=b[T];this.set(Y[0],Y[1])}}function Ax(){this.size=0,this.__data__={hash:new xa,map:new(Qo||_s),string:new xa}}function Fx(b){var T=Cl(this,b).delete(b);return this.size-=T?1:0,T}function Rx(b){return Cl(this,b).get(b)}function Mx(b){return Cl(this,b).has(b)}function Ix(b,T){var j=Cl(this,b),Y=j.size;return j.set(b,T),this.size+=j.size==Y?0:1,this}Es.prototype.clear=Ax,Es.prototype.delete=Fx,Es.prototype.get=Rx,Es.prototype.has=Mx,Es.prototype.set=Ix;function ba(b){var T=-1,j=b==null?0:b.length;for(this.__data__=new Es;++T<j;)this.add(b[T])}function Ox(b){return this.__data__.set(b,c),this}function Dx(b){return this.__data__.has(b)}ba.prototype.add=ba.prototype.push=Ox,ba.prototype.has=Dx;function Gi(b){var T=this.__data__=new _s(b);this.size=T.size}function Nx(){this.__data__=new _s,this.size=0}function Px(b){var T=this.__data__,j=T.delete(b);return this.size=T.size,j}function Bx(b){return this.__data__.get(b)}function Lx(b){return this.__data__.has(b)}function Ux(b,T){var j=this.__data__;if(j instanceof _s){var Y=j.__data__;if(!Qo||Y.length<i-1)return Y.push([b,T]),this.size=++j.size,this;j=this.__data__=new Es(Y)}return j.set(b,T),this.size=j.size,this}Gi.prototype.clear=Nx,Gi.prototype.delete=Px,Gi.prototype.get=Bx,Gi.prototype.has=Lx,Gi.prototype.set=Ux;function I0(b,T){var j=Gt(b),Y=!j&&Ta(b),ae=!j&&!Y&&Qs(b),be=!j&&!Y&&!ae&&wo(b),De=j||Y||ae||be,Be=De?Bc(b.length,Yv):[],Ge=Be.length;for(var ot in b)(T||Tr.call(b,ot))&&!(De&&(ot=="length"||ae&&(ot=="offset"||ot=="parent")||be&&(ot=="buffer"||ot=="byteLength"||ot=="byteOffset")||Cs(ot,Ge)))&&Be.push(ot);return Be}function O0(b){var T=b.length;return T?b[eh(0,T-1)]:e}function jx(b,T){return Al(Jn(b),wa(T,0,b.length))}function Hx(b){return Al(Jn(b))}function zc(b,T,j){(j!==e&&!Ki(b[T],j)||j===e&&!(T in b))&&Ts(b,T,j)}function rf(b,T,j){var Y=b[T];(!(Tr.call(b,T)&&Ki(Y,j))||j===e&&!(T in b))&&Ts(b,T,j)}function ml(b,T){for(var j=b.length;j--;)if(Ki(b[j][0],T))return j;return-1}function Wx(b,T,j,Y){return Ks(b,function(ae,be,De){T(Y,ae,j(ae),De)}),Y}function D0(b,T){return b&&as(T,gn(T),b)}function $x(b,T){return b&&as(T,qn(T),b)}function Ts(b,T,j){T=="__proto__"&&ll?ll(b,T,{configurable:!0,enumerable:!0,value:j,writable:!0}):b[T]=j}function Xc(b,T){for(var j=-1,Y=T.length,ae=et(Y),be=b==null;++j<Y;)ae[j]=be?e:Sh(b,T[j]);return ae}function wa(b,T,j){return b===b&&(j!==e&&(b=b<=j?b:j),T!==e&&(b=b>=T?b:T)),b}function ki(b,T,j,Y,ae,be){var De,Be=T&l,Ge=T&u,ot=T&p;if(j&&(De=ae?j(b,Y,ae,be):j(b)),De!==e)return De;if(!Hr(b))return b;var ft=Gt(b);if(ft){if(De=M2(b),!Be)return Jn(b,De)}else{var ut=Fn(b),vt=ut==q||ut==ne;if(Qs(b))return id(b,Be);if(ut==Ce||ut==S||vt&&!ae){if(De=Ge||vt?{}:Ed(b),!Be)return Ge?w2(b,$x(De,b)):b2(b,D0(De,b))}else{if(!pr[ut])return ae?b:{};De=I2(b,ut,Be)}}be||(be=new Gi);var Ft=be.get(b);if(Ft)return Ft;be.set(b,De),Qd(b)?b.forEach(function(Ut){De.add(ki(Ut,T,j,Ut,b,be))}):Zd(b)&&b.forEach(function(Ut,lr){De.set(lr,ki(Ut,T,j,lr,b,be))});var Lt=ot?Ge?hh:ch:Ge?qn:gn,tr=ft?e:Lt(b);return _n(tr||b,function(Ut,lr){tr&&(lr=Ut,Ut=b[lr]),rf(De,lr,ki(Ut,T,j,lr,b,be))}),De}function zx(b){var T=gn(b);return function(j){return N0(j,b,T)}}function N0(b,T,j){var Y=j.length;if(b==null)return!Y;for(b=Mr(b);Y--;){var ae=j[Y],be=T[ae],De=b[ae];if(De===e&&!(ae in b)||!be(De))return!1}return!0}function P0(b,T,j){if(typeof b!="function")throw new Ti(o);return cf(function(){b.apply(e,j)},T)}function nf(b,T,j,Y){var ae=-1,be=ue,De=!0,Be=b.length,Ge=[],ot=T.length;if(!Be)return Ge;j&&(T=Ye(T,ci(j))),Y?(be=Ie,De=!1):T.length>=i&&(be=Zo,De=!1,T=new ba(T));e:for(;++ae<Be;){var ft=b[ae],ut=j==null?ft:j(ft);if(ft=Y||ft!==0?ft:0,De&&ut===ut){for(var vt=ot;vt--;)if(T[vt]===ut)continue e;Ge.push(ft)}else be(T,ut,Y)||Ge.push(ft)}return Ge}var Ks=ld(ss),B0=ld(Gc,!0);function Xx(b,T){var j=!0;return Ks(b,function(Y,ae,be){return j=!!T(Y,ae,be),j}),j}function gl(b,T,j){for(var Y=-1,ae=b.length;++Y<ae;){var be=b[Y],De=T(be);if(De!=null&&(Be===e?De===De&&!ui(De):j(De,Be)))var Be=De,Ge=be}return Ge}function Vx(b,T,j,Y){var ae=b.length;for(j=Jt(j),j<0&&(j=-j>ae?0:ae+j),Y=Y===e||Y>ae?ae:Jt(Y),Y<0&&(Y+=ae),Y=j>Y?0:ep(Y);j<Y;)b[j++]=T;return b}function L0(b,T){var j=[];return Ks(b,function(Y,ae,be){T(Y,ae,be)&&j.push(Y)}),j}function En(b,T,j,Y,ae){var be=-1,De=b.length;for(j||(j=D2),ae||(ae=[]);++be<De;){var Be=b[be];T>0&&j(Be)?T>1?En(Be,T-1,j,Y,ae):ht(ae,Be):Y||(ae[ae.length]=Be)}return ae}var Vc=cd(),U0=cd(!0);function ss(b,T){return b&&Vc(b,T,gn)}function Gc(b,T){return b&&U0(b,T,gn)}function vl(b,T){return is(T,function(j){return As(b[j])})}function ya(b,T){T=Zs(T,b);for(var j=0,Y=T.length;b!=null&&j<Y;)b=b[os(T[j++])];return j&&j==Y?b:e}function j0(b,T,j){var Y=T(b);return Gt(b)?Y:ht(Y,j(b))}function jn(b){return b==null?b===e?Ae:ve:va&&va in Mr(b)?A2(b):H2(b)}function Kc(b,T){return b>T}function Gx(b,T){return b!=null&&Tr.call(b,T)}function Kx(b,T){return b!=null&&T in Mr(b)}function Yx(b,T,j){return b>=An(T,j)&&b<hn(T,j)}function Yc(b,T,j){for(var Y=j?Ie:ue,ae=b[0].length,be=b.length,De=be,Be=et(be),Ge=1/0,ot=[];De--;){var ft=b[De];De&&T&&(ft=Ye(ft,ci(T))),Ge=An(ft.length,Ge),Be[De]=!j&&(T||ae>=120&&ft.length>=120)?new ba(De&&ft):e}ft=b[0];var ut=-1,vt=Be[0];e:for(;++ut<ae&&ot.length<Ge;){var Ft=ft[ut],Lt=T?T(Ft):Ft;if(Ft=j||Ft!==0?Ft:0,!(vt?Zo(vt,Lt):Y(ot,Lt,j))){for(De=be;--De;){var tr=Be[De];if(!(tr?Zo(tr,Lt):Y(b[De],Lt,j)))continue e}vt&&vt.push(Lt),ot.push(Ft)}}return ot}function Zx(b,T,j,Y){return ss(b,function(ae,be,De){T(Y,j(ae),be,De)}),Y}function sf(b,T,j){T=Zs(T,b),b=Cd(b,T);var Y=b==null?b:b[os(Ai(T))];return Y==null?e:Or(Y,b,j)}function H0(b){return $r(b)&&jn(b)==S}function Jx(b){return $r(b)&&jn(b)==Oe}function Qx(b){return $r(b)&&jn(b)==oe}function af(b,T,j,Y,ae){return b===T?!0:b==null||T==null||!$r(b)&&!$r(T)?b!==b&&T!==T:qx(b,T,j,Y,af,ae)}function qx(b,T,j,Y,ae,be){var De=Gt(b),Be=Gt(T),Ge=De?D:Fn(b),ot=Be?D:Fn(T);Ge=Ge==S?Ce:Ge,ot=ot==S?Ce:ot;var ft=Ge==Ce,ut=ot==Ce,vt=Ge==ot;if(vt&&Qs(b)){if(!Qs(T))return!1;De=!0,ft=!1}if(vt&&!ft)return be||(be=new Gi),De||wo(b)?wd(b,T,j,Y,ae,be):k2(b,T,Ge,j,Y,ae,be);if(!(j&m)){var Ft=ft&&Tr.call(b,"__wrapped__"),Lt=ut&&Tr.call(T,"__wrapped__");if(Ft||Lt){var tr=Ft?b.value():b,Ut=Lt?T.value():T;return be||(be=new Gi),ae(tr,Ut,j,Y,be)}}return vt?(be||(be=new Gi),C2(b,T,j,Y,ae,be)):!1}function e2(b){return $r(b)&&Fn(b)==Q}function Zc(b,T,j,Y){var ae=j.length,be=ae,De=!Y;if(b==null)return!be;for(b=Mr(b);ae--;){var Be=j[ae];if(De&&Be[2]?Be[1]!==b[Be[0]]:!(Be[0]in b))return!1}for(;++ae<be;){Be=j[ae];var Ge=Be[0],ot=b[Ge],ft=Be[1];if(De&&Be[2]){if(ot===e&&!(Ge in b))return!1}else{var ut=new Gi;if(Y)var vt=Y(ot,ft,Ge,b,T,ut);if(!(vt===e?af(ft,ot,m|d,Y,ut):vt))return!1}}return!0}function W0(b){if(!Hr(b)||P2(b))return!1;var T=As(b)?ex:Ve;return T.test(Ea(b))}function t2(b){return $r(b)&&jn(b)==ee}function r2(b){return $r(b)&&Fn(b)==G}function n2(b){return $r(b)&&Dl(b.length)&&!!mr[jn(b)]}function $0(b){return typeof b=="function"?b:b==null?ei:typeof b=="object"?Gt(b)?V0(b[0],b[1]):X0(b):hp(b)}function Jc(b){if(!lf(b))return ax(b);var T=[];for(var j in Mr(b))Tr.call(b,j)&&j!="constructor"&&T.push(j);return T}function i2(b){if(!Hr(b))return j2(b);var T=lf(b),j=[];for(var Y in b)Y=="constructor"&&(T||!Tr.call(b,Y))||j.push(Y);return j}function Qc(b,T){return b<T}function z0(b,T){var j=-1,Y=Qn(b)?et(b.length):[];return Ks(b,function(ae,be,De){Y[++j]=T(ae,be,De)}),Y}function X0(b){var T=dh(b);return T.length==1&&T[0][2]?Sd(T[0][0],T[0][1]):function(j){return j===b||Zc(j,b,T)}}function V0(b,T){return mh(b)&&Td(T)?Sd(os(b),T):function(j){var Y=Sh(j,b);return Y===e&&Y===T?kh(j,b):af(T,Y,m|d)}}function xl(b,T,j,Y,ae){b!==T&&Vc(T,function(be,De){if(ae||(ae=new Gi),Hr(be))s2(b,T,De,j,xl,Y,ae);else{var Be=Y?Y(vh(b,De),be,De+"",b,T,ae):e;Be===e&&(Be=be),zc(b,De,Be)}},qn)}function s2(b,T,j,Y,ae,be,De){var Be=vh(b,j),Ge=vh(T,j),ot=De.get(Ge);if(ot){zc(b,j,ot);return}var ft=be?be(Be,Ge,j+"",b,T,De):e,ut=ft===e;if(ut){var vt=Gt(Ge),Ft=!vt&&Qs(Ge),Lt=!vt&&!Ft&&wo(Ge);ft=Ge,vt||Ft||Lt?Gt(Be)?ft=Be:Gr(Be)?ft=Jn(Be):Ft?(ut=!1,ft=id(Ge,!0)):Lt?(ut=!1,ft=sd(Ge,!0)):ft=[]:hf(Ge)||Ta(Ge)?(ft=Be,Ta(Be)?ft=tp(Be):(!Hr(Be)||As(Be))&&(ft=Ed(Ge))):ut=!1}ut&&(De.set(Ge,ft),ae(ft,Ge,Y,be,De),De.delete(Ge)),zc(b,j,ft)}function G0(b,T){var j=b.length;if(j)return T+=T<0?j:0,Cs(T,j)?b[T]:e}function K0(b,T,j){T.length?T=Ye(T,function(be){return Gt(be)?function(De){return ya(De,be.length===1?be[0]:be)}:be}):T=[ei];var Y=-1;T=Ye(T,ci(Pt()));var ae=z0(b,function(be,De,Be){var Ge=Ye(T,function(ot){return ot(be)});return{criteria:Ge,index:++Y,value:be}});return fo(ae,function(be,De){return x2(be,De,j)})}function a2(b,T){return Y0(b,T,function(j,Y){return kh(b,Y)})}function Y0(b,T,j){for(var Y=-1,ae=T.length,be={};++Y<ae;){var De=T[Y],Be=ya(b,De);j(Be,De)&&of(be,Zs(De,b),Be)}return be}function o2(b){return function(T){return ya(T,b)}}function qc(b,T,j,Y){var ae=Y?Zn:Nr,be=-1,De=T.length,Be=b;for(b===T&&(T=Jn(T)),j&&(Be=Ye(b,ci(j)));++be<De;)for(var Ge=0,ot=T[be],ft=j?j(ot):ot;(Ge=ae(Be,ft,Ge,Y))>-1;)Be!==b&&fl.call(Be,Ge,1),fl.call(b,Ge,1);return b}function Z0(b,T){for(var j=b?T.length:0,Y=j-1;j--;){var ae=T[j];if(j==Y||ae!==be){var be=ae;Cs(ae)?fl.call(b,ae,1):nh(b,ae)}}return b}function eh(b,T){return b+hl(R0()*(T-b+1))}function f2(b,T,j,Y){for(var ae=-1,be=hn(cl((T-b)/(j||1)),0),De=et(be);be--;)De[Y?be:++ae]=b,b+=j;return De}function th(b,T){var j="";if(!b||T<1||T>E)return j;do T%2&&(j+=b),T=hl(T/2),T&&(b+=b);while(T);return j}function rr(b,T){return xh(kd(b,T,ei),b+"")}function l2(b){return O0(yo(b))}function c2(b,T){var j=yo(b);return Al(j,wa(T,0,j.length))}function of(b,T,j,Y){if(!Hr(b))return b;T=Zs(T,b);for(var ae=-1,be=T.length,De=be-1,Be=b;Be!=null&&++ae<be;){var Ge=os(T[ae]),ot=j;if(Ge==="__proto__"||Ge==="constructor"||Ge==="prototype")return b;if(ae!=De){var ft=Be[Ge];ot=Y?Y(ft,Ge,Be):e,ot===e&&(ot=Hr(ft)?ft:Cs(T[ae+1])?[]:{})}rf(Be,Ge,ot),Be=Be[Ge]}return b}var J0=ul?function(b,T){return ul.set(b,T),b}:ei,h2=ll?function(b,T){return ll(b,"toString",{configurable:!0,enumerable:!1,value:Ah(T),writable:!0})}:ei;function u2(b){return Al(yo(b))}function Ci(b,T,j){var Y=-1,ae=b.length;T<0&&(T=-T>ae?0:ae+T),j=j>ae?ae:j,j<0&&(j+=ae),ae=T>j?0:j-T>>>0,T>>>=0;for(var be=et(ae);++Y<ae;)be[Y]=b[Y+T];return be}function d2(b,T){var j;return Ks(b,function(Y,ae,be){return j=T(Y,ae,be),!j}),!!j}function bl(b,T,j){var Y=0,ae=b==null?Y:b.length;if(typeof T=="number"&&T===T&&ae<=R){for(;Y<ae;){var be=Y+ae>>>1,De=b[be];De!==null&&!ui(De)&&(j?De<=T:De<T)?Y=be+1:ae=be}return ae}return rh(b,T,ei,j)}function rh(b,T,j,Y){var ae=0,be=b==null?0:b.length;if(be===0)return 0;T=j(T);for(var De=T!==T,Be=T===null,Ge=ui(T),ot=T===e;ae<be;){var ft=hl((ae+be)/2),ut=j(b[ft]),vt=ut!==e,Ft=ut===null,Lt=ut===ut,tr=ui(ut);if(De)var Ut=Y||Lt;else ot?Ut=Lt&&(Y||vt):Be?Ut=Lt&&vt&&(Y||!Ft):Ge?Ut=Lt&&vt&&!Ft&&(Y||!tr):Ft||tr?Ut=!1:Ut=Y?ut<=T:ut<T;Ut?ae=ft+1:be=ft}return An(be,P)}function Q0(b,T){for(var j=-1,Y=b.length,ae=0,be=[];++j<Y;){var De=b[j],Be=T?T(De):De;if(!j||!Ki(Be,Ge)){var Ge=Be;be[ae++]=De===0?0:De}}return be}function q0(b){return typeof b=="number"?b:ui(b)?B:+b}function hi(b){if(typeof b=="string")return b;if(Gt(b))return Ye(b,hi)+"";if(ui(b))return M0?M0.call(b):"";var T=b+"";return T=="0"&&1/b==-M?"-0":T}function Ys(b,T,j){var Y=-1,ae=ue,be=b.length,De=!0,Be=[],Ge=Be;if(j)De=!1,ae=Ie;else if(be>=i){var ot=T?null:T2(b);if(ot)return el(ot);De=!1,ae=Zo,Ge=new ba}else Ge=T?[]:Be;e:for(;++Y<be;){var ft=b[Y],ut=T?T(ft):ft;if(ft=j||ft!==0?ft:0,De&&ut===ut){for(var vt=Ge.length;vt--;)if(Ge[vt]===ut)continue e;T&&Ge.push(ut),Be.push(ft)}else ae(Ge,ut,j)||(Ge!==Be&&Ge.push(ut),Be.push(ft))}return Be}function nh(b,T){return T=Zs(T,b),b=Cd(b,T),b==null||delete b[os(Ai(T))]}function ed(b,T,j,Y){return of(b,T,j(ya(b,T)),Y)}function wl(b,T,j,Y){for(var ae=b.length,be=Y?ae:-1;(Y?be--:++be<ae)&&T(b[be],be,b););return j?Ci(b,Y?0:be,Y?be+1:ae):Ci(b,Y?be+1:0,Y?ae:be)}function td(b,T){var j=b;return j instanceof hr&&(j=j.value()),Mt(T,function(Y,ae){return ae.func.apply(ae.thisArg,ht([Y],ae.args))},j)}function ih(b,T,j){var Y=b.length;if(Y<2)return Y?Ys(b[0]):[];for(var ae=-1,be=et(Y);++ae<Y;)for(var De=b[ae],Be=-1;++Be<Y;)Be!=ae&&(be[ae]=nf(be[ae]||De,b[Be],T,j));return Ys(En(be,1),T,j)}function rd(b,T,j){for(var Y=-1,ae=b.length,be=T.length,De={};++Y<ae;){var Be=Y<be?T[Y]:e;j(De,b[Y],Be)}return De}function sh(b){return Gr(b)?b:[]}function ah(b){return typeof b=="function"?b:ei}function Zs(b,T){return Gt(b)?b:mh(b,T)?[b]:Md(_r(b))}var p2=rr;function Js(b,T,j){var Y=b.length;return j=j===e?Y:j,!T&&j>=Y?b:Ci(b,T,j)}var nd=tx||function(b){return $t.clearTimeout(b)};function id(b,T){if(T)return b.slice();var j=b.length,Y=S0?S0(j):new b.constructor(j);return b.copy(Y),Y}function oh(b){var T=new b.constructor(b.byteLength);return new al(T).set(new al(b)),T}function m2(b,T){var j=T?oh(b.buffer):b.buffer;return new b.constructor(j,b.byteOffset,b.byteLength)}function g2(b){var T=new b.constructor(b.source,We.exec(b));return T.lastIndex=b.lastIndex,T}function v2(b){return tf?Mr(tf.call(b)):{}}function sd(b,T){var j=T?oh(b.buffer):b.buffer;return new b.constructor(j,b.byteOffset,b.length)}function ad(b,T){if(b!==T){var j=b!==e,Y=b===null,ae=b===b,be=ui(b),De=T!==e,Be=T===null,Ge=T===T,ot=ui(T);if(!Be&&!ot&&!be&&b>T||be&&De&&Ge&&!Be&&!ot||Y&&De&&Ge||!j&&Ge||!ae)return 1;if(!Y&&!be&&!ot&&b<T||ot&&j&&ae&&!Y&&!be||Be&&j&&ae||!De&&ae||!Ge)return-1}return 0}function x2(b,T,j){for(var Y=-1,ae=b.criteria,be=T.criteria,De=ae.length,Be=j.length;++Y<De;){var Ge=ad(ae[Y],be[Y]);if(Ge){if(Y>=Be)return Ge;var ot=j[Y];return Ge*(ot=="desc"?-1:1)}}return b.index-T.index}function od(b,T,j,Y){for(var ae=-1,be=b.length,De=j.length,Be=-1,Ge=T.length,ot=hn(be-De,0),ft=et(Ge+ot),ut=!Y;++Be<Ge;)ft[Be]=T[Be];for(;++ae<De;)(ut||ae<be)&&(ft[j[ae]]=b[ae]);for(;ot--;)ft[Be++]=b[ae++];return ft}function fd(b,T,j,Y){for(var ae=-1,be=b.length,De=-1,Be=j.length,Ge=-1,ot=T.length,ft=hn(be-Be,0),ut=et(ft+ot),vt=!Y;++ae<ft;)ut[ae]=b[ae];for(var Ft=ae;++Ge<ot;)ut[Ft+Ge]=T[Ge];for(;++De<Be;)(vt||ae<be)&&(ut[Ft+j[De]]=b[ae++]);return ut}function Jn(b,T){var j=-1,Y=b.length;for(T||(T=et(Y));++j<Y;)T[j]=b[j];return T}function as(b,T,j,Y){var ae=!j;j||(j={});for(var be=-1,De=T.length;++be<De;){var Be=T[be],Ge=Y?Y(j[Be],b[Be],Be,j,b):e;Ge===e&&(Ge=b[Be]),ae?Ts(j,Be,Ge):rf(j,Be,Ge)}return j}function b2(b,T){return as(b,ph(b),T)}function w2(b,T){return as(b,yd(b),T)}function yl(b,T){return function(j,Y){var ae=Gt(j)?Wi:Wx,be=T?T():{};return ae(j,b,Pt(Y,2),be)}}function vo(b){return rr(function(T,j){var Y=-1,ae=j.length,be=ae>1?j[ae-1]:e,De=ae>2?j[2]:e;for(be=b.length>3&&typeof be=="function"?(ae--,be):e,De&&Hn(j[0],j[1],De)&&(be=ae<3?e:be,ae=1),T=Mr(T);++Y<ae;){var Be=j[Y];Be&&b(T,Be,Y,be)}return T})}function ld(b,T){return function(j,Y){if(j==null)return j;if(!Qn(j))return b(j,Y);for(var ae=j.length,be=T?ae:-1,De=Mr(j);(T?be--:++be<ae)&&Y(De[be],be,De)!==!1;);return j}}function cd(b){return function(T,j,Y){for(var ae=-1,be=Mr(T),De=Y(T),Be=De.length;Be--;){var Ge=De[b?Be:++ae];if(j(be[Ge],Ge,be)===!1)break}return T}}function y2(b,T,j){var Y=T&v,ae=ff(b);function be(){var De=this&&this!==$t&&this instanceof be?ae:b;return De.apply(Y?j:this,arguments)}return be}function hd(b){return function(T){T=_r(T);var j=lo(T)?Vi(T):e,Y=j?j[0]:T.charAt(0),ae=j?Js(j,1).join(""):T.slice(1);return Y[b]()+ae}}function xo(b){return function(T){return Mt(lp(fp(T).replace(no,"")),b,"")}}function ff(b){return function(){var T=arguments;switch(T.length){case 0:return new b;case 1:return new b(T[0]);case 2:return new b(T[0],T[1]);case 3:return new b(T[0],T[1],T[2]);case 4:return new b(T[0],T[1],T[2],T[3]);case 5:return new b(T[0],T[1],T[2],T[3],T[4]);case 6:return new b(T[0],T[1],T[2],T[3],T[4],T[5]);case 7:return new b(T[0],T[1],T[2],T[3],T[4],T[5],T[6])}var j=go(b.prototype),Y=b.apply(j,T);return Hr(Y)?Y:j}}function _2(b,T,j){var Y=ff(b);function ae(){for(var be=arguments.length,De=et(be),Be=be,Ge=bo(ae);Be--;)De[Be]=arguments[Be];var ot=be<3&&De[0]!==Ge&&De[be-1]!==Ge?[]:Vs(De,Ge);if(be-=ot.length,be<j)return gd(b,T,_l,ae.placeholder,e,De,ot,e,e,j-be);var ft=this&&this!==$t&&this instanceof ae?Y:b;return Or(ft,this,De)}return ae}function ud(b){return function(T,j,Y){var ae=Mr(T);if(!Qn(T)){var be=Pt(j,3);T=gn(T),j=function(Be){return be(ae[Be],Be,ae)}}var De=b(T,j,Y);return De>-1?ae[be?T[De]:De]:e}}function dd(b){return ks(function(T){var j=T.length,Y=j,ae=Si.prototype.thru;for(b&&T.reverse();Y--;){var be=T[Y];if(typeof be!="function")throw new Ti(o);if(ae&&!De&&kl(be)=="wrapper")var De=new Si([],!0)}for(Y=De?Y:j;++Y<j;){be=T[Y];var Be=kl(be),Ge=Be=="wrapper"?uh(be):e;Ge&&gh(Ge[0])&&Ge[1]==(F|w|_|O)&&!Ge[4].length&&Ge[9]==1?De=De[kl(Ge[0])].apply(De,Ge[3]):De=be.length==1&&gh(be)?De[Be]():De.thru(be)}return function(){var ot=arguments,ft=ot[0];if(De&&ot.length==1&&Gt(ft))return De.plant(ft).value();for(var ut=0,vt=j?T[ut].apply(this,ot):ft;++ut<j;)vt=T[ut].call(this,vt);return vt}})}function _l(b,T,j,Y,ae,be,De,Be,Ge,ot){var ft=T&F,ut=T&v,vt=T&x,Ft=T&(w|y),Lt=T&N,tr=vt?e:ff(b);function Ut(){for(var lr=arguments.length,dr=et(lr),di=lr;di--;)dr[di]=arguments[di];if(Ft)var Wn=bo(Ut),pi=Dv(dr,Wn);if(Y&&(dr=od(dr,Y,ae,Ft)),be&&(dr=fd(dr,be,De,Ft)),lr-=pi,Ft&&lr<ot){var Kr=Vs(dr,Wn);return gd(b,T,_l,Ut.placeholder,j,dr,Kr,Be,Ge,ot-lr)}var Yi=ut?j:this,Rs=vt?Yi[b]:b;return lr=dr.length,Be?dr=W2(dr,Be):Lt&&lr>1&&dr.reverse(),ft&&Ge<lr&&(dr.length=Ge),this&&this!==$t&&this instanceof Ut&&(Rs=tr||ff(Rs)),Rs.apply(Yi,dr)}return Ut}function pd(b,T){return function(j,Y){return Zx(j,b,T(Y),{})}}function El(b,T){return function(j,Y){var ae;if(j===e&&Y===e)return T;if(j!==e&&(ae=j),Y!==e){if(ae===e)return Y;typeof j=="string"||typeof Y=="string"?(j=hi(j),Y=hi(Y)):(j=q0(j),Y=q0(Y)),ae=b(j,Y)}return ae}}function fh(b){return ks(function(T){return T=Ye(T,ci(Pt())),rr(function(j){var Y=this;return b(T,function(ae){return Or(ae,Y,j)})})})}function Tl(b,T){T=T===e?" ":hi(T);var j=T.length;if(j<2)return j?th(T,b):T;var Y=th(T,cl(b/co(T)));return lo(T)?Js(Vi(Y),0,b).join(""):Y.slice(0,b)}function E2(b,T,j,Y){var ae=T&v,be=ff(b);function De(){for(var Be=-1,Ge=arguments.length,ot=-1,ft=Y.length,ut=et(ft+Ge),vt=this&&this!==$t&&this instanceof De?be:b;++ot<ft;)ut[ot]=Y[ot];for(;Ge--;)ut[ot++]=arguments[++Be];return Or(vt,ae?j:this,ut)}return De}function md(b){return function(T,j,Y){return Y&&typeof Y!="number"&&Hn(T,j,Y)&&(j=Y=e),T=Fs(T),j===e?(j=T,T=0):j=Fs(j),Y=Y===e?T<j?1:-1:Fs(Y),f2(T,j,Y,b)}}function Sl(b){return function(T,j){return typeof T=="string"&&typeof j=="string"||(T=Fi(T),j=Fi(j)),b(T,j)}}function gd(b,T,j,Y,ae,be,De,Be,Ge,ot){var ft=T&w,ut=ft?De:e,vt=ft?e:De,Ft=ft?be:e,Lt=ft?e:be;T|=ft?_:k,T&=~(ft?k:_),T&g||(T&=~(v|x));var tr=[b,T,ae,Ft,ut,Lt,vt,Be,Ge,ot],Ut=j.apply(e,tr);return gh(b)&&Ad(Ut,tr),Ut.placeholder=Y,Fd(Ut,b,T)}function lh(b){var T=cn[b];return function(j,Y){if(j=Fi(j),Y=Y==null?0:An(Jt(Y),292),Y&&F0(j)){var ae=(_r(j)+"e").split("e"),be=T(ae[0]+"e"+(+ae[1]+Y));return ae=(_r(be)+"e").split("e"),+(ae[0]+"e"+(+ae[1]-Y))}return T(j)}}var T2=po&&1/el(new po([,-0]))[1]==M?function(b){return new po(b)}:Mh;function vd(b){return function(T){var j=Fn(T);return j==Q?Uc(T):j==G?Hv(T):Ov(T,b(T))}}function Ss(b,T,j,Y,ae,be,De,Be){var Ge=T&x;if(!Ge&&typeof b!="function")throw new Ti(o);var ot=Y?Y.length:0;if(ot||(T&=~(_|k),Y=ae=e),De=De===e?De:hn(Jt(De),0),Be=Be===e?Be:Jt(Be),ot-=ae?ae.length:0,T&k){var ft=Y,ut=ae;Y=ae=e}var vt=Ge?e:uh(b),Ft=[b,T,j,Y,ae,ft,ut,be,De,Be];if(vt&&U2(Ft,vt),b=Ft[0],T=Ft[1],j=Ft[2],Y=Ft[3],ae=Ft[4],Be=Ft[9]=Ft[9]===e?Ge?0:b.length:hn(Ft[9]-ot,0),!Be&&T&(w|y)&&(T&=~(w|y)),!T||T==v)var Lt=y2(b,T,j);else T==w||T==y?Lt=_2(b,T,Be):(T==_||T==(v|_))&&!ae.length?Lt=E2(b,T,j,Y):Lt=_l.apply(e,Ft);var tr=vt?J0:Ad;return Fd(tr(Lt,Ft),b,T)}function xd(b,T,j,Y){return b===e||Ki(b,uo[j])&&!Tr.call(Y,j)?T:b}function bd(b,T,j,Y,ae,be){return Hr(b)&&Hr(T)&&(be.set(T,b),xl(b,T,e,bd,be),be.delete(T)),b}function S2(b){return hf(b)?e:b}function wd(b,T,j,Y,ae,be){var De=j&m,Be=b.length,Ge=T.length;if(Be!=Ge&&!(De&&Ge>Be))return!1;var ot=be.get(b),ft=be.get(T);if(ot&&ft)return ot==T&&ft==b;var ut=-1,vt=!0,Ft=j&d?new ba:e;for(be.set(b,T),be.set(T,b);++ut<Be;){var Lt=b[ut],tr=T[ut];if(Y)var Ut=De?Y(tr,Lt,ut,T,b,be):Y(Lt,tr,ut,b,T,be);if(Ut!==e){if(Ut)continue;vt=!1;break}if(Ft){if(!Yt(T,function(lr,dr){if(!Zo(Ft,dr)&&(Lt===lr||ae(Lt,lr,j,Y,be)))return Ft.push(dr)})){vt=!1;break}}else if(!(Lt===tr||ae(Lt,tr,j,Y,be))){vt=!1;break}}return be.delete(b),be.delete(T),vt}function k2(b,T,j,Y,ae,be,De){switch(j){case ie:if(b.byteLength!=T.byteLength||b.byteOffset!=T.byteOffset)return!1;b=b.buffer,T=T.buffer;case Oe:return!(b.byteLength!=T.byteLength||!be(new al(b),new al(T)));case te:case oe:case re:return Ki(+b,+T);case Ne:return b.name==T.name&&b.message==T.message;case ee:case Z:return b==T+"";case Q:var Be=Uc;case G:var Ge=Y&m;if(Be||(Be=el),b.size!=T.size&&!Ge)return!1;var ot=De.get(b);if(ot)return ot==T;Y|=d,De.set(b,T);var ft=wd(Be(b),Be(T),Y,ae,be,De);return De.delete(b),ft;case de:if(tf)return tf.call(b)==tf.call(T)}return!1}function C2(b,T,j,Y,ae,be){var De=j&m,Be=ch(b),Ge=Be.length,ot=ch(T),ft=ot.length;if(Ge!=ft&&!De)return!1;for(var ut=Ge;ut--;){var vt=Be[ut];if(!(De?vt in T:Tr.call(T,vt)))return!1}var Ft=be.get(b),Lt=be.get(T);if(Ft&&Lt)return Ft==T&&Lt==b;var tr=!0;be.set(b,T),be.set(T,b);for(var Ut=De;++ut<Ge;){vt=Be[ut];var lr=b[vt],dr=T[vt];if(Y)var di=De?Y(dr,lr,vt,T,b,be):Y(lr,dr,vt,b,T,be);if(!(di===e?lr===dr||ae(lr,dr,j,Y,be):di)){tr=!1;break}Ut||(Ut=vt=="constructor")}if(tr&&!Ut){var Wn=b.constructor,pi=T.constructor;Wn!=pi&&"constructor"in b&&"constructor"in T&&!(typeof Wn=="function"&&Wn instanceof Wn&&typeof pi=="function"&&pi instanceof pi)&&(tr=!1)}return be.delete(b),be.delete(T),tr}function ks(b){return xh(kd(b,e,Nd),b+"")}function ch(b){return j0(b,gn,ph)}function hh(b){return j0(b,qn,yd)}var uh=ul?function(b){return ul.get(b)}:Mh;function kl(b){for(var T=b.name+"",j=mo[T],Y=Tr.call(mo,T)?j.length:0;Y--;){var ae=j[Y],be=ae.func;if(be==null||be==b)return ae.name}return T}function bo(b){var T=Tr.call(ge,"placeholder")?ge:b;return T.placeholder}function Pt(){var b=ge.iteratee||Fh;return b=b===Fh?$0:b,arguments.length?b(arguments[0],arguments[1]):b}function Cl(b,T){var j=b.__data__;return N2(T)?j[typeof T=="string"?"string":"hash"]:j.map}function dh(b){for(var T=gn(b),j=T.length;j--;){var Y=T[j],ae=b[Y];T[j]=[Y,ae,Td(ae)]}return T}function _a(b,T){var j=Lv(b,T);return W0(j)?j:e}function A2(b){var T=Tr.call(b,va),j=b[va];try{b[va]=e;var Y=!0}catch{}var ae=il.call(b);return Y&&(T?b[va]=j:delete b[va]),ae}var ph=Hc?function(b){return b==null?[]:(b=Mr(b),is(Hc(b),function(T){return C0.call(b,T)}))}:Ih,yd=Hc?function(b){for(var T=[];b;)ht(T,ph(b)),b=ol(b);return T}:Ih,Fn=jn;(Wc&&Fn(new Wc(new ArrayBuffer(1)))!=ie||Qo&&Fn(new Qo)!=Q||$c&&Fn($c.resolve())!=ce||po&&Fn(new po)!=G||qo&&Fn(new qo)!=K)&&(Fn=function(b){var T=jn(b),j=T==Ce?b.constructor:e,Y=j?Ea(j):"";if(Y)switch(Y){case cx:return ie;case hx:return Q;case ux:return ce;case dx:return G;case px:return K}return T});function F2(b,T,j){for(var Y=-1,ae=j.length;++Y<ae;){var be=j[Y],De=be.size;switch(be.type){case"drop":b+=De;break;case"dropRight":T-=De;break;case"take":T=An(T,b+De);break;case"takeRight":b=hn(b,T-De);break}}return{start:b,end:T}}function R2(b){var T=b.match(le);return T?T[1].split(Ee):[]}function _d(b,T,j){T=Zs(T,b);for(var Y=-1,ae=T.length,be=!1;++Y<ae;){var De=os(T[Y]);if(!(be=b!=null&&j(b,De)))break;b=b[De]}return be||++Y!=ae?be:(ae=b==null?0:b.length,!!ae&&Dl(ae)&&Cs(De,ae)&&(Gt(b)||Ta(b)))}function M2(b){var T=b.length,j=new b.constructor(T);return T&&typeof b[0]=="string"&&Tr.call(b,"index")&&(j.index=b.index,j.input=b.input),j}function Ed(b){return typeof b.constructor=="function"&&!lf(b)?go(ol(b)):{}}function I2(b,T,j){var Y=b.constructor;switch(T){case Oe:return oh(b);case te:case oe:return new Y(+b);case ie:return m2(b,j);case fe:case we:case Fe:case Ue:case Pe:case $e:case rt:case Ze:case Se:return sd(b,j);case Q:return new Y;case re:case Z:return new Y(b);case ee:return g2(b);case G:return new Y;case de:return v2(b)}}function O2(b,T){var j=T.length;if(!j)return b;var Y=j-1;return T[Y]=(j>1?"& ":"")+T[Y],T=T.join(j>2?", ":" "),b.replace(Nt,`{
|
||
/* [wrapped with `+T+`] */
|
||
`)}function D2(b){return Gt(b)||Ta(b)||!!(A0&&b&&b[A0])}function Cs(b,T){var j=typeof b;return T=T??E,!!T&&(j=="number"||j!="symbol"&&tt.test(b))&&b>-1&&b%1==0&&b<T}function Hn(b,T,j){if(!Hr(j))return!1;var Y=typeof T;return(Y=="number"?Qn(j)&&Cs(T,j.length):Y=="string"&&T in j)?Ki(j[T],b):!1}function mh(b,T){if(Gt(b))return!1;var j=typeof b;return j=="number"||j=="symbol"||j=="boolean"||b==null||ui(b)?!0:kt.test(b)||!Bt.test(b)||T!=null&&b in Mr(T)}function N2(b){var T=typeof b;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?b!=="__proto__":b===null}function gh(b){var T=kl(b),j=ge[T];if(typeof j!="function"||!(T in hr.prototype))return!1;if(b===j)return!0;var Y=uh(j);return!!Y&&b===Y[0]}function P2(b){return!!T0&&T0 in b}var B2=rl?As:Oh;function lf(b){var T=b&&b.constructor,j=typeof T=="function"&&T.prototype||uo;return b===j}function Td(b){return b===b&&!Hr(b)}function Sd(b,T){return function(j){return j==null?!1:j[b]===T&&(T!==e||b in Mr(j))}}function L2(b){var T=Il(b,function(Y){return j.size===a&&j.clear(),Y}),j=T.cache;return T}function U2(b,T){var j=b[1],Y=T[1],ae=j|Y,be=ae<(v|x|F),De=Y==F&&j==w||Y==F&&j==O&&b[7].length<=T[8]||Y==(F|O)&&T[7].length<=T[8]&&j==w;if(!(be||De))return b;Y&v&&(b[2]=T[2],ae|=j&v?0:g);var Be=T[3];if(Be){var Ge=b[3];b[3]=Ge?od(Ge,Be,T[4]):Be,b[4]=Ge?Vs(b[3],f):T[4]}return Be=T[5],Be&&(Ge=b[5],b[5]=Ge?fd(Ge,Be,T[6]):Be,b[6]=Ge?Vs(b[5],f):T[6]),Be=T[7],Be&&(b[7]=Be),Y&F&&(b[8]=b[8]==null?T[8]:An(b[8],T[8])),b[9]==null&&(b[9]=T[9]),b[0]=T[0],b[1]=ae,b}function j2(b){var T=[];if(b!=null)for(var j in Mr(b))T.push(j);return T}function H2(b){return il.call(b)}function kd(b,T,j){return T=hn(T===e?b.length-1:T,0),function(){for(var Y=arguments,ae=-1,be=hn(Y.length-T,0),De=et(be);++ae<be;)De[ae]=Y[T+ae];ae=-1;for(var Be=et(T+1);++ae<T;)Be[ae]=Y[ae];return Be[T]=j(De),Or(b,this,Be)}}function Cd(b,T){return T.length<2?b:ya(b,Ci(T,0,-1))}function W2(b,T){for(var j=b.length,Y=An(T.length,j),ae=Jn(b);Y--;){var be=T[Y];b[Y]=Cs(be,j)?ae[be]:e}return b}function vh(b,T){if(!(T==="constructor"&&typeof b[T]=="function")&&T!="__proto__")return b[T]}var Ad=Rd(J0),cf=nx||function(b,T){return $t.setTimeout(b,T)},xh=Rd(h2);function Fd(b,T,j){var Y=T+"";return xh(b,O2(Y,$2(R2(Y),j)))}function Rd(b){var T=0,j=0;return function(){var Y=ox(),ae=X-(Y-j);if(j=Y,ae>0){if(++T>=W)return arguments[0]}else T=0;return b.apply(e,arguments)}}function Al(b,T){var j=-1,Y=b.length,ae=Y-1;for(T=T===e?Y:T;++j<T;){var be=eh(j,ae),De=b[be];b[be]=b[j],b[j]=De}return b.length=T,b}var Md=L2(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(er,function(j,Y,ae,be){T.push(ae?be.replace(ye,"$1"):Y||j)}),T});function os(b){if(typeof b=="string"||ui(b))return b;var T=b+"";return T=="0"&&1/b==-M?"-0":T}function Ea(b){if(b!=null){try{return nl.call(b)}catch{}try{return b+""}catch{}}return""}function $2(b,T){return _n(C,function(j){var Y="_."+j[0];T&j[1]&&!ue(b,Y)&&b.push(Y)}),b.sort()}function Id(b){if(b instanceof hr)return b.clone();var T=new Si(b.__wrapped__,b.__chain__);return T.__actions__=Jn(b.__actions__),T.__index__=b.__index__,T.__values__=b.__values__,T}function z2(b,T,j){(j?Hn(b,T,j):T===e)?T=1:T=hn(Jt(T),0);var Y=b==null?0:b.length;if(!Y||T<1)return[];for(var ae=0,be=0,De=et(cl(Y/T));ae<Y;)De[be++]=Ci(b,ae,ae+=T);return De}function X2(b){for(var T=-1,j=b==null?0:b.length,Y=0,ae=[];++T<j;){var be=b[T];be&&(ae[Y++]=be)}return ae}function V2(){var b=arguments.length;if(!b)return[];for(var T=et(b-1),j=arguments[0],Y=b;Y--;)T[Y-1]=arguments[Y];return ht(Gt(j)?Jn(j):[j],En(T,1))}var G2=rr(function(b,T){return Gr(b)?nf(b,En(T,1,Gr,!0)):[]}),K2=rr(function(b,T){var j=Ai(T);return Gr(j)&&(j=e),Gr(b)?nf(b,En(T,1,Gr,!0),Pt(j,2)):[]}),Y2=rr(function(b,T){var j=Ai(T);return Gr(j)&&(j=e),Gr(b)?nf(b,En(T,1,Gr,!0),e,j):[]});function Z2(b,T,j){var Y=b==null?0:b.length;return Y?(T=j||T===e?1:Jt(T),Ci(b,T<0?0:T,Y)):[]}function J2(b,T,j){var Y=b==null?0:b.length;return Y?(T=j||T===e?1:Jt(T),T=Y-T,Ci(b,0,T<0?0:T)):[]}function Q2(b,T){return b&&b.length?wl(b,Pt(T,3),!0,!0):[]}function q2(b,T){return b&&b.length?wl(b,Pt(T,3),!0):[]}function eb(b,T,j,Y){var ae=b==null?0:b.length;return ae?(j&&typeof j!="number"&&Hn(b,T,j)&&(j=0,Y=ae),Vx(b,T,j,Y)):[]}function Od(b,T,j){var Y=b==null?0:b.length;if(!Y)return-1;var ae=j==null?0:Jt(j);return ae<0&&(ae=hn(Y+ae,0)),ln(b,Pt(T,3),ae)}function Dd(b,T,j){var Y=b==null?0:b.length;if(!Y)return-1;var ae=Y-1;return j!==e&&(ae=Jt(j),ae=j<0?hn(Y+ae,0):An(ae,Y-1)),ln(b,Pt(T,3),ae,!0)}function Nd(b){var T=b==null?0:b.length;return T?En(b,1):[]}function tb(b){var T=b==null?0:b.length;return T?En(b,M):[]}function rb(b,T){var j=b==null?0:b.length;return j?(T=T===e?1:Jt(T),En(b,T)):[]}function nb(b){for(var T=-1,j=b==null?0:b.length,Y={};++T<j;){var ae=b[T];Y[ae[0]]=ae[1]}return Y}function Pd(b){return b&&b.length?b[0]:e}function ib(b,T,j){var Y=b==null?0:b.length;if(!Y)return-1;var ae=j==null?0:Jt(j);return ae<0&&(ae=hn(Y+ae,0)),Nr(b,T,ae)}function sb(b){var T=b==null?0:b.length;return T?Ci(b,0,-1):[]}var ab=rr(function(b){var T=Ye(b,sh);return T.length&&T[0]===b[0]?Yc(T):[]}),ob=rr(function(b){var T=Ai(b),j=Ye(b,sh);return T===Ai(j)?T=e:j.pop(),j.length&&j[0]===b[0]?Yc(j,Pt(T,2)):[]}),fb=rr(function(b){var T=Ai(b),j=Ye(b,sh);return T=typeof T=="function"?T:e,T&&j.pop(),j.length&&j[0]===b[0]?Yc(j,e,T):[]});function lb(b,T){return b==null?"":sx.call(b,T)}function Ai(b){var T=b==null?0:b.length;return T?b[T-1]:e}function cb(b,T,j){var Y=b==null?0:b.length;if(!Y)return-1;var ae=Y;return j!==e&&(ae=Jt(j),ae=ae<0?hn(Y+ae,0):An(ae,Y-1)),T===T?$v(b,T,ae):ln(b,Un,ae,!0)}function hb(b,T){return b&&b.length?G0(b,Jt(T)):e}var ub=rr(Bd);function Bd(b,T){return b&&b.length&&T&&T.length?qc(b,T):b}function db(b,T,j){return b&&b.length&&T&&T.length?qc(b,T,Pt(j,2)):b}function pb(b,T,j){return b&&b.length&&T&&T.length?qc(b,T,e,j):b}var mb=ks(function(b,T){var j=b==null?0:b.length,Y=Xc(b,T);return Z0(b,Ye(T,function(ae){return Cs(ae,j)?+ae:ae}).sort(ad)),Y});function gb(b,T){var j=[];if(!(b&&b.length))return j;var Y=-1,ae=[],be=b.length;for(T=Pt(T,3);++Y<be;){var De=b[Y];T(De,Y,b)&&(j.push(De),ae.push(Y))}return Z0(b,ae),j}function bh(b){return b==null?b:lx.call(b)}function vb(b,T,j){var Y=b==null?0:b.length;return Y?(j&&typeof j!="number"&&Hn(b,T,j)?(T=0,j=Y):(T=T==null?0:Jt(T),j=j===e?Y:Jt(j)),Ci(b,T,j)):[]}function xb(b,T){return bl(b,T)}function bb(b,T,j){return rh(b,T,Pt(j,2))}function wb(b,T){var j=b==null?0:b.length;if(j){var Y=bl(b,T);if(Y<j&&Ki(b[Y],T))return Y}return-1}function yb(b,T){return bl(b,T,!0)}function _b(b,T,j){return rh(b,T,Pt(j,2),!0)}function Eb(b,T){var j=b==null?0:b.length;if(j){var Y=bl(b,T,!0)-1;if(Ki(b[Y],T))return Y}return-1}function Tb(b){return b&&b.length?Q0(b):[]}function Sb(b,T){return b&&b.length?Q0(b,Pt(T,2)):[]}function kb(b){var T=b==null?0:b.length;return T?Ci(b,1,T):[]}function Cb(b,T,j){return b&&b.length?(T=j||T===e?1:Jt(T),Ci(b,0,T<0?0:T)):[]}function Ab(b,T,j){var Y=b==null?0:b.length;return Y?(T=j||T===e?1:Jt(T),T=Y-T,Ci(b,T<0?0:T,Y)):[]}function Fb(b,T){return b&&b.length?wl(b,Pt(T,3),!1,!0):[]}function Rb(b,T){return b&&b.length?wl(b,Pt(T,3)):[]}var Mb=rr(function(b){return Ys(En(b,1,Gr,!0))}),Ib=rr(function(b){var T=Ai(b);return Gr(T)&&(T=e),Ys(En(b,1,Gr,!0),Pt(T,2))}),Ob=rr(function(b){var T=Ai(b);return T=typeof T=="function"?T:e,Ys(En(b,1,Gr,!0),e,T)});function Db(b){return b&&b.length?Ys(b):[]}function Nb(b,T){return b&&b.length?Ys(b,Pt(T,2)):[]}function Pb(b,T){return T=typeof T=="function"?T:e,b&&b.length?Ys(b,e,T):[]}function wh(b){if(!(b&&b.length))return[];var T=0;return b=is(b,function(j){if(Gr(j))return T=hn(j.length,T),!0}),Bc(T,function(j){return Ye(b,li(j))})}function Ld(b,T){if(!(b&&b.length))return[];var j=wh(b);return T==null?j:Ye(j,function(Y){return Or(T,e,Y)})}var Bb=rr(function(b,T){return Gr(b)?nf(b,T):[]}),Lb=rr(function(b){return ih(is(b,Gr))}),Ub=rr(function(b){var T=Ai(b);return Gr(T)&&(T=e),ih(is(b,Gr),Pt(T,2))}),jb=rr(function(b){var T=Ai(b);return T=typeof T=="function"?T:e,ih(is(b,Gr),e,T)}),Hb=rr(wh);function Wb(b,T){return rd(b||[],T||[],rf)}function $b(b,T){return rd(b||[],T||[],of)}var zb=rr(function(b){var T=b.length,j=T>1?b[T-1]:e;return j=typeof j=="function"?(b.pop(),j):e,Ld(b,j)});function Ud(b){var T=ge(b);return T.__chain__=!0,T}function Xb(b,T){return T(b),b}function Fl(b,T){return T(b)}var Vb=ks(function(b){var T=b.length,j=T?b[0]:0,Y=this.__wrapped__,ae=function(be){return Xc(be,b)};return T>1||this.__actions__.length||!(Y instanceof hr)||!Cs(j)?this.thru(ae):(Y=Y.slice(j,+j+(T?1:0)),Y.__actions__.push({func:Fl,args:[ae],thisArg:e}),new Si(Y,this.__chain__).thru(function(be){return T&&!be.length&&be.push(e),be}))});function Gb(){return Ud(this)}function Kb(){return new Si(this.value(),this.__chain__)}function Yb(){this.__values__===e&&(this.__values__=qd(this.value()));var b=this.__index__>=this.__values__.length,T=b?e:this.__values__[this.__index__++];return{done:b,value:T}}function Zb(){return this}function Jb(b){for(var T,j=this;j instanceof pl;){var Y=Id(j);Y.__index__=0,Y.__values__=e,T?ae.__wrapped__=Y:T=Y;var ae=Y;j=j.__wrapped__}return ae.__wrapped__=b,T}function Qb(){var b=this.__wrapped__;if(b instanceof hr){var T=b;return this.__actions__.length&&(T=new hr(this)),T=T.reverse(),T.__actions__.push({func:Fl,args:[bh],thisArg:e}),new Si(T,this.__chain__)}return this.thru(bh)}function qb(){return td(this.__wrapped__,this.__actions__)}var ew=yl(function(b,T,j){Tr.call(b,j)?++b[j]:Ts(b,j,1)});function tw(b,T,j){var Y=Gt(b)?ys:Xx;return j&&Hn(b,T,j)&&(T=e),Y(b,Pt(T,3))}function rw(b,T){var j=Gt(b)?is:L0;return j(b,Pt(T,3))}var nw=ud(Od),iw=ud(Dd);function sw(b,T){return En(Rl(b,T),1)}function aw(b,T){return En(Rl(b,T),M)}function ow(b,T,j){return j=j===e?1:Jt(j),En(Rl(b,T),j)}function jd(b,T){var j=Gt(b)?_n:Ks;return j(b,Pt(T,3))}function Hd(b,T){var j=Gt(b)?$i:B0;return j(b,Pt(T,3))}var fw=yl(function(b,T,j){Tr.call(b,j)?b[j].push(T):Ts(b,j,[T])});function lw(b,T,j,Y){b=Qn(b)?b:yo(b),j=j&&!Y?Jt(j):0;var ae=b.length;return j<0&&(j=hn(ae+j,0)),Nl(b)?j<=ae&&b.indexOf(T,j)>-1:!!ae&&Nr(b,T,j)>-1}var cw=rr(function(b,T,j){var Y=-1,ae=typeof T=="function",be=Qn(b)?et(b.length):[];return Ks(b,function(De){be[++Y]=ae?Or(T,De,j):sf(De,T,j)}),be}),hw=yl(function(b,T,j){Ts(b,j,T)});function Rl(b,T){var j=Gt(b)?Ye:z0;return j(b,Pt(T,3))}function uw(b,T,j,Y){return b==null?[]:(Gt(T)||(T=T==null?[]:[T]),j=Y?e:j,Gt(j)||(j=j==null?[]:[j]),K0(b,T,j))}var dw=yl(function(b,T,j){b[j?0:1].push(T)},function(){return[[],[]]});function pw(b,T,j){var Y=Gt(b)?Mt:Yo,ae=arguments.length<3;return Y(b,Pt(T,4),j,ae,Ks)}function mw(b,T,j){var Y=Gt(b)?_t:Yo,ae=arguments.length<3;return Y(b,Pt(T,4),j,ae,B0)}function gw(b,T){var j=Gt(b)?is:L0;return j(b,Ol(Pt(T,3)))}function vw(b){var T=Gt(b)?O0:l2;return T(b)}function xw(b,T,j){(j?Hn(b,T,j):T===e)?T=1:T=Jt(T);var Y=Gt(b)?jx:c2;return Y(b,T)}function bw(b){var T=Gt(b)?Hx:u2;return T(b)}function ww(b){if(b==null)return 0;if(Qn(b))return Nl(b)?co(b):b.length;var T=Fn(b);return T==Q||T==G?b.size:Jc(b).length}function yw(b,T,j){var Y=Gt(b)?Yt:d2;return j&&Hn(b,T,j)&&(T=e),Y(b,Pt(T,3))}var _w=rr(function(b,T){if(b==null)return[];var j=T.length;return j>1&&Hn(b,T[0],T[1])?T=[]:j>2&&Hn(T[0],T[1],T[2])&&(T=[T[0]]),K0(b,En(T,1),[])}),Ml=rx||function(){return $t.Date.now()};function Ew(b,T){if(typeof T!="function")throw new Ti(o);return b=Jt(b),function(){if(--b<1)return T.apply(this,arguments)}}function Wd(b,T,j){return T=j?e:T,T=b&&T==null?b.length:T,Ss(b,F,e,e,e,e,T)}function $d(b,T){var j;if(typeof T!="function")throw new Ti(o);return b=Jt(b),function(){return--b>0&&(j=T.apply(this,arguments)),b<=1&&(T=e),j}}var yh=rr(function(b,T,j){var Y=v;if(j.length){var ae=Vs(j,bo(yh));Y|=_}return Ss(b,Y,T,j,ae)}),zd=rr(function(b,T,j){var Y=v|x;if(j.length){var ae=Vs(j,bo(zd));Y|=_}return Ss(T,Y,b,j,ae)});function Xd(b,T,j){T=j?e:T;var Y=Ss(b,w,e,e,e,e,e,T);return Y.placeholder=Xd.placeholder,Y}function Vd(b,T,j){T=j?e:T;var Y=Ss(b,y,e,e,e,e,e,T);return Y.placeholder=Vd.placeholder,Y}function Gd(b,T,j){var Y,ae,be,De,Be,Ge,ot=0,ft=!1,ut=!1,vt=!0;if(typeof b!="function")throw new Ti(o);T=Fi(T)||0,Hr(j)&&(ft=!!j.leading,ut="maxWait"in j,be=ut?hn(Fi(j.maxWait)||0,T):be,vt="trailing"in j?!!j.trailing:vt);function Ft(Kr){var Yi=Y,Rs=ae;return Y=ae=e,ot=Kr,De=b.apply(Rs,Yi),De}function Lt(Kr){return ot=Kr,Be=cf(lr,T),ft?Ft(Kr):De}function tr(Kr){var Yi=Kr-Ge,Rs=Kr-ot,up=T-Yi;return ut?An(up,be-Rs):up}function Ut(Kr){var Yi=Kr-Ge,Rs=Kr-ot;return Ge===e||Yi>=T||Yi<0||ut&&Rs>=be}function lr(){var Kr=Ml();if(Ut(Kr))return dr(Kr);Be=cf(lr,tr(Kr))}function dr(Kr){return Be=e,vt&&Y?Ft(Kr):(Y=ae=e,De)}function di(){Be!==e&&nd(Be),ot=0,Y=Ge=ae=Be=e}function Wn(){return Be===e?De:dr(Ml())}function pi(){var Kr=Ml(),Yi=Ut(Kr);if(Y=arguments,ae=this,Ge=Kr,Yi){if(Be===e)return Lt(Ge);if(ut)return nd(Be),Be=cf(lr,T),Ft(Ge)}return Be===e&&(Be=cf(lr,T)),De}return pi.cancel=di,pi.flush=Wn,pi}var Tw=rr(function(b,T){return P0(b,1,T)}),Sw=rr(function(b,T,j){return P0(b,Fi(T)||0,j)});function kw(b){return Ss(b,N)}function Il(b,T){if(typeof b!="function"||T!=null&&typeof T!="function")throw new Ti(o);var j=function(){var Y=arguments,ae=T?T.apply(this,Y):Y[0],be=j.cache;if(be.has(ae))return be.get(ae);var De=b.apply(this,Y);return j.cache=be.set(ae,De)||be,De};return j.cache=new(Il.Cache||Es),j}Il.Cache=Es;function Ol(b){if(typeof b!="function")throw new Ti(o);return function(){var T=arguments;switch(T.length){case 0:return!b.call(this);case 1:return!b.call(this,T[0]);case 2:return!b.call(this,T[0],T[1]);case 3:return!b.call(this,T[0],T[1],T[2])}return!b.apply(this,T)}}function Cw(b){return $d(2,b)}var Aw=p2(function(b,T){T=T.length==1&&Gt(T[0])?Ye(T[0],ci(Pt())):Ye(En(T,1),ci(Pt()));var j=T.length;return rr(function(Y){for(var ae=-1,be=An(Y.length,j);++ae<be;)Y[ae]=T[ae].call(this,Y[ae]);return Or(b,this,Y)})}),_h=rr(function(b,T){var j=Vs(T,bo(_h));return Ss(b,_,e,T,j)}),Kd=rr(function(b,T){var j=Vs(T,bo(Kd));return Ss(b,k,e,T,j)}),Fw=ks(function(b,T){return Ss(b,O,e,e,e,T)});function Rw(b,T){if(typeof b!="function")throw new Ti(o);return T=T===e?T:Jt(T),rr(b,T)}function Mw(b,T){if(typeof b!="function")throw new Ti(o);return T=T==null?0:hn(Jt(T),0),rr(function(j){var Y=j[T],ae=Js(j,0,T);return Y&&ht(ae,Y),Or(b,this,ae)})}function Iw(b,T,j){var Y=!0,ae=!0;if(typeof b!="function")throw new Ti(o);return Hr(j)&&(Y="leading"in j?!!j.leading:Y,ae="trailing"in j?!!j.trailing:ae),Gd(b,T,{leading:Y,maxWait:T,trailing:ae})}function Ow(b){return Wd(b,1)}function Dw(b,T){return _h(ah(T),b)}function Nw(){if(!arguments.length)return[];var b=arguments[0];return Gt(b)?b:[b]}function Pw(b){return ki(b,p)}function Bw(b,T){return T=typeof T=="function"?T:e,ki(b,p,T)}function Lw(b){return ki(b,l|p)}function Uw(b,T){return T=typeof T=="function"?T:e,ki(b,l|p,T)}function jw(b,T){return T==null||N0(b,T,gn(T))}function Ki(b,T){return b===T||b!==b&&T!==T}var Hw=Sl(Kc),Ww=Sl(function(b,T){return b>=T}),Ta=H0(function(){return arguments}())?H0:function(b){return $r(b)&&Tr.call(b,"callee")&&!C0.call(b,"callee")},Gt=et.isArray,$w=on?ci(on):Jx;function Qn(b){return b!=null&&Dl(b.length)&&!As(b)}function Gr(b){return $r(b)&&Qn(b)}function zw(b){return b===!0||b===!1||$r(b)&&jn(b)==te}var Qs=ix||Oh,Xw=pn?ci(pn):Qx;function Vw(b){return $r(b)&&b.nodeType===1&&!hf(b)}function Gw(b){if(b==null)return!0;if(Qn(b)&&(Gt(b)||typeof b=="string"||typeof b.splice=="function"||Qs(b)||wo(b)||Ta(b)))return!b.length;var T=Fn(b);if(T==Q||T==G)return!b.size;if(lf(b))return!Jc(b).length;for(var j in b)if(Tr.call(b,j))return!1;return!0}function Kw(b,T){return af(b,T)}function Yw(b,T,j){j=typeof j=="function"?j:e;var Y=j?j(b,T):e;return Y===e?af(b,T,e,j):!!Y}function Eh(b){if(!$r(b))return!1;var T=jn(b);return T==Ne||T==he||typeof b.message=="string"&&typeof b.name=="string"&&!hf(b)}function Zw(b){return typeof b=="number"&&F0(b)}function As(b){if(!Hr(b))return!1;var T=jn(b);return T==q||T==ne||T==V||T==se}function Yd(b){return typeof b=="number"&&b==Jt(b)}function Dl(b){return typeof b=="number"&&b>-1&&b%1==0&&b<=E}function Hr(b){var T=typeof b;return b!=null&&(T=="object"||T=="function")}function $r(b){return b!=null&&typeof b=="object"}var Zd=Lr?ci(Lr):e2;function Jw(b,T){return b===T||Zc(b,T,dh(T))}function Qw(b,T,j){return j=typeof j=="function"?j:e,Zc(b,T,dh(T),j)}function qw(b){return Jd(b)&&b!=+b}function ey(b){if(B2(b))throw new Xt(s);return W0(b)}function ty(b){return b===null}function ry(b){return b==null}function Jd(b){return typeof b=="number"||$r(b)&&jn(b)==re}function hf(b){if(!$r(b)||jn(b)!=Ce)return!1;var T=ol(b);if(T===null)return!0;var j=Tr.call(T,"constructor")&&T.constructor;return typeof j=="function"&&j instanceof j&&nl.call(j)==Qv}var Th=qr?ci(qr):t2;function ny(b){return Yd(b)&&b>=-E&&b<=E}var Qd=fn?ci(fn):r2;function Nl(b){return typeof b=="string"||!Gt(b)&&$r(b)&&jn(b)==Z}function ui(b){return typeof b=="symbol"||$r(b)&&jn(b)==de}var wo=fi?ci(fi):n2;function iy(b){return b===e}function sy(b){return $r(b)&&Fn(b)==K}function ay(b){return $r(b)&&jn(b)==Te}var oy=Sl(Qc),fy=Sl(function(b,T){return b<=T});function qd(b){if(!b)return[];if(Qn(b))return Nl(b)?Vi(b):Jn(b);if(Jo&&b[Jo])return jv(b[Jo]());var T=Fn(b),j=T==Q?Uc:T==G?el:yo;return j(b)}function Fs(b){if(!b)return b===0?b:0;if(b=Fi(b),b===M||b===-M){var T=b<0?-1:1;return T*A}return b===b?b:0}function Jt(b){var T=Fs(b),j=T%1;return T===T?j?T-j:T:0}function ep(b){return b?wa(Jt(b),0,L):0}function Fi(b){if(typeof b=="number")return b;if(ui(b))return B;if(Hr(b)){var T=typeof b.valueOf=="function"?b.valueOf():b;b=Hr(T)?T+"":T}if(typeof b!="string")return b===0?b:+b;b=b0(b);var j=Le.test(b);return j||He.test(b)?ze(b.slice(2),j?2:8):Je.test(b)?B:+b}function tp(b){return as(b,qn(b))}function ly(b){return b?wa(Jt(b),-E,E):b===0?b:0}function _r(b){return b==null?"":hi(b)}var cy=vo(function(b,T){if(lf(T)||Qn(T)){as(T,gn(T),b);return}for(var j in T)Tr.call(T,j)&&rf(b,j,T[j])}),rp=vo(function(b,T){as(T,qn(T),b)}),Pl=vo(function(b,T,j,Y){as(T,qn(T),b,Y)}),hy=vo(function(b,T,j,Y){as(T,gn(T),b,Y)}),uy=ks(Xc);function dy(b,T){var j=go(b);return T==null?j:D0(j,T)}var py=rr(function(b,T){b=Mr(b);var j=-1,Y=T.length,ae=Y>2?T[2]:e;for(ae&&Hn(T[0],T[1],ae)&&(Y=1);++j<Y;)for(var be=T[j],De=qn(be),Be=-1,Ge=De.length;++Be<Ge;){var ot=De[Be],ft=b[ot];(ft===e||Ki(ft,uo[ot])&&!Tr.call(b,ot))&&(b[ot]=be[ot])}return b}),my=rr(function(b){return b.push(e,bd),Or(np,e,b)});function gy(b,T){return mn(b,Pt(T,3),ss)}function vy(b,T){return mn(b,Pt(T,3),Gc)}function xy(b,T){return b==null?b:Vc(b,Pt(T,3),qn)}function by(b,T){return b==null?b:U0(b,Pt(T,3),qn)}function wy(b,T){return b&&ss(b,Pt(T,3))}function yy(b,T){return b&&Gc(b,Pt(T,3))}function _y(b){return b==null?[]:vl(b,gn(b))}function Ey(b){return b==null?[]:vl(b,qn(b))}function Sh(b,T,j){var Y=b==null?e:ya(b,T);return Y===e?j:Y}function Ty(b,T){return b!=null&&_d(b,T,Gx)}function kh(b,T){return b!=null&&_d(b,T,Kx)}var Sy=pd(function(b,T,j){T!=null&&typeof T.toString!="function"&&(T=il.call(T)),b[T]=j},Ah(ei)),ky=pd(function(b,T,j){T!=null&&typeof T.toString!="function"&&(T=il.call(T)),Tr.call(b,T)?b[T].push(j):b[T]=[j]},Pt),Cy=rr(sf);function gn(b){return Qn(b)?I0(b):Jc(b)}function qn(b){return Qn(b)?I0(b,!0):i2(b)}function Ay(b,T){var j={};return T=Pt(T,3),ss(b,function(Y,ae,be){Ts(j,T(Y,ae,be),Y)}),j}function Fy(b,T){var j={};return T=Pt(T,3),ss(b,function(Y,ae,be){Ts(j,ae,T(Y,ae,be))}),j}var Ry=vo(function(b,T,j){xl(b,T,j)}),np=vo(function(b,T,j,Y){xl(b,T,j,Y)}),My=ks(function(b,T){var j={};if(b==null)return j;var Y=!1;T=Ye(T,function(be){return be=Zs(be,b),Y||(Y=be.length>1),be}),as(b,hh(b),j),Y&&(j=ki(j,l|u|p,S2));for(var ae=T.length;ae--;)nh(j,T[ae]);return j});function Iy(b,T){return ip(b,Ol(Pt(T)))}var Oy=ks(function(b,T){return b==null?{}:a2(b,T)});function ip(b,T){if(b==null)return{};var j=Ye(hh(b),function(Y){return[Y]});return T=Pt(T),Y0(b,j,function(Y,ae){return T(Y,ae[0])})}function Dy(b,T,j){T=Zs(T,b);var Y=-1,ae=T.length;for(ae||(ae=1,b=e);++Y<ae;){var be=b==null?e:b[os(T[Y])];be===e&&(Y=ae,be=j),b=As(be)?be.call(b):be}return b}function Ny(b,T,j){return b==null?b:of(b,T,j)}function Py(b,T,j,Y){return Y=typeof Y=="function"?Y:e,b==null?b:of(b,T,j,Y)}var sp=vd(gn),ap=vd(qn);function By(b,T,j){var Y=Gt(b),ae=Y||Qs(b)||wo(b);if(T=Pt(T,4),j==null){var be=b&&b.constructor;ae?j=Y?new be:[]:Hr(b)?j=As(be)?go(ol(b)):{}:j={}}return(ae?_n:ss)(b,function(De,Be,Ge){return T(j,De,Be,Ge)}),j}function Ly(b,T){return b==null?!0:nh(b,T)}function Uy(b,T,j){return b==null?b:ed(b,T,ah(j))}function jy(b,T,j,Y){return Y=typeof Y=="function"?Y:e,b==null?b:ed(b,T,ah(j),Y)}function yo(b){return b==null?[]:Lc(b,gn(b))}function Hy(b){return b==null?[]:Lc(b,qn(b))}function Wy(b,T,j){return j===e&&(j=T,T=e),j!==e&&(j=Fi(j),j=j===j?j:0),T!==e&&(T=Fi(T),T=T===T?T:0),wa(Fi(b),T,j)}function $y(b,T,j){return T=Fs(T),j===e?(j=T,T=0):j=Fs(j),b=Fi(b),Yx(b,T,j)}function zy(b,T,j){if(j&&typeof j!="boolean"&&Hn(b,T,j)&&(T=j=e),j===e&&(typeof T=="boolean"?(j=T,T=e):typeof b=="boolean"&&(j=b,b=e)),b===e&&T===e?(b=0,T=1):(b=Fs(b),T===e?(T=b,b=0):T=Fs(T)),b>T){var Y=b;b=T,T=Y}if(j||b%1||T%1){var ae=R0();return An(b+ae*(T-b+ke("1e-"+((ae+"").length-1))),T)}return eh(b,T)}var Xy=xo(function(b,T,j){return T=T.toLowerCase(),b+(j?op(T):T)});function op(b){return Ch(_r(b).toLowerCase())}function fp(b){return b=_r(b),b&&b.replace(me,Nv).replace(Vo,"")}function Vy(b,T,j){b=_r(b),T=hi(T);var Y=b.length;j=j===e?Y:wa(Jt(j),0,Y);var ae=j;return j-=T.length,j>=0&&b.slice(j,ae)==T}function Gy(b){return b=_r(b),b&&wt.test(b)?b.replace(At,Pv):b}function Ky(b){return b=_r(b),b&&Ct.test(b)?b.replace(zt,"\\$&"):b}var Yy=xo(function(b,T,j){return b+(j?"-":"")+T.toLowerCase()}),Zy=xo(function(b,T,j){return b+(j?" ":"")+T.toLowerCase()}),Jy=hd("toLowerCase");function Qy(b,T,j){b=_r(b),T=Jt(T);var Y=T?co(b):0;if(!T||Y>=T)return b;var ae=(T-Y)/2;return Tl(hl(ae),j)+b+Tl(cl(ae),j)}function qy(b,T,j){b=_r(b),T=Jt(T);var Y=T?co(b):0;return T&&Y<T?b+Tl(T-Y,j):b}function e_(b,T,j){b=_r(b),T=Jt(T);var Y=T?co(b):0;return T&&Y<T?Tl(T-Y,j)+b:b}function t_(b,T,j){return j||T==null?T=0:T&&(T=+T),fx(_r(b).replace(Kt,""),T||0)}function r_(b,T,j){return(j?Hn(b,T,j):T===e)?T=1:T=Jt(T),th(_r(b),T)}function n_(){var b=arguments,T=_r(b[0]);return b.length<3?T:T.replace(b[1],b[2])}var i_=xo(function(b,T,j){return b+(j?"_":"")+T.toLowerCase()});function s_(b,T,j){return j&&typeof j!="number"&&Hn(b,T,j)&&(T=j=e),j=j===e?L:j>>>0,j?(b=_r(b),b&&(typeof T=="string"||T!=null&&!Th(T))&&(T=hi(T),!T&&lo(b))?Js(Vi(b),0,j):b.split(T,j)):[]}var a_=xo(function(b,T,j){return b+(j?" ":"")+Ch(T)});function o_(b,T,j){return b=_r(b),j=j==null?0:wa(Jt(j),0,b.length),T=hi(T),b.slice(j,j+T.length)==T}function f_(b,T,j){var Y=ge.templateSettings;j&&Hn(b,T,j)&&(T=e),b=_r(b),T=Pl({},T,Y,xd);var ae=Pl({},T.imports,Y.imports,xd),be=gn(ae),De=Lc(ae,be),Be,Ge,ot=0,ft=T.interpolate||Me,ut="__p += '",vt=jc((T.escape||Me).source+"|"+ft.source+"|"+(ft===xt?_e:Me).source+"|"+(T.evaluate||Me).source+"|$","g"),Ft="//# sourceURL="+(Tr.call(T,"sourceURL")?(T.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ga+"]")+`
|
||
`;b.replace(vt,function(Ut,lr,dr,di,Wn,pi){return dr||(dr=di),ut+=b.slice(ot,pi).replace(Re,Bv),lr&&(Be=!0,ut+=`' +
|
||
__e(`+lr+`) +
|
||
'`),Wn&&(Ge=!0,ut+=`';
|
||
`+Wn+`;
|
||
__p += '`),dr&&(ut+=`' +
|
||
((__t = (`+dr+`)) == null ? '' : __t) +
|
||
'`),ot=pi+Ut.length,Ut}),ut+=`';
|
||
`;var Lt=Tr.call(T,"variable")&&T.variable;if(!Lt)ut=`with (obj) {
|
||
`+ut+`
|
||
}
|
||
`;else if(xe.test(Lt))throw new Xt(h);ut=(Ge?ut.replace(je,""):ut).replace(Ke,"$1").replace(st,"$1;"),ut="function("+(Lt||"obj")+`) {
|
||
`+(Lt?"":`obj || (obj = {});
|
||
`)+"var __t, __p = ''"+(Be?", __e = _.escape":"")+(Ge?`, __j = Array.prototype.join;
|
||
function print() { __p += __j.call(arguments, '') }
|
||
`:`;
|
||
`)+ut+`return __p
|
||
}`;var tr=cp(function(){return wr(be,Ft+"return "+ut).apply(e,De)});if(tr.source=ut,Eh(tr))throw tr;return tr}function l_(b){return _r(b).toLowerCase()}function c_(b){return _r(b).toUpperCase()}function h_(b,T,j){if(b=_r(b),b&&(j||T===e))return b0(b);if(!b||!(T=hi(T)))return b;var Y=Vi(b),ae=Vi(T),be=w0(Y,ae),De=y0(Y,ae)+1;return Js(Y,be,De).join("")}function u_(b,T,j){if(b=_r(b),b&&(j||T===e))return b.slice(0,E0(b)+1);if(!b||!(T=hi(T)))return b;var Y=Vi(b),ae=y0(Y,Vi(T))+1;return Js(Y,0,ae).join("")}function d_(b,T,j){if(b=_r(b),b&&(j||T===e))return b.replace(Kt,"");if(!b||!(T=hi(T)))return b;var Y=Vi(b),ae=w0(Y,Vi(T));return Js(Y,ae).join("")}function p_(b,T){var j=U,Y=z;if(Hr(T)){var ae="separator"in T?T.separator:ae;j="length"in T?Jt(T.length):j,Y="omission"in T?hi(T.omission):Y}b=_r(b);var be=b.length;if(lo(b)){var De=Vi(b);be=De.length}if(j>=be)return b;var Be=j-co(Y);if(Be<1)return Y;var Ge=De?Js(De,0,Be).join(""):b.slice(0,Be);if(ae===e)return Ge+Y;if(De&&(Be+=Ge.length-Be),Th(ae)){if(b.slice(Be).search(ae)){var ot,ft=Ge;for(ae.global||(ae=jc(ae.source,_r(We.exec(ae))+"g")),ae.lastIndex=0;ot=ae.exec(ft);)var ut=ot.index;Ge=Ge.slice(0,ut===e?Be:ut)}}else if(b.indexOf(hi(ae),Be)!=Be){var vt=Ge.lastIndexOf(ae);vt>-1&&(Ge=Ge.slice(0,vt))}return Ge+Y}function m_(b){return b=_r(b),b&&bt.test(b)?b.replace(St,zv):b}var g_=xo(function(b,T,j){return b+(j?" ":"")+T.toUpperCase()}),Ch=hd("toUpperCase");function lp(b,T,j){return b=_r(b),T=j?e:T,T===e?Uv(b)?Gv(b):en(b):b.match(T)||[]}var cp=rr(function(b,T){try{return Or(b,e,T)}catch(j){return Eh(j)?j:new Xt(j)}}),v_=ks(function(b,T){return _n(T,function(j){j=os(j),Ts(b,j,yh(b[j],b))}),b});function x_(b){var T=b==null?0:b.length,j=Pt();return b=T?Ye(b,function(Y){if(typeof Y[1]!="function")throw new Ti(o);return[j(Y[0]),Y[1]]}):[],rr(function(Y){for(var ae=-1;++ae<T;){var be=b[ae];if(Or(be[0],this,Y))return Or(be[1],this,Y)}})}function b_(b){return zx(ki(b,l))}function Ah(b){return function(){return b}}function w_(b,T){return b==null||b!==b?T:b}var y_=dd(),__=dd(!0);function ei(b){return b}function Fh(b){return $0(typeof b=="function"?b:ki(b,l))}function E_(b){return X0(ki(b,l))}function T_(b,T){return V0(b,ki(T,l))}var S_=rr(function(b,T){return function(j){return sf(j,b,T)}}),k_=rr(function(b,T){return function(j){return sf(b,j,T)}});function Rh(b,T,j){var Y=gn(T),ae=vl(T,Y);j==null&&!(Hr(T)&&(ae.length||!Y.length))&&(j=T,T=b,b=this,ae=vl(T,gn(T)));var be=!(Hr(j)&&"chain"in j)||!!j.chain,De=As(b);return _n(ae,function(Be){var Ge=T[Be];b[Be]=Ge,De&&(b.prototype[Be]=function(){var ot=this.__chain__;if(be||ot){var ft=b(this.__wrapped__),ut=ft.__actions__=Jn(this.__actions__);return ut.push({func:Ge,args:arguments,thisArg:b}),ft.__chain__=ot,ft}return Ge.apply(b,ht([this.value()],arguments))})}),b}function C_(){return $t._===this&&($t._=qv),this}function Mh(){}function A_(b){return b=Jt(b),rr(function(T){return G0(T,b)})}var F_=fh(Ye),R_=fh(ys),M_=fh(Yt);function hp(b){return mh(b)?li(os(b)):o2(b)}function I_(b){return function(T){return b==null?e:ya(b,T)}}var O_=md(),D_=md(!0);function Ih(){return[]}function Oh(){return!1}function N_(){return{}}function P_(){return""}function B_(){return!0}function L_(b,T){if(b=Jt(b),b<1||b>E)return[];var j=L,Y=An(b,L);T=Pt(T),b-=L;for(var ae=Bc(Y,T);++j<b;)T(j);return ae}function U_(b){return Gt(b)?Ye(b,os):ui(b)?[b]:Jn(Md(_r(b)))}function j_(b){var T=++Jv;return _r(b)+T}var H_=El(function(b,T){return b+T},0),W_=lh("ceil"),$_=El(function(b,T){return b/T},1),z_=lh("floor");function X_(b){return b&&b.length?gl(b,ei,Kc):e}function V_(b,T){return b&&b.length?gl(b,Pt(T,2),Kc):e}function G_(b){return zi(b,ei)}function K_(b,T){return zi(b,Pt(T,2))}function Y_(b){return b&&b.length?gl(b,ei,Qc):e}function Z_(b,T){return b&&b.length?gl(b,Pt(T,2),Qc):e}var J_=El(function(b,T){return b*T},1),Q_=lh("round"),q_=El(function(b,T){return b-T},0);function e4(b){return b&&b.length?Xs(b,ei):0}function t4(b,T){return b&&b.length?Xs(b,Pt(T,2)):0}return ge.after=Ew,ge.ary=Wd,ge.assign=cy,ge.assignIn=rp,ge.assignInWith=Pl,ge.assignWith=hy,ge.at=uy,ge.before=$d,ge.bind=yh,ge.bindAll=v_,ge.bindKey=zd,ge.castArray=Nw,ge.chain=Ud,ge.chunk=z2,ge.compact=X2,ge.concat=V2,ge.cond=x_,ge.conforms=b_,ge.constant=Ah,ge.countBy=ew,ge.create=dy,ge.curry=Xd,ge.curryRight=Vd,ge.debounce=Gd,ge.defaults=py,ge.defaultsDeep=my,ge.defer=Tw,ge.delay=Sw,ge.difference=G2,ge.differenceBy=K2,ge.differenceWith=Y2,ge.drop=Z2,ge.dropRight=J2,ge.dropRightWhile=Q2,ge.dropWhile=q2,ge.fill=eb,ge.filter=rw,ge.flatMap=sw,ge.flatMapDeep=aw,ge.flatMapDepth=ow,ge.flatten=Nd,ge.flattenDeep=tb,ge.flattenDepth=rb,ge.flip=kw,ge.flow=y_,ge.flowRight=__,ge.fromPairs=nb,ge.functions=_y,ge.functionsIn=Ey,ge.groupBy=fw,ge.initial=sb,ge.intersection=ab,ge.intersectionBy=ob,ge.intersectionWith=fb,ge.invert=Sy,ge.invertBy=ky,ge.invokeMap=cw,ge.iteratee=Fh,ge.keyBy=hw,ge.keys=gn,ge.keysIn=qn,ge.map=Rl,ge.mapKeys=Ay,ge.mapValues=Fy,ge.matches=E_,ge.matchesProperty=T_,ge.memoize=Il,ge.merge=Ry,ge.mergeWith=np,ge.method=S_,ge.methodOf=k_,ge.mixin=Rh,ge.negate=Ol,ge.nthArg=A_,ge.omit=My,ge.omitBy=Iy,ge.once=Cw,ge.orderBy=uw,ge.over=F_,ge.overArgs=Aw,ge.overEvery=R_,ge.overSome=M_,ge.partial=_h,ge.partialRight=Kd,ge.partition=dw,ge.pick=Oy,ge.pickBy=ip,ge.property=hp,ge.propertyOf=I_,ge.pull=ub,ge.pullAll=Bd,ge.pullAllBy=db,ge.pullAllWith=pb,ge.pullAt=mb,ge.range=O_,ge.rangeRight=D_,ge.rearg=Fw,ge.reject=gw,ge.remove=gb,ge.rest=Rw,ge.reverse=bh,ge.sampleSize=xw,ge.set=Ny,ge.setWith=Py,ge.shuffle=bw,ge.slice=vb,ge.sortBy=_w,ge.sortedUniq=Tb,ge.sortedUniqBy=Sb,ge.split=s_,ge.spread=Mw,ge.tail=kb,ge.take=Cb,ge.takeRight=Ab,ge.takeRightWhile=Fb,ge.takeWhile=Rb,ge.tap=Xb,ge.throttle=Iw,ge.thru=Fl,ge.toArray=qd,ge.toPairs=sp,ge.toPairsIn=ap,ge.toPath=U_,ge.toPlainObject=tp,ge.transform=By,ge.unary=Ow,ge.union=Mb,ge.unionBy=Ib,ge.unionWith=Ob,ge.uniq=Db,ge.uniqBy=Nb,ge.uniqWith=Pb,ge.unset=Ly,ge.unzip=wh,ge.unzipWith=Ld,ge.update=Uy,ge.updateWith=jy,ge.values=yo,ge.valuesIn=Hy,ge.without=Bb,ge.words=lp,ge.wrap=Dw,ge.xor=Lb,ge.xorBy=Ub,ge.xorWith=jb,ge.zip=Hb,ge.zipObject=Wb,ge.zipObjectDeep=$b,ge.zipWith=zb,ge.entries=sp,ge.entriesIn=ap,ge.extend=rp,ge.extendWith=Pl,Rh(ge,ge),ge.add=H_,ge.attempt=cp,ge.camelCase=Xy,ge.capitalize=op,ge.ceil=W_,ge.clamp=Wy,ge.clone=Pw,ge.cloneDeep=Lw,ge.cloneDeepWith=Uw,ge.cloneWith=Bw,ge.conformsTo=jw,ge.deburr=fp,ge.defaultTo=w_,ge.divide=$_,ge.endsWith=Vy,ge.eq=Ki,ge.escape=Gy,ge.escapeRegExp=Ky,ge.every=tw,ge.find=nw,ge.findIndex=Od,ge.findKey=gy,ge.findLast=iw,ge.findLastIndex=Dd,ge.findLastKey=vy,ge.floor=z_,ge.forEach=jd,ge.forEachRight=Hd,ge.forIn=xy,ge.forInRight=by,ge.forOwn=wy,ge.forOwnRight=yy,ge.get=Sh,ge.gt=Hw,ge.gte=Ww,ge.has=Ty,ge.hasIn=kh,ge.head=Pd,ge.identity=ei,ge.includes=lw,ge.indexOf=ib,ge.inRange=$y,ge.invoke=Cy,ge.isArguments=Ta,ge.isArray=Gt,ge.isArrayBuffer=$w,ge.isArrayLike=Qn,ge.isArrayLikeObject=Gr,ge.isBoolean=zw,ge.isBuffer=Qs,ge.isDate=Xw,ge.isElement=Vw,ge.isEmpty=Gw,ge.isEqual=Kw,ge.isEqualWith=Yw,ge.isError=Eh,ge.isFinite=Zw,ge.isFunction=As,ge.isInteger=Yd,ge.isLength=Dl,ge.isMap=Zd,ge.isMatch=Jw,ge.isMatchWith=Qw,ge.isNaN=qw,ge.isNative=ey,ge.isNil=ry,ge.isNull=ty,ge.isNumber=Jd,ge.isObject=Hr,ge.isObjectLike=$r,ge.isPlainObject=hf,ge.isRegExp=Th,ge.isSafeInteger=ny,ge.isSet=Qd,ge.isString=Nl,ge.isSymbol=ui,ge.isTypedArray=wo,ge.isUndefined=iy,ge.isWeakMap=sy,ge.isWeakSet=ay,ge.join=lb,ge.kebabCase=Yy,ge.last=Ai,ge.lastIndexOf=cb,ge.lowerCase=Zy,ge.lowerFirst=Jy,ge.lt=oy,ge.lte=fy,ge.max=X_,ge.maxBy=V_,ge.mean=G_,ge.meanBy=K_,ge.min=Y_,ge.minBy=Z_,ge.stubArray=Ih,ge.stubFalse=Oh,ge.stubObject=N_,ge.stubString=P_,ge.stubTrue=B_,ge.multiply=J_,ge.nth=hb,ge.noConflict=C_,ge.noop=Mh,ge.now=Ml,ge.pad=Qy,ge.padEnd=qy,ge.padStart=e_,ge.parseInt=t_,ge.random=zy,ge.reduce=pw,ge.reduceRight=mw,ge.repeat=r_,ge.replace=n_,ge.result=Dy,ge.round=Q_,ge.runInContext=Xe,ge.sample=vw,ge.size=ww,ge.snakeCase=i_,ge.some=yw,ge.sortedIndex=xb,ge.sortedIndexBy=bb,ge.sortedIndexOf=wb,ge.sortedLastIndex=yb,ge.sortedLastIndexBy=_b,ge.sortedLastIndexOf=Eb,ge.startCase=a_,ge.startsWith=o_,ge.subtract=q_,ge.sum=e4,ge.sumBy=t4,ge.template=f_,ge.times=L_,ge.toFinite=Fs,ge.toInteger=Jt,ge.toLength=ep,ge.toLower=l_,ge.toNumber=Fi,ge.toSafeInteger=ly,ge.toString=_r,ge.toUpper=c_,ge.trim=h_,ge.trimEnd=u_,ge.trimStart=d_,ge.truncate=p_,ge.unescape=m_,ge.uniqueId=j_,ge.upperCase=g_,ge.upperFirst=Ch,ge.each=jd,ge.eachRight=Hd,ge.first=Pd,Rh(ge,function(){var b={};return ss(ge,function(T,j){Tr.call(ge.prototype,j)||(b[j]=T)}),b}(),{chain:!1}),ge.VERSION=n,_n(["bind","bindKey","curry","curryRight","partial","partialRight"],function(b){ge[b].placeholder=ge}),_n(["drop","take"],function(b,T){hr.prototype[b]=function(j){j=j===e?1:hn(Jt(j),0);var Y=this.__filtered__&&!T?new hr(this):this.clone();return Y.__filtered__?Y.__takeCount__=An(j,Y.__takeCount__):Y.__views__.push({size:An(j,L),type:b+(Y.__dir__<0?"Right":"")}),Y},hr.prototype[b+"Right"]=function(j){return this.reverse()[b](j).reverse()}}),_n(["filter","map","takeWhile"],function(b,T){var j=T+1,Y=j==J||j==I;hr.prototype[b]=function(ae){var be=this.clone();return be.__iteratees__.push({iteratee:Pt(ae,3),type:j}),be.__filtered__=be.__filtered__||Y,be}}),_n(["head","last"],function(b,T){var j="take"+(T?"Right":"");hr.prototype[b]=function(){return this[j](1).value()[0]}}),_n(["initial","tail"],function(b,T){var j="drop"+(T?"":"Right");hr.prototype[b]=function(){return this.__filtered__?new hr(this):this[j](1)}}),hr.prototype.compact=function(){return this.filter(ei)},hr.prototype.find=function(b){return this.filter(b).head()},hr.prototype.findLast=function(b){return this.reverse().find(b)},hr.prototype.invokeMap=rr(function(b,T){return typeof b=="function"?new hr(this):this.map(function(j){return sf(j,b,T)})}),hr.prototype.reject=function(b){return this.filter(Ol(Pt(b)))},hr.prototype.slice=function(b,T){b=Jt(b);var j=this;return j.__filtered__&&(b>0||T<0)?new hr(j):(b<0?j=j.takeRight(-b):b&&(j=j.drop(b)),T!==e&&(T=Jt(T),j=T<0?j.dropRight(-T):j.take(T-b)),j)},hr.prototype.takeRightWhile=function(b){return this.reverse().takeWhile(b).reverse()},hr.prototype.toArray=function(){return this.take(L)},ss(hr.prototype,function(b,T){var j=/^(?:filter|find|map|reject)|While$/.test(T),Y=/^(?:head|last)$/.test(T),ae=ge[Y?"take"+(T=="last"?"Right":""):T],be=Y||/^find/.test(T);ae&&(ge.prototype[T]=function(){var De=this.__wrapped__,Be=Y?[1]:arguments,Ge=De instanceof hr,ot=Be[0],ft=Ge||Gt(De),ut=function(lr){var dr=ae.apply(ge,ht([lr],Be));return Y&&vt?dr[0]:dr};ft&&j&&typeof ot=="function"&&ot.length!=1&&(Ge=ft=!1);var vt=this.__chain__,Ft=!!this.__actions__.length,Lt=be&&!vt,tr=Ge&&!Ft;if(!be&&ft){De=tr?De:new hr(this);var Ut=b.apply(De,Be);return Ut.__actions__.push({func:Fl,args:[ut],thisArg:e}),new Si(Ut,vt)}return Lt&&tr?b.apply(this,Be):(Ut=this.thru(ut),Lt?Y?Ut.value()[0]:Ut.value():Ut)})}),_n(["pop","push","shift","sort","splice","unshift"],function(b){var T=tl[b],j=/^(?:push|sort|unshift)$/.test(b)?"tap":"thru",Y=/^(?:pop|shift)$/.test(b);ge.prototype[b]=function(){var ae=arguments;if(Y&&!this.__chain__){var be=this.value();return T.apply(Gt(be)?be:[],ae)}return this[j](function(De){return T.apply(Gt(De)?De:[],ae)})}}),ss(hr.prototype,function(b,T){var j=ge[T];if(j){var Y=j.name+"";Tr.call(mo,Y)||(mo[Y]=[]),mo[Y].push({name:T,func:j})}}),mo[_l(e,x).name]=[{name:"wrapper",func:e}],hr.prototype.clone=mx,hr.prototype.reverse=gx,hr.prototype.value=vx,ge.prototype.at=Vb,ge.prototype.chain=Gb,ge.prototype.commit=Kb,ge.prototype.next=Yb,ge.prototype.plant=Jb,ge.prototype.reverse=Qb,ge.prototype.toJSON=ge.prototype.valueOf=ge.prototype.value=qb,ge.prototype.first=ge.prototype.head,Jo&&(ge.prototype[Jo]=Zb),ge},ho=Kv();gr?((gr.exports=ho)._=ho,jt._=ho):$t._=ho}).call(Qt)})(dc,dc.exports);var Pu=dc.exports;function Em(t){t=t.replace("#","");for(var r=t.match(/../g),e=0;e<3;e++)r[e]=parseInt(r[e],16);return r}function Tm(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 r8(t,r){for(var e=Em(t),n=0;n<3;n++)e[n]=Math.floor(e[n]*(1-r));return Tm(e[0],e[1],e[2])}function n8(t,r){for(var e=Em(t),n=0;n<3;n++)e[n]=Math.floor((255-e[n])*r+e[n]);return Tm(e[0],e[1],e[2])}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var pc={};pc.version="0.18.5";var Sm=1252,i8=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Bu={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},Lu=function(t){i8.indexOf(t)!=-1&&(Sm=Bu[0]=t)};function s8(){Lu(1252)}var es=function(t){Lu(t)};function Uu(){es(1200),s8()}function Vp(t){for(var r=[],e=0,n=t.length;e<n;++e)r[e]=t.charCodeAt(e);return r}function a8(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 km(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 xf=function(t){var r=t.charCodeAt(0),e=t.charCodeAt(1);return r==255&&e==254?a8(t.slice(2)):r==254&&e==255?km(t.slice(2)):r==65279?t.slice(1):t},zl=function(r){return String.fromCharCode(r)},Gp=function(r){return String.fromCharCode(r)},ra,na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Ff(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+=na.charAt(s)+na.charAt(o)+na.charAt(h)+na.charAt(c);return r}function wi(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=na.indexOf(t.charAt(a++)),o=na.indexOf(t.charAt(a++)),e=s<<2|o>>4,r+=String.fromCharCode(e),h=na.indexOf(t.charAt(a++)),n=(o&15)<<4|h>>2,h!==64&&(r+=String.fromCharCode(n)),c=na.indexOf(t.charAt(a++)),i=(h&3)<<6|c,c!==64&&(r+=String.fromCharCode(i));return r}var nr=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Us=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 aa(t){return nr?Buffer.alloc?Buffer.alloc(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}function Kp(t){return nr?Buffer.allocUnsafe?Buffer.allocUnsafe(t):new Buffer(t):typeof Uint8Array<"u"?new Uint8Array(t):new Array(t)}var xi=function(r){return nr?Us(r,"binary"):r.split("").map(function(e){return e.charCodeAt(0)&255})};function Ac(t){if(typeof ArrayBuffer>"u")return xi(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 ha(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 o8(t){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(t)}function ju(t){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(t instanceof ArrayBuffer)return ju(new Uint8Array(t));for(var r=new Array(t.length),e=0;e<t.length;++e)r[e]=t[e];return r}var xn=nr?function(t){return Buffer.concat(t.map(function(r){return Buffer.isBuffer(r)?r:Us(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 f8(t){for(var r=[],e=0,n=t.length+250,i=aa(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=aa(65535),n=65530)}return r.push(i.slice(0,e)),xn(r)}var Xn=/\u0000/g,bf=/[\u0001-\u0006]/g;function Io(t){for(var r="",e=t.length-1;e>=0;)r+=t.charAt(e--);return r}function ts(t,r){var e=""+t;return e.length>=r?e:zr("0",r-e.length)+e}function Hu(t,r){var e=""+t;return e.length>=r?e:zr(" ",r-e.length)+e}function mc(t,r){var e=""+t;return e.length>=r?e:e+zr(" ",r-e.length)}function l8(t,r){var e=""+Math.round(t);return e.length>=r?e:zr("0",r-e.length)+e}function c8(t,r){var e=""+t;return e.length>=r?e:zr("0",r-e.length)+e}var Yp=Math.pow(2,32);function ko(t,r){if(t>Yp||t<-Yp)return l8(t,r);var e=Math.round(t);return c8(e,r)}function gc(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 Zp=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Uh=[["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 h8(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 Ht={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"秒 "'},Jp={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},u8={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 vc(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 Aa(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=x8(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 Cm=new Date(1899,11,31,0,0,0),d8=Cm.getTime(),p8=new Date(1900,2,1,0,0,0);function Am(t,r){var e=t.getTime();return r?e-=1461*24*60*60*1e3:t>=p8&&(e+=24*60*60*1e3),(e-(d8+(t.getTimezoneOffset()-Cm.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Wu(t){return t.indexOf(".")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function m8(t){return t.indexOf("E")==-1?t:t.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function g8(t){var r=t<0?12:11,e=Wu(t.toFixed(12));return e.length<=r||(e=t.toPrecision(10),e.length<=r)?e:t.toExponential(5)}function v8(t){var r=Wu(t.toFixed(11));return r.length>(t<0?12:11)||r==="0"||r==="-0"?t.toPrecision(6):r}function Rf(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=g8(t):r===10?e=t.toFixed(10).substr(0,12):e=v8(t),Wu(m8(e.toUpperCase()))}function Pa(t,r){switch(typeof t){case"string":return t;case"boolean":return t?"TRUE":"FALSE";case"number":return(t|0)===t?t.toString(10):Rf(t);case"undefined":return"";case"object":if(t==null)return"";if(t instanceof Date)return Bi(14,Am(t,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+t)}function x8(t,r){r[0]-=581;var e=t.getDay();return t<60&&(e=(e+6)%7),e}function b8(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 Uh[e.m-1][1];case 5:return Uh[e.m-1][0];default:return Uh[e.m-1][2]}break;case 100:switch(r.length){case 1:case 2:c=e.d,a=r.length;break;case 3:return Zp[e.q][0];default:return Zp[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")?ts(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=ts(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?ts(c,a):"";return f}function ia(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 Fm=/%/g;function w8(t,r,e){var n=r.replace(Fm,""),i=r.length-n.length;return Ds(t,n,e*Math.pow(10,2*i))+zr("%",i)}function y8(t,r,e){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return Ds(t,r.substr(0,n),e/Math.pow(10,3*(r.length-n)))}function Rm(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"-"+Rm(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 Mm=/# (\?+)( ?)\/( ?)(\d+)/;function _8(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?zr(" ",t[1].length+1+t[4].length):Hu(o,t[1].length)+t[2]+"/"+t[3]+ts(h,t[4].length))}function E8(t,r,e){return e+(r===0?"":""+r)+zr(" ",t[1].length+2+t[4].length)}var Im=/^#*0*\.([0#]+)/,Om=/\).*[0#]/,Dm=/\(###\) ###\\?-####/;function $n(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 Qp(t,r){var e=Math.pow(10,r);return""+Math.round(t*e)/e}function qp(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 T8(t,r){return r<(""+Math.round((t-Math.floor(t))*Math.pow(10,r))).length?1:0}function S8(t){return t<2147483647&&t>-2147483648?""+(t>=0?t|0:t-1|0):""+Math.floor(t)}function Mi(t,r,e){if(t.charCodeAt(0)===40&&!r.match(Om)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?Mi("n",n,e):"("+Mi("n",n,-e)+")"}if(r.charCodeAt(r.length-1)===44)return y8(t,r,e);if(r.indexOf("%")!==-1)return w8(t,r,e);if(r.indexOf("E")!==-1)return Rm(r,e);if(r.charCodeAt(0)===36)return"$"+Mi(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+ko(c,r.length);if(r.match(/^[#?]+$/))return i=ko(e,0),i==="0"&&(i=""),i.length>r.length?i:$n(r.substr(0,r.length-i.length))+i;if(s=r.match(Mm))return _8(s,c,a);if(r.match(/^#+0+$/))return a+ko(c,r.length-r.indexOf("0"));if(s=r.match(Im))return i=Qp(e,s[1].length).replace(/^([^\.]+)$/,"$1."+$n(s[1])).replace(/\.$/,"."+$n(s[1])).replace(/\.(\d*)$/,function(m,d){return"."+d+zr("0",$n(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+Qp(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+ia(ko(c,0));if(s=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+Mi(t,r,-e):ia(""+(Math.floor(e)+T8(e,s[1].length)))+"."+ts(qp(e,s[1].length),s[1].length);if(s=r.match(/^#,#*,#0/))return Mi(t,r.replace(/^#,#*,/,""),e);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Io(Mi(t,r.replace(/[\\-]/g,""),e)),o=0,Io(Io(r.replace(/\\/g,"")).replace(/[0#]/g,function(m){return o<i.length?i.charAt(o++):m==="0"?"0":""}));if(r.match(Dm))return i=Mi(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=vc(c,Math.pow(10,o)-1,!1),i=""+a,f=Ds("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=mc(h[2],o),f.length<s[4].length&&(f=$n(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=vc(c,Math.pow(10,o)-1,!0),a+(h[0]||(h[1]?"":"0"))+" "+(h[1]?Hu(h[1],o)+s[2]+"/"+s[3]+mc(h[2],o):zr(" ",2*o+1+s[2].length+s[3].length));if(s=r.match(/^[#0?]+$/))return i=ko(e,0),r.length<=i.length?i:$n(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 $n(r.substr(0,l)+i+r.substr(r.length-u))}if(s=r.match(/^00,000\.([#0]*0)$/))return o=qp(e,s[1].length),e<0?"-"+Mi(t,r,-e):ia(S8(e)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?ts(0,3-m.length):"")+m})+"."+ts(o,s[1].length);switch(r){case"###,##0.00":return Mi(t,"#,##0.00",e);case"###,###":case"##,###":case"#,###":var p=ia(ko(c,0));return p!=="0"?a+p:"";case"###,###.00":return Mi(t,"###,##0.00",e).replace(/^0\./,".");case"#,###.00":return Mi(t,"#,##0.00",e).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function k8(t,r,e){for(var n=r.length-1;r.charCodeAt(n-1)===44;)--n;return Ds(t,r.substr(0,n),e/Math.pow(10,3*(r.length-n)))}function C8(t,r,e){var n=r.replace(Fm,""),i=r.length-n.length;return Ds(t,n,e*Math.pow(10,2*i))+zr("%",i)}function Nm(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"-"+Nm(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 cs(t,r,e){if(t.charCodeAt(0)===40&&!r.match(Om)){var n=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return e>=0?cs("n",n,e):"("+cs("n",n,-e)+")"}if(r.charCodeAt(r.length-1)===44)return k8(t,r,e);if(r.indexOf("%")!==-1)return C8(t,r,e);if(r.indexOf("E")!==-1)return Nm(r,e);if(r.charCodeAt(0)===36)return"$"+cs(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+ts(c,r.length);if(r.match(/^[#?]+$/))return i=""+e,e===0&&(i=""),i.length>r.length?i:$n(r.substr(0,r.length-i.length))+i;if(s=r.match(Mm))return E8(s,c,a);if(r.match(/^#+0+$/))return a+ts(c,r.length-r.indexOf("0"));if(s=r.match(Im))return i=(""+e).replace(/^([^\.]+)$/,"$1."+$n(s[1])).replace(/\.$/,"."+$n(s[1])),i=i.replace(/\.(\d*)$/,function(m,d){return"."+d+zr("0",$n(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+ia(""+c);if(s=r.match(/^#,##0\.([#0]*0)$/))return e<0?"-"+cs(t,r,-e):ia(""+e)+"."+zr("0",s[1].length);if(s=r.match(/^#,#*,#0/))return cs(t,r.replace(/^#,#*,/,""),e);if(s=r.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Io(cs(t,r.replace(/[\\-]/g,""),e)),o=0,Io(Io(r.replace(/\\/g,"")).replace(/[0#]/g,function(m){return o<i.length?i.charAt(o++):m==="0"?"0":""}));if(r.match(Dm))return i=cs(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=vc(c,Math.pow(10,o)-1,!1),i=""+a,f=Ds("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=mc(h[2],o),f.length<s[4].length&&(f=$n(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=vc(c,Math.pow(10,o)-1,!0),a+(h[0]||(h[1]?"":"0"))+" "+(h[1]?Hu(h[1],o)+s[2]+"/"+s[3]+mc(h[2],o):zr(" ",2*o+1+s[2].length+s[3].length));if(s=r.match(/^[#0?]+$/))return i=""+e,r.length<=i.length?i:$n(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 $n(r.substr(0,l)+i+r.substr(r.length-u))}if(s=r.match(/^00,000\.([#0]*0)$/))return e<0?"-"+cs(t,r,-e):ia(""+e).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?ts(0,3-m.length):"")+m})+"."+ts(0,s[1].length);switch(r){case"###,###":case"##,###":case"#,###":var p=ia(""+c);return p!=="0"?a+p:"";default:if(r.match(/\.[0#?]*$/))return cs(t,r.slice(0,r.lastIndexOf(".")),e)+$n(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function Ds(t,r,e){return(e|0)===e?cs(t,r,e):Mi(t,r,e)}function A8(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 Pm=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Uo(t){for(var r=0,e="",n="";r<t.length;)switch(e=t.charAt(r)){case"G":gc(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(Pm))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 F8(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(!gc(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=Aa(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=Aa(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=Aa(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(Pm)){if(a==null&&(a=Aa(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]||"$",Uo(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 w="",y;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=b8(i[o].t.charCodeAt(0),i[o].v,a,x),i[o].t="t";break;case"n":case"?":for(y=o+1;i[y]!=null&&((h=i[y].t)==="?"||h==="D"||(h===" "||h==="t")&&i[y+1]!=null&&(i[y+1].t==="?"||i[y+1].t==="t"&&i[y+1].v==="/")||i[o].t==="("&&(h===" "||h==="n"||h===")")||h==="t"&&(i[y].v==="/"||i[y].v===" "&&i[y+1]!=null&&i[y+1].t=="?"));)i[o].v+=i[y].v,i[y]={v:"",t:";"},++y;w+=i[o].v,o=y-1;break;case"G":i[o].t="t",i[o].v=Pa(r,e);break}var _="",k,F;if(w.length>0){w.charCodeAt(0)==40?(k=r<0&&w.charCodeAt(0)===45?-r:r,F=Ds("n",w,k)):(k=r<0&&n>1?-r:r,F=Ds("n",w,k),k<0&&i[0]&&i[0].t=="t"&&(F=F.substr(1),i[0].v="-"+i[0].v)),y=F.length-1;var O=i.length;for(o=0;o<i.length;++o)if(i[o]!=null&&i[o].t!="t"&&i[o].v.indexOf(".")>-1){O=o;break}var N=i.length;if(O===i.length&&F.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(y>=i[o].v.length-1?(y-=i[o].v.length,i[o].v=F.substr(y+1,i[o].v.length)):y<0?i[o].v="":(i[o].v=F.substr(0,y+1),y=-1),i[o].t="t",N=o);y>=0&&N<i.length&&(i[N].v=F.substr(0,y+1)+i[N].v)}else if(O!==i.length&&F.indexOf("E")===-1){for(y=F.indexOf(".")-1,o=O;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(f=i[o].v.indexOf(".")>-1&&o===O?i[o].v.indexOf(".")-1:i[o].v.length-1,_=i[o].v.substr(f+1);f>=0;--f)y>=0&&(i[o].v.charAt(f)==="0"||i[o].v.charAt(f)==="#")&&(_=F.charAt(y--)+_);i[o].v=_,i[o].t="t",N=o}for(y>=0&&N<i.length&&(i[N].v=F.substr(0,y+1)+i[N].v),y=F.indexOf(".")+1,o=O;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==O)){for(f=i[o].v.indexOf(".")>-1&&o===O?i[o].v.indexOf(".")+1:0,_=i[o].v.substr(0,f);f<i[o].v.length;++f)y<F.length&&(_+=F.charAt(y++));i[o].v=_,i[o].t="t",N=o}}}for(o=0;o<i.length;++o)i[o]!=null&&"n?".indexOf(i[o].t)>-1&&(k=n>1&&r<0&&o>0&&i[o-1].v==="-"?-r:r,i[o].v=Ds(i[o].t,i[o].v,k),i[o].t="t");var U="";for(o=0;o!==i.length;++o)i[o]!=null&&(U+=i[o].v);return U}var e1=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function t1(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 R8(t,r){var e=A8(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(e1),h=e[1].match(e1);return t1(r,o)?[n,e[0]]:t1(r,h)?[n,e[1]]:[n,e[o!=null&&h!=null?2:1]]}return[n,s]}function Bi(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:Ht)[t],n==null&&(n=e.table&&e.table[Jp[t]]||Ht[Jp[t]]),n==null&&(n=u8[t]||"General");break}if(gc(n,0))return Pa(r,e);r instanceof Date&&(r=Am(r,e.date1904));var i=R8(n,r);if(gc(i[1]))return Pa(r,e);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return F8(i[1],r,e,i[0])}function Ns(t,r){if(typeof r!="number"){r=+r||-1;for(var e=0;e<392;++e){if(Ht[e]==null){r<0&&(r=e);continue}if(Ht[e]==t){r=e;break}}r<0&&(r=391)}return Ht[r]=t,r}function Fc(t){for(var r=0;r!=392;++r)t[r]!==void 0&&Ns(t[r],r)}function jo(){Ht=h8()}var M8={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"},Bm=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function I8(t){var r=typeof t=="number"?Ht[t]:t;return r=r.replace(Bm,"(\\d+)"),new RegExp("^"+r+"$")}function O8(t,r,e){var n=-1,i=-1,s=-1,o=-1,h=-1,c=-1;(r.match(Bm)||[]).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 D8=function(){var t={};t.version="1.2.0";function r(){for(var F=0,O=new Array(256),N=0;N!=256;++N)F=N,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,F=F&1?-306674912^F>>>1:F>>>1,O[N]=F;return typeof Int32Array<"u"?new Int32Array(O):O}var e=r();function n(F){var O=0,N=0,U=0,z=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(U=0;U!=256;++U)z[U]=F[U];for(U=0;U!=256;++U)for(N=F[U],O=256+U;O<4096;O+=256)N=z[O]=N>>>8^F[N&255];var W=[];for(U=1;U!=16;++U)W[U-1]=typeof Int32Array<"u"?z.subarray(U*256,U*256+256):z.slice(U*256,U*256+256);return W}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],w=i[14];function y(F,O){for(var N=O^-1,U=0,z=F.length;U<z;)N=N>>>8^e[(N^F.charCodeAt(U++))&255];return~N}function _(F,O){for(var N=O^-1,U=F.length-15,z=0;z<U;)N=w[F[z++]^N&255]^g[F[z++]^N>>8&255]^x[F[z++]^N>>16&255]^v[F[z++]^N>>>24]^d[F[z++]]^m[F[z++]]^p[F[z++]]^u[F[z++]]^l[F[z++]]^f[F[z++]]^a[F[z++]]^c[F[z++]]^h[F[z++]]^o[F[z++]]^s[F[z++]]^e[F[z++]];for(U+=15;z<U;)N=N>>>8^e[(N^F[z++])&255];return~N}function k(F,O){for(var N=O^-1,U=0,z=F.length,W=0,X=0;U<z;)W=F.charCodeAt(U++),W<128?N=N>>>8^e[(N^W)&255]:W<2048?(N=N>>>8^e[(N^(192|W>>6&31))&255],N=N>>>8^e[(N^(128|W&63))&255]):W>=55296&&W<57344?(W=(W&1023)+64,X=F.charCodeAt(U++)&1023,N=N>>>8^e[(N^(240|W>>8&7))&255],N=N>>>8^e[(N^(128|W>>2&63))&255],N=N>>>8^e[(N^(128|X>>6&15|(W&3)<<4))&255],N=N>>>8^e[(N^(128|X&63))&255]):(N=N>>>8^e[(N^(224|W>>12&15))&255],N=N>>>8^e[(N^(128|W>>6&63))&255],N=N>>>8^e[(N^(128|W&63))&255]);return~N}return t.table=e,t.bstr=y,t.buf=_,t.str=k,t}(),It=function(){var r={};r.version="1.2.1";function e(le,Ee){for(var pe=le.split("/"),xe=Ee.split("/"),ye=0,_e=0,We=Math.min(pe.length,xe.length);ye<We;++ye){if(_e=pe[ye].length-xe[ye].length)return _e;if(pe[ye]!=xe[ye])return pe[ye]<xe[ye]?-1:1}return pe.length-xe.length}function n(le){if(le.charAt(le.length-1)=="/")return le.slice(0,-1).indexOf("/")===-1?le:n(le.slice(0,-1));var Ee=le.lastIndexOf("/");return Ee===-1?le:le.slice(0,Ee+1)}function i(le){if(le.charAt(le.length-1)=="/")return i(le.slice(0,-1));var Ee=le.lastIndexOf("/");return Ee===-1?le:le.slice(Ee+1)}function s(le,Ee){typeof Ee=="string"&&(Ee=new Date(Ee));var pe=Ee.getHours();pe=pe<<6|Ee.getMinutes(),pe=pe<<5|Ee.getSeconds()>>>1,le.write_shift(2,pe);var xe=Ee.getFullYear()-1980;xe=xe<<4|Ee.getMonth()+1,xe=xe<<5|Ee.getDate(),le.write_shift(2,xe)}function o(le){var Ee=le.read_shift(2)&65535,pe=le.read_shift(2)&65535,xe=new Date,ye=pe&31;pe>>>=5;var _e=pe&15;pe>>>=4,xe.setMilliseconds(0),xe.setFullYear(pe+1980),xe.setMonth(_e-1),xe.setDate(ye);var We=Ee&31;Ee>>>=5;var Je=Ee&63;return Ee>>>=6,xe.setHours(Ee),xe.setMinutes(Je),xe.setSeconds(We<<1),xe}function h(le){Sn(le,0);for(var Ee={},pe=0;le.l<=le.length-4;){var xe=le.read_shift(2),ye=le.read_shift(2),_e=le.l+ye,We={};switch(xe){case 21589:pe=le.read_shift(1),pe&1&&(We.mtime=le.read_shift(4)),ye>5&&(pe&2&&(We.atime=le.read_shift(4)),pe&4&&(We.ctime=le.read_shift(4))),We.mtime&&(We.mt=new Date(We.mtime*1e3));break}le.l=_e,Ee[xe]=We}return Ee}var c;function a(){return c||(c={})}function f(le,Ee){if(le[0]==80&&le[1]==75)return st(le,Ee);if((le[0]|32)==109&&(le[1]|32)==105)return kt(le,Ee);if(le.length<512)throw new Error("CFB file size "+le.length+" < 512");var pe=3,xe=512,ye=0,_e=0,We=0,Je=0,Le=0,Ve=[],He=le.slice(0,512);Sn(He,0);var tt=l(He);switch(pe=tt[0],pe){case 3:xe=512;break;case 4:xe=4096;break;case 0:if(tt[1]==0)return st(le,Ee);default:throw new Error("Major Version: Expected 3 or 4 saw "+pe)}xe!==512&&(He=le.slice(0,xe),Sn(He,28));var me=le.slice(0,xe);u(He,pe);var Me=He.read_shift(4,"i");if(pe===3&&Me!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Me);He.l+=4,We=He.read_shift(4,"i"),He.l+=4,He.chk("00100000","Mini Stream Cutoff Size: "),Je=He.read_shift(4,"i"),ye=He.read_shift(4,"i"),Le=He.read_shift(4,"i"),_e=He.read_shift(4,"i");for(var Re=-1,Qe=0;Qe<109&&(Re=He.read_shift(4,"i"),!(Re<0));++Qe)Ve[Qe]=Re;var lt=p(le,xe);v(Le,_e,lt,xe,Ve);var Et=g(lt,We,Ve,xe);Et[We].name="!Directory",ye>0&&Je!==X&&(Et[Je].name="!MiniFAT"),Et[Ve[0]].name="!FAT",Et.fat_addrs=Ve,Et.ssz=xe;var Ot={},sr=[],Wr=[],Rr=[];w(We,Et,lt,sr,ye,Ot,Wr,Je),m(Wr,Rr,sr),sr.shift();var br={FileIndex:Wr,FullPaths:Rr};return Ee&&Ee.raw&&(br.raw={header:me,sectors:lt}),br}function l(le){if(le[le.l]==80&&le[le.l+1]==75)return[0,0];le.chk(J,"Header Signature: "),le.l+=16;var Ee=le.read_shift(2,"u");return[le.read_shift(2,"u"),Ee]}function u(le,Ee){var pe=9;switch(le.l+=2,pe=le.read_shift(2)){case 9:if(Ee!=3)throw new Error("Sector Shift: Expected 9 saw "+pe);break;case 12:if(Ee!=4)throw new Error("Sector Shift: Expected 12 saw "+pe);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+pe)}le.chk("0600","Mini Sector Shift: "),le.chk("000000000000","Reserved: ")}function p(le,Ee){for(var pe=Math.ceil(le.length/Ee)-1,xe=[],ye=1;ye<pe;++ye)xe[ye-1]=le.slice(ye*Ee,(ye+1)*Ee);return xe[pe-1]=le.slice(pe*Ee),xe}function m(le,Ee,pe){for(var xe=0,ye=0,_e=0,We=0,Je=0,Le=pe.length,Ve=[],He=[];xe<Le;++xe)Ve[xe]=He[xe]=xe,Ee[xe]=pe[xe];for(;Je<He.length;++Je)xe=He[Je],ye=le[xe].L,_e=le[xe].R,We=le[xe].C,Ve[xe]===xe&&(ye!==-1&&Ve[ye]!==ye&&(Ve[xe]=Ve[ye]),_e!==-1&&Ve[_e]!==_e&&(Ve[xe]=Ve[_e])),We!==-1&&(Ve[We]=xe),ye!==-1&&xe!=Ve[xe]&&(Ve[ye]=Ve[xe],He.lastIndexOf(ye)<Je&&He.push(ye)),_e!==-1&&xe!=Ve[xe]&&(Ve[_e]=Ve[xe],He.lastIndexOf(_e)<Je&&He.push(_e));for(xe=1;xe<Le;++xe)Ve[xe]===xe&&(_e!==-1&&Ve[_e]!==_e?Ve[xe]=Ve[_e]:ye!==-1&&Ve[ye]!==ye&&(Ve[xe]=Ve[ye]));for(xe=1;xe<Le;++xe)if(le[xe].type!==0){if(Je=xe,Je!=Ve[Je])do Je=Ve[Je],Ee[xe]=Ee[Je]+"/"+Ee[xe];while(Je!==0&&Ve[Je]!==-1&&Je!=Ve[Je]);Ve[xe]=-1}for(Ee[0]+="/",xe=1;xe<Le;++xe)le[xe].type!==2&&(Ee[xe]+="/")}function d(le,Ee,pe){for(var xe=le.start,ye=le.size,_e=[],We=xe;pe&&ye>0&&We>=0;)_e.push(Ee.slice(We*W,We*W+W)),ye-=W,We=Ca(pe,We*4);return _e.length===0?nt(0):xn(_e).slice(0,le.size)}function v(le,Ee,pe,xe,ye){var _e=X;if(le===X){if(Ee!==0)throw new Error("DIFAT chain shorter than expected")}else if(le!==-1){var We=pe[le],Je=(xe>>>2)-1;if(!We)return;for(var Le=0;Le<Je&&(_e=Ca(We,Le*4))!==X;++Le)ye.push(_e);v(Ca(We,xe-4),Ee-1,pe,xe,ye)}}function x(le,Ee,pe,xe,ye){var _e=[],We=[];ye||(ye=[]);var Je=xe-1,Le=0,Ve=0;for(Le=Ee;Le>=0;){ye[Le]=!0,_e[_e.length]=Le,We.push(le[Le]);var He=pe[Math.floor(Le*4/xe)];if(Ve=Le*4&Je,xe<4+Ve)throw new Error("FAT boundary crossed: "+Le+" 4 "+xe);if(!le[He])break;Le=Ca(le[He],Ve)}return{nodes:_e,data:d1([We])}}function g(le,Ee,pe,xe){var ye=le.length,_e=[],We=[],Je=[],Le=[],Ve=xe-1,He=0,tt=0,me=0,Me=0;for(He=0;He<ye;++He)if(Je=[],me=He+Ee,me>=ye&&(me-=ye),!We[me]){Le=[];var Re=[];for(tt=me;tt>=0;){Re[tt]=!0,We[tt]=!0,Je[Je.length]=tt,Le.push(le[tt]);var Qe=pe[Math.floor(tt*4/xe)];if(Me=tt*4&Ve,xe<4+Me)throw new Error("FAT boundary crossed: "+tt+" 4 "+xe);if(!le[Qe]||(tt=Ca(le[Qe],Me),Re[tt]))break}_e[me]={nodes:Je,data:d1([Le])}}return _e}function w(le,Ee,pe,xe,ye,_e,We,Je){for(var Le=0,Ve=xe.length?2:0,He=Ee[le].data,tt=0,me=0,Me;tt<He.length;tt+=128){var Re=He.slice(tt,tt+128);Sn(Re,64),me=Re.read_shift(2),Me=Yu(Re,0,me-Ve),xe.push(Me);var Qe={name:Me,type:Re.read_shift(1),color:Re.read_shift(1),L:Re.read_shift(4,"i"),R:Re.read_shift(4,"i"),C:Re.read_shift(4,"i"),clsid:Re.read_shift(16),state:Re.read_shift(4,"i"),start:0,size:0},lt=Re.read_shift(2)+Re.read_shift(2)+Re.read_shift(2)+Re.read_shift(2);lt!==0&&(Qe.ct=y(Re,Re.l-8));var Et=Re.read_shift(2)+Re.read_shift(2)+Re.read_shift(2)+Re.read_shift(2);Et!==0&&(Qe.mt=y(Re,Re.l-8)),Qe.start=Re.read_shift(4,"i"),Qe.size=Re.read_shift(4,"i"),Qe.size<0&&Qe.start<0&&(Qe.size=Qe.type=0,Qe.start=X,Qe.name=""),Qe.type===5?(Le=Qe.start,ye>0&&Le!==X&&(Ee[Le].name="!StreamData")):Qe.size>=4096?(Qe.storage="fat",Ee[Qe.start]===void 0&&(Ee[Qe.start]=x(pe,Qe.start,Ee.fat_addrs,Ee.ssz)),Ee[Qe.start].name=Qe.name,Qe.content=Ee[Qe.start].data.slice(0,Qe.size)):(Qe.storage="minifat",Qe.size<0?Qe.size=0:Le!==X&&Qe.start!==X&&Ee[Le]&&(Qe.content=d(Qe,Ee[Le].data,(Ee[Je]||{}).data))),Qe.content&&Sn(Qe.content,0),_e[Me]=Qe,We.push(Qe)}}function y(le,Ee){return new Date((vi(le,Ee+4)/1e7*Math.pow(2,32)+vi(le,Ee)/1e7-11644473600)*1e3)}function _(le,Ee){return a(),f(c.readFileSync(le),Ee)}function k(le,Ee){var pe=Ee&&Ee.type;switch(pe||nr&&Buffer.isBuffer(le)&&(pe="buffer"),pe||"base64"){case"file":return _(le,Ee);case"base64":return f(xi(wi(le)),Ee);case"binary":return f(xi(le),Ee)}return f(le,Ee)}function F(le,Ee){var pe=Ee||{},xe=pe.root||"Root Entry";if(le.FullPaths||(le.FullPaths=[]),le.FileIndex||(le.FileIndex=[]),le.FullPaths.length!==le.FileIndex.length)throw new Error("inconsistent CFB structure");le.FullPaths.length===0&&(le.FullPaths[0]=xe+"/",le.FileIndex[0]={name:xe,type:5}),pe.CLSID&&(le.FileIndex[0].clsid=pe.CLSID),O(le)}function O(le){var Ee="Sh33tJ5";if(!It.find(le,"/"+Ee)){var pe=nt(4);pe[0]=55,pe[1]=pe[3]=50,pe[2]=54,le.FileIndex.push({name:Ee,type:2,content:pe,size:4,L:69,R:69,C:69}),le.FullPaths.push(le.FullPaths[0]+Ee),N(le)}}function N(le,Ee){F(le);for(var pe=!1,xe=!1,ye=le.FullPaths.length-1;ye>=0;--ye){var _e=le.FileIndex[ye];switch(_e.type){case 0:xe?pe=!0:(le.FileIndex.pop(),le.FullPaths.pop());break;case 1:case 2:case 5:xe=!0,isNaN(_e.R*_e.L*_e.C)&&(pe=!0),_e.R>-1&&_e.L>-1&&_e.R==_e.L&&(pe=!0);break;default:pe=!0;break}}if(!(!pe&&!Ee)){var We=new Date(1987,1,19),Je=0,Le=Object.create?Object.create(null):{},Ve=[];for(ye=0;ye<le.FullPaths.length;++ye)Le[le.FullPaths[ye]]=!0,le.FileIndex[ye].type!==0&&Ve.push([le.FullPaths[ye],le.FileIndex[ye]]);for(ye=0;ye<Ve.length;++ye){var He=n(Ve[ye][0]);xe=Le[He],xe||(Ve.push([He,{name:i(He).replace("/",""),type:1,clsid:I,ct:We,mt:We,content:null}]),Le[He]=!0)}for(Ve.sort(function(Me,Re){return e(Me[0],Re[0])}),le.FullPaths=[],le.FileIndex=[],ye=0;ye<Ve.length;++ye)le.FullPaths[ye]=Ve[ye][0],le.FileIndex[ye]=Ve[ye][1];for(ye=0;ye<Ve.length;++ye){var tt=le.FileIndex[ye],me=le.FullPaths[ye];if(tt.name=i(me).replace("/",""),tt.L=tt.R=tt.C=-(tt.color=1),tt.size=tt.content?tt.content.length:0,tt.start=0,tt.clsid=tt.clsid||I,ye===0)tt.C=Ve.length>1?1:-1,tt.size=0,tt.type=5;else if(me.slice(-1)=="/"){for(Je=ye+1;Je<Ve.length&&n(le.FullPaths[Je])!=me;++Je);for(tt.C=Je>=Ve.length?-1:Je,Je=ye+1;Je<Ve.length&&n(le.FullPaths[Je])!=n(me);++Je);tt.R=Je>=Ve.length?-1:Je,tt.type=1}else n(le.FullPaths[ye+1]||"")==n(me)&&(tt.R=ye+1),tt.type=2}}}function U(le,Ee){var pe=Ee||{};if(pe.fileType=="mad")return er(le,pe);switch(N(le),pe.fileType){case"zip":return At(le,pe)}var xe=function(Me){for(var Re=0,Qe=0,lt=0;lt<Me.FileIndex.length;++lt){var Et=Me.FileIndex[lt];if(Et.content){var Ot=Et.content.length;Ot>0&&(Ot<4096?Re+=Ot+63>>6:Qe+=Ot+511>>9)}}for(var sr=Me.FullPaths.length+3>>2,Wr=Re+7>>3,Rr=Re+127>>7,br=Wr+Qe+sr+Rr,Vr=br+127>>7,yn=Vr<=109?0:Math.ceil((Vr-109)/127);br+Vr+yn+127>>7>Vr;)yn=++Vr<=109?0:Math.ceil((Vr-109)/127);var ar=[1,yn,Vr,Rr,sr,Qe,Re,0];return Me.FileIndex[0].size=Re<<6,ar[7]=(Me.FileIndex[0].start=ar[0]+ar[1]+ar[2]+ar[3]+ar[4]+ar[5])+(ar[6]+7>>3),ar}(le),ye=nt(xe[7]<<9),_e=0,We=0;{for(_e=0;_e<8;++_e)ye.write_shift(1,H[_e]);for(_e=0;_e<8;++_e)ye.write_shift(2,0);for(ye.write_shift(2,62),ye.write_shift(2,3),ye.write_shift(2,65534),ye.write_shift(2,9),ye.write_shift(2,6),_e=0;_e<3;++_e)ye.write_shift(2,0);for(ye.write_shift(4,0),ye.write_shift(4,xe[2]),ye.write_shift(4,xe[0]+xe[1]+xe[2]+xe[3]-1),ye.write_shift(4,0),ye.write_shift(4,4096),ye.write_shift(4,xe[3]?xe[0]+xe[1]+xe[2]-1:X),ye.write_shift(4,xe[3]),ye.write_shift(-4,xe[1]?xe[0]-1:X),ye.write_shift(4,xe[1]),_e=0;_e<109;++_e)ye.write_shift(-4,_e<xe[2]?xe[1]+_e:-1)}if(xe[1])for(We=0;We<xe[1];++We){for(;_e<236+We*127;++_e)ye.write_shift(-4,_e<xe[2]?xe[1]+_e:-1);ye.write_shift(-4,We===xe[1]-1?X:We+1)}var Je=function(Me){for(We+=Me;_e<We-1;++_e)ye.write_shift(-4,_e+1);Me&&(++_e,ye.write_shift(-4,X))};for(We=_e=0,We+=xe[1];_e<We;++_e)ye.write_shift(-4,M.DIFSECT);for(We+=xe[2];_e<We;++_e)ye.write_shift(-4,M.FATSECT);Je(xe[3]),Je(xe[4]);for(var Le=0,Ve=0,He=le.FileIndex[0];Le<le.FileIndex.length;++Le)He=le.FileIndex[Le],He.content&&(Ve=He.content.length,!(Ve<4096)&&(He.start=We,Je(Ve+511>>9)));for(Je(xe[6]+7>>3);ye.l&511;)ye.write_shift(-4,M.ENDOFCHAIN);for(We=_e=0,Le=0;Le<le.FileIndex.length;++Le)He=le.FileIndex[Le],He.content&&(Ve=He.content.length,!(!Ve||Ve>=4096)&&(He.start=We,Je(Ve+63>>6)));for(;ye.l&511;)ye.write_shift(-4,M.ENDOFCHAIN);for(_e=0;_e<xe[4]<<2;++_e){var tt=le.FullPaths[_e];if(!tt||tt.length===0){for(Le=0;Le<17;++Le)ye.write_shift(4,0);for(Le=0;Le<3;++Le)ye.write_shift(4,-1);for(Le=0;Le<12;++Le)ye.write_shift(4,0);continue}He=le.FileIndex[_e],_e===0&&(He.start=He.size?He.start-1:X);var me=_e===0&&pe.root||He.name;if(Ve=2*(me.length+1),ye.write_shift(64,me,"utf16le"),ye.write_shift(2,Ve),ye.write_shift(1,He.type),ye.write_shift(1,He.color),ye.write_shift(-4,He.L),ye.write_shift(-4,He.R),ye.write_shift(-4,He.C),He.clsid)ye.write_shift(16,He.clsid,"hex");else for(Le=0;Le<4;++Le)ye.write_shift(4,0);ye.write_shift(4,He.state||0),ye.write_shift(4,0),ye.write_shift(4,0),ye.write_shift(4,0),ye.write_shift(4,0),ye.write_shift(4,He.start),ye.write_shift(4,He.size),ye.write_shift(4,0)}for(_e=1;_e<le.FileIndex.length;++_e)if(He=le.FileIndex[_e],He.size>=4096)if(ye.l=He.start+1<<9,nr&&Buffer.isBuffer(He.content))He.content.copy(ye,ye.l,0,He.size),ye.l+=He.size+511&-512;else{for(Le=0;Le<He.size;++Le)ye.write_shift(1,He.content[Le]);for(;Le&511;++Le)ye.write_shift(1,0)}for(_e=1;_e<le.FileIndex.length;++_e)if(He=le.FileIndex[_e],He.size>0&&He.size<4096)if(nr&&Buffer.isBuffer(He.content))He.content.copy(ye,ye.l,0,He.size),ye.l+=He.size+63&-64;else{for(Le=0;Le<He.size;++Le)ye.write_shift(1,He.content[Le]);for(;Le&63;++Le)ye.write_shift(1,0)}if(nr)ye.l=ye.length;else for(;ye.l<ye.length;)ye.write_shift(1,0);return ye}function z(le,Ee){var pe=le.FullPaths.map(function(Le){return Le.toUpperCase()}),xe=pe.map(function(Le){var Ve=Le.split("/");return Ve[Ve.length-(Le.slice(-1)=="/"?2:1)]}),ye=!1;Ee.charCodeAt(0)===47?(ye=!0,Ee=pe[0].slice(0,-1)+Ee):ye=Ee.indexOf("/")!==-1;var _e=Ee.toUpperCase(),We=ye===!0?pe.indexOf(_e):xe.indexOf(_e);if(We!==-1)return le.FileIndex[We];var Je=!_e.match(bf);for(_e=_e.replace(Xn,""),Je&&(_e=_e.replace(bf,"!")),We=0;We<pe.length;++We)if((Je?pe[We].replace(bf,"!"):pe[We]).replace(Xn,"")==_e||(Je?xe[We].replace(bf,"!"):xe[We]).replace(Xn,"")==_e)return le.FileIndex[We];return null}var W=64,X=-2,J="d0cf11e0a1b11ae1",H=[208,207,17,224,161,177,26,225],I="00000000000000000000000000000000",M={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:X,FREESECT:-1,HEADER_SIGNATURE:J,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:I,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function E(le,Ee,pe){a();var xe=U(le,pe);c.writeFileSync(Ee,xe)}function A(le){for(var Ee=new Array(le.length),pe=0;pe<le.length;++pe)Ee[pe]=String.fromCharCode(le[pe]);return Ee.join("")}function B(le,Ee){var pe=U(le,Ee);switch(Ee&&Ee.type||"buffer"){case"file":return a(),c.writeFileSync(Ee.filename,pe),pe;case"binary":return typeof pe=="string"?pe:A(pe);case"base64":return Ff(typeof pe=="string"?pe:A(pe));case"buffer":if(nr)return Buffer.isBuffer(pe)?pe:Us(pe);case"array":return typeof pe=="string"?xi(pe):pe}return pe}var L;function P(le){try{var Ee=le.InflateRaw,pe=new Ee;if(pe._processChunk(new Uint8Array([3,0]),pe._finishFlushFlag),pe.bytesRead)L=le;else throw new Error("zlib does not expose bytesRead")}catch(xe){console.error("cannot use native zlib: "+(xe.message||xe))}}function R(le,Ee){if(!L)return je(le,Ee);var pe=L.InflateRaw,xe=new pe,ye=xe._processChunk(le.slice(le.l),xe._finishFlushFlag);return le.l+=xe.bytesRead,ye}function C(le){return L?L.deflateRawSync(le):we(le)}var S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=[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],V=[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 te(le){var Ee=(le<<1|le<<11)&139536|(le<<5|le<<15)&558144;return(Ee>>16|Ee>>8|Ee)&255}for(var oe=typeof Uint8Array<"u",he=oe?new Uint8Array(256):[],Ne=0;Ne<256;++Ne)he[Ne]=te(Ne);function q(le,Ee){var pe=he[le&255];return Ee<=8?pe>>>8-Ee:(pe=pe<<8|he[le>>8&255],Ee<=16?pe>>>16-Ee:(pe=pe<<8|he[le>>16&255],pe>>>24-Ee))}function ne(le,Ee){var pe=Ee&7,xe=Ee>>>3;return(le[xe]|(pe<=6?0:le[xe+1]<<8))>>>pe&3}function Q(le,Ee){var pe=Ee&7,xe=Ee>>>3;return(le[xe]|(pe<=5?0:le[xe+1]<<8))>>>pe&7}function re(le,Ee){var pe=Ee&7,xe=Ee>>>3;return(le[xe]|(pe<=4?0:le[xe+1]<<8))>>>pe&15}function ve(le,Ee){var pe=Ee&7,xe=Ee>>>3;return(le[xe]|(pe<=3?0:le[xe+1]<<8))>>>pe&31}function Ce(le,Ee){var pe=Ee&7,xe=Ee>>>3;return(le[xe]|(pe<=1?0:le[xe+1]<<8))>>>pe&127}function ce(le,Ee,pe){var xe=Ee&7,ye=Ee>>>3,_e=(1<<pe)-1,We=le[ye]>>>xe;return pe<8-xe||(We|=le[ye+1]<<8-xe,pe<16-xe)||(We|=le[ye+2]<<16-xe,pe<24-xe)||(We|=le[ye+3]<<24-xe),We&_e}function se(le,Ee,pe){var xe=Ee&7,ye=Ee>>>3;return xe<=5?le[ye]|=(pe&7)<<xe:(le[ye]|=pe<<xe&255,le[ye+1]=(pe&7)>>8-xe),Ee+3}function ee(le,Ee,pe){var xe=Ee&7,ye=Ee>>>3;return pe=(pe&1)<<xe,le[ye]|=pe,Ee+1}function G(le,Ee,pe){var xe=Ee&7,ye=Ee>>>3;return pe<<=xe,le[ye]|=pe&255,pe>>>=8,le[ye+1]=pe,Ee+8}function Z(le,Ee,pe){var xe=Ee&7,ye=Ee>>>3;return pe<<=xe,le[ye]|=pe&255,pe>>>=8,le[ye+1]=pe&255,le[ye+2]=pe>>>8,Ee+16}function de(le,Ee){var pe=le.length,xe=2*pe>Ee?2*pe:Ee+5,ye=0;if(pe>=Ee)return le;if(nr){var _e=Kp(xe);if(le.copy)le.copy(_e);else for(;ye<le.length;++ye)_e[ye]=le[ye];return _e}else if(oe){var We=new Uint8Array(xe);if(We.set)We.set(le);else for(;ye<pe;++ye)We[ye]=le[ye];return We}return le.length=xe,le}function Ae(le){for(var Ee=new Array(le),pe=0;pe<le;++pe)Ee[pe]=0;return Ee}function K(le,Ee,pe){var xe=1,ye=0,_e=0,We=0,Je=0,Le=le.length,Ve=oe?new Uint16Array(32):Ae(32);for(_e=0;_e<32;++_e)Ve[_e]=0;for(_e=Le;_e<pe;++_e)le[_e]=0;Le=le.length;var He=oe?new Uint16Array(Le):Ae(Le);for(_e=0;_e<Le;++_e)Ve[ye=le[_e]]++,xe<ye&&(xe=ye),He[_e]=0;for(Ve[0]=0,_e=1;_e<=xe;++_e)Ve[_e+16]=Je=Je+Ve[_e-1]<<1;for(_e=0;_e<Le;++_e)Je=le[_e],Je!=0&&(He[_e]=Ve[Je+16]++);var tt=0;for(_e=0;_e<Le;++_e)if(tt=le[_e],tt!=0)for(Je=q(He[_e],xe)>>xe-tt,We=(1<<xe+4-tt)-1;We>=0;--We)Ee[Je|We<<tt]=tt&15|_e<<4;return xe}var Te=oe?new Uint16Array(512):Ae(512),Oe=oe?new Uint16Array(32):Ae(32);if(!oe){for(var ie=0;ie<512;++ie)Te[ie]=0;for(ie=0;ie<32;++ie)Oe[ie]=0}(function(){for(var le=[],Ee=0;Ee<32;Ee++)le.push(5);K(le,Oe,32);var pe=[];for(Ee=0;Ee<=143;Ee++)pe.push(8);for(;Ee<=255;Ee++)pe.push(9);for(;Ee<=279;Ee++)pe.push(7);for(;Ee<=287;Ee++)pe.push(8);K(pe,Te,288)})();var fe=function(){for(var Ee=oe?new Uint8Array(32768):[],pe=0,xe=0;pe<V.length-1;++pe)for(;xe<V[pe+1];++xe)Ee[xe]=pe;for(;xe<32768;++xe)Ee[xe]=29;var ye=oe?new Uint8Array(259):[];for(pe=0,xe=0;pe<D.length-1;++pe)for(;xe<D[pe+1];++xe)ye[xe]=pe;function _e(Je,Le){for(var Ve=0;Ve<Je.length;){var He=Math.min(65535,Je.length-Ve),tt=Ve+He==Je.length;for(Le.write_shift(1,+tt),Le.write_shift(2,He),Le.write_shift(2,~He&65535);He-- >0;)Le[Le.l++]=Je[Ve++]}return Le.l}function We(Je,Le){for(var Ve=0,He=0,tt=oe?new Uint16Array(32768):[];He<Je.length;){var me=Math.min(65535,Je.length-He);if(me<10){for(Ve=se(Le,Ve,+(He+me==Je.length)),Ve&7&&(Ve+=8-(Ve&7)),Le.l=Ve/8|0,Le.write_shift(2,me),Le.write_shift(2,~me&65535);me-- >0;)Le[Le.l++]=Je[He++];Ve=Le.l*8;continue}Ve=se(Le,Ve,+(He+me==Je.length)+2);for(var Me=0;me-- >0;){var Re=Je[He];Me=(Me<<5^Re)&32767;var Qe=-1,lt=0;if((Qe=tt[Me])&&(Qe|=He&-32768,Qe>He&&(Qe-=32768),Qe<He))for(;Je[Qe+lt]==Je[He+lt]&<<250;)++lt;if(lt>2){Re=ye[lt],Re<=22?Ve=G(Le,Ve,he[Re+1]>>1)-1:(G(Le,Ve,3),Ve+=5,G(Le,Ve,he[Re-23]>>5),Ve+=3);var Et=Re<8?0:Re-4>>2;Et>0&&(Z(Le,Ve,lt-D[Re]),Ve+=Et),Re=Ee[He-Qe],Ve=G(Le,Ve,he[Re]>>3),Ve-=3;var Ot=Re<4?0:Re-2>>1;Ot>0&&(Z(Le,Ve,He-Qe-V[Re]),Ve+=Ot);for(var sr=0;sr<lt;++sr)tt[Me]=He&32767,Me=(Me<<5^Je[He])&32767,++He;me-=lt-1}else Re<=143?Re=Re+48:Ve=ee(Le,Ve,1),Ve=G(Le,Ve,he[Re]),tt[Me]=He&32767,++He}Ve=G(Le,Ve,0)-1}return Le.l=(Ve+7)/8|0,Le.l}return function(Le,Ve){return Le.length<8?_e(Le,Ve):We(Le,Ve)}}();function we(le){var Ee=nt(50+Math.floor(le.length*1.1)),pe=fe(le,Ee);return Ee.slice(0,pe)}var Fe=oe?new Uint16Array(32768):Ae(32768),Ue=oe?new Uint16Array(32768):Ae(32768),Pe=oe?new Uint16Array(128):Ae(128),$e=1,rt=1;function Ze(le,Ee){var pe=ve(le,Ee)+257;Ee+=5;var xe=ve(le,Ee)+1;Ee+=5;var ye=re(le,Ee)+4;Ee+=4;for(var _e=0,We=oe?new Uint8Array(19):Ae(19),Je=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Le=1,Ve=oe?new Uint8Array(8):Ae(8),He=oe?new Uint8Array(8):Ae(8),tt=We.length,me=0;me<ye;++me)We[S[me]]=_e=Q(le,Ee),Le<_e&&(Le=_e),Ve[_e]++,Ee+=3;var Me=0;for(Ve[0]=0,me=1;me<=Le;++me)He[me]=Me=Me+Ve[me-1]<<1;for(me=0;me<tt;++me)(Me=We[me])!=0&&(Je[me]=He[Me]++);var Re=0;for(me=0;me<tt;++me)if(Re=We[me],Re!=0){Me=he[Je[me]]>>8-Re;for(var Qe=(1<<7-Re)-1;Qe>=0;--Qe)Pe[Me|Qe<<Re]=Re&7|me<<3}var lt=[];for(Le=1;lt.length<pe+xe;)switch(Me=Pe[Ce(le,Ee)],Ee+=Me&7,Me>>>=3){case 16:for(_e=3+ne(le,Ee),Ee+=2,Me=lt[lt.length-1];_e-- >0;)lt.push(Me);break;case 17:for(_e=3+Q(le,Ee),Ee+=3;_e-- >0;)lt.push(0);break;case 18:for(_e=11+Ce(le,Ee),Ee+=7;_e-- >0;)lt.push(0);break;default:lt.push(Me),Le<Me&&(Le=Me);break}var Et=lt.slice(0,pe),Ot=lt.slice(pe);for(me=pe;me<286;++me)Et[me]=0;for(me=xe;me<30;++me)Ot[me]=0;return $e=K(Et,Fe,286),rt=K(Ot,Ue,30),Ee}function Se(le,Ee){if(le[0]==3&&!(le[1]&3))return[aa(Ee),2];for(var pe=0,xe=0,ye=Kp(Ee||1<<18),_e=0,We=ye.length>>>0,Je=0,Le=0;!(xe&1);){if(xe=Q(le,pe),pe+=3,xe>>>1)xe>>1==1?(Je=9,Le=5):(pe=Ze(le,pe),Je=$e,Le=rt);else{pe&7&&(pe+=8-(pe&7));var Ve=le[pe>>>3]|le[(pe>>>3)+1]<<8;if(pe+=32,Ve>0)for(!Ee&&We<_e+Ve&&(ye=de(ye,_e+Ve),We=ye.length);Ve-- >0;)ye[_e++]=le[pe>>>3],pe+=8;continue}for(;;){!Ee&&We<_e+32767&&(ye=de(ye,_e+32767),We=ye.length);var He=ce(le,pe,Je),tt=xe>>>1==1?Te[He]:Fe[He];if(pe+=tt&15,tt>>>=4,!(tt>>>8&255))ye[_e++]=tt;else{if(tt==256)break;tt-=257;var me=tt<8?0:tt-4>>2;me>5&&(me=0);var Me=_e+D[tt];me>0&&(Me+=ce(le,pe,me),pe+=me),He=ce(le,pe,Le),tt=xe>>>1==1?Oe[He]:Ue[He],pe+=tt&15,tt>>>=4;var Re=tt<4?0:tt-2>>1,Qe=V[tt];for(Re>0&&(Qe+=ce(le,pe,Re),pe+=Re),!Ee&&We<Me&&(ye=de(ye,Me+100),We=ye.length);_e<Me;)ye[_e]=ye[_e-Qe],++_e}}}return Ee?[ye,pe+7>>>3]:[ye.slice(0,_e),pe+7>>>3]}function je(le,Ee){var pe=le.slice(le.l||0),xe=Se(pe,Ee);return le.l+=xe[1],xe[0]}function Ke(le,Ee){if(le)typeof console<"u"&&console.error(Ee);else throw new Error(Ee)}function st(le,Ee){var pe=le;Sn(pe,0);var xe=[],ye=[],_e={FileIndex:xe,FullPaths:ye};F(_e,{root:Ee.root});for(var We=pe.length-4;(pe[We]!=80||pe[We+1]!=75||pe[We+2]!=5||pe[We+3]!=6)&&We>=0;)--We;pe.l=We+4,pe.l+=4;var Je=pe.read_shift(2);pe.l+=6;var Le=pe.read_shift(4);for(pe.l=Le,We=0;We<Je;++We){pe.l+=20;var Ve=pe.read_shift(4),He=pe.read_shift(4),tt=pe.read_shift(2),me=pe.read_shift(2),Me=pe.read_shift(2);pe.l+=8;var Re=pe.read_shift(4),Qe=h(pe.slice(pe.l+tt,pe.l+tt+me));pe.l+=tt+me+Me;var lt=pe.l;pe.l=Re+4,St(pe,Ve,He,_e,Qe),pe.l=lt}return _e}function St(le,Ee,pe,xe,ye){le.l+=2;var _e=le.read_shift(2),We=le.read_shift(2),Je=o(le);if(_e&8257)throw new Error("Unsupported ZIP encryption");for(var Le=le.read_shift(4),Ve=le.read_shift(4),He=le.read_shift(4),tt=le.read_shift(2),me=le.read_shift(2),Me="",Re=0;Re<tt;++Re)Me+=String.fromCharCode(le[le.l++]);if(me){var Qe=h(le.slice(le.l,le.l+me));(Qe[21589]||{}).mt&&(Je=Qe[21589].mt),((ye||{})[21589]||{}).mt&&(Je=ye[21589].mt)}le.l+=me;var lt=le.slice(le.l,le.l+Ve);switch(We){case 8:lt=R(le,He);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+We)}var Et=!1;_e&8&&(Le=le.read_shift(4),Le==134695760&&(Le=le.read_shift(4),Et=!0),Ve=le.read_shift(4),He=le.read_shift(4)),Ve!=Ee&&Ke(Et,"Bad compressed size: "+Ee+" != "+Ve),He!=pe&&Ke(Et,"Bad uncompressed size: "+pe+" != "+He),Ct(xe,Me,lt,{unsafe:!0,mt:Je})}function At(le,Ee){var pe=Ee||{},xe=[],ye=[],_e=nt(1),We=pe.compression?8:0,Je=0,Le=0,Ve=0,He=0,tt=0,me=le.FullPaths[0],Me=me,Re=le.FileIndex[0],Qe=[],lt=0;for(Le=1;Le<le.FullPaths.length;++Le)if(Me=le.FullPaths[Le].slice(me.length),Re=le.FileIndex[Le],!(!Re.size||!Re.content||Me=="Sh33tJ5")){var Et=He,Ot=nt(Me.length);for(Ve=0;Ve<Me.length;++Ve)Ot.write_shift(1,Me.charCodeAt(Ve)&127);Ot=Ot.slice(0,Ot.l),Qe[tt]=D8.buf(Re.content,0);var sr=Re.content;We==8&&(sr=C(sr)),_e=nt(30),_e.write_shift(4,67324752),_e.write_shift(2,20),_e.write_shift(2,Je),_e.write_shift(2,We),Re.mt?s(_e,Re.mt):_e.write_shift(4,0),_e.write_shift(-4,Qe[tt]),_e.write_shift(4,sr.length),_e.write_shift(4,Re.content.length),_e.write_shift(2,Ot.length),_e.write_shift(2,0),He+=_e.length,xe.push(_e),He+=Ot.length,xe.push(Ot),He+=sr.length,xe.push(sr),_e=nt(46),_e.write_shift(4,33639248),_e.write_shift(2,0),_e.write_shift(2,20),_e.write_shift(2,Je),_e.write_shift(2,We),_e.write_shift(4,0),_e.write_shift(-4,Qe[tt]),_e.write_shift(4,sr.length),_e.write_shift(4,Re.content.length),_e.write_shift(2,Ot.length),_e.write_shift(2,0),_e.write_shift(2,0),_e.write_shift(2,0),_e.write_shift(2,0),_e.write_shift(4,0),_e.write_shift(4,Et),lt+=_e.l,ye.push(_e),lt+=Ot.length,ye.push(Ot),++tt}return _e=nt(22),_e.write_shift(4,101010256),_e.write_shift(2,0),_e.write_shift(2,0),_e.write_shift(2,tt),_e.write_shift(2,tt),_e.write_shift(4,lt),_e.write_shift(4,He),_e.write_shift(2,0),xn([xn(xe),xn(ye),_e])}var bt={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 wt(le,Ee){if(le.ctype)return le.ctype;var pe=le.name||"",xe=pe.match(/\.([^\.]+)$/);return xe&&bt[xe[1]]||Ee&&(xe=(pe=Ee).match(/[\.\\]([^\.\\])+$/),xe&&bt[xe[1]])?bt[xe[1]]:"application/octet-stream"}function Dt(le){for(var Ee=Ff(le),pe=[],xe=0;xe<Ee.length;xe+=76)pe.push(Ee.slice(xe,xe+76));return pe.join(`\r
|
||
`)+`\r
|
||
`}function gt(le){var Ee=le.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ve){var He=Ve.charCodeAt(0).toString(16).toUpperCase();return"="+(He.length==1?"0"+He:He)});Ee=Ee.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),Ee.charAt(0)==`
|
||
`&&(Ee="=0D"+Ee.slice(1)),Ee=Ee.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
|
||
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var pe=[],xe=Ee.split(`\r
|
||
`),ye=0;ye<xe.length;++ye){var _e=xe[ye];if(_e.length==0){pe.push("");continue}for(var We=0;We<_e.length;){var Je=76,Le=_e.slice(We,We+Je);Le.charAt(Je-1)=="="?Je--:Le.charAt(Je-2)=="="?Je-=2:Le.charAt(Je-3)=="="&&(Je-=3),Le=_e.slice(We,We+Je),We+=Je,We<_e.length&&(Le+="="),pe.push(Le)}}return pe.join(`\r
|
||
`)}function xt(le){for(var Ee=[],pe=0;pe<le.length;++pe){for(var xe=le[pe];pe<=le.length&&xe.charAt(xe.length-1)=="=";)xe=xe.slice(0,xe.length-1)+le[++pe];Ee.push(xe)}for(var ye=0;ye<Ee.length;++ye)Ee[ye]=Ee[ye].replace(/[=][0-9A-Fa-f]{2}/g,function(_e){return String.fromCharCode(parseInt(_e.slice(1),16))});return xi(Ee.join(`\r
|
||
`))}function Bt(le,Ee,pe){for(var xe="",ye="",_e="",We,Je=0;Je<10;++Je){var Le=Ee[Je];if(!Le||Le.match(/^\s*$/))break;var Ve=Le.match(/^(.*?):\s*([^\s].*)$/);if(Ve)switch(Ve[1].toLowerCase()){case"content-location":xe=Ve[2].trim();break;case"content-type":_e=Ve[2].trim();break;case"content-transfer-encoding":ye=Ve[2].trim();break}}switch(++Je,ye.toLowerCase()){case"base64":We=xi(wi(Ee.slice(Je).join("")));break;case"quoted-printable":We=xt(Ee.slice(Je));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+ye)}var He=Ct(le,xe.slice(pe.length),We,{unsafe:!0});_e&&(He.ctype=_e)}function kt(le,Ee){if(A(le.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var pe=Ee&&Ee.root||"",xe=(nr&&Buffer.isBuffer(le)?le.toString("binary"):A(le)).split(`\r
|
||
`),ye=0,_e="";for(ye=0;ye<xe.length;++ye)if(_e=xe[ye],!!/^Content-Location:/i.test(_e)&&(_e=_e.slice(_e.indexOf("file")),pe||(pe=_e.slice(0,_e.lastIndexOf("/")+1)),_e.slice(0,pe.length)!=pe))for(;pe.length>0&&(pe=pe.slice(0,pe.length-1),pe=pe.slice(0,pe.lastIndexOf("/")+1),_e.slice(0,pe.length)!=pe););var We=(xe[1]||"").match(/boundary="(.*?)"/);if(!We)throw new Error("MAD cannot find boundary");var Je="--"+(We[1]||""),Le=[],Ve=[],He={FileIndex:Le,FullPaths:Ve};F(He);var tt,me=0;for(ye=0;ye<xe.length;++ye){var Me=xe[ye];Me!==Je&&Me!==Je+"--"||(me++&&Bt(He,xe.slice(tt,ye),pe),tt=ye)}return He}function er(le,Ee){var pe=Ee||{},xe=pe.boundary||"SheetJS";xe="------="+xe;for(var ye=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+xe.slice(2)+'"',"","",""],_e=le.FullPaths[0],We=_e,Je=le.FileIndex[0],Le=1;Le<le.FullPaths.length;++Le)if(We=le.FullPaths[Le].slice(_e.length),Je=le.FileIndex[Le],!(!Je.size||!Je.content||We=="Sh33tJ5")){We=We.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(lt){return"_x"+lt.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(lt){return"_u"+lt.charCodeAt(0).toString(16)+"_"});for(var Ve=Je.content,He=nr&&Buffer.isBuffer(Ve)?Ve.toString("binary"):A(Ve),tt=0,me=Math.min(1024,He.length),Me=0,Re=0;Re<=me;++Re)(Me=He.charCodeAt(Re))>=32&&Me<128&&++tt;var Qe=tt>=me*4/5;ye.push(xe),ye.push("Content-Location: "+(pe.root||"file:///C:/SheetJS/")+We),ye.push("Content-Transfer-Encoding: "+(Qe?"quoted-printable":"base64")),ye.push("Content-Type: "+wt(Je,We)),ye.push(""),ye.push(Qe?gt(He):Dt(He))}return ye.push(xe+`--\r
|
||
`),ye.join(`\r
|
||
`)}function zt(le){var Ee={};return F(Ee,le),Ee}function Ct(le,Ee,pe,xe){var ye=xe&&xe.unsafe;ye||F(le);var _e=!ye&&It.find(le,Ee);if(!_e){var We=le.FullPaths[0];Ee.slice(0,We.length)==We?We=Ee:(We.slice(-1)!="/"&&(We+="/"),We=(We+Ee).replace("//","/")),_e={name:i(Ee),type:2},le.FileIndex.push(_e),le.FullPaths.push(We),ye||It.utils.cfb_gc(le)}return _e.content=pe,_e.size=pe?pe.length:0,xe&&(xe.CLSID&&(_e.clsid=xe.CLSID),xe.mt&&(_e.mt=xe.mt),xe.ct&&(_e.ct=xe.ct)),_e}function Kt(le,Ee){F(le);var pe=It.find(le,Ee);if(pe){for(var xe=0;xe<le.FileIndex.length;++xe)if(le.FileIndex[xe]==pe)return le.FileIndex.splice(xe,1),le.FullPaths.splice(xe,1),!0}return!1}function ir(le,Ee,pe){F(le);var xe=It.find(le,Ee);if(xe){for(var ye=0;ye<le.FileIndex.length;++ye)if(le.FileIndex[ye]==xe)return le.FileIndex[ye].name=i(pe),le.FullPaths[ye]=pe,!0}return!1}function Nt(le){N(le,!0)}return r.find=z,r.read=k,r.parse=f,r.write=B,r.writeFile=E,r.utils={cfb_new:zt,cfb_add:Ct,cfb_del:Kt,cfb_mov:ir,cfb_gc:Nt,ReadShift:yf,CheckField:sg,prep_blob:Sn,bconcat:xn,use_zlib:P,_deflateRaw:we,_inflateRaw:je,consts:M},r}();function N8(t){return typeof t=="string"?Ac(t):Array.isArray(t)?o8(t):t}function Xf(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=Ac(r);break;default:throw new Error("Unsupported encoding "+e)}return Deno.writeFileSync(t,r)}var n=e=="utf8"?ds(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,t);if(typeof Blob<"u"){var i=new Blob([N8(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=ha(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 P8(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 Jr(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 r1(t,r){for(var e=[],n=Jr(t),i=0;i!==n.length;++i)e[t[n[i]][r]]==null&&(e[t[n[i]][r]]=n[i]);return e}function Rc(t){for(var r=[],e=Jr(t),n=0;n!==e.length;++n)r[t[e[n]]]=e[n];return r}function Mc(t){for(var r=[],e=Jr(t),n=0;n!==e.length;++n)r[t[e[n]]]=parseInt(e[n],10);return r}function B8(t){for(var r=[],e=Jr(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 xc=new Date(1899,11,30,0,0,0);function Cn(t,r){var e=t.getTime();r&&(e-=1462*24*60*60*1e3);var n=xc.getTime()+(t.getTimezoneOffset()-xc.getTimezoneOffset())*6e4;return(e-n)/(24*60*60*1e3)}var Lm=new Date,L8=xc.getTime()+(Lm.getTimezoneOffset()-xc.getTimezoneOffset())*6e4,n1=Lm.getTimezoneOffset();function Ic(t){var r=new Date;return r.setTime(t*24*60*60*1e3+L8),r.getTimezoneOffset()!==n1&&r.setTime(r.getTime()+(r.getTimezoneOffset()-n1)*6e4),r}function U8(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 i1=new Date("2017-02-19T19:06:09.000Z"),Um=isNaN(i1.getFullYear())?new Date("2/19/17"):i1,j8=Um.getFullYear()==2017;function jr(t,r){var e=new Date(t);if(j8)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(Um.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 Ba(t,r){if(nr&&Buffer.isBuffer(t)){if(r){if(t[0]==255&&t[1]==254)return ds(t.slice(2).toString("utf16le"));if(t[1]==254&&t[2]==255)return ds(km(t.slice(2).toString("binary")))}return t.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(t[0]==255&&t[1]==254)return ds(new TextDecoder("utf-16le").decode(t.slice(2)));if(t[0]==254&&t[1]==255)return ds(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 Br(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]=Br(t[e]));return r}function zr(t,r){for(var e="";e.length<r;)e+=t;return e}function Ps(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 H8=["january","february","march","april","may","june","july","august","september","october","november","december"];function Mf(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&&H8.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 W8=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 jm(t){return t?t.content&&t.type?Ba(t.content,!0):t.data?xf(t.data):t.asNodeBuffer&&nr?xf(t.asNodeBuffer().toString("binary")):t.asBinary?xf(t.asBinary()):t._data&&t._data.getContent?xf(Ba(Array.prototype.slice.call(t._data.getContent(),0))):null:null}function Hm(t){if(!t)return null;if(t.data)return Vp(t.data);if(t.asNodeBuffer&&nr)return t.asNodeBuffer();if(t._data&&t._data.getContent){var r=t._data.getContent();return typeof r=="string"?Vp(r):Array.prototype.slice.call(r)}return t.content&&t.type?t.content:null}function $8(t){return t&&t.name.slice(-4)===".bin"?Hm(t):jm(t)}function Di(t,r){for(var e=t.FullPaths||Jr(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 $u(t,r){var e=Di(t,r);if(e==null)throw new Error("Cannot find file "+r+" in zip");return e}function rn(t,r,e){if(!e)return $8($u(t,r));if(!r)return null;try{return rn(t,r)}catch{return null}}function bi(t,r,e){if(!e)return jm($u(t,r));if(!r)return null;try{return bi(t,r)}catch{return null}}function Wm(t,r,e){if(!e)return Hm($u(t,r));if(!r)return null;try{return Wm(t,r)}catch{return null}}function s1(t){for(var r=t.FullPaths||Jr(t.files),e=[],n=0;n<r.length;++n)r[n].slice(-1)!="/"&&e.push(r[n].replace(/^Root Entry[\/]/,""));return e.sort()}function qt(t,r,e){if(t.FullPaths){if(typeof e=="string"){var n;return nr?n=Us(e):n=f8(e),It.utils.cfb_add(t,r,n)}It.utils.cfb_add(t,r,e)}else t.file(r,e)}function zu(){return It.utils.cfb_new()}function $m(t,r){switch(r.type){case"base64":return It.read(t,{type:"base64"});case"binary":return It.read(t,{type:"binary"});case"buffer":case"array":return It.read(t,{type:"buffer"})}throw new Error("Unrecognized type "+r.type)}function wf(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 Qr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
||
`,z8=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,a1=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,X8=/<[^>]*>/g,Ln=Qr.match(a1)?a1:X8,V8=/<\w*:/,G8=/<(\/?)\w+:/;function Wt(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(z8),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 gs(t){return t.replace(G8,"<$1")}var zm={""":'"',"'":"'",">":">","<":"<","&":"&"},Xu=Rc(zm),vr=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 zm[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))}}(),Vu=/[&<>'"]/g,K8=/[\u0000-\u0008\u000b-\u001f]/g;function Cr(t){var r=t+"";return r.replace(Vu,function(e){return Xu[e]}).replace(K8,function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"})}function o1(t){return Cr(t).replace(/ /g,"_x0020_")}var Xm=/[\u0000-\u001f]/g;function Gu(t){var r=t+"";return r.replace(Vu,function(e){return Xu[e]}).replace(/\n/g,"<br/>").replace(Xm,function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"})}function Y8(t){var r=t+"";return r.replace(Vu,function(e){return Xu[e]}).replace(Xm,function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"})}var f1=function(){var t=/&#(\d+);/g;function r(e,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(t,r)}}();function Z8(t){return t.replace(/(\r\n|[\r\n])/g," ")}function Pr(t){switch(t){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function jh(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 l1(t){var r=aa(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 c1(t){return Us(t,"binary").toString("utf8")}var Xl="foo bar bazâð£",Fr=nr&&(c1(Xl)==jh(Xl)&&c1||l1(Xl)==jh(Xl)&&l1)||jh,ds=nr?function(t){return Us(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("")},If=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||"")}}(),J8=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}}(),Q8=function(){var t={};return function(e){return t[e]!==void 0?t[e]:t[e]=new RegExp("<(?:vt:)?"+e+">([\\s\\S]*?)</(?:vt:)?"+e+">","g")}}(),q8=/<\/?(?:vt:)?variant>/g,e5=/<(?:vt:)([^>]*)>([\s\S]*)</;function h1(t,r){var e=Wt(t),n=t.match(Q8(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(q8,"").match(e5);o&&i.push({v:Fr(o[2]),t:o[1]})}),i}var Vm=/(^\s|\s$|\n)/;function kn(t,r){return"<"+t+(r.match(Vm)?' xml:space="preserve"':"")+">"+r+"</"+t+">"}function Of(t){return Jr(t).map(function(r){return" "+r+'="'+t[r]+'"'}).join("")}function pt(t,r,e){return"<"+t+(e!=null?Of(e):"")+(r!=null?(r.match(Vm)?' xml:space="preserve"':"")+">"+r+"</"+t:"/")+">"}function pu(t,r){try{return t.toISOString().replace(/\.\d*/,"")}catch(e){if(r)throw e}return""}function t5(t,r){switch(typeof t){case"string":var e=pt("vt:lpwstr",Cr(t));return r&&(e=e.replace(/"/g,"_x0022_")),e;case"number":return pt((t|0)==t?"vt:i4":"vt:r8",Cr(String(t)));case"boolean":return pt("vt:bool",t?"true":"false")}if(t instanceof Date)return pt("vt:filetime",pu(t));throw new Error("Unable to serialize "+t)}function Ku(t){if(nr&&Buffer.isBuffer(t))return t.toString("utf8");if(typeof t=="string")return t;if(typeof Uint8Array<"u"&&t instanceof Uint8Array)return Fr(ha(ju(t)));throw new Error("Bad input format: expected Buffer or string")}var Df=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,un={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"},Wa=["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"],gi={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 r5(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 n5(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 u1=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},d1=nr?function(t){return t[0].length>0&&Buffer.isBuffer(t[0][0])?Buffer.concat(t[0].map(function(r){return Buffer.isBuffer(r)?r:Us(r)})):u1(t)}:u1,p1=function(t,r,e){for(var n=[],i=r;i<e;i+=2)n.push(String.fromCharCode(Os(t,i)));return n.join("").replace(Xn,"")},Yu=nr?function(t,r,e){return Buffer.isBuffer(t)?t.toString("utf16le",r,e).replace(Xn,""):p1(t,r,e)}:p1,m1=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("")},Gm=nr?function(t,r,e){return Buffer.isBuffer(t)?t.toString("hex",r,r+e):m1(t,r,e)}:m1,g1=function(t,r,e){for(var n=[],i=r;i<e;i++)n.push(String.fromCharCode(Ro(t,i)));return n.join("")},Vf=nr?function(r,e,n){return Buffer.isBuffer(r)?r.toString("utf8",e,n):g1(r,e,n)}:g1,Km=function(t,r){var e=vi(t,r);return e>0?Vf(t,r+4,r+4+e-1):""},Ym=Km,Zm=function(t,r){var e=vi(t,r);return e>0?Vf(t,r+4,r+4+e-1):""},Jm=Zm,Qm=function(t,r){var e=2*vi(t,r);return e>0?Vf(t,r+4,r+4+e-1):""},qm=Qm,eg=function(r,e){var n=vi(r,e);return n>0?Yu(r,e+4,e+4+n):""},tg=eg,rg=function(t,r){var e=vi(t,r);return e>0?Vf(t,r+4,r+4+e):""},ng=rg,ig=function(t,r){return r5(t,r)},bc=ig,Zu=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};nr&&(Ym=function(r,e){if(!Buffer.isBuffer(r))return Km(r,e);var n=r.readUInt32LE(e);return n>0?r.toString("utf8",e+4,e+4+n-1):""},Jm=function(r,e){if(!Buffer.isBuffer(r))return Zm(r,e);var n=r.readUInt32LE(e);return n>0?r.toString("utf8",e+4,e+4+n-1):""},qm=function(r,e){if(!Buffer.isBuffer(r))return Qm(r,e);var n=2*r.readUInt32LE(e);return r.toString("utf16le",e+4,e+4+n-1)},tg=function(r,e){if(!Buffer.isBuffer(r))return eg(r,e);var n=r.readUInt32LE(e);return r.toString("utf16le",e+4,e+4+n)},ng=function(r,e){if(!Buffer.isBuffer(r))return rg(r,e);var n=r.readUInt32LE(e);return r.toString("utf8",e+4,e+4+n)},bc=function(r,e){return Buffer.isBuffer(r)?r.readDoubleLE(e):ig(r,e)},Zu=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var Ro=function(t,r){return t[r]},Os=function(t,r){return t[r+1]*256+t[r]},i5=function(t,r){var e=t[r+1]*256+t[r];return e<32768?e:(65535-e+1)*-1},vi=function(t,r){return t[r+3]*(1<<24)+(t[r+2]<<16)+(t[r+1]<<8)+t[r]},Ca=function(t,r){return t[r+3]<<24|t[r+2]<<16|t[r+1]<<8|t[r]},s5=function(t,r){return t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]};function yf(t,r){var e="",n,i,s=[],o,h,c,a;switch(r){case"dbcs":if(a=this.l,nr&&Buffer.isBuffer(this))e=this.slice(this.l,this.l+2*t).toString("utf16le");else for(c=0;c<t;++c)e+=String.fromCharCode(Os(this,a)),a+=2;t*=2;break;case"utf8":e=Vf(this,this.l,this.l+t);break;case"utf16le":t*=2,e=Yu(this,this.l,this.l+t);break;case"wstr":return yf.call(this,t,"dbcs");case"lpstr-ansi":e=Ym(this,this.l),t=4+vi(this,this.l);break;case"lpstr-cp":e=Jm(this,this.l),t=4+vi(this,this.l);break;case"lpwstr":e=qm(this,this.l),t=4+2*vi(this,this.l);break;case"lpp4":t=4+vi(this,this.l),e=tg(this,this.l),t&2&&(t+=2);break;case"8lpp4":t=4+vi(this,this.l),e=ng(this,this.l),t&3&&(t+=4-(t&3));break;case"cstr":for(t=0,e="";(o=Ro(this,this.l+t++))!==0;)s.push(zl(o));e=s.join("");break;case"_wstr":for(t=0,e="";(o=Os(this,this.l+t))!==0;)s.push(zl(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=Ro(this,a),this.l=a+1,h=yf.call(this,t-c,o?"dbcs-cont":"sbcs-cont"),s.join("")+h;s.push(zl(Os(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=Ro(this,a),this.l=a+1,h=yf.call(this,t-c,o?"dbcs-cont":"sbcs-cont"),s.join("")+h;s.push(zl(Ro(this,a))),a+=1}e=s.join("");break;default:switch(t){case 1:return n=Ro(this,this.l),this.l++,n;case 2:return n=(r==="i"?i5:Os)(this,this.l),this.l+=2,n;case 4:case-4:return r==="i"||!(this[this.l+3]&128)?(n=(t>0?Ca:s5)(this,this.l),this.l+=4,n):(i=vi(this,this.l),this.l+=4,i);case 8:case-8:if(r==="f")return t==8?i=bc(this,this.l):i=bc([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=Gm(this,this.l,t);break}}return this.l+=t,e}var a5=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},o5=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},f5=function(t,r,e){t[e]=r&255,t[e+1]=r>>>8&255};function l5(t,r,e){var n=0,i=0;if(e==="dbcs"){for(i=0;i!=r.length;++i)f5(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,a5(this,r,this.l);break;case 8:if(n=8,e==="f"){n5(this,r,this.l);break}case 16:break;case-4:n=4,o5(this,r,this.l);break}return this.l+=n,this}function sg(t,r){var e=Gm(this,this.l,t.length>>1);if(e!==t)throw new Error(r+"Expected "+t+" saw "+e);this.l+=t.length>>1}function Sn(t,r){t.l=r,t.read_shift=yf,t.chk=sg,t.write_shift=l5}function Bn(t,r){t.l+=r}function nt(t){var r=aa(t);return Sn(r,0),r}function js(t,r,e){if(t){var n,i,s;Sn(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=jf[h]||jf[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 si(){var t=[],r=nr?256:2048,e=function(a){var f=nt(a);return Sn(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(),xn(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 ct(t,r,e,n){var i=+r,s;if(!isNaN(i)){n||(n=jf[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&&Zu(e)&&t.push(e)}}function _f(t,r,e){var n=Br(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 v1(t,r,e){var n=Br(t);return n.s=_f(n.s,r.s,e),n.e=_f(n.e,r.s,e),n}function Ef(t,r){if(t.cRel&&t.c<0)for(t=Br(t);t.c<0;)t.c+=r>8?16384:256;if(t.rRel&&t.r<0)for(t=Br(t);t.r<0;)t.r+=r>8?1048576:r>5?65536:16384;var e=Vt(t);return!t.cRel&&t.cRel!=null&&(e=u5(e)),!t.rRel&&t.rRel!=null&&(e=c5(e)),e}function Hh(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?"":"$")+an(t.s.c)+":"+(t.e.cRel?"":"$")+an(t.e.c):t.s.c==0&&!t.s.cRel&&t.e.c==(r.biff>=12?16383:255)&&!t.e.cRel?(t.s.rRel?"":"$")+wn(t.s.r)+":"+(t.e.rRel?"":"$")+wn(t.e.r):Ef(t.s,r.biff)+":"+Ef(t.e,r.biff)}function ag(t){return parseInt(h5(t),10)-1}function wn(t){return""+(t+1)}function c5(t){return t.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function h5(t){return t.replace(/\$(\d+)$/,"$1")}function og(t){for(var r=d5(t),e=0,n=0;n!==r.length;++n)e=26*e+r.charCodeAt(n)-64;return e-1}function an(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 u5(t){return t.replace(/^([A-Z])/,"$$$1")}function d5(t){return t.replace(/^\$([A-Z])/,"$1")}function dn(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 Vt(t){for(var r=t.c+1,e="";r;r=(r-1)/26|0)e=String.fromCharCode((r-1)%26+65)+e;return e+(t.r+1)}function Li(t){var r=t.indexOf(":");return r==-1?{s:dn(t),e:dn(t)}:{s:dn(t.slice(0,r)),e:dn(t.slice(r+1))}}function cr(t,r){return typeof r>"u"||typeof r=="number"?cr(t.s,t.e):(typeof t!="string"&&(t=Vt(t)),typeof r!="string"&&(r=Vt(r)),t==r?t:t+":"+r)}function Er(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 x1(t,r){var e=t.t=="d"&&r instanceof Date;if(t.z!=null)try{return t.w=Bi(t.z,e?Cn(r):r)}catch{}try{return t.w=Bi((t.XF||{}).numFmtId||(e?14:0),e?Cn(r):r)}catch{return""+r}}function oa(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"?Hs[t.v]||t.v:r==null?x1(t,t.v):x1(t,r))}function $a(t,r){var e=r&&r.sheet?r.sheet:"Sheet1",n={};return n[e]=t,{SheetNames:[e],Sheets:n}}function p5(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"?dn(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=Er(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||Ht[14],n.cellDates?(p.t="d",p.w=Bi(p.z,Cn(p.v))):(p.t="n",p.v=Cn(p.v),p.w=Bi(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=Vt({c:d,r:m});s[v]&&s[v].z&&(p.z=s[v].z),s[v]=p}}}return a.s.c<1e7&&(s["!ref"]=cr(a)),s}function Gf(t,r){return p5(null,t,r)}function m5(t){return t.read_shift(4,"i")}function rs(t,r){return r||(r=nt(4)),r.write_shift(4,t),r}function Nn(t){var r=t.read_shift(4);return r===0?"":t.read_shift(r,"dbcs")}function bn(t,r){var e=!1;return r==null&&(e=!0,r=nt(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 g5(t){return{ich:t.read_shift(2),ifnt:t.read_shift(2)}}function v5(t,r){return r||(r=nt(4)),r.write_shift(2,t.ich||0),r.write_shift(2,t.ifnt||0),r}function Ju(t,r){var e=t.l,n=t.read_shift(1),i=Nn(t),s=[],o={t:i,h:i};if(n&1){for(var h=t.read_shift(4),c=0;c!=h;++c)s.push(g5(t));o.r=s}else o.r=[{ich:0,ifnt:0}];return t.l=e+r,o}function x5(t,r){var e=!1;return r==null&&(e=!0,r=nt(15+4*t.t.length)),r.write_shift(1,0),bn(t.t,r),e?r.slice(0,r.l):r}var b5=Ju;function w5(t,r){var e=!1;return r==null&&(e=!0,r=nt(23+4*t.t.length)),r.write_shift(1,1),bn(t.t,r),r.write_shift(4,1),v5({ich:0,ifnt:0},r),e?r.slice(0,r.l):r}function Ui(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 za(t,r){return r==null&&(r=nt(8)),r.write_shift(-4,t.c),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}function Xa(t){var r=t.read_shift(2);return r+=t.read_shift(1)<<16,t.l++,{c:-1,iStyleRef:r}}function Va(t,r){return r==null&&(r=nt(4)),r.write_shift(3,t.iStyleRef||t.s),r.write_shift(1,0),r}var y5=Nn,fg=bn;function Qu(t){var r=t.read_shift(4);return r===0||r===4294967295?"":t.read_shift(r,"dbcs")}function wc(t,r){var e=!1;return r==null&&(e=!0,r=nt(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 _5=Nn,mu=Qu,qu=wc;function e0(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?bc([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Ca(r,0)>>2;return e?i/100:i}function lg(t,r){r==null&&(r=nt(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 cg(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 E5(t,r){return r||(r=nt(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 Ga=cg,Ho=E5;function Dn(t){if(t.length-t.l<8)throw"XLS Xnum Buffer underflow";return t.read_shift(8,"f")}function La(t,r){return(r||nt(8)).write_shift(8,t,"f")}function T5(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=Ma[i];a&&(r.rgb=Pf(a));break;case 2:r.rgb=Pf([o,h,c]);break;case 3:r.theme=i;break}return s!=0&&(r.tint=s>0?s/32767:s/32768),r}function yc(t,r){if(r||(r=nt(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 S5(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 k5(t,r){r||(r=nt(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 hg(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 C5(t){return hg(t,1)}function A5(t){return hg(t,2)}var t0=2,ti=3,Vl=11,b1=12,_c=19,Gl=64,F5=65,R5=71,M5=4108,I5=4126,vn=80,ug=81,O5=[vn,ug],gu={1:{n:"CodePage",t:t0},2:{n:"Category",t:vn},3:{n:"PresentationFormat",t:vn},4:{n:"ByteCount",t:ti},5:{n:"LineCount",t:ti},6:{n:"ParagraphCount",t:ti},7:{n:"SlideCount",t:ti},8:{n:"NoteCount",t:ti},9:{n:"HiddenCount",t:ti},10:{n:"MultimediaClipCount",t:ti},11:{n:"ScaleCrop",t:Vl},12:{n:"HeadingPairs",t:M5},13:{n:"TitlesOfParts",t:I5},14:{n:"Manager",t:vn},15:{n:"Company",t:vn},16:{n:"LinksUpToDate",t:Vl},17:{n:"CharacterCount",t:ti},19:{n:"SharedDoc",t:Vl},22:{n:"HyperlinksChanged",t:Vl},23:{n:"AppVersion",t:ti,p:"version"},24:{n:"DigSig",t:F5},26:{n:"ContentType",t:vn},27:{n:"ContentStatus",t:vn},28:{n:"Language",t:vn},29:{n:"Version",t:vn},255:{},2147483648:{n:"Locale",t:_c},2147483651:{n:"Behavior",t:_c},1919054434:{}},vu={1:{n:"CodePage",t:t0},2:{n:"Title",t:vn},3:{n:"Subject",t:vn},4:{n:"Author",t:vn},5:{n:"Keywords",t:vn},6:{n:"Comments",t:vn},7:{n:"Template",t:vn},8:{n:"LastAuthor",t:vn},9:{n:"RevNumber",t:vn},10:{n:"EditTime",t:Gl},11:{n:"LastPrinted",t:Gl},12:{n:"CreatedDate",t:Gl},13:{n:"ModifiedDate",t:Gl},14:{n:"PageCount",t:ti},15:{n:"WordCount",t:ti},16:{n:"CharCount",t:ti},17:{n:"Thumbnail",t:R5},18:{n:"Application",t:vn},19:{n:"DocSecurity",t:ti},255:{},2147483648:{n:"Locale",t:_c},2147483651:{n:"Behavior",t:_c},1919054434:{}},w1={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"},D5=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function N5(t){return t.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var P5=N5([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]),Ma=Br(P5),Hs={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},dg={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},xu={"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"},Kl={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 r0(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function B5(t){var r=r0();if(!t||!t.match)return r;var e={};if((t.match(Ln)||[]).forEach(function(n){var i=Wt(n);switch(i[0].replace(V8,"<")){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[xu[i.ContentType]]!==void 0&&r[xu[i.ContentType]].push(i.PartName);break}}),r.xmlns!==un.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 pg(t,r){var e=B8(xu),n=[],i;n[n.length]=Qr,n[n.length]=pt("Types",null,{xmlns:un.CT,"xmlns:xsd":un.xsd,"xmlns:xsi":un.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 pt("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]=pt("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:Kl[c][r.bookType]||Kl[c].xlsx}))},o=function(c){(t[c]||[]).forEach(function(a){n[n.length]=pt("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Kl[c][r.bookType]||Kl[c].xlsx})})},h=function(c){(t[c]||[]).forEach(function(a){n[n.length]=pt("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 fr={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 Nf(t){var r=t.lastIndexOf("/");return t.slice(0,r+1)+"_rels/"+t.slice(r+1)+".rels"}function Tf(t,r){var e={"!id":{}};if(!t)return e;r.charAt(0)!=="/"&&(r="/"+r);var n={};return(t.match(Ln)||[]).forEach(function(i){var s=Wt(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:wf(s.Target,r);e[h]=o,n[s.Id]=o}}),e["!id"]=n,e}function Oo(t){var r=[Qr,pt("Relationships",null,{xmlns:un.RELS})];return Jr(t["!id"]).forEach(function(e){r[r.length]=pt("Relationship",null,t["!id"][e])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function kr(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:[fr.HLINK,fr.XPATH,fr.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 L5="application/vnd.oasis.opendocument.spreadsheet";function U5(t,r){for(var e=Ku(t),n,i;n=Df.exec(e);)switch(n[3]){case"manifest":break;case"file-entry":if(i=Wt(n[0],!1),i.path=="/"&&i.type!==L5)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 j5(t){var r=[Qr];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 y1(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 H5(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 W5(t){var r=[Qr];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(y1(t[e][0],t[e][1])),r.push(H5("",t[e][0]));return r.push(y1("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}function mg(){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 '+pc.version+"</meta:generator></office:meta></office:document-meta>"}var Pi=[["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"]],$5=function(){for(var t=new Array(Pi.length),r=0;r<Pi.length;++r){var e=Pi[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 gg(t){var r={};t=Fr(t);for(var e=0;e<Pi.length;++e){var n=Pi[e],i=t.match($5[e]);i!=null&&i.length>0&&(r[n[1]]=vr(i[1])),n[2]==="date"&&r[n[1]]&&(r[n[1]]=jr(r[n[1]]))}return r}function Wh(t,r,e,n,i){i[t]!=null||r==null||r===""||(i[t]=r,r=Cr(r),n[n.length]=e?pt(t,r,e):kn(t,r))}function vg(t,r){var e=r||{},n=[Qr,pt("cp:coreProperties",null,{"xmlns:cp":un.CORE_PROPS,"xmlns:dc":un.dc,"xmlns:dcterms":un.dcterms,"xmlns:dcmitype":un.dcmitype,"xmlns:xsi":un.xsi})],i={};if(!t&&!e.Props)return n.join("");t&&(t.CreatedDate!=null&&Wh("dcterms:created",typeof t.CreatedDate=="string"?t.CreatedDate:pu(t.CreatedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),t.ModifiedDate!=null&&Wh("dcterms:modified",typeof t.ModifiedDate=="string"?t.ModifiedDate:pu(t.ModifiedDate,e.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var s=0;s!=Pi.length;++s){var o=Pi[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&&Wh(o[0],h,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Ia=[["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"]],xg=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function bg(t,r,e,n){var i=[];if(typeof t=="string")i=h1(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"?h1(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 z5(t,r,e){var n={};return r||(r={}),t=Fr(t),Ia.forEach(function(i){var s=(t.match(If(i[0]))||[])[1];switch(i[2]){case"string":s&&(r[i[1]]=vr(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&&bg(n.HeadingPairs,n.TitlesOfParts,r,e),r}function wg(t){var r=[],e=pt;return t||(t={}),t.Application="SheetJS",r[r.length]=Qr,r[r.length]=pt("Properties",null,{xmlns:un.EXT_PROPS,"xmlns:vt":un.vt}),Ia.forEach(function(n){if(t[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Cr(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>"+Cr(n)+"</vt:lpstr>"}).join(""),{size:t.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var X5=/<[^>]+>[^<]*/g;function V5(t,r){var e={},n="",i=t.match(X5);if(i)for(var s=0;s!=i.length;++s){var o=i[s],h=Wt(o);switch(h[0]){case"<?xml":break;case"<Properties":break;case"<property":n=vr(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]=vr(f);break;case"bool":e[n]=Pr(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]=jr(f);break;case"cy":case"error":e[n]=vr(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 yg(t){var r=[Qr,pt("Properties",null,{xmlns:un.CUST_PROPS,"xmlns:vt":un.vt})];if(!t)return r.join("");var e=1;return Jr(t).forEach(function(i){++e,r[r.length]=pt("property",t5(t[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e,name:Cr(i)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var bu={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"},$h;function G5(t,r,e){$h||($h=Rc(bu)),r=$h[r]||r,t[r]=e}function K5(t,r){var e=[];return Jr(bu).map(function(n){for(var i=0;i<Pi.length;++i)if(Pi[i][1]==n)return Pi[i];for(i=0;i<Ia.length;++i)if(Ia[i][1]==n)return Ia[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(kn(bu[n[1]]||n[1],i))}}),pt("DocumentProperties",e.join(""),{xmlns:gi.o})}function Y5(t,r){var e=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return t&&Jr(t).forEach(function(s){if(Object.prototype.hasOwnProperty.call(t,s)){for(var o=0;o<Pi.length;++o)if(s==Pi[o][1])return;for(o=0;o<Ia.length;++o)if(s==Ia[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(pt(o1(s),h,{"dt:dt":c}))}}),r&&Jr(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(pt(o1(s),o,{"dt:dt":h}))}}),"<"+n+' xmlns="'+gi.o+'">'+i.join("")+"</"+n+">"}function n0(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 Z5(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=nt(8);return o.write_shift(4,n),o.write_shift(4,i),o}function _g(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 Eg(t,r,e){var n=t.read_shift(0,"lpwstr");return e&&(t.l+=4-(n.length+1&3)&3),n}function Tg(t,r,e){return r===31?Eg(t):_g(t,r,e)}function wu(t,r,e){return Tg(t,r,e===!1?0:4)}function J5(t,r){if(!r)throw new Error("VtUnalignedString must have positive length");return Tg(t,r,0)}function Q5(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(Xn,""),t.l-i&2&&(t.l+=2)}return e}function q5(t){for(var r=t.read_shift(4),e=[],n=0;n!=r;++n)e[n]=t.read_shift(0,"lpstr-cp").replace(Xn,"");return e}function eE(t){var r=t.l,e=Ec(t,ug);t[t.l]==0&&t[t.l+1]==0&&t.l-r&2&&(t.l+=2);var n=Ec(t,ti);return[e,n]}function tE(t){for(var r=t.read_shift(4),e=[],n=0;n<r/2;++n)e.push(eE(t));return e}function _1(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(Xn,"").replace(bf,"!"),r===1200&&o%2&&(t.l+=2)}return t.l&3&&(t.l=t.l>>2+1<<2),n}function Sg(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 rE(t){var r={};return r.Size=t.read_shift(4),t.l+=r.Size+3-(r.Size-1)%4,r}function Ec(t,r,e){var n=t.read_shift(2),i,s=e||{};if(t.l+=2,r!==b1&&n!==r&&O5.indexOf(r)===-1&&!((r&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+r+" saw "+n);switch(r===b1?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 _g(t,n,4).replace(Xn,"");case 31:return Eg(t);case 64:return n0(t);case 65:return Sg(t);case 71:return rE(t);case 80:return wu(t,n,!s.raw).replace(Xn,"");case 81:return J5(t,n).replace(Xn,"");case 4108:return tE(t);case 4126:case 4127:return n==4127?Q5(t):q5(t);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+n)}}function E1(t,r){var e=nt(4),n=nt(4);switch(e.write_shift(4,t==80?31:t),t){case 3:n.write_shift(-4,r);break;case 5:n=nt(8),n.write_shift(8,r,"f");break;case 11:n.write_shift(4,r?1:0);break;case 64:n=Z5(r);break;case 31:case 80:for(n=nt(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 xn([e,n])}function T1(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,w){return g[1]-w[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]=Ec(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:es(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=Ec(t,t0),es(h),c!==-1){var d=t.l;t.l=s[c][1],a=_1(t,h),t.l=d}}else if(s[o][0]===0){if(h===0){c=o,t.l=s[o+1][1];continue}a=_1(t,h)}else{var v=a[s[o][0]],x;switch(t[t.l]){case 65:t.l+=4,x=Sg(t);break;case 30:t.l+=4,x=wu(t,t[t.l-4]).replace(/\u0000+$/,"");break;case 31:t.l+=4,x=wu(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=Yr(t,4);break;case 64:t.l+=4,x=jr(n0(t));break;default:throw new Error("unparsed value: "+t[t.l])}u[v]=x}}return t.l=e+n,u}var kg=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function nE(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 S1(t,r,e){var n=nt(8),i=[],s=[],o=8,h=0,c=nt(8),a=nt(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=nt(8),a.write_shift(4,0),i.unshift(a);var f=[nt(4)];for(f[0].write_shift(4,t.length),h=0;h<t.length;++h){var l=t[h][0];for(c=nt(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=xn(f),s.unshift(c),o+=8+c.length}for(h=0;h<t.length;++h)if(!(r&&!r[t[h][0]])&&!(kg.indexOf(t[h][0])>-1||xg.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=E1(m.t,u)}else{var v=nE(u);v==-1&&(v=31,u=String(u)),c=E1(v,u)}s.push(c),a=nt(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),xn([n].concat(i).concat(s))}function k1(t,r,e){var n=t.content;if(!n)return{};Sn(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!==It.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=T1(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=T1(n,null)}catch{}for(p in m)u[p]=m[p];return u.FMTID=[s,o],u}function C1(t,r,e,n,i,s){var o=nt(i?68:48),h=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,It.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=S1(t,e,n);if(h.push(c),i){var a=S1(i,null,null);o.write_shift(16,s,"hex"),o.write_shift(4,68+c.length),h.push(a)}return xn(h)}function ea(t,r){return t.read_shift(r),null}function iE(t,r){r||(r=nt(t));for(var e=0;e<t;++e)r.write_shift(1,0);return r}function sE(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 Yr(t,r){return t.read_shift(r)===1}function zn(t,r){return r||(r=nt(2)),r.write_shift(2,+!!t),r}function nn(t){return t.read_shift(2,"u")}function Ni(t,r){return r||(r=nt(2)),r.write_shift(2,t),r}function Cg(t,r){return sE(t,r,nn)}function aE(t){var r=t.read_shift(1),e=t.read_shift(1);return e===1?r:r===1}function Ag(t,r,e){return e||(e=nt(2)),e.write_shift(1,r=="e"?+t:+!!t),e.write_shift(1,r=="e"?1:0),e}function Kf(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 oE(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 fE(t){var r=t.t||"",e=nt(3+0);e.write_shift(2,r.length),e.write_shift(1,1);var n=nt(2*r.length);n.write_shift(2*r.length,r,"utf16le");var i=[e,n];return xn(i)}function Ua(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 Yf(t,r,e){var n=t.read_shift(e&&e.biff==2?1:2);return n===0?(t.l++,""):Ua(t,n,e)}function Ka(t,r,e){if(e.biff>5)return Yf(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 Fg(t,r,e){return e||(e=nt(3+2*t.length)),e.write_shift(2,t.length),e.write_shift(1,1),e.write_shift(31,t,"utf16le"),e}function lE(t){var r=t.read_shift(1);t.l++;var e=t.read_shift(2);return t.l+=2,[r,e]}function cE(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(Xn,"");return n&&(t.l+=24),i}function hE(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(Xn,"");return e+o}function uE(t,r){var e=t.read_shift(16);switch(e){case"e0c9ea79f9bace118c8200aa004ba90b":return cE(t);case"0303000000000000c000000000000046":return hE(t);default:throw new Error("Unsupported Moniker "+e)}}function Yl(t){var r=t.read_shift(4),e=r>0?t.read_shift(r,"utf16le").replace(Xn,""):"";return e}function A1(t,r){r||(r=nt(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 dE(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=Yl(t,e-t.l)),i&128&&(o=Yl(t,e-t.l)),(i&257)===257&&(h=Yl(t,e-t.l)),(i&257)===1&&(c=uE(t,e-t.l)),i&8&&(a=Yl(t,e-t.l)),i&32&&(f=t.read_shift(16)),i&64&&(l=n0(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 pE(t){var r=nt(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),A1(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&&A1(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 Rg(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 Mg(t,r){var e=Rg(t);return e[3]=0,e}function vs(t){var r=t.read_shift(2),e=t.read_shift(2),n=t.read_shift(2);return{r,c:e,ixfe:n}}function ja(t,r,e,n){return n||(n=nt(6)),n.write_shift(2,t),n.write_shift(2,r),n.write_shift(2,e||0),n}function mE(t){var r=t.read_shift(2),e=t.read_shift(2);return t.l+=8,{type:r,flags:e}}function gE(t,r,e){return r===0?"":Ka(t,r,e)}function vE(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 Ig(t){var r=t.read_shift(2),e=e0(t);return[r,e]}function xE(t,r,e){t.l+=4,r-=4;var n=t.l+r,i=Kf(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 Oc(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 Og(t,r){return r||(r=nt(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 Dg(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 bE=Dg;function Ng(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 wE(t){var r={};return t.l+=4,t.l+=16,r.fSharedNote=t.read_shift(2),t.l+=4,r}function yE(t){var r={};return t.l+=4,t.cf=t.read_shift(2),r}function Rn(t){t.l+=2,t.l+=t.read_shift(2)}var _E={0:Rn,4:Rn,5:Rn,6:Rn,7:yE,8:Rn,9:Rn,10:Rn,11:Rn,12:Rn,13:wE,14:Rn,15:Rn,16:Rn,17:Rn,18:Rn,19:Rn,20:Rn,21:Ng};function EE(t,r){for(var e=t.l+r,n=[];t.l<e;){var i=t.read_shift(2);t.l-=2;try{n.push(_E[i](t,e-t.l))}catch{return t.l=e,n}}return t.l!=e&&(t.l=e),n}function Zl(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 i0(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=nt(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 TE(t,r){return r===0||t.read_shift(2),1200}function SE(t,r,e){if(e.enc)return t.l+=r,"";var n=t.l,i=Ka(t,0,e);return t.read_shift(r+n-t.l),i}function kE(t,r){var e=!r||r.biff==8,n=nt(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 CE(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 AE(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=Kf(t,0,e);return o.length===0&&(o="Sheet1"),{pos:n,hs:i,dt:s,name:o}}function FE(t,r){var e=!r||r.biff>=8?2:1,n=nt(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 RE(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(oE(t));return s.Count=n,s.Unique=i,s}function ME(t,r){var e=nt(8);e.write_shift(4,t.Count),e.write_shift(4,t.Unique);for(var n=[],i=0;i<t.length;++i)n[i]=fE(t[i]);var s=xn([e].concat(n));return s.parts=[e.length].concat(n.map(function(o){return o.length})),s}function IE(t,r){var e={};return e.dsst=t.read_shift(2),t.l+=r-2,e}function OE(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 DE(t){var r=mE(t);if(r.type!=2211)throw new Error("Invalid Future Record "+r.type);var e=t.read_shift(4);return e!==0}function NE(t){return t.read_shift(2),t.read_shift(4)}function F1(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 PE(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 BE(){var t=nt(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 LE(t,r,e){if(e&&e.biff>=2&&e.biff<5)return{};var n=t.read_shift(2);return{RTL:n&64}}function UE(t){var r=nt(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 jE(){}function HE(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=Kf(t,0,e),n}function WE(t,r){var e=t.name||"Arial",n=r&&r.biff==5,i=n?15+e.length:16+2*e.length,s=nt(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 $E(t){var r=vs(t);return r.isst=t.read_shift(4),r}function zE(t,r,e,n){var i=nt(10);return ja(t,r,n,i),i.write_shift(4,e),i}function XE(t,r,e){e.biffguess&&e.biff==2&&(e.biff=5);var n=t.l+r,i=vs(t);e.biff==2&&t.l++;var s=Yf(t,n-t.l,e);return i.val=s,i}function VE(t,r,e,n,i){var s=!i||i.biff==8,o=nt(6+2+ +s+(1+s)*e.length);return ja(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 GE(t,r,e){var n=t.read_shift(2),i=Ka(t,0,e);return[n,i]}function KE(t,r,e,n){var i=e&&e.biff==5;n||(n=nt(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 YE=Ka;function R1(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 ZE(t,r){var e=r.biff==8||!r.biff?4:2,n=nt(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 JE(t){var r=t.read_shift(2),e=t.read_shift(2),n=Ig(t);return{r,c:e,ixfe:n[0],rknum:n[1]}}function QE(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(Ig(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 qE(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 eT(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=D5[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 tT(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=eT(t,r,n.fStyle,e),n}function M1(t,r,e,n){var i=e&&e.biff==5;n||(n=nt(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 rT(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 nT(t){var r=nt(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 I1(t,r,e){var n=vs(t);(e.biff==2||r==9)&&++t.l;var i=aE(t);return n.val=i,n.t=i===!0||i===!1?"b":"e",n}function iT(t,r,e,n,i,s){var o=nt(8);return ja(t,r,n,o),Ag(e,s,o),o}function sT(t,r,e){e.biffguess&&e.biff==2&&(e.biff=5);var n=vs(t),i=Dn(t);return n.val=i,n}function aT(t,r,e,n){var i=nt(14);return ja(t,r,n,i),La(e,i),i}var O1=gE;function oT(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=Ua(t,s),h=[];n>t.l;)h.push(Yf(t));return[s,i,o,h]}function D1(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=xE(t,r-2,e)),s.body=i||t.read_shift(r-2),typeof i=="string"&&(s.Name=i),s}var fT=["_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 N1(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=Ua(t,o,e);i&32&&(a=fT[a.charCodeAt(0)]);var f=n-t.l;e&&e.biff==2&&--f;var l=n==t.l||h===0||!(f>0)?[]:E7(t,f,e,h);return{chKey:s,Name:a,itab:c,rgce:l}}function Pg(t,r,e){if(e.biff<8)return lT(t,r,e);for(var n=[],i=t.l+r,s=t.read_shift(e.biff>8?4:2);s--!==0;)n.push(vE(t,e.biff>8?12:6,e));if(t.l!=i)throw new Error("Bad ExternSheet: "+t.l+" != "+i);return n}function lT(t,r,e){t[t.l+1]==3&&t[t.l]++;var n=Kf(t,r,e);return n.charCodeAt(0)==3?n.slice(1):n}function cT(t,r,e){if(e.biff<8){t.l+=r;return}var n=t.read_shift(2),i=t.read_shift(2),s=Ua(t,n,e),o=Ua(t,i,e);return[s,o]}function hT(t,r,e){var n=Dg(t);t.l++;var i=t.read_shift(1);return r-=8,[T7(t,r,e),i,n]}function P1(t,r,e){var n=bE(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,y7(t,r,e)]}function uT(t){var r=t.read_shift(4)!==0,e=t.read_shift(4)!==0,n=t.read_shift(4);return[r,e,n]}function dT(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=Ka(t,0,e);return e.biff<8&&t.read_shift(1),[{r:n,c:i},h,o,s]}}function pT(t,r,e){return dT(t,r,e)}function mT(t,r){for(var e=[],n=t.read_shift(2);n--;)e.push(Oc(t));return e}function gT(t){var r=nt(2+t.length*8);r.write_shift(2,t.length);for(var e=0;e<t.length;++e)Og(t[e],r);return r}function vT(t,r,e){if(e&&e.biff<8)return bT(t,r,e);var n=Ng(t),i=EE(t,r-22,n[1]);return{cmo:n,ft:i}}var xT={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 bT(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((xT[n]||Bn)(t,r,e)),{cmo:[i,n,s],ft:o}}function wT(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=lE(t,6,e);var h=t.read_shift(2);t.read_shift(2),nn(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=Ua(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 yT(t,r){var e=Oc(t);t.l+=16;var n=dE(t,r-24);return[e,n]}function _T(t){var r=nt(24),e=dn(t[0]);r.write_shift(2,e.r),r.write_shift(2,e.r),r.write_shift(2,e.c),r.write_shift(2,e.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)r.write_shift(1,parseInt(n[i],16));return xn([r,pE(t[1])])}function ET(t,r){t.read_shift(2);var e=Oc(t),n=t.read_shift((r-10)/2,"dbcs-cont");return n=n.replace(Xn,""),[e,n]}function TT(t){var r=t[1].Tooltip,e=nt(10+2*(r.length+1));e.write_shift(2,2048);var n=dn(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 ST(t){var r=[0,0],e;return e=t.read_shift(2),r[0]=w1[e]||e,e=t.read_shift(2),r[1]=w1[e]||e,r}function kT(t){return t||(t=nt(4)),t.write_shift(2,1),t.write_shift(2,1),t}function CT(t){for(var r=t.read_shift(2),e=[];r-- >0;)e.push(Mg(t));return e}function AT(t){for(var r=t.read_shift(2),e=[];r-- >0;)e.push(Mg(t));return e}function FT(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 Bg(t,r,e){if(!e.cellStyles)return Bn(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 RT(t,r){var e=nt(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 MT(t,r){var e={};return r<32||(t.l+=16,e.header=Dn(t),e.footer=Dn(t),t.l+=2),e}function IT(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 OT(t){for(var r=nt(2*t),e=0;e<t;++e)r.write_shift(2,e+1);return r}var DT=vs,NT=Cg,PT=Yf;function BT(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 LT(t,r,e){e.biffguess&&e.biff==5&&(e.biff=2);var n=vs(t);++t.l;var i=Ka(t,r-7,e);return n.t="str",n.val=i,n}function UT(t){var r=vs(t);++t.l;var e=Dn(t);return r.t="n",r.val=e,r}function jT(t,r,e){var n=nt(15);return qf(n,t,r),n.write_shift(8,e,"f"),n}function HT(t){var r=vs(t);++t.l;var e=t.read_shift(2);return r.t="n",r.val=e,r}function WT(t,r,e){var n=nt(9);return qf(n,t,r),n.write_shift(2,e),n}function $T(t){var r=t.read_shift(1);return r===0?(t.l++,""):t.read_shift(r,"sbcs-cont")}function zT(t,r){t.l+=6,t.l+=2,t.l+=1,t.l+=3,t.l+=1,t.l+=r-13}function XT(t,r,e){var n=t.l+r,i=vs(t),s=t.read_shift(2),o=Ua(t,s,e);return t.l=n,i.t="str",i.val=o,i}var VT=[2,3,48,49,131,139,140,245],yu=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=Rc({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=aa(1);switch(c.type){case"base64":f=xi(wi(h));break;case"binary":f=xi(h);break;case"buffer":case"array":f=h;break}Sn(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 w=[],y={},_=Math.min(f.length,l==2?521:v-10-(p?264:0)),k=m?32:11;f.l<_&&f[f.l]!=13;)switch(y={},y.name=ra.utils.decode(g,f.slice(f.l,f.l+k)).replace(/[\u0000\r\n].*$/g,""),f.l+=k,y.type=String.fromCharCode(f.read_shift(1)),l!=2&&!m&&(y.offset=f.read_shift(4)),y.len=f.read_shift(1),l==2&&(y.offset=f.read_shift(2)),y.dec=f.read_shift(1),y.name.length&&w.push(y),l!=2&&(f.l+=m?13:14),y.type){case"B":(!p||y.len!=8)&&c.WTF&&console.log("Skipping "+y.name+":"+y.type);break;case"G":case"P":c.WTF&&console.log("Skipping "+y.name+":"+y.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: "+y.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 F=0,O=0;for(a[0]=[],O=0;O!=w.length;++O)a[0][O]=w[O].name;for(;d-- >0;){if(f[f.l]===42){f.l+=x;continue}for(++f.l,a[++F]=[],O=0,O=0;O!=w.length;++O){var N=f.slice(f.l,f.l+w[O].len);f.l+=w[O].len,Sn(N,0);var U=ra.utils.decode(g,N);switch(w[O].type){case"C":U.trim().length&&(a[F][O]=U.replace(/\s+$/,""));break;case"D":U.length===8?a[F][O]=new Date(+U.slice(0,4),+U.slice(4,6)-1,+U.slice(6,8)):a[F][O]=U;break;case"F":a[F][O]=parseFloat(U.trim());break;case"+":case"I":a[F][O]=m?N.read_shift(-4,"i")^2147483648:N.read_shift(4,"i");break;case"L":switch(U.trim().toUpperCase()){case"Y":case"T":a[F][O]=!0;break;case"N":case"F":a[F][O]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+U+"|")}break;case"M":if(!u)throw new Error("DBF Unexpected MEMO for type "+l.toString(16));a[F][O]="##MEMO##"+(m?parseInt(U.trim(),10):N.read_shift(4));break;case"N":U=U.replace(/\u0000/g,"").trim(),U&&U!="."&&(a[F][O]=+U||0);break;case"@":a[F][O]=new Date(N.read_shift(-8,"f")-621356832e5);break;case"T":a[F][O]=new Date((N.read_shift(4)-2440588)*864e5+N.read_shift(4));break;case"Y":a[F][O]=N.read_shift(4,"i")/1e4+N.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":a[F][O]=-N.read_shift(-8,"f");break;case"B":if(p&&w[O].len==8){a[F][O]=N.read_shift(8,"f");break}case"G":case"P":N.l+=w[O].len;break;case"0":if(w[O].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+w[O].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=w,a}function n(h,c){var a=c||{};a.dateNF||(a.dateNF="yyyymmdd");var f=Gf(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 $a(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&&es(+a.codepage),a.type=="string")throw new Error("Cannot write DBF to JS string");var f=si(),l=Fv(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 w=Er(h["!ref"]),y=[],_=[],k=[];for(d=0;d<=w.e.c-w.s.c;++d){var F="",O="",N=0,U=[];for(v=0;v<p.length;++v)p[v][d]!=null&&U.push(p[v][d]);if(U.length==0||u[d]==null){y[d]="?";continue}for(v=0;v<U.length;++v){switch(typeof U[v]){case"number":O="B";break;case"string":O="C";break;case"boolean":O="L";break;case"object":O=U[v]instanceof Date?"D":"C";break;default:O="C"}N=Math.max(N,String(U[v]).length),F=F&&F!=O?"C":O}N>250&&(N=250),O=((m[d]||{}).DBF||{}).type,O=="C"&&m[d].DBF.len>N&&(N=m[d].DBF.len),F=="B"&&O=="N"&&(F="N",k[d]=m[d].DBF.dec,N=m[d].DBF.len),_[d]=F=="C"||O=="N"?N:s[F]||0,g+=_[d],y[d]=F}var z=f.next(32);for(z.write_shift(4,318902576),z.write_shift(4,p.length),z.write_shift(2,296+32*x),z.write_shift(2,g),d=0;d<4;++d)z.write_shift(4,0);for(z.write_shift(4,0|(+r[Sm]||3)<<8),d=0,v=0;d<u.length;++d)if(u[d]!=null){var W=f.next(32),X=(u[d].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);W.write_shift(1,X,"sbcs"),W.write_shift(1,y[d]=="?"?"C":y[d],"sbcs"),W.write_shift(4,v),W.write_shift(1,_[d]||s[y[d]]||0),W.write_shift(1,k[d]||0),W.write_shift(1,2),W.write_shift(4,0),W.write_shift(1,0),W.write_shift(4,0),W.write_shift(4,0),v+=_[d]||s[y[d]]||0}var J=f.next(264);for(J.write_shift(4,13),d=0;d<65;++d)J.write_shift(4,0);for(d=0;d<p.length;++d){var H=f.next(g);for(H.write_shift(1,0),v=0;v<u.length;++v)if(u[v]!=null)switch(y[v]){case"L":H.write_shift(1,p[d][v]==null?63:p[d][v]?84:70);break;case"B":H.write_shift(8,p[d][v]||0,"f");break;case"N":var I="0";for(typeof p[d][v]=="number"&&(I=p[d][v].toFixed(k[v]||0)),x=0;x<_[v]-I.length;++x)H.write_shift(1,32);H.write_shift(1,I,"sbcs");break;case"D":p[d][v]?(H.write_shift(4,("0000"+p[d][v].getFullYear()).slice(-4),"sbcs"),H.write_shift(2,("00"+(p[d][v].getMonth()+1)).slice(-2),"sbcs"),H.write_shift(2,("00"+p[d][v].getDate()).slice(-2),"sbcs")):H.write_shift(8,"00000000","sbcs");break;case"C":var M=String(p[d][v]!=null?p[d][v]:"").slice(0,_[v]);for(H.write_shift(1,M,"sbcs"),x=0;x<_[v]-M.length;++x)H.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}}(),Lg=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("+Jr(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),e=function(u,p){var m=t[p];return typeof m=="number"?Gp(m):m},n=function(u,p,m){var d=p.charCodeAt(0)-32<<4|m.charCodeAt(0)-48;return d==59?u:Gp(d)};t["|"]=254;function i(u,p){switch(p.type){case"base64":return s(wi(u),p);case"binary":return s(u,p);case"buffer":return s(nr&&Buffer.isBuffer(u)?u.toString("binary"):ha(u),p);case"array":return s(Ba(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,w=[],y=[],_=null,k={},F=[],O=[],N=[],U=0,z;for(+p.codepage>=0&&es(+p.codepage);x!==m.length;++x){U=0;var W=m[x].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(r,e),X=W.replace(/;;/g,"\0").split(";").map(function(S){return S.replace(/\u0000/g,";")}),J=X[0],H;if(W.length>0)switch(J){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":X[1].charAt(0)=="P"&&y.push(W.slice(3).replace(/;;/g,";"));break;case"C":var I=!1,M=!1,E=!1,A=!1,B=-1,L=-1;for(g=1;g<X.length;++g)switch(X[g].charAt(0)){case"A":break;case"X":v=parseInt(X[g].slice(1))-1,M=!0;break;case"Y":for(d=parseInt(X[g].slice(1))-1,M||(v=0),z=w.length;z<=d;++z)w[z]=[];break;case"K":H=X[g].slice(1),H.charAt(0)==='"'?H=H.slice(1,H.length-1):H==="TRUE"?H=!0:H==="FALSE"?H=!1:isNaN(Ps(H))?isNaN(Mf(H).getDate())||(H=jr(H)):(H=Ps(H),_!==null&&Uo(_)&&(H=Ic(H))),I=!0;break;case"E":A=!0;var P=Do(X[g].slice(1),{r:d,c:v});w[d][v]=[w[d][v],P];break;case"S":E=!0,w[d][v]=[w[d][v],"S5S"];break;case"G":break;case"R":B=parseInt(X[g].slice(1))-1;break;case"C":L=parseInt(X[g].slice(1))-1;break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+W)}if(I&&(w[d][v]&&w[d][v].length==2?w[d][v][0]=H:w[d][v]=H,_=null),E){if(A)throw new Error("SYLK shared formula cannot have own formula");var R=B>-1&&w[B][L];if(!R||!R[1])throw new Error("SYLK shared formula cannot find base");w[d][v][1]=rv(R[1],{r:d-B,c:v-L})}break;case"F":var C=0;for(g=1;g<X.length;++g)switch(X[g].charAt(0)){case"X":v=parseInt(X[g].slice(1))-1,++C;break;case"Y":for(d=parseInt(X[g].slice(1))-1,z=w.length;z<=d;++z)w[z]=[];break;case"M":U=parseInt(X[g].slice(1))/20;break;case"F":break;case"G":break;case"P":_=y[parseInt(X[g].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(N=X[g].slice(1).split(" "),z=parseInt(N[0],10);z<=parseInt(N[1],10);++z)U=parseInt(N[2],10),O[z-1]=U===0?{hidden:!0}:{wch:U},fa(O[z-1]);break;case"C":v=parseInt(X[g].slice(1))-1,O[v]||(O[v]={});break;case"R":d=parseInt(X[g].slice(1))-1,F[d]||(F[d]={}),U>0?(F[d].hpt=U,F[d].hpx=Bo(U)):U===0&&(F[d].hidden=!0);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+W)}C<1&&(_=null);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+W)}}return F.length>0&&(k["!rows"]=F),O.length>0&&(k["!cols"]=O),p&&p.sheetRows&&(w=w.slice(0,p.sheetRows)),[w,k]}function o(u,p){var m=i(u,p),d=m[0],v=m[1],x=Gf(d,p);return Jr(v).forEach(function(g){x[g]=v[g]}),x}function h(u,p){return $a(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"+c0(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=Bf(m.width)),typeof m.wpx=="number"&&!m.wch&&(m.wch=Lf(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*Uf(m.hpx)+";"),v.length>2&&u.push(v+"R"+(d+1))})}function l(u,p){var m=["ID;PWXL;N;E"],d=[],v=Er(u["!ref"]),x,g=Array.isArray(u),w=`\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 y=v.s.r;y<=v.e.r;++y)for(var _=v.s.c;_<=v.e.c;++_){var k=Vt({r:y,c:_});x=g?(u[y]||[])[_]:u[k],!(!x||x.v==null&&(!x.f||x.F))&&d.push(c(x,u,y,_))}return m.join(w)+w+d.join(w)+w+"E"+w}return{to_workbook:h,to_sheet:o,from_sheet:l}}(),Ug=function(){function t(s,o){switch(o.type){case"base64":return r(wi(s),o);case"binary":return r(s,o);case"buffer":return r(nr&&Buffer.isBuffer(s)?s.toString("binary"):ha(s),o);case"array":return r(Ba(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(Ps(m))?isNaN(Mf(m).getDate())?l[c][a]=m:l[c][a]=jr(m):l[c][a]=Ps(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 Gf(t(s,o),o)}function n(s,o){return $a(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=Er(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=Vt({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=Bi(l.z||Ht[14],Cn(jr(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}}(),jg=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 w=dn(g[1]);if(x.length<=w.r)for(m=x.length;m<=w.r;++m)x[m]||(x[m]=[]);switch(m=w.r,d=w.c,g[2]){case"t":x[m][d]=t(g[3]);break;case"v":x[m][d]=+g[3];break;case"vtf":var y=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],y])}}}return u&&u.sheetRows&&(x=x.slice(0,u.sheetRows)),x}function n(l,u){return Gf(e(l,u),u)}function i(l,u){return $a(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=Li(l["!ref"]),x=Array.isArray(l),g=v.s.r;g<=v.e.r;++g)for(var w=v.s.c;w<=v.e.c;++w)if(d=Vt({r:g,c:w}),m=x?(l[g]||[])[w]: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 y=Cn(jr(m.v));p[2]="vtc",p[3]="nd",p[4]=""+y,p[5]=m.w||Bi(m.z||Ht[14],y);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}}(),Po=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(Ps(f))?isNaN(Mf(f).getDate())?l[u][p]=f:l[u][p]=jr(f):l[u][p]=Ps(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 w=0;for(t(m[g].slice(0,v).trim(),p,g,w,u),w=1;w<=(m[g].length-v)/10+1;++w)t(m[g].slice(v+(w-1)*10,v+w*10).trim(),p,g,w,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,w=0,y=0,_=p.charCodeAt(0),k=!1,F=0,O=f.charCodeAt(0);f=f.replace(/\r\n/mg,`
|
||
`);var N=u.dateNF!=null?I8(u.dateNF):null;function U(){var z=f.slice(w,y),W={};if(z.charAt(0)=='"'&&z.charAt(z.length-1)=='"'&&(z=z.slice(1,-1).replace(/""/g,'"')),z.length===0)W.t="z";else if(u.raw)W.t="s",W.v=z;else if(z.trim().length===0)W.t="s",W.v=z;else if(z.charCodeAt(0)==61)z.charCodeAt(1)==34&&z.charCodeAt(z.length-1)==34?(W.t="s",W.v=z.slice(2,-1).replace(/""/g,'"')):o9(z)?(W.t="n",W.f=z.slice(1)):(W.t="s",W.v=z);else if(z=="TRUE")W.t="b",W.v=!0;else if(z=="FALSE")W.t="b",W.v=!1;else if(!isNaN(g=Ps(z)))W.t="n",u.cellText!==!1&&(W.w=z),W.v=g;else if(!isNaN(Mf(z).getDate())||N&&z.match(N)){W.z=u.dateNF||Ht[14];var X=0;N&&z.match(N)&&(z=O8(z,u.dateNF,z.match(N)||[]),X=1),u.cellDates?(W.t="d",W.v=jr(z,X)):(W.t="n",W.v=Cn(jr(z,X))),u.cellText!==!1&&(W.w=Bi(W.z,W.v instanceof Date?Cn(W.v):W.v)),u.cellNF||delete W.z}else W.t="s",W.v=z;if(W.t=="z"||(u.dense?(m[v]||(m[v]=[]),m[v][x]=W):m[Vt({c:x,r:v})]=W),w=y+1,O=f.charCodeAt(w),d.e.c<x&&(d.e.c=x),d.e.r<v&&(d.e.r=v),F==_)++x;else if(x=0,++v,u.sheetRows&&u.sheetRows<=v)return!0}e:for(;y<f.length;++y)switch(F=f.charCodeAt(y)){case 34:O===34&&(k=!k);break;case _:case 10:case 13:if(!k&&U())break e;break}return y-w>0&&U(),m["!ref"]=cr(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):Gf(r(f,l),l)}function h(f,l){var u="",p=l.type=="string"?[0,0,0,0]:x0(f,l);switch(l.type){case"base64":u=wi(f);break;case"binary":u=f;break;case"buffer":l.codepage==65001?u=f.toString("utf8"):l.codepage&&typeof ra<"u"?u=ra.utils.decode(l.codepage,f):u=nr&&Buffer.isBuffer(f)?f.toString("binary"):ha(f);break;case"array":u=Ba(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=Fr(u.slice(3)):l.type!="string"&&l.type!="buffer"&&l.codepage==65001?u=Fr(u):l.type=="binary"&&typeof ra<"u"&&l.codepage&&(u=ra.utils.decode(l.codepage,ra.utils.encode(28591,u))),u.slice(0,19)=="socialcalc:version:"?jg.to_sheet(l.type=="string"?u:Fr(u),l):o(u,l)}function c(f,l){return $a(h(f,l),l)}function a(f){for(var l=[],u=Er(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=Vt({r:d,c:x});if(p=m?(f[d]||[])[x]:f[g],!p||p.v==null){v.push(" ");continue}for(var w=(p.w||(oa(p),p.w)||"").slice(0,10);w.length<10;)w+=" ";v.push(w+(x===0?" ":""))}l.push(v.join(""))}return l.join(`
|
||
`)}return{to_workbook:c,to_sheet:h,from_sheet:a}}();function GT(t,r){var e=r||{},n=!!e.WTF;e.WTF=!0;try{var i=Lg.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 Po.to_workbook(t,r)}}var Oa=function(){function t(P,R,C){if(P){Sn(P,P.l||0);for(var S=C.Enum||B;P.l<P.length;){var D=P.read_shift(2),V=S[D]||S[65535],te=P.read_shift(2),oe=P.l+te,he=V.f&&V.f(P,te,C);if(P.l=oe,R(he,V,D))return}}}function r(P,R){switch(R.type){case"base64":return e(xi(wi(P)),R);case"binary":return e(xi(P),R);case"buffer":case"array":return e(P,R)}throw"Unsupported type "+R.type}function e(P,R){if(!P)return P;var C=R||{},S=C.dense?[]:{},D="Sheet1",V="",te=0,oe={},he=[],Ne=[],q={s:{r:0,c:0},e:{r:0,c:0}},ne=C.sheetRows||0;if(P[2]==0&&(P[3]==8||P[3]==9)&&P.length>=16&&P[14]==5&&P[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(P[2]==2)C.Enum=B,t(P,function(Ce,ce,se){switch(se){case 0:C.vers=Ce,Ce>=4096&&(C.qpro=!0);break;case 6:q=Ce;break;case 204:Ce&&(V=Ce);break;case 222:V=Ce;break;case 15:case 51:C.qpro||(Ce[1].v=Ce[1].v.slice(1));case 13:case 14:case 16:se==14&&(Ce[2]&112)==112&&(Ce[2]&15)>1&&(Ce[2]&15)<15&&(Ce[1].z=C.dateNF||Ht[14],C.cellDates&&(Ce[1].t="d",Ce[1].v=Ic(Ce[1].v))),C.qpro&&Ce[3]>te&&(S["!ref"]=cr(q),oe[D]=S,he.push(D),S=C.dense?[]:{},q={s:{r:0,c:0},e:{r:0,c:0}},te=Ce[3],D=V||"Sheet"+(te+1),V="");var ee=C.dense?(S[Ce[0].r]||[])[Ce[0].c]:S[Vt(Ce[0])];if(ee){ee.t=Ce[1].t,ee.v=Ce[1].v,Ce[1].z!=null&&(ee.z=Ce[1].z),Ce[1].f!=null&&(ee.f=Ce[1].f);break}C.dense?(S[Ce[0].r]||(S[Ce[0].r]=[]),S[Ce[0].r][Ce[0].c]=Ce[1]):S[Vt(Ce[0])]=Ce[1];break}},C);else if(P[2]==26||P[2]==14)C.Enum=L,P[2]==14&&(C.qpro=!0,P.l=0),t(P,function(Ce,ce,se){switch(se){case 204:D=Ce;break;case 22:Ce[1].v=Ce[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Ce[3]>te&&(S["!ref"]=cr(q),oe[D]=S,he.push(D),S=C.dense?[]:{},q={s:{r:0,c:0},e:{r:0,c:0}},te=Ce[3],D="Sheet"+(te+1)),ne>0&&Ce[0].r>=ne)break;C.dense?(S[Ce[0].r]||(S[Ce[0].r]=[]),S[Ce[0].r][Ce[0].c]=Ce[1]):S[Vt(Ce[0])]=Ce[1],q.e.c<Ce[0].c&&(q.e.c=Ce[0].c),q.e.r<Ce[0].r&&(q.e.r=Ce[0].r);break;case 27:Ce[14e3]&&(Ne[Ce[14e3][0]]=Ce[14e3][1]);break;case 1537:Ne[Ce[0]]=Ce[1],Ce[0]==te&&(D=Ce[1]);break}},C);else throw new Error("Unrecognized LOTUS BOF "+P[2]);if(S["!ref"]=cr(q),oe[V||D]=S,he.push(V||D),!Ne.length)return{SheetNames:he,Sheets:oe};for(var Q={},re=[],ve=0;ve<Ne.length;++ve)oe[he[ve]]?(re.push(Ne[ve]||he[ve]),Q[Ne[ve]]=oe[Ne[ve]]||oe[he[ve]]):(re.push(Ne[ve]),Q[Ne[ve]]={"!ref":"A1"});return{SheetNames:re,Sheets:Q}}function n(P,R){var C=R||{};if(+C.codepage>=0&&es(+C.codepage),C.type=="string")throw new Error("Cannot write WK1 to JS string");var S=si(),D=Er(P["!ref"]),V=Array.isArray(P),te=[];mt(S,0,s(1030)),mt(S,6,c(D));for(var oe=Math.min(D.e.r,8191),he=D.s.r;he<=oe;++he)for(var Ne=wn(he),q=D.s.c;q<=D.e.c;++q){he===D.s.r&&(te[q]=an(q));var ne=te[q]+Ne,Q=V?(P[he]||[])[q]:P[ne];if(!(!Q||Q.t=="z"))if(Q.t=="n")(Q.v|0)==Q.v&&Q.v>=-32768&&Q.v<=32767?mt(S,13,p(he,q,Q.v)):mt(S,14,d(he,q,Q.v));else{var re=oa(Q);mt(S,15,l(he,q,re.slice(0,239)))}}return mt(S,1),S.end()}function i(P,R){var C=R||{};if(+C.codepage>=0&&es(+C.codepage),C.type=="string")throw new Error("Cannot write WK3 to JS string");var S=si();mt(S,0,o(P));for(var D=0,V=0;D<P.SheetNames.length;++D)(P.Sheets[P.SheetNames[D]]||{})["!ref"]&&mt(S,27,A(P.SheetNames[D],V++));var te=0;for(D=0;D<P.SheetNames.length;++D){var oe=P.Sheets[P.SheetNames[D]];if(!(!oe||!oe["!ref"])){for(var he=Er(oe["!ref"]),Ne=Array.isArray(oe),q=[],ne=Math.min(he.e.r,8191),Q=he.s.r;Q<=ne;++Q)for(var re=wn(Q),ve=he.s.c;ve<=he.e.c;++ve){Q===he.s.r&&(q[ve]=an(ve));var Ce=q[ve]+re,ce=Ne?(oe[Q]||[])[ve]:oe[Ce];if(!(!ce||ce.t=="z"))if(ce.t=="n")mt(S,23,U(Q,ve,te,ce.v));else{var se=oa(ce);mt(S,22,F(Q,ve,te,se.slice(0,239)))}}++te}}return mt(S,1),S.end()}function s(P){var R=nt(2);return R.write_shift(2,P),R}function o(P){var R=nt(26);R.write_shift(2,4096),R.write_shift(2,4),R.write_shift(4,0);for(var C=0,S=0,D=0,V=0;V<P.SheetNames.length;++V){var te=P.SheetNames[V],oe=P.Sheets[te];if(!(!oe||!oe["!ref"])){++D;var he=Li(oe["!ref"]);C<he.e.r&&(C=he.e.r),S<he.e.c&&(S=he.e.c)}}return C>8191&&(C=8191),R.write_shift(2,C),R.write_shift(1,D),R.write_shift(1,S),R.write_shift(2,0),R.write_shift(2,0),R.write_shift(1,1),R.write_shift(1,2),R.write_shift(4,0),R.write_shift(4,0),R}function h(P,R,C){var S={s:{c:0,r:0},e:{c:0,r:0}};return R==8&&C.qpro?(S.s.c=P.read_shift(1),P.l++,S.s.r=P.read_shift(2),S.e.c=P.read_shift(1),P.l++,S.e.r=P.read_shift(2),S):(S.s.c=P.read_shift(2),S.s.r=P.read_shift(2),R==12&&C.qpro&&(P.l+=2),S.e.c=P.read_shift(2),S.e.r=P.read_shift(2),R==12&&C.qpro&&(P.l+=2),S.s.c==65535&&(S.s.c=S.e.c=S.s.r=S.e.r=0),S)}function c(P){var R=nt(8);return R.write_shift(2,P.s.c),R.write_shift(2,P.s.r),R.write_shift(2,P.e.c),R.write_shift(2,P.e.r),R}function a(P,R,C){var S=[{c:0,r:0},{t:"n",v:0},0,0];return C.qpro&&C.vers!=20768?(S[0].c=P.read_shift(1),S[3]=P.read_shift(1),S[0].r=P.read_shift(2),P.l+=2):(S[2]=P.read_shift(1),S[0].c=P.read_shift(2),S[0].r=P.read_shift(2)),S}function f(P,R,C){var S=P.l+R,D=a(P,R,C);if(D[1].t="s",C.vers==20768){P.l++;var V=P.read_shift(1);return D[1].v=P.read_shift(V,"utf8"),D}return C.qpro&&P.l++,D[1].v=P.read_shift(S-P.l,"cstr"),D}function l(P,R,C){var S=nt(7+C.length);S.write_shift(1,255),S.write_shift(2,R),S.write_shift(2,P),S.write_shift(1,39);for(var D=0;D<S.length;++D){var V=C.charCodeAt(D);S.write_shift(1,V>=128?95:V)}return S.write_shift(1,0),S}function u(P,R,C){var S=a(P,R,C);return S[1].v=P.read_shift(2,"i"),S}function p(P,R,C){var S=nt(7);return S.write_shift(1,255),S.write_shift(2,R),S.write_shift(2,P),S.write_shift(2,C,"i"),S}function m(P,R,C){var S=a(P,R,C);return S[1].v=P.read_shift(8,"f"),S}function d(P,R,C){var S=nt(13);return S.write_shift(1,255),S.write_shift(2,R),S.write_shift(2,P),S.write_shift(8,C,"f"),S}function v(P,R,C){var S=P.l+R,D=a(P,R,C);if(D[1].v=P.read_shift(8,"f"),C.qpro)P.l=S;else{var V=P.read_shift(2);y(P.slice(P.l,P.l+V),D),P.l+=V}return D}function x(P,R,C){var S=R&32768;return R&=-32769,R=(S?P:0)+(R>=8192?R-16384:R),(S?"":"$")+(C?an(R):wn(R))}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]},w=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function y(P,R){Sn(P,0);for(var C=[],S=0,D="",V="",te="",oe="";P.l<P.length;){var he=P[P.l++];switch(he){case 0:C.push(P.read_shift(8,"f"));break;case 1:V=x(R[0].c,P.read_shift(2),!0),D=x(R[0].r,P.read_shift(2),!1),C.push(V+D);break;case 2:{var Ne=x(R[0].c,P.read_shift(2),!0),q=x(R[0].r,P.read_shift(2),!1);V=x(R[0].c,P.read_shift(2),!0),D=x(R[0].r,P.read_shift(2),!1),C.push(Ne+q+":"+V+D)}break;case 3:if(P.l<P.length){console.error("WK1 premature formula end");return}break;case 4:C.push("("+C.pop()+")");break;case 5:C.push(P.read_shift(2));break;case 6:{for(var ne="";he=P[P.l++];)ne+=String.fromCharCode(he);C.push('"'+ne.replace(/"/g,'""')+'"')}break;case 8:C.push("-"+C.pop());break;case 23:C.push("+"+C.pop());break;case 22:C.push("NOT("+C.pop()+")");break;case 20:case 21:oe=C.pop(),te=C.pop(),C.push(["AND","OR"][he-20]+"("+te+","+oe+")");break;default:if(he<32&&w[he])oe=C.pop(),te=C.pop(),C.push(te+w[he]+oe);else if(g[he]){if(S=g[he][1],S==69&&(S=P[P.l++]),S>C.length){console.error("WK1 bad formula parse 0x"+he.toString(16)+":|"+C.join("|")+"|");return}var Q=C.slice(-S);C.length-=S,C.push(g[he][0]+"("+Q.join(",")+")")}else return he<=7?console.error("WK1 invalid opcode "+he.toString(16)):he<=24?console.error("WK1 unsupported op "+he.toString(16)):he<=30?console.error("WK1 invalid opcode "+he.toString(16)):he<=115?console.error("WK1 unsupported function opcode "+he.toString(16)):console.error("WK1 unrecognized opcode "+he.toString(16))}}C.length==1?R[1].f=""+C[0]:console.error("WK1 bad formula parse |"+C.join("|")+"|")}function _(P){var R=[{c:0,r:0},{t:"n",v:0},0];return R[0].r=P.read_shift(2),R[3]=P[P.l++],R[0].c=P[P.l++],R}function k(P,R){var C=_(P);return C[1].t="s",C[1].v=P.read_shift(R-4,"cstr"),C}function F(P,R,C,S){var D=nt(6+S.length);D.write_shift(2,P),D.write_shift(1,C),D.write_shift(1,R),D.write_shift(1,39);for(var V=0;V<S.length;++V){var te=S.charCodeAt(V);D.write_shift(1,te>=128?95:te)}return D.write_shift(1,0),D}function O(P,R){var C=_(P);C[1].v=P.read_shift(2);var S=C[1].v>>1;if(C[1].v&1)switch(S&7){case 0:S=(S>>3)*5e3;break;case 1:S=(S>>3)*500;break;case 2:S=(S>>3)/20;break;case 3:S=(S>>3)/200;break;case 4:S=(S>>3)/2e3;break;case 5:S=(S>>3)/2e4;break;case 6:S=(S>>3)/16;break;case 7:S=(S>>3)/64;break}return C[1].v=S,C}function N(P,R){var C=_(P),S=P.read_shift(4),D=P.read_shift(4),V=P.read_shift(2);if(V==65535)return S===0&&D===3221225472?(C[1].t="e",C[1].v=15):S===0&&D===3489660928?(C[1].t="e",C[1].v=42):C[1].v=0,C;var te=V&32768;return V=(V&32767)-16446,C[1].v=(1-te*2)*(D*Math.pow(2,V+32)+S*Math.pow(2,V)),C}function U(P,R,C,S){var D=nt(14);if(D.write_shift(2,P),D.write_shift(1,C),D.write_shift(1,R),S==0)return D.write_shift(4,0),D.write_shift(4,0),D.write_shift(2,65535),D;var V=0,te=0,oe=0,he=0;return S<0&&(V=1,S=-S),te=Math.log2(S)|0,S/=Math.pow(2,te-31),he=S>>>0,he&2147483648||(S/=2,++te,he=S>>>0),S-=he,he|=2147483648,he>>>=0,S*=Math.pow(2,32),oe=S>>>0,D.write_shift(4,oe),D.write_shift(4,he),te+=16383+(V?32768:0),D.write_shift(2,te),D}function z(P,R){var C=N(P);return P.l+=R-14,C}function W(P,R){var C=_(P),S=P.read_shift(4);return C[1].v=S>>6,C}function X(P,R){var C=_(P),S=P.read_shift(8,"f");return C[1].v=S,C}function J(P,R){var C=X(P);return P.l+=R-10,C}function H(P,R){return P[P.l+R-1]==0?P.read_shift(R,"cstr"):""}function I(P,R){var C=P[P.l++];C>R-1&&(C=R-1);for(var S="";S.length<C;)S+=String.fromCharCode(P[P.l++]);return S}function M(P,R,C){if(!(!C.qpro||R<21)){var S=P.read_shift(1);P.l+=17,P.l+=1,P.l+=2;var D=P.read_shift(R-21,"cstr");return[S,D]}}function E(P,R){for(var C={},S=P.l+R;P.l<S;){var D=P.read_shift(2);if(D==14e3){for(C[D]=[0,""],C[D][0]=P.read_shift(2);P[P.l];)C[D][1]+=String.fromCharCode(P[P.l]),P.l++;P.l++}}return C}function A(P,R){var C=nt(5+P.length);C.write_shift(2,14e3),C.write_shift(2,R);for(var S=0;S<P.length;++S){var D=P.charCodeAt(S);C[C.l++]=D>127?95:D}return C[C.l++]=0,C}var B={0:{n:"BOF",f:nn},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:H},222:{n:"SHEETNAMELP",f:I},65535:{n:""}},L={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:k},23:{n:"NUMBER17",f:N},24:{n:"NUMBER18",f:O},25:{n:"FORMULA19",f:z},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:E},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:W},38:{n:"??"},39:{n:"NUMBER27",f:X},40:{n:"FORMULA28",f:J},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:H},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:M},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 KT(t){var r={},e=t.match(Ln),n=0,i=!1;if(e)for(;n!=e.length;++n){var s=Wt(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=Bu[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 YT=function(){var t=If("t"),r=If("rPr");function e(s){var o=s.match(t);if(!o)return{t:"s",v:""};var h={t:"s",v:vr(o[1])},c=s.match(r);return c&&(h.s=KT(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})}}(),ZT=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("")}}(),JT=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,QT=/<(?:\w+:)?r>/,qT=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function s0(t,r){var e=r?r.cellHTML:!0,n={};return t?(t.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=vr(Fr(t.slice(t.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Fr(t),e&&(n.h=Gu(n.t))):t.match(QT)&&(n.r=Fr(t),n.t=vr(Fr((t.replace(qT,"").match(JT)||[]).join("").replace(Ln,""))),e&&(n.h=ZT(YT(n.r)))),n):{t:""}}var eS=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,tS=/<(?:\w+:)?(?:si|sstItem)>/g,rS=/<\/(?:\w+:)?(?:si|sstItem)>/;function nS(t,r){var e=[],n="";if(!t)return e;var i=t.match(eS);if(i){n=i[2].replace(tS,"").split(rS);for(var s=0;s!=n.length;++s){var o=s0(n[s].trim(),r);o!=null&&(e[e.length]=o)}i=Wt(i[1]),e.Count=i.count,e.Unique=i.uniqueCount}return e}var iS=/^\s|\s$|[\t\n\r]/;function Hg(t,r){if(!r.bookSST)return"";var e=[Qr];e[e.length]=pt("sst",null,{xmlns:Wa[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(iS)&&(s+=' xml:space="preserve"'),s+=">"+Cr(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 sS(t){return[t.read_shift(4),t.read_shift(4)]}function aS(t,r){var e=[],n=!1;return js(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 oS(t,r){return r||(r=nt(8)),r.write_shift(4,t.Count),r.write_shift(4,t.Unique),r}var fS=x5;function lS(t){var r=si();ct(r,159,oS(t));for(var e=0;e<t.length;++e)ct(r,19,fS(t[e]));return ct(r,160),r.end()}function Wg(t){for(var r=[],e=t.split(""),n=0;n<e.length;++n)r[n]=e[n].charCodeAt(0);return r}function Bs(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 cS(t){var r={};return r.id=t.read_shift(0,"lpp4"),r.R=Bs(t,4),r.U=Bs(t,4),r.W=Bs(t,4),r}function hS(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 uS(t){var r=[];t.l+=4;for(var e=t.read_shift(4);e-- >0;)r.push(hS(t));return r}function dS(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 pS(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=Bs(t,4),r.U=Bs(t,4),r.W=Bs(t,4),r}function mS(t){var r=pS(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 $g(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 zg(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 gS(t){var r=Bs(t);switch(r.Minor){case 2:return[r.Minor,vS(t)];case 3:return[r.Minor,xS()];case 4:return[r.Minor,bS(t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}function vS(t){var r=t.read_shift(4);if((r&63)!=36)throw new Error("EncryptionInfo mismatch");var e=t.read_shift(4),n=$g(t,e),i=zg(t,t.length-t.l);return{t:"Std",h:n,v:i}}function xS(){throw new Error("File is password-protected: ECMA-376 Extensible")}function bS(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(Ln,function(s){var o=Wt(s);switch(gs(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 wS(t,r){var e={},n=e.EncryptionVersionInfo=Bs(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=$g(t,i),r-=i,e.EncryptionVerifier=zg(t,r),e}function yS(t){var r={},e=r.EncryptionVersionInfo=Bs(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 a0(t){var r=0,e,n=Wg(t),i=n.length+1,s,o,h,c,a;for(e=aa(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 Xg=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=Wg(o),c=s(h),a=h.length,f=aa(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}}(),_S=function(t,r,e,n,i){i||(i=r),n||(n=Xg(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]},ES=function(t){var r=0,e=Xg(t);return function(n){var i=_S("",n,r,e);return r=i[1],i[0]}};function TS(t,r,e,n){var i={key:nn(t),verificationBytes:nn(t)};return e.password&&(i.verifier=a0(e.password)),n.valid=i.verificationBytes===i.verifier,n.valid&&(n.insitu=ES(e.password)),i}function SS(t,r,e){var n=e||{};return n.Info=t.read_shift(2),t.l-=2,n.Info===1?n.Data=yS(t):n.Data=wS(t,r),n}function kS(t,r,e){var n={Type:e.biff>=8?t.read_shift(2):0};return n.Type?SS(t,r-2,n):TS(t,e.biff>=8?r:r-2,e,n),n}var Vg=function(){function t(i,s){switch(s.type){case"base64":return r(wi(i),s);case"binary":return r(i,s);case"buffer":return r(nr&&Buffer.isBuffer(i)?i.toString("binary"):ha(i),s);case"array":return r(Ba(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[Vt({r:l,c:d})]=x}break}p=u.lastIndex}d>a.e.c&&(a.e.c=d)}),h["!ref"]=cr(a),h}function e(i,s){return $a(t(i,s),s)}function n(i){for(var s=["{\\rtf1\\ansi"],o=Er(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=Vt({r:a,c:f});h=c?(i[a]||[])[f]:i[l],!(!h||h.v==null&&(!h.f||h.F))&&(s.push(" "+(h.w||(oa(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 CS(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 Pf(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 AS(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 FS(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 Tc(t,r){if(r===0)return t;var e=AS(CS(t));return r<0?e[2]=e[2]*(1+r):e[2]=1-(1-e[2])*(1-r),Pf(FS(e))}var Gg=6,RS=15,MS=1,On=Gg;function Bf(t){return Math.floor((t+Math.round(128/On)/256)*On)}function Lf(t){return Math.floor((t-5)/On*100+.5)/100}function Sc(t){return Math.round((t*On+5)/On*256)/256}function zh(t){return Sc(Lf(Bf(t)))}function o0(t){var r=Math.abs(t-zh(t)),e=On;if(r>.005)for(On=MS;On<RS;++On)Math.abs(t-zh(t))<=r&&(r=Math.abs(t-zh(t)),e=On);On=e}function fa(t){t.width?(t.wpx=Bf(t.width),t.wch=Lf(t.wpx),t.MDW=On):t.wpx?(t.wch=Lf(t.wpx),t.width=Sc(t.wch),t.MDW=On):typeof t.wch=="number"&&(t.width=Sc(t.wch),t.wpx=Bf(t.width),t.MDW=On),t.customWidth&&delete t.customWidth}var IS=96,Kg=IS;function Uf(t){return t*96/Kg}function Bo(t){return t*Kg/96}var OS={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 DS(t,r,e,n){r.Borders=[];var i={},s=!1;(t[0].match(Ln)||[]).forEach(function(o){var h=Wt(o);switch(gs(h[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":i={},h.diagonalUp&&(i.diagonalUp=Pr(h.diagonalUp)),h.diagonalDown&&(i.diagonalDown=Pr(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 NS(t,r,e,n){r.Fills=[];var i={},s=!1;(t[0].match(Ln)||[]).forEach(function(o){var h=Wt(o);switch(gs(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 PS(t,r,e,n){r.Fonts=[];var i={},s=!1;(t[0].match(Ln)||[]).forEach(function(o){var h=Wt(o);switch(gs(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=Fr(h.val));break;case"<name/>":case"</name>":break;case"<b":i.bold=h.val?Pr(h.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=h.val?Pr(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?Pr(h.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=h.val?Pr(h.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=h.val?Pr(h.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=h.val?Pr(h.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=h.val?Pr(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=Bu[parseInt(h.val,10)];break;case"<color":if(i.color||(i.color={}),h.auto&&(i.color.auto=Pr(h.auto)),h.rgb)i.color.rgb=h.rgb.slice(-6);else if(h.indexed){i.color.index=parseInt(h.indexed,10);var c=Ma[i.color.index];i.color.index==81&&(c=Ma[1]),c||(c=Ma[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=Tc(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 BS(t,r,e){r.NumberFmt=[];for(var n=Jr(Ht),i=0;i<n.length;++i)r.NumberFmt[n[i]]=Ht[n[i]];var s=t[0].match(Ln);if(s)for(i=0;i<s.length;++i){var o=Wt(s[i]);switch(gs(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var h=vr(Fr(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}Ns(h,c)}}break;case"</numFmt>":break;default:if(e.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}function LS(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]=pt("numFmt",null,{numFmtId:n,formatCode:Cr(t[n])}))}),r.length===1?"":(r[r.length]="</numFmts>",r[0]=pt("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}var Jl=["numFmtId","fillId","fontId","borderId","xfId"],Ql=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function US(t,r,e){r.CellXf=[];var n,i=!1;(t[0].match(Ln)||[]).forEach(function(s){var o=Wt(s),h=0;switch(gs(o[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(n=o,delete n[0],h=0;h<Jl.length;++h)n[Jl[h]]&&(n[Jl[h]]=parseInt(n[Jl[h]],10));for(h=0;h<Ql.length;++h)n[Ql[h]]&&(n[Ql[h]]=Pr(n[Ql[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=Pr(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 jS(t){var r=[];return r[r.length]=pt("cellXfs",null),t.forEach(function(e){r[r.length]=pt("xf",null,e)}),r[r.length]="</cellXfs>",r.length===2?"":(r[0]=pt("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}var HS=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))&&BS(l,f,a),(l=h.match(i))&&PS(l,f,c,a),(l=h.match(n))&&NS(l,f,c,a),(l=h.match(s))&&DS(l,f,c,a),(l=h.match(e))&&US(l,f,a),f}}();function Yg(t,r){var e=[Qr,pt("styleSheet",null,{xmlns:Wa[0],"xmlns:vt":un.vt})],n;return t.SSF&&(n=LS(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=jS(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 WS(t,r){var e=t.read_shift(2),n=Nn(t);return[e,n]}function $S(t,r,e){e||(e=nt(6+4*r.length)),e.write_shift(2,t),bn(r,e);var n=e.length>e.l?e.slice(0,e.l):e;return e.l==null&&(e.l=e.length),n}function zS(t,r,e){var n={};n.sz=t.read_shift(2)/20;var i=S5(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=T5(t),t.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Nn(t),n}function XS(t,r){r||(r=nt(25+4*32)),r.write_shift(2,t.sz*20),k5(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),yc(t.color,r);var n=0;return t.scheme=="major"&&(n=1),t.scheme=="minor"&&(n=2),r.write_shift(1,n),bn(t.name,r),r.length>r.l?r.slice(0,r.l):r}var VS=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Xh,GS=Bn;function B1(t,r){r||(r=nt(4*3+8*7+16*1)),Xh||(Xh=Rc(VS));var e=Xh[t.patternType];e==null&&(e=40),r.write_shift(4,e);var n=0;if(e!=40)for(yc({auto:1},r),yc({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 KS(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 Zg(t,r,e){e||(e=nt(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 df(t,r){return r||(r=nt(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var YS=Bn;function ZS(t,r){return r||(r=nt(51)),r.write_shift(1,0),df(null,r),df(null,r),df(null,r),df(null,r),df(null,r),r.length>r.l?r.slice(0,r.l):r}function JS(t,r){return r||(r=nt(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),wc(t.name||"",r),r.length>r.l?r.slice(0,r.l):r}function QS(t,r,e){var n=nt(2052);return n.write_shift(4,t),wc(r,n),wc(e,n),n.length>n.l?n.slice(0,n.l):n}function qS(t,r,e){var n={};n.NumberFmt=[];for(var i in Ht)n.NumberFmt[i]=Ht[i];n.CellXf=[],n.Fonts=[];var s=[],o=!1;return js(t,function(c,a,f){switch(f){case 44:n.NumberFmt[c[0]]=c[1],Ns(c[1],c[0]);break;case 43:n.Fonts.push(c),c.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme&&(c.color.rgb=Tc(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 ek(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&&(ct(t,615,rs(e)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)r[i]!=null&&ct(t,44,$S(i,r[i]))}),ct(t,616))}}function tk(t){var r=1;ct(t,611,rs(r)),ct(t,43,XS({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ct(t,612)}function rk(t){var r=2;ct(t,603,rs(r)),ct(t,45,B1({patternType:"none"})),ct(t,45,B1({patternType:"gray125"})),ct(t,604)}function nk(t){var r=1;ct(t,613,rs(r)),ct(t,46,ZS()),ct(t,614)}function ik(t){var r=1;ct(t,626,rs(r)),ct(t,47,Zg({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ct(t,627)}function sk(t,r){ct(t,617,rs(r.length)),r.forEach(function(e){ct(t,47,Zg(e,0))}),ct(t,618)}function ak(t){var r=1;ct(t,619,rs(r)),ct(t,48,JS({xfId:0,builtinId:0,name:"Normal"})),ct(t,620)}function ok(t){var r=0;ct(t,505,rs(r)),ct(t,506)}function fk(t){var r=0;ct(t,508,QS(r,"TableStyleMedium9","PivotStyleMedium4")),ct(t,509)}function lk(t,r){var e=si();return ct(e,278),ek(e,t.SSF),tk(e),rk(e),nk(e),ik(e),sk(e,r.cellXfs),ak(e),ok(e),fk(e),ct(e,279),e.end()}var ck=["</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 hk(t,r,e){r.themeElements.clrScheme=[];var n={};(t[0].match(Ln)||[]).forEach(function(i){var s=Wt(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[ck.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 uk(){}function dk(){}var pk=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,mk=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,gk=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function vk(t,r,e){r.themeElements={};var n;[["clrScheme",pk,hk],["fontScheme",mk,uk],["fmtScheme",gk,dk]].forEach(function(i){if(!(n=t.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](n,r,e)})}var xk=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Jg(t,r){(!t||t.length===0)&&(t=f0());var e,n={};if(!(e=t.match(xk)))throw new Error("themeElements not found in theme");return vk(e[0],n,r),n.raw=t,n}function f0(t,r){if(r&&r.themeXLSX)return r.themeXLSX;if(t&&typeof t.raw=="string")return t.raw;var e=[Qr];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 bk(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=$m(s,{type:"array"})}catch{return}var h=bi(o,"theme/theme/theme1.xml",!0);if(h)return Jg(h,e)}}function wk(t){return t.read_shift(4)}function yk(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=_k(t,4);break;case 2:r.xclrValue=Rg(t);break;case 3:r.xclrValue=wk(t);break;case 4:t.l+=4;break}return t.l+=8,r}function _k(t,r){return Bn(t,r)}function Ek(t,r){return Bn(t,r)}function Tk(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]=yk(t);break;case 6:n[1]=Ek(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 Sk(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(Tk(t,e-t.l));return{ixfe:n,ext:s}}function kk(t,r){r.forEach(function(e){switch(e[0]){}})}function Ck(t,r){return{flags:t.read_shift(4),version:t.read_shift(4),name:Nn(t)}}function Ak(t){var r=nt(12+2*t.name.length);return r.write_shift(4,t.flags),r.write_shift(4,t.version),bn(t.name,r),r.slice(0,r.l)}function Fk(t){for(var r=[],e=t.read_shift(4);e-- >0;)r.push([t.read_shift(4),t.read_shift(4)]);return r}function Rk(t){var r=nt(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 Mk(t,r){var e=nt(8+2*r.length);return e.write_shift(4,t),bn(r,e),e.slice(0,e.l)}function Ik(t){return t.l+=4,t.read_shift(4)!=0}function Ok(t,r){var e=nt(8);return e.write_shift(4,t),e.write_shift(4,r?1:0),e}function Dk(t,r,e){var n={Types:[],Cell:[],Value:[]},i=e||{},s=[],o=!1,h=2;return js(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 Nk(){var t=si();return ct(t,332),ct(t,334,rs(1)),ct(t,335,Ak({name:"XLDAPR",version:12e4,flags:3496657072})),ct(t,336),ct(t,339,Mk(1,"XLDAPR")),ct(t,52),ct(t,35,rs(514)),ct(t,4096,rs(0)),ct(t,4097,Ni(1)),ct(t,36),ct(t,53),ct(t,340),ct(t,337,Ok(1,!0)),ct(t,51,Rk([[1,0]])),ct(t,338),ct(t,333),t.end()}function Pk(t,r,e){var n={Types:[],Cell:[],Value:[]};if(!t)return n;var i=!1,s=2,o;return t.replace(Ln,function(h){var c=Wt(h);switch(gs(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 Qg(){var t=[Qr];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 Bk(t){var r=[];if(!t)return r;var e=1;return(t.match(Ln)||[]).forEach(function(n){var i=Wt(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 Lk(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=Vt(e);var n=t.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}function Uk(t,r,e){var n=[];return js(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 jk(t,r,e,n){if(!t)return t;var i=n||{},s=!1;js(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 Hk(t,r){if(!t)return"??";var e=(t.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][e].Target}var Mo=1024;function qg(t,r){for(var e=[21600,21600],n=["m0,0l0",e[1],e[0],e[1],e[0],"0xe"].join(","),i=[pt("xml",null,{"xmlns:v":gi.v,"xmlns:o":gi.o,"xmlns:x":gi.x,"xmlns:mv":gi.mv}).replace(/\/>/,">"),pt("o:shapelayout",pt("o:idmap",null,{"v:ext":"edit",data:t}),{"v:ext":"edit"}),pt("v:shapetype",[pt("v:stroke",null,{joinstyle:"miter"}),pt("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:e.join(","),path:n})];Mo<t*1e3;)Mo+=1e3;return r.forEach(function(s){var o=dn(s[0]),h={color2:"#BEFF82",type:"gradient"};h.type=="gradient"&&(h.angle="-180");var c=h.type=="gradient"?pt("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,a=pt("v:fill",c,h),f={on:"t",obscured:"t"};++Mo,i=i.concat(["<v:shape"+Of({id:"_x0000_s"+Mo,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,pt("v:shadow",null,f),pt("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",kn("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),kn("x:AutoFill","False"),kn("x:Row",String(o.r)),kn("x:Column",String(o.c)),s[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function L1(t,r,e,n){var i=Array.isArray(t),s;r.forEach(function(o){var h=dn(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=Er(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=cr(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 Wk(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=Wt(h[0]),a={author:c.authorId&&e[c.authorId]||"sheetjsghost",ref:c.ref,guid:c.guid},f=dn(c.ref);if(!(r.sheetRows&&r.sheetRows<=f.r)){var l=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),u=!!l&&!!l[1]&&s0(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 ev(t){var r=[Qr,pt("comments",null,{xmlns:Wa[0]})],e=[];return r.push("<authors>"),t.forEach(function(n){n[1].forEach(function(i){var s=Cr(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(Cr(c.a))),s.push(c.t||"")}),r.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),s.length<=1)r.push(kn("t",Cr(s[0]||"")));else{for(var o=`Comment:
|
||
`+s[0]+`
|
||
`,h=1;h<s.length;++h)o+=`Reply:
|
||
`+s[h]+`
|
||
`;r.push(kn("t",Cr(o)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function $k(t,r){var e=[],n=!1,i={},s=0;return t.replace(Ln,function(h,c){var a=Wt(h);switch(gs(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 zk(t,r,e){var n=[Qr,pt("ThreadedComments",null,{xmlns:un.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(pt("threadedComment",kn("text",o.t||""),c))})}),n.push("</ThreadedComments>"),n.join("")}function Xk(t,r){var e=[],n=!1;return t.replace(Ln,function(s){var o=Wt(s);switch(gs(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 Vk(t){var r=[Qr,pt("personList",null,{xmlns:un.TCMNT,"xmlns:x":Wa[0]}).replace(/[\/]>/,">")];return t.forEach(function(e,n){r.push(pt("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))}),r.push("</personList>"),r.join("")}function Gk(t){var r={};r.iauthor=t.read_shift(4);var e=Ga(t);return r.rfx=e.s,r.ref=Vt(e.s),t.l+=16,r}function Kk(t,r){return r==null&&(r=nt(36)),r.write_shift(4,t[1].iauthor),Ho(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 Yk=Nn;function Zk(t){return bn(t.slice(0,54))}function Jk(t,r){var e=[],n=[],i={},s=!1;return js(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 Qk(t){var r=si(),e=[];return ct(r,628),ct(r,630),t.forEach(function(n){n[1].forEach(function(i){e.indexOf(i.a)>-1||(e.push(i.a.slice(0,54)),ct(r,632,Zk(i.a)))})}),ct(r,631),ct(r,633),t.forEach(function(n){n[1].forEach(function(i){i.iauthor=e.indexOf(i.a);var s={s:dn(n[0]),e:dn(n[0])};ct(r,635,Kk([s,i])),i.t&&i.t.length>0&&ct(r,637,w5(i)),ct(r,636),delete i.iauthor})}),ct(r,634),ct(r,629),r.end()}var qk="application/vnd.ms-office.vbaProject";function e9(t){var r=It.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*/,"");It.utils.cfb_add(r,i,t.FileIndex[n].content)}}),It.write(r)}function t9(t,r){r.FullPaths.forEach(function(e,n){if(n!=0){var i=e.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&It.utils.cfb_add(t,i,r.FileIndex[n].content)}})}var tv=["xlsb","xlsm","xlam","biff8","xla"];function r9(){return{"!type":"dialog"}}function n9(){return{"!type":"dialog"}}function i9(){return{"!type":"macro"}}function s9(){return{"!type":"macro"}}var Do=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?"":"$")+an(f)+(c?"":"$")+wn(a)}return function(i,s){return r=s,i.replace(t,e)}}(),l0=/(^|[^._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,c0=function(){return function(r,e){return r.replace(l0,function(n,i,s,o,h,c){var a=og(o)-(s?0:e.c),f=ag(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 rv(t,r){return t.replace(l0,function(e,n,i,s,o,h){return n+(i=="$"?i+s:an(og(s)+r.c))+(o=="$"?o+h:wn(ag(h)+r.r))})}function a9(t,r,e){var n=Li(r),i=n.s,s=dn(e),o={r:s.r-i.r,c:s.c-i.c};return rv(t,o)}function o9(t){return t.length!=1}function U1(t){return t.replace(/_xlfn\./g,"")}function tn(t){t.l+=1}function la(t,r){var e=t.read_shift(r==1?1:2);return[e&16383,e>>14&1,e>>15&1]}function nv(t,r,e){var n=2;if(e){if(e.biff>=2&&e.biff<=5)return iv(t);e.biff==12&&(n=4)}var i=t.read_shift(n),s=t.read_shift(n),o=la(t,2),h=la(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 iv(t){var r=la(t,2),e=la(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 f9(t,r,e){if(e.biff<8)return iv(t);var n=t.read_shift(e.biff==12?4:2),i=t.read_shift(e.biff==12?4:2),s=la(t,2),o=la(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 sv(t,r,e){if(e&&e.biff>=2&&e.biff<=5)return l9(t);var n=t.read_shift(e&&e.biff==12?4:2),i=la(t,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function l9(t){var r=la(t,2),e=t.read_shift(1);return{r:r[0],c:e,cRel:r[1],rRel:r[2]}}function c9(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 h9(t,r,e){var n=e&&e.biff?e.biff:8;if(n>=2&&n<=5)return u9(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 u9(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 d9(t,r,e){var n=(t[t.l++]&96)>>5,i=nv(t,e.biff>=2&&e.biff<=5?6:8,e);return[n,i]}function p9(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=nv(t,s,e);return[n,i,o]}function m9(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 g9(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 v9(t,r,e){var n=(t[t.l++]&96)>>5,i=f9(t,r-1,e);return[n,i]}function x9(t,r,e){var n=(t[t.l++]&96)>>5;return t.l+=e.biff==2?6:e.biff==12?14:7,[n]}function j1(t){var r=t[t.l+1]&1,e=1;return t.l+=4,[r,e]}function b9(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 w9(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 y9(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 _9(t){var r=t[t.l+1]&255?1:0;return t.l+=2,[r,t.read_shift(2)]}function E9(t,r,e){var n=t[t.l+1]&255?1:0;return t.l+=e&&e.biff==2?3:4,[n]}function av(t){var r=t.read_shift(1),e=t.read_shift(1);return[r,e]}function T9(t){return t.read_shift(2),av(t)}function S9(t){return t.read_shift(2),av(t)}function k9(t,r,e){var n=(t[t.l]&96)>>5;t.l+=1;var i=sv(t,0,e);return[n,i]}function C9(t,r,e){var n=(t[t.l]&96)>>5;t.l+=1;var i=h9(t,0,e);return[n,i]}function A9(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=sv(t,0,e);return[n,i,s]}function F9(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[I7[i],lv[i],n]}function R9(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)]:M9(t);return[i,(s[0]===0?lv:M7)[s[1]]]}function M9(t){return[t[t.l+1]>>7,t.read_shift(2)&32767]}function I9(t,r,e){t.l+=e&&e.biff==2?3:4}function O9(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 D9(t){return t.l++,Hs[t.read_shift(1)]}function N9(t){return t.l++,t.read_shift(2)}function P9(t){return t.l++,t.read_shift(1)!==0}function B9(t){return t.l++,Dn(t)}function L9(t,r,e){return t.l++,Kf(t,r-1,e)}function U9(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]=Yr(t,1)?"TRUE":"FALSE",r!=12&&(t.l+=7);break;case 37:case 16:e[1]=Hs[t[t.l]],t.l+=r==12?4:8;break;case 0:t.l+=8;break;case 1:e[1]=Dn(t);break;case 2:e[1]=Ka(t,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+e[0])}return e}function j9(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?Ga:Oc)(t));return i}function H9(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]=U9(t,e.biff);return o}function W9(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 $9(t,r,e){if(e.biff==5)return z9(t);var n=t.read_shift(1)>>>5&3,i=t.read_shift(2),s=t.read_shift(4);return[n,i,s]}function z9(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 X9(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 V9(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 G9(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 K9(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 Y9=Bn,Z9=Bn,J9=Bn;function Zf(t,r,e){return t.l+=2,[c9(t)]}function h0(t){return t.l+=6,[]}var Q9=Zf,q9=h0,e7=h0,t7=Zf;function ov(t){return t.l+=2,[nn(t),t.read_shift(2)&1]}var r7=Zf,n7=ov,i7=h0,s7=Zf,a7=Zf,o7=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function f7(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=o7[e>>2&31];return{ixti:r,coltype:e&3,rt:o,idx:n,c:i,C:s}}function l7(t){return t.l+=2,[t.read_shift(4)]}function c7(t,r,e){return t.l+=5,t.l+=2,t.l+=e.biff==2?1:4,["PTGSHEET"]}function h7(t,r,e){return t.l+=e.biff==2?4:5,["PTGENDSHEET"]}function u7(t){var r=t.read_shift(1)>>>5&3,e=t.read_shift(2);return[r,e]}function d7(t){var r=t.read_shift(1)>>>5&3,e=t.read_shift(2);return[r,e]}function p7(t){return t.l+=4,[0,0]}var H1={1:{n:"PtgExp",f:O9},2:{n:"PtgTbl",f:J9},3:{n:"PtgAdd",f:tn},4:{n:"PtgSub",f:tn},5:{n:"PtgMul",f:tn},6:{n:"PtgDiv",f:tn},7:{n:"PtgPower",f:tn},8:{n:"PtgConcat",f:tn},9:{n:"PtgLt",f:tn},10:{n:"PtgLe",f:tn},11:{n:"PtgEq",f:tn},12:{n:"PtgGe",f:tn},13:{n:"PtgGt",f:tn},14:{n:"PtgNe",f:tn},15:{n:"PtgIsect",f:tn},16:{n:"PtgUnion",f:tn},17:{n:"PtgRange",f:tn},18:{n:"PtgUplus",f:tn},19:{n:"PtgUminus",f:tn},20:{n:"PtgPercent",f:tn},21:{n:"PtgParen",f:tn},22:{n:"PtgMissArg",f:tn},23:{n:"PtgStr",f:L9},26:{n:"PtgSheet",f:c7},27:{n:"PtgEndSheet",f:h7},28:{n:"PtgErr",f:D9},29:{n:"PtgBool",f:P9},30:{n:"PtgInt",f:N9},31:{n:"PtgNum",f:B9},32:{n:"PtgArray",f:x9},33:{n:"PtgFunc",f:F9},34:{n:"PtgFuncVar",f:R9},35:{n:"PtgName",f:W9},36:{n:"PtgRef",f:k9},37:{n:"PtgArea",f:d9},38:{n:"PtgMemArea",f:X9},39:{n:"PtgMemErr",f:Y9},40:{n:"PtgMemNoMem",f:Z9},41:{n:"PtgMemFunc",f:V9},42:{n:"PtgRefErr",f:G9},43:{n:"PtgAreaErr",f:m9},44:{n:"PtgRefN",f:C9},45:{n:"PtgAreaN",f:v9},46:{n:"PtgMemAreaN",f:u7},47:{n:"PtgMemNoMemN",f:d7},57:{n:"PtgNameX",f:$9},58:{n:"PtgRef3d",f:A9},59:{n:"PtgArea3d",f:p9},60:{n:"PtgRefErr3d",f:K9},61:{n:"PtgAreaErr3d",f:g9},255:{}},m7={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},g7={1:{n:"PtgElfLel",f:ov},2:{n:"PtgElfRw",f:s7},3:{n:"PtgElfCol",f:Q9},6:{n:"PtgElfRwV",f:a7},7:{n:"PtgElfColV",f:t7},10:{n:"PtgElfRadical",f:r7},11:{n:"PtgElfRadicalS",f:i7},13:{n:"PtgElfColS",f:q9},15:{n:"PtgElfColSV",f:e7},16:{n:"PtgElfRadicalLel",f:n7},25:{n:"PtgList",f:f7},29:{n:"PtgSxName",f:l7},255:{}},v7={0:{n:"PtgAttrNoop",f:p7},1:{n:"PtgAttrSemi",f:E9},2:{n:"PtgAttrIf",f:y9},4:{n:"PtgAttrChoose",f:b9},8:{n:"PtgAttrGoto",f:w9},16:{n:"PtgAttrSum",f:I9},32:{n:"PtgAttrBaxcel",f:j1},33:{n:"PtgAttrBaxcel",f:j1},64:{n:"PtgAttrSpace",f:T9},65:{n:"PtgAttrSpaceSemi",f:S9},128:{n:"PtgAttrIfError",f:_9},255:{}};function Jf(t,r,e,n){if(n.biff<8)return Bn(t,r);for(var i=t.l+r,s=[],o=0;o!==e.length;++o)switch(e[o][0]){case"PtgArray":e[o][1]=H9(t,0,n),s.push(e[o][1]);break;case"PtgMemArea":e[o][2]=j9(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(Bn(t,r)),s}function Qf(t,r,e){for(var n=t.l+r,i,s,o=[];n!=t.l;)r=n-t.l,s=t[t.l],i=H1[s]||H1[m7[s]],(s===24||s===25)&&(i=(s===24?g7:v7)[t[t.l+1]]),!i||!i.f?Bn(t,r):o.push([i.n,i.f(t,r,e)]);return o}function x7(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 b7={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function w7(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 fv(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 W1(t,r,e){var n=fv(t,r,e);return n=="#REF"?n:w7(n,e)}function In(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 w=t[0][x];switch(w[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=zr(" ",t[0][d][1][1]);break;case 1:v=zr("\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+b7[w[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=_f(w[1][1],o,i),h.push(Ef(f,s));break;case"PtgRefN":f=e?_f(w[1][1],e,i):w[1][1],h.push(Ef(f,s));break;case"PtgRef3d":l=w[1][1],f=_f(w[1][2],o,i),m=W1(n,l,i),h.push(m+"!"+Ef(f,s));break;case"PtgFunc":case"PtgFuncVar":var y=w[1][0],_=w[1][1];y||(y=0),y&=127;var k=y==0?[]:h.slice(-y);h.length-=y,_==="User"&&(_=k.shift()),h.push(_+"("+k.join(",")+")");break;case"PtgBool":h.push(w[1]?"TRUE":"FALSE");break;case"PtgInt":h.push(w[1]);break;case"PtgNum":h.push(String(w[1]));break;case"PtgStr":h.push('"'+w[1].replace(/"/g,'""')+'"');break;case"PtgErr":h.push(w[1]);break;case"PtgAreaN":p=v1(w[1][1],e?{s:e}:o,i),h.push(Hh(p,i));break;case"PtgArea":p=v1(w[1][1],o,i),h.push(Hh(p,i));break;case"PtgArea3d":l=w[1][1],p=w[1][2],m=W1(n,l,i),h.push(m+"!"+Hh(p,i));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":u=w[1][2];var F=(n.names||[])[u-1]||(n[0]||[])[u],O=F?F.Name:"SH33TJSNAME"+String(u);O&&O.slice(0,6)=="_xlfn."&&!i.xlfn&&(O=O.slice(6)),h.push(O);break;case"PtgNameX":var N=w[1][1];u=w[1][2];var U;if(i.biff<=5)N<0&&(N=-N),n[N]&&(U=n[N][u]);else{var z="";if(((n[N]||[])[0]||[])[0]==14849||(((n[N]||[])[0]||[])[0]==1025?n[N][u]&&n[N][u].itab>0&&(z=n.SheetNames[n[N][u].itab-1]+"!"):z=n.SheetNames[u-1]+"!"),n[N]&&n[N][u])z+=n[N][u].Name;else if(n[0]&&n[0][u])z+=n[0][u].Name;else{var W=(fv(n,N,i)||"").split(";;");W[u-1]?z=W[u-1]:z+="SH33TJSERRX"}h.push(z);break}U||(U={Name:"SH33TJSERRY"}),h.push(U.Name);break;case"PtgParen":var X="(",J=")";if(d>=0){switch(v="",t[0][d][1][0]){case 2:X=zr(" ",t[0][d][1][1])+X;break;case 3:X=zr("\r",t[0][d][1][1])+X;break;case 4:J=zr(" ",t[0][d][1][1])+J;break;case 5:J=zr("\r",t[0][d][1][1])+J;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+t[0][d][1][0])}d=-1}h.push(X+h.pop()+J);break;case"PtgRefErr":h.push("#REF!");break;case"PtgRefErr3d":h.push("#REF!");break;case"PtgExp":f={c:w[1][1],r:w[1][0]};var H={c:e.c,r:e.r};if(n.sharedf[Vt(f)]){var I=n.sharedf[Vt(f)];h.push(In(I,o,H,n,i))}else{var M=!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(In(a[1],o,H,n,i)),M=!0;break}M||h.push(w[1])}break;case"PtgArray":h.push("{"+x7(w[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"+w[1].idx+"[#"+w[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(w));default:throw new Error("Unrecognized Formula Token: "+String(w))}var E=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&d>=0&&E.indexOf(t[0][x][0])==-1){w=t[0][d];var A=!0;switch(w[1][0]){case 4:A=!1;case 0:v=zr(" ",w[1][1]);break;case 5:A=!1;case 1:v=zr("\r",w[1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0])}h.push((A?v:"")+h.pop()+(A?"":v)),d=-1}}if(h.length>1&&i.WTF)throw new Error("bad formula stack");return h[0]}function y7(t,r,e){var n=t.l+r,i=e.biff==2?1:2,s,o=t.read_shift(i);if(o==65535)return[[],Bn(t,r-2)];var h=Qf(t,o,e);return r!==o+i&&(s=Jf(t,r-o-i,h,e)),t.l=n,[h,s]}function _7(t,r,e){var n=t.l+r,i=e.biff==2?1:2,s,o=t.read_shift(i);if(o==65535)return[[],Bn(t,r-2)];var h=Qf(t,o,e);return r!==o+i&&(s=Jf(t,r-o-i,h,e)),t.l=n,[h,s]}function E7(t,r,e,n){var i=t.l+r,s=Qf(t,n,e),o;return i!==t.l&&(o=Jf(t,i-t.l,s,e)),[s,o]}function T7(t,r,e){var n=t.l+r,i,s=t.read_shift(2),o=Qf(t,s,e);return s==65535?[[],Bn(t,r-2)]:(r!==s+2&&(i=Jf(t,n-s-2,o,e)),[o,i])}function S7(t){var r;if(Os(t,t.l+6)!==65535)return[Dn(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 k7(t){if(t==null){var r=nt(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 La(t);return La(0)}function Vh(t,r,e){var n=t.l+r,i=vs(t);e.biff==2&&++t.l;var s=S7(t),o=t.read_shift(1);e.biff!=2&&(t.read_shift(1),e.biff>=5&&t.read_shift(4));var h=_7(t,n-t.l,e);return{cell:i,val:s[0],formula:h,shared:o>>3&1,tt:s[1]}}function C7(t,r,e,n,i){var s=ja(r,e,i),o=k7(t.v),h=nt(6),c=33;h.write_shift(2,c),h.write_shift(4,0);for(var a=nt(t.bf.length),f=0;f<t.bf.length;++f)a[f]=t.bf[f];var l=xn([s,o,h,a]);return l}function Dc(t,r,e){var n=t.read_shift(4),i=Qf(t,n,e),s=t.read_shift(4),o=s>0?Jf(t,s,i,e):null;return[i,o]}var A7=Dc,Nc=Dc,F7=Dc,R7=Dc,M7={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"},lv={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"},I7={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 $1(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 O7(t){var r="of:="+t.replace(l0,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function Gh(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 D7(t){return t.replace(/\./,"!")}var Sf={},No={},kf=typeof Map<"u";function u0(t,r,e){var n=0,i=t.length;if(e){if(kf?e.has(r):Object.prototype.hasOwnProperty.call(e,r)){for(var s=kf?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&&(kf?(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 Pc(t,r){var e={min:t+1,max:t+1},n=-1;return r.MDW&&(On=r.MDW),r.width!=null?e.customWidth=1:r.wpx!=null?n=Lf(r.wpx):r.wch!=null&&(n=r.wch),n>-1?(e.width=Sc(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 Da(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 ua(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){Ns(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 cv(t,r,e,n,i,s){try{n.cellNF&&(t.z=Ht[r])}catch(h){if(n.WTF)throw h}if(!(t.t==="z"&&!n.cellStyles)){if(t.t==="d"&&typeof t.v=="string"&&(t.v=jr(t.v)),(!n||n.cellText!==!1)&&t.t!=="z")try{if(Ht[r]==null&&Ns(M8[r]||"General",r),t.t==="e")t.w=t.w||Hs[t.v];else if(r===0)if(t.t==="n")(t.v|0)===t.v?t.w=t.v.toString(10):t.w=Rf(t.v);else if(t.t==="d"){var o=Cn(t.v);(o|0)===o?t.w=o.toString(10):t.w=Rf(o)}else{if(t.v===void 0)return"";t.w=Pa(t.v,No)}else t.t==="d"?t.w=Bi(r,Cn(t.v),No):t.w=Bi(r,t.v,No)}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=Tc(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=Tc(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 N7(t,r,e){if(t&&t["!ref"]){var n=Er(t["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+e+"): "+t["!ref"])}}function P7(t,r){var e=Er(r);e.s.r<=e.e.r&&e.s.c<=e.e.c&&e.s.r>=0&&e.s.c>=0&&(t["!ref"]=cr(e))}var B7=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,L7=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,U7=/<(?:\w:)?hyperlink [^>]*>/mg,j7=/"(\w*:\w*)"/,H7=/<(?:\w:)?col\b[^>]*[\/]?>/g,W7=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,$7=/<(?:\w:)?pageMargins[^>]*\/>/g,hv=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,z7=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,X7=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function V7(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(L7);l?(a=t.slice(0,l.index),f=t.slice(l.index+l[0].length)):a=f=t;var u=a.match(hv);u?d0(u[0],h,i,e):(u=a.match(z7))&&K7(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(j7);m&&P7(h,m[1])}var d=a.match(X7);d&&d[1]&&oC(d[1],i);var v=[];if(r.cellStyles){var x=a.match(H7);x&&rC(v,x)}l&&cC(l[1],h,r,c,s,o);var g=f.match(W7);g&&(h["!autofilter"]=iC(g[0]));var w=[],y=f.match(B7);if(y)for(p=0;p!=y.length;++p)w[p]=Er(y[p].slice(y[p].indexOf('"')+1));var _=f.match(U7);_&&q7(h,_,n);var k=f.match($7);if(k&&(h["!margins"]=eC(Wt(k[0]))),!h["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(h["!ref"]=cr(c)),r.sheetRows>0&&h["!ref"]){var F=Er(h["!ref"]);r.sheetRows<=+F.e.r&&(F.e.r=r.sheetRows-1,F.e.r>c.e.r&&(F.e.r=c.e.r),F.e.r<F.s.r&&(F.s.r=F.e.r),F.e.c>c.e.c&&(F.e.c=c.e.c),F.e.c<F.s.c&&(F.s.c=F.e.c),h["!fullref"]=h["!ref"],h["!ref"]=cr(F))}return v.length>0&&(h["!cols"]=v),w.length>0&&(h["!merges"]=w),h}function G7(t){if(t.length===0)return"";for(var r='<mergeCells count="'+t.length+'">',e=0;e!=t.length;++e)r+='<mergeCell ref="'+cr(t[e])+'"/>';return r+"</mergeCells>"}function d0(t,r,e,n){var i=Wt(t);e.Sheets[n]||(e.Sheets[n]={}),i.codeName&&(e.Sheets[n].CodeName=vr(Fr(i.codeName)))}function K7(t,r,e,n,i){d0(t.slice(0,t.indexOf(">")),e,n,i)}function Y7(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=ds(Cr(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||"")+pt("outlinePr",null,a)}!s&&!h||(i[i.length]=pt("sheetPr",h,o))}var Z7=["objects","scenarios","selectLockedCells","selectUnlockedCells"],J7=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Q7(t){var r={sheet:1};return Z7.forEach(function(e){t[e]!=null&&t[e]&&(r[e]="1")}),J7.forEach(function(e){t[e]!=null&&!t[e]&&(r[e]="0")}),t.password&&(r.password=a0(t.password).toString(16).toUpperCase()),pt("sheetProtection",null,r)}function q7(t,r,e){for(var n=Array.isArray(t),i=0;i!=r.length;++i){var s=Wt(Fr(r[i]),!0);if(!s.ref)return;var o=((e||{})["!id"]||[])[s.id];o?(s.Target=o.Target,s.location&&(s.Target+="#"+vr(s.location))):(s.Target="#"+vr(s.location),o={Target:s.Target,TargetMode:"Internal"}),s.Rel=o,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var h=Er(s.ref),c=h.s.r;c<=h.e.r;++c)for(var a=h.s.c;a<=h.e.c;++a){var f=Vt({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 eC(t){var r={};return["left","right","top","bottom","header","footer"].forEach(function(e){t[e]&&(r[e]=parseFloat(t[e]))}),r}function tC(t){return Da(t),pt("pageMargins",null,t)}function rC(t,r){for(var e=!1,n=0;n!=r.length;++n){var i=Wt(r[n],!0);i.hidden&&(i.hidden=Pr(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,o0(i.width)),fa(i);s<=o;)t[s++]=Br(i)}}function nC(t,r){for(var e=["<cols>"],n,i=0;i!=r.length;++i)(n=r[i])&&(e[e.length]=pt("col",null,Pc(i,n)));return e[e.length]="</cols>",e.join("")}function iC(t){var r={ref:(t.match(/ref="([^"]*)"/)||[])[1]};return r}function sC(t,r,e,n){var i=typeof t.ref=="string"?t.ref:cr(t.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var s=e.Workbook.Names,o=Li(i);o.s.r==o.e.r&&(o.e.r=Li(r["!ref"]).e.r,i=cr(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}),pt("autoFilter",null,{ref:i})}var aC=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function oC(t,r){r.Views||(r.Views=[{}]),(t.match(aC)||[]).forEach(function(e,n){var i=Wt(e);r.Views[n]||(r.Views[n]={}),+i.zoomScale&&(r.Views[n].zoom=+i.zoomScale),Pr(i.rightToLeft)&&(r.Views[n].RTL=!0)})}function fC(t,r,e,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),pt("sheetViews",pt("sheetView",null,i),{})}function lC(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=Hs[t.v];break;case"d":n&&n.cellDates?i=jr(t.v,-1).toISOString():(t=Br(t),t.t="n",i=""+(t.v=Cn(jr(t.v)))),typeof t.z>"u"&&(t.z=Ht[14]);break;default:i=t.v;break}var h=kn("v",Cr(i)),c={r},a=ua(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=kn("v",""+u0(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=pt("f",Cr(t.f),f)+(t.v!=null?h:"")}return t.l&&e["!links"].push([r,t.l]),t.D&&(c.cm=1),pt("c",h,c)}var cC=function(){var t=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/,e=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,s=If("v"),o=If("f");return function(c,a,f,l,u,p){for(var m=0,d="",v=[],x=[],g=0,w=0,y=0,_="",k,F,O=0,N=0,U,z,W=0,X=0,J=Array.isArray(p.CellXf),H,I=[],M=[],E=Array.isArray(a),A=[],B={},L=!1,P=!!f.sheetStubs,R=c.split(r),C=0,S=R.length;C!=S;++C){d=R[C].trim();var D=d.length;if(D!==0){var V=0;e:for(m=0;m<D;++m)switch(d[m]){case">":if(d[m-1]!="/"){++m;break e}if(f&&f.cellStyles){if(F=Wt(d.slice(V,m),!0),O=F.r!=null?parseInt(F.r,10):O+1,N=-1,f.sheetRows&&f.sheetRows<O)continue;B={},L=!1,F.ht&&(L=!0,B.hpt=parseFloat(F.ht),B.hpx=Bo(B.hpt)),F.hidden=="1"&&(L=!0,B.hidden=!0),F.outlineLevel!=null&&(L=!0,B.level=+F.outlineLevel),L&&(A[O-1]=B)}break;case"<":V=m;break}if(V>=m)break;if(F=Wt(d.slice(V,m),!0),O=F.r!=null?parseInt(F.r,10):O+1,N=-1,!(f.sheetRows&&f.sheetRows<O)){l.s.r>O-1&&(l.s.r=O-1),l.e.r<O-1&&(l.e.r=O-1),f&&f.cellStyles&&(B={},L=!1,F.ht&&(L=!0,B.hpt=parseFloat(F.ht),B.hpx=Bo(B.hpt)),F.hidden=="1"&&(L=!0,B.hidden=!0),F.outlineLevel!=null&&(L=!0,B.level=+F.outlineLevel),L&&(A[O-1]=B)),v=d.slice(m).split(t);for(var te=0;te!=v.length&&v[te].trim().charAt(0)=="<";++te);for(v=v.slice(te),m=0;m!=v.length;++m)if(d=v[m].trim(),d.length!==0){if(x=d.match(e),g=m,w=0,y=0,d="<c "+(d.slice(0,1)=="<"?">":"")+d,x!=null&&x.length===2){for(g=0,_=x[1],w=0;w!=_.length&&!((y=_.charCodeAt(w)-64)<1||y>26);++w)g=26*g+y;--g,N=g}else++N;for(w=0;w!=d.length&&d.charCodeAt(w)!==62;++w);if(++w,F=Wt(d.slice(0,w),!0),F.r||(F.r=Vt({r:O-1,c:N})),_=d.slice(w),k={t:""},(x=_.match(s))!=null&&x[1]!==""&&(k.v=vr(x[1])),f.cellFormula){if((x=_.match(o))!=null&&x[1]!==""){if(k.f=vr(Fr(x[1])).replace(/\r\n/g,`
|
||
`),f.xlfn||(k.f=U1(k.f)),x[0].indexOf('t="array"')>-1)k.F=(_.match(i)||[])[1],k.F.indexOf(":")>-1&&I.push([Er(k.F),k.F]);else if(x[0].indexOf('t="shared"')>-1){z=Wt(x[0]);var oe=vr(Fr(x[1]));f.xlfn||(oe=U1(oe)),M[parseInt(z.si,10)]=[z,oe,F.r]}}else(x=_.match(/<f[^>]*\/>/))&&(z=Wt(x[0]),M[z.si]&&(k.f=a9(M[z.si][1],M[z.si][2],F.r)));var he=dn(F.r);for(w=0;w<I.length;++w)he.r>=I[w][0].s.r&&he.r<=I[w][0].e.r&&he.c>=I[w][0].s.c&&he.c<=I[w][0].e.c&&(k.F=I[w][1])}if(F.t==null&&k.v===void 0)if(k.f||k.F)k.v=0,k.t="n";else if(P)k.t="z";else continue;else k.t=F.t||"n";switch(l.s.c>N&&(l.s.c=N),l.e.c<N&&(l.e.c=N),k.t){case"n":if(k.v==""||k.v==null){if(!P)continue;k.t="z"}else k.v=parseFloat(k.v);break;case"s":if(typeof k.v>"u"){if(!P)continue;k.t="z"}else U=Sf[parseInt(k.v,10)],k.v=U.t,k.r=U.r,f.cellHTML&&(k.h=U.h);break;case"str":k.t="s",k.v=k.v!=null?Fr(k.v):"",f.cellHTML&&(k.h=Gu(k.v));break;case"inlineStr":x=_.match(n),k.t="s",x!=null&&(U=s0(x[1]))?(k.v=U.t,f.cellHTML&&(k.h=U.h)):k.v="";break;case"b":k.v=Pr(k.v);break;case"d":f.cellDates?k.v=jr(k.v,1):(k.v=Cn(jr(k.v,1)),k.t="n");break;case"e":(!f||f.cellText!==!1)&&(k.w=k.v),k.v=dg[k.v];break}if(W=X=0,H=null,J&&F.s!==void 0&&(H=p.CellXf[F.s],H!=null&&(H.numFmtId!=null&&(W=H.numFmtId),f.cellStyles&&H.fillId!=null&&(X=H.fillId))),cv(k,W,X,f,u,p),f.cellDates&&J&&k.t=="n"&&Uo(Ht[W])&&(k.t="d",k.v=Ic(k.v)),F.cm&&f.xlmeta){var Ne=(f.xlmeta.Cell||[])[+F.cm-1];Ne&&Ne.type=="XLDAPR"&&(k.D=!0)}if(E){var q=dn(F.r);a[q.r]||(a[q.r]=[]),a[q.r][q.c]=k}else a[F.r]=k}}}}A.length>0&&(a["!rows"]=A)}}();function hC(t,r,e,n){var i=[],s=[],o=Er(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]=an(u);for(l=o.s.r;l<=o.e.r;++l){for(s=[],a=wn(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=lC(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=Uf(v.hpx):v.hpt&&(x=v.hpt),x>-1&&(d.ht=x,d.customHeight=1),v.level&&(d.outlineLevel=v.level)),i[i.length]=pt("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=Uf(v.hpx):v.hpt&&(x=v.hpt),x>-1&&(d.ht=x,d.customHeight=1),v.level&&(d.outlineLevel=v.level),i[i.length]=pt("row","",d));return i.join("")}function uv(t,r,e,n){var i=[Qr,pt("worksheet",null,{xmlns:Wa[0],"xmlns:r":un.r})],s=e.SheetNames[t],o=0,h="",c=e.Sheets[s];c==null&&(c={});var a=c["!ref"]||"A1",f=Er(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=cr(f)}n||(n={}),c["!comments"]=[];var l=[];Y7(c,e,t,r,i),i[i.length]=pt("dimension",null,{ref:a}),i[i.length]=fC(c,r,t,e),r.sheetFormat&&(i[i.length]=pt("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]=nC(c,c["!cols"])),i[o=i.length]="<sheetData/>",c["!links"]=[],c["!ref"]!=null&&(h=hC(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]=Q7(c["!protect"])),c["!autofilter"]!=null&&(i[i.length]=sC(c["!autofilter"],c,e,t)),c["!merges"]!=null&&c["!merges"].length>0&&(i[i.length]=G7(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=kr(n,-1,Cr(d[1].Target).replace(/#.*$/,""),fr.HLINK),p["r:id"]="rId"+m),(u=d[1].Target.indexOf("#"))>-1&&(p.location=Cr(d[1].Target.slice(u+1))),d[1].Tooltip&&(p.tooltip=Cr(d[1].Tooltip)),i[i.length]=pt("hyperlink",null,p))}),i[i.length]="</hyperlinks>"),delete c["!links"],c["!margins"]!=null&&(i[i.length]=tC(c["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(i[i.length]=kn("ignoredErrors",pt("ignoredError",null,{numberStoredAsText:1,sqref:a}))),l.length>0&&(m=kr(n,-1,"../drawings/drawing"+(t+1)+".xml",fr.DRAW),i[i.length]=pt("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=l),c["!comments"].length>0&&(m=kr(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",fr.VML),i[i.length]=pt("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function uC(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 dC(t,r,e){var n=nt(145),i=(e["!rows"]||[])[t]||{};n.write_shift(4,t),n.write_shift(4,0);var s=320;i.hpx?s=Uf(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[Vt(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 pC(t,r,e,n){var i=dC(n,e,r);(i.length>17||(r["!rows"]||[])[n])&&ct(t,0,i)}var mC=Ga,gC=Ho;function vC(){}function xC(t,r){var e={},n=t[t.l];return++t.l,e.above=!(n&64),e.left=!(n&128),t.l+=18,e.name=y5(t),e}function bC(t,r,e){e==null&&(e=nt(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 yc({auto:1},e),e.write_shift(-4,-1),e.write_shift(-4,-1),fg(t,e),e.slice(0,e.l)}function wC(t){var r=Ui(t);return[r]}function yC(t,r,e){return e==null&&(e=nt(8)),za(r,e)}function _C(t){var r=Xa(t);return[r]}function EC(t,r,e){return e==null&&(e=nt(4)),Va(r,e)}function TC(t){var r=Ui(t),e=t.read_shift(1);return[r,e,"b"]}function SC(t,r,e){return e==null&&(e=nt(9)),za(r,e),e.write_shift(1,t.v?1:0),e}function kC(t){var r=Xa(t),e=t.read_shift(1);return[r,e,"b"]}function CC(t,r,e){return e==null&&(e=nt(5)),Va(r,e),e.write_shift(1,t.v?1:0),e}function AC(t){var r=Ui(t),e=t.read_shift(1);return[r,e,"e"]}function FC(t,r,e){return e==null&&(e=nt(9)),za(r,e),e.write_shift(1,t.v),e}function RC(t){var r=Xa(t),e=t.read_shift(1);return[r,e,"e"]}function MC(t,r,e){return e==null&&(e=nt(8)),Va(r,e),e.write_shift(1,t.v),e.write_shift(2,0),e.write_shift(1,0),e}function IC(t){var r=Ui(t),e=t.read_shift(4);return[r,e,"s"]}function OC(t,r,e){return e==null&&(e=nt(12)),za(r,e),e.write_shift(4,r.v),e}function DC(t){var r=Xa(t),e=t.read_shift(4);return[r,e,"s"]}function NC(t,r,e){return e==null&&(e=nt(8)),Va(r,e),e.write_shift(4,r.v),e}function PC(t){var r=Ui(t),e=Dn(t);return[r,e,"n"]}function BC(t,r,e){return e==null&&(e=nt(16)),za(r,e),La(t.v,e),e}function dv(t){var r=Xa(t),e=Dn(t);return[r,e,"n"]}function LC(t,r,e){return e==null&&(e=nt(12)),Va(r,e),La(t.v,e),e}function UC(t){var r=Ui(t),e=e0(t);return[r,e,"n"]}function jC(t,r,e){return e==null&&(e=nt(12)),za(r,e),lg(t.v,e),e}function HC(t){var r=Xa(t),e=e0(t);return[r,e,"n"]}function WC(t,r,e){return e==null&&(e=nt(8)),Va(r,e),lg(t.v,e),e}function $C(t){var r=Ui(t),e=Ju(t);return[r,e,"is"]}function zC(t){var r=Ui(t),e=Nn(t);return[r,e,"str"]}function XC(t,r,e){return e==null&&(e=nt(12+4*t.v.length)),za(r,e),bn(t.v,e),e.length>e.l?e.slice(0,e.l):e}function VC(t){var r=Xa(t),e=Nn(t);return[r,e,"str"]}function GC(t,r,e){return e==null&&(e=nt(8+4*t.v.length)),Va(r,e),bn(t.v,e),e.length>e.l?e.slice(0,e.l):e}function KC(t,r,e){var n=t.l+r,i=Ui(t);i.r=e["!row"];var s=t.read_shift(1),o=[i,s,"b"];if(e.cellFormula){t.l+=2;var h=Nc(t,n-t.l,e);o[3]=In(h,null,i,e.supbooks,e)}else t.l=n;return o}function YC(t,r,e){var n=t.l+r,i=Ui(t);i.r=e["!row"];var s=t.read_shift(1),o=[i,s,"e"];if(e.cellFormula){t.l+=2;var h=Nc(t,n-t.l,e);o[3]=In(h,null,i,e.supbooks,e)}else t.l=n;return o}function ZC(t,r,e){var n=t.l+r,i=Ui(t);i.r=e["!row"];var s=Dn(t),o=[i,s,"n"];if(e.cellFormula){t.l+=2;var h=Nc(t,n-t.l,e);o[3]=In(h,null,i,e.supbooks,e)}else t.l=n;return o}function JC(t,r,e){var n=t.l+r,i=Ui(t);i.r=e["!row"];var s=Nn(t),o=[i,s,"str"];if(e.cellFormula){t.l+=2;var h=Nc(t,n-t.l,e);o[3]=In(h,null,i,e.supbooks,e)}else t.l=n;return o}var QC=Ga,qC=Ho;function eA(t,r){return r==null&&(r=nt(4)),r.write_shift(4,t),r}function tA(t,r){var e=t.l+r,n=Ga(t),i=Qu(t),s=Nn(t),o=Nn(t),h=Nn(t);t.l=e;var c={rfx:n,relId:i,loc:s,display:h};return o&&(c.Tooltip=o),c}function rA(t,r){var e=nt(50+4*(t[1].Target.length+(t[1].Tooltip||"").length));Ho({s:dn(t[0]),e:dn(t[0])},e),qu("rId"+r,e);var n=t[1].Target.indexOf("#"),i=n==-1?"":t[1].Target.slice(n+1);return bn(i||"",e),bn(t[1].Tooltip||"",e),bn("",e),e.slice(0,e.l)}function nA(){}function iA(t,r,e){var n=t.l+r,i=cg(t),s=t.read_shift(1),o=[i];if(o[2]=s,e.cellFormula){var h=A7(t,n-t.l,e);o[1]=h}else t.l=n;return o}function sA(t,r,e){var n=t.l+r,i=Ga(t),s=[i];if(e.cellFormula){var o=R7(t,n-t.l,e);s[1]=o,t.l=n}else t.l=n;return s}function aA(t,r,e){e==null&&(e=nt(18));var n=Pc(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 pv=["left","right","top","bottom","header","footer"];function oA(t){var r={};return pv.forEach(function(e){r[e]=Dn(t)}),r}function fA(t,r){return r==null&&(r=nt(6*8)),Da(t),pv.forEach(function(e){La(t[e],r)}),r}function lA(t){var r=t.read_shift(2);return t.l+=28,{RTL:r&32}}function cA(t,r,e){e==null&&(e=nt(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 hA(t){var r=nt(24);return r.write_shift(4,4),r.write_shift(4,1),Ho(t,r),r}function uA(t,r){return r==null&&(r=nt(16*4+2)),r.write_shift(2,t.password?a0(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 dA(){}function pA(){}function mA(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,w,y,_,k=[];h.biff=12,h["!row"]=0;var F=0,O=!1,N=[],U={},z=h.supbooks||i.supbooks||[[]];if(z.sharedf=U,z.arrayf=N,z.SheetNames=i.SheetNames||i.Sheets.map(function(E){return E.name}),!h.supbooks&&(h.supbooks=z,i.Names))for(var W=0;W<i.Names.length;++W)z[0][W+1]=i.Names[W];var X=[],J=[],H=!1;jf[16]={n:"BrtShortReal",f:dv};var I;if(js(t,function(A,B,L){if(!u)switch(L){case 148:a=A;break;case 0:p=A,h.sheetRows&&h.sheetRows<=p.r&&(u=!0),y=wn(v=p.r),h["!row"]=p.r,(A.hidden||A.hpt||A.level!=null)&&(A.hpt&&(A.hpx=Bo(A.hpt)),J[A.r]=A);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:A[2]},A[2]){case"n":m.v=A[1];break;case"s":w=Sf[A[1]],m.v=w.t,m.r=w.r;break;case"b":m.v=!!A[1];break;case"e":m.v=A[1],h.cellText!==!1&&(m.w=Hs[m.v]);break;case"str":m.t="s",m.v=A[1];break;case"is":m.t="s",m.v=A[1].t;break}if((d=o.CellXf[A[0].iStyleRef])&&cv(m,d.numFmtId,null,h,s,o),x=A[0].c==-1?x+1:A[0].c,h.dense?(c[v]||(c[v]=[]),c[v][x]=m):c[an(x)+y]=m,h.cellFormula){for(O=!1,F=0;F<N.length;++F){var P=N[F];p.r>=P[0].s.r&&p.r<=P[0].e.r&&x>=P[0].s.c&&x<=P[0].e.c&&(m.F=cr(P[0]),O=!0)}!O&&A.length>3&&(m.f=A[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"&&Uo(Ht[d.numFmtId])){var R=Aa(m.v);R&&(m.t="d",m.v=new Date(R.y,R.m-1,R.d,R.H,R.M,R.S,R.u))}I&&(I.type=="XLDAPR"&&(m.D=!0),I=void 0);break;case 1:case 12:if(!h.sheetStubs||l)break;m={t:"z",v:void 0},x=A[0].c==-1?x+1:A[0].c,h.dense?(c[v]||(c[v]=[]),c[v][x]=m):c[an(x)+y]=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),I&&(I.type=="XLDAPR"&&(m.D=!0),I=void 0);break;case 176:k.push(A);break;case 49:I=((h.xlmeta||{}).Cell||[])[A-1];break;case 494:var C=n["!id"][A.relId];for(C?(A.Target=C.Target,A.loc&&(A.Target+="#"+A.loc),A.Rel=C):A.relId==""&&(A.Target="#"+A.loc),v=A.rfx.s.r;v<=A.rfx.e.r;++v)for(x=A.rfx.s.c;x<=A.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=A):(g=Vt({c:x,r:v}),c[g]||(c[g]={t:"z",v:void 0}),c[g].l=A);break;case 426:if(!h.cellFormula)break;N.push(A),_=h.dense?c[v][x]:c[an(x)+y],_.f=In(A[1],f,{r:p.r,c:x},z,h),_.F=cr(A[0]);break;case 427:if(!h.cellFormula)break;U[Vt(A[0].s)]=A[1],_=h.dense?c[v][x]:c[an(x)+y],_.f=In(A[1],f,{r:p.r,c:x},z,h);break;case 60:if(!h.cellStyles)break;for(;A.e>=A.s;)X[A.e--]={width:A.w/256,hidden:!!(A.flags&1),level:A.level},H||(H=!0,o0(A.w/256)),fa(X[A.e+1]);break;case 161:c["!autofilter"]={ref:cr(A)};break;case 476:c["!margins"]=A;break;case 147:i.Sheets[e]||(i.Sheets[e]={}),A.name&&(i.Sheets[e].CodeName=A.name),(A.above||A.left)&&(c["!outline"]={above:A.above,left:A.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),A.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(!B.T){if(!l||h.WTF)throw new Error("Unexpected record 0x"+L.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"]=cr(a||f)),h.sheetRows&&c["!ref"]){var M=Er(c["!ref"]);h.sheetRows<=+M.e.r&&(M.e.r=h.sheetRows-1,M.e.r>f.e.r&&(M.e.r=f.e.r),M.e.r<M.s.r&&(M.s.r=M.e.r),M.e.c>f.e.c&&(M.e.c=f.e.c),M.e.c<M.s.c&&(M.s.c=M.e.c),c["!fullref"]=c["!ref"],c["!ref"]=cr(M))}return k.length>0&&(c["!merges"]=k),X.length>0&&(c["!cols"]=X),J.length>0&&(c["!rows"]=J),c}function gA(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=Br(r),r.z=r.z||Ht[14],r.v=Cn(jr(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=ua(i.cellXfs,r,i),r.l&&s["!links"].push([Vt(c),r.l]),r.c&&s["!comments"].push([Vt(c),r.c]),r.t){case"s":case"str":return i.bookSST?(h=u0(i.Strings,r.v,i.revStrings),c.t="s",c.v=h,o?ct(t,18,NC(r,c)):ct(t,7,OC(r,c))):(c.t="str",o?ct(t,17,GC(r,c)):ct(t,6,XC(r,c))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?o?ct(t,13,WC(r,c)):ct(t,2,jC(r,c)):o?ct(t,16,LC(r,c)):ct(t,5,BC(r,c)),!0;case"b":return c.t="b",o?ct(t,15,CC(r,c)):ct(t,4,SC(r,c)),!0;case"e":return c.t="e",o?ct(t,14,MC(r,c)):ct(t,3,FC(r,c)),!0}return o?ct(t,12,EC(r,c)):ct(t,1,yC(r,c)),!0}function vA(t,r,e,n){var i=Er(r["!ref"]||"A1"),s,o="",h=[];ct(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=wn(f),pC(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]=an(u)),s=h[u]+o;var p=c?(r[f]||[])[u]:r[s];if(!p){l=!1;continue}l=gA(t,p,f,u,n,r,l)}}ct(t,146)}function xA(t,r){!r||!r["!merges"]||(ct(t,177,eA(r["!merges"].length)),r["!merges"].forEach(function(e){ct(t,176,qC(e))}),ct(t,178))}function bA(t,r){!r||!r["!cols"]||(ct(t,390),r["!cols"].forEach(function(e,n){e&&ct(t,60,aA(n,e))}),ct(t,391))}function wA(t,r){!r||!r["!ref"]||(ct(t,648),ct(t,649,hA(Er(r["!ref"]))),ct(t,650))}function yA(t,r,e){r["!links"].forEach(function(n){if(n[1].Target){var i=kr(e,-1,n[1].Target.replace(/#.*$/,""),fr.HLINK);ct(t,494,rA(n,i))}}),delete r["!links"]}function _A(t,r,e,n){if(r["!comments"].length>0){var i=kr(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",fr.VML);ct(t,551,qu("rId"+i)),r["!legacy"]=i}}function EA(t,r,e,n){if(r["!autofilter"]){var i=r["!autofilter"],s=typeof i.ref=="string"?i.ref:cr(i.ref);e.Workbook||(e.Workbook={Sheets:[]}),e.Workbook.Names||(e.Workbook.Names=[]);var o=e.Workbook.Names,h=Li(s);h.s.r==h.e.r&&(h.e.r=Li(r["!ref"]).e.r,s=cr(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}),ct(t,161,Ho(Er(s))),ct(t,162)}}function TA(t,r,e){ct(t,133),ct(t,137,cA(r,e)),ct(t,138),ct(t,134)}function SA(t,r){r["!protect"]&&ct(t,535,uA(r["!protect"]))}function kA(t,r,e,n){var i=si(),s=e.SheetNames[t],o=e.Sheets[s]||{},h=s;try{e&&e.Workbook&&(h=e.Workbook.Sheets[t].CodeName||h)}catch{}var c=Er(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"]=[],ct(i,129),(e.vbaraw||o["!outline"])&&ct(i,147,bC(h,o["!outline"])),ct(i,148,gC(c)),TA(i,o,e.Workbook),bA(i,o),vA(i,o,t,r),SA(i,o),EA(i,o,e,t),xA(i,o),yA(i,o,n),o["!margins"]&&ct(i,476,fA(o["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&wA(i,o),_A(i,o,t,n),ct(i,130),i.end()}function CA(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=vr((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 AA(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=CA(l);f.s.r=f.s.c=0,f.e.c=h,a=an(h),u[0].forEach(function(p,m){o[a+wn(m)]={t:"n",v:p,z:u[1]},c=m}),f.e.r<c&&(f.e.r=c),++h}),h>0&&(o["!ref"]=cr(f)),o}function FA(t,r,e,n,i){if(!t)return t;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o,h=t.match(hv);return h&&d0(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 RA(t,r){t.l+=10;var e=Nn(t);return{name:e}}function MA(t,r,e,n,i){if(!t)return t;n||(n={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},o=!1;return js(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 p0=[["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"]],IA=[["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"]],OA=[],DA=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function z1(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]]=Pr(n[s[0]]));break;case"int":typeof n[s[0]]=="string"&&(n[s[0]]=parseInt(n[s[0]],10));break}}}function X1(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]]=Pr(t[n[0]]));break;case"int":typeof t[n[0]]=="string"&&(t[n[0]]=parseInt(t[n[0]],10));break}}}function mv(t){X1(t.WBProps,p0),X1(t.CalcPr,DA),z1(t.WBView,IA),z1(t.Sheets,OA),No.date1904=Pr(t.WBProps.date1904)}function NA(t){return!t.Workbook||!t.Workbook.WBProps?"false":Pr(t.Workbook.WBProps.date1904)?"true":"false"}var PA="][*?/\\".split("");function gv(t,r){if(t.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var e=!0;return PA.forEach(function(n){if(t.indexOf(n)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");e=!1}}),e}function BA(t,r,e){t.forEach(function(n,i){gv(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 LA(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||[];BA(t.SheetNames,r,!!t.vbaraw);for(var e=0;e<t.SheetNames.length;++e)N7(t.Sheets[t.SheetNames[e]],t.SheetNames[e],e)}var UA=/<\w+:workbook/;function jA(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(Ln,function(c,a){var f=Wt(c);switch(gs(f[0])){case"<?xml":break;case"<workbook":c.match(UA)&&(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/>":p0.forEach(function(l){if(f[l[0]]!=null)switch(l[2]){case"bool":e.WBProps[l[0]]=Pr(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=Fr(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=vr(Fr(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=Fr(f.name),f.comment&&(s.Comment=f.comment),f.localSheetId&&(s.Sheet=+f.localSheetId),Pr(f.hidden||"0")&&(s.Hidden=!0),o=a+c.length;break;case"</definedName>":s.Ref=vr(Fr(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}),Wa.indexOf(e.xmlns)===-1)throw new Error("Unknown Namespace: "+e.xmlns);return mv(e),e}function vv(t){var r=[Qr];r[r.length]=pt("workbook",null,{xmlns:Wa[0],"xmlns:r":un.r});var e=t.Workbook&&(t.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};t.Workbook&&t.Workbook.WBProps&&(p0.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]=pt("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:Cr(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]=pt("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]=pt("definedName",Cr(h.Ref),c))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function HA(t,r){var e={};return e.Hidden=t.read_shift(4),e.iTabID=t.read_shift(4),e.strRelID=mu(t),e.name=Nn(t),e}function WA(t,r){return r||(r=nt(127)),r.write_shift(4,t.Hidden),r.write_shift(4,t.iTabID),qu(t.strRelID,r),bn(t.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function $A(t,r){var e={},n=t.read_shift(4);e.defaultThemeVersion=t.read_shift(4);var i=r>8?Nn(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 zA(t,r){r||(r=nt(72));var e=0;return t&&t.filterPrivacy&&(e|=8),r.write_shift(4,e),r.write_shift(4,0),fg(t&&t.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function XA(t,r){var e={};return t.read_shift(4),e.ArchID=t.read_shift(4),t.l+=r-8,e}function VA(t,r,e){var n=t.l+r;t.l+=4,t.l+=1;var i=t.read_shift(4),s=_5(t),o=F7(t,0,e),h=Qu(t);t.l=n;var c={Name:s,Ptg:o};return i<268435455&&(c.Sheet=i),h&&(c.Comment=h),c}function GA(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=[],jf[16]={n:"BrtFRTArchID$",f:XA},js(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=In(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),mv(e),e.Names=s,e.supbooks=o,e}function KA(t,r){ct(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]};ct(t,156,WA(i))}ct(t,144)}function YA(t,r){r||(r=nt(127));for(var e=0;e!=4;++e)r.write_shift(4,0);return bn("SheetJS",r),bn(pc.version,r),bn(pc.version,r),bn("7262",r),r.length>r.l?r.slice(0,r.l):r}function ZA(t,r){r||(r=nt(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 JA(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||(ct(t,135),ct(t,158,ZA(i)),ct(t,136))}}function QA(t,r){var e=si();return ct(e,131),ct(e,128,YA()),ct(e,153,zA(t.Workbook&&t.Workbook.WBProps||null)),JA(e,t),KA(e,t),ct(e,132),e.end()}function qA(t,r,e){return r.slice(-4)===".bin"?GA(t,e):jA(t,e)}function eF(t,r,e,n,i,s,o,h){return r.slice(-4)===".bin"?mA(t,n,e,i,s,o,h):V7(t,n,e,i,s,o,h)}function tF(t,r,e,n,i,s,o,h){return r.slice(-4)===".bin"?MA(t,n,e,i,s):FA(t,n,e,i,s)}function rF(t,r,e,n,i,s,o,h){return r.slice(-4)===".bin"?i9():s9()}function nF(t,r,e,n,i,s,o,h){return r.slice(-4)===".bin"?r9():n9()}function iF(t,r,e,n){return r.slice(-4)===".bin"?qS(t,e,n):HS(t,e,n)}function sF(t,r,e){return Jg(t,e)}function aF(t,r,e){return r.slice(-4)===".bin"?aS(t,e):nS(t,e)}function oF(t,r,e){return r.slice(-4)===".bin"?Jk(t,e):Wk(t,e)}function fF(t,r,e){return r.slice(-4)===".bin"?Uk(t):Bk(t)}function lF(t,r,e,n){return e.slice(-4)===".bin"?jk(t,r,e,n):void 0}function cF(t,r,e){return r.slice(-4)===".bin"?Dk(t,r,e):Pk(t,r,e)}function hF(t,r,e){return(r.slice(-4)===".bin"?QA:vv)(t)}function uF(t,r,e,n,i){return(r.slice(-4)===".bin"?kA:uv)(t,e,n,i)}function dF(t,r,e){return(r.slice(-4)===".bin"?lk:Yg)(t,e)}function pF(t,r,e){return(r.slice(-4)===".bin"?lS:Hg)(t,e)}function mF(t,r,e){return(r.slice(-4)===".bin"?Qk:ev)(t)}function gF(t){return(t.slice(-4)===".bin"?Nk:Qg)()}var xv=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,bv=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function Ji(t,r){var e=t.split(/\s+/),n=[];if(r||(n[0]=e[0]),e.length===1)return n;var i=t.match(xv),s,o,h,c;if(i)for(c=0;c!=i.length;++c)s=i[c].match(bv),(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 vF(t){var r=t.split(/\s+/),e={};if(r.length===1)return e;var n=t.match(xv),i,s,o,h;if(n)for(h=0;h!=n.length;++h)i=n[h].match(bv),(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 Cf;function xF(t,r){var e=Cf[t]||vr(t);return e==="General"?Pa(r):Bi(e,r)}function bF(t,r,e,n){var i=n;switch((e[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=Pr(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=jr(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+e[0])}t[vr(r)]=i}function wF(t,r,e){if(t.t!=="z"){if(!e||e.cellText!==!1)try{t.t==="e"?t.w=t.w||Hs[t.v]:r==="General"?t.t==="n"?(t.v|0)===t.v?t.w=t.v.toString(10):t.w=Rf(t.v):t.w=Pa(t.v):t.w=xF(r||"General",t.v)}catch(s){if(e.WTF)throw s}try{var n=Cf[r]||r||"General";if(e.cellNF&&(t.z=n),e.cellDates&&t.t=="n"&&Uo(n)){var i=Aa(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 yF(t,r,e){if(e.cellStyles&&r.Interior){var n=r.Interior;n.Pattern&&(n.patternType=OS[n.Pattern]||n.Pattern)}t[r.ID]=r}function _F(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=Pr(t);break;case"String":n.t="s",n.r=f1(vr(t)),n.v=t.indexOf("<")>-1?vr(r||t).replace(/<.*?>/g,""):n.r;break;case"DateTime":t.slice(-1)!="Z"&&(t+="Z"),n.v=(jr(t)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=vr(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=dg[t],a.cellText!==!1&&(n.w=t);break;default:t==""&&r==""?n.t="z":(n.t="s",n.v=f1(r||t));break}if(wF(n,f,a),a.cellFormula!==!1)if(n.Formula){var d=vr(n.Formula);d.charCodeAt(0)==61&&(d=d.slice(1)),n.f=Do(d,i),delete n.Formula,n.ArrayRange=="RC"?n.F=Do("RC:RC",i):n.ArrayRange&&(n.F=Do(n.ArrayRange,i),c.push([Er(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 EF(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 Kh(t,r){var e=r||{};jo();var n=xf(Ku(t));(e.type=="binary"||e.type=="array"||e.type=="base64")&&(n=Fr(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=Br(e);return o.type="string",Po.to_workbook(n,o)}if(i.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(ce){i.indexOf("<"+ce)>=0&&(s=!0)}),s)return fR(n,e);Cf={"General Number":"General","General Date":Ht[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Ht[15],"Short Date":Ht[14],"Long Time":Ht[19],"Medium Time":Ht[18],"Short Time":Ht[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Ht[2],Standard:Ht[4],Percent:Ht[10],Scientific:Ht[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=Ji('<Data ss:Type="String">'),x=0,g=0,w=0,y={s:{r:2e6,c:2e6},e:{r:0,c:0}},_={},k={},F="",O=0,N=[],U={},z={},W=0,X=[],J=[],H={},I=[],M,E=!1,A=[],B=[],L={},P=0,R=0,C={Sheets:[],WBProps:{date1904:!1}},S={};Df.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var D="";h=Df.exec(n);)switch(h[3]=(D=h[3]).toLowerCase()){case"data":if(D=="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]==="/"?_F(n.slice(x,h.index),F,v,c[c.length-1][0]=="comment"?H:m,{c:g,r:w},_,I[g],d,A,e):(F="",v=Ji(h[0]),x=h.index+h[0].length);break;case"cell":if(h[1]==="/")if(J.length>0&&(m.c=J),(!e.sheetRows||e.sheetRows>w)&&m.v!==void 0&&(e.dense?(u[w]||(u[w]=[]),u[w][g]=m):u[an(g)+wn(w)]=m),m.HRef&&(m.l={Target:vr(m.HRef)},m.HRefScreenTip&&(m.l.Tooltip=m.HRefScreenTip),delete m.HRef,delete m.HRefScreenTip),(m.MergeAcross||m.MergeDown)&&(P=g+(parseInt(m.MergeAcross,10)|0),R=w+(parseInt(m.MergeDown,10)|0),N.push({s:{c:g,r:w},e:{c:P,r:R}})),!e.sheetStubs)m.MergeAcross?g=P+1:++g;else if(m.MergeAcross||m.MergeDown){for(var V=g;V<=P;++V)for(var te=w;te<=R;++te)(V>g||te>w)&&(e.dense?(u[te]||(u[te]=[]),u[te][V]={t:"z"}):u[an(V)+wn(te)]={t:"z"});g=P+1}else++g;else m=vF(h[0]),m.Index&&(g=+m.Index-1),g<y.s.c&&(y.s.c=g),g>y.e.c&&(y.e.c=g),h[0].slice(-2)==="/>"&&++g,J=[];break;case"row":h[1]==="/"||h[0].slice(-2)==="/>"?(w<y.s.r&&(y.s.r=w),w>y.e.r&&(y.e.r=w),h[0].slice(-2)==="/>"&&(d=Ji(h[0]),d.Index&&(w=+d.Index-1)),g=0,++w):(d=Ji(h[0]),d.Index&&(w=+d.Index-1),L={},(d.AutoFitHeight=="0"||d.Height)&&(L.hpx=parseInt(d.Height,10),L.hpt=Uf(L.hpx),B[w]=L),d.Hidden=="1"&&(L.hidden=!0,B[w]=L));break;case"worksheet":if(h[1]==="/"){if((a=c.pop())[0]!==h[3])throw new Error("Bad state: "+a.join("|"));l.push(p),y.s.r<=y.e.r&&y.s.c<=y.e.c&&(u["!ref"]=cr(y),e.sheetRows&&e.sheetRows<=y.e.r&&(u["!fullref"]=u["!ref"],y.e.r=e.sheetRows-1,u["!ref"]=cr(y))),N.length&&(u["!merges"]=N),I.length>0&&(u["!cols"]=I),B.length>0&&(u["!rows"]=B),f[p]=u}else y={s:{r:2e6,c:2e6},e:{r:0,c:0}},w=g=0,c.push([h[3],!1]),a=Ji(h[0]),p=vr(a.Name),u=e.dense?[]:{},N=[],A=[],B=[],S={name:p,Hidden:0},C.Sheets.push(S);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]),I=[],E=!1}break;case"style":h[1]==="/"?yF(_,k,e):k=Ji(h[0]);break;case"numberformat":k.nf=vr(Ji(h[0]).Format||"General"),Cf[k.nf]&&(k.nf=Cf[k.nf]);for(var oe=0;oe!=392&&Ht[oe]!=k.nf;++oe);if(oe==392){for(oe=57;oe!=392;++oe)if(Ht[oe]==null){Ns(k.nf,oe);break}}break;case"column":if(c[c.length-1][0]!=="table")break;if(M=Ji(h[0]),M.Hidden&&(M.hidden=!0,delete M.Hidden),M.Width&&(M.wpx=parseInt(M.Width,10)),!E&&M.wpx>10){E=!0,On=Gg;for(var he=0;he<I.length;++he)I[he]&&fa(I[he])}E&&fa(M),I[M.Index-1||I.length]=M;for(var Ne=0;Ne<+M.Span;++Ne)I[I.length]=Br(M);break;case"namedrange":if(h[1]==="/")break;C.Names||(C.Names=[]);var q=Wt(h[0]),ne={Name:q.Name,Ref:Do(q.RefersTo.slice(1),{r:0,c:0})};C.Sheets.length>0&&(ne.Sheet=C.Sheets.length-1),C.Names.push(ne);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]==="/"?F+=n.slice(O,h.index):O=h.index+h[0].length;break;case"interior":if(!e.cellStyles)break;k.Interior=Ji(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]==="/"?G5(U,D,n.slice(W,h.index)):W=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("|"));EF(H),J.push(H)}else c.push([h[3],!1]),a=Ji(h[0]),H={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 Q=Ji(h[0]);u["!autofilter"]={ref:Do(Q.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 Y1(n,e);var re=!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:re=!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:re=!1}break;case"excelworkbook":switch(h[3]){case"date1904":C.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:re=!1}break;case"workbookoptions":switch(h[3]){case"owcversion":break;case"height":break;case"width":break;default:re=!1}break;case"worksheetoptions":switch(h[3]){case"visible":if(h[0].slice(-2)!=="/>")if(h[1]==="/")switch(n.slice(W,h.index)){case"SheetHidden":S.Hidden=1;break;case"SheetVeryHidden":S.Hidden=2;break}else W=h.index+h[0].length;break;case"header":u["!margins"]||Da(u["!margins"]={},"xlml"),isNaN(+Wt(h[0]).Margin)||(u["!margins"].header=+Wt(h[0]).Margin);break;case"footer":u["!margins"]||Da(u["!margins"]={},"xlml"),isNaN(+Wt(h[0]).Margin)||(u["!margins"].footer=+Wt(h[0]).Margin);break;case"pagemargins":var ve=Wt(h[0]);u["!margins"]||Da(u["!margins"]={},"xlml"),isNaN(+ve.Top)||(u["!margins"].top=+ve.Top),isNaN(+ve.Left)||(u["!margins"].left=+ve.Left),isNaN(+ve.Right)||(u["!margins"].right=+ve.Right),isNaN(+ve.Bottom)||(u["!margins"].bottom=+ve.Bottom);break;case"displayrighttoleft":C.Views||(C.Views=[]),C.Views[0]||(C.Views[0]={}),C.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:re=!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:re=!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:re=!1}break;case"autofilter":switch(h[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:re=!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:re=!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:re=!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:re=!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:re=!1}break;case"smarttags":break;default:re=!1;break}if(re||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]==="/"?bF(z,D,X,n.slice(W,h.index)):(X=h,W=h.index+h[0].length);break}if(e.WTF)throw"Unrecognized tag: "+h[3]+"|"+c.join("|")}var Ce={};return!e.bookSheets&&!e.bookProps&&(Ce.Sheets=f),Ce.SheetNames=l,Ce.Workbook=C,Ce.SSF=Br(Ht),Ce.Props=U,Ce.Custprops=z,Ce}function _u(t,r){switch(g0(r=r||{}),r.type||"base64"){case"base64":return Kh(wi(t),r);case"binary":case"buffer":case"file":return Kh(t,r);case"array":return Kh(ha(t),r)}}function TF(t,r){var e=[];return t.Props&&e.push(K5(t.Props,r)),t.Custprops&&e.push(Y5(t.Props,t.Custprops)),e.join("")}function SF(){return""}function kF(t,r){var e=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return r.cellXfs.forEach(function(n,i){var s=[];s.push(pt("NumberFormat",null,{"ss:Format":Cr(Ht[n.numFmtId])}));var o={"ss:ID":"s"+(21+i)};e.push(pt("Style",s.join(""),o))}),pt("Styles",e.join(""))}function wv(t){return pt("NamedRange",null,{"ss:Name":t.Name,"ss:RefersTo":"="+c0(t.Ref,{r:0,c:0})})}function CF(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(wv(i)))}return pt("Names",e.join(""))}function AF(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(wv(h)))}return s.join("")}function FF(t,r,e,n){if(!t)return"";var i=[];if(t["!margins"]&&(i.push("<PageSetup>"),t["!margins"].header&&i.push(pt("Header",null,{"x:Margin":t["!margins"].header})),t["!margins"].footer&&i.push(pt("Footer",null,{"x:Margin":t["!margins"].footer})),i.push(pt("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(pt("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(kn("ProtectContents","True")),t["!protect"].objects&&i.push(kn("ProtectObjects","True")),t["!protect"].scenarios&&i.push(kn("ProtectScenarios","True")),t["!protect"].selectLockedCells!=null&&!t["!protect"].selectLockedCells?i.push(kn("EnableSelection","NoSelection")):t["!protect"].selectUnlockedCells!=null&&!t["!protect"].selectUnlockedCells&&i.push(kn("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?"":pt("WorksheetOptions",i.join(""),{xmlns:gi.x})}function RF(t){return t.map(function(r){var e=Z8(r.t||""),n=pt("ss:Data",e,{xmlns:"http://www.w3.org/TR/REC-html40"});return pt("Comment",n,{"ss:Author":r.a})}).join("")}function MF(t,r,e,n,i,s,o){if(!t||t.v==null&&t.f==null)return"";var h={};if(t.f&&(h["ss:Formula"]="="+Cr(c0(t.f,o))),t.F&&t.F.slice(0,r.length)==r){var c=dn(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"]=Cr(t.l.Target),t.l.Tooltip&&(h["x:HRefScreenTip"]=Cr(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=Hs[t.v];break;case"d":l="DateTime",u=new Date(t.v).toISOString(),t.z==null&&(t.z=t.z||Ht[14]);break;case"s":l="String",u=Y8(t.v||"");break}var p=ua(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+=RF(t.c)),pt("Cell",d,h)}function IF(t,r){var e='<Row ss:Index="'+(t+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=Bo(r.hpt)),r.hpx&&(e+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(e+=' ss:Hidden="1"')),e+">"}function OF(t,r,e,n){if(!t["!ref"])return"";var i=Er(t["!ref"]),s=t["!merges"]||[],o=0,h=[];t["!cols"]&&t["!cols"].forEach(function(v,x){fa(v);var g=!!v.width,w=Pc(x,v),y={"ss:Index":x+1};g&&(y["ss:Width"]=Bf(w.width)),v.hidden&&(y["ss:Hidden"]="1"),h.push(pt("Column",null,y))});for(var c=Array.isArray(t),a=i.s.r;a<=i.e.r;++a){for(var f=[IF(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=Vt(p),d=c?(t[a]||[])[l]:t[m];f.push(MF(d,m,t,r,e,n,p))}}f.push("</Row>"),f.length>2&&h.push(f.join(""))}return h.join("")}function DF(t,r,e){var n=[],i=e.SheetNames[t],s=e.Sheets[i],o=s?AF(s,r,t,e):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=s?OF(s,r,t,e):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(FF(s,r,t,e)),n.join("")}function NF(t,r){r||(r={}),t.SSF||(t.SSF=Br(Ht)),t.SSF&&(jo(),Fc(t.SSF),r.revssf=Mc(t.SSF),r.revssf[t.SSF[65535]]=0,r.ssf=t.SSF,r.cellXfs=[],ua(r.cellXfs,{},{revssf:{General:0}}));var e=[];e.push(TF(t,r)),e.push(SF()),e.push(""),e.push("");for(var n=0;n<t.SheetNames.length;++n)e.push(pt("Worksheet",DF(n,r,t),{"ss:Name":Cr(t.SheetNames[n])}));return e[2]=kF(t,r),e[3]=CF(t),Qr+pt("Workbook",e.join(""),{xmlns:gi.ss,"xmlns:o":gi.o,"xmlns:x":gi.x,"xmlns:ss":gi.ss,"xmlns:dt":gi.dt,"xmlns:html":gi.html})}function PF(t){var r={},e=t.content;if(e.l=28,r.AnsiUserType=e.read_shift(0,"lpstr-ansi"),r.AnsiClipboardFormat=C5(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=A5(e),n=e.read_shift(4),n==0||n>40))return r;e.l-=4,r.Reserved2=e.read_shift(0,"lpwstr")}var BF=[60,1084,2066,2165,2175];function LF(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=Os(e,e.l),a=Eu[c],f=0;a!=null&&BF.indexOf(c)>-1;)s=Os(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=Eu[c=Os(e,e.l)];var l=xn(o);Sn(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 ls(t,r,e){if(t.t!=="z"&&t.XF){var n=0;try{n=t.z||t.XF.numFmtId||0,r.cellNF&&(t.z=Ht[n])}catch(s){if(r.WTF)throw s}if(!r||r.cellText!==!1)try{t.t==="e"?t.w=t.w||Hs[t.v]:n===0||n=="General"?t.t==="n"?(t.v|0)===t.v?t.w=t.v.toString(10):t.w=Rf(t.v):t.w=Pa(t.v):t.w=Bi(n,t.v,{date1904:!!e,dateNF:r&&r.dateNF})}catch(s){if(r.WTF)throw s}if(r.cellDates&&n&&t.t=="n"&&Uo(Ht[n]||String(n))){var i=Aa(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 ql(t,r,e){return{v:t,ixfe:r,t:e}}function UF(t,r){var e={opts:{}},n={},i=r.dense?[]:{},s={},o={},h=null,c=[],a="",f={},l,u="",p,m,d,v,x={},g=[],w,y,_=[],k=[],F={Sheets:[],WBProps:{date1904:!1},Views:[{}]},O={},N=function(we){return we<8?Ma[we]:we<64&&k[we-8]||Ma[we]},U=function(we,Fe,Ue){var Pe=Fe.XF.data;if(!(!Pe||!Pe.patternType||!Ue||!Ue.cellStyles)){Fe.s={},Fe.s.patternType=Pe.patternType;var $e;($e=Pf(N(Pe.icvFore)))&&(Fe.s.fgColor={rgb:$e}),($e=Pf(N(Pe.icvBack)))&&(Fe.s.bgColor={rgb:$e})}},z=function(we,Fe,Ue){if(!(L>1)&&!(Ue.sheetRows&&we.r>=Ue.sheetRows)){if(Ue.cellStyles&&Fe.XF&&Fe.XF.data&&U(we,Fe,Ue),delete Fe.ixfe,delete Fe.XF,l=we,u=Vt(we),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),we.r<o.s.r&&(o.s.r=we.r),we.c<o.s.c&&(o.s.c=we.c),we.r+1>o.e.r&&(o.e.r=we.r+1),we.c+1>o.e.c&&(o.e.c=we.c+1),Ue.cellFormula&&Fe.f){for(var Pe=0;Pe<g.length;++Pe)if(!(g[Pe][0].s.c>we.c||g[Pe][0].s.r>we.r)&&!(g[Pe][0].e.c<we.c||g[Pe][0].e.r<we.r)){Fe.F=cr(g[Pe][0]),(g[Pe][0].s.c!=we.c||g[Pe][0].s.r!=we.r)&&delete Fe.f,Fe.f&&(Fe.f=""+In(g[Pe][1],o,we,A,W));break}}Ue.dense?(i[we.r]||(i[we.r]=[]),i[we.r][we.c]=Fe):i[u]=Fe}},W={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&&(W.password=r.password);var X,J=[],H=[],I=[],M=[],E=!1,A=[];A.SheetNames=W.snames,A.sharedf=W.sharedf,A.arrayf=W.arrayf,A.names=[],A.XTI=[];var B=0,L=0,P=0,R=[],C=[],S;W.codepage=1200,es(1200);for(var D=!1;t.l<t.length-1;){var V=t.l,te=t.read_shift(2);if(te===0&&B===10)break;var oe=t.l===t.length?0:t.read_shift(2),he=Eu[te];if(he&&he.f){if(r.bookSheets&&B===133&&te!==133)break;if(B=te,he.r===2||he.r==12){var Ne=t.read_shift(2);if(oe-=2,!W.enc&&Ne!==te&&((Ne&255)<<8|Ne>>8)!==te)throw new Error("rt mismatch: "+Ne+"!="+te);he.r==12&&(t.l+=10,oe-=10)}var q={};if(te===10?q=he.f(t,oe,W):q=LF(te,he,t,oe,W),L==0&&[9,521,1033,2057].indexOf(B)===-1)continue;switch(te){case 34:e.opts.Date1904=F.WBProps.date1904=q;break;case 134:e.opts.WriteProtect=!0;break;case 47:if(W.enc||(t.l=0),W.enc=q,!r.password)throw new Error("File is password-protected");if(q.valid==null)throw new Error("Encryption scheme unsupported");if(!q.valid)throw new Error("Password is incorrect");break;case 92:W.lastuser=q;break;case 66:var ne=Number(q);switch(ne){case 21010:ne=1200;break;case 32768:ne=1e4;break;case 32769:ne=1252;break}es(W.codepage=ne),D=!0;break;case 317:W.rrtabid=q;break;case 25:W.winlocked=q;break;case 439:e.opts.RefreshAll=q;break;case 12:e.opts.CalcCount=q;break;case 16:e.opts.CalcDelta=q;break;case 17:e.opts.CalcIter=q;break;case 13:e.opts.CalcMode=q;break;case 14:e.opts.CalcPrecision=q;break;case 95:e.opts.CalcSaveRecalc=q;break;case 15:W.CalcRefMode=q;break;case 2211:e.opts.FullCalc=q;break;case 129:q.fDialog&&(i["!type"]="dialog"),q.fBelow||((i["!outline"]||(i["!outline"]={})).above=!0),q.fRight||((i["!outline"]||(i["!outline"]={})).left=!0);break;case 224:_.push(q);break;case 430:A.push([q]),A[A.length-1].XTI=[];break;case 35:case 547:A[A.length-1].push(q);break;case 24:case 536:S={Name:q.Name,Ref:In(q.rgce,o,null,A,W)},q.itab>0&&(S.Sheet=q.itab-1),A.names.push(S),A[0]||(A[0]=[],A[0].XTI=[]),A[A.length-1].push(q),q.Name=="_xlnm._FilterDatabase"&&q.itab>0&&q.rgce&&q.rgce[0]&&q.rgce[0][0]&&q.rgce[0][0][0]=="PtgArea3d"&&(C[q.itab-1]={ref:cr(q.rgce[0][0][1][2])});break;case 22:W.ExternCount=q;break;case 23:A.length==0&&(A[0]=[],A[0].XTI=[]),A[A.length-1].XTI=A[A.length-1].XTI.concat(q),A.XTI=A.XTI.concat(q);break;case 2196:if(W.biff<8)break;S!=null&&(S.Comment=q[1]);break;case 18:i["!protect"]=q;break;case 19:q!==0&&W.WTF&&console.error("Password verifier: "+q);break;case 133:s[q.pos]=q,W.snames.push(q.name);break;case 10:{if(--L)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,i["!ref"]=cr(o),r.sheetRows&&r.sheetRows<=o.e.r){var Q=o.e.r;o.e.r=r.sheetRows-1,i["!fullref"]=i["!ref"],i["!ref"]=cr(o),o.e.r=Q}o.e.r++,o.e.c++}J.length>0&&(i["!merges"]=J),H.length>0&&(i["!objects"]=H),I.length>0&&(i["!cols"]=I),M.length>0&&(i["!rows"]=M),F.Sheets.push(O)}a===""?f=i:n[a]=i,i=r.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(W.biff===8&&(W.biff={9:2,521:3,1033:4}[te]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[q.BIFFVer]||8),W.biffguess=q.BIFFVer==0,q.BIFFVer==0&&q.dt==4096&&(W.biff=5,D=!0,es(W.codepage=28591)),W.biff==8&&q.BIFFVer==0&&q.dt==16&&(W.biff=2),L++)break;if(i=r.dense?[]:{},W.biff<8&&!D&&(D=!0,es(W.codepage=r.codepage||1252)),W.biff<5||q.BIFFVer==0&&q.dt==4096){a===""&&(a="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var re={pos:t.l-oe,name:a};s[re.pos]=re,W.snames.push(a)}else a=(s[V]||{name:""}).name;q.dt==32&&(i["!type"]="chart"),q.dt==64&&(i["!type"]="macro"),J=[],H=[],W.arrayf=g=[],I=[],M=[],E=!1,O={Hidden:(s[V]||{hs:0}).hs,name:a}}break;case 515:case 3:case 2:i["!type"]=="chart"&&(r.dense?(i[q.r]||[])[q.c]:i[Vt({c:q.c,r:q.r})])&&++q.c,w={ixfe:q.ixfe,XF:_[q.ixfe]||{},v:q.val,t:"n"},P>0&&(w.z=R[w.ixfe>>8&63]),ls(w,r,e.opts.Date1904),z({c:q.c,r:q.r},w,r);break;case 5:case 517:w={ixfe:q.ixfe,XF:_[q.ixfe],v:q.val,t:q.t},P>0&&(w.z=R[w.ixfe>>8&63]),ls(w,r,e.opts.Date1904),z({c:q.c,r:q.r},w,r);break;case 638:w={ixfe:q.ixfe,XF:_[q.ixfe],v:q.rknum,t:"n"},P>0&&(w.z=R[w.ixfe>>8&63]),ls(w,r,e.opts.Date1904),z({c:q.c,r:q.r},w,r);break;case 189:for(var ve=q.c;ve<=q.C;++ve){var Ce=q.rkrec[ve-q.c][0];w={ixfe:Ce,XF:_[Ce],v:q.rkrec[ve-q.c][1],t:"n"},P>0&&(w.z=R[w.ixfe>>8&63]),ls(w,r,e.opts.Date1904),z({c:ve,r:q.r},w,r)}break;case 6:case 518:case 1030:{if(q.val=="String"){h=q;break}if(w=ql(q.val,q.cell.ixfe,q.tt),w.XF=_[w.ixfe],r.cellFormula){var ce=q.formula;if(ce&&ce[0]&&ce[0][0]&&ce[0][0][0]=="PtgExp"){var se=ce[0][0][1][0],ee=ce[0][0][1][1],G=Vt({r:se,c:ee});x[G]?w.f=""+In(q.formula,o,q.cell,A,W):w.F=((r.dense?(i[se]||[])[ee]:i[G])||{}).F}else w.f=""+In(q.formula,o,q.cell,A,W)}P>0&&(w.z=R[w.ixfe>>8&63]),ls(w,r,e.opts.Date1904),z(q.cell,w,r),h=q}break;case 7:case 519:if(h)h.val=q,w=ql(q,h.cell.ixfe,"s"),w.XF=_[w.ixfe],r.cellFormula&&(w.f=""+In(h.formula,o,h.cell,A,W)),P>0&&(w.z=R[w.ixfe>>8&63]),ls(w,r,e.opts.Date1904),z(h.cell,w,r),h=null;else throw new Error("String record expects Formula");break;case 33:case 545:{g.push(q);var Z=Vt(q[0].s);if(p=r.dense?(i[q[0].s.r]||[])[q[0].s.c]:i[Z],r.cellFormula&&p){if(!h||!Z||!p)break;p.f=""+In(q[1],o,q[0],A,W),p.F=cr(q[0])}}break;case 1212:{if(!r.cellFormula)break;if(u){if(!h)break;x[Vt(h.cell)]=q[0],p=r.dense?(i[h.cell.r]||[])[h.cell.c]:i[Vt(h.cell)],(p||{}).f=""+In(q[0],o,l,A,W)}}break;case 253:w=ql(c[q.isst].t,q.ixfe,"s"),c[q.isst].h&&(w.h=c[q.isst].h),w.XF=_[w.ixfe],P>0&&(w.z=R[w.ixfe>>8&63]),ls(w,r,e.opts.Date1904),z({c:q.c,r:q.r},w,r);break;case 513:r.sheetStubs&&(w={ixfe:q.ixfe,XF:_[q.ixfe],t:"z"},P>0&&(w.z=R[w.ixfe>>8&63]),ls(w,r,e.opts.Date1904),z({c:q.c,r:q.r},w,r));break;case 190:if(r.sheetStubs)for(var de=q.c;de<=q.C;++de){var Ae=q.ixfe[de-q.c];w={ixfe:Ae,XF:_[Ae],t:"z"},P>0&&(w.z=R[w.ixfe>>8&63]),ls(w,r,e.opts.Date1904),z({c:de,r:q.r},w,r)}break;case 214:case 516:case 4:w=ql(q.val,q.ixfe,"s"),w.XF=_[w.ixfe],P>0&&(w.z=R[w.ixfe>>8&63]),ls(w,r,e.opts.Date1904),z({c:q.c,r:q.r},w,r);break;case 0:case 512:L===1&&(o=q);break;case 252:c=q;break;case 1054:if(W.biff==4){R[P++]=q[1];for(var K=0;K<P+163&&Ht[K]!=q[1];++K);K>=163&&Ns(q[1],P+163)}else Ns(q[1],q[0]);break;case 30:{R[P++]=q;for(var Te=0;Te<P+163&&Ht[Te]!=q;++Te);Te>=163&&Ns(q,P+163)}break;case 229:J=J.concat(q);break;case 93:H[q.cmo[0]]=W.lastobj=q;break;case 438:W.lastobj.TxO=q;break;case 127:W.lastobj.ImData=q;break;case 440:for(v=q[0].s.r;v<=q[0].e.r;++v)for(d=q[0].s.c;d<=q[0].e.c;++d)p=r.dense?(i[v]||[])[d]:i[Vt({c:d,r:v})],p&&(p.l=q[1]);break;case 2048:for(v=q[0].s.r;v<=q[0].e.r;++v)for(d=q[0].s.c;d<=q[0].e.c;++d)p=r.dense?(i[v]||[])[d]:i[Vt({c:d,r:v})],p&&p.l&&(p.l.Tooltip=q[1]);break;case 28:{if(W.biff<=5&&W.biff>=2)break;p=r.dense?(i[q[0].r]||[])[q[0].c]:i[Vt(q[0])];var Oe=H[q[2]];p||(r.dense?(i[q[0].r]||(i[q[0].r]=[]),p=i[q[0].r][q[0].c]={t:"z"}):p=i[Vt(q[0])]={t:"z"},o.e.r=Math.max(o.e.r,q[0].r),o.s.r=Math.min(o.s.r,q[0].r),o.e.c=Math.max(o.e.c,q[0].c),o.s.c=Math.min(o.s.c,q[0].c)),p.c||(p.c=[]),m={a:q[1],t:Oe.TxO.t},p.c.push(m)}break;case 2173:kk(_[q.ixfe],q.ext);break;case 125:{if(!W.cellStyles)break;for(;q.e>=q.s;)I[q.e--]={width:q.w/256,level:q.level||0,hidden:!!(q.flags&1)},E||(E=!0,o0(q.w/256)),fa(I[q.e+1])}break;case 520:{var ie={};q.level!=null&&(M[q.r]=ie,ie.level=q.level),q.hidden&&(M[q.r]=ie,ie.hidden=!0),q.hpt&&(M[q.r]=ie,ie.hpt=q.hpt,ie.hpx=Bo(q.hpt))}break;case 38:case 39:case 40:case 41:i["!margins"]||Da(i["!margins"]={}),i["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[te]]=q;break;case 161:i["!margins"]||Da(i["!margins"]={}),i["!margins"].header=q.header,i["!margins"].footer=q.footer;break;case 574:q.RTL&&(F.Views[0].RTL=!0);break;case 146:k=q;break;case 2198:X=q;break;case 140:y=q;break;case 442:a?O.CodeName=q||O.name:F.WBProps.CodeName=q||"ThisWorkbook";break}}else he||console.error("Missing Info for XLS Record 0x"+te.toString(16)),t.l+=oe}return e.SheetNames=Jr(s).sort(function(fe,we){return Number(fe)-Number(we)}).map(function(fe){return s[fe].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&&C.forEach(function(fe,we){e.Sheets[e.SheetNames[we]]["!autofilter"]=fe}),e.Strings=c,e.SSF=Br(Ht),W.enc&&(e.Encryption=W.enc),X&&(e.Themes=X),e.Metadata={},y!==void 0&&(e.Metadata.Country=y),A.names.length>0&&(F.Names=A.names),e.Workbook=F,e}var Af={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function jF(t,r,e){var n=It.find(t,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var i=k1(n,gu,Af.DSI);for(var s in i)r[s]=i[s]}catch(a){if(e.WTF)throw a}var o=It.find(t,"/!SummaryInformation");if(o&&o.size>0)try{var h=k1(o,vu,Af.SI);for(var c in h)r[c]==null&&(r[c]=h[c])}catch(a){if(e.WTF)throw a}r.HeadingPairs&&r.TitlesOfParts&&(bg(r.HeadingPairs,r.TitlesOfParts,r,e),delete r.HeadingPairs,delete r.TitlesOfParts)}function HF(t,r){var e=[],n=[],i=[],s=0,o,h=r1(gu,"n"),c=r1(vu,"n");if(t.Props)for(o=Jr(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=Jr(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)kg.indexOf(i[s][0])>-1||xg.indexOf(i[s][0])>-1||i[s][1]!=null&&a.push(i[s]);n.length&&It.utils.cfb_add(r,"/SummaryInformation",C1(n,Af.SI,c,vu)),(e.length||a.length)&&It.utils.cfb_add(r,"/DocumentSummaryInformation",C1(e,Af.DSI,h,gu,a.length?a:null,Af.UDI))}function yv(t,r){r||(r={}),g0(r),Uu(),r.codepage&&Lu(r.codepage);var e,n;if(t.FullPaths){if(It.find(t,"/encryption"))throw new Error("File is password-protected");e=It.find(t,"!CompObj"),n=It.find(t,"/Workbook")||It.find(t,"/Book")}else{switch(r.type){case"base64":t=xi(wi(t));break;case"binary":t=xi(t);break;case"buffer":break;case"array":Array.isArray(t)||(t=Array.prototype.slice.call(t));break}Sn(t,0),n={content:t}}var i,s;if(e&&PF(e),r.bookProps&&!r.bookSheets)i={};else{var o=nr?"buffer":"array";if(n&&n.content)i=UF(n.content,r);else if((s=It.find(t,"PerfectOffice_MAIN"))&&s.content)i=Oa.to_workbook(s.content,(r.type=o,r));else if((s=It.find(t,"NativeContent_MAIN"))&&s.content)i=Oa.to_workbook(s.content,(r.type=o,r));else throw(s=It.find(t,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");r.bookVBA&&t.FullPaths&&It.find(t,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=e9(t))}var h={};return t.FullPaths&&jF(t,h,r),i.Props=i.Custprops=h,r.bookFiles&&(i.cfb=t),i}function WF(t,r){var e=r||{},n=It.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 It.utils.cfb_add(n,i,_v(t,e)),e.biff==8&&(t.Props||t.Custprops)&&HF(t,n),e.biff==8&&t.vbaraw&&t9(n,It.read(t.vbaraw,{type:typeof t.vbaraw=="string"?"binary":"buffer"})),n}var jf={0:{f:uC},1:{f:wC},2:{f:UC},3:{f:AC},4:{f:TC},5:{f:PC},6:{f:zC},7:{f:IC},8:{f:JC},9:{f:ZC},10:{f:KC},11:{f:YC},12:{f:_C},13:{f:HC},14:{f:RC},15:{f:kC},16:{f:dv},17:{f:VC},18:{f:DC},19:{f:Ju},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:VA},40:{},42:{},43:{f:zS},44:{f:WS},45:{f:GS},46:{f:YS},47:{f:KS},48:{},49:{f:m5},50:{},51:{f:Fk},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Bg},62:{f:$C},63:{f:Lk},64:{f:dA},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Bn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:lA},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:xC},148:{f:mC,p:16},151:{f:nA},152:{},153:{f:$A},154:{},155:{},156:{f:HA},157:{},158:{},159:{T:1,f:sS},160:{T:-1},161:{T:1,f:Ga},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:QC},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:Ck},336:{T:-1},337:{f:Ik,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:mu},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Pg},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:iA},427:{f:sA},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:oA},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:vC},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:tA},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:mu},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:Yk},633:{T:1},634:{T:-1},635:{T:1,f:Gk},636:{T:-1},637:{f:b5},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:RA},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:pA},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:""}},Eu={6:{f:Vh},10:{f:ea},12:{f:nn},13:{f:nn},14:{f:Yr},15:{f:Yr},16:{f:Dn},17:{f:Yr},18:{f:Yr},19:{f:nn},20:{f:O1},21:{f:O1},23:{f:Pg},24:{f:N1},25:{f:Yr},26:{},27:{},28:{f:pT},29:{},34:{f:Yr},35:{f:D1},38:{f:Dn},39:{f:Dn},40:{f:Dn},41:{f:Dn},42:{f:Yr},43:{f:Yr},47:{f:kS},49:{f:HE},51:{f:nn},60:{},61:{f:PE},64:{f:Yr},65:{f:jE},66:{f:nn},77:{},80:{},81:{},82:{},85:{f:nn},89:{},90:{},91:{},92:{f:SE},93:{f:vT},94:{},95:{f:Yr},96:{},97:{},99:{f:Yr},125:{f:Bg},128:{f:rT},129:{f:CE},130:{f:nn},131:{f:Yr},132:{f:Yr},133:{f:AE},134:{},140:{f:ST},141:{f:nn},144:{},146:{f:AT},151:{},152:{},153:{},154:{},155:{},156:{f:nn},157:{},158:{},160:{f:NT},161:{f:MT},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:QE},190:{f:qE},193:{f:ea},197:{},198:{},199:{},200:{},201:{},202:{f:Yr},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:nn},220:{},221:{f:Yr},222:{},224:{f:tT},225:{f:TE},226:{f:ea},227:{},229:{f:mT},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:RE},253:{f:$E},255:{f:IE},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Cg},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Yr},353:{f:ea},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:oT},431:{f:Yr},432:{},433:{},434:{},437:{},438:{f:wT},439:{f:Yr},440:{f:yT},441:{},442:{f:Yf},443:{},444:{f:nn},445:{},446:{},448:{f:ea},449:{f:NE,r:2},450:{f:ea},512:{f:R1},513:{f:DT},515:{f:sT},516:{f:XE},517:{f:I1},519:{f:PT},520:{f:OE},523:{},545:{f:P1},549:{f:F1},566:{},574:{f:LE},638:{f:JE},659:{},1048:{},1054:{f:GE},1084:{},1212:{f:hT},2048:{f:ET},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Zl},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:ea},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:FT,r:12},2173:{f:Sk,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Yr,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:cT,r:12},2197:{},2198:{f:bk,r:12},2199:{},2200:{},2201:{},2202:{f:uT,r:12},2203:{f:ea},2204:{},2205:{},2206:{},2207:{},2211:{f:DE},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:nn},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:IT},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:CT},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:R1},1:{},2:{f:HT},3:{f:UT},4:{f:LT},5:{f:I1},7:{f:$T},8:{},9:{f:Zl},11:{},22:{f:nn},30:{f:YE},31:{},32:{},33:{f:P1},36:{},37:{f:F1},50:{f:zT},62:{},52:{},67:{},68:{f:nn},69:{},86:{},126:{},127:{f:BT},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:XT},223:{},234:{},354:{},421:{},518:{f:Vh},521:{f:Zl},536:{f:N1},547:{f:D1},561:{},579:{},1030:{f:Vh},1033:{f:Zl},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function mt(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&&Zu(e)&&t.push(e)}}function $F(t,r,e,n){var i=n||(e||[]).length||0;if(i<=8224)return mt(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 qf(t,r,e){return t||(t=nt(7)),t.write_shift(2,r),t.write_shift(2,e),t.write_shift(2,0),t.write_shift(1,0),t}function zF(t,r,e,n){var i=nt(9);return qf(i,t,r),Ag(e,n||"b",i),i}function XF(t,r,e){var n=nt(8+2*e.length);return qf(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 VF(t,r,e,n){if(r.v!=null)switch(r.t){case"d":case"n":var i=r.t=="d"?Cn(jr(r.v)):r.v;i==(i|0)&&i>=0&&i<65536?mt(t,2,WT(e,n,i)):mt(t,3,jT(e,n,i));return;case"b":case"e":mt(t,5,zF(e,n,r.v,r.t));return;case"s":case"str":mt(t,4,XF(e,n,(r.v||"").slice(0,255)));return}mt(t,1,qf(null,e,n))}function GF(t,r,e,n){var i=Array.isArray(r),s=Er(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=cr(s)}for(var a=s.s.r;a<=s.e.r;++a){h=wn(a);for(var f=s.s.c;f<=s.e.c;++f){a===s.s.r&&(c[f]=an(f)),o=c[f]+h;var l=i?(r[a]||[])[f]:r[o];l&&VF(t,l,a,f)}}}function KF(t,r){for(var e=r||{},n=si(),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 mt(n,e.biff==4?1033:e.biff==3?521:9,i0(t,16,e)),GF(n,t.Sheets[t.SheetNames[i]],i,e),mt(n,10),n.end()}function YF(t,r,e){mt(t,49,WE({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},e))}function ZF(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&&mt(t,1054,KE(i,r[i],e))})}function JF(t,r){var e=nt(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),mt(t,2151,e),e=nt(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),Og(Er(r["!ref"]||"A1"),e),e.write_shift(4,4),mt(t,2152,e)}function QF(t,r){for(var e=0;e<16;++e)mt(t,224,M1({numFmtId:0,style:!0},0,r));r.cellXfs.forEach(function(n){mt(t,224,M1(n,0,r))})}function qF(t,r){for(var e=0;e<r["!links"].length;++e){var n=r["!links"][e];mt(t,440,_T(n)),n[1].Tooltip&&mt(t,2048,TT(n))}delete r["!links"]}function eR(t,r){if(r){var e=0;r.forEach(function(n,i){++e<=256&&n&&mt(t,125,RT(Pc(i,n),i))})}}function tR(t,r,e,n,i){var s=16+ua(i.cellXfs,r,i);if(r.v==null&&!r.bf){mt(t,513,ja(e,n,s));return}if(r.bf)mt(t,6,C7(r,e,n,i,s));else switch(r.t){case"d":case"n":var o=r.t=="d"?Cn(jr(r.v)):r.v;mt(t,515,aT(e,n,o,s));break;case"b":case"e":mt(t,517,iT(e,n,r.v,s,i,r.t));break;case"s":case"str":if(i.bookSST){var h=u0(i.Strings,r.v,i.revStrings);mt(t,253,zE(e,n,h,s))}else mt(t,516,VE(e,n,(r.v||"").slice(0,255),s,i));break;default:mt(t,513,ja(e,n,s))}}function rR(t,r,e){var n=si(),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=Er(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)}mt(n,2057,i0(e,16,r)),mt(n,13,Ni(1)),mt(n,12,Ni(100)),mt(n,15,zn(!0)),mt(n,17,zn(!1)),mt(n,16,La(.001)),mt(n,95,zn(!0)),mt(n,42,zn(!1)),mt(n,43,zn(!1)),mt(n,130,Ni(1)),mt(n,128,nT([0,0])),mt(n,131,zn(!1)),mt(n,132,zn(!1)),a&&eR(n,s["!cols"]),mt(n,512,ZE(p,r)),a&&(s["!links"]=[]);for(var d=p.s.r;d<=p.e.r;++d){l=wn(d);for(var v=p.s.c;v<=p.e.c;++v){d===p.s.r&&(u[v]=an(v)),f=u[v]+l;var x=c?(s[d]||[])[v]:s[f];x&&(tR(n,x,d,v,r),a&&x.l&&s["!links"].push([f,x.l]))}}var g=h.CodeName||h.name||i;return a&&mt(n,574,UE((o.Views||[])[0])),a&&(s["!merges"]||[]).length&&mt(n,229,gT(s["!merges"])),a&&qF(n,s),mt(n,442,Fg(g)),a&&JF(n,s),mt(n,10),n.end()}function nR(t,r,e){var n=si(),i=(t||{}).Workbook||{},s=i.Sheets||[],o=i.WBProps||{},h=e.biff==8,c=e.biff==5;if(mt(n,2057,i0(t,5,e)),e.bookType=="xla"&&mt(n,135),mt(n,225,h?Ni(1200):null),mt(n,193,iE(2)),c&&mt(n,191),c&&mt(n,192),mt(n,226),mt(n,92,kE("SheetJS",e)),mt(n,66,Ni(h?1200:1252)),h&&mt(n,353,Ni(0)),h&&mt(n,448),mt(n,317,OT(t.SheetNames.length)),h&&t.vbaraw&&mt(n,211),h&&t.vbaraw){var a=o.CodeName||"ThisWorkbook";mt(n,442,Fg(a))}mt(n,156,Ni(17)),mt(n,25,zn(!1)),mt(n,18,zn(!1)),mt(n,19,Ni(0)),h&&mt(n,431,zn(!1)),h&&mt(n,444,Ni(0)),mt(n,61,BE()),mt(n,64,zn(!1)),mt(n,141,Ni(0)),mt(n,34,zn(NA(t)=="true")),mt(n,14,zn(!0)),h&&mt(n,439,zn(!1)),mt(n,218,Ni(0)),YF(n,t,e),ZF(n,t.SSF,e),QF(n,e),h&&mt(n,352,zn(!1));var f=n.end(),l=si();h&&mt(l,140,kT()),h&&e.Strings&&$F(l,252,ME(e.Strings)),mt(l,10);var u=l.end(),p=si(),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]||{};mt(p,133,FE({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 w=[];return f.length&&w.push(f),g.length&&w.push(g),u.length&&w.push(u),xn(w)}function iR(t,r){var e=r||{},n=[];t&&!t.SSF&&(t.SSF=Br(Ht)),t&&t.SSF&&(jo(),Fc(t.SSF),e.revssf=Mc(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,v0(e),e.cellXfs=[],ua(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={});for(var i=0;i<t.SheetNames.length;++i)n[n.length]=rR(i,e,t);return n.unshift(nR(t,n,e)),xn(n)}function _v(t,r){for(var e=0;e<=t.SheetNames.length;++e){var n=t.Sheets[t.SheetNames[e]];if(!(!n||!n["!ref"])){var i=Li(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 iR(t,r);case 4:case 3:case 2:return KF(t,r)}throw new Error("invalid type "+s.bookType+" for BIFF")}function V1(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=W8(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 w=g,y=0;w.charAt(0)=="<"&&(y=w.indexOf(">"))>-1;)w=w.slice(y+1);for(var _=0;_<m.length;++_){var k=m[_];k.s.c==f&&k.s.r<a&&a<=k.e.r&&(f=k.e.c+1,_=-1)}var F=Wt(g.slice(0,g.indexOf(">")));u=F.colspan?+F.colspan:1,((l=+F.rowspan)>1||u>1)&&m.push({s:{r:a,c:f},e:{r:a+(l||1)-1,c:f+u-1}});var O=F.t||F["data-t"]||"";if(!w.length){f+=u;continue}if(w=J8(w),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),!w.length){f+=u;continue}var N={t:"s",v:w};e.raw||!w.trim().length||O=="s"||(w==="TRUE"?N={t:"b",v:!0}:w==="FALSE"?N={t:"b",v:!1}:isNaN(Ps(w))?isNaN(Mf(w).getDate())||(N={t:"d",v:jr(w)},e.cellDates||(N={t:"n",v:Cn(N.v)}),N.z=e.dateNF||Ht[14]):N={t:"n",v:Ps(w)}),e.dense?(n[a]||(n[a]=[]),n[a][f]=N):n[Vt({r:a,c:f})]=N,f+=u}}}}return n["!ref"]=cr(p),m.length&&(n["!merges"]=m),n}function sR(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=Vt({r:e,c:o}),l=n.dense?(t[e]||[])[o]:t[f],u=l&&l.v!=null&&(l.h||Gu(l.w||(oa(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(pt("td",u,p))}}var m="<tr>";return m+s.join("")+"</tr>"}var aR='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',oR="</body></html>";function fR(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 $a(V1(e[0],r),r);var n=Mv();return e.forEach(function(i,s){Iv(n,V1(i,r),"Sheet"+(s+1))}),n}function lR(t,r,e){var n=[];return n.join("")+"<table"+(e&&e.id?' id="'+e.id+'"':"")+">"}function cR(t,r){var e=r||{},n=e.header!=null?e.header:aR,i=e.footer!=null?e.footer:oR,s=[n],o=Li(t["!ref"]);e.dense=Array.isArray(t),s.push(lR(t,o,e));for(var h=o.s.r;h<=o.e.r;++h)s.push(sR(t,o,h,e));return s.push("</table>"+i),s.join("")}function hR(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=vr(r.replace(/<[^>]*>/g,""));return[e]}var G1={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 Ev(t,r){var e=r||{},n=Ku(t),i=[],s,o,h={name:""},c="",a=0,f,l,u={},p=[],m=e.dense?[]:{},d,v,x={value:""},g="",w=0,y=[],_=-1,k=-1,F={s:{r:1e6,c:1e7},e:{r:0,c:0}},O=0,N={},U=[],z={},W=0,X=0,J=[],H=1,I=1,M=[],E={Names:[]},A={},B=["",""],L=[],P={},R="",C=0,S=!1,D=!1,V=0;for(Df.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");d=Df.exec(n);)switch(d[3]=d[3].replace(/_.*$/,"")){case"table":case"工作表":d[1]==="/"?(F.e.c>=F.s.c&&F.e.r>=F.s.r?m["!ref"]=cr(F):m["!ref"]="A1:A1",e.sheetRows>0&&e.sheetRows<=F.e.r&&(m["!fullref"]=m["!ref"],F.e.r=e.sheetRows-1,m["!ref"]=cr(F)),U.length&&(m["!merges"]=U),J.length&&(m["!rows"]=J),f.name=f.名称||f.name,typeof JSON<"u"&&JSON.stringify(f),p.push(f.name),u[f.name]=m,D=!1):d[0].charAt(d[0].length-2)!=="/"&&(f=Wt(d[0],!1),_=k=-1,F.s.r=F.s.c=1e7,F.e.r=F.e.c=0,m=e.dense?[]:{},U=[],J=[],D=!0);break;case"table-row-group":d[1]==="/"?--O:++O;break;case"table-row":case"行":if(d[1]==="/"){_+=H,H=1;break}if(l=Wt(d[0],!1),l.行号?_=l.行号-1:_==-1&&(_=0),H=+l["number-rows-repeated"]||1,H<10)for(V=0;V<H;++V)O>0&&(J[_+V]={level:O});k=-1;break;case"covered-table-cell":d[1]!=="/"&&++k,e.sheetStubs&&(e.dense?(m[_]||(m[_]=[]),m[_][k]={t:"z"}):m[Vt({r:_,c:k})]={t:"z"}),g="",y=[];break;case"table-cell":case"数据":if(d[0].charAt(d[0].length-2)==="/")++k,x=Wt(d[0],!1),I=parseInt(x["number-columns-repeated"]||"1",10),v={t:"z",v:null},x.formula&&e.cellFormula!=!1&&(v.f=$1(vr(x.formula))),(x.数据类型||x["value-type"])=="string"&&(v.t="s",v.v=vr(x["string-value"]||""),e.dense?(m[_]||(m[_]=[]),m[_][k]=v):m[Vt({r:_,c:k})]=v),k+=I-1;else if(d[1]!=="/"){++k,g="",w=0,y=[],I=1;var te=H?_+H-1:_;if(k>F.e.c&&(F.e.c=k),k<F.s.c&&(F.s.c=k),_<F.s.r&&(F.s.r=_),te>F.e.r&&(F.e.r=te),x=Wt(d[0],!1),L=[],P={},v={t:x.数据类型||x["value-type"],v:null},e.cellFormula)if(x.formula&&(x.formula=vr(x.formula)),x["number-matrix-columns-spanned"]&&x["number-matrix-rows-spanned"]&&(W=parseInt(x["number-matrix-rows-spanned"],10)||0,X=parseInt(x["number-matrix-columns-spanned"],10)||0,z={s:{r:_,c:k},e:{r:_+W-1,c:k+X-1}},v.F=cr(z),M.push([z,v.F])),x.formula)v.f=$1(x.formula);else for(V=0;V<M.length;++V)_>=M[V][0].s.r&&_<=M[V][0].e.r&&k>=M[V][0].s.c&&k<=M[V][0].e.c&&(v.F=M[V][1]);switch((x["number-columns-spanned"]||x["number-rows-spanned"])&&(W=parseInt(x["number-rows-spanned"],10)||0,X=parseInt(x["number-columns-spanned"],10)||0,z={s:{r:_,c:k},e:{r:_+W-1,c:k+X-1}},U.push(z)),x["number-columns-repeated"]&&(I=parseInt(x["number-columns-repeated"],10)),v.t){case"boolean":v.t="b",v.v=Pr(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=jr(x["date-value"]),e.cellDates||(v.t="n",v.v=Cn(v.v)),v.z="m/d/yy";break;case"time":v.t="n",v.v=U8(x["time-value"])/86400,e.cellDates&&(v.t="d",v.v=Ic(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=vr(x["string-value"]),y=[]);else throw new Error("Unsupported value type "+v.t)}}else{if(S=!1,v.t==="s"&&(v.v=g||"",y.length&&(v.R=y),S=w==0),A.Target&&(v.l=A),L.length>0&&(v.c=L,L=[]),g&&e.cellText!==!1&&(v.w=g),S&&(v.t="z",delete v.v),(!S||e.sheetStubs)&&!(e.sheetRows&&e.sheetRows<=_))for(var oe=0;oe<H;++oe){if(I=parseInt(x["number-columns-repeated"]||"1",10),e.dense)for(m[_+oe]||(m[_+oe]=[]),m[_+oe][k]=oe==0?v:Br(v);--I>0;)m[_+oe][k+I]=Br(v);else for(m[Vt({r:_+oe,c:k})]=v;--I>0;)m[Vt({r:_+oe,c:k+I})]=Br(v);F.e.c<=k&&(F.e.c=k)}I=parseInt(x["number-columns-repeated"]||"1",10),k+=I-1,I=0,v={},g="",y=[]}A={};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;P.t=g,y.length&&(P.R=y),P.a=R,L.push(P)}else d[0].charAt(d[0].length-2)!=="/"&&i.push([d[3],!1]);R="",C=0,g="",w=0,y=[];break;case"creator":d[1]==="/"?R=n.slice(C,d.index):C=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="",w=0,y=[];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(N[h.name]=c,(s=i.pop())[0]!==d[3])throw"Bad state: "+s}else d[0].charAt(d[0].length-2)!=="/"&&(c="",h=Wt(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=Wt(d[0],!1),c+=G1[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=Wt(d[0],!1),c+=G1[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=Wt(d[0],!1),B=Gh(o["cell-range-address"]);var he={Name:o.name,Ref:B[0]+"!"+B[1]};D&&(he.Sheet=p.length),E.Names.push(he);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 Ne=hR(n.slice(w,d.index));g=(g.length>0?g+`
|
||
`:"")+Ne[0]}else Wt(d[0],!1),w=d.index+d[0].length;break;case"s":break;case"database-range":if(d[1]==="/")break;try{B=Gh(Wt(d[0])["target-range-address"]),u[B[0]]["!autofilter"]={ref:B[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(A=Wt(d[0],!1),!A.href)break;A.Target=vr(A.href),delete A.href,A.Target.charAt(0)=="#"&&A.Target.indexOf(".")>-1?(B=Gh(A.Target.slice(1)),A.Target="#"+B[0]+"!"+B[1]):A.Target.match(/^\.\.[\\\/]/)&&(A.Target=A.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 q={Sheets:u,SheetNames:p,Workbook:E};return e.bookSheets&&delete q.Sheets,q}function K1(t,r){r=r||{},Di(t,"META-INF/manifest.xml")&&U5(rn(t,"META-INF/manifest.xml"),r);var e=bi(t,"content.xml");if(!e)throw new Error("Missing content.xml in ODS / UOF file");var n=Ev(Fr(e),r);return Di(t,"meta.xml")&&(n.Props=gg(rn(t,"meta.xml"))),n}function Y1(t,r){return Ev(t,r)}var uR=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 "+Of({"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 Qr+r}}(),Z1=function(){var t=function(s){return Cr(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="'+Cr(o.SheetNames[h])+`" table:style-name="ta1">
|
||
`);var a=0,f=0,l=Li(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={},w="";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 y=Vt({r:a,c:f}),_=m?(s[a]||[])[f]:s[y];if(_&&_.f&&(g["table:formula"]=Cr(O7(_.f)),_.F&&_.F.slice(0,y.length)==y)){var k=Li(_.F);g["table:number-matrix-columns-spanned"]=k.e.c-k.s.c+1,g["table:number-matrix-rows-spanned"]=k.e.r-k.s.r+1}if(!_){c.push(r);continue}switch(_.t){case"b":w=_.v?"TRUE":"FALSE",g["office:value-type"]="boolean",g["office:boolean-value"]=_.v?"true":"false";break;case"n":w=_.w||String(_.v||0),g["office:value-type"]="float",g["office:value"]=_.v||0;break;case"s":case"str":w=_.v==null?"":_.v,g["office:value-type"]="string";break;case"d":w=_.w||jr(_.v).toISOString(),g["office:value-type"]="date",g["office:date-value"]=jr(_.v).toISOString(),g["table:style-name"]="ce1";break;default:c.push(r);continue}var F=t(w);if(_.l&&_.l.Target){var O=_.l.Target;O=O.charAt(0)=="#"?"#"+D7(O.slice(1)):O,O.charAt(0)!="#"&&!O.match(/^\w+:/)&&(O="../"+O),F=pt("text:a",F,{"xlink:href":O.replace(/&/g,"&")})}c.push(" "+pt("table:table-cell",pt("text:p",F,{}),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;fa(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=[Qr],a=Of({"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=Of({"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(mg().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 Tv(t,r){if(r.bookType=="fods")return Z1(t,r);var e=zu(),n="",i=[],s=[];return n="mimetype",qt(e,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",qt(e,n,Z1(t,r)),i.push([n,"text/xml"]),s.push([n,"ContentFile"]),n="styles.xml",qt(e,n,uR(t,r)),i.push([n,"text/xml"]),s.push([n,"StylesFile"]),n="meta.xml",qt(e,n,Qr+mg()),i.push([n,"text/xml"]),s.push([n,"MetadataFile"]),n="manifest.rdf",qt(e,n,W5(s)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",qt(e,n,j5(i)),e}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Ha(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Tu(t){return typeof TextDecoder<"u"?new TextDecoder().decode(t):Fr(ha(t))}function dR(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):xi(ds(t))}function pR(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 ca(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 J1(t){return t-=t>>1&1431655765,t=(t&858993459)+(t>>2&858993459),(t+(t>>4)&252645135)*16843009>>>24}function mR(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 gR(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 Hf(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 Sr(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 Xr(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 xr(t){for(var r=[],e=[0];e[0]<t.length;){var n=e[0],i=Hf(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=Hf(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 Tn(t){var r=[];return t.forEach(function(e,n){e.forEach(function(i){i.data&&(r.push(Sr(n*8+i.type)),i.type==2&&r.push(Sr(i.data.length)),r.push(i.data))})}),ca(r)}function m0(t,r){return(t==null?void 0:t.map(function(e){return r(e.data)}))||[]}function Ii(t){for(var r,e=[],n=[0];n[0]<t.length;){var i=Hf(t,n),s=xr(t.slice(n[0],n[0]+i));n[0]+=i;var o={id:Xr(s[1][0].data),messages:[]};s[2].forEach(function(h){var c=xr(h.data),a=Xr(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=Xr(s[3][0].data)>>>0>0),e.push(o)}return e}function Co(t){var r=[];return t.forEach(function(e){var n=[];n[1]=[{data:Sr(e.id),type:0}],n[2]=[],e.merge!=null&&(n[3]=[{data:Sr(+!!e.merge),type:0}]);var i=[];e.messages.forEach(function(o){i.push(o.data),o.meta[3]=[{type:0,data:Sr(o.data.length)}],n[2].push({data:Tn(o.meta),type:2})});var s=Tn(n);r.push(Sr(s.length)),r.push(s),i.forEach(function(o){return r.push(o)})}),ca(r)}function vR(t,r){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var e=[0],n=Hf(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=[ca(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=ca(i);if(f.length!=n)throw new Error("Unexpected length: ".concat(f.length," != ").concat(n));return f}function Oi(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(vR(n,t.slice(e,e+i))),e+=i}if(e!==t.length)throw new Error("data is not a valid framed stream!");return ca(r)}function Ao(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=Sr(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 ca(r)}function xR(t,r,e,n){var i=Ha(t),s=i.getUint32(4,!0),o=(n>1?12:8)+J1(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+=J1(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 bR(t,r,e){var n=Ha(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=mR(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 Yh(t,r){var e=new Uint8Array(32),n=Ha(e),i=12,s=0;switch(e[0]=5,t.t){case"n":e[1]=2,gR(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 Zh(t,r){var e=new Uint8Array(32),n=Ha(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 wR(t,r,e){switch(t[0]){case 0:case 1:case 2:case 3:return xR(t,r,e,t[0]);case 5:return bR(t,r,e);default:throw new Error("Unsupported payload version ".concat(t[0]))}}function Mn(t){var r=xr(t);return Hf(r[1][0].data)}function Q1(t,r){var e=xr(r.data),n=Xr(e[1][0].data),i=e[3],s=[];return(i||[]).forEach(function(o){var h=xr(o.data),c=Xr(h[1][0].data)>>>0;switch(n){case 1:s[c]=Tu(h[3][0].data);break;case 8:{var a=t[Mn(h[9][0].data)][0],f=xr(a.data),l=t[Mn(f[1][0].data)][0],u=Xr(l.meta[1][0].data);if(u!=2001)throw new Error("2000 unexpected reference to ".concat(u));var p=xr(l.data);s[c]=p[3].map(function(m){return Tu(m.data)}).join("")}break}}),s}function yR(t,r){var e,n,i,s,o,h,c,a,f,l,u,p,m,d,v=xr(t),x=Xr(v[1][0].data)>>>0,g=Xr(v[2][0].data)>>>0,w=((n=(e=v[8])==null?void 0:e[0])==null?void 0:n.data)&&Xr(v[8][0].data)>0||!1,y,_;if((s=(i=v[7])==null?void 0:i[0])!=null&&s.data&&r!=0)y=(h=(o=v[7])==null?void 0:o[0])==null?void 0:h.data,_=(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)y=(p=(u=v[4])==null?void 0:u[0])==null?void 0:p.data,_=(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 k=w?4:1,F=Ha(y),O=[],N=0;N<y.length/2;++N){var U=F.getUint16(N*2,!0);U<65535&&O.push([N,U])}if(O.length!=g)throw"Expected ".concat(g," cells, found ").concat(O.length);var z=[];for(N=0;N<O.length-1;++N)z[O[N][0]]=_.subarray(O[N][1]*k,O[N+1][1]*k);return O.length>=1&&(z[O[O.length-1][0]]=_.subarray(O[O.length-1][1]*k)),{R:x,cells:z}}function _R(t,r){var e,n=xr(r.data),i=(e=n==null?void 0:n[7])!=null&&e[0]?Xr(n[7][0].data)>>>0>0?1:0:-1,s=m0(n[5],function(o){return yR(o,i)});return{nrows:Xr(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 ER(t,r,e){var n,i=xr(r.data),s={s:{r:0,c:0},e:{r:0,c:0}};if(s.e.r=(Xr(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=(Xr(i[7][0].data)>>>0)-1,s.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));e["!ref"]=cr(s);var o=xr(i[4][0].data),h=Q1(t,t[Mn(o[4][0].data)][0]),c=(n=o[17])!=null&&n[0]?Q1(t,t[Mn(o[17][0].data)][0]):[],a=xr(o[3][0].data),f=0;a[1].forEach(function(l){var u=xr(l.data),p=t[Mn(u[2][0].data)][0],m=Xr(p.meta[1][0].data);if(m!=6002)throw new Error("6001 unexpected reference to ".concat(m));var d=_R(t,p);d.data.forEach(function(v,x){v.forEach(function(g,w){var y=Vt({r:f+x,c:w}),_=wR(g,h,c);_&&(e[y]=_)})}),f+=d.nrows})}function TR(t,r){var e=xr(r.data),n={"!ref":"A1"},i=t[Mn(e[2][0].data)],s=Xr(i[0].meta[1][0].data);if(s!=6001)throw new Error("6000 unexpected reference to ".concat(s));return ER(t,i[0],n),n}function SR(t,r){var e,n=xr(r.data),i={name:(e=n[1])!=null&&e[0]?Tu(n[1][0].data):"",sheets:[]},s=m0(n[2],Mn);return s.forEach(function(o){t[o].forEach(function(h){var c=Xr(h.meta[1][0].data);c==6e3&&i.sheets.push(TR(t,h))})}),i}function kR(t,r){var e=Mv(),n=xr(r.data),i=m0(n[1],Mn);if(i.forEach(function(s){t[s].forEach(function(o){var h=Xr(o.meta[1][0].data);if(h==2){var c=SR(t,o);c.sheets.forEach(function(a,f){Iv(e,a,f==0?c.name:c.name+"_"+f,!0)})}})}),e.SheetNames.length==0)throw new Error("Empty NUMBERS file");return e}function Jh(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=Oi(c.content)}catch(l){return console.log("?? "+c.content.length+" "+(l.message||l))}var f;try{f=Ii(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)&&Xr(s[1][0].meta[1][0].data)==1&&s[1][0];if(h||o.forEach(function(c){s[c].forEach(function(a){var f=Xr(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 kR(s,h)}function CR(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)&&Xr(t[8][0].data)>0||!1;if(h)throw"Math only works with normal offsets";for(var c=0,a=Ha(t[7][0].data),f=0,l=[],u=Ha(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=Yh({t:"s",v:r[d]},e),x=Zh({t:"s",v:r[d]},e);break;case"number":v=Yh({t:"n",v:r[d]},e),x=Zh({t:"n",v:r[d]},e);break;case"boolean":v=Yh({t:"b",v:r[d]},e),x=Zh({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=Sr(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=ca(l),t[3][0].data=ca(m),c}function AR(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=Li(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(cr(n)));var s=Fv(e,{range:n,header:1}),o=["~Sh33tJ5~"];s.forEach(function(R){return R.forEach(function(C){typeof C=="string"&&o.push(C)})});var h={},c=[],a=It.read(r.numbers,{type:"base64"});a.FileIndex.map(function(R,C){return[R,a.FullPaths[C]]}).forEach(function(R){var C=R[0],S=R[1];if(C.type==2&&C.name.match(/\.iwa/)){var D=C.content,V=Oi(D),te=Ii(V);te.forEach(function(oe){c.push(oe.id),h[oe.id]={deps:[],location:S,type:Xr(oe.messages[0].meta[1][0].data)}})}}),c.sort(function(R,C){return R-C});var f=c.filter(function(R){return R>1}).map(function(R){return[R,Sr(R)]});a.FileIndex.map(function(R,C){return[R,a.FullPaths[C]]}).forEach(function(R){var C=R[0];if(R[1],!!C.name.match(/\.iwa/)){var S=Ii(Oi(C.content));S.forEach(function(D){D.messages.forEach(function(V){f.forEach(function(te){D.messages.some(function(oe){return Xr(oe.meta[1][0].data)!=11006&&pR(oe.data,te[1])})&&h[te[0]].deps.push(D.id)})})})}});for(var l=It.find(a,h[1].location),u=Ii(Oi(l.content)),p,m=0;m<u.length;++m){var d=u[m];d.id==1&&(p=d)}var v=Mn(xr(p.messages[0].data)[1][0].data);for(l=It.find(a,h[v].location),u=Ii(Oi(l.content)),m=0;m<u.length;++m)d=u[m],d.id==v&&(p=d);for(v=Mn(xr(p.messages[0].data)[2][0].data),l=It.find(a,h[v].location),u=Ii(Oi(l.content)),m=0;m<u.length;++m)d=u[m],d.id==v&&(p=d);for(v=Mn(xr(p.messages[0].data)[2][0].data),l=It.find(a,h[v].location),u=Ii(Oi(l.content)),m=0;m<u.length;++m)d=u[m],d.id==v&&(p=d);var x=xr(p.messages[0].data);{x[6][0].data=Sr(n.e.r+1),x[7][0].data=Sr(n.e.c+1);var g=Mn(x[46][0].data),w=It.find(a,h[g].location),y=Ii(Oi(w.content));{for(var _=0;_<y.length&&y[_].id!=g;++_);if(y[_].id!=g)throw"Bad ColumnRowUIDMapArchive";var k=xr(y[_].messages[0].data);k[1]=[],k[2]=[],k[3]=[];for(var F=0;F<=n.e.c;++F){var O=[];O[1]=O[2]=[{type:0,data:Sr(F+420690)}],k[1].push({type:2,data:Tn(O)}),k[2].push({type:0,data:Sr(F)}),k[3].push({type:0,data:Sr(F)})}k[4]=[],k[5]=[],k[6]=[];for(var N=0;N<=n.e.r;++N)O=[],O[1]=O[2]=[{type:0,data:Sr(N+726270)}],k[4].push({type:2,data:Tn(O)}),k[5].push({type:0,data:Sr(N)}),k[6].push({type:0,data:Sr(N)});y[_].messages[0].data=Tn(k)}w.content=Ao(Co(y)),w.size=w.content.length,delete x[46];var U=xr(x[4][0].data);{U[7][0].data=Sr(n.e.r+1);var z=xr(U[1][0].data),W=Mn(z[2][0].data);w=It.find(a,h[W].location),y=Ii(Oi(w.content));{if(y[0].id!=W)throw"Bad HeaderStorageBucket";var X=xr(y[0].messages[0].data);for(N=0;N<s.length;++N){var J=xr(X[2][0].data);J[1][0].data=Sr(N),J[4][0].data=Sr(s[N].length),X[2][N]={type:X[2][0].type,data:Tn(J)}}y[0].messages[0].data=Tn(X)}w.content=Ao(Co(y)),w.size=w.content.length;var H=Mn(U[2][0].data);w=It.find(a,h[H].location),y=Ii(Oi(w.content));{if(y[0].id!=H)throw"Bad HeaderStorageBucket";for(X=xr(y[0].messages[0].data),F=0;F<=n.e.c;++F)J=xr(X[2][0].data),J[1][0].data=Sr(F),J[4][0].data=Sr(n.e.r+1),X[2][F]={type:X[2][0].type,data:Tn(J)};y[0].messages[0].data=Tn(X)}w.content=Ao(Co(y)),w.size=w.content.length;var I=Mn(U[4][0].data);(function(){for(var R=It.find(a,h[I].location),C=Ii(Oi(R.content)),S,D=0;D<C.length;++D){var V=C[D];V.id==I&&(S=V)}var te=xr(S.messages[0].data);{te[3]=[];var oe=[];o.forEach(function(q,ne){oe[1]=[{type:0,data:Sr(ne)}],oe[2]=[{type:0,data:Sr(1)}],oe[3]=[{type:2,data:dR(q)}],te[3].push({type:2,data:Tn(oe)})})}S.messages[0].data=Tn(te);var he=Co(C),Ne=Ao(he);R.content=Ne,R.size=R.content.length})();var M=xr(U[3][0].data);{var E=M[1][0];delete M[2];var A=xr(E.data);{var B=Mn(A[2][0].data);(function(){for(var R=It.find(a,h[B].location),C=Ii(Oi(R.content)),S,D=0;D<C.length;++D){var V=C[D];V.id==B&&(S=V)}var te=xr(S.messages[0].data);{delete te[6],delete M[7];var oe=new Uint8Array(te[5][0].data);te[5]=[];for(var he=0,Ne=0;Ne<=n.e.r;++Ne){var q=xr(oe);he+=CR(q,s[Ne],o),q[1][0].data=Sr(Ne),te[5].push({data:Tn(q),type:2})}te[1]=[{type:0,data:Sr(n.e.c+1)}],te[2]=[{type:0,data:Sr(n.e.r+1)}],te[3]=[{type:0,data:Sr(he)}],te[4]=[{type:0,data:Sr(n.e.r+1)}]}S.messages[0].data=Tn(te);var ne=Co(C),Q=Ao(ne);R.content=Q,R.size=R.content.length})()}E.data=Tn(A)}U[3][0].data=Tn(M)}x[4][0].data=Tn(U)}p.messages[0].data=Tn(x);var L=Co(u),P=Ao(L);return l.content=P,l.size=l.content.length,a}function Sv(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 g0(t){Sv([["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 v0(t){Sv([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function FR(t){return fr.WS.indexOf(t)>-1?"sheet":t==fr.CS?"chart":t==fr.DS?"dialog":t==fr.MS?"macro":t&&t.length?t:"sheet"}function RR(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,FR(t["!id"][n.id].Type)]})}catch{return null}return!t||t.length===0?null:t}function MR(t,r,e,n,i,s,o,h,c,a,f,l){try{s[n]=Tf(bi(t,e,!0),r);var u=rn(t,r),p;switch(h){case"sheet":p=eF(u,r,i,c,s[n],a,f,l);break;case"chart":if(p=tF(u,r,i,c,s[n],a,f,l),!p||!p["!drawel"])break;var m=wf(p["!drawel"].Target,r),d=Nf(m),v=Hk(bi(t,m,!0),Tf(bi(t,d,!0),m)),x=wf(v,m),g=Nf(x);p=AA(bi(t,x,!0),x,c,Tf(bi(t,g,!0),x),a,p);break;case"macro":p=rF(u,r,i,c,s[n],a,f,l);break;case"dialog":p=nF(u,r,i,c,s[n],a,f,l);break;default:throw new Error("Unrecognized sheet type "+h)}o[n]=p;var w=[];s&&s[n]&&Jr(s[n]).forEach(function(y){var _="";if(s[n][y].Type==fr.CMNT){_=wf(s[n][y].Target,r);var k=oF(rn(t,_,!0),_,c);if(!k||!k.length)return;L1(p,k,!1)}s[n][y].Type==fr.TCMNT&&(_=wf(s[n][y].Target,r),w=w.concat($k(rn(t,_,!0),c)))}),w&&w.length&&L1(p,w,!0,c.people||[])}catch(y){if(c.WTF)throw y}}function Ri(t){return t.charAt(0)=="/"?t.slice(1):t}function IR(t,r){if(jo(),r=r||{},g0(r),Di(t,"META-INF/manifest.xml")||Di(t,"objectdata.xml"))return K1(t,r);if(Di(t,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Jh<"u"){if(t.FileIndex)return Jh(t);var e=It.utils.cfb_new();return s1(t).forEach(function(J){qt(e,J,Wm(t,J))}),Jh(e)}throw new Error("Unsupported NUMBERS file")}if(!Di(t,"[Content_Types].xml"))throw Di(t,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Di(t,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=s1(t),i=B5(bi(t,"[Content_Types].xml")),s=!1,o,h;if(i.workbooks.length===0&&(h="xl/workbook.xml",rn(t,h,!0)&&i.workbooks.push(h)),i.workbooks.length===0){if(h="xl/workbook.bin",!rn(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(Sf=[],i.sst)try{Sf=aF(rn(t,Ri(i.sst)),i.sst,r)}catch(J){if(r.WTF)throw J}r.cellStyles&&i.themes.length&&(c=sF(bi(t,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],r)),i.style&&(a=iF(rn(t,Ri(i.style)),i.style,c,r))}i.links.map(function(J){try{var H=Tf(bi(t,Nf(Ri(J))),J);return lF(rn(t,Ri(J)),H,J,r)}catch{}});var f=qA(rn(t,Ri(i.workbooks[0])),i.workbooks[0],r),l={},u="";i.coreprops.length&&(u=rn(t,Ri(i.coreprops[0]),!0),u&&(l=gg(u)),i.extprops.length!==0&&(u=rn(t,Ri(i.extprops[0]),!0),u&&z5(u,l,r)));var p={};(!r.bookSheets||r.bookProps)&&i.custprops.length!==0&&(u=bi(t,Ri(i.custprops[0]),!0),u&&(p=V5(u,r)));var m={};if((r.bookSheets||r.bookProps)&&(f.Sheets?o=f.Sheets.map(function(H){return H.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=fF(rn(t,Ri(i.calcchain)),i.calcchain));var v=0,x={},g,w;{var y=f.Sheets;l.Worksheets=y.length,l.SheetNames=[];for(var _=0;_!=y.length;++_)l.SheetNames[_]=y[_].name}var k=s?"bin":"xml",F=i.workbooks[0].lastIndexOf("/"),O=(i.workbooks[0].slice(0,F+1)+"_rels/"+i.workbooks[0].slice(F+1)+".rels").replace(/^\//,"");Di(t,O)||(O="xl/_rels/workbook."+k+".rels");var N=Tf(bi(t,O,!0),O.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(r.xlmeta=cF(rn(t,Ri(i.metadata[0])),i.metadata[0],r)),(i.people||[]).length>=1&&(r.people=Xk(rn(t,Ri(i.people[0])),r)),N&&(N=RR(N,f.Sheets));var U=rn(t,"xl/worksheets/sheet.xml",!0)?1:0;e:for(v=0;v!=l.Worksheets;++v){var z="sheet";if(N&&N[v]?(g="xl/"+N[v][1].replace(/[\/]?xl\//,""),Di(t,g)||(g=N[v][1]),Di(t,g)||(g=O.replace(/_rels\/.*$/,"")+N[v][1]),z=N[v][2]):(g="xl/worksheets/sheet"+(v+1-U)+"."+k,g=g.replace(/sheet0\./,"sheet.")),w=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 W=!1,X=0;X!=r.sheets.length;++X)typeof r.sheets[X]=="number"&&r.sheets[X]==v&&(W=1),typeof r.sheets[X]=="string"&&r.sheets[X].toLowerCase()==l.SheetNames[v].toLowerCase()&&(W=1);if(!W)continue e}}MR(t,g,w,l.SheetNames[v],v,x,o,z,r,f,c,a)}return m={Directory:i,Workbook:f,Props:l,Custprops:p,Deps:d,Sheets:o,SheetNames:l.SheetNames,Strings:Sf,Styles:a,Themes:c,SSF:Br(Ht)},r&&r.bookFiles&&(t.files?(m.keys=n,m.files=t.files):(m.keys=[],m.files={},t.FullPaths.forEach(function(J,H){J=J.replace(/^Root Entry[\/]/,""),m.keys.push(J),m.files[J]=t.FileIndex[H]}))),r&&r.bookVBA&&(i.vba.length>0?m.vbaraw=rn(t,Ri(i.vba[0]),!0):i.defaults&&i.defaults.bin===qk&&(m.vbaraw=rn(t,"xl/vbaProject.bin",!0))),m}function OR(t,r){var e=r||{},n="Workbook",i=It.find(t,n);try{if(n="/!DataSpaces/Version",i=It.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(cS(i.content),n="/!DataSpaces/DataSpaceMap",i=It.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=uS(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=It.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=dS(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=It.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);mS(i.content)}catch{}if(n="/EncryptionInfo",i=It.find(t,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var h=gS(i.content);if(n="/EncryptedPackage",i=It.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 DR(t,r){return r.bookType=="ods"?Tv(t,r):r.bookType=="numbers"?AR(t,r):r.bookType=="xlsb"?NR(t,r):PR(t,r)}function NR(t,r){Mo=1024,t&&!t.SSF&&(t.SSF=Br(Ht)),t&&t.SSF&&(jo(),Fc(t.SSF),r.revssf=Mc(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,kf?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var e=r.bookType=="xlsb"?"bin":"xml",n=tv.indexOf(r.bookType)>-1,i=r0();v0(r=r||{});var s=zu(),o="",h=0;if(r.cellXfs=[],ua(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",qt(s,o,vg(t.Props,r)),i.coreprops.push(o),kr(r.rels,2,o,fr.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,qt(s,o,wg(t.Props)),i.extprops.push(o),kr(r.rels,3,o,fr.EXT_PROPS),t.Custprops!==t.Props&&Jr(t.Custprops||{}).length>0&&(o="docProps/custom.xml",qt(s,o,yg(t.Custprops)),i.custprops.push(o),kr(r.rels,4,o,fr.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,qt(s,o,uF(h-1,o,r,t,f)),i.sheets.push(o),kr(r.wbrels,-1,"worksheets/sheet"+h+"."+e,fr.WS[0])}if(l){var p=l["!comments"],m=!1,d="";p&&p.length>0&&(d="xl/comments"+h+"."+e,qt(s,d,mF(p,d)),i.comments.push(d),kr(f,-1,"../comments"+h+"."+e,fr.CMNT),m=!0),l["!legacy"]&&m&&qt(s,"xl/drawings/vmlDrawing"+h+".vml",qg(h,l["!comments"])),delete l["!comments"],delete l["!legacy"]}f["!id"].rId1&&qt(s,Nf(o),Oo(f))}return r.Strings!=null&&r.Strings.length>0&&(o="xl/sharedStrings."+e,qt(s,o,pF(r.Strings,o,r)),i.strs.push(o),kr(r.wbrels,-1,"sharedStrings."+e,fr.SST)),o="xl/workbook."+e,qt(s,o,hF(t,o)),i.workbooks.push(o),kr(r.rels,1,o,fr.WB),o="xl/theme/theme1.xml",qt(s,o,f0(t.Themes,r)),i.themes.push(o),kr(r.wbrels,-1,"theme/theme1.xml",fr.THEME),o="xl/styles."+e,qt(s,o,dF(t,o,r)),i.styles.push(o),kr(r.wbrels,-1,"styles."+e,fr.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",qt(s,o,t.vbaraw),i.vba.push(o),kr(r.wbrels,-1,"vbaProject.bin",fr.VBA)),o="xl/metadata."+e,qt(s,o,gF(o)),i.metadata.push(o),kr(r.wbrels,-1,"metadata."+e,fr.XLMETA),qt(s,"[Content_Types].xml",pg(i,r)),qt(s,"_rels/.rels",Oo(r.rels)),qt(s,"xl/_rels/workbook."+e+".rels",Oo(r.wbrels)),delete r.revssf,delete r.ssf,s}function PR(t,r){Mo=1024,t&&!t.SSF&&(t.SSF=Br(Ht)),t&&t.SSF&&(jo(),Fc(t.SSF),r.revssf=Mc(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,kf?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var e="xml",n=tv.indexOf(r.bookType)>-1,i=r0();v0(r=r||{});var s=zu(),o="",h=0;if(r.cellXfs=[],ua(r.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),o="docProps/core.xml",qt(s,o,vg(t.Props,r)),i.coreprops.push(o),kr(r.rels,2,o,fr.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,qt(s,o,wg(t.Props)),i.extprops.push(o),kr(r.rels,3,o,fr.EXT_PROPS),t.Custprops!==t.Props&&Jr(t.Custprops||{}).length>0&&(o="docProps/custom.xml",qt(s,o,yg(t.Custprops)),i.custprops.push(o),kr(r.rels,4,o,fr.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,qt(s,o,uv(h-1,r,t,l)),i.sheets.push(o),kr(r.wbrels,-1,"worksheets/sheet"+h+"."+e,fr.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(w){w.T==!0&&(x=!0)})}),x&&(v="xl/threadedComments/threadedComment"+h+"."+e,qt(s,v,zk(m,f,r)),i.threadedcomments.push(v),kr(l,-1,"../threadedComments/threadedComment"+h+"."+e,fr.TCMNT)),v="xl/comments"+h+"."+e,qt(s,v,ev(m)),i.comments.push(v),kr(l,-1,"../comments"+h+"."+e,fr.CMNT),d=!0}u["!legacy"]&&d&&qt(s,"xl/drawings/vmlDrawing"+h+".vml",qg(h,u["!comments"])),delete u["!comments"],delete u["!legacy"]}l["!id"].rId1&&qt(s,Nf(o),Oo(l))}return r.Strings!=null&&r.Strings.length>0&&(o="xl/sharedStrings."+e,qt(s,o,Hg(r.Strings,r)),i.strs.push(o),kr(r.wbrels,-1,"sharedStrings."+e,fr.SST)),o="xl/workbook."+e,qt(s,o,vv(t)),i.workbooks.push(o),kr(r.rels,1,o,fr.WB),o="xl/theme/theme1.xml",qt(s,o,f0(t.Themes,r)),i.themes.push(o),kr(r.wbrels,-1,"theme/theme1.xml",fr.THEME),o="xl/styles."+e,qt(s,o,Yg(t,r)),i.styles.push(o),kr(r.wbrels,-1,"styles."+e,fr.STY),t.vbaraw&&n&&(o="xl/vbaProject.bin",qt(s,o,t.vbaraw),i.vba.push(o),kr(r.wbrels,-1,"vbaProject.bin",fr.VBA)),o="xl/metadata."+e,qt(s,o,Qg()),i.metadata.push(o),kr(r.wbrels,-1,"metadata."+e,fr.XLMETA),f.length>1&&(o="xl/persons/person.xml",qt(s,o,Vk(f)),i.people.push(o),kr(r.wbrels,-1,"persons/person.xml",fr.PEOPLE)),qt(s,"[Content_Types].xml",pg(i,r)),qt(s,"_rels/.rels",Oo(r.rels)),qt(s,"xl/_rels/workbook."+e+".rels",Oo(r.wbrels)),delete r.revssf,delete r.ssf,s}function x0(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=wi(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 BR(t,r){return It.find(t,"EncryptedPackage")?OR(t,r):yv(t,r)}function LR(t,r){var e,n=t,i=r||{};return i.type||(i.type=nr&&Buffer.isBuffer(t)?"buffer":"base64"),e=$m(n,i),IR(e,i)}function kv(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 _u(t.slice(e),r);default:break e}return Po.to_workbook(t,r)}function UR(t,r){var e="",n=x0(t,r);switch(r.type){case"base64":e=wi(t);break;case"binary":e=t;break;case"buffer":e=t.toString("binary");break;case"array":e=Ba(t);break;default:throw new Error("Unrecognized type "+r.type)}return n[0]==239&&n[1]==187&&n[2]==191&&(e=Fr(e)),r.type="binary",kv(e,r)}function jR(t,r){var e=t;return r.type=="base64"&&(e=wi(e)),e=ra.utils.decode(1200,e.slice(2),"str"),r.type="binary",kv(e,r)}function HR(t){return t.match(/[^\x00-\x7F]/)?ds(t):t}function Qh(t,r,e,n){return n?(e.type="string",Po.to_workbook(t,e)):Po.to_workbook(r,e)}function Su(t,r){Uu();var e=r||{};if(typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer)return Su(new Uint8Array(t),(e=Br(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),No={},e.dateNF&&(No.dateNF=e.dateNF),e.type||(e.type=nr&&Buffer.isBuffer(t)?"buffer":"base64"),e.type=="file"&&(e.type=nr?"buffer":"binary",n=P8(t),typeof Uint8Array<"u"&&!nr&&(e.type="array")),e.type=="string"&&(s=!0,e.type="binary",e.codepage=65001,n=HR(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=Br(e),e.type="array",Su(ju(n),e)}switch((i=x0(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 BR(It.read(n,e),e);break;case 9:if(i[1]<=8)return yv(n,e);break;case 60:return _u(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 GT(n,e);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return Ug.to_workbook(n,e);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?LR(n,e):Qh(t,n,e,s);case 239:return i[3]===60?_u(n,e):Qh(t,n,e,s);case 255:if(i[1]===254)return jR(n,e);if(i[1]===0&&i[2]===2&&i[3]===0)return Oa.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 Oa.to_workbook(n,e);break;case 3:case 131:case 139:case 140:return yu.to_workbook(n,e);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return Vg.to_workbook(n,e);break;case 10:case 13:case 32:return UR(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 VT.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?yu.to_workbook(n,e):Qh(t,n,e,s)}function Cv(t,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return Xf(r.file,It.write(t,{type:nr?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return It.write(t,r)}function WR(t,r){var e=Br(r||{}),n=DR(t,e);return $R(n,e)}function $R(t,r){var e={},n=nr?"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?It.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(Ac(i))}return r.password&&typeof encrypt_agile<"u"?Cv(encrypt_agile(i,r.password),r):r.type==="file"?Xf(r.file,i):r.type=="string"?Fr(i):i}function zR(t,r){var e=r||{},n=WF(t,e);return Cv(n,e)}function hs(t,r,e){e||(e="");var n=e+t;switch(r.type){case"base64":return Ff(ds(n));case"binary":return ds(n);case"string":return t;case"file":return Xf(r.file,n,"utf8");case"buffer":return nr?Us(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):hs(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function XR(t,r){switch(r.type){case"base64":return Ff(t);case"binary":return t;case"string":return t;case"file":return Xf(r.file,t,"binary");case"buffer":return nr?Us(t,"binary"):t.split("").map(function(e){return e.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function ec(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"?Ff(e):r.type=="string"?Fr(e):e;case"file":return Xf(r.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+r.type)}}function Av(t,r){Uu(),LA(t);var e=Br(r||{});if(e.cellStyles&&(e.cellNF=!0,e.sheetStubs=!0),e.type=="array"){e.type="binary";var n=Av(t,e);return e.type="array",Ac(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 hs(NF(t,e),e);case"slk":case"sylk":return hs(Lg.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"htm":case"html":return hs(cR(t.Sheets[t.SheetNames[i]],e),e);case"txt":return XR(KR(t.Sheets[t.SheetNames[i]],e),e);case"csv":return hs(Rv(t.Sheets[t.SheetNames[i]],e),e,"\uFEFF");case"dif":return hs(Ug.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"dbf":return ec(yu.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"prn":return hs(Po.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"rtf":return hs(Vg.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"eth":return hs(jg.from_sheet(t.Sheets[t.SheetNames[i]],e),e);case"fods":return hs(Tv(t,e),e);case"wk1":return ec(Oa.sheet_to_wk1(t.Sheets[t.SheetNames[i]],e),e);case"wk3":return ec(Oa.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),ec(_v(t,e),e);case"biff5":e.biff||(e.biff=5);case"biff8":case"xla":case"xls":return e.biff||(e.biff=8),zR(t,e);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return WR(t,e);default:throw new Error("Unrecognized bookType |"+e.bookType+"|")}}function VR(t,r,e,n,i,s,o,h){var c=wn(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:oa(m,d,h);d!=null&&(l=!1)}}return{row:u,isempty:l}}function Fv(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=Er(f);break;case"number":c=Er(t["!ref"]),c.s.r=f;break;default:c=f}n>0&&(i=0);var l=wn(c.s.r),u=[],p=[],m=0,d=0,v=Array.isArray(t),x=c.s.r,g=0,w={};v&&!t[x]&&(t[x]=[]);var y=a.skipHidden&&t["!cols"]||[],_=a.skipHidden&&t["!rows"]||[];for(g=c.s.c;g<=c.e.c;++g)if(!(y[g]||{}).hidden)switch(u[g]=an(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=oa(e,null,a),d=w[o]||0,!d)w[o]=1;else{do h=o+"_"+d++;while(w[h]);w[o]=d,w[h]=1}s[g]=h}for(x=c.s.r+i;x<=c.e.r;++x)if(!(_[x]||{}).hidden){var k=VR(t,c,x,u,n,s,v,a);(k.isempty===!1||(n===1?a.blankrows!==!1:a.blankrows))&&(p[m++]=k.row)}return p.length=m,p}var q1=/"/g;function GR(t,r,e,n,i,s,o,h){for(var c=!0,a=[],f="",l=wn(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:oa(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(q1,'""')+'"';break}f=="ID"&&(f='"ID"')}else p.f!=null&&!p.F?(c=!1,f="="+p.f,f.indexOf(",")>=0&&(f='"'+f.replace(q1,'""')+'"')):f="";a.push(f)}return h.blankrows===!1&&c?null:a.join(o)}function Rv(t,r){var e=[],n=r??{};if(t==null||t["!ref"]==null)return"";var i=Er(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]=an(m));for(var d=0,v=i.s.r;v<=i.e.r;++v)(p[v]||{}).hidden||(f=GR(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 KR(t,r){r||(r={}),r.FS=" ",r.RS=`
|
||
`;var e=Rv(t,r);return e}function Mv(){return{SheetNames:[],Sheets:{}}}function Iv(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(gv(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 qh=["#FFFFFF","#000000","#BFBFBF","#323232","#4472C4","#ED7D31","#A5A5A5","#FFC000","#5B9BD5","#71AD47"],eu=["#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 YR=80,ZR=24;function dM(t,r={}){return JR(r4(t),r)}function JR(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 pM(t,r){try{if(r){const n=Su(t,{type:"array"});t=Av(n,{bookType:"xlsx",type:"array"})}return new M6.Workbook().xlsx.load(t)}catch(e){return console.warn(e),Promise.reject(e)}}function QR(t,r,e){for(let n=0;n<(t.columns||[]).length;n++)r.cols[n.toString()]={},t.columns[n].width?r.cols[n.toString()].width=t.columns[n].width*6+(e.widthOffset||0):r.cols[n.toString()].width=YR+(e.widthOffset||0);r.cols.len=Math.max(Object.keys(r.cols).length,e.minColLength||0)}function qR(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 Sa(e).format("YYYY-MM-DD");case"mm-dd-yy":return Sa(e).format("YYYY/MM/DD");case"[$-F800]dddd, mmmm dd, yyyy":return Sa(e).format("YYYY年M月D日 ddd");case'm"月"d"日";@':return Sa(e).format("M月D日");case"yyyy/m/d h:mm;@":case'm/d/yy "h":mm':return Sa(e).subtract(8,"hour").format("YYYY/M/DD HH:mm");case"h:mm;@":return Sa(e).format("HH:mm");default:return Sa(e).format("YYYY-MM-DD")}case 5:return e.text;case 6:return Pu.get(e,"result.error")||e.result;case 8:return t.text;case 9:return t.text.toUpperCase();default:return e}}function tu(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,Rt(`rgba(${r.r}, ${r.g}, ${r.b}, ${r.a})`).toHexString()}catch(e){console.warn(e)}}function ru(t,r){return t>9?"#C7C9CC":typeof r>"u"?qh[t]:r>0?n8(qh[t],r):r8(qh[t],Math.abs(r))}function eM(t){t.style=Pu.cloneDeep(t.style);let r=null;t.style.fill&&t.style.fill.fgColor&&(t.style.fill.fgColor.argb?r=tu(t.style.fill.fgColor.argb):t.style.fill.fgColor.hasOwnProperty("theme")?r=ru(t.style.fill.fgColor.theme,t.style.fill.fgColor.tint):t.style.fill.fgColor.indexed?r=eu[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=tu(t.style.font.color.argb):t.style.font.color.hasOwnProperty("theme")?e=ru(t.style.font.color.theme,t.style.font.color.tint):t.style.font.color.indexed?e=eu[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=tu(s.color.argb):s.color.hasOwnProperty("theme")?o=ru(s.color.theme,s.color.tint):s.color.indexed&&(o=eu[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 mM(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 c in i._merges){s.merges.push(i._merges[c].shortRange);let a={};a.startAddress=i._merges[c].tl,a.endAddress=i._merges[c].br,a.YRange=i._merges[c].model.bottom-i._merges[c].model.top,a.XRange=i._merges[c].model.right-i._merges[c].model.left,o.push(a)}QR(i,s,r),(i._rows||[]).forEach((c,a)=>{s.rows[a]={cells:{}},c.height?s.rows[a].height=c.height+(r.heightOffset||0):s.rows[a].height=ZR+(r.heightOffset||0),(c._cells||[]).forEach((f,l)=>{s.rows[a].cells[l]={};let u=Pu.find(o,function(p){return p.startAddress==f._address});u&&f.master.address!=u.startAddress||(u&&(s.rows[a].cells[l].merge=[u.YRange,u.XRange]),s.rows[a].cells[l].text=qR(f),s.styles.push(eM(f)),s.rows[a].cells[l].style=s.styles.length-1)})}),s._media&&(s.media=s._media);let h=Object.keys(s.rows);s.rows.len=Math.max(+h[h.length-1]+1,r.hasOwnProperty("minRowLength")?r.minRowLength:100),e.push(s)}),t._worksheets=n,{workbookData:e,workbookSource:t,medias:t.media||[]}}let nc=[];function gM(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=tM(e,h,n,i);rM(t,o,r[o],a)}})}let ic=60,sc=25,nu=80,iu=24,us=window.devicePixelRatio;function tM(t,r,e,n){var F,O,N,U,z,W,X,J,H,I,M,E,A,B;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=ic,m=sc;for(let L=0;L<a;L++)p+=((O=(F=t==null?void 0:t._columns)==null?void 0:F[L])==null?void 0:O.width)*6||nu,p+=i||0;for(let L=0;L<l;L++)m+=((U=(N=t==null?void 0:t._rows)==null?void 0:N[L])==null?void 0:U.height)||iu,m+=s||0;let d=p+f/12700,v=m+u/12700,{nativeCol:x=0,nativeColOff:g=0,nativeRow:w=0,nativeRowOff:y=0}=h||{},_=0;if(a===x)_=(g-f)/12700;else if(h){_=(((W=(z=t==null?void 0:t._columns)==null?void 0:z[a])==null?void 0:W.width)*6||nu)-f/12700;for(let L=a+1;L<x;L++)_+=((J=(X=t==null?void 0:t._columns)==null?void 0:X[L])==null?void 0:J.width)*6||nu;_+=g/12700}else c!=null&&c.width&&(_=c.width/1.333333);let k;if(l===w)k=(y-u)/12700;else if(h){k=(((I=(H=t==null?void 0:t._rows)==null?void 0:H[l])==null?void 0:I.height)||iu)-u/12700;for(let L=l+1;L<w;L++)k+=((E=(M=t==null?void 0:t._rows)==null?void 0:M[L])==null?void 0:E.height)||iu;k+=y/12700}else c!=null&&c.height&&(k=c.height/1.333333);return{x:(d-(((A=e==null?void 0:e.scroll)==null?void 0:A.x)||0))*us,y:(v-(((B=e==null?void 0:e.scroll)==null?void 0:B.y)||0))*us,width:_*us,height:k*us}}function vM(){nc=[]}function rM(t,r,e,n){nM(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<ic*us){let d=ic*us-a;a=ic*us,l-=d,h-=d/p,s+=d/p}if(f<sc*us){let d=sc*us-f;f=sc*us,u-=d,c-=d/m,o+=d/m}t.drawImage(i,s,o,h,c,a,f,l,u)}).catch(i=>{console.error(i)})}function nM(t,r){return new Promise((e,n)=>{if(nc[t])return e(nc[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),nc[t]=h},h.onerror=function(c){n(c)}})}function xM(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{F6 as S,gM as a,pM as b,vM as c,dM as g,Pu as l,xM as r,mM as t};
|