@glodon-aiot/apis 3.2.2-beta.3 → 3.2.2-beta.4

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/lib/index.js CHANGED
@@ -1,120 +1,3 @@
1
- "use strict";var Nh=Object.defineProperty,Rh=Object.defineProperties;var Ph=Object.getOwnPropertyDescriptors;var So=Object.getOwnPropertySymbols;var Vu=Object.prototype.hasOwnProperty,Ku=Object.prototype.propertyIsEnumerable;var La=(de,B)=>{if(B=Symbol[de])return B;throw Error("Symbol."+de+" is not defined")},Yi=Math.pow,zu=(de,B,G)=>B in de?Nh(de,B,{enumerable:!0,configurable:!0,writable:!0,value:G}):de[B]=G,Wn=(de,B)=>{for(var G in B||(B={}))Vu.call(B,G)&&zu(de,G,B[G]);if(So)for(var G of So(B))Ku.call(B,G)&&zu(de,G,B[G]);return de},bi=(de,B)=>Rh(de,Ph(B));var Hu=(de,B)=>{var G={};for(var he in de)Vu.call(de,he)&&B.indexOf(he)<0&&(G[he]=de[he]);if(de!=null&&So)for(var he of So(de))B.indexOf(he)<0&&Ku.call(de,he)&&(G[he]=de[he]);return G};var re=(de,B,G)=>new Promise((he,_e)=>{var Oe=x=>{try{O(G.next(x))}catch(k){_e(k)}},H=x=>{try{O(G.throw(x))}catch(k){_e(k)}},O=x=>x.done?he(x.value):Promise.resolve(x.value).then(Oe,H);O((G=G.apply(de,B)).next())}),Ch=function(de,B){this[0]=de,this[1]=B};var Wu=de=>{var B=de[La("asyncIterator")],G=!1,he,_e={};return B==null?(B=de[La("iterator")](),he=Oe=>_e[Oe]=H=>B[Oe](H)):(B=B.call(de),he=Oe=>_e[Oe]=H=>{if(G){if(G=!1,Oe==="throw")throw H;return H}return G=!0,{done:!1,value:new Ch(new Promise(O=>{var x=B[Oe](H);if(!(x instanceof Object))throw TypeError("Object expected");O(x)}),1)}}),_e[La("iterator")]=()=>_e,he("next"),"throw"in B?he("throw"):_e.throw=Oe=>{throw Oe},"return"in B&&he("return"),_e};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ui=require("axios"),Fa=require("dayjs"),Yu=require("buffer");class Qn{constructor(B,G){this.axios=B,this.errorHandler=G}get(B,G,he){return re(this,null,function*(){const _e=this.axios.get(B,{params:G});return this.handleResponse(_e,he)})}listPaged(B,G){return re(this,null,function*(){const he=this.axios.get(B,{params:G});return this.handleResponse(he)})}list(B,G){return re(this,null,function*(){const he=this.axios.get(B,{params:G});return this.handleResponse(he)})}delete(B,G){return re(this,null,function*(){const he=this.axios.delete(B,{params:G});return this.handleResponse(he)})}post(B,G,he,_e){return re(this,null,function*(){const Oe=this.axios.post(B,G,Wn({params:he},_e));return this.handleResponse(Oe)})}postForm(B,G,he){return re(this,null,function*(){const _e=this.axios.post(B,G,{params:he,headers:{"Content-Type":"multipart/form-data"}});return this.handleResponse(_e)})}patch(B,G,he){return re(this,null,function*(){const _e=this.axios.patch(B,G,{params:he});return this.handleResponse(_e)})}put(B,G){return re(this,null,function*(){const he=this.axios.put(B,G);return this.handleResponse(he)})}upload(B,G,he){return re(this,null,function*(){const _e=this.axios.post(B,G,Wn({},he));return this.handleResponse(_e)})}getNonStandard(B,G){return re(this,null,function*(){const he=this.axios.get(B,G);try{const _e=yield he;if(_e.status===200)return _e}catch(_e){throw this.handleError(_e)}})}postNonStandard(B,G,he,_e){return re(this,null,function*(){var O,x;const H=yield this.axios.post(B,G,Wn({params:he},_e));if(H.status===200)if((O=H.data)!=null&&O.code)(x=this.errorHandler)!=null&&x.onAppStatusError&&this.errorHandler.onAppStatusError(H.data.code,H.data.message);else return H.data})}handleResponse(B,G){return re(this,null,function*(){try{const he=yield B;return this.handleAppError(he.data,G).data}catch(he){throw this.handleError(he)}})}handleAppError(B,G){var he;if(B.code<200||B.code>=300)throw(he=this.errorHandler)!=null&&he.onAppStatusError?this.errorHandler.onAppStatusError(B.code,Qu(B.code,B.message),G):console.error("未处理应用错误:",B),{isAxiosError:!1,message:B.message};return B}handleError(B){var G,he;return B.response?(G=this.errorHandler)!=null&&G.onHttpStatusError&&(console.log("HTTP 错误",this.errorHandler),this.errorHandler.onHttpStatusError(B.response.status,"",B.response)):B.request?(console.log(B.request),(he=this.errorHandler)!=null&&he.onNetworkError&&this.errorHandler.onNetworkError()):console.error("axios request config error:",B),new Error(B.message)}}const Ju=de=>de>=10002&&de<=10012,Qu=(de,B)=>Ju(de)?"数据操作错误":B||"未知接口错误";class Bh extends Qn{constructor(B,G){super(B!=null?B:ui.create(),G)}getLoginUrl(){return re(this,null,function*(){return this.get("/openAddress")})}getToken(B,G){return re(this,null,function*(){return this.get(B,G)})}getAIoTTokenByGTeamToken(B){return re(this,null,function*(){return this.post("/validate/glodonCloud",B).then(G=>G.accessToken)})}postRefreshToken(B,G,he,_e="3600",Oe){return re(this,null,function*(){return this.post("/refresh-token",{oldToken:B,tenant:G,orgId:he,expired:_e,product:Oe})})}}class Dh extends Qn{constructor(B,G){super(B!=null?B:ui.create(),G)}getTenant(B){return re(this,null,function*(){return this.get(`/tenant/${B}`)})}listProduct(){return re(this,null,function*(){return this.list("/products")})}listProvinces(){return re(this,null,function*(){return this.list("/regions/provinces")})}listCities(B){return re(this,null,function*(){return this.list(`/regions/provinces/${B}/city`)})}listCounties(B,G){return re(this,null,function*(){return this.list(`/regions/provinces/${B}/city/${G}/county`)})}getOrgList(B){return re(this,null,function*(){return this.list("/org",B)})}getUserIdOrgList(B,G){return re(this,null,function*(){return this.list(`/users/${B}/org`,G)})}delOrg(B){return re(this,null,function*(){return this.delete(`/org/${B}`)})}postOrg(B){return re(this,null,function*(){return this.post("/org",B)})}patchOrg(B,G){return re(this,null,function*(){return this.patch(`/org/${B}`,G)})}getUsers(B,G){return re(this,null,function*(){return this.list(`/tenant/${B}/users`,G)})}delUser(B,G){return re(this,null,function*(){return this.delete(`/tenant/${B}/users/${G}`)})}postUser(B,G){return re(this,null,function*(){return this.post(`/tenant/${B}/users`,G)})}patchUser(B,G,he){return re(this,null,function*(){return this.patch(`tenant/${B}/users/${G}`,he)})}getTenantList(){return re(this,null,function*(){return this.get("/tenant")})}getUserIdRoles(B){return re(this,null,function*(){return this.get(`/users/${B}/role`)})}getProductCodeRole(B){return re(this,null,function*(){return this.get(`/products/${B}/role`)})}postUserRole(B,G){return re(this,null,function*(){return this.post(`/users/${B}/role`,G)})}patchUserRole(B,G,he){return re(this,null,function*(){return this.patch(`/users/${B}/role/${G}`,he)})}deleteUserRole(B,G){return re(this,null,function*(){return this.delete(`/users/${B}/role/${G}`)})}getUsersIdProductCodeMenu(B,G,he="web",_e){return re(this,null,function*(){return this.get(`/users/${B}/product/${G}/menu?groupCode=${he}`,{level:_e})})}getUserInfo(B){return re(this,null,function*(){return this.get(`/users/${B}`)})}uipermission(B,G,he="web"){return re(this,null,function*(){return this.get(`/users/${B}/product/${G}/uipermission?groupCode=${he}`)})}getAppInfo(B){return re(this,null,function*(){return this.get(`/products/${B}/apps`)})}getTenantUserInfo(B,G){return re(this,null,function*(){return this.get(`/tenant/${B}/users/${G}`)})}uploadFile(B){return re(this,null,function*(){return this.upload("/upload",B)})}getUserIdProductCodeOrg(B,G){return re(this,null,function*(){return this.get(`/users/${B}/product/${G}/org`)})}getOrg(B){return re(this,null,function*(){return this.get(`/org/${B}`)})}getUploadTicket(B){return re(this,null,function*(){return this.get("/upload/ticket",B)})}putAppInfo(B,G){return re(this,null,function*(){return this.put(`/products/${B}/apps`,G)})}getTenantKeySecret(B){return re(this,null,function*(){return this.get(`/tenant/${B}/key`)})}resetTenantKeySecret(B){return re(this,null,function*(){return this.post(`/tenant/${B}/resetSecret`,void 0)})}getProductsCode(B){return re(this,null,function*(){return this.get(`/products/${B}`)})}}var ec=(de=>(de.Collecting="采集中",de.CollectionTimeout="超时",de.CollectionFinish="完成",de.WaitUpload="等待上传",de.Uploading="上传中",de.UploadFinish="上传完成",de.UploadFailed="上传失败",de.WaitMerge="等待合成",de.CreateMergeTaskFailed="创建合成任务失败",de.Merging="合成中",de.MergeFailed="合成失败",de.MergeFinish="合成成功",de))(ec||{}),tc=(de=>(de.Collecting="采集中",de.CollectionTimeout="超时",de.CollectionFinish="完成",de.WaitUpload="等待上传",de.Uploading="上传中",de.UploadFinish="上传完成",de.UploadFailed="上传失败",de.WaitMerge="等待合成",de.CreateMergeTaskFailed="创建合成任务失败",de.Merging="合成中",de.MergeFailed="合成失败",de.MergeFinish="合成成功",de))(tc||{});class Lh extends Qn{constructor(B,G){super(B!=null?B:ui.create(),G)}static parseApiToken(B){const G=window.atob(B.split(".")[1]);return JSON.parse(G)}static loadApiToken(B,G,he){return re(this,null,function*(){return fetch(`${B}${G}/viewtoken/${he}/create_apitoken`,{method:"POST"}).then(_e=>{if(_e.status!==200)throw console.error(_e),Error(JSON.stringify(_e));return _e.json()}).then(_e=>{if(_e.code!==200)throw Error(JSON.stringify(_e));return _e.data.apiToken})})}listRecord(B){return re(this,null,function*(){return this.listPaged("/spacetwins",B)})}postRecord(B){return re(this,null,function*(){return this.post("/spacetwins",B)})}getRecordOverview(B){return re(this,null,function*(){return this.get(`/spacetwins/${B}`)})}getRecordViewtoken(B){return re(this,null,function*(){return this.get(`/spacetwins/${B}/viewtoken`)})}listScene(B){return re(this,null,function*(){return this.list(`/spacetwins/${B}/scenes`)})}getScenesByTimestamp(B,G){return re(this,null,function*(){return this.list(`/spacetwins/${B}/scenes_timestamp`,{timestamp:G})})}recomputeTrack(B,G){return re(this,null,function*(){return this.patch(`/spacetwins/${B}/track`,{points:G})})}updateRecordUploadStatus(B,G){return re(this,null,function*(){return this.post(`/spacetwins/${B}/update_upload_status`,G)})}getApiToken(B){return re(this,null,function*(){return this.post(`/viewtoken/${B}/create_apitoken`,{})})}getSpacetwins(B){return re(this,null,function*(){return this.listPaged("/spacetwins",B)})}postSpacetwins(B){return re(this,null,function*(){return this.post("/spacetwins",B)})}updateInspection(B,G){return re(this,null,function*(){return this.patch(`/patrolInspection/${B}`,G)})}getSpacetwinsIdViewtoken(B){return re(this,null,function*(){return this.get(`/spacetwins/${B}/viewtoken`)})}postSpacetwinsIdUpdateUploadStatus(B,G){return re(this,null,function*(){return this.post(`/spacetwins/${B}/update_upload_status`,G)})}postUploadTicket(B){return re(this,null,function*(){return this.post("/upload/ticket",B)})}getDownloadUrl(B){return re(this,null,function*(){return this.get(`/download/url?isv=${B.isv}&key=${B.key}`)})}listTrack(B,G){return re(this,null,function*(){return this.list(`/spacetwins/${B}/track`,{type:G})})}}class qh extends Qn{constructor(B,G){super(B!=null?B:ui.create(),G)}listPlugin(B){return re(this,null,function*(){return this.list("/plugins",B)})}postPlugin(B){return re(this,null,function*(){return this.post("/plugins",B)})}getPlugin(B){return re(this,null,function*(){return this.get(`/plugins/${B}`)})}updatePlugin(B,G){return re(this,null,function*(){return this.patch(`/plugins/${B}`,G)})}listPluginData(B,G){return re(this,null,function*(){return this.list(`/plugins/${B}/datas`,G)})}postPluginData(B,G){return re(this,null,function*(){return this.post(`/plugins/${B}/datas`,G)})}getPluginData(B,G){return re(this,null,function*(){return this.get(`/plugins/${B}/datas/${G}`).then(he=>bi(Wn({},he),{arguments:JSON.parse(he.arguments)}))})}updatePluginData(B,G,he){return re(this,null,function*(){return this.patch(`/plugins/${B}/datas/${G}`,he)})}deletePluginData(B,G){return re(this,null,function*(){return this.delete(`/plugins/${B}/datas/${G}`)})}}var Fh=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},nc={exports:{}};/*! For license information please see minio-zj.js.LICENSE.txt */(function(de,B){(function(G,he){de.exports=he()})(Fh,()=>(()=>{var G={9809:(H,O,x)=>{const k=O;k.bignum=x(4590),k.define=x(2500).define,k.base=x(1979),k.constants=x(6826),k.decoders=x(8307),k.encoders=x(6579)},2500:(H,O,x)=>{const k=x(6579),w=x(8307),g=x(5717);function M(a,d){this.name=a,this.body=d,this.decoders={},this.encoders={}}O.define=function(a,d){return new M(a,d)},M.prototype._createNamed=function(a){const d=this.name;function c(l){this._initNamed(l,d)}return g(c,a),c.prototype._initNamed=function(l,p){a.call(this,l,p)},new c(this)},M.prototype._getDecoder=function(a){return a=a||"der",this.decoders.hasOwnProperty(a)||(this.decoders[a]=this._createNamed(w[a])),this.decoders[a]},M.prototype.decode=function(a,d,c){return this._getDecoder(d).decode(a,c)},M.prototype._getEncoder=function(a){return a=a||"der",this.encoders.hasOwnProperty(a)||(this.encoders[a]=this._createNamed(k[a])),this.encoders[a]},M.prototype.encode=function(a,d,c){return this._getEncoder(d).encode(a,c)}},6625:(H,O,x)=>{const k=x(5717),w=x(8465).b,g=x(2399).Buffer;function M(d,c){w.call(this,c),g.isBuffer(d)?(this.base=d,this.offset=0,this.length=d.length):this.error("Input not Buffer")}function a(d,c){if(Array.isArray(d))this.length=0,this.value=d.map(function(l){return a.isEncoderBuffer(l)||(l=new a(l,c)),this.length+=l.length,l},this);else if(typeof d=="number"){if(!(0<=d&&d<=255))return c.error("non-byte EncoderBuffer value");this.value=d,this.length=1}else if(typeof d=="string")this.value=d,this.length=g.byteLength(d);else{if(!g.isBuffer(d))return c.error("Unsupported type: "+typeof d);this.value=d,this.length=d.length}}k(M,w),O.C=M,M.isDecoderBuffer=function(d){return d instanceof M||typeof d=="object"&&g.isBuffer(d.base)&&d.constructor.name==="DecoderBuffer"&&typeof d.offset=="number"&&typeof d.length=="number"&&typeof d.save=="function"&&typeof d.restore=="function"&&typeof d.isEmpty=="function"&&typeof d.readUInt8=="function"&&typeof d.skip=="function"&&typeof d.raw=="function"},M.prototype.save=function(){return{offset:this.offset,reporter:w.prototype.save.call(this)}},M.prototype.restore=function(d){const c=new M(this.base);return c.offset=d.offset,c.length=this.offset,this.offset=d.offset,w.prototype.restore.call(this,d.reporter),c},M.prototype.isEmpty=function(){return this.offset===this.length},M.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},M.prototype.skip=function(d,c){if(!(this.offset+d<=this.length))return this.error(c||"DecoderBuffer overrun");const l=new M(this.base);return l._reporterState=this._reporterState,l.offset=this.offset,l.length=this.offset+d,this.offset+=d,l},M.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},O.R=a,a.isEncoderBuffer=function(d){return d instanceof a||typeof d=="object"&&d.constructor.name==="EncoderBuffer"&&typeof d.length=="number"&&typeof d.join=="function"},a.prototype.join=function(d,c){return d||(d=g.alloc(this.length)),c||(c=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(l){l.join(d,c),c+=l.length}):(typeof this.value=="number"?d[c]=this.value:typeof this.value=="string"?d.write(this.value,c):g.isBuffer(this.value)&&this.value.copy(d,c),c+=this.length)),d}},1979:(H,O,x)=>{const k=O;k.Reporter=x(8465).b,k.DecoderBuffer=x(6625).C,k.EncoderBuffer=x(6625).R,k.Node=x(1949)},1949:(H,O,x)=>{const k=x(8465).b,w=x(6625).R,g=x(6625).C,M=x(9746),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function c(p,m,h){const u={};this._baseState=u,u.name=h,u.enc=p,u.parent=m||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())}H.exports=c;const l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const p=this._baseState,m={};l.forEach(function(u){m[u]=p[u]});const h=new this.constructor(m.parent);return h._baseState=m,h},c.prototype._wrap=function(){const p=this._baseState;d.forEach(function(m){this[m]=function(){const h=new this.constructor(this);return p.children.push(h),h[m].apply(h,arguments)}},this)},c.prototype._init=function(p){const m=this._baseState;M(m.parent===null),p.call(this),m.children=m.children.filter(function(h){return h._baseState.parent===this},this),M.equal(m.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(p){const m=this._baseState,h=p.filter(function(u){return u instanceof this.constructor},this);p=p.filter(function(u){return!(u instanceof this.constructor)},this),h.length!==0&&(M(m.children===null),m.children=h,h.forEach(function(u){u._baseState.parent=this},this)),p.length!==0&&(M(m.args===null),m.args=p,m.reverseArgs=p.map(function(u){if(typeof u!="object"||u.constructor!==Object)return u;const y={};return Object.keys(u).forEach(function(v){v==(0|v)&&(v|=0);const _=u[v];y[_]=v}),y}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(p){c.prototype[p]=function(){const m=this._baseState;throw new Error(p+" not implemented for encoding: "+m.enc)}}),a.forEach(function(p){c.prototype[p]=function(){const m=this._baseState,h=Array.prototype.slice.call(arguments);return M(m.tag===null),m.tag=p,this._useArgs(h),this}}),c.prototype.use=function(p){M(p);const m=this._baseState;return M(m.use===null),m.use=p,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(p){const m=this._baseState;return M(m.default===null),m.default=p,m.optional=!0,this},c.prototype.explicit=function(p){const m=this._baseState;return M(m.explicit===null&&m.implicit===null),m.explicit=p,this},c.prototype.implicit=function(p){const m=this._baseState;return M(m.explicit===null&&m.implicit===null),m.implicit=p,this},c.prototype.obj=function(){const p=this._baseState,m=Array.prototype.slice.call(arguments);return p.obj=!0,m.length!==0&&this._useArgs(m),this},c.prototype.key=function(p){const m=this._baseState;return M(m.key===null),m.key=p,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(p){const m=this._baseState;return M(m.choice===null),m.choice=p,this._useArgs(Object.keys(p).map(function(h){return p[h]})),this},c.prototype.contains=function(p){const m=this._baseState;return M(m.use===null),m.contains=p,this},c.prototype._decode=function(p,m){const h=this._baseState;if(h.parent===null)return p.wrapResult(h.children[0]._decode(p,m));let u,y=h.default,v=!0,_=null;if(h.key!==null&&(_=p.enterKey(h.key)),h.optional){let S=null;if(h.explicit!==null?S=h.explicit:h.implicit!==null?S=h.implicit:h.tag!==null&&(S=h.tag),S!==null||h.any){if(v=this._peekTag(p,S,h.any),p.isError(v))return v}else{const b=p.save();try{h.choice===null?this._decodeGeneric(h.tag,p,m):this._decodeChoice(p,m),v=!0}catch(T){v=!1}p.restore(b)}}if(h.obj&&v&&(u=p.enterObject()),v){if(h.explicit!==null){const b=this._decodeTag(p,h.explicit);if(p.isError(b))return b;p=b}const S=p.offset;if(h.use===null&&h.choice===null){let b;h.any&&(b=p.save());const T=this._decodeTag(p,h.implicit!==null?h.implicit:h.tag,h.any);if(p.isError(T))return T;h.any?y=p.raw(b):p=T}if(m&&m.track&&h.tag!==null&&m.track(p.path(),S,p.length,"tagged"),m&&m.track&&h.tag!==null&&m.track(p.path(),p.offset,p.length,"content"),h.any||(y=h.choice===null?this._decodeGeneric(h.tag,p,m):this._decodeChoice(p,m)),p.isError(y))return y;if(h.any||h.choice!==null||h.children===null||h.children.forEach(function(b){b._decode(p,m)}),h.contains&&(h.tag==="octstr"||h.tag==="bitstr")){const b=new g(y);y=this._getUse(h.contains,p._reporterState.obj)._decode(b,m)}}return h.obj&&v&&(y=p.leaveObject(u)),h.key===null||y===null&&v!==!0?_!==null&&p.exitKey(_):p.leaveKey(_,h.key,y),y},c.prototype._decodeGeneric=function(p,m,h){const u=this._baseState;return p==="seq"||p==="set"?null:p==="seqof"||p==="setof"?this._decodeList(m,p,u.args[0],h):/str$/.test(p)?this._decodeStr(m,p,h):p==="objid"&&u.args?this._decodeObjid(m,u.args[0],u.args[1],h):p==="objid"?this._decodeObjid(m,null,null,h):p==="gentime"||p==="utctime"?this._decodeTime(m,p,h):p==="null_"?this._decodeNull(m,h):p==="bool"?this._decodeBool(m,h):p==="objDesc"?this._decodeStr(m,p,h):p==="int"||p==="enum"?this._decodeInt(m,u.args&&u.args[0],h):u.use!==null?this._getUse(u.use,m._reporterState.obj)._decode(m,h):m.error("unknown tag: "+p)},c.prototype._getUse=function(p,m){const h=this._baseState;return h.useDecoder=this._use(p,m),M(h.useDecoder._baseState.parent===null),h.useDecoder=h.useDecoder._baseState.children[0],h.implicit!==h.useDecoder._baseState.implicit&&(h.useDecoder=h.useDecoder.clone(),h.useDecoder._baseState.implicit=h.implicit),h.useDecoder},c.prototype._decodeChoice=function(p,m){const h=this._baseState;let u=null,y=!1;return Object.keys(h.choice).some(function(v){const _=p.save(),S=h.choice[v];try{const b=S._decode(p,m);if(p.isError(b))return!1;u={type:v,value:b},y=!0}catch(b){return p.restore(_),!1}return!0},this),y?u:p.error("Choice not matched")},c.prototype._createEncoderBuffer=function(p){return new w(p,this.reporter)},c.prototype._encode=function(p,m,h){const u=this._baseState;if(u.default!==null&&u.default===p)return;const y=this._encodeValue(p,m,h);return y===void 0||this._skipDefault(y,m,h)?void 0:y},c.prototype._encodeValue=function(p,m,h){const u=this._baseState;if(u.parent===null)return u.children[0]._encode(p,m||new k);let y=null;if(this.reporter=m,u.optional&&p===void 0){if(u.default===null)return;p=u.default}let v=null,_=!1;if(u.any)y=this._createEncoderBuffer(p);else if(u.choice)y=this._encodeChoice(p,m);else if(u.contains)v=this._getUse(u.contains,h)._encode(p,m),_=!0;else if(u.children)v=u.children.map(function(S){if(S._baseState.tag==="null_")return S._encode(null,m,p);if(S._baseState.key===null)return m.error("Child should have a key");const b=m.enterKey(S._baseState.key);if(typeof p!="object")return m.error("Child expected, but input is not object");const T=S._encode(p[S._baseState.key],m,p);return m.leaveKey(b),T},this).filter(function(S){return S}),v=this._createEncoderBuffer(v);else if(u.tag==="seqof"||u.tag==="setof"){if(!u.args||u.args.length!==1)return m.error("Too many args for : "+u.tag);if(!Array.isArray(p))return m.error("seqof/setof, but data is not Array");const S=this.clone();S._baseState.implicit=null,v=this._createEncoderBuffer(p.map(function(b){const T=this._baseState;return this._getUse(T.args[0],p)._encode(b,m)},S))}else u.use!==null?y=this._getUse(u.use,h)._encode(p,m):(v=this._encodePrimitive(u.tag,p),_=!0);if(!u.any&&u.choice===null){const S=u.implicit!==null?u.implicit:u.tag,b=u.implicit===null?"universal":"context";S===null?u.use===null&&m.error("Tag could be omitted only for .use()"):u.use===null&&(y=this._encodeComposite(S,_,b,v))}return u.explicit!==null&&(y=this._encodeComposite(u.explicit,!1,"context",y)),y},c.prototype._encodeChoice=function(p,m){const h=this._baseState,u=h.choice[p.type];return u||M(!1,p.type+" not found in "+JSON.stringify(Object.keys(h.choice))),u._encode(p.value,m)},c.prototype._encodePrimitive=function(p,m){const h=this._baseState;if(/str$/.test(p))return this._encodeStr(m,p);if(p==="objid"&&h.args)return this._encodeObjid(m,h.reverseArgs[0],h.args[1]);if(p==="objid")return this._encodeObjid(m,null,null);if(p==="gentime"||p==="utctime")return this._encodeTime(m,p);if(p==="null_")return this._encodeNull();if(p==="int"||p==="enum")return this._encodeInt(m,h.args&&h.reverseArgs[0]);if(p==="bool")return this._encodeBool(m);if(p==="objDesc")return this._encodeStr(m,p);throw new Error("Unsupported tag: "+p)},c.prototype._isNumstr=function(p){return/^[0-9 ]*$/.test(p)},c.prototype._isPrintstr=function(p){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(p)}},8465:(H,O,x)=>{const k=x(5717);function w(M){this._reporterState={obj:null,path:[],options:M||{},errors:[]}}function g(M,a){this.path=M,this.rethrow(a)}O.b=w,w.prototype.isError=function(M){return M instanceof g},w.prototype.save=function(){const M=this._reporterState;return{obj:M.obj,pathLen:M.path.length}},w.prototype.restore=function(M){const a=this._reporterState;a.obj=M.obj,a.path=a.path.slice(0,M.pathLen)},w.prototype.enterKey=function(M){return this._reporterState.path.push(M)},w.prototype.exitKey=function(M){const a=this._reporterState;a.path=a.path.slice(0,M-1)},w.prototype.leaveKey=function(M,a,d){const c=this._reporterState;this.exitKey(M),c.obj!==null&&(c.obj[a]=d)},w.prototype.path=function(){return this._reporterState.path.join("/")},w.prototype.enterObject=function(){const M=this._reporterState,a=M.obj;return M.obj={},a},w.prototype.leaveObject=function(M){const a=this._reporterState,d=a.obj;return a.obj=M,d},w.prototype.error=function(M){let a;const d=this._reporterState,c=M instanceof g;if(a=c?M:new g(d.path.map(function(l){return"["+JSON.stringify(l)+"]"}).join(""),M.message||M,M.stack),!d.options.partial)throw a;return c||d.errors.push(a),a},w.prototype.wrapResult=function(M){const a=this._reporterState;return a.options.partial?{result:this.isError(M)?null:M,errors:a.errors}:M},k(g,Error),g.prototype.rethrow=function(M){if(this.message=M+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,g),!this.stack)try{throw new Error(this.message)}catch(a){this.stack=a.stack}return this}},160:(H,O)=>{function x(k){const w={};return Object.keys(k).forEach(function(g){(0|g)==g&&(g|=0);const M=k[g];w[M]=g}),w}O.tagClass={0:"universal",1:"application",2:"context",3:"private"},O.tagClassByName=x(O.tagClass),O.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"},O.tagByName=x(O.tag)},6826:(H,O,x)=>{const k=O;k._reverse=function(w){const g={};return Object.keys(w).forEach(function(M){(0|M)==M&&(M|=0);const a=w[M];g[a]=M}),g},k.der=x(160)},1671:(H,O,x)=>{const k=x(5717),w=x(4590),g=x(6625).C,M=x(1949),a=x(160);function d(m){this.enc="der",this.name=m.name,this.entity=m,this.tree=new c,this.tree._init(m.body)}function c(m){M.call(this,"der",m)}function l(m,h){let u=m.readUInt8(h);if(m.isError(u))return u;const y=a.tagClass[u>>6],v=(32&u)==0;if((31&u)==31){let _=u;for(u=0;(128&_)==128;){if(_=m.readUInt8(h),m.isError(_))return _;u<<=7,u|=127&_}}else u&=31;return{cls:y,primitive:v,tag:u,tagStr:a.tag[u]}}function p(m,h,u){let y=m.readUInt8(u);if(m.isError(y))return y;if(!h&&y===128)return null;if(!(128&y))return y;const v=127&y;if(v>4)return m.error("length octect is too long");y=0;for(let _=0;_<v;_++){y<<=8;const S=m.readUInt8(u);if(m.isError(S))return S;y|=S}return y}H.exports=d,d.prototype.decode=function(m,h){return g.isDecoderBuffer(m)||(m=new g(m,h)),this.tree._decode(m,h)},k(c,M),c.prototype._peekTag=function(m,h,u){if(m.isEmpty())return!1;const y=m.save(),v=l(m,'Failed to peek tag: "'+h+'"');return m.isError(v)?v:(m.restore(y),v.tag===h||v.tagStr===h||v.tagStr+"of"===h||u)},c.prototype._decodeTag=function(m,h,u){const y=l(m,'Failed to decode tag of "'+h+'"');if(m.isError(y))return y;let v=p(m,y.primitive,'Failed to get length of "'+h+'"');if(m.isError(v))return v;if(!u&&y.tag!==h&&y.tagStr!==h&&y.tagStr+"of"!==h)return m.error('Failed to match tag: "'+h+'"');if(y.primitive||v!==null)return m.skip(v,'Failed to match body of: "'+h+'"');const _=m.save(),S=this._skipUntilEnd(m,'Failed to skip indefinite length body: "'+this.tag+'"');return m.isError(S)?S:(v=m.offset-_.offset,m.restore(_),m.skip(v,'Failed to match body of: "'+h+'"'))},c.prototype._skipUntilEnd=function(m,h){for(;;){const u=l(m,h);if(m.isError(u))return u;const y=p(m,u.primitive,h);if(m.isError(y))return y;let v;if(v=u.primitive||y!==null?m.skip(y):this._skipUntilEnd(m,h),m.isError(v))return v;if(u.tagStr==="end")break}},c.prototype._decodeList=function(m,h,u,y){const v=[];for(;!m.isEmpty();){const _=this._peekTag(m,"end");if(m.isError(_))return _;const S=u.decode(m,"der",y);if(m.isError(S)&&_)break;v.push(S)}return v},c.prototype._decodeStr=function(m,h){if(h==="bitstr"){const u=m.readUInt8();return m.isError(u)?u:{unused:u,data:m.raw()}}if(h==="bmpstr"){const u=m.raw();if(u.length%2==1)return m.error("Decoding of string type: bmpstr length mismatch");let y="";for(let v=0;v<u.length/2;v++)y+=String.fromCharCode(u.readUInt16BE(2*v));return y}if(h==="numstr"){const u=m.raw().toString("ascii");return this._isNumstr(u)?u:m.error("Decoding of string type: numstr unsupported characters")}if(h==="octstr"||h==="objDesc")return m.raw();if(h==="printstr"){const u=m.raw().toString("ascii");return this._isPrintstr(u)?u:m.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(h)?m.raw().toString():m.error("Decoding of string type: "+h+" unsupported")},c.prototype._decodeObjid=function(m,h,u){let y;const v=[];let _=0,S=0;for(;!m.isEmpty();)S=m.readUInt8(),_<<=7,_|=127&S,!(128&S)&&(v.push(_),_=0);128&S&&v.push(_);const b=v[0]/40|0,T=v[0]%40;if(y=u?v:[b,T].concat(v.slice(1)),h){let C=h[y.join(" ")];C===void 0&&(C=h[y.join(".")]),C!==void 0&&(y=C)}return y},c.prototype._decodeTime=function(m,h){const u=m.raw().toString();let y,v,_,S,b,T;if(h==="gentime")y=0|u.slice(0,4),v=0|u.slice(4,6),_=0|u.slice(6,8),S=0|u.slice(8,10),b=0|u.slice(10,12),T=0|u.slice(12,14);else{if(h!=="utctime")return m.error("Decoding "+h+" time is not supported yet");y=0|u.slice(0,2),v=0|u.slice(2,4),_=0|u.slice(4,6),S=0|u.slice(6,8),b=0|u.slice(8,10),T=0|u.slice(10,12),y=y<70?2e3+y:1900+y}return Date.UTC(y,v-1,_,S,b,T,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(m){const h=m.readUInt8();return m.isError(h)?h:h!==0},c.prototype._decodeInt=function(m,h){const u=m.raw();let y=new w(u);return h&&(y=h[y.toString(10)]||y),y},c.prototype._use=function(m,h){return typeof m=="function"&&(m=m(h)),m._getDecoder("der").tree}},8307:(H,O,x)=>{const k=O;k.der=x(1671),k.pem=x(9631)},9631:(H,O,x)=>{const k=x(5717),w=x(2399).Buffer,g=x(1671);function M(a){g.call(this,a),this.enc="pem"}k(M,g),H.exports=M,M.prototype.decode=function(a,d){const c=a.toString().split(/[\r\n]+/g),l=d.label.toUpperCase(),p=/^-----(BEGIN|END) ([^-]+)-----$/;let m=-1,h=-1;for(let v=0;v<c.length;v++){const _=c[v].match(p);if(_!==null&&_[2]===l){if(m!==-1){if(_[1]!=="END")break;h=v;break}if(_[1]!=="BEGIN")break;m=v}}if(m===-1||h===-1)throw new Error("PEM section not found for: "+l);const u=c.slice(m+1,h).join("");u.replace(/[^a-z0-9+/=]+/gi,"");const y=w.from(u,"base64");return g.prototype.decode.call(this,y,d)}},6984:(H,O,x)=>{const k=x(5717),w=x(2399).Buffer,g=x(1949),M=x(160);function a(l){this.enc="der",this.name=l.name,this.entity=l,this.tree=new d,this.tree._init(l.body)}function d(l){g.call(this,"der",l)}function c(l){return l<10?"0"+l:l}H.exports=a,a.prototype.encode=function(l,p){return this.tree._encode(l,p).join()},k(d,g),d.prototype._encodeComposite=function(l,p,m,h){const u=function(_,S,b,T){let C;if(_==="seqof"?_="seq":_==="setof"&&(_="set"),M.tagByName.hasOwnProperty(_))C=M.tagByName[_];else{if(typeof _!="number"||(0|_)!==_)return T.error("Unknown tag: "+_);C=_}return C>=31?T.error("Multi-octet tag encoding unsupported"):(S||(C|=32),C|=M.tagClassByName[b||"universal"]<<6,C)}(l,p,m,this.reporter);if(h.length<128){const _=w.alloc(2);return _[0]=u,_[1]=h.length,this._createEncoderBuffer([_,h])}let y=1;for(let _=h.length;_>=256;_>>=8)y++;const v=w.alloc(2+y);v[0]=u,v[1]=128|y;for(let _=1+y,S=h.length;S>0;_--,S>>=8)v[_]=255&S;return this._createEncoderBuffer([v,h])},d.prototype._encodeStr=function(l,p){if(p==="bitstr")return this._createEncoderBuffer([0|l.unused,l.data]);if(p==="bmpstr"){const m=w.alloc(2*l.length);for(let h=0;h<l.length;h++)m.writeUInt16BE(l.charCodeAt(h),2*h);return this._createEncoderBuffer(m)}return p==="numstr"?this._isNumstr(l)?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: numstr supports only digits and space"):p==="printstr"?this._isPrintstr(l)?this._createEncoderBuffer(l):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(p)||p==="objDesc"?this._createEncoderBuffer(l):this.reporter.error("Encoding of string type: "+p+" unsupported")},d.prototype._encodeObjid=function(l,p,m){if(typeof l=="string"){if(!p)return this.reporter.error("string objid given, but no values map found");if(!p.hasOwnProperty(l))return this.reporter.error("objid not found in values map");l=p[l].split(/[\s.]+/g);for(let v=0;v<l.length;v++)l[v]|=0}else if(Array.isArray(l)){l=l.slice();for(let v=0;v<l.length;v++)l[v]|=0}if(!Array.isArray(l))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(l));if(!m){if(l[1]>=40)return this.reporter.error("Second objid identifier OOB");l.splice(0,2,40*l[0]+l[1])}let h=0;for(let v=0;v<l.length;v++){let _=l[v];for(h++;_>=128;_>>=7)h++}const u=w.alloc(h);let y=u.length-1;for(let v=l.length-1;v>=0;v--){let _=l[v];for(u[y--]=127&_;(_>>=7)>0;)u[y--]=128|127&_}return this._createEncoderBuffer(u)},d.prototype._encodeTime=function(l,p){let m;const h=new Date(l);return p==="gentime"?m=[c(h.getUTCFullYear()),c(h.getUTCMonth()+1),c(h.getUTCDate()),c(h.getUTCHours()),c(h.getUTCMinutes()),c(h.getUTCSeconds()),"Z"].join(""):p==="utctime"?m=[c(h.getUTCFullYear()%100),c(h.getUTCMonth()+1),c(h.getUTCDate()),c(h.getUTCHours()),c(h.getUTCMinutes()),c(h.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+p+" time is not supported yet"),this._encodeStr(m,"octstr")},d.prototype._encodeNull=function(){return this._createEncoderBuffer("")},d.prototype._encodeInt=function(l,p){if(typeof l=="string"){if(!p)return this.reporter.error("String int or enum given, but no values map");if(!p.hasOwnProperty(l))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(l));l=p[l]}if(typeof l!="number"&&!w.isBuffer(l)){const u=l.toArray();!l.sign&&128&u[0]&&u.unshift(0),l=w.from(u)}if(w.isBuffer(l)){let u=l.length;l.length===0&&u++;const y=w.alloc(u);return l.copy(y),l.length===0&&(y[0]=0),this._createEncoderBuffer(y)}if(l<128)return this._createEncoderBuffer(l);if(l<256)return this._createEncoderBuffer([0,l]);let m=1;for(let u=l;u>=256;u>>=8)m++;const h=new Array(m);for(let u=h.length-1;u>=0;u--)h[u]=255&l,l>>=8;return 128&h[0]&&h.unshift(0),this._createEncoderBuffer(w.from(h))},d.prototype._encodeBool=function(l){return this._createEncoderBuffer(l?255:0)},d.prototype._use=function(l,p){return typeof l=="function"&&(l=l(p)),l._getEncoder("der").tree},d.prototype._skipDefault=function(l,p,m){const h=this._baseState;let u;if(h.default===null)return!1;const y=l.join();if(h.defaultBuffer===void 0&&(h.defaultBuffer=this._encodeValue(h.default,p,m).join()),y.length!==h.defaultBuffer.length)return!1;for(u=0;u<y.length;u++)if(y[u]!==h.defaultBuffer[u])return!1;return!0}},6579:(H,O,x)=>{const k=O;k.der=x(6984),k.pem=x(2883)},2883:(H,O,x)=>{const k=x(5717),w=x(6984);function g(M){w.call(this,M),this.enc="pem"}k(g,w),H.exports=g,g.prototype.encode=function(M,a){const d=w.prototype.encode.call(this,M).toString("base64"),c=["-----BEGIN "+a.label+"-----"];for(let l=0;l<d.length;l+=64)c.push(d.slice(l,l+64));return c.push("-----END "+a.label+"-----"),c.join(`
2
- `)}},4590:function(H,O,x){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function a(e,r,i){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var d;typeof k=="object"?k.exports=a:w.BN=a,a.BN=a,a.wordSize=26;try{d=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:x(950).Buffer}catch(e){}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function p(e,r,i,n){for(var t=0,o=Math.min(e.length,i),s=r;s<o;s++){var I=e.charCodeAt(s)-48;t*=n,t+=I>=49?I-49+10:I>=17?I-17+10:I}return t}a.isBN=function(e){return e instanceof a||e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,r){return e.cmp(r)>0?e:r},a.min=function(e,r){return e.cmp(r)<0?e:r},a.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),g(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},a.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(g(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},a.prototype._initArray=function(e,r,i){if(g(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,s=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);return this.strip()},a.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,s=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;this.strip()},a.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,s=o%n,I=Math.min(o,o-s)+i,P=0,j=i;j<I;j+=n)P=p(e,j,j+n,r),this.imuln(t),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(s!==0){var A=1;for(P=p(e,j,e.length,r),j=0;j<s;j++)A*=r;this.imuln(A),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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 y(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],s=t*o,I=67108863&s,P=s/67108864|0;i.words[0]=I;for(var j=1;j<n;j++){for(var A=P>>>26,N=67108863&P,L=Math.min(j,r.length-1),z=Math.max(0,j-e.length+1);z<=L;z++){var Y=j-z|0;A+=(s=(t=0|e.words[Y])*(o=0|r.words[z])+N)/67108864|0,N=67108863&s}i.words[j]=0|N,P=0|A}return P!==0?i.words[j]=0|P:i.length--,i.strip()}a.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var s=this.words[o],I=(16777215&(s<<n|t)).toString(16);i=(t=s>>>24-n&16777215)!=0||o!==this.length-1?m[6-I.length]+I+i:I+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var P=h[e],j=u[e];i="";var A=this.clone();for(A.negative=0;!A.isZero();){var N=A.modn(j).toString(e);i=(A=A.idivn(j)).isZero()?N+i:m[P-N.length]+N+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}g(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&g(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,r){return g(d!==void 0),this.toArrayLike(d,e,r)},a.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},a.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);g(n<=t,"byte array longer than desired length"),g(t>0,"Requested array length <= 0"),this.strip();var o,s,I=r==="le",P=new e(t),j=this.clone();if(I){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[s]=o;for(;s<t;s++)P[s]=0}else{for(s=0;s<t-n;s++)P[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[t-s-1]=o}return P},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},a.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},a.prototype.ior=function(e){return g((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},a.prototype.iand=function(e){return g((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},a.prototype.ixor=function(e){return g((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){g(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,r){g(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},a.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(r=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&r;for(;o!==0&&s<i.length;s++)o=(r=(0|i.words[s])+o)>>26,this.words[s]=67108863&r;if(o===0&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,r,i){var n,t,o,s=e.words,I=r.words,P=i.words,j=0,A=0|s[0],N=8191&A,L=A>>>13,z=0|s[1],Y=8191&z,D=z>>>13,K=0|s[2],q=8191&K,U=K>>>13,te=0|s[3],J=8191&te,ae=te>>>13,xe=0|s[4],ce=8191&xe,fe=xe>>>13,Te=0|s[5],ye=8191&Te,Ee=Te>>>13,V=0|s[6],W=8191&V,Q=V>>>13,ge=0|s[7],oe=8191&ge,ue=ge>>>13,Ne=0|s[8],we=8191&Ne,Me=Ne>>>13,pt=0|s[9],ke=8191&pt,je=pt>>>13,Et=0|I[0],Ie=8191&Et,Xe=Et>>>13,Ct=0|I[1],De=8191&Ct,Ke=Ct>>>13,Nt=0|I[2],Pe=8191&Nt,He=Nt>>>13,vt=0|I[3],Ce=8191&vt,Ze=vt>>>13,St=0|I[4],Re=8191&St,Ge=St>>>13,It=0|I[5],qe=8191&It,Ye=It>>>13,Dt=0|I[6],Le=8191&Dt,et=Dt>>>13,$t=0|I[7],Fe=8191&$t,Qe=$t>>>13,Ut=0|I[8],$e=8191&Ut,nt=Ut>>>13,zt=0|I[9],Ue=8191&zt,tt=zt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(j+(n=Math.imul(N,Ie))|0)+((8191&(t=(t=Math.imul(N,Xe))+Math.imul(L,Ie)|0))<<13)|0;j=((o=Math.imul(L,Xe))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Y,Ie),t=(t=Math.imul(Y,Xe))+Math.imul(D,Ie)|0,o=Math.imul(D,Xe);var Rt=(j+(n=n+Math.imul(N,De)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ke)|0)+Math.imul(L,De)|0))<<13)|0;j=((o=o+Math.imul(L,Ke)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(q,Ie),t=(t=Math.imul(q,Xe))+Math.imul(U,Ie)|0,o=Math.imul(U,Xe),n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Ke)|0;var Zt=(j+(n=n+Math.imul(N,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(N,He)|0)+Math.imul(L,Pe)|0))<<13)|0;j=((o=o+Math.imul(L,He)|0)+(t>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(J,Ie),t=(t=Math.imul(J,Xe))+Math.imul(ae,Ie)|0,o=Math.imul(ae,Xe),n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,He)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,He)|0;var on=(j+(n=n+Math.imul(N,Ce)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ze)|0)+Math.imul(L,Ce)|0))<<13)|0;j=((o=o+Math.imul(L,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(ce,Ie),t=(t=Math.imul(ce,Xe))+Math.imul(fe,Ie)|0,o=Math.imul(fe,Xe),n=n+Math.imul(J,De)|0,t=(t=t+Math.imul(J,Ke)|0)+Math.imul(ae,De)|0,o=o+Math.imul(ae,Ke)|0,n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,He)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,He)|0,n=n+Math.imul(Y,Ce)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(D,Ce)|0,o=o+Math.imul(D,Ze)|0;var tn=(j+(n=n+Math.imul(N,Re)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ge)|0)+Math.imul(L,Re)|0))<<13)|0;j=((o=o+Math.imul(L,Ge)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(ye,Ie),t=(t=Math.imul(ye,Xe))+Math.imul(Ee,Ie)|0,o=Math.imul(Ee,Xe),n=n+Math.imul(ce,De)|0,t=(t=t+Math.imul(ce,Ke)|0)+Math.imul(fe,De)|0,o=o+Math.imul(fe,Ke)|0,n=n+Math.imul(J,Pe)|0,t=(t=t+Math.imul(J,He)|0)+Math.imul(ae,Pe)|0,o=o+Math.imul(ae,He)|0,n=n+Math.imul(q,Ce)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(U,Ce)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ge)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ge)|0;var an=(j+(n=n+Math.imul(N,qe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ye)|0)+Math.imul(L,qe)|0))<<13)|0;j=((o=o+Math.imul(L,Ye)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(W,Ie),t=(t=Math.imul(W,Xe))+Math.imul(Q,Ie)|0,o=Math.imul(Q,Xe),n=n+Math.imul(ye,De)|0,t=(t=t+Math.imul(ye,Ke)|0)+Math.imul(Ee,De)|0,o=o+Math.imul(Ee,Ke)|0,n=n+Math.imul(ce,Pe)|0,t=(t=t+Math.imul(ce,He)|0)+Math.imul(fe,Pe)|0,o=o+Math.imul(fe,He)|0,n=n+Math.imul(J,Ce)|0,t=(t=t+Math.imul(J,Ze)|0)+Math.imul(ae,Ce)|0,o=o+Math.imul(ae,Ze)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ge)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ge)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,Ye)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Ye)|0;var sn=(j+(n=n+Math.imul(N,Le)|0)|0)+((8191&(t=(t=t+Math.imul(N,et)|0)+Math.imul(L,Le)|0))<<13)|0;j=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(sn>>>26)|0,sn&=67108863,n=Math.imul(oe,Ie),t=(t=Math.imul(oe,Xe))+Math.imul(ue,Ie)|0,o=Math.imul(ue,Xe),n=n+Math.imul(W,De)|0,t=(t=t+Math.imul(W,Ke)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(ye,Pe)|0,t=(t=t+Math.imul(ye,He)|0)+Math.imul(Ee,Pe)|0,o=o+Math.imul(Ee,He)|0,n=n+Math.imul(ce,Ce)|0,t=(t=t+Math.imul(ce,Ze)|0)+Math.imul(fe,Ce)|0,o=o+Math.imul(fe,Ze)|0,n=n+Math.imul(J,Re)|0,t=(t=t+Math.imul(J,Ge)|0)+Math.imul(ae,Re)|0,o=o+Math.imul(ae,Ge)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Ye)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Ye)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,et)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,et)|0;var un=(j+(n=n+Math.imul(N,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Qe)|0)+Math.imul(L,Fe)|0))<<13)|0;j=((o=o+Math.imul(L,Qe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(we,Ie),t=(t=Math.imul(we,Xe))+Math.imul(Me,Ie)|0,o=Math.imul(Me,Xe),n=n+Math.imul(oe,De)|0,t=(t=t+Math.imul(oe,Ke)|0)+Math.imul(ue,De)|0,o=o+Math.imul(ue,Ke)|0,n=n+Math.imul(W,Pe)|0,t=(t=t+Math.imul(W,He)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,He)|0,n=n+Math.imul(ye,Ce)|0,t=(t=t+Math.imul(ye,Ze)|0)+Math.imul(Ee,Ce)|0,o=o+Math.imul(Ee,Ze)|0,n=n+Math.imul(ce,Re)|0,t=(t=t+Math.imul(ce,Ge)|0)+Math.imul(fe,Re)|0,o=o+Math.imul(fe,Ge)|0,n=n+Math.imul(J,qe)|0,t=(t=t+Math.imul(J,Ye)|0)+Math.imul(ae,qe)|0,o=o+Math.imul(ae,Ye)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,et)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,et)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,Qe)|0;var cn=(j+(n=n+Math.imul(N,$e)|0)|0)+((8191&(t=(t=t+Math.imul(N,nt)|0)+Math.imul(L,$e)|0))<<13)|0;j=((o=o+Math.imul(L,nt)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(ke,Ie),t=(t=Math.imul(ke,Xe))+Math.imul(je,Ie)|0,o=Math.imul(je,Xe),n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Me,De)|0,o=o+Math.imul(Me,Ke)|0,n=n+Math.imul(oe,Pe)|0,t=(t=t+Math.imul(oe,He)|0)+Math.imul(ue,Pe)|0,o=o+Math.imul(ue,He)|0,n=n+Math.imul(W,Ce)|0,t=(t=t+Math.imul(W,Ze)|0)+Math.imul(Q,Ce)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(ye,Re)|0,t=(t=t+Math.imul(ye,Ge)|0)+Math.imul(Ee,Re)|0,o=o+Math.imul(Ee,Ge)|0,n=n+Math.imul(ce,qe)|0,t=(t=t+Math.imul(ce,Ye)|0)+Math.imul(fe,qe)|0,o=o+Math.imul(fe,Ye)|0,n=n+Math.imul(J,Le)|0,t=(t=t+Math.imul(J,et)|0)+Math.imul(ae,Le)|0,o=o+Math.imul(ae,et)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(Y,$e)|0,t=(t=t+Math.imul(Y,nt)|0)+Math.imul(D,$e)|0,o=o+Math.imul(D,nt)|0;var ln=(j+(n=n+Math.imul(N,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(N,tt)|0)+Math.imul(L,Ue)|0))<<13)|0;j=((o=o+Math.imul(L,tt)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(ke,De),t=(t=Math.imul(ke,Ke))+Math.imul(je,De)|0,o=Math.imul(je,Ke),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,He)|0)+Math.imul(Me,Pe)|0,o=o+Math.imul(Me,He)|0,n=n+Math.imul(oe,Ce)|0,t=(t=t+Math.imul(oe,Ze)|0)+Math.imul(ue,Ce)|0,o=o+Math.imul(ue,Ze)|0,n=n+Math.imul(W,Re)|0,t=(t=t+Math.imul(W,Ge)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ge)|0,n=n+Math.imul(ye,qe)|0,t=(t=t+Math.imul(ye,Ye)|0)+Math.imul(Ee,qe)|0,o=o+Math.imul(Ee,Ye)|0,n=n+Math.imul(ce,Le)|0,t=(t=t+Math.imul(ce,et)|0)+Math.imul(fe,Le)|0,o=o+Math.imul(fe,et)|0,n=n+Math.imul(J,Fe)|0,t=(t=t+Math.imul(J,Qe)|0)+Math.imul(ae,Fe)|0,o=o+Math.imul(ae,Qe)|0,n=n+Math.imul(q,$e)|0,t=(t=t+Math.imul(q,nt)|0)+Math.imul(U,$e)|0,o=o+Math.imul(U,nt)|0;var hn=(j+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,tt)|0)+Math.imul(D,Ue)|0))<<13)|0;j=((o=o+Math.imul(D,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(ke,Pe),t=(t=Math.imul(ke,He))+Math.imul(je,Pe)|0,o=Math.imul(je,He),n=n+Math.imul(we,Ce)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Me,Ce)|0,o=o+Math.imul(Me,Ze)|0,n=n+Math.imul(oe,Re)|0,t=(t=t+Math.imul(oe,Ge)|0)+Math.imul(ue,Re)|0,o=o+Math.imul(ue,Ge)|0,n=n+Math.imul(W,qe)|0,t=(t=t+Math.imul(W,Ye)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,Ye)|0,n=n+Math.imul(ye,Le)|0,t=(t=t+Math.imul(ye,et)|0)+Math.imul(Ee,Le)|0,o=o+Math.imul(Ee,et)|0,n=n+Math.imul(ce,Fe)|0,t=(t=t+Math.imul(ce,Qe)|0)+Math.imul(fe,Fe)|0,o=o+Math.imul(fe,Qe)|0,n=n+Math.imul(J,$e)|0,t=(t=t+Math.imul(J,nt)|0)+Math.imul(ae,$e)|0,o=o+Math.imul(ae,nt)|0;var Gt=(j+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,tt)|0)+Math.imul(U,Ue)|0))<<13)|0;j=((o=o+Math.imul(U,tt)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ke,Ce),t=(t=Math.imul(ke,Ze))+Math.imul(je,Ce)|0,o=Math.imul(je,Ze),n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ge)|0)+Math.imul(Me,Re)|0,o=o+Math.imul(Me,Ge)|0,n=n+Math.imul(oe,qe)|0,t=(t=t+Math.imul(oe,Ye)|0)+Math.imul(ue,qe)|0,o=o+Math.imul(ue,Ye)|0,n=n+Math.imul(W,Le)|0,t=(t=t+Math.imul(W,et)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,et)|0,n=n+Math.imul(ye,Fe)|0,t=(t=t+Math.imul(ye,Qe)|0)+Math.imul(Ee,Fe)|0,o=o+Math.imul(Ee,Qe)|0,n=n+Math.imul(ce,$e)|0,t=(t=t+Math.imul(ce,nt)|0)+Math.imul(fe,$e)|0,o=o+Math.imul(fe,nt)|0;var pn=(j+(n=n+Math.imul(J,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(J,tt)|0)+Math.imul(ae,Ue)|0))<<13)|0;j=((o=o+Math.imul(ae,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(ke,Re),t=(t=Math.imul(ke,Ge))+Math.imul(je,Re)|0,o=Math.imul(je,Ge),n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,Ye)|0)+Math.imul(Me,qe)|0,o=o+Math.imul(Me,Ye)|0,n=n+Math.imul(oe,Le)|0,t=(t=t+Math.imul(oe,et)|0)+Math.imul(ue,Le)|0,o=o+Math.imul(ue,et)|0,n=n+Math.imul(W,Fe)|0,t=(t=t+Math.imul(W,Qe)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(ye,$e)|0,t=(t=t+Math.imul(ye,nt)|0)+Math.imul(Ee,$e)|0,o=o+Math.imul(Ee,nt)|0;var mn=(j+(n=n+Math.imul(ce,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ce,tt)|0)+Math.imul(fe,Ue)|0))<<13)|0;j=((o=o+Math.imul(fe,tt)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863,n=Math.imul(ke,qe),t=(t=Math.imul(ke,Ye))+Math.imul(je,qe)|0,o=Math.imul(je,Ye),n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,et)|0)+Math.imul(Me,Le)|0,o=o+Math.imul(Me,et)|0,n=n+Math.imul(oe,Fe)|0,t=(t=t+Math.imul(oe,Qe)|0)+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Qe)|0,n=n+Math.imul(W,$e)|0,t=(t=t+Math.imul(W,nt)|0)+Math.imul(Q,$e)|0,o=o+Math.imul(Q,nt)|0;var Qt=(j+(n=n+Math.imul(ye,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ye,tt)|0)+Math.imul(Ee,Ue)|0))<<13)|0;j=((o=o+Math.imul(Ee,tt)|0)+(t>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,n=Math.imul(ke,Le),t=(t=Math.imul(ke,et))+Math.imul(je,Le)|0,o=Math.imul(je,et),n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Qe)|0,n=n+Math.imul(oe,$e)|0,t=(t=t+Math.imul(oe,nt)|0)+Math.imul(ue,$e)|0,o=o+Math.imul(ue,nt)|0;var en=(j+(n=n+Math.imul(W,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(W,tt)|0)+Math.imul(Q,Ue)|0))<<13)|0;j=((o=o+Math.imul(Q,tt)|0)+(t>>>13)|0)+(en>>>26)|0,en&=67108863,n=Math.imul(ke,Fe),t=(t=Math.imul(ke,Qe))+Math.imul(je,Fe)|0,o=Math.imul(je,Qe),n=n+Math.imul(we,$e)|0,t=(t=t+Math.imul(we,nt)|0)+Math.imul(Me,$e)|0,o=o+Math.imul(Me,nt)|0;var Yt=(j+(n=n+Math.imul(oe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(oe,tt)|0)+Math.imul(ue,Ue)|0))<<13)|0;j=((o=o+Math.imul(ue,tt)|0)+(t>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(ke,$e),t=(t=Math.imul(ke,nt))+Math.imul(je,$e)|0,o=Math.imul(je,nt);var fn=(j+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,tt)|0)+Math.imul(Me,Ue)|0))<<13)|0;j=((o=o+Math.imul(Me,tt)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863;var nn=(j+(n=Math.imul(ke,Ue))|0)+((8191&(t=(t=Math.imul(ke,tt))+Math.imul(je,Ue)|0))<<13)|0;return j=((o=Math.imul(je,tt))+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,P[0]=Tt,P[1]=Rt,P[2]=Zt,P[3]=on,P[4]=tn,P[5]=an,P[6]=sn,P[7]=un,P[8]=cn,P[9]=ln,P[10]=hn,P[11]=Gt,P[12]=pn,P[13]=mn,P[14]=Qt,P[15]=en,P[16]=Yt,P[17]=fn,P[18]=nn,j!==0&&(P[19]=j,i.length++),i};function _(e,r,i){return new S().mulp(e,r,i)}function S(e,r){this.x=e,this.y=r}Math.imul||(v=y),a.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?y(this,e,r):n<1024?function(t,o,s){s.negative=o.negative^t.negative,s.length=t.length+o.length;for(var I=0,P=0,j=0;j<s.length-1;j++){var A=P;P=0;for(var N=67108863&I,L=Math.min(j,o.length-1),z=Math.max(0,j-t.length+1);z<=L;z++){var Y=j-z,D=(0|t.words[Y])*(0|o.words[z]),K=67108863&D;N=67108863&(K=K+N|0),P+=(A=(A=A+(D/67108864|0)|0)+(K>>>26)|0)>>>26,A&=67108863}s.words[j]=N,I=A,A=P}return I!==0?s.words[j]=I:s.length--,s.strip()}(this,e,r):_(this,e,r),i},S.prototype.makeRBT=function(e){for(var r=new Array(e),i=a.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},S.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},S.prototype.permute=function(e,r,i,n,t,o){for(var s=0;s<o;s++)n[s]=r[e[s]],t[s]=i[e[s]]},S.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var s=1;s<t;s<<=1)for(var I=s<<1,P=Math.cos(2*Math.PI/I),j=Math.sin(2*Math.PI/I),A=0;A<t;A+=I)for(var N=P,L=j,z=0;z<s;z++){var Y=i[A+z],D=n[A+z],K=i[A+z+s],q=n[A+z+s],U=N*K-L*q;q=N*q+L*K,K=U,i[A+z]=Y+K,n[A+z]=D+q,i[A+z+s]=Y-K,n[A+z+s]=D-q,z!==I&&(U=P*N-j*L,L=P*L+j*N,N=U)}},S.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},S.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},S.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},S.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;g(t===0),g((-8192&t)==0)},S.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},S.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),s=new Array(n),I=new Array(n),P=new Array(n),j=new Array(n),A=new Array(n),N=new Array(n),L=i.words;L.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(r.words,r.length,j,n),this.transform(s,o,I,P,n,t),this.transform(j,o,A,N,n,t);for(var z=0;z<n;z++){var Y=I[z]*A[z]-P[z]*N[z];P[z]=I[z]*N[z]+P[z]*A[z],I[z]=Y}return this.conjugate(I,P,n),this.transform(I,P,L,o,n,t),this.conjugate(L,o,n),this.normalize13b(L,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},a.prototype.mul=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},a.prototype.mulf=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),_(this,e,r)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){g(typeof e=="number"),g(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var r=function(o){for(var s=new Array(o.bitLength()),I=0;I<s.length;I++){var P=I/26|0,j=I%26;s[I]=(o.words[P]&1<<j)>>>j}return s}(e);if(r.length===0)return new a(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},a.prototype.iushln=function(e){g(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var s=this.words[r]&t,I=(0|this.words[r])-s<<i;this.words[r]=I|o,o=s>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},a.prototype.ishln=function(e){return g(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,r,i){var n;g(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),s=67108863^67108863>>>t<<t,I=i;if(n-=o,n=Math.max(0,n),I){for(var P=0;P<o;P++)I.words[P]=this.words[P];I.length=o}if(o!==0)if(this.length>o)for(this.length-=o,P=0;P<this.length;P++)this.words[P]=this.words[P+o];else this.words[0]=0,this.length=1;var j=0;for(P=this.length-1;P>=0&&(j!==0||P>=n);P--){var A=0|this.words[P];this.words[P]=j<<26-t|A>>>t,j=A&s}return I&&j!==0&&(I.words[I.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,r,i){return g(this.negative===0),this.iushrn(e,r,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},a.prototype.imaskn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return g(typeof e=="number"),g(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(e){if(g(typeof e=="number"),g(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var s=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+s;var I=(0|e.words[n])*r;s=((t-=67108863&I)>>26)-(I/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)s=(t=(0|this.words[n+i])+s)>>26,this.words[n+i]=67108863&t;if(s===0)return this.strip();for(g(s===-1),s=0,n=0;n<this.length;n++)s=(t=-(0|this.words[n])+s)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var s,I=n.length-t.length;if(r!=="mod"){(s=new a(null)).length=I+1,s.words=new Array(s.length);for(var P=0;P<s.length;P++)s.words[P]=0}var j=n.clone()._ishlnsubmul(t,1,I);j.negative===0&&(n=j,s&&(s.words[I]=1));for(var A=I-1;A>=0;A--){var N=67108864*(0|n.words[t.length+A])+(0|n.words[t.length+A-1]);for(N=Math.min(N/o|0,67108863),n._ishlnsubmul(t,N,A);n.negative!==0;)N--,n.negative=0,n._ishlnsubmul(t,1,A),n.isZero()||(n.negative^=1);s&&(s.words[A]=N)}return s&&s.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:s||null,mod:n}},a.prototype.divmod=function(e,r,i){return g(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(e){g(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},a.prototype.idivn=function(e){g(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new a(1),t=new a(0),o=new a(0),s=new a(1),I=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++I;for(var P=i.clone(),j=r.clone();!r.isZero();){for(var A=0,N=1;!(r.words[0]&N)&&A<26;++A,N<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(P),t.isub(j)),n.iushrn(1),t.iushrn(1);for(var L=0,z=1;!(i.words[0]&z)&&L<26;++L,z<<=1);if(L>0)for(i.iushrn(L);L-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(P),s.isub(j)),o.iushrn(1),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(s)):(i.isub(r),o.isub(n),s.isub(t))}return{a:o,b:s,gcd:i.iushln(I)}},a.prototype._invmp=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new a(1),o=new a(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var I=0,P=1;!(r.words[0]&P)&&I<26;++I,P<<=1);if(I>0)for(r.iushrn(I);I-- >0;)t.isOdd()&&t.iadd(s),t.iushrn(1);for(var j=0,A=1;!(i.words[0]&A)&&j<26;++j,A<<=1);if(j>0)for(i.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){g(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var s=0|this.words[o];t=(s+=t)>>>26,s&=67108863,this.words[o]=s}return t!==0&&(this.words[o]=t,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),g(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new Z(e)},a.prototype.toRed=function(e){return g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return g(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return g(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function T(e,r){this.name=e,this.p=new a(r,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function R(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function F(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function X(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Z(e){if(typeof e=="string"){var r=a._prime(e);this.m=r.p,this.prime=r}else g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ne(e){Z.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}T.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},T.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},T.prototype.split=function(e,r){e.iushrn(this.n,0,r)},T.prototype.imulK=function(e){return e.imul(this.k)},M(C,T),C.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var s=0|e.words[t];e.words[t-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},M(R,T),M(F,T),M(X,T),X.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},a._prime=function(e){if(b[e])return b[e];var r;if(e==="k256")r=new C;else if(e==="p224")r=new R;else if(e==="p192")r=new F;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new X}return b[e]=r,r},Z.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},Z.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(e.red&&e.red===r.red,"red works only with red numbers")},Z.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},Z.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Z.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},Z.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},Z.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},Z.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},Z.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},Z.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},Z.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},Z.prototype.isqr=function(e){return this.imul(e,e.clone())},Z.prototype.sqr=function(e){return this.mul(e,e)},Z.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(g(r%2==1),r===3){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);g(!n.isZero());var o=new a(1).toRed(this),s=o.redNeg(),I=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new a(2*P*P).toRed(this);this.pow(P,I).cmp(s)!==0;)P.redIAdd(s);for(var j=this.pow(P,n),A=this.pow(e,n.addn(1).iushrn(1)),N=this.pow(e,n),L=t;N.cmp(o)!==0;){for(var z=N,Y=0;z.cmp(o)!==0;Y++)z=z.redSqr();g(Y<L);var D=this.pow(j,new a(1).iushln(L-Y-1));A=A.redMul(D),j=D.redSqr(),N=N.redMul(j),L=Y}return A},Z.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},Z.prototype.pow=function(e,r){if(r.isZero())return new a(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,s=0,I=r.bitLength()%26;for(I===0&&(I=26),n=r.length-1;n>=0;n--){for(var P=r.words[n],j=I-1;j>=0;j--){var A=P>>j&1;t!==i[0]&&(t=this.sqr(t)),A!==0||o!==0?(o<<=1,o|=A,(++s==4||n===0&&j===0)&&(t=this.mul(t,i[o]),s=0,o=0)):s=0}I=26}return t},Z.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},Z.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},a.mont=function(e){return new ne(e)},M(ne,Z),ne.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ne.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ne.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new a(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=x.nmd(H),this)},9282:(H,O,x)=>{var k=x(4155),w=x(5108);function g(j){return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},g(j)}var M,a,d=x(2136).codes,c=d.ERR_AMBIGUOUS_ARGUMENT,l=d.ERR_INVALID_ARG_TYPE,p=d.ERR_INVALID_ARG_VALUE,m=d.ERR_INVALID_RETURN_VALUE,h=d.ERR_MISSING_ARGS,u=x(5961),y=x(9539).inspect,v=x(9539).types,_=v.isPromise,S=v.isRegExp,b=Object.assign?Object.assign:x(8091).assign,T=Object.is?Object.is:x(609);function C(){var j=x(9158);M=j.isDeepEqual,a=j.isDeepStrictEqual}var R=!1,F=H.exports=e,X={};function Z(j){throw j.message instanceof Error?j.message:new u(j)}function ne(j,A,N,L){if(!N){var z=!1;if(A===0)z=!0,L="No value argument passed to `assert.ok()`";else if(L instanceof Error)throw L;var Y=new u({actual:N,expected:!0,message:L,operator:"==",stackStartFn:j});throw Y.generatedMessage=z,Y}}function e(){for(var j=arguments.length,A=new Array(j),N=0;N<j;N++)A[N]=arguments[N];ne.apply(void 0,[e,A.length].concat(A))}F.fail=function j(A,N,L,z,Y){var D,K=arguments.length;if(K===0?D="Failed":K===1?(L=A,A=void 0):(R===!1&&(R=!0,(k.emitWarning?k.emitWarning:w.warn.bind(w))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),K===2&&(z="!=")),L instanceof Error)throw L;var q={actual:A,expected:N,operator:z===void 0?"fail":z,stackStartFn:Y||j};L!==void 0&&(q.message=L);var U=new u(q);throw D&&(U.message=D,U.generatedMessage=!0),U},F.AssertionError=u,F.ok=e,F.equal=function j(A,N,L){if(arguments.length<2)throw new h("actual","expected");A!=N&&Z({actual:A,expected:N,message:L,operator:"==",stackStartFn:j})},F.notEqual=function j(A,N,L){if(arguments.length<2)throw new h("actual","expected");A==N&&Z({actual:A,expected:N,message:L,operator:"!=",stackStartFn:j})},F.deepEqual=function j(A,N,L){if(arguments.length<2)throw new h("actual","expected");M===void 0&&C(),M(A,N)||Z({actual:A,expected:N,message:L,operator:"deepEqual",stackStartFn:j})},F.notDeepEqual=function j(A,N,L){if(arguments.length<2)throw new h("actual","expected");M===void 0&&C(),M(A,N)&&Z({actual:A,expected:N,message:L,operator:"notDeepEqual",stackStartFn:j})},F.deepStrictEqual=function j(A,N,L){if(arguments.length<2)throw new h("actual","expected");M===void 0&&C(),a(A,N)||Z({actual:A,expected:N,message:L,operator:"deepStrictEqual",stackStartFn:j})},F.notDeepStrictEqual=function j(A,N,L){if(arguments.length<2)throw new h("actual","expected");M===void 0&&C(),a(A,N)&&Z({actual:A,expected:N,message:L,operator:"notDeepStrictEqual",stackStartFn:j})},F.strictEqual=function j(A,N,L){if(arguments.length<2)throw new h("actual","expected");T(A,N)||Z({actual:A,expected:N,message:L,operator:"strictEqual",stackStartFn:j})},F.notStrictEqual=function j(A,N,L){if(arguments.length<2)throw new h("actual","expected");T(A,N)&&Z({actual:A,expected:N,message:L,operator:"notStrictEqual",stackStartFn:j})};var r=function j(A,N,L){var z=this;(function(Y,D){if(!(Y instanceof D))throw new TypeError("Cannot call a class as a function")})(this,j),N.forEach(function(Y){Y in A&&(L!==void 0&&typeof L[Y]=="string"&&S(A[Y])&&A[Y].test(L[Y])?z[Y]=L[Y]:z[Y]=A[Y])})};function i(j,A,N,L){if(typeof A!="function"){if(S(A))return A.test(j);if(arguments.length===2)throw new l("expected",["Function","RegExp"],A);if(g(j)!=="object"||j===null){var z=new u({actual:j,expected:A,message:N,operator:"deepStrictEqual",stackStartFn:L});throw z.operator=L.name,z}var Y=Object.keys(A);if(A instanceof Error)Y.push("name","message");else if(Y.length===0)throw new p("error",A,"may not be an empty object");return M===void 0&&C(),Y.forEach(function(D){typeof j[D]=="string"&&S(A[D])&&A[D].test(j[D])||function(K,q,U,te,J,ae){if(!(U in K)||!a(K[U],q[U])){if(!te){var xe=new r(K,J),ce=new r(q,J,K),fe=new u({actual:xe,expected:ce,operator:"deepStrictEqual",stackStartFn:ae});throw fe.actual=K,fe.expected=q,fe.operator=ae.name,fe}Z({actual:K,expected:q,message:te,operator:ae.name,stackStartFn:ae})}}(j,A,D,N,Y,L)}),!0}return A.prototype!==void 0&&j instanceof A||!Error.isPrototypeOf(A)&&A.call({},j)===!0}function n(j){if(typeof j!="function")throw new l("fn","Function",j);try{j()}catch(A){return A}return X}function t(j){return _(j)||j!==null&&g(j)==="object"&&typeof j.then=="function"&&typeof j.catch=="function"}function o(j){return Promise.resolve().then(function(){var A;if(typeof j=="function"){if(!t(A=j()))throw new m("instance of Promise","promiseFn",A)}else{if(!t(j))throw new l("promiseFn",["Function","Promise"],j);A=j}return Promise.resolve().then(function(){return A}).then(function(){return X}).catch(function(N){return N})})}function s(j,A,N,L){if(typeof N=="string"){if(arguments.length===4)throw new l("error",["Object","Error","Function","RegExp"],N);if(g(A)==="object"&&A!==null){if(A.message===N)throw new c("error/message",'The error message "'.concat(A.message,'" is identical to the message.'))}else if(A===N)throw new c("error/message",'The error "'.concat(A,'" is identical to the message.'));L=N,N=void 0}else if(N!=null&&g(N)!=="object"&&typeof N!="function")throw new l("error",["Object","Error","Function","RegExp"],N);if(A===X){var z="";N&&N.name&&(z+=" (".concat(N.name,")")),z+=L?": ".concat(L):".";var Y=j.name==="rejects"?"rejection":"exception";Z({actual:void 0,expected:N,operator:j.name,message:"Missing expected ".concat(Y).concat(z),stackStartFn:j})}if(N&&!i(A,N,L,j))throw A}function I(j,A,N,L){if(A!==X){if(typeof N=="string"&&(L=N,N=void 0),!N||i(A,N)){var z=L?": ".concat(L):".",Y=j.name==="doesNotReject"?"rejection":"exception";Z({actual:A,expected:N,operator:j.name,message:"Got unwanted ".concat(Y).concat(z,`
3
- `)+'Actual message: "'.concat(A&&A.message,'"'),stackStartFn:j})}throw A}}function P(){for(var j=arguments.length,A=new Array(j),N=0;N<j;N++)A[N]=arguments[N];ne.apply(void 0,[P,A.length].concat(A))}F.throws=function j(A){for(var N=arguments.length,L=new Array(N>1?N-1:0),z=1;z<N;z++)L[z-1]=arguments[z];s.apply(void 0,[j,n(A)].concat(L))},F.rejects=function j(A){for(var N=arguments.length,L=new Array(N>1?N-1:0),z=1;z<N;z++)L[z-1]=arguments[z];return o(A).then(function(Y){return s.apply(void 0,[j,Y].concat(L))})},F.doesNotThrow=function j(A){for(var N=arguments.length,L=new Array(N>1?N-1:0),z=1;z<N;z++)L[z-1]=arguments[z];I.apply(void 0,[j,n(A)].concat(L))},F.doesNotReject=function j(A){for(var N=arguments.length,L=new Array(N>1?N-1:0),z=1;z<N;z++)L[z-1]=arguments[z];return o(A).then(function(Y){return I.apply(void 0,[j,Y].concat(L))})},F.ifError=function j(A){if(A!=null){var N="ifError got unwanted exception: ";g(A)==="object"&&typeof A.message=="string"?A.message.length===0&&A.constructor?N+=A.constructor.name:N+=A.message:N+=y(A);var L=new u({actual:A,expected:null,operator:"ifError",message:N,stackStartFn:j}),z=A.stack;if(typeof z=="string"){var Y=z.split(`
4
- `);Y.shift();for(var D=L.stack.split(`
5
- `),K=0;K<Y.length;K++){var q=D.indexOf(Y[K]);if(q!==-1){D=D.slice(0,q);break}}L.stack="".concat(D.join(`
6
- `),`
7
- `).concat(Y.join(`
8
- `))}throw L}},F.strict=b(P,F,{equal:F.strictEqual,deepEqual:F.deepStrictEqual,notEqual:F.notStrictEqual,notDeepEqual:F.notDeepStrictEqual}),F.strict.strict=F.strict},5961:(H,O,x)=>{var k=x(4155);function w(Z,ne,e){return ne in Z?Object.defineProperty(Z,ne,{value:e,enumerable:!0,configurable:!0,writable:!0}):Z[ne]=e,Z}function g(Z,ne){for(var e=0;e<ne.length;e++){var r=ne[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(Z,r.key,r)}}function M(Z,ne){return!ne||m(ne)!=="object"&&typeof ne!="function"?a(Z):ne}function a(Z){if(Z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z}function d(Z){var ne=typeof Map=="function"?new Map:void 0;return d=function(e){if(e===null||(r=e,Function.toString.call(r).indexOf("[native code]")===-1))return e;var r;if(typeof e!="function")throw new TypeError("Super expression must either be null or a function");if(ne!==void 0){if(ne.has(e))return ne.get(e);ne.set(e,i)}function i(){return c(e,arguments,p(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),l(i,e)},d(Z)}function c(Z,ne,e){return c=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(r){return!1}}()?Reflect.construct:function(r,i,n){var t=[null];t.push.apply(t,i);var o=new(Function.bind.apply(r,t));return n&&l(o,n.prototype),o},c.apply(null,arguments)}function l(Z,ne){return l=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},l(Z,ne)}function p(Z){return p=Object.setPrototypeOf?Object.getPrototypeOf:function(ne){return ne.__proto__||Object.getPrototypeOf(ne)},p(Z)}function m(Z){return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ne){return typeof ne}:function(ne){return ne&&typeof Symbol=="function"&&ne.constructor===Symbol&&ne!==Symbol.prototype?"symbol":typeof ne},m(Z)}var h=x(9539).inspect,u=x(2136).codes.ERR_INVALID_ARG_TYPE;function y(Z,ne,e){return(e===void 0||e>Z.length)&&(e=Z.length),Z.substring(e-ne.length,e)===ne}var v="",_="",S="",b="",T={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},C=10;function R(Z){var ne=Object.keys(Z),e=Object.create(Object.getPrototypeOf(Z));return ne.forEach(function(r){e[r]=Z[r]}),Object.defineProperty(e,"message",{value:Z.message}),e}function F(Z){return h(Z,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var X=function(Z){function ne(i){var n;if(function(D,K){if(!(D instanceof K))throw new TypeError("Cannot call a class as a function")}(this,ne),m(i)!=="object"||i===null)throw new u("options","Object",i);var t=i.message,o=i.operator,s=i.stackStartFn,I=i.actual,P=i.expected,j=Error.stackTraceLimit;if(Error.stackTraceLimit=0,t!=null)n=M(this,p(ne).call(this,String(t)));else if(k.stderr&&k.stderr.isTTY&&(k.stderr&&k.stderr.getColorDepth&&k.stderr.getColorDepth()!==1?(v="\x1B[34m",_="\x1B[32m",b="\x1B[39m",S="\x1B[31m"):(v="",_="",b="",S="")),m(I)==="object"&&I!==null&&m(P)==="object"&&P!==null&&"stack"in I&&I instanceof Error&&"stack"in P&&P instanceof Error&&(I=R(I),P=R(P)),o==="deepStrictEqual"||o==="strictEqual")n=M(this,p(ne).call(this,function(D,K,q){var U="",te="",J=0,ae="",xe=!1,ce=F(D),fe=ce.split(`
9
- `),Te=F(K).split(`
10
- `),ye=0,Ee="";if(q==="strictEqual"&&m(D)==="object"&&m(K)==="object"&&D!==null&&K!==null&&(q="strictEqualObject"),fe.length===1&&Te.length===1&&fe[0]!==Te[0]){var V=fe[0].length+Te[0].length;if(V<=C){if(!(m(D)==="object"&&D!==null||m(K)==="object"&&K!==null||D===0&&K===0))return"".concat(T[q],`
11
-
12
- `)+"".concat(fe[0]," !== ").concat(Te[0],`
13
- `)}else if(q!=="strictEqualObject"&&V<(k.stderr&&k.stderr.isTTY?k.stderr.columns:80)){for(;fe[0][ye]===Te[0][ye];)ye++;ye>2&&(Ee=`
14
- `.concat(function(Et,Ie){if(Ie=Math.floor(Ie),Et.length==0||Ie==0)return"";var Xe=Et.length*Ie;for(Ie=Math.floor(Math.log(Ie)/Math.log(2));Ie;)Et+=Et,Ie--;return Et+Et.substring(0,Xe-Et.length)}(" ",ye),"^"),ye=0)}}for(var W=fe[fe.length-1],Q=Te[Te.length-1];W===Q&&(ye++<2?ae=`
15
- `.concat(W).concat(ae):U=W,fe.pop(),Te.pop(),fe.length!==0&&Te.length!==0);)W=fe[fe.length-1],Q=Te[Te.length-1];var ge=Math.max(fe.length,Te.length);if(ge===0){var oe=ce.split(`
16
- `);if(oe.length>30)for(oe[26]="".concat(v,"...").concat(b);oe.length>27;)oe.pop();return"".concat(T.notIdentical,`
17
-
18
- `).concat(oe.join(`
19
- `),`
20
- `)}ye>3&&(ae=`
21
- `.concat(v,"...").concat(b).concat(ae),xe=!0),U!==""&&(ae=`
22
- `.concat(U).concat(ae),U="");var ue=0,Ne=T[q]+`
23
- `.concat(_,"+ actual").concat(b," ").concat(S,"- expected").concat(b),we=" ".concat(v,"...").concat(b," Lines skipped");for(ye=0;ye<ge;ye++){var Me=ye-J;if(fe.length<ye+1)Me>1&&ye>2&&(Me>4?(te+=`
24
- `.concat(v,"...").concat(b),xe=!0):Me>3&&(te+=`
25
- `.concat(Te[ye-2]),ue++),te+=`
26
- `.concat(Te[ye-1]),ue++),J=ye,U+=`
27
- `.concat(S,"-").concat(b," ").concat(Te[ye]),ue++;else if(Te.length<ye+1)Me>1&&ye>2&&(Me>4?(te+=`
28
- `.concat(v,"...").concat(b),xe=!0):Me>3&&(te+=`
29
- `.concat(fe[ye-2]),ue++),te+=`
30
- `.concat(fe[ye-1]),ue++),J=ye,te+=`
31
- `.concat(_,"+").concat(b," ").concat(fe[ye]),ue++;else{var pt=Te[ye],ke=fe[ye],je=ke!==pt&&(!y(ke,",")||ke.slice(0,-1)!==pt);je&&y(pt,",")&&pt.slice(0,-1)===ke&&(je=!1,ke+=","),je?(Me>1&&ye>2&&(Me>4?(te+=`
32
- `.concat(v,"...").concat(b),xe=!0):Me>3&&(te+=`
33
- `.concat(fe[ye-2]),ue++),te+=`
34
- `.concat(fe[ye-1]),ue++),J=ye,te+=`
35
- `.concat(_,"+").concat(b," ").concat(ke),U+=`
36
- `.concat(S,"-").concat(b," ").concat(pt),ue+=2):(te+=U,U="",Me!==1&&ye!==0||(te+=`
37
- `.concat(ke),ue++))}if(ue>20&&ye<ge-2)return"".concat(Ne).concat(we,`
38
- `).concat(te,`
39
- `).concat(v,"...").concat(b).concat(U,`
40
- `)+"".concat(v,"...").concat(b)}return"".concat(Ne).concat(xe?we:"",`
41
- `).concat(te).concat(U).concat(ae).concat(Ee)}(I,P,o)));else if(o==="notDeepStrictEqual"||o==="notStrictEqual"){var A=T[o],N=F(I).split(`
42
- `);if(o==="notStrictEqual"&&m(I)==="object"&&I!==null&&(A=T.notStrictEqualObject),N.length>30)for(N[26]="".concat(v,"...").concat(b);N.length>27;)N.pop();n=N.length===1?M(this,p(ne).call(this,"".concat(A," ").concat(N[0]))):M(this,p(ne).call(this,"".concat(A,`
43
-
44
- `).concat(N.join(`
45
- `),`
46
- `)))}else{var L=F(I),z="",Y=T[o];o==="notDeepEqual"||o==="notEqual"?(L="".concat(T[o],`
47
-
48
- `).concat(L)).length>1024&&(L="".concat(L.slice(0,1021),"...")):(z="".concat(F(P)),L.length>512&&(L="".concat(L.slice(0,509),"...")),z.length>512&&(z="".concat(z.slice(0,509),"...")),o==="deepEqual"||o==="equal"?L="".concat(Y,`
49
-
50
- `).concat(L,`
51
-
52
- should equal
53
-
54
- `):z=" ".concat(o," ").concat(z)),n=M(this,p(ne).call(this,"".concat(L).concat(z)))}return Error.stackTraceLimit=j,n.generatedMessage=!t,Object.defineProperty(a(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=I,n.expected=P,n.operator=o,Error.captureStackTrace&&Error.captureStackTrace(a(n),s),n.stack,n.name="AssertionError",M(n)}var e,r;return function(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),n&&l(i,n)}(ne,Z),e=ne,r=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:h.custom,value:function(i,n){return h(this,function(t){for(var o=1;o<arguments.length;o++){var s=arguments[o]!=null?arguments[o]:{},I=Object.keys(s);typeof Object.getOwnPropertySymbols=="function"&&(I=I.concat(Object.getOwnPropertySymbols(s).filter(function(P){return Object.getOwnPropertyDescriptor(s,P).enumerable}))),I.forEach(function(P){w(t,P,s[P])})}return t}({},n,{customInspect:!1,depth:0}))}}],r&&g(e.prototype,r),ne}(d(Error));H.exports=X},2136:(H,O,x)=>{function k(p){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},k(p)}function w(p){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},w(p)}function g(p,m){return g=Object.setPrototypeOf||function(h,u){return h.__proto__=u,h},g(p,m)}var M,a,d={};function c(p,m,h){h||(h=Error);var u=function(y){function v(_,S,b){var T;return function(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}(this,v),T=function(C,R){return!R||k(R)!=="object"&&typeof R!="function"?function(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}(C):R}(this,w(v).call(this,function(C,R,F){return typeof m=="string"?m:m(C,R,F)}(_,S,b))),T.code=p,T}return function(_,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(S&&S.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),S&&g(_,S)}(v,y),v}(h);d[p]=u}function l(p,m){if(Array.isArray(p)){var h=p.length;return p=p.map(function(u){return String(u)}),h>2?"one of ".concat(m," ").concat(p.slice(0,h-1).join(", "),", or ")+p[h-1]:h===2?"one of ".concat(m," ").concat(p[0]," or ").concat(p[1]):"of ".concat(m," ").concat(p[0])}return"of ".concat(m," ").concat(String(p))}c("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),c("ERR_INVALID_ARG_TYPE",function(p,m,h){var u,y,v,_,S;if(M===void 0&&(M=x(9282)),M(typeof p=="string","'name' must be a string"),typeof m=="string"&&(y="not ",m.substr(0,y.length)===y)?(u="must not be",m=m.replace(/^not /,"")):u="must be",function(T,C,R){return(R===void 0||R>T.length)&&(R=T.length),T.substring(R-C.length,R)===C}(p," argument"))v="The ".concat(p," ").concat(u," ").concat(l(m,"type"));else{var b=(typeof S!="number"&&(S=0),S+1>(_=p).length||_.indexOf(".",S)===-1?"argument":"property");v='The "'.concat(p,'" ').concat(b," ").concat(u," ").concat(l(m,"type"))}return v+". Received type ".concat(k(h))},TypeError),c("ERR_INVALID_ARG_VALUE",function(p,m){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=x(9539));var u=a.inspect(m);return u.length>128&&(u="".concat(u.slice(0,128),"...")),"The argument '".concat(p,"' ").concat(h,". Received ").concat(u)},TypeError),c("ERR_INVALID_RETURN_VALUE",function(p,m,h){var u;return u=h&&h.constructor&&h.constructor.name?"instance of ".concat(h.constructor.name):"type ".concat(k(h)),"Expected ".concat(p,' to be returned from the "').concat(m,'"')+" function but got ".concat(u,".")},TypeError),c("ERR_MISSING_ARGS",function(){for(var p=arguments.length,m=new Array(p),h=0;h<p;h++)m[h]=arguments[h];M===void 0&&(M=x(9282)),M(m.length>0,"At least one arg needs to be specified");var u="The ",y=m.length;switch(m=m.map(function(v){return'"'.concat(v,'"')}),y){case 1:u+="".concat(m[0]," argument");break;case 2:u+="".concat(m[0]," and ").concat(m[1]," arguments");break;default:u+=m.slice(0,y-1).join(", "),u+=", and ".concat(m[y-1]," arguments")}return"".concat(u," must be specified")},TypeError),H.exports.codes=d},9158:(H,O,x)=>{function k(te,J){return function(ae){if(Array.isArray(ae))return ae}(te)||function(ae,xe){var ce=[],fe=!0,Te=!1,ye=void 0;try{for(var Ee,V=ae[Symbol.iterator]();!(fe=(Ee=V.next()).done)&&(ce.push(Ee.value),!xe||ce.length!==xe);fe=!0);}catch(W){Te=!0,ye=W}finally{try{fe||V.return==null||V.return()}finally{if(Te)throw ye}}return ce}(te,J)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function w(te){return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(J){return typeof J}:function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},w(te)}var g=/a/g.flags!==void 0,M=function(te){var J=[];return te.forEach(function(ae){return J.push(ae)}),J},a=function(te){var J=[];return te.forEach(function(ae,xe){return J.push([xe,ae])}),J},d=Object.is?Object.is:x(609),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:x(360);function p(te){return te.call.bind(te)}var m=p(Object.prototype.hasOwnProperty),h=p(Object.prototype.propertyIsEnumerable),u=p(Object.prototype.toString),y=x(9539).types,v=y.isAnyArrayBuffer,_=y.isArrayBufferView,S=y.isDate,b=y.isMap,T=y.isRegExp,C=y.isSet,R=y.isNativeError,F=y.isBoxedPrimitive,X=y.isNumberObject,Z=y.isStringObject,ne=y.isBooleanObject,e=y.isBigIntObject,r=y.isSymbolObject,i=y.isFloat32Array,n=y.isFloat64Array;function t(te){if(te.length===0||te.length>10)return!0;for(var J=0;J<te.length;J++){var ae=te.charCodeAt(J);if(ae<48||ae>57)return!0}return te.length===10&&te>=Math.pow(2,32)}function o(te){return Object.keys(te).filter(t).concat(c(te).filter(Object.prototype.propertyIsEnumerable.bind(te)))}function s(te,J){if(te===J)return 0;for(var ae=te.length,xe=J.length,ce=0,fe=Math.min(ae,xe);ce<fe;++ce)if(te[ce]!==J[ce]){ae=te[ce],xe=J[ce];break}return ae<xe?-1:xe<ae?1:0}var I=0,P=1,j=2,A=3;function N(te,J,ae,xe){if(te===J)return te!==0||!ae||d(te,J);if(ae){if(w(te)!=="object")return typeof te=="number"&&l(te)&&l(J);if(w(J)!=="object"||te===null||J===null||Object.getPrototypeOf(te)!==Object.getPrototypeOf(J))return!1}else{if(te===null||w(te)!=="object")return(J===null||w(J)!=="object")&&te==J;if(J===null||w(J)!=="object")return!1}var ce,fe,Te,ye,Ee=u(te);if(Ee!==u(J))return!1;if(Array.isArray(te)){if(te.length!==J.length)return!1;var V=o(te),W=o(J);return V.length===W.length&&z(te,J,ae,xe,P,V)}if(Ee==="[object Object]"&&(!b(te)&&b(J)||!C(te)&&C(J)))return!1;if(S(te)){if(!S(J)||Date.prototype.getTime.call(te)!==Date.prototype.getTime.call(J))return!1}else if(T(te)){if(!T(J)||(Te=te,ye=J,!(g?Te.source===ye.source&&Te.flags===ye.flags:RegExp.prototype.toString.call(Te)===RegExp.prototype.toString.call(ye))))return!1}else if(R(te)||te instanceof Error){if(te.message!==J.message||te.name!==J.name)return!1}else{if(_(te)){if(ae||!i(te)&&!n(te)){if(!function(oe,ue){return oe.byteLength===ue.byteLength&&s(new Uint8Array(oe.buffer,oe.byteOffset,oe.byteLength),new Uint8Array(ue.buffer,ue.byteOffset,ue.byteLength))===0}(te,J))return!1}else if(!function(oe,ue){if(oe.byteLength!==ue.byteLength)return!1;for(var Ne=0;Ne<oe.byteLength;Ne++)if(oe[Ne]!==ue[Ne])return!1;return!0}(te,J))return!1;var Q=o(te),ge=o(J);return Q.length===ge.length&&z(te,J,ae,xe,I,Q)}if(C(te))return!(!C(J)||te.size!==J.size)&&z(te,J,ae,xe,j);if(b(te))return!(!b(J)||te.size!==J.size)&&z(te,J,ae,xe,A);if(v(te)){if(fe=J,(ce=te).byteLength!==fe.byteLength||s(new Uint8Array(ce),new Uint8Array(fe))!==0)return!1}else if(F(te)&&!function(oe,ue){return X(oe)?X(ue)&&d(Number.prototype.valueOf.call(oe),Number.prototype.valueOf.call(ue)):Z(oe)?Z(ue)&&String.prototype.valueOf.call(oe)===String.prototype.valueOf.call(ue):ne(oe)?ne(ue)&&Boolean.prototype.valueOf.call(oe)===Boolean.prototype.valueOf.call(ue):e(oe)?e(ue)&&BigInt.prototype.valueOf.call(oe)===BigInt.prototype.valueOf.call(ue):r(ue)&&Symbol.prototype.valueOf.call(oe)===Symbol.prototype.valueOf.call(ue)}(te,J))return!1}return z(te,J,ae,xe,I)}function L(te,J){return J.filter(function(ae){return h(te,ae)})}function z(te,J,ae,xe,ce,fe){if(arguments.length===5){fe=Object.keys(te);var Te=Object.keys(J);if(fe.length!==Te.length)return!1}for(var ye=0;ye<fe.length;ye++)if(!m(J,fe[ye]))return!1;if(ae&&arguments.length===5){var Ee=c(te);if(Ee.length!==0){var V=0;for(ye=0;ye<Ee.length;ye++){var W=Ee[ye];if(h(te,W)){if(!h(J,W))return!1;fe.push(W),V++}else if(h(J,W))return!1}var Q=c(J);if(Ee.length!==Q.length&&L(J,Q).length!==V)return!1}else{var ge=c(J);if(ge.length!==0&&L(J,ge).length!==0)return!1}}if(fe.length===0&&(ce===I||ce===P&&te.length===0||te.size===0))return!0;if(xe===void 0)xe={val1:new Map,val2:new Map,position:0};else{var oe=xe.val1.get(te);if(oe!==void 0){var ue=xe.val2.get(J);if(ue!==void 0)return oe===ue}xe.position++}xe.val1.set(te,xe.position),xe.val2.set(J,xe.position);var Ne=function(we,Me,pt,ke,je,Et){var Ie=0;if(Et===j){if(!function(Ke,Nt,Pe,He){for(var vt=null,Ce=M(Ke),Ze=0;Ze<Ce.length;Ze++){var St=Ce[Ze];if(w(St)==="object"&&St!==null)vt===null&&(vt=new Set),vt.add(St);else if(!Nt.has(St)){if(Pe||!K(Ke,Nt,St))return!1;vt===null&&(vt=new Set),vt.add(St)}}if(vt!==null){for(var Re=M(Nt),Ge=0;Ge<Re.length;Ge++){var It=Re[Ge];if(w(It)==="object"&&It!==null){if(!Y(vt,It,Pe,He))return!1}else if(!Pe&&!Ke.has(It)&&!Y(vt,It,Pe,He))return!1}return vt.size===0}return!0}(we,Me,pt,je))return!1}else if(Et===A){if(!function(Ke,Nt,Pe,He){for(var vt=null,Ce=a(Ke),Ze=0;Ze<Ce.length;Ze++){var St=k(Ce[Ze],2),Re=St[0],Ge=St[1];if(w(Re)==="object"&&Re!==null)vt===null&&(vt=new Set),vt.add(Re);else{var It=Nt.get(Re);if(It===void 0&&!Nt.has(Re)||!N(Ge,It,Pe,He)){if(Pe||!q(Ke,Nt,Re,Ge,He))return!1;vt===null&&(vt=new Set),vt.add(Re)}}}if(vt!==null){for(var qe=a(Nt),Ye=0;Ye<qe.length;Ye++){var Dt=k(qe[Ye],2),Le=(Re=Dt[0],Dt[1]);if(w(Re)==="object"&&Re!==null){if(!U(vt,Ke,Re,Le,Pe,He))return!1}else if(!(Pe||Ke.has(Re)&&N(Ke.get(Re),Le,!1,He)||U(vt,Ke,Re,Le,!1,He)))return!1}return vt.size===0}return!0}(we,Me,pt,je))return!1}else if(Et===P)for(;Ie<we.length;Ie++){if(!m(we,Ie)){if(m(Me,Ie))return!1;for(var Xe=Object.keys(we);Ie<Xe.length;Ie++){var Ct=Xe[Ie];if(!m(Me,Ct)||!N(we[Ct],Me[Ct],pt,je))return!1}return Xe.length===Object.keys(Me).length}if(!m(Me,Ie)||!N(we[Ie],Me[Ie],pt,je))return!1}for(Ie=0;Ie<ke.length;Ie++){var De=ke[Ie];if(!N(we[De],Me[De],pt,je))return!1}return!0}(te,J,ae,fe,xe,ce);return xe.val1.delete(te),xe.val2.delete(J),Ne}function Y(te,J,ae,xe){for(var ce=M(te),fe=0;fe<ce.length;fe++){var Te=ce[fe];if(N(J,Te,ae,xe))return te.delete(Te),!0}return!1}function D(te){switch(w(te)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":te=+te;case"number":if(l(te))return!1}return!0}function K(te,J,ae){var xe=D(ae);return xe!=null?xe:J.has(xe)&&!te.has(xe)}function q(te,J,ae,xe,ce){var fe=D(ae);if(fe!=null)return fe;var Te=J.get(fe);return!(Te===void 0&&!J.has(fe)||!N(xe,Te,!1,ce))&&!te.has(fe)&&N(xe,Te,!1,ce)}function U(te,J,ae,xe,ce,fe){for(var Te=M(te),ye=0;ye<Te.length;ye++){var Ee=Te[ye];if(N(ae,Ee,ce,fe)&&N(xe,J.get(Ee),ce,fe))return te.delete(Ee),!0}return!1}H.exports={isDeepEqual:function(te,J){return N(te,J,!1)},isDeepStrictEqual:function(te,J){return N(te,J,!0)}}},9742:(H,O)=>{O.byteLength=function(l){var p=d(l),m=p[0],h=p[1];return 3*(m+h)/4-h},O.toByteArray=function(l){var p,m,h=d(l),u=h[0],y=h[1],v=new w(function(b,T,C){return 3*(T+C)/4-C}(0,u,y)),_=0,S=y>0?u-4:u;for(m=0;m<S;m+=4)p=k[l.charCodeAt(m)]<<18|k[l.charCodeAt(m+1)]<<12|k[l.charCodeAt(m+2)]<<6|k[l.charCodeAt(m+3)],v[_++]=p>>16&255,v[_++]=p>>8&255,v[_++]=255&p;return y===2&&(p=k[l.charCodeAt(m)]<<2|k[l.charCodeAt(m+1)]>>4,v[_++]=255&p),y===1&&(p=k[l.charCodeAt(m)]<<10|k[l.charCodeAt(m+1)]<<4|k[l.charCodeAt(m+2)]>>2,v[_++]=p>>8&255,v[_++]=255&p),v},O.fromByteArray=function(l){for(var p,m=l.length,h=m%3,u=[],y=16383,v=0,_=m-h;v<_;v+=y)u.push(c(l,v,v+y>_?_:v+y));return h===1?(p=l[m-1],u.push(x[p>>2]+x[p<<4&63]+"==")):h===2&&(p=(l[m-2]<<8)+l[m-1],u.push(x[p>>10]+x[p>>4&63]+x[p<<2&63]+"=")),u.join("")};for(var x=[],k=[],w=typeof Uint8Array!="undefined"?Uint8Array:Array,g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=0,a=g.length;M<a;++M)x[M]=g[M],k[g.charCodeAt(M)]=M;function d(l){var p=l.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=l.indexOf("=");return m===-1&&(m=p),[m,m===p?0:4-m%4]}function c(l,p,m){for(var h,u,y=[],v=p;v<m;v+=3)h=(l[v]<<16&16711680)+(l[v+1]<<8&65280)+(255&l[v+2]),y.push(x[(u=h)>>18&63]+x[u>>12&63]+x[u>>6&63]+x[63&u]);return y.join("")}k["-".charCodeAt(0)]=62,k["_".charCodeAt(0)]=63},9e3:(H,O,x)=>{var k=x(8764).Buffer;const{Transform:w}=x(8473);H.exports=class extends w{constructor(g,M={}){super(M),typeof g=="object"&&(g=(M=g).size),this.size=g||512;const{nopad:a,zeroPadding:d=!0}=M;this._zeroPadding=!a&&!!d,this._buffered=[],this._bufferedBytes=0}_transform(g,M,a){for(this._bufferedBytes+=g.length,this._buffered.push(g);this._bufferedBytes>=this.size;){this._bufferedBytes-=this.size;const d=[];let c=0;for(;c<this.size;){const l=this._buffered.shift();if(c+l.length<=this.size)d.push(l),c+=l.length;else{const p=this.size-c;d.push(l.slice(0,p)),c+=p,this._buffered.unshift(l.slice(p))}}this.push(k.concat(d,this.size))}a()}_flush(){if(this._bufferedBytes&&this._zeroPadding){const g=k.alloc(this.size-this._bufferedBytes);this._buffered.push(g),this.push(k.concat(this._buffered)),this._buffered=null}else this._bufferedBytes&&(this.push(k.concat(this._buffered)),this._buffered=null);this.push(null)}}},3550:function(H,O,x){(function(k,w){function g(i,n){if(!i)throw new Error(n||"Assertion failed")}function M(i,n){i.super_=n;var t=function(){};t.prototype=n.prototype,i.prototype=new t,i.prototype.constructor=i}function a(i,n,t){if(a.isBN(i))return i;this.negative=0,this.words=null,this.length=0,this.red=null,i!==null&&(n!=="le"&&n!=="be"||(t=n,n=10),this._init(i||0,n||10,t||"be"))}var d;typeof k=="object"?k.exports=a:w.BN=a,a.BN=a,a.wordSize=26;try{d=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:x(6601).Buffer}catch(i){}function c(i,n){var t=i.charCodeAt(n);return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:void g(!1,"Invalid character in "+i)}function l(i,n,t){var o=c(i,t);return t-1>=n&&(o|=c(i,t-1)<<4),o}function p(i,n,t,o){for(var s=0,I=0,P=Math.min(i.length,t),j=n;j<P;j++){var A=i.charCodeAt(j)-48;s*=o,I=A>=49?A-49+10:A>=17?A-17+10:A,g(A>=0&&I<o,"Invalid character"),s+=I}return s}function m(i,n){i.words=n.words,i.length=n.length,i.negative=n.negative,i.red=n.red}if(a.isBN=function(i){return i instanceof a||i!==null&&typeof i=="object"&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,n){return i.cmp(n)>0?i:n},a.min=function(i,n){return i.cmp(n)<0?i:n},a.prototype._init=function(i,n,t){if(typeof i=="number")return this._initNumber(i,n,t);if(typeof i=="object")return this._initArray(i,n,t);n==="hex"&&(n=16),g(n===(0|n)&&n>=2&&n<=36);var o=0;(i=i.toString().replace(/\s+/g,""))[0]==="-"&&(o++,this.negative=1),o<i.length&&(n===16?this._parseHex(i,o,t):(this._parseBase(i,n,o),t==="le"&&this._initArray(this.toArray(),n,t)))},a.prototype._initNumber=function(i,n,t){i<0&&(this.negative=1,i=-i),i<67108864?(this.words=[67108863&i],this.length=1):i<4503599627370496?(this.words=[67108863&i,i/67108864&67108863],this.length=2):(g(i<9007199254740992),this.words=[67108863&i,i/67108864&67108863,1],this.length=3),t==="le"&&this._initArray(this.toArray(),n,t)},a.prototype._initArray=function(i,n,t){if(g(typeof i.length=="number"),i.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(i.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var s,I,P=0;if(t==="be")for(o=i.length-1,s=0;o>=0;o-=3)I=i[o]|i[o-1]<<8|i[o-2]<<16,this.words[s]|=I<<P&67108863,this.words[s+1]=I>>>26-P&67108863,(P+=24)>=26&&(P-=26,s++);else if(t==="le")for(o=0,s=0;o<i.length;o+=3)I=i[o]|i[o+1]<<8|i[o+2]<<16,this.words[s]|=I<<P&67108863,this.words[s+1]=I>>>26-P&67108863,(P+=24)>=26&&(P-=26,s++);return this._strip()},a.prototype._parseHex=function(i,n,t){this.length=Math.ceil((i.length-n)/6),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var s,I=0,P=0;if(t==="be")for(o=i.length-1;o>=n;o-=2)s=l(i,n,o)<<I,this.words[P]|=67108863&s,I>=18?(I-=18,P+=1,this.words[P]|=s>>>26):I+=8;else for(o=(i.length-n)%2==0?n+1:n;o<i.length;o+=2)s=l(i,n,o)<<I,this.words[P]|=67108863&s,I>=18?(I-=18,P+=1,this.words[P]|=s>>>26):I+=8;this._strip()},a.prototype._parseBase=function(i,n,t){this.words=[0],this.length=1;for(var o=0,s=1;s<=67108863;s*=n)o++;o--,s=s/n|0;for(var I=i.length-t,P=I%o,j=Math.min(I,I-P)+t,A=0,N=t;N<j;N+=o)A=p(i,N,N+o,n),this.imuln(s),this.words[0]+A<67108864?this.words[0]+=A:this._iaddn(A);if(P!==0){var L=1;for(A=p(i,N,i.length,n),N=0;N<P;N++)L*=n;this.imuln(L),this.words[0]+A<67108864?this.words[0]+=A:this._iaddn(A)}this._strip()},a.prototype.copy=function(i){i.words=new Array(this.length);for(var n=0;n<this.length;n++)i.words[n]=this.words[n];i.length=this.length,i.negative=this.negative,i.red=this.red},a.prototype._move=function(i){m(i,this)},a.prototype.clone=function(){var i=new a(null);return this.copy(i),i},a.prototype._expand=function(i){for(;this.length<i;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol!="undefined"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(i){a.prototype.inspect=h}else a.prototype.inspect=h;function h(){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"],y=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function _(i,n,t){t.negative=n.negative^i.negative;var o=i.length+n.length|0;t.length=o,o=o-1|0;var s=0|i.words[0],I=0|n.words[0],P=s*I,j=67108863&P,A=P/67108864|0;t.words[0]=j;for(var N=1;N<o;N++){for(var L=A>>>26,z=67108863&A,Y=Math.min(N,n.length-1),D=Math.max(0,N-i.length+1);D<=Y;D++){var K=N-D|0;L+=(P=(s=0|i.words[K])*(I=0|n.words[D])+z)/67108864|0,z=67108863&P}t.words[N]=0|z,A=0|L}return A!==0?t.words[N]=0|A:t.length--,t._strip()}a.prototype.toString=function(i,n){var t;if(n=0|n||1,(i=i||10)===16||i==="hex"){t="";for(var o=0,s=0,I=0;I<this.length;I++){var P=this.words[I],j=(16777215&(P<<o|s)).toString(16);s=P>>>24-o&16777215,(o+=2)>=26&&(o-=26,I--),t=s!==0||I!==this.length-1?u[6-j.length]+j+t:j+t}for(s!==0&&(t=s.toString(16)+t);t.length%n!=0;)t="0"+t;return this.negative!==0&&(t="-"+t),t}if(i===(0|i)&&i>=2&&i<=36){var A=y[i],N=v[i];t="";var L=this.clone();for(L.negative=0;!L.isZero();){var z=L.modrn(N).toString(i);t=(L=L.idivn(N)).isZero()?z+t:u[A-z.length]+z+t}for(this.isZero()&&(t="0"+t);t.length%n!=0;)t="0"+t;return this.negative!==0&&(t="-"+t),t}g(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return this.length===2?i+=67108864*this.words[1]:this.length===3&&this.words[2]===1?i+=4503599627370496+67108864*this.words[1]:this.length>2&&g(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-i:i},a.prototype.toJSON=function(){return this.toString(16,2)},d&&(a.prototype.toBuffer=function(i,n){return this.toArrayLike(d,i,n)}),a.prototype.toArray=function(i,n){return this.toArrayLike(Array,i,n)},a.prototype.toArrayLike=function(i,n,t){this._strip();var o=this.byteLength(),s=t||Math.max(1,o);g(o<=s,"byte array longer than desired length"),g(s>0,"Requested array length <= 0");var I=function(P,j){return P.allocUnsafe?P.allocUnsafe(j):new P(j)}(i,s);return this["_toArrayLike"+(n==="le"?"LE":"BE")](I,o),I},a.prototype._toArrayLikeLE=function(i,n){for(var t=0,o=0,s=0,I=0;s<this.length;s++){var P=this.words[s]<<I|o;i[t++]=255&P,t<i.length&&(i[t++]=P>>8&255),t<i.length&&(i[t++]=P>>16&255),I===6?(t<i.length&&(i[t++]=P>>24&255),o=0,I=0):(o=P>>>24,I+=2)}if(t<i.length)for(i[t++]=o;t<i.length;)i[t++]=0},a.prototype._toArrayLikeBE=function(i,n){for(var t=i.length-1,o=0,s=0,I=0;s<this.length;s++){var P=this.words[s]<<I|o;i[t--]=255&P,t>=0&&(i[t--]=P>>8&255),t>=0&&(i[t--]=P>>16&255),I===6?(t>=0&&(i[t--]=P>>24&255),o=0,I=0):(o=P>>>24,I+=2)}if(t>=0)for(i[t--]=o;t>=0;)i[t--]=0},Math.clz32?a.prototype._countBits=function(i){return 32-Math.clz32(i)}:a.prototype._countBits=function(i){var n=i,t=0;return n>=4096&&(t+=13,n>>>=13),n>=64&&(t+=7,n>>>=7),n>=8&&(t+=4,n>>>=4),n>=2&&(t+=2,n>>>=2),t+n},a.prototype._zeroBits=function(i){if(i===0)return 26;var n=i,t=0;return!(8191&n)&&(t+=13,n>>>=13),!(127&n)&&(t+=7,n>>>=7),!(15&n)&&(t+=4,n>>>=4),!(3&n)&&(t+=2,n>>>=2),!(1&n)&&t++,t},a.prototype.bitLength=function(){var i=this.words[this.length-1],n=this._countBits(i);return 26*(this.length-1)+n},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,n=0;n<this.length;n++){var t=this._zeroBits(this.words[n]);if(i+=t,t!==26)break}return i},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(i){return this.negative!==0?this.abs().inotn(i).iaddn(1):this.clone()},a.prototype.fromTwos=function(i){return this.testn(i-1)?this.notn(i).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(i){for(;this.length<i.length;)this.words[this.length++]=0;for(var n=0;n<i.length;n++)this.words[n]=this.words[n]|i.words[n];return this._strip()},a.prototype.ior=function(i){return g((this.negative|i.negative)==0),this.iuor(i)},a.prototype.or=function(i){return this.length>i.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var n;n=this.length>i.length?i:this;for(var t=0;t<n.length;t++)this.words[t]=this.words[t]&i.words[t];return this.length=n.length,this._strip()},a.prototype.iand=function(i){return g((this.negative|i.negative)==0),this.iuand(i)},a.prototype.and=function(i){return this.length>i.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var n,t;this.length>i.length?(n=this,t=i):(n=i,t=this);for(var o=0;o<t.length;o++)this.words[o]=n.words[o]^t.words[o];if(this!==n)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=n.length,this._strip()},a.prototype.ixor=function(i){return g((this.negative|i.negative)==0),this.iuxor(i)},a.prototype.xor=function(i){return this.length>i.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){g(typeof i=="number"&&i>=0);var n=0|Math.ceil(i/26),t=i%26;this._expand(n),t>0&&n--;for(var o=0;o<n;o++)this.words[o]=67108863&~this.words[o];return t>0&&(this.words[o]=~this.words[o]&67108863>>26-t),this._strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,n){g(typeof i=="number"&&i>=0);var t=i/26|0,o=i%26;return this._expand(t+1),this.words[t]=n?this.words[t]|1<<o:this.words[t]&~(1<<o),this._strip()},a.prototype.iadd=function(i){var n,t,o;if(this.negative!==0&&i.negative===0)return this.negative=0,n=this.isub(i),this.negative^=1,this._normSign();if(this.negative===0&&i.negative!==0)return i.negative=0,n=this.isub(i),i.negative=1,n._normSign();this.length>i.length?(t=this,o=i):(t=i,o=this);for(var s=0,I=0;I<o.length;I++)n=(0|t.words[I])+(0|o.words[I])+s,this.words[I]=67108863&n,s=n>>>26;for(;s!==0&&I<t.length;I++)n=(0|t.words[I])+s,this.words[I]=67108863&n,s=n>>>26;if(this.length=t.length,s!==0)this.words[this.length]=s,this.length++;else if(t!==this)for(;I<t.length;I++)this.words[I]=t.words[I];return this},a.prototype.add=function(i){var n;return i.negative!==0&&this.negative===0?(i.negative=0,n=this.sub(i),i.negative^=1,n):i.negative===0&&this.negative!==0?(this.negative=0,n=i.sub(this),this.negative=1,n):this.length>i.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(i.negative!==0){i.negative=0;var n=this.iadd(i);return i.negative=1,n._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var t,o,s=this.cmp(i);if(s===0)return this.negative=0,this.length=1,this.words[0]=0,this;s>0?(t=this,o=i):(t=i,o=this);for(var I=0,P=0;P<o.length;P++)I=(n=(0|t.words[P])-(0|o.words[P])+I)>>26,this.words[P]=67108863&n;for(;I!==0&&P<t.length;P++)I=(n=(0|t.words[P])+I)>>26,this.words[P]=67108863&n;if(I===0&&P<t.length&&t!==this)for(;P<t.length;P++)this.words[P]=t.words[P];return this.length=Math.max(this.length,P),t!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(i){return this.clone().isub(i)};var S=function(i,n,t){var o,s,I,P=i.words,j=n.words,A=t.words,N=0,L=0|P[0],z=8191&L,Y=L>>>13,D=0|P[1],K=8191&D,q=D>>>13,U=0|P[2],te=8191&U,J=U>>>13,ae=0|P[3],xe=8191&ae,ce=ae>>>13,fe=0|P[4],Te=8191&fe,ye=fe>>>13,Ee=0|P[5],V=8191&Ee,W=Ee>>>13,Q=0|P[6],ge=8191&Q,oe=Q>>>13,ue=0|P[7],Ne=8191&ue,we=ue>>>13,Me=0|P[8],pt=8191&Me,ke=Me>>>13,je=0|P[9],Et=8191&je,Ie=je>>>13,Xe=0|j[0],Ct=8191&Xe,De=Xe>>>13,Ke=0|j[1],Nt=8191&Ke,Pe=Ke>>>13,He=0|j[2],vt=8191&He,Ce=He>>>13,Ze=0|j[3],St=8191&Ze,Re=Ze>>>13,Ge=0|j[4],It=8191&Ge,qe=Ge>>>13,Ye=0|j[5],Dt=8191&Ye,Le=Ye>>>13,et=0|j[6],$t=8191&et,Fe=et>>>13,Qe=0|j[7],Ut=8191&Qe,$e=Qe>>>13,nt=0|j[8],zt=8191&nt,Ue=nt>>>13,tt=0|j[9],Tt=8191&tt,Rt=tt>>>13;t.negative=i.negative^n.negative,t.length=19;var Zt=(N+(o=Math.imul(z,Ct))|0)+((8191&(s=(s=Math.imul(z,De))+Math.imul(Y,Ct)|0))<<13)|0;N=((I=Math.imul(Y,De))+(s>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,o=Math.imul(K,Ct),s=(s=Math.imul(K,De))+Math.imul(q,Ct)|0,I=Math.imul(q,De);var on=(N+(o=o+Math.imul(z,Nt)|0)|0)+((8191&(s=(s=s+Math.imul(z,Pe)|0)+Math.imul(Y,Nt)|0))<<13)|0;N=((I=I+Math.imul(Y,Pe)|0)+(s>>>13)|0)+(on>>>26)|0,on&=67108863,o=Math.imul(te,Ct),s=(s=Math.imul(te,De))+Math.imul(J,Ct)|0,I=Math.imul(J,De),o=o+Math.imul(K,Nt)|0,s=(s=s+Math.imul(K,Pe)|0)+Math.imul(q,Nt)|0,I=I+Math.imul(q,Pe)|0;var tn=(N+(o=o+Math.imul(z,vt)|0)|0)+((8191&(s=(s=s+Math.imul(z,Ce)|0)+Math.imul(Y,vt)|0))<<13)|0;N=((I=I+Math.imul(Y,Ce)|0)+(s>>>13)|0)+(tn>>>26)|0,tn&=67108863,o=Math.imul(xe,Ct),s=(s=Math.imul(xe,De))+Math.imul(ce,Ct)|0,I=Math.imul(ce,De),o=o+Math.imul(te,Nt)|0,s=(s=s+Math.imul(te,Pe)|0)+Math.imul(J,Nt)|0,I=I+Math.imul(J,Pe)|0,o=o+Math.imul(K,vt)|0,s=(s=s+Math.imul(K,Ce)|0)+Math.imul(q,vt)|0,I=I+Math.imul(q,Ce)|0;var an=(N+(o=o+Math.imul(z,St)|0)|0)+((8191&(s=(s=s+Math.imul(z,Re)|0)+Math.imul(Y,St)|0))<<13)|0;N=((I=I+Math.imul(Y,Re)|0)+(s>>>13)|0)+(an>>>26)|0,an&=67108863,o=Math.imul(Te,Ct),s=(s=Math.imul(Te,De))+Math.imul(ye,Ct)|0,I=Math.imul(ye,De),o=o+Math.imul(xe,Nt)|0,s=(s=s+Math.imul(xe,Pe)|0)+Math.imul(ce,Nt)|0,I=I+Math.imul(ce,Pe)|0,o=o+Math.imul(te,vt)|0,s=(s=s+Math.imul(te,Ce)|0)+Math.imul(J,vt)|0,I=I+Math.imul(J,Ce)|0,o=o+Math.imul(K,St)|0,s=(s=s+Math.imul(K,Re)|0)+Math.imul(q,St)|0,I=I+Math.imul(q,Re)|0;var sn=(N+(o=o+Math.imul(z,It)|0)|0)+((8191&(s=(s=s+Math.imul(z,qe)|0)+Math.imul(Y,It)|0))<<13)|0;N=((I=I+Math.imul(Y,qe)|0)+(s>>>13)|0)+(sn>>>26)|0,sn&=67108863,o=Math.imul(V,Ct),s=(s=Math.imul(V,De))+Math.imul(W,Ct)|0,I=Math.imul(W,De),o=o+Math.imul(Te,Nt)|0,s=(s=s+Math.imul(Te,Pe)|0)+Math.imul(ye,Nt)|0,I=I+Math.imul(ye,Pe)|0,o=o+Math.imul(xe,vt)|0,s=(s=s+Math.imul(xe,Ce)|0)+Math.imul(ce,vt)|0,I=I+Math.imul(ce,Ce)|0,o=o+Math.imul(te,St)|0,s=(s=s+Math.imul(te,Re)|0)+Math.imul(J,St)|0,I=I+Math.imul(J,Re)|0,o=o+Math.imul(K,It)|0,s=(s=s+Math.imul(K,qe)|0)+Math.imul(q,It)|0,I=I+Math.imul(q,qe)|0;var un=(N+(o=o+Math.imul(z,Dt)|0)|0)+((8191&(s=(s=s+Math.imul(z,Le)|0)+Math.imul(Y,Dt)|0))<<13)|0;N=((I=I+Math.imul(Y,Le)|0)+(s>>>13)|0)+(un>>>26)|0,un&=67108863,o=Math.imul(ge,Ct),s=(s=Math.imul(ge,De))+Math.imul(oe,Ct)|0,I=Math.imul(oe,De),o=o+Math.imul(V,Nt)|0,s=(s=s+Math.imul(V,Pe)|0)+Math.imul(W,Nt)|0,I=I+Math.imul(W,Pe)|0,o=o+Math.imul(Te,vt)|0,s=(s=s+Math.imul(Te,Ce)|0)+Math.imul(ye,vt)|0,I=I+Math.imul(ye,Ce)|0,o=o+Math.imul(xe,St)|0,s=(s=s+Math.imul(xe,Re)|0)+Math.imul(ce,St)|0,I=I+Math.imul(ce,Re)|0,o=o+Math.imul(te,It)|0,s=(s=s+Math.imul(te,qe)|0)+Math.imul(J,It)|0,I=I+Math.imul(J,qe)|0,o=o+Math.imul(K,Dt)|0,s=(s=s+Math.imul(K,Le)|0)+Math.imul(q,Dt)|0,I=I+Math.imul(q,Le)|0;var cn=(N+(o=o+Math.imul(z,$t)|0)|0)+((8191&(s=(s=s+Math.imul(z,Fe)|0)+Math.imul(Y,$t)|0))<<13)|0;N=((I=I+Math.imul(Y,Fe)|0)+(s>>>13)|0)+(cn>>>26)|0,cn&=67108863,o=Math.imul(Ne,Ct),s=(s=Math.imul(Ne,De))+Math.imul(we,Ct)|0,I=Math.imul(we,De),o=o+Math.imul(ge,Nt)|0,s=(s=s+Math.imul(ge,Pe)|0)+Math.imul(oe,Nt)|0,I=I+Math.imul(oe,Pe)|0,o=o+Math.imul(V,vt)|0,s=(s=s+Math.imul(V,Ce)|0)+Math.imul(W,vt)|0,I=I+Math.imul(W,Ce)|0,o=o+Math.imul(Te,St)|0,s=(s=s+Math.imul(Te,Re)|0)+Math.imul(ye,St)|0,I=I+Math.imul(ye,Re)|0,o=o+Math.imul(xe,It)|0,s=(s=s+Math.imul(xe,qe)|0)+Math.imul(ce,It)|0,I=I+Math.imul(ce,qe)|0,o=o+Math.imul(te,Dt)|0,s=(s=s+Math.imul(te,Le)|0)+Math.imul(J,Dt)|0,I=I+Math.imul(J,Le)|0,o=o+Math.imul(K,$t)|0,s=(s=s+Math.imul(K,Fe)|0)+Math.imul(q,$t)|0,I=I+Math.imul(q,Fe)|0;var ln=(N+(o=o+Math.imul(z,Ut)|0)|0)+((8191&(s=(s=s+Math.imul(z,$e)|0)+Math.imul(Y,Ut)|0))<<13)|0;N=((I=I+Math.imul(Y,$e)|0)+(s>>>13)|0)+(ln>>>26)|0,ln&=67108863,o=Math.imul(pt,Ct),s=(s=Math.imul(pt,De))+Math.imul(ke,Ct)|0,I=Math.imul(ke,De),o=o+Math.imul(Ne,Nt)|0,s=(s=s+Math.imul(Ne,Pe)|0)+Math.imul(we,Nt)|0,I=I+Math.imul(we,Pe)|0,o=o+Math.imul(ge,vt)|0,s=(s=s+Math.imul(ge,Ce)|0)+Math.imul(oe,vt)|0,I=I+Math.imul(oe,Ce)|0,o=o+Math.imul(V,St)|0,s=(s=s+Math.imul(V,Re)|0)+Math.imul(W,St)|0,I=I+Math.imul(W,Re)|0,o=o+Math.imul(Te,It)|0,s=(s=s+Math.imul(Te,qe)|0)+Math.imul(ye,It)|0,I=I+Math.imul(ye,qe)|0,o=o+Math.imul(xe,Dt)|0,s=(s=s+Math.imul(xe,Le)|0)+Math.imul(ce,Dt)|0,I=I+Math.imul(ce,Le)|0,o=o+Math.imul(te,$t)|0,s=(s=s+Math.imul(te,Fe)|0)+Math.imul(J,$t)|0,I=I+Math.imul(J,Fe)|0,o=o+Math.imul(K,Ut)|0,s=(s=s+Math.imul(K,$e)|0)+Math.imul(q,Ut)|0,I=I+Math.imul(q,$e)|0;var hn=(N+(o=o+Math.imul(z,zt)|0)|0)+((8191&(s=(s=s+Math.imul(z,Ue)|0)+Math.imul(Y,zt)|0))<<13)|0;N=((I=I+Math.imul(Y,Ue)|0)+(s>>>13)|0)+(hn>>>26)|0,hn&=67108863,o=Math.imul(Et,Ct),s=(s=Math.imul(Et,De))+Math.imul(Ie,Ct)|0,I=Math.imul(Ie,De),o=o+Math.imul(pt,Nt)|0,s=(s=s+Math.imul(pt,Pe)|0)+Math.imul(ke,Nt)|0,I=I+Math.imul(ke,Pe)|0,o=o+Math.imul(Ne,vt)|0,s=(s=s+Math.imul(Ne,Ce)|0)+Math.imul(we,vt)|0,I=I+Math.imul(we,Ce)|0,o=o+Math.imul(ge,St)|0,s=(s=s+Math.imul(ge,Re)|0)+Math.imul(oe,St)|0,I=I+Math.imul(oe,Re)|0,o=o+Math.imul(V,It)|0,s=(s=s+Math.imul(V,qe)|0)+Math.imul(W,It)|0,I=I+Math.imul(W,qe)|0,o=o+Math.imul(Te,Dt)|0,s=(s=s+Math.imul(Te,Le)|0)+Math.imul(ye,Dt)|0,I=I+Math.imul(ye,Le)|0,o=o+Math.imul(xe,$t)|0,s=(s=s+Math.imul(xe,Fe)|0)+Math.imul(ce,$t)|0,I=I+Math.imul(ce,Fe)|0,o=o+Math.imul(te,Ut)|0,s=(s=s+Math.imul(te,$e)|0)+Math.imul(J,Ut)|0,I=I+Math.imul(J,$e)|0,o=o+Math.imul(K,zt)|0,s=(s=s+Math.imul(K,Ue)|0)+Math.imul(q,zt)|0,I=I+Math.imul(q,Ue)|0;var Gt=(N+(o=o+Math.imul(z,Tt)|0)|0)+((8191&(s=(s=s+Math.imul(z,Rt)|0)+Math.imul(Y,Tt)|0))<<13)|0;N=((I=I+Math.imul(Y,Rt)|0)+(s>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,o=Math.imul(Et,Nt),s=(s=Math.imul(Et,Pe))+Math.imul(Ie,Nt)|0,I=Math.imul(Ie,Pe),o=o+Math.imul(pt,vt)|0,s=(s=s+Math.imul(pt,Ce)|0)+Math.imul(ke,vt)|0,I=I+Math.imul(ke,Ce)|0,o=o+Math.imul(Ne,St)|0,s=(s=s+Math.imul(Ne,Re)|0)+Math.imul(we,St)|0,I=I+Math.imul(we,Re)|0,o=o+Math.imul(ge,It)|0,s=(s=s+Math.imul(ge,qe)|0)+Math.imul(oe,It)|0,I=I+Math.imul(oe,qe)|0,o=o+Math.imul(V,Dt)|0,s=(s=s+Math.imul(V,Le)|0)+Math.imul(W,Dt)|0,I=I+Math.imul(W,Le)|0,o=o+Math.imul(Te,$t)|0,s=(s=s+Math.imul(Te,Fe)|0)+Math.imul(ye,$t)|0,I=I+Math.imul(ye,Fe)|0,o=o+Math.imul(xe,Ut)|0,s=(s=s+Math.imul(xe,$e)|0)+Math.imul(ce,Ut)|0,I=I+Math.imul(ce,$e)|0,o=o+Math.imul(te,zt)|0,s=(s=s+Math.imul(te,Ue)|0)+Math.imul(J,zt)|0,I=I+Math.imul(J,Ue)|0;var pn=(N+(o=o+Math.imul(K,Tt)|0)|0)+((8191&(s=(s=s+Math.imul(K,Rt)|0)+Math.imul(q,Tt)|0))<<13)|0;N=((I=I+Math.imul(q,Rt)|0)+(s>>>13)|0)+(pn>>>26)|0,pn&=67108863,o=Math.imul(Et,vt),s=(s=Math.imul(Et,Ce))+Math.imul(Ie,vt)|0,I=Math.imul(Ie,Ce),o=o+Math.imul(pt,St)|0,s=(s=s+Math.imul(pt,Re)|0)+Math.imul(ke,St)|0,I=I+Math.imul(ke,Re)|0,o=o+Math.imul(Ne,It)|0,s=(s=s+Math.imul(Ne,qe)|0)+Math.imul(we,It)|0,I=I+Math.imul(we,qe)|0,o=o+Math.imul(ge,Dt)|0,s=(s=s+Math.imul(ge,Le)|0)+Math.imul(oe,Dt)|0,I=I+Math.imul(oe,Le)|0,o=o+Math.imul(V,$t)|0,s=(s=s+Math.imul(V,Fe)|0)+Math.imul(W,$t)|0,I=I+Math.imul(W,Fe)|0,o=o+Math.imul(Te,Ut)|0,s=(s=s+Math.imul(Te,$e)|0)+Math.imul(ye,Ut)|0,I=I+Math.imul(ye,$e)|0,o=o+Math.imul(xe,zt)|0,s=(s=s+Math.imul(xe,Ue)|0)+Math.imul(ce,zt)|0,I=I+Math.imul(ce,Ue)|0;var mn=(N+(o=o+Math.imul(te,Tt)|0)|0)+((8191&(s=(s=s+Math.imul(te,Rt)|0)+Math.imul(J,Tt)|0))<<13)|0;N=((I=I+Math.imul(J,Rt)|0)+(s>>>13)|0)+(mn>>>26)|0,mn&=67108863,o=Math.imul(Et,St),s=(s=Math.imul(Et,Re))+Math.imul(Ie,St)|0,I=Math.imul(Ie,Re),o=o+Math.imul(pt,It)|0,s=(s=s+Math.imul(pt,qe)|0)+Math.imul(ke,It)|0,I=I+Math.imul(ke,qe)|0,o=o+Math.imul(Ne,Dt)|0,s=(s=s+Math.imul(Ne,Le)|0)+Math.imul(we,Dt)|0,I=I+Math.imul(we,Le)|0,o=o+Math.imul(ge,$t)|0,s=(s=s+Math.imul(ge,Fe)|0)+Math.imul(oe,$t)|0,I=I+Math.imul(oe,Fe)|0,o=o+Math.imul(V,Ut)|0,s=(s=s+Math.imul(V,$e)|0)+Math.imul(W,Ut)|0,I=I+Math.imul(W,$e)|0,o=o+Math.imul(Te,zt)|0,s=(s=s+Math.imul(Te,Ue)|0)+Math.imul(ye,zt)|0,I=I+Math.imul(ye,Ue)|0;var Qt=(N+(o=o+Math.imul(xe,Tt)|0)|0)+((8191&(s=(s=s+Math.imul(xe,Rt)|0)+Math.imul(ce,Tt)|0))<<13)|0;N=((I=I+Math.imul(ce,Rt)|0)+(s>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,o=Math.imul(Et,It),s=(s=Math.imul(Et,qe))+Math.imul(Ie,It)|0,I=Math.imul(Ie,qe),o=o+Math.imul(pt,Dt)|0,s=(s=s+Math.imul(pt,Le)|0)+Math.imul(ke,Dt)|0,I=I+Math.imul(ke,Le)|0,o=o+Math.imul(Ne,$t)|0,s=(s=s+Math.imul(Ne,Fe)|0)+Math.imul(we,$t)|0,I=I+Math.imul(we,Fe)|0,o=o+Math.imul(ge,Ut)|0,s=(s=s+Math.imul(ge,$e)|0)+Math.imul(oe,Ut)|0,I=I+Math.imul(oe,$e)|0,o=o+Math.imul(V,zt)|0,s=(s=s+Math.imul(V,Ue)|0)+Math.imul(W,zt)|0,I=I+Math.imul(W,Ue)|0;var en=(N+(o=o+Math.imul(Te,Tt)|0)|0)+((8191&(s=(s=s+Math.imul(Te,Rt)|0)+Math.imul(ye,Tt)|0))<<13)|0;N=((I=I+Math.imul(ye,Rt)|0)+(s>>>13)|0)+(en>>>26)|0,en&=67108863,o=Math.imul(Et,Dt),s=(s=Math.imul(Et,Le))+Math.imul(Ie,Dt)|0,I=Math.imul(Ie,Le),o=o+Math.imul(pt,$t)|0,s=(s=s+Math.imul(pt,Fe)|0)+Math.imul(ke,$t)|0,I=I+Math.imul(ke,Fe)|0,o=o+Math.imul(Ne,Ut)|0,s=(s=s+Math.imul(Ne,$e)|0)+Math.imul(we,Ut)|0,I=I+Math.imul(we,$e)|0,o=o+Math.imul(ge,zt)|0,s=(s=s+Math.imul(ge,Ue)|0)+Math.imul(oe,zt)|0,I=I+Math.imul(oe,Ue)|0;var Yt=(N+(o=o+Math.imul(V,Tt)|0)|0)+((8191&(s=(s=s+Math.imul(V,Rt)|0)+Math.imul(W,Tt)|0))<<13)|0;N=((I=I+Math.imul(W,Rt)|0)+(s>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,o=Math.imul(Et,$t),s=(s=Math.imul(Et,Fe))+Math.imul(Ie,$t)|0,I=Math.imul(Ie,Fe),o=o+Math.imul(pt,Ut)|0,s=(s=s+Math.imul(pt,$e)|0)+Math.imul(ke,Ut)|0,I=I+Math.imul(ke,$e)|0,o=o+Math.imul(Ne,zt)|0,s=(s=s+Math.imul(Ne,Ue)|0)+Math.imul(we,zt)|0,I=I+Math.imul(we,Ue)|0;var fn=(N+(o=o+Math.imul(ge,Tt)|0)|0)+((8191&(s=(s=s+Math.imul(ge,Rt)|0)+Math.imul(oe,Tt)|0))<<13)|0;N=((I=I+Math.imul(oe,Rt)|0)+(s>>>13)|0)+(fn>>>26)|0,fn&=67108863,o=Math.imul(Et,Ut),s=(s=Math.imul(Et,$e))+Math.imul(Ie,Ut)|0,I=Math.imul(Ie,$e),o=o+Math.imul(pt,zt)|0,s=(s=s+Math.imul(pt,Ue)|0)+Math.imul(ke,zt)|0,I=I+Math.imul(ke,Ue)|0;var nn=(N+(o=o+Math.imul(Ne,Tt)|0)|0)+((8191&(s=(s=s+Math.imul(Ne,Rt)|0)+Math.imul(we,Tt)|0))<<13)|0;N=((I=I+Math.imul(we,Rt)|0)+(s>>>13)|0)+(nn>>>26)|0,nn&=67108863,o=Math.imul(Et,zt),s=(s=Math.imul(Et,Ue))+Math.imul(Ie,zt)|0,I=Math.imul(Ie,Ue);var ei=(N+(o=o+Math.imul(pt,Tt)|0)|0)+((8191&(s=(s=s+Math.imul(pt,Rt)|0)+Math.imul(ke,Tt)|0))<<13)|0;N=((I=I+Math.imul(ke,Rt)|0)+(s>>>13)|0)+(ei>>>26)|0,ei&=67108863;var Zn=(N+(o=Math.imul(Et,Tt))|0)+((8191&(s=(s=Math.imul(Et,Rt))+Math.imul(Ie,Tt)|0))<<13)|0;return N=((I=Math.imul(Ie,Rt))+(s>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,A[0]=Zt,A[1]=on,A[2]=tn,A[3]=an,A[4]=sn,A[5]=un,A[6]=cn,A[7]=ln,A[8]=hn,A[9]=Gt,A[10]=pn,A[11]=mn,A[12]=Qt,A[13]=en,A[14]=Yt,A[15]=fn,A[16]=nn,A[17]=ei,A[18]=Zn,N!==0&&(A[19]=N,t.length++),t};function b(i,n,t){t.negative=n.negative^i.negative,t.length=i.length+n.length;for(var o=0,s=0,I=0;I<t.length-1;I++){var P=s;s=0;for(var j=67108863&o,A=Math.min(I,n.length-1),N=Math.max(0,I-i.length+1);N<=A;N++){var L=I-N,z=(0|i.words[L])*(0|n.words[N]),Y=67108863&z;j=67108863&(Y=Y+j|0),s+=(P=(P=P+(z/67108864|0)|0)+(Y>>>26)|0)>>>26,P&=67108863}t.words[I]=j,o=P,P=s}return o!==0?t.words[I]=o:t.length--,t._strip()}function T(i,n,t){return b(i,n,t)}Math.imul||(S=_),a.prototype.mulTo=function(i,n){var t=this.length+i.length;return this.length===10&&i.length===10?S(this,i,n):t<63?_(this,i,n):t<1024?b(this,i,n):T(this,i,n)},a.prototype.mul=function(i){var n=new a(null);return n.words=new Array(this.length+i.length),this.mulTo(i,n)},a.prototype.mulf=function(i){var n=new a(null);return n.words=new Array(this.length+i.length),T(this,i,n)},a.prototype.imul=function(i){return this.clone().mulTo(i,this)},a.prototype.imuln=function(i){var n=i<0;n&&(i=-i),g(typeof i=="number"),g(i<67108864);for(var t=0,o=0;o<this.length;o++){var s=(0|this.words[o])*i,I=(67108863&s)+(67108863&t);t>>=26,t+=s/67108864|0,t+=I>>>26,this.words[o]=67108863&I}return t!==0&&(this.words[o]=t,this.length++),n?this.ineg():this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var n=function(I){for(var P=new Array(I.bitLength()),j=0;j<P.length;j++){var A=j/26|0,N=j%26;P[j]=I.words[A]>>>N&1}return P}(i);if(n.length===0)return new a(1);for(var t=this,o=0;o<n.length&&n[o]===0;o++,t=t.sqr());if(++o<n.length)for(var s=t.sqr();o<n.length;o++,s=s.sqr())n[o]!==0&&(t=t.mul(s));return t},a.prototype.iushln=function(i){g(typeof i=="number"&&i>=0);var n,t=i%26,o=(i-t)/26,s=67108863>>>26-t<<26-t;if(t!==0){var I=0;for(n=0;n<this.length;n++){var P=this.words[n]&s,j=(0|this.words[n])-P<<t;this.words[n]=j|I,I=P>>>26-t}I&&(this.words[n]=I,this.length++)}if(o!==0){for(n=this.length-1;n>=0;n--)this.words[n+o]=this.words[n];for(n=0;n<o;n++)this.words[n]=0;this.length+=o}return this._strip()},a.prototype.ishln=function(i){return g(this.negative===0),this.iushln(i)},a.prototype.iushrn=function(i,n,t){var o;g(typeof i=="number"&&i>=0),o=n?(n-n%26)/26:0;var s=i%26,I=Math.min((i-s)/26,this.length),P=67108863^67108863>>>s<<s,j=t;if(o-=I,o=Math.max(0,o),j){for(var A=0;A<I;A++)j.words[A]=this.words[A];j.length=I}if(I!==0)if(this.length>I)for(this.length-=I,A=0;A<this.length;A++)this.words[A]=this.words[A+I];else this.words[0]=0,this.length=1;var N=0;for(A=this.length-1;A>=0&&(N!==0||A>=o);A--){var L=0|this.words[A];this.words[A]=N<<26-s|L>>>s,N=L&P}return j&&N!==0&&(j.words[j.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(i,n,t){return g(this.negative===0),this.iushrn(i,n,t)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){g(typeof i=="number"&&i>=0);var n=i%26,t=(i-n)/26,o=1<<n;return!(this.length<=t||!(this.words[t]&o))},a.prototype.imaskn=function(i){g(typeof i=="number"&&i>=0);var n=i%26,t=(i-n)/26;if(g(this.negative===0,"imaskn works only with positive numbers"),this.length<=t)return this;if(n!==0&&t++,this.length=Math.min(t,this.length),n!==0){var o=67108863^67108863>>>n<<n;this.words[this.length-1]&=o}return this._strip()},a.prototype.maskn=function(i){return this.clone().imaskn(i)},a.prototype.iaddn=function(i){return g(typeof i=="number"),g(i<67108864),i<0?this.isubn(-i):this.negative!==0?this.length===1&&(0|this.words[0])<=i?(this.words[0]=i-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(i),this.negative=1,this):this._iaddn(i)},a.prototype._iaddn=function(i){this.words[0]+=i;for(var n=0;n<this.length&&this.words[n]>=67108864;n++)this.words[n]-=67108864,n===this.length-1?this.words[n+1]=1:this.words[n+1]++;return this.length=Math.max(this.length,n+1),this},a.prototype.isubn=function(i){if(g(typeof i=="number"),g(i<67108864),i<0)return this.iaddn(-i);if(this.negative!==0)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var n=0;n<this.length&&this.words[n]<0;n++)this.words[n]+=67108864,this.words[n+1]-=1;return this._strip()},a.prototype.addn=function(i){return this.clone().iaddn(i)},a.prototype.subn=function(i){return this.clone().isubn(i)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(i,n,t){var o,s,I=i.length+t;this._expand(I);var P=0;for(o=0;o<i.length;o++){s=(0|this.words[o+t])+P;var j=(0|i.words[o])*n;P=((s-=67108863&j)>>26)-(j/67108864|0),this.words[o+t]=67108863&s}for(;o<this.length-t;o++)P=(s=(0|this.words[o+t])+P)>>26,this.words[o+t]=67108863&s;if(P===0)return this._strip();for(g(P===-1),P=0,o=0;o<this.length;o++)P=(s=-(0|this.words[o])+P)>>26,this.words[o]=67108863&s;return this.negative=1,this._strip()},a.prototype._wordDiv=function(i,n){var t=(this.length,i.length),o=this.clone(),s=i,I=0|s.words[s.length-1];(t=26-this._countBits(I))!=0&&(s=s.ushln(t),o.iushln(t),I=0|s.words[s.length-1]);var P,j=o.length-s.length;if(n!=="mod"){(P=new a(null)).length=j+1,P.words=new Array(P.length);for(var A=0;A<P.length;A++)P.words[A]=0}var N=o.clone()._ishlnsubmul(s,1,j);N.negative===0&&(o=N,P&&(P.words[j]=1));for(var L=j-1;L>=0;L--){var z=67108864*(0|o.words[s.length+L])+(0|o.words[s.length+L-1]);for(z=Math.min(z/I|0,67108863),o._ishlnsubmul(s,z,L);o.negative!==0;)z--,o.negative=0,o._ishlnsubmul(s,1,L),o.isZero()||(o.negative^=1);P&&(P.words[L]=z)}return P&&P._strip(),o._strip(),n!=="div"&&t!==0&&o.iushrn(t),{div:P||null,mod:o}},a.prototype.divmod=function(i,n,t){return g(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&i.negative===0?(I=this.neg().divmod(i,n),n!=="mod"&&(o=I.div.neg()),n!=="div"&&(s=I.mod.neg(),t&&s.negative!==0&&s.iadd(i)),{div:o,mod:s}):this.negative===0&&i.negative!==0?(I=this.divmod(i.neg(),n),n!=="mod"&&(o=I.div.neg()),{div:o,mod:I.mod}):this.negative&i.negative?(I=this.neg().divmod(i.neg(),n),n!=="div"&&(s=I.mod.neg(),t&&s.negative!==0&&s.isub(i)),{div:I.div,mod:s}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:i.length===1?n==="div"?{div:this.divn(i.words[0]),mod:null}:n==="mod"?{div:null,mod:new a(this.modrn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modrn(i.words[0]))}:this._wordDiv(i,n);var o,s,I},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var n=this.divmod(i);if(n.mod.isZero())return n.div;var t=n.div.negative!==0?n.mod.isub(i):n.mod,o=i.ushrn(1),s=i.andln(1),I=t.cmp(o);return I<0||s===1&&I===0?n.div:n.div.negative!==0?n.div.isubn(1):n.div.iaddn(1)},a.prototype.modrn=function(i){var n=i<0;n&&(i=-i),g(i<=67108863);for(var t=67108864%i,o=0,s=this.length-1;s>=0;s--)o=(t*o+(0|this.words[s]))%i;return n?-o:o},a.prototype.modn=function(i){return this.modrn(i)},a.prototype.idivn=function(i){var n=i<0;n&&(i=-i),g(i<=67108863);for(var t=0,o=this.length-1;o>=0;o--){var s=(0|this.words[o])+67108864*t;this.words[o]=s/i|0,t=s%i}return this._strip(),n?this.ineg():this},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){g(i.negative===0),g(!i.isZero());var n=this,t=i.clone();n=n.negative!==0?n.umod(i):n.clone();for(var o=new a(1),s=new a(0),I=new a(0),P=new a(1),j=0;n.isEven()&&t.isEven();)n.iushrn(1),t.iushrn(1),++j;for(var A=t.clone(),N=n.clone();!n.isZero();){for(var L=0,z=1;!(n.words[0]&z)&&L<26;++L,z<<=1);if(L>0)for(n.iushrn(L);L-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(A),s.isub(N)),o.iushrn(1),s.iushrn(1);for(var Y=0,D=1;!(t.words[0]&D)&&Y<26;++Y,D<<=1);if(Y>0)for(t.iushrn(Y);Y-- >0;)(I.isOdd()||P.isOdd())&&(I.iadd(A),P.isub(N)),I.iushrn(1),P.iushrn(1);n.cmp(t)>=0?(n.isub(t),o.isub(I),s.isub(P)):(t.isub(n),I.isub(o),P.isub(s))}return{a:I,b:P,gcd:t.iushln(j)}},a.prototype._invmp=function(i){g(i.negative===0),g(!i.isZero());var n=this,t=i.clone();n=n.negative!==0?n.umod(i):n.clone();for(var o,s=new a(1),I=new a(0),P=t.clone();n.cmpn(1)>0&&t.cmpn(1)>0;){for(var j=0,A=1;!(n.words[0]&A)&&j<26;++j,A<<=1);if(j>0)for(n.iushrn(j);j-- >0;)s.isOdd()&&s.iadd(P),s.iushrn(1);for(var N=0,L=1;!(t.words[0]&L)&&N<26;++N,L<<=1);if(N>0)for(t.iushrn(N);N-- >0;)I.isOdd()&&I.iadd(P),I.iushrn(1);n.cmp(t)>=0?(n.isub(t),s.isub(I)):(t.isub(n),I.isub(s))}return(o=n.cmpn(1)===0?s:I).cmpn(0)<0&&o.iadd(i),o},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var n=this.clone(),t=i.clone();n.negative=0,t.negative=0;for(var o=0;n.isEven()&&t.isEven();o++)n.iushrn(1),t.iushrn(1);for(;;){for(;n.isEven();)n.iushrn(1);for(;t.isEven();)t.iushrn(1);var s=n.cmp(t);if(s<0){var I=n;n=t,t=I}else if(s===0||t.cmpn(1)===0)break;n.isub(t)}return t.iushln(o)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){g(typeof i=="number");var n=i%26,t=(i-n)/26,o=1<<n;if(this.length<=t)return this._expand(t+1),this.words[t]|=o,this;for(var s=o,I=t;s!==0&&I<this.length;I++){var P=0|this.words[I];s=(P+=s)>>>26,P&=67108863,this.words[I]=P}return s!==0&&(this.words[I]=s,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(i){var n,t=i<0;if(this.negative!==0&&!t)return-1;if(this.negative===0&&t)return 1;if(this._strip(),this.length>1)n=1;else{t&&(i=-i),g(i<=67108863,"Number is too big");var o=0|this.words[0];n=o===i?0:o<i?-1:1}return this.negative!==0?0|-n:n},a.prototype.cmp=function(i){if(this.negative!==0&&i.negative===0)return-1;if(this.negative===0&&i.negative!==0)return 1;var n=this.ucmp(i);return this.negative!==0?0|-n:n},a.prototype.ucmp=function(i){if(this.length>i.length)return 1;if(this.length<i.length)return-1;for(var n=0,t=this.length-1;t>=0;t--){var o=0|this.words[t],s=0|i.words[t];if(o!==s){o<s?n=-1:o>s&&(n=1);break}}return n},a.prototype.gtn=function(i){return this.cmpn(i)===1},a.prototype.gt=function(i){return this.cmp(i)===1},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return this.cmpn(i)===-1},a.prototype.lt=function(i){return this.cmp(i)===-1},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return this.cmpn(i)===0},a.prototype.eq=function(i){return this.cmp(i)===0},a.red=function(i){return new e(i)},a.prototype.toRed=function(i){return g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return g(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return g(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var C={k256:null,p224:null,p192:null,p25519:null};function R(i,n){this.name=i,this.p=new a(n,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function F(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function X(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Z(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ne(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function e(i){if(typeof i=="string"){var n=a._prime(i);this.m=n.p,this.prime=n}else g(i.gtn(1),"modulus must be greater than 1"),this.m=i,this.prime=null}function r(i){e.call(this,i),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}R.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},R.prototype.ireduce=function(i){var n,t=i;do this.split(t,this.tmp),n=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength();while(n>this.n);var o=n<this.n?-1:t.ucmp(this.p);return o===0?(t.words[0]=0,t.length=1):o>0?t.isub(this.p):t.strip!==void 0?t.strip():t._strip(),t},R.prototype.split=function(i,n){i.iushrn(this.n,0,n)},R.prototype.imulK=function(i){return i.imul(this.k)},M(F,R),F.prototype.split=function(i,n){for(var t=4194303,o=Math.min(i.length,9),s=0;s<o;s++)n.words[s]=i.words[s];if(n.length=o,i.length<=9)return i.words[0]=0,void(i.length=1);var I=i.words[9];for(n.words[n.length++]=I&t,s=10;s<i.length;s++){var P=0|i.words[s];i.words[s-10]=(P&t)<<4|I>>>22,I=P}I>>>=22,i.words[s-10]=I,I===0&&i.length>10?i.length-=10:i.length-=9},F.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var n=0,t=0;t<i.length;t++){var o=0|i.words[t];n+=977*o,i.words[t]=67108863&n,n=64*o+(n/67108864|0)}return i.words[i.length-1]===0&&(i.length--,i.words[i.length-1]===0&&i.length--),i},M(X,R),M(Z,R),M(ne,R),ne.prototype.imulK=function(i){for(var n=0,t=0;t<i.length;t++){var o=19*(0|i.words[t])+n,s=67108863&o;o>>>=26,i.words[t]=s,n=o}return n!==0&&(i.words[i.length++]=n),i},a._prime=function(i){if(C[i])return C[i];var n;if(i==="k256")n=new F;else if(i==="p224")n=new X;else if(i==="p192")n=new Z;else{if(i!=="p25519")throw new Error("Unknown prime "+i);n=new ne}return C[i]=n,n},e.prototype._verify1=function(i){g(i.negative===0,"red works only with positives"),g(i.red,"red works only with red numbers")},e.prototype._verify2=function(i,n){g((i.negative|n.negative)==0,"red works only with positives"),g(i.red&&i.red===n.red,"red works only with red numbers")},e.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):(m(i,i.umod(this.m)._forceRed(this)),i)},e.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},e.prototype.add=function(i,n){this._verify2(i,n);var t=i.add(n);return t.cmp(this.m)>=0&&t.isub(this.m),t._forceRed(this)},e.prototype.iadd=function(i,n){this._verify2(i,n);var t=i.iadd(n);return t.cmp(this.m)>=0&&t.isub(this.m),t},e.prototype.sub=function(i,n){this._verify2(i,n);var t=i.sub(n);return t.cmpn(0)<0&&t.iadd(this.m),t._forceRed(this)},e.prototype.isub=function(i,n){this._verify2(i,n);var t=i.isub(n);return t.cmpn(0)<0&&t.iadd(this.m),t},e.prototype.shl=function(i,n){return this._verify1(i),this.imod(i.ushln(n))},e.prototype.imul=function(i,n){return this._verify2(i,n),this.imod(i.imul(n))},e.prototype.mul=function(i,n){return this._verify2(i,n),this.imod(i.mul(n))},e.prototype.isqr=function(i){return this.imul(i,i.clone())},e.prototype.sqr=function(i){return this.mul(i,i)},e.prototype.sqrt=function(i){if(i.isZero())return i.clone();var n=this.m.andln(3);if(g(n%2==1),n===3){var t=this.m.add(new a(1)).iushrn(2);return this.pow(i,t)}for(var o=this.m.subn(1),s=0;!o.isZero()&&o.andln(1)===0;)s++,o.iushrn(1);g(!o.isZero());var I=new a(1).toRed(this),P=I.redNeg(),j=this.m.subn(1).iushrn(1),A=this.m.bitLength();for(A=new a(2*A*A).toRed(this);this.pow(A,j).cmp(P)!==0;)A.redIAdd(P);for(var N=this.pow(A,o),L=this.pow(i,o.addn(1).iushrn(1)),z=this.pow(i,o),Y=s;z.cmp(I)!==0;){for(var D=z,K=0;D.cmp(I)!==0;K++)D=D.redSqr();g(K<Y);var q=this.pow(N,new a(1).iushln(Y-K-1));L=L.redMul(q),N=q.redSqr(),z=z.redMul(N),Y=K}return L},e.prototype.invm=function(i){var n=i._invmp(this.m);return n.negative!==0?(n.negative=0,this.imod(n).redNeg()):this.imod(n)},e.prototype.pow=function(i,n){if(n.isZero())return new a(1).toRed(this);if(n.cmpn(1)===0)return i.clone();var t=new Array(16);t[0]=new a(1).toRed(this),t[1]=i;for(var o=2;o<t.length;o++)t[o]=this.mul(t[o-1],i);var s=t[0],I=0,P=0,j=n.bitLength()%26;for(j===0&&(j=26),o=n.length-1;o>=0;o--){for(var A=n.words[o],N=j-1;N>=0;N--){var L=A>>N&1;s!==t[0]&&(s=this.sqr(s)),L!==0||I!==0?(I<<=1,I|=L,(++P==4||o===0&&N===0)&&(s=this.mul(s,t[I]),P=0,I=0)):P=0}j=26}return s},e.prototype.convertTo=function(i){var n=i.umod(this.m);return n===i?n.clone():n},e.prototype.convertFrom=function(i){var n=i.clone();return n.red=null,n},a.mont=function(i){return new r(i)},M(r,e),r.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},r.prototype.convertFrom=function(i){var n=this.imod(i.mul(this.rinv));return n.red=null,n},r.prototype.imul=function(i,n){if(i.isZero()||n.isZero())return i.words[0]=0,i.length=1,i;var t=i.imul(n),o=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=t.isub(o).iushrn(this.shift),I=s;return s.cmp(this.m)>=0?I=s.isub(this.m):s.cmpn(0)<0&&(I=s.iadd(this.m)),I._forceRed(this)},r.prototype.mul=function(i,n){if(i.isZero()||n.isZero())return new a(0)._forceRed(this);var t=i.mul(n),o=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),s=t.isub(o).iushrn(this.shift),I=s;return s.cmp(this.m)>=0?I=s.isub(this.m):s.cmpn(0)<0&&(I=s.iadd(this.m)),I._forceRed(this)},r.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=x.nmd(H),this)},9931:(H,O,x)=>{var k;function w(M){this.rand=M}if(H.exports=function(M){return k||(k=new w(null)),k.generate(M)},H.exports.Rand=w,w.prototype.generate=function(M){return this._rand(M)},w.prototype._rand=function(M){if(this.rand.getBytes)return this.rand.getBytes(M);for(var a=new Uint8Array(M),d=0;d<a.length;d++)a[d]=this.rand.getByte();return a},typeof self=="object")self.crypto&&self.crypto.getRandomValues?w.prototype._rand=function(M){var a=new Uint8Array(M);return self.crypto.getRandomValues(a),a}:self.msCrypto&&self.msCrypto.getRandomValues?w.prototype._rand=function(M){var a=new Uint8Array(M);return self.msCrypto.getRandomValues(a),a}:typeof window=="object"&&(w.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var g=x(9214);if(typeof g.randomBytes!="function")throw new Error("Not supported");w.prototype._rand=function(M){return g.randomBytes(M)}}catch(M){}},3818:(H,O,x)=>{var k=x(4155);Object.defineProperty(O,"__esModule",{value:!0});var w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},g=typeof window!="undefined"&&window.document!==void 0,M=(typeof self=="undefined"?"undefined":w(self))==="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope",a=k!==void 0&&k.versions!=null&&k.versions.node!=null;O.isBrowser=g,O.isWebWorker=M,O.isNode=a,O.isJsDom=function(){return typeof window!="undefined"&&window.name==="nodejs"||navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")}},4497:(H,O,x)=>{var k=x(9509).Buffer;function w(l){k.isBuffer(l)||(l=k.from(l));for(var p=l.length/4|0,m=new Array(p),h=0;h<p;h++)m[h]=l.readUInt32BE(4*h);return m}function g(l){for(;0<l.length;l++)l[0]=0}function M(l,p,m,h,u){for(var y,v,_,S,b=m[0],T=m[1],C=m[2],R=m[3],F=l[0]^p[0],X=l[1]^p[1],Z=l[2]^p[2],ne=l[3]^p[3],e=4,r=1;r<u;r++)y=b[F>>>24]^T[X>>>16&255]^C[Z>>>8&255]^R[255&ne]^p[e++],v=b[X>>>24]^T[Z>>>16&255]^C[ne>>>8&255]^R[255&F]^p[e++],_=b[Z>>>24]^T[ne>>>16&255]^C[F>>>8&255]^R[255&X]^p[e++],S=b[ne>>>24]^T[F>>>16&255]^C[X>>>8&255]^R[255&Z]^p[e++],F=y,X=v,Z=_,ne=S;return y=(h[F>>>24]<<24|h[X>>>16&255]<<16|h[Z>>>8&255]<<8|h[255&ne])^p[e++],v=(h[X>>>24]<<24|h[Z>>>16&255]<<16|h[ne>>>8&255]<<8|h[255&F])^p[e++],_=(h[Z>>>24]<<24|h[ne>>>16&255]<<16|h[F>>>8&255]<<8|h[255&X])^p[e++],S=(h[ne>>>24]<<24|h[F>>>16&255]<<16|h[X>>>8&255]<<8|h[255&Z])^p[e++],[y>>>=0,v>>>=0,_>>>=0,S>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var l=new Array(256),p=0;p<256;p++)l[p]=p<128?p<<1:p<<1^283;for(var m=[],h=[],u=[[],[],[],[]],y=[[],[],[],[]],v=0,_=0,S=0;S<256;++S){var b=_^_<<1^_<<2^_<<3^_<<4;b=b>>>8^255&b^99,m[v]=b,h[b]=v;var T=l[v],C=l[T],R=l[C],F=257*l[b]^16843008*b;u[0][v]=F<<24|F>>>8,u[1][v]=F<<16|F>>>16,u[2][v]=F<<8|F>>>24,u[3][v]=F,F=16843009*R^65537*C^257*T^16843008*v,y[0][b]=F<<24|F>>>8,y[1][b]=F<<16|F>>>16,y[2][b]=F<<8|F>>>24,y[3][b]=F,v===0?v=_=1:(v=T^l[l[l[R^T]]],_^=l[l[_]])}return{SBOX:m,INV_SBOX:h,SUB_MIX:u,INV_SUB_MIX:y}}();function c(l){this._key=w(l),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var l=this._key,p=l.length,m=p+6,h=4*(m+1),u=[],y=0;y<p;y++)u[y]=l[y];for(y=p;y<h;y++){var v=u[y-1];y%p==0?(v=v<<8|v>>>24,v=d.SBOX[v>>>24]<<24|d.SBOX[v>>>16&255]<<16|d.SBOX[v>>>8&255]<<8|d.SBOX[255&v],v^=a[y/p|0]<<24):p>6&&y%p==4&&(v=d.SBOX[v>>>24]<<24|d.SBOX[v>>>16&255]<<16|d.SBOX[v>>>8&255]<<8|d.SBOX[255&v]),u[y]=u[y-p]^v}for(var _=[],S=0;S<h;S++){var b=h-S,T=u[b-(S%4?0:4)];_[S]=S<4||b<=4?T:d.INV_SUB_MIX[0][d.SBOX[T>>>24]]^d.INV_SUB_MIX[1][d.SBOX[T>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[T>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&T]]}this._nRounds=m,this._keySchedule=u,this._invKeySchedule=_},c.prototype.encryptBlockRaw=function(l){return M(l=w(l),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},c.prototype.encryptBlock=function(l){var p=this.encryptBlockRaw(l),m=k.allocUnsafe(16);return m.writeUInt32BE(p[0],0),m.writeUInt32BE(p[1],4),m.writeUInt32BE(p[2],8),m.writeUInt32BE(p[3],12),m},c.prototype.decryptBlock=function(l){var p=(l=w(l))[1];l[1]=l[3],l[3]=p;var m=M(l,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),h=k.allocUnsafe(16);return h.writeUInt32BE(m[0],0),h.writeUInt32BE(m[3],4),h.writeUInt32BE(m[2],8),h.writeUInt32BE(m[1],12),h},c.prototype.scrub=function(){g(this._keySchedule),g(this._invKeySchedule),g(this._key)},H.exports.AES=c},2422:(H,O,x)=>{var k=x(4497),w=x(9509).Buffer,g=x(1027),M=x(5717),a=x(3288),d=x(7295),c=x(685);function l(p,m,h,u){g.call(this);var y=w.alloc(4,0);this._cipher=new k.AES(m);var v=this._cipher.encryptBlock(y);this._ghash=new a(v),h=function(_,S,b){if(S.length===12)return _._finID=w.concat([S,w.from([0,0,0,1])]),w.concat([S,w.from([0,0,0,2])]);var T=new a(b),C=S.length,R=C%16;T.update(S),R&&(R=16-R,T.update(w.alloc(R,0))),T.update(w.alloc(8,0));var F=8*C,X=w.alloc(8);X.writeUIntBE(F,0,8),T.update(X),_._finID=T.state;var Z=w.from(_._finID);return c(Z),Z}(this,h,v),this._prev=w.from(h),this._cache=w.allocUnsafe(0),this._secCache=w.allocUnsafe(0),this._decrypt=u,this._alen=0,this._len=0,this._mode=p,this._authTag=null,this._called=!1}M(l,g),l.prototype._update=function(p){if(!this._called&&this._alen){var m=16-this._alen%16;m<16&&(m=w.alloc(m,0),this._ghash.update(m))}this._called=!0;var h=this._mode.encrypt(this,p);return this._decrypt?this._ghash.update(p):this._ghash.update(h),this._len+=p.length,h},l.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var p=d(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(m,h){var u=0;m.length!==h.length&&u++;for(var y=Math.min(m.length,h.length),v=0;v<y;++v)u+=m[v]^h[v];return u}(p,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=p,this._cipher.scrub()},l.prototype.getAuthTag=function(){if(this._decrypt||!w.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},l.prototype.setAuthTag=function(p){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=p},l.prototype.setAAD=function(p){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(p),this._alen+=p.length},H.exports=l},4696:(H,O,x)=>{var k=x(1494),w=x(6193),g=x(4946);O.createCipher=O.Cipher=k.createCipher,O.createCipheriv=O.Cipheriv=k.createCipheriv,O.createDecipher=O.Decipher=w.createDecipher,O.createDecipheriv=O.Decipheriv=w.createDecipheriv,O.listCiphers=O.getCiphers=function(){return Object.keys(g)}},6193:(H,O,x)=>{var k=x(2422),w=x(9509).Buffer,g=x(45),M=x(5969),a=x(1027),d=x(4497),c=x(3048);function l(h,u,y){a.call(this),this._cache=new p,this._last=void 0,this._cipher=new d.AES(u),this._prev=w.from(y),this._mode=h,this._autopadding=!0}function p(){this.cache=w.allocUnsafe(0)}function m(h,u,y){var v=g[h.toLowerCase()];if(!v)throw new TypeError("invalid suite type");if(typeof y=="string"&&(y=w.from(y)),v.mode!=="GCM"&&y.length!==v.iv)throw new TypeError("invalid iv length "+y.length);if(typeof u=="string"&&(u=w.from(u)),u.length!==v.key/8)throw new TypeError("invalid key length "+u.length);return v.type==="stream"?new M(v.module,u,y,!0):v.type==="auth"?new k(v.module,u,y,!0):new l(v.module,u,y)}x(5717)(l,a),l.prototype._update=function(h){var u,y;this._cache.add(h);for(var v=[];u=this._cache.get(this._autopadding);)y=this._mode.decrypt(this,u),v.push(y);return w.concat(v)},l.prototype._final=function(){var h=this._cache.flush();if(this._autopadding)return function(u){var y=u[15];if(y<1||y>16)throw new Error("unable to decrypt data");for(var v=-1;++v<y;)if(u[v+(16-y)]!==y)throw new Error("unable to decrypt data");if(y!==16)return u.slice(0,16-y)}(this._mode.decrypt(this,h));if(h)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(h){return this._autopadding=!!h,this},p.prototype.add=function(h){this.cache=w.concat([this.cache,h])},p.prototype.get=function(h){var u;if(h){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},p.prototype.flush=function(){if(this.cache.length)return this.cache},O.createDecipher=function(h,u){var y=g[h.toLowerCase()];if(!y)throw new TypeError("invalid suite type");var v=c(u,!1,y.key,y.iv);return m(h,v.key,v.iv)},O.createDecipheriv=m},1494:(H,O,x)=>{var k=x(45),w=x(2422),g=x(9509).Buffer,M=x(5969),a=x(1027),d=x(4497),c=x(3048);function l(u,y,v){a.call(this),this._cache=new m,this._cipher=new d.AES(y),this._prev=g.from(v),this._mode=u,this._autopadding=!0}x(5717)(l,a),l.prototype._update=function(u){var y,v;this._cache.add(u);for(var _=[];y=this._cache.get();)v=this._mode.encrypt(this,y),_.push(v);return g.concat(_)};var p=g.alloc(16,16);function m(){this.cache=g.allocUnsafe(0)}function h(u,y,v){var _=k[u.toLowerCase()];if(!_)throw new TypeError("invalid suite type");if(typeof y=="string"&&(y=g.from(y)),y.length!==_.key/8)throw new TypeError("invalid key length "+y.length);if(typeof v=="string"&&(v=g.from(v)),_.mode!=="GCM"&&v.length!==_.iv)throw new TypeError("invalid iv length "+v.length);return _.type==="stream"?new M(_.module,y,v):_.type==="auth"?new w(_.module,y,v):new l(_.module,y,v)}l.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(p))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(u){return this._autopadding=!!u,this},m.prototype.add=function(u){this.cache=g.concat([this.cache,u])},m.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},m.prototype.flush=function(){for(var u=16-this.cache.length,y=g.allocUnsafe(u),v=-1;++v<u;)y.writeUInt8(u,v);return g.concat([this.cache,y])},O.createCipheriv=h,O.createCipher=function(u,y){var v=k[u.toLowerCase()];if(!v)throw new TypeError("invalid suite type");var _=c(y,!1,v.key,v.iv);return h(u,_.key,_.iv)}},3288:(H,O,x)=>{var k=x(9509).Buffer,w=k.alloc(16,0);function g(a){var d=k.allocUnsafe(16);return d.writeUInt32BE(a[0]>>>0,0),d.writeUInt32BE(a[1]>>>0,4),d.writeUInt32BE(a[2]>>>0,8),d.writeUInt32BE(a[3]>>>0,12),d}function M(a){this.h=a,this.state=k.alloc(16,0),this.cache=k.allocUnsafe(0)}M.prototype.ghash=function(a){for(var d=-1;++d<a.length;)this.state[d]^=a[d];this._multiply()},M.prototype._multiply=function(){for(var a,d,c,l=[(a=this.h).readUInt32BE(0),a.readUInt32BE(4),a.readUInt32BE(8),a.readUInt32BE(12)],p=[0,0,0,0],m=-1;++m<128;){for(this.state[~~(m/8)]&1<<7-m%8&&(p[0]^=l[0],p[1]^=l[1],p[2]^=l[2],p[3]^=l[3]),c=(1&l[3])!=0,d=3;d>0;d--)l[d]=l[d]>>>1|(1&l[d-1])<<31;l[0]=l[0]>>>1,c&&(l[0]=l[0]^-520093696)}this.state=g(p)},M.prototype.update=function(a){var d;for(this.cache=k.concat([this.cache,a]);this.cache.length>=16;)d=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(d)},M.prototype.final=function(a,d){return this.cache.length&&this.ghash(k.concat([this.cache,w],16)),this.ghash(g([0,a,0,d])),this.state},H.exports=M},685:H=>{H.exports=function(O){for(var x,k=O.length;k--;){if((x=O.readUInt8(k))!==255){x++,O.writeUInt8(x,k);break}O.writeUInt8(0,k)}}},5292:(H,O,x)=>{var k=x(7295);O.encrypt=function(w,g){var M=k(g,w._prev);return w._prev=w._cipher.encryptBlock(M),w._prev},O.decrypt=function(w,g){var M=w._prev;w._prev=g;var a=w._cipher.decryptBlock(g);return k(a,M)}},6311:(H,O,x)=>{var k=x(9509).Buffer,w=x(7295);function g(M,a,d){var c=a.length,l=w(a,M._cache);return M._cache=M._cache.slice(c),M._prev=k.concat([M._prev,d?a:l]),l}O.encrypt=function(M,a,d){for(var c,l=k.allocUnsafe(0);a.length;){if(M._cache.length===0&&(M._cache=M._cipher.encryptBlock(M._prev),M._prev=k.allocUnsafe(0)),!(M._cache.length<=a.length)){l=k.concat([l,g(M,a,d)]);break}c=M._cache.length,l=k.concat([l,g(M,a.slice(0,c),d)]),a=a.slice(c)}return l}},1510:(H,O,x)=>{var k=x(9509).Buffer;function w(M,a,d){for(var c,l,p=-1,m=0;++p<8;)c=a&1<<7-p?128:0,m+=(128&(l=M._cipher.encryptBlock(M._prev)[0]^c))>>p%8,M._prev=g(M._prev,d?c:l);return m}function g(M,a){var d=M.length,c=-1,l=k.allocUnsafe(M.length);for(M=k.concat([M,k.from([a])]);++c<d;)l[c]=M[c]<<1|M[c+1]>>7;return l}O.encrypt=function(M,a,d){for(var c=a.length,l=k.allocUnsafe(c),p=-1;++p<c;)l[p]=w(M,a[p],d);return l}},1964:(H,O,x)=>{var k=x(9509).Buffer;function w(g,M,a){var d=g._cipher.encryptBlock(g._prev)[0]^M;return g._prev=k.concat([g._prev.slice(1),k.from([a?M:d])]),d}O.encrypt=function(g,M,a){for(var d=M.length,c=k.allocUnsafe(d),l=-1;++l<d;)c[l]=w(g,M[l],a);return c}},6009:(H,O,x)=>{var k=x(7295),w=x(9509).Buffer,g=x(685);function M(a){var d=a._cipher.encryptBlockRaw(a._prev);return g(a._prev),d}O.encrypt=function(a,d){var c=Math.ceil(d.length/16),l=a._cache.length;a._cache=w.concat([a._cache,w.allocUnsafe(16*c)]);for(var p=0;p<c;p++){var m=M(a),h=l+16*p;a._cache.writeUInt32BE(m[0],h+0),a._cache.writeUInt32BE(m[1],h+4),a._cache.writeUInt32BE(m[2],h+8),a._cache.writeUInt32BE(m[3],h+12)}var u=a._cache.slice(0,d.length);return a._cache=a._cache.slice(d.length),k(d,u)}},1084:(H,O)=>{O.encrypt=function(x,k){return x._cipher.encryptBlock(k)},O.decrypt=function(x,k){return x._cipher.decryptBlock(k)}},45:(H,O,x)=>{var k={ECB:x(1084),CBC:x(5292),CFB:x(6311),CFB8:x(1964),CFB1:x(1510),OFB:x(8861),CTR:x(6009),GCM:x(6009)},w=x(4946);for(var g in w)w[g].module=k[w[g].mode];H.exports=w},8861:(H,O,x)=>{var k=x(8764).Buffer,w=x(7295);function g(M){return M._prev=M._cipher.encryptBlock(M._prev),M._prev}O.encrypt=function(M,a){for(;M._cache.length<a.length;)M._cache=k.concat([M._cache,g(M)]);var d=M._cache.slice(0,a.length);return M._cache=M._cache.slice(a.length),w(a,d)}},5969:(H,O,x)=>{var k=x(4497),w=x(9509).Buffer,g=x(1027);function M(a,d,c,l){g.call(this),this._cipher=new k.AES(d),this._prev=w.from(c),this._cache=w.allocUnsafe(0),this._secCache=w.allocUnsafe(0),this._decrypt=l,this._mode=a}x(5717)(M,g),M.prototype._update=function(a){return this._mode.encrypt(this,a,this._decrypt)},M.prototype._final=function(){this._cipher.scrub()},H.exports=M},3614:(H,O,x)=>{var k=x(7667),w=x(4696),g=x(45),M=x(9715),a=x(3048);function d(l,p,m){if(l=l.toLowerCase(),g[l])return w.createCipheriv(l,p,m);if(M[l])return new k({key:p,iv:m,mode:l});throw new TypeError("invalid suite type")}function c(l,p,m){if(l=l.toLowerCase(),g[l])return w.createDecipheriv(l,p,m);if(M[l])return new k({key:p,iv:m,mode:l,decrypt:!0});throw new TypeError("invalid suite type")}O.createCipher=O.Cipher=function(l,p){var m,h;if(l=l.toLowerCase(),g[l])m=g[l].key,h=g[l].iv;else{if(!M[l])throw new TypeError("invalid suite type");m=8*M[l].key,h=M[l].iv}var u=a(p,!1,m,h);return d(l,u.key,u.iv)},O.createCipheriv=O.Cipheriv=d,O.createDecipher=O.Decipher=function(l,p){var m,h;if(l=l.toLowerCase(),g[l])m=g[l].key,h=g[l].iv;else{if(!M[l])throw new TypeError("invalid suite type");m=8*M[l].key,h=M[l].iv}var u=a(p,!1,m,h);return c(l,u.key,u.iv)},O.createDecipheriv=O.Decipheriv=c,O.listCiphers=O.getCiphers=function(){return Object.keys(M).concat(w.getCiphers())}},7667:(H,O,x)=>{var k=x(1027),w=x(5251),g=x(5717),M=x(9509).Buffer,a={"des-ede3-cbc":w.CBC.instantiate(w.EDE),"des-ede3":w.EDE,"des-ede-cbc":w.CBC.instantiate(w.EDE),"des-ede":w.EDE,"des-cbc":w.CBC.instantiate(w.DES),"des-ecb":w.DES};function d(c){k.call(this);var l,p=c.mode.toLowerCase(),m=a[p];l=c.decrypt?"decrypt":"encrypt";var h=c.key;M.isBuffer(h)||(h=M.from(h)),p!=="des-ede"&&p!=="des-ede-cbc"||(h=M.concat([h,h.slice(0,8)]));var u=c.iv;M.isBuffer(u)||(u=M.from(u)),this._des=m.create({key:h,iv:u,type:l})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],H.exports=d,g(d,k),d.prototype._update=function(c){return M.from(this._des.update(c))},d.prototype._final=function(){return M.from(this._des.final())}},9715:(H,O)=>{O["des-ecb"]={key:8,iv:0},O["des-cbc"]=O.des={key:8,iv:8},O["des-ede3-cbc"]=O.des3={key:24,iv:8},O["des-ede3"]={key:24,iv:0},O["des-ede-cbc"]={key:16,iv:8},O["des-ede"]={key:16,iv:0}},3663:(H,O,x)=>{var k=x(8764).Buffer,w=x(3550),g=x(1798);function M(d){var c,l=d.modulus.byteLength();do c=new w(g(l));while(c.cmp(d.modulus)>=0||!c.umod(d.prime1)||!c.umod(d.prime2));return c}function a(d,c){var l=function(C){var R=M(C);return{blinder:R.toRed(w.mont(C.modulus)).redPow(new w(C.publicExponent)).fromRed(),unblinder:R.invm(C.modulus)}}(c),p=c.modulus.byteLength(),m=new w(d).mul(l.blinder).umod(c.modulus),h=m.toRed(w.mont(c.prime1)),u=m.toRed(w.mont(c.prime2)),y=c.coefficient,v=c.prime1,_=c.prime2,S=h.redPow(c.exponent1).fromRed(),b=u.redPow(c.exponent2).fromRed(),T=S.isub(b).imul(y).umod(v).imul(_);return b.iadd(T).imul(l.unblinder).umod(c.modulus).toArrayLike(k,"be",p)}a.getr=M,H.exports=a},6042:(H,O,x)=>{H.exports=x(5207)},4743:(H,O,x)=>{var k=x(9509).Buffer,w=x(3482),g=x(8473),M=x(5717),a=x(2957),d=x(7753),c=x(5207);function l(u){g.Writable.call(this);var y=c[u];if(!y)throw new Error("Unknown message digest");this._hashType=y.hash,this._hash=w(y.hash),this._tag=y.id,this._signType=y.sign}function p(u){g.Writable.call(this);var y=c[u];if(!y)throw new Error("Unknown message digest");this._hash=w(y.hash),this._tag=y.id,this._signType=y.sign}function m(u){return new l(u)}function h(u){return new p(u)}Object.keys(c).forEach(function(u){c[u].id=k.from(c[u].id,"hex"),c[u.toLowerCase()]=c[u]}),M(l,g.Writable),l.prototype._write=function(u,y,v){this._hash.update(u),v()},l.prototype.update=function(u,y){return typeof u=="string"&&(u=k.from(u,y)),this._hash.update(u),this},l.prototype.sign=function(u,y){this.end();var v=this._hash.digest(),_=a(v,u,this._hashType,this._signType,this._tag);return y?_.toString(y):_},M(p,g.Writable),p.prototype._write=function(u,y,v){this._hash.update(u),v()},p.prototype.update=function(u,y){return typeof u=="string"&&(u=k.from(u,y)),this._hash.update(u),this},p.prototype.verify=function(u,y,v){typeof y=="string"&&(y=k.from(y,v)),this.end();var _=this._hash.digest();return d(y,_,u,this._signType,this._tag)},H.exports={Sign:m,Verify:h,createSign:m,createVerify:h}},2957:(H,O,x)=>{var k=x(9509).Buffer,w=x(8355),g=x(3663),M=x(6266).ec,a=x(3550),d=x(980),c=x(1308);function l(u,y,v,_){if((u=k.from(u.toArray())).length<y.byteLength()){var S=k.alloc(y.byteLength()-u.length);u=k.concat([S,u])}var b=v.length,T=function(F,X){F=(F=p(F,X)).mod(X);var Z=k.from(F.toArray());if(Z.length<X.byteLength()){var ne=k.alloc(X.byteLength()-Z.length);Z=k.concat([ne,Z])}return Z}(v,y),C=k.alloc(b);C.fill(1);var R=k.alloc(b);return R=w(_,R).update(C).update(k.from([0])).update(u).update(T).digest(),C=w(_,R).update(C).digest(),{k:R=w(_,R).update(C).update(k.from([1])).update(u).update(T).digest(),v:C=w(_,R).update(C).digest()}}function p(u,y){var v=new a(u),_=(u.length<<3)-y.bitLength();return _>0&&v.ishrn(_),v}function m(u,y,v){var _,S;do{for(_=k.alloc(0);8*_.length<u.bitLength();)y.v=w(v,y.k).update(y.v).digest(),_=k.concat([_,y.v]);S=p(_,u),y.k=w(v,y.k).update(y.v).update(k.from([0])).digest(),y.v=w(v,y.k).update(y.v).digest()}while(S.cmp(u)!==-1);return S}function h(u,y,v,_){return u.toRed(a.mont(v)).redPow(y).fromRed().mod(_)}H.exports=function(u,y,v,_,S){var b=d(y);if(b.curve){if(_!=="ecdsa"&&_!=="ecdsa/rsa")throw new Error("wrong private key type");return function(F,X){var Z=c[X.curve.join(".")];if(!Z)throw new Error("unknown curve "+X.curve.join("."));var ne=new M(Z).keyFromPrivate(X.privateKey).sign(F);return k.from(ne.toDER())}(u,b)}if(b.type==="dsa"){if(_!=="dsa")throw new Error("wrong private key type");return function(F,X,Z){for(var ne,e=X.params.priv_key,r=X.params.p,i=X.params.q,n=X.params.g,t=new a(0),o=p(F,i).mod(i),s=!1,I=l(e,i,F,Z);s===!1;)t=h(n,ne=m(i,I,Z),r,i),(s=ne.invm(i).imul(o.add(e.mul(t))).mod(i)).cmpn(0)===0&&(s=!1,t=new a(0));return function(P,j){P=P.toArray(),j=j.toArray(),128&P[0]&&(P=[0].concat(P)),128&j[0]&&(j=[0].concat(j));var A=[48,P.length+j.length+4,2,P.length];return A=A.concat(P,[2,j.length],j),k.from(A)}(t,s)}(u,b,v)}if(_!=="rsa"&&_!=="ecdsa/rsa")throw new Error("wrong private key type");u=k.concat([S,u]);for(var T=b.modulus.byteLength(),C=[0,1];u.length+C.length+1<T;)C.push(255);C.push(0);for(var R=-1;++R<u.length;)C.push(u[R]);return g(C,b)},H.exports.getKey=l,H.exports.makeKey=m},7753:(H,O,x)=>{var k=x(9509).Buffer,w=x(3550),g=x(6266).ec,M=x(980),a=x(1308);function d(c,l){if(c.cmpn(0)<=0)throw new Error("invalid sig");if(c.cmp(l)>=l)throw new Error("invalid sig")}H.exports=function(c,l,p,m,h){var u=M(p);if(u.type==="ec"){if(m!=="ecdsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");return function(C,R,F){var X=a[F.data.algorithm.curve.join(".")];if(!X)throw new Error("unknown curve "+F.data.algorithm.curve.join("."));var Z=new g(X),ne=F.data.subjectPrivateKey.data;return Z.verify(R,C,ne)}(c,l,u)}if(u.type==="dsa"){if(m!=="dsa")throw new Error("wrong public key type");return function(C,R,F){var X=F.data.p,Z=F.data.q,ne=F.data.g,e=F.data.pub_key,r=M.signature.decode(C,"der"),i=r.s,n=r.r;d(i,Z),d(n,Z);var t=w.mont(X),o=i.invm(Z);return ne.toRed(t).redPow(new w(R).mul(o).mod(Z)).fromRed().mul(e.toRed(t).redPow(n.mul(o).mod(Z)).fromRed()).mod(X).mod(Z).cmp(n)===0}(c,l,u)}if(m!=="rsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");l=k.concat([h,l]);for(var y=u.modulus.byteLength(),v=[1],_=0;l.length+v.length+2<y;)v.push(255),_++;v.push(0);for(var S=-1;++S<l.length;)v.push(l[S]);v=k.from(v);var b=w.mont(u.modulus);c=(c=new w(c).toRed(b)).redPow(new w(u.publicExponent)),c=k.from(c.fromRed().toArray());var T=_<8?1:0;for(y=Math.min(c.length,v.length),c.length!==v.length&&(T=1),S=-1;++S<y;)T|=c[S]^v[S];return T===0}},2779:(H,O,x)=>{var k=x(8764).Buffer,w=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];function g(d){if(k.isBuffer(d))return d;var c=typeof k.alloc=="function"&&typeof k.from=="function";if(typeof d=="number")return c?k.alloc(d):new k(d);if(typeof d=="string")return c?k.from(d):new k(d);throw new Error("input must be buffer, number, or string, received "+typeof d)}function M(d,c){d=g(d),k.isBuffer(c)&&(c=c.readUInt32BE(0));for(var l=-1^~~c,p=0;p<d.length;p++)l=w[255&(l^d[p])]^l>>>8;return-1^l}function a(){return d=M.apply(null,arguments),(c=g(4)).writeInt32BE(d,0),c;var d,c}typeof Int32Array!="undefined"&&(w=new Int32Array(w)),a.signed=function(){return M.apply(null,arguments)},a.unsigned=function(){return M.apply(null,arguments)>>>0},H.exports=a},7295:(H,O,x)=>{var k=x(8764).Buffer;H.exports=function(w,g){for(var M=Math.min(w.length,g.length),a=new k(M),d=0;d<M;++d)a[d]=w[d]^g[d];return a}},8764:(H,O,x)=>{var k=x(5108);const w=x(9742),g=x(645),M=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;O.Buffer=c,O.SlowBuffer=function(V){return+V!=V&&(V=0),c.alloc(+V)},O.INSPECT_MAX_BYTES=50;const a=2147483647;function d(V){if(V>a)throw new RangeError('The value "'+V+'" is invalid for option "size"');const W=new Uint8Array(V);return Object.setPrototypeOf(W,c.prototype),W}function c(V,W,Q){if(typeof V=="number"){if(typeof W=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(V)}return l(V,W,Q)}function l(V,W,Q){if(typeof V=="string")return function(ue,Ne){if(typeof Ne=="string"&&Ne!==""||(Ne="utf8"),!c.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);const we=0|v(ue,Ne);let Me=d(we);const pt=Me.write(ue,Ne);return pt!==we&&(Me=Me.slice(0,pt)),Me}(V,W);if(ArrayBuffer.isView(V))return function(ue){if(ce(ue,Uint8Array)){const Ne=new Uint8Array(ue);return u(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return h(ue)}(V);if(V==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof V);if(ce(V,ArrayBuffer)||V&&ce(V.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ce(V,SharedArrayBuffer)||V&&ce(V.buffer,SharedArrayBuffer)))return u(V,W,Q);if(typeof V=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ge=V.valueOf&&V.valueOf();if(ge!=null&&ge!==V)return c.from(ge,W,Q);const oe=function(ue){if(c.isBuffer(ue)){const Ne=0|y(ue.length),we=d(Ne);return we.length===0||ue.copy(we,0,0,Ne),we}return ue.length!==void 0?typeof ue.length!="number"||fe(ue.length)?d(0):h(ue):ue.type==="Buffer"&&Array.isArray(ue.data)?h(ue.data):void 0}(V);if(oe)return oe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof V[Symbol.toPrimitive]=="function")return c.from(V[Symbol.toPrimitive]("string"),W,Q);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof V)}function p(V){if(typeof V!="number")throw new TypeError('"size" argument must be of type number');if(V<0)throw new RangeError('The value "'+V+'" is invalid for option "size"')}function m(V){return p(V),d(V<0?0:0|y(V))}function h(V){const W=V.length<0?0:0|y(V.length),Q=d(W);for(let ge=0;ge<W;ge+=1)Q[ge]=255&V[ge];return Q}function u(V,W,Q){if(W<0||V.byteLength<W)throw new RangeError('"offset" is outside of buffer bounds');if(V.byteLength<W+(Q||0))throw new RangeError('"length" is outside of buffer bounds');let ge;return ge=W===void 0&&Q===void 0?new Uint8Array(V):Q===void 0?new Uint8Array(V,W):new Uint8Array(V,W,Q),Object.setPrototypeOf(ge,c.prototype),ge}function y(V){if(V>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|V}function v(V,W){if(c.isBuffer(V))return V.length;if(ArrayBuffer.isView(V)||ce(V,ArrayBuffer))return V.byteLength;if(typeof V!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof V);const Q=V.length,ge=arguments.length>2&&arguments[2]===!0;if(!ge&&Q===0)return 0;let oe=!1;for(;;)switch(W){case"ascii":case"latin1":case"binary":return Q;case"utf8":case"utf-8":return J(V).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Q;case"hex":return Q>>>1;case"base64":return ae(V).length;default:if(oe)return ge?-1:J(V).length;W=(""+W).toLowerCase(),oe=!0}}function _(V,W,Q){let ge=!1;if((W===void 0||W<0)&&(W=0),W>this.length||((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)||(Q>>>=0)<=(W>>>=0))return"";for(V||(V="utf8");;)switch(V){case"hex":return t(this,W,Q);case"utf8":case"utf-8":return e(this,W,Q);case"ascii":return i(this,W,Q);case"latin1":case"binary":return n(this,W,Q);case"base64":return ne(this,W,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o(this,W,Q);default:if(ge)throw new TypeError("Unknown encoding: "+V);V=(V+"").toLowerCase(),ge=!0}}function S(V,W,Q){const ge=V[W];V[W]=V[Q],V[Q]=ge}function b(V,W,Q,ge,oe){if(V.length===0)return-1;if(typeof Q=="string"?(ge=Q,Q=0):Q>2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),fe(Q=+Q)&&(Q=oe?0:V.length-1),Q<0&&(Q=V.length+Q),Q>=V.length){if(oe)return-1;Q=V.length-1}else if(Q<0){if(!oe)return-1;Q=0}if(typeof W=="string"&&(W=c.from(W,ge)),c.isBuffer(W))return W.length===0?-1:T(V,W,Q,ge,oe);if(typeof W=="number")return W&=255,typeof Uint8Array.prototype.indexOf=="function"?oe?Uint8Array.prototype.indexOf.call(V,W,Q):Uint8Array.prototype.lastIndexOf.call(V,W,Q):T(V,[W],Q,ge,oe);throw new TypeError("val must be string, number or Buffer")}function T(V,W,Q,ge,oe){let ue,Ne=1,we=V.length,Me=W.length;if(ge!==void 0&&((ge=String(ge).toLowerCase())==="ucs2"||ge==="ucs-2"||ge==="utf16le"||ge==="utf-16le")){if(V.length<2||W.length<2)return-1;Ne=2,we/=2,Me/=2,Q/=2}function pt(ke,je){return Ne===1?ke[je]:ke.readUInt16BE(je*Ne)}if(oe){let ke=-1;for(ue=Q;ue<we;ue++)if(pt(V,ue)===pt(W,ke===-1?0:ue-ke)){if(ke===-1&&(ke=ue),ue-ke+1===Me)return ke*Ne}else ke!==-1&&(ue-=ue-ke),ke=-1}else for(Q+Me>we&&(Q=we-Me),ue=Q;ue>=0;ue--){let ke=!0;for(let je=0;je<Me;je++)if(pt(V,ue+je)!==pt(W,je)){ke=!1;break}if(ke)return ue}return-1}function C(V,W,Q,ge){Q=Number(Q)||0;const oe=V.length-Q;ge?(ge=Number(ge))>oe&&(ge=oe):ge=oe;const ue=W.length;let Ne;for(ge>ue/2&&(ge=ue/2),Ne=0;Ne<ge;++Ne){const we=parseInt(W.substr(2*Ne,2),16);if(fe(we))return Ne;V[Q+Ne]=we}return Ne}function R(V,W,Q,ge){return xe(J(W,V.length-Q),V,Q,ge)}function F(V,W,Q,ge){return xe(function(oe){const ue=[];for(let Ne=0;Ne<oe.length;++Ne)ue.push(255&oe.charCodeAt(Ne));return ue}(W),V,Q,ge)}function X(V,W,Q,ge){return xe(ae(W),V,Q,ge)}function Z(V,W,Q,ge){return xe(function(oe,ue){let Ne,we,Me;const pt=[];for(let ke=0;ke<oe.length&&!((ue-=2)<0);++ke)Ne=oe.charCodeAt(ke),we=Ne>>8,Me=Ne%256,pt.push(Me),pt.push(we);return pt}(W,V.length-Q),V,Q,ge)}function ne(V,W,Q){return W===0&&Q===V.length?w.fromByteArray(V):w.fromByteArray(V.slice(W,Q))}function e(V,W,Q){Q=Math.min(V.length,Q);const ge=[];let oe=W;for(;oe<Q;){const ue=V[oe];let Ne=null,we=ue>239?4:ue>223?3:ue>191?2:1;if(oe+we<=Q){let Me,pt,ke,je;switch(we){case 1:ue<128&&(Ne=ue);break;case 2:Me=V[oe+1],(192&Me)==128&&(je=(31&ue)<<6|63&Me,je>127&&(Ne=je));break;case 3:Me=V[oe+1],pt=V[oe+2],(192&Me)==128&&(192&pt)==128&&(je=(15&ue)<<12|(63&Me)<<6|63&pt,je>2047&&(je<55296||je>57343)&&(Ne=je));break;case 4:Me=V[oe+1],pt=V[oe+2],ke=V[oe+3],(192&Me)==128&&(192&pt)==128&&(192&ke)==128&&(je=(15&ue)<<18|(63&Me)<<12|(63&pt)<<6|63&ke,je>65535&&je<1114112&&(Ne=je))}}Ne===null?(Ne=65533,we=1):Ne>65535&&(Ne-=65536,ge.push(Ne>>>10&1023|55296),Ne=56320|1023&Ne),ge.push(Ne),oe+=we}return function(ue){const Ne=ue.length;if(Ne<=r)return String.fromCharCode.apply(String,ue);let we="",Me=0;for(;Me<Ne;)we+=String.fromCharCode.apply(String,ue.slice(Me,Me+=r));return we}(ge)}O.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const V=new Uint8Array(1),W={foo:function(){return 42}};return Object.setPrototypeOf(W,Uint8Array.prototype),Object.setPrototypeOf(V,W),V.foo()===42}catch(V){return!1}}(),c.TYPED_ARRAY_SUPPORT||k===void 0||typeof k.error!="function"||k.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(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(V,W,Q){return l(V,W,Q)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(V,W,Q){return function(ge,oe,ue){return p(ge),ge<=0?d(ge):oe!==void 0?typeof ue=="string"?d(ge).fill(oe,ue):d(ge).fill(oe):d(ge)}(V,W,Q)},c.allocUnsafe=function(V){return m(V)},c.allocUnsafeSlow=function(V){return m(V)},c.isBuffer=function(V){return V!=null&&V._isBuffer===!0&&V!==c.prototype},c.compare=function(V,W){if(ce(V,Uint8Array)&&(V=c.from(V,V.offset,V.byteLength)),ce(W,Uint8Array)&&(W=c.from(W,W.offset,W.byteLength)),!c.isBuffer(V)||!c.isBuffer(W))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(V===W)return 0;let Q=V.length,ge=W.length;for(let oe=0,ue=Math.min(Q,ge);oe<ue;++oe)if(V[oe]!==W[oe]){Q=V[oe],ge=W[oe];break}return Q<ge?-1:ge<Q?1:0},c.isEncoding=function(V){switch(String(V).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}},c.concat=function(V,W){if(!Array.isArray(V))throw new TypeError('"list" argument must be an Array of Buffers');if(V.length===0)return c.alloc(0);let Q;if(W===void 0)for(W=0,Q=0;Q<V.length;++Q)W+=V[Q].length;const ge=c.allocUnsafe(W);let oe=0;for(Q=0;Q<V.length;++Q){let ue=V[Q];if(ce(ue,Uint8Array))oe+ue.length>ge.length?(c.isBuffer(ue)||(ue=c.from(ue)),ue.copy(ge,oe)):Uint8Array.prototype.set.call(ge,ue,oe);else{if(!c.isBuffer(ue))throw new TypeError('"list" argument must be an Array of Buffers');ue.copy(ge,oe)}oe+=ue.length}return ge},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const V=this.length;if(V%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let W=0;W<V;W+=2)S(this,W,W+1);return this},c.prototype.swap32=function(){const V=this.length;if(V%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let W=0;W<V;W+=4)S(this,W,W+3),S(this,W+1,W+2);return this},c.prototype.swap64=function(){const V=this.length;if(V%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let W=0;W<V;W+=8)S(this,W,W+7),S(this,W+1,W+6),S(this,W+2,W+5),S(this,W+3,W+4);return this},c.prototype.toString=function(){const V=this.length;return V===0?"":arguments.length===0?e(this,0,V):_.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(V){if(!c.isBuffer(V))throw new TypeError("Argument must be a Buffer");return this===V||c.compare(this,V)===0},c.prototype.inspect=function(){let V="";const W=O.INSPECT_MAX_BYTES;return V=this.toString("hex",0,W).replace(/(.{2})/g,"$1 ").trim(),this.length>W&&(V+=" ... "),"<Buffer "+V+">"},M&&(c.prototype[M]=c.prototype.inspect),c.prototype.compare=function(V,W,Q,ge,oe){if(ce(V,Uint8Array)&&(V=c.from(V,V.offset,V.byteLength)),!c.isBuffer(V))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof V);if(W===void 0&&(W=0),Q===void 0&&(Q=V?V.length:0),ge===void 0&&(ge=0),oe===void 0&&(oe=this.length),W<0||Q>V.length||ge<0||oe>this.length)throw new RangeError("out of range index");if(ge>=oe&&W>=Q)return 0;if(ge>=oe)return-1;if(W>=Q)return 1;if(this===V)return 0;let ue=(oe>>>=0)-(ge>>>=0),Ne=(Q>>>=0)-(W>>>=0);const we=Math.min(ue,Ne),Me=this.slice(ge,oe),pt=V.slice(W,Q);for(let ke=0;ke<we;++ke)if(Me[ke]!==pt[ke]){ue=Me[ke],Ne=pt[ke];break}return ue<Ne?-1:Ne<ue?1:0},c.prototype.includes=function(V,W,Q){return this.indexOf(V,W,Q)!==-1},c.prototype.indexOf=function(V,W,Q){return b(this,V,W,Q,!0)},c.prototype.lastIndexOf=function(V,W,Q){return b(this,V,W,Q,!1)},c.prototype.write=function(V,W,Q,ge){if(W===void 0)ge="utf8",Q=this.length,W=0;else if(Q===void 0&&typeof W=="string")ge=W,Q=this.length,W=0;else{if(!isFinite(W))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");W>>>=0,isFinite(Q)?(Q>>>=0,ge===void 0&&(ge="utf8")):(ge=Q,Q=void 0)}const oe=this.length-W;if((Q===void 0||Q>oe)&&(Q=oe),V.length>0&&(Q<0||W<0)||W>this.length)throw new RangeError("Attempt to write outside buffer bounds");ge||(ge="utf8");let ue=!1;for(;;)switch(ge){case"hex":return C(this,V,W,Q);case"utf8":case"utf-8":return R(this,V,W,Q);case"ascii":case"latin1":case"binary":return F(this,V,W,Q);case"base64":return X(this,V,W,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,V,W,Q);default:if(ue)throw new TypeError("Unknown encoding: "+ge);ge=(""+ge).toLowerCase(),ue=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const r=4096;function i(V,W,Q){let ge="";Q=Math.min(V.length,Q);for(let oe=W;oe<Q;++oe)ge+=String.fromCharCode(127&V[oe]);return ge}function n(V,W,Q){let ge="";Q=Math.min(V.length,Q);for(let oe=W;oe<Q;++oe)ge+=String.fromCharCode(V[oe]);return ge}function t(V,W,Q){const ge=V.length;(!W||W<0)&&(W=0),(!Q||Q<0||Q>ge)&&(Q=ge);let oe="";for(let ue=W;ue<Q;++ue)oe+=Te[V[ue]];return oe}function o(V,W,Q){const ge=V.slice(W,Q);let oe="";for(let ue=0;ue<ge.length-1;ue+=2)oe+=String.fromCharCode(ge[ue]+256*ge[ue+1]);return oe}function s(V,W,Q){if(V%1!=0||V<0)throw new RangeError("offset is not uint");if(V+W>Q)throw new RangeError("Trying to access beyond buffer length")}function I(V,W,Q,ge,oe,ue){if(!c.isBuffer(V))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>oe||W<ue)throw new RangeError('"value" argument is out of bounds');if(Q+ge>V.length)throw new RangeError("Index out of range")}function P(V,W,Q,ge,oe){K(W,ge,oe,V,Q,7);let ue=Number(W&BigInt(4294967295));V[Q++]=ue,ue>>=8,V[Q++]=ue,ue>>=8,V[Q++]=ue,ue>>=8,V[Q++]=ue;let Ne=Number(W>>BigInt(32)&BigInt(4294967295));return V[Q++]=Ne,Ne>>=8,V[Q++]=Ne,Ne>>=8,V[Q++]=Ne,Ne>>=8,V[Q++]=Ne,Q}function j(V,W,Q,ge,oe){K(W,ge,oe,V,Q,7);let ue=Number(W&BigInt(4294967295));V[Q+7]=ue,ue>>=8,V[Q+6]=ue,ue>>=8,V[Q+5]=ue,ue>>=8,V[Q+4]=ue;let Ne=Number(W>>BigInt(32)&BigInt(4294967295));return V[Q+3]=Ne,Ne>>=8,V[Q+2]=Ne,Ne>>=8,V[Q+1]=Ne,Ne>>=8,V[Q]=Ne,Q+8}function A(V,W,Q,ge,oe,ue){if(Q+ge>V.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function N(V,W,Q,ge,oe){return W=+W,Q>>>=0,oe||A(V,0,Q,4),g.write(V,W,Q,ge,23,4),Q+4}function L(V,W,Q,ge,oe){return W=+W,Q>>>=0,oe||A(V,0,Q,8),g.write(V,W,Q,ge,52,8),Q+8}c.prototype.slice=function(V,W){const Q=this.length;(V=~~V)<0?(V+=Q)<0&&(V=0):V>Q&&(V=Q),(W=W===void 0?Q:~~W)<0?(W+=Q)<0&&(W=0):W>Q&&(W=Q),W<V&&(W=V);const ge=this.subarray(V,W);return Object.setPrototypeOf(ge,c.prototype),ge},c.prototype.readUintLE=c.prototype.readUIntLE=function(V,W,Q){V>>>=0,W>>>=0,Q||s(V,W,this.length);let ge=this[V],oe=1,ue=0;for(;++ue<W&&(oe*=256);)ge+=this[V+ue]*oe;return ge},c.prototype.readUintBE=c.prototype.readUIntBE=function(V,W,Q){V>>>=0,W>>>=0,Q||s(V,W,this.length);let ge=this[V+--W],oe=1;for(;W>0&&(oe*=256);)ge+=this[V+--W]*oe;return ge},c.prototype.readUint8=c.prototype.readUInt8=function(V,W){return V>>>=0,W||s(V,1,this.length),this[V]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(V,W){return V>>>=0,W||s(V,2,this.length),this[V]|this[V+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(V,W){return V>>>=0,W||s(V,2,this.length),this[V]<<8|this[V+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(V,W){return V>>>=0,W||s(V,4,this.length),(this[V]|this[V+1]<<8|this[V+2]<<16)+16777216*this[V+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(V,W){return V>>>=0,W||s(V,4,this.length),16777216*this[V]+(this[V+1]<<16|this[V+2]<<8|this[V+3])},c.prototype.readBigUInt64LE=ye(function(V){q(V>>>=0,"offset");const W=this[V],Q=this[V+7];W!==void 0&&Q!==void 0||U(V,this.length-8);const ge=W+256*this[++V]+65536*this[++V]+this[++V]*Yi(2,24),oe=this[++V]+256*this[++V]+65536*this[++V]+Q*Yi(2,24);return BigInt(ge)+(BigInt(oe)<<BigInt(32))}),c.prototype.readBigUInt64BE=ye(function(V){q(V>>>=0,"offset");const W=this[V],Q=this[V+7];W!==void 0&&Q!==void 0||U(V,this.length-8);const ge=W*Yi(2,24)+65536*this[++V]+256*this[++V]+this[++V],oe=this[++V]*Yi(2,24)+65536*this[++V]+256*this[++V]+Q;return(BigInt(ge)<<BigInt(32))+BigInt(oe)}),c.prototype.readIntLE=function(V,W,Q){V>>>=0,W>>>=0,Q||s(V,W,this.length);let ge=this[V],oe=1,ue=0;for(;++ue<W&&(oe*=256);)ge+=this[V+ue]*oe;return oe*=128,ge>=oe&&(ge-=Math.pow(2,8*W)),ge},c.prototype.readIntBE=function(V,W,Q){V>>>=0,W>>>=0,Q||s(V,W,this.length);let ge=W,oe=1,ue=this[V+--ge];for(;ge>0&&(oe*=256);)ue+=this[V+--ge]*oe;return oe*=128,ue>=oe&&(ue-=Math.pow(2,8*W)),ue},c.prototype.readInt8=function(V,W){return V>>>=0,W||s(V,1,this.length),128&this[V]?-1*(255-this[V]+1):this[V]},c.prototype.readInt16LE=function(V,W){V>>>=0,W||s(V,2,this.length);const Q=this[V]|this[V+1]<<8;return 32768&Q?4294901760|Q:Q},c.prototype.readInt16BE=function(V,W){V>>>=0,W||s(V,2,this.length);const Q=this[V+1]|this[V]<<8;return 32768&Q?4294901760|Q:Q},c.prototype.readInt32LE=function(V,W){return V>>>=0,W||s(V,4,this.length),this[V]|this[V+1]<<8|this[V+2]<<16|this[V+3]<<24},c.prototype.readInt32BE=function(V,W){return V>>>=0,W||s(V,4,this.length),this[V]<<24|this[V+1]<<16|this[V+2]<<8|this[V+3]},c.prototype.readBigInt64LE=ye(function(V){q(V>>>=0,"offset");const W=this[V],Q=this[V+7];W!==void 0&&Q!==void 0||U(V,this.length-8);const ge=this[V+4]+256*this[V+5]+65536*this[V+6]+(Q<<24);return(BigInt(ge)<<BigInt(32))+BigInt(W+256*this[++V]+65536*this[++V]+this[++V]*16777216)}),c.prototype.readBigInt64BE=ye(function(V){q(V>>>=0,"offset");const W=this[V],Q=this[V+7];W!==void 0&&Q!==void 0||U(V,this.length-8);const ge=(W<<24)+65536*this[++V]+256*this[++V]+this[++V];return(BigInt(ge)<<BigInt(32))+BigInt(this[++V]*16777216+65536*this[++V]+256*this[++V]+Q)}),c.prototype.readFloatLE=function(V,W){return V>>>=0,W||s(V,4,this.length),g.read(this,V,!0,23,4)},c.prototype.readFloatBE=function(V,W){return V>>>=0,W||s(V,4,this.length),g.read(this,V,!1,23,4)},c.prototype.readDoubleLE=function(V,W){return V>>>=0,W||s(V,8,this.length),g.read(this,V,!0,52,8)},c.prototype.readDoubleBE=function(V,W){return V>>>=0,W||s(V,8,this.length),g.read(this,V,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(V,W,Q,ge){V=+V,W>>>=0,Q>>>=0,ge||I(this,V,W,Q,Math.pow(2,8*Q)-1,0);let oe=1,ue=0;for(this[W]=255&V;++ue<Q&&(oe*=256);)this[W+ue]=V/oe&255;return W+Q},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(V,W,Q,ge){V=+V,W>>>=0,Q>>>=0,ge||I(this,V,W,Q,Math.pow(2,8*Q)-1,0);let oe=Q-1,ue=1;for(this[W+oe]=255&V;--oe>=0&&(ue*=256);)this[W+oe]=V/ue&255;return W+Q},c.prototype.writeUint8=c.prototype.writeUInt8=function(V,W,Q){return V=+V,W>>>=0,Q||I(this,V,W,1,255,0),this[W]=255&V,W+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(V,W,Q){return V=+V,W>>>=0,Q||I(this,V,W,2,65535,0),this[W]=255&V,this[W+1]=V>>>8,W+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(V,W,Q){return V=+V,W>>>=0,Q||I(this,V,W,2,65535,0),this[W]=V>>>8,this[W+1]=255&V,W+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(V,W,Q){return V=+V,W>>>=0,Q||I(this,V,W,4,4294967295,0),this[W+3]=V>>>24,this[W+2]=V>>>16,this[W+1]=V>>>8,this[W]=255&V,W+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(V,W,Q){return V=+V,W>>>=0,Q||I(this,V,W,4,4294967295,0),this[W]=V>>>24,this[W+1]=V>>>16,this[W+2]=V>>>8,this[W+3]=255&V,W+4},c.prototype.writeBigUInt64LE=ye(function(V,W=0){return P(this,V,W,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=ye(function(V,W=0){return j(this,V,W,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(V,W,Q,ge){if(V=+V,W>>>=0,!ge){const we=Math.pow(2,8*Q-1);I(this,V,W,Q,we-1,-we)}let oe=0,ue=1,Ne=0;for(this[W]=255&V;++oe<Q&&(ue*=256);)V<0&&Ne===0&&this[W+oe-1]!==0&&(Ne=1),this[W+oe]=(V/ue>>0)-Ne&255;return W+Q},c.prototype.writeIntBE=function(V,W,Q,ge){if(V=+V,W>>>=0,!ge){const we=Math.pow(2,8*Q-1);I(this,V,W,Q,we-1,-we)}let oe=Q-1,ue=1,Ne=0;for(this[W+oe]=255&V;--oe>=0&&(ue*=256);)V<0&&Ne===0&&this[W+oe+1]!==0&&(Ne=1),this[W+oe]=(V/ue>>0)-Ne&255;return W+Q},c.prototype.writeInt8=function(V,W,Q){return V=+V,W>>>=0,Q||I(this,V,W,1,127,-128),V<0&&(V=255+V+1),this[W]=255&V,W+1},c.prototype.writeInt16LE=function(V,W,Q){return V=+V,W>>>=0,Q||I(this,V,W,2,32767,-32768),this[W]=255&V,this[W+1]=V>>>8,W+2},c.prototype.writeInt16BE=function(V,W,Q){return V=+V,W>>>=0,Q||I(this,V,W,2,32767,-32768),this[W]=V>>>8,this[W+1]=255&V,W+2},c.prototype.writeInt32LE=function(V,W,Q){return V=+V,W>>>=0,Q||I(this,V,W,4,2147483647,-2147483648),this[W]=255&V,this[W+1]=V>>>8,this[W+2]=V>>>16,this[W+3]=V>>>24,W+4},c.prototype.writeInt32BE=function(V,W,Q){return V=+V,W>>>=0,Q||I(this,V,W,4,2147483647,-2147483648),V<0&&(V=4294967295+V+1),this[W]=V>>>24,this[W+1]=V>>>16,this[W+2]=V>>>8,this[W+3]=255&V,W+4},c.prototype.writeBigInt64LE=ye(function(V,W=0){return P(this,V,W,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=ye(function(V,W=0){return j(this,V,W,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(V,W,Q){return N(this,V,W,!0,Q)},c.prototype.writeFloatBE=function(V,W,Q){return N(this,V,W,!1,Q)},c.prototype.writeDoubleLE=function(V,W,Q){return L(this,V,W,!0,Q)},c.prototype.writeDoubleBE=function(V,W,Q){return L(this,V,W,!1,Q)},c.prototype.copy=function(V,W,Q,ge){if(!c.isBuffer(V))throw new TypeError("argument should be a Buffer");if(Q||(Q=0),ge||ge===0||(ge=this.length),W>=V.length&&(W=V.length),W||(W=0),ge>0&&ge<Q&&(ge=Q),ge===Q||V.length===0||this.length===0)return 0;if(W<0)throw new RangeError("targetStart out of bounds");if(Q<0||Q>=this.length)throw new RangeError("Index out of range");if(ge<0)throw new RangeError("sourceEnd out of bounds");ge>this.length&&(ge=this.length),V.length-W<ge-Q&&(ge=V.length-W+Q);const oe=ge-Q;return this===V&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(W,Q,ge):Uint8Array.prototype.set.call(V,this.subarray(Q,ge),W),oe},c.prototype.fill=function(V,W,Q,ge){if(typeof V=="string"){if(typeof W=="string"?(ge=W,W=0,Q=this.length):typeof Q=="string"&&(ge=Q,Q=this.length),ge!==void 0&&typeof ge!="string")throw new TypeError("encoding must be a string");if(typeof ge=="string"&&!c.isEncoding(ge))throw new TypeError("Unknown encoding: "+ge);if(V.length===1){const ue=V.charCodeAt(0);(ge==="utf8"&&ue<128||ge==="latin1")&&(V=ue)}}else typeof V=="number"?V&=255:typeof V=="boolean"&&(V=Number(V));if(W<0||this.length<W||this.length<Q)throw new RangeError("Out of range index");if(Q<=W)return this;let oe;if(W>>>=0,Q=Q===void 0?this.length:Q>>>0,V||(V=0),typeof V=="number")for(oe=W;oe<Q;++oe)this[oe]=V;else{const ue=c.isBuffer(V)?V:c.from(V,ge),Ne=ue.length;if(Ne===0)throw new TypeError('The value "'+V+'" is invalid for argument "value"');for(oe=0;oe<Q-W;++oe)this[oe+W]=ue[oe%Ne]}return this};const z={};function Y(V,W,Q){z[V]=class extends Q{constructor(){super(),Object.defineProperty(this,"message",{value:W.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${V}]`,this.stack,delete this.name}get code(){return V}set code(ge){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ge,writable:!0})}toString(){return`${this.name} [${V}]: ${this.message}`}}}function D(V){let W="",Q=V.length;const ge=V[0]==="-"?1:0;for(;Q>=ge+4;Q-=3)W=`_${V.slice(Q-3,Q)}${W}`;return`${V.slice(0,Q)}${W}`}function K(V,W,Q,ge,oe,ue){if(V>Q||V<W){const Ne=typeof W=="bigint"?"n":"";let we;throw we=ue>3?W===0||W===BigInt(0)?`>= 0${Ne} and < 2${Ne} ** ${8*(ue+1)}${Ne}`:`>= -(2${Ne} ** ${8*(ue+1)-1}${Ne}) and < 2 ** ${8*(ue+1)-1}${Ne}`:`>= ${W}${Ne} and <= ${Q}${Ne}`,new z.ERR_OUT_OF_RANGE("value",we,V)}(function(Ne,we,Me){q(we,"offset"),Ne[we]!==void 0&&Ne[we+Me]!==void 0||U(we,Ne.length-(Me+1))})(ge,oe,ue)}function q(V,W){if(typeof V!="number")throw new z.ERR_INVALID_ARG_TYPE(W,"number",V)}function U(V,W,Q){throw Math.floor(V)!==V?(q(V,Q),new z.ERR_OUT_OF_RANGE(Q||"offset","an integer",V)):W<0?new z.ERR_BUFFER_OUT_OF_BOUNDS:new z.ERR_OUT_OF_RANGE(Q||"offset",`>= ${Q?1:0} and <= ${W}`,V)}Y("ERR_BUFFER_OUT_OF_BOUNDS",function(V){return V?`${V} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Y("ERR_INVALID_ARG_TYPE",function(V,W){return`The "${V}" argument must be of type number. Received type ${typeof W}`},TypeError),Y("ERR_OUT_OF_RANGE",function(V,W,Q){let ge=`The value of "${V}" is out of range.`,oe=Q;return Number.isInteger(Q)&&Math.abs(Q)>4294967296?oe=D(String(Q)):typeof Q=="bigint"&&(oe=String(Q),(Q>Yi(BigInt(2),BigInt(32))||Q<-Yi(BigInt(2),BigInt(32)))&&(oe=D(oe)),oe+="n"),ge+=` It must be ${W}. Received ${oe}`,ge},RangeError);const te=/[^+/0-9A-Za-z-_]/g;function J(V,W){let Q;W=W||1/0;const ge=V.length;let oe=null;const ue=[];for(let Ne=0;Ne<ge;++Ne){if(Q=V.charCodeAt(Ne),Q>55295&&Q<57344){if(!oe){if(Q>56319){(W-=3)>-1&&ue.push(239,191,189);continue}if(Ne+1===ge){(W-=3)>-1&&ue.push(239,191,189);continue}oe=Q;continue}if(Q<56320){(W-=3)>-1&&ue.push(239,191,189),oe=Q;continue}Q=65536+(oe-55296<<10|Q-56320)}else oe&&(W-=3)>-1&&ue.push(239,191,189);if(oe=null,Q<128){if((W-=1)<0)break;ue.push(Q)}else if(Q<2048){if((W-=2)<0)break;ue.push(Q>>6|192,63&Q|128)}else if(Q<65536){if((W-=3)<0)break;ue.push(Q>>12|224,Q>>6&63|128,63&Q|128)}else{if(!(Q<1114112))throw new Error("Invalid code point");if((W-=4)<0)break;ue.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,63&Q|128)}}return ue}function ae(V){return w.toByteArray(function(W){if((W=(W=W.split("=")[0]).trim().replace(te,"")).length<2)return"";for(;W.length%4!=0;)W+="=";return W}(V))}function xe(V,W,Q,ge){let oe;for(oe=0;oe<ge&&!(oe+Q>=W.length||oe>=V.length);++oe)W[oe+Q]=V[oe];return oe}function ce(V,W){return V instanceof W||V!=null&&V.constructor!=null&&V.constructor.name!=null&&V.constructor.name===W.name}function fe(V){return V!=V}const Te=function(){const V="0123456789abcdef",W=new Array(256);for(let Q=0;Q<16;++Q){const ge=16*Q;for(let oe=0;oe<16;++oe)W[ge+oe]=V[Q]+V[oe]}return W}();function ye(V){return typeof BigInt=="undefined"?Ee:V}function Ee(){throw new Error("BigInt not supported")}},584:H=>{H.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},1924:(H,O,x)=>{var k=x(210),w=x(5559),g=w(k("String.prototype.indexOf"));H.exports=function(M,a){var d=k(M,!!a);return typeof d=="function"&&g(M,".prototype.")>-1?w(d):d}},5559:(H,O,x)=>{var k=x(8612),w=x(210),g=w("%Function.prototype.apply%"),M=w("%Function.prototype.call%"),a=w("%Reflect.apply%",!0)||k.call(M,g),d=w("%Object.getOwnPropertyDescriptor%",!0),c=w("%Object.defineProperty%",!0),l=w("%Math.max%");if(c)try{c({},"a",{value:1})}catch(m){c=null}H.exports=function(m){var h=a(k,M,arguments);return d&&c&&d(h,"length").configurable&&c(h,"length",{value:1+l(0,m.length-(arguments.length-1))}),h};var p=function(){return a(k,g,arguments)};c?c(H.exports,"apply",{value:p}):H.exports.apply=p},1027:(H,O,x)=>{var k=x(9509).Buffer,w=x(2830).Transform,g=x(2553).s;function M(a){w.call(this),this.hashMode=typeof a=="string",this.hashMode?this[a]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}x(5717)(M,w),M.prototype.update=function(a,d,c){typeof a=="string"&&(a=k.from(a,d));var l=this._update(a);return this.hashMode?this:(c&&(l=this._toString(l,c)),l)},M.prototype.setAutoPadding=function(){},M.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},M.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},M.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},M.prototype._transform=function(a,d,c){var l;try{this.hashMode?this._update(a):this.push(this._update(a))}catch(p){l=p}finally{c(l)}},M.prototype._flush=function(a){var d;try{this.push(this.__final())}catch(c){d=c}a(d)},M.prototype._finalOrDigest=function(a){var d=this.__final()||k.alloc(0);return a&&(d=this._toString(d,a,!0)),d},M.prototype._toString=function(a,d,c){if(this._decoder||(this._decoder=new g(d),this._encoding=d),this._encoding!==d)throw new Error("can't switch encodings");var l=this._decoder.write(a);return c&&(l+=this._decoder.end()),l},H.exports=M},5108:(H,O,x)=>{var k=x(9539),w=x(9282);function g(){return new Date().getTime()}var M,a=Array.prototype.slice,d={};M=x.g!==void 0&&x.g.console?x.g.console:typeof window!="undefined"&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){M.log.apply(M,arguments)},"info"],[function(){M.log.apply(M,arguments)},"warn"],[function(){M.warn.apply(M,arguments)},"error"],[function(u){d[u]=g()},"time"],[function(u){var y=d[u];if(!y)throw new Error("No such label: "+u);delete d[u];var v=g()-y;M.log(u+": "+v+"ms")},"timeEnd"],[function(){var u=new Error;u.name="Trace",u.message=k.format.apply(null,arguments),M.error(u.stack)},"trace"],[function(u){M.log(k.inspect(u)+`
55
- `)},"dir"],[function(u){if(!u){var y=a.call(arguments,1);w.ok(!1,k.format.apply(null,y))}},"assert"]],l=0;l<c.length;l++){var p=c[l],m=p[0],h=p[1];M[h]||(M[h]=m)}H.exports=M},6393:(H,O,x)=>{var k=x(8764).Buffer,w=x(6266),g=x(6426);H.exports=function(c){return new a(c)};var M={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 a(c){this.curveType=M[c],this.curveType||(this.curveType={name:c}),this.curve=new w.ec(this.curveType.name),this.keys=void 0}function d(c,l,p){Array.isArray(c)||(c=c.toArray());var m=new k(c);if(p&&m.length<p){var h=new k(p-m.length);h.fill(0),m=k.concat([h,m])}return l?m.toString(l):m}M.p224=M.secp224r1,M.p256=M.secp256r1=M.prime256v1,M.p192=M.secp192r1=M.prime192v1,M.p384=M.secp384r1,M.p521=M.secp521r1,a.prototype.generateKeys=function(c,l){return this.keys=this.curve.genKeyPair(),this.getPublicKey(c,l)},a.prototype.computeSecret=function(c,l,p){return l=l||"utf8",k.isBuffer(c)||(c=new k(c,l)),d(this.curve.keyFromPublic(c).getPublic().mul(this.keys.getPrivate()).getX(),p,this.curveType.byteLength)},a.prototype.getPublicKey=function(c,l){var p=this.keys.getPublic(l==="compressed",!0);return l==="hybrid"&&(p[p.length-1]%2?p[0]=7:p[0]=6),d(p,c)},a.prototype.getPrivateKey=function(c){return d(this.keys.getPrivate(),c)},a.prototype.setPublicKey=function(c,l){return l=l||"utf8",k.isBuffer(c)||(c=new k(c,l)),this.keys._importPublic(c),this},a.prototype.setPrivateKey=function(c,l){l=l||"utf8",k.isBuffer(c)||(c=new k(c,l));var p=new g(c);return p=p.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(p),this}},6426:function(H,O,x){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function a(e,r,i){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var d;typeof k=="object"?k.exports=a:w.BN=a,a.BN=a,a.wordSize=26;try{d=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:x(8623).Buffer}catch(e){}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function p(e,r,i,n){for(var t=0,o=Math.min(e.length,i),s=r;s<o;s++){var I=e.charCodeAt(s)-48;t*=n,t+=I>=49?I-49+10:I>=17?I-17+10:I}return t}a.isBN=function(e){return e instanceof a||e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,r){return e.cmp(r)>0?e:r},a.min=function(e,r){return e.cmp(r)<0?e:r},a.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),g(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},a.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(g(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},a.prototype._initArray=function(e,r,i){if(g(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,s=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);return this.strip()},a.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,s=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;this.strip()},a.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,s=o%n,I=Math.min(o,o-s)+i,P=0,j=i;j<I;j+=n)P=p(e,j,j+n,r),this.imuln(t),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(s!==0){var A=1;for(P=p(e,j,e.length,r),j=0;j<s;j++)A*=r;this.imuln(A),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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 y(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],s=t*o,I=67108863&s,P=s/67108864|0;i.words[0]=I;for(var j=1;j<n;j++){for(var A=P>>>26,N=67108863&P,L=Math.min(j,r.length-1),z=Math.max(0,j-e.length+1);z<=L;z++){var Y=j-z|0;A+=(s=(t=0|e.words[Y])*(o=0|r.words[z])+N)/67108864|0,N=67108863&s}i.words[j]=0|N,P=0|A}return P!==0?i.words[j]=0|P:i.length--,i.strip()}a.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var s=this.words[o],I=(16777215&(s<<n|t)).toString(16);i=(t=s>>>24-n&16777215)!=0||o!==this.length-1?m[6-I.length]+I+i:I+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var P=h[e],j=u[e];i="";var A=this.clone();for(A.negative=0;!A.isZero();){var N=A.modn(j).toString(e);i=(A=A.idivn(j)).isZero()?N+i:m[P-N.length]+N+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}g(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&g(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,r){return g(d!==void 0),this.toArrayLike(d,e,r)},a.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},a.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);g(n<=t,"byte array longer than desired length"),g(t>0,"Requested array length <= 0"),this.strip();var o,s,I=r==="le",P=new e(t),j=this.clone();if(I){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[s]=o;for(;s<t;s++)P[s]=0}else{for(s=0;s<t-n;s++)P[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[t-s-1]=o}return P},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},a.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},a.prototype.ior=function(e){return g((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},a.prototype.iand=function(e){return g((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},a.prototype.ixor=function(e){return g((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){g(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,r){g(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},a.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(r=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&r;for(;o!==0&&s<i.length;s++)o=(r=(0|i.words[s])+o)>>26,this.words[s]=67108863&r;if(o===0&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,r,i){var n,t,o,s=e.words,I=r.words,P=i.words,j=0,A=0|s[0],N=8191&A,L=A>>>13,z=0|s[1],Y=8191&z,D=z>>>13,K=0|s[2],q=8191&K,U=K>>>13,te=0|s[3],J=8191&te,ae=te>>>13,xe=0|s[4],ce=8191&xe,fe=xe>>>13,Te=0|s[5],ye=8191&Te,Ee=Te>>>13,V=0|s[6],W=8191&V,Q=V>>>13,ge=0|s[7],oe=8191&ge,ue=ge>>>13,Ne=0|s[8],we=8191&Ne,Me=Ne>>>13,pt=0|s[9],ke=8191&pt,je=pt>>>13,Et=0|I[0],Ie=8191&Et,Xe=Et>>>13,Ct=0|I[1],De=8191&Ct,Ke=Ct>>>13,Nt=0|I[2],Pe=8191&Nt,He=Nt>>>13,vt=0|I[3],Ce=8191&vt,Ze=vt>>>13,St=0|I[4],Re=8191&St,Ge=St>>>13,It=0|I[5],qe=8191&It,Ye=It>>>13,Dt=0|I[6],Le=8191&Dt,et=Dt>>>13,$t=0|I[7],Fe=8191&$t,Qe=$t>>>13,Ut=0|I[8],$e=8191&Ut,nt=Ut>>>13,zt=0|I[9],Ue=8191&zt,tt=zt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(j+(n=Math.imul(N,Ie))|0)+((8191&(t=(t=Math.imul(N,Xe))+Math.imul(L,Ie)|0))<<13)|0;j=((o=Math.imul(L,Xe))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Y,Ie),t=(t=Math.imul(Y,Xe))+Math.imul(D,Ie)|0,o=Math.imul(D,Xe);var Rt=(j+(n=n+Math.imul(N,De)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ke)|0)+Math.imul(L,De)|0))<<13)|0;j=((o=o+Math.imul(L,Ke)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(q,Ie),t=(t=Math.imul(q,Xe))+Math.imul(U,Ie)|0,o=Math.imul(U,Xe),n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Ke)|0;var Zt=(j+(n=n+Math.imul(N,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(N,He)|0)+Math.imul(L,Pe)|0))<<13)|0;j=((o=o+Math.imul(L,He)|0)+(t>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(J,Ie),t=(t=Math.imul(J,Xe))+Math.imul(ae,Ie)|0,o=Math.imul(ae,Xe),n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,He)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,He)|0;var on=(j+(n=n+Math.imul(N,Ce)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ze)|0)+Math.imul(L,Ce)|0))<<13)|0;j=((o=o+Math.imul(L,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(ce,Ie),t=(t=Math.imul(ce,Xe))+Math.imul(fe,Ie)|0,o=Math.imul(fe,Xe),n=n+Math.imul(J,De)|0,t=(t=t+Math.imul(J,Ke)|0)+Math.imul(ae,De)|0,o=o+Math.imul(ae,Ke)|0,n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,He)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,He)|0,n=n+Math.imul(Y,Ce)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(D,Ce)|0,o=o+Math.imul(D,Ze)|0;var tn=(j+(n=n+Math.imul(N,Re)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ge)|0)+Math.imul(L,Re)|0))<<13)|0;j=((o=o+Math.imul(L,Ge)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(ye,Ie),t=(t=Math.imul(ye,Xe))+Math.imul(Ee,Ie)|0,o=Math.imul(Ee,Xe),n=n+Math.imul(ce,De)|0,t=(t=t+Math.imul(ce,Ke)|0)+Math.imul(fe,De)|0,o=o+Math.imul(fe,Ke)|0,n=n+Math.imul(J,Pe)|0,t=(t=t+Math.imul(J,He)|0)+Math.imul(ae,Pe)|0,o=o+Math.imul(ae,He)|0,n=n+Math.imul(q,Ce)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(U,Ce)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ge)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ge)|0;var an=(j+(n=n+Math.imul(N,qe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ye)|0)+Math.imul(L,qe)|0))<<13)|0;j=((o=o+Math.imul(L,Ye)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(W,Ie),t=(t=Math.imul(W,Xe))+Math.imul(Q,Ie)|0,o=Math.imul(Q,Xe),n=n+Math.imul(ye,De)|0,t=(t=t+Math.imul(ye,Ke)|0)+Math.imul(Ee,De)|0,o=o+Math.imul(Ee,Ke)|0,n=n+Math.imul(ce,Pe)|0,t=(t=t+Math.imul(ce,He)|0)+Math.imul(fe,Pe)|0,o=o+Math.imul(fe,He)|0,n=n+Math.imul(J,Ce)|0,t=(t=t+Math.imul(J,Ze)|0)+Math.imul(ae,Ce)|0,o=o+Math.imul(ae,Ze)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ge)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ge)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,Ye)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Ye)|0;var sn=(j+(n=n+Math.imul(N,Le)|0)|0)+((8191&(t=(t=t+Math.imul(N,et)|0)+Math.imul(L,Le)|0))<<13)|0;j=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(sn>>>26)|0,sn&=67108863,n=Math.imul(oe,Ie),t=(t=Math.imul(oe,Xe))+Math.imul(ue,Ie)|0,o=Math.imul(ue,Xe),n=n+Math.imul(W,De)|0,t=(t=t+Math.imul(W,Ke)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(ye,Pe)|0,t=(t=t+Math.imul(ye,He)|0)+Math.imul(Ee,Pe)|0,o=o+Math.imul(Ee,He)|0,n=n+Math.imul(ce,Ce)|0,t=(t=t+Math.imul(ce,Ze)|0)+Math.imul(fe,Ce)|0,o=o+Math.imul(fe,Ze)|0,n=n+Math.imul(J,Re)|0,t=(t=t+Math.imul(J,Ge)|0)+Math.imul(ae,Re)|0,o=o+Math.imul(ae,Ge)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Ye)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Ye)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,et)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,et)|0;var un=(j+(n=n+Math.imul(N,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Qe)|0)+Math.imul(L,Fe)|0))<<13)|0;j=((o=o+Math.imul(L,Qe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(we,Ie),t=(t=Math.imul(we,Xe))+Math.imul(Me,Ie)|0,o=Math.imul(Me,Xe),n=n+Math.imul(oe,De)|0,t=(t=t+Math.imul(oe,Ke)|0)+Math.imul(ue,De)|0,o=o+Math.imul(ue,Ke)|0,n=n+Math.imul(W,Pe)|0,t=(t=t+Math.imul(W,He)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,He)|0,n=n+Math.imul(ye,Ce)|0,t=(t=t+Math.imul(ye,Ze)|0)+Math.imul(Ee,Ce)|0,o=o+Math.imul(Ee,Ze)|0,n=n+Math.imul(ce,Re)|0,t=(t=t+Math.imul(ce,Ge)|0)+Math.imul(fe,Re)|0,o=o+Math.imul(fe,Ge)|0,n=n+Math.imul(J,qe)|0,t=(t=t+Math.imul(J,Ye)|0)+Math.imul(ae,qe)|0,o=o+Math.imul(ae,Ye)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,et)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,et)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,Qe)|0;var cn=(j+(n=n+Math.imul(N,$e)|0)|0)+((8191&(t=(t=t+Math.imul(N,nt)|0)+Math.imul(L,$e)|0))<<13)|0;j=((o=o+Math.imul(L,nt)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(ke,Ie),t=(t=Math.imul(ke,Xe))+Math.imul(je,Ie)|0,o=Math.imul(je,Xe),n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Me,De)|0,o=o+Math.imul(Me,Ke)|0,n=n+Math.imul(oe,Pe)|0,t=(t=t+Math.imul(oe,He)|0)+Math.imul(ue,Pe)|0,o=o+Math.imul(ue,He)|0,n=n+Math.imul(W,Ce)|0,t=(t=t+Math.imul(W,Ze)|0)+Math.imul(Q,Ce)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(ye,Re)|0,t=(t=t+Math.imul(ye,Ge)|0)+Math.imul(Ee,Re)|0,o=o+Math.imul(Ee,Ge)|0,n=n+Math.imul(ce,qe)|0,t=(t=t+Math.imul(ce,Ye)|0)+Math.imul(fe,qe)|0,o=o+Math.imul(fe,Ye)|0,n=n+Math.imul(J,Le)|0,t=(t=t+Math.imul(J,et)|0)+Math.imul(ae,Le)|0,o=o+Math.imul(ae,et)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(Y,$e)|0,t=(t=t+Math.imul(Y,nt)|0)+Math.imul(D,$e)|0,o=o+Math.imul(D,nt)|0;var ln=(j+(n=n+Math.imul(N,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(N,tt)|0)+Math.imul(L,Ue)|0))<<13)|0;j=((o=o+Math.imul(L,tt)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(ke,De),t=(t=Math.imul(ke,Ke))+Math.imul(je,De)|0,o=Math.imul(je,Ke),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,He)|0)+Math.imul(Me,Pe)|0,o=o+Math.imul(Me,He)|0,n=n+Math.imul(oe,Ce)|0,t=(t=t+Math.imul(oe,Ze)|0)+Math.imul(ue,Ce)|0,o=o+Math.imul(ue,Ze)|0,n=n+Math.imul(W,Re)|0,t=(t=t+Math.imul(W,Ge)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ge)|0,n=n+Math.imul(ye,qe)|0,t=(t=t+Math.imul(ye,Ye)|0)+Math.imul(Ee,qe)|0,o=o+Math.imul(Ee,Ye)|0,n=n+Math.imul(ce,Le)|0,t=(t=t+Math.imul(ce,et)|0)+Math.imul(fe,Le)|0,o=o+Math.imul(fe,et)|0,n=n+Math.imul(J,Fe)|0,t=(t=t+Math.imul(J,Qe)|0)+Math.imul(ae,Fe)|0,o=o+Math.imul(ae,Qe)|0,n=n+Math.imul(q,$e)|0,t=(t=t+Math.imul(q,nt)|0)+Math.imul(U,$e)|0,o=o+Math.imul(U,nt)|0;var hn=(j+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,tt)|0)+Math.imul(D,Ue)|0))<<13)|0;j=((o=o+Math.imul(D,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(ke,Pe),t=(t=Math.imul(ke,He))+Math.imul(je,Pe)|0,o=Math.imul(je,He),n=n+Math.imul(we,Ce)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Me,Ce)|0,o=o+Math.imul(Me,Ze)|0,n=n+Math.imul(oe,Re)|0,t=(t=t+Math.imul(oe,Ge)|0)+Math.imul(ue,Re)|0,o=o+Math.imul(ue,Ge)|0,n=n+Math.imul(W,qe)|0,t=(t=t+Math.imul(W,Ye)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,Ye)|0,n=n+Math.imul(ye,Le)|0,t=(t=t+Math.imul(ye,et)|0)+Math.imul(Ee,Le)|0,o=o+Math.imul(Ee,et)|0,n=n+Math.imul(ce,Fe)|0,t=(t=t+Math.imul(ce,Qe)|0)+Math.imul(fe,Fe)|0,o=o+Math.imul(fe,Qe)|0,n=n+Math.imul(J,$e)|0,t=(t=t+Math.imul(J,nt)|0)+Math.imul(ae,$e)|0,o=o+Math.imul(ae,nt)|0;var Gt=(j+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,tt)|0)+Math.imul(U,Ue)|0))<<13)|0;j=((o=o+Math.imul(U,tt)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ke,Ce),t=(t=Math.imul(ke,Ze))+Math.imul(je,Ce)|0,o=Math.imul(je,Ze),n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ge)|0)+Math.imul(Me,Re)|0,o=o+Math.imul(Me,Ge)|0,n=n+Math.imul(oe,qe)|0,t=(t=t+Math.imul(oe,Ye)|0)+Math.imul(ue,qe)|0,o=o+Math.imul(ue,Ye)|0,n=n+Math.imul(W,Le)|0,t=(t=t+Math.imul(W,et)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,et)|0,n=n+Math.imul(ye,Fe)|0,t=(t=t+Math.imul(ye,Qe)|0)+Math.imul(Ee,Fe)|0,o=o+Math.imul(Ee,Qe)|0,n=n+Math.imul(ce,$e)|0,t=(t=t+Math.imul(ce,nt)|0)+Math.imul(fe,$e)|0,o=o+Math.imul(fe,nt)|0;var pn=(j+(n=n+Math.imul(J,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(J,tt)|0)+Math.imul(ae,Ue)|0))<<13)|0;j=((o=o+Math.imul(ae,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(ke,Re),t=(t=Math.imul(ke,Ge))+Math.imul(je,Re)|0,o=Math.imul(je,Ge),n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,Ye)|0)+Math.imul(Me,qe)|0,o=o+Math.imul(Me,Ye)|0,n=n+Math.imul(oe,Le)|0,t=(t=t+Math.imul(oe,et)|0)+Math.imul(ue,Le)|0,o=o+Math.imul(ue,et)|0,n=n+Math.imul(W,Fe)|0,t=(t=t+Math.imul(W,Qe)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(ye,$e)|0,t=(t=t+Math.imul(ye,nt)|0)+Math.imul(Ee,$e)|0,o=o+Math.imul(Ee,nt)|0;var mn=(j+(n=n+Math.imul(ce,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ce,tt)|0)+Math.imul(fe,Ue)|0))<<13)|0;j=((o=o+Math.imul(fe,tt)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863,n=Math.imul(ke,qe),t=(t=Math.imul(ke,Ye))+Math.imul(je,qe)|0,o=Math.imul(je,Ye),n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,et)|0)+Math.imul(Me,Le)|0,o=o+Math.imul(Me,et)|0,n=n+Math.imul(oe,Fe)|0,t=(t=t+Math.imul(oe,Qe)|0)+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Qe)|0,n=n+Math.imul(W,$e)|0,t=(t=t+Math.imul(W,nt)|0)+Math.imul(Q,$e)|0,o=o+Math.imul(Q,nt)|0;var Qt=(j+(n=n+Math.imul(ye,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ye,tt)|0)+Math.imul(Ee,Ue)|0))<<13)|0;j=((o=o+Math.imul(Ee,tt)|0)+(t>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,n=Math.imul(ke,Le),t=(t=Math.imul(ke,et))+Math.imul(je,Le)|0,o=Math.imul(je,et),n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Qe)|0,n=n+Math.imul(oe,$e)|0,t=(t=t+Math.imul(oe,nt)|0)+Math.imul(ue,$e)|0,o=o+Math.imul(ue,nt)|0;var en=(j+(n=n+Math.imul(W,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(W,tt)|0)+Math.imul(Q,Ue)|0))<<13)|0;j=((o=o+Math.imul(Q,tt)|0)+(t>>>13)|0)+(en>>>26)|0,en&=67108863,n=Math.imul(ke,Fe),t=(t=Math.imul(ke,Qe))+Math.imul(je,Fe)|0,o=Math.imul(je,Qe),n=n+Math.imul(we,$e)|0,t=(t=t+Math.imul(we,nt)|0)+Math.imul(Me,$e)|0,o=o+Math.imul(Me,nt)|0;var Yt=(j+(n=n+Math.imul(oe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(oe,tt)|0)+Math.imul(ue,Ue)|0))<<13)|0;j=((o=o+Math.imul(ue,tt)|0)+(t>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(ke,$e),t=(t=Math.imul(ke,nt))+Math.imul(je,$e)|0,o=Math.imul(je,nt);var fn=(j+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,tt)|0)+Math.imul(Me,Ue)|0))<<13)|0;j=((o=o+Math.imul(Me,tt)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863;var nn=(j+(n=Math.imul(ke,Ue))|0)+((8191&(t=(t=Math.imul(ke,tt))+Math.imul(je,Ue)|0))<<13)|0;return j=((o=Math.imul(je,tt))+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,P[0]=Tt,P[1]=Rt,P[2]=Zt,P[3]=on,P[4]=tn,P[5]=an,P[6]=sn,P[7]=un,P[8]=cn,P[9]=ln,P[10]=hn,P[11]=Gt,P[12]=pn,P[13]=mn,P[14]=Qt,P[15]=en,P[16]=Yt,P[17]=fn,P[18]=nn,j!==0&&(P[19]=j,i.length++),i};function _(e,r,i){return new S().mulp(e,r,i)}function S(e,r){this.x=e,this.y=r}Math.imul||(v=y),a.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?y(this,e,r):n<1024?function(t,o,s){s.negative=o.negative^t.negative,s.length=t.length+o.length;for(var I=0,P=0,j=0;j<s.length-1;j++){var A=P;P=0;for(var N=67108863&I,L=Math.min(j,o.length-1),z=Math.max(0,j-t.length+1);z<=L;z++){var Y=j-z,D=(0|t.words[Y])*(0|o.words[z]),K=67108863&D;N=67108863&(K=K+N|0),P+=(A=(A=A+(D/67108864|0)|0)+(K>>>26)|0)>>>26,A&=67108863}s.words[j]=N,I=A,A=P}return I!==0?s.words[j]=I:s.length--,s.strip()}(this,e,r):_(this,e,r),i},S.prototype.makeRBT=function(e){for(var r=new Array(e),i=a.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},S.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},S.prototype.permute=function(e,r,i,n,t,o){for(var s=0;s<o;s++)n[s]=r[e[s]],t[s]=i[e[s]]},S.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var s=1;s<t;s<<=1)for(var I=s<<1,P=Math.cos(2*Math.PI/I),j=Math.sin(2*Math.PI/I),A=0;A<t;A+=I)for(var N=P,L=j,z=0;z<s;z++){var Y=i[A+z],D=n[A+z],K=i[A+z+s],q=n[A+z+s],U=N*K-L*q;q=N*q+L*K,K=U,i[A+z]=Y+K,n[A+z]=D+q,i[A+z+s]=Y-K,n[A+z+s]=D-q,z!==I&&(U=P*N-j*L,L=P*L+j*N,N=U)}},S.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},S.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},S.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},S.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;g(t===0),g((-8192&t)==0)},S.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},S.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),s=new Array(n),I=new Array(n),P=new Array(n),j=new Array(n),A=new Array(n),N=new Array(n),L=i.words;L.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(r.words,r.length,j,n),this.transform(s,o,I,P,n,t),this.transform(j,o,A,N,n,t);for(var z=0;z<n;z++){var Y=I[z]*A[z]-P[z]*N[z];P[z]=I[z]*N[z]+P[z]*A[z],I[z]=Y}return this.conjugate(I,P,n),this.transform(I,P,L,o,n,t),this.conjugate(L,o,n),this.normalize13b(L,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},a.prototype.mul=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},a.prototype.mulf=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),_(this,e,r)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){g(typeof e=="number"),g(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var r=function(o){for(var s=new Array(o.bitLength()),I=0;I<s.length;I++){var P=I/26|0,j=I%26;s[I]=(o.words[P]&1<<j)>>>j}return s}(e);if(r.length===0)return new a(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},a.prototype.iushln=function(e){g(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var s=this.words[r]&t,I=(0|this.words[r])-s<<i;this.words[r]=I|o,o=s>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},a.prototype.ishln=function(e){return g(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,r,i){var n;g(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),s=67108863^67108863>>>t<<t,I=i;if(n-=o,n=Math.max(0,n),I){for(var P=0;P<o;P++)I.words[P]=this.words[P];I.length=o}if(o!==0)if(this.length>o)for(this.length-=o,P=0;P<this.length;P++)this.words[P]=this.words[P+o];else this.words[0]=0,this.length=1;var j=0;for(P=this.length-1;P>=0&&(j!==0||P>=n);P--){var A=0|this.words[P];this.words[P]=j<<26-t|A>>>t,j=A&s}return I&&j!==0&&(I.words[I.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,r,i){return g(this.negative===0),this.iushrn(e,r,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},a.prototype.imaskn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return g(typeof e=="number"),g(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(e){if(g(typeof e=="number"),g(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var s=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+s;var I=(0|e.words[n])*r;s=((t-=67108863&I)>>26)-(I/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)s=(t=(0|this.words[n+i])+s)>>26,this.words[n+i]=67108863&t;if(s===0)return this.strip();for(g(s===-1),s=0,n=0;n<this.length;n++)s=(t=-(0|this.words[n])+s)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var s,I=n.length-t.length;if(r!=="mod"){(s=new a(null)).length=I+1,s.words=new Array(s.length);for(var P=0;P<s.length;P++)s.words[P]=0}var j=n.clone()._ishlnsubmul(t,1,I);j.negative===0&&(n=j,s&&(s.words[I]=1));for(var A=I-1;A>=0;A--){var N=67108864*(0|n.words[t.length+A])+(0|n.words[t.length+A-1]);for(N=Math.min(N/o|0,67108863),n._ishlnsubmul(t,N,A);n.negative!==0;)N--,n.negative=0,n._ishlnsubmul(t,1,A),n.isZero()||(n.negative^=1);s&&(s.words[A]=N)}return s&&s.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:s||null,mod:n}},a.prototype.divmod=function(e,r,i){return g(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(e){g(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},a.prototype.idivn=function(e){g(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new a(1),t=new a(0),o=new a(0),s=new a(1),I=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++I;for(var P=i.clone(),j=r.clone();!r.isZero();){for(var A=0,N=1;!(r.words[0]&N)&&A<26;++A,N<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(P),t.isub(j)),n.iushrn(1),t.iushrn(1);for(var L=0,z=1;!(i.words[0]&z)&&L<26;++L,z<<=1);if(L>0)for(i.iushrn(L);L-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(P),s.isub(j)),o.iushrn(1),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(s)):(i.isub(r),o.isub(n),s.isub(t))}return{a:o,b:s,gcd:i.iushln(I)}},a.prototype._invmp=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new a(1),o=new a(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var I=0,P=1;!(r.words[0]&P)&&I<26;++I,P<<=1);if(I>0)for(r.iushrn(I);I-- >0;)t.isOdd()&&t.iadd(s),t.iushrn(1);for(var j=0,A=1;!(i.words[0]&A)&&j<26;++j,A<<=1);if(j>0)for(i.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){g(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var s=0|this.words[o];t=(s+=t)>>>26,s&=67108863,this.words[o]=s}return t!==0&&(this.words[o]=t,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),g(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new Z(e)},a.prototype.toRed=function(e){return g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return g(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return g(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function T(e,r){this.name=e,this.p=new a(r,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function R(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function F(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function X(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Z(e){if(typeof e=="string"){var r=a._prime(e);this.m=r.p,this.prime=r}else g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ne(e){Z.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}T.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},T.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},T.prototype.split=function(e,r){e.iushrn(this.n,0,r)},T.prototype.imulK=function(e){return e.imul(this.k)},M(C,T),C.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var s=0|e.words[t];e.words[t-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},M(R,T),M(F,T),M(X,T),X.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},a._prime=function(e){if(b[e])return b[e];var r;if(e==="k256")r=new C;else if(e==="p224")r=new R;else if(e==="p192")r=new F;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new X}return b[e]=r,r},Z.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},Z.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(e.red&&e.red===r.red,"red works only with red numbers")},Z.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},Z.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Z.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},Z.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},Z.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},Z.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},Z.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},Z.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},Z.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},Z.prototype.isqr=function(e){return this.imul(e,e.clone())},Z.prototype.sqr=function(e){return this.mul(e,e)},Z.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(g(r%2==1),r===3){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);g(!n.isZero());var o=new a(1).toRed(this),s=o.redNeg(),I=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new a(2*P*P).toRed(this);this.pow(P,I).cmp(s)!==0;)P.redIAdd(s);for(var j=this.pow(P,n),A=this.pow(e,n.addn(1).iushrn(1)),N=this.pow(e,n),L=t;N.cmp(o)!==0;){for(var z=N,Y=0;z.cmp(o)!==0;Y++)z=z.redSqr();g(Y<L);var D=this.pow(j,new a(1).iushln(L-Y-1));A=A.redMul(D),j=D.redSqr(),N=N.redMul(j),L=Y}return A},Z.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},Z.prototype.pow=function(e,r){if(r.isZero())return new a(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,s=0,I=r.bitLength()%26;for(I===0&&(I=26),n=r.length-1;n>=0;n--){for(var P=r.words[n],j=I-1;j>=0;j--){var A=P>>j&1;t!==i[0]&&(t=this.sqr(t)),A!==0||o!==0?(o<<=1,o|=A,(++s==4||n===0&&j===0)&&(t=this.mul(t,i[o]),s=0,o=0)):s=0}I=26}return t},Z.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},Z.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},a.mont=function(e){return new ne(e)},M(ne,Z),ne.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ne.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ne.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new a(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=x.nmd(H),this)},3482:(H,O,x)=>{var k=x(5717),w=x(2318),g=x(9785),M=x(9072),a=x(1027);function d(c){a.call(this,"digest"),this._hash=c}k(d,a),d.prototype._update=function(c){this._hash.update(c)},d.prototype._final=function(){return this._hash.digest()},H.exports=function(c){return(c=c.toLowerCase())==="md5"?new w:c==="rmd160"||c==="ripemd160"?new g:new d(M(c))}},8028:(H,O,x)=>{var k=x(2318);H.exports=function(w){return new k().update(w).digest()}},8355:(H,O,x)=>{var k=x(5717),w=x(1031),g=x(1027),M=x(9509).Buffer,a=x(8028),d=x(9785),c=x(9072),l=M.alloc(128);function p(m,h){g.call(this,"digest"),typeof h=="string"&&(h=M.from(h));var u=m==="sha512"||m==="sha384"?128:64;this._alg=m,this._key=h,h.length>u?h=(m==="rmd160"?new d:c(m)).update(h).digest():h.length<u&&(h=M.concat([h,l],u));for(var y=this._ipad=M.allocUnsafe(u),v=this._opad=M.allocUnsafe(u),_=0;_<u;_++)y[_]=54^h[_],v[_]=92^h[_];this._hash=m==="rmd160"?new d:c(m),this._hash.update(y)}k(p,g),p.prototype._update=function(m){this._hash.update(m)},p.prototype._final=function(){var m=this._hash.digest();return(this._alg==="rmd160"?new d:c(this._alg)).update(this._opad).update(m).digest()},H.exports=function(m,h){return(m=m.toLowerCase())==="rmd160"||m==="ripemd160"?new p("rmd160",h):m==="md5"?new w(a,h):new p(m,h)}},1031:(H,O,x)=>{var k=x(5717),w=x(9509).Buffer,g=x(1027),M=w.alloc(128),a=64;function d(c,l){g.call(this,"digest"),typeof l=="string"&&(l=w.from(l)),this._alg=c,this._key=l,l.length>a?l=c(l):l.length<a&&(l=w.concat([l,M],a));for(var p=this._ipad=w.allocUnsafe(a),m=this._opad=w.allocUnsafe(a),h=0;h<a;h++)p[h]=54^l[h],m[h]=92^l[h];this._hash=[p]}k(d,g),d.prototype._update=function(c){this._hash.push(c)},d.prototype._final=function(){var c=this._alg(w.concat(this._hash));return this._alg(w.concat([this._opad,c]))},H.exports=d},5835:(H,O,x)=>{O.randomBytes=O.rng=O.pseudoRandomBytes=O.prng=x(1798),O.createHash=O.Hash=x(3482),O.createHmac=O.Hmac=x(8355);var k=x(6042),w=Object.keys(k),g=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(w);O.getHashes=function(){return g};var M=x(5632);O.pbkdf2=M.pbkdf2,O.pbkdf2Sync=M.pbkdf2Sync;var a=x(3614);O.Cipher=a.Cipher,O.createCipher=a.createCipher,O.Cipheriv=a.Cipheriv,O.createCipheriv=a.createCipheriv,O.Decipher=a.Decipher,O.createDecipher=a.createDecipher,O.Decipheriv=a.Decipheriv,O.createDecipheriv=a.createDecipheriv,O.getCiphers=a.getCiphers,O.listCiphers=a.listCiphers;var d=x(2607);O.DiffieHellmanGroup=d.DiffieHellmanGroup,O.createDiffieHellmanGroup=d.createDiffieHellmanGroup,O.getDiffieHellman=d.getDiffieHellman,O.createDiffieHellman=d.createDiffieHellman,O.DiffieHellman=d.DiffieHellman;var c=x(4743);O.createSign=c.createSign,O.Sign=c.Sign,O.createVerify=c.createVerify,O.Verify=c.Verify,O.createECDH=x(6393);var l=x(7900);O.publicEncrypt=l.publicEncrypt,O.privateEncrypt=l.privateEncrypt,O.publicDecrypt=l.publicDecrypt,O.privateDecrypt=l.privateDecrypt;var p=x(7963);O.randomFill=p.randomFill,O.randomFillSync=p.randomFillSync,O.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
56
- `))},O.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}},4020:H=>{var O="%[a-f0-9]{2}",x=new RegExp("("+O+")|([^%]+?)","gi"),k=new RegExp("("+O+")+","gi");function w(M,a){try{return[decodeURIComponent(M.join(""))]}catch(l){}if(M.length===1)return M;a=a||1;var d=M.slice(0,a),c=M.slice(a);return Array.prototype.concat.call([],w(d),w(c))}function g(M){try{return decodeURIComponent(M)}catch(c){for(var a=M.match(x)||[],d=1;d<a.length;d++)a=(M=w(a,d).join("")).match(x)||[];return M}}H.exports=function(M){if(typeof M!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof M+"`");try{return M=M.replace(/\+/g," "),decodeURIComponent(M)}catch(a){return function(d){for(var c={"%FE%FF":"��","%FF%FE":"��"},l=k.exec(d);l;){try{c[l[0]]=decodeURIComponent(l[0])}catch(y){var p=g(l[0]);p!==l[0]&&(c[l[0]]=p)}l=k.exec(d)}c["%C2"]="�";for(var m=Object.keys(c),h=0;h<m.length;h++){var u=m[h];d=d.replace(new RegExp(u,"g"),c[u])}return d}(M)}}},4289:(H,O,x)=>{var k=x(2215),w=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",g=Object.prototype.toString,M=Array.prototype.concat,a=Object.defineProperty,d=x(1044)(),c=a&&d,l=function(m,h,u,y){if(h in m){if(y===!0){if(m[h]===u)return}else if(typeof(v=y)!="function"||g.call(v)!=="[object Function]"||!y())return}var v;c?a(m,h,{configurable:!0,enumerable:!1,value:u,writable:!0}):m[h]=u},p=function(m,h){var u=arguments.length>2?arguments[2]:{},y=k(h);w&&(y=M.call(y,Object.getOwnPropertySymbols(h)));for(var v=0;v<y.length;v+=1)l(m,y[v],h[y[v]],u[y[v]])};p.supportsDescriptors=!!c,H.exports=p},5251:(H,O,x)=>{O.utils=x(1278),O.Cipher=x(5756),O.DES=x(778),O.CBC=x(9051),O.EDE=x(651)},9051:(H,O,x)=>{var k=x(9746),w=x(5717),g={};function M(a){k.equal(a.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d<this.iv.length;d++)this.iv[d]=a[d]}O.instantiate=function(a){function d(m){a.call(this,m),this._cbcInit()}w(d,a);for(var c=Object.keys(g),l=0;l<c.length;l++){var p=c[l];d.prototype[p]=g[p]}return d.create=function(m){return new d(m)},d},g._cbcInit=function(){var a=new M(this.options.iv);this._cbcState=a},g._update=function(a,d,c,l){var p=this._cbcState,m=this.constructor.super_.prototype,h=p.iv;if(this.type==="encrypt"){for(var u=0;u<this.blockSize;u++)h[u]^=a[d+u];for(m._update.call(this,h,0,c,l),u=0;u<this.blockSize;u++)h[u]=c[l+u]}else{for(m._update.call(this,a,d,c,l),u=0;u<this.blockSize;u++)c[l+u]^=h[u];for(u=0;u<this.blockSize;u++)h[u]=a[d+u]}}},5756:(H,O,x)=>{var k=x(9746);function w(g){this.options=g,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}H.exports=w,w.prototype._init=function(){},w.prototype.update=function(g){return g.length===0?[]:this.type==="decrypt"?this._updateDecrypt(g):this._updateEncrypt(g)},w.prototype._buffer=function(g,M){for(var a=Math.min(this.buffer.length-this.bufferOff,g.length-M),d=0;d<a;d++)this.buffer[this.bufferOff+d]=g[M+d];return this.bufferOff+=a,a},w.prototype._flushBuffer=function(g,M){return this._update(this.buffer,0,g,M),this.bufferOff=0,this.blockSize},w.prototype._updateEncrypt=function(g){var M=0,a=0,d=(this.bufferOff+g.length)/this.blockSize|0,c=new Array(d*this.blockSize);this.bufferOff!==0&&(M+=this._buffer(g,M),this.bufferOff===this.buffer.length&&(a+=this._flushBuffer(c,a)));for(var l=g.length-(g.length-M)%this.blockSize;M<l;M+=this.blockSize)this._update(g,M,c,a),a+=this.blockSize;for(;M<g.length;M++,this.bufferOff++)this.buffer[this.bufferOff]=g[M];return c},w.prototype._updateDecrypt=function(g){for(var M=0,a=0,d=Math.ceil((this.bufferOff+g.length)/this.blockSize)-1,c=new Array(d*this.blockSize);d>0;d--)M+=this._buffer(g,M),a+=this._flushBuffer(c,a);return M+=this._buffer(g,M),c},w.prototype.final=function(g){var M,a;return g&&(M=this.update(g)),a=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),M?M.concat(a):a},w.prototype._pad=function(g,M){if(M===0)return!1;for(;M<g.length;)g[M++]=0;return!0},w.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var g=new Array(this.blockSize);return this._update(this.buffer,0,g,0),g},w.prototype._unpad=function(g){return g},w.prototype._finalDecrypt=function(){k.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var g=new Array(this.blockSize);return this._flushBuffer(g,0),this._unpad(g)}},778:(H,O,x)=>{var k=x(9746),w=x(5717),g=x(1278),M=x(5756);function a(){this.tmp=new Array(2),this.keys=null}function d(l){M.call(this,l);var p=new a;this._desState=p,this.deriveKeys(p,l.key)}w(d,M),H.exports=d,d.create=function(l){return new d(l)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];d.prototype.deriveKeys=function(l,p){l.keys=new Array(32),k.equal(p.length,this.blockSize,"Invalid key length");var m=g.readUInt32BE(p,0),h=g.readUInt32BE(p,4);g.pc1(m,h,l.tmp,0),m=l.tmp[0],h=l.tmp[1];for(var u=0;u<l.keys.length;u+=2){var y=c[u>>>1];m=g.r28shl(m,y),h=g.r28shl(h,y),g.pc2(m,h,l.keys,u)}},d.prototype._update=function(l,p,m,h){var u=this._desState,y=g.readUInt32BE(l,p),v=g.readUInt32BE(l,p+4);g.ip(y,v,u.tmp,0),y=u.tmp[0],v=u.tmp[1],this.type==="encrypt"?this._encrypt(u,y,v,u.tmp,0):this._decrypt(u,y,v,u.tmp,0),y=u.tmp[0],v=u.tmp[1],g.writeUInt32BE(m,y,h),g.writeUInt32BE(m,v,h+4)},d.prototype._pad=function(l,p){for(var m=l.length-p,h=p;h<l.length;h++)l[h]=m;return!0},d.prototype._unpad=function(l){for(var p=l[l.length-1],m=l.length-p;m<l.length;m++)k.equal(l[m],p);return l.slice(0,l.length-p)},d.prototype._encrypt=function(l,p,m,h,u){for(var y=p,v=m,_=0;_<l.keys.length;_+=2){var S=l.keys[_],b=l.keys[_+1];g.expand(v,l.tmp,0),S^=l.tmp[0],b^=l.tmp[1];var T=g.substitute(S,b),C=v;v=(y^g.permute(T))>>>0,y=C}g.rip(v,y,h,u)},d.prototype._decrypt=function(l,p,m,h,u){for(var y=m,v=p,_=l.keys.length-2;_>=0;_-=2){var S=l.keys[_],b=l.keys[_+1];g.expand(y,l.tmp,0),S^=l.tmp[0],b^=l.tmp[1];var T=g.substitute(S,b),C=y;y=(v^g.permute(T))>>>0,v=C}g.rip(y,v,h,u)}},651:(H,O,x)=>{var k=x(9746),w=x(5717),g=x(5756),M=x(778);function a(c,l){k.equal(l.length,24,"Invalid key length");var p=l.slice(0,8),m=l.slice(8,16),h=l.slice(16,24);this.ciphers=c==="encrypt"?[M.create({type:"encrypt",key:p}),M.create({type:"decrypt",key:m}),M.create({type:"encrypt",key:h})]:[M.create({type:"decrypt",key:h}),M.create({type:"encrypt",key:m}),M.create({type:"decrypt",key:p})]}function d(c){g.call(this,c);var l=new a(this.type,this.options.key);this._edeState=l}w(d,g),H.exports=d,d.create=function(c){return new d(c)},d.prototype._update=function(c,l,p,m){var h=this._edeState;h.ciphers[0]._update(c,l,p,m),h.ciphers[1]._update(p,m,p,m),h.ciphers[2]._update(p,m,p,m)},d.prototype._pad=M.prototype._pad,d.prototype._unpad=M.prototype._unpad},1278:(H,O)=>{O.readUInt32BE=function(g,M){return(g[0+M]<<24|g[1+M]<<16|g[2+M]<<8|g[3+M])>>>0},O.writeUInt32BE=function(g,M,a){g[0+a]=M>>>24,g[1+a]=M>>>16&255,g[2+a]=M>>>8&255,g[3+a]=255&M},O.ip=function(g,M,a,d){for(var c=0,l=0,p=6;p>=0;p-=2){for(var m=0;m<=24;m+=8)c<<=1,c|=M>>>m+p&1;for(m=0;m<=24;m+=8)c<<=1,c|=g>>>m+p&1}for(p=6;p>=0;p-=2){for(m=1;m<=25;m+=8)l<<=1,l|=M>>>m+p&1;for(m=1;m<=25;m+=8)l<<=1,l|=g>>>m+p&1}a[d+0]=c>>>0,a[d+1]=l>>>0},O.rip=function(g,M,a,d){for(var c=0,l=0,p=0;p<4;p++)for(var m=24;m>=0;m-=8)c<<=1,c|=M>>>m+p&1,c<<=1,c|=g>>>m+p&1;for(p=4;p<8;p++)for(m=24;m>=0;m-=8)l<<=1,l|=M>>>m+p&1,l<<=1,l|=g>>>m+p&1;a[d+0]=c>>>0,a[d+1]=l>>>0},O.pc1=function(g,M,a,d){for(var c=0,l=0,p=7;p>=5;p--){for(var m=0;m<=24;m+=8)c<<=1,c|=M>>m+p&1;for(m=0;m<=24;m+=8)c<<=1,c|=g>>m+p&1}for(m=0;m<=24;m+=8)c<<=1,c|=M>>m+p&1;for(p=1;p<=3;p++){for(m=0;m<=24;m+=8)l<<=1,l|=M>>m+p&1;for(m=0;m<=24;m+=8)l<<=1,l|=g>>m+p&1}for(m=0;m<=24;m+=8)l<<=1,l|=g>>m+p&1;a[d+0]=c>>>0,a[d+1]=l>>>0},O.r28shl=function(g,M){return g<<M&268435455|g>>>28-M};var x=[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];O.pc2=function(g,M,a,d){for(var c=0,l=0,p=x.length>>>1,m=0;m<p;m++)c<<=1,c|=g>>>x[m]&1;for(m=p;m<x.length;m++)l<<=1,l|=M>>>x[m]&1;a[d+0]=c>>>0,a[d+1]=l>>>0},O.expand=function(g,M,a){var d=0,c=0;d=(1&g)<<5|g>>>27;for(var l=23;l>=15;l-=4)d<<=6,d|=g>>>l&63;for(l=11;l>=3;l-=4)c|=g>>>l&63,c<<=6;c|=(31&g)<<1|g>>>31,M[a+0]=d>>>0,M[a+1]=c>>>0};var k=[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];O.substitute=function(g,M){for(var a=0,d=0;d<4;d++)a<<=4,a|=k[64*d+(g>>>18-6*d&63)];for(d=0;d<4;d++)a<<=4,a|=k[256+64*d+(M>>>18-6*d&63)];return a>>>0};var w=[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];O.permute=function(g){for(var M=0,a=0;a<w.length;a++)M<<=1,M|=g>>>w[a]&1;return M>>>0},O.padSplit=function(g,M,a){for(var d=g.toString(2);d.length<M;)d="0"+d;for(var c=[],l=0;l<M;l+=a)c.push(d.slice(l,l+a));return c.join(" ")}},2607:(H,O,x)=>{var k=x(8764).Buffer,w=x(3590),g=x(9799),M=x(7426),a={binary:!0,hex:!0,base64:!0};O.DiffieHellmanGroup=O.createDiffieHellmanGroup=O.getDiffieHellman=function(d){var c=new k(g[d].prime,"hex"),l=new k(g[d].gen,"hex");return new M(c,l)},O.createDiffieHellman=O.DiffieHellman=function d(c,l,p,m){return k.isBuffer(l)||a[l]===void 0?d(c,"binary",l,p):(l=l||"binary",m=m||"binary",p=p||new k([2]),k.isBuffer(p)||(p=new k(p,m)),typeof c=="number"?new M(w(c,p),p,!0):(k.isBuffer(c)||(c=new k(c,l)),new M(c,p,!0)))}},7426:(H,O,x)=>{var k=x(8764).Buffer,w=x(3620),g=new(x(3047)),M=new w(24),a=new w(11),d=new w(10),c=new w(3),l=new w(7),p=x(3590),m=x(1798);function h(S,b){return b=b||"utf8",k.isBuffer(S)||(S=new k(S,b)),this._pub=new w(S),this}function u(S,b){return b=b||"utf8",k.isBuffer(S)||(S=new k(S,b)),this._priv=new w(S),this}H.exports=v;var y={};function v(S,b,T){this.setGenerator(b),this.__prime=new w(S),this._prime=w.mont(this.__prime),this._primeLen=S.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,T?(this.setPublicKey=h,this.setPrivateKey=u):this._primeCode=8}function _(S,b){var T=new k(S.toArray());return b?T.toString(b):T}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=function(S,b){var T=b.toString("hex"),C=[T,S.toString(16)].join("_");if(C in y)return y[C];var R,F=0;if(S.isEven()||!p.simpleSieve||!p.fermatTest(S)||!g.test(S))return F+=1,F+=T==="02"||T==="05"?8:4,y[C]=F,F;switch(g.test(S.shrn(1))||(F+=2),T){case"02":S.mod(M).cmp(a)&&(F+=8);break;case"05":(R=S.mod(d)).cmp(c)&&R.cmp(l)&&(F+=8);break;default:F+=4}return y[C]=F,F}(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new w(m(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(S){var b=(S=(S=new w(S)).toRed(this._prime)).redPow(this._priv).fromRed(),T=new k(b.toArray()),C=this.getPrime();if(T.length<C.length){var R=new k(C.length-T.length);R.fill(0),T=k.concat([R,T])}return T},v.prototype.getPublicKey=function(S){return _(this._pub,S)},v.prototype.getPrivateKey=function(S){return _(this._priv,S)},v.prototype.getPrime=function(S){return _(this.__prime,S)},v.prototype.getGenerator=function(S){return _(this._gen,S)},v.prototype.setGenerator=function(S,b){return b=b||"utf8",k.isBuffer(S)||(S=new k(S,b)),this.__gen=S,this._gen=new w(S),this}},3590:(H,O,x)=>{var k=x(1798);H.exports=S,S.simpleSieve=v,S.fermatTest=_;var w=x(3620),g=new w(24),M=new(x(3047)),a=new w(1),d=new w(2),c=new w(5),l=(new w(16),new w(8),new w(10)),p=new w(3),m=(new w(7),new w(11)),h=new w(4),u=(new w(12),null);function y(){if(u!==null)return u;var b=[];b[0]=2;for(var T=1,C=3;C<1048576;C+=2){for(var R=Math.ceil(Math.sqrt(C)),F=0;F<T&&b[F]<=R&&C%b[F]!=0;F++);T!==F&&b[F]<=R||(b[T++]=C)}return u=b,b}function v(b){for(var T=y(),C=0;C<T.length;C++)if(b.modn(T[C])===0)return b.cmpn(T[C])===0;return!0}function _(b){var T=w.mont(b);return d.toRed(T).redPow(b.subn(1)).fromRed().cmpn(1)===0}function S(b,T){if(b<16)return new w(T===2||T===5?[140,123]:[140,39]);var C,R;for(T=new w(T);;){for(C=new w(k(Math.ceil(b/8)));C.bitLength()>b;)C.ishrn(1);if(C.isEven()&&C.iadd(a),C.testn(1)||C.iadd(d),T.cmp(d)){if(!T.cmp(c))for(;C.mod(l).cmp(p);)C.iadd(h)}else for(;C.mod(g).cmp(m);)C.iadd(h);if(v(R=C.shrn(1))&&v(C)&&_(R)&&_(C)&&M.test(R)&&M.test(C))return C}}},3620:function(H,O,x){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function a(e,r,i){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var d;typeof k=="object"?k.exports=a:w.BN=a,a.BN=a,a.wordSize=26;try{d=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:x(7748).Buffer}catch(e){}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function p(e,r,i,n){for(var t=0,o=Math.min(e.length,i),s=r;s<o;s++){var I=e.charCodeAt(s)-48;t*=n,t+=I>=49?I-49+10:I>=17?I-17+10:I}return t}a.isBN=function(e){return e instanceof a||e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,r){return e.cmp(r)>0?e:r},a.min=function(e,r){return e.cmp(r)<0?e:r},a.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),g(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},a.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(g(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},a.prototype._initArray=function(e,r,i){if(g(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,s=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);return this.strip()},a.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,s=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;this.strip()},a.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,s=o%n,I=Math.min(o,o-s)+i,P=0,j=i;j<I;j+=n)P=p(e,j,j+n,r),this.imuln(t),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(s!==0){var A=1;for(P=p(e,j,e.length,r),j=0;j<s;j++)A*=r;this.imuln(A),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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 y(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],s=t*o,I=67108863&s,P=s/67108864|0;i.words[0]=I;for(var j=1;j<n;j++){for(var A=P>>>26,N=67108863&P,L=Math.min(j,r.length-1),z=Math.max(0,j-e.length+1);z<=L;z++){var Y=j-z|0;A+=(s=(t=0|e.words[Y])*(o=0|r.words[z])+N)/67108864|0,N=67108863&s}i.words[j]=0|N,P=0|A}return P!==0?i.words[j]=0|P:i.length--,i.strip()}a.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var s=this.words[o],I=(16777215&(s<<n|t)).toString(16);i=(t=s>>>24-n&16777215)!=0||o!==this.length-1?m[6-I.length]+I+i:I+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var P=h[e],j=u[e];i="";var A=this.clone();for(A.negative=0;!A.isZero();){var N=A.modn(j).toString(e);i=(A=A.idivn(j)).isZero()?N+i:m[P-N.length]+N+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}g(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&g(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,r){return g(d!==void 0),this.toArrayLike(d,e,r)},a.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},a.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);g(n<=t,"byte array longer than desired length"),g(t>0,"Requested array length <= 0"),this.strip();var o,s,I=r==="le",P=new e(t),j=this.clone();if(I){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[s]=o;for(;s<t;s++)P[s]=0}else{for(s=0;s<t-n;s++)P[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[t-s-1]=o}return P},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},a.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},a.prototype.ior=function(e){return g((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},a.prototype.iand=function(e){return g((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},a.prototype.ixor=function(e){return g((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){g(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,r){g(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},a.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(r=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&r;for(;o!==0&&s<i.length;s++)o=(r=(0|i.words[s])+o)>>26,this.words[s]=67108863&r;if(o===0&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,r,i){var n,t,o,s=e.words,I=r.words,P=i.words,j=0,A=0|s[0],N=8191&A,L=A>>>13,z=0|s[1],Y=8191&z,D=z>>>13,K=0|s[2],q=8191&K,U=K>>>13,te=0|s[3],J=8191&te,ae=te>>>13,xe=0|s[4],ce=8191&xe,fe=xe>>>13,Te=0|s[5],ye=8191&Te,Ee=Te>>>13,V=0|s[6],W=8191&V,Q=V>>>13,ge=0|s[7],oe=8191&ge,ue=ge>>>13,Ne=0|s[8],we=8191&Ne,Me=Ne>>>13,pt=0|s[9],ke=8191&pt,je=pt>>>13,Et=0|I[0],Ie=8191&Et,Xe=Et>>>13,Ct=0|I[1],De=8191&Ct,Ke=Ct>>>13,Nt=0|I[2],Pe=8191&Nt,He=Nt>>>13,vt=0|I[3],Ce=8191&vt,Ze=vt>>>13,St=0|I[4],Re=8191&St,Ge=St>>>13,It=0|I[5],qe=8191&It,Ye=It>>>13,Dt=0|I[6],Le=8191&Dt,et=Dt>>>13,$t=0|I[7],Fe=8191&$t,Qe=$t>>>13,Ut=0|I[8],$e=8191&Ut,nt=Ut>>>13,zt=0|I[9],Ue=8191&zt,tt=zt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(j+(n=Math.imul(N,Ie))|0)+((8191&(t=(t=Math.imul(N,Xe))+Math.imul(L,Ie)|0))<<13)|0;j=((o=Math.imul(L,Xe))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Y,Ie),t=(t=Math.imul(Y,Xe))+Math.imul(D,Ie)|0,o=Math.imul(D,Xe);var Rt=(j+(n=n+Math.imul(N,De)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ke)|0)+Math.imul(L,De)|0))<<13)|0;j=((o=o+Math.imul(L,Ke)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(q,Ie),t=(t=Math.imul(q,Xe))+Math.imul(U,Ie)|0,o=Math.imul(U,Xe),n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Ke)|0;var Zt=(j+(n=n+Math.imul(N,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(N,He)|0)+Math.imul(L,Pe)|0))<<13)|0;j=((o=o+Math.imul(L,He)|0)+(t>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(J,Ie),t=(t=Math.imul(J,Xe))+Math.imul(ae,Ie)|0,o=Math.imul(ae,Xe),n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,He)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,He)|0;var on=(j+(n=n+Math.imul(N,Ce)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ze)|0)+Math.imul(L,Ce)|0))<<13)|0;j=((o=o+Math.imul(L,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(ce,Ie),t=(t=Math.imul(ce,Xe))+Math.imul(fe,Ie)|0,o=Math.imul(fe,Xe),n=n+Math.imul(J,De)|0,t=(t=t+Math.imul(J,Ke)|0)+Math.imul(ae,De)|0,o=o+Math.imul(ae,Ke)|0,n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,He)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,He)|0,n=n+Math.imul(Y,Ce)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(D,Ce)|0,o=o+Math.imul(D,Ze)|0;var tn=(j+(n=n+Math.imul(N,Re)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ge)|0)+Math.imul(L,Re)|0))<<13)|0;j=((o=o+Math.imul(L,Ge)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(ye,Ie),t=(t=Math.imul(ye,Xe))+Math.imul(Ee,Ie)|0,o=Math.imul(Ee,Xe),n=n+Math.imul(ce,De)|0,t=(t=t+Math.imul(ce,Ke)|0)+Math.imul(fe,De)|0,o=o+Math.imul(fe,Ke)|0,n=n+Math.imul(J,Pe)|0,t=(t=t+Math.imul(J,He)|0)+Math.imul(ae,Pe)|0,o=o+Math.imul(ae,He)|0,n=n+Math.imul(q,Ce)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(U,Ce)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ge)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ge)|0;var an=(j+(n=n+Math.imul(N,qe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ye)|0)+Math.imul(L,qe)|0))<<13)|0;j=((o=o+Math.imul(L,Ye)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(W,Ie),t=(t=Math.imul(W,Xe))+Math.imul(Q,Ie)|0,o=Math.imul(Q,Xe),n=n+Math.imul(ye,De)|0,t=(t=t+Math.imul(ye,Ke)|0)+Math.imul(Ee,De)|0,o=o+Math.imul(Ee,Ke)|0,n=n+Math.imul(ce,Pe)|0,t=(t=t+Math.imul(ce,He)|0)+Math.imul(fe,Pe)|0,o=o+Math.imul(fe,He)|0,n=n+Math.imul(J,Ce)|0,t=(t=t+Math.imul(J,Ze)|0)+Math.imul(ae,Ce)|0,o=o+Math.imul(ae,Ze)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ge)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ge)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,Ye)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Ye)|0;var sn=(j+(n=n+Math.imul(N,Le)|0)|0)+((8191&(t=(t=t+Math.imul(N,et)|0)+Math.imul(L,Le)|0))<<13)|0;j=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(sn>>>26)|0,sn&=67108863,n=Math.imul(oe,Ie),t=(t=Math.imul(oe,Xe))+Math.imul(ue,Ie)|0,o=Math.imul(ue,Xe),n=n+Math.imul(W,De)|0,t=(t=t+Math.imul(W,Ke)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(ye,Pe)|0,t=(t=t+Math.imul(ye,He)|0)+Math.imul(Ee,Pe)|0,o=o+Math.imul(Ee,He)|0,n=n+Math.imul(ce,Ce)|0,t=(t=t+Math.imul(ce,Ze)|0)+Math.imul(fe,Ce)|0,o=o+Math.imul(fe,Ze)|0,n=n+Math.imul(J,Re)|0,t=(t=t+Math.imul(J,Ge)|0)+Math.imul(ae,Re)|0,o=o+Math.imul(ae,Ge)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Ye)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Ye)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,et)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,et)|0;var un=(j+(n=n+Math.imul(N,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Qe)|0)+Math.imul(L,Fe)|0))<<13)|0;j=((o=o+Math.imul(L,Qe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(we,Ie),t=(t=Math.imul(we,Xe))+Math.imul(Me,Ie)|0,o=Math.imul(Me,Xe),n=n+Math.imul(oe,De)|0,t=(t=t+Math.imul(oe,Ke)|0)+Math.imul(ue,De)|0,o=o+Math.imul(ue,Ke)|0,n=n+Math.imul(W,Pe)|0,t=(t=t+Math.imul(W,He)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,He)|0,n=n+Math.imul(ye,Ce)|0,t=(t=t+Math.imul(ye,Ze)|0)+Math.imul(Ee,Ce)|0,o=o+Math.imul(Ee,Ze)|0,n=n+Math.imul(ce,Re)|0,t=(t=t+Math.imul(ce,Ge)|0)+Math.imul(fe,Re)|0,o=o+Math.imul(fe,Ge)|0,n=n+Math.imul(J,qe)|0,t=(t=t+Math.imul(J,Ye)|0)+Math.imul(ae,qe)|0,o=o+Math.imul(ae,Ye)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,et)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,et)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,Qe)|0;var cn=(j+(n=n+Math.imul(N,$e)|0)|0)+((8191&(t=(t=t+Math.imul(N,nt)|0)+Math.imul(L,$e)|0))<<13)|0;j=((o=o+Math.imul(L,nt)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(ke,Ie),t=(t=Math.imul(ke,Xe))+Math.imul(je,Ie)|0,o=Math.imul(je,Xe),n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Me,De)|0,o=o+Math.imul(Me,Ke)|0,n=n+Math.imul(oe,Pe)|0,t=(t=t+Math.imul(oe,He)|0)+Math.imul(ue,Pe)|0,o=o+Math.imul(ue,He)|0,n=n+Math.imul(W,Ce)|0,t=(t=t+Math.imul(W,Ze)|0)+Math.imul(Q,Ce)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(ye,Re)|0,t=(t=t+Math.imul(ye,Ge)|0)+Math.imul(Ee,Re)|0,o=o+Math.imul(Ee,Ge)|0,n=n+Math.imul(ce,qe)|0,t=(t=t+Math.imul(ce,Ye)|0)+Math.imul(fe,qe)|0,o=o+Math.imul(fe,Ye)|0,n=n+Math.imul(J,Le)|0,t=(t=t+Math.imul(J,et)|0)+Math.imul(ae,Le)|0,o=o+Math.imul(ae,et)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(Y,$e)|0,t=(t=t+Math.imul(Y,nt)|0)+Math.imul(D,$e)|0,o=o+Math.imul(D,nt)|0;var ln=(j+(n=n+Math.imul(N,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(N,tt)|0)+Math.imul(L,Ue)|0))<<13)|0;j=((o=o+Math.imul(L,tt)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(ke,De),t=(t=Math.imul(ke,Ke))+Math.imul(je,De)|0,o=Math.imul(je,Ke),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,He)|0)+Math.imul(Me,Pe)|0,o=o+Math.imul(Me,He)|0,n=n+Math.imul(oe,Ce)|0,t=(t=t+Math.imul(oe,Ze)|0)+Math.imul(ue,Ce)|0,o=o+Math.imul(ue,Ze)|0,n=n+Math.imul(W,Re)|0,t=(t=t+Math.imul(W,Ge)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ge)|0,n=n+Math.imul(ye,qe)|0,t=(t=t+Math.imul(ye,Ye)|0)+Math.imul(Ee,qe)|0,o=o+Math.imul(Ee,Ye)|0,n=n+Math.imul(ce,Le)|0,t=(t=t+Math.imul(ce,et)|0)+Math.imul(fe,Le)|0,o=o+Math.imul(fe,et)|0,n=n+Math.imul(J,Fe)|0,t=(t=t+Math.imul(J,Qe)|0)+Math.imul(ae,Fe)|0,o=o+Math.imul(ae,Qe)|0,n=n+Math.imul(q,$e)|0,t=(t=t+Math.imul(q,nt)|0)+Math.imul(U,$e)|0,o=o+Math.imul(U,nt)|0;var hn=(j+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,tt)|0)+Math.imul(D,Ue)|0))<<13)|0;j=((o=o+Math.imul(D,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(ke,Pe),t=(t=Math.imul(ke,He))+Math.imul(je,Pe)|0,o=Math.imul(je,He),n=n+Math.imul(we,Ce)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Me,Ce)|0,o=o+Math.imul(Me,Ze)|0,n=n+Math.imul(oe,Re)|0,t=(t=t+Math.imul(oe,Ge)|0)+Math.imul(ue,Re)|0,o=o+Math.imul(ue,Ge)|0,n=n+Math.imul(W,qe)|0,t=(t=t+Math.imul(W,Ye)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,Ye)|0,n=n+Math.imul(ye,Le)|0,t=(t=t+Math.imul(ye,et)|0)+Math.imul(Ee,Le)|0,o=o+Math.imul(Ee,et)|0,n=n+Math.imul(ce,Fe)|0,t=(t=t+Math.imul(ce,Qe)|0)+Math.imul(fe,Fe)|0,o=o+Math.imul(fe,Qe)|0,n=n+Math.imul(J,$e)|0,t=(t=t+Math.imul(J,nt)|0)+Math.imul(ae,$e)|0,o=o+Math.imul(ae,nt)|0;var Gt=(j+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,tt)|0)+Math.imul(U,Ue)|0))<<13)|0;j=((o=o+Math.imul(U,tt)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ke,Ce),t=(t=Math.imul(ke,Ze))+Math.imul(je,Ce)|0,o=Math.imul(je,Ze),n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ge)|0)+Math.imul(Me,Re)|0,o=o+Math.imul(Me,Ge)|0,n=n+Math.imul(oe,qe)|0,t=(t=t+Math.imul(oe,Ye)|0)+Math.imul(ue,qe)|0,o=o+Math.imul(ue,Ye)|0,n=n+Math.imul(W,Le)|0,t=(t=t+Math.imul(W,et)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,et)|0,n=n+Math.imul(ye,Fe)|0,t=(t=t+Math.imul(ye,Qe)|0)+Math.imul(Ee,Fe)|0,o=o+Math.imul(Ee,Qe)|0,n=n+Math.imul(ce,$e)|0,t=(t=t+Math.imul(ce,nt)|0)+Math.imul(fe,$e)|0,o=o+Math.imul(fe,nt)|0;var pn=(j+(n=n+Math.imul(J,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(J,tt)|0)+Math.imul(ae,Ue)|0))<<13)|0;j=((o=o+Math.imul(ae,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(ke,Re),t=(t=Math.imul(ke,Ge))+Math.imul(je,Re)|0,o=Math.imul(je,Ge),n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,Ye)|0)+Math.imul(Me,qe)|0,o=o+Math.imul(Me,Ye)|0,n=n+Math.imul(oe,Le)|0,t=(t=t+Math.imul(oe,et)|0)+Math.imul(ue,Le)|0,o=o+Math.imul(ue,et)|0,n=n+Math.imul(W,Fe)|0,t=(t=t+Math.imul(W,Qe)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(ye,$e)|0,t=(t=t+Math.imul(ye,nt)|0)+Math.imul(Ee,$e)|0,o=o+Math.imul(Ee,nt)|0;var mn=(j+(n=n+Math.imul(ce,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ce,tt)|0)+Math.imul(fe,Ue)|0))<<13)|0;j=((o=o+Math.imul(fe,tt)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863,n=Math.imul(ke,qe),t=(t=Math.imul(ke,Ye))+Math.imul(je,qe)|0,o=Math.imul(je,Ye),n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,et)|0)+Math.imul(Me,Le)|0,o=o+Math.imul(Me,et)|0,n=n+Math.imul(oe,Fe)|0,t=(t=t+Math.imul(oe,Qe)|0)+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Qe)|0,n=n+Math.imul(W,$e)|0,t=(t=t+Math.imul(W,nt)|0)+Math.imul(Q,$e)|0,o=o+Math.imul(Q,nt)|0;var Qt=(j+(n=n+Math.imul(ye,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ye,tt)|0)+Math.imul(Ee,Ue)|0))<<13)|0;j=((o=o+Math.imul(Ee,tt)|0)+(t>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,n=Math.imul(ke,Le),t=(t=Math.imul(ke,et))+Math.imul(je,Le)|0,o=Math.imul(je,et),n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Qe)|0,n=n+Math.imul(oe,$e)|0,t=(t=t+Math.imul(oe,nt)|0)+Math.imul(ue,$e)|0,o=o+Math.imul(ue,nt)|0;var en=(j+(n=n+Math.imul(W,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(W,tt)|0)+Math.imul(Q,Ue)|0))<<13)|0;j=((o=o+Math.imul(Q,tt)|0)+(t>>>13)|0)+(en>>>26)|0,en&=67108863,n=Math.imul(ke,Fe),t=(t=Math.imul(ke,Qe))+Math.imul(je,Fe)|0,o=Math.imul(je,Qe),n=n+Math.imul(we,$e)|0,t=(t=t+Math.imul(we,nt)|0)+Math.imul(Me,$e)|0,o=o+Math.imul(Me,nt)|0;var Yt=(j+(n=n+Math.imul(oe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(oe,tt)|0)+Math.imul(ue,Ue)|0))<<13)|0;j=((o=o+Math.imul(ue,tt)|0)+(t>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(ke,$e),t=(t=Math.imul(ke,nt))+Math.imul(je,$e)|0,o=Math.imul(je,nt);var fn=(j+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,tt)|0)+Math.imul(Me,Ue)|0))<<13)|0;j=((o=o+Math.imul(Me,tt)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863;var nn=(j+(n=Math.imul(ke,Ue))|0)+((8191&(t=(t=Math.imul(ke,tt))+Math.imul(je,Ue)|0))<<13)|0;return j=((o=Math.imul(je,tt))+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,P[0]=Tt,P[1]=Rt,P[2]=Zt,P[3]=on,P[4]=tn,P[5]=an,P[6]=sn,P[7]=un,P[8]=cn,P[9]=ln,P[10]=hn,P[11]=Gt,P[12]=pn,P[13]=mn,P[14]=Qt,P[15]=en,P[16]=Yt,P[17]=fn,P[18]=nn,j!==0&&(P[19]=j,i.length++),i};function _(e,r,i){return new S().mulp(e,r,i)}function S(e,r){this.x=e,this.y=r}Math.imul||(v=y),a.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?y(this,e,r):n<1024?function(t,o,s){s.negative=o.negative^t.negative,s.length=t.length+o.length;for(var I=0,P=0,j=0;j<s.length-1;j++){var A=P;P=0;for(var N=67108863&I,L=Math.min(j,o.length-1),z=Math.max(0,j-t.length+1);z<=L;z++){var Y=j-z,D=(0|t.words[Y])*(0|o.words[z]),K=67108863&D;N=67108863&(K=K+N|0),P+=(A=(A=A+(D/67108864|0)|0)+(K>>>26)|0)>>>26,A&=67108863}s.words[j]=N,I=A,A=P}return I!==0?s.words[j]=I:s.length--,s.strip()}(this,e,r):_(this,e,r),i},S.prototype.makeRBT=function(e){for(var r=new Array(e),i=a.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},S.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},S.prototype.permute=function(e,r,i,n,t,o){for(var s=0;s<o;s++)n[s]=r[e[s]],t[s]=i[e[s]]},S.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var s=1;s<t;s<<=1)for(var I=s<<1,P=Math.cos(2*Math.PI/I),j=Math.sin(2*Math.PI/I),A=0;A<t;A+=I)for(var N=P,L=j,z=0;z<s;z++){var Y=i[A+z],D=n[A+z],K=i[A+z+s],q=n[A+z+s],U=N*K-L*q;q=N*q+L*K,K=U,i[A+z]=Y+K,n[A+z]=D+q,i[A+z+s]=Y-K,n[A+z+s]=D-q,z!==I&&(U=P*N-j*L,L=P*L+j*N,N=U)}},S.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},S.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},S.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},S.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;g(t===0),g((-8192&t)==0)},S.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},S.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),s=new Array(n),I=new Array(n),P=new Array(n),j=new Array(n),A=new Array(n),N=new Array(n),L=i.words;L.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(r.words,r.length,j,n),this.transform(s,o,I,P,n,t),this.transform(j,o,A,N,n,t);for(var z=0;z<n;z++){var Y=I[z]*A[z]-P[z]*N[z];P[z]=I[z]*N[z]+P[z]*A[z],I[z]=Y}return this.conjugate(I,P,n),this.transform(I,P,L,o,n,t),this.conjugate(L,o,n),this.normalize13b(L,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},a.prototype.mul=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},a.prototype.mulf=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),_(this,e,r)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){g(typeof e=="number"),g(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var r=function(o){for(var s=new Array(o.bitLength()),I=0;I<s.length;I++){var P=I/26|0,j=I%26;s[I]=(o.words[P]&1<<j)>>>j}return s}(e);if(r.length===0)return new a(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},a.prototype.iushln=function(e){g(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var s=this.words[r]&t,I=(0|this.words[r])-s<<i;this.words[r]=I|o,o=s>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},a.prototype.ishln=function(e){return g(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,r,i){var n;g(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),s=67108863^67108863>>>t<<t,I=i;if(n-=o,n=Math.max(0,n),I){for(var P=0;P<o;P++)I.words[P]=this.words[P];I.length=o}if(o!==0)if(this.length>o)for(this.length-=o,P=0;P<this.length;P++)this.words[P]=this.words[P+o];else this.words[0]=0,this.length=1;var j=0;for(P=this.length-1;P>=0&&(j!==0||P>=n);P--){var A=0|this.words[P];this.words[P]=j<<26-t|A>>>t,j=A&s}return I&&j!==0&&(I.words[I.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,r,i){return g(this.negative===0),this.iushrn(e,r,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},a.prototype.imaskn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return g(typeof e=="number"),g(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(e){if(g(typeof e=="number"),g(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var s=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+s;var I=(0|e.words[n])*r;s=((t-=67108863&I)>>26)-(I/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)s=(t=(0|this.words[n+i])+s)>>26,this.words[n+i]=67108863&t;if(s===0)return this.strip();for(g(s===-1),s=0,n=0;n<this.length;n++)s=(t=-(0|this.words[n])+s)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var s,I=n.length-t.length;if(r!=="mod"){(s=new a(null)).length=I+1,s.words=new Array(s.length);for(var P=0;P<s.length;P++)s.words[P]=0}var j=n.clone()._ishlnsubmul(t,1,I);j.negative===0&&(n=j,s&&(s.words[I]=1));for(var A=I-1;A>=0;A--){var N=67108864*(0|n.words[t.length+A])+(0|n.words[t.length+A-1]);for(N=Math.min(N/o|0,67108863),n._ishlnsubmul(t,N,A);n.negative!==0;)N--,n.negative=0,n._ishlnsubmul(t,1,A),n.isZero()||(n.negative^=1);s&&(s.words[A]=N)}return s&&s.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:s||null,mod:n}},a.prototype.divmod=function(e,r,i){return g(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(e){g(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},a.prototype.idivn=function(e){g(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new a(1),t=new a(0),o=new a(0),s=new a(1),I=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++I;for(var P=i.clone(),j=r.clone();!r.isZero();){for(var A=0,N=1;!(r.words[0]&N)&&A<26;++A,N<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(P),t.isub(j)),n.iushrn(1),t.iushrn(1);for(var L=0,z=1;!(i.words[0]&z)&&L<26;++L,z<<=1);if(L>0)for(i.iushrn(L);L-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(P),s.isub(j)),o.iushrn(1),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(s)):(i.isub(r),o.isub(n),s.isub(t))}return{a:o,b:s,gcd:i.iushln(I)}},a.prototype._invmp=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new a(1),o=new a(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var I=0,P=1;!(r.words[0]&P)&&I<26;++I,P<<=1);if(I>0)for(r.iushrn(I);I-- >0;)t.isOdd()&&t.iadd(s),t.iushrn(1);for(var j=0,A=1;!(i.words[0]&A)&&j<26;++j,A<<=1);if(j>0)for(i.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){g(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var s=0|this.words[o];t=(s+=t)>>>26,s&=67108863,this.words[o]=s}return t!==0&&(this.words[o]=t,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),g(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new Z(e)},a.prototype.toRed=function(e){return g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return g(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return g(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function T(e,r){this.name=e,this.p=new a(r,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function R(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function F(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function X(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Z(e){if(typeof e=="string"){var r=a._prime(e);this.m=r.p,this.prime=r}else g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ne(e){Z.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}T.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},T.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},T.prototype.split=function(e,r){e.iushrn(this.n,0,r)},T.prototype.imulK=function(e){return e.imul(this.k)},M(C,T),C.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var s=0|e.words[t];e.words[t-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},M(R,T),M(F,T),M(X,T),X.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},a._prime=function(e){if(b[e])return b[e];var r;if(e==="k256")r=new C;else if(e==="p224")r=new R;else if(e==="p192")r=new F;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new X}return b[e]=r,r},Z.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},Z.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(e.red&&e.red===r.red,"red works only with red numbers")},Z.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},Z.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Z.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},Z.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},Z.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},Z.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},Z.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},Z.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},Z.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},Z.prototype.isqr=function(e){return this.imul(e,e.clone())},Z.prototype.sqr=function(e){return this.mul(e,e)},Z.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(g(r%2==1),r===3){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);g(!n.isZero());var o=new a(1).toRed(this),s=o.redNeg(),I=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new a(2*P*P).toRed(this);this.pow(P,I).cmp(s)!==0;)P.redIAdd(s);for(var j=this.pow(P,n),A=this.pow(e,n.addn(1).iushrn(1)),N=this.pow(e,n),L=t;N.cmp(o)!==0;){for(var z=N,Y=0;z.cmp(o)!==0;Y++)z=z.redSqr();g(Y<L);var D=this.pow(j,new a(1).iushln(L-Y-1));A=A.redMul(D),j=D.redSqr(),N=N.redMul(j),L=Y}return A},Z.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},Z.prototype.pow=function(e,r){if(r.isZero())return new a(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,s=0,I=r.bitLength()%26;for(I===0&&(I=26),n=r.length-1;n>=0;n--){for(var P=r.words[n],j=I-1;j>=0;j--){var A=P>>j&1;t!==i[0]&&(t=this.sqr(t)),A!==0||o!==0?(o<<=1,o|=A,(++s==4||n===0&&j===0)&&(t=this.mul(t,i[o]),s=0,o=0)):s=0}I=26}return t},Z.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},Z.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},a.mont=function(e){return new ne(e)},M(ne,Z),ne.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ne.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ne.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new a(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=x.nmd(H),this)},6266:(H,O,x)=>{var k=O;k.version=x(8597).i8,k.utils=x(953),k.rand=x(9931),k.curve=x(8254),k.curves=x(5427),k.ec=x(7954),k.eddsa=x(5980)},4918:(H,O,x)=>{var k=x(3785),w=x(953),g=w.getNAF,M=w.getJSF,a=w.assert;function d(l,p){this.type=l,this.p=new k(p.p,16),this.red=p.prime?k.red(p.prime):k.mont(this.p),this.zero=new k(0).toRed(this.red),this.one=new k(1).toRed(this.red),this.two=new k(2).toRed(this.red),this.n=p.n&&new k(p.n,16),this.g=p.g&&this.pointFromJSON(p.g,p.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var m=this.n&&this.p.div(this.n);!m||m.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(l,p){this.curve=l,this.type=p,this.precomputed=null}H.exports=d,d.prototype.point=function(){throw new Error("Not implemented")},d.prototype.validate=function(){throw new Error("Not implemented")},d.prototype._fixedNafMul=function(l,p){a(l.precomputed);var m=l._getDoubles(),h=g(p,1,this._bitLength),u=(1<<m.step+1)-(m.step%2==0?2:1);u/=3;var y,v,_=[];for(y=0;y<h.length;y+=m.step){v=0;for(var S=y+m.step-1;S>=y;S--)v=(v<<1)+h[S];_.push(v)}for(var b=this.jpoint(null,null,null),T=this.jpoint(null,null,null),C=u;C>0;C--){for(y=0;y<_.length;y++)(v=_[y])===C?T=T.mixedAdd(m.points[y]):v===-C&&(T=T.mixedAdd(m.points[y].neg()));b=b.add(T)}return b.toP()},d.prototype._wnafMul=function(l,p){var m=4,h=l._getNAFPoints(m);m=h.wnd;for(var u=h.points,y=g(p,m,this._bitLength),v=this.jpoint(null,null,null),_=y.length-1;_>=0;_--){for(var S=0;_>=0&&y[_]===0;_--)S++;if(_>=0&&S++,v=v.dblp(S),_<0)break;var b=y[_];a(b!==0),v=l.type==="affine"?b>0?v.mixedAdd(u[b-1>>1]):v.mixedAdd(u[-b-1>>1].neg()):b>0?v.add(u[b-1>>1]):v.add(u[-b-1>>1].neg())}return l.type==="affine"?v.toP():v},d.prototype._wnafMulAdd=function(l,p,m,h,u){var y,v,_,S=this._wnafT1,b=this._wnafT2,T=this._wnafT3,C=0;for(y=0;y<h;y++){var R=(_=p[y])._getNAFPoints(l);S[y]=R.wnd,b[y]=R.points}for(y=h-1;y>=1;y-=2){var F=y-1,X=y;if(S[F]===1&&S[X]===1){var Z=[p[F],null,null,p[X]];p[F].y.cmp(p[X].y)===0?(Z[1]=p[F].add(p[X]),Z[2]=p[F].toJ().mixedAdd(p[X].neg())):p[F].y.cmp(p[X].y.redNeg())===0?(Z[1]=p[F].toJ().mixedAdd(p[X]),Z[2]=p[F].add(p[X].neg())):(Z[1]=p[F].toJ().mixedAdd(p[X]),Z[2]=p[F].toJ().mixedAdd(p[X].neg()));var ne=[-3,-1,-5,-7,0,7,5,1,3],e=M(m[F],m[X]);for(C=Math.max(e[0].length,C),T[F]=new Array(C),T[X]=new Array(C),v=0;v<C;v++){var r=0|e[0][v],i=0|e[1][v];T[F][v]=ne[3*(r+1)+(i+1)],T[X][v]=0,b[F]=Z}}else T[F]=g(m[F],S[F],this._bitLength),T[X]=g(m[X],S[X],this._bitLength),C=Math.max(T[F].length,C),C=Math.max(T[X].length,C)}var n=this.jpoint(null,null,null),t=this._wnafT4;for(y=C;y>=0;y--){for(var o=0;y>=0;){var s=!0;for(v=0;v<h;v++)t[v]=0|T[v][y],t[v]!==0&&(s=!1);if(!s)break;o++,y--}if(y>=0&&o++,n=n.dblp(o),y<0)break;for(v=0;v<h;v++){var I=t[v];I!==0&&(I>0?_=b[v][I-1>>1]:I<0&&(_=b[v][-I-1>>1].neg()),n=_.type==="affine"?n.mixedAdd(_):n.add(_))}}for(y=0;y<h;y++)b[y]=null;return u?n:n.toP()},d.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},d.prototype.decodePoint=function(l,p){l=w.toArray(l,p);var m=this.p.byteLength();if((l[0]===4||l[0]===6||l[0]===7)&&l.length-1==2*m)return l[0]===6?a(l[l.length-1]%2==0):l[0]===7&&a(l[l.length-1]%2==1),this.point(l.slice(1,1+m),l.slice(1+m,1+2*m));if((l[0]===2||l[0]===3)&&l.length-1===m)return this.pointFromX(l.slice(1,1+m),l[0]===3);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(l){return this.encode(l,!0)},c.prototype._encode=function(l){var p=this.curve.p.byteLength(),m=this.getX().toArray("be",p);return l?[this.getY().isEven()?2:3].concat(m):[4].concat(m,this.getY().toArray("be",p))},c.prototype.encode=function(l,p){return w.encode(this._encode(p),l)},c.prototype.precompute=function(l){if(this.precomputed)return this;var p={doubles:null,naf:null,beta:null};return p.naf=this._getNAFPoints(8),p.doubles=this._getDoubles(4,l),p.beta=this._getBeta(),this.precomputed=p,this},c.prototype._hasDoubles=function(l){if(!this.precomputed)return!1;var p=this.precomputed.doubles;return!!p&&p.points.length>=Math.ceil((l.bitLength()+1)/p.step)},c.prototype._getDoubles=function(l,p){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var m=[this],h=this,u=0;u<p;u+=l){for(var y=0;y<l;y++)h=h.dbl();m.push(h)}return{step:l,points:m}},c.prototype._getNAFPoints=function(l){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var p=[this],m=(1<<l)-1,h=m===1?null:this.dbl(),u=1;u<m;u++)p[u]=p[u-1].add(h);return{wnd:l,points:p}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(l){for(var p=this,m=0;m<l;m++)p=p.dbl();return p}},1138:(H,O,x)=>{var k=x(953),w=x(3785),g=x(5717),M=x(4918),a=k.assert;function d(l){this.twisted=(0|l.a)!=1,this.mOneA=this.twisted&&(0|l.a)==-1,this.extended=this.mOneA,M.call(this,"edwards",l),this.a=new w(l.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new w(l.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new w(l.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|l.c)==1}function c(l,p,m,h,u){M.BasePoint.call(this,l,"projective"),p===null&&m===null&&h===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 w(p,16),this.y=new w(m,16),this.z=h?new w(h,16):this.curve.one,this.t=u&&new w(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()))))}g(d,M),H.exports=d,d.prototype._mulA=function(l){return this.mOneA?l.redNeg():this.a.redMul(l)},d.prototype._mulC=function(l){return this.oneC?l:this.c.redMul(l)},d.prototype.jpoint=function(l,p,m,h){return this.point(l,p,m,h)},d.prototype.pointFromX=function(l,p){(l=new w(l,16)).red||(l=l.toRed(this.red));var m=l.redSqr(),h=this.c2.redSub(this.a.redMul(m)),u=this.one.redSub(this.c2.redMul(this.d).redMul(m)),y=h.redMul(u.redInvm()),v=y.redSqrt();if(v.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");var _=v.fromRed().isOdd();return(p&&!_||!p&&_)&&(v=v.redNeg()),this.point(l,v)},d.prototype.pointFromY=function(l,p){(l=new w(l,16)).red||(l=l.toRed(this.red));var m=l.redSqr(),h=m.redSub(this.c2),u=m.redMul(this.d).redMul(this.c2).redSub(this.a),y=h.redMul(u.redInvm());if(y.cmp(this.zero)===0){if(p)throw new Error("invalid point");return this.point(this.zero,l)}var v=y.redSqrt();if(v.redSqr().redSub(y).cmp(this.zero)!==0)throw new Error("invalid point");return v.fromRed().isOdd()!==p&&(v=v.redNeg()),this.point(v,l)},d.prototype.validate=function(l){if(l.isInfinity())return!0;l.normalize();var p=l.x.redSqr(),m=l.y.redSqr(),h=p.redMul(this.a).redAdd(m),u=this.c2.redMul(this.one.redAdd(this.d.redMul(p).redMul(m)));return h.cmp(u)===0},g(c,M.BasePoint),d.prototype.pointFromJSON=function(l){return c.fromJSON(this,l)},d.prototype.point=function(l,p,m,h){return new c(this,l,p,m,h)},c.fromJSON=function(l,p){return new c(l,p[0],p[1],p[2])},c.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)+">"},c.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},c.prototype._extDbl=function(){var l=this.x.redSqr(),p=this.y.redSqr(),m=this.z.redSqr();m=m.redIAdd(m);var h=this.curve._mulA(l),u=this.x.redAdd(this.y).redSqr().redISub(l).redISub(p),y=h.redAdd(p),v=y.redSub(m),_=h.redSub(p),S=u.redMul(v),b=y.redMul(_),T=u.redMul(_),C=v.redMul(y);return this.curve.point(S,b,C,T)},c.prototype._projDbl=function(){var l,p,m,h,u,y,v=this.x.redAdd(this.y).redSqr(),_=this.x.redSqr(),S=this.y.redSqr();if(this.curve.twisted){var b=(h=this.curve._mulA(_)).redAdd(S);this.zOne?(l=v.redSub(_).redSub(S).redMul(b.redSub(this.curve.two)),p=b.redMul(h.redSub(S)),m=b.redSqr().redSub(b).redSub(b)):(u=this.z.redSqr(),y=b.redSub(u).redISub(u),l=v.redSub(_).redISub(S).redMul(y),p=b.redMul(h.redSub(S)),m=b.redMul(y))}else h=_.redAdd(S),u=this.curve._mulC(this.z).redSqr(),y=h.redSub(u).redSub(u),l=this.curve._mulC(v.redISub(h)).redMul(y),p=this.curve._mulC(h).redMul(_.redISub(S)),m=h.redMul(y);return this.curve.point(l,p,m)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(l){var p=this.y.redSub(this.x).redMul(l.y.redSub(l.x)),m=this.y.redAdd(this.x).redMul(l.y.redAdd(l.x)),h=this.t.redMul(this.curve.dd).redMul(l.t),u=this.z.redMul(l.z.redAdd(l.z)),y=m.redSub(p),v=u.redSub(h),_=u.redAdd(h),S=m.redAdd(p),b=y.redMul(v),T=_.redMul(S),C=y.redMul(S),R=v.redMul(_);return this.curve.point(b,T,R,C)},c.prototype._projAdd=function(l){var p,m,h=this.z.redMul(l.z),u=h.redSqr(),y=this.x.redMul(l.x),v=this.y.redMul(l.y),_=this.curve.d.redMul(y).redMul(v),S=u.redSub(_),b=u.redAdd(_),T=this.x.redAdd(this.y).redMul(l.x.redAdd(l.y)).redISub(y).redISub(v),C=h.redMul(S).redMul(T);return this.curve.twisted?(p=h.redMul(b).redMul(v.redSub(this.curve._mulA(y))),m=S.redMul(b)):(p=h.redMul(b).redMul(v.redSub(y)),m=this.curve._mulC(S).redMul(b)),this.curve.point(C,p,m)},c.prototype.add=function(l){return this.isInfinity()?l:l.isInfinity()?this:this.curve.extended?this._extAdd(l):this._projAdd(l)},c.prototype.mul=function(l){return this._hasDoubles(l)?this.curve._fixedNafMul(this,l):this.curve._wnafMul(this,l)},c.prototype.mulAdd=function(l,p,m){return this.curve._wnafMulAdd(1,[this,p],[l,m],2,!1)},c.prototype.jmulAdd=function(l,p,m){return this.curve._wnafMulAdd(1,[this,p],[l,m],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var l=this.z.redInvm();return this.x=this.x.redMul(l),this.y=this.y.redMul(l),this.t&&(this.t=this.t.redMul(l)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(l){return this===l||this.getX().cmp(l.getX())===0&&this.getY().cmp(l.getY())===0},c.prototype.eqXToP=function(l){var p=l.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(p)===0)return!0;for(var m=l.clone(),h=this.curve.redN.redMul(this.z);;){if(m.iadd(this.curve.n),m.cmp(this.curve.p)>=0)return!1;if(p.redIAdd(h),this.x.cmp(p)===0)return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},8254:(H,O,x)=>{var k=O;k.base=x(4918),k.short=x(6673),k.mont=x(2881),k.edwards=x(1138)},2881:(H,O,x)=>{var k=x(3785),w=x(5717),g=x(4918),M=x(953);function a(c){g.call(this,"mont",c),this.a=new k(c.a,16).toRed(this.red),this.b=new k(c.b,16).toRed(this.red),this.i4=new k(4).toRed(this.red).redInvm(),this.two=new k(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function d(c,l,p){g.BasePoint.call(this,c,"projective"),l===null&&p===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new k(l,16),this.z=new k(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}w(a,g),H.exports=a,a.prototype.validate=function(c){var l=c.normalize().x,p=l.redSqr(),m=p.redMul(l).redAdd(p.redMul(this.a)).redAdd(l);return m.redSqrt().redSqr().cmp(m)===0},w(d,g.BasePoint),a.prototype.decodePoint=function(c,l){return this.point(M.toArray(c,l),1)},a.prototype.point=function(c,l){return new d(this,c,l)},a.prototype.pointFromJSON=function(c){return d.fromJSON(this,c)},d.prototype.precompute=function(){},d.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},d.fromJSON=function(c,l){return new d(c,l[0],l[1]||c.one)},d.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)+">"},d.prototype.isInfinity=function(){return this.z.cmpn(0)===0},d.prototype.dbl=function(){var c=this.x.redAdd(this.z).redSqr(),l=this.x.redSub(this.z).redSqr(),p=c.redSub(l),m=c.redMul(l),h=p.redMul(l.redAdd(this.curve.a24.redMul(p)));return this.curve.point(m,h)},d.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.diffAdd=function(c,l){var p=this.x.redAdd(this.z),m=this.x.redSub(this.z),h=c.x.redAdd(c.z),u=c.x.redSub(c.z).redMul(p),y=h.redMul(m),v=l.z.redMul(u.redAdd(y).redSqr()),_=l.x.redMul(u.redISub(y).redSqr());return this.curve.point(v,_)},d.prototype.mul=function(c){for(var l=c.clone(),p=this,m=this.curve.point(null,null),h=[];l.cmpn(0)!==0;l.iushrn(1))h.push(l.andln(1));for(var u=h.length-1;u>=0;u--)h[u]===0?(p=p.diffAdd(m,this),m=m.dbl()):(m=p.diffAdd(m,this),p=p.dbl());return m},d.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},d.prototype.eq=function(c){return this.getX().cmp(c.getX())===0},d.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},6673:(H,O,x)=>{var k=x(953),w=x(3785),g=x(5717),M=x(4918),a=k.assert;function d(p){M.call(this,"short",p),this.a=new w(p.a,16).toRed(this.red),this.b=new w(p.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(p),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(p,m,h,u){M.BasePoint.call(this,p,"affine"),m===null&&h===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new w(m,16),this.y=new w(h,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 l(p,m,h,u){M.BasePoint.call(this,p,"jacobian"),m===null&&h===null&&u===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new w(0)):(this.x=new w(m,16),this.y=new w(h,16),this.z=new w(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}g(d,M),H.exports=d,d.prototype._getEndomorphism=function(p){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var m,h;if(p.beta)m=new w(p.beta,16).toRed(this.red);else{var u=this._getEndoRoots(this.p);m=(m=u[0].cmp(u[1])<0?u[0]:u[1]).toRed(this.red)}if(p.lambda)h=new w(p.lambda,16);else{var y=this._getEndoRoots(this.n);this.g.mul(y[0]).x.cmp(this.g.x.redMul(m))===0?h=y[0]:(h=y[1],a(this.g.mul(h).x.cmp(this.g.x.redMul(m))===0))}return{beta:m,lambda:h,basis:p.basis?p.basis.map(function(v){return{a:new w(v.a,16),b:new w(v.b,16)}}):this._getEndoBasis(h)}}},d.prototype._getEndoRoots=function(p){var m=p===this.p?this.red:w.mont(p),h=new w(2).toRed(m).redInvm(),u=h.redNeg(),y=new w(3).toRed(m).redNeg().redSqrt().redMul(h);return[u.redAdd(y).fromRed(),u.redSub(y).fromRed()]},d.prototype._getEndoBasis=function(p){for(var m,h,u,y,v,_,S,b,T,C=this.n.ushrn(Math.floor(this.n.bitLength()/2)),R=p,F=this.n.clone(),X=new w(1),Z=new w(0),ne=new w(0),e=new w(1),r=0;R.cmpn(0)!==0;){var i=F.div(R);b=F.sub(i.mul(R)),T=ne.sub(i.mul(X));var n=e.sub(i.mul(Z));if(!u&&b.cmp(C)<0)m=S.neg(),h=X,u=b.neg(),y=T;else if(u&&++r==2)break;S=b,F=R,R=b,ne=X,X=T,e=Z,Z=n}v=b.neg(),_=T;var t=u.sqr().add(y.sqr());return v.sqr().add(_.sqr()).cmp(t)>=0&&(v=m,_=h),u.negative&&(u=u.neg(),y=y.neg()),v.negative&&(v=v.neg(),_=_.neg()),[{a:u,b:y},{a:v,b:_}]},d.prototype._endoSplit=function(p){var m=this.endo.basis,h=m[0],u=m[1],y=u.b.mul(p).divRound(this.n),v=h.b.neg().mul(p).divRound(this.n),_=y.mul(h.a),S=v.mul(u.a),b=y.mul(h.b),T=v.mul(u.b);return{k1:p.sub(_).sub(S),k2:b.add(T).neg()}},d.prototype.pointFromX=function(p,m){(p=new w(p,16)).red||(p=p.toRed(this.red));var h=p.redSqr().redMul(p).redIAdd(p.redMul(this.a)).redIAdd(this.b),u=h.redSqrt();if(u.redSqr().redSub(h).cmp(this.zero)!==0)throw new Error("invalid point");var y=u.fromRed().isOdd();return(m&&!y||!m&&y)&&(u=u.redNeg()),this.point(p,u)},d.prototype.validate=function(p){if(p.inf)return!0;var m=p.x,h=p.y,u=this.a.redMul(m),y=m.redSqr().redMul(m).redIAdd(u).redIAdd(this.b);return h.redSqr().redISub(y).cmpn(0)===0},d.prototype._endoWnafMulAdd=function(p,m,h){for(var u=this._endoWnafT1,y=this._endoWnafT2,v=0;v<p.length;v++){var _=this._endoSplit(m[v]),S=p[v],b=S._getBeta();_.k1.negative&&(_.k1.ineg(),S=S.neg(!0)),_.k2.negative&&(_.k2.ineg(),b=b.neg(!0)),u[2*v]=S,u[2*v+1]=b,y[2*v]=_.k1,y[2*v+1]=_.k2}for(var T=this._wnafMulAdd(1,u,y,2*v,h),C=0;C<2*v;C++)u[C]=null,y[C]=null;return T},g(c,M.BasePoint),d.prototype.point=function(p,m,h){return new c(this,p,m,h)},d.prototype.pointFromJSON=function(p,m){return c.fromJSON(this,p,m)},c.prototype._getBeta=function(){if(this.curve.endo){var p=this.precomputed;if(p&&p.beta)return p.beta;var m=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(p){var h=this.curve,u=function(y){return h.point(y.x.redMul(h.endo.beta),y.y)};p.beta=m,m.precomputed={beta:null,naf:p.naf&&{wnd:p.naf.wnd,points:p.naf.points.map(u)},doubles:p.doubles&&{step:p.doubles.step,points:p.doubles.points.map(u)}}}return m}},c.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]},c.fromJSON=function(p,m,h){typeof m=="string"&&(m=JSON.parse(m));var u=p.point(m[0],m[1],h);if(!m[2])return u;function y(_){return p.point(_[0],_[1],h)}var v=m[2];return u.precomputed={beta:null,doubles:v.doubles&&{step:v.doubles.step,points:[u].concat(v.doubles.points.map(y))},naf:v.naf&&{wnd:v.naf.wnd,points:[u].concat(v.naf.points.map(y))}},u},c.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)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(p){if(this.inf)return p;if(p.inf)return this;if(this.eq(p))return this.dbl();if(this.neg().eq(p))return this.curve.point(null,null);if(this.x.cmp(p.x)===0)return this.curve.point(null,null);var m=this.y.redSub(p.y);m.cmpn(0)!==0&&(m=m.redMul(this.x.redSub(p.x).redInvm()));var h=m.redSqr().redISub(this.x).redISub(p.x),u=m.redMul(this.x.redSub(h)).redISub(this.y);return this.curve.point(h,u)},c.prototype.dbl=function(){if(this.inf)return this;var p=this.y.redAdd(this.y);if(p.cmpn(0)===0)return this.curve.point(null,null);var m=this.curve.a,h=this.x.redSqr(),u=p.redInvm(),y=h.redAdd(h).redIAdd(h).redIAdd(m).redMul(u),v=y.redSqr().redISub(this.x.redAdd(this.x)),_=y.redMul(this.x.redSub(v)).redISub(this.y);return this.curve.point(v,_)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(p){return p=new w(p,16),this.isInfinity()?this:this._hasDoubles(p)?this.curve._fixedNafMul(this,p):this.curve.endo?this.curve._endoWnafMulAdd([this],[p]):this.curve._wnafMul(this,p)},c.prototype.mulAdd=function(p,m,h){var u=[this,m],y=[p,h];return this.curve.endo?this.curve._endoWnafMulAdd(u,y):this.curve._wnafMulAdd(1,u,y,2)},c.prototype.jmulAdd=function(p,m,h){var u=[this,m],y=[p,h];return this.curve.endo?this.curve._endoWnafMulAdd(u,y,!0):this.curve._wnafMulAdd(1,u,y,2,!0)},c.prototype.eq=function(p){return this===p||this.inf===p.inf&&(this.inf||this.x.cmp(p.x)===0&&this.y.cmp(p.y)===0)},c.prototype.neg=function(p){if(this.inf)return this;var m=this.curve.point(this.x,this.y.redNeg());if(p&&this.precomputed){var h=this.precomputed,u=function(y){return y.neg()};m.precomputed={naf:h.naf&&{wnd:h.naf.wnd,points:h.naf.points.map(u)},doubles:h.doubles&&{step:h.doubles.step,points:h.doubles.points.map(u)}}}return m},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},g(l,M.BasePoint),d.prototype.jpoint=function(p,m,h){return new l(this,p,m,h)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var p=this.z.redInvm(),m=p.redSqr(),h=this.x.redMul(m),u=this.y.redMul(m).redMul(p);return this.curve.point(h,u)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(p){if(this.isInfinity())return p;if(p.isInfinity())return this;var m=p.z.redSqr(),h=this.z.redSqr(),u=this.x.redMul(m),y=p.x.redMul(h),v=this.y.redMul(m.redMul(p.z)),_=p.y.redMul(h.redMul(this.z)),S=u.redSub(y),b=v.redSub(_);if(S.cmpn(0)===0)return b.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var T=S.redSqr(),C=T.redMul(S),R=u.redMul(T),F=b.redSqr().redIAdd(C).redISub(R).redISub(R),X=b.redMul(R.redISub(F)).redISub(v.redMul(C)),Z=this.z.redMul(p.z).redMul(S);return this.curve.jpoint(F,X,Z)},l.prototype.mixedAdd=function(p){if(this.isInfinity())return p.toJ();if(p.isInfinity())return this;var m=this.z.redSqr(),h=this.x,u=p.x.redMul(m),y=this.y,v=p.y.redMul(m).redMul(this.z),_=h.redSub(u),S=y.redSub(v);if(_.cmpn(0)===0)return S.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var b=_.redSqr(),T=b.redMul(_),C=h.redMul(b),R=S.redSqr().redIAdd(T).redISub(C).redISub(C),F=S.redMul(C.redISub(R)).redISub(y.redMul(T)),X=this.z.redMul(_);return this.curve.jpoint(R,F,X)},l.prototype.dblp=function(p){if(p===0)return this;if(this.isInfinity())return this;if(!p)return this.dbl();var m;if(this.curve.zeroA||this.curve.threeA){var h=this;for(m=0;m<p;m++)h=h.dbl();return h}var u=this.curve.a,y=this.curve.tinv,v=this.x,_=this.y,S=this.z,b=S.redSqr().redSqr(),T=_.redAdd(_);for(m=0;m<p;m++){var C=v.redSqr(),R=T.redSqr(),F=R.redSqr(),X=C.redAdd(C).redIAdd(C).redIAdd(u.redMul(b)),Z=v.redMul(R),ne=X.redSqr().redISub(Z.redAdd(Z)),e=Z.redISub(ne),r=X.redMul(e);r=r.redIAdd(r).redISub(F);var i=T.redMul(S);m+1<p&&(b=b.redMul(F)),v=ne,S=i,T=r}return this.curve.jpoint(v,T.redMul(y),S)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var p,m,h;if(this.zOne){var u=this.x.redSqr(),y=this.y.redSqr(),v=y.redSqr(),_=this.x.redAdd(y).redSqr().redISub(u).redISub(v);_=_.redIAdd(_);var S=u.redAdd(u).redIAdd(u),b=S.redSqr().redISub(_).redISub(_),T=v.redIAdd(v);T=(T=T.redIAdd(T)).redIAdd(T),p=b,m=S.redMul(_.redISub(b)).redISub(T),h=this.y.redAdd(this.y)}else{var C=this.x.redSqr(),R=this.y.redSqr(),F=R.redSqr(),X=this.x.redAdd(R).redSqr().redISub(C).redISub(F);X=X.redIAdd(X);var Z=C.redAdd(C).redIAdd(C),ne=Z.redSqr(),e=F.redIAdd(F);e=(e=e.redIAdd(e)).redIAdd(e),p=ne.redISub(X).redISub(X),m=Z.redMul(X.redISub(p)).redISub(e),h=(h=this.y.redMul(this.z)).redIAdd(h)}return this.curve.jpoint(p,m,h)},l.prototype._threeDbl=function(){var p,m,h;if(this.zOne){var u=this.x.redSqr(),y=this.y.redSqr(),v=y.redSqr(),_=this.x.redAdd(y).redSqr().redISub(u).redISub(v);_=_.redIAdd(_);var S=u.redAdd(u).redIAdd(u).redIAdd(this.curve.a),b=S.redSqr().redISub(_).redISub(_);p=b;var T=v.redIAdd(v);T=(T=T.redIAdd(T)).redIAdd(T),m=S.redMul(_.redISub(b)).redISub(T),h=this.y.redAdd(this.y)}else{var C=this.z.redSqr(),R=this.y.redSqr(),F=this.x.redMul(R),X=this.x.redSub(C).redMul(this.x.redAdd(C));X=X.redAdd(X).redIAdd(X);var Z=F.redIAdd(F),ne=(Z=Z.redIAdd(Z)).redAdd(Z);p=X.redSqr().redISub(ne),h=this.y.redAdd(this.z).redSqr().redISub(R).redISub(C);var e=R.redSqr();e=(e=(e=e.redIAdd(e)).redIAdd(e)).redIAdd(e),m=X.redMul(Z.redISub(p)).redISub(e)}return this.curve.jpoint(p,m,h)},l.prototype._dbl=function(){var p=this.curve.a,m=this.x,h=this.y,u=this.z,y=u.redSqr().redSqr(),v=m.redSqr(),_=h.redSqr(),S=v.redAdd(v).redIAdd(v).redIAdd(p.redMul(y)),b=m.redAdd(m),T=(b=b.redIAdd(b)).redMul(_),C=S.redSqr().redISub(T.redAdd(T)),R=T.redISub(C),F=_.redSqr();F=(F=(F=F.redIAdd(F)).redIAdd(F)).redIAdd(F);var X=S.redMul(R).redISub(F),Z=h.redAdd(h).redMul(u);return this.curve.jpoint(C,X,Z)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var p=this.x.redSqr(),m=this.y.redSqr(),h=this.z.redSqr(),u=m.redSqr(),y=p.redAdd(p).redIAdd(p),v=y.redSqr(),_=this.x.redAdd(m).redSqr().redISub(p).redISub(u),S=(_=(_=(_=_.redIAdd(_)).redAdd(_).redIAdd(_)).redISub(v)).redSqr(),b=u.redIAdd(u);b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b);var T=y.redIAdd(_).redSqr().redISub(v).redISub(S).redISub(b),C=m.redMul(T);C=(C=C.redIAdd(C)).redIAdd(C);var R=this.x.redMul(S).redISub(C);R=(R=R.redIAdd(R)).redIAdd(R);var F=this.y.redMul(T.redMul(b.redISub(T)).redISub(_.redMul(S)));F=(F=(F=F.redIAdd(F)).redIAdd(F)).redIAdd(F);var X=this.z.redAdd(_).redSqr().redISub(h).redISub(S);return this.curve.jpoint(R,F,X)},l.prototype.mul=function(p,m){return p=new w(p,m),this.curve._wnafMul(this,p)},l.prototype.eq=function(p){if(p.type==="affine")return this.eq(p.toJ());if(this===p)return!0;var m=this.z.redSqr(),h=p.z.redSqr();if(this.x.redMul(h).redISub(p.x.redMul(m)).cmpn(0)!==0)return!1;var u=m.redMul(this.z),y=h.redMul(p.z);return this.y.redMul(y).redISub(p.y.redMul(u)).cmpn(0)===0},l.prototype.eqXToP=function(p){var m=this.z.redSqr(),h=p.toRed(this.curve.red).redMul(m);if(this.x.cmp(h)===0)return!0;for(var u=p.clone(),y=this.curve.redN.redMul(m);;){if(u.iadd(this.curve.n),u.cmp(this.curve.p)>=0)return!1;if(h.redIAdd(y),this.x.cmp(h)===0)return!0}},l.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)+">"},l.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},5427:(H,O,x)=>{var k,w=O,g=x(3715),M=x(8254),a=x(953).assert;function d(l){l.type==="short"?this.curve=new M.short(l):l.type==="edwards"?this.curve=new M.edwards(l):this.curve=new M.mont(l),this.g=this.curve.g,this.n=this.curve.n,this.hash=l.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(l,p){Object.defineProperty(w,l,{configurable:!0,enumerable:!0,get:function(){var m=new d(p);return Object.defineProperty(w,l,{configurable:!0,enumerable:!0,value:m}),m}})}w.PresetCurve=d,c("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:g.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:g.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:g.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:g.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"]}),c("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:g.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:g.sha256,gRed:!1,g:["9"]}),c("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:g.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{k=x(1037)}catch(l){k=void 0}c("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:g.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",k]})},7954:(H,O,x)=>{var k=x(3785),w=x(2156),g=x(953),M=x(5427),a=x(9931),d=g.assert,c=x(1251),l=x(611);function p(m){if(!(this instanceof p))return new p(m);typeof m=="string"&&(d(Object.prototype.hasOwnProperty.call(M,m),"Unknown curve "+m),m=M[m]),m instanceof M.PresetCurve&&(m={curve:m}),this.curve=m.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=m.curve.g,this.g.precompute(m.curve.n.bitLength()+1),this.hash=m.hash||m.curve.hash}H.exports=p,p.prototype.keyPair=function(m){return new c(this,m)},p.prototype.keyFromPrivate=function(m,h){return c.fromPrivate(this,m,h)},p.prototype.keyFromPublic=function(m,h){return c.fromPublic(this,m,h)},p.prototype.genKeyPair=function(m){m||(m={});for(var h=new w({hash:this.hash,pers:m.pers,persEnc:m.persEnc||"utf8",entropy:m.entropy||a(this.hash.hmacStrength),entropyEnc:m.entropy&&m.entropyEnc||"utf8",nonce:this.n.toArray()}),u=this.n.byteLength(),y=this.n.sub(new k(2));;){var v=new k(h.generate(u));if(!(v.cmp(y)>0))return v.iaddn(1),this.keyFromPrivate(v)}},p.prototype._truncateToN=function(m,h){var u=8*m.byteLength()-this.n.bitLength();return u>0&&(m=m.ushrn(u)),!h&&m.cmp(this.n)>=0?m.sub(this.n):m},p.prototype.sign=function(m,h,u,y){typeof u=="object"&&(y=u,u=null),y||(y={}),h=this.keyFromPrivate(h,u),m=this._truncateToN(new k(m,16));for(var v=this.n.byteLength(),_=h.getPrivate().toArray("be",v),S=m.toArray("be",v),b=new w({hash:this.hash,entropy:_,nonce:S,pers:y.pers,persEnc:y.persEnc||"utf8"}),T=this.n.sub(new k(1)),C=0;;C++){var R=y.k?y.k(C):new k(b.generate(this.n.byteLength()));if(!((R=this._truncateToN(R,!0)).cmpn(1)<=0||R.cmp(T)>=0)){var F=this.g.mul(R);if(!F.isInfinity()){var X=F.getX(),Z=X.umod(this.n);if(Z.cmpn(0)!==0){var ne=R.invm(this.n).mul(Z.mul(h.getPrivate()).iadd(m));if((ne=ne.umod(this.n)).cmpn(0)!==0){var e=(F.getY().isOdd()?1:0)|(X.cmp(Z)!==0?2:0);return y.canonical&&ne.cmp(this.nh)>0&&(ne=this.n.sub(ne),e^=1),new l({r:Z,s:ne,recoveryParam:e})}}}}}},p.prototype.verify=function(m,h,u,y){m=this._truncateToN(new k(m,16)),u=this.keyFromPublic(u,y);var v=(h=new l(h,"hex")).r,_=h.s;if(v.cmpn(1)<0||v.cmp(this.n)>=0||_.cmpn(1)<0||_.cmp(this.n)>=0)return!1;var S,b=_.invm(this.n),T=b.mul(m).umod(this.n),C=b.mul(v).umod(this.n);return this.curve._maxwellTrick?!(S=this.g.jmulAdd(T,u.getPublic(),C)).isInfinity()&&S.eqXToP(v):!(S=this.g.mulAdd(T,u.getPublic(),C)).isInfinity()&&S.getX().umod(this.n).cmp(v)===0},p.prototype.recoverPubKey=function(m,h,u,y){d((3&u)===u,"The recovery param is more than two bits"),h=new l(h,y);var v=this.n,_=new k(m),S=h.r,b=h.s,T=1&u,C=u>>1;if(S.cmp(this.curve.p.umod(this.curve.n))>=0&&C)throw new Error("Unable to find sencond key candinate");S=C?this.curve.pointFromX(S.add(this.curve.n),T):this.curve.pointFromX(S,T);var R=h.r.invm(v),F=v.sub(_).mul(R).umod(v),X=b.mul(R).umod(v);return this.g.mulAdd(F,S,X)},p.prototype.getKeyRecoveryParam=function(m,h,u,y){if((h=new l(h,y)).recoveryParam!==null)return h.recoveryParam;for(var v=0;v<4;v++){var _;try{_=this.recoverPubKey(m,h,v)}catch(S){continue}if(_.eq(u))return v}throw new Error("Unable to find valid recovery factor")}},1251:(H,O,x)=>{var k=x(3785),w=x(953).assert;function g(M,a){this.ec=M,this.priv=null,this.pub=null,a.priv&&this._importPrivate(a.priv,a.privEnc),a.pub&&this._importPublic(a.pub,a.pubEnc)}H.exports=g,g.fromPublic=function(M,a,d){return a instanceof g?a:new g(M,{pub:a,pubEnc:d})},g.fromPrivate=function(M,a,d){return a instanceof g?a:new g(M,{priv:a,privEnc:d})},g.prototype.validate=function(){var M=this.getPublic();return M.isInfinity()?{result:!1,reason:"Invalid public key"}:M.validate()?M.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"}},g.prototype.getPublic=function(M,a){return typeof M=="string"&&(a=M,M=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),a?this.pub.encode(a,M):this.pub},g.prototype.getPrivate=function(M){return M==="hex"?this.priv.toString(16,2):this.priv},g.prototype._importPrivate=function(M,a){this.priv=new k(M,a||16),this.priv=this.priv.umod(this.ec.curve.n)},g.prototype._importPublic=function(M,a){if(M.x||M.y)return this.ec.curve.type==="mont"?w(M.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||w(M.x&&M.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(M.x,M.y));this.pub=this.ec.curve.decodePoint(M,a)},g.prototype.derive=function(M){return M.validate()||w(M.validate(),"public point not validated"),M.mul(this.priv).getX()},g.prototype.sign=function(M,a,d){return this.ec.sign(M,this,a,d)},g.prototype.verify=function(M,a){return this.ec.verify(M,a,this)},g.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},611:(H,O,x)=>{var k=x(3785),w=x(953),g=w.assert;function M(p,m){if(p instanceof M)return p;this._importDER(p,m)||(g(p.r&&p.s,"Signature without r or s"),this.r=new k(p.r,16),this.s=new k(p.s,16),p.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=p.recoveryParam)}function a(){this.place=0}function d(p,m){var h=p[m.place++];if(!(128&h))return h;var u=15&h;if(u===0||u>4)return!1;for(var y=0,v=0,_=m.place;v<u;v++,_++)y<<=8,y|=p[_],y>>>=0;return!(y<=127)&&(m.place=_,y)}function c(p){for(var m=0,h=p.length-1;!p[m]&&!(128&p[m+1])&&m<h;)m++;return m===0?p:p.slice(m)}function l(p,m){if(m<128)p.push(m);else{var h=1+(Math.log(m)/Math.LN2>>>3);for(p.push(128|h);--h;)p.push(m>>>(h<<3)&255);p.push(m)}}H.exports=M,M.prototype._importDER=function(p,m){p=w.toArray(p,m);var h=new a;if(p[h.place++]!==48)return!1;var u=d(p,h);if(u===!1||u+h.place!==p.length||p[h.place++]!==2)return!1;var y=d(p,h);if(y===!1)return!1;var v=p.slice(h.place,y+h.place);if(h.place+=y,p[h.place++]!==2)return!1;var _=d(p,h);if(_===!1||p.length!==_+h.place)return!1;var S=p.slice(h.place,_+h.place);if(v[0]===0){if(!(128&v[1]))return!1;v=v.slice(1)}if(S[0]===0){if(!(128&S[1]))return!1;S=S.slice(1)}return this.r=new k(v),this.s=new k(S),this.recoveryParam=null,!0},M.prototype.toDER=function(p){var m=this.r.toArray(),h=this.s.toArray();for(128&m[0]&&(m=[0].concat(m)),128&h[0]&&(h=[0].concat(h)),m=c(m),h=c(h);!(h[0]||128&h[1]);)h=h.slice(1);var u=[2];l(u,m.length),(u=u.concat(m)).push(2),l(u,h.length);var y=u.concat(h),v=[48];return l(v,y.length),v=v.concat(y),w.encode(v,p)}},5980:(H,O,x)=>{var k=x(3715),w=x(5427),g=x(953),M=g.assert,a=g.parseBytes,d=x(9087),c=x(3622);function l(p){if(M(p==="ed25519","only tested with ed25519 so far"),!(this instanceof l))return new l(p);p=w[p].curve,this.curve=p,this.g=p.g,this.g.precompute(p.n.bitLength()+1),this.pointClass=p.point().constructor,this.encodingLength=Math.ceil(p.n.bitLength()/8),this.hash=k.sha512}H.exports=l,l.prototype.sign=function(p,m){p=a(p);var h=this.keyFromSecret(m),u=this.hashInt(h.messagePrefix(),p),y=this.g.mul(u),v=this.encodePoint(y),_=this.hashInt(v,h.pubBytes(),p).mul(h.priv()),S=u.add(_).umod(this.curve.n);return this.makeSignature({R:y,S,Rencoded:v})},l.prototype.verify=function(p,m,h){p=a(p),m=this.makeSignature(m);var u=this.keyFromPublic(h),y=this.hashInt(m.Rencoded(),u.pubBytes(),p),v=this.g.mul(m.S());return m.R().add(u.pub().mul(y)).eq(v)},l.prototype.hashInt=function(){for(var p=this.hash(),m=0;m<arguments.length;m++)p.update(arguments[m]);return g.intFromLE(p.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(p){return d.fromPublic(this,p)},l.prototype.keyFromSecret=function(p){return d.fromSecret(this,p)},l.prototype.makeSignature=function(p){return p instanceof c?p:new c(this,p)},l.prototype.encodePoint=function(p){var m=p.getY().toArray("le",this.encodingLength);return m[this.encodingLength-1]|=p.getX().isOdd()?128:0,m},l.prototype.decodePoint=function(p){var m=(p=g.parseBytes(p)).length-1,h=p.slice(0,m).concat(-129&p[m]),u=(128&p[m])!=0,y=g.intFromLE(h);return this.curve.pointFromY(y,u)},l.prototype.encodeInt=function(p){return p.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(p){return g.intFromLE(p)},l.prototype.isPoint=function(p){return p instanceof this.pointClass}},9087:(H,O,x)=>{var k=x(953),w=k.assert,g=k.parseBytes,M=k.cachedProperty;function a(d,c){this.eddsa=d,this._secret=g(c.secret),d.isPoint(c.pub)?this._pub=c.pub:this._pubBytes=g(c.pub)}a.fromPublic=function(d,c){return c instanceof a?c:new a(d,{pub:c})},a.fromSecret=function(d,c){return c instanceof a?c:new a(d,{secret:c})},a.prototype.secret=function(){return this._secret},M(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),M(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),M(a,"privBytes",function(){var d=this.eddsa,c=this.hash(),l=d.encodingLength-1,p=c.slice(0,d.encodingLength);return p[0]&=248,p[l]&=127,p[l]|=64,p}),M(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),M(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),M(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(d){return w(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},a.prototype.verify=function(d,c){return this.eddsa.verify(d,c,this)},a.prototype.getSecret=function(d){return w(this._secret,"KeyPair is public only"),k.encode(this.secret(),d)},a.prototype.getPublic=function(d){return k.encode(this.pubBytes(),d)},H.exports=a},3622:(H,O,x)=>{var k=x(3785),w=x(953),g=w.assert,M=w.cachedProperty,a=w.parseBytes;function d(c,l){this.eddsa=c,typeof l!="object"&&(l=a(l)),Array.isArray(l)&&(l={R:l.slice(0,c.encodingLength),S:l.slice(c.encodingLength)}),g(l.R&&l.S,"Signature without R or S"),c.isPoint(l.R)&&(this._R=l.R),l.S instanceof k&&(this._S=l.S),this._Rencoded=Array.isArray(l.R)?l.R:l.Rencoded,this._Sencoded=Array.isArray(l.S)?l.S:l.Sencoded}M(d,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),M(d,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),M(d,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),M(d,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),d.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},d.prototype.toHex=function(){return w.encode(this.toBytes(),"hex").toUpperCase()},H.exports=d},1037:H=>{H.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"]]}}},953:(H,O,x)=>{var k=O,w=x(3785),g=x(9746),M=x(4504);k.assert=g,k.toArray=M.toArray,k.zero2=M.zero2,k.toHex=M.toHex,k.encode=M.encode,k.getNAF=function(a,d,c){var l=new Array(Math.max(a.bitLength(),c)+1);l.fill(0);for(var p=1<<d+1,m=a.clone(),h=0;h<l.length;h++){var u,y=m.andln(p-1);m.isOdd()?(u=y>(p>>1)-1?(p>>1)-y:y,m.isubn(u)):u=0,l[h]=u,m.iushrn(1)}return l},k.getJSF=function(a,d){var c=[[],[]];a=a.clone(),d=d.clone();for(var l,p=0,m=0;a.cmpn(-p)>0||d.cmpn(-m)>0;){var h,u,y=a.andln(3)+p&3,v=d.andln(3)+m&3;y===3&&(y=-1),v===3&&(v=-1),h=1&y?(l=a.andln(7)+p&7)!=3&&l!==5||v!==2?y:-y:0,c[0].push(h),u=1&v?(l=d.andln(7)+m&7)!=3&&l!==5||y!==2?v:-v:0,c[1].push(u),2*p===h+1&&(p=1-p),2*m===u+1&&(m=1-m),a.iushrn(1),d.iushrn(1)}return c},k.cachedProperty=function(a,d,c){var l="_"+d;a.prototype[d]=function(){return this[l]!==void 0?this[l]:this[l]=c.call(this)}},k.parseBytes=function(a){return typeof a=="string"?k.toArray(a,"hex"):a},k.intFromLE=function(a){return new w(a,"hex","le")}},3785:function(H,O,x){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function a(e,r,i){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var d;typeof k=="object"?k.exports=a:w.BN=a,a.BN=a,a.wordSize=26;try{d=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:x(5568).Buffer}catch(e){}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function p(e,r,i,n){for(var t=0,o=Math.min(e.length,i),s=r;s<o;s++){var I=e.charCodeAt(s)-48;t*=n,t+=I>=49?I-49+10:I>=17?I-17+10:I}return t}a.isBN=function(e){return e instanceof a||e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,r){return e.cmp(r)>0?e:r},a.min=function(e,r){return e.cmp(r)<0?e:r},a.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),g(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},a.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(g(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},a.prototype._initArray=function(e,r,i){if(g(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,s=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);return this.strip()},a.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,s=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;this.strip()},a.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,s=o%n,I=Math.min(o,o-s)+i,P=0,j=i;j<I;j+=n)P=p(e,j,j+n,r),this.imuln(t),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(s!==0){var A=1;for(P=p(e,j,e.length,r),j=0;j<s;j++)A*=r;this.imuln(A),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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 y(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],s=t*o,I=67108863&s,P=s/67108864|0;i.words[0]=I;for(var j=1;j<n;j++){for(var A=P>>>26,N=67108863&P,L=Math.min(j,r.length-1),z=Math.max(0,j-e.length+1);z<=L;z++){var Y=j-z|0;A+=(s=(t=0|e.words[Y])*(o=0|r.words[z])+N)/67108864|0,N=67108863&s}i.words[j]=0|N,P=0|A}return P!==0?i.words[j]=0|P:i.length--,i.strip()}a.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var s=this.words[o],I=(16777215&(s<<n|t)).toString(16);i=(t=s>>>24-n&16777215)!=0||o!==this.length-1?m[6-I.length]+I+i:I+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var P=h[e],j=u[e];i="";var A=this.clone();for(A.negative=0;!A.isZero();){var N=A.modn(j).toString(e);i=(A=A.idivn(j)).isZero()?N+i:m[P-N.length]+N+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}g(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&g(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,r){return g(d!==void 0),this.toArrayLike(d,e,r)},a.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},a.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);g(n<=t,"byte array longer than desired length"),g(t>0,"Requested array length <= 0"),this.strip();var o,s,I=r==="le",P=new e(t),j=this.clone();if(I){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[s]=o;for(;s<t;s++)P[s]=0}else{for(s=0;s<t-n;s++)P[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[t-s-1]=o}return P},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},a.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},a.prototype.ior=function(e){return g((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},a.prototype.iand=function(e){return g((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},a.prototype.ixor=function(e){return g((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){g(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,r){g(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},a.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(r=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&r;for(;o!==0&&s<i.length;s++)o=(r=(0|i.words[s])+o)>>26,this.words[s]=67108863&r;if(o===0&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,r,i){var n,t,o,s=e.words,I=r.words,P=i.words,j=0,A=0|s[0],N=8191&A,L=A>>>13,z=0|s[1],Y=8191&z,D=z>>>13,K=0|s[2],q=8191&K,U=K>>>13,te=0|s[3],J=8191&te,ae=te>>>13,xe=0|s[4],ce=8191&xe,fe=xe>>>13,Te=0|s[5],ye=8191&Te,Ee=Te>>>13,V=0|s[6],W=8191&V,Q=V>>>13,ge=0|s[7],oe=8191&ge,ue=ge>>>13,Ne=0|s[8],we=8191&Ne,Me=Ne>>>13,pt=0|s[9],ke=8191&pt,je=pt>>>13,Et=0|I[0],Ie=8191&Et,Xe=Et>>>13,Ct=0|I[1],De=8191&Ct,Ke=Ct>>>13,Nt=0|I[2],Pe=8191&Nt,He=Nt>>>13,vt=0|I[3],Ce=8191&vt,Ze=vt>>>13,St=0|I[4],Re=8191&St,Ge=St>>>13,It=0|I[5],qe=8191&It,Ye=It>>>13,Dt=0|I[6],Le=8191&Dt,et=Dt>>>13,$t=0|I[7],Fe=8191&$t,Qe=$t>>>13,Ut=0|I[8],$e=8191&Ut,nt=Ut>>>13,zt=0|I[9],Ue=8191&zt,tt=zt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(j+(n=Math.imul(N,Ie))|0)+((8191&(t=(t=Math.imul(N,Xe))+Math.imul(L,Ie)|0))<<13)|0;j=((o=Math.imul(L,Xe))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Y,Ie),t=(t=Math.imul(Y,Xe))+Math.imul(D,Ie)|0,o=Math.imul(D,Xe);var Rt=(j+(n=n+Math.imul(N,De)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ke)|0)+Math.imul(L,De)|0))<<13)|0;j=((o=o+Math.imul(L,Ke)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(q,Ie),t=(t=Math.imul(q,Xe))+Math.imul(U,Ie)|0,o=Math.imul(U,Xe),n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Ke)|0;var Zt=(j+(n=n+Math.imul(N,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(N,He)|0)+Math.imul(L,Pe)|0))<<13)|0;j=((o=o+Math.imul(L,He)|0)+(t>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(J,Ie),t=(t=Math.imul(J,Xe))+Math.imul(ae,Ie)|0,o=Math.imul(ae,Xe),n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,He)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,He)|0;var on=(j+(n=n+Math.imul(N,Ce)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ze)|0)+Math.imul(L,Ce)|0))<<13)|0;j=((o=o+Math.imul(L,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(ce,Ie),t=(t=Math.imul(ce,Xe))+Math.imul(fe,Ie)|0,o=Math.imul(fe,Xe),n=n+Math.imul(J,De)|0,t=(t=t+Math.imul(J,Ke)|0)+Math.imul(ae,De)|0,o=o+Math.imul(ae,Ke)|0,n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,He)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,He)|0,n=n+Math.imul(Y,Ce)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(D,Ce)|0,o=o+Math.imul(D,Ze)|0;var tn=(j+(n=n+Math.imul(N,Re)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ge)|0)+Math.imul(L,Re)|0))<<13)|0;j=((o=o+Math.imul(L,Ge)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(ye,Ie),t=(t=Math.imul(ye,Xe))+Math.imul(Ee,Ie)|0,o=Math.imul(Ee,Xe),n=n+Math.imul(ce,De)|0,t=(t=t+Math.imul(ce,Ke)|0)+Math.imul(fe,De)|0,o=o+Math.imul(fe,Ke)|0,n=n+Math.imul(J,Pe)|0,t=(t=t+Math.imul(J,He)|0)+Math.imul(ae,Pe)|0,o=o+Math.imul(ae,He)|0,n=n+Math.imul(q,Ce)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(U,Ce)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ge)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ge)|0;var an=(j+(n=n+Math.imul(N,qe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ye)|0)+Math.imul(L,qe)|0))<<13)|0;j=((o=o+Math.imul(L,Ye)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(W,Ie),t=(t=Math.imul(W,Xe))+Math.imul(Q,Ie)|0,o=Math.imul(Q,Xe),n=n+Math.imul(ye,De)|0,t=(t=t+Math.imul(ye,Ke)|0)+Math.imul(Ee,De)|0,o=o+Math.imul(Ee,Ke)|0,n=n+Math.imul(ce,Pe)|0,t=(t=t+Math.imul(ce,He)|0)+Math.imul(fe,Pe)|0,o=o+Math.imul(fe,He)|0,n=n+Math.imul(J,Ce)|0,t=(t=t+Math.imul(J,Ze)|0)+Math.imul(ae,Ce)|0,o=o+Math.imul(ae,Ze)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ge)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ge)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,Ye)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Ye)|0;var sn=(j+(n=n+Math.imul(N,Le)|0)|0)+((8191&(t=(t=t+Math.imul(N,et)|0)+Math.imul(L,Le)|0))<<13)|0;j=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(sn>>>26)|0,sn&=67108863,n=Math.imul(oe,Ie),t=(t=Math.imul(oe,Xe))+Math.imul(ue,Ie)|0,o=Math.imul(ue,Xe),n=n+Math.imul(W,De)|0,t=(t=t+Math.imul(W,Ke)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(ye,Pe)|0,t=(t=t+Math.imul(ye,He)|0)+Math.imul(Ee,Pe)|0,o=o+Math.imul(Ee,He)|0,n=n+Math.imul(ce,Ce)|0,t=(t=t+Math.imul(ce,Ze)|0)+Math.imul(fe,Ce)|0,o=o+Math.imul(fe,Ze)|0,n=n+Math.imul(J,Re)|0,t=(t=t+Math.imul(J,Ge)|0)+Math.imul(ae,Re)|0,o=o+Math.imul(ae,Ge)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Ye)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Ye)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,et)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,et)|0;var un=(j+(n=n+Math.imul(N,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Qe)|0)+Math.imul(L,Fe)|0))<<13)|0;j=((o=o+Math.imul(L,Qe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(we,Ie),t=(t=Math.imul(we,Xe))+Math.imul(Me,Ie)|0,o=Math.imul(Me,Xe),n=n+Math.imul(oe,De)|0,t=(t=t+Math.imul(oe,Ke)|0)+Math.imul(ue,De)|0,o=o+Math.imul(ue,Ke)|0,n=n+Math.imul(W,Pe)|0,t=(t=t+Math.imul(W,He)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,He)|0,n=n+Math.imul(ye,Ce)|0,t=(t=t+Math.imul(ye,Ze)|0)+Math.imul(Ee,Ce)|0,o=o+Math.imul(Ee,Ze)|0,n=n+Math.imul(ce,Re)|0,t=(t=t+Math.imul(ce,Ge)|0)+Math.imul(fe,Re)|0,o=o+Math.imul(fe,Ge)|0,n=n+Math.imul(J,qe)|0,t=(t=t+Math.imul(J,Ye)|0)+Math.imul(ae,qe)|0,o=o+Math.imul(ae,Ye)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,et)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,et)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,Qe)|0;var cn=(j+(n=n+Math.imul(N,$e)|0)|0)+((8191&(t=(t=t+Math.imul(N,nt)|0)+Math.imul(L,$e)|0))<<13)|0;j=((o=o+Math.imul(L,nt)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(ke,Ie),t=(t=Math.imul(ke,Xe))+Math.imul(je,Ie)|0,o=Math.imul(je,Xe),n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Me,De)|0,o=o+Math.imul(Me,Ke)|0,n=n+Math.imul(oe,Pe)|0,t=(t=t+Math.imul(oe,He)|0)+Math.imul(ue,Pe)|0,o=o+Math.imul(ue,He)|0,n=n+Math.imul(W,Ce)|0,t=(t=t+Math.imul(W,Ze)|0)+Math.imul(Q,Ce)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(ye,Re)|0,t=(t=t+Math.imul(ye,Ge)|0)+Math.imul(Ee,Re)|0,o=o+Math.imul(Ee,Ge)|0,n=n+Math.imul(ce,qe)|0,t=(t=t+Math.imul(ce,Ye)|0)+Math.imul(fe,qe)|0,o=o+Math.imul(fe,Ye)|0,n=n+Math.imul(J,Le)|0,t=(t=t+Math.imul(J,et)|0)+Math.imul(ae,Le)|0,o=o+Math.imul(ae,et)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(Y,$e)|0,t=(t=t+Math.imul(Y,nt)|0)+Math.imul(D,$e)|0,o=o+Math.imul(D,nt)|0;var ln=(j+(n=n+Math.imul(N,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(N,tt)|0)+Math.imul(L,Ue)|0))<<13)|0;j=((o=o+Math.imul(L,tt)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(ke,De),t=(t=Math.imul(ke,Ke))+Math.imul(je,De)|0,o=Math.imul(je,Ke),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,He)|0)+Math.imul(Me,Pe)|0,o=o+Math.imul(Me,He)|0,n=n+Math.imul(oe,Ce)|0,t=(t=t+Math.imul(oe,Ze)|0)+Math.imul(ue,Ce)|0,o=o+Math.imul(ue,Ze)|0,n=n+Math.imul(W,Re)|0,t=(t=t+Math.imul(W,Ge)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ge)|0,n=n+Math.imul(ye,qe)|0,t=(t=t+Math.imul(ye,Ye)|0)+Math.imul(Ee,qe)|0,o=o+Math.imul(Ee,Ye)|0,n=n+Math.imul(ce,Le)|0,t=(t=t+Math.imul(ce,et)|0)+Math.imul(fe,Le)|0,o=o+Math.imul(fe,et)|0,n=n+Math.imul(J,Fe)|0,t=(t=t+Math.imul(J,Qe)|0)+Math.imul(ae,Fe)|0,o=o+Math.imul(ae,Qe)|0,n=n+Math.imul(q,$e)|0,t=(t=t+Math.imul(q,nt)|0)+Math.imul(U,$e)|0,o=o+Math.imul(U,nt)|0;var hn=(j+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,tt)|0)+Math.imul(D,Ue)|0))<<13)|0;j=((o=o+Math.imul(D,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(ke,Pe),t=(t=Math.imul(ke,He))+Math.imul(je,Pe)|0,o=Math.imul(je,He),n=n+Math.imul(we,Ce)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Me,Ce)|0,o=o+Math.imul(Me,Ze)|0,n=n+Math.imul(oe,Re)|0,t=(t=t+Math.imul(oe,Ge)|0)+Math.imul(ue,Re)|0,o=o+Math.imul(ue,Ge)|0,n=n+Math.imul(W,qe)|0,t=(t=t+Math.imul(W,Ye)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,Ye)|0,n=n+Math.imul(ye,Le)|0,t=(t=t+Math.imul(ye,et)|0)+Math.imul(Ee,Le)|0,o=o+Math.imul(Ee,et)|0,n=n+Math.imul(ce,Fe)|0,t=(t=t+Math.imul(ce,Qe)|0)+Math.imul(fe,Fe)|0,o=o+Math.imul(fe,Qe)|0,n=n+Math.imul(J,$e)|0,t=(t=t+Math.imul(J,nt)|0)+Math.imul(ae,$e)|0,o=o+Math.imul(ae,nt)|0;var Gt=(j+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,tt)|0)+Math.imul(U,Ue)|0))<<13)|0;j=((o=o+Math.imul(U,tt)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ke,Ce),t=(t=Math.imul(ke,Ze))+Math.imul(je,Ce)|0,o=Math.imul(je,Ze),n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ge)|0)+Math.imul(Me,Re)|0,o=o+Math.imul(Me,Ge)|0,n=n+Math.imul(oe,qe)|0,t=(t=t+Math.imul(oe,Ye)|0)+Math.imul(ue,qe)|0,o=o+Math.imul(ue,Ye)|0,n=n+Math.imul(W,Le)|0,t=(t=t+Math.imul(W,et)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,et)|0,n=n+Math.imul(ye,Fe)|0,t=(t=t+Math.imul(ye,Qe)|0)+Math.imul(Ee,Fe)|0,o=o+Math.imul(Ee,Qe)|0,n=n+Math.imul(ce,$e)|0,t=(t=t+Math.imul(ce,nt)|0)+Math.imul(fe,$e)|0,o=o+Math.imul(fe,nt)|0;var pn=(j+(n=n+Math.imul(J,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(J,tt)|0)+Math.imul(ae,Ue)|0))<<13)|0;j=((o=o+Math.imul(ae,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(ke,Re),t=(t=Math.imul(ke,Ge))+Math.imul(je,Re)|0,o=Math.imul(je,Ge),n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,Ye)|0)+Math.imul(Me,qe)|0,o=o+Math.imul(Me,Ye)|0,n=n+Math.imul(oe,Le)|0,t=(t=t+Math.imul(oe,et)|0)+Math.imul(ue,Le)|0,o=o+Math.imul(ue,et)|0,n=n+Math.imul(W,Fe)|0,t=(t=t+Math.imul(W,Qe)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(ye,$e)|0,t=(t=t+Math.imul(ye,nt)|0)+Math.imul(Ee,$e)|0,o=o+Math.imul(Ee,nt)|0;var mn=(j+(n=n+Math.imul(ce,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ce,tt)|0)+Math.imul(fe,Ue)|0))<<13)|0;j=((o=o+Math.imul(fe,tt)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863,n=Math.imul(ke,qe),t=(t=Math.imul(ke,Ye))+Math.imul(je,qe)|0,o=Math.imul(je,Ye),n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,et)|0)+Math.imul(Me,Le)|0,o=o+Math.imul(Me,et)|0,n=n+Math.imul(oe,Fe)|0,t=(t=t+Math.imul(oe,Qe)|0)+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Qe)|0,n=n+Math.imul(W,$e)|0,t=(t=t+Math.imul(W,nt)|0)+Math.imul(Q,$e)|0,o=o+Math.imul(Q,nt)|0;var Qt=(j+(n=n+Math.imul(ye,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ye,tt)|0)+Math.imul(Ee,Ue)|0))<<13)|0;j=((o=o+Math.imul(Ee,tt)|0)+(t>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,n=Math.imul(ke,Le),t=(t=Math.imul(ke,et))+Math.imul(je,Le)|0,o=Math.imul(je,et),n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Qe)|0,n=n+Math.imul(oe,$e)|0,t=(t=t+Math.imul(oe,nt)|0)+Math.imul(ue,$e)|0,o=o+Math.imul(ue,nt)|0;var en=(j+(n=n+Math.imul(W,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(W,tt)|0)+Math.imul(Q,Ue)|0))<<13)|0;j=((o=o+Math.imul(Q,tt)|0)+(t>>>13)|0)+(en>>>26)|0,en&=67108863,n=Math.imul(ke,Fe),t=(t=Math.imul(ke,Qe))+Math.imul(je,Fe)|0,o=Math.imul(je,Qe),n=n+Math.imul(we,$e)|0,t=(t=t+Math.imul(we,nt)|0)+Math.imul(Me,$e)|0,o=o+Math.imul(Me,nt)|0;var Yt=(j+(n=n+Math.imul(oe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(oe,tt)|0)+Math.imul(ue,Ue)|0))<<13)|0;j=((o=o+Math.imul(ue,tt)|0)+(t>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(ke,$e),t=(t=Math.imul(ke,nt))+Math.imul(je,$e)|0,o=Math.imul(je,nt);var fn=(j+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,tt)|0)+Math.imul(Me,Ue)|0))<<13)|0;j=((o=o+Math.imul(Me,tt)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863;var nn=(j+(n=Math.imul(ke,Ue))|0)+((8191&(t=(t=Math.imul(ke,tt))+Math.imul(je,Ue)|0))<<13)|0;return j=((o=Math.imul(je,tt))+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,P[0]=Tt,P[1]=Rt,P[2]=Zt,P[3]=on,P[4]=tn,P[5]=an,P[6]=sn,P[7]=un,P[8]=cn,P[9]=ln,P[10]=hn,P[11]=Gt,P[12]=pn,P[13]=mn,P[14]=Qt,P[15]=en,P[16]=Yt,P[17]=fn,P[18]=nn,j!==0&&(P[19]=j,i.length++),i};function _(e,r,i){return new S().mulp(e,r,i)}function S(e,r){this.x=e,this.y=r}Math.imul||(v=y),a.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?y(this,e,r):n<1024?function(t,o,s){s.negative=o.negative^t.negative,s.length=t.length+o.length;for(var I=0,P=0,j=0;j<s.length-1;j++){var A=P;P=0;for(var N=67108863&I,L=Math.min(j,o.length-1),z=Math.max(0,j-t.length+1);z<=L;z++){var Y=j-z,D=(0|t.words[Y])*(0|o.words[z]),K=67108863&D;N=67108863&(K=K+N|0),P+=(A=(A=A+(D/67108864|0)|0)+(K>>>26)|0)>>>26,A&=67108863}s.words[j]=N,I=A,A=P}return I!==0?s.words[j]=I:s.length--,s.strip()}(this,e,r):_(this,e,r),i},S.prototype.makeRBT=function(e){for(var r=new Array(e),i=a.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},S.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},S.prototype.permute=function(e,r,i,n,t,o){for(var s=0;s<o;s++)n[s]=r[e[s]],t[s]=i[e[s]]},S.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var s=1;s<t;s<<=1)for(var I=s<<1,P=Math.cos(2*Math.PI/I),j=Math.sin(2*Math.PI/I),A=0;A<t;A+=I)for(var N=P,L=j,z=0;z<s;z++){var Y=i[A+z],D=n[A+z],K=i[A+z+s],q=n[A+z+s],U=N*K-L*q;q=N*q+L*K,K=U,i[A+z]=Y+K,n[A+z]=D+q,i[A+z+s]=Y-K,n[A+z+s]=D-q,z!==I&&(U=P*N-j*L,L=P*L+j*N,N=U)}},S.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},S.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},S.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},S.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;g(t===0),g((-8192&t)==0)},S.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},S.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),s=new Array(n),I=new Array(n),P=new Array(n),j=new Array(n),A=new Array(n),N=new Array(n),L=i.words;L.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(r.words,r.length,j,n),this.transform(s,o,I,P,n,t),this.transform(j,o,A,N,n,t);for(var z=0;z<n;z++){var Y=I[z]*A[z]-P[z]*N[z];P[z]=I[z]*N[z]+P[z]*A[z],I[z]=Y}return this.conjugate(I,P,n),this.transform(I,P,L,o,n,t),this.conjugate(L,o,n),this.normalize13b(L,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},a.prototype.mul=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},a.prototype.mulf=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),_(this,e,r)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){g(typeof e=="number"),g(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var r=function(o){for(var s=new Array(o.bitLength()),I=0;I<s.length;I++){var P=I/26|0,j=I%26;s[I]=(o.words[P]&1<<j)>>>j}return s}(e);if(r.length===0)return new a(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},a.prototype.iushln=function(e){g(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var s=this.words[r]&t,I=(0|this.words[r])-s<<i;this.words[r]=I|o,o=s>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},a.prototype.ishln=function(e){return g(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,r,i){var n;g(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),s=67108863^67108863>>>t<<t,I=i;if(n-=o,n=Math.max(0,n),I){for(var P=0;P<o;P++)I.words[P]=this.words[P];I.length=o}if(o!==0)if(this.length>o)for(this.length-=o,P=0;P<this.length;P++)this.words[P]=this.words[P+o];else this.words[0]=0,this.length=1;var j=0;for(P=this.length-1;P>=0&&(j!==0||P>=n);P--){var A=0|this.words[P];this.words[P]=j<<26-t|A>>>t,j=A&s}return I&&j!==0&&(I.words[I.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,r,i){return g(this.negative===0),this.iushrn(e,r,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},a.prototype.imaskn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return g(typeof e=="number"),g(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(e){if(g(typeof e=="number"),g(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var s=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+s;var I=(0|e.words[n])*r;s=((t-=67108863&I)>>26)-(I/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)s=(t=(0|this.words[n+i])+s)>>26,this.words[n+i]=67108863&t;if(s===0)return this.strip();for(g(s===-1),s=0,n=0;n<this.length;n++)s=(t=-(0|this.words[n])+s)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var s,I=n.length-t.length;if(r!=="mod"){(s=new a(null)).length=I+1,s.words=new Array(s.length);for(var P=0;P<s.length;P++)s.words[P]=0}var j=n.clone()._ishlnsubmul(t,1,I);j.negative===0&&(n=j,s&&(s.words[I]=1));for(var A=I-1;A>=0;A--){var N=67108864*(0|n.words[t.length+A])+(0|n.words[t.length+A-1]);for(N=Math.min(N/o|0,67108863),n._ishlnsubmul(t,N,A);n.negative!==0;)N--,n.negative=0,n._ishlnsubmul(t,1,A),n.isZero()||(n.negative^=1);s&&(s.words[A]=N)}return s&&s.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:s||null,mod:n}},a.prototype.divmod=function(e,r,i){return g(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(e){g(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},a.prototype.idivn=function(e){g(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new a(1),t=new a(0),o=new a(0),s=new a(1),I=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++I;for(var P=i.clone(),j=r.clone();!r.isZero();){for(var A=0,N=1;!(r.words[0]&N)&&A<26;++A,N<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(P),t.isub(j)),n.iushrn(1),t.iushrn(1);for(var L=0,z=1;!(i.words[0]&z)&&L<26;++L,z<<=1);if(L>0)for(i.iushrn(L);L-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(P),s.isub(j)),o.iushrn(1),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(s)):(i.isub(r),o.isub(n),s.isub(t))}return{a:o,b:s,gcd:i.iushln(I)}},a.prototype._invmp=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new a(1),o=new a(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var I=0,P=1;!(r.words[0]&P)&&I<26;++I,P<<=1);if(I>0)for(r.iushrn(I);I-- >0;)t.isOdd()&&t.iadd(s),t.iushrn(1);for(var j=0,A=1;!(i.words[0]&A)&&j<26;++j,A<<=1);if(j>0)for(i.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){g(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var s=0|this.words[o];t=(s+=t)>>>26,s&=67108863,this.words[o]=s}return t!==0&&(this.words[o]=t,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),g(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new Z(e)},a.prototype.toRed=function(e){return g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return g(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return g(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function T(e,r){this.name=e,this.p=new a(r,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function R(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function F(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function X(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Z(e){if(typeof e=="string"){var r=a._prime(e);this.m=r.p,this.prime=r}else g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ne(e){Z.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}T.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},T.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},T.prototype.split=function(e,r){e.iushrn(this.n,0,r)},T.prototype.imulK=function(e){return e.imul(this.k)},M(C,T),C.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var s=0|e.words[t];e.words[t-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},M(R,T),M(F,T),M(X,T),X.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},a._prime=function(e){if(b[e])return b[e];var r;if(e==="k256")r=new C;else if(e==="p224")r=new R;else if(e==="p192")r=new F;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new X}return b[e]=r,r},Z.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},Z.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(e.red&&e.red===r.red,"red works only with red numbers")},Z.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},Z.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Z.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},Z.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},Z.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},Z.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},Z.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},Z.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},Z.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},Z.prototype.isqr=function(e){return this.imul(e,e.clone())},Z.prototype.sqr=function(e){return this.mul(e,e)},Z.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(g(r%2==1),r===3){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);g(!n.isZero());var o=new a(1).toRed(this),s=o.redNeg(),I=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new a(2*P*P).toRed(this);this.pow(P,I).cmp(s)!==0;)P.redIAdd(s);for(var j=this.pow(P,n),A=this.pow(e,n.addn(1).iushrn(1)),N=this.pow(e,n),L=t;N.cmp(o)!==0;){for(var z=N,Y=0;z.cmp(o)!==0;Y++)z=z.redSqr();g(Y<L);var D=this.pow(j,new a(1).iushln(L-Y-1));A=A.redMul(D),j=D.redSqr(),N=N.redMul(j),L=Y}return A},Z.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},Z.prototype.pow=function(e,r){if(r.isZero())return new a(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,s=0,I=r.bitLength()%26;for(I===0&&(I=26),n=r.length-1;n>=0;n--){for(var P=r.words[n],j=I-1;j>=0;j--){var A=P>>j&1;t!==i[0]&&(t=this.sqr(t)),A!==0||o!==0?(o<<=1,o|=A,(++s==4||n===0&&j===0)&&(t=this.mul(t,i[o]),s=0,o=0)):s=0}I=26}return t},Z.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},Z.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},a.mont=function(e){return new ne(e)},M(ne,Z),ne.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ne.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ne.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new a(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=x.nmd(H),this)},7216:(H,O,x)=>{function k(g,M){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||typeof M!="object"&&typeof M!="function"?g:M}x.r(O),x.d(O,{default:()=>w});const w=function(g){function M(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";(function(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")})(this,M);var d=k(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,a));return Object.defineProperty(d,"message",{configurable:!0,enumerable:!1,value:a,writable:!0}),Object.defineProperty(d,"name",{configurable:!0,enumerable:!1,value:d.constructor.name,writable:!0}),Error.hasOwnProperty("captureStackTrace")?(Error.captureStackTrace(d,d.constructor),k(d)):(Object.defineProperty(d,"stack",{configurable:!0,enumerable:!1,value:new Error(a).stack,writable:!0}),d)}return function(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(a,d):a.__proto__=d)}(M,g),M}(function(g){function M(){g.apply(this,arguments)}return M.prototype=Object.create(g.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(M,g):M.__proto__=g,M}(Error))},8091:H=>{function O(x,k){if(x==null)throw new TypeError("Cannot convert first argument to object");for(var w=Object(x),g=1;g<arguments.length;g++){var M=arguments[g];if(M!=null)for(var a=Object.keys(Object(M)),d=0,c=a.length;d<c;d++){var l=a[d],p=Object.getOwnPropertyDescriptor(M,l);p!==void 0&&p.enumerable&&(w[l]=M[l])}}return w}H.exports={assign:O,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:O})}}},7187:(H,O,x)=>{var k,w=x(5108),g=typeof Reflect=="object"?Reflect:null,M=g&&typeof g.apply=="function"?g.apply:function(b,T,C){return Function.prototype.apply.call(b,T,C)};k=g&&typeof g.ownKeys=="function"?g.ownKeys:Object.getOwnPropertySymbols?function(b){return Object.getOwnPropertyNames(b).concat(Object.getOwnPropertySymbols(b))}:function(b){return Object.getOwnPropertyNames(b)};var a=Number.isNaN||function(b){return b!=b};function d(){d.init.call(this)}H.exports=d,H.exports.once=function(b,T){return new Promise(function(C,R){function F(Z){b.removeListener(T,X),R(Z)}function X(){typeof b.removeListener=="function"&&b.removeListener("error",F),C([].slice.call(arguments))}S(b,T,X,{once:!0}),T!=="error"&&function(Z,ne,e){typeof Z.on=="function"&&S(Z,"error",ne,{once:!0})}(b,F)})},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var c=10;function l(b){if(typeof b!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof b)}function p(b){return b._maxListeners===void 0?d.defaultMaxListeners:b._maxListeners}function m(b,T,C,R){var F,X,Z,ne;if(l(C),(X=b._events)===void 0?(X=b._events=Object.create(null),b._eventsCount=0):(X.newListener!==void 0&&(b.emit("newListener",T,C.listener?C.listener:C),X=b._events),Z=X[T]),Z===void 0)Z=X[T]=C,++b._eventsCount;else if(typeof Z=="function"?Z=X[T]=R?[C,Z]:[Z,C]:R?Z.unshift(C):Z.push(C),(F=p(b))>0&&Z.length>F&&!Z.warned){Z.warned=!0;var e=new Error("Possible EventEmitter memory leak detected. "+Z.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");e.name="MaxListenersExceededWarning",e.emitter=b,e.type=T,e.count=Z.length,ne=e,w&&w.warn&&w.warn(ne)}return b}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function u(b,T,C){var R={fired:!1,wrapFn:void 0,target:b,type:T,listener:C},F=h.bind(R);return F.listener=C,R.wrapFn=F,F}function y(b,T,C){var R=b._events;if(R===void 0)return[];var F=R[T];return F===void 0?[]:typeof F=="function"?C?[F.listener||F]:[F]:C?function(X){for(var Z=new Array(X.length),ne=0;ne<Z.length;++ne)Z[ne]=X[ne].listener||X[ne];return Z}(F):_(F,F.length)}function v(b){var T=this._events;if(T!==void 0){var C=T[b];if(typeof C=="function")return 1;if(C!==void 0)return C.length}return 0}function _(b,T){for(var C=new Array(T),R=0;R<T;++R)C[R]=b[R];return C}function S(b,T,C,R){if(typeof b.on=="function")R.once?b.once(T,C):b.on(T,C);else{if(typeof b.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof b);b.addEventListener(T,function F(X){R.once&&b.removeEventListener(T,F),C(X)})}}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(b){if(typeof b!="number"||b<0||a(b))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+b+".");c=b}}),d.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},d.prototype.setMaxListeners=function(b){if(typeof b!="number"||b<0||a(b))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+b+".");return this._maxListeners=b,this},d.prototype.getMaxListeners=function(){return p(this)},d.prototype.emit=function(b){for(var T=[],C=1;C<arguments.length;C++)T.push(arguments[C]);var R=b==="error",F=this._events;if(F!==void 0)R=R&&F.error===void 0;else if(!R)return!1;if(R){var X;if(T.length>0&&(X=T[0]),X instanceof Error)throw X;var Z=new Error("Unhandled error."+(X?" ("+X.message+")":""));throw Z.context=X,Z}var ne=F[b];if(ne===void 0)return!1;if(typeof ne=="function")M(ne,this,T);else{var e=ne.length,r=_(ne,e);for(C=0;C<e;++C)M(r[C],this,T)}return!0},d.prototype.addListener=function(b,T){return m(this,b,T,!1)},d.prototype.on=d.prototype.addListener,d.prototype.prependListener=function(b,T){return m(this,b,T,!0)},d.prototype.once=function(b,T){return l(T),this.on(b,u(this,b,T)),this},d.prototype.prependOnceListener=function(b,T){return l(T),this.prependListener(b,u(this,b,T)),this},d.prototype.removeListener=function(b,T){var C,R,F,X,Z;if(l(T),(R=this._events)===void 0)return this;if((C=R[b])===void 0)return this;if(C===T||C.listener===T)--this._eventsCount==0?this._events=Object.create(null):(delete R[b],R.removeListener&&this.emit("removeListener",b,C.listener||T));else if(typeof C!="function"){for(F=-1,X=C.length-1;X>=0;X--)if(C[X]===T||C[X].listener===T){Z=C[X].listener,F=X;break}if(F<0)return this;F===0?C.shift():function(ne,e){for(;e+1<ne.length;e++)ne[e]=ne[e+1];ne.pop()}(C,F),C.length===1&&(R[b]=C[0]),R.removeListener!==void 0&&this.emit("removeListener",b,Z||T)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(b){var T,C,R;if((C=this._events)===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[b]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete C[b]),this;if(arguments.length===0){var F,X=Object.keys(C);for(R=0;R<X.length;++R)(F=X[R])!=="removeListener"&&this.removeAllListeners(F);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(T=C[b])=="function")this.removeListener(b,T);else if(T!==void 0)for(R=T.length-1;R>=0;R--)this.removeListener(b,T[R]);return this},d.prototype.listeners=function(b){return y(this,b,!0)},d.prototype.rawListeners=function(b){return y(this,b,!1)},d.listenerCount=function(b,T){return typeof b.listenerCount=="function"?b.listenerCount(T):v.call(b,T)},d.prototype.listenerCount=v,d.prototype.eventNames=function(){return this._eventsCount>0?k(this._events):[]}},3048:(H,O,x)=>{var k=x(9509).Buffer,w=x(2318);H.exports=function(g,M,a,d){if(k.isBuffer(g)||(g=k.from(g,"binary")),M&&(k.isBuffer(M)||(M=k.from(M,"binary")),M.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var c=a/8,l=k.alloc(c),p=k.alloc(d||0),m=k.alloc(0);c>0||d>0;){var h=new w;h.update(m),h.update(g),M&&h.update(M),m=h.digest();var u=0;if(c>0){var y=l.length-c;u=Math.min(c,m.length),m.copy(l,y,0,u),c-=u}if(u<m.length&&d>0){var v=p.length-d,_=Math.min(d,m.length-u);m.copy(p,v,u,u+_),d-=_}}return m.fill(0),{key:l,iv:p}}},259:(H,O,x)=>{const k=x(7849).buildOptions,w={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(_){return _},attrValueProcessor:function(_){return _}},g=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor","rootNodeName"];function M(_){this.options=k(_,w,g),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=y),this.options.cdataTagName?this.isCDATA=v:this.isCDATA=function(){return!1},this.replaceCDATAstr=d,this.replaceCDATAarr=c,this.processTextOrObjNode=a,this.options.format?(this.indentate=u,this.tagEndChar=`>
57
- `,this.newLine=`
58
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=h,this.buildObjNode=p):(this.buildTextNode=m,this.buildObjNode=l),this.buildTextValNode=m,this.buildObjectNode=l}function a(_,S,b){const T=this.j2x(_,b+1);return _[this.options.textNodeName]!==void 0&&Object.keys(_).length===1?this.buildTextNode(T.val,S,T.attrStr,b):this.buildObjNode(T.val,S,T.attrStr,b)}function d(_,S){return _=this.options.tagValueProcessor(""+_),this.options.cdataPositionChar===""||_===""?_+"<![CDATA["+S+"]]"+this.tagEndChar:_.replace(this.options.cdataPositionChar,"<![CDATA["+S+"]]"+this.tagEndChar)}function c(_,S){if(_=this.options.tagValueProcessor(""+_),this.options.cdataPositionChar===""||_==="")return _+"<![CDATA["+S.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let b in S)_=_.replace(this.options.cdataPositionChar,"<![CDATA["+S[b]+"]]>");return _+this.newLine}function l(_,S,b,T){return b&&_.indexOf("<")===-1?this.indentate(T)+"<"+S+b+">"+_+"</"+S+this.tagEndChar:this.indentate(T)+"<"+S+b+this.tagEndChar+_+this.indentate(T)+"</"+S+this.tagEndChar}function p(_,S,b,T){return _!==""?this.buildObjectNode(_,S,b,T):this.indentate(T)+"<"+S+b+"/"+this.tagEndChar}function m(_,S,b,T){return this.indentate(T)+"<"+S+b+">"+this.options.tagValueProcessor(_)+"</"+S+this.tagEndChar}function h(_,S,b,T){return _!==""?this.buildTextValNode(_,S,b,T):this.indentate(T)+"<"+S+b+"/"+this.tagEndChar}function u(_){return this.options.indentBy.repeat(_)}function y(_){return!!_.startsWith(this.options.attributeNamePrefix)&&_.substr(this.attrPrefixLen)}function v(_){return _===this.options.cdataTagName}M.prototype.parse=function(_){return Array.isArray(_)&&this.options.rootNodeName&&this.options.rootNodeName.length>1&&(_={[this.options.rootNodeName]:_}),this.j2x(_,0).val},M.prototype.j2x=function(_,S){let b="",T="";for(let C in _)if(_[C]!==void 0)if(_[C]===null)T+=this.indentate(S)+"<"+C+"/"+this.tagEndChar;else if(_[C]instanceof Date)T+=this.buildTextNode(_[C],C,"",S);else if(typeof _[C]!="object"){const R=this.isAttribute(C);R?b+=" "+R+'="'+this.options.attrValueProcessor(""+_[C])+'"':this.isCDATA(C)?_[this.options.textNodeName]?T+=this.replaceCDATAstr(_[this.options.textNodeName],_[C]):T+=this.replaceCDATAstr("",_[C]):C===this.options.textNodeName?_[this.options.cdataTagName]||(T+=this.options.tagValueProcessor(""+_[C])):T+=this.buildTextNode(_[C],C,"",S)}else if(Array.isArray(_[C]))if(this.isCDATA(C))T+=this.indentate(S),_[this.options.textNodeName]?T+=this.replaceCDATAarr(_[this.options.textNodeName],_[C]):T+=this.replaceCDATAarr("",_[C]);else{const R=_[C].length;for(let F=0;F<R;F++){const X=_[C][F];X===void 0||(T+=X===null?this.indentate(S)+"<"+C+"/"+this.tagEndChar:typeof X=="object"?this.processTextOrObjNode(X,C,S):this.buildTextNode(X,C,"",S))}}else if(this.options.attrNodeName&&C===this.options.attrNodeName){const R=Object.keys(_[C]),F=R.length;for(let X=0;X<F;X++)b+=" "+R[X]+'="'+this.options.attrValueProcessor(""+_[C][R[X]])+'"'}else T+=this.processTextOrObjNode(_[C],C,S);return{attrStr:b,val:T}},H.exports=M},8398:(H,O,x)=>{const k=function(m){return String.fromCharCode(m)},w={nilChar:k(176),missingChar:k(201),nilPremitive:k(175),missingPremitive:k(200),emptyChar:k(178),emptyValue:k(177),boundryChar:k(179),objStart:k(198),arrStart:k(204),arrayEnd:k(185)},g=[w.nilChar,w.nilPremitive,w.missingChar,w.missingPremitive,w.boundryChar,w.emptyChar,w.emptyValue,w.arrayEnd,w.objStart,w.arrStart],M=function(m,h,u){if(typeof h=="string")return m&&m[0]&&m[0].val!==void 0?a(m[0].val):a(m);{const v=(y=m)===void 0?w.missingChar:y===null?w.nilChar:!(y.child&&Object.keys(y.child).length===0&&(!y.attrsMap||Object.keys(y.attrsMap).length===0))||w.emptyChar;if(v===!0){let _="";if(Array.isArray(h)){_+=w.arrStart;const S=h[0],b=m.length;if(typeof S=="string")for(let T=0;T<b;T++){const C=a(m[T].val);_=d(_,C)}else for(let T=0;T<b;T++){const C=M(m[T],S,u);_=d(_,C)}_+=w.arrayEnd}else{_+=w.objStart;const S=Object.keys(h);Array.isArray(m)&&(m=m[0]);for(let b in S){const T=S[b];let C;C=!u.ignoreAttributes&&m.attrsMap&&m.attrsMap[T]?M(m.attrsMap[T],h[T],u):T===u.textNodeName?M(m.val,h[T],u):M(m.child[T],h[T],u),_=d(_,C)}}return _}return v}var y},a=function(m){switch(m){case void 0:return w.missingPremitive;case null:return w.nilPremitive;case"":return w.emptyValue;default:return m}},d=function(m,h){return c(h[0])||c(m[m.length-1])||(m+=w.boundryChar),m+h},c=function(m){return g.indexOf(m)!==-1},l=x(3543),p=x(7849).buildOptions;O.convert2nimn=function(m,h,u){return u=p(u,l.defaultOptions,l.props),M(m,h,u)}},284:(H,O,x)=>{const k=x(7849),w=function(g,M,a){const d={};if(!M.alwaysCreateTextNode&&(!g.child||k.isEmptyObject(g.child))&&(!g.attrsMap||k.isEmptyObject(g.attrsMap)))return k.isExist(g.val)?g.val:"";if(k.isExist(g.val)&&(typeof g.val!="string"||g.val!==""&&g.val!==M.cdataPositionChar)){const l=k.isTagNameInArrayMode(g.tagname,M.arrayMode,a);d[M.textNodeName]=l?[g.val]:g.val}k.merge(d,g.attrsMap,M.arrayMode);const c=Object.keys(g.child);for(let l=0;l<c.length;l++){const p=c[l];if(g.child[p]&&g.child[p].length>1){d[p]=[];for(let m in g.child[p])g.child[p].hasOwnProperty(m)&&d[p].push(w(g.child[p][m],M,p))}else{const m=w(g.child[p][0],M,p),h=M.arrayMode===!0&&typeof m=="object"||k.isTagNameInArrayMode(p,M.arrayMode,a);d[p]=h?[m]:m}}return d};O.convertToJson=w},7702:(H,O,x)=>{const k=x(7849),w=x(7849).buildOptions,g=x(3543),M=function(a,d,c){let l="{";const p=Object.keys(a.child);for(let h=0;h<p.length;h++){const u=p[h];if(a.child[u]&&a.child[u].length>1){l+='"'+u+'" : [ ';for(let y in a.child[u])l+=M(a.child[u][y],d)+" , ";l=l.substr(0,l.length-1)+" ] "}else l+='"'+u+'" : '+M(a.child[u][0],d)+" ,"}return k.merge(l,a.attrsMap),k.isEmptyObject(l)?k.isExist(a.val)?a.val:"":(k.isExist(a.val)&&(typeof a.val!="string"||a.val!==""&&a.val!==d.cdataPositionChar)&&(l+='"'+d.textNodeName+'" : '+((m=a.val)!==!0&&m!==!1&&isNaN(m)?'"'+m+'"':m)),l[l.length-1]===","&&(l=l.substr(0,l.length-2)),l+"}");var m};O.convertToJsonString=function(a,d){return(d=w(d,g.defaultOptions,g.props)).indentBy=d.indentBy||"",M(a,d)}},6965:(H,O,x)=>{x(5108);const k=x(284),w=x(3543),g=x(3543),M=x(7849).buildOptions,a=x(8383);O.parse=function(d,c={},l){if(l){l===!0&&(l={});const h=a.validate(d,l);if(h!==!0)throw Error(h.err.msg)}c.parseTrueNumberOnly&&c.parseNodeValue!==!1&&!c.numParseOptions&&(c.numParseOptions={leadingZeros:!1});let p=M(c,g.defaultOptions,g.props);const m=w.getTraversalObj(d,p);return k.convertToJson(m,p)},O.convertTonimn=x(8398).convert2nimn,O.getTraversalObj=w.getTraversalObj,O.convertToJson=k.convertToJson,O.convertToJsonString=x(7702).convertToJsonString,O.validate=a.validate,O.j2xParser=x(259),O.parseToNimn=function(d,c,l){return O.convertTonimn(O.getTraversalObj(d,l),c,l)}},7849:(H,O)=>{const x=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",k="["+x+"]["+x+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",w=new RegExp("^"+k+"$");O.isExist=function(g){return g!==void 0},O.isEmptyObject=function(g){return Object.keys(g).length===0},O.merge=function(g,M,a){if(M){const d=Object.keys(M),c=d.length;for(let l=0;l<c;l++)g[d[l]]=a==="strict"?[M[d[l]]]:M[d[l]]}},O.getValue=function(g){return O.isExist(g)?g:""},O.buildOptions=function(g,M,a){let d={};if(!g)return M;for(let c=0;c<a.length;c++)g[a[c]]!==void 0?d[a[c]]=g[a[c]]:d[a[c]]=M[a[c]];return d},O.isTagNameInArrayMode=function(g,M,a){return M!==!1&&(M instanceof RegExp?M.test(g):typeof M=="function"?!!M(g,a):M==="strict")},O.isName=function(g){return w.exec(g)!=null},O.getAllMatches=function(g,M){const a=[];let d=M.exec(g);for(;d;){const c=[];c.startIndex=M.lastIndex-d[0].length;const l=d.length;for(let p=0;p<l;p++)c.push(d[p]);a.push(c),d=M.exec(g)}return a},O.nameRegexp=k},8383:(H,O,x)=>{const k=x(7849),w={allowBooleanAttributes:!1},g=["allowBooleanAttributes"];function M(S,b){const T=b;for(;b<S.length;b++)if(!(S[b]!="?"&&S[b]!=" ")){const C=S.substr(T,b-T);if(b>5&&C==="xml")return u("InvalidXml","XML declaration allowed only at the start of the document.",v(S,b));if(S[b]=="?"&&S[b+1]==">"){b++;break}}return b}function a(S,b){if(S.length>b+5&&S[b+1]==="-"&&S[b+2]==="-"){for(b+=3;b<S.length;b++)if(S[b]==="-"&&S[b+1]==="-"&&S[b+2]===">"){b+=2;break}}else if(S.length>b+8&&S[b+1]==="D"&&S[b+2]==="O"&&S[b+3]==="C"&&S[b+4]==="T"&&S[b+5]==="Y"&&S[b+6]==="P"&&S[b+7]==="E"){let T=1;for(b+=8;b<S.length;b++)if(S[b]==="<")T++;else if(S[b]===">"&&(T--,T===0))break}else if(S.length>b+9&&S[b+1]==="["&&S[b+2]==="C"&&S[b+3]==="D"&&S[b+4]==="A"&&S[b+5]==="T"&&S[b+6]==="A"&&S[b+7]==="["){for(b+=8;b<S.length;b++)if(S[b]==="]"&&S[b+1]==="]"&&S[b+2]===">"){b+=2;break}}return b}O.validate=function(S,b){b=k.buildOptions(b,w,g);const T=[];let C=!1,R=!1;S[0]==="\uFEFF"&&(S=S.substr(1));for(let X=0;X<S.length;X++)if(S[X]==="<"&&S[X+1]==="?"){if(X+=2,X=M(S,X),X.err)return X}else{if(S[X]!=="<"){if(S[X]===" "||S[X]===" "||S[X]===`
59
- `||S[X]==="\r")continue;return u("InvalidChar","char '"+S[X]+"' is not expected.",v(S,X))}{let Z=X;if(X++,S[X]==="!"){X=a(S,X);continue}{let ne=!1;S[X]==="/"&&(ne=!0,X++);let e="";for(;X<S.length&&S[X]!==">"&&S[X]!==" "&&S[X]!==" "&&S[X]!==`
60
- `&&S[X]!=="\r";X++)e+=S[X];if(e=e.trim(),e[e.length-1]==="/"&&(e=e.substring(0,e.length-1),X--),F=e,!k.isName(F)){let n;return n=e.trim().length===0?"Invalid space after '<'.":"Tag '"+e+"' is an invalid name.",u("InvalidTag",n,v(S,X))}const r=l(S,X);if(r===!1)return u("InvalidAttr","Attributes for '"+e+"' have open quote.",v(S,X));let i=r.value;if(X=r.index,i[i.length-1]==="/"){const n=X-i.length;i=i.substring(0,i.length-1);const t=m(i,b);if(t!==!0)return u(t.err.code,t.err.msg,v(S,n+t.err.line));C=!0}else if(ne){if(!r.tagClosed)return u("InvalidTag","Closing tag '"+e+"' doesn't have proper closing.",v(S,X));if(i.trim().length>0)return u("InvalidTag","Closing tag '"+e+"' can't have attributes or invalid starting.",v(S,Z));{const n=T.pop();if(e!==n.tagName){let t=v(S,n.tagStartPos);return u("InvalidTag","Expected closing tag '"+n.tagName+"' (opened in line "+t.line+", col "+t.col+") instead of closing tag '"+e+"'.",v(S,Z))}T.length==0&&(R=!0)}}else{const n=m(i,b);if(n!==!0)return u(n.err.code,n.err.msg,v(S,X-i.length+n.err.line));if(R===!0)return u("InvalidXml","Multiple possible root nodes found.",v(S,X));T.push({tagName:e,tagStartPos:Z}),C=!0}for(X++;X<S.length;X++)if(S[X]==="<"){if(S[X+1]==="!"){X++,X=a(S,X);continue}if(S[X+1]!=="?")break;if(X=M(S,++X),X.err)return X}else if(S[X]==="&"){const n=h(S,X);if(n==-1)return u("InvalidChar","char '&' is not expected.",v(S,X));X=n}S[X]==="<"&&X--}}}var F;return C?T.length==1?u("InvalidTag","Unclosed tag '"+T[0].tagName+"'.",v(S,T[0].tagStartPos)):!(T.length>0)||u("InvalidXml","Invalid '"+JSON.stringify(T.map(X=>X.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):u("InvalidXml","Start tag expected.",1)};const d='"',c="'";function l(S,b){let T="",C="",R=!1;for(;b<S.length;b++){if(S[b]===d||S[b]===c)C===""?C=S[b]:C!==S[b]||(C="");else if(S[b]===">"&&C===""){R=!0;break}T+=S[b]}return C===""&&{value:T,index:b,tagClosed:R}}const p=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function m(S,b){const T=k.getAllMatches(S,p),C={};for(let R=0;R<T.length;R++){if(T[R][1].length===0)return u("InvalidAttr","Attribute '"+T[R][2]+"' has no space in starting.",_(T[R]));if(T[R][3]===void 0&&!b.allowBooleanAttributes)return u("InvalidAttr","boolean attribute '"+T[R][2]+"' is not allowed.",_(T[R]));const F=T[R][2];if(!y(F))return u("InvalidAttr","Attribute '"+F+"' is an invalid name.",_(T[R]));if(C.hasOwnProperty(F))return u("InvalidAttr","Attribute '"+F+"' is repeated.",_(T[R]));C[F]=1}return!0}function h(S,b){if(S[++b]===";")return-1;if(S[b]==="#")return function(C,R){let F=/\d/;for(C[R]==="x"&&(R++,F=/[\da-fA-F]/);R<C.length;R++){if(C[R]===";")return R;if(!C[R].match(F))break}return-1}(S,++b);let T=0;for(;b<S.length;b++,T++)if(!(S[b].match(/\w/)&&T<20)){if(S[b]===";")break;return-1}return b}function u(S,b,T){return{err:{code:S,msg:b,line:T.line||T,col:T.col}}}function y(S){return k.isName(S)}function v(S,b){const T=S.substring(0,b).split(/\r?\n/);return{line:T.length,col:T[T.length-1].length+1}}function _(S){return S.startIndex+S[1].length}},6468:H=>{H.exports=function(O,x,k){this.tagname=O,this.parent=x,this.child={},this.attrsMap={},this.val=k,this.addChild=function(w){Array.isArray(this.child[w.tagname])?this.child[w.tagname].push(w):this.child[w.tagname]=[w]}}},3543:(H,O,x)=>{const k=x(7849),w=x(7849).buildOptions,g=x(6468),M=x(4153);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,k.nameRegexp),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const a={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(v,_){return v},attrValueProcessor:function(v,_){return v},stopNodes:[],alwaysCreateTextNode:!1};O.defaultOptions=a;const d=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];function c(v,_,S){return _&&(S.trimValues&&(_=_.trim()),_=p(_=S.tagValueProcessor(_,v),S.parseNodeValue,S.numParseOptions)),_}function l(v,_){if(_.ignoreNameSpace){const S=v.split(":"),b=v.charAt(0)==="/"?"/":"";if(S[0]==="xmlns")return"";S.length===2&&(v=b+S[1])}return v}function p(v,_,S){if(_&&typeof v=="string"){const b=v.trim();return b==="true"||b!=="false"&&M(v,S)}return k.isExist(v)?v:""}O.props=d;const m=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function h(v,_){if(!_.ignoreAttributes&&typeof v=="string"){v=v.replace(/\r?\n/g," ");const S=k.getAllMatches(v,m),b=S.length,T={};for(let C=0;C<b;C++){const R=l(S[C][1],_);R.length&&(S[C][4]!==void 0?(_.trimValues&&(S[C][4]=S[C][4].trim()),S[C][4]=_.attrValueProcessor(S[C][4],R),T[_.attributeNamePrefix+R]=p(S[C][4],_.parseAttributeValue,_.numParseOptions)):_.allowBooleanAttributes&&(T[_.attributeNamePrefix+R]=!0))}if(!Object.keys(T).length)return;if(_.attrNodeName){const C={};return C[_.attrNodeName]=T,C}return T}}function u(v,_){let S,b="";for(let T=_;T<v.length;T++){let C=v[T];if(S)C===S&&(S="");else if(C==='"'||C==="'")S=C;else{if(C===">")return{data:b,index:T};C===" "&&(C=" ")}b+=C}}function y(v,_,S,b){const T=v.indexOf(_,S);if(T===-1)throw new Error(b);return T+_.length-1}O.getTraversalObj=function(v,_){v=v.replace(/\r\n?/g,`
61
- `),_=w(_,a,d);const S=new g("!xml");let b=S,T="";for(let C=0;C<v.length;C++)if(v[C]==="<")if(v[C+1]==="/"){const R=y(v,">",C,"Closing Tag is not closed.");let F=v.substring(C+2,R).trim();if(_.ignoreNameSpace){const X=F.indexOf(":");X!==-1&&(F=F.substr(X+1))}b&&(b.val?b.val=k.getValue(b.val)+""+c(F,T,_):b.val=c(F,T,_)),_.stopNodes.length&&_.stopNodes.includes(b.tagname)&&(b.child=[],b.attrsMap==null&&(b.attrsMap={}),b.val=v.substr(b.startIndex+1,C-b.startIndex-1)),b=b.parent,T="",C=R}else if(v[C+1]==="?")C=y(v,"?>",C,"Pi Tag is not closed.");else if(v.substr(C+1,3)==="!--")C=y(v,"-->",C,"Comment is not closed.");else if(v.substr(C+1,2)==="!D"){const R=y(v,">",C,"DOCTYPE is not closed.");C=v.substring(C,R).indexOf("[")>=0?v.indexOf("]>",C)+1:R}else if(v.substr(C+1,2)==="!["){const R=y(v,"]]>",C,"CDATA is not closed.")-2,F=v.substring(C+9,R);if(T&&(b.val=k.getValue(b.val)+""+c(b.tagname,T,_),T=""),_.cdataTagName){const X=new g(_.cdataTagName,b,F);b.addChild(X),b.val=k.getValue(b.val)+_.cdataPositionChar,F&&(X.val=F)}else b.val=(b.val||"")+(F||"");C=R+2}else{const R=u(v,C+1);let F=R.data;const X=R.index,Z=F.indexOf(" ");let ne=F,e=!0;if(Z!==-1&&(ne=F.substr(0,Z).replace(/\s\s*$/,""),F=F.substr(Z+1)),_.ignoreNameSpace){const r=ne.indexOf(":");r!==-1&&(ne=ne.substr(r+1),e=ne!==R.data.substr(r+1))}if(b&&T&&b.tagname!=="!xml"&&(b.val=k.getValue(b.val)+""+c(b.tagname,T,_)),F.length>0&&F.lastIndexOf("/")===F.length-1){ne[ne.length-1]==="/"?(ne=ne.substr(0,ne.length-1),F=ne):F=F.substr(0,F.length-1);const r=new g(ne,b,"");ne!==F&&(r.attrsMap=h(F,_)),b.addChild(r)}else{const r=new g(ne,b);_.stopNodes.length&&_.stopNodes.includes(r.tagname)&&(r.startIndex=X),ne!==F&&e&&(r.attrsMap=h(F,_)),b.addChild(r),b=r}T="",C=X}else T+=v[C];return S}},2806:H=>{H.exports=function(O,x){for(var k={},w=Object.keys(O),g=Array.isArray(x),M=0;M<w.length;M++){var a=w[M],d=O[a];(g?x.indexOf(a)!==-1:x(a,d,O))&&(k[a]=d)}return k}},4029:(H,O,x)=>{var k=x(5320),w=Object.prototype.toString,g=Object.prototype.hasOwnProperty,M=function(c,l,p){for(var m=0,h=c.length;m<h;m++)g.call(c,m)&&(p==null?l(c[m],m,c):l.call(p,c[m],m,c))},a=function(c,l,p){for(var m=0,h=c.length;m<h;m++)p==null?l(c.charAt(m),m,c):l.call(p,c.charAt(m),m,c)},d=function(c,l,p){for(var m in c)g.call(c,m)&&(p==null?l(c[m],m,c):l.call(p,c[m],m,c))};H.exports=function(c,l,p){if(!k(l))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=p),w.call(c)==="[object Array]"?M(c,l,m):typeof c=="string"?a(c,l,m):d(c,l,m)}},7648:H=>{var O="Function.prototype.bind called on incompatible ",x=Array.prototype.slice,k=Object.prototype.toString,w="[object Function]";H.exports=function(g){var M=this;if(typeof M!="function"||k.call(M)!==w)throw new TypeError(O+M);for(var a,d=x.call(arguments,1),c=Math.max(0,M.length-d.length),l=[],p=0;p<c;p++)l.push("$"+p);if(a=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var h=M.apply(this,d.concat(x.call(arguments)));return Object(h)===h?h:this}return M.apply(g,d.concat(x.call(arguments)))}),M.prototype){var m=function(){};m.prototype=M.prototype,a.prototype=new m,m.prototype=null}return a}},8612:(H,O,x)=>{var k=x(7648);H.exports=Function.prototype.bind||k},210:(H,O,x)=>{var k,w=SyntaxError,g=Function,M=TypeError,a=function(n){try{return g('"use strict"; return ('+n+").constructor;")()}catch(t){}},d=Object.getOwnPropertyDescriptor;if(d)try{d({},"")}catch(n){d=null}var c=function(){throw new M},l=d?function(){try{return c}catch(n){try{return d(arguments,"callee").get}catch(t){return c}}}():c,p=x(1405)(),m=Object.getPrototypeOf||function(n){return n.__proto__},h={},u=typeof Uint8Array=="undefined"?k:m(Uint8Array),y={"%AggregateError%":typeof AggregateError=="undefined"?k:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?k:ArrayBuffer,"%ArrayIteratorPrototype%":p?m([][Symbol.iterator]()):k,"%AsyncFromSyncIteratorPrototype%":k,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":typeof Atomics=="undefined"?k:Atomics,"%BigInt%":typeof BigInt=="undefined"?k:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?k:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?k:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?k:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?k:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?k:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?k:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":h,"%Int8Array%":typeof Int8Array=="undefined"?k:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?k:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?k:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?m(m([][Symbol.iterator]())):k,"%JSON%":typeof JSON=="object"?JSON:k,"%Map%":typeof Map=="undefined"?k:Map,"%MapIteratorPrototype%":typeof Map!="undefined"&&p?m(new Map()[Symbol.iterator]()):k,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?k:Promise,"%Proxy%":typeof Proxy=="undefined"?k:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?k:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?k:Set,"%SetIteratorPrototype%":typeof Set!="undefined"&&p?m(new Set()[Symbol.iterator]()):k,"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?k:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?m(""[Symbol.iterator]()):k,"%Symbol%":p?Symbol:k,"%SyntaxError%":w,"%ThrowTypeError%":l,"%TypedArray%":u,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array=="undefined"?k:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?k:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?k:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?k:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?k:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?k:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?k:WeakSet};try{null.error}catch(n){var v=m(m(n));y["%Error.prototype%"]=v}var _=function n(t){var o;if(t==="%AsyncFunction%")o=a("async function () {}");else if(t==="%GeneratorFunction%")o=a("function* () {}");else if(t==="%AsyncGeneratorFunction%")o=a("async function* () {}");else if(t==="%AsyncGenerator%"){var s=n("%AsyncGeneratorFunction%");s&&(o=s.prototype)}else if(t==="%AsyncIteratorPrototype%"){var I=n("%AsyncGenerator%");I&&(o=m(I.prototype))}return y[t]=o,o},S={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=x(8612),T=x(7642),C=b.call(Function.call,Array.prototype.concat),R=b.call(Function.apply,Array.prototype.splice),F=b.call(Function.call,String.prototype.replace),X=b.call(Function.call,String.prototype.slice),Z=b.call(Function.call,RegExp.prototype.exec),ne=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,e=/\\(\\)?/g,r=function(n){var t=X(n,0,1),o=X(n,-1);if(t==="%"&&o!=="%")throw new w("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&t!=="%")throw new w("invalid intrinsic syntax, expected opening `%`");var s=[];return F(n,ne,function(I,P,j,A){s[s.length]=j?F(A,e,"$1"):P||I}),s},i=function(n,t){var o,s=n;if(T(S,s)&&(s="%"+(o=S[s])[0]+"%"),T(y,s)){var I=y[s];if(I===h&&(I=_(s)),I===void 0&&!t)throw new M("intrinsic "+n+" exists, but is not available. Please file an issue!");return{alias:o,name:s,value:I}}throw new w("intrinsic "+n+" does not exist!")};H.exports=function(n,t){if(typeof n!="string"||n.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new M('"allowMissing" argument must be a boolean');if(Z(/^%?[^%]*%?$/,n)===null)throw new w("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=r(n),s=o.length>0?o[0]:"",I=i("%"+s+"%",t),P=I.name,j=I.value,A=!1,N=I.alias;N&&(s=N[0],R(o,C([0,1],N)));for(var L=1,z=!0;L<o.length;L+=1){var Y=o[L],D=X(Y,0,1),K=X(Y,-1);if((D==='"'||D==="'"||D==="`"||K==='"'||K==="'"||K==="`")&&D!==K)throw new w("property names with quotes must have matching quotes");if(Y!=="constructor"&&z||(A=!0),T(y,P="%"+(s+="."+Y)+"%"))j=y[P];else if(j!=null){if(!(Y in j)){if(!t)throw new M("base intrinsic for "+n+" exists, but the property is not available.");return}if(d&&L+1>=o.length){var q=d(j,Y);j=(z=!!q)&&"get"in q&&!("originalValue"in q.get)?q.get:j[Y]}else z=T(j,Y),j=j[Y];z&&!A&&(y[P]=j)}}return j}},7296:(H,O,x)=>{var k=x(210)("%Object.getOwnPropertyDescriptor%",!0);if(k)try{k([],"length")}catch(w){k=null}H.exports=k},1044:(H,O,x)=>{var k=x(210)("%Object.defineProperty%",!0),w=function(){if(k)try{return k({},"a",{value:1}),!0}catch(g){return!1}return!1};w.hasArrayLengthDefineBug=function(){if(!w())return null;try{return k([],"length",{value:1}).length!==1}catch(g){return!0}},H.exports=w},1405:(H,O,x)=>{var k=typeof Symbol!="undefined"&&Symbol,w=x(5419);H.exports=function(){return typeof k=="function"&&typeof Symbol=="function"&&typeof k("foo")=="symbol"&&typeof Symbol("bar")=="symbol"&&w()}},5419:H=>{H.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var O={},x=Symbol("test"),k=Object(x);if(typeof x=="string"||Object.prototype.toString.call(x)!=="[object Symbol]"||Object.prototype.toString.call(k)!=="[object Symbol]")return!1;for(x in O[x]=42,O)return!1;if(typeof Object.keys=="function"&&Object.keys(O).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(O).length!==0)return!1;var w=Object.getOwnPropertySymbols(O);if(w.length!==1||w[0]!==x||!Object.prototype.propertyIsEnumerable.call(O,x))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var g=Object.getOwnPropertyDescriptor(O,x);if(g.value!==42||g.enumerable!==!0)return!1}return!0}},6410:(H,O,x)=>{var k=x(5419);H.exports=function(){return k()&&!!Symbol.toStringTag}},7642:(H,O,x)=>{var k=x(8612);H.exports=k.call(Function.call,Object.prototype.hasOwnProperty)},3349:(H,O,x)=>{var k=x(9509).Buffer,w=x(8473).Transform;function g(M){w.call(this),this._block=k.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}x(5717)(g,w),g.prototype._transform=function(M,a,d){var c=null;try{this.update(M,a)}catch(l){c=l}d(c)},g.prototype._flush=function(M){var a=null;try{this.push(this.digest())}catch(d){a=d}M(a)},g.prototype.update=function(M,a){if(function(h,u){if(!k.isBuffer(h)&&typeof h!="string")throw new TypeError("Data must be a string or a buffer")}(M),this._finalized)throw new Error("Digest already called");k.isBuffer(M)||(M=k.from(M,a));for(var d=this._block,c=0;this._blockOffset+M.length-c>=this._blockSize;){for(var l=this._blockOffset;l<this._blockSize;)d[l++]=M[c++];this._update(),this._blockOffset=0}for(;c<M.length;)d[this._blockOffset++]=M[c++];for(var p=0,m=8*M.length;m>0;++p)this._length[p]+=m,(m=this._length[p]/4294967296|0)>0&&(this._length[p]-=4294967296*m);return this},g.prototype._update=function(){throw new Error("_update is not implemented")},g.prototype.digest=function(M){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var a=this._digest();M!==void 0&&(a=a.toString(M)),this._block.fill(0),this._blockOffset=0;for(var d=0;d<4;++d)this._length[d]=0;return a},g.prototype._digest=function(){throw new Error("_digest is not implemented")},H.exports=g},3715:(H,O,x)=>{var k=O;k.utils=x(6436),k.common=x(5772),k.sha=x(9041),k.ripemd=x(2949),k.hmac=x(2344),k.sha1=k.sha.sha1,k.sha256=k.sha.sha256,k.sha224=k.sha.sha224,k.sha384=k.sha.sha384,k.sha512=k.sha.sha512,k.ripemd160=k.ripemd.ripemd160},5772:(H,O,x)=>{var k=x(6436),w=x(9746);function g(){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}O.BlockHash=g,g.prototype.update=function(M,a){if(M=k.toArray(M,a),this.pending?this.pending=this.pending.concat(M):this.pending=M,this.pendingTotal+=M.length,this.pending.length>=this._delta8){var d=(M=this.pending).length%this._delta8;this.pending=M.slice(M.length-d,M.length),this.pending.length===0&&(this.pending=null),M=k.join32(M,0,M.length-d,this.endian);for(var c=0;c<M.length;c+=this._delta32)this._update(M,c,c+this._delta32)}return this},g.prototype.digest=function(M){return this.update(this._pad()),w(this.pending===null),this._digest(M)},g.prototype._pad=function(){var M=this.pendingTotal,a=this._delta8,d=a-(M+this.padLength)%a,c=new Array(d+this.padLength);c[0]=128;for(var l=1;l<d;l++)c[l]=0;if(M<<=3,this.endian==="big"){for(var p=8;p<this.padLength;p++)c[l++]=0;c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=M>>>24&255,c[l++]=M>>>16&255,c[l++]=M>>>8&255,c[l++]=255&M}else for(c[l++]=255&M,c[l++]=M>>>8&255,c[l++]=M>>>16&255,c[l++]=M>>>24&255,c[l++]=0,c[l++]=0,c[l++]=0,c[l++]=0,p=8;p<this.padLength;p++)c[l++]=0;return c}},2344:(H,O,x)=>{var k=x(6436),w=x(9746);function g(M,a,d){if(!(this instanceof g))return new g(M,a,d);this.Hash=M,this.blockSize=M.blockSize/8,this.outSize=M.outSize/8,this.inner=null,this.outer=null,this._init(k.toArray(a,d))}H.exports=g,g.prototype._init=function(M){M.length>this.blockSize&&(M=new this.Hash().update(M).digest()),w(M.length<=this.blockSize);for(var a=M.length;a<this.blockSize;a++)M.push(0);for(a=0;a<M.length;a++)M[a]^=54;for(this.inner=new this.Hash().update(M),a=0;a<M.length;a++)M[a]^=106;this.outer=new this.Hash().update(M)},g.prototype.update=function(M,a){return this.inner.update(M,a),this},g.prototype.digest=function(M){return this.outer.update(this.inner.digest()),this.outer.digest(M)}},2949:(H,O,x)=>{var k=x(6436),w=x(5772),g=k.rotl32,M=k.sum32,a=k.sum32_3,d=k.sum32_4,c=w.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function p(S,b,T,C){return S<=15?b^T^C:S<=31?b&T|~b&C:S<=47?(b|~T)^C:S<=63?b&C|T&~C:b^(T|~C)}function m(S){return S<=15?0:S<=31?1518500249:S<=47?1859775393:S<=63?2400959708:2840853838}function h(S){return S<=15?1352829926:S<=31?1548603684:S<=47?1836072691:S<=63?2053994217:0}k.inherits(l,c),O.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(S,b){for(var T=this.h[0],C=this.h[1],R=this.h[2],F=this.h[3],X=this.h[4],Z=T,ne=C,e=R,r=F,i=X,n=0;n<80;n++){var t=M(g(d(T,p(n,C,R,F),S[u[n]+b],m(n)),v[n]),X);T=X,X=F,F=g(R,10),R=C,C=t,t=M(g(d(Z,p(79-n,ne,e,r),S[y[n]+b],h(n)),_[n]),i),Z=i,i=r,r=g(e,10),e=ne,ne=t}t=a(this.h[1],R,r),this.h[1]=a(this.h[2],F,i),this.h[2]=a(this.h[3],X,Z),this.h[3]=a(this.h[4],T,ne),this.h[4]=a(this.h[0],C,e),this.h[0]=t},l.prototype._digest=function(S){return S==="hex"?k.toHex32(this.h,"little"):k.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],y=[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],v=[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],_=[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]},9041:(H,O,x)=>{O.sha1=x(4761),O.sha224=x(799),O.sha256=x(9344),O.sha384=x(772),O.sha512=x(5900)},4761:(H,O,x)=>{var k=x(6436),w=x(5772),g=x(7038),M=k.rotl32,a=k.sum32,d=k.sum32_5,c=g.ft_1,l=w.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function m(){if(!(this instanceof m))return new m;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}k.inherits(m,l),H.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.prototype._update=function(h,u){for(var y=this.W,v=0;v<16;v++)y[v]=h[u+v];for(;v<y.length;v++)y[v]=M(y[v-3]^y[v-8]^y[v-14]^y[v-16],1);var _=this.h[0],S=this.h[1],b=this.h[2],T=this.h[3],C=this.h[4];for(v=0;v<y.length;v++){var R=~~(v/20),F=d(M(_,5),c(R,S,b,T),C,y[v],p[R]);C=T,T=b,b=M(S,30),S=_,_=F}this.h[0]=a(this.h[0],_),this.h[1]=a(this.h[1],S),this.h[2]=a(this.h[2],b),this.h[3]=a(this.h[3],T),this.h[4]=a(this.h[4],C)},m.prototype._digest=function(h){return h==="hex"?k.toHex32(this.h,"big"):k.split32(this.h,"big")}},799:(H,O,x)=>{var k=x(6436),w=x(9344);function g(){if(!(this instanceof g))return new g;w.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}k.inherits(g,w),H.exports=g,g.blockSize=512,g.outSize=224,g.hmacStrength=192,g.padLength=64,g.prototype._digest=function(M){return M==="hex"?k.toHex32(this.h.slice(0,7),"big"):k.split32(this.h.slice(0,7),"big")}},9344:(H,O,x)=>{var k=x(6436),w=x(5772),g=x(7038),M=x(9746),a=k.sum32,d=k.sum32_4,c=k.sum32_5,l=g.ch32,p=g.maj32,m=g.s0_256,h=g.s1_256,u=g.g0_256,y=g.g1_256,v=w.BlockHash,_=[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 S(){if(!(this instanceof S))return new S;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=_,this.W=new Array(64)}k.inherits(S,v),H.exports=S,S.blockSize=512,S.outSize=256,S.hmacStrength=192,S.padLength=64,S.prototype._update=function(b,T){for(var C=this.W,R=0;R<16;R++)C[R]=b[T+R];for(;R<C.length;R++)C[R]=d(y(C[R-2]),C[R-7],u(C[R-15]),C[R-16]);var F=this.h[0],X=this.h[1],Z=this.h[2],ne=this.h[3],e=this.h[4],r=this.h[5],i=this.h[6],n=this.h[7];for(M(this.k.length===C.length),R=0;R<C.length;R++){var t=c(n,h(e),l(e,r,i),this.k[R],C[R]),o=a(m(F),p(F,X,Z));n=i,i=r,r=e,e=a(ne,t),ne=Z,Z=X,X=F,F=a(t,o)}this.h[0]=a(this.h[0],F),this.h[1]=a(this.h[1],X),this.h[2]=a(this.h[2],Z),this.h[3]=a(this.h[3],ne),this.h[4]=a(this.h[4],e),this.h[5]=a(this.h[5],r),this.h[6]=a(this.h[6],i),this.h[7]=a(this.h[7],n)},S.prototype._digest=function(b){return b==="hex"?k.toHex32(this.h,"big"):k.split32(this.h,"big")}},772:(H,O,x)=>{var k=x(6436),w=x(5900);function g(){if(!(this instanceof g))return new g;w.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}k.inherits(g,w),H.exports=g,g.blockSize=1024,g.outSize=384,g.hmacStrength=192,g.padLength=128,g.prototype._digest=function(M){return M==="hex"?k.toHex32(this.h.slice(0,12),"big"):k.split32(this.h.slice(0,12),"big")}},5900:(H,O,x)=>{var k=x(6436),w=x(5772),g=x(9746),M=k.rotr64_hi,a=k.rotr64_lo,d=k.shr64_hi,c=k.shr64_lo,l=k.sum64,p=k.sum64_hi,m=k.sum64_lo,h=k.sum64_4_hi,u=k.sum64_4_lo,y=k.sum64_5_hi,v=k.sum64_5_lo,_=w.BlockHash,S=[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 b(){if(!(this instanceof b))return new b;_.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=S,this.W=new Array(160)}function T(n,t,o,s,I){var P=n&o^~n&I;return P<0&&(P+=4294967296),P}function C(n,t,o,s,I,P){var j=t&s^~t&P;return j<0&&(j+=4294967296),j}function R(n,t,o,s,I){var P=n&o^n&I^o&I;return P<0&&(P+=4294967296),P}function F(n,t,o,s,I,P){var j=t&s^t&P^s&P;return j<0&&(j+=4294967296),j}function X(n,t){var o=M(n,t,28)^M(t,n,2)^M(t,n,7);return o<0&&(o+=4294967296),o}function Z(n,t){var o=a(n,t,28)^a(t,n,2)^a(t,n,7);return o<0&&(o+=4294967296),o}function ne(n,t){var o=a(n,t,14)^a(n,t,18)^a(t,n,9);return o<0&&(o+=4294967296),o}function e(n,t){var o=M(n,t,1)^M(n,t,8)^d(n,t,7);return o<0&&(o+=4294967296),o}function r(n,t){var o=a(n,t,1)^a(n,t,8)^c(n,t,7);return o<0&&(o+=4294967296),o}function i(n,t){var o=a(n,t,19)^a(t,n,29)^c(n,t,6);return o<0&&(o+=4294967296),o}k.inherits(b,_),H.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(n,t){for(var o=this.W,s=0;s<32;s++)o[s]=n[t+s];for(;s<o.length;s+=2){var I=(D=o[s-4],K=o[s-3],q=void 0,(q=M(D,K,19)^M(K,D,29)^d(D,K,6))<0&&(q+=4294967296),q),P=i(o[s-4],o[s-3]),j=o[s-14],A=o[s-13],N=e(o[s-30],o[s-29]),L=r(o[s-30],o[s-29]),z=o[s-32],Y=o[s-31];o[s]=h(I,P,j,A,N,L,z,Y),o[s+1]=u(I,P,j,A,N,L,z,Y)}var D,K,q},b.prototype._update=function(n,t){this._prepareBlock(n,t);var o,s,I,P=this.W,j=this.h[0],A=this.h[1],N=this.h[2],L=this.h[3],z=this.h[4],Y=this.h[5],D=this.h[6],K=this.h[7],q=this.h[8],U=this.h[9],te=this.h[10],J=this.h[11],ae=this.h[12],xe=this.h[13],ce=this.h[14],fe=this.h[15];g(this.k.length===P.length);for(var Te=0;Te<P.length;Te+=2){var ye=ce,Ee=fe,V=(I=void 0,(I=M(o=q,s=U,14)^M(o,s,18)^M(s,o,9))<0&&(I+=4294967296),I),W=ne(q,U),Q=T(q,0,te,0,ae),ge=C(0,U,0,J,0,xe),oe=this.k[Te],ue=this.k[Te+1],Ne=P[Te],we=P[Te+1],Me=y(ye,Ee,V,W,Q,ge,oe,ue,Ne,we),pt=v(ye,Ee,V,W,Q,ge,oe,ue,Ne,we);ye=X(j,A),Ee=Z(j,A),V=R(j,0,N,0,z),W=F(0,A,0,L,0,Y);var ke=p(ye,Ee,V,W),je=m(ye,Ee,V,W);ce=ae,fe=xe,ae=te,xe=J,te=q,J=U,q=p(D,K,Me,pt),U=m(K,K,Me,pt),D=z,K=Y,z=N,Y=L,N=j,L=A,j=p(Me,pt,ke,je),A=m(Me,pt,ke,je)}l(this.h,0,j,A),l(this.h,2,N,L),l(this.h,4,z,Y),l(this.h,6,D,K),l(this.h,8,q,U),l(this.h,10,te,J),l(this.h,12,ae,xe),l(this.h,14,ce,fe)},b.prototype._digest=function(n){return n==="hex"?k.toHex32(this.h,"big"):k.split32(this.h,"big")}},7038:(H,O,x)=>{var k=x(6436).rotr32;function w(a,d,c){return a&d^~a&c}function g(a,d,c){return a&d^a&c^d&c}function M(a,d,c){return a^d^c}O.ft_1=function(a,d,c,l){return a===0?w(d,c,l):a===1||a===3?M(d,c,l):a===2?g(d,c,l):void 0},O.ch32=w,O.maj32=g,O.p32=M,O.s0_256=function(a){return k(a,2)^k(a,13)^k(a,22)},O.s1_256=function(a){return k(a,6)^k(a,11)^k(a,25)},O.g0_256=function(a){return k(a,7)^k(a,18)^a>>>3},O.g1_256=function(a){return k(a,17)^k(a,19)^a>>>10}},6436:(H,O,x)=>{var k=x(9746),w=x(5717);function g(c,l){return(64512&c.charCodeAt(l))==55296&&!(l<0||l+1>=c.length)&&(64512&c.charCodeAt(l+1))==56320}function M(c){return(c>>>24|c>>>8&65280|c<<8&16711680|(255&c)<<24)>>>0}function a(c){return c.length===1?"0"+c:c}function d(c){return c.length===7?"0"+c:c.length===6?"00"+c:c.length===5?"000"+c:c.length===4?"0000"+c:c.length===3?"00000"+c:c.length===2?"000000"+c:c.length===1?"0000000"+c:c}O.inherits=w,O.toArray=function(c,l){if(Array.isArray(c))return c.slice();if(!c)return[];var p=[];if(typeof c=="string")if(l){if(l==="hex")for((c=c.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(c="0"+c),h=0;h<c.length;h+=2)p.push(parseInt(c[h]+c[h+1],16))}else for(var m=0,h=0;h<c.length;h++){var u=c.charCodeAt(h);u<128?p[m++]=u:u<2048?(p[m++]=u>>6|192,p[m++]=63&u|128):g(c,h)?(u=65536+((1023&u)<<10)+(1023&c.charCodeAt(++h)),p[m++]=u>>18|240,p[m++]=u>>12&63|128,p[m++]=u>>6&63|128,p[m++]=63&u|128):(p[m++]=u>>12|224,p[m++]=u>>6&63|128,p[m++]=63&u|128)}else for(h=0;h<c.length;h++)p[h]=0|c[h];return p},O.toHex=function(c){for(var l="",p=0;p<c.length;p++)l+=a(c[p].toString(16));return l},O.htonl=M,O.toHex32=function(c,l){for(var p="",m=0;m<c.length;m++){var h=c[m];l==="little"&&(h=M(h)),p+=d(h.toString(16))}return p},O.zero2=a,O.zero8=d,O.join32=function(c,l,p,m){var h=p-l;k(h%4==0);for(var u=new Array(h/4),y=0,v=l;y<u.length;y++,v+=4){var _;_=m==="big"?c[v]<<24|c[v+1]<<16|c[v+2]<<8|c[v+3]:c[v+3]<<24|c[v+2]<<16|c[v+1]<<8|c[v],u[y]=_>>>0}return u},O.split32=function(c,l){for(var p=new Array(4*c.length),m=0,h=0;m<c.length;m++,h+=4){var u=c[m];l==="big"?(p[h]=u>>>24,p[h+1]=u>>>16&255,p[h+2]=u>>>8&255,p[h+3]=255&u):(p[h+3]=u>>>24,p[h+2]=u>>>16&255,p[h+1]=u>>>8&255,p[h]=255&u)}return p},O.rotr32=function(c,l){return c>>>l|c<<32-l},O.rotl32=function(c,l){return c<<l|c>>>32-l},O.sum32=function(c,l){return c+l>>>0},O.sum32_3=function(c,l,p){return c+l+p>>>0},O.sum32_4=function(c,l,p,m){return c+l+p+m>>>0},O.sum32_5=function(c,l,p,m,h){return c+l+p+m+h>>>0},O.sum64=function(c,l,p,m){var h=c[l],u=m+c[l+1]>>>0,y=(u<m?1:0)+p+h;c[l]=y>>>0,c[l+1]=u},O.sum64_hi=function(c,l,p,m){return(l+m>>>0<l?1:0)+c+p>>>0},O.sum64_lo=function(c,l,p,m){return l+m>>>0},O.sum64_4_hi=function(c,l,p,m,h,u,y,v){var _=0,S=l;return _+=(S=S+m>>>0)<l?1:0,_+=(S=S+u>>>0)<u?1:0,c+p+h+y+(_+=(S=S+v>>>0)<v?1:0)>>>0},O.sum64_4_lo=function(c,l,p,m,h,u,y,v){return l+m+u+v>>>0},O.sum64_5_hi=function(c,l,p,m,h,u,y,v,_,S){var b=0,T=l;return b+=(T=T+m>>>0)<l?1:0,b+=(T=T+u>>>0)<u?1:0,b+=(T=T+v>>>0)<v?1:0,c+p+h+y+_+(b+=(T=T+S>>>0)<S?1:0)>>>0},O.sum64_5_lo=function(c,l,p,m,h,u,y,v,_,S){return l+m+u+v+S>>>0},O.rotr64_hi=function(c,l,p){return(l<<32-p|c>>>p)>>>0},O.rotr64_lo=function(c,l,p){return(c<<32-p|l>>>p)>>>0},O.shr64_hi=function(c,l,p){return c>>>p},O.shr64_lo=function(c,l,p){return(c<<32-p|l>>>p)>>>0}},2156:(H,O,x)=>{var k=x(3715),w=x(4504),g=x(9746);function M(a){if(!(this instanceof M))return new M(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var d=w.toArray(a.entropy,a.entropyEnc||"hex"),c=w.toArray(a.nonce,a.nonceEnc||"hex"),l=w.toArray(a.pers,a.persEnc||"hex");g(d.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(d,c,l)}H.exports=M,M.prototype._init=function(a,d,c){var l=a.concat(d).concat(c);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var p=0;p<this.V.length;p++)this.K[p]=0,this.V[p]=1;this._update(l),this._reseed=1,this.reseedInterval=281474976710656},M.prototype._hmac=function(){return new k.hmac(this.hash,this.K)},M.prototype._update=function(a){var d=this._hmac().update(this.V).update([0]);a&&(d=d.update(a)),this.K=d.digest(),this.V=this._hmac().update(this.V).digest(),a&&(this.K=this._hmac().update(this.V).update([1]).update(a).digest(),this.V=this._hmac().update(this.V).digest())},M.prototype.reseed=function(a,d,c,l){typeof d!="string"&&(l=c,c=d,d=null),a=w.toArray(a,d),c=w.toArray(c,l),g(a.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(a.concat(c||[])),this._reseed=1},M.prototype.generate=function(a,d,c,l){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof d!="string"&&(l=c,c=d,d=null),c&&(c=w.toArray(c,l||"hex"),this._update(c));for(var p=[];p.length<a;)this.V=this._hmac().update(this.V).digest(),p=p.concat(this.V);var m=p.slice(0,a);return this._update(c),this._reseed++,w.encode(m,d)}},9267:(H,O,x)=>{var k=x(8501),w=x(8575),g=H.exports;for(var M in k)k.hasOwnProperty(M)&&(g[M]=k[M]);function a(d){if(typeof d=="string"&&(d=w.parse(d)),d.protocol||(d.protocol="https:"),d.protocol!=="https:")throw new Error('Protocol "'+d.protocol+'" not supported. Expected "https:"');return d}g.request=function(d,c){return d=a(d),k.request.call(this,d,c)},g.get=function(d,c){return d=a(d),k.get.call(this,d,c)}},645:(H,O)=>{O.read=function(x,k,w,g,M){var a,d,c=8*M-g-1,l=(1<<c)-1,p=l>>1,m=-7,h=w?M-1:0,u=w?-1:1,y=x[k+h];for(h+=u,a=y&(1<<-m)-1,y>>=-m,m+=c;m>0;a=256*a+x[k+h],h+=u,m-=8);for(d=a&(1<<-m)-1,a>>=-m,m+=g;m>0;d=256*d+x[k+h],h+=u,m-=8);if(a===0)a=1-p;else{if(a===l)return d?NaN:1/0*(y?-1:1);d+=Math.pow(2,g),a-=p}return(y?-1:1)*d*Math.pow(2,a-g)},O.write=function(x,k,w,g,M,a){var d,c,l,p=8*a-M-1,m=(1<<p)-1,h=m>>1,u=M===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=g?0:a-1,v=g?1:-1,_=k<0||k===0&&1/k<0?1:0;for(k=Math.abs(k),isNaN(k)||k===1/0?(c=isNaN(k)?1:0,d=m):(d=Math.floor(Math.log(k)/Math.LN2),k*(l=Math.pow(2,-d))<1&&(d--,l*=2),(k+=d+h>=1?u/l:u*Math.pow(2,1-h))*l>=2&&(d++,l/=2),d+h>=m?(c=0,d=m):d+h>=1?(c=(k*l-1)*Math.pow(2,M),d+=h):(c=k*Math.pow(2,h-1)*Math.pow(2,M),d=0));M>=8;x[w+y]=255&c,y+=v,c/=256,M-=8);for(d=d<<M|c,p+=M;p>0;x[w+y]=255&d,y+=v,d/=256,p-=8);x[w+y-v]|=128*_}},5717:H=>{typeof Object.create=="function"?H.exports=function(O,x){x&&(O.super_=x,O.prototype=Object.create(x.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}))}:H.exports=function(O,x){if(x){O.super_=x;var k=function(){};k.prototype=x.prototype,O.prototype=new k,O.prototype.constructor=O}}},6512:function(H){(function(O){const x="(0?\\d+|0x[a-f0-9]+)",k={fourOctet:new RegExp(`^${x}\\.${x}\\.${x}\\.${x}$`,"i"),threeOctet:new RegExp(`^${x}\\.${x}\\.${x}$`,"i"),twoOctet:new RegExp(`^${x}\\.${x}$`,"i"),longValue:new RegExp(`^${x}$`,"i")},w=new RegExp("^0[0-7]+$","i"),g=new RegExp("^0x[a-f0-9]+$","i"),M="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",d={zoneIndex:new RegExp(M,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${M})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${x}\\.${x}\\.${x}\\.${x}(${M})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${x}\\.${x}\\.${x}\\.${x}(${M})?$`,"i")};function c(u,y){if(u.indexOf("::")!==u.lastIndexOf("::"))return null;let v,_,S=0,b=-1,T=(u.match(d.zoneIndex)||[])[0];for(T&&(T=T.substring(1),u=u.replace(/%.+$/,""));(b=u.indexOf(":",b+1))>=0;)S++;if(u.substr(0,2)==="::"&&S--,u.substr(-2,2)==="::"&&S--,S>y)return null;for(_=y-S,v=":";_--;)v+="0:";return(u=u.replace("::",v))[0]===":"&&(u=u.slice(1)),u[u.length-1]===":"&&(u=u.slice(0,-1)),{parts:y=function(){const C=u.split(":"),R=[];for(let F=0;F<C.length;F++)R.push(parseInt(C[F],16));return R}(),zoneId:T}}function l(u,y,v,_){if(u.length!==y.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let S,b=0;for(;_>0;){if(S=v-_,S<0&&(S=0),u[b]>>S!=y[b]>>S)return!1;_-=v,b+=1}return!0}function p(u){if(g.test(u))return parseInt(u,16);if(u[0]==="0"&&!isNaN(parseInt(u[1],10))){if(w.test(u))return parseInt(u,8);throw new Error(`ipaddr: cannot parse ${u} as octal`)}return parseInt(u,10)}function m(u,y){for(;u.length<y;)u=`0${u}`;return u}const h={};h.IPv4=function(){function u(y){if(y.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let v,_;for(v=0;v<y.length;v++)if(_=y[v],!(0<=_&&_<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=y}return u.prototype.SpecialRanges={unspecified:[[new u([0,0,0,0]),8]],broadcast:[[new u([255,255,255,255]),32]],multicast:[[new u([224,0,0,0]),4]],linkLocal:[[new u([169,254,0,0]),16]],loopback:[[new u([127,0,0,0]),8]],carrierGradeNat:[[new u([100,64,0,0]),10]],private:[[new u([10,0,0,0]),8],[new u([172,16,0,0]),12],[new u([192,168,0,0]),16]],reserved:[[new u([192,0,0,0]),24],[new u([192,0,2,0]),24],[new u([192,88,99,0]),24],[new u([198,51,100,0]),24],[new u([203,0,113,0]),24],[new u([240,0,0,0]),4]]},u.prototype.kind=function(){return"ipv4"},u.prototype.match=function(y,v){let _;if(v===void 0&&(_=y,y=_[0],v=_[1]),y.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,y.octets,8,v)},u.prototype.prefixLengthFromSubnetMask=function(){let y=0,v=!1;const _={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0};let S,b,T;for(S=3;S>=0;S-=1){if(b=this.octets[S],!(b in _)||(T=_[b],v&&T!==0))return null;T!==8&&(v=!0),y+=T}return 32-y},u.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){return this.octets.slice(0)},u.prototype.toIPv4MappedAddress=function(){return h.IPv6.parse(`::ffff:${this.toString()}`)},u.prototype.toNormalizedString=function(){return this.toString()},u.prototype.toString=function(){return this.octets.join(".")},u}(),h.IPv4.broadcastAddressFromCIDR=function(u){try{const y=this.parseCIDR(u),v=y[0].toByteArray(),_=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),S=[];let b=0;for(;b<4;)S.push(parseInt(v[b],10)|255^parseInt(_[b],10)),b++;return new this(S)}catch(y){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.isIPv4=function(u){return this.parser(u)!==null},h.IPv4.isValid=function(u){try{return new this(this.parser(u)),!0}catch(y){return!1}},h.IPv4.isValidFourPartDecimal=function(u){return!(!h.IPv4.isValid(u)||!u.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},h.IPv4.networkAddressFromCIDR=function(u){let y,v,_,S,b;try{for(y=this.parseCIDR(u),_=y[0].toByteArray(),b=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),S=[],v=0;v<4;)S.push(parseInt(_[v],10)&parseInt(b[v],10)),v++;return new this(S)}catch(T){throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},h.IPv4.parse=function(u){const y=this.parser(u);if(y===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(y)},h.IPv4.parseCIDR=function(u){let y;if(y=u.match(/^(.+)\/(\d+)$/)){const v=parseInt(y[2]);if(v>=0&&v<=32){const _=[this.parse(y[1]),v];return Object.defineProperty(_,"toString",{value:function(){return this.join("/")}}),_}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},h.IPv4.parser=function(u){let y,v,_;if(y=u.match(k.fourOctet))return function(){const S=y.slice(1,6),b=[];for(let T=0;T<S.length;T++)v=S[T],b.push(p(v));return b}();if(y=u.match(k.longValue)){if(_=p(y[1]),_>4294967295||_<0)throw new Error("ipaddr: address outside defined range");return function(){const S=[];let b;for(b=0;b<=24;b+=8)S.push(_>>b&255);return S}().reverse()}return(y=u.match(k.twoOctet))?function(){const S=y.slice(1,4),b=[];if(_=p(S[1]),_>16777215||_<0)throw new Error("ipaddr: address outside defined range");return b.push(p(S[0])),b.push(_>>16&255),b.push(_>>8&255),b.push(255&_),b}():(y=u.match(k.threeOctet))?function(){const S=y.slice(1,5),b=[];if(_=p(S[2]),_>65535||_<0)throw new Error("ipaddr: address outside defined range");return b.push(p(S[0])),b.push(p(S[1])),b.push(_>>8&255),b.push(255&_),b}():null},h.IPv4.subnetMaskFromPrefixLength=function(u){if((u=parseInt(u))<0||u>32)throw new Error("ipaddr: invalid IPv4 prefix length");const y=[0,0,0,0];let v=0;const _=Math.floor(u/8);for(;v<_;)y[v]=255,v++;return _<4&&(y[_]=Math.pow(2,u%8)-1<<8-u%8),new this(y)},h.IPv6=function(){function u(y,v){let _,S;if(y.length===16)for(this.parts=[],_=0;_<=14;_+=2)this.parts.push(y[_]<<8|y[_+1]);else{if(y.length!==8)throw new Error("ipaddr: ipv6 part count should be 8 or 16");this.parts=y}for(_=0;_<this.parts.length;_++)if(S=this.parts[_],!(0<=S&&S<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");v&&(this.zoneId=v)}return u.prototype.SpecialRanges={unspecified:[new u([0,0,0,0,0,0,0,0]),128],linkLocal:[new u([65152,0,0,0,0,0,0,0]),10],multicast:[new u([65280,0,0,0,0,0,0,0]),8],loopback:[new u([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new u([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new u([0,0,0,0,0,65535,0,0]),96],rfc6145:[new u([0,0,0,0,65535,0,0,0]),96],rfc6052:[new u([100,65435,0,0,0,0,0,0]),96],"6to4":[new u([8194,0,0,0,0,0,0,0]),16],teredo:[new u([8193,0,0,0,0,0,0,0]),32],reserved:[[new u([8193,3512,0,0,0,0,0,0]),32]]},u.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},u.prototype.kind=function(){return"ipv6"},u.prototype.match=function(y,v){let _;if(v===void 0&&(_=y,y=_[0],v=_[1]),y.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,y.parts,16,v)},u.prototype.prefixLengthFromSubnetMask=function(){let y=0,v=!1;const _={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0};let S,b;for(let T=7;T>=0;T-=1){if(S=this.parts[T],!(S in _)||(b=_[S],v&&b!==0))return null;b!==16&&(v=!0),y+=b}return 128-y},u.prototype.range=function(){return h.subnetMatch(this,this.SpecialRanges)},u.prototype.toByteArray=function(){let y;const v=[],_=this.parts;for(let S=0;S<_.length;S++)y=_[S],v.push(y>>8),v.push(255&y);return v},u.prototype.toFixedLengthString=function(){const y=function(){const _=[];for(let S=0;S<this.parts.length;S++)_.push(m(this.parts[S].toString(16),4));return _}.call(this).join(":");let v="";return this.zoneId&&(v=`%${this.zoneId}`),y+v},u.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");const y=this.parts.slice(-2),v=y[0],_=y[1];return new h.IPv4([v>>8,255&v,_>>8,255&_])},u.prototype.toNormalizedString=function(){const y=function(){const _=[];for(let S=0;S<this.parts.length;S++)_.push(this.parts[S].toString(16));return _}.call(this).join(":");let v="";return this.zoneId&&(v=`%${this.zoneId}`),y+v},u.prototype.toRFC5952String=function(){const y=/((^|:)(0(:|$)){2,})/g,v=this.toNormalizedString();let _,S=0,b=-1;for(;_=y.exec(v);)_[0].length>b&&(S=_.index,b=_[0].length);return b<0?v:`${v.substring(0,S)}::${v.substring(S+b)}`},u.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},u}(),h.IPv6.broadcastAddressFromCIDR=function(u){try{const y=this.parseCIDR(u),v=y[0].toByteArray(),_=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),S=[];let b=0;for(;b<16;)S.push(parseInt(v[b],10)|255^parseInt(_[b],10)),b++;return new this(S)}catch(y){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${y})`)}},h.IPv6.isIPv6=function(u){return this.parser(u)!==null},h.IPv6.isValid=function(u){if(typeof u=="string"&&u.indexOf(":")===-1)return!1;try{const y=this.parser(u);return new this(y.parts,y.zoneId),!0}catch(y){return!1}},h.IPv6.networkAddressFromCIDR=function(u){let y,v,_,S,b;try{for(y=this.parseCIDR(u),_=y[0].toByteArray(),b=this.subnetMaskFromPrefixLength(y[1]).toByteArray(),S=[],v=0;v<16;)S.push(parseInt(_[v],10)&parseInt(b[v],10)),v++;return new this(S)}catch(T){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${T})`)}},h.IPv6.parse=function(u){const y=this.parser(u);if(y.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(y.parts,y.zoneId)},h.IPv6.parseCIDR=function(u){let y,v,_;if((v=u.match(/^(.+)\/(\d+)$/))&&(y=parseInt(v[2]),y>=0&&y<=128))return _=[this.parse(v[1]),y],Object.defineProperty(_,"toString",{value:function(){return this.join("/")}}),_;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},h.IPv6.parser=function(u){let y,v,_,S,b,T;if(_=u.match(d.deprecatedTransitional))return this.parser(`::ffff:${_[1]}`);if(d.native.test(u))return c(u,8);if((_=u.match(d.transitional))&&(T=_[6]||"",y=c(_[1].slice(0,-1)+T,6),y.parts)){for(b=[parseInt(_[2]),parseInt(_[3]),parseInt(_[4]),parseInt(_[5])],v=0;v<b.length;v++)if(S=b[v],!(0<=S&&S<=255))return null;return y.parts.push(b[0]<<8|b[1]),y.parts.push(b[2]<<8|b[3]),{parts:y.parts,zoneId:y.zoneId}}return null},h.IPv6.subnetMaskFromPrefixLength=function(u){if((u=parseInt(u))<0||u>128)throw new Error("ipaddr: invalid IPv6 prefix length");const y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];let v=0;const _=Math.floor(u/8);for(;v<_;)y[v]=255,v++;return _<16&&(y[_]=Math.pow(2,u%8)-1<<8-u%8),new this(y)},h.fromByteArray=function(u){const y=u.length;if(y===4)return new h.IPv4(u);if(y===16)return new h.IPv6(u);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},h.isValid=function(u){return h.IPv6.isValid(u)||h.IPv4.isValid(u)},h.parse=function(u){if(h.IPv6.isValid(u))return h.IPv6.parse(u);if(h.IPv4.isValid(u))return h.IPv4.parse(u);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},h.parseCIDR=function(u){try{return h.IPv6.parseCIDR(u)}catch(y){try{return h.IPv4.parseCIDR(u)}catch(v){throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},h.process=function(u){const y=this.parse(u);return y.kind()==="ipv6"&&y.isIPv4MappedAddress()?y.toIPv4Address():y},h.subnetMatch=function(u,y,v){let _,S,b,T;for(S in v==null&&(v="unicast"),y)if(Object.prototype.hasOwnProperty.call(y,S)){for(b=y[S],!b[0]||b[0]instanceof Array||(b=[b]),_=0;_<b.length;_++)if(T=b[_],u.kind()===T[0].kind()&&u.match.apply(u,T))return S}return v},H.exports?H.exports=h:O.ipaddr=h})(this)},2584:(H,O,x)=>{var k=x(6410)(),w=x(1924)("Object.prototype.toString"),g=function(d){return!(k&&d&&typeof d=="object"&&Symbol.toStringTag in d)&&w(d)==="[object Arguments]"},M=function(d){return!!g(d)||d!==null&&typeof d=="object"&&typeof d.length=="number"&&d.length>=0&&w(d)!=="[object Array]"&&w(d.callee)==="[object Function]"},a=function(){return g(arguments)}();g.isLegacyArguments=M,H.exports=a?g:M},5320:H=>{var O,x,k=Function.prototype.toString,w=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply;if(typeof w=="function"&&typeof Object.defineProperty=="function")try{O=Object.defineProperty({},"length",{get:function(){throw x}}),x={},w(function(){throw 42},null,O)}catch(h){h!==x&&(w=null)}else w=null;var g=/^\s*class\b/,M=function(h){try{var u=k.call(h);return g.test(u)}catch(y){return!1}},a=function(h){try{return!M(h)&&(k.call(h),!0)}catch(u){return!1}},d=Object.prototype.toString,c=typeof Symbol=="function"&&!!Symbol.toStringTag,l=!(0 in[,]),p=function(){return!1};if(typeof document=="object"){var m=document.all;d.call(m)===d.call(document.all)&&(p=function(h){if((l||!h)&&(h===void 0||typeof h=="object"))try{var u=d.call(h);return(u==="[object HTMLAllCollection]"||u==="[object HTML document.all class]"||u==="[object HTMLCollection]"||u==="[object Object]")&&h("")==null}catch(y){}return!1})}H.exports=w?function(h){if(p(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;try{w(h,null,O)}catch(u){if(u!==x)return!1}return!M(h)&&a(h)}:function(h){if(p(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;if(c)return a(h);if(M(h))return!1;var u=d.call(h);return!(u!=="[object Function]"&&u!=="[object GeneratorFunction]"&&!/^\[object HTML/.test(u))&&a(h)}},8662:(H,O,x)=>{var k,w=Object.prototype.toString,g=Function.prototype.toString,M=/^\s*(?:function)?\*/,a=x(6410)(),d=Object.getPrototypeOf;H.exports=function(c){if(typeof c!="function")return!1;if(M.test(g.call(c)))return!0;if(!a)return w.call(c)==="[object GeneratorFunction]";if(!d)return!1;if(k===void 0){var l=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(p){}}();k=!!l&&d(l)}return d(c)===k}},8611:H=>{H.exports=function(O){return O!=O}},360:(H,O,x)=>{var k=x(5559),w=x(4289),g=x(8611),M=x(9415),a=x(3194),d=k(M(),Number);w(d,{getPolyfill:M,implementation:g,shim:a}),H.exports=d},9415:(H,O,x)=>{var k=x(8611);H.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:k}},3194:(H,O,x)=>{var k=x(4289),w=x(9415);H.exports=function(){var g=w();return k(Number,{isNaN:g},{isNaN:function(){return Number.isNaN!==g}}),g}},5692:(H,O,x)=>{var k=x(4029),w=x(3083),g=x(1924),M=g("Object.prototype.toString"),a=x(6410)(),d=x(7296),c=typeof globalThis=="undefined"?x.g:globalThis,l=w(),p=g("Array.prototype.indexOf",!0)||function(y,v){for(var _=0;_<y.length;_+=1)if(y[_]===v)return _;return-1},m=g("String.prototype.slice"),h={},u=Object.getPrototypeOf;a&&d&&u&&k(l,function(y){var v=new c[y];if(Symbol.toStringTag in v){var _=u(v),S=d(_,Symbol.toStringTag);if(!S){var b=u(_);S=d(b,Symbol.toStringTag)}h[y]=S.get}}),H.exports=function(y){if(!y||typeof y!="object")return!1;if(!a||!(Symbol.toStringTag in y)){var v=m(M(y),8,-1);return p(l,v)>-1}return!!d&&function(_){var S=!1;return k(h,function(b,T){if(!S)try{S=b.call(_)===T}catch(C){}}),S}(y)}},6650:(H,O,x)=>{var k=x(8764).Buffer,w=x(9539),g=x(2830).Transform;H.exports=function(a){return new M(a)};var M=H.exports.JSONStream=function(a){a=a||{},g.call(this,a),this._writableState.objectMode=!1,this._readableState.objectMode=!0,this._async=a.async||!1};w.inherits(M,g),M.prototype._transform=function(a,d,c){k.isBuffer(a)||(a=new k(a)),this._buffer&&(a=k.concat([this._buffer,a]));for(var l=0,p=0;++l<=a.length;)if(a[l]===10||l===a.length){var m;try{m=JSON.parse(a.slice(p,l))}catch(h){}m&&(this.push(m),m=null),a[l]===10&&(p=++l)}return this._buffer=a.slice(p),this._async?void setImmediate(c):void c()}},6486:function(H,O,x){var k;H=x.nmd(H),function(){var w,g=200,M="Expected a function",a="__lodash_hash_undefined__",d="__lodash_placeholder__",c=1,l=2,p=4,m=1,h=2,u=1,y=2,v=4,_=8,S=16,b=32,T=64,C=128,R=256,F=512,X=800,Z=16,ne=1/0,e=9007199254740991,r=17976931348623157e292,i=NaN,n=4294967295,t=n-1,o=n>>>1,s=[["ary",C],["bind",u],["bindKey",y],["curry",_],["curryRight",S],["flip",F],["partial",b],["partialRight",T],["rearg",R]],I="[object Arguments]",P="[object Array]",j="[object AsyncFunction]",A="[object Boolean]",N="[object Date]",L="[object DOMException]",z="[object Error]",Y="[object Function]",D="[object GeneratorFunction]",K="[object Map]",q="[object Number]",U="[object Null]",te="[object Object]",J="[object Promise]",ae="[object Proxy]",xe="[object RegExp]",ce="[object Set]",fe="[object String]",Te="[object Symbol]",ye="[object Undefined]",Ee="[object WeakMap]",V="[object ArrayBuffer]",W="[object DataView]",Q="[object Float32Array]",ge="[object Float64Array]",oe="[object Int8Array]",ue="[object Int16Array]",Ne="[object Int32Array]",we="[object Uint8Array]",Me="[object Uint8ClampedArray]",pt="[object Uint16Array]",ke="[object Uint32Array]",je=/\b__p \+= '';/g,Et=/\b(__p \+=) '' \+/g,Ie=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xe=/&(?:amp|lt|gt|quot|#39);/g,Ct=/[&<>"']/g,De=RegExp(Xe.source),Ke=RegExp(Ct.source),Nt=/<%-([\s\S]+?)%>/g,Pe=/<%([\s\S]+?)%>/g,He=/<%=([\s\S]+?)%>/g,vt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Ze=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(St.source),Ge=/^\s+/,It=/\s/,qe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ye=/\{\n\/\* \[wrapped with (.+)\] \*/,Dt=/,? & /,Le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/[()=,{}\[\]\/\s]/,$t=/\\(\\)?/g,Fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Qe=/\w*$/,Ut=/^[-+]0x[0-9a-f]+$/i,$e=/^0b[01]+$/i,nt=/^\[object .+?Constructor\]$/,zt=/^0o[0-7]+$/i,Ue=/^(?:0|[1-9]\d*)$/,tt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Tt=/($^)/,Rt=/['\n\r\u2028\u2029\\]/g,Zt="\\ud800-\\udfff",on="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",tn="\\u2700-\\u27bf",an="a-z\\xdf-\\xf6\\xf8-\\xff",sn="A-Z\\xc0-\\xd6\\xd8-\\xde",un="\\ufe0e\\ufe0f",cn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ln="["+Zt+"]",hn="["+cn+"]",Gt="["+on+"]",pn="\\d+",mn="["+tn+"]",Qt="["+an+"]",en="[^"+Zt+cn+pn+tn+an+sn+"]",Yt="\\ud83c[\\udffb-\\udfff]",fn="[^"+Zt+"]",nn="(?:\\ud83c[\\udde6-\\uddff]){2}",ei="[\\ud800-\\udbff][\\udc00-\\udfff]",Zn="["+sn+"]",pr="\\u200d",fr="(?:"+Qt+"|"+en+")",Nr="(?:"+Zn+"|"+en+")",dr="(?:['’](?:d|ll|m|re|s|t|ve))?",Ti="(?:['’](?:D|LL|M|RE|S|T|VE))?",mr="(?:"+Gt+"|"+Yt+")?",gr="["+un+"]?",Rr=gr+mr+"(?:"+pr+"(?:"+[fn,nn,ei].join("|")+")"+gr+mr+")*",ve="(?:"+[mn,nn,ei].join("|")+")"+Rr,le="(?:"+[fn+Gt+"?",Gt,nn,ei,ln].join("|")+")",me=RegExp("['’]","g"),Ae=RegExp(Gt,"g"),We=RegExp(Yt+"(?="+Yt+")|"+le+Rr,"g"),ze=RegExp([Zn+"?"+Qt+"+"+dr+"(?="+[hn,Zn,"$"].join("|")+")",Nr+"+"+Ti+"(?="+[hn,Zn+fr,"$"].join("|")+")",Zn+"?"+fr+"+"+dr,Zn+"+"+Ti,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pn,ve].join("|"),"g"),Je=RegExp("["+pr+Zt+on+un+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ct=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xt=-1,_t={};_t[Q]=_t[ge]=_t[oe]=_t[ue]=_t[Ne]=_t[we]=_t[Me]=_t[pt]=_t[ke]=!0,_t[I]=_t[P]=_t[V]=_t[A]=_t[W]=_t[N]=_t[z]=_t[Y]=_t[K]=_t[q]=_t[te]=_t[xe]=_t[ce]=_t[fe]=_t[Ee]=!1;var gt={};gt[I]=gt[P]=gt[V]=gt[W]=gt[A]=gt[N]=gt[Q]=gt[ge]=gt[oe]=gt[ue]=gt[Ne]=gt[K]=gt[q]=gt[te]=gt[xe]=gt[ce]=gt[fe]=gt[Te]=gt[we]=gt[Me]=gt[pt]=gt[ke]=!0,gt[z]=gt[Y]=gt[Ee]=!1;var Wt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Xt=parseFloat,Ln=parseInt,yt=typeof x.g=="object"&&x.g&&x.g.Object===Object&&x.g,bt=typeof self=="object"&&self&&self.Object===Object&&self,dt=yt||bt||Function("return this")(),Ot=O&&!O.nodeType&&O,dn=Ot&&H&&!H.nodeType&&H,En=dn&&dn.exports===Ot,Sn=En&&yt.process,bn=function(){try{return dn&&dn.require&&dn.require("util").types||Sn&&Sn.binding&&Sn.binding("util")}catch(Ve){}}(),ci=bn&&bn.isArrayBuffer,qn=bn&&bn.isDate,fi=bn&&bn.isMap,$a=bn&&bn.isRegExp,Ua=bn&&bn.isSet,za=bn&&bn.isTypedArray;function Gn(Ve,at,ut){switch(ut.length){case 0:return Ve.call(at);case 1:return Ve.call(at,ut[0]);case 2:return Ve.call(at,ut[0],ut[1]);case 3:return Ve.call(at,ut[0],ut[1],ut[2])}return Ve.apply(at,ut)}function _c(Ve,at,ut,mt){for(var qt=-1,rn=Ve==null?0:Ve.length;++qt<rn;){var Tn=Ve[qt];at(mt,Tn,ut(Tn),Ve)}return mt}function ti(Ve,at){for(var ut=-1,mt=Ve==null?0:Ve.length;++ut<mt&&at(Ve[ut],ut,Ve)!==!1;);return Ve}function Ec(Ve,at){for(var ut=Ve==null?0:Ve.length;ut--&&at(Ve[ut],ut,Ve)!==!1;);return Ve}function Va(Ve,at){for(var ut=-1,mt=Ve==null?0:Ve.length;++ut<mt;)if(!at(Ve[ut],ut,Ve))return!1;return!0}function Oi(Ve,at){for(var ut=-1,mt=Ve==null?0:Ve.length,qt=0,rn=[];++ut<mt;){var Tn=Ve[ut];at(Tn,ut,Ve)&&(rn[qt++]=Tn)}return rn}function Pr(Ve,at){return!(Ve==null||!Ve.length)&&Qi(Ve,at,0)>-1}function jo(Ve,at,ut){for(var mt=-1,qt=Ve==null?0:Ve.length;++mt<qt;)if(ut(at,Ve[mt]))return!0;return!1}function Mn(Ve,at){for(var ut=-1,mt=Ve==null?0:Ve.length,qt=Array(mt);++ut<mt;)qt[ut]=at(Ve[ut],ut,Ve);return qt}function ji(Ve,at){for(var ut=-1,mt=at.length,qt=Ve.length;++ut<mt;)Ve[qt+ut]=at[ut];return Ve}function No(Ve,at,ut,mt){var qt=-1,rn=Ve==null?0:Ve.length;for(mt&&rn&&(ut=Ve[++qt]);++qt<rn;)ut=at(ut,Ve[qt],qt,Ve);return ut}function kc(Ve,at,ut,mt){var qt=Ve==null?0:Ve.length;for(mt&&qt&&(ut=Ve[--qt]);qt--;)ut=at(ut,Ve[qt],qt,Ve);return ut}function Ro(Ve,at){for(var ut=-1,mt=Ve==null?0:Ve.length;++ut<mt;)if(at(Ve[ut],ut,Ve))return!0;return!1}var Sc=Po("length");function Ka(Ve,at,ut){var mt;return ut(Ve,function(qt,rn,Tn){if(at(qt,rn,Tn))return mt=rn,!1}),mt}function Cr(Ve,at,ut,mt){for(var qt=Ve.length,rn=ut+(mt?1:-1);mt?rn--:++rn<qt;)if(at(Ve[rn],rn,Ve))return rn;return-1}function Qi(Ve,at,ut){return at==at?function(mt,qt,rn){for(var Tn=rn-1,di=mt.length;++Tn<di;)if(mt[Tn]===qt)return Tn;return-1}(Ve,at,ut):Cr(Ve,Ha,ut)}function Ac(Ve,at,ut,mt){for(var qt=ut-1,rn=Ve.length;++qt<rn;)if(mt(Ve[qt],at))return qt;return-1}function Ha(Ve){return Ve!=Ve}function Wa(Ve,at){var ut=Ve==null?0:Ve.length;return ut?Bo(Ve,at)/ut:i}function Po(Ve){return function(at){return at==null?w:at[Ve]}}function Co(Ve){return function(at){return Ve==null?w:Ve[at]}}function Za(Ve,at,ut,mt,qt){return qt(Ve,function(rn,Tn,di){ut=mt?(mt=!1,rn):at(ut,rn,Tn,di)}),ut}function Bo(Ve,at){for(var ut,mt=-1,qt=Ve.length;++mt<qt;){var rn=at(Ve[mt]);rn!==w&&(ut=ut===w?rn:ut+rn)}return ut}function Do(Ve,at){for(var ut=-1,mt=Array(Ve);++ut<Ve;)mt[ut]=at(ut);return mt}function Ga(Ve){return Ve&&Ve.slice(0,Qa(Ve)+1).replace(Ge,"")}function Xn(Ve){return function(at){return Ve(at)}}function Lo(Ve,at){return Mn(at,function(ut){return Ve[ut]})}function vr(Ve,at){return Ve.has(at)}function Xa(Ve,at){for(var ut=-1,mt=Ve.length;++ut<mt&&Qi(at,Ve[ut],0)>-1;);return ut}function Ya(Ve,at){for(var ut=Ve.length;ut--&&Qi(at,Ve[ut],0)>-1;);return ut}var Ic=Co({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Tc=Co({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Oc(Ve){return"\\"+Wt[Ve]}function er(Ve){return Je.test(Ve)}function qo(Ve){var at=-1,ut=Array(Ve.size);return Ve.forEach(function(mt,qt){ut[++at]=[qt,mt]}),ut}function Ja(Ve,at){return function(ut){return Ve(at(ut))}}function Ni(Ve,at){for(var ut=-1,mt=Ve.length,qt=0,rn=[];++ut<mt;){var Tn=Ve[ut];Tn!==at&&Tn!==d||(Ve[ut]=d,rn[qt++]=ut)}return rn}function Br(Ve){var at=-1,ut=Array(Ve.size);return Ve.forEach(function(mt){ut[++at]=mt}),ut}function jc(Ve){var at=-1,ut=Array(Ve.size);return Ve.forEach(function(mt){ut[++at]=[mt,mt]}),ut}function tr(Ve){return er(Ve)?function(at){for(var ut=We.lastIndex=0;We.test(at);)++ut;return ut}(Ve):Sc(Ve)}function li(Ve){return er(Ve)?function(at){return at.match(We)||[]}(Ve):function(at){return at.split("")}(Ve)}function Qa(Ve){for(var at=Ve.length;at--&&It.test(Ve.charAt(at)););return at}var Nc=Co({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),Dr=function Ve(at){var ut,mt=(at=at==null?dt:Dr.defaults(dt.Object(),at,Dr.pick(dt,ct))).Array,qt=at.Date,rn=at.Error,Tn=at.Function,di=at.Math,wn=at.Object,Fo=at.RegExp,Rc=at.String,ni=at.TypeError,Lr=mt.prototype,Pc=Tn.prototype,nr=wn.prototype,qr=at["__core-js_shared__"],Fr=Pc.toString,yn=nr.hasOwnProperty,Cc=0,es=(ut=/[^.]+$/.exec(qr&&qr.keys&&qr.keys.IE_PROTO||""))?"Symbol(src)_1."+ut:"",$r=nr.toString,Bc=Fr.call(wn),Dc=dt._,Lc=Fo("^"+Fr.call(yn).replace(St,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ur=En?at.Buffer:w,Ri=at.Symbol,zr=at.Uint8Array,ts=Ur?Ur.allocUnsafe:w,Vr=Ja(wn.getPrototypeOf,wn),ns=wn.create,is=nr.propertyIsEnumerable,Kr=Lr.splice,rs=Ri?Ri.isConcatSpreadable:w,yr=Ri?Ri.iterator:w,Ui=Ri?Ri.toStringTag:w,Hr=function(){try{var f=Wi(wn,"defineProperty");return f({},"",{}),f}catch(E){}}(),qc=at.clearTimeout!==dt.clearTimeout&&at.clearTimeout,Fc=qt&&qt.now!==dt.Date.now&&qt.now,$c=at.setTimeout!==dt.setTimeout&&at.setTimeout,Wr=di.ceil,Zr=di.floor,$o=wn.getOwnPropertySymbols,Uc=Ur?Ur.isBuffer:w,os=at.isFinite,zc=Lr.join,Vc=Ja(wn.keys,wn),On=di.max,Cn=di.min,Kc=qt.now,Hc=at.parseInt,as=di.random,Wc=Lr.reverse,Uo=Wi(at,"DataView"),br=Wi(at,"Map"),zo=Wi(at,"Promise"),ir=Wi(at,"Set"),wr=Wi(at,"WeakMap"),xr=Wi(wn,"create"),Gr=wr&&new wr,rr={},Zc=Zi(Uo),Gc=Zi(br),Xc=Zi(zo),Yc=Zi(ir),Jc=Zi(wr),Xr=Ri?Ri.prototype:w,Mr=Xr?Xr.valueOf:w,ss=Xr?Xr.toString:w;function se(f){if(kn(f)&&!Vt(f)&&!(f instanceof Jt)){if(f instanceof ii)return f;if(yn.call(f,"__wrapped__"))return uu(f)}return new ii(f)}var or=function(){function f(){}return function(E){if(!_n(E))return{};if(ns)return ns(E);f.prototype=E;var $=new f;return f.prototype=w,$}}();function Yr(){}function ii(f,E){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!E,this.__index__=0,this.__values__=w}function Jt(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=n,this.__views__=[]}function zi(f){var E=-1,$=f==null?0:f.length;for(this.clear();++E<$;){var ee=f[E];this.set(ee[0],ee[1])}}function wi(f){var E=-1,$=f==null?0:f.length;for(this.clear();++E<$;){var ee=f[E];this.set(ee[0],ee[1])}}function xi(f){var E=-1,$=f==null?0:f.length;for(this.clear();++E<$;){var ee=f[E];this.set(ee[0],ee[1])}}function Vi(f){var E=-1,$=f==null?0:f.length;for(this.__data__=new xi;++E<$;)this.add(f[E])}function hi(f){var E=this.__data__=new wi(f);this.size=E.size}function us(f,E){var $=Vt(f),ee=!$&&Gi(f),ie=!$&&!ee&&Li(f),pe=!$&&!ee&&!ie&&cr(f),be=$||ee||ie||pe,Se=be?Do(f.length,Rc):[],Be=Se.length;for(var ot in f)!E&&!yn.call(f,ot)||be&&(ot=="length"||ie&&(ot=="offset"||ot=="parent")||pe&&(ot=="buffer"||ot=="byteLength"||ot=="byteOffset")||ki(ot,Be))||Se.push(ot);return Se}function cs(f){var E=f.length;return E?f[ea(0,E-1)]:w}function Qc(f,E){return ho(zn(f),Ki(E,0,f.length))}function el(f){return ho(zn(f))}function Vo(f,E,$){($!==w&&!pi(f[E],$)||$===w&&!(E in f))&&Mi(f,E,$)}function _r(f,E,$){var ee=f[E];yn.call(f,E)&&pi(ee,$)&&($!==w||E in f)||Mi(f,E,$)}function Jr(f,E){for(var $=f.length;$--;)if(pi(f[$][0],E))return $;return-1}function tl(f,E,$,ee){return Pi(f,function(ie,pe,be){E(ee,ie,$(ie),be)}),ee}function ls(f,E){return f&&gi(E,Nn(E),f)}function Mi(f,E,$){E=="__proto__"&&Hr?Hr(f,E,{configurable:!0,enumerable:!0,value:$,writable:!0}):f[E]=$}function Ko(f,E){for(var $=-1,ee=E.length,ie=mt(ee),pe=f==null;++$<ee;)ie[$]=pe?w:Aa(f,E[$]);return ie}function Ki(f,E,$){return f==f&&($!==w&&(f=f<=$?f:$),E!==w&&(f=f>=E?f:E)),f}function ri(f,E,$,ee,ie,pe){var be,Se=E&c,Be=E&l,ot=E&p;if($&&(be=ie?$(f,ee,ie,pe):$(f)),be!==w)return be;if(!_n(f))return f;var rt=Vt(f);if(rt){if(be=function(st){var ht=st.length,jt=new st.constructor(ht);return ht&&typeof st[0]=="string"&&yn.call(st,"index")&&(jt.index=st.index,jt.input=st.input),jt}(f),!Se)return zn(f,be)}else{var lt=Bn(f),wt=lt==Y||lt==D;if(Li(f))return Ps(f,Se);if(lt==te||lt==I||wt&&!ie){if(be=Be||wt?{}:Qs(f),!Se)return Be?function(st,ht){return gi(st,Ys(st),ht)}(f,function(st,ht){return st&&gi(ht,Kn(ht),st)}(be,f)):function(st,ht){return gi(st,da(st),ht)}(f,ls(be,f))}else{if(!gt[lt])return ie?f:{};be=function(st,ht,jt){var ft,Ft=st.constructor;switch(ht){case V:return sa(st);case A:case N:return new Ft(+st);case W:return function(Lt,gn){var kt=gn?sa(Lt.buffer):Lt.buffer;return new Lt.constructor(kt,Lt.byteOffset,Lt.byteLength)}(st,jt);case Q:case ge:case oe:case ue:case Ne:case we:case Me:case pt:case ke:return Cs(st,jt);case K:return new Ft;case q:case fe:return new Ft(st);case xe:return function(Lt){var gn=new Lt.constructor(Lt.source,Qe.exec(Lt));return gn.lastIndex=Lt.lastIndex,gn}(st);case ce:return new Ft;case Te:return ft=st,Mr?wn(Mr.call(ft)):{}}}(f,lt,Se)}}pe||(pe=new hi);var Mt=pe.get(f);if(Mt)return Mt;pe.set(f,be),Su(f)?f.forEach(function(st){be.add(ri(st,E,$,st,f,pe))}):Eu(f)&&f.forEach(function(st,ht){be.set(ht,ri(st,E,$,ht,f,pe))});var At=rt?w:(ot?Be?ha:la:Be?Kn:Nn)(f);return ti(At||f,function(st,ht){At&&(st=f[ht=st]),_r(be,ht,ri(st,E,$,ht,f,pe))}),be}function hs(f,E,$){var ee=$.length;if(f==null)return!ee;for(f=wn(f);ee--;){var ie=$[ee],pe=E[ie],be=f[ie];if(be===w&&!(ie in f)||!pe(be))return!1}return!0}function ps(f,E,$){if(typeof f!="function")throw new ni(M);return Or(function(){f.apply(w,$)},E)}function Er(f,E,$,ee){var ie=-1,pe=Pr,be=!0,Se=f.length,Be=[],ot=E.length;if(!Se)return Be;$&&(E=Mn(E,Xn($))),ee?(pe=jo,be=!1):E.length>=g&&(pe=vr,be=!1,E=new Vi(E));e:for(;++ie<Se;){var rt=f[ie],lt=$==null?rt:$(rt);if(rt=ee||rt!==0?rt:0,be&&lt==lt){for(var wt=ot;wt--;)if(E[wt]===lt)continue e;Be.push(rt)}else pe(E,lt,ee)||Be.push(rt)}return Be}se.templateSettings={escape:Nt,evaluate:Pe,interpolate:He,variable:"",imports:{_:se}},se.prototype=Yr.prototype,se.prototype.constructor=se,ii.prototype=or(Yr.prototype),ii.prototype.constructor=ii,Jt.prototype=or(Yr.prototype),Jt.prototype.constructor=Jt,zi.prototype.clear=function(){this.__data__=xr?xr(null):{},this.size=0},zi.prototype.delete=function(f){var E=this.has(f)&&delete this.__data__[f];return this.size-=E?1:0,E},zi.prototype.get=function(f){var E=this.__data__;if(xr){var $=E[f];return $===a?w:$}return yn.call(E,f)?E[f]:w},zi.prototype.has=function(f){var E=this.__data__;return xr?E[f]!==w:yn.call(E,f)},zi.prototype.set=function(f,E){var $=this.__data__;return this.size+=this.has(f)?0:1,$[f]=xr&&E===w?a:E,this},wi.prototype.clear=function(){this.__data__=[],this.size=0},wi.prototype.delete=function(f){var E=this.__data__,$=Jr(E,f);return!($<0||($==E.length-1?E.pop():Kr.call(E,$,1),--this.size,0))},wi.prototype.get=function(f){var E=this.__data__,$=Jr(E,f);return $<0?w:E[$][1]},wi.prototype.has=function(f){return Jr(this.__data__,f)>-1},wi.prototype.set=function(f,E){var $=this.__data__,ee=Jr($,f);return ee<0?(++this.size,$.push([f,E])):$[ee][1]=E,this},xi.prototype.clear=function(){this.size=0,this.__data__={hash:new zi,map:new(br||wi),string:new zi}},xi.prototype.delete=function(f){var E=lo(this,f).delete(f);return this.size-=E?1:0,E},xi.prototype.get=function(f){return lo(this,f).get(f)},xi.prototype.has=function(f){return lo(this,f).has(f)},xi.prototype.set=function(f,E){var $=lo(this,f),ee=$.size;return $.set(f,E),this.size+=$.size==ee?0:1,this},Vi.prototype.add=Vi.prototype.push=function(f){return this.__data__.set(f,a),this},Vi.prototype.has=function(f){return this.__data__.has(f)},hi.prototype.clear=function(){this.__data__=new wi,this.size=0},hi.prototype.delete=function(f){var E=this.__data__,$=E.delete(f);return this.size=E.size,$},hi.prototype.get=function(f){return this.__data__.get(f)},hi.prototype.has=function(f){return this.__data__.has(f)},hi.prototype.set=function(f,E){var $=this.__data__;if($ instanceof wi){var ee=$.__data__;if(!br||ee.length<g-1)return ee.push([f,E]),this.size=++$.size,this;$=this.__data__=new xi(ee)}return $.set(f,E),this.size=$.size,this};var Pi=qs(mi),fs=qs(Wo,!0);function nl(f,E){var $=!0;return Pi(f,function(ee,ie,pe){return $=!!E(ee,ie,pe)}),$}function Qr(f,E,$){for(var ee=-1,ie=f.length;++ee<ie;){var pe=f[ee],be=E(pe);if(be!=null&&(Se===w?be==be&&!Jn(be):$(be,Se)))var Se=be,Be=pe}return Be}function ds(f,E){var $=[];return Pi(f,function(ee,ie,pe){E(ee,ie,pe)&&$.push(ee)}),$}function Rn(f,E,$,ee,ie){var pe=-1,be=f.length;for($||($=fl),ie||(ie=[]);++pe<be;){var Se=f[pe];E>0&&$(Se)?E>1?Rn(Se,E-1,$,ee,ie):ji(ie,Se):ee||(ie[ie.length]=Se)}return ie}var Ho=Fs(),ms=Fs(!0);function mi(f,E){return f&&Ho(f,E,Nn)}function Wo(f,E){return f&&ms(f,E,Nn)}function eo(f,E){return Oi(E,function($){return Si(f[$])})}function Hi(f,E){for(var $=0,ee=(E=Bi(E,f)).length;f!=null&&$<ee;)f=f[vi(E[$++])];return $&&$==ee?f:w}function gs(f,E,$){var ee=E(f);return Vt(f)?ee:ji(ee,$(f))}function Fn(f){return f==null?f===w?ye:U:Ui&&Ui in wn(f)?function(E){var $=yn.call(E,Ui),ee=E[Ui];try{E[Ui]=w;var ie=!0}catch(be){}var pe=$r.call(E);return ie&&($?E[Ui]=ee:delete E[Ui]),pe}(f):function(E){return $r.call(E)}(f)}function Zo(f,E){return f>E}function il(f,E){return f!=null&&yn.call(f,E)}function rl(f,E){return f!=null&&E in wn(f)}function Go(f,E,$){for(var ee=$?jo:Pr,ie=f[0].length,pe=f.length,be=pe,Se=mt(pe),Be=1/0,ot=[];be--;){var rt=f[be];be&&E&&(rt=Mn(rt,Xn(E))),Be=Cn(rt.length,Be),Se[be]=!$&&(E||ie>=120&&rt.length>=120)?new Vi(be&&rt):w}rt=f[0];var lt=-1,wt=Se[0];e:for(;++lt<ie&&ot.length<Be;){var Mt=rt[lt],At=E?E(Mt):Mt;if(Mt=$||Mt!==0?Mt:0,!(wt?vr(wt,At):ee(ot,At,$))){for(be=pe;--be;){var st=Se[be];if(!(st?vr(st,At):ee(f[be],At,$)))continue e}wt&&wt.push(At),ot.push(Mt)}}return ot}function kr(f,E,$){var ee=(f=iu(f,E=Bi(E,f)))==null?f:f[vi(ai(E))];return ee==null?w:Gn(ee,f,$)}function vs(f){return kn(f)&&Fn(f)==I}function Sr(f,E,$,ee,ie){return f===E||(f==null||E==null||!kn(f)&&!kn(E)?f!=f&&E!=E:function(pe,be,Se,Be,ot,rt){var lt=Vt(pe),wt=Vt(be),Mt=lt?P:Bn(pe),At=wt?P:Bn(be),st=(Mt=Mt==I?te:Mt)==te,ht=(At=At==I?te:At)==te,jt=Mt==At;if(jt&&Li(pe)){if(!Li(be))return!1;lt=!0,st=!1}if(jt&&!st)return rt||(rt=new hi),lt||cr(pe)?Xs(pe,be,Se,Be,ot,rt):function(kt,Bt,jn,In,Un,xn,Dn){switch(jn){case W:if(kt.byteLength!=Bt.byteLength||kt.byteOffset!=Bt.byteOffset)return!1;kt=kt.buffer,Bt=Bt.buffer;case V:return!(kt.byteLength!=Bt.byteLength||!xn(new zr(kt),new zr(Bt)));case A:case N:case q:return pi(+kt,+Bt);case z:return kt.name==Bt.name&&kt.message==Bt.message;case xe:case fe:return kt==Bt+"";case K:var yi=qo;case ce:var qi=In&m;if(yi||(yi=Br),kt.size!=Bt.size&&!qi)return!1;var Xi=Dn.get(kt);if(Xi)return Xi==Bt;In|=h,Dn.set(kt,Bt);var Ii=Xs(yi(kt),yi(Bt),In,Un,xn,Dn);return Dn.delete(kt),Ii;case Te:if(Mr)return Mr.call(kt)==Mr.call(Bt)}return!1}(pe,be,Mt,Se,Be,ot,rt);if(!(Se&m)){var ft=st&&yn.call(pe,"__wrapped__"),Ft=ht&&yn.call(be,"__wrapped__");if(ft||Ft){var Lt=ft?pe.value():pe,gn=Ft?be.value():be;return rt||(rt=new hi),ot(Lt,gn,Se,Be,rt)}}return!!jt&&(rt||(rt=new hi),function(kt,Bt,jn,In,Un,xn){var Dn=jn&m,yi=la(kt),qi=yi.length;if(qi!=la(Bt).length&&!Dn)return!1;for(var Xi=qi;Xi--;){var Ii=yi[Xi];if(!(Dn?Ii in Bt:yn.call(Bt,Ii)))return!1}var Fu=xn.get(kt),$u=xn.get(Bt);if(Fu&&$u)return Fu==Bt&&$u==kt;var xo=!0;xn.set(kt,Bt),xn.set(Bt,kt);for(var Da=Dn;++Xi<qi;){var Mo=kt[Ii=yi[Xi]],_o=Bt[Ii];if(In)var Uu=Dn?In(_o,Mo,Ii,Bt,kt,xn):In(Mo,_o,Ii,kt,Bt,xn);if(!(Uu===w?Mo===_o||Un(Mo,_o,jn,In,xn):Uu)){xo=!1;break}Da||(Da=Ii=="constructor")}if(xo&&!Da){var Eo=kt.constructor,ko=Bt.constructor;Eo==ko||!("constructor"in kt)||!("constructor"in Bt)||typeof Eo=="function"&&Eo instanceof Eo&&typeof ko=="function"&&ko instanceof ko||(xo=!1)}return xn.delete(kt),xn.delete(Bt),xo}(pe,be,Se,Be,ot,rt))}(f,E,$,ee,Sr,ie))}function Xo(f,E,$,ee){var ie=$.length,pe=ie,be=!ee;if(f==null)return!pe;for(f=wn(f);ie--;){var Se=$[ie];if(be&&Se[2]?Se[1]!==f[Se[0]]:!(Se[0]in f))return!1}for(;++ie<pe;){var Be=(Se=$[ie])[0],ot=f[Be],rt=Se[1];if(be&&Se[2]){if(ot===w&&!(Be in f))return!1}else{var lt=new hi;if(ee)var wt=ee(ot,rt,Be,f,E,lt);if(!(wt===w?Sr(rt,ot,m|h,ee,lt):wt))return!1}}return!0}function ys(f){return!(!_n(f)||(E=f,es&&es in E))&&(Si(f)?Lc:nt).test(Zi(f));var E}function bs(f){return typeof f=="function"?f:f==null?Hn:typeof f=="object"?Vt(f)?Ms(f[0],f[1]):xs(f):qu(f)}function Yo(f){if(!Tr(f))return Vc(f);var E=[];for(var $ in wn(f))yn.call(f,$)&&$!="constructor"&&E.push($);return E}function Jo(f,E){return f<E}function ws(f,E){var $=-1,ee=Vn(f)?mt(f.length):[];return Pi(f,function(ie,pe,be){ee[++$]=E(ie,pe,be)}),ee}function xs(f){var E=fa(f);return E.length==1&&E[0][2]?tu(E[0][0],E[0][1]):function($){return $===f||Xo($,f,E)}}function Ms(f,E){return ma(f)&&eu(E)?tu(vi(f),E):function($){var ee=Aa($,f);return ee===w&&ee===E?Ia($,f):Sr(E,ee,m|h)}}function to(f,E,$,ee,ie){f!==E&&Ho(E,function(pe,be){if(ie||(ie=new hi),_n(pe))(function(Be,ot,rt,lt,wt,Mt,At){var st=va(Be,rt),ht=va(ot,rt),jt=At.get(ht);if(jt)Vo(Be,rt,jt);else{var ft=Mt?Mt(st,ht,rt+"",Be,ot,At):w,Ft=ft===w;if(Ft){var Lt=Vt(ht),gn=!Lt&&Li(ht),kt=!Lt&&!gn&&cr(ht);ft=ht,Lt||gn||kt?Vt(st)?ft=st:An(st)?ft=zn(st):gn?(Ft=!1,ft=Ps(ht,!0)):kt?(Ft=!1,ft=Cs(ht,!0)):ft=[]:jr(ht)||Gi(ht)?(ft=st,Gi(st)?ft=Tu(st):_n(st)&&!Si(st)||(ft=Qs(ht))):Ft=!1}Ft&&(At.set(ht,ft),wt(ft,ht,lt,Mt,At),At.delete(ht)),Vo(Be,rt,ft)}})(f,E,be,$,to,ee,ie);else{var Se=ee?ee(va(f,be),pe,be+"",f,E,ie):w;Se===w&&(Se=pe),Vo(f,be,Se)}},Kn)}function _s(f,E){var $=f.length;if($)return ki(E+=E<0?$:0,$)?f[E]:w}function Es(f,E,$){E=E.length?Mn(E,function(pe){return Vt(pe)?function(be){return Hi(be,pe.length===1?pe[0]:pe)}:pe}):[Hn];var ee=-1;E=Mn(E,Xn(Pt()));var ie=ws(f,function(pe,be,Se){var Be=Mn(E,function(ot){return ot(pe)});return{criteria:Be,index:++ee,value:pe}});return function(pe,be){var Se=pe.length;for(pe.sort(function(Be,ot){return function(rt,lt,wt){for(var Mt=-1,At=rt.criteria,st=lt.criteria,ht=At.length,jt=wt.length;++Mt<ht;){var ft=Bs(At[Mt],st[Mt]);if(ft)return Mt>=jt?ft:ft*(wt[Mt]=="desc"?-1:1)}return rt.index-lt.index}(Be,ot,$)});Se--;)pe[Se]=pe[Se].value;return pe}(ie)}function ks(f,E,$){for(var ee=-1,ie=E.length,pe={};++ee<ie;){var be=E[ee],Se=Hi(f,be);$(Se,be)&&Ar(pe,Bi(be,f),Se)}return pe}function Qo(f,E,$,ee){var ie=ee?Ac:Qi,pe=-1,be=E.length,Se=f;for(f===E&&(E=zn(E)),$&&(Se=Mn(f,Xn($)));++pe<be;)for(var Be=0,ot=E[pe],rt=$?$(ot):ot;(Be=ie(Se,rt,Be,ee))>-1;)Se!==f&&Kr.call(Se,Be,1),Kr.call(f,Be,1);return f}function Ss(f,E){for(var $=f?E.length:0,ee=$-1;$--;){var ie=E[$];if($==ee||ie!==pe){var pe=ie;ki(ie)?Kr.call(f,ie,1):ia(f,ie)}}return f}function ea(f,E){return f+Zr(as()*(E-f+1))}function ta(f,E){var $="";if(!f||E<1||E>e)return $;do E%2&&($+=f),(E=Zr(E/2))&&(f+=f);while(E);return $}function Ht(f,E){return ya(nu(f,E,Hn),f+"")}function ol(f){return cs(lr(f))}function al(f,E){var $=lr(f);return ho($,Ki(E,0,$.length))}function Ar(f,E,$,ee){if(!_n(f))return f;for(var ie=-1,pe=(E=Bi(E,f)).length,be=pe-1,Se=f;Se!=null&&++ie<pe;){var Be=vi(E[ie]),ot=$;if(Be==="__proto__"||Be==="constructor"||Be==="prototype")return f;if(ie!=be){var rt=Se[Be];(ot=ee?ee(rt,Be,Se):w)===w&&(ot=_n(rt)?rt:ki(E[ie+1])?[]:{})}_r(Se,Be,ot),Se=Se[Be]}return f}var As=Gr?function(f,E){return Gr.set(f,E),f}:Hn,sl=Hr?function(f,E){return Hr(f,"toString",{configurable:!0,enumerable:!1,value:Oa(E),writable:!0})}:Hn;function ul(f){return ho(lr(f))}function oi(f,E,$){var ee=-1,ie=f.length;E<0&&(E=-E>ie?0:ie+E),($=$>ie?ie:$)<0&&($+=ie),ie=E>$?0:$-E>>>0,E>>>=0;for(var pe=mt(ie);++ee<ie;)pe[ee]=f[ee+E];return pe}function cl(f,E){var $;return Pi(f,function(ee,ie,pe){return!($=E(ee,ie,pe))}),!!$}function no(f,E,$){var ee=0,ie=f==null?ee:f.length;if(typeof E=="number"&&E==E&&ie<=o){for(;ee<ie;){var pe=ee+ie>>>1,be=f[pe];be!==null&&!Jn(be)&&($?be<=E:be<E)?ee=pe+1:ie=pe}return ie}return na(f,E,Hn,$)}function na(f,E,$,ee){var ie=0,pe=f==null?0:f.length;if(pe===0)return 0;for(var be=(E=$(E))!=E,Se=E===null,Be=Jn(E),ot=E===w;ie<pe;){var rt=Zr((ie+pe)/2),lt=$(f[rt]),wt=lt!==w,Mt=lt===null,At=lt==lt,st=Jn(lt);if(be)var ht=ee||At;else ht=ot?At&&(ee||wt):Se?At&&wt&&(ee||!Mt):Be?At&&wt&&!Mt&&(ee||!st):!Mt&&!st&&(ee?lt<=E:lt<E);ht?ie=rt+1:pe=rt}return Cn(pe,t)}function Is(f,E){for(var $=-1,ee=f.length,ie=0,pe=[];++$<ee;){var be=f[$],Se=E?E(be):be;if(!$||!pi(Se,Be)){var Be=Se;pe[ie++]=be===0?0:be}}return pe}function Ts(f){return typeof f=="number"?f:Jn(f)?i:+f}function Yn(f){if(typeof f=="string")return f;if(Vt(f))return Mn(f,Yn)+"";if(Jn(f))return ss?ss.call(f):"";var E=f+"";return E=="0"&&1/f==-ne?"-0":E}function Ci(f,E,$){var ee=-1,ie=Pr,pe=f.length,be=!0,Se=[],Be=Se;if($)be=!1,ie=jo;else if(pe>=g){var ot=E?null:hl(f);if(ot)return Br(ot);be=!1,ie=vr,Be=new Vi}else Be=E?[]:Se;e:for(;++ee<pe;){var rt=f[ee],lt=E?E(rt):rt;if(rt=$||rt!==0?rt:0,be&&lt==lt){for(var wt=Be.length;wt--;)if(Be[wt]===lt)continue e;E&&Be.push(lt),Se.push(rt)}else ie(Be,lt,$)||(Be!==Se&&Be.push(lt),Se.push(rt))}return Se}function ia(f,E){return(f=iu(f,E=Bi(E,f)))==null||delete f[vi(ai(E))]}function Os(f,E,$,ee){return Ar(f,E,$(Hi(f,E)),ee)}function io(f,E,$,ee){for(var ie=f.length,pe=ee?ie:-1;(ee?pe--:++pe<ie)&&E(f[pe],pe,f););return $?oi(f,ee?0:pe,ee?pe+1:ie):oi(f,ee?pe+1:0,ee?ie:pe)}function js(f,E){var $=f;return $ instanceof Jt&&($=$.value()),No(E,function(ee,ie){return ie.func.apply(ie.thisArg,ji([ee],ie.args))},$)}function ra(f,E,$){var ee=f.length;if(ee<2)return ee?Ci(f[0]):[];for(var ie=-1,pe=mt(ee);++ie<ee;)for(var be=f[ie],Se=-1;++Se<ee;)Se!=ie&&(pe[ie]=Er(pe[ie]||be,f[Se],E,$));return Ci(Rn(pe,1),E,$)}function Ns(f,E,$){for(var ee=-1,ie=f.length,pe=E.length,be={};++ee<ie;){var Se=ee<pe?E[ee]:w;$(be,f[ee],Se)}return be}function oa(f){return An(f)?f:[]}function aa(f){return typeof f=="function"?f:Hn}function Bi(f,E){return Vt(f)?f:ma(f,E)?[f]:su(vn(f))}var ll=Ht;function Di(f,E,$){var ee=f.length;return $=$===w?ee:$,!E&&$>=ee?f:oi(f,E,$)}var Rs=qc||function(f){return dt.clearTimeout(f)};function Ps(f,E){if(E)return f.slice();var $=f.length,ee=ts?ts($):new f.constructor($);return f.copy(ee),ee}function sa(f){var E=new f.constructor(f.byteLength);return new zr(E).set(new zr(f)),E}function Cs(f,E){var $=E?sa(f.buffer):f.buffer;return new f.constructor($,f.byteOffset,f.length)}function Bs(f,E){if(f!==E){var $=f!==w,ee=f===null,ie=f==f,pe=Jn(f),be=E!==w,Se=E===null,Be=E==E,ot=Jn(E);if(!Se&&!ot&&!pe&&f>E||pe&&be&&Be&&!Se&&!ot||ee&&be&&Be||!$&&Be||!ie)return 1;if(!ee&&!pe&&!ot&&f<E||ot&&$&&ie&&!ee&&!pe||Se&&$&&ie||!be&&ie||!Be)return-1}return 0}function Ds(f,E,$,ee){for(var ie=-1,pe=f.length,be=$.length,Se=-1,Be=E.length,ot=On(pe-be,0),rt=mt(Be+ot),lt=!ee;++Se<Be;)rt[Se]=E[Se];for(;++ie<be;)(lt||ie<pe)&&(rt[$[ie]]=f[ie]);for(;ot--;)rt[Se++]=f[ie++];return rt}function Ls(f,E,$,ee){for(var ie=-1,pe=f.length,be=-1,Se=$.length,Be=-1,ot=E.length,rt=On(pe-Se,0),lt=mt(rt+ot),wt=!ee;++ie<rt;)lt[ie]=f[ie];for(var Mt=ie;++Be<ot;)lt[Mt+Be]=E[Be];for(;++be<Se;)(wt||ie<pe)&&(lt[Mt+$[be]]=f[ie++]);return lt}function zn(f,E){var $=-1,ee=f.length;for(E||(E=mt(ee));++$<ee;)E[$]=f[$];return E}function gi(f,E,$,ee){var ie=!$;$||($={});for(var pe=-1,be=E.length;++pe<be;){var Se=E[pe],Be=ee?ee($[Se],f[Se],Se,$,f):w;Be===w&&(Be=f[Se]),ie?Mi($,Se,Be):_r($,Se,Be)}return $}function ro(f,E){return function($,ee){var ie=Vt($)?_c:tl,pe=E?E():{};return ie($,f,Pt(ee,2),pe)}}function ar(f){return Ht(function(E,$){var ee=-1,ie=$.length,pe=ie>1?$[ie-1]:w,be=ie>2?$[2]:w;for(pe=f.length>3&&typeof pe=="function"?(ie--,pe):w,be&&$n($[0],$[1],be)&&(pe=ie<3?w:pe,ie=1),E=wn(E);++ee<ie;){var Se=$[ee];Se&&f(E,Se,ee,pe)}return E})}function qs(f,E){return function($,ee){if($==null)return $;if(!Vn($))return f($,ee);for(var ie=$.length,pe=E?ie:-1,be=wn($);(E?pe--:++pe<ie)&&ee(be[pe],pe,be)!==!1;);return $}}function Fs(f){return function(E,$,ee){for(var ie=-1,pe=wn(E),be=ee(E),Se=be.length;Se--;){var Be=be[f?Se:++ie];if($(pe[Be],Be,pe)===!1)break}return E}}function $s(f){return function(E){var $=er(E=vn(E))?li(E):w,ee=$?$[0]:E.charAt(0),ie=$?Di($,1).join(""):E.slice(1);return ee[f]()+ie}}function sr(f){return function(E){return No(Du(Bu(E).replace(me,"")),f,"")}}function Ir(f){return function(){var E=arguments;switch(E.length){case 0:return new f;case 1:return new f(E[0]);case 2:return new f(E[0],E[1]);case 3:return new f(E[0],E[1],E[2]);case 4:return new f(E[0],E[1],E[2],E[3]);case 5:return new f(E[0],E[1],E[2],E[3],E[4]);case 6:return new f(E[0],E[1],E[2],E[3],E[4],E[5]);case 7:return new f(E[0],E[1],E[2],E[3],E[4],E[5],E[6])}var $=or(f.prototype),ee=f.apply($,E);return _n(ee)?ee:$}}function Us(f){return function(E,$,ee){var ie=wn(E);if(!Vn(E)){var pe=Pt($,3);E=Nn(E),$=function(Se){return pe(ie[Se],Se,ie)}}var be=f(E,$,ee);return be>-1?ie[pe?E[be]:be]:w}}function zs(f){return Ei(function(E){var $=E.length,ee=$,ie=ii.prototype.thru;for(f&&E.reverse();ee--;){var pe=E[ee];if(typeof pe!="function")throw new ni(M);if(ie&&!be&&co(pe)=="wrapper")var be=new ii([],!0)}for(ee=be?ee:$;++ee<$;){var Se=co(pe=E[ee]),Be=Se=="wrapper"?pa(pe):w;be=Be&&ga(Be[0])&&Be[1]==(C|_|b|R)&&!Be[4].length&&Be[9]==1?be[co(Be[0])].apply(be,Be[3]):pe.length==1&&ga(pe)?be[Se]():be.thru(pe)}return function(){var ot=arguments,rt=ot[0];if(be&&ot.length==1&&Vt(rt))return be.plant(rt).value();for(var lt=0,wt=$?E[lt].apply(this,ot):rt;++lt<$;)wt=E[lt].call(this,wt);return wt}})}function oo(f,E,$,ee,ie,pe,be,Se,Be,ot){var rt=E&C,lt=E&u,wt=E&y,Mt=E&(_|S),At=E&F,st=wt?w:Ir(f);return function ht(){for(var jt=arguments.length,ft=mt(jt),Ft=jt;Ft--;)ft[Ft]=arguments[Ft];if(Mt)var Lt=ur(ht),gn=function(In,Un){for(var xn=In.length,Dn=0;xn--;)In[xn]===Un&&++Dn;return Dn}(ft,Lt);if(ee&&(ft=Ds(ft,ee,ie,Mt)),pe&&(ft=Ls(ft,pe,be,Mt)),jt-=gn,Mt&&jt<ot){var kt=Ni(ft,Lt);return Hs(f,E,oo,ht.placeholder,$,ft,kt,Se,Be,ot-jt)}var Bt=lt?$:this,jn=wt?Bt[f]:f;return jt=ft.length,Se?ft=function(In,Un){for(var xn=In.length,Dn=Cn(Un.length,xn),yi=zn(In);Dn--;){var qi=Un[Dn];In[Dn]=ki(qi,xn)?yi[qi]:w}return In}(ft,Se):At&&jt>1&&ft.reverse(),rt&&Be<jt&&(ft.length=Be),this&&this!==dt&&this instanceof ht&&(jn=st||Ir(jn)),jn.apply(Bt,ft)}}function Vs(f,E){return function($,ee){return function(ie,pe,be,Se){return mi(ie,function(Be,ot,rt){pe(Se,be(Be),ot,rt)}),Se}($,f,E(ee),{})}}function ao(f,E){return function($,ee){var ie;if($===w&&ee===w)return E;if($!==w&&(ie=$),ee!==w){if(ie===w)return ee;typeof $=="string"||typeof ee=="string"?($=Yn($),ee=Yn(ee)):($=Ts($),ee=Ts(ee)),ie=f($,ee)}return ie}}function ua(f){return Ei(function(E){return E=Mn(E,Xn(Pt())),Ht(function($){var ee=this;return f(E,function(ie){return Gn(ie,ee,$)})})})}function so(f,E){var $=(E=E===w?" ":Yn(E)).length;if($<2)return $?ta(E,f):E;var ee=ta(E,Wr(f/tr(E)));return er(E)?Di(li(ee),0,f).join(""):ee.slice(0,f)}function Ks(f){return function(E,$,ee){return ee&&typeof ee!="number"&&$n(E,$,ee)&&($=ee=w),E=Ai(E),$===w?($=E,E=0):$=Ai($),function(ie,pe,be,Se){for(var Be=-1,ot=On(Wr((pe-ie)/(be||1)),0),rt=mt(ot);ot--;)rt[Se?ot:++Be]=ie,ie+=be;return rt}(E,$,ee=ee===w?E<$?1:-1:Ai(ee),f)}}function uo(f){return function(E,$){return typeof E=="string"&&typeof $=="string"||(E=si(E),$=si($)),f(E,$)}}function Hs(f,E,$,ee,ie,pe,be,Se,Be,ot){var rt=E&_;E|=rt?b:T,(E&=~(rt?T:b))&v||(E&=~(u|y));var lt=[f,E,ie,rt?pe:w,rt?be:w,rt?w:pe,rt?w:be,Se,Be,ot],wt=$.apply(w,lt);return ga(f)&&ru(wt,lt),wt.placeholder=ee,ou(wt,f,E)}function ca(f){var E=di[f];return function($,ee){if($=si($),(ee=ee==null?0:Cn(Kt(ee),292))&&os($)){var ie=(vn($)+"e").split("e");return+((ie=(vn(E(ie[0]+"e"+(+ie[1]+ee)))+"e").split("e"))[0]+"e"+(+ie[1]-ee))}return E($)}}var hl=ir&&1/Br(new ir([,-0]))[1]==ne?function(f){return new ir(f)}:Ra;function Ws(f){return function(E){var $=Bn(E);return $==K?qo(E):$==ce?jc(E):function(ee,ie){return Mn(ie,function(pe){return[pe,ee[pe]]})}(E,f(E))}}function _i(f,E,$,ee,ie,pe,be,Se){var Be=E&y;if(!Be&&typeof f!="function")throw new ni(M);var ot=ee?ee.length:0;if(ot||(E&=~(b|T),ee=ie=w),be=be===w?be:On(Kt(be),0),Se=Se===w?Se:Kt(Se),ot-=ie?ie.length:0,E&T){var rt=ee,lt=ie;ee=ie=w}var wt=Be?w:pa(f),Mt=[f,E,$,ee,ie,rt,lt,pe,be,Se];if(wt&&function(st,ht){var jt=st[1],ft=ht[1],Ft=jt|ft,Lt=Ft<(u|y|C),gn=ft==C&&jt==_||ft==C&&jt==R&&st[7].length<=ht[8]||ft==(C|R)&&ht[7].length<=ht[8]&&jt==_;if(!Lt&&!gn)return st;ft&u&&(st[2]=ht[2],Ft|=jt&u?0:v);var kt=ht[3];if(kt){var Bt=st[3];st[3]=Bt?Ds(Bt,kt,ht[4]):kt,st[4]=Bt?Ni(st[3],d):ht[4]}(kt=ht[5])&&(Bt=st[5],st[5]=Bt?Ls(Bt,kt,ht[6]):kt,st[6]=Bt?Ni(st[5],d):ht[6]),(kt=ht[7])&&(st[7]=kt),ft&C&&(st[8]=st[8]==null?ht[8]:Cn(st[8],ht[8])),st[9]==null&&(st[9]=ht[9]),st[0]=ht[0],st[1]=Ft}(Mt,wt),f=Mt[0],E=Mt[1],$=Mt[2],ee=Mt[3],ie=Mt[4],!(Se=Mt[9]=Mt[9]===w?Be?0:f.length:On(Mt[9]-ot,0))&&E&(_|S)&&(E&=~(_|S)),E&&E!=u)At=E==_||E==S?function(st,ht,jt){var ft=Ir(st);return function Ft(){for(var Lt=arguments.length,gn=mt(Lt),kt=Lt,Bt=ur(Ft);kt--;)gn[kt]=arguments[kt];var jn=Lt<3&&gn[0]!==Bt&&gn[Lt-1]!==Bt?[]:Ni(gn,Bt);return(Lt-=jn.length)<jt?Hs(st,ht,oo,Ft.placeholder,w,gn,jn,w,w,jt-Lt):Gn(this&&this!==dt&&this instanceof Ft?ft:st,this,gn)}}(f,E,Se):E!=b&&E!=(u|b)||ie.length?oo.apply(w,Mt):function(st,ht,jt,ft){var Ft=ht&u,Lt=Ir(st);return function gn(){for(var kt=-1,Bt=arguments.length,jn=-1,In=ft.length,Un=mt(In+Bt),xn=this&&this!==dt&&this instanceof gn?Lt:st;++jn<In;)Un[jn]=ft[jn];for(;Bt--;)Un[jn++]=arguments[++kt];return Gn(xn,Ft?jt:this,Un)}}(f,E,$,ee);else var At=function(st,ht,jt){var ft=ht&u,Ft=Ir(st);return function Lt(){return(this&&this!==dt&&this instanceof Lt?Ft:st).apply(ft?jt:this,arguments)}}(f,E,$);return ou((wt?As:ru)(At,Mt),f,E)}function Zs(f,E,$,ee){return f===w||pi(f,nr[$])&&!yn.call(ee,$)?E:f}function Gs(f,E,$,ee,ie,pe){return _n(f)&&_n(E)&&(pe.set(E,f),to(f,E,w,Gs,pe),pe.delete(E)),f}function pl(f){return jr(f)?w:f}function Xs(f,E,$,ee,ie,pe){var be=$&m,Se=f.length,Be=E.length;if(Se!=Be&&!(be&&Be>Se))return!1;var ot=pe.get(f),rt=pe.get(E);if(ot&&rt)return ot==E&&rt==f;var lt=-1,wt=!0,Mt=$&h?new Vi:w;for(pe.set(f,E),pe.set(E,f);++lt<Se;){var At=f[lt],st=E[lt];if(ee)var ht=be?ee(st,At,lt,E,f,pe):ee(At,st,lt,f,E,pe);if(ht!==w){if(ht)continue;wt=!1;break}if(Mt){if(!Ro(E,function(jt,ft){if(!vr(Mt,ft)&&(At===jt||ie(At,jt,$,ee,pe)))return Mt.push(ft)})){wt=!1;break}}else if(At!==st&&!ie(At,st,$,ee,pe)){wt=!1;break}}return pe.delete(f),pe.delete(E),wt}function Ei(f){return ya(nu(f,w,hu),f+"")}function la(f){return gs(f,Nn,da)}function ha(f){return gs(f,Kn,Ys)}var pa=Gr?function(f){return Gr.get(f)}:Ra;function co(f){for(var E=f.name+"",$=rr[E],ee=yn.call(rr,E)?$.length:0;ee--;){var ie=$[ee],pe=ie.func;if(pe==null||pe==f)return ie.name}return E}function ur(f){return(yn.call(se,"placeholder")?se:f).placeholder}function Pt(){var f=se.iteratee||ja;return f=f===ja?bs:f,arguments.length?f(arguments[0],arguments[1]):f}function lo(f,E){var $,ee,ie=f.__data__;return((ee=typeof($=E))=="string"||ee=="number"||ee=="symbol"||ee=="boolean"?$!=="__proto__":$===null)?ie[typeof E=="string"?"string":"hash"]:ie.map}function fa(f){for(var E=Nn(f),$=E.length;$--;){var ee=E[$],ie=f[ee];E[$]=[ee,ie,eu(ie)]}return E}function Wi(f,E){var $=function(ee,ie){return ee==null?w:ee[ie]}(f,E);return ys($)?$:w}var da=$o?function(f){return f==null?[]:(f=wn(f),Oi($o(f),function(E){return is.call(f,E)}))}:Pa,Ys=$o?function(f){for(var E=[];f;)ji(E,da(f)),f=Vr(f);return E}:Pa,Bn=Fn;function Js(f,E,$){for(var ee=-1,ie=(E=Bi(E,f)).length,pe=!1;++ee<ie;){var be=vi(E[ee]);if(!(pe=f!=null&&$(f,be)))break;f=f[be]}return pe||++ee!=ie?pe:!!(ie=f==null?0:f.length)&&yo(ie)&&ki(be,ie)&&(Vt(f)||Gi(f))}function Qs(f){return typeof f.constructor!="function"||Tr(f)?{}:or(Vr(f))}function fl(f){return Vt(f)||Gi(f)||!!(rs&&f&&f[rs])}function ki(f,E){var $=typeof f;return!!(E=E==null?e:E)&&($=="number"||$!="symbol"&&Ue.test(f))&&f>-1&&f%1==0&&f<E}function $n(f,E,$){if(!_n($))return!1;var ee=typeof E;return!!(ee=="number"?Vn($)&&ki(E,$.length):ee=="string"&&E in $)&&pi($[E],f)}function ma(f,E){if(Vt(f))return!1;var $=typeof f;return!($!="number"&&$!="symbol"&&$!="boolean"&&f!=null&&!Jn(f))||Ce.test(f)||!vt.test(f)||E!=null&&f in wn(E)}function ga(f){var E=co(f),$=se[E];if(typeof $!="function"||!(E in Jt.prototype))return!1;if(f===$)return!0;var ee=pa($);return!!ee&&f===ee[0]}(Uo&&Bn(new Uo(new ArrayBuffer(1)))!=W||br&&Bn(new br)!=K||zo&&Bn(zo.resolve())!=J||ir&&Bn(new ir)!=ce||wr&&Bn(new wr)!=Ee)&&(Bn=function(f){var E=Fn(f),$=E==te?f.constructor:w,ee=$?Zi($):"";if(ee)switch(ee){case Zc:return W;case Gc:return K;case Xc:return J;case Yc:return ce;case Jc:return Ee}return E});var dl=qr?Si:Ca;function Tr(f){var E=f&&f.constructor;return f===(typeof E=="function"&&E.prototype||nr)}function eu(f){return f==f&&!_n(f)}function tu(f,E){return function($){return $!=null&&$[f]===E&&(E!==w||f in wn($))}}function nu(f,E,$){return E=On(E===w?f.length-1:E,0),function(){for(var ee=arguments,ie=-1,pe=On(ee.length-E,0),be=mt(pe);++ie<pe;)be[ie]=ee[E+ie];ie=-1;for(var Se=mt(E+1);++ie<E;)Se[ie]=ee[ie];return Se[E]=$(be),Gn(f,this,Se)}}function iu(f,E){return E.length<2?f:Hi(f,oi(E,0,-1))}function va(f,E){if((E!=="constructor"||typeof f[E]!="function")&&E!="__proto__")return f[E]}var ru=au(As),Or=$c||function(f,E){return dt.setTimeout(f,E)},ya=au(sl);function ou(f,E,$){var ee=E+"";return ya(f,function(ie,pe){var be=pe.length;if(!be)return ie;var Se=be-1;return pe[Se]=(be>1?"& ":"")+pe[Se],pe=pe.join(be>2?", ":" "),ie.replace(qe,`{
62
- /* [wrapped with `+pe+`] */
63
- `)}(ee,function(ie,pe){return ti(s,function(be){var Se="_."+be[0];pe&be[1]&&!Pr(ie,Se)&&ie.push(Se)}),ie.sort()}(function(ie){var pe=ie.match(Ye);return pe?pe[1].split(Dt):[]}(ee),$)))}function au(f){var E=0,$=0;return function(){var ee=Kc(),ie=Z-(ee-$);if($=ee,ie>0){if(++E>=X)return arguments[0]}else E=0;return f.apply(w,arguments)}}function ho(f,E){var $=-1,ee=f.length,ie=ee-1;for(E=E===w?ee:E;++$<E;){var pe=ea($,ie),be=f[pe];f[pe]=f[$],f[$]=be}return f.length=E,f}var ba,wa,su=(ba=go(function(f){var E=[];return f.charCodeAt(0)===46&&E.push(""),f.replace(Ze,function($,ee,ie,pe){E.push(ie?pe.replace($t,"$1"):ee||$)}),E},function(f){return wa.size===500&&wa.clear(),f}),wa=ba.cache,ba);function vi(f){if(typeof f=="string"||Jn(f))return f;var E=f+"";return E=="0"&&1/f==-ne?"-0":E}function Zi(f){if(f!=null){try{return Fr.call(f)}catch(E){}try{return f+""}catch(E){}}return""}function uu(f){if(f instanceof Jt)return f.clone();var E=new ii(f.__wrapped__,f.__chain__);return E.__actions__=zn(f.__actions__),E.__index__=f.__index__,E.__values__=f.__values__,E}var ml=Ht(function(f,E){return An(f)?Er(f,Rn(E,1,An,!0)):[]}),gl=Ht(function(f,E){var $=ai(E);return An($)&&($=w),An(f)?Er(f,Rn(E,1,An,!0),Pt($,2)):[]}),vl=Ht(function(f,E){var $=ai(E);return An($)&&($=w),An(f)?Er(f,Rn(E,1,An,!0),w,$):[]});function cu(f,E,$){var ee=f==null?0:f.length;if(!ee)return-1;var ie=$==null?0:Kt($);return ie<0&&(ie=On(ee+ie,0)),Cr(f,Pt(E,3),ie)}function lu(f,E,$){var ee=f==null?0:f.length;if(!ee)return-1;var ie=ee-1;return $!==w&&(ie=Kt($),ie=$<0?On(ee+ie,0):Cn(ie,ee-1)),Cr(f,Pt(E,3),ie,!0)}function hu(f){return f!=null&&f.length?Rn(f,1):[]}function pu(f){return f&&f.length?f[0]:w}var yl=Ht(function(f){var E=Mn(f,oa);return E.length&&E[0]===f[0]?Go(E):[]}),bl=Ht(function(f){var E=ai(f),$=Mn(f,oa);return E===ai($)?E=w:$.pop(),$.length&&$[0]===f[0]?Go($,Pt(E,2)):[]}),wl=Ht(function(f){var E=ai(f),$=Mn(f,oa);return(E=typeof E=="function"?E:w)&&$.pop(),$.length&&$[0]===f[0]?Go($,w,E):[]});function ai(f){var E=f==null?0:f.length;return E?f[E-1]:w}var xl=Ht(fu);function fu(f,E){return f&&f.length&&E&&E.length?Qo(f,E):f}var Ml=Ei(function(f,E){var $=f==null?0:f.length,ee=Ko(f,E);return Ss(f,Mn(E,function(ie){return ki(ie,$)?+ie:ie}).sort(Bs)),ee});function xa(f){return f==null?f:Wc.call(f)}var _l=Ht(function(f){return Ci(Rn(f,1,An,!0))}),El=Ht(function(f){var E=ai(f);return An(E)&&(E=w),Ci(Rn(f,1,An,!0),Pt(E,2))}),kl=Ht(function(f){var E=ai(f);return E=typeof E=="function"?E:w,Ci(Rn(f,1,An,!0),w,E)});function Ma(f){if(!f||!f.length)return[];var E=0;return f=Oi(f,function($){if(An($))return E=On($.length,E),!0}),Do(E,function($){return Mn(f,Po($))})}function du(f,E){if(!f||!f.length)return[];var $=Ma(f);return E==null?$:Mn($,function(ee){return Gn(E,w,ee)})}var Sl=Ht(function(f,E){return An(f)?Er(f,E):[]}),Al=Ht(function(f){return ra(Oi(f,An))}),Il=Ht(function(f){var E=ai(f);return An(E)&&(E=w),ra(Oi(f,An),Pt(E,2))}),Tl=Ht(function(f){var E=ai(f);return E=typeof E=="function"?E:w,ra(Oi(f,An),w,E)}),Ol=Ht(Ma),jl=Ht(function(f){var E=f.length,$=E>1?f[E-1]:w;return $=typeof $=="function"?(f.pop(),$):w,du(f,$)});function mu(f){var E=se(f);return E.__chain__=!0,E}function po(f,E){return E(f)}var Nl=Ei(function(f){var E=f.length,$=E?f[0]:0,ee=this.__wrapped__,ie=function(pe){return Ko(pe,f)};return!(E>1||this.__actions__.length)&&ee instanceof Jt&&ki($)?((ee=ee.slice($,+$+(E?1:0))).__actions__.push({func:po,args:[ie],thisArg:w}),new ii(ee,this.__chain__).thru(function(pe){return E&&!pe.length&&pe.push(w),pe})):this.thru(ie)}),Rl=ro(function(f,E,$){yn.call(f,$)?++f[$]:Mi(f,$,1)}),Pl=Us(cu),Cl=Us(lu);function gu(f,E){return(Vt(f)?ti:Pi)(f,Pt(E,3))}function vu(f,E){return(Vt(f)?Ec:fs)(f,Pt(E,3))}var Bl=ro(function(f,E,$){yn.call(f,$)?f[$].push(E):Mi(f,$,[E])}),Dl=Ht(function(f,E,$){var ee=-1,ie=typeof E=="function",pe=Vn(f)?mt(f.length):[];return Pi(f,function(be){pe[++ee]=ie?Gn(E,be,$):kr(be,E,$)}),pe}),Ll=ro(function(f,E,$){Mi(f,$,E)});function fo(f,E){return(Vt(f)?Mn:ws)(f,Pt(E,3))}var ql=ro(function(f,E,$){f[$?0:1].push(E)},function(){return[[],[]]}),Fl=Ht(function(f,E){if(f==null)return[];var $=E.length;return $>1&&$n(f,E[0],E[1])?E=[]:$>2&&$n(E[0],E[1],E[2])&&(E=[E[0]]),Es(f,Rn(E,1),[])}),mo=Fc||function(){return dt.Date.now()};function yu(f,E,$){return E=$?w:E,E=f&&E==null?f.length:E,_i(f,C,w,w,w,w,E)}function bu(f,E){var $;if(typeof E!="function")throw new ni(M);return f=Kt(f),function(){return--f>0&&($=E.apply(this,arguments)),f<=1&&(E=w),$}}var _a=Ht(function(f,E,$){var ee=u;if($.length){var ie=Ni($,ur(_a));ee|=b}return _i(f,ee,E,$,ie)}),wu=Ht(function(f,E,$){var ee=u|y;if($.length){var ie=Ni($,ur(wu));ee|=b}return _i(E,ee,f,$,ie)});function xu(f,E,$){var ee,ie,pe,be,Se,Be,ot=0,rt=!1,lt=!1,wt=!0;if(typeof f!="function")throw new ni(M);function Mt(ft){var Ft=ee,Lt=ie;return ee=ie=w,ot=ft,be=f.apply(Lt,Ft)}function At(ft){var Ft=ft-Be;return Be===w||Ft>=E||Ft<0||lt&&ft-ot>=pe}function st(){var ft=mo();if(At(ft))return ht(ft);Se=Or(st,function(Ft){var Lt=E-(Ft-Be);return lt?Cn(Lt,pe-(Ft-ot)):Lt}(ft))}function ht(ft){return Se=w,wt&&ee?Mt(ft):(ee=ie=w,be)}function jt(){var ft=mo(),Ft=At(ft);if(ee=arguments,ie=this,Be=ft,Ft){if(Se===w)return function(Lt){return ot=Lt,Se=Or(st,E),rt?Mt(Lt):be}(Be);if(lt)return Rs(Se),Se=Or(st,E),Mt(Be)}return Se===w&&(Se=Or(st,E)),be}return E=si(E)||0,_n($)&&(rt=!!$.leading,pe=(lt="maxWait"in $)?On(si($.maxWait)||0,E):pe,wt="trailing"in $?!!$.trailing:wt),jt.cancel=function(){Se!==w&&Rs(Se),ot=0,ee=Be=ie=Se=w},jt.flush=function(){return Se===w?be:ht(mo())},jt}var $l=Ht(function(f,E){return ps(f,1,E)}),Ul=Ht(function(f,E,$){return ps(f,si(E)||0,$)});function go(f,E){if(typeof f!="function"||E!=null&&typeof E!="function")throw new ni(M);var $=function(){var ee=arguments,ie=E?E.apply(this,ee):ee[0],pe=$.cache;if(pe.has(ie))return pe.get(ie);var be=f.apply(this,ee);return $.cache=pe.set(ie,be)||pe,be};return $.cache=new(go.Cache||xi),$}function vo(f){if(typeof f!="function")throw new ni(M);return function(){var E=arguments;switch(E.length){case 0:return!f.call(this);case 1:return!f.call(this,E[0]);case 2:return!f.call(this,E[0],E[1]);case 3:return!f.call(this,E[0],E[1],E[2])}return!f.apply(this,E)}}go.Cache=xi;var zl=ll(function(f,E){var $=(E=E.length==1&&Vt(E[0])?Mn(E[0],Xn(Pt())):Mn(Rn(E,1),Xn(Pt()))).length;return Ht(function(ee){for(var ie=-1,pe=Cn(ee.length,$);++ie<pe;)ee[ie]=E[ie].call(this,ee[ie]);return Gn(f,this,ee)})}),Ea=Ht(function(f,E){var $=Ni(E,ur(Ea));return _i(f,b,w,E,$)}),Mu=Ht(function(f,E){var $=Ni(E,ur(Mu));return _i(f,T,w,E,$)}),Vl=Ei(function(f,E){return _i(f,R,w,w,w,E)});function pi(f,E){return f===E||f!=f&&E!=E}var Kl=uo(Zo),Hl=uo(function(f,E){return f>=E}),Gi=vs(function(){return arguments}())?vs:function(f){return kn(f)&&yn.call(f,"callee")&&!is.call(f,"callee")},Vt=mt.isArray,Wl=ci?Xn(ci):function(f){return kn(f)&&Fn(f)==V};function Vn(f){return f!=null&&yo(f.length)&&!Si(f)}function An(f){return kn(f)&&Vn(f)}var Li=Uc||Ca,Zl=qn?Xn(qn):function(f){return kn(f)&&Fn(f)==N};function ka(f){if(!kn(f))return!1;var E=Fn(f);return E==z||E==L||typeof f.message=="string"&&typeof f.name=="string"&&!jr(f)}function Si(f){if(!_n(f))return!1;var E=Fn(f);return E==Y||E==D||E==j||E==ae}function _u(f){return typeof f=="number"&&f==Kt(f)}function yo(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=e}function _n(f){var E=typeof f;return f!=null&&(E=="object"||E=="function")}function kn(f){return f!=null&&typeof f=="object"}var Eu=fi?Xn(fi):function(f){return kn(f)&&Bn(f)==K};function ku(f){return typeof f=="number"||kn(f)&&Fn(f)==q}function jr(f){if(!kn(f)||Fn(f)!=te)return!1;var E=Vr(f);if(E===null)return!0;var $=yn.call(E,"constructor")&&E.constructor;return typeof $=="function"&&$ instanceof $&&Fr.call($)==Bc}var Sa=$a?Xn($a):function(f){return kn(f)&&Fn(f)==xe},Su=Ua?Xn(Ua):function(f){return kn(f)&&Bn(f)==ce};function bo(f){return typeof f=="string"||!Vt(f)&&kn(f)&&Fn(f)==fe}function Jn(f){return typeof f=="symbol"||kn(f)&&Fn(f)==Te}var cr=za?Xn(za):function(f){return kn(f)&&yo(f.length)&&!!_t[Fn(f)]},Gl=uo(Jo),Xl=uo(function(f,E){return f<=E});function Au(f){if(!f)return[];if(Vn(f))return bo(f)?li(f):zn(f);if(yr&&f[yr])return function($){for(var ee,ie=[];!(ee=$.next()).done;)ie.push(ee.value);return ie}(f[yr]());var E=Bn(f);return(E==K?qo:E==ce?Br:lr)(f)}function Ai(f){return f?(f=si(f))===ne||f===-ne?(f<0?-1:1)*r:f==f?f:0:f===0?f:0}function Kt(f){var E=Ai(f),$=E%1;return E==E?$?E-$:E:0}function Iu(f){return f?Ki(Kt(f),0,n):0}function si(f){if(typeof f=="number")return f;if(Jn(f))return i;if(_n(f)){var E=typeof f.valueOf=="function"?f.valueOf():f;f=_n(E)?E+"":E}if(typeof f!="string")return f===0?f:+f;f=Ga(f);var $=$e.test(f);return $||zt.test(f)?Ln(f.slice(2),$?2:8):Ut.test(f)?i:+f}function Tu(f){return gi(f,Kn(f))}function vn(f){return f==null?"":Yn(f)}var Yl=ar(function(f,E){if(Tr(E)||Vn(E))gi(E,Nn(E),f);else for(var $ in E)yn.call(E,$)&&_r(f,$,E[$])}),Ou=ar(function(f,E){gi(E,Kn(E),f)}),wo=ar(function(f,E,$,ee){gi(E,Kn(E),f,ee)}),Jl=ar(function(f,E,$,ee){gi(E,Nn(E),f,ee)}),Ql=Ei(Ko),eh=Ht(function(f,E){f=wn(f);var $=-1,ee=E.length,ie=ee>2?E[2]:w;for(ie&&$n(E[0],E[1],ie)&&(ee=1);++$<ee;)for(var pe=E[$],be=Kn(pe),Se=-1,Be=be.length;++Se<Be;){var ot=be[Se],rt=f[ot];(rt===w||pi(rt,nr[ot])&&!yn.call(f,ot))&&(f[ot]=pe[ot])}return f}),th=Ht(function(f){return f.push(w,Gs),Gn(ju,w,f)});function Aa(f,E,$){var ee=f==null?w:Hi(f,E);return ee===w?$:ee}function Ia(f,E){return f!=null&&Js(f,E,rl)}var nh=Vs(function(f,E,$){E!=null&&typeof E.toString!="function"&&(E=$r.call(E)),f[E]=$},Oa(Hn)),ih=Vs(function(f,E,$){E!=null&&typeof E.toString!="function"&&(E=$r.call(E)),yn.call(f,E)?f[E].push($):f[E]=[$]},Pt),rh=Ht(kr);function Nn(f){return Vn(f)?us(f):Yo(f)}function Kn(f){return Vn(f)?us(f,!0):function(E){if(!_n(E))return function(pe){var be=[];if(pe!=null)for(var Se in wn(pe))be.push(Se);return be}(E);var $=Tr(E),ee=[];for(var ie in E)(ie!="constructor"||!$&&yn.call(E,ie))&&ee.push(ie);return ee}(f)}var oh=ar(function(f,E,$){to(f,E,$)}),ju=ar(function(f,E,$,ee){to(f,E,$,ee)}),ah=Ei(function(f,E){var $={};if(f==null)return $;var ee=!1;E=Mn(E,function(pe){return pe=Bi(pe,f),ee||(ee=pe.length>1),pe}),gi(f,ha(f),$),ee&&($=ri($,c|l|p,pl));for(var ie=E.length;ie--;)ia($,E[ie]);return $}),sh=Ei(function(f,E){return f==null?{}:function($,ee){return ks($,ee,function(ie,pe){return Ia($,pe)})}(f,E)});function Nu(f,E){if(f==null)return{};var $=Mn(ha(f),function(ee){return[ee]});return E=Pt(E),ks(f,$,function(ee,ie){return E(ee,ie[0])})}var Ru=Ws(Nn),Pu=Ws(Kn);function lr(f){return f==null?[]:Lo(f,Nn(f))}var uh=sr(function(f,E,$){return E=E.toLowerCase(),f+($?Cu(E):E)});function Cu(f){return Ta(vn(f).toLowerCase())}function Bu(f){return(f=vn(f))&&f.replace(tt,Ic).replace(Ae,"")}var ch=sr(function(f,E,$){return f+($?"-":"")+E.toLowerCase()}),lh=sr(function(f,E,$){return f+($?" ":"")+E.toLowerCase()}),hh=$s("toLowerCase"),ph=sr(function(f,E,$){return f+($?"_":"")+E.toLowerCase()}),fh=sr(function(f,E,$){return f+($?" ":"")+Ta(E)}),dh=sr(function(f,E,$){return f+($?" ":"")+E.toUpperCase()}),Ta=$s("toUpperCase");function Du(f,E,$){return f=vn(f),(E=$?w:E)===w?function(ee){return it.test(ee)}(f)?function(ee){return ee.match(ze)||[]}(f):function(ee){return ee.match(Le)||[]}(f):f.match(E)||[]}var Lu=Ht(function(f,E){try{return Gn(f,w,E)}catch($){return ka($)?$:new rn($)}}),mh=Ei(function(f,E){return ti(E,function($){$=vi($),Mi(f,$,_a(f[$],f))}),f});function Oa(f){return function(){return f}}var gh=zs(),vh=zs(!0);function Hn(f){return f}function ja(f){return bs(typeof f=="function"?f:ri(f,c))}var yh=Ht(function(f,E){return function($){return kr($,f,E)}}),bh=Ht(function(f,E){return function($){return kr(f,$,E)}});function Na(f,E,$){var ee=Nn(E),ie=eo(E,ee);$!=null||_n(E)&&(ie.length||!ee.length)||($=E,E=f,f=this,ie=eo(E,Nn(E)));var pe=!(_n($)&&"chain"in $&&!$.chain),be=Si(f);return ti(ie,function(Se){var Be=E[Se];f[Se]=Be,be&&(f.prototype[Se]=function(){var ot=this.__chain__;if(pe||ot){var rt=f(this.__wrapped__);return(rt.__actions__=zn(this.__actions__)).push({func:Be,args:arguments,thisArg:f}),rt.__chain__=ot,rt}return Be.apply(f,ji([this.value()],arguments))})}),f}function Ra(){}var wh=ua(Mn),xh=ua(Va),Mh=ua(Ro);function qu(f){return ma(f)?Po(vi(f)):function(E){return function($){return Hi($,E)}}(f)}var _h=Ks(),Eh=Ks(!0);function Pa(){return[]}function Ca(){return!1}var Ba,kh=ao(function(f,E){return f+E},0),Sh=ca("ceil"),Ah=ao(function(f,E){return f/E},1),Ih=ca("floor"),Th=ao(function(f,E){return f*E},1),Oh=ca("round"),jh=ao(function(f,E){return f-E},0);return se.after=function(f,E){if(typeof E!="function")throw new ni(M);return f=Kt(f),function(){if(--f<1)return E.apply(this,arguments)}},se.ary=yu,se.assign=Yl,se.assignIn=Ou,se.assignInWith=wo,se.assignWith=Jl,se.at=Ql,se.before=bu,se.bind=_a,se.bindAll=mh,se.bindKey=wu,se.castArray=function(){if(!arguments.length)return[];var f=arguments[0];return Vt(f)?f:[f]},se.chain=mu,se.chunk=function(f,E,$){E=($?$n(f,E,$):E===w)?1:On(Kt(E),0);var ee=f==null?0:f.length;if(!ee||E<1)return[];for(var ie=0,pe=0,be=mt(Wr(ee/E));ie<ee;)be[pe++]=oi(f,ie,ie+=E);return be},se.compact=function(f){for(var E=-1,$=f==null?0:f.length,ee=0,ie=[];++E<$;){var pe=f[E];pe&&(ie[ee++]=pe)}return ie},se.concat=function(){var f=arguments.length;if(!f)return[];for(var E=mt(f-1),$=arguments[0],ee=f;ee--;)E[ee-1]=arguments[ee];return ji(Vt($)?zn($):[$],Rn(E,1))},se.cond=function(f){var E=f==null?0:f.length,$=Pt();return f=E?Mn(f,function(ee){if(typeof ee[1]!="function")throw new ni(M);return[$(ee[0]),ee[1]]}):[],Ht(function(ee){for(var ie=-1;++ie<E;){var pe=f[ie];if(Gn(pe[0],this,ee))return Gn(pe[1],this,ee)}})},se.conforms=function(f){return function(E){var $=Nn(E);return function(ee){return hs(ee,E,$)}}(ri(f,c))},se.constant=Oa,se.countBy=Rl,se.create=function(f,E){var $=or(f);return E==null?$:ls($,E)},se.curry=function f(E,$,ee){var ie=_i(E,_,w,w,w,w,w,$=ee?w:$);return ie.placeholder=f.placeholder,ie},se.curryRight=function f(E,$,ee){var ie=_i(E,S,w,w,w,w,w,$=ee?w:$);return ie.placeholder=f.placeholder,ie},se.debounce=xu,se.defaults=eh,se.defaultsDeep=th,se.defer=$l,se.delay=Ul,se.difference=ml,se.differenceBy=gl,se.differenceWith=vl,se.drop=function(f,E,$){var ee=f==null?0:f.length;return ee?oi(f,(E=$||E===w?1:Kt(E))<0?0:E,ee):[]},se.dropRight=function(f,E,$){var ee=f==null?0:f.length;return ee?oi(f,0,(E=ee-(E=$||E===w?1:Kt(E)))<0?0:E):[]},se.dropRightWhile=function(f,E){return f&&f.length?io(f,Pt(E,3),!0,!0):[]},se.dropWhile=function(f,E){return f&&f.length?io(f,Pt(E,3),!0):[]},se.fill=function(f,E,$,ee){var ie=f==null?0:f.length;return ie?($&&typeof $!="number"&&$n(f,E,$)&&($=0,ee=ie),function(pe,be,Se,Be){var ot=pe.length;for((Se=Kt(Se))<0&&(Se=-Se>ot?0:ot+Se),(Be=Be===w||Be>ot?ot:Kt(Be))<0&&(Be+=ot),Be=Se>Be?0:Iu(Be);Se<Be;)pe[Se++]=be;return pe}(f,E,$,ee)):[]},se.filter=function(f,E){return(Vt(f)?Oi:ds)(f,Pt(E,3))},se.flatMap=function(f,E){return Rn(fo(f,E),1)},se.flatMapDeep=function(f,E){return Rn(fo(f,E),ne)},se.flatMapDepth=function(f,E,$){return $=$===w?1:Kt($),Rn(fo(f,E),$)},se.flatten=hu,se.flattenDeep=function(f){return f!=null&&f.length?Rn(f,ne):[]},se.flattenDepth=function(f,E){return f!=null&&f.length?Rn(f,E=E===w?1:Kt(E)):[]},se.flip=function(f){return _i(f,F)},se.flow=gh,se.flowRight=vh,se.fromPairs=function(f){for(var E=-1,$=f==null?0:f.length,ee={};++E<$;){var ie=f[E];ee[ie[0]]=ie[1]}return ee},se.functions=function(f){return f==null?[]:eo(f,Nn(f))},se.functionsIn=function(f){return f==null?[]:eo(f,Kn(f))},se.groupBy=Bl,se.initial=function(f){return f!=null&&f.length?oi(f,0,-1):[]},se.intersection=yl,se.intersectionBy=bl,se.intersectionWith=wl,se.invert=nh,se.invertBy=ih,se.invokeMap=Dl,se.iteratee=ja,se.keyBy=Ll,se.keys=Nn,se.keysIn=Kn,se.map=fo,se.mapKeys=function(f,E){var $={};return E=Pt(E,3),mi(f,function(ee,ie,pe){Mi($,E(ee,ie,pe),ee)}),$},se.mapValues=function(f,E){var $={};return E=Pt(E,3),mi(f,function(ee,ie,pe){Mi($,ie,E(ee,ie,pe))}),$},se.matches=function(f){return xs(ri(f,c))},se.matchesProperty=function(f,E){return Ms(f,ri(E,c))},se.memoize=go,se.merge=oh,se.mergeWith=ju,se.method=yh,se.methodOf=bh,se.mixin=Na,se.negate=vo,se.nthArg=function(f){return f=Kt(f),Ht(function(E){return _s(E,f)})},se.omit=ah,se.omitBy=function(f,E){return Nu(f,vo(Pt(E)))},se.once=function(f){return bu(2,f)},se.orderBy=function(f,E,$,ee){return f==null?[]:(Vt(E)||(E=E==null?[]:[E]),Vt($=ee?w:$)||($=$==null?[]:[$]),Es(f,E,$))},se.over=wh,se.overArgs=zl,se.overEvery=xh,se.overSome=Mh,se.partial=Ea,se.partialRight=Mu,se.partition=ql,se.pick=sh,se.pickBy=Nu,se.property=qu,se.propertyOf=function(f){return function(E){return f==null?w:Hi(f,E)}},se.pull=xl,se.pullAll=fu,se.pullAllBy=function(f,E,$){return f&&f.length&&E&&E.length?Qo(f,E,Pt($,2)):f},se.pullAllWith=function(f,E,$){return f&&f.length&&E&&E.length?Qo(f,E,w,$):f},se.pullAt=Ml,se.range=_h,se.rangeRight=Eh,se.rearg=Vl,se.reject=function(f,E){return(Vt(f)?Oi:ds)(f,vo(Pt(E,3)))},se.remove=function(f,E){var $=[];if(!f||!f.length)return $;var ee=-1,ie=[],pe=f.length;for(E=Pt(E,3);++ee<pe;){var be=f[ee];E(be,ee,f)&&($.push(be),ie.push(ee))}return Ss(f,ie),$},se.rest=function(f,E){if(typeof f!="function")throw new ni(M);return Ht(f,E=E===w?E:Kt(E))},se.reverse=xa,se.sampleSize=function(f,E,$){return E=($?$n(f,E,$):E===w)?1:Kt(E),(Vt(f)?Qc:al)(f,E)},se.set=function(f,E,$){return f==null?f:Ar(f,E,$)},se.setWith=function(f,E,$,ee){return ee=typeof ee=="function"?ee:w,f==null?f:Ar(f,E,$,ee)},se.shuffle=function(f){return(Vt(f)?el:ul)(f)},se.slice=function(f,E,$){var ee=f==null?0:f.length;return ee?($&&typeof $!="number"&&$n(f,E,$)?(E=0,$=ee):(E=E==null?0:Kt(E),$=$===w?ee:Kt($)),oi(f,E,$)):[]},se.sortBy=Fl,se.sortedUniq=function(f){return f&&f.length?Is(f):[]},se.sortedUniqBy=function(f,E){return f&&f.length?Is(f,Pt(E,2)):[]},se.split=function(f,E,$){return $&&typeof $!="number"&&$n(f,E,$)&&(E=$=w),($=$===w?n:$>>>0)?(f=vn(f))&&(typeof E=="string"||E!=null&&!Sa(E))&&!(E=Yn(E))&&er(f)?Di(li(f),0,$):f.split(E,$):[]},se.spread=function(f,E){if(typeof f!="function")throw new ni(M);return E=E==null?0:On(Kt(E),0),Ht(function($){var ee=$[E],ie=Di($,0,E);return ee&&ji(ie,ee),Gn(f,this,ie)})},se.tail=function(f){var E=f==null?0:f.length;return E?oi(f,1,E):[]},se.take=function(f,E,$){return f&&f.length?oi(f,0,(E=$||E===w?1:Kt(E))<0?0:E):[]},se.takeRight=function(f,E,$){var ee=f==null?0:f.length;return ee?oi(f,(E=ee-(E=$||E===w?1:Kt(E)))<0?0:E,ee):[]},se.takeRightWhile=function(f,E){return f&&f.length?io(f,Pt(E,3),!1,!0):[]},se.takeWhile=function(f,E){return f&&f.length?io(f,Pt(E,3)):[]},se.tap=function(f,E){return E(f),f},se.throttle=function(f,E,$){var ee=!0,ie=!0;if(typeof f!="function")throw new ni(M);return _n($)&&(ee="leading"in $?!!$.leading:ee,ie="trailing"in $?!!$.trailing:ie),xu(f,E,{leading:ee,maxWait:E,trailing:ie})},se.thru=po,se.toArray=Au,se.toPairs=Ru,se.toPairsIn=Pu,se.toPath=function(f){return Vt(f)?Mn(f,vi):Jn(f)?[f]:zn(su(vn(f)))},se.toPlainObject=Tu,se.transform=function(f,E,$){var ee=Vt(f),ie=ee||Li(f)||cr(f);if(E=Pt(E,4),$==null){var pe=f&&f.constructor;$=ie?ee?new pe:[]:_n(f)&&Si(pe)?or(Vr(f)):{}}return(ie?ti:mi)(f,function(be,Se,Be){return E($,be,Se,Be)}),$},se.unary=function(f){return yu(f,1)},se.union=_l,se.unionBy=El,se.unionWith=kl,se.uniq=function(f){return f&&f.length?Ci(f):[]},se.uniqBy=function(f,E){return f&&f.length?Ci(f,Pt(E,2)):[]},se.uniqWith=function(f,E){return E=typeof E=="function"?E:w,f&&f.length?Ci(f,w,E):[]},se.unset=function(f,E){return f==null||ia(f,E)},se.unzip=Ma,se.unzipWith=du,se.update=function(f,E,$){return f==null?f:Os(f,E,aa($))},se.updateWith=function(f,E,$,ee){return ee=typeof ee=="function"?ee:w,f==null?f:Os(f,E,aa($),ee)},se.values=lr,se.valuesIn=function(f){return f==null?[]:Lo(f,Kn(f))},se.without=Sl,se.words=Du,se.wrap=function(f,E){return Ea(aa(E),f)},se.xor=Al,se.xorBy=Il,se.xorWith=Tl,se.zip=Ol,se.zipObject=function(f,E){return Ns(f||[],E||[],_r)},se.zipObjectDeep=function(f,E){return Ns(f||[],E||[],Ar)},se.zipWith=jl,se.entries=Ru,se.entriesIn=Pu,se.extend=Ou,se.extendWith=wo,Na(se,se),se.add=kh,se.attempt=Lu,se.camelCase=uh,se.capitalize=Cu,se.ceil=Sh,se.clamp=function(f,E,$){return $===w&&($=E,E=w),$!==w&&($=($=si($))==$?$:0),E!==w&&(E=(E=si(E))==E?E:0),Ki(si(f),E,$)},se.clone=function(f){return ri(f,p)},se.cloneDeep=function(f){return ri(f,c|p)},se.cloneDeepWith=function(f,E){return ri(f,c|p,E=typeof E=="function"?E:w)},se.cloneWith=function(f,E){return ri(f,p,E=typeof E=="function"?E:w)},se.conformsTo=function(f,E){return E==null||hs(f,E,Nn(E))},se.deburr=Bu,se.defaultTo=function(f,E){return f==null||f!=f?E:f},se.divide=Ah,se.endsWith=function(f,E,$){f=vn(f),E=Yn(E);var ee=f.length,ie=$=$===w?ee:Ki(Kt($),0,ee);return($-=E.length)>=0&&f.slice($,ie)==E},se.eq=pi,se.escape=function(f){return(f=vn(f))&&Ke.test(f)?f.replace(Ct,Tc):f},se.escapeRegExp=function(f){return(f=vn(f))&&Re.test(f)?f.replace(St,"\\$&"):f},se.every=function(f,E,$){var ee=Vt(f)?Va:nl;return $&&$n(f,E,$)&&(E=w),ee(f,Pt(E,3))},se.find=Pl,se.findIndex=cu,se.findKey=function(f,E){return Ka(f,Pt(E,3),mi)},se.findLast=Cl,se.findLastIndex=lu,se.findLastKey=function(f,E){return Ka(f,Pt(E,3),Wo)},se.floor=Ih,se.forEach=gu,se.forEachRight=vu,se.forIn=function(f,E){return f==null?f:Ho(f,Pt(E,3),Kn)},se.forInRight=function(f,E){return f==null?f:ms(f,Pt(E,3),Kn)},se.forOwn=function(f,E){return f&&mi(f,Pt(E,3))},se.forOwnRight=function(f,E){return f&&Wo(f,Pt(E,3))},se.get=Aa,se.gt=Kl,se.gte=Hl,se.has=function(f,E){return f!=null&&Js(f,E,il)},se.hasIn=Ia,se.head=pu,se.identity=Hn,se.includes=function(f,E,$,ee){f=Vn(f)?f:lr(f),$=$&&!ee?Kt($):0;var ie=f.length;return $<0&&($=On(ie+$,0)),bo(f)?$<=ie&&f.indexOf(E,$)>-1:!!ie&&Qi(f,E,$)>-1},se.indexOf=function(f,E,$){var ee=f==null?0:f.length;if(!ee)return-1;var ie=$==null?0:Kt($);return ie<0&&(ie=On(ee+ie,0)),Qi(f,E,ie)},se.inRange=function(f,E,$){return E=Ai(E),$===w?($=E,E=0):$=Ai($),function(ee,ie,pe){return ee>=Cn(ie,pe)&&ee<On(ie,pe)}(f=si(f),E,$)},se.invoke=rh,se.isArguments=Gi,se.isArray=Vt,se.isArrayBuffer=Wl,se.isArrayLike=Vn,se.isArrayLikeObject=An,se.isBoolean=function(f){return f===!0||f===!1||kn(f)&&Fn(f)==A},se.isBuffer=Li,se.isDate=Zl,se.isElement=function(f){return kn(f)&&f.nodeType===1&&!jr(f)},se.isEmpty=function(f){if(f==null)return!0;if(Vn(f)&&(Vt(f)||typeof f=="string"||typeof f.splice=="function"||Li(f)||cr(f)||Gi(f)))return!f.length;var E=Bn(f);if(E==K||E==ce)return!f.size;if(Tr(f))return!Yo(f).length;for(var $ in f)if(yn.call(f,$))return!1;return!0},se.isEqual=function(f,E){return Sr(f,E)},se.isEqualWith=function(f,E,$){var ee=($=typeof $=="function"?$:w)?$(f,E):w;return ee===w?Sr(f,E,w,$):!!ee},se.isError=ka,se.isFinite=function(f){return typeof f=="number"&&os(f)},se.isFunction=Si,se.isInteger=_u,se.isLength=yo,se.isMap=Eu,se.isMatch=function(f,E){return f===E||Xo(f,E,fa(E))},se.isMatchWith=function(f,E,$){return $=typeof $=="function"?$:w,Xo(f,E,fa(E),$)},se.isNaN=function(f){return ku(f)&&f!=+f},se.isNative=function(f){if(dl(f))throw new rn("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return ys(f)},se.isNil=function(f){return f==null},se.isNull=function(f){return f===null},se.isNumber=ku,se.isObject=_n,se.isObjectLike=kn,se.isPlainObject=jr,se.isRegExp=Sa,se.isSafeInteger=function(f){return _u(f)&&f>=-e&&f<=e},se.isSet=Su,se.isString=bo,se.isSymbol=Jn,se.isTypedArray=cr,se.isUndefined=function(f){return f===w},se.isWeakMap=function(f){return kn(f)&&Bn(f)==Ee},se.isWeakSet=function(f){return kn(f)&&Fn(f)=="[object WeakSet]"},se.join=function(f,E){return f==null?"":zc.call(f,E)},se.kebabCase=ch,se.last=ai,se.lastIndexOf=function(f,E,$){var ee=f==null?0:f.length;if(!ee)return-1;var ie=ee;return $!==w&&(ie=(ie=Kt($))<0?On(ee+ie,0):Cn(ie,ee-1)),E==E?function(pe,be,Se){for(var Be=Se+1;Be--;)if(pe[Be]===be)return Be;return Be}(f,E,ie):Cr(f,Ha,ie,!0)},se.lowerCase=lh,se.lowerFirst=hh,se.lt=Gl,se.lte=Xl,se.max=function(f){return f&&f.length?Qr(f,Hn,Zo):w},se.maxBy=function(f,E){return f&&f.length?Qr(f,Pt(E,2),Zo):w},se.mean=function(f){return Wa(f,Hn)},se.meanBy=function(f,E){return Wa(f,Pt(E,2))},se.min=function(f){return f&&f.length?Qr(f,Hn,Jo):w},se.minBy=function(f,E){return f&&f.length?Qr(f,Pt(E,2),Jo):w},se.stubArray=Pa,se.stubFalse=Ca,se.stubObject=function(){return{}},se.stubString=function(){return""},se.stubTrue=function(){return!0},se.multiply=Th,se.nth=function(f,E){return f&&f.length?_s(f,Kt(E)):w},se.noConflict=function(){return dt._===this&&(dt._=Dc),this},se.noop=Ra,se.now=mo,se.pad=function(f,E,$){f=vn(f);var ee=(E=Kt(E))?tr(f):0;if(!E||ee>=E)return f;var ie=(E-ee)/2;return so(Zr(ie),$)+f+so(Wr(ie),$)},se.padEnd=function(f,E,$){f=vn(f);var ee=(E=Kt(E))?tr(f):0;return E&&ee<E?f+so(E-ee,$):f},se.padStart=function(f,E,$){f=vn(f);var ee=(E=Kt(E))?tr(f):0;return E&&ee<E?so(E-ee,$)+f:f},se.parseInt=function(f,E,$){return $||E==null?E=0:E&&(E=+E),Hc(vn(f).replace(Ge,""),E||0)},se.random=function(f,E,$){if($&&typeof $!="boolean"&&$n(f,E,$)&&(E=$=w),$===w&&(typeof E=="boolean"?($=E,E=w):typeof f=="boolean"&&($=f,f=w)),f===w&&E===w?(f=0,E=1):(f=Ai(f),E===w?(E=f,f=0):E=Ai(E)),f>E){var ee=f;f=E,E=ee}if($||f%1||E%1){var ie=as();return Cn(f+ie*(E-f+Xt("1e-"+((ie+"").length-1))),E)}return ea(f,E)},se.reduce=function(f,E,$){var ee=Vt(f)?No:Za,ie=arguments.length<3;return ee(f,Pt(E,4),$,ie,Pi)},se.reduceRight=function(f,E,$){var ee=Vt(f)?kc:Za,ie=arguments.length<3;return ee(f,Pt(E,4),$,ie,fs)},se.repeat=function(f,E,$){return E=($?$n(f,E,$):E===w)?1:Kt(E),ta(vn(f),E)},se.replace=function(){var f=arguments,E=vn(f[0]);return f.length<3?E:E.replace(f[1],f[2])},se.result=function(f,E,$){var ee=-1,ie=(E=Bi(E,f)).length;for(ie||(ie=1,f=w);++ee<ie;){var pe=f==null?w:f[vi(E[ee])];pe===w&&(ee=ie,pe=$),f=Si(pe)?pe.call(f):pe}return f},se.round=Oh,se.runInContext=Ve,se.sample=function(f){return(Vt(f)?cs:ol)(f)},se.size=function(f){if(f==null)return 0;if(Vn(f))return bo(f)?tr(f):f.length;var E=Bn(f);return E==K||E==ce?f.size:Yo(f).length},se.snakeCase=ph,se.some=function(f,E,$){var ee=Vt(f)?Ro:cl;return $&&$n(f,E,$)&&(E=w),ee(f,Pt(E,3))},se.sortedIndex=function(f,E){return no(f,E)},se.sortedIndexBy=function(f,E,$){return na(f,E,Pt($,2))},se.sortedIndexOf=function(f,E){var $=f==null?0:f.length;if($){var ee=no(f,E);if(ee<$&&pi(f[ee],E))return ee}return-1},se.sortedLastIndex=function(f,E){return no(f,E,!0)},se.sortedLastIndexBy=function(f,E,$){return na(f,E,Pt($,2),!0)},se.sortedLastIndexOf=function(f,E){if(f!=null&&f.length){var $=no(f,E,!0)-1;if(pi(f[$],E))return $}return-1},se.startCase=fh,se.startsWith=function(f,E,$){return f=vn(f),$=$==null?0:Ki(Kt($),0,f.length),E=Yn(E),f.slice($,$+E.length)==E},se.subtract=jh,se.sum=function(f){return f&&f.length?Bo(f,Hn):0},se.sumBy=function(f,E){return f&&f.length?Bo(f,Pt(E,2)):0},se.template=function(f,E,$){var ee=se.templateSettings;$&&$n(f,E,$)&&(E=w),f=vn(f),E=wo({},E,ee,Zs);var ie,pe,be=wo({},E.imports,ee.imports,Zs),Se=Nn(be),Be=Lo(be,Se),ot=0,rt=E.interpolate||Tt,lt="__p += '",wt=Fo((E.escape||Tt).source+"|"+rt.source+"|"+(rt===He?Fe:Tt).source+"|"+(E.evaluate||Tt).source+"|$","g"),Mt="//# sourceURL="+(yn.call(E,"sourceURL")?(E.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++xt+"]")+`
64
- `;f.replace(wt,function(ht,jt,ft,Ft,Lt,gn){return ft||(ft=Ft),lt+=f.slice(ot,gn).replace(Rt,Oc),jt&&(ie=!0,lt+=`' +
65
- __e(`+jt+`) +
66
- '`),Lt&&(pe=!0,lt+=`';
67
- `+Lt+`;
68
- __p += '`),ft&&(lt+=`' +
69
- ((__t = (`+ft+`)) == null ? '' : __t) +
70
- '`),ot=gn+ht.length,ht}),lt+=`';
71
- `;var At=yn.call(E,"variable")&&E.variable;if(At){if(et.test(At))throw new rn("Invalid `variable` option passed into `_.template`")}else lt=`with (obj) {
72
- `+lt+`
73
- }
74
- `;lt=(pe?lt.replace(je,""):lt).replace(Et,"$1").replace(Ie,"$1;"),lt="function("+(At||"obj")+`) {
75
- `+(At?"":`obj || (obj = {});
76
- `)+"var __t, __p = ''"+(ie?", __e = _.escape":"")+(pe?`, __j = Array.prototype.join;
77
- function print() { __p += __j.call(arguments, '') }
78
- `:`;
79
- `)+lt+`return __p
80
- }`;var st=Lu(function(){return Tn(Se,Mt+"return "+lt).apply(w,Be)});if(st.source=lt,ka(st))throw st;return st},se.times=function(f,E){if((f=Kt(f))<1||f>e)return[];var $=n,ee=Cn(f,n);E=Pt(E),f-=n;for(var ie=Do(ee,E);++$<f;)E($);return ie},se.toFinite=Ai,se.toInteger=Kt,se.toLength=Iu,se.toLower=function(f){return vn(f).toLowerCase()},se.toNumber=si,se.toSafeInteger=function(f){return f?Ki(Kt(f),-e,e):f===0?f:0},se.toString=vn,se.toUpper=function(f){return vn(f).toUpperCase()},se.trim=function(f,E,$){if((f=vn(f))&&($||E===w))return Ga(f);if(!f||!(E=Yn(E)))return f;var ee=li(f),ie=li(E);return Di(ee,Xa(ee,ie),Ya(ee,ie)+1).join("")},se.trimEnd=function(f,E,$){if((f=vn(f))&&($||E===w))return f.slice(0,Qa(f)+1);if(!f||!(E=Yn(E)))return f;var ee=li(f);return Di(ee,0,Ya(ee,li(E))+1).join("")},se.trimStart=function(f,E,$){if((f=vn(f))&&($||E===w))return f.replace(Ge,"");if(!f||!(E=Yn(E)))return f;var ee=li(f);return Di(ee,Xa(ee,li(E))).join("")},se.truncate=function(f,E){var $=30,ee="...";if(_n(E)){var ie="separator"in E?E.separator:ie;$="length"in E?Kt(E.length):$,ee="omission"in E?Yn(E.omission):ee}var pe=(f=vn(f)).length;if(er(f)){var be=li(f);pe=be.length}if($>=pe)return f;var Se=$-tr(ee);if(Se<1)return ee;var Be=be?Di(be,0,Se).join(""):f.slice(0,Se);if(ie===w)return Be+ee;if(be&&(Se+=Be.length-Se),Sa(ie)){if(f.slice(Se).search(ie)){var ot,rt=Be;for(ie.global||(ie=Fo(ie.source,vn(Qe.exec(ie))+"g")),ie.lastIndex=0;ot=ie.exec(rt);)var lt=ot.index;Be=Be.slice(0,lt===w?Se:lt)}}else if(f.indexOf(Yn(ie),Se)!=Se){var wt=Be.lastIndexOf(ie);wt>-1&&(Be=Be.slice(0,wt))}return Be+ee},se.unescape=function(f){return(f=vn(f))&&De.test(f)?f.replace(Xe,Nc):f},se.uniqueId=function(f){var E=++Cc;return vn(f)+E},se.upperCase=dh,se.upperFirst=Ta,se.each=gu,se.eachRight=vu,se.first=pu,Na(se,(Ba={},mi(se,function(f,E){yn.call(se.prototype,E)||(Ba[E]=f)}),Ba),{chain:!1}),se.VERSION="4.17.21",ti(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){se[f].placeholder=se}),ti(["drop","take"],function(f,E){Jt.prototype[f]=function($){$=$===w?1:On(Kt($),0);var ee=this.__filtered__&&!E?new Jt(this):this.clone();return ee.__filtered__?ee.__takeCount__=Cn($,ee.__takeCount__):ee.__views__.push({size:Cn($,n),type:f+(ee.__dir__<0?"Right":"")}),ee},Jt.prototype[f+"Right"]=function($){return this.reverse()[f]($).reverse()}}),ti(["filter","map","takeWhile"],function(f,E){var $=E+1,ee=$==1||$==3;Jt.prototype[f]=function(ie){var pe=this.clone();return pe.__iteratees__.push({iteratee:Pt(ie,3),type:$}),pe.__filtered__=pe.__filtered__||ee,pe}}),ti(["head","last"],function(f,E){var $="take"+(E?"Right":"");Jt.prototype[f]=function(){return this[$](1).value()[0]}}),ti(["initial","tail"],function(f,E){var $="drop"+(E?"":"Right");Jt.prototype[f]=function(){return this.__filtered__?new Jt(this):this[$](1)}}),Jt.prototype.compact=function(){return this.filter(Hn)},Jt.prototype.find=function(f){return this.filter(f).head()},Jt.prototype.findLast=function(f){return this.reverse().find(f)},Jt.prototype.invokeMap=Ht(function(f,E){return typeof f=="function"?new Jt(this):this.map(function($){return kr($,f,E)})}),Jt.prototype.reject=function(f){return this.filter(vo(Pt(f)))},Jt.prototype.slice=function(f,E){f=Kt(f);var $=this;return $.__filtered__&&(f>0||E<0)?new Jt($):(f<0?$=$.takeRight(-f):f&&($=$.drop(f)),E!==w&&($=(E=Kt(E))<0?$.dropRight(-E):$.take(E-f)),$)},Jt.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Jt.prototype.toArray=function(){return this.take(n)},mi(Jt.prototype,function(f,E){var $=/^(?:filter|find|map|reject)|While$/.test(E),ee=/^(?:head|last)$/.test(E),ie=se[ee?"take"+(E=="last"?"Right":""):E],pe=ee||/^find/.test(E);ie&&(se.prototype[E]=function(){var be=this.__wrapped__,Se=ee?[1]:arguments,Be=be instanceof Jt,ot=Se[0],rt=Be||Vt(be),lt=function(jt){var ft=ie.apply(se,ji([jt],Se));return ee&&wt?ft[0]:ft};rt&&$&&typeof ot=="function"&&ot.length!=1&&(Be=rt=!1);var wt=this.__chain__,Mt=!!this.__actions__.length,At=pe&&!wt,st=Be&&!Mt;if(!pe&&rt){be=st?be:new Jt(this);var ht=f.apply(be,Se);return ht.__actions__.push({func:po,args:[lt],thisArg:w}),new ii(ht,wt)}return At&&st?f.apply(this,Se):(ht=this.thru(lt),At?ee?ht.value()[0]:ht.value():ht)})}),ti(["pop","push","shift","sort","splice","unshift"],function(f){var E=Lr[f],$=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",ee=/^(?:pop|shift)$/.test(f);se.prototype[f]=function(){var ie=arguments;if(ee&&!this.__chain__){var pe=this.value();return E.apply(Vt(pe)?pe:[],ie)}return this[$](function(be){return E.apply(Vt(be)?be:[],ie)})}}),mi(Jt.prototype,function(f,E){var $=se[E];if($){var ee=$.name+"";yn.call(rr,ee)||(rr[ee]=[]),rr[ee].push({name:E,func:$})}}),rr[oo(w,y).name]=[{name:"wrapper",func:w}],Jt.prototype.clone=function(){var f=new Jt(this.__wrapped__);return f.__actions__=zn(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=zn(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=zn(this.__views__),f},Jt.prototype.reverse=function(){if(this.__filtered__){var f=new Jt(this);f.__dir__=-1,f.__filtered__=!0}else(f=this.clone()).__dir__*=-1;return f},Jt.prototype.value=function(){var f=this.__wrapped__.value(),E=this.__dir__,$=Vt(f),ee=E<0,ie=$?f.length:0,pe=function(gn,kt,Bt){for(var jn=-1,In=Bt.length;++jn<In;){var Un=Bt[jn],xn=Un.size;switch(Un.type){case"drop":gn+=xn;break;case"dropRight":kt-=xn;break;case"take":kt=Cn(kt,gn+xn);break;case"takeRight":gn=On(gn,kt-xn)}}return{start:gn,end:kt}}(0,ie,this.__views__),be=pe.start,Se=pe.end,Be=Se-be,ot=ee?Se:be-1,rt=this.__iteratees__,lt=rt.length,wt=0,Mt=Cn(Be,this.__takeCount__);if(!$||!ee&&ie==Be&&Mt==Be)return js(f,this.__actions__);var At=[];e:for(;Be--&&wt<Mt;){for(var st=-1,ht=f[ot+=E];++st<lt;){var jt=rt[st],ft=jt.iteratee,Ft=jt.type,Lt=ft(ht);if(Ft==2)ht=Lt;else if(!Lt){if(Ft==1)continue e;break e}}At[wt++]=ht}return At},se.prototype.at=Nl,se.prototype.chain=function(){return mu(this)},se.prototype.commit=function(){return new ii(this.value(),this.__chain__)},se.prototype.next=function(){this.__values__===w&&(this.__values__=Au(this.value()));var f=this.__index__>=this.__values__.length;return{done:f,value:f?w:this.__values__[this.__index__++]}},se.prototype.plant=function(f){for(var E,$=this;$ instanceof Yr;){var ee=uu($);ee.__index__=0,ee.__values__=w,E?ie.__wrapped__=ee:E=ee;var ie=ee;$=$.__wrapped__}return ie.__wrapped__=f,E},se.prototype.reverse=function(){var f=this.__wrapped__;if(f instanceof Jt){var E=f;return this.__actions__.length&&(E=new Jt(this)),(E=E.reverse()).__actions__.push({func:po,args:[xa],thisArg:w}),new ii(E,this.__chain__)}return this.thru(xa)},se.prototype.toJSON=se.prototype.valueOf=se.prototype.value=function(){return js(this.__wrapped__,this.__actions__)},se.prototype.first=se.prototype.head,yr&&(se.prototype[yr]=function(){return this}),se}();dt._=Dr,(k=function(){return Dr}.call(O,x,O,H))===w||(H.exports=k)}.call(this)},2318:(H,O,x)=>{var k=x(5717),w=x(3349),g=x(9509).Buffer,M=new Array(16);function a(){w.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function d(h,u){return h<<u|h>>>32-u}function c(h,u,y,v,_,S,b){return d(h+(u&y|~u&v)+_+S|0,b)+u|0}function l(h,u,y,v,_,S,b){return d(h+(u&v|y&~v)+_+S|0,b)+u|0}function p(h,u,y,v,_,S,b){return d(h+(u^y^v)+_+S|0,b)+u|0}function m(h,u,y,v,_,S,b){return d(h+(y^(u|~v))+_+S|0,b)+u|0}k(a,w),a.prototype._update=function(){for(var h=M,u=0;u<16;++u)h[u]=this._block.readInt32LE(4*u);var y=this._a,v=this._b,_=this._c,S=this._d;y=c(y,v,_,S,h[0],3614090360,7),S=c(S,y,v,_,h[1],3905402710,12),_=c(_,S,y,v,h[2],606105819,17),v=c(v,_,S,y,h[3],3250441966,22),y=c(y,v,_,S,h[4],4118548399,7),S=c(S,y,v,_,h[5],1200080426,12),_=c(_,S,y,v,h[6],2821735955,17),v=c(v,_,S,y,h[7],4249261313,22),y=c(y,v,_,S,h[8],1770035416,7),S=c(S,y,v,_,h[9],2336552879,12),_=c(_,S,y,v,h[10],4294925233,17),v=c(v,_,S,y,h[11],2304563134,22),y=c(y,v,_,S,h[12],1804603682,7),S=c(S,y,v,_,h[13],4254626195,12),_=c(_,S,y,v,h[14],2792965006,17),y=l(y,v=c(v,_,S,y,h[15],1236535329,22),_,S,h[1],4129170786,5),S=l(S,y,v,_,h[6],3225465664,9),_=l(_,S,y,v,h[11],643717713,14),v=l(v,_,S,y,h[0],3921069994,20),y=l(y,v,_,S,h[5],3593408605,5),S=l(S,y,v,_,h[10],38016083,9),_=l(_,S,y,v,h[15],3634488961,14),v=l(v,_,S,y,h[4],3889429448,20),y=l(y,v,_,S,h[9],568446438,5),S=l(S,y,v,_,h[14],3275163606,9),_=l(_,S,y,v,h[3],4107603335,14),v=l(v,_,S,y,h[8],1163531501,20),y=l(y,v,_,S,h[13],2850285829,5),S=l(S,y,v,_,h[2],4243563512,9),_=l(_,S,y,v,h[7],1735328473,14),y=p(y,v=l(v,_,S,y,h[12],2368359562,20),_,S,h[5],4294588738,4),S=p(S,y,v,_,h[8],2272392833,11),_=p(_,S,y,v,h[11],1839030562,16),v=p(v,_,S,y,h[14],4259657740,23),y=p(y,v,_,S,h[1],2763975236,4),S=p(S,y,v,_,h[4],1272893353,11),_=p(_,S,y,v,h[7],4139469664,16),v=p(v,_,S,y,h[10],3200236656,23),y=p(y,v,_,S,h[13],681279174,4),S=p(S,y,v,_,h[0],3936430074,11),_=p(_,S,y,v,h[3],3572445317,16),v=p(v,_,S,y,h[6],76029189,23),y=p(y,v,_,S,h[9],3654602809,4),S=p(S,y,v,_,h[12],3873151461,11),_=p(_,S,y,v,h[15],530742520,16),y=m(y,v=p(v,_,S,y,h[2],3299628645,23),_,S,h[0],4096336452,6),S=m(S,y,v,_,h[7],1126891415,10),_=m(_,S,y,v,h[14],2878612391,15),v=m(v,_,S,y,h[5],4237533241,21),y=m(y,v,_,S,h[12],1700485571,6),S=m(S,y,v,_,h[3],2399980690,10),_=m(_,S,y,v,h[10],4293915773,15),v=m(v,_,S,y,h[1],2240044497,21),y=m(y,v,_,S,h[8],1873313359,6),S=m(S,y,v,_,h[15],4264355552,10),_=m(_,S,y,v,h[6],2734768916,15),v=m(v,_,S,y,h[13],1309151649,21),y=m(y,v,_,S,h[4],4149444226,6),S=m(S,y,v,_,h[11],3174756917,10),_=m(_,S,y,v,h[2],718787259,15),v=m(v,_,S,y,h[9],3951481745,21),this._a=this._a+y|0,this._b=this._b+v|0,this._c=this._c+_|0,this._d=this._d+S|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var h=g.allocUnsafe(16);return h.writeInt32LE(this._a,0),h.writeInt32LE(this._b,4),h.writeInt32LE(this._c,8),h.writeInt32LE(this._d,12),h},H.exports=a},3047:(H,O,x)=>{var k=x(6240),w=x(9931);function g(M){this.rand=M||new w.Rand}H.exports=g,g.create=function(M){return new g(M)},g.prototype._randbelow=function(M){var a=M.bitLength(),d=Math.ceil(a/8);do var c=new k(this.rand.generate(d));while(c.cmp(M)>=0);return c},g.prototype._randrange=function(M,a){var d=a.sub(M);return M.add(this._randbelow(d))},g.prototype.test=function(M,a,d){var c=M.bitLength(),l=k.mont(M),p=new k(1).toRed(l);a||(a=Math.max(1,c/48|0));for(var m=M.subn(1),h=0;!m.testn(h);h++);for(var u=M.shrn(h),y=m.toRed(l);a>0;a--){var v=this._randrange(new k(2),m);d&&d(v);var _=v.toRed(l).redPow(u);if(_.cmp(p)!==0&&_.cmp(y)!==0){for(var S=1;S<h;S++){if((_=_.redSqr()).cmp(p)===0)return!1;if(_.cmp(y)===0)break}if(S===h)return!1}}return!0},g.prototype.getDivisor=function(M,a){var d=M.bitLength(),c=k.mont(M),l=new k(1).toRed(c);a||(a=Math.max(1,d/48|0));for(var p=M.subn(1),m=0;!p.testn(m);m++);for(var h=M.shrn(m),u=p.toRed(c);a>0;a--){var y=this._randrange(new k(2),p),v=M.gcd(y);if(v.cmpn(1)!==0)return v;var _=y.toRed(c).redPow(h);if(_.cmp(l)!==0&&_.cmp(u)!==0){for(var S=1;S<m;S++){if((_=_.redSqr()).cmp(l)===0)return _.fromRed().subn(1).gcd(M);if(_.cmp(u)===0)break}if(S===m)return(_=_.redSqr()).fromRed().subn(1).gcd(M)}}return!1}},6240:function(H,O,x){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function a(e,r,i){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var d;typeof k=="object"?k.exports=a:w.BN=a,a.BN=a,a.wordSize=26;try{d=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:x(6619).Buffer}catch(e){}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function p(e,r,i,n){for(var t=0,o=Math.min(e.length,i),s=r;s<o;s++){var I=e.charCodeAt(s)-48;t*=n,t+=I>=49?I-49+10:I>=17?I-17+10:I}return t}a.isBN=function(e){return e instanceof a||e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,r){return e.cmp(r)>0?e:r},a.min=function(e,r){return e.cmp(r)<0?e:r},a.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),g(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},a.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(g(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},a.prototype._initArray=function(e,r,i){if(g(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,s=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);return this.strip()},a.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,s=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;this.strip()},a.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,s=o%n,I=Math.min(o,o-s)+i,P=0,j=i;j<I;j+=n)P=p(e,j,j+n,r),this.imuln(t),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(s!==0){var A=1;for(P=p(e,j,e.length,r),j=0;j<s;j++)A*=r;this.imuln(A),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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 y(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],s=t*o,I=67108863&s,P=s/67108864|0;i.words[0]=I;for(var j=1;j<n;j++){for(var A=P>>>26,N=67108863&P,L=Math.min(j,r.length-1),z=Math.max(0,j-e.length+1);z<=L;z++){var Y=j-z|0;A+=(s=(t=0|e.words[Y])*(o=0|r.words[z])+N)/67108864|0,N=67108863&s}i.words[j]=0|N,P=0|A}return P!==0?i.words[j]=0|P:i.length--,i.strip()}a.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var s=this.words[o],I=(16777215&(s<<n|t)).toString(16);i=(t=s>>>24-n&16777215)!=0||o!==this.length-1?m[6-I.length]+I+i:I+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var P=h[e],j=u[e];i="";var A=this.clone();for(A.negative=0;!A.isZero();){var N=A.modn(j).toString(e);i=(A=A.idivn(j)).isZero()?N+i:m[P-N.length]+N+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}g(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&g(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,r){return g(d!==void 0),this.toArrayLike(d,e,r)},a.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},a.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);g(n<=t,"byte array longer than desired length"),g(t>0,"Requested array length <= 0"),this.strip();var o,s,I=r==="le",P=new e(t),j=this.clone();if(I){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[s]=o;for(;s<t;s++)P[s]=0}else{for(s=0;s<t-n;s++)P[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[t-s-1]=o}return P},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},a.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},a.prototype.ior=function(e){return g((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},a.prototype.iand=function(e){return g((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},a.prototype.ixor=function(e){return g((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){g(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,r){g(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},a.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(r=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&r;for(;o!==0&&s<i.length;s++)o=(r=(0|i.words[s])+o)>>26,this.words[s]=67108863&r;if(o===0&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,r,i){var n,t,o,s=e.words,I=r.words,P=i.words,j=0,A=0|s[0],N=8191&A,L=A>>>13,z=0|s[1],Y=8191&z,D=z>>>13,K=0|s[2],q=8191&K,U=K>>>13,te=0|s[3],J=8191&te,ae=te>>>13,xe=0|s[4],ce=8191&xe,fe=xe>>>13,Te=0|s[5],ye=8191&Te,Ee=Te>>>13,V=0|s[6],W=8191&V,Q=V>>>13,ge=0|s[7],oe=8191&ge,ue=ge>>>13,Ne=0|s[8],we=8191&Ne,Me=Ne>>>13,pt=0|s[9],ke=8191&pt,je=pt>>>13,Et=0|I[0],Ie=8191&Et,Xe=Et>>>13,Ct=0|I[1],De=8191&Ct,Ke=Ct>>>13,Nt=0|I[2],Pe=8191&Nt,He=Nt>>>13,vt=0|I[3],Ce=8191&vt,Ze=vt>>>13,St=0|I[4],Re=8191&St,Ge=St>>>13,It=0|I[5],qe=8191&It,Ye=It>>>13,Dt=0|I[6],Le=8191&Dt,et=Dt>>>13,$t=0|I[7],Fe=8191&$t,Qe=$t>>>13,Ut=0|I[8],$e=8191&Ut,nt=Ut>>>13,zt=0|I[9],Ue=8191&zt,tt=zt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(j+(n=Math.imul(N,Ie))|0)+((8191&(t=(t=Math.imul(N,Xe))+Math.imul(L,Ie)|0))<<13)|0;j=((o=Math.imul(L,Xe))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Y,Ie),t=(t=Math.imul(Y,Xe))+Math.imul(D,Ie)|0,o=Math.imul(D,Xe);var Rt=(j+(n=n+Math.imul(N,De)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ke)|0)+Math.imul(L,De)|0))<<13)|0;j=((o=o+Math.imul(L,Ke)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(q,Ie),t=(t=Math.imul(q,Xe))+Math.imul(U,Ie)|0,o=Math.imul(U,Xe),n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Ke)|0;var Zt=(j+(n=n+Math.imul(N,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(N,He)|0)+Math.imul(L,Pe)|0))<<13)|0;j=((o=o+Math.imul(L,He)|0)+(t>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(J,Ie),t=(t=Math.imul(J,Xe))+Math.imul(ae,Ie)|0,o=Math.imul(ae,Xe),n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,He)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,He)|0;var on=(j+(n=n+Math.imul(N,Ce)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ze)|0)+Math.imul(L,Ce)|0))<<13)|0;j=((o=o+Math.imul(L,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(ce,Ie),t=(t=Math.imul(ce,Xe))+Math.imul(fe,Ie)|0,o=Math.imul(fe,Xe),n=n+Math.imul(J,De)|0,t=(t=t+Math.imul(J,Ke)|0)+Math.imul(ae,De)|0,o=o+Math.imul(ae,Ke)|0,n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,He)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,He)|0,n=n+Math.imul(Y,Ce)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(D,Ce)|0,o=o+Math.imul(D,Ze)|0;var tn=(j+(n=n+Math.imul(N,Re)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ge)|0)+Math.imul(L,Re)|0))<<13)|0;j=((o=o+Math.imul(L,Ge)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(ye,Ie),t=(t=Math.imul(ye,Xe))+Math.imul(Ee,Ie)|0,o=Math.imul(Ee,Xe),n=n+Math.imul(ce,De)|0,t=(t=t+Math.imul(ce,Ke)|0)+Math.imul(fe,De)|0,o=o+Math.imul(fe,Ke)|0,n=n+Math.imul(J,Pe)|0,t=(t=t+Math.imul(J,He)|0)+Math.imul(ae,Pe)|0,o=o+Math.imul(ae,He)|0,n=n+Math.imul(q,Ce)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(U,Ce)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ge)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ge)|0;var an=(j+(n=n+Math.imul(N,qe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ye)|0)+Math.imul(L,qe)|0))<<13)|0;j=((o=o+Math.imul(L,Ye)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(W,Ie),t=(t=Math.imul(W,Xe))+Math.imul(Q,Ie)|0,o=Math.imul(Q,Xe),n=n+Math.imul(ye,De)|0,t=(t=t+Math.imul(ye,Ke)|0)+Math.imul(Ee,De)|0,o=o+Math.imul(Ee,Ke)|0,n=n+Math.imul(ce,Pe)|0,t=(t=t+Math.imul(ce,He)|0)+Math.imul(fe,Pe)|0,o=o+Math.imul(fe,He)|0,n=n+Math.imul(J,Ce)|0,t=(t=t+Math.imul(J,Ze)|0)+Math.imul(ae,Ce)|0,o=o+Math.imul(ae,Ze)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ge)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ge)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,Ye)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Ye)|0;var sn=(j+(n=n+Math.imul(N,Le)|0)|0)+((8191&(t=(t=t+Math.imul(N,et)|0)+Math.imul(L,Le)|0))<<13)|0;j=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(sn>>>26)|0,sn&=67108863,n=Math.imul(oe,Ie),t=(t=Math.imul(oe,Xe))+Math.imul(ue,Ie)|0,o=Math.imul(ue,Xe),n=n+Math.imul(W,De)|0,t=(t=t+Math.imul(W,Ke)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(ye,Pe)|0,t=(t=t+Math.imul(ye,He)|0)+Math.imul(Ee,Pe)|0,o=o+Math.imul(Ee,He)|0,n=n+Math.imul(ce,Ce)|0,t=(t=t+Math.imul(ce,Ze)|0)+Math.imul(fe,Ce)|0,o=o+Math.imul(fe,Ze)|0,n=n+Math.imul(J,Re)|0,t=(t=t+Math.imul(J,Ge)|0)+Math.imul(ae,Re)|0,o=o+Math.imul(ae,Ge)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Ye)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Ye)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,et)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,et)|0;var un=(j+(n=n+Math.imul(N,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Qe)|0)+Math.imul(L,Fe)|0))<<13)|0;j=((o=o+Math.imul(L,Qe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(we,Ie),t=(t=Math.imul(we,Xe))+Math.imul(Me,Ie)|0,o=Math.imul(Me,Xe),n=n+Math.imul(oe,De)|0,t=(t=t+Math.imul(oe,Ke)|0)+Math.imul(ue,De)|0,o=o+Math.imul(ue,Ke)|0,n=n+Math.imul(W,Pe)|0,t=(t=t+Math.imul(W,He)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,He)|0,n=n+Math.imul(ye,Ce)|0,t=(t=t+Math.imul(ye,Ze)|0)+Math.imul(Ee,Ce)|0,o=o+Math.imul(Ee,Ze)|0,n=n+Math.imul(ce,Re)|0,t=(t=t+Math.imul(ce,Ge)|0)+Math.imul(fe,Re)|0,o=o+Math.imul(fe,Ge)|0,n=n+Math.imul(J,qe)|0,t=(t=t+Math.imul(J,Ye)|0)+Math.imul(ae,qe)|0,o=o+Math.imul(ae,Ye)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,et)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,et)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,Qe)|0;var cn=(j+(n=n+Math.imul(N,$e)|0)|0)+((8191&(t=(t=t+Math.imul(N,nt)|0)+Math.imul(L,$e)|0))<<13)|0;j=((o=o+Math.imul(L,nt)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(ke,Ie),t=(t=Math.imul(ke,Xe))+Math.imul(je,Ie)|0,o=Math.imul(je,Xe),n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Me,De)|0,o=o+Math.imul(Me,Ke)|0,n=n+Math.imul(oe,Pe)|0,t=(t=t+Math.imul(oe,He)|0)+Math.imul(ue,Pe)|0,o=o+Math.imul(ue,He)|0,n=n+Math.imul(W,Ce)|0,t=(t=t+Math.imul(W,Ze)|0)+Math.imul(Q,Ce)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(ye,Re)|0,t=(t=t+Math.imul(ye,Ge)|0)+Math.imul(Ee,Re)|0,o=o+Math.imul(Ee,Ge)|0,n=n+Math.imul(ce,qe)|0,t=(t=t+Math.imul(ce,Ye)|0)+Math.imul(fe,qe)|0,o=o+Math.imul(fe,Ye)|0,n=n+Math.imul(J,Le)|0,t=(t=t+Math.imul(J,et)|0)+Math.imul(ae,Le)|0,o=o+Math.imul(ae,et)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(Y,$e)|0,t=(t=t+Math.imul(Y,nt)|0)+Math.imul(D,$e)|0,o=o+Math.imul(D,nt)|0;var ln=(j+(n=n+Math.imul(N,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(N,tt)|0)+Math.imul(L,Ue)|0))<<13)|0;j=((o=o+Math.imul(L,tt)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(ke,De),t=(t=Math.imul(ke,Ke))+Math.imul(je,De)|0,o=Math.imul(je,Ke),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,He)|0)+Math.imul(Me,Pe)|0,o=o+Math.imul(Me,He)|0,n=n+Math.imul(oe,Ce)|0,t=(t=t+Math.imul(oe,Ze)|0)+Math.imul(ue,Ce)|0,o=o+Math.imul(ue,Ze)|0,n=n+Math.imul(W,Re)|0,t=(t=t+Math.imul(W,Ge)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ge)|0,n=n+Math.imul(ye,qe)|0,t=(t=t+Math.imul(ye,Ye)|0)+Math.imul(Ee,qe)|0,o=o+Math.imul(Ee,Ye)|0,n=n+Math.imul(ce,Le)|0,t=(t=t+Math.imul(ce,et)|0)+Math.imul(fe,Le)|0,o=o+Math.imul(fe,et)|0,n=n+Math.imul(J,Fe)|0,t=(t=t+Math.imul(J,Qe)|0)+Math.imul(ae,Fe)|0,o=o+Math.imul(ae,Qe)|0,n=n+Math.imul(q,$e)|0,t=(t=t+Math.imul(q,nt)|0)+Math.imul(U,$e)|0,o=o+Math.imul(U,nt)|0;var hn=(j+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,tt)|0)+Math.imul(D,Ue)|0))<<13)|0;j=((o=o+Math.imul(D,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(ke,Pe),t=(t=Math.imul(ke,He))+Math.imul(je,Pe)|0,o=Math.imul(je,He),n=n+Math.imul(we,Ce)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Me,Ce)|0,o=o+Math.imul(Me,Ze)|0,n=n+Math.imul(oe,Re)|0,t=(t=t+Math.imul(oe,Ge)|0)+Math.imul(ue,Re)|0,o=o+Math.imul(ue,Ge)|0,n=n+Math.imul(W,qe)|0,t=(t=t+Math.imul(W,Ye)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,Ye)|0,n=n+Math.imul(ye,Le)|0,t=(t=t+Math.imul(ye,et)|0)+Math.imul(Ee,Le)|0,o=o+Math.imul(Ee,et)|0,n=n+Math.imul(ce,Fe)|0,t=(t=t+Math.imul(ce,Qe)|0)+Math.imul(fe,Fe)|0,o=o+Math.imul(fe,Qe)|0,n=n+Math.imul(J,$e)|0,t=(t=t+Math.imul(J,nt)|0)+Math.imul(ae,$e)|0,o=o+Math.imul(ae,nt)|0;var Gt=(j+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,tt)|0)+Math.imul(U,Ue)|0))<<13)|0;j=((o=o+Math.imul(U,tt)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ke,Ce),t=(t=Math.imul(ke,Ze))+Math.imul(je,Ce)|0,o=Math.imul(je,Ze),n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ge)|0)+Math.imul(Me,Re)|0,o=o+Math.imul(Me,Ge)|0,n=n+Math.imul(oe,qe)|0,t=(t=t+Math.imul(oe,Ye)|0)+Math.imul(ue,qe)|0,o=o+Math.imul(ue,Ye)|0,n=n+Math.imul(W,Le)|0,t=(t=t+Math.imul(W,et)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,et)|0,n=n+Math.imul(ye,Fe)|0,t=(t=t+Math.imul(ye,Qe)|0)+Math.imul(Ee,Fe)|0,o=o+Math.imul(Ee,Qe)|0,n=n+Math.imul(ce,$e)|0,t=(t=t+Math.imul(ce,nt)|0)+Math.imul(fe,$e)|0,o=o+Math.imul(fe,nt)|0;var pn=(j+(n=n+Math.imul(J,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(J,tt)|0)+Math.imul(ae,Ue)|0))<<13)|0;j=((o=o+Math.imul(ae,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(ke,Re),t=(t=Math.imul(ke,Ge))+Math.imul(je,Re)|0,o=Math.imul(je,Ge),n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,Ye)|0)+Math.imul(Me,qe)|0,o=o+Math.imul(Me,Ye)|0,n=n+Math.imul(oe,Le)|0,t=(t=t+Math.imul(oe,et)|0)+Math.imul(ue,Le)|0,o=o+Math.imul(ue,et)|0,n=n+Math.imul(W,Fe)|0,t=(t=t+Math.imul(W,Qe)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(ye,$e)|0,t=(t=t+Math.imul(ye,nt)|0)+Math.imul(Ee,$e)|0,o=o+Math.imul(Ee,nt)|0;var mn=(j+(n=n+Math.imul(ce,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ce,tt)|0)+Math.imul(fe,Ue)|0))<<13)|0;j=((o=o+Math.imul(fe,tt)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863,n=Math.imul(ke,qe),t=(t=Math.imul(ke,Ye))+Math.imul(je,qe)|0,o=Math.imul(je,Ye),n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,et)|0)+Math.imul(Me,Le)|0,o=o+Math.imul(Me,et)|0,n=n+Math.imul(oe,Fe)|0,t=(t=t+Math.imul(oe,Qe)|0)+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Qe)|0,n=n+Math.imul(W,$e)|0,t=(t=t+Math.imul(W,nt)|0)+Math.imul(Q,$e)|0,o=o+Math.imul(Q,nt)|0;var Qt=(j+(n=n+Math.imul(ye,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ye,tt)|0)+Math.imul(Ee,Ue)|0))<<13)|0;j=((o=o+Math.imul(Ee,tt)|0)+(t>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,n=Math.imul(ke,Le),t=(t=Math.imul(ke,et))+Math.imul(je,Le)|0,o=Math.imul(je,et),n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Qe)|0,n=n+Math.imul(oe,$e)|0,t=(t=t+Math.imul(oe,nt)|0)+Math.imul(ue,$e)|0,o=o+Math.imul(ue,nt)|0;var en=(j+(n=n+Math.imul(W,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(W,tt)|0)+Math.imul(Q,Ue)|0))<<13)|0;j=((o=o+Math.imul(Q,tt)|0)+(t>>>13)|0)+(en>>>26)|0,en&=67108863,n=Math.imul(ke,Fe),t=(t=Math.imul(ke,Qe))+Math.imul(je,Fe)|0,o=Math.imul(je,Qe),n=n+Math.imul(we,$e)|0,t=(t=t+Math.imul(we,nt)|0)+Math.imul(Me,$e)|0,o=o+Math.imul(Me,nt)|0;var Yt=(j+(n=n+Math.imul(oe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(oe,tt)|0)+Math.imul(ue,Ue)|0))<<13)|0;j=((o=o+Math.imul(ue,tt)|0)+(t>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(ke,$e),t=(t=Math.imul(ke,nt))+Math.imul(je,$e)|0,o=Math.imul(je,nt);var fn=(j+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,tt)|0)+Math.imul(Me,Ue)|0))<<13)|0;j=((o=o+Math.imul(Me,tt)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863;var nn=(j+(n=Math.imul(ke,Ue))|0)+((8191&(t=(t=Math.imul(ke,tt))+Math.imul(je,Ue)|0))<<13)|0;return j=((o=Math.imul(je,tt))+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,P[0]=Tt,P[1]=Rt,P[2]=Zt,P[3]=on,P[4]=tn,P[5]=an,P[6]=sn,P[7]=un,P[8]=cn,P[9]=ln,P[10]=hn,P[11]=Gt,P[12]=pn,P[13]=mn,P[14]=Qt,P[15]=en,P[16]=Yt,P[17]=fn,P[18]=nn,j!==0&&(P[19]=j,i.length++),i};function _(e,r,i){return new S().mulp(e,r,i)}function S(e,r){this.x=e,this.y=r}Math.imul||(v=y),a.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?y(this,e,r):n<1024?function(t,o,s){s.negative=o.negative^t.negative,s.length=t.length+o.length;for(var I=0,P=0,j=0;j<s.length-1;j++){var A=P;P=0;for(var N=67108863&I,L=Math.min(j,o.length-1),z=Math.max(0,j-t.length+1);z<=L;z++){var Y=j-z,D=(0|t.words[Y])*(0|o.words[z]),K=67108863&D;N=67108863&(K=K+N|0),P+=(A=(A=A+(D/67108864|0)|0)+(K>>>26)|0)>>>26,A&=67108863}s.words[j]=N,I=A,A=P}return I!==0?s.words[j]=I:s.length--,s.strip()}(this,e,r):_(this,e,r),i},S.prototype.makeRBT=function(e){for(var r=new Array(e),i=a.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},S.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},S.prototype.permute=function(e,r,i,n,t,o){for(var s=0;s<o;s++)n[s]=r[e[s]],t[s]=i[e[s]]},S.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var s=1;s<t;s<<=1)for(var I=s<<1,P=Math.cos(2*Math.PI/I),j=Math.sin(2*Math.PI/I),A=0;A<t;A+=I)for(var N=P,L=j,z=0;z<s;z++){var Y=i[A+z],D=n[A+z],K=i[A+z+s],q=n[A+z+s],U=N*K-L*q;q=N*q+L*K,K=U,i[A+z]=Y+K,n[A+z]=D+q,i[A+z+s]=Y-K,n[A+z+s]=D-q,z!==I&&(U=P*N-j*L,L=P*L+j*N,N=U)}},S.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},S.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},S.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},S.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;g(t===0),g((-8192&t)==0)},S.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},S.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),s=new Array(n),I=new Array(n),P=new Array(n),j=new Array(n),A=new Array(n),N=new Array(n),L=i.words;L.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(r.words,r.length,j,n),this.transform(s,o,I,P,n,t),this.transform(j,o,A,N,n,t);for(var z=0;z<n;z++){var Y=I[z]*A[z]-P[z]*N[z];P[z]=I[z]*N[z]+P[z]*A[z],I[z]=Y}return this.conjugate(I,P,n),this.transform(I,P,L,o,n,t),this.conjugate(L,o,n),this.normalize13b(L,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},a.prototype.mul=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},a.prototype.mulf=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),_(this,e,r)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){g(typeof e=="number"),g(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var r=function(o){for(var s=new Array(o.bitLength()),I=0;I<s.length;I++){var P=I/26|0,j=I%26;s[I]=(o.words[P]&1<<j)>>>j}return s}(e);if(r.length===0)return new a(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},a.prototype.iushln=function(e){g(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var s=this.words[r]&t,I=(0|this.words[r])-s<<i;this.words[r]=I|o,o=s>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},a.prototype.ishln=function(e){return g(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,r,i){var n;g(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),s=67108863^67108863>>>t<<t,I=i;if(n-=o,n=Math.max(0,n),I){for(var P=0;P<o;P++)I.words[P]=this.words[P];I.length=o}if(o!==0)if(this.length>o)for(this.length-=o,P=0;P<this.length;P++)this.words[P]=this.words[P+o];else this.words[0]=0,this.length=1;var j=0;for(P=this.length-1;P>=0&&(j!==0||P>=n);P--){var A=0|this.words[P];this.words[P]=j<<26-t|A>>>t,j=A&s}return I&&j!==0&&(I.words[I.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,r,i){return g(this.negative===0),this.iushrn(e,r,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},a.prototype.imaskn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return g(typeof e=="number"),g(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(e){if(g(typeof e=="number"),g(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var s=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+s;var I=(0|e.words[n])*r;s=((t-=67108863&I)>>26)-(I/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)s=(t=(0|this.words[n+i])+s)>>26,this.words[n+i]=67108863&t;if(s===0)return this.strip();for(g(s===-1),s=0,n=0;n<this.length;n++)s=(t=-(0|this.words[n])+s)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var s,I=n.length-t.length;if(r!=="mod"){(s=new a(null)).length=I+1,s.words=new Array(s.length);for(var P=0;P<s.length;P++)s.words[P]=0}var j=n.clone()._ishlnsubmul(t,1,I);j.negative===0&&(n=j,s&&(s.words[I]=1));for(var A=I-1;A>=0;A--){var N=67108864*(0|n.words[t.length+A])+(0|n.words[t.length+A-1]);for(N=Math.min(N/o|0,67108863),n._ishlnsubmul(t,N,A);n.negative!==0;)N--,n.negative=0,n._ishlnsubmul(t,1,A),n.isZero()||(n.negative^=1);s&&(s.words[A]=N)}return s&&s.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:s||null,mod:n}},a.prototype.divmod=function(e,r,i){return g(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(e){g(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},a.prototype.idivn=function(e){g(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new a(1),t=new a(0),o=new a(0),s=new a(1),I=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++I;for(var P=i.clone(),j=r.clone();!r.isZero();){for(var A=0,N=1;!(r.words[0]&N)&&A<26;++A,N<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(P),t.isub(j)),n.iushrn(1),t.iushrn(1);for(var L=0,z=1;!(i.words[0]&z)&&L<26;++L,z<<=1);if(L>0)for(i.iushrn(L);L-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(P),s.isub(j)),o.iushrn(1),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(s)):(i.isub(r),o.isub(n),s.isub(t))}return{a:o,b:s,gcd:i.iushln(I)}},a.prototype._invmp=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new a(1),o=new a(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var I=0,P=1;!(r.words[0]&P)&&I<26;++I,P<<=1);if(I>0)for(r.iushrn(I);I-- >0;)t.isOdd()&&t.iadd(s),t.iushrn(1);for(var j=0,A=1;!(i.words[0]&A)&&j<26;++j,A<<=1);if(j>0)for(i.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){g(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var s=0|this.words[o];t=(s+=t)>>>26,s&=67108863,this.words[o]=s}return t!==0&&(this.words[o]=t,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),g(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new Z(e)},a.prototype.toRed=function(e){return g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return g(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return g(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function T(e,r){this.name=e,this.p=new a(r,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function R(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function F(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function X(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Z(e){if(typeof e=="string"){var r=a._prime(e);this.m=r.p,this.prime=r}else g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ne(e){Z.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}T.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},T.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},T.prototype.split=function(e,r){e.iushrn(this.n,0,r)},T.prototype.imulK=function(e){return e.imul(this.k)},M(C,T),C.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var s=0|e.words[t];e.words[t-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},M(R,T),M(F,T),M(X,T),X.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},a._prime=function(e){if(b[e])return b[e];var r;if(e==="k256")r=new C;else if(e==="p224")r=new R;else if(e==="p192")r=new F;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new X}return b[e]=r,r},Z.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},Z.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(e.red&&e.red===r.red,"red works only with red numbers")},Z.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},Z.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Z.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},Z.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},Z.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},Z.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},Z.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},Z.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},Z.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},Z.prototype.isqr=function(e){return this.imul(e,e.clone())},Z.prototype.sqr=function(e){return this.mul(e,e)},Z.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(g(r%2==1),r===3){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);g(!n.isZero());var o=new a(1).toRed(this),s=o.redNeg(),I=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new a(2*P*P).toRed(this);this.pow(P,I).cmp(s)!==0;)P.redIAdd(s);for(var j=this.pow(P,n),A=this.pow(e,n.addn(1).iushrn(1)),N=this.pow(e,n),L=t;N.cmp(o)!==0;){for(var z=N,Y=0;z.cmp(o)!==0;Y++)z=z.redSqr();g(Y<L);var D=this.pow(j,new a(1).iushln(L-Y-1));A=A.redMul(D),j=D.redSqr(),N=N.redMul(j),L=Y}return A},Z.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},Z.prototype.pow=function(e,r){if(r.isZero())return new a(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,s=0,I=r.bitLength()%26;for(I===0&&(I=26),n=r.length-1;n>=0;n--){for(var P=r.words[n],j=I-1;j>=0;j--){var A=P>>j&1;t!==i[0]&&(t=this.sqr(t)),A!==0||o!==0?(o<<=1,o|=A,(++s==4||n===0&&j===0)&&(t=this.mul(t,i[o]),s=0,o=0)):s=0}I=26}return t},Z.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},Z.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},a.mont=function(e){return new ne(e)},M(ne,Z),ne.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ne.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ne.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new a(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=x.nmd(H),this)},5234:(H,O,x)=>{H.exports=x(3765)},983:(H,O,x)=>{var k,w,g,M=x(5234),a=x(6470).extname,d=/^\s*([^;\s]*)(?:;|\s|$)/,c=/^text\//i;function l(p){if(!p||typeof p!="string")return!1;var m=d.exec(p),h=m&&M[m[1].toLowerCase()];return h&&h.charset?h.charset:!(!m||!c.test(m[1]))&&"UTF-8"}O.charset=l,O.charsets={lookup:l},O.contentType=function(p){if(!p||typeof p!="string")return!1;var m=p.indexOf("/")===-1?O.lookup(p):p;if(!m)return!1;if(m.indexOf("charset")===-1){var h=O.charset(m);h&&(m+="; charset="+h.toLowerCase())}return m},O.extension=function(p){if(!p||typeof p!="string")return!1;var m=d.exec(p),h=m&&O.extensions[m[1].toLowerCase()];return!(!h||!h.length)&&h[0]},O.extensions=Object.create(null),O.lookup=function(p){if(!p||typeof p!="string")return!1;var m=a("x."+p).toLowerCase().substr(1);return m&&O.types[m]||!1},O.types=Object.create(null),k=O.extensions,w=O.types,g=["nginx","apache",void 0,"iana"],Object.keys(M).forEach(function(p){var m=M[p],h=m.extensions;if(h&&h.length){k[p]=h;for(var u=0;u<h.length;u++){var y=h[u];if(w[y]){var v=g.indexOf(M[w[y]].source),_=g.indexOf(m.source);if(w[y]!=="application/octet-stream"&&(v>_||v===_&&w[y].substr(0,12)==="application/"))continue}w[y]=p}}})},9746:H=>{function O(x,k){if(!x)throw new Error(k||"Assertion failed")}H.exports=O,O.equal=function(x,k,w){if(x!=k)throw new Error(w||"Assertion failed: "+x+" != "+k)}},4504:(H,O)=>{var x=O;function k(g){return g.length===1?"0"+g:g}function w(g){for(var M="",a=0;a<g.length;a++)M+=k(g[a].toString(16));return M}x.toArray=function(g,M){if(Array.isArray(g))return g.slice();if(!g)return[];var a=[];if(typeof g!="string"){for(var d=0;d<g.length;d++)a[d]=0|g[d];return a}if(M==="hex")for((g=g.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(g="0"+g),d=0;d<g.length;d+=2)a.push(parseInt(g[d]+g[d+1],16));else for(d=0;d<g.length;d++){var c=g.charCodeAt(d),l=c>>8,p=255&c;l?a.push(l,p):a.push(p)}return a},x.zero2=k,x.toHex=w,x.encode=function(g,M){return M==="hex"?w(g):g}},8566:(H,O,x)=>{Object.defineProperty(O,"__esModule",{value:!0}),O.default=void 0;var k,w=(k=x(8721))&&k.__esModule?k:{default:k};O.default=class{constructor({accessKey:g,secretKey:M,sessionToken:a}){this.credentials=new w.default({accessKey:g,secretKey:M,sessionToken:a})}getCredentials(){return this.credentials.get()}setCredentials(g){if(!(g instanceof w.default))throw new Error("Unable to set Credentials . it should be an instance of Credentials class");this.credentials=g}setAccessKey(g){this.credentials.setAccessKey(g)}getAccessKey(){return this.credentials.getAccessKey()}setSecretKey(g){this.credentials.setSecretKey(g)}getSecretKey(){return this.credentials.getSecretKey()}setSessionToken(g){this.credentials.setSessionToken(g)}getSessionToken(){return this.credentials.getSessionToken()}}},8721:(H,O)=>{Object.defineProperty(O,"__esModule",{value:!0}),O.default=void 0,O.default=class{constructor({accessKey:x,secretKey:k,sessionToken:w}){this.accessKey=x,this.secretKey=k,this.sessionToken=w}setAccessKey(x){this.accessKey=x}getAccessKey(){return this.accessKey}setSecretKey(x){this.secretKey=x}getSecretKey(){return this.secretKey}setSessionToken(x){this.sessionToken=x}getSessionToken(){return this.sessionToken}get(){return{accessKey:this.accessKey,secretKey:this.secretKey,sessionToken:this.sessionToken}}}},1271:(H,O,x)=>{Object.defineProperty(O,"__esModule",{value:!0}),O.SecretKeyRequiredError=O.S3Error=O.InvalidXMLError=O.InvalidPrefixError=O.InvalidPortError=O.InvalidObjectNameError=O.InvalidEndpointError=O.InvalidDateError=O.InvalidBucketPolicyError=O.InvalidBucketNameError=O.InvalidArgumentError=O.IncorrectSizeError=O.ExpiresParamError=O.AnonymousRequestError=O.AccessKeyRequiredError=void 0;var k,w=(k=x(7216))&&k.__esModule?k:{default:k};class g extends w.default{constructor(C){super(C)}}O.AnonymousRequestError=g;class M extends w.default{constructor(C){super(C)}}O.InvalidArgumentError=M;class a extends w.default{constructor(C){super(C)}}O.InvalidPortError=a;class d extends w.default{constructor(C){super(C)}}O.InvalidEndpointError=d;class c extends w.default{constructor(C){super(C)}}O.InvalidBucketNameError=c;class l extends w.default{constructor(C){super(C)}}O.InvalidObjectNameError=l;class p extends w.default{constructor(C){super(C)}}O.AccessKeyRequiredError=p;class m extends w.default{constructor(C){super(C)}}O.SecretKeyRequiredError=m;class h extends w.default{constructor(C){super(C)}}O.ExpiresParamError=h;class u extends w.default{constructor(C){super(C)}}O.InvalidDateError=u;class y extends w.default{constructor(C){super(C)}}O.InvalidPrefixError=y;class v extends w.default{constructor(C){super(C)}}O.InvalidBucketPolicyError=v;class _ extends w.default{constructor(C){super(C)}}O.IncorrectSizeError=_;class S extends w.default{constructor(C){super(C)}}O.InvalidXMLError=S;class b extends w.default{constructor(C){super(C)}}O.S3Error=b},3427:(H,O,x)=>{Object.defineProperty(O,"__esModule",{value:!0}),O.default=void 0;var k,w=(k=x(2830))&&k.__esModule?k:{default:k},g=c(x(6607)),M=c(x(1271)),a=x(1627);function d(l){if(typeof WeakMap!="function")return null;var p=new WeakMap,m=new WeakMap;return(d=function(h){return h?m:p})(l)}function c(l,p){if(!p&&l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var m=d(p);if(m&&m.has(l))return m.get(l);var h={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in l)if(y!=="default"&&Object.prototype.hasOwnProperty.call(l,y)){var v=u?Object.getOwnPropertyDescriptor(l,y):null;v&&(v.get||v.set)?Object.defineProperty(h,y,v):h[y]=l[y]}return h.default=l,m&&m.set(l,h),h}O.default=class{constructor(l){this.client=l}listObjectsV2WithMetadata(l,p,m,h){if(p===void 0&&(p=""),m===void 0&&(m=!1),h===void 0&&(h=""),!(0,a.isValidBucketName)(l))throw new M.InvalidBucketNameError("Invalid bucket name: "+l);if(!(0,a.isValidPrefix)(p))throw new M.InvalidPrefixError(`Invalid prefix : ${p}`);if(!(0,a.isString)(p))throw new TypeError('prefix should be of type "string"');if(!(0,a.isBoolean)(m))throw new TypeError('recursive should be of type "boolean"');if(!(0,a.isString)(h))throw new TypeError('startAfter should be of type "string"');var u=m?"":"/",y="",v=[],_=!1,S=w.default.Readable({objectMode:!0});return S._read=()=>{if(!v.length)return _?S.push(null):void this.listObjectsV2WithMetadataQuery(l,p,y,u,1e3,h).on("error",b=>S.emit("error",b)).on("data",b=>{b.isTruncated?y=b.nextContinuationToken:_=!0,v=b.objects,S._read()});S.push(v.shift())},S}listObjectsV2WithMetadataQuery(l,p,m,h,u,y){if(!(0,a.isValidBucketName)(l))throw new M.InvalidBucketNameError("Invalid bucket name: "+l);if(!(0,a.isString)(p))throw new TypeError('prefix should be of type "string"');if(!(0,a.isString)(m))throw new TypeError('continuationToken should be of type "string"');if(!(0,a.isString)(h))throw new TypeError('delimiter should be of type "string"');if(!(0,a.isNumber)(u))throw new TypeError('maxKeys should be of type "number"');if(!(0,a.isString)(y))throw new TypeError('startAfter should be of type "string"');var v=[];v.push("list-type=2"),v.push("encoding-type=url"),v.push(`prefix=${(0,a.uriEscape)(p)}`),v.push(`delimiter=${(0,a.uriEscape)(h)}`),v.push("metadata=true"),m&&(m=(0,a.uriEscape)(m),v.push(`continuation-token=${m}`)),y&&(y=(0,a.uriEscape)(y),v.push(`start-after=${y}`)),u&&(u>=1e3&&(u=1e3),v.push(`max-keys=${u}`)),v.sort();var _="";v.length>0&&(_=`${v.join("&")}`);var S=g.getListObjectsV2WithMetadataTransformer();return this.client.makeRequest({method:"GET",bucketName:l,query:_},"",[200],"",!0,(b,T)=>{if(b)return S.emit("error",b);(0,a.pipesetup)(T,S)}),S}}},1627:(H,O,x)=>{var k=x(8764).Buffer;Object.defineProperty(O,"__esModule",{value:!0}),O.SelectResults=O.RETENTION_VALIDITY_UNITS=O.RETENTION_MODES=O.PART_CONSTRAINTS=O.LEGAL_HOLD_STATUS=O.ENCRYPTION_TYPES=O.DEFAULT_REGION=O.CopySourceOptions=O.CopyDestinationOptions=void 0,O.calculateEvenSplits=function(D,K){if(D===0)return null;const q=L(D);z=new Array(q),Y=new Array(q);let U=K.Start;(d.default.isEmpty(K.Start)||U===-1)&&(U=0);const te=Math.trunc(D/q),J=D%q;let ae=U;for(let xe=0;xe<q;xe++){let ce=te;xe<J&&ce++;const fe=ae;let Te=fe+ce-1;ae=Te+1,z[xe]=fe,Y[xe]=Te}return{startIndex:z,endIndex:Y,objInfo:K}},O.extractMetadata=function(D){var K={};for(var q in D)(t(q)||o(q)||n(q))&&(q.toLowerCase().startsWith("x-amz-meta-")?K[q.slice(11,q.length)]=D[q]:K[q]=D[q]);return K},O.getScope=function(D,K,q="s3"){return`${i(K)}/${D}/${q}/aws4_request`},O.getSourceVersionId=function(D={}){return D["x-amz-copy-source-version-id"]||null},O.getVersionId=function(D={}){return D["x-amz-version-id"]||null},O.insertContentType=function(D,K){for(var q in D)if(q.toLowerCase()==="content-type")return D;var U=Object.assign({},D);return U["content-type"]=C(K),U},O.isAmazonEndpoint=S,O.isAmzHeader=n,O.isArray=function(D){return Array.isArray(D)},O.isBoolean=function(D){return typeof D=="boolean"},O.isFunction=ne,O.isNumber=Z,O.isObject=r,O.isReadableStream=function(D){return r(D)&&ne(D._read)},O.isStorageclassHeader=o,O.isString=e,O.isSupportedHeader=t,O.isValidBucketName=R,O.isValidDate=function(D){return D instanceof Date&&!isNaN(D)},O.isValidDomain=T,O.isValidEndpoint=function(D){return T(D)||b(D)},O.isValidIP=b,O.isValidObjectName=F,O.isValidPort=function(D){return!!Z(D)&&!(D<0)&&(D===0||D>=1&&D<=65535)},O.isValidPrefix=X,O.isVirtualHostStyle=function(D,K,q,U){return!(K==="https:"&&q.indexOf(".")>-1)&&(S(D)||!U)},O.makeDateLong=function(D){return(D=(D=D||new Date).toISOString()).slice(0,4)+D.slice(5,7)+D.slice(8,13)+D.slice(14,16)+D.slice(17,19)+"Z"},O.makeDateShort=i,O.partsRequired=O.parseXml=void 0,O.pipesetup=function(...D){return D.reduce((K,q)=>(K.on("error",U=>q.emit("error",U)),K.pipe(q)))},O.prependXAMZMeta=function(D){var K=Object.assign({},D);for(var q in D)n(q)||t(q)||o(q)||(K["X-Amz-Meta-"+q]=K[q],delete K[q]);return K},O.probeContentType=C,O.promisify=function(D){return function(){if(typeof arguments[arguments.length-1]=="function")return D.apply(this,arguments);let K=[...arguments];return new Promise((q,U)=>{K.push((te,J)=>{if(te)return U(te);q(J)}),D.apply(this,K)})}},O.readableStream=function(D){var K=new w.default.Readable;return K._read=()=>{},K.push(D),K.push(null),K},O.removeDirAndFiles=function D(K,q){q===void 0&&(q=!0);try{var U=y.readdirSync(K)}catch(ae){return}if(U.length>0)for(var te=0;te<U.length;te++){var J=v.join(K,U[te]);y.statSync(J).isFile()?y.unlinkSync(J):D(J)}q&&y.rmdirSync(K)},O.sanitizeETag=function(D=""){var K={'"':"","&quot;":"","&#34;":"","&QUOT;":"","&#x00022":""};return D.replace(/^("|&quot;|&#34;)|("|&quot;|&#34;)$/g,q=>K[q])},O.toSha256=O.toMd5=O.toArray=O.sanitizeObjectKey=void 0,O.uriEscape=_,O.uriResourceEscape=function(D){return _(D).replace(/%2F/g,"/")};var w=m(x(2830)),g=m(x(983)),M=m(x(6965)),a=x(3818),d=m(x(6486)),c=function(D,K){if(D&&D.__esModule)return D;if(D===null||typeof D!="object"&&typeof D!="function")return{default:D};var q=p(K);if(q&&q.has(D))return q.get(D);var U={},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var J in D)if(J!=="default"&&Object.prototype.hasOwnProperty.call(D,J)){var ae=te?Object.getOwnPropertyDescriptor(D,J):null;ae&&(ae.get||ae.set)?Object.defineProperty(U,J,ae):U[J]=D[J]}return U.default=D,q&&q.set(D,U),U}(x(1271)),l=m(x(7563));function p(D){if(typeof WeakMap!="function")return null;var K=new WeakMap,q=new WeakMap;return(p=function(U){return U?q:K})(D)}function m(D){return D&&D.__esModule?D:{default:D}}var h=x(5835);const u=x(6512),y=x(4749),v=x(6470);function _(D){return D.split("").reduce((K,q)=>{let U=k.from(q);if(U.length===1&&("A"<=q&&q<="Z"||"a"<=q&&q<="z"||"0"<=q&&q<="9"||q==="_"||q==="."||q==="~"||q==="-"))return K+q;for(var te=0;te<U.length;te++)K=K+"%"+U[te].toString(16).toUpperCase();return K},"")}function S(D){return D==="s3.amazonaws.com"||D==="s3.cn-north-1.amazonaws.com.cn"}function b(D){return u.isValid(D)}function T(D){if(!e(D)||D.length===0||D.length>255||D[0]==="-"||D.slice(-1)==="-"||D[0]==="_"||D.slice(-1)==="_"||D[0]===".")return!1;var K="`~!@#$%^&*()+={}[]|\\\"';:><?/".split("");for(var q in K)if(D.indexOf(K[q])>-1)return!1;return!0}function C(D){let K=g.default.lookup(D);return K||(K="application/octet-stream"),K}function R(D){return!(!e(D)||D.length<3||D.length>63||D.indexOf("..")>-1||D.match(/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/)||!D.match(/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/))}function F(D){return!!X(D)&&D.length!==0}function X(D){return!(!e(D)||D.length>1024)}function Z(D){return typeof D=="number"}function ne(D){return typeof D=="function"}function e(D){return typeof D=="string"}function r(D){return typeof D=="object"&&D!==null}function i(D){return(D=(D=D||new Date).toISOString()).slice(0,4)+D.slice(5,7)+D.slice(8,10)}function n(D){var K=D.toLowerCase();return K.startsWith("x-amz-meta-")||K==="x-amz-acl"||K.startsWith("x-amz-server-side-encryption-")||K==="x-amz-server-side-encryption"}function t(D){return["content-type","cache-control","content-encoding","content-disposition","content-language","x-amz-website-redirect-location"].indexOf(D.toLowerCase())>-1}function o(D){return D.toLowerCase()==="x-amz-storage-class"}const s={GOVERNANCE:"GOVERNANCE",COMPLIANCE:"COMPLIANCE"};O.RETENTION_MODES=s,O.RETENTION_VALIDITY_UNITS={DAYS:"Days",YEARS:"Years"},O.LEGAL_HOLD_STATUS={ENABLED:"ON",DISABLED:"OFF"},O.toMd5=D=>{let K=(q=>k.from(k.from(q)))(D);return K=a.isBrowser?K.toString():K,h.createHash("md5").update(K).digest().toString("base64")},O.toSha256=D=>h.createHash("sha256").update(D).digest("hex"),O.toArray=D=>Array.isArray(D)?D:[D],O.sanitizeObjectKey=D=>{let K=(D||"").replace(/\+/g," ");return decodeURIComponent(K)};const I={ABS_MIN_PART_SIZE:5242880,MIN_PART_SIZE:16777216,MAX_PARTS_COUNT:1e4,MAX_PART_SIZE:5368709120,MAX_SINGLE_PUT_OBJECT_SIZE:5368709120,MAX_MULTIPART_PUT_OBJECT_SIZE:5497558138880};O.PART_CONSTRAINTS=I;const P={SSEC:"SSE-C",KMS:"KMS"};O.ENCRYPTION_TYPES=P;const j="X-Amz-Server-Side-Encryption",A=j,N=j+"-Aws-Kms-Key-Id";O.CopySourceOptions=class{constructor({Bucket:D="",Object:K="",VersionID:q="",MatchETag:U="",NoMatchETag:te="",MatchModifiedSince:J=null,MatchUnmodifiedSince:ae=null,MatchRange:xe=!1,Start:ce=0,End:fe=0,Encryption:Te={}}={}){this.Bucket=D,this.Object=K,this.VersionID=q,this.MatchETag=U,this.NoMatchETag=te,this.MatchModifiedSince=J,this.MatchUnmodifiedSince=ae,this.MatchRange=xe,this.Start=ce,this.End=fe,this.Encryption=Te}validate(){if(!R(this.Bucket))throw new c.InvalidBucketNameError("Invalid Source bucket name: "+this.Bucket);if(!F(this.Object))throw new c.InvalidObjectNameError(`Invalid Source object name: ${this.Object}`);if(this.MatchRange&&this.Start!==-1&&this.End!==-1&&this.Start>this.End||this.Start<0)throw new c.InvalidObjectNameError("Source start must be non-negative, and start must be at most end.");if(this.MatchRange&&!Z(this.Start)||!Z(this.End))throw new c.InvalidObjectNameError("MatchRange is specified. But Invalid Start and End values are specified. ");return!0}getHeaders(){let D={};return D["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object),d.default.isEmpty(this.VersionID)||(D["x-amz-copy-source"]=encodeURI(this.Bucket+"/"+this.Object)+"?versionId="+this.VersionID),d.default.isEmpty(this.MatchETag)||(D["x-amz-copy-source-if-match"]=this.MatchETag),d.default.isEmpty(this.NoMatchETag)||(D["x-amz-copy-source-if-none-match"]=this.NoMatchETag),d.default.isEmpty(this.MatchModifiedSince)||(D["x-amz-copy-source-if-modified-since"]=this.MatchModifiedSince),d.default.isEmpty(this.MatchUnmodifiedSince)||(D["x-amz-copy-source-if-unmodified-since"]=this.MatchUnmodifiedSince),D}},O.CopyDestinationOptions=class{constructor({Bucket:D="",Object:K="",Encryption:q=null,UserMetadata:U=null,UserTags:te=null,LegalHold:J=null,RetainUntilDate:ae=null,Mode:xe=null}){this.Bucket=D,this.Object=K,this.Encryption=q,this.UserMetadata=U,this.UserTags=te,this.LegalHold=J,this.Mode=xe,this.RetainUntilDate=ae}getHeaders(){const D={},K=this.UserTags;if(d.default.isEmpty(K)||(D["X-Amz-Tagging-Directive"]="REPLACE",D["X-Amz-Tagging"]=r(K)?l.default.stringify(K):e(K)?K:""),d.default.isEmpty(this.Mode)||(D["X-Amz-Object-Lock-Mode"]=this.Mode),d.default.isEmpty(this.RetainUntilDate)||(D["X-Amz-Object-Lock-Retain-Until-Date"]=this.RetainUntilDate),d.default.isEmpty(this.LegalHold)||(D["X-Amz-Object-Lock-Legal-Hold"]=this.LegalHold),d.default.isEmpty(this.UserMetadata)||Object.keys(this.UserMetadata).forEach(q=>{D[`X-Amz-Meta-${q}`]=this.UserMetadata[q]}),!d.default.isEmpty(this.Encryption)){const q=function(U){const te=U.type,J={};if(!d.default.isEmpty(te)){if(te===P.SSEC)return{[J[A]]:"AES256"};if(te===P.KMS)return{[A]:U.SSEAlgorithm,[N]:U.KMSMasterKeyID}}return J}(this.Encryption);Object.keys(q).forEach(U=>{D[U]=q[U]})}return D}validate(){if(!R(this.Bucket))throw new c.InvalidBucketNameError("Invalid Destination bucket name: "+this.Bucket);if(!F(this.Object))throw new c.InvalidObjectNameError(`Invalid Destination object name: ${this.Object}`);if(!d.default.isEmpty(this.UserMetadata)&&!r(this.UserMetadata))throw new c.InvalidObjectNameError("Destination UserMetadata should be an object with key value pairs");if(!d.default.isEmpty(this.Mode)&&![s.GOVERNANCE,s.COMPLIANCE].includes(this.Mode))throw new c.InvalidObjectNameError("Invalid Mode specified for destination object it should be one of [GOVERNANCE,COMPLIANCE]");if(!d.default.isEmpty(this.Encryption)&&d.default.isEmpty(this.Encryption))throw new c.InvalidObjectNameError("Invalid Encryption configuration for destination object ");return!0}};const L=D=>{let K=I.MAX_MULTIPART_PUT_OBJECT_SIZE/(I.MAX_PARTS_COUNT-1),q=D/K;return D%K>0&&q++,q=Math.trunc(q),q};O.partsRequired=L;let z=[],Y=[];O.parseXml=D=>{let K=null;if(K=M.default.parse(D),K.Error)throw K.Error;return K},O.SelectResults=class{constructor({records:D,response:K,stats:q,progress:U}){this.records=D,this.response=K,this.stats=q,this.progress=U}setStats(D){this.stats=D}getStats(){return this.stats}setProgress(D){this.progress=D}getProgress(){return this.progress}setResponse(D){this.response=D}getResponse(){return this.response}setRecords(D){this.records=D}getRecords(){return this.records}},O.DEFAULT_REGION="us-east-1"},2525:(H,O,x)=>{var k=x(4155),w=x(8764).Buffer;Object.defineProperty(O,"__esModule",{value:!0});var g={Client:!0,CopyConditions:!0,PostPolicy:!0};O.PostPolicy=O.CopyConditions=O.Client=void 0;var M=t(x(4749)),a=t(x(8501)),d=t(x(9267)),c=t(x(2830)),l=t(x(9e3)),p=t(x(3479)),m=t(x(5055)),h=t(x(1641)),u=t(x(7563)),y=t(x(1890)),v=t(x(6470)),_=t(x(6486)),S=x(7259),b=x(1627),T=x(5858),C=t(x(3861)),R=n(x(6607)),F=n(x(1271)),X=x(1670),Z=x(3606);Object.keys(Z).forEach(function(j){j!=="default"&&j!=="__esModule"&&(Object.prototype.hasOwnProperty.call(g,j)||j in O&&O[j]===Z[j]||Object.defineProperty(O,j,{enumerable:!0,get:function(){return Z[j]}}))});var ne=t(x(3427)),e=t(x(8566)),r=x(2262);function i(j){if(typeof WeakMap!="function")return null;var A=new WeakMap,N=new WeakMap;return(i=function(L){return L?N:A})(j)}function n(j,A){if(!A&&j&&j.__esModule)return j;if(j===null||typeof j!="object"&&typeof j!="function")return{default:j};var N=i(A);if(N&&N.has(j))return N.get(j);var L={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in j)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(j,Y)){var D=z?Object.getOwnPropertyDescriptor(j,Y):null;D&&(D.get||D.set)?Object.defineProperty(L,Y,D):L[Y]=j[Y]}return L.default=j,N&&N.set(j,L),L}function t(j){return j&&j.__esModule?j:{default:j}}var o=x(5454);class s{constructor(A){if(A.secure!==void 0)throw new Error('"secure" option deprecated, "useSSL" should be used instead');if(A.useSSL===void 0&&(A.useSSL=!0),A.port||(A.port=0),!(0,b.isValidEndpoint)(A.endPoint))throw new F.InvalidEndpointError(`Invalid endPoint : ${A.endPoint}`);if(!(0,b.isValidPort)(A.port))throw new F.InvalidArgumentError(`Invalid port : ${A.port}`);if(!(0,b.isBoolean)(A.useSSL))throw new F.InvalidArgumentError(`Invalid useSSL flag type : ${A.useSSL}, expected to be of type "boolean"`);if(A.region&&!(0,b.isString)(A.region))throw new F.InvalidArgumentError(`Invalid region : ${A.region}`);var N,L=A.endPoint.toLowerCase(),z=A.port,Y="";if(A.useSSL===!1?(N=a.default,Y="http:",z===0&&(z=80)):(N=d.default,Y="https:",z===0&&(z=443)),A.transport){if(!(0,b.isObject)(A.transport))throw new F.InvalidArgumentError('Invalid transport type : ${params.transport}, expected to be type "object"');N=A.transport}var D=`MinIO (${k.platform}; ${k.arch}) minio-js/${o.version}`;if(this.transport=N,this.host=L,this.port=z,this.protocol=Y,this.accessKey=A.accessKey,this.secretKey=A.secretKey,this.sessionToken=A.sessionToken,this.userAgent=`${D}`,A.pathStyle===void 0?this.pathStyle=!0:this.pathStyle=A.pathStyle,this.accessKey||(this.accessKey=""),this.secretKey||(this.secretKey=""),this.anonymous=!this.accessKey||!this.secretKey,A.credentialsProvider&&(this.credentialsProvider=A.credentialsProvider,this.checkAndRefreshCreds()),this.regionMap={},A.region&&(this.region=A.region),this.partSize=67108864,A.partSize&&(this.partSize=A.partSize,this.overRidePartSize=!0),this.partSize<5242880)throw new F.InvalidArgumentError("Part size should be greater than 5MB");if(this.partSize>5368709120)throw new F.InvalidArgumentError("Part size should be less than 5GB");this.maximumPartSize=5368709120,this.maxObjectSize=5497558138880,this.enableSHA256=!this.anonymous&&!A.useSSL,this.s3AccelerateEndpoint=A.s3AccelerateEndpoint||null,this.reqOptions={}}getAccelerateEndPointIfSet(A,N){if(!_.default.isEmpty(this.s3AccelerateEndpoint)&&!_.default.isEmpty(A)&&!_.default.isEmpty(N)){if(A.indexOf(".")!==-1)throw new Error(`Transfer Acceleration is not supported for non compliant bucket:${A}`);return this.s3AccelerateEndpoint}return!1}setS3TransferAccelerate(A){this.s3AccelerateEndpoint=A}setRequestOptions(A){if(!(0,b.isObject)(A))throw new TypeError('request options should be of type "object"');this.reqOptions=_.default.pick(A,["agent","ca","cert","ciphers","clientCertEngine","crl","dhparam","ecdhCurve","family","honorCipherOrder","key","passphrase","pfx","rejectUnauthorized","secureOptions","secureProtocol","servername","sessionIdContext"])}getRequestOptions(A){var N,L=A.method,z=A.region,Y=A.bucketName,D=A.objectName,K=A.headers,q=A.query,U={method:L,headers:{}};if(Y&&(N=(0,b.isVirtualHostStyle)(this.host,this.protocol,Y,this.pathStyle)),this.port&&(U.port=this.port),U.protocol=this.protocol,D&&(D=`${(0,b.uriResourceEscape)(D)}`),U.path="/",U.host=this.host,(0,b.isAmazonEndpoint)(U.host)){const te=this.getAccelerateEndPointIfSet(Y,D);U.host=te?`${te}`:(0,X.getS3Endpoint)(z)}return N&&!A.pathStyle?(Y&&(U.host=`${Y}.${U.host}`),D&&(U.path=`/${D}`)):(Y&&(U.path=`/${Y}`),D&&(U.path=`/${Y}/${D}`)),q&&(U.path+=`?${q}`),U.headers.host=U.host,(U.protocol==="http:"&&U.port!==80||U.protocol==="https:"&&U.port!==443)&&(U.headers.host=`${U.host}:${U.port}`),U.headers["user-agent"]=this.userAgent,K&&_.default.map(K,(te,J)=>U.headers[J.toLowerCase()]=te),U=Object.assign({},this.reqOptions,U)}setAppInfo(A,N){if(!(0,b.isString)(A))throw new TypeError(`Invalid appName: ${A}`);if(A.trim()==="")throw new F.InvalidArgumentError("Input appName cannot be empty.");if(!(0,b.isString)(N))throw new TypeError(`Invalid appVersion: ${N}`);if(N.trim()==="")throw new F.InvalidArgumentError("Input appVersion cannot be empty.");this.userAgent=`${this.userAgent} ${A}/${N}`}calculatePartSize(A){if(!(0,b.isNumber)(A))throw new TypeError('size should be of type "number"');if(A>this.maxObjectSize)throw new TypeError(`size should not be more than ${this.maxObjectSize}`);if(this.overRidePartSize)return this.partSize;for(var N=this.partSize;;){if(1e4*N>A)return N;N+=16777216}}logHTTP(A,N,L){if(this.logStream){if(!(0,b.isObject)(A))throw new TypeError('reqOptions should be of type "object"');if(N&&!(0,b.isReadableStream)(N))throw new TypeError('response should be of type "Stream"');if(L&&!(L instanceof Error))throw new TypeError('err should be of type "Error"');var z=D=>{_.default.forEach(D,(K,q)=>{if(q=="authorization"){var U=new RegExp("Signature=([0-9a-f]+)");K=K.replace(U,"Signature=**REDACTED**")}this.logStream.write(`${q}: ${K}
81
- `)}),this.logStream.write(`
82
- `)};if(this.logStream.write(`REQUEST: ${A.method} ${A.path}
83
- `),z(A.headers),N&&(this.logStream.write(`RESPONSE: ${N.statusCode}
84
- `),z(N.headers)),L){this.logStream.write(`ERROR BODY:
85
- `);var Y=JSON.stringify(L,null," ");this.logStream.write(`${Y}
86
- `)}}}traceOn(A){A||(A=k.stdout),this.logStream=A}traceOff(){this.logStream=null}makeRequest(A,N,L,z,Y,D){if(!(0,b.isObject)(A))throw new TypeError('options should be of type "object"');if(!(0,b.isString)(N)&&!(0,b.isObject)(N))throw new TypeError('payload should be of type "string" or "Buffer"');if(L.forEach(U=>{if(!(0,b.isNumber)(U))throw new TypeError('statusCode should be of type "number"')}),!(0,b.isString)(z))throw new TypeError('region should be of type "string"');if(!(0,b.isBoolean)(Y))throw new TypeError('returnResponse should be of type "boolean"');if(!(0,b.isFunction)(D))throw new TypeError('callback should be of type "function"');A.headers||(A.headers={}),A.method!=="POST"&&A.method!=="PUT"&&A.method!=="DELETE"||(A.headers["content-length"]=N.length);var K="";this.enableSHA256&&(K=(0,b.toSha256)(N));var q=(0,b.readableStream)(N);this.makeRequestStream(A,q,K,L,z,Y,D)}makeRequestStream(A,N,L,z,Y,D,K){if(!(0,b.isObject)(A))throw new TypeError('options should be of type "object"');if(!(0,b.isReadableStream)(N))throw new F.InvalidArgumentError("stream should be a readable Stream");if(!(0,b.isString)(L))throw new TypeError('sha256sum should be of type "string"');if(z.forEach(U=>{if(!(0,b.isNumber)(U))throw new TypeError('statusCode should be of type "number"')}),!(0,b.isString)(Y))throw new TypeError('region should be of type "string"');if(!(0,b.isBoolean)(D))throw new TypeError('returnResponse should be of type "boolean"');if(!(0,b.isFunction)(K))throw new TypeError('callback should be of type "function"');if(!this.enableSHA256&&L.length!==0)throw new F.InvalidArgumentError("sha256sum expected to be empty for anonymous or https requests");if(this.enableSHA256&&L.length!==64)throw new F.InvalidArgumentError(`Invalid sha256sum : ${L}`);var q=(U,te)=>{if(U)return K(U);A.region=te;var J=this.getRequestOptions(A);if(!this.anonymous){this.enableSHA256||(L="UNSIGNED-PAYLOAD");let ce=new Date;J.headers["x-amz-date"]=(0,b.makeDateLong)(ce),J.headers["x-amz-content-sha256"]=L,this.sessionToken&&(J.headers["x-amz-security-token"]=this.sessionToken),this.checkAndRefreshCreds();var ae=(0,T.signV4)(J,this.accessKey,this.secretKey,te,ce);J.headers.authorization=ae}var xe=this.transport.request(J,ce=>{if(z.includes(ce.statusCode)){if(this.logHTTP(J,ce),D)return K(null,ce);ce.on("data",()=>{}),K(null)}else{delete this.regionMap[A.bucketName];var fe=R.getErrorTransformer(ce);(0,b.pipesetup)(ce,fe).on("error",Te=>{this.logHTTP(J,ce,Te),K(Te)})}});(0,b.pipesetup)(N,xe).on("error",ce=>{this.logHTTP(J,null,ce),K(ce)})};if(Y)return q(null,Y);this.getBucketRegion(A.bucketName,q)}getBucketRegion(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError(`Invalid bucket name : ${A}`);if(!(0,b.isFunction)(N))throw new TypeError('cb should be of type "function"');if(this.region)return N(null,this.region);if(this.regionMap[A])return N(null,this.regionMap[A]);var L=D=>{var K=R.getBucketRegionTransformer(),q=b.DEFAULT_REGION;(0,b.pipesetup)(D,K).on("error",N).on("data",U=>{U&&(q=U)}).on("end",()=>{this.regionMap[A]=q,N(null,q)})},z="location",Y=this.pathStyle&&typeof window=="undefined";this.makeRequest({method:"GET",bucketName:A,query:z,pathStyle:Y},"",[200],b.DEFAULT_REGION,!0,(D,K)=>{if(D){if(D.name==="AuthorizationHeaderMalformed"){var q=D.Region;return q?void this.makeRequest({method:"GET",bucketName:A,query:z},"",[200],q,!0,(U,te)=>{if(U)return N(U);L(te)}):N(D)}return N(D)}L(K)})}makeBucket(A,N,L={},z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if((0,b.isObject)(N)&&(z=L,L=N,N=""),(0,b.isFunction)(N)&&(z=N,N="",L={}),(0,b.isFunction)(L)&&(z=L,L={}),!(0,b.isString)(N))throw new TypeError('region should be of type "string"');if(!(0,b.isObject)(L))throw new TypeError('makeOpts should be of type "object"');if(!(0,b.isFunction)(z))throw new TypeError('callback should be of type "function"');var Y="";if(N&&this.region&&N!==this.region)throw new F.InvalidArgumentError(`Configured region ${this.region}, requested ${N}`);if(N&&N!==b.DEFAULT_REGION){var D=[];D.push({_attr:{xmlns:"http://s3.amazonaws.com/doc/2006-03-01/"}}),D.push({LocationConstraint:N});var K={CreateBucketConfiguration:D};Y=(0,p.default)(K)}var q={};L.ObjectLocking&&(q["x-amz-bucket-object-lock-enabled"]=!0),N||(N=b.DEFAULT_REGION),this.makeRequest({method:"PUT",bucketName:A,headers:q},Y,[200],N,!1,U=>{if(U&&(N===""||N===b.DEFAULT_REGION)){if(U.code!=="AuthorizationHeaderMalformed"||U.region==="")return z&&z(U);this.makeRequest({method:"PUT",bucketName:A,headers:q},Y,[200],U.region,!1,z)}return z&&z(U)})}listBuckets(A){if(!(0,b.isFunction)(A))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET"},"",[200],b.DEFAULT_REGION,!0,(N,L)=>{if(N)return A(N);var z,Y=R.getListBucketTransformer();(0,b.pipesetup)(L,Y).on("data",D=>z=D).on("error",D=>A(D)).on("end",()=>A(null,z))})}listIncompleteUploads(A,N,L){if(N===void 0&&(N=""),L===void 0&&(L=!1),!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidPrefix)(N))throw new F.InvalidPrefixError(`Invalid prefix : ${N}`);if(!(0,b.isBoolean)(L))throw new TypeError('recursive should be of type "boolean"');var z=L?"":"/",Y="",D="",K=[],q=!1,U=c.default.Readable({objectMode:!0});return U._read=()=>K.length?U.push(K.shift()):q?U.push(null):void this.listIncompleteUploadsQuery(A,N,Y,D,z).on("error",te=>U.emit("error",te)).on("data",te=>{te.prefixes.forEach(J=>K.push(J)),h.default.eachSeries(te.uploads,(J,ae)=>{this.listParts(A,J.key,J.uploadId,(xe,ce)=>{if(xe)return ae(xe);J.size=ce.reduce((fe,Te)=>fe+Te.size,0),K.push(J),ae()})},J=>{J?U.emit("error",J):(te.isTruncated?(Y=te.nextKeyMarker,D=te.nextUploadIdMarker):q=!0,U._read())})}),U}bucketExists(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isFunction)(N))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"HEAD",bucketName:A},"",[200],"",!1,L=>{if(L)return L.code=="NoSuchBucket"||L.code=="NotFound"?N(null,!1):N(L);N(null,!0)})}removeBucket(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isFunction)(N))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:A},"",[204],"",!1,L=>{L||delete this.regionMap[A],N(L)})}removeIncompleteUpload(A,N,L){if(!(0,b.isValidBucketName)(A))throw new F.isValidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isFunction)(L))throw new TypeError('callback should be of type "function"');var z;h.default.during(Y=>{this.findUploadId(A,N,(D,K)=>{if(D)return Y(D);z=K,Y(null,K)})},Y=>{var D=`uploadId=${z}`;this.makeRequest({method:"DELETE",bucketName:A,objectName:N,query:D},"",[204],"",!1,K=>Y(K))},L)}fGetObject(A,N,L,z={},Y){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isString)(L))throw new TypeError('filePath should be of type "string"');if((0,b.isFunction)(z)&&(Y=z,z={}),!(0,b.isFunction)(Y))throw new TypeError('callback should be of type "function"');var D,K,q,U=te=>{if(te)return Y(te);M.default.rename(D,L,Y)};h.default.waterfall([te=>this.statObject(A,N,z,te),(te,J)=>{q=te,(0,y.default)(v.default.dirname(L),J)},(te,J)=>{D=`${L}.${q.etag}.part.minio`,M.default.stat(D,(ae,xe)=>{var ce=0;if(ae)K=M.default.createWriteStream(D,{flags:"w"});else{if(q.size===xe.size)return U();ce=xe.size,K=M.default.createWriteStream(D,{flags:"a"})}this.getPartialObject(A,N,ce,0,z,J)})},(te,J)=>{(0,b.pipesetup)(te,K).on("error",ae=>J(ae)).on("finish",J)},te=>M.default.stat(D,te),(te,J)=>{if(te.size===q.size)return J();J(new Error("Size mismatch between downloaded file and the object"))}],U)}getObject(A,N,L={},z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if((0,b.isFunction)(L)&&(z=L,L={}),!(0,b.isFunction)(z))throw new TypeError('callback should be of type "function"');this.getPartialObject(A,N,0,0,L,z)}getPartialObject(A,N,L,z,Y={},D){if((0,b.isFunction)(z)&&(D=z,z=0),!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isNumber)(L))throw new TypeError('offset should be of type "number"');if(!(0,b.isNumber)(z))throw new TypeError('length should be of type "number"');if((0,b.isFunction)(Y)&&(D=Y,Y={}),!(0,b.isFunction)(D))throw new TypeError('callback should be of type "function"');var K="";(L||z)&&(L?K=`bytes=${+L}-`:(K="bytes=0-",L=0),z&&(K+=""+(+z+L-1)));var q={};K!==""&&(q.range=K);var U=[200];K&&U.push(206);var te=u.default.stringify(Y);this.makeRequest({method:"GET",bucketName:A,objectName:N,headers:q,query:te},"",U,"",!0,D)}fPutObject(A,N,L,z,Y){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isString)(L))throw new TypeError('filePath should be of type "string"');if((0,b.isFunction)(z)&&(Y=z,z={}),!(0,b.isObject)(z))throw new TypeError('metaData should be of type "object"');var D,K;z=(0,b.insertContentType)(z,L),z=(0,b.prependXAMZMeta)(z),h.default.waterfall([q=>M.default.stat(L,q),(q,U)=>{D=q.size;var te=!1,J=U;if(U=function(){if(!te)return te=!0,J.apply(this,arguments)},D>this.maxObjectSize)return U(new Error(`${L} size : ${q.size}, max allowed size : 5TB`));if(D<=this.partSize){var ae=this.getUploader(A,N,z,!1),xe=R.getHashSummer(this.enableSHA256),ce=D-1;D===0&&(ce=0);var fe={start:0,end:ce,autoClose:!0};(0,b.pipesetup)(M.default.createReadStream(L,fe),xe).on("data",Te=>{var ye=Te.md5sum,Ee=Te.sha256sum,V=M.default.createReadStream(L,fe);ae(V,D,Ee,ye,(W,Q)=>{Y(W,Q),U(!0)})}).on("error",Te=>U(Te))}else this.findUploadId(A,N,U)},(q,U)=>{if(q)return this.listParts(A,N,q,(te,J)=>U(te,q,J));this.initiateNewMultipartUpload(A,N,z,(te,J)=>U(te,J,[]))},(q,U,te)=>{K=this.calculatePartSize(D);var J=this.getUploader(A,N,z,!0),ae=U.reduce(function(Te,ye){return Te[ye.part]||(Te[ye.part]=ye),Te},{}),xe=[],ce=1,fe=0;h.default.whilst(Te=>{Te(null,fe<D)},Te=>{var ye=!1,Ee=Te;Te=function(){if(!ye)return ye=!0,Ee.apply(this,arguments)};var V=ae[ce],W=R.getHashSummer(this.enableSHA256),Q=K;Q>D-fe&&(Q=D-fe);var ge={autoClose:!0,start:fe,end:fe+Q-1};(0,b.pipesetup)(M.default.createReadStream(L,ge),W).on("data",oe=>{var ue=w.from(oe.md5sum,"base64").toString("hex");if(V&&ue===V.etag)return xe.push({part:ce,etag:V.etag}),ce++,fe+=Q,Te();var Ne=M.default.createReadStream(L,ge);J(q,ce,Ne,Q,oe.sha256sum,oe.md5sum,(we,Me)=>we?Te(we):(xe.push({part:ce,etag:Me.etag}),ce++,fe+=Q,Te()))}).on("error",oe=>Te(oe))},Te=>{if(Te)return te(Te);te(null,xe,q)})},(q,U,te)=>this.completeMultipartUpload(A,N,U,q,te)],(q,...U)=>{q!==!0&&Y(q,...U)})}putObject(A,N,L,z,Y,D){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if((0,b.isFunction)(z)?(D=z,Y={}):(0,b.isFunction)(Y)&&(D=Y,Y={}),(0,b.isObject)(z)&&(Y=z),Y=(0,b.prependXAMZMeta)(Y),typeof L=="string"||L instanceof w)z=L.length,L=(0,b.readableStream)(L);else if(!(0,b.isReadableStream)(L))throw new TypeError('third argument should be of type "stream.Readable" or "Buffer" or "string"');if(!(0,b.isFunction)(D))throw new TypeError('callback should be of type "function"');if((0,b.isNumber)(z)&&z<0)throw new F.InvalidArgumentError(`size cannot be negative, given size: ${z}`);(0,b.isNumber)(z)||(z=this.maxObjectSize),z=this.calculatePartSize(z);let K=new l.default({size:z,zeroPadding:!1}),q=new C.default(this,A,N,z,Y,D);L.pipe(K).pipe(q)}copyObjectV1(A,N,L,z,Y){var D,K,q=A,U=N,te=L;if(typeof z=="function"&&Y===void 0?(D=null,K=z):(D=z,K=Y),!(0,b.isValidBucketName)(q))throw new F.InvalidBucketNameError("Invalid bucket name: "+q);if(!(0,b.isValidObjectName)(U))throw new F.InvalidObjectNameError(`Invalid object name: ${U}`);if(!(0,b.isString)(te))throw new TypeError('srcObject should be of type "string"');if(te==="")throw new F.InvalidPrefixError("Empty source prefix");if(D!==null&&!(D instanceof I))throw new TypeError('conditions should be of type "CopyConditions"');var J={};J["x-amz-copy-source"]=(0,b.uriResourceEscape)(te),D!==null&&(D.modified!==""&&(J["x-amz-copy-source-if-modified-since"]=D.modified),D.unmodified!==""&&(J["x-amz-copy-source-if-unmodified-since"]=D.unmodified),D.matchETag!==""&&(J["x-amz-copy-source-if-match"]=D.matchETag),D.matchEtagExcept!==""&&(J["x-amz-copy-source-if-none-match"]=D.matchETagExcept)),this.makeRequest({method:"PUT",bucketName:q,objectName:U,headers:J},"",[200],"",!0,(ae,xe)=>{if(ae)return K(ae);var ce=R.getCopyObjectTransformer();(0,b.pipesetup)(xe,ce).on("error",fe=>K(fe)).on("data",fe=>K(null,fe))})}copyObjectV2(A,N,L){if(!(A instanceof b.CopySourceOptions))throw new F.InvalidArgumentError("sourceConfig should of type CopySourceOptions ");if(!(N instanceof b.CopyDestinationOptions))throw new F.InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(!N.validate()||!N.validate())return!1;if(!(0,b.isFunction)(L))throw new TypeError('callback should be of type "function"');const z=Object.assign({},A.getHeaders(),N.getHeaders()),Y=N.Bucket,D=N.Object;this.makeRequest({method:"PUT",bucketName:Y,objectName:D,headers:z},"",[200],"",!0,(K,q)=>{if(K)return L(K);const U=R.getCopyObjectTransformer();(0,b.pipesetup)(q,U).on("error",te=>L(te)).on("data",te=>{const J=q.headers,ae={Bucket:N.Bucket,Key:N.Object,LastModified:te.LastModified,MetaData:(0,b.extractMetadata)(J),VersionId:(0,b.getVersionId)(J),SourceVersionId:(0,b.getSourceVersionId)(J),Etag:(0,b.sanitizeETag)(J.etag),Size:+J["content-length"]};return L(null,ae)})})}copyObject(...A){return A[0]instanceof b.CopySourceOptions&&A[1]instanceof b.CopyDestinationOptions?this.copyObjectV2(...arguments):this.copyObjectV1(...arguments)}listObjectsQuery(A,N,L,z={}){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isString)(N))throw new TypeError('prefix should be of type "string"');if(!(0,b.isString)(L))throw new TypeError('marker should be of type "string"');let{Delimiter:Y,MaxKeys:D,IncludeVersion:K}=z;if(!(0,b.isObject)(z))throw new TypeError('listQueryOpts should be of type "object"');if(!(0,b.isString)(Y))throw new TypeError('Delimiter should be of type "string"');if(!(0,b.isNumber)(D))throw new TypeError('MaxKeys should be of type "number"');const q=[];q.push(`prefix=${(0,b.uriEscape)(N)}`),q.push(`delimiter=${(0,b.uriEscape)(Y)}`),q.push("encoding-type=url"),K&&q.push("versions"),L&&(L=(0,b.uriEscape)(L),K?q.push(`key-marker=${L}`):q.push(`marker=${L}`)),D&&(D>=1e3&&(D=1e3),q.push(`max-keys=${D}`)),q.sort();var U="";q.length>0&&(U=`${q.join("&")}`);var te=R.getListObjectsTransformer();return this.makeRequest({method:"GET",bucketName:A,query:U},"",[200],"",!0,(J,ae)=>{if(J)return te.emit("error",J);(0,b.pipesetup)(ae,te)}),te}listObjects(A,N,L,z={}){if(N===void 0&&(N=""),L===void 0&&(L=!1),!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidPrefix)(N))throw new F.InvalidPrefixError(`Invalid prefix : ${N}`);if(!(0,b.isString)(N))throw new TypeError('prefix should be of type "string"');if(!(0,b.isBoolean)(L))throw new TypeError('recursive should be of type "boolean"');if(!(0,b.isObject)(z))throw new TypeError('listOpts should be of type "object"');var Y="";const D={Delimiter:L?"":"/",MaxKeys:1e3,IncludeVersion:z.IncludeVersion};var K=[],q=!1,U=c.default.Readable({objectMode:!0});return U._read=()=>{if(!K.length)return q?U.push(null):void this.listObjectsQuery(A,N,Y,D).on("error",te=>U.emit("error",te)).on("data",te=>{te.isTruncated?Y=te.nextMarker||te.versionIdMarker:q=!0,K=te.objects,U._read()});U.push(K.shift())},U}listObjectsV2Query(A,N,L,z,Y,D){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isString)(N))throw new TypeError('prefix should be of type "string"');if(!(0,b.isString)(L))throw new TypeError('continuationToken should be of type "string"');if(!(0,b.isString)(z))throw new TypeError('delimiter should be of type "string"');if(!(0,b.isNumber)(Y))throw new TypeError('maxKeys should be of type "number"');if(!(0,b.isString)(D))throw new TypeError('startAfter should be of type "string"');var K=[];K.push("list-type=2"),K.push("encoding-type=url"),K.push(`prefix=${(0,b.uriEscape)(N)}`),K.push(`delimiter=${(0,b.uriEscape)(z)}`),L&&(L=(0,b.uriEscape)(L),K.push(`continuation-token=${L}`)),D&&(D=(0,b.uriEscape)(D),K.push(`start-after=${D}`)),Y&&(Y>=1e3&&(Y=1e3),K.push(`max-keys=${Y}`)),K.sort();var q="";K.length>0&&(q=`${K.join("&")}`);var U=R.getListObjectsV2Transformer();return this.makeRequest({method:"GET",bucketName:A,query:q},"",[200],"",!0,(te,J)=>{if(te)return U.emit("error",te);(0,b.pipesetup)(J,U)}),U}listObjectsV2(A,N,L,z){if(N===void 0&&(N=""),L===void 0&&(L=!1),z===void 0&&(z=""),!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidPrefix)(N))throw new F.InvalidPrefixError(`Invalid prefix : ${N}`);if(!(0,b.isString)(N))throw new TypeError('prefix should be of type "string"');if(!(0,b.isBoolean)(L))throw new TypeError('recursive should be of type "boolean"');if(!(0,b.isString)(z))throw new TypeError('startAfter should be of type "string"');var Y=L?"":"/",D="",K=[],q=!1,U=c.default.Readable({objectMode:!0});return U._read=()=>{if(!K.length)return q?U.push(null):void this.listObjectsV2Query(A,N,D,Y,1e3,z).on("error",te=>U.emit("error",te)).on("data",te=>{te.isTruncated?D=te.nextContinuationToken:q=!0,K=te.objects,U._read()});U.push(K.shift())},U}statObject(A,N,L={},z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if((0,b.isFunction)(L)&&(z=L,L={}),!(0,b.isObject)(L))throw new F.InvalidArgumentError('statOpts should be of type "object"');if(!(0,b.isFunction)(z))throw new TypeError('callback should be of type "function"');var Y=u.default.stringify(L);this.makeRequest({method:"HEAD",bucketName:A,objectName:N,query:Y},"",[200],"",!0,(D,K)=>{if(D)return z(D);K.on("data",()=>{});const q={size:+K.headers["content-length"],metaData:(0,b.extractMetadata)(K.headers),lastModified:new Date(K.headers["last-modified"]),versionId:(0,b.getVersionId)(K.headers),etag:(0,b.sanitizeETag)(K.headers.etag)};z(null,q)})}removeObject(A,N,L={},z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if((0,b.isFunction)(L)&&(z=L,L={}),!(0,b.isObject)(L))throw new F.InvalidArgumentError('removeOpts should be of type "object"');if(!(0,b.isFunction)(z))throw new TypeError('callback should be of type "function"');const Y={};L.versionId&&(Y.versionId=`${L.versionId}`);const D={};L.governanceBypass&&(D["X-Amz-Bypass-Governance-Retention"]=!0);const K=u.default.stringify(Y);let q={method:"DELETE",bucketName:A,objectName:N,headers:D};K&&(q.query=K),this.makeRequest(q,"",[200,204],"",!1,z)}removeObjects(A,N,L){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isArray)(N))throw new F.InvalidArgumentError("objectsList should be a list");if(!(0,b.isFunction)(L))throw new TypeError('callback should be of type "function"');let z=N.reduce((D,K)=>(D.list.push(K),D.list.length===1e3&&(D.listOfList.push(D.list),D.list=[]),D),{listOfList:[],list:[]});z.list.length>0&&z.listOfList.push(z.list);const Y=new S.TextEncoder;h.default.eachSeries(z.listOfList,(D,K)=>{var q=[];D.forEach(function(ae){(0,b.isObject)(ae)?q.push({Key:ae.name,VersionId:ae.versionId}):q.push({Key:ae})});let U={Delete:{Quiet:!0,Object:q}},te=new m.default.Builder({headless:!0}).buildObject(U);te=Y.encode(te);const J={};J["Content-MD5"]=(0,b.toMd5)(te),this.makeRequest({method:"POST",bucketName:A,query:"delete",headers:J},te,[200],"",!1,ae=>{if(ae)return K(ae);K(null)})},L)}getBucketPolicy(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError(`Invalid bucket name: ${A}`);if(!(0,b.isFunction)(N))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:A,query:"policy"},"",[200],"",!0,(L,z)=>{if(L)return N(L);let Y=w.from("");(0,b.pipesetup)(z,R.getConcater()).on("data",D=>Y=D).on("error",N).on("end",()=>{N(null,Y.toString())})})}setBucketPolicy(A,N,L){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError(`Invalid bucket name: ${A}`);if(!(0,b.isString)(N))throw new F.InvalidBucketPolicyError(`Invalid bucket policy: ${N} - must be "string"`);if(!(0,b.isFunction)(L))throw new TypeError('callback should be of type "function"');let z="DELETE";N&&(z="PUT"),this.makeRequest({method:z,bucketName:A,query:"policy"},N,[204],"",!1,L)}presignedUrl(A,N,L,z,Y,D,K){if(this.anonymous)throw new F.AnonymousRequestError("Presigned "+A+" url cannot be generated for anonymous requests");if((0,b.isFunction)(D)&&(K=D,D=new Date),(0,b.isFunction)(Y)&&(K=Y,Y={},D=new Date),(0,b.isFunction)(z)&&(K=z,Y={},z=604800,D=new Date),!(0,b.isNumber)(z))throw new TypeError('expires should be of type "number"');if(!(0,b.isObject)(Y))throw new TypeError('reqParams should be of type "object"');if(!(0,b.isValidDate)(D))throw new TypeError('requestDate should be of type "Date" and valid');if(!(0,b.isFunction)(K))throw new TypeError('callback should be of type "function"');var q=u.default.stringify(Y);this.getBucketRegion(N,(U,te)=>{if(U)return K(U);var J,ae=this.getRequestOptions({method:A,region:te,bucketName:N,objectName:L,query:q});this.checkAndRefreshCreds();try{J=(0,T.presignSignatureV4)(ae,this.accessKey,this.secretKey,this.sessionToken,te,D,z)}catch(xe){return K(xe)}K(null,J)})}presignedGetObject(A,N,L,z,Y,D){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);return(0,b.isFunction)(z)&&(D=z,z={},Y=new Date),["response-content-type","response-content-language","response-expires","response-cache-control","response-content-disposition","response-content-encoding"].forEach(K=>{if(z!==void 0&&z[K]!==void 0&&!(0,b.isString)(z[K]))throw new TypeError(`response header ${K} should be of type "string"`)}),this.presignedUrl("GET",A,N,L,z,Y,D)}presignedPutObject(A,N,L,z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: ${bucketName}");if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError("Invalid object name: ${objectName}");return this.presignedUrl("PUT",A,N,L,z)}newPostPolicy(){return new P}presignedPostPolicy(A,N){if(this.anonymous)throw new F.AnonymousRequestError("Presigned POST policy cannot be generated for anonymous requests");if(!(0,b.isObject)(A))throw new TypeError('postPolicy should be of type "object"');if(!(0,b.isFunction)(N))throw new TypeError('cb should be of type "function"');this.getBucketRegion(A.formData.bucket,(L,z)=>{if(L)return N(L);var Y=new Date,D=(0,b.makeDateLong)(Y);if(this.checkAndRefreshCreds(),!A.policy.expiration){var K=new Date;K.setSeconds(604800),A.setExpires(K)}A.policy.conditions.push(["eq","$x-amz-date",D]),A.formData["x-amz-date"]=D,A.policy.conditions.push(["eq","$x-amz-algorithm","AWS4-HMAC-SHA256"]),A.formData["x-amz-algorithm"]="AWS4-HMAC-SHA256",A.policy.conditions.push(["eq","$x-amz-credential",this.accessKey+"/"+(0,b.getScope)(z,Y)]),A.formData["x-amz-credential"]=this.accessKey+"/"+(0,b.getScope)(z,Y),this.sessionToken&&(A.policy.conditions.push(["eq","$x-amz-security-token",this.sessionToken]),A.formData["x-amz-security-token"]=this.sessionToken);var q=w.from(JSON.stringify(A.policy)).toString("base64");A.formData.policy=q;var U=(0,T.postPresignSignatureV4)(z,Y,this.secretKey,q);A.formData["x-amz-signature"]=U;var te={};te.region=z,te.bucketName=A.formData.bucket;var J=this.getRequestOptions(te),ae=this.port==80||this.port===443?"":`:${this.port.toString()}`,xe=`${J.protocol}//${J.host}${ae}${J.path}`;N(null,{postURL:xe,formData:A.formData})})}initiateNewMultipartUpload(A,N,L,z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isObject)(L))throw new F.InvalidObjectNameError('contentType should be of type "object"');let Y=Object.assign({},L);this.makeRequest({method:"POST",bucketName:A,objectName:N,query:"uploads",headers:Y},"",[200],"",!0,(D,K)=>{if(D)return z(D);var q=R.getInitiateMultipartTransformer();(0,b.pipesetup)(K,q).on("error",U=>z(U)).on("data",U=>z(null,U))})}completeMultipartUpload(A,N,L,z,Y){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isString)(L))throw new TypeError('uploadId should be of type "string"');if(!(0,b.isObject)(z))throw new TypeError('etags should be of type "Array"');if(!(0,b.isFunction)(Y))throw new TypeError('cb should be of type "function"');if(!L)throw new F.InvalidArgumentError("uploadId cannot be empty");var D=`uploadId=${(0,b.uriEscape)(L)}`,K=[];z.forEach(te=>{K.push({Part:[{PartNumber:te.part},{ETag:te.etag}]})});var q={CompleteMultipartUpload:K},U=(0,p.default)(q);this.makeRequest({method:"POST",bucketName:A,objectName:N,query:D},U,[200],"",!0,(te,J)=>{if(te)return Y(te);var ae=R.getCompleteMultipartTransformer();(0,b.pipesetup)(J,ae).on("error",xe=>Y(xe)).on("data",xe=>{if(xe.errCode)Y(new F.S3Error(xe.errMessage));else{const ce={etag:xe.etag,versionId:(0,b.getVersionId)(J.headers)};Y(null,ce)}})})}listParts(A,N,L,z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isString)(L))throw new TypeError('uploadId should be of type "string"');if(!L)throw new F.InvalidArgumentError("uploadId cannot be empty");var Y=[],D=K=>{this.listPartsQuery(A,N,L,K,(q,U)=>{q?z(q):(Y=Y.concat(U.parts),U.isTruncated?D(U.marker):z(null,Y))})};D(0)}listPartsQuery(A,N,L,z,Y){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isString)(L))throw new TypeError('uploadId should be of type "string"');if(!(0,b.isNumber)(z))throw new TypeError('marker should be of type "number"');if(!(0,b.isFunction)(Y))throw new TypeError('callback should be of type "function"');if(!L)throw new F.InvalidArgumentError("uploadId cannot be empty");var D="";z&&z!==0&&(D+=`part-number-marker=${z}&`),D+=`uploadId=${(0,b.uriEscape)(L)}`,this.makeRequest({method:"GET",bucketName:A,objectName:N,query:D},"",[200],"",!0,(K,q)=>{if(K)return Y(K);var U=R.getListPartsTransformer();(0,b.pipesetup)(q,U).on("error",te=>Y(te)).on("data",te=>Y(null,te))})}listIncompleteUploadsQuery(A,N,L,z,Y){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isString)(N))throw new TypeError('prefix should be of type "string"');if(!(0,b.isString)(L))throw new TypeError('keyMarker should be of type "string"');if(!(0,b.isString)(z))throw new TypeError('uploadIdMarker should be of type "string"');if(!(0,b.isString)(Y))throw new TypeError('delimiter should be of type "string"');var D=[];D.push(`prefix=${(0,b.uriEscape)(N)}`),D.push(`delimiter=${(0,b.uriEscape)(Y)}`),L&&(L=(0,b.uriEscape)(L),D.push(`key-marker=${L}`)),z&&D.push(`upload-id-marker=${z}`),D.push("max-uploads=1000"),D.sort(),D.unshift("uploads");var K="";D.length>0&&(K=`${D.join("&")}`);var q=R.getListMultipartTransformer();return this.makeRequest({method:"GET",bucketName:A,query:K},"",[200],"",!0,(U,te)=>{if(U)return q.emit("error",U);(0,b.pipesetup)(te,q)}),q}findUploadId(A,N,L){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isFunction)(L))throw new TypeError('cb should be of type "function"');var z,Y=(D,K)=>{this.listIncompleteUploadsQuery(A,N,D,K,"").on("error",q=>L(q)).on("data",q=>{if(q.uploads.forEach(U=>{U.key!==N||z&&!(U.initiated.getTime()>z.initiated.getTime())||(z=U)}),!q.isTruncated)return z?L(null,z.uploadId):void L(null,void 0);Y(q.nextKeyMarker,q.nextUploadIdMarker)})};Y("","")}getUploader(A,N,L,z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isBoolean)(z))throw new TypeError('multipart should be of type "boolean"');if(!(0,b.isObject)(L))throw new TypeError('metadata should be of type "object"');var Y=(K,q,U,te,J)=>{if(!(0,b.isReadableStream)(K))throw new TypeError('stream should be of type "Stream"');if(!(0,b.isNumber)(q))throw new TypeError('length should be of type "number"');if(!(0,b.isString)(U))throw new TypeError('sha256sum should be of type "string"');if(!(0,b.isString)(te))throw new TypeError('md5sum should be of type "string"');if(!(0,b.isFunction)(J))throw new TypeError('callback should be of type "function"')},D=(K,q,U,te,J,ae)=>{let xe={"Content-Length":U};z||(xe=Object.assign({},L,xe)),this.enableSHA256||(xe["Content-MD5"]=J),this.makeRequestStream({method:"PUT",bucketName:A,objectName:N,query:K,headers:xe},q,te,[200],"",!0,(ce,fe)=>{if(ce)return ae(ce);const Te={etag:(0,b.sanitizeETag)(fe.headers.etag),versionId:(0,b.getVersionId)(fe.headers)};fe.on("data",()=>{}),ae(null,Te)})};return z?(K,q,...U)=>{if(!(0,b.isString)(K))throw new TypeError('uploadId should be of type "string"');if(!(0,b.isNumber)(q))throw new TypeError('partNumber should be of type "number"');if(!K)throw new F.InvalidArgumentError("Empty uploadId");if(!q)throw new F.InvalidArgumentError("partNumber cannot be 0");Y(...U);var te=`partNumber=${q}&uploadId=${(0,b.uriEscape)(K)}`;D(te,...U)}:(...K)=>{Y(...K),D("",...K)}}setBucketNotification(A,N,L){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isObject)(N))throw new TypeError('notification config should be of type "Object"');if(!(0,b.isFunction)(L))throw new TypeError('callback should be of type "function"');var z=new m.default.Builder({rootName:"NotificationConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(N);this.makeRequest({method:"PUT",bucketName:A,query:"notification"},z,[200],"",!1,L)}removeAllBucketNotification(A,N){this.setBucketNotification(A,new Z.NotificationConfig,N)}getBucketNotification(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isFunction)(N))throw new TypeError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:A,query:"notification"},"",[200],"",!0,(L,z)=>{if(L)return N(L);var Y,D=R.getBucketNotificationTransformer();(0,b.pipesetup)(z,D).on("data",K=>Y=K).on("error",K=>N(K)).on("end",()=>N(null,Y))})}listenBucketNotification(A,N,L,z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError(`Invalid bucket name: ${A}`);if(!(0,b.isString)(N))throw new TypeError("prefix must be of type string");if(!(0,b.isString)(L))throw new TypeError("suffix must be of type string");if(!(0,b.isArray)(z))throw new TypeError("events must be of type Array");let Y=new Z.NotificationPoller(this,A,N,L,z);return Y.start(),Y}getBucketVersioning(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isFunction)(N))throw new F.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:A,query:"versioning"},"",[200],"",!0,(L,z)=>{if(L)return N(L);let Y=w.from("");(0,b.pipesetup)(z,R.bucketVersioningTransformer()).on("data",D=>{Y=D}).on("error",N).on("end",()=>{N(null,Y)})})}setBucketVersioning(A,N,L){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!Object.keys(N).length)throw new F.InvalidArgumentError('versionConfig should be of type "object"');if(!(0,b.isFunction)(L))throw new TypeError('callback should be of type "function"');var z=new m.default.Builder({rootName:"VersioningConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(N);this.makeRequest({method:"PUT",bucketName:A,query:"versioning"},z,[200],"",!1,L)}setTagging(A){const{bucketName:N,objectName:L,tags:z,putOpts:Y={},cb:D}=A;let K="tagging";Y&&Y.versionId&&(K=`${K}&versionId=${Y.versionId}`);const q=[];for(const[ce,fe]of Object.entries(z))q.push({Key:ce,Value:fe});const U={Tagging:{TagSet:{Tag:q}}},te=new S.TextEncoder,J={};let ae=new m.default.Builder({headless:!0,renderOpts:{pretty:!1}}).buildObject(U);ae=te.encode(ae),J["Content-MD5"]=(0,b.toMd5)(ae);const xe={method:"PUT",bucketName:N,query:K,headers:J};L&&(xe.objectName=L),J["Content-MD5"]=(0,b.toMd5)(ae),this.makeRequest(xe,ae,[200],"",!1,D)}setBucketTagging(A,N,L){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isObject)(N))throw new F.InvalidArgumentError('tags should be of type "object"');if(Object.keys(N).length>10)throw new F.InvalidArgumentError('maximum tags allowed is 10"');if(!(0,b.isFunction)(L))throw new F.InvalidArgumentError('callback should be of type "function"');return this.setTagging({bucketName:A,tags:N,cb:L})}setObjectTagging(A,N,L,z={},Y){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidBucketNameError("Invalid object name: "+N);if((0,b.isFunction)(z)&&(Y=z,z={}),!(0,b.isObject)(L))throw new F.InvalidArgumentError('tags should be of type "object"');if(Object.keys(L).length>10)throw new F.InvalidArgumentError('Maximum tags allowed is 10"');if(!(0,b.isFunction)(Y))throw new TypeError('callback should be of type "function"');return this.setTagging({bucketName:A,objectName:N,tags:L,putOpts:z,cb:Y})}removeTagging({bucketName:A,objectName:N,removeOpts:L,cb:z}){let Y="tagging";L&&Object.keys(L).length&&L.versionId&&(Y=`${Y}&versionId=${L.versionId}`);const D={method:"DELETE",bucketName:A,objectName:N,query:Y};N&&(D.objectName=N),this.makeRequest(D,"",[200,204],"",!0,z)}removeBucketTagging(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isFunction)(N))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:A,cb:N})}removeObjectTagging(A,N,L,z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidBucketNameError("Invalid object name: "+N);if((0,b.isFunction)(L)&&(z=L,L={}),L&&Object.keys(L).length&&!(0,b.isObject)(L))throw new F.InvalidArgumentError('removeOpts should be of type "object"');if(!(0,b.isFunction)(z))throw new TypeError('callback should be of type "function"');return this.removeTagging({bucketName:A,objectName:N,removeOpts:L,cb:z})}getBucketTagging(A,N){const L={method:"GET",bucketName:A,query:"tagging"};this.makeRequest(L,"",[200],"",!0,(z,Y)=>{var D=R.getTagsTransformer();if(z)return N(z);let K;(0,b.pipesetup)(Y,D).on("data",q=>K=q).on("error",q=>N(q)).on("end",()=>N(null,K))})}getObjectTagging(A,N,L={},z=()=>!1){let Y="tagging";if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidBucketNameError("Invalid object name: "+N);if((0,b.isFunction)(L)&&(z=L,L={}),!(0,b.isObject)(L))throw new F.InvalidArgumentError('getOpts should be of type "object"');if(!(0,b.isFunction)(z))throw new TypeError('callback should be of type "function"');L&&L.versionId&&(Y=`${Y}&versionId=${L.versionId}`);const D={method:"GET",bucketName:A,query:Y};N&&(D.objectName=N),this.makeRequest(D,"",[200],"",!0,(K,q)=>{const U=R.getTagsTransformer();if(K)return z(K);let te;(0,b.pipesetup)(q,U).on("data",J=>te=J).on("error",J=>z(J)).on("end",()=>z(null,te))})}applyBucketLifecycle(A,N,L){const z=new S.TextEncoder,Y={};let D=new m.default.Builder({rootName:"LifecycleConfiguration",headless:!0,renderOpts:{pretty:!1}}).buildObject(N);D=z.encode(D);const K={method:"PUT",bucketName:A,query:"lifecycle",headers:Y};Y["Content-MD5"]=(0,b.toMd5)(D),this.makeRequest(K,D,[200],"",!1,L)}removeBucketLifecycle(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);this.makeRequest({method:"DELETE",bucketName:A,query:"lifecycle"},"",[204],"",!1,N)}setBucketLifecycle(A,N=null,L){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);_.default.isEmpty(N)?this.removeBucketLifecycle(A,L):this.applyBucketLifecycle(A,N,L)}getBucketLifecycle(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);const L={method:"GET",bucketName:A,query:"lifecycle"};this.makeRequest(L,"",[200],"",!0,(z,Y)=>{const D=R.lifecycleTransformer();if(z)return N(z);let K;(0,b.pipesetup)(Y,D).on("data",q=>K=q).on("error",q=>N(q)).on("end",()=>N(null,K))})}setObjectLockConfig(A,N={},L){const z=[b.RETENTION_MODES.COMPLIANCE,b.RETENTION_MODES.GOVERNANCE],Y=[b.RETENTION_VALIDITY_UNITS.DAYS,b.RETENTION_VALIDITY_UNITS.YEARS];if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(N.mode&&!z.includes(N.mode))throw new TypeError(`lockConfigOpts.mode should be one of ${z}`);if(N.unit&&!Y.includes(N.unit))throw new TypeError(`lockConfigOpts.unit should be one of ${Y}`);if(N.validity&&!(0,b.isNumber)(N.validity))throw new TypeError("lockConfigOpts.validity should be a number");let D={ObjectLockEnabled:"Enabled"};const K=Object.keys(N);if(K.length>0){if(_.default.difference(K,["unit","mode","validity"]).length!==0)throw new TypeError("lockConfigOpts.mode,lockConfigOpts.unit,lockConfigOpts.validity all the properties should be specified.");D.Rule={DefaultRetention:{}},N.mode&&(D.Rule.DefaultRetention.Mode=N.mode),N.unit===b.RETENTION_VALIDITY_UNITS.DAYS?D.Rule.DefaultRetention.Days=N.validity:N.unit===b.RETENTION_VALIDITY_UNITS.YEARS&&(D.Rule.DefaultRetention.Years=N.validity)}const q=new m.default.Builder({rootName:"ObjectLockConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(D),U={};U["Content-MD5"]=(0,b.toMd5)(q),this.makeRequest({method:"PUT",bucketName:A,query:"object-lock",headers:U},q,[200],"",!1,L)}getObjectLockConfig(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isFunction)(N))throw new F.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:A,query:"object-lock"},"",[200],"",!0,(L,z)=>{if(L)return N(L);let Y=w.from("");(0,b.pipesetup)(z,R.objectLockTransformer()).on("data",D=>{Y=D}).on("error",N).on("end",()=>{N(null,Y)})})}putObjectRetention(A,N,L={},z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isObject)(L))throw new F.InvalidArgumentError('retentionOpts should be of type "object"');if(L.governanceBypass&&!(0,b.isBoolean)(L.governanceBypass))throw new F.InvalidArgumentError("Invalid value for governanceBypass",L.governanceBypass);if(L.mode&&![b.RETENTION_MODES.COMPLIANCE,b.RETENTION_MODES.GOVERNANCE].includes(L.mode))throw new F.InvalidArgumentError("Invalid object retention mode ",L.mode);if(L.retainUntilDate&&!(0,b.isString)(L.retainUntilDate))throw new F.InvalidArgumentError("Invalid value for retainUntilDate",L.retainUntilDate);if(L.versionId&&!(0,b.isString)(L.versionId))throw new F.InvalidArgumentError("Invalid value for versionId",L.versionId);if(!(0,b.isFunction)(z))throw new TypeError('callback should be of type "function"');let Y="retention";const D={};L.governanceBypass&&(D["X-Amz-Bypass-Governance-Retention"]=!0);const K=new m.default.Builder({rootName:"Retention",renderOpts:{pretty:!1},headless:!0}),q={};L.mode&&(q.Mode=L.mode),L.retainUntilDate&&(q.RetainUntilDate=L.retainUntilDate),L.versionId&&(Y+=`&versionId=${L.versionId}`);let U=K.buildObject(q);D["Content-MD5"]=(0,b.toMd5)(U),this.makeRequest({method:"PUT",bucketName:A,objectName:N,query:Y,headers:D},U,[200,204],"",!1,z)}getObjectRetention(A,N,L,z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(!(0,b.isObject)(L))throw new F.InvalidArgumentError('callback should be of type "object"');if(L.versionId&&!(0,b.isString)(L.versionId))throw new F.InvalidArgumentError('VersionID should be of type "string"');if(z&&!(0,b.isFunction)(z))throw new F.InvalidArgumentError('callback should be of type "function"');let Y="retention";L.versionId&&(Y+=`&versionId=${L.versionId}`),this.makeRequest({method:"GET",bucketName:A,objectName:N,query:Y},"",[200],"",!0,(D,K)=>{if(D)return z(D);let q=w.from("");(0,b.pipesetup)(K,R.objectRetentionTransformer()).on("data",U=>{q=U}).on("error",z).on("end",()=>{z(null,q)})})}setBucketEncryption(A,N,L){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if((0,b.isFunction)(N)&&(L=N,N=null),!_.default.isEmpty(N)&&N.Rule.length>1)throw new F.InvalidArgumentError("Invalid Rule length. Only one rule is allowed.: "+N.Rule);if(L&&!(0,b.isFunction)(L))throw new TypeError('callback should be of type "function"');let z=N;_.default.isEmpty(N)&&(z={Rule:[{ApplyServerSideEncryptionByDefault:{SSEAlgorithm:"AES256"}}]});let Y=new m.default.Builder({rootName:"ServerSideEncryptionConfiguration",renderOpts:{pretty:!1},headless:!0}).buildObject(z);const D={};D["Content-MD5"]=(0,b.toMd5)(Y),this.makeRequest({method:"PUT",bucketName:A,query:"encryption",headers:D},Y,[200],"",!1,L)}getBucketEncryption(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isFunction)(N))throw new F.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:A,query:"encryption"},"",[200],"",!0,(L,z)=>{if(L)return N(L);let Y=w.from("");(0,b.pipesetup)(z,R.bucketEncryptionTransformer()).on("data",D=>{Y=D}).on("error",N).on("end",()=>{N(null,Y)})})}removeBucketEncryption(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isFunction)(N))throw new F.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"DELETE",bucketName:A,query:"encryption"},"",[204],"",!1,N)}setBucketReplication(A,N={},L){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isObject)(N))throw new F.InvalidArgumentError('replicationConfig should be of type "object"');if(_.default.isEmpty(N.role))throw new F.InvalidArgumentError("Role cannot be empty");if(N.role&&!(0,b.isString)(N.role))throw new F.InvalidArgumentError("Invalid value for role",N.role);if(_.default.isEmpty(N.rules))throw new F.InvalidArgumentError("Minimum one replication rule must be specified");if(!(0,b.isFunction)(L))throw new TypeError('callback should be of type "function"');const z={},Y={ReplicationConfiguration:{Role:N.role,Rule:N.rules}};let D=new m.default.Builder({renderOpts:{pretty:!1},headless:!0}).buildObject(Y);z["Content-MD5"]=(0,b.toMd5)(D),this.makeRequest({method:"PUT",bucketName:A,query:"replication",headers:z},D,[200],"",!1,L)}getBucketReplication(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isFunction)(N))throw new F.InvalidArgumentError('callback should be of type "function"');this.makeRequest({method:"GET",bucketName:A,query:"replication"},"",[200],"",!0,(L,z)=>{if(L)return N(L);let Y=w.from("");(0,b.pipesetup)(z,R.replicationConfigTransformer()).on("data",D=>{Y=D}).on("error",N).on("end",()=>{N(null,Y)})})}removeBucketReplication(A,N){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);this.makeRequest({method:"DELETE",bucketName:A,query:"replication"},"",[200,204],"",!1,N)}getObjectLegalHold(A,N,L={},z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if((0,b.isFunction)(L)&&(z=L,L={}),!(0,b.isObject)(L))throw new TypeError('getOpts should be of type "Object"');if(Object.keys(L).length>0&&L.versionId&&!(0,b.isString)(L.versionId))throw new TypeError("versionId should be of type string.:",L.versionId);if(!(0,b.isFunction)(z))throw new F.InvalidArgumentError('callback should be of type "function"');let Y="legal-hold";L.versionId&&(Y+=`&versionId=${L.versionId}`),this.makeRequest({method:"GET",bucketName:A,objectName:N,query:Y},"",[200],"",!0,(D,K)=>{if(D)return z(D);let q=w.from("");(0,b.pipesetup)(K,R.objectLegalHoldTransformer()).on("data",U=>{q=U}).on("error",z).on("end",()=>{z(null,q)})})}setObjectLegalHold(A,N,L={},z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError("Invalid bucket name: "+A);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);const Y={status:b.LEGAL_HOLD_STATUS.ENABLED};if((0,b.isFunction)(L)&&(z=L,L=Y),!(0,b.isObject)(L))throw new TypeError('setOpts should be of type "Object"');if(![b.LEGAL_HOLD_STATUS.ENABLED,b.LEGAL_HOLD_STATUS.DISABLED].includes(L.status))throw new TypeError("Invalid status: "+L.status);if(L.versionId&&!L.versionId.length)throw new TypeError("versionId should be of type string.:"+L.versionId);if(!(0,b.isFunction)(z))throw new F.InvalidArgumentError('callback should be of type "function"');_.default.isEmpty(L)&&(L={defaultOpts:Y});let D="legal-hold";L.versionId&&(D+=`&versionId=${L.versionId}`);let K={Status:L.status};const q=new m.default.Builder({rootName:"LegalHold",renderOpts:{pretty:!1},headless:!0}).buildObject(K),U={};U["Content-MD5"]=(0,b.toMd5)(q),this.makeRequest({method:"PUT",bucketName:A,objectName:N,query:D,headers:U},q,[200],"",!1,z)}setCredentialsProvider(A){return re(this,null,function*(){if(!(A instanceof e.default))throw new Error("Unable to get credentials. Expected instance of CredentialProvider");this.credentialsProvider=A,yield this.checkAndRefreshCreds()})}checkAndRefreshCreds(){return re(this,null,function*(){if(this.credentialsProvider)return yield this.fetchCredentials()})}fetchCredentials(){return re(this,null,function*(){if(!this.credentialsProvider)throw new Error("Unable to get credentials. Expected instance of BaseCredentialsProvider");{const A=yield this.credentialsProvider.getCredentials();if(!A)throw new Error("Unable to get credentials. Expected instance of BaseCredentialsProvider");this.accessKey=A.getAccessKey(),this.secretKey=A.getSecretKey(),this.sessionToken=A.getSessionToken()}})}abortMultipartUpload(A,N,L,z){const Y={method:"DELETE",bucketName:A,objectName:N,query:`uploadId=${L}`};this.makeRequest(Y,"",[204],"",!1,z)}uploadPartCopy(A,N){const{bucketName:L,objectName:z,uploadID:Y,partNumber:D,headers:K}=A,q={method:"PUT",bucketName:L,objectName:z,query:`uploadId=${Y}&partNumber=${D}`,headers:K};return this.makeRequest(q,"",[200],"",!0,(U,te)=>{let J=w.from("");if(U)return N(U);(0,b.pipesetup)(te,R.uploadPartTransformer()).on("data",ae=>{J=ae}).on("error",N).on("end",()=>{let ae={etag:(0,b.sanitizeETag)(J.ETag),key:z,part:D};N(null,ae)})})}composeObject(A={},N=[],L){const z=this,Y=N.length;if(!(0,b.isArray)(N))throw new F.InvalidArgumentError("sourceConfig should an array of CopySourceOptions ");if(!(A instanceof b.CopyDestinationOptions))throw new F.InvalidArgumentError("destConfig should of type CopyDestinationOptions ");if(Y<1||Y>b.PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new F.InvalidArgumentError(`"There must be as least one and up to ${b.PART_CONSTRAINTS.MAX_PARTS_COUNT} source objects.`);if(!(0,b.isFunction)(L))throw new TypeError('callback should be of type "function"');for(let te=0;te<Y;te++)if(!N[te].validate())return!1;if(!A.validate())return!1;const D=[];let K=0,q=0;const U=N.map(te=>z.statObject(te.Bucket,te.Object,(J=>{let ae={};return _.default.isEmpty(J.VersionID)||(ae={versionId:J.VersionID}),ae})(te)));return Promise.all(U).then(te=>{const J=te.map((fe,Te)=>{const ye=N[Te];let Ee=fe.size;if(ye.MatchRange){const V=ye.Start,W=ye.End;if(W>=Ee||V<0)throw new F.InvalidArgumentError(`CopySrcOptions ${Te} has invalid segment-to-copy [${V}, ${W}] (size is ${Ee})`);Ee=W-V+1}if(Ee<b.PART_CONSTRAINTS.ABS_MIN_PART_SIZE&&Te<Y-1)throw new F.InvalidArgumentError(`CopySrcOptions ${Te} is too small (${Ee}) and it is not the last part.`);if(K+=Ee,K>b.PART_CONSTRAINTS.MAX_MULTIPART_PUT_OBJECT_SIZE)throw new F.InvalidArgumentError(`Cannot compose an object of size ${K} (> 5TiB)`);if(D[Te]=Ee,q+=(0,b.partsRequired)(Ee),q>b.PART_CONSTRAINTS.MAX_PARTS_COUNT)throw new F.InvalidArgumentError(`Your proposed compose object requires more than ${b.PART_CONSTRAINTS.MAX_PARTS_COUNT} parts`);return fe});if(q===1&&K<=b.PART_CONSTRAINTS.MAX_PART_SIZE||K===0)return this.copyObject(N[0],A,L);for(let fe=0;fe<Y;fe++)N[fe].MatchETag=J[fe].etag;const ae=J.map((fe,Te)=>(0,b.calculateEvenSplits)(D[Te],N[Te])),xe=fe=>{const Te=function(ye){const Ee=[];return ae.forEach((V,W)=>{const{startIndex:Q,endIndex:ge,objInfo:oe}=V;let ue=W+1;const Ne=Array.from(Q),we=N[W].getHeaders();Ne.forEach((Me,pt)=>{let ke=ge[pt];const je=`${oe.Bucket}/${oe.Object}`;we["x-amz-copy-source"]=`${je}`,we["x-amz-copy-source-range"]=`bytes=${Me}-${ke}`;const Et={bucketName:A.Bucket,objectName:A.Object,uploadID:ye,partNumber:ue,headers:we,sourceObj:je};Ee.push(Et)})}),Ee}(fe);h.default.map(Te,z.uploadPartCopy.bind(z),(ye,Ee)=>{if(ye)return this.abortMultipartUpload(A.Bucket,A.Object,fe,L);const V=Ee.map(W=>({etag:W.etag,part:W.part}));return z.completeMultipartUpload(A.Bucket,A.Object,fe,V,L)})},ce=A.getHeaders();z.initiateNewMultipartUpload(A.Bucket,A.Object,ce,(fe,Te)=>{if(fe)return L(fe,null);xe(Te)})}).catch(te=>{L(te,null)})}selectObjectContent(A,N,L={},z){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError(`Invalid bucket name: ${A}`);if(!(0,b.isValidObjectName)(N))throw new F.InvalidObjectNameError(`Invalid object name: ${N}`);if(_.default.isEmpty(L))throw new TypeError("valid select configuration is required");if(!(0,b.isString)(L.expression))throw new TypeError('sqlExpression should be of type "string"');if(_.default.isEmpty(L.inputSerialization))throw new TypeError("inputSerialization is required");if(!(0,b.isObject)(L.inputSerialization))throw new TypeError('inputSerialization should be of type "object"');if(_.default.isEmpty(L.outputSerialization))throw new TypeError("outputSerialization is required");if(!(0,b.isObject)(L.outputSerialization))throw new TypeError('outputSerialization should be of type "object"');if(!(0,b.isFunction)(z))throw new TypeError('callback should be of type "function"');const Y=[{Expression:L.expression},{ExpressionType:L.expressionType||"SQL"},{InputSerialization:[L.inputSerialization]},{OutputSerialization:[L.outputSerialization]}];L.requestProgress&&Y.push({RequestProgress:L.requestProgress}),L.scanRange&&Y.push({ScanRange:L.scanRange});const D=new m.default.Builder({rootName:"SelectObjectContentRequest",renderOpts:{pretty:!1},headless:!0}).buildObject(Y);this.makeRequest({method:"POST",bucketName:A,objectName:N,query:"select&select-type=2"},D,[200],"",!0,(K,q)=>{if(K)return z(K);let U;(0,b.pipesetup)(q,R.selectObjectContentTransformer()).on("data",te=>{U=(0,r.parseSelectObjectContentResponse)(te)}).on("error",z).on("end",()=>{z(null,U)})})}get extensions(){return this.clientExtensions||(this.clientExtensions=new ne.default(this)),this.clientExtensions}}O.Client=s,s.prototype.makeBucket=(0,b.promisify)(s.prototype.makeBucket),s.prototype.listBuckets=(0,b.promisify)(s.prototype.listBuckets),s.prototype.bucketExists=(0,b.promisify)(s.prototype.bucketExists),s.prototype.removeBucket=(0,b.promisify)(s.prototype.removeBucket),s.prototype.getObject=(0,b.promisify)(s.prototype.getObject),s.prototype.getPartialObject=(0,b.promisify)(s.prototype.getPartialObject),s.prototype.fGetObject=(0,b.promisify)(s.prototype.fGetObject),s.prototype.putObject=(0,b.promisify)(s.prototype.putObject),s.prototype.fPutObject=(0,b.promisify)(s.prototype.fPutObject),s.prototype.copyObject=(0,b.promisify)(s.prototype.copyObject),s.prototype.statObject=(0,b.promisify)(s.prototype.statObject),s.prototype.removeObject=(0,b.promisify)(s.prototype.removeObject),s.prototype.removeObjects=(0,b.promisify)(s.prototype.removeObjects),s.prototype.presignedUrl=(0,b.promisify)(s.prototype.presignedUrl),s.prototype.presignedGetObject=(0,b.promisify)(s.prototype.presignedGetObject),s.prototype.presignedPutObject=(0,b.promisify)(s.prototype.presignedPutObject),s.prototype.presignedPostPolicy=(0,b.promisify)(s.prototype.presignedPostPolicy),s.prototype.getBucketNotification=(0,b.promisify)(s.prototype.getBucketNotification),s.prototype.setBucketNotification=(0,b.promisify)(s.prototype.setBucketNotification),s.prototype.removeAllBucketNotification=(0,b.promisify)(s.prototype.removeAllBucketNotification),s.prototype.getBucketPolicy=(0,b.promisify)(s.prototype.getBucketPolicy),s.prototype.setBucketPolicy=(0,b.promisify)(s.prototype.setBucketPolicy),s.prototype.removeIncompleteUpload=(0,b.promisify)(s.prototype.removeIncompleteUpload),s.prototype.getBucketVersioning=(0,b.promisify)(s.prototype.getBucketVersioning),s.prototype.setBucketVersioning=(0,b.promisify)(s.prototype.setBucketVersioning),s.prototype.setBucketTagging=(0,b.promisify)(s.prototype.setBucketTagging),s.prototype.removeBucketTagging=(0,b.promisify)(s.prototype.removeBucketTagging),s.prototype.getBucketTagging=(0,b.promisify)(s.prototype.getBucketTagging),s.prototype.setObjectTagging=(0,b.promisify)(s.prototype.setObjectTagging),s.prototype.removeObjectTagging=(0,b.promisify)(s.prototype.removeObjectTagging),s.prototype.getObjectTagging=(0,b.promisify)(s.prototype.getObjectTagging),s.prototype.setBucketLifecycle=(0,b.promisify)(s.prototype.setBucketLifecycle),s.prototype.getBucketLifecycle=(0,b.promisify)(s.prototype.getBucketLifecycle),s.prototype.removeBucketLifecycle=(0,b.promisify)(s.prototype.removeBucketLifecycle),s.prototype.setObjectLockConfig=(0,b.promisify)(s.prototype.setObjectLockConfig),s.prototype.getObjectLockConfig=(0,b.promisify)(s.prototype.getObjectLockConfig),s.prototype.putObjectRetention=(0,b.promisify)(s.prototype.putObjectRetention),s.prototype.getObjectRetention=(0,b.promisify)(s.prototype.getObjectRetention),s.prototype.setBucketEncryption=(0,b.promisify)(s.prototype.setBucketEncryption),s.prototype.getBucketEncryption=(0,b.promisify)(s.prototype.getBucketEncryption),s.prototype.removeBucketEncryption=(0,b.promisify)(s.prototype.removeBucketEncryption),s.prototype.setBucketReplication=(0,b.promisify)(s.prototype.setBucketReplication),s.prototype.getBucketReplication=(0,b.promisify)(s.prototype.getBucketReplication),s.prototype.removeBucketReplication=(0,b.promisify)(s.prototype.removeBucketReplication),s.prototype.setObjectLegalHold=(0,b.promisify)(s.prototype.setObjectLegalHold),s.prototype.getObjectLegalHold=(0,b.promisify)(s.prototype.getObjectLegalHold),s.prototype.composeObject=(0,b.promisify)(s.prototype.composeObject),s.prototype.selectObjectContent=(0,b.promisify)(s.prototype.selectObjectContent);class I{constructor(){this.modified="",this.unmodified="",this.matchETag="",this.matchETagExcept=""}setModified(A){if(!(A instanceof Date))throw new TypeError("date must be of type Date");this.modified=A.toUTCString()}setUnmodified(A){if(!(A instanceof Date))throw new TypeError("date must be of type Date");this.unmodified=A.toUTCString()}setMatchETag(A){this.matchETag=A}setMatchETagExcept(A){this.matchETagExcept=A}}O.CopyConditions=I;class P{constructor(){this.policy={conditions:[]},this.formData={}}setExpires(A){if(!A)throw new F.InvalidDateError("Invalid date : cannot be null");this.policy.expiration=A.toISOString()}setKey(A){if(!(0,b.isValidObjectName)(A))throw new F.InvalidObjectNameError(`Invalid object name : ${A}`);this.policy.conditions.push(["eq","$key",A]),this.formData.key=A}setKeyStartsWith(A){if(!(0,b.isValidPrefix)(A))throw new F.InvalidPrefixError(`Invalid prefix : ${A}`);this.policy.conditions.push(["starts-with","$key",A]),this.formData.key=A}setBucket(A){if(!(0,b.isValidBucketName)(A))throw new F.InvalidBucketNameError(`Invalid bucket name : ${A}`);this.policy.conditions.push(["eq","$bucket",A]),this.formData.bucket=A}setContentType(A){if(!A)throw new Error("content-type cannot be null");this.policy.conditions.push(["eq","$Content-Type",A]),this.formData["Content-Type"]=A}setContentTypeStartsWith(A){if(!A)throw new Error("content-type cannot be null");this.policy.conditions.push(["starts-with","$Content-Type",A]),this.formData["Content-Type"]=A}setContentDisposition(A){if(!A)throw new Error("content-disposition cannot be null");this.policy.conditions.push(["eq","$Content-Disposition",A]),this.formData["Content-Disposition"]=A}setContentLengthRange(A,N){if(A>N)throw new Error("min cannot be more than max");if(A<0)throw new Error("min should be > 0");if(N<0)throw new Error("max should be > 0");this.policy.conditions.push(["content-length-range",A,N])}setUserMetaData(A){if(!(0,b.isObject)(A))throw new TypeError('metadata should be of type "object"');Object.entries(A).forEach(([N,L])=>{const z=`x-amz-meta-${N}`;this.policy.conditions.push(["eq",`$${z}`,L]),this.formData[z]=L})}}O.PostPolicy=P},3606:(H,O,x)=>{var k=x(4155);Object.defineProperty(O,"__esModule",{value:!0}),O.buildARN=O.TopicConfig=O.QueueConfig=O.ObjectRemovedDeleteMarkerCreated=O.ObjectRemovedDelete=O.ObjectRemovedAll=O.ObjectReducedRedundancyLostObject=O.ObjectCreatedPut=O.ObjectCreatedPost=O.ObjectCreatedCopy=O.ObjectCreatedCompleteMultipartUpload=O.ObjectCreatedAll=O.NotificationPoller=O.NotificationConfig=O.CloudFunctionConfig=void 0;var w=x(7187),g=function(h,u){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var y=a(u);if(y&&y.has(h))return y.get(h);var v={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in h)if(S!=="default"&&Object.prototype.hasOwnProperty.call(h,S)){var b=_?Object.getOwnPropertyDescriptor(h,S):null;b&&(b.get||b.set)?Object.defineProperty(v,S,b):v[S]=h[S]}return v.default=h,y&&y.set(h,v),v}(x(6607)),M=x(1627);function a(h){if(typeof WeakMap!="function")return null;var u=new WeakMap,y=new WeakMap;return(a=function(v){return v?y:u})(h)}O.NotificationConfig=class{add(h){let u="";h instanceof c&&(u="TopicConfiguration"),h instanceof l&&(u="QueueConfiguration"),h instanceof p&&(u="CloudFunctionConfiguration"),this[u]||(this[u]=[]),this[u].push(h)}};class d{setId(u){this.Id=u}addEvent(u){this.Event||(this.Event=[]),this.Event.push(u)}addFilterSuffix(u){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"suffix",Value:u})}addFilterPrefix(u){this.Filter||(this.Filter={S3Key:{FilterRule:[]}}),this.Filter.S3Key.FilterRule.push({Name:"prefix",Value:u})}}class c extends d{constructor(u){super(),this.Topic=u}}O.TopicConfig=c;class l extends d{constructor(u){super(),this.Queue=u}}O.QueueConfig=l;class p extends d{constructor(u){super(),this.CloudFunction=u}}O.CloudFunctionConfig=p,O.buildARN=(h,u,y,v,_)=>"arn:"+h+":"+u+":"+y+":"+v+":"+_,O.ObjectCreatedAll="s3:ObjectCreated:*",O.ObjectCreatedPut="s3:ObjectCreated:Put",O.ObjectCreatedPost="s3:ObjectCreated:Post",O.ObjectCreatedCopy="s3:ObjectCreated:Copy",O.ObjectCreatedCompleteMultipartUpload="s3:ObjectCreated:CompleteMultipartUpload",O.ObjectRemovedAll="s3:ObjectRemoved:*",O.ObjectRemovedDelete="s3:ObjectRemoved:Delete",O.ObjectRemovedDeleteMarkerCreated="s3:ObjectRemoved:DeleteMarkerCreated",O.ObjectReducedRedundancyLostObject="s3:ReducedRedundancyLostObject";class m extends w.EventEmitter{constructor(u,y,v,_,S){super(),this.client=u,this.bucketName=y,this.prefix=v,this.suffix=_,this.events=S,this.ending=!1}start(){this.ending=!1,k.nextTick(()=>{this.checkForChanges()})}stop(){this.ending=!0}checkForChanges(){if(this.ending)return;var u=[];if(this.prefix){var y=(0,M.uriEscape)(this.prefix);u.push(`prefix=${y}`)}if(this.suffix){var v=(0,M.uriEscape)(this.suffix);u.push(`suffix=${v}`)}this.events&&this.events.forEach(b=>u.push("events="+(0,M.uriEscape)(b))),u.sort();var _="";u.length>0&&(_=`${u.join("&")}`);const S=this.client.region||M.DEFAULT_REGION;this.client.makeRequest({method:"GET",bucketName:this.bucketName,query:_},"",[200],S,!0,(b,T)=>{if(b)return this.emit("error",b);let C=g.getNotificationTransformer();(0,M.pipesetup)(T,C).on("data",R=>{let F=R.Records;F||(F=[]),F.forEach(X=>{this.emit("notification",X)}),this.ending&&T.destroy()}).on("error",R=>this.emit("error",R)).on("end",()=>{k.nextTick(()=>{this.checkForChanges()})})})}}O.NotificationPoller=m},3861:(H,O,x)=>{var k=x(4155);Object.defineProperty(O,"__esModule",{value:!0}),O.default=void 0;var w,g=x(2830),M=(w=x(5835))&&w.__esModule?w:{default:w},a=function(p,m){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var h=c(m);if(h&&h.has(p))return h.get(p);var u={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in p)if(v!=="default"&&Object.prototype.hasOwnProperty.call(p,v)){var _=y?Object.getOwnPropertyDescriptor(p,v):null;_&&(_.get||_.set)?Object.defineProperty(u,v,_):u[v]=p[v]}return u.default=p,h&&h.set(p,u),u}(x(7563)),d=x(1627);function c(p){if(typeof WeakMap!="function")return null;var m=new WeakMap,h=new WeakMap;return(c=function(u){return u?h:m})(p)}class l extends g.Transform{constructor(m,h,u,y,v,_){super(),this.emptyStream=!0,this.client=m,this.bucketName=h,this.objectName=u,this.partSize=y,this.metaData=v,this.callback=_,this.partNumber=1,this.oldParts=null,this.etags=[],this.id=null,this.on("error",S=>{_(S)})}_transform(m,h,u){this.emptyStream=!1;let y={"Content-Length":m.length},v="";if(this.client.enableSHA256||(v=M.default.createHash("md5").update(m).digest(),y["Content-MD5"]=v.toString("base64")),this.partNumber==1&&m.length<this.partSize){let b={method:"PUT",headers:Object.assign({},this.metaData,y),query:"",bucketName:this.bucketName,objectName:this.objectName};return void this.client.makeRequest(b,m,[200],"",!0,(T,C)=>{if(T)return u(T);let R={etag:(0,d.sanitizeETag)(C.headers.etag),versionId:(0,d.getVersionId)(C.headers)};C.on("data",()=>{}),k.nextTick(()=>{this.callback(null,R)}),u()})}if(this.id===null)return this.once("ready",()=>{this._transform(m,h,u)}),void this.client.findUploadId(this.bucketName,this.objectName,(b,T)=>{if(b)return this.emit("error",b);T?(this.id=T,this.client.listParts(this.bucketName,this.objectName,T,(C,R)=>{if(C)return this.emit("error",C);R||(R=[]),this.oldParts=R.reduce(function(F,X){return F[X.part]||(F[X.part]=X),F},{}),this.emit("ready")})):this.client.initiateNewMultipartUpload(this.bucketName,this.objectName,this.metaData,(C,R)=>{if(C)return u(C);this.id=R,this.emit("ready")})});let _=this.partNumber++;if(this.oldParts){let b=this.oldParts[_];if(v||(v=M.default.createHash("md5").update(m).digest()),b&&v.toString("hex")===b.etag)return this.etags.push({part:_,etag:b.etag}),void u()}let S={method:"PUT",query:a.stringify({partNumber:_,uploadId:this.id}),headers:y,bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(S,m,[200],"",!0,(b,T)=>{if(b)return u(b);let C=T.headers.etag;C&&(C=C.replace(/^"/,"").replace(/"$/,"")),this.etags.push({part:_,etag:C}),T.on("data",()=>{}),u()})}_flush(m){if(this.emptyStream){let h={method:"PUT",headers:Object.assign({},this.metaData,{"Content-Length":0}),query:"",bucketName:this.bucketName,objectName:this.objectName};this.client.makeRequest(h,"",[200],"",!0,(u,y)=>{if(u)return m(u);let v={etag:(0,d.sanitizeETag)(y.headers.etag),versionId:(0,d.getVersionId)(y.headers)};y.on("data",()=>{}),k.nextTick(()=>{this.callback(null,v)}),m()})}else this.id!==null&&this.client.completeMultipartUpload(this.bucketName,this.objectName,this.id,this.etags,(h,u)=>{if(h)return m(h);k.nextTick(()=>{this.callback(null,u)}),m()})}}O.default=l},1670:(H,O,x)=>{Object.defineProperty(O,"__esModule",{value:!0}),O.getS3Endpoint=function(g){if(!(0,k.isString)(g))throw new TypeError(`Invalid region: ${g}`);var M=w[g];return M||"s3.amazonaws.com"};var k=x(1627);let w={"us-east-1":"s3.amazonaws.com","us-east-2":"s3-us-east-2.amazonaws.com","us-west-1":"s3-us-west-1.amazonaws.com","us-west-2":"s3-us-west-2.amazonaws.com","ca-central-1":"s3.ca-central-1.amazonaws.com","eu-west-1":"s3-eu-west-1.amazonaws.com","eu-west-2":"s3-eu-west-2.amazonaws.com","sa-east-1":"s3-sa-east-1.amazonaws.com","eu-central-1":"s3-eu-central-1.amazonaws.com","ap-south-1":"s3-ap-south-1.amazonaws.com","ap-southeast-1":"s3-ap-southeast-1.amazonaws.com","ap-southeast-2":"s3-ap-southeast-2.amazonaws.com","ap-northeast-1":"s3-ap-northeast-1.amazonaws.com","cn-north-1":"s3.cn-north-1.amazonaws.com.cn","ap-east-1":"s3.ap-east-1.amazonaws.com"}},5858:(H,O,x)=>{Object.defineProperty(O,"__esModule",{value:!0}),O.postPresignSignatureV4=function(v,_,S,b){if(!(0,g.isString)(v))throw new TypeError('region should be of type "string"');if(!(0,g.isObject)(_))throw new TypeError('date should be of type "object"');if(!(0,g.isString)(S))throw new TypeError('secretKey should be of type "string"');if(!(0,g.isString)(b))throw new TypeError('policyBase64 should be of type "string"');const T=h(_,v,S);return k.default.createHmac("sha256",T).update(b).digest("hex").toLowerCase()},O.presignSignatureV4=function(v,_,S,b,T,C,R){if(!(0,g.isObject)(v))throw new TypeError('request should be of type "object"');if(!(0,g.isString)(_))throw new TypeError('accessKey should be of type "string"');if(!(0,g.isString)(S))throw new TypeError('secretKey should be of type "string"');if(!(0,g.isString)(T))throw new TypeError('region should be of type "string"');if(!_)throw new M.AccessKeyRequiredError("accessKey is required for presigning");if(!S)throw new M.SecretKeyRequiredError("secretKey is required for presigning");if(!(0,g.isNumber)(R))throw new TypeError('expires should be of type "number"');if(R<1)throw new M.ExpiresParamError("expires param cannot be less than 1 seconds");if(R>604800)throw new M.ExpiresParamError("expires param cannot be greater than 7 days");const F=(0,g.makeDateLong)(C),X=m(v.headers),Z=p(_,T,C),ne=[];ne.push(`X-Amz-Algorithm=${c}`),ne.push(`X-Amz-Credential=${(0,g.uriEscape)(Z)}`),ne.push(`X-Amz-Date=${F}`),ne.push(`X-Amz-Expires=${R}`),ne.push(`X-Amz-SignedHeaders=${(0,g.uriEscape)(X.join(";").toLowerCase())}`),b&&ne.push(`X-Amz-Security-Token=${(0,g.uriEscape)(b)}`);const e=v.path.split("?")[0];let r=v.path.split("?")[1];r=r?r+"&"+ne.join("&"):ne.join("&");const i=e+"?"+r,n=u(l(v.method,i,v.headers,X,"UNSIGNED-PAYLOAD"),C,T),t=h(C,T,S),o=k.default.createHmac("sha256",t).update(n).digest("hex").toLowerCase();return v.protocol+"//"+v.headers.host+i+`&X-Amz-Signature=${o}`},O.signV4=y,O.signV4ByServiceName=function(v,_,S,b,T,C="s3"){return y(v,_,S,b,T,C)};var k=d(x(5835)),w=d(x(6486)),g=x(1627),M=function(v,_){if(v&&v.__esModule)return v;if(v===null||typeof v!="object"&&typeof v!="function")return{default:v};var S=a(_);if(S&&S.has(v))return S.get(v);var b={},T=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in v)if(C!=="default"&&Object.prototype.hasOwnProperty.call(v,C)){var R=T?Object.getOwnPropertyDescriptor(v,C):null;R&&(R.get||R.set)?Object.defineProperty(b,C,R):b[C]=v[C]}return b.default=v,S&&S.set(v,b),b}(x(1271));function a(v){if(typeof WeakMap!="function")return null;var _=new WeakMap,S=new WeakMap;return(a=function(b){return b?S:_})(v)}function d(v){return v&&v.__esModule?v:{default:v}}const c="AWS4-HMAC-SHA256";function l(v,_,S,b,T){if(!(0,g.isString)(v))throw new TypeError('method should be of type "string"');if(!(0,g.isString)(_))throw new TypeError('path should be of type "string"');if(!(0,g.isObject)(S))throw new TypeError('headers should be of type "object"');if(!(0,g.isArray)(b))throw new TypeError('signedHeaders should be of type "array"');if(!(0,g.isString)(T))throw new TypeError('hashedPayload should be of type "string"');const C=b.reduce((Z,ne)=>{const e=`${S[ne]}`.replace(/ +/g," ");return Z.push(`${ne.toLowerCase()}:${e}`),Z},[]),R=_.split("?")[0];let F=_.split("?")[1];F||(F=""),F&&(F=F.split("&").sort().map(Z=>Z.indexOf("=")===-1?Z+"=":Z).join("&"));const X=[];return X.push(v.toUpperCase()),X.push(R),X.push(F),X.push(C.join(`
87
- `)+`
88
- `),X.push(b.join(";").toLowerCase()),X.push(T),X.join(`
89
- `)}function p(v,_,S,b="s3"){if(!(0,g.isString)(v))throw new TypeError('accessKey should be of type "string"');if(!(0,g.isString)(_))throw new TypeError('region should be of type "string"');if(!(0,g.isObject)(S))throw new TypeError('requestDate should be of type "object"');return`${v}/${(0,g.getScope)(_,S,b)}`}function m(v){if(!(0,g.isObject)(v))throw new TypeError('request should be of type "object"');const _=["authorization","content-length","content-type","user-agent"];return w.default.map(v,(S,b)=>b).filter(S=>_.indexOf(S)===-1).sort()}function h(v,_,S,b="s3"){if(!(0,g.isObject)(v))throw new TypeError('date should be of type "object"');if(!(0,g.isString)(_))throw new TypeError('region should be of type "string"');if(!(0,g.isString)(S))throw new TypeError('secretKey should be of type "string"');const T=(0,g.makeDateShort)(v);let C=k.default.createHmac("sha256","AWS4"+S).update(T).digest(),R=k.default.createHmac("sha256",C).update(_).digest(),F=k.default.createHmac("sha256",R).update(b).digest();return k.default.createHmac("sha256",F).update("aws4_request").digest()}function u(v,_,S,b="s3"){if(!(0,g.isString)(v))throw new TypeError('canonicalRequest should be of type "string"');if(!(0,g.isObject)(_))throw new TypeError('requestDate should be of type "object"');if(!(0,g.isString)(S))throw new TypeError('region should be of type "string"');const T=k.default.createHash("sha256").update(v).digest("hex"),C=(0,g.getScope)(S,_,b),R=[];return R.push(c),R.push((0,g.makeDateLong)(_)),R.push(C),R.push(T),R.join(`
90
- `)}function y(v,_,S,b,T,C="s3"){if(!(0,g.isObject)(v))throw new TypeError('request should be of type "object"');if(!(0,g.isString)(_))throw new TypeError('accessKey should be of type "string"');if(!(0,g.isString)(S))throw new TypeError('secretKey should be of type "string"');if(!(0,g.isString)(b))throw new TypeError('region should be of type "string"');if(!_)throw new M.AccessKeyRequiredError("accessKey is required for signing");if(!S)throw new M.SecretKeyRequiredError("secretKey is required for signing");const R=v.headers["x-amz-content-sha256"],F=m(v.headers),X=C||"s3",Z=u(l(v.method,v.path,v.headers,F,R),T,b,X),ne=h(T,b,S,X),e=p(_,b,T,X),r=k.default.createHmac("sha256",ne).update(Z).digest("hex").toLowerCase();return`${c} Credential=${e}, SignedHeaders=${F.join(";").toLowerCase()}, Signature=${r}`}},6607:(H,O,x)=>{var k=x(8764).Buffer;Object.defineProperty(O,"__esModule",{value:!0}),O.bucketEncryptionTransformer=function(){return u(w.parseBucketEncryptionConfig)},O.bucketVersioningTransformer=function(){return u(w.parseBucketVersioningConfig)},O.getBucketNotificationTransformer=function(){return u(w.parseBucketNotification)},O.getBucketRegionTransformer=function(){return u(w.parseBucketRegion)},O.getCompleteMultipartTransformer=function(){return u(w.parseCompleteMultipart)},O.getConcater=u,O.getCopyObjectTransformer=function(){return u(w.parseCopyObject)},O.getErrorTransformer=function(y){var v,_,S=y.statusCode;S===301?(v="MovedPermanently",_="Moved Permanently"):S===307?(v="TemporaryRedirect",_="Are you using the correct endpoint URL?"):S===403?(v="AccessDenied",_="Valid and authorized credentials required"):S===404?(v="NotFound",_="Not Found"):S===405||S===501?(v="MethodNotAllowed",_="Method Not Allowed"):(v="UnknownError",_=`${S}`);var b={};return b.amzRequestid=y.headersSent?y.getHeader("x-amz-request-id"):null,b.amzId2=y.headersSent?y.getHeader("x-amz-id-2"):null,b.amzBucketRegion=y.headersSent?y.getHeader("x-amz-bucket-region"):null,u(T=>{let C,R=()=>{var F=new l.S3Error(_);return F.code=v,g.each(b,(X,Z)=>{F[Z]=X}),F};if(!T)return R();try{C=w.parseError(T,b)}catch(F){return R()}return C},!0)},O.getHashSummer=function(y){var v=a.default.createHash("md5"),_=a.default.createHash("sha256");return M.default.obj(function(S,b,T){y?_.update(S):v.update(S),T()},function(S){var b="",T="";y?T=_.digest("hex"):b=v.digest("base64");var C={md5sum:b,sha256sum:T};this.push(C),this.push(null),S()})},O.getInitiateMultipartTransformer=function(){return u(w.parseInitiateMultipart)},O.getListBucketTransformer=function(){return u(w.parseListBucket)},O.getListMultipartTransformer=function(){return u(w.parseListMultipart)},O.getListObjectsTransformer=function(){return u(w.parseListObjects)},O.getListObjectsV2Transformer=function(){return u(w.parseListObjectsV2)},O.getListObjectsV2WithMetadataTransformer=function(){return u(w.parseListObjectsV2WithMetadata)},O.getListPartsTransformer=function(){return u(w.parseListParts)},O.getNotificationTransformer=function(){return new d.default},O.getTagsTransformer=function(){return u(w.parseTagging)},O.lifecycleTransformer=function(){return u(w.parseLifecycleConfig)},O.objectLegalHoldTransformer=function(){return u(w.parseObjectLegalHoldConfig)},O.objectLockTransformer=function(){return u(w.parseObjectLockConfig)},O.objectRetentionTransformer=function(){return u(w.parseObjectRetentionConfig)},O.replicationConfigTransformer=function(){return u(w.parseReplicationConfig)},O.selectObjectContentTransformer=function(){return u()},O.uploadPartTransformer=function(){return u(w.uploadPartParser)};var w=h(x(2262)),g=h(x(6486)),M=p(x(4650)),a=p(x(5835)),d=p(x(6650)),c=x(1627),l=h(x(1271));function p(y){return y&&y.__esModule?y:{default:y}}function m(y){if(typeof WeakMap!="function")return null;var v=new WeakMap,_=new WeakMap;return(m=function(S){return S?_:v})(y)}function h(y,v){if(!v&&y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var _=m(v);if(_&&_.has(y))return _.get(y);var S={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var T in y)if(T!=="default"&&Object.prototype.hasOwnProperty.call(y,T)){var C=b?Object.getOwnPropertyDescriptor(y,T):null;C&&(C.get||C.set)?Object.defineProperty(S,T,C):S[T]=y[T]}return S.default=y,_&&_.set(y,S),S}function u(y,v){var _=!1,S=[];if(y&&!(0,c.isFunction)(y))throw new TypeError('parser should be of type "function"');return y&&(_=!0),(0,M.default)({objectMode:_},function(b,T,C){S.push(b),C()},function(b){if(v)return b(y(k.concat(S).toString())),void this.push(null);S.length&&(y?this.push(y(k.concat(S).toString())):this.push(k.concat(S))),b()})}},2262:(H,O,x)=>{var k=x(8764).Buffer,w=x(5108);Object.defineProperty(O,"__esModule",{value:!0}),O.parseBucketEncryptionConfig=function(h){return(0,d.parseXml)(h)},O.parseBucketNotification=function(h){var u={TopicConfiguration:[],QueueConfiguration:[],CloudFunctionConfiguration:[]},y=function(S){var b=[];return S&&(0,d.toArray)(S).forEach(T=>{b.push(T)}),b},v=function(S){var b=[];return S&&(S=(0,d.toArray)(S))[0].S3Key&&(S[0].S3Key=(0,d.toArray)(S[0].S3Key),S[0].S3Key[0].FilterRule&&(0,d.toArray)(S[0].S3Key[0].FilterRule).forEach(T=>{var C=(0,d.toArray)(T.Name)[0],R=(0,d.toArray)(T.Value)[0];b.push({Name:C,Value:R})})),b},_=(0,d.parseXml)(h);return(_=_.NotificationConfiguration).TopicConfiguration&&(0,d.toArray)(_.TopicConfiguration).forEach(S=>{var b=(0,d.toArray)(S.Id)[0],T=(0,d.toArray)(S.Topic)[0],C=y(S.Event),R=v(S.Filter);u.TopicConfiguration.push({Id:b,Topic:T,Event:C,Filter:R})}),_.QueueConfiguration&&(0,d.toArray)(_.QueueConfiguration).forEach(S=>{var b=(0,d.toArray)(S.Id)[0],T=(0,d.toArray)(S.Queue)[0],C=y(S.Event),R=v(S.Filter);u.QueueConfiguration.push({Id:b,Queue:T,Event:C,Filter:R})}),_.CloudFunctionConfiguration&&(0,d.toArray)(_.CloudFunctionConfiguration).forEach(S=>{var b=(0,d.toArray)(S.Id)[0],T=(0,d.toArray)(S.CloudFunction)[0],C=y(S.Event),R=v(S.Filter);u.CloudFunctionConfiguration.push({Id:b,CloudFunction:T,Event:C,Filter:R})}),u},O.parseBucketRegion=function(h){return(0,d.parseXml)(h).LocationConstraint},O.parseBucketVersioningConfig=function(h){return(0,d.parseXml)(h).VersioningConfiguration},O.parseCompleteMultipart=function(h){var u=(0,d.parseXml)(h).CompleteMultipartUploadResult;return u.Location?{location:(0,d.toArray)(u.Location)[0],bucket:(0,d.toArray)(u.Bucket)[0],key:u.Key,etag:u.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^&quot;/g,"").replace(/&quot;$/g,"").replace(/^&#34;/g,"").replace(/&#34;$/g,"")}:u.Code&&u.Message?{errCode:(0,d.toArray)(u.Code)[0],errMessage:(0,d.toArray)(u.Message)[0]}:void 0},O.parseCopyObject=function(h){var u={etag:"",lastModified:""},y=(0,d.parseXml)(h);if(!y.CopyObjectResult)throw new a.InvalidXMLError('Missing tag: "CopyObjectResult"');return(y=y.CopyObjectResult).ETag&&(u.etag=y.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^&quot;/g,"").replace(/&quot;$/g,"").replace(/^&#34;/g,"").replace(/&#34;$/g,"")),y.LastModified&&(u.lastModified=new Date(y.LastModified)),u},O.parseError=function(h,u){var y={},v=g.default.parse(h);v.Error&&(y=v.Error);var _=new a.S3Error;return M.default.each(y,(S,b)=>{_[b.toLowerCase()]=S}),M.default.each(u,(S,b)=>{_[b]=S}),_},O.parseInitiateMultipart=function(h){var u=(0,d.parseXml)(h);if(!u.InitiateMultipartUploadResult)throw new a.InvalidXMLError('Missing tag: "InitiateMultipartUploadResult"');if((u=u.InitiateMultipartUploadResult).UploadId)return u.UploadId;throw new a.InvalidXMLError('Missing tag: "UploadId"')},O.parseLifecycleConfig=function(h){return(0,d.parseXml)(h).LifecycleConfiguration},O.parseListBucket=function(h){var u=[],y=(0,d.parseXml)(h);if(!y.ListAllMyBucketsResult)throw new a.InvalidXMLError('Missing tag: "ListAllMyBucketsResult"');return(y=y.ListAllMyBucketsResult).Buckets&&y.Buckets.Bucket&&(0,d.toArray)(y.Buckets.Bucket).forEach(v=>{var _=v.Name,S=new Date(v.CreationDate);u.push({name:_,creationDate:S})}),u},O.parseListMultipart=function(h){var u={uploads:[],prefixes:[],isTruncated:!1},y=(0,d.parseXml)(h);if(!y.ListMultipartUploadsResult)throw new a.InvalidXMLError('Missing tag: "ListMultipartUploadsResult"');return(y=y.ListMultipartUploadsResult).IsTruncated&&(u.isTruncated=y.IsTruncated),y.NextKeyMarker&&(u.nextKeyMarker=y.NextKeyMarker),y.NextUploadIdMarker&&(u.nextUploadIdMarker=y.nextUploadIdMarker),y.CommonPrefixes&&(0,d.toArray)(y.CommonPrefixes).forEach(v=>{u.prefixes.push({prefix:(0,d.sanitizeObjectKey)((0,d.toArray)(v.Prefix)[0])})}),y.Upload&&(0,d.toArray)(y.Upload).forEach(v=>{var _=v.Key,S=v.UploadId,b={id:v.Initiator.ID,displayName:v.Initiator.DisplayName},T={id:v.Owner.ID,displayName:v.Owner.DisplayName},C=v.StorageClass,R=new Date(v.Initiated);u.uploads.push({key:_,uploadId:S,initiator:b,owner:T,storageClass:C,initiated:R})}),u},O.parseListObjects=function(h){var u={objects:[],isTruncated:!1};let y,v,_=!1;const S=(0,d.parseXml)(h),b=R=>{R&&(0,d.toArray)(R).forEach(F=>{u.objects.push({prefix:(0,d.sanitizeObjectKey)((0,d.toArray)(F.Prefix)[0]),size:0})})},T=S.ListBucketResult,C=S.ListVersionsResult;return T&&(T.IsTruncated&&(_=T.IsTruncated),T.Contents&&(0,d.toArray)(T.Contents).forEach(R=>{const F=(0,d.sanitizeObjectKey)((0,d.toArray)(R.Key)[0]),X=new Date((0,d.toArray)(R.LastModified)[0]),Z=(0,d.sanitizeETag)((0,d.toArray)(R.ETag)[0]),ne=R.Size;u.objects.push({name:F,lastModified:X,etag:Z,size:ne})}),T.NextMarker&&(y=T.NextMarker),b(T.CommonPrefixes)),C&&(C.IsTruncated&&(_=C.IsTruncated),C.Version&&(0,d.toArray)(C.Version).forEach(R=>{u.objects.push(m(R))}),C.DeleteMarker&&(0,d.toArray)(C.DeleteMarker).forEach(R=>{u.objects.push(m(R,{IsDeleteMarker:!0}))}),C.NextKeyMarker&&(v=C.NextKeyMarker),C.NextVersionIdMarker&&(u.versionIdMarker=C.NextVersionIdMarker),b(C.CommonPrefixes)),u.isTruncated=_,_&&(u.nextMarker=v||y),u},O.parseListObjectsV2=function(h){var u={objects:[],isTruncated:!1},y=(0,d.parseXml)(h);if(!y.ListBucketResult)throw new a.InvalidXMLError('Missing tag: "ListBucketResult"');return(y=y.ListBucketResult).IsTruncated&&(u.isTruncated=y.IsTruncated),y.NextContinuationToken&&(u.nextContinuationToken=y.NextContinuationToken),y.Contents&&(0,d.toArray)(y.Contents).forEach(v=>{var _=(0,d.sanitizeObjectKey)((0,d.toArray)(v.Key)[0]),S=new Date(v.LastModified),b=(0,d.sanitizeETag)(v.ETag),T=v.Size;u.objects.push({name:_,lastModified:S,etag:b,size:T})}),y.CommonPrefixes&&(0,d.toArray)(y.CommonPrefixes).forEach(v=>{u.objects.push({prefix:(0,d.sanitizeObjectKey)((0,d.toArray)(v.Prefix)[0]),size:0})}),u},O.parseListObjectsV2WithMetadata=function(h){var u={objects:[],isTruncated:!1},y=(0,d.parseXml)(h);if(!y.ListBucketResult)throw new a.InvalidXMLError('Missing tag: "ListBucketResult"');return(y=y.ListBucketResult).IsTruncated&&(u.isTruncated=y.IsTruncated),y.NextContinuationToken&&(u.nextContinuationToken=y.NextContinuationToken),y.Contents&&(0,d.toArray)(y.Contents).forEach(v=>{var _,S=(0,d.sanitizeObjectKey)(v.Key),b=new Date(v.LastModified),T=(0,d.sanitizeETag)(v.ETag),C=v.Size;_=v.UserMetadata!=null?(0,d.toArray)(v.UserMetadata)[0]:null,u.objects.push({name:S,lastModified:b,etag:T,size:C,metadata:_})}),y.CommonPrefixes&&(0,d.toArray)(y.CommonPrefixes).forEach(v=>{u.objects.push({prefix:(0,d.sanitizeObjectKey)((0,d.toArray)(v.Prefix)[0]),size:0})}),u},O.parseListParts=function(h){var u=(0,d.parseXml)(h),y={isTruncated:!1,parts:[],marker:void 0};if(!u.ListPartsResult)throw new a.InvalidXMLError('Missing tag: "ListPartsResult"');return(u=u.ListPartsResult).IsTruncated&&(y.isTruncated=u.IsTruncated),u.NextPartNumberMarker&&(y.marker=+(0,d.toArray)(u.NextPartNumberMarker)[0]),u.Part&&(0,d.toArray)(u.Part).forEach(v=>{var _=+(0,d.toArray)(v.PartNumber)[0],S=new Date(v.LastModified),b=v.ETag.replace(/^"/g,"").replace(/"$/g,"").replace(/^&quot;/g,"").replace(/&quot;$/g,"").replace(/^&#34;/g,"").replace(/&#34;$/g,"");y.parts.push({part:_,lastModified:S,etag:b})}),y},O.parseObjectLegalHoldConfig=function(h){return(0,d.parseXml)(h).LegalHold},O.parseObjectLockConfig=function(h){const u=(0,d.parseXml)(h);let y={};if(u.ObjectLockConfiguration){let v;if(y={objectLockEnabled:u.ObjectLockConfiguration.ObjectLockEnabled},u.ObjectLockConfiguration&&u.ObjectLockConfiguration.Rule&&u.ObjectLockConfiguration.Rule.DefaultRetention&&(v=u.ObjectLockConfiguration.Rule.DefaultRetention||{},y.mode=v.Mode),v){const _=v.Years;_?(y.validity=_,y.unit=d.RETENTION_VALIDITY_UNITS.YEARS):(y.validity=v.Days,y.unit=d.RETENTION_VALIDITY_UNITS.DAYS)}return y}},O.parseObjectRetentionConfig=function(h){const u=(0,d.parseXml)(h).Retention;return{mode:u.Mode,retainUntilDate:u.RetainUntilDate}},O.parseReplicationConfig=function(h){const u=(0,d.parseXml)(h);return{ReplicationConfiguration:{role:u.ReplicationConfiguration.Role,rules:(0,d.toArray)(u.ReplicationConfiguration.Rule)}}},O.parseSelectObjectContentResponse=function(h){function u(S){const b=k.from(S.read(1)).readUInt8(),T=(k.from(S.read(b)).toString()||"").split(":");return T.length>=1?T[1]:""}function y(S){const b=k.from(S.read(2)).readUInt16BE();return k.from(S.read(b)).toString()}const v=new d.SelectResults({}),_=(0,d.readableStream)(h);for(;_._readableState.length;){let S;const b=k.from(_.read(4));S=p(b);const T=k.from(_.read(4));S=p(T,S);const C=S.readInt32BE(),R=k.from(_.read(4));S=p(R,S);const F=b.readInt32BE(),X=T.readInt32BE(),Z=R.readInt32BE();if(Z!==C)throw new Error(`Header Checksum Mismatch, Prelude CRC of ${Z} does not equal expected CRC of ${C}`);const ne={};if(X>0){const n=k.from(_.read(X));S=p(n,S);const t=(0,d.readableStream)(n);for(;t._readableState.length;){let o=u(t);t.read(1),ne[o]=y(t)}}let e;const r=F-X-16;if(r>0){const n=k.from(_.read(r));S=p(n,S);const t=k.from(_.read(4)).readInt32BE(),o=S.readInt32BE();if(t!==o)throw new Error(`Message Checksum Mismatch, Message CRC of ${t} does not equal expected CRC of ${o}`);e=(0,d.readableStream)(n)}const i=ne["message-type"];switch(i){case"error":{const n=ne["error-code"]+':"'+ne["error-message"]+'"';throw new Error(n)}case"event":{const n=ne["content-type"];switch(ne["event-type"]){case"End":return v.setResponse(h),v;case"Records":{const t=e.read(r);v.setRecords(t);break}case"Progress":switch(n){case"text/xml":{const t=e.read(r);v.setProgress(t.toString());break}default:throw new Error(`Unexpected content-type ${n} sent for event-type Progress`)}break;case"Stats":switch(n){case"text/xml":{const t=e.read(r);v.setStats(t.toString());break}default:throw new Error(`Unexpected content-type ${n} sent for event-type Stats`)}break;default:{const t=`Un implemented event detected ${i}.`;w.warn(t)}}}}}},O.parseTagging=function(h){const u=(0,d.parseXml)(h);let y=[];if(u.Tagging&&u.Tagging.TagSet&&u.Tagging.TagSet.Tag){const v=u.Tagging.TagSet.Tag;(0,d.isObject)(v)?y.push(v):y=v}return y},O.uploadPartParser=function(h){return(0,d.parseXml)(h).CopyPartResult};var g=l(x(6965)),M=l(x(6486)),a=function(h,u){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var y=c(u);if(y&&y.has(h))return y.get(h);var v={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in h)if(S!=="default"&&Object.prototype.hasOwnProperty.call(h,S)){var b=_?Object.getOwnPropertyDescriptor(h,S):null;b&&(b.get||b.set)?Object.defineProperty(v,S,b):v[S]=h[S]}return v.default=h,y&&y.set(h,v),v}(x(1271)),d=x(1627);function c(h){if(typeof WeakMap!="function")return null;var u=new WeakMap,y=new WeakMap;return(c=function(v){return v?y:u})(h)}function l(h){return h&&h.__esModule?h:{default:h}}var p=x(2779);const m=(h,u={})=>{let{Key:y,LastModified:v,ETag:_,Size:S,VersionId:b,IsLatest:T}=h;return(0,d.isObject)(u)||(u={}),{name:(0,d.sanitizeObjectKey)((0,d.toArray)(y)[0]),lastModified:new Date((0,d.toArray)(v)[0]),etag:(0,d.sanitizeETag)((0,d.toArray)(_)[0]),size:S,versionId:b,isLatest:T,isDeleteMarker:!!u.IsDeleteMarker&&u.IsDeleteMarker}}},1890:(H,O,x)=>{var k=x(6470),w=x(3731),g=parseInt("0777",8);function M(a,d,c,l){typeof d=="function"?(c=d,d={}):d&&typeof d=="object"||(d={mode:d});var p=d.mode,m=d.fs||w;p===void 0&&(p=g),l||(l=null);var h=c||function(){};a=k.resolve(a),m.mkdir(a,p,function(u){if(!u)return h(null,l=l||a);if(u.code==="ENOENT"){if(k.dirname(a)===a)return h(u);M(k.dirname(a),d,function(y,v){y?h(y,v):M(a,d,h,v)})}else m.stat(a,function(y,v){y||!v.isDirectory()?h(u,l):h(null,l)})})}H.exports=M.mkdirp=M.mkdirP=M,M.sync=function a(d,c,l){c&&typeof c=="object"||(c={mode:c});var p=c.mode,m=c.fs||w;p===void 0&&(p=g),l||(l=null),d=k.resolve(d);try{m.mkdirSync(d,p),l=l||d}catch(u){if(u.code==="ENOENT")l=a(k.dirname(d),c,l),a(d,c,l);else{var h;try{h=m.statSync(d)}catch(y){throw u}if(!h.isDirectory())throw u}}return l}},4244:H=>{var O=function(x){return x!=x};H.exports=function(x,k){return x===0&&k===0?1/x==1/k:x===k||!(!O(x)||!O(k))}},609:(H,O,x)=>{var k=x(4289),w=x(5559),g=x(4244),M=x(5624),a=x(2281),d=w(M(),Object);k(d,{getPolyfill:M,implementation:g,shim:a}),H.exports=d},5624:(H,O,x)=>{var k=x(4244);H.exports=function(){return typeof Object.is=="function"?Object.is:k}},2281:(H,O,x)=>{var k=x(5624),w=x(4289);H.exports=function(){var g=k();return w(Object,{is:g},{is:function(){return Object.is!==g}}),g}},8987:(H,O,x)=>{var k;if(!Object.keys){var w=Object.prototype.hasOwnProperty,g=Object.prototype.toString,M=x(1414),a=Object.prototype.propertyIsEnumerable,d=!a.call({toString:null},"toString"),c=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(u){var y=u.constructor;return y&&y.prototype===u},m={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window=="undefined")return!1;for(var u in window)try{if(!m["$"+u]&&w.call(window,u)&&window[u]!==null&&typeof window[u]=="object")try{p(window[u])}catch(y){return!0}}catch(y){return!0}return!1}();k=function(u){var y=u!==null&&typeof u=="object",v=g.call(u)==="[object Function]",_=M(u),S=y&&g.call(u)==="[object String]",b=[];if(!y&&!v&&!_)throw new TypeError("Object.keys called on a non-object");var T=c&&v;if(S&&u.length>0&&!w.call(u,0))for(var C=0;C<u.length;++C)b.push(String(C));if(_&&u.length>0)for(var R=0;R<u.length;++R)b.push(String(R));else for(var F in u)T&&F==="prototype"||!w.call(u,F)||b.push(String(F));if(d)for(var X=function(ne){if(typeof window=="undefined"||!h)return p(ne);try{return p(ne)}catch(e){return!1}}(u),Z=0;Z<l.length;++Z)X&&l[Z]==="constructor"||!w.call(u,l[Z])||b.push(l[Z]);return b}}H.exports=k},2215:(H,O,x)=>{var k=Array.prototype.slice,w=x(1414),g=Object.keys,M=g?function(d){return g(d)}:x(8987),a=Object.keys;M.shim=function(){if(Object.keys){var d=function(){var c=Object.keys(arguments);return c&&c.length===arguments.length}(1,2);d||(Object.keys=function(c){return w(c)?a(k.call(c)):a(c)})}else Object.keys=M;return Object.keys||M},H.exports=M},1414:H=>{var O=Object.prototype.toString;H.exports=function(x){var k=O.call(x),w=k==="[object Arguments]";return w||(w=k!=="[object Array]"&&x!==null&&typeof x=="object"&&typeof x.length=="number"&&x.length>=0&&O.call(x.callee)==="[object Function]"),w}},2818:(H,O,x)=>{var k=x(9809);O.certificate=x(1934);var w=k.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())});O.RSAPrivateKey=w;var g=k.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});O.RSAPublicKey=g;var M=k.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});O.PublicKey=M;var a=k.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())}),d=k.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});O.PrivateKey=d;var c=k.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())});O.EncryptedPrivateKey=c;var l=k.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())});O.DSAPrivateKey=l,O.DSAparam=k.define("DSAparam",function(){this.int()});var p=k.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(m),this.key("publicKey").optional().explicit(1).bitstr())});O.ECPrivateKey=p;var m=k.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});O.signature=k.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},1934:(H,O,x)=>{var k=x(9809),w=k.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),g=k.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),M=k.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=k.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(M),this.key("subjectPublicKey").bitstr())}),d=k.define("RelativeDistinguishedName",function(){this.setof(g)}),c=k.define("RDNSequence",function(){this.seqof(d)}),l=k.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),p=k.define("Validity",function(){this.seq().obj(this.key("notBefore").use(w),this.key("notAfter").use(w))}),m=k.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),h=k.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(M),this.key("issuer").use(l),this.key("validity").use(p),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(m).optional())}),u=k.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(M),this.key("signatureValue").bitstr())});H.exports=u},7631:(H,O,x)=>{var k=/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,w=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,g=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,M=x(3048),a=x(4696),d=x(9509).Buffer;H.exports=function(c,l){var p,m=c.toString(),h=m.match(k);if(h){var u="aes"+h[1],y=d.from(h[2],"hex"),v=d.from(h[3].replace(/[\r\n]/g,""),"base64"),_=M(l,y.slice(0,8),parseInt(h[1],10)).key,S=[],b=a.createDecipheriv(u,_,y);S.push(b.update(v)),S.push(b.final()),p=d.concat(S)}else{var T=m.match(g);p=d.from(T[2].replace(/[\r\n]/g,""),"base64")}return{tag:m.match(w)[1],data:p}}},980:(H,O,x)=>{var k=x(2818),w=x(2562),g=x(7631),M=x(4696),a=x(5632),d=x(9509).Buffer;function c(l){var p;typeof l!="object"||d.isBuffer(l)||(p=l.passphrase,l=l.key),typeof l=="string"&&(l=d.from(l));var m,h,u=g(l,p),y=u.tag,v=u.data;switch(y){case"CERTIFICATE":h=k.certificate.decode(v,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(h||(h=k.PublicKey.decode(v,"der")),m=h.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return k.RSAPublicKey.decode(h.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return h.subjectPrivateKey=h.subjectPublicKey,{type:"ec",data:h};case"1.2.840.10040.4.1":return h.algorithm.params.pub_key=k.DSAparam.decode(h.subjectPublicKey.data,"der"),{type:"dsa",data:h.algorithm.params};default:throw new Error("unknown key id "+m)}case"ENCRYPTED PRIVATE KEY":v=function(_,S){var b=_.algorithm.decrypt.kde.kdeparams.salt,T=parseInt(_.algorithm.decrypt.kde.kdeparams.iters.toString(),10),C=w[_.algorithm.decrypt.cipher.algo.join(".")],R=_.algorithm.decrypt.cipher.iv,F=_.subjectPrivateKey,X=parseInt(C.split("-")[1],10)/8,Z=a.pbkdf2Sync(S,b,T,X,"sha1"),ne=M.createDecipheriv(C,Z,R),e=[];return e.push(ne.update(F)),e.push(ne.final()),d.concat(e)}(v=k.EncryptedPrivateKey.decode(v,"der"),p);case"PRIVATE KEY":switch(m=(h=k.PrivateKey.decode(v,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return k.RSAPrivateKey.decode(h.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:h.algorithm.curve,privateKey:k.ECPrivateKey.decode(h.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return h.algorithm.params.priv_key=k.DSAparam.decode(h.subjectPrivateKey,"der"),{type:"dsa",params:h.algorithm.params};default:throw new Error("unknown key id "+m)}case"RSA PUBLIC KEY":return k.RSAPublicKey.decode(v,"der");case"RSA PRIVATE KEY":return k.RSAPrivateKey.decode(v,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:k.DSAPrivateKey.decode(v,"der")};case"EC PRIVATE KEY":return{curve:(v=k.ECPrivateKey.decode(v,"der")).parameters.value,privateKey:v.privateKey};default:throw new Error("unknown key type "+y)}}H.exports=c,c.signature=k.signature},6470:(H,O,x)=>{var k=x(4155);function w(a){if(typeof a!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(a))}function g(a,d){for(var c,l="",p=0,m=-1,h=0,u=0;u<=a.length;++u){if(u<a.length)c=a.charCodeAt(u);else{if(c===47)break;c=47}if(c===47){if(!(m===u-1||h===1))if(m!==u-1&&h===2){if(l.length<2||p!==2||l.charCodeAt(l.length-1)!==46||l.charCodeAt(l.length-2)!==46){if(l.length>2){var y=l.lastIndexOf("/");if(y!==l.length-1){y===-1?(l="",p=0):p=(l=l.slice(0,y)).length-1-l.lastIndexOf("/"),m=u,h=0;continue}}else if(l.length===2||l.length===1){l="",p=0,m=u,h=0;continue}}d&&(l.length>0?l+="/..":l="..",p=2)}else l.length>0?l+="/"+a.slice(m+1,u):l=a.slice(m+1,u),p=u-m-1;m=u,h=0}else c===46&&h!==-1?++h:h=-1}return l}var M={resolve:function(){for(var a,d="",c=!1,l=arguments.length-1;l>=-1&&!c;l--){var p;l>=0?p=arguments[l]:(a===void 0&&(a=k.cwd()),p=a),w(p),p.length!==0&&(d=p+"/"+d,c=p.charCodeAt(0)===47)}return d=g(d,!c),c?d.length>0?"/"+d:"/":d.length>0?d:"."},normalize:function(a){if(w(a),a.length===0)return".";var d=a.charCodeAt(0)===47,c=a.charCodeAt(a.length-1)===47;return(a=g(a,!d)).length!==0||d||(a="."),a.length>0&&c&&(a+="/"),d?"/"+a:a},isAbsolute:function(a){return w(a),a.length>0&&a.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var a,d=0;d<arguments.length;++d){var c=arguments[d];w(c),c.length>0&&(a===void 0?a=c:a+="/"+c)}return a===void 0?".":M.normalize(a)},relative:function(a,d){if(w(a),w(d),a===d||(a=M.resolve(a))===(d=M.resolve(d)))return"";for(var c=1;c<a.length&&a.charCodeAt(c)===47;++c);for(var l=a.length,p=l-c,m=1;m<d.length&&d.charCodeAt(m)===47;++m);for(var h=d.length-m,u=p<h?p:h,y=-1,v=0;v<=u;++v){if(v===u){if(h>u){if(d.charCodeAt(m+v)===47)return d.slice(m+v+1);if(v===0)return d.slice(m+v)}else p>u&&(a.charCodeAt(c+v)===47?y=v:v===0&&(y=0));break}var _=a.charCodeAt(c+v);if(_!==d.charCodeAt(m+v))break;_===47&&(y=v)}var S="";for(v=c+y+1;v<=l;++v)v!==l&&a.charCodeAt(v)!==47||(S.length===0?S+="..":S+="/..");return S.length>0?S+d.slice(m+y):(m+=y,d.charCodeAt(m)===47&&++m,d.slice(m))},_makeLong:function(a){return a},dirname:function(a){if(w(a),a.length===0)return".";for(var d=a.charCodeAt(0),c=d===47,l=-1,p=!0,m=a.length-1;m>=1;--m)if((d=a.charCodeAt(m))===47){if(!p){l=m;break}}else p=!1;return l===-1?c?"/":".":c&&l===1?"//":a.slice(0,l)},basename:function(a,d){if(d!==void 0&&typeof d!="string")throw new TypeError('"ext" argument must be a string');w(a);var c,l=0,p=-1,m=!0;if(d!==void 0&&d.length>0&&d.length<=a.length){if(d.length===a.length&&d===a)return"";var h=d.length-1,u=-1;for(c=a.length-1;c>=0;--c){var y=a.charCodeAt(c);if(y===47){if(!m){l=c+1;break}}else u===-1&&(m=!1,u=c+1),h>=0&&(y===d.charCodeAt(h)?--h==-1&&(p=c):(h=-1,p=u))}return l===p?p=u:p===-1&&(p=a.length),a.slice(l,p)}for(c=a.length-1;c>=0;--c)if(a.charCodeAt(c)===47){if(!m){l=c+1;break}}else p===-1&&(m=!1,p=c+1);return p===-1?"":a.slice(l,p)},extname:function(a){w(a);for(var d=-1,c=0,l=-1,p=!0,m=0,h=a.length-1;h>=0;--h){var u=a.charCodeAt(h);if(u!==47)l===-1&&(p=!1,l=h+1),u===46?d===-1?d=h:m!==1&&(m=1):d!==-1&&(m=-1);else if(!p){c=h+1;break}}return d===-1||l===-1||m===0||m===1&&d===l-1&&d===c+1?"":a.slice(d,l)},format:function(a){if(a===null||typeof a!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof a);return function(d,c){var l=c.dir||c.root,p=c.base||(c.name||"")+(c.ext||"");return l?l===c.root?l+p:l+"/"+p:p}(0,a)},parse:function(a){w(a);var d={root:"",dir:"",base:"",ext:"",name:""};if(a.length===0)return d;var c,l=a.charCodeAt(0),p=l===47;p?(d.root="/",c=1):c=0;for(var m=-1,h=0,u=-1,y=!0,v=a.length-1,_=0;v>=c;--v)if((l=a.charCodeAt(v))!==47)u===-1&&(y=!1,u=v+1),l===46?m===-1?m=v:_!==1&&(_=1):m!==-1&&(_=-1);else if(!y){h=v+1;break}return m===-1||u===-1||_===0||_===1&&m===u-1&&m===h+1?u!==-1&&(d.base=d.name=h===0&&p?a.slice(1,u):a.slice(h,u)):(h===0&&p?(d.name=a.slice(1,m),d.base=a.slice(1,u)):(d.name=a.slice(h,m),d.base=a.slice(h,u)),d.ext=a.slice(m,u)),h>0?d.dir=a.slice(0,h-1):p&&(d.dir="/"),d},sep:"/",delimiter:":",win32:null,posix:null};M.posix=M,H.exports=M},5632:(H,O,x)=>{O.pbkdf2=x(8638),O.pbkdf2Sync=x(1257)},8638:(H,O,x)=>{var k,w,g=x(9509).Buffer,M=x(7357),a=x(2368),d=x(1257),c=x(7777),l=x.g.crypto&&x.g.crypto.subtle,p={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},m=[];function h(){return w||(w=x.g.process&&x.g.process.nextTick?x.g.process.nextTick:x.g.queueMicrotask?x.g.queueMicrotask:x.g.setImmediate?x.g.setImmediate:x.g.setTimeout)}function u(y,v,_,S,b){return l.importKey("raw",y,{name:"PBKDF2"},!1,["deriveBits"]).then(function(T){return l.deriveBits({name:"PBKDF2",salt:v,iterations:_,hash:{name:b}},T,S<<3)}).then(function(T){return g.from(T)})}H.exports=function(y,v,_,S,b,T){typeof b=="function"&&(T=b,b=void 0);var C=p[(b=b||"sha1").toLowerCase()];if(C&&typeof x.g.Promise=="function"){if(M(_,S),y=c(y,a,"Password"),v=c(v,a,"Salt"),typeof T!="function")throw new Error("No callback provided to pbkdf2");(function(R,F){R.then(function(X){h()(function(){F(null,X)})},function(X){h()(function(){F(X)})})})(function(R){if(x.g.process&&!x.g.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(m[R]!==void 0)return m[R];var F=u(k=k||g.alloc(8),k,10,128,R).then(function(){return!0}).catch(function(){return!1});return m[R]=F,F}(C).then(function(R){return R?u(y,v,_,S,C):d(y,v,_,S,b)}),T)}else h()(function(){var R;try{R=d(y,v,_,S,b)}catch(F){return T(F)}T(null,R)})}},2368:(H,O,x)=>{var k,w=x(4155);k=x.g.process&&x.g.process.browser?"utf-8":x.g.process&&x.g.process.version?parseInt(w.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",H.exports=k},7357:H=>{var O=Math.pow(2,30)-1;H.exports=function(x,k){if(typeof x!="number")throw new TypeError("Iterations not a number");if(x<0)throw new TypeError("Bad iterations");if(typeof k!="number")throw new TypeError("Key length not a number");if(k<0||k>O||k!=k)throw new TypeError("Bad key length")}},1257:(H,O,x)=>{var k=x(8028),w=x(9785),g=x(9072),M=x(9509).Buffer,a=x(7357),d=x(2368),c=x(7777),l=M.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function m(h,u,y){var v=function(R){return R==="rmd160"||R==="ripemd160"?function(F){return new w().update(F).digest()}:R==="md5"?k:function(F){return g(R).update(F).digest()}}(h),_=h==="sha512"||h==="sha384"?128:64;u.length>_?u=v(u):u.length<_&&(u=M.concat([u,l],_));for(var S=M.allocUnsafe(_+p[h]),b=M.allocUnsafe(_+p[h]),T=0;T<_;T++)S[T]=54^u[T],b[T]=92^u[T];var C=M.allocUnsafe(_+y+4);S.copy(C,0,0,_),this.ipad1=C,this.ipad2=S,this.opad=b,this.alg=h,this.blocksize=_,this.hash=v,this.size=p[h]}m.prototype.run=function(h,u){return h.copy(u,this.blocksize),this.hash(u).copy(this.opad,this.blocksize),this.hash(this.opad)},H.exports=function(h,u,y,v,_){a(y,v);var S=new m(_=_||"sha1",h=c(h,d,"Password"),(u=c(u,d,"Salt")).length),b=M.allocUnsafe(v),T=M.allocUnsafe(u.length+4);u.copy(T,0,0,u.length);for(var C=0,R=p[_],F=Math.ceil(v/R),X=1;X<=F;X++){T.writeUInt32BE(X,u.length);for(var Z=S.run(T,S.ipad1),ne=Z,e=1;e<y;e++){ne=S.run(ne,S.ipad2);for(var r=0;r<R;r++)Z[r]^=ne[r]}Z.copy(b,C),C+=R}return b}},7777:(H,O,x)=>{var k=x(9509).Buffer;H.exports=function(w,g,M){if(k.isBuffer(w))return w;if(typeof w=="string")return k.from(w,g);if(ArrayBuffer.isView(w))return k.from(w.buffer);throw new TypeError(M+" must be a string, a Buffer, a typed array or a DataView")}},4155:H=>{var O,x,k=H.exports={};function w(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function M(y){if(O===setTimeout)return setTimeout(y,0);if((O===w||!O)&&setTimeout)return O=setTimeout,setTimeout(y,0);try{return O(y,0)}catch(v){try{return O.call(null,y,0)}catch(_){return O.call(this,y,0)}}}(function(){try{O=typeof setTimeout=="function"?setTimeout:w}catch(y){O=w}try{x=typeof clearTimeout=="function"?clearTimeout:g}catch(y){x=g}})();var a,d=[],c=!1,l=-1;function p(){c&&a&&(c=!1,a.length?d=a.concat(d):l=-1,d.length&&m())}function m(){if(!c){var y=M(p);c=!0;for(var v=d.length;v;){for(a=d,d=[];++l<v;)a&&a[l].run();l=-1,v=d.length}a=null,c=!1,function(_){if(x===clearTimeout)return clearTimeout(_);if((x===g||!x)&&clearTimeout)return x=clearTimeout,clearTimeout(_);try{x(_)}catch(S){try{return x.call(null,_)}catch(b){return x.call(this,_)}}}(y)}}function h(y,v){this.fun=y,this.array=v}function u(){}k.nextTick=function(y){var v=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)v[_-1]=arguments[_];d.push(new h(y,v)),d.length!==1||c||M(m)},h.prototype.run=function(){this.fun.apply(null,this.array)},k.title="browser",k.browser=!0,k.env={},k.argv=[],k.version="",k.versions={},k.on=u,k.addListener=u,k.once=u,k.off=u,k.removeListener=u,k.removeAllListeners=u,k.emit=u,k.prependListener=u,k.prependOnceListener=u,k.listeners=function(y){return[]},k.binding=function(y){throw new Error("process.binding is not supported")},k.cwd=function(){return"/"},k.chdir=function(y){throw new Error("process.chdir is not supported")},k.umask=function(){return 0}},7900:(H,O,x)=>{O.publicEncrypt=x(6559),O.privateDecrypt=x(6138),O.privateEncrypt=function(k,w){return O.publicEncrypt(k,w,!0)},O.publicDecrypt=function(k,w){return O.privateDecrypt(k,w,!0)}},9199:(H,O,x)=>{var k=x(3482),w=x(9509).Buffer;function g(M){var a=w.allocUnsafe(4);return a.writeUInt32BE(M,0),a}H.exports=function(M,a){for(var d,c=w.alloc(0),l=0;c.length<a;)d=g(l++),c=w.concat([c,k("sha1").update(M).update(d).digest()]);return c.slice(0,a)}},2144:function(H,O,x){(function(k,w){function g(e,r){if(!e)throw new Error(r||"Assertion failed")}function M(e,r){e.super_=r;var i=function(){};i.prototype=r.prototype,e.prototype=new i,e.prototype.constructor=e}function a(e,r,i){if(a.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,e!==null&&(r!=="le"&&r!=="be"||(i=r,r=10),this._init(e||0,r||10,i||"be"))}var d;typeof k=="object"?k.exports=a:w.BN=a,a.BN=a,a.wordSize=26;try{d=typeof window!="undefined"&&window.Buffer!==void 0?window.Buffer:x(7108).Buffer}catch(e){}function c(e,r){var i=e.charCodeAt(r);return i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:i-48&15}function l(e,r,i){var n=c(e,i);return i-1>=r&&(n|=c(e,i-1)<<4),n}function p(e,r,i,n){for(var t=0,o=Math.min(e.length,i),s=r;s<o;s++){var I=e.charCodeAt(s)-48;t*=n,t+=I>=49?I-49+10:I>=17?I-17+10:I}return t}a.isBN=function(e){return e instanceof a||e!==null&&typeof e=="object"&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,r){return e.cmp(r)>0?e:r},a.min=function(e,r){return e.cmp(r)<0?e:r},a.prototype._init=function(e,r,i){if(typeof e=="number")return this._initNumber(e,r,i);if(typeof e=="object")return this._initArray(e,r,i);r==="hex"&&(r=16),g(r===(0|r)&&r>=2&&r<=36);var n=0;(e=e.toString().replace(/\s+/g,""))[0]==="-"&&(n++,this.negative=1),n<e.length&&(r===16?this._parseHex(e,n,i):(this._parseBase(e,r,n),i==="le"&&this._initArray(this.toArray(),r,i)))},a.prototype._initNumber=function(e,r,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(g(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),i==="le"&&this._initArray(this.toArray(),r,i)},a.prototype._initArray=function(e,r,i){if(g(typeof e.length=="number"),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o,s=0;if(i==="be")for(n=e.length-1,t=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);else if(i==="le")for(n=0,t=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[t]|=o<<s&67108863,this.words[t+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,t++);return this.strip()},a.prototype._parseHex=function(e,r,i){this.length=Math.ceil((e.length-r)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var t,o=0,s=0;if(i==="be")for(n=e.length-1;n>=r;n-=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;else for(n=(e.length-r)%2==0?r+1:r;n<e.length;n+=2)t=l(e,r,n)<<o,this.words[s]|=67108863&t,o>=18?(o-=18,s+=1,this.words[s]|=t>>>26):o+=8;this.strip()},a.prototype._parseBase=function(e,r,i){this.words=[0],this.length=1;for(var n=0,t=1;t<=67108863;t*=r)n++;n--,t=t/r|0;for(var o=e.length-i,s=o%n,I=Math.min(o,o-s)+i,P=0,j=i;j<I;j+=n)P=p(e,j,j+n,r),this.imuln(t),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P);if(s!==0){var A=1;for(P=p(e,j,e.length,r),j=0;j<s;j++)A*=r;this.imuln(A),this.words[0]+P<67108864?this.words[0]+=P:this._iaddn(P)}this.strip()},a.prototype.copy=function(e){e.words=new Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},a.prototype.clone=function(){var e=new a(null);return this.copy(e),e},a.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[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 y(e,r,i){i.negative=r.negative^e.negative;var n=e.length+r.length|0;i.length=n,n=n-1|0;var t=0|e.words[0],o=0|r.words[0],s=t*o,I=67108863&s,P=s/67108864|0;i.words[0]=I;for(var j=1;j<n;j++){for(var A=P>>>26,N=67108863&P,L=Math.min(j,r.length-1),z=Math.max(0,j-e.length+1);z<=L;z++){var Y=j-z|0;A+=(s=(t=0|e.words[Y])*(o=0|r.words[z])+N)/67108864|0,N=67108863&s}i.words[j]=0|N,P=0|A}return P!==0?i.words[j]=0|P:i.length--,i.strip()}a.prototype.toString=function(e,r){var i;if(r=0|r||1,(e=e||10)===16||e==="hex"){i="";for(var n=0,t=0,o=0;o<this.length;o++){var s=this.words[o],I=(16777215&(s<<n|t)).toString(16);i=(t=s>>>24-n&16777215)!=0||o!==this.length-1?m[6-I.length]+I+i:I+i,(n+=2)>=26&&(n-=26,o--)}for(t!==0&&(i=t.toString(16)+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var P=h[e],j=u[e];i="";var A=this.clone();for(A.negative=0;!A.isZero();){var N=A.modn(j).toString(e);i=(A=A.idivn(j)).isZero()?N+i:m[P-N.length]+N+i}for(this.isZero()&&(i="0"+i);i.length%r!=0;)i="0"+i;return this.negative!==0&&(i="-"+i),i}g(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var e=this.words[0];return this.length===2?e+=67108864*this.words[1]:this.length===3&&this.words[2]===1?e+=4503599627370496+67108864*this.words[1]:this.length>2&&g(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-e:e},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(e,r){return g(d!==void 0),this.toArrayLike(d,e,r)},a.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},a.prototype.toArrayLike=function(e,r,i){var n=this.byteLength(),t=i||Math.max(1,n);g(n<=t,"byte array longer than desired length"),g(t>0,"Requested array length <= 0"),this.strip();var o,s,I=r==="le",P=new e(t),j=this.clone();if(I){for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[s]=o;for(;s<t;s++)P[s]=0}else{for(s=0;s<t-n;s++)P[s]=0;for(s=0;!j.isZero();s++)o=j.andln(255),j.iushrn(8),P[t-s-1]=o}return P},Math.clz32?a.prototype._countBits=function(e){return 32-Math.clz32(e)}:a.prototype._countBits=function(e){var r=e,i=0;return r>=4096&&(i+=13,r>>>=13),r>=64&&(i+=7,r>>>=7),r>=8&&(i+=4,r>>>=4),r>=2&&(i+=2,r>>>=2),i+r},a.prototype._zeroBits=function(e){if(e===0)return 26;var r=e,i=0;return!(8191&r)&&(i+=13,r>>>=13),!(127&r)&&(i+=7,r>>>=7),!(15&r)&&(i+=4,r>>>=4),!(3&r)&&(i+=2,r>>>=2),!(1&r)&&i++,i},a.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var i=this._zeroBits(this.words[r]);if(e+=i,i!==26)break}return e},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(e){return this.negative!==0?this.abs().inotn(e).iaddn(1):this.clone()},a.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return this.negative!==0},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this.strip()},a.prototype.ior=function(e){return g((this.negative|e.negative)==0),this.iuor(e)},a.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},a.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},a.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var i=0;i<r.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=r.length,this.strip()},a.prototype.iand=function(e){return g((this.negative|e.negative)==0),this.iuand(e)},a.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},a.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},a.prototype.iuxor=function(e){var r,i;this.length>e.length?(r=this,i=e):(r=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=r.words[n]^i.words[n];if(this!==r)for(;n<r.length;n++)this.words[n]=r.words[n];return this.length=r.length,this.strip()},a.prototype.ixor=function(e){return g((this.negative|e.negative)==0),this.iuxor(e)},a.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},a.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},a.prototype.inotn=function(e){g(typeof e=="number"&&e>=0);var r=0|Math.ceil(e/26),i=e%26;this._expand(r),i>0&&r--;for(var n=0;n<r;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},a.prototype.notn=function(e){return this.clone().inotn(e)},a.prototype.setn=function(e,r){g(typeof e=="number"&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=r?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},a.prototype.iadd=function(e){var r,i,n;if(this.negative!==0&&e.negative===0)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(this.negative===0&&e.negative!==0)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var t=0,o=0;o<n.length;o++)r=(0|i.words[o])+(0|n.words[o])+t,this.words[o]=67108863&r,t=r>>>26;for(;t!==0&&o<i.length;o++)r=(0|i.words[o])+t,this.words[o]=67108863&r,t=r>>>26;if(this.length=i.length,t!==0)this.words[this.length]=t,this.length++;else if(i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this},a.prototype.add=function(e){var r;return e.negative!==0&&this.negative===0?(e.negative=0,r=this.sub(e),e.negative^=1,r):e.negative===0&&this.negative!==0?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},a.prototype.isub=function(e){if(e.negative!==0){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,t=this.cmp(e);if(t===0)return this.negative=0,this.length=1,this.words[0]=0,this;t>0?(i=this,n=e):(i=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(r=(0|i.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&r;for(;o!==0&&s<i.length;s++)o=(r=(0|i.words[s])+o)>>26,this.words[s]=67108863&r;if(o===0&&s<i.length&&i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this.length=Math.max(this.length,s),i!==this&&(this.negative=1),this.strip()},a.prototype.sub=function(e){return this.clone().isub(e)};var v=function(e,r,i){var n,t,o,s=e.words,I=r.words,P=i.words,j=0,A=0|s[0],N=8191&A,L=A>>>13,z=0|s[1],Y=8191&z,D=z>>>13,K=0|s[2],q=8191&K,U=K>>>13,te=0|s[3],J=8191&te,ae=te>>>13,xe=0|s[4],ce=8191&xe,fe=xe>>>13,Te=0|s[5],ye=8191&Te,Ee=Te>>>13,V=0|s[6],W=8191&V,Q=V>>>13,ge=0|s[7],oe=8191&ge,ue=ge>>>13,Ne=0|s[8],we=8191&Ne,Me=Ne>>>13,pt=0|s[9],ke=8191&pt,je=pt>>>13,Et=0|I[0],Ie=8191&Et,Xe=Et>>>13,Ct=0|I[1],De=8191&Ct,Ke=Ct>>>13,Nt=0|I[2],Pe=8191&Nt,He=Nt>>>13,vt=0|I[3],Ce=8191&vt,Ze=vt>>>13,St=0|I[4],Re=8191&St,Ge=St>>>13,It=0|I[5],qe=8191&It,Ye=It>>>13,Dt=0|I[6],Le=8191&Dt,et=Dt>>>13,$t=0|I[7],Fe=8191&$t,Qe=$t>>>13,Ut=0|I[8],$e=8191&Ut,nt=Ut>>>13,zt=0|I[9],Ue=8191&zt,tt=zt>>>13;i.negative=e.negative^r.negative,i.length=19;var Tt=(j+(n=Math.imul(N,Ie))|0)+((8191&(t=(t=Math.imul(N,Xe))+Math.imul(L,Ie)|0))<<13)|0;j=((o=Math.imul(L,Xe))+(t>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(Y,Ie),t=(t=Math.imul(Y,Xe))+Math.imul(D,Ie)|0,o=Math.imul(D,Xe);var Rt=(j+(n=n+Math.imul(N,De)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ke)|0)+Math.imul(L,De)|0))<<13)|0;j=((o=o+Math.imul(L,Ke)|0)+(t>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(q,Ie),t=(t=Math.imul(q,Xe))+Math.imul(U,Ie)|0,o=Math.imul(U,Xe),n=n+Math.imul(Y,De)|0,t=(t=t+Math.imul(Y,Ke)|0)+Math.imul(D,De)|0,o=o+Math.imul(D,Ke)|0;var Zt=(j+(n=n+Math.imul(N,Pe)|0)|0)+((8191&(t=(t=t+Math.imul(N,He)|0)+Math.imul(L,Pe)|0))<<13)|0;j=((o=o+Math.imul(L,He)|0)+(t>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(J,Ie),t=(t=Math.imul(J,Xe))+Math.imul(ae,Ie)|0,o=Math.imul(ae,Xe),n=n+Math.imul(q,De)|0,t=(t=t+Math.imul(q,Ke)|0)+Math.imul(U,De)|0,o=o+Math.imul(U,Ke)|0,n=n+Math.imul(Y,Pe)|0,t=(t=t+Math.imul(Y,He)|0)+Math.imul(D,Pe)|0,o=o+Math.imul(D,He)|0;var on=(j+(n=n+Math.imul(N,Ce)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ze)|0)+Math.imul(L,Ce)|0))<<13)|0;j=((o=o+Math.imul(L,Ze)|0)+(t>>>13)|0)+(on>>>26)|0,on&=67108863,n=Math.imul(ce,Ie),t=(t=Math.imul(ce,Xe))+Math.imul(fe,Ie)|0,o=Math.imul(fe,Xe),n=n+Math.imul(J,De)|0,t=(t=t+Math.imul(J,Ke)|0)+Math.imul(ae,De)|0,o=o+Math.imul(ae,Ke)|0,n=n+Math.imul(q,Pe)|0,t=(t=t+Math.imul(q,He)|0)+Math.imul(U,Pe)|0,o=o+Math.imul(U,He)|0,n=n+Math.imul(Y,Ce)|0,t=(t=t+Math.imul(Y,Ze)|0)+Math.imul(D,Ce)|0,o=o+Math.imul(D,Ze)|0;var tn=(j+(n=n+Math.imul(N,Re)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ge)|0)+Math.imul(L,Re)|0))<<13)|0;j=((o=o+Math.imul(L,Ge)|0)+(t>>>13)|0)+(tn>>>26)|0,tn&=67108863,n=Math.imul(ye,Ie),t=(t=Math.imul(ye,Xe))+Math.imul(Ee,Ie)|0,o=Math.imul(Ee,Xe),n=n+Math.imul(ce,De)|0,t=(t=t+Math.imul(ce,Ke)|0)+Math.imul(fe,De)|0,o=o+Math.imul(fe,Ke)|0,n=n+Math.imul(J,Pe)|0,t=(t=t+Math.imul(J,He)|0)+Math.imul(ae,Pe)|0,o=o+Math.imul(ae,He)|0,n=n+Math.imul(q,Ce)|0,t=(t=t+Math.imul(q,Ze)|0)+Math.imul(U,Ce)|0,o=o+Math.imul(U,Ze)|0,n=n+Math.imul(Y,Re)|0,t=(t=t+Math.imul(Y,Ge)|0)+Math.imul(D,Re)|0,o=o+Math.imul(D,Ge)|0;var an=(j+(n=n+Math.imul(N,qe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Ye)|0)+Math.imul(L,qe)|0))<<13)|0;j=((o=o+Math.imul(L,Ye)|0)+(t>>>13)|0)+(an>>>26)|0,an&=67108863,n=Math.imul(W,Ie),t=(t=Math.imul(W,Xe))+Math.imul(Q,Ie)|0,o=Math.imul(Q,Xe),n=n+Math.imul(ye,De)|0,t=(t=t+Math.imul(ye,Ke)|0)+Math.imul(Ee,De)|0,o=o+Math.imul(Ee,Ke)|0,n=n+Math.imul(ce,Pe)|0,t=(t=t+Math.imul(ce,He)|0)+Math.imul(fe,Pe)|0,o=o+Math.imul(fe,He)|0,n=n+Math.imul(J,Ce)|0,t=(t=t+Math.imul(J,Ze)|0)+Math.imul(ae,Ce)|0,o=o+Math.imul(ae,Ze)|0,n=n+Math.imul(q,Re)|0,t=(t=t+Math.imul(q,Ge)|0)+Math.imul(U,Re)|0,o=o+Math.imul(U,Ge)|0,n=n+Math.imul(Y,qe)|0,t=(t=t+Math.imul(Y,Ye)|0)+Math.imul(D,qe)|0,o=o+Math.imul(D,Ye)|0;var sn=(j+(n=n+Math.imul(N,Le)|0)|0)+((8191&(t=(t=t+Math.imul(N,et)|0)+Math.imul(L,Le)|0))<<13)|0;j=((o=o+Math.imul(L,et)|0)+(t>>>13)|0)+(sn>>>26)|0,sn&=67108863,n=Math.imul(oe,Ie),t=(t=Math.imul(oe,Xe))+Math.imul(ue,Ie)|0,o=Math.imul(ue,Xe),n=n+Math.imul(W,De)|0,t=(t=t+Math.imul(W,Ke)|0)+Math.imul(Q,De)|0,o=o+Math.imul(Q,Ke)|0,n=n+Math.imul(ye,Pe)|0,t=(t=t+Math.imul(ye,He)|0)+Math.imul(Ee,Pe)|0,o=o+Math.imul(Ee,He)|0,n=n+Math.imul(ce,Ce)|0,t=(t=t+Math.imul(ce,Ze)|0)+Math.imul(fe,Ce)|0,o=o+Math.imul(fe,Ze)|0,n=n+Math.imul(J,Re)|0,t=(t=t+Math.imul(J,Ge)|0)+Math.imul(ae,Re)|0,o=o+Math.imul(ae,Ge)|0,n=n+Math.imul(q,qe)|0,t=(t=t+Math.imul(q,Ye)|0)+Math.imul(U,qe)|0,o=o+Math.imul(U,Ye)|0,n=n+Math.imul(Y,Le)|0,t=(t=t+Math.imul(Y,et)|0)+Math.imul(D,Le)|0,o=o+Math.imul(D,et)|0;var un=(j+(n=n+Math.imul(N,Fe)|0)|0)+((8191&(t=(t=t+Math.imul(N,Qe)|0)+Math.imul(L,Fe)|0))<<13)|0;j=((o=o+Math.imul(L,Qe)|0)+(t>>>13)|0)+(un>>>26)|0,un&=67108863,n=Math.imul(we,Ie),t=(t=Math.imul(we,Xe))+Math.imul(Me,Ie)|0,o=Math.imul(Me,Xe),n=n+Math.imul(oe,De)|0,t=(t=t+Math.imul(oe,Ke)|0)+Math.imul(ue,De)|0,o=o+Math.imul(ue,Ke)|0,n=n+Math.imul(W,Pe)|0,t=(t=t+Math.imul(W,He)|0)+Math.imul(Q,Pe)|0,o=o+Math.imul(Q,He)|0,n=n+Math.imul(ye,Ce)|0,t=(t=t+Math.imul(ye,Ze)|0)+Math.imul(Ee,Ce)|0,o=o+Math.imul(Ee,Ze)|0,n=n+Math.imul(ce,Re)|0,t=(t=t+Math.imul(ce,Ge)|0)+Math.imul(fe,Re)|0,o=o+Math.imul(fe,Ge)|0,n=n+Math.imul(J,qe)|0,t=(t=t+Math.imul(J,Ye)|0)+Math.imul(ae,qe)|0,o=o+Math.imul(ae,Ye)|0,n=n+Math.imul(q,Le)|0,t=(t=t+Math.imul(q,et)|0)+Math.imul(U,Le)|0,o=o+Math.imul(U,et)|0,n=n+Math.imul(Y,Fe)|0,t=(t=t+Math.imul(Y,Qe)|0)+Math.imul(D,Fe)|0,o=o+Math.imul(D,Qe)|0;var cn=(j+(n=n+Math.imul(N,$e)|0)|0)+((8191&(t=(t=t+Math.imul(N,nt)|0)+Math.imul(L,$e)|0))<<13)|0;j=((o=o+Math.imul(L,nt)|0)+(t>>>13)|0)+(cn>>>26)|0,cn&=67108863,n=Math.imul(ke,Ie),t=(t=Math.imul(ke,Xe))+Math.imul(je,Ie)|0,o=Math.imul(je,Xe),n=n+Math.imul(we,De)|0,t=(t=t+Math.imul(we,Ke)|0)+Math.imul(Me,De)|0,o=o+Math.imul(Me,Ke)|0,n=n+Math.imul(oe,Pe)|0,t=(t=t+Math.imul(oe,He)|0)+Math.imul(ue,Pe)|0,o=o+Math.imul(ue,He)|0,n=n+Math.imul(W,Ce)|0,t=(t=t+Math.imul(W,Ze)|0)+Math.imul(Q,Ce)|0,o=o+Math.imul(Q,Ze)|0,n=n+Math.imul(ye,Re)|0,t=(t=t+Math.imul(ye,Ge)|0)+Math.imul(Ee,Re)|0,o=o+Math.imul(Ee,Ge)|0,n=n+Math.imul(ce,qe)|0,t=(t=t+Math.imul(ce,Ye)|0)+Math.imul(fe,qe)|0,o=o+Math.imul(fe,Ye)|0,n=n+Math.imul(J,Le)|0,t=(t=t+Math.imul(J,et)|0)+Math.imul(ae,Le)|0,o=o+Math.imul(ae,et)|0,n=n+Math.imul(q,Fe)|0,t=(t=t+Math.imul(q,Qe)|0)+Math.imul(U,Fe)|0,o=o+Math.imul(U,Qe)|0,n=n+Math.imul(Y,$e)|0,t=(t=t+Math.imul(Y,nt)|0)+Math.imul(D,$e)|0,o=o+Math.imul(D,nt)|0;var ln=(j+(n=n+Math.imul(N,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(N,tt)|0)+Math.imul(L,Ue)|0))<<13)|0;j=((o=o+Math.imul(L,tt)|0)+(t>>>13)|0)+(ln>>>26)|0,ln&=67108863,n=Math.imul(ke,De),t=(t=Math.imul(ke,Ke))+Math.imul(je,De)|0,o=Math.imul(je,Ke),n=n+Math.imul(we,Pe)|0,t=(t=t+Math.imul(we,He)|0)+Math.imul(Me,Pe)|0,o=o+Math.imul(Me,He)|0,n=n+Math.imul(oe,Ce)|0,t=(t=t+Math.imul(oe,Ze)|0)+Math.imul(ue,Ce)|0,o=o+Math.imul(ue,Ze)|0,n=n+Math.imul(W,Re)|0,t=(t=t+Math.imul(W,Ge)|0)+Math.imul(Q,Re)|0,o=o+Math.imul(Q,Ge)|0,n=n+Math.imul(ye,qe)|0,t=(t=t+Math.imul(ye,Ye)|0)+Math.imul(Ee,qe)|0,o=o+Math.imul(Ee,Ye)|0,n=n+Math.imul(ce,Le)|0,t=(t=t+Math.imul(ce,et)|0)+Math.imul(fe,Le)|0,o=o+Math.imul(fe,et)|0,n=n+Math.imul(J,Fe)|0,t=(t=t+Math.imul(J,Qe)|0)+Math.imul(ae,Fe)|0,o=o+Math.imul(ae,Qe)|0,n=n+Math.imul(q,$e)|0,t=(t=t+Math.imul(q,nt)|0)+Math.imul(U,$e)|0,o=o+Math.imul(U,nt)|0;var hn=(j+(n=n+Math.imul(Y,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(Y,tt)|0)+Math.imul(D,Ue)|0))<<13)|0;j=((o=o+Math.imul(D,tt)|0)+(t>>>13)|0)+(hn>>>26)|0,hn&=67108863,n=Math.imul(ke,Pe),t=(t=Math.imul(ke,He))+Math.imul(je,Pe)|0,o=Math.imul(je,He),n=n+Math.imul(we,Ce)|0,t=(t=t+Math.imul(we,Ze)|0)+Math.imul(Me,Ce)|0,o=o+Math.imul(Me,Ze)|0,n=n+Math.imul(oe,Re)|0,t=(t=t+Math.imul(oe,Ge)|0)+Math.imul(ue,Re)|0,o=o+Math.imul(ue,Ge)|0,n=n+Math.imul(W,qe)|0,t=(t=t+Math.imul(W,Ye)|0)+Math.imul(Q,qe)|0,o=o+Math.imul(Q,Ye)|0,n=n+Math.imul(ye,Le)|0,t=(t=t+Math.imul(ye,et)|0)+Math.imul(Ee,Le)|0,o=o+Math.imul(Ee,et)|0,n=n+Math.imul(ce,Fe)|0,t=(t=t+Math.imul(ce,Qe)|0)+Math.imul(fe,Fe)|0,o=o+Math.imul(fe,Qe)|0,n=n+Math.imul(J,$e)|0,t=(t=t+Math.imul(J,nt)|0)+Math.imul(ae,$e)|0,o=o+Math.imul(ae,nt)|0;var Gt=(j+(n=n+Math.imul(q,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(q,tt)|0)+Math.imul(U,Ue)|0))<<13)|0;j=((o=o+Math.imul(U,tt)|0)+(t>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,n=Math.imul(ke,Ce),t=(t=Math.imul(ke,Ze))+Math.imul(je,Ce)|0,o=Math.imul(je,Ze),n=n+Math.imul(we,Re)|0,t=(t=t+Math.imul(we,Ge)|0)+Math.imul(Me,Re)|0,o=o+Math.imul(Me,Ge)|0,n=n+Math.imul(oe,qe)|0,t=(t=t+Math.imul(oe,Ye)|0)+Math.imul(ue,qe)|0,o=o+Math.imul(ue,Ye)|0,n=n+Math.imul(W,Le)|0,t=(t=t+Math.imul(W,et)|0)+Math.imul(Q,Le)|0,o=o+Math.imul(Q,et)|0,n=n+Math.imul(ye,Fe)|0,t=(t=t+Math.imul(ye,Qe)|0)+Math.imul(Ee,Fe)|0,o=o+Math.imul(Ee,Qe)|0,n=n+Math.imul(ce,$e)|0,t=(t=t+Math.imul(ce,nt)|0)+Math.imul(fe,$e)|0,o=o+Math.imul(fe,nt)|0;var pn=(j+(n=n+Math.imul(J,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(J,tt)|0)+Math.imul(ae,Ue)|0))<<13)|0;j=((o=o+Math.imul(ae,tt)|0)+(t>>>13)|0)+(pn>>>26)|0,pn&=67108863,n=Math.imul(ke,Re),t=(t=Math.imul(ke,Ge))+Math.imul(je,Re)|0,o=Math.imul(je,Ge),n=n+Math.imul(we,qe)|0,t=(t=t+Math.imul(we,Ye)|0)+Math.imul(Me,qe)|0,o=o+Math.imul(Me,Ye)|0,n=n+Math.imul(oe,Le)|0,t=(t=t+Math.imul(oe,et)|0)+Math.imul(ue,Le)|0,o=o+Math.imul(ue,et)|0,n=n+Math.imul(W,Fe)|0,t=(t=t+Math.imul(W,Qe)|0)+Math.imul(Q,Fe)|0,o=o+Math.imul(Q,Qe)|0,n=n+Math.imul(ye,$e)|0,t=(t=t+Math.imul(ye,nt)|0)+Math.imul(Ee,$e)|0,o=o+Math.imul(Ee,nt)|0;var mn=(j+(n=n+Math.imul(ce,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ce,tt)|0)+Math.imul(fe,Ue)|0))<<13)|0;j=((o=o+Math.imul(fe,tt)|0)+(t>>>13)|0)+(mn>>>26)|0,mn&=67108863,n=Math.imul(ke,qe),t=(t=Math.imul(ke,Ye))+Math.imul(je,qe)|0,o=Math.imul(je,Ye),n=n+Math.imul(we,Le)|0,t=(t=t+Math.imul(we,et)|0)+Math.imul(Me,Le)|0,o=o+Math.imul(Me,et)|0,n=n+Math.imul(oe,Fe)|0,t=(t=t+Math.imul(oe,Qe)|0)+Math.imul(ue,Fe)|0,o=o+Math.imul(ue,Qe)|0,n=n+Math.imul(W,$e)|0,t=(t=t+Math.imul(W,nt)|0)+Math.imul(Q,$e)|0,o=o+Math.imul(Q,nt)|0;var Qt=(j+(n=n+Math.imul(ye,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(ye,tt)|0)+Math.imul(Ee,Ue)|0))<<13)|0;j=((o=o+Math.imul(Ee,tt)|0)+(t>>>13)|0)+(Qt>>>26)|0,Qt&=67108863,n=Math.imul(ke,Le),t=(t=Math.imul(ke,et))+Math.imul(je,Le)|0,o=Math.imul(je,et),n=n+Math.imul(we,Fe)|0,t=(t=t+Math.imul(we,Qe)|0)+Math.imul(Me,Fe)|0,o=o+Math.imul(Me,Qe)|0,n=n+Math.imul(oe,$e)|0,t=(t=t+Math.imul(oe,nt)|0)+Math.imul(ue,$e)|0,o=o+Math.imul(ue,nt)|0;var en=(j+(n=n+Math.imul(W,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(W,tt)|0)+Math.imul(Q,Ue)|0))<<13)|0;j=((o=o+Math.imul(Q,tt)|0)+(t>>>13)|0)+(en>>>26)|0,en&=67108863,n=Math.imul(ke,Fe),t=(t=Math.imul(ke,Qe))+Math.imul(je,Fe)|0,o=Math.imul(je,Qe),n=n+Math.imul(we,$e)|0,t=(t=t+Math.imul(we,nt)|0)+Math.imul(Me,$e)|0,o=o+Math.imul(Me,nt)|0;var Yt=(j+(n=n+Math.imul(oe,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(oe,tt)|0)+Math.imul(ue,Ue)|0))<<13)|0;j=((o=o+Math.imul(ue,tt)|0)+(t>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,n=Math.imul(ke,$e),t=(t=Math.imul(ke,nt))+Math.imul(je,$e)|0,o=Math.imul(je,nt);var fn=(j+(n=n+Math.imul(we,Ue)|0)|0)+((8191&(t=(t=t+Math.imul(we,tt)|0)+Math.imul(Me,Ue)|0))<<13)|0;j=((o=o+Math.imul(Me,tt)|0)+(t>>>13)|0)+(fn>>>26)|0,fn&=67108863;var nn=(j+(n=Math.imul(ke,Ue))|0)+((8191&(t=(t=Math.imul(ke,tt))+Math.imul(je,Ue)|0))<<13)|0;return j=((o=Math.imul(je,tt))+(t>>>13)|0)+(nn>>>26)|0,nn&=67108863,P[0]=Tt,P[1]=Rt,P[2]=Zt,P[3]=on,P[4]=tn,P[5]=an,P[6]=sn,P[7]=un,P[8]=cn,P[9]=ln,P[10]=hn,P[11]=Gt,P[12]=pn,P[13]=mn,P[14]=Qt,P[15]=en,P[16]=Yt,P[17]=fn,P[18]=nn,j!==0&&(P[19]=j,i.length++),i};function _(e,r,i){return new S().mulp(e,r,i)}function S(e,r){this.x=e,this.y=r}Math.imul||(v=y),a.prototype.mulTo=function(e,r){var i,n=this.length+e.length;return i=this.length===10&&e.length===10?v(this,e,r):n<63?y(this,e,r):n<1024?function(t,o,s){s.negative=o.negative^t.negative,s.length=t.length+o.length;for(var I=0,P=0,j=0;j<s.length-1;j++){var A=P;P=0;for(var N=67108863&I,L=Math.min(j,o.length-1),z=Math.max(0,j-t.length+1);z<=L;z++){var Y=j-z,D=(0|t.words[Y])*(0|o.words[z]),K=67108863&D;N=67108863&(K=K+N|0),P+=(A=(A=A+(D/67108864|0)|0)+(K>>>26)|0)>>>26,A&=67108863}s.words[j]=N,I=A,A=P}return I!==0?s.words[j]=I:s.length--,s.strip()}(this,e,r):_(this,e,r),i},S.prototype.makeRBT=function(e){for(var r=new Array(e),i=a.prototype._countBits(e)-1,n=0;n<e;n++)r[n]=this.revBin(n,i,e);return r},S.prototype.revBin=function(e,r,i){if(e===0||e===i-1)return e;for(var n=0,t=0;t<r;t++)n|=(1&e)<<r-t-1,e>>=1;return n},S.prototype.permute=function(e,r,i,n,t,o){for(var s=0;s<o;s++)n[s]=r[e[s]],t[s]=i[e[s]]},S.prototype.transform=function(e,r,i,n,t,o){this.permute(o,e,r,i,n,t);for(var s=1;s<t;s<<=1)for(var I=s<<1,P=Math.cos(2*Math.PI/I),j=Math.sin(2*Math.PI/I),A=0;A<t;A+=I)for(var N=P,L=j,z=0;z<s;z++){var Y=i[A+z],D=n[A+z],K=i[A+z+s],q=n[A+z+s],U=N*K-L*q;q=N*q+L*K,K=U,i[A+z]=Y+K,n[A+z]=D+q,i[A+z+s]=Y-K,n[A+z+s]=D-q,z!==I&&(U=P*N-j*L,L=P*L+j*N,N=U)}},S.prototype.guessLen13b=function(e,r){var i=1|Math.max(r,e),n=1&i,t=0;for(i=i/2|0;i;i>>>=1)t++;return 1<<t+1+n},S.prototype.conjugate=function(e,r,i){if(!(i<=1))for(var n=0;n<i/2;n++){var t=e[n];e[n]=e[i-n-1],e[i-n-1]=t,t=r[n],r[n]=-r[i-n-1],r[i-n-1]=-t}},S.prototype.normalize13b=function(e,r){for(var i=0,n=0;n<r/2;n++){var t=8192*Math.round(e[2*n+1]/r)+Math.round(e[2*n]/r)+i;e[n]=67108863&t,i=t<67108864?0:t/67108864|0}return e},S.prototype.convert13b=function(e,r,i,n){for(var t=0,o=0;o<r;o++)t+=0|e[o],i[2*o]=8191&t,t>>>=13,i[2*o+1]=8191&t,t>>>=13;for(o=2*r;o<n;++o)i[o]=0;g(t===0),g((-8192&t)==0)},S.prototype.stub=function(e){for(var r=new Array(e),i=0;i<e;i++)r[i]=0;return r},S.prototype.mulp=function(e,r,i){var n=2*this.guessLen13b(e.length,r.length),t=this.makeRBT(n),o=this.stub(n),s=new Array(n),I=new Array(n),P=new Array(n),j=new Array(n),A=new Array(n),N=new Array(n),L=i.words;L.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(r.words,r.length,j,n),this.transform(s,o,I,P,n,t),this.transform(j,o,A,N,n,t);for(var z=0;z<n;z++){var Y=I[z]*A[z]-P[z]*N[z];P[z]=I[z]*N[z]+P[z]*A[z],I[z]=Y}return this.conjugate(I,P,n),this.transform(I,P,L,o,n,t),this.conjugate(L,o,n),this.normalize13b(L,n),i.negative=e.negative^r.negative,i.length=e.length+r.length,i.strip()},a.prototype.mul=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),this.mulTo(e,r)},a.prototype.mulf=function(e){var r=new a(null);return r.words=new Array(this.length+e.length),_(this,e,r)},a.prototype.imul=function(e){return this.clone().mulTo(e,this)},a.prototype.imuln=function(e){g(typeof e=="number"),g(e<67108864);for(var r=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,t=(67108863&n)+(67108863&r);r>>=26,r+=n/67108864|0,r+=t>>>26,this.words[i]=67108863&t}return r!==0&&(this.words[i]=r,this.length++),this},a.prototype.muln=function(e){return this.clone().imuln(e)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(e){var r=function(o){for(var s=new Array(o.bitLength()),I=0;I<s.length;I++){var P=I/26|0,j=I%26;s[I]=(o.words[P]&1<<j)>>>j}return s}(e);if(r.length===0)return new a(1);for(var i=this,n=0;n<r.length&&r[n]===0;n++,i=i.sqr());if(++n<r.length)for(var t=i.sqr();n<r.length;n++,t=t.sqr())r[n]!==0&&(i=i.mul(t));return i},a.prototype.iushln=function(e){g(typeof e=="number"&&e>=0);var r,i=e%26,n=(e-i)/26,t=67108863>>>26-i<<26-i;if(i!==0){var o=0;for(r=0;r<this.length;r++){var s=this.words[r]&t,I=(0|this.words[r])-s<<i;this.words[r]=I|o,o=s>>>26-i}o&&(this.words[r]=o,this.length++)}if(n!==0){for(r=this.length-1;r>=0;r--)this.words[r+n]=this.words[r];for(r=0;r<n;r++)this.words[r]=0;this.length+=n}return this.strip()},a.prototype.ishln=function(e){return g(this.negative===0),this.iushln(e)},a.prototype.iushrn=function(e,r,i){var n;g(typeof e=="number"&&e>=0),n=r?(r-r%26)/26:0;var t=e%26,o=Math.min((e-t)/26,this.length),s=67108863^67108863>>>t<<t,I=i;if(n-=o,n=Math.max(0,n),I){for(var P=0;P<o;P++)I.words[P]=this.words[P];I.length=o}if(o!==0)if(this.length>o)for(this.length-=o,P=0;P<this.length;P++)this.words[P]=this.words[P+o];else this.words[0]=0,this.length=1;var j=0;for(P=this.length-1;P>=0&&(j!==0||P>=n);P--){var A=0|this.words[P];this.words[P]=j<<26-t|A>>>t,j=A&s}return I&&j!==0&&(I.words[I.length++]=j),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(e,r,i){return g(this.negative===0),this.iushrn(e,r,i)},a.prototype.shln=function(e){return this.clone().ishln(e)},a.prototype.ushln=function(e){return this.clone().iushln(e)},a.prototype.shrn=function(e){return this.clone().ishrn(e)},a.prototype.ushrn=function(e){return this.clone().iushrn(e)},a.prototype.testn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26,n=1<<r;return!(this.length<=i||!(this.words[i]&n))},a.prototype.imaskn=function(e){g(typeof e=="number"&&e>=0);var r=e%26,i=(e-r)/26;if(g(this.negative===0,"imaskn works only with positive numbers"),this.length<=i)return this;if(r!==0&&i++,this.length=Math.min(i,this.length),r!==0){var n=67108863^67108863>>>r<<r;this.words[this.length-1]&=n}return this.strip()},a.prototype.maskn=function(e){return this.clone().imaskn(e)},a.prototype.iaddn=function(e){return g(typeof e=="number"),g(e<67108864),e<0?this.isubn(-e):this.negative!==0?this.length===1&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},a.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(e){if(g(typeof e=="number"),g(e<67108864),e<0)return this.iaddn(-e);if(this.negative!==0)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this.strip()},a.prototype.addn=function(e){return this.clone().iaddn(e)},a.prototype.subn=function(e){return this.clone().isubn(e)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(e,r,i){var n,t,o=e.length+i;this._expand(o);var s=0;for(n=0;n<e.length;n++){t=(0|this.words[n+i])+s;var I=(0|e.words[n])*r;s=((t-=67108863&I)>>26)-(I/67108864|0),this.words[n+i]=67108863&t}for(;n<this.length-i;n++)s=(t=(0|this.words[n+i])+s)>>26,this.words[n+i]=67108863&t;if(s===0)return this.strip();for(g(s===-1),s=0,n=0;n<this.length;n++)s=(t=-(0|this.words[n])+s)>>26,this.words[n]=67108863&t;return this.negative=1,this.strip()},a.prototype._wordDiv=function(e,r){var i=(this.length,e.length),n=this.clone(),t=e,o=0|t.words[t.length-1];(i=26-this._countBits(o))!=0&&(t=t.ushln(i),n.iushln(i),o=0|t.words[t.length-1]);var s,I=n.length-t.length;if(r!=="mod"){(s=new a(null)).length=I+1,s.words=new Array(s.length);for(var P=0;P<s.length;P++)s.words[P]=0}var j=n.clone()._ishlnsubmul(t,1,I);j.negative===0&&(n=j,s&&(s.words[I]=1));for(var A=I-1;A>=0;A--){var N=67108864*(0|n.words[t.length+A])+(0|n.words[t.length+A-1]);for(N=Math.min(N/o|0,67108863),n._ishlnsubmul(t,N,A);n.negative!==0;)N--,n.negative=0,n._ishlnsubmul(t,1,A),n.isZero()||(n.negative^=1);s&&(s.words[A]=N)}return s&&s.strip(),n.strip(),r!=="div"&&i!==0&&n.iushrn(i),{div:s||null,mod:n}},a.prototype.divmod=function(e,r,i){return g(!e.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:this.negative!==0&&e.negative===0?(o=this.neg().divmod(e,r),r!=="mod"&&(n=o.div.neg()),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.iadd(e)),{div:n,mod:t}):this.negative===0&&e.negative!==0?(o=this.divmod(e.neg(),r),r!=="mod"&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),r),r!=="div"&&(t=o.mod.neg(),i&&t.negative!==0&&t.isub(e)),{div:o.div,mod:t}):e.length>this.length||this.cmp(e)<0?{div:new a(0),mod:this}:e.length===1?r==="div"?{div:this.divn(e.words[0]),mod:null}:r==="mod"?{div:null,mod:new a(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new a(this.modn(e.words[0]))}:this._wordDiv(e,r);var n,t,o},a.prototype.div=function(e){return this.divmod(e,"div",!1).div},a.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},a.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},a.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var i=r.div.negative!==0?r.mod.isub(e):r.mod,n=e.ushrn(1),t=e.andln(1),o=i.cmp(n);return o<0||t===1&&o===0?r.div:r.div.negative!==0?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(e){g(e<=67108863);for(var r=67108864%e,i=0,n=this.length-1;n>=0;n--)i=(r*i+(0|this.words[n]))%e;return i},a.prototype.idivn=function(e){g(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*r;this.words[i]=n/e|0,r=n%e}return this.strip()},a.prototype.divn=function(e){return this.clone().idivn(e)},a.prototype.egcd=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n=new a(1),t=new a(0),o=new a(0),s=new a(1),I=0;r.isEven()&&i.isEven();)r.iushrn(1),i.iushrn(1),++I;for(var P=i.clone(),j=r.clone();!r.isZero();){for(var A=0,N=1;!(r.words[0]&N)&&A<26;++A,N<<=1);if(A>0)for(r.iushrn(A);A-- >0;)(n.isOdd()||t.isOdd())&&(n.iadd(P),t.isub(j)),n.iushrn(1),t.iushrn(1);for(var L=0,z=1;!(i.words[0]&z)&&L<26;++L,z<<=1);if(L>0)for(i.iushrn(L);L-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(P),s.isub(j)),o.iushrn(1),s.iushrn(1);r.cmp(i)>=0?(r.isub(i),n.isub(o),t.isub(s)):(i.isub(r),o.isub(n),s.isub(t))}return{a:o,b:s,gcd:i.iushln(I)}},a.prototype._invmp=function(e){g(e.negative===0),g(!e.isZero());var r=this,i=e.clone();r=r.negative!==0?r.umod(e):r.clone();for(var n,t=new a(1),o=new a(0),s=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var I=0,P=1;!(r.words[0]&P)&&I<26;++I,P<<=1);if(I>0)for(r.iushrn(I);I-- >0;)t.isOdd()&&t.iadd(s),t.iushrn(1);for(var j=0,A=1;!(i.words[0]&A)&&j<26;++j,A<<=1);if(j>0)for(i.iushrn(j);j-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),t.isub(o)):(i.isub(r),o.isub(t))}return(n=r.cmpn(1)===0?t:o).cmpn(0)<0&&n.iadd(e),n},a.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),i=e.clone();r.negative=0,i.negative=0;for(var n=0;r.isEven()&&i.isEven();n++)r.iushrn(1),i.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;i.isEven();)i.iushrn(1);var t=r.cmp(i);if(t<0){var o=r;r=i,i=o}else if(t===0||i.cmpn(1)===0)break;r.isub(i)}return i.iushln(n)},a.prototype.invm=function(e){return this.egcd(e).a.umod(e)},a.prototype.isEven=function(){return(1&this.words[0])==0},a.prototype.isOdd=function(){return(1&this.words[0])==1},a.prototype.andln=function(e){return this.words[0]&e},a.prototype.bincn=function(e){g(typeof e=="number");var r=e%26,i=(e-r)/26,n=1<<r;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var t=n,o=i;t!==0&&o<this.length;o++){var s=0|this.words[o];t=(s+=t)>>>26,s&=67108863,this.words[o]=s}return t!==0&&(this.words[o]=t,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(e){var r,i=e<0;if(this.negative!==0&&!i)return-1;if(this.negative===0&&i)return 1;if(this.strip(),this.length>1)r=1;else{i&&(e=-e),g(e<=67108863,"Number is too big");var n=0|this.words[0];r=n===e?0:n<e?-1:1}return this.negative!==0?0|-r:r},a.prototype.cmp=function(e){if(this.negative!==0&&e.negative===0)return-1;if(this.negative===0&&e.negative!==0)return 1;var r=this.ucmp(e);return this.negative!==0?0|-r:r},a.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var r=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],t=0|e.words[i];if(n!==t){n<t?r=-1:n>t&&(r=1);break}}return r},a.prototype.gtn=function(e){return this.cmpn(e)===1},a.prototype.gt=function(e){return this.cmp(e)===1},a.prototype.gten=function(e){return this.cmpn(e)>=0},a.prototype.gte=function(e){return this.cmp(e)>=0},a.prototype.ltn=function(e){return this.cmpn(e)===-1},a.prototype.lt=function(e){return this.cmp(e)===-1},a.prototype.lten=function(e){return this.cmpn(e)<=0},a.prototype.lte=function(e){return this.cmp(e)<=0},a.prototype.eqn=function(e){return this.cmpn(e)===0},a.prototype.eq=function(e){return this.cmp(e)===0},a.red=function(e){return new Z(e)},a.prototype.toRed=function(e){return g(!this.red,"Already a number in reduction context"),g(this.negative===0,"red works only with positives"),e.convertTo(this)._forceRed(e)},a.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(e){return this.red=e,this},a.prototype.forceRed=function(e){return g(!this.red,"Already a number in reduction context"),this._forceRed(e)},a.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},a.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},a.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},a.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},a.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},a.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},a.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},a.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(e){return g(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function T(e,r){this.name=e,this.p=new a(r,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function C(){T.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function R(){T.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function F(){T.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function X(){T.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function Z(e){if(typeof e=="string"){var r=a._prime(e);this.m=r.p,this.prime=r}else g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function ne(e){Z.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}T.prototype._tmp=function(){var e=new a(null);return e.words=new Array(Math.ceil(this.n/13)),e},T.prototype.ireduce=function(e){var r,i=e;do this.split(i,this.tmp),r=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength();while(r>this.n);var n=r<this.n?-1:i.ucmp(this.p);return n===0?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):i.strip!==void 0?i.strip():i._strip(),i},T.prototype.split=function(e,r){e.iushrn(this.n,0,r)},T.prototype.imulK=function(e){return e.imul(this.k)},M(C,T),C.prototype.split=function(e,r){for(var i=4194303,n=Math.min(e.length,9),t=0;t<n;t++)r.words[t]=e.words[t];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=o&i,t=10;t<e.length;t++){var s=0|e.words[t];e.words[t-10]=(s&i)<<4|o>>>22,o=s}o>>>=22,e.words[t-10]=o,o===0&&e.length>10?e.length-=10:e.length-=9},C.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,i=0;i<e.length;i++){var n=0|e.words[i];r+=977*n,e.words[i]=67108863&r,r=64*n+(r/67108864|0)}return e.words[e.length-1]===0&&(e.length--,e.words[e.length-1]===0&&e.length--),e},M(R,T),M(F,T),M(X,T),X.prototype.imulK=function(e){for(var r=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+r,t=67108863&n;n>>>=26,e.words[i]=t,r=n}return r!==0&&(e.words[e.length++]=r),e},a._prime=function(e){if(b[e])return b[e];var r;if(e==="k256")r=new C;else if(e==="p224")r=new R;else if(e==="p192")r=new F;else{if(e!=="p25519")throw new Error("Unknown prime "+e);r=new X}return b[e]=r,r},Z.prototype._verify1=function(e){g(e.negative===0,"red works only with positives"),g(e.red,"red works only with red numbers")},Z.prototype._verify2=function(e,r){g((e.negative|r.negative)==0,"red works only with positives"),g(e.red&&e.red===r.red,"red works only with red numbers")},Z.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},Z.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},Z.prototype.add=function(e,r){this._verify2(e,r);var i=e.add(r);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},Z.prototype.iadd=function(e,r){this._verify2(e,r);var i=e.iadd(r);return i.cmp(this.m)>=0&&i.isub(this.m),i},Z.prototype.sub=function(e,r){this._verify2(e,r);var i=e.sub(r);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},Z.prototype.isub=function(e,r){this._verify2(e,r);var i=e.isub(r);return i.cmpn(0)<0&&i.iadd(this.m),i},Z.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},Z.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},Z.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},Z.prototype.isqr=function(e){return this.imul(e,e.clone())},Z.prototype.sqr=function(e){return this.mul(e,e)},Z.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(g(r%2==1),r===3){var i=this.m.add(new a(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),t=0;!n.isZero()&&n.andln(1)===0;)t++,n.iushrn(1);g(!n.isZero());var o=new a(1).toRed(this),s=o.redNeg(),I=this.m.subn(1).iushrn(1),P=this.m.bitLength();for(P=new a(2*P*P).toRed(this);this.pow(P,I).cmp(s)!==0;)P.redIAdd(s);for(var j=this.pow(P,n),A=this.pow(e,n.addn(1).iushrn(1)),N=this.pow(e,n),L=t;N.cmp(o)!==0;){for(var z=N,Y=0;z.cmp(o)!==0;Y++)z=z.redSqr();g(Y<L);var D=this.pow(j,new a(1).iushln(L-Y-1));A=A.redMul(D),j=D.redSqr(),N=N.redMul(j),L=Y}return A},Z.prototype.invm=function(e){var r=e._invmp(this.m);return r.negative!==0?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},Z.prototype.pow=function(e,r){if(r.isZero())return new a(1).toRed(this);if(r.cmpn(1)===0)return e.clone();var i=new Array(16);i[0]=new a(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var t=i[0],o=0,s=0,I=r.bitLength()%26;for(I===0&&(I=26),n=r.length-1;n>=0;n--){for(var P=r.words[n],j=I-1;j>=0;j--){var A=P>>j&1;t!==i[0]&&(t=this.sqr(t)),A!==0||o!==0?(o<<=1,o|=A,(++s==4||n===0&&j===0)&&(t=this.mul(t,i[o]),s=0,o=0)):s=0}I=26}return t},Z.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},Z.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},a.mont=function(e){return new ne(e)},M(ne,Z),ne.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},ne.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},ne.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new a(0)._forceRed(this);var i=e.mul(r),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=i.isub(n).iushrn(this.shift),o=t;return t.cmp(this.m)>=0?o=t.isub(this.m):t.cmpn(0)<0&&(o=t.iadd(this.m)),o._forceRed(this)},ne.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}})(H=x.nmd(H),this)},6138:(H,O,x)=>{var k=x(980),w=x(9199),g=x(7859),M=x(2144),a=x(3663),d=x(3482),c=x(4818),l=x(9509).Buffer;H.exports=function(p,m,h){var u;u=p.padding?p.padding:h?1:4;var y,v=k(p),_=v.modulus.byteLength();if(m.length>_||new M(m).cmp(v.modulus)>=0)throw new Error("decryption error");y=h?c(new M(m),v):a(m,v);var S=l.alloc(_-y.length);if(y=l.concat([S,y],_),u===4)return function(b,T){var C=b.modulus.byteLength(),R=d("sha1").update(l.alloc(0)).digest(),F=R.length;if(T[0]!==0)throw new Error("decryption error");var X=T.slice(1,F+1),Z=T.slice(F+1),ne=g(X,w(Z,F)),e=g(Z,w(ne,C-F-1));if(function(i,n){i=l.from(i),n=l.from(n);var t=0,o=i.length;i.length!==n.length&&(t++,o=Math.min(i.length,n.length));for(var s=-1;++s<o;)t+=i[s]^n[s];return t}(R,e.slice(0,F)))throw new Error("decryption error");for(var r=F;e[r]===0;)r++;if(e[r++]!==1)throw new Error("decryption error");return e.slice(r)}(v,y);if(u===1)return function(b,T,C){for(var R=T.slice(0,2),F=2,X=0;T[F++]!==0;)if(F>=T.length){X++;break}var Z=T.slice(2,F-1);if((R.toString("hex")!=="0002"&&!C||R.toString("hex")!=="0001"&&C)&&X++,Z.length<8&&X++,X)throw new Error("decryption error");return T.slice(F)}(0,y,h);if(u===3)return y;throw new Error("unknown padding")}},6559:(H,O,x)=>{var k=x(980),w=x(1798),g=x(3482),M=x(9199),a=x(7859),d=x(2144),c=x(4818),l=x(3663),p=x(9509).Buffer;H.exports=function(m,h,u){var y;y=m.padding?m.padding:u?1:4;var v,_=k(m);if(y===4)v=function(S,b){var T=S.modulus.byteLength(),C=b.length,R=g("sha1").update(p.alloc(0)).digest(),F=R.length,X=2*F;if(C>T-X-2)throw new Error("message too long");var Z=p.alloc(T-C-X-2),ne=T-F-1,e=w(F),r=a(p.concat([R,Z,p.alloc(1,1),b],ne),M(e,ne)),i=a(e,M(r,F));return new d(p.concat([p.alloc(1),i,r],T))}(_,h);else if(y===1)v=function(S,b,T){var C,R=b.length,F=S.modulus.byteLength();if(R>F-11)throw new Error("message too long");return C=T?p.alloc(F-R-3,255):function(X){for(var Z,ne=p.allocUnsafe(X),e=0,r=w(2*X),i=0;e<X;)i===r.length&&(r=w(2*X),i=0),(Z=r[i++])&&(ne[e++]=Z);return ne}(F-R-3),new d(p.concat([p.from([0,T?1:2]),C,p.alloc(1),b],F))}(_,h,u);else{if(y!==3)throw new Error("unknown padding");if((v=new d(h)).cmp(_.modulus)>=0)throw new Error("data too long for modulus")}return u?l(v,_):c(v,_)}},4818:(H,O,x)=>{var k=x(2144),w=x(9509).Buffer;H.exports=function(g,M){return w.from(g.toRed(k.mont(M.modulus)).redPow(new k(M.publicExponent)).fromRed().toArray())}},7859:H=>{H.exports=function(O,x){for(var k=O.length,w=-1;++w<k;)O[w]^=x[w];return O}},7563:(H,O,x)=>{const k=x(610),w=x(4020),g=x(500),M=x(2806),a=Symbol("encodeFragmentIdentifier");function d(v){if(typeof v!="string"||v.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(v,_){return _.encode?_.strict?k(v):encodeURIComponent(v):v}function l(v,_){return _.decode?w(v):v}function p(v){return Array.isArray(v)?v.sort():typeof v=="object"?p(Object.keys(v)).sort((_,S)=>Number(_)-Number(S)).map(_=>v[_]):v}function m(v){const _=v.indexOf("#");return _!==-1&&(v=v.slice(0,_)),v}function h(v){const _=(v=m(v)).indexOf("?");return _===-1?"":v.slice(_+1)}function u(v,_){return _.parseNumbers&&!Number.isNaN(Number(v))&&typeof v=="string"&&v.trim()!==""?v=Number(v):!_.parseBooleans||v===null||v.toLowerCase()!=="true"&&v.toLowerCase()!=="false"||(v=v.toLowerCase()==="true"),v}function y(v,_){d((_=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},_)).arrayFormatSeparator);const S=function(T){let C;switch(T.arrayFormat){case"index":return(R,F,X)=>{C=/\[(\d*)\]$/.exec(R),R=R.replace(/\[\d*\]$/,""),C?(X[R]===void 0&&(X[R]={}),X[R][C[1]]=F):X[R]=F};case"bracket":return(R,F,X)=>{C=/(\[\])$/.exec(R),R=R.replace(/\[\]$/,""),C?X[R]!==void 0?X[R]=[].concat(X[R],F):X[R]=[F]:X[R]=F};case"colon-list-separator":return(R,F,X)=>{C=/(:list)$/.exec(R),R=R.replace(/:list$/,""),C?X[R]!==void 0?X[R]=[].concat(X[R],F):X[R]=[F]:X[R]=F};case"comma":case"separator":return(R,F,X)=>{const Z=typeof F=="string"&&F.includes(T.arrayFormatSeparator),ne=typeof F=="string"&&!Z&&l(F,T).includes(T.arrayFormatSeparator);F=ne?l(F,T):F;const e=Z||ne?F.split(T.arrayFormatSeparator).map(r=>l(r,T)):F===null?F:l(F,T);X[R]=e};case"bracket-separator":return(R,F,X)=>{const Z=/(\[\])$/.test(R);if(R=R.replace(/\[\]$/,""),!Z)return void(X[R]=F&&l(F,T));const ne=F===null?[]:F.split(T.arrayFormatSeparator).map(e=>l(e,T));X[R]!==void 0?X[R]=[].concat(X[R],ne):X[R]=ne};default:return(R,F,X)=>{X[R]!==void 0?X[R]=[].concat(X[R],F):X[R]=F}}}(_),b=Object.create(null);if(typeof v!="string"||!(v=v.trim().replace(/^[?#&]/,"")))return b;for(const T of v.split("&")){if(T==="")continue;let[C,R]=g(_.decode?T.replace(/\+/g," "):T,"=");R=R===void 0?null:["comma","separator","bracket-separator"].includes(_.arrayFormat)?R:l(R,_),S(l(C,_),R,b)}for(const T of Object.keys(b)){const C=b[T];if(typeof C=="object"&&C!==null)for(const R of Object.keys(C))C[R]=u(C[R],_);else b[T]=u(C,_)}return _.sort===!1?b:(_.sort===!0?Object.keys(b).sort():Object.keys(b).sort(_.sort)).reduce((T,C)=>{const R=b[C];return R&&typeof R=="object"&&!Array.isArray(R)?T[C]=p(R):T[C]=R,T},Object.create(null))}O.extract=h,O.parse=y,O.stringify=(v,_)=>{if(!v)return"";d((_=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},_)).arrayFormatSeparator);const S=R=>_.skipNull&&v[R]==null||_.skipEmptyString&&v[R]==="",b=function(R){switch(R.arrayFormat){case"index":return F=>(X,Z)=>{const ne=X.length;return Z===void 0||R.skipNull&&Z===null||R.skipEmptyString&&Z===""?X:Z===null?[...X,[c(F,R),"[",ne,"]"].join("")]:[...X,[c(F,R),"[",c(ne,R),"]=",c(Z,R)].join("")]};case"bracket":return F=>(X,Z)=>Z===void 0||R.skipNull&&Z===null||R.skipEmptyString&&Z===""?X:Z===null?[...X,[c(F,R),"[]"].join("")]:[...X,[c(F,R),"[]=",c(Z,R)].join("")];case"colon-list-separator":return F=>(X,Z)=>Z===void 0||R.skipNull&&Z===null||R.skipEmptyString&&Z===""?X:Z===null?[...X,[c(F,R),":list="].join("")]:[...X,[c(F,R),":list=",c(Z,R)].join("")];case"comma":case"separator":case"bracket-separator":{const F=R.arrayFormat==="bracket-separator"?"[]=":"=";return X=>(Z,ne)=>ne===void 0||R.skipNull&&ne===null||R.skipEmptyString&&ne===""?Z:(ne=ne===null?"":ne,Z.length===0?[[c(X,R),F,c(ne,R)].join("")]:[[Z,c(ne,R)].join(R.arrayFormatSeparator)])}default:return F=>(X,Z)=>Z===void 0||R.skipNull&&Z===null||R.skipEmptyString&&Z===""?X:Z===null?[...X,c(F,R)]:[...X,[c(F,R),"=",c(Z,R)].join("")]}}(_),T={};for(const R of Object.keys(v))S(R)||(T[R]=v[R]);const C=Object.keys(T);return _.sort!==!1&&C.sort(_.sort),C.map(R=>{const F=v[R];return F===void 0?"":F===null?c(R,_):Array.isArray(F)?F.length===0&&_.arrayFormat==="bracket-separator"?c(R,_)+"[]":F.reduce(b(R),[]).join("&"):c(R,_)+"="+c(F,_)}).filter(R=>R.length>0).join("&")},O.parseUrl=(v,_)=>{_=Object.assign({decode:!0},_);const[S,b]=g(v,"#");return Object.assign({url:S.split("?")[0]||"",query:y(h(v),_)},_&&_.parseFragmentIdentifier&&b?{fragmentIdentifier:l(b,_)}:{})},O.stringifyUrl=(v,_)=>{_=Object.assign({encode:!0,strict:!0,[a]:!0},_);const S=m(v.url).split("?")[0]||"",b=O.extract(v.url),T=O.parse(b,{sort:!1}),C=Object.assign(T,v.query);let R=O.stringify(C,_);R&&(R=`?${R}`);let F=function(X){let Z="";const ne=X.indexOf("#");return ne!==-1&&(Z=X.slice(ne)),Z}(v.url);return v.fragmentIdentifier&&(F=`#${_[a]?c(v.fragmentIdentifier,_):v.fragmentIdentifier}`),`${S}${R}${F}`},O.pick=(v,_,S)=>{S=Object.assign({parseFragmentIdentifier:!0,[a]:!1},S);const{url:b,query:T,fragmentIdentifier:C}=O.parseUrl(v,S);return O.stringifyUrl({url:b,query:M(T,_),fragmentIdentifier:C},S)},O.exclude=(v,_,S)=>{const b=Array.isArray(_)?T=>!_.includes(T):(T,C)=>!_(T,C);return O.pick(v,b,S)}},2587:H=>{function O(x,k){return Object.prototype.hasOwnProperty.call(x,k)}H.exports=function(x,k,w,g){k=k||"&",w=w||"=";var M={};if(typeof x!="string"||x.length===0)return M;var a=/\+/g;x=x.split(k);var d=1e3;g&&typeof g.maxKeys=="number"&&(d=g.maxKeys);var c=x.length;d>0&&c>d&&(c=d);for(var l=0;l<c;++l){var p,m,h,u,y=x[l].replace(a,"%20"),v=y.indexOf(w);v>=0?(p=y.substr(0,v),m=y.substr(v+1)):(p=y,m=""),h=decodeURIComponent(p),u=decodeURIComponent(m),O(M,h)?Array.isArray(M[h])?M[h].push(u):M[h]=[M[h],u]:M[h]=u}return M}},2182:H=>{var O=function(x){switch(typeof x){case"string":return x;case"boolean":return x?"true":"false";case"number":return isFinite(x)?x:"";default:return""}};H.exports=function(x,k,w,g){return k=k||"&",w=w||"=",x===null&&(x=void 0),typeof x=="object"?Object.keys(x).map(function(M){var a=encodeURIComponent(O(M))+w;return Array.isArray(x[M])?x[M].map(function(d){return a+encodeURIComponent(O(d))}).join(k):a+encodeURIComponent(O(x[M]))}).join(k):g?encodeURIComponent(O(g))+w+encodeURIComponent(O(x)):""}},7673:(H,O,x)=>{O.decode=O.parse=x(2587),O.encode=O.stringify=x(2182)},1798:(H,O,x)=>{var k=x(4155),w=65536,g=x(9509).Buffer,M=x.g.crypto||x.g.msCrypto;M&&M.getRandomValues?H.exports=function(a,d){if(a>4294967295)throw new RangeError("requested too many random bytes");var c=g.allocUnsafe(a);if(a>0)if(a>w)for(var l=0;l<a;l+=w)M.getRandomValues(c.slice(l,l+w));else M.getRandomValues(c);return typeof d=="function"?k.nextTick(function(){d(null,c)}):c}:H.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
91
- Use Chrome, Firefox or Internet Explorer 11`)}},7963:(H,O,x)=>{var k=x(4155);function w(){throw new Error(`secure random number generation not supported by this browser
92
- use chrome, FireFox or Internet Explorer 11`)}var g=x(9509),M=x(1798),a=g.Buffer,d=g.kMaxLength,c=x.g.crypto||x.g.msCrypto,l=Math.pow(2,32)-1;function p(u,y){if(typeof u!="number"||u!=u)throw new TypeError("offset must be a number");if(u>l||u<0)throw new TypeError("offset must be a uint32");if(u>d||u>y)throw new RangeError("offset out of range")}function m(u,y,v){if(typeof u!="number"||u!=u)throw new TypeError("size must be a number");if(u>l||u<0)throw new TypeError("size must be a uint32");if(u+y>v||u>d)throw new RangeError("buffer too small")}function h(u,y,v,_){if(k.browser){var S=u.buffer,b=new Uint8Array(S,y,v);return c.getRandomValues(b),_?void k.nextTick(function(){_(null,u)}):u}if(!_)return M(v).copy(u,y),u;M(v,function(T,C){if(T)return _(T);C.copy(u,y),_(null,u)})}c&&c.getRandomValues||!k.browser?(O.randomFill=function(u,y,v,_){if(!(a.isBuffer(u)||u instanceof x.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof y=="function")_=y,y=0,v=u.length;else if(typeof v=="function")_=v,v=u.length-y;else if(typeof _!="function")throw new TypeError('"cb" argument must be a function');return p(y,u.length),m(v,y,u.length),h(u,y,v,_)},O.randomFillSync=function(u,y,v){if(y===void 0&&(y=0),!(a.isBuffer(u)||u instanceof x.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return p(y,u.length),v===void 0&&(v=u.length-y),m(v,y,u.length),h(u,y,v)}):(O.randomFill=w,O.randomFillSync=w)},4281:H=>{var O={};function x(w,g,M){M||(M=Error);var a=function(d){var c,l;function p(m,h,u){return d.call(this,function(y,v,_){return typeof g=="string"?g:g(y,v,_)}(m,h,u))||this}return l=d,(c=p).prototype=Object.create(l.prototype),c.prototype.constructor=c,c.__proto__=l,p}(M);a.prototype.name=M.name,a.prototype.code=w,O[w]=a}function k(w,g){if(Array.isArray(w)){var M=w.length;return w=w.map(function(a){return String(a)}),M>2?"one of ".concat(g," ").concat(w.slice(0,M-1).join(", "),", or ")+w[M-1]:M===2?"one of ".concat(g," ").concat(w[0]," or ").concat(w[1]):"of ".concat(g," ").concat(w[0])}return"of ".concat(g," ").concat(String(w))}x("ERR_INVALID_OPT_VALUE",function(w,g){return'The value "'+g+'" is invalid for option "'+w+'"'},TypeError),x("ERR_INVALID_ARG_TYPE",function(w,g,M){var a,d,c,l,p;if(typeof g=="string"&&(d="not ",g.substr(0,d.length)===d)?(a="must not be",g=g.replace(/^not /,"")):a="must be",function(h,u,y){return(y===void 0||y>h.length)&&(y=h.length),h.substring(y-u.length,y)===u}(w," argument"))c="The ".concat(w," ").concat(a," ").concat(k(g,"type"));else{var m=(typeof p!="number"&&(p=0),p+1>(l=w).length||l.indexOf(".",p)===-1?"argument":"property");c='The "'.concat(w,'" ').concat(m," ").concat(a," ").concat(k(g,"type"))}return c+". Received type ".concat(typeof M)},TypeError),x("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),x("ERR_METHOD_NOT_IMPLEMENTED",function(w){return"The "+w+" method is not implemented"}),x("ERR_STREAM_PREMATURE_CLOSE","Premature close"),x("ERR_STREAM_DESTROYED",function(w){return"Cannot call "+w+" after a stream was destroyed"}),x("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),x("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),x("ERR_STREAM_WRITE_AFTER_END","write after end"),x("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),x("ERR_UNKNOWN_ENCODING",function(w){return"Unknown encoding: "+w},TypeError),x("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),H.exports.q=O},6753:(H,O,x)=>{var k=x(4155),w=Object.keys||function(h){var u=[];for(var y in h)u.push(y);return u};H.exports=l;var g=x(9481),M=x(4229);x(5717)(l,g);for(var a=w(M.prototype),d=0;d<a.length;d++){var c=a[d];l.prototype[c]||(l.prototype[c]=M.prototype[c])}function l(h){if(!(this instanceof l))return new l(h);g.call(this,h),M.call(this,h),this.allowHalfOpen=!0,h&&(h.readable===!1&&(this.readable=!1),h.writable===!1&&(this.writable=!1),h.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||k.nextTick(m,this)}function m(h){h.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(h){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=h,this._writableState.destroyed=h)}})},2725:(H,O,x)=>{H.exports=w;var k=x(4605);function w(g){if(!(this instanceof w))return new w(g);k.call(this,g)}x(5717)(w,k),w.prototype._transform=function(g,M,a){a(null,g)}},9481:(H,O,x)=>{var k,w=x(4155);H.exports=Z,Z.ReadableState=X,x(7187).EventEmitter;var g,M=function(D,K){return D.listeners(K).length},a=x(2503),d=x(8764).Buffer,c=x.g.Uint8Array||function(){},l=x(4616);g=l&&l.debuglog?l.debuglog("stream"):function(){};var p,m,h,u=x(7327),y=x(1195),v=x(2457).getHighWaterMark,_=x(4281).q,S=_.ERR_INVALID_ARG_TYPE,b=_.ERR_STREAM_PUSH_AFTER_EOF,T=_.ERR_METHOD_NOT_IMPLEMENTED,C=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;x(5717)(Z,a);var R=y.errorOrDestroy,F=["error","close","destroy","pause","resume"];function X(D,K,q){k=k||x(6753),D=D||{},typeof q!="boolean"&&(q=K instanceof k),this.objectMode=!!D.objectMode,q&&(this.objectMode=this.objectMode||!!D.readableObjectMode),this.highWaterMark=v(this,D,"readableHighWaterMark",q),this.buffer=new u,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=D.emitClose!==!1,this.autoDestroy=!!D.autoDestroy,this.destroyed=!1,this.defaultEncoding=D.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,D.encoding&&(p||(p=x(2553).s),this.decoder=new p(D.encoding),this.encoding=D.encoding)}function Z(D){if(k=k||x(6753),!(this instanceof Z))return new Z(D);var K=this instanceof k;this._readableState=new X(D,this,K),this.readable=!0,D&&(typeof D.read=="function"&&(this._read=D.read),typeof D.destroy=="function"&&(this._destroy=D.destroy)),a.call(this)}function ne(D,K,q,U,te){g("readableAddChunk",K);var J,ae=D._readableState;if(K===null)ae.reading=!1,function(xe,ce){if(g("onEofChunk"),!ce.ended){if(ce.decoder){var fe=ce.decoder.end();fe&&fe.length&&(ce.buffer.push(fe),ce.length+=ce.objectMode?1:fe.length)}ce.ended=!0,ce.sync?n(xe):(ce.needReadable=!1,ce.emittedReadable||(ce.emittedReadable=!0,t(xe)))}}(D,ae);else if(te||(J=function(xe,ce){var fe,Te;return Te=ce,d.isBuffer(Te)||Te instanceof c||typeof ce=="string"||ce===void 0||xe.objectMode||(fe=new S("chunk",["string","Buffer","Uint8Array"],ce)),fe}(ae,K)),J)R(D,J);else if(ae.objectMode||K&&K.length>0)if(typeof K=="string"||ae.objectMode||Object.getPrototypeOf(K)===d.prototype||(K=function(xe){return d.from(xe)}(K)),U)ae.endEmitted?R(D,new C):e(D,ae,K,!0);else if(ae.ended)R(D,new b);else{if(ae.destroyed)return!1;ae.reading=!1,ae.decoder&&!q?(K=ae.decoder.write(K),ae.objectMode||K.length!==0?e(D,ae,K,!1):o(D,ae)):e(D,ae,K,!1)}else U||(ae.reading=!1,o(D,ae));return!ae.ended&&(ae.length<ae.highWaterMark||ae.length===0)}function e(D,K,q,U){K.flowing&&K.length===0&&!K.sync?(K.awaitDrain=0,D.emit("data",q)):(K.length+=K.objectMode?1:q.length,U?K.buffer.unshift(q):K.buffer.push(q),K.needReadable&&n(D)),o(D,K)}Object.defineProperty(Z.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(D){this._readableState&&(this._readableState.destroyed=D)}}),Z.prototype.destroy=y.destroy,Z.prototype._undestroy=y.undestroy,Z.prototype._destroy=function(D,K){K(D)},Z.prototype.push=function(D,K){var q,U=this._readableState;return U.objectMode?q=!0:typeof D=="string"&&((K=K||U.defaultEncoding)!==U.encoding&&(D=d.from(D,K),K=""),q=!0),ne(this,D,K,!1,q)},Z.prototype.unshift=function(D){return ne(this,D,null,!0,!1)},Z.prototype.isPaused=function(){return this._readableState.flowing===!1},Z.prototype.setEncoding=function(D){p||(p=x(2553).s);var K=new p(D);this._readableState.decoder=K,this._readableState.encoding=this._readableState.decoder.encoding;for(var q=this._readableState.buffer.head,U="";q!==null;)U+=K.write(q.data),q=q.next;return this._readableState.buffer.clear(),U!==""&&this._readableState.buffer.push(U),this._readableState.length=U.length,this};var r=1073741824;function i(D,K){return D<=0||K.length===0&&K.ended?0:K.objectMode?1:D!=D?K.flowing&&K.length?K.buffer.head.data.length:K.length:(D>K.highWaterMark&&(K.highWaterMark=function(q){return q>=r?q=r:(q--,q|=q>>>1,q|=q>>>2,q|=q>>>4,q|=q>>>8,q|=q>>>16,q++),q}(D)),D<=K.length?D:K.ended?K.length:(K.needReadable=!0,0))}function n(D){var K=D._readableState;g("emitReadable",K.needReadable,K.emittedReadable),K.needReadable=!1,K.emittedReadable||(g("emitReadable",K.flowing),K.emittedReadable=!0,w.nextTick(t,D))}function t(D){var K=D._readableState;g("emitReadable_",K.destroyed,K.length,K.ended),K.destroyed||!K.length&&!K.ended||(D.emit("readable"),K.emittedReadable=!1),K.needReadable=!K.flowing&&!K.ended&&K.length<=K.highWaterMark,A(D)}function o(D,K){K.readingMore||(K.readingMore=!0,w.nextTick(s,D,K))}function s(D,K){for(;!K.reading&&!K.ended&&(K.length<K.highWaterMark||K.flowing&&K.length===0);){var q=K.length;if(g("maybeReadMore read 0"),D.read(0),q===K.length)break}K.readingMore=!1}function I(D){var K=D._readableState;K.readableListening=D.listenerCount("readable")>0,K.resumeScheduled&&!K.paused?K.flowing=!0:D.listenerCount("data")>0&&D.resume()}function P(D){g("readable nexttick read 0"),D.read(0)}function j(D,K){g("resume",K.reading),K.reading||D.read(0),K.resumeScheduled=!1,D.emit("resume"),A(D),K.flowing&&!K.reading&&D.read(0)}function A(D){var K=D._readableState;for(g("flow",K.flowing);K.flowing&&D.read()!==null;);}function N(D,K){return K.length===0?null:(K.objectMode?q=K.buffer.shift():!D||D>=K.length?(q=K.decoder?K.buffer.join(""):K.buffer.length===1?K.buffer.first():K.buffer.concat(K.length),K.buffer.clear()):q=K.buffer.consume(D,K.decoder),q);var q}function L(D){var K=D._readableState;g("endReadable",K.endEmitted),K.endEmitted||(K.ended=!0,w.nextTick(z,K,D))}function z(D,K){if(g("endReadableNT",D.endEmitted,D.length),!D.endEmitted&&D.length===0&&(D.endEmitted=!0,K.readable=!1,K.emit("end"),D.autoDestroy)){var q=K._writableState;(!q||q.autoDestroy&&q.finished)&&K.destroy()}}function Y(D,K){for(var q=0,U=D.length;q<U;q++)if(D[q]===K)return q;return-1}Z.prototype.read=function(D){g("read",D),D=parseInt(D,10);var K=this._readableState,q=D;if(D!==0&&(K.emittedReadable=!1),D===0&&K.needReadable&&((K.highWaterMark!==0?K.length>=K.highWaterMark:K.length>0)||K.ended))return g("read: emitReadable",K.length,K.ended),K.length===0&&K.ended?L(this):n(this),null;if((D=i(D,K))===0&&K.ended)return K.length===0&&L(this),null;var U,te=K.needReadable;return g("need readable",te),(K.length===0||K.length-D<K.highWaterMark)&&g("length less than watermark",te=!0),K.ended||K.reading?g("reading or ended",te=!1):te&&(g("do read"),K.reading=!0,K.sync=!0,K.length===0&&(K.needReadable=!0),this._read(K.highWaterMark),K.sync=!1,K.reading||(D=i(q,K))),(U=D>0?N(D,K):null)===null?(K.needReadable=K.length<=K.highWaterMark,D=0):(K.length-=D,K.awaitDrain=0),K.length===0&&(K.ended||(K.needReadable=!0),q!==D&&K.ended&&L(this)),U!==null&&this.emit("data",U),U},Z.prototype._read=function(D){R(this,new T("_read()"))},Z.prototype.pipe=function(D,K){var q=this,U=this._readableState;switch(U.pipesCount){case 0:U.pipes=D;break;case 1:U.pipes=[U.pipes,D];break;default:U.pipes.push(D)}U.pipesCount+=1,g("pipe count=%d opts=%j",U.pipesCount,K);var te=K&&K.end===!1||D===w.stdout||D===w.stderr?Ee:J;function J(){g("onend"),D.end()}U.endEmitted?w.nextTick(te):q.once("end",te),D.on("unpipe",function V(W,Q){g("onunpipe"),W===q&&Q&&Q.hasUnpiped===!1&&(Q.hasUnpiped=!0,g("cleanup"),D.removeListener("close",Te),D.removeListener("finish",ye),D.removeListener("drain",ae),D.removeListener("error",fe),D.removeListener("unpipe",V),q.removeListener("end",J),q.removeListener("end",Ee),q.removeListener("data",ce),xe=!0,!U.awaitDrain||D._writableState&&!D._writableState.needDrain||ae())});var ae=function(V){return function(){var W=V._readableState;g("pipeOnDrain",W.awaitDrain),W.awaitDrain&&W.awaitDrain--,W.awaitDrain===0&&M(V,"data")&&(W.flowing=!0,A(V))}}(q);D.on("drain",ae);var xe=!1;function ce(V){g("ondata");var W=D.write(V);g("dest.write",W),W===!1&&((U.pipesCount===1&&U.pipes===D||U.pipesCount>1&&Y(U.pipes,D)!==-1)&&!xe&&(g("false write response, pause",U.awaitDrain),U.awaitDrain++),q.pause())}function fe(V){g("onerror",V),Ee(),D.removeListener("error",fe),M(D,"error")===0&&R(D,V)}function Te(){D.removeListener("finish",ye),Ee()}function ye(){g("onfinish"),D.removeListener("close",Te),Ee()}function Ee(){g("unpipe"),q.unpipe(D)}return q.on("data",ce),function(V,W,Q){if(typeof V.prependListener=="function")return V.prependListener(W,Q);V._events&&V._events[W]?Array.isArray(V._events[W])?V._events[W].unshift(Q):V._events[W]=[Q,V._events[W]]:V.on(W,Q)}(D,"error",fe),D.once("close",Te),D.once("finish",ye),D.emit("pipe",q),U.flowing||(g("pipe resume"),q.resume()),D},Z.prototype.unpipe=function(D){var K=this._readableState,q={hasUnpiped:!1};if(K.pipesCount===0)return this;if(K.pipesCount===1)return D&&D!==K.pipes||(D||(D=K.pipes),K.pipes=null,K.pipesCount=0,K.flowing=!1,D&&D.emit("unpipe",this,q)),this;if(!D){var U=K.pipes,te=K.pipesCount;K.pipes=null,K.pipesCount=0,K.flowing=!1;for(var J=0;J<te;J++)U[J].emit("unpipe",this,{hasUnpiped:!1});return this}var ae=Y(K.pipes,D);return ae===-1||(K.pipes.splice(ae,1),K.pipesCount-=1,K.pipesCount===1&&(K.pipes=K.pipes[0]),D.emit("unpipe",this,q)),this},Z.prototype.on=function(D,K){var q=a.prototype.on.call(this,D,K),U=this._readableState;return D==="data"?(U.readableListening=this.listenerCount("readable")>0,U.flowing!==!1&&this.resume()):D==="readable"&&(U.endEmitted||U.readableListening||(U.readableListening=U.needReadable=!0,U.flowing=!1,U.emittedReadable=!1,g("on readable",U.length,U.reading),U.length?n(this):U.reading||w.nextTick(P,this))),q},Z.prototype.addListener=Z.prototype.on,Z.prototype.removeListener=function(D,K){var q=a.prototype.removeListener.call(this,D,K);return D==="readable"&&w.nextTick(I,this),q},Z.prototype.removeAllListeners=function(D){var K=a.prototype.removeAllListeners.apply(this,arguments);return D!=="readable"&&D!==void 0||w.nextTick(I,this),K},Z.prototype.resume=function(){var D=this._readableState;return D.flowing||(g("resume"),D.flowing=!D.readableListening,function(K,q){q.resumeScheduled||(q.resumeScheduled=!0,w.nextTick(j,K,q))}(this,D)),D.paused=!1,this},Z.prototype.pause=function(){return g("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(g("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},Z.prototype.wrap=function(D){var K=this,q=this._readableState,U=!1;for(var te in D.on("end",function(){if(g("wrapped end"),q.decoder&&!q.ended){var ae=q.decoder.end();ae&&ae.length&&K.push(ae)}K.push(null)}),D.on("data",function(ae){g("wrapped data"),q.decoder&&(ae=q.decoder.write(ae)),q.objectMode&&ae==null||(q.objectMode||ae&&ae.length)&&(K.push(ae)||(U=!0,D.pause()))}),D)this[te]===void 0&&typeof D[te]=="function"&&(this[te]=function(ae){return function(){return D[ae].apply(D,arguments)}}(te));for(var J=0;J<F.length;J++)D.on(F[J],this.emit.bind(this,F[J]));return this._read=function(ae){g("wrapped _read",ae),U&&(U=!1,D.resume())},this},typeof Symbol=="function"&&(Z.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=x(5850)),m(this)}),Object.defineProperty(Z.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Z.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Z.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(D){this._readableState&&(this._readableState.flowing=D)}}),Z._fromList=N,Object.defineProperty(Z.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(Z.from=function(D,K){return h===void 0&&(h=x(5167)),h(Z,D,K)})},4605:(H,O,x)=>{H.exports=l;var k=x(4281).q,w=k.ERR_METHOD_NOT_IMPLEMENTED,g=k.ERR_MULTIPLE_CALLBACK,M=k.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=k.ERR_TRANSFORM_WITH_LENGTH_0,d=x(6753);function c(h,u){var y=this._transformState;y.transforming=!1;var v=y.writecb;if(v===null)return this.emit("error",new g);y.writechunk=null,y.writecb=null,u!=null&&this.push(u),v(h);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}function l(h){if(!(this instanceof l))return new l(h);d.call(this,h),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,h&&(typeof h.transform=="function"&&(this._transform=h.transform),typeof h.flush=="function"&&(this._flush=h.flush)),this.on("prefinish",p)}function p(){var h=this;typeof this._flush!="function"||this._readableState.destroyed?m(this,null,null):this._flush(function(u,y){m(h,u,y)})}function m(h,u,y){if(u)return h.emit("error",u);if(y!=null&&h.push(y),h._writableState.length)throw new a;if(h._transformState.transforming)throw new M;return h.push(null)}x(5717)(l,d),l.prototype.push=function(h,u){return this._transformState.needTransform=!1,d.prototype.push.call(this,h,u)},l.prototype._transform=function(h,u,y){y(new w("_transform()"))},l.prototype._write=function(h,u,y){var v=this._transformState;if(v.writecb=y,v.writechunk=h,v.writeencoding=u,!v.transforming){var _=this._readableState;(v.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}},l.prototype._read=function(h){var u=this._transformState;u.writechunk===null||u.transforming?u.needTransform=!0:(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform))},l.prototype._destroy=function(h,u){d.prototype._destroy.call(this,h,function(y){u(y)})}},4229:(H,O,x)=>{var k,w=x(4155);function g(o){var s=this;this.next=null,this.entry=null,this.finish=function(){(function(I,P,j){var A=I.entry;for(I.entry=null;A;){var N=A.callback;P.pendingcb--,N(void 0),A=A.next}P.corkedRequestsFree.next=I})(s,o)}}H.exports=Z,Z.WritableState=X;var M,a={deprecate:x(4927)},d=x(2503),c=x(8764).Buffer,l=x.g.Uint8Array||function(){},p=x(1195),m=x(2457).getHighWaterMark,h=x(4281).q,u=h.ERR_INVALID_ARG_TYPE,y=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_MULTIPLE_CALLBACK,_=h.ERR_STREAM_CANNOT_PIPE,S=h.ERR_STREAM_DESTROYED,b=h.ERR_STREAM_NULL_VALUES,T=h.ERR_STREAM_WRITE_AFTER_END,C=h.ERR_UNKNOWN_ENCODING,R=p.errorOrDestroy;function F(){}function X(o,s,I){k=k||x(6753),o=o||{},typeof I!="boolean"&&(I=s instanceof k),this.objectMode=!!o.objectMode,I&&(this.objectMode=this.objectMode||!!o.writableObjectMode),this.highWaterMark=m(this,o,"writableHighWaterMark",I),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var P=o.decodeStrings===!1;this.decodeStrings=!P,this.defaultEncoding=o.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(j){(function(A,N){var L=A._writableState,z=L.sync,Y=L.writecb;if(typeof Y!="function")throw new v;if(function(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}(L),N)(function(K,q,U,te,J){--q.pendingcb,U?(w.nextTick(J,te),w.nextTick(t,K,q),K._writableState.errorEmitted=!0,R(K,te)):(J(te),K._writableState.errorEmitted=!0,R(K,te),t(K,q))})(A,L,z,N,Y);else{var D=i(L)||A.destroyed;D||L.corked||L.bufferProcessing||!L.bufferedRequest||r(A,L),z?w.nextTick(e,A,L,D,Y):e(A,L,D,Y)}})(s,j)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=o.emitClose!==!1,this.autoDestroy=!!o.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new g(this)}function Z(o){var s=this instanceof(k=k||x(6753));if(!s&&!M.call(Z,this))return new Z(o);this._writableState=new X(o,this,s),this.writable=!0,o&&(typeof o.write=="function"&&(this._write=o.write),typeof o.writev=="function"&&(this._writev=o.writev),typeof o.destroy=="function"&&(this._destroy=o.destroy),typeof o.final=="function"&&(this._final=o.final)),d.call(this)}function ne(o,s,I,P,j,A,N){s.writelen=P,s.writecb=N,s.writing=!0,s.sync=!0,s.destroyed?s.onwrite(new S("write")):I?o._writev(j,s.onwrite):o._write(j,A,s.onwrite),s.sync=!1}function e(o,s,I,P){I||function(j,A){A.length===0&&A.needDrain&&(A.needDrain=!1,j.emit("drain"))}(o,s),s.pendingcb--,P(),t(o,s)}function r(o,s){s.bufferProcessing=!0;var I=s.bufferedRequest;if(o._writev&&I&&I.next){var P=s.bufferedRequestCount,j=new Array(P),A=s.corkedRequestsFree;A.entry=I;for(var N=0,L=!0;I;)j[N]=I,I.isBuf||(L=!1),I=I.next,N+=1;j.allBuffers=L,ne(o,s,!0,s.length,j,"",A.finish),s.pendingcb++,s.lastBufferedRequest=null,A.next?(s.corkedRequestsFree=A.next,A.next=null):s.corkedRequestsFree=new g(s),s.bufferedRequestCount=0}else{for(;I;){var z=I.chunk,Y=I.encoding,D=I.callback;if(ne(o,s,!1,s.objectMode?1:z.length,z,Y,D),I=I.next,s.bufferedRequestCount--,s.writing)break}I===null&&(s.lastBufferedRequest=null)}s.bufferedRequest=I,s.bufferProcessing=!1}function i(o){return o.ending&&o.length===0&&o.bufferedRequest===null&&!o.finished&&!o.writing}function n(o,s){o._final(function(I){s.pendingcb--,I&&R(o,I),s.prefinished=!0,o.emit("prefinish"),t(o,s)})}function t(o,s){var I=i(s);if(I&&(function(j,A){A.prefinished||A.finalCalled||(typeof j._final!="function"||A.destroyed?(A.prefinished=!0,j.emit("prefinish")):(A.pendingcb++,A.finalCalled=!0,w.nextTick(n,j,A)))}(o,s),s.pendingcb===0&&(s.finished=!0,o.emit("finish"),s.autoDestroy))){var P=o._readableState;(!P||P.autoDestroy&&P.endEmitted)&&o.destroy()}return I}x(5717)(Z,d),X.prototype.getBuffer=function(){for(var o=this.bufferedRequest,s=[];o;)s.push(o),o=o.next;return s},function(){try{Object.defineProperty(X.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(o){}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(M=Function.prototype[Symbol.hasInstance],Object.defineProperty(Z,Symbol.hasInstance,{value:function(o){return!!M.call(this,o)||this===Z&&o&&o._writableState instanceof X}})):M=function(o){return o instanceof this},Z.prototype.pipe=function(){R(this,new _)},Z.prototype.write=function(o,s,I){var P,j=this._writableState,A=!1,N=!j.objectMode&&(P=o,c.isBuffer(P)||P instanceof l);return N&&!c.isBuffer(o)&&(o=function(L){return c.from(L)}(o)),typeof s=="function"&&(I=s,s=null),N?s="buffer":s||(s=j.defaultEncoding),typeof I!="function"&&(I=F),j.ending?function(L,z){var Y=new T;R(L,Y),w.nextTick(z,Y)}(this,I):(N||function(L,z,Y,D){var K;return Y===null?K=new b:typeof Y=="string"||z.objectMode||(K=new u("chunk",["string","Buffer"],Y)),!K||(R(L,K),w.nextTick(D,K),!1)}(this,j,o,I))&&(j.pendingcb++,A=function(L,z,Y,D,K,q){if(!Y){var U=function(xe,ce,fe){return xe.objectMode||xe.decodeStrings===!1||typeof ce!="string"||(ce=c.from(ce,fe)),ce}(z,D,K);D!==U&&(Y=!0,K="buffer",D=U)}var te=z.objectMode?1:D.length;z.length+=te;var J=z.length<z.highWaterMark;if(J||(z.needDrain=!0),z.writing||z.corked){var ae=z.lastBufferedRequest;z.lastBufferedRequest={chunk:D,encoding:K,isBuf:Y,callback:q,next:null},ae?ae.next=z.lastBufferedRequest:z.bufferedRequest=z.lastBufferedRequest,z.bufferedRequestCount+=1}else ne(L,z,!1,te,D,K,q);return J}(this,j,N,o,s,I)),A},Z.prototype.cork=function(){this._writableState.corked++},Z.prototype.uncork=function(){var o=this._writableState;o.corked&&(o.corked--,o.writing||o.corked||o.bufferProcessing||!o.bufferedRequest||r(this,o))},Z.prototype.setDefaultEncoding=function(o){if(typeof o=="string"&&(o=o.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((o+"").toLowerCase())>-1))throw new C(o);return this._writableState.defaultEncoding=o,this},Object.defineProperty(Z.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Z.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Z.prototype._write=function(o,s,I){I(new y("_write()"))},Z.prototype._writev=null,Z.prototype.end=function(o,s,I){var P=this._writableState;return typeof o=="function"?(I=o,o=null,s=null):typeof s=="function"&&(I=s,s=null),o!=null&&this.write(o,s),P.corked&&(P.corked=1,this.uncork()),P.ending||function(j,A,N){A.ending=!0,t(j,A),N&&(A.finished?w.nextTick(N):j.once("finish",N)),A.ended=!0,j.writable=!1}(this,P,I),this},Object.defineProperty(Z.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Z.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(o){this._writableState&&(this._writableState.destroyed=o)}}),Z.prototype.destroy=p.destroy,Z.prototype._undestroy=p.undestroy,Z.prototype._destroy=function(o,s){s(o)}},5850:(H,O,x)=>{var k,w=x(4155);function g(b,T,C){return T in b?Object.defineProperty(b,T,{value:C,enumerable:!0,configurable:!0,writable:!0}):b[T]=C,b}var M=x(8610),a=Symbol("lastResolve"),d=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),p=Symbol("lastPromise"),m=Symbol("handlePromise"),h=Symbol("stream");function u(b,T){return{value:b,done:T}}function y(b){var T=b[a];if(T!==null){var C=b[h].read();C!==null&&(b[p]=null,b[a]=null,b[d]=null,T(u(C,!1)))}}function v(b){w.nextTick(y,b)}var _=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((g(k={get stream(){return this[h]},next:function(){var b=this,T=this[c];if(T!==null)return Promise.reject(T);if(this[l])return Promise.resolve(u(void 0,!0));if(this[h].destroyed)return new Promise(function(X,Z){w.nextTick(function(){b[c]?Z(b[c]):X(u(void 0,!0))})});var C,R=this[p];if(R)C=new Promise(function(X,Z){return function(ne,e){X.then(function(){Z[l]?ne(u(void 0,!0)):Z[m](ne,e)},e)}}(R,this));else{var F=this[h].read();if(F!==null)return Promise.resolve(u(F,!1));C=new Promise(this[m])}return this[p]=C,C}},Symbol.asyncIterator,function(){return this}),g(k,"return",function(){var b=this;return new Promise(function(T,C){b[h].destroy(null,function(R){R?C(R):T(u(void 0,!0))})})}),k),_);H.exports=function(b){var T,C=Object.create(S,(g(T={},h,{value:b,writable:!0}),g(T,a,{value:null,writable:!0}),g(T,d,{value:null,writable:!0}),g(T,c,{value:null,writable:!0}),g(T,l,{value:b._readableState.endEmitted,writable:!0}),g(T,m,{value:function(R,F){var X=C[h].read();X?(C[p]=null,C[a]=null,C[d]=null,R(u(X,!1))):(C[a]=R,C[d]=F)},writable:!0}),T));return C[p]=null,M(b,function(R){if(R&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=C[d];return F!==null&&(C[p]=null,C[a]=null,C[d]=null,F(R)),void(C[c]=R)}var X=C[a];X!==null&&(C[p]=null,C[a]=null,C[d]=null,X(u(void 0,!0))),C[l]=!0}),b.on("readable",v.bind(null,C)),C}},7327:(H,O,x)=>{function k(c,l){var p=Object.keys(c);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(c);l&&(m=m.filter(function(h){return Object.getOwnPropertyDescriptor(c,h).enumerable})),p.push.apply(p,m)}return p}function w(c,l,p){return l in c?Object.defineProperty(c,l,{value:p,enumerable:!0,configurable:!0,writable:!0}):c[l]=p,c}function g(c,l){for(var p=0;p<l.length;p++){var m=l[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(c,m.key,m)}}var M=x(8764).Buffer,a=x(2361).inspect,d=a&&a.custom||"inspect";H.exports=function(){function c(){(function(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")})(this,c),this.head=null,this.tail=null,this.length=0}var l,p;return l=c,p=[{key:"push",value:function(m){var h={data:m,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length}},{key:"unshift",value:function(m){var h={data:m,next:this.head};this.length===0&&(this.tail=h),this.head=h,++this.length}},{key:"shift",value:function(){if(this.length!==0){var m=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,m}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(m){if(this.length===0)return"";for(var h=this.head,u=""+h.data;h=h.next;)u+=m+h.data;return u}},{key:"concat",value:function(m){if(this.length===0)return M.alloc(0);for(var h,u,y,v=M.allocUnsafe(m>>>0),_=this.head,S=0;_;)h=_.data,u=v,y=S,M.prototype.copy.call(h,u,y),S+=_.data.length,_=_.next;return v}},{key:"consume",value:function(m,h){var u;return m<this.head.data.length?(u=this.head.data.slice(0,m),this.head.data=this.head.data.slice(m)):u=m===this.head.data.length?this.shift():h?this._getString(m):this._getBuffer(m),u}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(m){var h=this.head,u=1,y=h.data;for(m-=y.length;h=h.next;){var v=h.data,_=m>v.length?v.length:m;if(_===v.length?y+=v:y+=v.slice(0,m),(m-=_)==0){_===v.length?(++u,h.next?this.head=h.next:this.head=this.tail=null):(this.head=h,h.data=v.slice(_));break}++u}return this.length-=u,y}},{key:"_getBuffer",value:function(m){var h=M.allocUnsafe(m),u=this.head,y=1;for(u.data.copy(h),m-=u.data.length;u=u.next;){var v=u.data,_=m>v.length?v.length:m;if(v.copy(h,h.length-m,0,_),(m-=_)==0){_===v.length?(++y,u.next?this.head=u.next:this.head=this.tail=null):(this.head=u,u.data=v.slice(_));break}++y}return this.length-=y,h}},{key:d,value:function(m,h){return a(this,function(u){for(var y=1;y<arguments.length;y++){var v=arguments[y]!=null?arguments[y]:{};y%2?k(Object(v),!0).forEach(function(_){w(u,_,v[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(v)):k(Object(v)).forEach(function(_){Object.defineProperty(u,_,Object.getOwnPropertyDescriptor(v,_))})}return u}({},h,{depth:0,customInspect:!1}))}}],p&&g(l.prototype,p),c}()},1195:(H,O,x)=>{var k=x(4155);function w(a,d){M(a,d),g(a)}function g(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function M(a,d){a.emit("error",d)}H.exports={destroy:function(a,d){var c=this,l=this._readableState&&this._readableState.destroyed,p=this._writableState&&this._writableState.destroyed;return l||p?(d?d(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,k.nextTick(M,this,a)):k.nextTick(M,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(m){!d&&m?c._writableState?c._writableState.errorEmitted?k.nextTick(g,c):(c._writableState.errorEmitted=!0,k.nextTick(w,c,m)):k.nextTick(w,c,m):d?(k.nextTick(g,c),d(m)):k.nextTick(g,c)}),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(a,d){var c=a._readableState,l=a._writableState;c&&c.autoDestroy||l&&l.autoDestroy?a.destroy(d):a.emit("error",d)}}},8610:(H,O,x)=>{var k=x(4281).q.ERR_STREAM_PREMATURE_CLOSE;function w(){}H.exports=function g(M,a,d){if(typeof a=="function")return g(M,null,a);a||(a={}),d=function(b){var T=!1;return function(){if(!T){T=!0;for(var C=arguments.length,R=new Array(C),F=0;F<C;F++)R[F]=arguments[F];b.apply(this,R)}}}(d||w);var c=a.readable||a.readable!==!1&&M.readable,l=a.writable||a.writable!==!1&&M.writable,p=function(){M.writable||h()},m=M._writableState&&M._writableState.finished,h=function(){l=!1,m=!0,c||d.call(M)},u=M._readableState&&M._readableState.endEmitted,y=function(){c=!1,u=!0,l||d.call(M)},v=function(b){d.call(M,b)},_=function(){var b;return c&&!u?(M._readableState&&M._readableState.ended||(b=new k),d.call(M,b)):l&&!m?(M._writableState&&M._writableState.ended||(b=new k),d.call(M,b)):void 0},S=function(){M.req.on("finish",h)};return function(b){return b.setHeader&&typeof b.abort=="function"}(M)?(M.on("complete",h),M.on("abort",_),M.req?S():M.on("request",S)):l&&!M._writableState&&(M.on("end",p),M.on("close",p)),M.on("end",y),M.on("finish",h),a.error!==!1&&M.on("error",v),M.on("close",_),function(){M.removeListener("complete",h),M.removeListener("abort",_),M.removeListener("request",S),M.req&&M.req.removeListener("finish",h),M.removeListener("end",p),M.removeListener("close",p),M.removeListener("finish",h),M.removeListener("end",y),M.removeListener("error",v),M.removeListener("close",_)}}},5167:H=>{H.exports=function(){throw new Error("Readable.from is not available in the browser")}},9946:(H,O,x)=>{var k,w=x(4281).q,g=w.ERR_MISSING_ARGS,M=w.ERR_STREAM_DESTROYED;function a(l){if(l)throw l}function d(l){l()}function c(l,p){return l.pipe(p)}H.exports=function(){for(var l=arguments.length,p=new Array(l),m=0;m<l;m++)p[m]=arguments[m];var h,u=function(v){return v.length?typeof v[v.length-1]!="function"?a:v.pop():a}(p);if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new g("streams");var y=p.map(function(v,_){var S=_<p.length-1;return function(b,T,C,R){R=function(Z){var ne=!1;return function(){ne||(ne=!0,Z.apply(void 0,arguments))}}(R);var F=!1;b.on("close",function(){F=!0}),k===void 0&&(k=x(8610)),k(b,{readable:T,writable:C},function(Z){if(Z)return R(Z);F=!0,R()});var X=!1;return function(Z){if(!F&&!X)return X=!0,function(ne){return ne.setHeader&&typeof ne.abort=="function"}(b)?b.abort():typeof b.destroy=="function"?b.destroy():void R(Z||new M("pipe"))}}(v,S,_>0,function(b){h||(h=b),b&&y.forEach(d),S||(y.forEach(d),u(h))})});return p.reduce(c)}},2457:(H,O,x)=>{var k=x(4281).q.ERR_INVALID_OPT_VALUE;H.exports={getHighWaterMark:function(w,g,M,a){var d=function(c,l,p){return c.highWaterMark!=null?c.highWaterMark:l?c[p]:null}(g,a,M);if(d!=null){if(!isFinite(d)||Math.floor(d)!==d||d<0)throw new k(a?M:"highWaterMark",d);return Math.floor(d)}return w.objectMode?16:16384}}},2503:(H,O,x)=>{H.exports=x(7187).EventEmitter},8473:(H,O,x)=>{(O=H.exports=x(9481)).Stream=O,O.Readable=O,O.Writable=x(4229),O.Duplex=x(6753),O.Transform=x(4605),O.PassThrough=x(2725),O.finished=x(8610),O.pipeline=x(9946)},9785:(H,O,x)=>{var k=x(8764).Buffer,w=x(5717),g=x(3349),M=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],d=[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],c=[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],l=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],p=[0,1518500249,1859775393,2400959708,2840853838],m=[1352829926,1548603684,1836072691,2053994217,0];function h(){g.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function u(T,C){return T<<C|T>>>32-C}function y(T,C,R,F,X,Z,ne,e){return u(T+(C^R^F)+Z+ne|0,e)+X|0}function v(T,C,R,F,X,Z,ne,e){return u(T+(C&R|~C&F)+Z+ne|0,e)+X|0}function _(T,C,R,F,X,Z,ne,e){return u(T+((C|~R)^F)+Z+ne|0,e)+X|0}function S(T,C,R,F,X,Z,ne,e){return u(T+(C&F|R&~F)+Z+ne|0,e)+X|0}function b(T,C,R,F,X,Z,ne,e){return u(T+(C^(R|~F))+Z+ne|0,e)+X|0}w(h,g),h.prototype._update=function(){for(var T=M,C=0;C<16;++C)T[C]=this._block.readInt32LE(4*C);for(var R=0|this._a,F=0|this._b,X=0|this._c,Z=0|this._d,ne=0|this._e,e=0|this._a,r=0|this._b,i=0|this._c,n=0|this._d,t=0|this._e,o=0;o<80;o+=1){var s,I;o<16?(s=y(R,F,X,Z,ne,T[a[o]],p[0],c[o]),I=b(e,r,i,n,t,T[d[o]],m[0],l[o])):o<32?(s=v(R,F,X,Z,ne,T[a[o]],p[1],c[o]),I=S(e,r,i,n,t,T[d[o]],m[1],l[o])):o<48?(s=_(R,F,X,Z,ne,T[a[o]],p[2],c[o]),I=_(e,r,i,n,t,T[d[o]],m[2],l[o])):o<64?(s=S(R,F,X,Z,ne,T[a[o]],p[3],c[o]),I=v(e,r,i,n,t,T[d[o]],m[3],l[o])):(s=b(R,F,X,Z,ne,T[a[o]],p[4],c[o]),I=y(e,r,i,n,t,T[d[o]],m[4],l[o])),R=ne,ne=Z,Z=u(X,10),X=F,F=s,e=t,t=n,n=u(i,10),i=r,r=I}var P=this._b+X+n|0;this._b=this._c+Z+t|0,this._c=this._d+ne+e|0,this._d=this._e+R+r|0,this._e=this._a+F+i|0,this._a=P},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var T=k.alloc?k.alloc(20):new k(20);return T.writeInt32LE(this._a,0),T.writeInt32LE(this._b,4),T.writeInt32LE(this._c,8),T.writeInt32LE(this._d,12),T.writeInt32LE(this._e,16),T},H.exports=h},9509:(H,O,x)=>{var k=x(8764),w=k.Buffer;function g(a,d){for(var c in a)d[c]=a[c]}function M(a,d,c){return w(a,d,c)}w.from&&w.alloc&&w.allocUnsafe&&w.allocUnsafeSlow?H.exports=k:(g(k,O),O.Buffer=M),M.prototype=Object.create(w.prototype),g(w,M),M.from=function(a,d,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return w(a,d,c)},M.alloc=function(a,d,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=w(a);return d!==void 0?typeof c=="string"?l.fill(d,c):l.fill(d):l.fill(0),l},M.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return w(a)},M.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return k.SlowBuffer(a)}},2399:(H,O,x)=>{var k,w=x(4155),g=x(8764),M=g.Buffer,a={};for(k in g)g.hasOwnProperty(k)&&k!=="SlowBuffer"&&k!=="Buffer"&&(a[k]=g[k]);var d=a.Buffer={};for(k in M)M.hasOwnProperty(k)&&k!=="allocUnsafe"&&k!=="allocUnsafeSlow"&&(d[k]=M[k]);if(a.Buffer.prototype=M.prototype,d.from&&d.from!==Uint8Array.from||(d.from=function(c,l,p){if(typeof c=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof c);if(c&&c.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 c);return M(c,l,p)}),d.alloc||(d.alloc=function(c,l,p){if(typeof c!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof c);if(c<0||c>=2147483648)throw new RangeError('The value "'+c+'" is invalid for option "size"');var m=M(c);return l&&l.length!==0?typeof p=="string"?m.fill(l,p):m.fill(l):m.fill(0),m}),!a.kStringMaxLength)try{a.kStringMaxLength=w.binding("buffer").kStringMaxLength}catch(c){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),H.exports=a},6099:(H,O,x)=>{var k=x(8764).Buffer;(function(w){w.parser=function(q,U){return new a(q,U)},w.SAXParser=a,w.SAXStream=c,w.createStream=function(q,U){return new c(q,U)},w.MAX_BUFFER_LENGTH=65536;var g,M=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function a(q,U){if(!(this instanceof a))return new a(q,U);var te=this;(function(J){for(var ae=0,xe=M.length;ae<xe;ae++)J[M[ae]]=""})(te),te.q=te.c="",te.bufferCheckPosition=w.MAX_BUFFER_LENGTH,te.opt=U||{},te.opt.lowercase=te.opt.lowercase||te.opt.lowercasetags,te.looseCase=te.opt.lowercase?"toLowerCase":"toUpperCase",te.tags=[],te.closed=te.closedRoot=te.sawRoot=!1,te.tag=te.error=null,te.strict=!!q,te.noscript=!(!q&&!te.opt.noscript),te.state=e.BEGIN,te.strictEntities=te.opt.strictEntities,te.ENTITIES=te.strictEntities?Object.create(w.XML_ENTITIES):Object.create(w.ENTITIES),te.attribList=[],te.opt.xmlns&&(te.ns=Object.create(u)),te.trackPosition=te.opt.position!==!1,te.trackPosition&&(te.position=te.line=te.column=0),i(te,"onready")}w.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(q){function U(){}return U.prototype=q,new U}),Object.keys||(Object.keys=function(q){var U=[];for(var te in q)q.hasOwnProperty(te)&&U.push(te);return U}),a.prototype={end:function(){I(this)},write:function(q){var U=this;if(this.error)throw this.error;if(U.closed)return s(U,"Cannot write after close. Assign an onready handler.");if(q===null)return I(U);typeof q=="object"&&(q=q.toString());for(var te=0,J="";J=K(q,te++),U.c=J,J;)switch(U.trackPosition&&(U.position++,J===`
93
- `?(U.line++,U.column=0):U.column++),U.state){case e.BEGIN:if(U.state=e.BEGIN_WHITESPACE,J==="\uFEFF")continue;D(U,J);continue;case e.BEGIN_WHITESPACE:D(U,J);continue;case e.TEXT:if(U.sawRoot&&!U.closedRoot){for(var ae=te-1;J&&J!=="<"&&J!=="&";)(J=K(q,te++))&&U.trackPosition&&(U.position++,J===`
94
- `?(U.line++,U.column=0):U.column++);U.textNode+=q.substring(ae,te-1)}J!=="<"||U.sawRoot&&U.closedRoot&&!U.strict?(b(J)||U.sawRoot&&!U.closedRoot||P(U,"Text data outside of root node."),J==="&"?U.state=e.TEXT_ENTITY:U.textNode+=J):(U.state=e.OPEN_WAKA,U.startTagPosition=U.position);continue;case e.SCRIPT:J==="<"?U.state=e.SCRIPT_ENDING:U.script+=J;continue;case e.SCRIPT_ENDING:J==="/"?U.state=e.CLOSE_TAG:(U.script+="<"+J,U.state=e.SCRIPT);continue;case e.OPEN_WAKA:if(J==="!")U.state=e.SGML_DECL,U.sgmlDecl="";else if(!b(J))if(R(y,J))U.state=e.OPEN_TAG,U.tagName=J;else if(J==="/")U.state=e.CLOSE_TAG,U.tagName="";else if(J==="?")U.state=e.PROC_INST,U.procInstName=U.procInstBody="";else{if(P(U,"Unencoded <"),U.startTagPosition+1<U.position){var xe=U.position-U.startTagPosition;J=new Array(xe).join(" ")+J}U.textNode+="<"+J,U.state=e.TEXT}continue;case e.SGML_DECL:(U.sgmlDecl+J).toUpperCase()===l?(n(U,"onopencdata"),U.state=e.CDATA,U.sgmlDecl="",U.cdata=""):U.sgmlDecl+J==="--"?(U.state=e.COMMENT,U.comment="",U.sgmlDecl=""):(U.sgmlDecl+J).toUpperCase()===p?(U.state=e.DOCTYPE,(U.doctype||U.sawRoot)&&P(U,"Inappropriately located doctype declaration"),U.doctype="",U.sgmlDecl=""):J===">"?(n(U,"onsgmldeclaration",U.sgmlDecl),U.sgmlDecl="",U.state=e.TEXT):(T(J)&&(U.state=e.SGML_DECL_QUOTED),U.sgmlDecl+=J);continue;case e.SGML_DECL_QUOTED:J===U.q&&(U.state=e.SGML_DECL,U.q=""),U.sgmlDecl+=J;continue;case e.DOCTYPE:J===">"?(U.state=e.TEXT,n(U,"ondoctype",U.doctype),U.doctype=!0):(U.doctype+=J,J==="["?U.state=e.DOCTYPE_DTD:T(J)&&(U.state=e.DOCTYPE_QUOTED,U.q=J));continue;case e.DOCTYPE_QUOTED:U.doctype+=J,J===U.q&&(U.q="",U.state=e.DOCTYPE);continue;case e.DOCTYPE_DTD:U.doctype+=J,J==="]"?U.state=e.DOCTYPE:T(J)&&(U.state=e.DOCTYPE_DTD_QUOTED,U.q=J);continue;case e.DOCTYPE_DTD_QUOTED:U.doctype+=J,J===U.q&&(U.state=e.DOCTYPE_DTD,U.q="");continue;case e.COMMENT:J==="-"?U.state=e.COMMENT_ENDING:U.comment+=J;continue;case e.COMMENT_ENDING:J==="-"?(U.state=e.COMMENT_ENDED,U.comment=o(U.opt,U.comment),U.comment&&n(U,"oncomment",U.comment),U.comment=""):(U.comment+="-"+J,U.state=e.COMMENT);continue;case e.COMMENT_ENDED:J!==">"?(P(U,"Malformed comment"),U.comment+="--"+J,U.state=e.COMMENT):U.state=e.TEXT;continue;case e.CDATA:J==="]"?U.state=e.CDATA_ENDING:U.cdata+=J;continue;case e.CDATA_ENDING:J==="]"?U.state=e.CDATA_ENDING_2:(U.cdata+="]"+J,U.state=e.CDATA);continue;case e.CDATA_ENDING_2:J===">"?(U.cdata&&n(U,"oncdata",U.cdata),n(U,"onclosecdata"),U.cdata="",U.state=e.TEXT):J==="]"?U.cdata+="]":(U.cdata+="]]"+J,U.state=e.CDATA);continue;case e.PROC_INST:J==="?"?U.state=e.PROC_INST_ENDING:b(J)?U.state=e.PROC_INST_BODY:U.procInstName+=J;continue;case e.PROC_INST_BODY:if(!U.procInstBody&&b(J))continue;J==="?"?U.state=e.PROC_INST_ENDING:U.procInstBody+=J;continue;case e.PROC_INST_ENDING:J===">"?(n(U,"onprocessinginstruction",{name:U.procInstName,body:U.procInstBody}),U.procInstName=U.procInstBody="",U.state=e.TEXT):(U.procInstBody+="?"+J,U.state=e.PROC_INST_BODY);continue;case e.OPEN_TAG:R(v,J)?U.tagName+=J:(j(U),J===">"?L(U):J==="/"?U.state=e.OPEN_TAG_SLASH:(b(J)||P(U,"Invalid character in tag name"),U.state=e.ATTRIB));continue;case e.OPEN_TAG_SLASH:J===">"?(L(U,!0),z(U)):(P(U,"Forward-slash in opening tag not followed by >"),U.state=e.ATTRIB);continue;case e.ATTRIB:if(b(J))continue;J===">"?L(U):J==="/"?U.state=e.OPEN_TAG_SLASH:R(y,J)?(U.attribName=J,U.attribValue="",U.state=e.ATTRIB_NAME):P(U,"Invalid attribute name");continue;case e.ATTRIB_NAME:J==="="?U.state=e.ATTRIB_VALUE:J===">"?(P(U,"Attribute without value"),U.attribValue=U.attribName,N(U),L(U)):b(J)?U.state=e.ATTRIB_NAME_SAW_WHITE:R(v,J)?U.attribName+=J:P(U,"Invalid attribute name");continue;case e.ATTRIB_NAME_SAW_WHITE:if(J==="=")U.state=e.ATTRIB_VALUE;else{if(b(J))continue;P(U,"Attribute without value"),U.tag.attributes[U.attribName]="",U.attribValue="",n(U,"onattribute",{name:U.attribName,value:""}),U.attribName="",J===">"?L(U):R(y,J)?(U.attribName=J,U.state=e.ATTRIB_NAME):(P(U,"Invalid attribute name"),U.state=e.ATTRIB)}continue;case e.ATTRIB_VALUE:if(b(J))continue;T(J)?(U.q=J,U.state=e.ATTRIB_VALUE_QUOTED):(P(U,"Unquoted attribute value"),U.state=e.ATTRIB_VALUE_UNQUOTED,U.attribValue=J);continue;case e.ATTRIB_VALUE_QUOTED:if(J!==U.q){J==="&"?U.state=e.ATTRIB_VALUE_ENTITY_Q:U.attribValue+=J;continue}N(U),U.q="",U.state=e.ATTRIB_VALUE_CLOSED;continue;case e.ATTRIB_VALUE_CLOSED:b(J)?U.state=e.ATTRIB:J===">"?L(U):J==="/"?U.state=e.OPEN_TAG_SLASH:R(y,J)?(P(U,"No whitespace between attributes"),U.attribName=J,U.attribValue="",U.state=e.ATTRIB_NAME):P(U,"Invalid attribute name");continue;case e.ATTRIB_VALUE_UNQUOTED:if(!C(J)){J==="&"?U.state=e.ATTRIB_VALUE_ENTITY_U:U.attribValue+=J;continue}N(U),J===">"?L(U):U.state=e.ATTRIB;continue;case e.CLOSE_TAG:if(U.tagName)J===">"?z(U):R(v,J)?U.tagName+=J:U.script?(U.script+="</"+U.tagName,U.tagName="",U.state=e.SCRIPT):(b(J)||P(U,"Invalid tagname in closing tag"),U.state=e.CLOSE_TAG_SAW_WHITE);else{if(b(J))continue;F(y,J)?U.script?(U.script+="</"+J,U.state=e.SCRIPT):P(U,"Invalid tagname in closing tag."):U.tagName=J}continue;case e.CLOSE_TAG_SAW_WHITE:if(b(J))continue;J===">"?z(U):P(U,"Invalid characters in closing tag");continue;case e.TEXT_ENTITY:case e.ATTRIB_VALUE_ENTITY_Q:case e.ATTRIB_VALUE_ENTITY_U:var ce,fe;switch(U.state){case e.TEXT_ENTITY:ce=e.TEXT,fe="textNode";break;case e.ATTRIB_VALUE_ENTITY_Q:ce=e.ATTRIB_VALUE_QUOTED,fe="attribValue";break;case e.ATTRIB_VALUE_ENTITY_U:ce=e.ATTRIB_VALUE_UNQUOTED,fe="attribValue"}J===";"?(U[fe]+=Y(U),U.entity="",U.state=ce):R(U.entity.length?S:_,J)?U.entity+=J:(P(U,"Invalid character in entity name"),U[fe]+="&"+U.entity+J,U.entity="",U.state=ce);continue;default:throw new Error(U,"Unknown state: "+U.state)}return U.position>=U.bufferCheckPosition&&function(Te){for(var ye=Math.max(w.MAX_BUFFER_LENGTH,10),Ee=0,V=0,W=M.length;V<W;V++){var Q=Te[M[V]].length;if(Q>ye)switch(M[V]){case"textNode":t(Te);break;case"cdata":n(Te,"oncdata",Te.cdata),Te.cdata="";break;case"script":n(Te,"onscript",Te.script),Te.script="";break;default:s(Te,"Max buffer length exceeded: "+M[V])}Ee=Math.max(Ee,Q)}var ge=w.MAX_BUFFER_LENGTH-Ee;Te.bufferCheckPosition=ge+Te.position}(U),U},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){var q;t(q=this),q.cdata!==""&&(n(q,"oncdata",q.cdata),q.cdata=""),q.script!==""&&(n(q,"onscript",q.script),q.script="")}};try{g=x(2830).Stream}catch(q){g=function(){}}var d=w.EVENTS.filter(function(q){return q!=="error"&&q!=="end"});function c(q,U){if(!(this instanceof c))return new c(q,U);g.apply(this),this._parser=new a(q,U),this.writable=!0,this.readable=!0;var te=this;this._parser.onend=function(){te.emit("end")},this._parser.onerror=function(J){te.emit("error",J),te._parser.error=null},this._decoder=null,d.forEach(function(J){Object.defineProperty(te,"on"+J,{get:function(){return te._parser["on"+J]},set:function(ae){if(!ae)return te.removeAllListeners(J),te._parser["on"+J]=ae,ae;te.on(J,ae)},enumerable:!0,configurable:!1})})}c.prototype=Object.create(g.prototype,{constructor:{value:c}}),c.prototype.write=function(q){if(typeof k=="function"&&typeof k.isBuffer=="function"&&k.isBuffer(q)){if(!this._decoder){var U=x(2553).s;this._decoder=new U("utf8")}q=this._decoder.write(q)}return this._parser.write(q.toString()),this.emit("data",q),!0},c.prototype.end=function(q){return q&&q.length&&this.write(q),this._parser.end(),!0},c.prototype.on=function(q,U){var te=this;return te._parser["on"+q]||d.indexOf(q)===-1||(te._parser["on"+q]=function(){var J=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);J.splice(0,0,q),te.emit.apply(te,J)}),g.prototype.on.call(te,q,U)};var l="[CDATA[",p="DOCTYPE",m="http://www.w3.org/XML/1998/namespace",h="http://www.w3.org/2000/xmlns/",u={xml:m,xmlns:h},y=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,_=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,S=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function b(q){return q===" "||q===`
95
- `||q==="\r"||q===" "}function T(q){return q==='"'||q==="'"}function C(q){return q===">"||b(q)}function R(q,U){return q.test(U)}function F(q,U){return!R(q,U)}var X,Z,ne,e=0;for(var r in w.STATE={BEGIN:e++,BEGIN_WHITESPACE:e++,TEXT:e++,TEXT_ENTITY:e++,OPEN_WAKA:e++,SGML_DECL:e++,SGML_DECL_QUOTED:e++,DOCTYPE:e++,DOCTYPE_QUOTED:e++,DOCTYPE_DTD:e++,DOCTYPE_DTD_QUOTED:e++,COMMENT_STARTING:e++,COMMENT:e++,COMMENT_ENDING:e++,COMMENT_ENDED:e++,CDATA:e++,CDATA_ENDING:e++,CDATA_ENDING_2:e++,PROC_INST:e++,PROC_INST_BODY:e++,PROC_INST_ENDING:e++,OPEN_TAG:e++,OPEN_TAG_SLASH:e++,ATTRIB:e++,ATTRIB_NAME:e++,ATTRIB_NAME_SAW_WHITE:e++,ATTRIB_VALUE:e++,ATTRIB_VALUE_QUOTED:e++,ATTRIB_VALUE_CLOSED:e++,ATTRIB_VALUE_UNQUOTED:e++,ATTRIB_VALUE_ENTITY_Q:e++,ATTRIB_VALUE_ENTITY_U:e++,CLOSE_TAG:e++,CLOSE_TAG_SAW_WHITE:e++,SCRIPT:e++,SCRIPT_ENDING:e++},w.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},w.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(w.ENTITIES).forEach(function(q){var U=w.ENTITIES[q],te=typeof U=="number"?String.fromCharCode(U):U;w.ENTITIES[q]=te}),w.STATE)w.STATE[w.STATE[r]]=r;function i(q,U,te){q[U]&&q[U](te)}function n(q,U,te){q.textNode&&t(q),i(q,U,te)}function t(q){q.textNode=o(q.opt,q.textNode),q.textNode&&i(q,"ontext",q.textNode),q.textNode=""}function o(q,U){return q.trim&&(U=U.trim()),q.normalize&&(U=U.replace(/\s+/g," ")),U}function s(q,U){return t(q),q.trackPosition&&(U+=`
96
- Line: `+q.line+`
97
- Column: `+q.column+`
98
- Char: `+q.c),U=new Error(U),q.error=U,i(q,"onerror",U),q}function I(q){return q.sawRoot&&!q.closedRoot&&P(q,"Unclosed root tag"),q.state!==e.BEGIN&&q.state!==e.BEGIN_WHITESPACE&&q.state!==e.TEXT&&s(q,"Unexpected end"),t(q),q.c="",q.closed=!0,i(q,"onend"),a.call(q,q.strict,q.opt),q}function P(q,U){if(typeof q!="object"||!(q instanceof a))throw new Error("bad call to strictFail");q.strict&&s(q,U)}function j(q){q.strict||(q.tagName=q.tagName[q.looseCase]());var U=q.tags[q.tags.length-1]||q,te=q.tag={name:q.tagName,attributes:{}};q.opt.xmlns&&(te.ns=U.ns),q.attribList.length=0,n(q,"onopentagstart",te)}function A(q,U){var te=q.indexOf(":")<0?["",q]:q.split(":"),J=te[0],ae=te[1];return U&&q==="xmlns"&&(J="xmlns",ae=""),{prefix:J,local:ae}}function N(q){if(q.strict||(q.attribName=q.attribName[q.looseCase]()),q.attribList.indexOf(q.attribName)!==-1||q.tag.attributes.hasOwnProperty(q.attribName))q.attribName=q.attribValue="";else{if(q.opt.xmlns){var U=A(q.attribName,!0),te=U.prefix,J=U.local;if(te==="xmlns")if(J==="xml"&&q.attribValue!==m)P(q,"xml: prefix must be bound to "+m+`
99
- Actual: `+q.attribValue);else if(J==="xmlns"&&q.attribValue!==h)P(q,"xmlns: prefix must be bound to "+h+`
100
- Actual: `+q.attribValue);else{var ae=q.tag,xe=q.tags[q.tags.length-1]||q;ae.ns===xe.ns&&(ae.ns=Object.create(xe.ns)),ae.ns[J]=q.attribValue}q.attribList.push([q.attribName,q.attribValue])}else q.tag.attributes[q.attribName]=q.attribValue,n(q,"onattribute",{name:q.attribName,value:q.attribValue});q.attribName=q.attribValue=""}}function L(q,U){if(q.opt.xmlns){var te=q.tag,J=A(q.tagName);te.prefix=J.prefix,te.local=J.local,te.uri=te.ns[J.prefix]||"",te.prefix&&!te.uri&&(P(q,"Unbound namespace prefix: "+JSON.stringify(q.tagName)),te.uri=J.prefix);var ae=q.tags[q.tags.length-1]||q;te.ns&&ae.ns!==te.ns&&Object.keys(te.ns).forEach(function(oe){n(q,"onopennamespace",{prefix:oe,uri:te.ns[oe]})});for(var xe=0,ce=q.attribList.length;xe<ce;xe++){var fe=q.attribList[xe],Te=fe[0],ye=fe[1],Ee=A(Te,!0),V=Ee.prefix,W=Ee.local,Q=V===""?"":te.ns[V]||"",ge={name:Te,value:ye,prefix:V,local:W,uri:Q};V&&V!=="xmlns"&&!Q&&(P(q,"Unbound namespace prefix: "+JSON.stringify(V)),ge.uri=V),q.tag.attributes[Te]=ge,n(q,"onattribute",ge)}q.attribList.length=0}q.tag.isSelfClosing=!!U,q.sawRoot=!0,q.tags.push(q.tag),n(q,"onopentag",q.tag),U||(q.noscript||q.tagName.toLowerCase()!=="script"?q.state=e.TEXT:q.state=e.SCRIPT,q.tag=null,q.tagName=""),q.attribName=q.attribValue="",q.attribList.length=0}function z(q){if(!q.tagName)return P(q,"Weird empty close tag."),q.textNode+="</>",void(q.state=e.TEXT);if(q.script){if(q.tagName!=="script")return q.script+="</"+q.tagName+">",q.tagName="",void(q.state=e.SCRIPT);n(q,"onscript",q.script),q.script=""}var U=q.tags.length,te=q.tagName;q.strict||(te=te[q.looseCase]());for(var J=te;U--&&q.tags[U].name!==J;)P(q,"Unexpected close tag");if(U<0)return P(q,"Unmatched closing tag: "+q.tagName),q.textNode+="</"+q.tagName+">",void(q.state=e.TEXT);q.tagName=te;for(var ae=q.tags.length;ae-- >U;){var xe=q.tag=q.tags.pop();q.tagName=q.tag.name,n(q,"onclosetag",q.tagName);var ce={};for(var fe in xe.ns)ce[fe]=xe.ns[fe];var Te=q.tags[q.tags.length-1]||q;q.opt.xmlns&&xe.ns!==Te.ns&&Object.keys(xe.ns).forEach(function(ye){var Ee=xe.ns[ye];n(q,"onclosenamespace",{prefix:ye,uri:Ee})})}U===0&&(q.closedRoot=!0),q.tagName=q.attribValue=q.attribName="",q.attribList.length=0,q.state=e.TEXT}function Y(q){var U,te=q.entity,J=te.toLowerCase(),ae="";return q.ENTITIES[te]?q.ENTITIES[te]:q.ENTITIES[J]?q.ENTITIES[J]:((te=J).charAt(0)==="#"&&(te.charAt(1)==="x"?(te=te.slice(2),ae=(U=parseInt(te,16)).toString(16)):(te=te.slice(1),ae=(U=parseInt(te,10)).toString(10))),te=te.replace(/^0+/,""),isNaN(U)||ae.toLowerCase()!==te?(P(q,"Invalid character entity"),"&"+q.entity+";"):String.fromCodePoint(U))}function D(q,U){U==="<"?(q.state=e.OPEN_WAKA,q.startTagPosition=q.position):b(U)||(P(q,"Non-whitespace before first tag."),q.textNode=U,q.state=e.TEXT)}function K(q,U){var te="";return U<q.length&&(te=q.charAt(U)),te}e=w.STATE,String.fromCodePoint||(X=String.fromCharCode,Z=Math.floor,ne=function(){var q,U,te=[],J=-1,ae=arguments.length;if(!ae)return"";for(var xe="";++J<ae;){var ce=Number(arguments[J]);if(!isFinite(ce)||ce<0||ce>1114111||Z(ce)!==ce)throw RangeError("Invalid code point: "+ce);ce<=65535?te.push(ce):(q=55296+((ce-=65536)>>10),U=ce%1024+56320,te.push(q,U)),(J+1===ae||te.length>16384)&&(xe+=X.apply(null,te),te.length=0)}return xe},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:ne,configurable:!0,writable:!0}):String.fromCodePoint=ne)})(O)},4889:function(H,O,x){var k=x(4155);(function(w,g){if(!w.setImmediate){var M,a,d,c,l,p=1,m={},h=!1,u=w.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(w);y=y&&y.setTimeout?y:w,{}.toString.call(w.process)==="[object process]"?M=function(S){k.nextTick(function(){_(S)})}:function(){if(w.postMessage&&!w.importScripts){var S=!0,b=w.onmessage;return w.onmessage=function(){S=!1},w.postMessage("","*"),w.onmessage=b,S}}()?(c="setImmediate$"+Math.random()+"$",l=function(S){S.source===w&&typeof S.data=="string"&&S.data.indexOf(c)===0&&_(+S.data.slice(c.length))},w.addEventListener?w.addEventListener("message",l,!1):w.attachEvent("onmessage",l),M=function(S){w.postMessage(c+S,"*")}):w.MessageChannel?((d=new MessageChannel).port1.onmessage=function(S){_(S.data)},M=function(S){d.port2.postMessage(S)}):u&&"onreadystatechange"in u.createElement("script")?(a=u.documentElement,M=function(S){var b=u.createElement("script");b.onreadystatechange=function(){_(S),b.onreadystatechange=null,a.removeChild(b),b=null},a.appendChild(b)}):M=function(S){setTimeout(_,0,S)},y.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var b=new Array(arguments.length-1),T=0;T<b.length;T++)b[T]=arguments[T+1];var C={callback:S,args:b};return m[p]=C,M(p),p++},y.clearImmediate=v}function v(S){delete m[S]}function _(S){if(h)setTimeout(_,0,S);else{var b=m[S];if(b){h=!0;try{(function(T){var C=T.callback,R=T.args;switch(R.length){case 0:C();break;case 1:C(R[0]);break;case 2:C(R[0],R[1]);break;case 3:C(R[0],R[1],R[2]);break;default:C.apply(g,R)}})(b)}finally{v(S),h=!1}}}}})(typeof self=="undefined"?x.g===void 0?this:x.g:self)},4189:(H,O,x)=>{var k=x(9509).Buffer;function w(g,M){this._block=k.alloc(g),this._finalSize=M,this._blockSize=g,this._len=0}w.prototype.update=function(g,M){typeof g=="string"&&(M=M||"utf8",g=k.from(g,M));for(var a=this._block,d=this._blockSize,c=g.length,l=this._len,p=0;p<c;){for(var m=l%d,h=Math.min(c-p,d-m),u=0;u<h;u++)a[m+u]=g[p+u];p+=h,(l+=h)%d==0&&this._update(a)}return this._len+=c,this},w.prototype.digest=function(g){var M=this._len%this._blockSize;this._block[M]=128,this._block.fill(0,M+1),M>=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var d=(4294967295&a)>>>0,c=(a-d)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(d,this._blockSize-4)}this._update(this._block);var l=this._hash();return g?l.toString(g):l},w.prototype._update=function(){throw new Error("_update must be implemented by subclass")},H.exports=w},9072:(H,O,x)=>{var k=H.exports=function(w){w=w.toLowerCase();var g=k[w];if(!g)throw new Error(w+" is not supported (we accept pull requests)");return new g};k.sha=x(4448),k.sha1=x(8336),k.sha224=x(8432),k.sha256=x(7499),k.sha384=x(1686),k.sha512=x(7816)},4448:(H,O,x)=>{var k=x(5717),w=x(4189),g=x(9509).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function d(){this.init(),this._w=a,w.call(this,64,56)}function c(p){return p<<30|p>>>2}function l(p,m,h,u){return p===0?m&h|~m&u:p===2?m&h|m&u|h&u:m^h^u}k(d,w),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(p){for(var m,h=this._w,u=0|this._a,y=0|this._b,v=0|this._c,_=0|this._d,S=0|this._e,b=0;b<16;++b)h[b]=p.readInt32BE(4*b);for(;b<80;++b)h[b]=h[b-3]^h[b-8]^h[b-14]^h[b-16];for(var T=0;T<80;++T){var C=~~(T/20),R=0|((m=u)<<5|m>>>27)+l(C,y,v,_)+S+h[T]+M[C];S=_,_=v,v=c(y),y=u,u=R}this._a=u+this._a|0,this._b=y+this._b|0,this._c=v+this._c|0,this._d=_+this._d|0,this._e=S+this._e|0},d.prototype._hash=function(){var p=g.allocUnsafe(20);return p.writeInt32BE(0|this._a,0),p.writeInt32BE(0|this._b,4),p.writeInt32BE(0|this._c,8),p.writeInt32BE(0|this._d,12),p.writeInt32BE(0|this._e,16),p},H.exports=d},8336:(H,O,x)=>{var k=x(5717),w=x(4189),g=x(9509).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function d(){this.init(),this._w=a,w.call(this,64,56)}function c(m){return m<<5|m>>>27}function l(m){return m<<30|m>>>2}function p(m,h,u,y){return m===0?h&u|~h&y:m===2?h&u|h&y|u&y:h^u^y}k(d,w),d.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},d.prototype._update=function(m){for(var h,u=this._w,y=0|this._a,v=0|this._b,_=0|this._c,S=0|this._d,b=0|this._e,T=0;T<16;++T)u[T]=m.readInt32BE(4*T);for(;T<80;++T)u[T]=(h=u[T-3]^u[T-8]^u[T-14]^u[T-16])<<1|h>>>31;for(var C=0;C<80;++C){var R=~~(C/20),F=c(y)+p(R,v,_,S)+b+u[C]+M[R]|0;b=S,S=_,_=l(v),v=y,y=F}this._a=y+this._a|0,this._b=v+this._b|0,this._c=_+this._c|0,this._d=S+this._d|0,this._e=b+this._e|0},d.prototype._hash=function(){var m=g.allocUnsafe(20);return m.writeInt32BE(0|this._a,0),m.writeInt32BE(0|this._b,4),m.writeInt32BE(0|this._c,8),m.writeInt32BE(0|this._d,12),m.writeInt32BE(0|this._e,16),m},H.exports=d},8432:(H,O,x)=>{var k=x(5717),w=x(7499),g=x(4189),M=x(9509).Buffer,a=new Array(64);function d(){this.init(),this._w=a,g.call(this,64,56)}k(d,w),d.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},d.prototype._hash=function(){var c=M.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},H.exports=d},7499:(H,O,x)=>{var k=x(5717),w=x(4189),g=x(9509).Buffer,M=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function d(){this.init(),this._w=a,w.call(this,64,56)}function c(u,y,v){return v^u&(y^v)}function l(u,y,v){return u&y|v&(u|y)}function p(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}function m(u){return(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7)}function h(u){return(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3}k(d,w),d.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},d.prototype._update=function(u){for(var y,v=this._w,_=0|this._a,S=0|this._b,b=0|this._c,T=0|this._d,C=0|this._e,R=0|this._f,F=0|this._g,X=0|this._h,Z=0;Z<16;++Z)v[Z]=u.readInt32BE(4*Z);for(;Z<64;++Z)v[Z]=0|(((y=v[Z-2])>>>17|y<<15)^(y>>>19|y<<13)^y>>>10)+v[Z-7]+h(v[Z-15])+v[Z-16];for(var ne=0;ne<64;++ne){var e=X+m(C)+c(C,R,F)+M[ne]+v[ne]|0,r=p(_)+l(_,S,b)|0;X=F,F=R,R=C,C=T+e|0,T=b,b=S,S=_,_=e+r|0}this._a=_+this._a|0,this._b=S+this._b|0,this._c=b+this._c|0,this._d=T+this._d|0,this._e=C+this._e|0,this._f=R+this._f|0,this._g=F+this._g|0,this._h=X+this._h|0},d.prototype._hash=function(){var u=g.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},H.exports=d},1686:(H,O,x)=>{var k=x(5717),w=x(7816),g=x(4189),M=x(9509).Buffer,a=new Array(160);function d(){this.init(),this._w=a,g.call(this,128,112)}k(d,w),d.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},d.prototype._hash=function(){var c=M.allocUnsafe(48);function l(p,m,h){c.writeInt32BE(p,h),c.writeInt32BE(m,h+4)}return l(this._ah,this._al,0),l(this._bh,this._bl,8),l(this._ch,this._cl,16),l(this._dh,this._dl,24),l(this._eh,this._el,32),l(this._fh,this._fl,40),c},H.exports=d},7816:(H,O,x)=>{var k=x(5717),w=x(4189),g=x(9509).Buffer,M=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function d(){this.init(),this._w=a,w.call(this,128,112)}function c(S,b,T){return T^S&(b^T)}function l(S,b,T){return S&b|T&(S|b)}function p(S,b){return(S>>>28|b<<4)^(b>>>2|S<<30)^(b>>>7|S<<25)}function m(S,b){return(S>>>14|b<<18)^(S>>>18|b<<14)^(b>>>9|S<<23)}function h(S,b){return(S>>>1|b<<31)^(S>>>8|b<<24)^S>>>7}function u(S,b){return(S>>>1|b<<31)^(S>>>8|b<<24)^(S>>>7|b<<25)}function y(S,b){return(S>>>19|b<<13)^(b>>>29|S<<3)^S>>>6}function v(S,b){return(S>>>19|b<<13)^(b>>>29|S<<3)^(S>>>6|b<<26)}function _(S,b){return S>>>0<b>>>0?1:0}k(d,w),d.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},d.prototype._update=function(S){for(var b=this._w,T=0|this._ah,C=0|this._bh,R=0|this._ch,F=0|this._dh,X=0|this._eh,Z=0|this._fh,ne=0|this._gh,e=0|this._hh,r=0|this._al,i=0|this._bl,n=0|this._cl,t=0|this._dl,o=0|this._el,s=0|this._fl,I=0|this._gl,P=0|this._hl,j=0;j<32;j+=2)b[j]=S.readInt32BE(4*j),b[j+1]=S.readInt32BE(4*j+4);for(;j<160;j+=2){var A=b[j-30],N=b[j-30+1],L=h(A,N),z=u(N,A),Y=y(A=b[j-4],N=b[j-4+1]),D=v(N,A),K=b[j-14],q=b[j-14+1],U=b[j-32],te=b[j-32+1],J=z+q|0,ae=L+K+_(J,z)|0;ae=(ae=ae+Y+_(J=J+D|0,D)|0)+U+_(J=J+te|0,te)|0,b[j]=ae,b[j+1]=J}for(var xe=0;xe<160;xe+=2){ae=b[xe],J=b[xe+1];var ce=l(T,C,R),fe=l(r,i,n),Te=p(T,r),ye=p(r,T),Ee=m(X,o),V=m(o,X),W=M[xe],Q=M[xe+1],ge=c(X,Z,ne),oe=c(o,s,I),ue=P+V|0,Ne=e+Ee+_(ue,P)|0;Ne=(Ne=(Ne=Ne+ge+_(ue=ue+oe|0,oe)|0)+W+_(ue=ue+Q|0,Q)|0)+ae+_(ue=ue+J|0,J)|0;var we=ye+fe|0,Me=Te+ce+_(we,ye)|0;e=ne,P=I,ne=Z,I=s,Z=X,s=o,X=F+Ne+_(o=t+ue|0,t)|0,F=R,t=n,R=C,n=i,C=T,i=r,T=Ne+Me+_(r=ue+we|0,ue)|0}this._al=this._al+r|0,this._bl=this._bl+i|0,this._cl=this._cl+n|0,this._dl=this._dl+t|0,this._el=this._el+o|0,this._fl=this._fl+s|0,this._gl=this._gl+I|0,this._hl=this._hl+P|0,this._ah=this._ah+T+_(this._al,r)|0,this._bh=this._bh+C+_(this._bl,i)|0,this._ch=this._ch+R+_(this._cl,n)|0,this._dh=this._dh+F+_(this._dl,t)|0,this._eh=this._eh+X+_(this._el,o)|0,this._fh=this._fh+Z+_(this._fl,s)|0,this._gh=this._gh+ne+_(this._gl,I)|0,this._hh=this._hh+e+_(this._hl,P)|0},d.prototype._hash=function(){var S=g.allocUnsafe(64);function b(T,C,R){S.writeInt32BE(T,R),S.writeInt32BE(C,R+4)}return b(this._ah,this._al,0),b(this._bh,this._bl,8),b(this._ch,this._cl,16),b(this._dh,this._dl,24),b(this._eh,this._el,32),b(this._fh,this._fl,40),b(this._gh,this._gl,48),b(this._hh,this._hl,56),S},H.exports=d},500:H=>{H.exports=(O,x)=>{if(typeof O!="string"||typeof x!="string")throw new TypeError("Expected the arguments to be of type `string`");if(x==="")return[O];const k=O.indexOf(x);return k===-1?[O]:[O.slice(0,k),O.slice(k+x.length)]}},2830:(H,O,x)=>{H.exports=w;var k=x(7187).EventEmitter;function w(){k.call(this)}x(5717)(w,k),w.Readable=x(9481),w.Writable=x(4229),w.Duplex=x(6753),w.Transform=x(4605),w.PassThrough=x(2725),w.finished=x(8610),w.pipeline=x(9946),w.Stream=w,w.prototype.pipe=function(g,M){var a=this;function d(y){g.writable&&g.write(y)===!1&&a.pause&&a.pause()}function c(){a.readable&&a.resume&&a.resume()}a.on("data",d),g.on("drain",c),g._isStdio||M&&M.end===!1||(a.on("end",p),a.on("close",m));var l=!1;function p(){l||(l=!0,g.end())}function m(){l||(l=!0,typeof g.destroy=="function"&&g.destroy())}function h(y){if(u(),k.listenerCount(this,"error")===0)throw y}function u(){a.removeListener("data",d),g.removeListener("drain",c),a.removeListener("end",p),a.removeListener("close",m),a.removeListener("error",h),g.removeListener("error",h),a.removeListener("end",u),a.removeListener("close",u),g.removeListener("close",u)}return a.on("error",h),g.on("error",h),a.on("end",u),a.on("close",u),g.on("close",u),g.emit("pipe",a),g}},8501:(H,O,x)=>{var k=x(1989),w=x(5676),g=x(7529),M=x(584),a=x(8575),d=O;d.request=function(c,l){c=typeof c=="string"?a.parse(c):g(c);var p=x.g.location.protocol.search(/^https?:$/)===-1?"http:":"",m=c.protocol||p,h=c.hostname||c.host,u=c.port,y=c.path||"/";h&&h.indexOf(":")!==-1&&(h="["+h+"]"),c.url=(h?m+"//"+h:"")+(u?":"+u:"")+y,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var v=new k(c);return l&&v.on("response",l),v},d.get=function(c,l){var p=d.request(c,l);return p.end(),p},d.ClientRequest=k,d.IncomingMessage=w.IncomingMessage,d.Agent=function(){},d.Agent.defaultMaxSockets=4,d.globalAgent=new d.Agent,d.STATUS_CODES=M,d.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},8725:(H,O,x)=>{var k;function w(){if(k!==void 0)return k;if(x.g.XMLHttpRequest){k=new x.g.XMLHttpRequest;try{k.open("GET",x.g.XDomainRequest?"/":"https://example.com")}catch(a){k=null}}else k=null;return k}function g(a){var d=w();if(!d)return!1;try{return d.responseType=a,d.responseType===a}catch(c){}return!1}function M(a){return typeof a=="function"}O.fetch=M(x.g.fetch)&&M(x.g.ReadableStream),O.writableStream=M(x.g.WritableStream),O.abortController=M(x.g.AbortController),O.arraybuffer=O.fetch||g("arraybuffer"),O.msstream=!O.fetch&&g("ms-stream"),O.mozchunkedarraybuffer=!O.fetch&&g("moz-chunked-arraybuffer"),O.overrideMimeType=O.fetch||!!w()&&M(w().overrideMimeType),k=null},1989:(H,O,x)=>{var k=x(8764).Buffer,w=x(4155),g=x(8725),M=x(5717),a=x(5676),d=x(8473),c=a.IncomingMessage,l=a.readyStates,p=H.exports=function(h){var u,y=this;d.Writable.call(y),y._opts=h,y._body=[],y._headers={},h.auth&&y.setHeader("Authorization","Basic "+k.from(h.auth).toString("base64")),Object.keys(h.headers).forEach(function(_){y.setHeader(_,h.headers[_])});var v=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!g.abortController)v=!1,u=!0;else if(h.mode==="prefer-streaming")u=!1;else if(h.mode==="allow-wrong-content-type")u=!g.overrideMimeType;else{if(h.mode&&h.mode!=="default"&&h.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");u=!0}y._mode=function(_,S){return g.fetch&&S?"fetch":g.mozchunkedarraybuffer?"moz-chunked-arraybuffer":g.msstream?"ms-stream":g.arraybuffer&&_?"arraybuffer":"text"}(u,v),y._fetchTimer=null,y._socketTimeout=null,y._socketTimer=null,y.on("finish",function(){y._onFinish()})};M(p,d.Writable),p.prototype.setHeader=function(h,u){var y=h.toLowerCase();m.indexOf(y)===-1&&(this._headers[y]={name:h,value:u})},p.prototype.getHeader=function(h){var u=this._headers[h.toLowerCase()];return u?u.value:null},p.prototype.removeHeader=function(h){delete this._headers[h.toLowerCase()]},p.prototype._onFinish=function(){var h=this;if(!h._destroyed){var u=h._opts;"timeout"in u&&u.timeout!==0&&h.setTimeout(u.timeout);var y=h._headers,v=null;u.method!=="GET"&&u.method!=="HEAD"&&(v=new Blob(h._body,{type:(y["content-type"]||{}).value||""}));var _=[];if(Object.keys(y).forEach(function(C){var R=y[C].name,F=y[C].value;Array.isArray(F)?F.forEach(function(X){_.push([R,X])}):_.push([R,F])}),h._mode==="fetch"){var S=null;if(g.abortController){var b=new AbortController;S=b.signal,h._fetchAbortController=b,"requestTimeout"in u&&u.requestTimeout!==0&&(h._fetchTimer=x.g.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},u.requestTimeout))}x.g.fetch(h._opts.url,{method:h._opts.method,headers:_,body:v||void 0,mode:"cors",credentials:u.withCredentials?"include":"same-origin",signal:S}).then(function(C){h._fetchResponse=C,h._resetTimers(!1),h._connect()},function(C){h._resetTimers(!0),h._destroyed||h.emit("error",C)})}else{var T=h._xhr=new x.g.XMLHttpRequest;try{T.open(h._opts.method,h._opts.url,!0)}catch(C){return void w.nextTick(function(){h.emit("error",C)})}"responseType"in T&&(T.responseType=h._mode),"withCredentials"in T&&(T.withCredentials=!!u.withCredentials),h._mode==="text"&&"overrideMimeType"in T&&T.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in u&&(T.timeout=u.requestTimeout,T.ontimeout=function(){h.emit("requestTimeout")}),_.forEach(function(C){T.setRequestHeader(C[0],C[1])}),h._response=null,T.onreadystatechange=function(){switch(T.readyState){case l.LOADING:case l.DONE:h._onXHRProgress()}},h._mode==="moz-chunked-arraybuffer"&&(T.onprogress=function(){h._onXHRProgress()}),T.onerror=function(){h._destroyed||(h._resetTimers(!0),h.emit("error",new Error("XHR error")))};try{T.send(v)}catch(C){return void w.nextTick(function(){h.emit("error",C)})}}}},p.prototype._onXHRProgress=function(){var h=this;h._resetTimers(!1),function(u){try{var y=u.status;return y!==null&&y!==0}catch(v){return!1}}(h._xhr)&&!h._destroyed&&(h._response||h._connect(),h._response._onXHRProgress(h._resetTimers.bind(h)))},p.prototype._connect=function(){var h=this;h._destroyed||(h._response=new c(h._xhr,h._fetchResponse,h._mode,h._resetTimers.bind(h)),h._response.on("error",function(u){h.emit("error",u)}),h.emit("response",h._response))},p.prototype._write=function(h,u,y){this._body.push(h),y()},p.prototype._resetTimers=function(h){var u=this;x.g.clearTimeout(u._socketTimer),u._socketTimer=null,h?(x.g.clearTimeout(u._fetchTimer),u._fetchTimer=null):u._socketTimeout&&(u._socketTimer=x.g.setTimeout(function(){u.emit("timeout")},u._socketTimeout))},p.prototype.abort=p.prototype.destroy=function(h){var u=this;u._destroyed=!0,u._resetTimers(!0),u._response&&(u._response._destroyed=!0),u._xhr?u._xhr.abort():u._fetchAbortController&&u._fetchAbortController.abort(),h&&u.emit("error",h)},p.prototype.end=function(h,u,y){typeof h=="function"&&(y=h,h=void 0),d.Writable.prototype.end.call(this,h,u,y)},p.prototype.setTimeout=function(h,u){var y=this;u&&y.once("timeout",u),y._socketTimeout=h,y._resetTimers(!1)},p.prototype.flushHeaders=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},5676:(H,O,x)=>{var k=x(4155),w=x(8764).Buffer,g=x(8725),M=x(5717),a=x(8473),d=O.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=O.IncomingMessage=function(l,p,m,h){var u=this;if(a.Readable.call(u),u._mode=m,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){k.nextTick(function(){u.emit("close")})}),m==="fetch"){if(u._fetchResponse=p,u.url=p.url,u.statusCode=p.status,u.statusMessage=p.statusText,p.headers.forEach(function(b,T){u.headers[T.toLowerCase()]=b,u.rawHeaders.push(T,b)}),g.writableStream){var y=new WritableStream({write:function(b){return h(!1),new Promise(function(T,C){u._destroyed?C():u.push(w.from(b))?T():u._resumeFetch=T})},close:function(){h(!0),u._destroyed||u.push(null)},abort:function(b){h(!0),u._destroyed||u.emit("error",b)}});try{return void p.body.pipeTo(y).catch(function(b){h(!0),u._destroyed||u.emit("error",b)})}catch(b){}}var v=p.body.getReader();(function b(){v.read().then(function(T){u._destroyed||(h(T.done),T.done?u.push(null):(u.push(w.from(T.value)),b()))}).catch(function(T){h(!0),u._destroyed||u.emit("error",T)})})()}else if(u._xhr=l,u._pos=0,u.url=l.responseURL,u.statusCode=l.status,u.statusMessage=l.statusText,l.getAllResponseHeaders().split(/\r?\n/).forEach(function(b){var T=b.match(/^([^:]+):\s*(.*)/);if(T){var C=T[1].toLowerCase();C==="set-cookie"?(u.headers[C]===void 0&&(u.headers[C]=[]),u.headers[C].push(T[2])):u.headers[C]!==void 0?u.headers[C]+=", "+T[2]:u.headers[C]=T[2],u.rawHeaders.push(T[1],T[2])}}),u._charset="x-user-defined",!g.overrideMimeType){var _=u.rawHeaders["mime-type"];if(_){var S=_.match(/;\s*charset=([^;])(;|$)/);S&&(u._charset=S[1].toLowerCase())}u._charset||(u._charset="utf-8")}};M(c,a.Readable),c.prototype._read=function(){var l=this._resumeFetch;l&&(this._resumeFetch=null,l())},c.prototype._onXHRProgress=function(l){var p=this,m=p._xhr,h=null;switch(p._mode){case"text":if((h=m.responseText).length>p._pos){var u=h.substr(p._pos);if(p._charset==="x-user-defined"){for(var y=w.alloc(u.length),v=0;v<u.length;v++)y[v]=255&u.charCodeAt(v);p.push(y)}else p.push(u,p._charset);p._pos=h.length}break;case"arraybuffer":if(m.readyState!==d.DONE||!m.response)break;h=m.response,p.push(w.from(new Uint8Array(h)));break;case"moz-chunked-arraybuffer":if(h=m.response,m.readyState!==d.LOADING||!h)break;p.push(w.from(new Uint8Array(h)));break;case"ms-stream":if(h=m.response,m.readyState!==d.LOADING)break;var _=new x.g.MSStreamReader;_.onprogress=function(){_.result.byteLength>p._pos&&(p.push(w.from(new Uint8Array(_.result.slice(p._pos)))),p._pos=_.result.byteLength)},_.onload=function(){l(!0),p.push(null)},_.readAsArrayBuffer(h)}p._xhr.readyState===d.DONE&&p._mode!=="ms-stream"&&(l(!0),p.push(null))}},610:H=>{H.exports=O=>encodeURIComponent(O).replace(/[!'()*]/g,x=>`%${x.charCodeAt(0).toString(16).toUpperCase()}`)},2553:(H,O,x)=>{var k=x(9509).Buffer,w=k.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 g(u){var y;switch(this.encoding=function(v){var _=function(S){if(!S)return"utf8";for(var b;;)switch(S){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 S;default:if(b)return;S=(""+S).toLowerCase(),b=!0}}(v);if(typeof _!="string"&&(k.isEncoding===w||!w(v)))throw new Error("Unknown encoding: "+v);return _||v}(u),this.encoding){case"utf16le":this.text=d,this.end=c,y=4;break;case"utf8":this.fillLast=a,y=4;break;case"base64":this.text=l,this.end=p,y=3;break;default:return this.write=m,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=k.allocUnsafe(y)}function M(u){return u<=127?0:u>>5==6?2:u>>4==14?3:u>>3==30?4:u>>6==2?-1:-2}function a(u){var y=this.lastTotal-this.lastNeed,v=function(_,S,b){if((192&S[0])!=128)return _.lastNeed=0,"�";if(_.lastNeed>1&&S.length>1){if((192&S[1])!=128)return _.lastNeed=1,"�";if(_.lastNeed>2&&S.length>2&&(192&S[2])!=128)return _.lastNeed=2,"�"}}(this,u);return v!==void 0?v:this.lastNeed<=u.length?(u.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(u.copy(this.lastChar,y,0,u.length),void(this.lastNeed-=u.length))}function d(u,y){if((u.length-y)%2==0){var v=u.toString("utf16le",y);if(v){var _=v.charCodeAt(v.length-1);if(_>=55296&&_<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=u[u.length-2],this.lastChar[1]=u[u.length-1],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=u[u.length-1],u.toString("utf16le",y,u.length-1)}function c(u){var y=u&&u.length?this.write(u):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,v)}return y}function l(u,y){var v=(u.length-y)%3;return v===0?u.toString("base64",y):(this.lastNeed=3-v,this.lastTotal=3,v===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",y,u.length-v))}function p(u){var y=u&&u.length?this.write(u):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function m(u){return u.toString(this.encoding)}function h(u){return u&&u.length?this.write(u):""}O.s=g,g.prototype.write=function(u){if(u.length===0)return"";var y,v;if(this.lastNeed){if((y=this.fillLast(u))===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<u.length?y?y+this.text(u,v):this.text(u,v):y||""},g.prototype.end=function(u){var y=u&&u.length?this.write(u):"";return this.lastNeed?y+"�":y},g.prototype.text=function(u,y){var v=function(S,b,T){var C=b.length-1;if(C<T)return 0;var R=M(b[C]);return R>=0?(R>0&&(S.lastNeed=R-1),R):--C<T||R===-2?0:(R=M(b[C]))>=0?(R>0&&(S.lastNeed=R-2),R):--C<T||R===-2?0:(R=M(b[C]))>=0?(R>0&&(R===2?R=0:S.lastNeed=R-3),R):0}(this,u,y);if(!this.lastNeed)return u.toString("utf8",y);this.lastTotal=v;var _=u.length-(v-this.lastNeed);return u.copy(this.lastChar,0,_),u.toString("utf8",y,_)},g.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}},4153:H=>{const O=/^[-+]?0x[a-fA-F0-9]+$/,x=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const k={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};H.exports=function(w,g={}){if(g=Object.assign({},k,g),!w||typeof w!="string")return w;let M=w.trim();if(g.skipLike!==void 0&&g.skipLike.test(M))return w;if(g.hex&&O.test(M))return Number.parseInt(M,16);{const d=x.exec(M);if(d){const c=d[1],l=d[2];let p=((a=d[3])&&a.indexOf(".")!==-1&&((a=a.replace(/0+$/,""))==="."?a="0":a[0]==="."?a="0"+a:a[a.length-1]==="."&&(a=a.substr(0,a.length-1))),a);const m=d[4]||d[6];if(!g.leadingZeros&&l.length>0&&c&&M[2]!=="."||!g.leadingZeros&&l.length>0&&!c&&M[1]!==".")return w;{const h=Number(M),u=""+h;return u.search(/[eE]/)!==-1||m?g.eNotation?h:w:M.indexOf(".")!==-1?u==="0"&&p===""||u===p||c&&u==="-"+p?h:w:l?p===u||c+p===u?h:w:M===u||M===c+u?h:w}}return w}var a}},4650:(H,O,x)=>{var k=x(4155),w=x(8473).Transform,g=x(5717);function M(c){w.call(this,c),this._destroyed=!1}function a(c,l,p){p(null,c)}function d(c){return function(l,p,m){return typeof l=="function"&&(m=p,p=l,l={}),typeof p!="function"&&(p=a),typeof m!="function"&&(m=null),c(l,p,m)}}g(M,w),M.prototype.destroy=function(c){if(!this._destroyed){this._destroyed=!0;var l=this;k.nextTick(function(){c&&l.emit("error",c),l.emit("close")})}},H.exports=d(function(c,l,p){var m=new M(c);return m._transform=l,p&&(m._flush=p),m}),H.exports.ctor=d(function(c,l,p){function m(h){if(!(this instanceof m))return new m(h);this.options=Object.assign({},c,h),M.call(this,this.options)}return g(m,M),m.prototype._transform=l,p&&(m.prototype._flush=p),m}),H.exports.obj=d(function(c,l,p){var m=new M(Object.assign({objectMode:!0,highWaterMark:16},c));return m._transform=l,p&&(m._flush=p),m})},5475:function(H,O,x){var k=x.g!==void 0&&x.g||typeof self!="undefined"&&self||window,w=Function.prototype.apply;function g(M,a){this._id=M,this._clearFn=a}O.setTimeout=function(){return new g(w.call(setTimeout,k,arguments),clearTimeout)},O.setInterval=function(){return new g(w.call(setInterval,k,arguments),clearInterval)},O.clearTimeout=O.clearInterval=function(M){M&&M.close()},g.prototype.unref=g.prototype.ref=function(){},g.prototype.close=function(){this._clearFn.call(k,this._id)},O.enroll=function(M,a){clearTimeout(M._idleTimeoutId),M._idleTimeout=a},O.unenroll=function(M){clearTimeout(M._idleTimeoutId),M._idleTimeout=-1},O._unrefActive=O.active=function(M){clearTimeout(M._idleTimeoutId);var a=M._idleTimeout;a>=0&&(M._idleTimeoutId=setTimeout(function(){M._onTimeout&&M._onTimeout()},a))},x(4889),O.setImmediate=typeof self!="undefined"&&self.setImmediate||x.g!==void 0&&x.g.setImmediate||this&&this.setImmediate,O.clearImmediate=typeof self!="undefined"&&self.clearImmediate||x.g!==void 0&&x.g.clearImmediate||this&&this.clearImmediate},2511:function(H,O,x){var k;H=x.nmd(H),function(w){O&&O.nodeType,H&&H.nodeType;var g=typeof x.g=="object"&&x.g;g.global!==g&&g.window!==g&&g.self;var M,a=2147483647,d=36,c=1,l=26,p=38,m=700,h=72,u=128,y="-",v=/^xn--/,_=/[^\x20-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=d-c,C=Math.floor,R=String.fromCharCode;function F(o){throw RangeError(b[o])}function X(o,s){for(var I=o.length,P=[];I--;)P[I]=s(o[I]);return P}function Z(o,s){var I=o.split("@"),P="";return I.length>1&&(P=I[0]+"@",o=I[1]),P+X((o=o.replace(S,".")).split("."),s).join(".")}function ne(o){for(var s,I,P=[],j=0,A=o.length;j<A;)(s=o.charCodeAt(j++))>=55296&&s<=56319&&j<A?(64512&(I=o.charCodeAt(j++)))==56320?P.push(((1023&s)<<10)+(1023&I)+65536):(P.push(s),j--):P.push(s);return P}function e(o){return X(o,function(s){var I="";return s>65535&&(I+=R((s-=65536)>>>10&1023|55296),s=56320|1023&s),I+R(s)}).join("")}function r(o,s){return o+22+75*(o<26)-((s!=0)<<5)}function i(o,s,I){var P=0;for(o=I?C(o/m):o>>1,o+=C(o/s);o>T*l>>1;P+=d)o=C(o/T);return C(P+(T+1)*o/(o+p))}function n(o){var s,I,P,j,A,N,L,z,Y,D,K,q=[],U=o.length,te=0,J=u,ae=h;for((I=o.lastIndexOf(y))<0&&(I=0),P=0;P<I;++P)o.charCodeAt(P)>=128&&F("not-basic"),q.push(o.charCodeAt(P));for(j=I>0?I+1:0;j<U;){for(A=te,N=1,L=d;j>=U&&F("invalid-input"),((z=(K=o.charCodeAt(j++))-48<10?K-22:K-65<26?K-65:K-97<26?K-97:d)>=d||z>C((a-te)/N))&&F("overflow"),te+=z*N,!(z<(Y=L<=ae?c:L>=ae+l?l:L-ae));L+=d)N>C(a/(D=d-Y))&&F("overflow"),N*=D;ae=i(te-A,s=q.length+1,A==0),C(te/s)>a-J&&F("overflow"),J+=C(te/s),te%=s,q.splice(te++,0,J)}return e(q)}function t(o){var s,I,P,j,A,N,L,z,Y,D,K,q,U,te,J,ae=[];for(q=(o=ne(o)).length,s=u,I=0,A=h,N=0;N<q;++N)(K=o[N])<128&&ae.push(R(K));for(P=j=ae.length,j&&ae.push(y);P<q;){for(L=a,N=0;N<q;++N)(K=o[N])>=s&&K<L&&(L=K);for(L-s>C((a-I)/(U=P+1))&&F("overflow"),I+=(L-s)*U,s=L,N=0;N<q;++N)if((K=o[N])<s&&++I>a&&F("overflow"),K==s){for(z=I,Y=d;!(z<(D=Y<=A?c:Y>=A+l?l:Y-A));Y+=d)J=z-D,te=d-D,ae.push(R(r(D+J%te,0))),z=C(J/te);ae.push(R(r(z,0))),A=i(I,U,P==j),I=0,++P}++I,++s}return ae.join("")}M={version:"1.3.2",ucs2:{decode:ne,encode:e},decode:n,encode:t,toASCII:function(o){return Z(o,function(s){return _.test(s)?"xn--"+t(s):s})},toUnicode:function(o){return Z(o,function(s){return v.test(s)?n(s.slice(4).toLowerCase()):s})}},(k=function(){return M}.call(O,x,O,H))===void 0||(H.exports=k)}()},8575:(H,O,x)=>{var k=x(2511),w=x(2502);function g(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}O.parse=b,O.resolve=function(T,C){return b(T,!1,!0).resolve(C)},O.resolveObject=function(T,C){return T?b(T,!1,!0).resolveObject(C):C},O.format=function(T){return w.isString(T)&&(T=b(T)),T instanceof g?T.format():g.prototype.format.call(T)},O.Url=g;var M=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
101
- `," "]),l=["'"].concat(c),p=["%","/","?",";","#"].concat(l),m=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=x(7673);function b(T,C,R){if(T&&w.isObject(T)&&T instanceof g)return T;var F=new g;return F.parse(T,C,R),F}g.prototype.parse=function(T,C,R){if(!w.isString(T))throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var F=T.indexOf("?"),X=F!==-1&&F<T.indexOf("#")?"?":"#",Z=T.split(X);Z[0]=Z[0].replace(/\\/g,"/");var ne=T=Z.join(X);if(ne=ne.trim(),!R&&T.split("#").length===1){var e=d.exec(ne);if(e)return this.path=ne,this.href=ne,this.pathname=e[1],e[2]?(this.search=e[2],this.query=C?S.parse(this.search.substr(1)):this.search.substr(1)):C&&(this.search="",this.query={}),this}var r=M.exec(ne);if(r){var i=(r=r[0]).toLowerCase();this.protocol=i,ne=ne.substr(r.length)}if(R||r||ne.match(/^\/\/[^@\/]+@[^@\/]+/)){var n=ne.substr(0,2)==="//";!n||r&&v[r]||(ne=ne.substr(2),this.slashes=!0)}if(!v[r]&&(n||r&&!_[r])){for(var t,o,s=-1,I=0;I<m.length;I++)(P=ne.indexOf(m[I]))!==-1&&(s===-1||P<s)&&(s=P);for((o=s===-1?ne.lastIndexOf("@"):ne.lastIndexOf("@",s))!==-1&&(t=ne.slice(0,o),ne=ne.slice(o+1),this.auth=decodeURIComponent(t)),s=-1,I=0;I<p.length;I++){var P;(P=ne.indexOf(p[I]))!==-1&&(s===-1||P<s)&&(s=P)}s===-1&&(s=ne.length),this.host=ne.slice(0,s),ne=ne.slice(s),this.parseHost(),this.hostname=this.hostname||"";var j=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!j)for(var A=this.hostname.split(/\./),N=(I=0,A.length);I<N;I++){var L=A[I];if(L&&!L.match(h)){for(var z="",Y=0,D=L.length;Y<D;Y++)L.charCodeAt(Y)>127?z+="x":z+=L[Y];if(!z.match(h)){var K=A.slice(0,I),q=A.slice(I+1),U=L.match(u);U&&(K.push(U[1]),q.unshift(U[2])),q.length&&(ne="/"+q.join(".")+ne),this.hostname=K.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=k.toASCII(this.hostname));var te=this.port?":"+this.port:"",J=this.hostname||"";this.host=J+te,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ne[0]!=="/"&&(ne="/"+ne))}if(!y[i])for(I=0,N=l.length;I<N;I++){var ae=l[I];if(ne.indexOf(ae)!==-1){var xe=encodeURIComponent(ae);xe===ae&&(xe=escape(ae)),ne=ne.split(ae).join(xe)}}var ce=ne.indexOf("#");ce!==-1&&(this.hash=ne.substr(ce),ne=ne.slice(0,ce));var fe=ne.indexOf("?");if(fe!==-1?(this.search=ne.substr(fe),this.query=ne.substr(fe+1),C&&(this.query=S.parse(this.query)),ne=ne.slice(0,fe)):C&&(this.search="",this.query={}),ne&&(this.pathname=ne),_[i]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){te=this.pathname||"";var Te=this.search||"";this.path=te+Te}return this.href=this.format(),this},g.prototype.format=function(){var T=this.auth||"";T&&(T=(T=encodeURIComponent(T)).replace(/%3A/i,":"),T+="@");var C=this.protocol||"",R=this.pathname||"",F=this.hash||"",X=!1,Z="";this.host?X=T+this.host:this.hostname&&(X=T+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(X+=":"+this.port)),this.query&&w.isObject(this.query)&&Object.keys(this.query).length&&(Z=S.stringify(this.query));var ne=this.search||Z&&"?"+Z||"";return C&&C.substr(-1)!==":"&&(C+=":"),this.slashes||(!C||_[C])&&X!==!1?(X="//"+(X||""),R&&R.charAt(0)!=="/"&&(R="/"+R)):X||(X=""),F&&F.charAt(0)!=="#"&&(F="#"+F),ne&&ne.charAt(0)!=="?"&&(ne="?"+ne),C+X+(R=R.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(ne=ne.replace("#","%23"))+F},g.prototype.resolve=function(T){return this.resolveObject(b(T,!1,!0)).format()},g.prototype.resolveObject=function(T){if(w.isString(T)){var C=new g;C.parse(T,!1,!0),T=C}for(var R=new g,F=Object.keys(this),X=0;X<F.length;X++){var Z=F[X];R[Z]=this[Z]}if(R.hash=T.hash,T.href==="")return R.href=R.format(),R;if(T.slashes&&!T.protocol){for(var ne=Object.keys(T),e=0;e<ne.length;e++){var r=ne[e];r!=="protocol"&&(R[r]=T[r])}return _[R.protocol]&&R.hostname&&!R.pathname&&(R.path=R.pathname="/"),R.href=R.format(),R}if(T.protocol&&T.protocol!==R.protocol){if(!_[T.protocol]){for(var i=Object.keys(T),n=0;n<i.length;n++){var t=i[n];R[t]=T[t]}return R.href=R.format(),R}if(R.protocol=T.protocol,T.host||v[T.protocol])R.pathname=T.pathname;else{for(var o=(T.pathname||"").split("/");o.length&&!(T.host=o.shift()););T.host||(T.host=""),T.hostname||(T.hostname=""),o[0]!==""&&o.unshift(""),o.length<2&&o.unshift(""),R.pathname=o.join("/")}if(R.search=T.search,R.query=T.query,R.host=T.host||"",R.auth=T.auth,R.hostname=T.hostname||T.host,R.port=T.port,R.pathname||R.search){var s=R.pathname||"",I=R.search||"";R.path=s+I}return R.slashes=R.slashes||T.slashes,R.href=R.format(),R}var P=R.pathname&&R.pathname.charAt(0)==="/",j=T.host||T.pathname&&T.pathname.charAt(0)==="/",A=j||P||R.host&&T.pathname,N=A,L=R.pathname&&R.pathname.split("/")||[],z=(o=T.pathname&&T.pathname.split("/")||[],R.protocol&&!_[R.protocol]);if(z&&(R.hostname="",R.port=null,R.host&&(L[0]===""?L[0]=R.host:L.unshift(R.host)),R.host="",T.protocol&&(T.hostname=null,T.port=null,T.host&&(o[0]===""?o[0]=T.host:o.unshift(T.host)),T.host=null),A=A&&(o[0]===""||L[0]==="")),j)R.host=T.host||T.host===""?T.host:R.host,R.hostname=T.hostname||T.hostname===""?T.hostname:R.hostname,R.search=T.search,R.query=T.query,L=o;else if(o.length)L||(L=[]),L.pop(),L=L.concat(o),R.search=T.search,R.query=T.query;else if(!w.isNullOrUndefined(T.search))return z&&(R.hostname=R.host=L.shift(),(U=!!(R.host&&R.host.indexOf("@")>0)&&R.host.split("@"))&&(R.auth=U.shift(),R.host=R.hostname=U.shift())),R.search=T.search,R.query=T.query,w.isNull(R.pathname)&&w.isNull(R.search)||(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.href=R.format(),R;if(!L.length)return R.pathname=null,R.search?R.path="/"+R.search:R.path=null,R.href=R.format(),R;for(var Y=L.slice(-1)[0],D=(R.host||T.host||L.length>1)&&(Y==="."||Y==="..")||Y==="",K=0,q=L.length;q>=0;q--)(Y=L[q])==="."?L.splice(q,1):Y===".."?(L.splice(q,1),K++):K&&(L.splice(q,1),K--);if(!A&&!N)for(;K--;K)L.unshift("..");!A||L[0]===""||L[0]&&L[0].charAt(0)==="/"||L.unshift(""),D&&L.join("/").substr(-1)!=="/"&&L.push("");var U,te=L[0]===""||L[0]&&L[0].charAt(0)==="/";return z&&(R.hostname=R.host=te?"":L.length?L.shift():"",(U=!!(R.host&&R.host.indexOf("@")>0)&&R.host.split("@"))&&(R.auth=U.shift(),R.host=R.hostname=U.shift())),(A=A||R.host&&L.length)&&!te&&L.unshift(""),L.length?R.pathname=L.join("/"):(R.pathname=null,R.path=null),w.isNull(R.pathname)&&w.isNull(R.search)||(R.path=(R.pathname?R.pathname:"")+(R.search?R.search:"")),R.auth=T.auth||R.auth,R.slashes=R.slashes||T.slashes,R.href=R.format(),R},g.prototype.parseHost=function(){var T=this.host,C=a.exec(T);C&&((C=C[0])!==":"&&(this.port=C.substr(1)),T=T.substr(0,T.length-C.length)),T&&(this.hostname=T)}},2502:H=>{H.exports={isString:function(O){return typeof O=="string"},isObject:function(O){return typeof O=="object"&&O!==null},isNull:function(O){return O===null},isNullOrUndefined:function(O){return O==null}}},4927:(H,O,x)=>{var k=x(5108);function w(g){try{if(!x.g.localStorage)return!1}catch(a){return!1}var M=x.g.localStorage[g];return M!=null&&String(M).toLowerCase()==="true"}H.exports=function(g,M){if(w("noDeprecation"))return g;var a=!1;return function(){if(!a){if(w("throwDeprecation"))throw new Error(M);w("traceDeprecation")?k.trace(M):k.warn(M),a=!0}return g.apply(this,arguments)}}},384:H=>{H.exports=function(O){return O&&typeof O=="object"&&typeof O.copy=="function"&&typeof O.fill=="function"&&typeof O.readUInt8=="function"}},5955:(H,O,x)=>{var k=x(2584),w=x(8662),g=x(6430),M=x(5692);function a(s){return s.call.bind(s)}var d=typeof BigInt!="undefined",c=typeof Symbol!="undefined",l=a(Object.prototype.toString),p=a(Number.prototype.valueOf),m=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(d)var u=a(BigInt.prototype.valueOf);if(c)var y=a(Symbol.prototype.valueOf);function v(s,I){if(typeof s!="object")return!1;try{return I(s),!0}catch(P){return!1}}function _(s){return l(s)==="[object Map]"}function S(s){return l(s)==="[object Set]"}function b(s){return l(s)==="[object WeakMap]"}function T(s){return l(s)==="[object WeakSet]"}function C(s){return l(s)==="[object ArrayBuffer]"}function R(s){return typeof ArrayBuffer!="undefined"&&(C.working?C(s):s instanceof ArrayBuffer)}function F(s){return l(s)==="[object DataView]"}function X(s){return typeof DataView!="undefined"&&(F.working?F(s):s instanceof DataView)}O.isArgumentsObject=k,O.isGeneratorFunction=w,O.isTypedArray=M,O.isPromise=function(s){return typeof Promise!="undefined"&&s instanceof Promise||s!==null&&typeof s=="object"&&typeof s.then=="function"&&typeof s.catch=="function"},O.isArrayBufferView=function(s){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(s):M(s)||X(s)},O.isUint8Array=function(s){return g(s)==="Uint8Array"},O.isUint8ClampedArray=function(s){return g(s)==="Uint8ClampedArray"},O.isUint16Array=function(s){return g(s)==="Uint16Array"},O.isUint32Array=function(s){return g(s)==="Uint32Array"},O.isInt8Array=function(s){return g(s)==="Int8Array"},O.isInt16Array=function(s){return g(s)==="Int16Array"},O.isInt32Array=function(s){return g(s)==="Int32Array"},O.isFloat32Array=function(s){return g(s)==="Float32Array"},O.isFloat64Array=function(s){return g(s)==="Float64Array"},O.isBigInt64Array=function(s){return g(s)==="BigInt64Array"},O.isBigUint64Array=function(s){return g(s)==="BigUint64Array"},_.working=typeof Map!="undefined"&&_(new Map),O.isMap=function(s){return typeof Map!="undefined"&&(_.working?_(s):s instanceof Map)},S.working=typeof Set!="undefined"&&S(new Set),O.isSet=function(s){return typeof Set!="undefined"&&(S.working?S(s):s instanceof Set)},b.working=typeof WeakMap!="undefined"&&b(new WeakMap),O.isWeakMap=function(s){return typeof WeakMap!="undefined"&&(b.working?b(s):s instanceof WeakMap)},T.working=typeof WeakSet!="undefined"&&T(new WeakSet),O.isWeakSet=function(s){return T(s)},C.working=typeof ArrayBuffer!="undefined"&&C(new ArrayBuffer),O.isArrayBuffer=R,F.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&F(new DataView(new ArrayBuffer(1),0,1)),O.isDataView=X;var Z=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function ne(s){return l(s)==="[object SharedArrayBuffer]"}function e(s){return Z!==void 0&&(ne.working===void 0&&(ne.working=ne(new Z)),ne.working?ne(s):s instanceof Z)}function r(s){return v(s,p)}function i(s){return v(s,m)}function n(s){return v(s,h)}function t(s){return d&&v(s,u)}function o(s){return c&&v(s,y)}O.isSharedArrayBuffer=e,O.isAsyncFunction=function(s){return l(s)==="[object AsyncFunction]"},O.isMapIterator=function(s){return l(s)==="[object Map Iterator]"},O.isSetIterator=function(s){return l(s)==="[object Set Iterator]"},O.isGeneratorObject=function(s){return l(s)==="[object Generator]"},O.isWebAssemblyCompiledModule=function(s){return l(s)==="[object WebAssembly.Module]"},O.isNumberObject=r,O.isStringObject=i,O.isBooleanObject=n,O.isBigIntObject=t,O.isSymbolObject=o,O.isBoxedPrimitive=function(s){return r(s)||i(s)||n(s)||t(s)||o(s)},O.isAnyArrayBuffer=function(s){return typeof Uint8Array!="undefined"&&(R(s)||e(s))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(s){Object.defineProperty(O,s,{enumerable:!1,value:function(){throw new Error(s+" is not supported in userland")}})})},9539:(H,O,x)=>{var k=x(4155),w=x(5108),g=Object.getOwnPropertyDescriptors||function(s){for(var I=Object.keys(s),P={},j=0;j<I.length;j++)P[I[j]]=Object.getOwnPropertyDescriptor(s,I[j]);return P},M=/%[sdj%]/g;O.format=function(s){if(!T(s)){for(var I=[],P=0;P<arguments.length;P++)I.push(l(arguments[P]));return I.join(" ")}P=1;for(var j=arguments,A=j.length,N=String(s).replace(M,function(z){if(z==="%%")return"%";if(P>=A)return z;switch(z){case"%s":return String(j[P++]);case"%d":return Number(j[P++]);case"%j":try{return JSON.stringify(j[P++])}catch(Y){return"[Circular]"}default:return z}}),L=j[P];P<A;L=j[++P])S(L)||!F(L)?N+=" "+L:N+=" "+l(L);return N},O.deprecate=function(s,I){if(k!==void 0&&k.noDeprecation===!0)return s;if(k===void 0)return function(){return O.deprecate(s,I).apply(this,arguments)};var P=!1;return function(){if(!P){if(k.throwDeprecation)throw new Error(I);k.traceDeprecation?w.trace(I):w.error(I),P=!0}return s.apply(this,arguments)}};var a={},d=/^$/;if(k.env.NODE_DEBUG){var c=k.env.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),d=new RegExp("^"+c+"$","i")}function l(s,I){var P={seen:[],stylize:m};return arguments.length>=3&&(P.depth=arguments[2]),arguments.length>=4&&(P.colors=arguments[3]),_(I)?P.showHidden=I:I&&O._extend(P,I),C(P.showHidden)&&(P.showHidden=!1),C(P.depth)&&(P.depth=2),C(P.colors)&&(P.colors=!1),C(P.customInspect)&&(P.customInspect=!0),P.colors&&(P.stylize=p),h(P,s,P.depth)}function p(s,I){var P=l.styles[I];return P?"\x1B["+l.colors[P][0]+"m"+s+"\x1B["+l.colors[P][1]+"m":s}function m(s,I){return s}function h(s,I,P){if(s.customInspect&&I&&ne(I.inspect)&&I.inspect!==O.inspect&&(!I.constructor||I.constructor.prototype!==I)){var j=I.inspect(P,s);return T(j)||(j=h(s,j,P)),j}var A=function(U,te){if(C(te))return U.stylize("undefined","undefined");if(T(te)){var J="'"+JSON.stringify(te).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(J,"string")}return b(te)?U.stylize(""+te,"number"):_(te)?U.stylize(""+te,"boolean"):S(te)?U.stylize("null","null"):void 0}(s,I);if(A)return A;var N=Object.keys(I),L=function(U){var te={};return U.forEach(function(J,ae){te[J]=!0}),te}(N);if(s.showHidden&&(N=Object.getOwnPropertyNames(I)),Z(I)&&(N.indexOf("message")>=0||N.indexOf("description")>=0))return u(I);if(N.length===0){if(ne(I)){var z=I.name?": "+I.name:"";return s.stylize("[Function"+z+"]","special")}if(R(I))return s.stylize(RegExp.prototype.toString.call(I),"regexp");if(X(I))return s.stylize(Date.prototype.toString.call(I),"date");if(Z(I))return u(I)}var Y,D="",K=!1,q=["{","}"];return v(I)&&(K=!0,q=["[","]"]),ne(I)&&(D=" [Function"+(I.name?": "+I.name:"")+"]"),R(I)&&(D=" "+RegExp.prototype.toString.call(I)),X(I)&&(D=" "+Date.prototype.toUTCString.call(I)),Z(I)&&(D=" "+u(I)),N.length!==0||K&&I.length!=0?P<0?R(I)?s.stylize(RegExp.prototype.toString.call(I),"regexp"):s.stylize("[Object]","special"):(s.seen.push(I),Y=K?function(U,te,J,ae,xe){for(var ce=[],fe=0,Te=te.length;fe<Te;++fe)n(te,String(fe))?ce.push(y(U,te,J,ae,String(fe),!0)):ce.push("");return xe.forEach(function(ye){ye.match(/^\d+$/)||ce.push(y(U,te,J,ae,ye,!0))}),ce}(s,I,P,L,N):N.map(function(U){return y(s,I,P,L,U,K)}),s.seen.pop(),function(U,te,J){return U.reduce(function(ae,xe){return xe.indexOf(`
102
- `),ae+xe.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?J[0]+(te===""?"":te+`
103
- `)+" "+U.join(`,
104
- `)+" "+J[1]:J[0]+te+" "+U.join(", ")+" "+J[1]}(Y,D,q)):q[0]+D+q[1]}function u(s){return"["+Error.prototype.toString.call(s)+"]"}function y(s,I,P,j,A,N){var L,z,Y;if((Y=Object.getOwnPropertyDescriptor(I,A)||{value:I[A]}).get?z=Y.set?s.stylize("[Getter/Setter]","special"):s.stylize("[Getter]","special"):Y.set&&(z=s.stylize("[Setter]","special")),n(j,A)||(L="["+A+"]"),z||(s.seen.indexOf(Y.value)<0?(z=S(P)?h(s,Y.value,null):h(s,Y.value,P-1)).indexOf(`
105
- `)>-1&&(z=N?z.split(`
106
- `).map(function(D){return" "+D}).join(`
107
- `).slice(2):`
108
- `+z.split(`
109
- `).map(function(D){return" "+D}).join(`
110
- `)):z=s.stylize("[Circular]","special")),C(L)){if(N&&A.match(/^\d+$/))return z;(L=JSON.stringify(""+A)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.slice(1,-1),L=s.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=s.stylize(L,"string"))}return L+": "+z}function v(s){return Array.isArray(s)}function _(s){return typeof s=="boolean"}function S(s){return s===null}function b(s){return typeof s=="number"}function T(s){return typeof s=="string"}function C(s){return s===void 0}function R(s){return F(s)&&e(s)==="[object RegExp]"}function F(s){return typeof s=="object"&&s!==null}function X(s){return F(s)&&e(s)==="[object Date]"}function Z(s){return F(s)&&(e(s)==="[object Error]"||s instanceof Error)}function ne(s){return typeof s=="function"}function e(s){return Object.prototype.toString.call(s)}function r(s){return s<10?"0"+s.toString(10):s.toString(10)}O.debuglog=function(s){if(s=s.toUpperCase(),!a[s])if(d.test(s)){var I=k.pid;a[s]=function(){var P=O.format.apply(O,arguments);w.error("%s %d: %s",s,I,P)}}else a[s]=function(){};return a[s]},O.inspect=l,l.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]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},O.types=x(5955),O.isArray=v,O.isBoolean=_,O.isNull=S,O.isNullOrUndefined=function(s){return s==null},O.isNumber=b,O.isString=T,O.isSymbol=function(s){return typeof s=="symbol"},O.isUndefined=C,O.isRegExp=R,O.types.isRegExp=R,O.isObject=F,O.isDate=X,O.types.isDate=X,O.isError=Z,O.types.isNativeError=Z,O.isFunction=ne,O.isPrimitive=function(s){return s===null||typeof s=="boolean"||typeof s=="number"||typeof s=="string"||typeof s=="symbol"||s===void 0},O.isBuffer=x(384);var i=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function n(s,I){return Object.prototype.hasOwnProperty.call(s,I)}O.log=function(){var s,I;w.log("%s - %s",(I=[r((s=new Date).getHours()),r(s.getMinutes()),r(s.getSeconds())].join(":"),[s.getDate(),i[s.getMonth()],I].join(" ")),O.format.apply(O,arguments))},O.inherits=x(5717),O._extend=function(s,I){if(!I||!F(I))return s;for(var P=Object.keys(I),j=P.length;j--;)s[P[j]]=I[P[j]];return s};var t=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;function o(s,I){if(!s){var P=new Error("Promise was rejected with a falsy value");P.reason=s,s=P}return I(s)}O.promisify=function(s){if(typeof s!="function")throw new TypeError('The "original" argument must be of type Function');if(t&&s[t]){var I;if(typeof(I=s[t])!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(I,t,{value:I,enumerable:!1,writable:!1,configurable:!0}),I}function I(){for(var P,j,A=new Promise(function(z,Y){P=z,j=Y}),N=[],L=0;L<arguments.length;L++)N.push(arguments[L]);N.push(function(z,Y){z?j(z):P(Y)});try{s.apply(this,N)}catch(z){j(z)}return A}return Object.setPrototypeOf(I,Object.getPrototypeOf(s)),t&&Object.defineProperty(I,t,{value:I,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(I,g(s))},O.promisify.custom=t,O.callbackify=function(s){if(typeof s!="function")throw new TypeError('The "original" argument must be of type Function');function I(){for(var P=[],j=0;j<arguments.length;j++)P.push(arguments[j]);var A=P.pop();if(typeof A!="function")throw new TypeError("The last argument must be of type Function");var N=this,L=function(){return A.apply(N,arguments)};s.apply(this,P).then(function(z){k.nextTick(L.bind(null,null,z))},function(z){k.nextTick(o.bind(null,z,L))})}return Object.setPrototypeOf(I,Object.getPrototypeOf(s)),Object.defineProperties(I,g(s)),I}},7259:(H,O,x)=>{O.TextEncoder=typeof TextEncoder!="undefined"?TextEncoder:x(9539).TextEncoder,O.TextDecoder=typeof TextDecoder!="undefined"?TextDecoder:x(9539).TextDecoder},6430:(H,O,x)=>{var k=x(4029),w=x(3083),g=x(1924),M=x(7296),a=g("Object.prototype.toString"),d=x(6410)(),c=typeof globalThis=="undefined"?x.g:globalThis,l=w(),p=g("String.prototype.slice"),m={},h=Object.getPrototypeOf;d&&M&&h&&k(l,function(y){if(typeof c[y]=="function"){var v=new c[y];if(Symbol.toStringTag in v){var _=h(v),S=M(_,Symbol.toStringTag);if(!S){var b=h(_);S=M(b,Symbol.toStringTag)}m[y]=S.get}}});var u=x(5692);H.exports=function(y){return!!u(y)&&(d&&Symbol.toStringTag in y?function(v){var _=!1;return k(m,function(S,b){if(!_)try{var T=S.call(v);T===b&&(_=T)}catch(C){}}),_}(y):p(a(y),8,-1))}},255:H=>{var O={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};H.exports=function(x){return x&&x.replace?x.replace(/([&"<>'])/g,function(k,w){return O[w]}):x}},3479:(H,O,x)=>{var k=x(4155),w=x(255),g=x(2830).Stream;function M(d,c,l){l=l||0;var p,m,h=(p=c,new Array(l||0).join(p||"")),u=d;if(typeof d=="object"&&(u=d[m=Object.keys(d)[0]])&&u._elem)return u._elem.name=m,u._elem.icount=l,u._elem.indent=c,u._elem.indents=h,u._elem.interrupt=u,u._elem;var y,v=[],_=[];function S(b){Object.keys(b).forEach(function(T){v.push(function(C,R){return C+'="'+w(R)+'"'}(T,b[T]))})}switch(typeof u){case"object":if(u===null)break;u._attr&&S(u._attr),u._cdata&&_.push(("<![CDATA["+u._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),u.forEach&&(y=!1,_.push(""),u.forEach(function(b){typeof b=="object"?Object.keys(b)[0]=="_attr"?S(b._attr):_.push(M(b,c,l+1)):(_.pop(),y=!0,_.push(w(b)))}),y||_.push(""));break;default:_.push(w(u))}return{name:m,interrupt:!1,attributes:v,content:_,icount:l,indents:h,indent:c}}function a(d,c,l){if(typeof c!="object")return d(!1,c);var p=c.interrupt?1:c.content.length;function m(){for(;c.content.length;){var u=c.content.shift();if(u!==void 0){if(h(u))return;a(d,u)}}d(!1,(p>1?c.indents:"")+(c.name?"</"+c.name+">":"")+(c.indent&&!l?`
111
- `:"")),l&&l()}function h(u){return!!u.interrupt&&(u.interrupt.append=d,u.interrupt.end=m,u.interrupt=!1,d(!0),!0)}if(d(!1,c.indents+(c.name?"<"+c.name:"")+(c.attributes.length?" "+c.attributes.join(" "):"")+(p?c.name?">":"":c.name?"/>":"")+(c.indent&&p>1?`
112
- `:"")),!p)return d(!1,c.indent?`
113
- `:"");h(c)||m()}H.exports=function(d,c){typeof c!="object"&&(c={indent:c});var l,p,m=c.stream?new g:null,h="",u=!1,y=c.indent?c.indent===!0?" ":c.indent:"",v=!0;function _(C){v?k.nextTick(C):C()}function S(C,R){if(R!==void 0&&(h+=R),C&&!u&&(m=m||new g,u=!0),C&&u){var F=h;_(function(){m.emit("data",F)}),h=""}}function b(C,R){a(S,M(C,y,y?1:0),R)}function T(){if(m){var C=h;_(function(){m.emit("data",C),m.emit("end"),m.readable=!1,m.emit("close")})}}return _(function(){v=!1}),c.declaration&&(p={version:"1.0",encoding:(l=c.declaration).encoding||"UTF-8"},l.standalone&&(p.standalone=l.standalone),b({"?xml":{_attr:p}}),h=h.replace("/>","?>")),d&&d.forEach?d.forEach(function(C,R){var F;R+1===d.length&&(F=T),b(C,F)}):b(d,T),m?(m.readable=!0,m):h},H.exports.element=H.exports.Element=function(){return{_elem:M(Array.prototype.slice.call(arguments)),push:function(d){if(!this.append)throw new Error("not assigned to a parent!");var c=this,l=this._elem.indent;a(this.append,M(d,l,this._elem.icount+(l?1:0)),function(){c.append(!0)})},close:function(d){d!==void 0&&this.push(d),this.end&&this.end()}}}},306:function(H,O){(function(){O.stripBOM=function(x){return x[0]==="\uFEFF"?x.substring(1):x}}).call(this)},4096:function(H,O,x){(function(){var k,w,g,M,a,d={}.hasOwnProperty;k=x(5532),w=x(8381).defaults,M=function(c){return typeof c=="string"&&(c.indexOf("&")>=0||c.indexOf(">")>=0||c.indexOf("<")>=0)},a=function(c){return"<![CDATA["+g(c)+"]]>"},g=function(c){return c.replace("]]>","]]]]><![CDATA[>")},O.Builder=function(){function c(l){var p,m,h;for(p in this.options={},m=w[.2])d.call(m,p)&&(h=m[p],this.options[p]=h);for(p in l)d.call(l,p)&&(h=l[p],this.options[p]=h)}return c.prototype.buildObject=function(l){var p,m,h,u,y,v;return p=this.options.attrkey,m=this.options.charkey,Object.keys(l).length===1&&this.options.rootName===w[.2].rootName?l=l[y=Object.keys(l)[0]]:y=this.options.rootName,v=this,h=function(_,S){var b,T,C,R,F,X;if(typeof S!="object")v.options.cdata&&M(S)?_.raw(a(S)):_.txt(S);else if(Array.isArray(S)){for(R in S)if(d.call(S,R))for(F in T=S[R])C=T[F],_=h(_.ele(F),C).up()}else for(F in S)if(d.call(S,F))if(T=S[F],F===p){if(typeof T=="object")for(b in T)X=T[b],_=_.att(b,X)}else if(F===m)_=v.options.cdata&&M(T)?_.raw(a(T)):_.txt(T);else if(Array.isArray(T))for(R in T)d.call(T,R)&&(_=typeof(C=T[R])=="string"?v.options.cdata&&M(C)?_.ele(F).raw(a(C)).up():_.ele(F,C).up():h(_.ele(F),C).up());else typeof T=="object"?_=h(_.ele(F),T).up():typeof T=="string"&&v.options.cdata&&M(T)?_=_.ele(F).raw(a(T)).up():(T==null&&(T=""),_=_.ele(F,T.toString()).up());return _},u=k.create(y,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),h(u,l).end(this.options.renderOpts)},c}()}).call(this)},8381:function(H,O){(function(){O.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
114
- `},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},9082:function(H,O,x){(function(){var k,w,g,M,a,d,c,l,p=function(h,u){return function(){return h.apply(u,arguments)}},m={}.hasOwnProperty;c=x(6099),g=x(7187),k=x(306),d=x(7526),l=x(5475).setImmediate,w=x(8381).defaults,M=function(h){return typeof h=="object"&&h!=null&&Object.keys(h).length===0},a=function(h,u,y){var v,_;for(v=0,_=h.length;v<_;v++)u=(0,h[v])(u,y);return u},O.Parser=function(h){function u(y){var v,_,S;if(this.parseStringPromise=p(this.parseStringPromise,this),this.parseString=p(this.parseString,this),this.reset=p(this.reset,this),this.assignOrPush=p(this.assignOrPush,this),this.processAsync=p(this.processAsync,this),!(this instanceof O.Parser))return new O.Parser(y);for(v in this.options={},_=w[.2])m.call(_,v)&&(S=_[v],this.options[v]=S);for(v in y)m.call(y,v)&&(S=y[v],this.options[v]=S);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(d.normalize)),this.reset()}return function(y,v){for(var _ in v)m.call(v,_)&&(y[_]=v[_]);function S(){this.constructor=y}S.prototype=v.prototype,y.prototype=new S,y.__super__=v.prototype}(u,h),u.prototype.processAsync=function(){var y,v;try{return this.remaining.length<=this.options.chunkSize?(y=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(y),this.saxParser.close()):(y=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(y),l(this.processAsync))}catch(_){if(v=_,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(v)}},u.prototype.assignOrPush=function(y,v,_){return v in y?(y[v]instanceof Array||(y[v]=[y[v]]),y[v].push(_)):this.options.explicitArray?y[v]=[_]:y[v]=_},u.prototype.reset=function(){var y,v,_,S,b;return this.removeAllListeners(),this.saxParser=c.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(b=this,function(T){if(b.saxParser.resume(),!b.saxParser.errThrown)return b.saxParser.errThrown=!0,b.emit("error",T)}),this.saxParser.onend=function(T){return function(){if(!T.saxParser.ended)return T.saxParser.ended=!0,T.emit("end",T.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,S=[],y=this.options.attrkey,v=this.options.charkey,this.saxParser.onopentag=function(T){return function(C){var R,F,X,Z,ne;if((X={})[v]="",!T.options.ignoreAttrs)for(R in ne=C.attributes)m.call(ne,R)&&(y in X||T.options.mergeAttrs||(X[y]={}),F=T.options.attrValueProcessors?a(T.options.attrValueProcessors,C.attributes[R],R):C.attributes[R],Z=T.options.attrNameProcessors?a(T.options.attrNameProcessors,R):R,T.options.mergeAttrs?T.assignOrPush(X,Z,F):X[y][Z]=F);return X["#name"]=T.options.tagNameProcessors?a(T.options.tagNameProcessors,C.name):C.name,T.options.xmlns&&(X[T.options.xmlnskey]={uri:C.uri,local:C.local}),S.push(X)}}(this),this.saxParser.onclosetag=function(T){return function(){var C,R,F,X,Z,ne,e,r,i,n;if(ne=S.pop(),Z=ne["#name"],T.options.explicitChildren&&T.options.preserveChildrenOrder||delete ne["#name"],ne.cdata===!0&&(C=ne.cdata,delete ne.cdata),i=S[S.length-1],ne[v].match(/^\s*$/)&&!C?(R=ne[v],delete ne[v]):(T.options.trim&&(ne[v]=ne[v].trim()),T.options.normalize&&(ne[v]=ne[v].replace(/\s{2,}/g," ").trim()),ne[v]=T.options.valueProcessors?a(T.options.valueProcessors,ne[v],Z):ne[v],Object.keys(ne).length===1&&v in ne&&!T.EXPLICIT_CHARKEY&&(ne=ne[v])),M(ne)&&(ne=T.options.emptyTag!==""?T.options.emptyTag:R),T.options.validator!=null&&(n="/"+function(){var t,o,s;for(s=[],t=0,o=S.length;t<o;t++)X=S[t],s.push(X["#name"]);return s}().concat(Z).join("/"),function(){var t;try{ne=T.options.validator(n,i&&i[Z],ne)}catch(o){return t=o,T.emit("error",t)}}()),T.options.explicitChildren&&!T.options.mergeAttrs&&typeof ne=="object")if(T.options.preserveChildrenOrder){if(i){for(F in i[T.options.childkey]=i[T.options.childkey]||[],e={},ne)m.call(ne,F)&&(e[F]=ne[F]);i[T.options.childkey].push(e),delete ne["#name"],Object.keys(ne).length===1&&v in ne&&!T.EXPLICIT_CHARKEY&&(ne=ne[v])}}else X={},T.options.attrkey in ne&&(X[T.options.attrkey]=ne[T.options.attrkey],delete ne[T.options.attrkey]),!T.options.charsAsChildren&&T.options.charkey in ne&&(X[T.options.charkey]=ne[T.options.charkey],delete ne[T.options.charkey]),Object.getOwnPropertyNames(ne).length>0&&(X[T.options.childkey]=ne),ne=X;return S.length>0?T.assignOrPush(i,Z,ne):(T.options.explicitRoot&&(r=ne,(ne={})[Z]=r),T.resultObject=ne,T.saxParser.ended=!0,T.emit("end",T.resultObject))}}(this),_=function(T){return function(C){var R,F;if(F=S[S.length-1])return F[v]+=C,T.options.explicitChildren&&T.options.preserveChildrenOrder&&T.options.charsAsChildren&&(T.options.includeWhiteChars||C.replace(/\\n/g,"").trim()!=="")&&(F[T.options.childkey]=F[T.options.childkey]||[],(R={"#name":"__text__"})[v]=C,T.options.normalize&&(R[v]=R[v].replace(/\s{2,}/g," ").trim()),F[T.options.childkey].push(R)),F}}(this),this.saxParser.ontext=_,this.saxParser.oncdata=function(T){var C;if(C=_(T))return C.cdata=!0}},u.prototype.parseString=function(y,v){var _;v!=null&&typeof v=="function"&&(this.on("end",function(S){return this.reset(),v(null,S)}),this.on("error",function(S){return this.reset(),v(S)}));try{return(y=y.toString()).trim()===""?(this.emit("end",null),!0):(y=k.stripBOM(y),this.options.async?(this.remaining=y,l(this.processAsync),this.saxParser):this.saxParser.write(y).close())}catch(S){if(_=S,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",_),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw _}},u.prototype.parseStringPromise=function(y){return new Promise((v=this,function(_,S){return v.parseString(y,function(b,T){return b?S(b):_(T)})}));var v},u}(g),O.parseString=function(h,u,y){var v,_;return y!=null?(typeof y=="function"&&(v=y),typeof u=="object"&&(_=u)):(typeof u=="function"&&(v=u),_={}),new O.Parser(_).parseString(h,v)},O.parseStringPromise=function(h,u){var y;return typeof u=="object"&&(y=u),new O.Parser(y).parseStringPromise(h)}}).call(this)},7526:function(H,O){(function(){var x;x=new RegExp(/(?!xmlns)^.*:/),O.normalize=function(k){return k.toLowerCase()},O.firstCharLowerCase=function(k){return k.charAt(0).toLowerCase()+k.slice(1)},O.stripPrefix=function(k){return k.replace(x,"")},O.parseNumbers=function(k){return isNaN(k)||(k=k%1==0?parseInt(k,10):parseFloat(k)),k},O.parseBooleans=function(k){return/^(?:true|false)$/i.test(k)&&(k=k.toLowerCase()==="true"),k}}).call(this)},5055:function(H,O,x){(function(){var k,w,g,M,a={}.hasOwnProperty;w=x(8381),k=x(4096),g=x(9082),M=x(7526),O.defaults=w.defaults,O.processors=M,O.ValidationError=function(d){function c(l){this.message=l}return function(l,p){for(var m in p)a.call(p,m)&&(l[m]=p[m]);function h(){this.constructor=l}h.prototype=p.prototype,l.prototype=new h,l.__super__=p.prototype}(c,Error),c}(),O.Builder=k.Builder,O.Parser=g.Parser,O.parseString=g.parseString,O.parseStringPromise=g.parseStringPromise}).call(this)},7557:function(H){(function(){H.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},9335:function(H){(function(){H.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},8369:function(H){(function(){var O,x,k,w,g,M,a,d=[].slice,c={}.hasOwnProperty;O=function(){var l,p,m,h,u,y;if(y=arguments[0],u=2<=arguments.length?d.call(arguments,1):[],g(Object.assign))Object.assign.apply(null,arguments);else for(l=0,m=u.length;l<m;l++)if((h=u[l])!=null)for(p in h)c.call(h,p)&&(y[p]=h[p]);return y},g=function(l){return!!l&&Object.prototype.toString.call(l)==="[object Function]"},M=function(l){var p;return!!l&&((p=typeof l)=="function"||p==="object")},k=function(l){return g(Array.isArray)?Array.isArray(l):Object.prototype.toString.call(l)==="[object Array]"},w=function(l){var p;if(k(l))return!l.length;for(p in l)if(c.call(l,p))return!1;return!0},a=function(l){var p,m;return M(l)&&(m=Object.getPrototypeOf(l))&&(p=m.constructor)&&typeof p=="function"&&p instanceof p&&Function.prototype.toString.call(p)===Function.prototype.toString.call(Object)},x=function(l){return g(l.valueOf)?l.valueOf():l},H.exports.assign=O,H.exports.isFunction=g,H.exports.isObject=M,H.exports.isArray=k,H.exports.isEmpty=w,H.exports.isPlainObject=a,H.exports.getValue=x}).call(this)},594:function(H){(function(){H.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},2750:function(H,O,x){(function(){var k;k=x(9335),x(2026),H.exports=function(){function w(g,M,a){if(this.parent=g,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),M==null)throw new Error("Missing attribute name. "+this.debugInfo(M));this.name=this.stringify.name(M),this.value=this.stringify.attValue(a),this.type=k.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(w.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(w.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(w.prototype,"textContent",{get:function(){return this.value},set:function(g){return this.value=g||""}}),Object.defineProperty(w.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(w.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(w.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(w.prototype,"specified",{get:function(){return!0}}),w.prototype.clone=function(){return Object.create(this)},w.prototype.toString=function(g){return this.options.writer.attribute(this,this.options.writer.filterOptions(g))},w.prototype.debugInfo=function(g){return(g=g||this.name)==null?"parent: <"+this.parent.name+">":"attribute: {"+g+"}, parent: <"+this.parent.name+">"},w.prototype.isEqualNode=function(g){return g.namespaceURI===this.namespaceURI&&g.prefix===this.prefix&&g.localName===this.localName&&g.value===this.value},w}()}).call(this)},6170:function(H,O,x){(function(){var k,w,g={}.hasOwnProperty;k=x(9335),w=x(6488),H.exports=function(M){function a(d,c){if(a.__super__.constructor.call(this,d),c==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=k.CData,this.value=this.stringify.cdata(c)}return function(d,c){for(var l in c)g.call(c,l)&&(d[l]=c[l]);function p(){this.constructor=d}p.prototype=c.prototype,d.prototype=new p,d.__super__=c.prototype}(a,M),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(d){return this.options.writer.cdata(this,this.options.writer.filterOptions(d))},a}(w)}).call(this)},6488:function(H,O,x){(function(){var k,w={}.hasOwnProperty;k=x(2026),H.exports=function(g){function M(a){M.__super__.constructor.call(this,a),this.value=""}return function(a,d){for(var c in d)w.call(d,c)&&(a[c]=d[c]);function l(){this.constructor=a}l.prototype=d.prototype,a.prototype=new l,a.__super__=d.prototype}(M,g),Object.defineProperty(M.prototype,"data",{get:function(){return this.value},set:function(a){return this.value=a||""}}),Object.defineProperty(M.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(M.prototype,"textContent",{get:function(){return this.value},set:function(a){return this.value=a||""}}),M.prototype.clone=function(){return Object.create(this)},M.prototype.substringData=function(a,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},M.prototype.appendData=function(a){throw new Error("This DOM method is not implemented."+this.debugInfo())},M.prototype.insertData=function(a,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},M.prototype.deleteData=function(a,d){throw new Error("This DOM method is not implemented."+this.debugInfo())},M.prototype.replaceData=function(a,d,c){throw new Error("This DOM method is not implemented."+this.debugInfo())},M.prototype.isEqualNode=function(a){return!!M.__super__.isEqualNode.apply(this,arguments).isEqualNode(a)&&a.data===this.data},M}(k)}).call(this)},2096:function(H,O,x){(function(){var k,w,g={}.hasOwnProperty;k=x(9335),w=x(6488),H.exports=function(M){function a(d,c){if(a.__super__.constructor.call(this,d),c==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=k.Comment,this.value=this.stringify.comment(c)}return function(d,c){for(var l in c)g.call(c,l)&&(d[l]=c[l]);function p(){this.constructor=d}p.prototype=c.prototype,d.prototype=new p,d.__super__=c.prototype}(a,M),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(d){return this.options.writer.comment(this,this.options.writer.filterOptions(d))},a}(w)}).call(this)},383:function(H,O,x){(function(){var k,w;k=x(3933),w=x(6210),H.exports=function(){function g(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new k,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(g.prototype,"parameterNames",{get:function(){return new w(Object.keys(this.defaultParams))}}),g.prototype.getParameter=function(M){return this.params.hasOwnProperty(M)?this.params[M]:null},g.prototype.canSetParameter=function(M,a){return!0},g.prototype.setParameter=function(M,a){return a!=null?this.params[M]=a:delete this.params[M]},g}()}).call(this)},3933:function(H){(function(){H.exports=function(){function O(){}return O.prototype.handleError=function(x){throw new Error(x)},O}()}).call(this)},1770:function(H){(function(){H.exports=function(){function O(){}return O.prototype.hasFeature=function(x,k){return!0},O.prototype.createDocumentType=function(x,k,w){throw new Error("This DOM method is not implemented.")},O.prototype.createDocument=function(x,k,w){throw new Error("This DOM method is not implemented.")},O.prototype.createHTMLDocument=function(x){throw new Error("This DOM method is not implemented.")},O.prototype.getFeature=function(x,k){throw new Error("This DOM method is not implemented.")},O}()}).call(this)},6210:function(H){(function(){H.exports=function(){function O(x){this.arr=x||[]}return Object.defineProperty(O.prototype,"length",{get:function(){return this.arr.length}}),O.prototype.item=function(x){return this.arr[x]||null},O.prototype.contains=function(x){return this.arr.indexOf(x)!==-1},O}()}).call(this)},1179:function(H,O,x){(function(){var k,w,g={}.hasOwnProperty;w=x(2026),k=x(9335),H.exports=function(M){function a(d,c,l,p,m,h){if(a.__super__.constructor.call(this,d),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(l==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(c));if(!p)throw new Error("Missing DTD attribute type. "+this.debugInfo(c));if(!m)throw new Error("Missing DTD attribute default. "+this.debugInfo(c));if(m.indexOf("#")!==0&&(m="#"+m),!m.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(c));if(h&&!m.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(c));this.elementName=this.stringify.name(c),this.type=k.AttributeDeclaration,this.attributeName=this.stringify.name(l),this.attributeType=this.stringify.dtdAttType(p),h&&(this.defaultValue=this.stringify.dtdAttDefault(h)),this.defaultValueType=m}return function(d,c){for(var l in c)g.call(c,l)&&(d[l]=c[l]);function p(){this.constructor=d}p.prototype=c.prototype,d.prototype=new p,d.__super__=c.prototype}(a,M),a.prototype.toString=function(d){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(d))},a}(w)}).call(this)},6347:function(H,O,x){(function(){var k,w,g={}.hasOwnProperty;w=x(2026),k=x(9335),H.exports=function(M){function a(d,c,l){if(a.__super__.constructor.call(this,d),c==null)throw new Error("Missing DTD element name. "+this.debugInfo());l||(l="(#PCDATA)"),Array.isArray(l)&&(l="("+l.join(",")+")"),this.name=this.stringify.name(c),this.type=k.ElementDeclaration,this.value=this.stringify.dtdElementValue(l)}return function(d,c){for(var l in c)g.call(c,l)&&(d[l]=c[l]);function p(){this.constructor=d}p.prototype=c.prototype,d.prototype=new p,d.__super__=c.prototype}(a,M),a.prototype.toString=function(d){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(d))},a}(w)}).call(this)},9078:function(H,O,x){(function(){var k,w,g,M={}.hasOwnProperty;g=x(8369).isObject,w=x(2026),k=x(9335),H.exports=function(a){function d(c,l,p,m){if(d.__super__.constructor.call(this,c),p==null)throw new Error("Missing DTD entity name. "+this.debugInfo(p));if(m==null)throw new Error("Missing DTD entity value. "+this.debugInfo(p));if(this.pe=!!l,this.name=this.stringify.name(p),this.type=k.EntityDeclaration,g(m)){if(!m.pubID&&!m.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(p));if(m.pubID&&!m.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(p));if(this.internal=!1,m.pubID!=null&&(this.pubID=this.stringify.dtdPubID(m.pubID)),m.sysID!=null&&(this.sysID=this.stringify.dtdSysID(m.sysID)),m.nData!=null&&(this.nData=this.stringify.dtdNData(m.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(p))}else this.value=this.stringify.dtdEntityValue(m),this.internal=!0}return function(c,l){for(var p in l)M.call(l,p)&&(c[p]=l[p]);function m(){this.constructor=c}m.prototype=l.prototype,c.prototype=new m,c.__super__=l.prototype}(d,a),Object.defineProperty(d.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(d.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(d.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(d.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(d.prototype,"xmlVersion",{get:function(){return null}}),d.prototype.toString=function(c){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(c))},d}(w)}).call(this)},4777:function(H,O,x){(function(){var k,w,g={}.hasOwnProperty;w=x(2026),k=x(9335),H.exports=function(M){function a(d,c,l){if(a.__super__.constructor.call(this,d),c==null)throw new Error("Missing DTD notation name. "+this.debugInfo(c));if(!l.pubID&&!l.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(c));this.name=this.stringify.name(c),this.type=k.NotationDeclaration,l.pubID!=null&&(this.pubID=this.stringify.dtdPubID(l.pubID)),l.sysID!=null&&(this.sysID=this.stringify.dtdSysID(l.sysID))}return function(d,c){for(var l in c)g.call(c,l)&&(d[l]=c[l]);function p(){this.constructor=d}p.prototype=c.prototype,d.prototype=new p,d.__super__=c.prototype}(a,M),Object.defineProperty(a.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(a.prototype,"systemId",{get:function(){return this.sysID}}),a.prototype.toString=function(d){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(d))},a}(w)}).call(this)},9077:function(H,O,x){(function(){var k,w,g,M={}.hasOwnProperty;g=x(8369).isObject,w=x(2026),k=x(9335),H.exports=function(a){function d(c,l,p,m){var h;d.__super__.constructor.call(this,c),g(l)&&(l=(h=l).version,p=h.encoding,m=h.standalone),l||(l="1.0"),this.type=k.Declaration,this.version=this.stringify.xmlVersion(l),p!=null&&(this.encoding=this.stringify.xmlEncoding(p)),m!=null&&(this.standalone=this.stringify.xmlStandalone(m))}return function(c,l){for(var p in l)M.call(l,p)&&(c[p]=l[p]);function m(){this.constructor=c}m.prototype=l.prototype,c.prototype=new m,c.__super__=l.prototype}(d,a),d.prototype.toString=function(c){return this.options.writer.declaration(this,this.options.writer.filterOptions(c))},d}(w)}).call(this)},6544:function(H,O,x){(function(){var k,w,g,M,a,d,c,l,p={}.hasOwnProperty;l=x(8369).isObject,c=x(2026),k=x(9335),w=x(1179),M=x(9078),g=x(6347),a=x(4777),d=x(663),H.exports=function(m){function h(u,y,v){var _,S,b,T,C,R;if(h.__super__.constructor.call(this,u),this.type=k.DocType,u.children){for(S=0,b=(T=u.children).length;S<b;S++)if((_=T[S]).type===k.Element){this.name=_.name;break}}this.documentObject=u,l(y)&&(y=(C=y).pubID,v=C.sysID),v==null&&(v=(R=[y,v])[0],y=R[1]),y!=null&&(this.pubID=this.stringify.dtdPubID(y)),v!=null&&(this.sysID=this.stringify.dtdSysID(v))}return function(u,y){for(var v in y)p.call(y,v)&&(u[v]=y[v]);function _(){this.constructor=u}_.prototype=y.prototype,u.prototype=new _,u.__super__=y.prototype}(h,m),Object.defineProperty(h.prototype,"entities",{get:function(){var u,y,v,_,S;for(_={},y=0,v=(S=this.children).length;y<v;y++)(u=S[y]).type!==k.EntityDeclaration||u.pe||(_[u.name]=u);return new d(_)}}),Object.defineProperty(h.prototype,"notations",{get:function(){var u,y,v,_,S;for(_={},y=0,v=(S=this.children).length;y<v;y++)(u=S[y]).type===k.NotationDeclaration&&(_[u.name]=u);return new d(_)}}),Object.defineProperty(h.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(h.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(h.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),h.prototype.element=function(u,y){var v;return v=new g(this,u,y),this.children.push(v),this},h.prototype.attList=function(u,y,v,_,S){var b;return b=new w(this,u,y,v,_,S),this.children.push(b),this},h.prototype.entity=function(u,y){var v;return v=new M(this,!1,u,y),this.children.push(v),this},h.prototype.pEntity=function(u,y){var v;return v=new M(this,!0,u,y),this.children.push(v),this},h.prototype.notation=function(u,y){var v;return v=new a(this,u,y),this.children.push(v),this},h.prototype.toString=function(u){return this.options.writer.docType(this,this.options.writer.filterOptions(u))},h.prototype.ele=function(u,y){return this.element(u,y)},h.prototype.att=function(u,y,v,_,S){return this.attList(u,y,v,_,S)},h.prototype.ent=function(u,y){return this.entity(u,y)},h.prototype.pent=function(u,y){return this.pEntity(u,y)},h.prototype.not=function(u,y){return this.notation(u,y)},h.prototype.up=function(){return this.root()||this.documentObject},h.prototype.isEqualNode=function(u){return!!h.__super__.isEqualNode.apply(this,arguments).isEqualNode(u)&&u.name===this.name&&u.publicId===this.publicId&&u.systemId===this.systemId},h}(c)}).call(this)},6934:function(H,O,x){(function(){var k,w,g,M,a,d,c,l={}.hasOwnProperty;c=x(8369).isPlainObject,g=x(1770),w=x(383),M=x(2026),k=x(9335),d=x(5549),a=x(6434),H.exports=function(p){function m(h){m.__super__.constructor.call(this,null),this.name="#document",this.type=k.Document,this.documentURI=null,this.domConfig=new w,h||(h={}),h.writer||(h.writer=new a),this.options=h,this.stringify=new d(h)}return function(h,u){for(var y in u)l.call(u,y)&&(h[y]=u[y]);function v(){this.constructor=h}v.prototype=u.prototype,h.prototype=new v,h.__super__=u.prototype}(m,p),Object.defineProperty(m.prototype,"implementation",{value:new g}),Object.defineProperty(m.prototype,"doctype",{get:function(){var h,u,y,v;for(u=0,y=(v=this.children).length;u<y;u++)if((h=v[u]).type===k.DocType)return h;return null}}),Object.defineProperty(m.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(m.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(m.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(m.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===k.Declaration?this.children[0].encoding:null}}),Object.defineProperty(m.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===k.Declaration&&this.children[0].standalone==="yes"}}),Object.defineProperty(m.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===k.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(m.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(m.prototype,"origin",{get:function(){return null}}),Object.defineProperty(m.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(m.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(m.prototype,"contentType",{get:function(){return null}}),m.prototype.end=function(h){var u;return u={},h?c(h)&&(u=h,h=this.options.writer):h=this.options.writer,h.document(this,h.filterOptions(u))},m.prototype.toString=function(h){return this.options.writer.document(this,this.options.writer.filterOptions(h))},m.prototype.createElement=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createTextNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createComment=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createCDATASection=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createProcessingInstruction=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createAttribute=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createEntityReference=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.importNode=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createElementNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createAttributeNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByTagNameNS=function(h,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementById=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.adoptNode=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.renameNode=function(h,u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getElementsByClassName=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createEvent=function(h){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createNodeIterator=function(h,u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.createTreeWalker=function(h,u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m}(M)}).call(this)},9227:function(H,O,x){(function(){var k,w,g,M,a,d,c,l,p,m,h,u,y,v,_,S,b,T,C,R,F,X,Z,ne={}.hasOwnProperty;Z=x(8369),F=Z.isObject,R=Z.isFunction,X=Z.isPlainObject,C=Z.getValue,k=x(9335),u=x(6934),y=x(2161),M=x(6170),a=x(2096),_=x(9406),T=x(3595),v=x(9181),m=x(9077),h=x(6544),d=x(1179),l=x(9078),c=x(6347),p=x(4777),g=x(2750),b=x(5549),S=x(6434),w=x(594),H.exports=function(){function e(r,i,n){var t;this.name="?xml",this.type=k.Document,r||(r={}),t={},r.writer?X(r.writer)&&(t=r.writer,r.writer=new S):r.writer=new S,this.options=r,this.writer=r.writer,this.writerOptions=this.writer.filterOptions(t),this.stringify=new b(r),this.onDataCallback=i||function(){},this.onEndCallback=n||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return e.prototype.createChildNode=function(r){var i,n,t,o,s,I,P,j;switch(r.type){case k.CData:this.cdata(r.value);break;case k.Comment:this.comment(r.value);break;case k.Element:for(n in t={},P=r.attribs)ne.call(P,n)&&(i=P[n],t[n]=i.value);this.node(r.name,t);break;case k.Dummy:this.dummy();break;case k.Raw:this.raw(r.value);break;case k.Text:this.text(r.value);break;case k.ProcessingInstruction:this.instruction(r.target,r.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+r.constructor.name)}for(s=0,I=(j=r.children).length;s<I;s++)o=j[s],this.createChildNode(o),o.type===k.Element&&this.up();return this},e.prototype.dummy=function(){return this},e.prototype.node=function(r,i,n){var t;if(r==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(r));return this.openCurrent(),r=C(r),i==null&&(i={}),i=C(i),F(i)||(n=(t=[i,n])[0],i=t[1]),this.currentNode=new y(this,r,i),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,n!=null&&this.text(n),this},e.prototype.element=function(r,i,n){var t,o,s,I,P,j;if(this.currentNode&&this.currentNode.type===k.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(r)||F(r)||R(r))for(I=this.options.noValidation,this.options.noValidation=!0,(j=new u(this.options).element("TEMP_ROOT")).element(r),this.options.noValidation=I,o=0,s=(P=j.children).length;o<s;o++)t=P[o],this.createChildNode(t),t.type===k.Element&&this.up();else this.node(r,i,n);return this},e.prototype.attribute=function(r,i){var n,t;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(r));if(r!=null&&(r=C(r)),F(r))for(n in r)ne.call(r,n)&&(t=r[n],this.attribute(n,t));else R(i)&&(i=i.apply()),this.options.keepNullAttributes&&i==null?this.currentNode.attribs[r]=new g(this,r,""):i!=null&&(this.currentNode.attribs[r]=new g(this,r,i));return this},e.prototype.text=function(r){var i;return this.openCurrent(),i=new T(this,r),this.onData(this.writer.text(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.cdata=function(r){var i;return this.openCurrent(),i=new M(this,r),this.onData(this.writer.cdata(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.comment=function(r){var i;return this.openCurrent(),i=new a(this,r),this.onData(this.writer.comment(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.raw=function(r){var i;return this.openCurrent(),i=new _(this,r),this.onData(this.writer.raw(i,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.instruction=function(r,i){var n,t,o,s,I;if(this.openCurrent(),r!=null&&(r=C(r)),i!=null&&(i=C(i)),Array.isArray(r))for(n=0,s=r.length;n<s;n++)t=r[n],this.instruction(t);else if(F(r))for(t in r)ne.call(r,t)&&(o=r[t],this.instruction(t,o));else R(i)&&(i=i.apply()),I=new v(this,r,i),this.onData(this.writer.processingInstruction(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},e.prototype.declaration=function(r,i,n){var t;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return t=new m(this,r,i,n),this.onData(this.writer.declaration(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.doctype=function(r,i,n){if(this.openCurrent(),r==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new h(this,i,n),this.currentNode.rootNodeName=r,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},e.prototype.dtdElement=function(r,i){var n;return this.openCurrent(),n=new c(this,r,i),this.onData(this.writer.dtdElement(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.attList=function(r,i,n,t,o){var s;return this.openCurrent(),s=new d(this,r,i,n,t,o),this.onData(this.writer.dtdAttList(s,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.entity=function(r,i){var n;return this.openCurrent(),n=new l(this,!1,r,i),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.pEntity=function(r,i){var n;return this.openCurrent(),n=new l(this,!0,r,i),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.notation=function(r,i){var n;return this.openCurrent(),n=new p(this,r,i),this.onData(this.writer.dtdNotation(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},e.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},e.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},e.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},e.prototype.openNode=function(r){var i,n,t,o;if(!r.isOpen){if(this.root||this.currentLevel!==0||r.type!==k.Element||(this.root=r),n="",r.type===k.Element){for(t in this.writerOptions.state=w.OpenTag,n=this.writer.indent(r,this.writerOptions,this.currentLevel)+"<"+r.name,o=r.attribs)ne.call(o,t)&&(i=o[t],n+=this.writer.attribute(i,this.writerOptions,this.currentLevel));n+=(r.children?">":"/>")+this.writer.endline(r,this.writerOptions,this.currentLevel),this.writerOptions.state=w.InsideTag}else this.writerOptions.state=w.OpenTag,n=this.writer.indent(r,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+r.rootNodeName,r.pubID&&r.sysID?n+=' PUBLIC "'+r.pubID+'" "'+r.sysID+'"':r.sysID&&(n+=' SYSTEM "'+r.sysID+'"'),r.children?(n+=" [",this.writerOptions.state=w.InsideTag):(this.writerOptions.state=w.CloseTag,n+=">"),n+=this.writer.endline(r,this.writerOptions,this.currentLevel);return this.onData(n,this.currentLevel),r.isOpen=!0}},e.prototype.closeNode=function(r){var i;if(!r.isClosed)return this.writerOptions.state=w.CloseTag,i=r.type===k.Element?this.writer.indent(r,this.writerOptions,this.currentLevel)+"</"+r.name+">"+this.writer.endline(r,this.writerOptions,this.currentLevel):this.writer.indent(r,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(r,this.writerOptions,this.currentLevel),this.writerOptions.state=w.None,this.onData(i,this.currentLevel),r.isClosed=!0},e.prototype.onData=function(r,i){return this.documentStarted=!0,this.onDataCallback(r,i+1)},e.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},e.prototype.debugInfo=function(r){return r==null?"":"node: <"+r+">"},e.prototype.ele=function(){return this.element.apply(this,arguments)},e.prototype.nod=function(r,i,n){return this.node(r,i,n)},e.prototype.txt=function(r){return this.text(r)},e.prototype.dat=function(r){return this.cdata(r)},e.prototype.com=function(r){return this.comment(r)},e.prototype.ins=function(r,i){return this.instruction(r,i)},e.prototype.dec=function(r,i,n){return this.declaration(r,i,n)},e.prototype.dtd=function(r,i,n){return this.doctype(r,i,n)},e.prototype.e=function(r,i,n){return this.element(r,i,n)},e.prototype.n=function(r,i,n){return this.node(r,i,n)},e.prototype.t=function(r){return this.text(r)},e.prototype.d=function(r){return this.cdata(r)},e.prototype.c=function(r){return this.comment(r)},e.prototype.r=function(r){return this.raw(r)},e.prototype.i=function(r,i){return this.instruction(r,i)},e.prototype.att=function(){return this.currentNode&&this.currentNode.type===k.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.a=function(){return this.currentNode&&this.currentNode.type===k.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},e.prototype.ent=function(r,i){return this.entity(r,i)},e.prototype.pent=function(r,i){return this.pEntity(r,i)},e.prototype.not=function(r,i){return this.notation(r,i)},e}()}).call(this)},8833:function(H,O,x){(function(){var k,w,g={}.hasOwnProperty;w=x(2026),k=x(9335),H.exports=function(M){function a(d){a.__super__.constructor.call(this,d),this.type=k.Dummy}return function(d,c){for(var l in c)g.call(c,l)&&(d[l]=c[l]);function p(){this.constructor=d}p.prototype=c.prototype,d.prototype=new p,d.__super__=c.prototype}(a,M),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(d){return""},a}(w)}).call(this)},2161:function(H,O,x){(function(){var k,w,g,M,a,d,c,l,p={}.hasOwnProperty;l=x(8369),c=l.isObject,d=l.isFunction,a=l.getValue,M=x(2026),k=x(9335),w=x(2750),g=x(663),H.exports=function(m){function h(u,y,v){var _,S,b,T;if(h.__super__.constructor.call(this,u),y==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(y),this.type=k.Element,this.attribs={},this.schemaTypeInfo=null,v!=null&&this.attribute(v),u.type===k.Document&&(this.isRoot=!0,this.documentObject=u,u.rootObject=this,u.children)){for(S=0,b=(T=u.children).length;S<b;S++)if((_=T[S]).type===k.DocType){_.name=this.name;break}}}return function(u,y){for(var v in y)p.call(y,v)&&(u[v]=y[v]);function _(){this.constructor=u}_.prototype=y.prototype,u.prototype=new _,u.__super__=y.prototype}(h,m),Object.defineProperty(h.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(h.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(h.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(h.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(h.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(h.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(h.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(h.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new g(this.attribs)),this.attributeMap}}),h.prototype.clone=function(){var u,y,v,_;for(y in(v=Object.create(this)).isRoot&&(v.documentObject=null),v.attribs={},_=this.attribs)p.call(_,y)&&(u=_[y],v.attribs[y]=u.clone());return v.children=[],this.children.forEach(function(S){var b;return(b=S.clone()).parent=v,v.children.push(b)}),v},h.prototype.attribute=function(u,y){var v,_;if(u!=null&&(u=a(u)),c(u))for(v in u)p.call(u,v)&&(_=u[v],this.attribute(v,_));else d(y)&&(y=y.apply()),this.options.keepNullAttributes&&y==null?this.attribs[u]=new w(this,u,""):y!=null&&(this.attribs[u]=new w(this,u,y));return this},h.prototype.removeAttribute=function(u){var y,v,_;if(u==null)throw new Error("Missing attribute name. "+this.debugInfo());if(u=a(u),Array.isArray(u))for(v=0,_=u.length;v<_;v++)y=u[v],delete this.attribs[y];else delete this.attribs[u];return this},h.prototype.toString=function(u){return this.options.writer.element(this,this.options.writer.filterOptions(u))},h.prototype.att=function(u,y){return this.attribute(u,y)},h.prototype.a=function(u,y){return this.attribute(u,y)},h.prototype.getAttribute=function(u){return this.attribs.hasOwnProperty(u)?this.attribs[u].value:null},h.prototype.setAttribute=function(u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getAttributeNode=function(u){return this.attribs.hasOwnProperty(u)?this.attribs[u]:null},h.prototype.setAttributeNode=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.removeAttributeNode=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getAttributeNS=function(u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setAttributeNS=function(u,y,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.removeAttributeNS=function(u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getAttributeNodeNS=function(u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setAttributeNodeNS=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagNameNS=function(u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.hasAttribute=function(u){return this.attribs.hasOwnProperty(u)},h.prototype.hasAttributeNS=function(u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setIdAttribute=function(u,y){return this.attribs.hasOwnProperty(u)?this.attribs[u].isId:y},h.prototype.setIdAttributeNS=function(u,y,v){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.setIdAttributeNode=function(u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByTagNameNS=function(u,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.getElementsByClassName=function(u){throw new Error("This DOM method is not implemented."+this.debugInfo())},h.prototype.isEqualNode=function(u){var y,v,_;if(!h.__super__.isEqualNode.apply(this,arguments).isEqualNode(u)||u.namespaceURI!==this.namespaceURI||u.prefix!==this.prefix||u.localName!==this.localName||u.attribs.length!==this.attribs.length)return!1;for(y=v=0,_=this.attribs.length-1;0<=_?v<=_:v>=_;y=0<=_?++v:--v)if(!this.attribs[y].isEqualNode(u.attribs[y]))return!1;return!0},h}(M)}).call(this)},663:function(H){(function(){H.exports=function(){function O(x){this.nodes=x}return Object.defineProperty(O.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),O.prototype.clone=function(){return this.nodes=null},O.prototype.getNamedItem=function(x){return this.nodes[x]},O.prototype.setNamedItem=function(x){var k;return k=this.nodes[x.nodeName],this.nodes[x.nodeName]=x,k||null},O.prototype.removeNamedItem=function(x){var k;return k=this.nodes[x],delete this.nodes[x],k||null},O.prototype.item=function(x){return this.nodes[Object.keys(this.nodes)[x]]||null},O.prototype.getNamedItemNS=function(x,k){throw new Error("This DOM method is not implemented.")},O.prototype.setNamedItemNS=function(x){throw new Error("This DOM method is not implemented.")},O.prototype.removeNamedItemNS=function(x,k){throw new Error("This DOM method is not implemented.")},O}()}).call(this)},2026:function(H,O,x){(function(){var k,w,g,M,a,d,c,l,p,m,h,u,y,v,_,S,b,T={}.hasOwnProperty;b=x(8369),S=b.isObject,_=b.isFunction,v=b.isEmpty,y=b.getValue,l=null,g=null,M=null,a=null,d=null,h=null,u=null,m=null,c=null,w=null,p=null,k=null,H.exports=function(){function C(R){this.parent=R,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=x(2161),g=x(6170),M=x(2096),a=x(9077),d=x(6544),h=x(9406),u=x(3595),m=x(9181),c=x(8833),w=x(9335),p=x(2390),x(663),k=x(7557))}return Object.defineProperty(C.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(C.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(C.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(C.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(C.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new p(this.children)),this.childNodeList}}),Object.defineProperty(C.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(C.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(C.prototype,"previousSibling",{get:function(){var R;return R=this.parent.children.indexOf(this),this.parent.children[R-1]||null}}),Object.defineProperty(C.prototype,"nextSibling",{get:function(){var R;return R=this.parent.children.indexOf(this),this.parent.children[R+1]||null}}),Object.defineProperty(C.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(C.prototype,"textContent",{get:function(){var R,F,X,Z,ne;if(this.nodeType===w.Element||this.nodeType===w.DocumentFragment){for(ne="",F=0,X=(Z=this.children).length;F<X;F++)(R=Z[F]).textContent&&(ne+=R.textContent);return ne}return null},set:function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),C.prototype.setParent=function(R){var F,X,Z,ne,e;for(this.parent=R,R&&(this.options=R.options,this.stringify=R.stringify),e=[],X=0,Z=(ne=this.children).length;X<Z;X++)F=ne[X],e.push(F.setParent(this));return e},C.prototype.element=function(R,F,X){var Z,ne,e,r,i,n,t,o,s,I,P;if(n=null,F===null&&X==null&&(F=(s=[{},null])[0],X=s[1]),F==null&&(F={}),F=y(F),S(F)||(X=(I=[F,X])[0],F=I[1]),R!=null&&(R=y(R)),Array.isArray(R))for(e=0,t=R.length;e<t;e++)ne=R[e],n=this.element(ne);else if(_(R))n=this.element(R.apply());else if(S(R)){for(i in R)if(T.call(R,i))if(P=R[i],_(P)&&(P=P.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&i.indexOf(this.stringify.convertAttKey)===0)n=this.attribute(i.substr(this.stringify.convertAttKey.length),P);else if(!this.options.separateArrayItems&&Array.isArray(P)&&v(P))n=this.dummy();else if(S(P)&&v(P))n=this.element(i);else if(this.options.keepNullNodes||P!=null)if(!this.options.separateArrayItems&&Array.isArray(P))for(r=0,o=P.length;r<o;r++)ne=P[r],(Z={})[i]=ne,n=this.element(Z);else S(P)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&i.indexOf(this.stringify.convertTextKey)===0?n=this.element(P):(n=this.element(i)).element(P):n=this.element(i,P);else n=this.dummy()}else n=this.options.keepNullNodes||X!==null?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&R.indexOf(this.stringify.convertTextKey)===0?this.text(X):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&R.indexOf(this.stringify.convertCDataKey)===0?this.cdata(X):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&R.indexOf(this.stringify.convertCommentKey)===0?this.comment(X):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&R.indexOf(this.stringify.convertRawKey)===0?this.raw(X):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&R.indexOf(this.stringify.convertPIKey)===0?this.instruction(R.substr(this.stringify.convertPIKey.length),X):this.node(R,F,X):this.dummy();if(n==null)throw new Error("Could not create any elements with: "+R+". "+this.debugInfo());return n},C.prototype.insertBefore=function(R,F,X){var Z,ne,e,r,i;if(R!=null&&R.type)return r=F,(e=R).setParent(this),r?(ne=children.indexOf(r),i=children.splice(ne),children.push(e),Array.prototype.push.apply(children,i)):children.push(e),e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(R));return ne=this.parent.children.indexOf(this),i=this.parent.children.splice(ne),Z=this.parent.element(R,F,X),Array.prototype.push.apply(this.parent.children,i),Z},C.prototype.insertAfter=function(R,F,X){var Z,ne,e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(R));return ne=this.parent.children.indexOf(this),e=this.parent.children.splice(ne+1),Z=this.parent.element(R,F,X),Array.prototype.push.apply(this.parent.children,e),Z},C.prototype.remove=function(){var R;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return R=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[R,R-R+1].concat([])),this.parent},C.prototype.node=function(R,F,X){var Z,ne;return R!=null&&(R=y(R)),F||(F={}),F=y(F),S(F)||(X=(ne=[F,X])[0],F=ne[1]),Z=new l(this,R,F),X!=null&&Z.text(X),this.children.push(Z),Z},C.prototype.text=function(R){var F;return S(R)&&this.element(R),F=new u(this,R),this.children.push(F),this},C.prototype.cdata=function(R){var F;return F=new g(this,R),this.children.push(F),this},C.prototype.comment=function(R){var F;return F=new M(this,R),this.children.push(F),this},C.prototype.commentBefore=function(R){var F,X;return F=this.parent.children.indexOf(this),X=this.parent.children.splice(F),this.parent.comment(R),Array.prototype.push.apply(this.parent.children,X),this},C.prototype.commentAfter=function(R){var F,X;return F=this.parent.children.indexOf(this),X=this.parent.children.splice(F+1),this.parent.comment(R),Array.prototype.push.apply(this.parent.children,X),this},C.prototype.raw=function(R){var F;return F=new h(this,R),this.children.push(F),this},C.prototype.dummy=function(){return new c(this)},C.prototype.instruction=function(R,F){var X,Z,ne,e,r;if(R!=null&&(R=y(R)),F!=null&&(F=y(F)),Array.isArray(R))for(e=0,r=R.length;e<r;e++)X=R[e],this.instruction(X);else if(S(R))for(X in R)T.call(R,X)&&(Z=R[X],this.instruction(X,Z));else _(F)&&(F=F.apply()),ne=new m(this,R,F),this.children.push(ne);return this},C.prototype.instructionBefore=function(R,F){var X,Z;return X=this.parent.children.indexOf(this),Z=this.parent.children.splice(X),this.parent.instruction(R,F),Array.prototype.push.apply(this.parent.children,Z),this},C.prototype.instructionAfter=function(R,F){var X,Z;return X=this.parent.children.indexOf(this),Z=this.parent.children.splice(X+1),this.parent.instruction(R,F),Array.prototype.push.apply(this.parent.children,Z),this},C.prototype.declaration=function(R,F,X){var Z,ne;return Z=this.document(),ne=new a(Z,R,F,X),Z.children.length===0?Z.children.unshift(ne):Z.children[0].type===w.Declaration?Z.children[0]=ne:Z.children.unshift(ne),Z.root()||Z},C.prototype.dtd=function(R,F){var X,Z,ne,e,r,i,n,t,o;for(X=this.document(),Z=new d(X,R,F),ne=e=0,i=(t=X.children).length;e<i;ne=++e)if(t[ne].type===w.DocType)return X.children[ne]=Z,Z;for(ne=r=0,n=(o=X.children).length;r<n;ne=++r)if(o[ne].isRoot)return X.children.splice(ne,0,Z),Z;return X.children.push(Z),Z},C.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},C.prototype.root=function(){var R;for(R=this;R;){if(R.type===w.Document)return R.rootObject;if(R.isRoot)return R;R=R.parent}},C.prototype.document=function(){var R;for(R=this;R;){if(R.type===w.Document)return R;R=R.parent}},C.prototype.end=function(R){return this.document().end(R)},C.prototype.prev=function(){var R;if((R=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[R-1]},C.prototype.next=function(){var R;if((R=this.parent.children.indexOf(this))===-1||R===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[R+1]},C.prototype.importDocument=function(R){var F;return(F=R.root().clone()).parent=this,F.isRoot=!1,this.children.push(F),this},C.prototype.debugInfo=function(R){var F,X;return(R=R||this.name)!=null||(F=this.parent)!=null&&F.name?R==null?"parent: <"+this.parent.name+">":(X=this.parent)!=null&&X.name?"node: <"+R+">, parent: <"+this.parent.name+">":"node: <"+R+">":""},C.prototype.ele=function(R,F,X){return this.element(R,F,X)},C.prototype.nod=function(R,F,X){return this.node(R,F,X)},C.prototype.txt=function(R){return this.text(R)},C.prototype.dat=function(R){return this.cdata(R)},C.prototype.com=function(R){return this.comment(R)},C.prototype.ins=function(R,F){return this.instruction(R,F)},C.prototype.doc=function(){return this.document()},C.prototype.dec=function(R,F,X){return this.declaration(R,F,X)},C.prototype.e=function(R,F,X){return this.element(R,F,X)},C.prototype.n=function(R,F,X){return this.node(R,F,X)},C.prototype.t=function(R){return this.text(R)},C.prototype.d=function(R){return this.cdata(R)},C.prototype.c=function(R){return this.comment(R)},C.prototype.r=function(R){return this.raw(R)},C.prototype.i=function(R,F){return this.instruction(R,F)},C.prototype.u=function(){return this.up()},C.prototype.importXMLBuilder=function(R){return this.importDocument(R)},C.prototype.replaceChild=function(R,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.removeChild=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.appendChild=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.hasChildNodes=function(){return this.children.length!==0},C.prototype.cloneNode=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.isSupported=function(R,F){return!0},C.prototype.hasAttributes=function(){return this.attribs.length!==0},C.prototype.compareDocumentPosition=function(R){var F,X;return(F=this)===R?0:this.document()!==R.document()?(X=k.Disconnected|k.ImplementationSpecific,Math.random()<.5?X|=k.Preceding:X|=k.Following,X):F.isAncestor(R)?k.Contains|k.Preceding:F.isDescendant(R)?k.Contains|k.Following:F.isPreceding(R)?k.Preceding:k.Following},C.prototype.isSameNode=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.lookupPrefix=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.isDefaultNamespace=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.lookupNamespaceURI=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.isEqualNode=function(R){var F,X,Z;if(R.nodeType!==this.nodeType||R.children.length!==this.children.length)return!1;for(F=X=0,Z=this.children.length-1;0<=Z?X<=Z:X>=Z;F=0<=Z?++X:--X)if(!this.children[F].isEqualNode(R.children[F]))return!1;return!0},C.prototype.getFeature=function(R,F){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.setUserData=function(R,F,X){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.getUserData=function(R){throw new Error("This DOM method is not implemented."+this.debugInfo())},C.prototype.contains=function(R){return!!R&&(R===this||this.isDescendant(R))},C.prototype.isDescendant=function(R){var F,X,Z,ne;for(X=0,Z=(ne=this.children).length;X<Z;X++)if(R===(F=ne[X])||F.isDescendant(R))return!0;return!1},C.prototype.isAncestor=function(R){return R.isDescendant(this)},C.prototype.isPreceding=function(R){var F,X;return F=this.treePosition(R),X=this.treePosition(this),F!==-1&&X!==-1&&F<X},C.prototype.isFollowing=function(R){var F,X;return F=this.treePosition(R),X=this.treePosition(this),F!==-1&&X!==-1&&F>X},C.prototype.treePosition=function(R){var F,X;return X=0,F=!1,this.foreachTreeNode(this.document(),function(Z){if(X++,!F&&Z===R)return F=!0}),F?X:-1},C.prototype.foreachTreeNode=function(R,F){var X,Z,ne,e,r;for(R||(R=this.document()),Z=0,ne=(e=R.children).length;Z<ne;Z++)if((r=F(X=e[Z]))||(r=this.foreachTreeNode(X,F)))return r},C}()}).call(this)},2390:function(H){(function(){H.exports=function(){function O(x){this.nodes=x}return Object.defineProperty(O.prototype,"length",{get:function(){return this.nodes.length||0}}),O.prototype.clone=function(){return this.nodes=null},O.prototype.item=function(x){return this.nodes[x]||null},O}()}).call(this)},9181:function(H,O,x){(function(){var k,w,g={}.hasOwnProperty;k=x(9335),w=x(6488),H.exports=function(M){function a(d,c,l){if(a.__super__.constructor.call(this,d),c==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=k.ProcessingInstruction,this.target=this.stringify.insTarget(c),this.name=this.target,l&&(this.value=this.stringify.insValue(l))}return function(d,c){for(var l in c)g.call(c,l)&&(d[l]=c[l]);function p(){this.constructor=d}p.prototype=c.prototype,d.prototype=new p,d.__super__=c.prototype}(a,M),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(d){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(d))},a.prototype.isEqualNode=function(d){return!!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(d)&&d.target===this.target},a}(w)}).call(this)},9406:function(H,O,x){(function(){var k,w,g={}.hasOwnProperty;k=x(9335),w=x(2026),H.exports=function(M){function a(d,c){if(a.__super__.constructor.call(this,d),c==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=k.Raw,this.value=this.stringify.raw(c)}return function(d,c){for(var l in c)g.call(c,l)&&(d[l]=c[l]);function p(){this.constructor=d}p.prototype=c.prototype,d.prototype=new p,d.__super__=c.prototype}(a,M),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(d){return this.options.writer.raw(this,this.options.writer.filterOptions(d))},a}(w)}).call(this)},1996:function(H,O,x){(function(){var k,w,g,M={}.hasOwnProperty;k=x(9335),g=x(751),w=x(594),H.exports=function(a){function d(c,l){this.stream=c,d.__super__.constructor.call(this,l)}return function(c,l){for(var p in l)M.call(l,p)&&(c[p]=l[p]);function m(){this.constructor=c}m.prototype=l.prototype,c.prototype=new m,c.__super__=l.prototype}(d,a),d.prototype.endline=function(c,l,p){return c.isLastRootNode&&l.state===w.CloseTag?"":d.__super__.endline.call(this,c,l,p)},d.prototype.document=function(c,l){var p,m,h,u,y,v,_,S,b;for(m=h=0,y=(_=c.children).length;h<y;m=++h)(p=_[m]).isLastRootNode=m===c.children.length-1;for(l=this.filterOptions(l),b=[],u=0,v=(S=c.children).length;u<v;u++)p=S[u],b.push(this.writeChildNode(p,l,0));return b},d.prototype.attribute=function(c,l,p){return this.stream.write(d.__super__.attribute.call(this,c,l,p))},d.prototype.cdata=function(c,l,p){return this.stream.write(d.__super__.cdata.call(this,c,l,p))},d.prototype.comment=function(c,l,p){return this.stream.write(d.__super__.comment.call(this,c,l,p))},d.prototype.declaration=function(c,l,p){return this.stream.write(d.__super__.declaration.call(this,c,l,p))},d.prototype.docType=function(c,l,p){var m,h,u,y;if(p||(p=0),this.openNode(c,l,p),l.state=w.OpenTag,this.stream.write(this.indent(c,l,p)),this.stream.write("<!DOCTYPE "+c.root().name),c.pubID&&c.sysID?this.stream.write(' PUBLIC "'+c.pubID+'" "'+c.sysID+'"'):c.sysID&&this.stream.write(' SYSTEM "'+c.sysID+'"'),c.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(c,l,p)),l.state=w.InsideTag,h=0,u=(y=c.children).length;h<u;h++)m=y[h],this.writeChildNode(m,l,p+1);l.state=w.CloseTag,this.stream.write("]")}return l.state=w.CloseTag,this.stream.write(l.spaceBeforeSlash+">"),this.stream.write(this.endline(c,l,p)),l.state=w.None,this.closeNode(c,l,p)},d.prototype.element=function(c,l,p){var m,h,u,y,v,_,S,b,T;for(S in p||(p=0),this.openNode(c,l,p),l.state=w.OpenTag,this.stream.write(this.indent(c,l,p)+"<"+c.name),b=c.attribs)M.call(b,S)&&(m=b[S],this.attribute(m,l,p));if(y=(u=c.children.length)===0?null:c.children[0],u===0||c.children.every(function(C){return(C.type===k.Text||C.type===k.Raw)&&C.value===""}))l.allowEmpty?(this.stream.write(">"),l.state=w.CloseTag,this.stream.write("</"+c.name+">")):(l.state=w.CloseTag,this.stream.write(l.spaceBeforeSlash+"/>"));else if(!l.pretty||u!==1||y.type!==k.Text&&y.type!==k.Raw||y.value==null){for(this.stream.write(">"+this.endline(c,l,p)),l.state=w.InsideTag,v=0,_=(T=c.children).length;v<_;v++)h=T[v],this.writeChildNode(h,l,p+1);l.state=w.CloseTag,this.stream.write(this.indent(c,l,p)+"</"+c.name+">")}else this.stream.write(">"),l.state=w.InsideTag,l.suppressPrettyCount++,this.writeChildNode(y,l,p+1),l.suppressPrettyCount--,l.state=w.CloseTag,this.stream.write("</"+c.name+">");return this.stream.write(this.endline(c,l,p)),l.state=w.None,this.closeNode(c,l,p)},d.prototype.processingInstruction=function(c,l,p){return this.stream.write(d.__super__.processingInstruction.call(this,c,l,p))},d.prototype.raw=function(c,l,p){return this.stream.write(d.__super__.raw.call(this,c,l,p))},d.prototype.text=function(c,l,p){return this.stream.write(d.__super__.text.call(this,c,l,p))},d.prototype.dtdAttList=function(c,l,p){return this.stream.write(d.__super__.dtdAttList.call(this,c,l,p))},d.prototype.dtdElement=function(c,l,p){return this.stream.write(d.__super__.dtdElement.call(this,c,l,p))},d.prototype.dtdEntity=function(c,l,p){return this.stream.write(d.__super__.dtdEntity.call(this,c,l,p))},d.prototype.dtdNotation=function(c,l,p){return this.stream.write(d.__super__.dtdNotation.call(this,c,l,p))},d}(g)}).call(this)},6434:function(H,O,x){(function(){var k,w={}.hasOwnProperty;k=x(751),H.exports=function(g){function M(a){M.__super__.constructor.call(this,a)}return function(a,d){for(var c in d)w.call(d,c)&&(a[c]=d[c]);function l(){this.constructor=a}l.prototype=d.prototype,a.prototype=new l,a.__super__=d.prototype}(M,g),M.prototype.document=function(a,d){var c,l,p,m,h;for(d=this.filterOptions(d),m="",l=0,p=(h=a.children).length;l<p;l++)c=h[l],m+=this.writeChildNode(c,d,0);return d.pretty&&m.slice(-d.newline.length)===d.newline&&(m=m.slice(0,-d.newline.length)),m},M}(k)}).call(this)},5549:function(H){(function(){var O=function(k,w){return function(){return k.apply(w,arguments)}},x={}.hasOwnProperty;H.exports=function(){function k(w){var g,M,a;for(g in this.assertLegalName=O(this.assertLegalName,this),this.assertLegalChar=O(this.assertLegalChar,this),w||(w={}),this.options=w,this.options.version||(this.options.version="1.0"),M=w.stringify||{})x.call(M,g)&&(a=M[g],this[g]=a)}return k.prototype.name=function(w){return this.options.noValidation?w:this.assertLegalName(""+w||"")},k.prototype.text=function(w){return this.options.noValidation?w:this.assertLegalChar(this.textEscape(""+w||""))},k.prototype.cdata=function(w){return this.options.noValidation?w:(w=(w=""+w||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(w))},k.prototype.comment=function(w){if(this.options.noValidation)return w;if((w=""+w||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+w);return this.assertLegalChar(w)},k.prototype.raw=function(w){return this.options.noValidation?w:""+w||""},k.prototype.attValue=function(w){return this.options.noValidation?w:this.assertLegalChar(this.attEscape(w=""+w||""))},k.prototype.insTarget=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.insValue=function(w){if(this.options.noValidation)return w;if((w=""+w||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+w);return this.assertLegalChar(w)},k.prototype.xmlVersion=function(w){if(this.options.noValidation)return w;if(!(w=""+w||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+w);return w},k.prototype.xmlEncoding=function(w){if(this.options.noValidation)return w;if(!(w=""+w||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+w);return this.assertLegalChar(w)},k.prototype.xmlStandalone=function(w){return this.options.noValidation?w:w?"yes":"no"},k.prototype.dtdPubID=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdSysID=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdElementValue=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdAttType=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdAttDefault=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdEntityValue=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.dtdNData=function(w){return this.options.noValidation?w:this.assertLegalChar(""+w||"")},k.prototype.convertAttKey="@",k.prototype.convertPIKey="?",k.prototype.convertTextKey="#text",k.prototype.convertCDataKey="#cdata",k.prototype.convertCommentKey="#comment",k.prototype.convertRawKey="#raw",k.prototype.assertLegalChar=function(w){var g,M;if(this.options.noValidation)return w;if(g="",this.options.version==="1.0"){if(g=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,M=w.match(g))throw new Error("Invalid character in string: "+w+" at index "+M.index)}else if(this.options.version==="1.1"&&(g=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,M=w.match(g)))throw new Error("Invalid character in string: "+w+" at index "+M.index);return w},k.prototype.assertLegalName=function(w){var g;if(this.options.noValidation)return w;if(this.assertLegalChar(w),g=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!w.match(g))throw new Error("Invalid character in name");return w},k.prototype.textEscape=function(w){var g;return this.options.noValidation?w:(g=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,w.replace(g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},k.prototype.attEscape=function(w){var g;return this.options.noValidation?w:(g=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,w.replace(g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},k}()}).call(this)},3595:function(H,O,x){(function(){var k,w,g={}.hasOwnProperty;k=x(9335),w=x(6488),H.exports=function(M){function a(d,c){if(a.__super__.constructor.call(this,d),c==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=k.Text,this.value=this.stringify.text(c)}return function(d,c){for(var l in c)g.call(c,l)&&(d[l]=c[l]);function p(){this.constructor=d}p.prototype=c.prototype,d.prototype=new p,d.__super__=c.prototype}(a,M),Object.defineProperty(a.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(a.prototype,"wholeText",{get:function(){var d,c,l;for(l="",c=this.previousSibling;c;)l=c.data+l,c=c.previousSibling;for(l+=this.data,d=this.nextSibling;d;)l+=d.data,d=d.nextSibling;return l}}),a.prototype.clone=function(){return Object.create(this)},a.prototype.toString=function(d){return this.options.writer.text(this,this.options.writer.filterOptions(d))},a.prototype.splitText=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.replaceWholeText=function(d){throw new Error("This DOM method is not implemented."+this.debugInfo())},a}(w)}).call(this)},751:function(H,O,x){(function(){var k,w,g,M={}.hasOwnProperty;g=x(8369).assign,k=x(9335),x(9077),x(6544),x(6170),x(2096),x(2161),x(9406),x(3595),x(9181),x(8833),x(1179),x(6347),x(9078),x(4777),w=x(594),H.exports=function(){function a(d){var c,l,p;for(c in d||(d={}),this.options=d,l=d.writer||{})M.call(l,c)&&(p=l[c],this["_"+c]=this[c],this[c]=p)}return a.prototype.filterOptions=function(d){var c,l,p,m,h,u,y,v;return d||(d={}),d=g({},this.options,d),(c={writer:this}).pretty=d.pretty||!1,c.allowEmpty=d.allowEmpty||!1,c.indent=(l=d.indent)!=null?l:" ",c.newline=(p=d.newline)!=null?p:`
115
- `,c.offset=(m=d.offset)!=null?m:0,c.dontPrettyTextNodes=(h=(u=d.dontPrettyTextNodes)!=null?u:d.dontprettytextnodes)!=null?h:0,c.spaceBeforeSlash=(y=(v=d.spaceBeforeSlash)!=null?v:d.spacebeforeslash)!=null?y:"",c.spaceBeforeSlash===!0&&(c.spaceBeforeSlash=" "),c.suppressPrettyCount=0,c.user={},c.state=w.None,c},a.prototype.indent=function(d,c,l){var p;return!c.pretty||c.suppressPrettyCount?"":c.pretty&&(p=(l||0)+c.offset+1)>0?new Array(p).join(c.indent):""},a.prototype.endline=function(d,c,l){return!c.pretty||c.suppressPrettyCount?"":c.newline},a.prototype.attribute=function(d,c,l){var p;return this.openAttribute(d,c,l),p=" "+d.name+'="'+d.value+'"',this.closeAttribute(d,c,l),p},a.prototype.cdata=function(d,c,l){var p;return this.openNode(d,c,l),c.state=w.OpenTag,p=this.indent(d,c,l)+"<![CDATA[",c.state=w.InsideTag,p+=d.value,c.state=w.CloseTag,p+="]]>"+this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),p},a.prototype.comment=function(d,c,l){var p;return this.openNode(d,c,l),c.state=w.OpenTag,p=this.indent(d,c,l)+"<!-- ",c.state=w.InsideTag,p+=d.value,c.state=w.CloseTag,p+=" -->"+this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),p},a.prototype.declaration=function(d,c,l){var p;return this.openNode(d,c,l),c.state=w.OpenTag,p=this.indent(d,c,l)+"<?xml",c.state=w.InsideTag,p+=' version="'+d.version+'"',d.encoding!=null&&(p+=' encoding="'+d.encoding+'"'),d.standalone!=null&&(p+=' standalone="'+d.standalone+'"'),c.state=w.CloseTag,p+=c.spaceBeforeSlash+"?>",p+=this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),p},a.prototype.docType=function(d,c,l){var p,m,h,u,y;if(l||(l=0),this.openNode(d,c,l),c.state=w.OpenTag,u=this.indent(d,c,l),u+="<!DOCTYPE "+d.root().name,d.pubID&&d.sysID?u+=' PUBLIC "'+d.pubID+'" "'+d.sysID+'"':d.sysID&&(u+=' SYSTEM "'+d.sysID+'"'),d.children.length>0){for(u+=" [",u+=this.endline(d,c,l),c.state=w.InsideTag,m=0,h=(y=d.children).length;m<h;m++)p=y[m],u+=this.writeChildNode(p,c,l+1);c.state=w.CloseTag,u+="]"}return c.state=w.CloseTag,u+=c.spaceBeforeSlash+">",u+=this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),u},a.prototype.element=function(d,c,l){var p,m,h,u,y,v,_,S,b,T,C,R,F,X;for(b in l||(l=0),T=!1,C="",this.openNode(d,c,l),c.state=w.OpenTag,C+=this.indent(d,c,l)+"<"+d.name,R=d.attribs)M.call(R,b)&&(p=R[b],C+=this.attribute(p,c,l));if(u=(h=d.children.length)===0?null:d.children[0],h===0||d.children.every(function(Z){return(Z.type===k.Text||Z.type===k.Raw)&&Z.value===""}))c.allowEmpty?(C+=">",c.state=w.CloseTag,C+="</"+d.name+">"+this.endline(d,c,l)):(c.state=w.CloseTag,C+=c.spaceBeforeSlash+"/>"+this.endline(d,c,l));else if(!c.pretty||h!==1||u.type!==k.Text&&u.type!==k.Raw||u.value==null){if(c.dontPrettyTextNodes){for(y=0,_=(F=d.children).length;y<_;y++)if(((m=F[y]).type===k.Text||m.type===k.Raw)&&m.value!=null){c.suppressPrettyCount++,T=!0;break}}for(C+=">"+this.endline(d,c,l),c.state=w.InsideTag,v=0,S=(X=d.children).length;v<S;v++)m=X[v],C+=this.writeChildNode(m,c,l+1);c.state=w.CloseTag,C+=this.indent(d,c,l)+"</"+d.name+">",T&&c.suppressPrettyCount--,C+=this.endline(d,c,l),c.state=w.None}else C+=">",c.state=w.InsideTag,c.suppressPrettyCount++,T=!0,C+=this.writeChildNode(u,c,l+1),c.suppressPrettyCount--,T=!1,c.state=w.CloseTag,C+="</"+d.name+">"+this.endline(d,c,l);return this.closeNode(d,c,l),C},a.prototype.writeChildNode=function(d,c,l){switch(d.type){case k.CData:return this.cdata(d,c,l);case k.Comment:return this.comment(d,c,l);case k.Element:return this.element(d,c,l);case k.Raw:return this.raw(d,c,l);case k.Text:return this.text(d,c,l);case k.ProcessingInstruction:return this.processingInstruction(d,c,l);case k.Dummy:return"";case k.Declaration:return this.declaration(d,c,l);case k.DocType:return this.docType(d,c,l);case k.AttributeDeclaration:return this.dtdAttList(d,c,l);case k.ElementDeclaration:return this.dtdElement(d,c,l);case k.EntityDeclaration:return this.dtdEntity(d,c,l);case k.NotationDeclaration:return this.dtdNotation(d,c,l);default:throw new Error("Unknown XML node type: "+d.constructor.name)}},a.prototype.processingInstruction=function(d,c,l){var p;return this.openNode(d,c,l),c.state=w.OpenTag,p=this.indent(d,c,l)+"<?",c.state=w.InsideTag,p+=d.target,d.value&&(p+=" "+d.value),c.state=w.CloseTag,p+=c.spaceBeforeSlash+"?>",p+=this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),p},a.prototype.raw=function(d,c,l){var p;return this.openNode(d,c,l),c.state=w.OpenTag,p=this.indent(d,c,l),c.state=w.InsideTag,p+=d.value,c.state=w.CloseTag,p+=this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),p},a.prototype.text=function(d,c,l){var p;return this.openNode(d,c,l),c.state=w.OpenTag,p=this.indent(d,c,l),c.state=w.InsideTag,p+=d.value,c.state=w.CloseTag,p+=this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),p},a.prototype.dtdAttList=function(d,c,l){var p;return this.openNode(d,c,l),c.state=w.OpenTag,p=this.indent(d,c,l)+"<!ATTLIST",c.state=w.InsideTag,p+=" "+d.elementName+" "+d.attributeName+" "+d.attributeType,d.defaultValueType!=="#DEFAULT"&&(p+=" "+d.defaultValueType),d.defaultValue&&(p+=' "'+d.defaultValue+'"'),c.state=w.CloseTag,p+=c.spaceBeforeSlash+">"+this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),p},a.prototype.dtdElement=function(d,c,l){var p;return this.openNode(d,c,l),c.state=w.OpenTag,p=this.indent(d,c,l)+"<!ELEMENT",c.state=w.InsideTag,p+=" "+d.name+" "+d.value,c.state=w.CloseTag,p+=c.spaceBeforeSlash+">"+this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),p},a.prototype.dtdEntity=function(d,c,l){var p;return this.openNode(d,c,l),c.state=w.OpenTag,p=this.indent(d,c,l)+"<!ENTITY",c.state=w.InsideTag,d.pe&&(p+=" %"),p+=" "+d.name,d.value?p+=' "'+d.value+'"':(d.pubID&&d.sysID?p+=' PUBLIC "'+d.pubID+'" "'+d.sysID+'"':d.sysID&&(p+=' SYSTEM "'+d.sysID+'"'),d.nData&&(p+=" NDATA "+d.nData)),c.state=w.CloseTag,p+=c.spaceBeforeSlash+">"+this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),p},a.prototype.dtdNotation=function(d,c,l){var p;return this.openNode(d,c,l),c.state=w.OpenTag,p=this.indent(d,c,l)+"<!NOTATION",c.state=w.InsideTag,p+=" "+d.name,d.pubID&&d.sysID?p+=' PUBLIC "'+d.pubID+'" "'+d.sysID+'"':d.pubID?p+=' PUBLIC "'+d.pubID+'"':d.sysID&&(p+=' SYSTEM "'+d.sysID+'"'),c.state=w.CloseTag,p+=c.spaceBeforeSlash+">"+this.endline(d,c,l),c.state=w.None,this.closeNode(d,c,l),p},a.prototype.openNode=function(d,c,l){},a.prototype.closeNode=function(d,c,l){},a.prototype.openAttribute=function(d,c,l){},a.prototype.closeAttribute=function(d,c,l){},a}()}).call(this)},5532:function(H,O,x){(function(){var k,w,g,M,a,d,c,l,p,m;m=x(8369),l=m.assign,p=m.isFunction,g=x(1770),M=x(6934),a=x(9227),c=x(6434),d=x(1996),k=x(9335),w=x(594),H.exports.create=function(h,u,y,v){var _,S;if(h==null)throw new Error("Root element needs a name.");return v=l({},u,y,v),S=(_=new M(v)).element(h),v.headless||(_.declaration(v),v.pubID==null&&v.sysID==null||_.dtd(v)),S},H.exports.begin=function(h,u,y){var v;return p(h)&&(u=(v=[h,u])[0],y=v[1],h={}),u?new a(h,u,y):new M(h)},H.exports.stringWriter=function(h){return new c(h)},H.exports.streamWriter=function(h,u){return new d(h,u)},H.exports.implementation=new g,H.exports.nodeType=k,H.exports.writerState=w}).call(this)},7529:H=>{H.exports=function(){for(var x={},k=0;k<arguments.length;k++){var w=arguments[k];for(var g in w)O.call(w,g)&&(x[g]=w[g])}return x};var O=Object.prototype.hasOwnProperty},950:()=>{},6601:()=>{},9214:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},4749:()=>{},3731:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},3083:(H,O,x)=>{var k=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],w=typeof globalThis=="undefined"?x.g:globalThis;H.exports=function(){for(var g=[],M=0;M<k.length;M++)typeof w[k[M]]=="function"&&(g[g.length]=k[M]);return g}},1641:(H,O,x)=>{x.r(O),x.d(O,{all:()=>Ct,allLimit:()=>De,allSeries:()=>Ke,any:()=>Qt,anyLimit:()=>en,anySeries:()=>Yt,apply:()=>g,applyEach:()=>o,applyEachSeries:()=>P,asyncify:()=>h,auto:()=>N,autoInject:()=>K,cargo:()=>J,cargoQueue:()=>ae,compose:()=>fe,concat:()=>Ee,concatLimit:()=>ye,concatSeries:()=>V,constant:()=>W,default:()=>Rr,detect:()=>ge,detectLimit:()=>oe,detectSeries:()=>ue,dir:()=>we,doDuring:()=>Me,doUntil:()=>pt,doWhilst:()=>Me,during:()=>Ti,each:()=>je,eachLimit:()=>Et,eachOf:()=>n,eachOfLimit:()=>e,eachOfSeries:()=>s,eachSeries:()=>Ie,ensureAsync:()=>Xe,every:()=>Ct,everyLimit:()=>De,everySeries:()=>Ke,filter:()=>vt,filterLimit:()=>Ce,filterSeries:()=>Ze,find:()=>ge,findLimit:()=>oe,findSeries:()=>ue,flatMap:()=>Ee,flatMapLimit:()=>ye,flatMapSeries:()=>V,foldl:()=>xe,foldr:()=>Rt,forEach:()=>je,forEachLimit:()=>Et,forEachOf:()=>n,forEachOfLimit:()=>e,forEachOfSeries:()=>s,forEachSeries:()=>Ie,forever:()=>St,groupBy:()=>Ge,groupByLimit:()=>Re,groupBySeries:()=>It,inject:()=>xe,log:()=>qe,map:()=>t,mapLimit:()=>Te,mapSeries:()=>I,mapValues:()=>Dt,mapValuesLimit:()=>Ye,mapValuesSeries:()=>Le,memoize:()=>et,nextTick:()=>$t,parallel:()=>Qe,parallelLimit:()=>Ut,priorityQueue:()=>tt,queue:()=>$e,race:()=>Tt,reduce:()=>xe,reduceRight:()=>Rt,reflect:()=>Zt,reflectAll:()=>on,reject:()=>an,rejectLimit:()=>sn,rejectSeries:()=>un,retry:()=>Gt,retryable:()=>pn,select:()=>vt,selectLimit:()=>Ce,selectSeries:()=>Ze,seq:()=>ce,series:()=>mn,setImmediate:()=>m,some:()=>Qt,someLimit:()=>en,someSeries:()=>Yt,sortBy:()=>fn,timeout:()=>nn,times:()=>Zn,timesLimit:()=>ei,timesSeries:()=>pr,transform:()=>fr,tryEach:()=>Nr,unmemoize:()=>dr,until:()=>mr,waterfall:()=>gr,whilst:()=>Ti,wrapSync:()=>h});var k=x(4155),w=x(5108);function g(ve,...le){return(...me)=>ve(...le,...me)}function M(ve){return function(...le){var me=le.pop();return ve.call(this,le,me)}}var a=typeof queueMicrotask=="function"&&queueMicrotask,d=typeof setImmediate=="function"&&setImmediate,c=typeof k=="object"&&typeof k.nextTick=="function";function l(ve){setTimeout(ve,0)}function p(ve){return(le,...me)=>ve(()=>le(...me))}var m=p(a?queueMicrotask:d?setImmediate:c?k.nextTick:l);function h(ve){return v(ve)?function(...le){const me=le.pop();return u(ve.apply(this,le),me)}:M(function(le,me){var Ae;try{Ae=ve.apply(this,le)}catch(We){return me(We)}if(Ae&&typeof Ae.then=="function")return u(Ae,me);me(null,Ae)})}function u(ve,le){return ve.then(me=>{y(le,null,me)},me=>{y(le,me&&me.message?me:new Error(me))})}function y(ve,le,me){try{ve(le,me)}catch(Ae){m(We=>{throw We},Ae)}}function v(ve){return ve[Symbol.toStringTag]==="AsyncFunction"}function _(ve){if(typeof ve!="function")throw new Error("expected a function");return v(ve)?h(ve):ve}function S(ve,le=ve.length){if(!le)throw new Error("arity is undefined");return function(...me){return typeof me[le-1]=="function"?ve.apply(this,me):new Promise((Ae,We)=>{me[le-1]=(ze,...Je)=>{if(ze)return We(ze);Ae(Je.length>1?Je:Je[0])},ve.apply(this,me)})}}function b(ve){return function(le,...me){return S(function(Ae){var We=this;return ve(le,(ze,Je)=>{_(ze).apply(We,me.concat(Je))},Ae)})}}function T(ve,le,me,Ae){le=le||[];var We=[],ze=0,Je=_(me);return ve(le,(it,ct,xt)=>{var _t=ze++;Je(it,(gt,Wt)=>{We[_t]=Wt,xt(gt)})},it=>{Ae(it,We)})}function C(ve){return ve&&typeof ve.length=="number"&&ve.length>=0&&ve.length%1==0}const R={};function F(ve){function le(...me){if(ve!==null){var Ae=ve;ve=null,Ae.apply(this,me)}}return Object.assign(le,ve),le}function X(ve){return function(...le){if(ve===null)throw new Error("Callback was already called.");var me=ve;ve=null,me.apply(this,le)}}function Z(ve,le,me,Ae){let We=!1,ze=!1,Je=!1,it=0,ct=0;function xt(){it>=le||Je||We||(Je=!0,ve.next().then(({value:Wt,done:Xt})=>{if(!ze&&!We){if(Je=!1,Xt)return We=!0,void(it<=0&&Ae(null));it++,me(Wt,ct,_t),ct++,xt()}}).catch(gt))}function _t(Wt,Xt){if(it-=1,!ze)return Wt?gt(Wt):Wt===!1?(We=!0,void(ze=!0)):Xt===R||We&&it<=0?(We=!0,Ae(null)):void xt()}function gt(Wt){ze||(Je=!1,We=!0,Ae(Wt))}xt()}var ne=ve=>(le,me,Ae)=>{if(Ae=F(Ae),ve<=0)throw new RangeError("concurrency limit cannot be less than 1");if(!le)return Ae(null);if(le[Symbol.toStringTag]==="AsyncGenerator")return Z(le,ve,me,Ae);if(function(gt){return typeof gt[Symbol.asyncIterator]=="function"}(le))return Z(le[Symbol.asyncIterator](),ve,me,Ae);var We=function(gt){if(C(gt))return function(dt){var Ot=-1,dn=dt.length;return function(){return++Ot<dn?{value:dt[Ot],key:Ot}:null}}(gt);var Wt,Xt,Ln,yt,bt=function(dt){return dt[Symbol.iterator]&&dt[Symbol.iterator]()}(gt);return bt?function(dt){var Ot=-1;return function(){var dn=dt.next();return dn.done?null:(Ot++,{value:dn.value,key:Ot})}}(bt):(Xt=(Wt=gt)?Object.keys(Wt):[],Ln=-1,yt=Xt.length,function dt(){var Ot=Xt[++Ln];return Ot==="__proto__"?dt():Ln<yt?{value:Wt[Ot],key:Ot}:null})}(le),ze=!1,Je=!1,it=0,ct=!1;function xt(gt,Wt){if(!Je)if(it-=1,gt)ze=!0,Ae(gt);else if(gt===!1)ze=!0,Je=!0;else{if(Wt===R||ze&&it<=0)return ze=!0,Ae(null);ct||_t()}}function _t(){for(ct=!0;it<ve&&!ze;){var gt=We();if(gt===null)return ze=!0,void(it<=0&&Ae(null));it+=1,me(gt.value,gt.key,X(xt))}ct=!1}_t()},e=S(function(ve,le,me,Ae){return ne(le)(ve,_(me),Ae)},4);function r(ve,le,me){me=F(me);var Ae=0,We=0,{length:ze}=ve,Je=!1;function it(ct,xt){ct===!1&&(Je=!0),Je!==!0&&(ct?me(ct):++We!==ze&&xt!==R||me(null))}for(ze===0&&me(null);Ae<ze;Ae++)le(ve[Ae],Ae,X(it))}function i(ve,le,me){return e(ve,1/0,le,me)}var n=S(function(ve,le,me){return(C(ve)?r:i)(ve,_(le),me)},3),t=S(function(ve,le,me){return T(n,ve,le,me)},3),o=b(t),s=S(function(ve,le,me){return e(ve,1,le,me)},3),I=S(function(ve,le,me){return T(s,ve,le,me)},3),P=b(I);const j=Symbol("promiseCallback");function A(){let ve,le;function me(Ae,...We){if(Ae)return le(Ae);ve(We.length>1?We:We[0])}return me[j]=new Promise((Ae,We)=>{ve=Ae,le=We}),me}function N(ve,le,me){typeof le!="number"&&(me=le,le=null),me=F(me||A());var Ae=Object.keys(ve).length;if(!Ae)return me(null);le||(le=Ae);var We={},ze=0,Je=!1,it=!1,ct=Object.create(null),xt=[],_t=[],gt={};function Wt(yt,bt){xt.push(()=>function(dt,Ot){if(!it){var dn=X((Sn,...bn)=>{if(ze--,Sn!==!1)if(bn.length<2&&([bn]=bn),Sn){var ci={};if(Object.keys(We).forEach(qn=>{ci[qn]=We[qn]}),ci[dt]=bn,it=!0,ct=Object.create(null),Je)return;me(Sn,ci)}else We[dt]=bn,(ct[dt]||[]).forEach(qn=>qn()),Xt();else Je=!0});ze++;var En=_(Ot[Ot.length-1]);Ot.length>1?En(We,dn):En(dn)}}(yt,bt))}function Xt(){if(!Je){if(xt.length===0&&ze===0)return me(null,We);for(;xt.length&&ze<le;)xt.shift()()}}function Ln(yt){var bt=[];return Object.keys(ve).forEach(dt=>{const Ot=ve[dt];Array.isArray(Ot)&&Ot.indexOf(yt)>=0&&bt.push(dt)}),bt}return Object.keys(ve).forEach(yt=>{var bt=ve[yt];if(!Array.isArray(bt))return Wt(yt,[bt]),void _t.push(yt);var dt=bt.slice(0,bt.length-1),Ot=dt.length;if(Ot===0)return Wt(yt,bt),void _t.push(yt);gt[yt]=Ot,dt.forEach(dn=>{if(!ve[dn])throw new Error("async.auto task `"+yt+"` has a non-existent dependency `"+dn+"` in "+dt.join(", "));var En,Sn;(Sn=ct[En=dn])||(Sn=ct[En]=[]),Sn.push(()=>{--Ot==0&&Wt(yt,bt)})})}),function(){for(var yt=0;_t.length;)yt++,Ln(_t.pop()).forEach(bt=>{--gt[bt]==0&&_t.push(bt)});if(yt!==Ae)throw new Error("async.auto cannot execute tasks due to a recursive dependency")}(),Xt(),me[j]}var L=/^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/,z=/^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/,Y=/,/,D=/(=.+)?(\s*)$/;function K(ve,le){var me={};return Object.keys(ve).forEach(Ae=>{var We,ze=ve[Ae],Je=v(ze),it=!Je&&ze.length===1||Je&&ze.length===0;if(Array.isArray(ze))We=[...ze],ze=We.pop(),me[Ae]=We.concat(We.length>0?ct:ze);else if(it)me[Ae]=ze;else{if(We=function(xt){const _t=function(Xt){let Ln="",yt=0,bt=Xt.indexOf("*/");for(;yt<Xt.length;)if(Xt[yt]==="/"&&Xt[yt+1]==="/"){let dt=Xt.indexOf(`
116
- `,yt);yt=dt===-1?Xt.length:dt}else if(bt!==-1&&Xt[yt]==="/"&&Xt[yt+1]==="*"){let dt=Xt.indexOf("*/",yt);dt!==-1?(yt=dt+2,bt=Xt.indexOf("*/",yt)):(Ln+=Xt[yt],yt++)}else Ln+=Xt[yt],yt++;return Ln}(xt.toString());let gt=_t.match(L);if(gt||(gt=_t.match(z)),!gt)throw new Error(`could not parse args in autoInject
117
- Source:
118
- `+_t);let[,Wt]=gt;return Wt.replace(/\s/g,"").split(Y).map(Xt=>Xt.replace(D,"").trim())}(ze),ze.length===0&&!Je&&We.length===0)throw new Error("autoInject task functions require explicit parameters.");Je||We.pop(),me[Ae]=We.concat(ct)}function ct(xt,_t){var gt=We.map(Wt=>xt[Wt]);gt.push(_t),_(ze)(...gt)}}),N(me,le)}class q{constructor(){this.head=this.tail=null,this.length=0}removeLink(le){return le.prev?le.prev.next=le.next:this.head=le.next,le.next?le.next.prev=le.prev:this.tail=le.prev,le.prev=le.next=null,this.length-=1,le}empty(){for(;this.head;)this.shift();return this}insertAfter(le,me){me.prev=le,me.next=le.next,le.next?le.next.prev=me:this.tail=me,le.next=me,this.length+=1}insertBefore(le,me){me.prev=le.prev,me.next=le,le.prev?le.prev.next=me:this.head=me,le.prev=me,this.length+=1}unshift(le){this.head?this.insertBefore(this.head,le):U(this,le)}push(le){this.tail?this.insertAfter(this.tail,le):U(this,le)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var le=this.head;le;)yield le.data,le=le.next}remove(le){for(var me=this.head;me;){var{next:Ae}=me;le(me)&&this.removeLink(me),me=Ae}return this}}function U(ve,le){ve.length=1,ve.head=ve.tail=le}function te(ve,le,me){if(le==null)le=1;else if(le===0)throw new RangeError("Concurrency must not be zero");var Ae=_(ve),We=0,ze=[];const Je={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function it(bt,dt){return bt?dt?void(Je[bt]=Je[bt].filter(Ot=>Ot!==dt)):Je[bt]=[]:Object.keys(Je).forEach(Ot=>Je[Ot]=[])}function ct(bt,...dt){Je[bt].forEach(Ot=>Ot(...dt))}var xt=!1;function _t(bt,dt,Ot,dn){if(dn!=null&&typeof dn!="function")throw new Error("task callback must be a function");var En,Sn;function bn(qn,...fi){return qn?Ot?Sn(qn):En():fi.length<=1?En(fi[0]):void En(fi)}yt.started=!0;var ci=yt._createTaskItem(bt,Ot?bn:dn||bn);if(dt?yt._tasks.unshift(ci):yt._tasks.push(ci),xt||(xt=!0,m(()=>{xt=!1,yt.process()})),Ot||!dn)return new Promise((qn,fi)=>{En=qn,Sn=fi})}function gt(bt){return function(dt,...Ot){We-=1;for(var dn=0,En=bt.length;dn<En;dn++){var Sn=bt[dn],bn=ze.indexOf(Sn);bn===0?ze.shift():bn>0&&ze.splice(bn,1),Sn.callback(dt,...Ot),dt!=null&&ct("error",dt,Sn.data)}We<=yt.concurrency-yt.buffer&&ct("unsaturated"),yt.idle()&&ct("drain"),yt.process()}}function Wt(bt){return!(bt.length!==0||!yt.idle()||(m(()=>ct("drain")),0))}const Xt=bt=>dt=>{if(!dt)return new Promise((Ot,dn)=>{(function(En,Sn){const bn=(...ci)=>{it(En,bn),((qn,fi)=>{if(qn)return dn(qn);Ot(fi)})(...ci)};Je[En].push(bn)})(bt)});it(bt),function(Ot,dn){Je[Ot].push(dn)}(bt,dt)};var Ln=!1,yt={_tasks:new q,_createTaskItem:(bt,dt)=>({data:bt,callback:dt}),*[Symbol.iterator](){yield*Wu(yt._tasks[Symbol.iterator]())},concurrency:le,payload:me,buffer:le/4,started:!1,paused:!1,push(bt,dt){return Array.isArray(bt)?Wt(bt)?void 0:bt.map(Ot=>_t(Ot,!1,!1,dt)):_t(bt,!1,!1,dt)},pushAsync(bt,dt){return Array.isArray(bt)?Wt(bt)?void 0:bt.map(Ot=>_t(Ot,!1,!0,dt)):_t(bt,!1,!0,dt)},kill(){it(),yt._tasks.empty()},unshift(bt,dt){return Array.isArray(bt)?Wt(bt)?void 0:bt.map(Ot=>_t(Ot,!0,!1,dt)):_t(bt,!0,!1,dt)},unshiftAsync(bt,dt){return Array.isArray(bt)?Wt(bt)?void 0:bt.map(Ot=>_t(Ot,!0,!0,dt)):_t(bt,!0,!0,dt)},remove(bt){yt._tasks.remove(bt)},process(){if(!Ln){for(Ln=!0;!yt.paused&&We<yt.concurrency&&yt._tasks.length;){var bt=[],dt=[],Ot=yt._tasks.length;yt.payload&&(Ot=Math.min(Ot,yt.payload));for(var dn=0;dn<Ot;dn++){var En=yt._tasks.shift();bt.push(En),ze.push(En),dt.push(En.data)}We+=1,yt._tasks.length===0&&ct("empty"),We===yt.concurrency&&ct("saturated");var Sn=X(gt(bt));Ae(dt,Sn)}Ln=!1}},length:()=>yt._tasks.length,running:()=>We,workersList:()=>ze,idle:()=>yt._tasks.length+We===0,pause(){yt.paused=!0},resume(){yt.paused!==!1&&(yt.paused=!1,m(yt.process))}};return Object.defineProperties(yt,{saturated:{writable:!1,value:Xt("saturated")},unsaturated:{writable:!1,value:Xt("unsaturated")},empty:{writable:!1,value:Xt("empty")},drain:{writable:!1,value:Xt("drain")},error:{writable:!1,value:Xt("error")}}),yt}function J(ve,le){return te(ve,1,le)}function ae(ve,le,me){return te(ve,le,me)}var xe=S(function(ve,le,me,Ae){Ae=F(Ae);var We=_(me);return s(ve,(ze,Je,it)=>{We(le,ze,(ct,xt)=>{le=xt,it(ct)})},ze=>Ae(ze,le))},4);function ce(...ve){var le=ve.map(_);return function(...me){var Ae=this,We=me[me.length-1];return typeof We=="function"?me.pop():We=A(),xe(le,me,(ze,Je,it)=>{Je.apply(Ae,ze.concat((ct,...xt)=>{it(ct,xt)}))},(ze,Je)=>We(ze,...Je)),We[j]}}function fe(...ve){return ce(...ve.reverse())}var Te=S(function(ve,le,me,Ae){return T(ne(le),ve,me,Ae)},4),ye=S(function(ve,le,me,Ae){var We=_(me);return Te(ve,le,(ze,Je)=>{We(ze,(it,...ct)=>it?Je(it):Je(it,ct))},(ze,Je)=>{for(var it=[],ct=0;ct<Je.length;ct++)Je[ct]&&(it=it.concat(...Je[ct]));return Ae(ze,it)})},4),Ee=S(function(ve,le,me){return ye(ve,1/0,le,me)},3),V=S(function(ve,le,me){return ye(ve,1,le,me)},3);function W(...ve){return function(...le){return le.pop()(null,...ve)}}function Q(ve,le){return(me,Ae,We,ze)=>{var Je,it=!1;const ct=_(We);me(Ae,(xt,_t,gt)=>{ct(xt,(Wt,Xt)=>Wt||Wt===!1?gt(Wt):ve(Xt)&&!Je?(it=!0,Je=le(!0,xt),gt(null,R)):void gt())},xt=>{if(xt)return ze(xt);ze(null,it?Je:le(!1))})}}var ge=S(function(ve,le,me){return Q(Ae=>Ae,(Ae,We)=>We)(n,ve,le,me)},3),oe=S(function(ve,le,me,Ae){return Q(We=>We,(We,ze)=>ze)(ne(le),ve,me,Ae)},4),ue=S(function(ve,le,me){return Q(Ae=>Ae,(Ae,We)=>We)(ne(1),ve,le,me)},3);function Ne(ve){return(le,...me)=>_(le)(...me,(Ae,...We)=>{typeof w=="object"&&(Ae?w.error&&w.error(Ae):w[ve]&&We.forEach(ze=>w[ve](ze)))})}var we=Ne("dir"),Me=S(function(ve,le,me){me=X(me);var Ae,We=_(ve),ze=_(le);function Je(ct,...xt){if(ct)return me(ct);ct!==!1&&(Ae=xt,ze(...xt,it))}function it(ct,xt){return ct?me(ct):ct!==!1?xt?void We(Je):me(null,...Ae):void 0}return it(null,!0)},3);function pt(ve,le,me){const Ae=_(le);return Me(ve,(...We)=>{const ze=We.pop();Ae(...We,(Je,it)=>ze(Je,!it))},me)}function ke(ve){return(le,me,Ae)=>ve(le,Ae)}var je=S(function(ve,le,me){return n(ve,ke(_(le)),me)},3),Et=S(function(ve,le,me,Ae){return ne(le)(ve,ke(_(me)),Ae)},4),Ie=S(function(ve,le,me){return Et(ve,1,le,me)},3);function Xe(ve){return v(ve)?ve:function(...le){var me=le.pop(),Ae=!0;le.push((...We)=>{Ae?m(()=>me(...We)):me(...We)}),ve.apply(this,le),Ae=!1}}var Ct=S(function(ve,le,me){return Q(Ae=>!Ae,Ae=>!Ae)(n,ve,le,me)},3),De=S(function(ve,le,me,Ae){return Q(We=>!We,We=>!We)(ne(le),ve,me,Ae)},4),Ke=S(function(ve,le,me){return Q(Ae=>!Ae,Ae=>!Ae)(s,ve,le,me)},3);function Nt(ve,le,me,Ae){var We=new Array(le.length);ve(le,(ze,Je,it)=>{me(ze,(ct,xt)=>{We[Je]=!!xt,it(ct)})},ze=>{if(ze)return Ae(ze);for(var Je=[],it=0;it<le.length;it++)We[it]&&Je.push(le[it]);Ae(null,Je)})}function Pe(ve,le,me,Ae){var We=[];ve(le,(ze,Je,it)=>{me(ze,(ct,xt)=>{if(ct)return it(ct);xt&&We.push({index:Je,value:ze}),it(ct)})},ze=>{if(ze)return Ae(ze);Ae(null,We.sort((Je,it)=>Je.index-it.index).map(Je=>Je.value))})}function He(ve,le,me,Ae){return(C(le)?Nt:Pe)(ve,le,_(me),Ae)}var vt=S(function(ve,le,me){return He(n,ve,le,me)},3),Ce=S(function(ve,le,me,Ae){return He(ne(le),ve,me,Ae)},4),Ze=S(function(ve,le,me){return He(s,ve,le,me)},3),St=S(function(ve,le){var me=X(le),Ae=_(Xe(ve));return function We(ze){if(ze)return me(ze);ze!==!1&&Ae(We)}()},2),Re=S(function(ve,le,me,Ae){var We=_(me);return Te(ve,le,(ze,Je)=>{We(ze,(it,ct)=>it?Je(it):Je(it,{key:ct,val:ze}))},(ze,Je)=>{for(var it={},{hasOwnProperty:ct}=Object.prototype,xt=0;xt<Je.length;xt++)if(Je[xt]){var{key:_t}=Je[xt],{val:gt}=Je[xt];ct.call(it,_t)?it[_t].push(gt):it[_t]=[gt]}return Ae(ze,it)})},4);function Ge(ve,le,me){return Re(ve,1/0,le,me)}function It(ve,le,me){return Re(ve,1,le,me)}var qe=Ne("log"),Ye=S(function(ve,le,me,Ae){Ae=F(Ae);var We={},ze=_(me);return ne(le)(ve,(Je,it,ct)=>{ze(Je,it,(xt,_t)=>{if(xt)return ct(xt);We[it]=_t,ct(xt)})},Je=>Ae(Je,We))},4);function Dt(ve,le,me){return Ye(ve,1/0,le,me)}function Le(ve,le,me){return Ye(ve,1,le,me)}function et(ve,le=me=>me){var me=Object.create(null),Ae=Object.create(null),We=_(ve),ze=M((Je,it)=>{var ct=le(...Je);ct in me?m(()=>it(null,...me[ct])):ct in Ae?Ae[ct].push(it):(Ae[ct]=[it],We(...Je,(xt,..._t)=>{xt||(me[ct]=_t);var gt=Ae[ct];delete Ae[ct];for(var Wt=0,Xt=gt.length;Wt<Xt;Wt++)gt[Wt](xt,..._t)}))});return ze.memo=me,ze.unmemoized=ve,ze}var $t=p(c?k.nextTick:d?setImmediate:l),Fe=S((ve,le,me)=>{var Ae=C(le)?[]:{};ve(le,(We,ze,Je)=>{_(We)((it,...ct)=>{ct.length<2&&([ct]=ct),Ae[ze]=ct,Je(it)})},We=>me(We,Ae))},3);function Qe(ve,le){return Fe(n,ve,le)}function Ut(ve,le,me){return Fe(ne(le),ve,me)}function $e(ve,le){var me=_(ve);return te((Ae,We)=>{me(Ae[0],We)},le,1)}class nt{constructor(){this.heap=[],this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){return this.heap=[],this}percUp(le){let me;for(;le>0&&Ue(this.heap[le],this.heap[me=zt(le)]);){let Ae=this.heap[le];this.heap[le]=this.heap[me],this.heap[me]=Ae,le=me}}percDown(le){let me;for(;(me=1+(le<<1))<this.heap.length&&(me+1<this.heap.length&&Ue(this.heap[me+1],this.heap[me])&&(me+=1),!Ue(this.heap[le],this.heap[me]));){let Ae=this.heap[le];this.heap[le]=this.heap[me],this.heap[me]=Ae,le=me}}push(le){le.pushCount=++this.pushCount,this.heap.push(le),this.percUp(this.heap.length-1)}unshift(le){return this.heap.push(le)}shift(){let[le]=this.heap;return this.heap[0]=this.heap[this.heap.length-1],this.heap.pop(),this.percDown(0),le}toArray(){return[...this]}*[Symbol.iterator](){for(let le=0;le<this.heap.length;le++)yield this.heap[le].data}remove(le){let me=0;for(let Ae=0;Ae<this.heap.length;Ae++)le(this.heap[Ae])||(this.heap[me]=this.heap[Ae],me++);this.heap.splice(me);for(let Ae=zt(this.heap.length-1);Ae>=0;Ae--)this.percDown(Ae);return this}}function zt(ve){return(ve+1>>1)-1}function Ue(ve,le){return ve.priority!==le.priority?ve.priority<le.priority:ve.pushCount<le.pushCount}function tt(ve,le){var me=$e(ve,le),{push:Ae,pushAsync:We}=me;function ze(Je,it){return Array.isArray(Je)?Je.map(ct=>({data:ct,priority:it})):{data:Je,priority:it}}return me._tasks=new nt,me._createTaskItem=({data:Je,priority:it},ct)=>({data:Je,priority:it,callback:ct}),me.push=function(Je,it=0,ct){return Ae(ze(Je,it),ct)},me.pushAsync=function(Je,it=0,ct){return We(ze(Je,it),ct)},delete me.unshift,delete me.unshiftAsync,me}var Tt=S(function(ve,le){if(le=F(le),!Array.isArray(ve))return le(new TypeError("First argument to race must be an array of functions"));if(!ve.length)return le();for(var me=0,Ae=ve.length;me<Ae;me++)_(ve[me])(le)},2);function Rt(ve,le,me,Ae){var We=[...ve].reverse();return xe(We,le,me,Ae)}function Zt(ve){var le=_(ve);return M(function(me,Ae){return me.push((We,...ze)=>{let Je={};if(We&&(Je.error=We),ze.length>0){var it=ze;ze.length<=1&&([it]=ze),Je.value=it}Ae(null,Je)}),le.apply(this,me)})}function on(ve){var le;return Array.isArray(ve)?le=ve.map(Zt):(le={},Object.keys(ve).forEach(me=>{le[me]=Zt.call(this,ve[me])})),le}function tn(ve,le,me,Ae){const We=_(me);return He(ve,le,(ze,Je)=>{We(ze,(it,ct)=>{Je(it,!ct)})},Ae)}var an=S(function(ve,le,me){return tn(n,ve,le,me)},3),sn=S(function(ve,le,me,Ae){return tn(ne(le),ve,me,Ae)},4),un=S(function(ve,le,me){return tn(s,ve,le,me)},3);function cn(ve){return function(){return ve}}const ln=5,hn=0;function Gt(ve,le,me){var Ae={times:ln,intervalFunc:cn(hn)};if(arguments.length<3&&typeof ve=="function"?(me=le||A(),le=ve):(function(Je,it){if(typeof it=="object")Je.times=+it.times||ln,Je.intervalFunc=typeof it.interval=="function"?it.interval:cn(+it.interval||hn),Je.errorFilter=it.errorFilter;else{if(typeof it!="number"&&typeof it!="string")throw new Error("Invalid arguments for async.retry");Je.times=+it||ln}}(Ae,ve),me=me||A()),typeof le!="function")throw new Error("Invalid arguments for async.retry");var We=_(le),ze=1;return function Je(){We((it,...ct)=>{it!==!1&&(it&&ze++<Ae.times&&(typeof Ae.errorFilter!="function"||Ae.errorFilter(it))?setTimeout(Je,Ae.intervalFunc(ze-1)):me(it,...ct))})}(),me[j]}function pn(ve,le){le||(le=ve,ve=null);let me=ve&&ve.arity||le.length;v(le)&&(me+=1);var Ae=_(le);return M((We,ze)=>{function Je(it){Ae(...We,it)}return(We.length<me-1||ze==null)&&(We.push(ze),ze=A()),ve?Gt(ve,Je,ze):Gt(Je,ze),ze[j]})}function mn(ve,le){return Fe(s,ve,le)}var Qt=S(function(ve,le,me){return Q(Boolean,Ae=>Ae)(n,ve,le,me)},3),en=S(function(ve,le,me,Ae){return Q(Boolean,We=>We)(ne(le),ve,me,Ae)},4),Yt=S(function(ve,le,me){return Q(Boolean,Ae=>Ae)(s,ve,le,me)},3),fn=S(function(ve,le,me){var Ae=_(le);return t(ve,(ze,Je)=>{Ae(ze,(it,ct)=>{if(it)return Je(it);Je(it,{value:ze,criteria:ct})})},(ze,Je)=>{if(ze)return me(ze);me(null,Je.sort(We).map(it=>it.value))});function We(ze,Je){var it=ze.criteria,ct=Je.criteria;return it<ct?-1:it>ct?1:0}},3);function nn(ve,le,me){var Ae=_(ve);return M((We,ze)=>{var Je,it=!1;We.push((...ct)=>{it||(ze(...ct),clearTimeout(Je))}),Je=setTimeout(function(){var ct=ve.name||"anonymous",xt=new Error('Callback function "'+ct+'" timed out.');xt.code="ETIMEDOUT",me&&(xt.info=me),it=!0,ze(xt)},le),Ae(...We)})}function ei(ve,le,me,Ae){var We=_(me);return Te(function(ze){for(var Je=Array(ze);ze--;)Je[ze]=ze;return Je}(ve),le,We,Ae)}function Zn(ve,le,me){return ei(ve,1/0,le,me)}function pr(ve,le,me){return ei(ve,1,le,me)}function fr(ve,le,me,Ae){arguments.length<=3&&typeof le=="function"&&(Ae=me,me=le,le=Array.isArray(ve)?[]:{}),Ae=F(Ae||A());var We=_(me);return n(ve,(ze,Je,it)=>{We(le,ze,Je,it)},ze=>Ae(ze,le)),Ae[j]}var Nr=S(function(ve,le){var me,Ae=null;return Ie(ve,(We,ze)=>{_(We)((Je,...it)=>{if(Je===!1)return ze(Je);it.length<2?[me]=it:me=it,Ae=Je,ze(Je?null:{})})},()=>le(Ae,me))});function dr(ve){return(...le)=>(ve.unmemoized||ve)(...le)}var Ti=S(function(ve,le,me){me=X(me);var Ae=_(le),We=_(ve),ze=[];function Je(ct,...xt){if(ct)return me(ct);ze=xt,ct!==!1&&We(it)}function it(ct,xt){return ct?me(ct):ct!==!1?xt?void Ae(Je):me(null,...ze):void 0}return We(it)},3);function mr(ve,le,me){const Ae=_(ve);return Ti(We=>Ae((ze,Je)=>We(ze,!Je)),le,me)}var gr=S(function(ve,le){if(le=F(le),!Array.isArray(ve))return le(new Error("First argument to waterfall must be an array of functions"));if(!ve.length)return le();var me=0;function Ae(ze){_(ve[me++])(...ze,X(We))}function We(ze,...Je){if(ze!==!1)return ze||me===ve.length?le(ze,...Je):void Ae(Je)}Ae([])});const Rr={apply:g,applyEach:o,applyEachSeries:P,asyncify:h,auto:N,autoInject:K,cargo:J,cargoQueue:ae,compose:fe,concat:Ee,concatLimit:ye,concatSeries:V,constant:W,detect:ge,detectLimit:oe,detectSeries:ue,dir:we,doUntil:pt,doWhilst:Me,each:je,eachLimit:Et,eachOf:n,eachOfLimit:e,eachOfSeries:s,eachSeries:Ie,ensureAsync:Xe,every:Ct,everyLimit:De,everySeries:Ke,filter:vt,filterLimit:Ce,filterSeries:Ze,forever:St,groupBy:Ge,groupByLimit:Re,groupBySeries:It,log:qe,map:t,mapLimit:Te,mapSeries:I,mapValues:Dt,mapValuesLimit:Ye,mapValuesSeries:Le,memoize:et,nextTick:$t,parallel:Qe,parallelLimit:Ut,priorityQueue:tt,queue:$e,race:Tt,reduce:xe,reduceRight:Rt,reflect:Zt,reflectAll:on,reject:an,rejectLimit:sn,rejectSeries:un,retry:Gt,retryable:pn,seq:ce,series:mn,setImmediate:m,some:Qt,someLimit:en,someSeries:Yt,sortBy:fn,timeout:nn,times:Zn,timesLimit:ei,timesSeries:pr,transform:fr,tryEach:Nr,unmemoize:dr,until:mr,waterfall:gr,whilst:Ti,all:Ct,allLimit:De,allSeries:Ke,any:Qt,anyLimit:en,anySeries:Yt,find:ge,findLimit:oe,findSeries:ue,flatMap:Ee,flatMapLimit:ye,flatMapSeries:V,forEach:je,forEachSeries:Ie,forEachLimit:Et,forEachOf:n,forEachOfSeries:s,forEachOfLimit:e,inject:xe,foldl:xe,foldr:Rt,select:vt,selectLimit:Ce,selectSeries:Ze,wrapSync:h,during:Ti,doDuring:Me}},4946:H=>{H.exports=JSON.parse('{"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"}}')},5207:H=>{H.exports=JSON.parse('{"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"}}')},1308:H=>{H.exports=JSON.parse('{"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"}')},9799:H=>{H.exports=JSON.parse('{"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"}}')},8597:H=>{H.exports={i8:"6.5.4"}},3765:H=>{H.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},5454:H=>{H.exports=JSON.parse('{"name":"minio","version":"7.0.32","description":"S3 Compatible Cloud Storage client","main":"./dist/main/minio.js","scripts":{"compile":"gulp compile","test":"gulp test","lint":"gulp lint","lint-fix":"gulp lint --fix","prepublishOnly":"gulp test","functional":"gulp functionalTest","browserify":"gulp browserify","prepare":"npm run compile"},"repository":{"type":"git","url":"git+https://github.com/minio/minio-js.git"},"author":{"name":"MinIO, Inc.","email":"","url":"https://min.io"},"engines":{"node":">8 <=18"},"license":"Apache-2.0","bugs":{"url":"https://github.com/minio/minio-js/issues","mail":""},"homepage":"https://github.com/minio/minio-js#readme","dependencies":{"async":"^3.1.0","block-stream2":"^2.0.0","browser-or-node":"^1.3.0","buffer-crc32":"^0.2.13","crypto-browserify":"^3.12.0","es6-error":"^4.1.1","fast-xml-parser":"^3.17.5","ipaddr.js":"^2.0.1","json-stream":"^1.0.0","lodash":"^4.17.21","mime-types":"^2.1.14","mkdirp":"^0.5.1","query-string":"^7.1.1","through2":"^3.0.1","web-encoding":"^1.1.5","xml":"^1.0.0","xml2js":"^0.4.15"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.10","babelify":"^10.0.0","browserify":"^16.5.2","chai":"^4.2.0","eslint":"^8.9.0","gulp":"^4.0.2","gulp-babel":"^8.0.0","gulp-eslint":"^4.0.2","gulp-if":"^3.0.0","gulp-mocha":"^8.0.0","gulp-sourcemaps":"^2.6.5","mocha":"^9.2.0","mocha-steps":"^1.1.0","nock":"^13.2.2","source-map-support":"^0.5.13","split-file":"^2.2.2","superagent":"^5.1.0","uuid":"^3.3.2"},"keywords":["api","amazon","minio","cloud","s3","storage"]}')},2562:H=>{H.exports=JSON.parse('{"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"}')}},he={};function _e(H){var O=he[H];if(O!==void 0)return O.exports;var x=he[H]={id:H,loaded:!1,exports:{}};return G[H].call(x.exports,x,x.exports,_e),x.loaded=!0,x.exports}_e.d=(H,O)=>{for(var x in O)_e.o(O,x)&&!_e.o(H,x)&&Object.defineProperty(H,x,{enumerable:!0,get:O[x]})},_e.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(H){if(typeof window=="object")return window}}(),_e.o=(H,O)=>Object.prototype.hasOwnProperty.call(H,O),_e.r=H=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(H,"__esModule",{value:!0})},_e.nmd=H=>(H.paths=[],H.children||(H.children=[]),H);var Oe={};return(()=>{_e.r(Oe),_e.d(Oe,{Minio:()=>O,initMinio:()=>k,putObjectBuffer:()=>w});var H=_e(8764).Buffer;const O=_e(2525);let x=null;function k(g){if(!g)throw new Error("Minio的配置不能为空");x=g;const M=(g.endPoint||"").split(":");M[0]&&(x.endPoint=M[0]),M[1]&&(x.port=Number(M[1]))}function w(g,M,a,d,c){if(!x)throw new Error("请先初始化Minio");let l=H.from(a);new(_e(2525)).Client(x).putObject(g,M,l,d,c)}})(),Oe})())})(nc);var Fi=nc.exports,ic=(de=>(de[de.None=0]="None",de[de.SourceFile=1]="SourceFile",de[de.WebLink=2]="WebLink",de))(ic||{}),rc=(de=>(de.Unprotected="不受著作权保护",de.ProtectAuthorize="受著作权保护,已获得授权",de.ProtectUnauthorize="受著作权保护,未获得授权",de))(rc||{}),hr=(de=>(de[de.Robot=1]="Robot",de[de.User=2]="User",de[de.System=3]="System",de))(hr||{}),oc=(de=>(de.Start="start",de.End="end",de))(oc||{}),$i=(de=>(de[de.Processing=1]="Processing",de[de.Success=2]="Success",de[de.Failed=3]="Failed",de))($i||{}),ac=(de=>(de.AECPILOT="aecpilot",de))(ac||{});function $h(de,B){return re(this,null,function*(){const G=de.getReader();let he;for(;!(he=yield G.read()).done;)B(he.value)})}function Uh(de){let B,G,he,_e=!1,Oe;return function(O){B===void 0?(B=O,G=0,he=-1,Oe=!1):B=Vh(B,O);const x=B.length;let k=0;for(;G<x;){_e&&(B[G]===10&&(k=++G),_e=!1);let w=-1;for(;G<x&&w===-1;++G)switch(B[G]){case 58:he===-1&&(he=G-k);break;case 13:_e=!1,G+4<x&&B[G+1]===10&&B[G+2]!==13&&B[G-1]!==10&&B[G-2]!==13&&(Oe=!0);case 10:w=G;break}if(w===-1)break;de(B.subarray(k,w),he,Oe),k=G,he=-1,Oe=!1}k===x?B=void 0:k!==0&&(B=B.subarray(k),G-=k)}}function zh(de,B,G){let he=Zu();const _e=new TextDecoder;return function(H,O,x){if(H.length===0)G==null||G(he),he=Zu();else if(O>0){const k=_e.decode(H.subarray(0,O)),w=O+(H[O+1]===32?2:1);let g=_e.decode(H.subarray(w));switch(x&&(g+=`
119
- `),k){case"data":he.data=he.data?he.data+`
120
- `+g:g;break;case"event":he.event=g;break;case"id":de(he.id=g);break;case"retry":const M=parseInt(g,10);isNaN(M)||B(he.retry=M);break}}}}function Vh(de,B){const G=new Uint8Array(de.length+B.length);return G.set(de),G.set(B,de.length),G}function Zu(){return{data:"",event:"",id:"",retry:void 0}}const qa="text/event-stream",Kh=1e3,Gu="last-event-id";function Io(de,w){var g=w,{signal:B,headers:G,onopen:he,onmessage:_e,onclose:Oe,onerror:H,openWhenHidden:O,fetch:x}=g,k=Hu(g,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((M,a)=>{const d=Wn({},G);d.accept||(d.accept=qa);let c;function l(){c.abort(),document.hidden||v()}O||document.addEventListener("visibilitychange",l);let p=Kh,m=0;function h(){document.removeEventListener("visibilitychange",l),window.clearTimeout(m),c.abort()}B==null||B.addEventListener("abort",()=>{h(),M()});const u=x!=null?x:window.fetch,y=he!=null?he:Hh;function v(){return re(this,null,function*(){var _;c=new AbortController;try{const S=yield u(de,bi(Wn({},k),{headers:d,signal:c.signal}));yield y(S),yield $h(S.body,Uh(zh(b=>{b?d[Gu]=b:delete d[Gu]},b=>{p=b},_e))),Oe==null||Oe(),h(),M()}catch(S){if(!c.signal.aborted)try{const b=(_=H==null?void 0:H(S))!=null?_:p;window.clearTimeout(m),m=window.setTimeout(v,b)}catch(b){h(),a(b)}}})}v()})}function Hh(de){const B=de.headers.get("content-type");if(!(B!=null&&B.startsWith(qa)))throw new Error(`Expected content-type to be ${qa}, Actual: ${B}`)}let Ao;const Wh=new Uint8Array(16);function Zh(){if(!Ao&&(Ao=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ao))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ao(Wh)}const Pn=[];for(let de=0;de<256;++de)Pn.push((de+256).toString(16).slice(1));function Gh(de,B=0){return Pn[de[B+0]]+Pn[de[B+1]]+Pn[de[B+2]]+Pn[de[B+3]]+"-"+Pn[de[B+4]]+Pn[de[B+5]]+"-"+Pn[de[B+6]]+Pn[de[B+7]]+"-"+Pn[de[B+8]]+Pn[de[B+9]]+"-"+Pn[de[B+10]]+Pn[de[B+11]]+Pn[de[B+12]]+Pn[de[B+13]]+Pn[de[B+14]]+Pn[de[B+15]]}const Xh=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Xu={randomUUID:Xh};function To(de,B,G){if(Xu.randomUUID&&!B&&!de)return Xu.randomUUID();de=de||{};const he=de.random||(de.rng||Zh)();if(he[6]=he[6]&15|64,he[8]=he[8]&63|128,B){G=G||0;for(let _e=0;_e<16;++_e)B[G+_e]=he[_e];return B}return Gh(he)}const Oo=128,Yh=20;class Jh extends Qn{constructor(B,G,he){super(B!=null?B:ui.create(),he),this.axiosInstance=B,this.getToken=G}getSessions(){return re(this,null,function*(){return this.get("/chatSession")})}postSession(B){return re(this,null,function*(){return this.post("/chatSession",B)})}getSession(B){return re(this,null,function*(){return this.get(`/chatSession/${B}`)})}updateSession(B,G){return re(this,null,function*(){return this.patch(`/chatSession/${B}`,G)})}deleteSession(B){return re(this,null,function*(){return this.delete(`/chatSession/${B}`)})}getSessionKnowledgeFiles(B,G){return re(this,null,function*(){return this.get(`chatSession/${B}/file`,G)})}postSessionKnowledgeFile(B,G){return re(this,null,function*(){return this.post(`chatSession/${B}/file`,G)})}deleteSessionKnowledgeFiles(B,G){return re(this,null,function*(){return this.delete(`chatSession/${B}/file`,G)})}getSessionKnowledgeFile(B,G){return re(this,null,function*(){return this.get(`chatSession/${B}/file/${G}`)})}deleteSessionKnowledgeFile(B,G){return re(this,null,function*(){return this.delete(`chatSession/${B}/file/${G}`)})}getSessionChatHistory(B,G){return re(this,null,function*(){return this.get(`/chatSession/${B}/history`,G)})}postMessage(B,G,he){return re(this,null,function*(){return this.post(`/config/tenantApplication?applicationId=${B}&sessionId=${G}`,he)})}postComments(B,G){return re(this,null,function*(){return this.post(`/chatSession/${B}/comments`,G)})}listApplications(){return re(this,null,function*(){return this.list("/applications")})}getApplication(){return re(this,null,function*(){return this.get("/config/tenantApplication")})}postApplication(B){return re(this,null,function*(){return this.post("/config/tenantApplication",{applicationId:B})})}getRecommendQues(){return re(this,null,function*(){return this.get("/recommendQues")})}postRecommendQues(B){return re(this,null,function*(){return this.post("/recommendQues",B)})}patchRecommendQues(B,G){return re(this,null,function*(){return this.patch(`/recommendQues/${B}`,G)})}delRecommendQues(B){return re(this,null,function*(){return this.delete(`/recommendQues/${B}`)})}getUploadTicket(B){return re(this,null,function*(){return this.get("/upload/ticket",B)})}uploadMinioFile(B,G){return re(this,null,function*(){return new Promise((he,_e)=>{const Oe=new FileReader;Oe.readAsArrayBuffer(G),Oe.onload=H=>{Fi.initMinio({endPoint:B.endpoints[0],useSSL:B.useSSL,accessKey:B.accessKey,secretKey:B.secretKey});const O=Buffer.from(H.target.result),x={"Content-Type":"application/octet-stream"};Fi.putObjectBuffer(B.bucket,B.fileKeys[0],O,x,k=>{if(k)throw console.error(k),Error(k);he(B.fileKeys[0])})}})})}uploadFile(B,G){return re(this,null,function*(){const he={files:[G.name],isv:"minio",knowledgeId:B};return this.postUploadTicket(he).then(_e=>this.uploadMinioFile(_e,G)).catch(_e=>{throw Error(_e)})})}uploadFiles(B,G){return re(this,null,function*(){const he={files:G.map(_e=>_e.name),isv:"minio",knowledgeId:B};return this.postUploadTicket(he).then(_e=>Promise.all(G.map(Oe=>this.uploadMinioFile(_e,Oe)))).catch(_e=>{throw Error(_e)})})}getKnowledge(B,G){return re(this,null,function*(){return this.get("/knowledge",{docId:B,name:G})})}getKnowledgeIdFileId(B,G){return re(this,null,function*(){return this.get(`/knowledge/${B}/file/${G}`)})}updateKnowledgeIdFileId(B,G,he){return re(this,null,function*(){return this.patch(`/chatSession/${B}/file/${G}`,he)})}getKnowledgeIdFileIdData(B,G,he){return re(this,null,function*(){return this.get(`/knowledge/${B}/file/${G}/data/${he}`)})}checkFileReady(B,G,he=()=>!0,_e=1e4,Oe){return re(this,null,function*(){return new Promise((H,O)=>{const x=()=>{if(!he()){clearInterval(k);return}G?this.getSessionKnowledgeFile(B,G).then(g=>{if(Oe==null||Oe(g),g.status===$i.Success&&(clearInterval(k),H(g)),g.status===$i.Failed){clearInterval(k);const M="该文件无法读取,请上传可编辑pdf,doc,docx文档";O(Error(M,{cause:{code:-101,message:M,data:g}}))}}).catch(g=>{clearInterval(k),O(g)}):H(null)},k=setInterval(x,_e);x()})})}postChat(B,G){return re(this,null,function*(){return this.post("/chat",B,G)})}postChatV2EventSource(B,G,he,_e){return re(this,null,function*(){var x;const Oe={code:0,messageId:To(),content:"",role:hr.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1},H=yield this.getToken(),O=bi(Wn({},G),{stream:!0});Io(`${(x=this.axiosInstance)==null?void 0:x.defaults.baseURL}/chat?sessionId=${B}`,{method:"POST",headers:{Authorization:`Bearer ${H}`,"Content-Type":"application/json"},body:JSON.stringify(O),openWhenHidden:!0,signal:he,onopen(k){return k.ok&&_e!=null&&_e.onopen&&_e.onopen(),Promise.resolve()},onmessage(k){if(!k.data&&!k.event&&!k.id&&!k.retry)return;if(!k.data.includes('{"code": ')){let g={};try{g=JSON.parse(k.data)}catch(a){}(g==null?void 0:g.mtype)==="search"?Oe.searchReference.push(g):Oe.content=Oe.content+k.data;const M={content:Oe.content,role:1,reference:Oe.reference,searchReference:Oe.searchReference,messageId:Oe.messageId,sessionId:B,messageTime:Fa(new Date).format("YYYY-MM-DD HH:mm:ss"),comment:{isAgree:0},isReplying:!0};return(_e==null?void 0:_e.onmessage)&&_e.onmessage(M)}const w=JSON.parse(k.data);if(Oe.reference=w.data.reference,Oe.messageTime=w.data.messageTime,Oe.messageId=w.data.messageId,Oe.llmModel=w.data.llmModel,Oe.code=w.code,w.code===200){const g={code:Oe.code,content:Oe.content,role:1,reference:Oe.reference,searchReference:Oe.searchReference,messageId:Oe.messageId,sessionId:B,messageTime:Oe.messageTime,isReplying:!0};_e!=null&&_e.onmessage&&_e.onmessage(g)}},onerror(){_e!=null&&_e.onerror&&_e.onerror()},onclose(){const k={code:Oe.code,content:Oe.content,role:1,reference:Oe.reference,searchReference:Oe.searchReference,messageId:Oe.messageId,sessionId:B,messageTime:Oe.messageTime,comment:{isAgree:0},isReplying:!1};_e!=null&&_e.onclose&&_e.onclose(k)}})})}postChatV3EventSource(B,G,he,_e){return re(this,null,function*(){var x,k;const Oe={code:0,messageId:To(),content:"",role:hr.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1,reasoningContent:"",thinkingSecs:"",thinkingStatus:""},H=yield this.getToken(),O=bi(Wn({},G),{stream:!0});Io(`${(k=(x=this.axiosInstance)==null?void 0:x.defaults.baseURL)==null?void 0:k.replace("/v1","/v3")}/chat?sessionId=${B}`,{method:"POST",headers:{Authorization:`Bearer ${H}`,"Content-Type":"application/json"},body:JSON.stringify(O),openWhenHidden:!0,signal:he,onopen(w){return w.ok&&_e!=null&&_e.onopen&&_e.onopen(),Promise.resolve()},onmessage(w){if(!w.data&&!w.event&&!w.id&&!w.retry)return;let g={};try{g=JSON.parse(w.data)}catch(d){console.log("eventData",w.data)}const M=g.data.type,a=g.data.payload;if(Oe.isReplying=!0,M==="error"&&(Oe.code=g.code,Oe.message=g.message),M==="search"&&(Oe.code=g.code,Oe.message=g.message,Oe.searchReference.push(a)),M==="thinking"){Oe.code=g.code,Oe.message=g.message,Oe.thinkingStatus="start";const c=a.choices[0];Oe.reasoningContent=Oe.reasoningContent+c.delta.reasoningContent}if(M==="thinkingOver"){Oe.code=g.code,Oe.message=g.message,Oe.thinkingStatus="end";const d=a.thinkingSecs;Oe.thinkingSecs=d}if(M==="text"){Oe.code=g.code,Oe.message=g.message;const c=a.choices[0];Oe.content=Oe.content+c.delta.content}if(M==="reference"&&(Oe.code=g.code,Oe.message=g.message,Oe.reference=a),M==="result"){Oe.code=g.code,Oe.message=g.message;const d=a.messageId,c=a.llmModel,l=a.messageTime;Oe.messageId=d,Oe.llmModel=c,Oe.messageTime=l,Oe.sessionId=B}_e!=null&&_e.onmessage&&_e.onmessage(Oe)},onerror(){_e!=null&&_e.onerror&&_e.onerror()},onclose(){const w=bi(Wn({},Oe),{isReplying:!1});_e!=null&&_e.onclose&&_e.onclose(w)}})})}getResourceToken(B){return re(this,null,function*(){return this.get("/resourceToken",B)})}postUploadTicket(B){return re(this,null,function*(){return this.post("/upload/ticket",B)})}postPrompts(B){return re(this,null,function*(){return this.post("/prompts",B)})}listPrompt(B){return re(this,null,function*(){return B!=null&&B.title&&B.title.length>Oo?[]:this.get("/prompts",B)})}getPrompt(B){return re(this,null,function*(){return this.get(`/prompts/${B}`)})}updatePrompt(B,G){return re(this,null,function*(){return this.put(`/prompts/${B}`,G)})}deletePrompt(B){return re(this,null,function*(){return this.delete(`/prompts/${B}`)})}chatSessionIdContext(B){return re(this,null,function*(){return this.patch(`/chatSession/${B}/context`,{})})}getBaseModelInfo(B){return re(this,null,function*(){return this.get("/data/v1/baseModelInfo",{serviceId:B})})}getApplicationId(B){return re(this,null,function*(){return this.get(`/applications/${B}`)})}getAppService(){return re(this,null,function*(){return this.get("/appservice")})}}window.Buffer=Yu.Buffer;class Qh extends Qn{constructor(B,G,he){super(B!=null?B:ui.create(),he),this.axiosInstance=B,this.getToken=G}getApplicationIdSessions(B){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/session`)})}getApplicationId(B){return re(this,null,function*(){return this.get(`/data/v1/applications/${B}`)})}postApplicationIdSession(B){return re(this,null,function*(){return this.post(`/data/v1/application/${B.applicationId}/sessions`,B)})}getApplicationIdSessionsId(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/sessions/${G}`)})}patchApplicationIdSessionsId(B,G,he){return re(this,null,function*(){return this.patch(`/data/v1/application/${B}/sessions/${G}`,he)})}patchApplicationIdSessionsIdContext(B,G){return re(this,null,function*(){return this.patch(`/data/v1/application/${B}/sessions/${G}/context`,{})})}delApplicationIdSessionsId(B,G){return re(this,null,function*(){return this.delete(`/data/v1/application/${B}/sessions/${G}`)})}postComments(B,G,he){return re(this,null,function*(){return this.post(`/data/v1/application/${B}/sessions/${G}/comments`,he)})}getChatHistorySessionId(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/chatHistory/${G}`)})}postChatV2EventSource(B,G,he,_e,Oe,H){return re(this,null,function*(){const O={code:0,messageId:To(),content:"",role:hr.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1},x=yield this.getToken(),k=bi(Wn({},he),{stream:!0});Io(`https://aiot-dev.glodon.com/api/cvforcepd/chat/v2/chat?applicationId=${B}&sessionId=${G}`,{method:"POST",headers:{Authorization:`Bearer ${x}`,"Content-Type":"application/json"},body:JSON.stringify(k),openWhenHidden:!0,signal:_e,onopen(w){return w.ok&&Oe!=null&&Oe.onopen&&Oe.onopen(),Promise.resolve()},onmessage(w){if(!w.data.includes('{"code": ')){let M={};try{M=JSON.parse(w.data)}catch(d){}(M==null?void 0:M.mtype)==="search"?O.searchReference.push(M):O.content=O.content+w.data;const a={content:O.content,role:1,reference:O.reference,searchReference:O.searchReference,messageId:O.messageId,sessionId:G,messageTime:Fa(new Date).format("YYYY-MM-DD HH:mm:ss"),comment:{isAgree:0},isReplying:!0};return(Oe==null?void 0:Oe.onmessage)&&Oe.onmessage(a)}const g=JSON.parse(w.data);if(O.reference=g.data.reference,O.searchReference=g.data.searchReference,O.messageTime=g.data.messageTime,O.messageId=g.data.messageId,O.llmModel=g.data.llmModel,O.content=g.data.content,O.code=g.code,g.code===200){const M={code:O.code,content:O.content,role:1,reference:O.reference,searchReference:O.searchReference,messageId:O.messageId,sessionId:G,messageTime:O.messageTime,isReplying:!0};Oe!=null&&Oe.onmessage&&Oe.onmessage(M)}else return H&&H({code:g.code,message:g.message})},onerror(){Oe!=null&&Oe.onerror&&Oe.onerror()},onclose(){const w={code:O.code,content:O.content,role:1,reference:O.reference,searchReference:O.searchReference,messageId:O.messageId,sessionId:G,messageTime:O.messageTime,comment:{isAgree:0},isReplying:!1};Oe!=null&&Oe.onclose&&Oe.onclose(w)}})})}getKnowledgeIdFileIdData(B,G,he){return re(this,null,function*(){return this.get(`/data/v1/knowledge/${B}/file/${G}/data/${he}`)})}getKnowledgeIdFileId(B,G){return re(this,null,function*(){return this.get(`/data/v1/knowledge/${B}/file/${G}`)})}getKnowledgeId(B){return re(this,null,function*(){return this.get(`/data/v1/knowledge/${B}`)})}getSessionKnowledgeFile(B,G){return re(this,null,function*(){return this.get(`/data/v1/chatSession/${B}/file/${G}`)})}sleep(B){return re(this,null,function*(){return new Promise(G=>{setTimeout(()=>{G("")},B)})})}getBaseModelInfo(B){return re(this,null,function*(){return this.get("/data/v1/baseModelInfo",{serviceId:B})})}uploadFiles(B,G){return re(this,null,function*(){const he={files:G.map(_e=>_e.name),isv:"minio",knowledgeId:B};return this.postTicket(he).then(_e=>Promise.all(G.map(Oe=>this.uploadMinioFile(_e.minio,Oe)))).catch(_e=>{throw Error(_e)})})}postFile(B,G,he){return re(this,null,function*(){const _e={files:[G.name],isv:"minio",knowledgeId:B,type:he};return this.postTicket(_e).then(Oe=>this.uploadMinioFile(Oe.minio,G)).catch(Oe=>{throw Error(Oe)})})}postTicket(B){return re(this,null,function*(){return this.post("/data/v1/ticket",B)})}uploadFile(B,G){return re(this,null,function*(){const he={files:[G.name],isv:"minio",knowledgeId:B};return this.postTicket(he).then(_e=>this.uploadMinioFile(_e.minio,G)).catch(_e=>{throw Error(_e)})})}uploadMinioFile(B,G){return re(this,null,function*(){return new Promise((he,_e)=>{const Oe=new FileReader;Oe.readAsArrayBuffer(G),Oe.onload=H=>{Fi.initMinio({endPoint:B.endpoints[0],useSSL:B.useSSL,accessKey:B.accessKey,secretKey:B.secretKey});const O=Buffer.from(H.target.result),x={"Content-Type":"application/octet-stream"};Fi.putObjectBuffer(B.bucket,B.fileKeys[0],O,x,k=>{if(k)throw console.error(k),Error(k);he(B.fileKeys[0])})}})})}getRecommendQues(B){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/recommendQues`)})}postPrompts(B,G){return re(this,null,function*(){return this.post(`/data/v1/application/${B}/prompts`,G)})}listPrompt(B,G){return re(this,null,function*(){return G!=null&&G.title&&G.title.length>Oo?[]:this.get(`/data/v1/application/${B}/prompts`,G)})}getPrompt(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/prompts/${G}`)})}updatePrompt(B,G,he){return re(this,null,function*(){return this.put(`/data/v1/application/${B}/prompts/${G}`,he)})}deletePrompt(B,G){return re(this,null,function*(){return this.delete(`/data/v1/application/${B}/prompts/${G}`)})}postGeneques(B,G){return re(this,null,function*(){return this.post("/data/v1/geneques",B,{},G)})}getApplicationIdSessionKnowledgeFiles(B,G,he){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/session/${G}/file`,he)})}checkFileReady(B,G,he,_e=()=>!0,Oe=1e4,H){return re(this,null,function*(){return new Promise((O,x)=>{const k=()=>{if(!_e()){clearInterval(w);return}he?this.getApplicationIdSessionKnowledgeFileId(B,G,he,{},!0).then(M=>{if(H==null||H(M),M.status===$i.Success&&(clearInterval(w),O(M)),M.status===$i.Failed){clearInterval(w);const a="该文件无法读取,请上传可编辑pdf,doc,docx文档";x(Error(a,{cause:{code:-101,message:a,data:M}}))}}).catch(M=>{clearInterval(w),x(M)}):O(null)},w=setInterval(k,Oe);k()})})}getApplicationIdSessionKnowledgeFileId(B,G,he,_e,Oe){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/session/${G}/file/${he}`,_e,Oe)})}delApplicationIdSessionKnowledgeFileId(B,G,he){return re(this,null,function*(){return this.delete(`/data/v1/application/${B}/session/${G}/file/${he}`)})}postApplicationIdSessionKnowledgeSessionFile(B,G,he,_e,Oe){return re(this,null,function*(){return this.post(`/data/v1/application/${B}/session/${G}/sessionfile`,he,_e,Oe)})}delApplicationIdSessionKnowledgeFile(B,G,he){return re(this,null,function*(){return this.delete(`/data/v1/application/${B}/session/${G}/file`,he)})}deleteSessionKnowledgeFiles(B,G){return re(this,null,function*(){return this.delete(`/data/v1/chatSession/${B}/file`,G)})}patchApplicationIdKnowledgeIdFileId(B,G,he,_e){return re(this,null,function*(){return this.patch(`/data/v1/application/${B}/session/${G}/file/${he}`,_e)})}getApplicationIdSessionIdPromptVariables(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/session/${G}/promptVariables`)})}getApplicationIdPromptVariables(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/promptVariables`,G)})}patchApplicationIdSessionpromptVariablesId(B,G,he,_e){return re(this,null,function*(){return this.patch(`/data/v1/application/${B}/session/${G}/promptVariables/${he}`,_e)})}updateSession(B,G,he){return re(this,null,function*(){return this.patch(`/data/v1/application/${B}/sessions/${G}`,he)})}getSession(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/sessions/${G}`)})}}globalThis.Buffer=Yu.Buffer;class ep extends Qn{constructor(B,G,he){super(B!=null?B:ui.create(),he),this.axiosInstance=B,this.getToken=G}getBaseModelInfo(B){return re(this,null,function*(){return this.get("/data/v1/baseModelInfo",{serviceId:B})})}postGeneques(B){return re(this,null,function*(){return this.post("/data/v1/geneques",B)})}getApplicationId(B){return re(this,null,function*(){return this.get(`/data/v1/applications/${B}`)})}getApplicationIdSessions(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/sessionsa`,G)})}postApplicationIdSession(B){return re(this,null,function*(){return this.post(`/data/v1/application/${B.applicationId}/sessions`,B)})}getApplicationIdSessionsId(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/sessions/${G}`)})}patchApplicationIdSessionsId(B,G,he){return re(this,null,function*(){return this.patch(`/data/v1/application/${B}/sessions/${G}`,he)})}delApplicationIdSessionsId(B,G){return re(this,null,function*(){return this.delete(`/data/v1/application/${B}/sessions/${G}`)})}getApplicationIdPromptVariables(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/promptVariables`,G)})}getApplicationIdSessionIdPromptVariables(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/session/${G}/promptVariables`)})}patchApplicationIdSessionpromptVariablesId(B,G,he,_e){return re(this,null,function*(){return this.patch(`/data/v1/application/${B}/session/${G}/promptVariables/${he}`,_e)})}deleteSessionKnowledgeFiles(B,G){return re(this,null,function*(){return this.delete(`/data/v1/chatSession/${B}/file`,G)})}getRecommendQues(B){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/recommendQues`)})}postRecommendQues(B,G){return re(this,null,function*(){return this.post(`/data/v1/application/${B}/recommendQues`,G)})}delRecommendQues(B,G){return re(this,null,function*(){return this.delete(`/data/v1/application/${B}/recommendQues/${G}`)})}getChatHistorySessionId(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/chatHistory/${G}`)})}postPrompts(B,G){return re(this,null,function*(){return this.post(`/data/v1/application/${B}/prompts`,G)})}listPrompt(B,G){return re(this,null,function*(){return G!=null&&G.title&&G.title.length>Oo?[]:this.get(`/data/v1/application/${B}/prompts`,G)})}getPrompt(B,G){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/prompts/${G}`)})}updatePrompt(B,G,he){return re(this,null,function*(){return this.put(`/data/v1/application/${B}/prompts/${G}`,he)})}deletePrompt(B,G){return re(this,null,function*(){return this.delete(`/data/v1/application/${B}/prompts/${G}`)})}patchApplicationIdSessionsIdContext(B,G){return re(this,null,function*(){return this.patch(`/data/v1/application/${B}/sessions/${G}/context`,{})})}getApplicationIdSessionKnowledgeFiles(B,G,he){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/session/${G}/file`,he)})}postApplicationIdSessionKnowledgeFile(B,G,he){return re(this,null,function*(){return this.post(`/data/v1/application/${B}/session/${G}/file`,he)})}postApplicationIdSessionKnowledgeSessionFile(B,G,he){return re(this,null,function*(){return this.post(`/data/v1/application/${B}/session/${G}/sessionfile`,he)})}delApplicationIdSessionKnowledgeFile(B,G,he){return re(this,null,function*(){return this.delete(`/data/v1/application/${B}/session/${G}/file`,he)})}getApplicationIdSessionKnowledgeFileId(B,G,he,_e,Oe){return re(this,null,function*(){return this.get(`/data/v1/application/${B}/session/${G}/file/${he}`,_e,Oe)})}delApplicationIdSessionKnowledgeFileId(B,G,he){return re(this,null,function*(){return this.delete(`/data/v1/application/${B}/session/${G}/file/${he}`)})}patchApplicationIdKnowledgeIdFileId(B,G,he,_e){return re(this,null,function*(){return this.patch(`/data/v1/application/${B}/session/${G}/file/${he}`,_e)})}checkFileReady(B,G,he,_e=()=>!0,Oe=1e4,H){return re(this,null,function*(){return new Promise((O,x)=>{const k=()=>{if(!_e()){clearInterval(w);return}he?this.getApplicationIdSessionKnowledgeFileId(B,G,he,{},!0).then(M=>{if(H==null||H(M),M.status===$i.Success&&(clearInterval(w),O(M)),M.status===$i.Failed){clearInterval(w);const a="该文件无法读取,请上传可编辑pdf,doc,docx文档";x(Error(a,{cause:{code:-101,message:a,data:M}}))}}).catch(M=>{clearInterval(w),x(M)}):O(null)},w=setInterval(k,Oe);k()})})}uploadFile(B,G){return re(this,null,function*(){const he={files:[G.name],isv:"minio",knowledgeId:B};return this.postUploadTicket(he).then(_e=>this.uploadMinioFile(_e.minio,G)).catch(_e=>{throw Error(_e)})})}postUploadTicket(B){return re(this,null,function*(){return this.post("/data/v1/ticket",B)})}uploadMinioFile(B,G){return re(this,null,function*(){return new Promise((he,_e)=>{const Oe=new FileReader;Oe.readAsArrayBuffer(G),Oe.onload=H=>{Fi.initMinio({endPoint:B.endpoints[0],useSSL:B.useSSL,accessKey:B.accessKey,secretKey:B.secretKey});const O=Buffer.from(H.target.result),x={"Content-Type":"application/octet-stream"};Fi.putObjectBuffer(B.bucket,B.fileKeys[0],O,x,k=>{if(k)throw console.error(k),Error(k);he(B.fileKeys[0])})}})})}postComments(B,G,he){return re(this,null,function*(){return this.post(`/data/v1/application/${B}/sessions/${G}/comments`,he)})}getKnowledgeId(B){return re(this,null,function*(){return this.get(`/data/v1/knowledge/${B}`)})}getKnowledgeIdFileId(B,G){return re(this,null,function*(){return this.get(`/data/v1/knowledge/${B}/file/${G}`)})}getKnowledgeIdFileIdData(B,G,he){return re(this,null,function*(){return this.get(`/data/v1/knowledge/${B}/file/${G}/data/${he}`)})}postChatV2EventSource(B,G,he,_e,Oe){return re(this,null,function*(){var k;const H={code:0,messageId:To(),content:"",role:hr.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1,message:""},O=yield this.getToken(),x=bi(Wn({},he),{stream:!0});Io(`${(k=this.axiosInstance)==null?void 0:k.defaults.baseURL}/chat/v2/chat?applicationId=${B}&sessionId=${G}`,{method:"POST",headers:{Authorization:`Bearer ${O}`,"Content-Type":"application/json"},body:JSON.stringify(x),openWhenHidden:!0,signal:_e,onopen(w){return w.ok&&Oe!=null&&Oe.onopen&&Oe.onopen(),Promise.resolve()},onmessage(w){if(!w.data&&!w.event&&!w.id&&!w.retry)return;if(!w.data.includes('{"code": ')){let M={};try{M=JSON.parse(w.data)}catch(d){}(M==null?void 0:M.mtype)==="search"?H.searchReference.push(M):H.content=H.content+w.data;const a={content:H.content,role:1,reference:H.reference,searchReference:H.searchReference,messageId:H.messageId,sessionId:G,messageTime:Fa(new Date).format("YYYY-MM-DD HH:mm:ss"),comment:{isAgree:0},isReplying:!0};return(Oe==null?void 0:Oe.onmessage)&&Oe.onmessage(a)}const g=JSON.parse(w.data);if(H.reference=g.data.reference,H.messageTime=g.data.messageTime,H.messageId=g.data.messageId,H.llmModel=g.data.llmModel,H.code=g.code,H.message=g.message,g.code===200){const M={code:H.code,content:H.content,role:1,reference:H.reference,searchReference:H.searchReference,messageId:H.messageId,sessionId:G,messageTime:H.messageTime,isReplying:!0};Oe!=null&&Oe.onmessage&&Oe.onmessage(M)}},onerror(){Oe!=null&&Oe.onerror&&Oe.onerror()},onclose(){const w={code:H.code,content:H.content,role:1,reference:H.reference,searchReference:H.searchReference,messageId:H.messageId,sessionId:G,messageTime:H.messageTime,comment:{isAgree:0},isReplying:!1,message:H.message};Oe!=null&&Oe.onclose&&Oe.onclose(w)}})})}postChat(B,G){return re(this,null,function*(){var he;return this.post(`${(he=this.axiosInstance)==null?void 0:he.defaults.baseURL}/chat/v2/chat`,B,G)})}}var sc=(de=>(de[de.Dialog=0]="Dialog",de[de.TextGenerate=1]="TextGenerate",de[de.FileSummery=2]="FileSummery",de))(sc||{}),uc=(de=>(de[de.Robot=1]="Robot",de[de.User=2]="User",de[de.System=3]="System",de))(uc||{}),cc=(de=>(de[de.Processing=1]="Processing",de[de.Done=2]="Done",de[de.Failed=3]="Failed",de))(cc||{}),lc=(de=>(de[de.File=0]="File",de[de.WebLink=1]="WebLink",de))(lc||{}),hc=(de=>(de[de.Processing=1]="Processing",de[de.Success=2]="Success",de[de.Failed=3]="Failed",de))(hc||{}),pc=(de=>(de.InputFile="ui.input.file",de.LLMModel="ui.llm.model",de))(pc||{}),fc=(de=>(de[de.Idle=0]="Idle",de[de.Quoted=1]="Quoted",de))(fc||{}),dc=(de=>(de[de.Basic=0]="Basic",de[de.Pro=1]="Pro",de))(dc||{}),mc=(de=>(de[de.Dialog=0]="Dialog",de[de.Text=1]="Text",de[de.Agent=2]="Agent",de[de.All=3]="All",de))(mc||{});class tp extends Qn{constructor(B,G){super(B!=null?B:ui.create(),G)}getKnowledge(B,G){return re(this,null,function*(){return this.get("/knowledge",{docId:B,name:G})})}postKnowledge(B){return re(this,null,function*(){return this.post("/knowledge",B)})}getKnowledgeId(B){return re(this,null,function*(){return this.get(`/knowledge/${B}`)})}patchKnowledgeId(B,G){return re(this,null,function*(){return this.patch(`/knowledge/${B}`,G)})}delKnowledgeId(B){return re(this,null,function*(){return this.delete(`/knowledge/${B}`)})}getKnowledgeIdFile(B){return re(this,null,function*(){return this.get(`/knowledge/${B}/file`)})}getKnowledgeIdFileList(B,G){return re(this,null,function*(){return this.listPaged(`/knowledge/${B}/file`,G)})}postKnowledgeIdFile(B,G){return re(this,null,function*(){return this.post(`/knowledge/${B}/file`,G)})}getUploadTicket(B){return re(this,null,function*(){return this.get("/upload/ticket",B)})}delKnowledgeIdFileFid(B,G){return re(this,null,function*(){return this.delete(`/knowledge/${B}/file/${G}`)})}patchKnowledgeIdFileFid(B,G,he){return re(this,null,function*(){return this.patch(`/knowledge/${B}/file/${G}`,he)})}listSessions(B,G){return re(this,null,function*(){return this.get(`/application/${B}/sessionsa`,G)})}postSession(B,G){return re(this,null,function*(){return this.post(`/application/${B}/sessions`,G)})}getSession(B,G){return re(this,null,function*(){return this.get(`/application/${B}/sessions/${G}`)})}patchSessionsId(B,G,he){return re(this,null,function*(){return this.patch(`/application/${B}/sessions/${G}`,he)})}delSessionsId(B,G){return re(this,null,function*(){return this.delete(`/application/${B}/sessions/${G}`)})}getSessionKnowledgeFile(B,G,he){return re(this,null,function*(){return this.get(`/application/${B}session/${G}/file/${he}`)})}postSessionKnowledgeFile(B,G,he){return re(this,null,function*(){return this.post(`/application/${B}session/${G}/file`,he)})}postComments(B,G,he){return re(this,null,function*(){return this.post(`/application/${B}/sessions/${G}/comments`,he)})}getChatHistorySessionId(B,G,he){return re(this,null,function*(){return this.get(`application/${B}/chatHistory/${G}`,he)})}postChatHistorySessionId(B,G){return re(this,null,function*(){return this.post(`/chatHistory/${B}`,G)})}getApplications(B){return re(this,null,function*(){return this.get("/applications",B)})}postApplication(B){return re(this,null,function*(){return this.post("/applications",B)})}getApplicationId(B){return re(this,null,function*(){return this.get(`/applications/${B}`)})}patchApplicationId(B,G){return re(this,null,function*(){return this.patch(`/applications/${B}`,G)})}delApplicationId(B){return re(this,null,function*(){return this.delete(`/applications/${B}`)})}getApplicationIdSessions(B){return re(this,null,function*(){return this.get(`/applications/${B}/session`)})}patchFileId(B,G){return re(this,null,function*(){return this.patch(`/file/${B}`,G)})}getCvforceResource(B){return re(this,null,function*(){return this.get("/cvforce/resource",B)})}postKnowledgeIdComposedFiles(B,G){return re(this,null,function*(){return this.post(`/knowledge/${B}/composedFiles`,G)})}getTokensApplicationId(B,G){return re(this,null,function*(){return this.get(`/tokens/${B}`,G)})}getTokens(B){return re(this,null,function*(){return this.get("/tokens",B)})}uploadMinioFile(B,G){return re(this,null,function*(){return new Promise((he,_e)=>{const Oe=new FileReader;Oe.readAsArrayBuffer(G),Oe.onload=H=>{Fi.initMinio({endPoint:B.endpoints[0],useSSL:B.useSSL,accessKey:B.accessKey,secretKey:B.secretKey});const O=Buffer.from(H.target.result),x={"Content-Type":"application/octet-stream"};Fi.putObjectBuffer(B.bucket,B.fileKeys[0],O,x,k=>{if(k)throw console.error(k),Error(k);he(B.fileKeys[0])})}})})}uploadFile(B,G){return re(this,null,function*(){const he={files:[G.name],isv:"minio",knowledgeId:B};return this.getUploadTicket(he).then(_e=>this.uploadMinioFile(_e.minio,G)).catch(_e=>{throw Error(_e)})})}uploadFiles(B,G){return re(this,null,function*(){const he={files:G.map(_e=>_e.name),isv:"minio",knowledgeId:B};return this.getUploadTicket(he).then(_e=>Promise.all(G.map(Oe=>this.uploadMinioFile(_e.minio,Oe)))).catch(_e=>{throw Error(_e)})})}getAecModels(){return re(this,null,function*(){return this.get("/aecModels")})}postTextFilter(B){return re(this,null,function*(){return this.post("/textFilter",B)})}getTenantModel(){return re(this,null,function*(){return this.get("/tenantModel")})}getPrompts(B,G){return re(this,null,function*(){return this.get(`application/${B}/promptVariables`,G)})}postPrompt(B,G){return re(this,null,function*(){return this.post(`application/${B}/promptVariables`,G)})}patchPromptId(B,G,he){return re(this,null,function*(){return this.patch(`application/${B}/promptVariables/${G}`,he)})}delPromptId(B,G){return re(this,null,function*(){return this.delete(`application/${B}/promptVariables/${G}`)})}getSessionPrompts(B){return re(this,null,function*(){return this.get(`session/${B}/promptVariables`)})}patchSessionPromptId(B,G,he){return re(this,null,function*(){return this.patch(`session/${G}/promptVariables/${B}`,he)})}getApplicationIdSessionIdPromptVariables(B,G){return re(this,null,function*(){return this.get(`/application/${B}/session/${G}/promptVariables`)})}patchApplicationIdSessionpromptVariablesId(B,G,he,_e){return re(this,null,function*(){return this.patch(`/application/${B}/session/${G}/promptVariables/${he}`,_e)})}getPresetApplication(B){return re(this,null,function*(){return this.get("presetApplication",B)})}postKnowledgeConfig(B){return re(this,null,function*(){return this.post("/knowledgeConfig",B)})}getKnowledgeConfig(B){return re(this,null,function*(){return this.get(`/knowledgeConfig/${B}`)})}patchKnowledgeConfig(B,G){return re(this,null,function*(){return this.patch(`/knowledgeConfig/${B}`,G)})}getKnowledgeIdFileId(B,G){return re(this,null,function*(){return this.get(`/knowledge/${B}/file/${G}`)})}getKnowledgeIdFileIdData(B,G,he){return re(this,null,function*(){return this.listPaged(`/knowledge/${B}/file/${G}/data`,he)})}postKnowledgeIdFileIdData(B,G,he){return re(this,null,function*(){return this.post(`/knowledge/${B}/file/${G}/data`,{data:he})})}patchKnowledgeIdFileIdData(B,G,he,_e){return re(this,null,function*(){return this.patch(`/knowledge/${B}/file/${G}/data/${he}`,{data:_e})})}delKnowledgeIdFileIdDataDid(B,G,he){return re(this,null,function*(){return this.delete(`/knowledge/${B}/file/${G}/data/${he}`)})}getPresetKnowledge(B){return re(this,null,function*(){return this.get("/presetKnowledge",B)})}patchSessionsIdContext(B){return re(this,null,function*(){return this.patch(`/sessions/${B}/context`,{})})}postResourceToken(B){return re(this,null,function*(){return this.post("/resourceToken",B)})}getApplicationIdSession(B){return re(this,null,function*(){return this.get(`/application/${B}/session`)})}patchApplicationIdSessionsIdContext(B,G){return re(this,null,function*(){return this.patch(`/application/${B}/sessions/${G}/context`,{})})}postApplicationIdSessions(B,G){return re(this,null,function*(){return this.post(`/application/${B}/sessions`,G)})}getApplicationIdChatHistorySessionId(B,G){return re(this,null,function*(){return this.get(`/application/${B}/chatHistory/${G}`)})}postApplicationIdChatHistorySessionIdComments(B,G,he){return re(this,null,function*(){return this.post(`/application/${B}/sessions/${G}/comments`,he)})}getApplicationIdPrompts(B,G){return re(this,null,function*(){return this.get(`/application/${B}/promptVariables`,G)})}postKnowledgeSourceFile(B,G,he){return re(this,null,function*(){return this.post(`/knowledge/${B}/sourceFile/${G}`,he)})}getMetadata(B){return re(this,null,function*(){return this.get("/metadata",B)})}postGeneques(B){return re(this,null,function*(){return this.post("/geneques",B)})}getBaseModel(B){return re(this,null,function*(){return this.get("/baseModelInfo",{serviceId:B})})}}var gc=(de=>(de[de.inital=0]="inital",de[de.success=1]="success",de[de.processing=2]="processing",de[de.failed=3]="failed",de))(gc||{}),vc=(de=>(de[de.inital=0]="inital",de[de.processing=1]="processing",de[de.paused=2]="paused",de[de.failed=3]="failed",de[de.done=4]="done",de))(vc||{}),Ji=(de=>(de.Pending="PENDING",de.Started="STARTED",de.Failure="FAILURE",de.Success="SUCCESS",de.Abort="ABORT",de))(Ji||{}),yc=(de=>(de.Pending="PENDING",de.Started="STARTED",de.Success="SUCCESS",de.Failure="FAILURE ",de))(yc||{}),bc=(de=>(de[de.all=0]="all",de[de.general=1]="general",de[de.major=2]="major",de))(bc||{});function np(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(de){const B=Math.random()*16|0;return(de=="x"?B:B&3|8).toString(16)})}class ip extends Qn{constructor(B,G){super(B!=null?B:ui.create(),G)}getDatasets(B){return re(this,null,function*(){return this.get("/datasets",B)})}postDatasets(B){return re(this,null,function*(){return this.post("/datasets",B)})}getDatasetsId(B){return re(this,null,function*(){return this.get(`/datasets/${B}`)})}delDatasetsId(B){return re(this,null,function*(){return this.delete(`/datasets/${B}`)})}patchDatasetsId(B,G){return re(this,null,function*(){return this.patch(`/datasets/${B}`,G)})}getDatasetsIdVersions(B,G,he){return re(this,null,function*(){return this.get(`/datasets/${B}/versions?pageNo=${G}&pageSize=${he}`)})}getDatasetsIdVersionsVidNextno(B){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/nextno`)})}getS3Iam(B,G){return re(this,null,function*(){return this.post("/s3/iam",{datasetId:B,publicBucket:G})})}postDatasetsIdVersions(B,G){return re(this,null,function*(){return this.post(`/datasets/${B}/versions`,G)})}patchDatasetsIdVersionsVid(B,G,he){return re(this,null,function*(){return this.patch(`/datasets/${B}/versions/${G}`,he)})}getDatasetsIdVersionsVid(B,G){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/${G}`)})}delDatasetsIdVersionsVid(B,G){return re(this,null,function*(){return this.delete(`/datasets/${B}/versions/${G}`)})}getDatasetsIdVersionsNo(B,G){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/no`,G)})}listDatasetsIdLabels(B,G){return re(this,null,function*(){return this.listPaged(`/datasets/${B}/labels`,G)})}getDatasetsIdVersionsVidLabelcount(B,G,he){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/${G}/labelcount`,he)})}getDatasetsIdVersionsVidSamples(B,G,he){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/${G}/samples`,he)})}updateSamples(B,G,he,_e){return re(this,null,function*(){return this.patch(`/datasets/${B}/versions/${G}/samples`,{samples:he,confirmStatus:_e})})}delDatasetsIdVersionsVidSamplesId(B,G,he){return re(this,null,function*(){return this.delete(`/datasets/${B}/versions/${G}/samples/${he}`)})}delDatasetsIdVersionsVidLlmSamplesId(B,G,he){return re(this,null,function*(){return this.delete(`datasets/${B}/versions/${G}/llmSamples/${he}`)})}getDatasetsIdVersionsVidSsamplesSid(B,G,he){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/${G}/samples/${he}`).then(_e=>bi(Wn({},_e),{labels:_e.labels?_e.labels.map(Oe=>bi(Wn({},Oe),{uuid:Oe.uuid||np()})):[]}))})}getImportInfo(){return re(this,null,function*(){return this.get("/importInfo")})}getOptionsMarkType(){return re(this,null,function*(){return this.get("/options/markType")})}getOptionsOcrMarkTmpl(){return re(this,null,function*(){return this.get("/options/ocrMarkTmpl")})}getOptionsLlmMarkTmpl(){return re(this,null,function*(){return this.get("/options/llmMarkTmpl")})}getOptionsLlmResponseSort(){return re(this,null,function*(){return this.get("/options/llmResponseSort")})}getOptionsImgproxy(){return re(this,null,function*(){return this.get("/options/imgproxy")})}getDeduplication(B,G){return re(this,null,function*(){return this.post("/files/deduplication",{md5s:B,datasetId:G})})}postDatasetsIdVersionsVidSamples(B,G,he){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/samples`,he)})}patchDatasetsIdVersionsVidSamples(B,G,he){return re(this,null,function*(){return this.patch(`/datasets/${B}/versions/${G}/samples`,he)})}listCategory(B){return re(this,null,function*(){return this.list(`/datasets/${B}/catagory`)})}postCategory(B,G){return re(this,null,function*(){return this.post(`/datasets/${B}/catagory`,{name:G})})}updateCategory(B,G,he){return re(this,null,function*(){return this.patch(`/datasets/${B}/catagory/${G}`,{name:he})})}deleteCategory(B,G){return re(this,null,function*(){return this.delete(`/datasets/${B}/catagory/${G}`)})}postDatasetIdVersionIdFilesDeduplication(B,G,he){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/files/deduplication`,he)})}postDatasetIdVersionIdLlmSamples(B,G,he){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/llmSamples`,he)})}patchDatasetIdVersionIdLlmSampleId(B,G,he,_e){return re(this,null,function*(){return this.patch(`/datasets/${B}/versions/${G}/llmSamples/${he}`,_e)})}postLlmSamplesSubsection(B,G,he){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/llmSamples/subsection`,he)})}generatellmSamplesSubsection(B,G,he){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/llmSamples/subsection`,he)})}listSubsection(B,G,he,_e){return re(this,null,function*(){return this.listPaged(`/datasets/${B}/versions/${G}/llmSamples/${he}/subsection`,_e)})}postSubsection(B,G,he,_e){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/llmSamples/${he}/subsection`,_e)})}updateSubsection(B,G,he,_e,Oe){return re(this,null,function*(){return this.patch(`/datasets/${B}/versions/${G}/llmSamples/${he}/subsection/${_e}`,Oe)})}deleteSubsection(B,G,he,_e){return re(this,null,function*(){return this.delete(`/datasets/${B}/versions/${G}/llmSamples/${he}/subsection/${_e}`)})}llmSupervisedRecordGenerate(B){return re(this,null,function*(){return this.post("/llm/supervisedRecord/generatedata",B)})}llmSupervisedRecordAbordTask(B){return re(this,null,function*(){return this.post("/llm/supervisedRecord/abortTask",B)})}llmSupervisedRecordPauseTask(B){return re(this,null,function*(){return this.post("/llm/supervisedRecord/pauseTask",B)})}getLlmSupervisedRecord(B){return re(this,null,function*(){return this.get(`/llm/supervisedRecord/${B}`)})}getDatasetsIdVersionsIdLlmSamplesV2(B,G,he){return re(this,null,function*(){return this.listPaged(`/datasets/${B}/versions/${G}/llmSamplesV2`,he)})}postDatasetsIdVersionsIdLlmSamplesV2(B,G,he){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/llmSamplesV2`,he)})}getDatasetsIdVersionsIdLlmSamplesV2Sid(B,G,he){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/${G}/llmSamplesV2/${he}`)})}patchDatasetsIdVersionsIdLlmSamplesV2Sid(B,G,he,_e){return re(this,null,function*(){return this.patch(`/datasets/${B}/versions/${G}/llmSamplesV2/${he}`,_e)})}delDatasetsIdVersionsIdLlmSamplesV2Sid(B,G,he){return re(this,null,function*(){return this.delete(`/datasets/${B}/versions/${G}/llmSamplesV2/${he}`)})}getDatasetsIdVersionsIdExportLLMSamples(B,G){return re(this,null,function*(){return this.getNonStandard(`/datasets/${B}/versions/${G}/exportLLMSamples`,{responseType:"blob"})})}llmSamplesSubsectionView(B,G,he,_e){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/llmSamples/${he}/previewSubsection`,_e)})}listLabels(B,G){return re(this,null,function*(){return this.listPaged(`/datasets/${B}/labels`,G)})}postLabels(B,G){return re(this,null,function*(){return this.post(`/datasets/${B}/labels`,G)})}patchLabel(B,G,he){return re(this,null,function*(){return this.patch(`/datasets/${B}/labels/${G}`,he)})}deleteLabel(B,G){return re(this,null,function*(){return this.delete(`/datasets/${B}/labels/${G}`)})}postUploadPicsZip(B,G,he){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/uploadzip`,he)})}checkFileResult(B,G,he,_e=1e3,Oe){return re(this,null,function*(){return new Promise((H,O)=>{const x=()=>{B?this.getUploadPicsZipResult(B,G,he).then(w=>{const g=w[0];if(g.state===Ji.Started||g.state===Ji.Pending){const M=g.process||0;Oe&&Oe(M)}if(g.state===Ji.Success&&(clearInterval(k),H(g.lastTaskResult)),g.state===Ji.Failure){clearInterval(k);const M="该文件处理失败";O(Error(M,{cause:{code:-101,message:M,data:g.lastTaskResult}}))}g.state===Ji.Abort&&(clearInterval(k),H(g.lastTaskResult))}).catch(w=>{clearInterval(k),O(w)}):H(null)},k=setInterval(x,_e);x()})})}getUploadPicsZipResult(B,G,he){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/${G}/uploadzip`,he)})}getUploadabort(B,G,he){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/${G}/uploadabort`,he)})}postPreLabelTask(B,G,he){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/prelabeltask`,he)})}getPreLabelTask(B,G){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/${G}/prelabeltask`)})}delPreLabelTask(B,G,he){return re(this,null,function*(){return this.delete(`/datasets/${B}/versions/${G}/prelabeltask/${he}`)})}getAllConfirmSamples(B,G){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/${G}/confirm`)})}getDataSetCopyTask(B,G){return re(this,null,function*(){return this.get(`/datasets/${B}/versions/${G}/copyDataset`)})}postDataSetCopyTask(B,G,he){return re(this,null,function*(){return this.post(`/datasets/${B}/versions/${G}/copyDataset`,he)})}deleteDatasetCopyTask(B,G,he){return re(this,null,function*(){return this.delete(`/datasets/${B}/versions/${G}/copyDataset`,he)})}}class rp extends Qn{constructor(B,G){super(B!=null?B:ui.create(),G)}listModelServices(B){return re(this,null,function*(){return this.listPaged("/modelService",B)})}postModelService(B){return re(this,null,function*(){return this.post("/modelService",B)})}getModelServiceById(B){return re(this,null,function*(){return this.get(`/modelService/${B}`)})}patchModelServiceById(B,G){return re(this,null,function*(){return this.patch(`/modelService/${B}`,G)})}deleteModelService(B){return re(this,null,function*(){return this.delete(`/modelService/${B}`)})}getEnableModelService(B){return re(this,null,function*(){return this.get(`/modelService/${B}/enable`)})}getDisableModelService(B){return re(this,null,function*(){return this.get(`/modelService/${B}/disable`)})}getModelServiceList(B){return re(this,null,function*(){return this.get(`/modelService/${B}/list`)})}getModelServiceDelist(B){return re(this,null,function*(){return this.get(`/modelService/${B}/delist`)})}importService(B){return re(this,null,function*(){return this.post("/modelService/import",B)})}patchModelService(B,G){return re(this,null,function*(){return this.patch(`/modelService/${B}`,G)})}openModelServices(B){return re(this,null,function*(){return this.get("/openModelService",B)})}importMirronService(B){return re(this,null,function*(){return this.post("/modelService/importMirron",B)})}patchMirronService(B,G){return re(this,null,function*(){return this.patch(`/modelService/importMirron/${B}`,G)})}getServiceSignList(B){return re(this,null,function*(){return this.get("/serviceSign",B)})}}var wc=(de=>(de[de.minio=0]="minio",de[de.pvc=1]="pvc",de))(wc||{}),xc=(de=>(de.common="A100",de.idcard="A104",de.bankcard="A108",de.page="A112",de.rmwatermark="A115",de.seal="A116",de.rmseal="A117",de.table="A118",de))(xc||{}),Mc=(de=>(de.User="user",de.Assistant="assistant",de.System="system",de))(Mc||{});class op extends Qn{constructor(B,G){super(B!=null?B:ui.create(),G)}ocr(B,G){return re(this,null,function*(){if(G.modelStore===wc.pvc){const he=this.convertToBatchParams(G),_e=yield this.ocrPvcBatch(B,he);return this.convertToMinioResult(_e)}else return this.ocrMinio(B,G)})}convertToBatchParams(B){return{pages:[{image:B.image}]}}convertToMinioResult(B){var G;return(G=B.pages)==null?void 0:G.flatMap(he=>{var _e;return((_e=he.textItems)==null?void 0:_e.map(Oe=>({box:Oe.bbox})))||[]})}ocrMinio(B,G){return re(this,null,function*(){return G.image&&G.image.split("base64,").length>1&&(G.image=G.image.split("base64,")[1]),this.post(`/v2/infer?serviceId=${B}`,G)})}ocrPvcBatch(B,G){return re(this,null,function*(){return this.post(`/v2/infer?serviceId=${B}`,G)})}getSleep(B){return re(this,null,function*(){return new Promise(G=>{setTimeout(()=>{G(!0)},B*1e3)})})}postChatCompletions(B){return re(this,null,function*(){return this.postNonStandard("/v1/chat/completions",B)})}detection(B,G){return re(this,null,function*(){return this.post(`/v2/infer?serviceId=${B}`,G)})}getBaseModel(B){return re(this,null,function*(){return this.get("/v1/baseModel",{serviceId:B})})}postEmbeddings(B){return re(this,null,function*(){return this.postNonStandard("/v1/embeddings",B)})}}class ap extends Qn{constructor(B,G){super(B!=null?B:ui.create(),G)}listTasks(B){return re(this,null,function*(){return this.get("/tasks",B)})}createTask(B){return re(this,null,function*(){return this.post("/tasks",B)})}getTask(B){return re(this,null,function*(){return this.get(`/tasks/${B}`)})}updateTask(B,G){return re(this,null,function*(){return this.patch(`/tasks/${B}`,G)})}deleteTask(B){return re(this,null,function*(){return this.delete(`/tasks/${B}`)})}listTaskFiles(B){return re(this,null,function*(){return this.get(`/tasks/${B}/files`)})}uploadTaskFile(B,G){return re(this,null,function*(){return this.post(`/tasks/${B}/files`,G)})}listWorkflowExecutions(B){return re(this,null,function*(){return this.get("/workflows/executions",B)})}getWorkflowExecution(B){return re(this,null,function*(){return this.get(`/workflows/executions/${B}`)})}startWorkflowExecution(B){return re(this,null,function*(){return this.post("/workflows/executions",B)})}updateWorkflowExecution(B,G){return re(this,null,function*(){return this.patch(`/workflows/executions/${B}`,G)})}cancelWorkflowExecution(B){return re(this,null,function*(){return this.post(`/workflows/executions/${B}/cancel`,{})})}getUploadTicket(B){return re(this,null,function*(){return this.get("/upload/ticket",B)})}}exports.AECPilotApi=Jh;exports.AIShopApi=op;exports.AecKnowledgeFileStatus=$i;exports.AecpilotUIApi=ep;exports.AgentClientUIApi=Qh;exports.ApplicationTypes=mc;exports.ArchiGptUIKeys=pc;exports.AuthApi=Bh;exports.BaseApi=Qn;exports.CVForceApi=tp;exports.CVForceDatahubApi=ip;exports.ChatMessageRole=uc;exports.ChatMode=sc;exports.ContralyzeApi=ap;exports.DataApi=Dh;exports.FileProccessStatus=cc;exports.GenerateStatus=vc;exports.IChatRole=Mc;exports.IDatasetLevel=bc;exports.IFileOrigin=ac;exports.IHistoryRole=hr;exports.ISourceType=ic;exports.ISpacetwinStatus=tc;exports.IThinkingStatus=oc;exports.IversionInfo=rc;exports.KnowledgeFileStatus=hc;exports.KnowledgeType=dc;exports.ModelServiceApi=rp;exports.OCRServiceId=xc;exports.PROMPT_SEARCH_MAX_LENGTH=Oo;exports.PROMPT_TITLE_MAX_LENGTH=Yh;exports.PanoramaApi=Lh;exports.PanoramaPluginMgrApi=qh;exports.PreLabelTaskStatus=yc;exports.PromptStatus=fc;exports.RecordStatus=ec;exports.SourceType=lc;exports.SubsectionStatus=gc;exports.UploadZipsStatus=Ji;exports.needPrettifyMsg=Ju;exports.prettifyMsg=Qu;
1
+ "use strict";var fe=Object.defineProperty,ve=Object.defineProperties;var Se=Object.getOwnPropertyDescriptors;var M=Object.getOwnPropertySymbols;var N=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var B=(n,e,t)=>e in n?fe(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,y=(n,e)=>{for(var t in e||(e={}))N.call(e,t)&&B(n,t,e[t]);if(M)for(var t of M(e))H.call(e,t)&&B(n,t,e[t]);return n},S=(n,e)=>ve(n,Se(e));var O=(n,e)=>{var t={};for(var r in n)N.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&M)for(var r of M(n))e.indexOf(r)<0&&H.call(n,r)&&(t[r]=n[r]);return t};var s=(n,e,t)=>new Promise((r,a)=>{var i=h=>{try{l(t.next(h))}catch(d){a(d)}},o=h=>{try{l(t.throw(h))}catch(d){a(d)}},l=h=>h.done?r(h.value):Promise.resolve(h.value).then(i,o);l((t=t.apply(n,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("axios"),k=require("@glodon-aiot/minio"),F=require("uuid"),C=require("dayjs"),Q=require("buffer");class m{constructor(e,t){this.axios=e,this.errorHandler=t}get(e,t,r){return s(this,null,function*(){const a=this.axios.get(e,{params:t});return this.handleResponse(a,r)})}listPaged(e,t){return s(this,null,function*(){const r=this.axios.get(e,{params:t});return this.handleResponse(r)})}list(e,t){return s(this,null,function*(){const r=this.axios.get(e,{params:t});return this.handleResponse(r)})}delete(e,t){return s(this,null,function*(){const r=this.axios.delete(e,{params:t});return this.handleResponse(r)})}post(e,t,r,a){return s(this,null,function*(){const i=this.axios.post(e,t,y({params:r},a));return this.handleResponse(i)})}postForm(e,t,r){return s(this,null,function*(){const a=this.axios.post(e,t,{params:r,headers:{"Content-Type":"multipart/form-data"}});return this.handleResponse(a)})}patch(e,t,r){return s(this,null,function*(){const a=this.axios.patch(e,t,{params:r});return this.handleResponse(a)})}put(e,t){return s(this,null,function*(){const r=this.axios.put(e,t);return this.handleResponse(r)})}upload(e,t,r){return s(this,null,function*(){const a=this.axios.post(e,t,y({},r));return this.handleResponse(a)})}getNonStandard(e,t){return s(this,null,function*(){const r=this.axios.get(e,t);try{const a=yield r;if(a.status===200)return a}catch(a){throw this.handleError(a)}})}postNonStandard(e,t,r,a){return s(this,null,function*(){var l,h;const o=yield this.axios.post(e,t,y({params:r},a));if(o.status===200)if((l=o.data)!=null&&l.code)(h=this.errorHandler)!=null&&h.onAppStatusError&&this.errorHandler.onAppStatusError(o.data.code,o.data.message);else return o.data})}handleResponse(e,t){return s(this,null,function*(){try{const r=yield e;return this.handleAppError(r.data,t).data}catch(r){throw this.handleError(r)}})}handleAppError(e,t){var r;if(e.code<200||e.code>=300)throw(r=this.errorHandler)!=null&&r.onAppStatusError?this.errorHandler.onAppStatusError(e.code,J(e.code,e.message),t):console.error("未处理应用错误:",e),{isAxiosError:!1,message:e.message};return e}handleError(e){var t,r;return e.response?(t=this.errorHandler)!=null&&t.onHttpStatusError&&(console.log("HTTP 错误",this.errorHandler),this.errorHandler.onHttpStatusError(e.response.status,"",e.response)):e.request?(console.log(e.request),(r=this.errorHandler)!=null&&r.onNetworkError&&this.errorHandler.onNetworkError()):console.error("axios request config error:",e),new Error(e.message)}}const q=n=>n>=10002&&n<=10012,J=(n,e)=>q(n)?"数据操作错误":e||"未知接口错误";class Ie extends m{constructor(e,t){super(e!=null?e:f.create(),t)}getLoginUrl(){return s(this,null,function*(){return this.get("/openAddress")})}getToken(e,t){return s(this,null,function*(){return this.get(e,t)})}getAIoTTokenByGTeamToken(e){return s(this,null,function*(){return this.post("/validate/glodonCloud",e).then(t=>t.accessToken)})}postRefreshToken(e,t,r,a="3600",i){return s(this,null,function*(){return this.post("/refresh-token",{oldToken:e,tenant:t,orgId:r,expired:a,product:i})})}logout(){return s(this,null,function*(){return this.post("/logout",{})})}}class we extends m{constructor(e,t){super(e!=null?e:f.create(),t)}getTenant(e){return s(this,null,function*(){return this.get(`/tenant/${e}`)})}listProduct(){return s(this,null,function*(){return this.list("/products")})}listProvinces(){return s(this,null,function*(){return this.list("/regions/provinces")})}listCities(e){return s(this,null,function*(){return this.list(`/regions/provinces/${e}/city`)})}listCounties(e,t){return s(this,null,function*(){return this.list(`/regions/provinces/${e}/city/${t}/county`)})}getOrgList(e){return s(this,null,function*(){return this.list("/org",e)})}getUserIdOrgList(e,t){return s(this,null,function*(){return this.list(`/users/${e}/org`,t)})}delOrg(e){return s(this,null,function*(){return this.delete(`/org/${e}`)})}postOrg(e){return s(this,null,function*(){return this.post("/org",e)})}patchOrg(e,t){return s(this,null,function*(){return this.patch(`/org/${e}`,t)})}getUsers(e,t){return s(this,null,function*(){return this.list(`/tenant/${e}/users`,t)})}delUser(e,t){return s(this,null,function*(){return this.delete(`/tenant/${e}/users/${t}`)})}postUser(e,t){return s(this,null,function*(){return this.post(`/tenant/${e}/users`,t)})}patchUser(e,t,r){return s(this,null,function*(){return this.patch(`tenant/${e}/users/${t}`,r)})}getTenantList(){return s(this,null,function*(){return this.get("/tenant")})}getUserIdRoles(e){return s(this,null,function*(){return this.get(`/users/${e}/role`)})}getProductCodeRole(e){return s(this,null,function*(){return this.get(`/products/${e}/role`)})}postUserRole(e,t){return s(this,null,function*(){return this.post(`/users/${e}/role`,t)})}patchUserRole(e,t,r){return s(this,null,function*(){return this.patch(`/users/${e}/role/${t}`,r)})}deleteUserRole(e,t){return s(this,null,function*(){return this.delete(`/users/${e}/role/${t}`)})}getUsersIdProductCodeMenu(e,t,r="web",a){return s(this,null,function*(){return this.get(`/users/${e}/product/${t}/menu?groupCode=${r}`,{level:a})})}getUserInfo(e){return s(this,null,function*(){return this.get(`/users/${e}`)})}uipermission(e,t,r="web"){return s(this,null,function*(){return this.get(`/users/${e}/product/${t}/uipermission?groupCode=${r}`)})}getAppInfo(e){return s(this,null,function*(){return this.get(`/products/${e}/apps`)})}getTenantUserInfo(e,t){return s(this,null,function*(){return this.get(`/tenant/${e}/users/${t}`)})}uploadFile(e){return s(this,null,function*(){return this.upload("/upload",e)})}getUserIdProductCodeOrg(e,t){return s(this,null,function*(){return this.get(`/users/${e}/product/${t}/org`)})}getOrg(e){return s(this,null,function*(){return this.get(`/org/${e}`)})}getUploadTicket(e){return s(this,null,function*(){return this.get("/upload/ticket",e)})}putAppInfo(e,t){return s(this,null,function*(){return this.put(`/products/${e}/apps`,t)})}getTenantKeySecret(e){return s(this,null,function*(){return this.get(`/tenant/${e}/key`)})}resetTenantKeySecret(e){return s(this,null,function*(){return this.post(`/tenant/${e}/resetSecret`,void 0)})}getProductsCode(e){return s(this,null,function*(){return this.get(`/products/${e}`)})}}var j=(n=>(n.Collecting="采集中",n.CollectionTimeout="超时",n.CollectionFinish="完成",n.WaitUpload="等待上传",n.Uploading="上传中",n.UploadFinish="上传完成",n.UploadFailed="上传失败",n.WaitMerge="等待合成",n.CreateMergeTaskFailed="创建合成任务失败",n.Merging="合成中",n.MergeFailed="合成失败",n.MergeFinish="合成成功",n))(j||{}),Y=(n=>(n.Collecting="采集中",n.CollectionTimeout="超时",n.CollectionFinish="完成",n.WaitUpload="等待上传",n.Uploading="上传中",n.UploadFinish="上传完成",n.UploadFailed="上传失败",n.WaitMerge="等待合成",n.CreateMergeTaskFailed="创建合成任务失败",n.Merging="合成中",n.MergeFailed="合成失败",n.MergeFinish="合成成功",n))(Y||{});class ke extends m{constructor(e,t){super(e!=null?e:f.create(),t)}static parseApiToken(e){const t=window.atob(e.split(".")[1]);return JSON.parse(t)}static loadApiToken(e,t,r){return s(this,null,function*(){return fetch(`${e}${t}/viewtoken/${r}/create_apitoken`,{method:"POST"}).then(a=>{if(a.status!==200)throw console.error(a),Error(JSON.stringify(a));return a.json()}).then(a=>{if(a.code!==200)throw Error(JSON.stringify(a));return a.data.apiToken})})}listRecord(e){return s(this,null,function*(){return this.listPaged("/spacetwins",e)})}postRecord(e){return s(this,null,function*(){return this.post("/spacetwins",e)})}getRecordOverview(e){return s(this,null,function*(){return this.get(`/spacetwins/${e}`)})}getRecordViewtoken(e){return s(this,null,function*(){return this.get(`/spacetwins/${e}/viewtoken`)})}listScene(e){return s(this,null,function*(){return this.list(`/spacetwins/${e}/scenes`)})}getScenesByTimestamp(e,t){return s(this,null,function*(){return this.list(`/spacetwins/${e}/scenes_timestamp`,{timestamp:t})})}recomputeTrack(e,t){return s(this,null,function*(){return this.patch(`/spacetwins/${e}/track`,{points:t})})}updateRecordUploadStatus(e,t){return s(this,null,function*(){return this.post(`/spacetwins/${e}/update_upload_status`,t)})}getApiToken(e){return s(this,null,function*(){return this.post(`/viewtoken/${e}/create_apitoken`,{})})}getSpacetwins(e){return s(this,null,function*(){return this.listPaged("/spacetwins",e)})}postSpacetwins(e){return s(this,null,function*(){return this.post("/spacetwins",e)})}updateInspection(e,t){return s(this,null,function*(){return this.patch(`/patrolInspection/${e}`,t)})}getSpacetwinsIdViewtoken(e){return s(this,null,function*(){return this.get(`/spacetwins/${e}/viewtoken`)})}postSpacetwinsIdUpdateUploadStatus(e,t){return s(this,null,function*(){return this.post(`/spacetwins/${e}/update_upload_status`,t)})}postUploadTicket(e){return s(this,null,function*(){return this.post("/upload/ticket",e)})}getDownloadUrl(e){return s(this,null,function*(){return this.get(`/download/url?isv=${e.isv}&key=${e.key}`)})}listTrack(e,t){return s(this,null,function*(){return this.list(`/spacetwins/${e}/track`,{type:t})})}}class Ae extends m{constructor(e,t){super(e!=null?e:f.create(),t)}listPlugin(e){return s(this,null,function*(){return this.list("/plugins",e)})}postPlugin(e){return s(this,null,function*(){return this.post("/plugins",e)})}getPlugin(e){return s(this,null,function*(){return this.get(`/plugins/${e}`)})}updatePlugin(e,t){return s(this,null,function*(){return this.patch(`/plugins/${e}`,t)})}listPluginData(e,t){return s(this,null,function*(){return this.list(`/plugins/${e}/datas`,t)})}postPluginData(e,t){return s(this,null,function*(){return this.post(`/plugins/${e}/datas`,t)})}getPluginData(e,t){return s(this,null,function*(){return this.get(`/plugins/${e}/datas/${t}`).then(r=>S(y({},r),{arguments:JSON.parse(r.arguments)}))})}updatePluginData(e,t,r){return s(this,null,function*(){return this.patch(`/plugins/${e}/datas/${t}`,r)})}deletePluginData(e,t){return s(this,null,function*(){return this.delete(`/plugins/${e}/datas/${t}`)})}}var z=(n=>(n[n.None=0]="None",n[n.SourceFile=1]="SourceFile",n[n.WebLink=2]="WebLink",n))(z||{}),G=(n=>(n.Unprotected="不受著作权保护",n.ProtectAuthorize="受著作权保护,已获得授权",n.ProtectUnauthorize="受著作权保护,未获得授权",n))(G||{}),T=(n=>(n[n.Robot=1]="Robot",n[n.User=2]="User",n[n.System=3]="System",n))(T||{}),X=(n=>(n.Start="start",n.End="end",n))(X||{}),A=(n=>(n[n.Processing=1]="Processing",n[n.Success=2]="Success",n[n.Failed=3]="Failed",n))(A||{}),Z=(n=>(n.AECPILOT="aecpilot",n))(Z||{});function be(n,e){return s(this,null,function*(){const t=n.getReader();let r;for(;!(r=yield t.read()).done;)e(r.value)})}function Te(n){let e,t,r,a=!1,i;return function(l){e===void 0?(e=l,t=0,r=-1,i=!1):e=Re(e,l);const h=e.length;let d=0;for(;t<h;){a&&(e[t]===10&&(d=++t),a=!1);let p=-1;for(;t<h&&p===-1;++t)switch(e[t]){case 58:r===-1&&(r=t-d);break;case 13:a=!1,t+4<h&&e[t+1]===10&&e[t+2]!==13&&e[t-1]!==10&&e[t-2]!==13&&(i=!0);case 10:p=t;break}if(p===-1)break;n(e.subarray(d,p),r,i),d=t,r=-1,i=!1}d===h?e=void 0:d!==0&&(e=e.subarray(d),t-=d)}}function Pe(n,e,t){let r=W();const a=new TextDecoder;return function(o,l,h){if(o.length===0)t==null||t(r),r=W();else if(l>0){const d=a.decode(o.subarray(0,l)),p=l+(o[l+1]===32?2:1);let c=a.decode(o.subarray(p));switch(h&&(c+=`
2
+ `),d){case"data":r.data=r.data?r.data+`
3
+ `+c:c;break;case"event":r.event=c;break;case"id":n(r.id=c);break;case"retry":const u=parseInt(c,10);isNaN(u)||e(r.retry=u);break}}}}function Re(n,e){const t=new Uint8Array(n.length+e.length);return t.set(n),t.set(e,n.length),t}function W(){return{data:"",event:"",id:"",retry:void 0}}const x="text/event-stream",Me=1e3,_="last-event-id";function V(n,p){var c=p,{signal:e,headers:t,onopen:r,onmessage:a,onclose:i,onerror:o,openWhenHidden:l,fetch:h}=c,d=O(c,["signal","headers","onopen","onmessage","onclose","onerror","openWhenHidden","fetch"]);return new Promise((u,g)=>{const v=y({},t);v.accept||(v.accept=x);let $;function I(){$.abort(),document.hidden||U()}l||document.addEventListener("visibilitychange",I);let P=Me,K=0;function E(){document.removeEventListener("visibilitychange",I),window.clearTimeout(K),$.abort()}e==null||e.addEventListener("abort",()=>{E(),u()});const me=h!=null?h:window.fetch,$e=r!=null?r:Fe;function U(){return s(this,null,function*(){var L;$=new AbortController;try{const R=yield me(n,S(y({},d),{headers:v,signal:$.signal}));yield $e(R),yield be(R.body,Te(Pe(w=>{w?v[_]=w:delete v[_]},w=>{P=w},a))),i==null||i(),E(),u()}catch(R){if(!$.signal.aborted)try{const w=(L=o==null?void 0:o(R))!=null?L:P;window.clearTimeout(K),K=window.setTimeout(U,w)}catch(w){E(),g(w)}}})}U()})}function Fe(n){const e=n.headers.get("content-type");if(!(e!=null&&e.startsWith(x)))throw new Error(`Expected content-type to be ${x}, Actual: ${e}`)}const D=128,Ve=20;class De extends m{constructor(e,t,r){super(e!=null?e:f.create(),r),this.axiosInstance=e,this.getToken=t}getSessions(){return s(this,null,function*(){return this.get("/chatSession")})}postSession(e){return s(this,null,function*(){return this.post("/chatSession",e)})}getSession(e){return s(this,null,function*(){return this.get(`/chatSession/${e}`)})}updateSession(e,t){return s(this,null,function*(){return this.patch(`/chatSession/${e}`,t)})}deleteSession(e){return s(this,null,function*(){return this.delete(`/chatSession/${e}`)})}getSessionKnowledgeFiles(e,t){return s(this,null,function*(){return this.get(`chatSession/${e}/file`,t)})}postSessionKnowledgeFile(e,t){return s(this,null,function*(){return this.post(`chatSession/${e}/file`,t)})}deleteSessionKnowledgeFiles(e,t){return s(this,null,function*(){return this.delete(`chatSession/${e}/file`,t)})}getSessionKnowledgeFile(e,t){return s(this,null,function*(){return this.get(`chatSession/${e}/file/${t}`)})}deleteSessionKnowledgeFile(e,t){return s(this,null,function*(){return this.delete(`chatSession/${e}/file/${t}`)})}getSessionChatHistory(e,t){return s(this,null,function*(){return this.get(`/chatSession/${e}/history`,t)})}postMessage(e,t,r){return s(this,null,function*(){return this.post(`/config/tenantApplication?applicationId=${e}&sessionId=${t}`,r)})}postComments(e,t){return s(this,null,function*(){return this.post(`/chatSession/${e}/comments`,t)})}listApplications(){return s(this,null,function*(){return this.list("/applications")})}getApplication(){return s(this,null,function*(){return this.get("/config/tenantApplication")})}postApplication(e){return s(this,null,function*(){return this.post("/config/tenantApplication",{applicationId:e})})}getRecommendQues(){return s(this,null,function*(){return this.get("/recommendQues")})}postRecommendQues(e){return s(this,null,function*(){return this.post("/recommendQues",e)})}patchRecommendQues(e,t){return s(this,null,function*(){return this.patch(`/recommendQues/${e}`,t)})}delRecommendQues(e){return s(this,null,function*(){return this.delete(`/recommendQues/${e}`)})}getUploadTicket(e){return s(this,null,function*(){return this.get("/upload/ticket",e)})}uploadMinioFile(e,t){return s(this,null,function*(){return new Promise((r,a)=>{const i=new FileReader;i.readAsArrayBuffer(t),i.onload=o=>{k.initMinio({endPoint:e.endpoints[0],useSSL:e.useSSL,accessKey:e.accessKey,secretKey:e.secretKey});const l=new Uint8Array(o.target.result),h={"Content-Type":"application/octet-stream"};k.putObjectBuffer(e.bucket,e.fileKeys[0],l,h,d=>{if(d)throw console.error(d),Error(d);r(e.fileKeys[0])})}})})}uploadFile(e,t){return s(this,null,function*(){const r={files:[t.name],isv:"minio",knowledgeId:e};return this.postUploadTicket(r).then(a=>this.uploadMinioFile(a,t)).catch(a=>{throw Error(a)})})}uploadFiles(e,t){return s(this,null,function*(){const r={files:t.map(a=>a.name),isv:"minio",knowledgeId:e};return this.postUploadTicket(r).then(a=>Promise.all(t.map(i=>this.uploadMinioFile(a,i)))).catch(a=>{throw Error(a)})})}getKnowledge(e,t){return s(this,null,function*(){return this.get("/knowledge",{docId:e,name:t})})}getKnowledgeIdFileId(e,t){return s(this,null,function*(){return this.get(`/knowledge/${e}/file/${t}`)})}updateKnowledgeIdFileId(e,t,r){return s(this,null,function*(){return this.patch(`/chatSession/${e}/file/${t}`,r)})}getKnowledgeIdFileIdData(e,t,r){return s(this,null,function*(){return this.get(`/knowledge/${e}/file/${t}/data/${r}`)})}checkFileReady(e,t,r=()=>!0,a=1e4,i){return s(this,null,function*(){return new Promise((o,l)=>{const h=()=>{if(!r()){clearInterval(d);return}t?this.getSessionKnowledgeFile(e,t).then(c=>{if(i==null||i(c),c.status===A.Success&&(clearInterval(d),o(c)),c.status===A.Failed){clearInterval(d);const u="该文件无法读取,请上传可编辑pdf,doc,docx文档";l(Error(u,{cause:{code:-101,message:u,data:c}}))}}).catch(c=>{clearInterval(d),l(c)}):o(null)},d=setInterval(h,a);h()})})}postChat(e,t){return s(this,null,function*(){return this.post("/chat",e,t)})}postChatV2EventSource(e,t,r,a){return s(this,null,function*(){var h;const i={code:0,messageId:F.v4(),content:"",role:T.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1},o=yield this.getToken(),l=S(y({},t),{stream:!0});V(`${(h=this.axiosInstance)==null?void 0:h.defaults.baseURL}/chat?sessionId=${e}`,{method:"POST",headers:{Authorization:`Bearer ${o}`,"Content-Type":"application/json"},body:JSON.stringify(l),openWhenHidden:!0,signal:r,onopen(d){return d.ok&&a!=null&&a.onopen&&a.onopen(),Promise.resolve()},onmessage(d){if(!d.data&&!d.event&&!d.id&&!d.retry)return;if(!d.data.includes('{"code": ')){let c={};try{c=JSON.parse(d.data)}catch(g){}(c==null?void 0:c.mtype)==="search"?i.searchReference.push(c):i.content=i.content+d.data;const u={content:i.content,role:1,reference:i.reference,searchReference:i.searchReference,messageId:i.messageId,sessionId:e,messageTime:C(new Date).format("YYYY-MM-DD HH:mm:ss"),comment:{isAgree:0},isReplying:!0};return(a==null?void 0:a.onmessage)&&a.onmessage(u)}const p=JSON.parse(d.data);if(i.reference=p.data.reference,i.messageTime=p.data.messageTime,i.messageId=p.data.messageId,i.llmModel=p.data.llmModel,i.code=p.code,p.code===200){const c={code:i.code,content:i.content,role:1,reference:i.reference,searchReference:i.searchReference,messageId:i.messageId,sessionId:e,messageTime:i.messageTime,isReplying:!0};a!=null&&a.onmessage&&a.onmessage(c)}},onerror(){a!=null&&a.onerror&&a.onerror()},onclose(){const d={code:i.code,content:i.content,role:1,reference:i.reference,searchReference:i.searchReference,messageId:i.messageId,sessionId:e,messageTime:i.messageTime,comment:{isAgree:0},isReplying:!1};a!=null&&a.onclose&&a.onclose(d)}})})}postChatV3EventSource(e,t,r,a){return s(this,null,function*(){var h,d;const i={code:0,messageId:F.v4(),content:"",role:T.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1,reasoningContent:"",thinkingSecs:"",thinkingStatus:"",searchingStatus:""},o=yield this.getToken(),l=S(y({},t),{stream:!0});V(`${(d=(h=this.axiosInstance)==null?void 0:h.defaults.baseURL)==null?void 0:d.replace("/v1","/v3")}/chat?sessionId=${e}`,{method:"POST",headers:{Authorization:`Bearer ${o}`,"Content-Type":"application/json"},body:JSON.stringify(l),openWhenHidden:!0,signal:r,onopen(p){return p.ok&&a!=null&&a.onopen&&a.onopen(),Promise.resolve()},onmessage(p){if(!p.data&&!p.event&&!p.id&&!p.retry)return;let c={};try{c=JSON.parse(p.data)}catch($){console.log("eventData",p.data)}const u=c.data.type,g=c.data.payload;i.isReplying=!0,u==="error"&&(i.code=c.code,i.message=c.message);const v=()=>{if(!i.searchingStatus){i.searchingStatus="start";return}if(i.searchingStatus==="start"){i.searchingStatus="end";return}};if(u==="beforeSearch"&&v(),u==="search"&&(i.code=c.code,i.message=c.message,i.searchReference.push(g)),u==="thinking"){v(),i.code=c.code,i.message=c.message,i.thinkingStatus="start";const I=g.choices[0];i.reasoningContent=i.reasoningContent+I.delta.reasoningContent}if(u==="thinkingOver"){i.code=c.code,i.message=c.message,i.thinkingStatus="end";const $=g.thinkingSecs;i.thinkingSecs=$}if(u==="text"){v(),i.code=c.code,i.message=c.message;const I=g.choices[0];i.content=i.content+I.delta.content}if(u==="reference"&&(i.code=c.code,i.message=c.message,i.reference=g),u==="result"){i.code=c.code,i.message=c.message;const $=g.messageId,I=g.llmModel,P=g.messageTime;i.messageId=$,i.llmModel=I,i.messageTime=P,i.sessionId=e}a!=null&&a.onmessage&&a.onmessage(i)},onerror(){a!=null&&a.onerror&&a.onerror()},onclose(){const p=S(y({},i),{isReplying:!1});a!=null&&a.onclose&&a.onclose(p)}})})}getResourceToken(e){return s(this,null,function*(){return this.get("/resourceToken",e)})}postUploadTicket(e){return s(this,null,function*(){return this.post("/upload/ticket",e)})}postPrompts(e){return s(this,null,function*(){return this.post("/prompts",e)})}listPrompt(e){return s(this,null,function*(){return e!=null&&e.title&&e.title.length>D?[]:this.get("/prompts",e)})}getPrompt(e){return s(this,null,function*(){return this.get(`/prompts/${e}`)})}updatePrompt(e,t){return s(this,null,function*(){return this.put(`/prompts/${e}`,t)})}deletePrompt(e){return s(this,null,function*(){return this.delete(`/prompts/${e}`)})}chatSessionIdContext(e){return s(this,null,function*(){return this.patch(`/chatSession/${e}/context`,{})})}getBaseModelInfo(e){return s(this,null,function*(){return this.get("/data/v1/baseModelInfo",{serviceId:e})})}getApplicationId(e){return s(this,null,function*(){return this.get(`/applications/${e}`)})}getAppService(){return s(this,null,function*(){return this.get("/appservice")})}}window.Buffer=Q.Buffer;class Ke extends m{constructor(e,t,r){super(e!=null?e:f.create(),r),this.axiosInstance=e,this.getToken=t}getApplicationIdSessions(e){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/session`)})}getApplicationId(e){return s(this,null,function*(){return this.get(`/data/v1/applications/${e}`)})}postApplicationIdSession(e){return s(this,null,function*(){return this.post(`/data/v1/application/${e.applicationId}/sessions`,e)})}getApplicationIdSessionsId(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/sessions/${t}`)})}patchApplicationIdSessionsId(e,t,r){return s(this,null,function*(){return this.patch(`/data/v1/application/${e}/sessions/${t}`,r)})}patchApplicationIdSessionsIdContext(e,t){return s(this,null,function*(){return this.patch(`/data/v1/application/${e}/sessions/${t}/context`,{})})}delApplicationIdSessionsId(e,t){return s(this,null,function*(){return this.delete(`/data/v1/application/${e}/sessions/${t}`)})}postComments(e,t,r){return s(this,null,function*(){return this.post(`/data/v1/application/${e}/sessions/${t}/comments`,r)})}getChatHistorySessionId(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/chatHistory/${t}`)})}postChatV2EventSource(e,t,r,a,i,o){return s(this,null,function*(){const l={code:0,messageId:F.v4(),content:"",role:T.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1},h=yield this.getToken(),d=S(y({},r),{stream:!0});V(`https://aiot-dev.glodon.com/api/cvforcepd/chat/v2/chat?applicationId=${e}&sessionId=${t}`,{method:"POST",headers:{Authorization:`Bearer ${h}`,"Content-Type":"application/json"},body:JSON.stringify(d),openWhenHidden:!0,signal:a,onopen(p){return p.ok&&i!=null&&i.onopen&&i.onopen(),Promise.resolve()},onmessage(p){if(!p.data.includes('{"code": ')){let u={};try{u=JSON.parse(p.data)}catch(v){}(u==null?void 0:u.mtype)==="search"?l.searchReference.push(u):l.content=l.content+p.data;const g={content:l.content,role:1,reference:l.reference,searchReference:l.searchReference,messageId:l.messageId,sessionId:t,messageTime:C(new Date).format("YYYY-MM-DD HH:mm:ss"),comment:{isAgree:0},isReplying:!0};return(i==null?void 0:i.onmessage)&&i.onmessage(g)}const c=JSON.parse(p.data);if(l.reference=c.data.reference,l.searchReference=c.data.searchReference,l.messageTime=c.data.messageTime,l.messageId=c.data.messageId,l.llmModel=c.data.llmModel,l.content=c.data.content,l.code=c.code,c.code===200){const u={code:l.code,content:l.content,role:1,reference:l.reference,searchReference:l.searchReference,messageId:l.messageId,sessionId:t,messageTime:l.messageTime,isReplying:!0};i!=null&&i.onmessage&&i.onmessage(u)}else return o&&o({code:c.code,message:c.message})},onerror(){i!=null&&i.onerror&&i.onerror()},onclose(){const p={code:l.code,content:l.content,role:1,reference:l.reference,searchReference:l.searchReference,messageId:l.messageId,sessionId:t,messageTime:l.messageTime,comment:{isAgree:0},isReplying:!1};i!=null&&i.onclose&&i.onclose(p)}})})}getKnowledgeIdFileIdData(e,t,r){return s(this,null,function*(){return this.get(`/data/v1/knowledge/${e}/file/${t}/data/${r}`)})}getKnowledgeIdFileId(e,t){return s(this,null,function*(){return this.get(`/data/v1/knowledge/${e}/file/${t}`)})}getKnowledgeId(e){return s(this,null,function*(){return this.get(`/data/v1/knowledge/${e}`)})}getSessionKnowledgeFile(e,t){return s(this,null,function*(){return this.get(`/data/v1/chatSession/${e}/file/${t}`)})}sleep(e){return s(this,null,function*(){return new Promise(t=>{setTimeout(()=>{t("")},e)})})}getBaseModelInfo(e){return s(this,null,function*(){return this.get("/data/v1/baseModelInfo",{serviceId:e})})}uploadFiles(e,t){return s(this,null,function*(){const r={files:t.map(a=>a.name),isv:"minio",knowledgeId:e};return this.postTicket(r).then(a=>Promise.all(t.map(i=>this.uploadMinioFile(a.minio,i)))).catch(a=>{throw Error(a)})})}postFile(e,t,r){return s(this,null,function*(){const a={files:[t.name],isv:"minio",knowledgeId:e,type:r};return this.postTicket(a).then(i=>this.uploadMinioFile(i.minio,t)).catch(i=>{throw Error(i)})})}postTicket(e){return s(this,null,function*(){return this.post("/data/v1/ticket",e)})}uploadFile(e,t){return s(this,null,function*(){const r={files:[t.name],isv:"minio",knowledgeId:e};return this.postTicket(r).then(a=>this.uploadMinioFile(a.minio,t)).catch(a=>{throw Error(a)})})}uploadMinioFile(e,t){return s(this,null,function*(){return new Promise((r,a)=>{const i=new FileReader;i.readAsArrayBuffer(t),i.onload=o=>{k.initMinio({endPoint:e.endpoints[0],useSSL:e.useSSL,accessKey:e.accessKey,secretKey:e.secretKey});const l=Buffer.from(o.target.result),h={"Content-Type":"application/octet-stream"};k.putObjectBuffer(e.bucket,e.fileKeys[0],l,h,d=>{if(d)throw console.error(d),Error(d);r(e.fileKeys[0])})}})})}getRecommendQues(e){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/recommendQues`)})}postPrompts(e,t){return s(this,null,function*(){return this.post(`/data/v1/application/${e}/prompts`,t)})}listPrompt(e,t){return s(this,null,function*(){return t!=null&&t.title&&t.title.length>D?[]:this.get(`/data/v1/application/${e}/prompts`,t)})}getPrompt(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/prompts/${t}`)})}updatePrompt(e,t,r){return s(this,null,function*(){return this.put(`/data/v1/application/${e}/prompts/${t}`,r)})}deletePrompt(e,t){return s(this,null,function*(){return this.delete(`/data/v1/application/${e}/prompts/${t}`)})}postGeneques(e,t){return s(this,null,function*(){return this.post("/data/v1/geneques",e,{},t)})}getApplicationIdSessionKnowledgeFiles(e,t,r){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/session/${t}/file`,r)})}checkFileReady(e,t,r,a=()=>!0,i=1e4,o){return s(this,null,function*(){return new Promise((l,h)=>{const d=()=>{if(!a()){clearInterval(p);return}r?this.getApplicationIdSessionKnowledgeFileId(e,t,r,{},!0).then(u=>{if(o==null||o(u),u.status===A.Success&&(clearInterval(p),l(u)),u.status===A.Failed){clearInterval(p);const g="该文件无法读取,请上传可编辑pdf,doc,docx文档";h(Error(g,{cause:{code:-101,message:g,data:u}}))}}).catch(u=>{clearInterval(p),h(u)}):l(null)},p=setInterval(d,i);d()})})}getApplicationIdSessionKnowledgeFileId(e,t,r,a,i){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/session/${t}/file/${r}`,a,i)})}delApplicationIdSessionKnowledgeFileId(e,t,r){return s(this,null,function*(){return this.delete(`/data/v1/application/${e}/session/${t}/file/${r}`)})}postApplicationIdSessionKnowledgeSessionFile(e,t,r,a,i){return s(this,null,function*(){return this.post(`/data/v1/application/${e}/session/${t}/sessionfile`,r,a,i)})}delApplicationIdSessionKnowledgeFile(e,t,r){return s(this,null,function*(){return this.delete(`/data/v1/application/${e}/session/${t}/file`,r)})}deleteSessionKnowledgeFiles(e,t){return s(this,null,function*(){return this.delete(`/data/v1/chatSession/${e}/file`,t)})}patchApplicationIdKnowledgeIdFileId(e,t,r,a){return s(this,null,function*(){return this.patch(`/data/v1/application/${e}/session/${t}/file/${r}`,a)})}getApplicationIdSessionIdPromptVariables(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/session/${t}/promptVariables`)})}getApplicationIdPromptVariables(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/promptVariables`,t)})}patchApplicationIdSessionpromptVariablesId(e,t,r,a){return s(this,null,function*(){return this.patch(`/data/v1/application/${e}/session/${t}/promptVariables/${r}`,a)})}updateSession(e,t,r){return s(this,null,function*(){return this.patch(`/data/v1/application/${e}/sessions/${t}`,r)})}getSession(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/sessions/${t}`)})}}globalThis.Buffer=Q.Buffer;class Ee extends m{constructor(e,t,r){super(e!=null?e:f.create(),r),this.axiosInstance=e,this.getToken=t}getBaseModelInfo(e){return s(this,null,function*(){return this.get("/data/v1/baseModelInfo",{serviceId:e})})}postGeneques(e){return s(this,null,function*(){return this.post("/data/v1/geneques",e)})}getApplicationId(e){return s(this,null,function*(){return this.get(`/data/v1/applications/${e}`)})}getApplicationIdSessions(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/sessionsa`,t)})}postApplicationIdSession(e){return s(this,null,function*(){return this.post(`/data/v1/application/${e.applicationId}/sessions`,e)})}getApplicationIdSessionsId(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/sessions/${t}`)})}patchApplicationIdSessionsId(e,t,r){return s(this,null,function*(){return this.patch(`/data/v1/application/${e}/sessions/${t}`,r)})}delApplicationIdSessionsId(e,t){return s(this,null,function*(){return this.delete(`/data/v1/application/${e}/sessions/${t}`)})}getApplicationIdPromptVariables(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/promptVariables`,t)})}getApplicationIdSessionIdPromptVariables(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/session/${t}/promptVariables`)})}patchApplicationIdSessionpromptVariablesId(e,t,r,a){return s(this,null,function*(){return this.patch(`/data/v1/application/${e}/session/${t}/promptVariables/${r}`,a)})}deleteSessionKnowledgeFiles(e,t){return s(this,null,function*(){return this.delete(`/data/v1/chatSession/${e}/file`,t)})}getRecommendQues(e){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/recommendQues`)})}postRecommendQues(e,t){return s(this,null,function*(){return this.post(`/data/v1/application/${e}/recommendQues`,t)})}delRecommendQues(e,t){return s(this,null,function*(){return this.delete(`/data/v1/application/${e}/recommendQues/${t}`)})}getChatHistorySessionId(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/chatHistory/${t}`)})}postPrompts(e,t){return s(this,null,function*(){return this.post(`/data/v1/application/${e}/prompts`,t)})}listPrompt(e,t){return s(this,null,function*(){return t!=null&&t.title&&t.title.length>D?[]:this.get(`/data/v1/application/${e}/prompts`,t)})}getPrompt(e,t){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/prompts/${t}`)})}updatePrompt(e,t,r){return s(this,null,function*(){return this.put(`/data/v1/application/${e}/prompts/${t}`,r)})}deletePrompt(e,t){return s(this,null,function*(){return this.delete(`/data/v1/application/${e}/prompts/${t}`)})}patchApplicationIdSessionsIdContext(e,t){return s(this,null,function*(){return this.patch(`/data/v1/application/${e}/sessions/${t}/context`,{})})}getApplicationIdSessionKnowledgeFiles(e,t,r){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/session/${t}/file`,r)})}postApplicationIdSessionKnowledgeFile(e,t,r){return s(this,null,function*(){return this.post(`/data/v1/application/${e}/session/${t}/file`,r)})}postApplicationIdSessionKnowledgeSessionFile(e,t,r){return s(this,null,function*(){return this.post(`/data/v1/application/${e}/session/${t}/sessionfile`,r)})}delApplicationIdSessionKnowledgeFile(e,t,r){return s(this,null,function*(){return this.delete(`/data/v1/application/${e}/session/${t}/file`,r)})}getApplicationIdSessionKnowledgeFileId(e,t,r,a,i){return s(this,null,function*(){return this.get(`/data/v1/application/${e}/session/${t}/file/${r}`,a,i)})}delApplicationIdSessionKnowledgeFileId(e,t,r){return s(this,null,function*(){return this.delete(`/data/v1/application/${e}/session/${t}/file/${r}`)})}patchApplicationIdKnowledgeIdFileId(e,t,r,a){return s(this,null,function*(){return this.patch(`/data/v1/application/${e}/session/${t}/file/${r}`,a)})}checkFileReady(e,t,r,a=()=>!0,i=1e4,o){return s(this,null,function*(){return new Promise((l,h)=>{const d=()=>{if(!a()){clearInterval(p);return}r?this.getApplicationIdSessionKnowledgeFileId(e,t,r,{},!0).then(u=>{if(o==null||o(u),u.status===A.Success&&(clearInterval(p),l(u)),u.status===A.Failed){clearInterval(p);const g="该文件无法读取,请上传可编辑pdf,doc,docx文档";h(Error(g,{cause:{code:-101,message:g,data:u}}))}}).catch(u=>{clearInterval(p),h(u)}):l(null)},p=setInterval(d,i);d()})})}uploadFile(e,t){return s(this,null,function*(){const r={files:[t.name],isv:"minio",knowledgeId:e};return this.postUploadTicket(r).then(a=>this.uploadMinioFile(a.minio,t)).catch(a=>{throw Error(a)})})}postUploadTicket(e){return s(this,null,function*(){return this.post("/data/v1/ticket",e)})}uploadMinioFile(e,t){return s(this,null,function*(){return new Promise((r,a)=>{const i=new FileReader;i.readAsArrayBuffer(t),i.onload=o=>{k.initMinio({endPoint:e.endpoints[0],useSSL:e.useSSL,accessKey:e.accessKey,secretKey:e.secretKey});const l=Buffer.from(o.target.result),h={"Content-Type":"application/octet-stream"};k.putObjectBuffer(e.bucket,e.fileKeys[0],l,h,d=>{if(d)throw console.error(d),Error(d);r(e.fileKeys[0])})}})})}postComments(e,t,r){return s(this,null,function*(){return this.post(`/data/v1/application/${e}/sessions/${t}/comments`,r)})}getKnowledgeId(e){return s(this,null,function*(){return this.get(`/data/v1/knowledge/${e}`)})}getKnowledgeIdFileId(e,t){return s(this,null,function*(){return this.get(`/data/v1/knowledge/${e}/file/${t}`)})}getKnowledgeIdFileIdData(e,t,r){return s(this,null,function*(){return this.get(`/data/v1/knowledge/${e}/file/${t}/data/${r}`)})}postChatV2EventSource(e,t,r,a,i){return s(this,null,function*(){var d;const o={code:0,messageId:F.v4(),content:"",role:T.Robot,sessionId:"",reference:[],searchReference:[],messageTime:"",llmModel:"",comment:{isAgree:0},isReplying:!1,message:""},l=yield this.getToken(),h=S(y({},r),{stream:!0});V(`${(d=this.axiosInstance)==null?void 0:d.defaults.baseURL}/chat/v2/chat?applicationId=${e}&sessionId=${t}`,{method:"POST",headers:{Authorization:`Bearer ${l}`,"Content-Type":"application/json"},body:JSON.stringify(h),openWhenHidden:!0,signal:a,onopen(p){return p.ok&&i!=null&&i.onopen&&i.onopen(),Promise.resolve()},onmessage(p){if(!p.data&&!p.event&&!p.id&&!p.retry)return;if(!p.data.includes('{"code": ')){let u={};try{u=JSON.parse(p.data)}catch(v){}(u==null?void 0:u.mtype)==="search"?o.searchReference.push(u):o.content=o.content+p.data;const g={content:o.content,role:1,reference:o.reference,searchReference:o.searchReference,messageId:o.messageId,sessionId:t,messageTime:C(new Date).format("YYYY-MM-DD HH:mm:ss"),comment:{isAgree:0},isReplying:!0};return(i==null?void 0:i.onmessage)&&i.onmessage(g)}const c=JSON.parse(p.data);if(o.reference=c.data.reference,o.messageTime=c.data.messageTime,o.messageId=c.data.messageId,o.llmModel=c.data.llmModel,o.code=c.code,o.message=c.message,c.code===200){const u={code:o.code,content:o.content,role:1,reference:o.reference,searchReference:o.searchReference,messageId:o.messageId,sessionId:t,messageTime:o.messageTime,isReplying:!0};i!=null&&i.onmessage&&i.onmessage(u)}},onerror(){i!=null&&i.onerror&&i.onerror()},onclose(){const p={code:o.code,content:o.content,role:1,reference:o.reference,searchReference:o.searchReference,messageId:o.messageId,sessionId:t,messageTime:o.messageTime,comment:{isAgree:0},isReplying:!1,message:o.message};i!=null&&i.onclose&&i.onclose(p)}})})}postChat(e,t){return s(this,null,function*(){var r;return this.post(`${(r=this.axiosInstance)==null?void 0:r.defaults.baseURL}/chat/v2/chat`,e,t)})}}var ee=(n=>(n[n.Dialog=0]="Dialog",n[n.TextGenerate=1]="TextGenerate",n[n.FileSummery=2]="FileSummery",n))(ee||{}),te=(n=>(n[n.Robot=1]="Robot",n[n.User=2]="User",n[n.System=3]="System",n))(te||{}),se=(n=>(n[n.Processing=1]="Processing",n[n.Done=2]="Done",n[n.Failed=3]="Failed",n))(se||{}),re=(n=>(n[n.File=0]="File",n[n.WebLink=1]="WebLink",n))(re||{}),ne=(n=>(n[n.Processing=1]="Processing",n[n.Success=2]="Success",n[n.Failed=3]="Failed",n))(ne||{}),ae=(n=>(n.InputFile="ui.input.file",n.LLMModel="ui.llm.model",n))(ae||{}),ie=(n=>(n[n.Idle=0]="Idle",n[n.Quoted=1]="Quoted",n))(ie||{}),oe=(n=>(n[n.Basic=0]="Basic",n[n.Pro=1]="Pro",n))(oe||{}),ce=(n=>(n[n.Dialog=0]="Dialog",n[n.Text=1]="Text",n[n.Agent=2]="Agent",n[n.All=3]="All",n))(ce||{});class Ue extends m{constructor(e,t){super(e!=null?e:f.create(),t)}getKnowledge(e,t){return s(this,null,function*(){return this.get("/knowledge",{docId:e,name:t})})}postKnowledge(e){return s(this,null,function*(){return this.post("/knowledge",e)})}getKnowledgeId(e){return s(this,null,function*(){return this.get(`/knowledge/${e}`)})}patchKnowledgeId(e,t){return s(this,null,function*(){return this.patch(`/knowledge/${e}`,t)})}delKnowledgeId(e){return s(this,null,function*(){return this.delete(`/knowledge/${e}`)})}getKnowledgeIdFile(e){return s(this,null,function*(){return this.get(`/knowledge/${e}/file`)})}getKnowledgeIdFileList(e,t){return s(this,null,function*(){return this.listPaged(`/knowledge/${e}/file`,t)})}postKnowledgeIdFile(e,t){return s(this,null,function*(){return this.post(`/knowledge/${e}/file`,t)})}getUploadTicket(e){return s(this,null,function*(){return this.get("/upload/ticket",e)})}delKnowledgeIdFileFid(e,t){return s(this,null,function*(){return this.delete(`/knowledge/${e}/file/${t}`)})}patchKnowledgeIdFileFid(e,t,r){return s(this,null,function*(){return this.patch(`/knowledge/${e}/file/${t}`,r)})}listSessions(e,t){return s(this,null,function*(){return this.get(`/application/${e}/sessionsa`,t)})}postSession(e,t){return s(this,null,function*(){return this.post(`/application/${e}/sessions`,t)})}getSession(e,t){return s(this,null,function*(){return this.get(`/application/${e}/sessions/${t}`)})}patchSessionsId(e,t,r){return s(this,null,function*(){return this.patch(`/application/${e}/sessions/${t}`,r)})}delSessionsId(e,t){return s(this,null,function*(){return this.delete(`/application/${e}/sessions/${t}`)})}getSessionKnowledgeFile(e,t,r){return s(this,null,function*(){return this.get(`/application/${e}session/${t}/file/${r}`)})}postSessionKnowledgeFile(e,t,r){return s(this,null,function*(){return this.post(`/application/${e}session/${t}/file`,r)})}postComments(e,t,r){return s(this,null,function*(){return this.post(`/application/${e}/sessions/${t}/comments`,r)})}getChatHistorySessionId(e,t,r){return s(this,null,function*(){return this.get(`application/${e}/chatHistory/${t}`,r)})}postChatHistorySessionId(e,t){return s(this,null,function*(){return this.post(`/chatHistory/${e}`,t)})}getApplications(e){return s(this,null,function*(){return this.get("/applications",e)})}postApplication(e){return s(this,null,function*(){return this.post("/applications",e)})}getApplicationId(e){return s(this,null,function*(){return this.get(`/applications/${e}`)})}patchApplicationId(e,t){return s(this,null,function*(){return this.patch(`/applications/${e}`,t)})}delApplicationId(e){return s(this,null,function*(){return this.delete(`/applications/${e}`)})}getApplicationIdSessions(e){return s(this,null,function*(){return this.get(`/applications/${e}/session`)})}patchFileId(e,t){return s(this,null,function*(){return this.patch(`/file/${e}`,t)})}getCvforceResource(e){return s(this,null,function*(){return this.get("/cvforce/resource",e)})}postKnowledgeIdComposedFiles(e,t){return s(this,null,function*(){return this.post(`/knowledge/${e}/composedFiles`,t)})}getTokensApplicationId(e,t){return s(this,null,function*(){return this.get(`/tokens/${e}`,t)})}getTokens(e){return s(this,null,function*(){return this.get("/tokens",e)})}uploadMinioFile(e,t){return s(this,null,function*(){return new Promise((r,a)=>{const i=new FileReader;i.readAsArrayBuffer(t),i.onload=o=>{k.initMinio({endPoint:e.endpoints[0],useSSL:e.useSSL,accessKey:e.accessKey,secretKey:e.secretKey});const l=Buffer.from(o.target.result),h={"Content-Type":"application/octet-stream"};k.putObjectBuffer(e.bucket,e.fileKeys[0],l,h,d=>{if(d)throw console.error(d),Error(d);r(e.fileKeys[0])})}})})}uploadFile(e,t){return s(this,null,function*(){const r={files:[t.name],isv:"minio",knowledgeId:e};return this.getUploadTicket(r).then(a=>this.uploadMinioFile(a.minio,t)).catch(a=>{throw Error(a)})})}uploadFiles(e,t){return s(this,null,function*(){const r={files:t.map(a=>a.name),isv:"minio",knowledgeId:e};return this.getUploadTicket(r).then(a=>Promise.all(t.map(i=>this.uploadMinioFile(a.minio,i)))).catch(a=>{throw Error(a)})})}getAecModels(){return s(this,null,function*(){return this.get("/aecModels")})}postTextFilter(e){return s(this,null,function*(){return this.post("/textFilter",e)})}getTenantModel(){return s(this,null,function*(){return this.get("/tenantModel")})}getPrompts(e,t){return s(this,null,function*(){return this.get(`application/${e}/promptVariables`,t)})}postPrompt(e,t){return s(this,null,function*(){return this.post(`application/${e}/promptVariables`,t)})}patchPromptId(e,t,r){return s(this,null,function*(){return this.patch(`application/${e}/promptVariables/${t}`,r)})}delPromptId(e,t){return s(this,null,function*(){return this.delete(`application/${e}/promptVariables/${t}`)})}getSessionPrompts(e){return s(this,null,function*(){return this.get(`session/${e}/promptVariables`)})}patchSessionPromptId(e,t,r){return s(this,null,function*(){return this.patch(`session/${t}/promptVariables/${e}`,r)})}getApplicationIdSessionIdPromptVariables(e,t){return s(this,null,function*(){return this.get(`/application/${e}/session/${t}/promptVariables`)})}patchApplicationIdSessionpromptVariablesId(e,t,r,a){return s(this,null,function*(){return this.patch(`/application/${e}/session/${t}/promptVariables/${r}`,a)})}getPresetApplication(e){return s(this,null,function*(){return this.get("presetApplication",e)})}postKnowledgeConfig(e){return s(this,null,function*(){return this.post("/knowledgeConfig",e)})}getKnowledgeConfig(e){return s(this,null,function*(){return this.get(`/knowledgeConfig/${e}`)})}patchKnowledgeConfig(e,t){return s(this,null,function*(){return this.patch(`/knowledgeConfig/${e}`,t)})}getKnowledgeIdFileId(e,t){return s(this,null,function*(){return this.get(`/knowledge/${e}/file/${t}`)})}getKnowledgeIdFileIdData(e,t,r){return s(this,null,function*(){return this.listPaged(`/knowledge/${e}/file/${t}/data`,r)})}postKnowledgeIdFileIdData(e,t,r){return s(this,null,function*(){return this.post(`/knowledge/${e}/file/${t}/data`,{data:r})})}patchKnowledgeIdFileIdData(e,t,r,a){return s(this,null,function*(){return this.patch(`/knowledge/${e}/file/${t}/data/${r}`,{data:a})})}delKnowledgeIdFileIdDataDid(e,t,r){return s(this,null,function*(){return this.delete(`/knowledge/${e}/file/${t}/data/${r}`)})}getPresetKnowledge(e){return s(this,null,function*(){return this.get("/presetKnowledge",e)})}patchSessionsIdContext(e){return s(this,null,function*(){return this.patch(`/sessions/${e}/context`,{})})}postResourceToken(e){return s(this,null,function*(){return this.post("/resourceToken",e)})}getApplicationIdSession(e){return s(this,null,function*(){return this.get(`/application/${e}/session`)})}patchApplicationIdSessionsIdContext(e,t){return s(this,null,function*(){return this.patch(`/application/${e}/sessions/${t}/context`,{})})}postApplicationIdSessions(e,t){return s(this,null,function*(){return this.post(`/application/${e}/sessions`,t)})}getApplicationIdChatHistorySessionId(e,t){return s(this,null,function*(){return this.get(`/application/${e}/chatHistory/${t}`)})}postApplicationIdChatHistorySessionIdComments(e,t,r){return s(this,null,function*(){return this.post(`/application/${e}/sessions/${t}/comments`,r)})}getApplicationIdPrompts(e,t){return s(this,null,function*(){return this.get(`/application/${e}/promptVariables`,t)})}postKnowledgeSourceFile(e,t,r){return s(this,null,function*(){return this.post(`/knowledge/${e}/sourceFile/${t}`,r)})}getMetadata(e){return s(this,null,function*(){return this.get("/metadata",e)})}postGeneques(e){return s(this,null,function*(){return this.post("/geneques",e)})}getBaseModel(e){return s(this,null,function*(){return this.get("/baseModelInfo",{serviceId:e})})}}var le=(n=>(n[n.inital=0]="inital",n[n.success=1]="success",n[n.processing=2]="processing",n[n.failed=3]="failed",n))(le||{}),de=(n=>(n[n.inital=0]="inital",n[n.processing=1]="processing",n[n.paused=2]="paused",n[n.failed=3]="failed",n[n.done=4]="done",n))(de||{}),b=(n=>(n.Pending="PENDING",n.Started="STARTED",n.Failure="FAILURE",n.Success="SUCCESS",n.Abort="ABORT",n))(b||{}),pe=(n=>(n.Pending="PENDING",n.Started="STARTED",n.Success="SUCCESS",n.Failure="FAILURE ",n))(pe||{}),ue=(n=>(n[n.all=0]="all",n[n.general=1]="general",n[n.major=2]="major",n))(ue||{});function xe(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const e=Math.random()*16|0;return(n=="x"?e:e&3|8).toString(16)})}class Ce extends m{constructor(e,t){super(e!=null?e:f.create(),t)}getDatasets(e){return s(this,null,function*(){return this.get("/datasets",e)})}postDatasets(e){return s(this,null,function*(){return this.post("/datasets",e)})}getDatasetsId(e){return s(this,null,function*(){return this.get(`/datasets/${e}`)})}delDatasetsId(e){return s(this,null,function*(){return this.delete(`/datasets/${e}`)})}patchDatasetsId(e,t){return s(this,null,function*(){return this.patch(`/datasets/${e}`,t)})}getDatasetsIdVersions(e,t,r){return s(this,null,function*(){return this.get(`/datasets/${e}/versions?pageNo=${t}&pageSize=${r}`)})}getDatasetsIdVersionsVidNextno(e){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/nextno`)})}getS3Iam(e,t){return s(this,null,function*(){return this.post("/s3/iam",{datasetId:e,publicBucket:t})})}postDatasetsIdVersions(e,t){return s(this,null,function*(){return this.post(`/datasets/${e}/versions`,t)})}patchDatasetsIdVersionsVid(e,t,r){return s(this,null,function*(){return this.patch(`/datasets/${e}/versions/${t}`,r)})}getDatasetsIdVersionsVid(e,t){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/${t}`)})}delDatasetsIdVersionsVid(e,t){return s(this,null,function*(){return this.delete(`/datasets/${e}/versions/${t}`)})}getDatasetsIdVersionsNo(e,t){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/no`,t)})}listDatasetsIdLabels(e,t){return s(this,null,function*(){return this.listPaged(`/datasets/${e}/labels`,t)})}getDatasetsIdVersionsVidLabelcount(e,t,r){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/${t}/labelcount`,r)})}getDatasetsIdVersionsVidSamples(e,t,r){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/${t}/samples`,r)})}updateSamples(e,t,r,a){return s(this,null,function*(){return this.patch(`/datasets/${e}/versions/${t}/samples`,{samples:r,confirmStatus:a})})}delDatasetsIdVersionsVidSamplesId(e,t,r){return s(this,null,function*(){return this.delete(`/datasets/${e}/versions/${t}/samples/${r}`)})}delDatasetsIdVersionsVidLlmSamplesId(e,t,r){return s(this,null,function*(){return this.delete(`datasets/${e}/versions/${t}/llmSamples/${r}`)})}getDatasetsIdVersionsVidSsamplesSid(e,t,r){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/${t}/samples/${r}`).then(a=>S(y({},a),{labels:a.labels?a.labels.map(i=>S(y({},i),{uuid:i.uuid||xe()})):[]}))})}getImportInfo(){return s(this,null,function*(){return this.get("/importInfo")})}getOptionsMarkType(){return s(this,null,function*(){return this.get("/options/markType")})}getOptionsOcrMarkTmpl(){return s(this,null,function*(){return this.get("/options/ocrMarkTmpl")})}getOptionsLlmMarkTmpl(){return s(this,null,function*(){return this.get("/options/llmMarkTmpl")})}getOptionsLlmResponseSort(){return s(this,null,function*(){return this.get("/options/llmResponseSort")})}getOptionsImgproxy(){return s(this,null,function*(){return this.get("/options/imgproxy")})}getDeduplication(e,t){return s(this,null,function*(){return this.post("/files/deduplication",{md5s:e,datasetId:t})})}postDatasetsIdVersionsVidSamples(e,t,r){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/samples`,r)})}patchDatasetsIdVersionsVidSamples(e,t,r){return s(this,null,function*(){return this.patch(`/datasets/${e}/versions/${t}/samples`,r)})}listCategory(e){return s(this,null,function*(){return this.list(`/datasets/${e}/catagory`)})}postCategory(e,t){return s(this,null,function*(){return this.post(`/datasets/${e}/catagory`,{name:t})})}updateCategory(e,t,r){return s(this,null,function*(){return this.patch(`/datasets/${e}/catagory/${t}`,{name:r})})}deleteCategory(e,t){return s(this,null,function*(){return this.delete(`/datasets/${e}/catagory/${t}`)})}postDatasetIdVersionIdFilesDeduplication(e,t,r){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/files/deduplication`,r)})}postDatasetIdVersionIdLlmSamples(e,t,r){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/llmSamples`,r)})}patchDatasetIdVersionIdLlmSampleId(e,t,r,a){return s(this,null,function*(){return this.patch(`/datasets/${e}/versions/${t}/llmSamples/${r}`,a)})}postLlmSamplesSubsection(e,t,r){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/llmSamples/subsection`,r)})}generatellmSamplesSubsection(e,t,r){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/llmSamples/subsection`,r)})}listSubsection(e,t,r,a){return s(this,null,function*(){return this.listPaged(`/datasets/${e}/versions/${t}/llmSamples/${r}/subsection`,a)})}postSubsection(e,t,r,a){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/llmSamples/${r}/subsection`,a)})}updateSubsection(e,t,r,a,i){return s(this,null,function*(){return this.patch(`/datasets/${e}/versions/${t}/llmSamples/${r}/subsection/${a}`,i)})}deleteSubsection(e,t,r,a){return s(this,null,function*(){return this.delete(`/datasets/${e}/versions/${t}/llmSamples/${r}/subsection/${a}`)})}llmSupervisedRecordGenerate(e){return s(this,null,function*(){return this.post("/llm/supervisedRecord/generatedata",e)})}llmSupervisedRecordAbordTask(e){return s(this,null,function*(){return this.post("/llm/supervisedRecord/abortTask",e)})}llmSupervisedRecordPauseTask(e){return s(this,null,function*(){return this.post("/llm/supervisedRecord/pauseTask",e)})}getLlmSupervisedRecord(e){return s(this,null,function*(){return this.get(`/llm/supervisedRecord/${e}`)})}getDatasetsIdVersionsIdLlmSamplesV2(e,t,r){return s(this,null,function*(){return this.listPaged(`/datasets/${e}/versions/${t}/llmSamplesV2`,r)})}postDatasetsIdVersionsIdLlmSamplesV2(e,t,r){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/llmSamplesV2`,r)})}getDatasetsIdVersionsIdLlmSamplesV2Sid(e,t,r){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/${t}/llmSamplesV2/${r}`)})}patchDatasetsIdVersionsIdLlmSamplesV2Sid(e,t,r,a){return s(this,null,function*(){return this.patch(`/datasets/${e}/versions/${t}/llmSamplesV2/${r}`,a)})}delDatasetsIdVersionsIdLlmSamplesV2Sid(e,t,r){return s(this,null,function*(){return this.delete(`/datasets/${e}/versions/${t}/llmSamplesV2/${r}`)})}getDatasetsIdVersionsIdExportLLMSamples(e,t){return s(this,null,function*(){return this.getNonStandard(`/datasets/${e}/versions/${t}/exportLLMSamples`,{responseType:"blob"})})}llmSamplesSubsectionView(e,t,r,a){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/llmSamples/${r}/previewSubsection`,a)})}listLabels(e,t){return s(this,null,function*(){return this.listPaged(`/datasets/${e}/labels`,t)})}postLabels(e,t){return s(this,null,function*(){return this.post(`/datasets/${e}/labels`,t)})}patchLabel(e,t,r){return s(this,null,function*(){return this.patch(`/datasets/${e}/labels/${t}`,r)})}deleteLabel(e,t){return s(this,null,function*(){return this.delete(`/datasets/${e}/labels/${t}`)})}postUploadPicsZip(e,t,r){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/uploadzip`,r)})}checkFileResult(e,t,r,a=1e3,i){return s(this,null,function*(){return new Promise((o,l)=>{const h=()=>{e?this.getUploadPicsZipResult(e,t,r).then(p=>{const c=p[0];if(c.state===b.Started||c.state===b.Pending){const u=c.process||0;i&&i(u)}if(c.state===b.Success&&(clearInterval(d),o(c.lastTaskResult)),c.state===b.Failure){clearInterval(d);const u="该文件处理失败";l(Error(u,{cause:{code:-101,message:u,data:c.lastTaskResult}}))}c.state===b.Abort&&(clearInterval(d),o(c.lastTaskResult))}).catch(p=>{clearInterval(d),l(p)}):o(null)},d=setInterval(h,a);h()})})}getUploadPicsZipResult(e,t,r){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/${t}/uploadzip`,r)})}getUploadabort(e,t,r){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/${t}/uploadabort`,r)})}postPreLabelTask(e,t,r){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/prelabeltask`,r)})}getPreLabelTask(e,t){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/${t}/prelabeltask`)})}delPreLabelTask(e,t,r){return s(this,null,function*(){return this.delete(`/datasets/${e}/versions/${t}/prelabeltask/${r}`)})}getAllConfirmSamples(e,t){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/${t}/confirm`)})}getDataSetCopyTask(e,t){return s(this,null,function*(){return this.get(`/datasets/${e}/versions/${t}/copyDataset`)})}postDataSetCopyTask(e,t,r){return s(this,null,function*(){return this.post(`/datasets/${e}/versions/${t}/copyDataset`,r)})}deleteDatasetCopyTask(e,t,r){return s(this,null,function*(){return this.delete(`/datasets/${e}/versions/${t}/copyDataset`,r)})}}class Le extends m{constructor(e,t){super(e!=null?e:f.create(),t)}listModelServices(e){return s(this,null,function*(){return this.listPaged("/modelService",e)})}postModelService(e){return s(this,null,function*(){return this.post("/modelService",e)})}getModelServiceById(e){return s(this,null,function*(){return this.get(`/modelService/${e}`)})}patchModelServiceById(e,t){return s(this,null,function*(){return this.patch(`/modelService/${e}`,t)})}deleteModelService(e){return s(this,null,function*(){return this.delete(`/modelService/${e}`)})}getEnableModelService(e){return s(this,null,function*(){return this.get(`/modelService/${e}/enable`)})}getDisableModelService(e){return s(this,null,function*(){return this.get(`/modelService/${e}/disable`)})}getModelServiceList(e){return s(this,null,function*(){return this.get(`/modelService/${e}/list`)})}getModelServiceDelist(e){return s(this,null,function*(){return this.get(`/modelService/${e}/delist`)})}importService(e){return s(this,null,function*(){return this.post("/modelService/import",e)})}patchModelService(e,t){return s(this,null,function*(){return this.patch(`/modelService/${e}`,t)})}openModelServices(e){return s(this,null,function*(){return this.get("/openModelService",e)})}importMirronService(e){return s(this,null,function*(){return this.post("/modelService/importMirron",e)})}patchMirronService(e,t){return s(this,null,function*(){return this.patch(`/modelService/importMirron/${e}`,t)})}getServiceSignList(e){return s(this,null,function*(){return this.get("/serviceSign",e)})}}var he=(n=>(n[n.minio=0]="minio",n[n.pvc=1]="pvc",n))(he||{}),ge=(n=>(n.common="A100",n.idcard="A104",n.bankcard="A108",n.page="A112",n.rmwatermark="A115",n.seal="A116",n.rmseal="A117",n.table="A118",n))(ge||{}),ye=(n=>(n.User="user",n.Assistant="assistant",n.System="system",n))(ye||{});class Be extends m{constructor(e,t){super(e!=null?e:f.create(),t)}ocr(e,t){return s(this,null,function*(){if(t.modelStore===he.pvc){const r=this.convertToBatchParams(t),a=yield this.ocrPvcBatch(e,r);return this.convertToMinioResult(a)}else return this.ocrMinio(e,t)})}convertToBatchParams(e){return{pages:[{image:e.image}]}}convertToMinioResult(e){var t;return(t=e.pages)==null?void 0:t.flatMap(r=>{var a;return((a=r.textItems)==null?void 0:a.map(i=>({box:i.bbox})))||[]})}ocrMinio(e,t){return s(this,null,function*(){return t.image&&t.image.split("base64,").length>1&&(t.image=t.image.split("base64,")[1]),this.post(`/v2/infer?serviceId=${e}`,t)})}ocrPvcBatch(e,t){return s(this,null,function*(){return this.post(`/v2/infer?serviceId=${e}`,t)})}getSleep(e){return s(this,null,function*(){return new Promise(t=>{setTimeout(()=>{t(!0)},e*1e3)})})}postChatCompletions(e){return s(this,null,function*(){return this.postNonStandard("/v1/chat/completions",e)})}detection(e,t){return s(this,null,function*(){return this.post(`/v2/infer?serviceId=${e}`,t)})}getBaseModel(e){return s(this,null,function*(){return this.get("/v1/baseModel",{serviceId:e})})}postEmbeddings(e){return s(this,null,function*(){return this.postNonStandard("/v1/embeddings",e)})}}class Ne extends m{constructor(e,t){super(e!=null?e:f.create(),t)}listTasks(e){return s(this,null,function*(){return this.get("/tasks",e)})}createTask(e){return s(this,null,function*(){return this.post("/tasks",e)})}getTask(e){return s(this,null,function*(){return this.get(`/tasks/${e}`)})}updateTask(e,t){return s(this,null,function*(){return this.patch(`/tasks/${e}`,t)})}deleteTask(e){return s(this,null,function*(){return this.delete(`/tasks/${e}`)})}listTaskFiles(e){return s(this,null,function*(){return this.get(`/tasks/${e}/files`)})}uploadTaskFile(e,t){return s(this,null,function*(){return this.post(`/tasks/${e}/files`,t)})}listWorkflowExecutions(e){return s(this,null,function*(){return this.get("/workflows/executions",e)})}getWorkflowExecution(e){return s(this,null,function*(){return this.get(`/workflows/executions/${e}`)})}startWorkflowExecution(e){return s(this,null,function*(){return this.post("/workflows/executions",e)})}updateWorkflowExecution(e,t){return s(this,null,function*(){return this.patch(`/workflows/executions/${e}`,t)})}cancelWorkflowExecution(e){return s(this,null,function*(){return this.post(`/workflows/executions/${e}/cancel`,{})})}getUploadTicket(e){return s(this,null,function*(){return this.get("/upload/ticket",e)})}}exports.AECPilotApi=De;exports.AIShopApi=Be;exports.AecKnowledgeFileStatus=A;exports.AecpilotUIApi=Ee;exports.AgentClientUIApi=Ke;exports.ApplicationTypes=ce;exports.ArchiGptUIKeys=ae;exports.AuthApi=Ie;exports.BaseApi=m;exports.CVForceApi=Ue;exports.CVForceDatahubApi=Ce;exports.ChatMessageRole=te;exports.ChatMode=ee;exports.ContralyzeApi=Ne;exports.DataApi=we;exports.FileProccessStatus=se;exports.GenerateStatus=de;exports.IChatRole=ye;exports.IDatasetLevel=ue;exports.IFileOrigin=Z;exports.IHistoryRole=T;exports.ISourceType=z;exports.ISpacetwinStatus=Y;exports.IThinkingStatus=X;exports.IversionInfo=G;exports.KnowledgeFileStatus=ne;exports.KnowledgeType=oe;exports.ModelServiceApi=Le;exports.OCRServiceId=ge;exports.PROMPT_SEARCH_MAX_LENGTH=D;exports.PROMPT_TITLE_MAX_LENGTH=Ve;exports.PanoramaApi=ke;exports.PanoramaPluginMgrApi=Ae;exports.PreLabelTaskStatus=pe;exports.PromptStatus=ie;exports.RecordStatus=j;exports.SourceType=re;exports.SubsectionStatus=le;exports.UploadZipsStatus=b;exports.needPrettifyMsg=q;exports.prettifyMsg=J;