@gopowerteam/table-render 0.0.141 → 0.0.143
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1 -57
- package/dist/cjs/table-render/index.d.ts +17 -0
- package/dist/es/index.mjs +814 -33999
- package/dist/es/table-render/index.d.ts +17 -0
- package/package.json +3 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,57 +1 @@
|
|
|
1
|
-
"use strict";var ur=Object.defineProperty;var cr=(H,nt,s)=>nt in H?ur(H,nt,{enumerable:!0,configurable:!0,writable:!0,value:s}):H[nt]=s;var Re=(H,nt,s)=>(cr(H,typeof nt!="symbol"?nt+"":nt,s),s);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const dt=require("vue"),ge=require("@arco-design/web-vue"),Pe=require("@gopowerteam/modal-render"),Xe=require("dayjs"),ir=require("@gopowerteam/form-render"),fr=require("./resolver.cjs");function hr(H,nt,s){const[C,..._]=nt.index?nt.index.split(".").reverse():[nt.key],d=_.reverse().reduce((a,o)=>a==null?void 0:a[o],H);d[C]=s}function dr(H){const nt=dt.ref([]),s=_=>{const d=H.filter(a=>a.formatter);return d.length>0?_.map(a=>(d.forEach(o=>{o.formatter&&hr(a,o,o.formatter(a))}),a)):_};return[nt,_=>{nt.value=s(_)}]}function pr(H){return H.filter(nt=>nt.form).map(nt=>({key:nt.key,title:nt.title,...typeof nt.form=="boolean"?{}:nt.form}))}function mr(H){const nt=dt.getCurrentInstance(),s=dt.ref();function C(){var d,a;const _=(a=(d=nt==null?void 0:nt.proxy)==null?void 0:d.$refs)==null?void 0:a[H];_&&(s.value=_)}return dt.onMounted(C),dt.onUpdated(C),s}function sr(H){return(nt,s)=>H[nt](s)}class Ke{constructor(nt=1,s=10){Re(this,"data",dt.reactive({index:1,size:10,total:0}));Re(this,"pageSizeOpts",[10,20,30,40,50]);Re(this,"pageLayouts",["PrevJump","PrevPage","JumpNumber","NextPage","NextJump","Sizes","FullJump","Total"]);this.pageIndex=nt,this.pageSize=s}get pageIndex(){return this.data.index}set pageIndex(nt){this.data.index=nt}get pageSize(){return this.data.size}set pageSize(nt){this.data.size=nt}get total(){return this.data.total}set total(nt){this.data.total=nt}reset(){this.pageIndex=1}before(nt){nt.paramsQuery={...nt.paramsQuery,page:this.pageIndex-1,size:this.pageSize}}after(nt){var s;this.total=(s=nt.data)==null?void 0:s.totalElements}}var Zt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qe(H){throw new Error('Could not dynamically require "'+H+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var ar={exports:{}};/*! ExcelJS 19-10-2023 */(function(H,nt){(function(s){H.exports=s()})(function(){return function s(C,_,d){function a(t,e){if(!_[t]){if(!C[t]){var l=typeof qe=="function"&&qe;if(!e&&l)return l(t,!0);if(o)return o(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=_[t]={exports:{}};C[t][0].call(i.exports,function(c){return a(C[t][1][c]||c)},i,i.exports,s,C,_,d)}return _[t].exports}for(var o=typeof qe=="function"&&qe,r=0;r<d.length;r++)a(d[r]);return a}({1:[function(s,C,_){const d=s("fs"),a=s("fast-csv"),o=s("dayjs/plugin/customParseFormat"),r=s("dayjs/plugin/utc"),t=s("dayjs").extend(o).extend(r),e=s("../utils/stream-buf"),{fs:{exists:l}}=s("../utils/utils"),n={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!"}};C.exports=class{constructor(i){this.workbook=i,this.worksheet=null}async readFile(i,c){if(c=c||{},!await l(i))throw new Error("File not found: "+i);const f=d.createReadStream(i),u=await this.read(f,c);return f.close(),u}read(i,c){return c=c||{},new Promise((f,u)=>{const p=this.workbook.addWorksheet(c.sheetName),h=c.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],w=c.map||function(R){if(R==="")return null;const N=Number(R);if(!Number.isNaN(N)&&N!==1/0)return N;const F=h.reduce((P,B)=>{if(P)return P;const $=t(R,B,!0);return $.isValid()?$:null},null);if(F)return new Date(F.valueOf());const I=n[R];return I!==void 0?I:R},x=a.parse(c.parserOptions).on("data",R=>{p.addRow(R.map(w))}).on("end",()=>{x.emit("worksheet",p)});x.on("worksheet",f).on("error",u),i.pipe(x)})}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(i,c){return new Promise((f,u)=>{c=c||{};const p=this.workbook.getWorksheet(c.sheetName||c.sheetId),h=a.format(c.formatterOptions);i.on("finish",()=>{f()}),h.on("error",u),h.pipe(i);const{dateFormat:w,dateUTC:x}=c,R=c.map||(I=>{if(I){if(I.text||I.hyperlink)return I.hyperlink||I.text||"";if(I.formula||I.result)return I.result||"";if(I instanceof Date)return w?x?t.utc(I).format(w):t(I).format(w):x?t.utc(I).format():t(I).format();if(I.error)return I.error;if(typeof I=="object")return JSON.stringify(I)}return I}),N=c.includeEmptyRows===void 0||c.includeEmptyRows;let F=1;p&&p.eachRow((I,P)=>{if(N)for(;F++<P-1;)h.write([]);const{values:B}=I;B.shift(),h.write(B.map(R)),F=P}),h.end()})}writeFile(i,c){const f={encoding:(c=c||{}).encoding||"utf8"},u=d.createWriteStream(i,f);return this.write(u,c)}async writeBuffer(i){const c=new e;return await this.write(c,i),c.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(s,C,_){const d=s("../utils/col-cache");class a{constructor(r,t){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=r,t)if(typeof t=="string"){const l=d.decodeAddress(t);this.nativeCol=l.col+e,this.nativeColOff=0,this.nativeRow=l.row+e,this.nativeRowOff=0}else t.nativeCol!==void 0?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):t.col!==void 0?(this.col=t.col+e,this.row=t.row+e):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(r){return r instanceof a||r==null?r:new a(r)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(r){this.nativeCol=Math.floor(r),this.nativeColOff=Math.floor((r-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(r){this.nativeRow=Math.floor(r),this.nativeRowOff=Math.floor((r-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(r){this.nativeCol=r.nativeCol,this.nativeColOff=r.nativeColOff,this.nativeRow=r.nativeRow,this.nativeRowOff=r.nativeRowOff}}C.exports=a},{"../utils/col-cache":19}],3:[function(s,C,_){const d=s("../utils/col-cache"),a=s("../utils/under-dash"),o=s("./enums"),{slideFormula:r}=s("../utils/shared-formula"),t=s("./note");class e{constructor(i,c,f){if(!i||!c)throw new Error("A Cell needs a Row");this._row=i,this._column=c,d.validateAddress(f),this._address=f,this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(i.style,c.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(i){this.style.numFmt=i}get font(){return this.style.font}set font(i){this.style.font=i}get alignment(){return this.style.alignment}set alignment(i){this.style.alignment=i}get border(){return this.style.border}set border(i){this.style.border=i}get fill(){return this.style.fill}set fill(i){this.style.fill=i}get protection(){return this.style.protection}set protection(i){this.style.protection=i}_mergeStyle(i,c,f){const u=i&&i.numFmt||c&&c.numFmt;u&&(f.numFmt=u);const p=i&&i.font||c&&c.font;p&&(f.font=p);const h=i&&i.alignment||c&&c.alignment;h&&(f.alignment=h);const w=i&&i.border||c&&c.border;w&&(f.border=w);const x=i&&i.fill||c&&c.fill;x&&(f.fill=x);const R=i&&i.protection||c&&c.protection;return R&&(f.protection=R),f}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===e.Types.Merge}merge(i,c){this._value.release(),this._value=l.create(e.Types.Merge,this,i),c||(this.style=i.style)}unmerge(){this.type===e.Types.Merge&&(this._value.release(),this._value=l.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(i){return this._value.type===e.Types.Merge&&this._value.isMergedTo(i)}get master(){return this.type===e.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===e.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(i){this.type!==e.Types.Merge?(this._value.release(),this._value=l.create(l.getType(i),this,i)):this._value.master.value=i}get note(){return this._comment&&this._comment.note}set note(i){this._comment=new t(i)}get text(){return this._value.toString()}get html(){return a.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(i){this.type===e.Types.String&&(this._value=l.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:i}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:i}=this._row;return{sheetName:i.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(i){this.names=[i]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(i){const{definedNames:c}=this.workbook;c.removeAllNames(this.fullAddress),i.forEach(f=>{c.addEx(this.fullAddress,f)})}addName(i){this.workbook.definedNames.addEx(this.fullAddress,i)}removeName(i){this.workbook.definedNames.removeEx(this.fullAddress,i)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(i){this._dataValidations.add(this.address,i)}get model(){const{model:i}=this._value;return i.style=this.style,this._comment&&(i.comment=this._comment.model),i}set model(i){if(this._value.release(),this._value=l.create(i.type,this),this._value.model=i,i.comment)switch(i.comment.type){case"note":this._comment=t.fromModel(i.comment)}i.style?this.style=i.style:this.style={}}}e.Types=o.ValueType;const l={getType:n=>n==null?e.Types.Null:n instanceof String||typeof n=="string"?e.Types.String:typeof n=="number"?e.Types.Number:typeof n=="boolean"?e.Types.Boolean:n instanceof Date?e.Types.Date:n.text&&n.hyperlink?e.Types.Hyperlink:n.formula||n.sharedFormula?e.Types.Formula:n.richText?e.Types.RichText:n.sharedString?e.Types.SharedString:n.error?e.Types.Error:e.Types.JSON,types:[{t:e.Types.Null,f:class{constructor(n){this.model={address:n.address,type:e.Types.Null}}get value(){return null}set value(n){}get type(){return e.Types.Null}get effectiveType(){return e.Types.Null}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return""}release(){}toString(){return""}}},{t:e.Types.Number,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Number,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Number}get effectiveType(){return e.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()}}},{t:e.Types.String,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.String}get effectiveType(){return e.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}}},{t:e.Types.Date,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Date,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Date}get effectiveType(){return e.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()}}},{t:e.Types.Hyperlink,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.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 e.Types.Hyperlink}get effectiveType(){return e.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}}},{t:e.Types.Formula,f:class{constructor(n,i){this.cell=n,this.model={address:n.address,type:e.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}_copyModel(n){const i={},c=f=>{const u=n[f];u&&(i[f]=u)};return c("formula"),c("result"),c("ref"),c("shareType"),c("sharedFormula"),i}get value(){return this._copyModel(this.model)}set value(n){this.model=this._copyModel(n)}validate(n){switch(l.getType(n)){case e.Types.Null:case e.Types.String:case e.Types.Number:case e.Types.Date:break;case e.Types.Hyperlink:case e.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(n){this.model.formula=n}get formulaType(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}get result(){return this.model.result}set result(n){this.model.result=n}get type(){return e.Types.Formula}get effectiveType(){const n=this.model.result;return n==null?o.ValueType.Null:n instanceof String||typeof n=="string"?o.ValueType.String:typeof n=="number"?o.ValueType.Number:n instanceof Date?o.ValueType.Date:n.text&&n.hyperlink?o.ValueType.Hyperlink:n.formula?o.ValueType.Formula:o.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,i=n.findCell(this.model.sharedFormula);this._translatedFormula=i&&r(i.formula,i.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:e.Types.Merge,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}get value(){return this._master.value}set value(n){n instanceof e?(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 e.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()}}},{t:e.Types.JSON,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:JSON.stringify(i),rawValue:i}}get value(){return this.model.rawValue}set value(n){this.model.rawValue=n,this.model.value=JSON.stringify(n)}get type(){return e.Types.String}get effectiveType(){return e.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}}},{t:e.Types.SharedString,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.SharedString,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.SharedString}get effectiveType(){return e.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()}}},{t:e.Types.RichText,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.String,value:i}}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 e.Types.RichText}get effectiveType(){return e.Types.RichText}get address(){return this.model.address}set address(n){this.model.address=n}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:e.Types.Boolean,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Boolean,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Boolean}get effectiveType(){return e.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()}}},{t:e.Types.Error,f:class{constructor(n,i){this.model={address:n.address,type:e.Types.Error,value:i}}get value(){return this.model.value}set value(n){this.model.value=n}get type(){return e.Types.Error}get effectiveType(){return e.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()}}}].reduce((n,i)=>(n[i.t]=i.f,n),[]),create(n,i,c){const f=this.types[n];if(!f)throw new Error("Could not create Value of type "+n);return new f(i,c)}};C.exports=e},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(s,C,_){const d=s("../utils/under-dash"),a=s("./enums"),o=s("../utils/col-cache");class r{constructor(e,l,n){this._worksheet=e,this._number=l,n!==!1&&(this.defn=n)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return o.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=e.width!==void 0?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){e!==void 0?(this._header=e,this.headers.forEach((l,n)=>{this._worksheet.getCell(n+1,this.number).value=l})):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}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(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&d.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,l){const n=this.number;l||(l=e,e=null),this._worksheet.eachRow(e,(i,c)=>{l(i.getCell(n),c)})}get values(){const e=[];return this.eachCell((l,n)=>{l&&l.type!==a.ValueType.Null&&(e[n]=l.value)}),e}set values(e){if(!e)return;const l=this.number;let n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((i,c)=>{this._worksheet.getCell(c+n,l).value=i})}_applyStyle(e,l){return this.style[e]=l,this.eachCell(n=>{n[e]=l}),l}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const l=[];let n=null;return e&&e.forEach((i,c)=>{i.isDefault?n&&(n=null):n&&i.equivalentTo(n)?n.max=c+1:(n={min:c+1,max:c+1,width:i.width!==void 0?i.width:9,style:i.style,isCustomWidth:i.isCustomWidth,hidden:i.hidden,outlineLevel:i.outlineLevel,collapsed:i.collapsed},l.push(n))}),l.length?l:void 0}static fromModel(e,l){const n=[];let i=1,c=0;for(l=(l=l||[]).sort(function(f,u){return f.min-u.min});c<l.length;){const f=l[c++];for(;i<f.min;)n.push(new r(e,i++));for(;i<=f.max;)n.push(new r(e,i++,f))}return n.length?n:null}}C.exports=r},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(s,C,_){C.exports=class{constructor(d){this.model=d||{}}add(d,a){return this.model[d]=a}find(d){return this.model[d]}remove(d){this.model[d]=void 0}}},{}],6:[function(s,C,_){const d=s("../utils/under-dash"),a=s("../utils/col-cache"),o=s("../utils/cell-matrix"),r=s("./range"),t=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;C.exports=class{constructor(){this.matrixMap={}}getMatrix(e){return this.matrixMap[e]||(this.matrixMap[e]=new o)}add(e,l){const n=a.decodeEx(e);this.addEx(n,l)}addEx(e,l){const n=this.getMatrix(l);if(e.top)for(let i=e.left;i<=e.right;i++)for(let c=e.top;c<=e.bottom;c++){const f={sheetName:e.sheetName,address:a.n2l(i)+c,row:c,col:i};n.addCellEx(f)}else n.addCellEx(e)}remove(e,l){const n=a.decodeEx(e);this.removeEx(n,l)}removeEx(e,l){this.getMatrix(l).removeCellEx(e)}removeAllNames(e){d.each(this.matrixMap,l=>{l.removeCellEx(e)})}forEach(e){d.each(this.matrixMap,(l,n)=>{l.forEach(i=>{e(n,i)})})}getNames(e){return this.getNamesEx(a.decodeEx(e))}getNamesEx(e){return d.map(this.matrixMap,(l,n)=>l.findCellEx(e)&&n).filter(Boolean)}_explore(e,l){l.mark=!1;const{sheetName:n}=l,i=new r(l.row,l.col,l.row,l.col,n);let c,f;function u(h,w){const x=e.findCellAt(n,h,l.col);return!(!x||!x.mark)&&(i[w]=h,x.mark=!1,!0)}for(f=l.row-1;u(f,"top");f--);for(f=l.row+1;u(f,"bottom");f++);function p(h,w){const x=[];for(f=i.top;f<=i.bottom;f++){const R=e.findCellAt(n,f,h);if(!R||!R.mark)return!1;x.push(R)}i[w]=h;for(let R=0;R<x.length;R++)x[R].mark=!1;return!0}for(c=l.col-1;p(c,"left");c--);for(c=l.col+1;p(c,"right");c++);return i}getRanges(e,l){return(l=l||this.matrixMap[e])?(l.forEach(n=>{n.mark=!0}),{name:e,ranges:l.map(n=>n.mark&&this._explore(l,n)).filter(Boolean).map(n=>n.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,l){e.forEachInSheet(l,(n,i,c)=>{n&&(n.row===i&&n.col===c||(n.row=i,n.col=c,n.address=a.n2l(c)+i))})}spliceRows(e,l,n,i){d.each(this.matrixMap,c=>{c.spliceRows(e,l,n,i),this.normaliseMatrix(c,e)})}spliceColumns(e,l,n,i){d.each(this.matrixMap,c=>{c.spliceColumns(e,l,n,i),this.normaliseMatrix(c,e)})}get model(){return d.map(this.matrixMap,(e,l)=>this.getRanges(l,e)).filter(e=>e.ranges.length)}set model(e){const l=this.matrixMap={};e.forEach(n=>{const i=l[n.name]=new o;n.ranges.forEach(c=>{t.test(c.split("!").pop()||"")&&i.addCell(c)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(s,C,_){C.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(s,C,_){const d=s("../utils/col-cache"),a=s("./anchor");C.exports=class{constructor(o,r){this.worksheet=o,this.model=r}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(o){let{type:r,imageId:t,range:e,hyperlinks:l}=o;if(this.type=r,this.imageId=t,r==="image")if(typeof e=="string"){const n=d.decode(e);this.range={tl:new a(this.worksheet,{col:n.left,row:n.top},-1),br:new a(this.worksheet,{col:n.right,row:n.bottom},0),editAs:"oneCell"}}else this.range={tl:new a(this.worksheet,e.tl,0),br:e.br&&new a(this.worksheet,e.br,0),ext:e.ext,editAs:e.editAs,hyperlinks:l||e.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(s,C,_){const d=s("../utils/under-dash");class a{constructor(r){this.note=r}get model(){let r=null;switch(typeof this.note){case"string":r={type:"note",note:{texts:[{text:this.note}]}};break;default:r={type:"note",note:this.note}}return d.deepMerge({},a.DEFAULT_CONFIGS,r)}set model(r){const{note:t}=r,{texts:e}=t;e.length===1&&Object.keys(e[0]).length===1?this.note=e[0].text:this.note=t}static fromModel(r){const t=new a;return t.model=r,t}}a.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},C.exports=a},{"../utils/under-dash":26}],10:[function(s,C,_){const d=s("../utils/col-cache");class a{constructor(){this.decode(arguments)}setTLBR(r,t,e,l,n){if(arguments.length<4){const i=d.decodeAddress(r),c=d.decodeAddress(t);this.model={top:Math.min(i.row,c.row),left:Math.min(i.col,c.col),bottom:Math.max(i.row,c.row),right:Math.max(i.col,c.col),sheetName:e},this.setTLBR(i.row,i.col,c.row,c.col,n)}else this.model={top:Math.min(r,e),left:Math.min(t,l),bottom:Math.max(r,e),right:Math.max(t,l),sheetName:n}}decode(r){switch(r.length){case 5:this.setTLBR(r[0],r[1],r[2],r[3],r[4]);break;case 4:this.setTLBR(r[0],r[1],r[2],r[3]);break;case 3:this.setTLBR(r[0],r[1],r[2]);break;case 2:this.setTLBR(r[0],r[1]);break;case 1:{const t=r[0];if(t instanceof a)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=d.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.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() - "+r.length)}}get top(){return this.model.top||1}set top(r){this.model.top=r}get left(){return this.model.left||1}set left(r){this.model.left=r}get bottom(){return this.model.bottom||1}set bottom(r){this.model.bottom=r}get right(){return this.model.right||1}set right(r){this.model.right=r}get sheetName(){return this.model.sheetName}set sheetName(r){this.model.sheetName=r}get _serialisedSheetName(){const{sheetName:r}=this.model;return r?/^[a-zA-Z0-9]*$/.test(r)?r+"!":`'${r}'!`:""}expand(r,t,e,l){(!this.model.top||r<this.top)&&(this.top=r),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||e>this.bottom)&&(this.bottom=e),(!this.model.right||l>this.right)&&(this.right=l)}expandRow(r){if(r){const{dimensions:t,number:e}=r;t&&this.expand(e,t.min,e,t.max)}}expandToAddress(r){const t=d.decodeEx(r);this.expand(t.row,t.col,t.row,t.col)}get tl(){return d.n2l(this.left)+this.top}get $t$l(){return`$${d.n2l(this.left)}$${this.top}`}get br(){return d.n2l(this.right)+this.bottom}get $b$r(){return`$${d.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(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&!(r.bottom<this.top)&&!(r.top>this.bottom)&&!(r.right<this.left)&&!(r.left>this.right)}contains(r){const t=d.decodeEx(r);return this.containsEx(t)}containsEx(r){return(!r.sheetName||!this.sheetName||r.sheetName===this.sheetName)&&r.row>=this.top&&r.row<=this.bottom&&r.col>=this.left&&r.col<=this.right}forEachAddress(r){for(let t=this.left;t<=this.right;t++)for(let e=this.top;e<=this.bottom;e++)r(d.encodeAddress(e,t),e,t)}}C.exports=a},{"../utils/col-cache":19}],11:[function(s,C,_){const d=s("../utils/under-dash"),a=s("./enums"),o=s("../utils/col-cache"),r=s("./cell");C.exports=class{constructor(t,e){this._worksheet=t,this._number=e,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(t){return this._cells[t-1]}getCellEx(t){let e=this._cells[t.col-1];if(!e){const l=this._worksheet.getColumn(t.col);e=new r(this,l,t.address),this._cells[t.col-1]=e}return e}getCell(t){if(typeof t=="string"){const e=this._worksheet.getColumnKey(t);t=e?e.number:o.l2n(t)}return this._cells[t-1]||this.getCellEx({address:o.encodeAddress(this._number,t),row:this._number,col:t})}splice(t,e){const l=t+e;for(var n=arguments.length,i=new Array(n>2?n-2:0),c=2;c<n;c++)i[c-2]=arguments[c];const f=i.length-e,u=this._cells.length;let p,h,w;if(f<0)for(p=t+i.length;p<=u;p++)w=this._cells[p-1],h=this._cells[p-f-1],h?(w=this.getCell(p),w.value=h.value,w.style=h.style,w._comment=h._comment):w&&(w.value=null,w.style={},w._comment=void 0);else if(f>0)for(p=u;p>=l;p--)h=this._cells[p-1],h?(w=this.getCell(p+f),w.value=h.value,w.style=h.style,w._comment=h._comment):this._cells[p+f-1]=void 0;for(p=0;p<i.length;p++)w=this.getCell(t+p),w.value=i[p],w.style={},w._comment=void 0}eachCell(t,e){if(e||(e=t,t=null),t&&t.includeEmpty){const l=this._cells.length;for(let n=1;n<=l;n++)e(this.getCell(n),n)}else this._cells.forEach((l,n)=>{l&&l.type!==a.ValueType.Null&&e(l,n+1)})}addPageBreak(t,e){const l=this._worksheet,n=Math.max(0,t-1)||0,i=Math.max(0,e-1)||16838,c={id:this._number,max:i,man:1};n&&(c.min=n),l.rowBreaks.push(c)}get values(){const t=[];return this._cells.forEach(e=>{e&&e.type!==a.ValueType.Null&&(t[e.col]=e.value)}),t}set values(t){if(this._cells=[],t)if(t instanceof Array){let e=0;t.hasOwnProperty("0")&&(e=1),t.forEach((l,n)=>{l!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,n+e),row:this._number,col:n+e}).value=l)})}else this._worksheet.eachColumnKey((e,l)=>{t[l]!==void 0&&(this.getCellEx({address:o.encodeAddress(this._number,e.number),row:this._number,col:e.number}).value=t[l])})}get hasValues(){return d.some(this._cells,t=>t&&t.type!==a.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let t=0;return this.eachCell(()=>{t++}),t}get dimensions(){let t=0,e=0;return this._cells.forEach(l=>{l&&l.type!==a.ValueType.Null&&((!t||t>l.col)&&(t=l.col),e<l.col&&(e=l.col))}),t>0?{min:t,max:e}:null}_applyStyle(t,e){return this.style[t]=e,this._cells.forEach(l=>{l&&(l[t]=e)}),e}get numFmt(){return this.style.numFmt}set numFmt(t){this._applyStyle("numFmt",t)}get font(){return this.style.font}set font(t){this._applyStyle("font",t)}get alignment(){return this.style.alignment}set alignment(t){this._applyStyle("alignment",t)}get protection(){return this.style.protection}set protection(t){this._applyStyle("protection",t)}get border(){return this.style.border}set border(t){this._applyStyle("border",t)}get fill(){return this.style.fill}set fill(t){this._applyStyle("fill",t)}get hidden(){return!!this._hidden}set hidden(t){this._hidden=t}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(t){this._outlineLevel=t}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const t=[];let e=0,l=0;return this._cells.forEach(n=>{if(n){const i=n.model;i&&((!e||e>n.col)&&(e=n.col),l<n.col&&(l=n.col),t.push(i))}}),this.height||t.length?{cells:t,number:this.number,min:e,max:l,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(t){if(t.number!==this._number)throw new Error("Invalid row number in model");let e;this._cells=[],t.cells.forEach(l=>{switch(l.type){case r.Types.Merge:break;default:{let n;if(l.address)n=o.decodeAddress(l.address);else if(e){const{row:i}=e,c=e.col+1;n={row:i,col:c,address:o.encodeAddress(i,c),$col$row:`$${o.n2l(c)}$${i}`}}e=n,this.getCellEx(n).model=l;break}}}),t.height?this.height=t.height:delete this.height,this.hidden=t.hidden,this.outlineLevel=t.outlineLevel||0,this.style=t.style&&JSON.parse(JSON.stringify(t.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(s,C,_){const d=s("../utils/col-cache");class a{constructor(r,t,e){this.table=r,this.column=t,this.index=e}_set(r,t){this.table.cacheState(),this.column[r]=t}get name(){return this.column.name}set name(r){this._set("name",r)}get filterButton(){return this.column.filterButton}set filterButton(r){this.column.filterButton=r}get style(){return this.column.style}set style(r){this.column.style=r}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(r){this._set("totalsRowLabel",r)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(r){this._set("totalsRowFunction",r)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(r){this._set("totalsRowResult",r)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(r){this._set("totalsRowFormula",r)}}C.exports=class{constructor(o,r){this.worksheet=o,r&&(this.table=r,this.validate(),this.store())}getFormula(o){switch(o.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${o.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${o.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${o.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${o.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${o.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${o.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${o.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${o.name}])`;case"custom":return o.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+o.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:o}=this,r=(f,u,p)=>{f[u]===void 0&&(f[u]=p)};r(o,"headerRow",!0),r(o,"totalsRow",!1),r(o,"style",{}),r(o.style,"theme","TableStyleMedium2"),r(o.style,"showFirstColumn",!1),r(o.style,"showLastColumn",!1),r(o.style,"showRowStripes",!1),r(o.style,"showColumnStripes",!1);const t=(f,u)=>{if(!f)throw new Error(u)};t(o.ref,"Table must have ref"),t(o.columns,"Table must have column definitions"),t(o.rows,"Table must have row definitions"),o.tl=d.decodeAddress(o.ref);const{row:e,col:l}=o.tl;t(e>0,"Table must be on valid row"),t(l>0,"Table must be on valid col");const{width:n,filterHeight:i,tableHeight:c}=this;o.autoFilterRef=d.encode(e,l,e+i-1,l+n-1),o.tableRef=d.encode(e,l,e+c-1,l+n-1),o.columns.forEach((f,u)=>{t(f.name,`Column ${u} must have a name`),u===0?r(f,"totalsRowLabel","Total"):(r(f,"totalsRowFunction","none"),f.totalsRowFormula=this.getFormula(f))})}store(){const o=(i,c)=>{c&&Object.keys(c).forEach(f=>{i[f]=c[f]})},{worksheet:r,table:t}=this,{row:e,col:l}=t.tl;let n=0;if(t.headerRow){const i=r.getRow(e+n++);t.columns.forEach((c,f)=>{const{style:u,name:p}=c,h=i.getCell(l+f);h.value=p,o(h,u)})}if(t.rows.forEach(i=>{const c=r.getRow(e+n++);i.forEach((f,u)=>{const p=c.getCell(l+u);p.value=f,o(p,t.columns[u].style)})}),t.totalsRow){const i=r.getRow(e+n++);t.columns.forEach((c,f)=>{const u=i.getCell(l+f);if(f===0)u.value=c.totalsRowLabel;else{const p=this.getFormula(c);u.value=p?{formula:c.totalsRowFormula,result:c.totalsRowResult}:null}o(u,c.style)})}}load(o){const{table:r}=this,{row:t,col:e}=r.tl;let l=0;if(r.headerRow){const n=o.getRow(t+l++);r.columns.forEach((i,c)=>{n.getCell(e+c).value=i.name})}if(r.rows.forEach(n=>{const i=o.getRow(t+l++);n.forEach((c,f)=>{i.getCell(e+f).value=c})}),r.totalsRow){const n=o.getRow(t+l++);r.columns.forEach((i,c)=>{const f=n.getCell(e+c);c===0?f.value=i.totalsRowLabel:this.getFormula(i)&&(f.value={formula:i.totalsRowFormula,result:i.totalsRowResult})})}}get model(){return this.table}set model(o){this.table=o}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const o=d.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let r=0;r<this._cache.tableHeight;r++){const t=this.worksheet.getRow(o.row+r);for(let e=0;e<this._cache.width;e++)t.getCell(o.col+e).value=null}else{for(let r=this.tableHeight;r<this._cache.tableHeight;r++){const t=this.worksheet.getRow(o.row+r);for(let e=0;e<this._cache.width;e++)t.getCell(o.col+e).value=null}for(let r=0;r<this.tableHeight;r++){const t=this.worksheet.getRow(o.row+r);for(let e=this.width;e<this._cache.width;e++)t.getCell(o.col+e).value=null}}this.store()}addRow(o,r){this.cacheState(),r===void 0?this.table.rows.push(o):this.table.rows.splice(r,0,o)}removeRows(o){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(o,r)}getColumn(o){const r=this.table.columns[o];return new a(this,r,o)}addColumn(o,r,t){this.cacheState(),t===void 0?(this.table.columns.push(o),this.table.rows.forEach((e,l)=>{e.push(r[l])})):(this.table.columns.splice(t,0,o),this.table.rows.forEach((e,l)=>{e.splice(t,0,r[l])}))}removeColumns(o){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(o,r),this.table.rows.forEach(t=>{t.splice(o,r)})}_assign(o,r,t){this.cacheState(),o[r]=t}get ref(){return this.table.ref}set ref(o){this._assign(this.table,"ref",o)}get name(){return this.table.name}set name(o){this.table.name=o}get displayName(){return this.table.displyName||this.table.name}set displayNamename(o){this.table.displayName=o}get headerRow(){return this.table.headerRow}set headerRow(o){this._assign(this.table,"headerRow",o)}get totalsRow(){return this.table.totalsRow}set totalsRow(o){this._assign(this.table,"totalsRow",o)}get theme(){return this.table.style.name}set theme(o){this.table.style.name=o}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(o){this.table.style.showFirstColumn=o}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(o){this.table.style.showLastColumn=o}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(o){this.table.style.showRowStripes=o}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(o){this.table.style.showColumnStripes=o}}},{"../utils/col-cache":19}],13:[function(s,C,_){const d=s("./worksheet"),a=s("./defined-names"),o=s("../xlsx/xlsx"),r=s("../csv/csv");C.exports=class{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 a}get xlsx(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}get csv(){return this._csv||(this._csv=new r(this)),this._csv}get nextId(){for(let t=1;t<this._worksheets.length;t++)if(!this._worksheets[t])return t;return this._worksheets.length||1}addWorksheet(t,e){const l=this.nextId;e&&(typeof e=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),e={properties:{tabColor:{argb:e}}}):(e.argb||e.theme||e.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),e={properties:{tabColor:e}}));const n=this._worksheets.reduce((f,u)=>(u&&u.orderNo)>f?u.orderNo:f,0),i=Object.assign({},e,{id:l,name:t,orderNo:n+1,workbook:this}),c=new d(i);return this._worksheets[l]=c,c}removeWorksheetEx(t){delete this._worksheets[t.id]}removeWorksheet(t){const e=this.getWorksheet(t);e&&e.destroy()}getWorksheet(t){return t===void 0?this._worksheets.find(Boolean):typeof t=="number"?this._worksheets[t]:typeof t=="string"?this._worksheets.find(e=>e&&e.name===t):void 0}get worksheets(){return this._worksheets.slice(1).sort((t,e)=>t.orderNo-e.orderNo).filter(Boolean)}eachSheet(t){this.worksheets.forEach(e=>{t(e,e.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(t){const e=this.media.length;return this.media.push(Object.assign({},t,{type:"image"})),e}getImage(t){return this.media[t]}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(t=>t.model),sheets:this.worksheets.map(t=>t.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(t){this.creator=t.creator,this.lastModifiedBy=t.lastModifiedBy,this.lastPrinted=t.lastPrinted,this.created=t.created,this.modified=t.modified,this.company=t.company,this.manager=t.manager,this.title=t.title,this.subject=t.subject,this.keywords=t.keywords,this.category=t.category,this.description=t.description,this.language=t.language,this.revision=t.revision,this.contentStatus=t.contentStatus,this.properties=t.properties,this.calcProperties=t.calcProperties,this._worksheets=[],t.worksheets.forEach(e=>{const{id:l,name:n,state:i}=e,c=t.sheets&&t.sheets.findIndex(f=>f.id===l);(this._worksheets[l]=new d({id:l,name:n,orderNo:c,state:i,workbook:this})).model=e}),this._definedNames.model=t.definedNames,this.views=t.views,this._themes=t.themes,this.media=t.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(s,C,_){const d=s("../utils/under-dash"),a=s("../utils/col-cache"),o=s("./range"),r=s("./row"),t=s("./column"),e=s("./enums"),l=s("./image"),n=s("./table"),i=s("./data-validations"),c=s("../utils/encryptor"),{copyStyle:f}=s("../utils/copy-style");C.exports=class{constructor(u){u=u||{},this._workbook=u.workbook,this.id=u.id,this.orderNo=u.orderNo,this.name=u.name,this.state=u.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},u.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:!(!u.pageSetup||!u.pageSetup.fitToWidth&&!u.pageSetup.fitToHeight||u.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},u.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},u.headerFooter),this.dataValidations=new i,this.views=u.views||[],this.autoFilter=u.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(u){if(u===void 0&&(u="sheet"+this.id),this._name!==u){if(typeof u!="string")throw new Error("The name has to be a string.");if(u==="")throw new Error("The name can't be empty.");if(u==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(u))throw new Error(`Worksheet name ${u} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(u))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+u);if(u&&u.length>31&&(console.warn(`Worksheet name ${u} exceeds 31 chars. This will be truncated`),u=u.substring(0,31)),this._workbook._worksheets.find(p=>p&&p.name.toLowerCase()===u.toLowerCase()))throw new Error("Worksheet name already exists: "+u);this._name=u}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const u=new o;return this._rows.forEach(p=>{if(p){const h=p.dimensions;h&&u.expand(p.number,h.min,p.number,h.max)}}),u}get columns(){return this._columns}set columns(u){this._headerRowCount=u.reduce((w,x)=>{const R=(x.header?1:x.headers&&x.headers.length)||0;return Math.max(w,R)},0);let p=1;const h=this._columns=[];u.forEach(w=>{const x=new t(this,p++,!1);h.push(x),x.defn=w})}getColumnKey(u){return this._keys[u]}setColumnKey(u,p){this._keys[u]=p}deleteColumnKey(u){delete this._keys[u]}eachColumnKey(u){d.each(this._keys,u)}getColumn(u){if(typeof u=="string"){const p=this._keys[u];if(p)return p;u=a.l2n(u)}if(this._columns||(this._columns=[]),u>this._columns.length){let p=this._columns.length+1;for(;p<=u;)this._columns.push(new t(this,p++))}return this._columns[u-1]}spliceColumns(u,p){const h=this._rows.length;for(var w=arguments.length,x=new Array(w>2?w-2:0),R=2;R<w;R++)x[R-2]=arguments[R];if(x.length>0)for(let P=0;P<h;P++){const B=[u,p];x.forEach(D=>{B.push(D[P]||null)});const $=this.getRow(P+1);$.splice.apply($,B)}else this._rows.forEach(P=>{P&&P.splice(u,p)});const N=x.length-p,F=u+p,I=this._columns.length;if(N<0)for(let P=u+x.length;P<=I;P++)this.getColumn(P).defn=this.getColumn(P-N).defn;else if(N>0)for(let P=I;P>=F;P--)this.getColumn(P+N).defn=this.getColumn(P).defn;for(let P=u;P<u+x.length;P++)this.getColumn(P).defn=null;this.workbook.definedNames.spliceColumns(this.name,u,p,x.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let u=0;return this.eachRow(p=>{u=Math.max(u,p.cellCount)}),u}get actualColumnCount(){const u=[];let p=0;return this.eachRow(h=>{h.eachCell(w=>{let{col:x}=w;u[x]||(u[x]=!0,p++)})}),p}_commitRow(){}get _lastRowNumber(){const u=this._rows;let p=u.length;for(;p>0&&u[p-1]===void 0;)p--;return p}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(u){return this._rows[u-1]}findRows(u,p){return this._rows.slice(u-1,u-1+p)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let u=0;return this.eachRow(()=>{u++}),u}getRow(u){let p=this._rows[u-1];return p||(p=this._rows[u-1]=new r(this,u)),p}getRows(u,p){if(p<1)return;const h=[];for(let w=u;w<u+p;w++)h.push(this.getRow(w));return h}addRow(u){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const h=this._nextRow,w=this.getRow(h);return w.values=u,this._setStyleOption(h,p[0]==="i"?p:"n"),w}addRows(u){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const h=[];return u.forEach(w=>{h.push(this.addRow(w,p))}),h}insertRow(u,p){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(u,0,p),this._setStyleOption(u,h),this.getRow(u)}insertRows(u,p){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(u,0,...p),h!=="n")for(let w=0;w<p.length;w++)h[0]==="o"&&this.findRow(p.length+u+w)!==void 0?this._copyStyle(p.length+u+w,u+w,h[1]==="+"):h[0]==="i"&&this.findRow(u-1)!==void 0&&this._copyStyle(u-1,u+w,h[1]==="+");return this.getRows(u,p.length)}_setStyleOption(u){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";p[0]==="o"&&this.findRow(u+1)!==void 0?this._copyStyle(u+1,u,p[1]==="+"):p[0]==="i"&&this.findRow(u-1)!==void 0&&this._copyStyle(u-1,u,p[1]==="+")}_copyStyle(u,p){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this.getRow(u),x=this.getRow(p);x.style=f(w.style),w.eachCell({includeEmpty:h},(R,N)=>{x.getCell(N).style=f(R.style)}),x.height=w.height}duplicateRow(u,p){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const w=this._rows[u-1],x=new Array(p).fill(w.values);this.spliceRows(u+1,h?0:p,...x);for(let R=0;R<p;R++){const N=this._rows[u+R];N.style=w.style,N.height=w.height,w.eachCell({includeEmpty:!0},(F,I)=>{N.getCell(I).style=F.style})}}spliceRows(u,p){const h=u+p;for(var w=arguments.length,x=new Array(w>2?w-2:0),R=2;R<w;R++)x[R-2]=arguments[R];const N=x.length,F=N-p,I=this._rows.length;let P,B;if(F<0)for(u===I&&(this._rows[I-1]=void 0),P=h;P<=I;P++)if(B=this._rows[P-1],B){const $=this.getRow(P+F);$.values=B.values,$.style=B.style,$.height=B.height,B.eachCell({includeEmpty:!0},(D,S)=>{$.getCell(S).style=D.style}),this._rows[P-1]=void 0}else this._rows[P+F-1]=void 0;else if(F>0)for(P=I;P>=h;P--)if(B=this._rows[P-1],B){const $=this.getRow(P+F);$.values=B.values,$.style=B.style,$.height=B.height,B.eachCell({includeEmpty:!0},(D,S)=>{if($.getCell(S).style=D.style,D._value.constructor.name==="MergeValue"){const T=this.getRow(D._row._number+N).getCell(S),v=D._value._master,m=this.getRow(v._row._number+N).getCell(v._column._number);T.merge(m)}})}else this._rows[P+F-1]=void 0;for(P=0;P<N;P++){const $=this.getRow(u+P);$.style={},$.values=x[P]}this.workbook.definedNames.spliceRows(this.name,u,p,N)}eachRow(u,p){if(p||(p=u,u=void 0),u&&u.includeEmpty){const h=this._rows.length;for(let w=1;w<=h;w++)p(this.getRow(w),w)}else this._rows.forEach(h=>{h&&h.hasValues&&p(h,h.number)})}getSheetValues(){const u=[];return this._rows.forEach(p=>{p&&(u[p.number]=p.values)}),u}findCell(u,p){const h=a.getAddress(u,p),w=this._rows[h.row-1];return w?w.findCell(h.col):void 0}getCell(u,p){const h=a.getAddress(u,p);return this.getRow(h.row).getCellEx(h)}mergeCells(){for(var u=arguments.length,p=new Array(u),h=0;h<u;h++)p[h]=arguments[h];const w=new o(p);this._mergeCellsInternal(w)}mergeCellsWithoutStyle(){for(var u=arguments.length,p=new Array(u),h=0;h<u;h++)p[h]=arguments[h];const w=new o(p);this._mergeCellsInternal(w,!0)}_mergeCellsInternal(u,p){d.each(this._merges,w=>{if(w.intersects(u))throw new Error("Cannot merge already merged cells")});const h=this.getCell(u.top,u.left);for(let w=u.top;w<=u.bottom;w++)for(let x=u.left;x<=u.right;x++)(w>u.top||x>u.left)&&this.getCell(w,x).merge(h,p);this._merges[h.address]=u}_unMergeMaster(u){const p=this._merges[u.address];if(p){for(let h=p.top;h<=p.bottom;h++)for(let w=p.left;w<=p.right;w++)this.getCell(h,w).unmerge();delete this._merges[u.address]}}get hasMerges(){return d.some(this._merges,Boolean)}unMergeCells(){for(var u=arguments.length,p=new Array(u),h=0;h<u;h++)p[h]=arguments[h];const w=new o(p);for(let x=w.top;x<=w.bottom;x++)for(let R=w.left;R<=w.right;R++){const N=this.findCell(x,R);N&&(N.type===e.ValueType.Merge?this._unMergeMaster(N.master):this._merges[N.address]&&this._unMergeMaster(N))}}fillFormula(u,p,h){let w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const x=a.decode(u),{top:R,left:N,bottom:F,right:I}=x,P=I-N+1,B=a.encodeAddress(R,N),$=w==="shared";let D;D=typeof h=="function"?h:Array.isArray(h)?Array.isArray(h[0])?(T,v)=>h[T-R][v-N]:(T,v)=>h[(T-R)*P+(v-N)]:()=>{};let S=!0;for(let T=R;T<=F;T++)for(let v=N;v<=I;v++)S?(this.getCell(T,v).value={shareType:w,formula:p,ref:u,result:D(T,v)},S=!1):this.getCell(T,v).value=$?{sharedFormula:B,result:D(T,v)}:D(T,v)}addImage(u,p){const h={type:"image",imageId:u,range:p};this._media.push(new l(this,h))}getImages(){return this._media.filter(u=>u.type==="image")}addBackgroundImage(u){const p={type:"background",imageId:u};this._media.push(new l(this,p))}getBackgroundImageId(){const u=this._media.find(p=>p.type==="background");return u&&u.imageId}protect(u,p){return new Promise(h=>{this.sheetProtection={sheet:!0},p&&"spinCount"in p&&(p.spinCount=Number.isFinite(p.spinCount)?Math.round(Math.max(0,p.spinCount)):1e5),u&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=c.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=p&&"spinCount"in p?p.spinCount:1e5,this.sheetProtection.hashValue=c.convertPasswordToHash(u,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),p&&(this.sheetProtection=Object.assign(this.sheetProtection,p),!u&&"spinCount"in p&&delete this.sheetProtection.spinCount),h()})}unprotect(){this.sheetProtection=null}addTable(u){const p=new n(this,u);return this.tables[u.name]=p,p}getTable(u){return this.tables[u]}removeTable(u){delete this.tables[u]}getTables(){return Object.values(this.tables)}addConditionalFormatting(u){this.conditionalFormattings.push(u)}removeConditionalFormatting(u){typeof u=="number"?this.conditionalFormattings.splice(u,1):this.conditionalFormattings=u instanceof Function?this.conditionalFormattings.filter(u):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(u){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=u}get model(){const u={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(w=>w.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(w=>w.model),conditionalFormattings:this.conditionalFormattings};u.cols=t.toModel(this.columns);const p=u.rows=[],h=u.dimensions=new o;return this._rows.forEach(w=>{const x=w&&w.model;x&&(h.expand(x.number,x.min,x.number,x.max),p.push(x))}),u.merges=[],d.each(this._merges,w=>{u.merges.push(w.range)}),u}_parseRows(u){this._rows=[],u.rows.forEach(p=>{const h=new r(this,p.number);this._rows[h.number-1]=h,h.model=p})}_parseMergeCells(u){d.each(u.mergeCells,p=>{this.mergeCellsWithoutStyle(p)})}set model(u){this.name=u.name,this._columns=t.fromModel(this,u.cols),this._parseRows(u),this._parseMergeCells(u),this.dataValidations=new i(u.dataValidations),this.properties=u.properties,this.pageSetup=u.pageSetup,this.headerFooter=u.headerFooter,this.views=u.views,this.autoFilter=u.autoFilter,this._media=u.media.map(p=>new l(this,p)),this.sheetProtection=u.sheetProtection,this.tables=u.tables.reduce((p,h)=>{const w=new n;return w.model=h,p[h.name]=w,p},{}),this.conditionalFormattings=u.conditionalFormattings}}},{"../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(s,C,_){s("core-js/modules/es.promise"),s("core-js/modules/es.promise.finally"),s("core-js/modules/es.object.assign"),s("core-js/modules/es.object.keys"),s("core-js/modules/es.object.values"),s("core-js/modules/es.symbol"),s("core-js/modules/es.symbol.async-iterator"),s("core-js/modules/es.array.iterator"),s("core-js/modules/es.array.includes"),s("core-js/modules/es.array.find-index"),s("core-js/modules/es.array.find"),s("core-js/modules/es.string.from-code-point"),s("core-js/modules/es.string.includes"),s("core-js/modules/es.number.is-nan"),s("regenerator-runtime/runtime");const d={Workbook:s("./doc/workbook")},a=s("./doc/enums");Object.keys(a).forEach(o=>{d[o]=a[o]}),C.exports=d},{"./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(s,C,_){const d=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");_.bufferToString=function(a){return typeof a=="string"?a:d?d.decode(a):a.toString()}},{}],17:[function(s,C,_){const d=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:a}=s("buffer");_.stringToBuffer=function(o){return typeof o!="string"?o:d?a.from(d.encode(o).buffer):a.from(o)}},{buffer:220}],18:[function(s,C,_){const d=s("./under-dash"),a=s("./col-cache");C.exports=class{constructor(o){this.template=o,this.sheets={}}addCell(o){this.addCellEx(a.decodeEx(o))}getCell(o){return this.findCellEx(a.decodeEx(o),!0)}findCell(o){return this.findCellEx(a.decodeEx(o),!1)}findCellAt(o,r,t){const e=this.sheets[o],l=e&&e[r];return l&&l[t]}addCellEx(o){if(o.top)for(let r=o.top;r<=o.bottom;r++)for(let t=o.left;t<=o.right;t++)this.getCellAt(o.sheetName,r,t);else this.findCellEx(o,!0)}getCellEx(o){return this.findCellEx(o,!0)}findCellEx(o,r){const t=this.findSheet(o,r),e=this.findSheetRow(t,o,r);return this.findRowCell(e,o,r)}getCellAt(o,r,t){const e=this.sheets[o]||(this.sheets[o]=[]),l=e[r]||(e[r]=[]);return l[t]||(l[t]={sheetName:o,address:a.n2l(t)+r,row:r,col:t})}removeCellEx(o){const r=this.findSheet(o);if(!r)return;const t=this.findSheetRow(r,o);t&&delete t[o.col]}forEachInSheet(o,r){const t=this.sheets[o];t&&t.forEach((e,l)=>{e&&e.forEach((n,i)=>{n&&r(n,l,i)})})}forEach(o){d.each(this.sheets,(r,t)=>{this.forEachInSheet(t,o)})}map(o){const r=[];return this.forEach(t=>{r.push(o(t))}),r}findSheet(o,r){const t=o.sheetName;return this.sheets[t]?this.sheets[t]:r?this.sheets[t]=[]:void 0}findSheetRow(o,r,t){const{row:e}=r;return o&&o[e]?o[e]:t?o[e]=[]:void 0}findRowCell(o,r,t){const{col:e}=r;return o&&o[e]?o[e]:t?o[e]=this.template?Object.assign(r,JSON.parse(JSON.stringify(this.template))):r:void 0}spliceRows(o,r,t,e){const l=this.sheets[o];if(l){const n=[];for(let i=0;i<e;i++)n.push([]);l.splice(r,t,...n)}}spliceColumns(o,r,t,e){const l=this.sheets[o];if(l){const n=[];for(let i=0;i<e;i++)n.push(null);d.each(l,i=>{i.splice(r,t,...n)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(s,C,_){const d=/^[A-Z]+\d+$/,a={_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:o=>o<=26?1:o<=676?2:3,_fill(o){let r,t,e,l,n,i=1;if(o>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&o>=1){for(;i<=26;)r=this._dictionary[i-1],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=1}if(this._l2nFill<2&&o>=2){for(i=27;i<=702;)t=i-27,e=t%26,l=Math.floor(t/26),r=this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=2}if(this._l2nFill<3&&o>=3){for(i=703;i<=16384;)t=i-703,e=t%26,l=Math.floor(t/26)%26,n=Math.floor(t/676),r=this._dictionary[n]+this._dictionary[l]+this._dictionary[e],this._n2l[i]=r,this._l2n[r]=i,i++;this._l2nFill=3}},l2n(o){if(this._l2n[o]||this._fill(o.length),!this._l2n[o])throw new Error("Out of bounds. Invalid column letter: "+o);return this._l2n[o]},n2l(o){if(o<1||o>16384)throw new Error(o+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[o]||this._fill(this._level(o)),this._n2l[o]},_hash:{},validateAddress(o){if(!d.test(o))throw new Error("Invalid Address: "+o);return!0},decodeAddress(o){const r=o.length<5&&this._hash[o];if(r)return r;let t=!1,e="",l=0,n=!1,i="",c=0;for(let u,p=0;p<o.length;p++)if(u=o.charCodeAt(p),!n&&u>=65&&u<=90)t=!0,e+=o[p],l=26*l+u-64;else if(u>=48&&u<=57)n=!0,i+=o[p],c=10*c+u-48;else if(n&&t&&u!==36)break;if(t){if(l>16384)throw new Error("Out of bounds. Invalid column letter: "+e)}else l=void 0;n||(c=void 0);const f={address:o=e+i,col:l,row:c,$col$row:`$${e}$${i}`};return l<=100&&c<=100&&(this._hash[o]=f,this._hash[f.$col$row]=f),f},getAddress(o,r){if(r){const t=this.n2l(r)+o;return this.decodeAddress(t)}return this.decodeAddress(o)},decode(o){const r=o.split(":");if(r.length===2){const t=this.decodeAddress(r[0]),e=this.decodeAddress(r[1]),l={top:Math.min(t.row,e.row),left:Math.min(t.col,e.col),bottom:Math.max(t.row,e.row),right:Math.max(t.col,e.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(o)},decodeEx(o){const r=o.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),t=r[1]||r[2],e=r[3],l=e.split(":");if(l.length>1){let i=this.decodeAddress(l[0]),c=this.decodeAddress(l[1]);const f=Math.min(i.row,c.row),u=Math.min(i.col,c.col),p=Math.max(i.row,c.row),h=Math.max(i.col,c.col);return i=this.n2l(u)+f,c=this.n2l(h)+p,{top:f,left:u,bottom:p,right:h,sheetName:t,tl:{address:i,col:u,row:f,$col$row:`$${this.n2l(u)}$${f}`,sheetName:t},br:{address:c,col:h,row:p,$col$row:`$${this.n2l(h)}$${p}`,sheetName:t},dimensions:`${i}:${c}`}}if(e.startsWith("#"))return t?{sheetName:t,error:e}:{error:e};const n=this.decodeAddress(e);return t?{sheetName:t,...n}:n},encodeAddress:(o,r)=>a.n2l(r)+o,encode(){switch(arguments.length){case 2:return a.encodeAddress(arguments[0],arguments[1]);case 4:return`${a.encodeAddress(arguments[0],arguments[1])}:${a.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(o,r){const[t,e,,l,n]=o,[i,c]=r;return i>=t&&i<=l&&c>=e&&c<=n}};C.exports=a},{}],20:[function(s,C,_){const d=(o,r)=>({...o,...r.reduce((t,e)=>(o[e]&&(t[e]={...o[e]}),t),{})}),a=function(o,r,t){let e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];o[t]&&(r[t]=d(o[t],e))};_.copyStyle=o=>{if(!o)return o;if(r=o,Object.keys(r).length===0)return{};var r;const t={...o};return a(o,t,"font",["color"]),a(o,t,"alignment"),a(o,t,"protection"),o.border&&(a(o,t,"border"),a(o.border,t.border,"top",["color"]),a(o.border,t.border,"left",["color"]),a(o.border,t.border,"bottom",["color"]),a(o.border,t.border,"right",["color"]),a(o.border,t.border,"diagonal",["color"])),o.fill&&(a(o,t,"fill",["fgColor","bgColor","center"]),o.fill.stops&&(t.fill.stops=o.fill.stops.map(e=>d(e,["color"])))),t}},{}],21:[function(s,C,_){(function(d){(function(){const a=s("crypto"),o={hash(r){const t=a.createHash(r);for(var e=arguments.length,l=new Array(e>1?e-1:0),n=1;n<e;n++)l[n-1]=arguments[n];return t.update(d.concat(l)),t.digest()},convertPasswordToHash(r,t,e,l){if(t=t.toLowerCase(),a.getHashes().indexOf(t)<0)throw new Error(`Hash algorithm '${t}' not supported!`);const n=d.from(r,"utf16le");let i=this.hash(t,d.from(e,"base64"),n);for(let c=0;c<l;c++){const f=d.alloc(4);f.writeUInt32LE(c,0),i=this.hash(t,i,f)}return i.toString("base64")},randomBytes:r=>a.randomBytes(r)};C.exports=o}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(s,C,_){const{SaxesParser:d}=s("saxes"),{PassThrough:a}=s("readable-stream"),{bufferToString:o}=s("./browser-buffer-decode");C.exports=async function*(r){r.pipe&&!r[Symbol.asyncIterator]&&(r=r.pipe(new a));const t=new d;let e;t.on("error",n=>{e=n});let l=[];t.on("opentag",n=>l.push({eventType:"opentag",value:n})),t.on("text",n=>l.push({eventType:"text",value:n})),t.on("closetag",n=>l.push({eventType:"closetag",value:n}));for await(const n of r){if(t.write(o(n)),e)throw e;yield l,l=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(s,C,_){const d=s("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;C.exports={slideFormula:function(r,t,e){const l=d.decode(t),n=d.decode(e);return r.replace(a,(i,c,f,u,p)=>{if(p)return i;const h=o.exec(u);if(h){const w=h[1],x=h[2].toUpperCase(),R=h[3],N=h[4];if(x.length>3||x.length===3&&x>"XFD")return i;let F=d.l2n(x),I=parseInt(N,10);return w||(F+=n.col-l.col),R||(I+=n.row-l.row),(c||"")+(w||"")+d.n2l(F)+(R||"")+I}return i})}}},{"./col-cache":19}],24:[function(s,C,_){(function(d,a){(function(){const o=s("readable-stream"),r=s("./utils"),t=s("./string-buf");class e{constructor(u,p){this._data=u,this._encoding=p}get length(){return this.toBuffer().length}copy(u,p,h,w){return this.toBuffer().copy(u,p,h,w)}toBuffer(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}class l{constructor(u){this._data=u}get length(){return this._data.length}copy(u,p,h,w){return this._data._buf.copy(u,p,h,w)}toBuffer(){return this._data.toBuffer()}}class n{constructor(u){this._data=u}get length(){return this._data.length}copy(u,p,h,w){this._data.copy(u,p,h,w)}toBuffer(){return this._data}}class i{constructor(u){this.size=u,this.buffer=a.alloc(u),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const u=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(u,0,this.iRead,this.iWrite),u}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(u){let p;return u===0?null:u===void 0||u>=this.length?(p=this.toBuffer(),this.iRead=this.iWrite,p):(p=a.alloc(u),this.buffer.copy(p,0,this.iRead,u),this.iRead+=u,p)}write(u,p,h){const w=Math.min(h,this.size-this.iWrite);return u.copy(this.buffer,this.iWrite,p,p+w),this.iWrite+=w,w}}const c=function(f){f=f||{},this.bufSize=f.bufSize||1048576,this.buffers=[],this.batch=f.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};r.inherits(c,o.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return a.concat(this.buffers.map(f=>f.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const u=this.buffers[this.buffers.length-1];if(!u.full)return u}const f=new i(this.bufSize);return this.buffers.push(f),f},async _pipe(f){await Promise.all(this.pipes.map(function(u){return new Promise(p=>{u.write(f.toBuffer(),()=>{p()})})}))},_writeToBuffers(f){let u=0;const p=f.length;for(;u<p;)u+=this._getWritableBuffer().write(f,u,p-u)},async write(f,u,p){let h;if(u instanceof Function&&(p=u,u="utf8"),p=p||r.nop,f instanceof t)h=new l(f);else if(f instanceof a)h=new n(f);else{if(!(typeof f=="string"||f instanceof String||f instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");h=new e(f,u)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(h);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(h),d.nextTick(p)):(await this._pipe(h),p());else this.paused||this.emit("data",h.toBuffer()),this._writeToBuffers(h),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(f,u,p){const h=w=>{w?p(w):(this._flush(),this.pipes.forEach(x=>{x.end()}),this.emit("finish"))};f?this.write(f,u,h):h()},read(f){let u;if(f){for(u=[];f&&this.buffers.length&&!this.buffers[0].eod;){const p=this.buffers[0],h=p.read(f);f-=h.length,u.push(h),p.eod&&p.full&&this.buffers.shift()}return a.concat(u)}return u=this.buffers.map(p=>p.toBuffer()).filter(Boolean),this.buffers=[],a.concat(u)},setEncoding(f){this.encoding=f},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(f){this.pipes.push(f),!this.paused&&this.buffers.length&&this.end()},unpipe(f){this.pipes=this.pipes.filter(u=>u!==f)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),C.exports=c}).call(this)}).call(this,s("_process"),s("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(s,C,_){(function(d){(function(){C.exports=class{constructor(a){this._buf=d.alloc(a&&a.size||16384),this._encoding=a&&a.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=d.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(a){a=a||0,this._buffer=void 0,this._inPos=a}_grow(a){let o=2*this._buf.length;for(;o<a;)o*=2;const r=d.alloc(o);this._buf.copy(r,0),this._buf=r}addText(a){this._buffer=void 0;let o=this._inPos+this._buf.write(a,this._inPos,this._encoding);for(;o>=this._buf.length-4;)this._grow(this._inPos+a.length),o=this._inPos+this._buf.write(a,this._inPos,this._encoding);this._inPos=o}addStringBuf(a){a.length&&(this._buffer=void 0,this.length+a.length>this.capacity&&this._grow(this.length+a.length),a._buf.copy(this._buf,this._inPos,0,a.length),this._inPos+=a.length)}}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220}],26:[function(s,C,_){const{toString:d}=Object.prototype,a=/["&<>]/,o={each:function(r,t){r&&(Array.isArray(r)?r.forEach(t):Object.keys(r).forEach(e=>{t(r[e],e)}))},some:function(r,t){return!!r&&(Array.isArray(r)?r.some(t):Object.keys(r).some(e=>t(r[e],e)))},every:function(r,t){return!r||(Array.isArray(r)?r.every(t):Object.keys(r).every(e=>t(r[e],e)))},map:function(r,t){return r?Array.isArray(r)?r.map(t):Object.keys(r).map(e=>t(r[e],e)):[]},keyBy:(r,t)=>r.reduce((e,l)=>(e[l[t]]=l,e),{}),isEqual:function(r,t){const e=typeof r,l=typeof t,n=Array.isArray(r),i=Array.isArray(t);let c;if(e!==l)return!1;switch(typeof r){case"object":if(n||i)return!(!n||!i)&&r.length===t.length&&r.every((f,u)=>{const p=t[u];return o.isEqual(f,p)});if(r===null||t===null)return r===t;if(c=Object.keys(r),Object.keys(t).length!==c.length)return!1;for(const f of c)if(!t.hasOwnProperty(f))return!1;return o.every(r,(f,u)=>{const p=t[u];return o.isEqual(f,p)});default:return r===t}},escapeHtml(r){const t=a.exec(r);if(!t)return r;let e="",l="",n=0,i=t.index;for(;i<r.length;i++){switch(r.charAt(i)){case'"':l=""";break;case"&":l="&";break;case"'":l="'";break;case"<":l="<";break;case">":l=">";break;default:continue}n!==i&&(e+=r.substring(n,i)),n=i+1,e+=l}return n!==i?e+r.substring(n,i):e},strcmp:(r,t)=>r<t?-1:r>t?1:0,isUndefined:r=>d.call(r)==="[object Undefined]",isObject:r=>d.call(r)==="[object Object]",deepMerge(){const r=arguments[0]||{},{length:t}=arguments;let e,l,n;function i(c,f){e=r[f],n=Array.isArray(c),o.isObject(c)||n?(n?(n=!1,l=e&&Array.isArray(e)?e:[]):l=e&&o.isObject(e)?e:{},r[f]=o.deepMerge(l,c)):o.isUndefined(c)||(r[f]=c)}for(let c=0;c<t;c++)o.each(arguments[c],i);return r}};C.exports=o},{}],27:[function(s,C,_){(function(d,a){(function(){const o=s("fs"),r=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,t={nop(){},promiseImmediate:e=>new Promise(l=>{d.setImmediate?a(()=>{l(e)}):setTimeout(()=>{l(e)},1)}),inherits:function(e,l,n,i){e.super_=l,i||(i=n,n=null),n&&Object.keys(n).forEach(f=>{Object.defineProperty(e,f,Object.getOwnPropertyDescriptor(n,f))});const c={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};i&&Object.keys(i).forEach(f=>{c[f]=Object.getOwnPropertyDescriptor(i,f)}),e.prototype=Object.create(l.prototype,c)},dateToExcel:(e,l)=>25569+e.getTime()/864e5-(l?1462:0),excelToDate(e,l){const n=Math.round(24*(e-25569+(l?1462:0))*3600*1e3);return new Date(n)},parsePath(e){const l=e.lastIndexOf("/");return{path:e.substring(0,l),name:e.substring(l+1)}},getRelsPath(e){const l=t.parsePath(e);return`${l.path}/_rels/${l.name}.rels`},xmlEncode(e){const l=r.exec(e);if(!l)return e;let n="",i="",c=0,f=l.index;for(;f<e.length;f++){const u=e.charCodeAt(f);switch(u){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;case 127:i="";break;default:if(u<=31&&(u<=8||u>=11&&u!==13)){i="";break}continue}c!==f&&(n+=e.substring(c,f)),c=f+1,i&&(n+=i)}return c!==f?n+e.substring(c,f):n},xmlDecode:e=>e.replace(/&([a-z]*);/g,l=>{switch(l){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return l}}),validInt(e){const l=parseInt(e,10);return Number.isNaN(l)?0:l},isDateFmt(e){return e?(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:e=>new Promise(l=>{o.access(e,o.constants.F_OK,n=>{l(!n)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>e===!0||e==="true"||e===1||e==="1"};C.exports=t}).call(this)}).call(this,typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{},s("timers").setImmediate)},{fs:216,timers:523}],28:[function(s,C,_){const d=s("./under-dash"),a=s("./utils");function o(e,l,n){e.push(` ${l}="${a.xmlEncode(n.toString())}"`)}function r(e,l){if(l){const n=[];d.each(l,(i,c)=>{i!==void 0&&o(n,c,i)}),e.push(n.join(""))}}class t{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(l){const n=this._xml;n.push("<?xml"),r(n,l),n.push(`?>
|
|
2
|
-
`)}openNode(l,n){const i=this.tos,c=this._xml;i&&this.open&&c.push(">"),this._stack.push(l),c.push("<"),c.push(l),r(c,n),this.leaf=!0,this.open=!0}addAttribute(l,n){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");n!==void 0&&o(this._xml,l,n)}addAttributes(l){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");r(this._xml,l)}writeText(l){const n=this._xml;this.open&&(n.push(">"),this.open=!1),this.leaf=!1,n.push(a.xmlEncode(l.toString()))}writeXml(l){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(l)}closeNode(){const l=this._stack.pop(),n=this._xml;this.leaf?n.push("/>"):(n.push("</"),n.push(l),n.push(">")),this.open=!1,this.leaf=!1}leafNode(l,n,i){this.openNode(l,n),i!==void 0&&this.writeText(i),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 l=this._rollbacks.pop();this._xml.length>l.xml&&this._xml.splice(l.xml,this._xml.length-l.xml),this._stack.length>l.stack&&this._stack.splice(l.stack,this._stack.length-l.stack),this.leaf=l.leaf,this.open=l.open}get xml(){return this.closeAll(),this._xml.join("")}}t.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},C.exports=t},{"./under-dash":26,"./utils":27}],29:[function(s,C,_){(function(d){(function(){const a=s("events"),o=s("jszip"),r=s("./stream-buf"),{stringToBuffer:t}=s("./browser-buffer-encode");class e extends a.EventEmitter{constructor(n){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},n),this.zip=new o,this.stream=new r}append(n,i){i.hasOwnProperty("base64")&&i.base64?this.zip.file(i.name,n,{base64:!0}):(d.browser&&typeof n=="string"&&(n=t(n)),this.zip.file(i.name,n))}async finalize(){const n=await this.zip.generateAsync(this.options);this.stream.end(n),this.emit("finish")}read(n){return this.stream.read(n)}setEncoding(n){return this.stream.setEncoding(n)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(n,i){return this.stream.pipe(n,i)}unpipe(n){return this.stream.unpipe(n)}unshift(n){return this.stream.unshift(n)}wrap(n){return this.stream.wrap(n)}}C.exports={ZipWriter:e}}).call(this)}).call(this,s("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(s,C,_){C.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(s,C,_){C.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(s,C,_){const d=s("../../utils/parse-sax"),a=s("../../utils/xml-stream");class o{prepare(){}render(){}parseOpen(t){}parseText(t){}parseClose(t){}reconcile(t,e){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(t=>{t instanceof o?t.reset():t.xform&&t.xform.reset()})}mergeModel(t){this.model=Object.assign(this.model||{},t)}async parse(t){for await(const e of t)for(const{eventType:l,value:n}of e)if(l==="opentag")this.parseOpen(n);else if(l==="text")this.parseText(n);else if(l==="closetag"&&!this.parseClose(n.name))return this.model;return this.model}async parseStream(t){return this.parse(d(t))}get xml(){return this.toXml(this.model)}toXml(t){const e=new a;return this.render(e,t),e.xml}static toAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(t===void 0){if(l)return e}else if(l||t!==e)return t.toString()}static toStringAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(t,e,l)}static toStringValue(t,e){return t===void 0?e:t}static toBoolAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(t===void 0){if(l)return e}else if(l||t!==e)return t?"1":"0"}static toBoolValue(t,e){return t===void 0?e:t==="1"}static toIntAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(t,e,l)}static toIntValue(t,e){return t===void 0?e:parseInt(t,10)}static toFloatAttribute(t,e){let l=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(t,e,l)}static toFloatValue(t,e){return t===void 0?e:parseFloat(t)}}C.exports=o},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(s,C,_){const d=s("../base-xform"),a=s("../../../utils/col-cache");function o(t){try{return a.decodeEx(t),!0}catch{return!1}}function r(t){const e=[];let l=!1,n="";return t.split(",").forEach(i=>{if(!i)return;const c=(i.match(/'/g)||[]).length;if(!c)return void(l?n+=i+",":o(i)&&e.push(i));const f=c%2==0;!l&&f&&o(i)?e.push(i):l&&!f?(l=!1,o(n+i)&&e.push(n+i),n=""):(l=!0,n+=i+",")}),e}C.exports=class extends d{render(t,e){t.openNode("definedName",{name:e.name,localSheetId:e.localSheetId}),t.writeText(e.ranges.join(",")),t.closeNode()}parseOpen(t){switch(t.name){case"definedName":return this._parsedName=t.attributes.name,this._parsedLocalSheetId=t.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(t){this._parsedText.push(t)}parseClose(){return this.model={name:this._parsedName,ranges:r(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(s,C,_){const d=s("../../../utils/utils"),a=s("../base-xform");C.exports=class extends a{render(o,r){o.leafNode("sheet",{sheetId:r.id,name:r.name,state:r.state,"r:id":r.rId})}parseOpen(o){return o.name==="sheet"&&(this.model={name:d.xmlDecode(o.attributes.name),id:parseInt(o.attributes.sheetId,10),state:o.attributes.state,rId:o.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{render(a,o){a.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:o.fullCalcOnLoad?1:void 0})}parseOpen(a){return a.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{render(a,o){a.leafNode("workbookPr",{date1904:o.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(a){return a.name==="workbookPr"&&(this.model={date1904:a.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{render(a,o){const r={xWindow:o.x||0,yWindow:o.y||0,windowWidth:o.width||12e3,windowHeight:o.height||24e3,firstSheet:o.firstSheet,activeTab:o.activeTab};o.visibility&&o.visibility!=="visible"&&(r.visibility=o.visibility),a.leafNode("workbookView",r)}parseOpen(a){if(a.name==="workbookView"){const o=this.model={},r=function(e,l,n){const i=l!==void 0?o[e]=l:n;i!==void 0&&(o[e]=i)},t=function(e,l,n){const i=l!==void 0?o[e]=parseInt(l,10):n;i!==void 0&&(o[e]=i)};return t("x",a.attributes.xWindow,0),t("y",a.attributes.yWindow,0),t("width",a.attributes.windowWidth,25e3),t("height",a.attributes.windowHeight,1e4),r("visibility",a.attributes.visibility,"visible"),t("activeTab",a.attributes.activeTab,void 0),t("firstSheet",a.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(s,C,_){const d=s("../../../utils/under-dash"),a=s("../../../utils/col-cache"),o=s("../../../utils/xml-stream"),r=s("../base-xform"),t=s("../static-xform"),e=s("../list-xform"),l=s("./defined-name-xform"),n=s("./sheet-xform"),i=s("./workbook-view-xform"),c=s("./workbook-properties-xform"),f=s("./workbook-calc-properties-xform");class u extends r{constructor(){super(),this.map={fileVersion:u.STATIC_XFORMS.fileVersion,workbookPr:new c,bookViews:new e({tag:"bookViews",count:!1,childXform:new i}),sheets:new e({tag:"sheets",count:!1,childXform:new n}),definedNames:new e({tag:"definedNames",count:!1,childXform:new l}),calcPr:new f}}prepare(h){h.sheets=h.worksheets;const w=[];let x=0;h.sheets.forEach(R=>{if(R.pageSetup&&R.pageSetup.printArea&&R.pageSetup.printArea.split("&&").forEach(N=>{const F=N.split(":"),I={name:"_xlnm.Print_Area",ranges:[`'${R.name}'!$${F[0]}:$${F[1]}`],localSheetId:x};w.push(I)}),R.pageSetup&&(R.pageSetup.printTitlesRow||R.pageSetup.printTitlesColumn)){const N=[];if(R.pageSetup.printTitlesColumn){const I=R.pageSetup.printTitlesColumn.split(":");N.push(`'${R.name}'!$${I[0]}:$${I[1]}`)}if(R.pageSetup.printTitlesRow){const I=R.pageSetup.printTitlesRow.split(":");N.push(`'${R.name}'!$${I[0]}:$${I[1]}`)}const F={name:"_xlnm.Print_Titles",ranges:N,localSheetId:x};w.push(F)}x++}),w.length&&(h.definedNames=h.definedNames.concat(w)),(h.media||[]).forEach((R,N)=>{R.name=R.type+(N+1)})}render(h,w){h.openXml(o.StdDocAttributes),h.openNode("workbook",u.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(h),this.map.workbookPr.render(h,w.properties),this.map.bookViews.render(h,w.views),this.map.sheets.render(h,w.sheets),this.map.definedNames.render(h,w.definedNames),this.map.calcPr.render(h,w.calcProperties),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"workbook":return!0;default:return this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h),!0}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){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(h){const w=(h.workbookRels||[]).reduce((I,P)=>(I[P.Id]=P,I),{}),x=[];let R,N=0;(h.sheets||[]).forEach(I=>{const P=w[I.rId];P&&(R=h.worksheetHash["xl/"+P.Target.replace(/^(\s|\/xl\/)+/,"")],R&&(R.name=I.name,R.id=I.id,R.state=I.state,x[N++]=R))});const F=[];d.each(h.definedNames,I=>{if(I.name==="_xlnm.Print_Area"){if(R=x[I.localSheetId],R){R.pageSetup||(R.pageSetup={});const P=a.decodeEx(I.ranges[0]);R.pageSetup.printArea=R.pageSetup.printArea?`${R.pageSetup.printArea}&&${P.dimensions}`:P.dimensions}}else if(I.name==="_xlnm.Print_Titles"){if(R=x[I.localSheetId],R){R.pageSetup||(R.pageSetup={});const P=I.ranges.join(","),B=/\$/g,$=/\$\d+:\$\d+/,D=P.match($);if(D&&D.length){const v=D[0];R.pageSetup.printTitlesRow=v.replace(B,"")}const S=/\$[A-Z]+:\$[A-Z]+/,T=P.match(S);if(T&&T.length){const v=T[0];R.pageSetup.printTitlesColumn=v.replace(B,"")}}}else F.push(I)}),h.definedNames=F,h.media.forEach((I,P)=>{I.index=P})}}u.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"},u.STATIC_XFORMS={fileVersion:new t({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},C.exports=u},{"../../../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(s,C,_){const d=s("../strings/rich-text-xform"),a=s("../../../utils/utils"),o=s("../base-xform"),r=C.exports=function(t){this.model=t};a.inherits(r,o,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new d),this._richTextXform},render(t,e){e=e||this.model,t.openNode("comment",{ref:e.ref,authorId:0}),t.openNode("text"),e&&e.note&&e.note.texts&&e.note.texts.forEach(l=>{this.richTextXform.render(t,l)}),t.closeNode(),t.closeNode()},parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"comment":return this.model={type:"note",note:{texts:[]},...t.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(t),!0;default:return!1}},parseText(t){this.parser&&this.parser.parseText(t)},parseClose(t){switch(t){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(t),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(s,C,_){const d=s("../../../utils/xml-stream"),a=s("../../../utils/utils"),o=s("../base-xform"),r=s("./comment-xform"),t=C.exports=function(){this.map={comment:new r}};a.inherits(t,o,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,l){l=l||this.model,e.openXml(d.StdDocAttributes),e.openNode("comments",t.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),l.comments.forEach(n=>{this.map.comment.render(e,n)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(s,C,_){const d=s("../../base-xform");C.exports=class extends d{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,o,r){(o===r[2]||this.tag==="x:SizeWithCells"&&o===r[1])&&a.leafNode(this.tag)}parseOpen(a){switch(a.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(s,C,_){const d=s("../../base-xform");C.exports=class extends d{constructor(a){super(),this._model=a}get tag(){return this._model&&this._model.tag}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(a){switch(a.name){case this.tag:return this.text="",!0;default:return!1}}parseText(a){this.text=a}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"x:Anchor"}getAnchorRect(a){const o=Math.floor(a.left),r=Math.floor(68*(a.left-o)),t=Math.floor(a.top),e=Math.floor(18*(a.top-t)),l=Math.floor(a.right),n=Math.floor(68*(a.right-l)),i=Math.floor(a.bottom);return[o,r,t,e,l,n,i,Math.floor(18*(a.bottom-i))]}getDefaultRect(a){const o=a.col,r=Math.max(a.row-2,0);return[o,6,r,14,o+2,2,r+4,16]}render(a,o){const r=o.anchor?this.getAnchorRect(o.anchor):this.getDefaultRect(o.refAddress);a.leafNode("x:Anchor",null,r.join(", "))}parseOpen(a){switch(a.name){case this.tag:return this.text="",!0;default:return!1}}parseText(a){this.text=a}parseClose(){return!1}}},{"../base-xform":32}],44:[function(s,C,_){const d=s("../base-xform"),a=s("./vml-anchor-xform"),o=s("./style/vml-protection-xform"),r=s("./style/vml-position-xform"),t=["twoCells","oneCells","absolute"];C.exports=class extends d{constructor(){super(),this.map={"x:Anchor":new a,"x:Locked":new o({tag:"x:Locked"}),"x:LockText":new o({tag:"x:LockText"}),"x:SizeWithCells":new r({tag:"x:SizeWithCells"}),"x:MoveWithCells":new r({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,l){const{protection:n,editAs:i}=l.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,i,t),this.map["x:SizeWithCells"].render(e,i,t),this.map["x:Anchor"].render(e,l),this.map["x:Locked"].render(e,n.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,n.lockText),e.leafNode("x:Row",null,l.refAddress.row-1),e.leafNode("x:Column",null,l.refAddress.col-1),e.closeNode()}parseOpen(e){switch(e.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),l=Object.keys(e).length;this.model.editAs=t[l],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}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(s,C,_){const d=s("../../../utils/xml-stream"),a=s("../base-xform"),o=s("./vml-shape-xform");class r extends a{constructor(){super(),this.map={"v:shape":new o}}get tag(){return"xml"}render(e,l){e.openXml(d.StdDocAttributes),e.openNode(this.tag,r.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),l.comments.forEach((n,i)=>{this.map["v:shape"].render(e,n,i)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}reconcile(e,l){e.anchors.forEach(n=>{n.br?this.map["xdr:twoCellAnchor"].reconcile(n,l):this.map["xdr:oneCellAnchor"].reconcile(n,l)})}}r.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"},C.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(s,C,_){const d=s("../base-xform"),a=s("./vml-textbox-xform"),o=s("./vml-client-data-xform");class r extends d{constructor(){super(),this.map={"v:textbox":new a,"x:ClientData":new o}}get tag(){return"v:shape"}render(e,l,n){e.openNode("v:shape",r.V_SHAPE_ATTRIBUTES(l,n)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,l),this.map["x:ClientData"].render(e,l),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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}}}r.V_SHAPE_ATTRIBUTES=(t,e)=>({id:"_x0000_s"+(1025+e),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":t.note.margins&&t.note.margins.insetmode}),C.exports=r},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"v:textbox"}conversionUnit(a,o,r){return`${parseFloat(a)*o.toFixed(2)}${r}`}reverseConversionUnit(a){return(a||"").split(",").map(o=>Number(parseFloat(this.conversionUnit(parseFloat(o),.1,"")).toFixed(2)))}render(a,o){const r={style:"mso-direction-alt:auto"};if(o&&o.note){let{inset:t}=o.note&&o.note.margins;Array.isArray(t)&&(t=t.map(e=>this.conversionUnit(e,10,"mm")).join(",")),t&&(r.inset=t)}a.openNode("v:textbox",r),a.leafNode("div",{style:"text-align:left"}),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:return this.model={inset:this.reverseConversionUnit(a.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(s,C,_){const d=s("./base-xform");C.exports=class extends d{createNewModel(a){return{}}parseOpen(a){return this.parser=this.parser||this.map[a.name],this.parser?(this.parser.parseOpen(a),!0):a.name===this.tag&&(this.model=this.createNewModel(a),!0)}parseText(a){this.parser&&this.parser.parseText(a)}onParserClose(a,o){this.model[a]=o.model}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.onParserClose(a,this.parser),this.parser=void 0),!0):a!==this.tag}}},{"./base-xform":32}],49:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{render(a,o){a.openNode("HeadingPairs"),a.openNode("vt:vector",{size:2,baseType:"variant"}),a.openNode("vt:variant"),a.leafNode("vt:lpstr",void 0,"Worksheets"),a.closeNode(),a.openNode("vt:variant"),a.leafNode("vt:i4",void 0,o.length),a.closeNode(),a.closeNode(),a.closeNode()}parseOpen(a){return a.name==="HeadingPairs"}parseText(){}parseClose(a){return a!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{render(a,o){a.openNode("TitlesOfParts"),a.openNode("vt:vector",{size:o.length,baseType:"lpstr"}),o.forEach(r=>{a.leafNode("vt:lpstr",void 0,r.name)}),a.closeNode(),a.closeNode()}parseOpen(a){return a.name==="TitlesOfParts"}parseText(){}parseClose(a){return a!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(s,C,_){const d=s("../../../utils/xml-stream"),a=s("../base-xform"),o=s("../simple/string-xform"),r=s("./app-heading-pairs-xform"),t=s("./app-titles-of-parts-xform");class e extends a{constructor(){super(),this.map={Company:new o({tag:"Company"}),Manager:new o({tag:"Manager"}),HeadingPairs:new r,TitleOfParts:new t}}render(n,i){n.openXml(d.StdDocAttributes),n.openNode("Properties",e.PROPERTY_ATTRIBUTES),n.leafNode("Application",void 0,"Microsoft Excel"),n.leafNode("DocSecurity",void 0,"0"),n.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(n,i.worksheets),this.map.TitleOfParts.render(n,i.worksheets),this.map.Company.render(n,i.company||""),this.map.Manager.render(n,i.manager),n.leafNode("LinksUpToDate",void 0,"false"),n.leafNode("SharedDoc",void 0,"false"),n.leafNode("HyperlinksChanged",void 0,"false"),n.leafNode("AppVersion",void 0,"16.0300"),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"Properties":return!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}e.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3,6}/,"")},e.DateAttrs={"xsi:type":"dcterms:W3CDTF"},e.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},C.exports=e},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(s,C,_){const d=s("../../../utils/xml-stream"),a=s("../base-xform");class o extends a{render(t,e){t.openXml(d.StdDocAttributes),t.openNode("Types",o.PROPERTY_ATTRIBUTES);const l={};(e.media||[]).forEach(n=>{if(n.type==="image"){const i=n.extension;l[i]||(l[i]=!0,t.leafNode("Default",{Extension:i,ContentType:"image/"+i}))}}),t.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),t.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),t.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),e.worksheets.forEach(n=>{const i=`/xl/worksheets/sheet${n.id}.xml`;t.leafNode("Override",{PartName:i,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),t.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),t.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),e.sharedStrings&&e.sharedStrings.count&&t.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),e.tables&&e.tables.forEach(n=>{t.leafNode("Override",{PartName:"/xl/tables/"+n.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),e.drawings&&e.drawings.forEach(n=>{t.leafNode("Override",{PartName:`/xl/drawings/${n.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),e.commentRefs&&(t.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),e.commentRefs.forEach(n=>{let{commentName:i}=n;t.leafNode("Override",{PartName:`/xl/${i}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),t.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),t.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),t.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}o.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},C.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(s,C,_){const d=s("../../../utils/xml-stream"),a=s("../base-xform"),o=s("../simple/date-xform"),r=s("../simple/string-xform"),t=s("../simple/integer-xform");class e extends a{constructor(){super(),this.map={"dc:creator":new r({tag:"dc:creator"}),"dc:title":new r({tag:"dc:title"}),"dc:subject":new r({tag:"dc:subject"}),"dc:description":new r({tag:"dc:description"}),"dc:identifier":new r({tag:"dc:identifier"}),"dc:language":new r({tag:"dc:language"}),"cp:keywords":new r({tag:"cp:keywords"}),"cp:category":new r({tag:"cp:category"}),"cp:lastModifiedBy":new r({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new o({tag:"cp:lastPrinted",format:e.DateFormat}),"cp:revision":new t({tag:"cp:revision"}),"cp:version":new r({tag:"cp:version"}),"cp:contentStatus":new r({tag:"cp:contentStatus"}),"cp:contentType":new r({tag:"cp:contentType"}),"dcterms:created":new o({tag:"dcterms:created",attrs:e.DateAttrs,format:e.DateFormat}),"dcterms:modified":new o({tag:"dcterms:modified",attrs:e.DateAttrs,format:e.DateFormat})}}render(n,i){n.openXml(d.StdDocAttributes),n.openNode("cp:coreProperties",e.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(n,i.creator),this.map["dc:title"].render(n,i.title),this.map["dc:subject"].render(n,i.subject),this.map["dc:description"].render(n,i.description),this.map["dc:identifier"].render(n,i.identifier),this.map["dc:language"].render(n,i.language),this.map["cp:keywords"].render(n,i.keywords),this.map["cp:category"].render(n,i.category),this.map["cp:lastModifiedBy"].render(n,i.lastModifiedBy),this.map["cp:lastPrinted"].render(n,i.lastPrinted),this.map["cp:revision"].render(n,i.revision),this.map["cp:version"].render(n,i.version),this.map["cp:contentStatus"].render(n,i.contentStatus),this.map["cp:contentType"].render(n,i.contentType),this.map["dcterms:created"].render(n,i.created),this.map["dcterms:modified"].render(n,i.modified),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[n.name],this.parser)return this.parser.parseOpen(n),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;switch(n){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: "+n)}}}e.DateFormat=function(l){return l.toISOString().replace(/[.]\d{3}/,"")},e.DateAttrs={"xsi:type":"dcterms:W3CDTF"},e.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"},C.exports=e},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{render(a,o){a.leafNode("Relationship",o)}parseOpen(a){switch(a.name){case"Relationship":return this.model=a.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(s,C,_){const d=s("../../../utils/xml-stream"),a=s("../base-xform"),o=s("./relationship-xform");class r extends a{constructor(){super(),this.map={Relationship:new o}}render(e,l){l=l||this._values,e.openXml(d.StdDocAttributes),e.openNode("Relationships",r.RELATIONSHIPS_ATTRIBUTES),l.forEach(n=>{this.map.Relationship.render(e,n)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(e){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+e)}}}r.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},C.exports=r},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:this.reset(),this.model={range:{editAs:a.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)}return!0}parseText(a){this.parser&&this.parser.parseText(a)}reconcilePicture(a,o){if(a&&a.rId){const r=o.rels[a.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){const t=r[1],e=o.mediaIndex[t];return o.media[e]}}}}},{"../base-xform":32}],57:[function(s,C,_){const d=s("../base-xform"),a=s("./blip-xform");C.exports=class extends d{constructor(){super(),this.map={"a:blip":new a}}get tag(){return"xdr:blipFill"}render(o,r){o.openNode(this.tag),this.map["a:blip"].render(o,r),o.openNode("a:stretch"),o.leafNode("a:fillRect"),o.closeNode(),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset();break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(){}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"a:blip"}render(a,o){a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":o.rId,cstate:"print"})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"xdr:cNvPicPr"}render(a){a.openNode(this.tag),a.leafNode("a:picLocks",{noChangeAspect:"1"}),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(s,C,_){const d=s("../base-xform"),a=s("./hlink-click-xform"),o=s("./ext-lst-xform");C.exports=class extends d{constructor(){super(),this.map={"a:hlinkClick":new a,"a:extLst":new o}}get tag(){return"xdr:cNvPr"}render(r,t){r.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(r,t),this.map["a:extLst"].render(r,t),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(s,C,_){const d=s("../base-xform"),a=s("../simple/integer-xform");C.exports=class extends d{constructor(o){super(),this.tag=o.tag,this.map={"xdr:col":new a({tag:"xdr:col",zero:!0}),"xdr:colOff":new a({tag:"xdr:colOff",zero:!0}),"xdr:row":new a({tag:"xdr:row",zero:!0}),"xdr:rowOff":new a({tag:"xdr:rowOff",zero:!0})}}render(o,r){o.openNode(this.tag),this.map["xdr:col"].render(o,r.nativeCol),this.map["xdr:colOff"].render(o,r.nativeColOff),this.map["xdr:row"].render(o,r.nativeRow),this.map["xdr:rowOff"].render(o,r.nativeRowOff),o.closeNode()}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:this.reset();break;default:this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)}return!0}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.parser=void 0),!0;switch(o){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}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(s,C,_){const d=s("../../../utils/col-cache"),a=s("../../../utils/xml-stream"),o=s("../base-xform"),r=s("./two-cell-anchor-xform"),t=s("./one-cell-anchor-xform");class e extends o{constructor(){super(),this.map={"xdr:twoCellAnchor":new r,"xdr:oneCellAnchor":new t}}prepare(n){n.anchors.forEach((i,c)=>{i.anchorType=function(f){return(typeof f.range=="string"?d.decode(f.range):f.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(i),this.map[i.anchorType].prepare(i,{index:c})})}get tag(){return"xdr:wsDr"}render(n,i){n.openXml(a.StdDocAttributes),n.openNode(this.tag,e.DRAWING_ATTRIBUTES),i.anchors.forEach(c=>{this.map[c.anchorType].render(n,c)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n)}return!0}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(n){case this.tag:return!1;default:return!0}}reconcile(n,i){n.anchors.forEach(c=>{c.br?this.map["xdr:twoCellAnchor"].reconcile(c,i):this.map["xdr:oneCellAnchor"].reconcile(c,i)})}}e.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},C.exports=e},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"a:extLst"}render(a){a.openNode(this.tag),a.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),a.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),a.closeNode(),a.closeNode()}parseOpen(a){switch(a.name){case this.tag:default:return!0}}parseText(){}parseClose(a){switch(a){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.map={}}render(a,o){a.openNode(this.tag);const r=Math.floor(9525*o.width),t=Math.floor(9525*o.height);a.addAttribute("cx",r),a.addAttribute("cy",t),a.closeNode()}parseOpen(a){return a.name===this.tag&&(this.model={width:parseInt(a.attributes.cx||"0",10)/9525,height:parseInt(a.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"a:hlinkClick"}render(a,o){o.hyperlinks&&o.hyperlinks.rId&&a.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":o.hyperlinks.rId,tooltip:o.hyperlinks.tooltip})}parseOpen(a){switch(a.name){case this.tag:return this.model={hyperlinks:{rId:a.attributes["r:id"],tooltip:a.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(s,C,_){const d=s("../base-xform"),a=s("./c-nv-pr-xform"),o=s("./c-nv-pic-pr-xform");C.exports=class extends d{constructor(){super(),this.map={"xdr:cNvPr":new a,"xdr:cNvPicPr":new o}}get tag(){return"xdr:nvPicPr"}render(r,t){r.openNode(this.tag),this.map["xdr:cNvPr"].render(r,t),this.map["xdr:cNvPicPr"].render(r,t),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case this.tag:this.reset();break;default:this.parser=this.map[r.name],this.parser&&this.parser.parseOpen(r)}return!0}parseText(){}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.parser=void 0),!0;switch(r){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(s,C,_){const d=s("./base-cell-anchor-xform"),a=s("../static-xform"),o=s("./cell-position-xform"),r=s("./ext-xform"),t=s("./pic-xform");C.exports=class extends d{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:ext":new r({tag:"xdr:ext"}),"xdr:pic":new t,"xdr:clientData":new a({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,l){this.map["xdr:pic"].prepare(e.picture,l)}render(e,l){e.openNode(this.tag,{editAs:l.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,l.range.tl),this.map["xdr:ext"].render(e,l.range.ext),this.map["xdr:pic"].render(e,l.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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(e,l){e.medium=this.reconcilePicture(e.picture,l)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(s,C,_){const d=s("../base-xform"),a=s("../static-xform"),o=s("./blip-fill-xform"),r=s("./nv-pic-pr-xform"),t=s("./sp-pr");C.exports=class extends d{constructor(){super(),this.map={"xdr:nvPicPr":new r,"xdr:blipFill":new o,"xdr:spPr":new a(t)}}get tag(){return"xdr:pic"}prepare(e,l){e.index=l.index+1}render(e,l){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,l),this.map["xdr:blipFill"].render(e,l),this.map["xdr:spPr"].render(e,l),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}parseText(){}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(s,C,_){C.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(s,C,_){const d=s("./base-cell-anchor-xform"),a=s("../static-xform"),o=s("./cell-position-xform"),r=s("./pic-xform");C.exports=class extends d{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:to":new o({tag:"xdr:to"}),"xdr:pic":new r,"xdr:clientData":new a({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(t,e){this.map["xdr:pic"].prepare(t.picture,e)}render(t,e){t.openNode(this.tag,{editAs:e.range.editAs||"oneCell"}),this.map["xdr:from"].render(t,e.range.tl),this.map["xdr:to"].render(t,e.range.br),this.map["xdr:pic"].render(t,e.picture),this.map["xdr:clientData"].render(t,{}),t.closeNode()}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){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(t,e){t.medium=this.reconcilePicture(t.picture,e)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(s,C,_){const d=s("./base-xform");C.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.always=!!a.always,this.count=a.count,this.empty=a.empty,this.$count=a.$count||"count",this.$=a.$,this.childXform=a.childXform,this.maxItems=a.maxItems}prepare(a,o){const{childXform:r}=this;a&&a.forEach((t,e)=>{o.index=e,r.prepare(t,o)})}render(a,o){if(this.always||o&&o.length){a.openNode(this.tag,this.$),this.count&&a.addAttribute(this.$count,o&&o.length||0);const{childXform:r}=this;(o||[]).forEach((t,e)=>{r.render(a,t,e)}),a.closeNode()}else this.empty&&a.leafNode(this.tag)}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(a)&&(this.parser=this.childXform,!0)}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(a,o){if(a){const{childXform:r}=this;a.forEach(t=>{r.reconcile(t,o)})}}}},{"./base-xform":32}],72:[function(s,C,_){const d=s("../../../utils/col-cache"),a=s("../base-xform");C.exports=class extends a{get tag(){return"autoFilter"}render(o,r){if(r)if(typeof r=="string")o.leafNode("autoFilter",{ref:r});else{const t=function(n){return typeof n=="string"?n:d.getAddress(n.row,n.column).address},e=t(r.from),l=t(r.to);e&&l&&o.leafNode("autoFilter",{ref:`${e}:${l}`})}}parseOpen(o){o.name==="autoFilter"&&(this.model=o.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(s,C,_){const d=s("../../../utils/utils"),a=s("../base-xform"),o=s("../../../doc/range"),r=s("../../../doc/enums"),t=s("../strings/rich-text-xform");function e(l){if(l==null)return r.ValueType.Null;if(l instanceof String||typeof l=="string")return r.ValueType.String;if(typeof l=="number")return r.ValueType.Number;if(typeof l=="boolean")return r.ValueType.Boolean;if(l instanceof Date)return r.ValueType.Date;if(l.text&&l.hyperlink)return r.ValueType.Hyperlink;if(l.formula)return r.ValueType.Formula;if(l.error)return r.ValueType.Error;throw new Error("I could not understand type of value")}C.exports=class extends a{constructor(){super(),this.richTextXForm=new t}get tag(){return"c"}prepare(l,n){const i=n.styles.addStyleModel(l.style||{},function(c){switch(c.type){case r.ValueType.Formula:return e(c.result);default:return c.type}}(l));switch(i&&(l.styleId=i),l.comment&&n.comments.push({...l.comment,ref:l.address}),l.type){case r.ValueType.String:case r.ValueType.RichText:n.sharedStrings&&(l.ssId=n.sharedStrings.add(l.value));break;case r.ValueType.Date:n.date1904&&(l.date1904=!0);break;case r.ValueType.Hyperlink:n.sharedStrings&&l.text!==void 0&&l.text!==null&&(l.ssId=n.sharedStrings.add(l.text)),n.hyperlinks.push({address:l.address,target:l.hyperlink,tooltip:l.tooltip});break;case r.ValueType.Merge:n.merges.add(l);break;case r.ValueType.Formula:if(n.date1904&&(l.date1904=!0),l.shareType==="shared"&&(l.si=n.siFormulae++),l.formula)n.formulae[l.address]=l;else if(l.sharedFormula){const c=n.formulae[l.sharedFormula];if(!c)throw new Error("Shared Formula master must exist above and or left of clone for cell "+l.address);c.si===void 0?(c.shareType="shared",c.si=n.siFormulae++,c.range=new o(c.address,l.address)):c.range&&c.range.expandToAddress(l.address),l.si=c.si}}}renderFormula(l,n){let i=null;switch(n.shareType){case"shared":i={t:"shared",ref:n.ref||n.range.range,si:n.si};break;case"array":i={t:"array",ref:n.ref};break;default:n.si!==void 0&&(i={t:"shared",si:n.si})}switch(e(n.result)){case r.ValueType.Null:l.leafNode("f",i,n.formula);break;case r.ValueType.String:l.addAttribute("t","str"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result);break;case r.ValueType.Number:l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result);break;case r.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result?1:0);break;case r.ValueType.Error:l.addAttribute("t","e"),l.leafNode("f",i,n.formula),l.leafNode("v",null,n.result.error);break;case r.ValueType.Date:l.leafNode("f",i,n.formula),l.leafNode("v",null,d.dateToExcel(n.result,n.date1904));break;default:throw new Error("I could not understand type of value")}}render(l,n){if(n.type!==r.ValueType.Null||n.styleId){switch(l.openNode("c"),l.addAttribute("r",n.address),n.styleId&&l.addAttribute("s",n.styleId),n.type){case r.ValueType.Null:break;case r.ValueType.Number:l.leafNode("v",null,n.value);break;case r.ValueType.Boolean:l.addAttribute("t","b"),l.leafNode("v",null,n.value?"1":"0");break;case r.ValueType.Error:l.addAttribute("t","e"),l.leafNode("v",null,n.value.error);break;case r.ValueType.String:case r.ValueType.RichText:n.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,n.ssId)):n.value&&n.value.richText?(l.addAttribute("t","inlineStr"),l.openNode("is"),n.value.richText.forEach(i=>{this.richTextXForm.render(l,i)}),l.closeNode("is")):(l.addAttribute("t","str"),l.leafNode("v",null,n.value));break;case r.ValueType.Date:l.leafNode("v",null,d.dateToExcel(n.value,n.date1904));break;case r.ValueType.Hyperlink:n.ssId!==void 0?(l.addAttribute("t","s"),l.leafNode("v",null,n.ssId)):(l.addAttribute("t","str"),l.leafNode("v",null,n.text));break;case r.ValueType.Formula:this.renderFormula(l,n);break;case r.ValueType.Merge:}l.closeNode()}}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"c":return this.model={address:l.attributes.r},this.t=l.attributes.t,l.attributes.s&&(this.model.styleId=parseInt(l.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=l.attributes.si,this.model.shareType=l.attributes.t,this.model.ref=l.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(l),!0;default:return!1}}parseText(l){if(this.parser)this.parser.parseText(l);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+l:l;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+l:l:this.model.value=this.model.value?this.model.value+l:l}}parseClose(l){switch(l){case"c":{const{model:n}=this;if(n.formula||n.shareType)n.type=r.ValueType.Formula,n.value&&(this.t==="str"?n.result=d.xmlDecode(n.value):this.t==="b"?n.result=parseInt(n.value,10)!==0:this.t==="e"?n.result={error:n.value}:n.result=parseFloat(n.value),n.value=void 0);else if(n.value!==void 0)switch(this.t){case"s":n.type=r.ValueType.String,n.value=parseInt(n.value,10);break;case"str":n.type=r.ValueType.String,n.value=d.xmlDecode(n.value);break;case"inlineStr":n.type=r.ValueType.String;break;case"b":n.type=r.ValueType.Boolean,n.value=parseInt(n.value,10)!==0;break;case"e":n.type=r.ValueType.Error,n.value={error:n.value};break;default:n.type=r.ValueType.Number,n.value=parseFloat(n.value)}else n.styleId?n.type=r.ValueType.Null:n.type=r.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(l),!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(l),!0)}}reconcile(l,n){const i=l.styleId&&n.styles&&n.styles.getStyleModel(l.styleId);switch(i&&(l.style=i),l.styleId!==void 0&&(l.styleId=void 0),l.type){case r.ValueType.String:typeof l.value=="number"&&n.sharedStrings&&(l.value=n.sharedStrings.getString(l.value)),l.value.richText&&(l.type=r.ValueType.RichText);break;case r.ValueType.Number:i&&d.isDateFmt(i.numFmt)&&(l.type=r.ValueType.Date,l.value=d.excelToDate(l.value,n.date1904));break;case r.ValueType.Formula:l.result!==void 0&&i&&d.isDateFmt(i.numFmt)&&(l.result=d.excelToDate(l.result,n.date1904)),l.shareType==="shared"&&(l.ref?n.formulae[l.si]=l.address:(l.sharedFormula=n.formulae[l.si],delete l.shareType),delete l.si)}const c=n.hyperlinkMap[l.address];c&&(l.type===r.ValueType.Formula?(l.text=l.result,l.result=void 0):(l.text=l.value,l.value=void 0),l.type=r.ValueType.Hyperlink,l.hyperlink=c);const f=n.commentsMap&&n.commentsMap[l.address];f&&(l.comment=f)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(s,C,_){const d=s("../../base-xform");C.exports=class extends d{get tag(){return"x14:cfIcon"}render(a,o){a.leafNode(this.tag,{iconSet:o.iconSet,iconId:o.iconId})}parseOpen(a){let{attributes:o}=a;this.model={iconSet:o.iconSet,iconId:d.toIntValue(o.iconId)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],75:[function(s,C,_){const{v4:d}=s("uuid"),a=s("../../base-xform"),o=s("../../composite-xform"),r=s("./databar-ext-xform"),t=s("./icon-set-ext-xform"),e={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class l extends o{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new r,"x14:iconSet":this.iconSetXform=new t}}get tag(){return"x14:cfRule"}static isExt(i){return i.type==="dataBar"?r.isExt(i):!(i.type!=="iconSet"||!i.custom&&!e[i.iconSet])}prepare(i){l.isExt(i)&&(i.x14Id=`{${d()}}`.toUpperCase())}render(i,c){if(l.isExt(c))switch(c.type){case"dataBar":this.renderDataBar(i,c);break;case"iconSet":this.renderIconSet(i,c)}}renderDataBar(i,c){i.openNode(this.tag,{type:"dataBar",id:c.x14Id}),this.databarXform.render(i,c),i.closeNode()}renderIconSet(i,c){i.openNode(this.tag,{type:"iconSet",priority:c.priority,id:c.x14Id||`{${d()}}`}),this.iconSetXform.render(i,c),i.closeNode()}createNewModel(i){let{attributes:c}=i;return{type:c.type,x14Id:c.id,priority:a.toIntValue(c.priority)}}onParserClose(i,c){Object.assign(this.model,c.model)}}C.exports=l},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(s,C,_){const d=s("../../composite-xform"),a=s("./f-ext-xform");C.exports=class extends d{constructor(){super(),this.map={"xm:f":this.fExtXform=new a}}get tag(){return"x14:cfvo"}render(o,r){o.openNode(this.tag,{type:r.type}),r.value!==void 0&&this.fExtXform.render(o,r.value),o.closeNode()}createNewModel(o){return{type:o.attributes.type}}onParserClose(o,r){switch(o){case"xm:f":this.model.value=r.model?parseFloat(r.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(s,C,_){const d=s("../../composite-xform"),a=s("./sqref-ext-xform"),o=s("./cf-rule-ext-xform");C.exports=class extends d{constructor(){super(),this.map={"xm:sqref":this.sqRef=new a,"x14:cfRule":this.cfRule=new o}}get tag(){return"x14:conditionalFormatting"}prepare(r,t){r.rules.forEach(e=>{this.cfRule.prepare(e,t)})}render(r,t){t.rules.some(o.isExt)&&(r.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(o.isExt).forEach(e=>this.cfRule.render(r,e)),this.sqRef.render(r,t.ref),r.closeNode())}createNewModel(){return{rules:[]}}onParserClose(r,t){switch(r){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(s,C,_){const d=s("../../composite-xform"),a=s("./cf-rule-ext-xform"),o=s("./conditional-formatting-ext-xform");C.exports=class extends d{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new o}}get tag(){return"x14:conditionalFormattings"}hasContent(r){return r.hasExtContent===void 0&&(r.hasExtContent=r.some(t=>t.rules.some(a.isExt))),r.hasExtContent}prepare(r,t){r.forEach(e=>{this.cfXform.prepare(e,t)})}render(r,t){this.hasContent(t)&&(r.openNode(this.tag),t.forEach(e=>this.cfXform.render(r,e)),r.closeNode())}createNewModel(){return[]}onParserClose(r,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(s,C,_){const d=s("../../base-xform"),a=s("../../composite-xform"),o=s("../../style/color-xform"),r=s("./cfvo-ext-xform");C.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new r,"x14:borderColor":this.borderColorXform=new o("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new o("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new o("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new o("x14:axisColor")}}static isExt(t){return!t.gradient}get tag(){return"x14:dataBar"}render(t,e){t.openNode(this.tag,{minLength:d.toIntAttribute(e.minLength,0,!0),maxLength:d.toIntAttribute(e.maxLength,100,!0),border:d.toBoolAttribute(e.border,!1),gradient:d.toBoolAttribute(e.gradient,!0),negativeBarColorSameAsPositive:d.toBoolAttribute(e.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:d.toBoolAttribute(e.negativeBarBorderColorSameAsPositive,!0),axisPosition:d.toAttribute(e.axisPosition,"auto"),direction:d.toAttribute(e.direction,"leftToRight")}),e.cfvo.forEach(l=>{this.cfvoXform.render(t,l)}),this.borderColorXform.render(t,e.borderColor),this.negativeBorderColorXform.render(t,e.negativeBorderColor),this.negativeFillColorXform.render(t,e.negativeFillColor),this.axisColorXform.render(t,e.axisColor),t.closeNode()}createNewModel(t){let{attributes:e}=t;return{cfvo:[],minLength:d.toIntValue(e.minLength,0),maxLength:d.toIntValue(e.maxLength,100),border:d.toBoolValue(e.border,!1),gradient:d.toBoolValue(e.gradient,!0),negativeBarColorSameAsPositive:d.toBoolValue(e.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:d.toBoolValue(e.negativeBarBorderColorSameAsPositive,!0),axisPosition:d.toStringValue(e.axisPosition,"auto"),direction:d.toStringValue(e.direction,"leftToRight")}}onParserClose(t,e){const[,l]=t.split(":");switch(l){case"cfvo":this.model.cfvo.push(e.model);break;default:this.model[l]=e.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(s,C,_){const d=s("../../base-xform");C.exports=class extends d{get tag(){return"xm:f"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],81:[function(s,C,_){const d=s("../../base-xform"),a=s("../../composite-xform"),o=s("./cfvo-ext-xform"),r=s("./cf-icon-ext-xform");C.exports=class extends a{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:cfIcon":this.cfIconXform=new r}}get tag(){return"x14:iconSet"}render(t,e){t.openNode(this.tag,{iconSet:d.toStringAttribute(e.iconSet),reverse:d.toBoolAttribute(e.reverse,!1),showValue:d.toBoolAttribute(e.showValue,!0),custom:d.toBoolAttribute(e.icons,!1)}),e.cfvo.forEach(l=>{this.cfvoXform.render(t,l)}),e.icons&&e.icons.forEach((l,n)=>{l.iconId=n,this.cfIconXform.render(t,l)}),t.closeNode()}createNewModel(t){let{attributes:e}=t;return{cfvo:[],iconSet:d.toStringValue(e.iconSet,"3TrafficLights"),reverse:d.toBoolValue(e.reverse,!1),showValue:d.toBoolValue(e.showValue,!0)}}onParserClose(t,e){const[,l]=t.split(":");switch(l){case"cfvo":this.model.cfvo.push(e.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(e.model);break;default:this.model[l]=e.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(s,C,_){const d=s("../../base-xform");C.exports=class extends d{get tag(){return"xm:sqref"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],83:[function(s,C,_){const d=s("../../base-xform"),a=s("../../composite-xform"),o=s("../../../../doc/range"),r=s("./databar-xform"),t=s("./ext-lst-ref-xform"),e=s("./formula-xform"),l=s("./color-scale-xform"),n=s("./icon-set-xform"),i={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},c=u=>{const{type:p,operator:h}=u;switch(p){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:p};default:return{type:p,operator:h}}};class f extends a{constructor(){super(),this.map={dataBar:this.databarXform=new r,extLst:this.extLstRefXform=new t,formula:this.formulaXform=new e,colorScale:this.colorScaleXform=new l,iconSet:this.iconSetXform=new n}}get tag(){return"cfRule"}static isPrimitive(p){return p.type!=="iconSet"||!p.custom&&!i[p.iconSet]}render(p,h){switch(h.type){case"expression":this.renderExpression(p,h);break;case"cellIs":this.renderCellIs(p,h);break;case"top10":this.renderTop10(p,h);break;case"aboveAverage":this.renderAboveAverage(p,h);break;case"dataBar":this.renderDataBar(p,h);break;case"colorScale":this.renderColorScale(p,h);break;case"iconSet":this.renderIconSet(p,h);break;case"containsText":this.renderText(p,h);break;case"timePeriod":this.renderTimePeriod(p,h)}}renderExpression(p,h){p.openNode(this.tag,{type:"expression",dxfId:h.dxfId,priority:h.priority}),this.formulaXform.render(p,h.formulae[0]),p.closeNode()}renderCellIs(p,h){p.openNode(this.tag,{type:"cellIs",dxfId:h.dxfId,priority:h.priority,operator:h.operator}),h.formulae.forEach(w=>{this.formulaXform.render(p,w)}),p.closeNode()}renderTop10(p,h){p.leafNode(this.tag,{type:"top10",dxfId:h.dxfId,priority:h.priority,percent:d.toBoolAttribute(h.percent,!1),bottom:d.toBoolAttribute(h.bottom,!1),rank:d.toIntValue(h.rank,10,!0)})}renderAboveAverage(p,h){p.leafNode(this.tag,{type:"aboveAverage",dxfId:h.dxfId,priority:h.priority,aboveAverage:d.toBoolAttribute(h.aboveAverage,!0)})}renderDataBar(p,h){p.openNode(this.tag,{type:"dataBar",priority:h.priority}),this.databarXform.render(p,h),this.extLstRefXform.render(p,h),p.closeNode()}renderColorScale(p,h){p.openNode(this.tag,{type:"colorScale",priority:h.priority}),this.colorScaleXform.render(p,h),p.closeNode()}renderIconSet(p,h){f.isPrimitive(h)&&(p.openNode(this.tag,{type:"iconSet",priority:h.priority}),this.iconSetXform.render(p,h),p.closeNode())}renderText(p,h){p.openNode(this.tag,{type:h.operator,dxfId:h.dxfId,priority:h.priority,operator:d.toStringAttribute(h.operator,"containsText")});const w=(x=>{if(x.formulae&&x.formulae[0])return x.formulae[0];const R=new o(x.ref),{tl:N}=R;switch(x.operator){case"containsText":return`NOT(ISERROR(SEARCH("${x.text}",${N})))`;case"containsBlanks":return`LEN(TRIM(${N}))=0`;case"notContainsBlanks":return`LEN(TRIM(${N}))>0`;case"containsErrors":return`ISERROR(${N})`;case"notContainsErrors":return`NOT(ISERROR(${N}))`;default:return}})(h);w&&this.formulaXform.render(p,w),p.closeNode()}renderTimePeriod(p,h){p.openNode(this.tag,{type:"timePeriod",dxfId:h.dxfId,priority:h.priority,timePeriod:h.timePeriod});const w=(x=>{if(x.formulae&&x.formulae[0])return x.formulae[0];const R=new o(x.ref),{tl:N}=R;switch(x.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${N},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${N},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${N},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${N},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${N},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${N},1)=TODAY()-1`;case"today":return`FLOOR(${N},1)=TODAY()`;case"tomorrow":return`FLOOR(${N},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${N},1)<=6,FLOOR(${N},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0-1)),YEAR(${N})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${N})=MONTH(TODAY()),YEAR(${N})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${N})=MONTH(EDATE(TODAY(),0+1)),YEAR(${N})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(h);w&&this.formulaXform.render(p,w),p.closeNode()}createNewModel(p){let{attributes:h}=p;return{...c(h),dxfId:d.toIntValue(h.dxfId),priority:d.toIntValue(h.priority),timePeriod:h.timePeriod,percent:d.toBoolValue(h.percent),bottom:d.toBoolValue(h.bottom),rank:d.toIntValue(h.rank),aboveAverage:d.toBoolValue(h.aboveAverage)}}onParserClose(p,h){switch(p){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,h.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(h.model)}}}C.exports=f},{"../../../../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(s,C,_){const d=s("../../base-xform");C.exports=class extends d{get tag(){return"cfvo"}render(a,o){a.leafNode(this.tag,{type:o.type,val:o.value})}parseOpen(a){this.model={type:a.attributes.type,value:d.toFloatValue(a.attributes.val)}}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],85:[function(s,C,_){const d=s("../../composite-xform"),a=s("../../style/color-xform"),o=s("./cfvo-xform");C.exports=class extends d{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new a}}get tag(){return"colorScale"}render(r,t){r.openNode(this.tag),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),t.color.forEach(e=>{this.colorXform.render(r,e)}),r.closeNode()}createNewModel(r){return{cfvo:[],color:[]}}onParserClose(r,t){this.model[r].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(s,C,_){const d=s("../../composite-xform"),a=s("./cf-rule-xform");C.exports=class extends d{constructor(){super(),this.map={cfRule:new a}}get tag(){return"conditionalFormatting"}render(o,r){r.rules.some(a.isPrimitive)&&(o.openNode(this.tag,{sqref:r.ref}),r.rules.forEach(t=>{a.isPrimitive(t)&&(t.ref=r.ref,this.map.cfRule.render(o,t))}),o.closeNode())}createNewModel(o){let{attributes:r}=o;return{ref:r.sqref,rules:[]}}onParserClose(o,r){this.model.rules.push(r.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(s,C,_){const d=s("../../base-xform"),a=s("./conditional-formatting-xform");C.exports=class extends d{constructor(){super(),this.cfXform=new a}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(o,r){let t=o.reduce((e,l)=>Math.max(e,...l.rules.map(n=>n.priority||0)),1);o.forEach(e=>{e.rules.forEach(l=>{l.priority||(l.priority=t++),l.style&&(l.dxfId=r.styles.addDxfStyle(l.style))})})}render(o,r){r.forEach(t=>{this.cfXform.render(o,t)})}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(o),!0;default:return!1}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){return!!this.parser&&(!!this.parser.parseClose(o)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(o,r){o.forEach(t=>{t.rules.forEach(e=>{e.dxfId!==void 0&&(e.style=r.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(s,C,_){const d=s("../../composite-xform"),a=s("../../style/color-xform"),o=s("./cfvo-xform");C.exports=class extends d{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new a}}get tag(){return"dataBar"}render(r,t){r.openNode(this.tag),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),this.colorXform.render(r,t.color),r.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(r,t){switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(s,C,_){const d=s("../../base-xform"),a=s("../../composite-xform");class o extends d{get tag(){return"x14:id"}render(e,l){e.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class r extends a{constructor(){super(),this.map={"x14:id":this.idXform=new o}}get tag(){return"ext"}render(e,l){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,l.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,l){this.model.x14Id=l.model}}C.exports=class extends a{constructor(){super(),this.map={ext:new r}}get tag(){return"extLst"}render(t,e){t.openNode(this.tag),this.map.ext.render(t,e),t.closeNode()}createNewModel(){return{}}onParserClose(t,e){Object.assign(this.model,e.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(s,C,_){const d=s("../../base-xform");C.exports=class extends d{get tag(){return"formula"}render(a,o){a.leafNode(this.tag,null,o)}parseOpen(){this.model=""}parseText(a){this.model+=a}parseClose(a){return a!==this.tag}}},{"../../base-xform":32}],91:[function(s,C,_){const d=s("../../base-xform"),a=s("../../composite-xform"),o=s("./cfvo-xform");C.exports=class extends a{constructor(){super(),this.map={cfvo:this.cfvoXform=new o}}get tag(){return"iconSet"}render(r,t){r.openNode(this.tag,{iconSet:d.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:d.toBoolAttribute(t.reverse,!1),showValue:d.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(e=>{this.cfvoXform.render(r,e)}),r.closeNode()}createNewModel(r){let{attributes:t}=r;return{iconSet:d.toStringValue(t.iconSet,"3TrafficLights"),reverse:d.toBoolValue(t.reverse),showValue:d.toBoolValue(t.showValue),cfvo:[]}}onParserClose(r,t){this.model[r].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(s,C,_){const d=s("../../../utils/utils"),a=s("../base-xform");C.exports=class extends a{get tag(){return"col"}prepare(o,r){const t=r.styles.addStyleModel(o.style||{});t&&(o.styleId=t)}render(o,r){o.openNode("col"),o.addAttribute("min",r.min),o.addAttribute("max",r.max),r.width&&o.addAttribute("width",r.width),r.styleId&&o.addAttribute("style",r.styleId),r.hidden&&o.addAttribute("hidden","1"),r.bestFit&&o.addAttribute("bestFit","1"),r.outlineLevel&&o.addAttribute("outlineLevel",r.outlineLevel),r.collapsed&&o.addAttribute("collapsed","1"),o.addAttribute("customWidth","1"),o.closeNode()}parseOpen(o){if(o.name==="col"){const r=this.model={min:parseInt(o.attributes.min||"0",10),max:parseInt(o.attributes.max||"0",10),width:o.attributes.width===void 0?void 0:parseFloat(o.attributes.width||"0")};return o.attributes.style&&(r.styleId=parseInt(o.attributes.style,10)),d.parseBoolean(o.attributes.hidden)&&(r.hidden=!0),d.parseBoolean(o.attributes.bestFit)&&(r.bestFit=!0),o.attributes.outlineLevel&&(r.outlineLevel=parseInt(o.attributes.outlineLevel,10)),d.parseBoolean(o.attributes.collapsed)&&(r.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(o,r){o.styleId&&(o.style=r.styles.getStyleModel(o.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(s,C,_){const d=s("../../../utils/under-dash"),a=s("../../../utils/utils"),o=s("../../../utils/col-cache"),r=s("../base-xform"),t=s("../../../doc/range");function e(n,i,c,f){const u=i[c];u!==void 0?n[c]=u:f!==void 0&&(n[c]=f)}function l(n,i,c,f){const u=i[c];u!==void 0&&(n[c]=a.parseBoolean(u))}C.exports=class extends r{get tag(){return"dataValidations"}render(n,i){const c=function(f){const u=d.map(f,(w,x)=>({address:x,dataValidation:w,marked:!1})).sort((w,x)=>d.strcmp(w.address,x.address)),p=d.keyBy(u,"address"),h=(w,x,R)=>{for(let N=0;N<x;N++){const F=o.encodeAddress(w.row+N,R);if(!f[F]||!d.isEqual(f[w.address],f[F]))return!1}return!0};return u.map(w=>{if(!w.marked){const x=o.decodeEx(w.address);if(x.dimensions)return p[x.dimensions].marked=!0,{...w.dataValidation,sqref:w.address};let R=1,N=o.encodeAddress(x.row+R,x.col);for(;f[N]&&d.isEqual(w.dataValidation,f[N]);)R++,N=o.encodeAddress(x.row+R,x.col);let F=1;for(;h(x,R,x.col+F);)F++;for(let I=0;I<R;I++)for(let P=0;P<F;P++)N=o.encodeAddress(x.row+I,x.col+P),p[N].marked=!0;if(R>1||F>1){const I=x.row+(R-1),P=x.col+(F-1);return{...w.dataValidation,sqref:`${w.address}:${o.encodeAddress(I,P)}`}}return{...w.dataValidation,sqref:w.address}}return null}).filter(Boolean)}(i);c.length&&(n.openNode("dataValidations",{count:c.length}),c.forEach(f=>{n.openNode("dataValidation"),f.type!=="any"&&(n.addAttribute("type",f.type),f.operator&&f.type!=="list"&&f.operator!=="between"&&n.addAttribute("operator",f.operator),f.allowBlank&&n.addAttribute("allowBlank","1")),f.showInputMessage&&n.addAttribute("showInputMessage","1"),f.promptTitle&&n.addAttribute("promptTitle",f.promptTitle),f.prompt&&n.addAttribute("prompt",f.prompt),f.showErrorMessage&&n.addAttribute("showErrorMessage","1"),f.errorStyle&&n.addAttribute("errorStyle",f.errorStyle),f.errorTitle&&n.addAttribute("errorTitle",f.errorTitle),f.error&&n.addAttribute("error",f.error),n.addAttribute("sqref",f.sqref),(f.formulae||[]).forEach((u,p)=>{n.openNode("formula"+(p+1)),f.type==="date"?n.writeText(a.dateToExcel(new Date(u))):n.writeText(u),n.closeNode()}),n.closeNode()}),n.closeNode())}parseOpen(n){switch(n.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=n.attributes.sqref;const i={type:n.attributes.type||"any",formulae:[]};switch(n.attributes.type&&l(i,n.attributes,"allowBlank"),l(i,n.attributes,"showInputMessage"),l(i,n.attributes,"showErrorMessage"),i.type){case"any":case"list":case"custom":break;default:e(i,n.attributes,"operator","between")}return e(i,n.attributes,"promptTitle"),e(i,n.attributes,"prompt"),e(i,n.attributes,"errorStyle"),e(i,n.attributes,"errorTitle"),e(i,n.attributes,"error"),this._dataValidation=i,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(n){this._formula&&this._formula.push(n)}parseClose(n){switch(n){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(i=>{i.includes(":")?new t(i).forEachAddress(c=>{this.model[c]=this._dataValidation}):this.model[i]=this._dataValidation}),!0;case"formula1":case"formula2":{let i=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":i=parseInt(i,10);break;case"decimal":i=parseFloat(i);break;case"date":i=a.excelToDate(parseFloat(i))}return this._dataValidation.formulae.push(i),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"dimension"}render(a,o){o&&a.leafNode("dimension",{ref:o})}parseOpen(a){return a.name==="dimension"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"drawing"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.rId})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(s,C,_){const d=s("../composite-xform"),a=s("./cf-ext/conditional-formattings-ext-xform");class o extends d{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new a}}get tag(){return"ext"}hasContent(t){return this.conditionalFormattings.hasContent(t.conditionalFormattings)}prepare(t,e){this.conditionalFormattings.prepare(t.conditionalFormattings,e)}render(t,e){t.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(t,e.conditionalFormattings),t.closeNode()}createNewModel(){return{}}onParserClose(t,e){this.model[t]=e.model}}C.exports=class extends d{constructor(){super(),this.map={ext:this.ext=new o}}get tag(){return"extLst"}prepare(r,t){this.ext.prepare(r,t)}hasContent(r){return this.ext.hasContent(r)}render(r,t){this.hasContent(t)&&(r.openNode("extLst"),this.ext.render(r,t),r.closeNode())}createNewModel(){return{}}onParserClose(r,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"headerFooter"}render(a,o){if(o){a.addRollback();let r=!1;a.openNode("headerFooter"),o.differentFirst&&(a.addAttribute("differentFirst","1"),r=!0),o.differentOddEven&&(a.addAttribute("differentOddEven","1"),r=!0),o.oddHeader&&typeof o.oddHeader=="string"&&(a.leafNode("oddHeader",null,o.oddHeader),r=!0),o.oddFooter&&typeof o.oddFooter=="string"&&(a.leafNode("oddFooter",null,o.oddFooter),r=!0),o.evenHeader&&typeof o.evenHeader=="string"&&(a.leafNode("evenHeader",null,o.evenHeader),r=!0),o.evenFooter&&typeof o.evenFooter=="string"&&(a.leafNode("evenFooter",null,o.evenFooter),r=!0),o.firstHeader&&typeof o.firstHeader=="string"&&(a.leafNode("firstHeader",null,o.firstHeader),r=!0),o.firstFooter&&typeof o.firstFooter=="string"&&(a.leafNode("firstFooter",null,o.firstFooter),r=!0),r?(a.closeNode(),a.commit()):a.rollback()}}parseOpen(a){switch(a.name){case"headerFooter":return this.model={},a.attributes.differentFirst&&(this.model.differentFirst=parseInt(a.attributes.differentFirst,0)===1),a.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(a.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(a){switch(this.currentNode){case"oddHeader":this.model.oddHeader=a;break;case"oddFooter":this.model.oddFooter=a;break;case"evenHeader":this.model.evenHeader=a;break;case"evenFooter":this.model.evenFooter=a;break;case"firstHeader":this.model.firstHeader=a;break;case"firstFooter":this.model.firstFooter=a}}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}}}},{"../base-xform":32}],98:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"hyperlink"}render(a,o){this.isInternalLink(o)?a.leafNode("hyperlink",{ref:o.address,"r:id":o.rId,tooltip:o.tooltip,location:o.target}):a.leafNode("hyperlink",{ref:o.address,"r:id":o.rId,tooltip:o.tooltip})}parseOpen(a){return a.name==="hyperlink"&&(this.model={address:a.attributes.ref,rId:a.attributes["r:id"],tooltip:a.attributes.tooltip},a.attributes.location&&(this.model.target=a.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(a){return a.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(a.target)}}},{"../base-xform":32}],99:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"mergeCell"}render(a,o){a.leafNode("mergeCell",{ref:o})}parseOpen(a){return a.name==="mergeCell"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(s,C,_){const d=s("../../../utils/under-dash"),a=s("../../../doc/range"),o=s("../../../utils/col-cache"),r=s("../../../doc/enums");C.exports=class{constructor(){this.merges={}}add(t){if(this.merges[t.master])this.merges[t.master].expandToAddress(t.address);else{const e=`${t.master}:${t.address}`;this.merges[t.master]=new a(e)}}get mergeCells(){return d.map(this.merges,t=>t.range)}reconcile(t,e){d.each(t,l=>{const n=o.decode(l);for(let i=n.top;i<=n.bottom;i++){const c=e[i-1];for(let f=n.left;f<=n.right;f++){const u=c.cells[f-1];u?u.type===r.ValueType.Merge&&(u.master=n.tl):c.cells[f]={type:r.ValueType.Null,address:o.encodeAddress(i,f)}}}})}getMasterAddress(t){const e=this.hash[t];return e&&e.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(s,C,_){const d=s("../base-xform"),a=o=>o!==void 0;C.exports=class extends d{get tag(){return"outlinePr"}render(o,r){return!(!r||!a(r.summaryBelow)&&!a(r.summaryRight))&&(o.leafNode(this.tag,{summaryBelow:a(r.summaryBelow)?Number(r.summaryBelow):void 0,summaryRight:a(r.summaryRight)?Number(r.summaryRight):void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={summaryBelow:a(o.attributes.summaryBelow)?!!Number(o.attributes.summaryBelow):void 0,summaryRight:a(o.attributes.summaryRight)?!!Number(o.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"brk"}render(a,o){a.leafNode("brk",o)}parseOpen(a){return a.name==="brk"&&(this.model=a.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(s,C,_){const d=s("../../../utils/under-dash"),a=s("../base-xform");C.exports=class extends a{get tag(){return"pageMargins"}render(o,r){if(r){const t={left:r.left,right:r.right,top:r.top,bottom:r.bottom,header:r.header,footer:r.footer};d.some(t,e=>e!==void 0)&&o.leafNode(this.tag,t)}}parseOpen(o){switch(o.name){case this.tag:return this.model={left:parseFloat(o.attributes.left||.7),right:parseFloat(o.attributes.right||.7),top:parseFloat(o.attributes.top||.75),bottom:parseFloat(o.attributes.bottom||.75),header:parseFloat(o.attributes.header||.3),footer:parseFloat(o.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"pageSetUpPr"}render(a,o){return!(!o||!o.fitToPage)&&(a.leafNode(this.tag,{fitToPage:o.fitToPage?"1":void 0}),!0)}parseOpen(a){return a.name===this.tag&&(this.model={fitToPage:a.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(s,C,_){const d=s("../../../utils/under-dash"),a=s("../base-xform");function o(l){return l?"1":void 0}function r(l){switch(l){case"overThenDown":return l;default:return}}function t(l){switch(l){case"atEnd":case"asDisplyed":return l;default:return}}function e(l){switch(l){case"dash":case"blank":case"NA":return l;default:return}}C.exports=class extends a{get tag(){return"pageSetup"}render(l,n){if(n){const i={paperSize:n.paperSize,orientation:n.orientation,horizontalDpi:n.horizontalDpi,verticalDpi:n.verticalDpi,pageOrder:r(n.pageOrder),blackAndWhite:o(n.blackAndWhite),draft:o(n.draft),cellComments:t(n.cellComments),errors:e(n.errors),scale:n.scale,fitToWidth:n.fitToWidth,fitToHeight:n.fitToHeight,firstPageNumber:n.firstPageNumber,useFirstPageNumber:o(n.firstPageNumber),usePrinterDefaults:o(n.usePrinterDefaults),copies:n.copies};d.some(i,c=>c!==void 0)&&l.leafNode(this.tag,i)}}parseOpen(l){switch(l.name){case this.tag:return this.model={paperSize:(n=l.attributes.paperSize,n!==void 0?parseInt(n,10):void 0),orientation:l.attributes.orientation||"portrait",horizontalDpi:parseInt(l.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(l.attributes.verticalDpi||"4294967295",10),pageOrder:l.attributes.pageOrder||"downThenOver",blackAndWhite:l.attributes.blackAndWhite==="1",draft:l.attributes.draft==="1",cellComments:l.attributes.cellComments||"None",errors:l.attributes.errors||"displayed",scale:parseInt(l.attributes.scale||"100",10),fitToWidth:parseInt(l.attributes.fitToWidth||"1",10),fitToHeight:parseInt(l.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(l.attributes.firstPageNumber||"1",10),useFirstPageNumber:l.attributes.useFirstPageNumber==="1",usePrinterDefaults:l.attributes.usePrinterDefaults==="1",copies:parseInt(l.attributes.copies||"1",10)},!0;default:return!1}var n}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"picture"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.rId})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(s,C,_){const d=s("../../../utils/under-dash"),a=s("../base-xform");function o(r){return r?"1":void 0}C.exports=class extends a{get tag(){return"printOptions"}render(r,t){if(t){const e={headings:o(t.showRowColHeaders),gridLines:o(t.showGridLines),horizontalCentered:o(t.horizontalCentered),verticalCentered:o(t.verticalCentered)};d.some(e,l=>l!==void 0)&&r.leafNode(this.tag,e)}}parseOpen(r){switch(r.name){case this.tag:return this.model={showRowColHeaders:r.attributes.headings==="1",showGridLines:r.attributes.gridLines==="1",horizontalCentered:r.attributes.horizontalCentered==="1",verticalCentered:r.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(s,C,_){const d=s("./page-breaks-xform"),a=s("../list-xform");C.exports=class extends a{constructor(){super({tag:"rowBreaks",count:!0,childXform:new d})}render(o,r){if(r&&r.length){o.openNode(this.tag,this.$),this.count&&(o.addAttribute(this.$count,r.length),o.addAttribute("manualBreakCount",r.length));const{childXform:t}=this;r.forEach(e=>{t.render(o,e)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(s,C,_){const d=s("../base-xform"),a=s("../../../utils/utils"),o=s("./cell-xform");C.exports=class extends d{constructor(r){super(),this.maxItems=r&&r.maxItems,this.map={c:new o}}get tag(){return"row"}prepare(r,t){const e=t.styles.addStyleModel(r.style);e&&(r.styleId=e);const l=this.map.c;r.cells.forEach(n=>{l.prepare(n,t)})}render(r,t,e){r.openNode("row"),r.addAttribute("r",t.number),t.height&&(r.addAttribute("ht",t.height),r.addAttribute("customHeight","1")),t.hidden&&r.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&r.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(r.addAttribute("s",t.styleId),r.addAttribute("customFormat","1")),r.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&r.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&r.addAttribute("collapsed","1");const l=this.map.c;t.cells.forEach(n=>{l.render(r,n,e)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;if(r.name==="row"){this.numRowsSeen+=1;const t=r.attributes.spans?r.attributes.spans.split(":").map(l=>parseInt(l,10)):[void 0,void 0],e=this.model={number:parseInt(r.attributes.r,10),min:t[0],max:t[1],cells:[]};return r.attributes.s&&(e.styleId=parseInt(r.attributes.s,10)),a.parseBoolean(r.attributes.hidden)&&(e.hidden=!0),a.parseBoolean(r.attributes.bestFit)&&(e.bestFit=!0),r.attributes.ht&&(e.height=parseFloat(r.attributes.ht)),r.attributes.outlineLevel&&(e.outlineLevel=parseInt(r.attributes.outlineLevel,10)),a.parseBoolean(r.attributes.collapsed)&&(e.collapsed=!0),!0}return this.parser=this.map[r.name],!!this.parser&&(this.parser.parseOpen(r),!0)}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){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(r,t){r.style=r.styleId?t.styles.getStyleModel(r.styleId):{},r.styleId!==void 0&&(r.styleId=void 0);const e=this.map.c;r.cells.forEach(l=>{e.reconcile(l,t)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(s,C,_){const d=s("../../../utils/under-dash"),a=s("../base-xform");C.exports=class extends a{get tag(){return"sheetFormatPr"}render(o,r){if(r){const t={defaultRowHeight:r.defaultRowHeight,outlineLevelRow:r.outlineLevelRow,outlineLevelCol:r.outlineLevelCol,"x14ac:dyDescent":r.dyDescent};r.defaultColWidth&&(t.defaultColWidth=r.defaultColWidth),r.defaultRowHeight&&r.defaultRowHeight===15||(t.customHeight="1"),d.some(t,e=>e!==void 0)&&o.leafNode("sheetFormatPr",t)}}parseOpen(o){return o.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(o.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(o.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(o.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(o.attributes.outlineLevelCol||"0",10)},o.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(o.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(s,C,_){const d=s("../base-xform"),a=s("../style/color-xform"),o=s("./page-setup-properties-xform"),r=s("./outline-properties-xform");C.exports=class extends d{constructor(){super(),this.map={tabColor:new a("tabColor"),pageSetUpPr:new o,outlinePr:new r}}get tag(){return"sheetPr"}render(t,e){if(e){t.addRollback(),t.openNode("sheetPr");let l=!1;l=this.map.tabColor.render(t,e.tabColor)||l,l=this.map.pageSetUpPr.render(t,e.pageSetup)||l,l=this.map.outlinePr.render(t,e.outlineProperties)||l,l?(t.closeNode(),t.commit()):t.rollback()}}parseOpen(t){return this.parser?(this.parser.parseOpen(t),!0):t.name===this.tag?(this.reset(),!0):!!this.map[t.name]&&(this.parser=this.map[t.name],this.parser.parseOpen(t),!0)}parseText(t){return!!this.parser&&(this.parser.parseText(t),!0)}parseClose(t){return this.parser?(this.parser.parseClose(t)||(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)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(s,C,_){const d=s("../../../utils/under-dash"),a=s("../base-xform");function o(t,e){return t?e:void 0}function r(t,e){return t===e||void 0}C.exports=class extends a{get tag(){return"sheetProtection"}render(t,e){if(e){const l={sheet:o(e.sheet,"1"),selectLockedCells:e.selectLockedCells===!1?"1":void 0,selectUnlockedCells:e.selectUnlockedCells===!1?"1":void 0,formatCells:o(e.formatCells,"0"),formatColumns:o(e.formatColumns,"0"),formatRows:o(e.formatRows,"0"),insertColumns:o(e.insertColumns,"0"),insertRows:o(e.insertRows,"0"),insertHyperlinks:o(e.insertHyperlinks,"0"),deleteColumns:o(e.deleteColumns,"0"),deleteRows:o(e.deleteRows,"0"),sort:o(e.sort,"0"),autoFilter:o(e.autoFilter,"0"),pivotTables:o(e.pivotTables,"0")};e.sheet&&(l.algorithmName=e.algorithmName,l.hashValue=e.hashValue,l.saltValue=e.saltValue,l.spinCount=e.spinCount,l.objects=o(e.objects===!1,"1"),l.scenarios=o(e.scenarios===!1,"1")),d.some(l,n=>n!==void 0)&&t.leafNode(this.tag,l)}}parseOpen(t){switch(t.name){case this.tag:return this.model={sheet:r(t.attributes.sheet,"1"),objects:t.attributes.objects!=="1"&&void 0,scenarios:t.attributes.scenarios!=="1"&&void 0,selectLockedCells:t.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:t.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:r(t.attributes.formatCells,"0"),formatColumns:r(t.attributes.formatColumns,"0"),formatRows:r(t.attributes.formatRows,"0"),insertColumns:r(t.attributes.insertColumns,"0"),insertRows:r(t.attributes.insertRows,"0"),insertHyperlinks:r(t.attributes.insertHyperlinks,"0"),deleteColumns:r(t.attributes.deleteColumns,"0"),deleteRows:r(t.attributes.deleteRows,"0"),sort:r(t.attributes.sort,"0"),autoFilter:r(t.attributes.autoFilter,"0"),pivotTables:r(t.attributes.pivotTables,"0")},t.attributes.algorithmName&&(this.model.algorithmName=t.attributes.algorithmName,this.model.hashValue=t.attributes.hashValue,this.model.saltValue=t.attributes.saltValue,this.model.spinCount=parseInt(t.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(s,C,_){const d=s("../../../utils/col-cache"),a=s("../base-xform"),o={frozen:"frozen",frozenSplit:"frozen",split:"split"};C.exports=class extends a{get tag(){return"sheetView"}prepare(r){switch(r.state){case"frozen":case"split":break;default:r.state="normal"}}render(r,t){r.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const e=function(f,u,p){p&&r.addAttribute(f,u)};let l,n,i,c;switch(e("rightToLeft","1",t.rightToLeft===!0),e("tabSelected","1",t.tabSelected),e("showRuler","0",t.showRuler===!1),e("showRowColHeaders","0",t.showRowColHeaders===!1),e("showGridLines","0",t.showGridLines===!1),e("zoomScale",t.zoomScale,t.zoomScale),e("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),e("view",t.style,t.style),t.state){case"frozen":n=t.xSplit||0,i=t.ySplit||0,l=t.topLeftCell||d.getAddress(i+1,n+1).address,c=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",r.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:l,activePane:c,state:"frozen"}),r.leafNode("selection",{pane:c,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":t.activePane==="topLeft"&&(t.activePane=void 0),r.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),r.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&r.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}r.closeNode()}parseOpen(r){switch(r.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(r.attributes.workbookViewId,10),rightToLeft:r.attributes.rightToLeft==="1",tabSelected:r.attributes.tabSelected==="1",showRuler:r.attributes.showRuler!=="0",showRowColHeaders:r.attributes.showRowColHeaders!=="0",showGridLines:r.attributes.showGridLines!=="0",zoomScale:parseInt(r.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(r.attributes.zoomScaleNormal||"100",10),style:r.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(r.attributes.xSplit||"0",10),ySplit:parseInt(r.attributes.ySplit||"0",10),topLeftCell:r.attributes.topLeftCell,activePane:r.attributes.activePane||"topLeft",state:r.attributes.state},!0;case"selection":{const t=r.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:r.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(r){let t,e;switch(r){case"sheetView":return this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:o[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(t.activePane=this.pane.activePane),e=this.selections[this.pane.activePane],e&&e.activeCell&&(t.activeCell=e.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},e=this.selections.topLeft,e&&e.activeCell&&(t.activeCell=e.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"tablePart"}render(a,o){o&&a.leafNode(this.tag,{"r:id":o.rId})}parseOpen(a){switch(a.name){case this.tag:return this.model={rId:a.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(s,C,_){const d=s("../../../utils/under-dash"),a=s("../../../utils/col-cache"),o=s("../../../utils/xml-stream"),r=s("../../rel-type"),t=s("./merges"),e=s("../base-xform"),l=s("../list-xform"),n=s("./row-xform"),i=s("./col-xform"),c=s("./dimension-xform"),f=s("./hyperlink-xform"),u=s("./merge-cell-xform"),p=s("./data-validations-xform"),h=s("./sheet-properties-xform"),w=s("./sheet-format-properties-xform"),x=s("./sheet-view-xform"),R=s("./sheet-protection-xform"),N=s("./page-margins-xform"),F=s("./page-setup-xform"),I=s("./print-options-xform"),P=s("./auto-filter-xform"),B=s("./picture-xform"),$=s("./drawing-xform"),D=s("./table-part-xform"),S=s("./row-breaks-xform"),T=s("./header-footer-xform"),v=s("./cf/conditional-formattings-xform"),m=s("./ext-lst-xform"),b=(y,k)=>{if(!k||!k.length)return y;if(!y||!y.length)return k;const O={},A={};return y.forEach(z=>{O[z.ref]=z,z.rules.forEach(U=>{const{x14Id:X}=U;X&&(A[X]=U)})}),k.forEach(z=>{z.rules.forEach(U=>{const X=A[U.x14Id];X?((j,V)=>{Object.keys(V).forEach(E=>{const M=j[E],L=V[E];M===void 0&&L!==void 0&&(j[E]=L)})})(X,U):O[z.ref]?O[z.ref].rules.push(U):y.push({ref:z.ref,rules:[U]})})}),y};class g extends e{constructor(k){super();const{maxRows:O,maxCols:A,ignoreNodes:z}=k||{};this.ignoreNodes=z||[],this.map={sheetPr:new h,dimension:new c,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new x}),sheetFormatPr:new w,cols:new l({tag:"cols",count:!1,childXform:new i}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new n({maxItems:A}),maxItems:O}),autoFilter:new P,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new u}),rowBreaks:new S,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new f}),pageMargins:new N,dataValidations:new p,pageSetup:new F,headerFooter:new T,printOptions:new I,picture:new B,drawing:new $,sheetProtection:new R,tableParts:new l({tag:"tableParts",count:!0,childXform:new D}),conditionalFormatting:new v,extLst:new m}}prepare(k,O){O.merges=new t,k.hyperlinks=O.hyperlinks=[],k.comments=O.comments=[],O.formulae={},O.siFormulae=0,this.map.cols.prepare(k.cols,O),this.map.sheetData.prepare(k.rows,O),this.map.conditionalFormatting.prepare(k.conditionalFormattings,O),k.mergeCells=O.merges.mergeCells;const A=k.rels=[];function z(j){return"rId"+(j.length+1)}if(k.hyperlinks.forEach(j=>{const V=z(A);j.rId=V,A.push({Id:V,Type:r.Hyperlink,Target:j.target,TargetMode:"External"})}),k.comments.length>0){const j={Id:z(A),Type:r.Comments,Target:`../comments${k.id}.xml`};A.push(j);const V={Id:z(A),Type:r.VmlDrawing,Target:`../drawings/vmlDrawing${k.id}.vml`};A.push(V),k.comments.forEach(E=>{E.refAddress=a.decodeAddress(E.ref)}),O.commentRefs.push({commentName:"comments"+k.id,vmlDrawing:"vmlDrawing"+k.id})}const U=[];let X;k.media.forEach(j=>{if(j.type==="background"){const V=z(A);X=O.media[j.imageId],A.push({Id:V,Type:r.Image,Target:`../media/${X.name}.${X.extension}`}),k.background={rId:V},k.image=O.media[j.imageId]}else if(j.type==="image"){let{drawing:V}=k;X=O.media[j.imageId],V||(V=k.drawing={rId:z(A),name:"drawing"+ ++O.drawingsCount,anchors:[],rels:[]},O.drawings.push(V),A.push({Id:V.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${V.name}.xml`}));let E=this.preImageId===j.imageId?U[j.imageId]:U[V.rels.length];E||(E=z(V.rels),U[V.rels.length]=E,V.rels.push({Id:E,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${X.name}.${X.extension}`}));const M={picture:{rId:E},range:j.range};if(j.hyperlinks&&j.hyperlinks.hyperlink){const L=z(V.rels);U[V.rels.length]=L,M.picture.hyperlinks={tooltip:j.hyperlinks.tooltip,rId:L},V.rels.push({Id:L,Type:r.Hyperlink,Target:j.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=j.imageId,V.anchors.push(M)}}),k.tables.forEach(j=>{const V=z(A);j.rId=V,A.push({Id:V,Type:r.Table,Target:"../tables/"+j.target}),j.columns.forEach(E=>{const{style:M}=E;M&&(E.dxfId=O.styles.addDxfStyle(M))})}),this.map.extLst.prepare(k,O)}render(k,O){k.openXml(o.StdDocAttributes),k.openNode("worksheet",g.WORKSHEET_ATTRIBUTES);const A=O.properties?{defaultRowHeight:O.properties.defaultRowHeight,dyDescent:O.properties.dyDescent,outlineLevelCol:O.properties.outlineLevelCol,outlineLevelRow:O.properties.outlineLevelRow}:void 0;O.properties&&O.properties.defaultColWidth&&(A.defaultColWidth=O.properties.defaultColWidth);const z={outlineProperties:O.properties&&O.properties.outlineProperties,tabColor:O.properties&&O.properties.tabColor,pageSetup:O.pageSetup&&O.pageSetup.fitToPage?{fitToPage:O.pageSetup.fitToPage}:void 0},U=O.pageSetup&&O.pageSetup.margins,X={showRowColHeaders:O.pageSetup&&O.pageSetup.showRowColHeaders,showGridLines:O.pageSetup&&O.pageSetup.showGridLines,horizontalCentered:O.pageSetup&&O.pageSetup.horizontalCentered,verticalCentered:O.pageSetup&&O.pageSetup.verticalCentered},j=O.sheetProtection;this.map.sheetPr.render(k,z),this.map.dimension.render(k,O.dimensions),this.map.sheetViews.render(k,O.views),this.map.sheetFormatPr.render(k,A),this.map.cols.render(k,O.cols),this.map.sheetData.render(k,O.rows),this.map.sheetProtection.render(k,j),this.map.autoFilter.render(k,O.autoFilter),this.map.mergeCells.render(k,O.mergeCells),this.map.conditionalFormatting.render(k,O.conditionalFormattings),this.map.dataValidations.render(k,O.dataValidations),this.map.hyperlinks.render(k,O.hyperlinks),this.map.printOptions.render(k,X),this.map.pageMargins.render(k,U),this.map.pageSetup.render(k,O.pageSetup),this.map.headerFooter.render(k,O.headerFooter),this.map.rowBreaks.render(k,O.rowBreaks),this.map.drawing.render(k,O.drawing),this.map.picture.render(k,O.background),this.map.tableParts.render(k,O.tables),this.map.extLst.render(k,O),O.rels&&O.rels.forEach(V=>{V.Type===r.VmlDrawing&&k.leafNode("legacyDrawing",{"r:id":V.Id})}),k.closeNode()}parseOpen(k){return this.parser?(this.parser.parseOpen(k),!0):k.name==="worksheet"?(d.each(this.map,O=>{O.reset()}),!0):(this.map[k.name]&&!this.ignoreNodes.includes(k.name)&&(this.parser=this.map[k.name],this.parser.parseOpen(k)),!0)}parseText(k){this.parser&&this.parser.parseText(k)}parseClose(k){if(this.parser)return this.parser.parseClose(k)||(this.parser=void 0),!0;switch(k){case"worksheet":{const O=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(O.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(O.outlineProperties=this.map.sheetPr.model.outlineProperties);const A={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},z=Object.assign(A,this.map.pageSetup.model,this.map.printOptions.model),U=b(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:O,views:this.map.sheetViews.model,pageSetup:z,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:U},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(k,O){const A=(k.relationships||[]).reduce((U,X)=>{if(U[X.Id]=X,X.Type===r.Comments&&(k.comments=O.comments[X.Target].comments),X.Type===r.VmlDrawing&&k.comments&&k.comments.length){const j=O.vmlDrawings[X.Target].comments;k.comments.forEach((V,E)=>{V.note=Object.assign({},V.note,j[E])})}return U},{});if(O.commentsMap=(k.comments||[]).reduce((U,X)=>(X.ref&&(U[X.ref]=X),U),{}),O.hyperlinkMap=(k.hyperlinks||[]).reduce((U,X)=>(X.rId&&(U[X.address]=A[X.rId].Target),U),{}),O.formulae={},k.rows=k.rows&&k.rows.filter(Boolean)||[],k.rows.forEach(U=>{U.cells=U.cells&&U.cells.filter(Boolean)||[]}),this.map.cols.reconcile(k.cols,O),this.map.sheetData.reconcile(k.rows,O),this.map.conditionalFormatting.reconcile(k.conditionalFormattings,O),k.media=[],k.drawing){const U=A[k.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(U){const X=U[1];O.drawings[X].anchors.forEach(j=>{if(j.medium){const V={type:"image",imageId:j.medium.index,range:j.range,hyperlinks:j.picture.hyperlinks};k.media.push(V)}})}}const z=k.background&&A[k.background.rId];if(z){const U=z.Target.split("/media/")[1],X=O.mediaIndex&&O.mediaIndex[U];X!==void 0&&k.media.push({type:"background",imageId:X})}k.tables=(k.tables||[]).map(U=>{const X=A[U.rId];return O.tables[X.Target]}),delete k.relationships,delete k.hyperlinks,delete k.comments}}g.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"},C.exports=g},{"../../../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(s,C,_){const d=s("../base-xform");C.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.attr=a.attr}render(a,o){o&&(a.openNode(this.tag),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this._format=a.format||function(o){try{return Number.isNaN(o.getTime())?"":o.toISOString()}catch{return""}},this._parse=a.parse||function(o){return new Date(o)}}render(a,o){o&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,this._format(o)):a.writeText(this._format(o)),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.attr?this.model=this._parse(a.attributes[this.attr]):this.text=[])}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs,this.zero=a.zero}render(a,o){(o||this.zero)&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,o):a.writeText(o),a.closeNode())}parseOpen(a){return a.name===this.tag&&(this.attr?this.model=parseInt(a.attributes[this.attr],10):this.text=[],!0)}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{constructor(a){super(),this.tag=a.tag,this.attr=a.attr,this.attrs=a.attrs}render(a,o){o!==void 0&&(a.openNode(this.tag),this.attrs&&a.addAttributes(this.attrs),this.attr?a.addAttribute(this.attr,o):a.writeText(o),a.closeNode())}parseOpen(a){a.name===this.tag&&(this.attr?this.model=a.attributes[this.attr]:this.text=[])}parseText(a){this.attr||this.text.push(a)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(s,C,_){const d=s("./base-xform"),a=s("../../utils/xml-stream");C.exports=class extends d{constructor(o){super(),this._model=o}render(o){if(!this._xml){const r=new a;(function t(e,l){e.openNode(l.tag,l.$),l.c&&l.c.forEach(n=>{t(e,n)}),l.t&&e.writeText(l.t),e.closeNode()})(r,this._model),this._xml=r.xml}o.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(o){switch(o){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(s,C,_){const d=s("./text-xform"),a=s("./rich-text-xform"),o=s("../base-xform");C.exports=class extends o{constructor(){super(),this.map={r:new a,t:new d}}get tag(){return"rPh"}render(r,t){if(r.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r:e}=this.map;t.richText.forEach(l=>{e.render(r,l)})}else t&&this.map.t.render(r,t.text);r.closeNode()}parseOpen(r){const{name:t}=r;return this.parser?(this.parser.parseOpen(r),!0):t===this.tag?(this.model={sb:parseInt(r.attributes.sb,10),eb:parseInt(r.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(r),!0))}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser){if(!this.parser.parseClose(r)){switch(r){case"r":{let t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(r){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(s,C,_){const d=s("./text-xform"),a=s("../style/font-xform"),o=s("../base-xform");class r extends o{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new d)}get fontXform(){return this._fontXform||(this._fontXform=new a(r.FONT_OPTIONS))}render(e,l){l=l||this.model,e.openNode("r"),l.font&&this.fontXform.render(e,l.font),this.textXform.render(e,l.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}r.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},C.exports=r},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(s,C,_){const d=s("./text-xform"),a=s("./rich-text-xform"),o=s("./phonetic-text-xform"),r=s("../base-xform");C.exports=class extends r{constructor(t){super(),this.model=t,this.map={r:new a,t:new d,rPh:new o}}get tag(){return"si"}render(t,e){t.openNode(this.tag),e&&e.hasOwnProperty("richText")&&e.richText?e.richText.length?e.richText.forEach(l=>{this.map.r.render(t,l)}):this.map.t.render(t,""):e!=null&&this.map.t.render(t,e),t.closeNode()}parseOpen(t){const{name:e}=t;return this.parser?(this.parser.parseOpen(t),!0):e===this.tag?(this.model={},!0):(this.parser=this.map[e],!!this.parser&&(this.parser.parseOpen(t),!0))}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser){if(!this.parser.parseClose(t)){switch(t){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(t){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(s,C,_){const d=s("../../../utils/xml-stream"),a=s("../base-xform"),o=s("./shared-string-xform");C.exports=class extends a{constructor(r){super(),this.model=r||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new o)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(r){return this.model.values[r]}add(r){return r.richText?this.addRichText(r):this.addText(r)}addText(r){let t=this.hash[r];return t===void 0&&(t=this.hash[r]=this.model.values.length,this.model.values.push(r)),this.model.count++,t}addRichText(r){const t=this.sharedStringXform.toXml(r);let e=this.rich[t];return e===void 0&&(e=this.rich[t]=this.model.values.length,this.model.values.push(r)),this.model.count++,e}render(r,t){t=t||this._values,r.openXml(d.StdDocAttributes),r.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const e=this.sharedStringXform;t.values.forEach(l=>{e.render(r,l)}),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(r),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(r))}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){if(this.parser)return this.parser.parseClose(r)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(r){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+r)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"t"}render(a,o){a.openNode("t"),/^\s|\n|\s$/.test(o)&&a.addAttribute("xml:space","preserve"),a.writeText(o),a.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(a,o)=>String.fromCharCode(parseInt(o,16)))}parseOpen(a){switch(a.name){case"t":return this._text=[],!0;default:return!1}}parseText(a){this._text.push(a)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(s,C,_){const d=s("../../../doc/enums"),a=s("../../../utils/utils"),o=s("../base-xform"),r={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((e,l)=>(e[l]=!0,e),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((e,l)=>(e[l]=!0,e),{}),vertical(e){return e==="middle"?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation(e){switch(e){case"vertical":return e;default:return(e=a.validInt(e))>=-90&&e<=90?e:void 0}},indent:e=>(e=a.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return d.ReadingOrder.LeftToRight;case"rtl":return d.ReadingOrder.RightToLeft;default:return}}},t={toXml(e){if(e=r.textRotation(e)){if(e==="vertical")return 255;const l=Math.round(e);if(l>=0&&l<=90)return l;if(l<0&&l>=-90)return 90-l}},toModel(e){const l=a.validInt(e);if(l!==void 0){if(l===255)return"vertical";if(l>=0&&l<=90)return l;if(l>90&&l<=180)return 90-l}}};C.exports=class extends o{get tag(){return"alignment"}render(e,l){e.addRollback(),e.openNode("alignment");let n=!1;function i(c,f){f&&(e.addAttribute(c,f),n=!0)}i("horizontal",r.horizontal(l.horizontal)),i("vertical",r.vertical(l.vertical)),i("wrapText",!!r.wrapText(l.wrapText)&&"1"),i("shrinkToFit",!!r.shrinkToFit(l.shrinkToFit)&&"1"),i("indent",r.indent(l.indent)),i("textRotation",t.toXml(l.textRotation)),i("readingOrder",r.readingOrder(l.readingOrder)),e.closeNode(),n?e.commit():e.rollback()}parseOpen(e){const l={};let n=!1;function i(c,f,u){c&&(l[f]=u,n=!0)}i(e.attributes.horizontal,"horizontal",e.attributes.horizontal),i(e.attributes.vertical,"vertical",e.attributes.vertical==="center"?"middle":e.attributes.vertical),i(e.attributes.wrapText,"wrapText",a.parseBoolean(e.attributes.wrapText)),i(e.attributes.shrinkToFit,"shrinkToFit",a.parseBoolean(e.attributes.shrinkToFit)),i(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),i(e.attributes.textRotation,"textRotation",t.toModel(e.attributes.textRotation)),i(e.attributes.readingOrder,"readingOrder",e.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=n?l:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(s,C,_){const d=s("../base-xform"),a=s("../../../utils/utils"),o=s("./color-xform");class r extends d{constructor(e){super(),this.name=e,this.map={color:new o}}get tag(){return this.name}render(e,l,n){const i=l&&l.color||n||this.defaultColor;e.openNode(this.name),l&&l.style&&(e.addAttribute("style",l.style),i&&this.map.color.render(e,i)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{const{style:l}=e.attributes;return this.model=l?{style:l}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return r.validStyleValues[e]}}r.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((t,e)=>(t[e]=!0,t),{}),C.exports=class extends d{constructor(){super(),this.map={top:new r("top"),left:new r("left"),bottom:new r("bottom"),right:new r("right"),diagonal:new r("diagonal")}}render(t,e){const{color:l}=e;function n(i,c){i&&!i.color&&e.color&&(i={...i,color:e.color}),c.render(t,i,l)}t.openNode("border"),e.diagonal&&e.diagonal.style&&(e.diagonal.up&&t.addAttribute("diagonalUp","1"),e.diagonal.down&&t.addAttribute("diagonalDown","1")),n(e.left,this.map.left),n(e.right,this.map.right),n(e.top,this.map.top),n(e.bottom,this.map.bottom),n(e.diagonal,this.map.diagonal),t.closeNode()}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;switch(t.name){case"border":return this.reset(),this.diagonalUp=a.parseBoolean(t.attributes.diagonalUp),this.diagonalDown=a.parseBoolean(t.attributes.diagonalDown),!0;default:return this.parser=this.map[t.name],!!this.parser&&(this.parser.parseOpen(t),!0)}}parseText(t){this.parser&&this.parser.parseText(t)}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;if(t==="border"){const e=this.model={},l=function(n,i,c){i&&(c&&Object.assign(i,c),e[n]=i)};l("left",this.map.left.model),l("right",this.map.right.model),l("top",this.map.top.model),l("bottom",this.map.bottom.model),l("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{constructor(a){super(),this.name=a||"color"}get tag(){return this.name}render(a,o){return!!o&&(a.openNode(this.name),o.argb?a.addAttribute("rgb",o.argb):o.theme!==void 0?(a.addAttribute("theme",o.theme),o.tint!==void 0&&a.addAttribute("tint",o.tint)):o.indexed!==void 0?a.addAttribute("indexed",o.indexed):a.addAttribute("auto","1"),a.closeNode(),!0)}parseOpen(a){return a.name===this.name&&(a.attributes.rgb?this.model={argb:a.attributes.rgb}:a.attributes.theme?(this.model={theme:parseInt(a.attributes.theme,10)},a.attributes.tint&&(this.model.tint=parseFloat(a.attributes.tint))):a.attributes.indexed?this.model={indexed:parseInt(a.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(s,C,_){const d=s("../base-xform"),a=s("./alignment-xform"),o=s("./border-xform"),r=s("./fill-xform"),t=s("./font-xform"),e=s("./numfmt-xform"),l=s("./protection-xform");C.exports=class extends d{constructor(){super(),this.map={alignment:new a,border:new o,fill:new r,font:new t,numFmt:new e,protection:new l}}get tag(){return"dxf"}render(n,i){if(n.openNode(this.tag),i.font&&this.map.font.render(n,i.font),i.numFmt&&i.numFmtId){const c={id:i.numFmtId,formatCode:i.numFmt};this.map.numFmt.render(n,c)}i.fill&&this.map.fill.render(n,i.fill),i.alignment&&this.map.alignment.render(n,i.alignment),i.border&&this.map.border.render(n,i.border),i.protection&&this.map.protection.render(n,i.protection),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[n.name],this.parser&&this.parser.parseOpen(n),!0}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.parser=void 0),!0):n!==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)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(s,C,_){const d=s("../base-xform"),a=s("./color-xform");class o extends d{constructor(){super(),this.map={color:new a}}get tag(){return"stop"}render(n,i){n.openNode("stop"),n.addAttribute("position",i.position),this.map.color.render(n,i.color),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"stop":return this.model={position:parseFloat(n.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(n),!0;default:return!1}}parseText(){}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class r extends d{constructor(){super(),this.map={fgColor:new a("fgColor"),bgColor:new a("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(n,i){n.openNode("patternFill"),n.addAttribute("patternType",i.pattern),i.fgColor&&this.map.fgColor.render(n,i.fgColor),i.bgColor&&this.map.bgColor.render(n,i.bgColor),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"patternFill":return this.model={type:"pattern",pattern:n.attributes.patternType},!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.parser.model&&(this.model[n]=this.parser.model),this.parser=void 0),!0)}}class t extends d{constructor(){super(),this.map={stop:new o}}get name(){return"gradient"}get tag(){return"gradientFill"}render(n,i){switch(n.openNode("gradientFill"),i.gradient){case"angle":n.addAttribute("degree",i.degree);break;case"path":n.addAttribute("type","path"),i.center.left&&(n.addAttribute("left",i.center.left),i.center.right===void 0&&n.addAttribute("right",i.center.left)),i.center.right&&n.addAttribute("right",i.center.right),i.center.top&&(n.addAttribute("top",i.center.top),i.center.bottom===void 0&&n.addAttribute("bottom",i.center.top)),i.center.bottom&&n.addAttribute("bottom",i.center.bottom)}const c=this.map.stop;i.stops.forEach(f=>{c.render(n,f)}),n.closeNode()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"gradientFill":{const i=this.model={stops:[]};return n.attributes.degree?(i.gradient="angle",i.degree=parseInt(n.attributes.degree,10)):n.attributes.type==="path"&&(i.gradient="path",i.center={left:n.attributes.left?parseFloat(n.attributes.left):0,top:n.attributes.top?parseFloat(n.attributes.top):0},n.attributes.right!==n.attributes.left&&(i.center.right=n.attributes.right?parseFloat(n.attributes.right):0),n.attributes.bottom!==n.attributes.top&&(i.center.bottom=n.attributes.bottom?parseFloat(n.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(n),!0;default:return!1}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class e extends d{constructor(){super(),this.map={patternFill:new r,gradientFill:new t}}get tag(){return"fill"}render(n,i){switch(n.addRollback(),n.openNode("fill"),i.type){case"pattern":this.map.patternFill.render(n,i);break;case"gradient":this.map.gradientFill.render(n,i);break;default:return void n.rollback()}n.closeNode(),n.commit()}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"fill":return this.model={},!0;default:return this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0)}}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){return!!this.parser&&(this.parser.parseClose(n)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(n){return e.validPatternValues[n]}}e.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((l,n)=>(l[n]=!0,l),{}),e.StopXform=o,e.PatternFillXform=r,e.GradientFillXform=t,C.exports=e},{"../base-xform":32,"./color-xform":128}],131:[function(s,C,_){const d=s("./color-xform"),a=s("../simple/boolean-xform"),o=s("../simple/integer-xform"),r=s("../simple/string-xform"),t=s("./underline-xform"),e=s("../../../utils/under-dash"),l=s("../base-xform");class n extends l{constructor(c){super(),this.options=c||n.OPTIONS,this.map={b:{prop:"bold",xform:new a({tag:"b",attr:"val"})},i:{prop:"italic",xform:new a({tag:"i",attr:"val"})},u:{prop:"underline",xform:new t},charset:{prop:"charset",xform:new o({tag:"charset",attr:"val"})},color:{prop:"color",xform:new d},condense:{prop:"condense",xform:new a({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new a({tag:"extend",attr:"val"})},family:{prop:"family",xform:new o({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new a({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new r({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new r({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new a({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new a({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new o({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new r({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(c,f){const{map:u}=this;c.openNode(this.options.tagName),e.each(this.map,(p,h)=>{u[h].xform.render(c,f[p.prop])}),c.closeNode()}parseOpen(c){if(this.parser)return this.parser.parseOpen(c),!0;if(this.map[c.name])return this.parser=this.map[c.name].xform,this.parser.parseOpen(c);switch(c.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(c){this.parser&&this.parser.parseText(c)}parseClose(c){if(this.parser&&!this.parser.parseClose(c)){const f=this.map[c];return this.parser.model&&(this.model[f.prop]=this.parser.model),this.parser=void 0,!0}switch(c){case this.options.tagName:return!1;default:return!0}}}n.OPTIONS={tagName:"font",fontNameTag:"name"},C.exports=n},{"../../../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(s,C,_){const d=s("../../../utils/under-dash"),a=s("../../defaultnumformats"),o=s("../base-xform"),r=function(){const e={};return d.each(a,(l,n)=>{l.f&&(e[l.f]=parseInt(n,10))}),e}();class t extends o{constructor(l,n){super(),this.id=l,this.formatCode=n}get tag(){return"numFmt"}render(l,n){l.leafNode("numFmt",{numFmtId:n.id,formatCode:n.formatCode})}parseOpen(l){switch(l.name){case"numFmt":return this.model={id:parseInt(l.attributes.numFmtId,10),formatCode:l.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}t.getDefaultFmtId=function(e){return r[e]},t.getDefaultFmtCode=function(e){return a[e]&&a[e].f},C.exports=t},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(s,C,_){const d=s("../base-xform"),a={boolean:(o,r)=>o===void 0?r:o};C.exports=class extends d{get tag(){return"protection"}render(o,r){o.addRollback(),o.openNode("protection");let t=!1;function e(l,n){n!==void 0&&(o.addAttribute(l,n),t=!0)}e("locked",a.boolean(r.locked,!0)?void 0:"0"),e("hidden",a.boolean(r.hidden,!1)?"1":void 0),o.closeNode(),t?o.commit():o.rollback()}parseOpen(o){const r={locked:o.attributes.locked!=="0",hidden:o.attributes.hidden==="1"},t=!r.locked||r.hidden;this.model=t?r:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(s,C,_){const d=s("../base-xform"),a=s("./alignment-xform"),o=s("./protection-xform");C.exports=class extends d{constructor(r){super(),this.xfId=!(!r||!r.xfId),this.map={alignment:new a,protection:new o}}get tag(){return"xf"}render(r,t){r.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&r.addAttribute("xfId",t.xfId||0),t.numFmtId&&r.addAttribute("applyNumberFormat","1"),t.fontId&&r.addAttribute("applyFont","1"),t.fillId&&r.addAttribute("applyFill","1"),t.borderId&&r.addAttribute("applyBorder","1"),t.alignment&&r.addAttribute("applyAlignment","1"),t.protection&&r.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(r,t.alignment),t.protection&&this.map.protection.render(r,t.protection),r.closeNode()}parseOpen(r){if(this.parser)return this.parser.parseOpen(r),!0;switch(r.name){case"xf":return this.model={numFmtId:parseInt(r.attributes.numFmtId,10),fontId:parseInt(r.attributes.fontId,10),fillId:parseInt(r.attributes.fillId,10),borderId:parseInt(r.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(r.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(r),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(r),!0;default:return!1}}parseText(r){this.parser&&this.parser.parseText(r)}parseClose(r){return this.parser?(this.parser.parseClose(r)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):r!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(s,C,_){const d=s("../../../doc/enums"),a=s("../../../utils/xml-stream"),o=s("../base-xform"),r=s("../static-xform"),t=s("../list-xform"),e=s("./font-xform"),l=s("./fill-xform"),n=s("./border-xform"),i=s("./numfmt-xform"),c=s("./style-xform"),f=s("./dxf-xform");class u extends o{constructor(h){super(),this.map={numFmts:new t({tag:"numFmts",count:!0,childXform:new i}),fonts:new t({tag:"fonts",count:!0,childXform:new e,$:{"x14ac:knownFonts":1}}),fills:new t({tag:"fills",count:!0,childXform:new l}),borders:new t({tag:"borders",count:!0,childXform:new n}),cellStyleXfs:new t({tag:"cellStyleXfs",count:!0,childXform:new c}),cellXfs:new t({tag:"cellXfs",count:!0,childXform:new c({xfId:!0})}),dxfs:new t({tag:"dxfs",always:!0,count:!0,childXform:new f}),numFmt:new i,font:new e,fill:new l,border:new n,style:new c({xfId:!0}),cellStyles:u.STATIC_XFORMS.cellStyles,tableStyles:u.STATIC_XFORMS.tableStyles,extLst:u.STATIC_XFORMS.extLst},h&&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(h,w){w=w||this.model,h.openXml(a.StdDocAttributes),h.openNode("styleSheet",u.STYLESHEET_ATTRIBUTES),this.index?(w.numFmts&&w.numFmts.length&&(h.openNode("numFmts",{count:w.numFmts.length}),w.numFmts.forEach(x=>{h.writeXml(x)}),h.closeNode()),w.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),h.openNode("fonts",{count:w.fonts.length,"x14ac:knownFonts":1}),w.fonts.forEach(x=>{h.writeXml(x)}),h.closeNode(),h.openNode("fills",{count:w.fills.length}),w.fills.forEach(x=>{h.writeXml(x)}),h.closeNode(),h.openNode("borders",{count:w.borders.length}),w.borders.forEach(x=>{h.writeXml(x)}),h.closeNode(),this.map.cellStyleXfs.render(h,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),h.openNode("cellXfs",{count:w.styles.length}),w.styles.forEach(x=>{h.writeXml(x)}),h.closeNode()):(this.map.numFmts.render(h,w.numFmts),this.map.fonts.render(h,w.fonts),this.map.fills.render(h,w.fills),this.map.borders.render(h,w.borders),this.map.cellStyleXfs.render(h,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(h,w.styles)),u.STATIC_XFORMS.cellStyles.render(h),this.map.dxfs.render(h,w.dxfs),u.STATIC_XFORMS.tableStyles.render(h),u.STATIC_XFORMS.extLst.render(h),h.closeNode()}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[h.name],this.parser&&this.parser.parseOpen(h),!0}}parseText(h){this.parser&&this.parser.parseText(h)}parseClose(h){if(this.parser)return this.parser.parseClose(h)||(this.parser=void 0),!0;switch(h){case"styleSheet":{this.model={};const w=(x,R)=>{R.model&&R.model.length&&(this.model[x]=R.model)};if(w("numFmts",this.map.numFmts),w("fonts",this.map.fonts),w("fills",this.map.fills),w("borders",this.map.borders),w("styles",this.map.cellXfs),w("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const x=this.index.numFmt;this.model.numFmts.forEach(R=>{x[R.id]=R.formatCode})}return!1}default:return!0}}addStyleModel(h,w){if(!h)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(h))return this.weakMap.get(h);const x={};if(w=w||d.ValueType.Number,h.numFmt)x.numFmtId=this._addNumFmtStr(h.numFmt);else switch(w){case d.ValueType.Number:x.numFmtId=this._addNumFmtStr("General");break;case d.ValueType.Date:x.numFmtId=this._addNumFmtStr("mm-dd-yy")}h.font&&(x.fontId=this._addFont(h.font)),h.border&&(x.borderId=this._addBorder(h.border)),h.fill&&(x.fillId=this._addFill(h.fill)),h.alignment&&(x.alignment=h.alignment),h.protection&&(x.protection=h.protection);const R=this._addStyle(x);return this.weakMap&&this.weakMap.set(h,R),R}getStyleModel(h){const w=this.model.styles[h];if(!w)return null;let x=this.index.model[h];if(x)return x;if(x=this.index.model[h]={},w.numFmtId){const N=this.index.numFmt[w.numFmtId]||i.getDefaultFmtCode(w.numFmtId);N&&(x.numFmt=N)}function R(N,F,I){if(I||I===0){const P=F[I];P&&(x[N]=P)}}return R("font",this.model.fonts,w.fontId),R("border",this.model.borders,w.borderId),R("fill",this.model.fills,w.fillId),w.alignment&&(x.alignment=w.alignment),w.protection&&(x.protection=w.protection),x}addDxfStyle(h){return h.numFmt&&(h.numFmtId=this._addNumFmtStr(h.numFmt)),this.model.dxfs.push(h),this.model.dxfs.length-1}getDxfStyle(h){return this.model.dxfs[h]}_addStyle(h){const w=this.map.style.toXml(h);let x=this.index.style[w];return x===void 0&&(x=this.index.style[w]=this.model.styles.length,this.model.styles.push(w)),x}_addNumFmtStr(h){let w=i.getDefaultFmtId(h);if(w!==void 0||(w=this.index.numFmt[h],w!==void 0))return w;w=this.index.numFmt[h]=164+this.model.numFmts.length;const x=this.map.numFmt.toXml({id:w,formatCode:h});return this.model.numFmts.push(x),w}_addFont(h){const w=this.map.font.toXml(h);let x=this.index.font[w];return x===void 0&&(x=this.index.font[w]=this.model.fonts.length,this.model.fonts.push(w)),x}_addBorder(h){const w=this.map.border.toXml(h);let x=this.index.border[w];return x===void 0&&(x=this.index.border[w]=this.model.borders.length,this.model.borders.push(w)),x}_addFill(h){const w=this.map.fill.toXml(h);let x=this.index.fill[w];return x===void 0&&(x=this.index.fill[w]=this.model.fills.length,this.model.fills.push(w)),x}}u.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"},u.STATIC_XFORMS={cellStyles:new r({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new r({tag:"dxfs",$:{count:0}}),tableStyles:new r({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new r({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"}}]}]})},u.Mock=class extends u{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(p){return p.autodrain(),Promise.resolve()}addStyleModel(p,h){switch(h){case d.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){const p={numFmtId:i.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(p)}return this._dateStyleId}getStyleModel(){return{}}},C.exports=u},{"../../../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(s,C,_){const d=s("../base-xform");class a extends d{constructor(r){super(),this.model=r}get tag(){return"u"}render(r,t){if((t=t||this.model)===!0)r.leafNode("u");else{const e=a.Attributes[t];e&&r.leafNode("u",e)}}parseOpen(r){r.name==="u"&&(this.model=r.attributes.val||!0)}parseText(){}parseClose(){return!1}}a.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},C.exports=a},{"../base-xform":32}],137:[function(s,C,_){const d=s("../base-xform"),a=s("./filter-column-xform");C.exports=class extends d{constructor(){super(),this.map={filterColumn:new a}}get tag(){return"autoFilter"}prepare(o){o.columns.forEach((r,t)=>{this.map.filterColumn.prepare(r,{index:t})})}render(o,r){return o.openNode(this.tag,{ref:r.autoFilterRef}),r.columns.forEach(t=>{this.map.filterColumn.render(o,t)}),o.closeNode(),!0}parseOpen(o){if(this.parser)return this.parser.parseOpen(o),!0;switch(o.name){case this.tag:return this.model={autoFilterRef:o.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[o.name],this.parser)return this.parseOpen(o),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(o))}}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser)return this.parser.parseClose(o)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(o){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+o)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"customFilter"}render(a,o){a.leafNode(this.tag,{val:o.val,operator:o.operator})}parseOpen(a){return a.name===this.tag&&(this.model={val:a.attributes.val,operator:a.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(s,C,_){const d=s("../base-xform"),a=s("../list-xform"),o=s("./custom-filter-xform"),r=s("./filter-xform");C.exports=class extends d{constructor(){super(),this.map={customFilters:new a({tag:"customFilters",count:!1,empty:!0,childXform:new o}),filters:new a({tag:"filters",count:!1,empty:!0,childXform:new r})}}get tag(){return"filterColumn"}prepare(t,e){t.colId=e.index.toString()}render(t,e){return e.customFilters?(t.openNode(this.tag,{colId:e.colId,hiddenButton:e.filterButton?"0":"1"}),this.map.customFilters.render(t,e.customFilters),t.closeNode(),!0):(t.leafNode(this.tag,{colId:e.colId,hiddenButton:e.filterButton?"0":"1"}),!0)}parseOpen(t){if(this.parser)return this.parser.parseOpen(t),!0;const{attributes:e}=t;switch(t.name){case this.tag:return this.model={filterButton:e.hiddenButton==="0"},!0;default:if(this.parser=this.map[t.name],this.parser)return this.parseOpen(t),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(t))}}parseText(){}parseClose(t){if(this.parser)return this.parser.parseClose(t)||(this.parser=void 0),!0;switch(t){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"filter"}render(a,o){a.leafNode(this.tag,{val:o.val})}parseOpen(a){return a.name===this.tag&&(this.model={val:a.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"tableColumn"}prepare(a,o){a.id=o.index+1}render(a,o){return a.leafNode(this.tag,{id:o.id.toString(),name:o.name,totalsRowLabel:o.totalsRowLabel,totalsRowFunction:o.totalsRowFunction,dxfId:o.dxfId}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:o}=a;return this.model={name:o.name,totalsRowLabel:o.totalsRowLabel,totalsRowFunction:o.totalsRowFunction,dxfId:o.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(s,C,_){const d=s("../base-xform");C.exports=class extends d{get tag(){return"tableStyleInfo"}render(a,o){return a.leafNode(this.tag,{name:o.theme?o.theme:void 0,showFirstColumn:o.showFirstColumn?"1":"0",showLastColumn:o.showLastColumn?"1":"0",showRowStripes:o.showRowStripes?"1":"0",showColumnStripes:o.showColumnStripes?"1":"0"}),!0}parseOpen(a){if(a.name===this.tag){const{attributes:o}=a;return this.model={theme:o.name?o.name:null,showFirstColumn:o.showFirstColumn==="1",showLastColumn:o.showLastColumn==="1",showRowStripes:o.showRowStripes==="1",showColumnStripes:o.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(s,C,_){const d=s("../../../utils/xml-stream"),a=s("../base-xform"),o=s("../list-xform"),r=s("./auto-filter-xform"),t=s("./table-column-xform"),e=s("./table-style-info-xform");class l extends a{constructor(){super(),this.map={autoFilter:new r,tableColumns:new o({tag:"tableColumns",count:!0,empty:!0,childXform:new t}),tableStyleInfo:new e}}prepare(i,c){this.map.autoFilter.prepare(i),this.map.tableColumns.prepare(i.columns,c)}get tag(){return"table"}render(i,c){i.openXml(d.StdDocAttributes),i.openNode(this.tag,{...l.TABLE_ATTRIBUTES,id:c.id,name:c.name,displayName:c.displayName||c.name,ref:c.tableRef,totalsRowCount:c.totalsRow?"1":void 0,totalsRowShown:c.totalsRow?void 0:"1",headerRowCount:c.headerRow?"1":"0"}),this.map.autoFilter.render(i,c),this.map.tableColumns.render(i,c.columns),this.map.tableStyleInfo.render(i,c.style),i.closeNode()}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;const{name:c,attributes:f}=i;switch(c){case this.tag:this.reset(),this.model={name:f.name,displayName:f.displayName||f.name,tableRef:f.ref,totalsRow:f.totalsRowCount==="1",headerRow:f.headerRowCount==="1"};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser)return this.parser.parseClose(i)||(this.parser=void 0),!0;switch(i){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((c,f)=>{this.model.columns[f].filterButton=c.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(i,c){i.columns.forEach(f=>{f.dxfId!==void 0&&(f.style=c.styles.getDxfStyle(f.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"},C.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(s,C,_){(function(d,a){(function(){const o=s("fs"),r=s("jszip"),{PassThrough:t}=s("readable-stream"),e=s("../utils/zip-stream"),l=s("../utils/stream-buf"),n=s("../utils/utils"),i=s("../utils/xml-stream"),{bufferToString:c}=s("../utils/browser-buffer-decode"),f=s("./xform/style/styles-xform"),u=s("./xform/core/core-xform"),p=s("./xform/strings/shared-strings-xform"),h=s("./xform/core/relationships-xform"),w=s("./xform/core/content-types-xform"),x=s("./xform/core/app-xform"),R=s("./xform/book/workbook-xform"),N=s("./xform/sheet/worksheet-xform"),F=s("./xform/drawing/drawing-xform"),I=s("./xform/table/table-xform"),P=s("./xform/comment/comments-xform"),B=s("./xform/comment/vml-notes-xform"),$=s("./xml/theme1");class D{constructor(T){this.workbook=T}async readFile(T,v){if(!await n.fs.exists(T))throw new Error("File not found: "+T);const m=o.createReadStream(T);try{const b=await this.read(m,v);return m.close(),b}catch(b){throw m.close(),b}}parseRels(T){return new h().parseStream(T)}parseWorkbook(T){return new R().parseStream(T)}parseSharedStrings(T){return new p().parseStream(T)}reconcile(T,v){const m=new R,b=new N(v),g=new F,y=new I;m.reconcile(T);const k={media:T.media,mediaIndex:T.mediaIndex};Object.keys(T.drawings).forEach(z=>{const U=T.drawings[z],X=T.drawingRels[z];X&&(k.rels=X.reduce((j,V)=>(j[V.Id]=V,j),{}),(U.anchors||[]).forEach(j=>{const V=j.picture&&j.picture.hyperlinks;V&&k.rels[V.rId]&&(V.hyperlink=k.rels[V.rId].Target,delete V.rId)}),g.reconcile(U,k))});const O={styles:T.styles};Object.values(T.tables).forEach(z=>{y.reconcile(z,O)});const A={styles:T.styles,sharedStrings:T.sharedStrings,media:T.media,mediaIndex:T.mediaIndex,date1904:T.properties&&T.properties.date1904,drawings:T.drawings,comments:T.comments,tables:T.tables,vmlDrawings:T.vmlDrawings};T.worksheets.forEach(z=>{z.relationships=T.worksheetRels[z.sheetNo],b.reconcile(z,A)}),delete T.worksheetHash,delete T.worksheetRels,delete T.globalRels,delete T.sharedStrings,delete T.workbookRels,delete T.sheetDefs,delete T.styles,delete T.mediaIndex,delete T.drawings,delete T.drawingRels,delete T.vmlDrawings}async _processWorksheetEntry(T,v,m,b,g){const y=new N(b),k=await y.parseStream(T);k.sheetNo=m,v.worksheetHash[g]=k,v.worksheets.push(k)}async _processCommentEntry(T,v,m){const b=new P,g=await b.parseStream(T);v.comments[`../${m}.xml`]=g}async _processTableEntry(T,v,m){const b=new I,g=await b.parseStream(T);v.tables[`../tables/${m}.xml`]=g}async _processWorksheetRelsEntry(T,v,m){const b=new h,g=await b.parseStream(T);v.worksheetRels[m]=g}async _processMediaEntry(T,v,m){const b=m.lastIndexOf(".");if(b>=1){const g=m.substr(b+1),y=m.substr(0,b);await new Promise((k,O)=>{const A=new l;A.on("finish",()=>{v.mediaIndex[m]=v.media.length,v.mediaIndex[y]=v.media.length;const z={type:"image",name:y,extension:g,buffer:A.toBuffer()};v.media.push(z),k()}),T.on("error",z=>{O(z)}),T.pipe(A)})}}async _processDrawingEntry(T,v,m){const b=new F,g=await b.parseStream(T);v.drawings[m]=g}async _processDrawingRelsEntry(T,v,m){const b=new h,g=await b.parseStream(T);v.drawingRels[m]=g}async _processVmlDrawingEntry(T,v,m){const b=new B,g=await b.parseStream(T);v.vmlDrawings[`../drawings/${m}.vml`]=g}async _processThemeEntry(T,v,m){await new Promise((b,g)=>{const y=new l;T.on("error",g),y.on("error",g),y.on("finish",()=>{v.themes[m]=y.read().toString(),b()}),T.pipe(y)})}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(T,v){!T[Symbol.asyncIterator]&&T.pipe&&(T=T.pipe(new t));const m=[];for await(const b of T)m.push(b);return this.load(a.concat(m),v)}async load(T,v){let m;m=v&&v.base64?a.from(T.toString(),"base64"):T;const b={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},g=await r.loadAsync(m);for(const y of Object.values(g.files))if(!y.dir){let k,O=y.name;if(O[0]==="/"&&(O=O.substr(1)),O.match(/xl\/media\//)||O.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))k=new t,k.write(await y.async("nodebuffer"));else{let A;k=new t({writableObjectMode:!0,readableObjectMode:!0}),A=d.browser?c(await y.async("nodebuffer")):await y.async("string");const z=16384;for(let U=0;U<A.length;U+=z)k.write(A.substring(U,U+z))}switch(k.end(),O){case"_rels/.rels":b.globalRels=await this.parseRels(k);break;case"xl/workbook.xml":{const A=await this.parseWorkbook(k);b.sheets=A.sheets,b.definedNames=A.definedNames,b.views=A.views,b.properties=A.properties,b.calcProperties=A.calcProperties;break}case"xl/_rels/workbook.xml.rels":b.workbookRels=await this.parseRels(k);break;case"xl/sharedStrings.xml":b.sharedStrings=new p,await b.sharedStrings.parseStream(k);break;case"xl/styles.xml":b.styles=new f,await b.styles.parseStream(k);break;case"docProps/app.xml":{const A=new x,z=await A.parseStream(k);b.company=z.company,b.manager=z.manager;break}case"docProps/core.xml":{const A=new u,z=await A.parseStream(k);Object.assign(b,z);break}default:{let A=O.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(A){await this._processWorksheetEntry(k,b,A[1],v,O);break}if(A=O.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),A){await this._processWorksheetRelsEntry(k,b,A[1]);break}if(A=O.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),A){await this._processThemeEntry(k,b,A[1]);break}if(A=O.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),A){await this._processMediaEntry(k,b,A[1]);break}if(A=O.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),A){await this._processDrawingEntry(k,b,A[1]);break}if(A=O.match(/xl\/(comments\d+)[.]xml/),A){await this._processCommentEntry(k,b,A[1]);break}if(A=O.match(/xl\/tables\/(table\d+)[.]xml/),A){await this._processTableEntry(k,b,A[1]);break}if(A=O.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),A){await this._processDrawingRelsEntry(k,b,A[1]);break}if(A=O.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),A){await this._processVmlDrawingEntry(k,b,A[1]);break}}}}return this.reconcile(b,v),this.workbook.model=b,this.workbook}async addMedia(T,v){await Promise.all(v.media.map(async m=>{if(m.type==="image"){const b=`xl/media/${m.name}.${m.extension}`;if(m.filename){const g=await function(y,k){return new Promise((O,A)=>{o.readFile(y,k,(z,U)=>{z?A(z):O(U)})})}(m.filename);return T.append(g,{name:b})}if(m.buffer)return T.append(m.buffer,{name:b});if(m.base64){const g=m.base64,y=g.substring(g.indexOf(",")+1);return T.append(y,{name:b,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(T,v){const m=new F,b=new h;v.worksheets.forEach(g=>{const{drawing:y}=g;if(y){m.prepare(y,{});let k=m.toXml(y);T.append(k,{name:`xl/drawings/${y.name}.xml`}),k=b.toXml(y.rels),T.append(k,{name:`xl/drawings/_rels/${y.name}.xml.rels`})}})}addTables(T,v){const m=new I;v.worksheets.forEach(b=>{const{tables:g}=b;g.forEach(y=>{m.prepare(y,{});const k=m.toXml(y);T.append(k,{name:"xl/tables/"+y.target})})})}async addContentTypes(T,v){const m=new w().toXml(v);T.append(m,{name:"[Content_Types].xml"})}async addApp(T,v){const m=new x().toXml(v);T.append(m,{name:"docProps/app.xml"})}async addCore(T,v){const m=new u;T.append(m.toXml(v),{name:"docProps/core.xml"})}async addThemes(T,v){const m=v.themes||{theme1:$};Object.keys(m).forEach(b=>{const g=m[b],y=`xl/theme/${b}.xml`;T.append(g,{name:y})})}async addOfficeRels(T){const v=new h().toXml([{Id:"rId1",Type:D.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:D.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:D.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);T.append(v,{name:"_rels/.rels"})}async addWorkbookRels(T,v){let m=1;const b=[{Id:"rId"+m++,Type:D.RelType.Styles,Target:"styles.xml"},{Id:"rId"+m++,Type:D.RelType.Theme,Target:"theme/theme1.xml"}];v.sharedStrings.count&&b.push({Id:"rId"+m++,Type:D.RelType.SharedStrings,Target:"sharedStrings.xml"}),v.worksheets.forEach(y=>{y.rId="rId"+m++,b.push({Id:y.rId,Type:D.RelType.Worksheet,Target:`worksheets/sheet${y.id}.xml`})});const g=new h().toXml(b);T.append(g,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(T,v){v.sharedStrings&&v.sharedStrings.count&&T.append(v.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(T,v){const{xml:m}=v.styles;m&&T.append(m,{name:"xl/styles.xml"})}async addWorkbook(T,v){const m=new R;T.append(m.toXml(v),{name:"xl/workbook.xml"})}async addWorksheets(T,v){const m=new N,b=new h,g=new P,y=new B;v.worksheets.forEach(k=>{let O=new i;m.render(O,k),T.append(O.xml,{name:`xl/worksheets/sheet${k.id}.xml`}),k.rels&&k.rels.length&&(O=new i,b.render(O,k.rels),T.append(O.xml,{name:`xl/worksheets/_rels/sheet${k.id}.xml.rels`})),k.comments.length>0&&(O=new i,g.render(O,k),T.append(O.xml,{name:`xl/comments${k.id}.xml`}),O=new i,y.render(O,k),T.append(O.xml,{name:`xl/drawings/vmlDrawing${k.id}.vml`}))})}_finalize(T){return new Promise((v,m)=>{T.on("finish",()=>{v(this)}),T.on("error",m),T.finalize()})}prepareModel(T,v){T.creator=T.creator||"ExcelJS",T.lastModifiedBy=T.lastModifiedBy||"ExcelJS",T.created=T.created||new Date,T.modified=T.modified||new Date,T.useSharedStrings=v.useSharedStrings===void 0||v.useSharedStrings,T.useStyles=v.useStyles===void 0||v.useStyles,T.sharedStrings=new p,T.styles=T.useStyles?new f(!0):new f.Mock;const m=new R,b=new N;m.prepare(T);const g={sharedStrings:T.sharedStrings,styles:T.styles,date1904:T.properties.date1904,drawingsCount:0,media:T.media};g.drawings=T.drawings=[],g.commentRefs=T.commentRefs=[];let y=0;T.tables=[],T.worksheets.forEach(k=>{k.tables.forEach(O=>{y++,O.target=`table${y}.xml`,O.id=y,T.tables.push(O)}),b.prepare(k,g)})}async write(T,v){v=v||{};const{model:m}=this.workbook,b=new e.ZipWriter(v.zip);return b.pipe(T),this.prepareModel(m,v),await this.addContentTypes(b,m),await this.addOfficeRels(b,m),await this.addWorkbookRels(b,m),await this.addWorksheets(b,m),await this.addSharedStrings(b,m),await this.addDrawings(b,m),await this.addTables(b,m),await Promise.all([this.addThemes(b,m),this.addStyles(b,m)]),await this.addMedia(b,m),await Promise.all([this.addApp(b,m),this.addCore(b,m)]),await this.addWorkbook(b,m),this._finalize(b)}writeFile(T,v){const m=o.createWriteStream(T);return new Promise((b,g)=>{m.on("finish",()=>{b()}),m.on("error",y=>{g(y)}),this.write(m,v).then(()=>{m.end()}).catch(y=>{g(y)})})}async writeBuffer(T){const v=new l;return await this.write(v,T),v.read()}}D.RelType=s("./rel-type"),C.exports=D}).call(this)}).call(this,s("_process"),s("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(s,C,_){C.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3
|
-
<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(s,C,_){(function(d){(function(){Object.defineProperty(_,"__esModule",{value:!0}),_.CsvFormatterStream=void 0;const a=s("stream"),o=s("./formatter");class r extends a.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new o.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,l,n){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,(c,f)=>c?(i=!0,n(c)):(f&&f.forEach(u=>{this.push(d.from(u,"utf8"))}),i=!0,n()))}catch(c){if(i)throw c;n(c)}}_flush(e){this.rowFormatter.finish((l,n)=>l?e(l):(n&&n.forEach(i=>{this.push(d.from(i,"utf8"))}),e()))}}_.CsvFormatterStream=r}).call(this)}).call(this,s("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.FormatterOptions=void 0,_.FormatterOptions=class{constructor(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var a;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
|
|
4
|
-
`,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,d||{}),(d==null?void 0:d.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(d==null?void 0:d.quote)===!0?this.quote='"':(d==null?void 0:d.quote)===!1&&(this.quote=""),typeof(d==null?void 0:d.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((a=d.writeHeaders)===null||a===void 0||a),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(s,C,_){var d=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_,"__esModule",{value:!0}),_.FieldFormatter=void 0;const a=d(s("lodash.isboolean")),o=d(s("lodash.isnil")),r=d(s("lodash.escaperegexp"));_.FieldFormatter=class{constructor(t){this._headers=null,this.formatterOptions=t,t.headers!==null&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,"g");const e=`[${t.delimiter}${r.default(t.rowDelimiter)}|\r|
|
|
5
|
-
]`;this.ESCAPE_REGEXP=new RegExp(e)}set headers(t){this._headers=t}shouldQuote(t,e){const l=e?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return a.default(l)?l:Array.isArray(l)?l[t]:this._headers!==null&&l[this._headers[t]]}format(t,e,l){const n=(""+(o.default(t)?"":t)).replace(/\0/g,""),{formatterOptions:i}=this;return i.quote!==""&&n.indexOf(i.quote)!==-1?this.quoteField(n.replace(this.REPLACE_REGEXP,i.escapedQuote)):n.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(e,l)?this.quoteField(n):n}quoteField(t){const{quote:e}=this.formatterOptions;return`${e}${t}${e}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(s,C,_){var d=function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(_,"__esModule",{value:!0}),_.RowFormatter=void 0;const a=d(s("lodash.isfunction")),o=d(s("lodash.isequal")),r=s("./FieldFormatter"),t=s("../types");class e{constructor(n){this.rowCount=0,this.formatterOptions=n,this.fieldFormatter=new r.FieldFormatter(n),this.headers=n.headers,this.shouldWriteHeaders=n.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),n.transform&&(this.rowTransform=n.transform)}static isRowHashArray(n){return!!Array.isArray(n)&&Array.isArray(n[0])&&n[0].length===2}static isRowArray(n){return Array.isArray(n)&&!this.isRowHashArray(n)}static gatherHeaders(n){return e.isRowHashArray(n)?n.map(i=>i[0]):Array.isArray(n)?n:Object.keys(n)}static createTransform(n){return t.isSyncTransform(n)?(i,c)=>{let f=null;try{f=n(i)}catch(u){return c(u)}return c(null,f)}:(i,c)=>{n(i,c)}}set rowTransform(n){if(!a.default(n))throw new TypeError("The transform should be a function");this._rowTransform=e.createTransform(n)}format(n,i){this.callTransformer(n,(c,f)=>{if(c)return i(c);if(!n)return i(null);const u=[];if(f){const{shouldFormatColumns:p,headers:h}=this.checkHeaders(f);if(this.shouldWriteHeaders&&h&&!this.hasWrittenHeaders&&(u.push(this.formatColumns(h,!0)),this.hasWrittenHeaders=!0),p){const w=this.gatherColumns(f);u.push(this.formatColumns(w,!1))}}return i(null,u)})}finish(n){const i=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return n(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));i.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&i.push(this.formatterOptions.rowDelimiter),n(null,i)}checkHeaders(n){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const i=e.gatherHeaders(n);return this.headers=i,this.fieldFormatter.headers=i,this.shouldWriteHeaders?{shouldFormatColumns:!o.default(i,n),headers:i}:{shouldFormatColumns:!0,headers:null}}gatherColumns(n){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(n)?e.isRowHashArray(n)?this.headers.map((i,c)=>{const f=n[c];return f?f[1]:""}):e.isRowArray(n)&&!this.shouldWriteHeaders?n:this.headers.map((i,c)=>n[c]):this.headers.map(i=>n[i])}callTransformer(n,i){return this._rowTransform?this._rowTransform(n,i):i(null,n)}formatColumns(n,i){const c=n.map((u,p)=>this.fieldFormatter.format(u,p,i)).join(this.formatterOptions.delimiter),{rowCount:f}=this;return this.rowCount+=1,f?[this.formatterOptions.rowDelimiter,c].join(""):c}}_.RowFormatter=e},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.FieldFormatter=_.RowFormatter=void 0;var d=s("./RowFormatter");Object.defineProperty(_,"RowFormatter",{enumerable:!0,get:function(){return d.RowFormatter}});var a=s("./FieldFormatter");Object.defineProperty(_,"FieldFormatter",{enumerable:!0,get:function(){return a.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(s,C,_){(function(d){(function(){var a=Object.create?function(p,h,w,x){x===void 0&&(x=w),Object.defineProperty(p,x,{enumerable:!0,get:function(){return h[w]}})}:function(p,h,w,x){x===void 0&&(x=w),p[x]=h[w]},o=Object.create?function(p,h){Object.defineProperty(p,"default",{enumerable:!0,value:h})}:function(p,h){p.default=h},r=function(p){if(p&&p.__esModule)return p;var h={};if(p!=null)for(var w in p)w!=="default"&&Object.prototype.hasOwnProperty.call(p,w)&&a(h,p,w);return o(h,p),h},t=function(p,h){for(var w in p)w==="default"||Object.prototype.hasOwnProperty.call(h,w)||a(h,p,w)};Object.defineProperty(_,"__esModule",{value:!0}),_.writeToPath=_.writeToString=_.writeToBuffer=_.writeToStream=_.write=_.format=_.FormatterOptions=_.CsvFormatterStream=void 0;const e=s("util"),l=s("stream"),n=r(s("fs")),i=s("./FormatterOptions"),c=s("./CsvFormatterStream");t(s("./types"),_);var f=s("./CsvFormatterStream");Object.defineProperty(_,"CsvFormatterStream",{enumerable:!0,get:function(){return f.CsvFormatterStream}});var u=s("./FormatterOptions");Object.defineProperty(_,"FormatterOptions",{enumerable:!0,get:function(){return u.FormatterOptions}}),_.format=p=>new c.CsvFormatterStream(new i.FormatterOptions(p)),_.write=(p,h)=>{const w=_.format(h),x=e.promisify((R,N)=>{w.write(R,void 0,N)});return p.reduce((R,N)=>R.then(()=>x(N)),Promise.resolve()).then(()=>w.end()).catch(R=>{w.emit("error",R)}),w},_.writeToStream=(p,h,w)=>_.write(h,w).pipe(p),_.writeToBuffer=function(p){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const w=[],x=new l.Writable({write(R,N,F){w.push(R),F()}});return new Promise((R,N)=>{x.on("error",N).on("finish",()=>R(d.concat(w))),_.write(p,h).pipe(x)})},_.writeToString=(p,h)=>_.writeToBuffer(p,h).then(w=>w.toString()),_.writeToPath=(p,h,w)=>{const x=n.createWriteStream(p,{encoding:"utf8"});return _.write(h,w).pipe(x)}}).call(this)}).call(this,s("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.isSyncTransform=void 0,_.isSyncTransform=d=>d.length===1},{}],153:[function(s,C,_){(function(d){(function(){Object.defineProperty(_,"__esModule",{value:!0}),_.CsvParserStream=void 0;const a=s("string_decoder"),o=s("stream"),r=s("./transforms"),t=s("./parser");class e extends o.Transform{constructor(n){super({objectMode:n.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=n,this.parser=new t.Parser(n),this.headerTransformer=new r.HeaderTransformer(n),this.decoder=new a.StringDecoder(n.encoding),this.rowTransformerValidator=new r.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(n){return this.rowTransformerValidator.rowTransform=n,this}validate(n){return this.rowTransformerValidator.rowValidator=n,this}emit(n){if(n==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var i=arguments.length,c=new Array(i>1?i-1:0),f=1;f<i;f++)c[f-1]=arguments[f];return super.emit(n,...c)}_transform(n,i,c){if(this.hasHitRowLimit)return c();const f=e.wrapDoneCallback(c);try{const{lines:u}=this,p=u+this.decoder.write(n),h=this.parse(p,!0);return this.processRows(h,f)}catch(u){return f(u)}}_flush(n){const i=e.wrapDoneCallback(n);if(this.hasHitRowLimit)return i();try{const c=this.lines+this.decoder.end(),f=this.parse(c,!1);return this.processRows(f,i)}catch(c){return i(c)}}parse(n,i){if(!n)return[];const{line:c,rows:f}=this.parser.parse(n,i);return this.lines=c,f}processRows(n,i){const c=n.length,f=u=>{const p=x=>x?i(x):u%100!=0?f(u+1):void d(()=>f(u+1));if(this.checkAndEmitHeaders(),u>=c||this.hasHitRowLimit)return i();if(this.parsedLineCount+=1,this.shouldSkipLine)return p();const h=n[u];this.rowCount+=1,this.parsedRowCount+=1;const w=this.rowCount;return this.transformRow(h,(x,R)=>{if(x)return this.rowCount-=1,p(x);if(!R)return p(new Error("expected transform result"));if(R.isValid){if(R.row)return this.pushRow(R.row,p)}else this.emit("data-invalid",R.row,w,R.reason);return p()})};f(0)}transformRow(n,i){try{this.headerTransformer.transform(n,(c,f)=>c?i(c):f?f.isValid?f.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(f.row,i):this.skipRow(i):(this.rowCount-=1,this.parsedRowCount-=1,i(null,{row:null,isValid:!0})):this.shouldEmitRows?i(null,{isValid:!1,row:n}):this.skipRow(i):i(new Error("Expected result from header transform")))}catch(c){i(c)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(n){return this.rowCount-=1,n(null,{row:null,isValid:!0})}pushRow(n,i){try{this.parserOptions.objectMode?this.push(n):this.push(JSON.stringify(n)),i()}catch(c){i(c)}}static wrapDoneCallback(n){let i=!1;return function(c){if(c){if(i)throw c;return i=!0,void n(c)}for(var f=arguments.length,u=new Array(f>1?f-1:0),p=1;p<f;p++)u[p-1]=arguments[p];n(...u)}}}_.CsvParserStream=e}).call(this)}).call(this,s("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(s,C,_){var d=function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(_,"__esModule",{value:!0}),_.ParserOptions=void 0;const a=d(s("lodash.escaperegexp")),o=d(s("lodash.isnil"));_.ParserOptions=class{constructor(r){var t;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,r||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=a.default(this.delimiter),this.escapeChar=(t=this.escape)!==null&&t!==void 0?t:this.quote,this.supportsComments=!o.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(s,C,_){var d=Object.create?function(f,u,p,h){h===void 0&&(h=p),Object.defineProperty(f,h,{enumerable:!0,get:function(){return u[p]}})}:function(f,u,p,h){h===void 0&&(h=p),f[h]=u[p]},a=Object.create?function(f,u){Object.defineProperty(f,"default",{enumerable:!0,value:u})}:function(f,u){f.default=u},o=function(f){if(f&&f.__esModule)return f;var u={};if(f!=null)for(var p in f)p!=="default"&&Object.prototype.hasOwnProperty.call(f,p)&&d(u,f,p);return a(u,f),u},r=function(f,u){for(var p in f)p==="default"||Object.prototype.hasOwnProperty.call(u,p)||d(u,f,p)};Object.defineProperty(_,"__esModule",{value:!0}),_.parseString=_.parseFile=_.parseStream=_.parse=_.ParserOptions=_.CsvParserStream=void 0;const t=o(s("fs")),e=s("stream"),l=s("./ParserOptions"),n=s("./CsvParserStream");r(s("./types"),_);var i=s("./CsvParserStream");Object.defineProperty(_,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}});var c=s("./ParserOptions");Object.defineProperty(_,"ParserOptions",{enumerable:!0,get:function(){return c.ParserOptions}}),_.parse=f=>new n.CsvParserStream(new l.ParserOptions(f)),_.parseStream=(f,u)=>f.pipe(new n.CsvParserStream(new l.ParserOptions(u))),_.parseFile=function(f){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.createReadStream(f).pipe(new n.CsvParserStream(new l.ParserOptions(u)))},_.parseString=(f,u)=>{const p=new e.Readable;return p.push(f),p.push(null),p.pipe(new n.CsvParserStream(new l.ParserOptions(u)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.Parser=void 0;const d=s("./Scanner"),a=s("./RowParser"),o=s("./Token");class r{constructor(e){this.parserOptions=e,this.rowParser=new a.RowParser(this.parserOptions)}static removeBOM(e){return e&&e.charCodeAt(0)===65279?e.slice(1):e}parse(e,l){const n=new d.Scanner({line:r.removeBOM(e),parserOptions:this.parserOptions,hasMoreData:l});return this.parserOptions.supportsComments?this.parseWithComments(n):this.parseWithoutComments(n)}parseWithoutComments(e){const l=[];let n=!0;for(;n;)n=this.parseRow(e,l);return{line:e.line,rows:l}}parseWithComments(e){const{parserOptions:l}=this,n=[];for(let i=e.nextCharacterToken;i!==null;i=e.nextCharacterToken)if(o.Token.isTokenComment(i,l)){if(e.advancePastLine()===null)return{line:e.lineFromCursor,rows:n};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:n};e.truncateToCursor()}else if(!this.parseRow(e,n))break;return{line:e.line,rows:n}}parseRow(e,l){if(!e.nextNonSpaceToken)return!1;const n=this.rowParser.parse(e);return n!==null&&(this.parserOptions.ignoreEmpty&&a.RowParser.isEmptyRow(n)||l.push(n),!0)}}_.Parser=r},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.RowParser=void 0;const d=s("./column"),a=s("./Token");_.RowParser=class{constructor(o){this.parserOptions=o,this.columnParser=new d.ColumnParser(o)}static isEmptyRow(o){return o.join("").replace(/\s+/g,"")===""}parse(o){const{parserOptions:r}=this,{hasMoreData:t}=o,e=o,l=[];let n=this.getStartToken(e,l);for(;n;){if(a.Token.isTokenRowDelimiter(n))return e.advancePastToken(n),!e.hasMoreCharacters&&a.Token.isTokenCarriageReturn(n,r)&&t?null:(e.truncateToCursor(),l);if(!this.shouldSkipColumnParse(e,n,l)){const i=this.columnParser.parse(e);if(i===null)return null;l.push(i)}n=e.nextNonSpaceToken}return t?null:(e.truncateToCursor(),l)}getStartToken(o,r){const t=o.nextNonSpaceToken;return t!==null&&a.Token.isTokenDelimiter(t,this.parserOptions)?(r.push(""),o.nextNonSpaceToken):t}shouldSkipColumnParse(o,r,t){const{parserOptions:e}=this;if(a.Token.isTokenDelimiter(r,e)){o.advancePastToken(r);const l=o.nextCharacterToken;if(!o.hasMoreCharacters||l!==null&&a.Token.isTokenRowDelimiter(l)||l!==null&&a.Token.isTokenDelimiter(l,e))return t.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.Scanner=void 0;const d=s("./Token"),a=/((?:\r\n)|\n|\r)/;_.Scanner=class{constructor(o){this.cursor=0,this.line=o.line,this.lineLength=this.line.length,this.parserOptions=o.parserOptions,this.hasMoreData=o.hasMoreData,this.cursor=o.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:o}=this,r=this.parserOptions.NEXT_TOKEN_REGEXP;if(o.search(r)===-1)return null;const t=r.exec(o);if(t==null)return null;const e=t[1],l=this.cursor+(t.index||0);return new d.Token({token:e,startCursor:l,endCursor:l+e.length-1})}get nextCharacterToken(){const{cursor:o,lineLength:r}=this;return r<=o?null:new d.Token({token:this.line[o],startCursor:o,endCursor:o})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const o=a.exec(this.lineFromCursor);return o?(this.cursor+=(o.index||0)+o[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(o){return this.cursor=o,this}advanceToToken(o){return this.cursor=o.startCursor,this}advancePastToken(o){return this.cursor=o.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.Token=void 0,_.Token=class{constructor(d){this.token=d.token,this.startCursor=d.startCursor,this.endCursor=d.endCursor}static isTokenRowDelimiter(d){const a=d.token;return a==="\r"||a===`
|
|
6
|
-
`||a===`\r
|
|
7
|
-
`}static isTokenCarriageReturn(d,a){return d.token===a.carriageReturn}static isTokenComment(d,a){return a.supportsComments&&!!d&&d.token===a.comment}static isTokenEscapeCharacter(d,a){return d.token===a.escapeChar}static isTokenQuote(d,a){return d.token===a.quote}static isTokenDelimiter(d,a){return d.token===a.delimiter}}},{}],160:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.ColumnFormatter=void 0,_.ColumnFormatter=class{constructor(d){d.trim?this.format=a=>a.trim():d.ltrim?this.format=a=>a.trimLeft():d.rtrim?this.format=a=>a.trimRight():this.format=a=>a}}},{}],161:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.ColumnParser=void 0;const d=s("./NonQuotedColumnParser"),a=s("./QuotedColumnParser"),o=s("../Token");_.ColumnParser=class{constructor(r){this.parserOptions=r,this.quotedColumnParser=new a.QuotedColumnParser(r),this.nonQuotedColumnParser=new d.NonQuotedColumnParser(r)}parse(r){const{nextNonSpaceToken:t}=r;return t!==null&&o.Token.isTokenQuote(t,this.parserOptions)?(r.advanceToToken(t),this.quotedColumnParser.parse(r)):this.nonQuotedColumnParser.parse(r)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.NonQuotedColumnParser=void 0;const d=s("./ColumnFormatter"),a=s("../Token");_.NonQuotedColumnParser=class{constructor(o){this.parserOptions=o,this.columnFormatter=new d.ColumnFormatter(o)}parse(o){if(!o.hasMoreCharacters)return null;const{parserOptions:r}=this,t=[];let e=o.nextCharacterToken;for(;e&&!a.Token.isTokenDelimiter(e,r)&&!a.Token.isTokenRowDelimiter(e);e=o.nextCharacterToken)t.push(e.token),o.advancePastToken(e);return this.columnFormatter.format(t.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.QuotedColumnParser=void 0;const d=s("./ColumnFormatter"),a=s("../Token");_.QuotedColumnParser=class{constructor(o){this.parserOptions=o,this.columnFormatter=new d.ColumnFormatter(o)}parse(o){if(!o.hasMoreCharacters)return null;const r=o.cursor,{foundClosingQuote:t,col:e}=this.gatherDataBetweenQuotes(o);if(!t){if(o.advanceTo(r),!o.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${o.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(o),e}gatherDataBetweenQuotes(o){const{parserOptions:r}=this;let t=!1,e=!1;const l=[];let n=o.nextCharacterToken;for(;!e&&n!==null;n=o.nextCharacterToken){const i=a.Token.isTokenQuote(n,r);if(!t&&i)t=!0;else if(t)if(a.Token.isTokenEscapeCharacter(n,r)){o.advancePastToken(n);const c=o.nextCharacterToken;c!==null&&(a.Token.isTokenQuote(c,r)||a.Token.isTokenEscapeCharacter(c,r))?(l.push(c.token),n=c):i?e=!0:l.push(n.token)}else i?e=!0:l.push(n.token);o.advancePastToken(n)}return{col:this.columnFormatter.format(l.join("")),foundClosingQuote:e}}checkForMalformedColumn(o){const{parserOptions:r}=this,{nextNonSpaceToken:t}=o;if(t){const e=a.Token.isTokenDelimiter(t,r),l=a.Token.isTokenRowDelimiter(t);if(!e&&!l){const n=o.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${r.escapedDelimiter}' OR new line got: '${t.token}'. at '${n}`)}o.advanceToToken(t)}else o.hasMoreData||o.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.ColumnFormatter=_.QuotedColumnParser=_.NonQuotedColumnParser=_.ColumnParser=void 0;var d=s("./ColumnParser");Object.defineProperty(_,"ColumnParser",{enumerable:!0,get:function(){return d.ColumnParser}});var a=s("./NonQuotedColumnParser");Object.defineProperty(_,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}});var o=s("./QuotedColumnParser");Object.defineProperty(_,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}});var r=s("./ColumnFormatter");Object.defineProperty(_,"ColumnFormatter",{enumerable:!0,get:function(){return r.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.QuotedColumnParser=_.NonQuotedColumnParser=_.ColumnParser=_.Token=_.Scanner=_.RowParser=_.Parser=void 0;var d=s("./Parser");Object.defineProperty(_,"Parser",{enumerable:!0,get:function(){return d.Parser}});var a=s("./RowParser");Object.defineProperty(_,"RowParser",{enumerable:!0,get:function(){return a.RowParser}});var o=s("./Scanner");Object.defineProperty(_,"Scanner",{enumerable:!0,get:function(){return o.Scanner}});var r=s("./Token");Object.defineProperty(_,"Token",{enumerable:!0,get:function(){return r.Token}});var t=s("./column");Object.defineProperty(_,"ColumnParser",{enumerable:!0,get:function(){return t.ColumnParser}}),Object.defineProperty(_,"NonQuotedColumnParser",{enumerable:!0,get:function(){return t.NonQuotedColumnParser}}),Object.defineProperty(_,"QuotedColumnParser",{enumerable:!0,get:function(){return t.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(s,C,_){var d=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_,"__esModule",{value:!0}),_.HeaderTransformer=void 0;const a=d(s("lodash.isundefined")),o=d(s("lodash.isfunction")),r=d(s("lodash.uniq")),t=d(s("lodash.groupby"));_.HeaderTransformer=class{constructor(e){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=e,e.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(e.headers)?this.setHeaders(e.headers):o.default(e.headers)&&(this.headersTransform=e.headers)}transform(e,l){return this.shouldMapRow(e)?l(null,this.processRow(e)):l(null,{row:null,isValid:!0})}shouldMapRow(e){const{parserOptions:l}=this;if(!this.headersTransform&&l.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(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}processRow(e){if(!this.headers)return{row:e,isValid:!0};const{parserOptions:l}=this;if(!l.discardUnmappedColumns&&e.length>this.headersLength){if(!l.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${e.length}`);return{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}}return l.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}:{row:this.mapHeaders(e),isValid:!0}}mapHeaders(e){const l={},{headers:n,headersLength:i}=this;for(let c=0;c<i;c+=1){const f=n[c];if(!a.default(f)){const u=e[c];a.default(u)?l[f]="":l[f]=u}}return l}setHeaders(e){var l;const n=e.filter(i=>!!i);if(r.default(n).length!==n.length){const i=t.default(n),c=Object.keys(i).filter(f=>i[f].length>1);throw new Error("Duplicate headers found "+JSON.stringify(c))}this.headers=e,this.receivedHeaders=!0,this.headersLength=((l=this.headers)===null||l===void 0?void 0:l.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(s,C,_){var d=function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_,"__esModule",{value:!0}),_.RowTransformerValidator=void 0;const a=d(s("lodash.isfunction")),o=s("../types");class r{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(e){return o.isSyncTransform(e)?(l,n)=>{let i=null;try{i=e(l)}catch(c){return n(c)}return n(null,i)}:e}static createValidator(e){return o.isSyncValidate(e)?(l,n)=>{n(null,{row:l,isValid:e(l)})}:(l,n)=>{e(l,(i,c,f)=>i?n(i):n(null,c?{row:l,isValid:c,reason:f}:{row:l,isValid:!1,reason:f}))}}set rowTransform(e){if(!a.default(e))throw new TypeError("The transform should be a function");this._rowTransform=r.createTransform(e)}set rowValidator(e){if(!a.default(e))throw new TypeError("The validate should be a function");this._rowValidator=r.createValidator(e)}transformAndValidate(e,l){return this.callTransformer(e,(n,i)=>n?l(n):i?this.callValidator(i,(c,f)=>c?l(c):f&&!f.isValid?l(null,{row:i,isValid:!1,reason:f.reason}):l(null,{row:i,isValid:!0})):l(null,{row:null,isValid:!0}))}callTransformer(e,l){return this._rowTransform?this._rowTransform(e,l):l(null,e)}callValidator(e,l){return this._rowValidator?this._rowValidator(e,l):l(null,{row:e,isValid:!0})}}_.RowTransformerValidator=r},{"../types":169,"lodash.isfunction":446}],168:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.HeaderTransformer=_.RowTransformerValidator=void 0;var d=s("./RowTransformerValidator");Object.defineProperty(_,"RowTransformerValidator",{enumerable:!0,get:function(){return d.RowTransformerValidator}});var a=s("./HeaderTransformer");Object.defineProperty(_,"HeaderTransformer",{enumerable:!0,get:function(){return a.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.isSyncValidate=_.isSyncTransform=void 0,_.isSyncTransform=d=>d.length===1,_.isSyncValidate=d=>d.length===1},{}],170:[function(s,C,_){const d=_;d.bignum=s("bn.js"),d.define=s("./asn1/api").define,d.base=s("./asn1/base"),d.constants=s("./asn1/constants"),d.decoders=s("./asn1/decoders"),d.encoders=s("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(s,C,_){const d=s("./encoders"),a=s("./decoders"),o=s("inherits");function r(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}_.define=function(t,e){return new r(t,e)},r.prototype._createNamed=function(t){const e=this.name;function l(n){this._initNamed(n,e)}return o(l,t),l.prototype._initNamed=function(n,i){t.call(this,n,i)},new l(this)},r.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(a[t])),this.decoders[t]},r.prototype.decode=function(t,e,l){return this._getDecoder(e).decode(t,l)},r.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(d[t])),this.encoders[t]},r.prototype.encode=function(t,e,l){return this._getEncoder(e).encode(t,l)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(s,C,_){const d=s("inherits"),a=s("../base/reporter").Reporter,o=s("safer-buffer").Buffer;function r(e,l){a.call(this,l),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function t(e,l){if(Array.isArray(e))this.length=0,this.value=e.map(function(n){return t.isEncoderBuffer(n)||(n=new t(n,l)),this.length+=n.length,n},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return l.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return l.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}d(r,a),_.DecoderBuffer=r,r.isDecoderBuffer=function(e){return e instanceof r?!0:typeof e=="object"&&o.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"},r.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},r.prototype.restore=function(e){const l=new r(this.base);return l.offset=e.offset,l.length=this.offset,this.offset=e.offset,a.prototype.restore.call(this,e.reporter),l},r.prototype.isEmpty=function(){return this.offset===this.length},r.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},r.prototype.skip=function(e,l){if(!(this.offset+e<=this.length))return this.error(l||"DecoderBuffer overrun");const n=new r(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},r.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},_.EncoderBuffer=t,t.isEncoderBuffer=function(e){return e instanceof t?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"},t.prototype.join=function(e,l){return e||(e=o.alloc(this.length)),l||(l=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,l),l+=n.length}):(typeof this.value=="number"?e[l]=this.value:typeof this.value=="string"?e.write(this.value,l):o.isBuffer(this.value)&&this.value.copy(e,l),l+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(s,C,_){const d=_;d.Reporter=s("./reporter").Reporter,d.DecoderBuffer=s("./buffer").DecoderBuffer,d.EncoderBuffer=s("./buffer").EncoderBuffer,d.Node=s("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(s,C,_){const d=s("../base/reporter").Reporter,a=s("../base/buffer").EncoderBuffer,o=s("../base/buffer").DecoderBuffer,r=s("minimalistic-assert"),t=["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"],e=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(t);function l(i,c,f){const u={};this._baseState=u,u.name=f,u.enc=i,u.parent=c||null,u.children=null,u.tag=null,u.args=null,u.reverseArgs=null,u.choice=null,u.optional=!1,u.any=!1,u.obj=!1,u.use=null,u.useDecoder=null,u.key=null,u.default=null,u.explicit=null,u.implicit=null,u.contains=null,u.parent||(u.children=[],this._wrap())}C.exports=l;const n=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const i=this._baseState,c={};n.forEach(function(u){c[u]=i[u]});const f=new this.constructor(c.parent);return f._baseState=c,f},l.prototype._wrap=function(){const i=this._baseState;e.forEach(function(c){this[c]=function(){const f=new this.constructor(this);return i.children.push(f),f[c].apply(f,arguments)}},this)},l.prototype._init=function(i){const c=this._baseState;r(c.parent===null),i.call(this),c.children=c.children.filter(function(f){return f._baseState.parent===this},this),r.equal(c.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(i){const c=this._baseState,f=i.filter(function(u){return u instanceof this.constructor},this);i=i.filter(function(u){return!(u instanceof this.constructor)},this),f.length!==0&&(r(c.children===null),c.children=f,f.forEach(function(u){u._baseState.parent=this},this)),i.length!==0&&(r(c.args===null),c.args=i,c.reverseArgs=i.map(function(u){if(typeof u!="object"||u.constructor!==Object)return u;const p={};return Object.keys(u).forEach(function(h){h==(0|h)&&(h|=0);const w=u[h];p[w]=h}),p}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(i){l.prototype[i]=function(){const c=this._baseState;throw new Error(i+" not implemented for encoding: "+c.enc)}}),t.forEach(function(i){l.prototype[i]=function(){const c=this._baseState,f=Array.prototype.slice.call(arguments);return r(c.tag===null),c.tag=i,this._useArgs(f),this}}),l.prototype.use=function(i){r(i);const c=this._baseState;return r(c.use===null),c.use=i,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(i){const c=this._baseState;return r(c.default===null),c.default=i,c.optional=!0,this},l.prototype.explicit=function(i){const c=this._baseState;return r(c.explicit===null&&c.implicit===null),c.explicit=i,this},l.prototype.implicit=function(i){const c=this._baseState;return r(c.explicit===null&&c.implicit===null),c.implicit=i,this},l.prototype.obj=function(){const i=this._baseState,c=Array.prototype.slice.call(arguments);return i.obj=!0,c.length!==0&&this._useArgs(c),this},l.prototype.key=function(i){const c=this._baseState;return r(c.key===null),c.key=i,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(i){const c=this._baseState;return r(c.choice===null),c.choice=i,this._useArgs(Object.keys(i).map(function(f){return i[f]})),this},l.prototype.contains=function(i){const c=this._baseState;return r(c.use===null),c.contains=i,this},l.prototype._decode=function(i,c){const f=this._baseState;if(f.parent===null)return i.wrapResult(f.children[0]._decode(i,c));let u,p=f.default,h=!0,w=null;if(f.key!==null&&(w=i.enterKey(f.key)),f.optional){let x=null;if(f.explicit!==null?x=f.explicit:f.implicit!==null?x=f.implicit:f.tag!==null&&(x=f.tag),x!==null||f.any){if(h=this._peekTag(i,x,f.any),i.isError(h))return h}else{const R=i.save();try{f.choice===null?this._decodeGeneric(f.tag,i,c):this._decodeChoice(i,c),h=!0}catch{h=!1}i.restore(R)}}if(f.obj&&h&&(u=i.enterObject()),h){if(f.explicit!==null){const R=this._decodeTag(i,f.explicit);if(i.isError(R))return R;i=R}const x=i.offset;if(f.use===null&&f.choice===null){let R;f.any&&(R=i.save());const N=this._decodeTag(i,f.implicit!==null?f.implicit:f.tag,f.any);if(i.isError(N))return N;f.any?p=i.raw(R):i=N}if(c&&c.track&&f.tag!==null&&c.track(i.path(),x,i.length,"tagged"),c&&c.track&&f.tag!==null&&c.track(i.path(),i.offset,i.length,"content"),f.any||(p=f.choice===null?this._decodeGeneric(f.tag,i,c):this._decodeChoice(i,c)),i.isError(p))return p;if(f.any||f.choice!==null||f.children===null||f.children.forEach(function(R){R._decode(i,c)}),f.contains&&(f.tag==="octstr"||f.tag==="bitstr")){const R=new o(p);p=this._getUse(f.contains,i._reporterState.obj)._decode(R,c)}}return f.obj&&h&&(p=i.leaveObject(u)),f.key===null||p===null&&h!==!0?w!==null&&i.exitKey(w):i.leaveKey(w,f.key,p),p},l.prototype._decodeGeneric=function(i,c,f){const u=this._baseState;return i==="seq"||i==="set"?null:i==="seqof"||i==="setof"?this._decodeList(c,i,u.args[0],f):/str$/.test(i)?this._decodeStr(c,i,f):i==="objid"&&u.args?this._decodeObjid(c,u.args[0],u.args[1],f):i==="objid"?this._decodeObjid(c,null,null,f):i==="gentime"||i==="utctime"?this._decodeTime(c,i,f):i==="null_"?this._decodeNull(c,f):i==="bool"?this._decodeBool(c,f):i==="objDesc"?this._decodeStr(c,i,f):i==="int"||i==="enum"?this._decodeInt(c,u.args&&u.args[0],f):u.use!==null?this._getUse(u.use,c._reporterState.obj)._decode(c,f):c.error("unknown tag: "+i)},l.prototype._getUse=function(i,c){const f=this._baseState;return f.useDecoder=this._use(i,c),r(f.useDecoder._baseState.parent===null),f.useDecoder=f.useDecoder._baseState.children[0],f.implicit!==f.useDecoder._baseState.implicit&&(f.useDecoder=f.useDecoder.clone(),f.useDecoder._baseState.implicit=f.implicit),f.useDecoder},l.prototype._decodeChoice=function(i,c){const f=this._baseState;let u=null,p=!1;return Object.keys(f.choice).some(function(h){const w=i.save(),x=f.choice[h];try{const R=x._decode(i,c);if(i.isError(R))return!1;u={type:h,value:R},p=!0}catch{return i.restore(w),!1}return!0},this),p?u:i.error("Choice not matched")},l.prototype._createEncoderBuffer=function(i){return new a(i,this.reporter)},l.prototype._encode=function(i,c,f){const u=this._baseState;if(u.default!==null&&u.default===i)return;const p=this._encodeValue(i,c,f);return p===void 0||this._skipDefault(p,c,f)?void 0:p},l.prototype._encodeValue=function(i,c,f){const u=this._baseState;if(u.parent===null)return u.children[0]._encode(i,c||new d);let p=null;if(this.reporter=c,u.optional&&i===void 0){if(u.default===null)return;i=u.default}let h=null,w=!1;if(u.any)p=this._createEncoderBuffer(i);else if(u.choice)p=this._encodeChoice(i,c);else if(u.contains)h=this._getUse(u.contains,f)._encode(i,c),w=!0;else if(u.children)h=u.children.map(function(x){if(x._baseState.tag==="null_")return x._encode(null,c,i);if(x._baseState.key===null)return c.error("Child should have a key");const R=c.enterKey(x._baseState.key);if(typeof i!="object")return c.error("Child expected, but input is not object");const N=x._encode(i[x._baseState.key],c,i);return c.leaveKey(R),N},this).filter(function(x){return x}),h=this._createEncoderBuffer(h);else if(u.tag==="seqof"||u.tag==="setof"){if(!u.args||u.args.length!==1)return c.error("Too many args for : "+u.tag);if(!Array.isArray(i))return c.error("seqof/setof, but data is not Array");const x=this.clone();x._baseState.implicit=null,h=this._createEncoderBuffer(i.map(function(R){const N=this._baseState;return this._getUse(N.args[0],i)._encode(R,c)},x))}else u.use!==null?p=this._getUse(u.use,f)._encode(i,c):(h=this._encodePrimitive(u.tag,i),w=!0);if(!u.any&&u.choice===null){const x=u.implicit!==null?u.implicit:u.tag,R=u.implicit===null?"universal":"context";x===null?u.use===null&&c.error("Tag could be omitted only for .use()"):u.use===null&&(p=this._encodeComposite(x,w,R,h))}return u.explicit!==null&&(p=this._encodeComposite(u.explicit,!1,"context",p)),p},l.prototype._encodeChoice=function(i,c){const f=this._baseState,u=f.choice[i.type];return u||r(!1,i.type+" not found in "+JSON.stringify(Object.keys(f.choice))),u._encode(i.value,c)},l.prototype._encodePrimitive=function(i,c){const f=this._baseState;if(/str$/.test(i))return this._encodeStr(c,i);if(i==="objid"&&f.args)return this._encodeObjid(c,f.reverseArgs[0],f.args[1]);if(i==="objid")return this._encodeObjid(c,null,null);if(i==="gentime"||i==="utctime")return this._encodeTime(c,i);if(i==="null_")return this._encodeNull();if(i==="int"||i==="enum")return this._encodeInt(c,f.args&&f.reverseArgs[0]);if(i==="bool")return this._encodeBool(c);if(i==="objDesc")return this._encodeStr(c,i);throw new Error("Unsupported tag: "+i)},l.prototype._isNumstr=function(i){return/^[0-9 ]*$/.test(i)},l.prototype._isPrintstr=function(i){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(i)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(s,C,_){const d=s("inherits");function a(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}function o(r,t){this.path=r,this.rethrow(t)}_.Reporter=a,a.prototype.isError=function(r){return r instanceof o},a.prototype.save=function(){const r=this._reporterState;return{obj:r.obj,pathLen:r.path.length}},a.prototype.restore=function(r){const t=this._reporterState;t.obj=r.obj,t.path=t.path.slice(0,r.pathLen)},a.prototype.enterKey=function(r){return this._reporterState.path.push(r)},a.prototype.exitKey=function(r){const t=this._reporterState;t.path=t.path.slice(0,r-1)},a.prototype.leaveKey=function(r,t,e){const l=this._reporterState;this.exitKey(r),l.obj!==null&&(l.obj[t]=e)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){const r=this._reporterState,t=r.obj;return r.obj={},t},a.prototype.leaveObject=function(r){const t=this._reporterState,e=t.obj;return t.obj=r,e},a.prototype.error=function(r){let t;const e=this._reporterState,l=r instanceof o;if(t=l?r:new o(e.path.map(function(n){return"["+JSON.stringify(n)+"]"}).join(""),r.message||r,r.stack),!e.options.partial)throw t;return l||e.errors.push(t),t},a.prototype.wrapResult=function(r){const t=this._reporterState;return t.options.partial?{result:this.isError(r)?null:r,errors:t.errors}:r},d(o,Error),o.prototype.rethrow=function(r){if(this.message=r+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},{inherits:440}],176:[function(s,C,_){function d(a){const o={};return Object.keys(a).forEach(function(r){(0|r)==r&&(r|=0);const t=a[r];o[t]=r}),o}_.tagClass={0:"universal",1:"application",2:"context",3:"private"},_.tagClassByName=d(_.tagClass),_.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"},_.tagByName=d(_.tag)},{}],177:[function(s,C,_){const d=_;d._reverse=function(a){const o={};return Object.keys(a).forEach(function(r){(0|r)==r&&(r|=0);const t=a[r];o[t]=r}),o},d.der=s("./der")},{"./der":176}],178:[function(s,C,_){const d=s("inherits"),a=s("bn.js"),o=s("../base/buffer").DecoderBuffer,r=s("../base/node"),t=s("../constants/der");function e(c){this.enc="der",this.name=c.name,this.entity=c,this.tree=new l,this.tree._init(c.body)}function l(c){r.call(this,"der",c)}function n(c,f){let u=c.readUInt8(f);if(c.isError(u))return u;const p=t.tagClass[u>>6],h=(32&u)==0;if((31&u)==31){let w=u;for(u=0;(128&w)==128;){if(w=c.readUInt8(f),c.isError(w))return w;u<<=7,u|=127&w}}else u&=31;return{cls:p,primitive:h,tag:u,tagStr:t.tag[u]}}function i(c,f,u){let p=c.readUInt8(u);if(c.isError(p))return p;if(!f&&p===128)return null;if(!(128&p))return p;const h=127&p;if(h>4)return c.error("length octect is too long");p=0;for(let w=0;w<h;w++){p<<=8;const x=c.readUInt8(u);if(c.isError(x))return x;p|=x}return p}C.exports=e,e.prototype.decode=function(c,f){return o.isDecoderBuffer(c)||(c=new o(c,f)),this.tree._decode(c,f)},d(l,r),l.prototype._peekTag=function(c,f,u){if(c.isEmpty())return!1;const p=c.save(),h=n(c,'Failed to peek tag: "'+f+'"');return c.isError(h)?h:(c.restore(p),h.tag===f||h.tagStr===f||h.tagStr+"of"===f||u)},l.prototype._decodeTag=function(c,f,u){const p=n(c,'Failed to decode tag of "'+f+'"');if(c.isError(p))return p;let h=i(c,p.primitive,'Failed to get length of "'+f+'"');if(c.isError(h))return h;if(!u&&p.tag!==f&&p.tagStr!==f&&p.tagStr+"of"!==f)return c.error('Failed to match tag: "'+f+'"');if(p.primitive||h!==null)return c.skip(h,'Failed to match body of: "'+f+'"');const w=c.save(),x=this._skipUntilEnd(c,'Failed to skip indefinite length body: "'+this.tag+'"');return c.isError(x)?x:(h=c.offset-w.offset,c.restore(w),c.skip(h,'Failed to match body of: "'+f+'"'))},l.prototype._skipUntilEnd=function(c,f){for(;;){const u=n(c,f);if(c.isError(u))return u;const p=i(c,u.primitive,f);if(c.isError(p))return p;let h;if(h=u.primitive||p!==null?c.skip(p):this._skipUntilEnd(c,f),c.isError(h))return h;if(u.tagStr==="end")break}},l.prototype._decodeList=function(c,f,u,p){const h=[];for(;!c.isEmpty();){const w=this._peekTag(c,"end");if(c.isError(w))return w;const x=u.decode(c,"der",p);if(c.isError(x)&&w)break;h.push(x)}return h},l.prototype._decodeStr=function(c,f){if(f==="bitstr"){const u=c.readUInt8();return c.isError(u)?u:{unused:u,data:c.raw()}}if(f==="bmpstr"){const u=c.raw();if(u.length%2==1)return c.error("Decoding of string type: bmpstr length mismatch");let p="";for(let h=0;h<u.length/2;h++)p+=String.fromCharCode(u.readUInt16BE(2*h));return p}if(f==="numstr"){const u=c.raw().toString("ascii");return this._isNumstr(u)?u:c.error("Decoding of string type: numstr unsupported characters")}if(f==="octstr"||f==="objDesc")return c.raw();if(f==="printstr"){const u=c.raw().toString("ascii");return this._isPrintstr(u)?u:c.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(f)?c.raw().toString():c.error("Decoding of string type: "+f+" unsupported")},l.prototype._decodeObjid=function(c,f,u){let p;const h=[];let w=0,x=0;for(;!c.isEmpty();)x=c.readUInt8(),w<<=7,w|=127&x,!(128&x)&&(h.push(w),w=0);128&x&&h.push(w);const R=h[0]/40|0,N=h[0]%40;if(p=u?h:[R,N].concat(h.slice(1)),f){let F=f[p.join(" ")];F===void 0&&(F=f[p.join(".")]),F!==void 0&&(p=F)}return p},l.prototype._decodeTime=function(c,f){const u=c.raw().toString();let p,h,w,x,R,N;if(f==="gentime")p=0|u.slice(0,4),h=0|u.slice(4,6),w=0|u.slice(6,8),x=0|u.slice(8,10),R=0|u.slice(10,12),N=0|u.slice(12,14);else{if(f!=="utctime")return c.error("Decoding "+f+" time is not supported yet");p=0|u.slice(0,2),h=0|u.slice(2,4),w=0|u.slice(4,6),x=0|u.slice(6,8),R=0|u.slice(8,10),N=0|u.slice(10,12),p=p<70?2e3+p:1900+p}return Date.UTC(p,h-1,w,x,R,N,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(c){const f=c.readUInt8();return c.isError(f)?f:f!==0},l.prototype._decodeInt=function(c,f){const u=c.raw();let p=new a(u);return f&&(p=f[p.toString(10)]||p),p},l.prototype._use=function(c,f){return typeof c=="function"&&(c=c(f)),c._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(s,C,_){const d=_;d.der=s("./der"),d.pem=s("./pem")},{"./der":178,"./pem":180}],180:[function(s,C,_){const d=s("inherits"),a=s("safer-buffer").Buffer,o=s("./der");function r(t){o.call(this,t),this.enc="pem"}d(r,o),C.exports=r,r.prototype.decode=function(t,e){const l=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/;let c=-1,f=-1;for(let h=0;h<l.length;h++){const w=l[h].match(i);if(w!==null&&w[2]===n){if(c!==-1){if(w[1]!=="END")break;f=h;break}if(w[1]!=="BEGIN")break;c=h}}if(c===-1||f===-1)throw new Error("PEM section not found for: "+n);const u=l.slice(c+1,f).join("");u.replace(/[^a-z0-9+/=]+/gi,"");const p=a.from(u,"base64");return o.prototype.decode.call(this,p,e)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(s,C,_){const d=s("inherits"),a=s("safer-buffer").Buffer,o=s("../base/node"),r=s("../constants/der");function t(n){this.enc="der",this.name=n.name,this.entity=n,this.tree=new e,this.tree._init(n.body)}function e(n){o.call(this,"der",n)}function l(n){return n<10?"0"+n:n}C.exports=t,t.prototype.encode=function(n,i){return this.tree._encode(n,i).join()},d(e,o),e.prototype._encodeComposite=function(n,i,c,f){const u=function(w,x,R,N){let F;if(w==="seqof"?w="seq":w==="setof"&&(w="set"),r.tagByName.hasOwnProperty(w))F=r.tagByName[w];else{if(typeof w!="number"||(0|w)!==w)return N.error("Unknown tag: "+w);F=w}return F>=31?N.error("Multi-octet tag encoding unsupported"):(x||(F|=32),F|=r.tagClassByName[R||"universal"]<<6,F)}(n,i,c,this.reporter);if(f.length<128){const w=a.alloc(2);return w[0]=u,w[1]=f.length,this._createEncoderBuffer([w,f])}let p=1;for(let w=f.length;w>=256;w>>=8)p++;const h=a.alloc(2+p);h[0]=u,h[1]=128|p;for(let w=1+p,x=f.length;x>0;w--,x>>=8)h[w]=255&x;return this._createEncoderBuffer([h,f])},e.prototype._encodeStr=function(n,i){if(i==="bitstr")return this._createEncoderBuffer([0|n.unused,n.data]);if(i==="bmpstr"){const c=a.alloc(2*n.length);for(let f=0;f<n.length;f++)c.writeUInt16BE(n.charCodeAt(f),2*f);return this._createEncoderBuffer(c)}return i==="numstr"?this._isNumstr(n)?this._createEncoderBuffer(n):this.reporter.error("Encoding of string type: numstr supports only digits and space"):i==="printstr"?this._isPrintstr(n)?this._createEncoderBuffer(n):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(i)||i==="objDesc"?this._createEncoderBuffer(n):this.reporter.error("Encoding of string type: "+i+" unsupported")},e.prototype._encodeObjid=function(n,i,c){if(typeof n=="string"){if(!i)return this.reporter.error("string objid given, but no values map found");if(!i.hasOwnProperty(n))return this.reporter.error("objid not found in values map");n=i[n].split(/[\s.]+/g);for(let h=0;h<n.length;h++)n[h]|=0}else if(Array.isArray(n)){n=n.slice();for(let h=0;h<n.length;h++)n[h]|=0}if(!Array.isArray(n))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(n));if(!c){if(n[1]>=40)return this.reporter.error("Second objid identifier OOB");n.splice(0,2,40*n[0]+n[1])}let f=0;for(let h=0;h<n.length;h++){let w=n[h];for(f++;w>=128;w>>=7)f++}const u=a.alloc(f);let p=u.length-1;for(let h=n.length-1;h>=0;h--){let w=n[h];for(u[p--]=127&w;(w>>=7)>0;)u[p--]=128|127&w}return this._createEncoderBuffer(u)},e.prototype._encodeTime=function(n,i){let c;const f=new Date(n);return i==="gentime"?c=[l(f.getUTCFullYear()),l(f.getUTCMonth()+1),l(f.getUTCDate()),l(f.getUTCHours()),l(f.getUTCMinutes()),l(f.getUTCSeconds()),"Z"].join(""):i==="utctime"?c=[l(f.getUTCFullYear()%100),l(f.getUTCMonth()+1),l(f.getUTCDate()),l(f.getUTCHours()),l(f.getUTCMinutes()),l(f.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+i+" time is not supported yet"),this._encodeStr(c,"octstr")},e.prototype._encodeNull=function(){return this._createEncoderBuffer("")},e.prototype._encodeInt=function(n,i){if(typeof n=="string"){if(!i)return this.reporter.error("String int or enum given, but no values map");if(!i.hasOwnProperty(n))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(n));n=i[n]}if(typeof n!="number"&&!a.isBuffer(n)){const u=n.toArray();!n.sign&&128&u[0]&&u.unshift(0),n=a.from(u)}if(a.isBuffer(n)){let u=n.length;n.length===0&&u++;const p=a.alloc(u);return n.copy(p),n.length===0&&(p[0]=0),this._createEncoderBuffer(p)}if(n<128)return this._createEncoderBuffer(n);if(n<256)return this._createEncoderBuffer([0,n]);let c=1;for(let u=n;u>=256;u>>=8)c++;const f=new Array(c);for(let u=f.length-1;u>=0;u--)f[u]=255&n,n>>=8;return 128&f[0]&&f.unshift(0),this._createEncoderBuffer(a.from(f))},e.prototype._encodeBool=function(n){return this._createEncoderBuffer(n?255:0)},e.prototype._use=function(n,i){return typeof n=="function"&&(n=n(i)),n._getEncoder("der").tree},e.prototype._skipDefault=function(n,i,c){const f=this._baseState;let u;if(f.default===null)return!1;const p=n.join();if(f.defaultBuffer===void 0&&(f.defaultBuffer=this._encodeValue(f.default,i,c).join()),p.length!==f.defaultBuffer.length)return!1;for(u=0;u<p.length;u++)if(p[u]!==f.defaultBuffer[u])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(s,C,_){const d=_;d.der=s("./der"),d.pem=s("./pem")},{"./der":181,"./pem":183}],183:[function(s,C,_){const d=s("inherits"),a=s("./der");function o(r){a.call(this,r),this.enc="pem"}d(o,a),C.exports=o,o.prototype.encode=function(r,t){const e=a.prototype.encode.call(this,r).toString("base64"),l=["-----BEGIN "+t.label+"-----"];for(let n=0;n<e.length;n+=64)l.push(e.slice(n,n+64));return l.push("-----END "+t.label+"-----"),l.join(`
|
|
8
|
-
`)}},{"./der":181,inherits:440}],184:[function(s,C,_){(function(d,a){function o(S,T){if(!S)throw new Error(T||"Assertion failed")}function r(S,T){S.super_=T;var v=function(){};v.prototype=T.prototype,S.prototype=new v,S.prototype.constructor=S}function t(S,T,v){if(t.isBN(S))return S;this.negative=0,this.words=null,this.length=0,this.red=null,S!==null&&(T!=="le"&&T!=="be"||(v=T,T=10),this._init(S||0,T||10,v||"be"))}var e;typeof d=="object"?d.exports=t:(void 0).BN=t,t.BN=t,t.wordSize=26;try{e=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:s("buffer").Buffer}catch{}function l(S,T){var v=S.charCodeAt(T);return v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:v-48&15}function n(S,T,v){var m=l(S,v);return v-1>=T&&(m|=l(S,v-1)<<4),m}function i(S,T,v,m){for(var b=0,g=Math.min(S.length,v),y=T;y<g;y++){var k=S.charCodeAt(y)-48;b*=m,b+=k>=49?k-49+10:k>=17?k-17+10:k}return b}t.isBN=function(S){return S instanceof t||S!==null&&typeof S=="object"&&S.constructor.wordSize===t.wordSize&&Array.isArray(S.words)},t.max=function(S,T){return S.cmp(T)>0?S:T},t.min=function(S,T){return S.cmp(T)<0?S:T},t.prototype._init=function(S,T,v){if(typeof S=="number")return this._initNumber(S,T,v);if(typeof S=="object")return this._initArray(S,T,v);T==="hex"&&(T=16),o(T===(0|T)&&T>=2&&T<=36);var m=0;(S=S.toString().replace(/\s+/g,""))[0]==="-"&&(m++,this.negative=1),m<S.length&&(T===16?this._parseHex(S,m,v):(this._parseBase(S,T,m),v==="le"&&this._initArray(this.toArray(),T,v)))},t.prototype._initNumber=function(S,T,v){S<0&&(this.negative=1,S=-S),S<67108864?(this.words=[67108863&S],this.length=1):S<4503599627370496?(this.words=[67108863&S,S/67108864&67108863],this.length=2):(o(S<9007199254740992),this.words=[67108863&S,S/67108864&67108863,1],this.length=3),v==="le"&&this._initArray(this.toArray(),T,v)},t.prototype._initArray=function(S,T,v){if(o(typeof S.length=="number"),S.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(S.length/3),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var b,g,y=0;if(v==="be")for(m=S.length-1,b=0;m>=0;m-=3)g=S[m]|S[m-1]<<8|S[m-2]<<16,this.words[b]|=g<<y&67108863,this.words[b+1]=g>>>26-y&67108863,(y+=24)>=26&&(y-=26,b++);else if(v==="le")for(m=0,b=0;m<S.length;m+=3)g=S[m]|S[m+1]<<8|S[m+2]<<16,this.words[b]|=g<<y&67108863,this.words[b+1]=g>>>26-y&67108863,(y+=24)>=26&&(y-=26,b++);return this.strip()},t.prototype._parseHex=function(S,T,v){this.length=Math.ceil((S.length-T)/6),this.words=new Array(this.length);for(var m=0;m<this.length;m++)this.words[m]=0;var b,g=0,y=0;if(v==="be")for(m=S.length-1;m>=T;m-=2)b=n(S,T,m)<<g,this.words[y]|=67108863&b,g>=18?(g-=18,y+=1,this.words[y]|=b>>>26):g+=8;else for(m=(S.length-T)%2==0?T+1:T;m<S.length;m+=2)b=n(S,T,m)<<g,this.words[y]|=67108863&b,g>=18?(g-=18,y+=1,this.words[y]|=b>>>26):g+=8;this.strip()},t.prototype._parseBase=function(S,T,v){this.words=[0],this.length=1;for(var m=0,b=1;b<=67108863;b*=T)m++;m--,b=b/T|0;for(var g=S.length-v,y=g%m,k=Math.min(g,g-y)+v,O=0,A=v;A<k;A+=m)O=i(S,A,A+m,T),this.imuln(b),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O);if(y!==0){var z=1;for(O=i(S,A,S.length,T),A=0;A<y;A++)z*=T;this.imuln(z),this.words[0]+O<67108864?this.words[0]+=O:this._iaddn(O)}this.strip()},t.prototype.copy=function(S){S.words=new Array(this.length);for(var T=0;T<this.length;T++)S.words[T]=this.words[T];S.length=this.length,S.negative=this.negative,S.red=this.red},t.prototype.clone=function(){var S=new t(null);return this.copy(S),S},t.prototype._expand=function(S){for(;this.length<S;)this.words[this.length++]=0;return this},t.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},t.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},t.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],f=[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],u=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(S,T,v){v.negative=T.negative^S.negative;var m=S.length+T.length|0;v.length=m,m=m-1|0;var b=0|S.words[0],g=0|T.words[0],y=b*g,k=67108863&y,O=y/67108864|0;v.words[0]=k;for(var A=1;A<m;A++){for(var z=O>>>26,U=67108863&O,X=Math.min(A,T.length-1),j=Math.max(0,A-S.length+1);j<=X;j++){var V=A-j|0;z+=(y=(b=0|S.words[V])*(g=0|T.words[j])+U)/67108864|0,U=67108863&y}v.words[A]=0|U,O=0|z}return O!==0?v.words[A]=0|O:v.length--,v.strip()}t.prototype.toString=function(S,T){var v;if(T=0|T||1,(S=S||10)===16||S==="hex"){v="";for(var m=0,b=0,g=0;g<this.length;g++){var y=this.words[g],k=(16777215&(y<<m|b)).toString(16);v=(b=y>>>24-m&16777215)!==0||g!==this.length-1?c[6-k.length]+k+v:k+v,(m+=2)>=26&&(m-=26,g--)}for(b!==0&&(v=b.toString(16)+v);v.length%T!=0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}if(S===(0|S)&&S>=2&&S<=36){var O=f[S],A=u[S];v="";var z=this.clone();for(z.negative=0;!z.isZero();){var U=z.modn(A).toString(S);v=(z=z.idivn(A)).isZero()?U+v:c[O-U.length]+U+v}for(this.isZero()&&(v="0"+v);v.length%T!=0;)v="0"+v;return this.negative!==0&&(v="-"+v),v}o(!1,"Base should be between 2 and 36")},t.prototype.toNumber=function(){var S=this.words[0];return this.length===2?S+=67108864*this.words[1]:this.length===3&&this.words[2]===1?S+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-S:S},t.prototype.toJSON=function(){return this.toString(16)},t.prototype.toBuffer=function(S,T){return o(e!==void 0),this.toArrayLike(e,S,T)},t.prototype.toArray=function(S,T){return this.toArrayLike(Array,S,T)},t.prototype.toArrayLike=function(S,T,v){var m=this.byteLength(),b=v||Math.max(1,m);o(m<=b,"byte array longer than desired length"),o(b>0,"Requested array length <= 0"),this.strip();var g,y,k=T==="le",O=new S(b),A=this.clone();if(k){for(y=0;!A.isZero();y++)g=A.andln(255),A.iushrn(8),O[y]=g;for(;y<b;y++)O[y]=0}else{for(y=0;y<b-m;y++)O[y]=0;for(y=0;!A.isZero();y++)g=A.andln(255),A.iushrn(8),O[b-y-1]=g}return O},Math.clz32?t.prototype._countBits=function(S){return 32-Math.clz32(S)}:t.prototype._countBits=function(S){var T=S,v=0;return T>=4096&&(v+=13,T>>>=13),T>=64&&(v+=7,T>>>=7),T>=8&&(v+=4,T>>>=4),T>=2&&(v+=2,T>>>=2),v+T},t.prototype._zeroBits=function(S){if(S===0)return 26;var T=S,v=0;return!(8191&T)&&(v+=13,T>>>=13),!(127&T)&&(v+=7,T>>>=7),!(15&T)&&(v+=4,T>>>=4),!(3&T)&&(v+=2,T>>>=2),!(1&T)&&v++,v},t.prototype.bitLength=function(){var S=this.words[this.length-1],T=this._countBits(S);return 26*(this.length-1)+T},t.prototype.zeroBits=function(){if(this.isZero())return 0;for(var S=0,T=0;T<this.length;T++){var v=this._zeroBits(this.words[T]);if(S+=v,v!==26)break}return S},t.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},t.prototype.toTwos=function(S){return this.negative!==0?this.abs().inotn(S).iaddn(1):this.clone()},t.prototype.fromTwos=function(S){return this.testn(S-1)?this.notn(S).iaddn(1).ineg():this.clone()},t.prototype.isNeg=function(){return this.negative!==0},t.prototype.neg=function(){return this.clone().ineg()},t.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},t.prototype.iuor=function(S){for(;this.length<S.length;)this.words[this.length++]=0;for(var T=0;T<S.length;T++)this.words[T]=this.words[T]|S.words[T];return this.strip()},t.prototype.ior=function(S){return o((this.negative|S.negative)==0),this.iuor(S)},t.prototype.or=function(S){return this.length>S.length?this.clone().ior(S):S.clone().ior(this)},t.prototype.uor=function(S){return this.length>S.length?this.clone().iuor(S):S.clone().iuor(this)},t.prototype.iuand=function(S){var T;T=this.length>S.length?S:this;for(var v=0;v<T.length;v++)this.words[v]=this.words[v]&S.words[v];return this.length=T.length,this.strip()},t.prototype.iand=function(S){return o((this.negative|S.negative)==0),this.iuand(S)},t.prototype.and=function(S){return this.length>S.length?this.clone().iand(S):S.clone().iand(this)},t.prototype.uand=function(S){return this.length>S.length?this.clone().iuand(S):S.clone().iuand(this)},t.prototype.iuxor=function(S){var T,v;this.length>S.length?(T=this,v=S):(T=S,v=this);for(var m=0;m<v.length;m++)this.words[m]=T.words[m]^v.words[m];if(this!==T)for(;m<T.length;m++)this.words[m]=T.words[m];return this.length=T.length,this.strip()},t.prototype.ixor=function(S){return o((this.negative|S.negative)==0),this.iuxor(S)},t.prototype.xor=function(S){return this.length>S.length?this.clone().ixor(S):S.clone().ixor(this)},t.prototype.uxor=function(S){return this.length>S.length?this.clone().iuxor(S):S.clone().iuxor(this)},t.prototype.inotn=function(S){o(typeof S=="number"&&S>=0);var T=0|Math.ceil(S/26),v=S%26;this._expand(T),v>0&&T--;for(var m=0;m<T;m++)this.words[m]=67108863&~this.words[m];return v>0&&(this.words[m]=~this.words[m]&67108863>>26-v),this.strip()},t.prototype.notn=function(S){return this.clone().inotn(S)},t.prototype.setn=function(S,T){o(typeof S=="number"&&S>=0);var v=S/26|0,m=S%26;return this._expand(v+1),this.words[v]=T?this.words[v]|1<<m:this.words[v]&~(1<<m),this.strip()},t.prototype.iadd=function(S){var T,v,m;if(this.negative!==0&&S.negative===0)return this.negative=0,T=this.isub(S),this.negative^=1,this._normSign();if(this.negative===0&&S.negative!==0)return S.negative=0,T=this.isub(S),S.negative=1,T._normSign();this.length>S.length?(v=this,m=S):(v=S,m=this);for(var b=0,g=0;g<m.length;g++)T=(0|v.words[g])+(0|m.words[g])+b,this.words[g]=67108863&T,b=T>>>26;for(;b!==0&&g<v.length;g++)T=(0|v.words[g])+b,this.words[g]=67108863&T,b=T>>>26;if(this.length=v.length,b!==0)this.words[this.length]=b,this.length++;else if(v!==this)for(;g<v.length;g++)this.words[g]=v.words[g];return this},t.prototype.add=function(S){var T;return S.negative!==0&&this.negative===0?(S.negative=0,T=this.sub(S),S.negative^=1,T):S.negative===0&&this.negative!==0?(this.negative=0,T=S.sub(this),this.negative=1,T):this.length>S.length?this.clone().iadd(S):S.clone().iadd(this)},t.prototype.isub=function(S){if(S.negative!==0){S.negative=0;var T=this.iadd(S);return S.negative=1,T._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(S),this.negative=1,this._normSign();var v,m,b=this.cmp(S);if(b===0)return this.negative=0,this.length=1,this.words[0]=0,this;b>0?(v=this,m=S):(v=S,m=this);for(var g=0,y=0;y<m.length;y++)g=(T=(0|v.words[y])-(0|m.words[y])+g)>>26,this.words[y]=67108863&T;for(;g!==0&&y<v.length;y++)g=(T=(0|v.words[y])+g)>>26,this.words[y]=67108863&T;if(g===0&&y<v.length&&v!==this)for(;y<v.length;y++)this.words[y]=v.words[y];return this.length=Math.max(this.length,y),v!==this&&(this.negative=1),this.strip()},t.prototype.sub=function(S){return this.clone().isub(S)};var h=function(S,T,v){var m,b,g,y=S.words,k=T.words,O=v.words,A=0,z=0|y[0],U=8191&z,X=z>>>13,j=0|y[1],V=8191&j,E=j>>>13,M=0|y[2],L=8191&M,q=M>>>13,Z=0|y[3],W=8191&Z,K=Z>>>13,rt=0|y[4],et=8191&rt,Y=rt>>>13,Q=0|y[5],J=8191&Q,st=Q>>>13,it=0|y[6],ot=8191&it,ut=it>>>13,ct=0|y[7],pt=8191&ct,St=ct>>>13,xt=0|y[8],yt=8191&xt,Ot=xt>>>13,At=0|y[9],Rt=8191&At,It=At>>>13,kt=0|k[0],bt=8191&kt,Ct=kt>>>13,Et=0|k[1],Mt=8191&Et,Kt=Et>>>13,ne=0|k[2],Nt=8191&ne,te=ne>>>13,Yt=0|k[3],$t=8191&Yt,ce=Yt>>>13,ee=0|k[4],Ft=8191&ee,Jt=ee>>>13,oe=0|k[5],Lt=8191&oe,re=oe>>>13,le=0|k[6],Ht=8191&le,tt=le>>>13,at=0|k[7],ft=8191&at,vt=at>>>13,Pt=0|k[8],_t=8191&Pt,zt=Pt>>>13,Bt=0|k[9],jt=8191&Bt,Vt=Bt>>>13;v.negative=S.negative^T.negative,v.length=19;var Ut=(A+(m=Math.imul(U,bt))|0)+((8191&(b=(b=Math.imul(U,Ct))+Math.imul(X,bt)|0))<<13)|0;A=((g=Math.imul(X,Ct))+(b>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,m=Math.imul(V,bt),b=(b=Math.imul(V,Ct))+Math.imul(E,bt)|0,g=Math.imul(E,Ct);var Wt=(A+(m=m+Math.imul(U,Mt)|0)|0)+((8191&(b=(b=b+Math.imul(U,Kt)|0)+Math.imul(X,Mt)|0))<<13)|0;A=((g=g+Math.imul(X,Kt)|0)+(b>>>13)|0)+(Wt>>>26)|0,Wt&=67108863,m=Math.imul(L,bt),b=(b=Math.imul(L,Ct))+Math.imul(q,bt)|0,g=Math.imul(q,Ct),m=m+Math.imul(V,Mt)|0,b=(b=b+Math.imul(V,Kt)|0)+Math.imul(E,Mt)|0,g=g+Math.imul(E,Kt)|0;var de=(A+(m=m+Math.imul(U,Nt)|0)|0)+((8191&(b=(b=b+Math.imul(U,te)|0)+Math.imul(X,Nt)|0))<<13)|0;A=((g=g+Math.imul(X,te)|0)+(b>>>13)|0)+(de>>>26)|0,de&=67108863,m=Math.imul(W,bt),b=(b=Math.imul(W,Ct))+Math.imul(K,bt)|0,g=Math.imul(K,Ct),m=m+Math.imul(L,Mt)|0,b=(b=b+Math.imul(L,Kt)|0)+Math.imul(q,Mt)|0,g=g+Math.imul(q,Kt)|0,m=m+Math.imul(V,Nt)|0,b=(b=b+Math.imul(V,te)|0)+Math.imul(E,Nt)|0,g=g+Math.imul(E,te)|0;var fe=(A+(m=m+Math.imul(U,$t)|0)|0)+((8191&(b=(b=b+Math.imul(U,ce)|0)+Math.imul(X,$t)|0))<<13)|0;A=((g=g+Math.imul(X,ce)|0)+(b>>>13)|0)+(fe>>>26)|0,fe&=67108863,m=Math.imul(et,bt),b=(b=Math.imul(et,Ct))+Math.imul(Y,bt)|0,g=Math.imul(Y,Ct),m=m+Math.imul(W,Mt)|0,b=(b=b+Math.imul(W,Kt)|0)+Math.imul(K,Mt)|0,g=g+Math.imul(K,Kt)|0,m=m+Math.imul(L,Nt)|0,b=(b=b+Math.imul(L,te)|0)+Math.imul(q,Nt)|0,g=g+Math.imul(q,te)|0,m=m+Math.imul(V,$t)|0,b=(b=b+Math.imul(V,ce)|0)+Math.imul(E,$t)|0,g=g+Math.imul(E,ce)|0;var pe=(A+(m=m+Math.imul(U,Ft)|0)|0)+((8191&(b=(b=b+Math.imul(U,Jt)|0)+Math.imul(X,Ft)|0))<<13)|0;A=((g=g+Math.imul(X,Jt)|0)+(b>>>13)|0)+(pe>>>26)|0,pe&=67108863,m=Math.imul(J,bt),b=(b=Math.imul(J,Ct))+Math.imul(st,bt)|0,g=Math.imul(st,Ct),m=m+Math.imul(et,Mt)|0,b=(b=b+Math.imul(et,Kt)|0)+Math.imul(Y,Mt)|0,g=g+Math.imul(Y,Kt)|0,m=m+Math.imul(W,Nt)|0,b=(b=b+Math.imul(W,te)|0)+Math.imul(K,Nt)|0,g=g+Math.imul(K,te)|0,m=m+Math.imul(L,$t)|0,b=(b=b+Math.imul(L,ce)|0)+Math.imul(q,$t)|0,g=g+Math.imul(q,ce)|0,m=m+Math.imul(V,Ft)|0,b=(b=b+Math.imul(V,Jt)|0)+Math.imul(E,Ft)|0,g=g+Math.imul(E,Jt)|0;var me=(A+(m=m+Math.imul(U,Lt)|0)|0)+((8191&(b=(b=b+Math.imul(U,re)|0)+Math.imul(X,Lt)|0))<<13)|0;A=((g=g+Math.imul(X,re)|0)+(b>>>13)|0)+(me>>>26)|0,me&=67108863,m=Math.imul(ot,bt),b=(b=Math.imul(ot,Ct))+Math.imul(ut,bt)|0,g=Math.imul(ut,Ct),m=m+Math.imul(J,Mt)|0,b=(b=b+Math.imul(J,Kt)|0)+Math.imul(st,Mt)|0,g=g+Math.imul(st,Kt)|0,m=m+Math.imul(et,Nt)|0,b=(b=b+Math.imul(et,te)|0)+Math.imul(Y,Nt)|0,g=g+Math.imul(Y,te)|0,m=m+Math.imul(W,$t)|0,b=(b=b+Math.imul(W,ce)|0)+Math.imul(K,$t)|0,g=g+Math.imul(K,ce)|0,m=m+Math.imul(L,Ft)|0,b=(b=b+Math.imul(L,Jt)|0)+Math.imul(q,Ft)|0,g=g+Math.imul(q,Jt)|0,m=m+Math.imul(V,Lt)|0,b=(b=b+Math.imul(V,re)|0)+Math.imul(E,Lt)|0,g=g+Math.imul(E,re)|0;var ve=(A+(m=m+Math.imul(U,Ht)|0)|0)+((8191&(b=(b=b+Math.imul(U,tt)|0)+Math.imul(X,Ht)|0))<<13)|0;A=((g=g+Math.imul(X,tt)|0)+(b>>>13)|0)+(ve>>>26)|0,ve&=67108863,m=Math.imul(pt,bt),b=(b=Math.imul(pt,Ct))+Math.imul(St,bt)|0,g=Math.imul(St,Ct),m=m+Math.imul(ot,Mt)|0,b=(b=b+Math.imul(ot,Kt)|0)+Math.imul(ut,Mt)|0,g=g+Math.imul(ut,Kt)|0,m=m+Math.imul(J,Nt)|0,b=(b=b+Math.imul(J,te)|0)+Math.imul(st,Nt)|0,g=g+Math.imul(st,te)|0,m=m+Math.imul(et,$t)|0,b=(b=b+Math.imul(et,ce)|0)+Math.imul(Y,$t)|0,g=g+Math.imul(Y,ce)|0,m=m+Math.imul(W,Ft)|0,b=(b=b+Math.imul(W,Jt)|0)+Math.imul(K,Ft)|0,g=g+Math.imul(K,Jt)|0,m=m+Math.imul(L,Lt)|0,b=(b=b+Math.imul(L,re)|0)+Math.imul(q,Lt)|0,g=g+Math.imul(q,re)|0,m=m+Math.imul(V,Ht)|0,b=(b=b+Math.imul(V,tt)|0)+Math.imul(E,Ht)|0,g=g+Math.imul(E,tt)|0;var G=(A+(m=m+Math.imul(U,ft)|0)|0)+((8191&(b=(b=b+Math.imul(U,vt)|0)+Math.imul(X,ft)|0))<<13)|0;A=((g=g+Math.imul(X,vt)|0)+(b>>>13)|0)+(G>>>26)|0,G&=67108863,m=Math.imul(yt,bt),b=(b=Math.imul(yt,Ct))+Math.imul(Ot,bt)|0,g=Math.imul(Ot,Ct),m=m+Math.imul(pt,Mt)|0,b=(b=b+Math.imul(pt,Kt)|0)+Math.imul(St,Mt)|0,g=g+Math.imul(St,Kt)|0,m=m+Math.imul(ot,Nt)|0,b=(b=b+Math.imul(ot,te)|0)+Math.imul(ut,Nt)|0,g=g+Math.imul(ut,te)|0,m=m+Math.imul(J,$t)|0,b=(b=b+Math.imul(J,ce)|0)+Math.imul(st,$t)|0,g=g+Math.imul(st,ce)|0,m=m+Math.imul(et,Ft)|0,b=(b=b+Math.imul(et,Jt)|0)+Math.imul(Y,Ft)|0,g=g+Math.imul(Y,Jt)|0,m=m+Math.imul(W,Lt)|0,b=(b=b+Math.imul(W,re)|0)+Math.imul(K,Lt)|0,g=g+Math.imul(K,re)|0,m=m+Math.imul(L,Ht)|0,b=(b=b+Math.imul(L,tt)|0)+Math.imul(q,Ht)|0,g=g+Math.imul(q,tt)|0,m=m+Math.imul(V,ft)|0,b=(b=b+Math.imul(V,vt)|0)+Math.imul(E,ft)|0,g=g+Math.imul(E,vt)|0;var lt=(A+(m=m+Math.imul(U,_t)|0)|0)+((8191&(b=(b=b+Math.imul(U,zt)|0)+Math.imul(X,_t)|0))<<13)|0;A=((g=g+Math.imul(X,zt)|0)+(b>>>13)|0)+(lt>>>26)|0,lt&=67108863,m=Math.imul(Rt,bt),b=(b=Math.imul(Rt,Ct))+Math.imul(It,bt)|0,g=Math.imul(It,Ct),m=m+Math.imul(yt,Mt)|0,b=(b=b+Math.imul(yt,Kt)|0)+Math.imul(Ot,Mt)|0,g=g+Math.imul(Ot,Kt)|0,m=m+Math.imul(pt,Nt)|0,b=(b=b+Math.imul(pt,te)|0)+Math.imul(St,Nt)|0,g=g+Math.imul(St,te)|0,m=m+Math.imul(ot,$t)|0,b=(b=b+Math.imul(ot,ce)|0)+Math.imul(ut,$t)|0,g=g+Math.imul(ut,ce)|0,m=m+Math.imul(J,Ft)|0,b=(b=b+Math.imul(J,Jt)|0)+Math.imul(st,Ft)|0,g=g+Math.imul(st,Jt)|0,m=m+Math.imul(et,Lt)|0,b=(b=b+Math.imul(et,re)|0)+Math.imul(Y,Lt)|0,g=g+Math.imul(Y,re)|0,m=m+Math.imul(W,Ht)|0,b=(b=b+Math.imul(W,tt)|0)+Math.imul(K,Ht)|0,g=g+Math.imul(K,tt)|0,m=m+Math.imul(L,ft)|0,b=(b=b+Math.imul(L,vt)|0)+Math.imul(q,ft)|0,g=g+Math.imul(q,vt)|0,m=m+Math.imul(V,_t)|0,b=(b=b+Math.imul(V,zt)|0)+Math.imul(E,_t)|0,g=g+Math.imul(E,zt)|0;var ht=(A+(m=m+Math.imul(U,jt)|0)|0)+((8191&(b=(b=b+Math.imul(U,Vt)|0)+Math.imul(X,jt)|0))<<13)|0;A=((g=g+Math.imul(X,Vt)|0)+(b>>>13)|0)+(ht>>>26)|0,ht&=67108863,m=Math.imul(Rt,Mt),b=(b=Math.imul(Rt,Kt))+Math.imul(It,Mt)|0,g=Math.imul(It,Kt),m=m+Math.imul(yt,Nt)|0,b=(b=b+Math.imul(yt,te)|0)+Math.imul(Ot,Nt)|0,g=g+Math.imul(Ot,te)|0,m=m+Math.imul(pt,$t)|0,b=(b=b+Math.imul(pt,ce)|0)+Math.imul(St,$t)|0,g=g+Math.imul(St,ce)|0,m=m+Math.imul(ot,Ft)|0,b=(b=b+Math.imul(ot,Jt)|0)+Math.imul(ut,Ft)|0,g=g+Math.imul(ut,Jt)|0,m=m+Math.imul(J,Lt)|0,b=(b=b+Math.imul(J,re)|0)+Math.imul(st,Lt)|0,g=g+Math.imul(st,re)|0,m=m+Math.imul(et,Ht)|0,b=(b=b+Math.imul(et,tt)|0)+Math.imul(Y,Ht)|0,g=g+Math.imul(Y,tt)|0,m=m+Math.imul(W,ft)|0,b=(b=b+Math.imul(W,vt)|0)+Math.imul(K,ft)|0,g=g+Math.imul(K,vt)|0,m=m+Math.imul(L,_t)|0,b=(b=b+Math.imul(L,zt)|0)+Math.imul(q,_t)|0,g=g+Math.imul(q,zt)|0;var mt=(A+(m=m+Math.imul(V,jt)|0)|0)+((8191&(b=(b=b+Math.imul(V,Vt)|0)+Math.imul(E,jt)|0))<<13)|0;A=((g=g+Math.imul(E,Vt)|0)+(b>>>13)|0)+(mt>>>26)|0,mt&=67108863,m=Math.imul(Rt,Nt),b=(b=Math.imul(Rt,te))+Math.imul(It,Nt)|0,g=Math.imul(It,te),m=m+Math.imul(yt,$t)|0,b=(b=b+Math.imul(yt,ce)|0)+Math.imul(Ot,$t)|0,g=g+Math.imul(Ot,ce)|0,m=m+Math.imul(pt,Ft)|0,b=(b=b+Math.imul(pt,Jt)|0)+Math.imul(St,Ft)|0,g=g+Math.imul(St,Jt)|0,m=m+Math.imul(ot,Lt)|0,b=(b=b+Math.imul(ot,re)|0)+Math.imul(ut,Lt)|0,g=g+Math.imul(ut,re)|0,m=m+Math.imul(J,Ht)|0,b=(b=b+Math.imul(J,tt)|0)+Math.imul(st,Ht)|0,g=g+Math.imul(st,tt)|0,m=m+Math.imul(et,ft)|0,b=(b=b+Math.imul(et,vt)|0)+Math.imul(Y,ft)|0,g=g+Math.imul(Y,vt)|0,m=m+Math.imul(W,_t)|0,b=(b=b+Math.imul(W,zt)|0)+Math.imul(K,_t)|0,g=g+Math.imul(K,zt)|0;var Tt=(A+(m=m+Math.imul(L,jt)|0)|0)+((8191&(b=(b=b+Math.imul(L,Vt)|0)+Math.imul(q,jt)|0))<<13)|0;A=((g=g+Math.imul(q,Vt)|0)+(b>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,m=Math.imul(Rt,$t),b=(b=Math.imul(Rt,ce))+Math.imul(It,$t)|0,g=Math.imul(It,ce),m=m+Math.imul(yt,Ft)|0,b=(b=b+Math.imul(yt,Jt)|0)+Math.imul(Ot,Ft)|0,g=g+Math.imul(Ot,Jt)|0,m=m+Math.imul(pt,Lt)|0,b=(b=b+Math.imul(pt,re)|0)+Math.imul(St,Lt)|0,g=g+Math.imul(St,re)|0,m=m+Math.imul(ot,Ht)|0,b=(b=b+Math.imul(ot,tt)|0)+Math.imul(ut,Ht)|0,g=g+Math.imul(ut,tt)|0,m=m+Math.imul(J,ft)|0,b=(b=b+Math.imul(J,vt)|0)+Math.imul(st,ft)|0,g=g+Math.imul(st,vt)|0,m=m+Math.imul(et,_t)|0,b=(b=b+Math.imul(et,zt)|0)+Math.imul(Y,_t)|0,g=g+Math.imul(Y,zt)|0;var gt=(A+(m=m+Math.imul(W,jt)|0)|0)+((8191&(b=(b=b+Math.imul(W,Vt)|0)+Math.imul(K,jt)|0))<<13)|0;A=((g=g+Math.imul(K,Vt)|0)+(b>>>13)|0)+(gt>>>26)|0,gt&=67108863,m=Math.imul(Rt,Ft),b=(b=Math.imul(Rt,Jt))+Math.imul(It,Ft)|0,g=Math.imul(It,Jt),m=m+Math.imul(yt,Lt)|0,b=(b=b+Math.imul(yt,re)|0)+Math.imul(Ot,Lt)|0,g=g+Math.imul(Ot,re)|0,m=m+Math.imul(pt,Ht)|0,b=(b=b+Math.imul(pt,tt)|0)+Math.imul(St,Ht)|0,g=g+Math.imul(St,tt)|0,m=m+Math.imul(ot,ft)|0,b=(b=b+Math.imul(ot,vt)|0)+Math.imul(ut,ft)|0,g=g+Math.imul(ut,vt)|0,m=m+Math.imul(J,_t)|0,b=(b=b+Math.imul(J,zt)|0)+Math.imul(st,_t)|0,g=g+Math.imul(st,zt)|0;var wt=(A+(m=m+Math.imul(et,jt)|0)|0)+((8191&(b=(b=b+Math.imul(et,Vt)|0)+Math.imul(Y,jt)|0))<<13)|0;A=((g=g+Math.imul(Y,Vt)|0)+(b>>>13)|0)+(wt>>>26)|0,wt&=67108863,m=Math.imul(Rt,Lt),b=(b=Math.imul(Rt,re))+Math.imul(It,Lt)|0,g=Math.imul(It,re),m=m+Math.imul(yt,Ht)|0,b=(b=b+Math.imul(yt,tt)|0)+Math.imul(Ot,Ht)|0,g=g+Math.imul(Ot,tt)|0,m=m+Math.imul(pt,ft)|0,b=(b=b+Math.imul(pt,vt)|0)+Math.imul(St,ft)|0,g=g+Math.imul(St,vt)|0,m=m+Math.imul(ot,_t)|0,b=(b=b+Math.imul(ot,zt)|0)+Math.imul(ut,_t)|0,g=g+Math.imul(ut,zt)|0;var Gt=(A+(m=m+Math.imul(J,jt)|0)|0)+((8191&(b=(b=b+Math.imul(J,Vt)|0)+Math.imul(st,jt)|0))<<13)|0;A=((g=g+Math.imul(st,Vt)|0)+(b>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,m=Math.imul(Rt,Ht),b=(b=Math.imul(Rt,tt))+Math.imul(It,Ht)|0,g=Math.imul(It,tt),m=m+Math.imul(yt,ft)|0,b=(b=b+Math.imul(yt,vt)|0)+Math.imul(Ot,ft)|0,g=g+Math.imul(Ot,vt)|0,m=m+Math.imul(pt,_t)|0,b=(b=b+Math.imul(pt,zt)|0)+Math.imul(St,_t)|0,g=g+Math.imul(St,zt)|0;var qt=(A+(m=m+Math.imul(ot,jt)|0)|0)+((8191&(b=(b=b+Math.imul(ot,Vt)|0)+Math.imul(ut,jt)|0))<<13)|0;A=((g=g+Math.imul(ut,Vt)|0)+(b>>>13)|0)+(qt>>>26)|0,qt&=67108863,m=Math.imul(Rt,ft),b=(b=Math.imul(Rt,vt))+Math.imul(It,ft)|0,g=Math.imul(It,vt),m=m+Math.imul(yt,_t)|0,b=(b=b+Math.imul(yt,zt)|0)+Math.imul(Ot,_t)|0,g=g+Math.imul(Ot,zt)|0;var Xt=(A+(m=m+Math.imul(pt,jt)|0)|0)+((8191&(b=(b=b+Math.imul(pt,Vt)|0)+Math.imul(St,jt)|0))<<13)|0;A=((g=g+Math.imul(St,Vt)|0)+(b>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,m=Math.imul(Rt,_t),b=(b=Math.imul(Rt,zt))+Math.imul(It,_t)|0,g=Math.imul(It,zt);var Dt=(A+(m=m+Math.imul(yt,jt)|0)|0)+((8191&(b=(b=b+Math.imul(yt,Vt)|0)+Math.imul(Ot,jt)|0))<<13)|0;A=((g=g+Math.imul(Ot,Vt)|0)+(b>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var ie=(A+(m=Math.imul(Rt,jt))|0)+((8191&(b=(b=Math.imul(Rt,Vt))+Math.imul(It,jt)|0))<<13)|0;return A=((g=Math.imul(It,Vt))+(b>>>13)|0)+(ie>>>26)|0,ie&=67108863,O[0]=Ut,O[1]=Wt,O[2]=de,O[3]=fe,O[4]=pe,O[5]=me,O[6]=ve,O[7]=G,O[8]=lt,O[9]=ht,O[10]=mt,O[11]=Tt,O[12]=gt,O[13]=wt,O[14]=Gt,O[15]=qt,O[16]=Xt,O[17]=Dt,O[18]=ie,A!==0&&(O[19]=A,v.length++),v};function w(S,T,v){return new x().mulp(S,T,v)}function x(S,T){this.x=S,this.y=T}Math.imul||(h=p),t.prototype.mulTo=function(S,T){var v=this.length+S.length;return this.length===10&&S.length===10?h(this,S,T):v<63?p(this,S,T):v<1024?function(m,b,g){g.negative=b.negative^m.negative,g.length=m.length+b.length;for(var y=0,k=0,O=0;O<g.length-1;O++){var A=k;k=0;for(var z=67108863&y,U=Math.min(O,b.length-1),X=Math.max(0,O-m.length+1);X<=U;X++){var j=O-X,V=(0|m.words[j])*(0|b.words[X]),E=67108863&V;z=67108863&(E=E+z|0),k+=(A=(A=A+(V/67108864|0)|0)+(E>>>26)|0)>>>26,A&=67108863}g.words[O]=z,y=A,A=k}return y!==0?g.words[O]=y:g.length--,g.strip()}(this,S,T):w(this,S,T)},x.prototype.makeRBT=function(S){for(var T=new Array(S),v=t.prototype._countBits(S)-1,m=0;m<S;m++)T[m]=this.revBin(m,v,S);return T},x.prototype.revBin=function(S,T,v){if(S===0||S===v-1)return S;for(var m=0,b=0;b<T;b++)m|=(1&S)<<T-b-1,S>>=1;return m},x.prototype.permute=function(S,T,v,m,b,g){for(var y=0;y<g;y++)m[y]=T[S[y]],b[y]=v[S[y]]},x.prototype.transform=function(S,T,v,m,b,g){this.permute(g,S,T,v,m,b);for(var y=1;y<b;y<<=1)for(var k=y<<1,O=Math.cos(2*Math.PI/k),A=Math.sin(2*Math.PI/k),z=0;z<b;z+=k)for(var U=O,X=A,j=0;j<y;j++){var V=v[z+j],E=m[z+j],M=v[z+j+y],L=m[z+j+y],q=U*M-X*L;L=U*L+X*M,M=q,v[z+j]=V+M,m[z+j]=E+L,v[z+j+y]=V-M,m[z+j+y]=E-L,j!==k&&(q=O*U-A*X,X=O*X+A*U,U=q)}},x.prototype.guessLen13b=function(S,T){var v=1|Math.max(T,S),m=1&v,b=0;for(v=v/2|0;v;v>>>=1)b++;return 1<<b+1+m},x.prototype.conjugate=function(S,T,v){if(!(v<=1))for(var m=0;m<v/2;m++){var b=S[m];S[m]=S[v-m-1],S[v-m-1]=b,b=T[m],T[m]=-T[v-m-1],T[v-m-1]=-b}},x.prototype.normalize13b=function(S,T){for(var v=0,m=0;m<T/2;m++){var b=8192*Math.round(S[2*m+1]/T)+Math.round(S[2*m]/T)+v;S[m]=67108863&b,v=b<67108864?0:b/67108864|0}return S},x.prototype.convert13b=function(S,T,v,m){for(var b=0,g=0;g<T;g++)b+=0|S[g],v[2*g]=8191&b,b>>>=13,v[2*g+1]=8191&b,b>>>=13;for(g=2*T;g<m;++g)v[g]=0;o(b===0),o((-8192&b)==0)},x.prototype.stub=function(S){for(var T=new Array(S),v=0;v<S;v++)T[v]=0;return T},x.prototype.mulp=function(S,T,v){var m=2*this.guessLen13b(S.length,T.length),b=this.makeRBT(m),g=this.stub(m),y=new Array(m),k=new Array(m),O=new Array(m),A=new Array(m),z=new Array(m),U=new Array(m),X=v.words;X.length=m,this.convert13b(S.words,S.length,y,m),this.convert13b(T.words,T.length,A,m),this.transform(y,g,k,O,m,b),this.transform(A,g,z,U,m,b);for(var j=0;j<m;j++){var V=k[j]*z[j]-O[j]*U[j];O[j]=k[j]*U[j]+O[j]*z[j],k[j]=V}return this.conjugate(k,O,m),this.transform(k,O,X,g,m,b),this.conjugate(X,g,m),this.normalize13b(X,m),v.negative=S.negative^T.negative,v.length=S.length+T.length,v.strip()},t.prototype.mul=function(S){var T=new t(null);return T.words=new Array(this.length+S.length),this.mulTo(S,T)},t.prototype.mulf=function(S){var T=new t(null);return T.words=new Array(this.length+S.length),w(this,S,T)},t.prototype.imul=function(S){return this.clone().mulTo(S,this)},t.prototype.imuln=function(S){o(typeof S=="number"),o(S<67108864);for(var T=0,v=0;v<this.length;v++){var m=(0|this.words[v])*S,b=(67108863&m)+(67108863&T);T>>=26,T+=m/67108864|0,T+=b>>>26,this.words[v]=67108863&b}return T!==0&&(this.words[v]=T,this.length++),this},t.prototype.muln=function(S){return this.clone().imuln(S)},t.prototype.sqr=function(){return this.mul(this)},t.prototype.isqr=function(){return this.imul(this.clone())},t.prototype.pow=function(S){var T=function(g){for(var y=new Array(g.bitLength()),k=0;k<y.length;k++){var O=k/26|0,A=k%26;y[k]=(g.words[O]&1<<A)>>>A}return y}(S);if(T.length===0)return new t(1);for(var v=this,m=0;m<T.length&&T[m]===0;m++,v=v.sqr());if(++m<T.length)for(var b=v.sqr();m<T.length;m++,b=b.sqr())T[m]!==0&&(v=v.mul(b));return v},t.prototype.iushln=function(S){o(typeof S=="number"&&S>=0);var T,v=S%26,m=(S-v)/26,b=67108863>>>26-v<<26-v;if(v!==0){var g=0;for(T=0;T<this.length;T++){var y=this.words[T]&b,k=(0|this.words[T])-y<<v;this.words[T]=k|g,g=y>>>26-v}g&&(this.words[T]=g,this.length++)}if(m!==0){for(T=this.length-1;T>=0;T--)this.words[T+m]=this.words[T];for(T=0;T<m;T++)this.words[T]=0;this.length+=m}return this.strip()},t.prototype.ishln=function(S){return o(this.negative===0),this.iushln(S)},t.prototype.iushrn=function(S,T,v){var m;o(typeof S=="number"&&S>=0),m=T?(T-T%26)/26:0;var b=S%26,g=Math.min((S-b)/26,this.length),y=67108863^67108863>>>b<<b,k=v;if(m-=g,m=Math.max(0,m),k){for(var O=0;O<g;O++)k.words[O]=this.words[O];k.length=g}if(g!==0)if(this.length>g)for(this.length-=g,O=0;O<this.length;O++)this.words[O]=this.words[O+g];else this.words[0]=0,this.length=1;var A=0;for(O=this.length-1;O>=0&&(A!==0||O>=m);O--){var z=0|this.words[O];this.words[O]=A<<26-b|z>>>b,A=z&y}return k&&A!==0&&(k.words[k.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},t.prototype.ishrn=function(S,T,v){return o(this.negative===0),this.iushrn(S,T,v)},t.prototype.shln=function(S){return this.clone().ishln(S)},t.prototype.ushln=function(S){return this.clone().iushln(S)},t.prototype.shrn=function(S){return this.clone().ishrn(S)},t.prototype.ushrn=function(S){return this.clone().iushrn(S)},t.prototype.testn=function(S){o(typeof S=="number"&&S>=0);var T=S%26,v=(S-T)/26,m=1<<T;return!(this.length<=v)&&!!(this.words[v]&m)},t.prototype.imaskn=function(S){o(typeof S=="number"&&S>=0);var T=S%26,v=(S-T)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(T!==0&&v++,this.length=Math.min(v,this.length),T!==0){var m=67108863^67108863>>>T<<T;this.words[this.length-1]&=m}return this.strip()},t.prototype.maskn=function(S){return this.clone().imaskn(S)},t.prototype.iaddn=function(S){return o(typeof S=="number"),o(S<67108864),S<0?this.isubn(-S):this.negative!==0?this.length===1&&(0|this.words[0])<S?(this.words[0]=S-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(S),this.negative=1,this):this._iaddn(S)},t.prototype._iaddn=function(S){this.words[0]+=S;for(var T=0;T<this.length&&this.words[T]>=67108864;T++)this.words[T]-=67108864,T===this.length-1?this.words[T+1]=1:this.words[T+1]++;return this.length=Math.max(this.length,T+1),this},t.prototype.isubn=function(S){if(o(typeof S=="number"),o(S<67108864),S<0)return this.iaddn(-S);if(this.negative!==0)return this.negative=0,this.iaddn(S),this.negative=1,this;if(this.words[0]-=S,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var T=0;T<this.length&&this.words[T]<0;T++)this.words[T]+=67108864,this.words[T+1]-=1;return this.strip()},t.prototype.addn=function(S){return this.clone().iaddn(S)},t.prototype.subn=function(S){return this.clone().isubn(S)},t.prototype.iabs=function(){return this.negative=0,this},t.prototype.abs=function(){return this.clone().iabs()},t.prototype._ishlnsubmul=function(S,T,v){var m,b,g=S.length+v;this._expand(g);var y=0;for(m=0;m<S.length;m++){b=(0|this.words[m+v])+y;var k=(0|S.words[m])*T;y=((b-=67108863&k)>>26)-(k/67108864|0),this.words[m+v]=67108863&b}for(;m<this.length-v;m++)y=(b=(0|this.words[m+v])+y)>>26,this.words[m+v]=67108863&b;if(y===0)return this.strip();for(o(y===-1),y=0,m=0;m<this.length;m++)y=(b=-(0|this.words[m])+y)>>26,this.words[m]=67108863&b;return this.negative=1,this.strip()},t.prototype._wordDiv=function(S,T){var v=(this.length,S.length),m=this.clone(),b=S,g=0|b.words[b.length-1];(v=26-this._countBits(g))!==0&&(b=b.ushln(v),m.iushln(v),g=0|b.words[b.length-1]);var y,k=m.length-b.length;if(T!=="mod"){(y=new t(null)).length=k+1,y.words=new Array(y.length);for(var O=0;O<y.length;O++)y.words[O]=0}var A=m.clone()._ishlnsubmul(b,1,k);A.negative===0&&(m=A,y&&(y.words[k]=1));for(var z=k-1;z>=0;z--){var U=67108864*(0|m.words[b.length+z])+(0|m.words[b.length+z-1]);for(U=Math.min(U/g|0,67108863),m._ishlnsubmul(b,U,z);m.negative!==0;)U--,m.negative=0,m._ishlnsubmul(b,1,z),m.isZero()||(m.negative^=1);y&&(y.words[z]=U)}return y&&y.strip(),m.strip(),T!=="div"&&v!==0&&m.iushrn(v),{div:y||null,mod:m}},t.prototype.divmod=function(S,T,v){return o(!S.isZero()),this.isZero()?{div:new t(0),mod:new t(0)}:this.negative!==0&&S.negative===0?(g=this.neg().divmod(S,T),T!=="mod"&&(m=g.div.neg()),T!=="div"&&(b=g.mod.neg(),v&&b.negative!==0&&b.iadd(S)),{div:m,mod:b}):this.negative===0&&S.negative!==0?(g=this.divmod(S.neg(),T),T!=="mod"&&(m=g.div.neg()),{div:m,mod:g.mod}):this.negative&S.negative?(g=this.neg().divmod(S.neg(),T),T!=="div"&&(b=g.mod.neg(),v&&b.negative!==0&&b.isub(S)),{div:g.div,mod:b}):S.length>this.length||this.cmp(S)<0?{div:new t(0),mod:this}:S.length===1?T==="div"?{div:this.divn(S.words[0]),mod:null}:T==="mod"?{div:null,mod:new t(this.modn(S.words[0]))}:{div:this.divn(S.words[0]),mod:new t(this.modn(S.words[0]))}:this._wordDiv(S,T);var m,b,g},t.prototype.div=function(S){return this.divmod(S,"div",!1).div},t.prototype.mod=function(S){return this.divmod(S,"mod",!1).mod},t.prototype.umod=function(S){return this.divmod(S,"mod",!0).mod},t.prototype.divRound=function(S){var T=this.divmod(S);if(T.mod.isZero())return T.div;var v=T.div.negative!==0?T.mod.isub(S):T.mod,m=S.ushrn(1),b=S.andln(1),g=v.cmp(m);return g<0||b===1&&g===0?T.div:T.div.negative!==0?T.div.isubn(1):T.div.iaddn(1)},t.prototype.modn=function(S){o(S<=67108863);for(var T=(1<<26)%S,v=0,m=this.length-1;m>=0;m--)v=(T*v+(0|this.words[m]))%S;return v},t.prototype.idivn=function(S){o(S<=67108863);for(var T=0,v=this.length-1;v>=0;v--){var m=(0|this.words[v])+67108864*T;this.words[v]=m/S|0,T=m%S}return this.strip()},t.prototype.divn=function(S){return this.clone().idivn(S)},t.prototype.egcd=function(S){o(S.negative===0),o(!S.isZero());var T=this,v=S.clone();T=T.negative!==0?T.umod(S):T.clone();for(var m=new t(1),b=new t(0),g=new t(0),y=new t(1),k=0;T.isEven()&&v.isEven();)T.iushrn(1),v.iushrn(1),++k;for(var O=v.clone(),A=T.clone();!T.isZero();){for(var z=0,U=1;!(T.words[0]&U)&&z<26;++z,U<<=1);if(z>0)for(T.iushrn(z);z-- >0;)(m.isOdd()||b.isOdd())&&(m.iadd(O),b.isub(A)),m.iushrn(1),b.iushrn(1);for(var X=0,j=1;!(v.words[0]&j)&&X<26;++X,j<<=1);if(X>0)for(v.iushrn(X);X-- >0;)(g.isOdd()||y.isOdd())&&(g.iadd(O),y.isub(A)),g.iushrn(1),y.iushrn(1);T.cmp(v)>=0?(T.isub(v),m.isub(g),b.isub(y)):(v.isub(T),g.isub(m),y.isub(b))}return{a:g,b:y,gcd:v.iushln(k)}},t.prototype._invmp=function(S){o(S.negative===0),o(!S.isZero());var T=this,v=S.clone();T=T.negative!==0?T.umod(S):T.clone();for(var m,b=new t(1),g=new t(0),y=v.clone();T.cmpn(1)>0&&v.cmpn(1)>0;){for(var k=0,O=1;!(T.words[0]&O)&&k<26;++k,O<<=1);if(k>0)for(T.iushrn(k);k-- >0;)b.isOdd()&&b.iadd(y),b.iushrn(1);for(var A=0,z=1;!(v.words[0]&z)&&A<26;++A,z<<=1);if(A>0)for(v.iushrn(A);A-- >0;)g.isOdd()&&g.iadd(y),g.iushrn(1);T.cmp(v)>=0?(T.isub(v),b.isub(g)):(v.isub(T),g.isub(b))}return(m=T.cmpn(1)===0?b:g).cmpn(0)<0&&m.iadd(S),m},t.prototype.gcd=function(S){if(this.isZero())return S.abs();if(S.isZero())return this.abs();var T=this.clone(),v=S.clone();T.negative=0,v.negative=0;for(var m=0;T.isEven()&&v.isEven();m++)T.iushrn(1),v.iushrn(1);for(;;){for(;T.isEven();)T.iushrn(1);for(;v.isEven();)v.iushrn(1);var b=T.cmp(v);if(b<0){var g=T;T=v,v=g}else if(b===0||v.cmpn(1)===0)break;T.isub(v)}return v.iushln(m)},t.prototype.invm=function(S){return this.egcd(S).a.umod(S)},t.prototype.isEven=function(){return(1&this.words[0])==0},t.prototype.isOdd=function(){return(1&this.words[0])==1},t.prototype.andln=function(S){return this.words[0]&S},t.prototype.bincn=function(S){o(typeof S=="number");var T=S%26,v=(S-T)/26,m=1<<T;if(this.length<=v)return this._expand(v+1),this.words[v]|=m,this;for(var b=m,g=v;b!==0&&g<this.length;g++){var y=0|this.words[g];b=(y+=b)>>>26,y&=67108863,this.words[g]=y}return b!==0&&(this.words[g]=b,this.length++),this},t.prototype.isZero=function(){return this.length===1&&this.words[0]===0},t.prototype.cmpn=function(S){var T,v=S<0;if(this.negative!==0&&!v)return-1;if(this.negative===0&&v)return 1;if(this.strip(),this.length>1)T=1;else{v&&(S=-S),o(S<=67108863,"Number is too big");var m=0|this.words[0];T=m===S?0:m<S?-1:1}return this.negative!==0?0|-T:T},t.prototype.cmp=function(S){if(this.negative!==0&&S.negative===0)return-1;if(this.negative===0&&S.negative!==0)return 1;var T=this.ucmp(S);return this.negative!==0?0|-T:T},t.prototype.ucmp=function(S){if(this.length>S.length)return 1;if(this.length<S.length)return-1;for(var T=0,v=this.length-1;v>=0;v--){var m=0|this.words[v],b=0|S.words[v];if(m!==b){m<b?T=-1:m>b&&(T=1);break}}return T},t.prototype.gtn=function(S){return this.cmpn(S)===1},t.prototype.gt=function(S){return this.cmp(S)===1},t.prototype.gten=function(S){return this.cmpn(S)>=0},t.prototype.gte=function(S){return this.cmp(S)>=0},t.prototype.ltn=function(S){return this.cmpn(S)===-1},t.prototype.lt=function(S){return this.cmp(S)===-1},t.prototype.lten=function(S){return this.cmpn(S)<=0},t.prototype.lte=function(S){return this.cmp(S)<=0},t.prototype.eqn=function(S){return this.cmpn(S)===0},t.prototype.eq=function(S){return this.cmp(S)===0},t.red=function(S){return new $(S)},t.prototype.toRed=function(S){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),S.convertTo(this)._forceRed(S)},t.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},t.prototype._forceRed=function(S){return this.red=S,this},t.prototype.forceRed=function(S){return o(!this.red,"Already a number in reduction context"),this._forceRed(S)},t.prototype.redAdd=function(S){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,S)},t.prototype.redIAdd=function(S){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,S)},t.prototype.redSub=function(S){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,S)},t.prototype.redISub=function(S){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,S)},t.prototype.redShl=function(S){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,S)},t.prototype.redMul=function(S){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.mul(this,S)},t.prototype.redIMul=function(S){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,S),this.red.imul(this,S)},t.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},t.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},t.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},t.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},t.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},t.prototype.redPow=function(S){return o(this.red&&!S.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,S)};var R={k256:null,p224:null,p192:null,p25519:null};function N(S,T){this.name=S,this.p=new t(T,16),this.n=this.p.bitLength(),this.k=new t(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function F(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function I(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function B(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function $(S){if(typeof S=="string"){var T=t._prime(S);this.m=T.p,this.prime=T}else o(S.gtn(1),"modulus must be greater than 1"),this.m=S,this.prime=null}function D(S){$.call(this,S),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new t(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)}N.prototype._tmp=function(){var S=new t(null);return S.words=new Array(Math.ceil(this.n/13)),S},N.prototype.ireduce=function(S){var T,v=S;do this.split(v,this.tmp),T=(v=(v=this.imulK(v)).iadd(this.tmp)).bitLength();while(T>this.n);var m=T<this.n?-1:v.ucmp(this.p);return m===0?(v.words[0]=0,v.length=1):m>0?v.isub(this.p):v.strip!==void 0?v.strip():v._strip(),v},N.prototype.split=function(S,T){S.iushrn(this.n,0,T)},N.prototype.imulK=function(S){return S.imul(this.k)},r(F,N),F.prototype.split=function(S,T){for(var v=Math.min(S.length,9),m=0;m<v;m++)T.words[m]=S.words[m];if(T.length=v,S.length<=9)return S.words[0]=0,void(S.length=1);var b=S.words[9];for(T.words[T.length++]=4194303&b,m=10;m<S.length;m++){var g=0|S.words[m];S.words[m-10]=(4194303&g)<<4|b>>>22,b=g}b>>>=22,S.words[m-10]=b,b===0&&S.length>10?S.length-=10:S.length-=9},F.prototype.imulK=function(S){S.words[S.length]=0,S.words[S.length+1]=0,S.length+=2;for(var T=0,v=0;v<S.length;v++){var m=0|S.words[v];T+=977*m,S.words[v]=67108863&T,T=64*m+(T/67108864|0)}return S.words[S.length-1]===0&&(S.length--,S.words[S.length-1]===0&&S.length--),S},r(I,N),r(P,N),r(B,N),B.prototype.imulK=function(S){for(var T=0,v=0;v<S.length;v++){var m=19*(0|S.words[v])+T,b=67108863&m;m>>>=26,S.words[v]=b,T=m}return T!==0&&(S.words[S.length++]=T),S},t._prime=function(S){if(R[S])return R[S];var T;if(S==="k256")T=new F;else if(S==="p224")T=new I;else if(S==="p192")T=new P;else{if(S!=="p25519")throw new Error("Unknown prime "+S);T=new B}return R[S]=T,T},$.prototype._verify1=function(S){o(S.negative===0,"red works only with positives"),o(S.red,"red works only with red numbers")},$.prototype._verify2=function(S,T){o((S.negative|T.negative)==0,"red works only with positives"),o(S.red&&S.red===T.red,"red works only with red numbers")},$.prototype.imod=function(S){return this.prime?this.prime.ireduce(S)._forceRed(this):S.umod(this.m)._forceRed(this)},$.prototype.neg=function(S){return S.isZero()?S.clone():this.m.sub(S)._forceRed(this)},$.prototype.add=function(S,T){this._verify2(S,T);var v=S.add(T);return v.cmp(this.m)>=0&&v.isub(this.m),v._forceRed(this)},$.prototype.iadd=function(S,T){this._verify2(S,T);var v=S.iadd(T);return v.cmp(this.m)>=0&&v.isub(this.m),v},$.prototype.sub=function(S,T){this._verify2(S,T);var v=S.sub(T);return v.cmpn(0)<0&&v.iadd(this.m),v._forceRed(this)},$.prototype.isub=function(S,T){this._verify2(S,T);var v=S.isub(T);return v.cmpn(0)<0&&v.iadd(this.m),v},$.prototype.shl=function(S,T){return this._verify1(S),this.imod(S.ushln(T))},$.prototype.imul=function(S,T){return this._verify2(S,T),this.imod(S.imul(T))},$.prototype.mul=function(S,T){return this._verify2(S,T),this.imod(S.mul(T))},$.prototype.isqr=function(S){return this.imul(S,S.clone())},$.prototype.sqr=function(S){return this.mul(S,S)},$.prototype.sqrt=function(S){if(S.isZero())return S.clone();var T=this.m.andln(3);if(o(T%2==1),T===3){var v=this.m.add(new t(1)).iushrn(2);return this.pow(S,v)}for(var m=this.m.subn(1),b=0;!m.isZero()&&m.andln(1)===0;)b++,m.iushrn(1);o(!m.isZero());var g=new t(1).toRed(this),y=g.redNeg(),k=this.m.subn(1).iushrn(1),O=this.m.bitLength();for(O=new t(2*O*O).toRed(this);this.pow(O,k).cmp(y)!==0;)O.redIAdd(y);for(var A=this.pow(O,m),z=this.pow(S,m.addn(1).iushrn(1)),U=this.pow(S,m),X=b;U.cmp(g)!==0;){for(var j=U,V=0;j.cmp(g)!==0;V++)j=j.redSqr();o(V<X);var E=this.pow(A,new t(1).iushln(X-V-1));z=z.redMul(E),A=E.redSqr(),U=U.redMul(A),X=V}return z},$.prototype.invm=function(S){var T=S._invmp(this.m);return T.negative!==0?(T.negative=0,this.imod(T).redNeg()):this.imod(T)},$.prototype.pow=function(S,T){if(T.isZero())return new t(1).toRed(this);if(T.cmpn(1)===0)return S.clone();var v=new Array(16);v[0]=new t(1).toRed(this),v[1]=S;for(var m=2;m<v.length;m++)v[m]=this.mul(v[m-1],S);var b=v[0],g=0,y=0,k=T.bitLength()%26;for(k===0&&(k=26),m=T.length-1;m>=0;m--){for(var O=T.words[m],A=k-1;A>=0;A--){var z=O>>A&1;b!==v[0]&&(b=this.sqr(b)),z!==0||g!==0?(g<<=1,g|=z,(++y===4||m===0&&A===0)&&(b=this.mul(b,v[g]),y=0,g=0)):y=0}k=26}return b},$.prototype.convertTo=function(S){var T=S.umod(this.m);return T===S?T.clone():T},$.prototype.convertFrom=function(S){var T=S.clone();return T.red=null,T},t.mont=function(S){return new D(S)},r(D,$),D.prototype.convertTo=function(S){return this.imod(S.ushln(this.shift))},D.prototype.convertFrom=function(S){var T=this.imod(S.mul(this.rinv));return T.red=null,T},D.prototype.imul=function(S,T){if(S.isZero()||T.isZero())return S.words[0]=0,S.length=1,S;var v=S.imul(T),m=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),b=v.isub(m).iushrn(this.shift),g=b;return b.cmp(this.m)>=0?g=b.isub(this.m):b.cmpn(0)<0&&(g=b.iadd(this.m)),g._forceRed(this)},D.prototype.mul=function(S,T){if(S.isZero()||T.isZero())return new t(0)._forceRed(this);var v=S.mul(T),m=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),b=v.isub(m).iushrn(this.shift),g=b;return b.cmp(this.m)>=0?g=b.isub(this.m):b.cmpn(0)<0&&(g=b.iadd(this.m)),g._forceRed(this)},D.prototype.invm=function(S){return this.imod(S._invmp(this.m).mul(this.r2))._forceRed(this)}})(C===void 0||C)},{buffer:188}],185:[function(s,C,_){_.byteLength=function(i){var c=l(i),f=c[0],u=c[1];return 3*(f+u)/4-u},_.toByteArray=function(i){var c,f,u=l(i),p=u[0],h=u[1],w=new o(function(N,F,I){return 3*(F+I)/4-I}(0,p,h)),x=0,R=h>0?p-4:p;for(f=0;f<R;f+=4)c=a[i.charCodeAt(f)]<<18|a[i.charCodeAt(f+1)]<<12|a[i.charCodeAt(f+2)]<<6|a[i.charCodeAt(f+3)],w[x++]=c>>16&255,w[x++]=c>>8&255,w[x++]=255&c;return h===2&&(c=a[i.charCodeAt(f)]<<2|a[i.charCodeAt(f+1)]>>4,w[x++]=255&c),h===1&&(c=a[i.charCodeAt(f)]<<10|a[i.charCodeAt(f+1)]<<4|a[i.charCodeAt(f+2)]>>2,w[x++]=c>>8&255,w[x++]=255&c),w},_.fromByteArray=function(i){for(var c,f=i.length,u=f%3,p=[],h=0,w=f-u;h<w;h+=16383)p.push(n(i,h,h+16383>w?w:h+16383));return u===1?(c=i[f-1],p.push(d[c>>2]+d[c<<4&63]+"==")):u===2&&(c=(i[f-2]<<8)+i[f-1],p.push(d[c>>10]+d[c>>4&63]+d[c<<2&63]+"=")),p.join("")};for(var d=[],a=[],o=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,e=r.length;t<e;++t)d[t]=r[t],a[r.charCodeAt(t)]=t;function l(i){var c=i.length;if(c%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=i.indexOf("=");return f===-1&&(f=c),[f,f===c?0:4-f%4]}function n(i,c,f){for(var u,p,h=[],w=c;w<f;w+=3)u=(i[w]<<16&16711680)+(i[w+1]<<8&65280)+(255&i[w+2]),h.push(d[(p=u)>>18&63]+d[p>>12&63]+d[p>>6&63]+d[63&p]);return h.join("")}a[45]=62,a[95]=63},{}],186:[function(s,C,_){(function(d,a){function o(v,m){if(!v)throw new Error(m||"Assertion failed")}function r(v,m){v.super_=m;var b=function(){};b.prototype=m.prototype,v.prototype=new b,v.prototype.constructor=v}function t(v,m,b){if(t.isBN(v))return v;this.negative=0,this.words=null,this.length=0,this.red=null,v!==null&&(m!=="le"&&m!=="be"||(b=m,m=10),this._init(v||0,m||10,b||"be"))}var e;typeof d=="object"?d.exports=t:(void 0).BN=t,t.BN=t,t.wordSize=26;try{e=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:s("buffer").Buffer}catch{}function l(v,m){var b=v.charCodeAt(m);return b>=48&&b<=57?b-48:b>=65&&b<=70?b-55:b>=97&&b<=102?b-87:void o(!1,"Invalid character in "+v)}function n(v,m,b){var g=l(v,b);return b-1>=m&&(g|=l(v,b-1)<<4),g}function i(v,m,b,g){for(var y=0,k=0,O=Math.min(v.length,b),A=m;A<O;A++){var z=v.charCodeAt(A)-48;y*=g,k=z>=49?z-49+10:z>=17?z-17+10:z,o(z>=0&&k<g,"Invalid character"),y+=k}return y}function c(v,m){v.words=m.words,v.length=m.length,v.negative=m.negative,v.red=m.red}if(t.isBN=function(v){return v instanceof t||v!==null&&typeof v=="object"&&v.constructor.wordSize===t.wordSize&&Array.isArray(v.words)},t.max=function(v,m){return v.cmp(m)>0?v:m},t.min=function(v,m){return v.cmp(m)<0?v:m},t.prototype._init=function(v,m,b){if(typeof v=="number")return this._initNumber(v,m,b);if(typeof v=="object")return this._initArray(v,m,b);m==="hex"&&(m=16),o(m===(0|m)&&m>=2&&m<=36);var g=0;(v=v.toString().replace(/\s+/g,""))[0]==="-"&&(g++,this.negative=1),g<v.length&&(m===16?this._parseHex(v,g,b):(this._parseBase(v,m,g),b==="le"&&this._initArray(this.toArray(),m,b)))},t.prototype._initNumber=function(v,m,b){v<0&&(this.negative=1,v=-v),v<67108864?(this.words=[67108863&v],this.length=1):v<4503599627370496?(this.words=[67108863&v,v/67108864&67108863],this.length=2):(o(v<9007199254740992),this.words=[67108863&v,v/67108864&67108863,1],this.length=3),b==="le"&&this._initArray(this.toArray(),m,b)},t.prototype._initArray=function(v,m,b){if(o(typeof v.length=="number"),v.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(v.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var y,k,O=0;if(b==="be")for(g=v.length-1,y=0;g>=0;g-=3)k=v[g]|v[g-1]<<8|v[g-2]<<16,this.words[y]|=k<<O&67108863,this.words[y+1]=k>>>26-O&67108863,(O+=24)>=26&&(O-=26,y++);else if(b==="le")for(g=0,y=0;g<v.length;g+=3)k=v[g]|v[g+1]<<8|v[g+2]<<16,this.words[y]|=k<<O&67108863,this.words[y+1]=k>>>26-O&67108863,(O+=24)>=26&&(O-=26,y++);return this._strip()},t.prototype._parseHex=function(v,m,b){this.length=Math.ceil((v.length-m)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var y,k=0,O=0;if(b==="be")for(g=v.length-1;g>=m;g-=2)y=n(v,m,g)<<k,this.words[O]|=67108863&y,k>=18?(k-=18,O+=1,this.words[O]|=y>>>26):k+=8;else for(g=(v.length-m)%2==0?m+1:m;g<v.length;g+=2)y=n(v,m,g)<<k,this.words[O]|=67108863&y,k>=18?(k-=18,O+=1,this.words[O]|=y>>>26):k+=8;this._strip()},t.prototype._parseBase=function(v,m,b){this.words=[0],this.length=1;for(var g=0,y=1;y<=67108863;y*=m)g++;g--,y=y/m|0;for(var k=v.length-b,O=k%g,A=Math.min(k,k-O)+b,z=0,U=b;U<A;U+=g)z=i(v,U,U+g,m),this.imuln(y),this.words[0]+z<67108864?this.words[0]+=z:this._iaddn(z);if(O!==0){var X=1;for(z=i(v,U,v.length,m),U=0;U<O;U++)X*=m;this.imuln(X),this.words[0]+z<67108864?this.words[0]+=z:this._iaddn(z)}this._strip()},t.prototype.copy=function(v){v.words=new Array(this.length);for(var m=0;m<this.length;m++)v.words[m]=this.words[m];v.length=this.length,v.negative=this.negative,v.red=this.red},t.prototype._move=function(v){c(v,this)},t.prototype.clone=function(){var v=new t(null);return this.copy(v),v},t.prototype._expand=function(v){for(;this.length<v;)this.words[this.length++]=0;return this},t.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},t.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{t.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch{t.prototype.inspect=f}else t.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var u=["","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"],p=[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],h=[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];t.prototype.toString=function(v,m){var b;if(m=0|m||1,(v=v||10)===16||v==="hex"){b="";for(var g=0,y=0,k=0;k<this.length;k++){var O=this.words[k],A=(16777215&(O<<g|y)).toString(16);y=O>>>24-g&16777215,(g+=2)>=26&&(g-=26,k--),b=y!==0||k!==this.length-1?u[6-A.length]+A+b:A+b}for(y!==0&&(b=y.toString(16)+b);b.length%m!=0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}if(v===(0|v)&&v>=2&&v<=36){var z=p[v],U=h[v];b="";var X=this.clone();for(X.negative=0;!X.isZero();){var j=X.modrn(U).toString(v);b=(X=X.idivn(U)).isZero()?j+b:u[z-j.length]+j+b}for(this.isZero()&&(b="0"+b);b.length%m!=0;)b="0"+b;return this.negative!==0&&(b="-"+b),b}o(!1,"Base should be between 2 and 36")},t.prototype.toNumber=function(){var v=this.words[0];return this.length===2?v+=67108864*this.words[1]:this.length===3&&this.words[2]===1?v+=4503599627370496+67108864*this.words[1]:this.length>2&&o(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-v:v},t.prototype.toJSON=function(){return this.toString(16,2)},e&&(t.prototype.toBuffer=function(v,m){return this.toArrayLike(e,v,m)}),t.prototype.toArray=function(v,m){return this.toArrayLike(Array,v,m)};function w(v,m,b){b.negative=m.negative^v.negative;var g=v.length+m.length|0;b.length=g,g=g-1|0;var y=0|v.words[0],k=0|m.words[0],O=y*k,A=67108863&O,z=O/67108864|0;b.words[0]=A;for(var U=1;U<g;U++){for(var X=z>>>26,j=67108863&z,V=Math.min(U,m.length-1),E=Math.max(0,U-v.length+1);E<=V;E++){var M=U-E|0;X+=(O=(y=0|v.words[M])*(k=0|m.words[E])+j)/67108864|0,j=67108863&O}b.words[U]=0|j,z=0|X}return z!==0?b.words[U]=0|z:b.length--,b._strip()}t.prototype.toArrayLike=function(v,m,b){this._strip();var g=this.byteLength(),y=b||Math.max(1,g);o(g<=y,"byte array longer than desired length"),o(y>0,"Requested array length <= 0");var k=function(O,A){return O.allocUnsafe?O.allocUnsafe(A):new O(A)}(v,y);return this["_toArrayLike"+(m==="le"?"LE":"BE")](k,g),k},t.prototype._toArrayLikeLE=function(v,m){for(var b=0,g=0,y=0,k=0;y<this.length;y++){var O=this.words[y]<<k|g;v[b++]=255&O,b<v.length&&(v[b++]=O>>8&255),b<v.length&&(v[b++]=O>>16&255),k===6?(b<v.length&&(v[b++]=O>>24&255),g=0,k=0):(g=O>>>24,k+=2)}if(b<v.length)for(v[b++]=g;b<v.length;)v[b++]=0},t.prototype._toArrayLikeBE=function(v,m){for(var b=v.length-1,g=0,y=0,k=0;y<this.length;y++){var O=this.words[y]<<k|g;v[b--]=255&O,b>=0&&(v[b--]=O>>8&255),b>=0&&(v[b--]=O>>16&255),k===6?(b>=0&&(v[b--]=O>>24&255),g=0,k=0):(g=O>>>24,k+=2)}if(b>=0)for(v[b--]=g;b>=0;)v[b--]=0},Math.clz32?t.prototype._countBits=function(v){return 32-Math.clz32(v)}:t.prototype._countBits=function(v){var m=v,b=0;return m>=4096&&(b+=13,m>>>=13),m>=64&&(b+=7,m>>>=7),m>=8&&(b+=4,m>>>=4),m>=2&&(b+=2,m>>>=2),b+m},t.prototype._zeroBits=function(v){if(v===0)return 26;var m=v,b=0;return!(8191&m)&&(b+=13,m>>>=13),!(127&m)&&(b+=7,m>>>=7),!(15&m)&&(b+=4,m>>>=4),!(3&m)&&(b+=2,m>>>=2),!(1&m)&&b++,b},t.prototype.bitLength=function(){var v=this.words[this.length-1],m=this._countBits(v);return 26*(this.length-1)+m},t.prototype.zeroBits=function(){if(this.isZero())return 0;for(var v=0,m=0;m<this.length;m++){var b=this._zeroBits(this.words[m]);if(v+=b,b!==26)break}return v},t.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},t.prototype.toTwos=function(v){return this.negative!==0?this.abs().inotn(v).iaddn(1):this.clone()},t.prototype.fromTwos=function(v){return this.testn(v-1)?this.notn(v).iaddn(1).ineg():this.clone()},t.prototype.isNeg=function(){return this.negative!==0},t.prototype.neg=function(){return this.clone().ineg()},t.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},t.prototype.iuor=function(v){for(;this.length<v.length;)this.words[this.length++]=0;for(var m=0;m<v.length;m++)this.words[m]=this.words[m]|v.words[m];return this._strip()},t.prototype.ior=function(v){return o((this.negative|v.negative)==0),this.iuor(v)},t.prototype.or=function(v){return this.length>v.length?this.clone().ior(v):v.clone().ior(this)},t.prototype.uor=function(v){return this.length>v.length?this.clone().iuor(v):v.clone().iuor(this)},t.prototype.iuand=function(v){var m;m=this.length>v.length?v:this;for(var b=0;b<m.length;b++)this.words[b]=this.words[b]&v.words[b];return this.length=m.length,this._strip()},t.prototype.iand=function(v){return o((this.negative|v.negative)==0),this.iuand(v)},t.prototype.and=function(v){return this.length>v.length?this.clone().iand(v):v.clone().iand(this)},t.prototype.uand=function(v){return this.length>v.length?this.clone().iuand(v):v.clone().iuand(this)},t.prototype.iuxor=function(v){var m,b;this.length>v.length?(m=this,b=v):(m=v,b=this);for(var g=0;g<b.length;g++)this.words[g]=m.words[g]^b.words[g];if(this!==m)for(;g<m.length;g++)this.words[g]=m.words[g];return this.length=m.length,this._strip()},t.prototype.ixor=function(v){return o((this.negative|v.negative)==0),this.iuxor(v)},t.prototype.xor=function(v){return this.length>v.length?this.clone().ixor(v):v.clone().ixor(this)},t.prototype.uxor=function(v){return this.length>v.length?this.clone().iuxor(v):v.clone().iuxor(this)},t.prototype.inotn=function(v){o(typeof v=="number"&&v>=0);var m=0|Math.ceil(v/26),b=v%26;this._expand(m),b>0&&m--;for(var g=0;g<m;g++)this.words[g]=67108863&~this.words[g];return b>0&&(this.words[g]=~this.words[g]&67108863>>26-b),this._strip()},t.prototype.notn=function(v){return this.clone().inotn(v)},t.prototype.setn=function(v,m){o(typeof v=="number"&&v>=0);var b=v/26|0,g=v%26;return this._expand(b+1),this.words[b]=m?this.words[b]|1<<g:this.words[b]&~(1<<g),this._strip()},t.prototype.iadd=function(v){var m,b,g;if(this.negative!==0&&v.negative===0)return this.negative=0,m=this.isub(v),this.negative^=1,this._normSign();if(this.negative===0&&v.negative!==0)return v.negative=0,m=this.isub(v),v.negative=1,m._normSign();this.length>v.length?(b=this,g=v):(b=v,g=this);for(var y=0,k=0;k<g.length;k++)m=(0|b.words[k])+(0|g.words[k])+y,this.words[k]=67108863&m,y=m>>>26;for(;y!==0&&k<b.length;k++)m=(0|b.words[k])+y,this.words[k]=67108863&m,y=m>>>26;if(this.length=b.length,y!==0)this.words[this.length]=y,this.length++;else if(b!==this)for(;k<b.length;k++)this.words[k]=b.words[k];return this},t.prototype.add=function(v){var m;return v.negative!==0&&this.negative===0?(v.negative=0,m=this.sub(v),v.negative^=1,m):v.negative===0&&this.negative!==0?(this.negative=0,m=v.sub(this),this.negative=1,m):this.length>v.length?this.clone().iadd(v):v.clone().iadd(this)},t.prototype.isub=function(v){if(v.negative!==0){v.negative=0;var m=this.iadd(v);return v.negative=1,m._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(v),this.negative=1,this._normSign();var b,g,y=this.cmp(v);if(y===0)return this.negative=0,this.length=1,this.words[0]=0,this;y>0?(b=this,g=v):(b=v,g=this);for(var k=0,O=0;O<g.length;O++)k=(m=(0|b.words[O])-(0|g.words[O])+k)>>26,this.words[O]=67108863&m;for(;k!==0&&O<b.length;O++)k=(m=(0|b.words[O])+k)>>26,this.words[O]=67108863&m;if(k===0&&O<b.length&&b!==this)for(;O<b.length;O++)this.words[O]=b.words[O];return this.length=Math.max(this.length,O),b!==this&&(this.negative=1),this._strip()},t.prototype.sub=function(v){return this.clone().isub(v)};var x=function(v,m,b){var g,y,k,O=v.words,A=m.words,z=b.words,U=0,X=0|O[0],j=8191&X,V=X>>>13,E=0|O[1],M=8191&E,L=E>>>13,q=0|O[2],Z=8191&q,W=q>>>13,K=0|O[3],rt=8191&K,et=K>>>13,Y=0|O[4],Q=8191&Y,J=Y>>>13,st=0|O[5],it=8191&st,ot=st>>>13,ut=0|O[6],ct=8191&ut,pt=ut>>>13,St=0|O[7],xt=8191&St,yt=St>>>13,Ot=0|O[8],At=8191&Ot,Rt=Ot>>>13,It=0|O[9],kt=8191&It,bt=It>>>13,Ct=0|A[0],Et=8191&Ct,Mt=Ct>>>13,Kt=0|A[1],ne=8191&Kt,Nt=Kt>>>13,te=0|A[2],Yt=8191&te,$t=te>>>13,ce=0|A[3],ee=8191&ce,Ft=ce>>>13,Jt=0|A[4],oe=8191&Jt,Lt=Jt>>>13,re=0|A[5],le=8191&re,Ht=re>>>13,tt=0|A[6],at=8191&tt,ft=tt>>>13,vt=0|A[7],Pt=8191&vt,_t=vt>>>13,zt=0|A[8],Bt=8191&zt,jt=zt>>>13,Vt=0|A[9],Ut=8191&Vt,Wt=Vt>>>13;b.negative=v.negative^m.negative,b.length=19;var de=(U+(g=Math.imul(j,Et))|0)+((8191&(y=(y=Math.imul(j,Mt))+Math.imul(V,Et)|0))<<13)|0;U=((k=Math.imul(V,Mt))+(y>>>13)|0)+(de>>>26)|0,de&=67108863,g=Math.imul(M,Et),y=(y=Math.imul(M,Mt))+Math.imul(L,Et)|0,k=Math.imul(L,Mt);var fe=(U+(g=g+Math.imul(j,ne)|0)|0)+((8191&(y=(y=y+Math.imul(j,Nt)|0)+Math.imul(V,ne)|0))<<13)|0;U=((k=k+Math.imul(V,Nt)|0)+(y>>>13)|0)+(fe>>>26)|0,fe&=67108863,g=Math.imul(Z,Et),y=(y=Math.imul(Z,Mt))+Math.imul(W,Et)|0,k=Math.imul(W,Mt),g=g+Math.imul(M,ne)|0,y=(y=y+Math.imul(M,Nt)|0)+Math.imul(L,ne)|0,k=k+Math.imul(L,Nt)|0;var pe=(U+(g=g+Math.imul(j,Yt)|0)|0)+((8191&(y=(y=y+Math.imul(j,$t)|0)+Math.imul(V,Yt)|0))<<13)|0;U=((k=k+Math.imul(V,$t)|0)+(y>>>13)|0)+(pe>>>26)|0,pe&=67108863,g=Math.imul(rt,Et),y=(y=Math.imul(rt,Mt))+Math.imul(et,Et)|0,k=Math.imul(et,Mt),g=g+Math.imul(Z,ne)|0,y=(y=y+Math.imul(Z,Nt)|0)+Math.imul(W,ne)|0,k=k+Math.imul(W,Nt)|0,g=g+Math.imul(M,Yt)|0,y=(y=y+Math.imul(M,$t)|0)+Math.imul(L,Yt)|0,k=k+Math.imul(L,$t)|0;var me=(U+(g=g+Math.imul(j,ee)|0)|0)+((8191&(y=(y=y+Math.imul(j,Ft)|0)+Math.imul(V,ee)|0))<<13)|0;U=((k=k+Math.imul(V,Ft)|0)+(y>>>13)|0)+(me>>>26)|0,me&=67108863,g=Math.imul(Q,Et),y=(y=Math.imul(Q,Mt))+Math.imul(J,Et)|0,k=Math.imul(J,Mt),g=g+Math.imul(rt,ne)|0,y=(y=y+Math.imul(rt,Nt)|0)+Math.imul(et,ne)|0,k=k+Math.imul(et,Nt)|0,g=g+Math.imul(Z,Yt)|0,y=(y=y+Math.imul(Z,$t)|0)+Math.imul(W,Yt)|0,k=k+Math.imul(W,$t)|0,g=g+Math.imul(M,ee)|0,y=(y=y+Math.imul(M,Ft)|0)+Math.imul(L,ee)|0,k=k+Math.imul(L,Ft)|0;var ve=(U+(g=g+Math.imul(j,oe)|0)|0)+((8191&(y=(y=y+Math.imul(j,Lt)|0)+Math.imul(V,oe)|0))<<13)|0;U=((k=k+Math.imul(V,Lt)|0)+(y>>>13)|0)+(ve>>>26)|0,ve&=67108863,g=Math.imul(it,Et),y=(y=Math.imul(it,Mt))+Math.imul(ot,Et)|0,k=Math.imul(ot,Mt),g=g+Math.imul(Q,ne)|0,y=(y=y+Math.imul(Q,Nt)|0)+Math.imul(J,ne)|0,k=k+Math.imul(J,Nt)|0,g=g+Math.imul(rt,Yt)|0,y=(y=y+Math.imul(rt,$t)|0)+Math.imul(et,Yt)|0,k=k+Math.imul(et,$t)|0,g=g+Math.imul(Z,ee)|0,y=(y=y+Math.imul(Z,Ft)|0)+Math.imul(W,ee)|0,k=k+Math.imul(W,Ft)|0,g=g+Math.imul(M,oe)|0,y=(y=y+Math.imul(M,Lt)|0)+Math.imul(L,oe)|0,k=k+Math.imul(L,Lt)|0;var G=(U+(g=g+Math.imul(j,le)|0)|0)+((8191&(y=(y=y+Math.imul(j,Ht)|0)+Math.imul(V,le)|0))<<13)|0;U=((k=k+Math.imul(V,Ht)|0)+(y>>>13)|0)+(G>>>26)|0,G&=67108863,g=Math.imul(ct,Et),y=(y=Math.imul(ct,Mt))+Math.imul(pt,Et)|0,k=Math.imul(pt,Mt),g=g+Math.imul(it,ne)|0,y=(y=y+Math.imul(it,Nt)|0)+Math.imul(ot,ne)|0,k=k+Math.imul(ot,Nt)|0,g=g+Math.imul(Q,Yt)|0,y=(y=y+Math.imul(Q,$t)|0)+Math.imul(J,Yt)|0,k=k+Math.imul(J,$t)|0,g=g+Math.imul(rt,ee)|0,y=(y=y+Math.imul(rt,Ft)|0)+Math.imul(et,ee)|0,k=k+Math.imul(et,Ft)|0,g=g+Math.imul(Z,oe)|0,y=(y=y+Math.imul(Z,Lt)|0)+Math.imul(W,oe)|0,k=k+Math.imul(W,Lt)|0,g=g+Math.imul(M,le)|0,y=(y=y+Math.imul(M,Ht)|0)+Math.imul(L,le)|0,k=k+Math.imul(L,Ht)|0;var lt=(U+(g=g+Math.imul(j,at)|0)|0)+((8191&(y=(y=y+Math.imul(j,ft)|0)+Math.imul(V,at)|0))<<13)|0;U=((k=k+Math.imul(V,ft)|0)+(y>>>13)|0)+(lt>>>26)|0,lt&=67108863,g=Math.imul(xt,Et),y=(y=Math.imul(xt,Mt))+Math.imul(yt,Et)|0,k=Math.imul(yt,Mt),g=g+Math.imul(ct,ne)|0,y=(y=y+Math.imul(ct,Nt)|0)+Math.imul(pt,ne)|0,k=k+Math.imul(pt,Nt)|0,g=g+Math.imul(it,Yt)|0,y=(y=y+Math.imul(it,$t)|0)+Math.imul(ot,Yt)|0,k=k+Math.imul(ot,$t)|0,g=g+Math.imul(Q,ee)|0,y=(y=y+Math.imul(Q,Ft)|0)+Math.imul(J,ee)|0,k=k+Math.imul(J,Ft)|0,g=g+Math.imul(rt,oe)|0,y=(y=y+Math.imul(rt,Lt)|0)+Math.imul(et,oe)|0,k=k+Math.imul(et,Lt)|0,g=g+Math.imul(Z,le)|0,y=(y=y+Math.imul(Z,Ht)|0)+Math.imul(W,le)|0,k=k+Math.imul(W,Ht)|0,g=g+Math.imul(M,at)|0,y=(y=y+Math.imul(M,ft)|0)+Math.imul(L,at)|0,k=k+Math.imul(L,ft)|0;var ht=(U+(g=g+Math.imul(j,Pt)|0)|0)+((8191&(y=(y=y+Math.imul(j,_t)|0)+Math.imul(V,Pt)|0))<<13)|0;U=((k=k+Math.imul(V,_t)|0)+(y>>>13)|0)+(ht>>>26)|0,ht&=67108863,g=Math.imul(At,Et),y=(y=Math.imul(At,Mt))+Math.imul(Rt,Et)|0,k=Math.imul(Rt,Mt),g=g+Math.imul(xt,ne)|0,y=(y=y+Math.imul(xt,Nt)|0)+Math.imul(yt,ne)|0,k=k+Math.imul(yt,Nt)|0,g=g+Math.imul(ct,Yt)|0,y=(y=y+Math.imul(ct,$t)|0)+Math.imul(pt,Yt)|0,k=k+Math.imul(pt,$t)|0,g=g+Math.imul(it,ee)|0,y=(y=y+Math.imul(it,Ft)|0)+Math.imul(ot,ee)|0,k=k+Math.imul(ot,Ft)|0,g=g+Math.imul(Q,oe)|0,y=(y=y+Math.imul(Q,Lt)|0)+Math.imul(J,oe)|0,k=k+Math.imul(J,Lt)|0,g=g+Math.imul(rt,le)|0,y=(y=y+Math.imul(rt,Ht)|0)+Math.imul(et,le)|0,k=k+Math.imul(et,Ht)|0,g=g+Math.imul(Z,at)|0,y=(y=y+Math.imul(Z,ft)|0)+Math.imul(W,at)|0,k=k+Math.imul(W,ft)|0,g=g+Math.imul(M,Pt)|0,y=(y=y+Math.imul(M,_t)|0)+Math.imul(L,Pt)|0,k=k+Math.imul(L,_t)|0;var mt=(U+(g=g+Math.imul(j,Bt)|0)|0)+((8191&(y=(y=y+Math.imul(j,jt)|0)+Math.imul(V,Bt)|0))<<13)|0;U=((k=k+Math.imul(V,jt)|0)+(y>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(kt,Et),y=(y=Math.imul(kt,Mt))+Math.imul(bt,Et)|0,k=Math.imul(bt,Mt),g=g+Math.imul(At,ne)|0,y=(y=y+Math.imul(At,Nt)|0)+Math.imul(Rt,ne)|0,k=k+Math.imul(Rt,Nt)|0,g=g+Math.imul(xt,Yt)|0,y=(y=y+Math.imul(xt,$t)|0)+Math.imul(yt,Yt)|0,k=k+Math.imul(yt,$t)|0,g=g+Math.imul(ct,ee)|0,y=(y=y+Math.imul(ct,Ft)|0)+Math.imul(pt,ee)|0,k=k+Math.imul(pt,Ft)|0,g=g+Math.imul(it,oe)|0,y=(y=y+Math.imul(it,Lt)|0)+Math.imul(ot,oe)|0,k=k+Math.imul(ot,Lt)|0,g=g+Math.imul(Q,le)|0,y=(y=y+Math.imul(Q,Ht)|0)+Math.imul(J,le)|0,k=k+Math.imul(J,Ht)|0,g=g+Math.imul(rt,at)|0,y=(y=y+Math.imul(rt,ft)|0)+Math.imul(et,at)|0,k=k+Math.imul(et,ft)|0,g=g+Math.imul(Z,Pt)|0,y=(y=y+Math.imul(Z,_t)|0)+Math.imul(W,Pt)|0,k=k+Math.imul(W,_t)|0,g=g+Math.imul(M,Bt)|0,y=(y=y+Math.imul(M,jt)|0)+Math.imul(L,Bt)|0,k=k+Math.imul(L,jt)|0;var Tt=(U+(g=g+Math.imul(j,Ut)|0)|0)+((8191&(y=(y=y+Math.imul(j,Wt)|0)+Math.imul(V,Ut)|0))<<13)|0;U=((k=k+Math.imul(V,Wt)|0)+(y>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(kt,ne),y=(y=Math.imul(kt,Nt))+Math.imul(bt,ne)|0,k=Math.imul(bt,Nt),g=g+Math.imul(At,Yt)|0,y=(y=y+Math.imul(At,$t)|0)+Math.imul(Rt,Yt)|0,k=k+Math.imul(Rt,$t)|0,g=g+Math.imul(xt,ee)|0,y=(y=y+Math.imul(xt,Ft)|0)+Math.imul(yt,ee)|0,k=k+Math.imul(yt,Ft)|0,g=g+Math.imul(ct,oe)|0,y=(y=y+Math.imul(ct,Lt)|0)+Math.imul(pt,oe)|0,k=k+Math.imul(pt,Lt)|0,g=g+Math.imul(it,le)|0,y=(y=y+Math.imul(it,Ht)|0)+Math.imul(ot,le)|0,k=k+Math.imul(ot,Ht)|0,g=g+Math.imul(Q,at)|0,y=(y=y+Math.imul(Q,ft)|0)+Math.imul(J,at)|0,k=k+Math.imul(J,ft)|0,g=g+Math.imul(rt,Pt)|0,y=(y=y+Math.imul(rt,_t)|0)+Math.imul(et,Pt)|0,k=k+Math.imul(et,_t)|0,g=g+Math.imul(Z,Bt)|0,y=(y=y+Math.imul(Z,jt)|0)+Math.imul(W,Bt)|0,k=k+Math.imul(W,jt)|0;var gt=(U+(g=g+Math.imul(M,Ut)|0)|0)+((8191&(y=(y=y+Math.imul(M,Wt)|0)+Math.imul(L,Ut)|0))<<13)|0;U=((k=k+Math.imul(L,Wt)|0)+(y>>>13)|0)+(gt>>>26)|0,gt&=67108863,g=Math.imul(kt,Yt),y=(y=Math.imul(kt,$t))+Math.imul(bt,Yt)|0,k=Math.imul(bt,$t),g=g+Math.imul(At,ee)|0,y=(y=y+Math.imul(At,Ft)|0)+Math.imul(Rt,ee)|0,k=k+Math.imul(Rt,Ft)|0,g=g+Math.imul(xt,oe)|0,y=(y=y+Math.imul(xt,Lt)|0)+Math.imul(yt,oe)|0,k=k+Math.imul(yt,Lt)|0,g=g+Math.imul(ct,le)|0,y=(y=y+Math.imul(ct,Ht)|0)+Math.imul(pt,le)|0,k=k+Math.imul(pt,Ht)|0,g=g+Math.imul(it,at)|0,y=(y=y+Math.imul(it,ft)|0)+Math.imul(ot,at)|0,k=k+Math.imul(ot,ft)|0,g=g+Math.imul(Q,Pt)|0,y=(y=y+Math.imul(Q,_t)|0)+Math.imul(J,Pt)|0,k=k+Math.imul(J,_t)|0,g=g+Math.imul(rt,Bt)|0,y=(y=y+Math.imul(rt,jt)|0)+Math.imul(et,Bt)|0,k=k+Math.imul(et,jt)|0;var wt=(U+(g=g+Math.imul(Z,Ut)|0)|0)+((8191&(y=(y=y+Math.imul(Z,Wt)|0)+Math.imul(W,Ut)|0))<<13)|0;U=((k=k+Math.imul(W,Wt)|0)+(y>>>13)|0)+(wt>>>26)|0,wt&=67108863,g=Math.imul(kt,ee),y=(y=Math.imul(kt,Ft))+Math.imul(bt,ee)|0,k=Math.imul(bt,Ft),g=g+Math.imul(At,oe)|0,y=(y=y+Math.imul(At,Lt)|0)+Math.imul(Rt,oe)|0,k=k+Math.imul(Rt,Lt)|0,g=g+Math.imul(xt,le)|0,y=(y=y+Math.imul(xt,Ht)|0)+Math.imul(yt,le)|0,k=k+Math.imul(yt,Ht)|0,g=g+Math.imul(ct,at)|0,y=(y=y+Math.imul(ct,ft)|0)+Math.imul(pt,at)|0,k=k+Math.imul(pt,ft)|0,g=g+Math.imul(it,Pt)|0,y=(y=y+Math.imul(it,_t)|0)+Math.imul(ot,Pt)|0,k=k+Math.imul(ot,_t)|0,g=g+Math.imul(Q,Bt)|0,y=(y=y+Math.imul(Q,jt)|0)+Math.imul(J,Bt)|0,k=k+Math.imul(J,jt)|0;var Gt=(U+(g=g+Math.imul(rt,Ut)|0)|0)+((8191&(y=(y=y+Math.imul(rt,Wt)|0)+Math.imul(et,Ut)|0))<<13)|0;U=((k=k+Math.imul(et,Wt)|0)+(y>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,g=Math.imul(kt,oe),y=(y=Math.imul(kt,Lt))+Math.imul(bt,oe)|0,k=Math.imul(bt,Lt),g=g+Math.imul(At,le)|0,y=(y=y+Math.imul(At,Ht)|0)+Math.imul(Rt,le)|0,k=k+Math.imul(Rt,Ht)|0,g=g+Math.imul(xt,at)|0,y=(y=y+Math.imul(xt,ft)|0)+Math.imul(yt,at)|0,k=k+Math.imul(yt,ft)|0,g=g+Math.imul(ct,Pt)|0,y=(y=y+Math.imul(ct,_t)|0)+Math.imul(pt,Pt)|0,k=k+Math.imul(pt,_t)|0,g=g+Math.imul(it,Bt)|0,y=(y=y+Math.imul(it,jt)|0)+Math.imul(ot,Bt)|0,k=k+Math.imul(ot,jt)|0;var qt=(U+(g=g+Math.imul(Q,Ut)|0)|0)+((8191&(y=(y=y+Math.imul(Q,Wt)|0)+Math.imul(J,Ut)|0))<<13)|0;U=((k=k+Math.imul(J,Wt)|0)+(y>>>13)|0)+(qt>>>26)|0,qt&=67108863,g=Math.imul(kt,le),y=(y=Math.imul(kt,Ht))+Math.imul(bt,le)|0,k=Math.imul(bt,Ht),g=g+Math.imul(At,at)|0,y=(y=y+Math.imul(At,ft)|0)+Math.imul(Rt,at)|0,k=k+Math.imul(Rt,ft)|0,g=g+Math.imul(xt,Pt)|0,y=(y=y+Math.imul(xt,_t)|0)+Math.imul(yt,Pt)|0,k=k+Math.imul(yt,_t)|0,g=g+Math.imul(ct,Bt)|0,y=(y=y+Math.imul(ct,jt)|0)+Math.imul(pt,Bt)|0,k=k+Math.imul(pt,jt)|0;var Xt=(U+(g=g+Math.imul(it,Ut)|0)|0)+((8191&(y=(y=y+Math.imul(it,Wt)|0)+Math.imul(ot,Ut)|0))<<13)|0;U=((k=k+Math.imul(ot,Wt)|0)+(y>>>13)|0)+(Xt>>>26)|0,Xt&=67108863,g=Math.imul(kt,at),y=(y=Math.imul(kt,ft))+Math.imul(bt,at)|0,k=Math.imul(bt,ft),g=g+Math.imul(At,Pt)|0,y=(y=y+Math.imul(At,_t)|0)+Math.imul(Rt,Pt)|0,k=k+Math.imul(Rt,_t)|0,g=g+Math.imul(xt,Bt)|0,y=(y=y+Math.imul(xt,jt)|0)+Math.imul(yt,Bt)|0,k=k+Math.imul(yt,jt)|0;var Dt=(U+(g=g+Math.imul(ct,Ut)|0)|0)+((8191&(y=(y=y+Math.imul(ct,Wt)|0)+Math.imul(pt,Ut)|0))<<13)|0;U=((k=k+Math.imul(pt,Wt)|0)+(y>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(kt,Pt),y=(y=Math.imul(kt,_t))+Math.imul(bt,Pt)|0,k=Math.imul(bt,_t),g=g+Math.imul(At,Bt)|0,y=(y=y+Math.imul(At,jt)|0)+Math.imul(Rt,Bt)|0,k=k+Math.imul(Rt,jt)|0;var ie=(U+(g=g+Math.imul(xt,Ut)|0)|0)+((8191&(y=(y=y+Math.imul(xt,Wt)|0)+Math.imul(yt,Ut)|0))<<13)|0;U=((k=k+Math.imul(yt,Wt)|0)+(y>>>13)|0)+(ie>>>26)|0,ie&=67108863,g=Math.imul(kt,Bt),y=(y=Math.imul(kt,jt))+Math.imul(bt,Bt)|0,k=Math.imul(bt,jt);var se=(U+(g=g+Math.imul(At,Ut)|0)|0)+((8191&(y=(y=y+Math.imul(At,Wt)|0)+Math.imul(Rt,Ut)|0))<<13)|0;U=((k=k+Math.imul(Rt,Wt)|0)+(y>>>13)|0)+(se>>>26)|0,se&=67108863;var ue=(U+(g=Math.imul(kt,Ut))|0)+((8191&(y=(y=Math.imul(kt,Wt))+Math.imul(bt,Ut)|0))<<13)|0;return U=((k=Math.imul(bt,Wt))+(y>>>13)|0)+(ue>>>26)|0,ue&=67108863,z[0]=de,z[1]=fe,z[2]=pe,z[3]=me,z[4]=ve,z[5]=G,z[6]=lt,z[7]=ht,z[8]=mt,z[9]=Tt,z[10]=gt,z[11]=wt,z[12]=Gt,z[13]=qt,z[14]=Xt,z[15]=Dt,z[16]=ie,z[17]=se,z[18]=ue,U!==0&&(z[19]=U,b.length++),b};function R(v,m,b){b.negative=m.negative^v.negative,b.length=v.length+m.length;for(var g=0,y=0,k=0;k<b.length-1;k++){var O=y;y=0;for(var A=67108863&g,z=Math.min(k,m.length-1),U=Math.max(0,k-v.length+1);U<=z;U++){var X=k-U,j=(0|v.words[X])*(0|m.words[U]),V=67108863&j;A=67108863&(V=V+A|0),y+=(O=(O=O+(j/67108864|0)|0)+(V>>>26)|0)>>>26,O&=67108863}b.words[k]=A,g=O,O=y}return g!==0?b.words[k]=g:b.length--,b._strip()}function N(v,m,b){return R(v,m,b)}Math.imul||(x=w),t.prototype.mulTo=function(v,m){var b=this.length+v.length;return this.length===10&&v.length===10?x(this,v,m):b<63?w(this,v,m):b<1024?R(this,v,m):N(this,v,m)},t.prototype.mul=function(v){var m=new t(null);return m.words=new Array(this.length+v.length),this.mulTo(v,m)},t.prototype.mulf=function(v){var m=new t(null);return m.words=new Array(this.length+v.length),N(this,v,m)},t.prototype.imul=function(v){return this.clone().mulTo(v,this)},t.prototype.imuln=function(v){var m=v<0;m&&(v=-v),o(typeof v=="number"),o(v<67108864);for(var b=0,g=0;g<this.length;g++){var y=(0|this.words[g])*v,k=(67108863&y)+(67108863&b);b>>=26,b+=y/67108864|0,b+=k>>>26,this.words[g]=67108863&k}return b!==0&&(this.words[g]=b,this.length++),m?this.ineg():this},t.prototype.muln=function(v){return this.clone().imuln(v)},t.prototype.sqr=function(){return this.mul(this)},t.prototype.isqr=function(){return this.imul(this.clone())},t.prototype.pow=function(v){var m=function(k){for(var O=new Array(k.bitLength()),A=0;A<O.length;A++){var z=A/26|0,U=A%26;O[A]=k.words[z]>>>U&1}return O}(v);if(m.length===0)return new t(1);for(var b=this,g=0;g<m.length&&m[g]===0;g++,b=b.sqr());if(++g<m.length)for(var y=b.sqr();g<m.length;g++,y=y.sqr())m[g]!==0&&(b=b.mul(y));return b},t.prototype.iushln=function(v){o(typeof v=="number"&&v>=0);var m,b=v%26,g=(v-b)/26,y=67108863>>>26-b<<26-b;if(b!==0){var k=0;for(m=0;m<this.length;m++){var O=this.words[m]&y,A=(0|this.words[m])-O<<b;this.words[m]=A|k,k=O>>>26-b}k&&(this.words[m]=k,this.length++)}if(g!==0){for(m=this.length-1;m>=0;m--)this.words[m+g]=this.words[m];for(m=0;m<g;m++)this.words[m]=0;this.length+=g}return this._strip()},t.prototype.ishln=function(v){return o(this.negative===0),this.iushln(v)},t.prototype.iushrn=function(v,m,b){var g;o(typeof v=="number"&&v>=0),g=m?(m-m%26)/26:0;var y=v%26,k=Math.min((v-y)/26,this.length),O=67108863^67108863>>>y<<y,A=b;if(g-=k,g=Math.max(0,g),A){for(var z=0;z<k;z++)A.words[z]=this.words[z];A.length=k}if(k!==0)if(this.length>k)for(this.length-=k,z=0;z<this.length;z++)this.words[z]=this.words[z+k];else this.words[0]=0,this.length=1;var U=0;for(z=this.length-1;z>=0&&(U!==0||z>=g);z--){var X=0|this.words[z];this.words[z]=U<<26-y|X>>>y,U=X&O}return A&&U!==0&&(A.words[A.length++]=U),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},t.prototype.ishrn=function(v,m,b){return o(this.negative===0),this.iushrn(v,m,b)},t.prototype.shln=function(v){return this.clone().ishln(v)},t.prototype.ushln=function(v){return this.clone().iushln(v)},t.prototype.shrn=function(v){return this.clone().ishrn(v)},t.prototype.ushrn=function(v){return this.clone().iushrn(v)},t.prototype.testn=function(v){o(typeof v=="number"&&v>=0);var m=v%26,b=(v-m)/26,g=1<<m;return!(this.length<=b)&&!!(this.words[b]&g)},t.prototype.imaskn=function(v){o(typeof v=="number"&&v>=0);var m=v%26,b=(v-m)/26;if(o(this.negative===0,"imaskn works only with positive numbers"),this.length<=b)return this;if(m!==0&&b++,this.length=Math.min(b,this.length),m!==0){var g=67108863^67108863>>>m<<m;this.words[this.length-1]&=g}return this._strip()},t.prototype.maskn=function(v){return this.clone().imaskn(v)},t.prototype.iaddn=function(v){return o(typeof v=="number"),o(v<67108864),v<0?this.isubn(-v):this.negative!==0?this.length===1&&(0|this.words[0])<=v?(this.words[0]=v-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(v),this.negative=1,this):this._iaddn(v)},t.prototype._iaddn=function(v){this.words[0]+=v;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},t.prototype.isubn=function(v){if(o(typeof v=="number"),o(v<67108864),v<0)return this.iaddn(-v);if(this.negative!==0)return this.negative=0,this.iaddn(v),this.negative=1,this;if(this.words[0]-=v,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()},t.prototype.addn=function(v){return this.clone().iaddn(v)},t.prototype.subn=function(v){return this.clone().isubn(v)},t.prototype.iabs=function(){return this.negative=0,this},t.prototype.abs=function(){return this.clone().iabs()},t.prototype._ishlnsubmul=function(v,m,b){var g,y,k=v.length+b;this._expand(k);var O=0;for(g=0;g<v.length;g++){y=(0|this.words[g+b])+O;var A=(0|v.words[g])*m;O=((y-=67108863&A)>>26)-(A/67108864|0),this.words[g+b]=67108863&y}for(;g<this.length-b;g++)O=(y=(0|this.words[g+b])+O)>>26,this.words[g+b]=67108863&y;if(O===0)return this._strip();for(o(O===-1),O=0,g=0;g<this.length;g++)O=(y=-(0|this.words[g])+O)>>26,this.words[g]=67108863&y;return this.negative=1,this._strip()},t.prototype._wordDiv=function(v,m){var b=(this.length,v.length),g=this.clone(),y=v,k=0|y.words[y.length-1];(b=26-this._countBits(k))!==0&&(y=y.ushln(b),g.iushln(b),k=0|y.words[y.length-1]);var O,A=g.length-y.length;if(m!=="mod"){(O=new t(null)).length=A+1,O.words=new Array(O.length);for(var z=0;z<O.length;z++)O.words[z]=0}var U=g.clone()._ishlnsubmul(y,1,A);U.negative===0&&(g=U,O&&(O.words[A]=1));for(var X=A-1;X>=0;X--){var j=67108864*(0|g.words[y.length+X])+(0|g.words[y.length+X-1]);for(j=Math.min(j/k|0,67108863),g._ishlnsubmul(y,j,X);g.negative!==0;)j--,g.negative=0,g._ishlnsubmul(y,1,X),g.isZero()||(g.negative^=1);O&&(O.words[X]=j)}return O&&O._strip(),g._strip(),m!=="div"&&b!==0&&g.iushrn(b),{div:O||null,mod:g}},t.prototype.divmod=function(v,m,b){return o(!v.isZero()),this.isZero()?{div:new t(0),mod:new t(0)}:this.negative!==0&&v.negative===0?(k=this.neg().divmod(v,m),m!=="mod"&&(g=k.div.neg()),m!=="div"&&(y=k.mod.neg(),b&&y.negative!==0&&y.iadd(v)),{div:g,mod:y}):this.negative===0&&v.negative!==0?(k=this.divmod(v.neg(),m),m!=="mod"&&(g=k.div.neg()),{div:g,mod:k.mod}):this.negative&v.negative?(k=this.neg().divmod(v.neg(),m),m!=="div"&&(y=k.mod.neg(),b&&y.negative!==0&&y.isub(v)),{div:k.div,mod:y}):v.length>this.length||this.cmp(v)<0?{div:new t(0),mod:this}:v.length===1?m==="div"?{div:this.divn(v.words[0]),mod:null}:m==="mod"?{div:null,mod:new t(this.modrn(v.words[0]))}:{div:this.divn(v.words[0]),mod:new t(this.modrn(v.words[0]))}:this._wordDiv(v,m);var g,y,k},t.prototype.div=function(v){return this.divmod(v,"div",!1).div},t.prototype.mod=function(v){return this.divmod(v,"mod",!1).mod},t.prototype.umod=function(v){return this.divmod(v,"mod",!0).mod},t.prototype.divRound=function(v){var m=this.divmod(v);if(m.mod.isZero())return m.div;var b=m.div.negative!==0?m.mod.isub(v):m.mod,g=v.ushrn(1),y=v.andln(1),k=b.cmp(g);return k<0||y===1&&k===0?m.div:m.div.negative!==0?m.div.isubn(1):m.div.iaddn(1)},t.prototype.modrn=function(v){var m=v<0;m&&(v=-v),o(v<=67108863);for(var b=(1<<26)%v,g=0,y=this.length-1;y>=0;y--)g=(b*g+(0|this.words[y]))%v;return m?-g:g},t.prototype.modn=function(v){return this.modrn(v)},t.prototype.idivn=function(v){var m=v<0;m&&(v=-v),o(v<=67108863);for(var b=0,g=this.length-1;g>=0;g--){var y=(0|this.words[g])+67108864*b;this.words[g]=y/v|0,b=y%v}return this._strip(),m?this.ineg():this},t.prototype.divn=function(v){return this.clone().idivn(v)},t.prototype.egcd=function(v){o(v.negative===0),o(!v.isZero());var m=this,b=v.clone();m=m.negative!==0?m.umod(v):m.clone();for(var g=new t(1),y=new t(0),k=new t(0),O=new t(1),A=0;m.isEven()&&b.isEven();)m.iushrn(1),b.iushrn(1),++A;for(var z=b.clone(),U=m.clone();!m.isZero();){for(var X=0,j=1;!(m.words[0]&j)&&X<26;++X,j<<=1);if(X>0)for(m.iushrn(X);X-- >0;)(g.isOdd()||y.isOdd())&&(g.iadd(z),y.isub(U)),g.iushrn(1),y.iushrn(1);for(var V=0,E=1;!(b.words[0]&E)&&V<26;++V,E<<=1);if(V>0)for(b.iushrn(V);V-- >0;)(k.isOdd()||O.isOdd())&&(k.iadd(z),O.isub(U)),k.iushrn(1),O.iushrn(1);m.cmp(b)>=0?(m.isub(b),g.isub(k),y.isub(O)):(b.isub(m),k.isub(g),O.isub(y))}return{a:k,b:O,gcd:b.iushln(A)}},t.prototype._invmp=function(v){o(v.negative===0),o(!v.isZero());var m=this,b=v.clone();m=m.negative!==0?m.umod(v):m.clone();for(var g,y=new t(1),k=new t(0),O=b.clone();m.cmpn(1)>0&&b.cmpn(1)>0;){for(var A=0,z=1;!(m.words[0]&z)&&A<26;++A,z<<=1);if(A>0)for(m.iushrn(A);A-- >0;)y.isOdd()&&y.iadd(O),y.iushrn(1);for(var U=0,X=1;!(b.words[0]&X)&&U<26;++U,X<<=1);if(U>0)for(b.iushrn(U);U-- >0;)k.isOdd()&&k.iadd(O),k.iushrn(1);m.cmp(b)>=0?(m.isub(b),y.isub(k)):(b.isub(m),k.isub(y))}return(g=m.cmpn(1)===0?y:k).cmpn(0)<0&&g.iadd(v),g},t.prototype.gcd=function(v){if(this.isZero())return v.abs();if(v.isZero())return this.abs();var m=this.clone(),b=v.clone();m.negative=0,b.negative=0;for(var g=0;m.isEven()&&b.isEven();g++)m.iushrn(1),b.iushrn(1);for(;;){for(;m.isEven();)m.iushrn(1);for(;b.isEven();)b.iushrn(1);var y=m.cmp(b);if(y<0){var k=m;m=b,b=k}else if(y===0||b.cmpn(1)===0)break;m.isub(b)}return b.iushln(g)},t.prototype.invm=function(v){return this.egcd(v).a.umod(v)},t.prototype.isEven=function(){return(1&this.words[0])==0},t.prototype.isOdd=function(){return(1&this.words[0])==1},t.prototype.andln=function(v){return this.words[0]&v},t.prototype.bincn=function(v){o(typeof v=="number");var m=v%26,b=(v-m)/26,g=1<<m;if(this.length<=b)return this._expand(b+1),this.words[b]|=g,this;for(var y=g,k=b;y!==0&&k<this.length;k++){var O=0|this.words[k];y=(O+=y)>>>26,O&=67108863,this.words[k]=O}return y!==0&&(this.words[k]=y,this.length++),this},t.prototype.isZero=function(){return this.length===1&&this.words[0]===0},t.prototype.cmpn=function(v){var m,b=v<0;if(this.negative!==0&&!b)return-1;if(this.negative===0&&b)return 1;if(this._strip(),this.length>1)m=1;else{b&&(v=-v),o(v<=67108863,"Number is too big");var g=0|this.words[0];m=g===v?0:g<v?-1:1}return this.negative!==0?0|-m:m},t.prototype.cmp=function(v){if(this.negative!==0&&v.negative===0)return-1;if(this.negative===0&&v.negative!==0)return 1;var m=this.ucmp(v);return this.negative!==0?0|-m:m},t.prototype.ucmp=function(v){if(this.length>v.length)return 1;if(this.length<v.length)return-1;for(var m=0,b=this.length-1;b>=0;b--){var g=0|this.words[b],y=0|v.words[b];if(g!==y){g<y?m=-1:g>y&&(m=1);break}}return m},t.prototype.gtn=function(v){return this.cmpn(v)===1},t.prototype.gt=function(v){return this.cmp(v)===1},t.prototype.gten=function(v){return this.cmpn(v)>=0},t.prototype.gte=function(v){return this.cmp(v)>=0},t.prototype.ltn=function(v){return this.cmpn(v)===-1},t.prototype.lt=function(v){return this.cmp(v)===-1},t.prototype.lten=function(v){return this.cmpn(v)<=0},t.prototype.lte=function(v){return this.cmp(v)<=0},t.prototype.eqn=function(v){return this.cmpn(v)===0},t.prototype.eq=function(v){return this.cmp(v)===0},t.red=function(v){return new S(v)},t.prototype.toRed=function(v){return o(!this.red,"Already a number in reduction context"),o(this.negative===0,"red works only with positives"),v.convertTo(this)._forceRed(v)},t.prototype.fromRed=function(){return o(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},t.prototype._forceRed=function(v){return this.red=v,this},t.prototype.forceRed=function(v){return o(!this.red,"Already a number in reduction context"),this._forceRed(v)},t.prototype.redAdd=function(v){return o(this.red,"redAdd works only with red numbers"),this.red.add(this,v)},t.prototype.redIAdd=function(v){return o(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,v)},t.prototype.redSub=function(v){return o(this.red,"redSub works only with red numbers"),this.red.sub(this,v)},t.prototype.redISub=function(v){return o(this.red,"redISub works only with red numbers"),this.red.isub(this,v)},t.prototype.redShl=function(v){return o(this.red,"redShl works only with red numbers"),this.red.shl(this,v)},t.prototype.redMul=function(v){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.mul(this,v)},t.prototype.redIMul=function(v){return o(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.imul(this,v)},t.prototype.redSqr=function(){return o(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},t.prototype.redISqr=function(){return o(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},t.prototype.redSqrt=function(){return o(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},t.prototype.redInvm=function(){return o(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},t.prototype.redNeg=function(){return o(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},t.prototype.redPow=function(v){return o(this.red&&!v.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,v)};var F={k256:null,p224:null,p192:null,p25519:null};function I(v,m){this.name=v,this.p=new t(m,16),this.n=this.p.bitLength(),this.k=new t(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function P(){I.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function B(){I.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function $(){I.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function D(){I.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(v){if(typeof v=="string"){var m=t._prime(v);this.m=m.p,this.prime=m}else o(v.gtn(1),"modulus must be greater than 1"),this.m=v,this.prime=null}function T(v){S.call(this,v),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new t(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)}I.prototype._tmp=function(){var v=new t(null);return v.words=new Array(Math.ceil(this.n/13)),v},I.prototype.ireduce=function(v){var m,b=v;do this.split(b,this.tmp),m=(b=(b=this.imulK(b)).iadd(this.tmp)).bitLength();while(m>this.n);var g=m<this.n?-1:b.ucmp(this.p);return g===0?(b.words[0]=0,b.length=1):g>0?b.isub(this.p):b.strip!==void 0?b.strip():b._strip(),b},I.prototype.split=function(v,m){v.iushrn(this.n,0,m)},I.prototype.imulK=function(v){return v.imul(this.k)},r(P,I),P.prototype.split=function(v,m){for(var b=Math.min(v.length,9),g=0;g<b;g++)m.words[g]=v.words[g];if(m.length=b,v.length<=9)return v.words[0]=0,void(v.length=1);var y=v.words[9];for(m.words[m.length++]=4194303&y,g=10;g<v.length;g++){var k=0|v.words[g];v.words[g-10]=(4194303&k)<<4|y>>>22,y=k}y>>>=22,v.words[g-10]=y,y===0&&v.length>10?v.length-=10:v.length-=9},P.prototype.imulK=function(v){v.words[v.length]=0,v.words[v.length+1]=0,v.length+=2;for(var m=0,b=0;b<v.length;b++){var g=0|v.words[b];m+=977*g,v.words[b]=67108863&m,m=64*g+(m/67108864|0)}return v.words[v.length-1]===0&&(v.length--,v.words[v.length-1]===0&&v.length--),v},r(B,I),r($,I),r(D,I),D.prototype.imulK=function(v){for(var m=0,b=0;b<v.length;b++){var g=19*(0|v.words[b])+m,y=67108863&g;g>>>=26,v.words[b]=y,m=g}return m!==0&&(v.words[v.length++]=m),v},t._prime=function(v){if(F[v])return F[v];var m;if(v==="k256")m=new P;else if(v==="p224")m=new B;else if(v==="p192")m=new $;else{if(v!=="p25519")throw new Error("Unknown prime "+v);m=new D}return F[v]=m,m},S.prototype._verify1=function(v){o(v.negative===0,"red works only with positives"),o(v.red,"red works only with red numbers")},S.prototype._verify2=function(v,m){o((v.negative|m.negative)==0,"red works only with positives"),o(v.red&&v.red===m.red,"red works only with red numbers")},S.prototype.imod=function(v){return this.prime?this.prime.ireduce(v)._forceRed(this):(c(v,v.umod(this.m)._forceRed(this)),v)},S.prototype.neg=function(v){return v.isZero()?v.clone():this.m.sub(v)._forceRed(this)},S.prototype.add=function(v,m){this._verify2(v,m);var b=v.add(m);return b.cmp(this.m)>=0&&b.isub(this.m),b._forceRed(this)},S.prototype.iadd=function(v,m){this._verify2(v,m);var b=v.iadd(m);return b.cmp(this.m)>=0&&b.isub(this.m),b},S.prototype.sub=function(v,m){this._verify2(v,m);var b=v.sub(m);return b.cmpn(0)<0&&b.iadd(this.m),b._forceRed(this)},S.prototype.isub=function(v,m){this._verify2(v,m);var b=v.isub(m);return b.cmpn(0)<0&&b.iadd(this.m),b},S.prototype.shl=function(v,m){return this._verify1(v),this.imod(v.ushln(m))},S.prototype.imul=function(v,m){return this._verify2(v,m),this.imod(v.imul(m))},S.prototype.mul=function(v,m){return this._verify2(v,m),this.imod(v.mul(m))},S.prototype.isqr=function(v){return this.imul(v,v.clone())},S.prototype.sqr=function(v){return this.mul(v,v)},S.prototype.sqrt=function(v){if(v.isZero())return v.clone();var m=this.m.andln(3);if(o(m%2==1),m===3){var b=this.m.add(new t(1)).iushrn(2);return this.pow(v,b)}for(var g=this.m.subn(1),y=0;!g.isZero()&&g.andln(1)===0;)y++,g.iushrn(1);o(!g.isZero());var k=new t(1).toRed(this),O=k.redNeg(),A=this.m.subn(1).iushrn(1),z=this.m.bitLength();for(z=new t(2*z*z).toRed(this);this.pow(z,A).cmp(O)!==0;)z.redIAdd(O);for(var U=this.pow(z,g),X=this.pow(v,g.addn(1).iushrn(1)),j=this.pow(v,g),V=y;j.cmp(k)!==0;){for(var E=j,M=0;E.cmp(k)!==0;M++)E=E.redSqr();o(M<V);var L=this.pow(U,new t(1).iushln(V-M-1));X=X.redMul(L),U=L.redSqr(),j=j.redMul(U),V=M}return X},S.prototype.invm=function(v){var m=v._invmp(this.m);return m.negative!==0?(m.negative=0,this.imod(m).redNeg()):this.imod(m)},S.prototype.pow=function(v,m){if(m.isZero())return new t(1).toRed(this);if(m.cmpn(1)===0)return v.clone();var b=new Array(16);b[0]=new t(1).toRed(this),b[1]=v;for(var g=2;g<b.length;g++)b[g]=this.mul(b[g-1],v);var y=b[0],k=0,O=0,A=m.bitLength()%26;for(A===0&&(A=26),g=m.length-1;g>=0;g--){for(var z=m.words[g],U=A-1;U>=0;U--){var X=z>>U&1;y!==b[0]&&(y=this.sqr(y)),X!==0||k!==0?(k<<=1,k|=X,(++O===4||g===0&&U===0)&&(y=this.mul(y,b[k]),O=0,k=0)):O=0}A=26}return y},S.prototype.convertTo=function(v){var m=v.umod(this.m);return m===v?m.clone():m},S.prototype.convertFrom=function(v){var m=v.clone();return m.red=null,m},t.mont=function(v){return new T(v)},r(T,S),T.prototype.convertTo=function(v){return this.imod(v.ushln(this.shift))},T.prototype.convertFrom=function(v){var m=this.imod(v.mul(this.rinv));return m.red=null,m},T.prototype.imul=function(v,m){if(v.isZero()||m.isZero())return v.words[0]=0,v.length=1,v;var b=v.imul(m),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=b.isub(g).iushrn(this.shift),k=y;return y.cmp(this.m)>=0?k=y.isub(this.m):y.cmpn(0)<0&&(k=y.iadd(this.m)),k._forceRed(this)},T.prototype.mul=function(v,m){if(v.isZero()||m.isZero())return new t(0)._forceRed(this);var b=v.mul(m),g=b.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=b.isub(g).iushrn(this.shift),k=y;return y.cmp(this.m)>=0?k=y.isub(this.m):y.cmpn(0)<0&&(k=y.iadd(this.m)),k._forceRed(this)},T.prototype.invm=function(v){return this.imod(v._invmp(this.m).mul(this.r2))._forceRed(this)}})(C===void 0||C)},{buffer:188}],187:[function(s,C,_){var d;function a(r){this.rand=r}if(C.exports=function(r){return d||(d=new a(null)),d.generate(r)},C.exports.Rand=a,a.prototype.generate=function(r){return this._rand(r)},a.prototype._rand=function(r){if(this.rand.getBytes)return this.rand.getBytes(r);for(var t=new Uint8Array(r),e=0;e<t.length;e++)t[e]=this.rand.getByte();return t},typeof self=="object")self.crypto&&self.crypto.getRandomValues?a.prototype._rand=function(r){var t=new Uint8Array(r);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?a.prototype._rand=function(r){var t=new Uint8Array(r);return self.msCrypto.getRandomValues(t),t}:typeof window=="object"&&(a.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=s("crypto");if(typeof o.randomBytes!="function")throw new Error("Not supported");a.prototype._rand=function(r){return o.randomBytes(r)}}catch{}},{crypto:188}],188:[function(s,C,_){},{}],189:[function(s,C,_){var d=s("safe-buffer").Buffer;function a(n){d.isBuffer(n)||(n=d.from(n));for(var i=n.length/4|0,c=new Array(i),f=0;f<i;f++)c[f]=n.readUInt32BE(4*f);return c}function o(n){for(;0<n.length;n++)n[0]=0}function r(n,i,c,f,u){for(var p,h,w,x,R=c[0],N=c[1],F=c[2],I=c[3],P=n[0]^i[0],B=n[1]^i[1],$=n[2]^i[2],D=n[3]^i[3],S=4,T=1;T<u;T++)p=R[P>>>24]^N[B>>>16&255]^F[$>>>8&255]^I[255&D]^i[S++],h=R[B>>>24]^N[$>>>16&255]^F[D>>>8&255]^I[255&P]^i[S++],w=R[$>>>24]^N[D>>>16&255]^F[P>>>8&255]^I[255&B]^i[S++],x=R[D>>>24]^N[P>>>16&255]^F[B>>>8&255]^I[255&$]^i[S++],P=p,B=h,$=w,D=x;return p=(f[P>>>24]<<24|f[B>>>16&255]<<16|f[$>>>8&255]<<8|f[255&D])^i[S++],h=(f[B>>>24]<<24|f[$>>>16&255]<<16|f[D>>>8&255]<<8|f[255&P])^i[S++],w=(f[$>>>24]<<24|f[D>>>16&255]<<16|f[P>>>8&255]<<8|f[255&B])^i[S++],x=(f[D>>>24]<<24|f[P>>>16&255]<<16|f[B>>>8&255]<<8|f[255&$])^i[S++],[p>>>=0,h>>>=0,w>>>=0,x>>>=0]}var t=[0,1,2,4,8,16,32,64,128,27,54],e=function(){for(var n=new Array(256),i=0;i<256;i++)n[i]=i<128?i<<1:i<<1^283;for(var c=[],f=[],u=[[],[],[],[]],p=[[],[],[],[]],h=0,w=0,x=0;x<256;++x){var R=w^w<<1^w<<2^w<<3^w<<4;R=R>>>8^255&R^99,c[h]=R,f[R]=h;var N=n[h],F=n[N],I=n[F],P=257*n[R]^16843008*R;u[0][h]=P<<24|P>>>8,u[1][h]=P<<16|P>>>16,u[2][h]=P<<8|P>>>24,u[3][h]=P,P=16843009*I^65537*F^257*N^16843008*h,p[0][R]=P<<24|P>>>8,p[1][R]=P<<16|P>>>16,p[2][R]=P<<8|P>>>24,p[3][R]=P,h===0?h=w=1:(h=N^n[n[n[I^N]]],w^=n[n[w]])}return{SBOX:c,INV_SBOX:f,SUB_MIX:u,INV_SUB_MIX:p}}();function l(n){this._key=a(n),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var n=this._key,i=n.length,c=i+6,f=4*(c+1),u=[],p=0;p<i;p++)u[p]=n[p];for(p=i;p<f;p++){var h=u[p-1];p%i==0?(h=h<<8|h>>>24,h=e.SBOX[h>>>24]<<24|e.SBOX[h>>>16&255]<<16|e.SBOX[h>>>8&255]<<8|e.SBOX[255&h],h^=t[p/i|0]<<24):i>6&&p%i==4&&(h=e.SBOX[h>>>24]<<24|e.SBOX[h>>>16&255]<<16|e.SBOX[h>>>8&255]<<8|e.SBOX[255&h]),u[p]=u[p-i]^h}for(var w=[],x=0;x<f;x++){var R=f-x,N=u[R-(x%4?0:4)];w[x]=x<4||R<=4?N:e.INV_SUB_MIX[0][e.SBOX[N>>>24]]^e.INV_SUB_MIX[1][e.SBOX[N>>>16&255]]^e.INV_SUB_MIX[2][e.SBOX[N>>>8&255]]^e.INV_SUB_MIX[3][e.SBOX[255&N]]}this._nRounds=c,this._keySchedule=u,this._invKeySchedule=w},l.prototype.encryptBlockRaw=function(n){return r(n=a(n),this._keySchedule,e.SUB_MIX,e.SBOX,this._nRounds)},l.prototype.encryptBlock=function(n){var i=this.encryptBlockRaw(n),c=d.allocUnsafe(16);return c.writeUInt32BE(i[0],0),c.writeUInt32BE(i[1],4),c.writeUInt32BE(i[2],8),c.writeUInt32BE(i[3],12),c},l.prototype.decryptBlock=function(n){var i=(n=a(n))[1];n[1]=n[3],n[3]=i;var c=r(n,this._invKeySchedule,e.INV_SUB_MIX,e.INV_SBOX,this._nRounds),f=d.allocUnsafe(16);return f.writeUInt32BE(c[0],0),f.writeUInt32BE(c[3],4),f.writeUInt32BE(c[2],8),f.writeUInt32BE(c[1],12),f},l.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},C.exports.AES=l},{"safe-buffer":494}],190:[function(s,C,_){var d=s("./aes"),a=s("safe-buffer").Buffer,o=s("cipher-base"),r=s("inherits"),t=s("./ghash"),e=s("buffer-xor"),l=s("./incr32");function n(i,c,f,u){o.call(this);var p=a.alloc(4,0);this._cipher=new d.AES(c);var h=this._cipher.encryptBlock(p);this._ghash=new t(h),f=function(w,x,R){if(x.length===12)return w._finID=a.concat([x,a.from([0,0,0,1])]),a.concat([x,a.from([0,0,0,2])]);var N=new t(R),F=x.length,I=F%16;N.update(x),I&&(I=16-I,N.update(a.alloc(I,0))),N.update(a.alloc(8,0));var P=8*F,B=a.alloc(8);B.writeUIntBE(P,0,8),N.update(B),w._finID=N.state;var $=a.from(w._finID);return l($),$}(this,f,h),this._prev=a.from(f),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=u,this._alen=0,this._len=0,this._mode=i,this._authTag=null,this._called=!1}r(n,o),n.prototype._update=function(i){if(!this._called&&this._alen){var c=16-this._alen%16;c<16&&(c=a.alloc(c,0),this._ghash.update(c))}this._called=!0;var f=this._mode.encrypt(this,i);return this._decrypt?this._ghash.update(i):this._ghash.update(f),this._len+=i.length,f},n.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var i=e(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(c,f){var u=0;c.length!==f.length&&u++;for(var p=Math.min(c.length,f.length),h=0;h<p;++h)u+=c[h]^f[h];return u}(i,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=i,this._cipher.scrub()},n.prototype.getAuthTag=function(){if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},n.prototype.setAuthTag=function(i){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=i},n.prototype.setAAD=function(i){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(i),this._alen+=i.length},C.exports=n},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(s,C,_){var d=s("./encrypter"),a=s("./decrypter"),o=s("./modes/list.json");_.createCipher=_.Cipher=d.createCipher,_.createCipheriv=_.Cipheriv=d.createCipheriv,_.createDecipher=_.Decipher=a.createDecipher,_.createDecipheriv=_.Decipheriv=a.createDecipheriv,_.listCiphers=_.getCiphers=function(){return Object.keys(o)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(s,C,_){var d=s("./authCipher"),a=s("safe-buffer").Buffer,o=s("./modes"),r=s("./streamCipher"),t=s("cipher-base"),e=s("./aes"),l=s("evp_bytestokey");function n(f,u,p){t.call(this),this._cache=new i,this._last=void 0,this._cipher=new e.AES(u),this._prev=a.from(p),this._mode=f,this._autopadding=!0}function i(){this.cache=a.allocUnsafe(0)}function c(f,u,p){var h=o[f.toLowerCase()];if(!h)throw new TypeError("invalid suite type");if(typeof p=="string"&&(p=a.from(p)),h.mode!=="GCM"&&p.length!==h.iv)throw new TypeError("invalid iv length "+p.length);if(typeof u=="string"&&(u=a.from(u)),u.length!==h.key/8)throw new TypeError("invalid key length "+u.length);return h.type==="stream"?new r(h.module,u,p,!0):h.type==="auth"?new d(h.module,u,p,!0):new n(h.module,u,p)}s("inherits")(n,t),n.prototype._update=function(f){var u,p;this._cache.add(f);for(var h=[];u=this._cache.get(this._autopadding);)p=this._mode.decrypt(this,u),h.push(p);return a.concat(h)},n.prototype._final=function(){var f=this._cache.flush();if(this._autopadding)return function(u){var p=u[15];if(p<1||p>16)throw new Error("unable to decrypt data");for(var h=-1;++h<p;)if(u[h+(16-p)]!==p)throw new Error("unable to decrypt data");if(p!==16)return u.slice(0,16-p)}(this._mode.decrypt(this,f));if(f)throw new Error("data not multiple of block length")},n.prototype.setAutoPadding=function(f){return this._autopadding=!!f,this},i.prototype.add=function(f){this.cache=a.concat([this.cache,f])},i.prototype.get=function(f){var u;if(f){if(this.cache.length>16)return u=this.cache.slice(0,16),this.cache=this.cache.slice(16),u}else if(this.cache.length>=16)return u=this.cache.slice(0,16),this.cache=this.cache.slice(16),u;return null},i.prototype.flush=function(){if(this.cache.length)return this.cache},_.createDecipher=function(f,u){var p=o[f.toLowerCase()];if(!p)throw new TypeError("invalid suite type");var h=l(u,!1,p.key,p.iv);return c(f,h.key,h.iv)},_.createDecipheriv=c},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(s,C,_){var d=s("./modes"),a=s("./authCipher"),o=s("safe-buffer").Buffer,r=s("./streamCipher"),t=s("cipher-base"),e=s("./aes"),l=s("evp_bytestokey");function n(u,p,h){t.call(this),this._cache=new c,this._cipher=new e.AES(p),this._prev=o.from(h),this._mode=u,this._autopadding=!0}s("inherits")(n,t),n.prototype._update=function(u){var p,h;this._cache.add(u);for(var w=[];p=this._cache.get();)h=this._mode.encrypt(this,p),w.push(h);return o.concat(w)};var i=o.alloc(16,16);function c(){this.cache=o.allocUnsafe(0)}function f(u,p,h){var w=d[u.toLowerCase()];if(!w)throw new TypeError("invalid suite type");if(typeof p=="string"&&(p=o.from(p)),p.length!==w.key/8)throw new TypeError("invalid key length "+p.length);if(typeof h=="string"&&(h=o.from(h)),w.mode!=="GCM"&&h.length!==w.iv)throw new TypeError("invalid iv length "+h.length);return w.type==="stream"?new r(w.module,p,h):w.type==="auth"?new a(w.module,p,h):new n(w.module,p,h)}n.prototype._final=function(){var u=this._cache.flush();if(this._autopadding)return u=this._mode.encrypt(this,u),this._cipher.scrub(),u;if(!u.equals(i))throw this._cipher.scrub(),new Error("data not multiple of block length")},n.prototype.setAutoPadding=function(u){return this._autopadding=!!u,this},c.prototype.add=function(u){this.cache=o.concat([this.cache,u])},c.prototype.get=function(){if(this.cache.length>15){var u=this.cache.slice(0,16);return this.cache=this.cache.slice(16),u}return null},c.prototype.flush=function(){for(var u=16-this.cache.length,p=o.allocUnsafe(u),h=-1;++h<u;)p.writeUInt8(u,h);return o.concat([this.cache,p])},_.createCipheriv=f,_.createCipher=function(u,p){var h=d[u.toLowerCase()];if(!h)throw new TypeError("invalid suite type");var w=l(p,!1,h.key,h.iv);return f(u,w.key,w.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(s,C,_){var d=s("safe-buffer").Buffer,a=d.alloc(16,0);function o(t){var e=d.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function r(t){this.h=t,this.state=d.alloc(16,0),this.cache=d.allocUnsafe(0)}r.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},r.prototype._multiply=function(){for(var t,e,l,n=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],i=[0,0,0,0],c=-1;++c<128;){for(this.state[~~(c/8)]&1<<7-c%8&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),l=(1&n[3])!=0,e=3;e>0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,l&&(n[0]=n[0]^225<<24)}this.state=o(i)},r.prototype.update=function(t){var e;for(this.cache=d.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},r.prototype.final=function(t,e){return this.cache.length&&this.ghash(d.concat([this.cache,a],16)),this.ghash(o([0,t,0,e])),this.state},C.exports=r},{"safe-buffer":494}],195:[function(s,C,_){C.exports=function(d){for(var a,o=d.length;o--;){if((a=d.readUInt8(o))!==255){a++,d.writeUInt8(a,o);break}d.writeUInt8(0,o)}}},{}],196:[function(s,C,_){var d=s("buffer-xor");_.encrypt=function(a,o){var r=d(o,a._prev);return a._prev=a._cipher.encryptBlock(r),a._prev},_.decrypt=function(a,o){var r=a._prev;a._prev=o;var t=a._cipher.decryptBlock(o);return d(t,r)}},{"buffer-xor":219}],197:[function(s,C,_){var d=s("safe-buffer").Buffer,a=s("buffer-xor");function o(r,t,e){var l=t.length,n=a(t,r._cache);return r._cache=r._cache.slice(l),r._prev=d.concat([r._prev,e?t:n]),n}_.encrypt=function(r,t,e){for(var l,n=d.allocUnsafe(0);t.length;){if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=d.allocUnsafe(0)),!(r._cache.length<=t.length)){n=d.concat([n,o(r,t,e)]);break}l=r._cache.length,n=d.concat([n,o(r,t.slice(0,l),e)]),t=t.slice(l)}return n}},{"buffer-xor":219,"safe-buffer":494}],198:[function(s,C,_){var d=s("safe-buffer").Buffer;function a(r,t,e){for(var l,n,i=-1,c=0;++i<8;)l=t&1<<7-i?128:0,c+=(128&(n=r._cipher.encryptBlock(r._prev)[0]^l))>>i%8,r._prev=o(r._prev,e?l:n);return c}function o(r,t){var e=r.length,l=-1,n=d.allocUnsafe(r.length);for(r=d.concat([r,d.from([t])]);++l<e;)n[l]=r[l]<<1|r[l+1]>>7;return n}_.encrypt=function(r,t,e){for(var l=t.length,n=d.allocUnsafe(l),i=-1;++i<l;)n[i]=a(r,t[i],e);return n}},{"safe-buffer":494}],199:[function(s,C,_){var d=s("safe-buffer").Buffer;function a(o,r,t){var e=o._cipher.encryptBlock(o._prev)[0]^r;return o._prev=d.concat([o._prev.slice(1),d.from([t?r:e])]),e}_.encrypt=function(o,r,t){for(var e=r.length,l=d.allocUnsafe(e),n=-1;++n<e;)l[n]=a(o,r[n],t);return l}},{"safe-buffer":494}],200:[function(s,C,_){var d=s("buffer-xor"),a=s("safe-buffer").Buffer,o=s("../incr32");function r(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}_.encrypt=function(t,e){var l=Math.ceil(e.length/16),n=t._cache.length;t._cache=a.concat([t._cache,a.allocUnsafe(16*l)]);for(var i=0;i<l;i++){var c=r(t),f=n+16*i;t._cache.writeUInt32BE(c[0],f+0),t._cache.writeUInt32BE(c[1],f+4),t._cache.writeUInt32BE(c[2],f+8),t._cache.writeUInt32BE(c[3],f+12)}var u=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),d(e,u)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(s,C,_){_.encrypt=function(d,a){return d._cipher.encryptBlock(a)},_.decrypt=function(d,a){return d._cipher.decryptBlock(a)}},{}],202:[function(s,C,_){var d={ECB:s("./ecb"),CBC:s("./cbc"),CFB:s("./cfb"),CFB8:s("./cfb8"),CFB1:s("./cfb1"),OFB:s("./ofb"),CTR:s("./ctr"),GCM:s("./ctr")},a=s("./list.json");for(var o in a)a[o].module=d[a[o].mode];C.exports=a},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(s,C,_){C.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(s,C,_){(function(d){(function(){var a=s("buffer-xor");function o(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}_.encrypt=function(r,t){for(;r._cache.length<t.length;)r._cache=d.concat([r._cache,o(r)]);var e=r._cache.slice(0,t.length);return r._cache=r._cache.slice(t.length),a(t,e)}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(s,C,_){var d=s("./aes"),a=s("safe-buffer").Buffer,o=s("cipher-base");function r(t,e,l,n){o.call(this),this._cipher=new d.AES(e),this._prev=a.from(l),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=n,this._mode=t}s("inherits")(r,o),r.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},r.prototype._final=function(){this._cipher.scrub()},C.exports=r},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(s,C,_){var d=s("browserify-des"),a=s("browserify-aes/browser"),o=s("browserify-aes/modes"),r=s("browserify-des/modes"),t=s("evp_bytestokey");function e(n,i,c){if(n=n.toLowerCase(),o[n])return a.createCipheriv(n,i,c);if(r[n])return new d({key:i,iv:c,mode:n});throw new TypeError("invalid suite type")}function l(n,i,c){if(n=n.toLowerCase(),o[n])return a.createDecipheriv(n,i,c);if(r[n])return new d({key:i,iv:c,mode:n,decrypt:!0});throw new TypeError("invalid suite type")}_.createCipher=_.Cipher=function(n,i){var c,f;if(n=n.toLowerCase(),o[n])c=o[n].key,f=o[n].iv;else{if(!r[n])throw new TypeError("invalid suite type");c=8*r[n].key,f=r[n].iv}var u=t(i,!1,c,f);return e(n,u.key,u.iv)},_.createCipheriv=_.Cipheriv=e,_.createDecipher=_.Decipher=function(n,i){var c,f;if(n=n.toLowerCase(),o[n])c=o[n].key,f=o[n].iv;else{if(!r[n])throw new TypeError("invalid suite type");c=8*r[n].key,f=r[n].iv}var u=t(i,!1,c,f);return l(n,u.key,u.iv)},_.createDecipheriv=_.Decipheriv=l,_.listCiphers=_.getCiphers=function(){return Object.keys(r).concat(a.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(s,C,_){var d=s("cipher-base"),a=s("des.js"),o=s("inherits"),r=s("safe-buffer").Buffer,t={"des-ede3-cbc":a.CBC.instantiate(a.EDE),"des-ede3":a.EDE,"des-ede-cbc":a.CBC.instantiate(a.EDE),"des-ede":a.EDE,"des-cbc":a.CBC.instantiate(a.DES),"des-ecb":a.DES};function e(l){d.call(this);var n,i=l.mode.toLowerCase(),c=t[i];n=l.decrypt?"decrypt":"encrypt";var f=l.key;r.isBuffer(f)||(f=r.from(f)),i!=="des-ede"&&i!=="des-ede-cbc"||(f=r.concat([f,f.slice(0,8)]));var u=l.iv;r.isBuffer(u)||(u=r.from(u)),this._des=c.create({key:f,iv:u,type:n})}t.des=t["des-cbc"],t.des3=t["des-ede3-cbc"],C.exports=e,o(e,d),e.prototype._update=function(l){return r.from(this._des.update(l))},e.prototype._final=function(){return r.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(s,C,_){_["des-ecb"]={key:8,iv:0},_["des-cbc"]=_.des={key:8,iv:8},_["des-ede3-cbc"]=_.des3={key:24,iv:8},_["des-ede3"]={key:24,iv:0},_["des-ede-cbc"]={key:16,iv:8},_["des-ede"]={key:16,iv:0}},{}],209:[function(s,C,_){(function(d){(function(){var a=s("bn.js"),o=s("randombytes");function r(e){var l,n=e.modulus.byteLength();do l=new a(o(n));while(l.cmp(e.modulus)>=0||!l.umod(e.prime1)||!l.umod(e.prime2));return l}function t(e,l){var n=function(F){var I=r(F);return{blinder:I.toRed(a.mont(F.modulus)).redPow(new a(F.publicExponent)).fromRed(),unblinder:I.invm(F.modulus)}}(l),i=l.modulus.byteLength(),c=new a(e).mul(n.blinder).umod(l.modulus),f=c.toRed(a.mont(l.prime1)),u=c.toRed(a.mont(l.prime2)),p=l.coefficient,h=l.prime1,w=l.prime2,x=f.redPow(l.exponent1).fromRed(),R=u.redPow(l.exponent2).fromRed(),N=x.isub(R).imul(p).umod(h).imul(w);return R.iadd(N).imul(n.unblinder).umod(l.modulus).toArrayLike(d,"be",i)}t.getr=r,C.exports=t}).call(this)}).call(this,s("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(s,C,_){C.exports=s("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(s,C,_){C.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(s,C,_){C.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(s,C,_){var d=s("safe-buffer").Buffer,a=s("create-hash"),o=s("readable-stream"),r=s("inherits"),t=s("./sign"),e=s("./verify"),l=s("./algorithms.json");function n(u){o.Writable.call(this);var p=l[u];if(!p)throw new Error("Unknown message digest");this._hashType=p.hash,this._hash=a(p.hash),this._tag=p.id,this._signType=p.sign}function i(u){o.Writable.call(this);var p=l[u];if(!p)throw new Error("Unknown message digest");this._hash=a(p.hash),this._tag=p.id,this._signType=p.sign}function c(u){return new n(u)}function f(u){return new i(u)}Object.keys(l).forEach(function(u){l[u].id=d.from(l[u].id,"hex"),l[u.toLowerCase()]=l[u]}),r(n,o.Writable),n.prototype._write=function(u,p,h){this._hash.update(u),h()},n.prototype.update=function(u,p){return typeof u=="string"&&(u=d.from(u,p)),this._hash.update(u),this},n.prototype.sign=function(u,p){this.end();var h=this._hash.digest(),w=t(h,u,this._hashType,this._signType,this._tag);return p?w.toString(p):w},r(i,o.Writable),i.prototype._write=function(u,p,h){this._hash.update(u),h()},i.prototype.update=function(u,p){return typeof u=="string"&&(u=d.from(u,p)),this._hash.update(u),this},i.prototype.verify=function(u,p,h){typeof p=="string"&&(p=d.from(p,h)),this.end();var w=this._hash.digest();return e(p,w,u,this._signType,this._tag)},C.exports={Sign:c,Verify:f,createSign:c,createVerify:f}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(s,C,_){var d=s("safe-buffer").Buffer,a=s("create-hmac"),o=s("browserify-rsa"),r=s("elliptic").ec,t=s("bn.js"),e=s("parse-asn1"),l=s("./curves.json");function n(u,p,h,w){if((u=d.from(u.toArray())).length<p.byteLength()){var x=d.alloc(p.byteLength()-u.length);u=d.concat([x,u])}var R=h.length,N=function(P,B){P=(P=i(P,B)).mod(B);var $=d.from(P.toArray());if($.length<B.byteLength()){var D=d.alloc(B.byteLength()-$.length);$=d.concat([D,$])}return $}(h,p),F=d.alloc(R);F.fill(1);var I=d.alloc(R);return I=a(w,I).update(F).update(d.from([0])).update(u).update(N).digest(),F=a(w,I).update(F).digest(),{k:I=a(w,I).update(F).update(d.from([1])).update(u).update(N).digest(),v:F=a(w,I).update(F).digest()}}function i(u,p){var h=new t(u),w=(u.length<<3)-p.bitLength();return w>0&&h.ishrn(w),h}function c(u,p,h){var w,x;do{for(w=d.alloc(0);8*w.length<u.bitLength();)p.v=a(h,p.k).update(p.v).digest(),w=d.concat([w,p.v]);x=i(w,u),p.k=a(h,p.k).update(p.v).update(d.from([0])).digest(),p.v=a(h,p.k).update(p.v).digest()}while(x.cmp(u)!==-1);return x}function f(u,p,h,w){return u.toRed(t.mont(h)).redPow(p).fromRed().mod(w)}C.exports=function(u,p,h,w,x){var R=e(p);if(R.curve){if(w!=="ecdsa"&&w!=="ecdsa/rsa")throw new Error("wrong private key type");return function(P,B){var $=l[B.curve.join(".")];if(!$)throw new Error("unknown curve "+B.curve.join("."));var D=new r($).keyFromPrivate(B.privateKey).sign(P);return d.from(D.toDER())}(u,R)}if(R.type==="dsa"){if(w!=="dsa")throw new Error("wrong private key type");return function(P,B,$){for(var D,S=B.params.priv_key,T=B.params.p,v=B.params.q,m=B.params.g,b=new t(0),g=i(P,v).mod(v),y=!1,k=n(S,v,P,$);y===!1;)D=c(v,k,$),b=f(m,D,T,v),(y=D.invm(v).imul(g.add(S.mul(b))).mod(v)).cmpn(0)===0&&(y=!1,b=new t(0));return function(O,A){O=O.toArray(),A=A.toArray(),128&O[0]&&(O=[0].concat(O)),128&A[0]&&(A=[0].concat(A));var z=[48,O.length+A.length+4,2,O.length];return z=z.concat(O,[2,A.length],A),d.from(z)}(b,y)}(u,R,h)}if(w!=="rsa"&&w!=="ecdsa/rsa")throw new Error("wrong private key type");u=d.concat([x,u]);for(var N=R.modulus.byteLength(),F=[0,1];u.length+F.length+1<N;)F.push(255);F.push(0);for(var I=-1;++I<u.length;)F.push(u[I]);return o(F,R)},C.exports.getKey=n,C.exports.makeKey=c},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(s,C,_){var d=s("safe-buffer").Buffer,a=s("bn.js"),o=s("elliptic").ec,r=s("parse-asn1"),t=s("./curves.json");function e(l,n){if(l.cmpn(0)<=0)throw new Error("invalid sig");if(l.cmp(n)>=n)throw new Error("invalid sig")}C.exports=function(l,n,i,c,f){var u=r(i);if(u.type==="ec"){if(c!=="ecdsa"&&c!=="ecdsa/rsa")throw new Error("wrong public key type");return function(F,I,P){var B=t[P.data.algorithm.curve.join(".")];if(!B)throw new Error("unknown curve "+P.data.algorithm.curve.join("."));var $=new o(B),D=P.data.subjectPrivateKey.data;return $.verify(I,F,D)}(l,n,u)}if(u.type==="dsa"){if(c!=="dsa")throw new Error("wrong public key type");return function(F,I,P){var B=P.data.p,$=P.data.q,D=P.data.g,S=P.data.pub_key,T=r.signature.decode(F,"der"),v=T.s,m=T.r;e(v,$),e(m,$);var b=a.mont(B),g=v.invm($);return D.toRed(b).redPow(new a(I).mul(g).mod($)).fromRed().mul(S.toRed(b).redPow(m.mul(g).mod($)).fromRed()).mod(B).mod($).cmp(m)===0}(l,n,u)}if(c!=="rsa"&&c!=="ecdsa/rsa")throw new Error("wrong public key type");n=d.concat([f,n]);for(var p=u.modulus.byteLength(),h=[1],w=0;n.length+h.length+2<p;)h.push(255),w++;h.push(0);for(var x=-1;++x<n.length;)h.push(n[x]);h=d.from(h);var R=a.mont(u.modulus);l=(l=new a(l).toRed(R)).redPow(new a(u.publicExponent)),l=d.from(l.fromRed().toArray());var N=w<8?1:0;for(p=Math.min(l.length,h.length),l.length!==h.length&&(N=1),x=-1;++x<p;)N|=l[x]^h[x];return N===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(s,C,_){},{}],217:[function(s,C,_){var d=s("buffer"),a=d.Buffer;function o(t,e){for(var l in t)e[l]=t[l]}function r(t,e,l){return a(t,e,l)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?C.exports=d:(o(d,_),_.Buffer=r),o(a,r),r.from=function(t,e,l){if(typeof t=="number")throw new TypeError("Argument must not be a number");return a(t,e,l)},r.alloc=function(t,e,l){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=a(t);return e!==void 0?typeof l=="string"?n.fill(e,l):n.fill(e):n.fill(0),n},r.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return a(t)},r.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(t)}},{buffer:220}],218:[function(s,C,_){var d=s("safe-buffer").Buffer,a=d.isEncoding||function(u){switch((u=""+u)&&u.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 o(u){var p;switch(this.encoding=function(h){var w=function(x){if(!x)return"utf8";for(var R;;)switch(x){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 x;default:if(R)return;x=(""+x).toLowerCase(),R=!0}}(h);if(typeof w!="string"&&(d.isEncoding===a||!a(h)))throw new Error("Unknown encoding: "+h);return w||h}(u),this.encoding){case"utf16le":this.text=e,this.end=l,p=4;break;case"utf8":this.fillLast=t,p=4;break;case"base64":this.text=n,this.end=i,p=3;break;default:return this.write=c,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=d.allocUnsafe(p)}function r(u){return u<=127?0:u>>5==6?2:u>>4==14?3:u>>3==30?4:u>>6==2?-1:-2}function t(u){var p=this.lastTotal-this.lastNeed,h=function(w,x,R){if((192&x[0])!=128)return w.lastNeed=0,"�";if(w.lastNeed>1&&x.length>1){if((192&x[1])!=128)return w.lastNeed=1,"�";if(w.lastNeed>2&&x.length>2&&(192&x[2])!=128)return w.lastNeed=2,"�"}}(this,u);return h!==void 0?h:this.lastNeed<=u.length?(u.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(u.copy(this.lastChar,p,0,u.length),void(this.lastNeed-=u.length))}function e(u,p){if((u.length-p)%2==0){var h=u.toString("utf16le",p);if(h){var w=h.charCodeAt(h.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],h.slice(0,-1)}return h}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",p,u.length-1)}function l(u){var p=u&&u.length?this.write(u):"";if(this.lastNeed){var h=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,h)}return p}function n(u,p){var h=(u.length-p)%3;return h===0?u.toString("base64",p):(this.lastNeed=3-h,this.lastTotal=3,h===1?this.lastChar[0]=u[u.length-1]:(this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1]),u.toString("base64",p,u.length-h))}function i(u){var p=u&&u.length?this.write(u):"";return this.lastNeed?p+this.lastChar.toString("base64",0,3-this.lastNeed):p}function c(u){return u.toString(this.encoding)}function f(u){return u&&u.length?this.write(u):""}_.StringDecoder=o,o.prototype.write=function(u){if(u.length===0)return"";var p,h;if(this.lastNeed){if((p=this.fillLast(u))===void 0)return"";h=this.lastNeed,this.lastNeed=0}else h=0;return h<u.length?p?p+this.text(u,h):this.text(u,h):p||""},o.prototype.end=function(u){var p=u&&u.length?this.write(u):"";return this.lastNeed?p+"�":p},o.prototype.text=function(u,p){var h=function(x,R,N){var F=R.length-1;if(F<N)return 0;var I=r(R[F]);return I>=0?(I>0&&(x.lastNeed=I-1),I):--F<N||I===-2?0:(I=r(R[F]))>=0?(I>0&&(x.lastNeed=I-2),I):--F<N||I===-2?0:(I=r(R[F]))>=0?(I>0&&(I===2?I=0:x.lastNeed=I-3),I):0}(this,u,p);if(!this.lastNeed)return u.toString("utf8",p);this.lastTotal=h;var w=u.length-(h-this.lastNeed);return u.copy(this.lastChar,0,w),u.toString("utf8",p,w)},o.prototype.fillLast=function(u){if(this.lastNeed<=u.length)return u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,this.lastTotal-this.lastNeed,0,u.length),this.lastNeed-=u.length}},{"safe-buffer":217}],219:[function(s,C,_){(function(d){(function(){C.exports=function(a,o){for(var r=Math.min(a.length,o.length),t=new d(r),e=0;e<r;++e)t[e]=a[e]^o[e];return t}}).call(this)}).call(this,s("buffer").Buffer)},{buffer:220}],220:[function(s,C,_){(function(d){(function(){var a=s("base64-js"),o=s("ieee754");_.Buffer=t,_.SlowBuffer=function(E){return+E!=E&&(E=0),t.alloc(+E)},_.INSPECT_MAX_BYTES=50;function r(E){if(E>2147483647)throw new RangeError('The value "'+E+'" is invalid for option "size"');var M=new Uint8Array(E);return M.__proto__=t.prototype,M}function t(E,M,L){if(typeof E=="number"){if(typeof M=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return n(E)}return e(E,M,L)}function e(E,M,L){if(typeof E=="string")return function(W,K){if(typeof K=="string"&&K!==""||(K="utf8"),!t.isEncoding(K))throw new TypeError("Unknown encoding: "+K);var rt=0|f(W,K),et=r(rt),Y=et.write(W,K);return Y!==rt&&(et=et.slice(0,Y)),et}(E,M);if(ArrayBuffer.isView(E))return i(E);if(E==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E);if(j(E,ArrayBuffer)||E&&j(E.buffer,ArrayBuffer))return function(W,K,rt){if(K<0||W.byteLength<K)throw new RangeError('"offset" is outside of buffer bounds');if(W.byteLength<K+(rt||0))throw new RangeError('"length" is outside of buffer bounds');var et;return et=K===void 0&&rt===void 0?new Uint8Array(W):rt===void 0?new Uint8Array(W,K):new Uint8Array(W,K,rt),et.__proto__=t.prototype,et}(E,M,L);if(typeof E=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var q=E.valueOf&&E.valueOf();if(q!=null&&q!==E)return t.from(q,M,L);var Z=function(W){if(t.isBuffer(W)){var K=0|c(W.length),rt=r(K);return rt.length===0||W.copy(rt,0,0,K),rt}if(W.length!==void 0)return typeof W.length!="number"||V(W.length)?r(0):i(W);if(W.type==="Buffer"&&Array.isArray(W.data))return i(W.data)}(E);if(Z)return Z;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof E[Symbol.toPrimitive]=="function")return t.from(E[Symbol.toPrimitive]("string"),M,L);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof E)}function l(E){if(typeof E!="number")throw new TypeError('"size" argument must be of type number');if(E<0)throw new RangeError('The value "'+E+'" is invalid for option "size"')}function n(E){return l(E),r(E<0?0:0|c(E))}function i(E){for(var M=E.length<0?0:0|c(E.length),L=r(M),q=0;q<M;q+=1)L[q]=255&E[q];return L}function c(E){if(E>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|E}function f(E,M){if(t.isBuffer(E))return E.length;if(ArrayBuffer.isView(E)||j(E,ArrayBuffer))return E.byteLength;if(typeof E!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof E);var L=E.length,q=arguments.length>2&&arguments[2]===!0;if(!q&&L===0)return 0;for(var Z=!1;;)switch(M){case"ascii":case"latin1":case"binary":return L;case"utf8":case"utf-8":return z(E).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*L;case"hex":return L>>>1;case"base64":return U(E).length;default:if(Z)return q?-1:z(E).length;M=(""+M).toLowerCase(),Z=!0}}function u(E,M,L){var q=!1;if((M===void 0||M<0)&&(M=0),M>this.length||((L===void 0||L>this.length)&&(L=this.length),L<=0)||(L>>>=0)<=(M>>>=0))return"";for(E||(E="utf8");;)switch(E){case"hex":return T(this,M,L);case"utf8":case"utf-8":return $(this,M,L);case"ascii":return D(this,M,L);case"latin1":case"binary":return S(this,M,L);case"base64":return B(this,M,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v(this,M,L);default:if(q)throw new TypeError("Unknown encoding: "+E);E=(E+"").toLowerCase(),q=!0}}function p(E,M,L){var q=E[M];E[M]=E[L],E[L]=q}function h(E,M,L,q,Z){if(E.length===0)return-1;if(typeof L=="string"?(q=L,L=0):L>2147483647?L=2147483647:L<-2147483648&&(L=-2147483648),V(L=+L)&&(L=Z?0:E.length-1),L<0&&(L=E.length+L),L>=E.length){if(Z)return-1;L=E.length-1}else if(L<0){if(!Z)return-1;L=0}if(typeof M=="string"&&(M=t.from(M,q)),t.isBuffer(M))return M.length===0?-1:w(E,M,L,q,Z);if(typeof M=="number")return M&=255,typeof Uint8Array.prototype.indexOf=="function"?Z?Uint8Array.prototype.indexOf.call(E,M,L):Uint8Array.prototype.lastIndexOf.call(E,M,L):w(E,[M],L,q,Z);throw new TypeError("val must be string, number or Buffer")}function w(E,M,L,q,Z){var W,K=1,rt=E.length,et=M.length;if(q!==void 0&&((q=String(q).toLowerCase())==="ucs2"||q==="ucs-2"||q==="utf16le"||q==="utf-16le")){if(E.length<2||M.length<2)return-1;K=2,rt/=2,et/=2,L/=2}function Y(it,ot){return K===1?it[ot]:it.readUInt16BE(ot*K)}if(Z){var Q=-1;for(W=L;W<rt;W++)if(Y(E,W)===Y(M,Q===-1?0:W-Q)){if(Q===-1&&(Q=W),W-Q+1===et)return Q*K}else Q!==-1&&(W-=W-Q),Q=-1}else for(L+et>rt&&(L=rt-et),W=L;W>=0;W--){for(var J=!0,st=0;st<et;st++)if(Y(E,W+st)!==Y(M,st)){J=!1;break}if(J)return W}return-1}function x(E,M,L,q){L=Number(L)||0;var Z=E.length-L;q?(q=Number(q))>Z&&(q=Z):q=Z;var W=M.length;q>W/2&&(q=W/2);for(var K=0;K<q;++K){var rt=parseInt(M.substr(2*K,2),16);if(V(rt))return K;E[L+K]=rt}return K}function R(E,M,L,q){return X(z(M,E.length-L),E,L,q)}function N(E,M,L,q){return X(function(Z){for(var W=[],K=0;K<Z.length;++K)W.push(255&Z.charCodeAt(K));return W}(M),E,L,q)}function F(E,M,L,q){return N(E,M,L,q)}function I(E,M,L,q){return X(U(M),E,L,q)}function P(E,M,L,q){return X(function(Z,W){for(var K,rt,et,Y=[],Q=0;Q<Z.length&&!((W-=2)<0);++Q)K=Z.charCodeAt(Q),rt=K>>8,et=K%256,Y.push(et),Y.push(rt);return Y}(M,E.length-L),E,L,q)}function B(E,M,L){return M===0&&L===E.length?a.fromByteArray(E):a.fromByteArray(E.slice(M,L))}function $(E,M,L){L=Math.min(E.length,L);for(var q=[],Z=M;Z<L;){var W,K,rt,et,Y=E[Z],Q=null,J=Y>239?4:Y>223?3:Y>191?2:1;if(Z+J<=L)switch(J){case 1:Y<128&&(Q=Y);break;case 2:(192&(W=E[Z+1]))==128&&(et=(31&Y)<<6|63&W)>127&&(Q=et);break;case 3:W=E[Z+1],K=E[Z+2],(192&W)==128&&(192&K)==128&&(et=(15&Y)<<12|(63&W)<<6|63&K)>2047&&(et<55296||et>57343)&&(Q=et);break;case 4:W=E[Z+1],K=E[Z+2],rt=E[Z+3],(192&W)==128&&(192&K)==128&&(192&rt)==128&&(et=(15&Y)<<18|(63&W)<<12|(63&K)<<6|63&rt)>65535&&et<1114112&&(Q=et)}Q===null?(Q=65533,J=1):Q>65535&&(Q-=65536,q.push(Q>>>10&1023|55296),Q=56320|1023&Q),q.push(Q),Z+=J}return function(st){var it=st.length;if(it<=4096)return String.fromCharCode.apply(String,st);for(var ot="",ut=0;ut<it;)ot+=String.fromCharCode.apply(String,st.slice(ut,ut+=4096));return ot}(q)}_.kMaxLength=2147483647,t.TYPED_ARRAY_SUPPORT=function(){try{var E=new Uint8Array(1);return E.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},E.foo()===42}catch{return!1}}(),t.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."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(E,M,L){return e(E,M,L)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(E,M,L){return function(q,Z,W){return l(q),q<=0?r(q):Z!==void 0?typeof W=="string"?r(q).fill(Z,W):r(q).fill(Z):r(q)}(E,M,L)},t.allocUnsafe=function(E){return n(E)},t.allocUnsafeSlow=function(E){return n(E)},t.isBuffer=function(E){return E!=null&&E._isBuffer===!0&&E!==t.prototype},t.compare=function(E,M){if(j(E,Uint8Array)&&(E=t.from(E,E.offset,E.byteLength)),j(M,Uint8Array)&&(M=t.from(M,M.offset,M.byteLength)),!t.isBuffer(E)||!t.isBuffer(M))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(E===M)return 0;for(var L=E.length,q=M.length,Z=0,W=Math.min(L,q);Z<W;++Z)if(E[Z]!==M[Z]){L=E[Z],q=M[Z];break}return L<q?-1:q<L?1:0},t.isEncoding=function(E){switch(String(E).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}},t.concat=function(E,M){if(!Array.isArray(E))throw new TypeError('"list" argument must be an Array of Buffers');if(E.length===0)return t.alloc(0);var L;if(M===void 0)for(M=0,L=0;L<E.length;++L)M+=E[L].length;var q=t.allocUnsafe(M),Z=0;for(L=0;L<E.length;++L){var W=E[L];if(j(W,Uint8Array)&&(W=t.from(W)),!t.isBuffer(W))throw new TypeError('"list" argument must be an Array of Buffers');W.copy(q,Z),Z+=W.length}return q},t.byteLength=f,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var E=this.length;if(E%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var M=0;M<E;M+=2)p(this,M,M+1);return this},t.prototype.swap32=function(){var E=this.length;if(E%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var M=0;M<E;M+=4)p(this,M,M+3),p(this,M+1,M+2);return this},t.prototype.swap64=function(){var E=this.length;if(E%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var M=0;M<E;M+=8)p(this,M,M+7),p(this,M+1,M+6),p(this,M+2,M+5),p(this,M+3,M+4);return this},t.prototype.toString=function(){var E=this.length;return E===0?"":arguments.length===0?$(this,0,E):u.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(E){if(!t.isBuffer(E))throw new TypeError("Argument must be a Buffer");return this===E||t.compare(this,E)===0},t.prototype.inspect=function(){var E="",M=_.INSPECT_MAX_BYTES;return E=this.toString("hex",0,M).replace(/(.{2})/g,"$1 ").trim(),this.length>M&&(E+=" ... "),"<Buffer "+E+">"},t.prototype.compare=function(E,M,L,q,Z){if(j(E,Uint8Array)&&(E=t.from(E,E.offset,E.byteLength)),!t.isBuffer(E))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof E);if(M===void 0&&(M=0),L===void 0&&(L=E?E.length:0),q===void 0&&(q=0),Z===void 0&&(Z=this.length),M<0||L>E.length||q<0||Z>this.length)throw new RangeError("out of range index");if(q>=Z&&M>=L)return 0;if(q>=Z)return-1;if(M>=L)return 1;if(this===E)return 0;for(var W=(Z>>>=0)-(q>>>=0),K=(L>>>=0)-(M>>>=0),rt=Math.min(W,K),et=this.slice(q,Z),Y=E.slice(M,L),Q=0;Q<rt;++Q)if(et[Q]!==Y[Q]){W=et[Q],K=Y[Q];break}return W<K?-1:K<W?1:0},t.prototype.includes=function(E,M,L){return this.indexOf(E,M,L)!==-1},t.prototype.indexOf=function(E,M,L){return h(this,E,M,L,!0)},t.prototype.lastIndexOf=function(E,M,L){return h(this,E,M,L,!1)},t.prototype.write=function(E,M,L,q){if(M===void 0)q="utf8",L=this.length,M=0;else if(L===void 0&&typeof M=="string")q=M,L=this.length,M=0;else{if(!isFinite(M))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");M>>>=0,isFinite(L)?(L>>>=0,q===void 0&&(q="utf8")):(q=L,L=void 0)}var Z=this.length-M;if((L===void 0||L>Z)&&(L=Z),E.length>0&&(L<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");for(var W=!1;;)switch(q){case"hex":return x(this,E,M,L);case"utf8":case"utf-8":return R(this,E,M,L);case"ascii":return N(this,E,M,L);case"latin1":case"binary":return F(this,E,M,L);case"base64":return I(this,E,M,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,E,M,L);default:if(W)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),W=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(E,M,L){var q="";L=Math.min(E.length,L);for(var Z=M;Z<L;++Z)q+=String.fromCharCode(127&E[Z]);return q}function S(E,M,L){var q="";L=Math.min(E.length,L);for(var Z=M;Z<L;++Z)q+=String.fromCharCode(E[Z]);return q}function T(E,M,L){var q=E.length;(!M||M<0)&&(M=0),(!L||L<0||L>q)&&(L=q);for(var Z="",W=M;W<L;++W)Z+=A(E[W]);return Z}function v(E,M,L){for(var q=E.slice(M,L),Z="",W=0;W<q.length;W+=2)Z+=String.fromCharCode(q[W]+256*q[W+1]);return Z}function m(E,M,L){if(E%1!=0||E<0)throw new RangeError("offset is not uint");if(E+M>L)throw new RangeError("Trying to access beyond buffer length")}function b(E,M,L,q,Z,W){if(!t.isBuffer(E))throw new TypeError('"buffer" argument must be a Buffer instance');if(M>Z||M<W)throw new RangeError('"value" argument is out of bounds');if(L+q>E.length)throw new RangeError("Index out of range")}function g(E,M,L,q,Z,W){if(L+q>E.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("Index out of range")}function y(E,M,L,q,Z){return M=+M,L>>>=0,Z||g(E,0,L,4),o.write(E,M,L,q,23,4),L+4}function k(E,M,L,q,Z){return M=+M,L>>>=0,Z||g(E,0,L,8),o.write(E,M,L,q,52,8),L+8}t.prototype.slice=function(E,M){var L=this.length;(E=~~E)<0?(E+=L)<0&&(E=0):E>L&&(E=L),(M=M===void 0?L:~~M)<0?(M+=L)<0&&(M=0):M>L&&(M=L),M<E&&(M=E);var q=this.subarray(E,M);return q.__proto__=t.prototype,q},t.prototype.readUIntLE=function(E,M,L){E>>>=0,M>>>=0,L||m(E,M,this.length);for(var q=this[E],Z=1,W=0;++W<M&&(Z*=256);)q+=this[E+W]*Z;return q},t.prototype.readUIntBE=function(E,M,L){E>>>=0,M>>>=0,L||m(E,M,this.length);for(var q=this[E+--M],Z=1;M>0&&(Z*=256);)q+=this[E+--M]*Z;return q},t.prototype.readUInt8=function(E,M){return E>>>=0,M||m(E,1,this.length),this[E]},t.prototype.readUInt16LE=function(E,M){return E>>>=0,M||m(E,2,this.length),this[E]|this[E+1]<<8},t.prototype.readUInt16BE=function(E,M){return E>>>=0,M||m(E,2,this.length),this[E]<<8|this[E+1]},t.prototype.readUInt32LE=function(E,M){return E>>>=0,M||m(E,4,this.length),(this[E]|this[E+1]<<8|this[E+2]<<16)+16777216*this[E+3]},t.prototype.readUInt32BE=function(E,M){return E>>>=0,M||m(E,4,this.length),16777216*this[E]+(this[E+1]<<16|this[E+2]<<8|this[E+3])},t.prototype.readIntLE=function(E,M,L){E>>>=0,M>>>=0,L||m(E,M,this.length);for(var q=this[E],Z=1,W=0;++W<M&&(Z*=256);)q+=this[E+W]*Z;return q>=(Z*=128)&&(q-=Math.pow(2,8*M)),q},t.prototype.readIntBE=function(E,M,L){E>>>=0,M>>>=0,L||m(E,M,this.length);for(var q=M,Z=1,W=this[E+--q];q>0&&(Z*=256);)W+=this[E+--q]*Z;return W>=(Z*=128)&&(W-=Math.pow(2,8*M)),W},t.prototype.readInt8=function(E,M){return E>>>=0,M||m(E,1,this.length),128&this[E]?-1*(255-this[E]+1):this[E]},t.prototype.readInt16LE=function(E,M){E>>>=0,M||m(E,2,this.length);var L=this[E]|this[E+1]<<8;return 32768&L?4294901760|L:L},t.prototype.readInt16BE=function(E,M){E>>>=0,M||m(E,2,this.length);var L=this[E+1]|this[E]<<8;return 32768&L?4294901760|L:L},t.prototype.readInt32LE=function(E,M){return E>>>=0,M||m(E,4,this.length),this[E]|this[E+1]<<8|this[E+2]<<16|this[E+3]<<24},t.prototype.readInt32BE=function(E,M){return E>>>=0,M||m(E,4,this.length),this[E]<<24|this[E+1]<<16|this[E+2]<<8|this[E+3]},t.prototype.readFloatLE=function(E,M){return E>>>=0,M||m(E,4,this.length),o.read(this,E,!0,23,4)},t.prototype.readFloatBE=function(E,M){return E>>>=0,M||m(E,4,this.length),o.read(this,E,!1,23,4)},t.prototype.readDoubleLE=function(E,M){return E>>>=0,M||m(E,8,this.length),o.read(this,E,!0,52,8)},t.prototype.readDoubleBE=function(E,M){return E>>>=0,M||m(E,8,this.length),o.read(this,E,!1,52,8)},t.prototype.writeUIntLE=function(E,M,L,q){E=+E,M>>>=0,L>>>=0,q||b(this,E,M,L,Math.pow(2,8*L)-1,0);var Z=1,W=0;for(this[M]=255&E;++W<L&&(Z*=256);)this[M+W]=E/Z&255;return M+L},t.prototype.writeUIntBE=function(E,M,L,q){E=+E,M>>>=0,L>>>=0,q||b(this,E,M,L,Math.pow(2,8*L)-1,0);var Z=L-1,W=1;for(this[M+Z]=255&E;--Z>=0&&(W*=256);)this[M+Z]=E/W&255;return M+L},t.prototype.writeUInt8=function(E,M,L){return E=+E,M>>>=0,L||b(this,E,M,1,255,0),this[M]=255&E,M+1},t.prototype.writeUInt16LE=function(E,M,L){return E=+E,M>>>=0,L||b(this,E,M,2,65535,0),this[M]=255&E,this[M+1]=E>>>8,M+2},t.prototype.writeUInt16BE=function(E,M,L){return E=+E,M>>>=0,L||b(this,E,M,2,65535,0),this[M]=E>>>8,this[M+1]=255&E,M+2},t.prototype.writeUInt32LE=function(E,M,L){return E=+E,M>>>=0,L||b(this,E,M,4,4294967295,0),this[M+3]=E>>>24,this[M+2]=E>>>16,this[M+1]=E>>>8,this[M]=255&E,M+4},t.prototype.writeUInt32BE=function(E,M,L){return E=+E,M>>>=0,L||b(this,E,M,4,4294967295,0),this[M]=E>>>24,this[M+1]=E>>>16,this[M+2]=E>>>8,this[M+3]=255&E,M+4},t.prototype.writeIntLE=function(E,M,L,q){if(E=+E,M>>>=0,!q){var Z=Math.pow(2,8*L-1);b(this,E,M,L,Z-1,-Z)}var W=0,K=1,rt=0;for(this[M]=255&E;++W<L&&(K*=256);)E<0&&rt===0&&this[M+W-1]!==0&&(rt=1),this[M+W]=(E/K>>0)-rt&255;return M+L},t.prototype.writeIntBE=function(E,M,L,q){if(E=+E,M>>>=0,!q){var Z=Math.pow(2,8*L-1);b(this,E,M,L,Z-1,-Z)}var W=L-1,K=1,rt=0;for(this[M+W]=255&E;--W>=0&&(K*=256);)E<0&&rt===0&&this[M+W+1]!==0&&(rt=1),this[M+W]=(E/K>>0)-rt&255;return M+L},t.prototype.writeInt8=function(E,M,L){return E=+E,M>>>=0,L||b(this,E,M,1,127,-128),E<0&&(E=255+E+1),this[M]=255&E,M+1},t.prototype.writeInt16LE=function(E,M,L){return E=+E,M>>>=0,L||b(this,E,M,2,32767,-32768),this[M]=255&E,this[M+1]=E>>>8,M+2},t.prototype.writeInt16BE=function(E,M,L){return E=+E,M>>>=0,L||b(this,E,M,2,32767,-32768),this[M]=E>>>8,this[M+1]=255&E,M+2},t.prototype.writeInt32LE=function(E,M,L){return E=+E,M>>>=0,L||b(this,E,M,4,2147483647,-2147483648),this[M]=255&E,this[M+1]=E>>>8,this[M+2]=E>>>16,this[M+3]=E>>>24,M+4},t.prototype.writeInt32BE=function(E,M,L){return E=+E,M>>>=0,L||b(this,E,M,4,2147483647,-2147483648),E<0&&(E=4294967295+E+1),this[M]=E>>>24,this[M+1]=E>>>16,this[M+2]=E>>>8,this[M+3]=255&E,M+4},t.prototype.writeFloatLE=function(E,M,L){return y(this,E,M,!0,L)},t.prototype.writeFloatBE=function(E,M,L){return y(this,E,M,!1,L)},t.prototype.writeDoubleLE=function(E,M,L){return k(this,E,M,!0,L)},t.prototype.writeDoubleBE=function(E,M,L){return k(this,E,M,!1,L)},t.prototype.copy=function(E,M,L,q){if(!t.isBuffer(E))throw new TypeError("argument should be a Buffer");if(L||(L=0),q||q===0||(q=this.length),M>=E.length&&(M=E.length),M||(M=0),q>0&&q<L&&(q=L),q===L||E.length===0||this.length===0)return 0;if(M<0)throw new RangeError("targetStart out of bounds");if(L<0||L>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),E.length-M<q-L&&(q=E.length-M+L);var Z=q-L;if(this===E&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(M,L,q);else if(this===E&&L<M&&M<q)for(var W=Z-1;W>=0;--W)E[W+M]=this[W+L];else Uint8Array.prototype.set.call(E,this.subarray(L,q),M);return Z},t.prototype.fill=function(E,M,L,q){if(typeof E=="string"){if(typeof M=="string"?(q=M,M=0,L=this.length):typeof L=="string"&&(q=L,L=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!t.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(E.length===1){var Z=E.charCodeAt(0);(q==="utf8"&&Z<128||q==="latin1")&&(E=Z)}}else typeof E=="number"&&(E&=255);if(M<0||this.length<M||this.length<L)throw new RangeError("Out of range index");if(L<=M)return this;var W;if(M>>>=0,L=L===void 0?this.length:L>>>0,E||(E=0),typeof E=="number")for(W=M;W<L;++W)this[W]=E;else{var K=t.isBuffer(E)?E:t.from(E,q),rt=K.length;if(rt===0)throw new TypeError('The value "'+E+'" is invalid for argument "value"');for(W=0;W<L-M;++W)this[W+M]=K[W%rt]}return this};var O=/[^+/0-9A-Za-z-_]/g;function A(E){return E<16?"0"+E.toString(16):E.toString(16)}function z(E,M){var L;M=M||1/0;for(var q=E.length,Z=null,W=[],K=0;K<q;++K){if((L=E.charCodeAt(K))>55295&&L<57344){if(!Z){if(L>56319){(M-=3)>-1&&W.push(239,191,189);continue}if(K+1===q){(M-=3)>-1&&W.push(239,191,189);continue}Z=L;continue}if(L<56320){(M-=3)>-1&&W.push(239,191,189),Z=L;continue}L=65536+(Z-55296<<10|L-56320)}else Z&&(M-=3)>-1&&W.push(239,191,189);if(Z=null,L<128){if((M-=1)<0)break;W.push(L)}else if(L<2048){if((M-=2)<0)break;W.push(L>>6|192,63&L|128)}else if(L<65536){if((M-=3)<0)break;W.push(L>>12|224,L>>6&63|128,63&L|128)}else{if(!(L<1114112))throw new Error("Invalid code point");if((M-=4)<0)break;W.push(L>>18|240,L>>12&63|128,L>>6&63|128,63&L|128)}}return W}function U(E){return a.toByteArray(function(M){if((M=(M=M.split("=")[0]).trim().replace(O,"")).length<2)return"";for(;M.length%4!=0;)M+="=";return M}(E))}function X(E,M,L,q){for(var Z=0;Z<q&&!(Z+L>=M.length||Z>=E.length);++Z)M[Z+L]=E[Z];return Z}function j(E,M){return E instanceof M||E!=null&&E.constructor!=null&&E.constructor.name!=null&&E.constructor.name===M.name}function V(E){return E!=E}}).call(this)}).call(this,s("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(s,C,_){var d=s("safe-buffer").Buffer,a=s("stream").Transform,o=s("string_decoder").StringDecoder;function r(t){a.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}s("inherits")(r,a),r.prototype.update=function(t,e,l){typeof t=="string"&&(t=d.from(t,e));var n=this._update(t);return this.hashMode?this:(l&&(n=this._toString(n,l)),n)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},r.prototype._transform=function(t,e,l){var n;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(i){n=i}finally{l(n)}},r.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(l){e=l}t(e)},r.prototype._finalOrDigest=function(t){var e=this.__final()||d.alloc(0);return t&&(e=this._toString(e,t,!0)),e},r.prototype._toString=function(t,e,l){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(t);return l&&(n+=this._decoder.end()),n},C.exports=r},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(s,C,_){var d=s("../internals/is-callable"),a=s("../internals/try-to-string"),o=TypeError;C.exports=function(r){if(d(r))return r;throw new o(a(r)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(s,C,_){var d=s("../internals/is-constructor"),a=s("../internals/try-to-string"),o=TypeError;C.exports=function(r){if(d(r))return r;throw new o(a(r)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(s,C,_){var d=s("../internals/is-callable"),a=String,o=TypeError;C.exports=function(r){if(typeof r=="object"||d(r))return r;throw new o("Can't set "+a(r)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(s,C,_){var d=s("../internals/well-known-symbol"),a=s("../internals/object-create"),o=s("../internals/object-define-property").f,r=d("unscopables"),t=Array.prototype;t[r]===void 0&&o(t,r,{configurable:!0,value:a(null)}),C.exports=function(e){t[r][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(s,C,_){var d=s("../internals/object-is-prototype-of"),a=TypeError;C.exports=function(o,r){if(d(r,o))return o;throw new a("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(s,C,_){var d=s("../internals/is-object"),a=String,o=TypeError;C.exports=function(r){if(d(r))return r;throw new o(a(r)+" is not an object")}},{"../internals/is-object":289}],228:[function(s,C,_){var d=s("../internals/to-indexed-object"),a=s("../internals/to-absolute-index"),o=s("../internals/length-of-array-like"),r=function(t){return function(e,l,n){var i,c=d(e),f=o(c),u=a(n,f);if(t&&l!=l){for(;f>u;)if((i=c[u++])!=i)return!0}else for(;f>u;u++)if((t||u in c)&&c[u]===l)return t||u||0;return!t&&-1}};C.exports={includes:r(!0),indexOf:r(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(s,C,_){var d=s("../internals/function-bind-context"),a=s("../internals/function-uncurry-this"),o=s("../internals/indexed-object"),r=s("../internals/to-object"),t=s("../internals/length-of-array-like"),e=s("../internals/array-species-create"),l=a([].push),n=function(i){var c=i===1,f=i===2,u=i===3,p=i===4,h=i===6,w=i===7,x=i===5||h;return function(R,N,F,I){for(var P,B,$=r(R),D=o($),S=d(N,F),T=t(D),v=0,m=I||e,b=c?m(R,T):f||w?m(R,0):void 0;T>v;v++)if((x||v in D)&&(B=S(P=D[v],v,$),i))if(c)b[v]=B;else if(B)switch(i){case 3:return!0;case 5:return P;case 6:return v;case 2:l(b,P)}else switch(i){case 4:return!1;case 7:l(b,P)}return h?-1:u||p?p:b}};C.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6),filterReject:n(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(s,C,_){var d=s("../internals/to-absolute-index"),a=s("../internals/length-of-array-like"),o=s("../internals/create-property"),r=Array,t=Math.max;C.exports=function(e,l,n){for(var i=a(e),c=d(l,i),f=d(n===void 0?i:n,i),u=r(t(f-c,0)),p=0;c<f;c++,p++)o(u,p,e[c]);return u.length=p,u}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(s,C,_){var d=s("../internals/function-uncurry-this");C.exports=d([].slice)},{"../internals/function-uncurry-this":268}],232:[function(s,C,_){var d=s("../internals/is-array"),a=s("../internals/is-constructor"),o=s("../internals/is-object"),r=s("../internals/well-known-symbol")("species"),t=Array;C.exports=function(e){var l;return d(e)&&(l=e.constructor,(a(l)&&(l===t||d(l.prototype))||o(l)&&(l=l[r])===null)&&(l=void 0)),l===void 0?t:l}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(s,C,_){var d=s("../internals/array-species-constructor");C.exports=function(a,o){return new(d(a))(o===0?0:o)}},{"../internals/array-species-constructor":232}],234:[function(s,C,_){var d=s("../internals/well-known-symbol")("iterator"),a=!1;try{var o=0,r={next:function(){return{done:!!o++}},return:function(){a=!0}};r[d]=function(){return this},Array.from(r,function(){throw 2})}catch{}C.exports=function(t,e){try{if(!e&&!a)return!1}catch{return!1}var l=!1;try{var n={};n[d]=function(){return{next:function(){return{done:l=!0}}}},t(n)}catch{}return l}},{"../internals/well-known-symbol":357}],235:[function(s,C,_){var d=s("../internals/function-uncurry-this"),a=d({}.toString),o=d("".slice);C.exports=function(r){return o(a(r),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(s,C,_){var d=s("../internals/to-string-tag-support"),a=s("../internals/is-callable"),o=s("../internals/classof-raw"),r=s("../internals/well-known-symbol")("toStringTag"),t=Object,e=o(function(){return arguments}())==="Arguments";C.exports=d?o:function(l){var n,i,c;return l===void 0?"Undefined":l===null?"Null":typeof(i=function(f,u){try{return f[u]}catch{}}(n=t(l),r))=="string"?i:e?o(n):(c=o(n))==="Object"&&a(n.callee)?"Arguments":c}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(s,C,_){var d=s("../internals/has-own-property"),a=s("../internals/own-keys"),o=s("../internals/object-get-own-property-descriptor"),r=s("../internals/object-define-property");C.exports=function(t,e,l){for(var n=a(e),i=r.f,c=o.f,f=0;f<n.length;f++){var u=n[f];d(t,u)||l&&d(l,u)||i(t,u,c(e,u))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(s,C,_){var d=s("../internals/well-known-symbol")("match");C.exports=function(a){var o=/./;try{"/./"[a](o)}catch{try{return o[d]=!1,"/./"[a](o)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(s,C,_){var d=s("../internals/fails");C.exports=!d(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},{"../internals/fails":260}],240:[function(s,C,_){C.exports=function(d,a){return{value:d,done:a}}},{}],241:[function(s,C,_){var d=s("../internals/descriptors"),a=s("../internals/object-define-property"),o=s("../internals/create-property-descriptor");C.exports=d?function(r,t,e){return a.f(r,t,o(1,e))}:function(r,t,e){return r[t]=e,r}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(s,C,_){C.exports=function(d,a){return{enumerable:!(1&d),configurable:!(2&d),writable:!(4&d),value:a}}},{}],243:[function(s,C,_){var d=s("../internals/to-property-key"),a=s("../internals/object-define-property"),o=s("../internals/create-property-descriptor");C.exports=function(r,t,e){var l=d(t);l in r?a.f(r,l,o(0,e)):r[l]=e}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(s,C,_){var d=s("../internals/make-built-in"),a=s("../internals/object-define-property");C.exports=function(o,r,t){return t.get&&d(t.get,r,{getter:!0}),t.set&&d(t.set,r,{setter:!0}),a.f(o,r,t)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(s,C,_){var d=s("../internals/is-callable"),a=s("../internals/object-define-property"),o=s("../internals/make-built-in"),r=s("../internals/define-global-property");C.exports=function(t,e,l,n){n||(n={});var i=n.enumerable,c=n.name!==void 0?n.name:e;if(d(l)&&o(l,c,n),n.global)i?t[e]=l:r(e,l);else{try{n.unsafe?t[e]&&(i=!0):delete t[e]}catch{}i?t[e]=l:a.f(t,e,{value:l,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(s,C,_){var d=s("../internals/global"),a=Object.defineProperty;C.exports=function(o,r){try{a(d,o,{value:r,configurable:!0,writable:!0})}catch{d[o]=r}return r}},{"../internals/global":274}],247:[function(s,C,_){var d=s("../internals/fails");C.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},{"../internals/fails":260}],248:[function(s,C,_){var d=typeof document=="object"&&document.all,a=d===void 0&&d!==void 0;C.exports={all:d,IS_HTMLDDA:a}},{}],249:[function(s,C,_){var d=s("../internals/global"),a=s("../internals/is-object"),o=d.document,r=a(o)&&a(o.createElement);C.exports=function(t){return r?o.createElement(t):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(s,C,_){var d=s("../internals/engine-is-deno"),a=s("../internals/engine-is-node");C.exports=!d&&!a&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(s,C,_){C.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(s,C,_){var d=s("../internals/engine-user-agent");C.exports=/ipad|iphone|ipod/i.test(d)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(s,C,_){var d=s("../internals/engine-user-agent");C.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},{"../internals/engine-user-agent":256}],254:[function(s,C,_){var d=s("../internals/global"),a=s("../internals/classof-raw");C.exports=a(d.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(s,C,_){var d=s("../internals/engine-user-agent");C.exports=/web0s(?!.*chrome)/i.test(d)},{"../internals/engine-user-agent":256}],256:[function(s,C,_){C.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(s,C,_){var d,a,o=s("../internals/global"),r=s("../internals/engine-user-agent"),t=o.process,e=o.Deno,l=t&&t.versions||e&&e.version,n=l&&l.v8;n&&(a=(d=n.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!a&&r&&(!(d=r.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=r.match(/Chrome\/(\d+)/))&&(a=+d[1]),C.exports=a},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(s,C,_){C.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(s,C,_){var d=s("../internals/global"),a=s("../internals/object-get-own-property-descriptor").f,o=s("../internals/create-non-enumerable-property"),r=s("../internals/define-built-in"),t=s("../internals/define-global-property"),e=s("../internals/copy-constructor-properties"),l=s("../internals/is-forced");C.exports=function(n,i){var c,f,u,p,h,w=n.target,x=n.global,R=n.stat;if(c=x?d:R?d[w]||t(w,{}):(d[w]||{}).prototype)for(f in i){if(p=i[f],u=n.dontCallGetSet?(h=a(c,f))&&h.value:c[f],!l(x?f:w+(R?".":"#")+f,n.forced)&&u!==void 0){if(typeof p==typeof u)continue;e(p,u)}(n.sham||u&&u.sham)&&o(p,"sham",!0),r(c,f,p,n)}}},{"../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(s,C,_){C.exports=function(d){try{return!!d()}catch{return!0}}},{}],261:[function(s,C,_){var d=s("../internals/function-bind-native"),a=Function.prototype,o=a.apply,r=a.call;C.exports=typeof Reflect=="object"&&Reflect.apply||(d?r.bind(o):function(){return r.apply(o,arguments)})},{"../internals/function-bind-native":263}],262:[function(s,C,_){var d=s("../internals/function-uncurry-this-clause"),a=s("../internals/a-callable"),o=s("../internals/function-bind-native"),r=d(d.bind);C.exports=function(t,e){return a(t),e===void 0?t:o?r(t,e):function(){return t.apply(e,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(s,C,_){var d=s("../internals/fails");C.exports=!d(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(s,C,_){var d=s("../internals/function-bind-native"),a=Function.prototype.call;C.exports=d?a.bind(a):function(){return a.apply(a,arguments)}},{"../internals/function-bind-native":263}],265:[function(s,C,_){var d=s("../internals/descriptors"),a=s("../internals/has-own-property"),o=Function.prototype,r=d&&Object.getOwnPropertyDescriptor,t=a(o,"name"),e=t&&(function(){}).name==="something",l=t&&(!d||d&&r(o,"name").configurable);C.exports={EXISTS:t,PROPER:e,CONFIGURABLE:l}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(s,C,_){var d=s("../internals/function-uncurry-this"),a=s("../internals/a-callable");C.exports=function(o,r,t){try{return d(a(Object.getOwnPropertyDescriptor(o,r)[t]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(s,C,_){var d=s("../internals/classof-raw"),a=s("../internals/function-uncurry-this");C.exports=function(o){if(d(o)==="Function")return a(o)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(s,C,_){var d=s("../internals/function-bind-native"),a=Function.prototype,o=a.call,r=d&&a.bind.bind(o,o);C.exports=d?r:function(t){return function(){return o.apply(t,arguments)}}},{"../internals/function-bind-native":263}],269:[function(s,C,_){var d=s("../internals/global"),a=s("../internals/is-callable"),o=function(r){return a(r)?r:void 0};C.exports=function(r,t){return arguments.length<2?o(d[r]):d[r]&&d[r][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(s,C,_){var d=s("../internals/classof"),a=s("../internals/get-method"),o=s("../internals/is-null-or-undefined"),r=s("../internals/iterators"),t=s("../internals/well-known-symbol")("iterator");C.exports=function(e){if(!o(e))return a(e,t)||a(e,"@@iterator")||r[d(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(s,C,_){var d=s("../internals/function-call"),a=s("../internals/a-callable"),o=s("../internals/an-object"),r=s("../internals/try-to-string"),t=s("../internals/get-iterator-method"),e=TypeError;C.exports=function(l,n){var i=arguments.length<2?t(l):n;if(a(i))return o(d(i,l));throw new e(r(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(s,C,_){var d=s("../internals/function-uncurry-this"),a=s("../internals/is-array"),o=s("../internals/is-callable"),r=s("../internals/classof-raw"),t=s("../internals/to-string"),e=d([].push);C.exports=function(l){if(o(l))return l;if(a(l)){for(var n=l.length,i=[],c=0;c<n;c++){var f=l[c];typeof f=="string"?e(i,f):typeof f!="number"&&r(f)!=="Number"&&r(f)!=="String"||e(i,t(f))}var u=i.length,p=!0;return function(h,w){if(p)return p=!1,w;if(a(this))return w;for(var x=0;x<u;x++)if(i[x]===h)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(s,C,_){var d=s("../internals/a-callable"),a=s("../internals/is-null-or-undefined");C.exports=function(o,r){var t=o[r];return a(t)?void 0:d(t)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(s,C,_){(function(d){(function(){var a=function(o){return o&&o.Math===Math&&o};C.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof d=="object"&&d)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(s,C,_){var d=s("../internals/function-uncurry-this"),a=s("../internals/to-object"),o=d({}.hasOwnProperty);C.exports=Object.hasOwn||function(r,t){return o(a(r),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(s,C,_){C.exports={}},{}],277:[function(s,C,_){C.exports=function(d,a){try{arguments.length===1?console.error(d):console.error(d,a)}catch{}}},{}],278:[function(s,C,_){var d=s("../internals/get-built-in");C.exports=d("document","documentElement")},{"../internals/get-built-in":269}],279:[function(s,C,_){var d=s("../internals/descriptors"),a=s("../internals/fails"),o=s("../internals/document-create-element");C.exports=!d&&!a(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(s,C,_){var d=s("../internals/function-uncurry-this"),a=s("../internals/fails"),o=s("../internals/classof-raw"),r=Object,t=d("".split);C.exports=a(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return o(e)==="String"?t(e,""):r(e)}:r},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(s,C,_){var d=s("../internals/function-uncurry-this"),a=s("../internals/is-callable"),o=s("../internals/shared-store"),r=d(Function.toString);a(o.inspectSource)||(o.inspectSource=function(t){return r(t)}),C.exports=o.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(s,C,_){var d,a,o,r=s("../internals/weak-map-basic-detection"),t=s("../internals/global"),e=s("../internals/is-object"),l=s("../internals/create-non-enumerable-property"),n=s("../internals/has-own-property"),i=s("../internals/shared-store"),c=s("../internals/shared-key"),f=s("../internals/hidden-keys"),u=t.TypeError,p=t.WeakMap;if(r||i.state){var h=i.state||(i.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,d=function(x,R){if(h.has(x))throw new u("Object already initialized");return R.facade=x,h.set(x,R),R},a=function(x){return h.get(x)||{}},o=function(x){return h.has(x)}}else{var w=c("state");f[w]=!0,d=function(x,R){if(n(x,w))throw new u("Object already initialized");return R.facade=x,l(x,w,R),R},a=function(x){return n(x,w)?x[w]:{}},o=function(x){return n(x,w)}}C.exports={set:d,get:a,has:o,enforce:function(x){return o(x)?a(x):d(x,{})},getterFor:function(x){return function(R){var N;if(!e(R)||(N=a(R)).type!==x)throw new u("Incompatible receiver, "+x+" required");return N}}}},{"../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(s,C,_){var d=s("../internals/well-known-symbol"),a=s("../internals/iterators"),o=d("iterator"),r=Array.prototype;C.exports=function(t){return t!==void 0&&(a.Array===t||r[o]===t)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(s,C,_){var d=s("../internals/classof-raw");C.exports=Array.isArray||function(a){return d(a)==="Array"}},{"../internals/classof-raw":235}],285:[function(s,C,_){var d=s("../internals/document-all"),a=d.all;C.exports=d.IS_HTMLDDA?function(o){return typeof o=="function"||o===a}:function(o){return typeof o=="function"}},{"../internals/document-all":248}],286:[function(s,C,_){var d=s("../internals/function-uncurry-this"),a=s("../internals/fails"),o=s("../internals/is-callable"),r=s("../internals/classof"),t=s("../internals/get-built-in"),e=s("../internals/inspect-source"),l=function(){},n=[],i=t("Reflect","construct"),c=/^\s*(?:class|function)\b/,f=d(c.exec),u=!c.test(l),p=function(w){if(!o(w))return!1;try{return i(l,n,w),!0}catch{return!1}},h=function(w){if(!o(w))return!1;switch(r(w)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!f(c,e(w))}catch{return!0}};h.sham=!0,C.exports=!i||a(function(){var w;return p(p.call)||!p(Object)||!p(function(){w=!0})||w})?h:p},{"../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(s,C,_){var d=s("../internals/fails"),a=s("../internals/is-callable"),o=/#|\.prototype\./,r=function(i,c){var f=e[t(i)];return f===n||f!==l&&(a(c)?d(c):!!c)},t=r.normalize=function(i){return String(i).replace(o,".").toLowerCase()},e=r.data={},l=r.NATIVE="N",n=r.POLYFILL="P";C.exports=r},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(s,C,_){C.exports=function(d){return d==null}},{}],289:[function(s,C,_){var d=s("../internals/is-callable"),a=s("../internals/document-all"),o=a.all;C.exports=a.IS_HTMLDDA?function(r){return typeof r=="object"?r!==null:d(r)||r===o}:function(r){return typeof r=="object"?r!==null:d(r)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(s,C,_){C.exports=!1},{}],291:[function(s,C,_){var d=s("../internals/is-object"),a=s("../internals/classof-raw"),o=s("../internals/well-known-symbol")("match");C.exports=function(r){var t;return d(r)&&((t=r[o])!==void 0?!!t:a(r)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(s,C,_){var d=s("../internals/get-built-in"),a=s("../internals/is-callable"),o=s("../internals/object-is-prototype-of"),r=s("../internals/use-symbol-as-uid"),t=Object;C.exports=r?function(e){return typeof e=="symbol"}:function(e){var l=d("Symbol");return a(l)&&o(l.prototype,t(e))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(s,C,_){var d=s("../internals/function-bind-context"),a=s("../internals/function-call"),o=s("../internals/an-object"),r=s("../internals/try-to-string"),t=s("../internals/is-array-iterator-method"),e=s("../internals/length-of-array-like"),l=s("../internals/object-is-prototype-of"),n=s("../internals/get-iterator"),i=s("../internals/get-iterator-method"),c=s("../internals/iterator-close"),f=TypeError,u=function(h,w){this.stopped=h,this.result=w},p=u.prototype;C.exports=function(h,w,x){var R,N,F,I,P,B,$,D=x&&x.that,S=!(!x||!x.AS_ENTRIES),T=!(!x||!x.IS_RECORD),v=!(!x||!x.IS_ITERATOR),m=!(!x||!x.INTERRUPTED),b=d(w,D),g=function(k){return R&&c(R,"normal",k),new u(!0,k)},y=function(k){return S?(o(k),m?b(k[0],k[1],g):b(k[0],k[1])):m?b(k,g):b(k)};if(T)R=h.iterator;else if(v)R=h;else{if(!(N=i(h)))throw new f(r(h)+" is not iterable");if(t(N)){for(F=0,I=e(h);I>F;F++)if((P=y(h[F]))&&l(p,P))return P;return new u(!1)}R=n(h,N)}for(B=T?h.next:R.next;!($=a(B,R)).done;){try{P=y($.value)}catch(k){c(R,"throw",k)}if(typeof P=="object"&&P&&l(p,P))return P}return new u(!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(s,C,_){var d=s("../internals/function-call"),a=s("../internals/an-object"),o=s("../internals/get-method");C.exports=function(r,t,e){var l,n;a(r);try{if(!(l=o(r,"return"))){if(t==="throw")throw e;return e}l=d(l,r)}catch(i){n=!0,l=i}if(t==="throw")throw e;if(n)throw l;return a(l),e}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(s,C,_){var d=s("../internals/iterators-core").IteratorPrototype,a=s("../internals/object-create"),o=s("../internals/create-property-descriptor"),r=s("../internals/set-to-string-tag"),t=s("../internals/iterators"),e=function(){return this};C.exports=function(l,n,i,c){var f=n+" Iterator";return l.prototype=a(d,{next:o(+!c,i)}),r(l,f,!1,!0),t[f]=e,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(s,C,_){var d=s("../internals/export"),a=s("../internals/function-call"),o=s("../internals/is-pure"),r=s("../internals/function-name"),t=s("../internals/is-callable"),e=s("../internals/iterator-create-constructor"),l=s("../internals/object-get-prototype-of"),n=s("../internals/object-set-prototype-of"),i=s("../internals/set-to-string-tag"),c=s("../internals/create-non-enumerable-property"),f=s("../internals/define-built-in"),u=s("../internals/well-known-symbol"),p=s("../internals/iterators"),h=s("../internals/iterators-core"),w=r.PROPER,x=r.CONFIGURABLE,R=h.IteratorPrototype,N=h.BUGGY_SAFARI_ITERATORS,F=u("iterator"),I=function(){return this};C.exports=function(P,B,$,D,S,T,v){e($,B,D);var m,b,g,y=function(j){if(j===S&&U)return U;if(!N&&j&&j in A)return A[j];switch(j){case"keys":case"values":case"entries":return function(){return new $(this,j)}}return function(){return new $(this)}},k=B+" Iterator",O=!1,A=P.prototype,z=A[F]||A["@@iterator"]||S&&A[S],U=!N&&z||y(S),X=B==="Array"&&A.entries||z;if(X&&(m=l(X.call(new P)))!==Object.prototype&&m.next&&(o||l(m)===R||(n?n(m,R):t(m[F])||f(m,F,I)),i(m,k,!0,!0),o&&(p[k]=I)),w&&S==="values"&&z&&z.name!=="values"&&(!o&&x?c(A,"name","values"):(O=!0,U=function(){return a(z,this)})),S)if(b={values:y("values"),keys:T?U:y("keys"),entries:y("entries")},v)for(g in b)(N||O||!(g in A))&&f(A,g,b[g]);else d({target:B,proto:!0,forced:N||O},b);return o&&!v||A[F]===U||f(A,F,U,{name:S}),p[B]=U,b}},{"../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(s,C,_){var d,a,o,r=s("../internals/fails"),t=s("../internals/is-callable"),e=s("../internals/is-object"),l=s("../internals/object-create"),n=s("../internals/object-get-prototype-of"),i=s("../internals/define-built-in"),c=s("../internals/well-known-symbol"),f=s("../internals/is-pure"),u=c("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(a=n(n(o)))!==Object.prototype&&(d=a):p=!0),!e(d)||r(function(){var h={};return d[u].call(h)!==h})?d={}:f&&(d=l(d)),t(d[u])||i(d,u,function(){return this}),C.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:p}},{"../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(s,C,_){arguments[4][276][0].apply(_,arguments)},{dup:276}],299:[function(s,C,_){var d=s("../internals/to-length");C.exports=function(a){return d(a.length)}},{"../internals/to-length":343}],300:[function(s,C,_){var d=s("../internals/function-uncurry-this"),a=s("../internals/fails"),o=s("../internals/is-callable"),r=s("../internals/has-own-property"),t=s("../internals/descriptors"),e=s("../internals/function-name").CONFIGURABLE,l=s("../internals/inspect-source"),n=s("../internals/internal-state"),i=n.enforce,c=n.get,f=String,u=Object.defineProperty,p=d("".slice),h=d("".replace),w=d([].join),x=t&&!a(function(){return u(function(){},"length",{value:8}).length!==8}),R=String(String).split("String"),N=C.exports=function(F,I,P){p(f(I),0,7)==="Symbol("&&(I="["+h(f(I),/^Symbol\(([^)]*)\)/,"$1")+"]"),P&&P.getter&&(I="get "+I),P&&P.setter&&(I="set "+I),(!r(F,"name")||e&&F.name!==I)&&(t?u(F,"name",{value:I,configurable:!0}):F.name=I),x&&P&&r(P,"arity")&&F.length!==P.arity&&u(F,"length",{value:P.arity});try{P&&r(P,"constructor")&&P.constructor?t&&u(F,"prototype",{writable:!1}):F.prototype&&(F.prototype=void 0)}catch{}var B=i(F);return r(B,"source")||(B.source=w(R,typeof I=="string"?I:"")),F};Function.prototype.toString=N(function(){return o(this)&&c(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(s,C,_){var d=Math.ceil,a=Math.floor;C.exports=Math.trunc||function(o){var r=+o;return(r>0?a:d)(r)}},{}],302:[function(s,C,_){var d,a,o,r,t,e=s("../internals/global"),l=s("../internals/function-bind-context"),n=s("../internals/object-get-own-property-descriptor").f,i=s("../internals/task").set,c=s("../internals/queue"),f=s("../internals/engine-is-ios"),u=s("../internals/engine-is-ios-pebble"),p=s("../internals/engine-is-webos-webkit"),h=s("../internals/engine-is-node"),w=e.MutationObserver||e.WebKitMutationObserver,x=e.document,R=e.process,N=e.Promise,F=n(e,"queueMicrotask"),I=F&&F.value;if(!I){var P=new c,B=function(){var $,D;for(h&&($=R.domain)&&$.exit();D=P.get();)try{D()}catch(S){throw P.head&&d(),S}$&&$.enter()};f||h||p||!w||!x?!u&&N&&N.resolve?((r=N.resolve(void 0)).constructor=N,t=l(r.then,r),d=function(){t(B)}):h?d=function(){R.nextTick(B)}:(i=l(i,e),d=function(){i(B)}):(a=!0,o=x.createTextNode(""),new w(B).observe(o,{characterData:!0}),d=function(){o.data=a=!a}),I=function($){P.head||d(),P.add($)}}C.exports=I},{"../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(s,C,_){var d=s("../internals/a-callable"),a=TypeError,o=function(r){var t,e;this.promise=new r(function(l,n){if(t!==void 0||e!==void 0)throw new a("Bad Promise constructor");t=l,e=n}),this.resolve=d(t),this.reject=d(e)};C.exports.f=function(r){return new o(r)}},{"../internals/a-callable":222}],304:[function(s,C,_){var d=s("../internals/is-regexp"),a=TypeError;C.exports=function(o){if(d(o))throw new a("The method doesn't accept regular expressions");return o}},{"../internals/is-regexp":291}],305:[function(s,C,_){var d=s("../internals/descriptors"),a=s("../internals/function-uncurry-this"),o=s("../internals/function-call"),r=s("../internals/fails"),t=s("../internals/object-keys"),e=s("../internals/object-get-own-property-symbols"),l=s("../internals/object-property-is-enumerable"),n=s("../internals/to-object"),i=s("../internals/indexed-object"),c=Object.assign,f=Object.defineProperty,u=a([].concat);C.exports=!c||r(function(){if(d&&c({b:1},c(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var p={},h={},w=Symbol("assign detection");return p[w]=7,"abcdefghijklmnopqrst".split("").forEach(function(x){h[x]=x}),c({},p)[w]!==7||t(c({},h)).join("")!=="abcdefghijklmnopqrst"})?function(p,h){for(var w=n(p),x=arguments.length,R=1,N=e.f,F=l.f;x>R;)for(var I,P=i(arguments[R++]),B=N?u(t(P),N(P)):t(P),$=B.length,D=0;$>D;)I=B[D++],d&&!o(F,P,I)||(w[I]=P[I]);return w}:c},{"../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(s,C,_){var d,a=s("../internals/an-object"),o=s("../internals/object-define-properties"),r=s("../internals/enum-bug-keys"),t=s("../internals/hidden-keys"),e=s("../internals/html"),l=s("../internals/document-create-element"),n=s("../internals/shared-key"),i=n("IE_PROTO"),c=function(){},f=function(h){return"<script>"+h+"<\/script>"},u=function(h){h.write(f("")),h.close();var w=h.parentWindow.Object;return h=null,w},p=function(){try{d=new ActiveXObject("htmlfile")}catch{}var h,w;p=typeof document<"u"?document.domain&&d?u(d):((w=l("iframe")).style.display="none",e.appendChild(w),w.src="javascript:",(h=w.contentWindow.document).open(),h.write(f("document.F=Object")),h.close(),h.F):u(d);for(var x=r.length;x--;)delete p.prototype[r[x]];return p()};t[i]=!0,C.exports=Object.create||function(h,w){var x;return h!==null?(c.prototype=a(h),x=new c,c.prototype=null,x[i]=h):x=p(),w===void 0?x:o.f(x,w)}},{"../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(s,C,_){var d=s("../internals/descriptors"),a=s("../internals/v8-prototype-define-bug"),o=s("../internals/object-define-property"),r=s("../internals/an-object"),t=s("../internals/to-indexed-object"),e=s("../internals/object-keys");_.f=d&&!a?Object.defineProperties:function(l,n){r(l);for(var i,c=t(n),f=e(n),u=f.length,p=0;u>p;)o.f(l,i=f[p++],c[i]);return l}},{"../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(s,C,_){var d=s("../internals/descriptors"),a=s("../internals/ie8-dom-define"),o=s("../internals/v8-prototype-define-bug"),r=s("../internals/an-object"),t=s("../internals/to-property-key"),e=TypeError,l=Object.defineProperty,n=Object.getOwnPropertyDescriptor;_.f=d?o?function(i,c,f){if(r(i),c=t(c),r(f),typeof i=="function"&&c==="prototype"&&"value"in f&&"writable"in f&&!f.writable){var u=n(i,c);u&&u.writable&&(i[c]=f.value,f={configurable:"configurable"in f?f.configurable:u.configurable,enumerable:"enumerable"in f?f.enumerable:u.enumerable,writable:!1})}return l(i,c,f)}:l:function(i,c,f){if(r(i),c=t(c),r(f),a)try{return l(i,c,f)}catch{}if("get"in f||"set"in f)throw new e("Accessors not supported");return"value"in f&&(i[c]=f.value),i}},{"../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(s,C,_){var d=s("../internals/descriptors"),a=s("../internals/function-call"),o=s("../internals/object-property-is-enumerable"),r=s("../internals/create-property-descriptor"),t=s("../internals/to-indexed-object"),e=s("../internals/to-property-key"),l=s("../internals/has-own-property"),n=s("../internals/ie8-dom-define"),i=Object.getOwnPropertyDescriptor;_.f=d?i:function(c,f){if(c=t(c),f=e(f),n)try{return i(c,f)}catch{}if(l(c,f))return r(!a(o.f,c,f),c[f])}},{"../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(s,C,_){var d=s("../internals/classof-raw"),a=s("../internals/to-indexed-object"),o=s("../internals/object-get-own-property-names").f,r=s("../internals/array-slice-simple"),t=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];C.exports.f=function(e){return t&&d(e)==="Window"?function(l){try{return o(l)}catch{return r(t)}}(e):o(a(e))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(s,C,_){var d=s("../internals/object-keys-internal"),a=s("../internals/enum-bug-keys").concat("length","prototype");_.f=Object.getOwnPropertyNames||function(o){return d(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(s,C,_){_.f=Object.getOwnPropertySymbols},{}],313:[function(s,C,_){var d=s("../internals/has-own-property"),a=s("../internals/is-callable"),o=s("../internals/to-object"),r=s("../internals/shared-key"),t=s("../internals/correct-prototype-getter"),e=r("IE_PROTO"),l=Object,n=l.prototype;C.exports=t?l.getPrototypeOf:function(i){var c=o(i);if(d(c,e))return c[e];var f=c.constructor;return a(f)&&c instanceof f?f.prototype:c instanceof l?n: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(s,C,_){var d=s("../internals/function-uncurry-this");C.exports=d({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(s,C,_){var d=s("../internals/function-uncurry-this"),a=s("../internals/has-own-property"),o=s("../internals/to-indexed-object"),r=s("../internals/array-includes").indexOf,t=s("../internals/hidden-keys"),e=d([].push);C.exports=function(l,n){var i,c=o(l),f=0,u=[];for(i in c)!a(t,i)&&a(c,i)&&e(u,i);for(;n.length>f;)a(c,i=n[f++])&&(~r(u,i)||e(u,i));return u}},{"../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(s,C,_){var d=s("../internals/object-keys-internal"),a=s("../internals/enum-bug-keys");C.exports=Object.keys||function(o){return d(o,a)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(s,C,_){var d={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!d.call({1:2},1);_.f=o?function(r){var t=a(this,r);return!!t&&t.enumerable}:d},{}],318:[function(s,C,_){var d=s("../internals/function-uncurry-this-accessor"),a=s("../internals/an-object"),o=s("../internals/a-possible-prototype");C.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,t=!1,e={};try{(r=d(Object.prototype,"__proto__","set"))(e,[]),t=e instanceof Array}catch{}return function(l,n){return a(l),o(n),t?r(l,n):l.__proto__=n,l}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(s,C,_){var d=s("../internals/descriptors"),a=s("../internals/fails"),o=s("../internals/function-uncurry-this"),r=s("../internals/object-get-prototype-of"),t=s("../internals/object-keys"),e=s("../internals/to-indexed-object"),l=o(s("../internals/object-property-is-enumerable").f),n=o([].push),i=d&&a(function(){var f=Object.create(null);return f[2]=2,!l(f,2)}),c=function(f){return function(u){for(var p,h=e(u),w=t(h),x=i&&r(h)===null,R=w.length,N=0,F=[];R>N;)p=w[N++],d&&!(x?p in h:l(h,p))||n(F,f?[p,h[p]]:h[p]);return F}};C.exports={entries:c(!0),values:c(!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(s,C,_){var d=s("../internals/function-call"),a=s("../internals/is-callable"),o=s("../internals/is-object"),r=TypeError;C.exports=function(t,e){var l,n;if(e==="string"&&a(l=t.toString)&&!o(n=d(l,t))||a(l=t.valueOf)&&!o(n=d(l,t))||e!=="string"&&a(l=t.toString)&&!o(n=d(l,t)))return n;throw new r("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(s,C,_){var d=s("../internals/get-built-in"),a=s("../internals/function-uncurry-this"),o=s("../internals/object-get-own-property-names"),r=s("../internals/object-get-own-property-symbols"),t=s("../internals/an-object"),e=a([].concat);C.exports=d("Reflect","ownKeys")||function(l){var n=o.f(t(l)),i=r.f;return i?e(n,i(l)):n}},{"../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(s,C,_){var d=s("../internals/global");C.exports=d},{"../internals/global":274}],323:[function(s,C,_){C.exports=function(d){try{return{error:!1,value:d()}}catch(a){return{error:!0,value:a}}}},{}],324:[function(s,C,_){var d=s("../internals/global"),a=s("../internals/promise-native-constructor"),o=s("../internals/is-callable"),r=s("../internals/is-forced"),t=s("../internals/inspect-source"),e=s("../internals/well-known-symbol"),l=s("../internals/engine-is-browser"),n=s("../internals/engine-is-deno"),i=s("../internals/is-pure"),c=s("../internals/engine-v8-version"),f=a&&a.prototype,u=e("species"),p=!1,h=o(d.PromiseRejectionEvent),w=r("Promise",function(){var x=t(a),R=x!==String(a);if(!R&&c===66||i&&(!f.catch||!f.finally))return!0;if(!c||c<51||!/native code/.test(x)){var N=new a(function(I){I(1)}),F=function(I){I(function(){},function(){})};if((N.constructor={})[u]=F,!(p=N.then(function(){})instanceof F))return!0}return!R&&(l||n)&&!h});C.exports={CONSTRUCTOR:w,REJECTION_EVENT:h,SUBCLASSING:p}},{"../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(s,C,_){var d=s("../internals/global");C.exports=d.Promise},{"../internals/global":274}],326:[function(s,C,_){var d=s("../internals/an-object"),a=s("../internals/is-object"),o=s("../internals/new-promise-capability");C.exports=function(r,t){if(d(r),a(t)&&t.constructor===r)return t;var e=o.f(r);return(0,e.resolve)(t),e.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(s,C,_){var d=s("../internals/promise-native-constructor"),a=s("../internals/check-correctness-of-iteration"),o=s("../internals/promise-constructor-detection").CONSTRUCTOR;C.exports=o||!a(function(r){d.all(r).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(s,C,_){var d=function(){this.head=null,this.tail=null};d.prototype={add:function(a){var o={item:a,next:null},r=this.tail;r?r.next=o:this.head=o,this.tail=o},get:function(){var a=this.head;if(a)return(this.head=a.next)===null&&(this.tail=null),a.item}},C.exports=d},{}],329:[function(s,C,_){var d=s("../internals/is-null-or-undefined"),a=TypeError;C.exports=function(o){if(d(o))throw new a("Can't call method on "+o);return o}},{"../internals/is-null-or-undefined":288}],330:[function(s,C,_){var d=s("../internals/get-built-in"),a=s("../internals/define-built-in-accessor"),o=s("../internals/well-known-symbol"),r=s("../internals/descriptors"),t=o("species");C.exports=function(e){var l=d(e);r&&l&&!l[t]&&a(l,t,{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(s,C,_){var d=s("../internals/object-define-property").f,a=s("../internals/has-own-property"),o=s("../internals/well-known-symbol")("toStringTag");C.exports=function(r,t,e){r&&!e&&(r=r.prototype),r&&!a(r,o)&&d(r,o,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(s,C,_){var d=s("../internals/shared"),a=s("../internals/uid"),o=d("keys");C.exports=function(r){return o[r]||(o[r]=a(r))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(s,C,_){var d=s("../internals/global"),a=s("../internals/define-global-property"),o=d["__core-js_shared__"]||a("__core-js_shared__",{});C.exports=o},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(s,C,_){var d=s("../internals/is-pure"),a=s("../internals/shared-store");(C.exports=function(o,r){return a[o]||(a[o]=r!==void 0?r:{})})("versions",[]).push({version:"3.33.0",mode:d?"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(s,C,_){var d=s("../internals/an-object"),a=s("../internals/a-constructor"),o=s("../internals/is-null-or-undefined"),r=s("../internals/well-known-symbol")("species");C.exports=function(t,e){var l,n=d(t).constructor;return n===void 0||o(l=d(n)[r])?e:a(l)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(s,C,_){var d=s("../internals/engine-v8-version"),a=s("../internals/fails"),o=s("../internals/global").String;C.exports=!!Object.getOwnPropertySymbols&&!a(function(){var r=Symbol("symbol detection");return!o(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&d&&d<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(s,C,_){var d=s("../internals/function-call"),a=s("../internals/get-built-in"),o=s("../internals/well-known-symbol"),r=s("../internals/define-built-in");C.exports=function(){var t=a("Symbol"),e=t&&t.prototype,l=e&&e.valueOf,n=o("toPrimitive");e&&!e[n]&&r(e,n,function(i){return d(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(s,C,_){var d=s("../internals/symbol-constructor-detection");C.exports=d&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(s,C,_){var d,a,o,r,t=s("../internals/global"),e=s("../internals/function-apply"),l=s("../internals/function-bind-context"),n=s("../internals/is-callable"),i=s("../internals/has-own-property"),c=s("../internals/fails"),f=s("../internals/html"),u=s("../internals/array-slice"),p=s("../internals/document-create-element"),h=s("../internals/validate-arguments-length"),w=s("../internals/engine-is-ios"),x=s("../internals/engine-is-node"),R=t.setImmediate,N=t.clearImmediate,F=t.process,I=t.Dispatch,P=t.Function,B=t.MessageChannel,$=t.String,D=0,S={};c(function(){d=t.location});var T=function(g){if(i(S,g)){var y=S[g];delete S[g],y()}},v=function(g){return function(){T(g)}},m=function(g){T(g.data)},b=function(g){t.postMessage($(g),d.protocol+"//"+d.host)};R&&N||(R=function(g){h(arguments.length,1);var y=n(g)?g:P(g),k=u(arguments,1);return S[++D]=function(){e(y,void 0,k)},a(D),D},N=function(g){delete S[g]},x?a=function(g){F.nextTick(v(g))}:I&&I.now?a=function(g){I.now(v(g))}:B&&!w?(r=(o=new B).port2,o.port1.onmessage=m,a=l(r.postMessage,r)):t.addEventListener&&n(t.postMessage)&&!t.importScripts&&d&&d.protocol!=="file:"&&!c(b)?(a=b,t.addEventListener("message",m,!1)):a="onreadystatechange"in p("script")?function(g){f.appendChild(p("script")).onreadystatechange=function(){f.removeChild(this),T(g)}}:function(g){setTimeout(v(g),0)}),C.exports={set:R,clear:N}},{"../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(s,C,_){var d=s("../internals/to-integer-or-infinity"),a=Math.max,o=Math.min;C.exports=function(r,t){var e=d(r);return e<0?a(e+t,0):o(e,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(s,C,_){var d=s("../internals/indexed-object"),a=s("../internals/require-object-coercible");C.exports=function(o){return d(a(o))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(s,C,_){var d=s("../internals/math-trunc");C.exports=function(a){var o=+a;return o!=o||o===0?0:d(o)}},{"../internals/math-trunc":301}],343:[function(s,C,_){var d=s("../internals/to-integer-or-infinity"),a=Math.min;C.exports=function(o){return o>0?a(d(o),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(s,C,_){var d=s("../internals/require-object-coercible"),a=Object;C.exports=function(o){return a(d(o))}},{"../internals/require-object-coercible":329}],345:[function(s,C,_){var d=s("../internals/function-call"),a=s("../internals/is-object"),o=s("../internals/is-symbol"),r=s("../internals/get-method"),t=s("../internals/ordinary-to-primitive"),e=s("../internals/well-known-symbol"),l=TypeError,n=e("toPrimitive");C.exports=function(i,c){if(!a(i)||o(i))return i;var f,u=r(i,n);if(u){if(c===void 0&&(c="default"),f=d(u,i,c),!a(f)||o(f))return f;throw new l("Can't convert object to primitive value")}return c===void 0&&(c="number"),t(i,c)}},{"../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(s,C,_){var d=s("../internals/to-primitive"),a=s("../internals/is-symbol");C.exports=function(o){var r=d(o,"string");return a(r)?r:r+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(s,C,_){var d={};d[s("../internals/well-known-symbol")("toStringTag")]="z",C.exports=String(d)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(s,C,_){var d=s("../internals/classof"),a=String;C.exports=function(o){if(d(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return a(o)}},{"../internals/classof":236}],349:[function(s,C,_){var d=String;C.exports=function(a){try{return d(a)}catch{return"Object"}}},{}],350:[function(s,C,_){var d=s("../internals/function-uncurry-this"),a=0,o=Math.random(),r=d(1 .toString);C.exports=function(t){return"Symbol("+(t===void 0?"":t)+")_"+r(++a+o,36)}},{"../internals/function-uncurry-this":268}],351:[function(s,C,_){var d=s("../internals/symbol-constructor-detection");C.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(s,C,_){var d=s("../internals/descriptors"),a=s("../internals/fails");C.exports=d&&a(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(s,C,_){var d=TypeError;C.exports=function(a,o){if(a<o)throw new d("Not enough arguments");return a}},{}],354:[function(s,C,_){var d=s("../internals/global"),a=s("../internals/is-callable"),o=d.WeakMap;C.exports=a(o)&&/native code/.test(String(o))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(s,C,_){var d=s("../internals/path"),a=s("../internals/has-own-property"),o=s("../internals/well-known-symbol-wrapped"),r=s("../internals/object-define-property").f;C.exports=function(t){var e=d.Symbol||(d.Symbol={});a(e,t)||r(e,t,{value:o.f(t)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(s,C,_){var d=s("../internals/well-known-symbol");_.f=d},{"../internals/well-known-symbol":357}],357:[function(s,C,_){var d=s("../internals/global"),a=s("../internals/shared"),o=s("../internals/has-own-property"),r=s("../internals/uid"),t=s("../internals/symbol-constructor-detection"),e=s("../internals/use-symbol-as-uid"),l=d.Symbol,n=a("wks"),i=e?l.for||l:l&&l.withoutSetter||r;C.exports=function(c){return o(n,c)||(n[c]=t&&o(l,c)?l[c]:i("Symbol."+c)),n[c]}},{"../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(s,C,_){var d=s("../internals/export"),a=s("../internals/array-iteration").findIndex,o=s("../internals/add-to-unscopables"),r=!0;"findIndex"in[]&&Array(1).findIndex(function(){r=!1}),d({target:"Array",proto:!0,forced:r},{findIndex:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(s,C,_){var d=s("../internals/export"),a=s("../internals/array-iteration").find,o=s("../internals/add-to-unscopables"),r=!0;"find"in[]&&Array(1).find(function(){r=!1}),d({target:"Array",proto:!0,forced:r},{find:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(s,C,_){var d=s("../internals/export"),a=s("../internals/array-includes").includes,o=s("../internals/fails"),r=s("../internals/add-to-unscopables");d({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(s,C,_){var d=s("../internals/to-indexed-object"),a=s("../internals/add-to-unscopables"),o=s("../internals/iterators"),r=s("../internals/internal-state"),t=s("../internals/object-define-property").f,e=s("../internals/iterator-define"),l=s("../internals/create-iter-result-object"),n=s("../internals/is-pure"),i=s("../internals/descriptors"),c=r.set,f=r.getterFor("Array Iterator");C.exports=e(Array,"Array",function(p,h){c(this,{type:"Array Iterator",target:d(p),index:0,kind:h})},function(){var p=f(this),h=p.target,w=p.kind,x=p.index++;if(!h||x>=h.length)return p.target=void 0,l(void 0,!0);switch(w){case"keys":return l(x,!1);case"values":return l(h[x],!1)}return l([x,h[x]],!1)},"values");var u=o.Arguments=o.Array;if(a("keys"),a("values"),a("entries"),!n&&i&&u.name!=="values")try{t(u,"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(s,C,_){var d=s("../internals/export"),a=s("../internals/get-built-in"),o=s("../internals/function-apply"),r=s("../internals/function-call"),t=s("../internals/function-uncurry-this"),e=s("../internals/fails"),l=s("../internals/is-callable"),n=s("../internals/is-symbol"),i=s("../internals/array-slice"),c=s("../internals/get-json-replacer-function"),f=s("../internals/symbol-constructor-detection"),u=String,p=a("JSON","stringify"),h=t(/./.exec),w=t("".charAt),x=t("".charCodeAt),R=t("".replace),N=t(1 .toString),F=/[\uD800-\uDFFF]/g,I=/^[\uD800-\uDBFF]$/,P=/^[\uDC00-\uDFFF]$/,B=!f||e(function(){var T=a("Symbol")("stringify detection");return p([T])!=="[null]"||p({a:T})!=="{}"||p(Object(T))!=="{}"}),$=e(function(){return p("\uDF06\uD834")!=='"\\udf06\\ud834"'||p("\uDEAD")!=='"\\udead"'}),D=function(T,v){var m=i(arguments),b=c(v);if(l(b)||T!==void 0&&!n(T))return m[1]=function(g,y){if(l(b)&&(y=r(b,this,u(g),y)),!n(y))return y},o(p,null,m)},S=function(T,v,m){var b=w(m,v-1),g=w(m,v+1);return h(I,T)&&!h(P,g)||h(P,T)&&!h(I,b)?"\\u"+N(x(T,0),16):T};p&&d({target:"JSON",stat:!0,arity:3,forced:B||$},{stringify:function(T,v,m){var b=i(arguments),g=o(B?D:p,null,b);return $&&typeof g=="string"?R(g,F,S):g}})},{"../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(s,C,_){s("../internals/export")({target:"Number",stat:!0},{isNaN:function(d){return d!=d}})},{"../internals/export":259}],364:[function(s,C,_){var d=s("../internals/export"),a=s("../internals/object-assign");d({target:"Object",stat:!0,arity:2,forced:Object.assign!==a},{assign:a})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(s,C,_){var d=s("../internals/export"),a=s("../internals/symbol-constructor-detection"),o=s("../internals/fails"),r=s("../internals/object-get-own-property-symbols"),t=s("../internals/to-object");d({target:"Object",stat:!0,forced:!a||o(function(){r.f(1)})},{getOwnPropertySymbols:function(e){var l=r.f;return l?l(t(e)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(s,C,_){var d=s("../internals/export"),a=s("../internals/to-object"),o=s("../internals/object-keys");d({target:"Object",stat:!0,forced:s("../internals/fails")(function(){o(1)})},{keys:function(r){return o(a(r))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(s,C,_){var d=s("../internals/export"),a=s("../internals/object-to-array").values;d({target:"Object",stat:!0},{values:function(o){return a(o)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(s,C,_){var d=s("../internals/export"),a=s("../internals/function-call"),o=s("../internals/a-callable"),r=s("../internals/new-promise-capability"),t=s("../internals/perform"),e=s("../internals/iterate");d({target:"Promise",stat:!0,forced:s("../internals/promise-statics-incorrect-iteration")},{all:function(l){var n=this,i=r.f(n),c=i.resolve,f=i.reject,u=t(function(){var p=o(n.resolve),h=[],w=0,x=1;e(l,function(R){var N=w++,F=!1;x++,a(p,n,R).then(function(I){F||(F=!0,h[N]=I,--x||c(h))},f)}),--x||c(h)});return u.error&&f(u.value),i.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(s,C,_){var d=s("../internals/export"),a=s("../internals/is-pure"),o=s("../internals/promise-constructor-detection").CONSTRUCTOR,r=s("../internals/promise-native-constructor"),t=s("../internals/get-built-in"),e=s("../internals/is-callable"),l=s("../internals/define-built-in"),n=r&&r.prototype;if(d({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(c){return this.then(void 0,c)}}),!a&&e(r)){var i=t("Promise").prototype.catch;n.catch!==i&&l(n,"catch",i,{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(s,C,_){var d,a,o,r=s("../internals/export"),t=s("../internals/is-pure"),e=s("../internals/engine-is-node"),l=s("../internals/global"),n=s("../internals/function-call"),i=s("../internals/define-built-in"),c=s("../internals/object-set-prototype-of"),f=s("../internals/set-to-string-tag"),u=s("../internals/set-species"),p=s("../internals/a-callable"),h=s("../internals/is-callable"),w=s("../internals/is-object"),x=s("../internals/an-instance"),R=s("../internals/species-constructor"),N=s("../internals/task").set,F=s("../internals/microtask"),I=s("../internals/host-report-errors"),P=s("../internals/perform"),B=s("../internals/queue"),$=s("../internals/internal-state"),D=s("../internals/promise-native-constructor"),S=s("../internals/promise-constructor-detection"),T=s("../internals/new-promise-capability"),v=S.CONSTRUCTOR,m=S.REJECTION_EVENT,b=S.SUBCLASSING,g=$.getterFor("Promise"),y=$.set,k=D&&D.prototype,O=D,A=k,z=l.TypeError,U=l.document,X=l.process,j=T.f,V=j,E=!!(U&&U.createEvent&&l.dispatchEvent),M=function(J){var st;return!(!w(J)||!h(st=J.then))&&st},L=function(J,st){var it,ot,ut,ct=st.value,pt=st.state===1,St=pt?J.ok:J.fail,xt=J.resolve,yt=J.reject,Ot=J.domain;try{St?(pt||(st.rejection===2&&rt(st),st.rejection=1),St===!0?it=ct:(Ot&&Ot.enter(),it=St(ct),Ot&&(Ot.exit(),ut=!0)),it===J.promise?yt(new z("Promise-chain cycle")):(ot=M(it))?n(ot,it,xt,yt):xt(it)):yt(ct)}catch(At){Ot&&!ut&&Ot.exit(),yt(At)}},q=function(J,st){J.notified||(J.notified=!0,F(function(){for(var it,ot=J.reactions;it=ot.get();)L(it,J);J.notified=!1,st&&!J.rejection&&W(J)}))},Z=function(J,st,it){var ot,ut;E?((ot=U.createEvent("Event")).promise=st,ot.reason=it,ot.initEvent(J,!1,!0),l.dispatchEvent(ot)):ot={promise:st,reason:it},!m&&(ut=l["on"+J])?ut(ot):J==="unhandledrejection"&&I("Unhandled promise rejection",it)},W=function(J){n(N,l,function(){var st,it=J.facade,ot=J.value;if(K(J)&&(st=P(function(){e?X.emit("unhandledRejection",ot,it):Z("unhandledrejection",it,ot)}),J.rejection=e||K(J)?2:1,st.error))throw st.value})},K=function(J){return J.rejection!==1&&!J.parent},rt=function(J){n(N,l,function(){var st=J.facade;e?X.emit("rejectionHandled",st):Z("rejectionhandled",st,J.value)})},et=function(J,st,it){return function(ot){J(st,ot,it)}},Y=function(J,st,it){J.done||(J.done=!0,it&&(J=it),J.value=st,J.state=2,q(J,!0))},Q=function(J,st,it){if(!J.done){J.done=!0,it&&(J=it);try{if(J.facade===st)throw new z("Promise can't be resolved itself");var ot=M(st);ot?F(function(){var ut={done:!1};try{n(ot,st,et(Q,ut,J),et(Y,ut,J))}catch(ct){Y(ut,ct,J)}}):(J.value=st,J.state=1,q(J,!1))}catch(ut){Y({done:!1},ut,J)}}};if(v&&(A=(O=function(J){x(this,A),p(J),n(d,this);var st=g(this);try{J(et(Q,st),et(Y,st))}catch(it){Y(st,it)}}).prototype,(d=function(J){y(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new B,rejection:!1,state:0,value:void 0})}).prototype=i(A,"then",function(J,st){var it=g(this),ot=j(R(this,O));return it.parent=!0,ot.ok=!h(J)||J,ot.fail=h(st)&&st,ot.domain=e?X.domain:void 0,it.state===0?it.reactions.add(ot):F(function(){L(ot,it)}),ot.promise}),a=function(){var J=new d,st=g(J);this.promise=J,this.resolve=et(Q,st),this.reject=et(Y,st)},T.f=j=function(J){return J===O||J===void 0?new a(J):V(J)},!t&&h(D)&&k!==Object.prototype)){o=k.then,b||i(k,"then",function(J,st){var it=this;return new O(function(ot,ut){n(o,it,ot,ut)}).then(J,st)},{unsafe:!0});try{delete k.constructor}catch{}c&&c(k,A)}r({global:!0,constructor:!0,wrap:!0,forced:v},{Promise:O}),f(O,"Promise",!1,!0),u("Promise")},{"../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(s,C,_){var d=s("../internals/export"),a=s("../internals/is-pure"),o=s("../internals/promise-native-constructor"),r=s("../internals/fails"),t=s("../internals/get-built-in"),e=s("../internals/is-callable"),l=s("../internals/species-constructor"),n=s("../internals/promise-resolve"),i=s("../internals/define-built-in"),c=o&&o.prototype;if(d({target:"Promise",proto:!0,real:!0,forced:!!o&&r(function(){c.finally.call({then:function(){}},function(){})})},{finally:function(u){var p=l(this,t("Promise")),h=e(u);return this.then(h?function(w){return n(p,u()).then(function(){return w})}:u,h?function(w){return n(p,u()).then(function(){throw w})}:u)}}),!a&&e(o)){var f=t("Promise").prototype.finally;c.finally!==f&&i(c,"finally",f,{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(s,C,_){s("../modules/es.promise.constructor"),s("../modules/es.promise.all"),s("../modules/es.promise.catch"),s("../modules/es.promise.race"),s("../modules/es.promise.reject"),s("../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(s,C,_){var d=s("../internals/export"),a=s("../internals/function-call"),o=s("../internals/a-callable"),r=s("../internals/new-promise-capability"),t=s("../internals/perform"),e=s("../internals/iterate");d({target:"Promise",stat:!0,forced:s("../internals/promise-statics-incorrect-iteration")},{race:function(l){var n=this,i=r.f(n),c=i.reject,f=t(function(){var u=o(n.resolve);e(l,function(p){a(u,n,p).then(i.resolve,c)})});return f.error&&c(f.value),i.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(s,C,_){var d=s("../internals/export"),a=s("../internals/function-call"),o=s("../internals/new-promise-capability");d({target:"Promise",stat:!0,forced:s("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(r){var t=o.f(this);return a(t.reject,void 0,r),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(s,C,_){var d=s("../internals/export"),a=s("../internals/get-built-in"),o=s("../internals/is-pure"),r=s("../internals/promise-native-constructor"),t=s("../internals/promise-constructor-detection").CONSTRUCTOR,e=s("../internals/promise-resolve"),l=a("Promise"),n=o&&!t;d({target:"Promise",stat:!0,forced:o||t},{resolve:function(i){return e(n&&this===l?r:this,i)}})},{"../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(s,C,_){var d=s("../internals/export"),a=s("../internals/function-uncurry-this"),o=s("../internals/to-absolute-index"),r=RangeError,t=String.fromCharCode,e=String.fromCodePoint,l=a([].join);d({target:"String",stat:!0,arity:1,forced:!!e&&e.length!==1},{fromCodePoint:function(n){for(var i,c=[],f=arguments.length,u=0;f>u;){if(i=+arguments[u++],o(i,1114111)!==i)throw new r(i+" is not a valid code point");c[u]=i<65536?t(i):t(55296+((i-=65536)>>10),i%1024+56320)}return l(c,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(s,C,_){var d=s("../internals/export"),a=s("../internals/function-uncurry-this"),o=s("../internals/not-a-regexp"),r=s("../internals/require-object-coercible"),t=s("../internals/to-string"),e=s("../internals/correct-is-regexp-logic"),l=a("".indexOf);d({target:"String",proto:!0,forced:!e("includes")},{includes:function(n){return!!~l(t(r(this)),t(o(n)),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(s,C,_){s("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(s,C,_){var d=s("../internals/export"),a=s("../internals/global"),o=s("../internals/function-call"),r=s("../internals/function-uncurry-this"),t=s("../internals/is-pure"),e=s("../internals/descriptors"),l=s("../internals/symbol-constructor-detection"),n=s("../internals/fails"),i=s("../internals/has-own-property"),c=s("../internals/object-is-prototype-of"),f=s("../internals/an-object"),u=s("../internals/to-indexed-object"),p=s("../internals/to-property-key"),h=s("../internals/to-string"),w=s("../internals/create-property-descriptor"),x=s("../internals/object-create"),R=s("../internals/object-keys"),N=s("../internals/object-get-own-property-names"),F=s("../internals/object-get-own-property-names-external"),I=s("../internals/object-get-own-property-symbols"),P=s("../internals/object-get-own-property-descriptor"),B=s("../internals/object-define-property"),$=s("../internals/object-define-properties"),D=s("../internals/object-property-is-enumerable"),S=s("../internals/define-built-in"),T=s("../internals/define-built-in-accessor"),v=s("../internals/shared"),m=s("../internals/shared-key"),b=s("../internals/hidden-keys"),g=s("../internals/uid"),y=s("../internals/well-known-symbol"),k=s("../internals/well-known-symbol-wrapped"),O=s("../internals/well-known-symbol-define"),A=s("../internals/symbol-define-to-primitive"),z=s("../internals/set-to-string-tag"),U=s("../internals/internal-state"),X=s("../internals/array-iteration").forEach,j=m("hidden"),V=U.set,E=U.getterFor("Symbol"),M=Object.prototype,L=a.Symbol,q=L&&L.prototype,Z=a.RangeError,W=a.TypeError,K=a.QObject,rt=P.f,et=B.f,Y=F.f,Q=D.f,J=r([].push),st=v("symbols"),it=v("op-symbols"),ot=v("wks"),ut=!K||!K.prototype||!K.prototype.findChild,ct=function(kt,bt,Ct){var Et=rt(M,bt);Et&&delete M[bt],et(kt,bt,Ct),Et&&kt!==M&&et(M,bt,Et)},pt=e&&n(function(){return x(et({},"a",{get:function(){return et(this,"a",{value:7}).a}})).a!==7})?ct:et,St=function(kt,bt){var Ct=st[kt]=x(q);return V(Ct,{type:"Symbol",tag:kt,description:bt}),e||(Ct.description=bt),Ct},xt=function(kt,bt,Ct){kt===M&&xt(it,bt,Ct),f(kt);var Et=p(bt);return f(Ct),i(st,Et)?(Ct.enumerable?(i(kt,j)&&kt[j][Et]&&(kt[j][Et]=!1),Ct=x(Ct,{enumerable:w(0,!1)})):(i(kt,j)||et(kt,j,w(1,{})),kt[j][Et]=!0),pt(kt,Et,Ct)):et(kt,Et,Ct)},yt=function(kt,bt){f(kt);var Ct=u(bt),Et=R(Ct).concat(It(Ct));return X(Et,function(Mt){e&&!o(Ot,Ct,Mt)||xt(kt,Mt,Ct[Mt])}),kt},Ot=function(kt){var bt=p(kt),Ct=o(Q,this,bt);return!(this===M&&i(st,bt)&&!i(it,bt))&&(!(Ct||!i(this,bt)||!i(st,bt)||i(this,j)&&this[j][bt])||Ct)},At=function(kt,bt){var Ct=u(kt),Et=p(bt);if(Ct!==M||!i(st,Et)||i(it,Et)){var Mt=rt(Ct,Et);return!Mt||!i(st,Et)||i(Ct,j)&&Ct[j][Et]||(Mt.enumerable=!0),Mt}},Rt=function(kt){var bt=Y(u(kt)),Ct=[];return X(bt,function(Et){i(st,Et)||i(b,Et)||J(Ct,Et)}),Ct},It=function(kt){var bt=kt===M,Ct=Y(bt?it:u(kt)),Et=[];return X(Ct,function(Mt){!i(st,Mt)||bt&&!i(M,Mt)||J(Et,st[Mt])}),Et};l||(S(q=(L=function(){if(c(q,this))throw new W("Symbol is not a constructor");var kt=arguments.length&&arguments[0]!==void 0?h(arguments[0]):void 0,bt=g(kt),Ct=function(Et){this===M&&o(Ct,it,Et),i(this,j)&&i(this[j],bt)&&(this[j][bt]=!1);var Mt=w(1,Et);try{pt(this,bt,Mt)}catch(Kt){if(!(Kt instanceof Z))throw Kt;ct(this,bt,Mt)}};return e&&ut&&pt(M,bt,{configurable:!0,set:Ct}),St(bt,kt)}).prototype,"toString",function(){return E(this).tag}),S(L,"withoutSetter",function(kt){return St(g(kt),kt)}),D.f=Ot,B.f=xt,$.f=yt,P.f=At,N.f=F.f=Rt,I.f=It,k.f=function(kt){return St(y(kt),kt)},e&&(T(q,"description",{configurable:!0,get:function(){return E(this).description}}),t||S(M,"propertyIsEnumerable",Ot,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:L}),X(R(ot),function(kt){O(kt)}),d({target:"Symbol",stat:!0,forced:!l},{useSetter:function(){ut=!0},useSimple:function(){ut=!1}}),d({target:"Object",stat:!0,forced:!l,sham:!e},{create:function(kt,bt){return bt===void 0?x(kt):yt(x(kt),bt)},defineProperty:xt,defineProperties:yt,getOwnPropertyDescriptor:At}),d({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:Rt}),A(),z(L,"Symbol"),b[j]=!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(s,C,_){var d=s("../internals/export"),a=s("../internals/get-built-in"),o=s("../internals/has-own-property"),r=s("../internals/to-string"),t=s("../internals/shared"),e=s("../internals/symbol-registry-detection"),l=t("string-to-symbol-registry"),n=t("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!e},{for:function(i){var c=r(i);if(o(l,c))return l[c];var f=a("Symbol")(c);return l[c]=f,n[f]=c,f}})},{"../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(s,C,_){s("../modules/es.symbol.constructor"),s("../modules/es.symbol.for"),s("../modules/es.symbol.key-for"),s("../modules/es.json.stringify"),s("../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(s,C,_){var d=s("../internals/export"),a=s("../internals/has-own-property"),o=s("../internals/is-symbol"),r=s("../internals/try-to-string"),t=s("../internals/shared"),e=s("../internals/symbol-registry-detection"),l=t("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!e},{keyFor:function(n){if(!o(n))throw new TypeError(r(n)+" is not a symbol");if(a(l,n))return l[n]}})},{"../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(s,C,_){function d(a){return Object.prototype.toString.call(a)}_.isArray=function(a){return Array.isArray?Array.isArray(a):d(a)==="[object Array]"},_.isBoolean=function(a){return typeof a=="boolean"},_.isNull=function(a){return a===null},_.isNullOrUndefined=function(a){return a==null},_.isNumber=function(a){return typeof a=="number"},_.isString=function(a){return typeof a=="string"},_.isSymbol=function(a){return typeof a=="symbol"},_.isUndefined=function(a){return a===void 0},_.isRegExp=function(a){return d(a)==="[object RegExp]"},_.isObject=function(a){return typeof a=="object"&&a!==null},_.isDate=function(a){return d(a)==="[object Date]"},_.isError=function(a){return d(a)==="[object Error]"||a instanceof Error},_.isFunction=function(a){return typeof a=="function"},_.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===void 0},_.isBuffer=s("buffer").Buffer.isBuffer},{buffer:220}],384:[function(s,C,_){(function(d){(function(){var a=s("elliptic"),o=s("bn.js");C.exports=function(l){return new t(l)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function t(l){this.curveType=r[l],this.curveType||(this.curveType={name:l}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function e(l,n,i){Array.isArray(l)||(l=l.toArray());var c=new d(l);if(i&&c.length<i){var f=new d(i-c.length);f.fill(0),c=d.concat([f,c])}return n?c.toString(n):c}r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,t.prototype.generateKeys=function(l,n){return this.keys=this.curve.genKeyPair(),this.getPublicKey(l,n)},t.prototype.computeSecret=function(l,n,i){return n=n||"utf8",d.isBuffer(l)||(l=new d(l,n)),e(this.curve.keyFromPublic(l).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength)},t.prototype.getPublicKey=function(l,n){var i=this.keys.getPublic(n==="compressed",!0);return n==="hybrid"&&(i[i.length-1]%2?i[0]=7:i[0]=6),e(i,l)},t.prototype.getPrivateKey=function(l){return e(this.keys.getPrivate(),l)},t.prototype.setPublicKey=function(l,n){return n=n||"utf8",d.isBuffer(l)||(l=new d(l,n)),this.keys._importPublic(l),this},t.prototype.setPrivateKey=function(l,n){n=n||"utf8",d.isBuffer(l)||(l=new d(l,n));var i=new o(l);return i=i.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(i),this}}).call(this)}).call(this,s("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(s,C,_){arguments[4][184][0].apply(_,arguments)},{buffer:188,dup:184}],386:[function(s,C,_){var d=s("inherits"),a=s("md5.js"),o=s("ripemd160"),r=s("sha.js"),t=s("cipher-base");function e(l){t.call(this,"digest"),this._hash=l}d(e,t),e.prototype._update=function(l){this._hash.update(l)},e.prototype._final=function(){return this._hash.digest()},C.exports=function(l){return(l=l.toLowerCase())==="md5"?new a:l==="rmd160"||l==="ripemd160"?new o:new e(r(l))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(s,C,_){var d=s("md5.js");C.exports=function(a){return new d().update(a).digest()}},{"md5.js":450}],388:[function(s,C,_){var d=s("inherits"),a=s("./legacy"),o=s("cipher-base"),r=s("safe-buffer").Buffer,t=s("create-hash/md5"),e=s("ripemd160"),l=s("sha.js"),n=r.alloc(128);function i(c,f){o.call(this,"digest"),typeof f=="string"&&(f=r.from(f));var u=c==="sha512"||c==="sha384"?128:64;this._alg=c,this._key=f,f.length>u?f=(c==="rmd160"?new e:l(c)).update(f).digest():f.length<u&&(f=r.concat([f,n],u));for(var p=this._ipad=r.allocUnsafe(u),h=this._opad=r.allocUnsafe(u),w=0;w<u;w++)p[w]=54^f[w],h[w]=92^f[w];this._hash=c==="rmd160"?new e:l(c),this._hash.update(p)}d(i,o),i.prototype._update=function(c){this._hash.update(c)},i.prototype._final=function(){var c=this._hash.digest();return(this._alg==="rmd160"?new e:l(this._alg)).update(this._opad).update(c).digest()},C.exports=function(c,f){return(c=c.toLowerCase())==="rmd160"||c==="ripemd160"?new i("rmd160",f):c==="md5"?new a(t,f):new i(c,f)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(s,C,_){var d=s("inherits"),a=s("safe-buffer").Buffer,o=s("cipher-base"),r=a.alloc(128);function t(e,l){o.call(this,"digest"),typeof l=="string"&&(l=a.from(l)),this._alg=e,this._key=l,l.length>64?l=e(l):l.length<64&&(l=a.concat([l,r],64));for(var n=this._ipad=a.allocUnsafe(64),i=this._opad=a.allocUnsafe(64),c=0;c<64;c++)n[c]=54^l[c],i[c]=92^l[c];this._hash=[n]}d(t,o),t.prototype._update=function(e){this._hash.push(e)},t.prototype._final=function(){var e=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,e]))},C.exports=t},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(s,C,_){_.randomBytes=_.rng=_.pseudoRandomBytes=_.prng=s("randombytes"),_.createHash=_.Hash=s("create-hash"),_.createHmac=_.Hmac=s("create-hmac");var d=s("browserify-sign/algos"),a=Object.keys(d),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);_.getHashes=function(){return o};var r=s("pbkdf2");_.pbkdf2=r.pbkdf2,_.pbkdf2Sync=r.pbkdf2Sync;var t=s("browserify-cipher");_.Cipher=t.Cipher,_.createCipher=t.createCipher,_.Cipheriv=t.Cipheriv,_.createCipheriv=t.createCipheriv,_.Decipher=t.Decipher,_.createDecipher=t.createDecipher,_.Decipheriv=t.Decipheriv,_.createDecipheriv=t.createDecipheriv,_.getCiphers=t.getCiphers,_.listCiphers=t.listCiphers;var e=s("diffie-hellman");_.DiffieHellmanGroup=e.DiffieHellmanGroup,_.createDiffieHellmanGroup=e.createDiffieHellmanGroup,_.getDiffieHellman=e.getDiffieHellman,_.createDiffieHellman=e.createDiffieHellman,_.DiffieHellman=e.DiffieHellman;var l=s("browserify-sign");_.createSign=l.createSign,_.Sign=l.Sign,_.createVerify=l.createVerify,_.Verify=l.Verify,_.createECDH=s("create-ecdh");var n=s("public-encrypt");_.publicEncrypt=n.publicEncrypt,_.privateEncrypt=n.privateEncrypt,_.publicDecrypt=n.publicDecrypt,_.privateDecrypt=n.privateDecrypt;var i=s("randomfill");_.randomFill=i.randomFill,_.randomFillSync=i.randomFillSync,_.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
|
|
9
|
-
`))},_.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(s,C,_){(function(d,a){typeof _=="object"&&C!==void 0?C.exports=a():(d=typeof globalThis<"u"?globalThis:d||self).dayjs=a()})(void 0,function(){var d=6e4,a=36e5,o="millisecond",r="second",t="minute",e="hour",l="day",n="week",i="month",c="quarter",f="year",u="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={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 b=["th","st","nd","rd"],g=m%100;return"["+m+(b[(g-20)%10]||b[g]||b[0])+"]"}},R=function(m,b,g){var y=String(m);return!y||y.length>=b?m:""+Array(b+1-y.length).join(g)+m},N={s:R,z:function(m){var b=-m.utcOffset(),g=Math.abs(b),y=Math.floor(g/60),k=g%60;return(b<=0?"+":"-")+R(y,2,"0")+":"+R(k,2,"0")},m:function m(b,g){if(b.date()<g.date())return-m(g,b);var y=12*(g.year()-b.year())+(g.month()-b.month()),k=b.clone().add(y,i),O=g-k<0,A=b.clone().add(y+(O?-1:1),i);return+(-(y+(g-k)/(O?k-A:A-k))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:i,y:f,w:n,d:l,D:u,h:e,m:t,s:r,ms:o,Q:c}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},F="en",I={};I[F]=x;var P="$isDayjsObject",B=function(m){return m instanceof T||!(!m||!m[P])},$=function m(b,g,y){var k;if(!b)return F;if(typeof b=="string"){var O=b.toLowerCase();I[O]&&(k=O),g&&(I[O]=g,k=O);var A=b.split("-");if(!k&&A.length>1)return m(A[0])}else{var z=b.name;I[z]=b,k=z}return!y&&k&&(F=k),k||!y&&F},D=function(m,b){if(B(m))return m.clone();var g=typeof b=="object"?b:{};return g.date=m,g.args=arguments,new T(g)},S=N;S.l=$,S.i=B,S.w=function(m,b){return D(m,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var T=function(){function m(g){this.$L=$(g.locale,null,!0),this.parse(g),this.$x=this.$x||g.x||{},this[P]=!0}var b=m.prototype;return b.parse=function(g){this.$d=function(y){var k=y.date,O=y.utc;if(k===null)return new Date(NaN);if(S.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var A=k.match(h);if(A){var z=A[2]-1||0,U=(A[7]||"0").substring(0,3);return O?new Date(Date.UTC(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,U)):new Date(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,U)}}return new Date(k)}(g),this.init()},b.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},b.$utils=function(){return S},b.isValid=function(){return this.$d.toString()!==p},b.isSame=function(g,y){var k=D(g);return this.startOf(y)<=k&&k<=this.endOf(y)},b.isAfter=function(g,y){return D(g)<this.startOf(y)},b.isBefore=function(g,y){return this.endOf(y)<D(g)},b.$g=function(g,y,k){return S.u(g)?this[y]:this.set(k,g)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(g,y){var k=this,O=!!S.u(y)||y,A=S.p(g),z=function(q,Z){var W=S.w(k.$u?Date.UTC(k.$y,Z,q):new Date(k.$y,Z,q),k);return O?W:W.endOf(l)},U=function(q,Z){return S.w(k.toDate()[q].apply(k.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(Z)),k)},X=this.$W,j=this.$M,V=this.$D,E="set"+(this.$u?"UTC":"");switch(A){case f:return O?z(1,0):z(31,11);case i:return O?z(1,j):z(0,j+1);case n:var M=this.$locale().weekStart||0,L=(X<M?X+7:X)-M;return z(O?V-L:V+(6-L),j);case l:case u:return U(E+"Hours",0);case e:return U(E+"Minutes",1);case t:return U(E+"Seconds",2);case r:return U(E+"Milliseconds",3);default:return this.clone()}},b.endOf=function(g){return this.startOf(g,!1)},b.$set=function(g,y){var k,O=S.p(g),A="set"+(this.$u?"UTC":""),z=(k={},k[l]=A+"Date",k[u]=A+"Date",k[i]=A+"Month",k[f]=A+"FullYear",k[e]=A+"Hours",k[t]=A+"Minutes",k[r]=A+"Seconds",k[o]=A+"Milliseconds",k)[O],U=O===l?this.$D+(y-this.$W):y;if(O===i||O===f){var X=this.clone().set(u,1);X.$d[z](U),X.init(),this.$d=X.set(u,Math.min(this.$D,X.daysInMonth())).$d}else z&&this.$d[z](U);return this.init(),this},b.set=function(g,y){return this.clone().$set(g,y)},b.get=function(g){return this[S.p(g)]()},b.add=function(g,y){var k,O=this;g=Number(g);var A=S.p(y),z=function(j){var V=D(O);return S.w(V.date(V.date()+Math.round(j*g)),O)};if(A===i)return this.set(i,this.$M+g);if(A===f)return this.set(f,this.$y+g);if(A===l)return z(1);if(A===n)return z(7);var U=(k={},k[t]=d,k[e]=a,k[r]=1e3,k)[A]||1,X=this.$d.getTime()+g*U;return S.w(X,this)},b.subtract=function(g,y){return this.add(-1*g,y)},b.format=function(g){var y=this,k=this.$locale();if(!this.isValid())return k.invalidDate||p;var O=g||"YYYY-MM-DDTHH:mm:ssZ",A=S.z(this),z=this.$H,U=this.$m,X=this.$M,j=k.weekdays,V=k.months,E=k.meridiem,M=function(Z,W,K,rt){return Z&&(Z[W]||Z(y,O))||K[W].slice(0,rt)},L=function(Z){return S.s(z%12||12,Z,"0")},q=E||function(Z,W,K){var rt=Z<12?"AM":"PM";return K?rt.toLowerCase():rt};return O.replace(w,function(Z,W){return W||function(K){switch(K){case"YY":return String(y.$y).slice(-2);case"YYYY":return S.s(y.$y,4,"0");case"M":return X+1;case"MM":return S.s(X+1,2,"0");case"MMM":return M(k.monthsShort,X,V,3);case"MMMM":return M(V,X);case"D":return y.$D;case"DD":return S.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return M(k.weekdaysMin,y.$W,j,2);case"ddd":return M(k.weekdaysShort,y.$W,j,3);case"dddd":return j[y.$W];case"H":return String(z);case"HH":return S.s(z,2,"0");case"h":return L(1);case"hh":return L(2);case"a":return q(z,U,!0);case"A":return q(z,U,!1);case"m":return String(U);case"mm":return S.s(U,2,"0");case"s":return String(y.$s);case"ss":return S.s(y.$s,2,"0");case"SSS":return S.s(y.$ms,3,"0");case"Z":return A}return null}(Z)||A.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(g,y,k){var O,A=this,z=S.p(y),U=D(g),X=(U.utcOffset()-this.utcOffset())*d,j=this-U,V=function(){return S.m(A,U)};switch(z){case f:O=V()/12;break;case i:O=V();break;case c:O=V()/3;break;case n:O=(j-X)/6048e5;break;case l:O=(j-X)/864e5;break;case e:O=j/a;break;case t:O=j/d;break;case r:O=j/1e3;break;default:O=j}return k?O:S.a(O)},b.daysInMonth=function(){return this.endOf(i).$D},b.$locale=function(){return I[this.$L]},b.locale=function(g,y){if(!g)return this.$L;var k=this.clone(),O=$(g,y,!0);return O&&(k.$L=O),k},b.clone=function(){return S.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},m}(),v=T.prototype;return D.prototype=v,[["$ms",o],["$s",r],["$m",t],["$H",e],["$W",l],["$M",i],["$y",f],["$D",u]].forEach(function(m){v[m[1]]=function(b){return this.$g(b,m[0],m[1])}}),D.extend=function(m,b){return m.$i||(m(b,T,D),m.$i=!0),D},D.locale=$,D.isDayjs=B,D.unix=function(m){return D(1e3*m)},D.en=I[F],D.Ls=I,D.p={},D})},{}],392:[function(s,C,_){(function(d,a){typeof _=="object"&&C!==void 0?C.exports=a():(d=typeof globalThis<"u"?globalThis:d||self).dayjs_plugin_customParseFormat=a()})(void 0,function(){var d={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"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,r=/\d\d?/,t=/\d*[^-_:/,()\s\d]+/,e={},l=function(h){return(h=+h)+(h>68?1900:2e3)},n=function(h){return function(w){this[h]=+w}},i=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(w){if(!w||w==="Z")return 0;var x=w.match(/([+-]|\d\d)/g),R=60*x[1]+(+x[2]||0);return R===0?0:x[0]==="+"?-R:R}(h)}],c=function(h){var w=e[h];return w&&(w.indexOf?w:w.s.concat(w.f))},f=function(h,w){var x,R=e.meridiem;if(R){for(var N=1;N<=24;N+=1)if(h.indexOf(R(N,0,w))>-1){x=N>12;break}}else x=h===(w?"pm":"PM");return x},u={A:[t,function(h){this.afternoon=f(h,!1)}],a:[t,function(h){this.afternoon=f(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[o,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[r,n("seconds")],ss:[r,n("seconds")],m:[r,n("minutes")],mm:[r,n("minutes")],H:[r,n("hours")],h:[r,n("hours")],HH:[r,n("hours")],hh:[r,n("hours")],D:[r,n("day")],DD:[o,n("day")],Do:[t,function(h){var w=e.ordinal,x=h.match(/\d+/);if(this.day=x[0],w)for(var R=1;R<=31;R+=1)w(R).replace(/\[|\]/g,"")===h&&(this.day=R)}],M:[r,n("month")],MM:[o,n("month")],MMM:[t,function(h){var w=c("months"),x=(c("monthsShort")||w.map(function(R){return R.slice(0,3)})).indexOf(h)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[t,function(h){var w=c("months").indexOf(h)+1;if(w<1)throw new Error;this.month=w%12||w}],Y:[/[+-]?\d+/,n("year")],YY:[o,function(h){this.year=l(h)}],YYYY:[/\d{4}/,n("year")],Z:i,ZZ:i};function p(h){var w,x;w=h,x=e&&e.formats;for(var R=(h=w.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,S,T){var v=T&&T.toUpperCase();return S||x[T]||d[T]||x[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,b,g){return b||g.slice(1)})})).match(a),N=R.length,F=0;F<N;F+=1){var I=R[F],P=u[I],B=P&&P[0],$=P&&P[1];R[F]=$?{regex:B,parser:$}:I.replace(/^\[|\]$/g,"")}return function(D){for(var S={},T=0,v=0;T<N;T+=1){var m=R[T];if(typeof m=="string")v+=m.length;else{var b=m.regex,g=m.parser,y=D.slice(v),k=b.exec(y)[0];g.call(S,k),D=D.replace(k,"")}}return function(O){var A=O.afternoon;if(A!==void 0){var z=O.hours;A?z<12&&(O.hours+=12):z===12&&(O.hours=0),delete O.afternoon}}(S),S}}return function(h,w,x){x.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(l=h.parseTwoDigitYear);var R=w.prototype,N=R.parse;R.parse=function(F){var I=F.date,P=F.utc,B=F.args;this.$u=P;var $=B[1];if(typeof $=="string"){var D=B[2]===!0,S=B[3]===!0,T=D||S,v=B[2];S&&(v=B[2]),e=this.$locale(),!D&&v&&(e=x.Ls[v]),this.$d=function(y,k,O){try{if(["x","X"].indexOf(k)>-1)return new Date((k==="X"?1e3:1)*y);var A=p(k)(y),z=A.year,U=A.month,X=A.day,j=A.hours,V=A.minutes,E=A.seconds,M=A.milliseconds,L=A.zone,q=new Date,Z=X||(z||U?1:q.getDate()),W=z||q.getFullYear(),K=0;z&&!U||(K=U>0?U-1:q.getMonth());var rt=j||0,et=V||0,Y=E||0,Q=M||0;return L?new Date(Date.UTC(W,K,Z,rt,et,Y,Q+60*L.offset*1e3)):O?new Date(Date.UTC(W,K,Z,rt,et,Y,Q)):new Date(W,K,Z,rt,et,Y,Q)}catch{return new Date("")}}(I,$,P),this.init(),v&&v!==!0&&(this.$L=this.locale(v).$L),T&&I!=this.format($)&&(this.$d=new Date("")),e={}}else if($ instanceof Array)for(var m=$.length,b=1;b<=m;b+=1){B[1]=$[b-1];var g=x.apply(this,B);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}b===m&&(this.$d=new Date(""))}else N.call(this,F)}}})},{}],393:[function(s,C,_){(function(d,a){typeof _=="object"&&C!==void 0?C.exports=a():(d=typeof globalThis<"u"?globalThis:d||self).dayjs_plugin_utc=a()})(void 0,function(){var d="minute",a=/[+-]\d\d(?::?\d\d)?/g,o=/([+-]|\d\d)/g;return function(r,t,e){var l=t.prototype;e.utc=function(h){var w={date:h,utc:!0,args:arguments};return new t(w)},l.utc=function(h){var w=e(this.toDate(),{locale:this.$L,utc:!0});return h?w.add(this.utcOffset(),d):w},l.local=function(){return e(this.toDate(),{locale:this.$L,utc:!1})};var n=l.parse;l.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),n.call(this,h)};var i=l.init;l.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else i.call(this)};var c=l.utcOffset;l.utcOffset=function(h,w){var x=this.$utils().u;if(x(h))return this.$u?0:x(this.$offset)?c.call(this):this.$offset;if(typeof h=="string"&&(h=function(I){I===void 0&&(I="");var P=I.match(a);if(!P)return null;var B=(""+P[0]).match(o)||["-",0,0],$=B[0],D=60*+B[1]+ +B[2];return D===0?0:$==="+"?D:-D}(h))===null)return this;var R=Math.abs(h)<=16?60*h:h,N=this;if(w)return N.$offset=R,N.$u=h===0,N;if(h!==0){var F=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(N=this.local().add(R+F,d)).$offset=R,N.$x.$localOffset=F}else N=this.utc();return N};var f=l.format;l.format=function(h){var w=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return f.call(this,w)},l.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var u=l.toDate;l.toDate=function(h){return h==="s"&&this.$offset?e(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var p=l.diff;l.diff=function(h,w,x){if(h&&this.$u===h.$u)return p.call(this,h,w,x);var R=this.local(),N=e(h).local();return p.call(R,N,w,x)}}})},{}],394:[function(s,C,_){_.utils=s("./des/utils"),_.Cipher=s("./des/cipher"),_.DES=s("./des/des"),_.CBC=s("./des/cbc"),_.EDE=s("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(s,C,_){var d=s("minimalistic-assert"),a=s("inherits"),o={};function r(t){d.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}_.instantiate=function(t){function e(c){t.call(this,c),this._cbcInit()}a(e,t);for(var l=Object.keys(o),n=0;n<l.length;n++){var i=l[n];e.prototype[i]=o[i]}return e.create=function(c){return new e(c)},e},o._cbcInit=function(){var t=new r(this.options.iv);this._cbcState=t},o._update=function(t,e,l,n){var i=this._cbcState,c=this.constructor.super_.prototype,f=i.iv;if(this.type==="encrypt"){for(var u=0;u<this.blockSize;u++)f[u]^=t[e+u];for(c._update.call(this,f,0,l,n),u=0;u<this.blockSize;u++)f[u]=l[n+u]}else{for(c._update.call(this,t,e,l,n),u=0;u<this.blockSize;u++)l[n+u]^=f[u];for(u=0;u<this.blockSize;u++)f[u]=t[e+u]}}},{inherits:440,"minimalistic-assert":453}],396:[function(s,C,_){var d=s("minimalistic-assert");function a(o){this.options=o,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=o.padding!==!1}C.exports=a,a.prototype._init=function(){},a.prototype.update=function(o){return o.length===0?[]:this.type==="decrypt"?this._updateDecrypt(o):this._updateEncrypt(o)},a.prototype._buffer=function(o,r){for(var t=Math.min(this.buffer.length-this.bufferOff,o.length-r),e=0;e<t;e++)this.buffer[this.bufferOff+e]=o[r+e];return this.bufferOff+=t,t},a.prototype._flushBuffer=function(o,r){return this._update(this.buffer,0,o,r),this.bufferOff=0,this.blockSize},a.prototype._updateEncrypt=function(o){var r=0,t=0,e=(this.bufferOff+o.length)/this.blockSize|0,l=new Array(e*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(o,r),this.bufferOff===this.buffer.length&&(t+=this._flushBuffer(l,t)));for(var n=o.length-(o.length-r)%this.blockSize;r<n;r+=this.blockSize)this._update(o,r,l,t),t+=this.blockSize;for(;r<o.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=o[r];return l},a.prototype._updateDecrypt=function(o){for(var r=0,t=0,e=Math.ceil((this.bufferOff+o.length)/this.blockSize)-1,l=new Array(e*this.blockSize);e>0;e--)r+=this._buffer(o,r),t+=this._flushBuffer(l,t);return r+=this._buffer(o,r),l},a.prototype.final=function(o){var r,t;return o&&(r=this.update(o)),t=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),r?r.concat(t):t},a.prototype._pad=function(o,r){if(r===0)return!1;for(;r<o.length;)o[r++]=0;return!0},a.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var o=new Array(this.blockSize);return this._update(this.buffer,0,o,0),o},a.prototype._unpad=function(o){return o},a.prototype._finalDecrypt=function(){d.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var o=new Array(this.blockSize);return this._flushBuffer(o,0),this._unpad(o)}},{"minimalistic-assert":453}],397:[function(s,C,_){var d=s("minimalistic-assert"),a=s("inherits"),o=s("./utils"),r=s("./cipher");function t(){this.tmp=new Array(2),this.keys=null}function e(n){r.call(this,n);var i=new t;this._desState=i,this.deriveKeys(i,n.key)}a(e,r),C.exports=e,e.create=function(n){return new e(n)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];e.prototype.deriveKeys=function(n,i){n.keys=new Array(32),d.equal(i.length,this.blockSize,"Invalid key length");var c=o.readUInt32BE(i,0),f=o.readUInt32BE(i,4);o.pc1(c,f,n.tmp,0),c=n.tmp[0],f=n.tmp[1];for(var u=0;u<n.keys.length;u+=2){var p=l[u>>>1];c=o.r28shl(c,p),f=o.r28shl(f,p),o.pc2(c,f,n.keys,u)}},e.prototype._update=function(n,i,c,f){var u=this._desState,p=o.readUInt32BE(n,i),h=o.readUInt32BE(n,i+4);o.ip(p,h,u.tmp,0),p=u.tmp[0],h=u.tmp[1],this.type==="encrypt"?this._encrypt(u,p,h,u.tmp,0):this._decrypt(u,p,h,u.tmp,0),p=u.tmp[0],h=u.tmp[1],o.writeUInt32BE(c,p,f),o.writeUInt32BE(c,h,f+4)},e.prototype._pad=function(n,i){if(this.padding===!1)return!1;for(var c=n.length-i,f=i;f<n.length;f++)n[f]=c;return!0},e.prototype._unpad=function(n){if(this.padding===!1)return n;for(var i=n[n.length-1],c=n.length-i;c<n.length;c++)d.equal(n[c],i);return n.slice(0,n.length-i)},e.prototype._encrypt=function(n,i,c,f,u){for(var p=i,h=c,w=0;w<n.keys.length;w+=2){var x=n.keys[w],R=n.keys[w+1];o.expand(h,n.tmp,0),x^=n.tmp[0],R^=n.tmp[1];var N=o.substitute(x,R),F=h;h=(p^o.permute(N))>>>0,p=F}o.rip(h,p,f,u)},e.prototype._decrypt=function(n,i,c,f,u){for(var p=c,h=i,w=n.keys.length-2;w>=0;w-=2){var x=n.keys[w],R=n.keys[w+1];o.expand(p,n.tmp,0),x^=n.tmp[0],R^=n.tmp[1];var N=o.substitute(x,R),F=p;p=(h^o.permute(N))>>>0,h=F}o.rip(p,h,f,u)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(s,C,_){var d=s("minimalistic-assert"),a=s("inherits"),o=s("./cipher"),r=s("./des");function t(l,n){d.equal(n.length,24,"Invalid key length");var i=n.slice(0,8),c=n.slice(8,16),f=n.slice(16,24);this.ciphers=l==="encrypt"?[r.create({type:"encrypt",key:i}),r.create({type:"decrypt",key:c}),r.create({type:"encrypt",key:f})]:[r.create({type:"decrypt",key:f}),r.create({type:"encrypt",key:c}),r.create({type:"decrypt",key:i})]}function e(l){o.call(this,l);var n=new t(this.type,this.options.key);this._edeState=n}a(e,o),C.exports=e,e.create=function(l){return new e(l)},e.prototype._update=function(l,n,i,c){var f=this._edeState;f.ciphers[0]._update(l,n,i,c),f.ciphers[1]._update(i,c,i,c),f.ciphers[2]._update(i,c,i,c)},e.prototype._pad=r.prototype._pad,e.prototype._unpad=r.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(s,C,_){_.readUInt32BE=function(r,t){return(r[0+t]<<24|r[1+t]<<16|r[2+t]<<8|r[3+t])>>>0},_.writeUInt32BE=function(r,t,e){r[0+e]=t>>>24,r[1+e]=t>>>16&255,r[2+e]=t>>>8&255,r[3+e]=255&t},_.ip=function(r,t,e,l){for(var n=0,i=0,c=6;c>=0;c-=2){for(var f=0;f<=24;f+=8)n<<=1,n|=t>>>f+c&1;for(f=0;f<=24;f+=8)n<<=1,n|=r>>>f+c&1}for(c=6;c>=0;c-=2){for(f=1;f<=25;f+=8)i<<=1,i|=t>>>f+c&1;for(f=1;f<=25;f+=8)i<<=1,i|=r>>>f+c&1}e[l+0]=n>>>0,e[l+1]=i>>>0},_.rip=function(r,t,e,l){for(var n=0,i=0,c=0;c<4;c++)for(var f=24;f>=0;f-=8)n<<=1,n|=t>>>f+c&1,n<<=1,n|=r>>>f+c&1;for(c=4;c<8;c++)for(f=24;f>=0;f-=8)i<<=1,i|=t>>>f+c&1,i<<=1,i|=r>>>f+c&1;e[l+0]=n>>>0,e[l+1]=i>>>0},_.pc1=function(r,t,e,l){for(var n=0,i=0,c=7;c>=5;c--){for(var f=0;f<=24;f+=8)n<<=1,n|=t>>f+c&1;for(f=0;f<=24;f+=8)n<<=1,n|=r>>f+c&1}for(f=0;f<=24;f+=8)n<<=1,n|=t>>f+c&1;for(c=1;c<=3;c++){for(f=0;f<=24;f+=8)i<<=1,i|=t>>f+c&1;for(f=0;f<=24;f+=8)i<<=1,i|=r>>f+c&1}for(f=0;f<=24;f+=8)i<<=1,i|=r>>f+c&1;e[l+0]=n>>>0,e[l+1]=i>>>0},_.r28shl=function(r,t){return r<<t&268435455|r>>>28-t};var d=[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];_.pc2=function(r,t,e,l){for(var n=0,i=0,c=d.length>>>1,f=0;f<c;f++)n<<=1,n|=r>>>d[f]&1;for(f=c;f<d.length;f++)i<<=1,i|=t>>>d[f]&1;e[l+0]=n>>>0,e[l+1]=i>>>0},_.expand=function(r,t,e){var l=0,n=0;l=(1&r)<<5|r>>>27;for(var i=23;i>=15;i-=4)l<<=6,l|=r>>>i&63;for(i=11;i>=3;i-=4)n|=r>>>i&63,n<<=6;n|=(31&r)<<1|r>>>31,t[e+0]=l>>>0,t[e+1]=n>>>0};var a=[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];_.substitute=function(r,t){for(var e=0,l=0;l<4;l++)e<<=4,e|=a[64*l+(r>>>18-6*l&63)];for(l=0;l<4;l++)e<<=4,e|=a[256+64*l+(t>>>18-6*l&63)];return e>>>0};var o=[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];_.permute=function(r){for(var t=0,e=0;e<o.length;e++)t<<=1,t|=r>>>o[e]&1;return t>>>0},_.padSplit=function(r,t,e){for(var l=r.toString(2);l.length<t;)l="0"+l;for(var n=[],i=0;i<t;i+=e)n.push(l.slice(i,i+e));return n.join(" ")}},{}],400:[function(s,C,_){(function(d){(function(){var a=s("./lib/generatePrime"),o=s("./lib/primes.json"),r=s("./lib/dh"),t={binary:!0,hex:!0,base64:!0};_.DiffieHellmanGroup=_.createDiffieHellmanGroup=_.getDiffieHellman=function(e){var l=new d(o[e].prime,"hex"),n=new d(o[e].gen,"hex");return new r(l,n)},_.createDiffieHellman=_.DiffieHellman=function e(l,n,i,c){return d.isBuffer(n)||t[n]===void 0?e(l,"binary",n,i):(n=n||"binary",c=c||"binary",i=i||new d([2]),d.isBuffer(i)||(i=new d(i,c)),typeof l=="number"?new r(a(l,i),i,!0):(d.isBuffer(l)||(l=new d(l,n)),new r(l,i,!0)))}}).call(this)}).call(this,s("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(s,C,_){(function(d){(function(){var a=s("bn.js"),o=new(s("miller-rabin")),r=new a(24),t=new a(11),e=new a(10),l=new a(3),n=new a(7),i=s("./generatePrime"),c=s("randombytes");function f(x,R){return R=R||"utf8",d.isBuffer(x)||(x=new d(x,R)),this._pub=new a(x),this}function u(x,R){return R=R||"utf8",d.isBuffer(x)||(x=new d(x,R)),this._priv=new a(x),this}C.exports=h;var p={};function h(x,R,N){this.setGenerator(R),this.__prime=new a(x),this._prime=a.mont(this.__prime),this._primeLen=x.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,N?(this.setPublicKey=f,this.setPrivateKey=u):this._primeCode=8}function w(x,R){var N=new d(x.toArray());return R?N.toString(R):N}Object.defineProperty(h.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(x,R){var N=R.toString("hex"),F=[N,x.toString(16)].join("_");if(F in p)return p[F];var I,P=0;if(x.isEven()||!i.simpleSieve||!i.fermatTest(x)||!o.test(x))return P+=1,P+=N==="02"||N==="05"?8:4,p[F]=P,P;switch(o.test(x.shrn(1))||(P+=2),N){case"02":x.mod(r).cmp(t)&&(P+=8);break;case"05":(I=x.mod(e)).cmp(l)&&I.cmp(n)&&(P+=8);break;default:P+=4}return p[F]=P,P}(this.__prime,this.__gen)),this._primeCode}}),h.prototype.generateKeys=function(){return this._priv||(this._priv=new a(c(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},h.prototype.computeSecret=function(x){var R=(x=(x=new a(x)).toRed(this._prime)).redPow(this._priv).fromRed(),N=new d(R.toArray()),F=this.getPrime();if(N.length<F.length){var I=new d(F.length-N.length);I.fill(0),N=d.concat([I,N])}return N},h.prototype.getPublicKey=function(x){return w(this._pub,x)},h.prototype.getPrivateKey=function(x){return w(this._priv,x)},h.prototype.getPrime=function(x){return w(this.__prime,x)},h.prototype.getGenerator=function(x){return w(this._gen,x)},h.prototype.setGenerator=function(x,R){return R=R||"utf8",d.isBuffer(x)||(x=new d(x,R)),this.__gen=x,this._gen=new a(x),this}}).call(this)}).call(this,s("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(s,C,_){var d=s("randombytes");C.exports=x,x.simpleSieve=h,x.fermatTest=w;var a=s("bn.js"),o=new a(24),r=new(s("miller-rabin")),t=new a(1),e=new a(2),l=new a(5),n=(new a(16),new a(8),new a(10)),i=new a(3),c=(new a(7),new a(11)),f=new a(4),u=(new a(12),null);function p(){if(u!==null)return u;var R=[];R[0]=2;for(var N=1,F=3;F<1048576;F+=2){for(var I=Math.ceil(Math.sqrt(F)),P=0;P<N&&R[P]<=I&&F%R[P]!=0;P++);N!==P&&R[P]<=I||(R[N++]=F)}return u=R,R}function h(R){for(var N=p(),F=0;F<N.length;F++)if(R.modn(N[F])===0)return R.cmpn(N[F])===0;return!0}function w(R){var N=a.mont(R);return e.toRed(N).redPow(R.subn(1)).fromRed().cmpn(1)===0}function x(R,N){if(R<16)return new a(N===2||N===5?[140,123]:[140,39]);var F,I;for(N=new a(N);;){for(F=new a(d(Math.ceil(R/8)));F.bitLength()>R;)F.ishrn(1);if(F.isEven()&&F.iadd(t),F.testn(1)||F.iadd(e),N.cmp(e)){if(!N.cmp(l))for(;F.mod(n).cmp(i);)F.iadd(f)}else for(;F.mod(o).cmp(c);)F.iadd(f);if(h(I=F.shrn(1))&&h(F)&&w(I)&&w(F)&&r.test(I)&&r.test(F))return F}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(s,C,_){C.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(s,C,_){arguments[4][184][0].apply(_,arguments)},{buffer:188,dup:184}],405:[function(s,C,_){var d=_;d.version=s("../package.json").version,d.utils=s("./elliptic/utils"),d.rand=s("brorand"),d.curve=s("./elliptic/curve"),d.curves=s("./elliptic/curves"),d.ec=s("./elliptic/ec"),d.eddsa=s("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(s,C,_){var d=s("bn.js"),a=s("../utils"),o=a.getNAF,r=a.getJSF,t=a.assert;function e(n,i){this.type=n,this.p=new d(i.p,16),this.red=i.prime?d.red(i.prime):d.mont(this.p),this.zero=new d(0).toRed(this.red),this.one=new d(1).toRed(this.red),this.two=new d(2).toRed(this.red),this.n=i.n&&new d(i.n,16),this.g=i.g&&this.pointFromJSON(i.g,i.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 c=this.n&&this.p.div(this.n);!c||c.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(n,i){this.curve=n,this.type=i,this.precomputed=null}C.exports=e,e.prototype.point=function(){throw new Error("Not implemented")},e.prototype.validate=function(){throw new Error("Not implemented")},e.prototype._fixedNafMul=function(n,i){t(n.precomputed);var c=n._getDoubles(),f=o(i,1,this._bitLength),u=(1<<c.step+1)-(c.step%2==0?2:1);u/=3;var p,h,w=[];for(p=0;p<f.length;p+=c.step){h=0;for(var x=p+c.step-1;x>=p;x--)h=(h<<1)+f[x];w.push(h)}for(var R=this.jpoint(null,null,null),N=this.jpoint(null,null,null),F=u;F>0;F--){for(p=0;p<w.length;p++)(h=w[p])===F?N=N.mixedAdd(c.points[p]):h===-F&&(N=N.mixedAdd(c.points[p].neg()));R=R.add(N)}return R.toP()},e.prototype._wnafMul=function(n,i){var c=4,f=n._getNAFPoints(c);c=f.wnd;for(var u=f.points,p=o(i,c,this._bitLength),h=this.jpoint(null,null,null),w=p.length-1;w>=0;w--){for(var x=0;w>=0&&p[w]===0;w--)x++;if(w>=0&&x++,h=h.dblp(x),w<0)break;var R=p[w];t(R!==0),h=n.type==="affine"?R>0?h.mixedAdd(u[R-1>>1]):h.mixedAdd(u[-R-1>>1].neg()):R>0?h.add(u[R-1>>1]):h.add(u[-R-1>>1].neg())}return n.type==="affine"?h.toP():h},e.prototype._wnafMulAdd=function(n,i,c,f,u){var p,h,w,x=this._wnafT1,R=this._wnafT2,N=this._wnafT3,F=0;for(p=0;p<f;p++){var I=(w=i[p])._getNAFPoints(n);x[p]=I.wnd,R[p]=I.points}for(p=f-1;p>=1;p-=2){var P=p-1,B=p;if(x[P]===1&&x[B]===1){var $=[i[P],null,null,i[B]];i[P].y.cmp(i[B].y)===0?($[1]=i[P].add(i[B]),$[2]=i[P].toJ().mixedAdd(i[B].neg())):i[P].y.cmp(i[B].y.redNeg())===0?($[1]=i[P].toJ().mixedAdd(i[B]),$[2]=i[P].add(i[B].neg())):($[1]=i[P].toJ().mixedAdd(i[B]),$[2]=i[P].toJ().mixedAdd(i[B].neg()));var D=[-3,-1,-5,-7,0,7,5,1,3],S=r(c[P],c[B]);for(F=Math.max(S[0].length,F),N[P]=new Array(F),N[B]=new Array(F),h=0;h<F;h++){var T=0|S[0][h],v=0|S[1][h];N[P][h]=D[3*(T+1)+(v+1)],N[B][h]=0,R[P]=$}}else N[P]=o(c[P],x[P],this._bitLength),N[B]=o(c[B],x[B],this._bitLength),F=Math.max(N[P].length,F),F=Math.max(N[B].length,F)}var m=this.jpoint(null,null,null),b=this._wnafT4;for(p=F;p>=0;p--){for(var g=0;p>=0;){var y=!0;for(h=0;h<f;h++)b[h]=0|N[h][p],b[h]!==0&&(y=!1);if(!y)break;g++,p--}if(p>=0&&g++,m=m.dblp(g),p<0)break;for(h=0;h<f;h++){var k=b[h];k!==0&&(k>0?w=R[h][k-1>>1]:k<0&&(w=R[h][-k-1>>1].neg()),m=w.type==="affine"?m.mixedAdd(w):m.add(w))}}for(p=0;p<f;p++)R[p]=null;return u?m:m.toP()},e.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},e.prototype.decodePoint=function(n,i){n=a.toArray(n,i);var c=this.p.byteLength();if((n[0]===4||n[0]===6||n[0]===7)&&n.length-1==2*c)return n[0]===6?t(n[n.length-1]%2==0):n[0]===7&&t(n[n.length-1]%2==1),this.point(n.slice(1,1+c),n.slice(1+c,1+2*c));if((n[0]===2||n[0]===3)&&n.length-1===c)return this.pointFromX(n.slice(1,1+c),n[0]===3);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(n){return this.encode(n,!0)},l.prototype._encode=function(n){var i=this.curve.p.byteLength(),c=this.getX().toArray("be",i);return n?[this.getY().isEven()?2:3].concat(c):[4].concat(c,this.getY().toArray("be",i))},l.prototype.encode=function(n,i){return a.encode(this._encode(i),n)},l.prototype.precompute=function(n){if(this.precomputed)return this;var i={doubles:null,naf:null,beta:null};return i.naf=this._getNAFPoints(8),i.doubles=this._getDoubles(4,n),i.beta=this._getBeta(),this.precomputed=i,this},l.prototype._hasDoubles=function(n){if(!this.precomputed)return!1;var i=this.precomputed.doubles;return!!i&&i.points.length>=Math.ceil((n.bitLength()+1)/i.step)},l.prototype._getDoubles=function(n,i){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var c=[this],f=this,u=0;u<i;u+=n){for(var p=0;p<n;p++)f=f.dbl();c.push(f)}return{step:n,points:c}},l.prototype._getNAFPoints=function(n){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var i=[this],c=(1<<n)-1,f=c===1?null:this.dbl(),u=1;u<c;u++)i[u]=i[u-1].add(f);return{wnd:n,points:i}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(n){for(var i=this,c=0;c<n;c++)i=i.dbl();return i}},{"../utils":419,"bn.js":420}],407:[function(s,C,_){var d=s("../utils"),a=s("bn.js"),o=s("inherits"),r=s("./base"),t=d.assert;function e(n){this.twisted=(0|n.a)!=1,this.mOneA=this.twisted&&(0|n.a)==-1,this.extended=this.mOneA,r.call(this,"edwards",n),this.a=new a(n.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(n.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(n.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),t(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|n.c)==1}function l(n,i,c,f,u){r.BasePoint.call(this,n,"projective"),i===null&&c===null&&f===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 a(i,16),this.y=new a(c,16),this.z=f?new a(f,16):this.curve.one,this.t=u&&new a(u,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()))))}o(e,r),C.exports=e,e.prototype._mulA=function(n){return this.mOneA?n.redNeg():this.a.redMul(n)},e.prototype._mulC=function(n){return this.oneC?n:this.c.redMul(n)},e.prototype.jpoint=function(n,i,c,f){return this.point(n,i,c,f)},e.prototype.pointFromX=function(n,i){(n=new a(n,16)).red||(n=n.toRed(this.red));var c=n.redSqr(),f=this.c2.redSub(this.a.redMul(c)),u=this.one.redSub(this.c2.redMul(this.d).redMul(c)),p=f.redMul(u.redInvm()),h=p.redSqrt();if(h.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");var w=h.fromRed().isOdd();return(i&&!w||!i&&w)&&(h=h.redNeg()),this.point(n,h)},e.prototype.pointFromY=function(n,i){(n=new a(n,16)).red||(n=n.toRed(this.red));var c=n.redSqr(),f=c.redSub(this.c2),u=c.redMul(this.d).redMul(this.c2).redSub(this.a),p=f.redMul(u.redInvm());if(p.cmp(this.zero)===0){if(i)throw new Error("invalid point");return this.point(this.zero,n)}var h=p.redSqrt();if(h.redSqr().redSub(p).cmp(this.zero)!==0)throw new Error("invalid point");return h.fromRed().isOdd()!==i&&(h=h.redNeg()),this.point(h,n)},e.prototype.validate=function(n){if(n.isInfinity())return!0;n.normalize();var i=n.x.redSqr(),c=n.y.redSqr(),f=i.redMul(this.a).redAdd(c),u=this.c2.redMul(this.one.redAdd(this.d.redMul(i).redMul(c)));return f.cmp(u)===0},o(l,r.BasePoint),e.prototype.pointFromJSON=function(n){return l.fromJSON(this,n)},e.prototype.point=function(n,i,c,f){return new l(this,n,i,c,f)},l.fromJSON=function(n,i){return new l(n,i[0],i[1],i[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 n=this.x.redSqr(),i=this.y.redSqr(),c=this.z.redSqr();c=c.redIAdd(c);var f=this.curve._mulA(n),u=this.x.redAdd(this.y).redSqr().redISub(n).redISub(i),p=f.redAdd(i),h=p.redSub(c),w=f.redSub(i),x=u.redMul(h),R=p.redMul(w),N=u.redMul(w),F=h.redMul(p);return this.curve.point(x,R,F,N)},l.prototype._projDbl=function(){var n,i,c,f,u,p,h=this.x.redAdd(this.y).redSqr(),w=this.x.redSqr(),x=this.y.redSqr();if(this.curve.twisted){var R=(f=this.curve._mulA(w)).redAdd(x);this.zOne?(n=h.redSub(w).redSub(x).redMul(R.redSub(this.curve.two)),i=R.redMul(f.redSub(x)),c=R.redSqr().redSub(R).redSub(R)):(u=this.z.redSqr(),p=R.redSub(u).redISub(u),n=h.redSub(w).redISub(x).redMul(p),i=R.redMul(f.redSub(x)),c=R.redMul(p))}else f=w.redAdd(x),u=this.curve._mulC(this.z).redSqr(),p=f.redSub(u).redSub(u),n=this.curve._mulC(h.redISub(f)).redMul(p),i=this.curve._mulC(f).redMul(w.redISub(x)),c=f.redMul(p);return this.curve.point(n,i,c)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(n){var i=this.y.redSub(this.x).redMul(n.y.redSub(n.x)),c=this.y.redAdd(this.x).redMul(n.y.redAdd(n.x)),f=this.t.redMul(this.curve.dd).redMul(n.t),u=this.z.redMul(n.z.redAdd(n.z)),p=c.redSub(i),h=u.redSub(f),w=u.redAdd(f),x=c.redAdd(i),R=p.redMul(h),N=w.redMul(x),F=p.redMul(x),I=h.redMul(w);return this.curve.point(R,N,I,F)},l.prototype._projAdd=function(n){var i,c,f=this.z.redMul(n.z),u=f.redSqr(),p=this.x.redMul(n.x),h=this.y.redMul(n.y),w=this.curve.d.redMul(p).redMul(h),x=u.redSub(w),R=u.redAdd(w),N=this.x.redAdd(this.y).redMul(n.x.redAdd(n.y)).redISub(p).redISub(h),F=f.redMul(x).redMul(N);return this.curve.twisted?(i=f.redMul(R).redMul(h.redSub(this.curve._mulA(p))),c=x.redMul(R)):(i=f.redMul(R).redMul(h.redSub(p)),c=this.curve._mulC(x).redMul(R)),this.curve.point(F,i,c)},l.prototype.add=function(n){return this.isInfinity()?n:n.isInfinity()?this:this.curve.extended?this._extAdd(n):this._projAdd(n)},l.prototype.mul=function(n){return this._hasDoubles(n)?this.curve._fixedNafMul(this,n):this.curve._wnafMul(this,n)},l.prototype.mulAdd=function(n,i,c){return this.curve._wnafMulAdd(1,[this,i],[n,c],2,!1)},l.prototype.jmulAdd=function(n,i,c){return this.curve._wnafMulAdd(1,[this,i],[n,c],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var n=this.z.redInvm();return this.x=this.x.redMul(n),this.y=this.y.redMul(n),this.t&&(this.t=this.t.redMul(n)),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(n){return this===n||this.getX().cmp(n.getX())===0&&this.getY().cmp(n.getY())===0},l.prototype.eqXToP=function(n){var i=n.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(i)===0)return!0;for(var c=n.clone(),f=this.curve.redN.redMul(this.z);;){if(c.iadd(this.curve.n),c.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(f),this.x.cmp(i)===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(s,C,_){var d=_;d.base=s("./base"),d.short=s("./short"),d.mont=s("./mont"),d.edwards=s("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(s,C,_){var d=s("bn.js"),a=s("inherits"),o=s("./base"),r=s("../utils");function t(l){o.call(this,"mont",l),this.a=new d(l.a,16).toRed(this.red),this.b=new d(l.b,16).toRed(this.red),this.i4=new d(4).toRed(this.red).redInvm(),this.two=new d(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function e(l,n,i){o.BasePoint.call(this,l,"projective"),n===null&&i===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new d(n,16),this.z=new d(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(t,o),C.exports=t,t.prototype.validate=function(l){var n=l.normalize().x,i=n.redSqr(),c=i.redMul(n).redAdd(i.redMul(this.a)).redAdd(n);return c.redSqrt().redSqr().cmp(c)===0},a(e,o.BasePoint),t.prototype.decodePoint=function(l,n){return this.point(r.toArray(l,n),1)},t.prototype.point=function(l,n){return new e(this,l,n)},t.prototype.pointFromJSON=function(l){return e.fromJSON(this,l)},e.prototype.precompute=function(){},e.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},e.fromJSON=function(l,n){return new e(l,n[0],n[1]||l.one)},e.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)+">"},e.prototype.isInfinity=function(){return this.z.cmpn(0)===0},e.prototype.dbl=function(){var l=this.x.redAdd(this.z).redSqr(),n=this.x.redSub(this.z).redSqr(),i=l.redSub(n),c=l.redMul(n),f=i.redMul(n.redAdd(this.curve.a24.redMul(i)));return this.curve.point(c,f)},e.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.diffAdd=function(l,n){var i=this.x.redAdd(this.z),c=this.x.redSub(this.z),f=l.x.redAdd(l.z),u=l.x.redSub(l.z).redMul(i),p=f.redMul(c),h=n.z.redMul(u.redAdd(p).redSqr()),w=n.x.redMul(u.redISub(p).redSqr());return this.curve.point(h,w)},e.prototype.mul=function(l){for(var n=l.clone(),i=this,c=this.curve.point(null,null),f=[];n.cmpn(0)!==0;n.iushrn(1))f.push(n.andln(1));for(var u=f.length-1;u>=0;u--)f[u]===0?(i=i.diffAdd(c,this),c=c.dbl()):(c=i.diffAdd(c,this),i=i.dbl());return c},e.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.eq=function(l){return this.getX().cmp(l.getX())===0},e.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},e.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(s,C,_){var d=s("../utils"),a=s("bn.js"),o=s("inherits"),r=s("./base"),t=d.assert;function e(i){r.call(this,"short",i),this.a=new a(i.a,16).toRed(this.red),this.b=new a(i.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(i),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(i,c,f,u){r.BasePoint.call(this,i,"affine"),c===null&&f===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(c,16),this.y=new a(f,16),u&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function n(i,c,f,u){r.BasePoint.call(this,i,"jacobian"),c===null&&f===null&&u===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(c,16),this.y=new a(f,16),this.z=new a(u,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}o(e,r),C.exports=e,e.prototype._getEndomorphism=function(i){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var c,f;if(i.beta)c=new a(i.beta,16).toRed(this.red);else{var u=this._getEndoRoots(this.p);c=(c=u[0].cmp(u[1])<0?u[0]:u[1]).toRed(this.red)}if(i.lambda)f=new a(i.lambda,16);else{var p=this._getEndoRoots(this.n);this.g.mul(p[0]).x.cmp(this.g.x.redMul(c))===0?f=p[0]:(f=p[1],t(this.g.mul(f).x.cmp(this.g.x.redMul(c))===0))}return{beta:c,lambda:f,basis:i.basis?i.basis.map(function(h){return{a:new a(h.a,16),b:new a(h.b,16)}}):this._getEndoBasis(f)}}},e.prototype._getEndoRoots=function(i){var c=i===this.p?this.red:a.mont(i),f=new a(2).toRed(c).redInvm(),u=f.redNeg(),p=new a(3).toRed(c).redNeg().redSqrt().redMul(f);return[u.redAdd(p).fromRed(),u.redSub(p).fromRed()]},e.prototype._getEndoBasis=function(i){for(var c,f,u,p,h,w,x,R,N,F=this.n.ushrn(Math.floor(this.n.bitLength()/2)),I=i,P=this.n.clone(),B=new a(1),$=new a(0),D=new a(0),S=new a(1),T=0;I.cmpn(0)!==0;){var v=P.div(I);R=P.sub(v.mul(I)),N=D.sub(v.mul(B));var m=S.sub(v.mul($));if(!u&&R.cmp(F)<0)c=x.neg(),f=B,u=R.neg(),p=N;else if(u&&++T==2)break;x=R,P=I,I=R,D=B,B=N,S=$,$=m}h=R.neg(),w=N;var b=u.sqr().add(p.sqr());return h.sqr().add(w.sqr()).cmp(b)>=0&&(h=c,w=f),u.negative&&(u=u.neg(),p=p.neg()),h.negative&&(h=h.neg(),w=w.neg()),[{a:u,b:p},{a:h,b:w}]},e.prototype._endoSplit=function(i){var c=this.endo.basis,f=c[0],u=c[1],p=u.b.mul(i).divRound(this.n),h=f.b.neg().mul(i).divRound(this.n),w=p.mul(f.a),x=h.mul(u.a),R=p.mul(f.b),N=h.mul(u.b);return{k1:i.sub(w).sub(x),k2:R.add(N).neg()}},e.prototype.pointFromX=function(i,c){(i=new a(i,16)).red||(i=i.toRed(this.red));var f=i.redSqr().redMul(i).redIAdd(i.redMul(this.a)).redIAdd(this.b),u=f.redSqrt();if(u.redSqr().redSub(f).cmp(this.zero)!==0)throw new Error("invalid point");var p=u.fromRed().isOdd();return(c&&!p||!c&&p)&&(u=u.redNeg()),this.point(i,u)},e.prototype.validate=function(i){if(i.inf)return!0;var c=i.x,f=i.y,u=this.a.redMul(c),p=c.redSqr().redMul(c).redIAdd(u).redIAdd(this.b);return f.redSqr().redISub(p).cmpn(0)===0},e.prototype._endoWnafMulAdd=function(i,c,f){for(var u=this._endoWnafT1,p=this._endoWnafT2,h=0;h<i.length;h++){var w=this._endoSplit(c[h]),x=i[h],R=x._getBeta();w.k1.negative&&(w.k1.ineg(),x=x.neg(!0)),w.k2.negative&&(w.k2.ineg(),R=R.neg(!0)),u[2*h]=x,u[2*h+1]=R,p[2*h]=w.k1,p[2*h+1]=w.k2}for(var N=this._wnafMulAdd(1,u,p,2*h,f),F=0;F<2*h;F++)u[F]=null,p[F]=null;return N},o(l,r.BasePoint),e.prototype.point=function(i,c,f){return new l(this,i,c,f)},e.prototype.pointFromJSON=function(i,c){return l.fromJSON(this,i,c)},l.prototype._getBeta=function(){if(this.curve.endo){var i=this.precomputed;if(i&&i.beta)return i.beta;var c=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(i){var f=this.curve,u=function(p){return f.point(p.x.redMul(f.endo.beta),p.y)};i.beta=c,c.precomputed={beta:null,naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(u)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(u)}}}return c}},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(i,c,f){typeof c=="string"&&(c=JSON.parse(c));var u=i.point(c[0],c[1],f);if(!c[2])return u;function p(w){return i.point(w[0],w[1],f)}var h=c[2];return u.precomputed={beta:null,doubles:h.doubles&&{step:h.doubles.step,points:[u].concat(h.doubles.points.map(p))},naf:h.naf&&{wnd:h.naf.wnd,points:[u].concat(h.naf.points.map(p))}},u},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(i){if(this.inf)return i;if(i.inf)return this;if(this.eq(i))return this.dbl();if(this.neg().eq(i))return this.curve.point(null,null);if(this.x.cmp(i.x)===0)return this.curve.point(null,null);var c=this.y.redSub(i.y);c.cmpn(0)!==0&&(c=c.redMul(this.x.redSub(i.x).redInvm()));var f=c.redSqr().redISub(this.x).redISub(i.x),u=c.redMul(this.x.redSub(f)).redISub(this.y);return this.curve.point(f,u)},l.prototype.dbl=function(){if(this.inf)return this;var i=this.y.redAdd(this.y);if(i.cmpn(0)===0)return this.curve.point(null,null);var c=this.curve.a,f=this.x.redSqr(),u=i.redInvm(),p=f.redAdd(f).redIAdd(f).redIAdd(c).redMul(u),h=p.redSqr().redISub(this.x.redAdd(this.x)),w=p.redMul(this.x.redSub(h)).redISub(this.y);return this.curve.point(h,w)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(i){return i=new a(i,16),this.isInfinity()?this:this._hasDoubles(i)?this.curve._fixedNafMul(this,i):this.curve.endo?this.curve._endoWnafMulAdd([this],[i]):this.curve._wnafMul(this,i)},l.prototype.mulAdd=function(i,c,f){var u=[this,c],p=[i,f];return this.curve.endo?this.curve._endoWnafMulAdd(u,p):this.curve._wnafMulAdd(1,u,p,2)},l.prototype.jmulAdd=function(i,c,f){var u=[this,c],p=[i,f];return this.curve.endo?this.curve._endoWnafMulAdd(u,p,!0):this.curve._wnafMulAdd(1,u,p,2,!0)},l.prototype.eq=function(i){return this===i||this.inf===i.inf&&(this.inf||this.x.cmp(i.x)===0&&this.y.cmp(i.y)===0)},l.prototype.neg=function(i){if(this.inf)return this;var c=this.curve.point(this.x,this.y.redNeg());if(i&&this.precomputed){var f=this.precomputed,u=function(p){return p.neg()};c.precomputed={naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(u)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(u)}}}return c},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(n,r.BasePoint),e.prototype.jpoint=function(i,c,f){return new n(this,i,c,f)},n.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var i=this.z.redInvm(),c=i.redSqr(),f=this.x.redMul(c),u=this.y.redMul(c).redMul(i);return this.curve.point(f,u)},n.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},n.prototype.add=function(i){if(this.isInfinity())return i;if(i.isInfinity())return this;var c=i.z.redSqr(),f=this.z.redSqr(),u=this.x.redMul(c),p=i.x.redMul(f),h=this.y.redMul(c.redMul(i.z)),w=i.y.redMul(f.redMul(this.z)),x=u.redSub(p),R=h.redSub(w);if(x.cmpn(0)===0)return R.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var N=x.redSqr(),F=N.redMul(x),I=u.redMul(N),P=R.redSqr().redIAdd(F).redISub(I).redISub(I),B=R.redMul(I.redISub(P)).redISub(h.redMul(F)),$=this.z.redMul(i.z).redMul(x);return this.curve.jpoint(P,B,$)},n.prototype.mixedAdd=function(i){if(this.isInfinity())return i.toJ();if(i.isInfinity())return this;var c=this.z.redSqr(),f=this.x,u=i.x.redMul(c),p=this.y,h=i.y.redMul(c).redMul(this.z),w=f.redSub(u),x=p.redSub(h);if(w.cmpn(0)===0)return x.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var R=w.redSqr(),N=R.redMul(w),F=f.redMul(R),I=x.redSqr().redIAdd(N).redISub(F).redISub(F),P=x.redMul(F.redISub(I)).redISub(p.redMul(N)),B=this.z.redMul(w);return this.curve.jpoint(I,P,B)},n.prototype.dblp=function(i){if(i===0)return this;if(this.isInfinity())return this;if(!i)return this.dbl();var c;if(this.curve.zeroA||this.curve.threeA){var f=this;for(c=0;c<i;c++)f=f.dbl();return f}var u=this.curve.a,p=this.curve.tinv,h=this.x,w=this.y,x=this.z,R=x.redSqr().redSqr(),N=w.redAdd(w);for(c=0;c<i;c++){var F=h.redSqr(),I=N.redSqr(),P=I.redSqr(),B=F.redAdd(F).redIAdd(F).redIAdd(u.redMul(R)),$=h.redMul(I),D=B.redSqr().redISub($.redAdd($)),S=$.redISub(D),T=B.redMul(S);T=T.redIAdd(T).redISub(P);var v=N.redMul(x);c+1<i&&(R=R.redMul(P)),h=D,x=v,N=T}return this.curve.jpoint(h,N.redMul(p),x)},n.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},n.prototype._zeroDbl=function(){var i,c,f;if(this.zOne){var u=this.x.redSqr(),p=this.y.redSqr(),h=p.redSqr(),w=this.x.redAdd(p).redSqr().redISub(u).redISub(h);w=w.redIAdd(w);var x=u.redAdd(u).redIAdd(u),R=x.redSqr().redISub(w).redISub(w),N=h.redIAdd(h);N=(N=N.redIAdd(N)).redIAdd(N),i=R,c=x.redMul(w.redISub(R)).redISub(N),f=this.y.redAdd(this.y)}else{var F=this.x.redSqr(),I=this.y.redSqr(),P=I.redSqr(),B=this.x.redAdd(I).redSqr().redISub(F).redISub(P);B=B.redIAdd(B);var $=F.redAdd(F).redIAdd(F),D=$.redSqr(),S=P.redIAdd(P);S=(S=S.redIAdd(S)).redIAdd(S),i=D.redISub(B).redISub(B),c=$.redMul(B.redISub(i)).redISub(S),f=(f=this.y.redMul(this.z)).redIAdd(f)}return this.curve.jpoint(i,c,f)},n.prototype._threeDbl=function(){var i,c,f;if(this.zOne){var u=this.x.redSqr(),p=this.y.redSqr(),h=p.redSqr(),w=this.x.redAdd(p).redSqr().redISub(u).redISub(h);w=w.redIAdd(w);var x=u.redAdd(u).redIAdd(u).redIAdd(this.curve.a),R=x.redSqr().redISub(w).redISub(w);i=R;var N=h.redIAdd(h);N=(N=N.redIAdd(N)).redIAdd(N),c=x.redMul(w.redISub(R)).redISub(N),f=this.y.redAdd(this.y)}else{var F=this.z.redSqr(),I=this.y.redSqr(),P=this.x.redMul(I),B=this.x.redSub(F).redMul(this.x.redAdd(F));B=B.redAdd(B).redIAdd(B);var $=P.redIAdd(P),D=($=$.redIAdd($)).redAdd($);i=B.redSqr().redISub(D),f=this.y.redAdd(this.z).redSqr().redISub(I).redISub(F);var S=I.redSqr();S=(S=(S=S.redIAdd(S)).redIAdd(S)).redIAdd(S),c=B.redMul($.redISub(i)).redISub(S)}return this.curve.jpoint(i,c,f)},n.prototype._dbl=function(){var i=this.curve.a,c=this.x,f=this.y,u=this.z,p=u.redSqr().redSqr(),h=c.redSqr(),w=f.redSqr(),x=h.redAdd(h).redIAdd(h).redIAdd(i.redMul(p)),R=c.redAdd(c),N=(R=R.redIAdd(R)).redMul(w),F=x.redSqr().redISub(N.redAdd(N)),I=N.redISub(F),P=w.redSqr();P=(P=(P=P.redIAdd(P)).redIAdd(P)).redIAdd(P);var B=x.redMul(I).redISub(P),$=f.redAdd(f).redMul(u);return this.curve.jpoint(F,B,$)},n.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var i=this.x.redSqr(),c=this.y.redSqr(),f=this.z.redSqr(),u=c.redSqr(),p=i.redAdd(i).redIAdd(i),h=p.redSqr(),w=this.x.redAdd(c).redSqr().redISub(i).redISub(u),x=(w=(w=(w=w.redIAdd(w)).redAdd(w).redIAdd(w)).redISub(h)).redSqr(),R=u.redIAdd(u);R=(R=(R=R.redIAdd(R)).redIAdd(R)).redIAdd(R);var N=p.redIAdd(w).redSqr().redISub(h).redISub(x).redISub(R),F=c.redMul(N);F=(F=F.redIAdd(F)).redIAdd(F);var I=this.x.redMul(x).redISub(F);I=(I=I.redIAdd(I)).redIAdd(I);var P=this.y.redMul(N.redMul(R.redISub(N)).redISub(w.redMul(x)));P=(P=(P=P.redIAdd(P)).redIAdd(P)).redIAdd(P);var B=this.z.redAdd(w).redSqr().redISub(f).redISub(x);return this.curve.jpoint(I,P,B)},n.prototype.mul=function(i,c){return i=new a(i,c),this.curve._wnafMul(this,i)},n.prototype.eq=function(i){if(i.type==="affine")return this.eq(i.toJ());if(this===i)return!0;var c=this.z.redSqr(),f=i.z.redSqr();if(this.x.redMul(f).redISub(i.x.redMul(c)).cmpn(0)!==0)return!1;var u=c.redMul(this.z),p=f.redMul(i.z);return this.y.redMul(p).redISub(i.y.redMul(u)).cmpn(0)===0},n.prototype.eqXToP=function(i){var c=this.z.redSqr(),f=i.toRed(this.curve.red).redMul(c);if(this.x.cmp(f)===0)return!0;for(var u=i.clone(),p=this.curve.redN.redMul(c);;){if(u.iadd(this.curve.n),u.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(p),this.x.cmp(f)===0)return!0}},n.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)+">"},n.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(s,C,_){var d,a=_,o=s("hash.js"),r=s("./curve"),t=s("./utils").assert;function e(n){n.type==="short"?this.curve=new r.short(n):n.type==="edwards"?this.curve=new r.edwards(n):this.curve=new r.mont(n),this.g=this.curve.g,this.n=this.curve.n,this.hash=n.hash,t(this.g.validate(),"Invalid curve"),t(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(n,i){Object.defineProperty(a,n,{configurable:!0,enumerable:!0,get:function(){var c=new e(i);return Object.defineProperty(a,n,{configurable:!0,enumerable:!0,value:c}),c}})}a.PresetCurve=e,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"]});try{d=s("./precomputed/secp256k1")}catch{d=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",d]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(s,C,_){var d=s("bn.js"),a=s("hmac-drbg"),o=s("../utils"),r=s("../curves"),t=s("brorand"),e=o.assert,l=s("./key"),n=s("./signature");function i(c){if(!(this instanceof i))return new i(c);typeof c=="string"&&(e(Object.prototype.hasOwnProperty.call(r,c),"Unknown curve "+c),c=r[c]),c instanceof r.PresetCurve&&(c={curve:c}),this.curve=c.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=c.curve.g,this.g.precompute(c.curve.n.bitLength()+1),this.hash=c.hash||c.curve.hash}C.exports=i,i.prototype.keyPair=function(c){return new l(this,c)},i.prototype.keyFromPrivate=function(c,f){return l.fromPrivate(this,c,f)},i.prototype.keyFromPublic=function(c,f){return l.fromPublic(this,c,f)},i.prototype.genKeyPair=function(c){c||(c={});for(var f=new a({hash:this.hash,pers:c.pers,persEnc:c.persEnc||"utf8",entropy:c.entropy||t(this.hash.hmacStrength),entropyEnc:c.entropy&&c.entropyEnc||"utf8",nonce:this.n.toArray()}),u=this.n.byteLength(),p=this.n.sub(new d(2));;){var h=new d(f.generate(u));if(!(h.cmp(p)>0))return h.iaddn(1),this.keyFromPrivate(h)}},i.prototype._truncateToN=function(c,f){var u=8*c.byteLength()-this.n.bitLength();return u>0&&(c=c.ushrn(u)),!f&&c.cmp(this.n)>=0?c.sub(this.n):c},i.prototype.sign=function(c,f,u,p){typeof u=="object"&&(p=u,u=null),p||(p={}),f=this.keyFromPrivate(f,u),c=this._truncateToN(new d(c,16));for(var h=this.n.byteLength(),w=f.getPrivate().toArray("be",h),x=c.toArray("be",h),R=new a({hash:this.hash,entropy:w,nonce:x,pers:p.pers,persEnc:p.persEnc||"utf8"}),N=this.n.sub(new d(1)),F=0;;F++){var I=p.k?p.k(F):new d(R.generate(this.n.byteLength()));if(!((I=this._truncateToN(I,!0)).cmpn(1)<=0||I.cmp(N)>=0)){var P=this.g.mul(I);if(!P.isInfinity()){var B=P.getX(),$=B.umod(this.n);if($.cmpn(0)!==0){var D=I.invm(this.n).mul($.mul(f.getPrivate()).iadd(c));if((D=D.umod(this.n)).cmpn(0)!==0){var S=(P.getY().isOdd()?1:0)|(B.cmp($)!==0?2:0);return p.canonical&&D.cmp(this.nh)>0&&(D=this.n.sub(D),S^=1),new n({r:$,s:D,recoveryParam:S})}}}}}},i.prototype.verify=function(c,f,u,p){c=this._truncateToN(new d(c,16)),u=this.keyFromPublic(u,p);var h=(f=new n(f,"hex")).r,w=f.s;if(h.cmpn(1)<0||h.cmp(this.n)>=0||w.cmpn(1)<0||w.cmp(this.n)>=0)return!1;var x,R=w.invm(this.n),N=R.mul(c).umod(this.n),F=R.mul(h).umod(this.n);return this.curve._maxwellTrick?!(x=this.g.jmulAdd(N,u.getPublic(),F)).isInfinity()&&x.eqXToP(h):!(x=this.g.mulAdd(N,u.getPublic(),F)).isInfinity()&&x.getX().umod(this.n).cmp(h)===0},i.prototype.recoverPubKey=function(c,f,u,p){e((3&u)===u,"The recovery param is more than two bits"),f=new n(f,p);var h=this.n,w=new d(c),x=f.r,R=f.s,N=1&u,F=u>>1;if(x.cmp(this.curve.p.umod(this.curve.n))>=0&&F)throw new Error("Unable to find sencond key candinate");x=F?this.curve.pointFromX(x.add(this.curve.n),N):this.curve.pointFromX(x,N);var I=f.r.invm(h),P=h.sub(w).mul(I).umod(h),B=R.mul(I).umod(h);return this.g.mulAdd(P,x,B)},i.prototype.getKeyRecoveryParam=function(c,f,u,p){if((f=new n(f,p)).recoveryParam!==null)return f.recoveryParam;for(var h=0;h<4;h++){var w;try{w=this.recoverPubKey(c,f,h)}catch{continue}if(w.eq(u))return h}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(s,C,_){var d=s("bn.js"),a=s("../utils").assert;function o(r,t){this.ec=r,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}C.exports=o,o.fromPublic=function(r,t,e){return t instanceof o?t:new o(r,{pub:t,pubEnc:e})},o.fromPrivate=function(r,t,e){return t instanceof o?t:new o(r,{priv:t,privEnc:e})},o.prototype.validate=function(){var r=this.getPublic();return r.isInfinity()?{result:!1,reason:"Invalid public key"}:r.validate()?r.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"}},o.prototype.getPublic=function(r,t){return typeof r=="string"&&(t=r,r=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,r):this.pub},o.prototype.getPrivate=function(r){return r==="hex"?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(r,t){this.priv=new d(r,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(r,t){if(r.x||r.y)return this.ec.curve.type==="mont"?a(r.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||a(r.x&&r.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(r.x,r.y));this.pub=this.ec.curve.decodePoint(r,t)},o.prototype.derive=function(r){return r.validate()||a(r.validate(),"public point not validated"),r.mul(this.priv).getX()},o.prototype.sign=function(r,t,e){return this.ec.sign(r,this,t,e)},o.prototype.verify=function(r,t){return this.ec.verify(r,t,this)},o.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(s,C,_){var d=s("bn.js"),a=s("../utils"),o=a.assert;function r(i,c){if(i instanceof r)return i;this._importDER(i,c)||(o(i.r&&i.s,"Signature without r or s"),this.r=new d(i.r,16),this.s=new d(i.s,16),i.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=i.recoveryParam)}function t(){this.place=0}function e(i,c){var f=i[c.place++];if(!(128&f))return f;var u=15&f;if(u===0||u>4)return!1;for(var p=0,h=0,w=c.place;h<u;h++,w++)p<<=8,p|=i[w],p>>>=0;return!(p<=127)&&(c.place=w,p)}function l(i){for(var c=0,f=i.length-1;!i[c]&&!(128&i[c+1])&&c<f;)c++;return c===0?i:i.slice(c)}function n(i,c){if(c<128)i.push(c);else{var f=1+(Math.log(c)/Math.LN2>>>3);for(i.push(128|f);--f;)i.push(c>>>(f<<3)&255);i.push(c)}}C.exports=r,r.prototype._importDER=function(i,c){i=a.toArray(i,c);var f=new t;if(i[f.place++]!==48)return!1;var u=e(i,f);if(u===!1||u+f.place!==i.length||i[f.place++]!==2)return!1;var p=e(i,f);if(p===!1)return!1;var h=i.slice(f.place,p+f.place);if(f.place+=p,i[f.place++]!==2)return!1;var w=e(i,f);if(w===!1||i.length!==w+f.place)return!1;var x=i.slice(f.place,w+f.place);if(h[0]===0){if(!(128&h[1]))return!1;h=h.slice(1)}if(x[0]===0){if(!(128&x[1]))return!1;x=x.slice(1)}return this.r=new d(h),this.s=new d(x),this.recoveryParam=null,!0},r.prototype.toDER=function(i){var c=this.r.toArray(),f=this.s.toArray();for(128&c[0]&&(c=[0].concat(c)),128&f[0]&&(f=[0].concat(f)),c=l(c),f=l(f);!(f[0]||128&f[1]);)f=f.slice(1);var u=[2];n(u,c.length),(u=u.concat(c)).push(2),n(u,f.length);var p=u.concat(f),h=[48];return n(h,p.length),h=h.concat(p),a.encode(h,i)}},{"../utils":419,"bn.js":420}],415:[function(s,C,_){var d=s("hash.js"),a=s("../curves"),o=s("../utils"),r=o.assert,t=o.parseBytes,e=s("./key"),l=s("./signature");function n(i){if(r(i==="ed25519","only tested with ed25519 so far"),!(this instanceof n))return new n(i);i=a[i].curve,this.curve=i,this.g=i.g,this.g.precompute(i.n.bitLength()+1),this.pointClass=i.point().constructor,this.encodingLength=Math.ceil(i.n.bitLength()/8),this.hash=d.sha512}C.exports=n,n.prototype.sign=function(i,c){i=t(i);var f=this.keyFromSecret(c),u=this.hashInt(f.messagePrefix(),i),p=this.g.mul(u),h=this.encodePoint(p),w=this.hashInt(h,f.pubBytes(),i).mul(f.priv()),x=u.add(w).umod(this.curve.n);return this.makeSignature({R:p,S:x,Rencoded:h})},n.prototype.verify=function(i,c,f){i=t(i),c=this.makeSignature(c);var u=this.keyFromPublic(f),p=this.hashInt(c.Rencoded(),u.pubBytes(),i),h=this.g.mul(c.S());return c.R().add(u.pub().mul(p)).eq(h)},n.prototype.hashInt=function(){for(var i=this.hash(),c=0;c<arguments.length;c++)i.update(arguments[c]);return o.intFromLE(i.digest()).umod(this.curve.n)},n.prototype.keyFromPublic=function(i){return e.fromPublic(this,i)},n.prototype.keyFromSecret=function(i){return e.fromSecret(this,i)},n.prototype.makeSignature=function(i){return i instanceof l?i:new l(this,i)},n.prototype.encodePoint=function(i){var c=i.getY().toArray("le",this.encodingLength);return c[this.encodingLength-1]|=i.getX().isOdd()?128:0,c},n.prototype.decodePoint=function(i){var c=(i=o.parseBytes(i)).length-1,f=i.slice(0,c).concat(-129&i[c]),u=(128&i[c])!=0,p=o.intFromLE(f);return this.curve.pointFromY(p,u)},n.prototype.encodeInt=function(i){return i.toArray("le",this.encodingLength)},n.prototype.decodeInt=function(i){return o.intFromLE(i)},n.prototype.isPoint=function(i){return i instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(s,C,_){var d=s("../utils"),a=d.assert,o=d.parseBytes,r=d.cachedProperty;function t(e,l){this.eddsa=e,this._secret=o(l.secret),e.isPoint(l.pub)?this._pub=l.pub:this._pubBytes=o(l.pub)}t.fromPublic=function(e,l){return l instanceof t?l:new t(e,{pub:l})},t.fromSecret=function(e,l){return l instanceof t?l:new t(e,{secret:l})},t.prototype.secret=function(){return this._secret},r(t,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),r(t,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),r(t,"privBytes",function(){var e=this.eddsa,l=this.hash(),n=e.encodingLength-1,i=l.slice(0,e.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i}),r(t,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),r(t,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),r(t,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),t.prototype.sign=function(e){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},t.prototype.verify=function(e,l){return this.eddsa.verify(e,l,this)},t.prototype.getSecret=function(e){return a(this._secret,"KeyPair is public only"),d.encode(this.secret(),e)},t.prototype.getPublic=function(e){return d.encode(this.pubBytes(),e)},C.exports=t},{"../utils":419}],417:[function(s,C,_){var d=s("bn.js"),a=s("../utils"),o=a.assert,r=a.cachedProperty,t=a.parseBytes;function e(l,n){this.eddsa=l,typeof n!="object"&&(n=t(n)),Array.isArray(n)&&(n={R:n.slice(0,l.encodingLength),S:n.slice(l.encodingLength)}),o(n.R&&n.S,"Signature without R or S"),l.isPoint(n.R)&&(this._R=n.R),n.S instanceof d&&(this._S=n.S),this._Rencoded=Array.isArray(n.R)?n.R:n.Rencoded,this._Sencoded=Array.isArray(n.S)?n.S:n.Sencoded}r(e,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),r(e,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),r(e,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),r(e,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),e.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},e.prototype.toHex=function(){return a.encode(this.toBytes(),"hex").toUpperCase()},C.exports=e},{"../utils":419,"bn.js":420}],418:[function(s,C,_){C.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(s,C,_){var d=_,a=s("bn.js"),o=s("minimalistic-assert"),r=s("minimalistic-crypto-utils");d.assert=o,d.toArray=r.toArray,d.zero2=r.zero2,d.toHex=r.toHex,d.encode=r.encode,d.getNAF=function(t,e,l){var n=new Array(Math.max(t.bitLength(),l)+1);n.fill(0);for(var i=1<<e+1,c=t.clone(),f=0;f<n.length;f++){var u,p=c.andln(i-1);c.isOdd()?(u=p>(i>>1)-1?(i>>1)-p:p,c.isubn(u)):u=0,n[f]=u,c.iushrn(1)}return n},d.getJSF=function(t,e){var l=[[],[]];t=t.clone(),e=e.clone();for(var n,i=0,c=0;t.cmpn(-i)>0||e.cmpn(-c)>0;){var f,u,p=t.andln(3)+i&3,h=e.andln(3)+c&3;p===3&&(p=-1),h===3&&(h=-1),f=1&p?(n=t.andln(7)+i&7)!==3&&n!==5||h!==2?p:-p:0,l[0].push(f),u=1&h?(n=e.andln(7)+c&7)!==3&&n!==5||p!==2?h:-h:0,l[1].push(u),2*i===f+1&&(i=1-i),2*c===u+1&&(c=1-c),t.iushrn(1),e.iushrn(1)}return l},d.cachedProperty=function(t,e,l){var n="_"+e;t.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=l.call(this)}},d.parseBytes=function(t){return typeof t=="string"?d.toArray(t,"hex"):t},d.intFromLE=function(t){return new a(t,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(s,C,_){arguments[4][184][0].apply(_,arguments)},{buffer:188,dup:184}],421:[function(s,C,_){C.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(s,C,_){var d=Object.create||function(I){var P=function(){};return P.prototype=I,new P},a=Object.keys||function(I){var P=[];for(var B in I)Object.prototype.hasOwnProperty.call(I,B)&&P.push(B);return B},o=Function.prototype.bind||function(I){var P=this;return function(){return P.apply(I,arguments)}};function r(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=d(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}C.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0;var t,e=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),t=l.x===0}catch{t=!1}function n(I){return I._maxListeners===void 0?r.defaultMaxListeners:I._maxListeners}function i(I,P,B){if(P)I.call(B);else for(var $=I.length,D=F(I,$),S=0;S<$;++S)D[S].call(B)}function c(I,P,B,$){if(P)I.call(B,$);else for(var D=I.length,S=F(I,D),T=0;T<D;++T)S[T].call(B,$)}function f(I,P,B,$,D){if(P)I.call(B,$,D);else for(var S=I.length,T=F(I,S),v=0;v<S;++v)T[v].call(B,$,D)}function u(I,P,B,$,D,S){if(P)I.call(B,$,D,S);else for(var T=I.length,v=F(I,T),m=0;m<T;++m)v[m].call(B,$,D,S)}function p(I,P,B,$){if(P)I.apply(B,$);else for(var D=I.length,S=F(I,D),T=0;T<D;++T)S[T].apply(B,$)}function h(I,P,B,$){var D,S,T;if(typeof B!="function")throw new TypeError('"listener" argument must be a function');if((S=I._events)?(S.newListener&&(I.emit("newListener",P,B.listener?B.listener:B),S=I._events),T=S[P]):(S=I._events=d(null),I._eventsCount=0),T){if(typeof T=="function"?T=S[P]=$?[B,T]:[T,B]:$?T.unshift(B):T.push(B),!T.warned&&(D=n(I))&&D>0&&T.length>D){T.warned=!0;var v=new Error("Possible EventEmitter memory leak detected. "+T.length+' "'+String(P)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');v.name="MaxListenersExceededWarning",v.emitter=I,v.type=P,v.count=T.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",v.name,v.message)}}else T=S[P]=B,++I._eventsCount;return I}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 I=new Array(arguments.length),P=0;P<I.length;++P)I[P]=arguments[P];this.listener.apply(this.target,I)}}function x(I,P,B){var $={fired:!1,wrapFn:void 0,target:I,type:P,listener:B},D=o.call(w,$);return D.listener=B,$.wrapFn=D,D}function R(I,P,B){var $=I._events;if(!$)return[];var D=$[P];return D?typeof D=="function"?B?[D.listener||D]:[D]:B?function(S){for(var T=new Array(S.length),v=0;v<T.length;++v)T[v]=S[v].listener||S[v];return T}(D):F(D,D.length):[]}function N(I){var P=this._events;if(P){var B=P[I];if(typeof B=="function")return 1;if(B)return B.length}return 0}function F(I,P){for(var B=new Array(P),$=0;$<P;++$)B[$]=I[$];return B}t?Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return e},set:function(I){if(typeof I!="number"||I<0||I!=I)throw new TypeError('"defaultMaxListeners" must be a positive number');e=I}}):r.defaultMaxListeners=e,r.prototype.setMaxListeners=function(I){if(typeof I!="number"||I<0||isNaN(I))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=I,this},r.prototype.getMaxListeners=function(){return n(this)},r.prototype.emit=function(I){var P,B,$,D,S,T,v=I==="error";if(T=this._events)v=v&&T.error==null;else if(!v)return!1;if(v){if(arguments.length>1&&(P=arguments[1]),P instanceof Error)throw P;var m=new Error('Unhandled "error" event. ('+P+")");throw m.context=P,m}if(!(B=T[I]))return!1;var b=typeof B=="function";switch($=arguments.length){case 1:i(B,b,this);break;case 2:c(B,b,this,arguments[1]);break;case 3:f(B,b,this,arguments[1],arguments[2]);break;case 4:u(B,b,this,arguments[1],arguments[2],arguments[3]);break;default:for(D=new Array($-1),S=1;S<$;S++)D[S-1]=arguments[S];p(B,b,this,D)}return!0},r.prototype.addListener=function(I,P){return h(this,I,P,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(I,P){return h(this,I,P,!0)},r.prototype.once=function(I,P){if(typeof P!="function")throw new TypeError('"listener" argument must be a function');return this.on(I,x(this,I,P)),this},r.prototype.prependOnceListener=function(I,P){if(typeof P!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(I,x(this,I,P)),this},r.prototype.removeListener=function(I,P){var B,$,D,S,T;if(typeof P!="function")throw new TypeError('"listener" argument must be a function');if(!($=this._events))return this;if(!(B=$[I]))return this;if(B===P||B.listener===P)--this._eventsCount==0?this._events=d(null):(delete $[I],$.removeListener&&this.emit("removeListener",I,B.listener||P));else if(typeof B!="function"){for(D=-1,S=B.length-1;S>=0;S--)if(B[S]===P||B[S].listener===P){T=B[S].listener,D=S;break}if(D<0)return this;D===0?B.shift():function(v,m){for(var b=m,g=b+1,y=v.length;g<y;b+=1,g+=1)v[b]=v[g];v.pop()}(B,D),B.length===1&&($[I]=B[0]),$.removeListener&&this.emit("removeListener",I,T||P)}return this},r.prototype.removeAllListeners=function(I){var P,B,$;if(!(B=this._events))return this;if(!B.removeListener)return arguments.length===0?(this._events=d(null),this._eventsCount=0):B[I]&&(--this._eventsCount==0?this._events=d(null):delete B[I]),this;if(arguments.length===0){var D,S=a(B);for($=0;$<S.length;++$)(D=S[$])!=="removeListener"&&this.removeAllListeners(D);return this.removeAllListeners("removeListener"),this._events=d(null),this._eventsCount=0,this}if(typeof(P=B[I])=="function")this.removeListener(I,P);else if(P)for($=P.length-1;$>=0;$--)this.removeListener(I,P[$]);return this},r.prototype.listeners=function(I){return R(this,I,!0)},r.prototype.rawListeners=function(I){return R(this,I,!1)},r.listenerCount=function(I,P){return typeof I.listenerCount=="function"?I.listenerCount(P):N.call(I,P)},r.prototype.listenerCount=N,r.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(s,C,_){var d=s("safe-buffer").Buffer,a=s("md5.js");C.exports=function(o,r,t,e){if(d.isBuffer(o)||(o=d.from(o,"binary")),r&&(d.isBuffer(r)||(r=d.from(r,"binary")),r.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var l=t/8,n=d.alloc(l),i=d.alloc(e||0),c=d.alloc(0);l>0||e>0;){var f=new a;f.update(c),f.update(o),r&&f.update(r),c=f.digest();var u=0;if(l>0){var p=n.length-l;u=Math.min(l,c.length),c.copy(n,p,0,u),l-=u}if(u<c.length&&e>0){var h=i.length-e,w=Math.min(e,c.length-u);c.copy(i,h,u,u+w),e-=w}}return c.fill(0),{key:n,iv:i}}},{"md5.js":450,"safe-buffer":494}],424:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.CsvParserStream=_.ParserOptions=_.parseFile=_.parseStream=_.parseString=_.parse=_.FormatterOptions=_.CsvFormatterStream=_.writeToPath=_.writeToString=_.writeToBuffer=_.writeToStream=_.write=_.format=void 0;var d=s("@fast-csv/format");Object.defineProperty(_,"format",{enumerable:!0,get:function(){return d.format}}),Object.defineProperty(_,"write",{enumerable:!0,get:function(){return d.write}}),Object.defineProperty(_,"writeToStream",{enumerable:!0,get:function(){return d.writeToStream}}),Object.defineProperty(_,"writeToBuffer",{enumerable:!0,get:function(){return d.writeToBuffer}}),Object.defineProperty(_,"writeToString",{enumerable:!0,get:function(){return d.writeToString}}),Object.defineProperty(_,"writeToPath",{enumerable:!0,get:function(){return d.writeToPath}}),Object.defineProperty(_,"CsvFormatterStream",{enumerable:!0,get:function(){return d.CsvFormatterStream}}),Object.defineProperty(_,"FormatterOptions",{enumerable:!0,get:function(){return d.FormatterOptions}});var a=s("@fast-csv/parse");Object.defineProperty(_,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(_,"parseString",{enumerable:!0,get:function(){return a.parseString}}),Object.defineProperty(_,"parseStream",{enumerable:!0,get:function(){return a.parseStream}}),Object.defineProperty(_,"parseFile",{enumerable:!0,get:function(){return a.parseFile}}),Object.defineProperty(_,"ParserOptions",{enumerable:!0,get:function(){return a.ParserOptions}}),Object.defineProperty(_,"CsvParserStream",{enumerable:!0,get:function(){return a.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(s,C,_){var d=s("safe-buffer").Buffer,a=s("readable-stream").Transform;function o(r){a.call(this),this._block=d.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}s("inherits")(o,a),o.prototype._transform=function(r,t,e){var l=null;try{this.update(r,t)}catch(n){l=n}e(l)},o.prototype._flush=function(r){var t=null;try{this.push(this.digest())}catch(e){t=e}r(t)},o.prototype.update=function(r,t){if(function(f,u){if(!d.isBuffer(f)&&typeof f!="string")throw new TypeError(u+" must be a string or a buffer")}(r,"Data"),this._finalized)throw new Error("Digest already called");d.isBuffer(r)||(r=d.from(r,t));for(var e=this._block,l=0;this._blockOffset+r.length-l>=this._blockSize;){for(var n=this._blockOffset;n<this._blockSize;)e[n++]=r[l++];this._update(),this._blockOffset=0}for(;l<r.length;)e[this._blockOffset++]=r[l++];for(var i=0,c=8*r.length;c>0;++i)this._length[i]+=c,(c=this._length[i]/4294967296|0)>0&&(this._length[i]-=4294967296*c);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();r!==void 0&&(t=t.toString(r)),this._block.fill(0),this._blockOffset=0;for(var e=0;e<4;++e)this._length[e]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},C.exports=o},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(s,C,_){var d=_;d.utils=s("./hash/utils"),d.common=s("./hash/common"),d.sha=s("./hash/sha"),d.ripemd=s("./hash/ripemd"),d.hmac=s("./hash/hmac"),d.sha1=d.sha.sha1,d.sha256=d.sha.sha256,d.sha224=d.sha.sha224,d.sha384=d.sha.sha384,d.sha512=d.sha.sha512,d.ripemd160=d.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(s,C,_){var d=s("./utils"),a=s("minimalistic-assert");function o(){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}_.BlockHash=o,o.prototype.update=function(r,t){if(r=d.toArray(r,t),this.pending?this.pending=this.pending.concat(r):this.pending=r,this.pendingTotal+=r.length,this.pending.length>=this._delta8){var e=(r=this.pending).length%this._delta8;this.pending=r.slice(r.length-e,r.length),this.pending.length===0&&(this.pending=null),r=d.join32(r,0,r.length-e,this.endian);for(var l=0;l<r.length;l+=this._delta32)this._update(r,l,l+this._delta32)}return this},o.prototype.digest=function(r){return this.update(this._pad()),a(this.pending===null),this._digest(r)},o.prototype._pad=function(){var r=this.pendingTotal,t=this._delta8,e=t-(r+this.padLength)%t,l=new Array(e+this.padLength);l[0]=128;for(var n=1;n<e;n++)l[n]=0;if(r<<=3,this.endian==="big"){for(var i=8;i<this.padLength;i++)l[n++]=0;l[n++]=0,l[n++]=0,l[n++]=0,l[n++]=0,l[n++]=r>>>24&255,l[n++]=r>>>16&255,l[n++]=r>>>8&255,l[n++]=255&r}else for(l[n++]=255&r,l[n++]=r>>>8&255,l[n++]=r>>>16&255,l[n++]=r>>>24&255,l[n++]=0,l[n++]=0,l[n++]=0,l[n++]=0,i=8;i<this.padLength;i++)l[n++]=0;return l}},{"./utils":437,"minimalistic-assert":453}],428:[function(s,C,_){var d=s("./utils"),a=s("minimalistic-assert");function o(r,t,e){if(!(this instanceof o))return new o(r,t,e);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(d.toArray(t,e))}C.exports=o,o.prototype._init=function(r){r.length>this.blockSize&&(r=new this.Hash().update(r).digest()),a(r.length<=this.blockSize);for(var t=r.length;t<this.blockSize;t++)r.push(0);for(t=0;t<r.length;t++)r[t]^=54;for(this.inner=new this.Hash().update(r),t=0;t<r.length;t++)r[t]^=106;this.outer=new this.Hash().update(r)},o.prototype.update=function(r,t){return this.inner.update(r,t),this},o.prototype.digest=function(r){return this.outer.update(this.inner.digest()),this.outer.digest(r)}},{"./utils":437,"minimalistic-assert":453}],429:[function(s,C,_){var d=s("./utils"),a=s("./common"),o=d.rotl32,r=d.sum32,t=d.sum32_3,e=d.sum32_4,l=a.BlockHash;function n(){if(!(this instanceof n))return new n;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function i(x,R,N,F){return x<=15?R^N^F:x<=31?R&N|~R&F:x<=47?(R|~N)^F:x<=63?R&F|N&~F:R^(N|~F)}function c(x){return x<=15?0:x<=31?1518500249:x<=47?1859775393:x<=63?2400959708:2840853838}function f(x){return x<=15?1352829926:x<=31?1548603684:x<=47?1836072691:x<=63?2053994217:0}d.inherits(n,l),_.ripemd160=n,n.blockSize=512,n.outSize=160,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(x,R){for(var N=this.h[0],F=this.h[1],I=this.h[2],P=this.h[3],B=this.h[4],$=N,D=F,S=I,T=P,v=B,m=0;m<80;m++){var b=r(o(e(N,i(m,F,I,P),x[u[m]+R],c(m)),h[m]),B);N=B,B=P,P=o(I,10),I=F,F=b,b=r(o(e($,i(79-m,D,S,T),x[p[m]+R],f(m)),w[m]),v),$=v,v=T,T=o(S,10),S=D,D=b}b=t(this.h[1],I,T),this.h[1]=t(this.h[2],P,v),this.h[2]=t(this.h[3],B,$),this.h[3]=t(this.h[4],N,D),this.h[4]=t(this.h[0],F,S),this.h[0]=b},n.prototype._digest=function(x){return x==="hex"?d.toHex32(this.h,"little"):d.split32(this.h,"little")};var u=[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],p=[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],h=[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(s,C,_){_.sha1=s("./sha/1"),_.sha224=s("./sha/224"),_.sha256=s("./sha/256"),_.sha384=s("./sha/384"),_.sha512=s("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(s,C,_){var d=s("../utils"),a=s("../common"),o=s("./common"),r=d.rotl32,t=d.sum32,e=d.sum32_5,l=o.ft_1,n=a.BlockHash,i=[1518500249,1859775393,2400959708,3395469782];function c(){if(!(this instanceof c))return new c;n.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}d.inherits(c,n),C.exports=c,c.blockSize=512,c.outSize=160,c.hmacStrength=80,c.padLength=64,c.prototype._update=function(f,u){for(var p=this.W,h=0;h<16;h++)p[h]=f[u+h];for(;h<p.length;h++)p[h]=r(p[h-3]^p[h-8]^p[h-14]^p[h-16],1);var w=this.h[0],x=this.h[1],R=this.h[2],N=this.h[3],F=this.h[4];for(h=0;h<p.length;h++){var I=~~(h/20),P=e(r(w,5),l(I,x,R,N),F,p[h],i[I]);F=N,N=R,R=r(x,30),x=w,w=P}this.h[0]=t(this.h[0],w),this.h[1]=t(this.h[1],x),this.h[2]=t(this.h[2],R),this.h[3]=t(this.h[3],N),this.h[4]=t(this.h[4],F)},c.prototype._digest=function(f){return f==="hex"?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(s,C,_){var d=s("../utils"),a=s("./256");function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}d.inherits(o,a),C.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(r){return r==="hex"?d.toHex32(this.h.slice(0,7),"big"):d.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(s,C,_){var d=s("../utils"),a=s("../common"),o=s("./common"),r=s("minimalistic-assert"),t=d.sum32,e=d.sum32_4,l=d.sum32_5,n=o.ch32,i=o.maj32,c=o.s0_256,f=o.s1_256,u=o.g0_256,p=o.g1_256,h=a.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 x(){if(!(this instanceof x))return new x;h.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=w,this.W=new Array(64)}d.inherits(x,h),C.exports=x,x.blockSize=512,x.outSize=256,x.hmacStrength=192,x.padLength=64,x.prototype._update=function(R,N){for(var F=this.W,I=0;I<16;I++)F[I]=R[N+I];for(;I<F.length;I++)F[I]=e(p(F[I-2]),F[I-7],u(F[I-15]),F[I-16]);var P=this.h[0],B=this.h[1],$=this.h[2],D=this.h[3],S=this.h[4],T=this.h[5],v=this.h[6],m=this.h[7];for(r(this.k.length===F.length),I=0;I<F.length;I++){var b=l(m,f(S),n(S,T,v),this.k[I],F[I]),g=t(c(P),i(P,B,$));m=v,v=T,T=S,S=t(D,b),D=$,$=B,B=P,P=t(b,g)}this.h[0]=t(this.h[0],P),this.h[1]=t(this.h[1],B),this.h[2]=t(this.h[2],$),this.h[3]=t(this.h[3],D),this.h[4]=t(this.h[4],S),this.h[5]=t(this.h[5],T),this.h[6]=t(this.h[6],v),this.h[7]=t(this.h[7],m)},x.prototype._digest=function(R){return R==="hex"?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(s,C,_){var d=s("../utils"),a=s("./512");function o(){if(!(this instanceof o))return new o;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}d.inherits(o,a),C.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(r){return r==="hex"?d.toHex32(this.h.slice(0,12),"big"):d.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(s,C,_){var d=s("../utils"),a=s("../common"),o=s("minimalistic-assert"),r=d.rotr64_hi,t=d.rotr64_lo,e=d.shr64_hi,l=d.shr64_lo,n=d.sum64,i=d.sum64_hi,c=d.sum64_lo,f=d.sum64_4_hi,u=d.sum64_4_lo,p=d.sum64_5_hi,h=d.sum64_5_lo,w=a.BlockHash,x=[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 R(){if(!(this instanceof R))return new R;w.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=x,this.W=new Array(160)}function N(g,y,k,O,A){var z=g&k^~g&A;return z<0&&(z+=4294967296),z}function F(g,y,k,O,A,z){var U=y&O^~y&z;return U<0&&(U+=4294967296),U}function I(g,y,k,O,A){var z=g&k^g&A^k&A;return z<0&&(z+=4294967296),z}function P(g,y,k,O,A,z){var U=y&O^y&z^O&z;return U<0&&(U+=4294967296),U}function B(g,y){var k=r(g,y,28)^r(y,g,2)^r(y,g,7);return k<0&&(k+=4294967296),k}function $(g,y){var k=t(g,y,28)^t(y,g,2)^t(y,g,7);return k<0&&(k+=4294967296),k}function D(g,y){var k=r(g,y,14)^r(g,y,18)^r(y,g,9);return k<0&&(k+=4294967296),k}function S(g,y){var k=t(g,y,14)^t(g,y,18)^t(y,g,9);return k<0&&(k+=4294967296),k}function T(g,y){var k=r(g,y,1)^r(g,y,8)^e(g,y,7);return k<0&&(k+=4294967296),k}function v(g,y){var k=t(g,y,1)^t(g,y,8)^l(g,y,7);return k<0&&(k+=4294967296),k}function m(g,y){var k=r(g,y,19)^r(y,g,29)^e(g,y,6);return k<0&&(k+=4294967296),k}function b(g,y){var k=t(g,y,19)^t(y,g,29)^l(g,y,6);return k<0&&(k+=4294967296),k}d.inherits(R,w),C.exports=R,R.blockSize=1024,R.outSize=512,R.hmacStrength=192,R.padLength=128,R.prototype._prepareBlock=function(g,y){for(var k=this.W,O=0;O<32;O++)k[O]=g[y+O];for(;O<k.length;O+=2){var A=m(k[O-4],k[O-3]),z=b(k[O-4],k[O-3]),U=k[O-14],X=k[O-13],j=T(k[O-30],k[O-29]),V=v(k[O-30],k[O-29]),E=k[O-32],M=k[O-31];k[O]=f(A,z,U,X,j,V,E,M),k[O+1]=u(A,z,U,X,j,V,E,M)}},R.prototype._update=function(g,y){this._prepareBlock(g,y);var k=this.W,O=this.h[0],A=this.h[1],z=this.h[2],U=this.h[3],X=this.h[4],j=this.h[5],V=this.h[6],E=this.h[7],M=this.h[8],L=this.h[9],q=this.h[10],Z=this.h[11],W=this.h[12],K=this.h[13],rt=this.h[14],et=this.h[15];o(this.k.length===k.length);for(var Y=0;Y<k.length;Y+=2){var Q=rt,J=et,st=D(M,L),it=S(M,L),ot=N(M,L,q,Z,W),ut=F(M,L,q,Z,W,K),ct=this.k[Y],pt=this.k[Y+1],St=k[Y],xt=k[Y+1],yt=p(Q,J,st,it,ot,ut,ct,pt,St,xt),Ot=h(Q,J,st,it,ot,ut,ct,pt,St,xt);Q=B(O,A),J=$(O,A),st=I(O,A,z,U,X),it=P(O,A,z,U,X,j);var At=i(Q,J,st,it),Rt=c(Q,J,st,it);rt=W,et=K,W=q,K=Z,q=M,Z=L,M=i(V,E,yt,Ot),L=c(E,E,yt,Ot),V=X,E=j,X=z,j=U,z=O,U=A,O=i(yt,Ot,At,Rt),A=c(yt,Ot,At,Rt)}n(this.h,0,O,A),n(this.h,2,z,U),n(this.h,4,X,j),n(this.h,6,V,E),n(this.h,8,M,L),n(this.h,10,q,Z),n(this.h,12,W,K),n(this.h,14,rt,et)},R.prototype._digest=function(g){return g==="hex"?d.toHex32(this.h,"big"):d.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(s,C,_){var d=s("../utils").rotr32;function a(t,e,l){return t&e^~t&l}function o(t,e,l){return t&e^t&l^e&l}function r(t,e,l){return t^e^l}_.ft_1=function(t,e,l,n){return t===0?a(e,l,n):t===1||t===3?r(e,l,n):t===2?o(e,l,n):void 0},_.ch32=a,_.maj32=o,_.p32=r,_.s0_256=function(t){return d(t,2)^d(t,13)^d(t,22)},_.s1_256=function(t){return d(t,6)^d(t,11)^d(t,25)},_.g0_256=function(t){return d(t,7)^d(t,18)^t>>>3},_.g1_256=function(t){return d(t,17)^d(t,19)^t>>>10}},{"../utils":437}],437:[function(s,C,_){var d=s("minimalistic-assert"),a=s("inherits");function o(l,n){return(64512&l.charCodeAt(n))==55296&&!(n<0||n+1>=l.length)&&(64512&l.charCodeAt(n+1))==56320}function r(l){return(l>>>24|l>>>8&65280|l<<8&16711680|(255&l)<<24)>>>0}function t(l){return l.length===1?"0"+l:l}function e(l){return l.length===7?"0"+l:l.length===6?"00"+l:l.length===5?"000"+l:l.length===4?"0000"+l:l.length===3?"00000"+l:l.length===2?"000000"+l:l.length===1?"0000000"+l:l}_.inherits=a,_.toArray=function(l,n){if(Array.isArray(l))return l.slice();if(!l)return[];var i=[];if(typeof l=="string")if(n){if(n==="hex")for((l=l.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(l="0"+l),f=0;f<l.length;f+=2)i.push(parseInt(l[f]+l[f+1],16))}else for(var c=0,f=0;f<l.length;f++){var u=l.charCodeAt(f);u<128?i[c++]=u:u<2048?(i[c++]=u>>6|192,i[c++]=63&u|128):o(l,f)?(u=65536+((1023&u)<<10)+(1023&l.charCodeAt(++f)),i[c++]=u>>18|240,i[c++]=u>>12&63|128,i[c++]=u>>6&63|128,i[c++]=63&u|128):(i[c++]=u>>12|224,i[c++]=u>>6&63|128,i[c++]=63&u|128)}else for(f=0;f<l.length;f++)i[f]=0|l[f];return i},_.toHex=function(l){for(var n="",i=0;i<l.length;i++)n+=t(l[i].toString(16));return n},_.htonl=r,_.toHex32=function(l,n){for(var i="",c=0;c<l.length;c++){var f=l[c];n==="little"&&(f=r(f)),i+=e(f.toString(16))}return i},_.zero2=t,_.zero8=e,_.join32=function(l,n,i,c){var f=i-n;d(f%4==0);for(var u=new Array(f/4),p=0,h=n;p<u.length;p++,h+=4){var w;w=c==="big"?l[h]<<24|l[h+1]<<16|l[h+2]<<8|l[h+3]:l[h+3]<<24|l[h+2]<<16|l[h+1]<<8|l[h],u[p]=w>>>0}return u},_.split32=function(l,n){for(var i=new Array(4*l.length),c=0,f=0;c<l.length;c++,f+=4){var u=l[c];n==="big"?(i[f]=u>>>24,i[f+1]=u>>>16&255,i[f+2]=u>>>8&255,i[f+3]=255&u):(i[f+3]=u>>>24,i[f+2]=u>>>16&255,i[f+1]=u>>>8&255,i[f]=255&u)}return i},_.rotr32=function(l,n){return l>>>n|l<<32-n},_.rotl32=function(l,n){return l<<n|l>>>32-n},_.sum32=function(l,n){return l+n>>>0},_.sum32_3=function(l,n,i){return l+n+i>>>0},_.sum32_4=function(l,n,i,c){return l+n+i+c>>>0},_.sum32_5=function(l,n,i,c,f){return l+n+i+c+f>>>0},_.sum64=function(l,n,i,c){var f=l[n],u=c+l[n+1]>>>0,p=(u<c?1:0)+i+f;l[n]=p>>>0,l[n+1]=u},_.sum64_hi=function(l,n,i,c){return(n+c>>>0<n?1:0)+l+i>>>0},_.sum64_lo=function(l,n,i,c){return n+c>>>0},_.sum64_4_hi=function(l,n,i,c,f,u,p,h){var w=0,x=n;return w+=(x=x+c>>>0)<n?1:0,w+=(x=x+u>>>0)<u?1:0,l+i+f+p+(w+=(x=x+h>>>0)<h?1:0)>>>0},_.sum64_4_lo=function(l,n,i,c,f,u,p,h){return n+c+u+h>>>0},_.sum64_5_hi=function(l,n,i,c,f,u,p,h,w,x){var R=0,N=n;return R+=(N=N+c>>>0)<n?1:0,R+=(N=N+u>>>0)<u?1:0,R+=(N=N+h>>>0)<h?1:0,l+i+f+p+w+(R+=(N=N+x>>>0)<x?1:0)>>>0},_.sum64_5_lo=function(l,n,i,c,f,u,p,h,w,x){return n+c+u+h+x>>>0},_.rotr64_hi=function(l,n,i){return(n<<32-i|l>>>i)>>>0},_.rotr64_lo=function(l,n,i){return(l<<32-i|n>>>i)>>>0},_.shr64_hi=function(l,n,i){return l>>>i},_.shr64_lo=function(l,n,i){return(l<<32-i|n>>>i)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(s,C,_){var d=s("hash.js"),a=s("minimalistic-crypto-utils"),o=s("minimalistic-assert");function r(t){if(!(this instanceof r))return new r(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=a.toArray(t.entropy,t.entropyEnc||"hex"),l=a.toArray(t.nonce,t.nonceEnc||"hex"),n=a.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,l,n)}C.exports=r,r.prototype._init=function(t,e,l){var n=t.concat(e).concat(l);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},r.prototype._hmac=function(){return new d.hmac(this.hash,this.K)},r.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},r.prototype.reseed=function(t,e,l,n){typeof e!="string"&&(n=l,l=e,e=null),t=a.toArray(t,e),l=a.toArray(l,n),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(l||[])),this._reseed=1},r.prototype.generate=function(t,e,l,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof e!="string"&&(n=l,l=e,e=null),l&&(l=a.toArray(l,n||"hex"),this._update(l));for(var i=[];i.length<t;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var c=i.slice(0,t);return this._update(l),this._reseed++,a.encode(c,e)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(s,C,_){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */_.read=function(d,a,o,r,t){var e,l,n=8*t-r-1,i=(1<<n)-1,c=i>>1,f=-7,u=o?t-1:0,p=o?-1:1,h=d[a+u];for(u+=p,e=h&(1<<-f)-1,h>>=-f,f+=n;f>0;e=256*e+d[a+u],u+=p,f-=8);for(l=e&(1<<-f)-1,e>>=-f,f+=r;f>0;l=256*l+d[a+u],u+=p,f-=8);if(e===0)e=1-c;else{if(e===i)return l?NaN:1/0*(h?-1:1);l+=Math.pow(2,r),e-=c}return(h?-1:1)*l*Math.pow(2,e-r)},_.write=function(d,a,o,r,t,e){var l,n,i,c=8*e-t-1,f=(1<<c)-1,u=f>>1,p=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:e-1,w=r?1:-1,x=a<0||a===0&&1/a<0?1:0;for(a=Math.abs(a),isNaN(a)||a===1/0?(n=isNaN(a)?1:0,l=f):(l=Math.floor(Math.log(a)/Math.LN2),a*(i=Math.pow(2,-l))<1&&(l--,i*=2),(a+=l+u>=1?p/i:p*Math.pow(2,1-u))*i>=2&&(l++,i/=2),l+u>=f?(n=0,l=f):l+u>=1?(n=(a*i-1)*Math.pow(2,t),l+=u):(n=a*Math.pow(2,u-1)*Math.pow(2,t),l=0));t>=8;d[o+h]=255&n,h+=w,n/=256,t-=8);for(l=l<<t|n,c+=t;c>0;d[o+h]=255&l,h+=w,l/=256,c-=8);d[o+h-w]|=128*x}},{}],440:[function(s,C,_){typeof Object.create=="function"?C.exports=function(d,a){a&&(d.super_=a,d.prototype=Object.create(a.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}))}:C.exports=function(d,a){if(a){d.super_=a;var o=function(){};o.prototype=a.prototype,d.prototype=new o,d.prototype.constructor=d}}},{}],441:[function(s,C,_){(function(d,a,o,r,t,e,l,n){(function(){/*!
|
|
10
|
-
|
|
11
|
-
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
12
|
-
<http://stuartk.com/jszip>
|
|
13
|
-
|
|
14
|
-
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
|
|
15
|
-
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
|
|
16
|
-
|
|
17
|
-
JSZip uses the library pako released under the MIT license :
|
|
18
|
-
https://github.com/nodeca/pako/blob/main/LICENSE
|
|
19
|
-
*/(function(i){typeof _=="object"&&C!==void 0?C.exports=i():(typeof window<"u"?window:a!==void 0?a:typeof self<"u"?self:this).JSZip=i()})(function(){return function i(c,f,u){function p(x,R){if(!f[x]){if(!c[x]){var N=typeof s=="function"&&s;if(!R&&N)return N(x,!0);if(h)return h(x,!0);var F=new Error("Cannot find module '"+x+"'");throw F.code="MODULE_NOT_FOUND",F}var I=f[x]={exports:{}};c[x][0].call(I.exports,function(P){return p(c[x][1][P]||P)},I,I.exports,i,c,f,u)}return f[x].exports}for(var h=typeof s=="function"&&s,w=0;w<u.length;w++)p(u[w]);return p}({1:[function(i,c,f){var u=i("./utils"),p=i("./support"),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.encode=function(w){for(var x,R,N,F,I,P,B,$=[],D=0,S=w.length,T=S,v=u.getTypeOf(w)!=="string";D<w.length;)T=S-D,N=v?(x=w[D++],R=D<S?w[D++]:0,D<S?w[D++]:0):(x=w.charCodeAt(D++),R=D<S?w.charCodeAt(D++):0,D<S?w.charCodeAt(D++):0),F=x>>2,I=(3&x)<<4|R>>4,P=1<T?(15&R)<<2|N>>6:64,B=2<T?63&N:64,$.push(h.charAt(F)+h.charAt(I)+h.charAt(P)+h.charAt(B));return $.join("")},f.decode=function(w){var x,R,N,F,I,P,B=0,$=0,D="data:";if(w.substr(0,D.length)===D)throw new Error("Invalid base64 input, it looks like a data url.");var S,T=3*(w=w.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(w.charAt(w.length-1)===h.charAt(64)&&T--,w.charAt(w.length-2)===h.charAt(64)&&T--,T%1!=0)throw new Error("Invalid base64 input, bad content length.");for(S=p.uint8array?new Uint8Array(0|T):new Array(0|T);B<w.length;)x=h.indexOf(w.charAt(B++))<<2|(F=h.indexOf(w.charAt(B++)))>>4,R=(15&F)<<4|(I=h.indexOf(w.charAt(B++)))>>2,N=(3&I)<<6|(P=h.indexOf(w.charAt(B++))),S[$++]=x,I!==64&&(S[$++]=R),P!==64&&(S[$++]=N);return S}},{"./support":30,"./utils":32}],2:[function(i,c,f){var u=i("./external"),p=i("./stream/DataWorker"),h=i("./stream/Crc32Probe"),w=i("./stream/DataLengthProbe");function x(R,N,F,I,P){this.compressedSize=R,this.uncompressedSize=N,this.crc32=F,this.compression=I,this.compressedContent=P}x.prototype={getContentWorker:function(){var R=new p(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new w("data_length")),N=this;return R.on("end",function(){if(this.streamInfo.data_length!==N.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),R},getCompressedWorker:function(){return new p(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},x.createWorkerFrom=function(R,N,F){return R.pipe(new h).pipe(new w("uncompressedSize")).pipe(N.compressWorker(F)).pipe(new w("compressedSize")).withStreamInfo("compression",N)},c.exports=x},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(i,c,f){var u=i("./stream/GenericWorker");f.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},f.DEFLATE=i("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(i,c,f){var u=i("./utils"),p=function(){for(var h,w=[],x=0;x<256;x++){h=x;for(var R=0;R<8;R++)h=1&h?3988292384^h>>>1:h>>>1;w[x]=h}return w}();c.exports=function(h,w){return h!==void 0&&h.length?u.getTypeOf(h)!=="string"?function(x,R,N,F){var I=p,P=0+N;x^=-1;for(var B=0;B<P;B++)x=x>>>8^I[255&(x^R[B])];return-1^x}(0|w,h,h.length):function(x,R,N,F){var I=p,P=0+N;x^=-1;for(var B=0;B<P;B++)x=x>>>8^I[255&(x^R.charCodeAt(B))];return-1^x}(0|w,h,h.length):0}},{"./utils":32}],5:[function(i,c,f){f.base64=!1,f.binary=!1,f.dir=!1,f.createFolders=!0,f.date=null,f.compression=null,f.compressionOptions=null,f.comment=null,f.unixPermissions=null,f.dosPermissions=null},{}],6:[function(i,c,f){var u;u=typeof Promise<"u"?Promise:i("lie"),c.exports={Promise:u}},{lie:37}],7:[function(i,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",p=i("pako"),h=i("./utils"),w=i("./stream/GenericWorker"),x=u?"uint8array":"array";function R(N,F){w.call(this,"FlateWorker/"+N),this._pako=null,this._pakoAction=N,this._pakoOptions=F,this.meta={}}f.magic="\b\0",h.inherits(R,w),R.prototype.processChunk=function(N){this.meta=N.meta,this._pako===null&&this._createPako(),this._pako.push(h.transformTo(x,N.data),!1)},R.prototype.flush=function(){w.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},R.prototype.cleanUp=function(){w.prototype.cleanUp.call(this),this._pako=null},R.prototype._createPako=function(){this._pako=new p[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var N=this;this._pako.onData=function(F){N.push({data:F,meta:N.meta})}},f.compressWorker=function(N){return new R("Deflate",N)},f.uncompressWorker=function(){return new R("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(i,c,f){function u(I,P){var B,$="";for(B=0;B<P;B++)$+=String.fromCharCode(255&I),I>>>=8;return $}function p(I,P,B,$,D,S){var T,v,m=I.file,b=I.compression,g=S!==x.utf8encode,y=h.transformTo("string",S(m.name)),k=h.transformTo("string",x.utf8encode(m.name)),O=m.comment,A=h.transformTo("string",S(O)),z=h.transformTo("string",x.utf8encode(O)),U=k.length!==m.name.length,X=z.length!==O.length,j="",V="",E="",M=m.dir,L=m.date,q={crc32:0,compressedSize:0,uncompressedSize:0};P&&!B||(q.crc32=I.crc32,q.compressedSize=I.compressedSize,q.uncompressedSize=I.uncompressedSize);var Z=0;P&&(Z|=8),g||!U&&!X||(Z|=2048);var W=0,K=0;M&&(W|=16),D==="UNIX"?(K=798,W|=function(et,Y){var Q=et;return et||(Q=Y?16893:33204),(65535&Q)<<16}(m.unixPermissions,M)):(K=20,W|=function(et){return 63&(et||0)}(m.dosPermissions)),T=L.getUTCHours(),T<<=6,T|=L.getUTCMinutes(),T<<=5,T|=L.getUTCSeconds()/2,v=L.getUTCFullYear()-1980,v<<=4,v|=L.getUTCMonth()+1,v<<=5,v|=L.getUTCDate(),U&&(V=u(1,1)+u(R(y),4)+k,j+="up"+u(V.length,2)+V),X&&(E=u(1,1)+u(R(A),4)+z,j+="uc"+u(E.length,2)+E);var rt="";return rt+=`
|
|
20
|
-
\0`,rt+=u(Z,2),rt+=b.magic,rt+=u(T,2),rt+=u(v,2),rt+=u(q.crc32,4),rt+=u(q.compressedSize,4),rt+=u(q.uncompressedSize,4),rt+=u(y.length,2),rt+=u(j.length,2),{fileRecord:N.LOCAL_FILE_HEADER+rt+y+j,dirRecord:N.CENTRAL_FILE_HEADER+u(K,2)+rt+u(A.length,2)+"\0\0\0\0"+u(W,4)+u($,4)+y+j+A}}var h=i("../utils"),w=i("../stream/GenericWorker"),x=i("../utf8"),R=i("../crc32"),N=i("../signature");function F(I,P,B,$){w.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=P,this.zipPlatform=B,this.encodeFileName=$,this.streamFiles=I,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}h.inherits(F,w),F.prototype.push=function(I){var P=I.meta.percent||0,B=this.entriesCount,$=this._sources.length;this.accumulate?this.contentBuffer.push(I):(this.bytesWritten+=I.data.length,w.prototype.push.call(this,{data:I.data,meta:{currentFile:this.currentFile,percent:B?(P+100*(B-$-1))/B:100}}))},F.prototype.openedSource=function(I){this.currentSourceOffset=this.bytesWritten,this.currentFile=I.file.name;var P=this.streamFiles&&!I.file.dir;if(P){var B=p(I,P,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:B.fileRecord,meta:{percent:0}})}else this.accumulate=!0},F.prototype.closedSource=function(I){this.accumulate=!1;var P=this.streamFiles&&!I.file.dir,B=p(I,P,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(B.dirRecord),P)this.push({data:function($){return N.DATA_DESCRIPTOR+u($.crc32,4)+u($.compressedSize,4)+u($.uncompressedSize,4)}(I),meta:{percent:100}});else for(this.push({data:B.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},F.prototype.flush=function(){for(var I=this.bytesWritten,P=0;P<this.dirRecords.length;P++)this.push({data:this.dirRecords[P],meta:{percent:100}});var B=this.bytesWritten-I,$=function(D,S,T,v,m){var b=h.transformTo("string",m(v));return N.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(D,2)+u(D,2)+u(S,4)+u(T,4)+u(b.length,2)+b}(this.dirRecords.length,B,I,this.zipComment,this.encodeFileName);this.push({data:$,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(I){this._sources.push(I);var P=this;return I.on("data",function(B){P.processChunk(B)}),I.on("end",function(){P.closedSource(P.previous.streamInfo),P._sources.length?P.prepareNextSource():P.end()}),I.on("error",function(B){P.error(B)}),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(I){var P=this._sources;if(!w.prototype.error.call(this,I))return!1;for(var B=0;B<P.length;B++)try{P[B].error(I)}catch{}return!0},F.prototype.lock=function(){w.prototype.lock.call(this);for(var I=this._sources,P=0;P<I.length;P++)I[P].lock()},c.exports=F},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(i,c,f){var u=i("../compressions"),p=i("./ZipFileWorker");f.generateWorker=function(h,w,x){var R=new p(w.streamFiles,x,w.platform,w.encodeFileName),N=0;try{h.forEach(function(F,I){N++;var P=function(S,T){var v=S||T,m=u[v];if(!m)throw new Error(v+" is not a valid compression method !");return m}(I.options.compression,w.compression),B=I.options.compressionOptions||w.compressionOptions||{},$=I.dir,D=I.date;I._compressWorker(P,B).withStreamInfo("file",{name:F,dir:$,date:D,comment:I.comment||"",unixPermissions:I.unixPermissions,dosPermissions:I.dosPermissions}).pipe(R)}),R.entriesCount=N}catch(F){R.error(F)}return R}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(i,c,f){function u(){if(!(this instanceof u))return new u;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 p=new u;for(var h in this)typeof this[h]!="function"&&(p[h]=this[h]);return p}}(u.prototype=i("./object")).loadAsync=i("./load"),u.support=i("./support"),u.defaults=i("./defaults"),u.version="3.10.1",u.loadAsync=function(p,h){return new u().loadAsync(p,h)},u.external=i("./external"),c.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(i,c,f){var u=i("./utils"),p=i("./external"),h=i("./utf8"),w=i("./zipEntries"),x=i("./stream/Crc32Probe"),R=i("./nodejsUtils");function N(F){return new p.Promise(function(I,P){var B=F.decompressed.getContentWorker().pipe(new x);B.on("error",function($){P($)}).on("end",function(){B.streamInfo.crc32!==F.decompressed.crc32?P(new Error("Corrupted zip : CRC32 mismatch")):I()}).resume()})}c.exports=function(F,I){var P=this;return I=u.extend(I||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:h.utf8decode}),R.isNode&&R.isStream(F)?p.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",F,!0,I.optimizedBinaryString,I.base64).then(function(B){var $=new w(I);return $.load(B),$}).then(function(B){var $=[p.Promise.resolve(B)],D=B.files;if(I.checkCRC32)for(var S=0;S<D.length;S++)$.push(N(D[S]));return p.Promise.all($)}).then(function(B){for(var $=B.shift(),D=$.files,S=0;S<D.length;S++){var T=D[S],v=T.fileNameStr,m=u.resolve(T.fileNameStr);P.file(m,T.decompressed,{binary:!0,optimizedBinaryString:!0,date:T.date,dir:T.dir,comment:T.fileCommentStr.length?T.fileCommentStr:null,unixPermissions:T.unixPermissions,dosPermissions:T.dosPermissions,createFolders:I.createFolders}),T.dir||(P.file(m).unsafeOriginalName=v)}return $.zipComment.length&&(P.comment=$.zipComment),P})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(i,c,f){var u=i("../utils"),p=i("../stream/GenericWorker");function h(w,x){p.call(this,"Nodejs stream input adapter for "+w),this._upstreamEnded=!1,this._bindStream(x)}u.inherits(h,p),h.prototype._bindStream=function(w){var x=this;(this._stream=w).pause(),w.on("data",function(R){x.push({data:R,meta:{percent:0}})}).on("error",function(R){x.isPaused?this.generatedError=R:x.error(R)}).on("end",function(){x.isPaused?x._upstreamEnded=!0:x.end()})},h.prototype.pause=function(){return!!p.prototype.pause.call(this)&&(this._stream.pause(),!0)},h.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},c.exports=h},{"../stream/GenericWorker":28,"../utils":32}],13:[function(i,c,f){var u=i("readable-stream").Readable;function p(h,w,x){u.call(this,w),this._helper=h;var R=this;h.on("data",function(N,F){R.push(N)||R._helper.pause(),x&&x(F)}).on("error",function(N){R.emit("error",N)}).on("end",function(){R.push(null)})}i("../utils").inherits(p,u),p.prototype._read=function(){this._helper.resume()},c.exports=p},{"../utils":32,"readable-stream":16}],14:[function(i,c,f){c.exports={isNode:o!==void 0,newBufferFrom:function(u,p){if(o.from&&o.from!==Uint8Array.from)return o.from(u,p);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new o(u,p)},allocBuffer:function(u){if(o.alloc)return o.alloc(u);var p=new o(u);return p.fill(0),p},isBuffer:function(u){return o.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(i,c,f){function u(m,b,g){var y,k=h.getTypeOf(b),O=h.extend(g||{},R);O.date=O.date||new Date,O.compression!==null&&(O.compression=O.compression.toUpperCase()),typeof O.unixPermissions=="string"&&(O.unixPermissions=parseInt(O.unixPermissions,8)),O.unixPermissions&&16384&O.unixPermissions&&(O.dir=!0),O.dosPermissions&&16&O.dosPermissions&&(O.dir=!0),O.dir&&(m=D(m)),O.createFolders&&(y=$(m))&&S.call(this,y,!0);var A=k==="string"&&O.binary===!1&&O.base64===!1;g&&g.binary!==void 0||(O.binary=!A),(b instanceof N&&b.uncompressedSize===0||O.dir||!b||b.length===0)&&(O.base64=!1,O.binary=!0,b="",O.compression="STORE",k="string");var z;z=b instanceof N||b instanceof w?b:P.isNode&&P.isStream(b)?new B(m,b):h.prepareContent(m,b,O.binary,O.optimizedBinaryString,O.base64);var U=new F(m,z,O);this.files[m]=U}var p=i("./utf8"),h=i("./utils"),w=i("./stream/GenericWorker"),x=i("./stream/StreamHelper"),R=i("./defaults"),N=i("./compressedObject"),F=i("./zipObject"),I=i("./generate"),P=i("./nodejsUtils"),B=i("./nodejs/NodejsStreamInputAdapter"),$=function(m){m.slice(-1)==="/"&&(m=m.substring(0,m.length-1));var b=m.lastIndexOf("/");return 0<b?m.substring(0,b):""},D=function(m){return m.slice(-1)!=="/"&&(m+="/"),m},S=function(m,b){return b=b!==void 0?b:R.createFolders,m=D(m),this.files[m]||u.call(this,m,null,{dir:!0,createFolders:b}),this.files[m]};function T(m){return Object.prototype.toString.call(m)==="[object RegExp]"}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(m){var b,g,y;for(b in this.files)y=this.files[b],(g=b.slice(this.root.length,b.length))&&b.slice(0,this.root.length)===this.root&&m(g,y)},filter:function(m){var b=[];return this.forEach(function(g,y){m(g,y)&&b.push(y)}),b},file:function(m,b,g){if(arguments.length!==1)return m=this.root+m,u.call(this,m,b,g),this;if(T(m)){var y=m;return this.filter(function(O,A){return!A.dir&&y.test(O)})}var k=this.files[this.root+m];return k&&!k.dir?k:null},folder:function(m){if(!m)return this;if(T(m))return this.filter(function(k,O){return O.dir&&m.test(k)});var b=this.root+m,g=S.call(this,b),y=this.clone();return y.root=g.name,y},remove:function(m){m=this.root+m;var b=this.files[m];if(b||(m.slice(-1)!=="/"&&(m+="/"),b=this.files[m]),b&&!b.dir)delete this.files[m];else for(var g=this.filter(function(k,O){return O.name.slice(0,m.length)===m}),y=0;y<g.length;y++)delete this.files[g[y].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(m){var b,g={};try{if((g=h.extend(m||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:p.utf8encode})).type=g.type.toLowerCase(),g.compression=g.compression.toUpperCase(),g.type==="binarystring"&&(g.type="string"),!g.type)throw new Error("No output type specified.");h.checkSupport(g.type),g.platform!=="darwin"&&g.platform!=="freebsd"&&g.platform!=="linux"&&g.platform!=="sunos"||(g.platform="UNIX"),g.platform==="win32"&&(g.platform="DOS");var y=g.comment||this.comment||"";b=I.generateWorker(this,g,y)}catch(k){(b=new w("error")).error(k)}return new x(b,g.type||"string",g.mimeType)},generateAsync:function(m,b){return this.generateInternalStream(m).accumulate(b)},generateNodeStream:function(m,b){return(m=m||{}).type||(m.type="nodebuffer"),this.generateInternalStream(m).toNodejsStream(b)}};c.exports=v},{"./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(i,c,f){c.exports=i("stream")},{stream:void 0}],17:[function(i,c,f){var u=i("./DataReader");function p(h){u.call(this,h);for(var w=0;w<this.data.length;w++)h[w]=255&h[w]}i("../utils").inherits(p,u),p.prototype.byteAt=function(h){return this.data[this.zero+h]},p.prototype.lastIndexOfSignature=function(h){for(var w=h.charCodeAt(0),x=h.charCodeAt(1),R=h.charCodeAt(2),N=h.charCodeAt(3),F=this.length-4;0<=F;--F)if(this.data[F]===w&&this.data[F+1]===x&&this.data[F+2]===R&&this.data[F+3]===N)return F-this.zero;return-1},p.prototype.readAndCheckSignature=function(h){var w=h.charCodeAt(0),x=h.charCodeAt(1),R=h.charCodeAt(2),N=h.charCodeAt(3),F=this.readData(4);return w===F[0]&&x===F[1]&&R===F[2]&&N===F[3]},p.prototype.readData=function(h){if(this.checkOffset(h),h===0)return[];var w=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,w},c.exports=p},{"../utils":32,"./DataReader":18}],18:[function(i,c,f){var u=i("../utils");function p(h){this.data=h,this.length=h.length,this.index=0,this.zero=0}p.prototype={checkOffset:function(h){this.checkIndex(this.index+h)},checkIndex:function(h){if(this.length<this.zero+h||h<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+h+"). Corrupted zip ?")},setIndex:function(h){this.checkIndex(h),this.index=h},skip:function(h){this.setIndex(this.index+h)},byteAt:function(){},readInt:function(h){var w,x=0;for(this.checkOffset(h),w=this.index+h-1;w>=this.index;w--)x=(x<<8)+this.byteAt(w);return this.index+=h,x},readString:function(h){return u.transformTo("string",this.readData(h))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var h=this.readInt(4);return new Date(Date.UTC(1980+(h>>25&127),(h>>21&15)-1,h>>16&31,h>>11&31,h>>5&63,(31&h)<<1))}},c.exports=p},{"../utils":32}],19:[function(i,c,f){var u=i("./Uint8ArrayReader");function p(h){u.call(this,h)}i("../utils").inherits(p,u),p.prototype.readData=function(h){this.checkOffset(h);var w=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,w},c.exports=p},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(i,c,f){var u=i("./DataReader");function p(h){u.call(this,h)}i("../utils").inherits(p,u),p.prototype.byteAt=function(h){return this.data.charCodeAt(this.zero+h)},p.prototype.lastIndexOfSignature=function(h){return this.data.lastIndexOf(h)-this.zero},p.prototype.readAndCheckSignature=function(h){return h===this.readData(4)},p.prototype.readData=function(h){this.checkOffset(h);var w=this.data.slice(this.zero+this.index,this.zero+this.index+h);return this.index+=h,w},c.exports=p},{"../utils":32,"./DataReader":18}],21:[function(i,c,f){var u=i("./ArrayReader");function p(h){u.call(this,h)}i("../utils").inherits(p,u),p.prototype.readData=function(h){if(this.checkOffset(h),h===0)return new Uint8Array(0);var w=this.data.subarray(this.zero+this.index,this.zero+this.index+h);return this.index+=h,w},c.exports=p},{"../utils":32,"./ArrayReader":17}],22:[function(i,c,f){var u=i("../utils"),p=i("../support"),h=i("./ArrayReader"),w=i("./StringReader"),x=i("./NodeBufferReader"),R=i("./Uint8ArrayReader");c.exports=function(N){var F=u.getTypeOf(N);return u.checkSupport(F),F!=="string"||p.uint8array?F==="nodebuffer"?new x(N):p.uint8array?new R(u.transformTo("uint8array",N)):new h(u.transformTo("array",N)):new w(N)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(i,c,f){f.LOCAL_FILE_HEADER="PK",f.CENTRAL_FILE_HEADER="PK",f.CENTRAL_DIRECTORY_END="PK",f.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",f.ZIP64_CENTRAL_DIRECTORY_END="PK",f.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(i,c,f){var u=i("./GenericWorker"),p=i("../utils");function h(w){u.call(this,"ConvertWorker to "+w),this.destType=w}p.inherits(h,u),h.prototype.processChunk=function(w){this.push({data:p.transformTo(this.destType,w.data),meta:w.meta})},c.exports=h},{"../utils":32,"./GenericWorker":28}],25:[function(i,c,f){var u=i("./GenericWorker"),p=i("../crc32");function h(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}i("../utils").inherits(h,u),h.prototype.processChunk=function(w){this.streamInfo.crc32=p(w.data,this.streamInfo.crc32||0),this.push(w)},c.exports=h},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(i,c,f){var u=i("../utils"),p=i("./GenericWorker");function h(w){p.call(this,"DataLengthProbe for "+w),this.propName=w,this.withStreamInfo(w,0)}u.inherits(h,p),h.prototype.processChunk=function(w){if(w){var x=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=x+w.data.length}p.prototype.processChunk.call(this,w)},c.exports=h},{"../utils":32,"./GenericWorker":28}],27:[function(i,c,f){var u=i("../utils"),p=i("./GenericWorker");function h(w){p.call(this,"DataWorker");var x=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,w.then(function(R){x.dataIsReady=!0,x.data=R,x.max=R&&R.length||0,x.type=u.getTypeOf(R),x.isPaused||x._tickAndRepeat()},function(R){x.error(R)})}u.inherits(h,p),h.prototype.cleanUp=function(){p.prototype.cleanUp.call(this),this.data=null},h.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},h.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},h.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var w=null,x=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,x);break;case"uint8array":w=this.data.subarray(this.index,x);break;case"array":case"nodebuffer":w=this.data.slice(this.index,x)}return this.index=x,this.push({data:w,meta:{percent:this.max?this.index/this.max*100:0}})},c.exports=h},{"../utils":32,"./GenericWorker":28}],28:[function(i,c,f){function u(p){this.name=p||"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}u.prototype={push:function(p){this.emit("data",p)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(p){this.emit("error",p)}return!0},error:function(p){return!this.isFinished&&(this.isPaused?this.generatedError=p:(this.isFinished=!0,this.emit("error",p),this.previous&&this.previous.error(p),this.cleanUp()),!0)},on:function(p,h){return this._listeners[p].push(h),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(p,h){if(this._listeners[p])for(var w=0;w<this._listeners[p].length;w++)this._listeners[p][w].call(this,h)},pipe:function(p){return p.registerPrevious(this)},registerPrevious:function(p){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=p.streamInfo,this.mergeStreamInfo(),this.previous=p;var h=this;return p.on("data",function(w){h.processChunk(w)}),p.on("end",function(){h.end()}),p.on("error",function(w){h.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 p=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),p=!0),this.previous&&this.previous.resume(),!p},flush:function(){},processChunk:function(p){this.push(p)},withStreamInfo:function(p,h){return this.extraStreamInfo[p]=h,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var p in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,p)&&(this.streamInfo[p]=this.extraStreamInfo[p])},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 p="Worker "+this.name;return this.previous?this.previous+" -> "+p:p}},c.exports=u},{}],29:[function(i,c,f){var u=i("../utils"),p=i("./ConvertWorker"),h=i("./GenericWorker"),w=i("../base64"),x=i("../support"),R=i("../external"),N=null;if(x.nodestream)try{N=i("../nodejs/NodejsStreamOutputAdapter")}catch{}function F(I,P,B){var $=P;switch(P){case"blob":case"arraybuffer":$="uint8array";break;case"base64":$="string"}try{this._internalType=$,this._outputType=P,this._mimeType=B,u.checkSupport($),this._worker=I.pipe(new p($)),I.lock()}catch(D){this._worker=new h("error"),this._worker.error(D)}}F.prototype={accumulate:function(I){return function(P,B){return new R.Promise(function($,D){var S=[],T=P._internalType,v=P._outputType,m=P._mimeType;P.on("data",function(b,g){S.push(b),B&&B(g)}).on("error",function(b){S=[],D(b)}).on("end",function(){try{var b=function(g,y,k){switch(g){case"blob":return u.newBlob(u.transformTo("arraybuffer",y),k);case"base64":return w.encode(y);default:return u.transformTo(g,y)}}(v,function(g,y){var k,O=0,A=null,z=0;for(k=0;k<y.length;k++)z+=y[k].length;switch(g){case"string":return y.join("");case"array":return Array.prototype.concat.apply([],y);case"uint8array":for(A=new Uint8Array(z),k=0;k<y.length;k++)A.set(y[k],O),O+=y[k].length;return A;case"nodebuffer":return o.concat(y);default:throw new Error("concat : unsupported type '"+g+"'")}}(T,S),m);$(b)}catch(g){D(g)}S=[]}).resume()})}(this,I)},on:function(I,P){var B=this;return I==="data"?this._worker.on(I,function($){P.call(B,$.data,$.meta)}):this._worker.on(I,function(){u.delay(P,arguments,B)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(I){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new N(this,{objectMode:this._outputType!=="nodebuffer"},I)}},c.exports=F},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(i,c,f){if(f.base64=!0,f.array=!0,f.string=!0,f.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",f.nodebuffer=o!==void 0,f.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")f.blob=!1;else{var u=new ArrayBuffer(0);try{f.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);p.append(u),f.blob=p.getBlob("application/zip").size===0}catch{f.blob=!1}}}try{f.nodestream=!!i("readable-stream").Readable}catch{f.nodestream=!1}},{"readable-stream":16}],31:[function(i,c,f){for(var u=i("./utils"),p=i("./support"),h=i("./nodejsUtils"),w=i("./stream/GenericWorker"),x=new Array(256),R=0;R<256;R++)x[R]=252<=R?6:248<=R?5:240<=R?4:224<=R?3:192<=R?2:1;function N(){w.call(this,"utf-8 decode"),this.leftOver=null}function F(){w.call(this,"utf-8 encode")}x[254]=x[254]=1,f.utf8encode=function(I){return p.nodebuffer?h.newBufferFrom(I,"utf-8"):function(P){var B,$,D,S,T,v=P.length,m=0;for(S=0;S<v;S++)(64512&($=P.charCodeAt(S)))==55296&&S+1<v&&(64512&(D=P.charCodeAt(S+1)))==56320&&($=65536+($-55296<<10)+(D-56320),S++),m+=$<128?1:$<2048?2:$<65536?3:4;for(B=p.uint8array?new Uint8Array(m):new Array(m),S=T=0;T<m;S++)(64512&($=P.charCodeAt(S)))==55296&&S+1<v&&(64512&(D=P.charCodeAt(S+1)))==56320&&($=65536+($-55296<<10)+(D-56320),S++),$<128?B[T++]=$:($<2048?B[T++]=192|$>>>6:($<65536?B[T++]=224|$>>>12:(B[T++]=240|$>>>18,B[T++]=128|$>>>12&63),B[T++]=128|$>>>6&63),B[T++]=128|63&$);return B}(I)},f.utf8decode=function(I){return p.nodebuffer?u.transformTo("nodebuffer",I).toString("utf-8"):function(P){var B,$,D,S,T=P.length,v=new Array(2*T);for(B=$=0;B<T;)if((D=P[B++])<128)v[$++]=D;else if(4<(S=x[D]))v[$++]=65533,B+=S-1;else{for(D&=S===2?31:S===3?15:7;1<S&&B<T;)D=D<<6|63&P[B++],S--;1<S?v[$++]=65533:D<65536?v[$++]=D:(D-=65536,v[$++]=55296|D>>10&1023,v[$++]=56320|1023&D)}return v.length!==$&&(v.subarray?v=v.subarray(0,$):v.length=$),u.applyFromCharCode(v)}(I=u.transformTo(p.uint8array?"uint8array":"array",I))},u.inherits(N,w),N.prototype.processChunk=function(I){var P=u.transformTo(p.uint8array?"uint8array":"array",I.data);if(this.leftOver&&this.leftOver.length){if(p.uint8array){var B=P;(P=new Uint8Array(B.length+this.leftOver.length)).set(this.leftOver,0),P.set(B,this.leftOver.length)}else P=this.leftOver.concat(P);this.leftOver=null}var $=function(S,T){var v;for((T=T||S.length)>S.length&&(T=S.length),v=T-1;0<=v&&(192&S[v])==128;)v--;return v<0||v===0?T:v+x[S[v]]>T?v:T}(P),D=P;$!==P.length&&(p.uint8array?(D=P.subarray(0,$),this.leftOver=P.subarray($,P.length)):(D=P.slice(0,$),this.leftOver=P.slice($,P.length))),this.push({data:f.utf8decode(D),meta:I.meta})},N.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=N,u.inherits(F,w),F.prototype.processChunk=function(I){this.push({data:f.utf8encode(I.data),meta:I.meta})},f.Utf8EncodeWorker=F},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(i,c,f){var u=i("./support"),p=i("./base64"),h=i("./nodejsUtils"),w=i("./external");function x(B){return B}function R(B,$){for(var D=0;D<B.length;++D)$[D]=255&B.charCodeAt(D);return $}i("setimmediate"),f.newBlob=function(B,$){f.checkSupport("blob");try{return new Blob([B],{type:$})}catch{try{var D=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return D.append(B),D.getBlob($)}catch{throw new Error("Bug : can't construct the Blob.")}}};var N={stringifyByChunk:function(B,$,D){var S=[],T=0,v=B.length;if(v<=D)return String.fromCharCode.apply(null,B);for(;T<v;)$==="array"||$==="nodebuffer"?S.push(String.fromCharCode.apply(null,B.slice(T,Math.min(T+D,v)))):S.push(String.fromCharCode.apply(null,B.subarray(T,Math.min(T+D,v)))),T+=D;return S.join("")},stringifyByChar:function(B){for(var $="",D=0;D<B.length;D++)$+=String.fromCharCode(B[D]);return $},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,h.allocBuffer(1)).length===1}catch{return!1}}()}};function F(B){var $=65536,D=f.getTypeOf(B),S=!0;if(D==="uint8array"?S=N.applyCanBeUsed.uint8array:D==="nodebuffer"&&(S=N.applyCanBeUsed.nodebuffer),S)for(;1<$;)try{return N.stringifyByChunk(B,D,$)}catch{$=Math.floor($/2)}return N.stringifyByChar(B)}function I(B,$){for(var D=0;D<B.length;D++)$[D]=B[D];return $}f.applyFromCharCode=F;var P={};P.string={string:x,array:function(B){return R(B,new Array(B.length))},arraybuffer:function(B){return P.string.uint8array(B).buffer},uint8array:function(B){return R(B,new Uint8Array(B.length))},nodebuffer:function(B){return R(B,h.allocBuffer(B.length))}},P.array={string:F,array:x,arraybuffer:function(B){return new Uint8Array(B).buffer},uint8array:function(B){return new Uint8Array(B)},nodebuffer:function(B){return h.newBufferFrom(B)}},P.arraybuffer={string:function(B){return F(new Uint8Array(B))},array:function(B){return I(new Uint8Array(B),new Array(B.byteLength))},arraybuffer:x,uint8array:function(B){return new Uint8Array(B)},nodebuffer:function(B){return h.newBufferFrom(new Uint8Array(B))}},P.uint8array={string:F,array:function(B){return I(B,new Array(B.length))},arraybuffer:function(B){return B.buffer},uint8array:x,nodebuffer:function(B){return h.newBufferFrom(B)}},P.nodebuffer={string:F,array:function(B){return I(B,new Array(B.length))},arraybuffer:function(B){return P.nodebuffer.uint8array(B).buffer},uint8array:function(B){return I(B,new Uint8Array(B.length))},nodebuffer:x},f.transformTo=function(B,$){if($=$||"",!B)return $;f.checkSupport(B);var D=f.getTypeOf($);return P[D][B]($)},f.resolve=function(B){for(var $=B.split("/"),D=[],S=0;S<$.length;S++){var T=$[S];T==="."||T===""&&S!==0&&S!==$.length-1||(T===".."?D.pop():D.push(T))}return D.join("/")},f.getTypeOf=function(B){return typeof B=="string"?"string":Object.prototype.toString.call(B)==="[object Array]"?"array":u.nodebuffer&&h.isBuffer(B)?"nodebuffer":u.uint8array&&B instanceof Uint8Array?"uint8array":u.arraybuffer&&B instanceof ArrayBuffer?"arraybuffer":void 0},f.checkSupport=function(B){if(!u[B.toLowerCase()])throw new Error(B+" is not supported by this platform")},f.MAX_VALUE_16BITS=65535,f.MAX_VALUE_32BITS=-1,f.pretty=function(B){var $,D,S="";for(D=0;D<(B||"").length;D++)S+="\\x"+(($=B.charCodeAt(D))<16?"0":"")+$.toString(16).toUpperCase();return S},f.delay=function(B,$,D){n(function(){B.apply(D||null,$||[])})},f.inherits=function(B,$){function D(){}D.prototype=$.prototype,B.prototype=new D},f.extend=function(){var B,$,D={};for(B=0;B<arguments.length;B++)for($ in arguments[B])Object.prototype.hasOwnProperty.call(arguments[B],$)&&D[$]===void 0&&(D[$]=arguments[B][$]);return D},f.prepareContent=function(B,$,D,S,T){return w.Promise.resolve($).then(function(v){return u.blob&&(v instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(v))!==-1)&&typeof FileReader<"u"?new w.Promise(function(m,b){var g=new FileReader;g.onload=function(y){m(y.target.result)},g.onerror=function(y){b(y.target.error)},g.readAsArrayBuffer(v)}):v}).then(function(v){var m=f.getTypeOf(v);return m?(m==="arraybuffer"?v=f.transformTo("uint8array",v):m==="string"&&(T?v=p.decode(v):D&&S!==!0&&(v=function(b){return R(b,u.uint8array?new Uint8Array(b.length):new Array(b.length))}(v))),v):w.Promise.reject(new Error("Can't read the data of '"+B+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(i,c,f){var u=i("./reader/readerFor"),p=i("./utils"),h=i("./signature"),w=i("./zipEntry"),x=i("./support");function R(N){this.files=[],this.loadOptions=N}R.prototype={checkSignature:function(N){if(!this.reader.readAndCheckSignature(N)){this.reader.index-=4;var F=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+p.pretty(F)+", expected "+p.pretty(N)+")")}},isSignature:function(N,F){var I=this.reader.index;this.reader.setIndex(N);var P=this.reader.readString(4)===F;return this.reader.setIndex(I),P},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 N=this.reader.readData(this.zipCommentLength),F=x.uint8array?"uint8array":"array",I=p.transformTo(F,N);this.zipComment=this.loadOptions.decodeFileName(I)},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 N,F,I,P=this.zip64EndOfCentralSize-44;0<P;)N=this.reader.readInt(2),F=this.reader.readInt(4),I=this.reader.readData(F),this.zip64ExtensibleData[N]={id:N,length:F,value:I}},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 N,F;for(N=0;N<this.files.length;N++)F=this.files[N],this.reader.setIndex(F.localHeaderOffset),this.checkSignature(h.LOCAL_FILE_HEADER),F.readLocalPart(this.reader),F.handleUTF8(),F.processAttributes()},readCentralDir:function(){var N;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(h.CENTRAL_FILE_HEADER);)(N=new w({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(N);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 N=this.reader.lastIndexOfSignature(h.CENTRAL_DIRECTORY_END);if(N<0)throw this.isSignature(0,h.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(N);var F=N;if(this.checkSignature(h.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===p.MAX_VALUE_16BITS||this.diskWithCentralDirStart===p.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===p.MAX_VALUE_16BITS||this.centralDirRecords===p.MAX_VALUE_16BITS||this.centralDirSize===p.MAX_VALUE_32BITS||this.centralDirOffset===p.MAX_VALUE_32BITS){if(this.zip64=!0,(N=this.reader.lastIndexOfSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(N),this.checkSignature(h.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,h.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(h.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(h.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var I=this.centralDirOffset+this.centralDirSize;this.zip64&&(I+=20,I+=12+this.zip64EndOfCentralSize);var P=F-I;if(0<P)this.isSignature(F,h.CENTRAL_FILE_HEADER)||(this.reader.zero=P);else if(P<0)throw new Error("Corrupted zip: missing "+Math.abs(P)+" bytes.")},prepareReader:function(N){this.reader=u(N)},load:function(N){this.prepareReader(N),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},c.exports=R},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(i,c,f){var u=i("./reader/readerFor"),p=i("./utils"),h=i("./compressedObject"),w=i("./crc32"),x=i("./utf8"),R=i("./compressions"),N=i("./support");function F(I,P){this.options=I,this.loadOptions=P}F.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(I){var P,B;if(I.skip(22),this.fileNameLength=I.readInt(2),B=I.readInt(2),this.fileName=I.readData(this.fileNameLength),I.skip(B),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((P=function($){for(var D in R)if(Object.prototype.hasOwnProperty.call(R,D)&&R[D].magic===$)return R[D];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+p.pretty(this.compressionMethod)+" unknown (inner file : "+p.transformTo("string",this.fileName)+")");this.decompressed=new h(this.compressedSize,this.uncompressedSize,this.crc32,P,I.readData(this.compressedSize))},readCentralPart:function(I){this.versionMadeBy=I.readInt(2),I.skip(2),this.bitFlag=I.readInt(2),this.compressionMethod=I.readString(2),this.date=I.readDate(),this.crc32=I.readInt(4),this.compressedSize=I.readInt(4),this.uncompressedSize=I.readInt(4);var P=I.readInt(2);if(this.extraFieldsLength=I.readInt(2),this.fileCommentLength=I.readInt(2),this.diskNumberStart=I.readInt(2),this.internalFileAttributes=I.readInt(2),this.externalFileAttributes=I.readInt(4),this.localHeaderOffset=I.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");I.skip(P),this.readExtraFields(I),this.parseZIP64ExtraField(I),this.fileComment=I.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var I=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),I==0&&(this.dosPermissions=63&this.externalFileAttributes),I==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var I=u(this.extraFields[1].value);this.uncompressedSize===p.MAX_VALUE_32BITS&&(this.uncompressedSize=I.readInt(8)),this.compressedSize===p.MAX_VALUE_32BITS&&(this.compressedSize=I.readInt(8)),this.localHeaderOffset===p.MAX_VALUE_32BITS&&(this.localHeaderOffset=I.readInt(8)),this.diskNumberStart===p.MAX_VALUE_32BITS&&(this.diskNumberStart=I.readInt(4))}},readExtraFields:function(I){var P,B,$,D=I.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});I.index+4<D;)P=I.readInt(2),B=I.readInt(2),$=I.readData(B),this.extraFields[P]={id:P,length:B,value:$};I.setIndex(D)},handleUTF8:function(){var I=N.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=x.utf8decode(this.fileName),this.fileCommentStr=x.utf8decode(this.fileComment);else{var P=this.findExtraFieldUnicodePath();if(P!==null)this.fileNameStr=P;else{var B=p.transformTo(I,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(B)}var $=this.findExtraFieldUnicodeComment();if($!==null)this.fileCommentStr=$;else{var D=p.transformTo(I,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(D)}}},findExtraFieldUnicodePath:function(){var I=this.extraFields[28789];if(I){var P=u(I.value);return P.readInt(1)!==1||w(this.fileName)!==P.readInt(4)?null:x.utf8decode(P.readData(I.length-5))}return null},findExtraFieldUnicodeComment:function(){var I=this.extraFields[25461];if(I){var P=u(I.value);return P.readInt(1)!==1||w(this.fileComment)!==P.readInt(4)?null:x.utf8decode(P.readData(I.length-5))}return null}},c.exports=F},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(i,c,f){function u(P,B,$){this.name=P,this.dir=$.dir,this.date=$.date,this.comment=$.comment,this.unixPermissions=$.unixPermissions,this.dosPermissions=$.dosPermissions,this._data=B,this._dataBinary=$.binary,this.options={compression:$.compression,compressionOptions:$.compressionOptions}}var p=i("./stream/StreamHelper"),h=i("./stream/DataWorker"),w=i("./utf8"),x=i("./compressedObject"),R=i("./stream/GenericWorker");u.prototype={internalStream:function(P){var B=null,$="string";try{if(!P)throw new Error("No output type specified.");var D=($=P.toLowerCase())==="string"||$==="text";$!=="binarystring"&&$!=="text"||($="string"),B=this._decompressWorker();var S=!this._dataBinary;S&&!D&&(B=B.pipe(new w.Utf8EncodeWorker)),!S&&D&&(B=B.pipe(new w.Utf8DecodeWorker))}catch(T){(B=new R("error")).error(T)}return new p(B,$,"")},async:function(P,B){return this.internalStream(P).accumulate(B)},nodeStream:function(P,B){return this.internalStream(P||"nodebuffer").toNodejsStream(B)},_compressWorker:function(P,B){if(this._data instanceof x&&this._data.compression.magic===P.magic)return this._data.getCompressedWorker();var $=this._decompressWorker();return this._dataBinary||($=$.pipe(new w.Utf8EncodeWorker)),x.createWorkerFrom($,P,B)},_decompressWorker:function(){return this._data instanceof x?this._data.getContentWorker():this._data instanceof R?this._data:new h(this._data)}};for(var N=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],F=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},I=0;I<N.length;I++)u.prototype[N[I]]=F;c.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(i,c,f){(function(u){var p,h,w=u.MutationObserver||u.WebKitMutationObserver;if(w){var x=0,R=new w(P),N=u.document.createTextNode("");R.observe(N,{characterData:!0}),p=function(){N.data=x=++x%2}}else if(u.setImmediate||u.MessageChannel===void 0)p="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var B=u.document.createElement("script");B.onreadystatechange=function(){P(),B.onreadystatechange=null,B.parentNode.removeChild(B),B=null},u.document.documentElement.appendChild(B)}:function(){setTimeout(P,0)};else{var F=new u.MessageChannel;F.port1.onmessage=P,p=function(){F.port2.postMessage(0)}}var I=[];function P(){var B,$;h=!0;for(var D=I.length;D;){for($=I,I=[],B=-1;++B<D;)$[B]();D=I.length}h=!1}c.exports=function(B){I.push(B)!==1||h||p()}}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(i,c,f){var u=i("immediate");function p(){}var h={},w=["REJECTED"],x=["FULFILLED"],R=["PENDING"];function N(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=R,this.queue=[],this.outcome=void 0,D!==p&&B(this,D)}function F(D,S,T){this.promise=D,typeof S=="function"&&(this.onFulfilled=S,this.callFulfilled=this.otherCallFulfilled),typeof T=="function"&&(this.onRejected=T,this.callRejected=this.otherCallRejected)}function I(D,S,T){u(function(){var v;try{v=S(T)}catch(m){return h.reject(D,m)}v===D?h.reject(D,new TypeError("Cannot resolve promise with itself")):h.resolve(D,v)})}function P(D){var S=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof S=="function")return function(){S.apply(D,arguments)}}function B(D,S){var T=!1;function v(g){T||(T=!0,h.reject(D,g))}function m(g){T||(T=!0,h.resolve(D,g))}var b=$(function(){S(m,v)});b.status==="error"&&v(b.value)}function $(D,S){var T={};try{T.value=D(S),T.status="success"}catch(v){T.status="error",T.value=v}return T}(c.exports=N).prototype.finally=function(D){if(typeof D!="function")return this;var S=this.constructor;return this.then(function(T){return S.resolve(D()).then(function(){return T})},function(T){return S.resolve(D()).then(function(){throw T})})},N.prototype.catch=function(D){return this.then(null,D)},N.prototype.then=function(D,S){if(typeof D!="function"&&this.state===x||typeof S!="function"&&this.state===w)return this;var T=new this.constructor(p);return this.state!==R?I(T,this.state===x?D:S,this.outcome):this.queue.push(new F(T,D,S)),T},F.prototype.callFulfilled=function(D){h.resolve(this.promise,D)},F.prototype.otherCallFulfilled=function(D){I(this.promise,this.onFulfilled,D)},F.prototype.callRejected=function(D){h.reject(this.promise,D)},F.prototype.otherCallRejected=function(D){I(this.promise,this.onRejected,D)},h.resolve=function(D,S){var T=$(P,S);if(T.status==="error")return h.reject(D,T.value);var v=T.value;if(v)B(D,v);else{D.state=x,D.outcome=S;for(var m=-1,b=D.queue.length;++m<b;)D.queue[m].callFulfilled(S)}return D},h.reject=function(D,S){D.state=w,D.outcome=S;for(var T=-1,v=D.queue.length;++T<v;)D.queue[T].callRejected(S);return D},N.resolve=function(D){return D instanceof this?D:h.resolve(new this(p),D)},N.reject=function(D){var S=new this(p);return h.reject(S,D)},N.all=function(D){var S=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=D.length,v=!1;if(!T)return this.resolve([]);for(var m=new Array(T),b=0,g=-1,y=new this(p);++g<T;)k(D[g],g);return y;function k(O,A){S.resolve(O).then(function(z){m[A]=z,++b!==T||v||(v=!0,h.resolve(y,m))},function(z){v||(v=!0,h.reject(y,z))})}},N.race=function(D){if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var S=D.length,T=!1;if(!S)return this.resolve([]);for(var v,m=-1,b=new this(p);++m<S;)v=D[m],this.resolve(v).then(function(g){T||(T=!0,h.resolve(b,g))},function(g){T||(T=!0,h.reject(b,g))});return b}},{immediate:36}],38:[function(i,c,f){var u={};(0,i("./lib/utils/common").assign)(u,i("./lib/deflate"),i("./lib/inflate"),i("./lib/zlib/constants")),c.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(i,c,f){var u=i("./zlib/deflate"),p=i("./utils/common"),h=i("./utils/strings"),w=i("./zlib/messages"),x=i("./zlib/zstream"),R=Object.prototype.toString;function N(I){if(!(this instanceof N))return new N(I);this.options=p.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},I||{});var P=this.options;P.raw&&0<P.windowBits?P.windowBits=-P.windowBits:P.gzip&&0<P.windowBits&&P.windowBits<16&&(P.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new x,this.strm.avail_out=0;var B=u.deflateInit2(this.strm,P.level,P.method,P.windowBits,P.memLevel,P.strategy);if(B!==0)throw new Error(w[B]);if(P.header&&u.deflateSetHeader(this.strm,P.header),P.dictionary){var $;if($=typeof P.dictionary=="string"?h.string2buf(P.dictionary):R.call(P.dictionary)==="[object ArrayBuffer]"?new Uint8Array(P.dictionary):P.dictionary,(B=u.deflateSetDictionary(this.strm,$))!==0)throw new Error(w[B]);this._dict_set=!0}}function F(I,P){var B=new N(P);if(B.push(I,!0),B.err)throw B.msg||w[B.err];return B.result}N.prototype.push=function(I,P){var B,$,D=this.strm,S=this.options.chunkSize;if(this.ended)return!1;$=P===~~P?P:P===!0?4:0,typeof I=="string"?D.input=h.string2buf(I):R.call(I)==="[object ArrayBuffer]"?D.input=new Uint8Array(I):D.input=I,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new p.Buf8(S),D.next_out=0,D.avail_out=S),(B=u.deflate(D,$))!==1&&B!==0)return this.onEnd(B),!(this.ended=!0);D.avail_out!==0&&(D.avail_in!==0||$!==4&&$!==2)||(this.options.to==="string"?this.onData(h.buf2binstring(p.shrinkBuf(D.output,D.next_out))):this.onData(p.shrinkBuf(D.output,D.next_out)))}while((0<D.avail_in||D.avail_out===0)&&B!==1);return $===4?(B=u.deflateEnd(this.strm),this.onEnd(B),this.ended=!0,B===0):$!==2||(this.onEnd(0),!(D.avail_out=0))},N.prototype.onData=function(I){this.chunks.push(I)},N.prototype.onEnd=function(I){I===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=I,this.msg=this.strm.msg},f.Deflate=N,f.deflate=F,f.deflateRaw=function(I,P){return(P=P||{}).raw=!0,F(I,P)},f.gzip=function(I,P){return(P=P||{}).gzip=!0,F(I,P)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(i,c,f){var u=i("./zlib/inflate"),p=i("./utils/common"),h=i("./utils/strings"),w=i("./zlib/constants"),x=i("./zlib/messages"),R=i("./zlib/zstream"),N=i("./zlib/gzheader"),F=Object.prototype.toString;function I(B){if(!(this instanceof I))return new I(B);this.options=p.assign({chunkSize:16384,windowBits:0,to:""},B||{});var $=this.options;$.raw&&0<=$.windowBits&&$.windowBits<16&&($.windowBits=-$.windowBits,$.windowBits===0&&($.windowBits=-15)),!(0<=$.windowBits&&$.windowBits<16)||B&&B.windowBits||($.windowBits+=32),15<$.windowBits&&$.windowBits<48&&!(15&$.windowBits)&&($.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new R,this.strm.avail_out=0;var D=u.inflateInit2(this.strm,$.windowBits);if(D!==w.Z_OK)throw new Error(x[D]);this.header=new N,u.inflateGetHeader(this.strm,this.header)}function P(B,$){var D=new I($);if(D.push(B,!0),D.err)throw D.msg||x[D.err];return D.result}I.prototype.push=function(B,$){var D,S,T,v,m,b,g=this.strm,y=this.options.chunkSize,k=this.options.dictionary,O=!1;if(this.ended)return!1;S=$===~~$?$:$===!0?w.Z_FINISH:w.Z_NO_FLUSH,typeof B=="string"?g.input=h.binstring2buf(B):F.call(B)==="[object ArrayBuffer]"?g.input=new Uint8Array(B):g.input=B,g.next_in=0,g.avail_in=g.input.length;do{if(g.avail_out===0&&(g.output=new p.Buf8(y),g.next_out=0,g.avail_out=y),(D=u.inflate(g,w.Z_NO_FLUSH))===w.Z_NEED_DICT&&k&&(b=typeof k=="string"?h.string2buf(k):F.call(k)==="[object ArrayBuffer]"?new Uint8Array(k):k,D=u.inflateSetDictionary(this.strm,b)),D===w.Z_BUF_ERROR&&O===!0&&(D=w.Z_OK,O=!1),D!==w.Z_STREAM_END&&D!==w.Z_OK)return this.onEnd(D),!(this.ended=!0);g.next_out&&(g.avail_out!==0&&D!==w.Z_STREAM_END&&(g.avail_in!==0||S!==w.Z_FINISH&&S!==w.Z_SYNC_FLUSH)||(this.options.to==="string"?(T=h.utf8border(g.output,g.next_out),v=g.next_out-T,m=h.buf2string(g.output,T),g.next_out=v,g.avail_out=y-v,v&&p.arraySet(g.output,g.output,T,v,0),this.onData(m)):this.onData(p.shrinkBuf(g.output,g.next_out)))),g.avail_in===0&&g.avail_out===0&&(O=!0)}while((0<g.avail_in||g.avail_out===0)&&D!==w.Z_STREAM_END);return D===w.Z_STREAM_END&&(S=w.Z_FINISH),S===w.Z_FINISH?(D=u.inflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===w.Z_OK):S!==w.Z_SYNC_FLUSH||(this.onEnd(w.Z_OK),!(g.avail_out=0))},I.prototype.onData=function(B){this.chunks.push(B)},I.prototype.onEnd=function(B){B===w.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=p.flattenChunks(this.chunks)),this.chunks=[],this.err=B,this.msg=this.strm.msg},f.Inflate=I,f.inflate=P,f.inflateRaw=function(B,$){return($=$||{}).raw=!0,P(B,$)},f.ungzip=P},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(i,c,f){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";f.assign=function(w){for(var x=Array.prototype.slice.call(arguments,1);x.length;){var R=x.shift();if(R){if(typeof R!="object")throw new TypeError(R+"must be non-object");for(var N in R)R.hasOwnProperty(N)&&(w[N]=R[N])}}return w},f.shrinkBuf=function(w,x){return w.length===x?w:w.subarray?w.subarray(0,x):(w.length=x,w)};var p={arraySet:function(w,x,R,N,F){if(x.subarray&&w.subarray)w.set(x.subarray(R,R+N),F);else for(var I=0;I<N;I++)w[F+I]=x[R+I]},flattenChunks:function(w){var x,R,N,F,I,P;for(x=N=0,R=w.length;x<R;x++)N+=w[x].length;for(P=new Uint8Array(N),x=F=0,R=w.length;x<R;x++)I=w[x],P.set(I,F),F+=I.length;return P}},h={arraySet:function(w,x,R,N,F){for(var I=0;I<N;I++)w[F+I]=x[R+I]},flattenChunks:function(w){return[].concat.apply([],w)}};f.setTyped=function(w){w?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,p)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,h))},f.setTyped(u)},{}],42:[function(i,c,f){var u=i("./common"),p=!0,h=!0;try{String.fromCharCode.apply(null,[0])}catch{p=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{h=!1}for(var w=new u.Buf8(256),x=0;x<256;x++)w[x]=252<=x?6:248<=x?5:240<=x?4:224<=x?3:192<=x?2:1;function R(N,F){if(F<65537&&(N.subarray&&h||!N.subarray&&p))return String.fromCharCode.apply(null,u.shrinkBuf(N,F));for(var I="",P=0;P<F;P++)I+=String.fromCharCode(N[P]);return I}w[254]=w[254]=1,f.string2buf=function(N){var F,I,P,B,$,D=N.length,S=0;for(B=0;B<D;B++)(64512&(I=N.charCodeAt(B)))==55296&&B+1<D&&(64512&(P=N.charCodeAt(B+1)))==56320&&(I=65536+(I-55296<<10)+(P-56320),B++),S+=I<128?1:I<2048?2:I<65536?3:4;for(F=new u.Buf8(S),B=$=0;$<S;B++)(64512&(I=N.charCodeAt(B)))==55296&&B+1<D&&(64512&(P=N.charCodeAt(B+1)))==56320&&(I=65536+(I-55296<<10)+(P-56320),B++),I<128?F[$++]=I:(I<2048?F[$++]=192|I>>>6:(I<65536?F[$++]=224|I>>>12:(F[$++]=240|I>>>18,F[$++]=128|I>>>12&63),F[$++]=128|I>>>6&63),F[$++]=128|63&I);return F},f.buf2binstring=function(N){return R(N,N.length)},f.binstring2buf=function(N){for(var F=new u.Buf8(N.length),I=0,P=F.length;I<P;I++)F[I]=N.charCodeAt(I);return F},f.buf2string=function(N,F){var I,P,B,$,D=F||N.length,S=new Array(2*D);for(I=P=0;I<D;)if((B=N[I++])<128)S[P++]=B;else if(4<($=w[B]))S[P++]=65533,I+=$-1;else{for(B&=$===2?31:$===3?15:7;1<$&&I<D;)B=B<<6|63&N[I++],$--;1<$?S[P++]=65533:B<65536?S[P++]=B:(B-=65536,S[P++]=55296|B>>10&1023,S[P++]=56320|1023&B)}return R(S,P)},f.utf8border=function(N,F){var I;for((F=F||N.length)>N.length&&(F=N.length),I=F-1;0<=I&&(192&N[I])==128;)I--;return I<0||I===0?F:I+w[N[I]]>F?I:F}},{"./common":41}],43:[function(i,c,f){c.exports=function(u,p,h,w){for(var x=65535&u|0,R=u>>>16&65535|0,N=0;h!==0;){for(h-=N=2e3<h?2e3:h;R=R+(x=x+p[w++]|0)|0,--N;);x%=65521,R%=65521}return x|R<<16|0}},{}],44:[function(i,c,f){c.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(i,c,f){var u=function(){for(var p,h=[],w=0;w<256;w++){p=w;for(var x=0;x<8;x++)p=1&p?3988292384^p>>>1:p>>>1;h[w]=p}return h}();c.exports=function(p,h,w,x){var R=u,N=x+w;p^=-1;for(var F=x;F<N;F++)p=p>>>8^R[255&(p^h[F])];return-1^p}},{}],46:[function(i,c,f){var u,p=i("../utils/common"),h=i("./trees"),w=i("./adler32"),x=i("./crc32"),R=i("./messages"),N=-2,F=258,I=262,P=113;function B(j,V){return j.msg=R[V],V}function $(j){return(j<<1)-(4<j?9:0)}function D(j){for(var V=j.length;0<=--V;)j[V]=0}function S(j){var V=j.state,E=V.pending;E>j.avail_out&&(E=j.avail_out),E!==0&&(p.arraySet(j.output,V.pending_buf,V.pending_out,E,j.next_out),j.next_out+=E,V.pending_out+=E,j.total_out+=E,j.avail_out-=E,V.pending-=E,V.pending===0&&(V.pending_out=0))}function T(j,V){h._tr_flush_block(j,0<=j.block_start?j.block_start:-1,j.strstart-j.block_start,V),j.block_start=j.strstart,S(j.strm)}function v(j,V){j.pending_buf[j.pending++]=V}function m(j,V){j.pending_buf[j.pending++]=V>>>8&255,j.pending_buf[j.pending++]=255&V}function b(j,V){var E,M,L=j.max_chain_length,q=j.strstart,Z=j.prev_length,W=j.nice_match,K=j.strstart>j.w_size-I?j.strstart-(j.w_size-I):0,rt=j.window,et=j.w_mask,Y=j.prev,Q=j.strstart+F,J=rt[q+Z-1],st=rt[q+Z];j.prev_length>=j.good_match&&(L>>=2),W>j.lookahead&&(W=j.lookahead);do if(rt[(E=V)+Z]===st&&rt[E+Z-1]===J&&rt[E]===rt[q]&&rt[++E]===rt[q+1]){q+=2,E++;do;while(rt[++q]===rt[++E]&&rt[++q]===rt[++E]&&rt[++q]===rt[++E]&&rt[++q]===rt[++E]&&rt[++q]===rt[++E]&&rt[++q]===rt[++E]&&rt[++q]===rt[++E]&&rt[++q]===rt[++E]&&q<Q);if(M=F-(Q-q),q=Q-F,Z<M){if(j.match_start=V,W<=(Z=M))break;J=rt[q+Z-1],st=rt[q+Z]}}while((V=Y[V&et])>K&&--L!=0);return Z<=j.lookahead?Z:j.lookahead}function g(j){var V,E,M,L,q,Z,W,K,rt,et,Y=j.w_size;do{if(L=j.window_size-j.lookahead-j.strstart,j.strstart>=Y+(Y-I)){for(p.arraySet(j.window,j.window,Y,Y,0),j.match_start-=Y,j.strstart-=Y,j.block_start-=Y,V=E=j.hash_size;M=j.head[--V],j.head[V]=Y<=M?M-Y:0,--E;);for(V=E=Y;M=j.prev[--V],j.prev[V]=Y<=M?M-Y:0,--E;);L+=Y}if(j.strm.avail_in===0)break;if(Z=j.strm,W=j.window,K=j.strstart+j.lookahead,et=void 0,(rt=L)<(et=Z.avail_in)&&(et=rt),E=et===0?0:(Z.avail_in-=et,p.arraySet(W,Z.input,Z.next_in,et,K),Z.state.wrap===1?Z.adler=w(Z.adler,W,et,K):Z.state.wrap===2&&(Z.adler=x(Z.adler,W,et,K)),Z.next_in+=et,Z.total_in+=et,et),j.lookahead+=E,j.lookahead+j.insert>=3)for(q=j.strstart-j.insert,j.ins_h=j.window[q],j.ins_h=(j.ins_h<<j.hash_shift^j.window[q+1])&j.hash_mask;j.insert&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[q+3-1])&j.hash_mask,j.prev[q&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=q,q++,j.insert--,!(j.lookahead+j.insert<3)););}while(j.lookahead<I&&j.strm.avail_in!==0)}function y(j,V){for(var E,M;;){if(j.lookahead<I){if(g(j),j.lookahead<I&&V===0)return 1;if(j.lookahead===0)break}if(E=0,j.lookahead>=3&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+3-1])&j.hash_mask,E=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),E!==0&&j.strstart-E<=j.w_size-I&&(j.match_length=b(j,E)),j.match_length>=3)if(M=h._tr_tally(j,j.strstart-j.match_start,j.match_length-3),j.lookahead-=j.match_length,j.match_length<=j.max_lazy_match&&j.lookahead>=3){for(j.match_length--;j.strstart++,j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+3-1])&j.hash_mask,E=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart,--j.match_length!=0;);j.strstart++}else j.strstart+=j.match_length,j.match_length=0,j.ins_h=j.window[j.strstart],j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+1])&j.hash_mask;else M=h._tr_tally(j,0,j.window[j.strstart]),j.lookahead--,j.strstart++;if(M&&(T(j,!1),j.strm.avail_out===0))return 1}return j.insert=j.strstart<2?j.strstart:2,V===4?(T(j,!0),j.strm.avail_out===0?3:4):j.last_lit&&(T(j,!1),j.strm.avail_out===0)?1:2}function k(j,V){for(var E,M,L;;){if(j.lookahead<I){if(g(j),j.lookahead<I&&V===0)return 1;if(j.lookahead===0)break}if(E=0,j.lookahead>=3&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+3-1])&j.hash_mask,E=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),j.prev_length=j.match_length,j.prev_match=j.match_start,j.match_length=2,E!==0&&j.prev_length<j.max_lazy_match&&j.strstart-E<=j.w_size-I&&(j.match_length=b(j,E),j.match_length<=5&&(j.strategy===1||j.match_length===3&&4096<j.strstart-j.match_start)&&(j.match_length=2)),j.prev_length>=3&&j.match_length<=j.prev_length){for(L=j.strstart+j.lookahead-3,M=h._tr_tally(j,j.strstart-1-j.prev_match,j.prev_length-3),j.lookahead-=j.prev_length-1,j.prev_length-=2;++j.strstart<=L&&(j.ins_h=(j.ins_h<<j.hash_shift^j.window[j.strstart+3-1])&j.hash_mask,E=j.prev[j.strstart&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=j.strstart),--j.prev_length!=0;);if(j.match_available=0,j.match_length=2,j.strstart++,M&&(T(j,!1),j.strm.avail_out===0))return 1}else if(j.match_available){if((M=h._tr_tally(j,0,j.window[j.strstart-1]))&&T(j,!1),j.strstart++,j.lookahead--,j.strm.avail_out===0)return 1}else j.match_available=1,j.strstart++,j.lookahead--}return j.match_available&&(M=h._tr_tally(j,0,j.window[j.strstart-1]),j.match_available=0),j.insert=j.strstart<2?j.strstart:2,V===4?(T(j,!0),j.strm.avail_out===0?3:4):j.last_lit&&(T(j,!1),j.strm.avail_out===0)?1:2}function O(j,V,E,M,L){this.good_length=j,this.max_lazy=V,this.nice_length=E,this.max_chain=M,this.func=L}function A(){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=8,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 p.Buf16(1146),this.dyn_dtree=new p.Buf16(122),this.bl_tree=new p.Buf16(78),D(this.dyn_ltree),D(this.dyn_dtree),D(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(16),this.heap=new p.Buf16(573),D(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(573),D(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(j){var V;return j&&j.state?(j.total_in=j.total_out=0,j.data_type=2,(V=j.state).pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?42:P,j.adler=V.wrap===2?0:1,V.last_flush=0,h._tr_init(V),0):B(j,N)}function U(j){var V=z(j);return V===0&&function(E){E.window_size=2*E.w_size,D(E.head),E.max_lazy_match=u[E.level].max_lazy,E.good_match=u[E.level].good_length,E.nice_match=u[E.level].nice_length,E.max_chain_length=u[E.level].max_chain,E.strstart=0,E.block_start=0,E.lookahead=0,E.insert=0,E.match_length=E.prev_length=2,E.match_available=0,E.ins_h=0}(j.state),V}function X(j,V,E,M,L,q){if(!j)return N;var Z=1;if(V===-1&&(V=6),M<0?(Z=0,M=-M):15<M&&(Z=2,M-=16),L<1||9<L||E!==8||M<8||15<M||V<0||9<V||q<0||4<q)return B(j,N);M===8&&(M=9);var W=new A;return(j.state=W).strm=j,W.wrap=Z,W.gzhead=null,W.w_bits=M,W.w_size=1<<W.w_bits,W.w_mask=W.w_size-1,W.hash_bits=L+7,W.hash_size=1<<W.hash_bits,W.hash_mask=W.hash_size-1,W.hash_shift=~~((W.hash_bits+3-1)/3),W.window=new p.Buf8(2*W.w_size),W.head=new p.Buf16(W.hash_size),W.prev=new p.Buf16(W.w_size),W.lit_bufsize=1<<L+6,W.pending_buf_size=4*W.lit_bufsize,W.pending_buf=new p.Buf8(W.pending_buf_size),W.d_buf=1*W.lit_bufsize,W.l_buf=3*W.lit_bufsize,W.level=V,W.strategy=q,W.method=E,U(j)}u=[new O(0,0,0,0,function(j,V){var E=65535;for(E>j.pending_buf_size-5&&(E=j.pending_buf_size-5);;){if(j.lookahead<=1){if(g(j),j.lookahead===0&&V===0)return 1;if(j.lookahead===0)break}j.strstart+=j.lookahead,j.lookahead=0;var M=j.block_start+E;if((j.strstart===0||j.strstart>=M)&&(j.lookahead=j.strstart-M,j.strstart=M,T(j,!1),j.strm.avail_out===0)||j.strstart-j.block_start>=j.w_size-I&&(T(j,!1),j.strm.avail_out===0))return 1}return j.insert=0,V===4?(T(j,!0),j.strm.avail_out===0?3:4):(j.strstart>j.block_start&&(T(j,!1),j.strm.avail_out),1)}),new O(4,4,8,4,y),new O(4,5,16,8,y),new O(4,6,32,32,y),new O(4,4,16,16,k),new O(8,16,32,32,k),new O(8,16,128,128,k),new O(8,32,128,256,k),new O(32,128,258,1024,k),new O(32,258,258,4096,k)],f.deflateInit=function(j,V){return X(j,V,8,15,8,0)},f.deflateInit2=X,f.deflateReset=U,f.deflateResetKeep=z,f.deflateSetHeader=function(j,V){return j&&j.state?j.state.wrap!==2?N:(j.state.gzhead=V,0):N},f.deflate=function(j,V){var E,M,L,q;if(!j||!j.state||5<V||V<0)return j?B(j,N):N;if(M=j.state,!j.output||!j.input&&j.avail_in!==0||M.status===666&&V!==4)return B(j,j.avail_out===0?-5:N);if(M.strm=j,E=M.last_flush,M.last_flush=V,M.status===42)if(M.wrap===2)j.adler=0,v(M,31),v(M,139),v(M,8),M.gzhead?(v(M,(M.gzhead.text?1:0)+(M.gzhead.hcrc?2:0)+(M.gzhead.extra?4:0)+(M.gzhead.name?8:0)+(M.gzhead.comment?16:0)),v(M,255&M.gzhead.time),v(M,M.gzhead.time>>8&255),v(M,M.gzhead.time>>16&255),v(M,M.gzhead.time>>24&255),v(M,M.level===9?2:2<=M.strategy||M.level<2?4:0),v(M,255&M.gzhead.os),M.gzhead.extra&&M.gzhead.extra.length&&(v(M,255&M.gzhead.extra.length),v(M,M.gzhead.extra.length>>8&255)),M.gzhead.hcrc&&(j.adler=x(j.adler,M.pending_buf,M.pending,0)),M.gzindex=0,M.status=69):(v(M,0),v(M,0),v(M,0),v(M,0),v(M,0),v(M,M.level===9?2:2<=M.strategy||M.level<2?4:0),v(M,3),M.status=P);else{var Z=8+(M.w_bits-8<<4)<<8;Z|=(2<=M.strategy||M.level<2?0:M.level<6?1:M.level===6?2:3)<<6,M.strstart!==0&&(Z|=32),Z+=31-Z%31,M.status=P,m(M,Z),M.strstart!==0&&(m(M,j.adler>>>16),m(M,65535&j.adler)),j.adler=1}if(M.status===69)if(M.gzhead.extra){for(L=M.pending;M.gzindex<(65535&M.gzhead.extra.length)&&(M.pending!==M.pending_buf_size||(M.gzhead.hcrc&&M.pending>L&&(j.adler=x(j.adler,M.pending_buf,M.pending-L,L)),S(j),L=M.pending,M.pending!==M.pending_buf_size));)v(M,255&M.gzhead.extra[M.gzindex]),M.gzindex++;M.gzhead.hcrc&&M.pending>L&&(j.adler=x(j.adler,M.pending_buf,M.pending-L,L)),M.gzindex===M.gzhead.extra.length&&(M.gzindex=0,M.status=73)}else M.status=73;if(M.status===73)if(M.gzhead.name){L=M.pending;do{if(M.pending===M.pending_buf_size&&(M.gzhead.hcrc&&M.pending>L&&(j.adler=x(j.adler,M.pending_buf,M.pending-L,L)),S(j),L=M.pending,M.pending===M.pending_buf_size)){q=1;break}q=M.gzindex<M.gzhead.name.length?255&M.gzhead.name.charCodeAt(M.gzindex++):0,v(M,q)}while(q!==0);M.gzhead.hcrc&&M.pending>L&&(j.adler=x(j.adler,M.pending_buf,M.pending-L,L)),q===0&&(M.gzindex=0,M.status=91)}else M.status=91;if(M.status===91)if(M.gzhead.comment){L=M.pending;do{if(M.pending===M.pending_buf_size&&(M.gzhead.hcrc&&M.pending>L&&(j.adler=x(j.adler,M.pending_buf,M.pending-L,L)),S(j),L=M.pending,M.pending===M.pending_buf_size)){q=1;break}q=M.gzindex<M.gzhead.comment.length?255&M.gzhead.comment.charCodeAt(M.gzindex++):0,v(M,q)}while(q!==0);M.gzhead.hcrc&&M.pending>L&&(j.adler=x(j.adler,M.pending_buf,M.pending-L,L)),q===0&&(M.status=103)}else M.status=103;if(M.status===103&&(M.gzhead.hcrc?(M.pending+2>M.pending_buf_size&&S(j),M.pending+2<=M.pending_buf_size&&(v(M,255&j.adler),v(M,j.adler>>8&255),j.adler=0,M.status=P)):M.status=P),M.pending!==0){if(S(j),j.avail_out===0)return M.last_flush=-1,0}else if(j.avail_in===0&&$(V)<=$(E)&&V!==4)return B(j,-5);if(M.status===666&&j.avail_in!==0)return B(j,-5);if(j.avail_in!==0||M.lookahead!==0||V!==0&&M.status!==666){var W=M.strategy===2?function(K,rt){for(var et;;){if(K.lookahead===0&&(g(K),K.lookahead===0)){if(rt===0)return 1;break}if(K.match_length=0,et=h._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++,et&&(T(K,!1),K.strm.avail_out===0))return 1}return K.insert=0,rt===4?(T(K,!0),K.strm.avail_out===0?3:4):K.last_lit&&(T(K,!1),K.strm.avail_out===0)?1:2}(M,V):M.strategy===3?function(K,rt){for(var et,Y,Q,J,st=K.window;;){if(K.lookahead<=F){if(g(K),K.lookahead<=F&&rt===0)return 1;if(K.lookahead===0)break}if(K.match_length=0,K.lookahead>=3&&0<K.strstart&&(Y=st[Q=K.strstart-1])===st[++Q]&&Y===st[++Q]&&Y===st[++Q]){J=K.strstart+F;do;while(Y===st[++Q]&&Y===st[++Q]&&Y===st[++Q]&&Y===st[++Q]&&Y===st[++Q]&&Y===st[++Q]&&Y===st[++Q]&&Y===st[++Q]&&Q<J);K.match_length=F-(J-Q),K.match_length>K.lookahead&&(K.match_length=K.lookahead)}if(K.match_length>=3?(et=h._tr_tally(K,1,K.match_length-3),K.lookahead-=K.match_length,K.strstart+=K.match_length,K.match_length=0):(et=h._tr_tally(K,0,K.window[K.strstart]),K.lookahead--,K.strstart++),et&&(T(K,!1),K.strm.avail_out===0))return 1}return K.insert=0,rt===4?(T(K,!0),K.strm.avail_out===0?3:4):K.last_lit&&(T(K,!1),K.strm.avail_out===0)?1:2}(M,V):u[M.level].func(M,V);if(W!==3&&W!==4||(M.status=666),W===1||W===3)return j.avail_out===0&&(M.last_flush=-1),0;if(W===2&&(V===1?h._tr_align(M):V!==5&&(h._tr_stored_block(M,0,0,!1),V===3&&(D(M.head),M.lookahead===0&&(M.strstart=0,M.block_start=0,M.insert=0))),S(j),j.avail_out===0))return M.last_flush=-1,0}return V!==4?0:M.wrap<=0?1:(M.wrap===2?(v(M,255&j.adler),v(M,j.adler>>8&255),v(M,j.adler>>16&255),v(M,j.adler>>24&255),v(M,255&j.total_in),v(M,j.total_in>>8&255),v(M,j.total_in>>16&255),v(M,j.total_in>>24&255)):(m(M,j.adler>>>16),m(M,65535&j.adler)),S(j),0<M.wrap&&(M.wrap=-M.wrap),M.pending!==0?0:1)},f.deflateEnd=function(j){var V;return j&&j.state?(V=j.state.status)!==42&&V!==69&&V!==73&&V!==91&&V!==103&&V!==P&&V!==666?B(j,N):(j.state=null,V===P?B(j,-3):0):N},f.deflateSetDictionary=function(j,V){var E,M,L,q,Z,W,K,rt,et=V.length;if(!j||!j.state||(q=(E=j.state).wrap)===2||q===1&&E.status!==42||E.lookahead)return N;for(q===1&&(j.adler=w(j.adler,V,et,0)),E.wrap=0,et>=E.w_size&&(q===0&&(D(E.head),E.strstart=0,E.block_start=0,E.insert=0),rt=new p.Buf8(E.w_size),p.arraySet(rt,V,et-E.w_size,E.w_size,0),V=rt,et=E.w_size),Z=j.avail_in,W=j.next_in,K=j.input,j.avail_in=et,j.next_in=0,j.input=V,g(E);E.lookahead>=3;){for(M=E.strstart,L=E.lookahead-2;E.ins_h=(E.ins_h<<E.hash_shift^E.window[M+3-1])&E.hash_mask,E.prev[M&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=M,M++,--L;);E.strstart=M,E.lookahead=2,g(E)}return E.strstart+=E.lookahead,E.block_start=E.strstart,E.insert=E.lookahead,E.lookahead=0,E.match_length=E.prev_length=2,E.match_available=0,j.next_in=W,j.input=K,j.avail_in=Z,E.wrap=q,0},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(i,c,f){c.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(i,c,f){c.exports=function(u,p){var h,w,x,R,N,F,I,P,B,$,D,S,T,v,m,b,g,y,k,O,A,z,U,X,j;h=u.state,w=u.next_in,X=u.input,x=w+(u.avail_in-5),R=u.next_out,j=u.output,N=R-(p-u.avail_out),F=R+(u.avail_out-257),I=h.dmax,P=h.wsize,B=h.whave,$=h.wnext,D=h.window,S=h.hold,T=h.bits,v=h.lencode,m=h.distcode,b=(1<<h.lenbits)-1,g=(1<<h.distbits)-1;t:do{T<15&&(S+=X[w++]<<T,T+=8,S+=X[w++]<<T,T+=8),y=v[S&b];e:for(;;){if(S>>>=k=y>>>24,T-=k,(k=y>>>16&255)==0)j[R++]=65535&y;else{if(!(16&k)){if(!(64&k)){y=v[(65535&y)+(S&(1<<k)-1)];continue e}if(32&k){h.mode=12;break t}u.msg="invalid literal/length code",h.mode=30;break t}O=65535&y,(k&=15)&&(T<k&&(S+=X[w++]<<T,T+=8),O+=S&(1<<k)-1,S>>>=k,T-=k),T<15&&(S+=X[w++]<<T,T+=8,S+=X[w++]<<T,T+=8),y=m[S&g];r:for(;;){if(S>>>=k=y>>>24,T-=k,!(16&(k=y>>>16&255))){if(!(64&k)){y=m[(65535&y)+(S&(1<<k)-1)];continue r}u.msg="invalid distance code",h.mode=30;break t}if(A=65535&y,T<(k&=15)&&(S+=X[w++]<<T,(T+=8)<k&&(S+=X[w++]<<T,T+=8)),I<(A+=S&(1<<k)-1)){u.msg="invalid distance too far back",h.mode=30;break t}if(S>>>=k,T-=k,(k=R-N)<A){if(B<(k=A-k)&&h.sane){u.msg="invalid distance too far back",h.mode=30;break t}if(U=D,(z=0)===$){if(z+=P-k,k<O){for(O-=k;j[R++]=D[z++],--k;);z=R-A,U=j}}else if($<k){if(z+=P+$-k,(k-=$)<O){for(O-=k;j[R++]=D[z++],--k;);if(z=0,$<O){for(O-=k=$;j[R++]=D[z++],--k;);z=R-A,U=j}}}else if(z+=$-k,k<O){for(O-=k;j[R++]=D[z++],--k;);z=R-A,U=j}for(;2<O;)j[R++]=U[z++],j[R++]=U[z++],j[R++]=U[z++],O-=3;O&&(j[R++]=U[z++],1<O&&(j[R++]=U[z++]))}else{for(z=R-A;j[R++]=j[z++],j[R++]=j[z++],j[R++]=j[z++],2<(O-=3););O&&(j[R++]=j[z++],1<O&&(j[R++]=j[z++]))}break}}break}}while(w<x&&R<F);w-=O=T>>3,S&=(1<<(T-=O<<3))-1,u.next_in=w,u.next_out=R,u.avail_in=w<x?x-w+5:5-(w-x),u.avail_out=R<F?F-R+257:257-(R-F),h.hold=S,h.bits=T}},{}],49:[function(i,c,f){var u=i("../utils/common"),p=i("./adler32"),h=i("./crc32"),w=i("./inffast"),x=i("./inftrees"),R=-2;function N(b){return(b>>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function F(){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 u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function I(b){var g;return b&&b.state?(g=b.state,b.total_in=b.total_out=g.total=0,b.msg="",g.wrap&&(b.adler=1&g.wrap),g.mode=1,g.last=0,g.havedict=0,g.dmax=32768,g.head=null,g.hold=0,g.bits=0,g.lencode=g.lendyn=new u.Buf32(852),g.distcode=g.distdyn=new u.Buf32(592),g.sane=1,g.back=-1,0):R}function P(b){var g;return b&&b.state?((g=b.state).wsize=0,g.whave=0,g.wnext=0,I(b)):R}function B(b,g){var y,k;return b&&b.state?(k=b.state,g<0?(y=0,g=-g):(y=1+(g>>4),g<48&&(g&=15)),g&&(g<8||15<g)?R:(k.window!==null&&k.wbits!==g&&(k.window=null),k.wrap=y,k.wbits=g,P(b))):R}function $(b,g){var y,k;return b?(k=new F,(b.state=k).window=null,(y=B(b,g))!==0&&(b.state=null),y):R}var D,S,T=!0;function v(b){if(T){var g;for(D=new u.Buf32(512),S=new u.Buf32(32),g=0;g<144;)b.lens[g++]=8;for(;g<256;)b.lens[g++]=9;for(;g<280;)b.lens[g++]=7;for(;g<288;)b.lens[g++]=8;for(x(1,b.lens,0,288,D,0,b.work,{bits:9}),g=0;g<32;)b.lens[g++]=5;x(2,b.lens,0,32,S,0,b.work,{bits:5}),T=!1}b.lencode=D,b.lenbits=9,b.distcode=S,b.distbits=5}function m(b,g,y,k){var O,A=b.state;return A.window===null&&(A.wsize=1<<A.wbits,A.wnext=0,A.whave=0,A.window=new u.Buf8(A.wsize)),k>=A.wsize?(u.arraySet(A.window,g,y-A.wsize,A.wsize,0),A.wnext=0,A.whave=A.wsize):(k<(O=A.wsize-A.wnext)&&(O=k),u.arraySet(A.window,g,y-k,O,A.wnext),(k-=O)?(u.arraySet(A.window,g,y-k,k,0),A.wnext=k,A.whave=A.wsize):(A.wnext+=O,A.wnext===A.wsize&&(A.wnext=0),A.whave<A.wsize&&(A.whave+=O))),0}f.inflateReset=P,f.inflateReset2=B,f.inflateResetKeep=I,f.inflateInit=function(b){return $(b,15)},f.inflateInit2=$,f.inflate=function(b,g){var y,k,O,A,z,U,X,j,V,E,M,L,q,Z,W,K,rt,et,Y,Q,J,st,it,ot,ut=0,ct=new u.Buf8(4),pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!b||!b.state||!b.output||!b.input&&b.avail_in!==0)return R;(y=b.state).mode===12&&(y.mode=13),z=b.next_out,O=b.output,X=b.avail_out,A=b.next_in,k=b.input,U=b.avail_in,j=y.hold,V=y.bits,E=U,M=X,st=0;t:for(;;)switch(y.mode){case 1:if(y.wrap===0){y.mode=13;break}for(;V<16;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}if(2&y.wrap&&j===35615){ct[y.check=0]=255&j,ct[1]=j>>>8&255,y.check=h(y.check,ct,2,0),V=j=0,y.mode=2;break}if(y.flags=0,y.head&&(y.head.done=!1),!(1&y.wrap)||(((255&j)<<8)+(j>>8))%31){b.msg="incorrect header check",y.mode=30;break}if((15&j)!=8){b.msg="unknown compression method",y.mode=30;break}if(V-=4,J=8+(15&(j>>>=4)),y.wbits===0)y.wbits=J;else if(J>y.wbits){b.msg="invalid window size",y.mode=30;break}y.dmax=1<<J,b.adler=y.check=1,y.mode=512&j?10:12,V=j=0;break;case 2:for(;V<16;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}if(y.flags=j,(255&y.flags)!=8){b.msg="unknown compression method",y.mode=30;break}if(57344&y.flags){b.msg="unknown header flags set",y.mode=30;break}y.head&&(y.head.text=j>>8&1),512&y.flags&&(ct[0]=255&j,ct[1]=j>>>8&255,y.check=h(y.check,ct,2,0)),V=j=0,y.mode=3;case 3:for(;V<32;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}y.head&&(y.head.time=j),512&y.flags&&(ct[0]=255&j,ct[1]=j>>>8&255,ct[2]=j>>>16&255,ct[3]=j>>>24&255,y.check=h(y.check,ct,4,0)),V=j=0,y.mode=4;case 4:for(;V<16;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}y.head&&(y.head.xflags=255&j,y.head.os=j>>8),512&y.flags&&(ct[0]=255&j,ct[1]=j>>>8&255,y.check=h(y.check,ct,2,0)),V=j=0,y.mode=5;case 5:if(1024&y.flags){for(;V<16;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}y.length=j,y.head&&(y.head.extra_len=j),512&y.flags&&(ct[0]=255&j,ct[1]=j>>>8&255,y.check=h(y.check,ct,2,0)),V=j=0}else y.head&&(y.head.extra=null);y.mode=6;case 6:if(1024&y.flags&&(U<(L=y.length)&&(L=U),L&&(y.head&&(J=y.head.extra_len-y.length,y.head.extra||(y.head.extra=new Array(y.head.extra_len)),u.arraySet(y.head.extra,k,A,L,J)),512&y.flags&&(y.check=h(y.check,k,L,A)),U-=L,A+=L,y.length-=L),y.length))break t;y.length=0,y.mode=7;case 7:if(2048&y.flags){if(U===0)break t;for(L=0;J=k[A+L++],y.head&&J&&y.length<65536&&(y.head.name+=String.fromCharCode(J)),J&&L<U;);if(512&y.flags&&(y.check=h(y.check,k,L,A)),U-=L,A+=L,J)break t}else y.head&&(y.head.name=null);y.length=0,y.mode=8;case 8:if(4096&y.flags){if(U===0)break t;for(L=0;J=k[A+L++],y.head&&J&&y.length<65536&&(y.head.comment+=String.fromCharCode(J)),J&&L<U;);if(512&y.flags&&(y.check=h(y.check,k,L,A)),U-=L,A+=L,J)break t}else y.head&&(y.head.comment=null);y.mode=9;case 9:if(512&y.flags){for(;V<16;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}if(j!==(65535&y.check)){b.msg="header crc mismatch",y.mode=30;break}V=j=0}y.head&&(y.head.hcrc=y.flags>>9&1,y.head.done=!0),b.adler=y.check=0,y.mode=12;break;case 10:for(;V<32;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}b.adler=y.check=N(j),V=j=0,y.mode=11;case 11:if(y.havedict===0)return b.next_out=z,b.avail_out=X,b.next_in=A,b.avail_in=U,y.hold=j,y.bits=V,2;b.adler=y.check=1,y.mode=12;case 12:if(g===5||g===6)break t;case 13:if(y.last){j>>>=7&V,V-=7&V,y.mode=27;break}for(;V<3;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}switch(y.last=1&j,V-=1,3&(j>>>=1)){case 0:y.mode=14;break;case 1:if(v(y),y.mode=20,g!==6)break;j>>>=2,V-=2;break t;case 2:y.mode=17;break;case 3:b.msg="invalid block type",y.mode=30}j>>>=2,V-=2;break;case 14:for(j>>>=7&V,V-=7&V;V<32;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}if((65535&j)!=(j>>>16^65535)){b.msg="invalid stored block lengths",y.mode=30;break}if(y.length=65535&j,V=j=0,y.mode=15,g===6)break t;case 15:y.mode=16;case 16:if(L=y.length){if(U<L&&(L=U),X<L&&(L=X),L===0)break t;u.arraySet(O,k,A,L,z),U-=L,A+=L,X-=L,z+=L,y.length-=L;break}y.mode=12;break;case 17:for(;V<14;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}if(y.nlen=257+(31&j),j>>>=5,V-=5,y.ndist=1+(31&j),j>>>=5,V-=5,y.ncode=4+(15&j),j>>>=4,V-=4,286<y.nlen||30<y.ndist){b.msg="too many length or distance symbols",y.mode=30;break}y.have=0,y.mode=18;case 18:for(;y.have<y.ncode;){for(;V<3;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}y.lens[pt[y.have++]]=7&j,j>>>=3,V-=3}for(;y.have<19;)y.lens[pt[y.have++]]=0;if(y.lencode=y.lendyn,y.lenbits=7,it={bits:y.lenbits},st=x(0,y.lens,0,19,y.lencode,0,y.work,it),y.lenbits=it.bits,st){b.msg="invalid code lengths set",y.mode=30;break}y.have=0,y.mode=19;case 19:for(;y.have<y.nlen+y.ndist;){for(;K=(ut=y.lencode[j&(1<<y.lenbits)-1])>>>16&255,rt=65535&ut,!((W=ut>>>24)<=V);){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}if(rt<16)j>>>=W,V-=W,y.lens[y.have++]=rt;else{if(rt===16){for(ot=W+2;V<ot;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}if(j>>>=W,V-=W,y.have===0){b.msg="invalid bit length repeat",y.mode=30;break}J=y.lens[y.have-1],L=3+(3&j),j>>>=2,V-=2}else if(rt===17){for(ot=W+3;V<ot;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}V-=W,J=0,L=3+(7&(j>>>=W)),j>>>=3,V-=3}else{for(ot=W+7;V<ot;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}V-=W,J=0,L=11+(127&(j>>>=W)),j>>>=7,V-=7}if(y.have+L>y.nlen+y.ndist){b.msg="invalid bit length repeat",y.mode=30;break}for(;L--;)y.lens[y.have++]=J}}if(y.mode===30)break;if(y.lens[256]===0){b.msg="invalid code -- missing end-of-block",y.mode=30;break}if(y.lenbits=9,it={bits:y.lenbits},st=x(1,y.lens,0,y.nlen,y.lencode,0,y.work,it),y.lenbits=it.bits,st){b.msg="invalid literal/lengths set",y.mode=30;break}if(y.distbits=6,y.distcode=y.distdyn,it={bits:y.distbits},st=x(2,y.lens,y.nlen,y.ndist,y.distcode,0,y.work,it),y.distbits=it.bits,st){b.msg="invalid distances set",y.mode=30;break}if(y.mode=20,g===6)break t;case 20:y.mode=21;case 21:if(6<=U&&258<=X){b.next_out=z,b.avail_out=X,b.next_in=A,b.avail_in=U,y.hold=j,y.bits=V,w(b,M),z=b.next_out,O=b.output,X=b.avail_out,A=b.next_in,k=b.input,U=b.avail_in,j=y.hold,V=y.bits,y.mode===12&&(y.back=-1);break}for(y.back=0;K=(ut=y.lencode[j&(1<<y.lenbits)-1])>>>16&255,rt=65535&ut,!((W=ut>>>24)<=V);){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}if(K&&!(240&K)){for(et=W,Y=K,Q=rt;K=(ut=y.lencode[Q+((j&(1<<et+Y)-1)>>et)])>>>16&255,rt=65535&ut,!(et+(W=ut>>>24)<=V);){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}j>>>=et,V-=et,y.back+=et}if(j>>>=W,V-=W,y.back+=W,y.length=rt,K===0){y.mode=26;break}if(32&K){y.back=-1,y.mode=12;break}if(64&K){b.msg="invalid literal/length code",y.mode=30;break}y.extra=15&K,y.mode=22;case 22:if(y.extra){for(ot=y.extra;V<ot;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}y.length+=j&(1<<y.extra)-1,j>>>=y.extra,V-=y.extra,y.back+=y.extra}y.was=y.length,y.mode=23;case 23:for(;K=(ut=y.distcode[j&(1<<y.distbits)-1])>>>16&255,rt=65535&ut,!((W=ut>>>24)<=V);){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}if(!(240&K)){for(et=W,Y=K,Q=rt;K=(ut=y.distcode[Q+((j&(1<<et+Y)-1)>>et)])>>>16&255,rt=65535&ut,!(et+(W=ut>>>24)<=V);){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}j>>>=et,V-=et,y.back+=et}if(j>>>=W,V-=W,y.back+=W,64&K){b.msg="invalid distance code",y.mode=30;break}y.offset=rt,y.extra=15&K,y.mode=24;case 24:if(y.extra){for(ot=y.extra;V<ot;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}y.offset+=j&(1<<y.extra)-1,j>>>=y.extra,V-=y.extra,y.back+=y.extra}if(y.offset>y.dmax){b.msg="invalid distance too far back",y.mode=30;break}y.mode=25;case 25:if(X===0)break t;if(L=M-X,y.offset>L){if((L=y.offset-L)>y.whave&&y.sane){b.msg="invalid distance too far back",y.mode=30;break}q=L>y.wnext?(L-=y.wnext,y.wsize-L):y.wnext-L,L>y.length&&(L=y.length),Z=y.window}else Z=O,q=z-y.offset,L=y.length;for(X<L&&(L=X),X-=L,y.length-=L;O[z++]=Z[q++],--L;);y.length===0&&(y.mode=21);break;case 26:if(X===0)break t;O[z++]=y.length,X--,y.mode=21;break;case 27:if(y.wrap){for(;V<32;){if(U===0)break t;U--,j|=k[A++]<<V,V+=8}if(M-=X,b.total_out+=M,y.total+=M,M&&(b.adler=y.check=y.flags?h(y.check,O,M,z-M):p(y.check,O,M,z-M)),M=X,(y.flags?j:N(j))!==y.check){b.msg="incorrect data check",y.mode=30;break}V=j=0}y.mode=28;case 28:if(y.wrap&&y.flags){for(;V<32;){if(U===0)break t;U--,j+=k[A++]<<V,V+=8}if(j!==(4294967295&y.total)){b.msg="incorrect length check",y.mode=30;break}V=j=0}y.mode=29;case 29:st=1;break t;case 30:st=-3;break t;case 31:return-4;case 32:default:return R}return b.next_out=z,b.avail_out=X,b.next_in=A,b.avail_in=U,y.hold=j,y.bits=V,(y.wsize||M!==b.avail_out&&y.mode<30&&(y.mode<27||g!==4))&&m(b,b.output,b.next_out,M-b.avail_out)?(y.mode=31,-4):(E-=b.avail_in,M-=b.avail_out,b.total_in+=E,b.total_out+=M,y.total+=M,y.wrap&&M&&(b.adler=y.check=y.flags?h(y.check,O,M,b.next_out-M):p(y.check,O,M,b.next_out-M)),b.data_type=y.bits+(y.last?64:0)+(y.mode===12?128:0)+(y.mode===20||y.mode===15?256:0),(E==0&&M===0||g===4)&&st===0&&(st=-5),st)},f.inflateEnd=function(b){if(!b||!b.state)return R;var g=b.state;return g.window&&(g.window=null),b.state=null,0},f.inflateGetHeader=function(b,g){var y;return b&&b.state&&2&(y=b.state).wrap?((y.head=g).done=!1,0):R},f.inflateSetDictionary=function(b,g){var y,k=g.length;return b&&b.state?(y=b.state).wrap!==0&&y.mode!==11?R:y.mode===11&&p(1,g,k,0)!==y.check?-3:m(b,g,k,k)?(y.mode=31,-4):(y.havedict=1,0):R},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(i,c,f){var u=i("../utils/common"),p=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],h=[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],x=[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];c.exports=function(R,N,F,I,P,B,$,D){var S,T,v,m,b,g,y,k,O,A=D.bits,z=0,U=0,X=0,j=0,V=0,E=0,M=0,L=0,q=0,Z=0,W=null,K=0,rt=new u.Buf16(16),et=new u.Buf16(16),Y=null,Q=0;for(z=0;z<=15;z++)rt[z]=0;for(U=0;U<I;U++)rt[N[F+U]]++;for(V=A,j=15;1<=j&&rt[j]===0;j--);if(j<V&&(V=j),j===0)return P[B++]=20971520,P[B++]=20971520,D.bits=1,0;for(X=1;X<j&&rt[X]===0;X++);for(V<X&&(V=X),z=L=1;z<=15;z++)if(L<<=1,(L-=rt[z])<0)return-1;if(0<L&&(R===0||j!==1))return-1;for(et[1]=0,z=1;z<15;z++)et[z+1]=et[z]+rt[z];for(U=0;U<I;U++)N[F+U]!==0&&($[et[N[F+U]]++]=U);if(g=R===0?(W=Y=$,19):R===1?(W=p,K-=257,Y=h,Q-=257,256):(W=w,Y=x,-1),z=X,b=B,M=U=Z=0,v=-1,m=(q=1<<(E=V))-1,R===1&&852<q||R===2&&592<q)return 1;for(;;){for(y=z-M,O=$[U]<g?(k=0,$[U]):$[U]>g?(k=Y[Q+$[U]],W[K+$[U]]):(k=96,0),S=1<<z-M,X=T=1<<E;P[b+(Z>>M)+(T-=S)]=y<<24|k<<16|O|0,T!==0;);for(S=1<<z-1;Z&S;)S>>=1;if(S!==0?(Z&=S-1,Z+=S):Z=0,U++,--rt[z]==0){if(z===j)break;z=N[F+$[U]]}if(V<z&&(Z&m)!==v){for(M===0&&(M=V),b+=X,L=1<<(E=z-M);E+M<j&&!((L-=rt[E+M])<=0);)E++,L<<=1;if(q+=1<<E,R===1&&852<q||R===2&&592<q)return 1;P[v=Z&m]=V<<24|E<<16|b-B|0}}return Z!==0&&(P[b+Z]=z-M<<24|64<<16|0),D.bits=V,0}},{"../utils/common":41}],51:[function(i,c,f){c.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(i,c,f){var u=i("../utils/common");function p(Y){for(var Q=Y.length;0<=--Q;)Y[Q]=0}var h=256,w=286,x=30,R=15,N=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],F=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(576);p(B);var $=new Array(60);p($);var D=new Array(512);p(D);var S=new Array(256);p(S);var T=new Array(29);p(T);var v,m,b,g=new Array(x);function y(Y,Q,J,st,it){this.static_tree=Y,this.extra_bits=Q,this.extra_base=J,this.elems=st,this.max_length=it,this.has_stree=Y&&Y.length}function k(Y,Q){this.dyn_tree=Y,this.max_code=0,this.stat_desc=Q}function O(Y){return Y<256?D[Y]:D[256+(Y>>>7)]}function A(Y,Q){Y.pending_buf[Y.pending++]=255&Q,Y.pending_buf[Y.pending++]=Q>>>8&255}function z(Y,Q,J){Y.bi_valid>16-J?(Y.bi_buf|=Q<<Y.bi_valid&65535,A(Y,Y.bi_buf),Y.bi_buf=Q>>16-Y.bi_valid,Y.bi_valid+=J-16):(Y.bi_buf|=Q<<Y.bi_valid&65535,Y.bi_valid+=J)}function U(Y,Q,J){z(Y,J[2*Q],J[2*Q+1])}function X(Y,Q){for(var J=0;J|=1&Y,Y>>>=1,J<<=1,0<--Q;);return J>>>1}function j(Y,Q,J){var st,it,ot=new Array(16),ut=0;for(st=1;st<=R;st++)ot[st]=ut=ut+J[st-1]<<1;for(it=0;it<=Q;it++){var ct=Y[2*it+1];ct!==0&&(Y[2*it]=X(ot[ct]++,ct))}}function V(Y){var Q;for(Q=0;Q<w;Q++)Y.dyn_ltree[2*Q]=0;for(Q=0;Q<x;Q++)Y.dyn_dtree[2*Q]=0;for(Q=0;Q<19;Q++)Y.bl_tree[2*Q]=0;Y.dyn_ltree[512]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function E(Y){8<Y.bi_valid?A(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function M(Y,Q,J,st){var it=2*Q,ot=2*J;return Y[it]<Y[ot]||Y[it]===Y[ot]&&st[Q]<=st[J]}function L(Y,Q,J){for(var st=Y.heap[J],it=J<<1;it<=Y.heap_len&&(it<Y.heap_len&&M(Q,Y.heap[it+1],Y.heap[it],Y.depth)&&it++,!M(Q,st,Y.heap[it],Y.depth));)Y.heap[J]=Y.heap[it],J=it,it<<=1;Y.heap[J]=st}function q(Y,Q,J){var st,it,ot,ut,ct=0;if(Y.last_lit!==0)for(;st=Y.pending_buf[Y.d_buf+2*ct]<<8|Y.pending_buf[Y.d_buf+2*ct+1],it=Y.pending_buf[Y.l_buf+ct],ct++,st===0?U(Y,it,Q):(U(Y,(ot=S[it])+h+1,Q),(ut=N[ot])!==0&&z(Y,it-=T[ot],ut),U(Y,ot=O(--st),J),(ut=F[ot])!==0&&z(Y,st-=g[ot],ut)),ct<Y.last_lit;);U(Y,256,Q)}function Z(Y,Q){var J,st,it,ot=Q.dyn_tree,ut=Q.stat_desc.static_tree,ct=Q.stat_desc.has_stree,pt=Q.stat_desc.elems,St=-1;for(Y.heap_len=0,Y.heap_max=573,J=0;J<pt;J++)ot[2*J]!==0?(Y.heap[++Y.heap_len]=St=J,Y.depth[J]=0):ot[2*J+1]=0;for(;Y.heap_len<2;)ot[2*(it=Y.heap[++Y.heap_len]=St<2?++St:0)]=1,Y.depth[it]=0,Y.opt_len--,ct&&(Y.static_len-=ut[2*it+1]);for(Q.max_code=St,J=Y.heap_len>>1;1<=J;J--)L(Y,ot,J);for(it=pt;J=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],L(Y,ot,1),st=Y.heap[1],Y.heap[--Y.heap_max]=J,Y.heap[--Y.heap_max]=st,ot[2*it]=ot[2*J]+ot[2*st],Y.depth[it]=(Y.depth[J]>=Y.depth[st]?Y.depth[J]:Y.depth[st])+1,ot[2*J+1]=ot[2*st+1]=it,Y.heap[1]=it++,L(Y,ot,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(xt,yt){var Ot,At,Rt,It,kt,bt,Ct=yt.dyn_tree,Et=yt.max_code,Mt=yt.stat_desc.static_tree,Kt=yt.stat_desc.has_stree,ne=yt.stat_desc.extra_bits,Nt=yt.stat_desc.extra_base,te=yt.stat_desc.max_length,Yt=0;for(It=0;It<=R;It++)xt.bl_count[It]=0;for(Ct[2*xt.heap[xt.heap_max]+1]=0,Ot=xt.heap_max+1;Ot<573;Ot++)te<(It=Ct[2*Ct[2*(At=xt.heap[Ot])+1]+1]+1)&&(It=te,Yt++),Ct[2*At+1]=It,Et<At||(xt.bl_count[It]++,kt=0,Nt<=At&&(kt=ne[At-Nt]),bt=Ct[2*At],xt.opt_len+=bt*(It+kt),Kt&&(xt.static_len+=bt*(Mt[2*At+1]+kt)));if(Yt!==0){do{for(It=te-1;xt.bl_count[It]===0;)It--;xt.bl_count[It]--,xt.bl_count[It+1]+=2,xt.bl_count[te]--,Yt-=2}while(0<Yt);for(It=te;It!==0;It--)for(At=xt.bl_count[It];At!==0;)Et<(Rt=xt.heap[--Ot])||(Ct[2*Rt+1]!==It&&(xt.opt_len+=(It-Ct[2*Rt+1])*Ct[2*Rt],Ct[2*Rt+1]=It),At--)}}(Y,Q),j(ot,St,Y.bl_count)}function W(Y,Q,J){var st,it,ot=-1,ut=Q[1],ct=0,pt=7,St=4;for(ut===0&&(pt=138,St=3),Q[2*(J+1)+1]=65535,st=0;st<=J;st++)it=ut,ut=Q[2*(st+1)+1],++ct<pt&&it===ut||(ct<St?Y.bl_tree[2*it]+=ct:it!==0?(it!==ot&&Y.bl_tree[2*it]++,Y.bl_tree[32]++):ct<=10?Y.bl_tree[34]++:Y.bl_tree[36]++,ot=it,St=(ct=0)===ut?(pt=138,3):it===ut?(pt=6,3):(pt=7,4))}function K(Y,Q,J){var st,it,ot=-1,ut=Q[1],ct=0,pt=7,St=4;for(ut===0&&(pt=138,St=3),st=0;st<=J;st++)if(it=ut,ut=Q[2*(st+1)+1],!(++ct<pt&&it===ut)){if(ct<St)for(;U(Y,it,Y.bl_tree),--ct!=0;);else it!==0?(it!==ot&&(U(Y,it,Y.bl_tree),ct--),U(Y,16,Y.bl_tree),z(Y,ct-3,2)):ct<=10?(U(Y,17,Y.bl_tree),z(Y,ct-3,3)):(U(Y,18,Y.bl_tree),z(Y,ct-11,7));ot=it,St=(ct=0)===ut?(pt=138,3):it===ut?(pt=6,3):(pt=7,4)}}p(g);var rt=!1;function et(Y,Q,J,st){z(Y,0+(st?1:0),3),function(it,ot,ut,ct){E(it),A(it,ut),A(it,~ut),u.arraySet(it.pending_buf,it.window,ot,ut,it.pending),it.pending+=ut}(Y,Q,J)}f._tr_init=function(Y){rt||(function(){var Q,J,st,it,ot,ut=new Array(16);for(it=st=0;it<28;it++)for(T[it]=st,Q=0;Q<1<<N[it];Q++)S[st++]=it;for(S[st-1]=it,it=ot=0;it<16;it++)for(g[it]=ot,Q=0;Q<1<<F[it];Q++)D[ot++]=it;for(ot>>=7;it<x;it++)for(g[it]=ot<<7,Q=0;Q<1<<F[it]-7;Q++)D[256+ot++]=it;for(J=0;J<=R;J++)ut[J]=0;for(Q=0;Q<=143;)B[2*Q+1]=8,Q++,ut[8]++;for(;Q<=255;)B[2*Q+1]=9,Q++,ut[9]++;for(;Q<=279;)B[2*Q+1]=7,Q++,ut[7]++;for(;Q<=287;)B[2*Q+1]=8,Q++,ut[8]++;for(j(B,287,ut),Q=0;Q<x;Q++)$[2*Q+1]=5,$[2*Q]=X(Q,5);v=new y(B,N,257,w,R),m=new y($,F,0,x,R),b=new y(new Array(0),I,0,19,7)}(),rt=!0),Y.l_desc=new k(Y.dyn_ltree,v),Y.d_desc=new k(Y.dyn_dtree,m),Y.bl_desc=new k(Y.bl_tree,b),Y.bi_buf=0,Y.bi_valid=0,V(Y)},f._tr_stored_block=et,f._tr_flush_block=function(Y,Q,J,st){var it,ot,ut=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(ct){var pt,St=4093624447;for(pt=0;pt<=31;pt++,St>>>=1)if(1&St&&ct.dyn_ltree[2*pt]!==0)return 0;if(ct.dyn_ltree[18]!==0||ct.dyn_ltree[20]!==0||ct.dyn_ltree[26]!==0)return 1;for(pt=32;pt<h;pt++)if(ct.dyn_ltree[2*pt]!==0)return 1;return 0}(Y)),Z(Y,Y.l_desc),Z(Y,Y.d_desc),ut=function(ct){var pt;for(W(ct,ct.dyn_ltree,ct.l_desc.max_code),W(ct,ct.dyn_dtree,ct.d_desc.max_code),Z(ct,ct.bl_desc),pt=18;3<=pt&&ct.bl_tree[2*P[pt]+1]===0;pt--);return ct.opt_len+=3*(pt+1)+5+5+4,pt}(Y),it=Y.opt_len+3+7>>>3,(ot=Y.static_len+3+7>>>3)<=it&&(it=ot)):it=ot=J+5,J+4<=it&&Q!==-1?et(Y,Q,J,st):Y.strategy===4||ot===it?(z(Y,2+(st?1:0),3),q(Y,B,$)):(z(Y,4+(st?1:0),3),function(ct,pt,St,xt){var yt;for(z(ct,pt-257,5),z(ct,St-1,5),z(ct,xt-4,4),yt=0;yt<xt;yt++)z(ct,ct.bl_tree[2*P[yt]+1],3);K(ct,ct.dyn_ltree,pt-1),K(ct,ct.dyn_dtree,St-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,ut+1),q(Y,Y.dyn_ltree,Y.dyn_dtree)),V(Y),st&&E(Y)},f._tr_tally=function(Y,Q,J){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=Q>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&Q,Y.pending_buf[Y.l_buf+Y.last_lit]=255&J,Y.last_lit++,Q===0?Y.dyn_ltree[2*J]++:(Y.matches++,Q--,Y.dyn_ltree[2*(S[J]+h+1)]++,Y.dyn_dtree[2*O(Q)]++),Y.last_lit===Y.lit_bufsize-1},f._tr_align=function(Y){z(Y,2,3),U(Y,256,B),function(Q){Q.bi_valid===16?(A(Q,Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0):8<=Q.bi_valid&&(Q.pending_buf[Q.pending++]=255&Q.bi_buf,Q.bi_buf>>=8,Q.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(i,c,f){c.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(i,c,f){(function(u){(function(p,h){if(!p.setImmediate){var w,x,R,N,F=1,I={},P=!1,B=p.document,$=Object.getPrototypeOf&&Object.getPrototypeOf(p);$=$&&$.setTimeout?$:p,w={}.toString.call(p.process)==="[object process]"?function(v){d.nextTick(function(){S(v)})}:function(){if(p.postMessage&&!p.importScripts){var v=!0,m=p.onmessage;return p.onmessage=function(){v=!1},p.postMessage("","*"),p.onmessage=m,v}}()?(N="setImmediate$"+Math.random()+"$",p.addEventListener?p.addEventListener("message",T,!1):p.attachEvent("onmessage",T),function(v){p.postMessage(N+v,"*")}):p.MessageChannel?((R=new MessageChannel).port1.onmessage=function(v){S(v.data)},function(v){R.port2.postMessage(v)}):B&&"onreadystatechange"in B.createElement("script")?(x=B.documentElement,function(v){var m=B.createElement("script");m.onreadystatechange=function(){S(v),m.onreadystatechange=null,x.removeChild(m),m=null},x.appendChild(m)}):function(v){setTimeout(S,0,v)},$.setImmediate=function(v){typeof v!="function"&&(v=new Function(""+v));for(var m=new Array(arguments.length-1),b=0;b<m.length;b++)m[b]=arguments[b+1];var g={callback:v,args:m};return I[F]=g,w(F),F++},$.clearImmediate=D}function D(v){delete I[v]}function S(v){if(P)setTimeout(S,0,v);else{var m=I[v];if(m){P=!0;try{(function(b){var g=b.callback,y=b.args;switch(y.length){case 0:g();break;case 1:g(y[0]);break;case 2:g(y[0],y[1]);break;case 3:g(y[0],y[1],y[2]);break;default:g.apply(void 0,y)}})(m)}finally{D(v),P=!1}}}}function T(v){v.source===p&&typeof v.data=="string"&&v.data.indexOf(N)===0&&S(+v.data.slice(N.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,a!==void 0?a:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,s("_process"),typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{},s("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],s("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(s,C,_){(function(d){(function(){var a=/[\\^$.*+?()[\]{}|]/g,o=RegExp(a.source),r=typeof d=="object"&&d&&d.Object===Object&&d,t=typeof self=="object"&&self&&self.Object===Object&&self,e=r||t||Function("return this")(),l=Object.prototype.toString,n=e.Symbol,i=n?n.prototype:void 0,c=i?i.toString:void 0;function f(u){if(typeof u=="string")return u;if(function(h){return typeof h=="symbol"||function(w){return!!w&&typeof w=="object"}(h)&&l.call(h)=="[object Symbol]"}(u))return c?c.call(u):"";var p=u+"";return p=="0"&&1/u==-1/0?"-0":p}C.exports=function(u){var p;return(u=(p=u)==null?"":f(p))&&o.test(u)?u.replace(a,"\\$&"):u}}).call(this)}).call(this,typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(s,C,_){(function(d){(function(){var a="[object Arguments]",o="[object Map]",r="[object Object]",t="[object Set]",e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,n=/^\./,i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[a]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[o]=p["[object Number]"]=p[r]=p["[object RegExp]"]=p[t]=p["[object String]"]=p["[object WeakMap]"]=!1;var h=typeof d=="object"&&d&&d.Object===Object&&d,w=typeof self=="object"&&self&&self.Object===Object&&self,x=h||w||Function("return this")(),R=typeof _=="object"&&_&&!_.nodeType&&_,N=R&&typeof C=="object"&&C&&!C.nodeType&&C,F=N&&N.exports===R&&h.process,I=function(){try{return F&&F.binding("util")}catch{}}(),P=I&&I.isTypedArray;function B(G,lt,ht,mt){for(var Tt=-1,gt=G?G.length:0;++Tt<gt;){var wt=G[Tt];lt(mt,wt,ht(wt),G)}return mt}function $(G,lt){for(var ht=-1,mt=G?G.length:0;++ht<mt;)if(lt(G[ht],ht,G))return!0;return!1}function D(G){var lt=!1;if(G!=null&&typeof G.toString!="function")try{lt=!!(G+"")}catch{}return lt}function S(G){var lt=-1,ht=Array(G.size);return G.forEach(function(mt,Tt){ht[++lt]=[Tt,mt]}),ht}function T(G){var lt=-1,ht=Array(G.size);return G.forEach(function(mt){ht[++lt]=mt}),ht}var v,m,b,g=Array.prototype,y=Function.prototype,k=Object.prototype,O=x["__core-js_shared__"],A=(v=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+v:"",z=y.toString,U=k.hasOwnProperty,X=k.toString,j=RegExp("^"+z.call(U).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),V=x.Symbol,E=x.Uint8Array,M=k.propertyIsEnumerable,L=g.splice,q=(m=Object.keys,b=Object,function(G){return m(b(G))}),Z=Ft(x,"DataView"),W=Ft(x,"Map"),K=Ft(x,"Promise"),rt=Ft(x,"Set"),et=Ft(x,"WeakMap"),Y=Ft(Object,"create"),Q=at(Z),J=at(W),st=at(K),it=at(rt),ot=at(et),ut=V?V.prototype:void 0,ct=ut?ut.valueOf:void 0,pt=ut?ut.toString:void 0;function St(G){var lt=-1,ht=G?G.length:0;for(this.clear();++lt<ht;){var mt=G[lt];this.set(mt[0],mt[1])}}function xt(G){var lt=-1,ht=G?G.length:0;for(this.clear();++lt<ht;){var mt=G[lt];this.set(mt[0],mt[1])}}function yt(G){var lt=-1,ht=G?G.length:0;for(this.clear();++lt<ht;){var mt=G[lt];this.set(mt[0],mt[1])}}function Ot(G){var lt=-1,ht=G?G.length:0;for(this.__data__=new yt;++lt<ht;)this.add(G[lt])}function At(G){this.__data__=new xt(G)}function Rt(G,lt){var ht=Bt(G)||zt(G)?function(wt,Gt){for(var qt=-1,Xt=Array(wt);++qt<wt;)Xt[qt]=Gt(qt);return Xt}(G.length,String):[],mt=ht.length,Tt=!!mt;for(var gt in G)!U.call(G,gt)||Tt&&(gt=="length"||oe(gt,mt))||ht.push(gt);return ht}function It(G,lt){for(var ht=G.length;ht--;)if(_t(G[ht][0],lt))return ht;return-1}function kt(G,lt,ht,mt){return Ct(G,function(Tt,gt,wt){lt(mt,Tt,ht(Tt),wt)}),mt}St.prototype.clear=function(){this.__data__=Y?Y(null):{}},St.prototype.delete=function(G){return this.has(G)&&delete this.__data__[G]},St.prototype.get=function(G){var lt=this.__data__;if(Y){var ht=lt[G];return ht==="__lodash_hash_undefined__"?void 0:ht}return U.call(lt,G)?lt[G]:void 0},St.prototype.has=function(G){var lt=this.__data__;return Y?lt[G]!==void 0:U.call(lt,G)},St.prototype.set=function(G,lt){return this.__data__[G]=Y&<===void 0?"__lodash_hash_undefined__":lt,this},xt.prototype.clear=function(){this.__data__=[]},xt.prototype.delete=function(G){var lt=this.__data__,ht=It(lt,G);return!(ht<0)&&(ht==lt.length-1?lt.pop():L.call(lt,ht,1),!0)},xt.prototype.get=function(G){var lt=this.__data__,ht=It(lt,G);return ht<0?void 0:lt[ht][1]},xt.prototype.has=function(G){return It(this.__data__,G)>-1},xt.prototype.set=function(G,lt){var ht=this.__data__,mt=It(ht,G);return mt<0?ht.push([G,lt]):ht[mt][1]=lt,this},yt.prototype.clear=function(){this.__data__={hash:new St,map:new(W||xt),string:new St}},yt.prototype.delete=function(G){return ee(this,G).delete(G)},yt.prototype.get=function(G){return ee(this,G).get(G)},yt.prototype.has=function(G){return ee(this,G).has(G)},yt.prototype.set=function(G,lt){return ee(this,G).set(G,lt),this},Ot.prototype.add=Ot.prototype.push=function(G){return this.__data__.set(G,"__lodash_hash_undefined__"),this},Ot.prototype.has=function(G){return this.__data__.has(G)},At.prototype.clear=function(){this.__data__=new xt},At.prototype.delete=function(G){return this.__data__.delete(G)},At.prototype.get=function(G){return this.__data__.get(G)},At.prototype.has=function(G){return this.__data__.has(G)},At.prototype.set=function(G,lt){var ht=this.__data__;if(ht instanceof xt){var mt=ht.__data__;if(!W||mt.length<199)return mt.push([G,lt]),this;ht=this.__data__=new yt(mt)}return ht.set(G,lt),this};var bt,Ct=(bt=function(G,lt){return G&&Et(G,lt,me)},function(G,lt){if(G==null)return G;if(!jt(G))return bt(G,lt);for(var ht=G.length,mt=-1,Tt=Object(G);++mt<ht&<(Tt[mt],mt,Tt)!==!1;);return G}),Et=function(G){return function(lt,ht,mt){for(var Tt=-1,gt=Object(lt),wt=mt(lt),Gt=wt.length;Gt--;){var qt=wt[++Tt];if(ht(gt[qt],qt,gt)===!1)break}return lt}}();function Mt(G,lt){for(var ht=0,mt=(lt=Lt(lt,G)?[lt]:$t(lt)).length;G!=null&&ht<mt;)G=G[tt(lt[ht++])];return ht&&ht==mt?G:void 0}function Kt(G,lt){return G!=null&< in Object(G)}function ne(G,lt,ht,mt,Tt){return G===lt||(G==null||lt==null||!Wt(G)&&!de(lt)?G!=G&<!=lt:function(gt,wt,Gt,qt,Xt,Dt){var ie=Bt(gt),se=Bt(wt),ue="[object Array]",he="[object Array]";ie||(ue=(ue=Jt(gt))==a?r:ue),se||(he=(he=Jt(wt))==a?r:he);var be=ue==r&&!D(gt),ye=he==r&&!D(wt),_e=ue==he;if(_e&&!be)return Dt||(Dt=new At),ie||pe(gt)?ce(gt,wt,Gt,qt,Xt,Dt):function(ae,Qt,Ce,Ae,Fe,we,Se){switch(Ce){case"[object DataView]":if(ae.byteLength!=Qt.byteLength||ae.byteOffset!=Qt.byteOffset)return!1;ae=ae.buffer,Qt=Qt.buffer;case"[object ArrayBuffer]":return!(ae.byteLength!=Qt.byteLength||!Ae(new E(ae),new E(Qt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _t(+ae,+Qt);case"[object Error]":return ae.name==Qt.name&&ae.message==Qt.message;case"[object RegExp]":case"[object String]":return ae==Qt+"";case o:var Me=S;case t:var Be=2&we;if(Me||(Me=T),ae.size!=Qt.size&&!Be)return!1;var Le=Se.get(ae);if(Le)return Le==Qt;we|=1,Se.set(ae,Qt);var Ne=ce(Me(ae),Me(Qt),Ae,Fe,we,Se);return Se.delete(ae),Ne;case"[object Symbol]":if(ct)return ct.call(ae)==ct.call(Qt)}return!1}(gt,wt,ue,Gt,qt,Xt,Dt);if(!(2&Xt)){var Ee=be&&U.call(gt,"__wrapped__"),Oe=ye&&U.call(wt,"__wrapped__");if(Ee||Oe){var je=Ee?gt.value():gt,Ie=Oe?wt.value():wt;return Dt||(Dt=new At),Gt(je,Ie,qt,Xt,Dt)}}return _e?(Dt||(Dt=new At),function(ae,Qt,Ce,Ae,Fe,we){var Se=2&Fe,Me=me(ae),Be=Me.length,Le=me(Qt).length;if(Be!=Le&&!Se)return!1;for(var Ne=Be;Ne--;){var Te=Me[Ne];if(!(Se?Te in Qt:U.call(Qt,Te)))return!1}var Qe=we.get(ae);if(Qe&&we.get(Qt))return Qe==Qt;var ze=!0;we.set(ae,Qt),we.set(Qt,ae);for(var Ye=Se;++Ne<Be;){Te=Me[Ne];var Ue=ae[Te],$e=Qt[Te];if(Ae)var tr=Se?Ae($e,Ue,Te,Qt,ae,we):Ae(Ue,$e,Te,ae,Qt,we);if(!(tr===void 0?Ue===$e||Ce(Ue,$e,Ae,Fe,we):tr)){ze=!1;break}Ye||(Ye=Te=="constructor")}if(ze&&!Ye){var Ve=ae.constructor,He=Qt.constructor;Ve==He||!("constructor"in ae)||!("constructor"in Qt)||typeof Ve=="function"&&Ve instanceof Ve&&typeof He=="function"&&He instanceof He||(ze=!1)}return we.delete(ae),we.delete(Qt),ze}(gt,wt,Gt,qt,Xt,Dt)):!1}(G,lt,ne,ht,mt,Tt))}function Nt(G){return!(!Wt(G)||function(lt){return!!A&&A in lt}(G))&&(Vt(G)||D(G)?j:f).test(at(G))}function te(G){return typeof G=="function"?G:G==null?ve:typeof G=="object"?Bt(G)?function(mt,Tt){return Lt(mt)&&re(Tt)?le(tt(mt),Tt):function(gt){var wt=function(Gt,qt,Xt){var Dt=Gt==null?void 0:Mt(Gt,qt);return Dt===void 0?Xt:Dt}(gt,mt);return wt===void 0&&wt===Tt?function(Gt,qt){return Gt!=null&&function(Xt,Dt,ie){Dt=Lt(Dt,Xt)?[Dt]:$t(Dt);for(var se,ue=-1,he=Dt.length;++ue<he;){var be=tt(Dt[ue]);if(!(se=Xt!=null&&ie(Xt,be)))break;Xt=Xt[be]}return se||!!(he=Xt?Xt.length:0)&&Ut(he)&&oe(be,he)&&(Bt(Xt)||zt(Xt))}(Gt,qt,Kt)}(gt,mt):ne(Tt,wt,void 0,3)}}(G[0],G[1]):function(mt){var Tt=function(gt){for(var wt=me(gt),Gt=wt.length;Gt--;){var qt=wt[Gt],Xt=gt[qt];wt[Gt]=[qt,Xt,re(Xt)]}return wt}(mt);return Tt.length==1&&Tt[0][2]?le(Tt[0][0],Tt[0][1]):function(gt){return gt===mt||function(wt,Gt,qt,Xt){var Dt=qt.length,ie=Dt;if(wt==null)return!ie;for(wt=Object(wt);Dt--;){var se=qt[Dt];if(se[2]?se[1]!==wt[se[0]]:!(se[0]in wt))return!1}for(;++Dt<ie;){var ue=(se=qt[Dt])[0],he=wt[ue],be=se[1];if(se[2]){if(he===void 0&&!(ue in wt))return!1}else{var ye=new At,_e;if(!(_e===void 0?ne(be,he,Xt,3,ye):_e))return!1}}return!0}(gt,mt,Tt)}}(G):Lt(lt=G)?(ht=tt(lt),function(mt){return mt==null?void 0:mt[ht]}):function(mt){return function(Tt){return Mt(Tt,mt)}}(lt);var lt,ht}function Yt(G){if(ht=(lt=G)&<.constructor,mt=typeof ht=="function"&&ht.prototype||k,lt!==mt)return q(G);var lt,ht,mt,Tt=[];for(var gt in Object(G))U.call(G,gt)&>!="constructor"&&Tt.push(gt);return Tt}function $t(G){return Bt(G)?G:Ht(G)}function ce(G,lt,ht,mt,Tt,gt){var wt=2&Tt,Gt=G.length,qt=lt.length;if(Gt!=qt&&!(wt&&qt>Gt))return!1;var Xt=gt.get(G);if(Xt&>.get(lt))return Xt==lt;var Dt=-1,ie=!0,se=1&Tt?new Ot:void 0;for(gt.set(G,lt),gt.set(lt,G);++Dt<Gt;){var ue=G[Dt],he=lt[Dt];if(mt)var be=wt?mt(he,ue,Dt,lt,G,gt):mt(ue,he,Dt,G,lt,gt);if(be!==void 0){if(be)continue;ie=!1;break}if(se){if(!$(lt,function(ye,_e){if(!se.has(_e)&&(ue===ye||ht(ue,ye,mt,Tt,gt)))return se.add(_e)})){ie=!1;break}}else if(ue!==he&&!ht(ue,he,mt,Tt,gt)){ie=!1;break}}return gt.delete(G),gt.delete(lt),ie}function ee(G,lt){var ht,mt,Tt=G.__data__;return((mt=typeof(ht=lt))=="string"||mt=="number"||mt=="symbol"||mt=="boolean"?ht!=="__proto__":ht===null)?Tt[typeof lt=="string"?"string":"hash"]:Tt.map}function Ft(G,lt){var ht=function(mt,Tt){return mt==null?void 0:mt[Tt]}(G,lt);return Nt(ht)?ht:void 0}var Jt=function(G){return X.call(G)};function oe(G,lt){return!!(lt=lt??9007199254740991)&&(typeof G=="number"||u.test(G))&&G>-1&&G%1==0&&G<lt}function Lt(G,lt){if(Bt(G))return!1;var ht=typeof G;return!(ht!="number"&&ht!="symbol"&&ht!="boolean"&&G!=null&&!fe(G))||l.test(G)||!e.test(G)||lt!=null&&G in Object(lt)}function re(G){return G==G&&!Wt(G)}function le(G,lt){return function(ht){return ht!=null&&ht[G]===lt&&(lt!==void 0||G in Object(ht))}}(Z&&Jt(new Z(new ArrayBuffer(1)))!="[object DataView]"||W&&Jt(new W)!=o||K&&Jt(K.resolve())!="[object Promise]"||rt&&Jt(new rt)!=t||et&&Jt(new et)!="[object WeakMap]")&&(Jt=function(G){var lt=X.call(G),ht=lt==r?G.constructor:void 0,mt=ht?at(ht):void 0;if(mt)switch(mt){case Q:return"[object DataView]";case J:return o;case st:return"[object Promise]";case it:return t;case ot:return"[object WeakMap]"}return lt});var Ht=Pt(function(G){var lt;G=(lt=G)==null?"":function(mt){if(typeof mt=="string")return mt;if(fe(mt))return pt?pt.call(mt):"";var Tt=mt+"";return Tt=="0"&&1/mt==-1/0?"-0":Tt}(lt);var ht=[];return n.test(G)&&ht.push(""),G.replace(i,function(mt,Tt,gt,wt){ht.push(gt?wt.replace(c,"$1"):Tt||mt)}),ht});function tt(G){if(typeof G=="string"||fe(G))return G;var lt=G+"";return lt=="0"&&1/G==-1/0?"-0":lt}function at(G){if(G!=null){try{return z.call(G)}catch{}try{return G+""}catch{}}return""}var ft,vt=(ft=function(G,lt,ht){U.call(G,ht)?G[ht].push(lt):G[ht]=[lt]},function(G,lt){var ht=Bt(G)?B:kt,mt={};return ht(G,ft,te(lt),mt)});function Pt(G,lt){if(typeof G!="function"||lt&&typeof lt!="function")throw new TypeError("Expected a function");var ht=function(){var mt=arguments,Tt=lt?lt.apply(this,mt):mt[0],gt=ht.cache;if(gt.has(Tt))return gt.get(Tt);var wt=G.apply(this,mt);return ht.cache=gt.set(Tt,wt),wt};return ht.cache=new(Pt.Cache||yt),ht}function _t(G,lt){return G===lt||G!=G&<!=lt}function zt(G){return function(lt){return de(lt)&&jt(lt)}(G)&&U.call(G,"callee")&&(!M.call(G,"callee")||X.call(G)==a)}Pt.Cache=yt;var Bt=Array.isArray;function jt(G){return G!=null&&Ut(G.length)&&!Vt(G)}function Vt(G){var lt=Wt(G)?X.call(G):"";return lt=="[object Function]"||lt=="[object GeneratorFunction]"}function Ut(G){return typeof G=="number"&&G>-1&&G%1==0&&G<=9007199254740991}function Wt(G){var lt=typeof G;return!!G&&(lt=="object"||lt=="function")}function de(G){return!!G&&typeof G=="object"}function fe(G){return typeof G=="symbol"||de(G)&&X.call(G)=="[object Symbol]"}var pe=P?function(G){return function(lt){return G(lt)}}(P):function(G){return de(G)&&Ut(G.length)&&!!p[X.call(G)]};function me(G){return jt(G)?Rt(G):Yt(G)}function ve(G){return G}C.exports=vt}).call(this)}).call(this,typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(s,C,_){var d=Object.prototype.toString;C.exports=function(a){return a===!0||a===!1||function(o){return!!o&&typeof o=="object"}(a)&&d.call(a)=="[object Boolean]"}},{}],445:[function(s,C,_){(function(d){(function(){var a="[object Arguments]",o="[object Map]",r="[object Object]",t="[object Set]",e=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,n={};n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n[a]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n[o]=n["[object Number]"]=n[r]=n["[object RegExp]"]=n[t]=n["[object String]"]=n["[object WeakMap]"]=!1;var i=typeof d=="object"&&d&&d.Object===Object&&d,c=typeof self=="object"&&self&&self.Object===Object&&self,f=i||c||Function("return this")(),u=typeof _=="object"&&_&&!_.nodeType&&_,p=u&&typeof C=="object"&&C&&!C.nodeType&&C,h=p&&p.exports===u,w=h&&i.process,x=function(){try{return w&&w.binding&&w.binding("util")}catch{}}(),R=x&&x.isTypedArray;function N(tt,at){for(var ft=-1,vt=tt==null?0:tt.length;++ft<vt;)if(at(tt[ft],ft,tt))return!0;return!1}function F(tt){var at=-1,ft=Array(tt.size);return tt.forEach(function(vt,Pt){ft[++at]=[Pt,vt]}),ft}function I(tt){var at=-1,ft=Array(tt.size);return tt.forEach(function(vt){ft[++at]=vt}),ft}var P,B,$,D=Array.prototype,S=Function.prototype,T=Object.prototype,v=f["__core-js_shared__"],m=S.toString,b=T.hasOwnProperty,g=(P=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"",y=T.toString,k=RegExp("^"+m.call(b).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O=h?f.Buffer:void 0,A=f.Symbol,z=f.Uint8Array,U=T.propertyIsEnumerable,X=D.splice,j=A?A.toStringTag:void 0,V=Object.getOwnPropertySymbols,E=O?O.isBuffer:void 0,M=(B=Object.keys,$=Object,function(tt){return B($(tt))}),L=Kt(f,"DataView"),q=Kt(f,"Map"),Z=Kt(f,"Promise"),W=Kt(f,"Set"),K=Kt(f,"WeakMap"),rt=Kt(Object,"create"),et=Yt(L),Y=Yt(q),Q=Yt(Z),J=Yt(W),st=Yt(K),it=A?A.prototype:void 0,ot=it?it.valueOf:void 0;function ut(tt){var at=-1,ft=tt==null?0:tt.length;for(this.clear();++at<ft;){var vt=tt[at];this.set(vt[0],vt[1])}}function ct(tt){var at=-1,ft=tt==null?0:tt.length;for(this.clear();++at<ft;){var vt=tt[at];this.set(vt[0],vt[1])}}function pt(tt){var at=-1,ft=tt==null?0:tt.length;for(this.clear();++at<ft;){var vt=tt[at];this.set(vt[0],vt[1])}}function St(tt){var at=-1,ft=tt==null?0:tt.length;for(this.__data__=new pt;++at<ft;)this.add(tt[at])}function xt(tt){var at=this.__data__=new ct(tt);this.size=at.size}function yt(tt,at){var ft=ee(tt),vt=!ft&&ce(tt),Pt=!ft&&!vt&&Ft(tt),_t=!ft&&!vt&&!Pt&&le(tt),zt=ft||vt||Pt||_t,Bt=zt?function(Ut,Wt){for(var de=-1,fe=Array(Ut);++de<Ut;)fe[de]=Wt(de);return fe}(tt.length,String):[],jt=Bt.length;for(var Vt in tt)!b.call(tt,Vt)||zt&&(Vt=="length"||Pt&&(Vt=="offset"||Vt=="parent")||_t&&(Vt=="buffer"||Vt=="byteLength"||Vt=="byteOffset")||te(Vt,jt))||Bt.push(Vt);return Bt}function Ot(tt,at){for(var ft=tt.length;ft--;)if($t(tt[ft][0],at))return ft;return-1}function At(tt){return tt==null?tt===void 0?"[object Undefined]":"[object Null]":j&&j in Object(tt)?function(at){var ft=b.call(at,j),vt=at[j];try{at[j]=void 0;var Pt=!0}catch{}var _t=y.call(at);return Pt&&(ft?at[j]=vt:delete at[j]),_t}(tt):function(at){return y.call(at)}(tt)}function Rt(tt){return re(tt)&&At(tt)==a}function It(tt,at,ft,vt,Pt){return tt===at||(tt==null||at==null||!re(tt)&&!re(at)?tt!=tt&&at!=at:function(_t,zt,Bt,jt,Vt,Ut){var Wt=ee(_t),de=ee(zt),fe=Wt?"[object Array]":Nt(_t),pe=de?"[object Array]":Nt(zt),me=(fe=fe==a?r:fe)==r,ve=(pe=pe==a?r:pe)==r,G=fe==pe;if(G&&Ft(_t)){if(!Ft(zt))return!1;Wt=!0,me=!1}if(G&&!me)return Ut||(Ut=new xt),Wt||le(_t)?Ct(_t,zt,Bt,jt,Vt,Ut):function(gt,wt,Gt,qt,Xt,Dt,ie){switch(Gt){case"[object DataView]":if(gt.byteLength!=wt.byteLength||gt.byteOffset!=wt.byteOffset)return!1;gt=gt.buffer,wt=wt.buffer;case"[object ArrayBuffer]":return!(gt.byteLength!=wt.byteLength||!Dt(new z(gt),new z(wt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $t(+gt,+wt);case"[object Error]":return gt.name==wt.name&>.message==wt.message;case"[object RegExp]":case"[object String]":return gt==wt+"";case o:var se=F;case t:var ue=1&qt;if(se||(se=I),gt.size!=wt.size&&!ue)return!1;var he=ie.get(gt);if(he)return he==wt;qt|=2,ie.set(gt,wt);var be=Ct(se(gt),se(wt),qt,Xt,Dt,ie);return ie.delete(gt),be;case"[object Symbol]":if(ot)return ot.call(gt)==ot.call(wt)}return!1}(_t,zt,fe,Bt,jt,Vt,Ut);if(!(1&Bt)){var lt=me&&b.call(_t,"__wrapped__"),ht=ve&&b.call(zt,"__wrapped__");if(lt||ht){var mt=lt?_t.value():_t,Tt=ht?zt.value():zt;return Ut||(Ut=new xt),Vt(mt,Tt,Bt,jt,Ut)}}return G?(Ut||(Ut=new xt),function(gt,wt,Gt,qt,Xt,Dt){var ie=1&Gt,se=Et(gt),ue=se.length,he=Et(wt).length;if(ue!=he&&!ie)return!1;for(var be=ue;be--;){var ye=se[be];if(!(ie?ye in wt:b.call(wt,ye)))return!1}var _e=Dt.get(gt);if(_e&&Dt.get(wt))return _e==wt;var Ee=!0;Dt.set(gt,wt),Dt.set(wt,gt);for(var Oe=ie;++be<ue;){ye=se[be];var je=gt[ye],Ie=wt[ye];if(qt)var ae=ie?qt(Ie,je,ye,wt,gt,Dt):qt(je,Ie,ye,gt,wt,Dt);if(!(ae===void 0?je===Ie||Xt(je,Ie,Gt,qt,Dt):ae)){Ee=!1;break}Oe||(Oe=ye=="constructor")}if(Ee&&!Oe){var Qt=gt.constructor,Ce=wt.constructor;Qt==Ce||!("constructor"in gt)||!("constructor"in wt)||typeof Qt=="function"&&Qt instanceof Qt&&typeof Ce=="function"&&Ce instanceof Ce||(Ee=!1)}return Dt.delete(gt),Dt.delete(wt),Ee}(_t,zt,Bt,jt,Vt,Ut)):!1}(tt,at,ft,vt,It,Pt))}function kt(tt){return!(!Lt(tt)||function(at){return!!g&&g in at}(tt))&&(Jt(tt)?k:e).test(Yt(tt))}function bt(tt){if(ft=(at=tt)&&at.constructor,vt=typeof ft=="function"&&ft.prototype||T,at!==vt)return M(tt);var at,ft,vt,Pt=[];for(var _t in Object(tt))b.call(tt,_t)&&_t!="constructor"&&Pt.push(_t);return Pt}function Ct(tt,at,ft,vt,Pt,_t){var zt=1&ft,Bt=tt.length,jt=at.length;if(Bt!=jt&&!(zt&&jt>Bt))return!1;var Vt=_t.get(tt);if(Vt&&_t.get(at))return Vt==at;var Ut=-1,Wt=!0,de=2&ft?new St:void 0;for(_t.set(tt,at),_t.set(at,tt);++Ut<Bt;){var fe=tt[Ut],pe=at[Ut];if(vt)var me=zt?vt(pe,fe,Ut,at,tt,_t):vt(fe,pe,Ut,tt,at,_t);if(me!==void 0){if(me)continue;Wt=!1;break}if(de){if(!N(at,function(ve,G){if(lt=G,!de.has(lt)&&(fe===ve||Pt(fe,ve,ft,vt,_t)))return de.push(G);var lt})){Wt=!1;break}}else if(fe!==pe&&!Pt(fe,pe,ft,vt,_t)){Wt=!1;break}}return _t.delete(tt),_t.delete(at),Wt}function Et(tt){return function(at,ft,vt){var Pt=ft(at);return ee(at)?Pt:function(_t,zt){for(var Bt=-1,jt=zt.length,Vt=_t.length;++Bt<jt;)_t[Vt+Bt]=zt[Bt];return _t}(Pt,vt(at))}(tt,Ht,ne)}function Mt(tt,at){var ft,vt,Pt=tt.__data__;return((vt=typeof(ft=at))=="string"||vt=="number"||vt=="symbol"||vt=="boolean"?ft!=="__proto__":ft===null)?Pt[typeof at=="string"?"string":"hash"]:Pt.map}function Kt(tt,at){var ft=function(vt,Pt){return vt==null?void 0:vt[Pt]}(tt,at);return kt(ft)?ft:void 0}ut.prototype.clear=function(){this.__data__=rt?rt(null):{},this.size=0},ut.prototype.delete=function(tt){var at=this.has(tt)&&delete this.__data__[tt];return this.size-=at?1:0,at},ut.prototype.get=function(tt){var at=this.__data__;if(rt){var ft=at[tt];return ft==="__lodash_hash_undefined__"?void 0:ft}return b.call(at,tt)?at[tt]:void 0},ut.prototype.has=function(tt){var at=this.__data__;return rt?at[tt]!==void 0:b.call(at,tt)},ut.prototype.set=function(tt,at){var ft=this.__data__;return this.size+=this.has(tt)?0:1,ft[tt]=rt&&at===void 0?"__lodash_hash_undefined__":at,this},ct.prototype.clear=function(){this.__data__=[],this.size=0},ct.prototype.delete=function(tt){var at=this.__data__,ft=Ot(at,tt);return!(ft<0)&&(ft==at.length-1?at.pop():X.call(at,ft,1),--this.size,!0)},ct.prototype.get=function(tt){var at=this.__data__,ft=Ot(at,tt);return ft<0?void 0:at[ft][1]},ct.prototype.has=function(tt){return Ot(this.__data__,tt)>-1},ct.prototype.set=function(tt,at){var ft=this.__data__,vt=Ot(ft,tt);return vt<0?(++this.size,ft.push([tt,at])):ft[vt][1]=at,this},pt.prototype.clear=function(){this.size=0,this.__data__={hash:new ut,map:new(q||ct),string:new ut}},pt.prototype.delete=function(tt){var at=Mt(this,tt).delete(tt);return this.size-=at?1:0,at},pt.prototype.get=function(tt){return Mt(this,tt).get(tt)},pt.prototype.has=function(tt){return Mt(this,tt).has(tt)},pt.prototype.set=function(tt,at){var ft=Mt(this,tt),vt=ft.size;return ft.set(tt,at),this.size+=ft.size==vt?0:1,this},St.prototype.add=St.prototype.push=function(tt){return this.__data__.set(tt,"__lodash_hash_undefined__"),this},St.prototype.has=function(tt){return this.__data__.has(tt)},xt.prototype.clear=function(){this.__data__=new ct,this.size=0},xt.prototype.delete=function(tt){var at=this.__data__,ft=at.delete(tt);return this.size=at.size,ft},xt.prototype.get=function(tt){return this.__data__.get(tt)},xt.prototype.has=function(tt){return this.__data__.has(tt)},xt.prototype.set=function(tt,at){var ft=this.__data__;if(ft instanceof ct){var vt=ft.__data__;if(!q||vt.length<199)return vt.push([tt,at]),this.size=++ft.size,this;ft=this.__data__=new pt(vt)}return ft.set(tt,at),this.size=ft.size,this};var ne=V?function(tt){return tt==null?[]:(tt=Object(tt),function(at,ft){for(var vt=-1,Pt=at==null?0:at.length,_t=0,zt=[];++vt<Pt;){var Bt=at[vt];ft(Bt,vt,at)&&(zt[_t++]=Bt)}return zt}(V(tt),function(at){return U.call(tt,at)}))}:function(){return[]},Nt=At;function te(tt,at){return!!(at=at??9007199254740991)&&(typeof tt=="number"||l.test(tt))&&tt>-1&&tt%1==0&&tt<at}function Yt(tt){if(tt!=null){try{return m.call(tt)}catch{}try{return tt+""}catch{}}return""}function $t(tt,at){return tt===at||tt!=tt&&at!=at}(L&&Nt(new L(new ArrayBuffer(1)))!="[object DataView]"||q&&Nt(new q)!=o||Z&&Nt(Z.resolve())!="[object Promise]"||W&&Nt(new W)!=t||K&&Nt(new K)!="[object WeakMap]")&&(Nt=function(tt){var at=At(tt),ft=at==r?tt.constructor:void 0,vt=ft?Yt(ft):"";if(vt)switch(vt){case et:return"[object DataView]";case Y:return o;case Q:return"[object Promise]";case J:return t;case st:return"[object WeakMap]"}return at});var ce=Rt(function(){return arguments}())?Rt:function(tt){return re(tt)&&b.call(tt,"callee")&&!U.call(tt,"callee")},ee=Array.isArray,Ft=E||function(){return!1};function Jt(tt){if(!Lt(tt))return!1;var at=At(tt);return at=="[object Function]"||at=="[object GeneratorFunction]"||at=="[object AsyncFunction]"||at=="[object Proxy]"}function oe(tt){return typeof tt=="number"&&tt>-1&&tt%1==0&&tt<=9007199254740991}function Lt(tt){var at=typeof tt;return tt!=null&&(at=="object"||at=="function")}function re(tt){return tt!=null&&typeof tt=="object"}var le=R?function(tt){return function(at){return tt(at)}}(R):function(tt){return re(tt)&&oe(tt.length)&&!!n[At(tt)]};function Ht(tt){return(at=tt)!=null&&oe(at.length)&&!Jt(at)?yt(tt):bt(tt);var at}C.exports=function(tt,at){return It(tt,at)}}).call(this)}).call(this,typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(s,C,_){(function(d){(function(){var a=typeof d=="object"&&d&&d.Object===Object&&d,o=typeof self=="object"&&self&&self.Object===Object&&self,r=a||o||Function("return this")(),t=Object.prototype,e=t.hasOwnProperty,l=t.toString,n=r.Symbol,i=n?n.toStringTag:void 0;function c(f){return f==null?f===void 0?"[object Undefined]":"[object Null]":i&&i in Object(f)?function(u){var p=e.call(u,i),h=u[i];try{u[i]=void 0;var w=!0}catch{}var x=l.call(u);return w&&(p?u[i]=h:delete u[i]),x}(f):function(u){return l.call(u)}(f)}C.exports=function(f){if(!function(p){var h=typeof p;return p!=null&&(h=="object"||h=="function")}(f))return!1;var u=c(f);return u=="[object Function]"||u=="[object GeneratorFunction]"||u=="[object AsyncFunction]"||u=="[object Proxy]"}}).call(this)}).call(this,typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(s,C,_){C.exports=function(d){return d==null}},{}],448:[function(s,C,_){C.exports=function(d){return d===void 0}},{}],449:[function(s,C,_){(function(d){(function(){var a=/^\[object .+?Constructor\]$/,o=typeof d=="object"&&d&&d.Object===Object&&d,r=typeof self=="object"&&self&&self.Object===Object&&self,t=o||r||Function("return this")();function e(A,z){return!!(A&&A.length)&&function(U,X,j){if(X!=X)return function(M,L,q,Z){for(var W=M.length,K=q+-1;++K<W;)if(L(M[K],K,M))return K;return-1}(U,l,j);for(var V=j-1,E=U.length;++V<E;)if(U[V]===X)return V;return-1}(A,z,0)>-1}function l(A){return A!=A}function n(A,z){return A.has(z)}function i(A){var z=-1,U=Array(A.size);return A.forEach(function(X){U[++z]=X}),U}var c,f=Array.prototype,u=Function.prototype,p=Object.prototype,h=t["__core-js_shared__"],w=(c=/[^.]+$/.exec(h&&h.keys&&h.keys.IE_PROTO||""))?"Symbol(src)_1."+c:"",x=u.toString,R=p.hasOwnProperty,N=p.toString,F=RegExp("^"+x.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=f.splice,P=k(t,"Map"),B=k(t,"Set"),$=k(Object,"create");function D(A){var z=-1,U=A?A.length:0;for(this.clear();++z<U;){var X=A[z];this.set(X[0],X[1])}}function S(A){var z=-1,U=A?A.length:0;for(this.clear();++z<U;){var X=A[z];this.set(X[0],X[1])}}function T(A){var z=-1,U=A?A.length:0;for(this.clear();++z<U;){var X=A[z];this.set(X[0],X[1])}}function v(A){var z=-1,U=A?A.length:0;for(this.__data__=new T;++z<U;)this.add(A[z])}function m(A,z){for(var U,X,j=A.length;j--;)if((U=A[j][0])===(X=z)||U!=U&&X!=X)return j;return-1}function b(A){return!(!O(A)||(z=A,w&&w in z))&&(function(U){var X=O(U)?N.call(U):"";return X=="[object Function]"||X=="[object GeneratorFunction]"}(A)||function(U){var X=!1;if(U!=null&&typeof U.toString!="function")try{X=!!(U+"")}catch{}return X}(A)?F:a).test(function(U){if(U!=null){try{return x.call(U)}catch{}try{return U+""}catch{}}return""}(A));var z}D.prototype.clear=function(){this.__data__=$?$(null):{}},D.prototype.delete=function(A){return this.has(A)&&delete this.__data__[A]},D.prototype.get=function(A){var z=this.__data__;if($){var U=z[A];return U==="__lodash_hash_undefined__"?void 0:U}return R.call(z,A)?z[A]:void 0},D.prototype.has=function(A){var z=this.__data__;return $?z[A]!==void 0:R.call(z,A)},D.prototype.set=function(A,z){return this.__data__[A]=$&&z===void 0?"__lodash_hash_undefined__":z,this},S.prototype.clear=function(){this.__data__=[]},S.prototype.delete=function(A){var z=this.__data__,U=m(z,A);return!(U<0)&&(U==z.length-1?z.pop():I.call(z,U,1),!0)},S.prototype.get=function(A){var z=this.__data__,U=m(z,A);return U<0?void 0:z[U][1]},S.prototype.has=function(A){return m(this.__data__,A)>-1},S.prototype.set=function(A,z){var U=this.__data__,X=m(U,A);return X<0?U.push([A,z]):U[X][1]=z,this},T.prototype.clear=function(){this.__data__={hash:new D,map:new(P||S),string:new D}},T.prototype.delete=function(A){return y(this,A).delete(A)},T.prototype.get=function(A){return y(this,A).get(A)},T.prototype.has=function(A){return y(this,A).has(A)},T.prototype.set=function(A,z){return y(this,A).set(A,z),this},v.prototype.add=v.prototype.push=function(A){return this.__data__.set(A,"__lodash_hash_undefined__"),this},v.prototype.has=function(A){return this.__data__.has(A)};var g=B&&1/i(new B([,-0]))[1]==1/0?function(A){return new B(A)}:function(){};function y(A,z){var U,X,j=A.__data__;return((X=typeof(U=z))=="string"||X=="number"||X=="symbol"||X=="boolean"?U!=="__proto__":U===null)?j[typeof z=="string"?"string":"hash"]:j.map}function k(A,z){var U=function(X,j){return X==null?void 0:X[j]}(A,z);return b(U)?U:void 0}function O(A){var z=typeof A;return!!A&&(z=="object"||z=="function")}C.exports=function(A){return A&&A.length?function(z,U,X){var j=-1,V=e,E=z.length,M=!0,L=[],q=L;if(E>=200){var Z=g(z);if(Z)return i(Z);M=!1,V=n,q=new v}else q=L;t:for(;++j<E;){var W=z[j],K=W;if(W=W!==0?W:0,M&&K==K){for(var rt=q.length;rt--;)if(q[rt]===K)continue t;L.push(W)}else V(q,K,X)||(q!==L&&q.push(K),L.push(W))}return L}(A):[]}}).call(this)}).call(this,typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(s,C,_){var d=s("inherits"),a=s("hash-base"),o=s("safe-buffer").Buffer,r=new Array(16);function t(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function e(f,u){return f<<u|f>>>32-u}function l(f,u,p,h,w,x,R){return e(f+(u&p|~u&h)+w+x|0,R)+u|0}function n(f,u,p,h,w,x,R){return e(f+(u&h|p&~h)+w+x|0,R)+u|0}function i(f,u,p,h,w,x,R){return e(f+(u^p^h)+w+x|0,R)+u|0}function c(f,u,p,h,w,x,R){return e(f+(p^(u|~h))+w+x|0,R)+u|0}d(t,a),t.prototype._update=function(){for(var f=r,u=0;u<16;++u)f[u]=this._block.readInt32LE(4*u);var p=this._a,h=this._b,w=this._c,x=this._d;p=l(p,h,w,x,f[0],3614090360,7),x=l(x,p,h,w,f[1],3905402710,12),w=l(w,x,p,h,f[2],606105819,17),h=l(h,w,x,p,f[3],3250441966,22),p=l(p,h,w,x,f[4],4118548399,7),x=l(x,p,h,w,f[5],1200080426,12),w=l(w,x,p,h,f[6],2821735955,17),h=l(h,w,x,p,f[7],4249261313,22),p=l(p,h,w,x,f[8],1770035416,7),x=l(x,p,h,w,f[9],2336552879,12),w=l(w,x,p,h,f[10],4294925233,17),h=l(h,w,x,p,f[11],2304563134,22),p=l(p,h,w,x,f[12],1804603682,7),x=l(x,p,h,w,f[13],4254626195,12),w=l(w,x,p,h,f[14],2792965006,17),p=n(p,h=l(h,w,x,p,f[15],1236535329,22),w,x,f[1],4129170786,5),x=n(x,p,h,w,f[6],3225465664,9),w=n(w,x,p,h,f[11],643717713,14),h=n(h,w,x,p,f[0],3921069994,20),p=n(p,h,w,x,f[5],3593408605,5),x=n(x,p,h,w,f[10],38016083,9),w=n(w,x,p,h,f[15],3634488961,14),h=n(h,w,x,p,f[4],3889429448,20),p=n(p,h,w,x,f[9],568446438,5),x=n(x,p,h,w,f[14],3275163606,9),w=n(w,x,p,h,f[3],4107603335,14),h=n(h,w,x,p,f[8],1163531501,20),p=n(p,h,w,x,f[13],2850285829,5),x=n(x,p,h,w,f[2],4243563512,9),w=n(w,x,p,h,f[7],1735328473,14),p=i(p,h=n(h,w,x,p,f[12],2368359562,20),w,x,f[5],4294588738,4),x=i(x,p,h,w,f[8],2272392833,11),w=i(w,x,p,h,f[11],1839030562,16),h=i(h,w,x,p,f[14],4259657740,23),p=i(p,h,w,x,f[1],2763975236,4),x=i(x,p,h,w,f[4],1272893353,11),w=i(w,x,p,h,f[7],4139469664,16),h=i(h,w,x,p,f[10],3200236656,23),p=i(p,h,w,x,f[13],681279174,4),x=i(x,p,h,w,f[0],3936430074,11),w=i(w,x,p,h,f[3],3572445317,16),h=i(h,w,x,p,f[6],76029189,23),p=i(p,h,w,x,f[9],3654602809,4),x=i(x,p,h,w,f[12],3873151461,11),w=i(w,x,p,h,f[15],530742520,16),p=c(p,h=i(h,w,x,p,f[2],3299628645,23),w,x,f[0],4096336452,6),x=c(x,p,h,w,f[7],1126891415,10),w=c(w,x,p,h,f[14],2878612391,15),h=c(h,w,x,p,f[5],4237533241,21),p=c(p,h,w,x,f[12],1700485571,6),x=c(x,p,h,w,f[3],2399980690,10),w=c(w,x,p,h,f[10],4293915773,15),h=c(h,w,x,p,f[1],2240044497,21),p=c(p,h,w,x,f[8],1873313359,6),x=c(x,p,h,w,f[15],4264355552,10),w=c(w,x,p,h,f[6],2734768916,15),h=c(h,w,x,p,f[13],1309151649,21),p=c(p,h,w,x,f[4],4149444226,6),x=c(x,p,h,w,f[11],3174756917,10),w=c(w,x,p,h,f[2],718787259,15),h=c(h,w,x,p,f[9],3951481745,21),this._a=this._a+p|0,this._b=this._b+h|0,this._c=this._c+w|0,this._d=this._d+x|0},t.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 f=o.allocUnsafe(16);return f.writeInt32LE(this._a,0),f.writeInt32LE(this._b,4),f.writeInt32LE(this._c,8),f.writeInt32LE(this._d,12),f},C.exports=t},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(s,C,_){var d=s("bn.js"),a=s("brorand");function o(r){this.rand=r||new a.Rand}C.exports=o,o.create=function(r){return new o(r)},o.prototype._randbelow=function(r){var t=r.bitLength(),e=Math.ceil(t/8);do var l=new d(this.rand.generate(e));while(l.cmp(r)>=0);return l},o.prototype._randrange=function(r,t){var e=t.sub(r);return r.add(this._randbelow(e))},o.prototype.test=function(r,t,e){var l=r.bitLength(),n=d.mont(r),i=new d(1).toRed(n);t||(t=Math.max(1,l/48|0));for(var c=r.subn(1),f=0;!c.testn(f);f++);for(var u=r.shrn(f),p=c.toRed(n);t>0;t--){var h=this._randrange(new d(2),c);e&&e(h);var w=h.toRed(n).redPow(u);if(w.cmp(i)!==0&&w.cmp(p)!==0){for(var x=1;x<f;x++){if((w=w.redSqr()).cmp(i)===0)return!1;if(w.cmp(p)===0)break}if(x===f)return!1}}return!0},o.prototype.getDivisor=function(r,t){var e=r.bitLength(),l=d.mont(r),n=new d(1).toRed(l);t||(t=Math.max(1,e/48|0));for(var i=r.subn(1),c=0;!i.testn(c);c++);for(var f=r.shrn(c),u=i.toRed(l);t>0;t--){var p=this._randrange(new d(2),i),h=r.gcd(p);if(h.cmpn(1)!==0)return h;var w=p.toRed(l).redPow(f);if(w.cmp(n)!==0&&w.cmp(u)!==0){for(var x=1;x<c;x++){if((w=w.redSqr()).cmp(n)===0)return w.fromRed().subn(1).gcd(r);if(w.cmp(u)===0)break}if(x===c)return(w=w.redSqr()).fromRed().subn(1).gcd(r)}}return!1}},{"bn.js":452,brorand:187}],452:[function(s,C,_){arguments[4][184][0].apply(_,arguments)},{buffer:188,dup:184}],453:[function(s,C,_){function d(a,o){if(!a)throw new Error(o||"Assertion failed")}C.exports=d,d.equal=function(a,o,r){if(a!=o)throw new Error(r||"Assertion failed: "+a+" != "+o)}},{}],454:[function(s,C,_){var d=_;function a(r){return r.length===1?"0"+r:r}function o(r){for(var t="",e=0;e<r.length;e++)t+=a(r[e].toString(16));return t}d.toArray=function(r,t){if(Array.isArray(r))return r.slice();if(!r)return[];var e=[];if(typeof r!="string"){for(var l=0;l<r.length;l++)e[l]=0|r[l];return e}if(t==="hex")for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),l=0;l<r.length;l+=2)e.push(parseInt(r[l]+r[l+1],16));else for(l=0;l<r.length;l++){var n=r.charCodeAt(l),i=n>>8,c=255&n;i?e.push(i,c):e.push(c)}return e},d.zero2=a,d.toHex=o,d.encode=function(r,t){return t==="hex"?o(r):r}},{}],455:[function(s,C,_){C.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(s,C,_){var d=s("asn1.js");_.certificate=s("./certificate");var a=d.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())});_.RSAPrivateKey=a;var o=d.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});_.RSAPublicKey=o;var r=d.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(t),this.key("subjectPublicKey").bitstr())});_.PublicKey=r;var t=d.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())}),e=d.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(t),this.key("subjectPrivateKey").octstr())});_.PrivateKey=e;var l=d.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())});_.EncryptedPrivateKey=l;var n=d.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())});_.DSAPrivateKey=n,_.DSAparam=d.define("DSAparam",function(){this.int()});var i=d.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(c),this.key("publicKey").optional().explicit(1).bitstr())});_.ECPrivateKey=i;var c=d.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});_.signature=d.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(s,C,_){var d=s("asn1.js"),a=d.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=d.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),r=d.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),t=d.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(r),this.key("subjectPublicKey").bitstr())}),e=d.define("RelativeDistinguishedName",function(){this.setof(o)}),l=d.define("RDNSequence",function(){this.seqof(e)}),n=d.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),i=d.define("Validity",function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))}),c=d.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=d.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(r),this.key("issuer").use(n),this.key("validity").use(i),this.key("subject").use(n),this.key("subjectPublicKeyInfo").use(t),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(c).optional())}),u=d.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(r),this.key("signatureValue").bitstr())});C.exports=u},{"asn1.js":170}],458:[function(s,C,_){var d=/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,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,r=s("evp_bytestokey"),t=s("browserify-aes"),e=s("safe-buffer").Buffer;C.exports=function(l,n){var i,c=l.toString(),f=c.match(d);if(f){var u="aes"+f[1],p=e.from(f[2],"hex"),h=e.from(f[3].replace(/[\r\n]/g,""),"base64"),w=r(n,p.slice(0,8),parseInt(f[1],10)).key,x=[],R=t.createDecipheriv(u,w,p);x.push(R.update(h)),x.push(R.final()),i=e.concat(x)}else{var N=c.match(o);i=e.from(N[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(a)[1],data:i}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(s,C,_){var d=s("./asn1"),a=s("./aesid.json"),o=s("./fixProc"),r=s("browserify-aes"),t=s("pbkdf2"),e=s("safe-buffer").Buffer;function l(n){var i;typeof n!="object"||e.isBuffer(n)||(i=n.passphrase,n=n.key),typeof n=="string"&&(n=e.from(n));var c,f,u=o(n,i),p=u.tag,h=u.data;switch(p){case"CERTIFICATE":f=d.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=d.PublicKey.decode(h,"der")),c=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return d.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=d.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+c)}case"ENCRYPTED PRIVATE KEY":h=function(w,x){var R=w.algorithm.decrypt.kde.kdeparams.salt,N=parseInt(w.algorithm.decrypt.kde.kdeparams.iters.toString(),10),F=a[w.algorithm.decrypt.cipher.algo.join(".")],I=w.algorithm.decrypt.cipher.iv,P=w.subjectPrivateKey,B=parseInt(F.split("-")[1],10)/8,$=t.pbkdf2Sync(x,R,N,B,"sha1"),D=r.createDecipheriv(F,$,I),S=[];return S.push(D.update(P)),S.push(D.final()),e.concat(S)}(h=d.EncryptedPrivateKey.decode(h,"der"),i);case"PRIVATE KEY":switch(c=(f=d.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return d.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:d.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=d.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+c)}case"RSA PUBLIC KEY":return d.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return d.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:d.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=d.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+p)}}C.exports=l,l.signature=d.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(s,C,_){_.pbkdf2=s("./lib/async"),_.pbkdf2Sync=s("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(s,C,_){(function(d){(function(){var a,o,r=s("safe-buffer").Buffer,t=s("./precondition"),e=s("./default-encoding"),l=s("./sync"),n=s("./to-buffer"),i=d.crypto&&d.crypto.subtle,c={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"},f=[];function u(){return o||(o=d.process&&d.process.nextTick?d.process.nextTick:d.queueMicrotask?d.queueMicrotask:d.setImmediate?d.setImmediate:d.setTimeout)}function p(h,w,x,R,N){return i.importKey("raw",h,{name:"PBKDF2"},!1,["deriveBits"]).then(function(F){return i.deriveBits({name:"PBKDF2",salt:w,iterations:x,hash:{name:N}},F,R<<3)}).then(function(F){return r.from(F)})}C.exports=function(h,w,x,R,N,F){typeof N=="function"&&(F=N,N=void 0);var I=c[(N=N||"sha1").toLowerCase()];if(I&&typeof d.Promise=="function"){if(t(x,R),h=n(h,e,"Password"),w=n(w,e,"Salt"),typeof F!="function")throw new Error("No callback provided to pbkdf2");(function(P,B){P.then(function($){u()(function(){B(null,$)})},function($){u()(function(){B($)})})})(function(P){if(d.process&&!d.process.browser||!i||!i.importKey||!i.deriveBits)return Promise.resolve(!1);if(f[P]!==void 0)return f[P];var B=p(a=a||r.alloc(8),a,10,128,P).then(function(){return!0}).catch(function(){return!1});return f[P]=B,B}(I).then(function(P){return P?p(h,w,x,R,I):l(h,w,x,R,N)}),F)}else u()(function(){var P;try{P=l(h,w,x,R,N)}catch(B){return F(B)}F(null,P)})}}).call(this)}).call(this,typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(s,C,_){(function(d,a){(function(){var o;a.process&&a.process.browser?o="utf-8":a.process&&a.process.version?o=parseInt(d.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":o="utf-8",C.exports=o}).call(this)}).call(this,s("_process"),typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(s,C,_){var d=Math.pow(2,30)-1;C.exports=function(a,o){if(typeof a!="number")throw new TypeError("Iterations not a number");if(a<0)throw new TypeError("Bad iterations");if(typeof o!="number")throw new TypeError("Key length not a number");if(o<0||o>d||o!=o)throw new TypeError("Bad key length")}},{}],464:[function(s,C,_){var d=s("create-hash/md5"),a=s("ripemd160"),o=s("sha.js"),r=s("safe-buffer").Buffer,t=s("./precondition"),e=s("./default-encoding"),l=s("./to-buffer"),n=r.alloc(128),i={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function c(f,u,p){var h=function(I){function P(B){return o(I).update(B).digest()}return I==="rmd160"||I==="ripemd160"?function(B){return new a().update(B).digest()}:I==="md5"?d:P}(f),w=f==="sha512"||f==="sha384"?128:64;u.length>w?u=h(u):u.length<w&&(u=r.concat([u,n],w));for(var x=r.allocUnsafe(w+i[f]),R=r.allocUnsafe(w+i[f]),N=0;N<w;N++)x[N]=54^u[N],R[N]=92^u[N];var F=r.allocUnsafe(w+p+4);x.copy(F,0,0,w),this.ipad1=F,this.ipad2=x,this.opad=R,this.alg=f,this.blocksize=w,this.hash=h,this.size=i[f]}c.prototype.run=function(f,u){return f.copy(u,this.blocksize),this.hash(u).copy(this.opad,this.blocksize),this.hash(this.opad)},C.exports=function(f,u,p,h,w){t(p,h);var x=new c(w=w||"sha1",f=l(f,e,"Password"),(u=l(u,e,"Salt")).length),R=r.allocUnsafe(h),N=r.allocUnsafe(u.length+4);u.copy(N,0,0,u.length);for(var F=0,I=i[w],P=Math.ceil(h/I),B=1;B<=P;B++){N.writeUInt32BE(B,u.length);for(var $=x.run(N,x.ipad1),D=$,S=1;S<p;S++){D=x.run(D,x.ipad2);for(var T=0;T<I;T++)$[T]^=D[T]}$.copy(R,F),F+=I}return R}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(s,C,_){var d=s("safe-buffer").Buffer;C.exports=function(a,o,r){if(d.isBuffer(a))return a;if(typeof a=="string")return d.from(a,o);if(ArrayBuffer.isView(a))return d.from(a.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(s,C,_){(function(d){(function(){d===void 0||!d.version||d.version.indexOf("v0.")===0||d.version.indexOf("v1.")===0&&d.version.indexOf("v1.8.")!==0?C.exports={nextTick:function(a,o,r,t){if(typeof a!="function")throw new TypeError('"callback" argument must be a function');var e,l,n=arguments.length;switch(n){case 0:case 1:return d.nextTick(a);case 2:return d.nextTick(function(){a.call(null,o)});case 3:return d.nextTick(function(){a.call(null,o,r)});case 4:return d.nextTick(function(){a.call(null,o,r,t)});default:for(e=new Array(n-1),l=0;l<e.length;)e[l++]=arguments[l];return d.nextTick(function(){a.apply(null,e)})}}}:C.exports=d}).call(this)}).call(this,s("_process"))},{_process:467}],467:[function(s,C,_){var d,a,o=C.exports={};function r(){throw new Error("setTimeout has not been defined")}function t(){throw new Error("clearTimeout has not been defined")}function e(w){if(d===setTimeout)return setTimeout(w,0);if((d===r||!d)&&setTimeout)return d=setTimeout,setTimeout(w,0);try{return d(w,0)}catch{try{return d.call(null,w,0)}catch{return d.call(this,w,0)}}}(function(){try{d=typeof setTimeout=="function"?setTimeout:r}catch{d=r}try{a=typeof clearTimeout=="function"?clearTimeout:t}catch{a=t}})();var l,n=[],i=!1,c=-1;function f(){i&&l&&(i=!1,l.length?n=l.concat(n):c=-1,n.length&&u())}function u(){if(!i){var w=e(f);i=!0;for(var x=n.length;x;){for(l=n,n=[];++c<x;)l&&l[c].run();c=-1,x=n.length}l=null,i=!1,function(R){if(a===clearTimeout)return clearTimeout(R);if((a===t||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(R);try{a(R)}catch{try{return a.call(null,R)}catch{return a.call(this,R)}}}(w)}}function p(w,x){this.fun=w,this.array=x}function h(){}o.nextTick=function(w){var x=new Array(arguments.length-1);if(arguments.length>1)for(var R=1;R<arguments.length;R++)x[R-1]=arguments[R];n.push(new p(w,x)),n.length!==1||i||e(u)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(w){return[]},o.binding=function(w){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(w){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],468:[function(s,C,_){_.publicEncrypt=s("./publicEncrypt"),_.privateDecrypt=s("./privateDecrypt"),_.privateEncrypt=function(d,a){return _.publicEncrypt(d,a,!0)},_.publicDecrypt=function(d,a){return _.privateDecrypt(d,a,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(s,C,_){var d=s("create-hash"),a=s("safe-buffer").Buffer;function o(r){var t=a.allocUnsafe(4);return t.writeUInt32BE(r,0),t}C.exports=function(r,t){for(var e,l=a.alloc(0),n=0;l.length<t;)e=o(n++),l=a.concat([l,d("sha1").update(r).update(e).digest()]);return l.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(s,C,_){arguments[4][184][0].apply(_,arguments)},{buffer:188,dup:184}],471:[function(s,C,_){var d=s("parse-asn1"),a=s("./mgf"),o=s("./xor"),r=s("bn.js"),t=s("browserify-rsa"),e=s("create-hash"),l=s("./withPublic"),n=s("safe-buffer").Buffer;C.exports=function(i,c,f){var u;u=i.padding?i.padding:f?1:4;var p,h=d(i),w=h.modulus.byteLength();if(c.length>w||new r(c).cmp(h.modulus)>=0)throw new Error("decryption error");p=f?l(new r(c),h):t(c,h);var x=n.alloc(w-p.length);if(p=n.concat([x,p],w),u===4)return function(R,N){var F=R.modulus.byteLength(),I=e("sha1").update(n.alloc(0)).digest(),P=I.length;if(N[0]!==0)throw new Error("decryption error");var B=N.slice(1,P+1),$=N.slice(P+1),D=o(B,a($,P)),S=o($,a(D,F-P-1));if(function(v,m){v=n.from(v),m=n.from(m);var b=0,g=v.length;v.length!==m.length&&(b++,g=Math.min(v.length,m.length));for(var y=-1;++y<g;)b+=v[y]^m[y];return b}(I,S.slice(0,P)))throw new Error("decryption error");for(var T=P;S[T]===0;)T++;if(S[T++]!==1)throw new Error("decryption error");return S.slice(T)}(h,p);if(u===1)return function(R,N,F){for(var I=N.slice(0,2),P=2,B=0;N[P++]!==0;)if(P>=N.length){B++;break}var $=N.slice(2,P-1);if((I.toString("hex")!=="0002"&&!F||I.toString("hex")!=="0001"&&F)&&B++,$.length<8&&B++,B)throw new Error("decryption error");return N.slice(P)}(0,p,f);if(u===3)return p;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(s,C,_){var d=s("parse-asn1"),a=s("randombytes"),o=s("create-hash"),r=s("./mgf"),t=s("./xor"),e=s("bn.js"),l=s("./withPublic"),n=s("browserify-rsa"),i=s("safe-buffer").Buffer;C.exports=function(c,f,u){var p;p=c.padding?c.padding:u?1:4;var h,w=d(c);if(p===4)h=function(x,R){var N=x.modulus.byteLength(),F=R.length,I=o("sha1").update(i.alloc(0)).digest(),P=I.length,B=2*P;if(F>N-B-2)throw new Error("message too long");var $=i.alloc(N-F-B-2),D=N-P-1,S=a(P),T=t(i.concat([I,$,i.alloc(1,1),R],D),r(S,D)),v=t(S,r(T,P));return new e(i.concat([i.alloc(1),v,T],N))}(w,f);else if(p===1)h=function(x,R,N){var F,I=R.length,P=x.modulus.byteLength();if(I>P-11)throw new Error("message too long");return F=N?i.alloc(P-I-3,255):function(B){for(var $,D=i.allocUnsafe(B),S=0,T=a(2*B),v=0;S<B;)v===T.length&&(T=a(2*B),v=0),($=T[v++])&&(D[S++]=$);return D}(P-I-3),new e(i.concat([i.from([0,N?1:2]),F,i.alloc(1),R],P))}(w,f,u);else{if(p!==3)throw new Error("unknown padding");if((h=new e(f)).cmp(w.modulus)>=0)throw new Error("data too long for modulus")}return u?n(h,w):l(h,w)}},{"./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(s,C,_){var d=s("bn.js"),a=s("safe-buffer").Buffer;C.exports=function(o,r){return a.from(o.toRed(d.mont(r.modulus)).redPow(new d(r.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(s,C,_){C.exports=function(d,a){for(var o=d.length,r=-1;++r<o;)d[r]^=a[r];return d}},{}],475:[function(s,C,_){(function(d,a){(function(){var o=s("safe-buffer").Buffer,r=a.crypto||a.msCrypto;r&&r.getRandomValues?C.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var l=o.allocUnsafe(t);if(t>0)if(t>65536)for(var n=0;n<t;n+=65536)r.getRandomValues(l.slice(n,n+65536));else r.getRandomValues(l);return typeof e=="function"?d.nextTick(function(){e(null,l)}):l}:C.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
21
|
-
Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,s("_process"),typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(s,C,_){(function(d,a){(function(){function o(){throw new Error(`secure random number generation not supported by this browser
|
|
22
|
-
use chrome, FireFox or Internet Explorer 11`)}var r=s("safe-buffer"),t=s("randombytes"),e=r.Buffer,l=r.kMaxLength,n=a.crypto||a.msCrypto,i=Math.pow(2,32)-1;function c(p,h){if(typeof p!="number"||p!=p)throw new TypeError("offset must be a number");if(p>i||p<0)throw new TypeError("offset must be a uint32");if(p>l||p>h)throw new RangeError("offset out of range")}function f(p,h,w){if(typeof p!="number"||p!=p)throw new TypeError("size must be a number");if(p>i||p<0)throw new TypeError("size must be a uint32");if(p+h>w||p>l)throw new RangeError("buffer too small")}function u(p,h,w,x){if(d.browser){var R=p.buffer,N=new Uint8Array(R,h,w);return n.getRandomValues(N),x?void d.nextTick(function(){x(null,p)}):p}if(!x)return t(w).copy(p,h),p;t(w,function(F,I){if(F)return x(F);I.copy(p,h),x(null,p)})}n&&n.getRandomValues||!d.browser?(_.randomFill=function(p,h,w,x){if(!(e.isBuffer(p)||p instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof h=="function")x=h,h=0,w=p.length;else if(typeof w=="function")x=w,w=p.length-h;else if(typeof x!="function")throw new TypeError('"cb" argument must be a function');return c(h,p.length),f(w,h,p.length),u(p,h,w,x)},_.randomFillSync=function(p,h,w){if(h===void 0&&(h=0),!(e.isBuffer(p)||p instanceof a.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return c(h,p.length),w===void 0&&(w=p.length-h),f(w,h,p.length),u(p,h,w)}):(_.randomFill=o,_.randomFillSync=o)}).call(this)}).call(this,s("_process"),typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(s,C,_){var d={};function a(r,t,e){e||(e=Error);var l=function(n){var i,c;function f(u,p,h){return n.call(this,function(w,x,R){return typeof t=="string"?t:t(w,x,R)}(u,p,h))||this}return c=n,(i=f).prototype=Object.create(c.prototype),i.prototype.constructor=i,i.__proto__=c,f}(e);l.prototype.name=e.name,l.prototype.code=r,d[r]=l}function o(r,t){if(Array.isArray(r)){var e=r.length;return r=r.map(function(l){return String(l)}),e>2?"one of ".concat(t," ").concat(r.slice(0,e-1).join(", "),", or ")+r[e-1]:e===2?"one of ".concat(t," ").concat(r[0]," or ").concat(r[1]):"of ".concat(t," ").concat(r[0])}return"of ".concat(t," ").concat(String(r))}a("ERR_INVALID_OPT_VALUE",function(r,t){return'The value "'+t+'" is invalid for option "'+r+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(r,t,e){var l,n,i;if(typeof t=="string"&&(n="not ",t.substr(0,n.length)===n)?(l="must not be",t=t.replace(/^not /,"")):l="must be",function(f,u,p){return p=f.length,f.substring(p-u.length,p)===u}(r," argument"))i="The ".concat(r," ").concat(l," ").concat(o(t,"type"));else{var c=function(f,u,p){return typeof p!="number"&&(p=0),!(p+u.length>f.length)&&f.indexOf(u,p)!==-1}(r,".")?"property":"argument";i='The "'.concat(r,'" ').concat(c," ").concat(l," ").concat(o(t,"type"))}return i+=". Received type ".concat(typeof e)},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),C.exports.codes=d},{}],478:[function(s,C,_){(function(d){(function(){var a=Object.keys||function(f){var u=[];for(var p in f)u.push(p);return u};C.exports=n;var o=s("./_stream_readable"),r=s("./_stream_writable");s("inherits")(n,o);for(var t=a(r.prototype),e=0;e<t.length;e++){var l=t[e];n.prototype[l]||(n.prototype[l]=r.prototype[l])}function n(f){if(!(this instanceof n))return new n(f);o.call(this,f),r.call(this,f),this.allowHalfOpen=!0,f&&(f.readable===!1&&(this.readable=!1),f.writable===!1&&(this.writable=!1),f.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",i)))}function i(){this._writableState.ended||d.nextTick(c,this)}function c(f){f.end()}Object.defineProperty(n.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(n.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(n.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(n.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(f){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=f,this._writableState.destroyed=f)}})}).call(this)}).call(this,s("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(s,C,_){C.exports=a;var d=s("./_stream_transform");function a(o){if(!(this instanceof a))return new a(o);d.call(this,o)}s("inherits")(a,d),a.prototype._transform=function(o,r,t){t(null,o)}},{"./_stream_transform":481,inherits:440}],480:[function(s,C,_){(function(d,a){(function(){var o;C.exports=D,D.ReadableState=$,s("events").EventEmitter;var r=function(E,M){return E.listeners(M).length},t=s("./internal/streams/stream"),e=s("buffer").Buffer,l=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},n,i=s("util");n=i&&i.debuglog?i.debuglog("stream"):function(){};var c,f,u,p=s("./internal/streams/buffer_list"),h=s("./internal/streams/destroy"),w=s("./internal/streams/state").getHighWaterMark,x=s("../errors").codes,R=x.ERR_INVALID_ARG_TYPE,N=x.ERR_STREAM_PUSH_AFTER_EOF,F=x.ERR_METHOD_NOT_IMPLEMENTED,I=x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;s("inherits")(D,t);var P=h.errorOrDestroy,B=["error","close","destroy","pause","resume"];function $(E,M,L){o=o||s("./_stream_duplex"),E=E||{},typeof L!="boolean"&&(L=M instanceof o),this.objectMode=!!E.objectMode,L&&(this.objectMode=this.objectMode||!!E.readableObjectMode),this.highWaterMark=w(this,E,"readableHighWaterMark",L),this.buffer=new p,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=E.emitClose!==!1,this.autoDestroy=!!E.autoDestroy,this.destroyed=!1,this.defaultEncoding=E.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,E.encoding&&(c||(c=s("string_decoder/").StringDecoder),this.decoder=new c(E.encoding),this.encoding=E.encoding)}function D(E){if(o=o||s("./_stream_duplex"),!(this instanceof D))return new D(E);var M=this instanceof o;this._readableState=new $(E,this,M),this.readable=!0,E&&(typeof E.read=="function"&&(this._read=E.read),typeof E.destroy=="function"&&(this._destroy=E.destroy)),t.call(this)}function S(E,M,L,q,Z){n("readableAddChunk",M);var W,K=E._readableState;if(M===null)K.reading=!1,function(rt,et){if(n("onEofChunk"),!et.ended){if(et.decoder){var Y=et.decoder.end();Y&&Y.length&&(et.buffer.push(Y),et.length+=et.objectMode?1:Y.length)}et.ended=!0,et.sync?m(rt):(et.needReadable=!1,et.emittedReadable||(et.emittedReadable=!0,b(rt)))}}(E,K);else if(Z||(W=function(rt,et){var Y;Q=et,e.isBuffer(Q)||Q instanceof l||typeof et=="string"||et===void 0||rt.objectMode||(Y=new R("chunk",["string","Buffer","Uint8Array"],et));var Q;return Y}(K,M)),W)P(E,W);else if(K.objectMode||M&&M.length>0)if(typeof M=="string"||K.objectMode||Object.getPrototypeOf(M)===e.prototype||(M=function(rt){return e.from(rt)}(M)),q)K.endEmitted?P(E,new I):T(E,K,M,!0);else if(K.ended)P(E,new N);else{if(K.destroyed)return!1;K.reading=!1,K.decoder&&!L?(M=K.decoder.write(M),K.objectMode||M.length!==0?T(E,K,M,!1):g(E,K)):T(E,K,M,!1)}else q||(K.reading=!1,g(E,K));return!K.ended&&(K.length<K.highWaterMark||K.length===0)}function T(E,M,L,q){M.flowing&&M.length===0&&!M.sync?(M.awaitDrain=0,E.emit("data",L)):(M.length+=M.objectMode?1:L.length,q?M.buffer.unshift(L):M.buffer.push(L),M.needReadable&&m(E)),g(E,M)}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(E){this._readableState&&(this._readableState.destroyed=E)}}),D.prototype.destroy=h.destroy,D.prototype._undestroy=h.undestroy,D.prototype._destroy=function(E,M){M(E)},D.prototype.push=function(E,M){var L,q=this._readableState;return q.objectMode?L=!0:typeof E=="string"&&((M=M||q.defaultEncoding)!==q.encoding&&(E=e.from(E,M),M=""),L=!0),S(this,E,M,!1,L)},D.prototype.unshift=function(E){return S(this,E,null,!0,!1)},D.prototype.isPaused=function(){return this._readableState.flowing===!1},D.prototype.setEncoding=function(E){c||(c=s("string_decoder/").StringDecoder);var M=new c(E);this._readableState.decoder=M,this._readableState.encoding=this._readableState.decoder.encoding;for(var L=this._readableState.buffer.head,q="";L!==null;)q+=M.write(L.data),L=L.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};function v(E,M){return E<=0||M.length===0&&M.ended?0:M.objectMode?1:E!=E?M.flowing&&M.length?M.buffer.head.data.length:M.length:(E>M.highWaterMark&&(M.highWaterMark=function(L){return L>=1073741824?L=1073741824:(L--,L|=L>>>1,L|=L>>>2,L|=L>>>4,L|=L>>>8,L|=L>>>16,L++),L}(E)),E<=M.length?E:M.ended?M.length:(M.needReadable=!0,0))}function m(E){var M=E._readableState;n("emitReadable",M.needReadable,M.emittedReadable),M.needReadable=!1,M.emittedReadable||(n("emitReadable",M.flowing),M.emittedReadable=!0,d.nextTick(b,E))}function b(E){var M=E._readableState;n("emitReadable_",M.destroyed,M.length,M.ended),M.destroyed||!M.length&&!M.ended||(E.emit("readable"),M.emittedReadable=!1),M.needReadable=!M.flowing&&!M.ended&&M.length<=M.highWaterMark,z(E)}function g(E,M){M.readingMore||(M.readingMore=!0,d.nextTick(y,E,M))}function y(E,M){for(;!M.reading&&!M.ended&&(M.length<M.highWaterMark||M.flowing&&M.length===0);){var L=M.length;if(n("maybeReadMore read 0"),E.read(0),L===M.length)break}M.readingMore=!1}function k(E){var M=E._readableState;M.readableListening=E.listenerCount("readable")>0,M.resumeScheduled&&!M.paused?M.flowing=!0:E.listenerCount("data")>0&&E.resume()}function O(E){n("readable nexttick read 0"),E.read(0)}function A(E,M){n("resume",M.reading),M.reading||E.read(0),M.resumeScheduled=!1,E.emit("resume"),z(E),M.flowing&&!M.reading&&E.read(0)}function z(E){var M=E._readableState;for(n("flow",M.flowing);M.flowing&&E.read()!==null;);}function U(E,M){return M.length===0?null:(M.objectMode?L=M.buffer.shift():!E||E>=M.length?(L=M.decoder?M.buffer.join(""):M.buffer.length===1?M.buffer.first():M.buffer.concat(M.length),M.buffer.clear()):L=M.buffer.consume(E,M.decoder),L);var L}function X(E){var M=E._readableState;n("endReadable",M.endEmitted),M.endEmitted||(M.ended=!0,d.nextTick(j,M,E))}function j(E,M){if(n("endReadableNT",E.endEmitted,E.length),!E.endEmitted&&E.length===0&&(E.endEmitted=!0,M.readable=!1,M.emit("end"),E.autoDestroy)){var L=M._writableState;(!L||L.autoDestroy&&L.finished)&&M.destroy()}}function V(E,M){for(var L=0,q=E.length;L<q;L++)if(E[L]===M)return L;return-1}D.prototype.read=function(E){n("read",E),E=parseInt(E,10);var M=this._readableState,L=E;if(E!==0&&(M.emittedReadable=!1),E===0&&M.needReadable&&((M.highWaterMark!==0?M.length>=M.highWaterMark:M.length>0)||M.ended))return n("read: emitReadable",M.length,M.ended),M.length===0&&M.ended?X(this):m(this),null;if((E=v(E,M))===0&&M.ended)return M.length===0&&X(this),null;var q,Z=M.needReadable;return n("need readable",Z),(M.length===0||M.length-E<M.highWaterMark)&&n("length less than watermark",Z=!0),M.ended||M.reading?n("reading or ended",Z=!1):Z&&(n("do read"),M.reading=!0,M.sync=!0,M.length===0&&(M.needReadable=!0),this._read(M.highWaterMark),M.sync=!1,M.reading||(E=v(L,M))),(q=E>0?U(E,M):null)===null?(M.needReadable=M.length<=M.highWaterMark,E=0):(M.length-=E,M.awaitDrain=0),M.length===0&&(M.ended||(M.needReadable=!0),L!==E&&M.ended&&X(this)),q!==null&&this.emit("data",q),q},D.prototype._read=function(E){P(this,new F("_read()"))},D.prototype.pipe=function(E,M){var L=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=E;break;case 1:q.pipes=[q.pipes,E];break;default:q.pipes.push(E)}q.pipesCount+=1,n("pipe count=%d opts=%j",q.pipesCount,M);var Z=(!M||M.end!==!1)&&E!==d.stdout&&E!==d.stderr?K:it;function W(ot,ut){n("onunpipe"),ot===L&&ut&&ut.hasUnpiped===!1&&(ut.hasUnpiped=!0,n("cleanup"),E.removeListener("close",J),E.removeListener("finish",st),E.removeListener("drain",rt),E.removeListener("error",Q),E.removeListener("unpipe",W),L.removeListener("end",K),L.removeListener("end",it),L.removeListener("data",Y),et=!0,!q.awaitDrain||E._writableState&&!E._writableState.needDrain||rt())}function K(){n("onend"),E.end()}q.endEmitted?d.nextTick(Z):L.once("end",Z),E.on("unpipe",W);var rt=function(ot){return function(){var ut=ot._readableState;n("pipeOnDrain",ut.awaitDrain),ut.awaitDrain&&ut.awaitDrain--,ut.awaitDrain===0&&r(ot,"data")&&(ut.flowing=!0,z(ot))}}(L);E.on("drain",rt);var et=!1;function Y(ot){n("ondata");var ut=E.write(ot);n("dest.write",ut),ut===!1&&((q.pipesCount===1&&q.pipes===E||q.pipesCount>1&&V(q.pipes,E)!==-1)&&!et&&(n("false write response, pause",q.awaitDrain),q.awaitDrain++),L.pause())}function Q(ot){n("onerror",ot),it(),E.removeListener("error",Q),r(E,"error")===0&&P(E,ot)}function J(){E.removeListener("finish",st),it()}function st(){n("onfinish"),E.removeListener("close",J),it()}function it(){n("unpipe"),L.unpipe(E)}return L.on("data",Y),function(ot,ut,ct){if(typeof ot.prependListener=="function")return ot.prependListener(ut,ct);ot._events&&ot._events[ut]?Array.isArray(ot._events[ut])?ot._events[ut].unshift(ct):ot._events[ut]=[ct,ot._events[ut]]:ot.on(ut,ct)}(E,"error",Q),E.once("close",J),E.once("finish",st),E.emit("pipe",L),q.flowing||(n("pipe resume"),L.resume()),E},D.prototype.unpipe=function(E){var M=this._readableState,L={hasUnpiped:!1};if(M.pipesCount===0)return this;if(M.pipesCount===1)return E&&E!==M.pipes||(E||(E=M.pipes),M.pipes=null,M.pipesCount=0,M.flowing=!1,E&&E.emit("unpipe",this,L)),this;if(!E){var q=M.pipes,Z=M.pipesCount;M.pipes=null,M.pipesCount=0,M.flowing=!1;for(var W=0;W<Z;W++)q[W].emit("unpipe",this,{hasUnpiped:!1});return this}var K=V(M.pipes,E);return K===-1||(M.pipes.splice(K,1),M.pipesCount-=1,M.pipesCount===1&&(M.pipes=M.pipes[0]),E.emit("unpipe",this,L)),this},D.prototype.on=function(E,M){var L=t.prototype.on.call(this,E,M),q=this._readableState;return E==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):E==="readable"&&(q.endEmitted||q.readableListening||(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,n("on readable",q.length,q.reading),q.length?m(this):q.reading||d.nextTick(O,this))),L},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(E,M){var L=t.prototype.removeListener.call(this,E,M);return E==="readable"&&d.nextTick(k,this),L},D.prototype.removeAllListeners=function(E){var M=t.prototype.removeAllListeners.apply(this,arguments);return E!=="readable"&&E!==void 0||d.nextTick(k,this),M},D.prototype.resume=function(){var E=this._readableState;return E.flowing||(n("resume"),E.flowing=!E.readableListening,function(M,L){L.resumeScheduled||(L.resumeScheduled=!0,d.nextTick(A,M,L))}(this,E)),E.paused=!1,this},D.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(E){var M=this,L=this._readableState,q=!1;for(var Z in E.on("end",function(){if(n("wrapped end"),L.decoder&&!L.ended){var K=L.decoder.end();K&&K.length&&M.push(K)}M.push(null)}),E.on("data",function(K){n("wrapped data"),L.decoder&&(K=L.decoder.write(K)),L.objectMode&&K==null||(L.objectMode||K&&K.length)&&(M.push(K)||(q=!0,E.pause()))}),E)this[Z]===void 0&&typeof E[Z]=="function"&&(this[Z]=function(K){return function(){return E[K].apply(E,arguments)}}(Z));for(var W=0;W<B.length;W++)E.on(B[W],this.emit.bind(this,B[W]));return this._read=function(K){n("wrapped _read",K),q&&(q=!1,E.resume())},this},typeof Symbol=="function"&&(D.prototype[Symbol.asyncIterator]=function(){return f===void 0&&(f=s("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(D.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(D.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(E){this._readableState&&(this._readableState.flowing=E)}}),D._fromList=U,Object.defineProperty(D.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(D.from=function(E,M){return u===void 0&&(u=s("./internal/streams/from")),u(D,E,M)})}).call(this)}).call(this,s("_process"),typeof Zt<"u"?Zt: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(s,C,_){C.exports=n;var d=s("../errors").codes,a=d.ERR_METHOD_NOT_IMPLEMENTED,o=d.ERR_MULTIPLE_CALLBACK,r=d.ERR_TRANSFORM_ALREADY_TRANSFORMING,t=d.ERR_TRANSFORM_WITH_LENGTH_0,e=s("./_stream_duplex");function l(f,u){var p=this._transformState;p.transforming=!1;var h=p.writecb;if(h===null)return this.emit("error",new o);p.writechunk=null,p.writecb=null,u!=null&&this.push(u),h(f);var w=this._readableState;w.reading=!1,(w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}function n(f){if(!(this instanceof n))return new n(f);e.call(this,f),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",i)}function i(){var f=this;typeof this._flush!="function"||this._readableState.destroyed?c(this,null,null):this._flush(function(u,p){c(f,u,p)})}function c(f,u,p){if(u)return f.emit("error",u);if(p!=null&&f.push(p),f._writableState.length)throw new t;if(f._transformState.transforming)throw new r;return f.push(null)}s("inherits")(n,e),n.prototype.push=function(f,u){return this._transformState.needTransform=!1,e.prototype.push.call(this,f,u)},n.prototype._transform=function(f,u,p){p(new a("_transform()"))},n.prototype._write=function(f,u,p){var h=this._transformState;if(h.writecb=p,h.writechunk=f,h.writeencoding=u,!h.transforming){var w=this._readableState;(h.needTransform||w.needReadable||w.length<w.highWaterMark)&&this._read(w.highWaterMark)}},n.prototype._read=function(f){var u=this._transformState;u.writechunk===null||u.transforming?u.needTransform=!0:(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform))},n.prototype._destroy=function(f,u){e.prototype._destroy.call(this,f,function(p){u(p)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(s,C,_){(function(d,a){(function(){function o(y){var k=this;this.next=null,this.entry=null,this.finish=function(){(function(O,A,z){var U=O.entry;for(O.entry=null;U;){var X=U.callback;A.pendingcb--,X(z),U=U.next}A.corkedRequestsFree.next=O})(k,y)}}var r;C.exports=D,D.WritableState=$;var t={deprecate:s("util-deprecate")},e=s("./internal/streams/stream"),l=s("buffer").Buffer,n=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},i,c=s("./internal/streams/destroy"),f=s("./internal/streams/state").getHighWaterMark,u=s("../errors").codes,p=u.ERR_INVALID_ARG_TYPE,h=u.ERR_METHOD_NOT_IMPLEMENTED,w=u.ERR_MULTIPLE_CALLBACK,x=u.ERR_STREAM_CANNOT_PIPE,R=u.ERR_STREAM_DESTROYED,N=u.ERR_STREAM_NULL_VALUES,F=u.ERR_STREAM_WRITE_AFTER_END,I=u.ERR_UNKNOWN_ENCODING,P=c.errorOrDestroy;function B(){}function $(y,k,O){r=r||s("./_stream_duplex"),y=y||{},typeof O!="boolean"&&(O=k instanceof r),this.objectMode=!!y.objectMode,O&&(this.objectMode=this.objectMode||!!y.writableObjectMode),this.highWaterMark=f(this,y,"writableHighWaterMark",O),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var A=y.decodeStrings===!1;this.decodeStrings=!A,this.defaultEncoding=y.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(z){(function(U,X){var j=U._writableState,V=j.sync,E=j.writecb;if(typeof E!="function")throw new w;if(function(L){L.writing=!1,L.writecb=null,L.length-=L.writelen,L.writelen=0}(j),X)(function(L,q,Z,W,K){--q.pendingcb,Z?(d.nextTick(K,W),d.nextTick(g,L,q),L._writableState.errorEmitted=!0,P(L,W)):(K(W),L._writableState.errorEmitted=!0,P(L,W),g(L,q))})(U,j,V,X,E);else{var M=m(j)||U.destroyed;M||j.corked||j.bufferProcessing||!j.bufferedRequest||v(U,j),V?d.nextTick(T,U,j,M,E):T(U,j,M,E)}})(k,z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=y.emitClose!==!1,this.autoDestroy=!!y.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function D(y){var k=this instanceof(r=r||s("./_stream_duplex"));if(!k&&!i.call(D,this))return new D(y);this._writableState=new $(y,this,k),this.writable=!0,y&&(typeof y.write=="function"&&(this._write=y.write),typeof y.writev=="function"&&(this._writev=y.writev),typeof y.destroy=="function"&&(this._destroy=y.destroy),typeof y.final=="function"&&(this._final=y.final)),e.call(this)}function S(y,k,O,A,z,U,X){k.writelen=A,k.writecb=X,k.writing=!0,k.sync=!0,k.destroyed?k.onwrite(new R("write")):O?y._writev(z,k.onwrite):y._write(z,U,k.onwrite),k.sync=!1}function T(y,k,O,A){O||function(z,U){U.length===0&&U.needDrain&&(U.needDrain=!1,z.emit("drain"))}(y,k),k.pendingcb--,A(),g(y,k)}function v(y,k){k.bufferProcessing=!0;var O=k.bufferedRequest;if(y._writev&&O&&O.next){var A=k.bufferedRequestCount,z=new Array(A),U=k.corkedRequestsFree;U.entry=O;for(var X=0,j=!0;O;)z[X]=O,O.isBuf||(j=!1),O=O.next,X+=1;z.allBuffers=j,S(y,k,!0,k.length,z,"",U.finish),k.pendingcb++,k.lastBufferedRequest=null,U.next?(k.corkedRequestsFree=U.next,U.next=null):k.corkedRequestsFree=new o(k),k.bufferedRequestCount=0}else{for(;O;){var V=O.chunk,E=O.encoding,M=O.callback;if(S(y,k,!1,k.objectMode?1:V.length,V,E,M),O=O.next,k.bufferedRequestCount--,k.writing)break}O===null&&(k.lastBufferedRequest=null)}k.bufferedRequest=O,k.bufferProcessing=!1}function m(y){return y.ending&&y.length===0&&y.bufferedRequest===null&&!y.finished&&!y.writing}function b(y,k){y._final(function(O){k.pendingcb--,O&&P(y,O),k.prefinished=!0,y.emit("prefinish"),g(y,k)})}function g(y,k){var O=m(k);if(O&&(function(z,U){U.prefinished||U.finalCalled||(typeof z._final!="function"||U.destroyed?(U.prefinished=!0,z.emit("prefinish")):(U.pendingcb++,U.finalCalled=!0,d.nextTick(b,z,U)))}(y,k),k.pendingcb===0&&(k.finished=!0,y.emit("finish"),k.autoDestroy))){var A=y._readableState;(!A||A.autoDestroy&&A.endEmitted)&&y.destroy()}return O}s("inherits")(D,e),$.prototype.getBuffer=function(){for(var y=this.bufferedRequest,k=[];y;)k.push(y),y=y.next;return k},function(){try{Object.defineProperty($.prototype,"buffer",{get:t.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(y){return!!i.call(this,y)||this===D&&y&&y._writableState instanceof $}})):i=function(y){return y instanceof this},D.prototype.pipe=function(){P(this,new x)},D.prototype.write=function(y,k,O){var A,z=this._writableState,U=!1,X=!z.objectMode&&(A=y,l.isBuffer(A)||A instanceof n);return X&&!l.isBuffer(y)&&(y=function(j){return l.from(j)}(y)),typeof k=="function"&&(O=k,k=null),X?k="buffer":k||(k=z.defaultEncoding),typeof O!="function"&&(O=B),z.ending?function(j,V){var E=new F;P(j,E),d.nextTick(V,E)}(this,O):(X||function(j,V,E,M){var L;return E===null?L=new N:typeof E=="string"||V.objectMode||(L=new p("chunk",["string","Buffer"],E)),!L||(P(j,L),d.nextTick(M,L),!1)}(this,z,y,O))&&(z.pendingcb++,U=function(j,V,E,M,L,q){if(!E){var Z=function(et,Y,Q){return et.objectMode||et.decodeStrings===!1||typeof Y!="string"||(Y=l.from(Y,Q)),Y}(V,M,L);M!==Z&&(E=!0,L="buffer",M=Z)}var W=V.objectMode?1:M.length;V.length+=W;var K=V.length<V.highWaterMark;if(K||(V.needDrain=!0),V.writing||V.corked){var rt=V.lastBufferedRequest;V.lastBufferedRequest={chunk:M,encoding:L,isBuf:E,callback:q,next:null},rt?rt.next=V.lastBufferedRequest:V.bufferedRequest=V.lastBufferedRequest,V.bufferedRequestCount+=1}else S(j,V,!1,W,M,L,q);return K}(this,z,X,y,k,O)),U},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){var y=this._writableState;y.corked&&(y.corked--,y.writing||y.corked||y.bufferProcessing||!y.bufferedRequest||v(this,y))},D.prototype.setDefaultEncoding=function(y){if(typeof y=="string"&&(y=y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((y+"").toLowerCase())>-1))throw new I(y);return this._writableState.defaultEncoding=y,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(y,k,O){O(new h("_write()"))},D.prototype._writev=null,D.prototype.end=function(y,k,O){var A=this._writableState;return typeof y=="function"?(O=y,y=null,k=null):typeof k=="function"&&(O=k,k=null),y!=null&&this.write(y,k),A.corked&&(A.corked=1,this.uncork()),A.ending||function(z,U,X){U.ending=!0,g(z,U),X&&(U.finished?d.nextTick(X):z.once("finish",X)),U.ended=!0,z.writable=!1}(this,A,O),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(y){this._writableState&&(this._writableState.destroyed=y)}}),D.prototype.destroy=c.destroy,D.prototype._undestroy=c.undestroy,D.prototype._destroy=function(y,k){k(y)}}).call(this)}).call(this,s("_process"),typeof Zt<"u"?Zt: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(s,C,_){(function(d){(function(){var a;function o(R,N,F){return(N=function(I){var P=function(B,$){if(typeof B!="object"||B===null)return B;var D=B[Symbol.toPrimitive];if(D!==void 0){var S=D.call(B,$);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(B)}(I,"string");return typeof P=="symbol"?P:String(P)}(N))in R?Object.defineProperty(R,N,{value:F,enumerable:!0,configurable:!0,writable:!0}):R[N]=F,R}var r=s("./end-of-stream"),t=Symbol("lastResolve"),e=Symbol("lastReject"),l=Symbol("error"),n=Symbol("ended"),i=Symbol("lastPromise"),c=Symbol("handlePromise"),f=Symbol("stream");function u(R,N){return{value:R,done:N}}function p(R){var N=R[t];if(N!==null){var F=R[f].read();F!==null&&(R[i]=null,R[t]=null,R[e]=null,N(u(F,!1)))}}function h(R){d.nextTick(p,R)}var w=Object.getPrototypeOf(function(){}),x=Object.setPrototypeOf((o(a={get stream(){return this[f]},next:function(){var R=this,N=this[l];if(N!==null)return Promise.reject(N);if(this[n])return Promise.resolve(u(void 0,!0));if(this[f].destroyed)return new Promise(function(B,$){d.nextTick(function(){R[l]?$(R[l]):B(u(void 0,!0))})});var F,I=this[i];if(I)F=new Promise(function(B,$){return function(D,S){B.then(function(){$[n]?D(u(void 0,!0)):$[c](D,S)},S)}}(I,this));else{var P=this[f].read();if(P!==null)return Promise.resolve(u(P,!1));F=new Promise(this[c])}return this[i]=F,F}},Symbol.asyncIterator,function(){return this}),o(a,"return",function(){var R=this;return new Promise(function(N,F){R[f].destroy(null,function(I){I?F(I):N(u(void 0,!0))})})}),a),w);C.exports=function(R){var N,F=Object.create(x,(o(N={},f,{value:R,writable:!0}),o(N,t,{value:null,writable:!0}),o(N,e,{value:null,writable:!0}),o(N,l,{value:null,writable:!0}),o(N,n,{value:R._readableState.endEmitted,writable:!0}),o(N,c,{value:function(I,P){var B=F[f].read();B?(F[i]=null,F[t]=null,F[e]=null,I(u(B,!1))):(F[t]=I,F[e]=P)},writable:!0}),N));return F[i]=null,r(R,function(I){if(I&&I.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=F[e];return P!==null&&(F[i]=null,F[t]=null,F[e]=null,P(I)),void(F[l]=I)}var B=F[t];B!==null&&(F[i]=null,F[t]=null,F[e]=null,B(u(void 0,!0))),F[n]=!0}),R.on("readable",h.bind(null,F)),F}}).call(this)}).call(this,s("_process"))},{"./end-of-stream":486,_process:467}],484:[function(s,C,_){function d(i,c){var f=Object.keys(i);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);c&&(u=u.filter(function(p){return Object.getOwnPropertyDescriptor(i,p).enumerable})),f.push.apply(f,u)}return f}function a(i){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?d(Object(f),!0).forEach(function(u){o(i,u,f[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(f)):d(Object(f)).forEach(function(u){Object.defineProperty(i,u,Object.getOwnPropertyDescriptor(f,u))})}return i}function o(i,c,f){return(c=t(c))in i?Object.defineProperty(i,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):i[c]=f,i}function r(i,c){for(var f=0;f<c.length;f++){var u=c[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(i,t(u.key),u)}}function t(i){var c=function(f,u){if(typeof f!="object"||f===null)return f;var p=f[Symbol.toPrimitive];if(p!==void 0){var h=p.call(f,u);if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(f)}(i,"string");return typeof c=="symbol"?c:String(c)}var e=s("buffer").Buffer,l=s("util").inspect,n=l&&l.custom||"inspect";C.exports=function(){function i(){(function(u,p){if(!(u instanceof p))throw new TypeError("Cannot call a class as a function")})(this,i),this.head=null,this.tail=null,this.length=0}var c,f;return c=i,(f=[{key:"push",value:function(u){var p={data:u,next:null};this.length>0?this.tail.next=p:this.head=p,this.tail=p,++this.length}},{key:"unshift",value:function(u){var p={data:u,next:this.head};this.length===0&&(this.tail=p),this.head=p,++this.length}},{key:"shift",value:function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(u){if(this.length===0)return"";for(var p=this.head,h=""+p.data;p=p.next;)h+=u+p.data;return h}},{key:"concat",value:function(u){if(this.length===0)return e.alloc(0);for(var p,h,w,x=e.allocUnsafe(u>>>0),R=this.head,N=0;R;)p=R.data,h=x,w=N,e.prototype.copy.call(p,h,w),N+=R.data.length,R=R.next;return x}},{key:"consume",value:function(u,p){var h;return u<this.head.data.length?(h=this.head.data.slice(0,u),this.head.data=this.head.data.slice(u)):h=u===this.head.data.length?this.shift():p?this._getString(u):this._getBuffer(u),h}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(u){var p=this.head,h=1,w=p.data;for(u-=w.length;p=p.next;){var x=p.data,R=u>x.length?x.length:u;if(R===x.length?w+=x:w+=x.slice(0,u),(u-=R)==0){R===x.length?(++h,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=x.slice(R));break}++h}return this.length-=h,w}},{key:"_getBuffer",value:function(u){var p=e.allocUnsafe(u),h=this.head,w=1;for(h.data.copy(p),u-=h.data.length;h=h.next;){var x=h.data,R=u>x.length?x.length:u;if(x.copy(p,p.length-u,0,R),(u-=R)==0){R===x.length?(++w,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=x.slice(R));break}++w}return this.length-=w,p}},{key:n,value:function(u,p){return l(this,a(a({},p),{},{depth:0,customInspect:!1}))}}])&&r(c.prototype,f),Object.defineProperty(c,"prototype",{writable:!1}),i}()},{buffer:220,util:188}],485:[function(s,C,_){(function(d){(function(){function a(t,e){r(t,e),o(t)}function o(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function r(t,e){t.emit("error",e)}C.exports={destroy:function(t,e){var l=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(r,this,t)):d.nextTick(r,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(c){!e&&c?l._writableState?l._writableState.errorEmitted?d.nextTick(o,l):(l._writableState.errorEmitted=!0,d.nextTick(a,l,c)):d.nextTick(a,l,c):e?(d.nextTick(o,l),e(c)):d.nextTick(o,l)}),this)},undestroy:function(){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)},errorOrDestroy:function(t,e){var l=t._readableState,n=t._writableState;l&&l.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this)}).call(this,s("_process"))},{_process:467}],486:[function(s,C,_){var d=s("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}C.exports=function o(r,t,e){if(typeof t=="function")return o(r,null,t);t||(t={}),e=function(R){var N=!1;return function(){if(!N){N=!0;for(var F=arguments.length,I=new Array(F),P=0;P<F;P++)I[P]=arguments[P];R.apply(this,I)}}}(e||a);var l=t.readable||t.readable!==!1&&r.readable,n=t.writable||t.writable!==!1&&r.writable,i=function(){r.writable||f()},c=r._writableState&&r._writableState.finished,f=function(){n=!1,c=!0,l||e.call(r)},u=r._readableState&&r._readableState.endEmitted,p=function(){l=!1,u=!0,n||e.call(r)},h=function(R){e.call(r,R)},w=function(){var R;return l&&!u?(r._readableState&&r._readableState.ended||(R=new d),e.call(r,R)):n&&!c?(r._writableState&&r._writableState.ended||(R=new d),e.call(r,R)):void 0},x=function(){r.req.on("finish",f)};return function(R){return R.setHeader&&typeof R.abort=="function"}(r)?(r.on("complete",f),r.on("abort",w),r.req?x():r.on("request",x)):n&&!r._writableState&&(r.on("end",i),r.on("close",i)),r.on("end",p),r.on("finish",f),t.error!==!1&&r.on("error",h),r.on("close",w),function(){r.removeListener("complete",f),r.removeListener("abort",w),r.removeListener("request",x),r.req&&r.req.removeListener("finish",f),r.removeListener("end",i),r.removeListener("close",i),r.removeListener("finish",f),r.removeListener("end",p),r.removeListener("error",h),r.removeListener("close",w)}}},{"../../../errors":477}],487:[function(s,C,_){C.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(s,C,_){var d,a=s("../../../errors").codes,o=a.ERR_MISSING_ARGS,r=a.ERR_STREAM_DESTROYED;function t(c){if(c)throw c}function e(c,f,u,p){p=function(x){var R=!1;return function(){R||(R=!0,x.apply(void 0,arguments))}}(p);var h=!1;c.on("close",function(){h=!0}),d===void 0&&(d=s("./end-of-stream")),d(c,{readable:f,writable:u},function(x){if(x)return p(x);h=!0,p()});var w=!1;return function(x){if(!h&&!w)return w=!0,function(R){return R.setHeader&&typeof R.abort=="function"}(c)?c.abort():typeof c.destroy=="function"?c.destroy():void p(x||new r("pipe"))}}function l(c){c()}function n(c,f){return c.pipe(f)}function i(c){return c.length?typeof c[c.length-1]!="function"?t:c.pop():t}C.exports=function(){for(var c=arguments.length,f=new Array(c),u=0;u<c;u++)f[u]=arguments[u];var p,h=i(f);if(Array.isArray(f[0])&&(f=f[0]),f.length<2)throw new o("streams");var w=f.map(function(x,R){var N=R<f.length-1;return e(x,N,R>0,function(F){p||(p=F),F&&w.forEach(l),N||(w.forEach(l),h(p))})});return f.reduce(n)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(s,C,_){var d=s("../../../errors").codes.ERR_INVALID_OPT_VALUE;C.exports={getHighWaterMark:function(a,o,r,t){var e=function(l,n,i){return l.highWaterMark!=null?l.highWaterMark:n?l[i]:null}(o,t,r);if(e!=null){if(!isFinite(e)||Math.floor(e)!==e||e<0)throw new d(t?r:"highWaterMark",e);return Math.floor(e)}return a.objectMode?16:16384}}},{"../../../errors":477}],490:[function(s,C,_){C.exports=s("events").EventEmitter},{events:422}],491:[function(s,C,_){(_=C.exports=s("./lib/_stream_readable.js")).Stream=_,_.Readable=_,_.Writable=s("./lib/_stream_writable.js"),_.Duplex=s("./lib/_stream_duplex.js"),_.Transform=s("./lib/_stream_transform.js"),_.PassThrough=s("./lib/_stream_passthrough.js"),_.finished=s("./lib/internal/streams/end-of-stream.js"),_.pipeline=s("./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(s,C,_){var d=function(a){var o=Object.prototype,r=o.hasOwnProperty,t=Object.defineProperty||function(g,y,k){g[y]=k.value},e=typeof Symbol=="function"?Symbol:{},l=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function c(g,y,k){return Object.defineProperty(g,y,{value:k,enumerable:!0,configurable:!0,writable:!0}),g[y]}try{c({},"")}catch{c=function(y,k,O){return y[k]=O}}function f(g,y,k,O){var A=y&&y.prototype instanceof h?y:h,z=Object.create(A.prototype),U=new v(O||[]);return t(z,"_invoke",{value:$(g,k,U)}),z}function u(g,y,k){try{return{type:"normal",arg:g.call(y,k)}}catch(O){return{type:"throw",arg:O}}}a.wrap=f;var p={};function h(){}function w(){}function x(){}var R={};c(R,l,function(){return this});var N=Object.getPrototypeOf,F=N&&N(N(m([])));F&&F!==o&&r.call(F,l)&&(R=F);var I=x.prototype=h.prototype=Object.create(R);function P(g){["next","throw","return"].forEach(function(y){c(g,y,function(k){return this._invoke(y,k)})})}function B(g,y){var k;t(this,"_invoke",{value:function(O,A){function z(){return new y(function(U,X){(function j(V,E,M,L){var q=u(g[V],g,E);if(q.type!=="throw"){var Z=q.arg,W=Z.value;return W&&typeof W=="object"&&r.call(W,"__await")?y.resolve(W.__await).then(function(K){j("next",K,M,L)},function(K){j("throw",K,M,L)}):y.resolve(W).then(function(K){Z.value=K,M(Z)},function(K){return j("throw",K,M,L)})}L(q.arg)})(O,A,U,X)})}return k=k?k.then(z,z):z()}})}function $(g,y,k){var O="suspendedStart";return function(A,z){if(O==="executing")throw new Error("Generator is already running");if(O==="completed"){if(A==="throw")throw z;return b()}for(k.method=A,k.arg=z;;){var U=k.delegate;if(U){var X=D(U,k);if(X){if(X===p)continue;return X}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(O==="suspendedStart")throw O="completed",k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);O="executing";var j=u(g,y,k);if(j.type==="normal"){if(O=k.done?"completed":"suspendedYield",j.arg===p)continue;return{value:j.arg,done:k.done}}j.type==="throw"&&(O="completed",k.method="throw",k.arg=j.arg)}}}function D(g,y){var k=y.method,O=g.iterator[k];if(O===void 0)return y.delegate=null,k==="throw"&&g.iterator.return&&(y.method="return",y.arg=void 0,D(g,y),y.method==="throw")||k!=="return"&&(y.method="throw",y.arg=new TypeError("The iterator does not provide a '"+k+"' method")),p;var A=u(O,g.iterator,y.arg);if(A.type==="throw")return y.method="throw",y.arg=A.arg,y.delegate=null,p;var z=A.arg;return z?z.done?(y[g.resultName]=z.value,y.next=g.nextLoc,y.method!=="return"&&(y.method="next",y.arg=void 0),y.delegate=null,p):z:(y.method="throw",y.arg=new TypeError("iterator result is not an object"),y.delegate=null,p)}function S(g){var y={tryLoc:g[0]};1 in g&&(y.catchLoc=g[1]),2 in g&&(y.finallyLoc=g[2],y.afterLoc=g[3]),this.tryEntries.push(y)}function T(g){var y=g.completion||{};y.type="normal",delete y.arg,g.completion=y}function v(g){this.tryEntries=[{tryLoc:"root"}],g.forEach(S,this),this.reset(!0)}function m(g){if(g){var y=g[l];if(y)return y.call(g);if(typeof g.next=="function")return g;if(!isNaN(g.length)){var k=-1,O=function A(){for(;++k<g.length;)if(r.call(g,k))return A.value=g[k],A.done=!1,A;return A.value=void 0,A.done=!0,A};return O.next=O}}return{next:b}}function b(){return{value:void 0,done:!0}}return w.prototype=x,t(I,"constructor",{value:x,configurable:!0}),t(x,"constructor",{value:w,configurable:!0}),w.displayName=c(x,i,"GeneratorFunction"),a.isGeneratorFunction=function(g){var y=typeof g=="function"&&g.constructor;return!!y&&(y===w||(y.displayName||y.name)==="GeneratorFunction")},a.mark=function(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,x):(g.__proto__=x,c(g,i,"GeneratorFunction")),g.prototype=Object.create(I),g},a.awrap=function(g){return{__await:g}},P(B.prototype),c(B.prototype,n,function(){return this}),a.AsyncIterator=B,a.async=function(g,y,k,O,A){A===void 0&&(A=Promise);var z=new B(f(g,y,k,O),A);return a.isGeneratorFunction(y)?z:z.next().then(function(U){return U.done?U.value:z.next()})},P(I),c(I,i,"Generator"),c(I,l,function(){return this}),c(I,"toString",function(){return"[object Generator]"}),a.keys=function(g){var y=Object(g),k=[];for(var O in y)k.push(O);return k.reverse(),function A(){for(;k.length;){var z=k.pop();if(z in y)return A.value=z,A.done=!1,A}return A.done=!0,A}},a.values=m,v.prototype={constructor:v,reset:function(g){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!g)for(var y in this)y.charAt(0)==="t"&&r.call(this,y)&&!isNaN(+y.slice(1))&&(this[y]=void 0)},stop:function(){this.done=!0;var g=this.tryEntries[0].completion;if(g.type==="throw")throw g.arg;return this.rval},dispatchException:function(g){if(this.done)throw g;var y=this;function k(j,V){return z.type="throw",z.arg=g,y.next=j,V&&(y.method="next",y.arg=void 0),!!V}for(var O=this.tryEntries.length-1;O>=0;--O){var A=this.tryEntries[O],z=A.completion;if(A.tryLoc==="root")return k("end");if(A.tryLoc<=this.prev){var U=r.call(A,"catchLoc"),X=r.call(A,"finallyLoc");if(U&&X){if(this.prev<A.catchLoc)return k(A.catchLoc,!0);if(this.prev<A.finallyLoc)return k(A.finallyLoc)}else if(U){if(this.prev<A.catchLoc)return k(A.catchLoc,!0)}else{if(!X)throw new Error("try statement without catch or finally");if(this.prev<A.finallyLoc)return k(A.finallyLoc)}}}},abrupt:function(g,y){for(var k=this.tryEntries.length-1;k>=0;--k){var O=this.tryEntries[k];if(O.tryLoc<=this.prev&&r.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var A=O;break}}A&&(g==="break"||g==="continue")&&A.tryLoc<=y&&y<=A.finallyLoc&&(A=null);var z=A?A.completion:{};return z.type=g,z.arg=y,A?(this.method="next",this.next=A.finallyLoc,p):this.complete(z)},complete:function(g,y){if(g.type==="throw")throw g.arg;return g.type==="break"||g.type==="continue"?this.next=g.arg:g.type==="return"?(this.rval=this.arg=g.arg,this.method="return",this.next="end"):g.type==="normal"&&y&&(this.next=y),p},finish:function(g){for(var y=this.tryEntries.length-1;y>=0;--y){var k=this.tryEntries[y];if(k.finallyLoc===g)return this.complete(k.completion,k.afterLoc),T(k),p}},catch:function(g){for(var y=this.tryEntries.length-1;y>=0;--y){var k=this.tryEntries[y];if(k.tryLoc===g){var O=k.completion;if(O.type==="throw"){var A=O.arg;T(k)}return A}}throw new Error("illegal catch attempt")},delegateYield:function(g,y,k){return this.delegate={iterator:m(g),resultName:y,nextLoc:k},this.method==="next"&&(this.arg=void 0),p}},a}(typeof C=="object"?C.exports:{});try{regeneratorRuntime=d}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}},{}],493:[function(s,C,_){var d=s("buffer").Buffer,a=s("inherits"),o=s("hash-base"),r=new Array(16),t=[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],e=[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],n=[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],i=[0,1518500249,1859775393,2400959708,2840853838],c=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function u(N,F){return N<<F|N>>>32-F}function p(N,F,I,P,B,$,D,S){return u(N+(F^I^P)+$+D|0,S)+B|0}function h(N,F,I,P,B,$,D,S){return u(N+(F&I|~F&P)+$+D|0,S)+B|0}function w(N,F,I,P,B,$,D,S){return u(N+((F|~I)^P)+$+D|0,S)+B|0}function x(N,F,I,P,B,$,D,S){return u(N+(F&P|I&~P)+$+D|0,S)+B|0}function R(N,F,I,P,B,$,D,S){return u(N+(F^(I|~P))+$+D|0,S)+B|0}a(f,o),f.prototype._update=function(){for(var N=r,F=0;F<16;++F)N[F]=this._block.readInt32LE(4*F);for(var I=0|this._a,P=0|this._b,B=0|this._c,$=0|this._d,D=0|this._e,S=0|this._a,T=0|this._b,v=0|this._c,m=0|this._d,b=0|this._e,g=0;g<80;g+=1){var y,k;g<16?(y=p(I,P,B,$,D,N[t[g]],i[0],l[g]),k=R(S,T,v,m,b,N[e[g]],c[0],n[g])):g<32?(y=h(I,P,B,$,D,N[t[g]],i[1],l[g]),k=x(S,T,v,m,b,N[e[g]],c[1],n[g])):g<48?(y=w(I,P,B,$,D,N[t[g]],i[2],l[g]),k=w(S,T,v,m,b,N[e[g]],c[2],n[g])):g<64?(y=x(I,P,B,$,D,N[t[g]],i[3],l[g]),k=h(S,T,v,m,b,N[e[g]],c[3],n[g])):(y=R(I,P,B,$,D,N[t[g]],i[4],l[g]),k=p(S,T,v,m,b,N[e[g]],c[4],n[g])),I=D,D=$,$=u(B,10),B=P,P=y,S=b,b=m,m=u(v,10),v=T,T=k}var O=this._b+B+m|0;this._b=this._c+$+b|0,this._c=this._d+D+S|0,this._d=this._e+I+T|0,this._e=this._a+P+v|0,this._a=O},f.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 N=d.alloc?d.alloc(20):new d(20);return N.writeInt32LE(this._a,0),N.writeInt32LE(this._b,4),N.writeInt32LE(this._c,8),N.writeInt32LE(this._d,12),N.writeInt32LE(this._e,16),N},C.exports=f},{buffer:220,"hash-base":425,inherits:440}],494:[function(s,C,_){/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var d=s("buffer"),a=d.Buffer;function o(t,e){for(var l in t)e[l]=t[l]}function r(t,e,l){return a(t,e,l)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?C.exports=d:(o(d,_),_.Buffer=r),r.prototype=Object.create(a.prototype),o(a,r),r.from=function(t,e,l){if(typeof t=="number")throw new TypeError("Argument must not be a number");return a(t,e,l)},r.alloc=function(t,e,l){if(typeof t!="number")throw new TypeError("Argument must be a number");var n=a(t);return e!==void 0?typeof l=="string"?n.fill(e,l):n.fill(e):n.fill(0),n},r.allocUnsafe=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return a(t)},r.allocUnsafeSlow=function(t){if(typeof t!="number")throw new TypeError("Argument must be a number");return d.SlowBuffer(t)}},{buffer:220}],495:[function(s,C,_){(function(d){(function(){var a,o=s("buffer"),r=o.Buffer,t={};for(a in o)o.hasOwnProperty(a)&&a!=="SlowBuffer"&&a!=="Buffer"&&(t[a]=o[a]);var e=t.Buffer={};for(a in r)r.hasOwnProperty(a)&&a!=="allocUnsafe"&&a!=="allocUnsafeSlow"&&(e[a]=r[a]);if(t.Buffer.prototype=r.prototype,e.from&&e.from!==Uint8Array.from||(e.from=function(l,n,i){if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof l);if(l&&l.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);return r(l,n,i)}),e.alloc||(e.alloc=function(l,n,i){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 c=r(l);return n&&n.length!==0?typeof i=="string"?c.fill(n,i):c.fill(n):c.fill(0),c}),!t.kStringMaxLength)try{t.kStringMaxLength=d.binding("buffer").kStringMaxLength}catch{}t.constants||(t.constants={MAX_LENGTH:t.kMaxLength},t.kStringMaxLength&&(t.constants.MAX_STRING_LENGTH=t.kStringMaxLength)),C.exports=t}).call(this)}).call(this,s("_process"))},{_process:467,buffer:220}],496:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0});const d=s("xmlchars/xml/1.0/ed5"),a=s("xmlchars/xml/1.1/ed2"),o=s("xmlchars/xmlns/1.0/ed3");var r=d.isS,t=d.isChar,e=d.isNameStartChar,l=d.isNameChar,n=d.S_LIST,i=d.NAME_RE,c=a.isChar,f=o.isNCNameStartChar,u=o.isNCNameChar,p=o.NC_NAME_RE;const h="http://www.w3.org/XML/1998/namespace",w="http://www.w3.org/2000/xmlns/",x={__proto__:null,xml:h,xmlns:w},R={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},N=m=>m===34||m===39,F=[34,39],I=[...F,91,62],P=[...F,60,93],B=[61,63,...n],$=[...n,62,38,60];function D(m,b,g){switch(b){case"xml":g!==h&&m.fail(`xml prefix must be bound to ${h}.`);break;case"xmlns":g!==w&&m.fail(`xmlns prefix must be bound to ${w}.`)}switch(g){case w:m.fail(b===""?`the default namespace may not be set to ${g}.`:`may not assign a prefix (even "xmlns") to the URI ${w}.`);break;case h:switch(b){case"xml":break;case"":m.fail(`the default namespace may not be set to ${g}.`);break;default:m.fail("may not assign the xml namespace to another prefix.")}}}const S=m=>p.test(m),T=m=>i.test(m);_.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const v={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"};_.SaxesParser=class{constructor(m){this.opt=m??{},this.fragmentOpt=!!this.opt.fragment;const b=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,b){this.nameStartCheck=f,this.nameCheck=u,this.isName=S,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},x);const g=this.opt.additionalNamespaces;g!=null&&(function(y,k){for(const O of Object.keys(k))D(y,O,k[O])}(this,g),Object.assign(this.ns,g))}else this.nameStartCheck=e,this.nameCheck=l,this.isName=T,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 m;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=0,this.attribList=[];const{fragmentOpt:b}=this;this.state=b?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=b,this.xmlDeclPossible=!b,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:g}=this.opt;if(g===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");g="1.0"}this.setXMLVersion(g),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(R),(m=this.readyHandler)===null||m===void 0||m.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(m,b){this[v[m]]=b}off(m){this[v[m]]=void 0}makeError(m){var b;let g=(b=this.fileName)!==null&&b!==void 0?b:"";return this.trackPosition&&(g.length>0&&(g+=":"),g+=`${this.line}:${this.column}`),g.length>0&&(g+=": "),new Error(g+m)}fail(m){const b=this.makeError(m),g=this.errorHandler;if(g===void 0)throw b;return g(b),this}write(m){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let b=!1;m===null?(b=!0,m=""):typeof m=="object"&&(m=m.toString()),this.carriedFromPrevious!==void 0&&(m=`${this.carriedFromPrevious}${m}`,this.carriedFromPrevious=void 0);let g=m.length;const y=m.charCodeAt(g-1);!b&&(y===13||y>=55296&&y<=56319)&&(this.carriedFromPrevious=m[g-1],g--,m=m.slice(0,g));const{stateTable:k}=this;for(this.chunk=m,this.i=0;this.i<g;)k[this.state].call(this);return this.chunkPosition+=g,b?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:m,i:b}=this;if(this.prevI=b,this.i=b+1,b>=m.length)return-1;const g=m.charCodeAt(b);if(this.column++,g<55296){if(g>=32||g===9)return g;switch(g){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return m.charCodeAt(b+1)===10&&(this.i=b+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),g}}if(g>56319)return g>=57344&&g<=65533||this.fail("disallowed character."),g;const y=65536+1024*(g-55296)+(m.charCodeAt(b+1)-56320);return this.i=b+2,y>1114111&&this.fail("disallowed character."),y}getCode11(){const{chunk:m,i:b}=this;if(this.prevI=b,this.i=b+1,b>=m.length)return-1;const g=m.charCodeAt(b);if(this.column++,g<55296){if(g>31&&g<127||g>159&&g!==8232||g===9)return g;switch(g){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const k=m.charCodeAt(b+1);k!==10&&k!==133||(this.i=b+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),g}}if(g>56319)return g>=57344&&g<=65533||this.fail("disallowed character."),g;const y=65536+1024*(g-55296)+(m.charCodeAt(b+1)-56320);return this.i=b+2,y>1114111&&this.fail("disallowed character."),y}getCodeNorm(){const m=this.getCode();return m===-2?10:m}unget(){this.i=this.prevI,this.column--}captureTo(m){let{i:b}=this;const{chunk:g}=this;for(;;){const y=this.getCode(),k=y===-2,O=k?10:y;if(O===-1||m.includes(O))return this.text+=g.slice(b,this.prevI),O;k&&(this.text+=g.slice(b,this.prevI)+`
|
|
23
|
-
`,b=this.i)}}captureToChar(m){let{i:b}=this;const{chunk:g}=this;for(;;){let y=this.getCode();switch(y){case-2:this.text+=g.slice(b,this.prevI)+`
|
|
24
|
-
`,b=this.i,y=10;break;case-1:return this.text+=g.slice(b),!1}if(y===m)return this.text+=g.slice(b,this.prevI),!0}}captureNameChars(){const{chunk:m,i:b}=this;for(;;){const g=this.getCode();if(g===-1)return this.name+=m.slice(b),-1;if(!l(g))return this.name+=m.slice(b,this.prevI),g===-2?10:g}}skipSpaces(){for(;;){const m=this.getCodeNorm();if(m===-1||!r(m))return m}}setXMLVersion(m){this.currentXMLVersion=m,m==="1.0"?(this.isChar=t,this.getCode=this.getCode10):(this.isChar=c,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const m=this.i,b=this.skipSpaces();switch(this.prevI!==m&&(this.xmlDeclPossible=!1),b){case 60:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var m;const b=this.captureTo(I);switch(b){case 62:(m=this.doctypeHandler)===null||m===void 0||m.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(b),b===91?this.state=4:N(b)&&(this.state=3,this.q=b)}}sDoctypeQuote(){const m=this.q;this.captureToChar(m)&&(this.text+=String.fromCodePoint(m),this.q=null,this.state=2)}sDTD(){const m=this.captureTo(P);m!==-1&&(this.text+=String.fromCodePoint(m),m===93?this.state=2:m===60?this.state=6:N(m)&&(this.state=5,this.q=m))}sDTDQuoted(){const m=this.q;this.captureToChar(m)&&(this.text+=String.fromCodePoint(m),this.state=4,this.q=null)}sDTDOpenWaka(){const m=this.getCodeNorm();switch(this.text+=String.fromCodePoint(m),m){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const m=String.fromCodePoint(this.getCodeNorm()),b=this.openWakaBang+=m;this.text+=m,b!=="-"&&(this.state=b==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const m=this.getCodeNorm();this.text+=String.fromCodePoint(m),this.state=m===45?10:8}sDTDCommentEnded(){const m=this.getCodeNorm();this.text+=String.fromCodePoint(m),m===62?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const m=this.getCodeNorm();this.text+=String.fromCodePoint(m),m===62&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:m}=this;const{chunk:b}=this;t:for(;;)switch(this.getCode()){case-2:this.entity+=b.slice(m,this.prevI)+`
|
|
25
|
-
`,m=this.i;break;case 59:{const{entityReturnState:g}=this,y=this.entity+b.slice(m,this.prevI);let k;this.state=g,y===""?(this.fail("empty entity name."),k="&;"):(k=this.parseEntity(y),this.entity=""),g===13&&this.textHandler===void 0||(this.text+=k);break t}case-1:this.entity+=b.slice(m);break t}}sOpenWaka(){const m=this.getCode();if(e(m))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(m){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,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=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(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(45)&&(this.state=18)}sCommentEnding(){var m;const b=this.getCodeNorm();b===45?(this.state=19,(m=this.commentHandler)===null||m===void 0||m.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(b),this.state=17)}sCommentEnded(){const m=this.getCodeNorm();m!==62?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(m),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const m=this.getCodeNorm();m===93?this.state=22:(this.text+="]"+String.fromCodePoint(m),this.state=20)}sCDataEnding2(){var m;const b=this.getCodeNorm();switch(b){case 62:(m=this.cdataHandler)===null||m===void 0||m.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(b),this.state=20}}sPIFirstChar(){const m=this.getCodeNorm();this.nameStartCheck(m)?(this.piTarget+=String.fromCodePoint(m),this.state=24):m===63||r(m)?(this.fail("processing instruction without a target."),this.state=m===63?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(m),this.state=24)}sPIRest(){const{chunk:m,i:b}=this;for(;;){const g=this.getCodeNorm();if(g===-1)return void(this.piTarget+=m.slice(b));if(!this.nameCheck(g)){this.piTarget+=m.slice(b,this.prevI);const y=g===63;y||r(g)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=y?33:27):this.state=y?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(g));break}}}sPIBody(){if(this.text.length===0){const m=this.getCodeNorm();m===63?this.state=26:r(m)||(this.text=String.fromCodePoint(m))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var m;const b=this.getCodeNorm();if(b===62){const{piTarget:g}=this;g.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(m=this.piHandler)===null||m===void 0||m.call(this,{target:g,body:this.text}),this.piTarget=this.text="",this.state=13}else b===63?this.text+="?":(this.text+="?"+String.fromCodePoint(b),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const m=this.skipSpaces();m!==63?m!==-1&&(this.state=28,this.name=String.fromCodePoint(m)):this.state=33}sXMLDeclName(){const m=this.captureTo(B);if(m===63)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(r(m)||m===61){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=m===61?30:29}}sXMLDeclEq(){const m=this.getCodeNorm();if(m===63)return this.state=33,void this.fail("XML declaration is incomplete.");r(m)||(m!==61&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const m=this.getCodeNorm();if(m===63)return this.state=33,void this.fail("XML declaration is incomplete.");r(m)||(N(m)?this.q=m:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const m=this.captureTo([this.q,63]);if(m===63)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(m===-1)return;const b=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const g=b;this.xmlDecl.version=g,/^1\.[0-9]+$/.test(g)?this.opt.forceXMLVersion||this.setXMLVersion(g):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(b)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=b;break;case"standalone":b!=="yes"&&b!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=b}this.name="",this.state=32}sXMLDeclSeparator(){const m=this.getCodeNorm();m!==63?(r(m)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var m;this.getCodeNorm()===62?(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."),(m=this.xmldeclHandler)===null||m===void 0||m.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var m;const b=this.captureNameChars();if(b===-1)return;const g=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=g.ns=Object.create(null)),(m=this.openTagStartHandler)===null||m===void 0||m.call(this,g),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),b){case 62:this.openTag();break;case 47:this.state=35;break;default:r(b)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===62?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const m=this.skipSpaces();m!==-1&&(e(m)?(this.unget(),this.state=37):m===62?this.openTag():m===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const m=this.captureNameChars();m===61?this.state=39:r(m)?this.state=38:m===62?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):m!==-1&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const m=this.skipSpaces();switch(m){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",m===62?this.openTag():e(m)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const m=this.getCodeNorm();N(m)?(this.q=m,this.state=40):r(m)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:m,chunk:b}=this;let{i:g}=this;for(;;)switch(this.getCode()){case m:return this.pushAttrib(this.name,this.text+b.slice(g,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=b.slice(g,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=b.slice(g,this.prevI)+" ",g=this.i;break;case 60:return this.text+=b.slice(g,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=b.slice(g))}}sAttribValueClosed(){const m=this.getCodeNorm();r(m)?this.state=36:m===62?this.openTag():m===47?this.state=35:e(m)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const m=this.captureTo($);switch(m){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",m===62?this.openTag():this.state=36}}sCloseTag(){const m=this.captureNameChars();m===62?this.closeTag():r(m)?this.state=44:m!==-1&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:m,forbiddenState:b}=this;const{chunk:g,textHandler:y}=this;t:for(;;)switch(this.getCode()){case 60:if(this.state=15,y!==void 0){const{text:k}=this,O=g.slice(m,this.prevI);k.length!==0?(y(k+O),this.text=""):O.length!==0&&y(O)}b=0;break t;case 38:this.state=14,this.entityReturnState=13,y!==void 0&&(this.text+=g.slice(m,this.prevI)),b=0;break t;case 93:switch(b){case 0:b=1;break;case 1:b=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:b===2&&this.fail('the string "]]>" is disallowed in char data.'),b=0;break;case-2:y!==void 0&&(this.text+=g.slice(m,this.prevI)+`
|
|
26
|
-
`),m=this.i,b=0;break;case-1:y!==void 0&&(this.text+=g.slice(m));break t;default:b=0}this.forbiddenState=b}handleTextOutsideRoot(){let{i:m}=this;const{chunk:b,textHandler:g}=this;let y=!1;t:for(;;){const k=this.getCode();switch(k){case 60:if(this.state=15,g!==void 0){const{text:O}=this,A=b.slice(m,this.prevI);O.length!==0?(g(O+A),this.text=""):A.length!==0&&g(A)}break t;case 38:this.state=14,this.entityReturnState=13,g!==void 0&&(this.text+=b.slice(m,this.prevI)),y=!0;break t;case-2:g!==void 0&&(this.text+=b.slice(m,this.prevI)+`
|
|
27
|
-
`),m=this.i;break;case-1:g!==void 0&&(this.text+=b.slice(m));break t;default:r(k)||(y=!0)}}y&&(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(m,b){var g;const{prefix:y,local:k}=this.qname(m),O={name:m,prefix:y,local:k,value:b};if(this.attribList.push(O),(g=this.attributeHandler)===null||g===void 0||g.call(this,O),y==="xmlns"){const A=b.trim();this.currentXMLVersion==="1.0"&&A===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[k]=A,D(this,k,A)}else if(m==="xmlns"){const A=b.trim();this.topNS[""]=A,D(this,"",A)}}pushAttribPlain(m,b){var g;const y={name:m,value:b};this.attribList.push(y),(g=this.attributeHandler)===null||g===void 0||g.call(this,y)}end(){var m,b;this.sawRoot||this.fail("document must contain a root element.");const{tags:g}=this;for(;g.length>0;){const k=g.pop();this.fail("unclosed tag: "+k.name)}this.state!==0&&this.state!==13&&this.fail("unexpected end.");const{text:y}=this;return y.length!==0&&((m=this.textHandler)===null||m===void 0||m.call(this,y),this.text=""),this._closed=!0,(b=this.endHandler)===null||b===void 0||b.call(this),this._init(),this}resolve(m){var b,g;let y=this.topNS[m];if(y!==void 0)return y;const{tags:k}=this;for(let O=k.length-1;O>=0;O--)if(y=k[O].ns[m],y!==void 0)return y;return y=this.ns[m],y!==void 0?y:(g=(b=this.opt).resolvePrefix)===null||g===void 0?void 0:g.call(b,m)}qname(m){const b=m.indexOf(":");if(b===-1)return{prefix:"",local:m};const g=m.slice(b+1),y=m.slice(0,b);return(y===""||g===""||g.includes(":"))&&this.fail(`malformed name: ${m}.`),{prefix:y,local:g}}processAttribsNS(){var m;const{attribList:b}=this,g=this.tag;{const{prefix:O,local:A}=this.qname(g.name);g.prefix=O,g.local=A;const z=g.uri=(m=this.resolve(O))!==null&&m!==void 0?m:"";O!==""&&(O==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),z===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(O)}.`),g.uri=O))}if(b.length===0)return;const{attributes:y}=g,k=new Set;for(const O of b){const{name:A,prefix:z,local:U}=O;let X,j;z===""?(X=A==="xmlns"?w:"",j=A):(X=this.resolve(z),X===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(z)}.`),X=z),j=`{${X}}${U}`),k.has(j)&&this.fail(`duplicate attribute: ${j}.`),k.add(j),O.uri=X,y[A]=O}this.attribList=[]}processAttribsPlain(){const{attribList:m}=this,b=this.tag.attributes;for(const{name:g,value:y}of m)b[g]!==void 0&&this.fail(`duplicate attribute: ${g}.`),b[g]=y;this.attribList=[]}openTag(){var m;this.processAttribs();const{tags:b}=this,g=this.tag;g.isSelfClosing=!1,(m=this.openTagHandler)===null||m===void 0||m.call(this,g),b.push(g),this.state=13,this.name=""}openSelfClosingTag(){var m,b,g;this.processAttribs();const{tags:y}=this,k=this.tag;k.isSelfClosing=!0,(m=this.openTagHandler)===null||m===void 0||m.call(this,k),(b=this.closeTagHandler)===null||b===void 0||b.call(this,k),(this.tag=(g=y[y.length-1])!==null&&g!==void 0?g:null)===null&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:m,name:b}=this;if(this.state=13,this.name="",b==="")return this.fail("weird empty close tag."),void(this.text+="</>");const g=this.closeTagHandler;let y=m.length;for(;y-- >0;){const k=this.tag=m.pop();if(this.topNS=k.ns,g==null||g(k),k.name===b)break;this.fail("unexpected close tag.")}y===0?this.closedRoot=!0:y<0&&(this.fail(`unmatched closing tag: ${b}.`),this.text+=`</${b}>`)}parseEntity(m){if(m[0]!=="#"){const g=this.ENTITIES[m];return g!==void 0?g:(this.fail(this.isName(m)?"undefined entity.":"disallowed character in entity name."),`&${m};`)}let b=NaN;return m[1]==="x"&&/^#x[0-9a-f]+$/i.test(m)?b=parseInt(m.slice(2),16):/^#[0-9]+$/.test(m)&&(b=parseInt(m.slice(1),10)),this.isChar(b)?String.fromCodePoint(b):(this.fail("malformed character entity."),`&${m};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(s,C,_){var d=s("safe-buffer").Buffer;function a(o,r){this._block=d.alloc(o),this._finalSize=r,this._blockSize=o,this._len=0}a.prototype.update=function(o,r){typeof o=="string"&&(r=r||"utf8",o=d.from(o,r));for(var t=this._block,e=this._blockSize,l=o.length,n=this._len,i=0;i<l;){for(var c=n%e,f=Math.min(l-i,e-c),u=0;u<f;u++)t[c+u]=o[i+u];i+=f,(n+=f)%e==0&&this._update(t)}return this._len+=l,this},a.prototype.digest=function(o){var r=this._len%this._blockSize;this._block[r]=128,this._block.fill(0,r+1),r>=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=8*this._len;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var e=(4294967295&t)>>>0,l=(t-e)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(e,this._blockSize-4)}this._update(this._block);var n=this._hash();return o?n.toString(o):n},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},C.exports=a},{"safe-buffer":494}],498:[function(s,C,_){var d=C.exports=function(a){a=a.toLowerCase();var o=d[a];if(!o)throw new Error(a+" is not supported (we accept pull requests)");return new o};d.sha=s("./sha"),d.sha1=s("./sha1"),d.sha224=s("./sha224"),d.sha256=s("./sha256"),d.sha384=s("./sha384"),d.sha512=s("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(s,C,_){var d=s("inherits"),a=s("./hash"),o=s("safe-buffer").Buffer,r=[1518500249,1859775393,-1894007588,-899497514],t=new Array(80);function e(){this.init(),this._w=t,a.call(this,64,56)}function l(i){return i<<30|i>>>2}function n(i,c,f,u){return i===0?c&f|~c&u:i===2?c&f|c&u|f&u:c^f^u}d(e,a),e.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},e.prototype._update=function(i){for(var c,f=this._w,u=0|this._a,p=0|this._b,h=0|this._c,w=0|this._d,x=0|this._e,R=0;R<16;++R)f[R]=i.readInt32BE(4*R);for(;R<80;++R)f[R]=f[R-3]^f[R-8]^f[R-14]^f[R-16];for(var N=0;N<80;++N){var F=~~(N/20),I=0|((c=u)<<5|c>>>27)+n(F,p,h,w)+x+f[N]+r[F];x=w,w=h,h=l(p),p=u,u=I}this._a=u+this._a|0,this._b=p+this._b|0,this._c=h+this._c|0,this._d=w+this._d|0,this._e=x+this._e|0},e.prototype._hash=function(){var i=o.allocUnsafe(20);return i.writeInt32BE(0|this._a,0),i.writeInt32BE(0|this._b,4),i.writeInt32BE(0|this._c,8),i.writeInt32BE(0|this._d,12),i.writeInt32BE(0|this._e,16),i},C.exports=e},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(s,C,_){var d=s("inherits"),a=s("./hash"),o=s("safe-buffer").Buffer,r=[1518500249,1859775393,-1894007588,-899497514],t=new Array(80);function e(){this.init(),this._w=t,a.call(this,64,56)}function l(c){return c<<5|c>>>27}function n(c){return c<<30|c>>>2}function i(c,f,u,p){return c===0?f&u|~f&p:c===2?f&u|f&p|u&p:f^u^p}d(e,a),e.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},e.prototype._update=function(c){for(var f,u=this._w,p=0|this._a,h=0|this._b,w=0|this._c,x=0|this._d,R=0|this._e,N=0;N<16;++N)u[N]=c.readInt32BE(4*N);for(;N<80;++N)u[N]=(f=u[N-3]^u[N-8]^u[N-14]^u[N-16])<<1|f>>>31;for(var F=0;F<80;++F){var I=~~(F/20),P=l(p)+i(I,h,w,x)+R+u[F]+r[I]|0;R=x,x=w,w=n(h),h=p,p=P}this._a=p+this._a|0,this._b=h+this._b|0,this._c=w+this._c|0,this._d=x+this._d|0,this._e=R+this._e|0},e.prototype._hash=function(){var c=o.allocUnsafe(20);return c.writeInt32BE(0|this._a,0),c.writeInt32BE(0|this._b,4),c.writeInt32BE(0|this._c,8),c.writeInt32BE(0|this._d,12),c.writeInt32BE(0|this._e,16),c},C.exports=e},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(s,C,_){var d=s("inherits"),a=s("./sha256"),o=s("./hash"),r=s("safe-buffer").Buffer,t=new Array(64);function e(){this.init(),this._w=t,o.call(this,64,56)}d(e,a),e.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},e.prototype._hash=function(){var l=r.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},C.exports=e},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(s,C,_){var d=s("inherits"),a=s("./hash"),o=s("safe-buffer").Buffer,r=[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],t=new Array(64);function e(){this.init(),this._w=t,a.call(this,64,56)}function l(u,p,h){return h^u&(p^h)}function n(u,p,h){return u&p|h&(u|p)}function i(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}function c(u){return(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7)}function f(u){return(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3}d(e,a),e.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},e.prototype._update=function(u){for(var p,h=this._w,w=0|this._a,x=0|this._b,R=0|this._c,N=0|this._d,F=0|this._e,I=0|this._f,P=0|this._g,B=0|this._h,$=0;$<16;++$)h[$]=u.readInt32BE(4*$);for(;$<64;++$)h[$]=0|(((p=h[$-2])>>>17|p<<15)^(p>>>19|p<<13)^p>>>10)+h[$-7]+f(h[$-15])+h[$-16];for(var D=0;D<64;++D){var S=B+c(F)+l(F,I,P)+r[D]+h[D]|0,T=i(w)+n(w,x,R)|0;B=P,P=I,I=F,F=N+S|0,N=R,R=x,x=w,w=S+T|0}this._a=w+this._a|0,this._b=x+this._b|0,this._c=R+this._c|0,this._d=N+this._d|0,this._e=F+this._e|0,this._f=I+this._f|0,this._g=P+this._g|0,this._h=B+this._h|0},e.prototype._hash=function(){var u=o.allocUnsafe(32);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u.writeInt32BE(this._h,28),u},C.exports=e},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(s,C,_){var d=s("inherits"),a=s("./sha512"),o=s("./hash"),r=s("safe-buffer").Buffer,t=new Array(160);function e(){this.init(),this._w=t,o.call(this,128,112)}d(e,a),e.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},e.prototype._hash=function(){var l=r.allocUnsafe(48);function n(i,c,f){l.writeInt32BE(i,f),l.writeInt32BE(c,f+4)}return n(this._ah,this._al,0),n(this._bh,this._bl,8),n(this._ch,this._cl,16),n(this._dh,this._dl,24),n(this._eh,this._el,32),n(this._fh,this._fl,40),l},C.exports=e},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(s,C,_){var d=s("inherits"),a=s("./hash"),o=s("safe-buffer").Buffer,r=[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],t=new Array(160);function e(){this.init(),this._w=t,a.call(this,128,112)}function l(x,R,N){return N^x&(R^N)}function n(x,R,N){return x&R|N&(x|R)}function i(x,R){return(x>>>28|R<<4)^(R>>>2|x<<30)^(R>>>7|x<<25)}function c(x,R){return(x>>>14|R<<18)^(x>>>18|R<<14)^(R>>>9|x<<23)}function f(x,R){return(x>>>1|R<<31)^(x>>>8|R<<24)^x>>>7}function u(x,R){return(x>>>1|R<<31)^(x>>>8|R<<24)^(x>>>7|R<<25)}function p(x,R){return(x>>>19|R<<13)^(R>>>29|x<<3)^x>>>6}function h(x,R){return(x>>>19|R<<13)^(R>>>29|x<<3)^(x>>>6|R<<26)}function w(x,R){return x>>>0<R>>>0?1:0}d(e,a),e.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},e.prototype._update=function(x){for(var R=this._w,N=0|this._ah,F=0|this._bh,I=0|this._ch,P=0|this._dh,B=0|this._eh,$=0|this._fh,D=0|this._gh,S=0|this._hh,T=0|this._al,v=0|this._bl,m=0|this._cl,b=0|this._dl,g=0|this._el,y=0|this._fl,k=0|this._gl,O=0|this._hl,A=0;A<32;A+=2)R[A]=x.readInt32BE(4*A),R[A+1]=x.readInt32BE(4*A+4);for(;A<160;A+=2){var z=R[A-30],U=R[A-30+1],X=f(z,U),j=u(U,z),V=p(z=R[A-4],U=R[A-4+1]),E=h(U,z),M=R[A-14],L=R[A-14+1],q=R[A-32],Z=R[A-32+1],W=j+L|0,K=X+M+w(W,j)|0;K=(K=K+V+w(W=W+E|0,E)|0)+q+w(W=W+Z|0,Z)|0,R[A]=K,R[A+1]=W}for(var rt=0;rt<160;rt+=2){K=R[rt],W=R[rt+1];var et=n(N,F,I),Y=n(T,v,m),Q=i(N,T),J=i(T,N),st=c(B,g),it=c(g,B),ot=r[rt],ut=r[rt+1],ct=l(B,$,D),pt=l(g,y,k),St=O+it|0,xt=S+st+w(St,O)|0;xt=(xt=(xt=xt+ct+w(St=St+pt|0,pt)|0)+ot+w(St=St+ut|0,ut)|0)+K+w(St=St+W|0,W)|0;var yt=J+Y|0,Ot=Q+et+w(yt,J)|0;S=D,O=k,D=$,k=y,$=B,y=g,B=P+xt+w(g=b+St|0,b)|0,P=I,b=m,I=F,m=v,F=N,v=T,N=xt+Ot+w(T=St+yt|0,St)|0}this._al=this._al+T|0,this._bl=this._bl+v|0,this._cl=this._cl+m|0,this._dl=this._dl+b|0,this._el=this._el+g|0,this._fl=this._fl+y|0,this._gl=this._gl+k|0,this._hl=this._hl+O|0,this._ah=this._ah+N+w(this._al,T)|0,this._bh=this._bh+F+w(this._bl,v)|0,this._ch=this._ch+I+w(this._cl,m)|0,this._dh=this._dh+P+w(this._dl,b)|0,this._eh=this._eh+B+w(this._el,g)|0,this._fh=this._fh+$+w(this._fl,y)|0,this._gh=this._gh+D+w(this._gl,k)|0,this._hh=this._hh+S+w(this._hl,O)|0},e.prototype._hash=function(){var x=o.allocUnsafe(64);function R(N,F,I){x.writeInt32BE(N,I),x.writeInt32BE(F,I+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),R(this._gh,this._gl,48),R(this._hh,this._hl,56),x},C.exports=e},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(s,C,_){C.exports=a;var d=s("events").EventEmitter;function a(){d.call(this)}s("inherits")(a,d),a.Readable=s("readable-stream/readable.js"),a.Writable=s("readable-stream/writable.js"),a.Duplex=s("readable-stream/duplex.js"),a.Transform=s("readable-stream/transform.js"),a.PassThrough=s("readable-stream/passthrough.js"),a.Stream=a,a.prototype.pipe=function(o,r){var t=this;function e(p){o.writable&&o.write(p)===!1&&t.pause&&t.pause()}function l(){t.readable&&t.resume&&t.resume()}t.on("data",e),o.on("drain",l),o._isStdio||r&&r.end===!1||(t.on("end",i),t.on("close",c));var n=!1;function i(){n||(n=!0,o.end())}function c(){n||(n=!0,typeof o.destroy=="function"&&o.destroy())}function f(p){if(u(),d.listenerCount(this,"error")===0)throw p}function u(){t.removeListener("data",e),o.removeListener("drain",l),t.removeListener("end",i),t.removeListener("close",c),t.removeListener("error",f),o.removeListener("error",f),t.removeListener("end",u),t.removeListener("close",u),o.removeListener("close",u)}return t.on("error",f),o.on("error",f),t.on("end",u),t.on("close",u),o.on("close",u),o.emit("pipe",t),o}},{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(s,C,_){var d={}.toString;C.exports=Array.isArray||function(a){return d.call(a)=="[object Array]"}},{}],507:[function(s,C,_){C.exports=s("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(s,C,_){var d=s("process-nextick-args"),a=Object.keys||function(u){var p=[];for(var h in u)p.push(h);return p};C.exports=i;var o=Object.create(s("core-util-is"));o.inherits=s("inherits");var r=s("./_stream_readable"),t=s("./_stream_writable");o.inherits(i,r);for(var e=a(t.prototype),l=0;l<e.length;l++){var n=e[l];i.prototype[n]||(i.prototype[n]=t.prototype[n])}function i(u){if(!(this instanceof i))return new i(u);r.call(this,u),t.call(this,u),u&&u.readable===!1&&(this.readable=!1),u&&u.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,u&&u.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||d.nextTick(f,this)}function f(u){u.end()}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),i.prototype._destroy=function(u,p){this.push(null),this.end(),d.nextTick(p,u)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(s,C,_){C.exports=o;var d=s("./_stream_transform"),a=Object.create(s("core-util-is"));function o(r){if(!(this instanceof o))return new o(r);d.call(this,r)}a.inherits=s("inherits"),a.inherits(o,d),o.prototype._transform=function(r,t,e){e(null,r)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(s,C,_){(function(d,a){(function(){var o=s("process-nextick-args");C.exports=N;var r,t=s("isarray");N.ReadableState=R,s("events").EventEmitter;var e=function(O,A){return O.listeners(A).length},l=s("./internal/streams/stream"),n=s("safe-buffer").Buffer,i=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},c=Object.create(s("core-util-is"));c.inherits=s("inherits");var f=s("util"),u=void 0;u=f&&f.debuglog?f.debuglog("stream"):function(){};var p,h=s("./internal/streams/BufferList"),w=s("./internal/streams/destroy");c.inherits(N,l);var x=["error","close","destroy","pause","resume"];function R(O,A){O=O||{};var z=A instanceof(r=r||s("./_stream_duplex"));this.objectMode=!!O.objectMode,z&&(this.objectMode=this.objectMode||!!O.readableObjectMode);var U=O.highWaterMark,X=O.readableHighWaterMark,j=this.objectMode?16:16384;this.highWaterMark=U||U===0?U:z&&(X||X===0)?X:j,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=O.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,O.encoding&&(p||(p=s("string_decoder/").StringDecoder),this.decoder=new p(O.encoding),this.encoding=O.encoding)}function N(O){if(r=r||s("./_stream_duplex"),!(this instanceof N))return new N(O);this._readableState=new R(O,this),this.readable=!0,O&&(typeof O.read=="function"&&(this._read=O.read),typeof O.destroy=="function"&&(this._destroy=O.destroy)),l.call(this)}function F(O,A,z,U,X){var j,V=O._readableState;return A===null?(V.reading=!1,function(E,M){if(!M.ended){if(M.decoder){var L=M.decoder.end();L&&L.length&&(M.buffer.push(L),M.length+=M.objectMode?1:L.length)}M.ended=!0,B(E)}}(O,V)):(X||(j=function(E,M){var L;q=M,n.isBuffer(q)||q instanceof i||typeof M=="string"||M===void 0||E.objectMode||(L=new TypeError("Invalid non-string/buffer chunk"));var q;return L}(V,A)),j?O.emit("error",j):V.objectMode||A&&A.length>0?(typeof A=="string"||V.objectMode||Object.getPrototypeOf(A)===n.prototype||(A=function(E){return n.from(E)}(A)),U?V.endEmitted?O.emit("error",new Error("stream.unshift() after end event")):I(O,V,A,!0):V.ended?O.emit("error",new Error("stream.push() after EOF")):(V.reading=!1,V.decoder&&!z?(A=V.decoder.write(A),V.objectMode||A.length!==0?I(O,V,A,!1):D(O,V)):I(O,V,A,!1))):U||(V.reading=!1)),function(E){return!E.ended&&(E.needReadable||E.length<E.highWaterMark||E.length===0)}(V)}function I(O,A,z,U){A.flowing&&A.length===0&&!A.sync?(O.emit("data",z),O.read(0)):(A.length+=A.objectMode?1:z.length,U?A.buffer.unshift(z):A.buffer.push(z),A.needReadable&&B(O)),D(O,A)}Object.defineProperty(N.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(O){this._readableState&&(this._readableState.destroyed=O)}}),N.prototype.destroy=w.destroy,N.prototype._undestroy=w.undestroy,N.prototype._destroy=function(O,A){this.push(null),A(O)},N.prototype.push=function(O,A){var z,U=this._readableState;return U.objectMode?z=!0:typeof O=="string"&&((A=A||U.defaultEncoding)!==U.encoding&&(O=n.from(O,A),A=""),z=!0),F(this,O,A,!1,z)},N.prototype.unshift=function(O){return F(this,O,null,!0,!1)},N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(O){return p||(p=s("string_decoder/").StringDecoder),this._readableState.decoder=new p(O),this._readableState.encoding=O,this};function P(O,A){return O<=0||A.length===0&&A.ended?0:A.objectMode?1:O!=O?A.flowing&&A.length?A.buffer.head.data.length:A.length:(O>A.highWaterMark&&(A.highWaterMark=function(z){return z>=8388608?z=8388608:(z--,z|=z>>>1,z|=z>>>2,z|=z>>>4,z|=z>>>8,z|=z>>>16,z++),z}(O)),O<=A.length?O:A.ended?A.length:(A.needReadable=!0,0))}function B(O){var A=O._readableState;A.needReadable=!1,A.emittedReadable||(u("emitReadable",A.flowing),A.emittedReadable=!0,A.sync?o.nextTick($,O):$(O))}function $(O){u("emit readable"),O.emit("readable"),m(O)}function D(O,A){A.readingMore||(A.readingMore=!0,o.nextTick(S,O,A))}function S(O,A){for(var z=A.length;!A.reading&&!A.flowing&&!A.ended&&A.length<A.highWaterMark&&(u("maybeReadMore read 0"),O.read(0),z!==A.length);)z=A.length;A.readingMore=!1}function T(O){u("readable nexttick read 0"),O.read(0)}function v(O,A){A.reading||(u("resume read 0"),O.read(0)),A.resumeScheduled=!1,A.awaitDrain=0,O.emit("resume"),m(O),A.flowing&&!A.reading&&O.read(0)}function m(O){var A=O._readableState;for(u("flow",A.flowing);A.flowing&&O.read()!==null;);}function b(O,A){return A.length===0?null:(A.objectMode?z=A.buffer.shift():!O||O>=A.length?(z=A.decoder?A.buffer.join(""):A.buffer.length===1?A.buffer.head.data:A.buffer.concat(A.length),A.buffer.clear()):z=function(U,X,j){var V;return U<X.head.data.length?(V=X.head.data.slice(0,U),X.head.data=X.head.data.slice(U)):V=U===X.head.data.length?X.shift():j?function(E,M){var L=M.head,q=1,Z=L.data;for(E-=Z.length;L=L.next;){var W=L.data,K=E>W.length?W.length:E;if(K===W.length?Z+=W:Z+=W.slice(0,E),(E-=K)===0){K===W.length?(++q,L.next?M.head=L.next:M.head=M.tail=null):(M.head=L,L.data=W.slice(K));break}++q}return M.length-=q,Z}(U,X):function(E,M){var L=n.allocUnsafe(E),q=M.head,Z=1;for(q.data.copy(L),E-=q.data.length;q=q.next;){var W=q.data,K=E>W.length?W.length:E;if(W.copy(L,L.length-E,0,K),(E-=K)===0){K===W.length?(++Z,q.next?M.head=q.next:M.head=M.tail=null):(M.head=q,q.data=W.slice(K));break}++Z}return M.length-=Z,L}(U,X),V}(O,A.buffer,A.decoder),z);var z}function g(O){var A=O._readableState;if(A.length>0)throw new Error('"endReadable()" called on non-empty stream');A.endEmitted||(A.ended=!0,o.nextTick(y,A,O))}function y(O,A){O.endEmitted||O.length!==0||(O.endEmitted=!0,A.readable=!1,A.emit("end"))}function k(O,A){for(var z=0,U=O.length;z<U;z++)if(O[z]===A)return z;return-1}N.prototype.read=function(O){u("read",O),O=parseInt(O,10);var A=this._readableState,z=O;if(O!==0&&(A.emittedReadable=!1),O===0&&A.needReadable&&(A.length>=A.highWaterMark||A.ended))return u("read: emitReadable",A.length,A.ended),A.length===0&&A.ended?g(this):B(this),null;if((O=P(O,A))===0&&A.ended)return A.length===0&&g(this),null;var U,X=A.needReadable;return u("need readable",X),(A.length===0||A.length-O<A.highWaterMark)&&u("length less than watermark",X=!0),A.ended||A.reading?u("reading or ended",X=!1):X&&(u("do read"),A.reading=!0,A.sync=!0,A.length===0&&(A.needReadable=!0),this._read(A.highWaterMark),A.sync=!1,A.reading||(O=P(z,A))),(U=O>0?b(O,A):null)===null?(A.needReadable=!0,O=0):A.length-=O,A.length===0&&(A.ended||(A.needReadable=!0),z!==O&&A.ended&&g(this)),U!==null&&this.emit("data",U),U},N.prototype._read=function(O){this.emit("error",new Error("_read() is not implemented"))},N.prototype.pipe=function(O,A){var z=this,U=this._readableState;switch(U.pipesCount){case 0:U.pipes=O;break;case 1:U.pipes=[U.pipes,O];break;default:U.pipes.push(O)}U.pipesCount+=1,u("pipe count=%d opts=%j",U.pipesCount,A);var X=(!A||A.end!==!1)&&O!==d.stdout&&O!==d.stderr?V:rt;function j(et,Y){u("onunpipe"),et===z&&Y&&Y.hasUnpiped===!1&&(Y.hasUnpiped=!0,u("cleanup"),O.removeListener("close",W),O.removeListener("finish",K),O.removeListener("drain",E),O.removeListener("error",Z),O.removeListener("unpipe",j),z.removeListener("end",V),z.removeListener("end",rt),z.removeListener("data",q),M=!0,!U.awaitDrain||O._writableState&&!O._writableState.needDrain||E())}function V(){u("onend"),O.end()}U.endEmitted?o.nextTick(X):z.once("end",X),O.on("unpipe",j);var E=function(et){return function(){var Y=et._readableState;u("pipeOnDrain",Y.awaitDrain),Y.awaitDrain&&Y.awaitDrain--,Y.awaitDrain===0&&e(et,"data")&&(Y.flowing=!0,m(et))}}(z);O.on("drain",E);var M=!1,L=!1;function q(et){u("ondata"),L=!1,O.write(et)!==!1||L||((U.pipesCount===1&&U.pipes===O||U.pipesCount>1&&k(U.pipes,O)!==-1)&&!M&&(u("false write response, pause",U.awaitDrain),U.awaitDrain++,L=!0),z.pause())}function Z(et){u("onerror",et),rt(),O.removeListener("error",Z),e(O,"error")===0&&O.emit("error",et)}function W(){O.removeListener("finish",K),rt()}function K(){u("onfinish"),O.removeListener("close",W),rt()}function rt(){u("unpipe"),z.unpipe(O)}return z.on("data",q),function(et,Y,Q){if(typeof et.prependListener=="function")return et.prependListener(Y,Q);et._events&&et._events[Y]?t(et._events[Y])?et._events[Y].unshift(Q):et._events[Y]=[Q,et._events[Y]]:et.on(Y,Q)}(O,"error",Z),O.once("close",W),O.once("finish",K),O.emit("pipe",z),U.flowing||(u("pipe resume"),z.resume()),O},N.prototype.unpipe=function(O){var A=this._readableState,z={hasUnpiped:!1};if(A.pipesCount===0)return this;if(A.pipesCount===1)return O&&O!==A.pipes||(O||(O=A.pipes),A.pipes=null,A.pipesCount=0,A.flowing=!1,O&&O.emit("unpipe",this,z)),this;if(!O){var U=A.pipes,X=A.pipesCount;A.pipes=null,A.pipesCount=0,A.flowing=!1;for(var j=0;j<X;j++)U[j].emit("unpipe",this,{hasUnpiped:!1});return this}var V=k(A.pipes,O);return V===-1||(A.pipes.splice(V,1),A.pipesCount-=1,A.pipesCount===1&&(A.pipes=A.pipes[0]),O.emit("unpipe",this,z)),this},N.prototype.on=function(O,A){var z=l.prototype.on.call(this,O,A);if(O==="data")this._readableState.flowing!==!1&&this.resume();else if(O==="readable"){var U=this._readableState;U.endEmitted||U.readableListening||(U.readableListening=U.needReadable=!0,U.emittedReadable=!1,U.reading?U.length&&B(this):o.nextTick(T,this))}return z},N.prototype.addListener=N.prototype.on,N.prototype.resume=function(){var O=this._readableState;return O.flowing||(u("resume"),O.flowing=!0,function(A,z){z.resumeScheduled||(z.resumeScheduled=!0,o.nextTick(v,A,z))}(this,O)),this},N.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this},N.prototype.wrap=function(O){var A=this,z=this._readableState,U=!1;for(var X in O.on("end",function(){if(u("wrapped end"),z.decoder&&!z.ended){var V=z.decoder.end();V&&V.length&&A.push(V)}A.push(null)}),O.on("data",function(V){u("wrapped data"),z.decoder&&(V=z.decoder.write(V)),z.objectMode&&V==null||(z.objectMode||V&&V.length)&&(A.push(V)||(U=!0,O.pause()))}),O)this[X]===void 0&&typeof O[X]=="function"&&(this[X]=function(V){return function(){return O[V].apply(O,arguments)}}(X));for(var j=0;j<x.length;j++)O.on(x[j],this.emit.bind(this,x[j]));return this._read=function(V){u("wrapped _read",V),U&&(U=!1,O.resume())},this},Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),N._fromList=b}).call(this)}).call(this,s("_process"),typeof Zt<"u"?Zt: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(s,C,_){C.exports=r;var d=s("./_stream_duplex"),a=Object.create(s("core-util-is"));function o(l,n){var i=this._transformState;i.transforming=!1;var c=i.writecb;if(!c)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,n!=null&&this.push(n),c(l);var f=this._readableState;f.reading=!1,(f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}function r(l){if(!(this instanceof r))return new r(l);d.call(this,l),this._transformState={afterTransform:o.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",t)}function t(){var l=this;typeof this._flush=="function"?this._flush(function(n,i){e(l,n,i)}):e(this,null,null)}function e(l,n,i){if(n)return l.emit("error",n);if(i!=null&&l.push(i),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)}a.inherits=s("inherits"),a.inherits(r,d),r.prototype.push=function(l,n){return this._transformState.needTransform=!1,d.prototype.push.call(this,l,n)},r.prototype._transform=function(l,n,i){throw new Error("_transform() is not implemented")},r.prototype._write=function(l,n,i){var c=this._transformState;if(c.writecb=i,c.writechunk=l,c.writeencoding=n,!c.transforming){var f=this._readableState;(c.needTransform||f.needReadable||f.length<f.highWaterMark)&&this._read(f.highWaterMark)}},r.prototype._read=function(l){var n=this._transformState;n.writechunk!==null&&n.writecb&&!n.transforming?(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform)):n.needTransform=!0},r.prototype._destroy=function(l,n){var i=this;d.prototype._destroy.call(this,l,function(c){n(c),i.emit("close")})}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(s,C,_){(function(d,a,o){(function(){var r=s("process-nextick-args");function t(D){var S=this;this.next=null,this.entry=null,this.finish=function(){(function(T,v,m){var b=T.entry;for(T.entry=null;b;){var g=b.callback;v.pendingcb--,g(m),b=b.next}v.corkedRequestsFree.next=T})(S,D)}}C.exports=R;var e,l=!d.browser&&["v0.10","v0.9."].indexOf(d.version.slice(0,5))>-1?o:r.nextTick;R.WritableState=x;var n=Object.create(s("core-util-is"));n.inherits=s("inherits");var i={deprecate:s("util-deprecate")},c=s("./internal/streams/stream"),f=s("safe-buffer").Buffer,u=(a!==void 0?a:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},p,h=s("./internal/streams/destroy");function w(){}function x(D,S){e=e||s("./_stream_duplex"),D=D||{};var T=S instanceof e;this.objectMode=!!D.objectMode,T&&(this.objectMode=this.objectMode||!!D.writableObjectMode);var v=D.highWaterMark,m=D.writableHighWaterMark,b=this.objectMode?16:16384;this.highWaterMark=v||v===0?v:T&&(m||m===0)?m:b,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 g=D.decodeStrings===!1;this.decodeStrings=!g,this.defaultEncoding=D.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(y){(function(k,O){var A=k._writableState,z=A.sync,U=A.writecb;if(function(j){j.writing=!1,j.writecb=null,j.length-=j.writelen,j.writelen=0}(A),O)(function(j,V,E,M,L){--V.pendingcb,E?(r.nextTick(L,M),r.nextTick($,j,V),j._writableState.errorEmitted=!0,j.emit("error",M)):(L(M),j._writableState.errorEmitted=!0,j.emit("error",M),$(j,V))})(k,A,z,O,U);else{var X=P(A);X||A.corked||A.bufferProcessing||!A.bufferedRequest||I(k,A),z?l(F,k,A,X,U):F(k,A,X,U)}})(S,y)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}function R(D){if(e=e||s("./_stream_duplex"),!(p.call(R,this)||this instanceof e))return new R(D);this._writableState=new x(D,this),this.writable=!0,D&&(typeof D.write=="function"&&(this._write=D.write),typeof D.writev=="function"&&(this._writev=D.writev),typeof D.destroy=="function"&&(this._destroy=D.destroy),typeof D.final=="function"&&(this._final=D.final)),c.call(this)}function N(D,S,T,v,m,b,g){S.writelen=v,S.writecb=g,S.writing=!0,S.sync=!0,T?D._writev(m,S.onwrite):D._write(m,b,S.onwrite),S.sync=!1}function F(D,S,T,v){T||function(m,b){b.length===0&&b.needDrain&&(b.needDrain=!1,m.emit("drain"))}(D,S),S.pendingcb--,v(),$(D,S)}function I(D,S){S.bufferProcessing=!0;var T=S.bufferedRequest;if(D._writev&&T&&T.next){var v=S.bufferedRequestCount,m=new Array(v),b=S.corkedRequestsFree;b.entry=T;for(var g=0,y=!0;T;)m[g]=T,T.isBuf||(y=!1),T=T.next,g+=1;m.allBuffers=y,N(D,S,!0,S.length,m,"",b.finish),S.pendingcb++,S.lastBufferedRequest=null,b.next?(S.corkedRequestsFree=b.next,b.next=null):S.corkedRequestsFree=new t(S),S.bufferedRequestCount=0}else{for(;T;){var k=T.chunk,O=T.encoding,A=T.callback;if(N(D,S,!1,S.objectMode?1:k.length,k,O,A),T=T.next,S.bufferedRequestCount--,S.writing)break}T===null&&(S.lastBufferedRequest=null)}S.bufferedRequest=T,S.bufferProcessing=!1}function P(D){return D.ending&&D.length===0&&D.bufferedRequest===null&&!D.finished&&!D.writing}function B(D,S){D._final(function(T){S.pendingcb--,T&&D.emit("error",T),S.prefinished=!0,D.emit("prefinish"),$(D,S)})}function $(D,S){var T=P(S);return T&&(function(v,m){m.prefinished||m.finalCalled||(typeof v._final=="function"?(m.pendingcb++,m.finalCalled=!0,r.nextTick(B,v,m)):(m.prefinished=!0,v.emit("prefinish")))}(D,S),S.pendingcb===0&&(S.finished=!0,D.emit("finish"))),T}n.inherits(R,c),x.prototype.getBuffer=function(){for(var D=this.bufferedRequest,S=[];D;)S.push(D),D=D.next;return S},function(){try{Object.defineProperty(x.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(R,Symbol.hasInstance,{value:function(D){return!!p.call(this,D)||this===R&&D&&D._writableState instanceof x}})):p=function(D){return D instanceof this},R.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},R.prototype.write=function(D,S,T){var v,m=this._writableState,b=!1,g=!m.objectMode&&(v=D,f.isBuffer(v)||v instanceof u);return g&&!f.isBuffer(D)&&(D=function(y){return f.from(y)}(D)),typeof S=="function"&&(T=S,S=null),g?S="buffer":S||(S=m.defaultEncoding),typeof T!="function"&&(T=w),m.ended?function(y,k){var O=new Error("write after end");y.emit("error",O),r.nextTick(k,O)}(this,T):(g||function(y,k,O,A){var z=!0,U=!1;return O===null?U=new TypeError("May not write null values to stream"):typeof O=="string"||O===void 0||k.objectMode||(U=new TypeError("Invalid non-string/buffer chunk")),U&&(y.emit("error",U),r.nextTick(A,U),z=!1),z}(this,m,D,T))&&(m.pendingcb++,b=function(y,k,O,A,z,U){if(!O){var X=function(M,L,q){return M.objectMode||M.decodeStrings===!1||typeof L!="string"||(L=f.from(L,q)),L}(k,A,z);A!==X&&(O=!0,z="buffer",A=X)}var j=k.objectMode?1:A.length;k.length+=j;var V=k.length<k.highWaterMark;if(V||(k.needDrain=!0),k.writing||k.corked){var E=k.lastBufferedRequest;k.lastBufferedRequest={chunk:A,encoding:z,isBuf:O,callback:U,next:null},E?E.next=k.lastBufferedRequest:k.bufferedRequest=k.lastBufferedRequest,k.bufferedRequestCount+=1}else N(y,k,!1,j,A,z,U);return V}(this,m,g,D,S,T)),b},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){var D=this._writableState;D.corked&&(D.corked--,D.writing||D.corked||D.bufferProcessing||!D.bufferedRequest||I(this,D))},R.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},Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),R.prototype._write=function(D,S,T){T(new Error("_write() is not implemented"))},R.prototype._writev=null,R.prototype.end=function(D,S,T){var v=this._writableState;typeof D=="function"?(T=D,D=null,S=null):typeof S=="function"&&(T=S,S=null),D!=null&&this.write(D,S),v.corked&&(v.corked=1,this.uncork()),v.ending||function(m,b,g){b.ending=!0,$(m,b),g&&(b.finished?r.nextTick(g):m.once("finish",g)),b.ended=!0,m.writable=!1}(this,v,T)},Object.defineProperty(R.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(D){this._writableState&&(this._writableState.destroyed=D)}}),R.prototype.destroy=h.destroy,R.prototype._undestroy=h.undestroy,R.prototype._destroy=function(D,S){this.end(),S(D)}}).call(this)}).call(this,s("_process"),typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{},s("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(s,C,_){var d=s("safe-buffer").Buffer,a=s("util");C.exports=function(){function o(){(function(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")})(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(r){var t={data:r,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},o.prototype.unshift=function(r){var t={data:r,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length},o.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(r){if(this.length===0)return"";for(var t=this.head,e=""+t.data;t=t.next;)e+=r+t.data;return e},o.prototype.concat=function(r){if(this.length===0)return d.alloc(0);for(var t,e,l,n=d.allocUnsafe(r>>>0),i=this.head,c=0;i;)t=i.data,e=n,l=c,t.copy(e,l),c+=i.data.length,i=i.next;return n},o}(),a&&a.inspect&&a.inspect.custom&&(C.exports.prototype[a.inspect.custom]=function(){var o=a.inspect({length:this.length});return this.constructor.name+" "+o})},{"safe-buffer":520,util:188}],514:[function(s,C,_){var d=s("process-nextick-args");function a(o,r){o.emit("error",r)}C.exports={destroy:function(o,r){var t=this,e=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return e||l?(r?r(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,d.nextTick(a,this,o)):d.nextTick(a,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(n){!r&&n?t._writableState?t._writableState.errorEmitted||(t._writableState.errorEmitted=!0,d.nextTick(a,t,n)):d.nextTick(a,t,n):r&&r(n)}),this)},undestroy:function(){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)}}},{"process-nextick-args":466}],515:[function(s,C,_){arguments[4][490][0].apply(_,arguments)},{dup:490,events:422}],516:[function(s,C,_){C.exports=s("./readable").PassThrough},{"./readable":517}],517:[function(s,C,_){(_=C.exports=s("./lib/_stream_readable.js")).Stream=_,_.Readable=_,_.Writable=s("./lib/_stream_writable.js"),_.Duplex=s("./lib/_stream_duplex.js"),_.Transform=s("./lib/_stream_transform.js"),_.PassThrough=s("./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(s,C,_){C.exports=s("./readable").Transform},{"./readable":517}],519:[function(s,C,_){C.exports=s("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(s,C,_){arguments[4][217][0].apply(_,arguments)},{buffer:220,dup:217}],521:[function(s,C,_){arguments[4][218][0].apply(_,arguments)},{dup:218,"safe-buffer":520}],522:[function(s,C,_){arguments[4][218][0].apply(_,arguments)},{dup:218,"safe-buffer":494}],523:[function(s,C,_){(function(d,a){(function(){var o=s("process/browser.js").nextTick,r=Function.prototype.apply,t=Array.prototype.slice,e={},l=0;function n(i,c){this._id=i,this._clearFn=c}_.setTimeout=function(){return new n(r.call(setTimeout,window,arguments),clearTimeout)},_.setInterval=function(){return new n(r.call(setInterval,window,arguments),clearInterval)},_.clearTimeout=_.clearInterval=function(i){i.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,this._id)},_.enroll=function(i,c){clearTimeout(i._idleTimeoutId),i._idleTimeout=c},_.unenroll=function(i){clearTimeout(i._idleTimeoutId),i._idleTimeout=-1},_._unrefActive=_.active=function(i){clearTimeout(i._idleTimeoutId);var c=i._idleTimeout;c>=0&&(i._idleTimeoutId=setTimeout(function(){i._onTimeout&&i._onTimeout()},c))},_.setImmediate=typeof d=="function"?d:function(i){var c=l++,f=!(arguments.length<2)&&t.call(arguments,1);return e[c]=!0,o(function(){e[c]&&(f?i.apply(null,f):i.call(null),_.clearImmediate(c))}),c},_.clearImmediate=typeof a=="function"?a:function(i){delete e[i]}}).call(this)}).call(this,s("timers").setImmediate,s("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(s,C,_){(function(d){(function(){function a(o){try{if(!d.localStorage)return!1}catch{return!1}var r=d.localStorage[o];return r!=null&&String(r).toLowerCase()==="true"}C.exports=function(o,r){if(a("noDeprecation"))return o;var t=!1;return function(){if(!t){if(a("throwDeprecation"))throw new Error(r);a("traceDeprecation")?console.trace(r):console.warn(r),t=!0}return o.apply(this,arguments)}}}).call(this)}).call(this,typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(s,C,_){typeof Object.create=="function"?C.exports=function(d,a){d.super_=a,d.prototype=Object.create(a.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}})}:C.exports=function(d,a){d.super_=a;var o=function(){};o.prototype=a.prototype,d.prototype=new o,d.prototype.constructor=d}},{}],526:[function(s,C,_){C.exports=function(d){return d&&typeof d=="object"&&typeof d.copy=="function"&&typeof d.fill=="function"&&typeof d.readUInt8=="function"}},{}],527:[function(s,C,_){(function(d,a){(function(){var o=/%[sdj%]/g;_.format=function(m){if(!x(m)){for(var b=[],g=0;g<arguments.length;g++)b.push(e(arguments[g]));return b.join(" ")}g=1;for(var y=arguments,k=y.length,O=String(m).replace(o,function(z){if(z==="%%")return"%";if(g>=k)return z;switch(z){case"%s":return String(y[g++]);case"%d":return Number(y[g++]);case"%j":try{return JSON.stringify(y[g++])}catch{return"[Circular]"}default:return z}}),A=y[g];g<k;A=y[++g])h(A)||!F(A)?O+=" "+A:O+=" "+e(A);return O},_.deprecate=function(m,b){if(R(a.process))return function(){return _.deprecate(m,b).apply(this,arguments)};if(d.noDeprecation===!0)return m;var g=!1;return function(){if(!g){if(d.throwDeprecation)throw new Error(b);d.traceDeprecation?console.trace(b):console.error(b),g=!0}return m.apply(this,arguments)}};var r,t={};function e(m,b){var g={seen:[],stylize:n};return arguments.length>=3&&(g.depth=arguments[2]),arguments.length>=4&&(g.colors=arguments[3]),p(b)?g.showHidden=b:b&&_._extend(g,b),R(g.showHidden)&&(g.showHidden=!1),R(g.depth)&&(g.depth=2),R(g.colors)&&(g.colors=!1),R(g.customInspect)&&(g.customInspect=!0),g.colors&&(g.stylize=l),i(g,m,g.depth)}function l(m,b){var g=e.styles[b];return g?"\x1B["+e.colors[g][0]+"m"+m+"\x1B["+e.colors[g][1]+"m":m}function n(m,b){return m}function i(m,b,g){if(m.customInspect&&b&&B(b.inspect)&&b.inspect!==_.inspect&&(!b.constructor||b.constructor.prototype!==b)){var y=b.inspect(g,m);return x(y)||(y=i(m,y,g)),y}var k=function(E,M){if(R(M))return E.stylize("undefined","undefined");if(x(M)){var L="'"+JSON.stringify(M).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(L,"string")}if(w(M))return E.stylize(""+M,"number");if(p(M))return E.stylize(""+M,"boolean");if(h(M))return E.stylize("null","null")}(m,b);if(k)return k;var O=Object.keys(b),A=function(E){var M={};return E.forEach(function(L,q){M[L]=!0}),M}(O);if(m.showHidden&&(O=Object.getOwnPropertyNames(b)),P(b)&&(O.indexOf("message")>=0||O.indexOf("description")>=0))return c(b);if(O.length===0){if(B(b)){var z=b.name?": "+b.name:"";return m.stylize("[Function"+z+"]","special")}if(N(b))return m.stylize(RegExp.prototype.toString.call(b),"regexp");if(I(b))return m.stylize(Date.prototype.toString.call(b),"date");if(P(b))return c(b)}var U,X="",j=!1,V=["{","}"];return u(b)&&(j=!0,V=["[","]"]),B(b)&&(X=" [Function"+(b.name?": "+b.name:"")+"]"),N(b)&&(X=" "+RegExp.prototype.toString.call(b)),I(b)&&(X=" "+Date.prototype.toUTCString.call(b)),P(b)&&(X=" "+c(b)),O.length!==0||j&&b.length!=0?g<0?N(b)?m.stylize(RegExp.prototype.toString.call(b),"regexp"):m.stylize("[Object]","special"):(m.seen.push(b),U=j?function(E,M,L,q,Z){for(var W=[],K=0,rt=M.length;K<rt;++K)v(M,String(K))?W.push(f(E,M,L,q,String(K),!0)):W.push("");return Z.forEach(function(et){et.match(/^\d+$/)||W.push(f(E,M,L,q,et,!0))}),W}(m,b,g,A,O):O.map(function(E){return f(m,b,g,A,E,j)}),m.seen.pop(),function(E,M,L){return E.reduce(function(q,Z){return Z.indexOf(`
|
|
28
|
-
`)>=0,q+Z.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?L[0]+(M===""?"":M+`
|
|
29
|
-
`)+" "+E.join(`,
|
|
30
|
-
`)+" "+L[1]:L[0]+M+" "+E.join(", ")+" "+L[1]}(U,X,V)):V[0]+X+V[1]}function c(m){return"["+Error.prototype.toString.call(m)+"]"}function f(m,b,g,y,k,O){var A,z,U;if((U=Object.getOwnPropertyDescriptor(b,k)||{value:b[k]}).get?z=U.set?m.stylize("[Getter/Setter]","special"):m.stylize("[Getter]","special"):U.set&&(z=m.stylize("[Setter]","special")),v(y,k)||(A="["+k+"]"),z||(m.seen.indexOf(U.value)<0?(z=h(g)?i(m,U.value,null):i(m,U.value,g-1)).indexOf(`
|
|
31
|
-
`)>-1&&(z=O?z.split(`
|
|
32
|
-
`).map(function(X){return" "+X}).join(`
|
|
33
|
-
`).substr(2):`
|
|
34
|
-
`+z.split(`
|
|
35
|
-
`).map(function(X){return" "+X}).join(`
|
|
36
|
-
`)):z=m.stylize("[Circular]","special")),R(A)){if(O&&k.match(/^\d+$/))return z;(A=JSON.stringify(""+k)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(A=A.substr(1,A.length-2),A=m.stylize(A,"name")):(A=A.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),A=m.stylize(A,"string"))}return A+": "+z}function u(m){return Array.isArray(m)}function p(m){return typeof m=="boolean"}function h(m){return m===null}function w(m){return typeof m=="number"}function x(m){return typeof m=="string"}function R(m){return m===void 0}function N(m){return F(m)&&$(m)==="[object RegExp]"}function F(m){return typeof m=="object"&&m!==null}function I(m){return F(m)&&$(m)==="[object Date]"}function P(m){return F(m)&&($(m)==="[object Error]"||m instanceof Error)}function B(m){return typeof m=="function"}function $(m){return Object.prototype.toString.call(m)}function D(m){return m<10?"0"+m.toString(10):m.toString(10)}_.debuglog=function(m){if(R(r)&&(r=d.env.NODE_DEBUG||""),m=m.toUpperCase(),!t[m])if(new RegExp("\\b"+m+"\\b","i").test(r)){var b=d.pid;t[m]=function(){var g=_.format.apply(_,arguments);console.error("%s %d: %s",m,b,g)}}else t[m]=function(){};return t[m]},_.inspect=e,e.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]},e.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},_.isArray=u,_.isBoolean=p,_.isNull=h,_.isNullOrUndefined=function(m){return m==null},_.isNumber=w,_.isString=x,_.isSymbol=function(m){return typeof m=="symbol"},_.isUndefined=R,_.isRegExp=N,_.isObject=F,_.isDate=I,_.isError=P,_.isFunction=B,_.isPrimitive=function(m){return m===null||typeof m=="boolean"||typeof m=="number"||typeof m=="string"||typeof m=="symbol"||m===void 0},_.isBuffer=s("./support/isBuffer");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var m=new Date,b=[D(m.getHours()),D(m.getMinutes()),D(m.getSeconds())].join(":");return[m.getDate(),S[m.getMonth()],b].join(" ")}function v(m,b){return Object.prototype.hasOwnProperty.call(m,b)}_.log=function(){console.log("%s - %s",T(),_.format.apply(_,arguments))},_.inherits=s("inherits"),_._extend=function(m,b){if(!b||!F(b))return m;for(var g=Object.keys(b),y=g.length;y--;)m[g[y]]=b[g[y]];return m}}).call(this)}).call(this,s("_process"),typeof Zt<"u"?Zt:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),Object.defineProperty(_,"v1",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(_,"v3",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(_,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_,"v5",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(_,"NIL",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_,"version",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(_,"validate",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_,"stringify",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_,"parse",{enumerable:!0,get:function(){return i.default}});var d=c(s("./v1.js")),a=c(s("./v3.js")),o=c(s("./v4.js")),r=c(s("./v5.js")),t=c(s("./nil.js")),e=c(s("./version.js")),l=c(s("./validate.js")),n=c(s("./stringify.js")),i=c(s("./parse.js"));function c(f){return f&&f.__esModule?f:{default:f}}},{"./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(s,C,_){function d(i){return 14+(i+64>>>9<<4)+1}function a(i,c){const f=(65535&i)+(65535&c);return(i>>16)+(c>>16)+(f>>16)<<16|65535&f}function o(i,c,f,u,p,h){return a((w=a(a(c,i),a(u,h)))<<(x=p)|w>>>32-x,f);var w,x}function r(i,c,f,u,p,h,w){return o(c&f|~c&u,i,c,p,h,w)}function t(i,c,f,u,p,h,w){return o(c&u|f&~u,i,c,p,h,w)}function e(i,c,f,u,p,h,w){return o(c^f^u,i,c,p,h,w)}function l(i,c,f,u,p,h,w){return o(f^(c|~u),i,c,p,h,w)}Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var n=function(i){if(typeof i=="string"){const c=unescape(encodeURIComponent(i));i=new Uint8Array(c.length);for(let f=0;f<c.length;++f)i[f]=c.charCodeAt(f)}return function(c){const f=[],u=32*c.length;for(let p=0;p<u;p+=8){const h=c[p>>5]>>>p%32&255,w=parseInt("0123456789abcdef".charAt(h>>>4&15)+"0123456789abcdef".charAt(15&h),16);f.push(w)}return f}(function(c,f){c[f>>5]|=128<<f%32,c[d(f)-1]=f;let u=1732584193,p=-271733879,h=-1732584194,w=271733878;for(let x=0;x<c.length;x+=16){const R=u,N=p,F=h,I=w;u=r(u,p,h,w,c[x],7,-680876936),w=r(w,u,p,h,c[x+1],12,-389564586),h=r(h,w,u,p,c[x+2],17,606105819),p=r(p,h,w,u,c[x+3],22,-1044525330),u=r(u,p,h,w,c[x+4],7,-176418897),w=r(w,u,p,h,c[x+5],12,1200080426),h=r(h,w,u,p,c[x+6],17,-1473231341),p=r(p,h,w,u,c[x+7],22,-45705983),u=r(u,p,h,w,c[x+8],7,1770035416),w=r(w,u,p,h,c[x+9],12,-1958414417),h=r(h,w,u,p,c[x+10],17,-42063),p=r(p,h,w,u,c[x+11],22,-1990404162),u=r(u,p,h,w,c[x+12],7,1804603682),w=r(w,u,p,h,c[x+13],12,-40341101),h=r(h,w,u,p,c[x+14],17,-1502002290),p=r(p,h,w,u,c[x+15],22,1236535329),u=t(u,p,h,w,c[x+1],5,-165796510),w=t(w,u,p,h,c[x+6],9,-1069501632),h=t(h,w,u,p,c[x+11],14,643717713),p=t(p,h,w,u,c[x],20,-373897302),u=t(u,p,h,w,c[x+5],5,-701558691),w=t(w,u,p,h,c[x+10],9,38016083),h=t(h,w,u,p,c[x+15],14,-660478335),p=t(p,h,w,u,c[x+4],20,-405537848),u=t(u,p,h,w,c[x+9],5,568446438),w=t(w,u,p,h,c[x+14],9,-1019803690),h=t(h,w,u,p,c[x+3],14,-187363961),p=t(p,h,w,u,c[x+8],20,1163531501),u=t(u,p,h,w,c[x+13],5,-1444681467),w=t(w,u,p,h,c[x+2],9,-51403784),h=t(h,w,u,p,c[x+7],14,1735328473),p=t(p,h,w,u,c[x+12],20,-1926607734),u=e(u,p,h,w,c[x+5],4,-378558),w=e(w,u,p,h,c[x+8],11,-2022574463),h=e(h,w,u,p,c[x+11],16,1839030562),p=e(p,h,w,u,c[x+14],23,-35309556),u=e(u,p,h,w,c[x+1],4,-1530992060),w=e(w,u,p,h,c[x+4],11,1272893353),h=e(h,w,u,p,c[x+7],16,-155497632),p=e(p,h,w,u,c[x+10],23,-1094730640),u=e(u,p,h,w,c[x+13],4,681279174),w=e(w,u,p,h,c[x],11,-358537222),h=e(h,w,u,p,c[x+3],16,-722521979),p=e(p,h,w,u,c[x+6],23,76029189),u=e(u,p,h,w,c[x+9],4,-640364487),w=e(w,u,p,h,c[x+12],11,-421815835),h=e(h,w,u,p,c[x+15],16,530742520),p=e(p,h,w,u,c[x+2],23,-995338651),u=l(u,p,h,w,c[x],6,-198630844),w=l(w,u,p,h,c[x+7],10,1126891415),h=l(h,w,u,p,c[x+14],15,-1416354905),p=l(p,h,w,u,c[x+5],21,-57434055),u=l(u,p,h,w,c[x+12],6,1700485571),w=l(w,u,p,h,c[x+3],10,-1894986606),h=l(h,w,u,p,c[x+10],15,-1051523),p=l(p,h,w,u,c[x+1],21,-2054922799),u=l(u,p,h,w,c[x+8],6,1873313359),w=l(w,u,p,h,c[x+15],10,-30611744),h=l(h,w,u,p,c[x+6],15,-1560198380),p=l(p,h,w,u,c[x+13],21,1309151649),u=l(u,p,h,w,c[x+4],6,-145523070),w=l(w,u,p,h,c[x+11],10,-1120210379),h=l(h,w,u,p,c[x+2],15,718787259),p=l(p,h,w,u,c[x+9],21,-343485551),u=a(u,R),p=a(p,N),h=a(h,F),w=a(w,I)}return[u,p,h,w]}(function(c){if(c.length===0)return[];const f=8*c.length,u=new Uint32Array(d(f));for(let p=0;p<f;p+=8)u[p>>5]|=(255&c[p/8])<<p%32;return u}(i),8*i.length))};_.default=n},{}],530:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d,a=(d=s("./validate.js"))&&d.__esModule?d:{default:d},o=function(r){if(!(0,a.default)(r))throw TypeError("Invalid UUID");let t;const e=new Uint8Array(16);return e[0]=(t=parseInt(r.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=255&t,e[4]=(t=parseInt(r.slice(9,13),16))>>>8,e[5]=255&t,e[6]=(t=parseInt(r.slice(14,18),16))>>>8,e[7]=255&t,e[8]=(t=parseInt(r.slice(19,23),16))>>>8,e[9]=255&t,e[10]=(t=parseInt(r.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=255&t,e};_.default=o},{"./validate.js":541}],532:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0,_.default=/^(?:[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},{}],533:[function(s,C,_){let d;Object.defineProperty(_,"__esModule",{value:!0}),_.default=function(){if(!d&&(d=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!d))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return d(a)};const a=new Uint8Array(16)},{}],534:[function(s,C,_){function d(r,t,e,l){switch(r){case 0:return t&e^~t&l;case 1:return t^e^l;case 2:return t&e^t&l^e&l;case 3:return t^e^l}}function a(r,t){return r<<t|r>>>32-t}Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var o=function(r){const t=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){const c=unescape(encodeURIComponent(r));r=[];for(let f=0;f<c.length;++f)r.push(c.charCodeAt(f))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);const l=r.length/4+2,n=Math.ceil(l/16),i=new Array(n);for(let c=0;c<n;++c){const f=new Uint32Array(16);for(let u=0;u<16;++u)f[u]=r[64*c+4*u]<<24|r[64*c+4*u+1]<<16|r[64*c+4*u+2]<<8|r[64*c+4*u+3];i[c]=f}i[n-1][14]=8*(r.length-1)/Math.pow(2,32),i[n-1][14]=Math.floor(i[n-1][14]),i[n-1][15]=8*(r.length-1)&4294967295;for(let c=0;c<n;++c){const f=new Uint32Array(80);for(let R=0;R<16;++R)f[R]=i[c][R];for(let R=16;R<80;++R)f[R]=a(f[R-3]^f[R-8]^f[R-14]^f[R-16],1);let u=e[0],p=e[1],h=e[2],w=e[3],x=e[4];for(let R=0;R<80;++R){const N=Math.floor(R/20),F=a(u,5)+d(N,p,h,w)+x+t[N]+f[R]>>>0;x=w,w=h,h=a(p,30)>>>0,p=u,u=F}e[0]=e[0]+u>>>0,e[1]=e[1]+p>>>0,e[2]=e[2]+h>>>0,e[3]=e[3]+w>>>0,e[4]=e[4]+x>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,255&e[0],e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,255&e[1],e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,255&e[2],e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,255&e[3],e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,255&e[4]]};_.default=o},{}],535:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d,a=(d=s("./validate.js"))&&d.__esModule?d:{default:d};const o=[];for(let t=0;t<256;++t)o.push((t+256).toString(16).substr(1));var r=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const l=(o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]).toLowerCase();if(!(0,a.default)(l))throw TypeError("Stringified UUID is invalid");return l};_.default=r},{"./validate.js":541}],536:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=o(s("./rng.js")),a=o(s("./stringify.js"));function o(i){return i&&i.__esModule?i:{default:i}}let r,t,e=0,l=0;var n=function(i,c,f){let u=c&&f||0;const p=c||new Array(16);let h=(i=i||{}).node||r,w=i.clockseq!==void 0?i.clockseq:t;if(h==null||w==null){const P=i.random||(i.rng||d.default)();h==null&&(h=r=[1|P[0],P[1],P[2],P[3],P[4],P[5]]),w==null&&(w=t=16383&(P[6]<<8|P[7]))}let x=i.msecs!==void 0?i.msecs:Date.now(),R=i.nsecs!==void 0?i.nsecs:l+1;const N=x-e+(R-l)/1e4;if(N<0&&i.clockseq===void 0&&(w=w+1&16383),(N<0||x>e)&&i.nsecs===void 0&&(R=0),R>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");e=x,l=R,t=w,x+=122192928e5;const F=(1e4*(268435455&x)+R)%4294967296;p[u++]=F>>>24&255,p[u++]=F>>>16&255,p[u++]=F>>>8&255,p[u++]=255&F;const I=x/4294967296*1e4&268435455;p[u++]=I>>>8&255,p[u++]=255&I,p[u++]=I>>>24&15|16,p[u++]=I>>>16&255,p[u++]=w>>>8|128,p[u++]=255&w;for(let P=0;P<6;++P)p[u+P]=h[P];return c||(0,a.default)(p)};_.default=n},{"./rng.js":533,"./stringify.js":535}],537:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=o(s("./v35.js")),a=o(s("./md5.js"));function o(t){return t&&t.__esModule?t:{default:t}}var r=(0,d.default)("v3",48,a.default);_.default=r},{"./md5.js":529,"./v35.js":538}],538:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=function(e,l,n){function i(c,f,u,p){if(typeof c=="string"&&(c=function(w){w=unescape(encodeURIComponent(w));const x=[];for(let R=0;R<w.length;++R)x.push(w.charCodeAt(R));return x}(c)),typeof f=="string"&&(f=(0,a.default)(f)),f.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let h=new Uint8Array(16+c.length);if(h.set(f),h.set(c,f.length),h=n(h),h[6]=15&h[6]|l,h[8]=63&h[8]|128,u){p=p||0;for(let w=0;w<16;++w)u[p+w]=h[w];return u}return(0,d.default)(h)}try{i.name=e}catch{}return i.DNS=r,i.URL=t,i},_.URL=_.DNS=void 0;var d=o(s("./stringify.js")),a=o(s("./parse.js"));function o(e){return e&&e.__esModule?e:{default:e}}const r="6ba7b810-9dad-11d1-80b4-00c04fd430c8";_.DNS=r;const t="6ba7b811-9dad-11d1-80b4-00c04fd430c8";_.URL=t},{"./parse.js":531,"./stringify.js":535}],539:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=o(s("./rng.js")),a=o(s("./stringify.js"));function o(t){return t&&t.__esModule?t:{default:t}}var r=function(t,e,l){const n=(t=t||{}).random||(t.rng||d.default)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){l=l||0;for(let i=0;i<16;++i)e[l+i]=n[i];return e}return(0,a.default)(n)};_.default=r},{"./rng.js":533,"./stringify.js":535}],540:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d=o(s("./v35.js")),a=o(s("./sha1.js"));function o(t){return t&&t.__esModule?t:{default:t}}var r=(0,d.default)("v5",80,a.default);_.default=r},{"./sha1.js":534,"./v35.js":538}],541:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d,a=(d=s("./regex.js"))&&d.__esModule?d:{default:d},o=function(r){return typeof r=="string"&&a.default.test(r)};_.default=o},{"./regex.js":532}],542:[function(s,C,_){Object.defineProperty(_,"__esModule",{value:!0}),_.default=void 0;var d,a=(d=s("./validate.js"))&&d.__esModule?d:{default:d},o=function(r){if(!(0,a.default)(r))throw TypeError("Invalid UUID");return parseInt(r.substr(14,1),16)};_.default=o},{"./validate.js":541}],543:[function(s,C,_){/**
|
|
37
|
-
* Character classes and associated utilities for the 5th edition of XML 1.0.
|
|
38
|
-
*
|
|
39
|
-
* @author Louis-Dominique Dubeau
|
|
40
|
-
* @license MIT
|
|
41
|
-
* @copyright Louis-Dominique Dubeau
|
|
42
|
-
*/Object.defineProperty(_,"__esModule",{value:!0}),_.CHAR=`
|
|
43
|
-
\r --�𐀀-`,_.S=` \r
|
|
44
|
-
`,_.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",_.NAME_CHAR="-"+_.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",_.CHAR_RE=new RegExp("^["+_.CHAR+"]$","u"),_.S_RE=new RegExp("^["+_.S+"]+$","u"),_.NAME_START_CHAR_RE=new RegExp("^["+_.NAME_START_CHAR+"]$","u"),_.NAME_CHAR_RE=new RegExp("^["+_.NAME_CHAR+"]$","u"),_.NAME_RE=new RegExp("^["+_.NAME_START_CHAR+"]["+_.NAME_CHAR+"]*$","u"),_.NMTOKEN_RE=new RegExp("^["+_.NAME_CHAR+"]+$","u");function d(a){return a>=65&&a<=90||a>=97&&a<=122||a===58||a===95||a===8204||a===8205||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039}_.S_LIST=[32,10,13,9],_.isChar=function(a){return a>=32&&a<=55295||a===10||a===13||a===9||a>=57344&&a<=65533||a>=65536&&a<=1114111},_.isS=function(a){return a===32||a===10||a===13||a===9},_.isNameStartChar=d,_.isNameChar=function(a){return d(a)||a>=48&&a<=57||a===45||a===46||a===183||a>=768&&a<=879||a>=8255&&a<=8256}},{}],544:[function(s,C,_){/**
|
|
45
|
-
* Character classes and associated utilities for the 2nd edition of XML 1.1.
|
|
46
|
-
*
|
|
47
|
-
* @author Louis-Dominique Dubeau
|
|
48
|
-
* @license MIT
|
|
49
|
-
* @copyright Louis-Dominique Dubeau
|
|
50
|
-
*/Object.defineProperty(_,"__esModule",{value:!0}),_.CHAR="--�𐀀-",_.RESTRICTED_CHAR="-\b\v\f---",_.S=` \r
|
|
51
|
-
`,_.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",_.NAME_CHAR="-"+_.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",_.CHAR_RE=new RegExp("^["+_.CHAR+"]$","u"),_.RESTRICTED_CHAR_RE=new RegExp("^["+_.RESTRICTED_CHAR+"]$","u"),_.S_RE=new RegExp("^["+_.S+"]+$","u"),_.NAME_START_CHAR_RE=new RegExp("^["+_.NAME_START_CHAR+"]$","u"),_.NAME_CHAR_RE=new RegExp("^["+_.NAME_CHAR+"]$","u"),_.NAME_RE=new RegExp("^["+_.NAME_START_CHAR+"]["+_.NAME_CHAR+"]*$","u"),_.NMTOKEN_RE=new RegExp("^["+_.NAME_CHAR+"]+$","u");function d(a){return a>=65&&a<=90||a>=97&&a<=122||a===58||a===95||a===8204||a===8205||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039}_.S_LIST=[32,10,13,9],_.isChar=function(a){return a>=1&&a<=55295||a>=57344&&a<=65533||a>=65536&&a<=1114111},_.isRestrictedChar=function(a){return a>=1&&a<=8||a===11||a===12||a>=14&&a<=31||a>=127&&a<=132||a>=134&&a<=159},_.isCharAndNotRestricted=function(a){return a===9||a===10||a===13||a>31&&a<127||a===133||a>159&&a<=55295||a>=57344&&a<=65533||a>=65536&&a<=1114111},_.isS=function(a){return a===32||a===10||a===13||a===9},_.isNameStartChar=d,_.isNameChar=function(a){return d(a)||a>=48&&a<=57||a===45||a===46||a===183||a>=768&&a<=879||a>=8255&&a<=8256}},{}],545:[function(s,C,_){/**
|
|
52
|
-
* Character class utilities for XML NS 1.0 edition 3.
|
|
53
|
-
*
|
|
54
|
-
* @author Louis-Dominique Dubeau
|
|
55
|
-
* @license MIT
|
|
56
|
-
* @copyright Louis-Dominique Dubeau
|
|
57
|
-
*/function d(a){return a>=65&&a<=90||a===95||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533||a>=65536&&a<=983039}Object.defineProperty(_,"__esModule",{value:!0}),_.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",_.NC_NAME_CHAR="-"+_.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",_.NC_NAME_START_CHAR_RE=new RegExp("^["+_.NC_NAME_START_CHAR+"]$","u"),_.NC_NAME_CHAR_RE=new RegExp("^["+_.NC_NAME_CHAR+"]$","u"),_.NC_NAME_RE=new RegExp("^["+_.NC_NAME_START_CHAR+"]["+_.NC_NAME_CHAR+"]*$","u"),_.isNCNameStartChar=d,_.isNCNameChar=function(a){return d(a)||a===45||a===46||a>=48&&a<=57||a===183||a>=768&&a<=879||a>=8255&&a<=8256}},{}]},{},[15])(15)})})(ar);var br=ar.exports;const gr=Symbol.for("RenderColumnType");function xe(H,nt,s){return nt.$type=H,nt.$disableColumnMode=s==null?void 0:s.disableColumnMode,nt.$disableViewMode=s==null?void 0:s.disableViewMode,nt}function ke(H,nt){return nt.index?nt.index.split(".").reduce((s,C)=>s==null?void 0:s[C],H):[nt.key].reduce((s,C)=>s==null?void 0:s[C],H)}function We(H){return!!H&&(typeof H=="object"||typeof H=="function")&&typeof H.then=="function"}function yr(H){return xe("button",(s,C,_)=>{const d=Pe.useModal(),a=Array.isArray(H)?H:"buttons"in H?H.buttons:[H],o=(t,e)=>typeof t=="function"?t(s):t===void 0?e:t;async function r(t){if(await(t.confirm===!0?new Promise(l=>{d.confirm({title:"提示信息",content:t.confirmText??"您确定要执行该操作?",onOk:()=>l(!0),onCancel:()=>l(!1)})}):Promise.resolve(!0))&&(t!=null&&t.onClick)){const l=t.onClick(s);We(l)&&t.autoReload!==!1&&l.then(()=>{_!=null&&_.emits&&(_==null||_.emits("reload"))}),!We(l)&&t.autoReload===!0&&_!=null&&_.emits&&(_==null||_.emits("reload"))}}return dt.createVNode(dt.Fragment,null,[a.filter(t=>o(t.visiable,!0)).map(t=>dt.createVNode(ge.Button,{onClick:()=>r(t),type:t.type||"text",shape:t.shape,size:"mini",disabled:o(t.disabled,!1)},{icon:t.icon,default:()=>(typeof t.content=="function"?t.content(s):t.content)||""}))])},{disableViewMode:!0})}const vr={thousands:!0,inputUnit:"元",outputUnit:"元"},er={分:10**0,元:10**2,万:10**6};function wr(H){H={...vr,...H||{}};const nt=d=>{if(d==null)return;if((H==null?void 0:H.inputUnit)===(H==null?void 0:H.outputUnit))return d;const a=er[H.inputUnit]/er[H.outputUnit],o=parseFloat((d*a).toFixed(10));return(H==null?void 0:H.precision)===void 0?o:o.toFixed(H==null?void 0:H.precision)},s=d=>{if(d==null)return;const a=d.toString().split(".");return a[0]=a[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),a.join(".")},C=d=>{if((H==null?void 0:H.zeroString)!==void 0&&Number(d)===0)return H==null?void 0:H.zeroString;if((H==null?void 0:H.nullString)!==void 0&&isNaN(Number(d)))return H==null?void 0:H.nullString;const a=nt(Number(d));return H!=null&&H.thousands?s(a):a};return xe("dict",(d,a)=>{const o=ke(d,a);return dt.createVNode("div",null,[typeof(H==null?void 0:H.prefix)=="string"?dt.createVNode("span",null,[H.prefix]):typeof(H==null?void 0:H.prefix)=="function"?dt.createVNode("span",null,[H.prefix()]):void 0,dt.createVNode("span",{class:"currency_value"},[C(o)]),typeof(H==null?void 0:H.suffix)=="string"?dt.createVNode("span",null,[H.suffix]):typeof(H==null?void 0:H.suffix)=="function"?dt.createVNode("span",null,[H.suffix()]):void 0])})}var _r={exports:{}};(function(H,nt){(function(s,C){H.exports=C(Xe)})(Zt,function(s){function C(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var _=C(s),d={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a,o){return o==="W"?a+"周":a+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(a,o){var r=100*a+o;return r<600?"凌晨":r<900?"早上":r<1100?"上午":r<1300?"中午":r<1800?"下午":"晚上"}};return _.default.locale(d,null,!0),d})})(_r);Xe.locale("zh-cn");const xr={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",week:"ddd"};function Sr(H){return xe("date",(s,C)=>{const _=ke(s,C),d=typeof(H==null?void 0:H.format)=="function"?H==null?void 0:H.format():xr[(H==null?void 0:H.format)||"datetime"],a=Xe(_);return dt.createVNode("span",null,[a.isValid()&&a.format(d)])})}const kr={success:"arcoblue",warning:"orange",error:"red"};function Cr(H){return H instanceof Map?H:H.dict}function Mr(H){const nt=H instanceof Map?!1:H.tag;return typeof nt=="string"?kr[nt]:nt}function Tr(H){const nt=Cr(H),s=Mr(H);return xe("dict",(_,d)=>{const a=ke(_,d);return s?dt.createVNode(ge.Tag,{color:s===!0?void 0:s},{default:()=>[nt.get(a)||a]}):dt.createVNode("span",null,[nt.get(a)||a])})}function Er(H){const nt=Pe.useModal();async function s(_,d){_.confirm&&!await new Promise((o,r)=>{nt.open("confirm",{title:"确认",content:_.confirmText||"是否确认执行该操作?",onOk:()=>o(!0),onCancel:()=>o(!1)})})||_.onClick(d)}return xe("dropdown",(_,d)=>{const a=H.options.filter(o=>typeof o.visiable=="function"?o.visiable(_):o.visiable!==!1);return dt.createVNode(ge.Dropdown,{trigger:(H==null?void 0:H.trigger)||"click"},{default:()=>dt.createVNode(ge.Button,{disabled:a.length===0,type:"text"},{default:()=>[(H==null?void 0:H.content)||"操作"]}),content:()=>a.map(o=>dt.createVNode(ge.Dropdown.Option,{onClick:()=>s(o,_)},{default:()=>[typeof o.content=="function"?o.content(_):o.content]}))})})}const Ar={size:30};function Rr(H){H={...Ar,...H||{}};function nt(_,d){var o;const a=(o=document.getElementById(_))==null?void 0:o.getBoundingClientRect();if(a){const r=new Image(100,100);r.id=`IMAGE_${_}_PREVIEW`,r.src=d,r.setAttribute("style",["position:fixed;",`top:${a.top}px;`,`left:${a.left+a.width}px;`,"min-width:400px;","height:auto;","z-index:100;"].join("")),document.body.appendChild(r)}}function s(_){const d=document.getElementById(`IMAGE_${_}_PREVIEW`);d==null||d.remove()}return xe("image",(_,d,a)=>{const o=ke(_,d),r=Math.random().toString(32).slice(2).toUpperCase(),t={maxWidth:"100%",maxHeight:"100%",borderRadius:H==null?void 0:H.radius,objectFit:"contain",transform:`rotate(${(H==null?void 0:H.rotate)||0}deg)`,cursor:H!=null&&H.preview?"pointer":"unset"},e=`${d.index||d.key}_parsed`;if(H!=null&&H.parse){const l=H==null?void 0:H.parse(o,_);We(l)?l.then(n=>_[e]=n??""):_[e]=l??""}if(H!=null&&H.parse&&!_[e]===void 0)return dt.createVNode("div",null,[dt.createTextVNode("Loading...")]);{const l=_[e]||o;return l?dt.createVNode("div",{id:r,onMouseenter:()=>(H==null?void 0:H.preview)&&!(a!=null&&a.previewing)&&nt(r,l),onMouseleave:()=>(H==null?void 0:H.preview)&&!(a!=null&&a.previewing)&&s(r),style:{display:"flex",justifyContent:"center",alignItems:"center",height:`${H==null?void 0:H.size}px`}},[dt.createVNode("img",{alt:"image",style:t,src:l},null)]):dt.createVNode(dt.Fragment,null,null)}})}const Or=" ";function jr(H){return H==null?void 0:H.replace(/(\d{3})\d*(\d{4})/g,"$1****$2")}function Ir(H,nt){return H==null?void 0:H.replace(/\*/g,"M").replace(/\B(?=(?:\S{4})+$)/g,nt??Or).replace(/M/g,"*")}function Nr(H){return xe("phone",(s,C)=>{const _=ke(s,C),d=Ir(H!=null&&H.safe?jr(_):_,H==null?void 0:H.separator);return H!=null&&H.callable?dt.createVNode("a",{style:"text-decoration:none;",href:`tel:${_}`},[d]):dt.createVNode("span",null,[d])})}function Pr(H){return xe("render",s=>H(s))}function Br(H){return xe("tag",(s,C)=>{const _=(H==null?void 0:H.maxCount)||5,d=H!=null&&H.formatter?H.formatter(s):ke(s,C),a=(H==null?void 0:H.textColors)||["#F87335"],o=(H==null?void 0:H.backgroundColors)||["#FFF4E8"],r=d.length>_,t=H==null?void 0:H.minWidth;return dt.createVNode("div",{style:{display:"flex",flexWrap:"wrap"}},[d.slice(0,_).map((e,l)=>{const n=typeof a=="function"?a(e,l):a[l%a.length],i=typeof o=="function"?o(e,l):o[l%o.length];return dt.createVNode("span",{style:{minWidth:t?`${t}px`:"unset",textAlign:"center",margin:"2px",padding:"2px 5px",border:`solid 2px ${H!=null&&H.border?n:"transparent"}`,borderRadius:`${(H==null?void 0:H.radius)||0}px`,color:n,backgroundColor:i}},[e])}),r&&"..."])})}function rr(H){if(typeof H=="string")return H;if(typeof H=="number")return`${H}px`}function Dr(H,nt,s){var C,_;return typeof H=="function"?(C=H(s))==null?void 0:C.toString():typeof(H==null?void 0:H.content)=="function"?(_=H==null?void 0:H.content(s))==null?void 0:_.toString():typeof(H==null?void 0:H.content)=="string"?H==null?void 0:H.content:ke(s,nt)}function Fr(H,nt){if(typeof H!="function"){if(typeof(H==null?void 0:H.color)=="function")return H==null?void 0:H.color(nt);if(typeof(H==null?void 0:H.color)=="string")return H==null?void 0:H.color}}function Lr(H,nt){if(typeof H!="function")return typeof(H==null?void 0:H.size)=="function"?rr(H==null?void 0:H.size(nt)):rr(H==null?void 0:H.size)}function zr(H,nt){let s="";const C=Fr(H,nt),_=Lr(H,nt);return C&&(s+=`color:${C};`),_&&(s+=`font-size:${_};`),s}function Ur(H){return xe("text",(s,C)=>{const _=Dr(H||{},C,s),d=zr(H||{},s);return dt.createVNode("span",{style:d},[_])})}function $r(){return{dropdown:Er,text:Ur,dict:Tr,tag:Br,render:Pr,phone:Nr,image:Rr,currency:wr,date:Sr,button:yr}}function Ge(H,nt){if(!(H!=null&&H.render))return;const s=H.render({...$r()});return{render:({record:C})=>s(C,H,nt),[gr]:s.$type,disableColumnMode:s.$disableColumnMode,disableViewMode:s.$disableViewMode,isRender:s.$type==="render",type:s.$type}}function nr({columns:H,columnsOptions:nt,columnsGroups:s,pageMode:C,collapsedColumns:_,events:d}){const a=H.map(o=>({...nt||{},...o})).map(o=>qr(o,C,_,d)).filter(Boolean);return Hr(a,s)}function Vr(H,nt){const s=[],C=d=>{if("children"in d&&(d.children=d.children.map(C)),"key"in d){const a=nt.find(o=>{var r;return((r=Object.getOwnPropertyDescriptor(o,"key"))==null?void 0:r.value)===d.key});if(a)return s.push(a),a}return d},_=C(H);if(s!=null&&s.length&&_){const d=Math.min(...s.map(a=>nt.indexOf(a)));s.forEach(a=>{const o=nt.indexOf(a);nt.splice(o,1)}),nt.splice(d,0,_)}}function Hr(H,nt=[]){return nt.forEach(s=>{Vr(s,H)}),H}function qr(H,nt,s,C){const{render:_,disableColumnMode:d}=Ge(H,{previewing:!1,emits:C})||{};if(!(d||H.visiable===!1)&&!(typeof H.visiable=="function"&&H.visiable()===!1)&&!s.value.find(a=>a.key===H.key&&a.collapsed===!0))return{dataIndex:H.index||H.key,title:H.title,width:H.width==="auto"?void 0:H.width,align:H.align??"center",fixed:H.fixed,ellipsis:H.ellipsis??!0,sortable:H.sortable?{sorter:nt==="server",sortDirections:["ascend","descend"],defaultSortOrder:H.sortable==="asc"?"ascend":"descend"}:void 0,tooltip:!0,...H.extraProps,key:H.key,render:_}}function Wr(){return new br.Workbook}function Xr(H,nt="Sheet1"){return H.addWorksheet(nt,{headerFooter:{firstHeader:"",firstFooter:""}})}function Yr(H,nt){H.columns=nt}function Kr(H,nt){H.addRows(nt)}async function Zr({columns:H,rows:nt,filename:s}){const C=Wr(),_=Xr(C);Yr(_,H),Kr(_,nt);const d=await C.xlsx.writeBuffer(),a=new Blob([d]);Gr(a,s||`${Xe().format("YYYY-MM-DD HH:mm:ss")}.xlsx`)}function Gr(H,nt){const s=document.createElement("a");s.download=nt||"download",s.href=URL.createObjectURL(H),s.click(),setTimeout(()=>{URL.revokeObjectURL(s.href)},1e3)}function Jr(H,nt){const s={};return H.filter(_=>_.exportable!==!1).map(_=>({options:_,render:Ge(_),content:typeof _.exportable=="object"?_.exportable.content:void 0})).forEach(_=>{var o;const d=(o=_.render)==null?void 0:o.render,a=()=>{var r;switch(!0){case!!_.content:return _.content&&_.content(nt);case!!d:{const t=document.createElement("div"),e=dt.h(()=>d&&d({record:nt}));return dt.render(e,t),(r=e.el)==null?void 0:r.innerText}default:return ke(nt,_.options)}};s[_.options.key]=a()}),s}function Qr(H){switch(!0){case typeof H=="number":return H/6;case(typeof H=="string"&&H.endsWith("px")):return parseInt(H.replace("px",""))/6;default:return 30}}function tn(H,nt,s){const C=H.filter(d=>d.exportable!==!1).map(d=>{var a,o;return{key:d.key,header:((a=d.exportable)==null?void 0:a.header)||d.title,width:((o=d.exportable)==null?void 0:o.width)||Qr(d.width)}}),_=nt.map(d=>Jr(H,d));Zr({columns:C,rows:_,filename:s})}function en(){return{exportExcel:tn}}class Je{constructor(nt){Re(this,"sort",{});Re(this,"defaultSort",{});Re(this,"before",nt=>{nt.paramsQuery={...nt.paramsQuery||{},sort:this.stringify(this.sort)}});nt&&(this.sort=nt,this.defaultSort=nt)}update(nt,s){nt&&s&&(this.sort[nt]=s)}remove(nt){const s=Object.entries(this.sort).filter(([C])=>C!==nt);this.sort={},s&&s.forEach(([C,_])=>{this.sort[C]=_})}reset(){this.sort=this.defaultSort||{}}stringify(nt){return typeof nt!="object"?[]:(nt instanceof Je&&(nt=nt.sort),Object.entries(nt).map(([s,C])=>`${s},${C}`))}}const rn=300;function nn(H){const nt=H,s=nt==null?void 0:nt.querySelector(".arco-scrollbar-container.arco-table-body");if(!s)return;let C,_=!1,d;s.addEventListener("mousedown",()=>{console.log("mousedown"),C=setTimeout(()=>{C&&(s.style.cursor="grab",s.style.userSelect="none",_=!0)},rn)}),s.addEventListener("mouseup",()=>{clearTimeout(C),C&&(C=void 0,_=!1,s.style.cursor="",s.style.userSelect="",d=void 0)}),s.addEventListener("mousemove",a=>{if(_)if(d===void 0)d=a.clientX;else{const o=d-a.clientX;d=a.clientX,s.scrollLeft+=o}})}function sn(H){return typeof H=="function"||Object.prototype.toString.call(H)==="[object Object]"&&!dt.isVNode(H)}const an=dt.defineComponent({props:{record:{type:Object,required:!0},columns:{type:Array,required:!0},minWidth:{type:Number,required:!1,default:320},border:{type:Boolean,default:!0},exclude:{type:Array,default:()=>[]},layout:{type:String,required:!1,default:"horizontal"},buttons:{type:Array,default:()=>[]}},setup(H){const nt=dt.getCurrentInstance(),s=dt.ref(0),C=H.columns.filter(d=>typeof d.visiable=="boolean"?d.visiable:typeof d.visiable=="function"?d.visiable():!0).map(d=>({options:d,renderer:Ge(d,{previewing:!0})})).filter(({options:d})=>{var a;return!((a=H.exclude)!=null&&a.includes(d.key))}).filter(({renderer:d})=>!(d!=null&&d.disableViewMode));function _(){var d;if(nt){const a=(d=nt.proxy)==null?void 0:d.$el;s.value=Math.floor(a.offsetWidth/H.minWidth)}}return dt.onMounted(()=>{_()}),()=>{let d;return dt.createVNode("div",{class:"preview-container"},[dt.createVNode(ge.Descriptions,{column:s.value,bordered:!0,align:"left",layout:H.layout},sn(d=C.map(a=>dt.createVNode(ge.DescriptionsItem,{label:a.options.title},{default:()=>{var o,r;return[(o=a.renderer)!=null&&o.render?(r=a.renderer)==null?void 0:r.render({record:H.record}):ke(H.record,a.options)]}})))?d:{default:()=>[d]})])}}});function on(H,nt,{tableForm:s,tableEvents:C}){const _=H.refreshable||H.exportable||nt.slots.actions,d=!!(s!=null&&s.length)&&_;return _||d?()=>dt.createVNode(dt.Fragment,null,[d&&dt.createVNode(ge.Divider,{margin:0},null),_&&dt.createVNode("div",{class:"table-actions",style:{display:"flex",justifyContent:"space-between",margin:"20px 0",flexDirection:H.actionsPosition==="right"?"row":"row-reverse",alignItems:"center"}},[dt.createVNode("div",{class:"built-in"},[dt.createVNode(ge.Space,null,{default:()=>[H.refreshable&&dt.createVNode(ge.Button,{type:"primary",onClick:()=>C("reload")},{default:()=>[dt.createTextVNode("刷新")]}),H.exportable&&dt.createVNode(ge.Button,{type:"primary",onClick:()=>C("export")},{default:()=>[dt.createTextVNode("导出")]}),H.collapsable&&dt.createVNode(ge.Button,{type:"primary",onClick:()=>C("collapse")},{default:()=>[dt.createTextVNode("显示")]})]})]),dt.createVNode("div",{class:"customs"},[dt.createVNode(ge.Space,null,{default:()=>[nt.slots.actions&&nt.slots.actions()]})])])]):()=>{}}function ln(H,nt,{tableForm:s,tableEvents:C,formInstance:_}){return s!=null&&s.length?()=>dt.createVNode("div",{class:"table-form"},[dt.createVNode(ir.FormRender,dt.mergeProps({form:s,ref:d=>_&&(_.value=d),searchable:!0,onSubmit:()=>C("reload",{reset:!0})},H.formOptions),null)]):()=>{}}function un(H,nt,{tableSource:s}){const C=dt.ref([]);function _(){C.value=[],nt.emit("update:radio-key",null),nt.emit("update:radio-row",null),nt.emit("update:checkbox-keys",[]),nt.emit("update:checkbox-rows",[])}function d(){dt.nextTick(()=>{H.checkboxRows!==void 0&&(C.value=[...H.checkboxRows.map(t=>t[H.rowKey])]),H.checkboxKeys!==void 0&&(C.value=[...H.checkboxKeys]),H.radioKey&&(C.value=[H.radioKey]),H.radioRow&&(C.value=[H.radioRow[H.rowKey]])})}function a(){const t=typeof H.selection=="string"?{type:H.selection}:H.selection;switch(t==null?void 0:t.type){case"radio":return{title:"选择",...t,selectedRowKeys:C.value};case"checkbox":return{showCheckedAll:!0,selectedRowKeys:C.value,...t}}}function o(t,e,l){const{type:n}=a()||{};switch(n){case"radio":nt.emit("update:radio-key",e),nt.emit("update:radio-row",l);break;case"checkbox":nt.emit("update:checkbox-keys",t),nt.emit("update:checkbox-rows",t.map(i=>{var c;return s.value.find(f=>f[H.rowKey]===i)||((c=H.checkboxRows)==null?void 0:c.find(f=>f[H.rowKey]===i))}));break}}function r(){dt.nextTick(()=>{nt.emit("update:checkbox-keys",C.value),nt.emit("update:checkbox-rows",C.value.map(t=>{var e;return s.value.find(l=>l[H.rowKey]===t)||((e=H.checkboxRows)==null?void 0:e.find(l=>l[H.rowKey]===t))}))})}return d(),{selectedRowKeys:C,rowSelection:a(),onSelect:o,onSelectAll:r,resetSelection:_,reloadSelection:d}}function cn(H){return dt.getCurrentScope()?(dt.onScopeDispose(H),!0):!1}function Ze(H){return typeof H=="function"?H():dt.unref(H)}const fn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function hn(H,nt){var s;if(typeof H=="number")return H+nt;const C=((s=H.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:s[0])||"",_=H.slice(C.length),d=Number.parseFloat(C)+nt;return Number.isNaN(d)?H:d+_}const or=fn?window:void 0;function dn(){const H=dt.ref(!1),nt=dt.getCurrentInstance();return nt&&dt.onMounted(()=>{H.value=!0},nt),H}function pn(H){const nt=dn();return dt.computed(()=>(nt.value,!!H()))}function De(H,nt={}){const{window:s=or}=nt,C=pn(()=>s&&"matchMedia"in s&&typeof s.matchMedia=="function");let _;const d=dt.ref(!1),a=t=>{d.value=t.matches},o=()=>{_&&("removeEventListener"in _?_.removeEventListener("change",a):_.removeListener(a))},r=dt.watchEffect(()=>{C.value&&(o(),_=s.matchMedia(Ze(H)),"addEventListener"in _?_.addEventListener("change",a):_.addListener(a),d.value=_.matches)});return cn(()=>{r(),o(),_=void 0}),d}function mn(H,nt={}){function s(e,l){let n=Ze(H[Ze(e)]);return l!=null&&(n=hn(n,l)),typeof n=="number"&&(n=`${n}px`),n}const{window:C=or,strategy:_="min-width"}=nt;function d(e){return C?C.matchMedia(e).matches:!1}const a=e=>De(()=>`(min-width: ${s(e)})`,nt),o=e=>De(()=>`(max-width: ${s(e)})`,nt),r=Object.keys(H).reduce((e,l)=>(Object.defineProperty(e,l,{get:()=>_==="min-width"?a(l):o(l),enumerable:!0,configurable:!0}),e),{});function t(){const e=Object.keys(H).map(l=>[l,a(l)]);return dt.computed(()=>e.filter(([,l])=>l.value).map(([l])=>l))}return Object.assign(r,{greaterOrEqual:a,smallerOrEqual:o,greater(e){return De(()=>`(min-width: ${s(e,.1)})`,nt)},smaller(e){return De(()=>`(max-width: ${s(e,-.1)})`,nt)},between(e,l){return De(()=>`(min-width: ${s(e)}) and (max-width: ${s(l,-.1)})`,nt)},isGreater(e){return d(`(min-width: ${s(e,.1)})`)},isGreaterOrEqual(e){return d(`(min-width: ${s(e)})`)},isSmaller(e){return d(`(max-width: ${s(e,-.1)})`)},isSmallerOrEqual(e){return d(`(max-width: ${s(e)})`)},isInBetween(e,l){return d(`(min-width: ${s(e)}) and (max-width: ${s(l,-.1)})`)},current:t,active(){const e=t();return dt.computed(()=>e.value.length===0?"":e.value.at(-1))}})}function bn(H,nt,{pageService:s,tableEvents:C}){function _(o){s&&(s.pageIndex=o,C("reload"))}function d(o){s&&(s.pageSize=o,C("reload"))}const a=mn({mobile:0,tablet:640,desktop:1024});return s?()=>dt.createVNode("div",{class:"table-pagination",style:{padding:"10px 0"}},[dt.createVNode(ge.Pagination,{current:s.pageIndex,"onUpdate:current":o=>s.pageIndex=o,"page-size":s.pageSize,"onUpdate:page-size":o=>s.pageSize=o,total:s.total,"page-size-options":s.pageSizeOpts,"hide-on-single-page":!0,"show-total":!0,"show-page-size":!0,simple:a.smaller("desktop").value,onChange:o=>_(o),onPageSizeChange:o=>d(o),style:{justifyContent:"flex-end"}},null)]):()=>{}}const gn=dt.defineComponent({props:{collapsedColumns:{type:Array,required:!0}},setup(H){const nt=Pe.useModal(),s=dt.ref(H.collapsedColumns.map(_=>({label:_.title,value:_.key,disabled:!1}))),C=dt.ref(H.collapsedColumns.filter(_=>_.collapsed).map(_=>_.key));return Pe.onSubmit(()=>{const _=H.collapsedColumns.map(d=>({key:d.key,title:d.title,collapsed:C.value.includes(d.key)}));nt.close(_)}),()=>dt.createVNode("div",{class:"table-collapsed-render"},[dt.createVNode(ge.Transfer,{data:s.value,"default-value":C.value,onChange:_=>C.value=[..._],title:["显示列","隐藏列"],style:{justifyContent:"center"}},{default:()=>[dt.withDirectives(dt.createVNode("template",null,null),[[dt.resolveDirective("slot"),"source"]])]})])}}),yn=dt.defineComponent({props:{value:{type:Object,required:!0},form:{type:Array,required:!0},onSubmit:{type:Function,required:!1}},setup(H){const nt=Pe.useModal();function s(C){H.onSubmit&&H.onSubmit(C),nt.close(C)}return console.log(H.value),()=>dt.createVNode("div",{class:"edit-form-container"},[dt.createVNode(ir.FormRender,{name:"form",value:H.value,form:H.form,onSubmit:s},null)])}}),lr=dt.defineComponent({props:{rowKey:{type:String,required:!0},form:{type:Object,required:!1},formOptions:{type:Object,required:!1},columns:{type:Object,required:!0},autoLoad:{type:Boolean,required:!1,default:!0},dataLoad:{type:Function,required:!1},height:{type:Number,required:!1},size:{type:String,required:!1,default:"large"},columnsOptions:{type:Object,required:!1},collapsable:{type:Boolean,required:!1,default:!1},selection:{type:[String,Object],required:!1},radioKey:{type:[String,Number],required:!1},checkboxKeys:{type:Array,required:!1},radioRow:{type:Object,required:!1},checkboxRows:{type:Array,required:!1},exportable:{type:[Boolean,Object],required:!1,default:!1},refreshable:{type:Boolean,required:!1},actionsPosition:{type:String,required:!1,default:"right"},pageable:{type:[Object,Boolean,String],required:!1,default:void 0},sortable:{type:[Object],required:!1},draggable:{type:Boolean,required:!1},hoverable:{type:Boolean,required:!1,default:!1},bordered:{type:Boolean,required:!1,default:!1},stripe:{type:Boolean,required:!1,default:!0},columnsGroups:{type:Array,required:!1,default:()=>[]},rowClass:{type:Function,required:!1},expandable:{type:Object,required:!1},grabbable:{type:Boolean,default:!0,required:!1}},expose:["preview","export","edit","reload","tableSource","formSource","update:radio-key","update:radio-row","update:checkbox-keys","update:checkbox-rows","formInstance","resetSelection","reloadSelection","reloadColumns","change"],setup(H,nt){const s=Math.random().toString(32).slice(2).toUpperCase(),C=dt.ref(),_=dt.ref(),d=dt.ref(),a=dt.ref(),[o,r]=dr(H.columns),t=dt.ref(!1),e=H.form??pr(H.columns),l=c(),n=u(),i=dt.ref(H.columns.map(A=>({key:A.key,title:A.title,collapsed:!!A.collapsed})));function c(){switch(!0){case(typeof H.pageable=="string"&&H.pageable==="server"):return new Ke;case(typeof H.pageable=="boolean"&&H.pageable===!0):return new Ke;case(typeof H.pageable=="object"&&!!H.pageable.reset):return H.pageable;case(typeof H.pageable=="object"&&(!!H.pageable.index||!!H.pageable.size)):return new Ke(H.pageable.index,H.pageable.size)}}const f=(()=>{switch(!0){case typeof H.pageable=="string":return H.pageable;case(H.pageable===void 0||H.pageable===!1):return"client";default:return"server"}})();function u(){const A=H.columns.find(z=>!!z.sortable);if(A||H.sortable)return new Je({...H.sortable||{},...A?{[A.key]:A.sortable}:{}})}function p(A){const{exportExcel:z}=en();z((A==null?void 0:A.columns)||H.columns,(A==null?void 0:A.source)||o.value,(A==null?void 0:A.filename)||(typeof H.exportable=="object"?H.exportable.filename:void 0))}function h(A){let z;switch(!0){case!!(A!=null&&A.key):z=o.value.find(U=>U[H.rowKey]===(A==null?void 0:A.key));break;case!!(A!=null&&A.record):z=A==null?void 0:A.record;break}if(!z)throw new Error("未找到需要预览的数据");return d.value.open(an,{record:z,columns:H.columns},{title:(A==null?void 0:A.title)||"详情",mode:(A==null?void 0:A.mode)||"dialog"})}function w(A){let z;switch(!0){case!!(A!=null&&A.key):z=o.value.find(U=>U[H.rowKey]===(A==null?void 0:A.key));break;case!!(A!=null&&A.record):z=A==null?void 0:A.record;break}if(!z)throw new Error("未找到需要编辑的数据");return d.value.open(yn,{value:z,form:A==null?void 0:A.form,onSubmit:A.onSubmit},{title:(A==null?void 0:A.title)||"编辑",mode:(A==null?void 0:A.mode)||"dialog",footer:!0,form:"form"})}function x(A){var X,j;if(!H.dataLoad)return;A!=null&&A.reset&&(l&&l.reset(),n&&n.reset(),(X=C.value)==null||X.resetSorters());const z={...((j=_.value)==null?void 0:j.formSource)||{}};Object.keys(z).forEach(V=>{[null,void 0,""].includes(z[V])&&delete z[V]});const U=H.dataLoad({form:z,page:l,sort:n,update:r});We(U)&&(t.value=!0,Promise.resolve(U).finally(()=>{t.value=!1}))}function R(){d.value.open(gn,{collapsedColumns:i.value},{title:"显示列",size:"small",footer:!0}).then(A=>{i.value=A})}const N=(A,{type:z})=>{switch(z){case"drag":{r(A),nt.emit("change",A);break}}},F=sr({reload:x,preview:h,export:p,edit:w,collapse:R});function I(A,z){!n||f==="client"||(z?n.update(A,z==="descend"?"desc":"asc"):n.remove(A),F("reload"))}const P=dt.ref(nr({columns:H.columns,columnsOptions:H.columnsOptions,columnsGroups:H.columnsGroups,pageMode:f,collapsedColumns:i,events:F})),B={tableEvents:F,tableForm:e,tableSource:o,formInstance:_,pageService:l,formOptions:H.formOptions},$=ln(H,nt,B),D=on(H,nt,B),S=bn(H,nt,B),{selectedRowKeys:T,rowSelection:v,onSelect:m,onSelectAll:b,reloadSelection:g,resetSelection:y}=un(H,nt,B),k=dt.computed(()=>({rowKey:H.rowKey,size:H.size,bordered:H.bordered,hoverable:H.hoverable,stripe:H.stripe,scroll:{x:H.columns.reduce((A,z)=>A+=typeof z.width!="number"?Math.max(z.title.length*16,80):z.width,0),y:H.height??"100%"},rowSelection:v,draggable:H.draggable?{type:"handle",width:40}:void 0,pagination:H.pageable===void 0||H.pageable==="client",selectedKeys:T.value,expandable:H.expandable}));function O(){P.value=nr({columns:H.columns,columnsOptions:H.columnsOptions,columnsGroups:H.columnsGroups,pageMode:f,collapsedColumns:i,events:F})}return dt.onMounted(()=>{a.value&&(a.value.id=`table-${s}`),H.autoLoad&&x(),H.grabbable&&a.value&&nn(a.value)}),{tableId:s,tableInstance:C,tableSource:o,tableOptions:k,tableColumns:P,tableEvents:F,tableForm:e,tableLoading:t,modalInstance:d,tableRenderElement:a,formSource:dt.readonly(dt.computed(()=>{var A;return(A=_==null?void 0:_.value)==null?void 0:A.formSource})),formInstance:_,reload:x,preview:h,edit:w,export:p,onSorterChange:I,onTableChange:N,renders:{renderTableForm:$,renderTableActions:D,renderTablePagination:S},tableSelection:{selectedRowKeys:T,rowSelection:v,onSelect:m,onSelectAll:b},resetSelection:y,reloadSelection:g,reloadColumns:O}},render(){this.reloadColumns();const H=()=>dt.createVNode("div",{class:"table-body"},[dt.createVNode(ge.Table,dt.mergeProps({loading:this.tableLoading,data:this.tableSource,columns:this.tableColumns,ref:nt=>this.tableInstance=nt,onSelect:this.tableSelection.onSelect,onSelectAll:this.tableSelection.onSelectAll,onChange:this.onTableChange,rowClass:this.rowClass,onSorterChange:this.onSorterChange,selectedKeys:this.tableSelection.selectedRowKeys.value,"onUpdate:selectedKeys":nt=>this.tableSelection.selectedRowKeys.value=nt},this.tableOptions),null)]);return dt.createVNode("div",{class:"table-render",ref:nt=>this.tableRenderElement=nt},[dt.createVNode(Pe.ModalProvider,{ref:nt=>this.modalInstance=nt},{default:()=>[dt.createVNode("div",{class:"table-render-content"},[this.renders.renderTableForm(),this.renders.renderTableActions(),this.$slots.header&&this.$slots.header(),H(),this.renders.renderTablePagination()])]})])}});function vn(H){return H}function wn(H){return H}const _n={install(H,nt){H.component("TableRender",lr)}};exports.TableRenderResolver=fr.TableRenderResolver;exports.TableRender=lr;exports.default=_n;exports.defineColumns=vn;exports.defineTableLoad=wn;exports.useEvents=sr;exports.useTable=mr;
|
|
1
|
+
"use strict";var fe=Object.defineProperty;var se=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var S=(e,t,r)=>(se(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue"),h=require("@arco-design/web-vue"),k=require("@gopowerteam/modal-render"),oe=require("exceljs"),_=require("dayjs"),G=require("@gopowerteam/form-render"),me=require("./resolver.cjs");function be(e,t,r){const[d,...n]=t.index?t.index.split(".").reverse():[t.key],a=n.reverse().reduce((l,c)=>l==null?void 0:l[c],e);a[d]=r}function ye(e){const t=u.ref([]),r=n=>{const a=e.filter(l=>l.formatter);return a.length>0?n.map(l=>(a.forEach(c=>{c.formatter&&be(l,c,c.formatter(l))}),l)):n};return[t,n=>{t.value=r(n)}]}function he(e){return e.filter(t=>t.form).map(t=>({key:t.key,title:t.title,...typeof t.form=="boolean"?{}:t.form}))}function ge(e){const t=u.getCurrentInstance(),r=u.ref();function d(){var a,l;const n=(l=(a=t==null?void 0:t.proxy)==null?void 0:a.$refs)==null?void 0:l[e];n&&(r.value=n)}return u.onMounted(d),u.onUpdated(d),r}function H(e){return(t,r)=>e[t](r)}class q{constructor(t=1,r=10){S(this,"data",u.reactive({index:1,size:10,total:0}));S(this,"pageSizeOpts",[10,20,30,40,50]);S(this,"pageLayouts",["PrevJump","PrevPage","JumpNumber","NextPage","NextJump","Sizes","FullJump","Total"]);this.pageIndex=t,this.pageSize=r}get pageIndex(){return this.data.index}set pageIndex(t){this.data.index=t}get pageSize(){return this.data.size}set pageSize(t){this.data.size=t}get total(){return this.data.total}set total(t){this.data.total=t}reset(){this.pageIndex=1}before(t){t.paramsQuery={...t.paramsQuery,page:this.pageIndex-1,size:this.pageSize}}after(t){var r;this.total=(r=t.data)==null?void 0:r.totalElements}}const we=Symbol.for("RenderColumnType");function g(e,t,r){return t.$type=e,t.$disableColumnMode=r==null?void 0:r.disableColumnMode,t.$disableViewMode=r==null?void 0:r.disableViewMode,t}function v(e,t){return t.index?t.index.split(".").reduce((r,d)=>r==null?void 0:r[d],e):[t.key].reduce((r,d)=>r==null?void 0:r[d],e)}function R(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function ve(e){return g("button",(r,d,n)=>{const a=k.useModal(),l=Array.isArray(e)?e:"buttons"in e?e.buttons:[e],c=(f,s)=>typeof f=="function"?f(r):f===void 0?s:f;async function m(f){if(await(f.confirm===!0?new Promise(o=>{a.confirm({title:"提示信息",content:f.confirmText??"您确定要执行该操作?",onOk:()=>o(!0),onCancel:()=>o(!1)})}):Promise.resolve(!0))&&(f!=null&&f.onClick)){const o=f.onClick(r);R(o)&&f.autoReload!==!1&&o.then(()=>{n!=null&&n.emits&&(n==null||n.emits("reload"))}),!R(o)&&f.autoReload===!0&&n!=null&&n.emits&&(n==null||n.emits("reload"))}}return u.createVNode(u.Fragment,null,[l.filter(f=>c(f.visiable,!0)).map(f=>u.createVNode(h.Button,{onClick:()=>m(f),type:f.type||"text",shape:f.shape,size:"mini",disabled:c(f.disabled,!1)},{icon:f.icon,default:()=>(typeof f.content=="function"?f.content(r):f.content)||""}))])},{disableViewMode:!0})}const xe={thousands:!0,inputUnit:"元",outputUnit:"元"},W={分:10**0,元:10**2,万:10**6};function Se(e){e={...xe,...e||{}};const t=a=>{if(a==null)return;if((e==null?void 0:e.inputUnit)===(e==null?void 0:e.outputUnit))return a;const l=W[e.inputUnit]/W[e.outputUnit],c=parseFloat((a*l).toFixed(10));return(e==null?void 0:e.precision)===void 0?c:c.toFixed(e==null?void 0:e.precision)},r=a=>{if(a==null)return;const l=a.toString().split(".");return l[0]=l[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),l.join(".")},d=a=>{if((e==null?void 0:e.zeroString)!==void 0&&Number(a)===0)return e==null?void 0:e.zeroString;if((e==null?void 0:e.nullString)!==void 0&&isNaN(Number(a)))return e==null?void 0:e.nullString;const l=t(Number(a));return e!=null&&e.thousands?r(l):l};return g("dict",(a,l)=>{const c=v(a,l);return u.createVNode("div",null,[typeof(e==null?void 0:e.prefix)=="string"?u.createVNode("span",null,[e.prefix]):typeof(e==null?void 0:e.prefix)=="function"?u.createVNode("span",null,[e.prefix()]):void 0,u.createVNode("span",{class:"currency_value"},[d(c)]),typeof(e==null?void 0:e.suffix)=="string"?u.createVNode("span",null,[e.suffix]):typeof(e==null?void 0:e.suffix)=="function"?u.createVNode("span",null,[e.suffix()]):void 0])})}var Ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ke={exports:{}};(function(e,t){(function(r,d){e.exports=d(_)})(Ce,function(r){function d(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var n=d(r),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(l,c){return c==="W"?l+"周":l+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(l,c){var m=100*l+c;return m<600?"凌晨":m<900?"早上":m<1100?"上午":m<1300?"中午":m<1800?"下午":"晚上"}};return n.default.locale(a,null,!0),a})})(ke);_.locale("zh-cn");const Te={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",week:"ddd"};function Ve(e){return g("date",(r,d)=>{const n=v(r,d),a=typeof(e==null?void 0:e.format)=="function"?e==null?void 0:e.format():Te[(e==null?void 0:e.format)||"datetime"],l=_(n);return u.createVNode("span",null,[l.isValid()&&l.format(a)])})}const Ne={success:"arcoblue",warning:"orange",error:"red"};function Me(e){return e instanceof Map?e:e.dict}function Re(e){const t=e instanceof Map?!1:e.tag;return typeof t=="string"?Ne[t]:t}function _e(e){const t=Me(e),r=Re(e);return g("dict",(n,a)=>{const l=v(n,a);return r?u.createVNode(h.Tag,{color:r===!0?void 0:r},{default:()=>[t.get(l)||l]}):u.createVNode("span",null,[t.get(l)||l])})}function Oe(e){const t=k.useModal();async function r(n,a){n.confirm&&!await new Promise((c,m)=>{t.open("confirm",{title:"确认",content:n.confirmText||"是否确认执行该操作?",onOk:()=>c(!0),onCancel:()=>c(!1)})})||n.onClick(a)}return g("dropdown",(n,a)=>{const l=e.options.filter(c=>typeof c.visiable=="function"?c.visiable(n):c.visiable!==!1);return u.createVNode(h.Dropdown,{trigger:(e==null?void 0:e.trigger)||"click"},{default:()=>u.createVNode(h.Button,{disabled:l.length===0,type:"text"},{default:()=>[(e==null?void 0:e.content)||"操作"]}),content:()=>l.map(c=>u.createVNode(h.Dropdown.Option,{onClick:()=>r(c,n)},{default:()=>[typeof c.content=="function"?c.content(n):c.content]}))})})}const qe={size:30};function $e(e){e={...qe,...e||{}};function t(n,a){var c;const l=(c=document.getElementById(n))==null?void 0:c.getBoundingClientRect();if(l){const m=new Image(100,100);m.id=`IMAGE_${n}_PREVIEW`,m.src=a,m.setAttribute("style",["position:fixed;",`top:${l.top}px;`,`left:${l.left+l.width}px;`,"min-width:400px;","height:auto;","z-index:100;"].join("")),document.body.appendChild(m)}}function r(n){const a=document.getElementById(`IMAGE_${n}_PREVIEW`);a==null||a.remove()}return g("image",(n,a,l)=>{const c=v(n,a),m=Math.random().toString(32).slice(2).toUpperCase(),f={maxWidth:"100%",maxHeight:"100%",borderRadius:e==null?void 0:e.radius,objectFit:"contain",transform:`rotate(${(e==null?void 0:e.rotate)||0}deg)`,cursor:e!=null&&e.preview?"pointer":"unset"},s=`${a.index||a.key}_parsed`;if(e!=null&&e.parse){const o=e==null?void 0:e.parse(c,n);R(o)?o.then(y=>n[s]=y??""):n[s]=o??""}if(e!=null&&e.parse&&!n[s]===void 0)return u.createVNode("div",null,[u.createTextVNode("Loading...")]);{const o=n[s]||c;return o?u.createVNode("div",{id:m,onMouseenter:()=>(e==null?void 0:e.preview)&&!(l!=null&&l.previewing)&&t(m,o),onMouseleave:()=>(e==null?void 0:e.preview)&&!(l!=null&&l.previewing)&&r(m),style:{display:"flex",justifyContent:"center",alignItems:"center",height:`${e==null?void 0:e.size}px`}},[u.createVNode("img",{alt:"image",style:f,src:o},null)]):u.createVNode(u.Fragment,null,null)}})}const Ye=" ";function Ee(e){return e==null?void 0:e.replace(/(\d{3})\d*(\d{4})/g,"$1****$2")}function ze(e,t){return e==null?void 0:e.replace(/\*/g,"M").replace(/\B(?=(?:\S{4})+$)/g,t??Ye).replace(/M/g,"*")}function je(e){return g("phone",(r,d)=>{const n=v(r,d),a=ze(e!=null&&e.safe?Ee(n):n,e==null?void 0:e.separator);return e!=null&&e.callable?u.createVNode("a",{style:"text-decoration:none;",href:`tel:${n}`},[a]):u.createVNode("span",null,[a])})}function Le(e){return g("render",r=>e(r))}function Pe(e){return g("tag",(r,d)=>{const n=(e==null?void 0:e.maxCount)||5,a=e!=null&&e.formatter?e.formatter(r):v(r,d),l=(e==null?void 0:e.textColors)||["#F87335"],c=(e==null?void 0:e.backgroundColors)||["#FFF4E8"],m=a.length>n,f=e==null?void 0:e.minWidth;return u.createVNode("div",{style:{display:"flex",flexWrap:"wrap"}},[a.slice(0,n).map((s,o)=>{const y=typeof l=="function"?l(s,o):l[o%l.length],w=typeof c=="function"?c(s,o):c[o%c.length];return u.createVNode("span",{style:{minWidth:f?`${f}px`:"unset",textAlign:"center",margin:"2px",padding:"2px 5px",border:`solid 2px ${e!=null&&e.border?y:"transparent"}`,borderRadius:`${(e==null?void 0:e.radius)||0}px`,color:y,backgroundColor:w}},[s])}),m&&"..."])})}function F(e){if(typeof e=="string")return e;if(typeof e=="number")return`${e}px`}function De(e,t,r){var d,n;return typeof e=="function"?(d=e(r))==null?void 0:d.toString():typeof(e==null?void 0:e.content)=="function"?(n=e==null?void 0:e.content(r))==null?void 0:n.toString():typeof(e==null?void 0:e.content)=="string"?e==null?void 0:e.content:v(r,t)}function Be(e,t){if(typeof e!="function"){if(typeof(e==null?void 0:e.color)=="function")return e==null?void 0:e.color(t);if(typeof(e==null?void 0:e.color)=="string")return e==null?void 0:e.color}}function Ae(e,t){if(typeof e!="function")return typeof(e==null?void 0:e.size)=="function"?F(e==null?void 0:e.size(t)):F(e==null?void 0:e.size)}function Ie(e,t){let r="";const d=Be(e,t),n=Ae(e,t);return d&&(r+=`color:${d};`),n&&(r+=`font-size:${n};`),r}function Ke(e){return g("text",(r,d)=>{const n=De(e||{},d,r),a=Ie(e||{},r);return u.createVNode("span",{style:a},[n])})}function We(){return{dropdown:Oe,text:Ke,dict:_e,tag:Pe,render:Le,phone:je,image:$e,currency:Se,date:Ve,button:ve}}function Y(e,t){if(!(e!=null&&e.render))return;const r=e.render({...We()});return{render:({record:d})=>r(d,e,t),[we]:r.$type,disableColumnMode:r.$disableColumnMode,disableViewMode:r.$disableViewMode,isRender:r.$type==="render",type:r.$type}}function U({columns:e,columnsOptions:t,columnsGroups:r,pageMode:d,collapsedColumns:n,events:a}){const l=e.map(c=>({...t||{},...c})).map(c=>Ge(c,d,n,a)).filter(Boolean);return Ue(l,r)}function Fe(e,t){const r=[],d=a=>{if("children"in a&&(a.children=a.children.map(d)),"key"in a){const l=t.find(c=>{var m;return((m=Object.getOwnPropertyDescriptor(c,"key"))==null?void 0:m.value)===a.key});if(l)return r.push(l),l}return a},n=d(e);if(r!=null&&r.length&&n){const a=Math.min(...r.map(l=>t.indexOf(l)));r.forEach(l=>{const c=t.indexOf(l);t.splice(c,1)}),t.splice(a,0,n)}}function Ue(e,t=[]){return t.forEach(r=>{Fe(r,e)}),e}function Ge(e,t,r,d){const{render:n,disableColumnMode:a}=Y(e,{previewing:!1,emits:d})||{};if(!(a||e.visiable===!1)&&!(typeof e.visiable=="function"&&e.visiable()===!1)&&!r.value.find(l=>l.key===e.key&&l.collapsed===!0))return{dataIndex:e.index||e.key,title:e.title,width:e.width==="auto"?void 0:e.width,align:e.align??"center",fixed:e.fixed,ellipsis:e.ellipsis??!0,sortable:e.sortable?{sorter:t==="server",sortDirections:["ascend","descend"],defaultSortOrder:e.sortable==="asc"?"ascend":"descend"}:void 0,tooltip:!0,...e.extraProps,key:e.key,render:n}}function He(){return new oe.Workbook}function Qe(e,t="Sheet1"){return e.addWorksheet(t,{headerFooter:{firstHeader:"",firstFooter:""}})}function Je(e,t){e.columns=t}function Xe(e,t){e.addRows(t)}async function Ze({columns:e,rows:t,filename:r}){const d=He(),n=Qe(d);Je(n,e),Xe(n,t);const a=await d.xlsx.writeBuffer(),l=new Blob([a]);pe(l,r||`${_().format("YYYY-MM-DD HH:mm:ss")}.xlsx`)}function pe(e,t){const r=document.createElement("a");r.download=t||"download",r.href=URL.createObjectURL(e),r.click(),setTimeout(()=>{URL.revokeObjectURL(r.href)},1e3)}function et(e,t){const r={};return e.filter(n=>n.exportable!==!1).map(n=>({options:n,render:Y(n),content:typeof n.exportable=="object"?n.exportable.content:void 0})).forEach(n=>{var c;const a=(c=n.render)==null?void 0:c.render,l=()=>{var m;switch(!0){case!!n.content:return n.content&&n.content(t);case!!a:{const f=document.createElement("div"),s=u.h(()=>a&&a({record:t}));return u.render(s,f),(m=s.el)==null?void 0:m.innerText}default:return v(t,n.options)}};r[n.options.key]=l()}),r}function tt(e){switch(!0){case typeof e=="number":return e/6;case(typeof e=="string"&&e.endsWith("px")):return parseInt(e.replace("px",""))/6;default:return 30}}function rt(e,t,r){const d=e.filter(a=>a.exportable!==!1).map(a=>{var l,c;return{key:a.key,header:((l=a.exportable)==null?void 0:l.header)||a.title,width:((c=a.exportable)==null?void 0:c.width)||tt(a.width)}}),n=t.map(a=>et(e,a));Ze({columns:d,rows:n,filename:r})}function nt(){return{exportExcel:rt}}class E{constructor(t){S(this,"sort",{});S(this,"defaultSort",{});S(this,"before",t=>{t.paramsQuery={...t.paramsQuery||{},sort:this.stringify(this.sort)}});t&&(this.sort=t,this.defaultSort=t)}update(t,r){t&&r&&(this.sort[t]=r)}remove(t){const r=Object.entries(this.sort).filter(([d])=>d!==t);this.sort={},r&&r.forEach(([d,n])=>{this.sort[d]=n})}reset(){this.sort=this.defaultSort||{}}stringify(t){return typeof t!="object"?[]:(t instanceof E&&(t=t.sort),Object.entries(t).map(([r,d])=>`${r},${d}`))}}const at=300;function lt(e){const t=e,r=t==null?void 0:t.querySelector(".arco-scrollbar-container.arco-table-body");if(!r)return;let d,n=!1,a;r.addEventListener("mousedown",()=>{console.log("mousedown"),d=setTimeout(()=>{d&&(r.style.cursor="grab",r.style.userSelect="none",n=!0)},at)}),r.addEventListener("mouseup",()=>{clearTimeout(d),d&&(d=void 0,n=!1,r.style.cursor="",r.style.userSelect="",a=void 0)}),r.addEventListener("mousemove",l=>{if(n)if(a===void 0)a=l.clientX;else{const c=a-l.clientX;a=l.clientX,r.scrollLeft+=c}})}function ut(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!u.isVNode(e)}const dt=u.defineComponent({props:{record:{type:Object,required:!0},columns:{type:Array,required:!0},minWidth:{type:Number,required:!1,default:320},border:{type:Boolean,default:!0},exclude:{type:Array,default:()=>[]},layout:{type:String,required:!1,default:"horizontal"},buttons:{type:Array,default:()=>[]}},setup(e){const t=u.getCurrentInstance(),r=u.ref(0),d=e.columns.filter(a=>typeof a.visiable=="boolean"?a.visiable:typeof a.visiable=="function"?a.visiable():!0).map(a=>({options:a,renderer:Y(a,{previewing:!0})})).filter(({options:a})=>{var l;return!((l=e.exclude)!=null&&l.includes(a.key))}).filter(({renderer:a})=>!(a!=null&&a.disableViewMode));function n(){var a;if(t){const l=(a=t.proxy)==null?void 0:a.$el;r.value=Math.floor(l.offsetWidth/e.minWidth)}}return u.onMounted(()=>{n()}),()=>{let a;return u.createVNode("div",{class:"preview-container"},[u.createVNode(h.Descriptions,{column:r.value,bordered:!0,align:"left",layout:e.layout},ut(a=d.map(l=>u.createVNode(h.DescriptionsItem,{label:l.options.title},{default:()=>{var c,m;return[(c=l.renderer)!=null&&c.render?(m=l.renderer)==null?void 0:m.render({record:e.record}):v(e.record,l.options)]}})))?a:{default:()=>[a]})])}}});function ct(e,t,{tableForm:r,tableEvents:d}){const n=e.refreshable||e.exportable||t.slots.actions,a=!!(r!=null&&r.length)&&n;return n||a?()=>u.createVNode(u.Fragment,null,[a&&u.createVNode(h.Divider,{margin:0},null),n&&u.createVNode("div",{class:"table-actions",style:{display:"flex",justifyContent:"space-between",margin:"20px 0",flexDirection:e.actionsPosition==="right"?"row":"row-reverse",alignItems:"center"}},[u.createVNode("div",{class:"built-in"},[u.createVNode(h.Space,null,{default:()=>[e.refreshable&&u.createVNode(h.Button,{type:"primary",onClick:()=>d("reload")},{default:()=>[u.createTextVNode("刷新")]}),e.exportable&&u.createVNode(h.Button,{type:"primary",onClick:()=>d("export")},{default:()=>[u.createTextVNode("导出")]}),e.collapsable&&u.createVNode(h.Button,{type:"primary",onClick:()=>d("collapse")},{default:()=>[u.createTextVNode("显示")]})]})]),u.createVNode("div",{class:"customs"},[u.createVNode(h.Space,null,{default:()=>[t.slots.actions&&t.slots.actions()]})])])]):()=>{}}function it(e,t,{tableForm:r,tableEvents:d,formInstance:n}){return r!=null&&r.length?()=>u.createVNode("div",{class:"table-form"},[u.createVNode(G.FormRender,u.mergeProps({form:r,ref:a=>n&&(n.value=a),searchable:!0,onSubmit:()=>d("reload",{reset:!0})},e.formOptions),null)]):()=>{}}function ft(e,t,{tableSource:r}){const d=u.ref([]);function n(){d.value=[],t.emit("update:radio-key",null),t.emit("update:radio-row",null),t.emit("update:checkbox-keys",[]),t.emit("update:checkbox-rows",[])}function a(){u.nextTick(()=>{e.checkboxRows!==void 0&&(d.value=[...e.checkboxRows.map(f=>f[e.rowKey])]),e.checkboxKeys!==void 0&&(d.value=[...e.checkboxKeys]),e.radioKey&&(d.value=[e.radioKey]),e.radioRow&&(d.value=[e.radioRow[e.rowKey]])})}function l(){const f=typeof e.selection=="string"?{type:e.selection}:e.selection;switch(f==null?void 0:f.type){case"radio":return{title:"选择",...f,selectedRowKeys:d.value};case"checkbox":return{showCheckedAll:!0,selectedRowKeys:d.value,...f}}}function c(f,s,o){const{type:y}=l()||{};switch(y){case"radio":t.emit("update:radio-key",s),t.emit("update:radio-row",o);break;case"checkbox":t.emit("update:checkbox-keys",f),t.emit("update:checkbox-rows",f.map(w=>{var N;return r.value.find(x=>x[e.rowKey]===w)||((N=e.checkboxRows)==null?void 0:N.find(x=>x[e.rowKey]===w))}));break}}function m(){u.nextTick(()=>{t.emit("update:checkbox-keys",d.value),t.emit("update:checkbox-rows",d.value.map(f=>{var s;return r.value.find(o=>o[e.rowKey]===f)||((s=e.checkboxRows)==null?void 0:s.find(o=>o[e.rowKey]===f))}))})}return a(),{selectedRowKeys:d,rowSelection:l(),onSelect:c,onSelectAll:m,resetSelection:n,reloadSelection:a}}function st(e){return u.getCurrentScope()?(u.onScopeDispose(e),!0):!1}function $(e){return typeof e=="function"?e():u.unref(e)}const ot=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function mt(e,t){var r;if(typeof e=="number")return e+t;const d=((r=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:r[0])||"",n=e.slice(d.length),a=Number.parseFloat(d)+t;return Number.isNaN(a)?e:a+n}const Q=ot?window:void 0;function bt(){const e=u.ref(!1),t=u.getCurrentInstance();return t&&u.onMounted(()=>{e.value=!0},t),e}function yt(e){const t=bt();return u.computed(()=>(t.value,!!e()))}function V(e,t={}){const{window:r=Q}=t,d=yt(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let n;const a=u.ref(!1),l=f=>{a.value=f.matches},c=()=>{n&&("removeEventListener"in n?n.removeEventListener("change",l):n.removeListener(l))},m=u.watchEffect(()=>{d.value&&(c(),n=r.matchMedia($(e)),"addEventListener"in n?n.addEventListener("change",l):n.addListener(l),a.value=n.matches)});return st(()=>{m(),c(),n=void 0}),a}function ht(e,t={}){function r(s,o){let y=$(e[$(s)]);return o!=null&&(y=mt(y,o)),typeof y=="number"&&(y=`${y}px`),y}const{window:d=Q,strategy:n="min-width"}=t;function a(s){return d?d.matchMedia(s).matches:!1}const l=s=>V(()=>`(min-width: ${r(s)})`,t),c=s=>V(()=>`(max-width: ${r(s)})`,t),m=Object.keys(e).reduce((s,o)=>(Object.defineProperty(s,o,{get:()=>n==="min-width"?l(o):c(o),enumerable:!0,configurable:!0}),s),{});function f(){const s=Object.keys(e).map(o=>[o,l(o)]);return u.computed(()=>s.filter(([,o])=>o.value).map(([o])=>o))}return Object.assign(m,{greaterOrEqual:l,smallerOrEqual:c,greater(s){return V(()=>`(min-width: ${r(s,.1)})`,t)},smaller(s){return V(()=>`(max-width: ${r(s,-.1)})`,t)},between(s,o){return V(()=>`(min-width: ${r(s)}) and (max-width: ${r(o,-.1)})`,t)},isGreater(s){return a(`(min-width: ${r(s,.1)})`)},isGreaterOrEqual(s){return a(`(min-width: ${r(s)})`)},isSmaller(s){return a(`(max-width: ${r(s,-.1)})`)},isSmallerOrEqual(s){return a(`(max-width: ${r(s)})`)},isInBetween(s,o){return a(`(min-width: ${r(s)}) and (max-width: ${r(o,-.1)})`)},current:f,active(){const s=f();return u.computed(()=>s.value.length===0?"":s.value.at(-1))}})}function gt(e,t,{pageService:r,tableEvents:d}){function n(c){r&&(r.pageIndex=c,d("reload"))}function a(c){r&&(r.pageSize=c,d("reload"))}const l=ht({mobile:0,tablet:640,desktop:1024});return r?()=>u.createVNode("div",{class:"table-pagination",style:{padding:"10px 0"}},[u.createVNode(h.Pagination,{current:r.pageIndex,"onUpdate:current":c=>r.pageIndex=c,"page-size":r.pageSize,"onUpdate:page-size":c=>r.pageSize=c,total:r.total,"page-size-options":r.pageSizeOpts,"hide-on-single-page":!0,"show-total":!0,"show-page-size":!0,simple:l.smaller("desktop").value,onChange:c=>n(c),onPageSizeChange:c=>a(c),style:{justifyContent:"flex-end"}},null)]):()=>{}}const wt=u.defineComponent({props:{collapsedColumns:{type:Array,required:!0}},setup(e){const t=k.useModal(),r=u.ref(e.collapsedColumns.map(n=>({label:n.title,value:n.key,disabled:!1}))),d=u.ref(e.collapsedColumns.filter(n=>n.collapsed).map(n=>n.key));return k.onSubmit(()=>{const n=e.collapsedColumns.map(a=>({key:a.key,title:a.title,collapsed:d.value.includes(a.key)}));t.close(n)}),()=>u.createVNode("div",{class:"table-collapsed-render"},[u.createVNode(h.Transfer,{data:r.value,"default-value":d.value,onChange:n=>d.value=[...n],title:["显示列","隐藏列"],style:{justifyContent:"center"}},{default:()=>[u.withDirectives(u.createVNode("template",null,null),[[u.resolveDirective("slot"),"source"]])]})])}}),vt=u.defineComponent({props:{value:{type:Object,required:!0},form:{type:Array,required:!0},onSubmit:{type:Function,required:!1}},setup(e){const t=k.useModal();function r(d){e.onSubmit&&e.onSubmit(d),t.close(d)}return console.log(e.value),()=>u.createVNode("div",{class:"edit-form-container"},[u.createVNode(G.FormRender,{name:"form",value:e.value,form:e.form,onSubmit:r},null)])}}),J=u.defineComponent({props:{rowKey:{type:String,required:!0},form:{type:Object,required:!1},formOptions:{type:Object,required:!1},columns:{type:Object,required:!0},autoLoad:{type:Boolean,required:!1,default:!0},dataLoad:{type:Function,required:!1},height:{type:Number,required:!1},size:{type:String,required:!1,default:"large"},columnsOptions:{type:Object,required:!1},collapsable:{type:Boolean,required:!1,default:!1},selection:{type:[String,Object],required:!1},radioKey:{type:[String,Number],required:!1},checkboxKeys:{type:Array,required:!1},radioRow:{type:Object,required:!1},checkboxRows:{type:Array,required:!1},exportable:{type:[Boolean,Object],required:!1,default:!1},refreshable:{type:Boolean,required:!1},actionsPosition:{type:String,required:!1,default:"right"},pageable:{type:[Object,Boolean,String],required:!1,default:void 0},sortable:{type:[Object],required:!1},draggable:{type:Boolean,required:!1},hoverable:{type:Boolean,required:!1,default:!1},bordered:{type:Boolean,required:!1,default:!1},stripe:{type:Boolean,required:!1,default:!0},columnsGroups:{type:Array,required:!1,default:()=>[]},rowClass:{type:Function,required:!1},expandable:{type:Object,required:!1},grabbable:{type:Boolean,default:!0,required:!1}},expose:["preview","export","edit","reload","tableSource","formSource","update:radio-key","update:radio-row","update:checkbox-keys","update:checkbox-rows","formInstance","resetSelection","reloadSelection","reloadColumns","change"],setup(e,t){const r=Math.random().toString(32).slice(2).toUpperCase(),d=u.ref(),n=u.ref(),a=u.ref(),l=u.ref(),[c,m]=ye(e.columns),f=u.ref(!1),s=e.form??he(e.columns),o=N(),y=X(),w=u.ref(e.columns.map(i=>({key:i.key,title:i.title,collapsed:!!i.collapsed})));function N(){switch(!0){case(typeof e.pageable=="string"&&e.pageable==="server"):return new q;case(typeof e.pageable=="boolean"&&e.pageable===!0):return new q;case(typeof e.pageable=="object"&&!!e.pageable.reset):return e.pageable;case(typeof e.pageable=="object"&&(!!e.pageable.index||!!e.pageable.size)):return new q(e.pageable.index,e.pageable.size)}}const x=(()=>{switch(!0){case typeof e.pageable=="string":return e.pageable;case(e.pageable===void 0||e.pageable===!1):return"client";default:return"server"}})();function X(){const i=e.columns.find(b=>!!b.sortable);if(i||e.sortable)return new E({...e.sortable||{},...i?{[i.key]:i.sortable}:{}})}function z(i){const{exportExcel:b}=nt();b((i==null?void 0:i.columns)||e.columns,(i==null?void 0:i.source)||c.value,(i==null?void 0:i.filename)||(typeof e.exportable=="object"?e.exportable.filename:void 0))}function j(i){let b;switch(!0){case!!(i!=null&&i.key):b=c.value.find(C=>C[e.rowKey]===(i==null?void 0:i.key));break;case!!(i!=null&&i.record):b=i==null?void 0:i.record;break}if(!b)throw new Error("未找到需要预览的数据");return a.value.open(dt,{record:b,columns:e.columns},{title:(i==null?void 0:i.title)||"详情",mode:(i==null?void 0:i.mode)||"dialog"})}function L(i){let b;switch(!0){case!!(i!=null&&i.key):b=c.value.find(C=>C[e.rowKey]===(i==null?void 0:i.key));break;case!!(i!=null&&i.record):b=i==null?void 0:i.record;break}if(!b)throw new Error("未找到需要编辑的数据");return a.value.open(vt,{value:b,form:i==null?void 0:i.form,onSubmit:i.onSubmit},{title:(i==null?void 0:i.title)||"编辑",mode:(i==null?void 0:i.mode)||"dialog",footer:!0,form:"form"})}function O(i){var A,I;if(!e.dataLoad)return;i!=null&&i.reset&&(o&&o.reset(),y&&y.reset(),(A=d.value)==null||A.resetSorters());const b={...((I=n.value)==null?void 0:I.formSource)||{}};Object.keys(b).forEach(K=>{[null,void 0,""].includes(b[K])&&delete b[K]});const C=e.dataLoad({form:b,page:o,sort:y,update:m});R(C)&&(f.value=!0,Promise.resolve(C).finally(()=>{f.value=!1}))}function Z(){a.value.open(wt,{collapsedColumns:w.value},{title:"显示列",size:"small",footer:!0}).then(i=>{w.value=i})}const p=(i,{type:b})=>{switch(b){case"drag":{m(i),t.emit("change",i);break}}},T=H({reload:O,preview:j,export:z,edit:L,collapse:Z});function ee(i,b){!y||x==="client"||(b?y.update(i,b==="descend"?"desc":"asc"):y.remove(i),T("reload"))}const P=u.ref(U({columns:e.columns,columnsOptions:e.columnsOptions,columnsGroups:e.columnsGroups,pageMode:x,collapsedColumns:w,events:T})),M={tableEvents:T,tableForm:s,tableSource:c,formInstance:n,pageService:o,formOptions:e.formOptions},te=it(e,t,M),re=ct(e,t,M),ne=gt(e,t,M),{selectedRowKeys:D,rowSelection:B,onSelect:ae,onSelectAll:le,reloadSelection:ue,resetSelection:de}=ft(e,t,M),ce=u.computed(()=>({rowKey:e.rowKey,size:e.size,bordered:e.bordered,hoverable:e.hoverable,stripe:e.stripe,scroll:{x:e.columns.reduce((i,b)=>i+=typeof b.width!="number"?Math.max(b.title.length*16,80):b.width,0),y:e.height??"100%"},rowSelection:B,draggable:e.draggable?{type:"handle",width:40}:void 0,pagination:e.pageable===void 0||e.pageable==="client",selectedKeys:D.value,expandable:e.expandable}));function ie(){P.value=U({columns:e.columns,columnsOptions:e.columnsOptions,columnsGroups:e.columnsGroups,pageMode:x,collapsedColumns:w,events:T})}return u.onMounted(()=>{l.value&&(l.value.id=`table-${r}`),e.autoLoad&&O(),e.grabbable&&l.value&<(l.value)}),{tableId:r,tableInstance:d,tableSource:c,tableOptions:ce,tableColumns:P,tableEvents:T,tableForm:s,tableLoading:f,modalInstance:a,tableRenderElement:l,formSource:u.readonly(u.computed(()=>{var i;return(i=n==null?void 0:n.value)==null?void 0:i.formSource})),formInstance:n,reload:O,preview:j,edit:L,export:z,onSorterChange:ee,onTableChange:p,renders:{renderTableForm:te,renderTableActions:re,renderTablePagination:ne},tableSelection:{selectedRowKeys:D,rowSelection:B,onSelect:ae,onSelectAll:le},resetSelection:de,reloadSelection:ue,reloadColumns:ie}},render(){this.reloadColumns();const e=()=>u.createVNode("div",{class:"table-body"},[u.createVNode(h.Table,u.mergeProps({loading:this.tableLoading,data:this.tableSource,columns:this.tableColumns,ref:t=>this.tableInstance=t,onSelect:this.tableSelection.onSelect,onSelectAll:this.tableSelection.onSelectAll,onChange:this.onTableChange,rowClass:this.rowClass,onSorterChange:this.onSorterChange,selectedKeys:this.tableSelection.selectedRowKeys.value,"onUpdate:selectedKeys":t=>this.tableSelection.selectedRowKeys.value=t},this.tableOptions),null)]);return u.createVNode("div",{class:"table-render",ref:t=>this.tableRenderElement=t},[u.createVNode(k.ModalProvider,{ref:t=>this.modalInstance=t},{default:()=>[u.createVNode("div",{class:"table-render-content"},[this.renders.renderTableForm(),this.renders.renderTableActions(),this.$slots.header&&this.$slots.header(),e(),this.renders.renderTablePagination()])]})])}});function xt(e){return e}function St(e){return e}const Ct={install(e,t){e.component("TableRender",J)}};exports.TableRenderResolver=me.TableRenderResolver;exports.TableRender=J;exports.default=Ct;exports.defineColumns=xt;exports.defineTableLoad=St;exports.useEvents=H;exports.useTable=ge;
|