@circle-fin/user-controlled-wallets 10.0.0 → 10.0.1

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.
@@ -0,0 +1,43 @@
1
+ import Pa from"util";import Ut,{Readable as th}from"stream";import gp from"path";import bl from"http";import El from"https";import Tc from"url";import ah from"fs";import nr,{randomUUID as rh}from"crypto";import nh from"assert";import xp from"tty";import ih from"os";import ra from"zlib";import{EventEmitter as sh}from"events";function yp(e,t){return function(){return e.apply(t,arguments)}}const{toString:oh}=Object.prototype,{getPrototypeOf:Cl}=Object,{iterator:Sc,toStringTag:bp}=Symbol,wc=(e=>t=>{const r=oh.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Vt=e=>(e=e.toLowerCase(),t=>wc(t)===e),Ac=e=>t=>typeof t===e,{isArray:Oa}=Array,Da=Ac("undefined");function ir(e){return e!==null&&!Da(e)&&e.constructor!==null&&!Da(e.constructor)&&St(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ep=Vt("ArrayBuffer");function ch(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ep(e.buffer),t}const lh=Ac("string"),St=Ac("function"),Cp=Ac("number"),sr=e=>e!==null&&typeof e=="object",uh=e=>e===!0||e===!1,Ic=e=>{if(wc(e)!=="object")return!1;const t=Cl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(bp in e)&&!(Sc in e)},ph=e=>{if(!sr(e)||ir(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},dh=Vt("Date"),fh=Vt("File"),hh=Vt("Blob"),mh=Vt("FileList"),vh=e=>sr(e)&&St(e.pipe),gh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||St(e.append)&&((t=wc(e))==="formdata"||t==="object"&&St(e.toString)&&e.toString()==="[object FormData]"))},xh=Vt("URLSearchParams"),[yh,bh,Eh,Ch]=["ReadableStream","Request","Response","Headers"].map(Vt),Th=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function or(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let a,n;if(typeof e!="object"&&(e=[e]),Oa(e))for(a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else{if(ir(e))return;const s=r?Object.getOwnPropertyNames(e):Object.keys(e),i=s.length;let o;for(a=0;a<i;a++)o=s[a],t.call(null,e[o],o,e)}}function Tp(e,t){if(ir(e))return null;t=t.toLowerCase();const r=Object.keys(e);let a=r.length,n;for(;a-- >0;)if(n=r[a],t===n.toLowerCase())return n;return null}const xa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Sp=e=>!Da(e)&&e!==xa;function Tl(){const{caseless:e,skipUndefined:t}=Sp(this)&&this||{},r={},a=(n,s)=>{const i=e&&Tp(r,s)||s;Ic(r[i])&&Ic(n)?r[i]=Tl(r[i],n):Ic(n)?r[i]=Tl({},n):Oa(n)?r[i]=n.slice():(!t||!Da(n))&&(r[i]=n)};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&or(arguments[n],a);return r}const Sh=(e,t,r,{allOwnKeys:a}={})=>(or(t,(n,s)=>{r&&St(n)?e[s]=yp(n,r):e[s]=n},{allOwnKeys:a}),e),wh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Ah=(e,t,r,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Ih=(e,t,r,a)=>{let n,s,i;const o={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),s=n.length;s-- >0;)i=n[s],(!a||a(i,e,t))&&!o[i]&&(t[i]=e[i],o[i]=!0);e=r!==!1&&Cl(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Bh=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const a=e.indexOf(t,r);return a!==-1&&a===r},kh=e=>{if(!e)return null;if(Oa(e))return e;let t=e.length;if(!Cp(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Rh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Cl(Uint8Array)),_h=(e,t)=>{const a=(e&&e[Sc]).call(e);let n;for(;(n=a.next())&&!n.done;){const s=n.value;t.call(e,s[0],s[1])}},Uh=(e,t)=>{let r;const a=[];for(;(r=e.exec(t))!==null;)a.push(r);return a},Nh=Vt("HTMLFormElement"),Lh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,a,n){return a.toUpperCase()+n}),wp=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ph=Vt("RegExp"),Ap=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),a={};or(r,(n,s)=>{let i;(i=t(n,s,e))!==!1&&(a[s]=i||n)}),Object.defineProperties(e,a)},Oh=e=>{Ap(e,(t,r)=>{if(St(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const a=e[r];if(St(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Dh=(e,t)=>{const r={},a=n=>{n.forEach(s=>{r[s]=!0})};return Oa(e)?a(e):a(String(e).split(t)),r},Fh=()=>{},Vh=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Mh(e){return!!(e&&St(e.append)&&e[bp]==="FormData"&&e[Sc])}const qh=e=>{const t=new Array(10),r=(a,n)=>{if(sr(a)){if(t.indexOf(a)>=0)return;if(ir(a))return a;if(!("toJSON"in a)){t[n]=a;const s=Oa(a)?[]:{};return or(a,(i,o)=>{const c=r(i,n+1);!Da(c)&&(s[o]=c)}),t[n]=void 0,s}}return a};return r(e,0)},jh=Vt("AsyncFunction"),Kh=e=>e&&(sr(e)||St(e))&&St(e.then)&&St(e.catch),Ip=((e,t)=>e?setImmediate:t?((r,a)=>(xa.addEventListener("message",({source:n,data:s})=>{n===xa&&s===r&&a.length&&a.shift()()},!1),n=>{a.push(n),xa.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",St(xa.postMessage)),zh=typeof queueMicrotask<"u"?queueMicrotask.bind(xa):typeof process<"u"&&process.nextTick||Ip,Hh=e=>e!=null&&St(e[Sc]);var A={isArray:Oa,isArrayBuffer:Ep,isBuffer:ir,isFormData:gh,isArrayBufferView:ch,isString:lh,isNumber:Cp,isBoolean:uh,isObject:sr,isPlainObject:Ic,isEmptyObject:ph,isReadableStream:yh,isRequest:bh,isResponse:Eh,isHeaders:Ch,isUndefined:Da,isDate:dh,isFile:fh,isBlob:hh,isRegExp:Ph,isFunction:St,isStream:vh,isURLSearchParams:xh,isTypedArray:Rh,isFileList:mh,forEach:or,merge:Tl,extend:Sh,trim:Th,stripBOM:wh,inherits:Ah,toFlatObject:Ih,kindOf:wc,kindOfTest:Vt,endsWith:Bh,toArray:kh,forEachEntry:_h,matchAll:Uh,isHTMLForm:Nh,hasOwnProperty:wp,hasOwnProp:wp,reduceDescriptors:Ap,freezeMethods:Oh,toObjectSet:Dh,toCamelCase:Lh,noop:Fh,toFiniteNumber:Vh,findKey:Tp,global:xa,isContextDefined:Sp,isSpecCompliantForm:Mh,toJSONObject:qh,isAsyncFn:jh,isThenable:Kh,setImmediate:Ip,asap:zh,isIterable:Hh};function K(e,t,r,a,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),a&&(this.request=a),n&&(this.response=n,this.status=n.status?n.status:null)}A.inherits(K,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:A.toJSONObject(this.config),code:this.code,status:this.status}}});const Bp=K.prototype,kp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{kp[e]={value:e}}),Object.defineProperties(K,kp),Object.defineProperty(Bp,"isAxiosError",{value:!0}),K.from=(e,t,r,a,n,s)=>{const i=Object.create(Bp);A.toFlatObject(e,i,function(u){return u!==Error.prototype},l=>l!=="isAxiosError");const o=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return K.call(i,o,c,r,a,n),e&&i.cause==null&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",s&&Object.assign(i,s),i};var $h=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _p=Ut.Stream,Gh=Pa,Wh=Mt;function Mt(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}Gh.inherits(Mt,_p),Mt.create=function(e,t){var r=new this;t=t||{};for(var a in t)r[a]=t[a];r.source=e;var n=e.emit;return e.emit=function(){return r._handleEmit(arguments),n.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r},Object.defineProperty(Mt.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),Mt.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},Mt.prototype.resume=function(){this._released||this.release(),this.source.resume()},Mt.prototype.pause=function(){this.source.pause()},Mt.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},Mt.prototype.pipe=function(){var e=_p.prototype.pipe.apply(this,arguments);return this.resume(),e},Mt.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)},Mt.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var Xh=Pa,Up=Ut.Stream,Np=Wh,Qh=He;function He(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}Xh.inherits(He,Up),He.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t},He.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)},He.prototype.append=function(e){var t=He.isStreamLike(e);if(t){if(!(e instanceof Np)){var r=Np.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},He.prototype.pipe=function(e,t){return Up.prototype.pipe.call(this,e,t),this.resume(),e},He.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}},He.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var a=He.isStreamLike(r);a&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))},He.prototype._pipeNext=function(e){this._currentStream=e;var t=He.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()},He.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})},He.prototype.write=function(e){this.emit("data",e)},He.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))},He.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")},He.prototype.end=function(){this._reset(),this.emit("end")},He.prototype.destroy=function(){this._reset(),this.emit("close")},He.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},He.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},He.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},He.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var Lp={},Yh={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"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:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,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:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"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:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"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:!0,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:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"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:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,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:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,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:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"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:!0},"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:!1,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:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,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:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"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:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,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:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,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:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"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:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"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:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"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:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,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:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,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:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"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:!1,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:!0,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:!0},"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:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,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:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,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:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,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:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"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:!0},"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:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,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:!0,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:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"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:!0},"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:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"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:!0},"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:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"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:!0,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:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"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:!0},"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:!0},"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:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"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:!0},"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:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"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:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"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:!1},"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:!1},"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:!1},"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:!0},"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:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"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:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"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:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"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:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"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:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,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:!1},"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:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"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:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"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:!0},"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:!0},"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:!0,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:!1,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:!0,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:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,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:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,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:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"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:!1,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:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,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:!0},"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:!1,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:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,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:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"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:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"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:!0,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:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"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:!0},"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:!0},"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:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"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:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"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:!0,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:!0},"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:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"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:!0},"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:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,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:!0,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:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,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:!0,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:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"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:!0,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:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"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:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"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:!0},"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:!0,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:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"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:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,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:!1,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:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,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:!1},"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:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,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:!0,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:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,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:!1},"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:!0,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:!1,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:!1,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:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,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:!0,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:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"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:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,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:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,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:!1,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:!1,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:!1},"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:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,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:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,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:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,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:!1,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:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,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:!1},"image/png":{source:"iana",compressible:!1,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:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,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:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,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:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,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:!1},"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:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,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:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,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:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,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:!0},"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:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"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:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"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:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,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:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,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:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,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:!0,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:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,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:!0,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:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,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:!0,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:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,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:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,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:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,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:!1,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:!0},"x-shader/x-vertex":{compressible:!0}};/*!
2
+ * mime-db
3
+ * Copyright(c) 2014 Jonathan Ong
4
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
5
+ * MIT Licensed
6
+ */var Jh=Yh;/*!
7
+ * mime-types
8
+ * Copyright(c) 2014 Jonathan Ong
9
+ * Copyright(c) 2015 Douglas Christopher Wilson
10
+ * MIT Licensed
11
+ */(function(e){var t=Jh,r=gp.extname,a=/^\s*([^;\s]*)(?:;|\s|$)/,n=/^text\//i;e.charset=s,e.charsets={lookup:s},e.contentType=i,e.extension=o,e.extensions=Object.create(null),e.lookup=c,e.types=Object.create(null),l(e.extensions,e.types);function s(u){if(!u||typeof u!="string")return!1;var p=a.exec(u),d=p&&t[p[1].toLowerCase()];return d&&d.charset?d.charset:p&&n.test(p[1])?"UTF-8":!1}function i(u){if(!u||typeof u!="string")return!1;var p=u.indexOf("/")===-1?e.lookup(u):u;if(!p)return!1;if(p.indexOf("charset")===-1){var d=e.charset(p);d&&(p+="; charset="+d.toLowerCase())}return p}function o(u){if(!u||typeof u!="string")return!1;var p=a.exec(u),d=p&&e.extensions[p[1].toLowerCase()];return!d||!d.length?!1:d[0]}function c(u){if(!u||typeof u!="string")return!1;var p=r("x."+u).toLowerCase().substr(1);return p&&e.types[p]||!1}function l(u,p){var d=["nginx","apache",void 0,"iana"];Object.keys(t).forEach(function(h){var y=t[h],b=y.extensions;if(!(!b||!b.length)){u[h]=b;for(var C=0;C<b.length;C++){var I=b[C];if(p[I]){var B=d.indexOf(t[p[I]].source),U=d.indexOf(y.source);if(p[I]!=="application/octet-stream"&&(B>U||B===U&&p[I].substr(0,12)==="application/"))continue}p[I]=h}}})}})(Lp);var Zh=em;function em(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}var Pp=Zh,Op=tm;function tm(e){var t=!1;return Pp(function(){t=!0}),function(a,n){t?e(a,n):Pp(function(){e(a,n)})}}var Dp=am;function am(e){Object.keys(e.jobs).forEach(rm.bind(e)),e.jobs={}}function rm(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}var Fp=Op,nm=Dp,Vp=im;function im(e,t,r,a){var n=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[n]=sm(t,n,e[n],function(s,i){n in r.jobs&&(delete r.jobs[n],s?nm(r):r.results[n]=i,a(s,r.results))})}function sm(e,t,r,a){var n;return e.length==2?n=e(r,Fp(a)):n=e(r,t,Fp(a)),n}var Mp=om;function om(e,t){var r=!Array.isArray(e),a={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&a.keyedList.sort(r?t:function(n,s){return t(e[n],e[s])}),a}var cm=Dp,lm=Op,qp=um;function um(e){Object.keys(this.jobs).length&&(this.index=this.size,cm(this),lm(e)(null,this.results))}var pm=Vp,dm=Mp,fm=qp,hm=mm;function mm(e,t,r){for(var a=dm(e);a.index<(a.keyedList||e).length;)pm(e,t,a,function(n,s){if(n){r(n,s);return}if(Object.keys(a.jobs).length===0){r(null,a.results);return}}),a.index++;return fm.bind(a,r)}var Bc={exports:{}},jp=Vp,vm=Mp,gm=qp;Bc.exports=xm,Bc.exports.ascending=Kp,Bc.exports.descending=ym;function xm(e,t,r,a){var n=vm(e,r);return jp(e,t,n,function s(i,o){if(i){a(i,o);return}if(n.index++,n.index<(n.keyedList||e).length){jp(e,t,n,s);return}a(null,n.results)}),gm.bind(n,a)}function Kp(e,t){return e<t?-1:e>t?1:0}function ym(e,t){return-1*Kp(e,t)}var zp=Bc.exports,bm=zp,Em=Cm;function Cm(e,t,r){return bm(e,t,null,r)}var Tm={parallel:hm,serial:Em,serialOrdered:zp},Hp=Object,Sm=Error,wm=EvalError,Am=RangeError,Im=ReferenceError,Bm=SyntaxError,Sl,$p;function wl(){return $p||($p=1,Sl=TypeError),Sl}var km=URIError,Rm=Math.abs,_m=Math.floor,Um=Math.max,Nm=Math.min,Lm=Math.pow,Pm=Math.round,Om=Number.isNaN||function(t){return t!==t},Dm=Om,Fm=function(t){return Dm(t)||t===0?t:t<0?-1:1},Vm=Object.getOwnPropertyDescriptor,kc=Vm;if(kc)try{kc([],"length")}catch{kc=null}var Gp=kc,Rc=Object.defineProperty||!1;if(Rc)try{Rc({},"a",{value:1})}catch{Rc=!1}var Mm=Rc,Al,Wp;function Xp(){return Wp||(Wp=1,Al=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[r]=n;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==n||o.enumerable!==!0)return!1}return!0}),Al}var Il,Qp;function qm(){if(Qp)return Il;Qp=1;var e=typeof Symbol<"u"&&Symbol,t=Xp();return Il=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Il}var Bl,Yp;function Jp(){return Yp||(Yp=1,Bl=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Bl}var kl,Zp;function ed(){if(Zp)return kl;Zp=1;var e=Hp;return kl=e.getPrototypeOf||null,kl}var jm="Function.prototype.bind called on incompatible ",Km=Object.prototype.toString,zm=Math.max,Hm="[object Function]",td=function(t,r){for(var a=[],n=0;n<t.length;n+=1)a[n]=t[n];for(var s=0;s<r.length;s+=1)a[s+t.length]=r[s];return a},$m=function(t,r){for(var a=[],n=r||0,s=0;n<t.length;n+=1,s+=1)a[s]=t[n];return a},Gm=function(e,t){for(var r="",a=0;a<e.length;a+=1)r+=e[a],a+1<e.length&&(r+=t);return r},Wm=function(t){var r=this;if(typeof r!="function"||Km.apply(r)!==Hm)throw new TypeError(jm+r);for(var a=$m(arguments,1),n,s=function(){if(this instanceof n){var u=r.apply(this,td(a,arguments));return Object(u)===u?u:this}return r.apply(t,td(a,arguments))},i=zm(0,r.length-a.length),o=[],c=0;c<i;c++)o[c]="$"+c;if(n=Function("binder","return function ("+Gm(o,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var l=function(){};l.prototype=r.prototype,n.prototype=new l,l.prototype=null}return n},Xm=Wm,_c=Function.prototype.bind||Xm,Rl,ad;function _l(){return ad||(ad=1,Rl=Function.prototype.call),Rl}var Ul,rd;function nd(){return rd||(rd=1,Ul=Function.prototype.apply),Ul}var Nl,id;function Qm(){return id||(id=1,Nl=typeof Reflect<"u"&&Reflect&&Reflect.apply),Nl}var Ll,sd;function Ym(){if(sd)return Ll;sd=1;var e=_c,t=nd(),r=_l(),a=Qm();return Ll=a||e.call(r,t),Ll}var Pl,od;function Jm(){if(od)return Pl;od=1;var e=_c,t=wl(),r=_l(),a=Ym();return Pl=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return a(e,r,s)},Pl}var Ol,cd;function Zm(){if(cd)return Ol;cd=1;var e=Jm(),t=Gp,r;try{r=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var a=!!r&&t&&t(Object.prototype,"__proto__"),n=Object,s=n.getPrototypeOf;return Ol=a&&typeof a.get=="function"?e([a.get]):typeof s=="function"?function(o){return s(o==null?o:n(o))}:!1,Ol}var Dl,ld;function ev(){if(ld)return Dl;ld=1;var e=Jp(),t=ed(),r=Zm();return Dl=e?function(n){return e(n)}:t?function(n){if(!n||typeof n!="object"&&typeof n!="function")throw new TypeError("getProto: not an object");return t(n)}:r?function(n){return r(n)}:null,Dl}var tv=Function.prototype.call,av=Object.prototype.hasOwnProperty,rv=_c,Fl=rv.call(tv,av),oe,nv=Hp,iv=Sm,sv=wm,ov=Am,cv=Im,Fa=Bm,Va=wl(),lv=km,uv=Rm,pv=_m,dv=Um,fv=Nm,hv=Lm,mv=Pm,vv=Fm,ud=Function,Vl=function(e){try{return ud('"use strict"; return ('+e+").constructor;")()}catch{}},cr=Gp,gv=Mm,Ml=function(){throw new Va},xv=cr?function(){try{return arguments.callee,Ml}catch{try{return cr(arguments,"callee").get}catch{return Ml}}}():Ml,Ma=qm()(),Je=ev(),yv=ed(),bv=Jp(),pd=nd(),lr=_l(),qa={},Ev=typeof Uint8Array>"u"||!Je?oe:Je(Uint8Array),ya={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?oe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?oe:ArrayBuffer,"%ArrayIteratorPrototype%":Ma&&Je?Je([][Symbol.iterator]()):oe,"%AsyncFromSyncIteratorPrototype%":oe,"%AsyncFunction%":qa,"%AsyncGenerator%":qa,"%AsyncGeneratorFunction%":qa,"%AsyncIteratorPrototype%":qa,"%Atomics%":typeof Atomics>"u"?oe:Atomics,"%BigInt%":typeof BigInt>"u"?oe:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?oe:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?oe:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?oe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":iv,"%eval%":eval,"%EvalError%":sv,"%Float16Array%":typeof Float16Array>"u"?oe:Float16Array,"%Float32Array%":typeof Float32Array>"u"?oe:Float32Array,"%Float64Array%":typeof Float64Array>"u"?oe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?oe:FinalizationRegistry,"%Function%":ud,"%GeneratorFunction%":qa,"%Int8Array%":typeof Int8Array>"u"?oe:Int8Array,"%Int16Array%":typeof Int16Array>"u"?oe:Int16Array,"%Int32Array%":typeof Int32Array>"u"?oe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ma&&Je?Je(Je([][Symbol.iterator]())):oe,"%JSON%":typeof JSON=="object"?JSON:oe,"%Map%":typeof Map>"u"?oe:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ma||!Je?oe:Je(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":nv,"%Object.getOwnPropertyDescriptor%":cr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?oe:Promise,"%Proxy%":typeof Proxy>"u"?oe:Proxy,"%RangeError%":ov,"%ReferenceError%":cv,"%Reflect%":typeof Reflect>"u"?oe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?oe:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ma||!Je?oe:Je(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?oe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ma&&Je?Je(""[Symbol.iterator]()):oe,"%Symbol%":Ma?Symbol:oe,"%SyntaxError%":Fa,"%ThrowTypeError%":xv,"%TypedArray%":Ev,"%TypeError%":Va,"%Uint8Array%":typeof Uint8Array>"u"?oe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?oe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?oe:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?oe:Uint32Array,"%URIError%":lv,"%WeakMap%":typeof WeakMap>"u"?oe:WeakMap,"%WeakRef%":typeof WeakRef>"u"?oe:WeakRef,"%WeakSet%":typeof WeakSet>"u"?oe:WeakSet,"%Function.prototype.call%":lr,"%Function.prototype.apply%":pd,"%Object.defineProperty%":gv,"%Object.getPrototypeOf%":yv,"%Math.abs%":uv,"%Math.floor%":pv,"%Math.max%":dv,"%Math.min%":fv,"%Math.pow%":hv,"%Math.round%":mv,"%Math.sign%":vv,"%Reflect.getPrototypeOf%":bv};if(Je)try{null.error}catch(e){var Cv=Je(Je(e));ya["%Error.prototype%"]=Cv}var Tv=function e(t){var r;if(t==="%AsyncFunction%")r=Vl("async function () {}");else if(t==="%GeneratorFunction%")r=Vl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Vl("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&Je&&(r=Je(n.prototype))}return ya[t]=r,r},dd={__proto__:null,"%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"]},ur=_c,Uc=Fl,Sv=ur.call(lr,Array.prototype.concat),wv=ur.call(pd,Array.prototype.splice),fd=ur.call(lr,String.prototype.replace),Nc=ur.call(lr,String.prototype.slice),Av=ur.call(lr,RegExp.prototype.exec),Iv=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Bv=/\\(\\)?/g,kv=function(t){var r=Nc(t,0,1),a=Nc(t,-1);if(r==="%"&&a!=="%")throw new Fa("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&r!=="%")throw new Fa("invalid intrinsic syntax, expected opening `%`");var n=[];return fd(t,Iv,function(s,i,o,c){n[n.length]=o?fd(c,Bv,"$1"):i||s}),n},Rv=function(t,r){var a=t,n;if(Uc(dd,a)&&(n=dd[a],a="%"+n[0]+"%"),Uc(ya,a)){var s=ya[a];if(s===qa&&(s=Tv(a)),typeof s>"u"&&!r)throw new Va("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:s}}throw new Fa("intrinsic "+t+" does not exist!")},_v=function(t,r){if(typeof t!="string"||t.length===0)throw new Va("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Va('"allowMissing" argument must be a boolean');if(Av(/^%?[^%]*%?$/,t)===null)throw new Fa("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=kv(t),n=a.length>0?a[0]:"",s=Rv("%"+n+"%",r),i=s.name,o=s.value,c=!1,l=s.alias;l&&(n=l[0],wv(a,Sv([0,1],l)));for(var u=1,p=!0;u<a.length;u+=1){var d=a[u],x=Nc(d,0,1),h=Nc(d,-1);if((x==='"'||x==="'"||x==="`"||h==='"'||h==="'"||h==="`")&&x!==h)throw new Fa("property names with quotes must have matching quotes");if((d==="constructor"||!p)&&(c=!0),n+="."+d,i="%"+n+"%",Uc(ya,i))o=ya[i];else if(o!=null){if(!(d in o)){if(!r)throw new Va("base intrinsic for "+t+" exists, but the property is not available.");return}if(cr&&u+1>=a.length){var y=cr(o,d);p=!!y,p&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[d]}else p=Uc(o,d),o=o[d];p&&!c&&(ya[i]=o)}}return o},ql,hd;function Uv(){if(hd)return ql;hd=1;var e=Xp();return ql=function(){return e()&&!!Symbol.toStringTag},ql}var Nv=_v,md=Nv("%Object.defineProperty%",!0),Lv=Uv()(),Pv=Fl,Ov=wl(),Lc=Lv?Symbol.toStringTag:null,Dv=function(t,r){var a=arguments.length>2&&!!arguments[2]&&arguments[2].force,n=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof a<"u"&&typeof a!="boolean"||typeof n<"u"&&typeof n!="boolean")throw new Ov("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");Lc&&(a||!Pv(t,Lc))&&(md?md(t,Lc,{configurable:!n,enumerable:!1,value:r,writable:!1}):t[Lc]=r)},Fv=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e},jl=Qh,Vv=Pa,Kl=gp,Mv=bl,qv=El,jv=Tc.parse,Kv=ah,zv=Ut.Stream,Hv=nr,zl=Lp,$v=Tm,Gv=Dv,na=Fl,Hl=Fv;function Se(e){if(!(this instanceof Se))return new Se(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],jl.call(this),e=e||{};for(var t in e)this[t]=e[t]}Vv.inherits(Se,jl),Se.LINE_BREAK=`\r
12
+ `,Se.DEFAULT_CONTENT_TYPE="application/octet-stream",Se.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var a=jl.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var n=this._multiPartHeader(e,t,r),s=this._multiPartFooter();a(n),a(t),a(s),this._trackLength(n,t,r)},Se.prototype._trackLength=function(e,t,r){var a=0;r.knownLength!=null?a+=Number(r.knownLength):Buffer.isBuffer(t)?a=t.length:typeof t=="string"&&(a=Buffer.byteLength(t)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+Se.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&na(t,"httpVersion"))&&!(t instanceof zv))&&(r.knownLength||this._valuesToMeasure.push(t))},Se.prototype._lengthRetriever=function(e,t){na(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):Kv.stat(e.path,function(r,a){if(r){t(r);return}var n=a.size-(e.start?e.start:0);t(null,n)}):na(e,"httpVersion")?t(null,Number(e.headers["content-length"])):na(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")},Se.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var a=this._getContentDisposition(t,r),n=this._getContentType(t,r),s="",i={"Content-Disposition":["form-data",'name="'+e+'"'].concat(a||[]),"Content-Type":[].concat(n||[])};typeof r.header=="object"&&Hl(i,r.header);var o;for(var c in i)if(na(i,c)){if(o=i[c],o==null)continue;Array.isArray(o)||(o=[o]),o.length&&(s+=c+": "+o.join("; ")+Se.LINE_BREAK)}return"--"+this.getBoundary()+Se.LINE_BREAK+s+Se.LINE_BREAK},Se.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=Kl.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=Kl.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&na(e,"httpVersion")&&(r=Kl.basename(e.client._httpMessage.path||"")),r)return'filename="'+r+'"'},Se.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=zl.lookup(e.name)),!r&&e&&e.path&&(r=zl.lookup(e.path)),!r&&e&&e.readable&&na(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=zl.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=Se.DEFAULT_CONTENT_TYPE),r},Se.prototype._multiPartFooter=function(){return function(e){var t=Se.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)},Se.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Se.LINE_BREAK},Se.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)na(e,t)&&(r[t.toLowerCase()]=e[t]);return r},Se.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e},Se.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Se.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,a=this._streams.length;r<a;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(Se.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Se.prototype._generateBoundary=function(){this._boundary="--------------------------"+Hv.randomBytes(12).toString("hex")},Se.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},Se.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Se.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}$v.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,a){if(r){e(r);return}a.forEach(function(n){t+=n}),e(null,t)})},Se.prototype.submit=function(e,t){var r,a,n={method:"post"};return typeof e=="string"?(e=jv(e),a=Hl({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},n)):(a=Hl(e,n),a.port||(a.port=a.protocol==="https:"?443:80)),a.headers=this.getHeaders(e.headers),a.protocol==="https:"?r=qv.request(a):r=Mv.request(a),this.getLength(function(s,i){if(s&&s!=="Unknown stream"){this._error(s);return}if(i&&r.setHeader("Content-Length",i),this.pipe(r),t){var o,c=function(l,u){return r.removeListener("error",c),r.removeListener("response",o),t.call(this,l,u)};o=c.bind(this,null),r.on("error",c),r.on("response",o)}}.bind(this)),r},Se.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Se.prototype.toString=function(){return"[object FormData]"},Gv(Se,"FormData");var Wv=Se,vd=Rp(Wv);function $l(e){return A.isPlainObject(e)||A.isArray(e)}function gd(e){return A.endsWith(e,"[]")?e.slice(0,-2):e}function xd(e,t,r){return e?e.concat(t).map(function(n,s){return n=gd(n),!r&&s?"["+n+"]":n}).join(r?".":""):t}function Xv(e){return A.isArray(e)&&!e.some($l)}const Qv=A.toFlatObject(A,{},null,function(t){return/^is[A-Z]/.test(t)});function Pc(e,t,r){if(!A.isObject(e))throw new TypeError("target must be an object");t=t||new(vd||FormData),r=A.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!A.isUndefined(b[y])});const a=r.metaTokens,n=r.visitor||u,s=r.dots,i=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&A.isSpecCompliantForm(t);if(!A.isFunction(n))throw new TypeError("visitor must be a function");function l(h){if(h===null)return"";if(A.isDate(h))return h.toISOString();if(A.isBoolean(h))return h.toString();if(!c&&A.isBlob(h))throw new K("Blob is not supported. Use a Buffer instead.");return A.isArrayBuffer(h)||A.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,y,b){let C=h;if(h&&!b&&typeof h=="object"){if(A.endsWith(y,"{}"))y=a?y:y.slice(0,-2),h=JSON.stringify(h);else if(A.isArray(h)&&Xv(h)||(A.isFileList(h)||A.endsWith(y,"[]"))&&(C=A.toArray(h)))return y=gd(y),C.forEach(function(B,U){!(A.isUndefined(B)||B===null)&&t.append(i===!0?xd([y],U,s):i===null?y:y+"[]",l(B))}),!1}return $l(h)?!0:(t.append(xd(b,y,s),l(h)),!1)}const p=[],d=Object.assign(Qv,{defaultVisitor:u,convertValue:l,isVisitable:$l});function x(h,y){if(!A.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(h),A.forEach(h,function(C,I){(!(A.isUndefined(C)||C===null)&&n.call(t,C,A.isString(I)?I.trim():I,y,d))===!0&&x(C,y?y.concat(I):[I])}),p.pop()}}if(!A.isObject(e))throw new TypeError("data must be an object");return x(e),t}function yd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function bd(e,t){this._pairs=[],e&&Pc(e,this,t)}const Ed=bd.prototype;Ed.append=function(t,r){this._pairs.push([t,r])},Ed.toString=function(t){const r=t?function(a){return t.call(this,a,yd)}:yd;return this._pairs.map(function(n){return r(n[0])+"="+r(n[1])},"").join("&")};function Yv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Gl(e,t,r){if(!t)return e;const a=r&&r.encode||Yv;A.isFunction(r)&&(r={serialize:r});const n=r&&r.serialize;let s;if(n?s=n(t,r):s=A.isURLSearchParams(t)?t.toString():new bd(t,r).toString(a),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Cd{constructor(){this.handlers=[]}use(t,r,a){return this.handlers.push({fulfilled:t,rejected:r,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){A.forEach(this.handlers,function(a){a!==null&&t(a)})}}var Wl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Jv=Tc.URLSearchParams;const Xl="abcdefghijklmnopqrstuvwxyz",Td="0123456789",Sd={DIGIT:Td,ALPHA:Xl,ALPHA_DIGIT:Xl+Xl.toUpperCase()+Td},Zv=(e=16,t=Sd.ALPHA_DIGIT)=>{let r="";const{length:a}=t,n=new Uint32Array(e);nr.randomFillSync(n);for(let s=0;s<e;s++)r+=t[n[s]%a];return r};var eg={isNode:!0,classes:{URLSearchParams:Jv,FormData:vd,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Sd,generateString:Zv,protocols:["http","https","file","data"]};const Ql=typeof window<"u"&&typeof document<"u",Yl=typeof navigator=="object"&&navigator||void 0,tg=Ql&&(!Yl||["ReactNative","NativeScript","NS"].indexOf(Yl.product)<0),ag=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",rg=Ql&&window.location.href||"http://localhost";var ng=Object.freeze({__proto__:null,hasBrowserEnv:Ql,hasStandardBrowserEnv:tg,hasStandardBrowserWebWorkerEnv:ag,navigator:Yl,origin:rg}),$e={...ng,...eg};function ig(e,t){return Pc(e,new $e.classes.URLSearchParams,{visitor:function(r,a,n,s){return $e.isNode&&A.isBuffer(r)?(this.append(a,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function sg(e){return A.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function og(e){const t={},r=Object.keys(e);let a;const n=r.length;let s;for(a=0;a<n;a++)s=r[a],t[s]=e[s];return t}function wd(e){function t(r,a,n,s){let i=r[s++];if(i==="__proto__")return!0;const o=Number.isFinite(+i),c=s>=r.length;return i=!i&&A.isArray(n)?n.length:i,c?(A.hasOwnProp(n,i)?n[i]=[n[i],a]:n[i]=a,!o):((!n[i]||!A.isObject(n[i]))&&(n[i]=[]),t(r,a,n[i],s)&&A.isArray(n[i])&&(n[i]=og(n[i])),!o)}if(A.isFormData(e)&&A.isFunction(e.entries)){const r={};return A.forEachEntry(e,(a,n)=>{t(sg(a),n,r,0)}),r}return null}function cg(e,t,r){if(A.isString(e))try{return(t||JSON.parse)(e),A.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(r||JSON.stringify)(e)}const pr={transitional:Wl,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const a=r.getContentType()||"",n=a.indexOf("application/json")>-1,s=A.isObject(t);if(s&&A.isHTMLForm(t)&&(t=new FormData(t)),A.isFormData(t))return n?JSON.stringify(wd(t)):t;if(A.isArrayBuffer(t)||A.isBuffer(t)||A.isStream(t)||A.isFile(t)||A.isBlob(t)||A.isReadableStream(t))return t;if(A.isArrayBufferView(t))return t.buffer;if(A.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return ig(t,this.formSerializer).toString();if((o=A.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Pc(o?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||n?(r.setContentType("application/json",!1),cg(t)):t}],transformResponse:[function(t){const r=this.transitional||pr.transitional,a=r&&r.forcedJSONParsing,n=this.responseType==="json";if(A.isResponse(t)||A.isReadableStream(t))return t;if(t&&A.isString(t)&&(a&&!this.responseType||n)){const i=!(r&&r.silentJSONParsing)&&n;try{return JSON.parse(t,this.parseReviver)}catch(o){if(i)throw o.name==="SyntaxError"?K.from(o,K.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$e.classes.FormData,Blob:$e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};A.forEach(["delete","get","head","post","put","patch"],e=>{pr.headers[e]={}});const lg=A.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ug=e=>{const t={};let r,a,n;return e&&e.split(`
13
+ `).forEach(function(i){n=i.indexOf(":"),r=i.substring(0,n).trim().toLowerCase(),a=i.substring(n+1).trim(),!(!r||t[r]&&lg[r])&&(r==="set-cookie"?t[r]?t[r].push(a):t[r]=[a]:t[r]=t[r]?t[r]+", "+a:a)}),t};const Ad=Symbol("internals");function dr(e){return e&&String(e).trim().toLowerCase()}function Oc(e){return e===!1||e==null?e:A.isArray(e)?e.map(Oc):String(e)}function pg(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=r.exec(e);)t[a[1]]=a[2];return t}const dg=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jl(e,t,r,a,n){if(A.isFunction(a))return a.call(this,t,r);if(n&&(t=r),!!A.isString(t)){if(A.isString(a))return t.indexOf(a)!==-1;if(A.isRegExp(a))return a.test(t)}}function fg(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,a)=>r.toUpperCase()+a)}function hg(e,t){const r=A.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+r,{value:function(n,s,i){return this[a].call(this,t,n,s,i)},configurable:!0})})}let rt=class{constructor(t){t&&this.set(t)}set(t,r,a){const n=this;function s(o,c,l){const u=dr(c);if(!u)throw new Error("header name must be a non-empty string");const p=A.findKey(n,u);(!p||n[p]===void 0||l===!0||l===void 0&&n[p]!==!1)&&(n[p||c]=Oc(o))}const i=(o,c)=>A.forEach(o,(l,u)=>s(l,u,c));if(A.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(A.isString(t)&&(t=t.trim())&&!dg(t))i(ug(t),r);else if(A.isObject(t)&&A.isIterable(t)){let o={},c,l;for(const u of t){if(!A.isArray(u))throw TypeError("Object iterator must return a key-value pair");o[l=u[0]]=(c=o[l])?A.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}i(o,r)}else t!=null&&s(r,t,a);return this}get(t,r){if(t=dr(t),t){const a=A.findKey(this,t);if(a){const n=this[a];if(!r)return n;if(r===!0)return pg(n);if(A.isFunction(r))return r.call(this,n,a);if(A.isRegExp(r))return r.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=dr(t),t){const a=A.findKey(this,t);return!!(a&&this[a]!==void 0&&(!r||Jl(this,this[a],a,r)))}return!1}delete(t,r){const a=this;let n=!1;function s(i){if(i=dr(i),i){const o=A.findKey(a,i);o&&(!r||Jl(a,a[o],o,r))&&(delete a[o],n=!0)}}return A.isArray(t)?t.forEach(s):s(t),n}clear(t){const r=Object.keys(this);let a=r.length,n=!1;for(;a--;){const s=r[a];(!t||Jl(this,this[s],s,t,!0))&&(delete this[s],n=!0)}return n}normalize(t){const r=this,a={};return A.forEach(this,(n,s)=>{const i=A.findKey(a,s);if(i){r[i]=Oc(n),delete r[s];return}const o=t?fg(s):String(s).trim();o!==s&&delete r[s],r[o]=Oc(n),a[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return A.forEach(this,(a,n)=>{a!=null&&a!==!1&&(r[n]=t&&A.isArray(a)?a.join(", "):a)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
14
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const a=new this(t);return r.forEach(n=>a.set(n)),a}static accessor(t){const a=(this[Ad]=this[Ad]={accessors:{}}).accessors,n=this.prototype;function s(i){const o=dr(i);a[o]||(hg(n,i),a[o]=!0)}return A.isArray(t)?t.forEach(s):s(t),this}};rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),A.reduceDescriptors(rt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[r]=a}}}),A.freezeMethods(rt);function Zl(e,t){const r=this||pr,a=t||r,n=rt.from(a.headers);let s=a.data;return A.forEach(e,function(o){s=o.call(r,s,n.normalize(),t?t.status:void 0)}),n.normalize(),s}function Id(e){return!!(e&&e.__CANCEL__)}function ia(e,t,r){K.call(this,e??"canceled",K.ERR_CANCELED,t,r),this.name="CanceledError"}A.inherits(ia,K,{__CANCEL__:!0});function ja(e,t,r){const a=r.config.validateStatus;!r.status||!a||a(r.status)?e(r):t(new K("Request failed with status code "+r.status,[K.ERR_BAD_REQUEST,K.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function mg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vg(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function eu(e,t,r){let a=!mg(t);return e&&(a||r==!1)?vg(e,t):t}var Bd={},gg=Tc.parse,xg={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},yg=String.prototype.endsWith||function(e){return e.length<=this.length&&this.indexOf(e,this.length-e.length)!==-1};function bg(e){var t=typeof e=="string"?gg(e):e||{},r=t.protocol,a=t.host,n=t.port;if(typeof a!="string"||!a||typeof r!="string"||(r=r.split(":",1)[0],a=a.replace(/:\d*$/,""),n=parseInt(n)||xg[r]||0,!Eg(a,n)))return"";var s=Ka("npm_config_"+r+"_proxy")||Ka(r+"_proxy")||Ka("npm_config_proxy")||Ka("all_proxy");return s&&s.indexOf("://")===-1&&(s=r+"://"+s),s}function Eg(e,t){var r=(Ka("npm_config_no_proxy")||Ka("no_proxy")).toLowerCase();return r?r==="*"?!1:r.split(/[,\s]/).every(function(a){if(!a)return!0;var n=a.match(/^(.+):(\d+)$/),s=n?n[1]:a,i=n?parseInt(n[2]):0;return i&&i!==t?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!yg.call(e,s)):e!==s}):!0}function Ka(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}Bd.getProxyForUrl=bg;var tu={exports:{}},Dc={exports:{}},Fc={exports:{}},au,kd;function Cg(){if(kd)return au;kd=1;var e=1e3,t=e*60,r=t*60,a=r*24,n=a*7,s=a*365.25;au=function(u,p){p=p||{};var d=typeof u;if(d==="string"&&u.length>0)return i(u);if(d==="number"&&isFinite(u))return p.long?c(u):o(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function i(u){if(u=String(u),!(u.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(p){var d=parseFloat(p[1]),x=(p[2]||"ms").toLowerCase();switch(x){case"years":case"year":case"yrs":case"yr":case"y":return d*s;case"weeks":case"week":case"w":return d*n;case"days":case"day":case"d":return d*a;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function o(u){var p=Math.abs(u);return p>=a?Math.round(u/a)+"d":p>=r?Math.round(u/r)+"h":p>=t?Math.round(u/t)+"m":p>=e?Math.round(u/e)+"s":u+"ms"}function c(u){var p=Math.abs(u);return p>=a?l(u,p,a,"day"):p>=r?l(u,p,r,"hour"):p>=t?l(u,p,t,"minute"):p>=e?l(u,p,e,"second"):u+" ms"}function l(u,p,d,x){var h=p>=d*1.5;return Math.round(u/d)+" "+x+(h?"s":"")}return au}var ru,Rd;function _d(){if(Rd)return ru;Rd=1;function e(t){a.debug=a,a.default=a,a.coerce=l,a.disable=o,a.enable=s,a.enabled=c,a.humanize=Cg(),a.destroy=u,Object.keys(t).forEach(p=>{a[p]=t[p]}),a.names=[],a.skips=[],a.formatters={};function r(p){let d=0;for(let x=0;x<p.length;x++)d=(d<<5)-d+p.charCodeAt(x),d|=0;return a.colors[Math.abs(d)%a.colors.length]}a.selectColor=r;function a(p){let d,x=null,h,y;function b(...C){if(!b.enabled)return;const I=b,B=Number(new Date),U=B-(d||B);I.diff=U,I.prev=d,I.curr=B,d=B,C[0]=a.coerce(C[0]),typeof C[0]!="string"&&C.unshift("%O");let _=0;C[0]=C[0].replace(/%([a-zA-Z%])/g,(j,H)=>{if(j==="%%")return"%";_++;const te=a.formatters[H];if(typeof te=="function"){const se=C[_];j=te.call(I,se),C.splice(_,1),_--}return j}),a.formatArgs.call(I,C),(I.log||a.log).apply(I,C)}return b.namespace=p,b.useColors=a.useColors(),b.color=a.selectColor(p),b.extend=n,b.destroy=a.destroy,Object.defineProperty(b,"enabled",{enumerable:!0,configurable:!1,get:()=>x!==null?x:(h!==a.namespaces&&(h=a.namespaces,y=a.enabled(p)),y),set:C=>{x=C}}),typeof a.init=="function"&&a.init(b),b}function n(p,d){const x=a(this.namespace+(typeof d>"u"?":":d)+p);return x.log=this.log,x}function s(p){a.save(p),a.namespaces=p,a.names=[],a.skips=[];const d=(typeof p=="string"?p:"").trim().replace(" ",",").split(",").filter(Boolean);for(const x of d)x[0]==="-"?a.skips.push(x.slice(1)):a.names.push(x)}function i(p,d){let x=0,h=0,y=-1,b=0;for(;x<p.length;)if(h<d.length&&(d[h]===p[x]||d[h]==="*"))d[h]==="*"?(y=h,b=x,h++):(x++,h++);else if(y!==-1)h=y+1,b++,x=b;else return!1;for(;h<d.length&&d[h]==="*";)h++;return h===d.length}function o(){const p=[...a.names,...a.skips.map(d=>"-"+d)].join(",");return a.enable(""),p}function c(p){for(const d of a.skips)if(i(p,d))return!1;for(const d of a.names)if(i(p,d))return!0;return!1}function l(p){return p instanceof Error?p.stack||p.message:p}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a.enable(a.load()),a}return ru=e,ru}var Ud;function Tg(){return Ud||(Ud=1,function(e,t){t.formatArgs=a,t.save=n,t.load=s,t.useColors=r,t.storage=i(),t.destroy=(()=>{let c=!1;return()=>{c||(c=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let c;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(c=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(c[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function a(c){if(c[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+c[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const l="color: "+this.color;c.splice(1,0,l,"color: inherit");let u=0,p=0;c[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(u++,d==="%c"&&(p=u))}),c.splice(p,0,l)}t.log=console.debug||console.log||(()=>{});function n(c){try{c?t.storage.setItem("debug",c):t.storage.removeItem("debug")}catch{}}function s(){let c;try{c=t.storage.getItem("debug")}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}function i(){try{return localStorage}catch{}}e.exports=_d()(t);const{formatters:o}=e.exports;o.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}}}(Fc,Fc.exports)),Fc.exports}var Vc={exports:{}},nu,Nd;function Sg(){return Nd||(Nd=1,nu=(e,t=process.argv)=>{const r=e.startsWith("-")?"":e.length===1?"-":"--",a=t.indexOf(r+e),n=t.indexOf("--");return a!==-1&&(n===-1||a<n)}),nu}var iu,Ld;function wg(){if(Ld)return iu;Ld=1;const e=ih,t=xp,r=Sg(),{env:a}=process;let n;r("no-color")||r("no-colors")||r("color=false")||r("color=never")?n=0:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(n=1),"FORCE_COLOR"in a&&(a.FORCE_COLOR==="true"?n=1:a.FORCE_COLOR==="false"?n=0:n=a.FORCE_COLOR.length===0?1:Math.min(parseInt(a.FORCE_COLOR,10),3));function s(c){return c===0?!1:{level:c,hasBasic:!0,has256:c>=2,has16m:c>=3}}function i(c,l){if(n===0)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(c&&!l&&n===void 0)return 0;const u=n||0;if(a.TERM==="dumb")return u;if(process.platform==="win32"){const p=e.release().split(".");return Number(p[0])>=10&&Number(p[2])>=10586?Number(p[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(p=>p in a)||a.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if(a.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in a){const p=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return p>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:u}function o(c){const l=i(c,c&&c.isTTY);return s(l)}return iu={supportsColor:o,stdout:s(i(!0,t.isatty(1))),stderr:s(i(!0,t.isatty(2)))},iu}var Pd;function Ag(){return Pd||(Pd=1,function(e,t){const r=xp,a=Pa;t.init=u,t.log=o,t.formatArgs=s,t.save=c,t.load=l,t.useColors=n,t.destroy=a.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const d=wg();d&&(d.stderr||d).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(d=>/^debug_/i.test(d)).reduce((d,x)=>{const h=x.substring(6).toLowerCase().replace(/_([a-z])/g,(b,C)=>C.toUpperCase());let y=process.env[x];return/^(yes|on|true|enabled)$/i.test(y)?y=!0:/^(no|off|false|disabled)$/i.test(y)?y=!1:y==="null"?y=null:y=Number(y),d[h]=y,d},{});function n(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:r.isatty(process.stderr.fd)}function s(d){const{namespace:x,useColors:h}=this;if(h){const y=this.color,b="\x1B[3"+(y<8?y:"8;5;"+y),C=` ${b};1m${x} \x1B[0m`;d[0]=C+d[0].split(`
15
+ `).join(`
16
+ `+C),d.push(b+"m+"+e.exports.humanize(this.diff)+"\x1B[0m")}else d[0]=i()+x+" "+d[0]}function i(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function o(...d){return process.stderr.write(a.formatWithOptions(t.inspectOpts,...d)+`
17
+ `)}function c(d){d?process.env.DEBUG=d:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(d){d.inspectOpts={};const x=Object.keys(t.inspectOpts);for(let h=0;h<x.length;h++)d.inspectOpts[x[h]]=t.inspectOpts[x[h]]}e.exports=_d()(t);const{formatters:p}=e.exports;p.o=function(d){return this.inspectOpts.colors=this.useColors,a.inspect(d,this.inspectOpts).split(`
18
+ `).map(x=>x.trim()).join(" ")},p.O=function(d){return this.inspectOpts.colors=this.useColors,a.inspect(d,this.inspectOpts)}}(Vc,Vc.exports)),Vc.exports}var Od;function Ig(){return Od||(Od=1,typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Dc.exports=Tg():Dc.exports=Ag()),Dc.exports}var fr,Bg=function(){if(!fr){try{fr=Ig()("follow-redirects")}catch{}typeof fr!="function"&&(fr=function(){})}fr.apply(null,arguments)},hr=Tc,mr=hr.URL,kg=bl,Rg=El,su=Ut.Writable,ou=nh,Dd=Bg;(function(){var t=typeof process<"u",r=typeof window<"u"&&typeof document<"u",a=Ea(Error.captureStackTrace);!t&&(r||!a)&&console.warn("The follow-redirects package should be excluded from browser builds.")})();var cu=!1;try{ou(new mr(""))}catch(e){cu=e.code==="ERR_INVALID_URL"}var _g=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],lu=["abort","aborted","connect","error","socket","timeout"],uu=Object.create(null);lu.forEach(function(e){uu[e]=function(t,r,a){this._redirectable.emit(e,t,r,a)}});var pu=vr("ERR_INVALID_URL","Invalid URL",TypeError),du=vr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Ug=vr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",du),Ng=vr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Lg=vr("ERR_STREAM_WRITE_AFTER_END","write after end"),Pg=su.prototype.destroy||Vd;function wt(e,t){su.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var r=this;this._onNativeResponse=function(a){try{r._processResponse(a)}catch(n){r.emit("error",n instanceof du?n:new du({cause:n}))}},this._performRequest()}wt.prototype=Object.create(su.prototype),wt.prototype.abort=function(){vu(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},wt.prototype.destroy=function(e){return vu(this._currentRequest,e),Pg.call(this,e),this},wt.prototype.write=function(e,t,r){if(this._ending)throw new Lg;if(!ba(e)&&!Fg(e))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Ea(t)&&(r=t,t=null),e.length===0){r&&r();return}this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,r)):(this.emit("error",new Ng),this.abort())},wt.prototype.end=function(e,t,r){if(Ea(e)?(r=e,e=t=null):Ea(t)&&(r=t,t=null),!e)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var a=this,n=this._currentRequest;this.write(e,t,function(){a._ended=!0,n.end(null,null,r)}),this._ending=!0}},wt.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},wt.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},wt.prototype.setTimeout=function(e,t){var r=this;function a(i){i.setTimeout(e),i.removeListener("timeout",i.destroy),i.addListener("timeout",i.destroy)}function n(i){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},e),a(i)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),r.removeListener("close",s),t&&r.removeListener("timeout",t),r.socket||r._currentRequest.removeListener("socket",n)}return t&&this.on("timeout",t),this.socket?n(this.socket):this._currentRequest.once("socket",n),this.on("socket",a),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){wt.prototype[e]=function(t,r){return this._currentRequest[e](t,r)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(wt.prototype,e,{get:function(){return this._currentRequest[e]}})}),wt.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},wt.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var r=e.slice(0,-1);this._options.agent=this._options.agents[r]}var a=this._currentRequest=t.request(this._options,this._onNativeResponse);a._redirectable=this;for(var n of lu)a.on(n,uu[n]);if(this._currentUrl=/^\//.test(this._options.path)?hr.format(this._options):this._options.path,this._isRedirect){var s=0,i=this,o=this._requestBodyBuffers;(function c(l){if(a===i._currentRequest)if(l)i.emit("error",l);else if(s<o.length){var u=o[s++];a.finished||a.write(u.data,u.encoding,c)}else i._ended&&a.end()})()}},wt.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var r=e.headers.location;if(!r||this._options.followRedirects===!1||t<300||t>=400){e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[];return}if(vu(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Ug;var a,n=this._options.beforeRedirect;n&&(a=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((t===301||t===302)&&this._options.method==="POST"||t===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],mu(/^content-/i,this._options.headers));var i=mu(/^host$/i,this._options.headers),o=fu(this._currentUrl),c=i||o.host,l=/^\w+:/.test(r)?this._currentUrl:hr.format(Object.assign(o,{host:c})),u=Og(r,l);if(Dd("redirecting to",u.href),this._isRedirect=!0,hu(u,this._options),(u.protocol!==o.protocol&&u.protocol!=="https:"||u.host!==c&&!Dg(u.host,c))&&mu(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Ea(n)){var p={headers:e.headers,statusCode:t},d={url:l,method:s,headers:a};n(this._options,p,d),this._sanitizeOptions(this._options)}this._performRequest()};function Fd(e){var t={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(e).forEach(function(a){var n=a+":",s=r[n]=e[a],i=t[a]=Object.create(s);function o(l,u,p){return Vg(l)?l=hu(l):ba(l)?l=hu(fu(l)):(p=u,u=Md(l),l={protocol:n}),Ea(u)&&(p=u,u=null),u=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},l,u),u.nativeProtocols=r,!ba(u.host)&&!ba(u.hostname)&&(u.hostname="::1"),ou.equal(u.protocol,n,"protocol mismatch"),Dd("options",u),new wt(u,p)}function c(l,u,p){var d=i.request(l,u,p);return d.end(),d}Object.defineProperties(i,{request:{value:o,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),t}function Vd(){}function fu(e){var t;if(cu)t=new mr(e);else if(t=Md(hr.parse(e)),!ba(t.protocol))throw new pu({input:e});return t}function Og(e,t){return cu?new mr(e,t):fu(hr.resolve(t,e))}function Md(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new pu({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new pu({input:e.href||e});return e}function hu(e,t){var r=t||{};for(var a of _g)r[a]=e[a];return r.hostname.startsWith("[")&&(r.hostname=r.hostname.slice(1,-1)),r.port!==""&&(r.port=Number(r.port)),r.path=r.search?r.pathname+r.search:r.pathname,r}function mu(e,t){var r;for(var a in t)e.test(a)&&(r=t[a],delete t[a]);return r===null||typeof r>"u"?void 0:String(r).trim()}function vr(e,t,r){function a(n){Ea(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a.prototype=new(r||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function vu(e,t){for(var r of lu)e.removeListener(r,uu[r]);e.on("error",Vd),e.destroy(t)}function Dg(e,t){ou(ba(e)&&ba(t));var r=e.length-t.length-1;return r>0&&e[r]==="."&&e.endsWith(t)}function ba(e){return typeof e=="string"||e instanceof String}function Ea(e){return typeof e=="function"}function Fg(e){return typeof e=="object"&&"length"in e}function Vg(e){return mr&&e instanceof mr}tu.exports=Fd({http:kg,https:Rg}),tu.exports.wrap=Fd;var Mg=tu.exports,qg=Rp(Mg);const Mc="1.12.2";function qd(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const jg=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Kg(e,t,r){const a=r&&r.Blob||$e.classes.Blob,n=qd(e);if(t===void 0&&a&&(t=!0),n==="data"){e=n.length?e.slice(n.length+1):e;const s=jg.exec(e);if(!s)throw new K("Invalid URL",K.ERR_INVALID_URL);const i=s[1],o=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),o?"base64":"utf8");if(t){if(!a)throw new K("Blob is not supported",K.ERR_NOT_SUPPORT);return new a([l],{type:i})}return l}throw new K("Unsupported protocol "+n,K.ERR_NOT_SUPPORT)}const gu=Symbol("internals");class jd extends Ut.Transform{constructor(t){t=A.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(a,n)=>!A.isUndefined(n[a])),super({readableHighWaterMark:t.chunkSize});const r=this[gu]={timeWindow:t.timeWindow,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",a=>{a==="progress"&&(r.isCaptured||(r.isCaptured=!0))})}_read(t){const r=this[gu];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,a){const n=this[gu],s=n.maxRate,i=this.readableHighWaterMark,o=n.timeWindow,c=1e3/o,l=s/c,u=n.minChunkSize!==!1?Math.max(n.minChunkSize,l*.01):0,p=(x,h)=>{const y=Buffer.byteLength(x);n.bytesSeen+=y,n.bytes+=y,n.isCaptured&&this.emit("progress",n.bytesSeen),this.push(x)?process.nextTick(h):n.onReadCallback=()=>{n.onReadCallback=null,process.nextTick(h)}},d=(x,h)=>{const y=Buffer.byteLength(x);let b=null,C=i,I,B=0;if(s){const U=Date.now();(!n.ts||(B=U-n.ts)>=o)&&(n.ts=U,I=l-n.bytes,n.bytes=I<0?-I:0,B=0),I=l-n.bytes}if(s){if(I<=0)return setTimeout(()=>{h(null,x)},o-B);I<C&&(C=I)}C&&y>C&&y-C>u&&(b=x.subarray(C),x=x.subarray(0,C)),p(x,b?()=>{process.nextTick(h,null,b)}:h)};d(t,function x(h,y){if(h)return a(h);y?d(y,x):a(null)})}}const{asyncIterator:Kd}=Symbol,zd=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Kd]?yield*e[Kd]():yield e},zg=$e.ALPHABET.ALPHA_DIGIT+"-_",gr=typeof TextEncoder=="function"?new TextEncoder:new Pa.TextEncoder,Ca=`\r
19
+ `,Hg=gr.encode(Ca),$g=2;class Gg{constructor(t,r){const{escapeName:a}=this.constructor,n=A.isString(r);let s=`Content-Disposition: form-data; name="${a(t)}"${!n&&r.name?`; filename="${a(r.name)}"`:""}${Ca}`;n?r=gr.encode(String(r).replace(/\r?\n|\r\n?/g,Ca)):s+=`Content-Type: ${r.type||"application/octet-stream"}${Ca}`,this.headers=gr.encode(s+Ca),this.contentLength=n?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+$g,this.name=t,this.value=r}async*encode(){yield this.headers;const{value:t}=this;A.isTypedArray(t)?yield t:yield*zd(t),yield Hg}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}}const Wg=(e,t,r)=>{const{tag:a="form-data-boundary",size:n=25,boundary:s=a+"-"+$e.generateString(n,zg)}=r||{};if(!A.isFormData(e))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");const i=gr.encode("--"+s+Ca),o=gr.encode("--"+s+"--"+Ca);let c=o.byteLength;const l=Array.from(e.entries()).map(([p,d])=>{const x=new Gg(p,d);return c+=x.size,x});c+=i.byteLength*l.length,c=A.toFiniteNumber(c);const u={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),th.from(async function*(){for(const p of l)yield i,yield*p.encode();yield o}())};class Xg extends Ut.Transform{__transform(t,r,a){this.push(t),a()}_transform(t,r,a){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){const n=Buffer.alloc(2);n[0]=120,n[1]=156,this.push(n,r)}this.__transform(t,r,a)}}const Qg=(e,t)=>A.isAsyncFn(e)?function(...r){const a=r.pop();e.apply(this,r).then(n=>{try{t?a(null,...t(n)):a(null,n)}catch(s){a(s)}},a)}:e;function Yg(e,t){e=e||10;const r=new Array(e),a=new Array(e);let n=0,s=0,i;return t=t!==void 0?t:1e3,function(c){const l=Date.now(),u=a[s];i||(i=l),r[n]=c,a[n]=l;let p=s,d=0;for(;p!==n;)d+=r[p++],p=p%e;if(n=(n+1)%e,n===s&&(s=(s+1)%e),l-i<t)return;const x=u&&l-u;return x?Math.round(d*1e3/x):void 0}}function Jg(e,t){let r=0,a=1e3/t,n,s;const i=(l,u=Date.now())=>{r=u,n=null,s&&(clearTimeout(s),s=null),e(...l)};return[(...l)=>{const u=Date.now(),p=u-r;p>=a?i(l,u):(n=l,s||(s=setTimeout(()=>{s=null,i(n)},a-p)))},()=>n&&i(n)]}const za=(e,t,r=3)=>{let a=0;const n=Yg(50,250);return Jg(s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,c=i-a,l=n(c),u=i<=o;a=i;const p={loaded:i,total:o,progress:o?i/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:s,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(p)},r)},qc=(e,t)=>{const r=e!=null;return[a=>t[0]({lengthComputable:r,total:e,loaded:a}),t[1]]},jc=e=>(...t)=>A.asap(()=>e(...t));function Zg(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const r=e.slice(5,t),a=e.slice(t+1);if(/;base64/i.test(r)){let s=a.length;const i=a.length;for(let d=0;d<i;d++)if(a.charCodeAt(d)===37&&d+2<i){const x=a.charCodeAt(d+1),h=a.charCodeAt(d+2);(x>=48&&x<=57||x>=65&&x<=70||x>=97&&x<=102)&&(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(s-=2,d+=2)}let o=0,c=i-1;const l=d=>d>=2&&a.charCodeAt(d-2)===37&&a.charCodeAt(d-1)===51&&(a.charCodeAt(d)===68||a.charCodeAt(d)===100);c>=0&&(a.charCodeAt(c)===61?(o++,c--):l(c)&&(o++,c-=3)),o===1&&c>=0&&(a.charCodeAt(c)===61||l(c))&&o++;const p=Math.floor(s/4)*3-(o||0);return p>0?p:0}return Buffer.byteLength(a,"utf8")}const Hd={flush:ra.constants.Z_SYNC_FLUSH,finishFlush:ra.constants.Z_SYNC_FLUSH},ex={flush:ra.constants.BROTLI_OPERATION_FLUSH,finishFlush:ra.constants.BROTLI_OPERATION_FLUSH},$d=A.isFunction(ra.createBrotliDecompress),{http:tx,https:ax}=qg,rx=/https:?/,Gd=$e.protocols.map(e=>e+":"),Wd=(e,[t,r])=>(e.on("end",r).on("error",r),t);function nx(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Xd(e,t,r){let a=t;if(!a&&a!==!1){const n=Bd.getProxyForUrl(r);n&&(a=new URL(n))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const s=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+s}e.headers.host=e.hostname+(e.port?":"+e.port:"");const n=a.hostname||a.host;e.hostname=n,e.host=n,e.port=a.port,e.path=r,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(s){Xd(s,t,s.href)}}const ix=typeof process<"u"&&A.kindOf(process)==="process",sx=e=>new Promise((t,r)=>{let a,n;const s=(c,l)=>{n||(n=!0,a&&a(c,l))},i=c=>{s(c),t(c)},o=c=>{s(c,!0),r(c)};e(i,o,c=>a=c).catch(o)}),ox=({address:e,family:t})=>{if(!A.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},Qd=(e,t)=>ox(A.isObject(e)?e:{address:e,family:t});var cx=ix&&function(t){return sx(async function(a,n,s){let{data:i,lookup:o,family:c}=t;const{responseType:l,responseEncoding:u}=t,p=t.method.toUpperCase();let d,x=!1,h;if(o){const O=Qg(o,$=>A.isArray($)?$:[$]);o=($,Le,Ue)=>{O($,Le,(Z,Ce,Me)=>{if(Z)return Ue(Z);const ke=A.isArray(Ce)?Ce.map(Re=>Qd(Re)):[Qd(Ce,Me)];Le.all?Ue(Z,ke):Ue(Z,ke[0].address,ke[0].family)})}}const y=new sh,b=()=>{t.cancelToken&&t.cancelToken.unsubscribe(C),t.signal&&t.signal.removeEventListener("abort",C),y.removeAllListeners()};s((O,$)=>{d=!0,$&&(x=!0,b())});function C(O){y.emit("abort",!O||O.type?new ia(null,t,h):O)}y.once("abort",n),(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(C),t.signal&&(t.signal.aborted?C():t.signal.addEventListener("abort",C)));const I=eu(t.baseURL,t.url,t.allowAbsoluteUrls),B=new URL(I,$e.hasBrowserEnv?$e.origin:void 0),U=B.protocol||Gd[0];if(U==="data:"){if(t.maxContentLength>-1){const $=String(t.url||I||"");if(Zg($)>t.maxContentLength)return n(new K("maxContentLength size of "+t.maxContentLength+" exceeded",K.ERR_BAD_RESPONSE,t))}let O;if(p!=="GET")return ja(a,n,{status:405,statusText:"method not allowed",headers:{},config:t});try{O=Kg(t.url,l==="blob",{Blob:t.env&&t.env.Blob})}catch($){throw K.from($,K.ERR_BAD_REQUEST,t)}return l==="text"?(O=O.toString(u),(!u||u==="utf8")&&(O=A.stripBOM(O))):l==="stream"&&(O=Ut.Readable.from(O)),ja(a,n,{data:O,status:200,statusText:"OK",headers:new rt,config:t})}if(Gd.indexOf(U)===-1)return n(new K("Unsupported protocol "+U,K.ERR_BAD_REQUEST,t));const _=rt.from(t.headers).normalize();_.set("User-Agent","axios/"+Mc,!1);const{onUploadProgress:N,onDownloadProgress:j}=t,H=t.maxRate;let te,se;if(A.isSpecCompliantForm(i)){const O=_.getContentType(/boundary=([-_\w\d]{10,70})/i);i=Wg(i,$=>{_.set($)},{tag:`axios-${Mc}-boundary`,boundary:O&&O[1]||void 0})}else if(A.isFormData(i)&&A.isFunction(i.getHeaders)){if(_.set(i.getHeaders()),!_.hasContentLength())try{const O=await Pa.promisify(i.getLength).call(i);Number.isFinite(O)&&O>=0&&_.setContentLength(O)}catch{}}else if(A.isBlob(i)||A.isFile(i))i.size&&_.setContentType(i.type||"application/octet-stream"),_.setContentLength(i.size||0),i=Ut.Readable.from(zd(i));else if(i&&!A.isStream(i)){if(!Buffer.isBuffer(i))if(A.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else if(A.isString(i))i=Buffer.from(i,"utf-8");else return n(new K("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",K.ERR_BAD_REQUEST,t));if(_.setContentLength(i.length,!1),t.maxBodyLength>-1&&i.length>t.maxBodyLength)return n(new K("Request body larger than maxBodyLength limit",K.ERR_BAD_REQUEST,t))}const Be=A.toFiniteNumber(_.getContentLength());A.isArray(H)?(te=H[0],se=H[1]):te=se=H,i&&(N||te)&&(A.isStream(i)||(i=Ut.Readable.from(i,{objectMode:!1})),i=Ut.pipeline([i,new jd({maxRate:A.toFiniteNumber(te)})],A.noop),N&&i.on("progress",Wd(i,qc(Be,za(jc(N),!1,3)))));let Te;if(t.auth){const O=t.auth.username||"",$=t.auth.password||"";Te=O+":"+$}if(!Te&&B.username){const O=B.username,$=B.password;Te=O+":"+$}Te&&_.delete("authorization");let ze;try{ze=Gl(B.pathname+B.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch(O){const $=new Error(O.message);return $.config=t,$.url=t.url,$.exists=!0,n($)}_.set("Accept-Encoding","gzip, compress, deflate"+($d?", br":""),!1);const ye={path:ze,method:p,headers:_.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:Te,protocol:U,family:c,beforeRedirect:nx,beforeRedirects:{}};!A.isUndefined(o)&&(ye.lookup=o),t.socketPath?ye.socketPath=t.socketPath:(ye.hostname=B.hostname.startsWith("[")?B.hostname.slice(1,-1):B.hostname,ye.port=B.port,Xd(ye,t.proxy,U+"//"+B.hostname+(B.port?":"+B.port:"")+ye.path));let be;const Ee=rx.test(ye.protocol);if(ye.agent=Ee?t.httpsAgent:t.httpAgent,t.transport?be=t.transport:t.maxRedirects===0?be=Ee?El:bl:(t.maxRedirects&&(ye.maxRedirects=t.maxRedirects),t.beforeRedirect&&(ye.beforeRedirects.config=t.beforeRedirect),be=Ee?ax:tx),t.maxBodyLength>-1?ye.maxBodyLength=t.maxBodyLength:ye.maxBodyLength=1/0,t.insecureHTTPParser&&(ye.insecureHTTPParser=t.insecureHTTPParser),h=be.request(ye,function($){if(h.destroyed)return;const Le=[$],Ue=+$.headers["content-length"];if(j||se){const Re=new jd({maxRate:A.toFiniteNumber(se)});j&&Re.on("progress",Wd(Re,qc(Ue,za(jc(j),!0,3)))),Le.push(Re)}let Z=$;const Ce=$.req||h;if(t.decompress!==!1&&$.headers["content-encoding"])switch((p==="HEAD"||$.statusCode===204)&&delete $.headers["content-encoding"],($.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":Le.push(ra.createUnzip(Hd)),delete $.headers["content-encoding"];break;case"deflate":Le.push(new Xg),Le.push(ra.createUnzip(Hd)),delete $.headers["content-encoding"];break;case"br":$d&&(Le.push(ra.createBrotliDecompress(ex)),delete $.headers["content-encoding"])}Z=Le.length>1?Ut.pipeline(Le,A.noop):Le[0];const Me=Ut.finished(Z,()=>{Me(),b()}),ke={status:$.statusCode,statusText:$.statusMessage,headers:new rt($.headers),config:t,request:Ce};if(l==="stream")ke.data=Z,ja(a,n,ke);else{const Re=[];let Ye=0;Z.on("data",function(_e){Re.push(_e),Ye+=_e.length,t.maxContentLength>-1&&Ye>t.maxContentLength&&(x=!0,Z.destroy(),n(new K("maxContentLength size of "+t.maxContentLength+" exceeded",K.ERR_BAD_RESPONSE,t,Ce)))}),Z.on("aborted",function(){if(x)return;const _e=new K("stream has been aborted",K.ERR_BAD_RESPONSE,t,Ce);Z.destroy(_e),n(_e)}),Z.on("error",function(_e){h.destroyed||n(K.from(_e,null,t,Ce))}),Z.on("end",function(){try{let _e=Re.length===1?Re[0]:Buffer.concat(Re);l!=="arraybuffer"&&(_e=_e.toString(u),(!u||u==="utf8")&&(_e=A.stripBOM(_e))),ke.data=_e}catch(_e){return n(K.from(_e,null,t,ke.request,ke))}ja(a,n,ke)})}y.once("abort",Re=>{Z.destroyed||(Z.emit("error",Re),Z.destroy())})}),y.once("abort",O=>{n(O),h.destroy(O)}),h.on("error",function($){n(K.from($,null,t,h))}),h.on("socket",function($){$.setKeepAlive(!0,1e3*60)}),t.timeout){const O=parseInt(t.timeout,10);if(Number.isNaN(O)){n(new K("error trying to parse `config.timeout` to int",K.ERR_BAD_OPTION_VALUE,t,h));return}h.setTimeout(O,function(){if(d)return;let Le=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const Ue=t.transitional||Wl;t.timeoutErrorMessage&&(Le=t.timeoutErrorMessage),n(new K(Le,Ue.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,t,h)),C()})}if(A.isStream(i)){let O=!1,$=!1;i.on("end",()=>{O=!0}),i.once("error",Le=>{$=!0,h.destroy(Le)}),i.on("close",()=>{!O&&!$&&C(new ia("Request stream has been aborted",t,h))}),i.pipe(h)}else h.end(i)})},lx=$e.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,$e.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL($e.origin),$e.navigator&&/(msie|trident)/i.test($e.navigator.userAgent)):()=>!0,ux=$e.hasStandardBrowserEnv?{write(e,t,r,a,n,s){const i=[e+"="+encodeURIComponent(t)];A.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),A.isString(a)&&i.push("path="+a),A.isString(n)&&i.push("domain="+n),s===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};const Yd=e=>e instanceof rt?{...e}:e;function Ta(e,t){t=t||{};const r={};function a(l,u,p,d){return A.isPlainObject(l)&&A.isPlainObject(u)?A.merge.call({caseless:d},l,u):A.isPlainObject(u)?A.merge({},u):A.isArray(u)?u.slice():u}function n(l,u,p,d){if(A.isUndefined(u)){if(!A.isUndefined(l))return a(void 0,l,p,d)}else return a(l,u,p,d)}function s(l,u){if(!A.isUndefined(u))return a(void 0,u)}function i(l,u){if(A.isUndefined(u)){if(!A.isUndefined(l))return a(void 0,l)}else return a(void 0,u)}function o(l,u,p){if(p in t)return a(l,u);if(p in e)return a(void 0,l)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:o,headers:(l,u,p)=>n(Yd(l),Yd(u),p,!0)};return A.forEach(Object.keys({...e,...t}),function(u){const p=c[u]||n,d=p(e[u],t[u],u);A.isUndefined(d)&&p!==o||(r[u]=d)}),r}var Jd=e=>{const t=Ta({},e);let{data:r,withXSRFToken:a,xsrfHeaderName:n,xsrfCookieName:s,headers:i,auth:o}=t;if(t.headers=i=rt.from(i),t.url=Gl(eu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),o&&i.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):""))),A.isFormData(r)){if($e.hasStandardBrowserEnv||$e.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(A.isFunction(r.getHeaders)){const c=r.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([u,p])=>{l.includes(u.toLowerCase())&&i.set(u,p)})}}if($e.hasStandardBrowserEnv&&(a&&A.isFunction(a)&&(a=a(t)),a||a!==!1&&lx(t.url))){const c=n&&s&&ux.read(s);c&&i.set(n,c)}return t};const px=typeof XMLHttpRequest<"u";var dx=px&&function(e){return new Promise(function(r,a){const n=Jd(e);let s=n.data;const i=rt.from(n.headers).normalize();let{responseType:o,onUploadProgress:c,onDownloadProgress:l}=n,u,p,d,x,h;function y(){x&&x(),h&&h(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(n.method.toUpperCase(),n.url,!0),b.timeout=n.timeout;function C(){if(!b)return;const B=rt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),_={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:B,config:e,request:b};ja(function(j){r(j),y()},function(j){a(j),y()},_),b=null}"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(C)},b.onabort=function(){b&&(a(new K("Request aborted",K.ECONNABORTED,e,b)),b=null)},b.onerror=function(U){const _=U&&U.message?U.message:"Network Error",N=new K(_,K.ERR_NETWORK,e,b);N.event=U||null,a(N),b=null},b.ontimeout=function(){let U=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const _=n.transitional||Wl;n.timeoutErrorMessage&&(U=n.timeoutErrorMessage),a(new K(U,_.clarifyTimeoutError?K.ETIMEDOUT:K.ECONNABORTED,e,b)),b=null},s===void 0&&i.setContentType(null),"setRequestHeader"in b&&A.forEach(i.toJSON(),function(U,_){b.setRequestHeader(_,U)}),A.isUndefined(n.withCredentials)||(b.withCredentials=!!n.withCredentials),o&&o!=="json"&&(b.responseType=n.responseType),l&&([d,h]=za(l,!0),b.addEventListener("progress",d)),c&&b.upload&&([p,x]=za(c),b.upload.addEventListener("progress",p),b.upload.addEventListener("loadend",x)),(n.cancelToken||n.signal)&&(u=B=>{b&&(a(!B||B.type?new ia(null,e,b):B),b.abort(),b=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const I=qd(n.url);if(I&&$e.protocols.indexOf(I)===-1){a(new K("Unsupported protocol "+I+":",K.ERR_BAD_REQUEST,e));return}b.send(s||null)})};const fx=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let a=new AbortController,n;const s=function(l){if(!n){n=!0,o();const u=l instanceof Error?l:this.reason;a.abort(u instanceof K?u:new ia(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,s(new K(`timeout ${t} of ms exceeded`,K.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),e=null)};e.forEach(l=>l.addEventListener("abort",s));const{signal:c}=a;return c.unsubscribe=()=>A.asap(o),c}},hx=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let a=0,n;for(;a<r;)n=a+t,yield e.slice(a,n),a=n},mx=async function*(e,t){for await(const r of vx(e))yield*hx(r,t)},vx=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:a}=await t.read();if(r)break;yield a}}finally{await t.cancel()}},Zd=(e,t,r,a)=>{const n=mx(e,t);let s=0,i,o=c=>{i||(i=!0,a&&a(c))};return new ReadableStream({async pull(c){try{const{done:l,value:u}=await n.next();if(l){o(),c.close();return}let p=u.byteLength;if(r){let d=s+=p;r(d)}c.enqueue(new Uint8Array(u))}catch(l){throw o(l),l}},cancel(c){return o(c),n.return()}},{highWaterMark:2})},ef=64*1024,{isFunction:Kc}=A,gx=(({Request:e,Response:t})=>({Request:e,Response:t}))(A.global),{ReadableStream:tf,TextEncoder:af}=A.global,rf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},xx=e=>{e=A.merge.call({skipUndefined:!0},gx,e);const{fetch:t,Request:r,Response:a}=e,n=t?Kc(t):typeof fetch=="function",s=Kc(r),i=Kc(a);if(!n)return!1;const o=n&&Kc(tf),c=n&&(typeof af=="function"?(h=>y=>h.encode(y))(new af):async h=>new Uint8Array(await new r(h).arrayBuffer())),l=s&&o&&rf(()=>{let h=!1;const y=new r($e.origin,{body:new tf,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!y}),u=i&&o&&rf(()=>A.isReadableStream(new a("").body)),p={stream:u&&(h=>h.body)};n&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!p[h]&&(p[h]=(y,b)=>{let C=y&&y[h];if(C)return C.call(y);throw new K(`Response type '${h}' is not supported`,K.ERR_NOT_SUPPORT,b)})});const d=async h=>{if(h==null)return 0;if(A.isBlob(h))return h.size;if(A.isSpecCompliantForm(h))return(await new r($e.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(A.isArrayBufferView(h)||A.isArrayBuffer(h))return h.byteLength;if(A.isURLSearchParams(h)&&(h=h+""),A.isString(h))return(await c(h)).byteLength},x=async(h,y)=>{const b=A.toFiniteNumber(h.getContentLength());return b??d(y)};return async h=>{let{url:y,method:b,data:C,signal:I,cancelToken:B,timeout:U,onDownloadProgress:_,onUploadProgress:N,responseType:j,headers:H,withCredentials:te="same-origin",fetchOptions:se}=Jd(h),Be=t||fetch;j=j?(j+"").toLowerCase():"text";let Te=fx([I,B&&B.toAbortSignal()],U),ze=null;const ye=Te&&Te.unsubscribe&&(()=>{Te.unsubscribe()});let be;try{if(N&&l&&b!=="get"&&b!=="head"&&(be=await x(H,C))!==0){let Z=new r(y,{method:"POST",body:C,duplex:"half"}),Ce;if(A.isFormData(C)&&(Ce=Z.headers.get("content-type"))&&H.setContentType(Ce),Z.body){const[Me,ke]=qc(be,za(jc(N)));C=Zd(Z.body,ef,Me,ke)}}A.isString(te)||(te=te?"include":"omit");const Ee=s&&"credentials"in r.prototype,O={...se,signal:Te,method:b.toUpperCase(),headers:H.normalize().toJSON(),body:C,duplex:"half",credentials:Ee?te:void 0};ze=s&&new r(y,O);let $=await(s?Be(ze,se):Be(y,O));const Le=u&&(j==="stream"||j==="response");if(u&&(_||Le&&ye)){const Z={};["status","statusText","headers"].forEach(Re=>{Z[Re]=$[Re]});const Ce=A.toFiniteNumber($.headers.get("content-length")),[Me,ke]=_&&qc(Ce,za(jc(_),!0))||[];$=new a(Zd($.body,ef,Me,()=>{ke&&ke(),ye&&ye()}),Z)}j=j||"text";let Ue=await p[A.findKey(p,j)||"text"]($,h);return!Le&&ye&&ye(),await new Promise((Z,Ce)=>{ja(Z,Ce,{data:Ue,headers:rt.from($.headers),status:$.status,statusText:$.statusText,config:h,request:ze})})}catch(Ee){throw ye&&ye(),Ee&&Ee.name==="TypeError"&&/Load failed|fetch/i.test(Ee.message)?Object.assign(new K("Network Error",K.ERR_NETWORK,h,ze),{cause:Ee.cause||Ee}):K.from(Ee,Ee&&Ee.code,h,ze)}}},yx=new Map,nf=e=>{let t=e?e.env:{};const{fetch:r,Request:a,Response:n}=t,s=[a,n,r];let i=s.length,o=i,c,l,u=yx;for(;o--;)c=s[o],l=u.get(c),l===void 0&&u.set(c,l=o?new Map:xx(t)),u=l;return l};nf();const xu={http:cx,xhr:dx,fetch:{get:nf}};A.forEach(xu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sf=e=>`- ${e}`,bx=e=>A.isFunction(e)||e===null||e===!1;var of={getAdapter:(e,t)=>{e=A.isArray(e)?e:[e];const{length:r}=e;let a,n;const s={};for(let i=0;i<r;i++){a=e[i];let o;if(n=a,!bx(a)&&(n=xu[(o=String(a)).toLowerCase()],n===void 0))throw new K(`Unknown adapter '${o}'`);if(n&&(A.isFunction(n)||(n=n.get(t))))break;s[o||"#"+i]=n}if(!n){const i=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=r?i.length>1?`since :
20
+ `+i.map(sf).join(`
21
+ `):" "+sf(i[0]):"as no adapter specified";throw new K("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:xu};function yu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ia(null,e)}function cf(e){return yu(e),e.headers=rt.from(e.headers),e.data=Zl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),of.getAdapter(e.adapter||pr.adapter,e)(e).then(function(a){return yu(e),a.data=Zl.call(e,e.transformResponse,a),a.headers=rt.from(a.headers),a},function(a){return Id(a)||(yu(e),a&&a.response&&(a.response.data=Zl.call(e,e.transformResponse,a.response),a.response.headers=rt.from(a.response.headers))),Promise.reject(a)})}const zc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zc[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const lf={};zc.transitional=function(t,r,a){function n(s,i){return"[Axios v"+Mc+"] Transitional option '"+s+"'"+i+(a?". "+a:"")}return(s,i,o)=>{if(t===!1)throw new K(n(i," has been removed"+(r?" in "+r:"")),K.ERR_DEPRECATED);return r&&!lf[i]&&(lf[i]=!0,console.warn(n(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,i,o):!0}},zc.spelling=function(t){return(r,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function Ex(e,t,r){if(typeof e!="object")throw new K("options must be an object",K.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let n=a.length;for(;n-- >0;){const s=a[n],i=t[s];if(i){const o=e[s],c=o===void 0||i(o,s,e);if(c!==!0)throw new K("option "+s+" must be "+c,K.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new K("Unknown option "+s,K.ERR_BAD_OPTION)}}var Hc={assertOptions:Ex,validators:zc};const Kt=Hc.validators;let Sa=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Cd,response:new Cd}}async request(t,r){try{return await this._request(t,r)}catch(a){if(a instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;const s=n.stack?n.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
22
+ `+s):a.stack=s}catch{}}throw a}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Ta(this.defaults,r);const{transitional:a,paramsSerializer:n,headers:s}=r;a!==void 0&&Hc.assertOptions(a,{silentJSONParsing:Kt.transitional(Kt.boolean),forcedJSONParsing:Kt.transitional(Kt.boolean),clarifyTimeoutError:Kt.transitional(Kt.boolean)},!1),n!=null&&(A.isFunction(n)?r.paramsSerializer={serialize:n}:Hc.assertOptions(n,{encode:Kt.function,serialize:Kt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Hc.assertOptions(r,{baseUrl:Kt.spelling("baseURL"),withXsrfToken:Kt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=s&&A.merge(s.common,s[r.method]);s&&A.forEach(["delete","get","head","post","put","patch","common"],h=>{delete s[h]}),r.headers=rt.concat(i,s);const o=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(c=c&&y.synchronous,o.unshift(y.fulfilled,y.rejected))});const l=[];this.interceptors.response.forEach(function(y){l.push(y.fulfilled,y.rejected)});let u,p=0,d;if(!c){const h=[cf.bind(this),void 0];for(h.unshift(...o),h.push(...l),d=h.length,u=Promise.resolve(r);p<d;)u=u.then(h[p++],h[p++]);return u}d=o.length;let x=r;for(;p<d;){const h=o[p++],y=o[p++];try{x=h(x)}catch(b){y.call(this,b);break}}try{u=cf.call(this,x)}catch(h){return Promise.reject(h)}for(p=0,d=l.length;p<d;)u=u.then(l[p++],l[p++]);return u}getUri(t){t=Ta(this.defaults,t);const r=eu(t.baseURL,t.url,t.allowAbsoluteUrls);return Gl(r,t.params,t.paramsSerializer)}};A.forEach(["delete","get","head","options"],function(t){Sa.prototype[t]=function(r,a){return this.request(Ta(a||{},{method:t,url:r,data:(a||{}).data}))}}),A.forEach(["post","put","patch"],function(t){function r(a){return function(s,i,o){return this.request(Ta(o||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Sa.prototype[t]=r(),Sa.prototype[t+"Form"]=r(!0)});let Cx=class eh{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const a=this;this.promise.then(n=>{if(!a._listeners)return;let s=a._listeners.length;for(;s-- >0;)a._listeners[s](n);a._listeners=null}),this.promise.then=n=>{let s;const i=new Promise(o=>{a.subscribe(o),s=o}).then(n);return i.cancel=function(){a.unsubscribe(s)},i},t(function(s,i,o){a.reason||(a.reason=new ia(s,i,o),r(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=a=>{t.abort(a)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new eh(function(n){t=n}),cancel:t}}};function Tx(e){return function(r){return e.apply(null,r)}}function Sx(e){return A.isObject(e)&&e.isAxiosError===!0}const bu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bu).forEach(([e,t])=>{bu[t]=e});function uf(e){const t=new Sa(e),r=yp(Sa.prototype.request,t);return A.extend(r,Sa.prototype,t,{allOwnKeys:!0}),A.extend(r,t,null,{allOwnKeys:!0}),r.create=function(n){return uf(Ta(e,n))},r}const Xe=uf(pr);Xe.Axios=Sa,Xe.CanceledError=ia,Xe.CancelToken=Cx,Xe.isCancel=Id,Xe.VERSION=Mc,Xe.toFormData=Pc,Xe.AxiosError=K,Xe.Cancel=Xe.CanceledError,Xe.all=function(t){return Promise.all(t)},Xe.spread=Tx,Xe.isAxiosError=Sx,Xe.mergeConfig=Ta,Xe.AxiosHeaders=rt,Xe.formToJSON=e=>wd(A.isHTMLForm(e)?new FormData(e):e),Xe.getAdapter=of.getAdapter,Xe.HttpStatusCode=bu,Xe.default=Xe;var Q=Xe;const{Axios:T2,AxiosError:S2,CanceledError:w2,isCancel:A2,CancelToken:I2,VERSION:B2,all:k2,Cancel:R2,isAxiosError:ee,spread:_2,toFormData:U2,AxiosHeaders:N2,HttpStatusCode:L2,formToJSON:P2,getAdapter:O2,mergeConfig:D2}=Q,ht="https://api.circle.com".replace(/\/+$/,"");let wx=class extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}};const mt={},vt="https://example.com",zt=function(e,t,r){if(r==null)throw new wx(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},At=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function Eu(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(a=>Eu(e,a,r)):Object.keys(t).forEach(a=>Eu(e,t[a],`${r}${r!==""?".":""}${a}`)):e.has(r)?e.append(r,t):e.set(r,t))}const gt=function(e,...t){const r=new URLSearchParams(e.search);Eu(r,t),e.search=r.toString()},wa=function(e,t,r){const a=typeof e!="string";return(a&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(e!==void 0?e:{}):e||""},xt=function(e){return e.pathname+e.search+e.hash},yt=function(e,t,r,a){return(n=t,s=r)=>{const i={...e.options,url:(a?.basePath||n.defaults.baseURL||s)+e.url};return n.request(i)}},Ax=function(e){return{getEntityConfig:async(t={})=>{const r="/v1/w3s/config/entity",a=new URL(r,vt);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await At(i,e),gt(a,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:xt(a),options:s}},getPublicKey:async(t={})=>{const r="/v1/w3s/config/entity/publicKey",a=new URL(r,vt);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await At(i,e),gt(a,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:xt(a),options:s}}}},Ix=function(e){const t=Ax(e);return{async getEntityConfig(r){const a=await t.getEntityConfig(r),n=e?.serverIndex??0,s=mt["DeveloperAccountApi.getEntityConfig"]?.[n]?.url;return(i,o)=>yt(a,Q,ht,e)(i,s||o)},async getPublicKey(r){const a=await t.getPublicKey(r),n=e?.serverIndex??0,s=mt["DeveloperAccountApi.getPublicKey"]?.[n]?.url;return(i,o)=>yt(a,Q,ht,e)(i,s||o)}}},Bx=function(e,t,r){const a=Ix(e);return{getEntityConfig(n){return a.getEntityConfig(n).then(s=>s(r,t))},getPublicKey(n){return a.getPublicKey(n).then(s=>s(r,t))}}},kx=function(e){return{requestTestnetTokens:async(t,r,a={})=>{const n="/v1/faucet/drips",s=new URL(n,vt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await At(c,e),t!=null&&(c["X-Request-Id"]=String(t)),c["Content-Type"]="application/json",gt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=wa(r,o,e),{url:xt(s),options:o}}}},Rx=function(e){const t=kx(e);return{async requestTestnetTokens(r,a,n){const s=await t.requestTestnetTokens(r,a,n),i=e?.serverIndex??0,o=mt["FaucetApi.requestTestnetTokens"]?.[i]?.url;return(c,l)=>yt(s,Q,ht,e)(c,o||l)}}},_x=function(e,t,r){const a=Rx(e);return{requestTestnetTokens(n,s,i){return a.requestTestnetTokens(n,s,i).then(o=>o(r,t))}}},Ux=function(e){return{ping:async(t={})=>{const r="/ping",a=new URL(r,vt);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={};gt(a,{});let o=n&&n.headers?n.headers:{};return s.headers={...i,...o,...t.headers},{url:xt(a),options:s}}}},Nx=function(e){const t=Ux(e);return{async ping(r){const a=await t.ping(r),n=e?.serverIndex??0,s=mt["HealthApi.ping"]?.[n]?.url;return(i,o)=>yt(a,Q,ht,e)(i,s||o)}}},Lx=function(e,t,r){const a=Nx(e);return{ping(n){return a.ping(n).then(s=>s(r,t))}}},Px=function(e){return{createMonitoredTokens:async(t,r={})=>{zt("createMonitoredTokens","createMonitoredTokensRequest",t);const a="/v1/w3s/config/entity/monitoredTokens",n=new URL(a,vt);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...r},o={},c={};await At(o,e),o["Content-Type"]="application/json",gt(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=wa(t,i,e),{url:xt(n),options:i}},deleteMonitoredTokens:async(t,r={})=>{zt("deleteMonitoredTokens","deleteMonitoredTokensRequest",t);const a="/v1/w3s/config/entity/monitoredTokens/delete",n=new URL(a,vt);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...r},o={},c={};await At(o,e),o["Content-Type"]="application/json",gt(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=wa(t,i,e),{url:xt(n),options:i}},listMonitoredTokens:async(t,r,a,n,s,i,o,c,l={})=>{const u="/v1/w3s/config/entity/monitoredTokens",p=new URL(u,vt);let d;e&&(d=e.baseOptions);const x={method:"GET",...d,...l},h={},y={};await At(h,e),t!==void 0&&(y.blockchain=t),r!==void 0&&(y.tokenAddress=r),a!==void 0&&(y.symbol=a),n!==void 0&&(y.from=n instanceof Date?n.toISOString():n),s!==void 0&&(y.to=s instanceof Date?s.toISOString():s),i!==void 0&&(y.pageBefore=i),o!==void 0&&(y.pageAfter=o),c!==void 0&&(y.pageSize=c),gt(p,y);let b=d&&d.headers?d.headers:{};return x.headers={...h,...b,...l.headers},{url:xt(p),options:x}},updateMonitoredTokens:async(t,r={})=>{zt("updateMonitoredTokens","updateMonitoredTokensRequest",t);const a="/v1/w3s/config/entity/monitoredTokens",n=new URL(a,vt);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...r},o={},c={};await At(o,e),o["Content-Type"]="application/json",gt(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=wa(t,i,e),{url:xt(n),options:i}},updateMonitoredTokensScope:async(t,r={})=>{zt("updateMonitoredTokensScope","updateMonitoredTokensScopeRequest",t);const a="/v1/w3s/config/entity/monitoredTokens/scope",n=new URL(a,vt);let s;e&&(s=e.baseOptions);const i={method:"PUT",...s,...r},o={},c={};await At(o,e),o["Content-Type"]="application/json",gt(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=wa(t,i,e),{url:xt(n),options:i}}}},Ox=function(e){const t=Px(e);return{async createMonitoredTokens(r,a){const n=await t.createMonitoredTokens(r,a),s=e?.serverIndex??0,i=mt["MonitorTokensApi.createMonitoredTokens"]?.[s]?.url;return(o,c)=>yt(n,Q,ht,e)(o,i||c)},async deleteMonitoredTokens(r,a){const n=await t.deleteMonitoredTokens(r,a),s=e?.serverIndex??0,i=mt["MonitorTokensApi.deleteMonitoredTokens"]?.[s]?.url;return(o,c)=>yt(n,Q,ht,e)(o,i||c)},async listMonitoredTokens(r,a,n,s,i,o,c,l,u){const p=await t.listMonitoredTokens(r,a,n,s,i,o,c,l,u),d=e?.serverIndex??0,x=mt["MonitorTokensApi.listMonitoredTokens"]?.[d]?.url;return(h,y)=>yt(p,Q,ht,e)(h,x||y)},async updateMonitoredTokens(r,a){const n=await t.updateMonitoredTokens(r,a),s=e?.serverIndex??0,i=mt["MonitorTokensApi.updateMonitoredTokens"]?.[s]?.url;return(o,c)=>yt(n,Q,ht,e)(o,i||c)},async updateMonitoredTokensScope(r,a){const n=await t.updateMonitoredTokensScope(r,a),s=e?.serverIndex??0,i=mt["MonitorTokensApi.updateMonitoredTokensScope"]?.[s]?.url;return(o,c)=>yt(n,Q,ht,e)(o,i||c)}}},Dx=function(e,t,r){const a=Ox(e);return{createMonitoredTokens(n,s){return a.createMonitoredTokens(n,s).then(i=>i(r,t))},deleteMonitoredTokens(n,s){return a.deleteMonitoredTokens(n,s).then(i=>i(r,t))},listMonitoredTokens(n,s,i,o,c,l,u,p,d){return a.listMonitoredTokens(n,s,i,o,c,l,u,p,d).then(x=>x(r,t))},updateMonitoredTokens(n,s){return a.updateMonitoredTokens(n,s).then(i=>i(r,t))},updateMonitoredTokensScope(n,s){return a.updateMonitoredTokensScope(n,s).then(i=>i(r,t))}}},Fx=function(e){return{createSubscription:async(t,r,a={})=>{zt("createSubscription","createSubscriptionRequest",t);const n="/v2/notifications/subscriptions",s=new URL(n,vt);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await At(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",gt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=wa(t,o,e),{url:xt(s),options:o}},deleteSubscription:async(t,r,a={})=>{zt("deleteSubscription","id",t);const n="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,vt);let i;e&&(i=e.baseOptions);const o={method:"DELETE",...i,...a},c={},l={};await At(c,e),r!=null&&(c["X-Request-Id"]=String(r)),gt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:xt(s),options:o}},getNotificationSignature:async(t,r,a={})=>{zt("getNotificationSignature","id",t);const n="/v2/notifications/publicKey/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,vt);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...a},c={},l={};await At(c,e),r!=null&&(c["X-Request-Id"]=String(r)),gt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:xt(s),options:o}},getSubscription:async(t,r,a={})=>{zt("getSubscription","id",t);const n="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,vt);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...a},c={},l={};await At(c,e),r!=null&&(c["X-Request-Id"]=String(r)),gt(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:xt(s),options:o}},getSubscriptions:async(t={})=>{const r="/v2/notifications/subscriptions",a=new URL(r,vt);let n;e&&(n=e.baseOptions);const s={method:"GET",...n,...t},i={},o={};await At(i,e),gt(a,o);let c=n&&n.headers?n.headers:{};return s.headers={...i,...c,...t.headers},{url:xt(a),options:s}},updateSubscription:async(t,r,a,n={})=>{zt("updateSubscription","id",t),zt("updateSubscription","updateSubscriptionRequest",r);const s="/v2/notifications/subscriptions/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,vt);let o;e&&(o=e.baseOptions);const c={method:"PATCH",...o,...n},l={},u={};await At(l,e),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",gt(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=wa(r,c,e),{url:xt(i),options:c}}}},Vx=function(e){const t=Fx(e);return{async createSubscription(r,a,n){const s=await t.createSubscription(r,a,n),i=e?.serverIndex??0,o=mt["WebhookSubscriptionsApi.createSubscription"]?.[i]?.url;return(c,l)=>yt(s,Q,ht,e)(c,o||l)},async deleteSubscription(r,a,n){const s=await t.deleteSubscription(r,a,n),i=e?.serverIndex??0,o=mt["WebhookSubscriptionsApi.deleteSubscription"]?.[i]?.url;return(c,l)=>yt(s,Q,ht,e)(c,o||l)},async getNotificationSignature(r,a,n){const s=await t.getNotificationSignature(r,a,n),i=e?.serverIndex??0,o=mt["WebhookSubscriptionsApi.getNotificationSignature"]?.[i]?.url;return(c,l)=>yt(s,Q,ht,e)(c,o||l)},async getSubscription(r,a,n){const s=await t.getSubscription(r,a,n),i=e?.serverIndex??0,o=mt["WebhookSubscriptionsApi.getSubscription"]?.[i]?.url;return(c,l)=>yt(s,Q,ht,e)(c,o||l)},async getSubscriptions(r){const a=await t.getSubscriptions(r),n=e?.serverIndex??0,s=mt["WebhookSubscriptionsApi.getSubscriptions"]?.[n]?.url;return(i,o)=>yt(a,Q,ht,e)(i,s||o)},async updateSubscription(r,a,n,s){const i=await t.updateSubscription(r,a,n,s),o=e?.serverIndex??0,c=mt["WebhookSubscriptionsApi.updateSubscription"]?.[o]?.url;return(l,u)=>yt(i,Q,ht,e)(l,c||u)}}},Mx=function(e,t,r){const a=Vx(e);return{createSubscription(n,s,i){return a.createSubscription(n,s,i).then(o=>o(r,t))},deleteSubscription(n,s,i){return a.deleteSubscription(n,s,i).then(o=>o(r,t))},getNotificationSignature(n,s,i){return a.getNotificationSignature(n,s,i).then(o=>o(r,t))},getSubscription(n,s,i){return a.getSubscription(n,s,i).then(o=>o(r,t))},getSubscriptions(n){return a.getSubscriptions(n).then(s=>s(r,t))},updateSubscription(n,s,i,o){return a.updateSubscription(n,s,i,o).then(c=>c(r,t))}}};var qx=Object.defineProperty,jx=(e,t,r)=>t in e?qx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sa=(e,t,r)=>jx(e,typeof t!="symbol"?t+"":t,r);let Kx=class{constructor(t={}){sa(this,"apiKey"),sa(this,"username"),sa(this,"password"),sa(this,"accessToken"),sa(this,"basePath"),sa(this,"serverIndex"),sa(this,"baseOptions"),sa(this,"formDataCtor"),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(r.test(t)||t.toLowerCase()==="application/json-patch+json")}};var zx=Object.defineProperty,Hx=(e,t,r)=>t in e?zx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xr=(e,t,r)=>Hx(e,typeof t!="symbol"?t+"":t,r);class $x{constructor(t,r,a={}){xr(this,"DeveloperAccount"),xr(this,"Faucet"),xr(this,"Health"),xr(this,"MonitorTokens"),xr(this,"WebhookSubscriptions");const n=new Kx({basePath:t,baseOptions:{headers:{...a,Authorization:`Bearer ${r.apiKey}`,"Content-Type":"application/json","User-Agent":`${r.userAgent?r.userAgent+" / ":""}CircleNodeJS / Configurations / ${r.version}`}}});this.DeveloperAccount=Bx(n),this.Faucet=_x(n),this.Health=Lx(n),this.MonitorTokens=Dx(n),this.WebhookSubscriptions=Mx(n)}}const pe="https://api.circle.com".replace(/\/+$/,"");class Gx extends Error{constructor(t,r){super(r),this.field=t,this.name="RequiredError"}}const de={},fe="https://example.com",G=function(e,t,r){if(r==null)throw new Gx(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},he=async function(e,t){if(t&&t.accessToken){const r=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+r}};function Cu(e,t,r=""){t!=null&&(typeof t=="object"?Array.isArray(t)?t.forEach(a=>Cu(e,a,r)):Object.keys(t).forEach(a=>Cu(e,t[a],`${r}${r!==""?".":""}${a}`)):e.has(r)?e.append(r,t):e.set(r,t))}const me=function(e,...t){const r=new URLSearchParams(e.search);Cu(r,t),e.search=r.toString()},je=function(e,t,r){const a=typeof e!="string";return(a&&r&&r.isJsonMime?r.isJsonMime(t.headers["Content-Type"]):a)?JSON.stringify(e!==void 0?e:{}):e||""},ve=function(e){return e.pathname+e.search+e.hash},ge=function(e,t,r,a){return(n=t,s=r)=>{const i={...e.options,url:(a?.basePath||n.defaults.baseURL||s)+e.url};return n.request(i)}},Wx=function(e){return{createUser:async(t,r={})=>{G("createUser","createUserRequest",t);const a="/v1/w3s/users",n=new URL(a,fe);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...r},o={},c={};await he(o,e),o["Content-Type"]="application/json",me(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=je(t,i,e),{url:ve(n),options:i}},createUserPinChallenge:async(t,r,a,n={})=>{G("createUserPinChallenge","xUserToken",t),G("createUserPinChallenge","setPinRequest",r);const s="/v1/w3s/user/pin",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},createUserPinRestoreChallenge:async(t,r,a,n={})=>{G("createUserPinRestoreChallenge","xUserToken",t),G("createUserPinRestoreChallenge","setPinRequest",r);const s="/v1/w3s/user/pin/restore",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},getUserToken:async(t,r,a={})=>{G("getUserToken","userTokenRequest",t);const n="/v1/w3s/users/token",s=new URL(n,fe);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await he(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",me(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=je(t,o,e),{url:ve(s),options:o}},updateUserPinChallenge:async(t,r,a={})=>{G("updateUserPinChallenge","xUserToken",t),G("updateUserPinChallenge","setPinRequest",r);const n="/v1/w3s/user/pin",s=new URL(n,fe);let i;e&&(i=e.baseOptions);const o={method:"PUT",...i,...a},c={},l={};await he(c,e),t!=null&&(c["X-User-Token"]=String(t)),c["Content-Type"]="application/json",me(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=je(r,o,e),{url:ve(s),options:o}}}},Xx=function(e){const t=Wx(e);return{async createUser(r,a){const n=await t.createUser(r,a),s=e?.serverIndex??0,i=de["PINAuthenticationApi.createUser"]?.[s]?.url;return(o,c)=>ge(n,Q,pe,e)(o,i||c)},async createUserPinChallenge(r,a,n,s){const i=await t.createUserPinChallenge(r,a,n,s),o=e?.serverIndex??0,c=de["PINAuthenticationApi.createUserPinChallenge"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async createUserPinRestoreChallenge(r,a,n,s){const i=await t.createUserPinRestoreChallenge(r,a,n,s),o=e?.serverIndex??0,c=de["PINAuthenticationApi.createUserPinRestoreChallenge"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async getUserToken(r,a,n){const s=await t.getUserToken(r,a,n),i=e?.serverIndex??0,o=de["PINAuthenticationApi.getUserToken"]?.[i]?.url;return(c,l)=>ge(s,Q,pe,e)(c,o||l)},async updateUserPinChallenge(r,a,n){const s=await t.updateUserPinChallenge(r,a,n),i=e?.serverIndex??0,o=de["PINAuthenticationApi.updateUserPinChallenge"]?.[i]?.url;return(c,l)=>ge(s,Q,pe,e)(c,o||l)}}},Qx=function(e,t,r){const a=Xx(e);return{createUser(n,s){return a.createUser(n,s).then(i=>i(r,t))},createUserPinChallenge(n,s,i,o){return a.createUserPinChallenge(n,s,i,o).then(c=>c(r,t))},createUserPinRestoreChallenge(n,s,i,o){return a.createUserPinRestoreChallenge(n,s,i,o).then(c=>c(r,t))},getUserToken(n,s,i){return a.getUserToken(n,s,i).then(o=>o(r,t))},updateUserPinChallenge(n,s,i){return a.updateUserPinChallenge(n,s,i).then(o=>o(r,t))}}},Yx=function(e){return{signUserMessage:async(t,r,a,n={})=>{G("signUserMessage","xUserToken",t),G("signUserMessage","signMessageRequest",r);const s="/v1/w3s/user/sign/message",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},signUserTransaction:async(t,r,a,n={})=>{G("signUserTransaction","xUserToken",t),G("signUserTransaction","signUserTransactionRequest",r);const s="/v1/w3s/user/sign/transaction",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},signUserTypedData:async(t,r,a,n={})=>{G("signUserTypedData","xUserToken",t),G("signUserTypedData","signTypedDataRequest",r);const s="/v1/w3s/user/sign/typedData",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}}}},Jx=function(e){const t=Yx(e);return{async signUserMessage(r,a,n,s){const i=await t.signUserMessage(r,a,n,s),o=e?.serverIndex??0,c=de["SigningApi.signUserMessage"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async signUserTransaction(r,a,n,s){const i=await t.signUserTransaction(r,a,n,s),o=e?.serverIndex??0,c=de["SigningApi.signUserTransaction"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async signUserTypedData(r,a,n,s){const i=await t.signUserTypedData(r,a,n,s),o=e?.serverIndex??0,c=de["SigningApi.signUserTypedData"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)}}},Zx=function(e,t,r){const a=Jx(e);return{signUserMessage(n,s,i,o){return a.signUserMessage(n,s,i,o).then(c=>c(r,t))},signUserTransaction(n,s,i,o){return a.signUserTransaction(n,s,i,o).then(c=>c(r,t))},signUserTypedData(n,s,i,o){return a.signUserTypedData(n,s,i,o).then(c=>c(r,t))}}},ey=function(e){return{createDeviceTokenEmailLogin:async(t,r,a={})=>{G("createDeviceTokenEmailLogin","deviceTokenEmailRequest",t);const n="/v1/w3s/users/email/token",s=new URL(n,fe);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await he(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",me(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=je(t,o,e),{url:ve(s),options:o}},createDeviceTokenSocialLogin:async(t,r,a={})=>{G("createDeviceTokenSocialLogin","deviceTokenSocialRequest",t);const n="/v1/w3s/users/social/token",s=new URL(n,fe);let i;e&&(i=e.baseOptions);const o={method:"POST",...i,...a},c={},l={};await he(c,e),r!=null&&(c["X-Request-Id"]=String(r)),c["Content-Type"]="application/json",me(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},o.data=je(t,o,e),{url:ve(s),options:o}},refreshUserToken:async(t,r,a,n={})=>{G("refreshUserToken","xUserToken",t),G("refreshUserToken","refreshUserTokenRequest",r);const s="/v1/w3s/users/token/refresh",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},resendOTP:async(t,r,a,n={})=>{G("resendOTP","xUserToken",t),G("resendOTP","resendOTPRequest",r);const s="/v1/w3s/users/email/resendOTP",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}}}},ty=function(e){const t=ey(e);return{async createDeviceTokenEmailLogin(r,a,n){const s=await t.createDeviceTokenEmailLogin(r,a,n),i=e?.serverIndex??0,o=de["SocialEmailAuthenticationApi.createDeviceTokenEmailLogin"]?.[i]?.url;return(c,l)=>ge(s,Q,pe,e)(c,o||l)},async createDeviceTokenSocialLogin(r,a,n){const s=await t.createDeviceTokenSocialLogin(r,a,n),i=e?.serverIndex??0,o=de["SocialEmailAuthenticationApi.createDeviceTokenSocialLogin"]?.[i]?.url;return(c,l)=>ge(s,Q,pe,e)(c,o||l)},async refreshUserToken(r,a,n,s){const i=await t.refreshUserToken(r,a,n,s),o=e?.serverIndex??0,c=de["SocialEmailAuthenticationApi.refreshUserToken"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async resendOTP(r,a,n,s){const i=await t.resendOTP(r,a,n,s),o=e?.serverIndex??0,c=de["SocialEmailAuthenticationApi.resendOTP"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)}}},ay=function(e,t,r){const a=ty(e);return{createDeviceTokenEmailLogin(n,s,i){return a.createDeviceTokenEmailLogin(n,s,i).then(o=>o(r,t))},createDeviceTokenSocialLogin(n,s,i){return a.createDeviceTokenSocialLogin(n,s,i).then(o=>o(r,t))},refreshUserToken(n,s,i,o){return a.refreshUserToken(n,s,i,o).then(c=>c(r,t))},resendOTP(n,s,i,o){return a.resendOTP(n,s,i,o).then(c=>c(r,t))}}},ry=function(e){return{getTokenId:async(t,r={})=>{G("getTokenId","id",t);const a="/v1/w3s/tokens/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(a,fe);let s;e&&(s=e.baseOptions);const i={method:"GET",...s,...r},o={},c={};await he(o,e),me(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},{url:ve(n),options:i}}}},ny=function(e){const t=ry(e);return{async getTokenId(r,a){const n=await t.getTokenId(r,a),s=e?.serverIndex??0,i=de["TokenLookupApi.getTokenId"]?.[s]?.url;return(o,c)=>ge(n,Q,pe,e)(o,i||c)}}},iy=function(e,t,r){const a=ny(e);return{getTokenId(n,s){return a.getTokenId(n,s).then(i=>i(r,t))}}},sy=function(e){return{createTransactionEstimateFee:async(t,r,a,n={})=>{G("createTransactionEstimateFee","xUserToken",t),G("createTransactionEstimateFee","estimateContractExecutionTransactionFeeRequest",r);const s="/v1/w3s/transactions/contractExecution/estimateFee",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},createTransferEstimateFee:async(t,r,a,n={})=>{G("createTransferEstimateFee","xUserToken",t),G("createTransferEstimateFee","estimateTransferTransactionFeeRequest",r);const s="/v1/w3s/transactions/transfer/estimateFee",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},createUserTransactionAccelerateChallenge:async(t,r,a,n,s={})=>{G("createUserTransactionAccelerateChallenge","xUserToken",t),G("createUserTransactionAccelerateChallenge","id",r),G("createUserTransactionAccelerateChallenge","accelerateTransactionForEndUserRequest",a);const i="/v1/w3s/user/transactions/{id}/accelerate".replace("{id}",encodeURIComponent(String(r))),o=new URL(i,fe);let c;e&&(c=e.baseOptions);const l={method:"POST",...c,...s},u={},p={};await he(u,e),t!=null&&(u["X-User-Token"]=String(t)),n!=null&&(u["X-Request-Id"]=String(n)),u["Content-Type"]="application/json",me(o,p);let d=c&&c.headers?c.headers:{};return l.headers={...u,...d,...s.headers},l.data=je(a,l,e),{url:ve(o),options:l}},createUserTransactionCancelChallenge:async(t,r,a,n,s={})=>{G("createUserTransactionCancelChallenge","xUserToken",t),G("createUserTransactionCancelChallenge","id",r),G("createUserTransactionCancelChallenge","cancelTransactionForEndUserRequest",a);const i="/v1/w3s/user/transactions/{id}/cancel".replace("{id}",encodeURIComponent(String(r))),o=new URL(i,fe);let c;e&&(c=e.baseOptions);const l={method:"POST",...c,...s},u={},p={};await he(u,e),t!=null&&(u["X-User-Token"]=String(t)),n!=null&&(u["X-Request-Id"]=String(n)),u["Content-Type"]="application/json",me(o,p);let d=c&&c.headers?c.headers:{};return l.headers={...u,...d,...s.headers},l.data=je(a,l,e),{url:ve(o),options:l}},createUserTransactionContractExecutionChallenge:async(t,r,a,n={})=>{G("createUserTransactionContractExecutionChallenge","xUserToken",t),G("createUserTransactionContractExecutionChallenge","createContractExecutionTransactionForEndUserRequest",r);const s="/v1/w3s/user/transactions/contractExecution",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},createUserTransactionTransferChallenge:async(t,r,a,n={})=>{G("createUserTransactionTransferChallenge","xUserToken",t),G("createUserTransactionTransferChallenge","createTransferTransactionForEndUserRequest",r);const s="/v1/w3s/user/transactions/transfer",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},createUserTransactionWalletUpgradeChallenge:async(t,r,a,n={})=>{G("createUserTransactionWalletUpgradeChallenge","xUserToken",t),G("createUserTransactionWalletUpgradeChallenge","createWalletUpgradeTransactionForEndUserRequest",r);const s="/v1/w3s/user/transactions/walletUpgrade",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},createValidateAddress:async(t,r={})=>{G("createValidateAddress","validateAddressRequest",t);const a="/v1/w3s/transactions/validateAddress",n=new URL(a,fe);let s;e&&(s=e.baseOptions);const i={method:"POST",...s,...r},o={},c={};await he(o,e),o["Content-Type"]="application/json",me(n,c);let l=s&&s.headers?s.headers:{};return i.headers={...o,...l,...r.headers},i.data=je(t,i,e),{url:ve(n),options:i}},getLowestNonceTransaction:async(t,r,a,n={})=>{const s="/v1/w3s/transactions/lowestNonceTransaction",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...n},l={},u={};await he(l,e),t!==void 0&&(u.blockchain=t),r!==void 0&&(u.address=r),a!==void 0&&(u.walletId=a),me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},{url:ve(i),options:c}},getTransaction:async(t,r,a,n,s={})=>{G("getTransaction","id",t),G("getTransaction","xUserToken",r);const i="/v1/w3s/transactions/{id}".replace("{id}",encodeURIComponent(String(t))),o=new URL(i,fe);let c;e&&(c=e.baseOptions);const l={method:"GET",...c,...s},u={},p={};await he(u,e),a!==void 0&&(p.txType=a),r!=null&&(u["X-User-Token"]=String(r)),n!=null&&(u["X-Request-Id"]=String(n)),me(o,p);let d=c&&c.headers?c.headers:{};return l.headers={...u,...d,...s.headers},{url:ve(o),options:l}},listTransactions:async(t,r,a,n,s,i,o,c,l,u,p,d,x,h,y,b,C,I={})=>{G("listTransactions","xUserToken",t);const B="/v1/w3s/transactions",U=new URL(B,fe);let _;e&&(_=e.baseOptions);const N={method:"GET",..._,...I},j={},H={};await he(j,e),r!==void 0&&(H.blockchain=r),a!==void 0&&(H.destinationAddress=a),n!==void 0&&(H.includeAll=n),s!==void 0&&(H.operation=s),i!==void 0&&(H.state=i),o!==void 0&&(H.txHash=o),c!==void 0&&(H.txType=c),l!==void 0&&(H.userId=l),u!==void 0&&(H.walletIds=u),p!==void 0&&(H.from=p instanceof Date?p.toISOString():p),d!==void 0&&(H.to=d instanceof Date?d.toISOString():d),x!==void 0&&(H.pageBefore=x),h!==void 0&&(H.pageAfter=h),y!==void 0&&(H.pageSize=y),b!==void 0&&(H.order=b),t!=null&&(j["X-User-Token"]=String(t)),C!=null&&(j["X-Request-Id"]=String(C)),me(U,H);let te=_&&_.headers?_.headers:{};return N.headers={...j,...te,...I.headers},{url:ve(U),options:N}}}},oy=function(e){const t=sy(e);return{async createTransactionEstimateFee(r,a,n,s){const i=await t.createTransactionEstimateFee(r,a,n,s),o=e?.serverIndex??0,c=de["TransactionsApi.createTransactionEstimateFee"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async createTransferEstimateFee(r,a,n,s){const i=await t.createTransferEstimateFee(r,a,n,s),o=e?.serverIndex??0,c=de["TransactionsApi.createTransferEstimateFee"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async createUserTransactionAccelerateChallenge(r,a,n,s,i){const o=await t.createUserTransactionAccelerateChallenge(r,a,n,s,i),c=e?.serverIndex??0,l=de["TransactionsApi.createUserTransactionAccelerateChallenge"]?.[c]?.url;return(u,p)=>ge(o,Q,pe,e)(u,l||p)},async createUserTransactionCancelChallenge(r,a,n,s,i){const o=await t.createUserTransactionCancelChallenge(r,a,n,s,i),c=e?.serverIndex??0,l=de["TransactionsApi.createUserTransactionCancelChallenge"]?.[c]?.url;return(u,p)=>ge(o,Q,pe,e)(u,l||p)},async createUserTransactionContractExecutionChallenge(r,a,n,s){const i=await t.createUserTransactionContractExecutionChallenge(r,a,n,s),o=e?.serverIndex??0,c=de["TransactionsApi.createUserTransactionContractExecutionChallenge"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async createUserTransactionTransferChallenge(r,a,n,s){const i=await t.createUserTransactionTransferChallenge(r,a,n,s),o=e?.serverIndex??0,c=de["TransactionsApi.createUserTransactionTransferChallenge"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async createUserTransactionWalletUpgradeChallenge(r,a,n,s){const i=await t.createUserTransactionWalletUpgradeChallenge(r,a,n,s),o=e?.serverIndex??0,c=de["TransactionsApi.createUserTransactionWalletUpgradeChallenge"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async createValidateAddress(r,a){const n=await t.createValidateAddress(r,a),s=e?.serverIndex??0,i=de["TransactionsApi.createValidateAddress"]?.[s]?.url;return(o,c)=>ge(n,Q,pe,e)(o,i||c)},async getLowestNonceTransaction(r,a,n,s){const i=await t.getLowestNonceTransaction(r,a,n,s),o=e?.serverIndex??0,c=de["TransactionsApi.getLowestNonceTransaction"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async getTransaction(r,a,n,s,i){const o=await t.getTransaction(r,a,n,s,i),c=e?.serverIndex??0,l=de["TransactionsApi.getTransaction"]?.[c]?.url;return(u,p)=>ge(o,Q,pe,e)(u,l||p)},async listTransactions(r,a,n,s,i,o,c,l,u,p,d,x,h,y,b,C,I,B){const U=await t.listTransactions(r,a,n,s,i,o,c,l,u,p,d,x,h,y,b,C,I,B),_=e?.serverIndex??0,N=de["TransactionsApi.listTransactions"]?.[_]?.url;return(j,H)=>ge(U,Q,pe,e)(j,N||H)}}},cy=function(e,t,r){const a=oy(e);return{createTransactionEstimateFee(n,s,i,o){return a.createTransactionEstimateFee(n,s,i,o).then(c=>c(r,t))},createTransferEstimateFee(n,s,i,o){return a.createTransferEstimateFee(n,s,i,o).then(c=>c(r,t))},createUserTransactionAccelerateChallenge(n,s,i,o,c){return a.createUserTransactionAccelerateChallenge(n,s,i,o,c).then(l=>l(r,t))},createUserTransactionCancelChallenge(n,s,i,o,c){return a.createUserTransactionCancelChallenge(n,s,i,o,c).then(l=>l(r,t))},createUserTransactionContractExecutionChallenge(n,s,i,o){return a.createUserTransactionContractExecutionChallenge(n,s,i,o).then(c=>c(r,t))},createUserTransactionTransferChallenge(n,s,i,o){return a.createUserTransactionTransferChallenge(n,s,i,o).then(c=>c(r,t))},createUserTransactionWalletUpgradeChallenge(n,s,i,o){return a.createUserTransactionWalletUpgradeChallenge(n,s,i,o).then(c=>c(r,t))},createValidateAddress(n,s){return a.createValidateAddress(n,s).then(i=>i(r,t))},getLowestNonceTransaction(n,s,i,o){return a.getLowestNonceTransaction(n,s,i,o).then(c=>c(r,t))},getTransaction(n,s,i,o,c){return a.getTransaction(n,s,i,o,c).then(l=>l(r,t))},listTransactions(n,s,i,o,c,l,u,p,d,x,h,y,b,C,I,B,U,_){return a.listTransactions(n,s,i,o,c,l,u,p,d,x,h,y,b,C,I,B,U,_).then(N=>N(r,t))}}},ly=function(e){return{createUserWithPinChallenge:async(t,r,a,n={})=>{G("createUserWithPinChallenge","xUserToken",t),G("createUserWithPinChallenge","setPinAndInitWalletRequest",r);const s="/v1/w3s/user/initialize",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},getUser:async(t,r,a={})=>{G("getUser","id",t);const n="/v1/w3s/users/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(n,fe);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...a},c={},l={};await he(c,e),r!=null&&(c["X-Request-Id"]=String(r)),me(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:ve(s),options:o}},getUserByToken:async(t,r,a={})=>{G("getUserByToken","xUserToken",t);const n="/v1/w3s/user",s=new URL(n,fe);let i;e&&(i=e.baseOptions);const o={method:"GET",...i,...a},c={},l={};await he(c,e),t!=null&&(c["X-User-Token"]=String(t)),r!=null&&(c["X-Request-Id"]=String(r)),me(s,l);let u=i&&i.headers?i.headers:{};return o.headers={...c,...u,...a.headers},{url:ve(s),options:o}},getUserChallenge:async(t,r,a,n={})=>{G("getUserChallenge","xUserToken",t),G("getUserChallenge","id",r);const s="/v1/w3s/user/challenges/{id}".replace("{id}",encodeURIComponent(String(r))),i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},{url:ve(i),options:c}},listUserChallenges:async(t,r,a,n={})=>{G("listUserChallenges","xUserToken",t);const s="/v1/w3s/user/challenges",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...n},l={},u={};await he(l,e),r!==void 0&&(u.status=r),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},{url:ve(i),options:c}},listUsers:async(t,r,a,n,s,i,o,c,l,u={})=>{const p="/v1/w3s/users",d=new URL(p,fe);let x;e&&(x=e.baseOptions);const h={method:"GET",...x,...u},y={},b={};await he(y,e),t!==void 0&&(b.pinStatus=t),r!==void 0&&(b.securityQuestionStatus=r),a!==void 0&&(b.from=a instanceof Date?a.toISOString():a),n!==void 0&&(b.to=n instanceof Date?n.toISOString():n),s!==void 0&&(b.pageBefore=s),i!==void 0&&(b.pageAfter=i),o!==void 0&&(b.pageSize=o),c!==void 0&&(b.order=c),l!=null&&(y["X-Request-Id"]=String(l)),me(d,b);let C=x&&x.headers?x.headers:{};return h.headers={...y,...C,...u.headers},{url:ve(d),options:h}}}},uy=function(e){const t=ly(e);return{async createUserWithPinChallenge(r,a,n,s){const i=await t.createUserWithPinChallenge(r,a,n,s),o=e?.serverIndex??0,c=de["UsersApi.createUserWithPinChallenge"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async getUser(r,a,n){const s=await t.getUser(r,a,n),i=e?.serverIndex??0,o=de["UsersApi.getUser"]?.[i]?.url;return(c,l)=>ge(s,Q,pe,e)(c,o||l)},async getUserByToken(r,a,n){const s=await t.getUserByToken(r,a,n),i=e?.serverIndex??0,o=de["UsersApi.getUserByToken"]?.[i]?.url;return(c,l)=>ge(s,Q,pe,e)(c,o||l)},async getUserChallenge(r,a,n,s){const i=await t.getUserChallenge(r,a,n,s),o=e?.serverIndex??0,c=de["UsersApi.getUserChallenge"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async listUserChallenges(r,a,n,s){const i=await t.listUserChallenges(r,a,n,s),o=e?.serverIndex??0,c=de["UsersApi.listUserChallenges"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async listUsers(r,a,n,s,i,o,c,l,u,p){const d=await t.listUsers(r,a,n,s,i,o,c,l,u,p),x=e?.serverIndex??0,h=de["UsersApi.listUsers"]?.[x]?.url;return(y,b)=>ge(d,Q,pe,e)(y,h||b)}}},py=function(e,t,r){const a=uy(e);return{createUserWithPinChallenge(n,s,i,o){return a.createUserWithPinChallenge(n,s,i,o).then(c=>c(r,t))},getUser(n,s,i){return a.getUser(n,s,i).then(o=>o(r,t))},getUserByToken(n,s,i){return a.getUserByToken(n,s,i).then(o=>o(r,t))},getUserChallenge(n,s,i,o){return a.getUserChallenge(n,s,i,o).then(c=>c(r,t))},listUserChallenges(n,s,i,o){return a.listUserChallenges(n,s,i,o).then(c=>c(r,t))},listUsers(n,s,i,o,c,l,u,p,d,x){return a.listUsers(n,s,i,o,c,l,u,p,d,x).then(h=>h(r,t))}}},dy=function(e){return{createUserWallet:async(t,r,a,n={})=>{G("createUserWallet","xUserToken",t),G("createUserWallet","createEndUserWalletRequest",r);const s="/v1/w3s/user/wallets",i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"POST",...o,...n},l={},u={};await he(l,e),t!=null&&(l["X-User-Token"]=String(t)),a!=null&&(l["X-Request-Id"]=String(a)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(r,c,e),{url:ve(i),options:c}},getWallet:async(t,r,a,n={})=>{G("getWallet","id",t),G("getWallet","xUserToken",r);const s="/v1/w3s/wallets/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"GET",...o,...n},l={},u={};await he(l,e),r!=null&&(l["X-User-Token"]=String(r)),a!=null&&(l["X-Request-Id"]=String(a)),me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},{url:ve(i),options:c}},listWalletBalance:async(t,r,a,n,s,i,o,c,l,u,p={})=>{G("listWalletBalance","xUserToken",t),G("listWalletBalance","id",r);const d="/v1/w3s/wallets/{id}/balances".replace("{id}",encodeURIComponent(String(r))),x=new URL(d,fe);let h;e&&(h=e.baseOptions);const y={method:"GET",...h,...p},b={},C={};await he(b,e),a!==void 0&&(C.includeAll=a),n!==void 0&&(C.name=n),s!==void 0&&(C.tokenAddress=s),i!==void 0&&(C.standard=i),o!==void 0&&(C.pageBefore=o),c!==void 0&&(C.pageAfter=c),l!==void 0&&(C.pageSize=l),t!=null&&(b["X-User-Token"]=String(t)),u!=null&&(b["X-Request-Id"]=String(u)),me(x,C);let I=h&&h.headers?h.headers:{};return y.headers={...b,...I,...p.headers},{url:ve(x),options:y}},listWalletNfts:async(t,r,a,n,s,i,o,c,l,u,p={})=>{G("listWalletNfts","xUserToken",t),G("listWalletNfts","id",r);const d="/v1/w3s/wallets/{id}/nfts".replace("{id}",encodeURIComponent(String(r))),x=new URL(d,fe);let h;e&&(h=e.baseOptions);const y={method:"GET",...h,...p},b={},C={};await he(b,e),a!==void 0&&(C.includeAll=a),n!==void 0&&(C.name=n),s!==void 0&&(C.tokenAddress=s),i!==void 0&&(C.standard=i),o!==void 0&&(C.pageBefore=o),c!==void 0&&(C.pageAfter=c),l!==void 0&&(C.pageSize=l),t!=null&&(b["X-User-Token"]=String(t)),u!=null&&(b["X-Request-Id"]=String(u)),me(x,C);let I=h&&h.headers?h.headers:{};return y.headers={...b,...I,...p.headers},{url:ve(x),options:y}},listWallets:async(t,r,a,n,s,i,o,c,l,u,p,d,x,h={})=>{G("listWallets","xUserToken",t);const y="/v1/w3s/wallets",b=new URL(y,fe);let C;e&&(C=e.baseOptions);const I={method:"GET",...C,...h},B={},U={};await he(B,e),r!==void 0&&(U.address=r),a!==void 0&&(U.blockchain=a),n!==void 0&&(U.scaCore=n),s!==void 0&&(U.walletSetId=s),i!==void 0&&(U.refId=i),o!==void 0&&(U.from=o instanceof Date?o.toISOString():o),c!==void 0&&(U.to=c instanceof Date?c.toISOString():c),l!==void 0&&(U.pageBefore=l),u!==void 0&&(U.pageAfter=u),p!==void 0&&(U.pageSize=p),d!==void 0&&(U.order=d),t!=null&&(B["X-User-Token"]=String(t)),x!=null&&(B["X-Request-Id"]=String(x)),me(b,U);let _=C&&C.headers?C.headers:{};return I.headers={...B,..._,...h.headers},{url:ve(b),options:I}},updateWallet:async(t,r,a,n={})=>{G("updateWallet","id",t),G("updateWallet","xUserToken",r),G("updateWallet","updateWalletRequest",a);const s="/v1/w3s/wallets/{id}".replace("{id}",encodeURIComponent(String(t))),i=new URL(s,fe);let o;e&&(o=e.baseOptions);const c={method:"PUT",...o,...n},l={},u={};await he(l,e),r!=null&&(l["X-User-Token"]=String(r)),l["Content-Type"]="application/json",me(i,u);let p=o&&o.headers?o.headers:{};return c.headers={...l,...p,...n.headers},c.data=je(a,c,e),{url:ve(i),options:c}}}},fy=function(e){const t=dy(e);return{async createUserWallet(r,a,n,s){const i=await t.createUserWallet(r,a,n,s),o=e?.serverIndex??0,c=de["WalletsApi.createUserWallet"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async getWallet(r,a,n,s){const i=await t.getWallet(r,a,n,s),o=e?.serverIndex??0,c=de["WalletsApi.getWallet"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)},async listWalletBalance(r,a,n,s,i,o,c,l,u,p,d){const x=await t.listWalletBalance(r,a,n,s,i,o,c,l,u,p,d),h=e?.serverIndex??0,y=de["WalletsApi.listWalletBalance"]?.[h]?.url;return(b,C)=>ge(x,Q,pe,e)(b,y||C)},async listWalletNfts(r,a,n,s,i,o,c,l,u,p,d){const x=await t.listWalletNfts(r,a,n,s,i,o,c,l,u,p,d),h=e?.serverIndex??0,y=de["WalletsApi.listWalletNfts"]?.[h]?.url;return(b,C)=>ge(x,Q,pe,e)(b,y||C)},async listWallets(r,a,n,s,i,o,c,l,u,p,d,x,h,y){const b=await t.listWallets(r,a,n,s,i,o,c,l,u,p,d,x,h,y),C=e?.serverIndex??0,I=de["WalletsApi.listWallets"]?.[C]?.url;return(B,U)=>ge(b,Q,pe,e)(B,I||U)},async updateWallet(r,a,n,s){const i=await t.updateWallet(r,a,n,s),o=e?.serverIndex??0,c=de["WalletsApi.updateWallet"]?.[o]?.url;return(l,u)=>ge(i,Q,pe,e)(l,c||u)}}},hy=function(e,t,r){const a=fy(e);return{createUserWallet(n,s,i,o){return a.createUserWallet(n,s,i,o).then(c=>c(r,t))},getWallet(n,s,i,o){return a.getWallet(n,s,i,o).then(c=>c(r,t))},listWalletBalance(n,s,i,o,c,l,u,p,d,x,h){return a.listWalletBalance(n,s,i,o,c,l,u,p,d,x,h).then(y=>y(r,t))},listWalletNfts(n,s,i,o,c,l,u,p,d,x,h){return a.listWalletNfts(n,s,i,o,c,l,u,p,d,x,h).then(y=>y(r,t))},listWallets(n,s,i,o,c,l,u,p,d,x,h,y,b,C){return a.listWallets(n,s,i,o,c,l,u,p,d,x,h,y,b,C).then(I=>I(r,t))},updateWallet(n,s,i,o){return a.updateWallet(n,s,i,o).then(c=>c(r,t))}}};var my=Object.defineProperty,vy=(e,t,r)=>t in e?my(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oa=(e,t,r)=>vy(e,typeof t!="symbol"?t+"":t,r);class gy{constructor(t={}){oa(this,"apiKey"),oa(this,"username"),oa(this,"password"),oa(this,"accessToken"),oa(this,"basePath"),oa(this,"serverIndex"),oa(this,"baseOptions"),oa(this,"formDataCtor"),this.apiKey=t.apiKey,this.username=t.username,this.password=t.password,this.accessToken=t.accessToken,this.basePath=t.basePath,this.serverIndex=t.serverIndex,this.baseOptions=t.baseOptions,this.formDataCtor=t.formDataCtor}isJsonMime(t){const r=new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$","i");return t!==null&&(r.test(t)||t.toLowerCase()==="application/json-patch+json")}}const xy={Eth:"ETH",EthSepolia:"ETH-SEPOLIA",Avax:"AVAX",AvaxFuji:"AVAX-FUJI",Matic:"MATIC",MaticAmoy:"MATIC-AMOY",Sol:"SOL",SolDevnet:"SOL-DEVNET",Arb:"ARB",ArbSepolia:"ARB-SEPOLIA",Near:"NEAR",NearTestnet:"NEAR-TESTNET",Evm:"EVM",EvmTestnet:"EVM-TESTNET",Uni:"UNI",UniSepolia:"UNI-SEPOLIA",Base:"BASE",BaseSepolia:"BASE-SEPOLIA",Op:"OP",OpSepolia:"OP-SEPOLIA",Aptos:"APTOS",AptosTestnet:"APTOS-TESTNET",ArcTestnet:"ARC-TESTNET",Monad:"MONAD",MonadTestnet:"MONAD-TESTNET"};var yy=Object.defineProperty,by=(e,t,r)=>t in e?yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Aa=(e,t,r)=>by(e,typeof t!="symbol"?t+"":t,r);class Ey{constructor(t,r,a={}){Aa(this,"PINAuthentication"),Aa(this,"Signing"),Aa(this,"SocialEmailAuthentication"),Aa(this,"TokenLookup"),Aa(this,"Transactions"),Aa(this,"Users"),Aa(this,"Wallets");const n=new gy({basePath:t,baseOptions:{headers:{...a,Authorization:`Bearer ${r.apiKey}`,"Content-Type":"application/json","User-Agent":`${r.userAgent?r.userAgent+" / ":""}CircleNodeJS / UserControlledWallets / ${r.version}`}}});this.PINAuthentication=Qx(n),this.Signing=Zx(n),this.SocialEmailAuthentication=ay(n),this.TokenLookup=iy(n),this.Transactions=cy(n),this.Users=py(n),this.Wallets=hy(n)}}var Cy=Object.defineProperty,pf=e=>{throw TypeError(e)},Ty=(e,t,r)=>t in e?Cy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ha=(e,t,r)=>Ty(e,typeof t!="symbol"?t+"":t,r),df=(e,t,r)=>t.has(e)||pf("Cannot "+r),Sy=(e,t,r)=>(df(e,t,"read from private field"),r?r.call(e):t.get(e)),wy=(e,t,r)=>t.has(e)?pf("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ay=(e,t,r,a)=>(df(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r),$c;class yr extends Error{constructor({message:t,code:r,url:a,method:n,error:s}){super(t),Ha(this,"code"),Ha(this,"message"),Ha(this,"url"),Ha(this,"method"),wy(this,$c),this.message=t??new.target.message,this.code=r??new.target.code,this.url=a,this.method=n,Ay(this,$c,s)}get error(){return Sy(this,$c)}}$c=new WeakMap,Ha(yr,"code","UNKNOWN"),Ha(yr,"message","HTTP Error");var Iy=Object.defineProperty,By=(e,t,r)=>t in e?Iy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tu=(e,t,r)=>By(e,typeof t!="symbol"?t+"":t,r);class E extends yr{constructor({message:t,code:r,url:a,method:n,status:s,error:i}){super({message:t,code:r,url:a,method:n,error:i}),Tu(this,"status"),this.status=s}}Tu(E,"code",-1),Tu(E,"message","HTTP Response Error");var ky=Object.defineProperty,Ry=(e,t,r)=>t in e?ky(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ff=(e,t,r)=>Ry(e,typeof t!="symbol"?t+"":t,r);class Nt extends yr{}ff(Nt,"code","UNKNOWN"),ff(Nt,"message","Unknown HTTP request error");var _y=Object.defineProperty,Uy=(e,t,r)=>t in e?_y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hf=(e,t,r)=>Uy(e,typeof t!="symbol"?t+"":t,r);class br extends E{}hf(br,"code",400),hf(br,"message","Bad Request");var Ny=Object.defineProperty,Ly=(e,t,r)=>t in e?Ny(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mf=(e,t,r)=>Ly(e,typeof t!="symbol"?t+"":t,r);class Er extends E{}mf(Er,"code",401),mf(Er,"message","Unauthorized");var Py=Object.defineProperty,Oy=(e,t,r)=>t in e?Py(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vf=(e,t,r)=>Oy(e,typeof t!="symbol"?t+"":t,r);class Cr extends E{}vf(Cr,"code",403),vf(Cr,"message","Forbidden");var Dy=Object.defineProperty,Fy=(e,t,r)=>t in e?Dy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gf=(e,t,r)=>Fy(e,typeof t!="symbol"?t+"":t,r);class Tr extends E{}gf(Tr,"code",404),gf(Tr,"message","Not Found");var Vy=Object.defineProperty,My=(e,t,r)=>t in e?Vy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xf=(e,t,r)=>My(e,typeof t!="symbol"?t+"":t,r);class Sr extends E{}xf(Sr,"code",429),xf(Sr,"message","Too Many Requests");var qy=Object.defineProperty,jy=(e,t,r)=>t in e?qy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yf=(e,t,r)=>jy(e,typeof t!="symbol"?t+"":t,r);class wr extends E{}yf(wr,"code",500),yf(wr,"message","Internal Server Error");var Ky=Object.defineProperty,zy=(e,t,r)=>t in e?Ky(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bf=(e,t,r)=>zy(e,typeof t!="symbol"?t+"":t,r);class Ar extends E{}bf(Ar,"code",501),bf(Ar,"message","Not Implemented");var Hy=Object.defineProperty,$y=(e,t,r)=>t in e?Hy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ef=(e,t,r)=>$y(e,typeof t!="symbol"?t+"":t,r);class Ir extends E{}Ef(Ir,"code",502),Ef(Ir,"message","Bad Gateway");var Gy=Object.defineProperty,Wy=(e,t,r)=>t in e?Gy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Cf=(e,t,r)=>Wy(e,typeof t!="symbol"?t+"":t,r);class Br extends E{}Cf(Br,"code",503),Cf(Br,"message","Service Unavailable");var Xy=Object.defineProperty,Qy=(e,t,r)=>t in e?Xy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tf=(e,t,r)=>Qy(e,typeof t!="symbol"?t+"":t,r);class kr extends E{}Tf(kr,"code",504),Tf(kr,"message","Gateway Timeout");var Yy=Object.defineProperty,Jy=(e,t,r)=>t in e?Yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Sf=(e,t,r)=>Jy(e,typeof t!="symbol"?t+"":t,r);class Rr extends Nt{}Sf(Rr,"code","ECONNREFUSED"),Sf(Rr,"message","Connection refused");var Zy=Object.defineProperty,e1=(e,t,r)=>t in e?Zy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wf=(e,t,r)=>e1(e,typeof t!="symbol"?t+"":t,r);class _r extends Nt{}wf(_r,"code","ETIMEDOUT"),wf(_r,"message","Connection timeout");var t1=Object.defineProperty,a1=(e,t,r)=>t in e?t1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Af=(e,t,r)=>a1(e,typeof t!="symbol"?t+"":t,r);class Ur extends Nt{}Af(Ur,"code","ECONNABORTED"),Af(Ur,"message","Request timeout");var r1=Object.defineProperty,n1=(e,t,r)=>t in e?r1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,If=(e,t,r)=>n1(e,typeof t!="symbol"?t+"":t,r);class Nr extends Nt{}If(Nr,"code","ENOTFOUND"),If(Nr,"message","DNS lookup failed - host not found");var i1=Object.defineProperty,s1=(e,t,r)=>t in e?i1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bf=(e,t,r)=>s1(e,typeof t!="symbol"?t+"":t,r);class Lr extends Nt{}Bf(Lr,"code","EAI_AGAIN"),Bf(Lr,"message","DNS lookup failed - timeout");var o1=Object.defineProperty,c1=(e,t,r)=>t in e?o1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kf=(e,t,r)=>c1(e,typeof t!="symbol"?t+"":t,r);class Pr extends Nt{}kf(Pr,"code","ENETUNREACH"),kf(Pr,"message","Network unreachable");var l1=Object.defineProperty,u1=(e,t,r)=>t in e?l1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rf=(e,t,r)=>u1(e,typeof t!="symbol"?t+"":t,r);class Or extends Nt{}Rf(Or,"code","ECONNRESET"),Rf(Or,"message","Connection reset");var p1=Object.defineProperty,d1=(e,t,r)=>t in e?p1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_f=(e,t,r)=>d1(e,typeof t!="symbol"?t+"":t,r);class Dr extends Nt{}_f(Dr,"code","EHOSTUNREACH"),_f(Dr,"message","Host unreachable");const Uf={undefined:Nt,[Rr.code]:Rr,[_r.code]:_r,[Ur.code]:Ur,[Or.code]:Or,[Nr.code]:Nr,[Lr.code]:Lr,[Pr.code]:Pr,[Dr.code]:Dr};function f1(e){return Uf[e]??Uf.undefined}function h1(e){return m1({code:e.code,message:e.message,url:e.config.url,method:e.config.method.toUpperCase(),error:e})}function m1({code:e,message:t,url:r,method:a,error:n}){const s=f1(e);return new s({message:t,code:e,url:r,method:a,error:n})}var v1=Object.defineProperty,g1=(e,t,r)=>t in e?v1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t,r)=>g1(e,typeof t!="symbol"?t+"":t,r);class Su extends E{}f(Su,"code",110700),f(Su,"message","The input amount is outside trade limit.");class wu extends E{}f(wu,"code",110701),f(wu,"message","No quote is available with given input.");class Au extends E{}f(Au,"code",110702),f(Au,"message","No supported configurations with given input.");class Iu extends E{}f(Iu,"code",110703),f(Iu,"message","refId already exists, should be unique.");class Fr extends E{}f(Fr,"code",155101),f(Fr,"message","Existing user already created with the provided userId.");class Vr extends E{}f(Vr,"code",155102),f(Vr,"message","Cannot find the user id in the system.");class Mr extends E{}f(Mr,"code",155103),f(Mr,"message","Cannot find the user token in the system.");class qr extends E{}f(qr,"code",155104),f(qr,"message","The userToken had expired.");class jr extends E{}f(jr,"code",155105),f(jr,"message","The userToken is invalid.");class Kr extends E{}f(Kr,"code",155106),f(Kr,"message","The user had already been initialized.");class zr extends E{}f(zr,"code",155107),f(zr,"message","User has previously set a PIN. Use PUT /user/pin to reset the PIN.");class Hr extends E{}f(Hr,"code",155108),f(Hr,"message","User has previously set up their security questions, and they can't be reset.");class $r extends E{}f($r,"code",155109),f($r,"message","The specified user has been disabled.");class Gr extends E{}f(Gr,"code",155110),f(Gr,"message","User has not set up a PIN yet.");class Wr extends E{}f(Wr,"code",155111),f(Wr,"message","User hasn't set the security questions for PIN backup yet.");class Xr extends E{}f(Xr,"code",155112),f(Xr,"message","The user has inputted the incorrect pin.");class Qr extends E{}f(Qr,"code",155113),f(Qr,"message","Provided device ID is not found in the system.");class Yr extends E{}f(Yr,"code",155114),f(Yr,"message","Provided app ID is not recognized in the system.");class Jr extends E{}f(Jr,"code",155115),f(Jr,"message","The user has inputted the incorrect security answers");class Zr extends E{}f(Zr,"code",155116),f(Zr,"message","The challenge ID doesn't exist in the system.");class en extends E{}f(en,"code",155117),f(en,"message","The content provided for approval is not correct.");class tn extends E{}f(tn,"code",155118),f(tn,"message","Encryption key does not match with the user's token. Call POST /users/token to get the correct token encryption key pair.");class an extends E{}f(an,"code",155119),f(an,"message","The user's PIN input is locked. It will be unlocked after the cooldown period.");class rn extends E{}f(rn,"code",155120),f(rn,"message","The user's security questions input is locked. It will be unlocked after the cooldown period.");class nn extends E{}f(nn,"code",155121),f(nn,"message","The provided challengeId has expired.");class sn extends E{}f(sn,"code",155122),f(sn,"message","The provided challengeId is invalid");class on extends E{}f(on,"code",155123),f(on,"message","No extra information provided when adding PIN-related requests.");class cn extends E{}f(cn,"code",155124),f(cn,"message","The extra information provided for PIN-related requests is invalid.");class ln extends E{}f(ln,"code",155130),f(ln,"message","User OTP token is expired.");class un extends E{}f(un,"code",155131),f(un,"message","User OTP token is invalid.");class pn extends E{}f(pn,"code",155132),f(pn,"message","User OTP value is not found.");class dn extends E{}f(dn,"code",155133),f(dn,"message","User OTP value is invalid.");class fn extends E{}f(fn,"code",155134),f(fn,"message","User OTP value is not matched.");class hn extends E{}f(hn,"code",155135),f(hn,"message","User's email is invalid.");class mn extends E{}f(mn,"code",155136),f(mn,"message","User's email is not matched.");class vn extends E{}f(vn,"code",155137),f(vn,"message","User's device ID is invalid.");class gn extends E{}f(gn,"code",155138),f(gn,"message","Failed to send the email.");class xn extends E{}f(xn,"code",155139),f(xn,"message","The idToken / accessToken of SSO is expired.");class yn extends E{}f(yn,"code",155140),f(yn,"message","Failed to validate the idToken/ accessToken.");class bn extends E{}f(bn,"code",155141),f(bn,"message","The user has exceeded the max limit (5) of entering OTP at the moment.");class En extends E{}f(En,"code",155142),f(En,"message","The max limit (5) of sending OTP has been exceeded at the moment.");class Cn extends E{}f(Cn,"code",155143),f(Cn,"message","The device token is expired.");class Tn extends E{}f(Tn,"code",155144),f(Tn,"message","The device token is invalid.");class Sn extends E{}f(Sn,"code",155145),f(Sn,"message","The device token is not found.");class wn extends E{}f(wn,"code",155146),f(wn,"message","The one-time password token is invalid as the user has entered it incorrectly three times.");class An extends E{}f(An,"code",155150),f(An,"message","The SMTP server configuration is not found.");class In extends E{}f(In,"code",155151),f(In,"message","The SMTP server configuration is invalid.");class Bn extends E{}f(Bn,"code",155152),f(Bn,"message","The SSO provider configuration is not found.");class kn extends E{}f(kn,"code",155154),f(kn,"message","The OTP email template is invalid.");class Rn extends E{}f(Rn,"code",155155),f(Rn,"message","The OTP email template is not found.");class _n extends E{}f(_n,"code",155156),f(_n,"message","Failed to update the email template.");class Un extends E{}f(Un,"code",155157),f(Un,"message","Failed to update the SMTP server configuration.");class Nn extends E{}f(Nn,"code",155158),f(Nn,"message","Failed to dial to the SMTP server.");class Ln extends E{}f(Ln,"code",155159),f(Ln,"message","Failed to auth to the SMTP server.");class Pn extends E{}f(Pn,"code",155160),f(Pn,"message","Failed to send to the SMTP server.");class On extends E{}f(On,"code",155201),f(On,"message","Not enough funds to fulfill the withdraw request.");class Dn extends E{}f(Dn,"code",155202),f(Dn,"message","Transaction nonce is inconsistent with sender's latest nonce.");class Fn extends E{}f(Fn,"code",155203),f(Fn,"message","User op nonce can not be larger than 0 when the smart contract wallet hasn't been deployed.");class Vn extends E{}f(Vn,"code",155204),f(Vn,"message","The total cost of executing transaction is higher than the balance of the user's account when estimating fee.");class Mn extends E{}f(Mn,"code",155205),f(Mn,"message","Failed to execute this request on EVM due to insufficient tokens when the estimating gas fee.");class qn extends E{}f(qn,"code",155206),f(qn,"message","The sender address is not the token owner or the sender wasn't approved to commit this transaction.");class jn extends E{}f(jn,"code",155207),f(jn,"message","Gas required exceeds the maximum allowance for the account. This is based on the gas fee estimate amount.");class Kn extends E{}f(Kn,"code",155208),f(Kn,"message","Estimate fee execution reverted.");class zn extends E{}f(zn,"code",155209),f(zn,"message","ABI function signature can't pack ABI parameter.");class Hn extends E{}f(Hn,"code",155210),f(Hn,"message","Fails to perform transaction estimation.");class $n extends E{}f($n,"code",155211),f($n,"message","MaxFee * GasLimit exceeded the maximum permitted transaction gas fee.");class Gn extends E{}f(Gn,"code",155215),f(Gn,"message","Unsupported operation for transaction.");class Wn extends E{}f(Wn,"code",155218),f(Wn,"message","Invalid number of nft in transaction request.");class Xn extends E{}f(Xn,"code",155219),f(Xn,"message","Invalid destination address.");class Qn extends E{}f(Qn,"code",155220),f(Qn,"message","Wallet and token's blockchain mismatch.");class Yn extends E{}f(Yn,"code",155221),f(Yn,"message","Invalid amounts in transfer request.");class Jn extends E{}f(Jn,"code",155222),f(Jn,"message","NFT metadata can not be found.");class Zn extends E{}f(Zn,"code",155223),f(Zn,"message","Unsupported userId for get transactions.");class ei extends E{}f(ei,"code",155224),f(ei,"message","Failed to parse the provided amounts in request to decimals.");class ti extends E{}f(ti,"code",155225),f(ti,"message","Wallet and request's blockchain mismatch.");class ai extends E{}f(ai,"code",155226),f(ai,"message","Invalid source address.");class ri extends E{}f(ri,"code",155227),f(ri,"message","Invalid transaction type.");class ni extends E{}f(ni,"code",155228),f(ni,"message","Missing token ID.");class ii extends E{}f(ii,"code",155229),f(ii,"message","Transaction is not eligible for operation.");class si extends E{}f(si,"code",155230),f(si,"message","No abi signature provided.");class oi extends E{}f(oi,"code",155231),f(oi,"message","Transaction needs feeLevel or gasLimit provided.");class ci extends E{}f(ci,"code",155232),f(ci,"message","SCA transaction needs feeLevel provided.");class li extends E{}f(li,"code",155233),f(li,"message","Provided gasLimit is too low to complete the requested transaction.");class ui extends E{}f(ui,"code",155234),f(ui,"message","Transaction can't have both feeLevel and fee parameters provided.");class pi extends E{}f(pi,"code",155235),f(pi,"message","EIP1559 chains need maxFee/priorityFee provided.");class di extends E{}f(di,"code",155236),f(di,"message","The provided fee in request is invalid.");class fi extends E{}f(fi,"code",155237),f(fi,"message","PriorityFee cannot be larger than maxFee in creating transaction request.");class hi extends E{}f(hi,"code",155238),f(hi,"message","Non-EIP1559 chains need gasPrice provided.");class mi extends E{}f(mi,"code",155239),f(mi,"message","Invalid token address for transfer.");class vi extends E{}f(vi,"code",155240),f(vi,"message","Invalid token standard for transfer.");class gi extends E{}f(gi,"code",155241),f(gi,"message","Invalid token decimal for transfer.");class xi extends E{}f(xi,"code",155242),f(xi,"message","The lengths of amounts and nft tokens don't match.");class yi extends E{}f(yi,"code",155243),f(yi,"message","Missing bytecode for contract deployment.");class bi extends E{}f(bi,"code",155244),f(bi,"message","Cannot provide both WalletID and SourceAddress/Blockchain.");class Ei extends E{}f(Ei,"code",155245),f(Ei,"message","Invalid amount in contract execution request.");class Ci extends E{}f(Ci,"code",155247),f(Ci,"message","Cannot provide both CallData and AbiFunctionSignature/AbiParameters.");class Ti extends E{}f(Ti,"code",155254),f(Ti,"message","Non-EIP1559 chains don't support maxFee/priorityFee.");class Si extends E{}f(Si,"code",155257),f(Si,"message","the transfer amount is insufficient to make the destination account rent exempted or the balance of the source account is insufficient to remain rent exempted. The source address's remaining balance after transfer must be either zero or above the rent exemption threshold.");class wi extends E{}f(wi,"code",155258),f(wi,"message","The asset amount owned by the wallet is insufficient for the transaction.");class Ai extends E{}f(Ai,"code",155262),f(Ai,"message","Account is not found, could be caused by transacting from a Solana account with zero balance.");class Ii extends E{}f(Ii,"code",155264),f(Ii,"message","Wait for pending transactions to be included on the blockchain before submitting new requests. EVM chains restrict the number of queued transactions per sender address.");class Bi extends E{}f(Bi,"code",155501),f(Bi,"message","Frozen wallets can not be updated or interact with, only query.");class ki extends E{}f(ki,"code",155502),f(ki,"message","Max amount of wallets (tentative 1M) reached under 1 wallet set.");class Ri extends E{}f(Ri,"code",155503),f(Ri,"message","Metadata array length needs to match wallet count in create developer wallets request.");class _i extends E{}f(_i,"code",155504),f(_i,"message","Metadata array length needs to match number of blockchains in create user wallets request.");class Ui extends E{}f(Ui,"code",155505),f(Ui,"message","SCA wallet needs to wait for first-time transaction to be queued before processing more transactions.");class Ni extends E{}f(Ni,"code",155506),f(Ni,"message","SCA wallet config is invalid.");class Li extends E{}f(Li,"code",155507),f(Li,"message","SCA account is not supported on the given blockchain.");class Pi extends E{}f(Pi,"code",155508),f(Pi,"message","Can't create multiple user-controlled SCA wallets across multiple blockchains at a time.");class Oi extends E{}f(Oi,"code",155509),f(Oi,"message","Entity needs to setup paymaster policy in developer console before sending transaction on mainnet");class Di extends E{}f(Di,"code",155510),f(Di,"message","The operation is not supported on the blockchain you specify.");class Fi extends E{}f(Fi,"code",155511),f(Fi,"message","Blockchain is not supported for wallet creation.");class Vi extends E{}f(Vi,"code",155512),f(Vi,"message","The owner of the SCA wallet can not be found.");class Mi extends E{}f(Mi,"code",155514),f(Mi,"message","circle_4337_v1 SCA wallet must be deployed before being upgraded.");class qi extends E{}f(qi,"code",155515),f(qi,"message","The provided wallet account type is not supported by this API.");class ji extends E{}f(ji,"code",155516),f(ji,"message","The source wallet was originally created on an SCA version that does not support wallet derivation.");class Ki extends E{}f(Ki,"code",155517),f(Ki,"message","The SCA wallet is not deployed onchain.");class zi extends E{}f(zi,"code",155601),f(zi,"message","Failed to retrieve wallet set which already exists.");class Hi extends E{}f(Hi,"code",155701),f(Hi,"message","User canceled");class $i extends E{}f($i,"code",155702),f($i,"message","<Launch UI failed reason>");class Gi extends E{}f(Gi,"code",155703),f(Gi,"message","The code you entered is not the same as the first one.");class Wi extends E{}f(Wi,"code",155704),f(Wi,"message","Your PIN can't have repeating or consecutive numbers.");class Xi extends E{}f(Xi,"code",155705),f(Xi,"message","Your hint can't be the same as the answer.");class Qi extends E{}f(Qi,"code",155706),f(Qi,"message","Network error");class Yi extends E{}f(Yi,"code",155707),f(Yi,"message","Failed to encrypt data");class Ji extends E{}f(Ji,"code",155708),f(Ji,"message",'"Biometrics instead of PIN" is disabled');class Zi extends E{}f(Zi,"code",155709),f(Zi,"message","The device system doesn't support biometrics");class es extends E{}f(es,"code",155710),f(es,"message","Failed to decrypt biometrics key");class ts extends E{}f(ts,"code",155711),f(ts,"message","The user has not enabled biometrics yet");class as extends E{}f(as,"code",155712),f(as,"message","The user refused to enable biometrics");class rs extends E{}f(rs,"code",155713),f(rs,"message","Too many requests. Try again later");class ns extends E{}f(ns,"code",155714),f(ns,"message","Too many requests. The biometrics sensor on the device is locked.");class is extends E{}f(is,"code",155715),f(is,"message","The user didn't enable biometrics");class ss extends E{}f(ss,"code",155716),f(ss,"message","Unexpected error for biometrics");class os extends E{}f(os,"code",155717),f(os,"message","User secret is missing.");class cs extends E{}f(cs,"code",155718),f(cs,"message","User secret is invalid.");class ls extends E{}f(ls,"code",155719),f(ls,"message","User token and SDK API execute function does not match.");class us extends E{}f(us,"code",155720),f(us,"message","Social login failed.");class ps extends E{}f(ps,"code",155721),f(ps,"message","Login info is missing.");class ds extends E{}f(ds,"code",155801),f(ds,"message","Transaction or rawTransaction is invalid.");class fs extends E{}f(fs,"code",155802),f(fs,"message","Account not found.");class hs extends E{}f(hs,"code",155803),f(hs,"message","Not signer account.");class ms extends E{}f(ms,"code",155804),f(ms,"message","Transaction already signed.");class vs extends E{}f(vs,"code",155805),f(vs,"message","Transaction failed to deserialize.");class gs extends E{}f(gs,"code",155806),f(gs,"message","The transaction size exceeds blockchain limit.");class xs extends E{}f(xs,"code",155807),f(xs,"message","The chain ID is not supported for signing.");class ys extends E{}f(ys,"code",155808),f(ys,"message","The chain ID is missing in sign request.");class bs extends E{}f(bs,"code",156001),f(bs,"message","Cannot find target wallet in the system. Either the specified wallet doesn't exist or it's not accessible to the caller.");class Es extends E{}f(Es,"code",156002),f(Es,"message","Cannot find target token in the system. Either the specified token doesn't exist or it's not accessible to the caller.");class Cs extends E{}f(Cs,"code",156003),f(Cs,"message","Cannot find target transaction in the system. Either the specified transaction doesn't exist or it's not accessible to the caller.");class Ts extends E{}f(Ts,"code",156004),f(Ts,"message","Reusing an entity secret ciphertext is not allowed. Please re-encrypt the entity secret to generate new ciphertext.");class Ss extends E{}f(Ss,"code",156005),f(Ss,"message","Cannot find target wallet set in the system. Either no such wallet set, or it's not accessible to the caller.");class ws extends E{}f(ws,"code",156006),f(ws,"message","TEST_API key cannot be used with blockchain mainnets, or LIVE_API key cannot be used with blockchain testnets.");class As extends E{}f(As,"code",156007),f(As,"message","TEST_API key or LIVE_API key is not found for the request.");class Is extends E{}f(Is,"code",156008),f(Is,"message","Cannot find target entity config in the system. Either no such entity config, or it's not accessible to the caller.");class Bs extends E{}f(Bs,"code",156009),f(Bs,"message","Fail to parse id as UUID in url.");class ks extends E{}f(ks,"code",156010),f(ks,"message","Cannot find the corresponding entity in the system.");class Rs extends E{}f(Rs,"code",156011),f(Rs,"message","Cannot find target nftTokenId in the system.");class _s extends E{}f(_s,"code",156012),f(_s,"message","Cannot find corresponding pagination cursor in the system.");class Us extends E{}f(Us,"code",156013),f(Us,"message","The provided entity secret is invalid.");class Ns extends E{}f(Ns,"code",156014),f(Ns,"message","Pagination params are invalid. Only UUID format is supported for pageBefore and pageAfter.");class Ls extends E{}f(Ls,"code",156015),f(Ls,"message","The secret for this entity has already been set.");class Ps extends E{}f(Ps,"code",156016),f(Ps,"message","The entity secret has not been set yet. Please provide encrypted ciphertext in the console.");class Os extends E{}f(Os,"code",156017),f(Os,"message","The specified blockchain parameters are incorrect.");class Ds extends E{}f(Ds,"code",156018),f(Ds,"message","The uploaded recovery file is invalid.");class Fs extends E{}f(Fs,"code",156019),f(Fs,"message","Current entity secret is invalid. Please rotate the entity secret first.");class Vs extends E{}f(Vs,"code",156020),f(Vs,"message","Please use a new idempotency key.");class Ms extends E{}f(Ms,"code",156021),f(Ms,"message","A new wallet set ID is required.");class qs extends E{}f(qs,"code",156023),f(qs,"message","EncodedByHex is true in sign request, but the message is not hex encoded.");class js extends E{}f(js,"code",156024),f(js,"message","Data is not a valid JSON string in sign request.");class Ks extends E{}f(Ks,"code",156025),f(Ks,"message","Invalid message in request.");class zs extends E{}f(zs,"code",156026),f(zs,"message","Invalid typed data in request.");class Hs extends E{}f(Hs,"code",156027),f(Hs,"message","The specified blockchain is either not supported or deprecated.");class $s extends E{}f($s,"code",156030),f($s,"message","Invalid unsigned delegate action in request.");class Gs extends E{}f(Gs,"code",156031),f(Gs,"message","The specified token address is not supported.");class Ws extends E{}f(Ws,"code",156032),f(Ws,"message","The provided amount is invalid.");class Xs extends E{}f(Xs,"code",175001),f(Xs,"message","contract not found");class Qs extends E{}f(Qs,"code",175002),f(Qs,"message","no ABI JSON for the target contract");class Ys extends E{}f(Ys,"code",175003),f(Ys,"message","constructor parameters length must match constructor signature");class Js extends E{}f(Js,"code",175004),f(Js,"message","contract already exists");class Zs extends E{}f(Zs,"code",175005),f(Zs,"message","address is not a contract address");class eo extends E{}f(eo,"code",175006),f(eo,"message","contract is archived");class to extends E{}f(to,"code",175007),f(to,"message","invalid ABI JSON");class ao extends E{}f(ao,"code",175008),f(ao,"message","multi-layered proxies are not supported");class ro extends E{}f(ro,"code",175009),f(ro,"message","contract deployment pending");class no extends E{}f(no,"code",175010),f(no,"message","ABI function not found");class io extends E{}f(io,"code",175011),f(io,"message","empty update on a contract");class so extends E{}f(so,"code",175012),f(so,"message","unable to query contract");class oo extends E{}f(oo,"code",175013),f(oo,"message","ABI function is not supported");class co extends E{}f(co,"code",175201),f(co,"message","template not found");class lo extends E{}f(lo,"code",175202),f(lo,"message","deploying this template is temporarily disabled");class uo extends E{}f(uo,"code",175203),f(uo,"message","invalid template deployment parameter");class po extends E{}f(po,"code",175204),f(po,"message","missing required template deployment parameter");class fo extends E{}f(fo,"code",175205),f(fo,"message","estimation is not supported");class ho extends E{}f(ho,"code",175301),f(ho,"message","event subscription not found");class mo extends E{}f(mo,"code",175302),f(mo,"message","event subscription already exists");class vo extends E{}f(vo,"code",175303),f(vo,"message","the specified event signature does not exist");class go extends E{}f(go,"code",175401),f(go,"message","failed to parse id as UUID in url");class xo extends E{}f(xo,"code",175402),f(xo,"message","the specified blockchain is either not supported or deprecated");class yo extends E{}f(yo,"code",175403),f(yo,"message","please use a new idempotency key");class bo extends E{}f(bo,"code",175404),f(bo,"message","TEST_API key cannot be used with blockchain mainnets, or LIVE_API key cannot be used with blockchain testnets");class Eo extends E{}f(Eo,"code",175405),f(Eo,"message","TEST_API key or LIVE_API key is not found for the request");class Co extends E{}f(Co,"code",175406),f(Co,"message","this feature is temporarily disabled");class To extends E{}f(To,"code",175407),f(To,"message","the specified blockchain is currently unavailable");class So extends E{}f(So,"code",175408),f(So,"message","can not find corresponding pagination cursor in the system");class wo extends E{}f(wo,"code",175409),f(wo,"message","restricted entity cannot perform this operation");class Ao extends E{}f(Ao,"code",175410),f(Ao,"message","invalid address format");class Io extends E{}f(Io,"code",177001),f(Io,"message","transaction nonce is inconsistent with sender's latest nonce");class Bo extends E{}f(Bo,"code",177002),f(Bo,"message","user op nonce can not be larger than 0 when smart contract wallet hasn't been deployed");class ko extends E{}f(ko,"code",177003),f(ko,"message","failed to execute this request on EVM due to insufficient token when estimating fee");class Ro extends E{}f(Ro,"code",177004),f(Ro,"message","the total cost of executing transaction is higher than the balance of the user's account when estimating fee");class _o extends E{}f(_o,"code",177005),f(_o,"message","the sender address is not token owner or approved when estimating token transfer");class Uo extends E{}f(Uo,"code",177006),f(Uo,"message","gas required exceeds allowance when estimating fee");class No extends E{}f(No,"code",177007),f(No,"message","estimate fee execution reverted");class Lo extends E{}f(Lo,"code",177008),f(Lo,"message","ABI function signature can't pack ABI parameter");class Po extends E{}f(Po,"code",177009),f(Po,"message","fails to perform transaction estimation");class Oo extends E{}f(Oo,"code",177010),f(Oo,"message","MaxFee * GasLimit exceeds configurable max transaction fee (default is 1 native token)");class Do extends E{}f(Do,"code",177011),f(Do,"message","transaction needs feeLevel or gasLimit provided");class Fo extends E{}f(Fo,"code",177012),f(Fo,"message","SCA transaction needs feeLevel provided");class Vo extends E{}f(Vo,"code",177013),f(Vo,"message","EIP1559 chains need maxFee/priorityFee provided");class Mo extends E{}f(Mo,"code",177014),f(Mo,"message","priorityFee cannot be larger than maxFee in creating transaction request");class qo extends E{}f(qo,"code",177015),f(qo,"message","missing bytecode for contract deployment");class jo extends E{}f(jo,"code",177016),f(jo,"message","cannot provide both WalletID and SourceAddress/Blockchain");class Ko extends E{}f(Ko,"code",177017),f(Ko,"message","invalid amount in contract execution request");class zo extends E{}f(zo,"code",177018),f(zo,"message","policy is not activated and cannot be used");class Ho extends E{}f(Ho,"code",177019),f(Ho,"message","exceeded max daily transaction of the policy");class $o extends E{}f($o,"code",177020),f($o,"message","exceeded max spend USD per transaction of the policy");class Go extends E{}f(Go,"code",177021),f(Go,"message","exceeded max spend USD daily of the policy");class Wo extends E{}f(Wo,"code",177022),f(Wo,"message","exceeded max native token daily of the policy");class Xo extends E{}f(Xo,"code",177023),f(Xo,"message","sender is in policy blocklist");class Qo extends E{}f(Qo,"code",177024),f(Qo,"message","Wallet and request's blockchain mismatch.");class Yo extends E{}f(Yo,"code",177025),f(Yo,"message","the asset amount owned by the wallet is insufficient for the transaction");class Jo extends E{}f(Jo,"code",177026),f(Jo,"message","Wait for pending transactions to be included on the blockchain before submitting new requests. EVM chains restrict the number of queued transactions per sender address.");class Zo extends E{}f(Zo,"code",177301),f(Zo,"message","wallet is Frozen");class ec extends E{}f(ec,"code",177302),f(ec,"message","invalid sca wallet config");class tc extends E{}f(tc,"code",177303),f(tc,"message","SCA wallet first-time transaction is still in progress");class ac extends E{}f(ac,"code",177304),f(ac,"message","SCA account is not supported on the given blockchain");class rc extends E{}f(rc,"code",177305),f(rc,"message","entity is not eligible for SCA account creation. Please check paymaster policy setup");class nc extends E{}f(nc,"code",177601),f(nc,"message","cannot find target wallet in the system. Either the specified wallet doesn't exist or it's not accessible to the caller");class ic extends E{}f(ic,"code",177602),f(ic,"message","reusing an entity secret ciphertext is not allowed. Please re-encrypt the entity secret to generate new ciphertext");class sc extends E{}f(sc,"code",177603),f(sc,"message","cannot find the corresponding entity in the system");class oc extends E{}f(oc,"code",177604),f(oc,"message","the provided entity secret is invalid");class cc extends E{}f(cc,"code",177605),f(cc,"message","the entity secret has not been set yet. Please provide encrypted ciphertext in the console");class lc extends E{}f(lc,"code",177606),f(lc,"message","current entity secret is invalid. Please rotate the entity secret first");class uc extends E{}f(uc,"code",177607),f(uc,"message","please use a new idempotency key");class pc extends E{}f(pc,"code",177901),f(pc,"message","smart contract query failed");const Nf={undefined:E,[br.code]:br,[Er.code]:Er,[Cr.code]:Cr,[Tr.code]:Tr,[Sr.code]:Sr,[wr.code]:wr,[Ar.code]:Ar,[Ir.code]:Ir,[Br.code]:Br,[kr.code]:kr,[Fr.code]:Fr,[Vr.code]:Vr,[Mr.code]:Mr,[qr.code]:qr,[jr.code]:jr,[Kr.code]:Kr,[zr.code]:zr,[Hr.code]:Hr,[$r.code]:$r,[Gr.code]:Gr,[Wr.code]:Wr,[Xr.code]:Xr,[Qr.code]:Qr,[Yr.code]:Yr,[Jr.code]:Jr,[Zr.code]:Zr,[en.code]:en,[tn.code]:tn,[an.code]:an,[rn.code]:rn,[nn.code]:nn,[sn.code]:sn,[on.code]:on,[cn.code]:cn,[ln.code]:ln,[un.code]:un,[pn.code]:pn,[dn.code]:dn,[fn.code]:fn,[hn.code]:hn,[mn.code]:mn,[vn.code]:vn,[gn.code]:gn,[xn.code]:xn,[yn.code]:yn,[bn.code]:bn,[En.code]:En,[Cn.code]:Cn,[Tn.code]:Tn,[Sn.code]:Sn,[wn.code]:wn,[An.code]:An,[In.code]:In,[Bn.code]:Bn,[kn.code]:kn,[Rn.code]:Rn,[_n.code]:_n,[Un.code]:Un,[Nn.code]:Nn,[Ln.code]:Ln,[Pn.code]:Pn,[On.code]:On,[Dn.code]:Dn,[Fn.code]:Fn,[Vn.code]:Vn,[Mn.code]:Mn,[qn.code]:qn,[jn.code]:jn,[Kn.code]:Kn,[zn.code]:zn,[Hn.code]:Hn,[$n.code]:$n,[Gn.code]:Gn,[Wn.code]:Wn,[Xn.code]:Xn,[Qn.code]:Qn,[Yn.code]:Yn,[Jn.code]:Jn,[Zn.code]:Zn,[ei.code]:ei,[ti.code]:ti,[ai.code]:ai,[ri.code]:ri,[ni.code]:ni,[ii.code]:ii,[si.code]:si,[oi.code]:oi,[ci.code]:ci,[li.code]:li,[ui.code]:ui,[pi.code]:pi,[di.code]:di,[fi.code]:fi,[hi.code]:hi,[mi.code]:mi,[vi.code]:vi,[gi.code]:gi,[xi.code]:xi,[yi.code]:yi,[bi.code]:bi,[Ei.code]:Ei,[Ci.code]:Ci,[Ti.code]:Ti,[Si.code]:Si,[wi.code]:wi,[Ai.code]:Ai,[Ii.code]:Ii,[Bi.code]:Bi,[ki.code]:ki,[Ri.code]:Ri,[_i.code]:_i,[Ui.code]:Ui,[Ni.code]:Ni,[Li.code]:Li,[Pi.code]:Pi,[Oi.code]:Oi,[Di.code]:Di,[Fi.code]:Fi,[Vi.code]:Vi,[Mi.code]:Mi,[qi.code]:qi,[ji.code]:ji,[Ki.code]:Ki,[zi.code]:zi,[Hi.code]:Hi,[$i.code]:$i,[Gi.code]:Gi,[Wi.code]:Wi,[Xi.code]:Xi,[Qi.code]:Qi,[Yi.code]:Yi,[Ji.code]:Ji,[Zi.code]:Zi,[es.code]:es,[ts.code]:ts,[as.code]:as,[rs.code]:rs,[ns.code]:ns,[is.code]:is,[ss.code]:ss,[os.code]:os,[cs.code]:cs,[ls.code]:ls,[us.code]:us,[ps.code]:ps,[ds.code]:ds,[fs.code]:fs,[hs.code]:hs,[ms.code]:ms,[vs.code]:vs,[gs.code]:gs,[xs.code]:xs,[ys.code]:ys,[bs.code]:bs,[Es.code]:Es,[Cs.code]:Cs,[Ts.code]:Ts,[Ss.code]:Ss,[ws.code]:ws,[As.code]:As,[Is.code]:Is,[Bs.code]:Bs,[ks.code]:ks,[Rs.code]:Rs,[_s.code]:_s,[Us.code]:Us,[Ns.code]:Ns,[Ls.code]:Ls,[Ps.code]:Ps,[Os.code]:Os,[Ds.code]:Ds,[Fs.code]:Fs,[Vs.code]:Vs,[Ms.code]:Ms,[qs.code]:qs,[js.code]:js,[Ks.code]:Ks,[zs.code]:zs,[Hs.code]:Hs,[$s.code]:$s,[Gs.code]:Gs,[Ws.code]:Ws,[Xs.code]:Xs,[Qs.code]:Qs,[Ys.code]:Ys,[Js.code]:Js,[Zs.code]:Zs,[eo.code]:eo,[to.code]:to,[ao.code]:ao,[ro.code]:ro,[no.code]:no,[io.code]:io,[so.code]:so,[oo.code]:oo,[co.code]:co,[lo.code]:lo,[uo.code]:uo,[po.code]:po,[fo.code]:fo,[ho.code]:ho,[mo.code]:mo,[vo.code]:vo,[go.code]:go,[xo.code]:xo,[yo.code]:yo,[bo.code]:bo,[Eo.code]:Eo,[Co.code]:Co,[To.code]:To,[So.code]:So,[wo.code]:wo,[Ao.code]:Ao,[Io.code]:Io,[Bo.code]:Bo,[ko.code]:ko,[Ro.code]:Ro,[_o.code]:_o,[Uo.code]:Uo,[No.code]:No,[Lo.code]:Lo,[Po.code]:Po,[Oo.code]:Oo,[Do.code]:Do,[Fo.code]:Fo,[Vo.code]:Vo,[Mo.code]:Mo,[qo.code]:qo,[jo.code]:jo,[Ko.code]:Ko,[zo.code]:zo,[Ho.code]:Ho,[$o.code]:$o,[Go.code]:Go,[Wo.code]:Wo,[Xo.code]:Xo,[Qo.code]:Qo,[Yo.code]:Yo,[Jo.code]:Jo,[Zo.code]:Zo,[ec.code]:ec,[tc.code]:tc,[ac.code]:ac,[rc.code]:rc,[nc.code]:nc,[ic.code]:ic,[sc.code]:sc,[oc.code]:oc,[cc.code]:cc,[lc.code]:lc,[uc.code]:uc,[pc.code]:pc};function x1(e){return Nf[e]??Nf.undefined}function y1(e){const t=e.response.data,r=e.response.status;return b1({code:t?.code??r,status:r,message:t?.message,url:e.config.url,method:e.config.method.toUpperCase(),error:e})}function b1({code:e,status:t,message:r,url:a,method:n,error:s}){const i=x1(e);return new i({message:r,code:e,url:a,method:n,status:t,error:s})}function J(e){return e.response?y1(e):h1(e)}const ae=e=>{const{data:t,headers:r,...a}=e;return{...a,data:t.data,headers:r}},E1=({configurationsClient:e})=>async t=>{try{return ae(await e.MonitorTokens.createMonitoredTokens(t))}catch(r){throw ee(r)?J(r):r}},C1=({configurationsClient:e})=>async t=>{try{return await e.MonitorTokens.deleteMonitoredTokens(t)}catch(r){throw ee(r)?J(r):r}},T1=({configurationsClient:e})=>async t=>{try{return ae(await e.MonitorTokens.listMonitoredTokens(t?.blockchain,t?.tokenAddress,t?.symbol,t?.from,t?.to,t?.pageBefore,t?.pageAfter,t?.pageSize))}catch(r){throw ee(r)?J(r):r}},S1=({configurationsClient:e})=>async t=>{try{return ae(await e.MonitorTokens.updateMonitoredTokens(t))}catch(r){throw ee(r)?J(r):r}},w1=({configurationsClient:e})=>async t=>{try{return await e.MonitorTokens.updateMonitoredTokensScope(t)}catch(r){throw ee(r)?J(r):r}},A1=({configurationsClient:e})=>async t=>{try{return ae(await e.WebhookSubscriptions.createSubscription(t))}catch(r){throw ee(r)?J(r):r}},I1=({configurationsClient:e})=>async t=>{try{return await e.WebhookSubscriptions.deleteSubscription(t)}catch(r){throw ee(r)?J(r):r}},B1=({configurationsClient:e})=>async t=>{try{return ae(await e.WebhookSubscriptions.getSubscription(t))}catch(r){throw ee(r)?J(r):r}},k1=({configurationsClient:e})=>async t=>{try{return ae(await e.WebhookSubscriptions.getNotificationSignature(t))}catch(r){throw ee(r)?J(r):r}},R1=({configurationsClient:e})=>async()=>{try{return ae(await e.WebhookSubscriptions.getSubscriptions())}catch(t){throw ee(t)?J(t):t}},_1=({configurationsClient:e})=>async({id:t,...r})=>{try{return ae(await e.WebhookSubscriptions.updateSubscription(t,r))}catch(a){throw ee(a)?J(a):a}};var U1=Object.defineProperty,N1=(e,t,r)=>t in e?U1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,L1=(e,t,r)=>N1(e,typeof t!="symbol"?t+"":t,r);class P1{constructor(){L1(this,"data",{})}get(t){return Promise.resolve(this.data[t]??void 0)}set(t,r){return r===void 0?delete this.data[t]:this.data[t]=r,Promise.resolve()}}var ie={options:{usePureJavaScript:!1}},Bu={},O1=Bu,Lf={};Bu.encode=function(e,t,r){if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');if(r!==void 0&&typeof r!="number")throw new TypeError('"maxline" must be a number.');var a="";if(!(e instanceof Uint8Array))a=D1(e,t);else{var n=0,s=t.length,i=t.charAt(0),o=[0];for(n=0;n<e.length;++n){for(var c=0,l=e[n];c<o.length;++c)l+=o[c]<<8,o[c]=l%s,l=l/s|0;for(;l>0;)o.push(l%s),l=l/s|0}for(n=0;e[n]===0&&n<e.length-1;++n)a+=i;for(n=o.length-1;n>=0;--n)a+=t[o[n]]}if(r){var u=new RegExp(".{1,"+r+"}","g");a=a.match(u).join(`\r
23
+ `)}return a},Bu.decode=function(e,t){if(typeof e!="string")throw new TypeError('"input" must be a string.');if(typeof t!="string")throw new TypeError('"alphabet" must be a string.');var r=Lf[t];if(!r){r=Lf[t]=[];for(var a=0;a<t.length;++a)r[t.charCodeAt(a)]=a}e=e.replace(/\s/g,"");for(var n=t.length,s=t.charAt(0),i=[0],a=0;a<e.length;a++){var o=r[e.charCodeAt(a)];if(o===void 0)return;for(var c=0,l=o;c<i.length;++c)l+=i[c]*n,i[c]=l&255,l>>=8;for(;l>0;)i.push(l&255),l>>=8}for(var u=0;e[u]===s&&u<e.length-1;++u)i.push(0);return typeof Buffer<"u"?Buffer.from(i.reverse()):new Uint8Array(i.reverse())};function D1(e,t){var r=0,a=t.length,n=t.charAt(0),s=[0];for(r=0;r<e.length();++r){for(var i=0,o=e.at(r);i<s.length;++i)o+=s[i]<<8,s[i]=o%a,o=o/a|0;for(;o>0;)s.push(o%a),o=o/a|0}var c="";for(r=0;e.at(r)===0&&r<e.length()-1;++r)c+=n;for(r=s.length-1;r>=0;--r)c+=t[s[r]];return c}var Pf=ie,Of=O1,w=Pf.util=Pf.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){w.nextTick=process.nextTick,typeof setImmediate=="function"?w.setImmediate=setImmediate:w.setImmediate=w.nextTick;return}if(typeof setImmediate=="function"){w.setImmediate=function(){return setImmediate.apply(void 0,arguments)},w.nextTick=function(i){return setImmediate(i)};return}if(w.setImmediate=function(i){setTimeout(i,0)},typeof window<"u"&&typeof window.postMessage=="function"){let i=function(o){if(o.source===window&&o.data===e){o.stopPropagation();var c=t.slice();t.length=0,c.forEach(function(l){l()})}};var e="forge.setImmediate",t=[];w.setImmediate=function(o){t.push(o),t.length===1&&window.postMessage(e,"*")},window.addEventListener("message",i,!0)}if(typeof MutationObserver<"u"){var r=Date.now(),a=!0,n=document.createElement("div"),t=[];new MutationObserver(function(){var o=t.slice();t.length=0,o.forEach(function(c){c()})}).observe(n,{attributes:!0});var s=w.setImmediate;w.setImmediate=function(o){Date.now()-r>15?(r=Date.now(),s(o)):(t.push(o),t.length===1&&n.setAttribute("a",a=!a))}}w.nextTick=w.setImmediate})(),w.isNodejs=typeof process<"u"&&process.versions&&process.versions.node,w.globalScope=function(){return w.isNodejs?$h:typeof self>"u"?window:self}(),w.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},w.isArrayBuffer=function(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer},w.isArrayBufferView=function(e){return e&&w.isArrayBuffer(e.buffer)&&e.byteLength!==void 0};function dc(e){if(!(e===8||e===16||e===24||e===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}w.ByteBuffer=ku;function ku(e){if(this.data="",this.read=0,typeof e=="string")this.data=e;else if(w.isArrayBuffer(e)||w.isArrayBufferView(e))if(typeof Buffer<"u"&&e instanceof Buffer)this.data=e.toString("binary");else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch{for(var r=0;r<t.length;++r)this.putByte(t[r])}}else(e instanceof ku||typeof e=="object"&&typeof e.data=="string"&&typeof e.read=="number")&&(this.data=e.data,this.read=e.read);this._constructedStringLength=0}w.ByteStringBuffer=ku;var F1=4096;w.ByteStringBuffer.prototype._optimizeConstructedString=function(e){this._constructedStringLength+=e,this._constructedStringLength>F1&&(this.data.substr(0,1),this._constructedStringLength=0)},w.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read},w.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0},w.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))},w.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);for(var r=this.data;t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return this.data=r,this._optimizeConstructedString(t),this},w.ByteStringBuffer.prototype.putBytes=function(e){return this.data+=e,this._optimizeConstructedString(e.length),this},w.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(w.encodeUtf8(e))},w.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))},w.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))},w.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))},w.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))},w.ByteStringBuffer.prototype.putInt=function(e,t){dc(t);var r="";do t-=8,r+=String.fromCharCode(e>>t&255);while(t>0);return this.putBytes(r)},w.ByteStringBuffer.prototype.putSignedInt=function(e,t){return e<0&&(e+=2<<t-1),this.putInt(e,t)},w.ByteStringBuffer.prototype.putBuffer=function(e){return this.putBytes(e.getBytes())},w.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)},w.ByteStringBuffer.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,e},w.ByteStringBuffer.prototype.getInt24=function(){var e=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,e},w.ByteStringBuffer.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,e},w.ByteStringBuffer.prototype.getInt16Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,e},w.ByteStringBuffer.prototype.getInt24Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,e},w.ByteStringBuffer.prototype.getInt32Le=function(){var e=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,e},w.ByteStringBuffer.prototype.getInt=function(e){dc(e);var t=0;do t=(t<<8)+this.data.charCodeAt(this.read++),e-=8;while(e>0);return t},w.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},w.ByteStringBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},w.ByteStringBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},w.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)},w.ByteStringBuffer.prototype.setAt=function(e,t){return this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1),this},w.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)},w.ByteStringBuffer.prototype.copy=function(){var e=w.createBuffer(this.data);return e.read=this.read,e},w.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this},w.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this},w.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);return this.data=this.data.substr(this.read,t),this.read=0,this},w.ByteStringBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.length;++t){var r=this.data.charCodeAt(t);r<16&&(e+="0"),e+=r.toString(16)}return e},w.ByteStringBuffer.prototype.toString=function(){return w.decodeUtf8(this.bytes())};function V1(e,t){t=t||{},this.read=t.readOffset||0,this.growSize=t.growSize||1024;var r=w.isArrayBuffer(e),a=w.isArrayBufferView(e);if(r||a){r?this.data=new DataView(e):this.data=new DataView(e.buffer,e.byteOffset,e.byteLength),this.write="writeOffset"in t?t.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,e!=null&&this.putBytes(e),"writeOffset"in t&&(this.write=t.writeOffset)}w.DataBuffer=V1,w.DataBuffer.prototype.length=function(){return this.write-this.read},w.DataBuffer.prototype.isEmpty=function(){return this.length()<=0},w.DataBuffer.prototype.accommodate=function(e,t){if(this.length()>=e)return this;t=Math.max(t||this.growSize,e);var r=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),a=new Uint8Array(this.length()+t);return a.set(r),this.data=new DataView(a.buffer),this},w.DataBuffer.prototype.putByte=function(e){return this.accommodate(1),this.data.setUint8(this.write++,e),this},w.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var r=0;r<t;++r)this.data.setUint8(e);return this},w.DataBuffer.prototype.putBytes=function(e,t){if(w.isArrayBufferView(e)){var r=new Uint8Array(e.buffer,e.byteOffset,e.byteLength),a=r.byteLength-r.byteOffset;this.accommodate(a);var n=new Uint8Array(this.data.buffer,this.write);return n.set(r),this.write+=a,this}if(w.isArrayBuffer(e)){var r=new Uint8Array(e);this.accommodate(r.byteLength);var n=new Uint8Array(this.data.buffer);return n.set(r,this.write),this.write+=r.byteLength,this}if(e instanceof w.DataBuffer||typeof e=="object"&&typeof e.read=="number"&&typeof e.write=="number"&&w.isArrayBufferView(e.data)){var r=new Uint8Array(e.data.byteLength,e.read,e.length());this.accommodate(r.byteLength);var n=new Uint8Array(e.data.byteLength,this.write);return n.set(r),this.write+=r.byteLength,this}if(e instanceof w.ByteStringBuffer&&(e=e.data,t="binary"),t=t||"binary",typeof e=="string"){var s;if(t==="hex")return this.accommodate(Math.ceil(e.length/2)),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.hex.decode(e,s,this.write),this;if(t==="base64")return this.accommodate(Math.ceil(e.length/4)*3),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.base64.decode(e,s,this.write),this;if(t==="utf8"&&(e=w.encodeUtf8(e),t="binary"),t==="binary"||t==="raw")return this.accommodate(e.length),s=new Uint8Array(this.data.buffer,this.write),this.write+=w.binary.raw.decode(s),this;if(t==="utf16")return this.accommodate(e.length*2),s=new Uint16Array(this.data.buffer,this.write),this.write+=w.text.utf16.encode(s),this;throw new Error("Invalid encoding: "+t)}throw Error("Invalid parameter: "+e)},w.DataBuffer.prototype.putBuffer=function(e){return this.putBytes(e),e.clear(),this},w.DataBuffer.prototype.putString=function(e){return this.putBytes(e,"utf16")},w.DataBuffer.prototype.putInt16=function(e){return this.accommodate(2),this.data.setInt16(this.write,e),this.write+=2,this},w.DataBuffer.prototype.putInt24=function(e){return this.accommodate(3),this.data.setInt16(this.write,e>>8&65535),this.data.setInt8(this.write,e>>16&255),this.write+=3,this},w.DataBuffer.prototype.putInt32=function(e){return this.accommodate(4),this.data.setInt32(this.write,e),this.write+=4,this},w.DataBuffer.prototype.putInt16Le=function(e){return this.accommodate(2),this.data.setInt16(this.write,e,!0),this.write+=2,this},w.DataBuffer.prototype.putInt24Le=function(e){return this.accommodate(3),this.data.setInt8(this.write,e>>16&255),this.data.setInt16(this.write,e>>8&65535,!0),this.write+=3,this},w.DataBuffer.prototype.putInt32Le=function(e){return this.accommodate(4),this.data.setInt32(this.write,e,!0),this.write+=4,this},w.DataBuffer.prototype.putInt=function(e,t){dc(t),this.accommodate(t/8);do t-=8,this.data.setInt8(this.write++,e>>t&255);while(t>0);return this},w.DataBuffer.prototype.putSignedInt=function(e,t){return dc(t),this.accommodate(t/8),e<0&&(e+=2<<t-1),this.putInt(e,t)},w.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)},w.DataBuffer.prototype.getInt16=function(){var e=this.data.getInt16(this.read);return this.read+=2,e},w.DataBuffer.prototype.getInt24=function(){var e=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,e},w.DataBuffer.prototype.getInt32=function(){var e=this.data.getInt32(this.read);return this.read+=4,e},w.DataBuffer.prototype.getInt16Le=function(){var e=this.data.getInt16(this.read,!0);return this.read+=2,e},w.DataBuffer.prototype.getInt24Le=function(){var e=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,e},w.DataBuffer.prototype.getInt32Le=function(){var e=this.data.getInt32(this.read,!0);return this.read+=4,e},w.DataBuffer.prototype.getInt=function(e){dc(e);var t=0;do t=(t<<8)+this.data.getInt8(this.read++),e-=8;while(e>0);return t},w.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e),r=2<<e-2;return t>=r&&(t-=r<<1),t},w.DataBuffer.prototype.getBytes=function(e){var t;return e?(e=Math.min(this.length(),e),t=this.data.slice(this.read,this.read+e),this.read+=e):e===0?t="":(t=this.read===0?this.data:this.data.slice(this.read),this.clear()),t},w.DataBuffer.prototype.bytes=function(e){return typeof e>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)},w.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)},w.DataBuffer.prototype.setAt=function(e,t){return this.data.setUint8(e,t),this},w.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)},w.DataBuffer.prototype.copy=function(){return new w.DataBuffer(this)},w.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read),t=new Uint8Array(e.byteLength);t.set(e),this.data=new DataView(t),this.write-=this.read,this.read=0}return this},w.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this},w.DataBuffer.prototype.truncate=function(e){return this.write=Math.max(0,this.length()-e),this.read=Math.min(this.read,this.write),this},w.DataBuffer.prototype.toHex=function(){for(var e="",t=this.read;t<this.data.byteLength;++t){var r=this.data.getUint8(t);r<16&&(e+="0"),e+=r.toString(16)}return e},w.DataBuffer.prototype.toString=function(e){var t=new Uint8Array(this.data,this.read,this.length());if(e=e||"utf8",e==="binary"||e==="raw")return w.binary.raw.encode(t);if(e==="hex")return w.binary.hex.encode(t);if(e==="base64")return w.binary.base64.encode(t);if(e==="utf8")return w.text.utf8.decode(t);if(e==="utf16")return w.text.utf16.decode(t);throw new Error("Invalid encoding: "+e)},w.createBuffer=function(e,t){return t=t||"raw",e!==void 0&&t==="utf8"&&(e=w.encodeUtf8(e)),new w.ByteBuffer(e)},w.fillString=function(e,t){for(var r="";t>0;)t&1&&(r+=e),t>>>=1,t>0&&(e+=e);return r},w.xorBytes=function(e,t,r){for(var a="",n="",s="",i=0,o=0;r>0;--r,++i)n=e.charCodeAt(i)^t.charCodeAt(i),o>=10&&(a+=s,s="",o=0),s+=String.fromCharCode(n),++o;return a+=s,a},w.hexToBytes=function(e){var t="",r=0;for(e.length&!0&&(r=1,t+=String.fromCharCode(parseInt(e[0],16)));r<e.length;r+=2)t+=String.fromCharCode(parseInt(e.substr(r,2),16));return t},w.bytesToHex=function(e){return w.createBuffer(e).toHex()},w.int32ToBytes=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var ca="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",la=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],Df="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";w.encode64=function(e,t){for(var r="",a="",n,s,i,o=0;o<e.length;)n=e.charCodeAt(o++),s=e.charCodeAt(o++),i=e.charCodeAt(o++),r+=ca.charAt(n>>2),r+=ca.charAt((n&3)<<4|s>>4),isNaN(s)?r+="==":(r+=ca.charAt((s&15)<<2|i>>6),r+=isNaN(i)?"=":ca.charAt(i&63)),t&&r.length>t&&(a+=r.substr(0,t)+`\r
24
+ `,r=r.substr(t));return a+=r,a},w.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var t="",r,a,n,s,i=0;i<e.length;)r=la[e.charCodeAt(i++)-43],a=la[e.charCodeAt(i++)-43],n=la[e.charCodeAt(i++)-43],s=la[e.charCodeAt(i++)-43],t+=String.fromCharCode(r<<2|a>>4),n!==64&&(t+=String.fromCharCode((a&15)<<4|n>>2),s!==64&&(t+=String.fromCharCode((n&3)<<6|s)));return t},w.encodeUtf8=function(e){return unescape(encodeURIComponent(e))},w.decodeUtf8=function(e){return decodeURIComponent(escape(e))},w.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:Of.encode,decode:Of.decode}},w.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)},w.binary.raw.decode=function(e,t,r){var a=t;a||(a=new Uint8Array(e.length)),r=r||0;for(var n=r,s=0;s<e.length;++s)a[n++]=e.charCodeAt(s);return t?n-r:a},w.binary.hex.encode=w.bytesToHex,w.binary.hex.decode=function(e,t,r){var a=t;a||(a=new Uint8Array(Math.ceil(e.length/2))),r=r||0;var n=0,s=r;for(e.length&1&&(n=1,a[s++]=parseInt(e[0],16));n<e.length;n+=2)a[s++]=parseInt(e.substr(n,2),16);return t?s-r:a},w.binary.base64.encode=function(e,t){for(var r="",a="",n,s,i,o=0;o<e.byteLength;)n=e[o++],s=e[o++],i=e[o++],r+=ca.charAt(n>>2),r+=ca.charAt((n&3)<<4|s>>4),isNaN(s)?r+="==":(r+=ca.charAt((s&15)<<2|i>>6),r+=isNaN(i)?"=":ca.charAt(i&63)),t&&r.length>t&&(a+=r.substr(0,t)+`\r
25
+ `,r=r.substr(t));return a+=r,a},w.binary.base64.decode=function(e,t,r){var a=t;a||(a=new Uint8Array(Math.ceil(e.length/4)*3)),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=r||0;for(var n,s,i,o,c=0,l=r;c<e.length;)n=la[e.charCodeAt(c++)-43],s=la[e.charCodeAt(c++)-43],i=la[e.charCodeAt(c++)-43],o=la[e.charCodeAt(c++)-43],a[l++]=n<<2|s>>4,i!==64&&(a[l++]=(s&15)<<4|i>>2,o!==64&&(a[l++]=(i&3)<<6|o));return t?l-r:a.subarray(0,l)},w.binary.base58.encode=function(e,t){return w.binary.baseN.encode(e,Df,t)},w.binary.base58.decode=function(e,t){return w.binary.baseN.decode(e,Df,t)},w.text={utf8:{},utf16:{}},w.text.utf8.encode=function(e,t,r){e=w.encodeUtf8(e);var a=t;a||(a=new Uint8Array(e.length)),r=r||0;for(var n=r,s=0;s<e.length;++s)a[n++]=e.charCodeAt(s);return t?n-r:a},w.text.utf8.decode=function(e){return w.decodeUtf8(String.fromCharCode.apply(null,e))},w.text.utf16.encode=function(e,t,r){var a=t;a||(a=new Uint8Array(e.length*2));var n=new Uint16Array(a.buffer);r=r||0;for(var s=r,i=r,o=0;o<e.length;++o)n[i++]=e.charCodeAt(o),s+=2;return t?s-r:a},w.text.utf16.decode=function(e){return String.fromCharCode.apply(null,new Uint16Array(e.buffer))},w.deflate=function(e,t,r){if(t=w.decode64(e.deflate(w.encode64(t)).rval),r){var a=2,n=t.charCodeAt(1);n&32&&(a=6),t=t.substring(a,t.length-4)}return t},w.inflate=function(e,t,r){var a=e.inflate(w.encode64(t)).rval;return a===null?null:w.decode64(a)};var Ru=function(e,t,r){if(!e)throw new Error("WebStorage not available.");var a;if(r===null?a=e.removeItem(t):(r=w.encode64(JSON.stringify(r)),a=e.setItem(t,r)),typeof a<"u"&&a.rval!==!0){var n=new Error(a.error.message);throw n.id=a.error.id,n.name=a.error.name,n}},_u=function(e,t){if(!e)throw new Error("WebStorage not available.");var r=e.getItem(t);if(e.init)if(r.rval===null){if(r.error){var a=new Error(r.error.message);throw a.id=r.error.id,a.name=r.error.name,a}r=null}else r=r.rval;return r!==null&&(r=JSON.parse(w.decode64(r))),r},M1=function(e,t,r,a){var n=_u(e,t);n===null&&(n={}),n[r]=a,Ru(e,t,n)},q1=function(e,t,r){var a=_u(e,t);return a!==null&&(a=r in a?a[r]:null),a},j1=function(e,t,r){var a=_u(e,t);if(a!==null&&r in a){delete a[r];var n=!0;for(var s in a){n=!1;break}n&&(a=null),Ru(e,t,a)}},K1=function(e,t){Ru(e,t,null)},Gc=function(e,t,r){var a=null;typeof r>"u"&&(r=["web","flash"]);var n,s=!1,i=null;for(var o in r){n=r[o];try{if(n==="flash"||n==="both"){if(t[0]===null)throw new Error("Flash local storage not available.");a=e.apply(this,t),s=n==="flash"}(n==="web"||n==="both")&&(t[0]=localStorage,a=e.apply(this,t),s=!0)}catch(c){i=c}if(s)break}if(!s)throw i;return a};w.setItem=function(e,t,r,a,n){Gc(M1,arguments,n)},w.getItem=function(e,t,r,a){return Gc(q1,arguments,a)},w.removeItem=function(e,t,r,a){Gc(j1,arguments,a)},w.clearItems=function(e,t,r){Gc(K1,arguments,r)},w.isEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},w.format=function(e){for(var t=/%./g,r,a,n=0,s=[],i=0;r=t.exec(e);){a=e.substring(i,t.lastIndex-2),a.length>0&&s.push(a),i=t.lastIndex;var o=r[0][1];switch(o){case"s":case"o":n<arguments.length?s.push(arguments[n+++1]):s.push("<?>");break;case"%":s.push("%");break;default:s.push("<%"+o+"?>")}}return s.push(e.substring(i)),s.join("")},w.formatNumber=function(e,t,r,a){var n=e,s=isNaN(t=Math.abs(t))?2:t,i=r===void 0?",":r,o=a===void 0?".":a,c=n<0?"-":"",l=parseInt(n=Math.abs(+n||0).toFixed(s),10)+"",u=l.length>3?l.length%3:0;return c+(u?l.substr(0,u)+o:"")+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+o)+(s?i+Math.abs(n-l).toFixed(s).slice(2):"")},w.formatSize=function(e){return e>=1073741824?e=w.formatNumber(e/1073741824,2,".","")+" GiB":e>=1048576?e=w.formatNumber(e/1048576,2,".","")+" MiB":e>=1024?e=w.formatNumber(e/1024,0)+" KiB":e=w.formatNumber(e,0)+" bytes",e},w.bytesFromIP=function(e){return e.indexOf(".")!==-1?w.bytesFromIPv4(e):e.indexOf(":")!==-1?w.bytesFromIPv6(e):null},w.bytesFromIPv4=function(e){if(e=e.split("."),e.length!==4)return null;for(var t=w.createBuffer(),r=0;r<e.length;++r){var a=parseInt(e[r],10);if(isNaN(a))return null;t.putByte(a)}return t.getBytes()},w.bytesFromIPv6=function(e){var t=0;e=e.split(":").filter(function(i){return i.length===0&&++t,!0});for(var r=(8-e.length+t)*2,a=w.createBuffer(),n=0;n<8;++n){if(!e[n]||e[n].length===0){a.fillWithByte(0,r),r=0;continue}var s=w.hexToBytes(e[n]);s.length<2&&a.putByte(0),a.putBytes(s)}return a.getBytes()},w.bytesToIP=function(e){return e.length===4?w.bytesToIPv4(e):e.length===16?w.bytesToIPv6(e):null},w.bytesToIPv4=function(e){if(e.length!==4)return null;for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t.join(".")},w.bytesToIPv6=function(e){if(e.length!==16)return null;for(var t=[],r=[],a=0,n=0;n<e.length;n+=2){for(var s=w.bytesToHex(e[n]+e[n+1]);s[0]==="0"&&s!=="0";)s=s.substr(1);if(s==="0"){var i=r[r.length-1],o=t.length;!i||o!==i.end+1?r.push({start:o,end:o}):(i.end=o,i.end-i.start>r[a].end-r[a].start&&(a=r.length-1))}t.push(s)}if(r.length>0){var c=r[a];c.end-c.start>0&&(t.splice(c.start,c.end-c.start+1,""),c.start===0&&t.unshift(""),c.end===7&&t.push(""))}return t.join(":")},w.estimateCores=function(e,t){if(typeof e=="function"&&(t=e,e={}),e=e||{},"cores"in w&&!e.update)return t(null,w.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return w.cores=navigator.hardwareConcurrency,t(null,w.cores);if(typeof Worker>"u")return w.cores=1,t(null,w.cores);if(typeof Blob>"u")return w.cores=2,t(null,w.cores);var r=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(i){var o=Date.now(),c=o+4;self.postMessage({st:o,et:c})})}.toString(),")()"],{type:"application/javascript"}));a([],5,16);function a(i,o,c){if(o===0){var l=Math.floor(i.reduce(function(u,p){return u+p},0)/i.length);return w.cores=Math.max(1,l),URL.revokeObjectURL(r),t(null,w.cores)}n(c,function(u,p){i.push(s(c,p)),a(i,o-1,c)})}function n(i,o){for(var c=[],l=[],u=0;u<i;++u){var p=new Worker(r);p.addEventListener("message",function(d){if(l.push(d.data),l.length===i){for(var x=0;x<i;++x)c[x].terminate();o(null,l)}}),c.push(p)}for(var u=0;u<i;++u)c[u].postMessage(u)}function s(i,o){for(var c=[],l=0;l<i;++l)for(var u=o[l],p=c[l]=[],d=0;d<i;++d)if(l!==d){var x=o[d];(u.st>x.st&&u.st<x.et||x.st>u.st&&x.st<u.et)&&p.push(d)}return c.reduce(function(h,y){return Math.max(h,y.length)},0)}};var Ze=ie;Ze.cipher=Ze.cipher||{},Ze.cipher.algorithms=Ze.cipher.algorithms||{},Ze.cipher.createCipher=function(e,t){var r=e;if(typeof r=="string"&&(r=Ze.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+e);return new Ze.cipher.BlockCipher({algorithm:r,key:t,decrypt:!1})},Ze.cipher.createDecipher=function(e,t){var r=e;if(typeof r=="string"&&(r=Ze.cipher.getAlgorithm(r),r&&(r=r())),!r)throw new Error("Unsupported algorithm: "+e);return new Ze.cipher.BlockCipher({algorithm:r,key:t,decrypt:!0})},Ze.cipher.registerAlgorithm=function(e,t){e=e.toUpperCase(),Ze.cipher.algorithms[e]=t},Ze.cipher.getAlgorithm=function(e){return e=e.toUpperCase(),e in Ze.cipher.algorithms?Ze.cipher.algorithms[e]:null};var Uu=Ze.cipher.BlockCipher=function(e){this.algorithm=e.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=e.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=e.decrypt,this.algorithm.initialize(e)};Uu.prototype.start=function(e){e=e||{};var t={};for(var r in e)t[r]=e[r];t.decrypt=this._decrypt,this._finish=!1,this._input=Ze.util.createBuffer(),this.output=e.output||Ze.util.createBuffer(),this.mode.start(t)},Uu.prototype.update=function(e){for(e&&this._input.putBuffer(e);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()},Uu.prototype.finish=function(e){e&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(r){return e(this.blockSize,r,!1)},this.mode.unpad=function(r){return e(this.blockSize,r,!0)});var t={};return t.decrypt=this._decrypt,t.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,t)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,t))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,t))};var et=ie;et.cipher=et.cipher||{};var ce=et.cipher.modes=et.cipher.modes||{};ce.ecb=function(e){e=e||{},this.name="ECB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},ce.ecb.prototype.start=function(e){},ce.ecb.prototype.encrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._outBlock[a])},ce.ecb.prototype.decrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._outBlock[a])},ce.ecb.prototype.pad=function(e,t){var r=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(r,r),!0},ce.ecb.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var r=e.length(),a=e.at(r-1);return a>this.blockSize<<2?!1:(e.truncate(a),!0)},ce.cbc=function(e){e=e||{},this.name="CBC",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)},ce.cbc.prototype.start=function(e){if(e.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in e)this._iv=Wc(e.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")},ce.cbc.prototype.encrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=this._prev[a]^e.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._outBlock[a]);this._prev=this._outBlock},ce.cbc.prototype.decrypt=function(e,t,r){if(e.length()<this.blockSize&&!(r&&e.length()>0))return!0;for(var a=0;a<this._ints;++a)this._inBlock[a]=e.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var a=0;a<this._ints;++a)t.putInt32(this._prev[a]^this._outBlock[a]);this._prev=this._inBlock.slice(0)},ce.cbc.prototype.pad=function(e,t){var r=e.length()===this.blockSize?this.blockSize:this.blockSize-e.length();return e.fillWithByte(r,r),!0},ce.cbc.prototype.unpad=function(e,t){if(t.overflow>0)return!1;var r=e.length(),a=e.at(r-1);return a>this.blockSize<<2?!1:(e.truncate(a),!0)},ce.cfb=function(e){e=e||{},this.name="CFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=et.util.createBuffer(),this._partialBytes=0},ce.cfb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Wc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ce.cfb.prototype.encrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32()^this._outBlock[n],t.putInt32(this._inBlock[n]);return}var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialBlock[n]=e.getInt32()^this._outBlock[n],this._partialOutput.putInt32(this._partialBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0},ce.cfb.prototype.decrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)this._inBlock[n]=e.getInt32(),t.putInt32(this._inBlock[n]^this._outBlock[n]);return}var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialBlock[n]=e.getInt32(),this._partialOutput.putInt32(this._partialBlock[n]^this._outBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._partialBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0},ce.ofb=function(e){e=e||{},this.name="OFB",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=et.util.createBuffer(),this._partialBytes=0},ce.ofb.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Wc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ce.ofb.prototype.encrypt=function(e,t,r){var a=e.length();if(e.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)t.putInt32(e.getInt32()^this._outBlock[n]),this._inBlock[n]=this._outBlock[n];return}var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s>0)e.read-=this.blockSize;else for(var n=0;n<this._ints;++n)this._inBlock[n]=this._outBlock[n];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0},ce.ofb.prototype.decrypt=ce.ofb.prototype.encrypt,ce.ctr=function(e){e=e||{},this.name="CTR",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=et.util.createBuffer(),this._partialBytes=0},ce.ctr.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");this._iv=Wc(e.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0},ce.ctr.prototype.encrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize)for(var n=0;n<this._ints;++n)t.putInt32(e.getInt32()^this._outBlock[n]);else{var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s>0&&(e.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0}Xc(this._inBlock)},ce.ctr.prototype.decrypt=ce.ctr.prototype.encrypt,ce.gcm=function(e){e=e||{},this.name="GCM",this.cipher=e.cipher,this.blockSize=e.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=et.util.createBuffer(),this._partialBytes=0,this._R=3774873600},ce.gcm.prototype.start=function(e){if(!("iv"in e))throw new Error("Invalid IV parameter.");var t=et.util.createBuffer(e.iv);this._cipherLength=0;var r;if("additionalData"in e?r=et.util.createBuffer(e.additionalData):r=et.util.createBuffer(),"tagLength"in e?this._tagLength=e.tagLength:this._tagLength=128,this._tag=null,e.decrypt&&(this._tag=et.util.createBuffer(e.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var a=t.length();if(a===12)this._j0=[t.getInt32(),t.getInt32(),t.getInt32(),1];else{for(this._j0=[0,0,0,0];t.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(Nu(a*8)))}this._inBlock=this._j0.slice(0),Xc(this._inBlock),this._partialBytes=0,r=et.util.createBuffer(r),this._aDataLength=Nu(r.length()*8);var n=r.length()%this.blockSize;for(n&&r.fillWithByte(0,this.blockSize-n),this._s=[0,0,0,0];r.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[r.getInt32(),r.getInt32(),r.getInt32(),r.getInt32()])},ce.gcm.prototype.encrypt=function(e,t,r){var a=e.length();if(a===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&a>=this.blockSize){for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]^=e.getInt32());this._cipherLength+=this.blockSize}else{var s=(this.blockSize-a)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var n=0;n<this._ints;++n)this._partialOutput.putInt32(e.getInt32()^this._outBlock[n]);if(s<=0||r){if(r){var i=a%this.blockSize;this._cipherLength+=i,this._partialOutput.truncate(this.blockSize-i)}else this._cipherLength+=this.blockSize;for(var n=0;n<this._ints;++n)this._outBlock[n]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!r)return e.read-=this.blockSize,t.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;t.putBytes(this._partialOutput.getBytes(a-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),Xc(this._inBlock)},ce.gcm.prototype.decrypt=function(e,t,r){var a=e.length();if(a<this.blockSize&&!(r&&a>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),Xc(this._inBlock),this._hashBlock[0]=e.getInt32(),this._hashBlock[1]=e.getInt32(),this._hashBlock[2]=e.getInt32(),this._hashBlock[3]=e.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var n=0;n<this._ints;++n)t.putInt32(this._outBlock[n]^this._hashBlock[n]);a<this.blockSize?this._cipherLength+=a%this.blockSize:this._cipherLength+=this.blockSize},ce.gcm.prototype.afterFinish=function(e,t){var r=!0;t.decrypt&&t.overflow&&e.truncate(this.blockSize-t.overflow),this.tag=et.util.createBuffer();var a=this._aDataLength.concat(Nu(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,a);var n=[];this.cipher.encrypt(this._j0,n);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^n[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),t.decrypt&&this.tag.bytes()!==this._tag&&(r=!1),r},ce.gcm.prototype.multiply=function(e,t){for(var r=[0,0,0,0],a=t.slice(0),n=0;n<128;++n){var s=e[n/32|0]&1<<31-n%32;s&&(r[0]^=a[0],r[1]^=a[1],r[2]^=a[2],r[3]^=a[3]),this.pow(a,a)}return r},ce.gcm.prototype.pow=function(e,t){for(var r=e[3]&1,a=3;a>0;--a)t[a]=e[a]>>>1|(e[a-1]&1)<<31;t[0]=e[0]>>>1,r&&(t[0]^=this._R)},ce.gcm.prototype.tableMultiply=function(e){for(var t=[0,0,0,0],r=0;r<32;++r){var a=r/8|0,n=e[a]>>>(7-r%8)*4&15,s=this._m[r][n];t[0]^=s[0],t[1]^=s[1],t[2]^=s[2],t[3]^=s[3]}return t},ce.gcm.prototype.ghash=function(e,t,r){return t[0]^=r[0],t[1]^=r[1],t[2]^=r[2],t[3]^=r[3],this.tableMultiply(t)},ce.gcm.prototype.generateHashTable=function(e,t){for(var r=8/t,a=4*r,n=16*r,s=new Array(n),i=0;i<n;++i){var o=[0,0,0,0],c=i/a|0,l=(a-1-i%a)*t;o[c]=1<<t-1<<l,s[i]=this.generateSubHashTable(this.multiply(o,e),t)}return s},ce.gcm.prototype.generateSubHashTable=function(e,t){var r=1<<t,a=r>>>1,n=new Array(r);n[a]=e.slice(0);for(var s=a>>>1;s>0;)this.pow(n[2*s],n[s]=[]),s>>=1;for(s=2;s<a;){for(var i=1;i<s;++i){var o=n[s],c=n[i];n[s+i]=[o[0]^c[0],o[1]^c[1],o[2]^c[2],o[3]^c[3]]}s*=2}for(n[0]=[0,0,0,0],s=a+1;s<r;++s){var l=n[s^a];n[s]=[e[0]^l[0],e[1]^l[1],e[2]^l[2],e[3]^l[3]]}return n};function Wc(e,t){if(typeof e=="string"&&(e=et.util.createBuffer(e)),et.util.isArray(e)&&e.length>4){var r=e;e=et.util.createBuffer();for(var a=0;a<r.length;++a)e.putByte(r[a])}if(e.length()<t)throw new Error("Invalid IV length; got "+e.length()+" bytes and expected "+t+" bytes.");if(!et.util.isArray(e)){for(var n=[],s=t/4,a=0;a<s;++a)n.push(e.getInt32());e=n}return e}function Xc(e){e[e.length-1]=e[e.length-1]+1&4294967295}function Nu(e){return[e/4294967296|0,e&4294967295]}var Oe=ie;Oe.aes=Oe.aes||{},Oe.aes.startEncrypting=function(e,t,r,a){var n=Qc({key:e,output:r,decrypt:!1,mode:a});return n.start(t),n},Oe.aes.createEncryptionCipher=function(e,t){return Qc({key:e,output:null,decrypt:!1,mode:t})},Oe.aes.startDecrypting=function(e,t,r,a){var n=Qc({key:e,output:r,decrypt:!0,mode:a});return n.start(t),n},Oe.aes.createDecryptionCipher=function(e,t){return Qc({key:e,output:null,decrypt:!0,mode:t})},Oe.aes.Algorithm=function(e,t){Lu||Vf();var r=this;r.name=e,r.mode=new t({blockSize:16,cipher:{encrypt:function(a,n){return Ou(r._w,a,n,!1)},decrypt:function(a,n){return Ou(r._w,a,n,!0)}}}),r._init=!1},Oe.aes.Algorithm.prototype.initialize=function(e){if(!this._init){var t=e.key,r;if(typeof t=="string"&&(t.length===16||t.length===24||t.length===32))t=Oe.util.createBuffer(t);else if(Oe.util.isArray(t)&&(t.length===16||t.length===24||t.length===32)){r=t,t=Oe.util.createBuffer();for(var a=0;a<r.length;++a)t.putByte(r[a])}if(!Oe.util.isArray(t)){r=t,t=[];var n=r.length();if(n===16||n===24||n===32){n=n>>>2;for(var a=0;a<n;++a)t.push(r.getInt32())}}if(!Oe.util.isArray(t)||!(t.length===4||t.length===6||t.length===8))throw new Error("Invalid key parameter.");var s=this.mode.name,i=["CFB","OFB","CTR","GCM"].indexOf(s)!==-1;this._w=Mf(t,e.decrypt&&!i),this._init=!0}},Oe.aes._expandKey=function(e,t){return Lu||Vf(),Mf(e,t)},Oe.aes._updateBlock=Ou,$a("AES-ECB",Oe.cipher.modes.ecb),$a("AES-CBC",Oe.cipher.modes.cbc),$a("AES-CFB",Oe.cipher.modes.cfb),$a("AES-OFB",Oe.cipher.modes.ofb),$a("AES-CTR",Oe.cipher.modes.ctr),$a("AES-GCM",Oe.cipher.modes.gcm);function $a(e,t){var r=function(){return new Oe.aes.Algorithm(e,t)};Oe.cipher.registerAlgorithm(e,r)}var Lu=!1,Ga=4,bt,Pu,Ff,Ia,qt;function Vf(){Lu=!0,Ff=[0,1,2,4,8,16,32,64,128,27,54];for(var e=new Array(256),t=0;t<128;++t)e[t]=t<<1,e[t+128]=t+128<<1^283;bt=new Array(256),Pu=new Array(256),Ia=new Array(4),qt=new Array(4);for(var t=0;t<4;++t)Ia[t]=new Array(256),qt[t]=new Array(256);for(var r=0,a=0,n,s,i,o,c,l,u,t=0;t<256;++t){o=a^a<<1^a<<2^a<<3^a<<4,o=o>>8^o&255^99,bt[r]=o,Pu[o]=r,c=e[o],n=e[r],s=e[n],i=e[s],l=c<<24^o<<16^o<<8^(o^c),u=(n^s^i)<<24^(r^i)<<16^(r^s^i)<<8^(r^n^i);for(var p=0;p<4;++p)Ia[p][r]=l,qt[p][o]=u,l=l<<24|l>>>8,u=u<<24|u>>>8;r===0?r=a=1:(r=n^e[e[e[n^i]]],a^=e[e[a]])}}function Mf(e,t){for(var r=e.slice(0),a,n=1,s=r.length,i=s+6+1,o=Ga*i,c=s;c<o;++c)a=r[c-1],c%s===0?(a=bt[a>>>16&255]<<24^bt[a>>>8&255]<<16^bt[a&255]<<8^bt[a>>>24]^Ff[n]<<24,n++):s>6&&c%s===4&&(a=bt[a>>>24]<<24^bt[a>>>16&255]<<16^bt[a>>>8&255]<<8^bt[a&255]),r[c]=r[c-s]^a;if(t){var l,u=qt[0],p=qt[1],d=qt[2],x=qt[3],h=r.slice(0);o=r.length;for(var c=0,y=o-Ga;c<o;c+=Ga,y-=Ga)if(c===0||c===o-Ga)h[c]=r[y],h[c+1]=r[y+3],h[c+2]=r[y+2],h[c+3]=r[y+1];else for(var b=0;b<Ga;++b)l=r[y+b],h[c+(3&-b)]=u[bt[l>>>24]]^p[bt[l>>>16&255]]^d[bt[l>>>8&255]]^x[bt[l&255]];r=h}return r}function Ou(e,t,r,a){var n=e.length/4-1,s,i,o,c,l;a?(s=qt[0],i=qt[1],o=qt[2],c=qt[3],l=Pu):(s=Ia[0],i=Ia[1],o=Ia[2],c=Ia[3],l=bt);var u,p,d,x,h,y,b;u=t[0]^e[0],p=t[a?3:1]^e[1],d=t[2]^e[2],x=t[a?1:3]^e[3];for(var C=3,I=1;I<n;++I)h=s[u>>>24]^i[p>>>16&255]^o[d>>>8&255]^c[x&255]^e[++C],y=s[p>>>24]^i[d>>>16&255]^o[x>>>8&255]^c[u&255]^e[++C],b=s[d>>>24]^i[x>>>16&255]^o[u>>>8&255]^c[p&255]^e[++C],x=s[x>>>24]^i[u>>>16&255]^o[p>>>8&255]^c[d&255]^e[++C],u=h,p=y,d=b;r[0]=l[u>>>24]<<24^l[p>>>16&255]<<16^l[d>>>8&255]<<8^l[x&255]^e[++C],r[a?3:1]=l[p>>>24]<<24^l[d>>>16&255]<<16^l[x>>>8&255]<<8^l[u&255]^e[++C],r[2]=l[d>>>24]<<24^l[x>>>16&255]<<16^l[u>>>8&255]<<8^l[p&255]^e[++C],r[a?1:3]=l[x>>>24]<<24^l[u>>>16&255]<<16^l[p>>>8&255]<<8^l[d&255]^e[++C]}function Qc(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),r="AES-"+t,a;e.decrypt?a=Oe.cipher.createDecipher(r,e.key):a=Oe.cipher.createCipher(r,e.key);var n=a.start;return a.start=function(s,i){var o=null;i instanceof Oe.util.ByteBuffer&&(o=i,i={}),i=i||{},i.output=o,i.iv=s,n.call(a,i)},a}var fc=ie;fc.pki=fc.pki||{};var Du=fc.pki.oids=fc.oids=fc.oids||{};function D(e,t){Du[e]=t,Du[t]=e}function Ne(e,t){Du[e]=t}D("1.2.840.113549.1.1.1","rsaEncryption"),D("1.2.840.113549.1.1.4","md5WithRSAEncryption"),D("1.2.840.113549.1.1.5","sha1WithRSAEncryption"),D("1.2.840.113549.1.1.7","RSAES-OAEP"),D("1.2.840.113549.1.1.8","mgf1"),D("1.2.840.113549.1.1.9","pSpecified"),D("1.2.840.113549.1.1.10","RSASSA-PSS"),D("1.2.840.113549.1.1.11","sha256WithRSAEncryption"),D("1.2.840.113549.1.1.12","sha384WithRSAEncryption"),D("1.2.840.113549.1.1.13","sha512WithRSAEncryption"),D("1.3.101.112","EdDSA25519"),D("1.2.840.10040.4.3","dsa-with-sha1"),D("1.3.14.3.2.7","desCBC"),D("1.3.14.3.2.26","sha1"),D("1.3.14.3.2.29","sha1WithRSASignature"),D("2.16.840.1.101.3.4.2.1","sha256"),D("2.16.840.1.101.3.4.2.2","sha384"),D("2.16.840.1.101.3.4.2.3","sha512"),D("2.16.840.1.101.3.4.2.4","sha224"),D("2.16.840.1.101.3.4.2.5","sha512-224"),D("2.16.840.1.101.3.4.2.6","sha512-256"),D("1.2.840.113549.2.2","md2"),D("1.2.840.113549.2.5","md5"),D("1.2.840.113549.1.7.1","data"),D("1.2.840.113549.1.7.2","signedData"),D("1.2.840.113549.1.7.3","envelopedData"),D("1.2.840.113549.1.7.4","signedAndEnvelopedData"),D("1.2.840.113549.1.7.5","digestedData"),D("1.2.840.113549.1.7.6","encryptedData"),D("1.2.840.113549.1.9.1","emailAddress"),D("1.2.840.113549.1.9.2","unstructuredName"),D("1.2.840.113549.1.9.3","contentType"),D("1.2.840.113549.1.9.4","messageDigest"),D("1.2.840.113549.1.9.5","signingTime"),D("1.2.840.113549.1.9.6","counterSignature"),D("1.2.840.113549.1.9.7","challengePassword"),D("1.2.840.113549.1.9.8","unstructuredAddress"),D("1.2.840.113549.1.9.14","extensionRequest"),D("1.2.840.113549.1.9.20","friendlyName"),D("1.2.840.113549.1.9.21","localKeyId"),D("1.2.840.113549.1.9.22.1","x509Certificate"),D("1.2.840.113549.1.12.10.1.1","keyBag"),D("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag"),D("1.2.840.113549.1.12.10.1.3","certBag"),D("1.2.840.113549.1.12.10.1.4","crlBag"),D("1.2.840.113549.1.12.10.1.5","secretBag"),D("1.2.840.113549.1.12.10.1.6","safeContentsBag"),D("1.2.840.113549.1.5.13","pkcs5PBES2"),D("1.2.840.113549.1.5.12","pkcs5PBKDF2"),D("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4"),D("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4"),D("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC"),D("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC"),D("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC"),D("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC"),D("1.2.840.113549.2.7","hmacWithSHA1"),D("1.2.840.113549.2.8","hmacWithSHA224"),D("1.2.840.113549.2.9","hmacWithSHA256"),D("1.2.840.113549.2.10","hmacWithSHA384"),D("1.2.840.113549.2.11","hmacWithSHA512"),D("1.2.840.113549.3.7","des-EDE3-CBC"),D("2.16.840.1.101.3.4.1.2","aes128-CBC"),D("2.16.840.1.101.3.4.1.22","aes192-CBC"),D("2.16.840.1.101.3.4.1.42","aes256-CBC"),D("2.5.4.3","commonName"),D("2.5.4.4","surname"),D("2.5.4.5","serialNumber"),D("2.5.4.6","countryName"),D("2.5.4.7","localityName"),D("2.5.4.8","stateOrProvinceName"),D("2.5.4.9","streetAddress"),D("2.5.4.10","organizationName"),D("2.5.4.11","organizationalUnitName"),D("2.5.4.12","title"),D("2.5.4.13","description"),D("2.5.4.15","businessCategory"),D("2.5.4.17","postalCode"),D("2.5.4.42","givenName"),D("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName"),D("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName"),D("2.16.840.1.113730.1.1","nsCertType"),D("2.16.840.1.113730.1.13","nsComment"),Ne("2.5.29.1","authorityKeyIdentifier"),Ne("2.5.29.2","keyAttributes"),Ne("2.5.29.3","certificatePolicies"),Ne("2.5.29.4","keyUsageRestriction"),Ne("2.5.29.5","policyMapping"),Ne("2.5.29.6","subtreesConstraint"),Ne("2.5.29.7","subjectAltName"),Ne("2.5.29.8","issuerAltName"),Ne("2.5.29.9","subjectDirectoryAttributes"),Ne("2.5.29.10","basicConstraints"),Ne("2.5.29.11","nameConstraints"),Ne("2.5.29.12","policyConstraints"),Ne("2.5.29.13","basicConstraints"),D("2.5.29.14","subjectKeyIdentifier"),D("2.5.29.15","keyUsage"),Ne("2.5.29.16","privateKeyUsagePeriod"),D("2.5.29.17","subjectAltName"),D("2.5.29.18","issuerAltName"),D("2.5.29.19","basicConstraints"),Ne("2.5.29.20","cRLNumber"),Ne("2.5.29.21","cRLReason"),Ne("2.5.29.22","expirationDate"),Ne("2.5.29.23","instructionCode"),Ne("2.5.29.24","invalidityDate"),Ne("2.5.29.25","cRLDistributionPoints"),Ne("2.5.29.26","issuingDistributionPoint"),Ne("2.5.29.27","deltaCRLIndicator"),Ne("2.5.29.28","issuingDistributionPoint"),Ne("2.5.29.29","certificateIssuer"),Ne("2.5.29.30","nameConstraints"),D("2.5.29.31","cRLDistributionPoints"),D("2.5.29.32","certificatePolicies"),Ne("2.5.29.33","policyMappings"),Ne("2.5.29.34","policyConstraints"),D("2.5.29.35","authorityKeyIdentifier"),Ne("2.5.29.36","policyConstraints"),D("2.5.29.37","extKeyUsage"),Ne("2.5.29.46","freshestCRL"),Ne("2.5.29.54","inhibitAnyPolicy"),D("1.3.6.1.4.1.11129.2.4.2","timestampList"),D("1.3.6.1.5.5.7.1.1","authorityInfoAccess"),D("1.3.6.1.5.5.7.3.1","serverAuth"),D("1.3.6.1.5.5.7.3.2","clientAuth"),D("1.3.6.1.5.5.7.3.3","codeSigning"),D("1.3.6.1.5.5.7.3.4","emailProtection"),D("1.3.6.1.5.5.7.3.8","timeStamping");var Fe=ie,M=Fe.asn1=Fe.asn1||{};M.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192},M.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30},M.maxDepth=256,M.create=function(e,t,r,a,n){if(Fe.util.isArray(a)){for(var s=[],i=0;i<a.length;++i)a[i]!==void 0&&s.push(a[i]);a=s}var o={tagClass:e,type:t,constructed:r,composed:r||Fe.util.isArray(a),value:a};return n&&"bitStringContents"in n&&(o.bitStringContents=n.bitStringContents,o.original=M.copy(o)),o},M.copy=function(e,t){var r;if(Fe.util.isArray(e)){r=[];for(var a=0;a<e.length;++a)r.push(M.copy(e[a],t));return r}return typeof e=="string"?e:(r={tagClass:e.tagClass,type:e.type,constructed:e.constructed,composed:e.composed,value:M.copy(e.value,t)},t&&!t.excludeBitStringContents&&(r.bitStringContents=e.bitStringContents),r)},M.equals=function(e,t,r){if(Fe.util.isArray(e)){if(!Fe.util.isArray(t)||e.length!==t.length)return!1;for(var a=0;a<e.length;++a)if(!M.equals(e[a],t[a]))return!1;return!0}if(typeof e!=typeof t)return!1;if(typeof e=="string")return e===t;var n=e.tagClass===t.tagClass&&e.type===t.type&&e.constructed===t.constructed&&e.composed===t.composed&&M.equals(e.value,t.value);return r&&r.includeBitStringContents&&(n=n&&e.bitStringContents===t.bitStringContents),n},M.getBerValueLength=function(e){var t=e.getByte();if(t!==128){var r,a=t&128;return a?r=e.getInt((t&127)<<3):r=t,r}};function hc(e,t,r){if(r>t){var a=new Error("Too few bytes to parse DER.");throw a.available=e.length(),a.remaining=t,a.requested=r,a}}var z1=function(e,t){var r=e.getByte();if(t--,r!==128){var a,n=r&128;if(!n)a=r;else{var s=r&127;hc(e,t,s),a=e.getInt(s<<3)}if(a<0)throw new Error("Negative length: "+a);return a}};M.fromDer=function(e,t){t===void 0&&(t={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof t=="boolean"&&(t={strict:t,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in t||(t.strict=!0),"parseAllBytes"in t||(t.parseAllBytes=!0),"decodeBitStrings"in t||(t.decodeBitStrings=!0),"maxDepth"in t||(t.maxDepth=M.maxDepth),typeof e=="string"&&(e=Fe.util.createBuffer(e));var r=e.length(),a=Yc(e,e.length(),0,t);if(t.parseAllBytes&&e.length()!==0){var n=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw n.byteCount=r,n.remaining=e.length(),n}return a};function Yc(e,t,r,a){if(r>=a.maxDepth)throw new Error("ASN.1 parsing error: Max depth exceeded.");var n;hc(e,t,2);var s=e.getByte();t--;var i=s&192,o=s&31;n=e.length();var c=z1(e,t);if(t-=n-e.length(),c!==void 0&&c>t){if(a.strict){var l=new Error("Too few bytes to read ASN.1 value.");throw l.available=e.length(),l.remaining=t,l.requested=c,l}c=t}var u,p,d=(s&32)===32;if(d)if(u=[],c===void 0)for(;;){if(hc(e,t,2),e.bytes(2)==="\0\0"){e.getBytes(2),t-=2;break}n=e.length(),u.push(Yc(e,t,r+1,a)),t-=n-e.length()}else for(;c>0;)n=e.length(),u.push(Yc(e,c,r+1,a)),t-=n-e.length(),c-=n-e.length();if(u===void 0&&i===M.Class.UNIVERSAL&&o===M.Type.BITSTRING&&(p=e.bytes(c)),u===void 0&&a.decodeBitStrings&&i===M.Class.UNIVERSAL&&o===M.Type.BITSTRING&&c>1){var x=e.read,h=t,y=0;if(o===M.Type.BITSTRING&&(hc(e,t,1),y=e.getByte(),t--),y===0)try{n=e.length();var b={strict:!0,decodeBitStrings:!0},C=Yc(e,t,r+1,b),I=n-e.length();t-=I,o==M.Type.BITSTRING&&I++;var B=C.tagClass;I===c&&(B===M.Class.UNIVERSAL||B===M.Class.CONTEXT_SPECIFIC)&&(u=[C])}catch{}u===void 0&&(e.read=x,t=h)}if(u===void 0){if(c===void 0){if(a.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=t}if(o===M.Type.BMPSTRING)for(u="";c>0;c-=2)hc(e,t,2),u+=String.fromCharCode(e.getInt16()),t-=2;else u=e.getBytes(c),t-=c}var U=p===void 0?null:{bitStringContents:p};return M.create(i,o,d,u,U)}M.toDer=function(e){var t=Fe.util.createBuffer(),r=e.tagClass|e.type,a=Fe.util.createBuffer(),n=!1;if("bitStringContents"in e&&(n=!0,e.original&&(n=M.equals(e,e.original))),n)a.putBytes(e.bitStringContents);else if(e.composed){e.constructed?r|=32:a.putByte(0);for(var s=0;s<e.value.length;++s)e.value[s]!==void 0&&a.putBuffer(M.toDer(e.value[s]))}else if(e.type===M.Type.BMPSTRING)for(var s=0;s<e.value.length;++s)a.putInt16(e.value.charCodeAt(s));else e.type===M.Type.INTEGER&&e.value.length>1&&(e.value.charCodeAt(0)===0&&(e.value.charCodeAt(1)&128)===0||e.value.charCodeAt(0)===255&&(e.value.charCodeAt(1)&128)===128)?a.putBytes(e.value.substr(1)):a.putBytes(e.value);if(t.putByte(r),a.length()<=127)t.putByte(a.length()&127);else{var i=a.length(),o="";do o+=String.fromCharCode(i&255),i=i>>>8;while(i>0);t.putByte(o.length|128);for(var s=o.length-1;s>=0;--s)t.putByte(o.charCodeAt(s))}return t.putBuffer(a),t},M.oidToDer=function(e){var t=e.split("."),r=Fe.util.createBuffer();r.putByte(40*parseInt(t[0],10)+parseInt(t[1],10));for(var a,n,s,i,o=2;o<t.length;++o){if(a=!0,n=[],s=parseInt(t[o],10),s>4294967295)throw new Error("OID value too large; max is 32-bits.");do i=s&127,s=s>>>7,a||(i|=128),n.push(i),a=!1;while(s>0);for(var c=n.length-1;c>=0;--c)r.putByte(n[c])}return r},M.derToOid=function(e){var t;typeof e=="string"&&(e=Fe.util.createBuffer(e));var r=e.getByte();t=Math.floor(r/40)+"."+r%40;for(var a=0;e.length()>0;){if(a>70368744177663)throw new Error("OID value too large; max is 53-bits.");r=e.getByte(),a=a*128,r&128?a+=r&127:(t+="."+(a+r),a=0)}return t},M.utcTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,2),10);r=r>=50?1900+r:2e3+r;var a=parseInt(e.substr(2,2),10)-1,n=parseInt(e.substr(4,2),10),s=parseInt(e.substr(6,2),10),i=parseInt(e.substr(8,2),10),o=0;if(e.length>11){var c=e.charAt(10),l=10;c!=="+"&&c!=="-"&&(o=parseInt(e.substr(10,2),10),l+=2)}if(t.setUTCFullYear(r,a,n),t.setUTCHours(s,i,o,0),l&&(c=e.charAt(l),c==="+"||c==="-")){var u=parseInt(e.substr(l+1,2),10),p=parseInt(e.substr(l+4,2),10),d=u*60+p;d*=6e4,c==="+"?t.setTime(+t-d):t.setTime(+t+d)}return t},M.generalizedTimeToDate=function(e){var t=new Date,r=parseInt(e.substr(0,4),10),a=parseInt(e.substr(4,2),10)-1,n=parseInt(e.substr(6,2),10),s=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),c=0,l=0,u=!1;e.charAt(e.length-1)==="Z"&&(u=!0);var p=e.length-5,d=e.charAt(p);if(d==="+"||d==="-"){var x=parseInt(e.substr(p+1,2),10),h=parseInt(e.substr(p+4,2),10);l=x*60+h,l*=6e4,d==="+"&&(l*=-1),u=!0}return e.charAt(14)==="."&&(c=parseFloat(e.substr(14),10)*1e3),u?(t.setUTCFullYear(r,a,n),t.setUTCHours(s,i,o,c),t.setTime(+t+l)):(t.setFullYear(r,a,n),t.setHours(s,i,o,c)),t},M.dateToUtcTime=function(e){if(typeof e=="string")return e;var t="",r=[];r.push((""+e.getUTCFullYear()).substr(2)),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds());for(var a=0;a<r.length;++a)r[a].length<2&&(t+="0"),t+=r[a];return t+="Z",t},M.dateToGeneralizedTime=function(e){if(typeof e=="string")return e;var t="",r=[];r.push(""+e.getUTCFullYear()),r.push(""+(e.getUTCMonth()+1)),r.push(""+e.getUTCDate()),r.push(""+e.getUTCHours()),r.push(""+e.getUTCMinutes()),r.push(""+e.getUTCSeconds());for(var a=0;a<r.length;++a)r[a].length<2&&(t+="0"),t+=r[a];return t+="Z",t},M.integerToDer=function(e){var t=Fe.util.createBuffer();if(e>=-128&&e<128)return t.putSignedInt(e,8);if(e>=-32768&&e<32768)return t.putSignedInt(e,16);if(e>=-8388608&&e<8388608)return t.putSignedInt(e,24);if(e>=-2147483648&&e<2147483648)return t.putSignedInt(e,32);var r=new Error("Integer too large; max is 32-bits.");throw r.integer=e,r},M.derToInteger=function(e){typeof e=="string"&&(e=Fe.util.createBuffer(e));var t=e.length()*8;if(t>32)throw new Error("Integer too large; max is 32-bits.");return e.getSignedInt(t)},M.validate=function(e,t,r,a){var n=!1;if((e.tagClass===t.tagClass||typeof t.tagClass>"u")&&(e.type===t.type||typeof t.type>"u"))if(e.constructed===t.constructed||typeof t.constructed>"u"){if(n=!0,t.value&&Fe.util.isArray(t.value))for(var s=0,i=0;n&&i<t.value.length;++i){var o=t.value[i];n=!!o.optional;var c=e.value[s];if(!c){o.optional||(n=!1,a&&a.push("["+t.name+'] Missing required element. Expected tag class "'+o.tagClass+'", type "'+o.type+'"'));continue}var l=typeof o.tagClass<"u"&&typeof o.type<"u";if(l&&(c.tagClass!==o.tagClass||c.type!==o.type))if(o.optional){n=!0;continue}else{n=!1,a&&a.push("["+t.name+"] Tag mismatch. Expected ("+o.tagClass+","+o.type+"), got ("+c.tagClass+","+c.type+")");break}var u=M.validate(c,o,r,a);if(u)++s,n=!0;else if(o.optional)n=!0;else{n=!1;break}}if(n&&r&&(t.capture&&(r[t.capture]=e.value),t.captureAsn1&&(r[t.captureAsn1]=e),t.captureBitStringContents&&"bitStringContents"in e&&(r[t.captureBitStringContents]=e.bitStringContents),t.captureBitStringValue&&"bitStringContents"in e))if(e.bitStringContents.length<2)r[t.captureBitStringValue]="";else{var p=e.bitStringContents.charCodeAt(0);if(p!==0)throw new Error("captureBitStringValue only supported for zero unused bits");r[t.captureBitStringValue]=e.bitStringContents.slice(1)}}else a&&a.push("["+t.name+'] Expected constructed "'+t.constructed+'", got "'+e.constructed+'"');else a&&(e.tagClass!==t.tagClass&&a.push("["+t.name+'] Expected tag class "'+t.tagClass+'", got "'+e.tagClass+'"'),e.type!==t.type&&a.push("["+t.name+'] Expected type "'+t.type+'", got "'+e.type+'"'));return n};var qf=/[^\\u0000-\\u00ff]/;M.prettyPrint=function(e,t,r){var a="";t=t||0,r=r||2,t>0&&(a+=`
26
+ `);for(var n="",s=0;s<t*r;++s)n+=" ";switch(a+=n+"Tag: ",e.tagClass){case M.Class.UNIVERSAL:a+="Universal:";break;case M.Class.APPLICATION:a+="Application:";break;case M.Class.CONTEXT_SPECIFIC:a+="Context-Specific:";break;case M.Class.PRIVATE:a+="Private:";break}if(e.tagClass===M.Class.UNIVERSAL)switch(a+=e.type,e.type){case M.Type.NONE:a+=" (None)";break;case M.Type.BOOLEAN:a+=" (Boolean)";break;case M.Type.INTEGER:a+=" (Integer)";break;case M.Type.BITSTRING:a+=" (Bit string)";break;case M.Type.OCTETSTRING:a+=" (Octet string)";break;case M.Type.NULL:a+=" (Null)";break;case M.Type.OID:a+=" (Object Identifier)";break;case M.Type.ODESC:a+=" (Object Descriptor)";break;case M.Type.EXTERNAL:a+=" (External or Instance of)";break;case M.Type.REAL:a+=" (Real)";break;case M.Type.ENUMERATED:a+=" (Enumerated)";break;case M.Type.EMBEDDED:a+=" (Embedded PDV)";break;case M.Type.UTF8:a+=" (UTF8)";break;case M.Type.ROID:a+=" (Relative Object Identifier)";break;case M.Type.SEQUENCE:a+=" (Sequence)";break;case M.Type.SET:a+=" (Set)";break;case M.Type.PRINTABLESTRING:a+=" (Printable String)";break;case M.Type.IA5String:a+=" (IA5String (ASCII))";break;case M.Type.UTCTIME:a+=" (UTC time)";break;case M.Type.GENERALIZEDTIME:a+=" (Generalized time)";break;case M.Type.BMPSTRING:a+=" (BMP String)";break}else a+=e.type;if(a+=`
27
+ `,a+=n+"Constructed: "+e.constructed+`
28
+ `,e.composed){for(var i=0,o="",s=0;s<e.value.length;++s)e.value[s]!==void 0&&(i+=1,o+=M.prettyPrint(e.value[s],t+1,r),s+1<e.value.length&&(o+=","));a+=n+"Sub values: "+i+o}else{if(a+=n+"Value: ",e.type===M.Type.OID){var c=M.derToOid(e.value);a+=c,Fe.pki&&Fe.pki.oids&&c in Fe.pki.oids&&(a+=" ("+Fe.pki.oids[c]+") ")}if(e.type===M.Type.INTEGER)try{a+=M.derToInteger(e.value)}catch{a+="0x"+Fe.util.bytesToHex(e.value)}else if(e.type===M.Type.BITSTRING){if(e.value.length>1?a+="0x"+Fe.util.bytesToHex(e.value.slice(1)):a+="(none)",e.value.length>0){var l=e.value.charCodeAt(0);l==1?a+=" (1 unused bit shown)":l>1&&(a+=" ("+l+" unused bits shown)")}}else if(e.type===M.Type.OCTETSTRING)qf.test(e.value)||(a+="("+e.value+") "),a+="0x"+Fe.util.bytesToHex(e.value);else if(e.type===M.Type.UTF8)try{a+=Fe.util.decodeUtf8(e.value)}catch(u){if(u.message==="URI malformed")a+="0x"+Fe.util.bytesToHex(e.value)+" (malformed UTF8)";else throw u}else e.type===M.Type.PRINTABLESTRING||e.type===M.Type.IA5String?a+=e.value:qf.test(e.value)?a+="0x"+Fe.util.bytesToHex(e.value):e.value.length===0?a+="[null]":a+=e.value}return a};var Jc=ie;Jc.md=Jc.md||{},Jc.md.algorithms=Jc.md.algorithms||{};var Zt=ie,H1=Zt.hmac=Zt.hmac||{};H1.create=function(){var e=null,t=null,r=null,a=null,n={};return n.start=function(s,i){if(s!==null)if(typeof s=="string")if(s=s.toLowerCase(),s in Zt.md.algorithms)t=Zt.md.algorithms[s].create();else throw new Error('Unknown hash algorithm "'+s+'"');else t=s;if(i===null)i=e;else{if(typeof i=="string")i=Zt.util.createBuffer(i);else if(Zt.util.isArray(i)){var o=i;i=Zt.util.createBuffer();for(var c=0;c<o.length;++c)i.putByte(o[c])}var l=i.length();l>t.blockLength&&(t.start(),t.update(i.bytes()),i=t.digest()),r=Zt.util.createBuffer(),a=Zt.util.createBuffer(),l=i.length();for(var c=0;c<l;++c){var o=i.at(c);r.putByte(54^o),a.putByte(92^o)}if(l<t.blockLength)for(var o=t.blockLength-l,c=0;c<o;++c)r.putByte(54),a.putByte(92);e=i,r=r.bytes(),a=a.bytes()}t.start(),t.update(r)},n.update=function(s){t.update(s)},n.getMac=function(){var s=t.digest().bytes();return t.start(),t.update(a),t.update(s),t.digest()},n.digest=n.getMac,n};var Ht=ie,jf=Ht.md5=Ht.md5||{};Ht.md.md5=Ht.md.algorithms.md5=jf,jf.create=function(){Kf||$1();var e=null,t=Ht.util.createBuffer(),r=new Array(16),a={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return a.start=function(){a.messageLength=0,a.fullMessageLength=a.messageLength64=[];for(var n=a.messageLengthSize/4,s=0;s<n;++s)a.fullMessageLength.push(0);return t=Ht.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},a},a.start(),a.update=function(n,s){s==="utf8"&&(n=Ht.util.encodeUtf8(n));var i=n.length;a.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=a.fullMessageLength.length-1;o>=0;--o)a.fullMessageLength[o]+=i[1],i[1]=i[0]+(a.fullMessageLength[o]/4294967296>>>0),a.fullMessageLength[o]=a.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),zf(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var n=Ht.util.createBuffer();n.putBytes(t.bytes());var s=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,i=s&a.blockLength-1;n.putBytes(Fu.substr(0,a.blockLength-i));for(var o,c=0,l=a.fullMessageLength.length-1;l>=0;--l)o=a.fullMessageLength[l]*8+c,c=o/4294967296>>>0,n.putInt32Le(o>>>0);var u={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};zf(u,r,n);var p=Ht.util.createBuffer();return p.putInt32Le(u.h0),p.putInt32Le(u.h1),p.putInt32Le(u.h2),p.putInt32Le(u.h3),p},a};var Fu=null,Zc=null,mc=null,Wa=null,Kf=!1;function $1(){Fu="\x80",Fu+=Ht.util.fillString("\0",64),Zc=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],mc=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],Wa=new Array(64);for(var e=0;e<64;++e)Wa[e]=Math.floor(Math.abs(Math.sin(e+1))*4294967296);Kf=!0}function zf(e,t,r){for(var a,n,s,i,o,c,l,u,p=r.length();p>=64;){for(n=e.h0,s=e.h1,i=e.h2,o=e.h3,u=0;u<16;++u)t[u]=r.getInt32Le(),c=o^s&(i^o),a=n+c+Wa[u]+t[u],l=mc[u],n=o,o=i,i=s,s+=a<<l|a>>>32-l;for(;u<32;++u)c=i^o&(s^i),a=n+c+Wa[u]+t[Zc[u]],l=mc[u],n=o,o=i,i=s,s+=a<<l|a>>>32-l;for(;u<48;++u)c=s^i^o,a=n+c+Wa[u]+t[Zc[u]],l=mc[u],n=o,o=i,i=s,s+=a<<l|a>>>32-l;for(;u<64;++u)c=i^(s|~o),a=n+c+Wa[u]+t[Zc[u]],l=mc[u],n=o,o=i,i=s,s+=a<<l|a>>>32-l;e.h0=e.h0+n|0,e.h1=e.h1+s|0,e.h2=e.h2+i|0,e.h3=e.h3+o|0,p-=64}}var el=ie,Hf=el.pem=el.pem||{};Hf.encode=function(e,t){t=t||{};var r="-----BEGIN "+e.type+`-----\r
29
+ `,a;if(e.procType&&(a={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]},r+=tl(a)),e.contentDomain&&(a={name:"Content-Domain",values:[e.contentDomain]},r+=tl(a)),e.dekInfo&&(a={name:"DEK-Info",values:[e.dekInfo.algorithm]},e.dekInfo.parameters&&a.values.push(e.dekInfo.parameters),r+=tl(a)),e.headers)for(var n=0;n<e.headers.length;++n)r+=tl(e.headers[n]);return e.procType&&(r+=`\r
30
+ `),r+=el.util.encode64(e.body,t.maxline||64)+`\r
31
+ `,r+="-----END "+e.type+`-----\r
32
+ `,r},Hf.decode=function(e){for(var t=[],r=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,a=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,n=/\r?\n/,s;s=r.exec(e),!!s;){var i=s[1];i==="NEW CERTIFICATE REQUEST"&&(i="CERTIFICATE REQUEST");var o={type:i,procType:null,contentDomain:null,dekInfo:null,headers:[],body:el.util.decode64(s[3])};if(t.push(o),!!s[2]){for(var c=s[2].split(n),l=0;s&&l<c.length;){for(var u=c[l].replace(/\s+$/,""),p=l+1;p<c.length;++p){var d=c[p];if(!/\s/.test(d[0]))break;u+=d,l=p}if(s=u.match(a),s){for(var x={name:s[1],values:[]},h=s[2].split(","),y=0;y<h.length;++y)x.values.push(G1(h[y]));if(o.procType)if(!o.contentDomain&&x.name==="Content-Domain")o.contentDomain=h[0]||"";else if(!o.dekInfo&&x.name==="DEK-Info"){if(x.values.length===0)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');o.dekInfo={algorithm:h[0],parameters:h[1]||null}}else o.headers.push(x);else{if(x.name!=="Proc-Type")throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(x.values.length!==2)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');o.procType={version:h[0],type:h[1]}}}++l}if(o.procType==="ENCRYPTED"&&!o.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(t.length===0)throw new Error("Invalid PEM formatted message.");return t};function tl(e){for(var t=e.name+": ",r=[],a=function(c,l){return" "+l},n=0;n<e.values.length;++n)r.push(e.values[n].replace(/^(\S+\r\n)/,a));t+=r.join(",")+`\r
33
+ `;for(var s=0,i=-1,n=0;n<t.length;++n,++s)if(s>65&&i!==-1){var o=t[i];o===","?(++i,t=t.substr(0,i)+`\r
34
+ `+t.substr(i)):t=t.substr(0,i)+`\r
35
+ `+o+t.substr(i+1),s=n-i-1,i=-1,++n}else(t[n]===" "||t[n]===" "||t[n]===",")&&(i=n);return t}function G1(e){return e.replace(/^\s+/,"")}var qe=ie;qe.des=qe.des||{},qe.des.startEncrypting=function(e,t,r,a){var n=al({key:e,output:r,decrypt:!1,mode:a||(t===null?"ECB":"CBC")});return n.start(t),n},qe.des.createEncryptionCipher=function(e,t){return al({key:e,output:null,decrypt:!1,mode:t})},qe.des.startDecrypting=function(e,t,r,a){var n=al({key:e,output:r,decrypt:!0,mode:a||(t===null?"ECB":"CBC")});return n.start(t),n},qe.des.createDecryptionCipher=function(e,t){return al({key:e,output:null,decrypt:!0,mode:t})},qe.des.Algorithm=function(e,t){var r=this;r.name=e,r.mode=new t({blockSize:8,cipher:{encrypt:function(a,n){return $f(r._keys,a,n,!1)},decrypt:function(a,n){return $f(r._keys,a,n,!0)}}}),r._init=!1},qe.des.Algorithm.prototype.initialize=function(e){if(!this._init){var t=qe.util.createBuffer(e.key);if(this.name.indexOf("3DES")===0&&t.length()!==24)throw new Error("Invalid Triple-DES key size: "+t.length()*8);this._keys=ab(t),this._init=!0}},$t("DES-ECB",qe.cipher.modes.ecb),$t("DES-CBC",qe.cipher.modes.cbc),$t("DES-CFB",qe.cipher.modes.cfb),$t("DES-OFB",qe.cipher.modes.ofb),$t("DES-CTR",qe.cipher.modes.ctr),$t("3DES-ECB",qe.cipher.modes.ecb),$t("3DES-CBC",qe.cipher.modes.cbc),$t("3DES-CFB",qe.cipher.modes.cfb),$t("3DES-OFB",qe.cipher.modes.ofb),$t("3DES-CTR",qe.cipher.modes.ctr);function $t(e,t){var r=function(){return new qe.des.Algorithm(e,t)};qe.cipher.registerAlgorithm(e,r)}var W1=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],X1=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],Q1=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],Y1=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],J1=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],Z1=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],eb=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],tb=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function ab(e){for(var t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],a=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],n=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],i=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],o=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],u=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],p=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],d=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],x=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],h=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],y=e.length()>8?3:1,b=[],C=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],I=0,B,U=0;U<y;U++){var _=e.getInt32(),N=e.getInt32();B=(_>>>4^N)&252645135,N^=B,_^=B<<4,B=(N>>>-16^_)&65535,_^=B,N^=B<<-16,B=(_>>>2^N)&858993459,N^=B,_^=B<<2,B=(N>>>-16^_)&65535,_^=B,N^=B<<-16,B=(_>>>1^N)&1431655765,N^=B,_^=B<<1,B=(N>>>8^_)&16711935,_^=B,N^=B<<8,B=(_>>>1^N)&1431655765,N^=B,_^=B<<1,B=_<<8|N>>>20&240,_=N<<24|N<<8&16711680|N>>>8&65280|N>>>24&240,N=B;for(var j=0;j<C.length;++j){C[j]?(_=_<<2|_>>>26,N=N<<2|N>>>26):(_=_<<1|_>>>27,N=N<<1|N>>>27),_&=-15,N&=-15;var H=t[_>>>28]|r[_>>>24&15]|a[_>>>20&15]|n[_>>>16&15]|s[_>>>12&15]|i[_>>>8&15]|o[_>>>4&15],te=c[N>>>28]|l[N>>>24&15]|u[N>>>20&15]|p[N>>>16&15]|d[N>>>12&15]|x[N>>>8&15]|h[N>>>4&15];B=(te>>>16^H)&65535,b[I++]=H^B,b[I++]=te^B<<16}}return b}function $f(e,t,r,a){var n=e.length===32?3:9,s;n===3?s=a?[30,-2,-2]:[0,32,2]:s=a?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var i,o=t[0],c=t[1];i=(o>>>4^c)&252645135,c^=i,o^=i<<4,i=(o>>>16^c)&65535,c^=i,o^=i<<16,i=(c>>>2^o)&858993459,o^=i,c^=i<<2,i=(c>>>8^o)&16711935,o^=i,c^=i<<8,i=(o>>>1^c)&1431655765,c^=i,o^=i<<1,o=o<<1|o>>>31,c=c<<1|c>>>31;for(var l=0;l<n;l+=3){for(var u=s[l+1],p=s[l+2],d=s[l];d!=u;d+=p){var x=c^e[d],h=(c>>>4|c<<28)^e[d+1];i=o,o=c,c=i^(X1[x>>>24&63]|Y1[x>>>16&63]|Z1[x>>>8&63]|tb[x&63]|W1[h>>>24&63]|Q1[h>>>16&63]|J1[h>>>8&63]|eb[h&63])}i=o,o=c,c=i}o=o>>>1|o<<31,c=c>>>1|c<<31,i=(o>>>1^c)&1431655765,c^=i,o^=i<<1,i=(c>>>8^o)&16711935,o^=i,c^=i<<8,i=(c>>>2^o)&858993459,o^=i,c^=i<<2,i=(o>>>16^c)&65535,c^=i,o^=i<<16,i=(o>>>4^c)&252645135,c^=i,o^=i<<4,r[0]=o,r[1]=c}function al(e){e=e||{};var t=(e.mode||"CBC").toUpperCase(),r="DES-"+t,a;e.decrypt?a=qe.cipher.createDecipher(r,e.key):a=qe.cipher.createCipher(r,e.key);var n=a.start;return a.start=function(s,i){var o=null;i instanceof qe.util.ByteBuffer&&(o=i,i={}),i=i||{},i.output=o,i.iv=s,n.call(a,i)},a}var Et=ie,rb=Et.pkcs5=Et.pkcs5||{},ea;Et.util.isNodejs&&!Et.options.usePureJavaScript&&(ea=nr),Et.pbkdf2=rb.pbkdf2=function(e,t,r,a,n,s){if(typeof n=="function"&&(s=n,n=null),Et.util.isNodejs&&!Et.options.usePureJavaScript&&ea.pbkdf2&&(n===null||typeof n!="object")&&(ea.pbkdf2Sync.length>4||!n||n==="sha1"))return typeof n!="string"&&(n="sha1"),e=Buffer.from(e,"binary"),t=Buffer.from(t,"binary"),s?ea.pbkdf2Sync.length===4?ea.pbkdf2(e,t,r,a,function(B,U){if(B)return s(B);s(null,U.toString("binary"))}):ea.pbkdf2(e,t,r,a,n,function(B,U){if(B)return s(B);s(null,U.toString("binary"))}):ea.pbkdf2Sync.length===4?ea.pbkdf2Sync(e,t,r,a).toString("binary"):ea.pbkdf2Sync(e,t,r,a,n).toString("binary");if((typeof n>"u"||n===null)&&(n="sha1"),typeof n=="string"){if(!(n in Et.md.algorithms))throw new Error("Unknown hash algorithm: "+n);n=Et.md[n].create()}var i=n.digestLength;if(a>4294967295*i){var o=new Error("Derived key is too long.");if(s)return s(o);throw o}var c=Math.ceil(a/i),l=a-(c-1)*i,u=Et.hmac.create();u.start(n,e);var p="",d,x,h;if(!s){for(var y=1;y<=c;++y){u.start(null,null),u.update(t),u.update(Et.util.int32ToBytes(y)),d=h=u.digest().getBytes();for(var b=2;b<=r;++b)u.start(null,null),u.update(h),x=u.digest().getBytes(),d=Et.util.xorBytes(d,x,i),h=x;p+=y<c?d:d.substr(0,l)}return p}var y=1,b;function C(){if(y>c)return s(null,p);u.start(null,null),u.update(t),u.update(Et.util.int32ToBytes(y)),d=h=u.digest().getBytes(),b=2,I()}function I(){if(b<=r)return u.start(null,null),u.update(h),x=u.digest().getBytes(),d=Et.util.xorBytes(d,x,i),h=x,++b,Et.util.setImmediate(I);p+=y<c?d:d.substr(0,l),++y,C()}C()};var Gt=ie,Gf=Gt.sha256=Gt.sha256||{};Gt.md.sha256=Gt.md.algorithms.sha256=Gf,Gf.create=function(){Wf||nb();var e=null,t=Gt.util.createBuffer(),r=new Array(64),a={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return a.start=function(){a.messageLength=0,a.fullMessageLength=a.messageLength64=[];for(var n=a.messageLengthSize/4,s=0;s<n;++s)a.fullMessageLength.push(0);return t=Gt.util.createBuffer(),e={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},a},a.start(),a.update=function(n,s){s==="utf8"&&(n=Gt.util.encodeUtf8(n));var i=n.length;a.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=a.fullMessageLength.length-1;o>=0;--o)a.fullMessageLength[o]+=i[1],i[1]=i[0]+(a.fullMessageLength[o]/4294967296>>>0),a.fullMessageLength[o]=a.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),Qf(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var n=Gt.util.createBuffer();n.putBytes(t.bytes());var s=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,i=s&a.blockLength-1;n.putBytes(Vu.substr(0,a.blockLength-i));for(var o,c,l=a.fullMessageLength[0]*8,u=0;u<a.fullMessageLength.length-1;++u)o=a.fullMessageLength[u+1]*8,c=o/4294967296>>>0,l+=c,n.putInt32(l>>>0),l=o>>>0;n.putInt32(l);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};Qf(p,r,n);var d=Gt.util.createBuffer();return d.putInt32(p.h0),d.putInt32(p.h1),d.putInt32(p.h2),d.putInt32(p.h3),d.putInt32(p.h4),d.putInt32(p.h5),d.putInt32(p.h6),d.putInt32(p.h7),d},a};var Vu=null,Wf=!1,Xf=null;function nb(){Vu="\x80",Vu+=Gt.util.fillString("\0",64),Xf=[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],Wf=!0}function Qf(e,t,r){for(var a,n,s,i,o,c,l,u,p,d,x,h,y,b,C,I=r.length();I>=64;){for(l=0;l<16;++l)t[l]=r.getInt32();for(;l<64;++l)a=t[l-2],a=(a>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,n=t[l-15],n=(n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,t[l]=a+t[l-7]+n+t[l-16]|0;for(u=e.h0,p=e.h1,d=e.h2,x=e.h3,h=e.h4,y=e.h5,b=e.h6,C=e.h7,l=0;l<64;++l)i=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7),o=b^h&(y^b),s=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),c=u&p|d&(u^p),a=C+i+o+Xf[l]+t[l],n=s+c,C=b,b=y,y=h,h=x+a>>>0,x=d,d=p,p=u,u=a+n>>>0;e.h0=e.h0+u|0,e.h1=e.h1+p|0,e.h2=e.h2+d|0,e.h3=e.h3+x|0,e.h4=e.h4+h|0,e.h5=e.h5+y|0,e.h6=e.h6+b|0,e.h7=e.h7+C|0,I-=64}}var Wt=ie,rl=null;Wt.util.isNodejs&&!Wt.options.usePureJavaScript&&!process.versions["node-webkit"]&&(rl=nr);var ib=Wt.prng=Wt.prng||{};ib.create=function(e){for(var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},r=e.md,a=new Array(32),n=0;n<32;++n)a[n]=r.create();t.pools=a,t.pool=0,t.generate=function(l,u){if(!u)return t.generateSync(l);var p=t.plugin.cipher,d=t.plugin.increment,x=t.plugin.formatKey,h=t.plugin.formatSeed,y=Wt.util.createBuffer();t.key=null,b();function b(C){if(C)return u(C);if(y.length()>=l)return u(null,y.getBytes(l));if(t.generated>1048575&&(t.key=null),t.key===null)return Wt.util.nextTick(function(){s(b)});var I=p(t.key,t.seed);t.generated+=I.length,y.putBytes(I),t.key=x(p(t.key,d(t.seed))),t.seed=h(p(t.key,t.seed)),Wt.util.setImmediate(b)}},t.generateSync=function(l){var u=t.plugin.cipher,p=t.plugin.increment,d=t.plugin.formatKey,x=t.plugin.formatSeed;t.key=null;for(var h=Wt.util.createBuffer();h.length()<l;){t.generated>1048575&&(t.key=null),t.key===null&&i();var y=u(t.key,t.seed);t.generated+=y.length,h.putBytes(y),t.key=d(u(t.key,p(t.seed))),t.seed=x(u(t.key,t.seed))}return h.getBytes(l)};function s(l){if(t.pools[0].messageLength>=32)return o(),l();var u=32-t.pools[0].messageLength<<5;t.seedFile(u,function(p,d){if(p)return l(p);t.collect(d),o(),l()})}function i(){if(t.pools[0].messageLength>=32)return o();var l=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(l)),o()}function o(){t.reseeds=t.reseeds===4294967295?0:t.reseeds+1;var l=t.plugin.md.create();l.update(t.keyBytes);for(var u=1,p=0;p<32;++p)t.reseeds%u===0&&(l.update(t.pools[p].digest().getBytes()),t.pools[p].start()),u=u<<1;t.keyBytes=l.digest().getBytes(),l.start(),l.update(t.keyBytes);var d=l.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes),t.seed=t.plugin.formatSeed(d),t.generated=0}function c(l){var u=null,p=Wt.util.globalScope,d=p.crypto||p.msCrypto;d&&d.getRandomValues&&(u=function(_){return d.getRandomValues(_)});var x=Wt.util.createBuffer();if(u)for(;x.length()<l;){var h=Math.max(1,Math.min(l-x.length(),65536)/4),y=new Uint32Array(Math.floor(h));try{u(y);for(var b=0;b<y.length;++b)x.putInt32(y[b])}catch(_){if(!(typeof QuotaExceededError<"u"&&_ instanceof QuotaExceededError))throw _}}if(x.length()<l)for(var C,I,B,U=Math.floor(Math.random()*65536);x.length()<l;){I=16807*(U&65535),C=16807*(U>>16),I+=(C&32767)<<16,I+=C>>15,I=(I&2147483647)+(I>>31),U=I&4294967295;for(var b=0;b<3;++b)B=U>>>(b<<3),B^=Math.floor(Math.random()*256),x.putByte(B&255)}return x.getBytes(l)}return rl?(t.seedFile=function(l,u){rl.randomBytes(l,function(p,d){if(p)return u(p);u(null,d.toString())})},t.seedFileSync=function(l){return rl.randomBytes(l).toString()}):(t.seedFile=function(l,u){try{u(null,c(l))}catch(p){u(p)}},t.seedFileSync=c),t.collect=function(l){for(var u=l.length,p=0;p<u;++p)t.pools[t.pool].update(l.substr(p,1)),t.pool=t.pool===31?0:t.pool+1},t.collectInt=function(l,u){for(var p="",d=0;d<u;d+=8)p+=String.fromCharCode(l>>d&255);t.collect(p)},t.registerWorker=function(l){if(l===self)t.seedFile=function(p,d){function x(h){var y=h.data;y.forge&&y.forge.prng&&(self.removeEventListener("message",x),d(y.forge.prng.err,y.forge.prng.bytes))}self.addEventListener("message",x),self.postMessage({forge:{prng:{needed:p}}})};else{var u=function(p){var d=p.data;d.forge&&d.forge.prng&&t.seedFile(d.forge.prng.needed,function(x,h){l.postMessage({forge:{prng:{err:x,bytes:h}}})})};l.addEventListener("message",u)}},t};var tt=ie;(function(){if(tt.random&&tt.random.getBytes){tt.random;return}(function(e){var t={},r=new Array(4),a=tt.util.createBuffer();t.formatKey=function(p){var d=tt.util.createBuffer(p);return p=new Array(4),p[0]=d.getInt32(),p[1]=d.getInt32(),p[2]=d.getInt32(),p[3]=d.getInt32(),tt.aes._expandKey(p,!1)},t.formatSeed=function(p){var d=tt.util.createBuffer(p);return p=new Array(4),p[0]=d.getInt32(),p[1]=d.getInt32(),p[2]=d.getInt32(),p[3]=d.getInt32(),p},t.cipher=function(p,d){return tt.aes._updateBlock(p,d,r,!1),a.putInt32(r[0]),a.putInt32(r[1]),a.putInt32(r[2]),a.putInt32(r[3]),a.getBytes()},t.increment=function(p){return++p[3],p},t.md=tt.md.sha256;function n(){var p=tt.prng.create(t);return p.getBytes=function(d,x){return p.generate(d,x)},p.getBytesSync=function(d){return p.generate(d)},p}var s=n(),i=null,o=tt.util.globalScope,c=o.crypto||o.msCrypto;if(c&&c.getRandomValues&&(i=function(p){return c.getRandomValues(p)}),tt.options.usePureJavaScript||!tt.util.isNodejs&&!i){if(s.collectInt(+new Date,32),typeof navigator<"u"){var l="";for(var u in navigator)try{typeof navigator[u]=="string"&&(l+=navigator[u])}catch{}s.collect(l),l=null}e&&(e().mousemove(function(p){s.collectInt(p.clientX,16),s.collectInt(p.clientY,16)}),e().keypress(function(p){s.collectInt(p.charCode,8)}))}if(!tt.random)tt.random=s;else for(var u in s)tt.random[u]=s[u];tt.random.createInstance=n,tt.random})(typeof jQuery<"u"?jQuery:null)})();var It=ie,Mu=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],Yf=[1,2,3,5],sb=function(e,t){return e<<t&65535|(e&65535)>>16-t},ob=function(e,t){return(e&65535)>>t|e<<16-t&65535};It.rc2=It.rc2||{},It.rc2.expandKey=function(e,t){typeof e=="string"&&(e=It.util.createBuffer(e)),t=t||128;var r=e,a=e.length(),n=t,s=Math.ceil(n/8),i=255>>(n&7),o;for(o=a;o<128;o++)r.putByte(Mu[r.at(o-1)+r.at(o-a)&255]);for(r.setAt(128-s,Mu[r.at(128-s)&i]),o=127-s;o>=0;o--)r.setAt(o,Mu[r.at(o+1)^r.at(o+s)]);return r};var Jf=function(e,t,r){var a=!1,n=null,s=null,i=null,o,c,l,u,p=[];for(e=It.rc2.expandKey(e,t),l=0;l<64;l++)p.push(e.getInt16Le());r?(o=function(h){for(l=0;l<4;l++)h[l]+=p[u]+(h[(l+3)%4]&h[(l+2)%4])+(~h[(l+3)%4]&h[(l+1)%4]),h[l]=sb(h[l],Yf[l]),u++},c=function(h){for(l=0;l<4;l++)h[l]+=p[h[(l+3)%4]&63]}):(o=function(h){for(l=3;l>=0;l--)h[l]=ob(h[l],Yf[l]),h[l]-=p[u]+(h[(l+3)%4]&h[(l+2)%4])+(~h[(l+3)%4]&h[(l+1)%4]),u--},c=function(h){for(l=3;l>=0;l--)h[l]-=p[h[(l+3)%4]&63]});var d=function(h){var y=[];for(l=0;l<4;l++){var b=n.getInt16Le();i!==null&&(r?b^=i.getInt16Le():i.putInt16Le(b)),y.push(b&65535)}u=r?0:63;for(var C=0;C<h.length;C++)for(var I=0;I<h[C][0];I++)h[C][1](y);for(l=0;l<4;l++)i!==null&&(r?i.putInt16Le(y[l]):y[l]^=i.getInt16Le()),s.putInt16Le(y[l])},x=null;return x={start:function(h,y){h&&typeof h=="string"&&(h=It.util.createBuffer(h)),a=!1,n=It.util.createBuffer(),s=y||new It.util.createBuffer,i=h,x.output=s},update:function(h){for(a||n.putBuffer(h);n.length()>=8;)d([[5,o],[1,c],[6,o],[1,c],[5,o]])},finish:function(h){var y=!0;if(r)if(h)y=h(8,n,!r);else{var b=n.length()===8?8:8-n.length();n.fillWithByte(b,b)}if(y&&(a=!0,x.update()),!r&&(y=n.length()===0,y))if(h)y=h(8,s,!r);else{var C=s.length(),I=s.at(C-1);I>C?y=!1:s.truncate(I)}return y}},x};It.rc2.startEncrypting=function(e,t,r){var a=It.rc2.createEncryptionCipher(e,128);return a.start(t,r),a},It.rc2.createEncryptionCipher=function(e,t){return Jf(e,t,!0)},It.rc2.startDecrypting=function(e,t,r){var a=It.rc2.createDecryptionCipher(e,128);return a.start(t,r),a},It.rc2.createDecryptionCipher=function(e,t){return Jf(e,t,!1)};var qu=ie;qu.jsbn=qu.jsbn||{};var ta;function L(e,t,r){this.data=[],e!=null&&(typeof e=="number"?this.fromNumber(e,t,r):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}qu.jsbn.BigInteger=L;function Ae(){return new L(null)}function cb(e,t,r,a,n,s){for(;--s>=0;){var i=t*this.data[e++]+r.data[a]+n;n=Math.floor(i/67108864),r.data[a++]=i&67108863}return n}function lb(e,t,r,a,n,s){for(var i=t&32767,o=t>>15;--s>=0;){var c=this.data[e]&32767,l=this.data[e++]>>15,u=o*c+l*i;c=i*c+((u&32767)<<15)+r.data[a]+(n&1073741823),n=(c>>>30)+(u>>>15)+o*l+(n>>>30),r.data[a++]=c&1073741823}return n}function Zf(e,t,r,a,n,s){for(var i=t&16383,o=t>>14;--s>=0;){var c=this.data[e]&16383,l=this.data[e++]>>14,u=o*c+l*i;c=i*c+((u&16383)<<14)+r.data[a]+n,n=(c>>28)+(u>>14)+o*l,r.data[a++]=c&268435455}return n}typeof navigator>"u"?(L.prototype.am=Zf,ta=28):navigator.appName=="Microsoft Internet Explorer"?(L.prototype.am=lb,ta=30):navigator.appName!="Netscape"?(L.prototype.am=cb,ta=26):(L.prototype.am=Zf,ta=28),L.prototype.DB=ta,L.prototype.DM=(1<<ta)-1,L.prototype.DV=1<<ta;var ju=52;L.prototype.FV=Math.pow(2,ju),L.prototype.F1=ju-ta,L.prototype.F2=2*ta-ju;var ub="0123456789abcdefghijklmnopqrstuvwxyz",nl=new Array,Xa,Lt;for(Xa=48,Lt=0;Lt<=9;++Lt)nl[Xa++]=Lt;for(Xa=97,Lt=10;Lt<36;++Lt)nl[Xa++]=Lt;for(Xa=65,Lt=10;Lt<36;++Lt)nl[Xa++]=Lt;function e0(e){return ub.charAt(e)}function t0(e,t){var r=nl[e.charCodeAt(t)];return r??-1}function pb(e){for(var t=this.t-1;t>=0;--t)e.data[t]=this.data[t];e.t=this.t,e.s=this.s}function db(e){this.t=1,this.s=e<0?-1:0,e>0?this.data[0]=e:e<-1?this.data[0]=e+this.DV:this.t=0}function ua(e){var t=Ae();return t.fromInt(e),t}function fb(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var a=e.length,n=!1,s=0;--a>=0;){var i=r==8?e[a]&255:t0(e,a);if(i<0){e.charAt(a)=="-"&&(n=!0);continue}n=!1,s==0?this.data[this.t++]=i:s+r>this.DB?(this.data[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this.data[this.t++]=i>>this.DB-s):this.data[this.t-1]|=i<<s,s+=r,s>=this.DB&&(s-=this.DB)}r==8&&(e[0]&128)!=0&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),n&&L.ZERO.subTo(this,this)}function hb(){for(var e=this.s&this.DM;this.t>0&&this.data[this.t-1]==e;)--this.t}function mb(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<<t)-1,a,n=!1,s="",i=this.t,o=this.DB-i*this.DB%t;if(i-- >0)for(o<this.DB&&(a=this.data[i]>>o)>0&&(n=!0,s=e0(a));i>=0;)o<t?(a=(this.data[i]&(1<<o)-1)<<t-o,a|=this.data[--i]>>(o+=this.DB-t)):(a=this.data[i]>>(o-=t)&r,o<=0&&(o+=this.DB,--i)),a>0&&(n=!0),n&&(s+=e0(a));return n?s:"0"}function vb(){var e=Ae();return L.ZERO.subTo(this,e),e}function gb(){return this.s<0?this.negate():this}function xb(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this.data[r]-e.data[r])!=0)return t;return 0}function il(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}function yb(){return this.t<=0?0:this.DB*(this.t-1)+il(this.data[this.t-1]^this.s&this.DM)}function bb(e,t){var r;for(r=this.t-1;r>=0;--r)t.data[r+e]=this.data[r];for(r=e-1;r>=0;--r)t.data[r]=0;t.t=this.t+e,t.s=this.s}function Eb(e,t){for(var r=e;r<this.t;++r)t.data[r-e]=this.data[r];t.t=Math.max(this.t-e,0),t.s=this.s}function Cb(e,t){var r=e%this.DB,a=this.DB-r,n=(1<<a)-1,s=Math.floor(e/this.DB),i=this.s<<r&this.DM,o;for(o=this.t-1;o>=0;--o)t.data[o+s+1]=this.data[o]>>a|i,i=(this.data[o]&n)<<r;for(o=s-1;o>=0;--o)t.data[o]=0;t.data[s]=i,t.t=this.t+s+1,t.s=this.s,t.clamp()}function Tb(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var a=e%this.DB,n=this.DB-a,s=(1<<a)-1;t.data[0]=this.data[r]>>a;for(var i=r+1;i<this.t;++i)t.data[i-r-1]|=(this.data[i]&s)<<n,t.data[i-r]=this.data[i]>>a;a>0&&(t.data[this.t-r-1]|=(this.s&s)<<n),t.t=this.t-r,t.clamp()}function Sb(e,t){for(var r=0,a=0,n=Math.min(e.t,this.t);r<n;)a+=this.data[r]-e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;if(e.t<this.t){for(a-=e.s;r<this.t;)a+=this.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;r<e.t;)a-=e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a-=e.s}t.s=a<0?-1:0,a<-1?t.data[r++]=this.DV+a:a>0&&(t.data[r++]=a),t.t=r,t.clamp()}function wb(e,t){var r=this.abs(),a=e.abs(),n=r.t;for(t.t=n+a.t;--n>=0;)t.data[n]=0;for(n=0;n<a.t;++n)t.data[n+r.t]=r.am(0,a.data[n],t,n,0,r.t);t.s=0,t.clamp(),this.s!=e.s&&L.ZERO.subTo(t,t)}function Ab(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e.data[r]=0;for(r=0;r<t.t-1;++r){var a=t.am(r,t.data[r],e,2*r,0,1);(e.data[r+t.t]+=t.am(r+1,2*t.data[r],e,2*r+1,a,t.t-r-1))>=t.DV&&(e.data[r+t.t]-=t.DV,e.data[r+t.t+1]=1)}e.t>0&&(e.data[e.t-1]+=t.am(r,t.data[r],e,2*r,0,1)),e.s=0,e.clamp()}function Ib(e,t,r){var a=e.abs();if(!(a.t<=0)){var n=this.abs();if(n.t<a.t){t?.fromInt(0),r!=null&&this.copyTo(r);return}r==null&&(r=Ae());var s=Ae(),i=this.s,o=e.s,c=this.DB-il(a.data[a.t-1]);c>0?(a.lShiftTo(c,s),n.lShiftTo(c,r)):(a.copyTo(s),n.copyTo(r));var l=s.t,u=s.data[l-1];if(u!=0){var p=u*(1<<this.F1)+(l>1?s.data[l-2]>>this.F2:0),d=this.FV/p,x=(1<<this.F1)/p,h=1<<this.F2,y=r.t,b=y-l,C=t??Ae();for(s.dlShiftTo(b,C),r.compareTo(C)>=0&&(r.data[r.t++]=1,r.subTo(C,r)),L.ONE.dlShiftTo(l,C),C.subTo(s,s);s.t<l;)s.data[s.t++]=0;for(;--b>=0;){var I=r.data[--y]==u?this.DM:Math.floor(r.data[y]*d+(r.data[y-1]+h)*x);if((r.data[y]+=s.am(0,I,r,b,0,l))<I)for(s.dlShiftTo(b,C),r.subTo(C,r);r.data[y]<--I;)r.subTo(C,r)}t!=null&&(r.drShiftTo(l,t),i!=o&&L.ZERO.subTo(t,t)),r.t=l,r.clamp(),c>0&&r.rShiftTo(c,r),i<0&&L.ZERO.subTo(r,r)}}}function Bb(e){var t=Ae();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(L.ZERO)>0&&e.subTo(t,t),t}function Ba(e){this.m=e}function kb(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function Rb(e){return e}function _b(e){e.divRemTo(this.m,null,e)}function Ub(e,t,r){e.multiplyTo(t,r),this.reduce(r)}function Nb(e,t){e.squareTo(t),this.reduce(t)}Ba.prototype.convert=kb,Ba.prototype.revert=Rb,Ba.prototype.reduce=_b,Ba.prototype.mulTo=Ub,Ba.prototype.sqrTo=Nb;function Lb(){if(this.t<1)return 0;var e=this.data[0];if((e&1)==0)return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function ka(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function Pb(e){var t=Ae();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(L.ZERO)>0&&this.m.subTo(t,t),t}function Ob(e){var t=Ae();return e.copyTo(t),this.reduce(t),t}function Db(e){for(;e.t<=this.mt2;)e.data[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=e.data[t]&32767,a=r*this.mpl+((r*this.mph+(e.data[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e.data[r]+=this.m.am(0,a,e,t,0,this.m.t);e.data[r]>=e.DV;)e.data[r]-=e.DV,e.data[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function Fb(e,t){e.squareTo(t),this.reduce(t)}function Vb(e,t,r){e.multiplyTo(t,r),this.reduce(r)}ka.prototype.convert=Pb,ka.prototype.revert=Ob,ka.prototype.reduce=Db,ka.prototype.mulTo=Vb,ka.prototype.sqrTo=Fb;function Mb(){return(this.t>0?this.data[0]&1:this.s)==0}function qb(e,t){if(e>4294967295||e<1)return L.ONE;var r=Ae(),a=Ae(),n=t.convert(this),s=il(e)-1;for(n.copyTo(r);--s>=0;)if(t.sqrTo(r,a),(e&1<<s)>0)t.mulTo(a,n,r);else{var i=r;r=a,a=i}return t.revert(r)}function jb(e,t){var r;return e<256||t.isEven()?r=new Ba(t):r=new ka(t),this.exp(e,r)}L.prototype.copyTo=pb,L.prototype.fromInt=db,L.prototype.fromString=fb,L.prototype.clamp=hb,L.prototype.dlShiftTo=bb,L.prototype.drShiftTo=Eb,L.prototype.lShiftTo=Cb,L.prototype.rShiftTo=Tb,L.prototype.subTo=Sb,L.prototype.multiplyTo=wb,L.prototype.squareTo=Ab,L.prototype.divRemTo=Ib,L.prototype.invDigit=Lb,L.prototype.isEven=Mb,L.prototype.exp=qb,L.prototype.toString=mb,L.prototype.negate=vb,L.prototype.abs=gb,L.prototype.compareTo=xb,L.prototype.bitLength=yb,L.prototype.mod=Bb,L.prototype.modPowInt=jb,L.ZERO=ua(0),L.ONE=ua(1);function Kb(){var e=Ae();return this.copyTo(e),e}function zb(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}function Hb(){return this.t==0?this.s:this.data[0]<<24>>24}function $b(){return this.t==0?this.s:this.data[0]<<16>>16}function Gb(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function Wb(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}function Xb(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),a=ua(r),n=Ae(),s=Ae(),i="";for(this.divRemTo(a,n,s);n.signum()>0;)i=(r+s.intValue()).toString(e).substr(1)+i,n.divRemTo(a,n,s);return s.intValue().toString(e)+i}function Qb(e,t){this.fromInt(0),t==null&&(t=10);for(var r=this.chunkSize(t),a=Math.pow(t,r),n=!1,s=0,i=0,o=0;o<e.length;++o){var c=t0(e,o);if(c<0){e.charAt(o)=="-"&&this.signum()==0&&(n=!0);continue}i=t*i+c,++s>=r&&(this.dMultiply(a),this.dAddOffset(i,0),s=0,i=0)}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(i,0)),n&&L.ZERO.subTo(this,this)}function Yb(e,t,r){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(L.ONE.shiftLeft(e-1),Ku,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(L.ONE.shiftLeft(e-1),this);else{var a=new Array,n=e&7;a.length=(e>>3)+1,t.nextBytes(a),n>0?a[0]&=(1<<n)-1:a[0]=0,this.fromString(a,256)}}function Jb(){var e=this.t,t=new Array;t[0]=this.s;var r=this.DB-e*this.DB%8,a,n=0;if(e-- >0)for(r<this.DB&&(a=this.data[e]>>r)!=(this.s&this.DM)>>r&&(t[n++]=a|this.s<<this.DB-r);e>=0;)r<8?(a=(this.data[e]&(1<<r)-1)<<8-r,a|=this.data[--e]>>(r+=this.DB-8)):(a=this.data[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),(a&128)!=0&&(a|=-256),n==0&&(this.s&128)!=(a&128)&&++n,(n>0||a!=this.s)&&(t[n++]=a);return t}function Zb(e){return this.compareTo(e)==0}function eE(e){return this.compareTo(e)<0?this:e}function tE(e){return this.compareTo(e)>0?this:e}function aE(e,t,r){var a,n,s=Math.min(e.t,this.t);for(a=0;a<s;++a)r.data[a]=t(this.data[a],e.data[a]);if(e.t<this.t){for(n=e.s&this.DM,a=s;a<this.t;++a)r.data[a]=t(this.data[a],n);r.t=this.t}else{for(n=this.s&this.DM,a=s;a<e.t;++a)r.data[a]=t(n,e.data[a]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()}function rE(e,t){return e&t}function nE(e){var t=Ae();return this.bitwiseTo(e,rE,t),t}function Ku(e,t){return e|t}function iE(e){var t=Ae();return this.bitwiseTo(e,Ku,t),t}function a0(e,t){return e^t}function sE(e){var t=Ae();return this.bitwiseTo(e,a0,t),t}function r0(e,t){return e&~t}function oE(e){var t=Ae();return this.bitwiseTo(e,r0,t),t}function cE(){for(var e=Ae(),t=0;t<this.t;++t)e.data[t]=this.DM&~this.data[t];return e.t=this.t,e.s=~this.s,e}function lE(e){var t=Ae();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function uE(e){var t=Ae();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function pE(e){if(e==0)return-1;var t=0;return(e&65535)==0&&(e>>=16,t+=16),(e&255)==0&&(e>>=8,t+=8),(e&15)==0&&(e>>=4,t+=4),(e&3)==0&&(e>>=2,t+=2),(e&1)==0&&++t,t}function dE(){for(var e=0;e<this.t;++e)if(this.data[e]!=0)return e*this.DB+pE(this.data[e]);return this.s<0?this.t*this.DB:-1}function fE(e){for(var t=0;e!=0;)e&=e-1,++t;return t}function hE(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=fE(this.data[r]^t);return e}function mE(e){var t=Math.floor(e/this.DB);return t>=this.t?this.s!=0:(this.data[t]&1<<e%this.DB)!=0}function vE(e,t){var r=L.ONE.shiftLeft(e);return this.bitwiseTo(r,t,r),r}function gE(e){return this.changeBit(e,Ku)}function xE(e){return this.changeBit(e,r0)}function yE(e){return this.changeBit(e,a0)}function bE(e,t){for(var r=0,a=0,n=Math.min(e.t,this.t);r<n;)a+=this.data[r]+e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;if(e.t<this.t){for(a+=e.s;r<this.t;)a+=this.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a+=this.s}else{for(a+=this.s;r<e.t;)a+=e.data[r],t.data[r++]=a&this.DM,a>>=this.DB;a+=e.s}t.s=a<0?-1:0,a>0?t.data[r++]=a:a<-1&&(t.data[r++]=this.DV+a),t.t=r,t.clamp()}function EE(e){var t=Ae();return this.addTo(e,t),t}function CE(e){var t=Ae();return this.subTo(e,t),t}function TE(e){var t=Ae();return this.multiplyTo(e,t),t}function SE(e){var t=Ae();return this.divRemTo(e,t,null),t}function wE(e){var t=Ae();return this.divRemTo(e,null,t),t}function AE(e){var t=Ae(),r=Ae();return this.divRemTo(e,t,r),new Array(t,r)}function IE(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function BE(e,t){if(e!=0){for(;this.t<=t;)this.data[this.t++]=0;for(this.data[t]+=e;this.data[t]>=this.DV;)this.data[t]-=this.DV,++t>=this.t&&(this.data[this.t++]=0),++this.data[t]}}function vc(){}function n0(e){return e}function kE(e,t,r){e.multiplyTo(t,r)}function RE(e,t){e.squareTo(t)}vc.prototype.convert=n0,vc.prototype.revert=n0,vc.prototype.mulTo=kE,vc.prototype.sqrTo=RE;function _E(e){return this.exp(e,new vc)}function UE(e,t,r){var a=Math.min(this.t+e.t,t);for(r.s=0,r.t=a;a>0;)r.data[--a]=0;var n;for(n=r.t-this.t;a<n;++a)r.data[a+this.t]=this.am(0,e.data[a],r,a,0,this.t);for(n=Math.min(e.t,t);a<n;++a)this.am(0,e.data[a],r,a,0,t-a);r.clamp()}function NE(e,t,r){--t;var a=r.t=this.t+e.t-t;for(r.s=0;--a>=0;)r.data[a]=0;for(a=Math.max(t-this.t,0);a<e.t;++a)r.data[this.t+a-t]=this.am(t-a,e.data[a],r,0,0,this.t+a-t);r.clamp(),r.drShiftTo(1,r)}function Qa(e){this.r2=Ae(),this.q3=Ae(),L.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function LE(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Ae();return e.copyTo(t),this.reduce(t),t}function PE(e){return e}function OE(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}function DE(e,t){e.squareTo(t),this.reduce(t)}function FE(e,t,r){e.multiplyTo(t,r),this.reduce(r)}Qa.prototype.convert=LE,Qa.prototype.revert=PE,Qa.prototype.reduce=OE,Qa.prototype.mulTo=FE,Qa.prototype.sqrTo=DE;function VE(e,t){var r=e.bitLength(),a,n=ua(1),s;if(r<=0)return n;r<18?a=1:r<48?a=3:r<144?a=4:r<768?a=5:a=6,r<8?s=new Ba(t):t.isEven()?s=new Qa(t):s=new ka(t);var i=new Array,o=3,c=a-1,l=(1<<a)-1;if(i[1]=s.convert(this),a>1){var u=Ae();for(s.sqrTo(i[1],u);o<=l;)i[o]=Ae(),s.mulTo(u,i[o-2],i[o]),o+=2}var p=e.t-1,d,x=!0,h=Ae(),y;for(r=il(e.data[p])-1;p>=0;){for(r>=c?d=e.data[p]>>r-c&l:(d=(e.data[p]&(1<<r+1)-1)<<c-r,p>0&&(d|=e.data[p-1]>>this.DB+r-c)),o=a;(d&1)==0;)d>>=1,--o;if((r-=o)<0&&(r+=this.DB,--p),x)i[d].copyTo(n),x=!1;else{for(;o>1;)s.sqrTo(n,h),s.sqrTo(h,n),o-=2;o>0?s.sqrTo(n,h):(y=n,n=h,h=y),s.mulTo(h,i[d],n)}for(;p>=0&&(e.data[p]&1<<r)==0;)s.sqrTo(n,h),y=n,n=h,h=y,--r<0&&(r=this.DB-1,--p)}return s.revert(n)}function ME(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var a=t;t=r,r=a}var n=t.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)return t;for(n<s&&(s=n),s>0&&(t.rShiftTo(s,t),r.rShiftTo(s,r));t.signum()>0;)(n=t.getLowestSetBit())>0&&t.rShiftTo(n,t),(n=r.getLowestSetBit())>0&&r.rShiftTo(n,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return s>0&&r.lShiftTo(s,r),r}function qE(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this.data[0]%e;else for(var a=this.t-1;a>=0;--a)r=(t*r+this.data[a])%e;return r}function jE(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return L.ZERO;for(var r=e.clone(),a=this.clone(),n=ua(1),s=ua(0),i=ua(0),o=ua(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!n.isEven()||!s.isEven())&&(n.addTo(this,n),s.subTo(e,s)),n.rShiftTo(1,n)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;a.isEven();)a.rShiftTo(1,a),t?((!i.isEven()||!o.isEven())&&(i.addTo(this,i),o.subTo(e,o)),i.rShiftTo(1,i)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);r.compareTo(a)>=0?(r.subTo(a,r),t&&n.subTo(i,n),s.subTo(o,s)):(a.subTo(r,a),t&&i.subTo(n,i),o.subTo(s,o))}if(a.compareTo(L.ONE)!=0)return L.ZERO;if(o.compareTo(e)>=0)return o.subtract(e);if(o.signum()<0)o.addTo(e,o);else return o;return o.signum()<0?o.add(e):o}var jt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],KE=(1<<26)/jt[jt.length-1];function zE(e){var t,r=this.abs();if(r.t==1&&r.data[0]<=jt[jt.length-1]){for(t=0;t<jt.length;++t)if(r.data[0]==jt[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<jt.length;){for(var a=jt[t],n=t+1;n<jt.length&&a<KE;)a*=jt[n++];for(a=r.modInt(a);t<n;)if(a%jt[t++]==0)return!1}return r.millerRabin(e)}function HE(e){var t=this.subtract(L.ONE),r=t.getLowestSetBit();if(r<=0)return!1;for(var a=t.shiftRight(r),n=$E(),s,i=0;i<e;++i){do s=new L(this.bitLength(),n);while(s.compareTo(L.ONE)<=0||s.compareTo(t)>=0);var o=s.modPow(a,this);if(o.compareTo(L.ONE)!=0&&o.compareTo(t)!=0){for(var c=1;c++<r&&o.compareTo(t)!=0;)if(o=o.modPowInt(2,this),o.compareTo(L.ONE)==0)return!1;if(o.compareTo(t)!=0)return!1}}return!0}function $E(){return{nextBytes:function(e){for(var t=0;t<e.length;++t)e[t]=Math.floor(Math.random()*256)}}}L.prototype.chunkSize=Gb,L.prototype.toRadix=Xb,L.prototype.fromRadix=Qb,L.prototype.fromNumber=Yb,L.prototype.bitwiseTo=aE,L.prototype.changeBit=vE,L.prototype.addTo=bE,L.prototype.dMultiply=IE,L.prototype.dAddOffset=BE,L.prototype.multiplyLowerTo=UE,L.prototype.multiplyUpperTo=NE,L.prototype.modInt=qE,L.prototype.millerRabin=HE,L.prototype.clone=Kb,L.prototype.intValue=zb,L.prototype.byteValue=Hb,L.prototype.shortValue=$b,L.prototype.signum=Wb,L.prototype.toByteArray=Jb,L.prototype.equals=Zb,L.prototype.min=eE,L.prototype.max=tE,L.prototype.and=nE,L.prototype.or=iE,L.prototype.xor=sE,L.prototype.andNot=oE,L.prototype.not=cE,L.prototype.shiftLeft=lE,L.prototype.shiftRight=uE,L.prototype.getLowestSetBit=dE,L.prototype.bitCount=hE,L.prototype.testBit=mE,L.prototype.setBit=gE,L.prototype.clearBit=xE,L.prototype.flipBit=yE,L.prototype.add=EE,L.prototype.subtract=CE,L.prototype.multiply=TE,L.prototype.divide=SE,L.prototype.remainder=wE,L.prototype.divideAndRemainder=AE,L.prototype.modPow=VE,L.prototype.modInverse=jE,L.prototype.pow=_E,L.prototype.gcd=ME,L.prototype.isProbablePrime=zE;var Xt=ie,i0=Xt.sha1=Xt.sha1||{};Xt.md.sha1=Xt.md.algorithms.sha1=i0,i0.create=function(){s0||GE();var e=null,t=Xt.util.createBuffer(),r=new Array(80),a={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return a.start=function(){a.messageLength=0,a.fullMessageLength=a.messageLength64=[];for(var n=a.messageLengthSize/4,s=0;s<n;++s)a.fullMessageLength.push(0);return t=Xt.util.createBuffer(),e={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},a},a.start(),a.update=function(n,s){s==="utf8"&&(n=Xt.util.encodeUtf8(n));var i=n.length;a.messageLength+=i,i=[i/4294967296>>>0,i>>>0];for(var o=a.fullMessageLength.length-1;o>=0;--o)a.fullMessageLength[o]+=i[1],i[1]=i[0]+(a.fullMessageLength[o]/4294967296>>>0),a.fullMessageLength[o]=a.fullMessageLength[o]>>>0,i[0]=i[1]/4294967296>>>0;return t.putBytes(n),o0(e,r,t),(t.read>2048||t.length()===0)&&t.compact(),a},a.digest=function(){var n=Xt.util.createBuffer();n.putBytes(t.bytes());var s=a.fullMessageLength[a.fullMessageLength.length-1]+a.messageLengthSize,i=s&a.blockLength-1;n.putBytes(zu.substr(0,a.blockLength-i));for(var o,c,l=a.fullMessageLength[0]*8,u=0;u<a.fullMessageLength.length-1;++u)o=a.fullMessageLength[u+1]*8,c=o/4294967296>>>0,l+=c,n.putInt32(l>>>0),l=o>>>0;n.putInt32(l);var p={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};o0(p,r,n);var d=Xt.util.createBuffer();return d.putInt32(p.h0),d.putInt32(p.h1),d.putInt32(p.h2),d.putInt32(p.h3),d.putInt32(p.h4),d},a};var zu=null,s0=!1;function GE(){zu="\x80",zu+=Xt.util.fillString("\0",64),s0=!0}function o0(e,t,r){for(var a,n,s,i,o,c,l,u,p=r.length();p>=64;){for(n=e.h0,s=e.h1,i=e.h2,o=e.h3,c=e.h4,u=0;u<16;++u)a=r.getInt32(),t[u]=a,l=o^s&(i^o),a=(n<<5|n>>>27)+l+c+1518500249+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<20;++u)a=t[u-3]^t[u-8]^t[u-14]^t[u-16],a=a<<1|a>>>31,t[u]=a,l=o^s&(i^o),a=(n<<5|n>>>27)+l+c+1518500249+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<32;++u)a=t[u-3]^t[u-8]^t[u-14]^t[u-16],a=a<<1|a>>>31,t[u]=a,l=s^i^o,a=(n<<5|n>>>27)+l+c+1859775393+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<40;++u)a=t[u-6]^t[u-16]^t[u-28]^t[u-32],a=a<<2|a>>>30,t[u]=a,l=s^i^o,a=(n<<5|n>>>27)+l+c+1859775393+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<60;++u)a=t[u-6]^t[u-16]^t[u-28]^t[u-32],a=a<<2|a>>>30,t[u]=a,l=s&i|o&(s^i),a=(n<<5|n>>>27)+l+c+2400959708+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;for(;u<80;++u)a=t[u-6]^t[u-16]^t[u-28]^t[u-32],a=a<<2|a>>>30,t[u]=a,l=s^i^o,a=(n<<5|n>>>27)+l+c+3395469782+a,c=o,o=i,i=(s<<30|s>>>2)>>>0,s=n,n=a;e.h0=e.h0+n|0,e.h1=e.h1+s|0,e.h2=e.h2+i|0,e.h3=e.h3+o|0,e.h4=e.h4+c|0,p-=64}}var Qt=ie,c0=Qt.pkcs1=Qt.pkcs1||{};c0.encode_rsa_oaep=function(e,t,r){var a,n,s,i;typeof r=="string"?(a=r,n=arguments[3]||void 0,s=arguments[4]||void 0):r&&(a=r.label||void 0,n=r.seed||void 0,s=r.md||void 0,r.mgf1&&r.mgf1.md&&(i=r.mgf1.md)),s?s.start():s=Qt.md.sha1.create(),i||(i=s);var o=Math.ceil(e.n.bitLength()/8),c=o-2*s.digestLength-2;if(t.length>c){var l=new Error("RSAES-OAEP input message length is too long.");throw l.length=t.length,l.maxLength=c,l}a||(a=""),s.update(a,"raw");for(var u=s.digest(),p="",d=c-t.length,x=0;x<d;x++)p+="\0";var h=u.getBytes()+p+""+t;if(!n)n=Qt.random.getBytes(s.digestLength);else if(n.length!==s.digestLength){var l=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw l.seedLength=n.length,l.digestLength=s.digestLength,l}var y=sl(n,o-s.digestLength-1,i),b=Qt.util.xorBytes(h,y,h.length),C=sl(b,s.digestLength,i),I=Qt.util.xorBytes(n,C,n.length);return"\0"+I+b},c0.decode_rsa_oaep=function(e,t,r){var a,n,s;typeof r=="string"?(a=r,n=arguments[3]||void 0):r&&(a=r.label||void 0,n=r.md||void 0,r.mgf1&&r.mgf1.md&&(s=r.mgf1.md));var i=Math.ceil(e.n.bitLength()/8);if(t.length!==i){var b=new Error("RSAES-OAEP encoded message length is invalid.");throw b.length=t.length,b.expectedLength=i,b}if(n===void 0?n=Qt.md.sha1.create():n.start(),s||(s=n),i<2*n.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");a||(a=""),n.update(a,"raw");for(var o=n.digest().getBytes(),c=t.charAt(0),l=t.substring(1,n.digestLength+1),u=t.substring(1+n.digestLength),p=sl(u,n.digestLength,s),d=Qt.util.xorBytes(l,p,l.length),x=sl(d,i-n.digestLength-1,s),h=Qt.util.xorBytes(u,x,u.length),y=h.substring(0,n.digestLength),b=c!=="\0",C=0;C<n.digestLength;++C)b|=o.charAt(C)!==y.charAt(C);for(var I=1,B=n.digestLength,U=n.digestLength;U<h.length;U++){var _=h.charCodeAt(U),N=_&1^1,j=I?65534:0;b|=_&j,I=I&N,B+=I}if(b||h.charCodeAt(B)!==1)throw new Error("Invalid RSAES-OAEP padding.");return h.substring(B+1)};function sl(e,t,r){r||(r=Qt.md.sha1.create());for(var a="",n=Math.ceil(t/r.digestLength),s=0;s<n;++s){var i=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,s&255);r.start(),r.update(e+i),a+=r.digest().getBytes()}return a.substring(0,t)}var pa=ie;(function(){if(pa.prime){pa.prime;return}var e=pa.prime=pa.prime||{},t=pa.jsbn.BigInteger,r=[6,4,2,4,2,4,6,2],a=new t(null);a.fromInt(30);var n=function(p,d){return p|d};e.generateProbablePrime=function(p,d,x){typeof d=="function"&&(x=d,d={}),d=d||{};var h=d.algorithm||"PRIMEINC";typeof h=="string"&&(h={name:h}),h.options=h.options||{};var y=d.prng||pa.random,b={nextBytes:function(C){for(var I=y.getBytesSync(C.length),B=0;B<C.length;++B)C[B]=I.charCodeAt(B)}};if(h.name==="PRIMEINC")return s(p,b,h.options,x);throw new Error("Invalid prime generation algorithm: "+h.name)};function s(p,d,x,h){return"workers"in x?c(p,d,x,h):i(p,d,x,h)}function i(p,d,x,h){var y=l(p,d),b=0,C=u(y.bitLength());"millerRabinTests"in x&&(C=x.millerRabinTests);var I=10;"maxBlockTime"in x&&(I=x.maxBlockTime),o(y,p,d,b,C,I,h)}function o(p,d,x,h,y,b,C){var I=+new Date;do{if(p.bitLength()>d&&(p=l(d,x)),p.isProbablePrime(y))return C(null,p);p.dAddOffset(r[h++%8],0)}while(b<0||+new Date-I<b);pa.util.setImmediate(function(){o(p,d,x,h,y,b,C)})}function c(p,d,x,h){if(typeof Worker>"u")return i(p,d,x,h);var y=l(p,d),b=x.workers,C=x.workLoad||100,I=C*30/8,B=x.workerScript||"forge/prime.worker.js";if(b===-1)return pa.util.estimateCores(function(_,N){_&&(N=2),b=N-1,U()});U();function U(){b=Math.max(1,b);for(var _=[],N=0;N<b;++N)_[N]=new Worker(B);for(var N=0;N<b;++N)_[N].addEventListener("message",H);var j=!1;function H(te){if(!j){var se=te.data;if(se.found){for(var Be=0;Be<_.length;++Be)_[Be].terminate();return j=!0,h(null,new t(se.prime,16))}y.bitLength()>p&&(y=l(p,d));var Te=y.toString(16);te.target.postMessage({hex:Te,workLoad:C}),y.dAddOffset(I,0)}}}}function l(p,d){var x=new t(p,d),h=p-1;return x.testBit(h)||x.bitwiseTo(t.ONE.shiftLeft(h),n,x),x.dAddOffset(31-x.mod(a).byteValue(),0),x}function u(p){return p<=100?27:p<=150?18:p<=200?15:p<=250?12:p<=300?9:p<=350?8:p<=400?7:p<=500?6:p<=600?5:p<=800?4:p<=1250?3:2}})();var W=ie;if(typeof Ie>"u")var Ie=W.jsbn.BigInteger;var Hu=W.util.isNodejs?nr:null,k=W.asn1,Pt=W.util;W.pki=W.pki||{},W.pki.rsa=W.rsa=W.rsa||{};var re=W.pki,WE=[6,4,2,4,2,4,6,2],XE={name:"PrivateKeyInfo",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:k.Class.UNIVERSAL,type:k.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:k.Class.UNIVERSAL,type:k.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},QE={name:"RSAPrivateKey",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},YE={name:"RSAPublicKey",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:k.Class.UNIVERSAL,type:k.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},JE=W.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:k.Class.UNIVERSAL,type:k.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:k.Class.UNIVERSAL,type:k.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},ZE={name:"DigestInfo",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:k.Class.UNIVERSAL,type:k.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:k.Class.UNIVERSAL,type:k.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:k.Class.UNIVERSAL,type:k.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:k.Class.UNIVERSAL,type:k.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},eC=function(e){var t;if(e.algorithm in re.oids)t=re.oids[e.algorithm];else{var r=new Error("Unknown message digest algorithm.");throw r.algorithm=e.algorithm,r}var a=k.oidToDer(t).getBytes(),n=k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[]),s=k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[]);s.value.push(k.create(k.Class.UNIVERSAL,k.Type.OID,!1,a)),s.value.push(k.create(k.Class.UNIVERSAL,k.Type.NULL,!1,""));var i=k.create(k.Class.UNIVERSAL,k.Type.OCTETSTRING,!1,e.digest().getBytes());return n.value.push(s),n.value.push(i),k.toDer(n).getBytes()},l0=function(e,t,r){if(r)return e.modPow(t.e,t.n);if(!t.p||!t.q)return e.modPow(t.d,t.n);t.dP||(t.dP=t.d.mod(t.p.subtract(Ie.ONE))),t.dQ||(t.dQ=t.d.mod(t.q.subtract(Ie.ONE))),t.qInv||(t.qInv=t.q.modInverse(t.p));var a;do a=new Ie(W.util.bytesToHex(W.random.getBytes(t.n.bitLength()/8)),16);while(a.compareTo(t.n)>=0||!a.gcd(t.n).equals(Ie.ONE));e=e.multiply(a.modPow(t.e,t.n)).mod(t.n);for(var n=e.mod(t.p).modPow(t.dP,t.p),s=e.mod(t.q).modPow(t.dQ,t.q);n.compareTo(s)<0;)n=n.add(t.p);var i=n.subtract(s).multiply(t.qInv).mod(t.p).multiply(t.q).add(s);return i=i.multiply(a.modInverse(t.n)).mod(t.n),i};re.rsa.encrypt=function(e,t,r){var a=r,n,s=Math.ceil(t.n.bitLength()/8);r!==!1&&r!==!0?(a=r===2,n=u0(e,t,r)):(n=W.util.createBuffer(),n.putBytes(e));for(var i=new Ie(n.toHex(),16),o=l0(i,t,a),c=o.toString(16),l=W.util.createBuffer(),u=s-Math.ceil(c.length/2);u>0;)l.putByte(0),--u;return l.putBytes(W.util.hexToBytes(c)),l.getBytes()},re.rsa.decrypt=function(e,t,r,a){var n=Math.ceil(t.n.bitLength()/8);if(e.length!==n){var s=new Error("Encrypted message length is invalid.");throw s.length=e.length,s.expected=n,s}var i=new Ie(W.util.createBuffer(e).toHex(),16);if(i.compareTo(t.n)>=0)throw new Error("Encrypted message is invalid.");for(var o=l0(i,t,r),c=o.toString(16),l=W.util.createBuffer(),u=n-Math.ceil(c.length/2);u>0;)l.putByte(0),--u;return l.putBytes(W.util.hexToBytes(c)),a!==!1?ol(l.getBytes(),t,r):l.getBytes()},re.rsa.createKeyPairGenerationState=function(e,t,r){typeof e=="string"&&(e=parseInt(e,10)),e=e||2048,r=r||{};var a=r.prng||W.random,n={nextBytes:function(o){for(var c=a.getBytesSync(o.length),l=0;l<o.length;++l)o[l]=c.charCodeAt(l)}},s=r.algorithm||"PRIMEINC",i;if(s==="PRIMEINC")i={algorithm:s,state:0,bits:e,rng:n,eInt:t||65537,e:new Ie(null),p:null,q:null,qBits:e>>1,pBits:e-(e>>1),pqState:0,num:null,keys:null},i.e.fromInt(i.eInt);else throw new Error("Invalid key generation algorithm: "+s);return i},re.rsa.stepKeyPairGenerationState=function(e,t){"algorithm"in e||(e.algorithm="PRIMEINC");var r=new Ie(null);r.fromInt(30);for(var a=0,n=function(p,d){return p|d},s=+new Date,i,o=0;e.keys===null&&(t<=0||o<t);){if(e.state===0){var c=e.p===null?e.pBits:e.qBits,l=c-1;e.pqState===0?(e.num=new Ie(c,e.rng),e.num.testBit(l)||e.num.bitwiseTo(Ie.ONE.shiftLeft(l),n,e.num),e.num.dAddOffset(31-e.num.mod(r).byteValue(),0),a=0,++e.pqState):e.pqState===1?e.num.bitLength()>c?e.pqState=0:e.num.isProbablePrime(aC(e.num.bitLength()))?++e.pqState:e.num.dAddOffset(WE[a++%8],0):e.pqState===2?e.pqState=e.num.subtract(Ie.ONE).gcd(e.e).compareTo(Ie.ONE)===0?3:0:e.pqState===3&&(e.pqState=0,e.p===null?e.p=e.num:e.q=e.num,e.p!==null&&e.q!==null&&++e.state,e.num=null)}else if(e.state===1)e.p.compareTo(e.q)<0&&(e.num=e.p,e.p=e.q,e.q=e.num),++e.state;else if(e.state===2)e.p1=e.p.subtract(Ie.ONE),e.q1=e.q.subtract(Ie.ONE),e.phi=e.p1.multiply(e.q1),++e.state;else if(e.state===3)e.phi.gcd(e.e).compareTo(Ie.ONE)===0?++e.state:(e.p=null,e.q=null,e.state=0);else if(e.state===4)e.n=e.p.multiply(e.q),e.n.bitLength()===e.bits?++e.state:(e.q=null,e.state=0);else if(e.state===5){var u=e.e.modInverse(e.phi);e.keys={privateKey:re.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:re.rsa.setPublicKey(e.n,e.e)}}i=+new Date,o+=i-s,s=i}return e.keys!==null},re.rsa.generateKeyPair=function(e,t,r,a){if(arguments.length===1?typeof e=="object"?(r=e,e=void 0):typeof e=="function"&&(a=e,e=void 0):arguments.length===2?typeof e=="number"?typeof t=="function"?(a=t,t=void 0):typeof t!="number"&&(r=t,t=void 0):(r=e,a=t,e=void 0,t=void 0):arguments.length===3&&(typeof t=="number"?typeof r=="function"&&(a=r,r=void 0):(a=r,r=t,t=void 0)),r=r||{},e===void 0&&(e=r.bits||2048),t===void 0&&(t=r.e||65537),!W.options.usePureJavaScript&&!r.prng&&e>=256&&e<=16384&&(t===65537||t===3)){if(a){if(p0("generateKeyPair"))return Hu.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(o,c,l){if(o)return a(o);a(null,{privateKey:re.privateKeyFromPem(l),publicKey:re.publicKeyFromPem(c)})});if(d0("generateKey")&&d0("exportKey"))return Pt.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:h0(t),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(o){return Pt.globalScope.crypto.subtle.exportKey("pkcs8",o.privateKey)}).then(void 0,function(o){a(o)}).then(function(o){if(o){var c=re.privateKeyFromAsn1(k.fromDer(W.util.createBuffer(o)));a(null,{privateKey:c,publicKey:re.setRsaPublicKey(c.n,c.e)})}});if(f0("generateKey")&&f0("exportKey")){var n=Pt.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:h0(t),hash:{name:"SHA-256"}},!0,["sign","verify"]);n.oncomplete=function(o){var c=o.target.result,l=Pt.globalScope.msCrypto.subtle.exportKey("pkcs8",c.privateKey);l.oncomplete=function(u){var p=u.target.result,d=re.privateKeyFromAsn1(k.fromDer(W.util.createBuffer(p)));a(null,{privateKey:d,publicKey:re.setRsaPublicKey(d.n,d.e)})},l.onerror=function(u){a(u)}},n.onerror=function(o){a(o)};return}}else if(p0("generateKeyPairSync")){var s=Hu.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:re.privateKeyFromPem(s.privateKey),publicKey:re.publicKeyFromPem(s.publicKey)}}}var i=re.rsa.createKeyPairGenerationState(e,t,r);if(!a)return re.rsa.stepKeyPairGenerationState(i,0),i.keys;tC(i,r,a)},re.setRsaPublicKey=re.rsa.setPublicKey=function(e,t){var r={n:e,e:t};return r.encrypt=function(a,n,s){if(typeof n=="string"?n=n.toUpperCase():n===void 0&&(n="RSAES-PKCS1-V1_5"),n==="RSAES-PKCS1-V1_5")n={encode:function(o,c,l){return u0(o,c,2).getBytes()}};else if(n==="RSA-OAEP"||n==="RSAES-OAEP")n={encode:function(o,c){return W.pkcs1.encode_rsa_oaep(c,o,s)}};else if(["RAW","NONE","NULL",null].indexOf(n)!==-1)n={encode:function(o){return o}};else if(typeof n=="string")throw new Error('Unsupported encryption scheme: "'+n+'".');var i=n.encode(a,r,!0);return re.rsa.encrypt(i,r,!0)},r.verify=function(a,n,s,i){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),i===void 0&&(i={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in i||(i._parseAllDigestBytes=!0),s==="RSASSA-PKCS1-V1_5"?s={verify:function(c,l){l=ol(l,r,!0);var u=k.fromDer(l,{parseAllBytes:i._parseAllDigestBytes}),p={},d=[];if(!k.validate(u,ZE,p,d)){var x=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw x.errors=d,x}var h=k.derToOid(p.algorithmIdentifier);if(!(h===W.oids.md2||h===W.oids.md5||h===W.oids.sha1||h===W.oids.sha224||h===W.oids.sha256||h===W.oids.sha384||h===W.oids.sha512||h===W.oids["sha512-224"]||h===W.oids["sha512-256"])){var x=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw x.oid=h,x}if((h===W.oids.md2||h===W.oids.md5)&&!("parameters"in p))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");return c===p.digest}}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:function(c,l){return l=ol(l,r,!0),c===l}});var o=re.rsa.decrypt(n,r,!0,!1);return s.verify(a,o,r.n.bitLength())},r},re.setRsaPrivateKey=re.rsa.setPrivateKey=function(e,t,r,a,n,s,i,o){var c={n:e,e:t,d:r,p:a,q:n,dP:s,dQ:i,qInv:o};return c.decrypt=function(l,u,p){typeof u=="string"?u=u.toUpperCase():u===void 0&&(u="RSAES-PKCS1-V1_5");var d=re.rsa.decrypt(l,c,!1,!1);if(u==="RSAES-PKCS1-V1_5")u={decode:ol};else if(u==="RSA-OAEP"||u==="RSAES-OAEP")u={decode:function(x,h){return W.pkcs1.decode_rsa_oaep(h,x,p)}};else if(["RAW","NONE","NULL",null].indexOf(u)!==-1)u={decode:function(x){return x}};else throw new Error('Unsupported encryption scheme: "'+u+'".');return u.decode(d,c,!1)},c.sign=function(l,u){var p=!1;typeof u=="string"&&(u=u.toUpperCase()),u===void 0||u==="RSASSA-PKCS1-V1_5"?(u={encode:eC},p=1):(u==="NONE"||u==="NULL"||u===null)&&(u={encode:function(){return l}},p=1);var d=u.encode(l,c.n.bitLength());return re.rsa.encrypt(d,c,p)},c},re.wrapRsaPrivateKey=function(e){return k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,k.integerToDer(0).getBytes()),k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.OID,!1,k.oidToDer(re.oids.rsaEncryption).getBytes()),k.create(k.Class.UNIVERSAL,k.Type.NULL,!1,"")]),k.create(k.Class.UNIVERSAL,k.Type.OCTETSTRING,!1,k.toDer(e).getBytes())])},re.privateKeyFromAsn1=function(e){var t={},r=[];if(k.validate(e,XE,t,r)&&(e=k.fromDer(W.util.createBuffer(t.privateKey))),t={},r=[],!k.validate(e,QE,t,r)){var a=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw a.errors=r,a}var n,s,i,o,c,l,u,p;return n=W.util.createBuffer(t.privateKeyModulus).toHex(),s=W.util.createBuffer(t.privateKeyPublicExponent).toHex(),i=W.util.createBuffer(t.privateKeyPrivateExponent).toHex(),o=W.util.createBuffer(t.privateKeyPrime1).toHex(),c=W.util.createBuffer(t.privateKeyPrime2).toHex(),l=W.util.createBuffer(t.privateKeyExponent1).toHex(),u=W.util.createBuffer(t.privateKeyExponent2).toHex(),p=W.util.createBuffer(t.privateKeyCoefficient).toHex(),re.setRsaPrivateKey(new Ie(n,16),new Ie(s,16),new Ie(i,16),new Ie(o,16),new Ie(c,16),new Ie(l,16),new Ie(u,16),new Ie(p,16))},re.privateKeyToAsn1=re.privateKeyToRSAPrivateKey=function(e){return k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,k.integerToDer(0).getBytes()),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,Yt(e.n)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,Yt(e.e)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,Yt(e.d)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,Yt(e.p)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,Yt(e.q)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,Yt(e.dP)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,Yt(e.dQ)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,Yt(e.qInv))])},re.publicKeyFromAsn1=function(e){var t={},r=[];if(k.validate(e,JE,t,r)){var a=k.derToOid(t.publicKeyOid);if(a!==re.oids.rsaEncryption){var n=new Error("Cannot read public key. Unknown OID.");throw n.oid=a,n}e=t.rsaPublicKey}if(r=[],!k.validate(e,YE,t,r)){var n=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw n.errors=r,n}var s=W.util.createBuffer(t.publicKeyModulus).toHex(),i=W.util.createBuffer(t.publicKeyExponent).toHex();return re.setRsaPublicKey(new Ie(s,16),new Ie(i,16))},re.publicKeyToAsn1=re.publicKeyToSubjectPublicKeyInfo=function(e){return k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.OID,!1,k.oidToDer(re.oids.rsaEncryption).getBytes()),k.create(k.Class.UNIVERSAL,k.Type.NULL,!1,"")]),k.create(k.Class.UNIVERSAL,k.Type.BITSTRING,!1,[re.publicKeyToRSAPublicKey(e)])])},re.publicKeyToRSAPublicKey=function(e){return k.create(k.Class.UNIVERSAL,k.Type.SEQUENCE,!0,[k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,Yt(e.n)),k.create(k.Class.UNIVERSAL,k.Type.INTEGER,!1,Yt(e.e))])};function u0(e,t,r){var a=W.util.createBuffer(),n=Math.ceil(t.n.bitLength()/8);if(e.length>n-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=e.length,s.max=n-11,s}a.putByte(0),a.putByte(r);var i=n-3-e.length,o;if(r===0||r===1){o=r===0?0:255;for(var c=0;c<i;++c)a.putByte(o)}else for(;i>0;){for(var l=0,u=W.random.getBytes(i),c=0;c<i;++c)o=u.charCodeAt(c),o===0?++l:a.putByte(o);i=l}return a.putByte(0),a.putBytes(e),a}function ol(e,t,r,a){var n=Math.ceil(t.n.bitLength()/8),s=W.util.createBuffer(e),i=s.getByte(),o=s.getByte();if(i!==0||r&&o!==0&&o!==1||!r&&o!=2||r&&o===0&&typeof a>"u")throw new Error("Encryption block is invalid.");var c=0;if(o===0){c=n-3-a;for(var l=0;l<c;++l)if(s.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(o===1)for(c=0;s.length()>1;){if(s.getByte()!==255){--s.read;break}++c}else if(o===2)for(c=0;s.length()>1;){if(s.getByte()===0){--s.read;break}++c}var u=s.getByte();if(u!==0||c!==n-3-s.length())throw new Error("Encryption block is invalid.");return s.getBytes()}function tC(e,t,r){typeof t=="function"&&(r=t,t={}),t=t||{};var a={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};"prng"in t&&(a.prng=t.prng),n();function n(){s(e.pBits,function(o,c){if(o)return r(o);if(e.p=c,e.q!==null)return i(o,e.q);s(e.qBits,i)})}function s(o,c){W.prime.generateProbablePrime(o,a,c)}function i(o,c){if(o)return r(o);if(e.q=c,e.p.compareTo(e.q)<0){var l=e.p;e.p=e.q,e.q=l}if(e.p.subtract(Ie.ONE).gcd(e.e).compareTo(Ie.ONE)!==0){e.p=null,n();return}if(e.q.subtract(Ie.ONE).gcd(e.e).compareTo(Ie.ONE)!==0){e.q=null,s(e.qBits,i);return}if(e.p1=e.p.subtract(Ie.ONE),e.q1=e.q.subtract(Ie.ONE),e.phi=e.p1.multiply(e.q1),e.phi.gcd(e.e).compareTo(Ie.ONE)!==0){e.p=e.q=null,n();return}if(e.n=e.p.multiply(e.q),e.n.bitLength()!==e.bits){e.q=null,s(e.qBits,i);return}var u=e.e.modInverse(e.phi);e.keys={privateKey:re.rsa.setPrivateKey(e.n,e.e,u,e.p,e.q,u.mod(e.p1),u.mod(e.q1),e.q.modInverse(e.p)),publicKey:re.rsa.setPublicKey(e.n,e.e)},r(null,e.keys)}}function Yt(e){var t=e.toString(16);t[0]>="8"&&(t="00"+t);var r=W.util.hexToBytes(t);return r.length>1&&(r.charCodeAt(0)===0&&(r.charCodeAt(1)&128)===0||r.charCodeAt(0)===255&&(r.charCodeAt(1)&128)===128)?r.substr(1):r}function aC(e){return e<=100?27:e<=150?18:e<=200?15:e<=250?12:e<=300?9:e<=350?8:e<=400?7:e<=500?6:e<=600?5:e<=800?4:e<=1250?3:2}function p0(e){return W.util.isNodejs&&typeof Hu[e]=="function"}function d0(e){return typeof Pt.globalScope<"u"&&typeof Pt.globalScope.crypto=="object"&&typeof Pt.globalScope.crypto.subtle=="object"&&typeof Pt.globalScope.crypto.subtle[e]=="function"}function f0(e){return typeof Pt.globalScope<"u"&&typeof Pt.globalScope.msCrypto=="object"&&typeof Pt.globalScope.msCrypto.subtle=="object"&&typeof Pt.globalScope.msCrypto.subtle[e]=="function"}function h0(e){for(var t=W.util.hexToBytes(e.toString(16)),r=new Uint8Array(t.length),a=0;a<t.length;++a)r[a]=t.charCodeAt(a);return r}var z=ie;if(typeof rC>"u")var rC=z.jsbn.BigInteger;var R=z.asn1,ne=z.pki=z.pki||{};ne.pbe=z.pbe=z.pbe||{};var Ra=ne.oids,nC={name:"EncryptedPrivateKeyInfo",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},iC={name:"PBES2Algorithms",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:R.Class.UNIVERSAL,type:R.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},sC={name:"pkcs-12PbeParams",tagClass:R.Class.UNIVERSAL,type:R.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:R.Class.UNIVERSAL,type:R.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:R.Class.UNIVERSAL,type:R.Type.INTEGER,constructed:!1,capture:"iterations"}]};ne.encryptPrivateKeyInfo=function(e,t,r){r=r||{},r.saltSize=r.saltSize||8,r.count=r.count||2048,r.algorithm=r.algorithm||"aes128",r.prfAlgorithm=r.prfAlgorithm||"sha1";var a=z.random.getBytesSync(r.saltSize),n=r.count,s=R.integerToDer(n),i,o,c;if(r.algorithm.indexOf("aes")===0||r.algorithm==="des"){var l,u,p;switch(r.algorithm){case"aes128":i=16,l=16,u=Ra["aes128-CBC"],p=z.aes.createEncryptionCipher;break;case"aes192":i=24,l=16,u=Ra["aes192-CBC"],p=z.aes.createEncryptionCipher;break;case"aes256":i=32,l=16,u=Ra["aes256-CBC"],p=z.aes.createEncryptionCipher;break;case"des":i=8,l=8,u=Ra.desCBC,p=z.des.createEncryptionCipher;break;default:var d=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw d.algorithm=r.algorithm,d}var x="hmacWith"+r.prfAlgorithm.toUpperCase(),h=g0(x),y=z.pkcs5.pbkdf2(t,a,n,i,h),b=z.random.getBytesSync(l),C=p(y);C.start(b),C.update(R.toDer(e)),C.finish(),c=C.output.getBytes();var I=oC(a,s,i,x);o=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ra.pkcs5PBES2).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ra.pkcs5PBKDF2).getBytes()),I]),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(u).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,b)])])])}else if(r.algorithm==="3des"){i=24;var B=new z.util.ByteBuffer(a),y=ne.pbe.generatePkcs12Key(t,B,1,n,i),b=ne.pbe.generatePkcs12Key(t,B,2,n,i),C=z.des.createEncryptionCipher(y);C.start(b),C.update(R.toDer(e)),C.finish(),c=C.output.getBytes(),o=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(Ra["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,a),R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,s.getBytes())])])}else{var d=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw d.algorithm=r.algorithm,d}var U=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[o,R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,c)]);return U},ne.decryptPrivateKeyInfo=function(e,t){var r=null,a={},n=[];if(!R.validate(e,nC,a,n)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var i=R.derToOid(a.encryptionOid),o=ne.pbe.getCipher(i,a.encryptionParams,t),c=z.util.createBuffer(a.encryptedData);return o.update(c),o.finish()&&(r=R.fromDer(o.output)),r},ne.encryptedPrivateKeyToPem=function(e,t){var r={type:"ENCRYPTED PRIVATE KEY",body:R.toDer(e).getBytes()};return z.pem.encode(r,{maxline:t})},ne.encryptedPrivateKeyFromPem=function(e){var t=z.pem.decode(e)[0];if(t.type!=="ENCRYPTED PRIVATE KEY"){var r=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return R.fromDer(t.body)},ne.encryptRsaPrivateKey=function(e,t,r){if(r=r||{},!r.legacy){var a=ne.wrapRsaPrivateKey(ne.privateKeyToAsn1(e));return a=ne.encryptPrivateKeyInfo(a,t,r),ne.encryptedPrivateKeyToPem(a)}var n,s,i,o;switch(r.algorithm){case"aes128":n="AES-128-CBC",i=16,s=z.random.getBytesSync(16),o=z.aes.createEncryptionCipher;break;case"aes192":n="AES-192-CBC",i=24,s=z.random.getBytesSync(16),o=z.aes.createEncryptionCipher;break;case"aes256":n="AES-256-CBC",i=32,s=z.random.getBytesSync(16),o=z.aes.createEncryptionCipher;break;case"3des":n="DES-EDE3-CBC",i=24,s=z.random.getBytesSync(8),o=z.des.createEncryptionCipher;break;case"des":n="DES-CBC",i=8,s=z.random.getBytesSync(8),o=z.des.createEncryptionCipher;break;default:var c=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+r.algorithm+'".');throw c.algorithm=r.algorithm,c}var l=z.pbe.opensslDeriveBytes(t,s.substr(0,8),i),u=o(l);u.start(s),u.update(R.toDer(ne.privateKeyToAsn1(e))),u.finish();var p={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:n,parameters:z.util.bytesToHex(s).toUpperCase()},body:u.output.getBytes()};return z.pem.encode(p)},ne.decryptRsaPrivateKey=function(e,t){var r=null,a=z.pem.decode(e)[0];if(a.type!=="ENCRYPTED PRIVATE KEY"&&a.type!=="PRIVATE KEY"&&a.type!=="RSA PRIVATE KEY"){var n=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw n.headerType=n,n}if(a.procType&&a.procType.type==="ENCRYPTED"){var s,i;switch(a.dekInfo.algorithm){case"DES-CBC":s=8,i=z.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,i=z.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,i=z.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,i=z.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,i=z.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,i=function(p){return z.rc2.createDecryptionCipher(p,40)};break;case"RC2-64-CBC":s=8,i=function(p){return z.rc2.createDecryptionCipher(p,64)};break;case"RC2-128-CBC":s=16,i=function(p){return z.rc2.createDecryptionCipher(p,128)};break;default:var n=new Error('Could not decrypt private key; unsupported encryption algorithm "'+a.dekInfo.algorithm+'".');throw n.algorithm=a.dekInfo.algorithm,n}var o=z.util.hexToBytes(a.dekInfo.parameters),c=z.pbe.opensslDeriveBytes(t,o.substr(0,8),s),l=i(c);if(l.start(o),l.update(z.util.createBuffer(a.body)),l.finish())r=l.output.getBytes();else return r}else r=a.body;return a.type==="ENCRYPTED PRIVATE KEY"?r=ne.decryptPrivateKeyInfo(R.fromDer(r),t):r=R.fromDer(r),r!==null&&(r=ne.privateKeyFromAsn1(r)),r},ne.pbe.generatePkcs12Key=function(e,t,r,a,n,s){var i,o;if(typeof s>"u"||s===null){if(!("sha1"in z.md))throw new Error('"sha1" hash algorithm unavailable.');s=z.md.sha1.create()}var c=s.digestLength,l=s.blockLength,u=new z.util.ByteBuffer,p=new z.util.ByteBuffer;if(e!=null){for(o=0;o<e.length;o++)p.putInt16(e.charCodeAt(o));p.putInt16(0)}var d=p.length(),x=t.length(),h=new z.util.ByteBuffer;h.fillWithByte(r,l);var y=l*Math.ceil(x/l),b=new z.util.ByteBuffer;for(o=0;o<y;o++)b.putByte(t.at(o%x));var C=l*Math.ceil(d/l),I=new z.util.ByteBuffer;for(o=0;o<C;o++)I.putByte(p.at(o%d));var B=b;B.putBuffer(I);for(var U=Math.ceil(n/c),_=1;_<=U;_++){var N=new z.util.ByteBuffer;N.putBytes(h.bytes()),N.putBytes(B.bytes());for(var j=0;j<a;j++)s.start(),s.update(N.getBytes()),N=s.digest();var H=new z.util.ByteBuffer;for(o=0;o<l;o++)H.putByte(N.at(o%c));var te=Math.ceil(x/l)+Math.ceil(d/l),se=new z.util.ByteBuffer;for(i=0;i<te;i++){var Be=new z.util.ByteBuffer(B.getBytes(l)),Te=511;for(o=H.length()-1;o>=0;o--)Te=Te>>8,Te+=H.at(o)+Be.at(o),Be.setAt(o,Te&255);se.putBuffer(Be)}B=se,u.putBuffer(N)}return u.truncate(u.length()-n),u},ne.pbe.getCipher=function(e,t,r){switch(e){case ne.oids.pkcs5PBES2:return ne.pbe.getCipherForPBES2(e,t,r);case ne.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case ne.oids["pbewithSHAAnd40BitRC2-CBC"]:return ne.pbe.getCipherForPKCS12PBE(e,t,r);default:var a=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw a.oid=e,a.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],a}},ne.pbe.getCipherForPBES2=function(e,t,r){var a={},n=[];if(!R.validate(t,iC,a,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}if(e=R.derToOid(a.kdfOid),e!==ne.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=e,s.supportedOids=["pkcs5PBKDF2"],s}if(e=R.derToOid(a.encOid),e!==ne.oids["aes128-CBC"]&&e!==ne.oids["aes192-CBC"]&&e!==ne.oids["aes256-CBC"]&&e!==ne.oids["des-EDE3-CBC"]&&e!==ne.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=e,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var i=a.kdfSalt,o=z.util.createBuffer(a.kdfIterationCount);o=o.getInt(o.length()<<3);var c,l;switch(ne.oids[e]){case"aes128-CBC":c=16,l=z.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,l=z.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,l=z.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,l=z.des.createDecryptionCipher;break;case"desCBC":c=8,l=z.des.createDecryptionCipher;break}var u=v0(a.prfOid),p=z.pkcs5.pbkdf2(r,i,o,c,u),d=a.encIv,x=l(p);return x.start(d),x},ne.pbe.getCipherForPKCS12PBE=function(e,t,r){var a={},n=[];if(!R.validate(t,sC,a,n)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=n,s}var i=z.util.createBuffer(a.salt),o=z.util.createBuffer(a.iterations);o=o.getInt(o.length()<<3);var c,l,u;switch(e){case ne.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,l=8,u=z.des.startDecrypting;break;case ne.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,l=8,u=function(y,b){var C=z.rc2.createDecryptionCipher(y,40);return C.start(b,null),C};break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=e,s}var p=v0(a.prfOid),d=ne.pbe.generatePkcs12Key(r,i,1,o,c,p);p.start();var x=ne.pbe.generatePkcs12Key(r,i,2,o,l,p);return u(d,x)},ne.pbe.opensslDeriveBytes=function(e,t,r,a){if(typeof a>"u"||a===null){if(!("md5"in z.md))throw new Error('"md5" hash algorithm unavailable.');a=z.md.md5.create()}t===null&&(t="");for(var n=[m0(a,e+t)],s=16,i=1;s<r;++i,s+=16)n.push(m0(a,n[i-1]+e+t));return n.join("").substr(0,r)};function m0(e,t){return e.start().update(t).digest().getBytes()}function v0(e){var t;if(!e)t="hmacWithSHA1";else if(t=ne.oids[R.derToOid(e)],!t){var r=new Error("Unsupported PRF OID.");throw r.oid=e,r.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],r}return g0(t)}function g0(e){var t=z.md;switch(e){case"hmacWithSHA224":t=z.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":e=e.substr(8).toLowerCase();break;default:var r=new Error("Unsupported PRF algorithm.");throw r.algorithm=e,r.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],r}if(!t||!(e in t))throw new Error("Unknown hash algorithm: "+e);return t[e].create()}function oC(e,t,r,a){var n=R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OCTETSTRING,!1,e),R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,t.getBytes())]);return a!=="hmacWithSHA1"&&n.value.push(R.create(R.Class.UNIVERSAL,R.Type.INTEGER,!1,z.util.hexToBytes(r.toString(16))),R.create(R.Class.UNIVERSAL,R.Type.SEQUENCE,!0,[R.create(R.Class.UNIVERSAL,R.Type.OID,!1,R.oidToDer(ne.oids[a]).getBytes()),R.create(R.Class.UNIVERSAL,R.Type.NULL,!1,"")])),n}var Ya=ie,q=Ya.asn1,Ja=Ya.pkcs7asn1=Ya.pkcs7asn1||{};Ya.pkcs7=Ya.pkcs7||{},Ya.pkcs7.asn1=Ja;var x0={name:"ContentInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};Ja.contentInfoValidator=x0;var y0={name:"EncryptedContentInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:q.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};Ja.envelopedDataValidator={name:"EnvelopedData",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:q.Class.UNIVERSAL,type:q.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(y0)},Ja.encryptedDataValidator={name:"EncryptedData",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"}].concat(y0)};var cC={name:"SignerInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:q.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:q.Class.UNIVERSAL,type:q.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:q.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};Ja.signedDataValidator={name:"SignedData",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:q.Class.UNIVERSAL,type:q.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},x0,{name:"SignedData.Certificates",tagClass:q.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:q.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:q.Class.UNIVERSAL,type:q.Type.SET,capture:"signerInfos",optional:!0,value:[cC]}]},Ja.recipientInfoValidator={name:"RecipientInfo",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:q.Class.UNIVERSAL,type:q.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:q.Class.UNIVERSAL,type:q.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:q.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:q.Class.UNIVERSAL,type:q.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]};var _a=ie;_a.mgf=_a.mgf||{};var lC=_a.mgf.mgf1=_a.mgf1=_a.mgf1||{};lC.create=function(e){var t={generate:function(r,a){for(var n=new _a.util.ByteBuffer,s=Math.ceil(a/e.digestLength),i=0;i<s;i++){var o=new _a.util.ByteBuffer;o.putInt32(i),e.start(),e.update(r+o.getBytes()),n.putBuffer(e.digest())}return n.truncate(n.length()-a),n.getBytes()}};return t};var cl=ie;cl.mgf=cl.mgf||{},cl.mgf.mgf1=cl.mgf1;var Ua=ie,uC=Ua.pss=Ua.pss||{};uC.create=function(e){arguments.length===3&&(e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var t=e.md,r=e.mgf,a=t.digestLength,n=e.salt||null;typeof n=="string"&&(n=Ua.util.createBuffer(n));var s;if("saltLength"in e)s=e.saltLength;else if(n!==null)s=n.length();else throw new Error("Salt length not specified or specific salt not given.");if(n!==null&&n.length()!==s)throw new Error("Given salt length does not match length of given salt.");var i=e.prng||Ua.random,o={};return o.encode=function(c,l){var u,p=l-1,d=Math.ceil(p/8),x=c.digest().getBytes();if(d<a+s+2)throw new Error("Message is too long to encrypt.");var h;n===null?h=i.getBytesSync(s):h=n.bytes();var y=new Ua.util.ByteBuffer;y.fillWithByte(0,8),y.putBytes(x),y.putBytes(h),t.start(),t.update(y.getBytes());var b=t.digest().getBytes(),C=new Ua.util.ByteBuffer;C.fillWithByte(0,d-s-a-2),C.putByte(1),C.putBytes(h);var I=C.getBytes(),B=d-a-1,U=r.generate(b,B),_="";for(u=0;u<B;u++)_+=String.fromCharCode(I.charCodeAt(u)^U.charCodeAt(u));var N=65280>>8*d-p&255;return _=String.fromCharCode(_.charCodeAt(0)&~N)+_.substr(1),_+b+"\xBC"},o.verify=function(c,l,u){var p,d=u-1,x=Math.ceil(d/8);if(l=l.substr(-x),x<a+s+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(l.charCodeAt(x-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var h=x-a-1,y=l.substr(0,h),b=l.substr(h,a),C=65280>>8*x-d&255;if((y.charCodeAt(0)&C)!==0)throw new Error("Bits beyond keysize not zero as expected.");var I=r.generate(b,h),B="";for(p=0;p<h;p++)B+=String.fromCharCode(y.charCodeAt(p)^I.charCodeAt(p));B=String.fromCharCode(B.charCodeAt(0)&~C)+B.substr(1);var U=x-a-s-2;for(p=0;p<U;p++)if(B.charCodeAt(p)!==0)throw new Error("Leftmost octets not zero as expected");if(B.charCodeAt(U)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var _=B.substr(-s),N=new Ua.util.ByteBuffer;N.fillWithByte(0,8),N.putBytes(c),N.putBytes(_),t.start(),t.update(N.getBytes());var j=t.digest().getBytes();return b===j},o};var X=ie,m=X.asn1,F=X.pki=X.pki||{},we=F.oids,Ge={};Ge.CN=we.commonName,Ge.commonName="CN",Ge.C=we.countryName,Ge.countryName="C",Ge.L=we.localityName,Ge.localityName="L",Ge.ST=we.stateOrProvinceName,Ge.stateOrProvinceName="ST",Ge.O=we.organizationName,Ge.organizationName="O",Ge.OU=we.organizationalUnitName,Ge.organizationalUnitName="OU",Ge.E=we.emailAddress,Ge.emailAddress="E";var b0=X.pki.rsa.publicKeyValidator,pC={name:"Certificate",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:m.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:m.Class.UNIVERSAL,type:m.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:m.Class.UNIVERSAL,type:m.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:m.Class.UNIVERSAL,type:m.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:m.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:m.Class.UNIVERSAL,type:m.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:m.Class.UNIVERSAL,type:m.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:m.Class.UNIVERSAL,type:m.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:m.Class.UNIVERSAL,type:m.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},b0,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:m.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:m.Class.UNIVERSAL,type:m.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:m.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:m.Class.UNIVERSAL,type:m.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:m.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:m.Class.UNIVERSAL,type:m.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:m.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:m.Class.UNIVERSAL,type:m.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},dC={name:"rsapss",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:m.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:m.Class.UNIVERSAL,type:m.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:m.Class.UNIVERSAL,type:m.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:m.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:m.Class.UNIVERSAL,type:m.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:m.Class.UNIVERSAL,type:m.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:m.Class.UNIVERSAL,type:m.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:m.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:m.Class.UNIVERSAL,type:m.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:m.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:m.Class.UNIVERSAL,type:m.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},fC={name:"CertificationRequestInfo",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:m.Class.UNIVERSAL,type:m.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},b0,{name:"CertificationRequestInfo.attributes",tagClass:m.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:m.Class.UNIVERSAL,type:m.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:m.Class.UNIVERSAL,type:m.Type.SET,constructed:!0}]}]}]},hC={name:"CertificationRequest",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[fC,{name:"CertificationRequest.signatureAlgorithm",tagClass:m.Class.UNIVERSAL,type:m.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:m.Class.UNIVERSAL,type:m.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:m.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:m.Class.UNIVERSAL,type:m.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};F.RDNAttributesAsArray=function(e,t){for(var r=[],a,n,s,i=0;i<e.value.length;++i){a=e.value[i];for(var o=0;o<a.value.length;++o)s={},n=a.value[o],s.type=m.derToOid(n.value[0].value),s.value=n.value[1].value,s.valueTagClass=n.value[1].type,s.type in we&&(s.name=we[s.type],s.name in Ge&&(s.shortName=Ge[s.name])),t&&(t.update(s.type),t.update(s.value)),r.push(s)}return r},F.CRIAttributesAsArray=function(e){for(var t=[],r=0;r<e.length;++r)for(var a=e[r],n=m.derToOid(a.value[0].value),s=a.value[1].value,i=0;i<s.length;++i){var o={};if(o.type=n,o.value=s[i].value,o.valueTagClass=s[i].type,o.type in we&&(o.name=we[o.type],o.name in Ge&&(o.shortName=Ge[o.name])),o.type===we.extensionRequest){o.extensions=[];for(var c=0;c<o.value.length;++c)o.extensions.push(F.certificateExtensionFromAsn1(o.value[c]))}t.push(o)}return t};function da(e,t){typeof t=="string"&&(t={shortName:t});for(var r=null,a,n=0;r===null&&n<e.attributes.length;++n)a=e.attributes[n],(t.type&&t.type===a.type||t.name&&t.name===a.name||t.shortName&&t.shortName===a.shortName)&&(r=a);return r}var ll=function(e,t,r){var a={};if(e!==we["RSASSA-PSS"])return a;r&&(a={hash:{algorithmOid:we.sha1},mgf:{algorithmOid:we.mgf1,hash:{algorithmOid:we.sha1}},saltLength:20});var n={},s=[];if(!m.validate(t,dC,n,s)){var i=new Error("Cannot read RSASSA-PSS parameter block.");throw i.errors=s,i}return n.hashOid!==void 0&&(a.hash=a.hash||{},a.hash.algorithmOid=m.derToOid(n.hashOid)),n.maskGenOid!==void 0&&(a.mgf=a.mgf||{},a.mgf.algorithmOid=m.derToOid(n.maskGenOid),a.mgf.hash=a.mgf.hash||{},a.mgf.hash.algorithmOid=m.derToOid(n.maskGenHashOid)),n.saltLength!==void 0&&(a.saltLength=n.saltLength.charCodeAt(0)),a},ul=function(e){switch(we[e.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return X.md.sha1.create();case"md5WithRSAEncryption":return X.md.md5.create();case"sha256WithRSAEncryption":return X.md.sha256.create();case"sha384WithRSAEncryption":return X.md.sha384.create();case"sha512WithRSAEncryption":return X.md.sha512.create();case"RSASSA-PSS":return X.md.sha256.create();default:var t=new Error("Could not compute "+e.type+" digest. Unknown signature OID.");throw t.signatureOid=e.signatureOid,t}},E0=function(e){var t=e.certificate,r;switch(t.signatureOid){case we.sha1WithRSAEncryption:case we.sha1WithRSASignature:break;case we["RSASSA-PSS"]:var a,n;if(a=we[t.signatureParameters.mgf.hash.algorithmOid],a===void 0||X.md[a]===void 0){var s=new Error("Unsupported MGF hash function.");throw s.oid=t.signatureParameters.mgf.hash.algorithmOid,s.name=a,s}if(n=we[t.signatureParameters.mgf.algorithmOid],n===void 0||X.mgf[n]===void 0){var s=new Error("Unsupported MGF function.");throw s.oid=t.signatureParameters.mgf.algorithmOid,s.name=n,s}if(n=X.mgf[n].create(X.md[a].create()),a=we[t.signatureParameters.hash.algorithmOid],a===void 0||X.md[a]===void 0){var s=new Error("Unsupported RSASSA-PSS hash function.");throw s.oid=t.signatureParameters.hash.algorithmOid,s.name=a,s}r=X.pss.create(X.md[a].create(),n,t.signatureParameters.saltLength);break}return t.publicKey.verify(e.md.digest().getBytes(),e.signature,r)};F.certificateFromPem=function(e,t,r){var a=X.pem.decode(e)[0];if(a.type!=="CERTIFICATE"&&a.type!=="X509 CERTIFICATE"&&a.type!=="TRUSTED CERTIFICATE"){var n=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw n.headerType=a.type,n}if(a.procType&&a.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var s=m.fromDer(a.body,r);return F.certificateFromAsn1(s,t)},F.certificateToPem=function(e,t){var r={type:"CERTIFICATE",body:m.toDer(F.certificateToAsn1(e)).getBytes()};return X.pem.encode(r,{maxline:t})},F.publicKeyFromPem=function(e){var t=X.pem.decode(e)[0];if(t.type!=="PUBLIC KEY"&&t.type!=="RSA PUBLIC KEY"){var r=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var a=m.fromDer(t.body);return F.publicKeyFromAsn1(a)},F.publicKeyToPem=function(e,t){var r={type:"PUBLIC KEY",body:m.toDer(F.publicKeyToAsn1(e)).getBytes()};return X.pem.encode(r,{maxline:t})},F.publicKeyToRSAPublicKeyPem=function(e,t){var r={type:"RSA PUBLIC KEY",body:m.toDer(F.publicKeyToRSAPublicKey(e)).getBytes()};return X.pem.encode(r,{maxline:t})},F.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||X.md.sha1.create(),a=t.type||"RSAPublicKey",n;switch(a){case"RSAPublicKey":n=m.toDer(F.publicKeyToRSAPublicKey(e)).getBytes();break;case"SubjectPublicKeyInfo":n=m.toDer(F.publicKeyToAsn1(e)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+t.type+'".')}r.start(),r.update(n);var s=r.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s},F.certificationRequestFromPem=function(e,t,r){var a=X.pem.decode(e)[0];if(a.type!=="CERTIFICATE REQUEST"){var n=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw n.headerType=a.type,n}if(a.procType&&a.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var s=m.fromDer(a.body,r);return F.certificationRequestFromAsn1(s,t)},F.certificationRequestToPem=function(e,t){var r={type:"CERTIFICATE REQUEST",body:m.toDer(F.certificationRequestToAsn1(e)).getBytes()};return X.pem.encode(r,{maxline:t})},F.createCertificate=function(){var e={};return e.version=2,e.serialNumber="00",e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.validity={},e.validity.notBefore=new Date,e.validity.notAfter=new Date,e.issuer={},e.issuer.getField=function(t){return da(e.issuer,t)},e.issuer.addField=function(t){Ot([t]),e.issuer.attributes.push(t)},e.issuer.attributes=[],e.issuer.hash=null,e.subject={},e.subject.getField=function(t){return da(e.subject,t)},e.subject.addField=function(t){Ot([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.extensions=[],e.publicKey=null,e.md=null,e.setSubject=function(t,r){Ot(t),e.subject.attributes=t,delete e.subject.uniqueId,r&&(e.subject.uniqueId=r),e.subject.hash=null},e.setIssuer=function(t,r){Ot(t),e.issuer.attributes=t,delete e.issuer.uniqueId,r&&(e.issuer.uniqueId=r),e.issuer.hash=null},e.setExtensions=function(t){for(var r=0;r<t.length;++r)C0(t[r],{cert:e});e.extensions=t},e.getExtension=function(t){typeof t=="string"&&(t={name:t});for(var r=null,a,n=0;r===null&&n<e.extensions.length;++n)a=e.extensions[n],(t.id&&a.id===t.id||t.name&&a.name===t.name)&&(r=a);return r},e.sign=function(t,r){e.md=r||X.md.sha1.create();var a=we[e.md.algorithm+"WithRSAEncryption"];if(!a){var n=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw n.algorithm=e.md.algorithm,n}e.signatureOid=e.siginfo.algorithmOid=a,e.tbsCertificate=F.getTBSCertificate(e);var s=m.toDer(e.tbsCertificate);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(t){var r=!1;if(!e.issued(t)){var a=t.issuer,n=e.subject,s=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw s.expectedIssuer=n.attributes,s.actualIssuer=a.attributes,s}var i=t.md;if(i===null){i=ul({signatureOid:t.signatureOid,type:"certificate"});var o=t.tbsCertificate||F.getTBSCertificate(t),c=m.toDer(o);i.update(c.getBytes())}return i!==null&&(r=E0({certificate:e,md:i,signature:t.signature})),r},e.isIssuer=function(t){var r=!1,a=e.issuer,n=t.subject;if(a.hash&&n.hash)r=a.hash===n.hash;else if(a.attributes.length===n.attributes.length){r=!0;for(var s,i,o=0;r&&o<a.attributes.length;++o)s=a.attributes[o],i=n.attributes[o],(s.type!==i.type||s.value!==i.value)&&(r=!1)}return r},e.issued=function(t){return t.isIssuer(e)},e.generateSubjectKeyIdentifier=function(){return F.getPublicKeyFingerprint(e.publicKey,{type:"RSAPublicKey"})},e.verifySubjectKeyIdentifier=function(){for(var t=we.subjectKeyIdentifier,r=0;r<e.extensions.length;++r){var a=e.extensions[r];if(a.id===t){var n=e.generateSubjectKeyIdentifier().getBytes();return X.util.hexToBytes(a.subjectKeyIdentifier)===n}}return!1},e},F.certificateFromAsn1=function(e,t){var r={},a=[];if(!m.validate(e,pC,r,a)){var n=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw n.errors=a,n}var s=m.derToOid(r.publicKeyOid);if(s!==F.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var i=F.createCertificate();i.version=r.certVersion?r.certVersion.charCodeAt(0):0;var o=X.util.createBuffer(r.certSerialNumber);i.serialNumber=o.toHex(),i.signatureOid=X.asn1.derToOid(r.certSignatureOid),i.signatureParameters=ll(i.signatureOid,r.certSignatureParams,!0),i.siginfo.algorithmOid=X.asn1.derToOid(r.certinfoSignatureOid),i.siginfo.parameters=ll(i.siginfo.algorithmOid,r.certinfoSignatureParams,!1),i.signature=r.certSignature;var c=[];if(r.certValidity1UTCTime!==void 0&&c.push(m.utcTimeToDate(r.certValidity1UTCTime)),r.certValidity2GeneralizedTime!==void 0&&c.push(m.generalizedTimeToDate(r.certValidity2GeneralizedTime)),r.certValidity3UTCTime!==void 0&&c.push(m.utcTimeToDate(r.certValidity3UTCTime)),r.certValidity4GeneralizedTime!==void 0&&c.push(m.generalizedTimeToDate(r.certValidity4GeneralizedTime)),c.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(c.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(i.validity.notBefore=c[0],i.validity.notAfter=c[1],i.tbsCertificate=r.tbsCertificate,t){i.md=ul({signatureOid:i.signatureOid,type:"certificate"});var l=m.toDer(i.tbsCertificate);i.md.update(l.getBytes())}var u=X.md.sha1.create(),p=m.toDer(r.certIssuer);u.update(p.getBytes()),i.issuer.getField=function(h){return da(i.issuer,h)},i.issuer.addField=function(h){Ot([h]),i.issuer.attributes.push(h)},i.issuer.attributes=F.RDNAttributesAsArray(r.certIssuer),r.certIssuerUniqueId&&(i.issuer.uniqueId=r.certIssuerUniqueId),i.issuer.hash=u.digest().toHex();var d=X.md.sha1.create(),x=m.toDer(r.certSubject);return d.update(x.getBytes()),i.subject.getField=function(h){return da(i.subject,h)},i.subject.addField=function(h){Ot([h]),i.subject.attributes.push(h)},i.subject.attributes=F.RDNAttributesAsArray(r.certSubject),r.certSubjectUniqueId&&(i.subject.uniqueId=r.certSubjectUniqueId),i.subject.hash=d.digest().toHex(),r.certExtensions?i.extensions=F.certificateExtensionsFromAsn1(r.certExtensions):i.extensions=[],i.publicKey=F.publicKeyFromAsn1(r.subjectPublicKeyInfo),i},F.certificateExtensionsFromAsn1=function(e){for(var t=[],r=0;r<e.value.length;++r)for(var a=e.value[r],n=0;n<a.value.length;++n)t.push(F.certificateExtensionFromAsn1(a.value[n]));return t},F.certificateExtensionFromAsn1=function(e){var t={};if(t.id=m.derToOid(e.value[0].value),t.critical=!1,e.value[1].type===m.Type.BOOLEAN?(t.critical=e.value[1].value.charCodeAt(0)!==0,t.value=e.value[2].value):t.value=e.value[1].value,t.id in we){if(t.name=we[t.id],t.name==="keyUsage"){var r=m.fromDer(t.value),a=0,n=0;r.value.length>1&&(a=r.value.charCodeAt(1),n=r.value.length>2?r.value.charCodeAt(2):0),t.digitalSignature=(a&128)===128,t.nonRepudiation=(a&64)===64,t.keyEncipherment=(a&32)===32,t.dataEncipherment=(a&16)===16,t.keyAgreement=(a&8)===8,t.keyCertSign=(a&4)===4,t.cRLSign=(a&2)===2,t.encipherOnly=(a&1)===1,t.decipherOnly=(n&128)===128}else if(t.name==="basicConstraints"){var r=m.fromDer(t.value);r.value.length>0&&r.value[0].type===m.Type.BOOLEAN?t.cA=r.value[0].value.charCodeAt(0)!==0:t.cA=!1;var s=null;r.value.length>0&&r.value[0].type===m.Type.INTEGER?s=r.value[0].value:r.value.length>1&&(s=r.value[1].value),s!==null&&(t.pathLenConstraint=m.derToInteger(s))}else if(t.name==="extKeyUsage")for(var r=m.fromDer(t.value),i=0;i<r.value.length;++i){var o=m.derToOid(r.value[i].value);o in we?t[we[o]]=!0:t[o]=!0}else if(t.name==="nsCertType"){var r=m.fromDer(t.value),a=0;r.value.length>1&&(a=r.value.charCodeAt(1)),t.client=(a&128)===128,t.server=(a&64)===64,t.email=(a&32)===32,t.objsign=(a&16)===16,t.reserved=(a&8)===8,t.sslCA=(a&4)===4,t.emailCA=(a&2)===2,t.objCA=(a&1)===1}else if(t.name==="subjectAltName"||t.name==="issuerAltName"){t.altNames=[];for(var c,r=m.fromDer(t.value),l=0;l<r.value.length;++l){c=r.value[l];var u={type:c.type,value:c.value};switch(t.altNames.push(u),c.type){case 1:case 2:case 6:break;case 7:u.ip=X.util.bytesToIP(c.value);break;case 8:u.oid=m.derToOid(c.value);break}}}else if(t.name==="subjectKeyIdentifier"){var r=m.fromDer(t.value);t.subjectKeyIdentifier=X.util.bytesToHex(r.value)}}return t},F.certificationRequestFromAsn1=function(e,t){var r={},a=[];if(!m.validate(e,hC,r,a)){var n=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw n.errors=a,n}var s=m.derToOid(r.publicKeyOid);if(s!==F.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var i=F.createCertificationRequest();if(i.version=r.csrVersion?r.csrVersion.charCodeAt(0):0,i.signatureOid=X.asn1.derToOid(r.csrSignatureOid),i.signatureParameters=ll(i.signatureOid,r.csrSignatureParams,!0),i.siginfo.algorithmOid=X.asn1.derToOid(r.csrSignatureOid),i.siginfo.parameters=ll(i.siginfo.algorithmOid,r.csrSignatureParams,!1),i.signature=r.csrSignature,i.certificationRequestInfo=r.certificationRequestInfo,t){i.md=ul({signatureOid:i.signatureOid,type:"certification request"});var o=m.toDer(i.certificationRequestInfo);i.md.update(o.getBytes())}var c=X.md.sha1.create();return i.subject.getField=function(l){return da(i.subject,l)},i.subject.addField=function(l){Ot([l]),i.subject.attributes.push(l)},i.subject.attributes=F.RDNAttributesAsArray(r.certificationRequestInfoSubject,c),i.subject.hash=c.digest().toHex(),i.publicKey=F.publicKeyFromAsn1(r.subjectPublicKeyInfo),i.getAttribute=function(l){return da(i,l)},i.addAttribute=function(l){Ot([l]),i.attributes.push(l)},i.attributes=F.CRIAttributesAsArray(r.certificationRequestInfoAttributes||[]),i},F.createCertificationRequest=function(){var e={};return e.version=0,e.signatureOid=null,e.signature=null,e.siginfo={},e.siginfo.algorithmOid=null,e.subject={},e.subject.getField=function(t){return da(e.subject,t)},e.subject.addField=function(t){Ot([t]),e.subject.attributes.push(t)},e.subject.attributes=[],e.subject.hash=null,e.publicKey=null,e.attributes=[],e.getAttribute=function(t){return da(e,t)},e.addAttribute=function(t){Ot([t]),e.attributes.push(t)},e.md=null,e.setSubject=function(t){Ot(t),e.subject.attributes=t,e.subject.hash=null},e.setAttributes=function(t){Ot(t),e.attributes=t},e.sign=function(t,r){e.md=r||X.md.sha1.create();var a=we[e.md.algorithm+"WithRSAEncryption"];if(!a){var n=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw n.algorithm=e.md.algorithm,n}e.signatureOid=e.siginfo.algorithmOid=a,e.certificationRequestInfo=F.getCertificationRequestInfo(e);var s=m.toDer(e.certificationRequestInfo);e.md.update(s.getBytes()),e.signature=t.sign(e.md)},e.verify=function(){var t=!1,r=e.md;if(r===null){r=ul({signatureOid:e.signatureOid,type:"certification request"});var a=e.certificationRequestInfo||F.getCertificationRequestInfo(e),n=m.toDer(a);r.update(n.getBytes())}return r!==null&&(t=E0({certificate:e,md:r,signature:e.signature})),t},e};function Za(e){for(var t=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[]),r,a,n=e.attributes,s=0;s<n.length;++s){r=n[s];var i=r.value,o=m.Type.PRINTABLESTRING;"valueTagClass"in r&&(o=r.valueTagClass,o===m.Type.UTF8&&(i=X.util.encodeUtf8(i))),a=m.create(m.Class.UNIVERSAL,m.Type.SET,!0,[m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(r.type).getBytes()),m.create(m.Class.UNIVERSAL,o,!1,i)])]),t.value.push(a)}return t}function Ot(e){for(var t,r=0;r<e.length;++r){if(t=e[r],typeof t.name>"u"&&(t.type&&t.type in F.oids?t.name=F.oids[t.type]:t.shortName&&t.shortName in Ge&&(t.name=F.oids[Ge[t.shortName]])),typeof t.type>"u")if(t.name&&t.name in F.oids)t.type=F.oids[t.name];else{var a=new Error("Attribute type not specified.");throw a.attribute=t,a}if(typeof t.shortName>"u"&&t.name&&t.name in Ge&&(t.shortName=Ge[t.name]),t.type===we.extensionRequest&&(t.valueConstructed=!0,t.valueTagClass=m.Type.SEQUENCE,!t.value&&t.extensions)){t.value=[];for(var n=0;n<t.extensions.length;++n)t.value.push(F.certificateExtensionToAsn1(C0(t.extensions[n])))}if(typeof t.value>"u"){var a=new Error("Attribute value not specified.");throw a.attribute=t,a}}}function C0(e,t){if(t=t||{},typeof e.name>"u"&&e.id&&e.id in F.oids&&(e.name=F.oids[e.id]),typeof e.id>"u")if(e.name&&e.name in F.oids)e.id=F.oids[e.name];else{var r=new Error("Extension ID not specified.");throw r.extension=e,r}if(typeof e.value<"u")return e;if(e.name==="keyUsage"){var a=0,n=0,s=0;e.digitalSignature&&(n|=128,a=7),e.nonRepudiation&&(n|=64,a=6),e.keyEncipherment&&(n|=32,a=5),e.dataEncipherment&&(n|=16,a=4),e.keyAgreement&&(n|=8,a=3),e.keyCertSign&&(n|=4,a=2),e.cRLSign&&(n|=2,a=1),e.encipherOnly&&(n|=1,a=0),e.decipherOnly&&(s|=128,a=7);var i=String.fromCharCode(a);s!==0?i+=String.fromCharCode(n)+String.fromCharCode(s):n!==0&&(i+=String.fromCharCode(n)),e.value=m.create(m.Class.UNIVERSAL,m.Type.BITSTRING,!1,i)}else if(e.name==="basicConstraints")e.value=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[]),e.cA&&e.value.value.push(m.create(m.Class.UNIVERSAL,m.Type.BOOLEAN,!1,"\xFF")),"pathLenConstraint"in e&&e.value.value.push(m.create(m.Class.UNIVERSAL,m.Type.INTEGER,!1,m.integerToDer(e.pathLenConstraint).getBytes()));else if(e.name==="extKeyUsage"){e.value=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[]);var o=e.value.value;for(var c in e)e[c]===!0&&(c in we?o.push(m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(we[c]).getBytes())):c.indexOf(".")!==-1&&o.push(m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(c).getBytes())))}else if(e.name==="nsCertType"){var a=0,n=0;e.client&&(n|=128,a=7),e.server&&(n|=64,a=6),e.email&&(n|=32,a=5),e.objsign&&(n|=16,a=4),e.reserved&&(n|=8,a=3),e.sslCA&&(n|=4,a=2),e.emailCA&&(n|=2,a=1),e.objCA&&(n|=1,a=0);var i=String.fromCharCode(a);n!==0&&(i+=String.fromCharCode(n)),e.value=m.create(m.Class.UNIVERSAL,m.Type.BITSTRING,!1,i)}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.value=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[]);for(var l,u=0;u<e.altNames.length;++u){l=e.altNames[u];var i=l.value;if(l.type===7&&l.ip){if(i=X.util.bytesFromIP(l.ip),i===null){var r=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw r.extension=e,r}}else l.type===8&&(l.oid?i=m.oidToDer(m.oidToDer(l.oid)):i=m.oidToDer(i));e.value.value.push(m.create(m.Class.CONTEXT_SPECIFIC,l.type,!1,i))}}else if(e.name==="nsComment"&&t.cert){if(!/^[\x00-\x7F]*$/.test(e.comment)||e.comment.length<1||e.comment.length>128)throw new Error('Invalid "nsComment" content.');e.value=m.create(m.Class.UNIVERSAL,m.Type.IA5STRING,!1,e.comment)}else if(e.name==="subjectKeyIdentifier"&&t.cert){var p=t.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=p.toHex(),e.value=m.create(m.Class.UNIVERSAL,m.Type.OCTETSTRING,!1,p.getBytes())}else if(e.name==="authorityKeyIdentifier"&&t.cert){e.value=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[]);var o=e.value.value;if(e.keyIdentifier){var d=e.keyIdentifier===!0?t.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;o.push(m.create(m.Class.CONTEXT_SPECIFIC,0,!1,d))}if(e.authorityCertIssuer){var x=[m.create(m.Class.CONTEXT_SPECIFIC,4,!0,[Za(e.authorityCertIssuer===!0?t.cert.issuer:e.authorityCertIssuer)])];o.push(m.create(m.Class.CONTEXT_SPECIFIC,1,!0,x))}if(e.serialNumber){var h=X.util.hexToBytes(e.serialNumber===!0?t.cert.serialNumber:e.serialNumber);o.push(m.create(m.Class.CONTEXT_SPECIFIC,2,!1,h))}}else if(e.name==="cRLDistributionPoints"){e.value=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[]);for(var o=e.value.value,y=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[]),b=m.create(m.Class.CONTEXT_SPECIFIC,0,!0,[]),l,u=0;u<e.altNames.length;++u){l=e.altNames[u];var i=l.value;if(l.type===7&&l.ip){if(i=X.util.bytesFromIP(l.ip),i===null){var r=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw r.extension=e,r}}else l.type===8&&(l.oid?i=m.oidToDer(m.oidToDer(l.oid)):i=m.oidToDer(i));b.value.push(m.create(m.Class.CONTEXT_SPECIFIC,l.type,!1,i))}y.value.push(m.create(m.Class.CONTEXT_SPECIFIC,0,!0,[b])),o.push(y)}if(typeof e.value>"u"){var r=new Error("Extension value not specified.");throw r.extension=e,r}return e}function $u(e,t){switch(e){case we["RSASSA-PSS"]:var r=[];return t.hash.algorithmOid!==void 0&&r.push(m.create(m.Class.CONTEXT_SPECIFIC,0,!0,[m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(t.hash.algorithmOid).getBytes()),m.create(m.Class.UNIVERSAL,m.Type.NULL,!1,"")])])),t.mgf.algorithmOid!==void 0&&r.push(m.create(m.Class.CONTEXT_SPECIFIC,1,!0,[m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(t.mgf.algorithmOid).getBytes()),m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(t.mgf.hash.algorithmOid).getBytes()),m.create(m.Class.UNIVERSAL,m.Type.NULL,!1,"")])])])),t.saltLength!==void 0&&r.push(m.create(m.Class.CONTEXT_SPECIFIC,2,!0,[m.create(m.Class.UNIVERSAL,m.Type.INTEGER,!1,m.integerToDer(t.saltLength).getBytes())])),m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,r);default:return m.create(m.Class.UNIVERSAL,m.Type.NULL,!1,"")}}function mC(e){var t=m.create(m.Class.CONTEXT_SPECIFIC,0,!0,[]);if(e.attributes.length===0)return t;for(var r=e.attributes,a=0;a<r.length;++a){var n=r[a],s=n.value,i=m.Type.UTF8;"valueTagClass"in n&&(i=n.valueTagClass),i===m.Type.UTF8&&(s=X.util.encodeUtf8(s));var o=!1;"valueConstructed"in n&&(o=n.valueConstructed);var c=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(n.type).getBytes()),m.create(m.Class.UNIVERSAL,m.Type.SET,!0,[m.create(m.Class.UNIVERSAL,i,o,s)])]);t.value.push(c)}return t}var vC=new Date("1950-01-01T00:00:00Z"),gC=new Date("2050-01-01T00:00:00Z");function T0(e){return e>=vC&&e<gC?m.create(m.Class.UNIVERSAL,m.Type.UTCTIME,!1,m.dateToUtcTime(e)):m.create(m.Class.UNIVERSAL,m.Type.GENERALIZEDTIME,!1,m.dateToGeneralizedTime(e))}F.getTBSCertificate=function(e){var t=T0(e.validity.notBefore),r=T0(e.validity.notAfter),a=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[m.create(m.Class.CONTEXT_SPECIFIC,0,!0,[m.create(m.Class.UNIVERSAL,m.Type.INTEGER,!1,m.integerToDer(e.version).getBytes())]),m.create(m.Class.UNIVERSAL,m.Type.INTEGER,!1,X.util.hexToBytes(e.serialNumber)),m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(e.siginfo.algorithmOid).getBytes()),$u(e.siginfo.algorithmOid,e.siginfo.parameters)]),Za(e.issuer),m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[t,r]),Za(e.subject),F.publicKeyToAsn1(e.publicKey)]);return e.issuer.uniqueId&&a.value.push(m.create(m.Class.CONTEXT_SPECIFIC,1,!0,[m.create(m.Class.UNIVERSAL,m.Type.BITSTRING,!1,"\0"+e.issuer.uniqueId)])),e.subject.uniqueId&&a.value.push(m.create(m.Class.CONTEXT_SPECIFIC,2,!0,[m.create(m.Class.UNIVERSAL,m.Type.BITSTRING,!1,"\0"+e.subject.uniqueId)])),e.extensions.length>0&&a.value.push(F.certificateExtensionsToAsn1(e.extensions)),a},F.getCertificationRequestInfo=function(e){var t=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[m.create(m.Class.UNIVERSAL,m.Type.INTEGER,!1,m.integerToDer(e.version).getBytes()),Za(e.subject),F.publicKeyToAsn1(e.publicKey),mC(e)]);return t},F.distinguishedNameToAsn1=function(e){return Za(e)},F.certificateToAsn1=function(e){var t=e.tbsCertificate||F.getTBSCertificate(e);return m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[t,m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(e.signatureOid).getBytes()),$u(e.signatureOid,e.signatureParameters)]),m.create(m.Class.UNIVERSAL,m.Type.BITSTRING,!1,"\0"+e.signature)])},F.certificateExtensionsToAsn1=function(e){var t=m.create(m.Class.CONTEXT_SPECIFIC,3,!0,[]),r=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[]);t.value.push(r);for(var a=0;a<e.length;++a)r.value.push(F.certificateExtensionToAsn1(e[a]));return t},F.certificateExtensionToAsn1=function(e){var t=m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[]);t.value.push(m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(e.id).getBytes())),e.critical&&t.value.push(m.create(m.Class.UNIVERSAL,m.Type.BOOLEAN,!1,"\xFF"));var r=e.value;return typeof e.value!="string"&&(r=m.toDer(r).getBytes()),t.value.push(m.create(m.Class.UNIVERSAL,m.Type.OCTETSTRING,!1,r)),t},F.certificationRequestToAsn1=function(e){var t=e.certificationRequestInfo||F.getCertificationRequestInfo(e);return m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[t,m.create(m.Class.UNIVERSAL,m.Type.SEQUENCE,!0,[m.create(m.Class.UNIVERSAL,m.Type.OID,!1,m.oidToDer(e.signatureOid).getBytes()),$u(e.signatureOid,e.signatureParameters)]),m.create(m.Class.UNIVERSAL,m.Type.BITSTRING,!1,"\0"+e.signature)])},F.createCaStore=function(e){var t={certs:{}};t.getIssuer=function(i){var o=r(i.issuer);return o},t.addCertificate=function(i){if(typeof i=="string"&&(i=X.pki.certificateFromPem(i)),a(i.subject),!t.hasCertificate(i))if(i.subject.hash in t.certs){var o=t.certs[i.subject.hash];X.util.isArray(o)||(o=[o]),o.push(i),t.certs[i.subject.hash]=o}else t.certs[i.subject.hash]=i},t.hasCertificate=function(i){typeof i=="string"&&(i=X.pki.certificateFromPem(i));var o=r(i.subject);if(!o)return!1;X.util.isArray(o)||(o=[o]);for(var c=m.toDer(F.certificateToAsn1(i)).getBytes(),l=0;l<o.length;++l){var u=m.toDer(F.certificateToAsn1(o[l])).getBytes();if(c===u)return!0}return!1},t.listAllCertificates=function(){var i=[];for(var o in t.certs)if(t.certs.hasOwnProperty(o)){var c=t.certs[o];if(!X.util.isArray(c))i.push(c);else for(var l=0;l<c.length;++l)i.push(c[l])}return i},t.removeCertificate=function(i){var o;if(typeof i=="string"&&(i=X.pki.certificateFromPem(i)),a(i.subject),!t.hasCertificate(i))return null;var c=r(i.subject);if(!X.util.isArray(c))return o=t.certs[i.subject.hash],delete t.certs[i.subject.hash],o;for(var l=m.toDer(F.certificateToAsn1(i)).getBytes(),u=0;u<c.length;++u){var p=m.toDer(F.certificateToAsn1(c[u])).getBytes();l===p&&(o=c[u],c.splice(u,1))}return c.length===0&&delete t.certs[i.subject.hash],o};function r(i){return a(i),t.certs[i.hash]||null}function a(i){if(!i.hash){var o=X.md.sha1.create();i.attributes=F.RDNAttributesAsArray(Za(i),o),i.hash=o.digest().toHex()}}if(e)for(var n=0;n<e.length;++n){var s=e[n];t.addCertificate(s)}return t},F.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"},F.verifyCertificateChain=function(e,t,r){typeof r=="function"&&(r={verify:r}),r=r||{},t=t.slice(0);var a=t.slice(0),n=r.validityCheckDate;typeof n>"u"&&(n=new Date);var s=!0,i=null,o=0;do{var c=t.shift(),l=null,u=!1;if(n&&(n<c.validity.notBefore||n>c.validity.notAfter)&&(i={message:"Certificate is not valid yet or has expired.",error:F.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:n}),i===null){if(l=t[0]||e.getIssuer(c),l===null&&c.isIssuer(c)&&(u=!0,l=c),l){var p=l;X.util.isArray(p)||(p=[p]);for(var d=!1;!d&&p.length>0;){l=p.shift();try{d=l.verify(c)}catch{}}d||(i={message:"Certificate signature is invalid.",error:F.certificateError.bad_certificate})}i===null&&(!l||u)&&!e.hasCertificate(c)&&(i={message:"Certificate is not trusted.",error:F.certificateError.unknown_ca})}if(i===null&&l&&!c.isIssuer(l)&&(i={message:"Certificate issuer is invalid.",error:F.certificateError.bad_certificate}),i===null)for(var x={keyUsage:!0,basicConstraints:!0},h=0;i===null&&h<c.extensions.length;++h){var y=c.extensions[h];y.critical&&!(y.name in x)&&(i={message:"Certificate has an unsupported critical extension.",error:F.certificateError.unsupported_certificate})}if(i===null&&(!s||t.length===0&&(!l||u))){var b=c.getExtension("basicConstraints"),C=c.getExtension("keyUsage");if(C!==null&&(!C.keyCertSign||b===null)&&(i={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:F.certificateError.bad_certificate}),i===null&&b!==null&&!b.cA&&(i={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:F.certificateError.bad_certificate}),i===null&&C!==null&&"pathLenConstraint"in b){var I=o-1;I>b.pathLenConstraint&&(i={message:"Certificate basicConstraints pathLenConstraint violated.",error:F.certificateError.bad_certificate})}}var B=i===null?!0:i.error,U=r.verify?r.verify(B,o,a):B;if(U===!0)i=null;else throw B===!0&&(i={message:"The application rejected the certificate.",error:F.certificateError.bad_certificate}),(U||U===0)&&(typeof U=="object"&&!X.util.isArray(U)?(U.message&&(i.message=U.message),U.error&&(i.error=U.error)):typeof U=="string"&&(i.error=U)),i;s=!1,++o}while(t.length>0);return!0};var De=ie,T=De.asn1,le=De.pki,gc=De.pkcs12=De.pkcs12||{},S0={name:"ContentInfo",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:T.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},xC={name:"PFX",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:T.Class.UNIVERSAL,type:T.Type.INTEGER,constructed:!1,capture:"version"},S0,{name:"PFX.macData",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:T.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:T.Class.UNIVERSAL,type:T.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:T.Class.UNIVERSAL,type:T.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:T.Class.UNIVERSAL,type:T.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},yC={name:"SafeBag",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:T.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:T.Class.UNIVERSAL,type:T.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},bC={name:"Attribute",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:T.Class.UNIVERSAL,type:T.Type.SET,constructed:!0,capture:"values"}]},EC={name:"CertBag",tagClass:T.Class.UNIVERSAL,type:T.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:T.Class.UNIVERSAL,type:T.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:T.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:T.Class.UNIVERSAL,type:T.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function xc(e,t,r,a){for(var n=[],s=0;s<e.length;s++)for(var i=0;i<e[s].safeBags.length;i++){var o=e[s].safeBags[i];if(!(a!==void 0&&o.type!==a)){if(t===null){n.push(o);continue}o.attributes[t]!==void 0&&o.attributes[t].indexOf(r)>=0&&n.push(o)}}return n}gc.pkcs12FromAsn1=function(e,t,r){typeof t=="string"?(r=t,t=!0):t===void 0&&(t=!0);var a={},n=[];if(!T.validate(e,xC,a,n)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var i={version:a.version.charCodeAt(0),safeContents:[],getBags:function(b){var C={},I;return"localKeyId"in b?I=b.localKeyId:"localKeyIdHex"in b&&(I=De.util.hexToBytes(b.localKeyIdHex)),I===void 0&&!("friendlyName"in b)&&"bagType"in b&&(C[b.bagType]=xc(i.safeContents,null,null,b.bagType)),I!==void 0&&(C.localKeyId=xc(i.safeContents,"localKeyId",I,b.bagType)),"friendlyName"in b&&(C.friendlyName=xc(i.safeContents,"friendlyName",b.friendlyName,b.bagType)),C},getBagsByFriendlyName:function(b,C){return xc(i.safeContents,"friendlyName",b,C)},getBagsByLocalKeyId:function(b,C){return xc(i.safeContents,"localKeyId",b,C)}};if(a.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=a.version.charCodeAt(0),s}if(T.derToOid(a.contentType)!==le.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=T.derToOid(a.contentType),s}var o=a.content.value[0];if(o.tagClass!==T.Class.UNIVERSAL||o.type!==T.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(o=Gu(o),a.mac){var c=null,l=0,u=T.derToOid(a.macAlgorithm);switch(u){case le.oids.sha1:c=De.md.sha1.create(),l=20;break;case le.oids.sha256:c=De.md.sha256.create(),l=32;break;case le.oids.sha384:c=De.md.sha384.create(),l=48;break;case le.oids.sha512:c=De.md.sha512.create(),l=64;break;case le.oids.md5:c=De.md.md5.create(),l=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+u);var p=new De.util.ByteBuffer(a.macSalt),d="macIterations"in a?parseInt(De.util.bytesToHex(a.macIterations),16):1,x=gc.generateKey(r,p,3,d,l,c),h=De.hmac.create();h.start(c,x),h.update(o.value);var y=h.getMac();if(y.getBytes()!==a.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}else if(Array.isArray(e.value)&&e.value.length>2)throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");return CC(i,o.value,t,r),i};function Gu(e){if(e.composed||e.constructed){for(var t=De.util.createBuffer(),r=0;r<e.value.length;++r)t.putBytes(e.value[r].value);e.composed=e.constructed=!1,e.value=t.getBytes()}return e}function CC(e,t,r,a){if(t=T.fromDer(t,r),t.tagClass!==T.Class.UNIVERSAL||t.type!==T.Type.SEQUENCE||t.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var n=0;n<t.value.length;n++){var s=t.value[n],i={},o=[];if(!T.validate(s,S0,i,o)){var c=new Error("Cannot read ContentInfo.");throw c.errors=o,c}var l={encrypted:!1},u=null,p=i.content.value[0];switch(T.derToOid(i.contentType)){case le.oids.data:if(p.tagClass!==T.Class.UNIVERSAL||p.type!==T.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");u=Gu(p).value;break;case le.oids.encryptedData:u=TC(p,a),l.encrypted=!0;break;default:var c=new Error("Unsupported PKCS#12 contentType.");throw c.contentType=T.derToOid(i.contentType),c}l.safeBags=SC(u,r,a),e.safeContents.push(l)}}function TC(e,t){var r={},a=[];if(!T.validate(e,De.pkcs7.asn1.encryptedDataValidator,r,a)){var n=new Error("Cannot read EncryptedContentInfo.");throw n.errors=a,n}var s=T.derToOid(r.contentType);if(s!==le.oids.data){var n=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw n.oid=s,n}s=T.derToOid(r.encAlgorithm);var i=le.pbe.getCipher(s,r.encParameter,t),o=Gu(r.encryptedContentAsn1),c=De.util.createBuffer(o.value);if(i.update(c),!i.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return i.output.getBytes()}function SC(e,t,r){if(!t&&e.length===0)return[];if(e=T.fromDer(e,t),e.tagClass!==T.Class.UNIVERSAL||e.type!==T.Type.SEQUENCE||e.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var a=[],n=0;n<e.value.length;n++){var s=e.value[n],i={},o=[];if(!T.validate(s,yC,i,o)){var c=new Error("Cannot read SafeBag.");throw c.errors=o,c}var l={type:T.derToOid(i.bagId),attributes:wC(i.bagAttributes)};a.push(l);var u,p,d=i.bagValue.value[0];switch(l.type){case le.oids.pkcs8ShroudedKeyBag:if(d=le.decryptPrivateKeyInfo(d,r),d===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case le.oids.keyBag:try{l.key=le.privateKeyFromAsn1(d)}catch{l.key=null,l.asn1=d}continue;case le.oids.certBag:u=EC,p=function(){if(T.derToOid(i.certId)!==le.oids.x509Certificate){var h=new Error("Unsupported certificate type, only X.509 supported.");throw h.oid=T.derToOid(i.certId),h}var y=T.fromDer(i.cert,t);try{l.cert=le.certificateFromAsn1(y,!0)}catch{l.cert=null,l.asn1=y}};break;default:var c=new Error("Unsupported PKCS#12 SafeBag type.");throw c.oid=l.type,c}if(u!==void 0&&!T.validate(d,u,i,o)){var c=new Error("Cannot read PKCS#12 "+u.name);throw c.errors=o,c}p()}return a}function wC(e){var t={};if(e!==void 0)for(var r=0;r<e.length;++r){var a={},n=[];if(!T.validate(e[r],bC,a,n)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=n,s}var i=T.derToOid(a.oid);if(le.oids[i]!==void 0){t[le.oids[i]]=[];for(var o=0;o<a.values.length;++o)t[le.oids[i]].push(a.values[o].value)}}return t}gc.toPkcs12Asn1=function(e,t,r,a){a=a||{},a.saltSize=a.saltSize||8,a.count=a.count||2048,a.algorithm=a.algorithm||a.encAlgorithm||"aes128","useMac"in a||(a.useMac=!0),"localKeyId"in a||(a.localKeyId=null),"generateLocalKeyId"in a||(a.generateLocalKeyId=!0);var n=a.localKeyId,s;if(n!==null)n=De.util.hexToBytes(n);else if(a.generateLocalKeyId)if(t){var i=De.util.isArray(t)?t[0]:t;typeof i=="string"&&(i=le.certificateFromPem(i));var o=De.md.sha1.create();o.update(T.toDer(le.certificateToAsn1(i)).getBytes()),n=o.digest().getBytes()}else n=De.random.getBytes(20);var c=[];n!==null&&c.push(T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(le.oids.localKeyId).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,n)])])),"friendlyName"in a&&c.push(T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(le.oids.friendlyName).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SET,!0,[T.create(T.Class.UNIVERSAL,T.Type.BMPSTRING,!1,a.friendlyName)])])),c.length>0&&(s=T.create(T.Class.UNIVERSAL,T.Type.SET,!0,c));var l=[],u=[];t!==null&&(De.util.isArray(t)?u=t:u=[t]);for(var p=[],d=0;d<u.length;++d){t=u[d],typeof t=="string"&&(t=le.certificateFromPem(t));var x=d===0?s:void 0,h=le.certificateToAsn1(t),y=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(le.oids.certBag).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(le.oids.x509Certificate).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,T.toDer(h).getBytes())])])]),x]);p.push(y)}if(p.length>0){var b=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,p),C=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(le.oids.data).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,T.toDer(b).getBytes())])]);l.push(C)}var I=null;if(e!==null){var B=le.wrapRsaPrivateKey(le.privateKeyToAsn1(e));r===null?I=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(le.oids.keyBag).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[B]),s]):I=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(le.oids.pkcs8ShroudedKeyBag).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[le.encryptPrivateKeyInfo(B,r,a)]),s]);var U=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[I]),_=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(le.oids.data).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,T.toDer(U).getBytes())])]);l.push(_)}var N=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,l),j;if(a.useMac){var o=De.md.sha1.create(),H=new De.util.ByteBuffer(De.random.getBytes(a.saltSize)),te=a.count,e=gc.generateKey(r,H,3,te,20),se=De.hmac.create();se.start(o,e),se.update(T.toDer(N).getBytes());var Be=se.getMac();j=T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(le.oids.sha1).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.NULL,!1,"")]),T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,Be.getBytes())]),T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,H.getBytes()),T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(te).getBytes())])}return T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.INTEGER,!1,T.integerToDer(3).getBytes()),T.create(T.Class.UNIVERSAL,T.Type.SEQUENCE,!0,[T.create(T.Class.UNIVERSAL,T.Type.OID,!1,T.oidToDer(le.oids.data).getBytes()),T.create(T.Class.CONTEXT_SPECIFIC,0,!0,[T.create(T.Class.UNIVERSAL,T.Type.OCTETSTRING,!1,T.toDer(N).getBytes())])]),j])},gc.generateKey=De.pbe.generatePkcs12Key;var fa=ie,Wu=fa.asn1,er=fa.pki=fa.pki||{};er.pemToDer=function(e){var t=fa.pem.decode(e)[0];if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return fa.util.createBuffer(t.body)},er.privateKeyFromPem=function(e){var t=fa.pem.decode(e)[0];if(t.type!=="PRIVATE KEY"&&t.type!=="RSA PRIVATE KEY"){var r=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var a=Wu.fromDer(t.body);return er.privateKeyFromAsn1(a)},er.privateKeyToPem=function(e,t){var r={type:"RSA PRIVATE KEY",body:Wu.toDer(er.privateKeyToAsn1(e)).getBytes()};return fa.pem.encode(r,{maxline:t})},er.privateKeyInfoToPem=function(e,t){var r={type:"PRIVATE KEY",body:Wu.toDer(e).getBytes()};return fa.pem.encode(r,{maxline:t})};var P=ie,pl=function(e,t,r,a){var n=P.util.createBuffer(),s=e.length>>1,i=s+(e.length&1),o=e.substr(0,i),c=e.substr(s,i),l=P.util.createBuffer(),u=P.hmac.create();r=t+r;var p=Math.ceil(a/16),d=Math.ceil(a/20);u.start("MD5",o);var x=P.util.createBuffer();l.putBytes(r);for(var h=0;h<p;++h)u.start(null,null),u.update(l.getBytes()),l.putBuffer(u.digest()),u.start(null,null),u.update(l.bytes()+r),x.putBuffer(u.digest());u.start("SHA1",c);var y=P.util.createBuffer();l.clear(),l.putBytes(r);for(var h=0;h<d;++h)u.start(null,null),u.update(l.getBytes()),l.putBuffer(u.digest()),u.start(null,null),u.update(l.bytes()+r),y.putBuffer(u.digest());return n.putBytes(P.util.xorBytes(x.getBytes(),y.getBytes(),a)),n},AC=function(e,t,r){var a=P.hmac.create();a.start("SHA1",e);var n=P.util.createBuffer();return n.putInt32(t[0]),n.putInt32(t[1]),n.putByte(r.type),n.putByte(r.version.major),n.putByte(r.version.minor),n.putInt16(r.length),n.putBytes(r.fragment.bytes()),a.update(n.getBytes()),a.digest().getBytes()},IC=function(e,t,r){var a=!1;try{var n=e.deflate(t.fragment.getBytes());t.fragment=P.util.createBuffer(n),t.length=n.length,a=!0}catch{}return a},BC=function(e,t,r){var a=!1;try{var n=e.inflate(t.fragment.getBytes());t.fragment=P.util.createBuffer(n),t.length=n.length,a=!0}catch{}return a},kt=function(e,t){var r=0;switch(t){case 1:r=e.getByte();break;case 2:r=e.getInt16();break;case 3:r=e.getInt24();break;case 4:r=e.getInt32();break}return P.util.createBuffer(e.getBytes(r))},Dt=function(e,t,r){e.putInt(r.length(),t<<3),e.putBuffer(r)},g={};g.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}},g.SupportedVersions=[g.Versions.TLS_1_1,g.Versions.TLS_1_0],g.Version=g.SupportedVersions[0],g.MaxFragment=15360,g.ConnectionEnd={server:0,client:1},g.PRFAlgorithm={tls_prf_sha256:0},g.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2},g.CipherType={stream:0,block:1,aead:2},g.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4},g.CompressionMethod={none:0,deflate:1},g.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24},g.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20},g.Alert={},g.Alert.Level={warning:1,fatal:2},g.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100},g.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2},g.CipherSuites={},g.getCipherSuite=function(e){var t=null;for(var r in g.CipherSuites){var a=g.CipherSuites[r];if(a.id[0]===e.charCodeAt(0)&&a.id[1]===e.charCodeAt(1)){t=a;break}}return t},g.handleUnexpected=function(e,t){var r=!e.open&&e.entity===g.ConnectionEnd.client;r||e.error(e,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})},g.handleHelloRequest=function(e,t,r){!e.handshaking&&e.handshakes>0&&(g.queue(e,g.createAlert(e,{level:g.Alert.Level.warning,description:g.Alert.Description.no_renegotiation})),g.flush(e)),e.process()},g.parseHelloMessage=function(e,t,r){var a=null,n=e.entity===g.ConnectionEnd.client;if(r<38)e.error(e,{message:n?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});else{var s=t.fragment,i=s.length();if(a={version:{major:s.getByte(),minor:s.getByte()},random:P.util.createBuffer(s.getBytes(32)),session_id:kt(s,1),extensions:[]},n?(a.cipher_suite=s.getBytes(2),a.compression_method=s.getByte()):(a.cipher_suites=kt(s,2),a.compression_methods=kt(s,1)),i=r-(i-s.length()),i>0){for(var o=kt(s,2);o.length()>0;)a.extensions.push({type:[o.getByte(),o.getByte()],data:kt(o,2)});if(!n)for(var c=0;c<a.extensions.length;++c){var l=a.extensions[c];if(l.type[0]===0&&l.type[1]===0)for(var u=kt(l.data,2);u.length()>0;){var p=u.getByte();if(p!==0)break;e.session.extensions.server_name.serverNameList.push(kt(u,2).getBytes())}}}if(e.session.version&&(a.version.major!==e.session.version.major||a.version.minor!==e.session.version.minor))return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}});if(n)e.session.cipherSuite=g.getCipherSuite(a.cipher_suite);else for(var d=P.util.createBuffer(a.cipher_suites.bytes());d.length()>0&&(e.session.cipherSuite=g.getCipherSuite(d.getBytes(2)),e.session.cipherSuite===null););if(e.session.cipherSuite===null)return e.error(e,{message:"No cipher suites in common.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure},cipherSuite:P.util.bytesToHex(a.cipher_suite)});n?e.session.compressionMethod=a.compression_method:e.session.compressionMethod=g.CompressionMethod.none}return a},g.createSecurityParameters=function(e,t){var r=e.entity===g.ConnectionEnd.client,a=t.random.bytes(),n=r?e.session.sp.client_random:a,s=r?a:g.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:g.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:n,server_random:s}},g.handleServerHello=function(e,t,r){var a=g.parseHelloMessage(e,t,r);if(!e.fail){if(a.version.minor<=e.version.minor)e.version.minor=a.version.minor;else return e.error(e,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}});e.session.version=e.version;var n=a.session_id.bytes();n.length>0&&n===e.session.id?(e.expect=A0,e.session.resuming=!0,e.session.sp.server_random=a.random.bytes()):(e.expect=RC,e.session.resuming=!1,g.createSecurityParameters(e,a)),e.session.id=n,e.process()}},g.handleClientHello=function(e,t,r){var a=g.parseHelloMessage(e,t,r);if(!e.fail){var n=a.session_id.bytes(),s=null;if(e.sessionCache&&(s=e.sessionCache.getSession(n),s===null?n="":(s.version.major!==a.version.major||s.version.minor>a.version.minor)&&(s=null,n="")),n.length===0&&(n=P.random.getBytes(32)),e.session.id=n,e.session.clientHelloVersion=a.version,e.session.sp={},s)e.version=e.session.version=s.version,e.session.sp=s.sp;else{for(var i,o=1;o<g.SupportedVersions.length&&(i=g.SupportedVersions[o],!(i.minor<=a.version.minor));++o);e.version={major:i.major,minor:i.minor},e.session.version=e.version}s!==null?(e.expect=Qu,e.session.resuming=!0,e.session.sp.client_random=a.random.bytes()):(e.expect=e.verifyClient!==!1?DC:Xu,e.session.resuming=!1,g.createSecurityParameters(e,a)),e.open=!0,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerHello(e)})),e.session.resuming?(g.queue(e,g.createRecord(e,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),e.state.pending=g.createConnectionState(e),e.state.current.write=e.state.pending.write,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createFinished(e)}))):(g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificate(e)})),e.fail||(g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerKeyExchange(e)})),e.verifyClient!==!1&&g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificateRequest(e)})),g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createServerHelloDone(e)})))),g.flush(e),e.process()}},g.handleCertificate=function(e,t,r){if(r<3)return e.error(e,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=t.fragment,n={certificate_list:kt(a,3)},s,i,o=[];try{for(;n.certificate_list.length()>0;)s=kt(n.certificate_list,3),i=P.asn1.fromDer(s),s=P.pki.certificateFromAsn1(i,!0),o.push(s)}catch(l){return e.error(e,{message:"Could not parse certificate list.",cause:l,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}var c=e.entity===g.ConnectionEnd.client;(c||e.verifyClient===!0)&&o.length===0?e.error(e,{message:c?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}}):o.length===0?e.expect=c?w0:Xu:(c?e.session.serverCertificate=o[0]:e.session.clientCertificate=o[0],g.verifyCertificateChain(e,o)&&(e.expect=c?w0:Xu)),e.process()},g.handleServerKeyExchange=function(e,t,r){if(r>0)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});e.expect=_C,e.process()},g.handleClientKeyExchange=function(e,t,r){if(r<48)return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unsupported_certificate}});var a=t.fragment,n={enc_pre_master_secret:kt(a,2).getBytes()},s=null;if(e.getPrivateKey)try{s=e.getPrivateKey(e,e.session.serverCertificate),s=P.pki.privateKeyFromPem(s)}catch(c){e.error(e,{message:"Could not get private key.",cause:c,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}if(s===null)return e.error(e,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}});try{var i=e.session.sp;i.pre_master_secret=s.decrypt(n.enc_pre_master_secret);var o=e.session.clientHelloVersion;if(o.major!==i.pre_master_secret.charCodeAt(0)||o.minor!==i.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{i.pre_master_secret=P.random.getBytes(48)}e.expect=Qu,e.session.clientCertificate!==null&&(e.expect=FC),e.process()},g.handleCertificateRequest=function(e,t,r){if(r<3)return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=t.fragment,n={certificate_types:kt(a,1),certificate_authorities:kt(a,2)};e.session.certificateRequest=n,e.expect=UC,e.process()},g.handleCertificateVerify=function(e,t,r){if(r<2)return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var a=t.fragment;a.read-=4;var n=a.bytes();a.read+=4;var s={signature:kt(a,2).getBytes()},i=P.util.createBuffer();i.putBuffer(e.session.md5.digest()),i.putBuffer(e.session.sha1.digest()),i=i.getBytes();try{var o=e.session.clientCertificate;if(!o.publicKey.verify(i,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");e.session.md5.update(n),e.session.sha1.update(n)}catch{return e.error(e,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.handshake_failure}})}e.expect=Qu,e.process()},g.handleServerHelloDone=function(e,t,r){if(r>0)return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.record_overflow}});if(e.serverCertificate===null){var a={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.insufficient_security}},n=0,s=e.verify(e,a.alert.description,n,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!P.util.isArray(s)?(s.message&&(a.message=s.message),s.alert&&(a.alert.description=s.alert)):typeof s=="number"&&(a.alert.description=s)),e.error(e,a)}e.session.certificateRequest!==null&&(t=g.createRecord(e,{type:g.ContentType.handshake,data:g.createCertificate(e)}),g.queue(e,t)),t=g.createRecord(e,{type:g.ContentType.handshake,data:g.createClientKeyExchange(e)}),g.queue(e,t),e.expect=PC;var i=function(o,c){o.session.certificateRequest!==null&&o.session.clientCertificate!==null&&g.queue(o,g.createRecord(o,{type:g.ContentType.handshake,data:g.createCertificateVerify(o,c)})),g.queue(o,g.createRecord(o,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),o.state.pending=g.createConnectionState(o),o.state.current.write=o.state.pending.write,g.queue(o,g.createRecord(o,{type:g.ContentType.handshake,data:g.createFinished(o)})),o.expect=A0,g.flush(o),o.process()};if(e.session.certificateRequest===null||e.session.clientCertificate===null)return i(e,null);g.getClientSignature(e,i)},g.handleChangeCipherSpec=function(e,t){if(t.fragment.getByte()!==1)return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.illegal_parameter}});var r=e.entity===g.ConnectionEnd.client;(e.session.resuming&&r||!e.session.resuming&&!r)&&(e.state.pending=g.createConnectionState(e)),e.state.current.read=e.state.pending.read,(!e.session.resuming&&r||e.session.resuming&&!r)&&(e.state.pending=null),e.expect=r?NC:VC,e.process()},g.handleFinished=function(e,t,r){var a=t.fragment;a.read-=4;var n=a.bytes();a.read+=4;var s=t.fragment.getBytes();a=P.util.createBuffer(),a.putBuffer(e.session.md5.digest()),a.putBuffer(e.session.sha1.digest());var i=e.entity===g.ConnectionEnd.client,o=i?"server finished":"client finished",c=e.session.sp,l=12,u=pl;if(a=u(c.master_secret,o,a.getBytes(),l),a.getBytes()!==s)return e.error(e,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decrypt_error}});e.session.md5.update(n),e.session.sha1.update(n),(e.session.resuming&&i||!e.session.resuming&&!i)&&(g.queue(e,g.createRecord(e,{type:g.ContentType.change_cipher_spec,data:g.createChangeCipherSpec()})),e.state.current.write=e.state.pending.write,e.state.pending=null,g.queue(e,g.createRecord(e,{type:g.ContentType.handshake,data:g.createFinished(e)}))),e.expect=i?LC:MC,e.handshaking=!1,++e.handshakes,e.peerCertificate=i?e.session.serverCertificate:e.session.clientCertificate,g.flush(e),e.isConnected=!0,e.connected(e),e.process()},g.handleAlert=function(e,t){var r=t.fragment,a={level:r.getByte(),description:r.getByte()},n;switch(a.description){case g.Alert.Description.close_notify:n="Connection closed.";break;case g.Alert.Description.unexpected_message:n="Unexpected message.";break;case g.Alert.Description.bad_record_mac:n="Bad record MAC.";break;case g.Alert.Description.decryption_failed:n="Decryption failed.";break;case g.Alert.Description.record_overflow:n="Record overflow.";break;case g.Alert.Description.decompression_failure:n="Decompression failed.";break;case g.Alert.Description.handshake_failure:n="Handshake failure.";break;case g.Alert.Description.bad_certificate:n="Bad certificate.";break;case g.Alert.Description.unsupported_certificate:n="Unsupported certificate.";break;case g.Alert.Description.certificate_revoked:n="Certificate revoked.";break;case g.Alert.Description.certificate_expired:n="Certificate expired.";break;case g.Alert.Description.certificate_unknown:n="Certificate unknown.";break;case g.Alert.Description.illegal_parameter:n="Illegal parameter.";break;case g.Alert.Description.unknown_ca:n="Unknown certificate authority.";break;case g.Alert.Description.access_denied:n="Access denied.";break;case g.Alert.Description.decode_error:n="Decode error.";break;case g.Alert.Description.decrypt_error:n="Decrypt error.";break;case g.Alert.Description.export_restriction:n="Export restriction.";break;case g.Alert.Description.protocol_version:n="Unsupported protocol version.";break;case g.Alert.Description.insufficient_security:n="Insufficient security.";break;case g.Alert.Description.internal_error:n="Internal error.";break;case g.Alert.Description.user_canceled:n="User canceled.";break;case g.Alert.Description.no_renegotiation:n="Renegotiation not supported.";break;default:n="Unknown error.";break}if(a.description===g.Alert.Description.close_notify)return e.close();e.error(e,{message:n,send:!1,origin:e.entity===g.ConnectionEnd.client?"server":"client",alert:a}),e.process()},g.handleHandshake=function(e,t){var r=t.fragment,a=r.getByte(),n=r.getInt24();if(n>r.length())return e.fragmented=t,t.fragment=P.util.createBuffer(),r.read-=4,e.process();e.fragmented=null,r.read-=4;var s=r.bytes(n+4);r.read+=4,a in fl[e.entity][e.expect]?(e.entity===g.ConnectionEnd.server&&!e.open&&!e.fail&&(e.handshaking=!0,e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:P.md.md5.create(),sha1:P.md.sha1.create()}),a!==g.HandshakeType.hello_request&&a!==g.HandshakeType.certificate_verify&&a!==g.HandshakeType.finished&&(e.session.md5.update(s),e.session.sha1.update(s)),fl[e.entity][e.expect][a](e,t,n)):g.handleUnexpected(e,t)},g.handleApplicationData=function(e,t){e.data.putBuffer(t.fragment),e.dataReady(e),e.process()},g.handleHeartbeat=function(e,t){var r=t.fragment,a=r.getByte(),n=r.getInt16(),s=r.getBytes(n);if(a===g.HeartbeatMessageType.heartbeat_request){if(e.handshaking||n>s.length)return e.process();g.queue(e,g.createRecord(e,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_response,s)})),g.flush(e)}else if(a===g.HeartbeatMessageType.heartbeat_response){if(s!==e.expectedHeartbeatPayload)return e.process();e.heartbeatReceived&&e.heartbeatReceived(e,P.util.createBuffer(s))}e.process()};var kC=0,RC=1,w0=2,_C=3,UC=4,A0=5,NC=6,LC=7,PC=8,OC=0,DC=1,Xu=2,FC=3,Qu=4,VC=5,MC=6,v=g.handleUnexpected,I0=g.handleChangeCipherSpec,nt=g.handleAlert,Ct=g.handleHandshake,B0=g.handleApplicationData,it=g.handleHeartbeat,Yu=[];Yu[g.ConnectionEnd.client]=[[v,nt,Ct,v,it],[v,nt,Ct,v,it],[v,nt,Ct,v,it],[v,nt,Ct,v,it],[v,nt,Ct,v,it],[I0,nt,v,v,it],[v,nt,Ct,v,it],[v,nt,Ct,B0,it],[v,nt,Ct,v,it]],Yu[g.ConnectionEnd.server]=[[v,nt,Ct,v,it],[v,nt,Ct,v,it],[v,nt,Ct,v,it],[v,nt,Ct,v,it],[I0,nt,v,v,it],[v,nt,Ct,v,it],[v,nt,Ct,B0,it],[v,nt,Ct,v,it]];var ha=g.handleHelloRequest,qC=g.handleServerHello,k0=g.handleCertificate,R0=g.handleServerKeyExchange,Ju=g.handleCertificateRequest,dl=g.handleServerHelloDone,_0=g.handleFinished,fl=[];fl[g.ConnectionEnd.client]=[[v,v,qC,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[ha,v,v,v,v,v,v,v,v,v,v,k0,R0,Ju,dl,v,v,v,v,v,v],[ha,v,v,v,v,v,v,v,v,v,v,v,R0,Ju,dl,v,v,v,v,v,v],[ha,v,v,v,v,v,v,v,v,v,v,v,v,Ju,dl,v,v,v,v,v,v],[ha,v,v,v,v,v,v,v,v,v,v,v,v,v,dl,v,v,v,v,v,v],[ha,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[ha,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,_0],[ha,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[ha,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v]];var jC=g.handleClientHello,KC=g.handleClientKeyExchange,zC=g.handleCertificateVerify;fl[g.ConnectionEnd.server]=[[v,jC,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,k0,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,KC,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,zC,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,_0],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v],[v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v,v]],g.generateKeys=function(e,t){var r=pl,a=t.client_random+t.server_random;e.session.resuming||(t.master_secret=r(t.pre_master_secret,"master secret",a,48).bytes(),t.pre_master_secret=null),a=t.server_random+t.client_random;var n=2*t.mac_key_length+2*t.enc_key_length,s=e.version.major===g.Versions.TLS_1_0.major&&e.version.minor===g.Versions.TLS_1_0.minor;s&&(n+=2*t.fixed_iv_length);var i=r(t.master_secret,"key expansion",a,n),o={client_write_MAC_key:i.getBytes(t.mac_key_length),server_write_MAC_key:i.getBytes(t.mac_key_length),client_write_key:i.getBytes(t.enc_key_length),server_write_key:i.getBytes(t.enc_key_length)};return s&&(o.client_write_IV=i.getBytes(t.fixed_iv_length),o.server_write_IV=i.getBytes(t.fixed_iv_length)),o},g.createConnectionState=function(e){var t=e.entity===g.ConnectionEnd.client,r=function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(i){return!0},compressionState:null,compressFunction:function(i){return!0},updateSequenceNumber:function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]}};return s},a={read:r(),write:r()};if(a.read.update=function(s,i){return a.read.cipherFunction(i,a.read)?a.read.compressFunction(s,i,a.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_record_mac}}),!s.fail},a.write.update=function(s,i){return a.write.compressFunction(s,i,a.write)?a.write.cipherFunction(i,a.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}),!s.fail},e.session){var n=e.session.sp;switch(e.session.cipherSuite.initSecurityParameters(n),n.keys=g.generateKeys(e,n),a.read.macKey=t?n.keys.server_write_MAC_key:n.keys.client_write_MAC_key,a.write.macKey=t?n.keys.client_write_MAC_key:n.keys.server_write_MAC_key,e.session.cipherSuite.initConnectionState(a,e,n),n.compression_algorithm){case g.CompressionMethod.none:break;case g.CompressionMethod.deflate:a.read.compressFunction=BC,a.write.compressFunction=IC;break;default:throw new Error("Unsupported compression algorithm.")}}return a},g.createRandom=function(){var e=new Date,t=+e+e.getTimezoneOffset()*6e4,r=P.util.createBuffer();return r.putInt32(t),r.putBytes(P.random.getBytes(28)),r},g.createRecord=function(e,t){if(!t.data)return null;var r={type:t.type,version:{major:e.version.major,minor:e.version.minor},length:t.data.length(),fragment:t.data};return r},g.createAlert=function(e,t){var r=P.util.createBuffer();return r.putByte(t.level),r.putByte(t.description),g.createRecord(e,{type:g.ContentType.alert,data:r})},g.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};for(var t=P.util.createBuffer(),r=0;r<e.cipherSuites.length;++r){var a=e.cipherSuites[r];t.putByte(a.id[0]),t.putByte(a.id[1])}var n=t.length(),s=P.util.createBuffer();s.putByte(g.CompressionMethod.none);var i=s.length(),o=P.util.createBuffer();if(e.virtualHost){var c=P.util.createBuffer();c.putByte(0),c.putByte(0);var l=P.util.createBuffer();l.putByte(0),Dt(l,2,P.util.createBuffer(e.virtualHost));var u=P.util.createBuffer();Dt(u,2,l),Dt(c,2,u),o.putBuffer(c)}var p=o.length();p>0&&(p+=2);var d=e.session.id,x=d.length+1+2+4+28+2+n+1+i+p,h=P.util.createBuffer();return h.putByte(g.HandshakeType.client_hello),h.putInt24(x),h.putByte(e.version.major),h.putByte(e.version.minor),h.putBytes(e.session.sp.client_random),Dt(h,1,P.util.createBuffer(d)),Dt(h,2,t),Dt(h,1,s),p>0&&Dt(h,2,o),h},g.createServerHello=function(e){var t=e.session.id,r=t.length+1+2+4+28+2+1,a=P.util.createBuffer();return a.putByte(g.HandshakeType.server_hello),a.putInt24(r),a.putByte(e.version.major),a.putByte(e.version.minor),a.putBytes(e.session.sp.server_random),Dt(a,1,P.util.createBuffer(t)),a.putByte(e.session.cipherSuite.id[0]),a.putByte(e.session.cipherSuite.id[1]),a.putByte(e.session.compressionMethod),a},g.createCertificate=function(e){var t=e.entity===g.ConnectionEnd.client,r=null;if(e.getCertificate){var a;t?a=e.session.certificateRequest:a=e.session.extensions.server_name.serverNameList,r=e.getCertificate(e,a)}var n=P.util.createBuffer();if(r!==null)try{P.util.isArray(r)||(r=[r]);for(var s=null,i=0;i<r.length;++i){var o=P.pem.decode(r[i])[0];if(o.type!=="CERTIFICATE"&&o.type!=="X509 CERTIFICATE"&&o.type!=="TRUSTED CERTIFICATE"){var c=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw c.headerType=o.type,c}if(o.procType&&o.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var l=P.util.createBuffer(o.body);s===null&&(s=P.asn1.fromDer(l.bytes(),!1));var u=P.util.createBuffer();Dt(u,3,l),n.putBuffer(u)}r=P.pki.certificateFromAsn1(s),t?e.session.clientCertificate=r:e.session.serverCertificate=r}catch(x){return e.error(e,{message:"Could not send certificate list.",cause:x,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate}})}var p=3+n.length(),d=P.util.createBuffer();return d.putByte(g.HandshakeType.certificate),d.putInt24(p),Dt(d,3,n),d},g.createClientKeyExchange=function(e){var t=P.util.createBuffer();t.putByte(e.session.clientHelloVersion.major),t.putByte(e.session.clientHelloVersion.minor),t.putBytes(P.random.getBytes(46));var r=e.session.sp;r.pre_master_secret=t.getBytes();var a=e.session.serverCertificate.publicKey;t=a.encrypt(r.pre_master_secret);var n=t.length+2,s=P.util.createBuffer();return s.putByte(g.HandshakeType.client_key_exchange),s.putInt24(n),s.putInt16(t.length),s.putBytes(t),s},g.createServerKeyExchange=function(e){var t=P.util.createBuffer();return t},g.getClientSignature=function(e,t){var r=P.util.createBuffer();r.putBuffer(e.session.md5.digest()),r.putBuffer(e.session.sha1.digest()),r=r.getBytes(),e.getSignature=e.getSignature||function(a,n,s){var i=null;if(a.getPrivateKey)try{i=a.getPrivateKey(a,a.session.clientCertificate),i=P.pki.privateKeyFromPem(i)}catch(o){a.error(a,{message:"Could not get private key.",cause:o,send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}})}i===null?a.error(a,{message:"No private key set.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.internal_error}}):n=i.sign(n,null),s(a,n)},e.getSignature(e,r,t)},g.createCertificateVerify=function(e,t){var r=t.length+2,a=P.util.createBuffer();return a.putByte(g.HandshakeType.certificate_verify),a.putInt24(r),a.putInt16(t.length),a.putBytes(t),a},g.createCertificateRequest=function(e){var t=P.util.createBuffer();t.putByte(1);var r=P.util.createBuffer();for(var a in e.caStore.certs){var n=e.caStore.certs[a],s=P.pki.distinguishedNameToAsn1(n.subject),i=P.asn1.toDer(s);r.putInt16(i.length()),r.putBuffer(i)}var o=1+t.length()+2+r.length(),c=P.util.createBuffer();return c.putByte(g.HandshakeType.certificate_request),c.putInt24(o),Dt(c,1,t),Dt(c,2,r),c},g.createServerHelloDone=function(e){var t=P.util.createBuffer();return t.putByte(g.HandshakeType.server_hello_done),t.putInt24(0),t},g.createChangeCipherSpec=function(){var e=P.util.createBuffer();return e.putByte(1),e},g.createFinished=function(e){var t=P.util.createBuffer();t.putBuffer(e.session.md5.digest()),t.putBuffer(e.session.sha1.digest());var r=e.entity===g.ConnectionEnd.client,a=e.session.sp,n=12,s=pl,i=r?"client finished":"server finished";t=s(a.master_secret,i,t.getBytes(),n);var o=P.util.createBuffer();return o.putByte(g.HandshakeType.finished),o.putInt24(t.length()),o.putBuffer(t),o},g.createHeartbeat=function(e,t,r){typeof r>"u"&&(r=t.length);var a=P.util.createBuffer();a.putByte(e),a.putInt16(r),a.putBytes(t);var n=a.length(),s=Math.max(16,n-r-3);return a.putBytes(P.random.getBytes(s)),a},g.queue=function(e,t){if(t&&!(t.fragment.length()===0&&(t.type===g.ContentType.handshake||t.type===g.ContentType.alert||t.type===g.ContentType.change_cipher_spec))){if(t.type===g.ContentType.handshake){var r=t.fragment.bytes();e.session.md5.update(r),e.session.sha1.update(r),r=null}var a;if(t.fragment.length()<=g.MaxFragment)a=[t];else{a=[];for(var n=t.fragment.bytes();n.length>g.MaxFragment;)a.push(g.createRecord(e,{type:t.type,data:P.util.createBuffer(n.slice(0,g.MaxFragment))})),n=n.slice(g.MaxFragment);n.length>0&&a.push(g.createRecord(e,{type:t.type,data:P.util.createBuffer(n)}))}for(var s=0;s<a.length&&!e.fail;++s){var i=a[s],o=e.state.current.write;o.update(e,i)&&e.records.push(i)}}},g.flush=function(e){for(var t=0;t<e.records.length;++t){var r=e.records[t];e.tlsData.putByte(r.type),e.tlsData.putByte(r.version.major),e.tlsData.putByte(r.version.minor),e.tlsData.putInt16(r.fragment.length()),e.tlsData.putBuffer(e.records[t].fragment)}return e.records=[],e.tlsDataReady(e)};var Zu=function(e){switch(e){case!0:return!0;case P.pki.certificateError.bad_certificate:return g.Alert.Description.bad_certificate;case P.pki.certificateError.unsupported_certificate:return g.Alert.Description.unsupported_certificate;case P.pki.certificateError.certificate_revoked:return g.Alert.Description.certificate_revoked;case P.pki.certificateError.certificate_expired:return g.Alert.Description.certificate_expired;case P.pki.certificateError.certificate_unknown:return g.Alert.Description.certificate_unknown;case P.pki.certificateError.unknown_ca:return g.Alert.Description.unknown_ca;default:return g.Alert.Description.bad_certificate}},HC=function(e){switch(e){case!0:return!0;case g.Alert.Description.bad_certificate:return P.pki.certificateError.bad_certificate;case g.Alert.Description.unsupported_certificate:return P.pki.certificateError.unsupported_certificate;case g.Alert.Description.certificate_revoked:return P.pki.certificateError.certificate_revoked;case g.Alert.Description.certificate_expired:return P.pki.certificateError.certificate_expired;case g.Alert.Description.certificate_unknown:return P.pki.certificateError.certificate_unknown;case g.Alert.Description.unknown_ca:return P.pki.certificateError.unknown_ca;default:return P.pki.certificateError.bad_certificate}};g.verifyCertificateChain=function(e,t){try{var r={};for(var a in e.verifyOptions)r[a]=e.verifyOptions[a];r.verify=function(s,i,o){var c=Zu(s),l=e.verify(e,s,i,o);if(l!==!0){if(typeof l=="object"&&!P.util.isArray(l)){var u=new Error("The application rejected the certificate.");throw u.send=!0,u.alert={level:g.Alert.Level.fatal,description:g.Alert.Description.bad_certificate},l.message&&(u.message=l.message),l.alert&&(u.alert.description=l.alert),u}l!==s&&(l=HC(l))}return l},P.pki.verifyCertificateChain(e.caStore,t,r)}catch(s){var n=s;(typeof n!="object"||P.util.isArray(n))&&(n={send:!0,alert:{level:g.Alert.Level.fatal,description:Zu(s)}}),"send"in n||(n.send=!0),"alert"in n||(n.alert={level:g.Alert.Level.fatal,description:Zu(n.error)}),e.error(e,n)}return!e.fail},g.createSessionCache=function(e,t){var r=null;if(e&&e.getSession&&e.setSession&&e.order)r=e;else{r={},r.cache=e||{},r.capacity=Math.max(t||100,1),r.order=[];for(var a in e)r.order.length<=t?r.order.push(a):delete e[a];r.getSession=function(n){var s=null,i=null;if(n?i=P.util.bytesToHex(n):r.order.length>0&&(i=r.order[0]),i!==null&&i in r.cache){s=r.cache[i],delete r.cache[i];for(var o in r.order)if(r.order[o]===i){r.order.splice(o,1);break}}return s},r.setSession=function(n,s){if(r.order.length===r.capacity){var i=r.order.shift();delete r.cache[i]}var i=P.util.bytesToHex(n);r.order.push(i),r.cache[i]=s}}return r},g.createConnection=function(e){var t=null;e.caStore?P.util.isArray(e.caStore)?t=P.pki.createCaStore(e.caStore):t=e.caStore:t=P.pki.createCaStore();var r=e.cipherSuites||null;if(r===null){r=[];for(var a in g.CipherSuites)r.push(g.CipherSuites[a])}var n=e.server?g.ConnectionEnd.server:g.ConnectionEnd.client,s=e.sessionCache?g.createSessionCache(e.sessionCache):null,i={version:{major:g.Version.major,minor:g.Version.minor},entity:n,sessionId:e.sessionId,caStore:t,sessionCache:s,cipherSuites:r,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||!1,verify:e.verify||function(u,p,d,x){return p},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:P.util.createBuffer(),tlsData:P.util.createBuffer(),data:P.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(u,p){p.origin=p.origin||(u.entity===g.ConnectionEnd.client?"client":"server"),p.send&&(g.queue(u,g.createAlert(u,p.alert)),g.flush(u));var d=p.fatal!==!1;d&&(u.fail=!0),e.error(u,p),d&&u.close(!1)},deflate:e.deflate||null,inflate:e.inflate||null};i.reset=function(u){i.version={major:g.Version.major,minor:g.Version.minor},i.record=null,i.session=null,i.peerCertificate=null,i.state={pending:null,current:null},i.expect=i.entity===g.ConnectionEnd.client?kC:OC,i.fragmented=null,i.records=[],i.open=!1,i.handshakes=0,i.handshaking=!1,i.isConnected=!1,i.fail=!(u||typeof u>"u"),i.input.clear(),i.tlsData.clear(),i.data.clear(),i.state.current=g.createConnectionState(i)},i.reset();var o=function(u,p){var d=p.type-g.ContentType.change_cipher_spec,x=Yu[u.entity][u.expect];d in x?x[d](u,p):g.handleUnexpected(u,p)},c=function(u){var p=0,d=u.input,x=d.length();if(x<5)p=5-x;else{u.record={type:d.getByte(),version:{major:d.getByte(),minor:d.getByte()},length:d.getInt16(),fragment:P.util.createBuffer(),ready:!1};var h=u.record.version.major===u.version.major;h&&u.session&&u.session.version&&(h=u.record.version.minor===u.version.minor),h||u.error(u,{message:"Incompatible TLS version.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.protocol_version}})}return p},l=function(u){var p=0,d=u.input,x=d.length();if(x<u.record.length)p=u.record.length-x;else{u.record.fragment.putBytes(d.getBytes(u.record.length)),d.compact();var h=u.state.current.read;h.update(u,u.record)&&(u.fragmented!==null&&(u.fragmented.type===u.record.type?(u.fragmented.fragment.putBuffer(u.record.fragment),u.record=u.fragmented):u.error(u,{message:"Invalid fragmented record.",send:!0,alert:{level:g.Alert.Level.fatal,description:g.Alert.Description.unexpected_message}})),u.record.ready=!0)}return p};return i.handshake=function(u){if(i.entity!==g.ConnectionEnd.client)i.error(i,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(i.handshaking)i.error(i,{message:"Handshake already in progress.",fatal:!1});else{i.fail&&!i.open&&i.handshakes===0&&(i.fail=!1),i.handshaking=!0,u=u||"";var p=null;u.length>0&&(i.sessionCache&&(p=i.sessionCache.getSession(u)),p===null&&(u="")),u.length===0&&i.sessionCache&&(p=i.sessionCache.getSession(),p!==null&&(u=p.id)),i.session={id:u,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:P.md.md5.create(),sha1:P.md.sha1.create()},p&&(i.version=p.version,i.session.sp=p.sp),i.session.sp.client_random=g.createRandom().getBytes(),i.open=!0,g.queue(i,g.createRecord(i,{type:g.ContentType.handshake,data:g.createClientHello(i)})),g.flush(i)}},i.process=function(u){var p=0;return u&&i.input.putBytes(u),i.fail||(i.record!==null&&i.record.ready&&i.record.fragment.isEmpty()&&(i.record=null),i.record===null&&(p=c(i)),!i.fail&&i.record!==null&&!i.record.ready&&(p=l(i)),!i.fail&&i.record!==null&&i.record.ready&&o(i,i.record)),p},i.prepare=function(u){return g.queue(i,g.createRecord(i,{type:g.ContentType.application_data,data:P.util.createBuffer(u)})),g.flush(i)},i.prepareHeartbeatRequest=function(u,p){return u instanceof P.util.ByteBuffer&&(u=u.bytes()),typeof p>"u"&&(p=u.length),i.expectedHeartbeatPayload=u,g.queue(i,g.createRecord(i,{type:g.ContentType.heartbeat,data:g.createHeartbeat(g.HeartbeatMessageType.heartbeat_request,u,p)})),g.flush(i)},i.close=function(u){if(!i.fail&&i.sessionCache&&i.session){var p={id:i.session.id,version:i.session.version,sp:i.session.sp};p.sp.keys=null,i.sessionCache.setSession(p.id,p)}i.open&&(i.open=!1,i.input.clear(),(i.isConnected||i.handshaking)&&(i.isConnected=i.handshaking=!1,g.queue(i,g.createAlert(i,{level:g.Alert.Level.warning,description:g.Alert.Description.close_notify})),g.flush(i)),i.closed(i)),i.reset(u)},i},P.tls=P.tls||{};for(var ep in g)typeof g[ep]!="function"&&(P.tls[ep]=g[ep]);P.tls.prf_tls1=pl,P.tls.hmac_sha1=AC,P.tls.createSessionCache=g.createSessionCache,P.tls.createConnection=g.createConnection;var ma=ie,Ft=ma.tls;Ft.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Ft.BulkCipherAlgorithm.aes,e.cipher_type=Ft.CipherType.block,e.enc_key_length=16,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Ft.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:U0},Ft.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=Ft.BulkCipherAlgorithm.aes,e.cipher_type=Ft.CipherType.block,e.enc_key_length=32,e.block_length=16,e.fixed_iv_length=16,e.record_iv_length=16,e.mac_algorithm=Ft.MACAlgorithm.hmac_sha1,e.mac_length=20,e.mac_key_length=20},initConnectionState:U0};function U0(e,t,r){var a=t.entity===ma.tls.ConnectionEnd.client;e.read.cipherState={init:!1,cipher:ma.cipher.createDecipher("AES-CBC",a?r.keys.server_write_key:r.keys.client_write_key),iv:a?r.keys.server_write_IV:r.keys.client_write_IV},e.write.cipherState={init:!1,cipher:ma.cipher.createCipher("AES-CBC",a?r.keys.client_write_key:r.keys.server_write_key),iv:a?r.keys.client_write_IV:r.keys.server_write_IV},e.read.cipherFunction=XC,e.write.cipherFunction=$C,e.read.macLength=e.write.macLength=r.mac_length,e.read.macFunction=e.write.macFunction=Ft.hmac_sha1}function $C(e,t){var r=!1,a=t.macFunction(t.macKey,t.sequenceNumber,e);e.fragment.putBytes(a),t.updateSequenceNumber();var n;e.version.minor===Ft.Versions.TLS_1_0.minor?n=t.cipherState.init?null:t.cipherState.iv:n=ma.random.getBytesSync(16),t.cipherState.init=!0;var s=t.cipherState.cipher;return s.start({iv:n}),e.version.minor>=Ft.Versions.TLS_1_1.minor&&s.output.putBytes(n),s.update(e.fragment),s.finish(GC)&&(e.fragment=s.output,e.length=e.fragment.length(),r=!0),r}function GC(e,t,r){if(!r){var a=e-t.length()%e;t.fillWithByte(a-1,a)}return!0}function WC(e,t,r){var a=!0;if(r){for(var n=t.length(),s=t.last(),i=n-1-s;i<n-1;++i)a=a&&t.at(i)==s;a&&t.truncate(s+1)}return a}function XC(e,t){var r=!1,a;e.version.minor===Ft.Versions.TLS_1_0.minor?a=t.cipherState.init?null:t.cipherState.iv:a=e.fragment.getBytes(16),t.cipherState.init=!0;var n=t.cipherState.cipher;n.start({iv:a}),n.update(e.fragment),r=n.finish(WC);var s=t.macLength,i=ma.random.getBytesSync(s),o=n.output.length();o>=s?(e.fragment=n.output.getBytes(o-s),i=n.output.getBytes(s)):e.fragment=n.output.getBytes(),e.fragment=ma.util.createBuffer(e.fragment),e.length=e.fragment.length();var c=t.macFunction(t.macKey,t.sequenceNumber,e);return t.updateSequenceNumber(),r=QC(t.macKey,i,c)&&r,r}function QC(e,t,r){var a=ma.hmac.create();return a.start("SHA1",e),a.update(t),t=a.digest().getBytes(),a.start(null,null),a.update(r),r=a.digest().getBytes(),t===r}var Ve=ie,yc=Ve.sha512=Ve.sha512||{};Ve.md.sha512=Ve.md.algorithms.sha512=yc;var N0=Ve.sha384=Ve.sha512.sha384=Ve.sha512.sha384||{};N0.create=function(){return yc.create("SHA-384")},Ve.md.sha384=Ve.md.algorithms.sha384=N0,Ve.sha512.sha256=Ve.sha512.sha256||{create:function(){return yc.create("SHA-512/256")}},Ve.md["sha512/256"]=Ve.md.algorithms["sha512/256"]=Ve.sha512.sha256,Ve.sha512.sha224=Ve.sha512.sha224||{create:function(){return yc.create("SHA-512/224")}},Ve.md["sha512/224"]=Ve.md.algorithms["sha512/224"]=Ve.sha512.sha224,yc.create=function(e){if(L0||YC(),typeof e>"u"&&(e="SHA-512"),!(e in Na))throw new Error("Invalid SHA-512 algorithm: "+e);for(var t=Na[e],r=null,a=Ve.util.createBuffer(),n=new Array(80),s=0;s<80;++s)n[s]=new Array(2);var i=64;switch(e){case"SHA-384":i=48;break;case"SHA-512/256":i=32;break;case"SHA-512/224":i=28;break}var o={algorithm:e.replace("-","").toLowerCase(),blockLength:128,digestLength:i,messageLength:0,fullMessageLength:null,messageLengthSize:16};return o.start=function(){o.messageLength=0,o.fullMessageLength=o.messageLength128=[];for(var c=o.messageLengthSize/4,l=0;l<c;++l)o.fullMessageLength.push(0);a=Ve.util.createBuffer(),r=new Array(t.length);for(var l=0;l<t.length;++l)r[l]=t[l].slice(0);return o},o.start(),o.update=function(c,l){l==="utf8"&&(c=Ve.util.encodeUtf8(c));var u=c.length;o.messageLength+=u,u=[u/4294967296>>>0,u>>>0];for(var p=o.fullMessageLength.length-1;p>=0;--p)o.fullMessageLength[p]+=u[1],u[1]=u[0]+(o.fullMessageLength[p]/4294967296>>>0),o.fullMessageLength[p]=o.fullMessageLength[p]>>>0,u[0]=u[1]/4294967296>>>0;return a.putBytes(c),P0(r,n,a),(a.read>2048||a.length()===0)&&a.compact(),o},o.digest=function(){var c=Ve.util.createBuffer();c.putBytes(a.bytes());var l=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize,u=l&o.blockLength-1;c.putBytes(tp.substr(0,o.blockLength-u));for(var p,d,x=o.fullMessageLength[0]*8,h=0;h<o.fullMessageLength.length-1;++h)p=o.fullMessageLength[h+1]*8,d=p/4294967296>>>0,x+=d,c.putInt32(x>>>0),x=p>>>0;c.putInt32(x);for(var y=new Array(r.length),h=0;h<r.length;++h)y[h]=r[h].slice(0);P0(y,n,c);var b=Ve.util.createBuffer(),C;e==="SHA-512"?C=y.length:e==="SHA-384"?C=y.length-2:C=y.length-4;for(var h=0;h<C;++h)b.putInt32(y[h][0]),(h!==C-1||e!=="SHA-512/224")&&b.putInt32(y[h][1]);return b},o};var tp=null,L0=!1,ap=null,Na=null;function YC(){tp="\x80",tp+=Ve.util.fillString("\0",128),ap=[[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]],Na={},Na["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],Na["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],Na["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],Na["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],L0=!0}function P0(e,t,r){for(var a,n,s,i,o,c,l,u,p,d,x,h,y,b,C,I,B,U,_,N,j,H,te,se,Be,Te,ze,ye,be,Ee,O,$,Le,Ue,Z,Ce=r.length();Ce>=128;){for(be=0;be<16;++be)t[be][0]=r.getInt32()>>>0,t[be][1]=r.getInt32()>>>0;for(;be<80;++be)$=t[be-2],Ee=$[0],O=$[1],a=((Ee>>>19|O<<13)^(O>>>29|Ee<<3)^Ee>>>6)>>>0,n=((Ee<<13|O>>>19)^(O<<3|Ee>>>29)^(Ee<<26|O>>>6))>>>0,Ue=t[be-15],Ee=Ue[0],O=Ue[1],s=((Ee>>>1|O<<31)^(Ee>>>8|O<<24)^Ee>>>7)>>>0,i=((Ee<<31|O>>>1)^(Ee<<24|O>>>8)^(Ee<<25|O>>>7))>>>0,Le=t[be-7],Z=t[be-16],O=n+Le[1]+i+Z[1],t[be][0]=a+Le[0]+s+Z[0]+(O/4294967296>>>0)>>>0,t[be][1]=O>>>0;for(y=e[0][0],b=e[0][1],C=e[1][0],I=e[1][1],B=e[2][0],U=e[2][1],_=e[3][0],N=e[3][1],j=e[4][0],H=e[4][1],te=e[5][0],se=e[5][1],Be=e[6][0],Te=e[6][1],ze=e[7][0],ye=e[7][1],be=0;be<80;++be)l=((j>>>14|H<<18)^(j>>>18|H<<14)^(H>>>9|j<<23))>>>0,u=((j<<18|H>>>14)^(j<<14|H>>>18)^(H<<23|j>>>9))>>>0,p=(Be^j&(te^Be))>>>0,d=(Te^H&(se^Te))>>>0,o=((y>>>28|b<<4)^(b>>>2|y<<30)^(b>>>7|y<<25))>>>0,c=((y<<4|b>>>28)^(b<<30|y>>>2)^(b<<25|y>>>7))>>>0,x=(y&C|B&(y^C))>>>0,h=(b&I|U&(b^I))>>>0,O=ye+u+d+ap[be][1]+t[be][1],a=ze+l+p+ap[be][0]+t[be][0]+(O/4294967296>>>0)>>>0,n=O>>>0,O=c+h,s=o+x+(O/4294967296>>>0)>>>0,i=O>>>0,ze=Be,ye=Te,Be=te,Te=se,te=j,se=H,O=N+n,j=_+a+(O/4294967296>>>0)>>>0,H=O>>>0,_=B,N=U,B=C,U=I,C=y,I=b,O=n+i,y=a+s+(O/4294967296>>>0)>>>0,b=O>>>0;O=e[0][1]+b,e[0][0]=e[0][0]+y+(O/4294967296>>>0)>>>0,e[0][1]=O>>>0,O=e[1][1]+I,e[1][0]=e[1][0]+C+(O/4294967296>>>0)>>>0,e[1][1]=O>>>0,O=e[2][1]+U,e[2][0]=e[2][0]+B+(O/4294967296>>>0)>>>0,e[2][1]=O>>>0,O=e[3][1]+N,e[3][0]=e[3][0]+_+(O/4294967296>>>0)>>>0,e[3][1]=O>>>0,O=e[4][1]+H,e[4][0]=e[4][0]+j+(O/4294967296>>>0)>>>0,e[4][1]=O>>>0,O=e[5][1]+se,e[5][0]=e[5][0]+te+(O/4294967296>>>0)>>>0,e[5][1]=O>>>0,O=e[6][1]+Te,e[6][0]=e[6][0]+Be+(O/4294967296>>>0)>>>0,e[6][1]=O>>>0,O=e[7][1]+ye,e[7][0]=e[7][0]+ze+(O/4294967296>>>0)>>>0,e[7][1]=O>>>0,Ce-=128}}var rp={},JC=ie,at=JC.asn1;rp.privateKeyValidator={name:"PrivateKeyInfo",tagClass:at.Class.UNIVERSAL,type:at.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:at.Class.UNIVERSAL,type:at.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:at.Class.UNIVERSAL,type:at.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:at.Class.UNIVERSAL,type:at.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:at.Class.UNIVERSAL,type:at.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},rp.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:at.Class.UNIVERSAL,type:at.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:at.Class.UNIVERSAL,type:at.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:at.Class.UNIVERSAL,type:at.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:at.Class.UNIVERSAL,type:at.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]};var st=ie,O0=rp,ZC=O0.publicKeyValidator,eT=O0.privateKeyValidator;if(typeof tT>"u")var tT=st.jsbn.BigInteger;var np=st.util.ByteBuffer,Bt=typeof Buffer>"u"?Uint8Array:Buffer;st.pki=st.pki||{},st.pki.ed25519=st.ed25519=st.ed25519||{};var ue=st.ed25519;ue.constants={},ue.constants.PUBLIC_KEY_BYTE_LENGTH=32,ue.constants.PRIVATE_KEY_BYTE_LENGTH=64,ue.constants.SEED_BYTE_LENGTH=32,ue.constants.SIGN_BYTE_LENGTH=64,ue.constants.HASH_BYTE_LENGTH=64,ue.generateKeyPair=function(e){e=e||{};var t=e.seed;if(t===void 0)t=st.random.getBytesSync(ue.constants.SEED_BYTE_LENGTH);else if(typeof t=="string"){if(t.length!==ue.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+ue.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(t instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');t=aa({message:t,encoding:"binary"});for(var r=new Bt(ue.constants.PUBLIC_KEY_BYTE_LENGTH),a=new Bt(ue.constants.PRIVATE_KEY_BYTE_LENGTH),n=0;n<32;++n)a[n]=t[n];return iT(r,a),{publicKey:r,privateKey:a}},ue.privateKeyFromAsn1=function(e){var t={},r=[],a=st.asn1.validate(e,eT,t,r);if(!a){var n=new Error("Invalid Key.");throw n.errors=r,n}var s=st.asn1.derToOid(t.privateKeyOid),i=st.oids.EdDSA25519;if(s!==i)throw new Error('Invalid OID "'+s+'"; OID must be "'+i+'".');var o=t.privateKey,c=aa({message:st.asn1.fromDer(o).value,encoding:"binary"});return{privateKeyBytes:c}},ue.publicKeyFromAsn1=function(e){var t={},r=[],a=st.asn1.validate(e,ZC,t,r);if(!a){var n=new Error("Invalid Key.");throw n.errors=r,n}var s=st.asn1.derToOid(t.publicKeyOid),i=st.oids.EdDSA25519;if(s!==i)throw new Error('Invalid OID "'+s+'"; OID must be "'+i+'".');var o=t.ed25519PublicKey;if(o.length!==ue.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return aa({message:o,encoding:"binary"})},ue.publicKeyFromPrivateKey=function(e){e=e||{};var t=aa({message:e.privateKey,encoding:"binary"});if(t.length!==ue.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+ue.constants.PRIVATE_KEY_BYTE_LENGTH);for(var r=new Bt(ue.constants.PUBLIC_KEY_BYTE_LENGTH),a=0;a<r.length;++a)r[a]=t[32+a];return r},ue.sign=function(e){e=e||{};var t=aa(e),r=aa({message:e.privateKey,encoding:"binary"});if(r.length===ue.constants.SEED_BYTE_LENGTH){var a=ue.generateKeyPair({seed:r});r=a.privateKey}else if(r.length!==ue.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+ue.constants.SEED_BYTE_LENGTH+" or "+ue.constants.PRIVATE_KEY_BYTE_LENGTH);var n=new Bt(ue.constants.SIGN_BYTE_LENGTH+t.length);sT(n,t,t.length,r);for(var s=new Bt(ue.constants.SIGN_BYTE_LENGTH),i=0;i<s.length;++i)s[i]=n[i];return s},ue.verify=function(e){e=e||{};var t=aa(e);if(e.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var r=aa({message:e.signature,encoding:"binary"});if(r.length!==ue.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+ue.constants.SIGN_BYTE_LENGTH);var a=aa({message:e.publicKey,encoding:"binary"});if(a.length!==ue.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+ue.constants.PUBLIC_KEY_BYTE_LENGTH);var n=new Bt(ue.constants.SIGN_BYTE_LENGTH+t.length),s=new Bt(ue.constants.SIGN_BYTE_LENGTH+t.length),i;for(i=0;i<ue.constants.SIGN_BYTE_LENGTH;++i)n[i]=r[i];for(i=0;i<t.length;++i)n[i+ue.constants.SIGN_BYTE_LENGTH]=t[i];return oT(s,n,n.length,a)>=0};function aa(e){var t=e.message;if(t instanceof Uint8Array||t instanceof Bt)return t;var r=e.encoding;if(t===void 0)if(e.md)t=e.md.digest().getBytes(),r="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof t=="string"&&!r)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof t=="string"){if(typeof Buffer<"u")return Buffer.from(t,r);t=new np(t,r)}else if(!(t instanceof np))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var a=new Bt(t.length()),n=0;n<a.length;++n)a[n]=t.at(n);return a}var ip=Y(),hl=Y([1]),aT=Y([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),rT=Y([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),D0=Y([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),F0=Y([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),sp=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),nT=Y([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function bc(e,t){var r=st.md.sha512.create(),a=new np(e);r.update(a.getBytes(t),"binary");var n=r.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(n,"binary");for(var s=new Bt(ue.constants.HASH_BYTE_LENGTH),i=0;i<64;++i)s[i]=n.charCodeAt(i);return s}function iT(e,t){var r=[Y(),Y(),Y(),Y()],a,n=bc(t,32);for(n[0]&=248,n[31]&=127,n[31]|=64,up(r,n),lp(e,r),a=0;a<32;++a)t[a+32]=e[a];return 0}function sT(e,t,r,a){var n,s,i=new Float64Array(64),o=[Y(),Y(),Y(),Y()],c=bc(a,32);c[0]&=248,c[31]&=127,c[31]|=64;var l=r+64;for(n=0;n<r;++n)e[64+n]=t[n];for(n=0;n<32;++n)e[32+n]=c[32+n];var u=bc(e.subarray(32),r+32);for(op(u),up(o,u),lp(e,o),n=32;n<64;++n)e[n]=a[n];var p=bc(e,r+64);for(op(p),n=32;n<64;++n)i[n]=0;for(n=0;n<32;++n)i[n]=u[n];for(n=0;n<32;++n)for(s=0;s<32;s++)i[n+s]+=p[n]*c[s];return V0(e.subarray(32),i),l}function oT(e,t,r,a){var n,s,i=new Bt(32),o=[Y(),Y(),Y(),Y()],c=[Y(),Y(),Y(),Y()];if(s=-1,r<64||cT(c,a))return-1;for(n=0;n<r;++n)e[n]=t[n];for(n=0;n<32;++n)e[n+32]=a[n];var l=bc(e,r);if(op(l),z0(o,c,l),up(c,t.subarray(32)),cp(o,c),lp(i,o),r-=64,j0(t,0,i,0)){for(n=0;n<r;++n)e[n]=0;return-1}for(n=0;n<r;++n)e[n]=t[n+64];return s=r,s}function V0(e,t){var r,a,n,s;for(a=63;a>=32;--a){for(r=0,n=a-32,s=a-12;n<s;++n)t[n]+=r-16*t[a]*sp[n-(a-32)],r=t[n]+128>>8,t[n]-=r*256;t[n]+=r,t[a]=0}for(r=0,n=0;n<32;++n)t[n]+=r-(t[31]>>4)*sp[n],r=t[n]>>8,t[n]&=255;for(n=0;n<32;++n)t[n]-=r*sp[n];for(a=0;a<32;++a)t[a+1]+=t[a]>>8,e[a]=t[a]&255}function op(e){for(var t=new Float64Array(64),r=0;r<64;++r)t[r]=e[r],e[r]=0;V0(e,t)}function cp(e,t){var r=Y(),a=Y(),n=Y(),s=Y(),i=Y(),o=Y(),c=Y(),l=Y(),u=Y();ar(r,e[1],e[0]),ar(u,t[1],t[0]),Pe(r,r,u),tr(a,e[0],e[1]),tr(u,t[0],t[1]),Pe(a,a,u),Pe(n,e[3],t[3]),Pe(n,n,rT),Pe(s,e[2],t[2]),tr(s,s,s),ar(i,a,r),ar(o,s,n),tr(c,s,n),tr(l,a,r),Pe(e[0],i,o),Pe(e[1],l,c),Pe(e[2],c,o),Pe(e[3],i,l)}function M0(e,t,r){for(var a=0;a<4;++a)H0(e[a],t[a],r)}function lp(e,t){var r=Y(),a=Y(),n=Y();dT(n,t[2]),Pe(r,t[0],n),Pe(a,t[1],n),ml(e,a),e[31]^=K0(r)<<7}function ml(e,t){var r,a,n,s=Y(),i=Y();for(r=0;r<16;++r)i[r]=t[r];for(pp(i),pp(i),pp(i),a=0;a<2;++a){for(s[0]=i[0]-65517,r=1;r<15;++r)s[r]=i[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=i[15]-32767-(s[14]>>16&1),n=s[15]>>16&1,s[14]&=65535,H0(i,s,1-n)}for(r=0;r<16;r++)e[2*r]=i[r]&255,e[2*r+1]=i[r]>>8}function cT(e,t){var r=Y(),a=Y(),n=Y(),s=Y(),i=Y(),o=Y(),c=Y();return va(e[2],hl),lT(e[1],t),La(n,e[1]),Pe(s,n,aT),ar(n,n,e[2]),tr(s,e[2],s),La(i,s),La(o,i),Pe(c,o,i),Pe(r,c,n),Pe(r,r,s),uT(r,r),Pe(r,r,n),Pe(r,r,s),Pe(r,r,s),Pe(e[0],r,s),La(a,e[0]),Pe(a,a,s),q0(a,n)&&Pe(e[0],e[0],nT),La(a,e[0]),Pe(a,a,s),q0(a,n)?-1:(K0(e[0])===t[31]>>7&&ar(e[0],ip,e[0]),Pe(e[3],e[0],e[1]),0)}function lT(e,t){var r;for(r=0;r<16;++r)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function uT(e,t){var r=Y(),a;for(a=0;a<16;++a)r[a]=t[a];for(a=250;a>=0;--a)La(r,r),a!==1&&Pe(r,r,t);for(a=0;a<16;++a)e[a]=r[a]}function q0(e,t){var r=new Bt(32),a=new Bt(32);return ml(r,e),ml(a,t),j0(r,0,a,0)}function j0(e,t,r,a){return pT(e,t,r,a,32)}function pT(e,t,r,a,n){var s,i=0;for(s=0;s<n;++s)i|=e[t+s]^r[a+s];return(1&i-1>>>8)-1}function K0(e){var t=new Bt(32);return ml(t,e),t[0]&1}function z0(e,t,r){var a,n;for(va(e[0],ip),va(e[1],hl),va(e[2],hl),va(e[3],ip),n=255;n>=0;--n)a=r[n/8|0]>>(n&7)&1,M0(e,t,a),cp(t,e),cp(e,e),M0(e,t,a)}function up(e,t){var r=[Y(),Y(),Y(),Y()];va(r[0],D0),va(r[1],F0),va(r[2],hl),Pe(r[3],D0,F0),z0(e,r,t)}function va(e,t){var r;for(r=0;r<16;r++)e[r]=t[r]|0}function dT(e,t){var r=Y(),a;for(a=0;a<16;++a)r[a]=t[a];for(a=253;a>=0;--a)La(r,r),a!==2&&a!==4&&Pe(r,r,t);for(a=0;a<16;++a)e[a]=r[a]}function pp(e){var t,r,a=1;for(t=0;t<16;++t)r=e[t]+a+65535,a=Math.floor(r/65536),e[t]=r-a*65536;e[0]+=a-1+37*(a-1)}function H0(e,t,r){for(var a,n=~(r-1),s=0;s<16;++s)a=n&(e[s]^t[s]),e[s]^=a,t[s]^=a}function Y(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;++t)r[t]=e[t];return r}function tr(e,t,r){for(var a=0;a<16;++a)e[a]=t[a]+r[a]}function ar(e,t,r){for(var a=0;a<16;++a)e[a]=t[a]-r[a]}function La(e,t){Pe(e,t,t)}function Pe(e,t,r){var a,n,s=0,i=0,o=0,c=0,l=0,u=0,p=0,d=0,x=0,h=0,y=0,b=0,C=0,I=0,B=0,U=0,_=0,N=0,j=0,H=0,te=0,se=0,Be=0,Te=0,ze=0,ye=0,be=0,Ee=0,O=0,$=0,Le=0,Ue=r[0],Z=r[1],Ce=r[2],Me=r[3],ke=r[4],Re=r[5],Ye=r[6],We=r[7],_e=r[8],ot=r[9],ct=r[10],lt=r[11],ut=r[12],pt=r[13],dt=r[14],ft=r[15];a=t[0],s+=a*Ue,i+=a*Z,o+=a*Ce,c+=a*Me,l+=a*ke,u+=a*Re,p+=a*Ye,d+=a*We,x+=a*_e,h+=a*ot,y+=a*ct,b+=a*lt,C+=a*ut,I+=a*pt,B+=a*dt,U+=a*ft,a=t[1],i+=a*Ue,o+=a*Z,c+=a*Ce,l+=a*Me,u+=a*ke,p+=a*Re,d+=a*Ye,x+=a*We,h+=a*_e,y+=a*ot,b+=a*ct,C+=a*lt,I+=a*ut,B+=a*pt,U+=a*dt,_+=a*ft,a=t[2],o+=a*Ue,c+=a*Z,l+=a*Ce,u+=a*Me,p+=a*ke,d+=a*Re,x+=a*Ye,h+=a*We,y+=a*_e,b+=a*ot,C+=a*ct,I+=a*lt,B+=a*ut,U+=a*pt,_+=a*dt,N+=a*ft,a=t[3],c+=a*Ue,l+=a*Z,u+=a*Ce,p+=a*Me,d+=a*ke,x+=a*Re,h+=a*Ye,y+=a*We,b+=a*_e,C+=a*ot,I+=a*ct,B+=a*lt,U+=a*ut,_+=a*pt,N+=a*dt,j+=a*ft,a=t[4],l+=a*Ue,u+=a*Z,p+=a*Ce,d+=a*Me,x+=a*ke,h+=a*Re,y+=a*Ye,b+=a*We,C+=a*_e,I+=a*ot,B+=a*ct,U+=a*lt,_+=a*ut,N+=a*pt,j+=a*dt,H+=a*ft,a=t[5],u+=a*Ue,p+=a*Z,d+=a*Ce,x+=a*Me,h+=a*ke,y+=a*Re,b+=a*Ye,C+=a*We,I+=a*_e,B+=a*ot,U+=a*ct,_+=a*lt,N+=a*ut,j+=a*pt,H+=a*dt,te+=a*ft,a=t[6],p+=a*Ue,d+=a*Z,x+=a*Ce,h+=a*Me,y+=a*ke,b+=a*Re,C+=a*Ye,I+=a*We,B+=a*_e,U+=a*ot,_+=a*ct,N+=a*lt,j+=a*ut,H+=a*pt,te+=a*dt,se+=a*ft,a=t[7],d+=a*Ue,x+=a*Z,h+=a*Ce,y+=a*Me,b+=a*ke,C+=a*Re,I+=a*Ye,B+=a*We,U+=a*_e,_+=a*ot,N+=a*ct,j+=a*lt,H+=a*ut,te+=a*pt,se+=a*dt,Be+=a*ft,a=t[8],x+=a*Ue,h+=a*Z,y+=a*Ce,b+=a*Me,C+=a*ke,I+=a*Re,B+=a*Ye,U+=a*We,_+=a*_e,N+=a*ot,j+=a*ct,H+=a*lt,te+=a*ut,se+=a*pt,Be+=a*dt,Te+=a*ft,a=t[9],h+=a*Ue,y+=a*Z,b+=a*Ce,C+=a*Me,I+=a*ke,B+=a*Re,U+=a*Ye,_+=a*We,N+=a*_e,j+=a*ot,H+=a*ct,te+=a*lt,se+=a*ut,Be+=a*pt,Te+=a*dt,ze+=a*ft,a=t[10],y+=a*Ue,b+=a*Z,C+=a*Ce,I+=a*Me,B+=a*ke,U+=a*Re,_+=a*Ye,N+=a*We,j+=a*_e,H+=a*ot,te+=a*ct,se+=a*lt,Be+=a*ut,Te+=a*pt,ze+=a*dt,ye+=a*ft,a=t[11],b+=a*Ue,C+=a*Z,I+=a*Ce,B+=a*Me,U+=a*ke,_+=a*Re,N+=a*Ye,j+=a*We,H+=a*_e,te+=a*ot,se+=a*ct,Be+=a*lt,Te+=a*ut,ze+=a*pt,ye+=a*dt,be+=a*ft,a=t[12],C+=a*Ue,I+=a*Z,B+=a*Ce,U+=a*Me,_+=a*ke,N+=a*Re,j+=a*Ye,H+=a*We,te+=a*_e,se+=a*ot,Be+=a*ct,Te+=a*lt,ze+=a*ut,ye+=a*pt,be+=a*dt,Ee+=a*ft,a=t[13],I+=a*Ue,B+=a*Z,U+=a*Ce,_+=a*Me,N+=a*ke,j+=a*Re,H+=a*Ye,te+=a*We,se+=a*_e,Be+=a*ot,Te+=a*ct,ze+=a*lt,ye+=a*ut,be+=a*pt,Ee+=a*dt,O+=a*ft,a=t[14],B+=a*Ue,U+=a*Z,_+=a*Ce,N+=a*Me,j+=a*ke,H+=a*Re,te+=a*Ye,se+=a*We,Be+=a*_e,Te+=a*ot,ze+=a*ct,ye+=a*lt,be+=a*ut,Ee+=a*pt,O+=a*dt,$+=a*ft,a=t[15],U+=a*Ue,_+=a*Z,N+=a*Ce,j+=a*Me,H+=a*ke,te+=a*Re,se+=a*Ye,Be+=a*We,Te+=a*_e,ze+=a*ot,ye+=a*ct,be+=a*lt,Ee+=a*ut,O+=a*pt,$+=a*dt,Le+=a*ft,s+=38*_,i+=38*N,o+=38*j,c+=38*H,l+=38*te,u+=38*se,p+=38*Be,d+=38*Te,x+=38*ze,h+=38*ye,y+=38*be,b+=38*Ee,C+=38*O,I+=38*$,B+=38*Le,n=1,a=s+n+65535,n=Math.floor(a/65536),s=a-n*65536,a=i+n+65535,n=Math.floor(a/65536),i=a-n*65536,a=o+n+65535,n=Math.floor(a/65536),o=a-n*65536,a=c+n+65535,n=Math.floor(a/65536),c=a-n*65536,a=l+n+65535,n=Math.floor(a/65536),l=a-n*65536,a=u+n+65535,n=Math.floor(a/65536),u=a-n*65536,a=p+n+65535,n=Math.floor(a/65536),p=a-n*65536,a=d+n+65535,n=Math.floor(a/65536),d=a-n*65536,a=x+n+65535,n=Math.floor(a/65536),x=a-n*65536,a=h+n+65535,n=Math.floor(a/65536),h=a-n*65536,a=y+n+65535,n=Math.floor(a/65536),y=a-n*65536,a=b+n+65535,n=Math.floor(a/65536),b=a-n*65536,a=C+n+65535,n=Math.floor(a/65536),C=a-n*65536,a=I+n+65535,n=Math.floor(a/65536),I=a-n*65536,a=B+n+65535,n=Math.floor(a/65536),B=a-n*65536,a=U+n+65535,n=Math.floor(a/65536),U=a-n*65536,s+=n-1+37*(n-1),n=1,a=s+n+65535,n=Math.floor(a/65536),s=a-n*65536,a=i+n+65535,n=Math.floor(a/65536),i=a-n*65536,a=o+n+65535,n=Math.floor(a/65536),o=a-n*65536,a=c+n+65535,n=Math.floor(a/65536),c=a-n*65536,a=l+n+65535,n=Math.floor(a/65536),l=a-n*65536,a=u+n+65535,n=Math.floor(a/65536),u=a-n*65536,a=p+n+65535,n=Math.floor(a/65536),p=a-n*65536,a=d+n+65535,n=Math.floor(a/65536),d=a-n*65536,a=x+n+65535,n=Math.floor(a/65536),x=a-n*65536,a=h+n+65535,n=Math.floor(a/65536),h=a-n*65536,a=y+n+65535,n=Math.floor(a/65536),y=a-n*65536,a=b+n+65535,n=Math.floor(a/65536),b=a-n*65536,a=C+n+65535,n=Math.floor(a/65536),C=a-n*65536,a=I+n+65535,n=Math.floor(a/65536),I=a-n*65536,a=B+n+65535,n=Math.floor(a/65536),B=a-n*65536,a=U+n+65535,n=Math.floor(a/65536),U=a-n*65536,s+=n-1+37*(n-1),e[0]=s,e[1]=i,e[2]=o,e[3]=c,e[4]=l,e[5]=u,e[6]=p,e[7]=d,e[8]=x,e[9]=h,e[10]=y,e[11]=b,e[12]=C,e[13]=I,e[14]=B,e[15]=U}var Rt=ie;Rt.kem=Rt.kem||{};var $0=Rt.jsbn.BigInteger;Rt.kem.rsa={},Rt.kem.rsa.create=function(e,t){t=t||{};var r=t.prng||Rt.random,a={};return a.encrypt=function(n,s){var i=Math.ceil(n.n.bitLength()/8),o;do o=new $0(Rt.util.bytesToHex(r.getBytesSync(i)),16).mod(n.n);while(o.compareTo($0.ONE)<=0);o=Rt.util.hexToBytes(o.toString(16));var c=i-o.length;c>0&&(o=Rt.util.fillString("\0",c)+o);var l=n.encrypt(o,"NONE"),u=e.generate(o,s);return{encapsulation:l,key:u}},a.decrypt=function(n,s,i){var o=n.decrypt(s,"NONE");return e.generate(o,i)},a},Rt.kem.kdf1=function(e,t){G0(this,e,0,t||e.digestLength)},Rt.kem.kdf2=function(e,t){G0(this,e,1,t||e.digestLength)};function G0(e,t,r,a){e.generate=function(n,s){for(var i=new Rt.util.ByteBuffer,o=Math.ceil(s/a)+r,c=new Rt.util.ByteBuffer,l=r;l<o;++l){c.putInt32(l),t.start(),t.update(n+c.getBytes());var u=t.digest();i.putBytes(u.getBytes(a))}return i.truncate(i.length()-s),i.getBytes()}}var xe=ie;xe.log=xe.log||{},xe.log.levels=["none","error","warning","info","debug","verbose","max"];var vl={},dp=[],Ec=null;xe.log.LEVEL_LOCKED=2,xe.log.NO_LEVEL_CHECK=4,xe.log.INTERPOLATE=8;for(var ga=0;ga<xe.log.levels.length;++ga){var W0=xe.log.levels[ga];vl[W0]={index:ga,name:W0.toUpperCase()}}xe.log.logMessage=function(e){for(var t=vl[e.level].index,r=0;r<dp.length;++r){var a=dp[r];if(a.flags&xe.log.NO_LEVEL_CHECK)a.f(e);else{var n=vl[a.level].index;t<=n&&a.f(a,e)}}},xe.log.prepareStandard=function(e){"standard"in e||(e.standard=vl[e.level].name+" ["+e.category+"] "+e.message)},xe.log.prepareFull=function(e){if(!("full"in e)){var t=[e.message];t=t.concat([]),e.full=xe.util.format.apply(this,t)}},xe.log.prepareStandardFull=function(e){"standardFull"in e||(xe.log.prepareStandard(e),e.standardFull=e.standard)};for(var X0=["error","warning","info","debug","verbose"],ga=0;ga<X0.length;++ga)(function(t){xe.log[t]=function(r,a){var n=Array.prototype.slice.call(arguments).slice(2),s={timestamp:new Date,level:t,category:r,message:a,arguments:n};xe.log.logMessage(s)}})(X0[ga]);if(xe.log.makeLogger=function(e){var t={flags:0,f:e};return xe.log.setLevel(t,"none"),t},xe.log.setLevel=function(e,t){var r=!1;if(e&&!(e.flags&xe.log.LEVEL_LOCKED))for(var a=0;a<xe.log.levels.length;++a){var n=xe.log.levels[a];if(t==n){e.level=t,r=!0;break}}return r},xe.log.lock=function(e,t){typeof t>"u"||t?e.flags|=xe.log.LEVEL_LOCKED:e.flags&=~xe.log.LEVEL_LOCKED},xe.log.addLogger=function(e){dp.push(e)},typeof console<"u"&&"log"in console){var Cc;if(console.error&&console.warn&&console.info&&console.debug){var fT={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},vp=function(e,t){xe.log.prepareStandard(t);var r=fT[t.level],a=[t.standard];a=a.concat(t.arguments.slice()),r.apply(console,a)};Cc=xe.log.makeLogger(vp)}else{var vp=function(t,r){xe.log.prepareStandardFull(r),console.log(r.standardFull)};Cc=xe.log.makeLogger(vp)}xe.log.setLevel(Cc,"debug"),xe.log.addLogger(Cc),Ec=Cc}else console={log:function(){}};if(Ec!==null&&typeof window<"u"&&window.location){var gl=new URL(window.location.href).searchParams;if(gl.has("console.level")&&xe.log.setLevel(Ec,gl.get("console.level").slice(-1)[0]),gl.has("console.lock")){var hT=gl.get("console.lock").slice(-1)[0];hT=="true"&&xe.log.lock(Ec)}}xe.log.consoleLogger=Ec;var V=ie,S=V.asn1,Tt=V.pkcs7=V.pkcs7||{};Tt.messageFromPem=function(e){var t=V.pem.decode(e)[0];if(t.type!=="PKCS7"){var r=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw r.headerType=t.type,r}if(t.procType&&t.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var a=S.fromDer(t.body);return Tt.messageFromAsn1(a)},Tt.messageToPem=function(e,t){var r={type:"PKCS7",body:S.toDer(e.toAsn1()).getBytes()};return V.pem.encode(r,{maxline:t})},Tt.messageFromAsn1=function(e){var t={},r=[];if(!S.validate(e,Tt.asn1.contentInfoValidator,t,r)){var a=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw a.errors=r,a}var n=S.derToOid(t.contentType),s;switch(n){case V.pki.oids.envelopedData:s=Tt.createEnvelopedData();break;case V.pki.oids.encryptedData:s=Tt.createEncryptedData();break;case V.pki.oids.signedData:s=Tt.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+n+" is not (yet) supported.")}return s.fromAsn1(t.content.value[0]),s},Tt.createSignedData=function(){var e=null;return e={type:V.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(a){if(hp(e,a,Tt.asn1.signedDataValidator),e.certificates=[],e.crls=[],e.digestAlgorithmIdentifiers=[],e.contentInfo=null,e.signerInfos=[],e.rawCapture.certificates)for(var n=e.rawCapture.certificates.value,s=0;s<n.length;++s)e.certificates.push(V.pki.certificateFromAsn1(n[s]))},toAsn1:function(){e.contentInfo||e.sign();for(var a=[],n=0;n<e.certificates.length;++n)a.push(V.pki.certificateToAsn1(e.certificates[n]));var s=[],i=S.create(S.Class.CONTEXT_SPECIFIC,0,!0,[S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.INTEGER,!1,S.integerToDer(e.version).getBytes()),S.create(S.Class.UNIVERSAL,S.Type.SET,!0,e.digestAlgorithmIdentifiers),e.contentInfo])]);return a.length>0&&i.value[0].value.push(S.create(S.Class.CONTEXT_SPECIFIC,0,!0,a)),s.length>0&&i.value[0].value.push(S.create(S.Class.CONTEXT_SPECIFIC,1,!0,s)),i.value[0].value.push(S.create(S.Class.UNIVERSAL,S.Type.SET,!0,e.signerInfos)),S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(e.type).getBytes()),i])},addSigner:function(a){var n=a.issuer,s=a.serialNumber;if(a.certificate){var i=a.certificate;typeof i=="string"&&(i=V.pki.certificateFromPem(i)),n=i.issuer.attributes,s=i.serialNumber}var o=a.key;if(!o)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof o=="string"&&(o=V.pki.privateKeyFromPem(o));var c=a.digestAlgorithm||V.pki.oids.sha1;switch(c){case V.pki.oids.sha1:case V.pki.oids.sha256:case V.pki.oids.sha384:case V.pki.oids.sha512:case V.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=a.authenticatedAttributes||[];if(l.length>0){for(var u=!1,p=!1,d=0;d<l.length;++d){var x=l[d];if(!u&&x.type===V.pki.oids.contentType){if(u=!0,p)break;continue}if(!p&&x.type===V.pki.oids.messageDigest){if(p=!0,u)break;continue}}if(!u||!p)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}e.signers.push({key:o,version:1,issuer:n,serialNumber:s,digestAlgorithm:c,signatureAlgorithm:V.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:l,unauthenticatedAttributes:[]})},sign:function(a){if(a=a||{},(typeof e.content!="object"||e.contentInfo===null)&&(e.contentInfo=S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(V.pki.oids.data).getBytes())]),"content"in e)){var n;e.content instanceof V.util.ByteBuffer?n=e.content.bytes():typeof e.content=="string"&&(n=V.util.encodeUtf8(e.content)),a.detached?e.detachedContent=S.create(S.Class.UNIVERSAL,S.Type.OCTETSTRING,!1,n):e.contentInfo.value.push(S.create(S.Class.CONTEXT_SPECIFIC,0,!0,[S.create(S.Class.UNIVERSAL,S.Type.OCTETSTRING,!1,n)]))}if(e.signers.length!==0){var s=t();r(s)}},verify:function(){throw new Error("PKCS#7 signature verification not yet implemented.")},addCertificate:function(a){typeof a=="string"&&(a=V.pki.certificateFromPem(a)),e.certificates.push(a)},addCertificateRevokationList:function(a){throw new Error("PKCS#7 CRL support not yet implemented.")}},e;function t(){for(var a={},n=0;n<e.signers.length;++n){var s=e.signers[n],i=s.digestAlgorithm;i in a||(a[i]=V.md[V.pki.oids[i]].create()),s.authenticatedAttributes.length===0?s.md=a[i]:s.md=V.md[V.pki.oids[i]].create()}e.digestAlgorithmIdentifiers=[];for(var i in a)e.digestAlgorithmIdentifiers.push(S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(i).getBytes()),S.create(S.Class.UNIVERSAL,S.Type.NULL,!1,"")]));return a}function r(a){var n;if(e.detachedContent?n=e.detachedContent:(n=e.contentInfo.value[1],n=n.value[0]),!n)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var s=S.derToOid(e.contentInfo.value[0].value),i=S.toDer(n);i.getByte(),S.getBerValueLength(i),i=i.getBytes();for(var o in a)a[o].start().update(i);for(var c=new Date,l=0;l<e.signers.length;++l){var u=e.signers[l];if(u.authenticatedAttributes.length===0){if(s!==V.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{u.authenticatedAttributesAsn1=S.create(S.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var p=S.create(S.Class.UNIVERSAL,S.Type.SET,!0,[]),d=0;d<u.authenticatedAttributes.length;++d){var x=u.authenticatedAttributes[d];x.type===V.pki.oids.messageDigest?x.value=a[u.digestAlgorithm].digest():x.type===V.pki.oids.signingTime&&(x.value||(x.value=c)),p.value.push(fp(x)),u.authenticatedAttributesAsn1.value.push(fp(x))}i=S.toDer(p).getBytes(),u.md.start().update(i)}u.signature=u.key.sign(u.md,"RSASSA-PKCS1-V1_5")}e.signerInfos=bT(e.signers)}},Tt.createEncryptedData=function(){var e=null;return e={type:V.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:V.pki.oids["aes256-CBC"]},fromAsn1:function(t){hp(e,t,Tt.asn1.encryptedDataValidator)},decrypt:function(t){t!==void 0&&(e.encryptedContent.key=t),Q0(e)}},e},Tt.createEnvelopedData=function(){var e=null;return e={type:V.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:V.pki.oids["aes256-CBC"]},fromAsn1:function(t){var r=hp(e,t,Tt.asn1.envelopedDataValidator);e.recipients=gT(r.recipientInfos.value)},toAsn1:function(){return S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(e.type).getBytes()),S.create(S.Class.CONTEXT_SPECIFIC,0,!0,[S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.INTEGER,!1,S.integerToDer(e.version).getBytes()),S.create(S.Class.UNIVERSAL,S.Type.SET,!0,xT(e.recipients)),S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,ET(e.encryptedContent))])])])},findRecipient:function(t){for(var r=t.issuer.attributes,a=0;a<e.recipients.length;++a){var n=e.recipients[a],s=n.issuer;if(n.serialNumber===t.serialNumber&&s.length===r.length){for(var i=!0,o=0;o<r.length;++o)if(s[o].type!==r[o].type||s[o].value!==r[o].value){i=!1;break}if(i)return n}}return null},decrypt:function(t,r){if(e.encryptedContent.key===void 0&&t!==void 0&&r!==void 0)switch(t.encryptedContent.algorithm){case V.pki.oids.rsaEncryption:case V.pki.oids.desCBC:var a=r.decrypt(t.encryptedContent.content);e.encryptedContent.key=V.util.createBuffer(a);break;default:throw new Error("Unsupported asymmetric cipher, OID "+t.encryptedContent.algorithm)}Q0(e)},addRecipient:function(t){e.recipients.push({version:0,issuer:t.issuer.attributes,serialNumber:t.serialNumber,encryptedContent:{algorithm:V.pki.oids.rsaEncryption,key:t.publicKey}})},encrypt:function(t,r){if(e.encryptedContent.content===void 0){r=r||e.encryptedContent.algorithm,t=t||e.encryptedContent.key;var a,n,s;switch(r){case V.pki.oids["aes128-CBC"]:a=16,n=16,s=V.aes.createEncryptionCipher;break;case V.pki.oids["aes192-CBC"]:a=24,n=16,s=V.aes.createEncryptionCipher;break;case V.pki.oids["aes256-CBC"]:a=32,n=16,s=V.aes.createEncryptionCipher;break;case V.pki.oids["des-EDE3-CBC"]:a=24,n=8,s=V.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+r)}if(t===void 0)t=V.util.createBuffer(V.random.getBytes(a));else if(t.length()!=a)throw new Error("Symmetric key has wrong length; got "+t.length()+" bytes, expected "+a+".");e.encryptedContent.algorithm=r,e.encryptedContent.key=t,e.encryptedContent.parameter=V.util.createBuffer(V.random.getBytes(n));var i=s(t);if(i.start(e.encryptedContent.parameter.copy()),i.update(e.content),!i.finish())throw new Error("Symmetric encryption failed.");e.encryptedContent.content=i.output}for(var o=0;o<e.recipients.length;++o){var c=e.recipients[o];if(c.encryptedContent.content===void 0)switch(c.encryptedContent.algorithm){case V.pki.oids.rsaEncryption:c.encryptedContent.content=c.encryptedContent.key.encrypt(e.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+c.encryptedContent.algorithm)}}}},e};function mT(e){var t={},r=[];if(!S.validate(e,Tt.asn1.recipientInfoValidator,t,r)){var a=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw a.errors=r,a}return{version:t.version.charCodeAt(0),issuer:V.pki.RDNAttributesAsArray(t.issuer),serialNumber:V.util.createBuffer(t.serial).toHex(),encryptedContent:{algorithm:S.derToOid(t.encAlgorithm),parameter:t.encParameter?t.encParameter.value:void 0,content:t.encKey}}}function vT(e){return S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.INTEGER,!1,S.integerToDer(e.version).getBytes()),S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[V.pki.distinguishedNameToAsn1({attributes:e.issuer}),S.create(S.Class.UNIVERSAL,S.Type.INTEGER,!1,V.util.hexToBytes(e.serialNumber))]),S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(e.encryptedContent.algorithm).getBytes()),S.create(S.Class.UNIVERSAL,S.Type.NULL,!1,"")]),S.create(S.Class.UNIVERSAL,S.Type.OCTETSTRING,!1,e.encryptedContent.content)])}function gT(e){for(var t=[],r=0;r<e.length;++r)t.push(mT(e[r]));return t}function xT(e){for(var t=[],r=0;r<e.length;++r)t.push(vT(e[r]));return t}function yT(e){var t=S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.INTEGER,!1,S.integerToDer(e.version).getBytes()),S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[V.pki.distinguishedNameToAsn1({attributes:e.issuer}),S.create(S.Class.UNIVERSAL,S.Type.INTEGER,!1,V.util.hexToBytes(e.serialNumber))]),S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(e.digestAlgorithm).getBytes()),S.create(S.Class.UNIVERSAL,S.Type.NULL,!1,"")])]);if(e.authenticatedAttributesAsn1&&t.value.push(e.authenticatedAttributesAsn1),t.value.push(S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(e.signatureAlgorithm).getBytes()),S.create(S.Class.UNIVERSAL,S.Type.NULL,!1,"")])),t.value.push(S.create(S.Class.UNIVERSAL,S.Type.OCTETSTRING,!1,e.signature)),e.unauthenticatedAttributes.length>0){for(var r=S.create(S.Class.CONTEXT_SPECIFIC,1,!0,[]),a=0;a<e.unauthenticatedAttributes.length;++a){var n=e.unauthenticatedAttributes[a];r.values.push(fp(n))}t.value.push(r)}return t}function bT(e){for(var t=[],r=0;r<e.length;++r)t.push(yT(e[r]));return t}function fp(e){var t;if(e.type===V.pki.oids.contentType)t=S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(e.value).getBytes());else if(e.type===V.pki.oids.messageDigest)t=S.create(S.Class.UNIVERSAL,S.Type.OCTETSTRING,!1,e.value.bytes());else if(e.type===V.pki.oids.signingTime){var r=new Date("1950-01-01T00:00:00Z"),a=new Date("2050-01-01T00:00:00Z"),n=e.value;if(typeof n=="string"){var s=Date.parse(n);isNaN(s)?n.length===13?n=S.utcTimeToDate(n):n=S.generalizedTimeToDate(n):n=new Date(s)}n>=r&&n<a?t=S.create(S.Class.UNIVERSAL,S.Type.UTCTIME,!1,S.dateToUtcTime(n)):t=S.create(S.Class.UNIVERSAL,S.Type.GENERALIZEDTIME,!1,S.dateToGeneralizedTime(n))}return S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(e.type).getBytes()),S.create(S.Class.UNIVERSAL,S.Type.SET,!0,[t])])}function ET(e){return[S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(V.pki.oids.data).getBytes()),S.create(S.Class.UNIVERSAL,S.Type.SEQUENCE,!0,[S.create(S.Class.UNIVERSAL,S.Type.OID,!1,S.oidToDer(e.algorithm).getBytes()),e.parameter?S.create(S.Class.UNIVERSAL,S.Type.OCTETSTRING,!1,e.parameter.getBytes()):void 0]),S.create(S.Class.CONTEXT_SPECIFIC,0,!0,[S.create(S.Class.UNIVERSAL,S.Type.OCTETSTRING,!1,e.content.getBytes())])]}function hp(e,t,r){var a={},n=[];if(!S.validate(t,r,a,n)){var s=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw s.errors=s,s}var i=S.derToOid(a.contentType);if(i!==V.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(a.encryptedContent){var o="";if(V.util.isArray(a.encryptedContent))for(var c=0;c<a.encryptedContent.length;++c){if(a.encryptedContent[c].type!==S.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");o+=a.encryptedContent[c].value}else o=a.encryptedContent;e.encryptedContent={algorithm:S.derToOid(a.encAlgorithm),parameter:V.util.createBuffer(a.encParameter.value),content:V.util.createBuffer(o)}}if(a.content){var o="";if(V.util.isArray(a.content))for(var c=0;c<a.content.length;++c){if(a.content[c].type!==S.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");o+=a.content[c].value}else o=a.content;e.content=V.util.createBuffer(o)}return e.version=a.version.charCodeAt(0),e.rawCapture=a,a}function Q0(e){if(e.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(e.content===void 0){var t;switch(e.encryptedContent.algorithm){case V.pki.oids["aes128-CBC"]:case V.pki.oids["aes192-CBC"]:case V.pki.oids["aes256-CBC"]:t=V.aes.createDecryptionCipher(e.encryptedContent.key);break;case V.pki.oids.desCBC:case V.pki.oids["des-EDE3-CBC"]:t=V.des.createDecryptionCipher(e.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+e.encryptedContent.algorithm)}if(t.start(e.encryptedContent.parameter),t.update(e.encryptedContent.content),!t.finish())throw new Error("Symmetric decryption failed.");e.content=t.output}}var Qe=ie,xl=Qe.ssh=Qe.ssh||{};xl.privateKeyToPutty=function(e,t,r){r=r||"",t=t||"";var a="ssh-rsa",n=t===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+a+`\r
36
+ `;s+="Encryption: "+n+`\r
37
+ `,s+="Comment: "+r+`\r
38
+ `;var i=Qe.util.createBuffer();rr(i,a),Jt(i,e.e),Jt(i,e.n);var o=Qe.util.encode64(i.bytes(),64),c=Math.floor(o.length/66)+1;s+="Public-Lines: "+c+`\r
39
+ `,s+=o;var l=Qe.util.createBuffer();Jt(l,e.d),Jt(l,e.p),Jt(l,e.q),Jt(l,e.qInv);var u;if(!t)u=Qe.util.encode64(l.bytes(),64);else{var p=l.length()+16-1;p-=p%16;var d=yl(l.bytes());d.truncate(d.length()-p+l.length()),l.putBuffer(d);var x=Qe.util.createBuffer();x.putBuffer(yl("\0\0\0\0",t)),x.putBuffer(yl("\0\0\0",t));var h=Qe.aes.createEncryptionCipher(x.truncate(8),"CBC");h.start(Qe.util.createBuffer().fillWithByte(0,16)),h.update(l.copy()),h.finish();var y=h.output;y.truncate(16),u=Qe.util.encode64(y.bytes(),64)}c=Math.floor(u.length/66)+1,s+=`\r
40
+ Private-Lines: `+c+`\r
41
+ `,s+=u;var b=yl("putty-private-key-file-mac-key",t),C=Qe.util.createBuffer();rr(C,a),rr(C,n),rr(C,r),C.putInt32(i.length()),C.putBuffer(i),C.putInt32(l.length()),C.putBuffer(l);var I=Qe.hmac.create();return I.start("sha1",b),I.update(C.bytes()),s+=`\r
42
+ Private-MAC: `+I.digest().toHex()+`\r
43
+ `,s},xl.publicKeyToOpenSSH=function(e,t){var r="ssh-rsa";t=t||"";var a=Qe.util.createBuffer();return rr(a,r),Jt(a,e.e),Jt(a,e.n),r+" "+Qe.util.encode64(a.bytes())+" "+t},xl.privateKeyToOpenSSH=function(e,t){return t?Qe.pki.encryptRsaPrivateKey(e,t,{legacy:!0,algorithm:"aes128"}):Qe.pki.privateKeyToPem(e)},xl.getPublicKeyFingerprint=function(e,t){t=t||{};var r=t.md||Qe.md.md5.create(),a="ssh-rsa",n=Qe.util.createBuffer();rr(n,a),Jt(n,e.e),Jt(n,e.n),r.start(),r.update(n.getBytes());var s=r.digest();if(t.encoding==="hex"){var i=s.toHex();return t.delimiter?i.match(/.{2}/g).join(t.delimiter):i}else{if(t.encoding==="binary")return s.getBytes();if(t.encoding)throw new Error('Unknown encoding "'+t.encoding+'".')}return s};function Jt(e,t){var r=t.toString(16);r[0]>="8"&&(r="00"+r);var a=Qe.util.hexToBytes(r);e.putInt32(a.length),e.putBytes(a)}function rr(e,t){e.putInt32(t.length),e.putString(t)}function yl(){for(var e=Qe.md.sha1.create(),t=arguments.length,r=0;r<t;++r)e.update(arguments[r]);return e.digest()}const _t=()=>rh(),CT=({configurationsClient:e})=>async t=>{try{return await e.Faucet.requestTestnetTokens(void 0,t)}catch(r){throw ee(r)?J(r):r}};var Y0="10.0.1";const J0=({client:e})=>async({xRequestId:t,...r})=>{try{return ae(await e.PINAuthentication.getUserToken({...r},t))}catch(a){throw ee(a)?J(a):a}},Ke=async(e,t,r=!1)=>{let a;return e.storage&&(a=await e.storage.get("userToken:"+t)),(!a||a.expirationTime<=Date.now()||r)&&a?.userToken===void 0?await TT(e,t):a.userToken};async function TT(e,t){const r=await J0(e)({userId:t});if(!r.data?.userToken)throw new Error("Could not fetch user token");return e.storage&&await e.storage.set("userToken:"+t,{...r.data,expirationTime:Date.now()+50*60*1e3}),r.data.userToken}const ST=e=>async({userToken:t,userId:r,idempotencyKey:a,xRequestId:n})=>{try{return ae(await e.client.PINAuthentication.createUserPinChallenge(t??await Ke(e,r),{idempotencyKey:a??_t()},n))}catch(s){throw ee(s)?J(s):s}},wT=e=>async({userToken:t,userId:r,idempotencyKey:a,accountType:n="EOA",xRequestId:s,...i})=>{try{return ae(await e.client.Users.createUserWithPinChallenge(t??await Ke(e,r),{idempotencyKey:a??_t(),accountType:n,...i},s))}catch(o){throw ee(o)?J(o):o}},AT=e=>async({userToken:t,userId:r,idempotencyKey:a,xRequestId:n})=>{try{return ae(await e.client.PINAuthentication.createUserPinRestoreChallenge(t??await Ke(e,r),{idempotencyKey:a??_t()},n))}catch(s){throw ee(s)?J(s):s}},IT=e=>async({userToken:t,userId:r,idempotencyKey:a})=>{try{return ae(await e.client.PINAuthentication.updateUserPinChallenge(t??await Ke(e,r),{idempotencyKey:a??_t()}))}catch(n){throw ee(n)?J(n):n}},BT=e=>async({userToken:t,userId:r,xRequestId:a,...n})=>{try{return ae(await e.client.Signing.signUserMessage(t??await Ke(e,r),n,a))}catch(s){throw ee(s)?J(s):s}},kT=e=>async({userToken:t,userId:r,xRequestId:a,...n})=>{try{return ae(await e.client.Signing.signUserTransaction(t??await Ke(e,r),{...n},a))}catch(s){throw ee(s)?J(s):s}},RT=e=>async({userToken:t,userId:r,xRequestId:a,...n})=>{try{return ae(await e.client.Signing.signUserTypedData(t??await Ke(e,r),n,a))}catch(s){throw ee(s)?J(s):s}},_T=({client:e})=>async({id:t})=>{try{return ae(await e.TokenLookup.getTokenId(t))}catch(r){throw ee(r)?J(r):r}},UT=e=>async({userToken:t,userId:r,id:a,idempotencyKey:n,xRequestId:s})=>{try{return ae(await e.client.Transactions.createUserTransactionAccelerateChallenge(t??await Ke(e,r),a,{idempotencyKey:n??_t()},s))}catch(i){throw ee(i)?J(i):i}},NT=e=>async({userToken:t,userId:r,id:a,idempotencyKey:n,xRequestId:s})=>{try{return ae(await e.client.Transactions.createUserTransactionCancelChallenge(t??await Ke(e,r),a,{idempotencyKey:n??_t()},s))}catch(i){throw ee(i)?J(i):i}},LT=e=>async({userToken:t,userId:r,idempotencyKey:a,fee:n,xRequestId:s,...i})=>{try{return ae(await e.client.Transactions.createUserTransactionTransferChallenge(t??await Ke(e,r),{idempotencyKey:a??_t(),...n.config,...i},s))}catch(o){throw ee(o)?J(o):o}},PT=e=>async({userToken:t,userId:r,idempotencyKey:a,fee:n,xRequestId:s,...i})=>{try{return ae(await e.client.Transactions.createUserTransactionContractExecutionChallenge(t??await Ke(e,r),{idempotencyKey:a??_t(),...n.config,...i},s))}catch(o){throw ee(o)?J(o):o}},OT=e=>async({userId:t,userToken:r,source:a,xRequestId:n,...s})=>{try{return ae(await e.client.Transactions.createTransactionEstimateFee(r??await Ke(e,t),{...s,...a},n))}catch(i){throw ee(i)?J(i):i}},DT=e=>async({userToken:t,userId:r,amount:a,xRequestId:n,...s})=>{try{return ae(await e.client.Transactions.createTransferEstimateFee(t??await Ke(e,r),{amounts:a,...s},n))}catch(i){throw ee(i)?J(i):i}},FT=e=>async({id:t,userToken:r,userId:a,txType:n,xRequestId:s})=>{try{return ae(await e.client.Transactions.getTransaction(t,r??await Ke(e,a),n,s))}catch(i){throw ee(i)?J(i):i}},VT=({client:e})=>async({blockchain:t,address:r,walletId:a,xRequestId:n}={})=>{try{return ae(await e.Transactions.getLowestNonceTransaction(t,r,a,{headers:n?{"X-Request-Id":n}:void 0}))}catch(s){throw ee(s)?J(s):s}},MT=e=>async({userToken:t,blockchain:r,destinationAddress:a,includeAll:n,operation:s,state:i,txHash:o,txType:c,userId:l,walletIds:u,from:p,pageAfter:d,pageBefore:x,pageSize:h,to:y,order:b,xRequestId:C})=>{try{return ae(await e.client.Transactions.listTransactions(t??await Ke(e,l),r,a,n,s,i,o,c,l,u?.join(","),p,y,x,d,h,b,C))}catch(I){throw ee(I)?J(I):I}},qT=({client:e})=>async t=>{try{return ae(await e.Transactions.createValidateAddress(t))}catch(r){throw ee(r)?J(r):r}},jT=({client:e})=>async({...t})=>{try{return ae(await e.PINAuthentication.createUser({...t}))}catch(r){throw ee(r)?J(r):r}},KT=e=>async({userToken:t,idempotencyKey:r,userId:a,xRequestId:n,...s})=>{try{return ae(await e.client.SocialEmailAuthentication.resendOTP(t??await Ke(e,a),{idempotencyKey:r??_t(),...s},n))}catch(i){throw ee(i)?J(i):i}},zT=({client:e})=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return ae(await e.SocialEmailAuthentication.createDeviceTokenEmailLogin({idempotencyKey:t??_t(),...a},r))}catch(n){throw ee(n)?J(n):n}},HT=({client:e})=>async({userId:t,xRequestId:r})=>{try{return ae(await e.Users.getUser(t,r))}catch(a){throw ee(a)?J(a):a}},$T=({client:e})=>async({userToken:t,xRequestId:r})=>{try{return ae(await e.Users.getUserByToken(t,r))}catch(a){throw ee(a)?J(a):a}},GT=({client:e})=>async({userToken:t,challengeId:r,xRequestId:a})=>{try{return ae(await e.Users.getUserChallenge(t,r,a))}catch(n){throw ee(n)?J(n):n}},WT=({client:e})=>async({pinStatus:t,securityQuestionStatus:r,from:a,to:n,pageBefore:s,pageAfter:i,pageSize:o,order:c,xRequestId:l}={})=>{try{return ae(await e.Users.listUsers(t,r,a,n,s,i,o,c,l))}catch(u){throw ee(u)?J(u):u}},XT=({client:e})=>async({userToken:t,challengeStatus:r,xRequestId:a})=>{try{return ae(await e.Users.listUserChallenges(t,r,a))}catch(n){throw ee(n)?J(n):n}},QT=e=>async({userId:t,userToken:r,deviceId:a,idempotencyKey:n,refreshToken:s,xRequestId:i})=>{try{return ae(await e.client.SocialEmailAuthentication.refreshUserToken(r??await Ke(e,t),{idempotencyKey:n??_t(),refreshToken:s,deviceId:a},i))}catch(o){throw ee(o)?J(o):o}},YT=({client:e})=>async({idempotencyKey:t,xRequestId:r,...a})=>{try{return ae(await e.SocialEmailAuthentication.createDeviceTokenSocialLogin({idempotencyKey:t??_t(),...a},r))}catch(n){throw ee(n)?J(n):n}},JT=e=>async({userToken:t,userId:r,idempotencyKey:a,accountType:n="EOA",xRequestId:s,...i})=>{try{return ae(await e.client.Wallets.createUserWallet(t??await Ke(e,r),{idempotencyKey:a??_t(),accountType:n,...i},s))}catch(o){throw ee(o)?J(o):o}},ZT=e=>async({id:t,userToken:r,userId:a,xRequestId:n})=>{try{return ae(await e.client.Wallets.getWallet(t,r??await Ke(e,a),n))}catch(s){throw ee(s)?J(s):s}},e2=e=>async({walletId:t,userToken:r,userId:a,includeAll:n,name:s,pageAfter:i,pageBefore:o,pageSize:c,tokenAddresses:l,standard:u,xRequestId:p})=>{try{return ae(await e.client.Wallets.listWalletNfts(r??await Ke(e,a),t,n,s,l?.join(","),u,o,i,c,p))}catch(d){throw ee(d)?J(d):d}},t2=e=>async({walletId:t,userToken:r,userId:a,includeAll:n,name:s,pageAfter:i,pageBefore:o,pageSize:c,tokenAddresses:l,standard:u,xRequestId:p})=>{try{return ae(await e.client.Wallets.listWalletBalance(r??await Ke(e,a),t,n,s,l?.join(","),u,o,i,c,p))}catch(d){throw ee(d)?J(d):d}},a2=e=>async({userId:t,userToken:r,address:a,blockchain:n,from:s,pageAfter:i,pageBefore:o,pageSize:c,to:l,walletSetId:u,refId:p,scaCore:d,order:x,xRequestId:h})=>{try{return ae(await e.client.Wallets.listWallets(r??await Ke(e,t),a,n,d,u,p,s,l,o,i,c,x,h))}catch(y){throw ee(y)?J(y):y}},r2=e=>async({id:t,name:r,refId:a,userToken:n,userId:s})=>{try{return ae(await e.client.Wallets.updateWallet(t,n??await Ke(e,s),{name:r,refId:a}))}catch(i){throw ee(i)?J(i):i}};var n2=Object.defineProperty,i2=(e,t,r)=>t in e?n2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,s2=(e,t,r)=>i2(e,typeof t!="symbol"?t+"":t,r);const mp="https://api.circle.com";class Z0{constructor(t){s2(this,"params");const{apiKey:r,baseUrl:a,storage:n,userAgent:s,headers:i}=t;this.params={client:new Ey(a??mp,{apiKey:r,version:Y0,userAgent:s},i),configurationsClient:new $x(a??mp,{apiKey:r,version:Y0,userAgent:s},i),storage:n??new P1}}createUserPin(t){return ST(this.params)(t)}createUserPinWithWallets(t){return wT(this.params)(t)}updateUserPin(t){return IT(this.params)(t)}restoreUserPin(t){return AT(this.params)(t)}createDeviceTokenForEmailLogin(t){return zT(this.params)(t)}createDeviceTokenForSocialLogin(t){return YT(this.params)(t)}refreshUserToken(t){return QT(this.params)(t)}resendOTP(t){return KT(this.params)(t)}createWallet(t){return JT(this.params)(t)}listWallets(t){return a2(this.params)(t)}getWallet(t){return ZT(this.params)(t)}updateWallet(t){return r2(this.params)(t)}getWalletTokenBalance(t){return t2(this.params)(t)}getWalletNFTBalance(t){return e2(this.params)(t)}accelerateTransaction(t){return UT(this.params)(t)}createTransaction(t){return LT(this.params)(t)}cancelTransaction(t){return NT(this.params)(t)}getTransaction(t){return FT(this.params)(t)}listTransactions(t){return MT(this.params)(t)}estimateContractExecutionFee(t){return OT(this.params)(t)}createUserTransactionContractExecutionChallenge(t){return PT(this.params)(t)}estimateTransferFee(t){return DT(this.params)(t)}validateAddress(t){return qT(this.params)(t)}getLowestNonceTransaction(t){return VT(this.params)(t)}createUser(t){return jT(this.params)(t)}getUser(t){return HT(this.params)(t)}getUserStatus(t){return $T(this.params)(t)}listUsers(t){return WT(this.params)(t)}createUserToken(t){return J0(this.params)(t)}getUserChallenge(t){return GT(this.params)(t)}listUserChallenges(t){return XT(this.params)(t)}getToken(t){return _T(this.params)(t)}signMessage(t){return BT(this.params)(t)}signTransaction(t){return kT(this.params)(t)}signTypedData(t){return RT(this.params)(t)}requestTestnetTokens(t){return CT(this.params)(t)}createMonitoredTokens(t){return E1(this.params)(t)}updateMonitoredTokens(t){return S1(this.params)(t)}listMonitoredTokens(t){return T1(this.params)(t)}deleteMonitoredTokens(t){return C1(this.params)(t)}updateMonitoredTokensScope(t){return w1(this.params)(t)}createSubscription(t){return A1(this.params)(t)}deleteSubscription(t){return I1(this.params)(t)}getSubscription(t){return B1(this.params)(t)}getNotificationSignature(t){return k1(this.params)(t)}listSubscriptions(){return R1(this.params)()}updateSubscription(t){return _1(this.params)(t)}}function o2(e){return new Z0(e)}export{Ir as BadGatewayError,br as BadRequestError,xy as Blockchain,Z0 as CircleUserControlledWalletsClient,Ur as ConnectionAbortedError,Rr as ConnectionRefusedError,Or as ConnectionResetError,_r as ConnectionTimeoutError,Nr as DNSNotFoundError,Lr as DNSTimeoutError,Su as Error110700,wu as Error110701,Au as Error110702,Iu as Error110703,Fr as Error155101,Vr as Error155102,Mr as Error155103,qr as Error155104,jr as Error155105,Kr as Error155106,zr as Error155107,Hr as Error155108,$r as Error155109,Gr as Error155110,Wr as Error155111,Xr as Error155112,Qr as Error155113,Yr as Error155114,Jr as Error155115,Zr as Error155116,en as Error155117,tn as Error155118,an as Error155119,rn as Error155120,nn as Error155121,sn as Error155122,on as Error155123,cn as Error155124,ln as Error155130,un as Error155131,pn as Error155132,dn as Error155133,fn as Error155134,hn as Error155135,mn as Error155136,vn as Error155137,gn as Error155138,xn as Error155139,yn as Error155140,bn as Error155141,En as Error155142,Cn as Error155143,Tn as Error155144,Sn as Error155145,wn as Error155146,An as Error155150,In as Error155151,Bn as Error155152,kn as Error155154,Rn as Error155155,_n as Error155156,Un as Error155157,Nn as Error155158,Ln as Error155159,Pn as Error155160,On as Error155201,Dn as Error155202,Fn as Error155203,Vn as Error155204,Mn as Error155205,qn as Error155206,jn as Error155207,Kn as Error155208,zn as Error155209,Hn as Error155210,$n as Error155211,Gn as Error155215,Wn as Error155218,Xn as Error155219,Qn as Error155220,Yn as Error155221,Jn as Error155222,Zn as Error155223,ei as Error155224,ti as Error155225,ai as Error155226,ri as Error155227,ni as Error155228,ii as Error155229,si as Error155230,oi as Error155231,ci as Error155232,li as Error155233,ui as Error155234,pi as Error155235,di as Error155236,fi as Error155237,hi as Error155238,mi as Error155239,vi as Error155240,gi as Error155241,xi as Error155242,yi as Error155243,bi as Error155244,Ei as Error155245,Ci as Error155247,Ti as Error155254,Si as Error155257,wi as Error155258,Ai as Error155262,Ii as Error155264,Bi as Error155501,ki as Error155502,Ri as Error155503,_i as Error155504,Ui as Error155505,Ni as Error155506,Li as Error155507,Pi as Error155508,Oi as Error155509,Di as Error155510,Fi as Error155511,Vi as Error155512,Mi as Error155514,qi as Error155515,ji as Error155516,Ki as Error155517,zi as Error155601,Hi as Error155701,$i as Error155702,Gi as Error155703,Wi as Error155704,Xi as Error155705,Qi as Error155706,Yi as Error155707,Ji as Error155708,Zi as Error155709,es as Error155710,ts as Error155711,as as Error155712,rs as Error155713,ns as Error155714,is as Error155715,ss as Error155716,os as Error155717,cs as Error155718,ls as Error155719,us as Error155720,ps as Error155721,ds as Error155801,fs as Error155802,hs as Error155803,ms as Error155804,vs as Error155805,gs as Error155806,xs as Error155807,ys as Error155808,bs as Error156001,Es as Error156002,Cs as Error156003,Ts as Error156004,Ss as Error156005,ws as Error156006,As as Error156007,Is as Error156008,Bs as Error156009,ks as Error156010,Rs as Error156011,_s as Error156012,Us as Error156013,Ns as Error156014,Ls as Error156015,Ps as Error156016,Os as Error156017,Ds as Error156018,Fs as Error156019,Vs as Error156020,Ms as Error156021,qs as Error156023,js as Error156024,Ks as Error156025,zs as Error156026,Hs as Error156027,$s as Error156030,Gs as Error156031,Ws as Error156032,Xs as Error175001,Qs as Error175002,Ys as Error175003,Js as Error175004,Zs as Error175005,eo as Error175006,to as Error175007,ao as Error175008,ro as Error175009,no as Error175010,io as Error175011,so as Error175012,oo as Error175013,co as Error175201,lo as Error175202,uo as Error175203,po as Error175204,fo as Error175205,ho as Error175301,mo as Error175302,vo as Error175303,go as Error175401,xo as Error175402,yo as Error175403,bo as Error175404,Eo as Error175405,Co as Error175406,To as Error175407,So as Error175408,wo as Error175409,Ao as Error175410,Io as Error177001,Bo as Error177002,ko as Error177003,Ro as Error177004,_o as Error177005,Uo as Error177006,No as Error177007,Lo as Error177008,Po as Error177009,Oo as Error177010,Do as Error177011,Fo as Error177012,Vo as Error177013,Mo as Error177014,qo as Error177015,jo as Error177016,Ko as Error177017,zo as Error177018,Ho as Error177019,$o as Error177020,Go as Error177021,Wo as Error177022,Xo as Error177023,Qo as Error177024,Yo as Error177025,Jo as Error177026,Zo as Error177301,ec as Error177302,tc as Error177303,ac as Error177304,rc as Error177305,nc as Error177601,ic as Error177602,sc as Error177603,oc as Error177604,cc as Error177605,lc as Error177606,uc as Error177607,pc as Error177901,Cr as ForbiddenError,kr as GatewayTimeoutError,Dr as HostUnreachableError,yr as HttpError,Nt as HttpRequestError,E as HttpResponseError,wr as InternalServerError,Pr as NetworkUnreachableError,Tr as NotFoundError,Ar as NotImplementedError,Sr as RatelimitError,Br as ServiceUnavailableError,Er as UnauthorizedError,mp as defaultBaseUrl,J as fromAxiosError,o2 as initiateUserControlledWalletsClient};