nfets 0.0.18 → 0.0.19

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.
@@ -1,17 +1,17 @@
1
1
  "use strict";var noe=Object.create;var wx=Object.defineProperty;var ioe=Object.getOwnPropertyDescriptor;var soe=Object.getOwnPropertyNames;var aoe=Object.getPrototypeOf,ooe=Object.prototype.hasOwnProperty;var o=(r,e)=>wx(r,"name",{value:e,configurable:!0});var Ms=(r,e)=>()=>(r&&(e=r(r=0)),e);var Z=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),bN=(r,e)=>{for(var t in e)wx(r,t,{get:e[t],enumerable:!0})},X5=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of soe(e))!ooe.call(r,i)&&i!==t&&wx(r,i,{get:()=>e[i],enumerable:!(n=ioe(e,i))||n.enumerable});return r};var Dr=(r,e,t)=>(t=r!=null?noe(aoe(r)):{},X5(e||!r||!r.__esModule?wx(t,"default",{value:r,enumerable:!0}):t,r)),uoe=r=>X5(wx({},"__esModule",{value:!0}),r);var pr=Z((yNe,lU)=>{"use strict";lU.exports={options:{usePureJavaScript:!1}}});var hU=Z((SNe,pU)=>{"use strict";var mP={};pU.exports=mP;var fU={};mP.encode=function(r,e,t){if(typeof e!="string")throw new TypeError('"alphabet" must be a string.');if(t!==void 0&&typeof t!="number")throw new TypeError('"maxline" must be a number.');var n="";if(!(r instanceof Uint8Array))n=nue(r,e);else{var i=0,s=e.length,a=e.charAt(0),u=[0];for(i=0;i<r.length;++i){for(var c=0,l=r[i];c<u.length;++c)l+=u[c]<<8,u[c]=l%s,l=l/s|0;for(;l>0;)u.push(l%s),l=l/s|0}for(i=0;r[i]===0&&i<r.length-1;++i)n+=a;for(i=u.length-1;i>=0;--i)n+=e[u[i]]}if(t){var p=new RegExp(".{1,"+t+"}","g");n=n.match(p).join(`\r
2
2
  `)}return n};mP.decode=function(r,e){if(typeof r!="string")throw new TypeError('"input" must be a string.');if(typeof e!="string")throw new TypeError('"alphabet" must be a string.');var t=fU[e];if(!t){t=fU[e]=[];for(var n=0;n<e.length;++n)t[e.charCodeAt(n)]=n}r=r.replace(/\s/g,"");for(var i=e.length,s=e.charAt(0),a=[0],n=0;n<r.length;n++){var u=t[r.charCodeAt(n)];if(u===void 0)return;for(var c=0,l=u;c<a.length;++c)l+=a[c]*i,a[c]=l&255,l>>=8;for(;l>0;)a.push(l&255),l>>=8}for(var p=0;r[p]===s&&p<r.length-1;++p)a.push(0);return typeof Buffer<"u"?Buffer.from(a.reverse()):new Uint8Array(a.reverse())};function nue(r,e){var t=0,n=e.length,i=e.charAt(0),s=[0];for(t=0;t<r.length();++t){for(var a=0,u=r.at(t);a<s.length;++a)u+=s[a]<<8,s[a]=u%n,u=u/n|0;for(;u>0;)s.push(u%n),u=u/n|0}var c="";for(t=0;r.at(t)===0&&t<r.length()-1;++t)c+=i;for(t=s.length-1;t>=0;--t)c+=e[s[t]];return c}o(nue,"_encodeWithByteBuffer")});var kr=Z((bNe,vU)=>{"use strict";var dU=pr(),mU=hU(),ae=vU.exports=dU.util=dU.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){ae.nextTick=process.nextTick,typeof setImmediate=="function"?ae.setImmediate=setImmediate:ae.setImmediate=ae.nextTick;return}if(typeof setImmediate=="function"){ae.setImmediate=function(){return setImmediate.apply(void 0,arguments)},ae.nextTick=function(u){return setImmediate(u)};return}if(ae.setImmediate=function(u){setTimeout(u,0)},typeof window<"u"&&typeof window.postMessage=="function"){let u=function(c){if(c.source===window&&c.data===r){c.stopPropagation();var l=e.slice();e.length=0,l.forEach(function(p){p()})}};var a=u;o(u,"handler");var r="forge.setImmediate",e=[];ae.setImmediate=function(c){e.push(c),e.length===1&&window.postMessage(r,"*")},window.addEventListener("message",u,!0)}if(typeof MutationObserver<"u"){var t=Date.now(),n=!0,i=document.createElement("div"),e=[];new MutationObserver(function(){var c=e.slice();e.length=0,c.forEach(function(l){l()})}).observe(i,{attributes:!0});var s=ae.setImmediate;ae.setImmediate=function(c){Date.now()-t>15?(t=Date.now(),s(c)):(e.push(c),e.length===1&&i.setAttribute("a",n=!n))}}ae.nextTick=ae.setImmediate})();ae.isNodejs=typeof process<"u"&&process.versions&&process.versions.node;ae.globalScope=(function(){return ae.isNodejs?global:typeof self>"u"?window:self})();ae.isArray=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};ae.isArrayBuffer=function(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer};ae.isArrayBufferView=function(r){return r&&ae.isArrayBuffer(r.buffer)&&r.byteLength!==void 0};function Ax(r){if(!(r===8||r===16||r===24||r===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+r)}o(Ax,"_checkBitsParam");ae.ByteBuffer=gP;function gP(r){if(this.data="",this.read=0,typeof r=="string")this.data=r;else if(ae.isArrayBuffer(r)||ae.isArrayBufferView(r))if(typeof Buffer<"u"&&r instanceof Buffer)this.data=r.toString("binary");else{var e=new Uint8Array(r);try{this.data=String.fromCharCode.apply(null,e)}catch{for(var t=0;t<e.length;++t)this.putByte(e[t])}}else(r instanceof gP||typeof r=="object"&&typeof r.data=="string"&&typeof r.read=="number")&&(this.data=r.data,this.read=r.read);this._constructedStringLength=0}o(gP,"ByteStringBuffer");ae.ByteStringBuffer=gP;var iue=4096;ae.ByteStringBuffer.prototype._optimizeConstructedString=function(r){this._constructedStringLength+=r,this._constructedStringLength>iue&&(this.data.substr(0,1),this._constructedStringLength=0)};ae.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};ae.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};ae.ByteStringBuffer.prototype.putByte=function(r){return this.putBytes(String.fromCharCode(r))};ae.ByteStringBuffer.prototype.fillWithByte=function(r,e){r=String.fromCharCode(r);for(var t=this.data;e>0;)e&1&&(t+=r),e>>>=1,e>0&&(r+=r);return this.data=t,this._optimizeConstructedString(e),this};ae.ByteStringBuffer.prototype.putBytes=function(r){return this.data+=r,this._optimizeConstructedString(r.length),this};ae.ByteStringBuffer.prototype.putString=function(r){return this.putBytes(ae.encodeUtf8(r))};ae.ByteStringBuffer.prototype.putInt16=function(r){return this.putBytes(String.fromCharCode(r>>8&255)+String.fromCharCode(r&255))};ae.ByteStringBuffer.prototype.putInt24=function(r){return this.putBytes(String.fromCharCode(r>>16&255)+String.fromCharCode(r>>8&255)+String.fromCharCode(r&255))};ae.ByteStringBuffer.prototype.putInt32=function(r){return this.putBytes(String.fromCharCode(r>>24&255)+String.fromCharCode(r>>16&255)+String.fromCharCode(r>>8&255)+String.fromCharCode(r&255))};ae.ByteStringBuffer.prototype.putInt16Le=function(r){return this.putBytes(String.fromCharCode(r&255)+String.fromCharCode(r>>8&255))};ae.ByteStringBuffer.prototype.putInt24Le=function(r){return this.putBytes(String.fromCharCode(r&255)+String.fromCharCode(r>>8&255)+String.fromCharCode(r>>16&255))};ae.ByteStringBuffer.prototype.putInt32Le=function(r){return this.putBytes(String.fromCharCode(r&255)+String.fromCharCode(r>>8&255)+String.fromCharCode(r>>16&255)+String.fromCharCode(r>>24&255))};ae.ByteStringBuffer.prototype.putInt=function(r,e){Ax(e);var t="";do e-=8,t+=String.fromCharCode(r>>e&255);while(e>0);return this.putBytes(t)};ae.ByteStringBuffer.prototype.putSignedInt=function(r,e){return r<0&&(r+=2<<e-1),this.putInt(r,e)};ae.ByteStringBuffer.prototype.putBuffer=function(r){return this.putBytes(r.getBytes())};ae.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)};ae.ByteStringBuffer.prototype.getInt16=function(){var r=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,r};ae.ByteStringBuffer.prototype.getInt24=function(){var r=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,r};ae.ByteStringBuffer.prototype.getInt32=function(){var r=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,r};ae.ByteStringBuffer.prototype.getInt16Le=function(){var r=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,r};ae.ByteStringBuffer.prototype.getInt24Le=function(){var r=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,r};ae.ByteStringBuffer.prototype.getInt32Le=function(){var r=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,r};ae.ByteStringBuffer.prototype.getInt=function(r){Ax(r);var e=0;do e=(e<<8)+this.data.charCodeAt(this.read++),r-=8;while(r>0);return e};ae.ByteStringBuffer.prototype.getSignedInt=function(r){var e=this.getInt(r),t=2<<r-2;return e>=t&&(e-=t<<1),e};ae.ByteStringBuffer.prototype.getBytes=function(r){var e;return r?(r=Math.min(this.length(),r),e=this.data.slice(this.read,this.read+r),this.read+=r):r===0?e="":(e=this.read===0?this.data:this.data.slice(this.read),this.clear()),e};ae.ByteStringBuffer.prototype.bytes=function(r){return typeof r>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+r)};ae.ByteStringBuffer.prototype.at=function(r){return this.data.charCodeAt(this.read+r)};ae.ByteStringBuffer.prototype.setAt=function(r,e){return this.data=this.data.substr(0,this.read+r)+String.fromCharCode(e)+this.data.substr(this.read+r+1),this};ae.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};ae.ByteStringBuffer.prototype.copy=function(){var r=ae.createBuffer(this.data);return r.read=this.read,r};ae.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this};ae.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this};ae.ByteStringBuffer.prototype.truncate=function(r){var e=Math.max(0,this.length()-r);return this.data=this.data.substr(this.read,e),this.read=0,this};ae.ByteStringBuffer.prototype.toHex=function(){for(var r="",e=this.read;e<this.data.length;++e){var t=this.data.charCodeAt(e);t<16&&(r+="0"),r+=t.toString(16)}return r};ae.ByteStringBuffer.prototype.toString=function(){return ae.decodeUtf8(this.bytes())};function sue(r,e){e=e||{},this.read=e.readOffset||0,this.growSize=e.growSize||1024;var t=ae.isArrayBuffer(r),n=ae.isArrayBufferView(r);if(t||n){t?this.data=new DataView(r):this.data=new DataView(r.buffer,r.byteOffset,r.byteLength),this.write="writeOffset"in e?e.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,r!=null&&this.putBytes(r),"writeOffset"in e&&(this.write=e.writeOffset)}o(sue,"DataBuffer");ae.DataBuffer=sue;ae.DataBuffer.prototype.length=function(){return this.write-this.read};ae.DataBuffer.prototype.isEmpty=function(){return this.length()<=0};ae.DataBuffer.prototype.accommodate=function(r,e){if(this.length()>=r)return this;e=Math.max(e||this.growSize,r);var t=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+e);return n.set(t),this.data=new DataView(n.buffer),this};ae.DataBuffer.prototype.putByte=function(r){return this.accommodate(1),this.data.setUint8(this.write++,r),this};ae.DataBuffer.prototype.fillWithByte=function(r,e){this.accommodate(e);for(var t=0;t<e;++t)this.data.setUint8(r);return this};ae.DataBuffer.prototype.putBytes=function(r,e){if(ae.isArrayBufferView(r)){var t=new Uint8Array(r.buffer,r.byteOffset,r.byteLength),n=t.byteLength-t.byteOffset;this.accommodate(n);var i=new Uint8Array(this.data.buffer,this.write);return i.set(t),this.write+=n,this}if(ae.isArrayBuffer(r)){var t=new Uint8Array(r);this.accommodate(t.byteLength);var i=new Uint8Array(this.data.buffer);return i.set(t,this.write),this.write+=t.byteLength,this}if(r instanceof ae.DataBuffer||typeof r=="object"&&typeof r.read=="number"&&typeof r.write=="number"&&ae.isArrayBufferView(r.data)){var t=new Uint8Array(r.data.byteLength,r.read,r.length());this.accommodate(t.byteLength);var i=new Uint8Array(r.data.byteLength,this.write);return i.set(t),this.write+=t.byteLength,this}if(r instanceof ae.ByteStringBuffer&&(r=r.data,e="binary"),e=e||"binary",typeof r=="string"){var s;if(e==="hex")return this.accommodate(Math.ceil(r.length/2)),s=new Uint8Array(this.data.buffer,this.write),this.write+=ae.binary.hex.decode(r,s,this.write),this;if(e==="base64")return this.accommodate(Math.ceil(r.length/4)*3),s=new Uint8Array(this.data.buffer,this.write),this.write+=ae.binary.base64.decode(r,s,this.write),this;if(e==="utf8"&&(r=ae.encodeUtf8(r),e="binary"),e==="binary"||e==="raw")return this.accommodate(r.length),s=new Uint8Array(this.data.buffer,this.write),this.write+=ae.binary.raw.decode(s),this;if(e==="utf16")return this.accommodate(r.length*2),s=new Uint16Array(this.data.buffer,this.write),this.write+=ae.text.utf16.encode(s),this;throw new Error("Invalid encoding: "+e)}throw Error("Invalid parameter: "+r)};ae.DataBuffer.prototype.putBuffer=function(r){return this.putBytes(r),r.clear(),this};ae.DataBuffer.prototype.putString=function(r){return this.putBytes(r,"utf16")};ae.DataBuffer.prototype.putInt16=function(r){return this.accommodate(2),this.data.setInt16(this.write,r),this.write+=2,this};ae.DataBuffer.prototype.putInt24=function(r){return this.accommodate(3),this.data.setInt16(this.write,r>>8&65535),this.data.setInt8(this.write,r>>16&255),this.write+=3,this};ae.DataBuffer.prototype.putInt32=function(r){return this.accommodate(4),this.data.setInt32(this.write,r),this.write+=4,this};ae.DataBuffer.prototype.putInt16Le=function(r){return this.accommodate(2),this.data.setInt16(this.write,r,!0),this.write+=2,this};ae.DataBuffer.prototype.putInt24Le=function(r){return this.accommodate(3),this.data.setInt8(this.write,r>>16&255),this.data.setInt16(this.write,r>>8&65535,!0),this.write+=3,this};ae.DataBuffer.prototype.putInt32Le=function(r){return this.accommodate(4),this.data.setInt32(this.write,r,!0),this.write+=4,this};ae.DataBuffer.prototype.putInt=function(r,e){Ax(e),this.accommodate(e/8);do e-=8,this.data.setInt8(this.write++,r>>e&255);while(e>0);return this};ae.DataBuffer.prototype.putSignedInt=function(r,e){return Ax(e),this.accommodate(e/8),r<0&&(r+=2<<e-1),this.putInt(r,e)};ae.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)};ae.DataBuffer.prototype.getInt16=function(){var r=this.data.getInt16(this.read);return this.read+=2,r};ae.DataBuffer.prototype.getInt24=function(){var r=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,r};ae.DataBuffer.prototype.getInt32=function(){var r=this.data.getInt32(this.read);return this.read+=4,r};ae.DataBuffer.prototype.getInt16Le=function(){var r=this.data.getInt16(this.read,!0);return this.read+=2,r};ae.DataBuffer.prototype.getInt24Le=function(){var r=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,r};ae.DataBuffer.prototype.getInt32Le=function(){var r=this.data.getInt32(this.read,!0);return this.read+=4,r};ae.DataBuffer.prototype.getInt=function(r){Ax(r);var e=0;do e=(e<<8)+this.data.getInt8(this.read++),r-=8;while(r>0);return e};ae.DataBuffer.prototype.getSignedInt=function(r){var e=this.getInt(r),t=2<<r-2;return e>=t&&(e-=t<<1),e};ae.DataBuffer.prototype.getBytes=function(r){var e;return r?(r=Math.min(this.length(),r),e=this.data.slice(this.read,this.read+r),this.read+=r):r===0?e="":(e=this.read===0?this.data:this.data.slice(this.read),this.clear()),e};ae.DataBuffer.prototype.bytes=function(r){return typeof r>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+r)};ae.DataBuffer.prototype.at=function(r){return this.data.getUint8(this.read+r)};ae.DataBuffer.prototype.setAt=function(r,e){return this.data.setUint8(r,e),this};ae.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)};ae.DataBuffer.prototype.copy=function(){return new ae.DataBuffer(this)};ae.DataBuffer.prototype.compact=function(){if(this.read>0){var r=new Uint8Array(this.data.buffer,this.read),e=new Uint8Array(r.byteLength);e.set(r),this.data=new DataView(e),this.write-=this.read,this.read=0}return this};ae.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this};ae.DataBuffer.prototype.truncate=function(r){return this.write=Math.max(0,this.length()-r),this.read=Math.min(this.read,this.write),this};ae.DataBuffer.prototype.toHex=function(){for(var r="",e=this.read;e<this.data.byteLength;++e){var t=this.data.getUint8(e);t<16&&(r+="0"),r+=t.toString(16)}return r};ae.DataBuffer.prototype.toString=function(r){var e=new Uint8Array(this.data,this.read,this.length());if(r=r||"utf8",r==="binary"||r==="raw")return ae.binary.raw.encode(e);if(r==="hex")return ae.binary.hex.encode(e);if(r==="base64")return ae.binary.base64.encode(e);if(r==="utf8")return ae.text.utf8.decode(e);if(r==="utf16")return ae.text.utf16.decode(e);throw new Error("Invalid encoding: "+r)};ae.createBuffer=function(r,e){return e=e||"raw",r!==void 0&&e==="utf8"&&(r=ae.encodeUtf8(r)),new ae.ByteBuffer(r)};ae.fillString=function(r,e){for(var t="";e>0;)e&1&&(t+=r),e>>>=1,e>0&&(r+=r);return t};ae.xorBytes=function(r,e,t){for(var n="",i="",s="",a=0,u=0;t>0;--t,++a)i=r.charCodeAt(a)^e.charCodeAt(a),u>=10&&(n+=s,s="",u=0),s+=String.fromCharCode(i),++u;return n+=s,n};ae.hexToBytes=function(r){var e="",t=0;for(r.length&!0&&(t=1,e+=String.fromCharCode(parseInt(r[0],16)));t<r.length;t+=2)e+=String.fromCharCode(parseInt(r.substr(t,2),16));return e};ae.bytesToHex=function(r){return ae.createBuffer(r).toHex()};ae.int32ToBytes=function(r){return String.fromCharCode(r>>24&255)+String.fromCharCode(r>>16&255)+String.fromCharCode(r>>8&255)+String.fromCharCode(r&255)};var Rp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Dp=[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],gU="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";ae.encode64=function(r,e){for(var t="",n="",i,s,a,u=0;u<r.length;)i=r.charCodeAt(u++),s=r.charCodeAt(u++),a=r.charCodeAt(u++),t+=Rp.charAt(i>>2),t+=Rp.charAt((i&3)<<4|s>>4),isNaN(s)?t+="==":(t+=Rp.charAt((s&15)<<2|a>>6),t+=isNaN(a)?"=":Rp.charAt(a&63)),e&&t.length>e&&(n+=t.substr(0,e)+`\r
3
3
  `,t=t.substr(e));return n+=t,n};ae.decode64=function(r){r=r.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var e="",t,n,i,s,a=0;a<r.length;)t=Dp[r.charCodeAt(a++)-43],n=Dp[r.charCodeAt(a++)-43],i=Dp[r.charCodeAt(a++)-43],s=Dp[r.charCodeAt(a++)-43],e+=String.fromCharCode(t<<2|n>>4),i!==64&&(e+=String.fromCharCode((n&15)<<4|i>>2),s!==64&&(e+=String.fromCharCode((i&3)<<6|s)));return e};ae.encodeUtf8=function(r){return unescape(encodeURIComponent(r))};ae.decodeUtf8=function(r){return decodeURIComponent(escape(r))};ae.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:mU.encode,decode:mU.decode}};ae.binary.raw.encode=function(r){return String.fromCharCode.apply(null,r)};ae.binary.raw.decode=function(r,e,t){var n=e;n||(n=new Uint8Array(r.length)),t=t||0;for(var i=t,s=0;s<r.length;++s)n[i++]=r.charCodeAt(s);return e?i-t:n};ae.binary.hex.encode=ae.bytesToHex;ae.binary.hex.decode=function(r,e,t){var n=e;n||(n=new Uint8Array(Math.ceil(r.length/2))),t=t||0;var i=0,s=t;for(r.length&1&&(i=1,n[s++]=parseInt(r[0],16));i<r.length;i+=2)n[s++]=parseInt(r.substr(i,2),16);return e?s-t:n};ae.binary.base64.encode=function(r,e){for(var t="",n="",i,s,a,u=0;u<r.byteLength;)i=r[u++],s=r[u++],a=r[u++],t+=Rp.charAt(i>>2),t+=Rp.charAt((i&3)<<4|s>>4),isNaN(s)?t+="==":(t+=Rp.charAt((s&15)<<2|a>>6),t+=isNaN(a)?"=":Rp.charAt(a&63)),e&&t.length>e&&(n+=t.substr(0,e)+`\r
4
- `,t=t.substr(e));return n+=t,n};ae.binary.base64.decode=function(r,e,t){var n=e;n||(n=new Uint8Array(Math.ceil(r.length/4)*3)),r=r.replace(/[^A-Za-z0-9\+\/\=]/g,""),t=t||0;for(var i,s,a,u,c=0,l=t;c<r.length;)i=Dp[r.charCodeAt(c++)-43],s=Dp[r.charCodeAt(c++)-43],a=Dp[r.charCodeAt(c++)-43],u=Dp[r.charCodeAt(c++)-43],n[l++]=i<<2|s>>4,a!==64&&(n[l++]=(s&15)<<4|a>>2,u!==64&&(n[l++]=(a&3)<<6|u));return e?l-t:n.subarray(0,l)};ae.binary.base58.encode=function(r,e){return ae.binary.baseN.encode(r,gU,e)};ae.binary.base58.decode=function(r,e){return ae.binary.baseN.decode(r,gU,e)};ae.text={utf8:{},utf16:{}};ae.text.utf8.encode=function(r,e,t){r=ae.encodeUtf8(r);var n=e;n||(n=new Uint8Array(r.length)),t=t||0;for(var i=t,s=0;s<r.length;++s)n[i++]=r.charCodeAt(s);return e?i-t:n};ae.text.utf8.decode=function(r){return ae.decodeUtf8(String.fromCharCode.apply(null,r))};ae.text.utf16.encode=function(r,e,t){var n=e;n||(n=new Uint8Array(r.length*2));var i=new Uint16Array(n.buffer);t=t||0;for(var s=t,a=t,u=0;u<r.length;++u)i[a++]=r.charCodeAt(u),s+=2;return e?s-t:n};ae.text.utf16.decode=function(r){return String.fromCharCode.apply(null,new Uint16Array(r.buffer))};ae.deflate=function(r,e,t){if(e=ae.decode64(r.deflate(ae.encode64(e)).rval),t){var n=2,i=e.charCodeAt(1);i&32&&(n=6),e=e.substring(n,e.length-4)}return e};ae.inflate=function(r,e,t){var n=r.inflate(ae.encode64(e)).rval;return n===null?null:ae.decode64(n)};var vP=o(function(r,e,t){if(!r)throw new Error("WebStorage not available.");var n;if(t===null?n=r.removeItem(e):(t=ae.encode64(JSON.stringify(t)),n=r.setItem(e,t)),typeof n<"u"&&n.rval!==!0){var i=new Error(n.error.message);throw i.id=n.error.id,i.name=n.error.name,i}},"_setStorageObject"),yP=o(function(r,e){if(!r)throw new Error("WebStorage not available.");var t=r.getItem(e);if(r.init)if(t.rval===null){if(t.error){var n=new Error(t.error.message);throw n.id=t.error.id,n.name=t.error.name,n}t=null}else t=t.rval;return t!==null&&(t=JSON.parse(ae.decode64(t))),t},"_getStorageObject"),aue=o(function(r,e,t,n){var i=yP(r,e);i===null&&(i={}),i[t]=n,vP(r,e,i)},"_setItem"),oue=o(function(r,e,t){var n=yP(r,e);return n!==null&&(n=t in n?n[t]:null),n},"_getItem"),uue=o(function(r,e,t){var n=yP(r,e);if(n!==null&&t in n){delete n[t];var i=!0;for(var s in n){i=!1;break}i&&(n=null),vP(r,e,n)}},"_removeItem"),cue=o(function(r,e){vP(r,e,null)},"_clearItems"),_N=o(function(r,e,t){var n=null;typeof t>"u"&&(t=["web","flash"]);var i,s=!1,a=null;for(var u in t){i=t[u];try{if(i==="flash"||i==="both"){if(e[0]===null)throw new Error("Flash local storage not available.");n=r.apply(this,e),s=i==="flash"}(i==="web"||i==="both")&&(e[0]=localStorage,n=r.apply(this,e),s=!0)}catch(c){a=c}if(s)break}if(!s)throw a;return n},"_callStorageFunction");ae.setItem=function(r,e,t,n,i){_N(aue,arguments,i)};ae.getItem=function(r,e,t,n){return _N(oue,arguments,n)};ae.removeItem=function(r,e,t,n){_N(uue,arguments,n)};ae.clearItems=function(r,e,t){_N(cue,arguments,t)};ae.isEmpty=function(r){for(var e in r)if(r.hasOwnProperty(e))return!1;return!0};ae.format=function(r){for(var e=/%./g,t,n,i=0,s=[],a=0;t=e.exec(r);){n=r.substring(a,e.lastIndex-2),n.length>0&&s.push(n),a=e.lastIndex;var u=t[0][1];switch(u){case"s":case"o":i<arguments.length?s.push(arguments[i+++1]):s.push("<?>");break;case"%":s.push("%");break;default:s.push("<%"+u+"?>")}}return s.push(r.substring(a)),s.join("")};ae.formatNumber=function(r,e,t,n){var i=r,s=isNaN(e=Math.abs(e))?2:e,a=t===void 0?",":t,u=n===void 0?".":n,c=i<0?"-":"",l=parseInt(i=Math.abs(+i||0).toFixed(s),10)+"",p=l.length>3?l.length%3:0;return c+(p?l.substr(0,p)+u:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+u)+(s?a+Math.abs(i-l).toFixed(s).slice(2):"")};ae.formatSize=function(r){return r>=1073741824?r=ae.formatNumber(r/1073741824,2,".","")+" GiB":r>=1048576?r=ae.formatNumber(r/1048576,2,".","")+" MiB":r>=1024?r=ae.formatNumber(r/1024,0)+" KiB":r=ae.formatNumber(r,0)+" bytes",r};ae.bytesFromIP=function(r){return r.indexOf(".")!==-1?ae.bytesFromIPv4(r):r.indexOf(":")!==-1?ae.bytesFromIPv6(r):null};ae.bytesFromIPv4=function(r){if(r=r.split("."),r.length!==4)return null;for(var e=ae.createBuffer(),t=0;t<r.length;++t){var n=parseInt(r[t],10);if(isNaN(n))return null;e.putByte(n)}return e.getBytes()};ae.bytesFromIPv6=function(r){var e=0;r=r.split(":").filter(function(a){return a.length===0&&++e,!0});for(var t=(8-r.length+e)*2,n=ae.createBuffer(),i=0;i<8;++i){if(!r[i]||r[i].length===0){n.fillWithByte(0,t),t=0;continue}var s=ae.hexToBytes(r[i]);s.length<2&&n.putByte(0),n.putBytes(s)}return n.getBytes()};ae.bytesToIP=function(r){return r.length===4?ae.bytesToIPv4(r):r.length===16?ae.bytesToIPv6(r):null};ae.bytesToIPv4=function(r){if(r.length!==4)return null;for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e.join(".")};ae.bytesToIPv6=function(r){if(r.length!==16)return null;for(var e=[],t=[],n=0,i=0;i<r.length;i+=2){for(var s=ae.bytesToHex(r[i]+r[i+1]);s[0]==="0"&&s!=="0";)s=s.substr(1);if(s==="0"){var a=t[t.length-1],u=e.length;!a||u!==a.end+1?t.push({start:u,end:u}):(a.end=u,a.end-a.start>t[n].end-t[n].start&&(n=t.length-1))}e.push(s)}if(t.length>0){var c=t[n];c.end-c.start>0&&(e.splice(c.start,c.end-c.start+1,""),c.start===0&&e.unshift(""),c.end===7&&e.push(""))}return e.join(":")};ae.estimateCores=function(r,e){if(typeof r=="function"&&(e=r,r={}),r=r||{},"cores"in ae&&!r.update)return e(null,ae.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return ae.cores=navigator.hardwareConcurrency,e(null,ae.cores);if(typeof Worker>"u")return ae.cores=1,e(null,ae.cores);if(typeof Blob>"u")return ae.cores=2,e(null,ae.cores);var t=URL.createObjectURL(new Blob(["(",(function(){self.addEventListener("message",function(a){for(var u=Date.now(),c=u+4;Date.now()<c;);self.postMessage({st:u,et:c})})}).toString(),")()"],{type:"application/javascript"}));n([],5,16);function n(a,u,c){if(u===0){var l=Math.floor(a.reduce(function(p,m){return p+m},0)/a.length);return ae.cores=Math.max(1,l),URL.revokeObjectURL(t),e(null,ae.cores)}i(c,function(p,m){a.push(s(c,m)),n(a,u-1,c)})}o(n,"sample");function i(a,u){for(var c=[],l=[],p=0;p<a;++p){var m=new Worker(t);m.addEventListener("message",function(g){if(l.push(g.data),l.length===a){for(var S=0;S<a;++S)c[S].terminate();u(null,l)}}),c.push(m)}for(var p=0;p<a;++p)c[p].postMessage(p)}o(i,"map");function s(a,u){for(var c=[],l=0;l<a;++l)for(var p=u[l],m=c[l]=[],g=0;g<a;++g)if(l!==g){var S=u[g];(p.st>S.st&&p.st<S.et||S.st>p.st&&S.st<p.et)&&m.push(g)}return c.reduce(function(v,b){return Math.max(v,b.length)},0)}o(s,"reduce")}});var ON=Z((CNe,yU)=>{"use strict";var Ki=pr();kr();yU.exports=Ki.cipher=Ki.cipher||{};Ki.cipher.algorithms=Ki.cipher.algorithms||{};Ki.cipher.createCipher=function(r,e){var t=r;if(typeof t=="string"&&(t=Ki.cipher.getAlgorithm(t),t&&(t=t())),!t)throw new Error("Unsupported algorithm: "+r);return new Ki.cipher.BlockCipher({algorithm:t,key:e,decrypt:!1})};Ki.cipher.createDecipher=function(r,e){var t=r;if(typeof t=="string"&&(t=Ki.cipher.getAlgorithm(t),t&&(t=t())),!t)throw new Error("Unsupported algorithm: "+r);return new Ki.cipher.BlockCipher({algorithm:t,key:e,decrypt:!0})};Ki.cipher.registerAlgorithm=function(r,e){r=r.toUpperCase(),Ki.cipher.algorithms[r]=e};Ki.cipher.getAlgorithm=function(r){return r=r.toUpperCase(),r in Ki.cipher.algorithms?Ki.cipher.algorithms[r]:null};var SP=Ki.cipher.BlockCipher=function(r){this.algorithm=r.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=r.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=r.decrypt,this.algorithm.initialize(r)};SP.prototype.start=function(r){r=r||{};var e={};for(var t in r)e[t]=r[t];e.decrypt=this._decrypt,this._finish=!1,this._input=Ki.util.createBuffer(),this.output=r.output||Ki.util.createBuffer(),this.mode.start(e)};SP.prototype.update=function(r){for(r&&this._input.putBuffer(r);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()};SP.prototype.finish=function(r){r&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(t){return r(this.blockSize,t,!1)},this.mode.unpad=function(t){return r(this.blockSize,t,!0)});var e={};return e.decrypt=this._decrypt,e.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,e)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,e))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,e))}});var bP=Z((ENe,SU)=>{"use strict";var $i=pr();kr();$i.cipher=$i.cipher||{};var Sr=SU.exports=$i.cipher.modes=$i.cipher.modes||{};Sr.ecb=function(r){r=r||{},this.name="ECB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};Sr.ecb.prototype.start=function(r){};Sr.ecb.prototype.encrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n])};Sr.ecb.prototype.decrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n])};Sr.ecb.prototype.pad=function(r,e){var t=r.length()===this.blockSize?this.blockSize:this.blockSize-r.length();return r.fillWithByte(t,t),!0};Sr.ecb.prototype.unpad=function(r,e){if(e.overflow>0)return!1;var t=r.length(),n=r.at(t-1);return n>this.blockSize<<2?!1:(r.truncate(n),!0)};Sr.cbc=function(r){r=r||{},this.name="CBC",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};Sr.cbc.prototype.start=function(r){if(r.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in r)this._iv=PN(r.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")};Sr.cbc.prototype.encrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=this._prev[n]^r.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n]);this._prev=this._outBlock};Sr.cbc.prototype.decrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._prev[n]^this._outBlock[n]);this._prev=this._inBlock.slice(0)};Sr.cbc.prototype.pad=function(r,e){var t=r.length()===this.blockSize?this.blockSize:this.blockSize-r.length();return r.fillWithByte(t,t),!0};Sr.cbc.prototype.unpad=function(r,e){if(e.overflow>0)return!1;var t=r.length(),n=r.at(t-1);return n>this.blockSize<<2?!1:(r.truncate(n),!0)};Sr.cfb=function(r){r=r||{},this.name="CFB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=$i.util.createBuffer(),this._partialBytes=0};Sr.cfb.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=PN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.cfb.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)this._inBlock[i]=r.getInt32()^this._outBlock[i],e.putInt32(this._inBlock[i]);return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialBlock[i]=r.getInt32()^this._outBlock[i],this._partialOutput.putInt32(this._partialBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.cfb.prototype.decrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)this._inBlock[i]=r.getInt32(),e.putInt32(this._inBlock[i]^this._outBlock[i]);return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialBlock[i]=r.getInt32(),this._partialOutput.putInt32(this._partialBlock[i]^this._outBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.ofb=function(r){r=r||{},this.name="OFB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=$i.util.createBuffer(),this._partialBytes=0};Sr.ofb.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=PN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.ofb.prototype.encrypt=function(r,e,t){var n=r.length();if(r.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)e.putInt32(r.getInt32()^this._outBlock[i]),this._inBlock[i]=this._outBlock[i];return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._outBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.ofb.prototype.decrypt=Sr.ofb.prototype.encrypt;Sr.ctr=function(r){r=r||{},this.name="CTR",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=$i.util.createBuffer(),this._partialBytes=0};Sr.ctr.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=PN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.ctr.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize)for(var i=0;i<this._ints;++i)e.putInt32(r.getInt32()^this._outBlock[i]);else{var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s>0&&(r.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}BN(this._inBlock)};Sr.ctr.prototype.decrypt=Sr.ctr.prototype.encrypt;Sr.gcm=function(r){r=r||{},this.name="GCM",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=$i.util.createBuffer(),this._partialBytes=0,this._R=3774873600};Sr.gcm.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");var e=$i.util.createBuffer(r.iv);this._cipherLength=0;var t;if("additionalData"in r?t=$i.util.createBuffer(r.additionalData):t=$i.util.createBuffer(),"tagLength"in r?this._tagLength=r.tagLength:this._tagLength=128,this._tag=null,r.decrypt&&(this._tag=$i.util.createBuffer(r.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 n=e.length();if(n===12)this._j0=[e.getInt32(),e.getInt32(),e.getInt32(),1];else{for(this._j0=[0,0,0,0];e.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[e.getInt32(),e.getInt32(),e.getInt32(),e.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(xP(n*8)))}this._inBlock=this._j0.slice(0),BN(this._inBlock),this._partialBytes=0,t=$i.util.createBuffer(t),this._aDataLength=xP(t.length()*8);var i=t.length()%this.blockSize;for(i&&t.fillWithByte(0,this.blockSize-i),this._s=[0,0,0,0];t.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])};Sr.gcm.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)e.putInt32(this._outBlock[i]^=r.getInt32());this._cipherLength+=this.blockSize}else{var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s<=0||t){if(t){var a=n%this.blockSize;this._cipherLength+=a,this._partialOutput.truncate(this.blockSize-a)}else this._cipherLength+=this.blockSize;for(var i=0;i<this._ints;++i)this._outBlock[i]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return r.read-=this.blockSize,e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),BN(this._inBlock)};Sr.gcm.prototype.decrypt=function(r,e,t){var n=r.length();if(n<this.blockSize&&!(t&&n>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),BN(this._inBlock),this._hashBlock[0]=r.getInt32(),this._hashBlock[1]=r.getInt32(),this._hashBlock[2]=r.getInt32(),this._hashBlock[3]=r.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var i=0;i<this._ints;++i)e.putInt32(this._outBlock[i]^this._hashBlock[i]);n<this.blockSize?this._cipherLength+=n%this.blockSize:this._cipherLength+=this.blockSize};Sr.gcm.prototype.afterFinish=function(r,e){var t=!0;e.decrypt&&e.overflow&&r.truncate(this.blockSize-e.overflow),this.tag=$i.util.createBuffer();var n=this._aDataLength.concat(xP(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,n);var i=[];this.cipher.encrypt(this._j0,i);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^i[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),e.decrypt&&this.tag.bytes()!==this._tag&&(t=!1),t};Sr.gcm.prototype.multiply=function(r,e){for(var t=[0,0,0,0],n=e.slice(0),i=0;i<128;++i){var s=r[i/32|0]&1<<31-i%32;s&&(t[0]^=n[0],t[1]^=n[1],t[2]^=n[2],t[3]^=n[3]),this.pow(n,n)}return t};Sr.gcm.prototype.pow=function(r,e){for(var t=r[3]&1,n=3;n>0;--n)e[n]=r[n]>>>1|(r[n-1]&1)<<31;e[0]=r[0]>>>1,t&&(e[0]^=this._R)};Sr.gcm.prototype.tableMultiply=function(r){for(var e=[0,0,0,0],t=0;t<32;++t){var n=t/8|0,i=r[n]>>>(7-t%8)*4&15,s=this._m[t][i];e[0]^=s[0],e[1]^=s[1],e[2]^=s[2],e[3]^=s[3]}return e};Sr.gcm.prototype.ghash=function(r,e,t){return e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3],this.tableMultiply(e)};Sr.gcm.prototype.generateHashTable=function(r,e){for(var t=8/e,n=4*t,i=16*t,s=new Array(i),a=0;a<i;++a){var u=[0,0,0,0],c=a/n|0,l=(n-1-a%n)*e;u[c]=1<<e-1<<l,s[a]=this.generateSubHashTable(this.multiply(u,r),e)}return s};Sr.gcm.prototype.generateSubHashTable=function(r,e){var t=1<<e,n=t>>>1,i=new Array(t);i[n]=r.slice(0);for(var s=n>>>1;s>0;)this.pow(i[2*s],i[s]=[]),s>>=1;for(s=2;s<n;){for(var a=1;a<s;++a){var u=i[s],c=i[a];i[s+a]=[u[0]^c[0],u[1]^c[1],u[2]^c[2],u[3]^c[3]]}s*=2}for(i[0]=[0,0,0,0],s=n+1;s<t;++s){var l=i[s^n];i[s]=[r[0]^l[0],r[1]^l[1],r[2]^l[2],r[3]^l[3]]}return i};function PN(r,e){if(typeof r=="string"&&(r=$i.util.createBuffer(r)),$i.util.isArray(r)&&r.length>4){var t=r;r=$i.util.createBuffer();for(var n=0;n<t.length;++n)r.putByte(t[n])}if(r.length()<e)throw new Error("Invalid IV length; got "+r.length()+" bytes and expected "+e+" bytes.");if(!$i.util.isArray(r)){for(var i=[],s=e/4,n=0;n<s;++n)i.push(r.getInt32());r=i}return r}o(PN,"transformIV");function BN(r){r[r.length-1]=r[r.length-1]+1&4294967295}o(BN,"inc32");function xP(r){return[r/4294967296|0,r&4294967295]}o(xP,"from64To32")});var _p=Z((NNe,CU)=>{"use strict";var gn=pr();ON();bP();kr();CU.exports=gn.aes=gn.aes||{};gn.aes.startEncrypting=function(r,e,t,n){var i=FN({key:r,output:t,decrypt:!1,mode:n});return i.start(e),i};gn.aes.createEncryptionCipher=function(r,e){return FN({key:r,output:null,decrypt:!1,mode:e})};gn.aes.startDecrypting=function(r,e,t,n){var i=FN({key:r,output:t,decrypt:!0,mode:n});return i.start(e),i};gn.aes.createDecryptionCipher=function(r,e){return FN({key:r,output:null,decrypt:!0,mode:e})};gn.aes.Algorithm=function(r,e){EP||bU();var t=this;t.name=r,t.mode=new e({blockSize:16,cipher:{encrypt:o(function(n,i){return CP(t._w,n,i,!1)},"encrypt"),decrypt:o(function(n,i){return CP(t._w,n,i,!0)},"decrypt")}}),t._init=!1};gn.aes.Algorithm.prototype.initialize=function(r){if(!this._init){var e=r.key,t;if(typeof e=="string"&&(e.length===16||e.length===24||e.length===32))e=gn.util.createBuffer(e);else if(gn.util.isArray(e)&&(e.length===16||e.length===24||e.length===32)){t=e,e=gn.util.createBuffer();for(var n=0;n<t.length;++n)e.putByte(t[n])}if(!gn.util.isArray(e)){t=e,e=[];var i=t.length();if(i===16||i===24||i===32){i=i>>>2;for(var n=0;n<i;++n)e.push(t.getInt32())}}if(!gn.util.isArray(e)||!(e.length===4||e.length===6||e.length===8))throw new Error("Invalid key parameter.");var s=this.mode.name,a=["CFB","OFB","CTR","GCM"].indexOf(s)!==-1;this._w=wU(e,r.decrypt&&!a),this._init=!0}};gn.aes._expandKey=function(r,e){return EP||bU(),wU(r,e)};gn.aes._updateBlock=CP;Jg("AES-ECB",gn.cipher.modes.ecb);Jg("AES-CBC",gn.cipher.modes.cbc);Jg("AES-CFB",gn.cipher.modes.cfb);Jg("AES-OFB",gn.cipher.modes.ofb);Jg("AES-CTR",gn.cipher.modes.ctr);Jg("AES-GCM",gn.cipher.modes.gcm);function Jg(r,e){var t=o(function(){return new gn.aes.Algorithm(r,e)},"factory");gn.cipher.registerAlgorithm(r,t)}o(Jg,"registerAlgorithm");var EP=!1,Wg=4,fa,wP,xU,Wd,Au;function bU(){EP=!0,xU=[0,1,2,4,8,16,32,64,128,27,54];for(var r=new Array(256),e=0;e<128;++e)r[e]=e<<1,r[e+128]=e+128<<1^283;fa=new Array(256),wP=new Array(256),Wd=new Array(4),Au=new Array(4);for(var e=0;e<4;++e)Wd[e]=new Array(256),Au[e]=new Array(256);for(var t=0,n=0,i,s,a,u,c,l,p,e=0;e<256;++e){u=n^n<<1^n<<2^n<<3^n<<4,u=u>>8^u&255^99,fa[t]=u,wP[u]=t,c=r[u],i=r[t],s=r[i],a=r[s],l=c<<24^u<<16^u<<8^(u^c),p=(i^s^a)<<24^(t^a)<<16^(t^s^a)<<8^(t^i^a);for(var m=0;m<4;++m)Wd[m][t]=l,Au[m][u]=p,l=l<<24|l>>>8,p=p<<24|p>>>8;t===0?t=n=1:(t=i^r[r[r[i^a]]],n^=r[r[n]])}}o(bU,"initialize");function wU(r,e){for(var t=r.slice(0),n,i=1,s=t.length,a=s+6+1,u=Wg*a,c=s;c<u;++c)n=t[c-1],c%s===0?(n=fa[n>>>16&255]<<24^fa[n>>>8&255]<<16^fa[n&255]<<8^fa[n>>>24]^xU[i]<<24,i++):s>6&&c%s===4&&(n=fa[n>>>24]<<24^fa[n>>>16&255]<<16^fa[n>>>8&255]<<8^fa[n&255]),t[c]=t[c-s]^n;if(e){var l,p=Au[0],m=Au[1],g=Au[2],S=Au[3],v=t.slice(0);u=t.length;for(var c=0,b=u-Wg;c<u;c+=Wg,b-=Wg)if(c===0||c===u-Wg)v[c]=t[b],v[c+1]=t[b+3],v[c+2]=t[b+2],v[c+3]=t[b+1];else for(var x=0;x<Wg;++x)l=t[b+x],v[c+(3&-x)]=p[fa[l>>>24]]^m[fa[l>>>16&255]]^g[fa[l>>>8&255]]^S[fa[l&255]];t=v}return t}o(wU,"_expandKey");function CP(r,e,t,n){var i=r.length/4-1,s,a,u,c,l;n?(s=Au[0],a=Au[1],u=Au[2],c=Au[3],l=wP):(s=Wd[0],a=Wd[1],u=Wd[2],c=Wd[3],l=fa);var p,m,g,S,v,b,x;p=e[0]^r[0],m=e[n?3:1]^r[1],g=e[2]^r[2],S=e[n?1:3]^r[3];for(var E=3,N=1;N<i;++N)v=s[p>>>24]^a[m>>>16&255]^u[g>>>8&255]^c[S&255]^r[++E],b=s[m>>>24]^a[g>>>16&255]^u[S>>>8&255]^c[p&255]^r[++E],x=s[g>>>24]^a[S>>>16&255]^u[p>>>8&255]^c[m&255]^r[++E],S=s[S>>>24]^a[p>>>16&255]^u[m>>>8&255]^c[g&255]^r[++E],p=v,m=b,g=x;t[0]=l[p>>>24]<<24^l[m>>>16&255]<<16^l[g>>>8&255]<<8^l[S&255]^r[++E],t[n?3:1]=l[m>>>24]<<24^l[g>>>16&255]<<16^l[S>>>8&255]<<8^l[p&255]^r[++E],t[2]=l[g>>>24]<<24^l[S>>>16&255]<<16^l[p>>>8&255]<<8^l[m&255]^r[++E],t[n?1:3]=l[S>>>24]<<24^l[p>>>16&255]<<16^l[m>>>8&255]<<8^l[g&255]^r[++E]}o(CP,"_updateBlock");function FN(r){r=r||{};var e=(r.mode||"CBC").toUpperCase(),t="AES-"+e,n;r.decrypt?n=gn.cipher.createDecipher(t,r.key):n=gn.cipher.createCipher(t,r.key);var i=n.start;return n.start=function(s,a){var u=null;a instanceof gn.util.ByteBuffer&&(u=a,a={}),a=a||{},a.output=u,a.iv=s,i.call(n,a)},n}o(FN,"_createCipher")});var Op=Z((TNe,EU)=>{"use strict";var Nx=pr();Nx.pki=Nx.pki||{};var AP=EU.exports=Nx.pki.oids=Nx.oids=Nx.oids||{};function Xe(r,e){AP[r]=e,AP[e]=r}o(Xe,"_IN");function Wr(r,e){AP[r]=e}o(Wr,"_I_");Xe("1.2.840.113549.1.1.1","rsaEncryption");Xe("1.2.840.113549.1.1.4","md5WithRSAEncryption");Xe("1.2.840.113549.1.1.5","sha1WithRSAEncryption");Xe("1.2.840.113549.1.1.7","RSAES-OAEP");Xe("1.2.840.113549.1.1.8","mgf1");Xe("1.2.840.113549.1.1.9","pSpecified");Xe("1.2.840.113549.1.1.10","RSASSA-PSS");Xe("1.2.840.113549.1.1.11","sha256WithRSAEncryption");Xe("1.2.840.113549.1.1.12","sha384WithRSAEncryption");Xe("1.2.840.113549.1.1.13","sha512WithRSAEncryption");Xe("1.3.101.112","EdDSA25519");Xe("1.2.840.10040.4.3","dsa-with-sha1");Xe("1.3.14.3.2.7","desCBC");Xe("1.3.14.3.2.26","sha1");Xe("1.3.14.3.2.29","sha1WithRSASignature");Xe("2.16.840.1.101.3.4.2.1","sha256");Xe("2.16.840.1.101.3.4.2.2","sha384");Xe("2.16.840.1.101.3.4.2.3","sha512");Xe("2.16.840.1.101.3.4.2.4","sha224");Xe("2.16.840.1.101.3.4.2.5","sha512-224");Xe("2.16.840.1.101.3.4.2.6","sha512-256");Xe("1.2.840.113549.2.2","md2");Xe("1.2.840.113549.2.5","md5");Xe("1.2.840.113549.1.7.1","data");Xe("1.2.840.113549.1.7.2","signedData");Xe("1.2.840.113549.1.7.3","envelopedData");Xe("1.2.840.113549.1.7.4","signedAndEnvelopedData");Xe("1.2.840.113549.1.7.5","digestedData");Xe("1.2.840.113549.1.7.6","encryptedData");Xe("1.2.840.113549.1.9.1","emailAddress");Xe("1.2.840.113549.1.9.2","unstructuredName");Xe("1.2.840.113549.1.9.3","contentType");Xe("1.2.840.113549.1.9.4","messageDigest");Xe("1.2.840.113549.1.9.5","signingTime");Xe("1.2.840.113549.1.9.6","counterSignature");Xe("1.2.840.113549.1.9.7","challengePassword");Xe("1.2.840.113549.1.9.8","unstructuredAddress");Xe("1.2.840.113549.1.9.14","extensionRequest");Xe("1.2.840.113549.1.9.20","friendlyName");Xe("1.2.840.113549.1.9.21","localKeyId");Xe("1.2.840.113549.1.9.22.1","x509Certificate");Xe("1.2.840.113549.1.12.10.1.1","keyBag");Xe("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");Xe("1.2.840.113549.1.12.10.1.3","certBag");Xe("1.2.840.113549.1.12.10.1.4","crlBag");Xe("1.2.840.113549.1.12.10.1.5","secretBag");Xe("1.2.840.113549.1.12.10.1.6","safeContentsBag");Xe("1.2.840.113549.1.5.13","pkcs5PBES2");Xe("1.2.840.113549.1.5.12","pkcs5PBKDF2");Xe("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");Xe("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");Xe("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");Xe("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");Xe("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");Xe("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");Xe("1.2.840.113549.2.7","hmacWithSHA1");Xe("1.2.840.113549.2.8","hmacWithSHA224");Xe("1.2.840.113549.2.9","hmacWithSHA256");Xe("1.2.840.113549.2.10","hmacWithSHA384");Xe("1.2.840.113549.2.11","hmacWithSHA512");Xe("1.2.840.113549.3.7","des-EDE3-CBC");Xe("2.16.840.1.101.3.4.1.2","aes128-CBC");Xe("2.16.840.1.101.3.4.1.22","aes192-CBC");Xe("2.16.840.1.101.3.4.1.42","aes256-CBC");Xe("2.5.4.3","commonName");Xe("2.5.4.4","surname");Xe("2.5.4.5","serialNumber");Xe("2.5.4.6","countryName");Xe("2.5.4.7","localityName");Xe("2.5.4.8","stateOrProvinceName");Xe("2.5.4.9","streetAddress");Xe("2.5.4.10","organizationName");Xe("2.5.4.11","organizationalUnitName");Xe("2.5.4.12","title");Xe("2.5.4.13","description");Xe("2.5.4.15","businessCategory");Xe("2.5.4.17","postalCode");Xe("2.5.4.42","givenName");Xe("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");Xe("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");Xe("2.16.840.1.113730.1.1","nsCertType");Xe("2.16.840.1.113730.1.13","nsComment");Wr("2.5.29.1","authorityKeyIdentifier");Wr("2.5.29.2","keyAttributes");Wr("2.5.29.3","certificatePolicies");Wr("2.5.29.4","keyUsageRestriction");Wr("2.5.29.5","policyMapping");Wr("2.5.29.6","subtreesConstraint");Wr("2.5.29.7","subjectAltName");Wr("2.5.29.8","issuerAltName");Wr("2.5.29.9","subjectDirectoryAttributes");Wr("2.5.29.10","basicConstraints");Wr("2.5.29.11","nameConstraints");Wr("2.5.29.12","policyConstraints");Wr("2.5.29.13","basicConstraints");Xe("2.5.29.14","subjectKeyIdentifier");Xe("2.5.29.15","keyUsage");Wr("2.5.29.16","privateKeyUsagePeriod");Xe("2.5.29.17","subjectAltName");Xe("2.5.29.18","issuerAltName");Xe("2.5.29.19","basicConstraints");Wr("2.5.29.20","cRLNumber");Wr("2.5.29.21","cRLReason");Wr("2.5.29.22","expirationDate");Wr("2.5.29.23","instructionCode");Wr("2.5.29.24","invalidityDate");Wr("2.5.29.25","cRLDistributionPoints");Wr("2.5.29.26","issuingDistributionPoint");Wr("2.5.29.27","deltaCRLIndicator");Wr("2.5.29.28","issuingDistributionPoint");Wr("2.5.29.29","certificateIssuer");Wr("2.5.29.30","nameConstraints");Xe("2.5.29.31","cRLDistributionPoints");Xe("2.5.29.32","certificatePolicies");Wr("2.5.29.33","policyMappings");Wr("2.5.29.34","policyConstraints");Xe("2.5.29.35","authorityKeyIdentifier");Wr("2.5.29.36","policyConstraints");Xe("2.5.29.37","extKeyUsage");Wr("2.5.29.46","freshestCRL");Wr("2.5.29.54","inhibitAnyPolicy");Xe("1.3.6.1.4.1.11129.2.4.2","timestampList");Xe("1.3.6.1.5.5.7.1.1","authorityInfoAccess");Xe("1.3.6.1.5.5.7.3.1","serverAuth");Xe("1.3.6.1.5.5.7.3.2","clientAuth");Xe("1.3.6.1.5.5.7.3.3","codeSigning");Xe("1.3.6.1.5.5.7.3.4","emailProtection");Xe("1.3.6.1.5.5.7.3.8","timeStamping")});var Nu=Z((DNe,NU)=>{"use strict";var In=pr();kr();Op();var ot=NU.exports=In.asn1=In.asn1||{};ot.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};ot.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};ot.maxDepth=256;ot.create=function(r,e,t,n,i){if(In.util.isArray(n)){for(var s=[],a=0;a<n.length;++a)n[a]!==void 0&&s.push(n[a]);n=s}var u={tagClass:r,type:e,constructed:t,composed:t||In.util.isArray(n),value:n};return i&&"bitStringContents"in i&&(u.bitStringContents=i.bitStringContents,u.original=ot.copy(u)),u};ot.copy=function(r,e){var t;if(In.util.isArray(r)){t=[];for(var n=0;n<r.length;++n)t.push(ot.copy(r[n],e));return t}return typeof r=="string"?r:(t={tagClass:r.tagClass,type:r.type,constructed:r.constructed,composed:r.composed,value:ot.copy(r.value,e)},e&&!e.excludeBitStringContents&&(t.bitStringContents=r.bitStringContents),t)};ot.equals=function(r,e,t){if(In.util.isArray(r)){if(!In.util.isArray(e)||r.length!==e.length)return!1;for(var n=0;n<r.length;++n)if(!ot.equals(r[n],e[n]))return!1;return!0}if(typeof r!=typeof e)return!1;if(typeof r=="string")return r===e;var i=r.tagClass===e.tagClass&&r.type===e.type&&r.constructed===e.constructed&&r.composed===e.composed&&ot.equals(r.value,e.value);return t&&t.includeBitStringContents&&(i=i&&r.bitStringContents===e.bitStringContents),i};ot.getBerValueLength=function(r){var e=r.getByte();if(e!==128){var t,n=e&128;return n?t=r.getInt((e&127)<<3):t=e,t}};function Ix(r,e,t){if(t>e){var n=new Error("Too few bytes to parse DER.");throw n.available=r.length(),n.remaining=e,n.requested=t,n}}o(Ix,"_checkBufferLength");var lue=o(function(r,e){var t=r.getByte();if(e--,t!==128){var n,i=t&128;if(!i)n=t;else{var s=t&127;Ix(r,e,s),n=r.getInt(s<<3)}if(n<0)throw new Error("Negative length: "+n);return n}},"_getValueLength");ot.fromDer=function(r,e){e===void 0&&(e={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof e=="boolean"&&(e={strict:e,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in e||(e.strict=!0),"parseAllBytes"in e||(e.parseAllBytes=!0),"decodeBitStrings"in e||(e.decodeBitStrings=!0),"maxDepth"in e||(e.maxDepth=ot.maxDepth),typeof r=="string"&&(r=In.util.createBuffer(r));var t=r.length(),n=LN(r,r.length(),0,e);if(e.parseAllBytes&&r.length()!==0){var i=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw i.byteCount=t,i.remaining=r.length(),i}return n};function LN(r,e,t,n){if(t>=n.maxDepth)throw new Error("ASN.1 parsing error: Max depth exceeded.");var i;Ix(r,e,2);var s=r.getByte();e--;var a=s&192,u=s&31;i=r.length();var c=lue(r,e);if(e-=i-r.length(),c!==void 0&&c>e){if(n.strict){var l=new Error("Too few bytes to read ASN.1 value.");throw l.available=r.length(),l.remaining=e,l.requested=c,l}c=e}var p,m,g=(s&32)===32;if(g)if(p=[],c===void 0)for(;;){if(Ix(r,e,2),r.bytes(2)==="\0\0"){r.getBytes(2),e-=2;break}i=r.length(),p.push(LN(r,e,t+1,n)),e-=i-r.length()}else for(;c>0;)i=r.length(),p.push(LN(r,c,t+1,n)),e-=i-r.length(),c-=i-r.length();if(p===void 0&&a===ot.Class.UNIVERSAL&&u===ot.Type.BITSTRING&&(m=r.bytes(c)),p===void 0&&n.decodeBitStrings&&a===ot.Class.UNIVERSAL&&u===ot.Type.BITSTRING&&c>1){var S=r.read,v=e,b=0;if(u===ot.Type.BITSTRING&&(Ix(r,e,1),b=r.getByte(),e--),b===0)try{i=r.length();var x={strict:!0,decodeBitStrings:!0},E=LN(r,e,t+1,x),N=i-r.length();e-=N,u==ot.Type.BITSTRING&&N++;var w=E.tagClass;N===c&&(w===ot.Class.UNIVERSAL||w===ot.Class.CONTEXT_SPECIFIC)&&(p=[E])}catch{}p===void 0&&(r.read=S,e=v)}if(p===void 0){if(c===void 0){if(n.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=e}if(u===ot.Type.BMPSTRING)for(p="";c>0;c-=2)Ix(r,e,2),p+=String.fromCharCode(r.getInt16()),e-=2;else p=r.getBytes(c),e-=c}var C=m===void 0?null:{bitStringContents:m};return ot.create(a,u,g,p,C)}o(LN,"_fromDer");ot.toDer=function(r){var e=In.util.createBuffer(),t=r.tagClass|r.type,n=In.util.createBuffer(),i=!1;if("bitStringContents"in r&&(i=!0,r.original&&(i=ot.equals(r,r.original))),i)n.putBytes(r.bitStringContents);else if(r.composed){r.constructed?t|=32:n.putByte(0);for(var s=0;s<r.value.length;++s)r.value[s]!==void 0&&n.putBuffer(ot.toDer(r.value[s]))}else if(r.type===ot.Type.BMPSTRING)for(var s=0;s<r.value.length;++s)n.putInt16(r.value.charCodeAt(s));else r.type===ot.Type.INTEGER&&r.value.length>1&&(r.value.charCodeAt(0)===0&&(r.value.charCodeAt(1)&128)===0||r.value.charCodeAt(0)===255&&(r.value.charCodeAt(1)&128)===128)?n.putBytes(r.value.substr(1)):n.putBytes(r.value);if(e.putByte(t),n.length()<=127)e.putByte(n.length()&127);else{var a=n.length(),u="";do u+=String.fromCharCode(a&255),a=a>>>8;while(a>0);e.putByte(u.length|128);for(var s=u.length-1;s>=0;--s)e.putByte(u.charCodeAt(s))}return e.putBuffer(n),e};ot.oidToDer=function(r){var e=r.split("."),t=In.util.createBuffer();t.putByte(40*parseInt(e[0],10)+parseInt(e[1],10));for(var n,i,s,a,u=2;u<e.length;++u){if(n=!0,i=[],s=parseInt(e[u],10),s>4294967295)throw new Error("OID value too large; max is 32-bits.");do a=s&127,s=s>>>7,n||(a|=128),i.push(a),n=!1;while(s>0);for(var c=i.length-1;c>=0;--c)t.putByte(i[c])}return t};ot.derToOid=function(r){var e;typeof r=="string"&&(r=In.util.createBuffer(r));var t=r.getByte();e=Math.floor(t/40)+"."+t%40;for(var n=0;r.length()>0;){if(n>70368744177663)throw new Error("OID value too large; max is 53-bits.");t=r.getByte(),n=n*128,t&128?n+=t&127:(e+="."+(n+t),n=0)}return e};ot.utcTimeToDate=function(r){var e=new Date,t=parseInt(r.substr(0,2),10);t=t>=50?1900+t:2e3+t;var n=parseInt(r.substr(2,2),10)-1,i=parseInt(r.substr(4,2),10),s=parseInt(r.substr(6,2),10),a=parseInt(r.substr(8,2),10),u=0;if(r.length>11){var c=r.charAt(10),l=10;c!=="+"&&c!=="-"&&(u=parseInt(r.substr(10,2),10),l+=2)}if(e.setUTCFullYear(t,n,i),e.setUTCHours(s,a,u,0),l&&(c=r.charAt(l),c==="+"||c==="-")){var p=parseInt(r.substr(l+1,2),10),m=parseInt(r.substr(l+4,2),10),g=p*60+m;g*=6e4,c==="+"?e.setTime(+e-g):e.setTime(+e+g)}return e};ot.generalizedTimeToDate=function(r){var e=new Date,t=parseInt(r.substr(0,4),10),n=parseInt(r.substr(4,2),10)-1,i=parseInt(r.substr(6,2),10),s=parseInt(r.substr(8,2),10),a=parseInt(r.substr(10,2),10),u=parseInt(r.substr(12,2),10),c=0,l=0,p=!1;r.charAt(r.length-1)==="Z"&&(p=!0);var m=r.length-5,g=r.charAt(m);if(g==="+"||g==="-"){var S=parseInt(r.substr(m+1,2),10),v=parseInt(r.substr(m+4,2),10);l=S*60+v,l*=6e4,g==="+"&&(l*=-1),p=!0}return r.charAt(14)==="."&&(c=parseFloat(r.substr(14),10)*1e3),p?(e.setUTCFullYear(t,n,i),e.setUTCHours(s,a,u,c),e.setTime(+e+l)):(e.setFullYear(t,n,i),e.setHours(s,a,u,c)),e};ot.dateToUtcTime=function(r){if(typeof r=="string")return r;var e="",t=[];t.push((""+r.getUTCFullYear()).substr(2)),t.push(""+(r.getUTCMonth()+1)),t.push(""+r.getUTCDate()),t.push(""+r.getUTCHours()),t.push(""+r.getUTCMinutes()),t.push(""+r.getUTCSeconds());for(var n=0;n<t.length;++n)t[n].length<2&&(e+="0"),e+=t[n];return e+="Z",e};ot.dateToGeneralizedTime=function(r){if(typeof r=="string")return r;var e="",t=[];t.push(""+r.getUTCFullYear()),t.push(""+(r.getUTCMonth()+1)),t.push(""+r.getUTCDate()),t.push(""+r.getUTCHours()),t.push(""+r.getUTCMinutes()),t.push(""+r.getUTCSeconds());for(var n=0;n<t.length;++n)t[n].length<2&&(e+="0"),e+=t[n];return e+="Z",e};ot.integerToDer=function(r){var e=In.util.createBuffer();if(r>=-128&&r<128)return e.putSignedInt(r,8);if(r>=-32768&&r<32768)return e.putSignedInt(r,16);if(r>=-8388608&&r<8388608)return e.putSignedInt(r,24);if(r>=-2147483648&&r<2147483648)return e.putSignedInt(r,32);var t=new Error("Integer too large; max is 32-bits.");throw t.integer=r,t};ot.derToInteger=function(r){typeof r=="string"&&(r=In.util.createBuffer(r));var e=r.length()*8;if(e>32)throw new Error("Integer too large; max is 32-bits.");return r.getSignedInt(e)};ot.validate=function(r,e,t,n){var i=!1;if((r.tagClass===e.tagClass||typeof e.tagClass>"u")&&(r.type===e.type||typeof e.type>"u"))if(r.constructed===e.constructed||typeof e.constructed>"u"){if(i=!0,e.value&&In.util.isArray(e.value))for(var s=0,a=0;i&&a<e.value.length;++a){var u=e.value[a];i=!!u.optional;var c=r.value[s];if(!c){u.optional||(i=!1,n&&n.push("["+e.name+'] Missing required element. Expected tag class "'+u.tagClass+'", type "'+u.type+'"'));continue}var l=typeof u.tagClass<"u"&&typeof u.type<"u";if(l&&(c.tagClass!==u.tagClass||c.type!==u.type))if(u.optional){i=!0;continue}else{i=!1,n&&n.push("["+e.name+"] Tag mismatch. Expected ("+u.tagClass+","+u.type+"), got ("+c.tagClass+","+c.type+")");break}var p=ot.validate(c,u,t,n);if(p)++s,i=!0;else if(u.optional)i=!0;else{i=!1;break}}if(i&&t&&(e.capture&&(t[e.capture]=r.value),e.captureAsn1&&(t[e.captureAsn1]=r),e.captureBitStringContents&&"bitStringContents"in r&&(t[e.captureBitStringContents]=r.bitStringContents),e.captureBitStringValue&&"bitStringContents"in r)){var m;if(r.bitStringContents.length<2)t[e.captureBitStringValue]="";else{var g=r.bitStringContents.charCodeAt(0);if(g!==0)throw new Error("captureBitStringValue only supported for zero unused bits");t[e.captureBitStringValue]=r.bitStringContents.slice(1)}}}else n&&n.push("["+e.name+'] Expected constructed "'+e.constructed+'", got "'+r.constructed+'"');else n&&(r.tagClass!==e.tagClass&&n.push("["+e.name+'] Expected tag class "'+e.tagClass+'", got "'+r.tagClass+'"'),r.type!==e.type&&n.push("["+e.name+'] Expected type "'+e.type+'", got "'+r.type+'"'));return i};var AU=/[^\\u0000-\\u00ff]/;ot.prettyPrint=function(r,e,t){var n="";e=e||0,t=t||2,e>0&&(n+=`
5
- `);for(var i="",s=0;s<e*t;++s)i+=" ";switch(n+=i+"Tag: ",r.tagClass){case ot.Class.UNIVERSAL:n+="Universal:";break;case ot.Class.APPLICATION:n+="Application:";break;case ot.Class.CONTEXT_SPECIFIC:n+="Context-Specific:";break;case ot.Class.PRIVATE:n+="Private:";break}if(r.tagClass===ot.Class.UNIVERSAL)switch(n+=r.type,r.type){case ot.Type.NONE:n+=" (None)";break;case ot.Type.BOOLEAN:n+=" (Boolean)";break;case ot.Type.INTEGER:n+=" (Integer)";break;case ot.Type.BITSTRING:n+=" (Bit string)";break;case ot.Type.OCTETSTRING:n+=" (Octet string)";break;case ot.Type.NULL:n+=" (Null)";break;case ot.Type.OID:n+=" (Object Identifier)";break;case ot.Type.ODESC:n+=" (Object Descriptor)";break;case ot.Type.EXTERNAL:n+=" (External or Instance of)";break;case ot.Type.REAL:n+=" (Real)";break;case ot.Type.ENUMERATED:n+=" (Enumerated)";break;case ot.Type.EMBEDDED:n+=" (Embedded PDV)";break;case ot.Type.UTF8:n+=" (UTF8)";break;case ot.Type.ROID:n+=" (Relative Object Identifier)";break;case ot.Type.SEQUENCE:n+=" (Sequence)";break;case ot.Type.SET:n+=" (Set)";break;case ot.Type.PRINTABLESTRING:n+=" (Printable String)";break;case ot.Type.IA5String:n+=" (IA5String (ASCII))";break;case ot.Type.UTCTIME:n+=" (UTC time)";break;case ot.Type.GENERALIZEDTIME:n+=" (Generalized time)";break;case ot.Type.BMPSTRING:n+=" (BMP String)";break}else n+=r.type;if(n+=`
4
+ `,t=t.substr(e));return n+=t,n};ae.binary.base64.decode=function(r,e,t){var n=e;n||(n=new Uint8Array(Math.ceil(r.length/4)*3)),r=r.replace(/[^A-Za-z0-9\+\/\=]/g,""),t=t||0;for(var i,s,a,u,c=0,l=t;c<r.length;)i=Dp[r.charCodeAt(c++)-43],s=Dp[r.charCodeAt(c++)-43],a=Dp[r.charCodeAt(c++)-43],u=Dp[r.charCodeAt(c++)-43],n[l++]=i<<2|s>>4,a!==64&&(n[l++]=(s&15)<<4|a>>2,u!==64&&(n[l++]=(a&3)<<6|u));return e?l-t:n.subarray(0,l)};ae.binary.base58.encode=function(r,e){return ae.binary.baseN.encode(r,gU,e)};ae.binary.base58.decode=function(r,e){return ae.binary.baseN.decode(r,gU,e)};ae.text={utf8:{},utf16:{}};ae.text.utf8.encode=function(r,e,t){r=ae.encodeUtf8(r);var n=e;n||(n=new Uint8Array(r.length)),t=t||0;for(var i=t,s=0;s<r.length;++s)n[i++]=r.charCodeAt(s);return e?i-t:n};ae.text.utf8.decode=function(r){return ae.decodeUtf8(String.fromCharCode.apply(null,r))};ae.text.utf16.encode=function(r,e,t){var n=e;n||(n=new Uint8Array(r.length*2));var i=new Uint16Array(n.buffer);t=t||0;for(var s=t,a=t,u=0;u<r.length;++u)i[a++]=r.charCodeAt(u),s+=2;return e?s-t:n};ae.text.utf16.decode=function(r){return String.fromCharCode.apply(null,new Uint16Array(r.buffer))};ae.deflate=function(r,e,t){if(e=ae.decode64(r.deflate(ae.encode64(e)).rval),t){var n=2,i=e.charCodeAt(1);i&32&&(n=6),e=e.substring(n,e.length-4)}return e};ae.inflate=function(r,e,t){var n=r.inflate(ae.encode64(e)).rval;return n===null?null:ae.decode64(n)};var vP=o(function(r,e,t){if(!r)throw new Error("WebStorage not available.");var n;if(t===null?n=r.removeItem(e):(t=ae.encode64(JSON.stringify(t)),n=r.setItem(e,t)),typeof n<"u"&&n.rval!==!0){var i=new Error(n.error.message);throw i.id=n.error.id,i.name=n.error.name,i}},"_setStorageObject"),yP=o(function(r,e){if(!r)throw new Error("WebStorage not available.");var t=r.getItem(e);if(r.init)if(t.rval===null){if(t.error){var n=new Error(t.error.message);throw n.id=t.error.id,n.name=t.error.name,n}t=null}else t=t.rval;return t!==null&&(t=JSON.parse(ae.decode64(t))),t},"_getStorageObject"),aue=o(function(r,e,t,n){var i=yP(r,e);i===null&&(i={}),i[t]=n,vP(r,e,i)},"_setItem"),oue=o(function(r,e,t){var n=yP(r,e);return n!==null&&(n=t in n?n[t]:null),n},"_getItem"),uue=o(function(r,e,t){var n=yP(r,e);if(n!==null&&t in n){delete n[t];var i=!0;for(var s in n){i=!1;break}i&&(n=null),vP(r,e,n)}},"_removeItem"),cue=o(function(r,e){vP(r,e,null)},"_clearItems"),_N=o(function(r,e,t){var n=null;typeof t>"u"&&(t=["web","flash"]);var i,s=!1,a=null;for(var u in t){i=t[u];try{if(i==="flash"||i==="both"){if(e[0]===null)throw new Error("Flash local storage not available.");n=r.apply(this,e),s=i==="flash"}(i==="web"||i==="both")&&(e[0]=localStorage,n=r.apply(this,e),s=!0)}catch(c){a=c}if(s)break}if(!s)throw a;return n},"_callStorageFunction");ae.setItem=function(r,e,t,n,i){_N(aue,arguments,i)};ae.getItem=function(r,e,t,n){return _N(oue,arguments,n)};ae.removeItem=function(r,e,t,n){_N(uue,arguments,n)};ae.clearItems=function(r,e,t){_N(cue,arguments,t)};ae.isEmpty=function(r){for(var e in r)if(r.hasOwnProperty(e))return!1;return!0};ae.format=function(r){for(var e=/%./g,t,n,i=0,s=[],a=0;t=e.exec(r);){n=r.substring(a,e.lastIndex-2),n.length>0&&s.push(n),a=e.lastIndex;var u=t[0][1];switch(u){case"s":case"o":i<arguments.length?s.push(arguments[i+++1]):s.push("<?>");break;case"%":s.push("%");break;default:s.push("<%"+u+"?>")}}return s.push(r.substring(a)),s.join("")};ae.formatNumber=function(r,e,t,n){var i=r,s=isNaN(e=Math.abs(e))?2:e,a=t===void 0?",":t,u=n===void 0?".":n,c=i<0?"-":"",l=parseInt(i=Math.abs(+i||0).toFixed(s),10)+"",p=l.length>3?l.length%3:0;return c+(p?l.substr(0,p)+u:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+u)+(s?a+Math.abs(i-l).toFixed(s).slice(2):"")};ae.formatSize=function(r){return r>=1073741824?r=ae.formatNumber(r/1073741824,2,".","")+" GiB":r>=1048576?r=ae.formatNumber(r/1048576,2,".","")+" MiB":r>=1024?r=ae.formatNumber(r/1024,0)+" KiB":r=ae.formatNumber(r,0)+" bytes",r};ae.bytesFromIP=function(r){return r.indexOf(".")!==-1?ae.bytesFromIPv4(r):r.indexOf(":")!==-1?ae.bytesFromIPv6(r):null};ae.bytesFromIPv4=function(r){if(r=r.split("."),r.length!==4)return null;for(var e=ae.createBuffer(),t=0;t<r.length;++t){var n=parseInt(r[t],10);if(isNaN(n))return null;e.putByte(n)}return e.getBytes()};ae.bytesFromIPv6=function(r){var e=0;r=r.split(":").filter(function(a){return a.length===0&&++e,!0});for(var t=(8-r.length+e)*2,n=ae.createBuffer(),i=0;i<8;++i){if(!r[i]||r[i].length===0){n.fillWithByte(0,t),t=0;continue}var s=ae.hexToBytes(r[i]);s.length<2&&n.putByte(0),n.putBytes(s)}return n.getBytes()};ae.bytesToIP=function(r){return r.length===4?ae.bytesToIPv4(r):r.length===16?ae.bytesToIPv6(r):null};ae.bytesToIPv4=function(r){if(r.length!==4)return null;for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e.join(".")};ae.bytesToIPv6=function(r){if(r.length!==16)return null;for(var e=[],t=[],n=0,i=0;i<r.length;i+=2){for(var s=ae.bytesToHex(r[i]+r[i+1]);s[0]==="0"&&s!=="0";)s=s.substr(1);if(s==="0"){var a=t[t.length-1],u=e.length;!a||u!==a.end+1?t.push({start:u,end:u}):(a.end=u,a.end-a.start>t[n].end-t[n].start&&(n=t.length-1))}e.push(s)}if(t.length>0){var c=t[n];c.end-c.start>0&&(e.splice(c.start,c.end-c.start+1,""),c.start===0&&e.unshift(""),c.end===7&&e.push(""))}return e.join(":")};ae.estimateCores=function(r,e){if(typeof r=="function"&&(e=r,r={}),r=r||{},"cores"in ae&&!r.update)return e(null,ae.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return ae.cores=navigator.hardwareConcurrency,e(null,ae.cores);if(typeof Worker>"u")return ae.cores=1,e(null,ae.cores);if(typeof Blob>"u")return ae.cores=2,e(null,ae.cores);var t=URL.createObjectURL(new Blob(["(",(function(){self.addEventListener("message",function(a){for(var u=Date.now(),c=u+4;Date.now()<c;);self.postMessage({st:u,et:c})})}).toString(),")()"],{type:"application/javascript"}));n([],5,16);function n(a,u,c){if(u===0){var l=Math.floor(a.reduce(function(p,m){return p+m},0)/a.length);return ae.cores=Math.max(1,l),URL.revokeObjectURL(t),e(null,ae.cores)}i(c,function(p,m){a.push(s(c,m)),n(a,u-1,c)})}o(n,"sample");function i(a,u){for(var c=[],l=[],p=0;p<a;++p){var m=new Worker(t);m.addEventListener("message",function(g){if(l.push(g.data),l.length===a){for(var S=0;S<a;++S)c[S].terminate();u(null,l)}}),c.push(m)}for(var p=0;p<a;++p)c[p].postMessage(p)}o(i,"map");function s(a,u){for(var c=[],l=0;l<a;++l)for(var p=u[l],m=c[l]=[],g=0;g<a;++g)if(l!==g){var S=u[g];(p.st>S.st&&p.st<S.et||S.st>p.st&&S.st<p.et)&&m.push(g)}return c.reduce(function(v,b){return Math.max(v,b.length)},0)}o(s,"reduce")}});var ON=Z((CNe,yU)=>{"use strict";var Ki=pr();kr();yU.exports=Ki.cipher=Ki.cipher||{};Ki.cipher.algorithms=Ki.cipher.algorithms||{};Ki.cipher.createCipher=function(r,e){var t=r;if(typeof t=="string"&&(t=Ki.cipher.getAlgorithm(t),t&&(t=t())),!t)throw new Error("Unsupported algorithm: "+r);return new Ki.cipher.BlockCipher({algorithm:t,key:e,decrypt:!1})};Ki.cipher.createDecipher=function(r,e){var t=r;if(typeof t=="string"&&(t=Ki.cipher.getAlgorithm(t),t&&(t=t())),!t)throw new Error("Unsupported algorithm: "+r);return new Ki.cipher.BlockCipher({algorithm:t,key:e,decrypt:!0})};Ki.cipher.registerAlgorithm=function(r,e){r=r.toUpperCase(),Ki.cipher.algorithms[r]=e};Ki.cipher.getAlgorithm=function(r){return r=r.toUpperCase(),r in Ki.cipher.algorithms?Ki.cipher.algorithms[r]:null};var SP=Ki.cipher.BlockCipher=function(r){this.algorithm=r.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=r.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=r.decrypt,this.algorithm.initialize(r)};SP.prototype.start=function(r){r=r||{};var e={};for(var t in r)e[t]=r[t];e.decrypt=this._decrypt,this._finish=!1,this._input=Ki.util.createBuffer(),this.output=r.output||Ki.util.createBuffer(),this.mode.start(e)};SP.prototype.update=function(r){for(r&&this._input.putBuffer(r);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()};SP.prototype.finish=function(r){r&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(t){return r(this.blockSize,t,!1)},this.mode.unpad=function(t){return r(this.blockSize,t,!0)});var e={};return e.decrypt=this._decrypt,e.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,e)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,e))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,e))}});var bP=Z((ENe,SU)=>{"use strict";var $i=pr();kr();$i.cipher=$i.cipher||{};var Sr=SU.exports=$i.cipher.modes=$i.cipher.modes||{};Sr.ecb=function(r){r=r||{},this.name="ECB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};Sr.ecb.prototype.start=function(r){};Sr.ecb.prototype.encrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n])};Sr.ecb.prototype.decrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n])};Sr.ecb.prototype.pad=function(r,e){var t=r.length()===this.blockSize?this.blockSize:this.blockSize-r.length();return r.fillWithByte(t,t),!0};Sr.ecb.prototype.unpad=function(r,e){if(e.overflow>0)return!1;var t=r.length(),n=r.at(t-1);return n>this.blockSize<<2?!1:(r.truncate(n),!0)};Sr.cbc=function(r){r=r||{},this.name="CBC",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};Sr.cbc.prototype.start=function(r){if(r.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in r)this._iv=PN(r.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")};Sr.cbc.prototype.encrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=this._prev[n]^r.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n]);this._prev=this._outBlock};Sr.cbc.prototype.decrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._prev[n]^this._outBlock[n]);this._prev=this._inBlock.slice(0)};Sr.cbc.prototype.pad=function(r,e){var t=r.length()===this.blockSize?this.blockSize:this.blockSize-r.length();return r.fillWithByte(t,t),!0};Sr.cbc.prototype.unpad=function(r,e){if(e.overflow>0)return!1;var t=r.length(),n=r.at(t-1);return n>this.blockSize<<2?!1:(r.truncate(n),!0)};Sr.cfb=function(r){r=r||{},this.name="CFB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=$i.util.createBuffer(),this._partialBytes=0};Sr.cfb.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=PN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.cfb.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)this._inBlock[i]=r.getInt32()^this._outBlock[i],e.putInt32(this._inBlock[i]);return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialBlock[i]=r.getInt32()^this._outBlock[i],this._partialOutput.putInt32(this._partialBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.cfb.prototype.decrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)this._inBlock[i]=r.getInt32(),e.putInt32(this._inBlock[i]^this._outBlock[i]);return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialBlock[i]=r.getInt32(),this._partialOutput.putInt32(this._partialBlock[i]^this._outBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.ofb=function(r){r=r||{},this.name="OFB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=$i.util.createBuffer(),this._partialBytes=0};Sr.ofb.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=PN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.ofb.prototype.encrypt=function(r,e,t){var n=r.length();if(r.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)e.putInt32(r.getInt32()^this._outBlock[i]),this._inBlock[i]=this._outBlock[i];return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._outBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.ofb.prototype.decrypt=Sr.ofb.prototype.encrypt;Sr.ctr=function(r){r=r||{},this.name="CTR",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=$i.util.createBuffer(),this._partialBytes=0};Sr.ctr.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=PN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.ctr.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize)for(var i=0;i<this._ints;++i)e.putInt32(r.getInt32()^this._outBlock[i]);else{var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s>0&&(r.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}BN(this._inBlock)};Sr.ctr.prototype.decrypt=Sr.ctr.prototype.encrypt;Sr.gcm=function(r){r=r||{},this.name="GCM",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=$i.util.createBuffer(),this._partialBytes=0,this._R=3774873600};Sr.gcm.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");var e=$i.util.createBuffer(r.iv);this._cipherLength=0;var t;if("additionalData"in r?t=$i.util.createBuffer(r.additionalData):t=$i.util.createBuffer(),"tagLength"in r?this._tagLength=r.tagLength:this._tagLength=128,this._tag=null,r.decrypt&&(this._tag=$i.util.createBuffer(r.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 n=e.length();if(n===12)this._j0=[e.getInt32(),e.getInt32(),e.getInt32(),1];else{for(this._j0=[0,0,0,0];e.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[e.getInt32(),e.getInt32(),e.getInt32(),e.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(xP(n*8)))}this._inBlock=this._j0.slice(0),BN(this._inBlock),this._partialBytes=0,t=$i.util.createBuffer(t),this._aDataLength=xP(t.length()*8);var i=t.length()%this.blockSize;for(i&&t.fillWithByte(0,this.blockSize-i),this._s=[0,0,0,0];t.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])};Sr.gcm.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)e.putInt32(this._outBlock[i]^=r.getInt32());this._cipherLength+=this.blockSize}else{var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s<=0||t){if(t){var a=n%this.blockSize;this._cipherLength+=a,this._partialOutput.truncate(this.blockSize-a)}else this._cipherLength+=this.blockSize;for(var i=0;i<this._ints;++i)this._outBlock[i]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return r.read-=this.blockSize,e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),BN(this._inBlock)};Sr.gcm.prototype.decrypt=function(r,e,t){var n=r.length();if(n<this.blockSize&&!(t&&n>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),BN(this._inBlock),this._hashBlock[0]=r.getInt32(),this._hashBlock[1]=r.getInt32(),this._hashBlock[2]=r.getInt32(),this._hashBlock[3]=r.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var i=0;i<this._ints;++i)e.putInt32(this._outBlock[i]^this._hashBlock[i]);n<this.blockSize?this._cipherLength+=n%this.blockSize:this._cipherLength+=this.blockSize};Sr.gcm.prototype.afterFinish=function(r,e){var t=!0;e.decrypt&&e.overflow&&r.truncate(this.blockSize-e.overflow),this.tag=$i.util.createBuffer();var n=this._aDataLength.concat(xP(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,n);var i=[];this.cipher.encrypt(this._j0,i);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^i[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),e.decrypt&&this.tag.bytes()!==this._tag&&(t=!1),t};Sr.gcm.prototype.multiply=function(r,e){for(var t=[0,0,0,0],n=e.slice(0),i=0;i<128;++i){var s=r[i/32|0]&1<<31-i%32;s&&(t[0]^=n[0],t[1]^=n[1],t[2]^=n[2],t[3]^=n[3]),this.pow(n,n)}return t};Sr.gcm.prototype.pow=function(r,e){for(var t=r[3]&1,n=3;n>0;--n)e[n]=r[n]>>>1|(r[n-1]&1)<<31;e[0]=r[0]>>>1,t&&(e[0]^=this._R)};Sr.gcm.prototype.tableMultiply=function(r){for(var e=[0,0,0,0],t=0;t<32;++t){var n=t/8|0,i=r[n]>>>(7-t%8)*4&15,s=this._m[t][i];e[0]^=s[0],e[1]^=s[1],e[2]^=s[2],e[3]^=s[3]}return e};Sr.gcm.prototype.ghash=function(r,e,t){return e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3],this.tableMultiply(e)};Sr.gcm.prototype.generateHashTable=function(r,e){for(var t=8/e,n=4*t,i=16*t,s=new Array(i),a=0;a<i;++a){var u=[0,0,0,0],c=a/n|0,l=(n-1-a%n)*e;u[c]=1<<e-1<<l,s[a]=this.generateSubHashTable(this.multiply(u,r),e)}return s};Sr.gcm.prototype.generateSubHashTable=function(r,e){var t=1<<e,n=t>>>1,i=new Array(t);i[n]=r.slice(0);for(var s=n>>>1;s>0;)this.pow(i[2*s],i[s]=[]),s>>=1;for(s=2;s<n;){for(var a=1;a<s;++a){var u=i[s],c=i[a];i[s+a]=[u[0]^c[0],u[1]^c[1],u[2]^c[2],u[3]^c[3]]}s*=2}for(i[0]=[0,0,0,0],s=n+1;s<t;++s){var l=i[s^n];i[s]=[r[0]^l[0],r[1]^l[1],r[2]^l[2],r[3]^l[3]]}return i};function PN(r,e){if(typeof r=="string"&&(r=$i.util.createBuffer(r)),$i.util.isArray(r)&&r.length>4){var t=r;r=$i.util.createBuffer();for(var n=0;n<t.length;++n)r.putByte(t[n])}if(r.length()<e)throw new Error("Invalid IV length; got "+r.length()+" bytes and expected "+e+" bytes.");if(!$i.util.isArray(r)){for(var i=[],s=e/4,n=0;n<s;++n)i.push(r.getInt32());r=i}return r}o(PN,"transformIV");function BN(r){r[r.length-1]=r[r.length-1]+1&4294967295}o(BN,"inc32");function xP(r){return[r/4294967296|0,r&4294967295]}o(xP,"from64To32")});var _p=Z((NNe,CU)=>{"use strict";var gn=pr();ON();bP();kr();CU.exports=gn.aes=gn.aes||{};gn.aes.startEncrypting=function(r,e,t,n){var i=FN({key:r,output:t,decrypt:!1,mode:n});return i.start(e),i};gn.aes.createEncryptionCipher=function(r,e){return FN({key:r,output:null,decrypt:!1,mode:e})};gn.aes.startDecrypting=function(r,e,t,n){var i=FN({key:r,output:t,decrypt:!0,mode:n});return i.start(e),i};gn.aes.createDecryptionCipher=function(r,e){return FN({key:r,output:null,decrypt:!0,mode:e})};gn.aes.Algorithm=function(r,e){EP||bU();var t=this;t.name=r,t.mode=new e({blockSize:16,cipher:{encrypt:o(function(n,i){return CP(t._w,n,i,!1)},"encrypt"),decrypt:o(function(n,i){return CP(t._w,n,i,!0)},"decrypt")}}),t._init=!1};gn.aes.Algorithm.prototype.initialize=function(r){if(!this._init){var e=r.key,t;if(typeof e=="string"&&(e.length===16||e.length===24||e.length===32))e=gn.util.createBuffer(e);else if(gn.util.isArray(e)&&(e.length===16||e.length===24||e.length===32)){t=e,e=gn.util.createBuffer();for(var n=0;n<t.length;++n)e.putByte(t[n])}if(!gn.util.isArray(e)){t=e,e=[];var i=t.length();if(i===16||i===24||i===32){i=i>>>2;for(var n=0;n<i;++n)e.push(t.getInt32())}}if(!gn.util.isArray(e)||!(e.length===4||e.length===6||e.length===8))throw new Error("Invalid key parameter.");var s=this.mode.name,a=["CFB","OFB","CTR","GCM"].indexOf(s)!==-1;this._w=wU(e,r.decrypt&&!a),this._init=!0}};gn.aes._expandKey=function(r,e){return EP||bU(),wU(r,e)};gn.aes._updateBlock=CP;Jg("AES-ECB",gn.cipher.modes.ecb);Jg("AES-CBC",gn.cipher.modes.cbc);Jg("AES-CFB",gn.cipher.modes.cfb);Jg("AES-OFB",gn.cipher.modes.ofb);Jg("AES-CTR",gn.cipher.modes.ctr);Jg("AES-GCM",gn.cipher.modes.gcm);function Jg(r,e){var t=o(function(){return new gn.aes.Algorithm(r,e)},"factory");gn.cipher.registerAlgorithm(r,t)}o(Jg,"registerAlgorithm");var EP=!1,Wg=4,fa,wP,xU,Wd,Au;function bU(){EP=!0,xU=[0,1,2,4,8,16,32,64,128,27,54];for(var r=new Array(256),e=0;e<128;++e)r[e]=e<<1,r[e+128]=e+128<<1^283;fa=new Array(256),wP=new Array(256),Wd=new Array(4),Au=new Array(4);for(var e=0;e<4;++e)Wd[e]=new Array(256),Au[e]=new Array(256);for(var t=0,n=0,i,s,a,u,c,l,p,e=0;e<256;++e){u=n^n<<1^n<<2^n<<3^n<<4,u=u>>8^u&255^99,fa[t]=u,wP[u]=t,c=r[u],i=r[t],s=r[i],a=r[s],l=c<<24^u<<16^u<<8^(u^c),p=(i^s^a)<<24^(t^a)<<16^(t^s^a)<<8^(t^i^a);for(var m=0;m<4;++m)Wd[m][t]=l,Au[m][u]=p,l=l<<24|l>>>8,p=p<<24|p>>>8;t===0?t=n=1:(t=i^r[r[r[i^a]]],n^=r[r[n]])}}o(bU,"initialize");function wU(r,e){for(var t=r.slice(0),n,i=1,s=t.length,a=s+6+1,u=Wg*a,c=s;c<u;++c)n=t[c-1],c%s===0?(n=fa[n>>>16&255]<<24^fa[n>>>8&255]<<16^fa[n&255]<<8^fa[n>>>24]^xU[i]<<24,i++):s>6&&c%s===4&&(n=fa[n>>>24]<<24^fa[n>>>16&255]<<16^fa[n>>>8&255]<<8^fa[n&255]),t[c]=t[c-s]^n;if(e){var l,p=Au[0],m=Au[1],g=Au[2],S=Au[3],v=t.slice(0);u=t.length;for(var c=0,b=u-Wg;c<u;c+=Wg,b-=Wg)if(c===0||c===u-Wg)v[c]=t[b],v[c+1]=t[b+3],v[c+2]=t[b+2],v[c+3]=t[b+1];else for(var x=0;x<Wg;++x)l=t[b+x],v[c+(3&-x)]=p[fa[l>>>24]]^m[fa[l>>>16&255]]^g[fa[l>>>8&255]]^S[fa[l&255]];t=v}return t}o(wU,"_expandKey");function CP(r,e,t,n){var i=r.length/4-1,s,a,u,c,l;n?(s=Au[0],a=Au[1],u=Au[2],c=Au[3],l=wP):(s=Wd[0],a=Wd[1],u=Wd[2],c=Wd[3],l=fa);var p,m,g,S,v,b,x;p=e[0]^r[0],m=e[n?3:1]^r[1],g=e[2]^r[2],S=e[n?1:3]^r[3];for(var E=3,N=1;N<i;++N)v=s[p>>>24]^a[m>>>16&255]^u[g>>>8&255]^c[S&255]^r[++E],b=s[m>>>24]^a[g>>>16&255]^u[S>>>8&255]^c[p&255]^r[++E],x=s[g>>>24]^a[S>>>16&255]^u[p>>>8&255]^c[m&255]^r[++E],S=s[S>>>24]^a[p>>>16&255]^u[m>>>8&255]^c[g&255]^r[++E],p=v,m=b,g=x;t[0]=l[p>>>24]<<24^l[m>>>16&255]<<16^l[g>>>8&255]<<8^l[S&255]^r[++E],t[n?3:1]=l[m>>>24]<<24^l[g>>>16&255]<<16^l[S>>>8&255]<<8^l[p&255]^r[++E],t[2]=l[g>>>24]<<24^l[S>>>16&255]<<16^l[p>>>8&255]<<8^l[m&255]^r[++E],t[n?1:3]=l[S>>>24]<<24^l[p>>>16&255]<<16^l[m>>>8&255]<<8^l[g&255]^r[++E]}o(CP,"_updateBlock");function FN(r){r=r||{};var e=(r.mode||"CBC").toUpperCase(),t="AES-"+e,n;r.decrypt?n=gn.cipher.createDecipher(t,r.key):n=gn.cipher.createCipher(t,r.key);var i=n.start;return n.start=function(s,a){var u=null;a instanceof gn.util.ByteBuffer&&(u=a,a={}),a=a||{},a.output=u,a.iv=s,i.call(n,a)},n}o(FN,"_createCipher")});var Op=Z((TNe,EU)=>{"use strict";var Nx=pr();Nx.pki=Nx.pki||{};var AP=EU.exports=Nx.pki.oids=Nx.oids=Nx.oids||{};function Xe(r,e){AP[r]=e,AP[e]=r}o(Xe,"_IN");function Wr(r,e){AP[r]=e}o(Wr,"_I_");Xe("1.2.840.113549.1.1.1","rsaEncryption");Xe("1.2.840.113549.1.1.4","md5WithRSAEncryption");Xe("1.2.840.113549.1.1.5","sha1WithRSAEncryption");Xe("1.2.840.113549.1.1.7","RSAES-OAEP");Xe("1.2.840.113549.1.1.8","mgf1");Xe("1.2.840.113549.1.1.9","pSpecified");Xe("1.2.840.113549.1.1.10","RSASSA-PSS");Xe("1.2.840.113549.1.1.11","sha256WithRSAEncryption");Xe("1.2.840.113549.1.1.12","sha384WithRSAEncryption");Xe("1.2.840.113549.1.1.13","sha512WithRSAEncryption");Xe("1.3.101.112","EdDSA25519");Xe("1.2.840.10040.4.3","dsa-with-sha1");Xe("1.3.14.3.2.7","desCBC");Xe("1.3.14.3.2.26","sha1");Xe("1.3.14.3.2.29","sha1WithRSASignature");Xe("2.16.840.1.101.3.4.2.1","sha256");Xe("2.16.840.1.101.3.4.2.2","sha384");Xe("2.16.840.1.101.3.4.2.3","sha512");Xe("2.16.840.1.101.3.4.2.4","sha224");Xe("2.16.840.1.101.3.4.2.5","sha512-224");Xe("2.16.840.1.101.3.4.2.6","sha512-256");Xe("1.2.840.113549.2.2","md2");Xe("1.2.840.113549.2.5","md5");Xe("1.2.840.113549.1.7.1","data");Xe("1.2.840.113549.1.7.2","signedData");Xe("1.2.840.113549.1.7.3","envelopedData");Xe("1.2.840.113549.1.7.4","signedAndEnvelopedData");Xe("1.2.840.113549.1.7.5","digestedData");Xe("1.2.840.113549.1.7.6","encryptedData");Xe("1.2.840.113549.1.9.1","emailAddress");Xe("1.2.840.113549.1.9.2","unstructuredName");Xe("1.2.840.113549.1.9.3","contentType");Xe("1.2.840.113549.1.9.4","messageDigest");Xe("1.2.840.113549.1.9.5","signingTime");Xe("1.2.840.113549.1.9.6","counterSignature");Xe("1.2.840.113549.1.9.7","challengePassword");Xe("1.2.840.113549.1.9.8","unstructuredAddress");Xe("1.2.840.113549.1.9.14","extensionRequest");Xe("1.2.840.113549.1.9.20","friendlyName");Xe("1.2.840.113549.1.9.21","localKeyId");Xe("1.2.840.113549.1.9.22.1","x509Certificate");Xe("1.2.840.113549.1.12.10.1.1","keyBag");Xe("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");Xe("1.2.840.113549.1.12.10.1.3","certBag");Xe("1.2.840.113549.1.12.10.1.4","crlBag");Xe("1.2.840.113549.1.12.10.1.5","secretBag");Xe("1.2.840.113549.1.12.10.1.6","safeContentsBag");Xe("1.2.840.113549.1.5.13","pkcs5PBES2");Xe("1.2.840.113549.1.5.12","pkcs5PBKDF2");Xe("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");Xe("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");Xe("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");Xe("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");Xe("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");Xe("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");Xe("1.2.840.113549.2.7","hmacWithSHA1");Xe("1.2.840.113549.2.8","hmacWithSHA224");Xe("1.2.840.113549.2.9","hmacWithSHA256");Xe("1.2.840.113549.2.10","hmacWithSHA384");Xe("1.2.840.113549.2.11","hmacWithSHA512");Xe("1.2.840.113549.3.7","des-EDE3-CBC");Xe("2.16.840.1.101.3.4.1.2","aes128-CBC");Xe("2.16.840.1.101.3.4.1.22","aes192-CBC");Xe("2.16.840.1.101.3.4.1.42","aes256-CBC");Xe("2.5.4.3","commonName");Xe("2.5.4.4","surname");Xe("2.5.4.5","serialNumber");Xe("2.5.4.6","countryName");Xe("2.5.4.7","localityName");Xe("2.5.4.8","stateOrProvinceName");Xe("2.5.4.9","streetAddress");Xe("2.5.4.10","organizationName");Xe("2.5.4.11","organizationalUnitName");Xe("2.5.4.12","title");Xe("2.5.4.13","description");Xe("2.5.4.15","businessCategory");Xe("2.5.4.17","postalCode");Xe("2.5.4.42","givenName");Xe("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");Xe("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");Xe("2.16.840.1.113730.1.1","nsCertType");Xe("2.16.840.1.113730.1.13","nsComment");Wr("2.5.29.1","authorityKeyIdentifier");Wr("2.5.29.2","keyAttributes");Wr("2.5.29.3","certificatePolicies");Wr("2.5.29.4","keyUsageRestriction");Wr("2.5.29.5","policyMapping");Wr("2.5.29.6","subtreesConstraint");Wr("2.5.29.7","subjectAltName");Wr("2.5.29.8","issuerAltName");Wr("2.5.29.9","subjectDirectoryAttributes");Wr("2.5.29.10","basicConstraints");Wr("2.5.29.11","nameConstraints");Wr("2.5.29.12","policyConstraints");Wr("2.5.29.13","basicConstraints");Xe("2.5.29.14","subjectKeyIdentifier");Xe("2.5.29.15","keyUsage");Wr("2.5.29.16","privateKeyUsagePeriod");Xe("2.5.29.17","subjectAltName");Xe("2.5.29.18","issuerAltName");Xe("2.5.29.19","basicConstraints");Wr("2.5.29.20","cRLNumber");Wr("2.5.29.21","cRLReason");Wr("2.5.29.22","expirationDate");Wr("2.5.29.23","instructionCode");Wr("2.5.29.24","invalidityDate");Wr("2.5.29.25","cRLDistributionPoints");Wr("2.5.29.26","issuingDistributionPoint");Wr("2.5.29.27","deltaCRLIndicator");Wr("2.5.29.28","issuingDistributionPoint");Wr("2.5.29.29","certificateIssuer");Wr("2.5.29.30","nameConstraints");Xe("2.5.29.31","cRLDistributionPoints");Xe("2.5.29.32","certificatePolicies");Wr("2.5.29.33","policyMappings");Wr("2.5.29.34","policyConstraints");Xe("2.5.29.35","authorityKeyIdentifier");Wr("2.5.29.36","policyConstraints");Xe("2.5.29.37","extKeyUsage");Wr("2.5.29.46","freshestCRL");Wr("2.5.29.54","inhibitAnyPolicy");Xe("1.3.6.1.4.1.11129.2.4.2","timestampList");Xe("1.3.6.1.5.5.7.1.1","authorityInfoAccess");Xe("1.3.6.1.5.5.7.3.1","serverAuth");Xe("1.3.6.1.5.5.7.3.2","clientAuth");Xe("1.3.6.1.5.5.7.3.3","codeSigning");Xe("1.3.6.1.5.5.7.3.4","emailProtection");Xe("1.3.6.1.5.5.7.3.8","timeStamping")});var Nu=Z((DNe,NU)=>{"use strict";var In=pr();kr();Op();var ct=NU.exports=In.asn1=In.asn1||{};ct.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};ct.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};ct.create=function(r,e,t,n,i){if(In.util.isArray(n)){for(var s=[],a=0;a<n.length;++a)n[a]!==void 0&&s.push(n[a]);n=s}var u={tagClass:r,type:e,constructed:t,composed:t||In.util.isArray(n),value:n};return i&&"bitStringContents"in i&&(u.bitStringContents=i.bitStringContents,u.original=ct.copy(u)),u};ct.copy=function(r,e){var t;if(In.util.isArray(r)){t=[];for(var n=0;n<r.length;++n)t.push(ct.copy(r[n],e));return t}return typeof r=="string"?r:(t={tagClass:r.tagClass,type:r.type,constructed:r.constructed,composed:r.composed,value:ct.copy(r.value,e)},e&&!e.excludeBitStringContents&&(t.bitStringContents=r.bitStringContents),t)};ct.equals=function(r,e,t){if(In.util.isArray(r)){if(!In.util.isArray(e)||r.length!==e.length)return!1;for(var n=0;n<r.length;++n)if(!ct.equals(r[n],e[n]))return!1;return!0}if(typeof r!=typeof e)return!1;if(typeof r=="string")return r===e;var i=r.tagClass===e.tagClass&&r.type===e.type&&r.constructed===e.constructed&&r.composed===e.composed&&ct.equals(r.value,e.value);return t&&t.includeBitStringContents&&(i=i&&r.bitStringContents===e.bitStringContents),i};ct.getBerValueLength=function(r){var e=r.getByte();if(e!==128){var t,n=e&128;return n?t=r.getInt((e&127)<<3):t=e,t}};function Ix(r,e,t){if(t>e){var n=new Error("Too few bytes to parse DER.");throw n.available=r.length(),n.remaining=e,n.requested=t,n}}o(Ix,"_checkBufferLength");var lue=o(function(r,e){var t=r.getByte();if(e--,t!==128){var n,i=t&128;if(!i)n=t;else{var s=t&127;Ix(r,e,s),n=r.getInt(s<<3)}if(n<0)throw new Error("Negative length: "+n);return n}},"_getValueLength");ct.fromDer=function(r,e){e===void 0&&(e={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof e=="boolean"&&(e={strict:e,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in e||(e.strict=!0),"parseAllBytes"in e||(e.parseAllBytes=!0),"decodeBitStrings"in e||(e.decodeBitStrings=!0),typeof r=="string"&&(r=In.util.createBuffer(r));var t=r.length(),n=LN(r,r.length(),0,e);if(e.parseAllBytes&&r.length()!==0){var i=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw i.byteCount=t,i.remaining=r.length(),i}return n};function LN(r,e,t,n){var i;Ix(r,e,2);var s=r.getByte();e--;var a=s&192,u=s&31;i=r.length();var c=lue(r,e);if(e-=i-r.length(),c!==void 0&&c>e){if(n.strict){var l=new Error("Too few bytes to read ASN.1 value.");throw l.available=r.length(),l.remaining=e,l.requested=c,l}c=e}var p,m,g=(s&32)===32;if(g)if(p=[],c===void 0)for(;;){if(Ix(r,e,2),r.bytes(2)==="\0\0"){r.getBytes(2),e-=2;break}i=r.length(),p.push(LN(r,e,t+1,n)),e-=i-r.length()}else for(;c>0;)i=r.length(),p.push(LN(r,c,t+1,n)),e-=i-r.length(),c-=i-r.length();if(p===void 0&&a===ct.Class.UNIVERSAL&&u===ct.Type.BITSTRING&&(m=r.bytes(c)),p===void 0&&n.decodeBitStrings&&a===ct.Class.UNIVERSAL&&u===ct.Type.BITSTRING&&c>1){var S=r.read,v=e,b=0;if(u===ct.Type.BITSTRING&&(Ix(r,e,1),b=r.getByte(),e--),b===0)try{i=r.length();var x={strict:!0,decodeBitStrings:!0},E=LN(r,e,t+1,x),N=i-r.length();e-=N,u==ct.Type.BITSTRING&&N++;var w=E.tagClass;N===c&&(w===ct.Class.UNIVERSAL||w===ct.Class.CONTEXT_SPECIFIC)&&(p=[E])}catch{}p===void 0&&(r.read=S,e=v)}if(p===void 0){if(c===void 0){if(n.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=e}if(u===ct.Type.BMPSTRING)for(p="";c>0;c-=2)Ix(r,e,2),p+=String.fromCharCode(r.getInt16()),e-=2;else p=r.getBytes(c),e-=c}var C=m===void 0?null:{bitStringContents:m};return ct.create(a,u,g,p,C)}o(LN,"_fromDer");ct.toDer=function(r){var e=In.util.createBuffer(),t=r.tagClass|r.type,n=In.util.createBuffer(),i=!1;if("bitStringContents"in r&&(i=!0,r.original&&(i=ct.equals(r,r.original))),i)n.putBytes(r.bitStringContents);else if(r.composed){r.constructed?t|=32:n.putByte(0);for(var s=0;s<r.value.length;++s)r.value[s]!==void 0&&n.putBuffer(ct.toDer(r.value[s]))}else if(r.type===ct.Type.BMPSTRING)for(var s=0;s<r.value.length;++s)n.putInt16(r.value.charCodeAt(s));else r.type===ct.Type.INTEGER&&r.value.length>1&&(r.value.charCodeAt(0)===0&&(r.value.charCodeAt(1)&128)===0||r.value.charCodeAt(0)===255&&(r.value.charCodeAt(1)&128)===128)?n.putBytes(r.value.substr(1)):n.putBytes(r.value);if(e.putByte(t),n.length()<=127)e.putByte(n.length()&127);else{var a=n.length(),u="";do u+=String.fromCharCode(a&255),a=a>>>8;while(a>0);e.putByte(u.length|128);for(var s=u.length-1;s>=0;--s)e.putByte(u.charCodeAt(s))}return e.putBuffer(n),e};ct.oidToDer=function(r){var e=r.split("."),t=In.util.createBuffer();t.putByte(40*parseInt(e[0],10)+parseInt(e[1],10));for(var n,i,s,a,u=2;u<e.length;++u){n=!0,i=[],s=parseInt(e[u],10);do a=s&127,s=s>>>7,n||(a|=128),i.push(a),n=!1;while(s>0);for(var c=i.length-1;c>=0;--c)t.putByte(i[c])}return t};ct.derToOid=function(r){var e;typeof r=="string"&&(r=In.util.createBuffer(r));var t=r.getByte();e=Math.floor(t/40)+"."+t%40;for(var n=0;r.length()>0;)t=r.getByte(),n=n<<7,t&128?n+=t&127:(e+="."+(n+t),n=0);return e};ct.utcTimeToDate=function(r){var e=new Date,t=parseInt(r.substr(0,2),10);t=t>=50?1900+t:2e3+t;var n=parseInt(r.substr(2,2),10)-1,i=parseInt(r.substr(4,2),10),s=parseInt(r.substr(6,2),10),a=parseInt(r.substr(8,2),10),u=0;if(r.length>11){var c=r.charAt(10),l=10;c!=="+"&&c!=="-"&&(u=parseInt(r.substr(10,2),10),l+=2)}if(e.setUTCFullYear(t,n,i),e.setUTCHours(s,a,u,0),l&&(c=r.charAt(l),c==="+"||c==="-")){var p=parseInt(r.substr(l+1,2),10),m=parseInt(r.substr(l+4,2),10),g=p*60+m;g*=6e4,c==="+"?e.setTime(+e-g):e.setTime(+e+g)}return e};ct.generalizedTimeToDate=function(r){var e=new Date,t=parseInt(r.substr(0,4),10),n=parseInt(r.substr(4,2),10)-1,i=parseInt(r.substr(6,2),10),s=parseInt(r.substr(8,2),10),a=parseInt(r.substr(10,2),10),u=parseInt(r.substr(12,2),10),c=0,l=0,p=!1;r.charAt(r.length-1)==="Z"&&(p=!0);var m=r.length-5,g=r.charAt(m);if(g==="+"||g==="-"){var S=parseInt(r.substr(m+1,2),10),v=parseInt(r.substr(m+4,2),10);l=S*60+v,l*=6e4,g==="+"&&(l*=-1),p=!0}return r.charAt(14)==="."&&(c=parseFloat(r.substr(14),10)*1e3),p?(e.setUTCFullYear(t,n,i),e.setUTCHours(s,a,u,c),e.setTime(+e+l)):(e.setFullYear(t,n,i),e.setHours(s,a,u,c)),e};ct.dateToUtcTime=function(r){if(typeof r=="string")return r;var e="",t=[];t.push((""+r.getUTCFullYear()).substr(2)),t.push(""+(r.getUTCMonth()+1)),t.push(""+r.getUTCDate()),t.push(""+r.getUTCHours()),t.push(""+r.getUTCMinutes()),t.push(""+r.getUTCSeconds());for(var n=0;n<t.length;++n)t[n].length<2&&(e+="0"),e+=t[n];return e+="Z",e};ct.dateToGeneralizedTime=function(r){if(typeof r=="string")return r;var e="",t=[];t.push(""+r.getUTCFullYear()),t.push(""+(r.getUTCMonth()+1)),t.push(""+r.getUTCDate()),t.push(""+r.getUTCHours()),t.push(""+r.getUTCMinutes()),t.push(""+r.getUTCSeconds());for(var n=0;n<t.length;++n)t[n].length<2&&(e+="0"),e+=t[n];return e+="Z",e};ct.integerToDer=function(r){var e=In.util.createBuffer();if(r>=-128&&r<128)return e.putSignedInt(r,8);if(r>=-32768&&r<32768)return e.putSignedInt(r,16);if(r>=-8388608&&r<8388608)return e.putSignedInt(r,24);if(r>=-2147483648&&r<2147483648)return e.putSignedInt(r,32);var t=new Error("Integer too large; max is 32-bits.");throw t.integer=r,t};ct.derToInteger=function(r){typeof r=="string"&&(r=In.util.createBuffer(r));var e=r.length()*8;if(e>32)throw new Error("Integer too large; max is 32-bits.");return r.getSignedInt(e)};ct.validate=function(r,e,t,n){var i=!1;if((r.tagClass===e.tagClass||typeof e.tagClass>"u")&&(r.type===e.type||typeof e.type>"u"))if(r.constructed===e.constructed||typeof e.constructed>"u"){if(i=!0,e.value&&In.util.isArray(e.value))for(var s=0,a=0;i&&a<e.value.length;++a)i=e.value[a].optional||!1,r.value[s]&&(i=ct.validate(r.value[s],e.value[a],t,n),i?++s:e.value[a].optional&&(i=!0)),!i&&n&&n.push("["+e.name+'] Tag class "'+e.tagClass+'", type "'+e.type+'" expected value length "'+e.value.length+'", got "'+r.value.length+'"');if(i&&t&&(e.capture&&(t[e.capture]=r.value),e.captureAsn1&&(t[e.captureAsn1]=r),e.captureBitStringContents&&"bitStringContents"in r&&(t[e.captureBitStringContents]=r.bitStringContents),e.captureBitStringValue&&"bitStringContents"in r)){var u;if(r.bitStringContents.length<2)t[e.captureBitStringValue]="";else{var c=r.bitStringContents.charCodeAt(0);if(c!==0)throw new Error("captureBitStringValue only supported for zero unused bits");t[e.captureBitStringValue]=r.bitStringContents.slice(1)}}}else n&&n.push("["+e.name+'] Expected constructed "'+e.constructed+'", got "'+r.constructed+'"');else n&&(r.tagClass!==e.tagClass&&n.push("["+e.name+'] Expected tag class "'+e.tagClass+'", got "'+r.tagClass+'"'),r.type!==e.type&&n.push("["+e.name+'] Expected type "'+e.type+'", got "'+r.type+'"'));return i};var AU=/[^\\u0000-\\u00ff]/;ct.prettyPrint=function(r,e,t){var n="";e=e||0,t=t||2,e>0&&(n+=`
5
+ `);for(var i="",s=0;s<e*t;++s)i+=" ";switch(n+=i+"Tag: ",r.tagClass){case ct.Class.UNIVERSAL:n+="Universal:";break;case ct.Class.APPLICATION:n+="Application:";break;case ct.Class.CONTEXT_SPECIFIC:n+="Context-Specific:";break;case ct.Class.PRIVATE:n+="Private:";break}if(r.tagClass===ct.Class.UNIVERSAL)switch(n+=r.type,r.type){case ct.Type.NONE:n+=" (None)";break;case ct.Type.BOOLEAN:n+=" (Boolean)";break;case ct.Type.INTEGER:n+=" (Integer)";break;case ct.Type.BITSTRING:n+=" (Bit string)";break;case ct.Type.OCTETSTRING:n+=" (Octet string)";break;case ct.Type.NULL:n+=" (Null)";break;case ct.Type.OID:n+=" (Object Identifier)";break;case ct.Type.ODESC:n+=" (Object Descriptor)";break;case ct.Type.EXTERNAL:n+=" (External or Instance of)";break;case ct.Type.REAL:n+=" (Real)";break;case ct.Type.ENUMERATED:n+=" (Enumerated)";break;case ct.Type.EMBEDDED:n+=" (Embedded PDV)";break;case ct.Type.UTF8:n+=" (UTF8)";break;case ct.Type.ROID:n+=" (Relative Object Identifier)";break;case ct.Type.SEQUENCE:n+=" (Sequence)";break;case ct.Type.SET:n+=" (Set)";break;case ct.Type.PRINTABLESTRING:n+=" (Printable String)";break;case ct.Type.IA5String:n+=" (IA5String (ASCII))";break;case ct.Type.UTCTIME:n+=" (UTC time)";break;case ct.Type.GENERALIZEDTIME:n+=" (Generalized time)";break;case ct.Type.BMPSTRING:n+=" (BMP String)";break}else n+=r.type;if(n+=`
6
6
  `,n+=i+"Constructed: "+r.constructed+`
7
- `,r.composed){for(var a=0,u="",s=0;s<r.value.length;++s)r.value[s]!==void 0&&(a+=1,u+=ot.prettyPrint(r.value[s],e+1,t),s+1<r.value.length&&(u+=","));n+=i+"Sub values: "+a+u}else{if(n+=i+"Value: ",r.type===ot.Type.OID){var c=ot.derToOid(r.value);n+=c,In.pki&&In.pki.oids&&c in In.pki.oids&&(n+=" ("+In.pki.oids[c]+") ")}if(r.type===ot.Type.INTEGER)try{n+=ot.derToInteger(r.value)}catch{n+="0x"+In.util.bytesToHex(r.value)}else if(r.type===ot.Type.BITSTRING){if(r.value.length>1?n+="0x"+In.util.bytesToHex(r.value.slice(1)):n+="(none)",r.value.length>0){var l=r.value.charCodeAt(0);l==1?n+=" (1 unused bit shown)":l>1&&(n+=" ("+l+" unused bits shown)")}}else if(r.type===ot.Type.OCTETSTRING)AU.test(r.value)||(n+="("+r.value+") "),n+="0x"+In.util.bytesToHex(r.value);else if(r.type===ot.Type.UTF8)try{n+=In.util.decodeUtf8(r.value)}catch(p){if(p.message==="URI malformed")n+="0x"+In.util.bytesToHex(r.value)+" (malformed UTF8)";else throw p}else r.type===ot.Type.PRINTABLESTRING||r.type===ot.Type.IA5String?n+=r.value:AU.test(r.value)?n+="0x"+In.util.bytesToHex(r.value):r.value.length===0?n+="[null]":n+=r.value}return n}});var Ec=Z((ONe,IU)=>{"use strict";var kN=pr();IU.exports=kN.md=kN.md||{};kN.md.algorithms=kN.md.algorithms||{}});var Qg=Z((PNe,TU)=>{"use strict";var zl=pr();Ec();kr();var fue=TU.exports=zl.hmac=zl.hmac||{};fue.create=function(){var r=null,e=null,t=null,n=null,i={};return i.start=function(s,a){if(s!==null)if(typeof s=="string")if(s=s.toLowerCase(),s in zl.md.algorithms)e=zl.md.algorithms[s].create();else throw new Error('Unknown hash algorithm "'+s+'"');else e=s;if(a===null)a=r;else{if(typeof a=="string")a=zl.util.createBuffer(a);else if(zl.util.isArray(a)){var u=a;a=zl.util.createBuffer();for(var c=0;c<u.length;++c)a.putByte(u[c])}var l=a.length();l>e.blockLength&&(e.start(),e.update(a.bytes()),a=e.digest()),t=zl.util.createBuffer(),n=zl.util.createBuffer(),l=a.length();for(var c=0;c<l;++c){var u=a.at(c);t.putByte(54^u),n.putByte(92^u)}if(l<e.blockLength)for(var u=e.blockLength-l,c=0;c<u;++c)t.putByte(54),n.putByte(92);r=a,t=t.bytes(),n=n.bytes()}e.start(),e.update(t)},i.update=function(s){e.update(s)},i.getMac=function(){var s=e.digest().bytes();return e.start(),e.update(n),e.update(s),e.digest()},i.digest=i.getMac,i}});var jN=Z((BNe,OU)=>{"use strict";var Ac=pr();Ec();kr();var DU=OU.exports=Ac.md5=Ac.md5||{};Ac.md.md5=Ac.md.algorithms.md5=DU;DU.create=function(){_U||pue();var r=null,e=Ac.util.createBuffer(),t=new Array(16),n={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Ac.util.createBuffer(),r={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Ac.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),RU(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Ac.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(NP.substr(0,n.blockLength-a));for(var u,c=0,l=n.fullMessageLength.length-1;l>=0;--l)u=n.fullMessageLength[l]*8+c,c=u/4294967296>>>0,i.putInt32Le(u>>>0);var p={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3};RU(p,t,i);var m=Ac.util.createBuffer();return m.putInt32Le(p.h0),m.putInt32Le(p.h1),m.putInt32Le(p.h2),m.putInt32Le(p.h3),m},n};var NP=null,VN=null,Tx=null,Yg=null,_U=!1;function pue(){NP="\x80",NP+=Ac.util.fillString("\0",64),VN=[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],Tx=[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],Yg=new Array(64);for(var r=0;r<64;++r)Yg[r]=Math.floor(Math.abs(Math.sin(r+1))*4294967296);_U=!0}o(pue,"_init");function RU(r,e,t){for(var n,i,s,a,u,c,l,p,m=t.length();m>=64;){for(i=r.h0,s=r.h1,a=r.h2,u=r.h3,p=0;p<16;++p)e[p]=t.getInt32Le(),c=u^s&(a^u),n=i+c+Yg[p]+e[p],l=Tx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<32;++p)c=a^u&(s^a),n=i+c+Yg[p]+e[VN[p]],l=Tx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<48;++p)c=s^a^u,n=i+c+Yg[p]+e[VN[p]],l=Tx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<64;++p)c=a^(s|~u),n=i+c+Yg[p]+e[VN[p]],l=Tx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;r.h0=r.h0+i|0,r.h1=r.h1+s|0,r.h2=r.h2+a|0,r.h3=r.h3+u|0,m-=64}}o(RU,"_update")});var Jd=Z((LNe,BU)=>{"use strict";var MN=pr();kr();var PU=BU.exports=MN.pem=MN.pem||{};PU.encode=function(r,e){e=e||{};var t="-----BEGIN "+r.type+`-----\r
7
+ `,r.composed){for(var a=0,u="",s=0;s<r.value.length;++s)r.value[s]!==void 0&&(a+=1,u+=ct.prettyPrint(r.value[s],e+1,t),s+1<r.value.length&&(u+=","));n+=i+"Sub values: "+a+u}else{if(n+=i+"Value: ",r.type===ct.Type.OID){var c=ct.derToOid(r.value);n+=c,In.pki&&In.pki.oids&&c in In.pki.oids&&(n+=" ("+In.pki.oids[c]+") ")}if(r.type===ct.Type.INTEGER)try{n+=ct.derToInteger(r.value)}catch{n+="0x"+In.util.bytesToHex(r.value)}else if(r.type===ct.Type.BITSTRING){if(r.value.length>1?n+="0x"+In.util.bytesToHex(r.value.slice(1)):n+="(none)",r.value.length>0){var l=r.value.charCodeAt(0);l==1?n+=" (1 unused bit shown)":l>1&&(n+=" ("+l+" unused bits shown)")}}else if(r.type===ct.Type.OCTETSTRING)AU.test(r.value)||(n+="("+r.value+") "),n+="0x"+In.util.bytesToHex(r.value);else if(r.type===ct.Type.UTF8)try{n+=In.util.decodeUtf8(r.value)}catch(p){if(p.message==="URI malformed")n+="0x"+In.util.bytesToHex(r.value)+" (malformed UTF8)";else throw p}else r.type===ct.Type.PRINTABLESTRING||r.type===ct.Type.IA5String?n+=r.value:AU.test(r.value)?n+="0x"+In.util.bytesToHex(r.value):r.value.length===0?n+="[null]":n+=r.value}return n}});var Ec=Z((ONe,IU)=>{"use strict";var kN=pr();IU.exports=kN.md=kN.md||{};kN.md.algorithms=kN.md.algorithms||{}});var Qg=Z((PNe,TU)=>{"use strict";var zl=pr();Ec();kr();var fue=TU.exports=zl.hmac=zl.hmac||{};fue.create=function(){var r=null,e=null,t=null,n=null,i={};return i.start=function(s,a){if(s!==null)if(typeof s=="string")if(s=s.toLowerCase(),s in zl.md.algorithms)e=zl.md.algorithms[s].create();else throw new Error('Unknown hash algorithm "'+s+'"');else e=s;if(a===null)a=r;else{if(typeof a=="string")a=zl.util.createBuffer(a);else if(zl.util.isArray(a)){var u=a;a=zl.util.createBuffer();for(var c=0;c<u.length;++c)a.putByte(u[c])}var l=a.length();l>e.blockLength&&(e.start(),e.update(a.bytes()),a=e.digest()),t=zl.util.createBuffer(),n=zl.util.createBuffer(),l=a.length();for(var c=0;c<l;++c){var u=a.at(c);t.putByte(54^u),n.putByte(92^u)}if(l<e.blockLength)for(var u=e.blockLength-l,c=0;c<u;++c)t.putByte(54),n.putByte(92);r=a,t=t.bytes(),n=n.bytes()}e.start(),e.update(t)},i.update=function(s){e.update(s)},i.getMac=function(){var s=e.digest().bytes();return e.start(),e.update(n),e.update(s),e.digest()},i.digest=i.getMac,i}});var jN=Z((BNe,OU)=>{"use strict";var Ac=pr();Ec();kr();var DU=OU.exports=Ac.md5=Ac.md5||{};Ac.md.md5=Ac.md.algorithms.md5=DU;DU.create=function(){_U||pue();var r=null,e=Ac.util.createBuffer(),t=new Array(16),n={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Ac.util.createBuffer(),r={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Ac.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),RU(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Ac.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(NP.substr(0,n.blockLength-a));for(var u,c=0,l=n.fullMessageLength.length-1;l>=0;--l)u=n.fullMessageLength[l]*8+c,c=u/4294967296>>>0,i.putInt32Le(u>>>0);var p={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3};RU(p,t,i);var m=Ac.util.createBuffer();return m.putInt32Le(p.h0),m.putInt32Le(p.h1),m.putInt32Le(p.h2),m.putInt32Le(p.h3),m},n};var NP=null,VN=null,Tx=null,Yg=null,_U=!1;function pue(){NP="\x80",NP+=Ac.util.fillString("\0",64),VN=[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],Tx=[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],Yg=new Array(64);for(var r=0;r<64;++r)Yg[r]=Math.floor(Math.abs(Math.sin(r+1))*4294967296);_U=!0}o(pue,"_init");function RU(r,e,t){for(var n,i,s,a,u,c,l,p,m=t.length();m>=64;){for(i=r.h0,s=r.h1,a=r.h2,u=r.h3,p=0;p<16;++p)e[p]=t.getInt32Le(),c=u^s&(a^u),n=i+c+Yg[p]+e[p],l=Tx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<32;++p)c=a^u&(s^a),n=i+c+Yg[p]+e[VN[p]],l=Tx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<48;++p)c=s^a^u,n=i+c+Yg[p]+e[VN[p]],l=Tx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<64;++p)c=a^(s|~u),n=i+c+Yg[p]+e[VN[p]],l=Tx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;r.h0=r.h0+i|0,r.h1=r.h1+s|0,r.h2=r.h2+a|0,r.h3=r.h3+u|0,m-=64}}o(RU,"_update")});var Jd=Z((LNe,BU)=>{"use strict";var MN=pr();kr();var PU=BU.exports=MN.pem=MN.pem||{};PU.encode=function(r,e){e=e||{};var t="-----BEGIN "+r.type+`-----\r
8
8
  `,n;if(r.procType&&(n={name:"Proc-Type",values:[String(r.procType.version),r.procType.type]},t+=UN(n)),r.contentDomain&&(n={name:"Content-Domain",values:[r.contentDomain]},t+=UN(n)),r.dekInfo&&(n={name:"DEK-Info",values:[r.dekInfo.algorithm]},r.dekInfo.parameters&&n.values.push(r.dekInfo.parameters),t+=UN(n)),r.headers)for(var i=0;i<r.headers.length;++i)t+=UN(r.headers[i]);return r.procType&&(t+=`\r
9
9
  `),t+=MN.util.encode64(r.body,e.maxline||64)+`\r
10
10
  `,t+="-----END "+r.type+`-----\r
11
11
  `,t};PU.decode=function(r){for(var e=[],t=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,n=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,i=/\r?\n/,s;s=t.exec(r),!!s;){var a=s[1];a==="NEW CERTIFICATE REQUEST"&&(a="CERTIFICATE REQUEST");var u={type:a,procType:null,contentDomain:null,dekInfo:null,headers:[],body:MN.util.decode64(s[3])};if(e.push(u),!!s[2]){for(var c=s[2].split(i),l=0;s&&l<c.length;){for(var p=c[l].replace(/\s+$/,""),m=l+1;m<c.length;++m){var g=c[m];if(!/\s/.test(g[0]))break;p+=g,l=m}if(s=p.match(n),s){for(var S={name:s[1],values:[]},v=s[2].split(","),b=0;b<v.length;++b)S.values.push(hue(v[b]));if(u.procType)if(!u.contentDomain&&S.name==="Content-Domain")u.contentDomain=v[0]||"";else if(!u.dekInfo&&S.name==="DEK-Info"){if(S.values.length===0)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');u.dekInfo={algorithm:v[0],parameters:v[1]||null}}else u.headers.push(S);else{if(S.name!=="Proc-Type")throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(S.values.length!==2)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');u.procType={version:v[0],type:v[1]}}}++l}if(u.procType==="ENCRYPTED"&&!u.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(e.length===0)throw new Error("Invalid PEM formatted message.");return e};function UN(r){for(var e=r.name+": ",t=[],n=o(function(c,l){return" "+l},"insertSpace"),i=0;i<r.values.length;++i)t.push(r.values[i].replace(/^(\S+\r\n)/,n));e+=t.join(",")+`\r
12
12
  `;for(var s=0,a=-1,i=0;i<e.length;++i,++s)if(s>65&&a!==-1){var u=e[a];u===","?(++a,e=e.substr(0,a)+`\r
13
13
  `+e.substr(a)):e=e.substr(0,a)+`\r
14
- `+u+e.substr(a+1),s=i-a-1,a=-1,++i}else(e[i]===" "||e[i]===" "||e[i]===",")&&(a=i);return e}o(UN,"foldHeader");function hue(r){return r.replace(/^\s+/,"")}o(hue,"ltrim")});var Rx=Z((VNe,LU)=>{"use strict";var Fn=pr();ON();bP();kr();LU.exports=Fn.des=Fn.des||{};Fn.des.startEncrypting=function(r,e,t,n){var i=qN({key:r,output:t,decrypt:!1,mode:n||(e===null?"ECB":"CBC")});return i.start(e),i};Fn.des.createEncryptionCipher=function(r,e){return qN({key:r,output:null,decrypt:!1,mode:e})};Fn.des.startDecrypting=function(r,e,t,n){var i=qN({key:r,output:t,decrypt:!0,mode:n||(e===null?"ECB":"CBC")});return i.start(e),i};Fn.des.createDecryptionCipher=function(r,e){return qN({key:r,output:null,decrypt:!0,mode:e})};Fn.des.Algorithm=function(r,e){var t=this;t.name=r,t.mode=new e({blockSize:8,cipher:{encrypt:o(function(n,i){return FU(t._keys,n,i,!1)},"encrypt"),decrypt:o(function(n,i){return FU(t._keys,n,i,!0)},"decrypt")}}),t._init=!1};Fn.des.Algorithm.prototype.initialize=function(r){if(!this._init){var e=Fn.util.createBuffer(r.key);if(this.name.indexOf("3DES")===0&&e.length()!==24)throw new Error("Invalid Triple-DES key size: "+e.length()*8);this._keys=wue(e),this._init=!0}};Nc("DES-ECB",Fn.cipher.modes.ecb);Nc("DES-CBC",Fn.cipher.modes.cbc);Nc("DES-CFB",Fn.cipher.modes.cfb);Nc("DES-OFB",Fn.cipher.modes.ofb);Nc("DES-CTR",Fn.cipher.modes.ctr);Nc("3DES-ECB",Fn.cipher.modes.ecb);Nc("3DES-CBC",Fn.cipher.modes.cbc);Nc("3DES-CFB",Fn.cipher.modes.cfb);Nc("3DES-OFB",Fn.cipher.modes.ofb);Nc("3DES-CTR",Fn.cipher.modes.ctr);function Nc(r,e){var t=o(function(){return new Fn.des.Algorithm(r,e)},"factory");Fn.cipher.registerAlgorithm(r,t)}o(Nc,"registerAlgorithm");var due=[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],mue=[-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],gue=[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],vue=[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],yue=[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],Sue=[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],xue=[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],bue=[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 wue(r){for(var e=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],t=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],n=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],i=[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],a=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],u=[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],p=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],m=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],g=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],S=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],v=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],b=r.length()>8?3:1,x=[],E=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],N=0,w,C=0;C<b;C++){var A=r.getInt32(),R=r.getInt32();w=(A>>>4^R)&252645135,R^=w,A^=w<<4,w=(R>>>-16^A)&65535,A^=w,R^=w<<-16,w=(A>>>2^R)&858993459,R^=w,A^=w<<2,w=(R>>>-16^A)&65535,A^=w,R^=w<<-16,w=(A>>>1^R)&1431655765,R^=w,A^=w<<1,w=(R>>>8^A)&16711935,A^=w,R^=w<<8,w=(A>>>1^R)&1431655765,R^=w,A^=w<<1,w=A<<8|R>>>20&240,A=R<<24|R<<8&16711680|R>>>8&65280|R>>>24&240,R=w;for(var M=0;M<E.length;++M){E[M]?(A=A<<2|A>>>26,R=R<<2|R>>>26):(A=A<<1|A>>>27,R=R<<1|R>>>27),A&=-15,R&=-15;var _=e[A>>>28]|t[A>>>24&15]|n[A>>>20&15]|i[A>>>16&15]|s[A>>>12&15]|a[A>>>8&15]|u[A>>>4&15],H=c[R>>>28]|l[R>>>24&15]|p[R>>>20&15]|m[R>>>16&15]|g[R>>>12&15]|S[R>>>8&15]|v[R>>>4&15];w=(H>>>16^_)&65535,x[N++]=_^w,x[N++]=H^w<<16}}return x}o(wue,"_createKeys");function FU(r,e,t,n){var i=r.length===32?3:9,s;i===3?s=n?[30,-2,-2]:[0,32,2]:s=n?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var a,u=e[0],c=e[1];a=(u>>>4^c)&252645135,c^=a,u^=a<<4,a=(u>>>16^c)&65535,c^=a,u^=a<<16,a=(c>>>2^u)&858993459,u^=a,c^=a<<2,a=(c>>>8^u)&16711935,u^=a,c^=a<<8,a=(u>>>1^c)&1431655765,c^=a,u^=a<<1,u=u<<1|u>>>31,c=c<<1|c>>>31;for(var l=0;l<i;l+=3){for(var p=s[l+1],m=s[l+2],g=s[l];g!=p;g+=m){var S=c^r[g],v=(c>>>4|c<<28)^r[g+1];a=u,u=c,c=a^(mue[S>>>24&63]|vue[S>>>16&63]|Sue[S>>>8&63]|bue[S&63]|due[v>>>24&63]|gue[v>>>16&63]|yue[v>>>8&63]|xue[v&63])}a=u,u=c,c=a}u=u>>>1|u<<31,c=c>>>1|c<<31,a=(u>>>1^c)&1431655765,c^=a,u^=a<<1,a=(c>>>8^u)&16711935,u^=a,c^=a<<8,a=(c>>>2^u)&858993459,u^=a,c^=a<<2,a=(u>>>16^c)&65535,c^=a,u^=a<<16,a=(u>>>4^c)&252645135,c^=a,u^=a<<4,t[0]=u,t[1]=c}o(FU,"_updateBlock");function qN(r){r=r||{};var e=(r.mode||"CBC").toUpperCase(),t="DES-"+e,n;r.decrypt?n=Fn.cipher.createDecipher(t,r.key):n=Fn.cipher.createCipher(t,r.key);var i=n.start;return n.start=function(s,a){var u=null;a instanceof Fn.util.ByteBuffer&&(u=a,a={}),a=a||{},a.output=u,a.iv=s,i.call(n,a)},n}o(qN,"_createCipher")});var HN=Z((UNe,kU)=>{"use strict";var pa=pr();Qg();Ec();kr();var Cue=pa.pkcs5=pa.pkcs5||{},Kl;pa.util.isNodejs&&!pa.options.usePureJavaScript&&(Kl=require("crypto"));kU.exports=pa.pbkdf2=Cue.pbkdf2=function(r,e,t,n,i,s){if(typeof i=="function"&&(s=i,i=null),pa.util.isNodejs&&!pa.options.usePureJavaScript&&Kl.pbkdf2&&(i===null||typeof i!="object")&&(Kl.pbkdf2Sync.length>4||!i||i==="sha1"))return typeof i!="string"&&(i="sha1"),r=Buffer.from(r,"binary"),e=Buffer.from(e,"binary"),s?Kl.pbkdf2Sync.length===4?Kl.pbkdf2(r,e,t,n,function(w,C){if(w)return s(w);s(null,C.toString("binary"))}):Kl.pbkdf2(r,e,t,n,i,function(w,C){if(w)return s(w);s(null,C.toString("binary"))}):Kl.pbkdf2Sync.length===4?Kl.pbkdf2Sync(r,e,t,n).toString("binary"):Kl.pbkdf2Sync(r,e,t,n,i).toString("binary");if((typeof i>"u"||i===null)&&(i="sha1"),typeof i=="string"){if(!(i in pa.md.algorithms))throw new Error("Unknown hash algorithm: "+i);i=pa.md[i].create()}var a=i.digestLength;if(n>4294967295*a){var u=new Error("Derived key is too long.");if(s)return s(u);throw u}var c=Math.ceil(n/a),l=n-(c-1)*a,p=pa.hmac.create();p.start(i,r);var m="",g,S,v;if(!s){for(var b=1;b<=c;++b){p.start(null,null),p.update(e),p.update(pa.util.int32ToBytes(b)),g=v=p.digest().getBytes();for(var x=2;x<=t;++x)p.start(null,null),p.update(v),S=p.digest().getBytes(),g=pa.util.xorBytes(g,S,a),v=S;m+=b<c?g:g.substr(0,l)}return m}var b=1,x;function E(){if(b>c)return s(null,m);p.start(null,null),p.update(e),p.update(pa.util.int32ToBytes(b)),g=v=p.digest().getBytes(),x=2,N()}o(E,"outer");function N(){if(x<=t)return p.start(null,null),p.update(v),S=p.digest().getBytes(),g=pa.util.xorBytes(g,S,a),v=S,++x,pa.util.setImmediate(N);m+=b<c?g:g.substr(0,l),++b,E()}o(N,"inner"),E()}});var TP=Z((qNe,qU)=>{"use strict";var Ic=pr();Ec();kr();var jU=qU.exports=Ic.sha256=Ic.sha256||{};Ic.md.sha256=Ic.md.algorithms.sha256=jU;jU.create=function(){UU||Eue();var r=null,e=Ic.util.createBuffer(),t=new Array(64),n={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Ic.util.createBuffer(),r={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Ic.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),VU(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Ic.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(IP.substr(0,n.blockLength-a));for(var u,c,l=n.fullMessageLength[0]*8,p=0;p<n.fullMessageLength.length-1;++p)u=n.fullMessageLength[p+1]*8,c=u/4294967296>>>0,l+=c,i.putInt32(l>>>0),l=u>>>0;i.putInt32(l);var m={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3,h4:r.h4,h5:r.h5,h6:r.h6,h7:r.h7};VU(m,t,i);var g=Ic.util.createBuffer();return g.putInt32(m.h0),g.putInt32(m.h1),g.putInt32(m.h2),g.putInt32(m.h3),g.putInt32(m.h4),g.putInt32(m.h5),g.putInt32(m.h6),g.putInt32(m.h7),g},n};var IP=null,UU=!1,MU=null;function Eue(){IP="\x80",IP+=Ic.util.fillString("\0",64),MU=[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],UU=!0}o(Eue,"_init");function VU(r,e,t){for(var n,i,s,a,u,c,l,p,m,g,S,v,b,x,E,N=t.length();N>=64;){for(l=0;l<16;++l)e[l]=t.getInt32();for(;l<64;++l)n=e[l-2],n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,i=e[l-15],i=(i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,e[l]=n+e[l-7]+i+e[l-16]|0;for(p=r.h0,m=r.h1,g=r.h2,S=r.h3,v=r.h4,b=r.h5,x=r.h6,E=r.h7,l=0;l<64;++l)a=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),u=x^v&(b^x),s=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),c=p&m|g&(p^m),n=E+a+u+MU[l]+e[l],i=s+c,E=x,x=b,b=v,v=S+n>>>0,S=g,g=m,m=p,p=n+i>>>0;r.h0=r.h0+p|0,r.h1=r.h1+m|0,r.h2=r.h2+g|0,r.h3=r.h3+S|0,r.h4=r.h4+v|0,r.h5=r.h5+b|0,r.h6=r.h6+x|0,r.h7=r.h7+E|0,N-=64}}o(VU,"_update")});var RP=Z((zNe,HU)=>{"use strict";var Tc=pr();kr();var zN=null;Tc.util.isNodejs&&!Tc.options.usePureJavaScript&&!process.versions["node-webkit"]&&(zN=require("crypto"));var Aue=HU.exports=Tc.prng=Tc.prng||{};Aue.create=function(r){for(var e={plugin:r,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},t=r.md,n=new Array(32),i=0;i<32;++i)n[i]=t.create();e.pools=n,e.pool=0,e.generate=function(l,p){if(!p)return e.generateSync(l);var m=e.plugin.cipher,g=e.plugin.increment,S=e.plugin.formatKey,v=e.plugin.formatSeed,b=Tc.util.createBuffer();e.key=null,x();function x(E){if(E)return p(E);if(b.length()>=l)return p(null,b.getBytes(l));if(e.generated>1048575&&(e.key=null),e.key===null)return Tc.util.nextTick(function(){s(x)});var N=m(e.key,e.seed);e.generated+=N.length,b.putBytes(N),e.key=S(m(e.key,g(e.seed))),e.seed=v(m(e.key,e.seed)),Tc.util.setImmediate(x)}o(x,"generate")},e.generateSync=function(l){var p=e.plugin.cipher,m=e.plugin.increment,g=e.plugin.formatKey,S=e.plugin.formatSeed;e.key=null;for(var v=Tc.util.createBuffer();v.length()<l;){e.generated>1048575&&(e.key=null),e.key===null&&a();var b=p(e.key,e.seed);e.generated+=b.length,v.putBytes(b),e.key=g(p(e.key,m(e.seed))),e.seed=S(p(e.key,e.seed))}return v.getBytes(l)};function s(l){if(e.pools[0].messageLength>=32)return u(),l();var p=32-e.pools[0].messageLength<<5;e.seedFile(p,function(m,g){if(m)return l(m);e.collect(g),u(),l()})}o(s,"_reseed");function a(){if(e.pools[0].messageLength>=32)return u();var l=32-e.pools[0].messageLength<<5;e.collect(e.seedFileSync(l)),u()}o(a,"_reseedSync");function u(){e.reseeds=e.reseeds===4294967295?0:e.reseeds+1;var l=e.plugin.md.create();l.update(e.keyBytes);for(var p=1,m=0;m<32;++m)e.reseeds%p===0&&(l.update(e.pools[m].digest().getBytes()),e.pools[m].start()),p=p<<1;e.keyBytes=l.digest().getBytes(),l.start(),l.update(e.keyBytes);var g=l.digest().getBytes();e.key=e.plugin.formatKey(e.keyBytes),e.seed=e.plugin.formatSeed(g),e.generated=0}o(u,"_seed");function c(l){var p=null,m=Tc.util.globalScope,g=m.crypto||m.msCrypto;g&&g.getRandomValues&&(p=o(function(A){return g.getRandomValues(A)},"getRandomValues"));var S=Tc.util.createBuffer();if(p)for(;S.length()<l;){var v=Math.max(1,Math.min(l-S.length(),65536)/4),b=new Uint32Array(Math.floor(v));try{p(b);for(var x=0;x<b.length;++x)S.putInt32(b[x])}catch(A){if(!(typeof QuotaExceededError<"u"&&A instanceof QuotaExceededError))throw A}}if(S.length()<l)for(var E,N,w,C=Math.floor(Math.random()*65536);S.length()<l;){N=16807*(C&65535),E=16807*(C>>16),N+=(E&32767)<<16,N+=E>>15,N=(N&2147483647)+(N>>31),C=N&4294967295;for(var x=0;x<3;++x)w=C>>>(x<<3),w^=Math.floor(Math.random()*256),S.putByte(w&255)}return S.getBytes(l)}return o(c,"defaultSeedFile"),zN?(e.seedFile=function(l,p){zN.randomBytes(l,function(m,g){if(m)return p(m);p(null,g.toString())})},e.seedFileSync=function(l){return zN.randomBytes(l).toString()}):(e.seedFile=function(l,p){try{p(null,c(l))}catch(m){p(m)}},e.seedFileSync=c),e.collect=function(l){for(var p=l.length,m=0;m<p;++m)e.pools[e.pool].update(l.substr(m,1)),e.pool=e.pool===31?0:e.pool+1},e.collectInt=function(l,p){for(var m="",g=0;g<p;g+=8)m+=String.fromCharCode(l>>g&255);e.collect(m)},e.registerWorker=function(l){if(l===self)e.seedFile=function(m,g){function S(v){var b=v.data;b.forge&&b.forge.prng&&(self.removeEventListener("message",S),g(b.forge.prng.err,b.forge.prng.bytes))}o(S,"listener"),self.addEventListener("message",S),self.postMessage({forge:{prng:{needed:m}}})};else{var p=o(function(m){var g=m.data;g.forge&&g.forge.prng&&e.seedFile(g.forge.prng.needed,function(S,v){l.postMessage({forge:{prng:{err:S,bytes:v}}})})},"listener");l.addEventListener("message",p)}},e}});var Fo=Z(($Ne,DP)=>{"use strict";var Gi=pr();_p();TP();RP();kr();(function(){if(Gi.random&&Gi.random.getBytes){DP.exports=Gi.random;return}(function(r){var e={},t=new Array(4),n=Gi.util.createBuffer();e.formatKey=function(m){var g=Gi.util.createBuffer(m);return m=new Array(4),m[0]=g.getInt32(),m[1]=g.getInt32(),m[2]=g.getInt32(),m[3]=g.getInt32(),Gi.aes._expandKey(m,!1)},e.formatSeed=function(m){var g=Gi.util.createBuffer(m);return m=new Array(4),m[0]=g.getInt32(),m[1]=g.getInt32(),m[2]=g.getInt32(),m[3]=g.getInt32(),m},e.cipher=function(m,g){return Gi.aes._updateBlock(m,g,t,!1),n.putInt32(t[0]),n.putInt32(t[1]),n.putInt32(t[2]),n.putInt32(t[3]),n.getBytes()},e.increment=function(m){return++m[3],m},e.md=Gi.md.sha256;function i(){var m=Gi.prng.create(e);return m.getBytes=function(g,S){return m.generate(g,S)},m.getBytesSync=function(g){return m.generate(g)},m}o(i,"spawnPrng");var s=i(),a=null,u=Gi.util.globalScope,c=u.crypto||u.msCrypto;if(c&&c.getRandomValues&&(a=o(function(m){return c.getRandomValues(m)},"getRandomValues")),Gi.options.usePureJavaScript||!Gi.util.isNodejs&&!a){if(typeof window>"u"||window.document,s.collectInt(+new Date,32),typeof navigator<"u"){var l="";for(var p in navigator)try{typeof navigator[p]=="string"&&(l+=navigator[p])}catch{}s.collect(l),l=null}r&&(r().mousemove(function(m){s.collectInt(m.clientX,16),s.collectInt(m.clientY,16)}),r().keypress(function(m){s.collectInt(m.charCode,8)}))}if(!Gi.random)Gi.random=s;else for(var p in s)Gi.random[p]=s[p];Gi.random.createInstance=i,DP.exports=Gi.random})(typeof jQuery<"u"?jQuery:null)})()});var OP=Z((XNe,$U)=>{"use strict";var Da=pr();kr();var _P=[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],zU=[1,2,3,5],Nue=o(function(r,e){return r<<e&65535|(r&65535)>>16-e},"rol"),Iue=o(function(r,e){return(r&65535)>>e|r<<16-e&65535},"ror");$U.exports=Da.rc2=Da.rc2||{};Da.rc2.expandKey=function(r,e){typeof r=="string"&&(r=Da.util.createBuffer(r)),e=e||128;var t=r,n=r.length(),i=e,s=Math.ceil(i/8),a=255>>(i&7),u;for(u=n;u<128;u++)t.putByte(_P[t.at(u-1)+t.at(u-n)&255]);for(t.setAt(128-s,_P[t.at(128-s)&a]),u=127-s;u>=0;u--)t.setAt(u,_P[t.at(u+1)^t.at(u+s)]);return t};var KU=o(function(r,e,t){var n=!1,i=null,s=null,a=null,u,c,l,p,m=[];for(r=Da.rc2.expandKey(r,e),l=0;l<64;l++)m.push(r.getInt16Le());t?(u=o(function(v){for(l=0;l<4;l++)v[l]+=m[p]+(v[(l+3)%4]&v[(l+2)%4])+(~v[(l+3)%4]&v[(l+1)%4]),v[l]=Nue(v[l],zU[l]),p++},"mixRound"),c=o(function(v){for(l=0;l<4;l++)v[l]+=m[v[(l+3)%4]&63]},"mashRound")):(u=o(function(v){for(l=3;l>=0;l--)v[l]=Iue(v[l],zU[l]),v[l]-=m[p]+(v[(l+3)%4]&v[(l+2)%4])+(~v[(l+3)%4]&v[(l+1)%4]),p--},"mixRound"),c=o(function(v){for(l=3;l>=0;l--)v[l]-=m[v[(l+3)%4]&63]},"mashRound"));var g=o(function(v){var b=[];for(l=0;l<4;l++){var x=i.getInt16Le();a!==null&&(t?x^=a.getInt16Le():a.putInt16Le(x)),b.push(x&65535)}p=t?0:63;for(var E=0;E<v.length;E++)for(var N=0;N<v[E][0];N++)v[E][1](b);for(l=0;l<4;l++)a!==null&&(t?a.putInt16Le(b[l]):b[l]^=a.getInt16Le()),s.putInt16Le(b[l])},"runPlan"),S=null;return S={start:o(function(v,b){v&&typeof v=="string"&&(v=Da.util.createBuffer(v)),n=!1,i=Da.util.createBuffer(),s=b||new Da.util.createBuffer,a=v,S.output=s},"start"),update:o(function(v){for(n||i.putBuffer(v);i.length()>=8;)g([[5,u],[1,c],[6,u],[1,c],[5,u]])},"update"),finish:o(function(v){var b=!0;if(t)if(v)b=v(8,i,!t);else{var x=i.length()===8?8:8-i.length();i.fillWithByte(x,x)}if(b&&(n=!0,S.update()),!t&&(b=i.length()===0,b))if(v)b=v(8,s,!t);else{var E=s.length(),N=s.at(E-1);N>E?b=!1:s.truncate(N)}return b},"finish")},S},"createCipher");Da.rc2.startEncrypting=function(r,e,t){var n=Da.rc2.createEncryptionCipher(r,128);return n.start(e,t),n};Da.rc2.createEncryptionCipher=function(r,e){return KU(r,e,!0)};Da.rc2.startDecrypting=function(r,e,t){var n=Da.rc2.createDecryptionCipher(r,128);return n.start(e,t),n};Da.rc2.createDecryptionCipher=function(r,e){return KU(r,e,!1)}});var _x=Z((JNe,eM)=>{"use strict";var PP=pr();eM.exports=PP.jsbn=PP.jsbn||{};var $l,Tue=0xdeadbeefcafe,GU=(Tue&16777215)==15715070;function He(r,e,t){this.data=[],r!=null&&(typeof r=="number"?this.fromNumber(r,e,t):e==null&&typeof r!="string"?this.fromString(r,256):this.fromString(r,e))}o(He,"BigInteger");PP.jsbn.BigInteger=He;function Vr(){return new He(null)}o(Vr,"nbi");function Rue(r,e,t,n,i,s){for(;--s>=0;){var a=e*this.data[r++]+t.data[n]+i;i=Math.floor(a/67108864),t.data[n++]=a&67108863}return i}o(Rue,"am1");function Due(r,e,t,n,i,s){for(var a=e&32767,u=e>>15;--s>=0;){var c=this.data[r]&32767,l=this.data[r++]>>15,p=u*c+l*a;c=a*c+((p&32767)<<15)+t.data[n]+(i&1073741823),i=(c>>>30)+(p>>>15)+u*l+(i>>>30),t.data[n++]=c&1073741823}return i}o(Due,"am2");function XU(r,e,t,n,i,s){for(var a=e&16383,u=e>>14;--s>=0;){var c=this.data[r]&16383,l=this.data[r++]>>14,p=u*c+l*a;c=a*c+((p&16383)<<14)+t.data[n]+i,i=(c>>28)+(p>>14)+u*l,t.data[n++]=c&268435455}return i}o(XU,"am3");typeof navigator>"u"?(He.prototype.am=XU,$l=28):GU&&navigator.appName=="Microsoft Internet Explorer"?(He.prototype.am=Due,$l=30):GU&&navigator.appName!="Netscape"?(He.prototype.am=Rue,$l=26):(He.prototype.am=XU,$l=28);He.prototype.DB=$l;He.prototype.DM=(1<<$l)-1;He.prototype.DV=1<<$l;var BP=52;He.prototype.FV=Math.pow(2,BP);He.prototype.F1=BP-$l;He.prototype.F2=2*$l-BP;var _ue="0123456789abcdefghijklmnopqrstuvwxyz",KN=new Array,Zg,Lo;Zg=48;for(Lo=0;Lo<=9;++Lo)KN[Zg++]=Lo;Zg=97;for(Lo=10;Lo<36;++Lo)KN[Zg++]=Lo;Zg=65;for(Lo=10;Lo<36;++Lo)KN[Zg++]=Lo;function WU(r){return _ue.charAt(r)}o(WU,"int2char");function JU(r,e){var t=KN[r.charCodeAt(e)];return t??-1}o(JU,"intAt");function Oue(r){for(var e=this.t-1;e>=0;--e)r.data[e]=this.data[e];r.t=this.t,r.s=this.s}o(Oue,"bnpCopyTo");function Pue(r){this.t=1,this.s=r<0?-1:0,r>0?this.data[0]=r:r<-1?this.data[0]=r+this.DV:this.t=0}o(Pue,"bnpFromInt");function Pp(r){var e=Vr();return e.fromInt(r),e}o(Pp,"nbv");function Bue(r,e){var t;if(e==16)t=4;else if(e==8)t=3;else if(e==256)t=8;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else{this.fromRadix(r,e);return}this.t=0,this.s=0;for(var n=r.length,i=!1,s=0;--n>=0;){var a=t==8?r[n]&255:JU(r,n);if(a<0){r.charAt(n)=="-"&&(i=!0);continue}i=!1,s==0?this.data[this.t++]=a:s+t>this.DB?(this.data[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this.data[this.t++]=a>>this.DB-s):this.data[this.t-1]|=a<<s,s+=t,s>=this.DB&&(s-=this.DB)}t==8&&(r[0]&128)!=0&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&He.ZERO.subTo(this,this)}o(Bue,"bnpFromString");function Fue(){for(var r=this.s&this.DM;this.t>0&&this.data[this.t-1]==r;)--this.t}o(Fue,"bnpClamp");function Lue(r){if(this.s<0)return"-"+this.negate().toString(r);var e;if(r==16)e=4;else if(r==8)e=3;else if(r==2)e=1;else if(r==32)e=5;else if(r==4)e=2;else return this.toRadix(r);var t=(1<<e)-1,n,i=!1,s="",a=this.t,u=this.DB-a*this.DB%e;if(a-- >0)for(u<this.DB&&(n=this.data[a]>>u)>0&&(i=!0,s=WU(n));a>=0;)u<e?(n=(this.data[a]&(1<<u)-1)<<e-u,n|=this.data[--a]>>(u+=this.DB-e)):(n=this.data[a]>>(u-=e)&t,u<=0&&(u+=this.DB,--a)),n>0&&(i=!0),i&&(s+=WU(n));return i?s:"0"}o(Lue,"bnToString");function kue(){var r=Vr();return He.ZERO.subTo(this,r),r}o(kue,"bnNegate");function Vue(){return this.s<0?this.negate():this}o(Vue,"bnAbs");function jue(r){var e=this.s-r.s;if(e!=0)return e;var t=this.t;if(e=t-r.t,e!=0)return this.s<0?-e:e;for(;--t>=0;)if((e=this.data[t]-r.data[t])!=0)return e;return 0}o(jue,"bnCompareTo");function $N(r){var e=1,t;return(t=r>>>16)!=0&&(r=t,e+=16),(t=r>>8)!=0&&(r=t,e+=8),(t=r>>4)!=0&&(r=t,e+=4),(t=r>>2)!=0&&(r=t,e+=2),(t=r>>1)!=0&&(r=t,e+=1),e}o($N,"nbits");function Uue(){return this.t<=0?0:this.DB*(this.t-1)+$N(this.data[this.t-1]^this.s&this.DM)}o(Uue,"bnBitLength");function Mue(r,e){var t;for(t=this.t-1;t>=0;--t)e.data[t+r]=this.data[t];for(t=r-1;t>=0;--t)e.data[t]=0;e.t=this.t+r,e.s=this.s}o(Mue,"bnpDLShiftTo");function que(r,e){for(var t=r;t<this.t;++t)e.data[t-r]=this.data[t];e.t=Math.max(this.t-r,0),e.s=this.s}o(que,"bnpDRShiftTo");function Hue(r,e){var t=r%this.DB,n=this.DB-t,i=(1<<n)-1,s=Math.floor(r/this.DB),a=this.s<<t&this.DM,u;for(u=this.t-1;u>=0;--u)e.data[u+s+1]=this.data[u]>>n|a,a=(this.data[u]&i)<<t;for(u=s-1;u>=0;--u)e.data[u]=0;e.data[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()}o(Hue,"bnpLShiftTo");function zue(r,e){e.s=this.s;var t=Math.floor(r/this.DB);if(t>=this.t){e.t=0;return}var n=r%this.DB,i=this.DB-n,s=(1<<n)-1;e.data[0]=this.data[t]>>n;for(var a=t+1;a<this.t;++a)e.data[a-t-1]|=(this.data[a]&s)<<i,e.data[a-t]=this.data[a]>>n;n>0&&(e.data[this.t-t-1]|=(this.s&s)<<i),e.t=this.t-t,e.clamp()}o(zue,"bnpRShiftTo");function Kue(r,e){for(var t=0,n=0,i=Math.min(r.t,this.t);t<i;)n+=this.data[t]-r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;if(r.t<this.t){for(n-=r.s;t<this.t;)n+=this.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;t<r.t;)n-=r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n-=r.s}e.s=n<0?-1:0,n<-1?e.data[t++]=this.DV+n:n>0&&(e.data[t++]=n),e.t=t,e.clamp()}o(Kue,"bnpSubTo");function $ue(r,e){var t=this.abs(),n=r.abs(),i=t.t;for(e.t=i+n.t;--i>=0;)e.data[i]=0;for(i=0;i<n.t;++i)e.data[i+t.t]=t.am(0,n.data[i],e,i,0,t.t);e.s=0,e.clamp(),this.s!=r.s&&He.ZERO.subTo(e,e)}o($ue,"bnpMultiplyTo");function Gue(r){for(var e=this.abs(),t=r.t=2*e.t;--t>=0;)r.data[t]=0;for(t=0;t<e.t-1;++t){var n=e.am(t,e.data[t],r,2*t,0,1);(r.data[t+e.t]+=e.am(t+1,2*e.data[t],r,2*t+1,n,e.t-t-1))>=e.DV&&(r.data[t+e.t]-=e.DV,r.data[t+e.t+1]=1)}r.t>0&&(r.data[r.t-1]+=e.am(t,e.data[t],r,2*t,0,1)),r.s=0,r.clamp()}o(Gue,"bnpSquareTo");function Xue(r,e,t){var n=r.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t){e?.fromInt(0),t!=null&&this.copyTo(t);return}t==null&&(t=Vr());var s=Vr(),a=this.s,u=r.s,c=this.DB-$N(n.data[n.t-1]);c>0?(n.lShiftTo(c,s),i.lShiftTo(c,t)):(n.copyTo(s),i.copyTo(t));var l=s.t,p=s.data[l-1];if(p!=0){var m=p*(1<<this.F1)+(l>1?s.data[l-2]>>this.F2:0),g=this.FV/m,S=(1<<this.F1)/m,v=1<<this.F2,b=t.t,x=b-l,E=e??Vr();for(s.dlShiftTo(x,E),t.compareTo(E)>=0&&(t.data[t.t++]=1,t.subTo(E,t)),He.ONE.dlShiftTo(l,E),E.subTo(s,s);s.t<l;)s.data[s.t++]=0;for(;--x>=0;){var N=t.data[--b]==p?this.DM:Math.floor(t.data[b]*g+(t.data[b-1]+v)*S);if((t.data[b]+=s.am(0,N,t,x,0,l))<N)for(s.dlShiftTo(x,E),t.subTo(E,t);t.data[b]<--N;)t.subTo(E,t)}e!=null&&(t.drShiftTo(l,e),a!=u&&He.ZERO.subTo(e,e)),t.t=l,t.clamp(),c>0&&t.rShiftTo(c,t),a<0&&He.ZERO.subTo(t,t)}}}o(Xue,"bnpDivRemTo");function Wue(r){var e=Vr();return this.abs().divRemTo(r,null,e),this.s<0&&e.compareTo(He.ZERO)>0&&r.subTo(e,e),e}o(Wue,"bnMod");function Qd(r){this.m=r}o(Qd,"Classic");function Jue(r){return r.s<0||r.compareTo(this.m)>=0?r.mod(this.m):r}o(Jue,"cConvert");function Que(r){return r}o(Que,"cRevert");function Yue(r){r.divRemTo(this.m,null,r)}o(Yue,"cReduce");function Zue(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(Zue,"cMulTo");function ece(r,e){r.squareTo(e),this.reduce(e)}o(ece,"cSqrTo");Qd.prototype.convert=Jue;Qd.prototype.revert=Que;Qd.prototype.reduce=Yue;Qd.prototype.mulTo=Zue;Qd.prototype.sqrTo=ece;function tce(){if(this.t<1)return 0;var r=this.data[0];if((r&1)==0)return 0;var e=r&3;return e=e*(2-(r&15)*e)&15,e=e*(2-(r&255)*e)&255,e=e*(2-((r&65535)*e&65535))&65535,e=e*(2-r*e%this.DV)%this.DV,e>0?this.DV-e:-e}o(tce,"bnpInvDigit");function Yd(r){this.m=r,this.mp=r.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<r.DB-15)-1,this.mt2=2*r.t}o(Yd,"Montgomery");function rce(r){var e=Vr();return r.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),r.s<0&&e.compareTo(He.ZERO)>0&&this.m.subTo(e,e),e}o(rce,"montConvert");function nce(r){var e=Vr();return r.copyTo(e),this.reduce(e),e}o(nce,"montRevert");function ice(r){for(;r.t<=this.mt2;)r.data[r.t++]=0;for(var e=0;e<this.m.t;++e){var t=r.data[e]&32767,n=t*this.mpl+((t*this.mph+(r.data[e]>>15)*this.mpl&this.um)<<15)&r.DM;for(t=e+this.m.t,r.data[t]+=this.m.am(0,n,r,e,0,this.m.t);r.data[t]>=r.DV;)r.data[t]-=r.DV,r.data[++t]++}r.clamp(),r.drShiftTo(this.m.t,r),r.compareTo(this.m)>=0&&r.subTo(this.m,r)}o(ice,"montReduce");function sce(r,e){r.squareTo(e),this.reduce(e)}o(sce,"montSqrTo");function ace(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(ace,"montMulTo");Yd.prototype.convert=rce;Yd.prototype.revert=nce;Yd.prototype.reduce=ice;Yd.prototype.mulTo=ace;Yd.prototype.sqrTo=sce;function oce(){return(this.t>0?this.data[0]&1:this.s)==0}o(oce,"bnpIsEven");function uce(r,e){if(r>4294967295||r<1)return He.ONE;var t=Vr(),n=Vr(),i=e.convert(this),s=$N(r)-1;for(i.copyTo(t);--s>=0;)if(e.sqrTo(t,n),(r&1<<s)>0)e.mulTo(n,i,t);else{var a=t;t=n,n=a}return e.revert(t)}o(uce,"bnpExp");function cce(r,e){var t;return r<256||e.isEven()?t=new Qd(e):t=new Yd(e),this.exp(r,t)}o(cce,"bnModPowInt");He.prototype.copyTo=Oue;He.prototype.fromInt=Pue;He.prototype.fromString=Bue;He.prototype.clamp=Fue;He.prototype.dlShiftTo=Mue;He.prototype.drShiftTo=que;He.prototype.lShiftTo=Hue;He.prototype.rShiftTo=zue;He.prototype.subTo=Kue;He.prototype.multiplyTo=$ue;He.prototype.squareTo=Gue;He.prototype.divRemTo=Xue;He.prototype.invDigit=tce;He.prototype.isEven=oce;He.prototype.exp=uce;He.prototype.toString=Lue;He.prototype.negate=kue;He.prototype.abs=Vue;He.prototype.compareTo=jue;He.prototype.bitLength=Uue;He.prototype.mod=Wue;He.prototype.modPowInt=cce;He.ZERO=Pp(0);He.ONE=Pp(1);function lce(){var r=Vr();return this.copyTo(r),r}o(lce,"bnClone");function fce(){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]}o(fce,"bnIntValue");function pce(){return this.t==0?this.s:this.data[0]<<24>>24}o(pce,"bnByteValue");function hce(){return this.t==0?this.s:this.data[0]<<16>>16}o(hce,"bnShortValue");function dce(r){return Math.floor(Math.LN2*this.DB/Math.log(r))}o(dce,"bnpChunkSize");function mce(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}o(mce,"bnSigNum");function gce(r){if(r==null&&(r=10),this.signum()==0||r<2||r>36)return"0";var e=this.chunkSize(r),t=Math.pow(r,e),n=Pp(t),i=Vr(),s=Vr(),a="";for(this.divRemTo(n,i,s);i.signum()>0;)a=(t+s.intValue()).toString(r).substr(1)+a,i.divRemTo(n,i,s);return s.intValue().toString(r)+a}o(gce,"bnpToRadix");function vce(r,e){this.fromInt(0),e==null&&(e=10);for(var t=this.chunkSize(e),n=Math.pow(e,t),i=!1,s=0,a=0,u=0;u<r.length;++u){var c=JU(r,u);if(c<0){r.charAt(u)=="-"&&this.signum()==0&&(i=!0);continue}a=e*a+c,++s>=t&&(this.dMultiply(n),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),i&&He.ZERO.subTo(this,this)}o(vce,"bnpFromRadix");function yce(r,e,t){if(typeof e=="number")if(r<2)this.fromInt(1);else for(this.fromNumber(r,t),this.testBit(r-1)||this.bitwiseTo(He.ONE.shiftLeft(r-1),FP,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>r&&this.subTo(He.ONE.shiftLeft(r-1),this);else{var n=new Array,i=r&7;n.length=(r>>3)+1,e.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}}o(yce,"bnpFromNumber");function Sce(){var r=this.t,e=new Array;e[0]=this.s;var t=this.DB-r*this.DB%8,n,i=0;if(r-- >0)for(t<this.DB&&(n=this.data[r]>>t)!=(this.s&this.DM)>>t&&(e[i++]=n|this.s<<this.DB-t);r>=0;)t<8?(n=(this.data[r]&(1<<t)-1)<<8-t,n|=this.data[--r]>>(t+=this.DB-8)):(n=this.data[r]>>(t-=8)&255,t<=0&&(t+=this.DB,--r)),(n&128)!=0&&(n|=-256),i==0&&(this.s&128)!=(n&128)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e}o(Sce,"bnToByteArray");function xce(r){return this.compareTo(r)==0}o(xce,"bnEquals");function bce(r){return this.compareTo(r)<0?this:r}o(bce,"bnMin");function wce(r){return this.compareTo(r)>0?this:r}o(wce,"bnMax");function Cce(r,e,t){var n,i,s=Math.min(r.t,this.t);for(n=0;n<s;++n)t.data[n]=e(this.data[n],r.data[n]);if(r.t<this.t){for(i=r.s&this.DM,n=s;n<this.t;++n)t.data[n]=e(this.data[n],i);t.t=this.t}else{for(i=this.s&this.DM,n=s;n<r.t;++n)t.data[n]=e(i,r.data[n]);t.t=r.t}t.s=e(this.s,r.s),t.clamp()}o(Cce,"bnpBitwiseTo");function Ece(r,e){return r&e}o(Ece,"op_and");function Ace(r){var e=Vr();return this.bitwiseTo(r,Ece,e),e}o(Ace,"bnAnd");function FP(r,e){return r|e}o(FP,"op_or");function Nce(r){var e=Vr();return this.bitwiseTo(r,FP,e),e}o(Nce,"bnOr");function QU(r,e){return r^e}o(QU,"op_xor");function Ice(r){var e=Vr();return this.bitwiseTo(r,QU,e),e}o(Ice,"bnXor");function YU(r,e){return r&~e}o(YU,"op_andnot");function Tce(r){var e=Vr();return this.bitwiseTo(r,YU,e),e}o(Tce,"bnAndNot");function Rce(){for(var r=Vr(),e=0;e<this.t;++e)r.data[e]=this.DM&~this.data[e];return r.t=this.t,r.s=~this.s,r}o(Rce,"bnNot");function Dce(r){var e=Vr();return r<0?this.rShiftTo(-r,e):this.lShiftTo(r,e),e}o(Dce,"bnShiftLeft");function _ce(r){var e=Vr();return r<0?this.lShiftTo(-r,e):this.rShiftTo(r,e),e}o(_ce,"bnShiftRight");function Oce(r){if(r==0)return-1;var e=0;return(r&65535)==0&&(r>>=16,e+=16),(r&255)==0&&(r>>=8,e+=8),(r&15)==0&&(r>>=4,e+=4),(r&3)==0&&(r>>=2,e+=2),(r&1)==0&&++e,e}o(Oce,"lbit");function Pce(){for(var r=0;r<this.t;++r)if(this.data[r]!=0)return r*this.DB+Oce(this.data[r]);return this.s<0?this.t*this.DB:-1}o(Pce,"bnGetLowestSetBit");function Bce(r){for(var e=0;r!=0;)r&=r-1,++e;return e}o(Bce,"cbit");function Fce(){for(var r=0,e=this.s&this.DM,t=0;t<this.t;++t)r+=Bce(this.data[t]^e);return r}o(Fce,"bnBitCount");function Lce(r){var e=Math.floor(r/this.DB);return e>=this.t?this.s!=0:(this.data[e]&1<<r%this.DB)!=0}o(Lce,"bnTestBit");function kce(r,e){var t=He.ONE.shiftLeft(r);return this.bitwiseTo(t,e,t),t}o(kce,"bnpChangeBit");function Vce(r){return this.changeBit(r,FP)}o(Vce,"bnSetBit");function jce(r){return this.changeBit(r,YU)}o(jce,"bnClearBit");function Uce(r){return this.changeBit(r,QU)}o(Uce,"bnFlipBit");function Mce(r,e){for(var t=0,n=0,i=Math.min(r.t,this.t);t<i;)n+=this.data[t]+r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;if(r.t<this.t){for(n+=r.s;t<this.t;)n+=this.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;t<r.t;)n+=r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=r.s}e.s=n<0?-1:0,n>0?e.data[t++]=n:n<-1&&(e.data[t++]=this.DV+n),e.t=t,e.clamp()}o(Mce,"bnpAddTo");function qce(r){var e=Vr();return this.addTo(r,e),e}o(qce,"bnAdd");function Hce(r){var e=Vr();return this.subTo(r,e),e}o(Hce,"bnSubtract");function zce(r){var e=Vr();return this.multiplyTo(r,e),e}o(zce,"bnMultiply");function Kce(r){var e=Vr();return this.divRemTo(r,e,null),e}o(Kce,"bnDivide");function $ce(r){var e=Vr();return this.divRemTo(r,null,e),e}o($ce,"bnRemainder");function Gce(r){var e=Vr(),t=Vr();return this.divRemTo(r,e,t),new Array(e,t)}o(Gce,"bnDivideAndRemainder");function Xce(r){this.data[this.t]=this.am(0,r-1,this,0,0,this.t),++this.t,this.clamp()}o(Xce,"bnpDMultiply");function Wce(r,e){if(r!=0){for(;this.t<=e;)this.data[this.t++]=0;for(this.data[e]+=r;this.data[e]>=this.DV;)this.data[e]-=this.DV,++e>=this.t&&(this.data[this.t++]=0),++this.data[e]}}o(Wce,"bnpDAddOffset");function Dx(){}o(Dx,"NullExp");function ZU(r){return r}o(ZU,"nNop");function Jce(r,e,t){r.multiplyTo(e,t)}o(Jce,"nMulTo");function Qce(r,e){r.squareTo(e)}o(Qce,"nSqrTo");Dx.prototype.convert=ZU;Dx.prototype.revert=ZU;Dx.prototype.mulTo=Jce;Dx.prototype.sqrTo=Qce;function Yce(r){return this.exp(r,new Dx)}o(Yce,"bnPow");function Zce(r,e,t){var n=Math.min(this.t+r.t,e);for(t.s=0,t.t=n;n>0;)t.data[--n]=0;var i;for(i=t.t-this.t;n<i;++n)t.data[n+this.t]=this.am(0,r.data[n],t,n,0,this.t);for(i=Math.min(r.t,e);n<i;++n)this.am(0,r.data[n],t,n,0,e-n);t.clamp()}o(Zce,"bnpMultiplyLowerTo");function ele(r,e,t){--e;var n=t.t=this.t+r.t-e;for(t.s=0;--n>=0;)t.data[n]=0;for(n=Math.max(e-this.t,0);n<r.t;++n)t.data[this.t+n-e]=this.am(e-n,r.data[n],t,0,0,this.t+n-e);t.clamp(),t.drShiftTo(1,t)}o(ele,"bnpMultiplyUpperTo");function ev(r){this.r2=Vr(),this.q3=Vr(),He.ONE.dlShiftTo(2*r.t,this.r2),this.mu=this.r2.divide(r),this.m=r}o(ev,"Barrett");function tle(r){if(r.s<0||r.t>2*this.m.t)return r.mod(this.m);if(r.compareTo(this.m)<0)return r;var e=Vr();return r.copyTo(e),this.reduce(e),e}o(tle,"barrettConvert");function rle(r){return r}o(rle,"barrettRevert");function nle(r){for(r.drShiftTo(this.m.t-1,this.r2),r.t>this.m.t+1&&(r.t=this.m.t+1,r.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);r.compareTo(this.r2)<0;)r.dAddOffset(1,this.m.t+1);for(r.subTo(this.r2,r);r.compareTo(this.m)>=0;)r.subTo(this.m,r)}o(nle,"barrettReduce");function ile(r,e){r.squareTo(e),this.reduce(e)}o(ile,"barrettSqrTo");function sle(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(sle,"barrettMulTo");ev.prototype.convert=tle;ev.prototype.revert=rle;ev.prototype.reduce=nle;ev.prototype.mulTo=sle;ev.prototype.sqrTo=ile;function ale(r,e){var t=r.bitLength(),n,i=Pp(1),s;if(t<=0)return i;t<18?n=1:t<48?n=3:t<144?n=4:t<768?n=5:n=6,t<8?s=new Qd(e):e.isEven()?s=new ev(e):s=new Yd(e);var a=new Array,u=3,c=n-1,l=(1<<n)-1;if(a[1]=s.convert(this),n>1){var p=Vr();for(s.sqrTo(a[1],p);u<=l;)a[u]=Vr(),s.mulTo(p,a[u-2],a[u]),u+=2}var m=r.t-1,g,S=!0,v=Vr(),b;for(t=$N(r.data[m])-1;m>=0;){for(t>=c?g=r.data[m]>>t-c&l:(g=(r.data[m]&(1<<t+1)-1)<<c-t,m>0&&(g|=r.data[m-1]>>this.DB+t-c)),u=n;(g&1)==0;)g>>=1,--u;if((t-=u)<0&&(t+=this.DB,--m),S)a[g].copyTo(i),S=!1;else{for(;u>1;)s.sqrTo(i,v),s.sqrTo(v,i),u-=2;u>0?s.sqrTo(i,v):(b=i,i=v,v=b),s.mulTo(v,a[g],i)}for(;m>=0&&(r.data[m]&1<<t)==0;)s.sqrTo(i,v),b=i,i=v,v=b,--t<0&&(t=this.DB-1,--m)}return s.revert(i)}o(ale,"bnModPow");function ole(r){var e=this.s<0?this.negate():this.clone(),t=r.s<0?r.negate():r.clone();if(e.compareTo(t)<0){var n=e;e=t,t=n}var i=e.getLowestSetBit(),s=t.getLowestSetBit();if(s<0)return e;for(i<s&&(s=i),s>0&&(e.rShiftTo(s,e),t.rShiftTo(s,t));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),e.compareTo(t)>=0?(e.subTo(t,e),e.rShiftTo(1,e)):(t.subTo(e,t),t.rShiftTo(1,t));return s>0&&t.lShiftTo(s,t),t}o(ole,"bnGCD");function ule(r){if(r<=0)return 0;var e=this.DV%r,t=this.s<0?r-1:0;if(this.t>0)if(e==0)t=this.data[0]%r;else for(var n=this.t-1;n>=0;--n)t=(e*t+this.data[n])%r;return t}o(ule,"bnpModInt");function cle(r){var e=r.isEven();if(this.isEven()&&e||r.signum()==0)return He.ZERO;for(var t=r.clone(),n=this.clone(),i=Pp(1),s=Pp(0),a=Pp(0),u=Pp(1);t.signum()!=0;){for(;t.isEven();)t.rShiftTo(1,t),e?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(r,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(r,s),s.rShiftTo(1,s);for(;n.isEven();)n.rShiftTo(1,n),e?((!a.isEven()||!u.isEven())&&(a.addTo(this,a),u.subTo(r,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(r,u),u.rShiftTo(1,u);t.compareTo(n)>=0?(t.subTo(n,t),e&&i.subTo(a,i),s.subTo(u,s)):(n.subTo(t,n),e&&a.subTo(i,a),u.subTo(s,u))}if(n.compareTo(He.ONE)!=0)return He.ZERO;if(u.compareTo(r)>=0)return u.subtract(r);if(u.signum()<0)u.addTo(r,u);else return u;return u.signum()<0?u.add(r):u}o(cle,"bnModInverse");var Iu=[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],lle=(1<<26)/Iu[Iu.length-1];function fle(r){var e,t=this.abs();if(t.t==1&&t.data[0]<=Iu[Iu.length-1]){for(e=0;e<Iu.length;++e)if(t.data[0]==Iu[e])return!0;return!1}if(t.isEven())return!1;for(e=1;e<Iu.length;){for(var n=Iu[e],i=e+1;i<Iu.length&&n<lle;)n*=Iu[i++];for(n=t.modInt(n);e<i;)if(n%Iu[e++]==0)return!1}return t.millerRabin(r)}o(fle,"bnIsProbablePrime");function ple(r){var e=this.subtract(He.ONE),t=e.getLowestSetBit();if(t<=0)return!1;for(var n=e.shiftRight(t),i=hle(),s,a=0;a<r;++a){do s=new He(this.bitLength(),i);while(s.compareTo(He.ONE)<=0||s.compareTo(e)>=0);var u=s.modPow(n,this);if(u.compareTo(He.ONE)!=0&&u.compareTo(e)!=0){for(var c=1;c++<t&&u.compareTo(e)!=0;)if(u=u.modPowInt(2,this),u.compareTo(He.ONE)==0)return!1;if(u.compareTo(e)!=0)return!1}}return!0}o(ple,"bnpMillerRabin");function hle(){return{nextBytes:o(function(r){for(var e=0;e<r.length;++e)r[e]=Math.floor(Math.random()*256)},"nextBytes")}}o(hle,"bnGetPrng");He.prototype.chunkSize=dce;He.prototype.toRadix=gce;He.prototype.fromRadix=vce;He.prototype.fromNumber=yce;He.prototype.bitwiseTo=Cce;He.prototype.changeBit=kce;He.prototype.addTo=Mce;He.prototype.dMultiply=Xce;He.prototype.dAddOffset=Wce;He.prototype.multiplyLowerTo=Zce;He.prototype.multiplyUpperTo=ele;He.prototype.modInt=ule;He.prototype.millerRabin=ple;He.prototype.clone=lce;He.prototype.intValue=fce;He.prototype.byteValue=pce;He.prototype.shortValue=hce;He.prototype.signum=mce;He.prototype.toByteArray=Sce;He.prototype.equals=xce;He.prototype.min=bce;He.prototype.max=wce;He.prototype.and=Ace;He.prototype.or=Nce;He.prototype.xor=Ice;He.prototype.andNot=Tce;He.prototype.not=Rce;He.prototype.shiftLeft=Dce;He.prototype.shiftRight=_ce;He.prototype.getLowestSetBit=Pce;He.prototype.bitCount=Fce;He.prototype.testBit=Lce;He.prototype.setBit=Vce;He.prototype.clearBit=jce;He.prototype.flipBit=Uce;He.prototype.add=qce;He.prototype.subtract=Hce;He.prototype.multiply=zce;He.prototype.divide=Kce;He.prototype.remainder=$ce;He.prototype.divideAndRemainder=Gce;He.prototype.modPow=ale;He.prototype.modInverse=cle;He.prototype.pow=Yce;He.prototype.gcd=ole;He.prototype.isProbablePrime=fle});var tv=Z((YNe,iM)=>{"use strict";var Rc=pr();Ec();kr();var rM=iM.exports=Rc.sha1=Rc.sha1||{};Rc.md.sha1=Rc.md.algorithms.sha1=rM;rM.create=function(){nM||dle();var r=null,e=Rc.util.createBuffer(),t=new Array(80),n={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Rc.util.createBuffer(),r={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Rc.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),tM(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Rc.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(LP.substr(0,n.blockLength-a));for(var u,c,l=n.fullMessageLength[0]*8,p=0;p<n.fullMessageLength.length-1;++p)u=n.fullMessageLength[p+1]*8,c=u/4294967296>>>0,l+=c,i.putInt32(l>>>0),l=u>>>0;i.putInt32(l);var m={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3,h4:r.h4};tM(m,t,i);var g=Rc.util.createBuffer();return g.putInt32(m.h0),g.putInt32(m.h1),g.putInt32(m.h2),g.putInt32(m.h3),g.putInt32(m.h4),g},n};var LP=null,nM=!1;function dle(){LP="\x80",LP+=Rc.util.fillString("\0",64),nM=!0}o(dle,"_init");function tM(r,e,t){for(var n,i,s,a,u,c,l,p,m=t.length();m>=64;){for(i=r.h0,s=r.h1,a=r.h2,u=r.h3,c=r.h4,p=0;p<16;++p)n=t.getInt32(),e[p]=n,l=u^s&(a^u),n=(i<<5|i>>>27)+l+c+1518500249+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<20;++p)n=e[p-3]^e[p-8]^e[p-14]^e[p-16],n=n<<1|n>>>31,e[p]=n,l=u^s&(a^u),n=(i<<5|i>>>27)+l+c+1518500249+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<32;++p)n=e[p-3]^e[p-8]^e[p-14]^e[p-16],n=n<<1|n>>>31,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+1859775393+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<40;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+1859775393+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<60;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s&a|u&(s^a),n=(i<<5|i>>>27)+l+c+2400959708+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<80;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+3395469782+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;r.h0=r.h0+i|0,r.h1=r.h1+s|0,r.h2=r.h2+a|0,r.h3=r.h3+u|0,r.h4=r.h4+c|0,m-=64}}o(tM,"_update")});var kP=Z((e2e,aM)=>{"use strict";var Dc=pr();kr();Fo();tv();var sM=aM.exports=Dc.pkcs1=Dc.pkcs1||{};sM.encode_rsa_oaep=function(r,e,t){var n,i,s,a;typeof t=="string"?(n=t,i=arguments[3]||void 0,s=arguments[4]||void 0):t&&(n=t.label||void 0,i=t.seed||void 0,s=t.md||void 0,t.mgf1&&t.mgf1.md&&(a=t.mgf1.md)),s?s.start():s=Dc.md.sha1.create(),a||(a=s);var u=Math.ceil(r.n.bitLength()/8),c=u-2*s.digestLength-2;if(e.length>c){var l=new Error("RSAES-OAEP input message length is too long.");throw l.length=e.length,l.maxLength=c,l}n||(n=""),s.update(n,"raw");for(var p=s.digest(),m="",g=c-e.length,S=0;S<g;S++)m+="\0";var v=p.getBytes()+m+""+e;if(!i)i=Dc.random.getBytes(s.digestLength);else if(i.length!==s.digestLength){var l=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw l.seedLength=i.length,l.digestLength=s.digestLength,l}var b=GN(i,u-s.digestLength-1,a),x=Dc.util.xorBytes(v,b,v.length),E=GN(x,s.digestLength,a),N=Dc.util.xorBytes(i,E,i.length);return"\0"+N+x};sM.decode_rsa_oaep=function(r,e,t){var n,i,s;typeof t=="string"?(n=t,i=arguments[3]||void 0):t&&(n=t.label||void 0,i=t.md||void 0,t.mgf1&&t.mgf1.md&&(s=t.mgf1.md));var a=Math.ceil(r.n.bitLength()/8);if(e.length!==a){var x=new Error("RSAES-OAEP encoded message length is invalid.");throw x.length=e.length,x.expectedLength=a,x}if(i===void 0?i=Dc.md.sha1.create():i.start(),s||(s=i),a<2*i.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");n||(n=""),i.update(n,"raw");for(var u=i.digest().getBytes(),c=e.charAt(0),l=e.substring(1,i.digestLength+1),p=e.substring(1+i.digestLength),m=GN(p,i.digestLength,s),g=Dc.util.xorBytes(l,m,l.length),S=GN(g,a-i.digestLength-1,s),v=Dc.util.xorBytes(p,S,p.length),b=v.substring(0,i.digestLength),x=c!=="\0",E=0;E<i.digestLength;++E)x|=u.charAt(E)!==b.charAt(E);for(var N=1,w=i.digestLength,C=i.digestLength;C<v.length;C++){var A=v.charCodeAt(C),R=A&1^1,M=N?65534:0;x|=A&M,N=N&R,w+=N}if(x||v.charCodeAt(w)!==1)throw new Error("Invalid RSAES-OAEP padding.");return v.substring(w+1)};function GN(r,e,t){t||(t=Dc.md.sha1.create());for(var n="",i=Math.ceil(e/t.digestLength),s=0;s<i;++s){var a=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,s&255);t.start(),t.update(r+a),n+=t.digest().getBytes()}return n.substring(0,e)}o(GN,"rsa_mgf1")});var jP=Z((r2e,VP)=>{"use strict";var Bp=pr();kr();_x();Fo();(function(){if(Bp.prime){VP.exports=Bp.prime;return}var r=VP.exports=Bp.prime=Bp.prime||{},e=Bp.jsbn.BigInteger,t=[6,4,2,4,2,4,6,2],n=new e(null);n.fromInt(30);var i=o(function(m,g){return m|g},"op_or");r.generateProbablePrime=function(m,g,S){typeof g=="function"&&(S=g,g={}),g=g||{};var v=g.algorithm||"PRIMEINC";typeof v=="string"&&(v={name:v}),v.options=v.options||{};var b=g.prng||Bp.random,x={nextBytes:o(function(E){for(var N=b.getBytesSync(E.length),w=0;w<E.length;++w)E[w]=N.charCodeAt(w)},"nextBytes")};if(v.name==="PRIMEINC")return s(m,x,v.options,S);throw new Error("Invalid prime generation algorithm: "+v.name)};function s(m,g,S,v){return"workers"in S?c(m,g,S,v):a(m,g,S,v)}o(s,"primeincFindPrime");function a(m,g,S,v){var b=l(m,g),x=0,E=p(b.bitLength());"millerRabinTests"in S&&(E=S.millerRabinTests);var N=10;"maxBlockTime"in S&&(N=S.maxBlockTime),u(b,m,g,x,E,N,v)}o(a,"primeincFindPrimeWithoutWorkers");function u(m,g,S,v,b,x,E){var N=+new Date;do{if(m.bitLength()>g&&(m=l(g,S)),m.isProbablePrime(b))return E(null,m);m.dAddOffset(t[v++%8],0)}while(x<0||+new Date-N<x);Bp.util.setImmediate(function(){u(m,g,S,v,b,x,E)})}o(u,"_primeinc");function c(m,g,S,v){if(typeof Worker>"u")return a(m,g,S,v);var b=l(m,g),x=S.workers,E=S.workLoad||100,N=E*30/8,w=S.workerScript||"forge/prime.worker.js";if(x===-1)return Bp.util.estimateCores(function(A,R){A&&(R=2),x=R-1,C()});C();function C(){x=Math.max(1,x);for(var A=[],R=0;R<x;++R)A[R]=new Worker(w);for(var M=x,R=0;R<x;++R)A[R].addEventListener("message",H);var _=!1;function H(z){if(!_){--M;var K=z.data;if(K.found){for(var X=0;X<A.length;++X)A[X].terminate();return _=!0,v(null,new e(K.prime,16))}b.bitLength()>m&&(b=l(m,g));var ye=b.toString(16);z.target.postMessage({hex:ye,workLoad:E}),b.dAddOffset(N,0)}}o(H,"workerMessage")}o(C,"generate")}o(c,"primeincFindPrimeWithWorkers");function l(m,g){var S=new e(m,g),v=m-1;return S.testBit(v)||S.bitwiseTo(e.ONE.shiftLeft(v),i,S),S.dAddOffset(31-S.mod(n).byteValue(),0),S}o(l,"generateRandom");function p(m){return m<=100?27:m<=150?18:m<=200?15:m<=250?12:m<=300?9:m<=350?8:m<=400?7:m<=500?6:m<=600?5:m<=800?4:m<=1250?3:2}o(p,"getMillerRabinTests")})()});var Ox=Z((i2e,hM)=>{"use strict";var Rt=pr();Nu();_x();Op();kP();jP();Fo();kr();typeof _r>"u"&&(_r=Rt.jsbn.BigInteger);var _r,UP=Rt.util.isNodejs?require("crypto"):null,be=Rt.asn1,ko=Rt.util;Rt.pki=Rt.pki||{};hM.exports=Rt.pki.rsa=Rt.rsa=Rt.rsa||{};var rr=Rt.pki,mle=[6,4,2,4,2,4,6,2],gle={name:"PrivateKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},vle={name:"RSAPrivateKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},yle={name:"RSAPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},Sle=Rt.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},xle={name:"DigestInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:be.Class.UNIVERSAL,type:be.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:be.Class.UNIVERSAL,type:be.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},ble=o(function(r){var e;if(r.algorithm in rr.oids)e=rr.oids[r.algorithm];else{var t=new Error("Unknown message digest algorithm.");throw t.algorithm=r.algorithm,t}var n=be.oidToDer(e).getBytes(),i=be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[]),s=be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[]);s.value.push(be.create(be.Class.UNIVERSAL,be.Type.OID,!1,n)),s.value.push(be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,""));var a=be.create(be.Class.UNIVERSAL,be.Type.OCTETSTRING,!1,r.digest().getBytes());return i.value.push(s),i.value.push(a),be.toDer(i).getBytes()},"emsaPkcs1v15encode"),fM=o(function(r,e,t){if(t)return r.modPow(e.e,e.n);if(!e.p||!e.q)return r.modPow(e.d,e.n);e.dP||(e.dP=e.d.mod(e.p.subtract(_r.ONE))),e.dQ||(e.dQ=e.d.mod(e.q.subtract(_r.ONE))),e.qInv||(e.qInv=e.q.modInverse(e.p));var n;do n=new _r(Rt.util.bytesToHex(Rt.random.getBytes(e.n.bitLength()/8)),16);while(n.compareTo(e.n)>=0||!n.gcd(e.n).equals(_r.ONE));r=r.multiply(n.modPow(e.e,e.n)).mod(e.n);for(var i=r.mod(e.p).modPow(e.dP,e.p),s=r.mod(e.q).modPow(e.dQ,e.q);i.compareTo(s)<0;)i=i.add(e.p);var a=i.subtract(s).multiply(e.qInv).mod(e.p).multiply(e.q).add(s);return a=a.multiply(n.modInverse(e.n)).mod(e.n),a},"_modPow");rr.rsa.encrypt=function(r,e,t){var n=t,i,s=Math.ceil(e.n.bitLength()/8);t!==!1&&t!==!0?(n=t===2,i=pM(r,e,t)):(i=Rt.util.createBuffer(),i.putBytes(r));for(var a=new _r(i.toHex(),16),u=fM(a,e,n),c=u.toString(16),l=Rt.util.createBuffer(),p=s-Math.ceil(c.length/2);p>0;)l.putByte(0),--p;return l.putBytes(Rt.util.hexToBytes(c)),l.getBytes()};rr.rsa.decrypt=function(r,e,t,n){var i=Math.ceil(e.n.bitLength()/8);if(r.length!==i){var s=new Error("Encrypted message length is invalid.");throw s.length=r.length,s.expected=i,s}var a=new _r(Rt.util.createBuffer(r).toHex(),16);if(a.compareTo(e.n)>=0)throw new Error("Encrypted message is invalid.");for(var u=fM(a,e,t),c=u.toString(16),l=Rt.util.createBuffer(),p=i-Math.ceil(c.length/2);p>0;)l.putByte(0),--p;return l.putBytes(Rt.util.hexToBytes(c)),n!==!1?XN(l.getBytes(),e,t):l.getBytes()};rr.rsa.createKeyPairGenerationState=function(r,e,t){typeof r=="string"&&(r=parseInt(r,10)),r=r||2048,t=t||{};var n=t.prng||Rt.random,i={nextBytes:o(function(u){for(var c=n.getBytesSync(u.length),l=0;l<u.length;++l)u[l]=c.charCodeAt(l)},"nextBytes")},s=t.algorithm||"PRIMEINC",a;if(s==="PRIMEINC")a={algorithm:s,state:0,bits:r,rng:i,eInt:e||65537,e:new _r(null),p:null,q:null,qBits:r>>1,pBits:r-(r>>1),pqState:0,num:null,keys:null},a.e.fromInt(a.eInt);else throw new Error("Invalid key generation algorithm: "+s);return a};rr.rsa.stepKeyPairGenerationState=function(r,e){"algorithm"in r||(r.algorithm="PRIMEINC");var t=new _r(null);t.fromInt(30);for(var n=0,i=o(function(m,g){return m|g},"op_or"),s=+new Date,a,u=0;r.keys===null&&(e<=0||u<e);){if(r.state===0){var c=r.p===null?r.pBits:r.qBits,l=c-1;r.pqState===0?(r.num=new _r(c,r.rng),r.num.testBit(l)||r.num.bitwiseTo(_r.ONE.shiftLeft(l),i,r.num),r.num.dAddOffset(31-r.num.mod(t).byteValue(),0),n=0,++r.pqState):r.pqState===1?r.num.bitLength()>c?r.pqState=0:r.num.isProbablePrime(Cle(r.num.bitLength()))?++r.pqState:r.num.dAddOffset(mle[n++%8],0):r.pqState===2?r.pqState=r.num.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)===0?3:0:r.pqState===3&&(r.pqState=0,r.p===null?r.p=r.num:r.q=r.num,r.p!==null&&r.q!==null&&++r.state,r.num=null)}else if(r.state===1)r.p.compareTo(r.q)<0&&(r.num=r.p,r.p=r.q,r.q=r.num),++r.state;else if(r.state===2)r.p1=r.p.subtract(_r.ONE),r.q1=r.q.subtract(_r.ONE),r.phi=r.p1.multiply(r.q1),++r.state;else if(r.state===3)r.phi.gcd(r.e).compareTo(_r.ONE)===0?++r.state:(r.p=null,r.q=null,r.state=0);else if(r.state===4)r.n=r.p.multiply(r.q),r.n.bitLength()===r.bits?++r.state:(r.q=null,r.state=0);else if(r.state===5){var p=r.e.modInverse(r.phi);r.keys={privateKey:rr.rsa.setPrivateKey(r.n,r.e,p,r.p,r.q,p.mod(r.p1),p.mod(r.q1),r.q.modInverse(r.p)),publicKey:rr.rsa.setPublicKey(r.n,r.e)}}a=+new Date,u+=a-s,s=a}return r.keys!==null};rr.rsa.generateKeyPair=function(r,e,t,n){if(arguments.length===1?typeof r=="object"?(t=r,r=void 0):typeof r=="function"&&(n=r,r=void 0):arguments.length===2?typeof r=="number"?typeof e=="function"?(n=e,e=void 0):typeof e!="number"&&(t=e,e=void 0):(t=r,n=e,r=void 0,e=void 0):arguments.length===3&&(typeof e=="number"?typeof t=="function"&&(n=t,t=void 0):(n=t,t=e,e=void 0)),t=t||{},r===void 0&&(r=t.bits||2048),e===void 0&&(e=t.e||65537),!Rt.options.usePureJavaScript&&!t.prng&&r>=256&&r<=16384&&(e===65537||e===3)){if(n){if(oM("generateKeyPair"))return UP.generateKeyPair("rsa",{modulusLength:r,publicExponent:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(u,c,l){if(u)return n(u);n(null,{privateKey:rr.privateKeyFromPem(l),publicKey:rr.publicKeyFromPem(c)})});if(uM("generateKey")&&uM("exportKey"))return ko.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:r,publicExponent:lM(e),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(u){return ko.globalScope.crypto.subtle.exportKey("pkcs8",u.privateKey)}).then(void 0,function(u){n(u)}).then(function(u){if(u){var c=rr.privateKeyFromAsn1(be.fromDer(Rt.util.createBuffer(u)));n(null,{privateKey:c,publicKey:rr.setRsaPublicKey(c.n,c.e)})}});if(cM("generateKey")&&cM("exportKey")){var i=ko.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:r,publicExponent:lM(e),hash:{name:"SHA-256"}},!0,["sign","verify"]);i.oncomplete=function(u){var c=u.target.result,l=ko.globalScope.msCrypto.subtle.exportKey("pkcs8",c.privateKey);l.oncomplete=function(p){var m=p.target.result,g=rr.privateKeyFromAsn1(be.fromDer(Rt.util.createBuffer(m)));n(null,{privateKey:g,publicKey:rr.setRsaPublicKey(g.n,g.e)})},l.onerror=function(p){n(p)}},i.onerror=function(u){n(u)};return}}else if(oM("generateKeyPairSync")){var s=UP.generateKeyPairSync("rsa",{modulusLength:r,publicExponent:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:rr.privateKeyFromPem(s.privateKey),publicKey:rr.publicKeyFromPem(s.publicKey)}}}var a=rr.rsa.createKeyPairGenerationState(r,e,t);if(!n)return rr.rsa.stepKeyPairGenerationState(a,0),a.keys;wle(a,t,n)};rr.setRsaPublicKey=rr.rsa.setPublicKey=function(r,e){var t={n:r,e};return t.encrypt=function(n,i,s){if(typeof i=="string"?i=i.toUpperCase():i===void 0&&(i="RSAES-PKCS1-V1_5"),i==="RSAES-PKCS1-V1_5")i={encode:o(function(u,c,l){return pM(u,c,2).getBytes()},"encode")};else if(i==="RSA-OAEP"||i==="RSAES-OAEP")i={encode:o(function(u,c){return Rt.pkcs1.encode_rsa_oaep(c,u,s)},"encode")};else if(["RAW","NONE","NULL",null].indexOf(i)!==-1)i={encode:o(function(u){return u},"encode")};else if(typeof i=="string")throw new Error('Unsupported encryption scheme: "'+i+'".');var a=i.encode(n,t,!0);return rr.rsa.encrypt(a,t,!0)},t.verify=function(n,i,s,a){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),a===void 0&&(a={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in a||(a._parseAllDigestBytes=!0),s==="RSASSA-PKCS1-V1_5"?s={verify:o(function(c,l){l=XN(l,t,!0);var p=be.fromDer(l,{parseAllBytes:a._parseAllDigestBytes}),m={},g=[];if(!be.validate(p,xle,m,g)){var S=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw S.errors=g,S}var v=be.derToOid(m.algorithmIdentifier);if(!(v===Rt.oids.md2||v===Rt.oids.md5||v===Rt.oids.sha1||v===Rt.oids.sha224||v===Rt.oids.sha256||v===Rt.oids.sha384||v===Rt.oids.sha512||v===Rt.oids["sha512-224"]||v===Rt.oids["sha512-256"])){var S=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw S.oid=v,S}if((v===Rt.oids.md2||v===Rt.oids.md5)&&!("parameters"in m))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");return c===m.digest},"verify")}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:o(function(c,l){return l=XN(l,t,!0),c===l},"verify")});var u=rr.rsa.decrypt(i,t,!0,!1);return s.verify(n,u,t.n.bitLength())},t};rr.setRsaPrivateKey=rr.rsa.setPrivateKey=function(r,e,t,n,i,s,a,u){var c={n:r,e,d:t,p:n,q:i,dP:s,dQ:a,qInv:u};return c.decrypt=function(l,p,m){typeof p=="string"?p=p.toUpperCase():p===void 0&&(p="RSAES-PKCS1-V1_5");var g=rr.rsa.decrypt(l,c,!1,!1);if(p==="RSAES-PKCS1-V1_5")p={decode:XN};else if(p==="RSA-OAEP"||p==="RSAES-OAEP")p={decode:o(function(S,v){return Rt.pkcs1.decode_rsa_oaep(v,S,m)},"decode")};else if(["RAW","NONE","NULL",null].indexOf(p)!==-1)p={decode:o(function(S){return S},"decode")};else throw new Error('Unsupported encryption scheme: "'+p+'".');return p.decode(g,c,!1)},c.sign=function(l,p){var m=!1;typeof p=="string"&&(p=p.toUpperCase()),p===void 0||p==="RSASSA-PKCS1-V1_5"?(p={encode:ble},m=1):(p==="NONE"||p==="NULL"||p===null)&&(p={encode:o(function(){return l},"encode")},m=1);var g=p.encode(l,c.n.bitLength());return rr.rsa.encrypt(g,c,m)},c};rr.wrapRsaPrivateKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,be.integerToDer(0).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.OID,!1,be.oidToDer(rr.oids.rsaEncryption).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,"")]),be.create(be.Class.UNIVERSAL,be.Type.OCTETSTRING,!1,be.toDer(r).getBytes())])};rr.privateKeyFromAsn1=function(r){var e={},t=[];if(be.validate(r,gle,e,t)&&(r=be.fromDer(Rt.util.createBuffer(e.privateKey))),e={},t=[],!be.validate(r,vle,e,t)){var n=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw n.errors=t,n}var i,s,a,u,c,l,p,m;return i=Rt.util.createBuffer(e.privateKeyModulus).toHex(),s=Rt.util.createBuffer(e.privateKeyPublicExponent).toHex(),a=Rt.util.createBuffer(e.privateKeyPrivateExponent).toHex(),u=Rt.util.createBuffer(e.privateKeyPrime1).toHex(),c=Rt.util.createBuffer(e.privateKeyPrime2).toHex(),l=Rt.util.createBuffer(e.privateKeyExponent1).toHex(),p=Rt.util.createBuffer(e.privateKeyExponent2).toHex(),m=Rt.util.createBuffer(e.privateKeyCoefficient).toHex(),rr.setRsaPrivateKey(new _r(i,16),new _r(s,16),new _r(a,16),new _r(u,16),new _r(c,16),new _r(l,16),new _r(p,16),new _r(m,16))};rr.privateKeyToAsn1=rr.privateKeyToRSAPrivateKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,be.integerToDer(0).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.n)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.e)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.d)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.p)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.q)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.dP)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.dQ)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.qInv))])};rr.publicKeyFromAsn1=function(r){var e={},t=[];if(be.validate(r,Sle,e,t)){var n=be.derToOid(e.publicKeyOid);if(n!==rr.oids.rsaEncryption){var i=new Error("Cannot read public key. Unknown OID.");throw i.oid=n,i}r=e.rsaPublicKey}if(t=[],!be.validate(r,yle,e,t)){var i=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw i.errors=t,i}var s=Rt.util.createBuffer(e.publicKeyModulus).toHex(),a=Rt.util.createBuffer(e.publicKeyExponent).toHex();return rr.setRsaPublicKey(new _r(s,16),new _r(a,16))};rr.publicKeyToAsn1=rr.publicKeyToSubjectPublicKeyInfo=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.OID,!1,be.oidToDer(rr.oids.rsaEncryption).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,"")]),be.create(be.Class.UNIVERSAL,be.Type.BITSTRING,!1,[rr.publicKeyToRSAPublicKey(r)])])};rr.publicKeyToRSAPublicKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.n)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.e))])};function pM(r,e,t){var n=Rt.util.createBuffer(),i=Math.ceil(e.n.bitLength()/8);if(r.length>i-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=r.length,s.max=i-11,s}n.putByte(0),n.putByte(t);var a=i-3-r.length,u;if(t===0||t===1){u=t===0?0:255;for(var c=0;c<a;++c)n.putByte(u)}else for(;a>0;){for(var l=0,p=Rt.random.getBytes(a),c=0;c<a;++c)u=p.charCodeAt(c),u===0?++l:n.putByte(u);a=l}return n.putByte(0),n.putBytes(r),n}o(pM,"_encodePkcs1_v1_5");function XN(r,e,t,n){var i=Math.ceil(e.n.bitLength()/8),s=Rt.util.createBuffer(r),a=s.getByte(),u=s.getByte();if(a!==0||t&&u!==0&&u!==1||!t&&u!=2||t&&u===0&&typeof n>"u")throw new Error("Encryption block is invalid.");var c=0;if(u===0){c=i-3-n;for(var l=0;l<c;++l)if(s.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(u===1)for(c=0;s.length()>1;){if(s.getByte()!==255){--s.read;break}++c}else if(u===2)for(c=0;s.length()>1;){if(s.getByte()===0){--s.read;break}++c}var p=s.getByte();if(p!==0||c!==i-3-s.length())throw new Error("Encryption block is invalid.");return s.getBytes()}o(XN,"_decodePkcs1_v1_5");function wle(r,e,t){typeof e=="function"&&(t=e,e={}),e=e||{};var n={algorithm:{name:e.algorithm||"PRIMEINC",options:{workers:e.workers||2,workLoad:e.workLoad||100,workerScript:e.workerScript}}};"prng"in e&&(n.prng=e.prng),i();function i(){s(r.pBits,function(u,c){if(u)return t(u);if(r.p=c,r.q!==null)return a(u,r.q);s(r.qBits,a)})}o(i,"generate");function s(u,c){Rt.prime.generateProbablePrime(u,n,c)}o(s,"getPrime");function a(u,c){if(u)return t(u);if(r.q=c,r.p.compareTo(r.q)<0){var l=r.p;r.p=r.q,r.q=l}if(r.p.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)!==0){r.p=null,i();return}if(r.q.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)!==0){r.q=null,s(r.qBits,a);return}if(r.p1=r.p.subtract(_r.ONE),r.q1=r.q.subtract(_r.ONE),r.phi=r.p1.multiply(r.q1),r.phi.gcd(r.e).compareTo(_r.ONE)!==0){r.p=r.q=null,i();return}if(r.n=r.p.multiply(r.q),r.n.bitLength()!==r.bits){r.q=null,s(r.qBits,a);return}var p=r.e.modInverse(r.phi);r.keys={privateKey:rr.rsa.setPrivateKey(r.n,r.e,p,r.p,r.q,p.mod(r.p1),p.mod(r.q1),r.q.modInverse(r.p)),publicKey:rr.rsa.setPublicKey(r.n,r.e)},t(null,r.keys)}o(a,"finish")}o(wle,"_generateKeyPair");function _c(r){var e=r.toString(16);e[0]>="8"&&(e="00"+e);var t=Rt.util.hexToBytes(e);return t.length>1&&(t.charCodeAt(0)===0&&(t.charCodeAt(1)&128)===0||t.charCodeAt(0)===255&&(t.charCodeAt(1)&128)===128)?t.substr(1):t}o(_c,"_bnToBytes");function Cle(r){return r<=100?27:r<=150?18:r<=200?15:r<=250?12:r<=300?9:r<=350?8:r<=400?7:r<=500?6:r<=600?5:r<=800?4:r<=1250?3:2}o(Cle,"_getMillerRabinTests");function oM(r){return Rt.util.isNodejs&&typeof UP[r]=="function"}o(oM,"_detectNodeCrypto");function uM(r){return typeof ko.globalScope<"u"&&typeof ko.globalScope.crypto=="object"&&typeof ko.globalScope.crypto.subtle=="object"&&typeof ko.globalScope.crypto.subtle[r]=="function"}o(uM,"_detectSubtleCrypto");function cM(r){return typeof ko.globalScope<"u"&&typeof ko.globalScope.msCrypto=="object"&&typeof ko.globalScope.msCrypto.subtle=="object"&&typeof ko.globalScope.msCrypto.subtle[r]=="function"}o(cM,"_detectSubtleMsCrypto");function lM(r){for(var e=Rt.util.hexToBytes(r.toString(16)),t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}o(lM,"_intToUint8Array")});var MP=Z((a2e,yM)=>{"use strict";var mt=pr();_p();Nu();Rx();Ec();Op();HN();Jd();Fo();OP();Ox();kr();typeof dM>"u"&&(dM=mt.jsbn.BigInteger);var dM,Re=mt.asn1,ur=mt.pki=mt.pki||{};yM.exports=ur.pbe=mt.pbe=mt.pbe||{};var Zd=ur.oids,Ele={name:"EncryptedPrivateKeyInfo",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},Ale={name:"PBES2Algorithms",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},Nle={name:"pkcs-12PbeParams",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,capture:"iterations"}]};ur.encryptPrivateKeyInfo=function(r,e,t){t=t||{},t.saltSize=t.saltSize||8,t.count=t.count||2048,t.algorithm=t.algorithm||"aes128",t.prfAlgorithm=t.prfAlgorithm||"sha1";var n=mt.random.getBytesSync(t.saltSize),i=t.count,s=Re.integerToDer(i),a,u,c;if(t.algorithm.indexOf("aes")===0||t.algorithm==="des"){var l,p,m;switch(t.algorithm){case"aes128":a=16,l=16,p=Zd["aes128-CBC"],m=mt.aes.createEncryptionCipher;break;case"aes192":a=24,l=16,p=Zd["aes192-CBC"],m=mt.aes.createEncryptionCipher;break;case"aes256":a=32,l=16,p=Zd["aes256-CBC"],m=mt.aes.createEncryptionCipher;break;case"des":a=8,l=8,p=Zd.desCBC,m=mt.des.createEncryptionCipher;break;default:var g=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw g.algorithm=t.algorithm,g}var S="hmacWith"+t.prfAlgorithm.toUpperCase(),v=vM(S),b=mt.pkcs5.pbkdf2(e,n,i,a,v),x=mt.random.getBytesSync(l),E=m(b);E.start(x),E.update(Re.toDer(r)),E.finish(),c=E.output.getBytes();var N=Ile(n,s,a,S);u=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(Zd.pkcs5PBES2).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(Zd.pkcs5PBKDF2).getBytes()),N]),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(p).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,x)])])])}else if(t.algorithm==="3des"){a=24;var w=new mt.util.ByteBuffer(n),b=ur.pbe.generatePkcs12Key(e,w,1,i,a),x=ur.pbe.generatePkcs12Key(e,w,2,i,a),E=mt.des.createEncryptionCipher(b);E.start(x),E.update(Re.toDer(r)),E.finish(),c=E.output.getBytes(),u=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(Zd["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,n),Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,s.getBytes())])])}else{var g=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw g.algorithm=t.algorithm,g}var C=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[u,Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,c)]);return C};ur.decryptPrivateKeyInfo=function(r,e){var t=null,n={},i=[];if(!Re.validate(r,Ele,n,i)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}var a=Re.derToOid(n.encryptionOid),u=ur.pbe.getCipher(a,n.encryptionParams,e),c=mt.util.createBuffer(n.encryptedData);return u.update(c),u.finish()&&(t=Re.fromDer(u.output)),t};ur.encryptedPrivateKeyToPem=function(r,e){var t={type:"ENCRYPTED PRIVATE KEY",body:Re.toDer(r).getBytes()};return mt.pem.encode(t,{maxline:e})};ur.encryptedPrivateKeyFromPem=function(r){var e=mt.pem.decode(r)[0];if(e.type!=="ENCRYPTED PRIVATE KEY"){var t=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return Re.fromDer(e.body)};ur.encryptRsaPrivateKey=function(r,e,t){if(t=t||{},!t.legacy){var n=ur.wrapRsaPrivateKey(ur.privateKeyToAsn1(r));return n=ur.encryptPrivateKeyInfo(n,e,t),ur.encryptedPrivateKeyToPem(n)}var i,s,a,u;switch(t.algorithm){case"aes128":i="AES-128-CBC",a=16,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"aes192":i="AES-192-CBC",a=24,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"aes256":i="AES-256-CBC",a=32,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"3des":i="DES-EDE3-CBC",a=24,s=mt.random.getBytesSync(8),u=mt.des.createEncryptionCipher;break;case"des":i="DES-CBC",a=8,s=mt.random.getBytesSync(8),u=mt.des.createEncryptionCipher;break;default:var c=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+t.algorithm+'".');throw c.algorithm=t.algorithm,c}var l=mt.pbe.opensslDeriveBytes(e,s.substr(0,8),a),p=u(l);p.start(s),p.update(Re.toDer(ur.privateKeyToAsn1(r))),p.finish();var m={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:i,parameters:mt.util.bytesToHex(s).toUpperCase()},body:p.output.getBytes()};return mt.pem.encode(m)};ur.decryptRsaPrivateKey=function(r,e){var t=null,n=mt.pem.decode(r)[0];if(n.type!=="ENCRYPTED PRIVATE KEY"&&n.type!=="PRIVATE KEY"&&n.type!=="RSA PRIVATE KEY"){var i=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw i.headerType=i,i}if(n.procType&&n.procType.type==="ENCRYPTED"){var s,a;switch(n.dekInfo.algorithm){case"DES-CBC":s=8,a=mt.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,a=mt.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,a=mt.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,a=mt.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,a=mt.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,a=o(function(m){return mt.rc2.createDecryptionCipher(m,40)},"cipherFn");break;case"RC2-64-CBC":s=8,a=o(function(m){return mt.rc2.createDecryptionCipher(m,64)},"cipherFn");break;case"RC2-128-CBC":s=16,a=o(function(m){return mt.rc2.createDecryptionCipher(m,128)},"cipherFn");break;default:var i=new Error('Could not decrypt private key; unsupported encryption algorithm "'+n.dekInfo.algorithm+'".');throw i.algorithm=n.dekInfo.algorithm,i}var u=mt.util.hexToBytes(n.dekInfo.parameters),c=mt.pbe.opensslDeriveBytes(e,u.substr(0,8),s),l=a(c);if(l.start(u),l.update(mt.util.createBuffer(n.body)),l.finish())t=l.output.getBytes();else return t}else t=n.body;return n.type==="ENCRYPTED PRIVATE KEY"?t=ur.decryptPrivateKeyInfo(Re.fromDer(t),e):t=Re.fromDer(t),t!==null&&(t=ur.privateKeyFromAsn1(t)),t};ur.pbe.generatePkcs12Key=function(r,e,t,n,i,s){var a,u;if(typeof s>"u"||s===null){if(!("sha1"in mt.md))throw new Error('"sha1" hash algorithm unavailable.');s=mt.md.sha1.create()}var c=s.digestLength,l=s.blockLength,p=new mt.util.ByteBuffer,m=new mt.util.ByteBuffer;if(r!=null){for(u=0;u<r.length;u++)m.putInt16(r.charCodeAt(u));m.putInt16(0)}var g=m.length(),S=e.length(),v=new mt.util.ByteBuffer;v.fillWithByte(t,l);var b=l*Math.ceil(S/l),x=new mt.util.ByteBuffer;for(u=0;u<b;u++)x.putByte(e.at(u%S));var E=l*Math.ceil(g/l),N=new mt.util.ByteBuffer;for(u=0;u<E;u++)N.putByte(m.at(u%g));var w=x;w.putBuffer(N);for(var C=Math.ceil(i/c),A=1;A<=C;A++){var R=new mt.util.ByteBuffer;R.putBytes(v.bytes()),R.putBytes(w.bytes());for(var M=0;M<n;M++)s.start(),s.update(R.getBytes()),R=s.digest();var _=new mt.util.ByteBuffer;for(u=0;u<l;u++)_.putByte(R.at(u%c));var H=Math.ceil(S/l)+Math.ceil(g/l),z=new mt.util.ByteBuffer;for(a=0;a<H;a++){var K=new mt.util.ByteBuffer(w.getBytes(l)),X=511;for(u=_.length()-1;u>=0;u--)X=X>>8,X+=_.at(u)+K.at(u),K.setAt(u,X&255);z.putBuffer(K)}w=z,p.putBuffer(R)}return p.truncate(p.length()-i),p};ur.pbe.getCipher=function(r,e,t){switch(r){case ur.oids.pkcs5PBES2:return ur.pbe.getCipherForPBES2(r,e,t);case ur.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case ur.oids["pbewithSHAAnd40BitRC2-CBC"]:return ur.pbe.getCipherForPKCS12PBE(r,e,t);default:var n=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw n.oid=r,n.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],n}};ur.pbe.getCipherForPBES2=function(r,e,t){var n={},i=[];if(!Re.validate(e,Ale,n,i)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}if(r=Re.derToOid(n.kdfOid),r!==ur.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=r,s.supportedOids=["pkcs5PBKDF2"],s}if(r=Re.derToOid(n.encOid),r!==ur.oids["aes128-CBC"]&&r!==ur.oids["aes192-CBC"]&&r!==ur.oids["aes256-CBC"]&&r!==ur.oids["des-EDE3-CBC"]&&r!==ur.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=r,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var a=n.kdfSalt,u=mt.util.createBuffer(n.kdfIterationCount);u=u.getInt(u.length()<<3);var c,l;switch(ur.oids[r]){case"aes128-CBC":c=16,l=mt.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,l=mt.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,l=mt.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,l=mt.des.createDecryptionCipher;break;case"desCBC":c=8,l=mt.des.createDecryptionCipher;break}var p=gM(n.prfOid),m=mt.pkcs5.pbkdf2(t,a,u,c,p),g=n.encIv,S=l(m);return S.start(g),S};ur.pbe.getCipherForPKCS12PBE=function(r,e,t){var n={},i=[];if(!Re.validate(e,Nle,n,i)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}var a=mt.util.createBuffer(n.salt),u=mt.util.createBuffer(n.iterations);u=u.getInt(u.length()<<3);var c,l,p;switch(r){case ur.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,l=8,p=mt.des.startDecrypting;break;case ur.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,l=8,p=o(function(b,x){var E=mt.rc2.createDecryptionCipher(b,40);return E.start(x,null),E},"cipherFn");break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=r,s}var m=gM(n.prfOid),g=ur.pbe.generatePkcs12Key(t,a,1,u,c,m);m.start();var S=ur.pbe.generatePkcs12Key(t,a,2,u,l,m);return p(g,S)};ur.pbe.opensslDeriveBytes=function(r,e,t,n){if(typeof n>"u"||n===null){if(!("md5"in mt.md))throw new Error('"md5" hash algorithm unavailable.');n=mt.md.md5.create()}e===null&&(e="");for(var i=[mM(n,r+e)],s=16,a=1;s<t;++a,s+=16)i.push(mM(n,i[a-1]+r+e));return i.join("").substr(0,t)};function mM(r,e){return r.start().update(e).digest().getBytes()}o(mM,"hash");function gM(r){var e;if(!r)e="hmacWithSHA1";else if(e=ur.oids[Re.derToOid(r)],!e){var t=new Error("Unsupported PRF OID.");throw t.oid=r,t.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],t}return vM(e)}o(gM,"prfOidToMessageDigest");function vM(r){var e=mt.md;switch(r){case"hmacWithSHA224":e=mt.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":r=r.substr(8).toLowerCase();break;default:var t=new Error("Unsupported PRF algorithm.");throw t.algorithm=r,t.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],t}if(!e||!(r in e))throw new Error("Unknown hash algorithm: "+r);return e[r].create()}o(vM,"prfAlgorithmToMessageDigest");function Ile(r,e,t,n){var i=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,r),Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,e.getBytes())]);return n!=="hmacWithSHA1"&&i.value.push(Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,mt.util.hexToBytes(t.toString(16))),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(ur.oids[n]).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.NULL,!1,"")])),i}o(Ile,"createPbkdf2Params")});var qP=Z((u2e,bM)=>{"use strict";var rv=pr();Nu();kr();var pt=rv.asn1,nv=bM.exports=rv.pkcs7asn1=rv.pkcs7asn1||{};rv.pkcs7=rv.pkcs7||{};rv.pkcs7.asn1=nv;var SM={name:"ContentInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};nv.contentInfoValidator=SM;var xM={name:"EncryptedContentInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};nv.envelopedDataValidator={name:"EnvelopedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(xM)};nv.encryptedDataValidator={name:"EncryptedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"}].concat(xM)};var Tle={name:"SignerInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:pt.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};nv.signedDataValidator={name:"SignedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},SM,{name:"SignedData.Certificates",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:pt.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,capture:"signerInfos",optional:!0,value:[Tle]}]};nv.recipientInfoValidator={name:"RecipientInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}});var HP=Z((c2e,wM)=>{"use strict";var em=pr();kr();em.mgf=em.mgf||{};var Rle=wM.exports=em.mgf.mgf1=em.mgf1=em.mgf1||{};Rle.create=function(r){var e={generate:o(function(t,n){for(var i=new em.util.ByteBuffer,s=Math.ceil(n/r.digestLength),a=0;a<s;a++){var u=new em.util.ByteBuffer;u.putInt32(a),r.start(),r.update(t+u.getBytes()),i.putBuffer(r.digest())}return i.truncate(i.length()-n),i.getBytes()},"generate")};return e}});var EM=Z((f2e,CM)=>{"use strict";var WN=pr();HP();CM.exports=WN.mgf=WN.mgf||{};WN.mgf.mgf1=WN.mgf1});var JN=Z((p2e,AM)=>{"use strict";var tm=pr();Fo();kr();var Dle=AM.exports=tm.pss=tm.pss||{};Dle.create=function(r){arguments.length===3&&(r={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var e=r.md,t=r.mgf,n=e.digestLength,i=r.salt||null;typeof i=="string"&&(i=tm.util.createBuffer(i));var s;if("saltLength"in r)s=r.saltLength;else if(i!==null)s=i.length();else throw new Error("Salt length not specified or specific salt not given.");if(i!==null&&i.length()!==s)throw new Error("Given salt length does not match length of given salt.");var a=r.prng||tm.random,u={};return u.encode=function(c,l){var p,m=l-1,g=Math.ceil(m/8),S=c.digest().getBytes();if(g<n+s+2)throw new Error("Message is too long to encrypt.");var v;i===null?v=a.getBytesSync(s):v=i.bytes();var b=new tm.util.ByteBuffer;b.fillWithByte(0,8),b.putBytes(S),b.putBytes(v),e.start(),e.update(b.getBytes());var x=e.digest().getBytes(),E=new tm.util.ByteBuffer;E.fillWithByte(0,g-s-n-2),E.putByte(1),E.putBytes(v);var N=E.getBytes(),w=g-n-1,C=t.generate(x,w),A="";for(p=0;p<w;p++)A+=String.fromCharCode(N.charCodeAt(p)^C.charCodeAt(p));var R=65280>>8*g-m&255;return A=String.fromCharCode(A.charCodeAt(0)&~R)+A.substr(1),A+x+"\xBC"},u.verify=function(c,l,p){var m,g=p-1,S=Math.ceil(g/8);if(l=l.substr(-S),S<n+s+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(l.charCodeAt(S-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var v=S-n-1,b=l.substr(0,v),x=l.substr(v,n),E=65280>>8*S-g&255;if((b.charCodeAt(0)&E)!==0)throw new Error("Bits beyond keysize not zero as expected.");var N=t.generate(x,v),w="";for(m=0;m<v;m++)w+=String.fromCharCode(b.charCodeAt(m)^N.charCodeAt(m));w=String.fromCharCode(w.charCodeAt(0)&~E)+w.substr(1);var C=S-n-s-2;for(m=0;m<C;m++)if(w.charCodeAt(m)!==0)throw new Error("Leftmost octets not zero as expected");if(w.charCodeAt(C)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var A=w.substr(-s),R=new tm.util.ByteBuffer;R.fillWithByte(0,8),R.putBytes(c),R.putBytes(A),e.start(),e.update(R.getBytes());var M=e.digest().getBytes();return x===M},u}});var ZN=Z((h2e,DM)=>{"use strict";var Dt=pr();_p();Nu();Rx();Ec();EM();Op();Jd();JN();Ox();kr();var L=Dt.asn1,rt=DM.exports=Dt.pki=Dt.pki||{},Or=rt.oids,si={};si.CN=Or.commonName;si.commonName="CN";si.C=Or.countryName;si.countryName="C";si.L=Or.localityName;si.localityName="L";si.ST=Or.stateOrProvinceName;si.stateOrProvinceName="ST";si.O=Or.organizationName;si.organizationName="O";si.OU=Or.organizationalUnitName;si.organizationalUnitName="OU";si.E=Or.emailAddress;si.emailAddress="E";var IM=Dt.pki.rsa.publicKeyValidator,_le={name:"Certificate",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:L.Class.UNIVERSAL,type:L.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:L.Class.UNIVERSAL,type:L.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:L.Class.UNIVERSAL,type:L.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:L.Class.UNIVERSAL,type:L.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},IM,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:L.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:L.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:L.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},Ole={name:"rsapss",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:L.Class.UNIVERSAL,type:L.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:L.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:L.Class.UNIVERSAL,type:L.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:L.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:L.Class.UNIVERSAL,type:L.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:L.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:L.Class.UNIVERSAL,type:L.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},Ple={name:"CertificationRequestInfo",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},IM,{name:"CertificationRequestInfo.attributes",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:L.Class.UNIVERSAL,type:L.Type.SET,constructed:!0}]}]}]},Ble={name:"CertificationRequest",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[Ple,{name:"CertificationRequest.signatureAlgorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};rt.RDNAttributesAsArray=function(r,e){for(var t=[],n,i,s,a=0;a<r.value.length;++a){n=r.value[a];for(var u=0;u<n.value.length;++u)s={},i=n.value[u],s.type=L.derToOid(i.value[0].value),s.value=i.value[1].value,s.valueTagClass=i.value[1].type,s.type in Or&&(s.name=Or[s.type],s.name in si&&(s.shortName=si[s.name])),e&&(e.update(s.type),e.update(s.value)),t.push(s)}return t};rt.CRIAttributesAsArray=function(r){for(var e=[],t=0;t<r.length;++t)for(var n=r[t],i=L.derToOid(n.value[0].value),s=n.value[1].value,a=0;a<s.length;++a){var u={};if(u.type=i,u.value=s[a].value,u.valueTagClass=s[a].type,u.type in Or&&(u.name=Or[u.type],u.name in si&&(u.shortName=si[u.name])),u.type===Or.extensionRequest){u.extensions=[];for(var c=0;c<u.value.length;++c)u.extensions.push(rt.certificateExtensionFromAsn1(u.value[c]))}e.push(u)}return e};function Fp(r,e){typeof e=="string"&&(e={shortName:e});for(var t=null,n,i=0;t===null&&i<r.attributes.length;++i)n=r.attributes[i],(e.type&&e.type===n.type||e.name&&e.name===n.name||e.shortName&&e.shortName===n.shortName)&&(t=n);return t}o(Fp,"_getAttribute");var QN=o(function(r,e,t){var n={};if(r!==Or["RSASSA-PSS"])return n;t&&(n={hash:{algorithmOid:Or.sha1},mgf:{algorithmOid:Or.mgf1,hash:{algorithmOid:Or.sha1}},saltLength:20});var i={},s=[];if(!L.validate(e,Ole,i,s)){var a=new Error("Cannot read RSASSA-PSS parameter block.");throw a.errors=s,a}return i.hashOid!==void 0&&(n.hash=n.hash||{},n.hash.algorithmOid=L.derToOid(i.hashOid)),i.maskGenOid!==void 0&&(n.mgf=n.mgf||{},n.mgf.algorithmOid=L.derToOid(i.maskGenOid),n.mgf.hash=n.mgf.hash||{},n.mgf.hash.algorithmOid=L.derToOid(i.maskGenHashOid)),i.saltLength!==void 0&&(n.saltLength=i.saltLength.charCodeAt(0)),n},"_readSignatureParameters"),YN=o(function(r){switch(Or[r.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return Dt.md.sha1.create();case"md5WithRSAEncryption":return Dt.md.md5.create();case"sha256WithRSAEncryption":return Dt.md.sha256.create();case"sha384WithRSAEncryption":return Dt.md.sha384.create();case"sha512WithRSAEncryption":return Dt.md.sha512.create();case"RSASSA-PSS":return Dt.md.sha256.create();default:var e=new Error("Could not compute "+r.type+" digest. Unknown signature OID.");throw e.signatureOid=r.signatureOid,e}},"_createSignatureDigest"),TM=o(function(r){var e=r.certificate,t;switch(e.signatureOid){case Or.sha1WithRSAEncryption:case Or.sha1WithRSASignature:break;case Or["RSASSA-PSS"]:var n,i;if(n=Or[e.signatureParameters.mgf.hash.algorithmOid],n===void 0||Dt.md[n]===void 0){var s=new Error("Unsupported MGF hash function.");throw s.oid=e.signatureParameters.mgf.hash.algorithmOid,s.name=n,s}if(i=Or[e.signatureParameters.mgf.algorithmOid],i===void 0||Dt.mgf[i]===void 0){var s=new Error("Unsupported MGF function.");throw s.oid=e.signatureParameters.mgf.algorithmOid,s.name=i,s}if(i=Dt.mgf[i].create(Dt.md[n].create()),n=Or[e.signatureParameters.hash.algorithmOid],n===void 0||Dt.md[n]===void 0){var s=new Error("Unsupported RSASSA-PSS hash function.");throw s.oid=e.signatureParameters.hash.algorithmOid,s.name=n,s}t=Dt.pss.create(Dt.md[n].create(),i,e.signatureParameters.saltLength);break}return e.publicKey.verify(r.md.digest().getBytes(),r.signature,t)},"_verifySignature");rt.certificateFromPem=function(r,e,t){var n=Dt.pem.decode(r)[0];if(n.type!=="CERTIFICATE"&&n.type!=="X509 CERTIFICATE"&&n.type!=="TRUSTED CERTIFICATE"){var i=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var s=L.fromDer(n.body,t);return rt.certificateFromAsn1(s,e)};rt.certificateToPem=function(r,e){var t={type:"CERTIFICATE",body:L.toDer(rt.certificateToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.publicKeyFromPem=function(r){var e=Dt.pem.decode(r)[0];if(e.type!=="PUBLIC KEY"&&e.type!=="RSA PUBLIC KEY"){var t=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var n=L.fromDer(e.body);return rt.publicKeyFromAsn1(n)};rt.publicKeyToPem=function(r,e){var t={type:"PUBLIC KEY",body:L.toDer(rt.publicKeyToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.publicKeyToRSAPublicKeyPem=function(r,e){var t={type:"RSA PUBLIC KEY",body:L.toDer(rt.publicKeyToRSAPublicKey(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.getPublicKeyFingerprint=function(r,e){e=e||{};var t=e.md||Dt.md.sha1.create(),n=e.type||"RSAPublicKey",i;switch(n){case"RSAPublicKey":i=L.toDer(rt.publicKeyToRSAPublicKey(r)).getBytes();break;case"SubjectPublicKeyInfo":i=L.toDer(rt.publicKeyToAsn1(r)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+e.type+'".')}t.start(),t.update(i);var s=t.digest();if(e.encoding==="hex"){var a=s.toHex();return e.delimiter?a.match(/.{2}/g).join(e.delimiter):a}else{if(e.encoding==="binary")return s.getBytes();if(e.encoding)throw new Error('Unknown encoding "'+e.encoding+'".')}return s};rt.certificationRequestFromPem=function(r,e,t){var n=Dt.pem.decode(r)[0];if(n.type!=="CERTIFICATE REQUEST"){var i=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var s=L.fromDer(n.body,t);return rt.certificationRequestFromAsn1(s,e)};rt.certificationRequestToPem=function(r,e){var t={type:"CERTIFICATE REQUEST",body:L.toDer(rt.certificationRequestToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.createCertificate=function(){var r={};return r.version=2,r.serialNumber="00",r.signatureOid=null,r.signature=null,r.siginfo={},r.siginfo.algorithmOid=null,r.validity={},r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.issuer={},r.issuer.getField=function(e){return Fp(r.issuer,e)},r.issuer.addField=function(e){Vo([e]),r.issuer.attributes.push(e)},r.issuer.attributes=[],r.issuer.hash=null,r.subject={},r.subject.getField=function(e){return Fp(r.subject,e)},r.subject.addField=function(e){Vo([e]),r.subject.attributes.push(e)},r.subject.attributes=[],r.subject.hash=null,r.extensions=[],r.publicKey=null,r.md=null,r.setSubject=function(e,t){Vo(e),r.subject.attributes=e,delete r.subject.uniqueId,t&&(r.subject.uniqueId=t),r.subject.hash=null},r.setIssuer=function(e,t){Vo(e),r.issuer.attributes=e,delete r.issuer.uniqueId,t&&(r.issuer.uniqueId=t),r.issuer.hash=null},r.setExtensions=function(e){for(var t=0;t<e.length;++t)RM(e[t],{cert:r});r.extensions=e},r.getExtension=function(e){typeof e=="string"&&(e={name:e});for(var t=null,n,i=0;t===null&&i<r.extensions.length;++i)n=r.extensions[i],(e.id&&n.id===e.id||e.name&&n.name===e.name)&&(t=n);return t},r.sign=function(e,t){r.md=t||Dt.md.sha1.create();var n=Or[r.md.algorithm+"WithRSAEncryption"];if(!n){var i=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw i.algorithm=r.md.algorithm,i}r.signatureOid=r.siginfo.algorithmOid=n,r.tbsCertificate=rt.getTBSCertificate(r);var s=L.toDer(r.tbsCertificate);r.md.update(s.getBytes()),r.signature=e.sign(r.md)},r.verify=function(e){var t=!1;if(!r.issued(e)){var n=e.issuer,i=r.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=i.attributes,s.actualIssuer=n.attributes,s}var a=e.md;if(a===null){a=YN({signatureOid:e.signatureOid,type:"certificate"});var u=e.tbsCertificate||rt.getTBSCertificate(e),c=L.toDer(u);a.update(c.getBytes())}return a!==null&&(t=TM({certificate:r,md:a,signature:e.signature})),t},r.isIssuer=function(e){var t=!1,n=r.issuer,i=e.subject;if(n.hash&&i.hash)t=n.hash===i.hash;else if(n.attributes.length===i.attributes.length){t=!0;for(var s,a,u=0;t&&u<n.attributes.length;++u)s=n.attributes[u],a=i.attributes[u],(s.type!==a.type||s.value!==a.value)&&(t=!1)}return t},r.issued=function(e){return e.isIssuer(r)},r.generateSubjectKeyIdentifier=function(){return rt.getPublicKeyFingerprint(r.publicKey,{type:"RSAPublicKey"})},r.verifySubjectKeyIdentifier=function(){for(var e=Or.subjectKeyIdentifier,t=0;t<r.extensions.length;++t){var n=r.extensions[t];if(n.id===e){var i=r.generateSubjectKeyIdentifier().getBytes();return Dt.util.hexToBytes(n.subjectKeyIdentifier)===i}}return!1},r};rt.certificateFromAsn1=function(r,e){var t={},n=[];if(!L.validate(r,_le,t,n)){var i=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw i.errors=n,i}var s=L.derToOid(t.publicKeyOid);if(s!==rt.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var a=rt.createCertificate();a.version=t.certVersion?t.certVersion.charCodeAt(0):0;var u=Dt.util.createBuffer(t.certSerialNumber);a.serialNumber=u.toHex(),a.signatureOid=Dt.asn1.derToOid(t.certSignatureOid),a.signatureParameters=QN(a.signatureOid,t.certSignatureParams,!0),a.siginfo.algorithmOid=Dt.asn1.derToOid(t.certinfoSignatureOid),a.siginfo.parameters=QN(a.siginfo.algorithmOid,t.certinfoSignatureParams,!1),a.signature=t.certSignature;var c=[];if(t.certValidity1UTCTime!==void 0&&c.push(L.utcTimeToDate(t.certValidity1UTCTime)),t.certValidity2GeneralizedTime!==void 0&&c.push(L.generalizedTimeToDate(t.certValidity2GeneralizedTime)),t.certValidity3UTCTime!==void 0&&c.push(L.utcTimeToDate(t.certValidity3UTCTime)),t.certValidity4GeneralizedTime!==void 0&&c.push(L.generalizedTimeToDate(t.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(a.validity.notBefore=c[0],a.validity.notAfter=c[1],a.tbsCertificate=t.tbsCertificate,e){a.md=YN({signatureOid:a.signatureOid,type:"certificate"});var l=L.toDer(a.tbsCertificate);a.md.update(l.getBytes())}var p=Dt.md.sha1.create(),m=L.toDer(t.certIssuer);p.update(m.getBytes()),a.issuer.getField=function(v){return Fp(a.issuer,v)},a.issuer.addField=function(v){Vo([v]),a.issuer.attributes.push(v)},a.issuer.attributes=rt.RDNAttributesAsArray(t.certIssuer),t.certIssuerUniqueId&&(a.issuer.uniqueId=t.certIssuerUniqueId),a.issuer.hash=p.digest().toHex();var g=Dt.md.sha1.create(),S=L.toDer(t.certSubject);return g.update(S.getBytes()),a.subject.getField=function(v){return Fp(a.subject,v)},a.subject.addField=function(v){Vo([v]),a.subject.attributes.push(v)},a.subject.attributes=rt.RDNAttributesAsArray(t.certSubject),t.certSubjectUniqueId&&(a.subject.uniqueId=t.certSubjectUniqueId),a.subject.hash=g.digest().toHex(),t.certExtensions?a.extensions=rt.certificateExtensionsFromAsn1(t.certExtensions):a.extensions=[],a.publicKey=rt.publicKeyFromAsn1(t.subjectPublicKeyInfo),a};rt.certificateExtensionsFromAsn1=function(r){for(var e=[],t=0;t<r.value.length;++t)for(var n=r.value[t],i=0;i<n.value.length;++i)e.push(rt.certificateExtensionFromAsn1(n.value[i]));return e};rt.certificateExtensionFromAsn1=function(r){var e={};if(e.id=L.derToOid(r.value[0].value),e.critical=!1,r.value[1].type===L.Type.BOOLEAN?(e.critical=r.value[1].value.charCodeAt(0)!==0,e.value=r.value[2].value):e.value=r.value[1].value,e.id in Or){if(e.name=Or[e.id],e.name==="keyUsage"){var t=L.fromDer(e.value),n=0,i=0;t.value.length>1&&(n=t.value.charCodeAt(1),i=t.value.length>2?t.value.charCodeAt(2):0),e.digitalSignature=(n&128)===128,e.nonRepudiation=(n&64)===64,e.keyEncipherment=(n&32)===32,e.dataEncipherment=(n&16)===16,e.keyAgreement=(n&8)===8,e.keyCertSign=(n&4)===4,e.cRLSign=(n&2)===2,e.encipherOnly=(n&1)===1,e.decipherOnly=(i&128)===128}else if(e.name==="basicConstraints"){var t=L.fromDer(e.value);t.value.length>0&&t.value[0].type===L.Type.BOOLEAN?e.cA=t.value[0].value.charCodeAt(0)!==0:e.cA=!1;var s=null;t.value.length>0&&t.value[0].type===L.Type.INTEGER?s=t.value[0].value:t.value.length>1&&(s=t.value[1].value),s!==null&&(e.pathLenConstraint=L.derToInteger(s))}else if(e.name==="extKeyUsage")for(var t=L.fromDer(e.value),a=0;a<t.value.length;++a){var u=L.derToOid(t.value[a].value);u in Or?e[Or[u]]=!0:e[u]=!0}else if(e.name==="nsCertType"){var t=L.fromDer(e.value),n=0;t.value.length>1&&(n=t.value.charCodeAt(1)),e.client=(n&128)===128,e.server=(n&64)===64,e.email=(n&32)===32,e.objsign=(n&16)===16,e.reserved=(n&8)===8,e.sslCA=(n&4)===4,e.emailCA=(n&2)===2,e.objCA=(n&1)===1}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.altNames=[];for(var c,t=L.fromDer(e.value),l=0;l<t.value.length;++l){c=t.value[l];var p={type:c.type,value:c.value};switch(e.altNames.push(p),c.type){case 1:case 2:case 6:break;case 7:p.ip=Dt.util.bytesToIP(c.value);break;case 8:p.oid=L.derToOid(c.value);break;default:}}}else if(e.name==="subjectKeyIdentifier"){var t=L.fromDer(e.value);e.subjectKeyIdentifier=Dt.util.bytesToHex(t.value)}}return e};rt.certificationRequestFromAsn1=function(r,e){var t={},n=[];if(!L.validate(r,Ble,t,n)){var i=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw i.errors=n,i}var s=L.derToOid(t.publicKeyOid);if(s!==rt.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var a=rt.createCertificationRequest();if(a.version=t.csrVersion?t.csrVersion.charCodeAt(0):0,a.signatureOid=Dt.asn1.derToOid(t.csrSignatureOid),a.signatureParameters=QN(a.signatureOid,t.csrSignatureParams,!0),a.siginfo.algorithmOid=Dt.asn1.derToOid(t.csrSignatureOid),a.siginfo.parameters=QN(a.siginfo.algorithmOid,t.csrSignatureParams,!1),a.signature=t.csrSignature,a.certificationRequestInfo=t.certificationRequestInfo,e){a.md=YN({signatureOid:a.signatureOid,type:"certification request"});var u=L.toDer(a.certificationRequestInfo);a.md.update(u.getBytes())}var c=Dt.md.sha1.create();return a.subject.getField=function(l){return Fp(a.subject,l)},a.subject.addField=function(l){Vo([l]),a.subject.attributes.push(l)},a.subject.attributes=rt.RDNAttributesAsArray(t.certificationRequestInfoSubject,c),a.subject.hash=c.digest().toHex(),a.publicKey=rt.publicKeyFromAsn1(t.subjectPublicKeyInfo),a.getAttribute=function(l){return Fp(a,l)},a.addAttribute=function(l){Vo([l]),a.attributes.push(l)},a.attributes=rt.CRIAttributesAsArray(t.certificationRequestInfoAttributes||[]),a};rt.createCertificationRequest=function(){var r={};return r.version=0,r.signatureOid=null,r.signature=null,r.siginfo={},r.siginfo.algorithmOid=null,r.subject={},r.subject.getField=function(e){return Fp(r.subject,e)},r.subject.addField=function(e){Vo([e]),r.subject.attributes.push(e)},r.subject.attributes=[],r.subject.hash=null,r.publicKey=null,r.attributes=[],r.getAttribute=function(e){return Fp(r,e)},r.addAttribute=function(e){Vo([e]),r.attributes.push(e)},r.md=null,r.setSubject=function(e){Vo(e),r.subject.attributes=e,r.subject.hash=null},r.setAttributes=function(e){Vo(e),r.attributes=e},r.sign=function(e,t){r.md=t||Dt.md.sha1.create();var n=Or[r.md.algorithm+"WithRSAEncryption"];if(!n){var i=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw i.algorithm=r.md.algorithm,i}r.signatureOid=r.siginfo.algorithmOid=n,r.certificationRequestInfo=rt.getCertificationRequestInfo(r);var s=L.toDer(r.certificationRequestInfo);r.md.update(s.getBytes()),r.signature=e.sign(r.md)},r.verify=function(){var e=!1,t=r.md;if(t===null){t=YN({signatureOid:r.signatureOid,type:"certification request"});var n=r.certificationRequestInfo||rt.getCertificationRequestInfo(r),i=L.toDer(n);t.update(i.getBytes())}return t!==null&&(e=TM({certificate:r,md:t,signature:r.signature})),e},r};function iv(r){for(var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),t,n,i=r.attributes,s=0;s<i.length;++s){t=i[s];var a=t.value,u=L.Type.PRINTABLESTRING;"valueTagClass"in t&&(u=t.valueTagClass,u===L.Type.UTF8&&(a=Dt.util.encodeUtf8(a))),n=L.create(L.Class.UNIVERSAL,L.Type.SET,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(t.type).getBytes()),L.create(L.Class.UNIVERSAL,u,!1,a)])]),e.value.push(n)}return e}o(iv,"_dnToAsn1");function Vo(r){for(var e,t=0;t<r.length;++t){if(e=r[t],typeof e.name>"u"&&(e.type&&e.type in rt.oids?e.name=rt.oids[e.type]:e.shortName&&e.shortName in si&&(e.name=rt.oids[si[e.shortName]])),typeof e.type>"u")if(e.name&&e.name in rt.oids)e.type=rt.oids[e.name];else{var n=new Error("Attribute type not specified.");throw n.attribute=e,n}if(typeof e.shortName>"u"&&e.name&&e.name in si&&(e.shortName=si[e.name]),e.type===Or.extensionRequest&&(e.valueConstructed=!0,e.valueTagClass=L.Type.SEQUENCE,!e.value&&e.extensions)){e.value=[];for(var i=0;i<e.extensions.length;++i)e.value.push(rt.certificateExtensionToAsn1(RM(e.extensions[i])))}if(typeof e.value>"u"){var n=new Error("Attribute value not specified.");throw n.attribute=e,n}}}o(Vo,"_fillMissingFields");function RM(r,e){if(e=e||{},typeof r.name>"u"&&r.id&&r.id in rt.oids&&(r.name=rt.oids[r.id]),typeof r.id>"u")if(r.name&&r.name in rt.oids)r.id=rt.oids[r.name];else{var t=new Error("Extension ID not specified.");throw t.extension=r,t}if(typeof r.value<"u")return r;if(r.name==="keyUsage"){var n=0,i=0,s=0;r.digitalSignature&&(i|=128,n=7),r.nonRepudiation&&(i|=64,n=6),r.keyEncipherment&&(i|=32,n=5),r.dataEncipherment&&(i|=16,n=4),r.keyAgreement&&(i|=8,n=3),r.keyCertSign&&(i|=4,n=2),r.cRLSign&&(i|=2,n=1),r.encipherOnly&&(i|=1,n=0),r.decipherOnly&&(s|=128,n=7);var a=String.fromCharCode(n);s!==0?a+=String.fromCharCode(i)+String.fromCharCode(s):i!==0&&(a+=String.fromCharCode(i)),r.value=L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,a)}else if(r.name==="basicConstraints")r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),r.cA&&r.value.value.push(L.create(L.Class.UNIVERSAL,L.Type.BOOLEAN,!1,"\xFF")),"pathLenConstraint"in r&&r.value.value.push(L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.pathLenConstraint).getBytes()));else if(r.name==="extKeyUsage"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);var u=r.value.value;for(var c in r)r[c]===!0&&(c in Or?u.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(Or[c]).getBytes())):c.indexOf(".")!==-1&&u.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(c).getBytes())))}else if(r.name==="nsCertType"){var n=0,i=0;r.client&&(i|=128,n=7),r.server&&(i|=64,n=6),r.email&&(i|=32,n=5),r.objsign&&(i|=16,n=4),r.reserved&&(i|=8,n=3),r.sslCA&&(i|=4,n=2),r.emailCA&&(i|=2,n=1),r.objCA&&(i|=1,n=0);var a=String.fromCharCode(n);i!==0&&(a+=String.fromCharCode(i)),r.value=L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,a)}else if(r.name==="subjectAltName"||r.name==="issuerAltName"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);for(var l,p=0;p<r.altNames.length;++p){l=r.altNames[p];var a=l.value;if(l.type===7&&l.ip){if(a=Dt.util.bytesFromIP(l.ip),a===null){var t=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw t.extension=r,t}}else l.type===8&&(l.oid?a=L.oidToDer(L.oidToDer(l.oid)):a=L.oidToDer(a));r.value.value.push(L.create(L.Class.CONTEXT_SPECIFIC,l.type,!1,a))}}else if(r.name==="nsComment"&&e.cert){if(!/^[\x00-\x7F]*$/.test(r.comment)||r.comment.length<1||r.comment.length>128)throw new Error('Invalid "nsComment" content.');r.value=L.create(L.Class.UNIVERSAL,L.Type.IA5STRING,!1,r.comment)}else if(r.name==="subjectKeyIdentifier"&&e.cert){var m=e.cert.generateSubjectKeyIdentifier();r.subjectKeyIdentifier=m.toHex(),r.value=L.create(L.Class.UNIVERSAL,L.Type.OCTETSTRING,!1,m.getBytes())}else if(r.name==="authorityKeyIdentifier"&&e.cert){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);var u=r.value.value;if(r.keyIdentifier){var g=r.keyIdentifier===!0?e.cert.generateSubjectKeyIdentifier().getBytes():r.keyIdentifier;u.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!1,g))}if(r.authorityCertIssuer){var S=[L.create(L.Class.CONTEXT_SPECIFIC,4,!0,[iv(r.authorityCertIssuer===!0?e.cert.issuer:r.authorityCertIssuer)])];u.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,S))}if(r.serialNumber){var v=Dt.util.hexToBytes(r.serialNumber===!0?e.cert.serialNumber:r.serialNumber);u.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!1,v))}}else if(r.name==="cRLDistributionPoints"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);for(var u=r.value.value,b=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),x=L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[]),l,p=0;p<r.altNames.length;++p){l=r.altNames[p];var a=l.value;if(l.type===7&&l.ip){if(a=Dt.util.bytesFromIP(l.ip),a===null){var t=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw t.extension=r,t}}else l.type===8&&(l.oid?a=L.oidToDer(L.oidToDer(l.oid)):a=L.oidToDer(a));x.value.push(L.create(L.Class.CONTEXT_SPECIFIC,l.type,!1,a))}b.value.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[x])),u.push(b)}if(typeof r.value>"u"){var t=new Error("Extension value not specified.");throw t.extension=r,t}return r}o(RM,"_fillMissingExtensionFields");function zP(r,e){switch(r){case Or["RSASSA-PSS"]:var t=[];return e.hash.algorithmOid!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.hash.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")])])),e.mgf.algorithmOid!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.mgf.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.mgf.hash.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")])])])),e.saltLength!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(e.saltLength).getBytes())])),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,t);default:return L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")}}o(zP,"_signatureParametersToAsn1");function Fle(r){var e=L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[]);if(r.attributes.length===0)return e;for(var t=r.attributes,n=0;n<t.length;++n){var i=t[n],s=i.value,a=L.Type.UTF8;"valueTagClass"in i&&(a=i.valueTagClass),a===L.Type.UTF8&&(s=Dt.util.encodeUtf8(s));var u=!1;"valueConstructed"in i&&(u=i.valueConstructed);var c=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(i.type).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.SET,!0,[L.create(L.Class.UNIVERSAL,a,u,s)])]);e.value.push(c)}return e}o(Fle,"_CRIAttributesToAsn1");var Lle=new Date("1950-01-01T00:00:00Z"),kle=new Date("2050-01-01T00:00:00Z");function NM(r){return r>=Lle&&r<kle?L.create(L.Class.UNIVERSAL,L.Type.UTCTIME,!1,L.dateToUtcTime(r)):L.create(L.Class.UNIVERSAL,L.Type.GENERALIZEDTIME,!1,L.dateToGeneralizedTime(r))}o(NM,"_dateToAsn1");rt.getTBSCertificate=function(r){var e=NM(r.validity.notBefore),t=NM(r.validity.notAfter),n=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.version).getBytes())]),L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,Dt.util.hexToBytes(r.serialNumber)),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.siginfo.algorithmOid).getBytes()),zP(r.siginfo.algorithmOid,r.siginfo.parameters)]),iv(r.issuer),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,t]),iv(r.subject),rt.publicKeyToAsn1(r.publicKey)]);return r.issuer.uniqueId&&n.value.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,[L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.issuer.uniqueId)])),r.subject.uniqueId&&n.value.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!0,[L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.subject.uniqueId)])),r.extensions.length>0&&n.value.push(rt.certificateExtensionsToAsn1(r.extensions)),n};rt.getCertificationRequestInfo=function(r){var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.version).getBytes()),iv(r.subject),rt.publicKeyToAsn1(r.publicKey),Fle(r)]);return e};rt.distinguishedNameToAsn1=function(r){return iv(r)};rt.certificateToAsn1=function(r){var e=r.tbsCertificate||rt.getTBSCertificate(r);return L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.signatureOid).getBytes()),zP(r.signatureOid,r.signatureParameters)]),L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.signature)])};rt.certificateExtensionsToAsn1=function(r){var e=L.create(L.Class.CONTEXT_SPECIFIC,3,!0,[]),t=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);e.value.push(t);for(var n=0;n<r.length;++n)t.value.push(rt.certificateExtensionToAsn1(r[n]));return e};rt.certificateExtensionToAsn1=function(r){var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);e.value.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.id).getBytes())),r.critical&&e.value.push(L.create(L.Class.UNIVERSAL,L.Type.BOOLEAN,!1,"\xFF"));var t=r.value;return typeof r.value!="string"&&(t=L.toDer(t).getBytes()),e.value.push(L.create(L.Class.UNIVERSAL,L.Type.OCTETSTRING,!1,t)),e};rt.certificationRequestToAsn1=function(r){var e=r.certificationRequestInfo||rt.getCertificationRequestInfo(r);return L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.signatureOid).getBytes()),zP(r.signatureOid,r.signatureParameters)]),L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.signature)])};rt.createCaStore=function(r){var e={certs:{}};e.getIssuer=function(a){var u=t(a.issuer);return u},e.addCertificate=function(a){if(typeof a=="string"&&(a=Dt.pki.certificateFromPem(a)),n(a.subject),!e.hasCertificate(a))if(a.subject.hash in e.certs){var u=e.certs[a.subject.hash];Dt.util.isArray(u)||(u=[u]),u.push(a),e.certs[a.subject.hash]=u}else e.certs[a.subject.hash]=a},e.hasCertificate=function(a){typeof a=="string"&&(a=Dt.pki.certificateFromPem(a));var u=t(a.subject);if(!u)return!1;Dt.util.isArray(u)||(u=[u]);for(var c=L.toDer(rt.certificateToAsn1(a)).getBytes(),l=0;l<u.length;++l){var p=L.toDer(rt.certificateToAsn1(u[l])).getBytes();if(c===p)return!0}return!1},e.listAllCertificates=function(){var a=[];for(var u in e.certs)if(e.certs.hasOwnProperty(u)){var c=e.certs[u];if(!Dt.util.isArray(c))a.push(c);else for(var l=0;l<c.length;++l)a.push(c[l])}return a},e.removeCertificate=function(a){var u;if(typeof a=="string"&&(a=Dt.pki.certificateFromPem(a)),n(a.subject),!e.hasCertificate(a))return null;var c=t(a.subject);if(!Dt.util.isArray(c))return u=e.certs[a.subject.hash],delete e.certs[a.subject.hash],u;for(var l=L.toDer(rt.certificateToAsn1(a)).getBytes(),p=0;p<c.length;++p){var m=L.toDer(rt.certificateToAsn1(c[p])).getBytes();l===m&&(u=c[p],c.splice(p,1))}return c.length===0&&delete e.certs[a.subject.hash],u};function t(a){return n(a),e.certs[a.hash]||null}o(t,"getBySubject");function n(a){if(!a.hash){var u=Dt.md.sha1.create();a.attributes=rt.RDNAttributesAsArray(iv(a),u),a.hash=u.digest().toHex()}}if(o(n,"ensureSubjectHasHash"),r)for(var i=0;i<r.length;++i){var s=r[i];e.addCertificate(s)}return e};rt.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"};rt.verifyCertificateChain=function(r,e,t){typeof t=="function"&&(t={verify:t}),t=t||{},e=e.slice(0);var n=e.slice(0),i=t.validityCheckDate;typeof i>"u"&&(i=new Date);var s=!0,a=null,u=0;do{var c=e.shift(),l=null,p=!1;if(i&&(i<c.validity.notBefore||i>c.validity.notAfter)&&(a={message:"Certificate is not valid yet or has expired.",error:rt.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:i}),a===null){if(l=e[0]||r.getIssuer(c),l===null&&c.isIssuer(c)&&(p=!0,l=c),l){var m=l;Dt.util.isArray(m)||(m=[m]);for(var g=!1;!g&&m.length>0;){l=m.shift();try{g=l.verify(c)}catch{}}g||(a={message:"Certificate signature is invalid.",error:rt.certificateError.bad_certificate})}a===null&&(!l||p)&&!r.hasCertificate(c)&&(a={message:"Certificate is not trusted.",error:rt.certificateError.unknown_ca})}if(a===null&&l&&!c.isIssuer(l)&&(a={message:"Certificate issuer is invalid.",error:rt.certificateError.bad_certificate}),a===null)for(var S={keyUsage:!0,basicConstraints:!0},v=0;a===null&&v<c.extensions.length;++v){var b=c.extensions[v];b.critical&&!(b.name in S)&&(a={message:"Certificate has an unsupported critical extension.",error:rt.certificateError.unsupported_certificate})}if(a===null&&(!s||e.length===0&&(!l||p))){var x=c.getExtension("basicConstraints"),E=c.getExtension("keyUsage");if(E!==null&&(!E.keyCertSign||x===null)&&(a={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:rt.certificateError.bad_certificate}),a===null&&x!==null&&!x.cA&&(a={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:rt.certificateError.bad_certificate}),a===null&&E!==null&&"pathLenConstraint"in x){var N=u-1;N>x.pathLenConstraint&&(a={message:"Certificate basicConstraints pathLenConstraint violated.",error:rt.certificateError.bad_certificate})}}var w=a===null?!0:a.error,C=t.verify?t.verify(w,u,n):w;if(C===!0)a=null;else throw w===!0&&(a={message:"The application rejected the certificate.",error:rt.certificateError.bad_certificate}),(C||C===0)&&(typeof C=="object"&&!Dt.util.isArray(C)?(C.message&&(a.message=C.message),C.error&&(a.error=C.error)):typeof C=="string"&&(a.error=C)),a;s=!1,++u}while(e.length>0);return!0}});var $P=Z((m2e,OM)=>{"use strict";var vn=pr();Nu();Qg();Op();qP();MP();Fo();Ox();tv();kr();ZN();var Y=vn.asn1,xr=vn.pki,Bx=OM.exports=vn.pkcs12=vn.pkcs12||{},_M={name:"ContentInfo",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},Vle={name:"PFX",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"version"},_M,{name:"PFX.macData",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:Y.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},jle={name:"SafeBag",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},Ule={name:"Attribute",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SET,constructed:!0,capture:"values"}]},Mle={name:"CertBag",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:Y.Class.UNIVERSAL,type:Y.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function Px(r,e,t,n){for(var i=[],s=0;s<r.length;s++)for(var a=0;a<r[s].safeBags.length;a++){var u=r[s].safeBags[a];if(!(n!==void 0&&u.type!==n)){if(e===null){i.push(u);continue}u.attributes[e]!==void 0&&u.attributes[e].indexOf(t)>=0&&i.push(u)}}return i}o(Px,"_getBagsByAttribute");Bx.pkcs12FromAsn1=function(r,e,t){typeof e=="string"?(t=e,e=!0):e===void 0&&(e=!0);var n={},i=[];if(!Y.validate(r,Vle,n,i)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var a={version:n.version.charCodeAt(0),safeContents:[],getBags:o(function(x){var E={},N;return"localKeyId"in x?N=x.localKeyId:"localKeyIdHex"in x&&(N=vn.util.hexToBytes(x.localKeyIdHex)),N===void 0&&!("friendlyName"in x)&&"bagType"in x&&(E[x.bagType]=Px(a.safeContents,null,null,x.bagType)),N!==void 0&&(E.localKeyId=Px(a.safeContents,"localKeyId",N,x.bagType)),"friendlyName"in x&&(E.friendlyName=Px(a.safeContents,"friendlyName",x.friendlyName,x.bagType)),E},"getBags"),getBagsByFriendlyName:o(function(x,E){return Px(a.safeContents,"friendlyName",x,E)},"getBagsByFriendlyName"),getBagsByLocalKeyId:o(function(x,E){return Px(a.safeContents,"localKeyId",x,E)},"getBagsByLocalKeyId")};if(n.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=n.version.charCodeAt(0),s}if(Y.derToOid(n.contentType)!==xr.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=Y.derToOid(n.contentType),s}var u=n.content.value[0];if(u.tagClass!==Y.Class.UNIVERSAL||u.type!==Y.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(u=KP(u),n.mac){var c=null,l=0,p=Y.derToOid(n.macAlgorithm);switch(p){case xr.oids.sha1:c=vn.md.sha1.create(),l=20;break;case xr.oids.sha256:c=vn.md.sha256.create(),l=32;break;case xr.oids.sha384:c=vn.md.sha384.create(),l=48;break;case xr.oids.sha512:c=vn.md.sha512.create(),l=64;break;case xr.oids.md5:c=vn.md.md5.create(),l=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+p);var m=new vn.util.ByteBuffer(n.macSalt),g="macIterations"in n?parseInt(vn.util.bytesToHex(n.macIterations),16):1,S=Bx.generateKey(t,m,3,g,l,c),v=vn.hmac.create();v.start(c,S),v.update(u.value);var b=v.getMac();if(b.getBytes()!==n.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}else if(Array.isArray(r.value)&&r.value.length>2)throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");return qle(a,u.value,e,t),a};function KP(r){if(r.composed||r.constructed){for(var e=vn.util.createBuffer(),t=0;t<r.value.length;++t)e.putBytes(r.value[t].value);r.composed=r.constructed=!1,r.value=e.getBytes()}return r}o(KP,"_decodePkcs7Data");function qle(r,e,t,n){if(e=Y.fromDer(e,t),e.tagClass!==Y.Class.UNIVERSAL||e.type!==Y.Type.SEQUENCE||e.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var i=0;i<e.value.length;i++){var s=e.value[i],a={},u=[];if(!Y.validate(s,_M,a,u)){var c=new Error("Cannot read ContentInfo.");throw c.errors=u,c}var l={encrypted:!1},p=null,m=a.content.value[0];switch(Y.derToOid(a.contentType)){case xr.oids.data:if(m.tagClass!==Y.Class.UNIVERSAL||m.type!==Y.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");p=KP(m).value;break;case xr.oids.encryptedData:p=Hle(m,n),l.encrypted=!0;break;default:var c=new Error("Unsupported PKCS#12 contentType.");throw c.contentType=Y.derToOid(a.contentType),c}l.safeBags=zle(p,t,n),r.safeContents.push(l)}}o(qle,"_decodeAuthenticatedSafe");function Hle(r,e){var t={},n=[];if(!Y.validate(r,vn.pkcs7.asn1.encryptedDataValidator,t,n)){var i=new Error("Cannot read EncryptedContentInfo.");throw i.errors=n,i}var s=Y.derToOid(t.contentType);if(s!==xr.oids.data){var i=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw i.oid=s,i}s=Y.derToOid(t.encAlgorithm);var a=xr.pbe.getCipher(s,t.encParameter,e),u=KP(t.encryptedContentAsn1),c=vn.util.createBuffer(u.value);if(a.update(c),!a.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return a.output.getBytes()}o(Hle,"_decryptSafeContents");function zle(r,e,t){if(!e&&r.length===0)return[];if(r=Y.fromDer(r,e),r.tagClass!==Y.Class.UNIVERSAL||r.type!==Y.Type.SEQUENCE||r.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var n=[],i=0;i<r.value.length;i++){var s=r.value[i],a={},u=[];if(!Y.validate(s,jle,a,u)){var c=new Error("Cannot read SafeBag.");throw c.errors=u,c}var l={type:Y.derToOid(a.bagId),attributes:Kle(a.bagAttributes)};n.push(l);var p,m,g=a.bagValue.value[0];switch(l.type){case xr.oids.pkcs8ShroudedKeyBag:if(g=xr.decryptPrivateKeyInfo(g,t),g===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case xr.oids.keyBag:try{l.key=xr.privateKeyFromAsn1(g)}catch{l.key=null,l.asn1=g}continue;case xr.oids.certBag:p=Mle,m=o(function(){if(Y.derToOid(a.certId)!==xr.oids.x509Certificate){var v=new Error("Unsupported certificate type, only X.509 supported.");throw v.oid=Y.derToOid(a.certId),v}var b=Y.fromDer(a.cert,e);try{l.cert=xr.certificateFromAsn1(b,!0)}catch{l.cert=null,l.asn1=b}},"decoder");break;default:var c=new Error("Unsupported PKCS#12 SafeBag type.");throw c.oid=l.type,c}if(p!==void 0&&!Y.validate(g,p,a,u)){var c=new Error("Cannot read PKCS#12 "+p.name);throw c.errors=u,c}m()}return n}o(zle,"_decodeSafeContents");function Kle(r){var e={};if(r!==void 0)for(var t=0;t<r.length;++t){var n={},i=[];if(!Y.validate(r[t],Ule,n,i)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=i,s}var a=Y.derToOid(n.oid);if(xr.oids[a]!==void 0){e[xr.oids[a]]=[];for(var u=0;u<n.values.length;++u)e[xr.oids[a]].push(n.values[u].value)}}return e}o(Kle,"_decodeBagAttributes");Bx.toPkcs12Asn1=function(r,e,t,n){n=n||{},n.saltSize=n.saltSize||8,n.count=n.count||2048,n.algorithm=n.algorithm||n.encAlgorithm||"aes128","useMac"in n||(n.useMac=!0),"localKeyId"in n||(n.localKeyId=null),"generateLocalKeyId"in n||(n.generateLocalKeyId=!0);var i=n.localKeyId,s;if(i!==null)i=vn.util.hexToBytes(i);else if(n.generateLocalKeyId)if(e){var a=vn.util.isArray(e)?e[0]:e;typeof a=="string"&&(a=xr.certificateFromPem(a));var u=vn.md.sha1.create();u.update(Y.toDer(xr.certificateToAsn1(a)).getBytes()),i=u.digest().getBytes()}else i=vn.random.getBytes(20);var c=[];i!==null&&c.push(Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.localKeyId).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,i)])])),"friendlyName"in n&&c.push(Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.friendlyName).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.BMPSTRING,!1,n.friendlyName)])])),c.length>0&&(s=Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,c));var l=[],p=[];e!==null&&(vn.util.isArray(e)?p=e:p=[e]);for(var m=[],g=0;g<p.length;++g){e=p[g],typeof e=="string"&&(e=xr.certificateFromPem(e));var S=g===0?s:void 0,v=xr.certificateToAsn1(e),b=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.certBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.x509Certificate).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(v).getBytes())])])]),S]);m.push(b)}if(m.length>0){var x=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,m),E=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(x).getBytes())])]);l.push(E)}var N=null;if(r!==null){var w=xr.wrapRsaPrivateKey(xr.privateKeyToAsn1(r));t===null?N=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.keyBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[w]),s]):N=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.pkcs8ShroudedKeyBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[xr.encryptPrivateKeyInfo(w,t,n)]),s]);var C=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[N]),A=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(C).getBytes())])]);l.push(A)}var R=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,l),M;if(n.useMac){var u=vn.md.sha1.create(),_=new vn.util.ByteBuffer(vn.random.getBytes(n.saltSize)),H=n.count,r=Bx.generateKey(t,_,3,H,20),z=vn.hmac.create();z.start(u,r),z.update(Y.toDer(R).getBytes());var K=z.getMac();M=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.sha1).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.NULL,!1,"")]),Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,K.getBytes())]),Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,_.getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,Y.integerToDer(H).getBytes())])}return Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,Y.integerToDer(3).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(R).getBytes())])]),M])};Bx.generateKey=vn.pbe.generatePkcs12Key});var XP=Z((v2e,PM)=>{"use strict";var Lp=pr();Nu();Op();MP();Jd();HN();$P();JN();Ox();kr();ZN();var GP=Lp.asn1,sv=PM.exports=Lp.pki=Lp.pki||{};sv.pemToDer=function(r){var e=Lp.pem.decode(r)[0];if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return Lp.util.createBuffer(e.body)};sv.privateKeyFromPem=function(r){var e=Lp.pem.decode(r)[0];if(e.type!=="PRIVATE KEY"&&e.type!=="RSA PRIVATE KEY"){var t=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var n=GP.fromDer(e.body);return sv.privateKeyFromAsn1(n)};sv.privateKeyToPem=function(r,e){var t={type:"RSA PRIVATE KEY",body:GP.toDer(sv.privateKeyToAsn1(r)).getBytes()};return Lp.pem.encode(t,{maxline:e})};sv.privateKeyInfoToPem=function(r,e){var t={type:"PRIVATE KEY",body:GP.toDer(r).getBytes()};return Lp.pem.encode(t,{maxline:e})}});var eB=Z((y2e,MM)=>{"use strict";var ze=pr();Nu();Qg();jN();Jd();XP();Fo();tv();kr();var n2=o(function(r,e,t,n){var i=ze.util.createBuffer(),s=r.length>>1,a=s+(r.length&1),u=r.substr(0,a),c=r.substr(s,a),l=ze.util.createBuffer(),p=ze.hmac.create();t=e+t;var m=Math.ceil(n/16),g=Math.ceil(n/20);p.start("MD5",u);var S=ze.util.createBuffer();l.putBytes(t);for(var v=0;v<m;++v)p.start(null,null),p.update(l.getBytes()),l.putBuffer(p.digest()),p.start(null,null),p.update(l.bytes()+t),S.putBuffer(p.digest());p.start("SHA1",c);var b=ze.util.createBuffer();l.clear(),l.putBytes(t);for(var v=0;v<g;++v)p.start(null,null),p.update(l.getBytes()),l.putBuffer(p.digest()),p.start(null,null),p.update(l.bytes()+t),b.putBuffer(p.digest());return i.putBytes(ze.util.xorBytes(S.getBytes(),b.getBytes(),n)),i},"prf_TLS1"),$le=o(function(r,e,t){var n=ze.hmac.create();n.start("SHA1",r);var i=ze.util.createBuffer();return i.putInt32(e[0]),i.putInt32(e[1]),i.putByte(t.type),i.putByte(t.version.major),i.putByte(t.version.minor),i.putInt16(t.length),i.putBytes(t.fragment.bytes()),n.update(i.getBytes()),n.digest().getBytes()},"hmac_sha1"),Gle=o(function(r,e,t){var n=!1;try{var i=r.deflate(e.fragment.getBytes());e.fragment=ze.util.createBuffer(i),e.length=i.length,n=!0}catch{}return n},"deflate"),Xle=o(function(r,e,t){var n=!1;try{var i=r.inflate(e.fragment.getBytes());e.fragment=ze.util.createBuffer(i),e.length=i.length,n=!0}catch{}return n},"inflate"),uo=o(function(r,e){var t=0;switch(e){case 1:t=r.getByte();break;case 2:t=r.getInt16();break;case 3:t=r.getInt24();break;case 4:t=r.getInt32();break}return ze.util.createBuffer(r.getBytes(t))},"readVector"),jo=o(function(r,e,t){r.putInt(t.length(),e<<3),r.putBuffer(t)},"writeVector"),j={};j.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}};j.SupportedVersions=[j.Versions.TLS_1_1,j.Versions.TLS_1_0];j.Version=j.SupportedVersions[0];j.MaxFragment=15360;j.ConnectionEnd={server:0,client:1};j.PRFAlgorithm={tls_prf_sha256:0};j.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2};j.CipherType={stream:0,block:1,aead:2};j.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4};j.CompressionMethod={none:0,deflate:1};j.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24};j.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};j.Alert={};j.Alert.Level={warning:1,fatal:2};j.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};j.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2};j.CipherSuites={};j.getCipherSuite=function(r){var e=null;for(var t in j.CipherSuites){var n=j.CipherSuites[t];if(n.id[0]===r.charCodeAt(0)&&n.id[1]===r.charCodeAt(1)){e=n;break}}return e};j.handleUnexpected=function(r,e){var t=!r.open&&r.entity===j.ConnectionEnd.client;t||r.error(r,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unexpected_message}})};j.handleHelloRequest=function(r,e,t){!r.handshaking&&r.handshakes>0&&(j.queue(r,j.createAlert(r,{level:j.Alert.Level.warning,description:j.Alert.Description.no_renegotiation})),j.flush(r)),r.process()};j.parseHelloMessage=function(r,e,t){var n=null,i=r.entity===j.ConnectionEnd.client;if(t<38)r.error(r,{message:i?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});else{var s=e.fragment,a=s.length();if(n={version:{major:s.getByte(),minor:s.getByte()},random:ze.util.createBuffer(s.getBytes(32)),session_id:uo(s,1),extensions:[]},i?(n.cipher_suite=s.getBytes(2),n.compression_method=s.getByte()):(n.cipher_suites=uo(s,2),n.compression_methods=uo(s,1)),a=t-(a-s.length()),a>0){for(var u=uo(s,2);u.length()>0;)n.extensions.push({type:[u.getByte(),u.getByte()],data:uo(u,2)});if(!i)for(var c=0;c<n.extensions.length;++c){var l=n.extensions[c];if(l.type[0]===0&&l.type[1]===0)for(var p=uo(l.data,2);p.length()>0;){var m=p.getByte();if(m!==0)break;r.session.extensions.server_name.serverNameList.push(uo(p,2).getBytes())}}}if(r.session.version&&(n.version.major!==r.session.version.major||n.version.minor!==r.session.version.minor))return r.error(r,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}});if(i)r.session.cipherSuite=j.getCipherSuite(n.cipher_suite);else for(var g=ze.util.createBuffer(n.cipher_suites.bytes());g.length()>0&&(r.session.cipherSuite=j.getCipherSuite(g.getBytes(2)),r.session.cipherSuite===null););if(r.session.cipherSuite===null)return r.error(r,{message:"No cipher suites in common.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.handshake_failure},cipherSuite:ze.util.bytesToHex(n.cipher_suite)});i?r.session.compressionMethod=n.compression_method:r.session.compressionMethod=j.CompressionMethod.none}return n};j.createSecurityParameters=function(r,e){var t=r.entity===j.ConnectionEnd.client,n=e.random.bytes(),i=t?r.session.sp.client_random:n,s=t?n:j.createRandom().getBytes();r.session.sp={entity:r.entity,prf_algorithm:j.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:r.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:i,server_random:s}};j.handleServerHello=function(r,e,t){var n=j.parseHelloMessage(r,e,t);if(!r.fail){if(n.version.minor<=r.version.minor)r.version.minor=n.version.minor;else return r.error(r,{message:"Incompatible TLS version.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}});r.session.version=r.version;var i=n.session_id.bytes();i.length>0&&i===r.session.id?(r.expect=LM,r.session.resuming=!0,r.session.sp.server_random=n.random.bytes()):(r.expect=Jle,r.session.resuming=!1,j.createSecurityParameters(r,n)),r.session.id=i,r.process()}};j.handleClientHello=function(r,e,t){var n=j.parseHelloMessage(r,e,t);if(!r.fail){var i=n.session_id.bytes(),s=null;if(r.sessionCache&&(s=r.sessionCache.getSession(i),s===null?i="":(s.version.major!==n.version.major||s.version.minor>n.version.minor)&&(s=null,i="")),i.length===0&&(i=ze.random.getBytes(32)),r.session.id=i,r.session.clientHelloVersion=n.version,r.session.sp={},s)r.version=r.session.version=s.version,r.session.sp=s.sp;else{for(var a,u=1;u<j.SupportedVersions.length&&(a=j.SupportedVersions[u],!(a.minor<=n.version.minor));++u);r.version={major:a.major,minor:a.minor},r.session.version=r.version}s!==null?(r.expect=YP,r.session.resuming=!0,r.session.sp.client_random=n.random.bytes()):(r.expect=r.verifyClient!==!1?nfe:QP,r.session.resuming=!1,j.createSecurityParameters(r,n)),r.open=!0,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerHello(r)})),r.session.resuming?(j.queue(r,j.createRecord(r,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),r.state.pending=j.createConnectionState(r),r.state.current.write=r.state.pending.write,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createFinished(r)}))):(j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificate(r)})),r.fail||(j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerKeyExchange(r)})),r.verifyClient!==!1&&j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificateRequest(r)})),j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerHelloDone(r)})))),j.flush(r),r.process()}};j.handleCertificate=function(r,e,t){if(t<3)return r.error(r,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment,i={certificate_list:uo(n,3)},s,a,u=[];try{for(;i.certificate_list.length()>0;)s=uo(i.certificate_list,3),a=ze.asn1.fromDer(s),s=ze.pki.certificateFromAsn1(a,!0),u.push(s)}catch(l){return r.error(r,{message:"Could not parse certificate list.",cause:l,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate}})}var c=r.entity===j.ConnectionEnd.client;(c||r.verifyClient===!0)&&u.length===0?r.error(r,{message:c?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}}):u.length===0?r.expect=c?BM:QP:(c?r.session.serverCertificate=u[0]:r.session.clientCertificate=u[0],j.verifyCertificateChain(r,u)&&(r.expect=c?BM:QP)),r.process()};j.handleServerKeyExchange=function(r,e,t){if(t>0)return r.error(r,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unsupported_certificate}});r.expect=Qle,r.process()};j.handleClientKeyExchange=function(r,e,t){if(t<48)return r.error(r,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unsupported_certificate}});var n=e.fragment,i={enc_pre_master_secret:uo(n,2).getBytes()},s=null;if(r.getPrivateKey)try{s=r.getPrivateKey(r,r.session.serverCertificate),s=ze.pki.privateKeyFromPem(s)}catch(c){r.error(r,{message:"Could not get private key.",cause:c,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}})}if(s===null)return r.error(r,{message:"No private key set.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}});try{var a=r.session.sp;a.pre_master_secret=s.decrypt(i.enc_pre_master_secret);var u=r.session.clientHelloVersion;if(u.major!==a.pre_master_secret.charCodeAt(0)||u.minor!==a.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{a.pre_master_secret=ze.random.getBytes(48)}r.expect=YP,r.session.clientCertificate!==null&&(r.expect=ife),r.process()};j.handleCertificateRequest=function(r,e,t){if(t<3)return r.error(r,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment,i={certificate_types:uo(n,1),certificate_authorities:uo(n,2)};r.session.certificateRequest=i,r.expect=Yle,r.process()};j.handleCertificateVerify=function(r,e,t){if(t<2)return r.error(r,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment;n.read-=4;var i=n.bytes();n.read+=4;var s={signature:uo(n,2).getBytes()},a=ze.util.createBuffer();a.putBuffer(r.session.md5.digest()),a.putBuffer(r.session.sha1.digest()),a=a.getBytes();try{var u=r.session.clientCertificate;if(!u.publicKey.verify(a,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");r.session.md5.update(i),r.session.sha1.update(i)}catch{return r.error(r,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.handshake_failure}})}r.expect=YP,r.process()};j.handleServerHelloDone=function(r,e,t){if(t>0)return r.error(r,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.record_overflow}});if(r.serverCertificate===null){var n={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.insufficient_security}},i=0,s=r.verify(r,n.alert.description,i,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!ze.util.isArray(s)?(s.message&&(n.message=s.message),s.alert&&(n.alert.description=s.alert)):typeof s=="number"&&(n.alert.description=s)),r.error(r,n)}r.session.certificateRequest!==null&&(e=j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificate(r)}),j.queue(r,e)),e=j.createRecord(r,{type:j.ContentType.handshake,data:j.createClientKeyExchange(r)}),j.queue(r,e),r.expect=tfe;var a=o(function(u,c){u.session.certificateRequest!==null&&u.session.clientCertificate!==null&&j.queue(u,j.createRecord(u,{type:j.ContentType.handshake,data:j.createCertificateVerify(u,c)})),j.queue(u,j.createRecord(u,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),u.state.pending=j.createConnectionState(u),u.state.current.write=u.state.pending.write,j.queue(u,j.createRecord(u,{type:j.ContentType.handshake,data:j.createFinished(u)})),u.expect=LM,j.flush(u),u.process()},"callback");if(r.session.certificateRequest===null||r.session.clientCertificate===null)return a(r,null);j.getClientSignature(r,a)};j.handleChangeCipherSpec=function(r,e){if(e.fragment.getByte()!==1)return r.error(r,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var t=r.entity===j.ConnectionEnd.client;(r.session.resuming&&t||!r.session.resuming&&!t)&&(r.state.pending=j.createConnectionState(r)),r.state.current.read=r.state.pending.read,(!r.session.resuming&&t||r.session.resuming&&!t)&&(r.state.pending=null),r.expect=t?Zle:sfe,r.process()};j.handleFinished=function(r,e,t){var n=e.fragment;n.read-=4;var i=n.bytes();n.read+=4;var s=e.fragment.getBytes();n=ze.util.createBuffer(),n.putBuffer(r.session.md5.digest()),n.putBuffer(r.session.sha1.digest());var a=r.entity===j.ConnectionEnd.client,u=a?"server finished":"client finished",c=r.session.sp,l=12,p=n2;if(n=p(c.master_secret,u,n.getBytes(),l),n.getBytes()!==s)return r.error(r,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.decrypt_error}});r.session.md5.update(i),r.session.sha1.update(i),(r.session.resuming&&a||!r.session.resuming&&!a)&&(j.queue(r,j.createRecord(r,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),r.state.current.write=r.state.pending.write,r.state.pending=null,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createFinished(r)}))),r.expect=a?efe:afe,r.handshaking=!1,++r.handshakes,r.peerCertificate=a?r.session.serverCertificate:r.session.clientCertificate,j.flush(r),r.isConnected=!0,r.connected(r),r.process()};j.handleAlert=function(r,e){var t=e.fragment,n={level:t.getByte(),description:t.getByte()},i;switch(n.description){case j.Alert.Description.close_notify:i="Connection closed.";break;case j.Alert.Description.unexpected_message:i="Unexpected message.";break;case j.Alert.Description.bad_record_mac:i="Bad record MAC.";break;case j.Alert.Description.decryption_failed:i="Decryption failed.";break;case j.Alert.Description.record_overflow:i="Record overflow.";break;case j.Alert.Description.decompression_failure:i="Decompression failed.";break;case j.Alert.Description.handshake_failure:i="Handshake failure.";break;case j.Alert.Description.bad_certificate:i="Bad certificate.";break;case j.Alert.Description.unsupported_certificate:i="Unsupported certificate.";break;case j.Alert.Description.certificate_revoked:i="Certificate revoked.";break;case j.Alert.Description.certificate_expired:i="Certificate expired.";break;case j.Alert.Description.certificate_unknown:i="Certificate unknown.";break;case j.Alert.Description.illegal_parameter:i="Illegal parameter.";break;case j.Alert.Description.unknown_ca:i="Unknown certificate authority.";break;case j.Alert.Description.access_denied:i="Access denied.";break;case j.Alert.Description.decode_error:i="Decode error.";break;case j.Alert.Description.decrypt_error:i="Decrypt error.";break;case j.Alert.Description.export_restriction:i="Export restriction.";break;case j.Alert.Description.protocol_version:i="Unsupported protocol version.";break;case j.Alert.Description.insufficient_security:i="Insufficient security.";break;case j.Alert.Description.internal_error:i="Internal error.";break;case j.Alert.Description.user_canceled:i="User canceled.";break;case j.Alert.Description.no_renegotiation:i="Renegotiation not supported.";break;default:i="Unknown error.";break}if(n.description===j.Alert.Description.close_notify)return r.close();r.error(r,{message:i,send:!1,origin:r.entity===j.ConnectionEnd.client?"server":"client",alert:n}),r.process()};j.handleHandshake=function(r,e){var t=e.fragment,n=t.getByte(),i=t.getInt24();if(i>t.length())return r.fragmented=e,e.fragment=ze.util.createBuffer(),t.read-=4,r.process();r.fragmented=null,t.read-=4;var s=t.bytes(i+4);t.read+=4,n in r2[r.entity][r.expect]?(r.entity===j.ConnectionEnd.server&&!r.open&&!r.fail&&(r.handshaking=!0,r.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:ze.md.md5.create(),sha1:ze.md.sha1.create()}),n!==j.HandshakeType.hello_request&&n!==j.HandshakeType.certificate_verify&&n!==j.HandshakeType.finished&&(r.session.md5.update(s),r.session.sha1.update(s)),r2[r.entity][r.expect][n](r,e,i)):j.handleUnexpected(r,e)};j.handleApplicationData=function(r,e){r.data.putBuffer(e.fragment),r.dataReady(r),r.process()};j.handleHeartbeat=function(r,e){var t=e.fragment,n=t.getByte(),i=t.getInt16(),s=t.getBytes(i);if(n===j.HeartbeatMessageType.heartbeat_request){if(r.handshaking||i>s.length)return r.process();j.queue(r,j.createRecord(r,{type:j.ContentType.heartbeat,data:j.createHeartbeat(j.HeartbeatMessageType.heartbeat_response,s)})),j.flush(r)}else if(n===j.HeartbeatMessageType.heartbeat_response){if(s!==r.expectedHeartbeatPayload)return r.process();r.heartbeatReceived&&r.heartbeatReceived(r,ze.util.createBuffer(s))}r.process()};var Wle=0,Jle=1,BM=2,Qle=3,Yle=4,LM=5,Zle=6,efe=7,tfe=8,rfe=0,nfe=1,QP=2,ife=3,YP=4,sfe=5,afe=6,V=j.handleUnexpected,kM=j.handleChangeCipherSpec,gs=j.handleAlert,ha=j.handleHandshake,VM=j.handleApplicationData,vs=j.handleHeartbeat,ZP=[];ZP[j.ConnectionEnd.client]=[[V,gs,ha,V,vs],[V,gs,ha,V,vs],[V,gs,ha,V,vs],[V,gs,ha,V,vs],[V,gs,ha,V,vs],[kM,gs,V,V,vs],[V,gs,ha,V,vs],[V,gs,ha,VM,vs],[V,gs,ha,V,vs]];ZP[j.ConnectionEnd.server]=[[V,gs,ha,V,vs],[V,gs,ha,V,vs],[V,gs,ha,V,vs],[V,gs,ha,V,vs],[kM,gs,V,V,vs],[V,gs,ha,V,vs],[V,gs,ha,VM,vs],[V,gs,ha,V,vs]];var kp=j.handleHelloRequest,ofe=j.handleServerHello,jM=j.handleCertificate,FM=j.handleServerKeyExchange,WP=j.handleCertificateRequest,e2=j.handleServerHelloDone,UM=j.handleFinished,r2=[];r2[j.ConnectionEnd.client]=[[V,V,ofe,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,jM,FM,WP,e2,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,FM,WP,e2,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,V,WP,e2,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,V,V,e2,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,UM],[kp,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V]];var ufe=j.handleClientHello,cfe=j.handleClientKeyExchange,lfe=j.handleCertificateVerify;r2[j.ConnectionEnd.server]=[[V,ufe,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,jM,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,cfe,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,lfe,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,UM],[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]];j.generateKeys=function(r,e){var t=n2,n=e.client_random+e.server_random;r.session.resuming||(e.master_secret=t(e.pre_master_secret,"master secret",n,48).bytes(),e.pre_master_secret=null),n=e.server_random+e.client_random;var i=2*e.mac_key_length+2*e.enc_key_length,s=r.version.major===j.Versions.TLS_1_0.major&&r.version.minor===j.Versions.TLS_1_0.minor;s&&(i+=2*e.fixed_iv_length);var a=t(e.master_secret,"key expansion",n,i),u={client_write_MAC_key:a.getBytes(e.mac_key_length),server_write_MAC_key:a.getBytes(e.mac_key_length),client_write_key:a.getBytes(e.enc_key_length),server_write_key:a.getBytes(e.enc_key_length)};return s&&(u.client_write_IV=a.getBytes(e.fixed_iv_length),u.server_write_IV=a.getBytes(e.fixed_iv_length)),u};j.createConnectionState=function(r){var e=r.entity===j.ConnectionEnd.client,t=o(function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:o(function(a){return!0},"cipherFunction"),compressionState:null,compressFunction:o(function(a){return!0},"compressFunction"),updateSequenceNumber:o(function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]},"updateSequenceNumber")};return s},"createMode"),n={read:t(),write:t()};if(n.read.update=function(s,a){return n.read.cipherFunction(a,n.read)?n.read.compressFunction(s,a,n.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_record_mac}}),!s.fail},n.write.update=function(s,a){return n.write.compressFunction(s,a,n.write)?n.write.cipherFunction(a,n.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}),!s.fail},r.session){var i=r.session.sp;switch(r.session.cipherSuite.initSecurityParameters(i),i.keys=j.generateKeys(r,i),n.read.macKey=e?i.keys.server_write_MAC_key:i.keys.client_write_MAC_key,n.write.macKey=e?i.keys.client_write_MAC_key:i.keys.server_write_MAC_key,r.session.cipherSuite.initConnectionState(n,r,i),i.compression_algorithm){case j.CompressionMethod.none:break;case j.CompressionMethod.deflate:n.read.compressFunction=Xle,n.write.compressFunction=Gle;break;default:throw new Error("Unsupported compression algorithm.")}}return n};j.createRandom=function(){var r=new Date,e=+r+r.getTimezoneOffset()*6e4,t=ze.util.createBuffer();return t.putInt32(e),t.putBytes(ze.random.getBytes(28)),t};j.createRecord=function(r,e){if(!e.data)return null;var t={type:e.type,version:{major:r.version.major,minor:r.version.minor},length:e.data.length(),fragment:e.data};return t};j.createAlert=function(r,e){var t=ze.util.createBuffer();return t.putByte(e.level),t.putByte(e.description),j.createRecord(r,{type:j.ContentType.alert,data:t})};j.createClientHello=function(r){r.session.clientHelloVersion={major:r.version.major,minor:r.version.minor};for(var e=ze.util.createBuffer(),t=0;t<r.cipherSuites.length;++t){var n=r.cipherSuites[t];e.putByte(n.id[0]),e.putByte(n.id[1])}var i=e.length(),s=ze.util.createBuffer();s.putByte(j.CompressionMethod.none);var a=s.length(),u=ze.util.createBuffer();if(r.virtualHost){var c=ze.util.createBuffer();c.putByte(0),c.putByte(0);var l=ze.util.createBuffer();l.putByte(0),jo(l,2,ze.util.createBuffer(r.virtualHost));var p=ze.util.createBuffer();jo(p,2,l),jo(c,2,p),u.putBuffer(c)}var m=u.length();m>0&&(m+=2);var g=r.session.id,S=g.length+1+2+4+28+2+i+1+a+m,v=ze.util.createBuffer();return v.putByte(j.HandshakeType.client_hello),v.putInt24(S),v.putByte(r.version.major),v.putByte(r.version.minor),v.putBytes(r.session.sp.client_random),jo(v,1,ze.util.createBuffer(g)),jo(v,2,e),jo(v,1,s),m>0&&jo(v,2,u),v};j.createServerHello=function(r){var e=r.session.id,t=e.length+1+2+4+28+2+1,n=ze.util.createBuffer();return n.putByte(j.HandshakeType.server_hello),n.putInt24(t),n.putByte(r.version.major),n.putByte(r.version.minor),n.putBytes(r.session.sp.server_random),jo(n,1,ze.util.createBuffer(e)),n.putByte(r.session.cipherSuite.id[0]),n.putByte(r.session.cipherSuite.id[1]),n.putByte(r.session.compressionMethod),n};j.createCertificate=function(r){var e=r.entity===j.ConnectionEnd.client,t=null;if(r.getCertificate){var n;e?n=r.session.certificateRequest:n=r.session.extensions.server_name.serverNameList,t=r.getCertificate(r,n)}var i=ze.util.createBuffer();if(t!==null)try{ze.util.isArray(t)||(t=[t]);for(var s=null,a=0;a<t.length;++a){var u=ze.pem.decode(t[a])[0];if(u.type!=="CERTIFICATE"&&u.type!=="X509 CERTIFICATE"&&u.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=u.type,c}if(u.procType&&u.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var l=ze.util.createBuffer(u.body);s===null&&(s=ze.asn1.fromDer(l.bytes(),!1));var p=ze.util.createBuffer();jo(p,3,l),i.putBuffer(p)}t=ze.pki.certificateFromAsn1(s),e?r.session.clientCertificate=t:r.session.serverCertificate=t}catch(S){return r.error(r,{message:"Could not send certificate list.",cause:S,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate}})}var m=3+i.length(),g=ze.util.createBuffer();return g.putByte(j.HandshakeType.certificate),g.putInt24(m),jo(g,3,i),g};j.createClientKeyExchange=function(r){var e=ze.util.createBuffer();e.putByte(r.session.clientHelloVersion.major),e.putByte(r.session.clientHelloVersion.minor),e.putBytes(ze.random.getBytes(46));var t=r.session.sp;t.pre_master_secret=e.getBytes();var n=r.session.serverCertificate.publicKey;e=n.encrypt(t.pre_master_secret);var i=e.length+2,s=ze.util.createBuffer();return s.putByte(j.HandshakeType.client_key_exchange),s.putInt24(i),s.putInt16(e.length),s.putBytes(e),s};j.createServerKeyExchange=function(r){var e=0,t=ze.util.createBuffer();return e>0&&(t.putByte(j.HandshakeType.server_key_exchange),t.putInt24(e)),t};j.getClientSignature=function(r,e){var t=ze.util.createBuffer();t.putBuffer(r.session.md5.digest()),t.putBuffer(r.session.sha1.digest()),t=t.getBytes(),r.getSignature=r.getSignature||function(n,i,s){var a=null;if(n.getPrivateKey)try{a=n.getPrivateKey(n,n.session.clientCertificate),a=ze.pki.privateKeyFromPem(a)}catch(u){n.error(n,{message:"Could not get private key.",cause:u,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}})}a===null?n.error(n,{message:"No private key set.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}):i=a.sign(i,null),s(n,i)},r.getSignature(r,t,e)};j.createCertificateVerify=function(r,e){var t=e.length+2,n=ze.util.createBuffer();return n.putByte(j.HandshakeType.certificate_verify),n.putInt24(t),n.putInt16(e.length),n.putBytes(e),n};j.createCertificateRequest=function(r){var e=ze.util.createBuffer();e.putByte(1);var t=ze.util.createBuffer();for(var n in r.caStore.certs){var i=r.caStore.certs[n],s=ze.pki.distinguishedNameToAsn1(i.subject),a=ze.asn1.toDer(s);t.putInt16(a.length()),t.putBuffer(a)}var u=1+e.length()+2+t.length(),c=ze.util.createBuffer();return c.putByte(j.HandshakeType.certificate_request),c.putInt24(u),jo(c,1,e),jo(c,2,t),c};j.createServerHelloDone=function(r){var e=ze.util.createBuffer();return e.putByte(j.HandshakeType.server_hello_done),e.putInt24(0),e};j.createChangeCipherSpec=function(){var r=ze.util.createBuffer();return r.putByte(1),r};j.createFinished=function(r){var e=ze.util.createBuffer();e.putBuffer(r.session.md5.digest()),e.putBuffer(r.session.sha1.digest());var t=r.entity===j.ConnectionEnd.client,n=r.session.sp,i=12,s=n2,a=t?"client finished":"server finished";e=s(n.master_secret,a,e.getBytes(),i);var u=ze.util.createBuffer();return u.putByte(j.HandshakeType.finished),u.putInt24(e.length()),u.putBuffer(e),u};j.createHeartbeat=function(r,e,t){typeof t>"u"&&(t=e.length);var n=ze.util.createBuffer();n.putByte(r),n.putInt16(t),n.putBytes(e);var i=n.length(),s=Math.max(16,i-t-3);return n.putBytes(ze.random.getBytes(s)),n};j.queue=function(r,e){if(e&&!(e.fragment.length()===0&&(e.type===j.ContentType.handshake||e.type===j.ContentType.alert||e.type===j.ContentType.change_cipher_spec))){if(e.type===j.ContentType.handshake){var t=e.fragment.bytes();r.session.md5.update(t),r.session.sha1.update(t),t=null}var n;if(e.fragment.length()<=j.MaxFragment)n=[e];else{n=[];for(var i=e.fragment.bytes();i.length>j.MaxFragment;)n.push(j.createRecord(r,{type:e.type,data:ze.util.createBuffer(i.slice(0,j.MaxFragment))})),i=i.slice(j.MaxFragment);i.length>0&&n.push(j.createRecord(r,{type:e.type,data:ze.util.createBuffer(i)}))}for(var s=0;s<n.length&&!r.fail;++s){var a=n[s],u=r.state.current.write;u.update(r,a)&&r.records.push(a)}}};j.flush=function(r){for(var e=0;e<r.records.length;++e){var t=r.records[e];r.tlsData.putByte(t.type),r.tlsData.putByte(t.version.major),r.tlsData.putByte(t.version.minor),r.tlsData.putInt16(t.fragment.length()),r.tlsData.putBuffer(r.records[e].fragment)}return r.records=[],r.tlsDataReady(r)};var JP=o(function(r){switch(r){case!0:return!0;case ze.pki.certificateError.bad_certificate:return j.Alert.Description.bad_certificate;case ze.pki.certificateError.unsupported_certificate:return j.Alert.Description.unsupported_certificate;case ze.pki.certificateError.certificate_revoked:return j.Alert.Description.certificate_revoked;case ze.pki.certificateError.certificate_expired:return j.Alert.Description.certificate_expired;case ze.pki.certificateError.certificate_unknown:return j.Alert.Description.certificate_unknown;case ze.pki.certificateError.unknown_ca:return j.Alert.Description.unknown_ca;default:return j.Alert.Description.bad_certificate}},"_certErrorToAlertDesc"),ffe=o(function(r){switch(r){case!0:return!0;case j.Alert.Description.bad_certificate:return ze.pki.certificateError.bad_certificate;case j.Alert.Description.unsupported_certificate:return ze.pki.certificateError.unsupported_certificate;case j.Alert.Description.certificate_revoked:return ze.pki.certificateError.certificate_revoked;case j.Alert.Description.certificate_expired:return ze.pki.certificateError.certificate_expired;case j.Alert.Description.certificate_unknown:return ze.pki.certificateError.certificate_unknown;case j.Alert.Description.unknown_ca:return ze.pki.certificateError.unknown_ca;default:return ze.pki.certificateError.bad_certificate}},"_alertDescToCertError");j.verifyCertificateChain=function(r,e){try{var t={};for(var n in r.verifyOptions)t[n]=r.verifyOptions[n];t.verify=function(s,a,u){var c=JP(s),l=r.verify(r,s,a,u);if(l!==!0){if(typeof l=="object"&&!ze.util.isArray(l)){var p=new Error("The application rejected the certificate.");throw p.send=!0,p.alert={level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate},l.message&&(p.message=l.message),l.alert&&(p.alert.description=l.alert),p}l!==s&&(l=ffe(l))}return l},ze.pki.verifyCertificateChain(r.caStore,e,t)}catch(s){var i=s;(typeof i!="object"||ze.util.isArray(i))&&(i={send:!0,alert:{level:j.Alert.Level.fatal,description:JP(s)}}),"send"in i||(i.send=!0),"alert"in i||(i.alert={level:j.Alert.Level.fatal,description:JP(i.error)}),r.error(r,i)}return!r.fail};j.createSessionCache=function(r,e){var t=null;if(r&&r.getSession&&r.setSession&&r.order)t=r;else{t={},t.cache=r||{},t.capacity=Math.max(e||100,1),t.order=[];for(var n in r)t.order.length<=e?t.order.push(n):delete r[n];t.getSession=function(i){var s=null,a=null;if(i?a=ze.util.bytesToHex(i):t.order.length>0&&(a=t.order[0]),a!==null&&a in t.cache){s=t.cache[a],delete t.cache[a];for(var u in t.order)if(t.order[u]===a){t.order.splice(u,1);break}}return s},t.setSession=function(i,s){if(t.order.length===t.capacity){var a=t.order.shift();delete t.cache[a]}var a=ze.util.bytesToHex(i);t.order.push(a),t.cache[a]=s}}return t};j.createConnection=function(r){var e=null;r.caStore?ze.util.isArray(r.caStore)?e=ze.pki.createCaStore(r.caStore):e=r.caStore:e=ze.pki.createCaStore();var t=r.cipherSuites||null;if(t===null){t=[];for(var n in j.CipherSuites)t.push(j.CipherSuites[n])}var i=r.server?j.ConnectionEnd.server:j.ConnectionEnd.client,s=r.sessionCache?j.createSessionCache(r.sessionCache):null,a={version:{major:j.Version.major,minor:j.Version.minor},entity:i,sessionId:r.sessionId,caStore:e,sessionCache:s,cipherSuites:t,connected:r.connected,virtualHost:r.virtualHost||null,verifyClient:r.verifyClient||!1,verify:r.verify||function(p,m,g,S){return m},verifyOptions:r.verifyOptions||{},getCertificate:r.getCertificate||null,getPrivateKey:r.getPrivateKey||null,getSignature:r.getSignature||null,input:ze.util.createBuffer(),tlsData:ze.util.createBuffer(),data:ze.util.createBuffer(),tlsDataReady:r.tlsDataReady,dataReady:r.dataReady,heartbeatReceived:r.heartbeatReceived,closed:r.closed,error:o(function(p,m){m.origin=m.origin||(p.entity===j.ConnectionEnd.client?"client":"server"),m.send&&(j.queue(p,j.createAlert(p,m.alert)),j.flush(p));var g=m.fatal!==!1;g&&(p.fail=!0),r.error(p,m),g&&p.close(!1)},"error"),deflate:r.deflate||null,inflate:r.inflate||null};a.reset=function(p){a.version={major:j.Version.major,minor:j.Version.minor},a.record=null,a.session=null,a.peerCertificate=null,a.state={pending:null,current:null},a.expect=a.entity===j.ConnectionEnd.client?Wle:rfe,a.fragmented=null,a.records=[],a.open=!1,a.handshakes=0,a.handshaking=!1,a.isConnected=!1,a.fail=!(p||typeof p>"u"),a.input.clear(),a.tlsData.clear(),a.data.clear(),a.state.current=j.createConnectionState(a)},a.reset();var u=o(function(p,m){var g=m.type-j.ContentType.change_cipher_spec,S=ZP[p.entity][p.expect];g in S?S[g](p,m):j.handleUnexpected(p,m)},"_update"),c=o(function(p){var m=0,g=p.input,S=g.length();if(S<5)m=5-S;else{p.record={type:g.getByte(),version:{major:g.getByte(),minor:g.getByte()},length:g.getInt16(),fragment:ze.util.createBuffer(),ready:!1};var v=p.record.version.major===p.version.major;v&&p.session&&p.session.version&&(v=p.record.version.minor===p.version.minor),v||p.error(p,{message:"Incompatible TLS version.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}})}return m},"_readRecordHeader"),l=o(function(p){var m=0,g=p.input,S=g.length();if(S<p.record.length)m=p.record.length-S;else{p.record.fragment.putBytes(g.getBytes(p.record.length)),g.compact();var v=p.state.current.read;v.update(p,p.record)&&(p.fragmented!==null&&(p.fragmented.type===p.record.type?(p.fragmented.fragment.putBuffer(p.record.fragment),p.record=p.fragmented):p.error(p,{message:"Invalid fragmented record.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unexpected_message}})),p.record.ready=!0)}return m},"_readRecord");return a.handshake=function(p){if(a.entity!==j.ConnectionEnd.client)a.error(a,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(a.handshaking)a.error(a,{message:"Handshake already in progress.",fatal:!1});else{a.fail&&!a.open&&a.handshakes===0&&(a.fail=!1),a.handshaking=!0,p=p||"";var m=null;p.length>0&&(a.sessionCache&&(m=a.sessionCache.getSession(p)),m===null&&(p="")),p.length===0&&a.sessionCache&&(m=a.sessionCache.getSession(),m!==null&&(p=m.id)),a.session={id:p,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:ze.md.md5.create(),sha1:ze.md.sha1.create()},m&&(a.version=m.version,a.session.sp=m.sp),a.session.sp.client_random=j.createRandom().getBytes(),a.open=!0,j.queue(a,j.createRecord(a,{type:j.ContentType.handshake,data:j.createClientHello(a)})),j.flush(a)}},a.process=function(p){var m=0;return p&&a.input.putBytes(p),a.fail||(a.record!==null&&a.record.ready&&a.record.fragment.isEmpty()&&(a.record=null),a.record===null&&(m=c(a)),!a.fail&&a.record!==null&&!a.record.ready&&(m=l(a)),!a.fail&&a.record!==null&&a.record.ready&&u(a,a.record)),m},a.prepare=function(p){return j.queue(a,j.createRecord(a,{type:j.ContentType.application_data,data:ze.util.createBuffer(p)})),j.flush(a)},a.prepareHeartbeatRequest=function(p,m){return p instanceof ze.util.ByteBuffer&&(p=p.bytes()),typeof m>"u"&&(m=p.length),a.expectedHeartbeatPayload=p,j.queue(a,j.createRecord(a,{type:j.ContentType.heartbeat,data:j.createHeartbeat(j.HeartbeatMessageType.heartbeat_request,p,m)})),j.flush(a)},a.close=function(p){if(!a.fail&&a.sessionCache&&a.session){var m={id:a.session.id,version:a.session.version,sp:a.session.sp};m.sp.keys=null,a.sessionCache.setSession(m.id,m)}a.open&&(a.open=!1,a.input.clear(),(a.isConnected||a.handshaking)&&(a.isConnected=a.handshaking=!1,j.queue(a,j.createAlert(a,{level:j.Alert.Level.warning,description:j.Alert.Description.close_notify})),j.flush(a)),a.closed(a)),a.reset(p)},a};MM.exports=ze.tls=ze.tls||{};for(t2 in j)typeof j[t2]!="function"&&(ze.tls[t2]=j[t2]);var t2;ze.tls.prf_tls1=n2;ze.tls.hmac_sha1=$le;ze.tls.createSessionCache=j.createSessionCache;ze.tls.createConnection=j.createConnection});var zM=Z((x2e,HM)=>{"use strict";var Vp=pr();_p();eB();var Uo=HM.exports=Vp.tls;Uo.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:o(function(r){r.bulk_cipher_algorithm=Uo.BulkCipherAlgorithm.aes,r.cipher_type=Uo.CipherType.block,r.enc_key_length=16,r.block_length=16,r.fixed_iv_length=16,r.record_iv_length=16,r.mac_algorithm=Uo.MACAlgorithm.hmac_sha1,r.mac_length=20,r.mac_key_length=20},"initSecurityParameters"),initConnectionState:qM};Uo.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:o(function(r){r.bulk_cipher_algorithm=Uo.BulkCipherAlgorithm.aes,r.cipher_type=Uo.CipherType.block,r.enc_key_length=32,r.block_length=16,r.fixed_iv_length=16,r.record_iv_length=16,r.mac_algorithm=Uo.MACAlgorithm.hmac_sha1,r.mac_length=20,r.mac_key_length=20},"initSecurityParameters"),initConnectionState:qM};function qM(r,e,t){var n=e.entity===Vp.tls.ConnectionEnd.client;r.read.cipherState={init:!1,cipher:Vp.cipher.createDecipher("AES-CBC",n?t.keys.server_write_key:t.keys.client_write_key),iv:n?t.keys.server_write_IV:t.keys.client_write_IV},r.write.cipherState={init:!1,cipher:Vp.cipher.createCipher("AES-CBC",n?t.keys.client_write_key:t.keys.server_write_key),iv:n?t.keys.client_write_IV:t.keys.server_write_IV},r.read.cipherFunction=mfe,r.write.cipherFunction=pfe,r.read.macLength=r.write.macLength=t.mac_length,r.read.macFunction=r.write.macFunction=Uo.hmac_sha1}o(qM,"initConnectionState");function pfe(r,e){var t=!1,n=e.macFunction(e.macKey,e.sequenceNumber,r);r.fragment.putBytes(n),e.updateSequenceNumber();var i;r.version.minor===Uo.Versions.TLS_1_0.minor?i=e.cipherState.init?null:e.cipherState.iv:i=Vp.random.getBytesSync(16),e.cipherState.init=!0;var s=e.cipherState.cipher;return s.start({iv:i}),r.version.minor>=Uo.Versions.TLS_1_1.minor&&s.output.putBytes(i),s.update(r.fragment),s.finish(hfe)&&(r.fragment=s.output,r.length=r.fragment.length(),t=!0),t}o(pfe,"encrypt_aes_cbc_sha1");function hfe(r,e,t){if(!t){var n=r-e.length()%r;e.fillWithByte(n-1,n)}return!0}o(hfe,"encrypt_aes_cbc_sha1_padding");function dfe(r,e,t){var n=!0;if(t){for(var i=e.length(),s=e.last(),a=i-1-s;a<i-1;++a)n=n&&e.at(a)==s;n&&e.truncate(s+1)}return n}o(dfe,"decrypt_aes_cbc_sha1_padding");function mfe(r,e){var t=!1,n;r.version.minor===Uo.Versions.TLS_1_0.minor?n=e.cipherState.init?null:e.cipherState.iv:n=r.fragment.getBytes(16),e.cipherState.init=!0;var i=e.cipherState.cipher;i.start({iv:n}),i.update(r.fragment),t=i.finish(dfe);var s=e.macLength,a=Vp.random.getBytesSync(s),u=i.output.length();u>=s?(r.fragment=i.output.getBytes(u-s),a=i.output.getBytes(s)):r.fragment=i.output.getBytes(),r.fragment=Vp.util.createBuffer(r.fragment),r.length=r.fragment.length();var c=e.macFunction(e.macKey,e.sequenceNumber,r);return e.updateSequenceNumber(),t=gfe(e.macKey,a,c)&&t,t}o(mfe,"decrypt_aes_cbc_sha1");function gfe(r,e,t){var n=Vp.hmac.create();return n.start("SHA1",r),n.update(e),e=n.digest().getBytes(),n.start(null,null),n.update(t),t=n.digest().getBytes(),e===t}o(gfe,"compareMacs")});var nB=Z((w2e,XM)=>{"use strict";var Tn=pr();Ec();kr();var Fx=XM.exports=Tn.sha512=Tn.sha512||{};Tn.md.sha512=Tn.md.algorithms.sha512=Fx;var $M=Tn.sha384=Tn.sha512.sha384=Tn.sha512.sha384||{};$M.create=function(){return Fx.create("SHA-384")};Tn.md.sha384=Tn.md.algorithms.sha384=$M;Tn.sha512.sha256=Tn.sha512.sha256||{create:o(function(){return Fx.create("SHA-512/256")},"create")};Tn.md["sha512/256"]=Tn.md.algorithms["sha512/256"]=Tn.sha512.sha256;Tn.sha512.sha224=Tn.sha512.sha224||{create:o(function(){return Fx.create("SHA-512/224")},"create")};Tn.md["sha512/224"]=Tn.md.algorithms["sha512/224"]=Tn.sha512.sha224;Fx.create=function(r){if(GM||vfe(),typeof r>"u"&&(r="SHA-512"),!(r in rm))throw new Error("Invalid SHA-512 algorithm: "+r);for(var e=rm[r],t=null,n=Tn.util.createBuffer(),i=new Array(80),s=0;s<80;++s)i[s]=new Array(2);var a=64;switch(r){case"SHA-384":a=48;break;case"SHA-512/256":a=32;break;case"SHA-512/224":a=28;break}var u={algorithm:r.replace("-","").toLowerCase(),blockLength:128,digestLength:a,messageLength:0,fullMessageLength:null,messageLengthSize:16};return u.start=function(){u.messageLength=0,u.fullMessageLength=u.messageLength128=[];for(var c=u.messageLengthSize/4,l=0;l<c;++l)u.fullMessageLength.push(0);n=Tn.util.createBuffer(),t=new Array(e.length);for(var l=0;l<e.length;++l)t[l]=e[l].slice(0);return u},u.start(),u.update=function(c,l){l==="utf8"&&(c=Tn.util.encodeUtf8(c));var p=c.length;u.messageLength+=p,p=[p/4294967296>>>0,p>>>0];for(var m=u.fullMessageLength.length-1;m>=0;--m)u.fullMessageLength[m]+=p[1],p[1]=p[0]+(u.fullMessageLength[m]/4294967296>>>0),u.fullMessageLength[m]=u.fullMessageLength[m]>>>0,p[0]=p[1]/4294967296>>>0;return n.putBytes(c),KM(t,i,n),(n.read>2048||n.length()===0)&&n.compact(),u},u.digest=function(){var c=Tn.util.createBuffer();c.putBytes(n.bytes());var l=u.fullMessageLength[u.fullMessageLength.length-1]+u.messageLengthSize,p=l&u.blockLength-1;c.putBytes(tB.substr(0,u.blockLength-p));for(var m,g,S=u.fullMessageLength[0]*8,v=0;v<u.fullMessageLength.length-1;++v)m=u.fullMessageLength[v+1]*8,g=m/4294967296>>>0,S+=g,c.putInt32(S>>>0),S=m>>>0;c.putInt32(S);for(var b=new Array(t.length),v=0;v<t.length;++v)b[v]=t[v].slice(0);KM(b,i,c);var x=Tn.util.createBuffer(),E;r==="SHA-512"?E=b.length:r==="SHA-384"?E=b.length-2:E=b.length-4;for(var v=0;v<E;++v)x.putInt32(b[v][0]),(v!==E-1||r!=="SHA-512/224")&&x.putInt32(b[v][1]);return x},u};var tB=null,GM=!1,rB=null,rm=null;function vfe(){tB="\x80",tB+=Tn.util.fillString("\0",128),rB=[[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]],rm={},rm["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],rm["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],rm["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],rm["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],GM=!0}o(vfe,"_init");function KM(r,e,t){for(var n,i,s,a,u,c,l,p,m,g,S,v,b,x,E,N,w,C,A,R,M,_,H,z,K,X,ye,fe,ce,ee,pe,Ce,Ye,xe,ie,De=t.length();De>=128;){for(ce=0;ce<16;++ce)e[ce][0]=t.getInt32()>>>0,e[ce][1]=t.getInt32()>>>0;for(;ce<80;++ce)Ce=e[ce-2],ee=Ce[0],pe=Ce[1],n=((ee>>>19|pe<<13)^(pe>>>29|ee<<3)^ee>>>6)>>>0,i=((ee<<13|pe>>>19)^(pe<<3|ee>>>29)^(ee<<26|pe>>>6))>>>0,xe=e[ce-15],ee=xe[0],pe=xe[1],s=((ee>>>1|pe<<31)^(ee>>>8|pe<<24)^ee>>>7)>>>0,a=((ee<<31|pe>>>1)^(ee<<24|pe>>>8)^(ee<<25|pe>>>7))>>>0,Ye=e[ce-7],ie=e[ce-16],pe=i+Ye[1]+a+ie[1],e[ce][0]=n+Ye[0]+s+ie[0]+(pe/4294967296>>>0)>>>0,e[ce][1]=pe>>>0;for(b=r[0][0],x=r[0][1],E=r[1][0],N=r[1][1],w=r[2][0],C=r[2][1],A=r[3][0],R=r[3][1],M=r[4][0],_=r[4][1],H=r[5][0],z=r[5][1],K=r[6][0],X=r[6][1],ye=r[7][0],fe=r[7][1],ce=0;ce<80;++ce)l=((M>>>14|_<<18)^(M>>>18|_<<14)^(_>>>9|M<<23))>>>0,p=((M<<18|_>>>14)^(M<<14|_>>>18)^(_<<23|M>>>9))>>>0,m=(K^M&(H^K))>>>0,g=(X^_&(z^X))>>>0,u=((b>>>28|x<<4)^(x>>>2|b<<30)^(x>>>7|b<<25))>>>0,c=((b<<4|x>>>28)^(x<<30|b>>>2)^(x<<25|b>>>7))>>>0,S=(b&E|w&(b^E))>>>0,v=(x&N|C&(x^N))>>>0,pe=fe+p+g+rB[ce][1]+e[ce][1],n=ye+l+m+rB[ce][0]+e[ce][0]+(pe/4294967296>>>0)>>>0,i=pe>>>0,pe=c+v,s=u+S+(pe/4294967296>>>0)>>>0,a=pe>>>0,ye=K,fe=X,K=H,X=z,H=M,z=_,pe=R+i,M=A+n+(pe/4294967296>>>0)>>>0,_=pe>>>0,A=w,R=C,w=E,C=N,E=b,N=x,pe=i+a,b=n+s+(pe/4294967296>>>0)>>>0,x=pe>>>0;pe=r[0][1]+x,r[0][0]=r[0][0]+b+(pe/4294967296>>>0)>>>0,r[0][1]=pe>>>0,pe=r[1][1]+N,r[1][0]=r[1][0]+E+(pe/4294967296>>>0)>>>0,r[1][1]=pe>>>0,pe=r[2][1]+C,r[2][0]=r[2][0]+w+(pe/4294967296>>>0)>>>0,r[2][1]=pe>>>0,pe=r[3][1]+R,r[3][0]=r[3][0]+A+(pe/4294967296>>>0)>>>0,r[3][1]=pe>>>0,pe=r[4][1]+_,r[4][0]=r[4][0]+M+(pe/4294967296>>>0)>>>0,r[4][1]=pe>>>0,pe=r[5][1]+z,r[5][0]=r[5][0]+H+(pe/4294967296>>>0)>>>0,r[5][1]=pe>>>0,pe=r[6][1]+X,r[6][0]=r[6][0]+K+(pe/4294967296>>>0)>>>0,r[6][1]=pe>>>0,pe=r[7][1]+fe,r[7][0]=r[7][0]+ye+(pe/4294967296>>>0)>>>0,r[7][1]=pe>>>0,De-=128}}o(KM,"_update")});var WM=Z(iB=>{"use strict";var yfe=pr();Nu();var Xi=yfe.asn1;iB.privateKeyValidator={name:"PrivateKeyInfo",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]};iB.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}});var u6=Z((A2e,o6)=>{"use strict";var ys=pr();_x();Fo();nB();kr();var t6=WM(),Sfe=t6.publicKeyValidator,xfe=t6.privateKeyValidator;typeof JM>"u"&&(JM=ys.jsbn.BigInteger);var JM,oB=ys.util.ByteBuffer,_a=typeof Buffer>"u"?Uint8Array:Buffer;ys.pki=ys.pki||{};o6.exports=ys.pki.ed25519=ys.ed25519=ys.ed25519||{};var br=ys.ed25519;br.constants={};br.constants.PUBLIC_KEY_BYTE_LENGTH=32;br.constants.PRIVATE_KEY_BYTE_LENGTH=64;br.constants.SEED_BYTE_LENGTH=32;br.constants.SIGN_BYTE_LENGTH=64;br.constants.HASH_BYTE_LENGTH=64;br.generateKeyPair=function(r){r=r||{};var e=r.seed;if(e===void 0)e=ys.random.getBytesSync(br.constants.SEED_BYTE_LENGTH);else if(typeof e=="string"){if(e.length!==br.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+br.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(e instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');e=Gl({message:e,encoding:"binary"});for(var t=new _a(br.constants.PUBLIC_KEY_BYTE_LENGTH),n=new _a(br.constants.PRIVATE_KEY_BYTE_LENGTH),i=0;i<32;++i)n[i]=e[i];return Efe(t,n),{publicKey:t,privateKey:n}};br.privateKeyFromAsn1=function(r){var e={},t=[],n=ys.asn1.validate(r,xfe,e,t);if(!n){var i=new Error("Invalid Key.");throw i.errors=t,i}var s=ys.asn1.derToOid(e.privateKeyOid),a=ys.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var u=e.privateKey,c=Gl({message:ys.asn1.fromDer(u).value,encoding:"binary"});return{privateKeyBytes:c}};br.publicKeyFromAsn1=function(r){var e={},t=[],n=ys.asn1.validate(r,Sfe,e,t);if(!n){var i=new Error("Invalid Key.");throw i.errors=t,i}var s=ys.asn1.derToOid(e.publicKeyOid),a=ys.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var u=e.ed25519PublicKey;if(u.length!==br.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return Gl({message:u,encoding:"binary"})};br.publicKeyFromPrivateKey=function(r){r=r||{};var e=Gl({message:r.privateKey,encoding:"binary"});if(e.length!==br.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+br.constants.PRIVATE_KEY_BYTE_LENGTH);for(var t=new _a(br.constants.PUBLIC_KEY_BYTE_LENGTH),n=0;n<t.length;++n)t[n]=e[32+n];return t};br.sign=function(r){r=r||{};var e=Gl(r),t=Gl({message:r.privateKey,encoding:"binary"});if(t.length===br.constants.SEED_BYTE_LENGTH){var n=br.generateKeyPair({seed:t});t=n.privateKey}else if(t.length!==br.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+br.constants.SEED_BYTE_LENGTH+" or "+br.constants.PRIVATE_KEY_BYTE_LENGTH);var i=new _a(br.constants.SIGN_BYTE_LENGTH+e.length);Afe(i,e,e.length,t);for(var s=new _a(br.constants.SIGN_BYTE_LENGTH),a=0;a<s.length;++a)s[a]=i[a];return s};br.verify=function(r){r=r||{};var e=Gl(r);if(r.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var t=Gl({message:r.signature,encoding:"binary"});if(t.length!==br.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+br.constants.SIGN_BYTE_LENGTH);var n=Gl({message:r.publicKey,encoding:"binary"});if(n.length!==br.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+br.constants.PUBLIC_KEY_BYTE_LENGTH);var i=new _a(br.constants.SIGN_BYTE_LENGTH+e.length),s=new _a(br.constants.SIGN_BYTE_LENGTH+e.length),a;for(a=0;a<br.constants.SIGN_BYTE_LENGTH;++a)i[a]=t[a];for(a=0;a<e.length;++a)i[a+br.constants.SIGN_BYTE_LENGTH]=e[a];return Nfe(s,i,i.length,n)>=0};function Gl(r){var e=r.message;if(e instanceof Uint8Array||e instanceof _a)return e;var t=r.encoding;if(e===void 0)if(r.md)e=r.md.digest().getBytes(),t="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof e=="string"&&!t)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof e=="string"){if(typeof Buffer<"u")return Buffer.from(e,t);e=new oB(e,t)}else if(!(e instanceof oB))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 n=new _a(e.length()),i=0;i<n.length;++i)n[i]=e.at(i);return n}o(Gl,"messageToNativeBuffer");var uB=jt(),i2=jt([1]),bfe=jt([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),wfe=jt([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),QM=jt([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),YM=jt([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),sB=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]),Cfe=jt([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Lx(r,e){var t=ys.md.sha512.create(),n=new oB(r);t.update(n.getBytes(e),"binary");var i=t.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(i,"binary");for(var s=new _a(br.constants.HASH_BYTE_LENGTH),a=0;a<64;++a)s[a]=i.charCodeAt(a);return s}o(Lx,"sha512");function Efe(r,e){var t=[jt(),jt(),jt(),jt()],n,i=Lx(e,32);for(i[0]&=248,i[31]&=127,i[31]|=64,pB(t,i),fB(r,t),n=0;n<32;++n)e[n+32]=r[n];return 0}o(Efe,"crypto_sign_keypair");function Afe(r,e,t,n){var i,s,a=new Float64Array(64),u=[jt(),jt(),jt(),jt()],c=Lx(n,32);c[0]&=248,c[31]&=127,c[31]|=64;var l=t+64;for(i=0;i<t;++i)r[64+i]=e[i];for(i=0;i<32;++i)r[32+i]=c[32+i];var p=Lx(r.subarray(32),t+32);for(cB(p),pB(u,p),fB(r,u),i=32;i<64;++i)r[i]=n[i];var m=Lx(r,t+64);for(cB(m),i=32;i<64;++i)a[i]=0;for(i=0;i<32;++i)a[i]=p[i];for(i=0;i<32;++i)for(s=0;s<32;s++)a[i+s]+=m[i]*c[s];return r6(r.subarray(32),a),l}o(Afe,"crypto_sign");function Nfe(r,e,t,n){var i,s,a=new _a(32),u=[jt(),jt(),jt(),jt()],c=[jt(),jt(),jt(),jt()];if(s=-1,t<64||Ife(c,n))return-1;for(i=0;i<t;++i)r[i]=e[i];for(i=0;i<32;++i)r[i+32]=n[i];var l=Lx(r,t);if(cB(l),s6(u,c,l),pB(c,e.subarray(32)),lB(u,c),fB(a,u),t-=64,n6(e,0,a,0)){for(i=0;i<t;++i)r[i]=0;return-1}for(i=0;i<t;++i)r[i]=e[i+64];return s=t,s}o(Nfe,"crypto_sign_open");function r6(r,e){var t,n,i,s;for(n=63;n>=32;--n){for(t=0,i=n-32,s=n-12;i<s;++i)e[i]+=t-16*e[n]*sB[i-(n-32)],t=e[i]+128>>8,e[i]-=t*256;e[i]+=t,e[n]=0}for(t=0,i=0;i<32;++i)e[i]+=t-(e[31]>>4)*sB[i],t=e[i]>>8,e[i]&=255;for(i=0;i<32;++i)e[i]-=t*sB[i];for(n=0;n<32;++n)e[n+1]+=e[n]>>8,r[n]=e[n]&255}o(r6,"modL");function cB(r){for(var e=new Float64Array(64),t=0;t<64;++t)e[t]=r[t],r[t]=0;r6(r,e)}o(cB,"reduce");function lB(r,e){var t=jt(),n=jt(),i=jt(),s=jt(),a=jt(),u=jt(),c=jt(),l=jt(),p=jt();ov(t,r[1],r[0]),ov(p,e[1],e[0]),pn(t,t,p),av(n,r[0],r[1]),av(p,e[0],e[1]),pn(n,n,p),pn(i,r[3],e[3]),pn(i,i,wfe),pn(s,r[2],e[2]),av(s,s,s),ov(a,n,t),ov(u,s,i),av(c,s,i),av(l,n,t),pn(r[0],a,u),pn(r[1],l,c),pn(r[2],c,u),pn(r[3],a,l)}o(lB,"add");function ZM(r,e,t){for(var n=0;n<4;++n)a6(r[n],e[n],t)}o(ZM,"cswap");function fB(r,e){var t=jt(),n=jt(),i=jt();_fe(i,e[2]),pn(t,e[0],i),pn(n,e[1],i),s2(r,n),r[31]^=i6(t)<<7}o(fB,"pack");function s2(r,e){var t,n,i,s=jt(),a=jt();for(t=0;t<16;++t)a[t]=e[t];for(aB(a),aB(a),aB(a),n=0;n<2;++n){for(s[0]=a[0]-65517,t=1;t<15;++t)s[t]=a[t]-65535-(s[t-1]>>16&1),s[t-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),i=s[15]>>16&1,s[14]&=65535,a6(a,s,1-i)}for(t=0;t<16;t++)r[2*t]=a[t]&255,r[2*t+1]=a[t]>>8}o(s2,"pack25519");function Ife(r,e){var t=jt(),n=jt(),i=jt(),s=jt(),a=jt(),u=jt(),c=jt();return jp(r[2],i2),Tfe(r[1],e),nm(i,r[1]),pn(s,i,bfe),ov(i,i,r[2]),av(s,r[2],s),nm(a,s),nm(u,a),pn(c,u,a),pn(t,c,i),pn(t,t,s),Rfe(t,t),pn(t,t,i),pn(t,t,s),pn(t,t,s),pn(r[0],t,s),nm(n,r[0]),pn(n,n,s),e6(n,i)&&pn(r[0],r[0],Cfe),nm(n,r[0]),pn(n,n,s),e6(n,i)?-1:(i6(r[0])===e[31]>>7&&ov(r[0],uB,r[0]),pn(r[3],r[0],r[1]),0)}o(Ife,"unpackneg");function Tfe(r,e){var t;for(t=0;t<16;++t)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}o(Tfe,"unpack25519");function Rfe(r,e){var t=jt(),n;for(n=0;n<16;++n)t[n]=e[n];for(n=250;n>=0;--n)nm(t,t),n!==1&&pn(t,t,e);for(n=0;n<16;++n)r[n]=t[n]}o(Rfe,"pow2523");function e6(r,e){var t=new _a(32),n=new _a(32);return s2(t,r),s2(n,e),n6(t,0,n,0)}o(e6,"neq25519");function n6(r,e,t,n){return Dfe(r,e,t,n,32)}o(n6,"crypto_verify_32");function Dfe(r,e,t,n,i){var s,a=0;for(s=0;s<i;++s)a|=r[e+s]^t[n+s];return(1&a-1>>>8)-1}o(Dfe,"vn");function i6(r){var e=new _a(32);return s2(e,r),e[0]&1}o(i6,"par25519");function s6(r,e,t){var n,i;for(jp(r[0],uB),jp(r[1],i2),jp(r[2],i2),jp(r[3],uB),i=255;i>=0;--i)n=t[i/8|0]>>(i&7)&1,ZM(r,e,n),lB(e,r),lB(r,r),ZM(r,e,n)}o(s6,"scalarmult");function pB(r,e){var t=[jt(),jt(),jt(),jt()];jp(t[0],QM),jp(t[1],YM),jp(t[2],i2),pn(t[3],QM,YM),s6(r,t,e)}o(pB,"scalarbase");function jp(r,e){var t;for(t=0;t<16;t++)r[t]=e[t]|0}o(jp,"set25519");function _fe(r,e){var t=jt(),n;for(n=0;n<16;++n)t[n]=e[n];for(n=253;n>=0;--n)nm(t,t),n!==2&&n!==4&&pn(t,t,e);for(n=0;n<16;++n)r[n]=t[n]}o(_fe,"inv25519");function aB(r){var e,t,n=1;for(e=0;e<16;++e)t=r[e]+n+65535,n=Math.floor(t/65536),r[e]=t-n*65536;r[0]+=n-1+37*(n-1)}o(aB,"car25519");function a6(r,e,t){for(var n,i=~(t-1),s=0;s<16;++s)n=i&(r[s]^e[s]),r[s]^=n,e[s]^=n}o(a6,"sel25519");function jt(r){var e,t=new Float64Array(16);if(r)for(e=0;e<r.length;++e)t[e]=r[e];return t}o(jt,"gf");function av(r,e,t){for(var n=0;n<16;++n)r[n]=e[n]+t[n]}o(av,"A");function ov(r,e,t){for(var n=0;n<16;++n)r[n]=e[n]-t[n]}o(ov,"Z");function nm(r,e){pn(r,e,e)}o(nm,"S");function pn(r,e,t){var n,i,s=0,a=0,u=0,c=0,l=0,p=0,m=0,g=0,S=0,v=0,b=0,x=0,E=0,N=0,w=0,C=0,A=0,R=0,M=0,_=0,H=0,z=0,K=0,X=0,ye=0,fe=0,ce=0,ee=0,pe=0,Ce=0,Ye=0,xe=t[0],ie=t[1],De=t[2],Ze=t[3],We=t[4],it=t[5],F=t[6],O=t[7],oe=t[8],J=t[9],Ge=t[10],Ue=t[11],Pe=t[12],bt=t[13],Ir=t[14],Je=t[15];n=e[0],s+=n*xe,a+=n*ie,u+=n*De,c+=n*Ze,l+=n*We,p+=n*it,m+=n*F,g+=n*O,S+=n*oe,v+=n*J,b+=n*Ge,x+=n*Ue,E+=n*Pe,N+=n*bt,w+=n*Ir,C+=n*Je,n=e[1],a+=n*xe,u+=n*ie,c+=n*De,l+=n*Ze,p+=n*We,m+=n*it,g+=n*F,S+=n*O,v+=n*oe,b+=n*J,x+=n*Ge,E+=n*Ue,N+=n*Pe,w+=n*bt,C+=n*Ir,A+=n*Je,n=e[2],u+=n*xe,c+=n*ie,l+=n*De,p+=n*Ze,m+=n*We,g+=n*it,S+=n*F,v+=n*O,b+=n*oe,x+=n*J,E+=n*Ge,N+=n*Ue,w+=n*Pe,C+=n*bt,A+=n*Ir,R+=n*Je,n=e[3],c+=n*xe,l+=n*ie,p+=n*De,m+=n*Ze,g+=n*We,S+=n*it,v+=n*F,b+=n*O,x+=n*oe,E+=n*J,N+=n*Ge,w+=n*Ue,C+=n*Pe,A+=n*bt,R+=n*Ir,M+=n*Je,n=e[4],l+=n*xe,p+=n*ie,m+=n*De,g+=n*Ze,S+=n*We,v+=n*it,b+=n*F,x+=n*O,E+=n*oe,N+=n*J,w+=n*Ge,C+=n*Ue,A+=n*Pe,R+=n*bt,M+=n*Ir,_+=n*Je,n=e[5],p+=n*xe,m+=n*ie,g+=n*De,S+=n*Ze,v+=n*We,b+=n*it,x+=n*F,E+=n*O,N+=n*oe,w+=n*J,C+=n*Ge,A+=n*Ue,R+=n*Pe,M+=n*bt,_+=n*Ir,H+=n*Je,n=e[6],m+=n*xe,g+=n*ie,S+=n*De,v+=n*Ze,b+=n*We,x+=n*it,E+=n*F,N+=n*O,w+=n*oe,C+=n*J,A+=n*Ge,R+=n*Ue,M+=n*Pe,_+=n*bt,H+=n*Ir,z+=n*Je,n=e[7],g+=n*xe,S+=n*ie,v+=n*De,b+=n*Ze,x+=n*We,E+=n*it,N+=n*F,w+=n*O,C+=n*oe,A+=n*J,R+=n*Ge,M+=n*Ue,_+=n*Pe,H+=n*bt,z+=n*Ir,K+=n*Je,n=e[8],S+=n*xe,v+=n*ie,b+=n*De,x+=n*Ze,E+=n*We,N+=n*it,w+=n*F,C+=n*O,A+=n*oe,R+=n*J,M+=n*Ge,_+=n*Ue,H+=n*Pe,z+=n*bt,K+=n*Ir,X+=n*Je,n=e[9],v+=n*xe,b+=n*ie,x+=n*De,E+=n*Ze,N+=n*We,w+=n*it,C+=n*F,A+=n*O,R+=n*oe,M+=n*J,_+=n*Ge,H+=n*Ue,z+=n*Pe,K+=n*bt,X+=n*Ir,ye+=n*Je,n=e[10],b+=n*xe,x+=n*ie,E+=n*De,N+=n*Ze,w+=n*We,C+=n*it,A+=n*F,R+=n*O,M+=n*oe,_+=n*J,H+=n*Ge,z+=n*Ue,K+=n*Pe,X+=n*bt,ye+=n*Ir,fe+=n*Je,n=e[11],x+=n*xe,E+=n*ie,N+=n*De,w+=n*Ze,C+=n*We,A+=n*it,R+=n*F,M+=n*O,_+=n*oe,H+=n*J,z+=n*Ge,K+=n*Ue,X+=n*Pe,ye+=n*bt,fe+=n*Ir,ce+=n*Je,n=e[12],E+=n*xe,N+=n*ie,w+=n*De,C+=n*Ze,A+=n*We,R+=n*it,M+=n*F,_+=n*O,H+=n*oe,z+=n*J,K+=n*Ge,X+=n*Ue,ye+=n*Pe,fe+=n*bt,ce+=n*Ir,ee+=n*Je,n=e[13],N+=n*xe,w+=n*ie,C+=n*De,A+=n*Ze,R+=n*We,M+=n*it,_+=n*F,H+=n*O,z+=n*oe,K+=n*J,X+=n*Ge,ye+=n*Ue,fe+=n*Pe,ce+=n*bt,ee+=n*Ir,pe+=n*Je,n=e[14],w+=n*xe,C+=n*ie,A+=n*De,R+=n*Ze,M+=n*We,_+=n*it,H+=n*F,z+=n*O,K+=n*oe,X+=n*J,ye+=n*Ge,fe+=n*Ue,ce+=n*Pe,ee+=n*bt,pe+=n*Ir,Ce+=n*Je,n=e[15],C+=n*xe,A+=n*ie,R+=n*De,M+=n*Ze,_+=n*We,H+=n*it,z+=n*F,K+=n*O,X+=n*oe,ye+=n*J,fe+=n*Ge,ce+=n*Ue,ee+=n*Pe,pe+=n*bt,Ce+=n*Ir,Ye+=n*Je,s+=38*A,a+=38*R,u+=38*M,c+=38*_,l+=38*H,p+=38*z,m+=38*K,g+=38*X,S+=38*ye,v+=38*fe,b+=38*ce,x+=38*ee,E+=38*pe,N+=38*Ce,w+=38*Ye,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=c+i+65535,i=Math.floor(n/65536),c=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=S+i+65535,i=Math.floor(n/65536),S=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=b+i+65535,i=Math.floor(n/65536),b=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=N+i+65535,i=Math.floor(n/65536),N=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=c+i+65535,i=Math.floor(n/65536),c=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=S+i+65535,i=Math.floor(n/65536),S=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=b+i+65535,i=Math.floor(n/65536),b=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=N+i+65535,i=Math.floor(n/65536),N=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,s+=i-1+37*(i-1),r[0]=s,r[1]=a,r[2]=u,r[3]=c,r[4]=l,r[5]=p,r[6]=m,r[7]=g,r[8]=S,r[9]=v,r[10]=b,r[11]=x,r[12]=E,r[13]=N,r[14]=w,r[15]=C}o(pn,"M")});var p6=Z((I2e,f6)=>{"use strict";var co=pr();kr();Fo();_x();f6.exports=co.kem=co.kem||{};var c6=co.jsbn.BigInteger;co.kem.rsa={};co.kem.rsa.create=function(r,e){e=e||{};var t=e.prng||co.random,n={};return n.encrypt=function(i,s){var a=Math.ceil(i.n.bitLength()/8),u;do u=new c6(co.util.bytesToHex(t.getBytesSync(a)),16).mod(i.n);while(u.compareTo(c6.ONE)<=0);u=co.util.hexToBytes(u.toString(16));var c=a-u.length;c>0&&(u=co.util.fillString("\0",c)+u);var l=i.encrypt(u,"NONE"),p=r.generate(u,s);return{encapsulation:l,key:p}},n.decrypt=function(i,s,a){var u=i.decrypt(s,"NONE");return r.generate(u,a)},n};co.kem.kdf1=function(r,e){l6(this,r,0,e||r.digestLength)};co.kem.kdf2=function(r,e){l6(this,r,1,e||r.digestLength)};function l6(r,e,t,n){r.generate=function(i,s){for(var a=new co.util.ByteBuffer,u=Math.ceil(s/n)+t,c=new co.util.ByteBuffer,l=t;l<u;++l){c.putInt32(l),e.start(),e.update(i+c.getBytes());var p=e.digest();a.putBytes(p.getBytes(n))}return a.truncate(a.length()-s),a.getBytes()}}o(l6,"_createKDF")});var g6=Z((R2e,m6)=>{"use strict";var Ar=pr();kr();m6.exports=Ar.log=Ar.log||{};Ar.log.levels=["none","error","warning","info","debug","verbose","max"];var a2={},mB=[],Vx=null;Ar.log.LEVEL_LOCKED=2;Ar.log.NO_LEVEL_CHECK=4;Ar.log.INTERPOLATE=8;for(Oc=0;Oc<Ar.log.levels.length;++Oc)hB=Ar.log.levels[Oc],a2[hB]={index:Oc,name:hB.toUpperCase()};var hB,Oc;Ar.log.logMessage=function(r){for(var e=a2[r.level].index,t=0;t<mB.length;++t){var n=mB[t];if(n.flags&Ar.log.NO_LEVEL_CHECK)n.f(r);else{var i=a2[n.level].index;e<=i&&n.f(n,r)}}};Ar.log.prepareStandard=function(r){"standard"in r||(r.standard=a2[r.level].name+" ["+r.category+"] "+r.message)};Ar.log.prepareFull=function(r){if(!("full"in r)){var e=[r.message];e=e.concat([]),r.full=Ar.util.format.apply(this,e)}};Ar.log.prepareStandardFull=function(r){"standardFull"in r||(Ar.log.prepareStandard(r),r.standardFull=r.standard)};for(dB=["error","warning","info","debug","verbose"],Oc=0;Oc<dB.length;++Oc)(function(e){Ar.log[e]=function(t,n){var i=Array.prototype.slice.call(arguments).slice(2),s={timestamp:new Date,level:e,category:t,message:n,arguments:i};Ar.log.logMessage(s)}})(dB[Oc]);var dB,Oc;Ar.log.makeLogger=function(r){var e={flags:0,f:r};return Ar.log.setLevel(e,"none"),e};Ar.log.setLevel=function(r,e){var t=!1;if(r&&!(r.flags&Ar.log.LEVEL_LOCKED))for(var n=0;n<Ar.log.levels.length;++n){var i=Ar.log.levels[n];if(e==i){r.level=e,t=!0;break}}return t};Ar.log.lock=function(r,e){typeof e>"u"||e?r.flags|=Ar.log.LEVEL_LOCKED:r.flags&=~Ar.log.LEVEL_LOCKED};Ar.log.addLogger=function(r){mB.push(r)};typeof console<"u"&&"log"in console?(console.error&&console.warn&&console.info&&console.debug?(h6={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},jx=o(function(r,e){Ar.log.prepareStandard(e);var t=h6[e.level],n=[e.standard];n=n.concat(e.arguments.slice()),t.apply(console,n)},"f"),uv=Ar.log.makeLogger(jx)):(jx=o(function(e,t){Ar.log.prepareStandardFull(t),console.log(t.standardFull)},"f"),uv=Ar.log.makeLogger(jx)),Ar.log.setLevel(uv,"debug"),Ar.log.addLogger(uv),Vx=uv):console={log:o(function(){},"log")};var uv,h6,jx;Vx!==null&&typeof window<"u"&&window.location&&(kx=new URL(window.location.href).searchParams,kx.has("console.level")&&Ar.log.setLevel(Vx,kx.get("console.level").slice(-1)[0]),kx.has("console.lock")&&(d6=kx.get("console.lock").slice(-1)[0],d6=="true"&&Ar.log.lock(Vx)));var kx,d6;Ar.log.consoleLogger=Vx});var y6=Z((_2e,v6)=>{"use strict";v6.exports=Ec();jN();tv();TP();nB()});var b6=Z((O2e,x6)=>{"use strict";var st=pr();_p();Nu();Rx();Op();Jd();qP();Fo();kr();ZN();var re=st.asn1,da=x6.exports=st.pkcs7=st.pkcs7||{};da.messageFromPem=function(r){var e=st.pem.decode(r)[0];if(e.type!=="PKCS7"){var t=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var n=re.fromDer(e.body);return da.messageFromAsn1(n)};da.messageToPem=function(r,e){var t={type:"PKCS7",body:re.toDer(r.toAsn1()).getBytes()};return st.pem.encode(t,{maxline:e})};da.messageFromAsn1=function(r){var e={},t=[];if(!re.validate(r,da.asn1.contentInfoValidator,e,t)){var n=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw n.errors=t,n}var i=re.derToOid(e.contentType),s;switch(i){case st.pki.oids.envelopedData:s=da.createEnvelopedData();break;case st.pki.oids.encryptedData:s=da.createEncryptedData();break;case st.pki.oids.signedData:s=da.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+i+" is not (yet) supported.")}return s.fromAsn1(e.content.value[0]),s};da.createSignedData=function(){var r=null;return r={type:st.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:o(function(n){if(vB(r,n,da.asn1.signedDataValidator),r.certificates=[],r.crls=[],r.digestAlgorithmIdentifiers=[],r.contentInfo=null,r.signerInfos=[],r.rawCapture.certificates)for(var i=r.rawCapture.certificates.value,s=0;s<i.length;++s)r.certificates.push(st.pki.certificateFromAsn1(i[s]))},"fromAsn1"),toAsn1:o(function(){r.contentInfo||r.sign();for(var n=[],i=0;i<r.certificates.length;++i)n.push(st.pki.certificateToAsn1(r.certificates[i]));var s=[],a=re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,r.digestAlgorithmIdentifiers),r.contentInfo])]);return n.length>0&&a.value[0].value.push(re.create(re.Class.CONTEXT_SPECIFIC,0,!0,n)),s.length>0&&a.value[0].value.push(re.create(re.Class.CONTEXT_SPECIFIC,1,!0,s)),a.value[0].value.push(re.create(re.Class.UNIVERSAL,re.Type.SET,!0,r.signerInfos)),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),a])},"toAsn1"),addSigner:o(function(n){var i=n.issuer,s=n.serialNumber;if(n.certificate){var a=n.certificate;typeof a=="string"&&(a=st.pki.certificateFromPem(a)),i=a.issuer.attributes,s=a.serialNumber}var u=n.key;if(!u)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof u=="string"&&(u=st.pki.privateKeyFromPem(u));var c=n.digestAlgorithm||st.pki.oids.sha1;switch(c){case st.pki.oids.sha1:case st.pki.oids.sha256:case st.pki.oids.sha384:case st.pki.oids.sha512:case st.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=n.authenticatedAttributes||[];if(l.length>0){for(var p=!1,m=!1,g=0;g<l.length;++g){var S=l[g];if(!p&&S.type===st.pki.oids.contentType){if(p=!0,m)break;continue}if(!m&&S.type===st.pki.oids.messageDigest){if(m=!0,p)break;continue}}if(!p||!m)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.")}r.signers.push({key:u,version:1,issuer:i,serialNumber:s,digestAlgorithm:c,signatureAlgorithm:st.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:l,unauthenticatedAttributes:[]})},"addSigner"),sign:o(function(n){if(n=n||{},(typeof r.content!="object"||r.contentInfo===null)&&(r.contentInfo=re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(st.pki.oids.data).getBytes())]),"content"in r)){var i;r.content instanceof st.util.ByteBuffer?i=r.content.bytes():typeof r.content=="string"&&(i=st.util.encodeUtf8(r.content)),n.detached?r.detachedContent=re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,i):r.contentInfo.value.push(re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,i)]))}if(r.signers.length!==0){var s=e();t(s)}},"sign"),verify:o(function(){throw new Error("PKCS#7 signature verification not yet implemented.")},"verify"),addCertificate:o(function(n){typeof n=="string"&&(n=st.pki.certificateFromPem(n)),r.certificates.push(n)},"addCertificate"),addCertificateRevokationList:o(function(n){throw new Error("PKCS#7 CRL support not yet implemented.")},"addCertificateRevokationList")},r;function e(){for(var n={},i=0;i<r.signers.length;++i){var s=r.signers[i],a=s.digestAlgorithm;a in n||(n[a]=st.md[st.pki.oids[a]].create()),s.authenticatedAttributes.length===0?s.md=n[a]:s.md=st.md[st.pki.oids[a]].create()}r.digestAlgorithmIdentifiers=[];for(var a in n)r.digestAlgorithmIdentifiers.push(re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(a).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")]));return n}o(e,"addDigestAlgorithmIds");function t(n){var i;if(r.detachedContent?i=r.detachedContent:(i=r.contentInfo.value[1],i=i.value[0]),!i)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var s=re.derToOid(r.contentInfo.value[0].value),a=re.toDer(i);a.getByte(),re.getBerValueLength(a),a=a.getBytes();for(var u in n)n[u].start().update(a);for(var c=new Date,l=0;l<r.signers.length;++l){var p=r.signers[l];if(p.authenticatedAttributes.length===0){if(s!==st.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{p.authenticatedAttributesAsn1=re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var m=re.create(re.Class.UNIVERSAL,re.Type.SET,!0,[]),g=0;g<p.authenticatedAttributes.length;++g){var S=p.authenticatedAttributes[g];S.type===st.pki.oids.messageDigest?S.value=n[p.digestAlgorithm].digest():S.type===st.pki.oids.signingTime&&(S.value||(S.value=c)),m.value.push(gB(S)),p.authenticatedAttributesAsn1.value.push(gB(S))}a=re.toDer(m).getBytes(),p.md.start().update(a)}p.signature=p.key.sign(p.md,"RSASSA-PKCS1-V1_5")}r.signerInfos=kfe(r.signers)}o(t,"addSignerInfos")};da.createEncryptedData=function(){var r=null;return r={type:st.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:st.pki.oids["aes256-CBC"]},fromAsn1:o(function(e){vB(r,e,da.asn1.encryptedDataValidator)},"fromAsn1"),decrypt:o(function(e){e!==void 0&&(r.encryptedContent.key=e),S6(r)},"decrypt")},r};da.createEnvelopedData=function(){var r=null;return r={type:st.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:st.pki.oids["aes256-CBC"]},fromAsn1:o(function(e){var t=vB(r,e,da.asn1.envelopedDataValidator);r.recipients=Bfe(t.recipientInfos.value)},"fromAsn1"),toAsn1:o(function(){return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,Ffe(r.recipients)),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,Vfe(r.encryptedContent))])])])},"toAsn1"),findRecipient:o(function(e){for(var t=e.issuer.attributes,n=0;n<r.recipients.length;++n){var i=r.recipients[n],s=i.issuer;if(i.serialNumber===e.serialNumber&&s.length===t.length){for(var a=!0,u=0;u<t.length;++u)if(s[u].type!==t[u].type||s[u].value!==t[u].value){a=!1;break}if(a)return i}}return null},"findRecipient"),decrypt:o(function(e,t){if(r.encryptedContent.key===void 0&&e!==void 0&&t!==void 0)switch(e.encryptedContent.algorithm){case st.pki.oids.rsaEncryption:case st.pki.oids.desCBC:var n=t.decrypt(e.encryptedContent.content);r.encryptedContent.key=st.util.createBuffer(n);break;default:throw new Error("Unsupported asymmetric cipher, OID "+e.encryptedContent.algorithm)}S6(r)},"decrypt"),addRecipient:o(function(e){r.recipients.push({version:0,issuer:e.issuer.attributes,serialNumber:e.serialNumber,encryptedContent:{algorithm:st.pki.oids.rsaEncryption,key:e.publicKey}})},"addRecipient"),encrypt:o(function(e,t){if(r.encryptedContent.content===void 0){t=t||r.encryptedContent.algorithm,e=e||r.encryptedContent.key;var n,i,s;switch(t){case st.pki.oids["aes128-CBC"]:n=16,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["aes192-CBC"]:n=24,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["aes256-CBC"]:n=32,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["des-EDE3-CBC"]:n=24,i=8,s=st.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+t)}if(e===void 0)e=st.util.createBuffer(st.random.getBytes(n));else if(e.length()!=n)throw new Error("Symmetric key has wrong length; got "+e.length()+" bytes, expected "+n+".");r.encryptedContent.algorithm=t,r.encryptedContent.key=e,r.encryptedContent.parameter=st.util.createBuffer(st.random.getBytes(i));var a=s(e);if(a.start(r.encryptedContent.parameter.copy()),a.update(r.content),!a.finish())throw new Error("Symmetric encryption failed.");r.encryptedContent.content=a.output}for(var u=0;u<r.recipients.length;++u){var c=r.recipients[u];if(c.encryptedContent.content===void 0)switch(c.encryptedContent.algorithm){case st.pki.oids.rsaEncryption:c.encryptedContent.content=c.encryptedContent.key.encrypt(r.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+c.encryptedContent.algorithm)}}},"encrypt")},r};function Ofe(r){var e={},t=[];if(!re.validate(r,da.asn1.recipientInfoValidator,e,t)){var n=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw n.errors=t,n}return{version:e.version.charCodeAt(0),issuer:st.pki.RDNAttributesAsArray(e.issuer),serialNumber:st.util.createBuffer(e.serial).toHex(),encryptedContent:{algorithm:re.derToOid(e.encAlgorithm),parameter:e.encParameter?e.encParameter.value:void 0,content:e.encKey}}}o(Ofe,"_recipientFromAsn1");function Pfe(r){return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[st.pki.distinguishedNameToAsn1({attributes:r.issuer}),re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,st.util.hexToBytes(r.serialNumber))]),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.encryptedContent.algorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")]),re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.encryptedContent.content)])}o(Pfe,"_recipientToAsn1");function Bfe(r){for(var e=[],t=0;t<r.length;++t)e.push(Ofe(r[t]));return e}o(Bfe,"_recipientsFromAsn1");function Ffe(r){for(var e=[],t=0;t<r.length;++t)e.push(Pfe(r[t]));return e}o(Ffe,"_recipientsToAsn1");function Lfe(r){var e=re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[st.pki.distinguishedNameToAsn1({attributes:r.issuer}),re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,st.util.hexToBytes(r.serialNumber))]),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.digestAlgorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")])]);if(r.authenticatedAttributesAsn1&&e.value.push(r.authenticatedAttributesAsn1),e.value.push(re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.signatureAlgorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")])),e.value.push(re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.signature)),r.unauthenticatedAttributes.length>0){for(var t=re.create(re.Class.CONTEXT_SPECIFIC,1,!0,[]),n=0;n<r.unauthenticatedAttributes.length;++n){var i=r.unauthenticatedAttributes[n];t.values.push(gB(i))}e.value.push(t)}return e}o(Lfe,"_signerToAsn1");function kfe(r){for(var e=[],t=0;t<r.length;++t)e.push(Lfe(r[t]));return e}o(kfe,"_signersToAsn1");function gB(r){var e;if(r.type===st.pki.oids.contentType)e=re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.value).getBytes());else if(r.type===st.pki.oids.messageDigest)e=re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.value.bytes());else if(r.type===st.pki.oids.signingTime){var t=new Date("1950-01-01T00:00:00Z"),n=new Date("2050-01-01T00:00:00Z"),i=r.value;if(typeof i=="string"){var s=Date.parse(i);isNaN(s)?i.length===13?i=re.utcTimeToDate(i):i=re.generalizedTimeToDate(i):i=new Date(s)}i>=t&&i<n?e=re.create(re.Class.UNIVERSAL,re.Type.UTCTIME,!1,re.dateToUtcTime(i)):e=re.create(re.Class.UNIVERSAL,re.Type.GENERALIZEDTIME,!1,re.dateToGeneralizedTime(i))}return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,[e])])}o(gB,"_attributeToAsn1");function Vfe(r){return[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(st.pki.oids.data).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.algorithm).getBytes()),r.parameter?re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.parameter.getBytes()):void 0]),re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.content.getBytes())])]}o(Vfe,"_encryptedContentToAsn1");function vB(r,e,t){var n={},i=[];if(!re.validate(e,t,n,i)){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 a=re.derToOid(n.contentType);if(a!==st.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(n.encryptedContent){var u="";if(st.util.isArray(n.encryptedContent))for(var c=0;c<n.encryptedContent.length;++c){if(n.encryptedContent[c].type!==re.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");u+=n.encryptedContent[c].value}else u=n.encryptedContent;r.encryptedContent={algorithm:re.derToOid(n.encAlgorithm),parameter:st.util.createBuffer(n.encParameter.value),content:st.util.createBuffer(u)}}if(n.content){var u="";if(st.util.isArray(n.content))for(var c=0;c<n.content.length;++c){if(n.content[c].type!==re.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");u+=n.content[c].value}else u=n.content;r.content=st.util.createBuffer(u)}return r.version=n.version.charCodeAt(0),r.rawCapture=n,n}o(vB,"_fromAsn1");function S6(r){if(r.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(r.content===void 0){var e;switch(r.encryptedContent.algorithm){case st.pki.oids["aes128-CBC"]:case st.pki.oids["aes192-CBC"]:case st.pki.oids["aes256-CBC"]:e=st.aes.createDecryptionCipher(r.encryptedContent.key);break;case st.pki.oids.desCBC:case st.pki.oids["des-EDE3-CBC"]:e=st.des.createDecryptionCipher(r.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+r.encryptedContent.algorithm)}if(e.start(r.encryptedContent.parameter),e.update(r.encryptedContent.content),!e.finish())throw new Error("Symmetric decryption failed.");r.content=e.output}}o(S6,"_decryptContent")});var C6=Z((B2e,w6)=>{"use strict";var Ai=pr();_p();Qg();jN();tv();kr();var u2=w6.exports=Ai.ssh=Ai.ssh||{};u2.privateKeyToPutty=function(r,e,t){t=t||"",e=e||"";var n="ssh-rsa",i=e===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+n+`\r
14
+ `+u+e.substr(a+1),s=i-a-1,a=-1,++i}else(e[i]===" "||e[i]===" "||e[i]===",")&&(a=i);return e}o(UN,"foldHeader");function hue(r){return r.replace(/^\s+/,"")}o(hue,"ltrim")});var Rx=Z((VNe,LU)=>{"use strict";var Fn=pr();ON();bP();kr();LU.exports=Fn.des=Fn.des||{};Fn.des.startEncrypting=function(r,e,t,n){var i=qN({key:r,output:t,decrypt:!1,mode:n||(e===null?"ECB":"CBC")});return i.start(e),i};Fn.des.createEncryptionCipher=function(r,e){return qN({key:r,output:null,decrypt:!1,mode:e})};Fn.des.startDecrypting=function(r,e,t,n){var i=qN({key:r,output:t,decrypt:!0,mode:n||(e===null?"ECB":"CBC")});return i.start(e),i};Fn.des.createDecryptionCipher=function(r,e){return qN({key:r,output:null,decrypt:!0,mode:e})};Fn.des.Algorithm=function(r,e){var t=this;t.name=r,t.mode=new e({blockSize:8,cipher:{encrypt:o(function(n,i){return FU(t._keys,n,i,!1)},"encrypt"),decrypt:o(function(n,i){return FU(t._keys,n,i,!0)},"decrypt")}}),t._init=!1};Fn.des.Algorithm.prototype.initialize=function(r){if(!this._init){var e=Fn.util.createBuffer(r.key);if(this.name.indexOf("3DES")===0&&e.length()!==24)throw new Error("Invalid Triple-DES key size: "+e.length()*8);this._keys=wue(e),this._init=!0}};Nc("DES-ECB",Fn.cipher.modes.ecb);Nc("DES-CBC",Fn.cipher.modes.cbc);Nc("DES-CFB",Fn.cipher.modes.cfb);Nc("DES-OFB",Fn.cipher.modes.ofb);Nc("DES-CTR",Fn.cipher.modes.ctr);Nc("3DES-ECB",Fn.cipher.modes.ecb);Nc("3DES-CBC",Fn.cipher.modes.cbc);Nc("3DES-CFB",Fn.cipher.modes.cfb);Nc("3DES-OFB",Fn.cipher.modes.ofb);Nc("3DES-CTR",Fn.cipher.modes.ctr);function Nc(r,e){var t=o(function(){return new Fn.des.Algorithm(r,e)},"factory");Fn.cipher.registerAlgorithm(r,t)}o(Nc,"registerAlgorithm");var due=[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],mue=[-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],gue=[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],vue=[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],yue=[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],Sue=[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],xue=[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],bue=[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 wue(r){for(var e=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],t=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],n=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],i=[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],a=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],u=[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],p=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],m=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],g=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],S=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],v=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],b=r.length()>8?3:1,x=[],E=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],N=0,w,C=0;C<b;C++){var A=r.getInt32(),R=r.getInt32();w=(A>>>4^R)&252645135,R^=w,A^=w<<4,w=(R>>>-16^A)&65535,A^=w,R^=w<<-16,w=(A>>>2^R)&858993459,R^=w,A^=w<<2,w=(R>>>-16^A)&65535,A^=w,R^=w<<-16,w=(A>>>1^R)&1431655765,R^=w,A^=w<<1,w=(R>>>8^A)&16711935,A^=w,R^=w<<8,w=(A>>>1^R)&1431655765,R^=w,A^=w<<1,w=A<<8|R>>>20&240,A=R<<24|R<<8&16711680|R>>>8&65280|R>>>24&240,R=w;for(var M=0;M<E.length;++M){E[M]?(A=A<<2|A>>>26,R=R<<2|R>>>26):(A=A<<1|A>>>27,R=R<<1|R>>>27),A&=-15,R&=-15;var _=e[A>>>28]|t[A>>>24&15]|n[A>>>20&15]|i[A>>>16&15]|s[A>>>12&15]|a[A>>>8&15]|u[A>>>4&15],H=c[R>>>28]|l[R>>>24&15]|p[R>>>20&15]|m[R>>>16&15]|g[R>>>12&15]|S[R>>>8&15]|v[R>>>4&15];w=(H>>>16^_)&65535,x[N++]=_^w,x[N++]=H^w<<16}}return x}o(wue,"_createKeys");function FU(r,e,t,n){var i=r.length===32?3:9,s;i===3?s=n?[30,-2,-2]:[0,32,2]:s=n?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var a,u=e[0],c=e[1];a=(u>>>4^c)&252645135,c^=a,u^=a<<4,a=(u>>>16^c)&65535,c^=a,u^=a<<16,a=(c>>>2^u)&858993459,u^=a,c^=a<<2,a=(c>>>8^u)&16711935,u^=a,c^=a<<8,a=(u>>>1^c)&1431655765,c^=a,u^=a<<1,u=u<<1|u>>>31,c=c<<1|c>>>31;for(var l=0;l<i;l+=3){for(var p=s[l+1],m=s[l+2],g=s[l];g!=p;g+=m){var S=c^r[g],v=(c>>>4|c<<28)^r[g+1];a=u,u=c,c=a^(mue[S>>>24&63]|vue[S>>>16&63]|Sue[S>>>8&63]|bue[S&63]|due[v>>>24&63]|gue[v>>>16&63]|yue[v>>>8&63]|xue[v&63])}a=u,u=c,c=a}u=u>>>1|u<<31,c=c>>>1|c<<31,a=(u>>>1^c)&1431655765,c^=a,u^=a<<1,a=(c>>>8^u)&16711935,u^=a,c^=a<<8,a=(c>>>2^u)&858993459,u^=a,c^=a<<2,a=(u>>>16^c)&65535,c^=a,u^=a<<16,a=(u>>>4^c)&252645135,c^=a,u^=a<<4,t[0]=u,t[1]=c}o(FU,"_updateBlock");function qN(r){r=r||{};var e=(r.mode||"CBC").toUpperCase(),t="DES-"+e,n;r.decrypt?n=Fn.cipher.createDecipher(t,r.key):n=Fn.cipher.createCipher(t,r.key);var i=n.start;return n.start=function(s,a){var u=null;a instanceof Fn.util.ByteBuffer&&(u=a,a={}),a=a||{},a.output=u,a.iv=s,i.call(n,a)},n}o(qN,"_createCipher")});var HN=Z((UNe,kU)=>{"use strict";var pa=pr();Qg();Ec();kr();var Cue=pa.pkcs5=pa.pkcs5||{},Kl;pa.util.isNodejs&&!pa.options.usePureJavaScript&&(Kl=require("crypto"));kU.exports=pa.pbkdf2=Cue.pbkdf2=function(r,e,t,n,i,s){if(typeof i=="function"&&(s=i,i=null),pa.util.isNodejs&&!pa.options.usePureJavaScript&&Kl.pbkdf2&&(i===null||typeof i!="object")&&(Kl.pbkdf2Sync.length>4||!i||i==="sha1"))return typeof i!="string"&&(i="sha1"),r=Buffer.from(r,"binary"),e=Buffer.from(e,"binary"),s?Kl.pbkdf2Sync.length===4?Kl.pbkdf2(r,e,t,n,function(w,C){if(w)return s(w);s(null,C.toString("binary"))}):Kl.pbkdf2(r,e,t,n,i,function(w,C){if(w)return s(w);s(null,C.toString("binary"))}):Kl.pbkdf2Sync.length===4?Kl.pbkdf2Sync(r,e,t,n).toString("binary"):Kl.pbkdf2Sync(r,e,t,n,i).toString("binary");if((typeof i>"u"||i===null)&&(i="sha1"),typeof i=="string"){if(!(i in pa.md.algorithms))throw new Error("Unknown hash algorithm: "+i);i=pa.md[i].create()}var a=i.digestLength;if(n>4294967295*a){var u=new Error("Derived key is too long.");if(s)return s(u);throw u}var c=Math.ceil(n/a),l=n-(c-1)*a,p=pa.hmac.create();p.start(i,r);var m="",g,S,v;if(!s){for(var b=1;b<=c;++b){p.start(null,null),p.update(e),p.update(pa.util.int32ToBytes(b)),g=v=p.digest().getBytes();for(var x=2;x<=t;++x)p.start(null,null),p.update(v),S=p.digest().getBytes(),g=pa.util.xorBytes(g,S,a),v=S;m+=b<c?g:g.substr(0,l)}return m}var b=1,x;function E(){if(b>c)return s(null,m);p.start(null,null),p.update(e),p.update(pa.util.int32ToBytes(b)),g=v=p.digest().getBytes(),x=2,N()}o(E,"outer");function N(){if(x<=t)return p.start(null,null),p.update(v),S=p.digest().getBytes(),g=pa.util.xorBytes(g,S,a),v=S,++x,pa.util.setImmediate(N);m+=b<c?g:g.substr(0,l),++b,E()}o(N,"inner"),E()}});var TP=Z((qNe,qU)=>{"use strict";var Ic=pr();Ec();kr();var jU=qU.exports=Ic.sha256=Ic.sha256||{};Ic.md.sha256=Ic.md.algorithms.sha256=jU;jU.create=function(){UU||Eue();var r=null,e=Ic.util.createBuffer(),t=new Array(64),n={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Ic.util.createBuffer(),r={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Ic.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),VU(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Ic.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(IP.substr(0,n.blockLength-a));for(var u,c,l=n.fullMessageLength[0]*8,p=0;p<n.fullMessageLength.length-1;++p)u=n.fullMessageLength[p+1]*8,c=u/4294967296>>>0,l+=c,i.putInt32(l>>>0),l=u>>>0;i.putInt32(l);var m={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3,h4:r.h4,h5:r.h5,h6:r.h6,h7:r.h7};VU(m,t,i);var g=Ic.util.createBuffer();return g.putInt32(m.h0),g.putInt32(m.h1),g.putInt32(m.h2),g.putInt32(m.h3),g.putInt32(m.h4),g.putInt32(m.h5),g.putInt32(m.h6),g.putInt32(m.h7),g},n};var IP=null,UU=!1,MU=null;function Eue(){IP="\x80",IP+=Ic.util.fillString("\0",64),MU=[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],UU=!0}o(Eue,"_init");function VU(r,e,t){for(var n,i,s,a,u,c,l,p,m,g,S,v,b,x,E,N=t.length();N>=64;){for(l=0;l<16;++l)e[l]=t.getInt32();for(;l<64;++l)n=e[l-2],n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,i=e[l-15],i=(i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,e[l]=n+e[l-7]+i+e[l-16]|0;for(p=r.h0,m=r.h1,g=r.h2,S=r.h3,v=r.h4,b=r.h5,x=r.h6,E=r.h7,l=0;l<64;++l)a=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),u=x^v&(b^x),s=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),c=p&m|g&(p^m),n=E+a+u+MU[l]+e[l],i=s+c,E=x,x=b,b=v,v=S+n>>>0,S=g,g=m,m=p,p=n+i>>>0;r.h0=r.h0+p|0,r.h1=r.h1+m|0,r.h2=r.h2+g|0,r.h3=r.h3+S|0,r.h4=r.h4+v|0,r.h5=r.h5+b|0,r.h6=r.h6+x|0,r.h7=r.h7+E|0,N-=64}}o(VU,"_update")});var RP=Z((zNe,HU)=>{"use strict";var Tc=pr();kr();var zN=null;Tc.util.isNodejs&&!Tc.options.usePureJavaScript&&!process.versions["node-webkit"]&&(zN=require("crypto"));var Aue=HU.exports=Tc.prng=Tc.prng||{};Aue.create=function(r){for(var e={plugin:r,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},t=r.md,n=new Array(32),i=0;i<32;++i)n[i]=t.create();e.pools=n,e.pool=0,e.generate=function(l,p){if(!p)return e.generateSync(l);var m=e.plugin.cipher,g=e.plugin.increment,S=e.plugin.formatKey,v=e.plugin.formatSeed,b=Tc.util.createBuffer();e.key=null,x();function x(E){if(E)return p(E);if(b.length()>=l)return p(null,b.getBytes(l));if(e.generated>1048575&&(e.key=null),e.key===null)return Tc.util.nextTick(function(){s(x)});var N=m(e.key,e.seed);e.generated+=N.length,b.putBytes(N),e.key=S(m(e.key,g(e.seed))),e.seed=v(m(e.key,e.seed)),Tc.util.setImmediate(x)}o(x,"generate")},e.generateSync=function(l){var p=e.plugin.cipher,m=e.plugin.increment,g=e.plugin.formatKey,S=e.plugin.formatSeed;e.key=null;for(var v=Tc.util.createBuffer();v.length()<l;){e.generated>1048575&&(e.key=null),e.key===null&&a();var b=p(e.key,e.seed);e.generated+=b.length,v.putBytes(b),e.key=g(p(e.key,m(e.seed))),e.seed=S(p(e.key,e.seed))}return v.getBytes(l)};function s(l){if(e.pools[0].messageLength>=32)return u(),l();var p=32-e.pools[0].messageLength<<5;e.seedFile(p,function(m,g){if(m)return l(m);e.collect(g),u(),l()})}o(s,"_reseed");function a(){if(e.pools[0].messageLength>=32)return u();var l=32-e.pools[0].messageLength<<5;e.collect(e.seedFileSync(l)),u()}o(a,"_reseedSync");function u(){e.reseeds=e.reseeds===4294967295?0:e.reseeds+1;var l=e.plugin.md.create();l.update(e.keyBytes);for(var p=1,m=0;m<32;++m)e.reseeds%p===0&&(l.update(e.pools[m].digest().getBytes()),e.pools[m].start()),p=p<<1;e.keyBytes=l.digest().getBytes(),l.start(),l.update(e.keyBytes);var g=l.digest().getBytes();e.key=e.plugin.formatKey(e.keyBytes),e.seed=e.plugin.formatSeed(g),e.generated=0}o(u,"_seed");function c(l){var p=null,m=Tc.util.globalScope,g=m.crypto||m.msCrypto;g&&g.getRandomValues&&(p=o(function(A){return g.getRandomValues(A)},"getRandomValues"));var S=Tc.util.createBuffer();if(p)for(;S.length()<l;){var v=Math.max(1,Math.min(l-S.length(),65536)/4),b=new Uint32Array(Math.floor(v));try{p(b);for(var x=0;x<b.length;++x)S.putInt32(b[x])}catch(A){if(!(typeof QuotaExceededError<"u"&&A instanceof QuotaExceededError))throw A}}if(S.length()<l)for(var E,N,w,C=Math.floor(Math.random()*65536);S.length()<l;){N=16807*(C&65535),E=16807*(C>>16),N+=(E&32767)<<16,N+=E>>15,N=(N&2147483647)+(N>>31),C=N&4294967295;for(var x=0;x<3;++x)w=C>>>(x<<3),w^=Math.floor(Math.random()*256),S.putByte(w&255)}return S.getBytes(l)}return o(c,"defaultSeedFile"),zN?(e.seedFile=function(l,p){zN.randomBytes(l,function(m,g){if(m)return p(m);p(null,g.toString())})},e.seedFileSync=function(l){return zN.randomBytes(l).toString()}):(e.seedFile=function(l,p){try{p(null,c(l))}catch(m){p(m)}},e.seedFileSync=c),e.collect=function(l){for(var p=l.length,m=0;m<p;++m)e.pools[e.pool].update(l.substr(m,1)),e.pool=e.pool===31?0:e.pool+1},e.collectInt=function(l,p){for(var m="",g=0;g<p;g+=8)m+=String.fromCharCode(l>>g&255);e.collect(m)},e.registerWorker=function(l){if(l===self)e.seedFile=function(m,g){function S(v){var b=v.data;b.forge&&b.forge.prng&&(self.removeEventListener("message",S),g(b.forge.prng.err,b.forge.prng.bytes))}o(S,"listener"),self.addEventListener("message",S),self.postMessage({forge:{prng:{needed:m}}})};else{var p=o(function(m){var g=m.data;g.forge&&g.forge.prng&&e.seedFile(g.forge.prng.needed,function(S,v){l.postMessage({forge:{prng:{err:S,bytes:v}}})})},"listener");l.addEventListener("message",p)}},e}});var Fo=Z(($Ne,DP)=>{"use strict";var Gi=pr();_p();TP();RP();kr();(function(){if(Gi.random&&Gi.random.getBytes){DP.exports=Gi.random;return}(function(r){var e={},t=new Array(4),n=Gi.util.createBuffer();e.formatKey=function(m){var g=Gi.util.createBuffer(m);return m=new Array(4),m[0]=g.getInt32(),m[1]=g.getInt32(),m[2]=g.getInt32(),m[3]=g.getInt32(),Gi.aes._expandKey(m,!1)},e.formatSeed=function(m){var g=Gi.util.createBuffer(m);return m=new Array(4),m[0]=g.getInt32(),m[1]=g.getInt32(),m[2]=g.getInt32(),m[3]=g.getInt32(),m},e.cipher=function(m,g){return Gi.aes._updateBlock(m,g,t,!1),n.putInt32(t[0]),n.putInt32(t[1]),n.putInt32(t[2]),n.putInt32(t[3]),n.getBytes()},e.increment=function(m){return++m[3],m},e.md=Gi.md.sha256;function i(){var m=Gi.prng.create(e);return m.getBytes=function(g,S){return m.generate(g,S)},m.getBytesSync=function(g){return m.generate(g)},m}o(i,"spawnPrng");var s=i(),a=null,u=Gi.util.globalScope,c=u.crypto||u.msCrypto;if(c&&c.getRandomValues&&(a=o(function(m){return c.getRandomValues(m)},"getRandomValues")),Gi.options.usePureJavaScript||!Gi.util.isNodejs&&!a){if(typeof window>"u"||window.document,s.collectInt(+new Date,32),typeof navigator<"u"){var l="";for(var p in navigator)try{typeof navigator[p]=="string"&&(l+=navigator[p])}catch{}s.collect(l),l=null}r&&(r().mousemove(function(m){s.collectInt(m.clientX,16),s.collectInt(m.clientY,16)}),r().keypress(function(m){s.collectInt(m.charCode,8)}))}if(!Gi.random)Gi.random=s;else for(var p in s)Gi.random[p]=s[p];Gi.random.createInstance=i,DP.exports=Gi.random})(typeof jQuery<"u"?jQuery:null)})()});var OP=Z((XNe,$U)=>{"use strict";var Da=pr();kr();var _P=[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],zU=[1,2,3,5],Nue=o(function(r,e){return r<<e&65535|(r&65535)>>16-e},"rol"),Iue=o(function(r,e){return(r&65535)>>e|r<<16-e&65535},"ror");$U.exports=Da.rc2=Da.rc2||{};Da.rc2.expandKey=function(r,e){typeof r=="string"&&(r=Da.util.createBuffer(r)),e=e||128;var t=r,n=r.length(),i=e,s=Math.ceil(i/8),a=255>>(i&7),u;for(u=n;u<128;u++)t.putByte(_P[t.at(u-1)+t.at(u-n)&255]);for(t.setAt(128-s,_P[t.at(128-s)&a]),u=127-s;u>=0;u--)t.setAt(u,_P[t.at(u+1)^t.at(u+s)]);return t};var KU=o(function(r,e,t){var n=!1,i=null,s=null,a=null,u,c,l,p,m=[];for(r=Da.rc2.expandKey(r,e),l=0;l<64;l++)m.push(r.getInt16Le());t?(u=o(function(v){for(l=0;l<4;l++)v[l]+=m[p]+(v[(l+3)%4]&v[(l+2)%4])+(~v[(l+3)%4]&v[(l+1)%4]),v[l]=Nue(v[l],zU[l]),p++},"mixRound"),c=o(function(v){for(l=0;l<4;l++)v[l]+=m[v[(l+3)%4]&63]},"mashRound")):(u=o(function(v){for(l=3;l>=0;l--)v[l]=Iue(v[l],zU[l]),v[l]-=m[p]+(v[(l+3)%4]&v[(l+2)%4])+(~v[(l+3)%4]&v[(l+1)%4]),p--},"mixRound"),c=o(function(v){for(l=3;l>=0;l--)v[l]-=m[v[(l+3)%4]&63]},"mashRound"));var g=o(function(v){var b=[];for(l=0;l<4;l++){var x=i.getInt16Le();a!==null&&(t?x^=a.getInt16Le():a.putInt16Le(x)),b.push(x&65535)}p=t?0:63;for(var E=0;E<v.length;E++)for(var N=0;N<v[E][0];N++)v[E][1](b);for(l=0;l<4;l++)a!==null&&(t?a.putInt16Le(b[l]):b[l]^=a.getInt16Le()),s.putInt16Le(b[l])},"runPlan"),S=null;return S={start:o(function(v,b){v&&typeof v=="string"&&(v=Da.util.createBuffer(v)),n=!1,i=Da.util.createBuffer(),s=b||new Da.util.createBuffer,a=v,S.output=s},"start"),update:o(function(v){for(n||i.putBuffer(v);i.length()>=8;)g([[5,u],[1,c],[6,u],[1,c],[5,u]])},"update"),finish:o(function(v){var b=!0;if(t)if(v)b=v(8,i,!t);else{var x=i.length()===8?8:8-i.length();i.fillWithByte(x,x)}if(b&&(n=!0,S.update()),!t&&(b=i.length()===0,b))if(v)b=v(8,s,!t);else{var E=s.length(),N=s.at(E-1);N>E?b=!1:s.truncate(N)}return b},"finish")},S},"createCipher");Da.rc2.startEncrypting=function(r,e,t){var n=Da.rc2.createEncryptionCipher(r,128);return n.start(e,t),n};Da.rc2.createEncryptionCipher=function(r,e){return KU(r,e,!0)};Da.rc2.startDecrypting=function(r,e,t){var n=Da.rc2.createDecryptionCipher(r,128);return n.start(e,t),n};Da.rc2.createDecryptionCipher=function(r,e){return KU(r,e,!1)}});var _x=Z((JNe,eM)=>{"use strict";var PP=pr();eM.exports=PP.jsbn=PP.jsbn||{};var $l,Tue=0xdeadbeefcafe,GU=(Tue&16777215)==15715070;function He(r,e,t){this.data=[],r!=null&&(typeof r=="number"?this.fromNumber(r,e,t):e==null&&typeof r!="string"?this.fromString(r,256):this.fromString(r,e))}o(He,"BigInteger");PP.jsbn.BigInteger=He;function Vr(){return new He(null)}o(Vr,"nbi");function Rue(r,e,t,n,i,s){for(;--s>=0;){var a=e*this.data[r++]+t.data[n]+i;i=Math.floor(a/67108864),t.data[n++]=a&67108863}return i}o(Rue,"am1");function Due(r,e,t,n,i,s){for(var a=e&32767,u=e>>15;--s>=0;){var c=this.data[r]&32767,l=this.data[r++]>>15,p=u*c+l*a;c=a*c+((p&32767)<<15)+t.data[n]+(i&1073741823),i=(c>>>30)+(p>>>15)+u*l+(i>>>30),t.data[n++]=c&1073741823}return i}o(Due,"am2");function XU(r,e,t,n,i,s){for(var a=e&16383,u=e>>14;--s>=0;){var c=this.data[r]&16383,l=this.data[r++]>>14,p=u*c+l*a;c=a*c+((p&16383)<<14)+t.data[n]+i,i=(c>>28)+(p>>14)+u*l,t.data[n++]=c&268435455}return i}o(XU,"am3");typeof navigator>"u"?(He.prototype.am=XU,$l=28):GU&&navigator.appName=="Microsoft Internet Explorer"?(He.prototype.am=Due,$l=30):GU&&navigator.appName!="Netscape"?(He.prototype.am=Rue,$l=26):(He.prototype.am=XU,$l=28);He.prototype.DB=$l;He.prototype.DM=(1<<$l)-1;He.prototype.DV=1<<$l;var BP=52;He.prototype.FV=Math.pow(2,BP);He.prototype.F1=BP-$l;He.prototype.F2=2*$l-BP;var _ue="0123456789abcdefghijklmnopqrstuvwxyz",KN=new Array,Zg,Lo;Zg=48;for(Lo=0;Lo<=9;++Lo)KN[Zg++]=Lo;Zg=97;for(Lo=10;Lo<36;++Lo)KN[Zg++]=Lo;Zg=65;for(Lo=10;Lo<36;++Lo)KN[Zg++]=Lo;function WU(r){return _ue.charAt(r)}o(WU,"int2char");function JU(r,e){var t=KN[r.charCodeAt(e)];return t??-1}o(JU,"intAt");function Oue(r){for(var e=this.t-1;e>=0;--e)r.data[e]=this.data[e];r.t=this.t,r.s=this.s}o(Oue,"bnpCopyTo");function Pue(r){this.t=1,this.s=r<0?-1:0,r>0?this.data[0]=r:r<-1?this.data[0]=r+this.DV:this.t=0}o(Pue,"bnpFromInt");function Pp(r){var e=Vr();return e.fromInt(r),e}o(Pp,"nbv");function Bue(r,e){var t;if(e==16)t=4;else if(e==8)t=3;else if(e==256)t=8;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else{this.fromRadix(r,e);return}this.t=0,this.s=0;for(var n=r.length,i=!1,s=0;--n>=0;){var a=t==8?r[n]&255:JU(r,n);if(a<0){r.charAt(n)=="-"&&(i=!0);continue}i=!1,s==0?this.data[this.t++]=a:s+t>this.DB?(this.data[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this.data[this.t++]=a>>this.DB-s):this.data[this.t-1]|=a<<s,s+=t,s>=this.DB&&(s-=this.DB)}t==8&&(r[0]&128)!=0&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&He.ZERO.subTo(this,this)}o(Bue,"bnpFromString");function Fue(){for(var r=this.s&this.DM;this.t>0&&this.data[this.t-1]==r;)--this.t}o(Fue,"bnpClamp");function Lue(r){if(this.s<0)return"-"+this.negate().toString(r);var e;if(r==16)e=4;else if(r==8)e=3;else if(r==2)e=1;else if(r==32)e=5;else if(r==4)e=2;else return this.toRadix(r);var t=(1<<e)-1,n,i=!1,s="",a=this.t,u=this.DB-a*this.DB%e;if(a-- >0)for(u<this.DB&&(n=this.data[a]>>u)>0&&(i=!0,s=WU(n));a>=0;)u<e?(n=(this.data[a]&(1<<u)-1)<<e-u,n|=this.data[--a]>>(u+=this.DB-e)):(n=this.data[a]>>(u-=e)&t,u<=0&&(u+=this.DB,--a)),n>0&&(i=!0),i&&(s+=WU(n));return i?s:"0"}o(Lue,"bnToString");function kue(){var r=Vr();return He.ZERO.subTo(this,r),r}o(kue,"bnNegate");function Vue(){return this.s<0?this.negate():this}o(Vue,"bnAbs");function jue(r){var e=this.s-r.s;if(e!=0)return e;var t=this.t;if(e=t-r.t,e!=0)return this.s<0?-e:e;for(;--t>=0;)if((e=this.data[t]-r.data[t])!=0)return e;return 0}o(jue,"bnCompareTo");function $N(r){var e=1,t;return(t=r>>>16)!=0&&(r=t,e+=16),(t=r>>8)!=0&&(r=t,e+=8),(t=r>>4)!=0&&(r=t,e+=4),(t=r>>2)!=0&&(r=t,e+=2),(t=r>>1)!=0&&(r=t,e+=1),e}o($N,"nbits");function Uue(){return this.t<=0?0:this.DB*(this.t-1)+$N(this.data[this.t-1]^this.s&this.DM)}o(Uue,"bnBitLength");function Mue(r,e){var t;for(t=this.t-1;t>=0;--t)e.data[t+r]=this.data[t];for(t=r-1;t>=0;--t)e.data[t]=0;e.t=this.t+r,e.s=this.s}o(Mue,"bnpDLShiftTo");function que(r,e){for(var t=r;t<this.t;++t)e.data[t-r]=this.data[t];e.t=Math.max(this.t-r,0),e.s=this.s}o(que,"bnpDRShiftTo");function Hue(r,e){var t=r%this.DB,n=this.DB-t,i=(1<<n)-1,s=Math.floor(r/this.DB),a=this.s<<t&this.DM,u;for(u=this.t-1;u>=0;--u)e.data[u+s+1]=this.data[u]>>n|a,a=(this.data[u]&i)<<t;for(u=s-1;u>=0;--u)e.data[u]=0;e.data[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()}o(Hue,"bnpLShiftTo");function zue(r,e){e.s=this.s;var t=Math.floor(r/this.DB);if(t>=this.t){e.t=0;return}var n=r%this.DB,i=this.DB-n,s=(1<<n)-1;e.data[0]=this.data[t]>>n;for(var a=t+1;a<this.t;++a)e.data[a-t-1]|=(this.data[a]&s)<<i,e.data[a-t]=this.data[a]>>n;n>0&&(e.data[this.t-t-1]|=(this.s&s)<<i),e.t=this.t-t,e.clamp()}o(zue,"bnpRShiftTo");function Kue(r,e){for(var t=0,n=0,i=Math.min(r.t,this.t);t<i;)n+=this.data[t]-r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;if(r.t<this.t){for(n-=r.s;t<this.t;)n+=this.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;t<r.t;)n-=r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n-=r.s}e.s=n<0?-1:0,n<-1?e.data[t++]=this.DV+n:n>0&&(e.data[t++]=n),e.t=t,e.clamp()}o(Kue,"bnpSubTo");function $ue(r,e){var t=this.abs(),n=r.abs(),i=t.t;for(e.t=i+n.t;--i>=0;)e.data[i]=0;for(i=0;i<n.t;++i)e.data[i+t.t]=t.am(0,n.data[i],e,i,0,t.t);e.s=0,e.clamp(),this.s!=r.s&&He.ZERO.subTo(e,e)}o($ue,"bnpMultiplyTo");function Gue(r){for(var e=this.abs(),t=r.t=2*e.t;--t>=0;)r.data[t]=0;for(t=0;t<e.t-1;++t){var n=e.am(t,e.data[t],r,2*t,0,1);(r.data[t+e.t]+=e.am(t+1,2*e.data[t],r,2*t+1,n,e.t-t-1))>=e.DV&&(r.data[t+e.t]-=e.DV,r.data[t+e.t+1]=1)}r.t>0&&(r.data[r.t-1]+=e.am(t,e.data[t],r,2*t,0,1)),r.s=0,r.clamp()}o(Gue,"bnpSquareTo");function Xue(r,e,t){var n=r.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t){e?.fromInt(0),t!=null&&this.copyTo(t);return}t==null&&(t=Vr());var s=Vr(),a=this.s,u=r.s,c=this.DB-$N(n.data[n.t-1]);c>0?(n.lShiftTo(c,s),i.lShiftTo(c,t)):(n.copyTo(s),i.copyTo(t));var l=s.t,p=s.data[l-1];if(p!=0){var m=p*(1<<this.F1)+(l>1?s.data[l-2]>>this.F2:0),g=this.FV/m,S=(1<<this.F1)/m,v=1<<this.F2,b=t.t,x=b-l,E=e??Vr();for(s.dlShiftTo(x,E),t.compareTo(E)>=0&&(t.data[t.t++]=1,t.subTo(E,t)),He.ONE.dlShiftTo(l,E),E.subTo(s,s);s.t<l;)s.data[s.t++]=0;for(;--x>=0;){var N=t.data[--b]==p?this.DM:Math.floor(t.data[b]*g+(t.data[b-1]+v)*S);if((t.data[b]+=s.am(0,N,t,x,0,l))<N)for(s.dlShiftTo(x,E),t.subTo(E,t);t.data[b]<--N;)t.subTo(E,t)}e!=null&&(t.drShiftTo(l,e),a!=u&&He.ZERO.subTo(e,e)),t.t=l,t.clamp(),c>0&&t.rShiftTo(c,t),a<0&&He.ZERO.subTo(t,t)}}}o(Xue,"bnpDivRemTo");function Wue(r){var e=Vr();return this.abs().divRemTo(r,null,e),this.s<0&&e.compareTo(He.ZERO)>0&&r.subTo(e,e),e}o(Wue,"bnMod");function Qd(r){this.m=r}o(Qd,"Classic");function Jue(r){return r.s<0||r.compareTo(this.m)>=0?r.mod(this.m):r}o(Jue,"cConvert");function Que(r){return r}o(Que,"cRevert");function Yue(r){r.divRemTo(this.m,null,r)}o(Yue,"cReduce");function Zue(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(Zue,"cMulTo");function ece(r,e){r.squareTo(e),this.reduce(e)}o(ece,"cSqrTo");Qd.prototype.convert=Jue;Qd.prototype.revert=Que;Qd.prototype.reduce=Yue;Qd.prototype.mulTo=Zue;Qd.prototype.sqrTo=ece;function tce(){if(this.t<1)return 0;var r=this.data[0];if((r&1)==0)return 0;var e=r&3;return e=e*(2-(r&15)*e)&15,e=e*(2-(r&255)*e)&255,e=e*(2-((r&65535)*e&65535))&65535,e=e*(2-r*e%this.DV)%this.DV,e>0?this.DV-e:-e}o(tce,"bnpInvDigit");function Yd(r){this.m=r,this.mp=r.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<r.DB-15)-1,this.mt2=2*r.t}o(Yd,"Montgomery");function rce(r){var e=Vr();return r.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),r.s<0&&e.compareTo(He.ZERO)>0&&this.m.subTo(e,e),e}o(rce,"montConvert");function nce(r){var e=Vr();return r.copyTo(e),this.reduce(e),e}o(nce,"montRevert");function ice(r){for(;r.t<=this.mt2;)r.data[r.t++]=0;for(var e=0;e<this.m.t;++e){var t=r.data[e]&32767,n=t*this.mpl+((t*this.mph+(r.data[e]>>15)*this.mpl&this.um)<<15)&r.DM;for(t=e+this.m.t,r.data[t]+=this.m.am(0,n,r,e,0,this.m.t);r.data[t]>=r.DV;)r.data[t]-=r.DV,r.data[++t]++}r.clamp(),r.drShiftTo(this.m.t,r),r.compareTo(this.m)>=0&&r.subTo(this.m,r)}o(ice,"montReduce");function sce(r,e){r.squareTo(e),this.reduce(e)}o(sce,"montSqrTo");function ace(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(ace,"montMulTo");Yd.prototype.convert=rce;Yd.prototype.revert=nce;Yd.prototype.reduce=ice;Yd.prototype.mulTo=ace;Yd.prototype.sqrTo=sce;function oce(){return(this.t>0?this.data[0]&1:this.s)==0}o(oce,"bnpIsEven");function uce(r,e){if(r>4294967295||r<1)return He.ONE;var t=Vr(),n=Vr(),i=e.convert(this),s=$N(r)-1;for(i.copyTo(t);--s>=0;)if(e.sqrTo(t,n),(r&1<<s)>0)e.mulTo(n,i,t);else{var a=t;t=n,n=a}return e.revert(t)}o(uce,"bnpExp");function cce(r,e){var t;return r<256||e.isEven()?t=new Qd(e):t=new Yd(e),this.exp(r,t)}o(cce,"bnModPowInt");He.prototype.copyTo=Oue;He.prototype.fromInt=Pue;He.prototype.fromString=Bue;He.prototype.clamp=Fue;He.prototype.dlShiftTo=Mue;He.prototype.drShiftTo=que;He.prototype.lShiftTo=Hue;He.prototype.rShiftTo=zue;He.prototype.subTo=Kue;He.prototype.multiplyTo=$ue;He.prototype.squareTo=Gue;He.prototype.divRemTo=Xue;He.prototype.invDigit=tce;He.prototype.isEven=oce;He.prototype.exp=uce;He.prototype.toString=Lue;He.prototype.negate=kue;He.prototype.abs=Vue;He.prototype.compareTo=jue;He.prototype.bitLength=Uue;He.prototype.mod=Wue;He.prototype.modPowInt=cce;He.ZERO=Pp(0);He.ONE=Pp(1);function lce(){var r=Vr();return this.copyTo(r),r}o(lce,"bnClone");function fce(){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]}o(fce,"bnIntValue");function pce(){return this.t==0?this.s:this.data[0]<<24>>24}o(pce,"bnByteValue");function hce(){return this.t==0?this.s:this.data[0]<<16>>16}o(hce,"bnShortValue");function dce(r){return Math.floor(Math.LN2*this.DB/Math.log(r))}o(dce,"bnpChunkSize");function mce(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}o(mce,"bnSigNum");function gce(r){if(r==null&&(r=10),this.signum()==0||r<2||r>36)return"0";var e=this.chunkSize(r),t=Math.pow(r,e),n=Pp(t),i=Vr(),s=Vr(),a="";for(this.divRemTo(n,i,s);i.signum()>0;)a=(t+s.intValue()).toString(r).substr(1)+a,i.divRemTo(n,i,s);return s.intValue().toString(r)+a}o(gce,"bnpToRadix");function vce(r,e){this.fromInt(0),e==null&&(e=10);for(var t=this.chunkSize(e),n=Math.pow(e,t),i=!1,s=0,a=0,u=0;u<r.length;++u){var c=JU(r,u);if(c<0){r.charAt(u)=="-"&&this.signum()==0&&(i=!0);continue}a=e*a+c,++s>=t&&(this.dMultiply(n),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),i&&He.ZERO.subTo(this,this)}o(vce,"bnpFromRadix");function yce(r,e,t){if(typeof e=="number")if(r<2)this.fromInt(1);else for(this.fromNumber(r,t),this.testBit(r-1)||this.bitwiseTo(He.ONE.shiftLeft(r-1),FP,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>r&&this.subTo(He.ONE.shiftLeft(r-1),this);else{var n=new Array,i=r&7;n.length=(r>>3)+1,e.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}}o(yce,"bnpFromNumber");function Sce(){var r=this.t,e=new Array;e[0]=this.s;var t=this.DB-r*this.DB%8,n,i=0;if(r-- >0)for(t<this.DB&&(n=this.data[r]>>t)!=(this.s&this.DM)>>t&&(e[i++]=n|this.s<<this.DB-t);r>=0;)t<8?(n=(this.data[r]&(1<<t)-1)<<8-t,n|=this.data[--r]>>(t+=this.DB-8)):(n=this.data[r]>>(t-=8)&255,t<=0&&(t+=this.DB,--r)),(n&128)!=0&&(n|=-256),i==0&&(this.s&128)!=(n&128)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e}o(Sce,"bnToByteArray");function xce(r){return this.compareTo(r)==0}o(xce,"bnEquals");function bce(r){return this.compareTo(r)<0?this:r}o(bce,"bnMin");function wce(r){return this.compareTo(r)>0?this:r}o(wce,"bnMax");function Cce(r,e,t){var n,i,s=Math.min(r.t,this.t);for(n=0;n<s;++n)t.data[n]=e(this.data[n],r.data[n]);if(r.t<this.t){for(i=r.s&this.DM,n=s;n<this.t;++n)t.data[n]=e(this.data[n],i);t.t=this.t}else{for(i=this.s&this.DM,n=s;n<r.t;++n)t.data[n]=e(i,r.data[n]);t.t=r.t}t.s=e(this.s,r.s),t.clamp()}o(Cce,"bnpBitwiseTo");function Ece(r,e){return r&e}o(Ece,"op_and");function Ace(r){var e=Vr();return this.bitwiseTo(r,Ece,e),e}o(Ace,"bnAnd");function FP(r,e){return r|e}o(FP,"op_or");function Nce(r){var e=Vr();return this.bitwiseTo(r,FP,e),e}o(Nce,"bnOr");function QU(r,e){return r^e}o(QU,"op_xor");function Ice(r){var e=Vr();return this.bitwiseTo(r,QU,e),e}o(Ice,"bnXor");function YU(r,e){return r&~e}o(YU,"op_andnot");function Tce(r){var e=Vr();return this.bitwiseTo(r,YU,e),e}o(Tce,"bnAndNot");function Rce(){for(var r=Vr(),e=0;e<this.t;++e)r.data[e]=this.DM&~this.data[e];return r.t=this.t,r.s=~this.s,r}o(Rce,"bnNot");function Dce(r){var e=Vr();return r<0?this.rShiftTo(-r,e):this.lShiftTo(r,e),e}o(Dce,"bnShiftLeft");function _ce(r){var e=Vr();return r<0?this.lShiftTo(-r,e):this.rShiftTo(r,e),e}o(_ce,"bnShiftRight");function Oce(r){if(r==0)return-1;var e=0;return(r&65535)==0&&(r>>=16,e+=16),(r&255)==0&&(r>>=8,e+=8),(r&15)==0&&(r>>=4,e+=4),(r&3)==0&&(r>>=2,e+=2),(r&1)==0&&++e,e}o(Oce,"lbit");function Pce(){for(var r=0;r<this.t;++r)if(this.data[r]!=0)return r*this.DB+Oce(this.data[r]);return this.s<0?this.t*this.DB:-1}o(Pce,"bnGetLowestSetBit");function Bce(r){for(var e=0;r!=0;)r&=r-1,++e;return e}o(Bce,"cbit");function Fce(){for(var r=0,e=this.s&this.DM,t=0;t<this.t;++t)r+=Bce(this.data[t]^e);return r}o(Fce,"bnBitCount");function Lce(r){var e=Math.floor(r/this.DB);return e>=this.t?this.s!=0:(this.data[e]&1<<r%this.DB)!=0}o(Lce,"bnTestBit");function kce(r,e){var t=He.ONE.shiftLeft(r);return this.bitwiseTo(t,e,t),t}o(kce,"bnpChangeBit");function Vce(r){return this.changeBit(r,FP)}o(Vce,"bnSetBit");function jce(r){return this.changeBit(r,YU)}o(jce,"bnClearBit");function Uce(r){return this.changeBit(r,QU)}o(Uce,"bnFlipBit");function Mce(r,e){for(var t=0,n=0,i=Math.min(r.t,this.t);t<i;)n+=this.data[t]+r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;if(r.t<this.t){for(n+=r.s;t<this.t;)n+=this.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;t<r.t;)n+=r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=r.s}e.s=n<0?-1:0,n>0?e.data[t++]=n:n<-1&&(e.data[t++]=this.DV+n),e.t=t,e.clamp()}o(Mce,"bnpAddTo");function qce(r){var e=Vr();return this.addTo(r,e),e}o(qce,"bnAdd");function Hce(r){var e=Vr();return this.subTo(r,e),e}o(Hce,"bnSubtract");function zce(r){var e=Vr();return this.multiplyTo(r,e),e}o(zce,"bnMultiply");function Kce(r){var e=Vr();return this.divRemTo(r,e,null),e}o(Kce,"bnDivide");function $ce(r){var e=Vr();return this.divRemTo(r,null,e),e}o($ce,"bnRemainder");function Gce(r){var e=Vr(),t=Vr();return this.divRemTo(r,e,t),new Array(e,t)}o(Gce,"bnDivideAndRemainder");function Xce(r){this.data[this.t]=this.am(0,r-1,this,0,0,this.t),++this.t,this.clamp()}o(Xce,"bnpDMultiply");function Wce(r,e){if(r!=0){for(;this.t<=e;)this.data[this.t++]=0;for(this.data[e]+=r;this.data[e]>=this.DV;)this.data[e]-=this.DV,++e>=this.t&&(this.data[this.t++]=0),++this.data[e]}}o(Wce,"bnpDAddOffset");function Dx(){}o(Dx,"NullExp");function ZU(r){return r}o(ZU,"nNop");function Jce(r,e,t){r.multiplyTo(e,t)}o(Jce,"nMulTo");function Qce(r,e){r.squareTo(e)}o(Qce,"nSqrTo");Dx.prototype.convert=ZU;Dx.prototype.revert=ZU;Dx.prototype.mulTo=Jce;Dx.prototype.sqrTo=Qce;function Yce(r){return this.exp(r,new Dx)}o(Yce,"bnPow");function Zce(r,e,t){var n=Math.min(this.t+r.t,e);for(t.s=0,t.t=n;n>0;)t.data[--n]=0;var i;for(i=t.t-this.t;n<i;++n)t.data[n+this.t]=this.am(0,r.data[n],t,n,0,this.t);for(i=Math.min(r.t,e);n<i;++n)this.am(0,r.data[n],t,n,0,e-n);t.clamp()}o(Zce,"bnpMultiplyLowerTo");function ele(r,e,t){--e;var n=t.t=this.t+r.t-e;for(t.s=0;--n>=0;)t.data[n]=0;for(n=Math.max(e-this.t,0);n<r.t;++n)t.data[this.t+n-e]=this.am(e-n,r.data[n],t,0,0,this.t+n-e);t.clamp(),t.drShiftTo(1,t)}o(ele,"bnpMultiplyUpperTo");function ev(r){this.r2=Vr(),this.q3=Vr(),He.ONE.dlShiftTo(2*r.t,this.r2),this.mu=this.r2.divide(r),this.m=r}o(ev,"Barrett");function tle(r){if(r.s<0||r.t>2*this.m.t)return r.mod(this.m);if(r.compareTo(this.m)<0)return r;var e=Vr();return r.copyTo(e),this.reduce(e),e}o(tle,"barrettConvert");function rle(r){return r}o(rle,"barrettRevert");function nle(r){for(r.drShiftTo(this.m.t-1,this.r2),r.t>this.m.t+1&&(r.t=this.m.t+1,r.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);r.compareTo(this.r2)<0;)r.dAddOffset(1,this.m.t+1);for(r.subTo(this.r2,r);r.compareTo(this.m)>=0;)r.subTo(this.m,r)}o(nle,"barrettReduce");function ile(r,e){r.squareTo(e),this.reduce(e)}o(ile,"barrettSqrTo");function sle(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(sle,"barrettMulTo");ev.prototype.convert=tle;ev.prototype.revert=rle;ev.prototype.reduce=nle;ev.prototype.mulTo=sle;ev.prototype.sqrTo=ile;function ale(r,e){var t=r.bitLength(),n,i=Pp(1),s;if(t<=0)return i;t<18?n=1:t<48?n=3:t<144?n=4:t<768?n=5:n=6,t<8?s=new Qd(e):e.isEven()?s=new ev(e):s=new Yd(e);var a=new Array,u=3,c=n-1,l=(1<<n)-1;if(a[1]=s.convert(this),n>1){var p=Vr();for(s.sqrTo(a[1],p);u<=l;)a[u]=Vr(),s.mulTo(p,a[u-2],a[u]),u+=2}var m=r.t-1,g,S=!0,v=Vr(),b;for(t=$N(r.data[m])-1;m>=0;){for(t>=c?g=r.data[m]>>t-c&l:(g=(r.data[m]&(1<<t+1)-1)<<c-t,m>0&&(g|=r.data[m-1]>>this.DB+t-c)),u=n;(g&1)==0;)g>>=1,--u;if((t-=u)<0&&(t+=this.DB,--m),S)a[g].copyTo(i),S=!1;else{for(;u>1;)s.sqrTo(i,v),s.sqrTo(v,i),u-=2;u>0?s.sqrTo(i,v):(b=i,i=v,v=b),s.mulTo(v,a[g],i)}for(;m>=0&&(r.data[m]&1<<t)==0;)s.sqrTo(i,v),b=i,i=v,v=b,--t<0&&(t=this.DB-1,--m)}return s.revert(i)}o(ale,"bnModPow");function ole(r){var e=this.s<0?this.negate():this.clone(),t=r.s<0?r.negate():r.clone();if(e.compareTo(t)<0){var n=e;e=t,t=n}var i=e.getLowestSetBit(),s=t.getLowestSetBit();if(s<0)return e;for(i<s&&(s=i),s>0&&(e.rShiftTo(s,e),t.rShiftTo(s,t));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),e.compareTo(t)>=0?(e.subTo(t,e),e.rShiftTo(1,e)):(t.subTo(e,t),t.rShiftTo(1,t));return s>0&&t.lShiftTo(s,t),t}o(ole,"bnGCD");function ule(r){if(r<=0)return 0;var e=this.DV%r,t=this.s<0?r-1:0;if(this.t>0)if(e==0)t=this.data[0]%r;else for(var n=this.t-1;n>=0;--n)t=(e*t+this.data[n])%r;return t}o(ule,"bnpModInt");function cle(r){var e=r.isEven();if(this.isEven()&&e||r.signum()==0)return He.ZERO;for(var t=r.clone(),n=this.clone(),i=Pp(1),s=Pp(0),a=Pp(0),u=Pp(1);t.signum()!=0;){for(;t.isEven();)t.rShiftTo(1,t),e?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(r,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(r,s),s.rShiftTo(1,s);for(;n.isEven();)n.rShiftTo(1,n),e?((!a.isEven()||!u.isEven())&&(a.addTo(this,a),u.subTo(r,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(r,u),u.rShiftTo(1,u);t.compareTo(n)>=0?(t.subTo(n,t),e&&i.subTo(a,i),s.subTo(u,s)):(n.subTo(t,n),e&&a.subTo(i,a),u.subTo(s,u))}if(n.compareTo(He.ONE)!=0)return He.ZERO;if(u.compareTo(r)>=0)return u.subtract(r);if(u.signum()<0)u.addTo(r,u);else return u;return u.signum()<0?u.add(r):u}o(cle,"bnModInverse");var Iu=[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],lle=(1<<26)/Iu[Iu.length-1];function fle(r){var e,t=this.abs();if(t.t==1&&t.data[0]<=Iu[Iu.length-1]){for(e=0;e<Iu.length;++e)if(t.data[0]==Iu[e])return!0;return!1}if(t.isEven())return!1;for(e=1;e<Iu.length;){for(var n=Iu[e],i=e+1;i<Iu.length&&n<lle;)n*=Iu[i++];for(n=t.modInt(n);e<i;)if(n%Iu[e++]==0)return!1}return t.millerRabin(r)}o(fle,"bnIsProbablePrime");function ple(r){var e=this.subtract(He.ONE),t=e.getLowestSetBit();if(t<=0)return!1;for(var n=e.shiftRight(t),i=hle(),s,a=0;a<r;++a){do s=new He(this.bitLength(),i);while(s.compareTo(He.ONE)<=0||s.compareTo(e)>=0);var u=s.modPow(n,this);if(u.compareTo(He.ONE)!=0&&u.compareTo(e)!=0){for(var c=1;c++<t&&u.compareTo(e)!=0;)if(u=u.modPowInt(2,this),u.compareTo(He.ONE)==0)return!1;if(u.compareTo(e)!=0)return!1}}return!0}o(ple,"bnpMillerRabin");function hle(){return{nextBytes:o(function(r){for(var e=0;e<r.length;++e)r[e]=Math.floor(Math.random()*256)},"nextBytes")}}o(hle,"bnGetPrng");He.prototype.chunkSize=dce;He.prototype.toRadix=gce;He.prototype.fromRadix=vce;He.prototype.fromNumber=yce;He.prototype.bitwiseTo=Cce;He.prototype.changeBit=kce;He.prototype.addTo=Mce;He.prototype.dMultiply=Xce;He.prototype.dAddOffset=Wce;He.prototype.multiplyLowerTo=Zce;He.prototype.multiplyUpperTo=ele;He.prototype.modInt=ule;He.prototype.millerRabin=ple;He.prototype.clone=lce;He.prototype.intValue=fce;He.prototype.byteValue=pce;He.prototype.shortValue=hce;He.prototype.signum=mce;He.prototype.toByteArray=Sce;He.prototype.equals=xce;He.prototype.min=bce;He.prototype.max=wce;He.prototype.and=Ace;He.prototype.or=Nce;He.prototype.xor=Ice;He.prototype.andNot=Tce;He.prototype.not=Rce;He.prototype.shiftLeft=Dce;He.prototype.shiftRight=_ce;He.prototype.getLowestSetBit=Pce;He.prototype.bitCount=Fce;He.prototype.testBit=Lce;He.prototype.setBit=Vce;He.prototype.clearBit=jce;He.prototype.flipBit=Uce;He.prototype.add=qce;He.prototype.subtract=Hce;He.prototype.multiply=zce;He.prototype.divide=Kce;He.prototype.remainder=$ce;He.prototype.divideAndRemainder=Gce;He.prototype.modPow=ale;He.prototype.modInverse=cle;He.prototype.pow=Yce;He.prototype.gcd=ole;He.prototype.isProbablePrime=fle});var tv=Z((YNe,iM)=>{"use strict";var Rc=pr();Ec();kr();var rM=iM.exports=Rc.sha1=Rc.sha1||{};Rc.md.sha1=Rc.md.algorithms.sha1=rM;rM.create=function(){nM||dle();var r=null,e=Rc.util.createBuffer(),t=new Array(80),n={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Rc.util.createBuffer(),r={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Rc.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),tM(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Rc.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(LP.substr(0,n.blockLength-a));for(var u,c,l=n.fullMessageLength[0]*8,p=0;p<n.fullMessageLength.length-1;++p)u=n.fullMessageLength[p+1]*8,c=u/4294967296>>>0,l+=c,i.putInt32(l>>>0),l=u>>>0;i.putInt32(l);var m={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3,h4:r.h4};tM(m,t,i);var g=Rc.util.createBuffer();return g.putInt32(m.h0),g.putInt32(m.h1),g.putInt32(m.h2),g.putInt32(m.h3),g.putInt32(m.h4),g},n};var LP=null,nM=!1;function dle(){LP="\x80",LP+=Rc.util.fillString("\0",64),nM=!0}o(dle,"_init");function tM(r,e,t){for(var n,i,s,a,u,c,l,p,m=t.length();m>=64;){for(i=r.h0,s=r.h1,a=r.h2,u=r.h3,c=r.h4,p=0;p<16;++p)n=t.getInt32(),e[p]=n,l=u^s&(a^u),n=(i<<5|i>>>27)+l+c+1518500249+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<20;++p)n=e[p-3]^e[p-8]^e[p-14]^e[p-16],n=n<<1|n>>>31,e[p]=n,l=u^s&(a^u),n=(i<<5|i>>>27)+l+c+1518500249+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<32;++p)n=e[p-3]^e[p-8]^e[p-14]^e[p-16],n=n<<1|n>>>31,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+1859775393+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<40;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+1859775393+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<60;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s&a|u&(s^a),n=(i<<5|i>>>27)+l+c+2400959708+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<80;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+3395469782+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;r.h0=r.h0+i|0,r.h1=r.h1+s|0,r.h2=r.h2+a|0,r.h3=r.h3+u|0,r.h4=r.h4+c|0,m-=64}}o(tM,"_update")});var kP=Z((e2e,aM)=>{"use strict";var Dc=pr();kr();Fo();tv();var sM=aM.exports=Dc.pkcs1=Dc.pkcs1||{};sM.encode_rsa_oaep=function(r,e,t){var n,i,s,a;typeof t=="string"?(n=t,i=arguments[3]||void 0,s=arguments[4]||void 0):t&&(n=t.label||void 0,i=t.seed||void 0,s=t.md||void 0,t.mgf1&&t.mgf1.md&&(a=t.mgf1.md)),s?s.start():s=Dc.md.sha1.create(),a||(a=s);var u=Math.ceil(r.n.bitLength()/8),c=u-2*s.digestLength-2;if(e.length>c){var l=new Error("RSAES-OAEP input message length is too long.");throw l.length=e.length,l.maxLength=c,l}n||(n=""),s.update(n,"raw");for(var p=s.digest(),m="",g=c-e.length,S=0;S<g;S++)m+="\0";var v=p.getBytes()+m+""+e;if(!i)i=Dc.random.getBytes(s.digestLength);else if(i.length!==s.digestLength){var l=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw l.seedLength=i.length,l.digestLength=s.digestLength,l}var b=GN(i,u-s.digestLength-1,a),x=Dc.util.xorBytes(v,b,v.length),E=GN(x,s.digestLength,a),N=Dc.util.xorBytes(i,E,i.length);return"\0"+N+x};sM.decode_rsa_oaep=function(r,e,t){var n,i,s;typeof t=="string"?(n=t,i=arguments[3]||void 0):t&&(n=t.label||void 0,i=t.md||void 0,t.mgf1&&t.mgf1.md&&(s=t.mgf1.md));var a=Math.ceil(r.n.bitLength()/8);if(e.length!==a){var x=new Error("RSAES-OAEP encoded message length is invalid.");throw x.length=e.length,x.expectedLength=a,x}if(i===void 0?i=Dc.md.sha1.create():i.start(),s||(s=i),a<2*i.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");n||(n=""),i.update(n,"raw");for(var u=i.digest().getBytes(),c=e.charAt(0),l=e.substring(1,i.digestLength+1),p=e.substring(1+i.digestLength),m=GN(p,i.digestLength,s),g=Dc.util.xorBytes(l,m,l.length),S=GN(g,a-i.digestLength-1,s),v=Dc.util.xorBytes(p,S,p.length),b=v.substring(0,i.digestLength),x=c!=="\0",E=0;E<i.digestLength;++E)x|=u.charAt(E)!==b.charAt(E);for(var N=1,w=i.digestLength,C=i.digestLength;C<v.length;C++){var A=v.charCodeAt(C),R=A&1^1,M=N?65534:0;x|=A&M,N=N&R,w+=N}if(x||v.charCodeAt(w)!==1)throw new Error("Invalid RSAES-OAEP padding.");return v.substring(w+1)};function GN(r,e,t){t||(t=Dc.md.sha1.create());for(var n="",i=Math.ceil(e/t.digestLength),s=0;s<i;++s){var a=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,s&255);t.start(),t.update(r+a),n+=t.digest().getBytes()}return n.substring(0,e)}o(GN,"rsa_mgf1")});var jP=Z((r2e,VP)=>{"use strict";var Bp=pr();kr();_x();Fo();(function(){if(Bp.prime){VP.exports=Bp.prime;return}var r=VP.exports=Bp.prime=Bp.prime||{},e=Bp.jsbn.BigInteger,t=[6,4,2,4,2,4,6,2],n=new e(null);n.fromInt(30);var i=o(function(m,g){return m|g},"op_or");r.generateProbablePrime=function(m,g,S){typeof g=="function"&&(S=g,g={}),g=g||{};var v=g.algorithm||"PRIMEINC";typeof v=="string"&&(v={name:v}),v.options=v.options||{};var b=g.prng||Bp.random,x={nextBytes:o(function(E){for(var N=b.getBytesSync(E.length),w=0;w<E.length;++w)E[w]=N.charCodeAt(w)},"nextBytes")};if(v.name==="PRIMEINC")return s(m,x,v.options,S);throw new Error("Invalid prime generation algorithm: "+v.name)};function s(m,g,S,v){return"workers"in S?c(m,g,S,v):a(m,g,S,v)}o(s,"primeincFindPrime");function a(m,g,S,v){var b=l(m,g),x=0,E=p(b.bitLength());"millerRabinTests"in S&&(E=S.millerRabinTests);var N=10;"maxBlockTime"in S&&(N=S.maxBlockTime),u(b,m,g,x,E,N,v)}o(a,"primeincFindPrimeWithoutWorkers");function u(m,g,S,v,b,x,E){var N=+new Date;do{if(m.bitLength()>g&&(m=l(g,S)),m.isProbablePrime(b))return E(null,m);m.dAddOffset(t[v++%8],0)}while(x<0||+new Date-N<x);Bp.util.setImmediate(function(){u(m,g,S,v,b,x,E)})}o(u,"_primeinc");function c(m,g,S,v){if(typeof Worker>"u")return a(m,g,S,v);var b=l(m,g),x=S.workers,E=S.workLoad||100,N=E*30/8,w=S.workerScript||"forge/prime.worker.js";if(x===-1)return Bp.util.estimateCores(function(A,R){A&&(R=2),x=R-1,C()});C();function C(){x=Math.max(1,x);for(var A=[],R=0;R<x;++R)A[R]=new Worker(w);for(var M=x,R=0;R<x;++R)A[R].addEventListener("message",H);var _=!1;function H(z){if(!_){--M;var K=z.data;if(K.found){for(var X=0;X<A.length;++X)A[X].terminate();return _=!0,v(null,new e(K.prime,16))}b.bitLength()>m&&(b=l(m,g));var ye=b.toString(16);z.target.postMessage({hex:ye,workLoad:E}),b.dAddOffset(N,0)}}o(H,"workerMessage")}o(C,"generate")}o(c,"primeincFindPrimeWithWorkers");function l(m,g){var S=new e(m,g),v=m-1;return S.testBit(v)||S.bitwiseTo(e.ONE.shiftLeft(v),i,S),S.dAddOffset(31-S.mod(n).byteValue(),0),S}o(l,"generateRandom");function p(m){return m<=100?27:m<=150?18:m<=200?15:m<=250?12:m<=300?9:m<=350?8:m<=400?7:m<=500?6:m<=600?5:m<=800?4:m<=1250?3:2}o(p,"getMillerRabinTests")})()});var Ox=Z((i2e,hM)=>{"use strict";var Rt=pr();Nu();_x();Op();kP();jP();Fo();kr();typeof _r>"u"&&(_r=Rt.jsbn.BigInteger);var _r,UP=Rt.util.isNodejs?require("crypto"):null,be=Rt.asn1,ko=Rt.util;Rt.pki=Rt.pki||{};hM.exports=Rt.pki.rsa=Rt.rsa=Rt.rsa||{};var rr=Rt.pki,mle=[6,4,2,4,2,4,6,2],gle={name:"PrivateKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},vle={name:"RSAPrivateKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},yle={name:"RSAPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},Sle=Rt.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},xle={name:"DigestInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:be.Class.UNIVERSAL,type:be.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:be.Class.UNIVERSAL,type:be.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},ble=o(function(r){var e;if(r.algorithm in rr.oids)e=rr.oids[r.algorithm];else{var t=new Error("Unknown message digest algorithm.");throw t.algorithm=r.algorithm,t}var n=be.oidToDer(e).getBytes(),i=be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[]),s=be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[]);s.value.push(be.create(be.Class.UNIVERSAL,be.Type.OID,!1,n)),s.value.push(be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,""));var a=be.create(be.Class.UNIVERSAL,be.Type.OCTETSTRING,!1,r.digest().getBytes());return i.value.push(s),i.value.push(a),be.toDer(i).getBytes()},"emsaPkcs1v15encode"),fM=o(function(r,e,t){if(t)return r.modPow(e.e,e.n);if(!e.p||!e.q)return r.modPow(e.d,e.n);e.dP||(e.dP=e.d.mod(e.p.subtract(_r.ONE))),e.dQ||(e.dQ=e.d.mod(e.q.subtract(_r.ONE))),e.qInv||(e.qInv=e.q.modInverse(e.p));var n;do n=new _r(Rt.util.bytesToHex(Rt.random.getBytes(e.n.bitLength()/8)),16);while(n.compareTo(e.n)>=0||!n.gcd(e.n).equals(_r.ONE));r=r.multiply(n.modPow(e.e,e.n)).mod(e.n);for(var i=r.mod(e.p).modPow(e.dP,e.p),s=r.mod(e.q).modPow(e.dQ,e.q);i.compareTo(s)<0;)i=i.add(e.p);var a=i.subtract(s).multiply(e.qInv).mod(e.p).multiply(e.q).add(s);return a=a.multiply(n.modInverse(e.n)).mod(e.n),a},"_modPow");rr.rsa.encrypt=function(r,e,t){var n=t,i,s=Math.ceil(e.n.bitLength()/8);t!==!1&&t!==!0?(n=t===2,i=pM(r,e,t)):(i=Rt.util.createBuffer(),i.putBytes(r));for(var a=new _r(i.toHex(),16),u=fM(a,e,n),c=u.toString(16),l=Rt.util.createBuffer(),p=s-Math.ceil(c.length/2);p>0;)l.putByte(0),--p;return l.putBytes(Rt.util.hexToBytes(c)),l.getBytes()};rr.rsa.decrypt=function(r,e,t,n){var i=Math.ceil(e.n.bitLength()/8);if(r.length!==i){var s=new Error("Encrypted message length is invalid.");throw s.length=r.length,s.expected=i,s}var a=new _r(Rt.util.createBuffer(r).toHex(),16);if(a.compareTo(e.n)>=0)throw new Error("Encrypted message is invalid.");for(var u=fM(a,e,t),c=u.toString(16),l=Rt.util.createBuffer(),p=i-Math.ceil(c.length/2);p>0;)l.putByte(0),--p;return l.putBytes(Rt.util.hexToBytes(c)),n!==!1?XN(l.getBytes(),e,t):l.getBytes()};rr.rsa.createKeyPairGenerationState=function(r,e,t){typeof r=="string"&&(r=parseInt(r,10)),r=r||2048,t=t||{};var n=t.prng||Rt.random,i={nextBytes:o(function(u){for(var c=n.getBytesSync(u.length),l=0;l<u.length;++l)u[l]=c.charCodeAt(l)},"nextBytes")},s=t.algorithm||"PRIMEINC",a;if(s==="PRIMEINC")a={algorithm:s,state:0,bits:r,rng:i,eInt:e||65537,e:new _r(null),p:null,q:null,qBits:r>>1,pBits:r-(r>>1),pqState:0,num:null,keys:null},a.e.fromInt(a.eInt);else throw new Error("Invalid key generation algorithm: "+s);return a};rr.rsa.stepKeyPairGenerationState=function(r,e){"algorithm"in r||(r.algorithm="PRIMEINC");var t=new _r(null);t.fromInt(30);for(var n=0,i=o(function(m,g){return m|g},"op_or"),s=+new Date,a,u=0;r.keys===null&&(e<=0||u<e);){if(r.state===0){var c=r.p===null?r.pBits:r.qBits,l=c-1;r.pqState===0?(r.num=new _r(c,r.rng),r.num.testBit(l)||r.num.bitwiseTo(_r.ONE.shiftLeft(l),i,r.num),r.num.dAddOffset(31-r.num.mod(t).byteValue(),0),n=0,++r.pqState):r.pqState===1?r.num.bitLength()>c?r.pqState=0:r.num.isProbablePrime(Cle(r.num.bitLength()))?++r.pqState:r.num.dAddOffset(mle[n++%8],0):r.pqState===2?r.pqState=r.num.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)===0?3:0:r.pqState===3&&(r.pqState=0,r.p===null?r.p=r.num:r.q=r.num,r.p!==null&&r.q!==null&&++r.state,r.num=null)}else if(r.state===1)r.p.compareTo(r.q)<0&&(r.num=r.p,r.p=r.q,r.q=r.num),++r.state;else if(r.state===2)r.p1=r.p.subtract(_r.ONE),r.q1=r.q.subtract(_r.ONE),r.phi=r.p1.multiply(r.q1),++r.state;else if(r.state===3)r.phi.gcd(r.e).compareTo(_r.ONE)===0?++r.state:(r.p=null,r.q=null,r.state=0);else if(r.state===4)r.n=r.p.multiply(r.q),r.n.bitLength()===r.bits?++r.state:(r.q=null,r.state=0);else if(r.state===5){var p=r.e.modInverse(r.phi);r.keys={privateKey:rr.rsa.setPrivateKey(r.n,r.e,p,r.p,r.q,p.mod(r.p1),p.mod(r.q1),r.q.modInverse(r.p)),publicKey:rr.rsa.setPublicKey(r.n,r.e)}}a=+new Date,u+=a-s,s=a}return r.keys!==null};rr.rsa.generateKeyPair=function(r,e,t,n){if(arguments.length===1?typeof r=="object"?(t=r,r=void 0):typeof r=="function"&&(n=r,r=void 0):arguments.length===2?typeof r=="number"?typeof e=="function"?(n=e,e=void 0):typeof e!="number"&&(t=e,e=void 0):(t=r,n=e,r=void 0,e=void 0):arguments.length===3&&(typeof e=="number"?typeof t=="function"&&(n=t,t=void 0):(n=t,t=e,e=void 0)),t=t||{},r===void 0&&(r=t.bits||2048),e===void 0&&(e=t.e||65537),!Rt.options.usePureJavaScript&&!t.prng&&r>=256&&r<=16384&&(e===65537||e===3)){if(n){if(oM("generateKeyPair"))return UP.generateKeyPair("rsa",{modulusLength:r,publicExponent:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(u,c,l){if(u)return n(u);n(null,{privateKey:rr.privateKeyFromPem(l),publicKey:rr.publicKeyFromPem(c)})});if(uM("generateKey")&&uM("exportKey"))return ko.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:r,publicExponent:lM(e),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(u){return ko.globalScope.crypto.subtle.exportKey("pkcs8",u.privateKey)}).then(void 0,function(u){n(u)}).then(function(u){if(u){var c=rr.privateKeyFromAsn1(be.fromDer(Rt.util.createBuffer(u)));n(null,{privateKey:c,publicKey:rr.setRsaPublicKey(c.n,c.e)})}});if(cM("generateKey")&&cM("exportKey")){var i=ko.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:r,publicExponent:lM(e),hash:{name:"SHA-256"}},!0,["sign","verify"]);i.oncomplete=function(u){var c=u.target.result,l=ko.globalScope.msCrypto.subtle.exportKey("pkcs8",c.privateKey);l.oncomplete=function(p){var m=p.target.result,g=rr.privateKeyFromAsn1(be.fromDer(Rt.util.createBuffer(m)));n(null,{privateKey:g,publicKey:rr.setRsaPublicKey(g.n,g.e)})},l.onerror=function(p){n(p)}},i.onerror=function(u){n(u)};return}}else if(oM("generateKeyPairSync")){var s=UP.generateKeyPairSync("rsa",{modulusLength:r,publicExponent:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:rr.privateKeyFromPem(s.privateKey),publicKey:rr.publicKeyFromPem(s.publicKey)}}}var a=rr.rsa.createKeyPairGenerationState(r,e,t);if(!n)return rr.rsa.stepKeyPairGenerationState(a,0),a.keys;wle(a,t,n)};rr.setRsaPublicKey=rr.rsa.setPublicKey=function(r,e){var t={n:r,e};return t.encrypt=function(n,i,s){if(typeof i=="string"?i=i.toUpperCase():i===void 0&&(i="RSAES-PKCS1-V1_5"),i==="RSAES-PKCS1-V1_5")i={encode:o(function(u,c,l){return pM(u,c,2).getBytes()},"encode")};else if(i==="RSA-OAEP"||i==="RSAES-OAEP")i={encode:o(function(u,c){return Rt.pkcs1.encode_rsa_oaep(c,u,s)},"encode")};else if(["RAW","NONE","NULL",null].indexOf(i)!==-1)i={encode:o(function(u){return u},"encode")};else if(typeof i=="string")throw new Error('Unsupported encryption scheme: "'+i+'".');var a=i.encode(n,t,!0);return rr.rsa.encrypt(a,t,!0)},t.verify=function(n,i,s,a){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),a===void 0&&(a={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in a||(a._parseAllDigestBytes=!0),s==="RSASSA-PKCS1-V1_5"?s={verify:o(function(c,l){l=XN(l,t,!0);var p=be.fromDer(l,{parseAllBytes:a._parseAllDigestBytes}),m={},g=[];if(!be.validate(p,xle,m,g)){var S=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw S.errors=g,S}var v=be.derToOid(m.algorithmIdentifier);if(!(v===Rt.oids.md2||v===Rt.oids.md5||v===Rt.oids.sha1||v===Rt.oids.sha224||v===Rt.oids.sha256||v===Rt.oids.sha384||v===Rt.oids.sha512||v===Rt.oids["sha512-224"]||v===Rt.oids["sha512-256"])){var S=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw S.oid=v,S}if((v===Rt.oids.md2||v===Rt.oids.md5)&&!("parameters"in m))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.");return c===m.digest},"verify")}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:o(function(c,l){return l=XN(l,t,!0),c===l},"verify")});var u=rr.rsa.decrypt(i,t,!0,!1);return s.verify(n,u,t.n.bitLength())},t};rr.setRsaPrivateKey=rr.rsa.setPrivateKey=function(r,e,t,n,i,s,a,u){var c={n:r,e,d:t,p:n,q:i,dP:s,dQ:a,qInv:u};return c.decrypt=function(l,p,m){typeof p=="string"?p=p.toUpperCase():p===void 0&&(p="RSAES-PKCS1-V1_5");var g=rr.rsa.decrypt(l,c,!1,!1);if(p==="RSAES-PKCS1-V1_5")p={decode:XN};else if(p==="RSA-OAEP"||p==="RSAES-OAEP")p={decode:o(function(S,v){return Rt.pkcs1.decode_rsa_oaep(v,S,m)},"decode")};else if(["RAW","NONE","NULL",null].indexOf(p)!==-1)p={decode:o(function(S){return S},"decode")};else throw new Error('Unsupported encryption scheme: "'+p+'".');return p.decode(g,c,!1)},c.sign=function(l,p){var m=!1;typeof p=="string"&&(p=p.toUpperCase()),p===void 0||p==="RSASSA-PKCS1-V1_5"?(p={encode:ble},m=1):(p==="NONE"||p==="NULL"||p===null)&&(p={encode:o(function(){return l},"encode")},m=1);var g=p.encode(l,c.n.bitLength());return rr.rsa.encrypt(g,c,m)},c};rr.wrapRsaPrivateKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,be.integerToDer(0).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.OID,!1,be.oidToDer(rr.oids.rsaEncryption).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,"")]),be.create(be.Class.UNIVERSAL,be.Type.OCTETSTRING,!1,be.toDer(r).getBytes())])};rr.privateKeyFromAsn1=function(r){var e={},t=[];if(be.validate(r,gle,e,t)&&(r=be.fromDer(Rt.util.createBuffer(e.privateKey))),e={},t=[],!be.validate(r,vle,e,t)){var n=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw n.errors=t,n}var i,s,a,u,c,l,p,m;return i=Rt.util.createBuffer(e.privateKeyModulus).toHex(),s=Rt.util.createBuffer(e.privateKeyPublicExponent).toHex(),a=Rt.util.createBuffer(e.privateKeyPrivateExponent).toHex(),u=Rt.util.createBuffer(e.privateKeyPrime1).toHex(),c=Rt.util.createBuffer(e.privateKeyPrime2).toHex(),l=Rt.util.createBuffer(e.privateKeyExponent1).toHex(),p=Rt.util.createBuffer(e.privateKeyExponent2).toHex(),m=Rt.util.createBuffer(e.privateKeyCoefficient).toHex(),rr.setRsaPrivateKey(new _r(i,16),new _r(s,16),new _r(a,16),new _r(u,16),new _r(c,16),new _r(l,16),new _r(p,16),new _r(m,16))};rr.privateKeyToAsn1=rr.privateKeyToRSAPrivateKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,be.integerToDer(0).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.n)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.e)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.d)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.p)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.q)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.dP)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.dQ)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.qInv))])};rr.publicKeyFromAsn1=function(r){var e={},t=[];if(be.validate(r,Sle,e,t)){var n=be.derToOid(e.publicKeyOid);if(n!==rr.oids.rsaEncryption){var i=new Error("Cannot read public key. Unknown OID.");throw i.oid=n,i}r=e.rsaPublicKey}if(t=[],!be.validate(r,yle,e,t)){var i=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw i.errors=t,i}var s=Rt.util.createBuffer(e.publicKeyModulus).toHex(),a=Rt.util.createBuffer(e.publicKeyExponent).toHex();return rr.setRsaPublicKey(new _r(s,16),new _r(a,16))};rr.publicKeyToAsn1=rr.publicKeyToSubjectPublicKeyInfo=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.OID,!1,be.oidToDer(rr.oids.rsaEncryption).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,"")]),be.create(be.Class.UNIVERSAL,be.Type.BITSTRING,!1,[rr.publicKeyToRSAPublicKey(r)])])};rr.publicKeyToRSAPublicKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.n)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,_c(r.e))])};function pM(r,e,t){var n=Rt.util.createBuffer(),i=Math.ceil(e.n.bitLength()/8);if(r.length>i-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=r.length,s.max=i-11,s}n.putByte(0),n.putByte(t);var a=i-3-r.length,u;if(t===0||t===1){u=t===0?0:255;for(var c=0;c<a;++c)n.putByte(u)}else for(;a>0;){for(var l=0,p=Rt.random.getBytes(a),c=0;c<a;++c)u=p.charCodeAt(c),u===0?++l:n.putByte(u);a=l}return n.putByte(0),n.putBytes(r),n}o(pM,"_encodePkcs1_v1_5");function XN(r,e,t,n){var i=Math.ceil(e.n.bitLength()/8),s=Rt.util.createBuffer(r),a=s.getByte(),u=s.getByte();if(a!==0||t&&u!==0&&u!==1||!t&&u!=2||t&&u===0&&typeof n>"u")throw new Error("Encryption block is invalid.");var c=0;if(u===0){c=i-3-n;for(var l=0;l<c;++l)if(s.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(u===1)for(c=0;s.length()>1;){if(s.getByte()!==255){--s.read;break}++c}else if(u===2)for(c=0;s.length()>1;){if(s.getByte()===0){--s.read;break}++c}var p=s.getByte();if(p!==0||c!==i-3-s.length())throw new Error("Encryption block is invalid.");return s.getBytes()}o(XN,"_decodePkcs1_v1_5");function wle(r,e,t){typeof e=="function"&&(t=e,e={}),e=e||{};var n={algorithm:{name:e.algorithm||"PRIMEINC",options:{workers:e.workers||2,workLoad:e.workLoad||100,workerScript:e.workerScript}}};"prng"in e&&(n.prng=e.prng),i();function i(){s(r.pBits,function(u,c){if(u)return t(u);if(r.p=c,r.q!==null)return a(u,r.q);s(r.qBits,a)})}o(i,"generate");function s(u,c){Rt.prime.generateProbablePrime(u,n,c)}o(s,"getPrime");function a(u,c){if(u)return t(u);if(r.q=c,r.p.compareTo(r.q)<0){var l=r.p;r.p=r.q,r.q=l}if(r.p.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)!==0){r.p=null,i();return}if(r.q.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)!==0){r.q=null,s(r.qBits,a);return}if(r.p1=r.p.subtract(_r.ONE),r.q1=r.q.subtract(_r.ONE),r.phi=r.p1.multiply(r.q1),r.phi.gcd(r.e).compareTo(_r.ONE)!==0){r.p=r.q=null,i();return}if(r.n=r.p.multiply(r.q),r.n.bitLength()!==r.bits){r.q=null,s(r.qBits,a);return}var p=r.e.modInverse(r.phi);r.keys={privateKey:rr.rsa.setPrivateKey(r.n,r.e,p,r.p,r.q,p.mod(r.p1),p.mod(r.q1),r.q.modInverse(r.p)),publicKey:rr.rsa.setPublicKey(r.n,r.e)},t(null,r.keys)}o(a,"finish")}o(wle,"_generateKeyPair");function _c(r){var e=r.toString(16);e[0]>="8"&&(e="00"+e);var t=Rt.util.hexToBytes(e);return t.length>1&&(t.charCodeAt(0)===0&&(t.charCodeAt(1)&128)===0||t.charCodeAt(0)===255&&(t.charCodeAt(1)&128)===128)?t.substr(1):t}o(_c,"_bnToBytes");function Cle(r){return r<=100?27:r<=150?18:r<=200?15:r<=250?12:r<=300?9:r<=350?8:r<=400?7:r<=500?6:r<=600?5:r<=800?4:r<=1250?3:2}o(Cle,"_getMillerRabinTests");function oM(r){return Rt.util.isNodejs&&typeof UP[r]=="function"}o(oM,"_detectNodeCrypto");function uM(r){return typeof ko.globalScope<"u"&&typeof ko.globalScope.crypto=="object"&&typeof ko.globalScope.crypto.subtle=="object"&&typeof ko.globalScope.crypto.subtle[r]=="function"}o(uM,"_detectSubtleCrypto");function cM(r){return typeof ko.globalScope<"u"&&typeof ko.globalScope.msCrypto=="object"&&typeof ko.globalScope.msCrypto.subtle=="object"&&typeof ko.globalScope.msCrypto.subtle[r]=="function"}o(cM,"_detectSubtleMsCrypto");function lM(r){for(var e=Rt.util.hexToBytes(r.toString(16)),t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}o(lM,"_intToUint8Array")});var MP=Z((a2e,yM)=>{"use strict";var mt=pr();_p();Nu();Rx();Ec();Op();HN();Jd();Fo();OP();Ox();kr();typeof dM>"u"&&(dM=mt.jsbn.BigInteger);var dM,Re=mt.asn1,ur=mt.pki=mt.pki||{};yM.exports=ur.pbe=mt.pbe=mt.pbe||{};var Zd=ur.oids,Ele={name:"EncryptedPrivateKeyInfo",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},Ale={name:"PBES2Algorithms",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},Nle={name:"pkcs-12PbeParams",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,capture:"iterations"}]};ur.encryptPrivateKeyInfo=function(r,e,t){t=t||{},t.saltSize=t.saltSize||8,t.count=t.count||2048,t.algorithm=t.algorithm||"aes128",t.prfAlgorithm=t.prfAlgorithm||"sha1";var n=mt.random.getBytesSync(t.saltSize),i=t.count,s=Re.integerToDer(i),a,u,c;if(t.algorithm.indexOf("aes")===0||t.algorithm==="des"){var l,p,m;switch(t.algorithm){case"aes128":a=16,l=16,p=Zd["aes128-CBC"],m=mt.aes.createEncryptionCipher;break;case"aes192":a=24,l=16,p=Zd["aes192-CBC"],m=mt.aes.createEncryptionCipher;break;case"aes256":a=32,l=16,p=Zd["aes256-CBC"],m=mt.aes.createEncryptionCipher;break;case"des":a=8,l=8,p=Zd.desCBC,m=mt.des.createEncryptionCipher;break;default:var g=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw g.algorithm=t.algorithm,g}var S="hmacWith"+t.prfAlgorithm.toUpperCase(),v=vM(S),b=mt.pkcs5.pbkdf2(e,n,i,a,v),x=mt.random.getBytesSync(l),E=m(b);E.start(x),E.update(Re.toDer(r)),E.finish(),c=E.output.getBytes();var N=Ile(n,s,a,S);u=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(Zd.pkcs5PBES2).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(Zd.pkcs5PBKDF2).getBytes()),N]),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(p).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,x)])])])}else if(t.algorithm==="3des"){a=24;var w=new mt.util.ByteBuffer(n),b=ur.pbe.generatePkcs12Key(e,w,1,i,a),x=ur.pbe.generatePkcs12Key(e,w,2,i,a),E=mt.des.createEncryptionCipher(b);E.start(x),E.update(Re.toDer(r)),E.finish(),c=E.output.getBytes(),u=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(Zd["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,n),Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,s.getBytes())])])}else{var g=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw g.algorithm=t.algorithm,g}var C=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[u,Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,c)]);return C};ur.decryptPrivateKeyInfo=function(r,e){var t=null,n={},i=[];if(!Re.validate(r,Ele,n,i)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}var a=Re.derToOid(n.encryptionOid),u=ur.pbe.getCipher(a,n.encryptionParams,e),c=mt.util.createBuffer(n.encryptedData);return u.update(c),u.finish()&&(t=Re.fromDer(u.output)),t};ur.encryptedPrivateKeyToPem=function(r,e){var t={type:"ENCRYPTED PRIVATE KEY",body:Re.toDer(r).getBytes()};return mt.pem.encode(t,{maxline:e})};ur.encryptedPrivateKeyFromPem=function(r){var e=mt.pem.decode(r)[0];if(e.type!=="ENCRYPTED PRIVATE KEY"){var t=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return Re.fromDer(e.body)};ur.encryptRsaPrivateKey=function(r,e,t){if(t=t||{},!t.legacy){var n=ur.wrapRsaPrivateKey(ur.privateKeyToAsn1(r));return n=ur.encryptPrivateKeyInfo(n,e,t),ur.encryptedPrivateKeyToPem(n)}var i,s,a,u;switch(t.algorithm){case"aes128":i="AES-128-CBC",a=16,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"aes192":i="AES-192-CBC",a=24,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"aes256":i="AES-256-CBC",a=32,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"3des":i="DES-EDE3-CBC",a=24,s=mt.random.getBytesSync(8),u=mt.des.createEncryptionCipher;break;case"des":i="DES-CBC",a=8,s=mt.random.getBytesSync(8),u=mt.des.createEncryptionCipher;break;default:var c=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+t.algorithm+'".');throw c.algorithm=t.algorithm,c}var l=mt.pbe.opensslDeriveBytes(e,s.substr(0,8),a),p=u(l);p.start(s),p.update(Re.toDer(ur.privateKeyToAsn1(r))),p.finish();var m={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:i,parameters:mt.util.bytesToHex(s).toUpperCase()},body:p.output.getBytes()};return mt.pem.encode(m)};ur.decryptRsaPrivateKey=function(r,e){var t=null,n=mt.pem.decode(r)[0];if(n.type!=="ENCRYPTED PRIVATE KEY"&&n.type!=="PRIVATE KEY"&&n.type!=="RSA PRIVATE KEY"){var i=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw i.headerType=i,i}if(n.procType&&n.procType.type==="ENCRYPTED"){var s,a;switch(n.dekInfo.algorithm){case"DES-CBC":s=8,a=mt.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,a=mt.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,a=mt.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,a=mt.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,a=mt.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,a=o(function(m){return mt.rc2.createDecryptionCipher(m,40)},"cipherFn");break;case"RC2-64-CBC":s=8,a=o(function(m){return mt.rc2.createDecryptionCipher(m,64)},"cipherFn");break;case"RC2-128-CBC":s=16,a=o(function(m){return mt.rc2.createDecryptionCipher(m,128)},"cipherFn");break;default:var i=new Error('Could not decrypt private key; unsupported encryption algorithm "'+n.dekInfo.algorithm+'".');throw i.algorithm=n.dekInfo.algorithm,i}var u=mt.util.hexToBytes(n.dekInfo.parameters),c=mt.pbe.opensslDeriveBytes(e,u.substr(0,8),s),l=a(c);if(l.start(u),l.update(mt.util.createBuffer(n.body)),l.finish())t=l.output.getBytes();else return t}else t=n.body;return n.type==="ENCRYPTED PRIVATE KEY"?t=ur.decryptPrivateKeyInfo(Re.fromDer(t),e):t=Re.fromDer(t),t!==null&&(t=ur.privateKeyFromAsn1(t)),t};ur.pbe.generatePkcs12Key=function(r,e,t,n,i,s){var a,u;if(typeof s>"u"||s===null){if(!("sha1"in mt.md))throw new Error('"sha1" hash algorithm unavailable.');s=mt.md.sha1.create()}var c=s.digestLength,l=s.blockLength,p=new mt.util.ByteBuffer,m=new mt.util.ByteBuffer;if(r!=null){for(u=0;u<r.length;u++)m.putInt16(r.charCodeAt(u));m.putInt16(0)}var g=m.length(),S=e.length(),v=new mt.util.ByteBuffer;v.fillWithByte(t,l);var b=l*Math.ceil(S/l),x=new mt.util.ByteBuffer;for(u=0;u<b;u++)x.putByte(e.at(u%S));var E=l*Math.ceil(g/l),N=new mt.util.ByteBuffer;for(u=0;u<E;u++)N.putByte(m.at(u%g));var w=x;w.putBuffer(N);for(var C=Math.ceil(i/c),A=1;A<=C;A++){var R=new mt.util.ByteBuffer;R.putBytes(v.bytes()),R.putBytes(w.bytes());for(var M=0;M<n;M++)s.start(),s.update(R.getBytes()),R=s.digest();var _=new mt.util.ByteBuffer;for(u=0;u<l;u++)_.putByte(R.at(u%c));var H=Math.ceil(S/l)+Math.ceil(g/l),z=new mt.util.ByteBuffer;for(a=0;a<H;a++){var K=new mt.util.ByteBuffer(w.getBytes(l)),X=511;for(u=_.length()-1;u>=0;u--)X=X>>8,X+=_.at(u)+K.at(u),K.setAt(u,X&255);z.putBuffer(K)}w=z,p.putBuffer(R)}return p.truncate(p.length()-i),p};ur.pbe.getCipher=function(r,e,t){switch(r){case ur.oids.pkcs5PBES2:return ur.pbe.getCipherForPBES2(r,e,t);case ur.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case ur.oids["pbewithSHAAnd40BitRC2-CBC"]:return ur.pbe.getCipherForPKCS12PBE(r,e,t);default:var n=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw n.oid=r,n.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],n}};ur.pbe.getCipherForPBES2=function(r,e,t){var n={},i=[];if(!Re.validate(e,Ale,n,i)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}if(r=Re.derToOid(n.kdfOid),r!==ur.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=r,s.supportedOids=["pkcs5PBKDF2"],s}if(r=Re.derToOid(n.encOid),r!==ur.oids["aes128-CBC"]&&r!==ur.oids["aes192-CBC"]&&r!==ur.oids["aes256-CBC"]&&r!==ur.oids["des-EDE3-CBC"]&&r!==ur.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=r,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var a=n.kdfSalt,u=mt.util.createBuffer(n.kdfIterationCount);u=u.getInt(u.length()<<3);var c,l;switch(ur.oids[r]){case"aes128-CBC":c=16,l=mt.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,l=mt.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,l=mt.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,l=mt.des.createDecryptionCipher;break;case"desCBC":c=8,l=mt.des.createDecryptionCipher;break}var p=gM(n.prfOid),m=mt.pkcs5.pbkdf2(t,a,u,c,p),g=n.encIv,S=l(m);return S.start(g),S};ur.pbe.getCipherForPKCS12PBE=function(r,e,t){var n={},i=[];if(!Re.validate(e,Nle,n,i)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}var a=mt.util.createBuffer(n.salt),u=mt.util.createBuffer(n.iterations);u=u.getInt(u.length()<<3);var c,l,p;switch(r){case ur.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,l=8,p=mt.des.startDecrypting;break;case ur.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,l=8,p=o(function(b,x){var E=mt.rc2.createDecryptionCipher(b,40);return E.start(x,null),E},"cipherFn");break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=r,s}var m=gM(n.prfOid),g=ur.pbe.generatePkcs12Key(t,a,1,u,c,m);m.start();var S=ur.pbe.generatePkcs12Key(t,a,2,u,l,m);return p(g,S)};ur.pbe.opensslDeriveBytes=function(r,e,t,n){if(typeof n>"u"||n===null){if(!("md5"in mt.md))throw new Error('"md5" hash algorithm unavailable.');n=mt.md.md5.create()}e===null&&(e="");for(var i=[mM(n,r+e)],s=16,a=1;s<t;++a,s+=16)i.push(mM(n,i[a-1]+r+e));return i.join("").substr(0,t)};function mM(r,e){return r.start().update(e).digest().getBytes()}o(mM,"hash");function gM(r){var e;if(!r)e="hmacWithSHA1";else if(e=ur.oids[Re.derToOid(r)],!e){var t=new Error("Unsupported PRF OID.");throw t.oid=r,t.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],t}return vM(e)}o(gM,"prfOidToMessageDigest");function vM(r){var e=mt.md;switch(r){case"hmacWithSHA224":e=mt.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":r=r.substr(8).toLowerCase();break;default:var t=new Error("Unsupported PRF algorithm.");throw t.algorithm=r,t.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],t}if(!e||!(r in e))throw new Error("Unknown hash algorithm: "+r);return e[r].create()}o(vM,"prfAlgorithmToMessageDigest");function Ile(r,e,t,n){var i=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,r),Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,e.getBytes())]);return n!=="hmacWithSHA1"&&i.value.push(Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,mt.util.hexToBytes(t.toString(16))),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(ur.oids[n]).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.NULL,!1,"")])),i}o(Ile,"createPbkdf2Params")});var qP=Z((u2e,bM)=>{"use strict";var rv=pr();Nu();kr();var pt=rv.asn1,nv=bM.exports=rv.pkcs7asn1=rv.pkcs7asn1||{};rv.pkcs7=rv.pkcs7||{};rv.pkcs7.asn1=nv;var SM={name:"ContentInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};nv.contentInfoValidator=SM;var xM={name:"EncryptedContentInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};nv.envelopedDataValidator={name:"EnvelopedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(xM)};nv.encryptedDataValidator={name:"EncryptedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"}].concat(xM)};var Tle={name:"SignerInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:pt.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};nv.signedDataValidator={name:"SignedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},SM,{name:"SignedData.Certificates",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:pt.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,capture:"signerInfos",optional:!0,value:[Tle]}]};nv.recipientInfoValidator={name:"RecipientInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}});var HP=Z((c2e,wM)=>{"use strict";var em=pr();kr();em.mgf=em.mgf||{};var Rle=wM.exports=em.mgf.mgf1=em.mgf1=em.mgf1||{};Rle.create=function(r){var e={generate:o(function(t,n){for(var i=new em.util.ByteBuffer,s=Math.ceil(n/r.digestLength),a=0;a<s;a++){var u=new em.util.ByteBuffer;u.putInt32(a),r.start(),r.update(t+u.getBytes()),i.putBuffer(r.digest())}return i.truncate(i.length()-n),i.getBytes()},"generate")};return e}});var EM=Z((f2e,CM)=>{"use strict";var WN=pr();HP();CM.exports=WN.mgf=WN.mgf||{};WN.mgf.mgf1=WN.mgf1});var JN=Z((p2e,AM)=>{"use strict";var tm=pr();Fo();kr();var Dle=AM.exports=tm.pss=tm.pss||{};Dle.create=function(r){arguments.length===3&&(r={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var e=r.md,t=r.mgf,n=e.digestLength,i=r.salt||null;typeof i=="string"&&(i=tm.util.createBuffer(i));var s;if("saltLength"in r)s=r.saltLength;else if(i!==null)s=i.length();else throw new Error("Salt length not specified or specific salt not given.");if(i!==null&&i.length()!==s)throw new Error("Given salt length does not match length of given salt.");var a=r.prng||tm.random,u={};return u.encode=function(c,l){var p,m=l-1,g=Math.ceil(m/8),S=c.digest().getBytes();if(g<n+s+2)throw new Error("Message is too long to encrypt.");var v;i===null?v=a.getBytesSync(s):v=i.bytes();var b=new tm.util.ByteBuffer;b.fillWithByte(0,8),b.putBytes(S),b.putBytes(v),e.start(),e.update(b.getBytes());var x=e.digest().getBytes(),E=new tm.util.ByteBuffer;E.fillWithByte(0,g-s-n-2),E.putByte(1),E.putBytes(v);var N=E.getBytes(),w=g-n-1,C=t.generate(x,w),A="";for(p=0;p<w;p++)A+=String.fromCharCode(N.charCodeAt(p)^C.charCodeAt(p));var R=65280>>8*g-m&255;return A=String.fromCharCode(A.charCodeAt(0)&~R)+A.substr(1),A+x+"\xBC"},u.verify=function(c,l,p){var m,g=p-1,S=Math.ceil(g/8);if(l=l.substr(-S),S<n+s+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(l.charCodeAt(S-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var v=S-n-1,b=l.substr(0,v),x=l.substr(v,n),E=65280>>8*S-g&255;if((b.charCodeAt(0)&E)!==0)throw new Error("Bits beyond keysize not zero as expected.");var N=t.generate(x,v),w="";for(m=0;m<v;m++)w+=String.fromCharCode(b.charCodeAt(m)^N.charCodeAt(m));w=String.fromCharCode(w.charCodeAt(0)&~E)+w.substr(1);var C=S-n-s-2;for(m=0;m<C;m++)if(w.charCodeAt(m)!==0)throw new Error("Leftmost octets not zero as expected");if(w.charCodeAt(C)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var A=w.substr(-s),R=new tm.util.ByteBuffer;R.fillWithByte(0,8),R.putBytes(c),R.putBytes(A),e.start(),e.update(R.getBytes());var M=e.digest().getBytes();return x===M},u}});var ZN=Z((h2e,DM)=>{"use strict";var Dt=pr();_p();Nu();Rx();Ec();EM();Op();Jd();JN();Ox();kr();var L=Dt.asn1,rt=DM.exports=Dt.pki=Dt.pki||{},Or=rt.oids,si={};si.CN=Or.commonName;si.commonName="CN";si.C=Or.countryName;si.countryName="C";si.L=Or.localityName;si.localityName="L";si.ST=Or.stateOrProvinceName;si.stateOrProvinceName="ST";si.O=Or.organizationName;si.organizationName="O";si.OU=Or.organizationalUnitName;si.organizationalUnitName="OU";si.E=Or.emailAddress;si.emailAddress="E";var IM=Dt.pki.rsa.publicKeyValidator,_le={name:"Certificate",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:L.Class.UNIVERSAL,type:L.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:L.Class.UNIVERSAL,type:L.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:L.Class.UNIVERSAL,type:L.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:L.Class.UNIVERSAL,type:L.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},IM,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:L.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:L.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:L.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},Ole={name:"rsapss",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:L.Class.UNIVERSAL,type:L.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:L.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:L.Class.UNIVERSAL,type:L.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:L.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:L.Class.UNIVERSAL,type:L.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:L.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:L.Class.UNIVERSAL,type:L.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},Ple={name:"CertificationRequestInfo",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},IM,{name:"CertificationRequestInfo.attributes",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:L.Class.UNIVERSAL,type:L.Type.SET,constructed:!0}]}]}]},Ble={name:"CertificationRequest",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[Ple,{name:"CertificationRequest.signatureAlgorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};rt.RDNAttributesAsArray=function(r,e){for(var t=[],n,i,s,a=0;a<r.value.length;++a){n=r.value[a];for(var u=0;u<n.value.length;++u)s={},i=n.value[u],s.type=L.derToOid(i.value[0].value),s.value=i.value[1].value,s.valueTagClass=i.value[1].type,s.type in Or&&(s.name=Or[s.type],s.name in si&&(s.shortName=si[s.name])),e&&(e.update(s.type),e.update(s.value)),t.push(s)}return t};rt.CRIAttributesAsArray=function(r){for(var e=[],t=0;t<r.length;++t)for(var n=r[t],i=L.derToOid(n.value[0].value),s=n.value[1].value,a=0;a<s.length;++a){var u={};if(u.type=i,u.value=s[a].value,u.valueTagClass=s[a].type,u.type in Or&&(u.name=Or[u.type],u.name in si&&(u.shortName=si[u.name])),u.type===Or.extensionRequest){u.extensions=[];for(var c=0;c<u.value.length;++c)u.extensions.push(rt.certificateExtensionFromAsn1(u.value[c]))}e.push(u)}return e};function Fp(r,e){typeof e=="string"&&(e={shortName:e});for(var t=null,n,i=0;t===null&&i<r.attributes.length;++i)n=r.attributes[i],(e.type&&e.type===n.type||e.name&&e.name===n.name||e.shortName&&e.shortName===n.shortName)&&(t=n);return t}o(Fp,"_getAttribute");var QN=o(function(r,e,t){var n={};if(r!==Or["RSASSA-PSS"])return n;t&&(n={hash:{algorithmOid:Or.sha1},mgf:{algorithmOid:Or.mgf1,hash:{algorithmOid:Or.sha1}},saltLength:20});var i={},s=[];if(!L.validate(e,Ole,i,s)){var a=new Error("Cannot read RSASSA-PSS parameter block.");throw a.errors=s,a}return i.hashOid!==void 0&&(n.hash=n.hash||{},n.hash.algorithmOid=L.derToOid(i.hashOid)),i.maskGenOid!==void 0&&(n.mgf=n.mgf||{},n.mgf.algorithmOid=L.derToOid(i.maskGenOid),n.mgf.hash=n.mgf.hash||{},n.mgf.hash.algorithmOid=L.derToOid(i.maskGenHashOid)),i.saltLength!==void 0&&(n.saltLength=i.saltLength.charCodeAt(0)),n},"_readSignatureParameters"),YN=o(function(r){switch(Or[r.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return Dt.md.sha1.create();case"md5WithRSAEncryption":return Dt.md.md5.create();case"sha256WithRSAEncryption":return Dt.md.sha256.create();case"sha384WithRSAEncryption":return Dt.md.sha384.create();case"sha512WithRSAEncryption":return Dt.md.sha512.create();case"RSASSA-PSS":return Dt.md.sha256.create();default:var e=new Error("Could not compute "+r.type+" digest. Unknown signature OID.");throw e.signatureOid=r.signatureOid,e}},"_createSignatureDigest"),TM=o(function(r){var e=r.certificate,t;switch(e.signatureOid){case Or.sha1WithRSAEncryption:case Or.sha1WithRSASignature:break;case Or["RSASSA-PSS"]:var n,i;if(n=Or[e.signatureParameters.mgf.hash.algorithmOid],n===void 0||Dt.md[n]===void 0){var s=new Error("Unsupported MGF hash function.");throw s.oid=e.signatureParameters.mgf.hash.algorithmOid,s.name=n,s}if(i=Or[e.signatureParameters.mgf.algorithmOid],i===void 0||Dt.mgf[i]===void 0){var s=new Error("Unsupported MGF function.");throw s.oid=e.signatureParameters.mgf.algorithmOid,s.name=i,s}if(i=Dt.mgf[i].create(Dt.md[n].create()),n=Or[e.signatureParameters.hash.algorithmOid],n===void 0||Dt.md[n]===void 0){var s=new Error("Unsupported RSASSA-PSS hash function.");throw s.oid=e.signatureParameters.hash.algorithmOid,s.name=n,s}t=Dt.pss.create(Dt.md[n].create(),i,e.signatureParameters.saltLength);break}return e.publicKey.verify(r.md.digest().getBytes(),r.signature,t)},"_verifySignature");rt.certificateFromPem=function(r,e,t){var n=Dt.pem.decode(r)[0];if(n.type!=="CERTIFICATE"&&n.type!=="X509 CERTIFICATE"&&n.type!=="TRUSTED CERTIFICATE"){var i=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var s=L.fromDer(n.body,t);return rt.certificateFromAsn1(s,e)};rt.certificateToPem=function(r,e){var t={type:"CERTIFICATE",body:L.toDer(rt.certificateToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.publicKeyFromPem=function(r){var e=Dt.pem.decode(r)[0];if(e.type!=="PUBLIC KEY"&&e.type!=="RSA PUBLIC KEY"){var t=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var n=L.fromDer(e.body);return rt.publicKeyFromAsn1(n)};rt.publicKeyToPem=function(r,e){var t={type:"PUBLIC KEY",body:L.toDer(rt.publicKeyToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.publicKeyToRSAPublicKeyPem=function(r,e){var t={type:"RSA PUBLIC KEY",body:L.toDer(rt.publicKeyToRSAPublicKey(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.getPublicKeyFingerprint=function(r,e){e=e||{};var t=e.md||Dt.md.sha1.create(),n=e.type||"RSAPublicKey",i;switch(n){case"RSAPublicKey":i=L.toDer(rt.publicKeyToRSAPublicKey(r)).getBytes();break;case"SubjectPublicKeyInfo":i=L.toDer(rt.publicKeyToAsn1(r)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+e.type+'".')}t.start(),t.update(i);var s=t.digest();if(e.encoding==="hex"){var a=s.toHex();return e.delimiter?a.match(/.{2}/g).join(e.delimiter):a}else{if(e.encoding==="binary")return s.getBytes();if(e.encoding)throw new Error('Unknown encoding "'+e.encoding+'".')}return s};rt.certificationRequestFromPem=function(r,e,t){var n=Dt.pem.decode(r)[0];if(n.type!=="CERTIFICATE REQUEST"){var i=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var s=L.fromDer(n.body,t);return rt.certificationRequestFromAsn1(s,e)};rt.certificationRequestToPem=function(r,e){var t={type:"CERTIFICATE REQUEST",body:L.toDer(rt.certificationRequestToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.createCertificate=function(){var r={};return r.version=2,r.serialNumber="00",r.signatureOid=null,r.signature=null,r.siginfo={},r.siginfo.algorithmOid=null,r.validity={},r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.issuer={},r.issuer.getField=function(e){return Fp(r.issuer,e)},r.issuer.addField=function(e){Vo([e]),r.issuer.attributes.push(e)},r.issuer.attributes=[],r.issuer.hash=null,r.subject={},r.subject.getField=function(e){return Fp(r.subject,e)},r.subject.addField=function(e){Vo([e]),r.subject.attributes.push(e)},r.subject.attributes=[],r.subject.hash=null,r.extensions=[],r.publicKey=null,r.md=null,r.setSubject=function(e,t){Vo(e),r.subject.attributes=e,delete r.subject.uniqueId,t&&(r.subject.uniqueId=t),r.subject.hash=null},r.setIssuer=function(e,t){Vo(e),r.issuer.attributes=e,delete r.issuer.uniqueId,t&&(r.issuer.uniqueId=t),r.issuer.hash=null},r.setExtensions=function(e){for(var t=0;t<e.length;++t)RM(e[t],{cert:r});r.extensions=e},r.getExtension=function(e){typeof e=="string"&&(e={name:e});for(var t=null,n,i=0;t===null&&i<r.extensions.length;++i)n=r.extensions[i],(e.id&&n.id===e.id||e.name&&n.name===e.name)&&(t=n);return t},r.sign=function(e,t){r.md=t||Dt.md.sha1.create();var n=Or[r.md.algorithm+"WithRSAEncryption"];if(!n){var i=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw i.algorithm=r.md.algorithm,i}r.signatureOid=r.siginfo.algorithmOid=n,r.tbsCertificate=rt.getTBSCertificate(r);var s=L.toDer(r.tbsCertificate);r.md.update(s.getBytes()),r.signature=e.sign(r.md)},r.verify=function(e){var t=!1;if(!r.issued(e)){var n=e.issuer,i=r.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=i.attributes,s.actualIssuer=n.attributes,s}var a=e.md;if(a===null){a=YN({signatureOid:e.signatureOid,type:"certificate"});var u=e.tbsCertificate||rt.getTBSCertificate(e),c=L.toDer(u);a.update(c.getBytes())}return a!==null&&(t=TM({certificate:r,md:a,signature:e.signature})),t},r.isIssuer=function(e){var t=!1,n=r.issuer,i=e.subject;if(n.hash&&i.hash)t=n.hash===i.hash;else if(n.attributes.length===i.attributes.length){t=!0;for(var s,a,u=0;t&&u<n.attributes.length;++u)s=n.attributes[u],a=i.attributes[u],(s.type!==a.type||s.value!==a.value)&&(t=!1)}return t},r.issued=function(e){return e.isIssuer(r)},r.generateSubjectKeyIdentifier=function(){return rt.getPublicKeyFingerprint(r.publicKey,{type:"RSAPublicKey"})},r.verifySubjectKeyIdentifier=function(){for(var e=Or.subjectKeyIdentifier,t=0;t<r.extensions.length;++t){var n=r.extensions[t];if(n.id===e){var i=r.generateSubjectKeyIdentifier().getBytes();return Dt.util.hexToBytes(n.subjectKeyIdentifier)===i}}return!1},r};rt.certificateFromAsn1=function(r,e){var t={},n=[];if(!L.validate(r,_le,t,n)){var i=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw i.errors=n,i}var s=L.derToOid(t.publicKeyOid);if(s!==rt.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var a=rt.createCertificate();a.version=t.certVersion?t.certVersion.charCodeAt(0):0;var u=Dt.util.createBuffer(t.certSerialNumber);a.serialNumber=u.toHex(),a.signatureOid=Dt.asn1.derToOid(t.certSignatureOid),a.signatureParameters=QN(a.signatureOid,t.certSignatureParams,!0),a.siginfo.algorithmOid=Dt.asn1.derToOid(t.certinfoSignatureOid),a.siginfo.parameters=QN(a.siginfo.algorithmOid,t.certinfoSignatureParams,!1),a.signature=t.certSignature;var c=[];if(t.certValidity1UTCTime!==void 0&&c.push(L.utcTimeToDate(t.certValidity1UTCTime)),t.certValidity2GeneralizedTime!==void 0&&c.push(L.generalizedTimeToDate(t.certValidity2GeneralizedTime)),t.certValidity3UTCTime!==void 0&&c.push(L.utcTimeToDate(t.certValidity3UTCTime)),t.certValidity4GeneralizedTime!==void 0&&c.push(L.generalizedTimeToDate(t.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(a.validity.notBefore=c[0],a.validity.notAfter=c[1],a.tbsCertificate=t.tbsCertificate,e){a.md=YN({signatureOid:a.signatureOid,type:"certificate"});var l=L.toDer(a.tbsCertificate);a.md.update(l.getBytes())}var p=Dt.md.sha1.create(),m=L.toDer(t.certIssuer);p.update(m.getBytes()),a.issuer.getField=function(v){return Fp(a.issuer,v)},a.issuer.addField=function(v){Vo([v]),a.issuer.attributes.push(v)},a.issuer.attributes=rt.RDNAttributesAsArray(t.certIssuer),t.certIssuerUniqueId&&(a.issuer.uniqueId=t.certIssuerUniqueId),a.issuer.hash=p.digest().toHex();var g=Dt.md.sha1.create(),S=L.toDer(t.certSubject);return g.update(S.getBytes()),a.subject.getField=function(v){return Fp(a.subject,v)},a.subject.addField=function(v){Vo([v]),a.subject.attributes.push(v)},a.subject.attributes=rt.RDNAttributesAsArray(t.certSubject),t.certSubjectUniqueId&&(a.subject.uniqueId=t.certSubjectUniqueId),a.subject.hash=g.digest().toHex(),t.certExtensions?a.extensions=rt.certificateExtensionsFromAsn1(t.certExtensions):a.extensions=[],a.publicKey=rt.publicKeyFromAsn1(t.subjectPublicKeyInfo),a};rt.certificateExtensionsFromAsn1=function(r){for(var e=[],t=0;t<r.value.length;++t)for(var n=r.value[t],i=0;i<n.value.length;++i)e.push(rt.certificateExtensionFromAsn1(n.value[i]));return e};rt.certificateExtensionFromAsn1=function(r){var e={};if(e.id=L.derToOid(r.value[0].value),e.critical=!1,r.value[1].type===L.Type.BOOLEAN?(e.critical=r.value[1].value.charCodeAt(0)!==0,e.value=r.value[2].value):e.value=r.value[1].value,e.id in Or){if(e.name=Or[e.id],e.name==="keyUsage"){var t=L.fromDer(e.value),n=0,i=0;t.value.length>1&&(n=t.value.charCodeAt(1),i=t.value.length>2?t.value.charCodeAt(2):0),e.digitalSignature=(n&128)===128,e.nonRepudiation=(n&64)===64,e.keyEncipherment=(n&32)===32,e.dataEncipherment=(n&16)===16,e.keyAgreement=(n&8)===8,e.keyCertSign=(n&4)===4,e.cRLSign=(n&2)===2,e.encipherOnly=(n&1)===1,e.decipherOnly=(i&128)===128}else if(e.name==="basicConstraints"){var t=L.fromDer(e.value);t.value.length>0&&t.value[0].type===L.Type.BOOLEAN?e.cA=t.value[0].value.charCodeAt(0)!==0:e.cA=!1;var s=null;t.value.length>0&&t.value[0].type===L.Type.INTEGER?s=t.value[0].value:t.value.length>1&&(s=t.value[1].value),s!==null&&(e.pathLenConstraint=L.derToInteger(s))}else if(e.name==="extKeyUsage")for(var t=L.fromDer(e.value),a=0;a<t.value.length;++a){var u=L.derToOid(t.value[a].value);u in Or?e[Or[u]]=!0:e[u]=!0}else if(e.name==="nsCertType"){var t=L.fromDer(e.value),n=0;t.value.length>1&&(n=t.value.charCodeAt(1)),e.client=(n&128)===128,e.server=(n&64)===64,e.email=(n&32)===32,e.objsign=(n&16)===16,e.reserved=(n&8)===8,e.sslCA=(n&4)===4,e.emailCA=(n&2)===2,e.objCA=(n&1)===1}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.altNames=[];for(var c,t=L.fromDer(e.value),l=0;l<t.value.length;++l){c=t.value[l];var p={type:c.type,value:c.value};switch(e.altNames.push(p),c.type){case 1:case 2:case 6:break;case 7:p.ip=Dt.util.bytesToIP(c.value);break;case 8:p.oid=L.derToOid(c.value);break;default:}}}else if(e.name==="subjectKeyIdentifier"){var t=L.fromDer(e.value);e.subjectKeyIdentifier=Dt.util.bytesToHex(t.value)}}return e};rt.certificationRequestFromAsn1=function(r,e){var t={},n=[];if(!L.validate(r,Ble,t,n)){var i=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw i.errors=n,i}var s=L.derToOid(t.publicKeyOid);if(s!==rt.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var a=rt.createCertificationRequest();if(a.version=t.csrVersion?t.csrVersion.charCodeAt(0):0,a.signatureOid=Dt.asn1.derToOid(t.csrSignatureOid),a.signatureParameters=QN(a.signatureOid,t.csrSignatureParams,!0),a.siginfo.algorithmOid=Dt.asn1.derToOid(t.csrSignatureOid),a.siginfo.parameters=QN(a.siginfo.algorithmOid,t.csrSignatureParams,!1),a.signature=t.csrSignature,a.certificationRequestInfo=t.certificationRequestInfo,e){a.md=YN({signatureOid:a.signatureOid,type:"certification request"});var u=L.toDer(a.certificationRequestInfo);a.md.update(u.getBytes())}var c=Dt.md.sha1.create();return a.subject.getField=function(l){return Fp(a.subject,l)},a.subject.addField=function(l){Vo([l]),a.subject.attributes.push(l)},a.subject.attributes=rt.RDNAttributesAsArray(t.certificationRequestInfoSubject,c),a.subject.hash=c.digest().toHex(),a.publicKey=rt.publicKeyFromAsn1(t.subjectPublicKeyInfo),a.getAttribute=function(l){return Fp(a,l)},a.addAttribute=function(l){Vo([l]),a.attributes.push(l)},a.attributes=rt.CRIAttributesAsArray(t.certificationRequestInfoAttributes||[]),a};rt.createCertificationRequest=function(){var r={};return r.version=0,r.signatureOid=null,r.signature=null,r.siginfo={},r.siginfo.algorithmOid=null,r.subject={},r.subject.getField=function(e){return Fp(r.subject,e)},r.subject.addField=function(e){Vo([e]),r.subject.attributes.push(e)},r.subject.attributes=[],r.subject.hash=null,r.publicKey=null,r.attributes=[],r.getAttribute=function(e){return Fp(r,e)},r.addAttribute=function(e){Vo([e]),r.attributes.push(e)},r.md=null,r.setSubject=function(e){Vo(e),r.subject.attributes=e,r.subject.hash=null},r.setAttributes=function(e){Vo(e),r.attributes=e},r.sign=function(e,t){r.md=t||Dt.md.sha1.create();var n=Or[r.md.algorithm+"WithRSAEncryption"];if(!n){var i=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw i.algorithm=r.md.algorithm,i}r.signatureOid=r.siginfo.algorithmOid=n,r.certificationRequestInfo=rt.getCertificationRequestInfo(r);var s=L.toDer(r.certificationRequestInfo);r.md.update(s.getBytes()),r.signature=e.sign(r.md)},r.verify=function(){var e=!1,t=r.md;if(t===null){t=YN({signatureOid:r.signatureOid,type:"certification request"});var n=r.certificationRequestInfo||rt.getCertificationRequestInfo(r),i=L.toDer(n);t.update(i.getBytes())}return t!==null&&(e=TM({certificate:r,md:t,signature:r.signature})),e},r};function iv(r){for(var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),t,n,i=r.attributes,s=0;s<i.length;++s){t=i[s];var a=t.value,u=L.Type.PRINTABLESTRING;"valueTagClass"in t&&(u=t.valueTagClass,u===L.Type.UTF8&&(a=Dt.util.encodeUtf8(a))),n=L.create(L.Class.UNIVERSAL,L.Type.SET,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(t.type).getBytes()),L.create(L.Class.UNIVERSAL,u,!1,a)])]),e.value.push(n)}return e}o(iv,"_dnToAsn1");function Vo(r){for(var e,t=0;t<r.length;++t){if(e=r[t],typeof e.name>"u"&&(e.type&&e.type in rt.oids?e.name=rt.oids[e.type]:e.shortName&&e.shortName in si&&(e.name=rt.oids[si[e.shortName]])),typeof e.type>"u")if(e.name&&e.name in rt.oids)e.type=rt.oids[e.name];else{var n=new Error("Attribute type not specified.");throw n.attribute=e,n}if(typeof e.shortName>"u"&&e.name&&e.name in si&&(e.shortName=si[e.name]),e.type===Or.extensionRequest&&(e.valueConstructed=!0,e.valueTagClass=L.Type.SEQUENCE,!e.value&&e.extensions)){e.value=[];for(var i=0;i<e.extensions.length;++i)e.value.push(rt.certificateExtensionToAsn1(RM(e.extensions[i])))}if(typeof e.value>"u"){var n=new Error("Attribute value not specified.");throw n.attribute=e,n}}}o(Vo,"_fillMissingFields");function RM(r,e){if(e=e||{},typeof r.name>"u"&&r.id&&r.id in rt.oids&&(r.name=rt.oids[r.id]),typeof r.id>"u")if(r.name&&r.name in rt.oids)r.id=rt.oids[r.name];else{var t=new Error("Extension ID not specified.");throw t.extension=r,t}if(typeof r.value<"u")return r;if(r.name==="keyUsage"){var n=0,i=0,s=0;r.digitalSignature&&(i|=128,n=7),r.nonRepudiation&&(i|=64,n=6),r.keyEncipherment&&(i|=32,n=5),r.dataEncipherment&&(i|=16,n=4),r.keyAgreement&&(i|=8,n=3),r.keyCertSign&&(i|=4,n=2),r.cRLSign&&(i|=2,n=1),r.encipherOnly&&(i|=1,n=0),r.decipherOnly&&(s|=128,n=7);var a=String.fromCharCode(n);s!==0?a+=String.fromCharCode(i)+String.fromCharCode(s):i!==0&&(a+=String.fromCharCode(i)),r.value=L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,a)}else if(r.name==="basicConstraints")r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),r.cA&&r.value.value.push(L.create(L.Class.UNIVERSAL,L.Type.BOOLEAN,!1,"\xFF")),"pathLenConstraint"in r&&r.value.value.push(L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.pathLenConstraint).getBytes()));else if(r.name==="extKeyUsage"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);var u=r.value.value;for(var c in r)r[c]===!0&&(c in Or?u.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(Or[c]).getBytes())):c.indexOf(".")!==-1&&u.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(c).getBytes())))}else if(r.name==="nsCertType"){var n=0,i=0;r.client&&(i|=128,n=7),r.server&&(i|=64,n=6),r.email&&(i|=32,n=5),r.objsign&&(i|=16,n=4),r.reserved&&(i|=8,n=3),r.sslCA&&(i|=4,n=2),r.emailCA&&(i|=2,n=1),r.objCA&&(i|=1,n=0);var a=String.fromCharCode(n);i!==0&&(a+=String.fromCharCode(i)),r.value=L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,a)}else if(r.name==="subjectAltName"||r.name==="issuerAltName"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);for(var l,p=0;p<r.altNames.length;++p){l=r.altNames[p];var a=l.value;if(l.type===7&&l.ip){if(a=Dt.util.bytesFromIP(l.ip),a===null){var t=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw t.extension=r,t}}else l.type===8&&(l.oid?a=L.oidToDer(L.oidToDer(l.oid)):a=L.oidToDer(a));r.value.value.push(L.create(L.Class.CONTEXT_SPECIFIC,l.type,!1,a))}}else if(r.name==="nsComment"&&e.cert){if(!/^[\x00-\x7F]*$/.test(r.comment)||r.comment.length<1||r.comment.length>128)throw new Error('Invalid "nsComment" content.');r.value=L.create(L.Class.UNIVERSAL,L.Type.IA5STRING,!1,r.comment)}else if(r.name==="subjectKeyIdentifier"&&e.cert){var m=e.cert.generateSubjectKeyIdentifier();r.subjectKeyIdentifier=m.toHex(),r.value=L.create(L.Class.UNIVERSAL,L.Type.OCTETSTRING,!1,m.getBytes())}else if(r.name==="authorityKeyIdentifier"&&e.cert){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);var u=r.value.value;if(r.keyIdentifier){var g=r.keyIdentifier===!0?e.cert.generateSubjectKeyIdentifier().getBytes():r.keyIdentifier;u.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!1,g))}if(r.authorityCertIssuer){var S=[L.create(L.Class.CONTEXT_SPECIFIC,4,!0,[iv(r.authorityCertIssuer===!0?e.cert.issuer:r.authorityCertIssuer)])];u.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,S))}if(r.serialNumber){var v=Dt.util.hexToBytes(r.serialNumber===!0?e.cert.serialNumber:r.serialNumber);u.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!1,v))}}else if(r.name==="cRLDistributionPoints"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);for(var u=r.value.value,b=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),x=L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[]),l,p=0;p<r.altNames.length;++p){l=r.altNames[p];var a=l.value;if(l.type===7&&l.ip){if(a=Dt.util.bytesFromIP(l.ip),a===null){var t=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw t.extension=r,t}}else l.type===8&&(l.oid?a=L.oidToDer(L.oidToDer(l.oid)):a=L.oidToDer(a));x.value.push(L.create(L.Class.CONTEXT_SPECIFIC,l.type,!1,a))}b.value.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[x])),u.push(b)}if(typeof r.value>"u"){var t=new Error("Extension value not specified.");throw t.extension=r,t}return r}o(RM,"_fillMissingExtensionFields");function zP(r,e){switch(r){case Or["RSASSA-PSS"]:var t=[];return e.hash.algorithmOid!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.hash.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")])])),e.mgf.algorithmOid!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.mgf.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.mgf.hash.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")])])])),e.saltLength!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(e.saltLength).getBytes())])),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,t);default:return L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")}}o(zP,"_signatureParametersToAsn1");function Fle(r){var e=L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[]);if(r.attributes.length===0)return e;for(var t=r.attributes,n=0;n<t.length;++n){var i=t[n],s=i.value,a=L.Type.UTF8;"valueTagClass"in i&&(a=i.valueTagClass),a===L.Type.UTF8&&(s=Dt.util.encodeUtf8(s));var u=!1;"valueConstructed"in i&&(u=i.valueConstructed);var c=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(i.type).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.SET,!0,[L.create(L.Class.UNIVERSAL,a,u,s)])]);e.value.push(c)}return e}o(Fle,"_CRIAttributesToAsn1");var Lle=new Date("1950-01-01T00:00:00Z"),kle=new Date("2050-01-01T00:00:00Z");function NM(r){return r>=Lle&&r<kle?L.create(L.Class.UNIVERSAL,L.Type.UTCTIME,!1,L.dateToUtcTime(r)):L.create(L.Class.UNIVERSAL,L.Type.GENERALIZEDTIME,!1,L.dateToGeneralizedTime(r))}o(NM,"_dateToAsn1");rt.getTBSCertificate=function(r){var e=NM(r.validity.notBefore),t=NM(r.validity.notAfter),n=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.version).getBytes())]),L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,Dt.util.hexToBytes(r.serialNumber)),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.siginfo.algorithmOid).getBytes()),zP(r.siginfo.algorithmOid,r.siginfo.parameters)]),iv(r.issuer),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,t]),iv(r.subject),rt.publicKeyToAsn1(r.publicKey)]);return r.issuer.uniqueId&&n.value.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,[L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.issuer.uniqueId)])),r.subject.uniqueId&&n.value.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!0,[L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.subject.uniqueId)])),r.extensions.length>0&&n.value.push(rt.certificateExtensionsToAsn1(r.extensions)),n};rt.getCertificationRequestInfo=function(r){var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.version).getBytes()),iv(r.subject),rt.publicKeyToAsn1(r.publicKey),Fle(r)]);return e};rt.distinguishedNameToAsn1=function(r){return iv(r)};rt.certificateToAsn1=function(r){var e=r.tbsCertificate||rt.getTBSCertificate(r);return L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.signatureOid).getBytes()),zP(r.signatureOid,r.signatureParameters)]),L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.signature)])};rt.certificateExtensionsToAsn1=function(r){var e=L.create(L.Class.CONTEXT_SPECIFIC,3,!0,[]),t=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);e.value.push(t);for(var n=0;n<r.length;++n)t.value.push(rt.certificateExtensionToAsn1(r[n]));return e};rt.certificateExtensionToAsn1=function(r){var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);e.value.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.id).getBytes())),r.critical&&e.value.push(L.create(L.Class.UNIVERSAL,L.Type.BOOLEAN,!1,"\xFF"));var t=r.value;return typeof r.value!="string"&&(t=L.toDer(t).getBytes()),e.value.push(L.create(L.Class.UNIVERSAL,L.Type.OCTETSTRING,!1,t)),e};rt.certificationRequestToAsn1=function(r){var e=r.certificationRequestInfo||rt.getCertificationRequestInfo(r);return L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.signatureOid).getBytes()),zP(r.signatureOid,r.signatureParameters)]),L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.signature)])};rt.createCaStore=function(r){var e={certs:{}};e.getIssuer=function(a){var u=t(a.issuer);return u},e.addCertificate=function(a){if(typeof a=="string"&&(a=Dt.pki.certificateFromPem(a)),n(a.subject),!e.hasCertificate(a))if(a.subject.hash in e.certs){var u=e.certs[a.subject.hash];Dt.util.isArray(u)||(u=[u]),u.push(a),e.certs[a.subject.hash]=u}else e.certs[a.subject.hash]=a},e.hasCertificate=function(a){typeof a=="string"&&(a=Dt.pki.certificateFromPem(a));var u=t(a.subject);if(!u)return!1;Dt.util.isArray(u)||(u=[u]);for(var c=L.toDer(rt.certificateToAsn1(a)).getBytes(),l=0;l<u.length;++l){var p=L.toDer(rt.certificateToAsn1(u[l])).getBytes();if(c===p)return!0}return!1},e.listAllCertificates=function(){var a=[];for(var u in e.certs)if(e.certs.hasOwnProperty(u)){var c=e.certs[u];if(!Dt.util.isArray(c))a.push(c);else for(var l=0;l<c.length;++l)a.push(c[l])}return a},e.removeCertificate=function(a){var u;if(typeof a=="string"&&(a=Dt.pki.certificateFromPem(a)),n(a.subject),!e.hasCertificate(a))return null;var c=t(a.subject);if(!Dt.util.isArray(c))return u=e.certs[a.subject.hash],delete e.certs[a.subject.hash],u;for(var l=L.toDer(rt.certificateToAsn1(a)).getBytes(),p=0;p<c.length;++p){var m=L.toDer(rt.certificateToAsn1(c[p])).getBytes();l===m&&(u=c[p],c.splice(p,1))}return c.length===0&&delete e.certs[a.subject.hash],u};function t(a){return n(a),e.certs[a.hash]||null}o(t,"getBySubject");function n(a){if(!a.hash){var u=Dt.md.sha1.create();a.attributes=rt.RDNAttributesAsArray(iv(a),u),a.hash=u.digest().toHex()}}if(o(n,"ensureSubjectHasHash"),r)for(var i=0;i<r.length;++i){var s=r[i];e.addCertificate(s)}return e};rt.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"};rt.verifyCertificateChain=function(r,e,t){typeof t=="function"&&(t={verify:t}),t=t||{},e=e.slice(0);var n=e.slice(0),i=t.validityCheckDate;typeof i>"u"&&(i=new Date);var s=!0,a=null,u=0;do{var c=e.shift(),l=null,p=!1;if(i&&(i<c.validity.notBefore||i>c.validity.notAfter)&&(a={message:"Certificate is not valid yet or has expired.",error:rt.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:i}),a===null){if(l=e[0]||r.getIssuer(c),l===null&&c.isIssuer(c)&&(p=!0,l=c),l){var m=l;Dt.util.isArray(m)||(m=[m]);for(var g=!1;!g&&m.length>0;){l=m.shift();try{g=l.verify(c)}catch{}}g||(a={message:"Certificate signature is invalid.",error:rt.certificateError.bad_certificate})}a===null&&(!l||p)&&!r.hasCertificate(c)&&(a={message:"Certificate is not trusted.",error:rt.certificateError.unknown_ca})}if(a===null&&l&&!c.isIssuer(l)&&(a={message:"Certificate issuer is invalid.",error:rt.certificateError.bad_certificate}),a===null)for(var S={keyUsage:!0,basicConstraints:!0},v=0;a===null&&v<c.extensions.length;++v){var b=c.extensions[v];b.critical&&!(b.name in S)&&(a={message:"Certificate has an unsupported critical extension.",error:rt.certificateError.unsupported_certificate})}if(a===null&&(!s||e.length===0&&(!l||p))){var x=c.getExtension("basicConstraints"),E=c.getExtension("keyUsage");if(E!==null&&(!E.keyCertSign||x===null)&&(a={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:rt.certificateError.bad_certificate}),a===null&&x!==null&&!x.cA&&(a={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:rt.certificateError.bad_certificate}),a===null&&E!==null&&"pathLenConstraint"in x){var N=u-1;N>x.pathLenConstraint&&(a={message:"Certificate basicConstraints pathLenConstraint violated.",error:rt.certificateError.bad_certificate})}}var w=a===null?!0:a.error,C=t.verify?t.verify(w,u,n):w;if(C===!0)a=null;else throw w===!0&&(a={message:"The application rejected the certificate.",error:rt.certificateError.bad_certificate}),(C||C===0)&&(typeof C=="object"&&!Dt.util.isArray(C)?(C.message&&(a.message=C.message),C.error&&(a.error=C.error)):typeof C=="string"&&(a.error=C)),a;s=!1,++u}while(e.length>0);return!0}});var $P=Z((m2e,OM)=>{"use strict";var vn=pr();Nu();Qg();Op();qP();MP();Fo();Ox();tv();kr();ZN();var Y=vn.asn1,xr=vn.pki,Bx=OM.exports=vn.pkcs12=vn.pkcs12||{},_M={name:"ContentInfo",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},Vle={name:"PFX",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"version"},_M,{name:"PFX.macData",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:Y.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},jle={name:"SafeBag",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},Ule={name:"Attribute",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SET,constructed:!0,capture:"values"}]},Mle={name:"CertBag",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:Y.Class.UNIVERSAL,type:Y.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function Px(r,e,t,n){for(var i=[],s=0;s<r.length;s++)for(var a=0;a<r[s].safeBags.length;a++){var u=r[s].safeBags[a];if(!(n!==void 0&&u.type!==n)){if(e===null){i.push(u);continue}u.attributes[e]!==void 0&&u.attributes[e].indexOf(t)>=0&&i.push(u)}}return i}o(Px,"_getBagsByAttribute");Bx.pkcs12FromAsn1=function(r,e,t){typeof e=="string"?(t=e,e=!0):e===void 0&&(e=!0);var n={},i=[];if(!Y.validate(r,Vle,n,i)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var a={version:n.version.charCodeAt(0),safeContents:[],getBags:o(function(x){var E={},N;return"localKeyId"in x?N=x.localKeyId:"localKeyIdHex"in x&&(N=vn.util.hexToBytes(x.localKeyIdHex)),N===void 0&&!("friendlyName"in x)&&"bagType"in x&&(E[x.bagType]=Px(a.safeContents,null,null,x.bagType)),N!==void 0&&(E.localKeyId=Px(a.safeContents,"localKeyId",N,x.bagType)),"friendlyName"in x&&(E.friendlyName=Px(a.safeContents,"friendlyName",x.friendlyName,x.bagType)),E},"getBags"),getBagsByFriendlyName:o(function(x,E){return Px(a.safeContents,"friendlyName",x,E)},"getBagsByFriendlyName"),getBagsByLocalKeyId:o(function(x,E){return Px(a.safeContents,"localKeyId",x,E)},"getBagsByLocalKeyId")};if(n.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=n.version.charCodeAt(0),s}if(Y.derToOid(n.contentType)!==xr.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=Y.derToOid(n.contentType),s}var u=n.content.value[0];if(u.tagClass!==Y.Class.UNIVERSAL||u.type!==Y.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(u=KP(u),n.mac){var c=null,l=0,p=Y.derToOid(n.macAlgorithm);switch(p){case xr.oids.sha1:c=vn.md.sha1.create(),l=20;break;case xr.oids.sha256:c=vn.md.sha256.create(),l=32;break;case xr.oids.sha384:c=vn.md.sha384.create(),l=48;break;case xr.oids.sha512:c=vn.md.sha512.create(),l=64;break;case xr.oids.md5:c=vn.md.md5.create(),l=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+p);var m=new vn.util.ByteBuffer(n.macSalt),g="macIterations"in n?parseInt(vn.util.bytesToHex(n.macIterations),16):1,S=Bx.generateKey(t,m,3,g,l,c),v=vn.hmac.create();v.start(c,S),v.update(u.value);var b=v.getMac();if(b.getBytes()!==n.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return qle(a,u.value,e,t),a};function KP(r){if(r.composed||r.constructed){for(var e=vn.util.createBuffer(),t=0;t<r.value.length;++t)e.putBytes(r.value[t].value);r.composed=r.constructed=!1,r.value=e.getBytes()}return r}o(KP,"_decodePkcs7Data");function qle(r,e,t,n){if(e=Y.fromDer(e,t),e.tagClass!==Y.Class.UNIVERSAL||e.type!==Y.Type.SEQUENCE||e.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var i=0;i<e.value.length;i++){var s=e.value[i],a={},u=[];if(!Y.validate(s,_M,a,u)){var c=new Error("Cannot read ContentInfo.");throw c.errors=u,c}var l={encrypted:!1},p=null,m=a.content.value[0];switch(Y.derToOid(a.contentType)){case xr.oids.data:if(m.tagClass!==Y.Class.UNIVERSAL||m.type!==Y.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");p=KP(m).value;break;case xr.oids.encryptedData:p=Hle(m,n),l.encrypted=!0;break;default:var c=new Error("Unsupported PKCS#12 contentType.");throw c.contentType=Y.derToOid(a.contentType),c}l.safeBags=zle(p,t,n),r.safeContents.push(l)}}o(qle,"_decodeAuthenticatedSafe");function Hle(r,e){var t={},n=[];if(!Y.validate(r,vn.pkcs7.asn1.encryptedDataValidator,t,n)){var i=new Error("Cannot read EncryptedContentInfo.");throw i.errors=n,i}var s=Y.derToOid(t.contentType);if(s!==xr.oids.data){var i=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw i.oid=s,i}s=Y.derToOid(t.encAlgorithm);var a=xr.pbe.getCipher(s,t.encParameter,e),u=KP(t.encryptedContentAsn1),c=vn.util.createBuffer(u.value);if(a.update(c),!a.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return a.output.getBytes()}o(Hle,"_decryptSafeContents");function zle(r,e,t){if(!e&&r.length===0)return[];if(r=Y.fromDer(r,e),r.tagClass!==Y.Class.UNIVERSAL||r.type!==Y.Type.SEQUENCE||r.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var n=[],i=0;i<r.value.length;i++){var s=r.value[i],a={},u=[];if(!Y.validate(s,jle,a,u)){var c=new Error("Cannot read SafeBag.");throw c.errors=u,c}var l={type:Y.derToOid(a.bagId),attributes:Kle(a.bagAttributes)};n.push(l);var p,m,g=a.bagValue.value[0];switch(l.type){case xr.oids.pkcs8ShroudedKeyBag:if(g=xr.decryptPrivateKeyInfo(g,t),g===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case xr.oids.keyBag:try{l.key=xr.privateKeyFromAsn1(g)}catch{l.key=null,l.asn1=g}continue;case xr.oids.certBag:p=Mle,m=o(function(){if(Y.derToOid(a.certId)!==xr.oids.x509Certificate){var v=new Error("Unsupported certificate type, only X.509 supported.");throw v.oid=Y.derToOid(a.certId),v}var b=Y.fromDer(a.cert,e);try{l.cert=xr.certificateFromAsn1(b,!0)}catch{l.cert=null,l.asn1=b}},"decoder");break;default:var c=new Error("Unsupported PKCS#12 SafeBag type.");throw c.oid=l.type,c}if(p!==void 0&&!Y.validate(g,p,a,u)){var c=new Error("Cannot read PKCS#12 "+p.name);throw c.errors=u,c}m()}return n}o(zle,"_decodeSafeContents");function Kle(r){var e={};if(r!==void 0)for(var t=0;t<r.length;++t){var n={},i=[];if(!Y.validate(r[t],Ule,n,i)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=i,s}var a=Y.derToOid(n.oid);if(xr.oids[a]!==void 0){e[xr.oids[a]]=[];for(var u=0;u<n.values.length;++u)e[xr.oids[a]].push(n.values[u].value)}}return e}o(Kle,"_decodeBagAttributes");Bx.toPkcs12Asn1=function(r,e,t,n){n=n||{},n.saltSize=n.saltSize||8,n.count=n.count||2048,n.algorithm=n.algorithm||n.encAlgorithm||"aes128","useMac"in n||(n.useMac=!0),"localKeyId"in n||(n.localKeyId=null),"generateLocalKeyId"in n||(n.generateLocalKeyId=!0);var i=n.localKeyId,s;if(i!==null)i=vn.util.hexToBytes(i);else if(n.generateLocalKeyId)if(e){var a=vn.util.isArray(e)?e[0]:e;typeof a=="string"&&(a=xr.certificateFromPem(a));var u=vn.md.sha1.create();u.update(Y.toDer(xr.certificateToAsn1(a)).getBytes()),i=u.digest().getBytes()}else i=vn.random.getBytes(20);var c=[];i!==null&&c.push(Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.localKeyId).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,i)])])),"friendlyName"in n&&c.push(Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.friendlyName).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.BMPSTRING,!1,n.friendlyName)])])),c.length>0&&(s=Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,c));var l=[],p=[];e!==null&&(vn.util.isArray(e)?p=e:p=[e]);for(var m=[],g=0;g<p.length;++g){e=p[g],typeof e=="string"&&(e=xr.certificateFromPem(e));var S=g===0?s:void 0,v=xr.certificateToAsn1(e),b=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.certBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.x509Certificate).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(v).getBytes())])])]),S]);m.push(b)}if(m.length>0){var x=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,m),E=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(x).getBytes())])]);l.push(E)}var N=null;if(r!==null){var w=xr.wrapRsaPrivateKey(xr.privateKeyToAsn1(r));t===null?N=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.keyBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[w]),s]):N=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.pkcs8ShroudedKeyBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[xr.encryptPrivateKeyInfo(w,t,n)]),s]);var C=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[N]),A=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(C).getBytes())])]);l.push(A)}var R=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,l),M;if(n.useMac){var u=vn.md.sha1.create(),_=new vn.util.ByteBuffer(vn.random.getBytes(n.saltSize)),H=n.count,r=Bx.generateKey(t,_,3,H,20),z=vn.hmac.create();z.start(u,r),z.update(Y.toDer(R).getBytes());var K=z.getMac();M=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.sha1).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.NULL,!1,"")]),Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,K.getBytes())]),Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,_.getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,Y.integerToDer(H).getBytes())])}return Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,Y.integerToDer(3).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(R).getBytes())])]),M])};Bx.generateKey=vn.pbe.generatePkcs12Key});var XP=Z((v2e,PM)=>{"use strict";var Lp=pr();Nu();Op();MP();Jd();HN();$P();JN();Ox();kr();ZN();var GP=Lp.asn1,sv=PM.exports=Lp.pki=Lp.pki||{};sv.pemToDer=function(r){var e=Lp.pem.decode(r)[0];if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return Lp.util.createBuffer(e.body)};sv.privateKeyFromPem=function(r){var e=Lp.pem.decode(r)[0];if(e.type!=="PRIVATE KEY"&&e.type!=="RSA PRIVATE KEY"){var t=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var n=GP.fromDer(e.body);return sv.privateKeyFromAsn1(n)};sv.privateKeyToPem=function(r,e){var t={type:"RSA PRIVATE KEY",body:GP.toDer(sv.privateKeyToAsn1(r)).getBytes()};return Lp.pem.encode(t,{maxline:e})};sv.privateKeyInfoToPem=function(r,e){var t={type:"PRIVATE KEY",body:GP.toDer(r).getBytes()};return Lp.pem.encode(t,{maxline:e})}});var eB=Z((y2e,MM)=>{"use strict";var ze=pr();Nu();Qg();jN();Jd();XP();Fo();tv();kr();var n2=o(function(r,e,t,n){var i=ze.util.createBuffer(),s=r.length>>1,a=s+(r.length&1),u=r.substr(0,a),c=r.substr(s,a),l=ze.util.createBuffer(),p=ze.hmac.create();t=e+t;var m=Math.ceil(n/16),g=Math.ceil(n/20);p.start("MD5",u);var S=ze.util.createBuffer();l.putBytes(t);for(var v=0;v<m;++v)p.start(null,null),p.update(l.getBytes()),l.putBuffer(p.digest()),p.start(null,null),p.update(l.bytes()+t),S.putBuffer(p.digest());p.start("SHA1",c);var b=ze.util.createBuffer();l.clear(),l.putBytes(t);for(var v=0;v<g;++v)p.start(null,null),p.update(l.getBytes()),l.putBuffer(p.digest()),p.start(null,null),p.update(l.bytes()+t),b.putBuffer(p.digest());return i.putBytes(ze.util.xorBytes(S.getBytes(),b.getBytes(),n)),i},"prf_TLS1"),$le=o(function(r,e,t){var n=ze.hmac.create();n.start("SHA1",r);var i=ze.util.createBuffer();return i.putInt32(e[0]),i.putInt32(e[1]),i.putByte(t.type),i.putByte(t.version.major),i.putByte(t.version.minor),i.putInt16(t.length),i.putBytes(t.fragment.bytes()),n.update(i.getBytes()),n.digest().getBytes()},"hmac_sha1"),Gle=o(function(r,e,t){var n=!1;try{var i=r.deflate(e.fragment.getBytes());e.fragment=ze.util.createBuffer(i),e.length=i.length,n=!0}catch{}return n},"deflate"),Xle=o(function(r,e,t){var n=!1;try{var i=r.inflate(e.fragment.getBytes());e.fragment=ze.util.createBuffer(i),e.length=i.length,n=!0}catch{}return n},"inflate"),uo=o(function(r,e){var t=0;switch(e){case 1:t=r.getByte();break;case 2:t=r.getInt16();break;case 3:t=r.getInt24();break;case 4:t=r.getInt32();break}return ze.util.createBuffer(r.getBytes(t))},"readVector"),jo=o(function(r,e,t){r.putInt(t.length(),e<<3),r.putBuffer(t)},"writeVector"),j={};j.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}};j.SupportedVersions=[j.Versions.TLS_1_1,j.Versions.TLS_1_0];j.Version=j.SupportedVersions[0];j.MaxFragment=15360;j.ConnectionEnd={server:0,client:1};j.PRFAlgorithm={tls_prf_sha256:0};j.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2};j.CipherType={stream:0,block:1,aead:2};j.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4};j.CompressionMethod={none:0,deflate:1};j.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24};j.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};j.Alert={};j.Alert.Level={warning:1,fatal:2};j.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};j.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2};j.CipherSuites={};j.getCipherSuite=function(r){var e=null;for(var t in j.CipherSuites){var n=j.CipherSuites[t];if(n.id[0]===r.charCodeAt(0)&&n.id[1]===r.charCodeAt(1)){e=n;break}}return e};j.handleUnexpected=function(r,e){var t=!r.open&&r.entity===j.ConnectionEnd.client;t||r.error(r,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unexpected_message}})};j.handleHelloRequest=function(r,e,t){!r.handshaking&&r.handshakes>0&&(j.queue(r,j.createAlert(r,{level:j.Alert.Level.warning,description:j.Alert.Description.no_renegotiation})),j.flush(r)),r.process()};j.parseHelloMessage=function(r,e,t){var n=null,i=r.entity===j.ConnectionEnd.client;if(t<38)r.error(r,{message:i?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});else{var s=e.fragment,a=s.length();if(n={version:{major:s.getByte(),minor:s.getByte()},random:ze.util.createBuffer(s.getBytes(32)),session_id:uo(s,1),extensions:[]},i?(n.cipher_suite=s.getBytes(2),n.compression_method=s.getByte()):(n.cipher_suites=uo(s,2),n.compression_methods=uo(s,1)),a=t-(a-s.length()),a>0){for(var u=uo(s,2);u.length()>0;)n.extensions.push({type:[u.getByte(),u.getByte()],data:uo(u,2)});if(!i)for(var c=0;c<n.extensions.length;++c){var l=n.extensions[c];if(l.type[0]===0&&l.type[1]===0)for(var p=uo(l.data,2);p.length()>0;){var m=p.getByte();if(m!==0)break;r.session.extensions.server_name.serverNameList.push(uo(p,2).getBytes())}}}if(r.session.version&&(n.version.major!==r.session.version.major||n.version.minor!==r.session.version.minor))return r.error(r,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}});if(i)r.session.cipherSuite=j.getCipherSuite(n.cipher_suite);else for(var g=ze.util.createBuffer(n.cipher_suites.bytes());g.length()>0&&(r.session.cipherSuite=j.getCipherSuite(g.getBytes(2)),r.session.cipherSuite===null););if(r.session.cipherSuite===null)return r.error(r,{message:"No cipher suites in common.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.handshake_failure},cipherSuite:ze.util.bytesToHex(n.cipher_suite)});i?r.session.compressionMethod=n.compression_method:r.session.compressionMethod=j.CompressionMethod.none}return n};j.createSecurityParameters=function(r,e){var t=r.entity===j.ConnectionEnd.client,n=e.random.bytes(),i=t?r.session.sp.client_random:n,s=t?n:j.createRandom().getBytes();r.session.sp={entity:r.entity,prf_algorithm:j.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:r.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:i,server_random:s}};j.handleServerHello=function(r,e,t){var n=j.parseHelloMessage(r,e,t);if(!r.fail){if(n.version.minor<=r.version.minor)r.version.minor=n.version.minor;else return r.error(r,{message:"Incompatible TLS version.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}});r.session.version=r.version;var i=n.session_id.bytes();i.length>0&&i===r.session.id?(r.expect=LM,r.session.resuming=!0,r.session.sp.server_random=n.random.bytes()):(r.expect=Jle,r.session.resuming=!1,j.createSecurityParameters(r,n)),r.session.id=i,r.process()}};j.handleClientHello=function(r,e,t){var n=j.parseHelloMessage(r,e,t);if(!r.fail){var i=n.session_id.bytes(),s=null;if(r.sessionCache&&(s=r.sessionCache.getSession(i),s===null?i="":(s.version.major!==n.version.major||s.version.minor>n.version.minor)&&(s=null,i="")),i.length===0&&(i=ze.random.getBytes(32)),r.session.id=i,r.session.clientHelloVersion=n.version,r.session.sp={},s)r.version=r.session.version=s.version,r.session.sp=s.sp;else{for(var a,u=1;u<j.SupportedVersions.length&&(a=j.SupportedVersions[u],!(a.minor<=n.version.minor));++u);r.version={major:a.major,minor:a.minor},r.session.version=r.version}s!==null?(r.expect=YP,r.session.resuming=!0,r.session.sp.client_random=n.random.bytes()):(r.expect=r.verifyClient!==!1?nfe:QP,r.session.resuming=!1,j.createSecurityParameters(r,n)),r.open=!0,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerHello(r)})),r.session.resuming?(j.queue(r,j.createRecord(r,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),r.state.pending=j.createConnectionState(r),r.state.current.write=r.state.pending.write,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createFinished(r)}))):(j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificate(r)})),r.fail||(j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerKeyExchange(r)})),r.verifyClient!==!1&&j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificateRequest(r)})),j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerHelloDone(r)})))),j.flush(r),r.process()}};j.handleCertificate=function(r,e,t){if(t<3)return r.error(r,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment,i={certificate_list:uo(n,3)},s,a,u=[];try{for(;i.certificate_list.length()>0;)s=uo(i.certificate_list,3),a=ze.asn1.fromDer(s),s=ze.pki.certificateFromAsn1(a,!0),u.push(s)}catch(l){return r.error(r,{message:"Could not parse certificate list.",cause:l,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate}})}var c=r.entity===j.ConnectionEnd.client;(c||r.verifyClient===!0)&&u.length===0?r.error(r,{message:c?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}}):u.length===0?r.expect=c?BM:QP:(c?r.session.serverCertificate=u[0]:r.session.clientCertificate=u[0],j.verifyCertificateChain(r,u)&&(r.expect=c?BM:QP)),r.process()};j.handleServerKeyExchange=function(r,e,t){if(t>0)return r.error(r,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unsupported_certificate}});r.expect=Qle,r.process()};j.handleClientKeyExchange=function(r,e,t){if(t<48)return r.error(r,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unsupported_certificate}});var n=e.fragment,i={enc_pre_master_secret:uo(n,2).getBytes()},s=null;if(r.getPrivateKey)try{s=r.getPrivateKey(r,r.session.serverCertificate),s=ze.pki.privateKeyFromPem(s)}catch(c){r.error(r,{message:"Could not get private key.",cause:c,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}})}if(s===null)return r.error(r,{message:"No private key set.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}});try{var a=r.session.sp;a.pre_master_secret=s.decrypt(i.enc_pre_master_secret);var u=r.session.clientHelloVersion;if(u.major!==a.pre_master_secret.charCodeAt(0)||u.minor!==a.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{a.pre_master_secret=ze.random.getBytes(48)}r.expect=YP,r.session.clientCertificate!==null&&(r.expect=ife),r.process()};j.handleCertificateRequest=function(r,e,t){if(t<3)return r.error(r,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment,i={certificate_types:uo(n,1),certificate_authorities:uo(n,2)};r.session.certificateRequest=i,r.expect=Yle,r.process()};j.handleCertificateVerify=function(r,e,t){if(t<2)return r.error(r,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment;n.read-=4;var i=n.bytes();n.read+=4;var s={signature:uo(n,2).getBytes()},a=ze.util.createBuffer();a.putBuffer(r.session.md5.digest()),a.putBuffer(r.session.sha1.digest()),a=a.getBytes();try{var u=r.session.clientCertificate;if(!u.publicKey.verify(a,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");r.session.md5.update(i),r.session.sha1.update(i)}catch{return r.error(r,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.handshake_failure}})}r.expect=YP,r.process()};j.handleServerHelloDone=function(r,e,t){if(t>0)return r.error(r,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.record_overflow}});if(r.serverCertificate===null){var n={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.insufficient_security}},i=0,s=r.verify(r,n.alert.description,i,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!ze.util.isArray(s)?(s.message&&(n.message=s.message),s.alert&&(n.alert.description=s.alert)):typeof s=="number"&&(n.alert.description=s)),r.error(r,n)}r.session.certificateRequest!==null&&(e=j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificate(r)}),j.queue(r,e)),e=j.createRecord(r,{type:j.ContentType.handshake,data:j.createClientKeyExchange(r)}),j.queue(r,e),r.expect=tfe;var a=o(function(u,c){u.session.certificateRequest!==null&&u.session.clientCertificate!==null&&j.queue(u,j.createRecord(u,{type:j.ContentType.handshake,data:j.createCertificateVerify(u,c)})),j.queue(u,j.createRecord(u,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),u.state.pending=j.createConnectionState(u),u.state.current.write=u.state.pending.write,j.queue(u,j.createRecord(u,{type:j.ContentType.handshake,data:j.createFinished(u)})),u.expect=LM,j.flush(u),u.process()},"callback");if(r.session.certificateRequest===null||r.session.clientCertificate===null)return a(r,null);j.getClientSignature(r,a)};j.handleChangeCipherSpec=function(r,e){if(e.fragment.getByte()!==1)return r.error(r,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var t=r.entity===j.ConnectionEnd.client;(r.session.resuming&&t||!r.session.resuming&&!t)&&(r.state.pending=j.createConnectionState(r)),r.state.current.read=r.state.pending.read,(!r.session.resuming&&t||r.session.resuming&&!t)&&(r.state.pending=null),r.expect=t?Zle:sfe,r.process()};j.handleFinished=function(r,e,t){var n=e.fragment;n.read-=4;var i=n.bytes();n.read+=4;var s=e.fragment.getBytes();n=ze.util.createBuffer(),n.putBuffer(r.session.md5.digest()),n.putBuffer(r.session.sha1.digest());var a=r.entity===j.ConnectionEnd.client,u=a?"server finished":"client finished",c=r.session.sp,l=12,p=n2;if(n=p(c.master_secret,u,n.getBytes(),l),n.getBytes()!==s)return r.error(r,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.decrypt_error}});r.session.md5.update(i),r.session.sha1.update(i),(r.session.resuming&&a||!r.session.resuming&&!a)&&(j.queue(r,j.createRecord(r,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),r.state.current.write=r.state.pending.write,r.state.pending=null,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createFinished(r)}))),r.expect=a?efe:afe,r.handshaking=!1,++r.handshakes,r.peerCertificate=a?r.session.serverCertificate:r.session.clientCertificate,j.flush(r),r.isConnected=!0,r.connected(r),r.process()};j.handleAlert=function(r,e){var t=e.fragment,n={level:t.getByte(),description:t.getByte()},i;switch(n.description){case j.Alert.Description.close_notify:i="Connection closed.";break;case j.Alert.Description.unexpected_message:i="Unexpected message.";break;case j.Alert.Description.bad_record_mac:i="Bad record MAC.";break;case j.Alert.Description.decryption_failed:i="Decryption failed.";break;case j.Alert.Description.record_overflow:i="Record overflow.";break;case j.Alert.Description.decompression_failure:i="Decompression failed.";break;case j.Alert.Description.handshake_failure:i="Handshake failure.";break;case j.Alert.Description.bad_certificate:i="Bad certificate.";break;case j.Alert.Description.unsupported_certificate:i="Unsupported certificate.";break;case j.Alert.Description.certificate_revoked:i="Certificate revoked.";break;case j.Alert.Description.certificate_expired:i="Certificate expired.";break;case j.Alert.Description.certificate_unknown:i="Certificate unknown.";break;case j.Alert.Description.illegal_parameter:i="Illegal parameter.";break;case j.Alert.Description.unknown_ca:i="Unknown certificate authority.";break;case j.Alert.Description.access_denied:i="Access denied.";break;case j.Alert.Description.decode_error:i="Decode error.";break;case j.Alert.Description.decrypt_error:i="Decrypt error.";break;case j.Alert.Description.export_restriction:i="Export restriction.";break;case j.Alert.Description.protocol_version:i="Unsupported protocol version.";break;case j.Alert.Description.insufficient_security:i="Insufficient security.";break;case j.Alert.Description.internal_error:i="Internal error.";break;case j.Alert.Description.user_canceled:i="User canceled.";break;case j.Alert.Description.no_renegotiation:i="Renegotiation not supported.";break;default:i="Unknown error.";break}if(n.description===j.Alert.Description.close_notify)return r.close();r.error(r,{message:i,send:!1,origin:r.entity===j.ConnectionEnd.client?"server":"client",alert:n}),r.process()};j.handleHandshake=function(r,e){var t=e.fragment,n=t.getByte(),i=t.getInt24();if(i>t.length())return r.fragmented=e,e.fragment=ze.util.createBuffer(),t.read-=4,r.process();r.fragmented=null,t.read-=4;var s=t.bytes(i+4);t.read+=4,n in r2[r.entity][r.expect]?(r.entity===j.ConnectionEnd.server&&!r.open&&!r.fail&&(r.handshaking=!0,r.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:ze.md.md5.create(),sha1:ze.md.sha1.create()}),n!==j.HandshakeType.hello_request&&n!==j.HandshakeType.certificate_verify&&n!==j.HandshakeType.finished&&(r.session.md5.update(s),r.session.sha1.update(s)),r2[r.entity][r.expect][n](r,e,i)):j.handleUnexpected(r,e)};j.handleApplicationData=function(r,e){r.data.putBuffer(e.fragment),r.dataReady(r),r.process()};j.handleHeartbeat=function(r,e){var t=e.fragment,n=t.getByte(),i=t.getInt16(),s=t.getBytes(i);if(n===j.HeartbeatMessageType.heartbeat_request){if(r.handshaking||i>s.length)return r.process();j.queue(r,j.createRecord(r,{type:j.ContentType.heartbeat,data:j.createHeartbeat(j.HeartbeatMessageType.heartbeat_response,s)})),j.flush(r)}else if(n===j.HeartbeatMessageType.heartbeat_response){if(s!==r.expectedHeartbeatPayload)return r.process();r.heartbeatReceived&&r.heartbeatReceived(r,ze.util.createBuffer(s))}r.process()};var Wle=0,Jle=1,BM=2,Qle=3,Yle=4,LM=5,Zle=6,efe=7,tfe=8,rfe=0,nfe=1,QP=2,ife=3,YP=4,sfe=5,afe=6,V=j.handleUnexpected,kM=j.handleChangeCipherSpec,gs=j.handleAlert,ha=j.handleHandshake,VM=j.handleApplicationData,vs=j.handleHeartbeat,ZP=[];ZP[j.ConnectionEnd.client]=[[V,gs,ha,V,vs],[V,gs,ha,V,vs],[V,gs,ha,V,vs],[V,gs,ha,V,vs],[V,gs,ha,V,vs],[kM,gs,V,V,vs],[V,gs,ha,V,vs],[V,gs,ha,VM,vs],[V,gs,ha,V,vs]];ZP[j.ConnectionEnd.server]=[[V,gs,ha,V,vs],[V,gs,ha,V,vs],[V,gs,ha,V,vs],[V,gs,ha,V,vs],[kM,gs,V,V,vs],[V,gs,ha,V,vs],[V,gs,ha,VM,vs],[V,gs,ha,V,vs]];var kp=j.handleHelloRequest,ofe=j.handleServerHello,jM=j.handleCertificate,FM=j.handleServerKeyExchange,WP=j.handleCertificateRequest,e2=j.handleServerHelloDone,UM=j.handleFinished,r2=[];r2[j.ConnectionEnd.client]=[[V,V,ofe,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,jM,FM,WP,e2,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,FM,WP,e2,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,V,WP,e2,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,V,V,e2,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,UM],[kp,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[kp,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V]];var ufe=j.handleClientHello,cfe=j.handleClientKeyExchange,lfe=j.handleCertificateVerify;r2[j.ConnectionEnd.server]=[[V,ufe,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,jM,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,cfe,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,lfe,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,UM],[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]];j.generateKeys=function(r,e){var t=n2,n=e.client_random+e.server_random;r.session.resuming||(e.master_secret=t(e.pre_master_secret,"master secret",n,48).bytes(),e.pre_master_secret=null),n=e.server_random+e.client_random;var i=2*e.mac_key_length+2*e.enc_key_length,s=r.version.major===j.Versions.TLS_1_0.major&&r.version.minor===j.Versions.TLS_1_0.minor;s&&(i+=2*e.fixed_iv_length);var a=t(e.master_secret,"key expansion",n,i),u={client_write_MAC_key:a.getBytes(e.mac_key_length),server_write_MAC_key:a.getBytes(e.mac_key_length),client_write_key:a.getBytes(e.enc_key_length),server_write_key:a.getBytes(e.enc_key_length)};return s&&(u.client_write_IV=a.getBytes(e.fixed_iv_length),u.server_write_IV=a.getBytes(e.fixed_iv_length)),u};j.createConnectionState=function(r){var e=r.entity===j.ConnectionEnd.client,t=o(function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:o(function(a){return!0},"cipherFunction"),compressionState:null,compressFunction:o(function(a){return!0},"compressFunction"),updateSequenceNumber:o(function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]},"updateSequenceNumber")};return s},"createMode"),n={read:t(),write:t()};if(n.read.update=function(s,a){return n.read.cipherFunction(a,n.read)?n.read.compressFunction(s,a,n.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_record_mac}}),!s.fail},n.write.update=function(s,a){return n.write.compressFunction(s,a,n.write)?n.write.cipherFunction(a,n.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}),!s.fail},r.session){var i=r.session.sp;switch(r.session.cipherSuite.initSecurityParameters(i),i.keys=j.generateKeys(r,i),n.read.macKey=e?i.keys.server_write_MAC_key:i.keys.client_write_MAC_key,n.write.macKey=e?i.keys.client_write_MAC_key:i.keys.server_write_MAC_key,r.session.cipherSuite.initConnectionState(n,r,i),i.compression_algorithm){case j.CompressionMethod.none:break;case j.CompressionMethod.deflate:n.read.compressFunction=Xle,n.write.compressFunction=Gle;break;default:throw new Error("Unsupported compression algorithm.")}}return n};j.createRandom=function(){var r=new Date,e=+r+r.getTimezoneOffset()*6e4,t=ze.util.createBuffer();return t.putInt32(e),t.putBytes(ze.random.getBytes(28)),t};j.createRecord=function(r,e){if(!e.data)return null;var t={type:e.type,version:{major:r.version.major,minor:r.version.minor},length:e.data.length(),fragment:e.data};return t};j.createAlert=function(r,e){var t=ze.util.createBuffer();return t.putByte(e.level),t.putByte(e.description),j.createRecord(r,{type:j.ContentType.alert,data:t})};j.createClientHello=function(r){r.session.clientHelloVersion={major:r.version.major,minor:r.version.minor};for(var e=ze.util.createBuffer(),t=0;t<r.cipherSuites.length;++t){var n=r.cipherSuites[t];e.putByte(n.id[0]),e.putByte(n.id[1])}var i=e.length(),s=ze.util.createBuffer();s.putByte(j.CompressionMethod.none);var a=s.length(),u=ze.util.createBuffer();if(r.virtualHost){var c=ze.util.createBuffer();c.putByte(0),c.putByte(0);var l=ze.util.createBuffer();l.putByte(0),jo(l,2,ze.util.createBuffer(r.virtualHost));var p=ze.util.createBuffer();jo(p,2,l),jo(c,2,p),u.putBuffer(c)}var m=u.length();m>0&&(m+=2);var g=r.session.id,S=g.length+1+2+4+28+2+i+1+a+m,v=ze.util.createBuffer();return v.putByte(j.HandshakeType.client_hello),v.putInt24(S),v.putByte(r.version.major),v.putByte(r.version.minor),v.putBytes(r.session.sp.client_random),jo(v,1,ze.util.createBuffer(g)),jo(v,2,e),jo(v,1,s),m>0&&jo(v,2,u),v};j.createServerHello=function(r){var e=r.session.id,t=e.length+1+2+4+28+2+1,n=ze.util.createBuffer();return n.putByte(j.HandshakeType.server_hello),n.putInt24(t),n.putByte(r.version.major),n.putByte(r.version.minor),n.putBytes(r.session.sp.server_random),jo(n,1,ze.util.createBuffer(e)),n.putByte(r.session.cipherSuite.id[0]),n.putByte(r.session.cipherSuite.id[1]),n.putByte(r.session.compressionMethod),n};j.createCertificate=function(r){var e=r.entity===j.ConnectionEnd.client,t=null;if(r.getCertificate){var n;e?n=r.session.certificateRequest:n=r.session.extensions.server_name.serverNameList,t=r.getCertificate(r,n)}var i=ze.util.createBuffer();if(t!==null)try{ze.util.isArray(t)||(t=[t]);for(var s=null,a=0;a<t.length;++a){var u=ze.pem.decode(t[a])[0];if(u.type!=="CERTIFICATE"&&u.type!=="X509 CERTIFICATE"&&u.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=u.type,c}if(u.procType&&u.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var l=ze.util.createBuffer(u.body);s===null&&(s=ze.asn1.fromDer(l.bytes(),!1));var p=ze.util.createBuffer();jo(p,3,l),i.putBuffer(p)}t=ze.pki.certificateFromAsn1(s),e?r.session.clientCertificate=t:r.session.serverCertificate=t}catch(S){return r.error(r,{message:"Could not send certificate list.",cause:S,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate}})}var m=3+i.length(),g=ze.util.createBuffer();return g.putByte(j.HandshakeType.certificate),g.putInt24(m),jo(g,3,i),g};j.createClientKeyExchange=function(r){var e=ze.util.createBuffer();e.putByte(r.session.clientHelloVersion.major),e.putByte(r.session.clientHelloVersion.minor),e.putBytes(ze.random.getBytes(46));var t=r.session.sp;t.pre_master_secret=e.getBytes();var n=r.session.serverCertificate.publicKey;e=n.encrypt(t.pre_master_secret);var i=e.length+2,s=ze.util.createBuffer();return s.putByte(j.HandshakeType.client_key_exchange),s.putInt24(i),s.putInt16(e.length),s.putBytes(e),s};j.createServerKeyExchange=function(r){var e=0,t=ze.util.createBuffer();return e>0&&(t.putByte(j.HandshakeType.server_key_exchange),t.putInt24(e)),t};j.getClientSignature=function(r,e){var t=ze.util.createBuffer();t.putBuffer(r.session.md5.digest()),t.putBuffer(r.session.sha1.digest()),t=t.getBytes(),r.getSignature=r.getSignature||function(n,i,s){var a=null;if(n.getPrivateKey)try{a=n.getPrivateKey(n,n.session.clientCertificate),a=ze.pki.privateKeyFromPem(a)}catch(u){n.error(n,{message:"Could not get private key.",cause:u,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}})}a===null?n.error(n,{message:"No private key set.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}):i=a.sign(i,null),s(n,i)},r.getSignature(r,t,e)};j.createCertificateVerify=function(r,e){var t=e.length+2,n=ze.util.createBuffer();return n.putByte(j.HandshakeType.certificate_verify),n.putInt24(t),n.putInt16(e.length),n.putBytes(e),n};j.createCertificateRequest=function(r){var e=ze.util.createBuffer();e.putByte(1);var t=ze.util.createBuffer();for(var n in r.caStore.certs){var i=r.caStore.certs[n],s=ze.pki.distinguishedNameToAsn1(i.subject),a=ze.asn1.toDer(s);t.putInt16(a.length()),t.putBuffer(a)}var u=1+e.length()+2+t.length(),c=ze.util.createBuffer();return c.putByte(j.HandshakeType.certificate_request),c.putInt24(u),jo(c,1,e),jo(c,2,t),c};j.createServerHelloDone=function(r){var e=ze.util.createBuffer();return e.putByte(j.HandshakeType.server_hello_done),e.putInt24(0),e};j.createChangeCipherSpec=function(){var r=ze.util.createBuffer();return r.putByte(1),r};j.createFinished=function(r){var e=ze.util.createBuffer();e.putBuffer(r.session.md5.digest()),e.putBuffer(r.session.sha1.digest());var t=r.entity===j.ConnectionEnd.client,n=r.session.sp,i=12,s=n2,a=t?"client finished":"server finished";e=s(n.master_secret,a,e.getBytes(),i);var u=ze.util.createBuffer();return u.putByte(j.HandshakeType.finished),u.putInt24(e.length()),u.putBuffer(e),u};j.createHeartbeat=function(r,e,t){typeof t>"u"&&(t=e.length);var n=ze.util.createBuffer();n.putByte(r),n.putInt16(t),n.putBytes(e);var i=n.length(),s=Math.max(16,i-t-3);return n.putBytes(ze.random.getBytes(s)),n};j.queue=function(r,e){if(e&&!(e.fragment.length()===0&&(e.type===j.ContentType.handshake||e.type===j.ContentType.alert||e.type===j.ContentType.change_cipher_spec))){if(e.type===j.ContentType.handshake){var t=e.fragment.bytes();r.session.md5.update(t),r.session.sha1.update(t),t=null}var n;if(e.fragment.length()<=j.MaxFragment)n=[e];else{n=[];for(var i=e.fragment.bytes();i.length>j.MaxFragment;)n.push(j.createRecord(r,{type:e.type,data:ze.util.createBuffer(i.slice(0,j.MaxFragment))})),i=i.slice(j.MaxFragment);i.length>0&&n.push(j.createRecord(r,{type:e.type,data:ze.util.createBuffer(i)}))}for(var s=0;s<n.length&&!r.fail;++s){var a=n[s],u=r.state.current.write;u.update(r,a)&&r.records.push(a)}}};j.flush=function(r){for(var e=0;e<r.records.length;++e){var t=r.records[e];r.tlsData.putByte(t.type),r.tlsData.putByte(t.version.major),r.tlsData.putByte(t.version.minor),r.tlsData.putInt16(t.fragment.length()),r.tlsData.putBuffer(r.records[e].fragment)}return r.records=[],r.tlsDataReady(r)};var JP=o(function(r){switch(r){case!0:return!0;case ze.pki.certificateError.bad_certificate:return j.Alert.Description.bad_certificate;case ze.pki.certificateError.unsupported_certificate:return j.Alert.Description.unsupported_certificate;case ze.pki.certificateError.certificate_revoked:return j.Alert.Description.certificate_revoked;case ze.pki.certificateError.certificate_expired:return j.Alert.Description.certificate_expired;case ze.pki.certificateError.certificate_unknown:return j.Alert.Description.certificate_unknown;case ze.pki.certificateError.unknown_ca:return j.Alert.Description.unknown_ca;default:return j.Alert.Description.bad_certificate}},"_certErrorToAlertDesc"),ffe=o(function(r){switch(r){case!0:return!0;case j.Alert.Description.bad_certificate:return ze.pki.certificateError.bad_certificate;case j.Alert.Description.unsupported_certificate:return ze.pki.certificateError.unsupported_certificate;case j.Alert.Description.certificate_revoked:return ze.pki.certificateError.certificate_revoked;case j.Alert.Description.certificate_expired:return ze.pki.certificateError.certificate_expired;case j.Alert.Description.certificate_unknown:return ze.pki.certificateError.certificate_unknown;case j.Alert.Description.unknown_ca:return ze.pki.certificateError.unknown_ca;default:return ze.pki.certificateError.bad_certificate}},"_alertDescToCertError");j.verifyCertificateChain=function(r,e){try{var t={};for(var n in r.verifyOptions)t[n]=r.verifyOptions[n];t.verify=function(s,a,u){var c=JP(s),l=r.verify(r,s,a,u);if(l!==!0){if(typeof l=="object"&&!ze.util.isArray(l)){var p=new Error("The application rejected the certificate.");throw p.send=!0,p.alert={level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate},l.message&&(p.message=l.message),l.alert&&(p.alert.description=l.alert),p}l!==s&&(l=ffe(l))}return l},ze.pki.verifyCertificateChain(r.caStore,e,t)}catch(s){var i=s;(typeof i!="object"||ze.util.isArray(i))&&(i={send:!0,alert:{level:j.Alert.Level.fatal,description:JP(s)}}),"send"in i||(i.send=!0),"alert"in i||(i.alert={level:j.Alert.Level.fatal,description:JP(i.error)}),r.error(r,i)}return!r.fail};j.createSessionCache=function(r,e){var t=null;if(r&&r.getSession&&r.setSession&&r.order)t=r;else{t={},t.cache=r||{},t.capacity=Math.max(e||100,1),t.order=[];for(var n in r)t.order.length<=e?t.order.push(n):delete r[n];t.getSession=function(i){var s=null,a=null;if(i?a=ze.util.bytesToHex(i):t.order.length>0&&(a=t.order[0]),a!==null&&a in t.cache){s=t.cache[a],delete t.cache[a];for(var u in t.order)if(t.order[u]===a){t.order.splice(u,1);break}}return s},t.setSession=function(i,s){if(t.order.length===t.capacity){var a=t.order.shift();delete t.cache[a]}var a=ze.util.bytesToHex(i);t.order.push(a),t.cache[a]=s}}return t};j.createConnection=function(r){var e=null;r.caStore?ze.util.isArray(r.caStore)?e=ze.pki.createCaStore(r.caStore):e=r.caStore:e=ze.pki.createCaStore();var t=r.cipherSuites||null;if(t===null){t=[];for(var n in j.CipherSuites)t.push(j.CipherSuites[n])}var i=r.server?j.ConnectionEnd.server:j.ConnectionEnd.client,s=r.sessionCache?j.createSessionCache(r.sessionCache):null,a={version:{major:j.Version.major,minor:j.Version.minor},entity:i,sessionId:r.sessionId,caStore:e,sessionCache:s,cipherSuites:t,connected:r.connected,virtualHost:r.virtualHost||null,verifyClient:r.verifyClient||!1,verify:r.verify||function(p,m,g,S){return m},verifyOptions:r.verifyOptions||{},getCertificate:r.getCertificate||null,getPrivateKey:r.getPrivateKey||null,getSignature:r.getSignature||null,input:ze.util.createBuffer(),tlsData:ze.util.createBuffer(),data:ze.util.createBuffer(),tlsDataReady:r.tlsDataReady,dataReady:r.dataReady,heartbeatReceived:r.heartbeatReceived,closed:r.closed,error:o(function(p,m){m.origin=m.origin||(p.entity===j.ConnectionEnd.client?"client":"server"),m.send&&(j.queue(p,j.createAlert(p,m.alert)),j.flush(p));var g=m.fatal!==!1;g&&(p.fail=!0),r.error(p,m),g&&p.close(!1)},"error"),deflate:r.deflate||null,inflate:r.inflate||null};a.reset=function(p){a.version={major:j.Version.major,minor:j.Version.minor},a.record=null,a.session=null,a.peerCertificate=null,a.state={pending:null,current:null},a.expect=a.entity===j.ConnectionEnd.client?Wle:rfe,a.fragmented=null,a.records=[],a.open=!1,a.handshakes=0,a.handshaking=!1,a.isConnected=!1,a.fail=!(p||typeof p>"u"),a.input.clear(),a.tlsData.clear(),a.data.clear(),a.state.current=j.createConnectionState(a)},a.reset();var u=o(function(p,m){var g=m.type-j.ContentType.change_cipher_spec,S=ZP[p.entity][p.expect];g in S?S[g](p,m):j.handleUnexpected(p,m)},"_update"),c=o(function(p){var m=0,g=p.input,S=g.length();if(S<5)m=5-S;else{p.record={type:g.getByte(),version:{major:g.getByte(),minor:g.getByte()},length:g.getInt16(),fragment:ze.util.createBuffer(),ready:!1};var v=p.record.version.major===p.version.major;v&&p.session&&p.session.version&&(v=p.record.version.minor===p.version.minor),v||p.error(p,{message:"Incompatible TLS version.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}})}return m},"_readRecordHeader"),l=o(function(p){var m=0,g=p.input,S=g.length();if(S<p.record.length)m=p.record.length-S;else{p.record.fragment.putBytes(g.getBytes(p.record.length)),g.compact();var v=p.state.current.read;v.update(p,p.record)&&(p.fragmented!==null&&(p.fragmented.type===p.record.type?(p.fragmented.fragment.putBuffer(p.record.fragment),p.record=p.fragmented):p.error(p,{message:"Invalid fragmented record.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unexpected_message}})),p.record.ready=!0)}return m},"_readRecord");return a.handshake=function(p){if(a.entity!==j.ConnectionEnd.client)a.error(a,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(a.handshaking)a.error(a,{message:"Handshake already in progress.",fatal:!1});else{a.fail&&!a.open&&a.handshakes===0&&(a.fail=!1),a.handshaking=!0,p=p||"";var m=null;p.length>0&&(a.sessionCache&&(m=a.sessionCache.getSession(p)),m===null&&(p="")),p.length===0&&a.sessionCache&&(m=a.sessionCache.getSession(),m!==null&&(p=m.id)),a.session={id:p,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:ze.md.md5.create(),sha1:ze.md.sha1.create()},m&&(a.version=m.version,a.session.sp=m.sp),a.session.sp.client_random=j.createRandom().getBytes(),a.open=!0,j.queue(a,j.createRecord(a,{type:j.ContentType.handshake,data:j.createClientHello(a)})),j.flush(a)}},a.process=function(p){var m=0;return p&&a.input.putBytes(p),a.fail||(a.record!==null&&a.record.ready&&a.record.fragment.isEmpty()&&(a.record=null),a.record===null&&(m=c(a)),!a.fail&&a.record!==null&&!a.record.ready&&(m=l(a)),!a.fail&&a.record!==null&&a.record.ready&&u(a,a.record)),m},a.prepare=function(p){return j.queue(a,j.createRecord(a,{type:j.ContentType.application_data,data:ze.util.createBuffer(p)})),j.flush(a)},a.prepareHeartbeatRequest=function(p,m){return p instanceof ze.util.ByteBuffer&&(p=p.bytes()),typeof m>"u"&&(m=p.length),a.expectedHeartbeatPayload=p,j.queue(a,j.createRecord(a,{type:j.ContentType.heartbeat,data:j.createHeartbeat(j.HeartbeatMessageType.heartbeat_request,p,m)})),j.flush(a)},a.close=function(p){if(!a.fail&&a.sessionCache&&a.session){var m={id:a.session.id,version:a.session.version,sp:a.session.sp};m.sp.keys=null,a.sessionCache.setSession(m.id,m)}a.open&&(a.open=!1,a.input.clear(),(a.isConnected||a.handshaking)&&(a.isConnected=a.handshaking=!1,j.queue(a,j.createAlert(a,{level:j.Alert.Level.warning,description:j.Alert.Description.close_notify})),j.flush(a)),a.closed(a)),a.reset(p)},a};MM.exports=ze.tls=ze.tls||{};for(t2 in j)typeof j[t2]!="function"&&(ze.tls[t2]=j[t2]);var t2;ze.tls.prf_tls1=n2;ze.tls.hmac_sha1=$le;ze.tls.createSessionCache=j.createSessionCache;ze.tls.createConnection=j.createConnection});var zM=Z((x2e,HM)=>{"use strict";var Vp=pr();_p();eB();var Uo=HM.exports=Vp.tls;Uo.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:o(function(r){r.bulk_cipher_algorithm=Uo.BulkCipherAlgorithm.aes,r.cipher_type=Uo.CipherType.block,r.enc_key_length=16,r.block_length=16,r.fixed_iv_length=16,r.record_iv_length=16,r.mac_algorithm=Uo.MACAlgorithm.hmac_sha1,r.mac_length=20,r.mac_key_length=20},"initSecurityParameters"),initConnectionState:qM};Uo.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:o(function(r){r.bulk_cipher_algorithm=Uo.BulkCipherAlgorithm.aes,r.cipher_type=Uo.CipherType.block,r.enc_key_length=32,r.block_length=16,r.fixed_iv_length=16,r.record_iv_length=16,r.mac_algorithm=Uo.MACAlgorithm.hmac_sha1,r.mac_length=20,r.mac_key_length=20},"initSecurityParameters"),initConnectionState:qM};function qM(r,e,t){var n=e.entity===Vp.tls.ConnectionEnd.client;r.read.cipherState={init:!1,cipher:Vp.cipher.createDecipher("AES-CBC",n?t.keys.server_write_key:t.keys.client_write_key),iv:n?t.keys.server_write_IV:t.keys.client_write_IV},r.write.cipherState={init:!1,cipher:Vp.cipher.createCipher("AES-CBC",n?t.keys.client_write_key:t.keys.server_write_key),iv:n?t.keys.client_write_IV:t.keys.server_write_IV},r.read.cipherFunction=mfe,r.write.cipherFunction=pfe,r.read.macLength=r.write.macLength=t.mac_length,r.read.macFunction=r.write.macFunction=Uo.hmac_sha1}o(qM,"initConnectionState");function pfe(r,e){var t=!1,n=e.macFunction(e.macKey,e.sequenceNumber,r);r.fragment.putBytes(n),e.updateSequenceNumber();var i;r.version.minor===Uo.Versions.TLS_1_0.minor?i=e.cipherState.init?null:e.cipherState.iv:i=Vp.random.getBytesSync(16),e.cipherState.init=!0;var s=e.cipherState.cipher;return s.start({iv:i}),r.version.minor>=Uo.Versions.TLS_1_1.minor&&s.output.putBytes(i),s.update(r.fragment),s.finish(hfe)&&(r.fragment=s.output,r.length=r.fragment.length(),t=!0),t}o(pfe,"encrypt_aes_cbc_sha1");function hfe(r,e,t){if(!t){var n=r-e.length()%r;e.fillWithByte(n-1,n)}return!0}o(hfe,"encrypt_aes_cbc_sha1_padding");function dfe(r,e,t){var n=!0;if(t){for(var i=e.length(),s=e.last(),a=i-1-s;a<i-1;++a)n=n&&e.at(a)==s;n&&e.truncate(s+1)}return n}o(dfe,"decrypt_aes_cbc_sha1_padding");function mfe(r,e){var t=!1,n;r.version.minor===Uo.Versions.TLS_1_0.minor?n=e.cipherState.init?null:e.cipherState.iv:n=r.fragment.getBytes(16),e.cipherState.init=!0;var i=e.cipherState.cipher;i.start({iv:n}),i.update(r.fragment),t=i.finish(dfe);var s=e.macLength,a=Vp.random.getBytesSync(s),u=i.output.length();u>=s?(r.fragment=i.output.getBytes(u-s),a=i.output.getBytes(s)):r.fragment=i.output.getBytes(),r.fragment=Vp.util.createBuffer(r.fragment),r.length=r.fragment.length();var c=e.macFunction(e.macKey,e.sequenceNumber,r);return e.updateSequenceNumber(),t=gfe(e.macKey,a,c)&&t,t}o(mfe,"decrypt_aes_cbc_sha1");function gfe(r,e,t){var n=Vp.hmac.create();return n.start("SHA1",r),n.update(e),e=n.digest().getBytes(),n.start(null,null),n.update(t),t=n.digest().getBytes(),e===t}o(gfe,"compareMacs")});var nB=Z((w2e,XM)=>{"use strict";var Tn=pr();Ec();kr();var Fx=XM.exports=Tn.sha512=Tn.sha512||{};Tn.md.sha512=Tn.md.algorithms.sha512=Fx;var $M=Tn.sha384=Tn.sha512.sha384=Tn.sha512.sha384||{};$M.create=function(){return Fx.create("SHA-384")};Tn.md.sha384=Tn.md.algorithms.sha384=$M;Tn.sha512.sha256=Tn.sha512.sha256||{create:o(function(){return Fx.create("SHA-512/256")},"create")};Tn.md["sha512/256"]=Tn.md.algorithms["sha512/256"]=Tn.sha512.sha256;Tn.sha512.sha224=Tn.sha512.sha224||{create:o(function(){return Fx.create("SHA-512/224")},"create")};Tn.md["sha512/224"]=Tn.md.algorithms["sha512/224"]=Tn.sha512.sha224;Fx.create=function(r){if(GM||vfe(),typeof r>"u"&&(r="SHA-512"),!(r in rm))throw new Error("Invalid SHA-512 algorithm: "+r);for(var e=rm[r],t=null,n=Tn.util.createBuffer(),i=new Array(80),s=0;s<80;++s)i[s]=new Array(2);var a=64;switch(r){case"SHA-384":a=48;break;case"SHA-512/256":a=32;break;case"SHA-512/224":a=28;break}var u={algorithm:r.replace("-","").toLowerCase(),blockLength:128,digestLength:a,messageLength:0,fullMessageLength:null,messageLengthSize:16};return u.start=function(){u.messageLength=0,u.fullMessageLength=u.messageLength128=[];for(var c=u.messageLengthSize/4,l=0;l<c;++l)u.fullMessageLength.push(0);n=Tn.util.createBuffer(),t=new Array(e.length);for(var l=0;l<e.length;++l)t[l]=e[l].slice(0);return u},u.start(),u.update=function(c,l){l==="utf8"&&(c=Tn.util.encodeUtf8(c));var p=c.length;u.messageLength+=p,p=[p/4294967296>>>0,p>>>0];for(var m=u.fullMessageLength.length-1;m>=0;--m)u.fullMessageLength[m]+=p[1],p[1]=p[0]+(u.fullMessageLength[m]/4294967296>>>0),u.fullMessageLength[m]=u.fullMessageLength[m]>>>0,p[0]=p[1]/4294967296>>>0;return n.putBytes(c),KM(t,i,n),(n.read>2048||n.length()===0)&&n.compact(),u},u.digest=function(){var c=Tn.util.createBuffer();c.putBytes(n.bytes());var l=u.fullMessageLength[u.fullMessageLength.length-1]+u.messageLengthSize,p=l&u.blockLength-1;c.putBytes(tB.substr(0,u.blockLength-p));for(var m,g,S=u.fullMessageLength[0]*8,v=0;v<u.fullMessageLength.length-1;++v)m=u.fullMessageLength[v+1]*8,g=m/4294967296>>>0,S+=g,c.putInt32(S>>>0),S=m>>>0;c.putInt32(S);for(var b=new Array(t.length),v=0;v<t.length;++v)b[v]=t[v].slice(0);KM(b,i,c);var x=Tn.util.createBuffer(),E;r==="SHA-512"?E=b.length:r==="SHA-384"?E=b.length-2:E=b.length-4;for(var v=0;v<E;++v)x.putInt32(b[v][0]),(v!==E-1||r!=="SHA-512/224")&&x.putInt32(b[v][1]);return x},u};var tB=null,GM=!1,rB=null,rm=null;function vfe(){tB="\x80",tB+=Tn.util.fillString("\0",128),rB=[[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]],rm={},rm["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],rm["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],rm["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],rm["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],GM=!0}o(vfe,"_init");function KM(r,e,t){for(var n,i,s,a,u,c,l,p,m,g,S,v,b,x,E,N,w,C,A,R,M,_,H,z,K,X,ye,fe,ce,ee,pe,Ce,Ye,xe,ie,De=t.length();De>=128;){for(ce=0;ce<16;++ce)e[ce][0]=t.getInt32()>>>0,e[ce][1]=t.getInt32()>>>0;for(;ce<80;++ce)Ce=e[ce-2],ee=Ce[0],pe=Ce[1],n=((ee>>>19|pe<<13)^(pe>>>29|ee<<3)^ee>>>6)>>>0,i=((ee<<13|pe>>>19)^(pe<<3|ee>>>29)^(ee<<26|pe>>>6))>>>0,xe=e[ce-15],ee=xe[0],pe=xe[1],s=((ee>>>1|pe<<31)^(ee>>>8|pe<<24)^ee>>>7)>>>0,a=((ee<<31|pe>>>1)^(ee<<24|pe>>>8)^(ee<<25|pe>>>7))>>>0,Ye=e[ce-7],ie=e[ce-16],pe=i+Ye[1]+a+ie[1],e[ce][0]=n+Ye[0]+s+ie[0]+(pe/4294967296>>>0)>>>0,e[ce][1]=pe>>>0;for(b=r[0][0],x=r[0][1],E=r[1][0],N=r[1][1],w=r[2][0],C=r[2][1],A=r[3][0],R=r[3][1],M=r[4][0],_=r[4][1],H=r[5][0],z=r[5][1],K=r[6][0],X=r[6][1],ye=r[7][0],fe=r[7][1],ce=0;ce<80;++ce)l=((M>>>14|_<<18)^(M>>>18|_<<14)^(_>>>9|M<<23))>>>0,p=((M<<18|_>>>14)^(M<<14|_>>>18)^(_<<23|M>>>9))>>>0,m=(K^M&(H^K))>>>0,g=(X^_&(z^X))>>>0,u=((b>>>28|x<<4)^(x>>>2|b<<30)^(x>>>7|b<<25))>>>0,c=((b<<4|x>>>28)^(x<<30|b>>>2)^(x<<25|b>>>7))>>>0,S=(b&E|w&(b^E))>>>0,v=(x&N|C&(x^N))>>>0,pe=fe+p+g+rB[ce][1]+e[ce][1],n=ye+l+m+rB[ce][0]+e[ce][0]+(pe/4294967296>>>0)>>>0,i=pe>>>0,pe=c+v,s=u+S+(pe/4294967296>>>0)>>>0,a=pe>>>0,ye=K,fe=X,K=H,X=z,H=M,z=_,pe=R+i,M=A+n+(pe/4294967296>>>0)>>>0,_=pe>>>0,A=w,R=C,w=E,C=N,E=b,N=x,pe=i+a,b=n+s+(pe/4294967296>>>0)>>>0,x=pe>>>0;pe=r[0][1]+x,r[0][0]=r[0][0]+b+(pe/4294967296>>>0)>>>0,r[0][1]=pe>>>0,pe=r[1][1]+N,r[1][0]=r[1][0]+E+(pe/4294967296>>>0)>>>0,r[1][1]=pe>>>0,pe=r[2][1]+C,r[2][0]=r[2][0]+w+(pe/4294967296>>>0)>>>0,r[2][1]=pe>>>0,pe=r[3][1]+R,r[3][0]=r[3][0]+A+(pe/4294967296>>>0)>>>0,r[3][1]=pe>>>0,pe=r[4][1]+_,r[4][0]=r[4][0]+M+(pe/4294967296>>>0)>>>0,r[4][1]=pe>>>0,pe=r[5][1]+z,r[5][0]=r[5][0]+H+(pe/4294967296>>>0)>>>0,r[5][1]=pe>>>0,pe=r[6][1]+X,r[6][0]=r[6][0]+K+(pe/4294967296>>>0)>>>0,r[6][1]=pe>>>0,pe=r[7][1]+fe,r[7][0]=r[7][0]+ye+(pe/4294967296>>>0)>>>0,r[7][1]=pe>>>0,De-=128}}o(KM,"_update")});var WM=Z(iB=>{"use strict";var yfe=pr();Nu();var Xi=yfe.asn1;iB.privateKeyValidator={name:"PrivateKeyInfo",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]};iB.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:Xi.Class.UNIVERSAL,type:Xi.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}});var u6=Z((A2e,o6)=>{"use strict";var ys=pr();_x();Fo();nB();kr();var t6=WM(),Sfe=t6.publicKeyValidator,xfe=t6.privateKeyValidator;typeof JM>"u"&&(JM=ys.jsbn.BigInteger);var JM,oB=ys.util.ByteBuffer,_a=typeof Buffer>"u"?Uint8Array:Buffer;ys.pki=ys.pki||{};o6.exports=ys.pki.ed25519=ys.ed25519=ys.ed25519||{};var br=ys.ed25519;br.constants={};br.constants.PUBLIC_KEY_BYTE_LENGTH=32;br.constants.PRIVATE_KEY_BYTE_LENGTH=64;br.constants.SEED_BYTE_LENGTH=32;br.constants.SIGN_BYTE_LENGTH=64;br.constants.HASH_BYTE_LENGTH=64;br.generateKeyPair=function(r){r=r||{};var e=r.seed;if(e===void 0)e=ys.random.getBytesSync(br.constants.SEED_BYTE_LENGTH);else if(typeof e=="string"){if(e.length!==br.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+br.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(e instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');e=Gl({message:e,encoding:"binary"});for(var t=new _a(br.constants.PUBLIC_KEY_BYTE_LENGTH),n=new _a(br.constants.PRIVATE_KEY_BYTE_LENGTH),i=0;i<32;++i)n[i]=e[i];return Efe(t,n),{publicKey:t,privateKey:n}};br.privateKeyFromAsn1=function(r){var e={},t=[],n=ys.asn1.validate(r,xfe,e,t);if(!n){var i=new Error("Invalid Key.");throw i.errors=t,i}var s=ys.asn1.derToOid(e.privateKeyOid),a=ys.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var u=e.privateKey,c=Gl({message:ys.asn1.fromDer(u).value,encoding:"binary"});return{privateKeyBytes:c}};br.publicKeyFromAsn1=function(r){var e={},t=[],n=ys.asn1.validate(r,Sfe,e,t);if(!n){var i=new Error("Invalid Key.");throw i.errors=t,i}var s=ys.asn1.derToOid(e.publicKeyOid),a=ys.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var u=e.ed25519PublicKey;if(u.length!==br.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return Gl({message:u,encoding:"binary"})};br.publicKeyFromPrivateKey=function(r){r=r||{};var e=Gl({message:r.privateKey,encoding:"binary"});if(e.length!==br.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+br.constants.PRIVATE_KEY_BYTE_LENGTH);for(var t=new _a(br.constants.PUBLIC_KEY_BYTE_LENGTH),n=0;n<t.length;++n)t[n]=e[32+n];return t};br.sign=function(r){r=r||{};var e=Gl(r),t=Gl({message:r.privateKey,encoding:"binary"});if(t.length===br.constants.SEED_BYTE_LENGTH){var n=br.generateKeyPair({seed:t});t=n.privateKey}else if(t.length!==br.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+br.constants.SEED_BYTE_LENGTH+" or "+br.constants.PRIVATE_KEY_BYTE_LENGTH);var i=new _a(br.constants.SIGN_BYTE_LENGTH+e.length);Afe(i,e,e.length,t);for(var s=new _a(br.constants.SIGN_BYTE_LENGTH),a=0;a<s.length;++a)s[a]=i[a];return s};br.verify=function(r){r=r||{};var e=Gl(r);if(r.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var t=Gl({message:r.signature,encoding:"binary"});if(t.length!==br.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+br.constants.SIGN_BYTE_LENGTH);var n=Gl({message:r.publicKey,encoding:"binary"});if(n.length!==br.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+br.constants.PUBLIC_KEY_BYTE_LENGTH);var i=new _a(br.constants.SIGN_BYTE_LENGTH+e.length),s=new _a(br.constants.SIGN_BYTE_LENGTH+e.length),a;for(a=0;a<br.constants.SIGN_BYTE_LENGTH;++a)i[a]=t[a];for(a=0;a<e.length;++a)i[a+br.constants.SIGN_BYTE_LENGTH]=e[a];return Nfe(s,i,i.length,n)>=0};function Gl(r){var e=r.message;if(e instanceof Uint8Array||e instanceof _a)return e;var t=r.encoding;if(e===void 0)if(r.md)e=r.md.digest().getBytes(),t="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof e=="string"&&!t)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof e=="string"){if(typeof Buffer<"u")return Buffer.from(e,t);e=new oB(e,t)}else if(!(e instanceof oB))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 n=new _a(e.length()),i=0;i<n.length;++i)n[i]=e.at(i);return n}o(Gl,"messageToNativeBuffer");var uB=jt(),i2=jt([1]),bfe=jt([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),wfe=jt([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),QM=jt([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),YM=jt([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),sB=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]),Cfe=jt([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Lx(r,e){var t=ys.md.sha512.create(),n=new oB(r);t.update(n.getBytes(e),"binary");var i=t.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(i,"binary");for(var s=new _a(br.constants.HASH_BYTE_LENGTH),a=0;a<64;++a)s[a]=i.charCodeAt(a);return s}o(Lx,"sha512");function Efe(r,e){var t=[jt(),jt(),jt(),jt()],n,i=Lx(e,32);for(i[0]&=248,i[31]&=127,i[31]|=64,pB(t,i),fB(r,t),n=0;n<32;++n)e[n+32]=r[n];return 0}o(Efe,"crypto_sign_keypair");function Afe(r,e,t,n){var i,s,a=new Float64Array(64),u=[jt(),jt(),jt(),jt()],c=Lx(n,32);c[0]&=248,c[31]&=127,c[31]|=64;var l=t+64;for(i=0;i<t;++i)r[64+i]=e[i];for(i=0;i<32;++i)r[32+i]=c[32+i];var p=Lx(r.subarray(32),t+32);for(cB(p),pB(u,p),fB(r,u),i=32;i<64;++i)r[i]=n[i];var m=Lx(r,t+64);for(cB(m),i=32;i<64;++i)a[i]=0;for(i=0;i<32;++i)a[i]=p[i];for(i=0;i<32;++i)for(s=0;s<32;s++)a[i+s]+=m[i]*c[s];return r6(r.subarray(32),a),l}o(Afe,"crypto_sign");function Nfe(r,e,t,n){var i,s,a=new _a(32),u=[jt(),jt(),jt(),jt()],c=[jt(),jt(),jt(),jt()];if(s=-1,t<64||Ife(c,n))return-1;for(i=0;i<t;++i)r[i]=e[i];for(i=0;i<32;++i)r[i+32]=n[i];var l=Lx(r,t);if(cB(l),s6(u,c,l),pB(c,e.subarray(32)),lB(u,c),fB(a,u),t-=64,n6(e,0,a,0)){for(i=0;i<t;++i)r[i]=0;return-1}for(i=0;i<t;++i)r[i]=e[i+64];return s=t,s}o(Nfe,"crypto_sign_open");function r6(r,e){var t,n,i,s;for(n=63;n>=32;--n){for(t=0,i=n-32,s=n-12;i<s;++i)e[i]+=t-16*e[n]*sB[i-(n-32)],t=e[i]+128>>8,e[i]-=t*256;e[i]+=t,e[n]=0}for(t=0,i=0;i<32;++i)e[i]+=t-(e[31]>>4)*sB[i],t=e[i]>>8,e[i]&=255;for(i=0;i<32;++i)e[i]-=t*sB[i];for(n=0;n<32;++n)e[n+1]+=e[n]>>8,r[n]=e[n]&255}o(r6,"modL");function cB(r){for(var e=new Float64Array(64),t=0;t<64;++t)e[t]=r[t],r[t]=0;r6(r,e)}o(cB,"reduce");function lB(r,e){var t=jt(),n=jt(),i=jt(),s=jt(),a=jt(),u=jt(),c=jt(),l=jt(),p=jt();ov(t,r[1],r[0]),ov(p,e[1],e[0]),pn(t,t,p),av(n,r[0],r[1]),av(p,e[0],e[1]),pn(n,n,p),pn(i,r[3],e[3]),pn(i,i,wfe),pn(s,r[2],e[2]),av(s,s,s),ov(a,n,t),ov(u,s,i),av(c,s,i),av(l,n,t),pn(r[0],a,u),pn(r[1],l,c),pn(r[2],c,u),pn(r[3],a,l)}o(lB,"add");function ZM(r,e,t){for(var n=0;n<4;++n)a6(r[n],e[n],t)}o(ZM,"cswap");function fB(r,e){var t=jt(),n=jt(),i=jt();_fe(i,e[2]),pn(t,e[0],i),pn(n,e[1],i),s2(r,n),r[31]^=i6(t)<<7}o(fB,"pack");function s2(r,e){var t,n,i,s=jt(),a=jt();for(t=0;t<16;++t)a[t]=e[t];for(aB(a),aB(a),aB(a),n=0;n<2;++n){for(s[0]=a[0]-65517,t=1;t<15;++t)s[t]=a[t]-65535-(s[t-1]>>16&1),s[t-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),i=s[15]>>16&1,s[14]&=65535,a6(a,s,1-i)}for(t=0;t<16;t++)r[2*t]=a[t]&255,r[2*t+1]=a[t]>>8}o(s2,"pack25519");function Ife(r,e){var t=jt(),n=jt(),i=jt(),s=jt(),a=jt(),u=jt(),c=jt();return jp(r[2],i2),Tfe(r[1],e),nm(i,r[1]),pn(s,i,bfe),ov(i,i,r[2]),av(s,r[2],s),nm(a,s),nm(u,a),pn(c,u,a),pn(t,c,i),pn(t,t,s),Rfe(t,t),pn(t,t,i),pn(t,t,s),pn(t,t,s),pn(r[0],t,s),nm(n,r[0]),pn(n,n,s),e6(n,i)&&pn(r[0],r[0],Cfe),nm(n,r[0]),pn(n,n,s),e6(n,i)?-1:(i6(r[0])===e[31]>>7&&ov(r[0],uB,r[0]),pn(r[3],r[0],r[1]),0)}o(Ife,"unpackneg");function Tfe(r,e){var t;for(t=0;t<16;++t)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}o(Tfe,"unpack25519");function Rfe(r,e){var t=jt(),n;for(n=0;n<16;++n)t[n]=e[n];for(n=250;n>=0;--n)nm(t,t),n!==1&&pn(t,t,e);for(n=0;n<16;++n)r[n]=t[n]}o(Rfe,"pow2523");function e6(r,e){var t=new _a(32),n=new _a(32);return s2(t,r),s2(n,e),n6(t,0,n,0)}o(e6,"neq25519");function n6(r,e,t,n){return Dfe(r,e,t,n,32)}o(n6,"crypto_verify_32");function Dfe(r,e,t,n,i){var s,a=0;for(s=0;s<i;++s)a|=r[e+s]^t[n+s];return(1&a-1>>>8)-1}o(Dfe,"vn");function i6(r){var e=new _a(32);return s2(e,r),e[0]&1}o(i6,"par25519");function s6(r,e,t){var n,i;for(jp(r[0],uB),jp(r[1],i2),jp(r[2],i2),jp(r[3],uB),i=255;i>=0;--i)n=t[i/8|0]>>(i&7)&1,ZM(r,e,n),lB(e,r),lB(r,r),ZM(r,e,n)}o(s6,"scalarmult");function pB(r,e){var t=[jt(),jt(),jt(),jt()];jp(t[0],QM),jp(t[1],YM),jp(t[2],i2),pn(t[3],QM,YM),s6(r,t,e)}o(pB,"scalarbase");function jp(r,e){var t;for(t=0;t<16;t++)r[t]=e[t]|0}o(jp,"set25519");function _fe(r,e){var t=jt(),n;for(n=0;n<16;++n)t[n]=e[n];for(n=253;n>=0;--n)nm(t,t),n!==2&&n!==4&&pn(t,t,e);for(n=0;n<16;++n)r[n]=t[n]}o(_fe,"inv25519");function aB(r){var e,t,n=1;for(e=0;e<16;++e)t=r[e]+n+65535,n=Math.floor(t/65536),r[e]=t-n*65536;r[0]+=n-1+37*(n-1)}o(aB,"car25519");function a6(r,e,t){for(var n,i=~(t-1),s=0;s<16;++s)n=i&(r[s]^e[s]),r[s]^=n,e[s]^=n}o(a6,"sel25519");function jt(r){var e,t=new Float64Array(16);if(r)for(e=0;e<r.length;++e)t[e]=r[e];return t}o(jt,"gf");function av(r,e,t){for(var n=0;n<16;++n)r[n]=e[n]+t[n]}o(av,"A");function ov(r,e,t){for(var n=0;n<16;++n)r[n]=e[n]-t[n]}o(ov,"Z");function nm(r,e){pn(r,e,e)}o(nm,"S");function pn(r,e,t){var n,i,s=0,a=0,u=0,c=0,l=0,p=0,m=0,g=0,S=0,v=0,b=0,x=0,E=0,N=0,w=0,C=0,A=0,R=0,M=0,_=0,H=0,z=0,K=0,X=0,ye=0,fe=0,ce=0,ee=0,pe=0,Ce=0,Ye=0,xe=t[0],ie=t[1],De=t[2],Ze=t[3],We=t[4],it=t[5],F=t[6],O=t[7],oe=t[8],J=t[9],Ge=t[10],Ue=t[11],Pe=t[12],bt=t[13],Ir=t[14],Je=t[15];n=e[0],s+=n*xe,a+=n*ie,u+=n*De,c+=n*Ze,l+=n*We,p+=n*it,m+=n*F,g+=n*O,S+=n*oe,v+=n*J,b+=n*Ge,x+=n*Ue,E+=n*Pe,N+=n*bt,w+=n*Ir,C+=n*Je,n=e[1],a+=n*xe,u+=n*ie,c+=n*De,l+=n*Ze,p+=n*We,m+=n*it,g+=n*F,S+=n*O,v+=n*oe,b+=n*J,x+=n*Ge,E+=n*Ue,N+=n*Pe,w+=n*bt,C+=n*Ir,A+=n*Je,n=e[2],u+=n*xe,c+=n*ie,l+=n*De,p+=n*Ze,m+=n*We,g+=n*it,S+=n*F,v+=n*O,b+=n*oe,x+=n*J,E+=n*Ge,N+=n*Ue,w+=n*Pe,C+=n*bt,A+=n*Ir,R+=n*Je,n=e[3],c+=n*xe,l+=n*ie,p+=n*De,m+=n*Ze,g+=n*We,S+=n*it,v+=n*F,b+=n*O,x+=n*oe,E+=n*J,N+=n*Ge,w+=n*Ue,C+=n*Pe,A+=n*bt,R+=n*Ir,M+=n*Je,n=e[4],l+=n*xe,p+=n*ie,m+=n*De,g+=n*Ze,S+=n*We,v+=n*it,b+=n*F,x+=n*O,E+=n*oe,N+=n*J,w+=n*Ge,C+=n*Ue,A+=n*Pe,R+=n*bt,M+=n*Ir,_+=n*Je,n=e[5],p+=n*xe,m+=n*ie,g+=n*De,S+=n*Ze,v+=n*We,b+=n*it,x+=n*F,E+=n*O,N+=n*oe,w+=n*J,C+=n*Ge,A+=n*Ue,R+=n*Pe,M+=n*bt,_+=n*Ir,H+=n*Je,n=e[6],m+=n*xe,g+=n*ie,S+=n*De,v+=n*Ze,b+=n*We,x+=n*it,E+=n*F,N+=n*O,w+=n*oe,C+=n*J,A+=n*Ge,R+=n*Ue,M+=n*Pe,_+=n*bt,H+=n*Ir,z+=n*Je,n=e[7],g+=n*xe,S+=n*ie,v+=n*De,b+=n*Ze,x+=n*We,E+=n*it,N+=n*F,w+=n*O,C+=n*oe,A+=n*J,R+=n*Ge,M+=n*Ue,_+=n*Pe,H+=n*bt,z+=n*Ir,K+=n*Je,n=e[8],S+=n*xe,v+=n*ie,b+=n*De,x+=n*Ze,E+=n*We,N+=n*it,w+=n*F,C+=n*O,A+=n*oe,R+=n*J,M+=n*Ge,_+=n*Ue,H+=n*Pe,z+=n*bt,K+=n*Ir,X+=n*Je,n=e[9],v+=n*xe,b+=n*ie,x+=n*De,E+=n*Ze,N+=n*We,w+=n*it,C+=n*F,A+=n*O,R+=n*oe,M+=n*J,_+=n*Ge,H+=n*Ue,z+=n*Pe,K+=n*bt,X+=n*Ir,ye+=n*Je,n=e[10],b+=n*xe,x+=n*ie,E+=n*De,N+=n*Ze,w+=n*We,C+=n*it,A+=n*F,R+=n*O,M+=n*oe,_+=n*J,H+=n*Ge,z+=n*Ue,K+=n*Pe,X+=n*bt,ye+=n*Ir,fe+=n*Je,n=e[11],x+=n*xe,E+=n*ie,N+=n*De,w+=n*Ze,C+=n*We,A+=n*it,R+=n*F,M+=n*O,_+=n*oe,H+=n*J,z+=n*Ge,K+=n*Ue,X+=n*Pe,ye+=n*bt,fe+=n*Ir,ce+=n*Je,n=e[12],E+=n*xe,N+=n*ie,w+=n*De,C+=n*Ze,A+=n*We,R+=n*it,M+=n*F,_+=n*O,H+=n*oe,z+=n*J,K+=n*Ge,X+=n*Ue,ye+=n*Pe,fe+=n*bt,ce+=n*Ir,ee+=n*Je,n=e[13],N+=n*xe,w+=n*ie,C+=n*De,A+=n*Ze,R+=n*We,M+=n*it,_+=n*F,H+=n*O,z+=n*oe,K+=n*J,X+=n*Ge,ye+=n*Ue,fe+=n*Pe,ce+=n*bt,ee+=n*Ir,pe+=n*Je,n=e[14],w+=n*xe,C+=n*ie,A+=n*De,R+=n*Ze,M+=n*We,_+=n*it,H+=n*F,z+=n*O,K+=n*oe,X+=n*J,ye+=n*Ge,fe+=n*Ue,ce+=n*Pe,ee+=n*bt,pe+=n*Ir,Ce+=n*Je,n=e[15],C+=n*xe,A+=n*ie,R+=n*De,M+=n*Ze,_+=n*We,H+=n*it,z+=n*F,K+=n*O,X+=n*oe,ye+=n*J,fe+=n*Ge,ce+=n*Ue,ee+=n*Pe,pe+=n*bt,Ce+=n*Ir,Ye+=n*Je,s+=38*A,a+=38*R,u+=38*M,c+=38*_,l+=38*H,p+=38*z,m+=38*K,g+=38*X,S+=38*ye,v+=38*fe,b+=38*ce,x+=38*ee,E+=38*pe,N+=38*Ce,w+=38*Ye,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=c+i+65535,i=Math.floor(n/65536),c=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=S+i+65535,i=Math.floor(n/65536),S=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=b+i+65535,i=Math.floor(n/65536),b=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=N+i+65535,i=Math.floor(n/65536),N=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=c+i+65535,i=Math.floor(n/65536),c=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=S+i+65535,i=Math.floor(n/65536),S=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=b+i+65535,i=Math.floor(n/65536),b=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=N+i+65535,i=Math.floor(n/65536),N=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,s+=i-1+37*(i-1),r[0]=s,r[1]=a,r[2]=u,r[3]=c,r[4]=l,r[5]=p,r[6]=m,r[7]=g,r[8]=S,r[9]=v,r[10]=b,r[11]=x,r[12]=E,r[13]=N,r[14]=w,r[15]=C}o(pn,"M")});var p6=Z((I2e,f6)=>{"use strict";var co=pr();kr();Fo();_x();f6.exports=co.kem=co.kem||{};var c6=co.jsbn.BigInteger;co.kem.rsa={};co.kem.rsa.create=function(r,e){e=e||{};var t=e.prng||co.random,n={};return n.encrypt=function(i,s){var a=Math.ceil(i.n.bitLength()/8),u;do u=new c6(co.util.bytesToHex(t.getBytesSync(a)),16).mod(i.n);while(u.compareTo(c6.ONE)<=0);u=co.util.hexToBytes(u.toString(16));var c=a-u.length;c>0&&(u=co.util.fillString("\0",c)+u);var l=i.encrypt(u,"NONE"),p=r.generate(u,s);return{encapsulation:l,key:p}},n.decrypt=function(i,s,a){var u=i.decrypt(s,"NONE");return r.generate(u,a)},n};co.kem.kdf1=function(r,e){l6(this,r,0,e||r.digestLength)};co.kem.kdf2=function(r,e){l6(this,r,1,e||r.digestLength)};function l6(r,e,t,n){r.generate=function(i,s){for(var a=new co.util.ByteBuffer,u=Math.ceil(s/n)+t,c=new co.util.ByteBuffer,l=t;l<u;++l){c.putInt32(l),e.start(),e.update(i+c.getBytes());var p=e.digest();a.putBytes(p.getBytes(n))}return a.truncate(a.length()-s),a.getBytes()}}o(l6,"_createKDF")});var g6=Z((R2e,m6)=>{"use strict";var Ar=pr();kr();m6.exports=Ar.log=Ar.log||{};Ar.log.levels=["none","error","warning","info","debug","verbose","max"];var a2={},mB=[],Vx=null;Ar.log.LEVEL_LOCKED=2;Ar.log.NO_LEVEL_CHECK=4;Ar.log.INTERPOLATE=8;for(Oc=0;Oc<Ar.log.levels.length;++Oc)hB=Ar.log.levels[Oc],a2[hB]={index:Oc,name:hB.toUpperCase()};var hB,Oc;Ar.log.logMessage=function(r){for(var e=a2[r.level].index,t=0;t<mB.length;++t){var n=mB[t];if(n.flags&Ar.log.NO_LEVEL_CHECK)n.f(r);else{var i=a2[n.level].index;e<=i&&n.f(n,r)}}};Ar.log.prepareStandard=function(r){"standard"in r||(r.standard=a2[r.level].name+" ["+r.category+"] "+r.message)};Ar.log.prepareFull=function(r){if(!("full"in r)){var e=[r.message];e=e.concat([]),r.full=Ar.util.format.apply(this,e)}};Ar.log.prepareStandardFull=function(r){"standardFull"in r||(Ar.log.prepareStandard(r),r.standardFull=r.standard)};for(dB=["error","warning","info","debug","verbose"],Oc=0;Oc<dB.length;++Oc)(function(e){Ar.log[e]=function(t,n){var i=Array.prototype.slice.call(arguments).slice(2),s={timestamp:new Date,level:e,category:t,message:n,arguments:i};Ar.log.logMessage(s)}})(dB[Oc]);var dB,Oc;Ar.log.makeLogger=function(r){var e={flags:0,f:r};return Ar.log.setLevel(e,"none"),e};Ar.log.setLevel=function(r,e){var t=!1;if(r&&!(r.flags&Ar.log.LEVEL_LOCKED))for(var n=0;n<Ar.log.levels.length;++n){var i=Ar.log.levels[n];if(e==i){r.level=e,t=!0;break}}return t};Ar.log.lock=function(r,e){typeof e>"u"||e?r.flags|=Ar.log.LEVEL_LOCKED:r.flags&=~Ar.log.LEVEL_LOCKED};Ar.log.addLogger=function(r){mB.push(r)};typeof console<"u"&&"log"in console?(console.error&&console.warn&&console.info&&console.debug?(h6={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},jx=o(function(r,e){Ar.log.prepareStandard(e);var t=h6[e.level],n=[e.standard];n=n.concat(e.arguments.slice()),t.apply(console,n)},"f"),uv=Ar.log.makeLogger(jx)):(jx=o(function(e,t){Ar.log.prepareStandardFull(t),console.log(t.standardFull)},"f"),uv=Ar.log.makeLogger(jx)),Ar.log.setLevel(uv,"debug"),Ar.log.addLogger(uv),Vx=uv):console={log:o(function(){},"log")};var uv,h6,jx;Vx!==null&&typeof window<"u"&&window.location&&(kx=new URL(window.location.href).searchParams,kx.has("console.level")&&Ar.log.setLevel(Vx,kx.get("console.level").slice(-1)[0]),kx.has("console.lock")&&(d6=kx.get("console.lock").slice(-1)[0],d6=="true"&&Ar.log.lock(Vx)));var kx,d6;Ar.log.consoleLogger=Vx});var y6=Z((_2e,v6)=>{"use strict";v6.exports=Ec();jN();tv();TP();nB()});var b6=Z((O2e,x6)=>{"use strict";var st=pr();_p();Nu();Rx();Op();Jd();qP();Fo();kr();ZN();var re=st.asn1,da=x6.exports=st.pkcs7=st.pkcs7||{};da.messageFromPem=function(r){var e=st.pem.decode(r)[0];if(e.type!=="PKCS7"){var t=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var n=re.fromDer(e.body);return da.messageFromAsn1(n)};da.messageToPem=function(r,e){var t={type:"PKCS7",body:re.toDer(r.toAsn1()).getBytes()};return st.pem.encode(t,{maxline:e})};da.messageFromAsn1=function(r){var e={},t=[];if(!re.validate(r,da.asn1.contentInfoValidator,e,t)){var n=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw n.errors=t,n}var i=re.derToOid(e.contentType),s;switch(i){case st.pki.oids.envelopedData:s=da.createEnvelopedData();break;case st.pki.oids.encryptedData:s=da.createEncryptedData();break;case st.pki.oids.signedData:s=da.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+i+" is not (yet) supported.")}return s.fromAsn1(e.content.value[0]),s};da.createSignedData=function(){var r=null;return r={type:st.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:o(function(n){if(vB(r,n,da.asn1.signedDataValidator),r.certificates=[],r.crls=[],r.digestAlgorithmIdentifiers=[],r.contentInfo=null,r.signerInfos=[],r.rawCapture.certificates)for(var i=r.rawCapture.certificates.value,s=0;s<i.length;++s)r.certificates.push(st.pki.certificateFromAsn1(i[s]))},"fromAsn1"),toAsn1:o(function(){r.contentInfo||r.sign();for(var n=[],i=0;i<r.certificates.length;++i)n.push(st.pki.certificateToAsn1(r.certificates[i]));var s=[],a=re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,r.digestAlgorithmIdentifiers),r.contentInfo])]);return n.length>0&&a.value[0].value.push(re.create(re.Class.CONTEXT_SPECIFIC,0,!0,n)),s.length>0&&a.value[0].value.push(re.create(re.Class.CONTEXT_SPECIFIC,1,!0,s)),a.value[0].value.push(re.create(re.Class.UNIVERSAL,re.Type.SET,!0,r.signerInfos)),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),a])},"toAsn1"),addSigner:o(function(n){var i=n.issuer,s=n.serialNumber;if(n.certificate){var a=n.certificate;typeof a=="string"&&(a=st.pki.certificateFromPem(a)),i=a.issuer.attributes,s=a.serialNumber}var u=n.key;if(!u)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof u=="string"&&(u=st.pki.privateKeyFromPem(u));var c=n.digestAlgorithm||st.pki.oids.sha1;switch(c){case st.pki.oids.sha1:case st.pki.oids.sha256:case st.pki.oids.sha384:case st.pki.oids.sha512:case st.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=n.authenticatedAttributes||[];if(l.length>0){for(var p=!1,m=!1,g=0;g<l.length;++g){var S=l[g];if(!p&&S.type===st.pki.oids.contentType){if(p=!0,m)break;continue}if(!m&&S.type===st.pki.oids.messageDigest){if(m=!0,p)break;continue}}if(!p||!m)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.")}r.signers.push({key:u,version:1,issuer:i,serialNumber:s,digestAlgorithm:c,signatureAlgorithm:st.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:l,unauthenticatedAttributes:[]})},"addSigner"),sign:o(function(n){if(n=n||{},(typeof r.content!="object"||r.contentInfo===null)&&(r.contentInfo=re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(st.pki.oids.data).getBytes())]),"content"in r)){var i;r.content instanceof st.util.ByteBuffer?i=r.content.bytes():typeof r.content=="string"&&(i=st.util.encodeUtf8(r.content)),n.detached?r.detachedContent=re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,i):r.contentInfo.value.push(re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,i)]))}if(r.signers.length!==0){var s=e();t(s)}},"sign"),verify:o(function(){throw new Error("PKCS#7 signature verification not yet implemented.")},"verify"),addCertificate:o(function(n){typeof n=="string"&&(n=st.pki.certificateFromPem(n)),r.certificates.push(n)},"addCertificate"),addCertificateRevokationList:o(function(n){throw new Error("PKCS#7 CRL support not yet implemented.")},"addCertificateRevokationList")},r;function e(){for(var n={},i=0;i<r.signers.length;++i){var s=r.signers[i],a=s.digestAlgorithm;a in n||(n[a]=st.md[st.pki.oids[a]].create()),s.authenticatedAttributes.length===0?s.md=n[a]:s.md=st.md[st.pki.oids[a]].create()}r.digestAlgorithmIdentifiers=[];for(var a in n)r.digestAlgorithmIdentifiers.push(re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(a).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")]));return n}o(e,"addDigestAlgorithmIds");function t(n){var i;if(r.detachedContent?i=r.detachedContent:(i=r.contentInfo.value[1],i=i.value[0]),!i)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var s=re.derToOid(r.contentInfo.value[0].value),a=re.toDer(i);a.getByte(),re.getBerValueLength(a),a=a.getBytes();for(var u in n)n[u].start().update(a);for(var c=new Date,l=0;l<r.signers.length;++l){var p=r.signers[l];if(p.authenticatedAttributes.length===0){if(s!==st.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{p.authenticatedAttributesAsn1=re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var m=re.create(re.Class.UNIVERSAL,re.Type.SET,!0,[]),g=0;g<p.authenticatedAttributes.length;++g){var S=p.authenticatedAttributes[g];S.type===st.pki.oids.messageDigest?S.value=n[p.digestAlgorithm].digest():S.type===st.pki.oids.signingTime&&(S.value||(S.value=c)),m.value.push(gB(S)),p.authenticatedAttributesAsn1.value.push(gB(S))}a=re.toDer(m).getBytes(),p.md.start().update(a)}p.signature=p.key.sign(p.md,"RSASSA-PKCS1-V1_5")}r.signerInfos=kfe(r.signers)}o(t,"addSignerInfos")};da.createEncryptedData=function(){var r=null;return r={type:st.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:st.pki.oids["aes256-CBC"]},fromAsn1:o(function(e){vB(r,e,da.asn1.encryptedDataValidator)},"fromAsn1"),decrypt:o(function(e){e!==void 0&&(r.encryptedContent.key=e),S6(r)},"decrypt")},r};da.createEnvelopedData=function(){var r=null;return r={type:st.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:st.pki.oids["aes256-CBC"]},fromAsn1:o(function(e){var t=vB(r,e,da.asn1.envelopedDataValidator);r.recipients=Bfe(t.recipientInfos.value)},"fromAsn1"),toAsn1:o(function(){return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,Ffe(r.recipients)),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,Vfe(r.encryptedContent))])])])},"toAsn1"),findRecipient:o(function(e){for(var t=e.issuer.attributes,n=0;n<r.recipients.length;++n){var i=r.recipients[n],s=i.issuer;if(i.serialNumber===e.serialNumber&&s.length===t.length){for(var a=!0,u=0;u<t.length;++u)if(s[u].type!==t[u].type||s[u].value!==t[u].value){a=!1;break}if(a)return i}}return null},"findRecipient"),decrypt:o(function(e,t){if(r.encryptedContent.key===void 0&&e!==void 0&&t!==void 0)switch(e.encryptedContent.algorithm){case st.pki.oids.rsaEncryption:case st.pki.oids.desCBC:var n=t.decrypt(e.encryptedContent.content);r.encryptedContent.key=st.util.createBuffer(n);break;default:throw new Error("Unsupported asymmetric cipher, OID "+e.encryptedContent.algorithm)}S6(r)},"decrypt"),addRecipient:o(function(e){r.recipients.push({version:0,issuer:e.issuer.attributes,serialNumber:e.serialNumber,encryptedContent:{algorithm:st.pki.oids.rsaEncryption,key:e.publicKey}})},"addRecipient"),encrypt:o(function(e,t){if(r.encryptedContent.content===void 0){t=t||r.encryptedContent.algorithm,e=e||r.encryptedContent.key;var n,i,s;switch(t){case st.pki.oids["aes128-CBC"]:n=16,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["aes192-CBC"]:n=24,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["aes256-CBC"]:n=32,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["des-EDE3-CBC"]:n=24,i=8,s=st.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+t)}if(e===void 0)e=st.util.createBuffer(st.random.getBytes(n));else if(e.length()!=n)throw new Error("Symmetric key has wrong length; got "+e.length()+" bytes, expected "+n+".");r.encryptedContent.algorithm=t,r.encryptedContent.key=e,r.encryptedContent.parameter=st.util.createBuffer(st.random.getBytes(i));var a=s(e);if(a.start(r.encryptedContent.parameter.copy()),a.update(r.content),!a.finish())throw new Error("Symmetric encryption failed.");r.encryptedContent.content=a.output}for(var u=0;u<r.recipients.length;++u){var c=r.recipients[u];if(c.encryptedContent.content===void 0)switch(c.encryptedContent.algorithm){case st.pki.oids.rsaEncryption:c.encryptedContent.content=c.encryptedContent.key.encrypt(r.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+c.encryptedContent.algorithm)}}},"encrypt")},r};function Ofe(r){var e={},t=[];if(!re.validate(r,da.asn1.recipientInfoValidator,e,t)){var n=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw n.errors=t,n}return{version:e.version.charCodeAt(0),issuer:st.pki.RDNAttributesAsArray(e.issuer),serialNumber:st.util.createBuffer(e.serial).toHex(),encryptedContent:{algorithm:re.derToOid(e.encAlgorithm),parameter:e.encParameter?e.encParameter.value:void 0,content:e.encKey}}}o(Ofe,"_recipientFromAsn1");function Pfe(r){return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[st.pki.distinguishedNameToAsn1({attributes:r.issuer}),re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,st.util.hexToBytes(r.serialNumber))]),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.encryptedContent.algorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")]),re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.encryptedContent.content)])}o(Pfe,"_recipientToAsn1");function Bfe(r){for(var e=[],t=0;t<r.length;++t)e.push(Ofe(r[t]));return e}o(Bfe,"_recipientsFromAsn1");function Ffe(r){for(var e=[],t=0;t<r.length;++t)e.push(Pfe(r[t]));return e}o(Ffe,"_recipientsToAsn1");function Lfe(r){var e=re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[st.pki.distinguishedNameToAsn1({attributes:r.issuer}),re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,st.util.hexToBytes(r.serialNumber))]),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.digestAlgorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")])]);if(r.authenticatedAttributesAsn1&&e.value.push(r.authenticatedAttributesAsn1),e.value.push(re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.signatureAlgorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")])),e.value.push(re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.signature)),r.unauthenticatedAttributes.length>0){for(var t=re.create(re.Class.CONTEXT_SPECIFIC,1,!0,[]),n=0;n<r.unauthenticatedAttributes.length;++n){var i=r.unauthenticatedAttributes[n];t.values.push(gB(i))}e.value.push(t)}return e}o(Lfe,"_signerToAsn1");function kfe(r){for(var e=[],t=0;t<r.length;++t)e.push(Lfe(r[t]));return e}o(kfe,"_signersToAsn1");function gB(r){var e;if(r.type===st.pki.oids.contentType)e=re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.value).getBytes());else if(r.type===st.pki.oids.messageDigest)e=re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.value.bytes());else if(r.type===st.pki.oids.signingTime){var t=new Date("1950-01-01T00:00:00Z"),n=new Date("2050-01-01T00:00:00Z"),i=r.value;if(typeof i=="string"){var s=Date.parse(i);isNaN(s)?i.length===13?i=re.utcTimeToDate(i):i=re.generalizedTimeToDate(i):i=new Date(s)}i>=t&&i<n?e=re.create(re.Class.UNIVERSAL,re.Type.UTCTIME,!1,re.dateToUtcTime(i)):e=re.create(re.Class.UNIVERSAL,re.Type.GENERALIZEDTIME,!1,re.dateToGeneralizedTime(i))}return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,[e])])}o(gB,"_attributeToAsn1");function Vfe(r){return[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(st.pki.oids.data).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.algorithm).getBytes()),r.parameter?re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.parameter.getBytes()):void 0]),re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.content.getBytes())])]}o(Vfe,"_encryptedContentToAsn1");function vB(r,e,t){var n={},i=[];if(!re.validate(e,t,n,i)){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 a=re.derToOid(n.contentType);if(a!==st.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(n.encryptedContent){var u="";if(st.util.isArray(n.encryptedContent))for(var c=0;c<n.encryptedContent.length;++c){if(n.encryptedContent[c].type!==re.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");u+=n.encryptedContent[c].value}else u=n.encryptedContent;r.encryptedContent={algorithm:re.derToOid(n.encAlgorithm),parameter:st.util.createBuffer(n.encParameter.value),content:st.util.createBuffer(u)}}if(n.content){var u="";if(st.util.isArray(n.content))for(var c=0;c<n.content.length;++c){if(n.content[c].type!==re.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");u+=n.content[c].value}else u=n.content;r.content=st.util.createBuffer(u)}return r.version=n.version.charCodeAt(0),r.rawCapture=n,n}o(vB,"_fromAsn1");function S6(r){if(r.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(r.content===void 0){var e;switch(r.encryptedContent.algorithm){case st.pki.oids["aes128-CBC"]:case st.pki.oids["aes192-CBC"]:case st.pki.oids["aes256-CBC"]:e=st.aes.createDecryptionCipher(r.encryptedContent.key);break;case st.pki.oids.desCBC:case st.pki.oids["des-EDE3-CBC"]:e=st.des.createDecryptionCipher(r.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+r.encryptedContent.algorithm)}if(e.start(r.encryptedContent.parameter),e.update(r.encryptedContent.content),!e.finish())throw new Error("Symmetric decryption failed.");r.content=e.output}}o(S6,"_decryptContent")});var C6=Z((B2e,w6)=>{"use strict";var Ai=pr();_p();Qg();jN();tv();kr();var u2=w6.exports=Ai.ssh=Ai.ssh||{};u2.privateKeyToPutty=function(r,e,t){t=t||"",e=e||"";var n="ssh-rsa",i=e===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+n+`\r
15
15
  `;s+="Encryption: "+i+`\r
16
16
  `,s+="Comment: "+t+`\r
17
17
  `;var a=Ai.util.createBuffer();cv(a,n),Pc(a,r.e),Pc(a,r.n);var u=Ai.util.encode64(a.bytes(),64),c=Math.floor(u.length/66)+1;s+="Public-Lines: "+c+`\r
@@ -23,10 +23,10 @@ Private-MAC: `+N.digest().toHex()+`\r
23
23
  `).join(`
24
24
  `+s),r.push(i+"m+"+x2.exports.humanize(this.diff)+"\x1B[0m")}else r[0]=npe()+e+" "+r[0]}o(rpe,"formatArgs");function npe(){return Qi.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(npe,"getDate");function ipe(...r){return process.stderr.write(S2.formatWithOptions(Qi.inspectOpts,...r)+`
25
25
  `)}o(ipe,"log");function spe(r){r?process.env.DEBUG=r:delete process.env.DEBUG}o(spe,"save");function ape(){return process.env.DEBUG}o(ape,"load");function ope(r){r.inspectOpts={};let e=Object.keys(Qi.inspectOpts);for(let t=0;t<e.length;t++)r.inspectOpts[e[t]]=Qi.inspectOpts[e[t]]}o(ope,"init");x2.exports=AB()(Qi);var{formatters:X6}=x2.exports;X6.o=function(r){return this.inspectOpts.colors=this.useColors,S2.inspect(r,this.inspectOpts).split(`
26
- `).map(e=>e.trim()).join(" ")};X6.O=function(r){return this.inspectOpts.colors=this.useColors,S2.inspect(r,this.inspectOpts)}});var mv=Z((GRe,TB)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?TB.exports=q6():TB.exports=W6()});var Q6=Z((XRe,J6)=>{"use strict";var{PassThrough:upe}=require("stream");J6.exports=r=>{r={...r};let{array:e}=r,{encoding:t}=r,n=t==="buffer",i=!1;e?i=!(t||n):t=t||"utf8",n&&(t=null);let s=new upe({objectMode:i});t&&s.setEncoding(t);let a=0,u=[];return s.on("data",c=>{u.push(c),i?a=u.length:a+=c.length}),s.getBufferedValue=()=>e?u:n?Buffer.concat(u,a):u.join(""),s.getBufferedLength=()=>a,s}});var Z6=Z((JRe,qx)=>{"use strict";var{constants:cpe}=require("buffer"),lpe=require("stream"),{promisify:fpe}=require("util"),ppe=Q6(),hpe=fpe(lpe.pipeline),Y6=class extends Error{static{o(this,"MaxBufferError")}constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function RB(r,e){if(!r)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:t}=e,n=ppe(e);return await new Promise((i,s)=>{let a=o(u=>{u&&n.getBufferedLength()<=cpe.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),s(u)},"rejectPromise");(async()=>{try{await hpe(r,n),i()}catch(u){a(u)}})(),n.on("data",()=>{n.getBufferedLength()>t&&a(new Y6)})}),n.getBufferedValue()}o(RB,"getStream");qx.exports=RB;qx.exports.buffer=(r,e)=>RB(r,{...e,encoding:"buffer"});qx.exports.array=(r,e)=>RB(r,{...e,array:!0});qx.exports.MaxBufferError=Y6});var Xl=Z((gv,Hx)=>{"use strict";(function(){var r,e="4.17.21",t=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",l=1,p=2,m=4,g=1,S=2,v=1,b=2,x=4,E=8,N=16,w=32,C=64,A=128,R=256,M=512,_=30,H="...",z=800,K=16,X=1,ye=2,fe=3,ce=1/0,ee=9007199254740991,pe=17976931348623157e292,Ce=NaN,Ye=4294967295,xe=Ye-1,ie=Ye>>>1,De=[["ary",A],["bind",v],["bindKey",b],["curry",E],["curryRight",N],["flip",M],["partial",w],["partialRight",C],["rearg",R]],Ze="[object Arguments]",We="[object Array]",it="[object AsyncFunction]",F="[object Boolean]",O="[object Date]",oe="[object DOMException]",J="[object Error]",Ge="[object Function]",Ue="[object GeneratorFunction]",Pe="[object Map]",bt="[object Number]",Ir="[object Null]",Je="[object Object]",Tr="[object Promise]",eo="[object Proxy]",nt="[object RegExp]",Pn="[object Set]",Ei="[object String]",ks="[object Symbol]",Ca="[object Undefined]",aa="[object WeakMap]",Et="[object WeakSet]",lt="[object ArrayBuffer]",ps="[object DataView]",oa="[object Float32Array]",gc="[object Float64Array]",vc="[object Int8Array]",Jt="[object Int16Array]",_g="[object Int32Array]",Og="[object Uint8Array]",jd="[object Uint8ClampedArray]",sx="[object Uint16Array]",to="[object Uint32Array]",d=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,se=/&(?:amp|lt|gt|quot|#39);/g,de=/[&<>"']/g,G=RegExp(se.source),dt=RegExp(de.source),er=/<%-([\s\S]+?)%>/g,vr=/<%([\s\S]+?)%>/g,ft=/<%=([\s\S]+?)%>/g,Xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hs=/^\w*$/,No=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lr=/[\\^$.*+?()[\]{}|]/g,yc=RegExp(Lr.source),ax=/^\s+/,OA=/\s/,X_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,W_=/\{\n\/\* \[wrapped with (.+)\] \*/,J_=/,? & /,Q_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/[()=,{}\[\]\/\s]/,Cr=/\\(\\)?/g,Vs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Su=/\w*$/,Y_=/^[-+]0x[0-9a-f]+$/i,zZ=/^0b[01]+$/i,KZ=/^\[object .+?Constructor\]$/,$Z=/^0o[0-7]+$/i,GZ=/^(?:0|[1-9]\d*)$/,XZ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,PA=/($^)/,WZ=/['\n\r\u2028\u2029\\]/g,BA="\\ud800-\\udfff",JZ="\\u0300-\\u036f",QZ="\\ufe20-\\ufe2f",YZ="\\u20d0-\\u20ff",C8=JZ+QZ+YZ,E8="\\u2700-\\u27bf",A8="a-z\\xdf-\\xf6\\xf8-\\xff",ZZ="\\xac\\xb1\\xd7\\xf7",eee="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",tee="\\u2000-\\u206f",ree=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",N8="A-Z\\xc0-\\xd6\\xd8-\\xde",I8="\\ufe0e\\ufe0f",T8=ZZ+eee+tee+ree,Z_="['\u2019]",nee="["+BA+"]",R8="["+T8+"]",FA="["+C8+"]",D8="\\d+",iee="["+E8+"]",_8="["+A8+"]",O8="[^"+BA+T8+D8+E8+A8+N8+"]",eO="\\ud83c[\\udffb-\\udfff]",see="(?:"+FA+"|"+eO+")",P8="[^"+BA+"]",tO="(?:\\ud83c[\\udde6-\\uddff]){2}",rO="[\\ud800-\\udbff][\\udc00-\\udfff]",Pg="["+N8+"]",B8="\\u200d",F8="(?:"+_8+"|"+O8+")",aee="(?:"+Pg+"|"+O8+")",L8="(?:"+Z_+"(?:d|ll|m|re|s|t|ve))?",k8="(?:"+Z_+"(?:D|LL|M|RE|S|T|VE))?",V8=see+"?",j8="["+I8+"]?",oee="(?:"+B8+"(?:"+[P8,tO,rO].join("|")+")"+j8+V8+")*",uee="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cee="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",U8=j8+V8+oee,lee="(?:"+[iee,tO,rO].join("|")+")"+U8,fee="(?:"+[P8+FA+"?",FA,tO,rO,nee].join("|")+")",pee=RegExp(Z_,"g"),hee=RegExp(FA,"g"),nO=RegExp(eO+"(?="+eO+")|"+fee+U8,"g"),dee=RegExp([Pg+"?"+_8+"+"+L8+"(?="+[R8,Pg,"$"].join("|")+")",aee+"+"+k8+"(?="+[R8,Pg+F8,"$"].join("|")+")",Pg+"?"+F8+"+"+L8,Pg+"+"+k8,cee,uee,D8,lee].join("|"),"g"),mee=RegExp("["+B8+BA+C8+I8+"]"),gee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yee=-1,Nn={};Nn[oa]=Nn[gc]=Nn[vc]=Nn[Jt]=Nn[_g]=Nn[Og]=Nn[jd]=Nn[sx]=Nn[to]=!0,Nn[Ze]=Nn[We]=Nn[lt]=Nn[F]=Nn[ps]=Nn[O]=Nn[J]=Nn[Ge]=Nn[Pe]=Nn[bt]=Nn[Je]=Nn[nt]=Nn[Pn]=Nn[Ei]=Nn[aa]=!1;var mn={};mn[Ze]=mn[We]=mn[lt]=mn[ps]=mn[F]=mn[O]=mn[oa]=mn[gc]=mn[vc]=mn[Jt]=mn[_g]=mn[Pe]=mn[bt]=mn[Je]=mn[nt]=mn[Pn]=mn[Ei]=mn[ks]=mn[Og]=mn[jd]=mn[sx]=mn[to]=!0,mn[J]=mn[Ge]=mn[aa]=!1;var See={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},xee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bee={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},wee={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cee=parseFloat,Eee=parseInt,M8=typeof global=="object"&&global&&global.Object===Object&&global,Aee=typeof self=="object"&&self&&self.Object===Object&&self,Hi=M8||Aee||Function("return this")(),iO=typeof gv=="object"&&gv&&!gv.nodeType&&gv,Ud=iO&&typeof Hx=="object"&&Hx&&!Hx.nodeType&&Hx,q8=Ud&&Ud.exports===iO,sO=q8&&M8.process,Io=(function(){try{var he=Ud&&Ud.require&&Ud.require("util").types;return he||sO&&sO.binding&&sO.binding("util")}catch{}})(),H8=Io&&Io.isArrayBuffer,z8=Io&&Io.isDate,K8=Io&&Io.isMap,$8=Io&&Io.isRegExp,G8=Io&&Io.isSet,X8=Io&&Io.isTypedArray;function ro(he,Oe,Te){switch(Te.length){case 0:return he.call(Oe);case 1:return he.call(Oe,Te[0]);case 2:return he.call(Oe,Te[0],Te[1]);case 3:return he.call(Oe,Te[0],Te[1],Te[2])}return he.apply(Oe,Te)}o(ro,"apply");function Nee(he,Oe,Te,St){for(var Qt=-1,$r=he==null?0:he.length;++Qt<$r;){var Oi=he[Qt];Oe(St,Oi,Te(Oi),he)}return St}o(Nee,"arrayAggregator");function To(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St&&Oe(he[Te],Te,he)!==!1;);return he}o(To,"arrayEach");function Iee(he,Oe){for(var Te=he==null?0:he.length;Te--&&Oe(he[Te],Te,he)!==!1;);return he}o(Iee,"arrayEachRight");function W8(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St;)if(!Oe(he[Te],Te,he))return!1;return!0}o(W8,"arrayEvery");function mp(he,Oe){for(var Te=-1,St=he==null?0:he.length,Qt=0,$r=[];++Te<St;){var Oi=he[Te];Oe(Oi,Te,he)&&($r[Qt++]=Oi)}return $r}o(mp,"arrayFilter");function LA(he,Oe){var Te=he==null?0:he.length;return!!Te&&Bg(he,Oe,0)>-1}o(LA,"arrayIncludes");function aO(he,Oe,Te){for(var St=-1,Qt=he==null?0:he.length;++St<Qt;)if(Te(Oe,he[St]))return!0;return!1}o(aO,"arrayIncludesWith");function Bn(he,Oe){for(var Te=-1,St=he==null?0:he.length,Qt=Array(St);++Te<St;)Qt[Te]=Oe(he[Te],Te,he);return Qt}o(Bn,"arrayMap");function gp(he,Oe){for(var Te=-1,St=Oe.length,Qt=he.length;++Te<St;)he[Qt+Te]=Oe[Te];return he}o(gp,"arrayPush");function oO(he,Oe,Te,St){var Qt=-1,$r=he==null?0:he.length;for(St&&$r&&(Te=he[++Qt]);++Qt<$r;)Te=Oe(Te,he[Qt],Qt,he);return Te}o(oO,"arrayReduce");function Tee(he,Oe,Te,St){var Qt=he==null?0:he.length;for(St&&Qt&&(Te=he[--Qt]);Qt--;)Te=Oe(Te,he[Qt],Qt,he);return Te}o(Tee,"arrayReduceRight");function uO(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St;)if(Oe(he[Te],Te,he))return!0;return!1}o(uO,"arraySome");var Ree=cO("length");function Dee(he){return he.split("")}o(Dee,"asciiToArray");function _ee(he){return he.match(Q_)||[]}o(_ee,"asciiWords");function J8(he,Oe,Te){var St;return Te(he,function(Qt,$r,Oi){if(Oe(Qt,$r,Oi))return St=$r,!1}),St}o(J8,"baseFindKey");function kA(he,Oe,Te,St){for(var Qt=he.length,$r=Te+(St?1:-1);St?$r--:++$r<Qt;)if(Oe(he[$r],$r,he))return $r;return-1}o(kA,"baseFindIndex");function Bg(he,Oe,Te){return Oe===Oe?Hee(he,Oe,Te):kA(he,Q8,Te)}o(Bg,"baseIndexOf");function Oee(he,Oe,Te,St){for(var Qt=Te-1,$r=he.length;++Qt<$r;)if(St(he[Qt],Oe))return Qt;return-1}o(Oee,"baseIndexOfWith");function Q8(he){return he!==he}o(Q8,"baseIsNaN");function Y8(he,Oe){var Te=he==null?0:he.length;return Te?fO(he,Oe)/Te:Ce}o(Y8,"baseMean");function cO(he){return function(Oe){return Oe==null?r:Oe[he]}}o(cO,"baseProperty");function lO(he){return function(Oe){return he==null?r:he[Oe]}}o(lO,"basePropertyOf");function Z8(he,Oe,Te,St,Qt){return Qt(he,function($r,Oi,cn){Te=St?(St=!1,$r):Oe(Te,$r,Oi,cn)}),Te}o(Z8,"baseReduce");function Pee(he,Oe){var Te=he.length;for(he.sort(Oe);Te--;)he[Te]=he[Te].value;return he}o(Pee,"baseSortBy");function fO(he,Oe){for(var Te,St=-1,Qt=he.length;++St<Qt;){var $r=Oe(he[St]);$r!==r&&(Te=Te===r?$r:Te+$r)}return Te}o(fO,"baseSum");function pO(he,Oe){for(var Te=-1,St=Array(he);++Te<he;)St[Te]=Oe(Te);return St}o(pO,"baseTimes");function Bee(he,Oe){return Bn(Oe,function(Te){return[Te,he[Te]]})}o(Bee,"baseToPairs");function ej(he){return he&&he.slice(0,ij(he)+1).replace(ax,"")}o(ej,"baseTrim");function no(he){return function(Oe){return he(Oe)}}o(no,"baseUnary");function hO(he,Oe){return Bn(Oe,function(Te){return he[Te]})}o(hO,"baseValues");function ox(he,Oe){return he.has(Oe)}o(ox,"cacheHas");function tj(he,Oe){for(var Te=-1,St=he.length;++Te<St&&Bg(Oe,he[Te],0)>-1;);return Te}o(tj,"charsStartIndex");function rj(he,Oe){for(var Te=he.length;Te--&&Bg(Oe,he[Te],0)>-1;);return Te}o(rj,"charsEndIndex");function Fee(he,Oe){for(var Te=he.length,St=0;Te--;)he[Te]===Oe&&++St;return St}o(Fee,"countHolders");var Lee=lO(See),kee=lO(xee);function Vee(he){return"\\"+wee[he]}o(Vee,"escapeStringChar");function jee(he,Oe){return he==null?r:he[Oe]}o(jee,"getValue");function Fg(he){return mee.test(he)}o(Fg,"hasUnicode");function Uee(he){return gee.test(he)}o(Uee,"hasUnicodeWord");function Mee(he){for(var Oe,Te=[];!(Oe=he.next()).done;)Te.push(Oe.value);return Te}o(Mee,"iteratorToArray");function dO(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St,Qt){Te[++Oe]=[Qt,St]}),Te}o(dO,"mapToArray");function nj(he,Oe){return function(Te){return he(Oe(Te))}}o(nj,"overArg");function vp(he,Oe){for(var Te=-1,St=he.length,Qt=0,$r=[];++Te<St;){var Oi=he[Te];(Oi===Oe||Oi===c)&&(he[Te]=c,$r[Qt++]=Te)}return $r}o(vp,"replaceHolders");function VA(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St){Te[++Oe]=St}),Te}o(VA,"setToArray");function qee(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St){Te[++Oe]=[St,St]}),Te}o(qee,"setToPairs");function Hee(he,Oe,Te){for(var St=Te-1,Qt=he.length;++St<Qt;)if(he[St]===Oe)return St;return-1}o(Hee,"strictIndexOf");function zee(he,Oe,Te){for(var St=Te+1;St--;)if(he[St]===Oe)return St;return St}o(zee,"strictLastIndexOf");function Lg(he){return Fg(he)?$ee(he):Ree(he)}o(Lg,"stringSize");function xu(he){return Fg(he)?Gee(he):Dee(he)}o(xu,"stringToArray");function ij(he){for(var Oe=he.length;Oe--&&OA.test(he.charAt(Oe)););return Oe}o(ij,"trimmedEndIndex");var Kee=lO(bee);function $ee(he){for(var Oe=nO.lastIndex=0;nO.test(he);)++Oe;return Oe}o($ee,"unicodeSize");function Gee(he){return he.match(nO)||[]}o(Gee,"unicodeToArray");function Xee(he){return he.match(dee)||[]}o(Xee,"unicodeWords");var Wee=o(function he(Oe){Oe=Oe==null?Hi:yp.defaults(Hi.Object(),Oe,yp.pick(Hi,vee));var Te=Oe.Array,St=Oe.Date,Qt=Oe.Error,$r=Oe.Function,Oi=Oe.Math,cn=Oe.Object,mO=Oe.RegExp,Jee=Oe.String,Ro=Oe.TypeError,jA=Te.prototype,Qee=$r.prototype,kg=cn.prototype,UA=Oe["__core-js_shared__"],MA=Qee.toString,Yr=kg.hasOwnProperty,Yee=0,sj=(function(){var f=/[^.]+$/.exec(UA&&UA.keys&&UA.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})(),qA=kg.toString,Zee=MA.call(cn),ete=Hi._,tte=mO("^"+MA.call(Yr).replace(Lr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),HA=q8?Oe.Buffer:r,Sp=Oe.Symbol,zA=Oe.Uint8Array,aj=HA?HA.allocUnsafe:r,KA=nj(cn.getPrototypeOf,cn),oj=cn.create,uj=kg.propertyIsEnumerable,$A=jA.splice,cj=Sp?Sp.isConcatSpreadable:r,ux=Sp?Sp.iterator:r,Md=Sp?Sp.toStringTag:r,GA=(function(){try{var f=$d(cn,"defineProperty");return f({},"",{}),f}catch{}})(),rte=Oe.clearTimeout!==Hi.clearTimeout&&Oe.clearTimeout,nte=St&&St.now!==Hi.Date.now&&St.now,ite=Oe.setTimeout!==Hi.setTimeout&&Oe.setTimeout,XA=Oi.ceil,WA=Oi.floor,gO=cn.getOwnPropertySymbols,ste=HA?HA.isBuffer:r,lj=Oe.isFinite,ate=jA.join,ote=nj(cn.keys,cn),Pi=Oi.max,js=Oi.min,ute=St.now,cte=Oe.parseInt,fj=Oi.random,lte=jA.reverse,vO=$d(Oe,"DataView"),cx=$d(Oe,"Map"),yO=$d(Oe,"Promise"),Vg=$d(Oe,"Set"),lx=$d(Oe,"WeakMap"),fx=$d(cn,"create"),JA=lx&&new lx,jg={},fte=Gd(vO),pte=Gd(cx),hte=Gd(yO),dte=Gd(Vg),mte=Gd(lx),QA=Sp?Sp.prototype:r,px=QA?QA.valueOf:r,pj=QA?QA.toString:r;function U(f){if(ii(f)&&!tr(f)&&!(f instanceof Er)){if(f instanceof Do)return f;if(Yr.call(f,"__wrapped__"))return h5(f)}return new Do(f)}o(U,"lodash");var Ug=(function(){function f(){}return o(f,"object"),function(h){if(!Xn(h))return{};if(oj)return oj(h);f.prototype=h;var y=new f;return f.prototype=r,y}})();function YA(){}o(YA,"baseLodash");function Do(f,h){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=r}o(Do,"LodashWrapper"),U.templateSettings={escape:er,evaluate:vr,interpolate:ft,variable:"",imports:{_:U}},U.prototype=YA.prototype,U.prototype.constructor=U,Do.prototype=Ug(YA.prototype),Do.prototype.constructor=Do;function Er(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ye,this.__views__=[]}o(Er,"LazyWrapper");function gte(){var f=new Er(this.__wrapped__);return f.__actions__=Ea(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Ea(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Ea(this.__views__),f}o(gte,"lazyClone");function vte(){if(this.__filtered__){var f=new Er(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}o(vte,"lazyReverse");function yte(){var f=this.__wrapped__.value(),h=this.__dir__,y=tr(f),I=h<0,B=y?f.length:0,q=Dre(0,B,this.__views__),Q=q.start,te=q.end,ge=te-Q,Be=I?te:Q-1,Ve=this.__iteratees__,Ke=Ve.length,ct=0,Ct=js(ge,this.__takeCount__);if(!y||!I&&B==ge&&Ct==ge)return Lj(f,this.__actions__);var kt=[];e:for(;ge--&&ct<Ct;){Be+=h;for(var fr=-1,Vt=f[Be];++fr<Ke;){var yr=Ve[fr],Rr=yr.iteratee,ao=yr.type,la=Rr(Vt);if(ao==ye)Vt=la;else if(!la){if(ao==X)continue e;break e}}kt[ct++]=Vt}return kt}o(yte,"lazyValue"),Er.prototype=Ug(YA.prototype),Er.prototype.constructor=Er;function qd(f){var h=-1,y=f==null?0:f.length;for(this.clear();++h<y;){var I=f[h];this.set(I[0],I[1])}}o(qd,"Hash");function Ste(){this.__data__=fx?fx(null):{},this.size=0}o(Ste,"hashClear");function xte(f){var h=this.has(f)&&delete this.__data__[f];return this.size-=h?1:0,h}o(xte,"hashDelete");function bte(f){var h=this.__data__;if(fx){var y=h[f];return y===a?r:y}return Yr.call(h,f)?h[f]:r}o(bte,"hashGet");function wte(f){var h=this.__data__;return fx?h[f]!==r:Yr.call(h,f)}o(wte,"hashHas");function Cte(f,h){var y=this.__data__;return this.size+=this.has(f)?0:1,y[f]=fx&&h===r?a:h,this}o(Cte,"hashSet"),qd.prototype.clear=Ste,qd.prototype.delete=xte,qd.prototype.get=bte,qd.prototype.has=wte,qd.prototype.set=Cte;function Bl(f){var h=-1,y=f==null?0:f.length;for(this.clear();++h<y;){var I=f[h];this.set(I[0],I[1])}}o(Bl,"ListCache");function Ete(){this.__data__=[],this.size=0}o(Ete,"listCacheClear");function Ate(f){var h=this.__data__,y=ZA(h,f);if(y<0)return!1;var I=h.length-1;return y==I?h.pop():$A.call(h,y,1),--this.size,!0}o(Ate,"listCacheDelete");function Nte(f){var h=this.__data__,y=ZA(h,f);return y<0?r:h[y][1]}o(Nte,"listCacheGet");function Ite(f){return ZA(this.__data__,f)>-1}o(Ite,"listCacheHas");function Tte(f,h){var y=this.__data__,I=ZA(y,f);return I<0?(++this.size,y.push([f,h])):y[I][1]=h,this}o(Tte,"listCacheSet"),Bl.prototype.clear=Ete,Bl.prototype.delete=Ate,Bl.prototype.get=Nte,Bl.prototype.has=Ite,Bl.prototype.set=Tte;function Fl(f){var h=-1,y=f==null?0:f.length;for(this.clear();++h<y;){var I=f[h];this.set(I[0],I[1])}}o(Fl,"MapCache");function Rte(){this.size=0,this.__data__={hash:new qd,map:new(cx||Bl),string:new qd}}o(Rte,"mapCacheClear");function Dte(f){var h=fN(this,f).delete(f);return this.size-=h?1:0,h}o(Dte,"mapCacheDelete");function _te(f){return fN(this,f).get(f)}o(_te,"mapCacheGet");function Ote(f){return fN(this,f).has(f)}o(Ote,"mapCacheHas");function Pte(f,h){var y=fN(this,f),I=y.size;return y.set(f,h),this.size+=y.size==I?0:1,this}o(Pte,"mapCacheSet"),Fl.prototype.clear=Rte,Fl.prototype.delete=Dte,Fl.prototype.get=_te,Fl.prototype.has=Ote,Fl.prototype.set=Pte;function Hd(f){var h=-1,y=f==null?0:f.length;for(this.__data__=new Fl;++h<y;)this.add(f[h])}o(Hd,"SetCache");function Bte(f){return this.__data__.set(f,a),this}o(Bte,"setCacheAdd");function Fte(f){return this.__data__.has(f)}o(Fte,"setCacheHas"),Hd.prototype.add=Hd.prototype.push=Bte,Hd.prototype.has=Fte;function bu(f){var h=this.__data__=new Bl(f);this.size=h.size}o(bu,"Stack");function Lte(){this.__data__=new Bl,this.size=0}o(Lte,"stackClear");function kte(f){var h=this.__data__,y=h.delete(f);return this.size=h.size,y}o(kte,"stackDelete");function Vte(f){return this.__data__.get(f)}o(Vte,"stackGet");function jte(f){return this.__data__.has(f)}o(jte,"stackHas");function Ute(f,h){var y=this.__data__;if(y instanceof Bl){var I=y.__data__;if(!cx||I.length<t-1)return I.push([f,h]),this.size=++y.size,this;y=this.__data__=new Fl(I)}return y.set(f,h),this.size=y.size,this}o(Ute,"stackSet"),bu.prototype.clear=Lte,bu.prototype.delete=kte,bu.prototype.get=Vte,bu.prototype.has=jte,bu.prototype.set=Ute;function hj(f,h){var y=tr(f),I=!y&&Xd(f),B=!y&&!I&&Ep(f),q=!y&&!I&&!B&&zg(f),Q=y||I||B||q,te=Q?pO(f.length,Jee):[],ge=te.length;for(var Be in f)(h||Yr.call(f,Be))&&!(Q&&(Be=="length"||B&&(Be=="offset"||Be=="parent")||q&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||jl(Be,ge)))&&te.push(Be);return te}o(hj,"arrayLikeKeys");function dj(f){var h=f.length;return h?f[RO(0,h-1)]:r}o(dj,"arraySample");function Mte(f,h){return pN(Ea(f),zd(h,0,f.length))}o(Mte,"arraySampleSize");function qte(f){return pN(Ea(f))}o(qte,"arrayShuffle");function SO(f,h,y){(y!==r&&!wu(f[h],y)||y===r&&!(h in f))&&Ll(f,h,y)}o(SO,"assignMergeValue");function hx(f,h,y){var I=f[h];(!(Yr.call(f,h)&&wu(I,y))||y===r&&!(h in f))&&Ll(f,h,y)}o(hx,"assignValue");function ZA(f,h){for(var y=f.length;y--;)if(wu(f[y][0],h))return y;return-1}o(ZA,"assocIndexOf");function Hte(f,h,y,I){return xp(f,function(B,q,Q){h(I,B,y(B),Q)}),I}o(Hte,"baseAggregator");function mj(f,h){return f&&xc(h,zi(h),f)}o(mj,"baseAssign");function zte(f,h){return f&&xc(h,Na(h),f)}o(zte,"baseAssignIn");function Ll(f,h,y){h=="__proto__"&&GA?GA(f,h,{configurable:!0,enumerable:!0,value:y,writable:!0}):f[h]=y}o(Ll,"baseAssignValue");function xO(f,h){for(var y=-1,I=h.length,B=Te(I),q=f==null;++y<I;)B[y]=q?r:eP(f,h[y]);return B}o(xO,"baseAt");function zd(f,h,y){return f===f&&(y!==r&&(f=f<=y?f:y),h!==r&&(f=f>=h?f:h)),f}o(zd,"baseClamp");function _o(f,h,y,I,B,q){var Q,te=h&l,ge=h&p,Be=h&m;if(y&&(Q=B?y(f,I,B,q):y(f)),Q!==r)return Q;if(!Xn(f))return f;var Ve=tr(f);if(Ve){if(Q=Ore(f),!te)return Ea(f,Q)}else{var Ke=Us(f),ct=Ke==Ge||Ke==Ue;if(Ep(f))return jj(f,te);if(Ke==Je||Ke==Ze||ct&&!B){if(Q=ge||ct?{}:i5(f),!te)return ge?bre(f,zte(Q,f)):xre(f,mj(Q,f))}else{if(!mn[Ke])return B?f:{};Q=Pre(f,Ke,te)}}q||(q=new bu);var Ct=q.get(f);if(Ct)return Ct;q.set(f,Q),P5(f)?f.forEach(function(Vt){Q.add(_o(Vt,h,y,Vt,f,q))}):_5(f)&&f.forEach(function(Vt,yr){Q.set(yr,_o(Vt,h,y,yr,f,q))});var kt=Be?ge?UO:jO:ge?Na:zi,fr=Ve?r:kt(f);return To(fr||f,function(Vt,yr){fr&&(yr=Vt,Vt=f[yr]),hx(Q,yr,_o(Vt,h,y,yr,f,q))}),Q}o(_o,"baseClone");function Kte(f){var h=zi(f);return function(y){return gj(y,f,h)}}o(Kte,"baseConforms");function gj(f,h,y){var I=y.length;if(f==null)return!I;for(f=cn(f);I--;){var B=y[I],q=h[B],Q=f[B];if(Q===r&&!(B in f)||!q(Q))return!1}return!0}o(gj,"baseConformsTo");function vj(f,h,y){if(typeof f!="function")throw new Ro(i);return xx(function(){f.apply(r,y)},h)}o(vj,"baseDelay");function dx(f,h,y,I){var B=-1,q=LA,Q=!0,te=f.length,ge=[],Be=h.length;if(!te)return ge;y&&(h=Bn(h,no(y))),I?(q=aO,Q=!1):h.length>=t&&(q=ox,Q=!1,h=new Hd(h));e:for(;++B<te;){var Ve=f[B],Ke=y==null?Ve:y(Ve);if(Ve=I||Ve!==0?Ve:0,Q&&Ke===Ke){for(var ct=Be;ct--;)if(h[ct]===Ke)continue e;ge.push(Ve)}else q(h,Ke,I)||ge.push(Ve)}return ge}o(dx,"baseDifference");var xp=zj(Sc),yj=zj(wO,!0);function $te(f,h){var y=!0;return xp(f,function(I,B,q){return y=!!h(I,B,q),y}),y}o($te,"baseEvery");function eN(f,h,y){for(var I=-1,B=f.length;++I<B;){var q=f[I],Q=h(q);if(Q!=null&&(te===r?Q===Q&&!so(Q):y(Q,te)))var te=Q,ge=q}return ge}o(eN,"baseExtremum");function Gte(f,h,y,I){var B=f.length;for(y=or(y),y<0&&(y=-y>B?0:B+y),I=I===r||I>B?B:or(I),I<0&&(I+=B),I=y>I?0:F5(I);y<I;)f[y++]=h;return f}o(Gte,"baseFill");function Sj(f,h){var y=[];return xp(f,function(I,B,q){h(I,B,q)&&y.push(I)}),y}o(Sj,"baseFilter");function ds(f,h,y,I,B){var q=-1,Q=f.length;for(y||(y=Fre),B||(B=[]);++q<Q;){var te=f[q];h>0&&y(te)?h>1?ds(te,h-1,y,I,B):gp(B,te):I||(B[B.length]=te)}return B}o(ds,"baseFlatten");var bO=Kj(),xj=Kj(!0);function Sc(f,h){return f&&bO(f,h,zi)}o(Sc,"baseForOwn");function wO(f,h){return f&&xj(f,h,zi)}o(wO,"baseForOwnRight");function tN(f,h){return mp(h,function(y){return Ul(f[y])})}o(tN,"baseFunctions");function Kd(f,h){h=wp(h,f);for(var y=0,I=h.length;f!=null&&y<I;)f=f[bc(h[y++])];return y&&y==I?f:r}o(Kd,"baseGet");function bj(f,h,y){var I=h(f);return tr(f)?I:gp(I,y(f))}o(bj,"baseGetAllKeys");function ua(f){return f==null?f===r?Ca:Ir:Md&&Md in cn(f)?Rre(f):qre(f)}o(ua,"baseGetTag");function CO(f,h){return f>h}o(CO,"baseGt");function Xte(f,h){return f!=null&&Yr.call(f,h)}o(Xte,"baseHas");function Wte(f,h){return f!=null&&h in cn(f)}o(Wte,"baseHasIn");function Jte(f,h,y){return f>=js(h,y)&&f<Pi(h,y)}o(Jte,"baseInRange");function EO(f,h,y){for(var I=y?aO:LA,B=f[0].length,q=f.length,Q=q,te=Te(q),ge=1/0,Be=[];Q--;){var Ve=f[Q];Q&&h&&(Ve=Bn(Ve,no(h))),ge=js(Ve.length,ge),te[Q]=!y&&(h||B>=120&&Ve.length>=120)?new Hd(Q&&Ve):r}Ve=f[0];var Ke=-1,ct=te[0];e:for(;++Ke<B&&Be.length<ge;){var Ct=Ve[Ke],kt=h?h(Ct):Ct;if(Ct=y||Ct!==0?Ct:0,!(ct?ox(ct,kt):I(Be,kt,y))){for(Q=q;--Q;){var fr=te[Q];if(!(fr?ox(fr,kt):I(f[Q],kt,y)))continue e}ct&&ct.push(kt),Be.push(Ct)}}return Be}o(EO,"baseIntersection");function Qte(f,h,y,I){return Sc(f,function(B,q,Q){h(I,y(B),q,Q)}),I}o(Qte,"baseInverter");function mx(f,h,y){h=wp(h,f),f=u5(f,h);var I=f==null?f:f[bc(Po(h))];return I==null?r:ro(I,f,y)}o(mx,"baseInvoke");function wj(f){return ii(f)&&ua(f)==Ze}o(wj,"baseIsArguments");function Yte(f){return ii(f)&&ua(f)==lt}o(Yte,"baseIsArrayBuffer");function Zte(f){return ii(f)&&ua(f)==O}o(Zte,"baseIsDate");function gx(f,h,y,I,B){return f===h?!0:f==null||h==null||!ii(f)&&!ii(h)?f!==f&&h!==h:ere(f,h,y,I,gx,B)}o(gx,"baseIsEqual");function ere(f,h,y,I,B,q){var Q=tr(f),te=tr(h),ge=Q?We:Us(f),Be=te?We:Us(h);ge=ge==Ze?Je:ge,Be=Be==Ze?Je:Be;var Ve=ge==Je,Ke=Be==Je,ct=ge==Be;if(ct&&Ep(f)){if(!Ep(h))return!1;Q=!0,Ve=!1}if(ct&&!Ve)return q||(q=new bu),Q||zg(f)?t5(f,h,y,I,B,q):Ire(f,h,ge,y,I,B,q);if(!(y&g)){var Ct=Ve&&Yr.call(f,"__wrapped__"),kt=Ke&&Yr.call(h,"__wrapped__");if(Ct||kt){var fr=Ct?f.value():f,Vt=kt?h.value():h;return q||(q=new bu),B(fr,Vt,y,I,q)}}return ct?(q||(q=new bu),Tre(f,h,y,I,B,q)):!1}o(ere,"baseIsEqualDeep");function tre(f){return ii(f)&&Us(f)==Pe}o(tre,"baseIsMap");function AO(f,h,y,I){var B=y.length,q=B,Q=!I;if(f==null)return!q;for(f=cn(f);B--;){var te=y[B];if(Q&&te[2]?te[1]!==f[te[0]]:!(te[0]in f))return!1}for(;++B<q;){te=y[B];var ge=te[0],Be=f[ge],Ve=te[1];if(Q&&te[2]){if(Be===r&&!(ge in f))return!1}else{var Ke=new bu;if(I)var ct=I(Be,Ve,ge,f,h,Ke);if(!(ct===r?gx(Ve,Be,g|S,I,Ke):ct))return!1}}return!0}o(AO,"baseIsMatch");function Cj(f){if(!Xn(f)||kre(f))return!1;var h=Ul(f)?tte:KZ;return h.test(Gd(f))}o(Cj,"baseIsNative");function rre(f){return ii(f)&&ua(f)==nt}o(rre,"baseIsRegExp");function nre(f){return ii(f)&&Us(f)==Pn}o(nre,"baseIsSet");function ire(f){return ii(f)&&yN(f.length)&&!!Nn[ua(f)]}o(ire,"baseIsTypedArray");function Ej(f){return typeof f=="function"?f:f==null?Ia:typeof f=="object"?tr(f)?Ij(f[0],f[1]):Nj(f):$5(f)}o(Ej,"baseIteratee");function NO(f){if(!Sx(f))return ote(f);var h=[];for(var y in cn(f))Yr.call(f,y)&&y!="constructor"&&h.push(y);return h}o(NO,"baseKeys");function sre(f){if(!Xn(f))return Mre(f);var h=Sx(f),y=[];for(var I in f)I=="constructor"&&(h||!Yr.call(f,I))||y.push(I);return y}o(sre,"baseKeysIn");function IO(f,h){return f<h}o(IO,"baseLt");function Aj(f,h){var y=-1,I=Aa(f)?Te(f.length):[];return xp(f,function(B,q,Q){I[++y]=h(B,q,Q)}),I}o(Aj,"baseMap");function Nj(f){var h=qO(f);return h.length==1&&h[0][2]?a5(h[0][0],h[0][1]):function(y){return y===f||AO(y,f,h)}}o(Nj,"baseMatches");function Ij(f,h){return zO(f)&&s5(h)?a5(bc(f),h):function(y){var I=eP(y,f);return I===r&&I===h?tP(y,f):gx(h,I,g|S)}}o(Ij,"baseMatchesProperty");function rN(f,h,y,I,B){f!==h&&bO(h,function(q,Q){if(B||(B=new bu),Xn(q))are(f,h,Q,y,rN,I,B);else{var te=I?I($O(f,Q),q,Q+"",f,h,B):r;te===r&&(te=q),SO(f,Q,te)}},Na)}o(rN,"baseMerge");function are(f,h,y,I,B,q,Q){var te=$O(f,y),ge=$O(h,y),Be=Q.get(ge);if(Be){SO(f,y,Be);return}var Ve=q?q(te,ge,y+"",f,h,Q):r,Ke=Ve===r;if(Ke){var ct=tr(ge),Ct=!ct&&Ep(ge),kt=!ct&&!Ct&&zg(ge);Ve=ge,ct||Ct||kt?tr(te)?Ve=te:mi(te)?Ve=Ea(te):Ct?(Ke=!1,Ve=jj(ge,!0)):kt?(Ke=!1,Ve=Uj(ge,!0)):Ve=[]:bx(ge)||Xd(ge)?(Ve=te,Xd(te)?Ve=L5(te):(!Xn(te)||Ul(te))&&(Ve=i5(ge))):Ke=!1}Ke&&(Q.set(ge,Ve),B(Ve,ge,I,q,Q),Q.delete(ge)),SO(f,y,Ve)}o(are,"baseMergeDeep");function Tj(f,h){var y=f.length;if(y)return h+=h<0?y:0,jl(h,y)?f[h]:r}o(Tj,"baseNth");function Rj(f,h,y){h.length?h=Bn(h,function(q){return tr(q)?function(Q){return Kd(Q,q.length===1?q[0]:q)}:q}):h=[Ia];var I=-1;h=Bn(h,no(Pt()));var B=Aj(f,function(q,Q,te){var ge=Bn(h,function(Be){return Be(q)});return{criteria:ge,index:++I,value:q}});return Pee(B,function(q,Q){return Sre(q,Q,y)})}o(Rj,"baseOrderBy");function ore(f,h){return Dj(f,h,function(y,I){return tP(f,I)})}o(ore,"basePick");function Dj(f,h,y){for(var I=-1,B=h.length,q={};++I<B;){var Q=h[I],te=Kd(f,Q);y(te,Q)&&vx(q,wp(Q,f),te)}return q}o(Dj,"basePickBy");function ure(f){return function(h){return Kd(h,f)}}o(ure,"basePropertyDeep");function TO(f,h,y,I){var B=I?Oee:Bg,q=-1,Q=h.length,te=f;for(f===h&&(h=Ea(h)),y&&(te=Bn(f,no(y)));++q<Q;)for(var ge=0,Be=h[q],Ve=y?y(Be):Be;(ge=B(te,Ve,ge,I))>-1;)te!==f&&$A.call(te,ge,1),$A.call(f,ge,1);return f}o(TO,"basePullAll");function _j(f,h){for(var y=f?h.length:0,I=y-1;y--;){var B=h[y];if(y==I||B!==q){var q=B;jl(B)?$A.call(f,B,1):OO(f,B)}}return f}o(_j,"basePullAt");function RO(f,h){return f+WA(fj()*(h-f+1))}o(RO,"baseRandom");function cre(f,h,y,I){for(var B=-1,q=Pi(XA((h-f)/(y||1)),0),Q=Te(q);q--;)Q[I?q:++B]=f,f+=y;return Q}o(cre,"baseRange");function DO(f,h){var y="";if(!f||h<1||h>ee)return y;do h%2&&(y+=f),h=WA(h/2),h&&(f+=f);while(h);return y}o(DO,"baseRepeat");function mr(f,h){return GO(o5(f,h,Ia),f+"")}o(mr,"baseRest");function lre(f){return dj(Kg(f))}o(lre,"baseSample");function fre(f,h){var y=Kg(f);return pN(y,zd(h,0,y.length))}o(fre,"baseSampleSize");function vx(f,h,y,I){if(!Xn(f))return f;h=wp(h,f);for(var B=-1,q=h.length,Q=q-1,te=f;te!=null&&++B<q;){var ge=bc(h[B]),Be=y;if(ge==="__proto__"||ge==="constructor"||ge==="prototype")return f;if(B!=Q){var Ve=te[ge];Be=I?I(Ve,ge,te):r,Be===r&&(Be=Xn(Ve)?Ve:jl(h[B+1])?[]:{})}hx(te,ge,Be),te=te[ge]}return f}o(vx,"baseSet");var Oj=JA?function(f,h){return JA.set(f,h),f}:Ia,pre=GA?function(f,h){return GA(f,"toString",{configurable:!0,enumerable:!1,value:nP(h),writable:!0})}:Ia;function hre(f){return pN(Kg(f))}o(hre,"baseShuffle");function Oo(f,h,y){var I=-1,B=f.length;h<0&&(h=-h>B?0:B+h),y=y>B?B:y,y<0&&(y+=B),B=h>y?0:y-h>>>0,h>>>=0;for(var q=Te(B);++I<B;)q[I]=f[I+h];return q}o(Oo,"baseSlice");function dre(f,h){var y;return xp(f,function(I,B,q){return y=h(I,B,q),!y}),!!y}o(dre,"baseSome");function nN(f,h,y){var I=0,B=f==null?I:f.length;if(typeof h=="number"&&h===h&&B<=ie){for(;I<B;){var q=I+B>>>1,Q=f[q];Q!==null&&!so(Q)&&(y?Q<=h:Q<h)?I=q+1:B=q}return B}return _O(f,h,Ia,y)}o(nN,"baseSortedIndex");function _O(f,h,y,I){var B=0,q=f==null?0:f.length;if(q===0)return 0;h=y(h);for(var Q=h!==h,te=h===null,ge=so(h),Be=h===r;B<q;){var Ve=WA((B+q)/2),Ke=y(f[Ve]),ct=Ke!==r,Ct=Ke===null,kt=Ke===Ke,fr=so(Ke);if(Q)var Vt=I||kt;else Be?Vt=kt&&(I||ct):te?Vt=kt&&ct&&(I||!Ct):ge?Vt=kt&&ct&&!Ct&&(I||!fr):Ct||fr?Vt=!1:Vt=I?Ke<=h:Ke<h;Vt?B=Ve+1:q=Ve}return js(q,xe)}o(_O,"baseSortedIndexBy");function Pj(f,h){for(var y=-1,I=f.length,B=0,q=[];++y<I;){var Q=f[y],te=h?h(Q):Q;if(!y||!wu(te,ge)){var ge=te;q[B++]=Q===0?0:Q}}return q}o(Pj,"baseSortedUniq");function Bj(f){return typeof f=="number"?f:so(f)?Ce:+f}o(Bj,"baseToNumber");function io(f){if(typeof f=="string")return f;if(tr(f))return Bn(f,io)+"";if(so(f))return pj?pj.call(f):"";var h=f+"";return h=="0"&&1/f==-ce?"-0":h}o(io,"baseToString");function bp(f,h,y){var I=-1,B=LA,q=f.length,Q=!0,te=[],ge=te;if(y)Q=!1,B=aO;else if(q>=t){var Be=h?null:Are(f);if(Be)return VA(Be);Q=!1,B=ox,ge=new Hd}else ge=h?[]:te;e:for(;++I<q;){var Ve=f[I],Ke=h?h(Ve):Ve;if(Ve=y||Ve!==0?Ve:0,Q&&Ke===Ke){for(var ct=ge.length;ct--;)if(ge[ct]===Ke)continue e;h&&ge.push(Ke),te.push(Ve)}else B(ge,Ke,y)||(ge!==te&&ge.push(Ke),te.push(Ve))}return te}o(bp,"baseUniq");function OO(f,h){return h=wp(h,f),f=u5(f,h),f==null||delete f[bc(Po(h))]}o(OO,"baseUnset");function Fj(f,h,y,I){return vx(f,h,y(Kd(f,h)),I)}o(Fj,"baseUpdate");function iN(f,h,y,I){for(var B=f.length,q=I?B:-1;(I?q--:++q<B)&&h(f[q],q,f););return y?Oo(f,I?0:q,I?q+1:B):Oo(f,I?q+1:0,I?B:q)}o(iN,"baseWhile");function Lj(f,h){var y=f;return y instanceof Er&&(y=y.value()),oO(h,function(I,B){return B.func.apply(B.thisArg,gp([I],B.args))},y)}o(Lj,"baseWrapperValue");function PO(f,h,y){var I=f.length;if(I<2)return I?bp(f[0]):[];for(var B=-1,q=Te(I);++B<I;)for(var Q=f[B],te=-1;++te<I;)te!=B&&(q[B]=dx(q[B]||Q,f[te],h,y));return bp(ds(q,1),h,y)}o(PO,"baseXor");function kj(f,h,y){for(var I=-1,B=f.length,q=h.length,Q={};++I<B;){var te=I<q?h[I]:r;y(Q,f[I],te)}return Q}o(kj,"baseZipObject");function BO(f){return mi(f)?f:[]}o(BO,"castArrayLikeObject");function FO(f){return typeof f=="function"?f:Ia}o(FO,"castFunction");function wp(f,h){return tr(f)?f:zO(f,h)?[f]:p5(Xr(f))}o(wp,"castPath");var mre=mr;function Cp(f,h,y){var I=f.length;return y=y===r?I:y,!h&&y>=I?f:Oo(f,h,y)}o(Cp,"castSlice");var Vj=rte||function(f){return Hi.clearTimeout(f)};function jj(f,h){if(h)return f.slice();var y=f.length,I=aj?aj(y):new f.constructor(y);return f.copy(I),I}o(jj,"cloneBuffer");function LO(f){var h=new f.constructor(f.byteLength);return new zA(h).set(new zA(f)),h}o(LO,"cloneArrayBuffer");function gre(f,h){var y=h?LO(f.buffer):f.buffer;return new f.constructor(y,f.byteOffset,f.byteLength)}o(gre,"cloneDataView");function vre(f){var h=new f.constructor(f.source,Su.exec(f));return h.lastIndex=f.lastIndex,h}o(vre,"cloneRegExp");function yre(f){return px?cn(px.call(f)):{}}o(yre,"cloneSymbol");function Uj(f,h){var y=h?LO(f.buffer):f.buffer;return new f.constructor(y,f.byteOffset,f.length)}o(Uj,"cloneTypedArray");function Mj(f,h){if(f!==h){var y=f!==r,I=f===null,B=f===f,q=so(f),Q=h!==r,te=h===null,ge=h===h,Be=so(h);if(!te&&!Be&&!q&&f>h||q&&Q&&ge&&!te&&!Be||I&&Q&&ge||!y&&ge||!B)return 1;if(!I&&!q&&!Be&&f<h||Be&&y&&B&&!I&&!q||te&&y&&B||!Q&&B||!ge)return-1}return 0}o(Mj,"compareAscending");function Sre(f,h,y){for(var I=-1,B=f.criteria,q=h.criteria,Q=B.length,te=y.length;++I<Q;){var ge=Mj(B[I],q[I]);if(ge){if(I>=te)return ge;var Be=y[I];return ge*(Be=="desc"?-1:1)}}return f.index-h.index}o(Sre,"compareMultiple");function qj(f,h,y,I){for(var B=-1,q=f.length,Q=y.length,te=-1,ge=h.length,Be=Pi(q-Q,0),Ve=Te(ge+Be),Ke=!I;++te<ge;)Ve[te]=h[te];for(;++B<Q;)(Ke||B<q)&&(Ve[y[B]]=f[B]);for(;Be--;)Ve[te++]=f[B++];return Ve}o(qj,"composeArgs");function Hj(f,h,y,I){for(var B=-1,q=f.length,Q=-1,te=y.length,ge=-1,Be=h.length,Ve=Pi(q-te,0),Ke=Te(Ve+Be),ct=!I;++B<Ve;)Ke[B]=f[B];for(var Ct=B;++ge<Be;)Ke[Ct+ge]=h[ge];for(;++Q<te;)(ct||B<q)&&(Ke[Ct+y[Q]]=f[B++]);return Ke}o(Hj,"composeArgsRight");function Ea(f,h){var y=-1,I=f.length;for(h||(h=Te(I));++y<I;)h[y]=f[y];return h}o(Ea,"copyArray");function xc(f,h,y,I){var B=!y;y||(y={});for(var q=-1,Q=h.length;++q<Q;){var te=h[q],ge=I?I(y[te],f[te],te,y,f):r;ge===r&&(ge=f[te]),B?Ll(y,te,ge):hx(y,te,ge)}return y}o(xc,"copyObject");function xre(f,h){return xc(f,HO(f),h)}o(xre,"copySymbols");function bre(f,h){return xc(f,r5(f),h)}o(bre,"copySymbolsIn");function sN(f,h){return function(y,I){var B=tr(y)?Nee:Hte,q=h?h():{};return B(y,f,Pt(I,2),q)}}o(sN,"createAggregator");function Mg(f){return mr(function(h,y){var I=-1,B=y.length,q=B>1?y[B-1]:r,Q=B>2?y[2]:r;for(q=f.length>3&&typeof q=="function"?(B--,q):r,Q&&ca(y[0],y[1],Q)&&(q=B<3?r:q,B=1),h=cn(h);++I<B;){var te=y[I];te&&f(h,te,I,q)}return h})}o(Mg,"createAssigner");function zj(f,h){return function(y,I){if(y==null)return y;if(!Aa(y))return f(y,I);for(var B=y.length,q=h?B:-1,Q=cn(y);(h?q--:++q<B)&&I(Q[q],q,Q)!==!1;);return y}}o(zj,"createBaseEach");function Kj(f){return function(h,y,I){for(var B=-1,q=cn(h),Q=I(h),te=Q.length;te--;){var ge=Q[f?te:++B];if(y(q[ge],ge,q)===!1)break}return h}}o(Kj,"createBaseFor");function wre(f,h,y){var I=h&v,B=yx(f);function q(){var Q=this&&this!==Hi&&this instanceof q?B:f;return Q.apply(I?y:this,arguments)}return o(q,"wrapper"),q}o(wre,"createBind");function $j(f){return function(h){h=Xr(h);var y=Fg(h)?xu(h):r,I=y?y[0]:h.charAt(0),B=y?Cp(y,1).join(""):h.slice(1);return I[f]()+B}}o($j,"createCaseFirst");function qg(f){return function(h){return oO(z5(H5(h).replace(pee,"")),f,"")}}o(qg,"createCompounder");function yx(f){return function(){var h=arguments;switch(h.length){case 0:return new f;case 1:return new f(h[0]);case 2:return new f(h[0],h[1]);case 3:return new f(h[0],h[1],h[2]);case 4:return new f(h[0],h[1],h[2],h[3]);case 5:return new f(h[0],h[1],h[2],h[3],h[4]);case 6:return new f(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new f(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var y=Ug(f.prototype),I=f.apply(y,h);return Xn(I)?I:y}}o(yx,"createCtor");function Cre(f,h,y){var I=yx(f);function B(){for(var q=arguments.length,Q=Te(q),te=q,ge=Hg(B);te--;)Q[te]=arguments[te];var Be=q<3&&Q[0]!==ge&&Q[q-1]!==ge?[]:vp(Q,ge);if(q-=Be.length,q<y)return Qj(f,h,aN,B.placeholder,r,Q,Be,r,r,y-q);var Ve=this&&this!==Hi&&this instanceof B?I:f;return ro(Ve,this,Q)}return o(B,"wrapper"),B}o(Cre,"createCurry");function Gj(f){return function(h,y,I){var B=cn(h);if(!Aa(h)){var q=Pt(y,3);h=zi(h),y=o(function(te){return q(B[te],te,B)},"predicate")}var Q=f(h,y,I);return Q>-1?B[q?h[Q]:Q]:r}}o(Gj,"createFind");function Xj(f){return Vl(function(h){var y=h.length,I=y,B=Do.prototype.thru;for(f&&h.reverse();I--;){var q=h[I];if(typeof q!="function")throw new Ro(i);if(B&&!Q&&lN(q)=="wrapper")var Q=new Do([],!0)}for(I=Q?I:y;++I<y;){q=h[I];var te=lN(q),ge=te=="wrapper"?MO(q):r;ge&&KO(ge[0])&&ge[1]==(A|E|w|R)&&!ge[4].length&&ge[9]==1?Q=Q[lN(ge[0])].apply(Q,ge[3]):Q=q.length==1&&KO(q)?Q[te]():Q.thru(q)}return function(){var Be=arguments,Ve=Be[0];if(Q&&Be.length==1&&tr(Ve))return Q.plant(Ve).value();for(var Ke=0,ct=y?h[Ke].apply(this,Be):Ve;++Ke<y;)ct=h[Ke].call(this,ct);return ct}})}o(Xj,"createFlow");function aN(f,h,y,I,B,q,Q,te,ge,Be){var Ve=h&A,Ke=h&v,ct=h&b,Ct=h&(E|N),kt=h&M,fr=ct?r:yx(f);function Vt(){for(var yr=arguments.length,Rr=Te(yr),ao=yr;ao--;)Rr[ao]=arguments[ao];if(Ct)var la=Hg(Vt),oo=Fee(Rr,la);if(I&&(Rr=qj(Rr,I,B,Ct)),q&&(Rr=Hj(Rr,q,Q,Ct)),yr-=oo,Ct&&yr<Be){var gi=vp(Rr,la);return Qj(f,h,aN,Vt.placeholder,y,Rr,gi,te,ge,Be-yr)}var Cu=Ke?y:this,ql=ct?Cu[f]:f;return yr=Rr.length,te?Rr=Hre(Rr,te):kt&&yr>1&&Rr.reverse(),Ve&&ge<yr&&(Rr.length=ge),this&&this!==Hi&&this instanceof Vt&&(ql=fr||yx(ql)),ql.apply(Cu,Rr)}return o(Vt,"wrapper"),Vt}o(aN,"createHybrid");function Wj(f,h){return function(y,I){return Qte(y,f,h(I),{})}}o(Wj,"createInverter");function oN(f,h){return function(y,I){var B;if(y===r&&I===r)return h;if(y!==r&&(B=y),I!==r){if(B===r)return I;typeof y=="string"||typeof I=="string"?(y=io(y),I=io(I)):(y=Bj(y),I=Bj(I)),B=f(y,I)}return B}}o(oN,"createMathOperation");function kO(f){return Vl(function(h){return h=Bn(h,no(Pt())),mr(function(y){var I=this;return f(h,function(B){return ro(B,I,y)})})})}o(kO,"createOver");function uN(f,h){h=h===r?" ":io(h);var y=h.length;if(y<2)return y?DO(h,f):h;var I=DO(h,XA(f/Lg(h)));return Fg(h)?Cp(xu(I),0,f).join(""):I.slice(0,f)}o(uN,"createPadding");function Ere(f,h,y,I){var B=h&v,q=yx(f);function Q(){for(var te=-1,ge=arguments.length,Be=-1,Ve=I.length,Ke=Te(Ve+ge),ct=this&&this!==Hi&&this instanceof Q?q:f;++Be<Ve;)Ke[Be]=I[Be];for(;ge--;)Ke[Be++]=arguments[++te];return ro(ct,B?y:this,Ke)}return o(Q,"wrapper"),Q}o(Ere,"createPartial");function Jj(f){return function(h,y,I){return I&&typeof I!="number"&&ca(h,y,I)&&(y=I=r),h=Ml(h),y===r?(y=h,h=0):y=Ml(y),I=I===r?h<y?1:-1:Ml(I),cre(h,y,I,f)}}o(Jj,"createRange");function cN(f){return function(h,y){return typeof h=="string"&&typeof y=="string"||(h=Bo(h),y=Bo(y)),f(h,y)}}o(cN,"createRelationalOperation");function Qj(f,h,y,I,B,q,Q,te,ge,Be){var Ve=h&E,Ke=Ve?Q:r,ct=Ve?r:Q,Ct=Ve?q:r,kt=Ve?r:q;h|=Ve?w:C,h&=~(Ve?C:w),h&x||(h&=~(v|b));var fr=[f,h,B,Ct,Ke,kt,ct,te,ge,Be],Vt=y.apply(r,fr);return KO(f)&&c5(Vt,fr),Vt.placeholder=I,l5(Vt,f,h)}o(Qj,"createRecurry");function VO(f){var h=Oi[f];return function(y,I){if(y=Bo(y),I=I==null?0:js(or(I),292),I&&lj(y)){var B=(Xr(y)+"e").split("e"),q=h(B[0]+"e"+(+B[1]+I));return B=(Xr(q)+"e").split("e"),+(B[0]+"e"+(+B[1]-I))}return h(y)}}o(VO,"createRound");var Are=Vg&&1/VA(new Vg([,-0]))[1]==ce?function(f){return new Vg(f)}:aP;function Yj(f){return function(h){var y=Us(h);return y==Pe?dO(h):y==Pn?qee(h):Bee(h,f(h))}}o(Yj,"createToPairs");function kl(f,h,y,I,B,q,Q,te){var ge=h&b;if(!ge&&typeof f!="function")throw new Ro(i);var Be=I?I.length:0;if(Be||(h&=~(w|C),I=B=r),Q=Q===r?Q:Pi(or(Q),0),te=te===r?te:or(te),Be-=B?B.length:0,h&C){var Ve=I,Ke=B;I=B=r}var ct=ge?r:MO(f),Ct=[f,h,y,I,B,Ve,Ke,q,Q,te];if(ct&&Ure(Ct,ct),f=Ct[0],h=Ct[1],y=Ct[2],I=Ct[3],B=Ct[4],te=Ct[9]=Ct[9]===r?ge?0:f.length:Pi(Ct[9]-Be,0),!te&&h&(E|N)&&(h&=~(E|N)),!h||h==v)var kt=wre(f,h,y);else h==E||h==N?kt=Cre(f,h,te):(h==w||h==(v|w))&&!B.length?kt=Ere(f,h,y,I):kt=aN.apply(r,Ct);var fr=ct?Oj:c5;return l5(fr(kt,Ct),f,h)}o(kl,"createWrap");function Zj(f,h,y,I){return f===r||wu(f,kg[y])&&!Yr.call(I,y)?h:f}o(Zj,"customDefaultsAssignIn");function e5(f,h,y,I,B,q){return Xn(f)&&Xn(h)&&(q.set(h,f),rN(f,h,r,e5,q),q.delete(h)),f}o(e5,"customDefaultsMerge");function Nre(f){return bx(f)?r:f}o(Nre,"customOmitClone");function t5(f,h,y,I,B,q){var Q=y&g,te=f.length,ge=h.length;if(te!=ge&&!(Q&&ge>te))return!1;var Be=q.get(f),Ve=q.get(h);if(Be&&Ve)return Be==h&&Ve==f;var Ke=-1,ct=!0,Ct=y&S?new Hd:r;for(q.set(f,h),q.set(h,f);++Ke<te;){var kt=f[Ke],fr=h[Ke];if(I)var Vt=Q?I(fr,kt,Ke,h,f,q):I(kt,fr,Ke,f,h,q);if(Vt!==r){if(Vt)continue;ct=!1;break}if(Ct){if(!uO(h,function(yr,Rr){if(!ox(Ct,Rr)&&(kt===yr||B(kt,yr,y,I,q)))return Ct.push(Rr)})){ct=!1;break}}else if(!(kt===fr||B(kt,fr,y,I,q))){ct=!1;break}}return q.delete(f),q.delete(h),ct}o(t5,"equalArrays");function Ire(f,h,y,I,B,q,Q){switch(y){case ps:if(f.byteLength!=h.byteLength||f.byteOffset!=h.byteOffset)return!1;f=f.buffer,h=h.buffer;case lt:return!(f.byteLength!=h.byteLength||!q(new zA(f),new zA(h)));case F:case O:case bt:return wu(+f,+h);case J:return f.name==h.name&&f.message==h.message;case nt:case Ei:return f==h+"";case Pe:var te=dO;case Pn:var ge=I&g;if(te||(te=VA),f.size!=h.size&&!ge)return!1;var Be=Q.get(f);if(Be)return Be==h;I|=S,Q.set(f,h);var Ve=t5(te(f),te(h),I,B,q,Q);return Q.delete(f),Ve;case ks:if(px)return px.call(f)==px.call(h)}return!1}o(Ire,"equalByTag");function Tre(f,h,y,I,B,q){var Q=y&g,te=jO(f),ge=te.length,Be=jO(h),Ve=Be.length;if(ge!=Ve&&!Q)return!1;for(var Ke=ge;Ke--;){var ct=te[Ke];if(!(Q?ct in h:Yr.call(h,ct)))return!1}var Ct=q.get(f),kt=q.get(h);if(Ct&&kt)return Ct==h&&kt==f;var fr=!0;q.set(f,h),q.set(h,f);for(var Vt=Q;++Ke<ge;){ct=te[Ke];var yr=f[ct],Rr=h[ct];if(I)var ao=Q?I(Rr,yr,ct,h,f,q):I(yr,Rr,ct,f,h,q);if(!(ao===r?yr===Rr||B(yr,Rr,y,I,q):ao)){fr=!1;break}Vt||(Vt=ct=="constructor")}if(fr&&!Vt){var la=f.constructor,oo=h.constructor;la!=oo&&"constructor"in f&&"constructor"in h&&!(typeof la=="function"&&la instanceof la&&typeof oo=="function"&&oo instanceof oo)&&(fr=!1)}return q.delete(f),q.delete(h),fr}o(Tre,"equalObjects");function Vl(f){return GO(o5(f,r,g5),f+"")}o(Vl,"flatRest");function jO(f){return bj(f,zi,HO)}o(jO,"getAllKeys");function UO(f){return bj(f,Na,r5)}o(UO,"getAllKeysIn");var MO=JA?function(f){return JA.get(f)}:aP;function lN(f){for(var h=f.name+"",y=jg[h],I=Yr.call(jg,h)?y.length:0;I--;){var B=y[I],q=B.func;if(q==null||q==f)return B.name}return h}o(lN,"getFuncName");function Hg(f){var h=Yr.call(U,"placeholder")?U:f;return h.placeholder}o(Hg,"getHolder");function Pt(){var f=U.iteratee||iP;return f=f===iP?Ej:f,arguments.length?f(arguments[0],arguments[1]):f}o(Pt,"getIteratee");function fN(f,h){var y=f.__data__;return Lre(h)?y[typeof h=="string"?"string":"hash"]:y.map}o(fN,"getMapData");function qO(f){for(var h=zi(f),y=h.length;y--;){var I=h[y],B=f[I];h[y]=[I,B,s5(B)]}return h}o(qO,"getMatchData");function $d(f,h){var y=jee(f,h);return Cj(y)?y:r}o($d,"getNative");function Rre(f){var h=Yr.call(f,Md),y=f[Md];try{f[Md]=r;var I=!0}catch{}var B=qA.call(f);return I&&(h?f[Md]=y:delete f[Md]),B}o(Rre,"getRawTag");var HO=gO?function(f){return f==null?[]:(f=cn(f),mp(gO(f),function(h){return uj.call(f,h)}))}:oP,r5=gO?function(f){for(var h=[];f;)gp(h,HO(f)),f=KA(f);return h}:oP,Us=ua;(vO&&Us(new vO(new ArrayBuffer(1)))!=ps||cx&&Us(new cx)!=Pe||yO&&Us(yO.resolve())!=Tr||Vg&&Us(new Vg)!=Pn||lx&&Us(new lx)!=aa)&&(Us=o(function(f){var h=ua(f),y=h==Je?f.constructor:r,I=y?Gd(y):"";if(I)switch(I){case fte:return ps;case pte:return Pe;case hte:return Tr;case dte:return Pn;case mte:return aa}return h},"getTag"));function Dre(f,h,y){for(var I=-1,B=y.length;++I<B;){var q=y[I],Q=q.size;switch(q.type){case"drop":f+=Q;break;case"dropRight":h-=Q;break;case"take":h=js(h,f+Q);break;case"takeRight":f=Pi(f,h-Q);break}}return{start:f,end:h}}o(Dre,"getView");function _re(f){var h=f.match(W_);return h?h[1].split(J_):[]}o(_re,"getWrapDetails");function n5(f,h,y){h=wp(h,f);for(var I=-1,B=h.length,q=!1;++I<B;){var Q=bc(h[I]);if(!(q=f!=null&&y(f,Q)))break;f=f[Q]}return q||++I!=B?q:(B=f==null?0:f.length,!!B&&yN(B)&&jl(Q,B)&&(tr(f)||Xd(f)))}o(n5,"hasPath");function Ore(f){var h=f.length,y=new f.constructor(h);return h&&typeof f[0]=="string"&&Yr.call(f,"index")&&(y.index=f.index,y.input=f.input),y}o(Ore,"initCloneArray");function i5(f){return typeof f.constructor=="function"&&!Sx(f)?Ug(KA(f)):{}}o(i5,"initCloneObject");function Pre(f,h,y){var I=f.constructor;switch(h){case lt:return LO(f);case F:case O:return new I(+f);case ps:return gre(f,y);case oa:case gc:case vc:case Jt:case _g:case Og:case jd:case sx:case to:return Uj(f,y);case Pe:return new I;case bt:case Ei:return new I(f);case nt:return vre(f);case Pn:return new I;case ks:return yre(f)}}o(Pre,"initCloneByTag");function Bre(f,h){var y=h.length;if(!y)return f;var I=y-1;return h[I]=(y>1?"& ":"")+h[I],h=h.join(y>2?", ":" "),f.replace(X_,`{
26
+ `).map(e=>e.trim()).join(" ")};X6.O=function(r){return this.inspectOpts.colors=this.useColors,S2.inspect(r,this.inspectOpts)}});var mv=Z((GRe,TB)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?TB.exports=q6():TB.exports=W6()});var Q6=Z((XRe,J6)=>{"use strict";var{PassThrough:upe}=require("stream");J6.exports=r=>{r={...r};let{array:e}=r,{encoding:t}=r,n=t==="buffer",i=!1;e?i=!(t||n):t=t||"utf8",n&&(t=null);let s=new upe({objectMode:i});t&&s.setEncoding(t);let a=0,u=[];return s.on("data",c=>{u.push(c),i?a=u.length:a+=c.length}),s.getBufferedValue=()=>e?u:n?Buffer.concat(u,a):u.join(""),s.getBufferedLength=()=>a,s}});var Z6=Z((JRe,qx)=>{"use strict";var{constants:cpe}=require("buffer"),lpe=require("stream"),{promisify:fpe}=require("util"),ppe=Q6(),hpe=fpe(lpe.pipeline),Y6=class extends Error{static{o(this,"MaxBufferError")}constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function RB(r,e){if(!r)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:t}=e,n=ppe(e);return await new Promise((i,s)=>{let a=o(u=>{u&&n.getBufferedLength()<=cpe.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),s(u)},"rejectPromise");(async()=>{try{await hpe(r,n),i()}catch(u){a(u)}})(),n.on("data",()=>{n.getBufferedLength()>t&&a(new Y6)})}),n.getBufferedValue()}o(RB,"getStream");qx.exports=RB;qx.exports.buffer=(r,e)=>RB(r,{...e,encoding:"buffer"});qx.exports.array=(r,e)=>RB(r,{...e,array:!0});qx.exports.MaxBufferError=Y6});var Xl=Z((gv,Hx)=>{"use strict";(function(){var r,e="4.17.21",t=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",l=1,p=2,m=4,g=1,S=2,v=1,b=2,x=4,E=8,N=16,w=32,C=64,A=128,R=256,M=512,_=30,H="...",z=800,K=16,X=1,ye=2,fe=3,ce=1/0,ee=9007199254740991,pe=17976931348623157e292,Ce=NaN,Ye=4294967295,xe=Ye-1,ie=Ye>>>1,De=[["ary",A],["bind",v],["bindKey",b],["curry",E],["curryRight",N],["flip",M],["partial",w],["partialRight",C],["rearg",R]],Ze="[object Arguments]",We="[object Array]",it="[object AsyncFunction]",F="[object Boolean]",O="[object Date]",oe="[object DOMException]",J="[object Error]",Ge="[object Function]",Ue="[object GeneratorFunction]",Pe="[object Map]",bt="[object Number]",Ir="[object Null]",Je="[object Object]",Tr="[object Promise]",eo="[object Proxy]",nt="[object RegExp]",Pn="[object Set]",Ei="[object String]",ks="[object Symbol]",Ca="[object Undefined]",aa="[object WeakMap]",Et="[object WeakSet]",lt="[object ArrayBuffer]",ps="[object DataView]",oa="[object Float32Array]",gc="[object Float64Array]",vc="[object Int8Array]",Jt="[object Int16Array]",_g="[object Int32Array]",Og="[object Uint8Array]",jd="[object Uint8ClampedArray]",sx="[object Uint16Array]",to="[object Uint32Array]",d=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,se=/&(?:amp|lt|gt|quot|#39);/g,de=/[&<>"']/g,G=RegExp(se.source),dt=RegExp(de.source),er=/<%-([\s\S]+?)%>/g,vr=/<%([\s\S]+?)%>/g,ft=/<%=([\s\S]+?)%>/g,Xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hs=/^\w*$/,No=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lr=/[\\^$.*+?()[\]{}|]/g,yc=RegExp(Lr.source),ax=/^\s+/,OA=/\s/,X_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,W_=/\{\n\/\* \[wrapped with (.+)\] \*/,J_=/,? & /,Q_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/[()=,{}\[\]\/\s]/,Cr=/\\(\\)?/g,Vs=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Su=/\w*$/,Y_=/^[-+]0x[0-9a-f]+$/i,zZ=/^0b[01]+$/i,KZ=/^\[object .+?Constructor\]$/,$Z=/^0o[0-7]+$/i,GZ=/^(?:0|[1-9]\d*)$/,XZ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,PA=/($^)/,WZ=/['\n\r\u2028\u2029\\]/g,BA="\\ud800-\\udfff",JZ="\\u0300-\\u036f",QZ="\\ufe20-\\ufe2f",YZ="\\u20d0-\\u20ff",C8=JZ+QZ+YZ,E8="\\u2700-\\u27bf",A8="a-z\\xdf-\\xf6\\xf8-\\xff",ZZ="\\xac\\xb1\\xd7\\xf7",eee="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",tee="\\u2000-\\u206f",ree=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",N8="A-Z\\xc0-\\xd6\\xd8-\\xde",I8="\\ufe0e\\ufe0f",T8=ZZ+eee+tee+ree,Z_="['\u2019]",nee="["+BA+"]",R8="["+T8+"]",FA="["+C8+"]",D8="\\d+",iee="["+E8+"]",_8="["+A8+"]",O8="[^"+BA+T8+D8+E8+A8+N8+"]",eO="\\ud83c[\\udffb-\\udfff]",see="(?:"+FA+"|"+eO+")",P8="[^"+BA+"]",tO="(?:\\ud83c[\\udde6-\\uddff]){2}",rO="[\\ud800-\\udbff][\\udc00-\\udfff]",Pg="["+N8+"]",B8="\\u200d",F8="(?:"+_8+"|"+O8+")",aee="(?:"+Pg+"|"+O8+")",L8="(?:"+Z_+"(?:d|ll|m|re|s|t|ve))?",k8="(?:"+Z_+"(?:D|LL|M|RE|S|T|VE))?",V8=see+"?",j8="["+I8+"]?",oee="(?:"+B8+"(?:"+[P8,tO,rO].join("|")+")"+j8+V8+")*",uee="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",cee="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",U8=j8+V8+oee,lee="(?:"+[iee,tO,rO].join("|")+")"+U8,fee="(?:"+[P8+FA+"?",FA,tO,rO,nee].join("|")+")",pee=RegExp(Z_,"g"),hee=RegExp(FA,"g"),nO=RegExp(eO+"(?="+eO+")|"+fee+U8,"g"),dee=RegExp([Pg+"?"+_8+"+"+L8+"(?="+[R8,Pg,"$"].join("|")+")",aee+"+"+k8+"(?="+[R8,Pg+F8,"$"].join("|")+")",Pg+"?"+F8+"+"+L8,Pg+"+"+k8,cee,uee,D8,lee].join("|"),"g"),mee=RegExp("["+B8+BA+C8+I8+"]"),gee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yee=-1,Nn={};Nn[oa]=Nn[gc]=Nn[vc]=Nn[Jt]=Nn[_g]=Nn[Og]=Nn[jd]=Nn[sx]=Nn[to]=!0,Nn[Ze]=Nn[We]=Nn[lt]=Nn[F]=Nn[ps]=Nn[O]=Nn[J]=Nn[Ge]=Nn[Pe]=Nn[bt]=Nn[Je]=Nn[nt]=Nn[Pn]=Nn[Ei]=Nn[aa]=!1;var mn={};mn[Ze]=mn[We]=mn[lt]=mn[ps]=mn[F]=mn[O]=mn[oa]=mn[gc]=mn[vc]=mn[Jt]=mn[_g]=mn[Pe]=mn[bt]=mn[Je]=mn[nt]=mn[Pn]=mn[Ei]=mn[ks]=mn[Og]=mn[jd]=mn[sx]=mn[to]=!0,mn[J]=mn[Ge]=mn[aa]=!1;var See={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},xee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bee={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},wee={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cee=parseFloat,Eee=parseInt,M8=typeof global=="object"&&global&&global.Object===Object&&global,Aee=typeof self=="object"&&self&&self.Object===Object&&self,Hi=M8||Aee||Function("return this")(),iO=typeof gv=="object"&&gv&&!gv.nodeType&&gv,Ud=iO&&typeof Hx=="object"&&Hx&&!Hx.nodeType&&Hx,q8=Ud&&Ud.exports===iO,sO=q8&&M8.process,Io=(function(){try{var he=Ud&&Ud.require&&Ud.require("util").types;return he||sO&&sO.binding&&sO.binding("util")}catch{}})(),H8=Io&&Io.isArrayBuffer,z8=Io&&Io.isDate,K8=Io&&Io.isMap,$8=Io&&Io.isRegExp,G8=Io&&Io.isSet,X8=Io&&Io.isTypedArray;function ro(he,Oe,Te){switch(Te.length){case 0:return he.call(Oe);case 1:return he.call(Oe,Te[0]);case 2:return he.call(Oe,Te[0],Te[1]);case 3:return he.call(Oe,Te[0],Te[1],Te[2])}return he.apply(Oe,Te)}o(ro,"apply");function Nee(he,Oe,Te,St){for(var Qt=-1,$r=he==null?0:he.length;++Qt<$r;){var Oi=he[Qt];Oe(St,Oi,Te(Oi),he)}return St}o(Nee,"arrayAggregator");function To(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St&&Oe(he[Te],Te,he)!==!1;);return he}o(To,"arrayEach");function Iee(he,Oe){for(var Te=he==null?0:he.length;Te--&&Oe(he[Te],Te,he)!==!1;);return he}o(Iee,"arrayEachRight");function W8(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St;)if(!Oe(he[Te],Te,he))return!1;return!0}o(W8,"arrayEvery");function mp(he,Oe){for(var Te=-1,St=he==null?0:he.length,Qt=0,$r=[];++Te<St;){var Oi=he[Te];Oe(Oi,Te,he)&&($r[Qt++]=Oi)}return $r}o(mp,"arrayFilter");function LA(he,Oe){var Te=he==null?0:he.length;return!!Te&&Bg(he,Oe,0)>-1}o(LA,"arrayIncludes");function aO(he,Oe,Te){for(var St=-1,Qt=he==null?0:he.length;++St<Qt;)if(Te(Oe,he[St]))return!0;return!1}o(aO,"arrayIncludesWith");function Bn(he,Oe){for(var Te=-1,St=he==null?0:he.length,Qt=Array(St);++Te<St;)Qt[Te]=Oe(he[Te],Te,he);return Qt}o(Bn,"arrayMap");function gp(he,Oe){for(var Te=-1,St=Oe.length,Qt=he.length;++Te<St;)he[Qt+Te]=Oe[Te];return he}o(gp,"arrayPush");function oO(he,Oe,Te,St){var Qt=-1,$r=he==null?0:he.length;for(St&&$r&&(Te=he[++Qt]);++Qt<$r;)Te=Oe(Te,he[Qt],Qt,he);return Te}o(oO,"arrayReduce");function Tee(he,Oe,Te,St){var Qt=he==null?0:he.length;for(St&&Qt&&(Te=he[--Qt]);Qt--;)Te=Oe(Te,he[Qt],Qt,he);return Te}o(Tee,"arrayReduceRight");function uO(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St;)if(Oe(he[Te],Te,he))return!0;return!1}o(uO,"arraySome");var Ree=cO("length");function Dee(he){return he.split("")}o(Dee,"asciiToArray");function _ee(he){return he.match(Q_)||[]}o(_ee,"asciiWords");function J8(he,Oe,Te){var St;return Te(he,function(Qt,$r,Oi){if(Oe(Qt,$r,Oi))return St=$r,!1}),St}o(J8,"baseFindKey");function kA(he,Oe,Te,St){for(var Qt=he.length,$r=Te+(St?1:-1);St?$r--:++$r<Qt;)if(Oe(he[$r],$r,he))return $r;return-1}o(kA,"baseFindIndex");function Bg(he,Oe,Te){return Oe===Oe?Hee(he,Oe,Te):kA(he,Q8,Te)}o(Bg,"baseIndexOf");function Oee(he,Oe,Te,St){for(var Qt=Te-1,$r=he.length;++Qt<$r;)if(St(he[Qt],Oe))return Qt;return-1}o(Oee,"baseIndexOfWith");function Q8(he){return he!==he}o(Q8,"baseIsNaN");function Y8(he,Oe){var Te=he==null?0:he.length;return Te?fO(he,Oe)/Te:Ce}o(Y8,"baseMean");function cO(he){return function(Oe){return Oe==null?r:Oe[he]}}o(cO,"baseProperty");function lO(he){return function(Oe){return he==null?r:he[Oe]}}o(lO,"basePropertyOf");function Z8(he,Oe,Te,St,Qt){return Qt(he,function($r,Oi,cn){Te=St?(St=!1,$r):Oe(Te,$r,Oi,cn)}),Te}o(Z8,"baseReduce");function Pee(he,Oe){var Te=he.length;for(he.sort(Oe);Te--;)he[Te]=he[Te].value;return he}o(Pee,"baseSortBy");function fO(he,Oe){for(var Te,St=-1,Qt=he.length;++St<Qt;){var $r=Oe(he[St]);$r!==r&&(Te=Te===r?$r:Te+$r)}return Te}o(fO,"baseSum");function pO(he,Oe){for(var Te=-1,St=Array(he);++Te<he;)St[Te]=Oe(Te);return St}o(pO,"baseTimes");function Bee(he,Oe){return Bn(Oe,function(Te){return[Te,he[Te]]})}o(Bee,"baseToPairs");function ej(he){return he&&he.slice(0,ij(he)+1).replace(ax,"")}o(ej,"baseTrim");function no(he){return function(Oe){return he(Oe)}}o(no,"baseUnary");function hO(he,Oe){return Bn(Oe,function(Te){return he[Te]})}o(hO,"baseValues");function ox(he,Oe){return he.has(Oe)}o(ox,"cacheHas");function tj(he,Oe){for(var Te=-1,St=he.length;++Te<St&&Bg(Oe,he[Te],0)>-1;);return Te}o(tj,"charsStartIndex");function rj(he,Oe){for(var Te=he.length;Te--&&Bg(Oe,he[Te],0)>-1;);return Te}o(rj,"charsEndIndex");function Fee(he,Oe){for(var Te=he.length,St=0;Te--;)he[Te]===Oe&&++St;return St}o(Fee,"countHolders");var Lee=lO(See),kee=lO(xee);function Vee(he){return"\\"+wee[he]}o(Vee,"escapeStringChar");function jee(he,Oe){return he==null?r:he[Oe]}o(jee,"getValue");function Fg(he){return mee.test(he)}o(Fg,"hasUnicode");function Uee(he){return gee.test(he)}o(Uee,"hasUnicodeWord");function Mee(he){for(var Oe,Te=[];!(Oe=he.next()).done;)Te.push(Oe.value);return Te}o(Mee,"iteratorToArray");function dO(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St,Qt){Te[++Oe]=[Qt,St]}),Te}o(dO,"mapToArray");function nj(he,Oe){return function(Te){return he(Oe(Te))}}o(nj,"overArg");function vp(he,Oe){for(var Te=-1,St=he.length,Qt=0,$r=[];++Te<St;){var Oi=he[Te];(Oi===Oe||Oi===c)&&(he[Te]=c,$r[Qt++]=Te)}return $r}o(vp,"replaceHolders");function VA(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St){Te[++Oe]=St}),Te}o(VA,"setToArray");function qee(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St){Te[++Oe]=[St,St]}),Te}o(qee,"setToPairs");function Hee(he,Oe,Te){for(var St=Te-1,Qt=he.length;++St<Qt;)if(he[St]===Oe)return St;return-1}o(Hee,"strictIndexOf");function zee(he,Oe,Te){for(var St=Te+1;St--;)if(he[St]===Oe)return St;return St}o(zee,"strictLastIndexOf");function Lg(he){return Fg(he)?$ee(he):Ree(he)}o(Lg,"stringSize");function xu(he){return Fg(he)?Gee(he):Dee(he)}o(xu,"stringToArray");function ij(he){for(var Oe=he.length;Oe--&&OA.test(he.charAt(Oe)););return Oe}o(ij,"trimmedEndIndex");var Kee=lO(bee);function $ee(he){for(var Oe=nO.lastIndex=0;nO.test(he);)++Oe;return Oe}o($ee,"unicodeSize");function Gee(he){return he.match(nO)||[]}o(Gee,"unicodeToArray");function Xee(he){return he.match(dee)||[]}o(Xee,"unicodeWords");var Wee=o(function he(Oe){Oe=Oe==null?Hi:yp.defaults(Hi.Object(),Oe,yp.pick(Hi,vee));var Te=Oe.Array,St=Oe.Date,Qt=Oe.Error,$r=Oe.Function,Oi=Oe.Math,cn=Oe.Object,mO=Oe.RegExp,Jee=Oe.String,Ro=Oe.TypeError,jA=Te.prototype,Qee=$r.prototype,kg=cn.prototype,UA=Oe["__core-js_shared__"],MA=Qee.toString,Yr=kg.hasOwnProperty,Yee=0,sj=(function(){var f=/[^.]+$/.exec(UA&&UA.keys&&UA.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})(),qA=kg.toString,Zee=MA.call(cn),ete=Hi._,tte=mO("^"+MA.call(Yr).replace(Lr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),HA=q8?Oe.Buffer:r,Sp=Oe.Symbol,zA=Oe.Uint8Array,aj=HA?HA.allocUnsafe:r,KA=nj(cn.getPrototypeOf,cn),oj=cn.create,uj=kg.propertyIsEnumerable,$A=jA.splice,cj=Sp?Sp.isConcatSpreadable:r,ux=Sp?Sp.iterator:r,Md=Sp?Sp.toStringTag:r,GA=(function(){try{var f=$d(cn,"defineProperty");return f({},"",{}),f}catch{}})(),rte=Oe.clearTimeout!==Hi.clearTimeout&&Oe.clearTimeout,nte=St&&St.now!==Hi.Date.now&&St.now,ite=Oe.setTimeout!==Hi.setTimeout&&Oe.setTimeout,XA=Oi.ceil,WA=Oi.floor,gO=cn.getOwnPropertySymbols,ste=HA?HA.isBuffer:r,lj=Oe.isFinite,ate=jA.join,ote=nj(cn.keys,cn),Pi=Oi.max,js=Oi.min,ute=St.now,cte=Oe.parseInt,fj=Oi.random,lte=jA.reverse,vO=$d(Oe,"DataView"),cx=$d(Oe,"Map"),yO=$d(Oe,"Promise"),Vg=$d(Oe,"Set"),lx=$d(Oe,"WeakMap"),fx=$d(cn,"create"),JA=lx&&new lx,jg={},fte=Gd(vO),pte=Gd(cx),hte=Gd(yO),dte=Gd(Vg),mte=Gd(lx),QA=Sp?Sp.prototype:r,px=QA?QA.valueOf:r,pj=QA?QA.toString:r;function U(f){if(ii(f)&&!tr(f)&&!(f instanceof Er)){if(f instanceof Do)return f;if(Yr.call(f,"__wrapped__"))return h5(f)}return new Do(f)}o(U,"lodash");var Ug=(function(){function f(){}return o(f,"object"),function(h){if(!Xn(h))return{};if(oj)return oj(h);f.prototype=h;var y=new f;return f.prototype=r,y}})();function YA(){}o(YA,"baseLodash");function Do(f,h){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=r}o(Do,"LodashWrapper"),U.templateSettings={escape:er,evaluate:vr,interpolate:ft,variable:"",imports:{_:U}},U.prototype=YA.prototype,U.prototype.constructor=U,Do.prototype=Ug(YA.prototype),Do.prototype.constructor=Do;function Er(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ye,this.__views__=[]}o(Er,"LazyWrapper");function gte(){var f=new Er(this.__wrapped__);return f.__actions__=Ea(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Ea(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Ea(this.__views__),f}o(gte,"lazyClone");function vte(){if(this.__filtered__){var f=new Er(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}o(vte,"lazyReverse");function yte(){var f=this.__wrapped__.value(),h=this.__dir__,y=tr(f),I=h<0,B=y?f.length:0,q=Dre(0,B,this.__views__),Q=q.start,te=q.end,ge=te-Q,Be=I?te:Q-1,Ve=this.__iteratees__,Ke=Ve.length,ut=0,Ct=js(ge,this.__takeCount__);if(!y||!I&&B==ge&&Ct==ge)return Lj(f,this.__actions__);var kt=[];e:for(;ge--&&ut<Ct;){Be+=h;for(var fr=-1,Vt=f[Be];++fr<Ke;){var yr=Ve[fr],Rr=yr.iteratee,ao=yr.type,la=Rr(Vt);if(ao==ye)Vt=la;else if(!la){if(ao==X)continue e;break e}}kt[ut++]=Vt}return kt}o(yte,"lazyValue"),Er.prototype=Ug(YA.prototype),Er.prototype.constructor=Er;function qd(f){var h=-1,y=f==null?0:f.length;for(this.clear();++h<y;){var I=f[h];this.set(I[0],I[1])}}o(qd,"Hash");function Ste(){this.__data__=fx?fx(null):{},this.size=0}o(Ste,"hashClear");function xte(f){var h=this.has(f)&&delete this.__data__[f];return this.size-=h?1:0,h}o(xte,"hashDelete");function bte(f){var h=this.__data__;if(fx){var y=h[f];return y===a?r:y}return Yr.call(h,f)?h[f]:r}o(bte,"hashGet");function wte(f){var h=this.__data__;return fx?h[f]!==r:Yr.call(h,f)}o(wte,"hashHas");function Cte(f,h){var y=this.__data__;return this.size+=this.has(f)?0:1,y[f]=fx&&h===r?a:h,this}o(Cte,"hashSet"),qd.prototype.clear=Ste,qd.prototype.delete=xte,qd.prototype.get=bte,qd.prototype.has=wte,qd.prototype.set=Cte;function Bl(f){var h=-1,y=f==null?0:f.length;for(this.clear();++h<y;){var I=f[h];this.set(I[0],I[1])}}o(Bl,"ListCache");function Ete(){this.__data__=[],this.size=0}o(Ete,"listCacheClear");function Ate(f){var h=this.__data__,y=ZA(h,f);if(y<0)return!1;var I=h.length-1;return y==I?h.pop():$A.call(h,y,1),--this.size,!0}o(Ate,"listCacheDelete");function Nte(f){var h=this.__data__,y=ZA(h,f);return y<0?r:h[y][1]}o(Nte,"listCacheGet");function Ite(f){return ZA(this.__data__,f)>-1}o(Ite,"listCacheHas");function Tte(f,h){var y=this.__data__,I=ZA(y,f);return I<0?(++this.size,y.push([f,h])):y[I][1]=h,this}o(Tte,"listCacheSet"),Bl.prototype.clear=Ete,Bl.prototype.delete=Ate,Bl.prototype.get=Nte,Bl.prototype.has=Ite,Bl.prototype.set=Tte;function Fl(f){var h=-1,y=f==null?0:f.length;for(this.clear();++h<y;){var I=f[h];this.set(I[0],I[1])}}o(Fl,"MapCache");function Rte(){this.size=0,this.__data__={hash:new qd,map:new(cx||Bl),string:new qd}}o(Rte,"mapCacheClear");function Dte(f){var h=fN(this,f).delete(f);return this.size-=h?1:0,h}o(Dte,"mapCacheDelete");function _te(f){return fN(this,f).get(f)}o(_te,"mapCacheGet");function Ote(f){return fN(this,f).has(f)}o(Ote,"mapCacheHas");function Pte(f,h){var y=fN(this,f),I=y.size;return y.set(f,h),this.size+=y.size==I?0:1,this}o(Pte,"mapCacheSet"),Fl.prototype.clear=Rte,Fl.prototype.delete=Dte,Fl.prototype.get=_te,Fl.prototype.has=Ote,Fl.prototype.set=Pte;function Hd(f){var h=-1,y=f==null?0:f.length;for(this.__data__=new Fl;++h<y;)this.add(f[h])}o(Hd,"SetCache");function Bte(f){return this.__data__.set(f,a),this}o(Bte,"setCacheAdd");function Fte(f){return this.__data__.has(f)}o(Fte,"setCacheHas"),Hd.prototype.add=Hd.prototype.push=Bte,Hd.prototype.has=Fte;function bu(f){var h=this.__data__=new Bl(f);this.size=h.size}o(bu,"Stack");function Lte(){this.__data__=new Bl,this.size=0}o(Lte,"stackClear");function kte(f){var h=this.__data__,y=h.delete(f);return this.size=h.size,y}o(kte,"stackDelete");function Vte(f){return this.__data__.get(f)}o(Vte,"stackGet");function jte(f){return this.__data__.has(f)}o(jte,"stackHas");function Ute(f,h){var y=this.__data__;if(y instanceof Bl){var I=y.__data__;if(!cx||I.length<t-1)return I.push([f,h]),this.size=++y.size,this;y=this.__data__=new Fl(I)}return y.set(f,h),this.size=y.size,this}o(Ute,"stackSet"),bu.prototype.clear=Lte,bu.prototype.delete=kte,bu.prototype.get=Vte,bu.prototype.has=jte,bu.prototype.set=Ute;function hj(f,h){var y=tr(f),I=!y&&Xd(f),B=!y&&!I&&Ep(f),q=!y&&!I&&!B&&zg(f),Q=y||I||B||q,te=Q?pO(f.length,Jee):[],ge=te.length;for(var Be in f)(h||Yr.call(f,Be))&&!(Q&&(Be=="length"||B&&(Be=="offset"||Be=="parent")||q&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||jl(Be,ge)))&&te.push(Be);return te}o(hj,"arrayLikeKeys");function dj(f){var h=f.length;return h?f[RO(0,h-1)]:r}o(dj,"arraySample");function Mte(f,h){return pN(Ea(f),zd(h,0,f.length))}o(Mte,"arraySampleSize");function qte(f){return pN(Ea(f))}o(qte,"arrayShuffle");function SO(f,h,y){(y!==r&&!wu(f[h],y)||y===r&&!(h in f))&&Ll(f,h,y)}o(SO,"assignMergeValue");function hx(f,h,y){var I=f[h];(!(Yr.call(f,h)&&wu(I,y))||y===r&&!(h in f))&&Ll(f,h,y)}o(hx,"assignValue");function ZA(f,h){for(var y=f.length;y--;)if(wu(f[y][0],h))return y;return-1}o(ZA,"assocIndexOf");function Hte(f,h,y,I){return xp(f,function(B,q,Q){h(I,B,y(B),Q)}),I}o(Hte,"baseAggregator");function mj(f,h){return f&&xc(h,zi(h),f)}o(mj,"baseAssign");function zte(f,h){return f&&xc(h,Na(h),f)}o(zte,"baseAssignIn");function Ll(f,h,y){h=="__proto__"&&GA?GA(f,h,{configurable:!0,enumerable:!0,value:y,writable:!0}):f[h]=y}o(Ll,"baseAssignValue");function xO(f,h){for(var y=-1,I=h.length,B=Te(I),q=f==null;++y<I;)B[y]=q?r:eP(f,h[y]);return B}o(xO,"baseAt");function zd(f,h,y){return f===f&&(y!==r&&(f=f<=y?f:y),h!==r&&(f=f>=h?f:h)),f}o(zd,"baseClamp");function _o(f,h,y,I,B,q){var Q,te=h&l,ge=h&p,Be=h&m;if(y&&(Q=B?y(f,I,B,q):y(f)),Q!==r)return Q;if(!Xn(f))return f;var Ve=tr(f);if(Ve){if(Q=Ore(f),!te)return Ea(f,Q)}else{var Ke=Us(f),ut=Ke==Ge||Ke==Ue;if(Ep(f))return jj(f,te);if(Ke==Je||Ke==Ze||ut&&!B){if(Q=ge||ut?{}:i5(f),!te)return ge?bre(f,zte(Q,f)):xre(f,mj(Q,f))}else{if(!mn[Ke])return B?f:{};Q=Pre(f,Ke,te)}}q||(q=new bu);var Ct=q.get(f);if(Ct)return Ct;q.set(f,Q),P5(f)?f.forEach(function(Vt){Q.add(_o(Vt,h,y,Vt,f,q))}):_5(f)&&f.forEach(function(Vt,yr){Q.set(yr,_o(Vt,h,y,yr,f,q))});var kt=Be?ge?UO:jO:ge?Na:zi,fr=Ve?r:kt(f);return To(fr||f,function(Vt,yr){fr&&(yr=Vt,Vt=f[yr]),hx(Q,yr,_o(Vt,h,y,yr,f,q))}),Q}o(_o,"baseClone");function Kte(f){var h=zi(f);return function(y){return gj(y,f,h)}}o(Kte,"baseConforms");function gj(f,h,y){var I=y.length;if(f==null)return!I;for(f=cn(f);I--;){var B=y[I],q=h[B],Q=f[B];if(Q===r&&!(B in f)||!q(Q))return!1}return!0}o(gj,"baseConformsTo");function vj(f,h,y){if(typeof f!="function")throw new Ro(i);return xx(function(){f.apply(r,y)},h)}o(vj,"baseDelay");function dx(f,h,y,I){var B=-1,q=LA,Q=!0,te=f.length,ge=[],Be=h.length;if(!te)return ge;y&&(h=Bn(h,no(y))),I?(q=aO,Q=!1):h.length>=t&&(q=ox,Q=!1,h=new Hd(h));e:for(;++B<te;){var Ve=f[B],Ke=y==null?Ve:y(Ve);if(Ve=I||Ve!==0?Ve:0,Q&&Ke===Ke){for(var ut=Be;ut--;)if(h[ut]===Ke)continue e;ge.push(Ve)}else q(h,Ke,I)||ge.push(Ve)}return ge}o(dx,"baseDifference");var xp=zj(Sc),yj=zj(wO,!0);function $te(f,h){var y=!0;return xp(f,function(I,B,q){return y=!!h(I,B,q),y}),y}o($te,"baseEvery");function eN(f,h,y){for(var I=-1,B=f.length;++I<B;){var q=f[I],Q=h(q);if(Q!=null&&(te===r?Q===Q&&!so(Q):y(Q,te)))var te=Q,ge=q}return ge}o(eN,"baseExtremum");function Gte(f,h,y,I){var B=f.length;for(y=or(y),y<0&&(y=-y>B?0:B+y),I=I===r||I>B?B:or(I),I<0&&(I+=B),I=y>I?0:F5(I);y<I;)f[y++]=h;return f}o(Gte,"baseFill");function Sj(f,h){var y=[];return xp(f,function(I,B,q){h(I,B,q)&&y.push(I)}),y}o(Sj,"baseFilter");function ds(f,h,y,I,B){var q=-1,Q=f.length;for(y||(y=Fre),B||(B=[]);++q<Q;){var te=f[q];h>0&&y(te)?h>1?ds(te,h-1,y,I,B):gp(B,te):I||(B[B.length]=te)}return B}o(ds,"baseFlatten");var bO=Kj(),xj=Kj(!0);function Sc(f,h){return f&&bO(f,h,zi)}o(Sc,"baseForOwn");function wO(f,h){return f&&xj(f,h,zi)}o(wO,"baseForOwnRight");function tN(f,h){return mp(h,function(y){return Ul(f[y])})}o(tN,"baseFunctions");function Kd(f,h){h=wp(h,f);for(var y=0,I=h.length;f!=null&&y<I;)f=f[bc(h[y++])];return y&&y==I?f:r}o(Kd,"baseGet");function bj(f,h,y){var I=h(f);return tr(f)?I:gp(I,y(f))}o(bj,"baseGetAllKeys");function ua(f){return f==null?f===r?Ca:Ir:Md&&Md in cn(f)?Rre(f):qre(f)}o(ua,"baseGetTag");function CO(f,h){return f>h}o(CO,"baseGt");function Xte(f,h){return f!=null&&Yr.call(f,h)}o(Xte,"baseHas");function Wte(f,h){return f!=null&&h in cn(f)}o(Wte,"baseHasIn");function Jte(f,h,y){return f>=js(h,y)&&f<Pi(h,y)}o(Jte,"baseInRange");function EO(f,h,y){for(var I=y?aO:LA,B=f[0].length,q=f.length,Q=q,te=Te(q),ge=1/0,Be=[];Q--;){var Ve=f[Q];Q&&h&&(Ve=Bn(Ve,no(h))),ge=js(Ve.length,ge),te[Q]=!y&&(h||B>=120&&Ve.length>=120)?new Hd(Q&&Ve):r}Ve=f[0];var Ke=-1,ut=te[0];e:for(;++Ke<B&&Be.length<ge;){var Ct=Ve[Ke],kt=h?h(Ct):Ct;if(Ct=y||Ct!==0?Ct:0,!(ut?ox(ut,kt):I(Be,kt,y))){for(Q=q;--Q;){var fr=te[Q];if(!(fr?ox(fr,kt):I(f[Q],kt,y)))continue e}ut&&ut.push(kt),Be.push(Ct)}}return Be}o(EO,"baseIntersection");function Qte(f,h,y,I){return Sc(f,function(B,q,Q){h(I,y(B),q,Q)}),I}o(Qte,"baseInverter");function mx(f,h,y){h=wp(h,f),f=u5(f,h);var I=f==null?f:f[bc(Po(h))];return I==null?r:ro(I,f,y)}o(mx,"baseInvoke");function wj(f){return ii(f)&&ua(f)==Ze}o(wj,"baseIsArguments");function Yte(f){return ii(f)&&ua(f)==lt}o(Yte,"baseIsArrayBuffer");function Zte(f){return ii(f)&&ua(f)==O}o(Zte,"baseIsDate");function gx(f,h,y,I,B){return f===h?!0:f==null||h==null||!ii(f)&&!ii(h)?f!==f&&h!==h:ere(f,h,y,I,gx,B)}o(gx,"baseIsEqual");function ere(f,h,y,I,B,q){var Q=tr(f),te=tr(h),ge=Q?We:Us(f),Be=te?We:Us(h);ge=ge==Ze?Je:ge,Be=Be==Ze?Je:Be;var Ve=ge==Je,Ke=Be==Je,ut=ge==Be;if(ut&&Ep(f)){if(!Ep(h))return!1;Q=!0,Ve=!1}if(ut&&!Ve)return q||(q=new bu),Q||zg(f)?t5(f,h,y,I,B,q):Ire(f,h,ge,y,I,B,q);if(!(y&g)){var Ct=Ve&&Yr.call(f,"__wrapped__"),kt=Ke&&Yr.call(h,"__wrapped__");if(Ct||kt){var fr=Ct?f.value():f,Vt=kt?h.value():h;return q||(q=new bu),B(fr,Vt,y,I,q)}}return ut?(q||(q=new bu),Tre(f,h,y,I,B,q)):!1}o(ere,"baseIsEqualDeep");function tre(f){return ii(f)&&Us(f)==Pe}o(tre,"baseIsMap");function AO(f,h,y,I){var B=y.length,q=B,Q=!I;if(f==null)return!q;for(f=cn(f);B--;){var te=y[B];if(Q&&te[2]?te[1]!==f[te[0]]:!(te[0]in f))return!1}for(;++B<q;){te=y[B];var ge=te[0],Be=f[ge],Ve=te[1];if(Q&&te[2]){if(Be===r&&!(ge in f))return!1}else{var Ke=new bu;if(I)var ut=I(Be,Ve,ge,f,h,Ke);if(!(ut===r?gx(Ve,Be,g|S,I,Ke):ut))return!1}}return!0}o(AO,"baseIsMatch");function Cj(f){if(!Xn(f)||kre(f))return!1;var h=Ul(f)?tte:KZ;return h.test(Gd(f))}o(Cj,"baseIsNative");function rre(f){return ii(f)&&ua(f)==nt}o(rre,"baseIsRegExp");function nre(f){return ii(f)&&Us(f)==Pn}o(nre,"baseIsSet");function ire(f){return ii(f)&&yN(f.length)&&!!Nn[ua(f)]}o(ire,"baseIsTypedArray");function Ej(f){return typeof f=="function"?f:f==null?Ia:typeof f=="object"?tr(f)?Ij(f[0],f[1]):Nj(f):$5(f)}o(Ej,"baseIteratee");function NO(f){if(!Sx(f))return ote(f);var h=[];for(var y in cn(f))Yr.call(f,y)&&y!="constructor"&&h.push(y);return h}o(NO,"baseKeys");function sre(f){if(!Xn(f))return Mre(f);var h=Sx(f),y=[];for(var I in f)I=="constructor"&&(h||!Yr.call(f,I))||y.push(I);return y}o(sre,"baseKeysIn");function IO(f,h){return f<h}o(IO,"baseLt");function Aj(f,h){var y=-1,I=Aa(f)?Te(f.length):[];return xp(f,function(B,q,Q){I[++y]=h(B,q,Q)}),I}o(Aj,"baseMap");function Nj(f){var h=qO(f);return h.length==1&&h[0][2]?a5(h[0][0],h[0][1]):function(y){return y===f||AO(y,f,h)}}o(Nj,"baseMatches");function Ij(f,h){return zO(f)&&s5(h)?a5(bc(f),h):function(y){var I=eP(y,f);return I===r&&I===h?tP(y,f):gx(h,I,g|S)}}o(Ij,"baseMatchesProperty");function rN(f,h,y,I,B){f!==h&&bO(h,function(q,Q){if(B||(B=new bu),Xn(q))are(f,h,Q,y,rN,I,B);else{var te=I?I($O(f,Q),q,Q+"",f,h,B):r;te===r&&(te=q),SO(f,Q,te)}},Na)}o(rN,"baseMerge");function are(f,h,y,I,B,q,Q){var te=$O(f,y),ge=$O(h,y),Be=Q.get(ge);if(Be){SO(f,y,Be);return}var Ve=q?q(te,ge,y+"",f,h,Q):r,Ke=Ve===r;if(Ke){var ut=tr(ge),Ct=!ut&&Ep(ge),kt=!ut&&!Ct&&zg(ge);Ve=ge,ut||Ct||kt?tr(te)?Ve=te:mi(te)?Ve=Ea(te):Ct?(Ke=!1,Ve=jj(ge,!0)):kt?(Ke=!1,Ve=Uj(ge,!0)):Ve=[]:bx(ge)||Xd(ge)?(Ve=te,Xd(te)?Ve=L5(te):(!Xn(te)||Ul(te))&&(Ve=i5(ge))):Ke=!1}Ke&&(Q.set(ge,Ve),B(Ve,ge,I,q,Q),Q.delete(ge)),SO(f,y,Ve)}o(are,"baseMergeDeep");function Tj(f,h){var y=f.length;if(y)return h+=h<0?y:0,jl(h,y)?f[h]:r}o(Tj,"baseNth");function Rj(f,h,y){h.length?h=Bn(h,function(q){return tr(q)?function(Q){return Kd(Q,q.length===1?q[0]:q)}:q}):h=[Ia];var I=-1;h=Bn(h,no(Pt()));var B=Aj(f,function(q,Q,te){var ge=Bn(h,function(Be){return Be(q)});return{criteria:ge,index:++I,value:q}});return Pee(B,function(q,Q){return Sre(q,Q,y)})}o(Rj,"baseOrderBy");function ore(f,h){return Dj(f,h,function(y,I){return tP(f,I)})}o(ore,"basePick");function Dj(f,h,y){for(var I=-1,B=h.length,q={};++I<B;){var Q=h[I],te=Kd(f,Q);y(te,Q)&&vx(q,wp(Q,f),te)}return q}o(Dj,"basePickBy");function ure(f){return function(h){return Kd(h,f)}}o(ure,"basePropertyDeep");function TO(f,h,y,I){var B=I?Oee:Bg,q=-1,Q=h.length,te=f;for(f===h&&(h=Ea(h)),y&&(te=Bn(f,no(y)));++q<Q;)for(var ge=0,Be=h[q],Ve=y?y(Be):Be;(ge=B(te,Ve,ge,I))>-1;)te!==f&&$A.call(te,ge,1),$A.call(f,ge,1);return f}o(TO,"basePullAll");function _j(f,h){for(var y=f?h.length:0,I=y-1;y--;){var B=h[y];if(y==I||B!==q){var q=B;jl(B)?$A.call(f,B,1):OO(f,B)}}return f}o(_j,"basePullAt");function RO(f,h){return f+WA(fj()*(h-f+1))}o(RO,"baseRandom");function cre(f,h,y,I){for(var B=-1,q=Pi(XA((h-f)/(y||1)),0),Q=Te(q);q--;)Q[I?q:++B]=f,f+=y;return Q}o(cre,"baseRange");function DO(f,h){var y="";if(!f||h<1||h>ee)return y;do h%2&&(y+=f),h=WA(h/2),h&&(f+=f);while(h);return y}o(DO,"baseRepeat");function mr(f,h){return GO(o5(f,h,Ia),f+"")}o(mr,"baseRest");function lre(f){return dj(Kg(f))}o(lre,"baseSample");function fre(f,h){var y=Kg(f);return pN(y,zd(h,0,y.length))}o(fre,"baseSampleSize");function vx(f,h,y,I){if(!Xn(f))return f;h=wp(h,f);for(var B=-1,q=h.length,Q=q-1,te=f;te!=null&&++B<q;){var ge=bc(h[B]),Be=y;if(ge==="__proto__"||ge==="constructor"||ge==="prototype")return f;if(B!=Q){var Ve=te[ge];Be=I?I(Ve,ge,te):r,Be===r&&(Be=Xn(Ve)?Ve:jl(h[B+1])?[]:{})}hx(te,ge,Be),te=te[ge]}return f}o(vx,"baseSet");var Oj=JA?function(f,h){return JA.set(f,h),f}:Ia,pre=GA?function(f,h){return GA(f,"toString",{configurable:!0,enumerable:!1,value:nP(h),writable:!0})}:Ia;function hre(f){return pN(Kg(f))}o(hre,"baseShuffle");function Oo(f,h,y){var I=-1,B=f.length;h<0&&(h=-h>B?0:B+h),y=y>B?B:y,y<0&&(y+=B),B=h>y?0:y-h>>>0,h>>>=0;for(var q=Te(B);++I<B;)q[I]=f[I+h];return q}o(Oo,"baseSlice");function dre(f,h){var y;return xp(f,function(I,B,q){return y=h(I,B,q),!y}),!!y}o(dre,"baseSome");function nN(f,h,y){var I=0,B=f==null?I:f.length;if(typeof h=="number"&&h===h&&B<=ie){for(;I<B;){var q=I+B>>>1,Q=f[q];Q!==null&&!so(Q)&&(y?Q<=h:Q<h)?I=q+1:B=q}return B}return _O(f,h,Ia,y)}o(nN,"baseSortedIndex");function _O(f,h,y,I){var B=0,q=f==null?0:f.length;if(q===0)return 0;h=y(h);for(var Q=h!==h,te=h===null,ge=so(h),Be=h===r;B<q;){var Ve=WA((B+q)/2),Ke=y(f[Ve]),ut=Ke!==r,Ct=Ke===null,kt=Ke===Ke,fr=so(Ke);if(Q)var Vt=I||kt;else Be?Vt=kt&&(I||ut):te?Vt=kt&&ut&&(I||!Ct):ge?Vt=kt&&ut&&!Ct&&(I||!fr):Ct||fr?Vt=!1:Vt=I?Ke<=h:Ke<h;Vt?B=Ve+1:q=Ve}return js(q,xe)}o(_O,"baseSortedIndexBy");function Pj(f,h){for(var y=-1,I=f.length,B=0,q=[];++y<I;){var Q=f[y],te=h?h(Q):Q;if(!y||!wu(te,ge)){var ge=te;q[B++]=Q===0?0:Q}}return q}o(Pj,"baseSortedUniq");function Bj(f){return typeof f=="number"?f:so(f)?Ce:+f}o(Bj,"baseToNumber");function io(f){if(typeof f=="string")return f;if(tr(f))return Bn(f,io)+"";if(so(f))return pj?pj.call(f):"";var h=f+"";return h=="0"&&1/f==-ce?"-0":h}o(io,"baseToString");function bp(f,h,y){var I=-1,B=LA,q=f.length,Q=!0,te=[],ge=te;if(y)Q=!1,B=aO;else if(q>=t){var Be=h?null:Are(f);if(Be)return VA(Be);Q=!1,B=ox,ge=new Hd}else ge=h?[]:te;e:for(;++I<q;){var Ve=f[I],Ke=h?h(Ve):Ve;if(Ve=y||Ve!==0?Ve:0,Q&&Ke===Ke){for(var ut=ge.length;ut--;)if(ge[ut]===Ke)continue e;h&&ge.push(Ke),te.push(Ve)}else B(ge,Ke,y)||(ge!==te&&ge.push(Ke),te.push(Ve))}return te}o(bp,"baseUniq");function OO(f,h){return h=wp(h,f),f=u5(f,h),f==null||delete f[bc(Po(h))]}o(OO,"baseUnset");function Fj(f,h,y,I){return vx(f,h,y(Kd(f,h)),I)}o(Fj,"baseUpdate");function iN(f,h,y,I){for(var B=f.length,q=I?B:-1;(I?q--:++q<B)&&h(f[q],q,f););return y?Oo(f,I?0:q,I?q+1:B):Oo(f,I?q+1:0,I?B:q)}o(iN,"baseWhile");function Lj(f,h){var y=f;return y instanceof Er&&(y=y.value()),oO(h,function(I,B){return B.func.apply(B.thisArg,gp([I],B.args))},y)}o(Lj,"baseWrapperValue");function PO(f,h,y){var I=f.length;if(I<2)return I?bp(f[0]):[];for(var B=-1,q=Te(I);++B<I;)for(var Q=f[B],te=-1;++te<I;)te!=B&&(q[B]=dx(q[B]||Q,f[te],h,y));return bp(ds(q,1),h,y)}o(PO,"baseXor");function kj(f,h,y){for(var I=-1,B=f.length,q=h.length,Q={};++I<B;){var te=I<q?h[I]:r;y(Q,f[I],te)}return Q}o(kj,"baseZipObject");function BO(f){return mi(f)?f:[]}o(BO,"castArrayLikeObject");function FO(f){return typeof f=="function"?f:Ia}o(FO,"castFunction");function wp(f,h){return tr(f)?f:zO(f,h)?[f]:p5(Xr(f))}o(wp,"castPath");var mre=mr;function Cp(f,h,y){var I=f.length;return y=y===r?I:y,!h&&y>=I?f:Oo(f,h,y)}o(Cp,"castSlice");var Vj=rte||function(f){return Hi.clearTimeout(f)};function jj(f,h){if(h)return f.slice();var y=f.length,I=aj?aj(y):new f.constructor(y);return f.copy(I),I}o(jj,"cloneBuffer");function LO(f){var h=new f.constructor(f.byteLength);return new zA(h).set(new zA(f)),h}o(LO,"cloneArrayBuffer");function gre(f,h){var y=h?LO(f.buffer):f.buffer;return new f.constructor(y,f.byteOffset,f.byteLength)}o(gre,"cloneDataView");function vre(f){var h=new f.constructor(f.source,Su.exec(f));return h.lastIndex=f.lastIndex,h}o(vre,"cloneRegExp");function yre(f){return px?cn(px.call(f)):{}}o(yre,"cloneSymbol");function Uj(f,h){var y=h?LO(f.buffer):f.buffer;return new f.constructor(y,f.byteOffset,f.length)}o(Uj,"cloneTypedArray");function Mj(f,h){if(f!==h){var y=f!==r,I=f===null,B=f===f,q=so(f),Q=h!==r,te=h===null,ge=h===h,Be=so(h);if(!te&&!Be&&!q&&f>h||q&&Q&&ge&&!te&&!Be||I&&Q&&ge||!y&&ge||!B)return 1;if(!I&&!q&&!Be&&f<h||Be&&y&&B&&!I&&!q||te&&y&&B||!Q&&B||!ge)return-1}return 0}o(Mj,"compareAscending");function Sre(f,h,y){for(var I=-1,B=f.criteria,q=h.criteria,Q=B.length,te=y.length;++I<Q;){var ge=Mj(B[I],q[I]);if(ge){if(I>=te)return ge;var Be=y[I];return ge*(Be=="desc"?-1:1)}}return f.index-h.index}o(Sre,"compareMultiple");function qj(f,h,y,I){for(var B=-1,q=f.length,Q=y.length,te=-1,ge=h.length,Be=Pi(q-Q,0),Ve=Te(ge+Be),Ke=!I;++te<ge;)Ve[te]=h[te];for(;++B<Q;)(Ke||B<q)&&(Ve[y[B]]=f[B]);for(;Be--;)Ve[te++]=f[B++];return Ve}o(qj,"composeArgs");function Hj(f,h,y,I){for(var B=-1,q=f.length,Q=-1,te=y.length,ge=-1,Be=h.length,Ve=Pi(q-te,0),Ke=Te(Ve+Be),ut=!I;++B<Ve;)Ke[B]=f[B];for(var Ct=B;++ge<Be;)Ke[Ct+ge]=h[ge];for(;++Q<te;)(ut||B<q)&&(Ke[Ct+y[Q]]=f[B++]);return Ke}o(Hj,"composeArgsRight");function Ea(f,h){var y=-1,I=f.length;for(h||(h=Te(I));++y<I;)h[y]=f[y];return h}o(Ea,"copyArray");function xc(f,h,y,I){var B=!y;y||(y={});for(var q=-1,Q=h.length;++q<Q;){var te=h[q],ge=I?I(y[te],f[te],te,y,f):r;ge===r&&(ge=f[te]),B?Ll(y,te,ge):hx(y,te,ge)}return y}o(xc,"copyObject");function xre(f,h){return xc(f,HO(f),h)}o(xre,"copySymbols");function bre(f,h){return xc(f,r5(f),h)}o(bre,"copySymbolsIn");function sN(f,h){return function(y,I){var B=tr(y)?Nee:Hte,q=h?h():{};return B(y,f,Pt(I,2),q)}}o(sN,"createAggregator");function Mg(f){return mr(function(h,y){var I=-1,B=y.length,q=B>1?y[B-1]:r,Q=B>2?y[2]:r;for(q=f.length>3&&typeof q=="function"?(B--,q):r,Q&&ca(y[0],y[1],Q)&&(q=B<3?r:q,B=1),h=cn(h);++I<B;){var te=y[I];te&&f(h,te,I,q)}return h})}o(Mg,"createAssigner");function zj(f,h){return function(y,I){if(y==null)return y;if(!Aa(y))return f(y,I);for(var B=y.length,q=h?B:-1,Q=cn(y);(h?q--:++q<B)&&I(Q[q],q,Q)!==!1;);return y}}o(zj,"createBaseEach");function Kj(f){return function(h,y,I){for(var B=-1,q=cn(h),Q=I(h),te=Q.length;te--;){var ge=Q[f?te:++B];if(y(q[ge],ge,q)===!1)break}return h}}o(Kj,"createBaseFor");function wre(f,h,y){var I=h&v,B=yx(f);function q(){var Q=this&&this!==Hi&&this instanceof q?B:f;return Q.apply(I?y:this,arguments)}return o(q,"wrapper"),q}o(wre,"createBind");function $j(f){return function(h){h=Xr(h);var y=Fg(h)?xu(h):r,I=y?y[0]:h.charAt(0),B=y?Cp(y,1).join(""):h.slice(1);return I[f]()+B}}o($j,"createCaseFirst");function qg(f){return function(h){return oO(z5(H5(h).replace(pee,"")),f,"")}}o(qg,"createCompounder");function yx(f){return function(){var h=arguments;switch(h.length){case 0:return new f;case 1:return new f(h[0]);case 2:return new f(h[0],h[1]);case 3:return new f(h[0],h[1],h[2]);case 4:return new f(h[0],h[1],h[2],h[3]);case 5:return new f(h[0],h[1],h[2],h[3],h[4]);case 6:return new f(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new f(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var y=Ug(f.prototype),I=f.apply(y,h);return Xn(I)?I:y}}o(yx,"createCtor");function Cre(f,h,y){var I=yx(f);function B(){for(var q=arguments.length,Q=Te(q),te=q,ge=Hg(B);te--;)Q[te]=arguments[te];var Be=q<3&&Q[0]!==ge&&Q[q-1]!==ge?[]:vp(Q,ge);if(q-=Be.length,q<y)return Qj(f,h,aN,B.placeholder,r,Q,Be,r,r,y-q);var Ve=this&&this!==Hi&&this instanceof B?I:f;return ro(Ve,this,Q)}return o(B,"wrapper"),B}o(Cre,"createCurry");function Gj(f){return function(h,y,I){var B=cn(h);if(!Aa(h)){var q=Pt(y,3);h=zi(h),y=o(function(te){return q(B[te],te,B)},"predicate")}var Q=f(h,y,I);return Q>-1?B[q?h[Q]:Q]:r}}o(Gj,"createFind");function Xj(f){return Vl(function(h){var y=h.length,I=y,B=Do.prototype.thru;for(f&&h.reverse();I--;){var q=h[I];if(typeof q!="function")throw new Ro(i);if(B&&!Q&&lN(q)=="wrapper")var Q=new Do([],!0)}for(I=Q?I:y;++I<y;){q=h[I];var te=lN(q),ge=te=="wrapper"?MO(q):r;ge&&KO(ge[0])&&ge[1]==(A|E|w|R)&&!ge[4].length&&ge[9]==1?Q=Q[lN(ge[0])].apply(Q,ge[3]):Q=q.length==1&&KO(q)?Q[te]():Q.thru(q)}return function(){var Be=arguments,Ve=Be[0];if(Q&&Be.length==1&&tr(Ve))return Q.plant(Ve).value();for(var Ke=0,ut=y?h[Ke].apply(this,Be):Ve;++Ke<y;)ut=h[Ke].call(this,ut);return ut}})}o(Xj,"createFlow");function aN(f,h,y,I,B,q,Q,te,ge,Be){var Ve=h&A,Ke=h&v,ut=h&b,Ct=h&(E|N),kt=h&M,fr=ut?r:yx(f);function Vt(){for(var yr=arguments.length,Rr=Te(yr),ao=yr;ao--;)Rr[ao]=arguments[ao];if(Ct)var la=Hg(Vt),oo=Fee(Rr,la);if(I&&(Rr=qj(Rr,I,B,Ct)),q&&(Rr=Hj(Rr,q,Q,Ct)),yr-=oo,Ct&&yr<Be){var gi=vp(Rr,la);return Qj(f,h,aN,Vt.placeholder,y,Rr,gi,te,ge,Be-yr)}var Cu=Ke?y:this,ql=ut?Cu[f]:f;return yr=Rr.length,te?Rr=Hre(Rr,te):kt&&yr>1&&Rr.reverse(),Ve&&ge<yr&&(Rr.length=ge),this&&this!==Hi&&this instanceof Vt&&(ql=fr||yx(ql)),ql.apply(Cu,Rr)}return o(Vt,"wrapper"),Vt}o(aN,"createHybrid");function Wj(f,h){return function(y,I){return Qte(y,f,h(I),{})}}o(Wj,"createInverter");function oN(f,h){return function(y,I){var B;if(y===r&&I===r)return h;if(y!==r&&(B=y),I!==r){if(B===r)return I;typeof y=="string"||typeof I=="string"?(y=io(y),I=io(I)):(y=Bj(y),I=Bj(I)),B=f(y,I)}return B}}o(oN,"createMathOperation");function kO(f){return Vl(function(h){return h=Bn(h,no(Pt())),mr(function(y){var I=this;return f(h,function(B){return ro(B,I,y)})})})}o(kO,"createOver");function uN(f,h){h=h===r?" ":io(h);var y=h.length;if(y<2)return y?DO(h,f):h;var I=DO(h,XA(f/Lg(h)));return Fg(h)?Cp(xu(I),0,f).join(""):I.slice(0,f)}o(uN,"createPadding");function Ere(f,h,y,I){var B=h&v,q=yx(f);function Q(){for(var te=-1,ge=arguments.length,Be=-1,Ve=I.length,Ke=Te(Ve+ge),ut=this&&this!==Hi&&this instanceof Q?q:f;++Be<Ve;)Ke[Be]=I[Be];for(;ge--;)Ke[Be++]=arguments[++te];return ro(ut,B?y:this,Ke)}return o(Q,"wrapper"),Q}o(Ere,"createPartial");function Jj(f){return function(h,y,I){return I&&typeof I!="number"&&ca(h,y,I)&&(y=I=r),h=Ml(h),y===r?(y=h,h=0):y=Ml(y),I=I===r?h<y?1:-1:Ml(I),cre(h,y,I,f)}}o(Jj,"createRange");function cN(f){return function(h,y){return typeof h=="string"&&typeof y=="string"||(h=Bo(h),y=Bo(y)),f(h,y)}}o(cN,"createRelationalOperation");function Qj(f,h,y,I,B,q,Q,te,ge,Be){var Ve=h&E,Ke=Ve?Q:r,ut=Ve?r:Q,Ct=Ve?q:r,kt=Ve?r:q;h|=Ve?w:C,h&=~(Ve?C:w),h&x||(h&=~(v|b));var fr=[f,h,B,Ct,Ke,kt,ut,te,ge,Be],Vt=y.apply(r,fr);return KO(f)&&c5(Vt,fr),Vt.placeholder=I,l5(Vt,f,h)}o(Qj,"createRecurry");function VO(f){var h=Oi[f];return function(y,I){if(y=Bo(y),I=I==null?0:js(or(I),292),I&&lj(y)){var B=(Xr(y)+"e").split("e"),q=h(B[0]+"e"+(+B[1]+I));return B=(Xr(q)+"e").split("e"),+(B[0]+"e"+(+B[1]-I))}return h(y)}}o(VO,"createRound");var Are=Vg&&1/VA(new Vg([,-0]))[1]==ce?function(f){return new Vg(f)}:aP;function Yj(f){return function(h){var y=Us(h);return y==Pe?dO(h):y==Pn?qee(h):Bee(h,f(h))}}o(Yj,"createToPairs");function kl(f,h,y,I,B,q,Q,te){var ge=h&b;if(!ge&&typeof f!="function")throw new Ro(i);var Be=I?I.length:0;if(Be||(h&=~(w|C),I=B=r),Q=Q===r?Q:Pi(or(Q),0),te=te===r?te:or(te),Be-=B?B.length:0,h&C){var Ve=I,Ke=B;I=B=r}var ut=ge?r:MO(f),Ct=[f,h,y,I,B,Ve,Ke,q,Q,te];if(ut&&Ure(Ct,ut),f=Ct[0],h=Ct[1],y=Ct[2],I=Ct[3],B=Ct[4],te=Ct[9]=Ct[9]===r?ge?0:f.length:Pi(Ct[9]-Be,0),!te&&h&(E|N)&&(h&=~(E|N)),!h||h==v)var kt=wre(f,h,y);else h==E||h==N?kt=Cre(f,h,te):(h==w||h==(v|w))&&!B.length?kt=Ere(f,h,y,I):kt=aN.apply(r,Ct);var fr=ut?Oj:c5;return l5(fr(kt,Ct),f,h)}o(kl,"createWrap");function Zj(f,h,y,I){return f===r||wu(f,kg[y])&&!Yr.call(I,y)?h:f}o(Zj,"customDefaultsAssignIn");function e5(f,h,y,I,B,q){return Xn(f)&&Xn(h)&&(q.set(h,f),rN(f,h,r,e5,q),q.delete(h)),f}o(e5,"customDefaultsMerge");function Nre(f){return bx(f)?r:f}o(Nre,"customOmitClone");function t5(f,h,y,I,B,q){var Q=y&g,te=f.length,ge=h.length;if(te!=ge&&!(Q&&ge>te))return!1;var Be=q.get(f),Ve=q.get(h);if(Be&&Ve)return Be==h&&Ve==f;var Ke=-1,ut=!0,Ct=y&S?new Hd:r;for(q.set(f,h),q.set(h,f);++Ke<te;){var kt=f[Ke],fr=h[Ke];if(I)var Vt=Q?I(fr,kt,Ke,h,f,q):I(kt,fr,Ke,f,h,q);if(Vt!==r){if(Vt)continue;ut=!1;break}if(Ct){if(!uO(h,function(yr,Rr){if(!ox(Ct,Rr)&&(kt===yr||B(kt,yr,y,I,q)))return Ct.push(Rr)})){ut=!1;break}}else if(!(kt===fr||B(kt,fr,y,I,q))){ut=!1;break}}return q.delete(f),q.delete(h),ut}o(t5,"equalArrays");function Ire(f,h,y,I,B,q,Q){switch(y){case ps:if(f.byteLength!=h.byteLength||f.byteOffset!=h.byteOffset)return!1;f=f.buffer,h=h.buffer;case lt:return!(f.byteLength!=h.byteLength||!q(new zA(f),new zA(h)));case F:case O:case bt:return wu(+f,+h);case J:return f.name==h.name&&f.message==h.message;case nt:case Ei:return f==h+"";case Pe:var te=dO;case Pn:var ge=I&g;if(te||(te=VA),f.size!=h.size&&!ge)return!1;var Be=Q.get(f);if(Be)return Be==h;I|=S,Q.set(f,h);var Ve=t5(te(f),te(h),I,B,q,Q);return Q.delete(f),Ve;case ks:if(px)return px.call(f)==px.call(h)}return!1}o(Ire,"equalByTag");function Tre(f,h,y,I,B,q){var Q=y&g,te=jO(f),ge=te.length,Be=jO(h),Ve=Be.length;if(ge!=Ve&&!Q)return!1;for(var Ke=ge;Ke--;){var ut=te[Ke];if(!(Q?ut in h:Yr.call(h,ut)))return!1}var Ct=q.get(f),kt=q.get(h);if(Ct&&kt)return Ct==h&&kt==f;var fr=!0;q.set(f,h),q.set(h,f);for(var Vt=Q;++Ke<ge;){ut=te[Ke];var yr=f[ut],Rr=h[ut];if(I)var ao=Q?I(Rr,yr,ut,h,f,q):I(yr,Rr,ut,f,h,q);if(!(ao===r?yr===Rr||B(yr,Rr,y,I,q):ao)){fr=!1;break}Vt||(Vt=ut=="constructor")}if(fr&&!Vt){var la=f.constructor,oo=h.constructor;la!=oo&&"constructor"in f&&"constructor"in h&&!(typeof la=="function"&&la instanceof la&&typeof oo=="function"&&oo instanceof oo)&&(fr=!1)}return q.delete(f),q.delete(h),fr}o(Tre,"equalObjects");function Vl(f){return GO(o5(f,r,g5),f+"")}o(Vl,"flatRest");function jO(f){return bj(f,zi,HO)}o(jO,"getAllKeys");function UO(f){return bj(f,Na,r5)}o(UO,"getAllKeysIn");var MO=JA?function(f){return JA.get(f)}:aP;function lN(f){for(var h=f.name+"",y=jg[h],I=Yr.call(jg,h)?y.length:0;I--;){var B=y[I],q=B.func;if(q==null||q==f)return B.name}return h}o(lN,"getFuncName");function Hg(f){var h=Yr.call(U,"placeholder")?U:f;return h.placeholder}o(Hg,"getHolder");function Pt(){var f=U.iteratee||iP;return f=f===iP?Ej:f,arguments.length?f(arguments[0],arguments[1]):f}o(Pt,"getIteratee");function fN(f,h){var y=f.__data__;return Lre(h)?y[typeof h=="string"?"string":"hash"]:y.map}o(fN,"getMapData");function qO(f){for(var h=zi(f),y=h.length;y--;){var I=h[y],B=f[I];h[y]=[I,B,s5(B)]}return h}o(qO,"getMatchData");function $d(f,h){var y=jee(f,h);return Cj(y)?y:r}o($d,"getNative");function Rre(f){var h=Yr.call(f,Md),y=f[Md];try{f[Md]=r;var I=!0}catch{}var B=qA.call(f);return I&&(h?f[Md]=y:delete f[Md]),B}o(Rre,"getRawTag");var HO=gO?function(f){return f==null?[]:(f=cn(f),mp(gO(f),function(h){return uj.call(f,h)}))}:oP,r5=gO?function(f){for(var h=[];f;)gp(h,HO(f)),f=KA(f);return h}:oP,Us=ua;(vO&&Us(new vO(new ArrayBuffer(1)))!=ps||cx&&Us(new cx)!=Pe||yO&&Us(yO.resolve())!=Tr||Vg&&Us(new Vg)!=Pn||lx&&Us(new lx)!=aa)&&(Us=o(function(f){var h=ua(f),y=h==Je?f.constructor:r,I=y?Gd(y):"";if(I)switch(I){case fte:return ps;case pte:return Pe;case hte:return Tr;case dte:return Pn;case mte:return aa}return h},"getTag"));function Dre(f,h,y){for(var I=-1,B=y.length;++I<B;){var q=y[I],Q=q.size;switch(q.type){case"drop":f+=Q;break;case"dropRight":h-=Q;break;case"take":h=js(h,f+Q);break;case"takeRight":f=Pi(f,h-Q);break}}return{start:f,end:h}}o(Dre,"getView");function _re(f){var h=f.match(W_);return h?h[1].split(J_):[]}o(_re,"getWrapDetails");function n5(f,h,y){h=wp(h,f);for(var I=-1,B=h.length,q=!1;++I<B;){var Q=bc(h[I]);if(!(q=f!=null&&y(f,Q)))break;f=f[Q]}return q||++I!=B?q:(B=f==null?0:f.length,!!B&&yN(B)&&jl(Q,B)&&(tr(f)||Xd(f)))}o(n5,"hasPath");function Ore(f){var h=f.length,y=new f.constructor(h);return h&&typeof f[0]=="string"&&Yr.call(f,"index")&&(y.index=f.index,y.input=f.input),y}o(Ore,"initCloneArray");function i5(f){return typeof f.constructor=="function"&&!Sx(f)?Ug(KA(f)):{}}o(i5,"initCloneObject");function Pre(f,h,y){var I=f.constructor;switch(h){case lt:return LO(f);case F:case O:return new I(+f);case ps:return gre(f,y);case oa:case gc:case vc:case Jt:case _g:case Og:case jd:case sx:case to:return Uj(f,y);case Pe:return new I;case bt:case Ei:return new I(f);case nt:return vre(f);case Pn:return new I;case ks:return yre(f)}}o(Pre,"initCloneByTag");function Bre(f,h){var y=h.length;if(!y)return f;var I=y-1;return h[I]=(y>1?"& ":"")+h[I],h=h.join(y>2?", ":" "),f.replace(X_,`{
27
27
  /* [wrapped with `+h+`] */
28
- `)}o(Bre,"insertWrapDetails");function Fre(f){return tr(f)||Xd(f)||!!(cj&&f&&f[cj])}o(Fre,"isFlattenable");function jl(f,h){var y=typeof f;return h=h??ee,!!h&&(y=="number"||y!="symbol"&&GZ.test(f))&&f>-1&&f%1==0&&f<h}o(jl,"isIndex");function ca(f,h,y){if(!Xn(y))return!1;var I=typeof h;return(I=="number"?Aa(y)&&jl(h,y.length):I=="string"&&h in y)?wu(y[h],f):!1}o(ca,"isIterateeCall");function zO(f,h){if(tr(f))return!1;var y=typeof f;return y=="number"||y=="symbol"||y=="boolean"||f==null||so(f)?!0:hs.test(f)||!Xt.test(f)||h!=null&&f in cn(h)}o(zO,"isKey");function Lre(f){var h=typeof f;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?f!=="__proto__":f===null}o(Lre,"isKeyable");function KO(f){var h=lN(f),y=U[h];if(typeof y!="function"||!(h in Er.prototype))return!1;if(f===y)return!0;var I=MO(y);return!!I&&f===I[0]}o(KO,"isLaziable");function kre(f){return!!sj&&sj in f}o(kre,"isMasked");var Vre=UA?Ul:uP;function Sx(f){var h=f&&f.constructor,y=typeof h=="function"&&h.prototype||kg;return f===y}o(Sx,"isPrototype");function s5(f){return f===f&&!Xn(f)}o(s5,"isStrictComparable");function a5(f,h){return function(y){return y==null?!1:y[f]===h&&(h!==r||f in cn(y))}}o(a5,"matchesStrictComparable");function jre(f){var h=gN(f,function(I){return y.size===u&&y.clear(),I}),y=h.cache;return h}o(jre,"memoizeCapped");function Ure(f,h){var y=f[1],I=h[1],B=y|I,q=B<(v|b|A),Q=I==A&&y==E||I==A&&y==R&&f[7].length<=h[8]||I==(A|R)&&h[7].length<=h[8]&&y==E;if(!(q||Q))return f;I&v&&(f[2]=h[2],B|=y&v?0:x);var te=h[3];if(te){var ge=f[3];f[3]=ge?qj(ge,te,h[4]):te,f[4]=ge?vp(f[3],c):h[4]}return te=h[5],te&&(ge=f[5],f[5]=ge?Hj(ge,te,h[6]):te,f[6]=ge?vp(f[5],c):h[6]),te=h[7],te&&(f[7]=te),I&A&&(f[8]=f[8]==null?h[8]:js(f[8],h[8])),f[9]==null&&(f[9]=h[9]),f[0]=h[0],f[1]=B,f}o(Ure,"mergeData");function Mre(f){var h=[];if(f!=null)for(var y in cn(f))h.push(y);return h}o(Mre,"nativeKeysIn");function qre(f){return qA.call(f)}o(qre,"objectToString");function o5(f,h,y){return h=Pi(h===r?f.length-1:h,0),function(){for(var I=arguments,B=-1,q=Pi(I.length-h,0),Q=Te(q);++B<q;)Q[B]=I[h+B];B=-1;for(var te=Te(h+1);++B<h;)te[B]=I[B];return te[h]=y(Q),ro(f,this,te)}}o(o5,"overRest");function u5(f,h){return h.length<2?f:Kd(f,Oo(h,0,-1))}o(u5,"parent");function Hre(f,h){for(var y=f.length,I=js(h.length,y),B=Ea(f);I--;){var q=h[I];f[I]=jl(q,y)?B[q]:r}return f}o(Hre,"reorder");function $O(f,h){if(!(h==="constructor"&&typeof f[h]=="function")&&h!="__proto__")return f[h]}o($O,"safeGet");var c5=f5(Oj),xx=ite||function(f,h){return Hi.setTimeout(f,h)},GO=f5(pre);function l5(f,h,y){var I=h+"";return GO(f,Bre(I,zre(_re(I),y)))}o(l5,"setWrapToString");function f5(f){var h=0,y=0;return function(){var I=ute(),B=K-(I-y);if(y=I,B>0){if(++h>=z)return arguments[0]}else h=0;return f.apply(r,arguments)}}o(f5,"shortOut");function pN(f,h){var y=-1,I=f.length,B=I-1;for(h=h===r?I:h;++y<h;){var q=RO(y,B),Q=f[q];f[q]=f[y],f[y]=Q}return f.length=h,f}o(pN,"shuffleSelf");var p5=jre(function(f){var h=[];return f.charCodeAt(0)===46&&h.push(""),f.replace(No,function(y,I,B,q){h.push(B?q.replace(Cr,"$1"):I||y)}),h});function bc(f){if(typeof f=="string"||so(f))return f;var h=f+"";return h=="0"&&1/f==-ce?"-0":h}o(bc,"toKey");function Gd(f){if(f!=null){try{return MA.call(f)}catch{}try{return f+""}catch{}}return""}o(Gd,"toSource");function zre(f,h){return To(De,function(y){var I="_."+y[0];h&y[1]&&!LA(f,I)&&f.push(I)}),f.sort()}o(zre,"updateWrapDetails");function h5(f){if(f instanceof Er)return f.clone();var h=new Do(f.__wrapped__,f.__chain__);return h.__actions__=Ea(f.__actions__),h.__index__=f.__index__,h.__values__=f.__values__,h}o(h5,"wrapperClone");function Kre(f,h,y){(y?ca(f,h,y):h===r)?h=1:h=Pi(or(h),0);var I=f==null?0:f.length;if(!I||h<1)return[];for(var B=0,q=0,Q=Te(XA(I/h));B<I;)Q[q++]=Oo(f,B,B+=h);return Q}o(Kre,"chunk");function $re(f){for(var h=-1,y=f==null?0:f.length,I=0,B=[];++h<y;){var q=f[h];q&&(B[I++]=q)}return B}o($re,"compact");function Gre(){var f=arguments.length;if(!f)return[];for(var h=Te(f-1),y=arguments[0],I=f;I--;)h[I-1]=arguments[I];return gp(tr(y)?Ea(y):[y],ds(h,1))}o(Gre,"concat");var Xre=mr(function(f,h){return mi(f)?dx(f,ds(h,1,mi,!0)):[]}),Wre=mr(function(f,h){var y=Po(h);return mi(y)&&(y=r),mi(f)?dx(f,ds(h,1,mi,!0),Pt(y,2)):[]}),Jre=mr(function(f,h){var y=Po(h);return mi(y)&&(y=r),mi(f)?dx(f,ds(h,1,mi,!0),r,y):[]});function Qre(f,h,y){var I=f==null?0:f.length;return I?(h=y||h===r?1:or(h),Oo(f,h<0?0:h,I)):[]}o(Qre,"drop");function Yre(f,h,y){var I=f==null?0:f.length;return I?(h=y||h===r?1:or(h),h=I-h,Oo(f,0,h<0?0:h)):[]}o(Yre,"dropRight");function Zre(f,h){return f&&f.length?iN(f,Pt(h,3),!0,!0):[]}o(Zre,"dropRightWhile");function ene(f,h){return f&&f.length?iN(f,Pt(h,3),!0):[]}o(ene,"dropWhile");function tne(f,h,y,I){var B=f==null?0:f.length;return B?(y&&typeof y!="number"&&ca(f,h,y)&&(y=0,I=B),Gte(f,h,y,I)):[]}o(tne,"fill");function d5(f,h,y){var I=f==null?0:f.length;if(!I)return-1;var B=y==null?0:or(y);return B<0&&(B=Pi(I+B,0)),kA(f,Pt(h,3),B)}o(d5,"findIndex");function m5(f,h,y){var I=f==null?0:f.length;if(!I)return-1;var B=I-1;return y!==r&&(B=or(y),B=y<0?Pi(I+B,0):js(B,I-1)),kA(f,Pt(h,3),B,!0)}o(m5,"findLastIndex");function g5(f){var h=f==null?0:f.length;return h?ds(f,1):[]}o(g5,"flatten");function rne(f){var h=f==null?0:f.length;return h?ds(f,ce):[]}o(rne,"flattenDeep");function nne(f,h){var y=f==null?0:f.length;return y?(h=h===r?1:or(h),ds(f,h)):[]}o(nne,"flattenDepth");function ine(f){for(var h=-1,y=f==null?0:f.length,I={};++h<y;){var B=f[h];I[B[0]]=B[1]}return I}o(ine,"fromPairs");function v5(f){return f&&f.length?f[0]:r}o(v5,"head");function sne(f,h,y){var I=f==null?0:f.length;if(!I)return-1;var B=y==null?0:or(y);return B<0&&(B=Pi(I+B,0)),Bg(f,h,B)}o(sne,"indexOf");function ane(f){var h=f==null?0:f.length;return h?Oo(f,0,-1):[]}o(ane,"initial");var one=mr(function(f){var h=Bn(f,BO);return h.length&&h[0]===f[0]?EO(h):[]}),une=mr(function(f){var h=Po(f),y=Bn(f,BO);return h===Po(y)?h=r:y.pop(),y.length&&y[0]===f[0]?EO(y,Pt(h,2)):[]}),cne=mr(function(f){var h=Po(f),y=Bn(f,BO);return h=typeof h=="function"?h:r,h&&y.pop(),y.length&&y[0]===f[0]?EO(y,r,h):[]});function lne(f,h){return f==null?"":ate.call(f,h)}o(lne,"join");function Po(f){var h=f==null?0:f.length;return h?f[h-1]:r}o(Po,"last");function fne(f,h,y){var I=f==null?0:f.length;if(!I)return-1;var B=I;return y!==r&&(B=or(y),B=B<0?Pi(I+B,0):js(B,I-1)),h===h?zee(f,h,B):kA(f,Q8,B,!0)}o(fne,"lastIndexOf");function pne(f,h){return f&&f.length?Tj(f,or(h)):r}o(pne,"nth");var hne=mr(y5);function y5(f,h){return f&&f.length&&h&&h.length?TO(f,h):f}o(y5,"pullAll");function dne(f,h,y){return f&&f.length&&h&&h.length?TO(f,h,Pt(y,2)):f}o(dne,"pullAllBy");function mne(f,h,y){return f&&f.length&&h&&h.length?TO(f,h,r,y):f}o(mne,"pullAllWith");var gne=Vl(function(f,h){var y=f==null?0:f.length,I=xO(f,h);return _j(f,Bn(h,function(B){return jl(B,y)?+B:B}).sort(Mj)),I});function vne(f,h){var y=[];if(!(f&&f.length))return y;var I=-1,B=[],q=f.length;for(h=Pt(h,3);++I<q;){var Q=f[I];h(Q,I,f)&&(y.push(Q),B.push(I))}return _j(f,B),y}o(vne,"remove");function XO(f){return f==null?f:lte.call(f)}o(XO,"reverse");function yne(f,h,y){var I=f==null?0:f.length;return I?(y&&typeof y!="number"&&ca(f,h,y)?(h=0,y=I):(h=h==null?0:or(h),y=y===r?I:or(y)),Oo(f,h,y)):[]}o(yne,"slice");function Sne(f,h){return nN(f,h)}o(Sne,"sortedIndex");function xne(f,h,y){return _O(f,h,Pt(y,2))}o(xne,"sortedIndexBy");function bne(f,h){var y=f==null?0:f.length;if(y){var I=nN(f,h);if(I<y&&wu(f[I],h))return I}return-1}o(bne,"sortedIndexOf");function wne(f,h){return nN(f,h,!0)}o(wne,"sortedLastIndex");function Cne(f,h,y){return _O(f,h,Pt(y,2),!0)}o(Cne,"sortedLastIndexBy");function Ene(f,h){var y=f==null?0:f.length;if(y){var I=nN(f,h,!0)-1;if(wu(f[I],h))return I}return-1}o(Ene,"sortedLastIndexOf");function Ane(f){return f&&f.length?Pj(f):[]}o(Ane,"sortedUniq");function Nne(f,h){return f&&f.length?Pj(f,Pt(h,2)):[]}o(Nne,"sortedUniqBy");function Ine(f){var h=f==null?0:f.length;return h?Oo(f,1,h):[]}o(Ine,"tail");function Tne(f,h,y){return f&&f.length?(h=y||h===r?1:or(h),Oo(f,0,h<0?0:h)):[]}o(Tne,"take");function Rne(f,h,y){var I=f==null?0:f.length;return I?(h=y||h===r?1:or(h),h=I-h,Oo(f,h<0?0:h,I)):[]}o(Rne,"takeRight");function Dne(f,h){return f&&f.length?iN(f,Pt(h,3),!1,!0):[]}o(Dne,"takeRightWhile");function _ne(f,h){return f&&f.length?iN(f,Pt(h,3)):[]}o(_ne,"takeWhile");var One=mr(function(f){return bp(ds(f,1,mi,!0))}),Pne=mr(function(f){var h=Po(f);return mi(h)&&(h=r),bp(ds(f,1,mi,!0),Pt(h,2))}),Bne=mr(function(f){var h=Po(f);return h=typeof h=="function"?h:r,bp(ds(f,1,mi,!0),r,h)});function Fne(f){return f&&f.length?bp(f):[]}o(Fne,"uniq");function Lne(f,h){return f&&f.length?bp(f,Pt(h,2)):[]}o(Lne,"uniqBy");function kne(f,h){return h=typeof h=="function"?h:r,f&&f.length?bp(f,r,h):[]}o(kne,"uniqWith");function WO(f){if(!(f&&f.length))return[];var h=0;return f=mp(f,function(y){if(mi(y))return h=Pi(y.length,h),!0}),pO(h,function(y){return Bn(f,cO(y))})}o(WO,"unzip");function S5(f,h){if(!(f&&f.length))return[];var y=WO(f);return h==null?y:Bn(y,function(I){return ro(h,r,I)})}o(S5,"unzipWith");var Vne=mr(function(f,h){return mi(f)?dx(f,h):[]}),jne=mr(function(f){return PO(mp(f,mi))}),Une=mr(function(f){var h=Po(f);return mi(h)&&(h=r),PO(mp(f,mi),Pt(h,2))}),Mne=mr(function(f){var h=Po(f);return h=typeof h=="function"?h:r,PO(mp(f,mi),r,h)}),qne=mr(WO);function Hne(f,h){return kj(f||[],h||[],hx)}o(Hne,"zipObject");function zne(f,h){return kj(f||[],h||[],vx)}o(zne,"zipObjectDeep");var Kne=mr(function(f){var h=f.length,y=h>1?f[h-1]:r;return y=typeof y=="function"?(f.pop(),y):r,S5(f,y)});function x5(f){var h=U(f);return h.__chain__=!0,h}o(x5,"chain");function $ne(f,h){return h(f),f}o($ne,"tap");function hN(f,h){return h(f)}o(hN,"thru");var Gne=Vl(function(f){var h=f.length,y=h?f[0]:0,I=this.__wrapped__,B=o(function(q){return xO(q,f)},"interceptor");return h>1||this.__actions__.length||!(I instanceof Er)||!jl(y)?this.thru(B):(I=I.slice(y,+y+(h?1:0)),I.__actions__.push({func:hN,args:[B],thisArg:r}),new Do(I,this.__chain__).thru(function(q){return h&&!q.length&&q.push(r),q}))});function Xne(){return x5(this)}o(Xne,"wrapperChain");function Wne(){return new Do(this.value(),this.__chain__)}o(Wne,"wrapperCommit");function Jne(){this.__values__===r&&(this.__values__=B5(this.value()));var f=this.__index__>=this.__values__.length,h=f?r:this.__values__[this.__index__++];return{done:f,value:h}}o(Jne,"wrapperNext");function Qne(){return this}o(Qne,"wrapperToIterator");function Yne(f){for(var h,y=this;y instanceof YA;){var I=h5(y);I.__index__=0,I.__values__=r,h?B.__wrapped__=I:h=I;var B=I;y=y.__wrapped__}return B.__wrapped__=f,h}o(Yne,"wrapperPlant");function Zne(){var f=this.__wrapped__;if(f instanceof Er){var h=f;return this.__actions__.length&&(h=new Er(this)),h=h.reverse(),h.__actions__.push({func:hN,args:[XO],thisArg:r}),new Do(h,this.__chain__)}return this.thru(XO)}o(Zne,"wrapperReverse");function eie(){return Lj(this.__wrapped__,this.__actions__)}o(eie,"wrapperValue");var tie=sN(function(f,h,y){Yr.call(f,y)?++f[y]:Ll(f,y,1)});function rie(f,h,y){var I=tr(f)?W8:$te;return y&&ca(f,h,y)&&(h=r),I(f,Pt(h,3))}o(rie,"every");function nie(f,h){var y=tr(f)?mp:Sj;return y(f,Pt(h,3))}o(nie,"filter");var iie=Gj(d5),sie=Gj(m5);function aie(f,h){return ds(dN(f,h),1)}o(aie,"flatMap");function oie(f,h){return ds(dN(f,h),ce)}o(oie,"flatMapDeep");function uie(f,h,y){return y=y===r?1:or(y),ds(dN(f,h),y)}o(uie,"flatMapDepth");function b5(f,h){var y=tr(f)?To:xp;return y(f,Pt(h,3))}o(b5,"forEach");function w5(f,h){var y=tr(f)?Iee:yj;return y(f,Pt(h,3))}o(w5,"forEachRight");var cie=sN(function(f,h,y){Yr.call(f,y)?f[y].push(h):Ll(f,y,[h])});function lie(f,h,y,I){f=Aa(f)?f:Kg(f),y=y&&!I?or(y):0;var B=f.length;return y<0&&(y=Pi(B+y,0)),SN(f)?y<=B&&f.indexOf(h,y)>-1:!!B&&Bg(f,h,y)>-1}o(lie,"includes");var fie=mr(function(f,h,y){var I=-1,B=typeof h=="function",q=Aa(f)?Te(f.length):[];return xp(f,function(Q){q[++I]=B?ro(h,Q,y):mx(Q,h,y)}),q}),pie=sN(function(f,h,y){Ll(f,y,h)});function dN(f,h){var y=tr(f)?Bn:Aj;return y(f,Pt(h,3))}o(dN,"map");function hie(f,h,y,I){return f==null?[]:(tr(h)||(h=h==null?[]:[h]),y=I?r:y,tr(y)||(y=y==null?[]:[y]),Rj(f,h,y))}o(hie,"orderBy");var die=sN(function(f,h,y){f[y?0:1].push(h)},function(){return[[],[]]});function mie(f,h,y){var I=tr(f)?oO:Z8,B=arguments.length<3;return I(f,Pt(h,4),y,B,xp)}o(mie,"reduce");function gie(f,h,y){var I=tr(f)?Tee:Z8,B=arguments.length<3;return I(f,Pt(h,4),y,B,yj)}o(gie,"reduceRight");function vie(f,h){var y=tr(f)?mp:Sj;return y(f,vN(Pt(h,3)))}o(vie,"reject");function yie(f){var h=tr(f)?dj:lre;return h(f)}o(yie,"sample");function Sie(f,h,y){(y?ca(f,h,y):h===r)?h=1:h=or(h);var I=tr(f)?Mte:fre;return I(f,h)}o(Sie,"sampleSize");function xie(f){var h=tr(f)?qte:hre;return h(f)}o(xie,"shuffle");function bie(f){if(f==null)return 0;if(Aa(f))return SN(f)?Lg(f):f.length;var h=Us(f);return h==Pe||h==Pn?f.size:NO(f).length}o(bie,"size");function wie(f,h,y){var I=tr(f)?uO:dre;return y&&ca(f,h,y)&&(h=r),I(f,Pt(h,3))}o(wie,"some");var Cie=mr(function(f,h){if(f==null)return[];var y=h.length;return y>1&&ca(f,h[0],h[1])?h=[]:y>2&&ca(h[0],h[1],h[2])&&(h=[h[0]]),Rj(f,ds(h,1),[])}),mN=nte||function(){return Hi.Date.now()};function Eie(f,h){if(typeof h!="function")throw new Ro(i);return f=or(f),function(){if(--f<1)return h.apply(this,arguments)}}o(Eie,"after");function C5(f,h,y){return h=y?r:h,h=f&&h==null?f.length:h,kl(f,A,r,r,r,r,h)}o(C5,"ary");function E5(f,h){var y;if(typeof h!="function")throw new Ro(i);return f=or(f),function(){return--f>0&&(y=h.apply(this,arguments)),f<=1&&(h=r),y}}o(E5,"before");var JO=mr(function(f,h,y){var I=v;if(y.length){var B=vp(y,Hg(JO));I|=w}return kl(f,I,h,y,B)}),A5=mr(function(f,h,y){var I=v|b;if(y.length){var B=vp(y,Hg(A5));I|=w}return kl(h,I,f,y,B)});function N5(f,h,y){h=y?r:h;var I=kl(f,E,r,r,r,r,r,h);return I.placeholder=N5.placeholder,I}o(N5,"curry");function I5(f,h,y){h=y?r:h;var I=kl(f,N,r,r,r,r,r,h);return I.placeholder=I5.placeholder,I}o(I5,"curryRight");function T5(f,h,y){var I,B,q,Q,te,ge,Be=0,Ve=!1,Ke=!1,ct=!0;if(typeof f!="function")throw new Ro(i);h=Bo(h)||0,Xn(y)&&(Ve=!!y.leading,Ke="maxWait"in y,q=Ke?Pi(Bo(y.maxWait)||0,h):q,ct="trailing"in y?!!y.trailing:ct);function Ct(gi){var Cu=I,ql=B;return I=B=r,Be=gi,Q=f.apply(ql,Cu),Q}o(Ct,"invokeFunc");function kt(gi){return Be=gi,te=xx(yr,h),Ve?Ct(gi):Q}o(kt,"leadingEdge");function fr(gi){var Cu=gi-ge,ql=gi-Be,G5=h-Cu;return Ke?js(G5,q-ql):G5}o(fr,"remainingWait");function Vt(gi){var Cu=gi-ge,ql=gi-Be;return ge===r||Cu>=h||Cu<0||Ke&&ql>=q}o(Vt,"shouldInvoke");function yr(){var gi=mN();if(Vt(gi))return Rr(gi);te=xx(yr,fr(gi))}o(yr,"timerExpired");function Rr(gi){return te=r,ct&&I?Ct(gi):(I=B=r,Q)}o(Rr,"trailingEdge");function ao(){te!==r&&Vj(te),Be=0,I=ge=B=te=r}o(ao,"cancel");function la(){return te===r?Q:Rr(mN())}o(la,"flush");function oo(){var gi=mN(),Cu=Vt(gi);if(I=arguments,B=this,ge=gi,Cu){if(te===r)return kt(ge);if(Ke)return Vj(te),te=xx(yr,h),Ct(ge)}return te===r&&(te=xx(yr,h)),Q}return o(oo,"debounced"),oo.cancel=ao,oo.flush=la,oo}o(T5,"debounce");var Aie=mr(function(f,h){return vj(f,1,h)}),Nie=mr(function(f,h,y){return vj(f,Bo(h)||0,y)});function Iie(f){return kl(f,M)}o(Iie,"flip");function gN(f,h){if(typeof f!="function"||h!=null&&typeof h!="function")throw new Ro(i);var y=o(function(){var I=arguments,B=h?h.apply(this,I):I[0],q=y.cache;if(q.has(B))return q.get(B);var Q=f.apply(this,I);return y.cache=q.set(B,Q)||q,Q},"memoized");return y.cache=new(gN.Cache||Fl),y}o(gN,"memoize"),gN.Cache=Fl;function vN(f){if(typeof f!="function")throw new Ro(i);return function(){var h=arguments;switch(h.length){case 0:return!f.call(this);case 1:return!f.call(this,h[0]);case 2:return!f.call(this,h[0],h[1]);case 3:return!f.call(this,h[0],h[1],h[2])}return!f.apply(this,h)}}o(vN,"negate");function Tie(f){return E5(2,f)}o(Tie,"once");var Rie=mre(function(f,h){h=h.length==1&&tr(h[0])?Bn(h[0],no(Pt())):Bn(ds(h,1),no(Pt()));var y=h.length;return mr(function(I){for(var B=-1,q=js(I.length,y);++B<q;)I[B]=h[B].call(this,I[B]);return ro(f,this,I)})}),QO=mr(function(f,h){var y=vp(h,Hg(QO));return kl(f,w,r,h,y)}),R5=mr(function(f,h){var y=vp(h,Hg(R5));return kl(f,C,r,h,y)}),Die=Vl(function(f,h){return kl(f,R,r,r,r,h)});function _ie(f,h){if(typeof f!="function")throw new Ro(i);return h=h===r?h:or(h),mr(f,h)}o(_ie,"rest");function Oie(f,h){if(typeof f!="function")throw new Ro(i);return h=h==null?0:Pi(or(h),0),mr(function(y){var I=y[h],B=Cp(y,0,h);return I&&gp(B,I),ro(f,this,B)})}o(Oie,"spread");function Pie(f,h,y){var I=!0,B=!0;if(typeof f!="function")throw new Ro(i);return Xn(y)&&(I="leading"in y?!!y.leading:I,B="trailing"in y?!!y.trailing:B),T5(f,h,{leading:I,maxWait:h,trailing:B})}o(Pie,"throttle");function Bie(f){return C5(f,1)}o(Bie,"unary");function Fie(f,h){return QO(FO(h),f)}o(Fie,"wrap");function Lie(){if(!arguments.length)return[];var f=arguments[0];return tr(f)?f:[f]}o(Lie,"castArray");function kie(f){return _o(f,m)}o(kie,"clone");function Vie(f,h){return h=typeof h=="function"?h:r,_o(f,m,h)}o(Vie,"cloneWith");function jie(f){return _o(f,l|m)}o(jie,"cloneDeep");function Uie(f,h){return h=typeof h=="function"?h:r,_o(f,l|m,h)}o(Uie,"cloneDeepWith");function Mie(f,h){return h==null||gj(f,h,zi(h))}o(Mie,"conformsTo");function wu(f,h){return f===h||f!==f&&h!==h}o(wu,"eq");var qie=cN(CO),Hie=cN(function(f,h){return f>=h}),Xd=wj((function(){return arguments})())?wj:function(f){return ii(f)&&Yr.call(f,"callee")&&!uj.call(f,"callee")},tr=Te.isArray,zie=H8?no(H8):Yte;function Aa(f){return f!=null&&yN(f.length)&&!Ul(f)}o(Aa,"isArrayLike");function mi(f){return ii(f)&&Aa(f)}o(mi,"isArrayLikeObject");function Kie(f){return f===!0||f===!1||ii(f)&&ua(f)==F}o(Kie,"isBoolean");var Ep=ste||uP,$ie=z8?no(z8):Zte;function Gie(f){return ii(f)&&f.nodeType===1&&!bx(f)}o(Gie,"isElement");function Xie(f){if(f==null)return!0;if(Aa(f)&&(tr(f)||typeof f=="string"||typeof f.splice=="function"||Ep(f)||zg(f)||Xd(f)))return!f.length;var h=Us(f);if(h==Pe||h==Pn)return!f.size;if(Sx(f))return!NO(f).length;for(var y in f)if(Yr.call(f,y))return!1;return!0}o(Xie,"isEmpty");function Wie(f,h){return gx(f,h)}o(Wie,"isEqual");function Jie(f,h,y){y=typeof y=="function"?y:r;var I=y?y(f,h):r;return I===r?gx(f,h,r,y):!!I}o(Jie,"isEqualWith");function YO(f){if(!ii(f))return!1;var h=ua(f);return h==J||h==oe||typeof f.message=="string"&&typeof f.name=="string"&&!bx(f)}o(YO,"isError");function Qie(f){return typeof f=="number"&&lj(f)}o(Qie,"isFinite");function Ul(f){if(!Xn(f))return!1;var h=ua(f);return h==Ge||h==Ue||h==it||h==eo}o(Ul,"isFunction");function D5(f){return typeof f=="number"&&f==or(f)}o(D5,"isInteger");function yN(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=ee}o(yN,"isLength");function Xn(f){var h=typeof f;return f!=null&&(h=="object"||h=="function")}o(Xn,"isObject");function ii(f){return f!=null&&typeof f=="object"}o(ii,"isObjectLike");var _5=K8?no(K8):tre;function Yie(f,h){return f===h||AO(f,h,qO(h))}o(Yie,"isMatch");function Zie(f,h,y){return y=typeof y=="function"?y:r,AO(f,h,qO(h),y)}o(Zie,"isMatchWith");function ese(f){return O5(f)&&f!=+f}o(ese,"isNaN");function tse(f){if(Vre(f))throw new Qt(n);return Cj(f)}o(tse,"isNative");function rse(f){return f===null}o(rse,"isNull");function nse(f){return f==null}o(nse,"isNil");function O5(f){return typeof f=="number"||ii(f)&&ua(f)==bt}o(O5,"isNumber");function bx(f){if(!ii(f)||ua(f)!=Je)return!1;var h=KA(f);if(h===null)return!0;var y=Yr.call(h,"constructor")&&h.constructor;return typeof y=="function"&&y instanceof y&&MA.call(y)==Zee}o(bx,"isPlainObject");var ZO=$8?no($8):rre;function ise(f){return D5(f)&&f>=-ee&&f<=ee}o(ise,"isSafeInteger");var P5=G8?no(G8):nre;function SN(f){return typeof f=="string"||!tr(f)&&ii(f)&&ua(f)==Ei}o(SN,"isString");function so(f){return typeof f=="symbol"||ii(f)&&ua(f)==ks}o(so,"isSymbol");var zg=X8?no(X8):ire;function sse(f){return f===r}o(sse,"isUndefined");function ase(f){return ii(f)&&Us(f)==aa}o(ase,"isWeakMap");function ose(f){return ii(f)&&ua(f)==Et}o(ose,"isWeakSet");var use=cN(IO),cse=cN(function(f,h){return f<=h});function B5(f){if(!f)return[];if(Aa(f))return SN(f)?xu(f):Ea(f);if(ux&&f[ux])return Mee(f[ux]());var h=Us(f),y=h==Pe?dO:h==Pn?VA:Kg;return y(f)}o(B5,"toArray");function Ml(f){if(!f)return f===0?f:0;if(f=Bo(f),f===ce||f===-ce){var h=f<0?-1:1;return h*pe}return f===f?f:0}o(Ml,"toFinite");function or(f){var h=Ml(f),y=h%1;return h===h?y?h-y:h:0}o(or,"toInteger");function F5(f){return f?zd(or(f),0,Ye):0}o(F5,"toLength");function Bo(f){if(typeof f=="number")return f;if(so(f))return Ce;if(Xn(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=Xn(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=ej(f);var y=zZ.test(f);return y||$Z.test(f)?Eee(f.slice(2),y?2:8):Y_.test(f)?Ce:+f}o(Bo,"toNumber");function L5(f){return xc(f,Na(f))}o(L5,"toPlainObject");function lse(f){return f?zd(or(f),-ee,ee):f===0?f:0}o(lse,"toSafeInteger");function Xr(f){return f==null?"":io(f)}o(Xr,"toString");var fse=Mg(function(f,h){if(Sx(h)||Aa(h)){xc(h,zi(h),f);return}for(var y in h)Yr.call(h,y)&&hx(f,y,h[y])}),k5=Mg(function(f,h){xc(h,Na(h),f)}),xN=Mg(function(f,h,y,I){xc(h,Na(h),f,I)}),pse=Mg(function(f,h,y,I){xc(h,zi(h),f,I)}),hse=Vl(xO);function dse(f,h){var y=Ug(f);return h==null?y:mj(y,h)}o(dse,"create");var mse=mr(function(f,h){f=cn(f);var y=-1,I=h.length,B=I>2?h[2]:r;for(B&&ca(h[0],h[1],B)&&(I=1);++y<I;)for(var q=h[y],Q=Na(q),te=-1,ge=Q.length;++te<ge;){var Be=Q[te],Ve=f[Be];(Ve===r||wu(Ve,kg[Be])&&!Yr.call(f,Be))&&(f[Be]=q[Be])}return f}),gse=mr(function(f){return f.push(r,e5),ro(V5,r,f)});function vse(f,h){return J8(f,Pt(h,3),Sc)}o(vse,"findKey");function yse(f,h){return J8(f,Pt(h,3),wO)}o(yse,"findLastKey");function Sse(f,h){return f==null?f:bO(f,Pt(h,3),Na)}o(Sse,"forIn");function xse(f,h){return f==null?f:xj(f,Pt(h,3),Na)}o(xse,"forInRight");function bse(f,h){return f&&Sc(f,Pt(h,3))}o(bse,"forOwn");function wse(f,h){return f&&wO(f,Pt(h,3))}o(wse,"forOwnRight");function Cse(f){return f==null?[]:tN(f,zi(f))}o(Cse,"functions");function Ese(f){return f==null?[]:tN(f,Na(f))}o(Ese,"functionsIn");function eP(f,h,y){var I=f==null?r:Kd(f,h);return I===r?y:I}o(eP,"get");function Ase(f,h){return f!=null&&n5(f,h,Xte)}o(Ase,"has");function tP(f,h){return f!=null&&n5(f,h,Wte)}o(tP,"hasIn");var Nse=Wj(function(f,h,y){h!=null&&typeof h.toString!="function"&&(h=qA.call(h)),f[h]=y},nP(Ia)),Ise=Wj(function(f,h,y){h!=null&&typeof h.toString!="function"&&(h=qA.call(h)),Yr.call(f,h)?f[h].push(y):f[h]=[y]},Pt),Tse=mr(mx);function zi(f){return Aa(f)?hj(f):NO(f)}o(zi,"keys");function Na(f){return Aa(f)?hj(f,!0):sre(f)}o(Na,"keysIn");function Rse(f,h){var y={};return h=Pt(h,3),Sc(f,function(I,B,q){Ll(y,h(I,B,q),I)}),y}o(Rse,"mapKeys");function Dse(f,h){var y={};return h=Pt(h,3),Sc(f,function(I,B,q){Ll(y,B,h(I,B,q))}),y}o(Dse,"mapValues");var _se=Mg(function(f,h,y){rN(f,h,y)}),V5=Mg(function(f,h,y,I){rN(f,h,y,I)}),Ose=Vl(function(f,h){var y={};if(f==null)return y;var I=!1;h=Bn(h,function(q){return q=wp(q,f),I||(I=q.length>1),q}),xc(f,UO(f),y),I&&(y=_o(y,l|p|m,Nre));for(var B=h.length;B--;)OO(y,h[B]);return y});function Pse(f,h){return j5(f,vN(Pt(h)))}o(Pse,"omitBy");var Bse=Vl(function(f,h){return f==null?{}:ore(f,h)});function j5(f,h){if(f==null)return{};var y=Bn(UO(f),function(I){return[I]});return h=Pt(h),Dj(f,y,function(I,B){return h(I,B[0])})}o(j5,"pickBy");function Fse(f,h,y){h=wp(h,f);var I=-1,B=h.length;for(B||(B=1,f=r);++I<B;){var q=f==null?r:f[bc(h[I])];q===r&&(I=B,q=y),f=Ul(q)?q.call(f):q}return f}o(Fse,"result");function Lse(f,h,y){return f==null?f:vx(f,h,y)}o(Lse,"set");function kse(f,h,y,I){return I=typeof I=="function"?I:r,f==null?f:vx(f,h,y,I)}o(kse,"setWith");var U5=Yj(zi),M5=Yj(Na);function Vse(f,h,y){var I=tr(f),B=I||Ep(f)||zg(f);if(h=Pt(h,4),y==null){var q=f&&f.constructor;B?y=I?new q:[]:Xn(f)?y=Ul(q)?Ug(KA(f)):{}:y={}}return(B?To:Sc)(f,function(Q,te,ge){return h(y,Q,te,ge)}),y}o(Vse,"transform");function jse(f,h){return f==null?!0:OO(f,h)}o(jse,"unset");function Use(f,h,y){return f==null?f:Fj(f,h,FO(y))}o(Use,"update");function Mse(f,h,y,I){return I=typeof I=="function"?I:r,f==null?f:Fj(f,h,FO(y),I)}o(Mse,"updateWith");function Kg(f){return f==null?[]:hO(f,zi(f))}o(Kg,"values");function qse(f){return f==null?[]:hO(f,Na(f))}o(qse,"valuesIn");function Hse(f,h,y){return y===r&&(y=h,h=r),y!==r&&(y=Bo(y),y=y===y?y:0),h!==r&&(h=Bo(h),h=h===h?h:0),zd(Bo(f),h,y)}o(Hse,"clamp");function zse(f,h,y){return h=Ml(h),y===r?(y=h,h=0):y=Ml(y),f=Bo(f),Jte(f,h,y)}o(zse,"inRange");function Kse(f,h,y){if(y&&typeof y!="boolean"&&ca(f,h,y)&&(h=y=r),y===r&&(typeof h=="boolean"?(y=h,h=r):typeof f=="boolean"&&(y=f,f=r)),f===r&&h===r?(f=0,h=1):(f=Ml(f),h===r?(h=f,f=0):h=Ml(h)),f>h){var I=f;f=h,h=I}if(y||f%1||h%1){var B=fj();return js(f+B*(h-f+Cee("1e-"+((B+"").length-1))),h)}return RO(f,h)}o(Kse,"random");var $se=qg(function(f,h,y){return h=h.toLowerCase(),f+(y?q5(h):h)});function q5(f){return rP(Xr(f).toLowerCase())}o(q5,"capitalize");function H5(f){return f=Xr(f),f&&f.replace(XZ,Lee).replace(hee,"")}o(H5,"deburr");function Gse(f,h,y){f=Xr(f),h=io(h);var I=f.length;y=y===r?I:zd(or(y),0,I);var B=y;return y-=h.length,y>=0&&f.slice(y,B)==h}o(Gse,"endsWith");function Xse(f){return f=Xr(f),f&&dt.test(f)?f.replace(de,kee):f}o(Xse,"escape");function Wse(f){return f=Xr(f),f&&yc.test(f)?f.replace(Lr,"\\$&"):f}o(Wse,"escapeRegExp");var Jse=qg(function(f,h,y){return f+(y?"-":"")+h.toLowerCase()}),Qse=qg(function(f,h,y){return f+(y?" ":"")+h.toLowerCase()}),Yse=$j("toLowerCase");function Zse(f,h,y){f=Xr(f),h=or(h);var I=h?Lg(f):0;if(!h||I>=h)return f;var B=(h-I)/2;return uN(WA(B),y)+f+uN(XA(B),y)}o(Zse,"pad");function eae(f,h,y){f=Xr(f),h=or(h);var I=h?Lg(f):0;return h&&I<h?f+uN(h-I,y):f}o(eae,"padEnd");function tae(f,h,y){f=Xr(f),h=or(h);var I=h?Lg(f):0;return h&&I<h?uN(h-I,y)+f:f}o(tae,"padStart");function rae(f,h,y){return y||h==null?h=0:h&&(h=+h),cte(Xr(f).replace(ax,""),h||0)}o(rae,"parseInt1");function nae(f,h,y){return(y?ca(f,h,y):h===r)?h=1:h=or(h),DO(Xr(f),h)}o(nae,"repeat");function iae(){var f=arguments,h=Xr(f[0]);return f.length<3?h:h.replace(f[1],f[2])}o(iae,"replace");var sae=qg(function(f,h,y){return f+(y?"_":"")+h.toLowerCase()});function aae(f,h,y){return y&&typeof y!="number"&&ca(f,h,y)&&(h=y=r),y=y===r?Ye:y>>>0,y?(f=Xr(f),f&&(typeof h=="string"||h!=null&&!ZO(h))&&(h=io(h),!h&&Fg(f))?Cp(xu(f),0,y):f.split(h,y)):[]}o(aae,"split");var oae=qg(function(f,h,y){return f+(y?" ":"")+rP(h)});function uae(f,h,y){return f=Xr(f),y=y==null?0:zd(or(y),0,f.length),h=io(h),f.slice(y,y+h.length)==h}o(uae,"startsWith");function cae(f,h,y){var I=U.templateSettings;y&&ca(f,h,y)&&(h=r),f=Xr(f),h=xN({},h,I,Zj);var B=xN({},h.imports,I.imports,Zj),q=zi(B),Q=hO(B,q),te,ge,Be=0,Ve=h.interpolate||PA,Ke="__p += '",ct=mO((h.escape||PA).source+"|"+Ve.source+"|"+(Ve===ft?Vs:PA).source+"|"+(h.evaluate||PA).source+"|$","g"),Ct="//# sourceURL="+(Yr.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yee+"]")+`
29
- `;f.replace(ct,function(Vt,yr,Rr,ao,la,oo){return Rr||(Rr=ao),Ke+=f.slice(Be,oo).replace(WZ,Vee),yr&&(te=!0,Ke+=`' +
28
+ `)}o(Bre,"insertWrapDetails");function Fre(f){return tr(f)||Xd(f)||!!(cj&&f&&f[cj])}o(Fre,"isFlattenable");function jl(f,h){var y=typeof f;return h=h??ee,!!h&&(y=="number"||y!="symbol"&&GZ.test(f))&&f>-1&&f%1==0&&f<h}o(jl,"isIndex");function ca(f,h,y){if(!Xn(y))return!1;var I=typeof h;return(I=="number"?Aa(y)&&jl(h,y.length):I=="string"&&h in y)?wu(y[h],f):!1}o(ca,"isIterateeCall");function zO(f,h){if(tr(f))return!1;var y=typeof f;return y=="number"||y=="symbol"||y=="boolean"||f==null||so(f)?!0:hs.test(f)||!Xt.test(f)||h!=null&&f in cn(h)}o(zO,"isKey");function Lre(f){var h=typeof f;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?f!=="__proto__":f===null}o(Lre,"isKeyable");function KO(f){var h=lN(f),y=U[h];if(typeof y!="function"||!(h in Er.prototype))return!1;if(f===y)return!0;var I=MO(y);return!!I&&f===I[0]}o(KO,"isLaziable");function kre(f){return!!sj&&sj in f}o(kre,"isMasked");var Vre=UA?Ul:uP;function Sx(f){var h=f&&f.constructor,y=typeof h=="function"&&h.prototype||kg;return f===y}o(Sx,"isPrototype");function s5(f){return f===f&&!Xn(f)}o(s5,"isStrictComparable");function a5(f,h){return function(y){return y==null?!1:y[f]===h&&(h!==r||f in cn(y))}}o(a5,"matchesStrictComparable");function jre(f){var h=gN(f,function(I){return y.size===u&&y.clear(),I}),y=h.cache;return h}o(jre,"memoizeCapped");function Ure(f,h){var y=f[1],I=h[1],B=y|I,q=B<(v|b|A),Q=I==A&&y==E||I==A&&y==R&&f[7].length<=h[8]||I==(A|R)&&h[7].length<=h[8]&&y==E;if(!(q||Q))return f;I&v&&(f[2]=h[2],B|=y&v?0:x);var te=h[3];if(te){var ge=f[3];f[3]=ge?qj(ge,te,h[4]):te,f[4]=ge?vp(f[3],c):h[4]}return te=h[5],te&&(ge=f[5],f[5]=ge?Hj(ge,te,h[6]):te,f[6]=ge?vp(f[5],c):h[6]),te=h[7],te&&(f[7]=te),I&A&&(f[8]=f[8]==null?h[8]:js(f[8],h[8])),f[9]==null&&(f[9]=h[9]),f[0]=h[0],f[1]=B,f}o(Ure,"mergeData");function Mre(f){var h=[];if(f!=null)for(var y in cn(f))h.push(y);return h}o(Mre,"nativeKeysIn");function qre(f){return qA.call(f)}o(qre,"objectToString");function o5(f,h,y){return h=Pi(h===r?f.length-1:h,0),function(){for(var I=arguments,B=-1,q=Pi(I.length-h,0),Q=Te(q);++B<q;)Q[B]=I[h+B];B=-1;for(var te=Te(h+1);++B<h;)te[B]=I[B];return te[h]=y(Q),ro(f,this,te)}}o(o5,"overRest");function u5(f,h){return h.length<2?f:Kd(f,Oo(h,0,-1))}o(u5,"parent");function Hre(f,h){for(var y=f.length,I=js(h.length,y),B=Ea(f);I--;){var q=h[I];f[I]=jl(q,y)?B[q]:r}return f}o(Hre,"reorder");function $O(f,h){if(!(h==="constructor"&&typeof f[h]=="function")&&h!="__proto__")return f[h]}o($O,"safeGet");var c5=f5(Oj),xx=ite||function(f,h){return Hi.setTimeout(f,h)},GO=f5(pre);function l5(f,h,y){var I=h+"";return GO(f,Bre(I,zre(_re(I),y)))}o(l5,"setWrapToString");function f5(f){var h=0,y=0;return function(){var I=ute(),B=K-(I-y);if(y=I,B>0){if(++h>=z)return arguments[0]}else h=0;return f.apply(r,arguments)}}o(f5,"shortOut");function pN(f,h){var y=-1,I=f.length,B=I-1;for(h=h===r?I:h;++y<h;){var q=RO(y,B),Q=f[q];f[q]=f[y],f[y]=Q}return f.length=h,f}o(pN,"shuffleSelf");var p5=jre(function(f){var h=[];return f.charCodeAt(0)===46&&h.push(""),f.replace(No,function(y,I,B,q){h.push(B?q.replace(Cr,"$1"):I||y)}),h});function bc(f){if(typeof f=="string"||so(f))return f;var h=f+"";return h=="0"&&1/f==-ce?"-0":h}o(bc,"toKey");function Gd(f){if(f!=null){try{return MA.call(f)}catch{}try{return f+""}catch{}}return""}o(Gd,"toSource");function zre(f,h){return To(De,function(y){var I="_."+y[0];h&y[1]&&!LA(f,I)&&f.push(I)}),f.sort()}o(zre,"updateWrapDetails");function h5(f){if(f instanceof Er)return f.clone();var h=new Do(f.__wrapped__,f.__chain__);return h.__actions__=Ea(f.__actions__),h.__index__=f.__index__,h.__values__=f.__values__,h}o(h5,"wrapperClone");function Kre(f,h,y){(y?ca(f,h,y):h===r)?h=1:h=Pi(or(h),0);var I=f==null?0:f.length;if(!I||h<1)return[];for(var B=0,q=0,Q=Te(XA(I/h));B<I;)Q[q++]=Oo(f,B,B+=h);return Q}o(Kre,"chunk");function $re(f){for(var h=-1,y=f==null?0:f.length,I=0,B=[];++h<y;){var q=f[h];q&&(B[I++]=q)}return B}o($re,"compact");function Gre(){var f=arguments.length;if(!f)return[];for(var h=Te(f-1),y=arguments[0],I=f;I--;)h[I-1]=arguments[I];return gp(tr(y)?Ea(y):[y],ds(h,1))}o(Gre,"concat");var Xre=mr(function(f,h){return mi(f)?dx(f,ds(h,1,mi,!0)):[]}),Wre=mr(function(f,h){var y=Po(h);return mi(y)&&(y=r),mi(f)?dx(f,ds(h,1,mi,!0),Pt(y,2)):[]}),Jre=mr(function(f,h){var y=Po(h);return mi(y)&&(y=r),mi(f)?dx(f,ds(h,1,mi,!0),r,y):[]});function Qre(f,h,y){var I=f==null?0:f.length;return I?(h=y||h===r?1:or(h),Oo(f,h<0?0:h,I)):[]}o(Qre,"drop");function Yre(f,h,y){var I=f==null?0:f.length;return I?(h=y||h===r?1:or(h),h=I-h,Oo(f,0,h<0?0:h)):[]}o(Yre,"dropRight");function Zre(f,h){return f&&f.length?iN(f,Pt(h,3),!0,!0):[]}o(Zre,"dropRightWhile");function ene(f,h){return f&&f.length?iN(f,Pt(h,3),!0):[]}o(ene,"dropWhile");function tne(f,h,y,I){var B=f==null?0:f.length;return B?(y&&typeof y!="number"&&ca(f,h,y)&&(y=0,I=B),Gte(f,h,y,I)):[]}o(tne,"fill");function d5(f,h,y){var I=f==null?0:f.length;if(!I)return-1;var B=y==null?0:or(y);return B<0&&(B=Pi(I+B,0)),kA(f,Pt(h,3),B)}o(d5,"findIndex");function m5(f,h,y){var I=f==null?0:f.length;if(!I)return-1;var B=I-1;return y!==r&&(B=or(y),B=y<0?Pi(I+B,0):js(B,I-1)),kA(f,Pt(h,3),B,!0)}o(m5,"findLastIndex");function g5(f){var h=f==null?0:f.length;return h?ds(f,1):[]}o(g5,"flatten");function rne(f){var h=f==null?0:f.length;return h?ds(f,ce):[]}o(rne,"flattenDeep");function nne(f,h){var y=f==null?0:f.length;return y?(h=h===r?1:or(h),ds(f,h)):[]}o(nne,"flattenDepth");function ine(f){for(var h=-1,y=f==null?0:f.length,I={};++h<y;){var B=f[h];I[B[0]]=B[1]}return I}o(ine,"fromPairs");function v5(f){return f&&f.length?f[0]:r}o(v5,"head");function sne(f,h,y){var I=f==null?0:f.length;if(!I)return-1;var B=y==null?0:or(y);return B<0&&(B=Pi(I+B,0)),Bg(f,h,B)}o(sne,"indexOf");function ane(f){var h=f==null?0:f.length;return h?Oo(f,0,-1):[]}o(ane,"initial");var one=mr(function(f){var h=Bn(f,BO);return h.length&&h[0]===f[0]?EO(h):[]}),une=mr(function(f){var h=Po(f),y=Bn(f,BO);return h===Po(y)?h=r:y.pop(),y.length&&y[0]===f[0]?EO(y,Pt(h,2)):[]}),cne=mr(function(f){var h=Po(f),y=Bn(f,BO);return h=typeof h=="function"?h:r,h&&y.pop(),y.length&&y[0]===f[0]?EO(y,r,h):[]});function lne(f,h){return f==null?"":ate.call(f,h)}o(lne,"join");function Po(f){var h=f==null?0:f.length;return h?f[h-1]:r}o(Po,"last");function fne(f,h,y){var I=f==null?0:f.length;if(!I)return-1;var B=I;return y!==r&&(B=or(y),B=B<0?Pi(I+B,0):js(B,I-1)),h===h?zee(f,h,B):kA(f,Q8,B,!0)}o(fne,"lastIndexOf");function pne(f,h){return f&&f.length?Tj(f,or(h)):r}o(pne,"nth");var hne=mr(y5);function y5(f,h){return f&&f.length&&h&&h.length?TO(f,h):f}o(y5,"pullAll");function dne(f,h,y){return f&&f.length&&h&&h.length?TO(f,h,Pt(y,2)):f}o(dne,"pullAllBy");function mne(f,h,y){return f&&f.length&&h&&h.length?TO(f,h,r,y):f}o(mne,"pullAllWith");var gne=Vl(function(f,h){var y=f==null?0:f.length,I=xO(f,h);return _j(f,Bn(h,function(B){return jl(B,y)?+B:B}).sort(Mj)),I});function vne(f,h){var y=[];if(!(f&&f.length))return y;var I=-1,B=[],q=f.length;for(h=Pt(h,3);++I<q;){var Q=f[I];h(Q,I,f)&&(y.push(Q),B.push(I))}return _j(f,B),y}o(vne,"remove");function XO(f){return f==null?f:lte.call(f)}o(XO,"reverse");function yne(f,h,y){var I=f==null?0:f.length;return I?(y&&typeof y!="number"&&ca(f,h,y)?(h=0,y=I):(h=h==null?0:or(h),y=y===r?I:or(y)),Oo(f,h,y)):[]}o(yne,"slice");function Sne(f,h){return nN(f,h)}o(Sne,"sortedIndex");function xne(f,h,y){return _O(f,h,Pt(y,2))}o(xne,"sortedIndexBy");function bne(f,h){var y=f==null?0:f.length;if(y){var I=nN(f,h);if(I<y&&wu(f[I],h))return I}return-1}o(bne,"sortedIndexOf");function wne(f,h){return nN(f,h,!0)}o(wne,"sortedLastIndex");function Cne(f,h,y){return _O(f,h,Pt(y,2),!0)}o(Cne,"sortedLastIndexBy");function Ene(f,h){var y=f==null?0:f.length;if(y){var I=nN(f,h,!0)-1;if(wu(f[I],h))return I}return-1}o(Ene,"sortedLastIndexOf");function Ane(f){return f&&f.length?Pj(f):[]}o(Ane,"sortedUniq");function Nne(f,h){return f&&f.length?Pj(f,Pt(h,2)):[]}o(Nne,"sortedUniqBy");function Ine(f){var h=f==null?0:f.length;return h?Oo(f,1,h):[]}o(Ine,"tail");function Tne(f,h,y){return f&&f.length?(h=y||h===r?1:or(h),Oo(f,0,h<0?0:h)):[]}o(Tne,"take");function Rne(f,h,y){var I=f==null?0:f.length;return I?(h=y||h===r?1:or(h),h=I-h,Oo(f,h<0?0:h,I)):[]}o(Rne,"takeRight");function Dne(f,h){return f&&f.length?iN(f,Pt(h,3),!1,!0):[]}o(Dne,"takeRightWhile");function _ne(f,h){return f&&f.length?iN(f,Pt(h,3)):[]}o(_ne,"takeWhile");var One=mr(function(f){return bp(ds(f,1,mi,!0))}),Pne=mr(function(f){var h=Po(f);return mi(h)&&(h=r),bp(ds(f,1,mi,!0),Pt(h,2))}),Bne=mr(function(f){var h=Po(f);return h=typeof h=="function"?h:r,bp(ds(f,1,mi,!0),r,h)});function Fne(f){return f&&f.length?bp(f):[]}o(Fne,"uniq");function Lne(f,h){return f&&f.length?bp(f,Pt(h,2)):[]}o(Lne,"uniqBy");function kne(f,h){return h=typeof h=="function"?h:r,f&&f.length?bp(f,r,h):[]}o(kne,"uniqWith");function WO(f){if(!(f&&f.length))return[];var h=0;return f=mp(f,function(y){if(mi(y))return h=Pi(y.length,h),!0}),pO(h,function(y){return Bn(f,cO(y))})}o(WO,"unzip");function S5(f,h){if(!(f&&f.length))return[];var y=WO(f);return h==null?y:Bn(y,function(I){return ro(h,r,I)})}o(S5,"unzipWith");var Vne=mr(function(f,h){return mi(f)?dx(f,h):[]}),jne=mr(function(f){return PO(mp(f,mi))}),Une=mr(function(f){var h=Po(f);return mi(h)&&(h=r),PO(mp(f,mi),Pt(h,2))}),Mne=mr(function(f){var h=Po(f);return h=typeof h=="function"?h:r,PO(mp(f,mi),r,h)}),qne=mr(WO);function Hne(f,h){return kj(f||[],h||[],hx)}o(Hne,"zipObject");function zne(f,h){return kj(f||[],h||[],vx)}o(zne,"zipObjectDeep");var Kne=mr(function(f){var h=f.length,y=h>1?f[h-1]:r;return y=typeof y=="function"?(f.pop(),y):r,S5(f,y)});function x5(f){var h=U(f);return h.__chain__=!0,h}o(x5,"chain");function $ne(f,h){return h(f),f}o($ne,"tap");function hN(f,h){return h(f)}o(hN,"thru");var Gne=Vl(function(f){var h=f.length,y=h?f[0]:0,I=this.__wrapped__,B=o(function(q){return xO(q,f)},"interceptor");return h>1||this.__actions__.length||!(I instanceof Er)||!jl(y)?this.thru(B):(I=I.slice(y,+y+(h?1:0)),I.__actions__.push({func:hN,args:[B],thisArg:r}),new Do(I,this.__chain__).thru(function(q){return h&&!q.length&&q.push(r),q}))});function Xne(){return x5(this)}o(Xne,"wrapperChain");function Wne(){return new Do(this.value(),this.__chain__)}o(Wne,"wrapperCommit");function Jne(){this.__values__===r&&(this.__values__=B5(this.value()));var f=this.__index__>=this.__values__.length,h=f?r:this.__values__[this.__index__++];return{done:f,value:h}}o(Jne,"wrapperNext");function Qne(){return this}o(Qne,"wrapperToIterator");function Yne(f){for(var h,y=this;y instanceof YA;){var I=h5(y);I.__index__=0,I.__values__=r,h?B.__wrapped__=I:h=I;var B=I;y=y.__wrapped__}return B.__wrapped__=f,h}o(Yne,"wrapperPlant");function Zne(){var f=this.__wrapped__;if(f instanceof Er){var h=f;return this.__actions__.length&&(h=new Er(this)),h=h.reverse(),h.__actions__.push({func:hN,args:[XO],thisArg:r}),new Do(h,this.__chain__)}return this.thru(XO)}o(Zne,"wrapperReverse");function eie(){return Lj(this.__wrapped__,this.__actions__)}o(eie,"wrapperValue");var tie=sN(function(f,h,y){Yr.call(f,y)?++f[y]:Ll(f,y,1)});function rie(f,h,y){var I=tr(f)?W8:$te;return y&&ca(f,h,y)&&(h=r),I(f,Pt(h,3))}o(rie,"every");function nie(f,h){var y=tr(f)?mp:Sj;return y(f,Pt(h,3))}o(nie,"filter");var iie=Gj(d5),sie=Gj(m5);function aie(f,h){return ds(dN(f,h),1)}o(aie,"flatMap");function oie(f,h){return ds(dN(f,h),ce)}o(oie,"flatMapDeep");function uie(f,h,y){return y=y===r?1:or(y),ds(dN(f,h),y)}o(uie,"flatMapDepth");function b5(f,h){var y=tr(f)?To:xp;return y(f,Pt(h,3))}o(b5,"forEach");function w5(f,h){var y=tr(f)?Iee:yj;return y(f,Pt(h,3))}o(w5,"forEachRight");var cie=sN(function(f,h,y){Yr.call(f,y)?f[y].push(h):Ll(f,y,[h])});function lie(f,h,y,I){f=Aa(f)?f:Kg(f),y=y&&!I?or(y):0;var B=f.length;return y<0&&(y=Pi(B+y,0)),SN(f)?y<=B&&f.indexOf(h,y)>-1:!!B&&Bg(f,h,y)>-1}o(lie,"includes");var fie=mr(function(f,h,y){var I=-1,B=typeof h=="function",q=Aa(f)?Te(f.length):[];return xp(f,function(Q){q[++I]=B?ro(h,Q,y):mx(Q,h,y)}),q}),pie=sN(function(f,h,y){Ll(f,y,h)});function dN(f,h){var y=tr(f)?Bn:Aj;return y(f,Pt(h,3))}o(dN,"map");function hie(f,h,y,I){return f==null?[]:(tr(h)||(h=h==null?[]:[h]),y=I?r:y,tr(y)||(y=y==null?[]:[y]),Rj(f,h,y))}o(hie,"orderBy");var die=sN(function(f,h,y){f[y?0:1].push(h)},function(){return[[],[]]});function mie(f,h,y){var I=tr(f)?oO:Z8,B=arguments.length<3;return I(f,Pt(h,4),y,B,xp)}o(mie,"reduce");function gie(f,h,y){var I=tr(f)?Tee:Z8,B=arguments.length<3;return I(f,Pt(h,4),y,B,yj)}o(gie,"reduceRight");function vie(f,h){var y=tr(f)?mp:Sj;return y(f,vN(Pt(h,3)))}o(vie,"reject");function yie(f){var h=tr(f)?dj:lre;return h(f)}o(yie,"sample");function Sie(f,h,y){(y?ca(f,h,y):h===r)?h=1:h=or(h);var I=tr(f)?Mte:fre;return I(f,h)}o(Sie,"sampleSize");function xie(f){var h=tr(f)?qte:hre;return h(f)}o(xie,"shuffle");function bie(f){if(f==null)return 0;if(Aa(f))return SN(f)?Lg(f):f.length;var h=Us(f);return h==Pe||h==Pn?f.size:NO(f).length}o(bie,"size");function wie(f,h,y){var I=tr(f)?uO:dre;return y&&ca(f,h,y)&&(h=r),I(f,Pt(h,3))}o(wie,"some");var Cie=mr(function(f,h){if(f==null)return[];var y=h.length;return y>1&&ca(f,h[0],h[1])?h=[]:y>2&&ca(h[0],h[1],h[2])&&(h=[h[0]]),Rj(f,ds(h,1),[])}),mN=nte||function(){return Hi.Date.now()};function Eie(f,h){if(typeof h!="function")throw new Ro(i);return f=or(f),function(){if(--f<1)return h.apply(this,arguments)}}o(Eie,"after");function C5(f,h,y){return h=y?r:h,h=f&&h==null?f.length:h,kl(f,A,r,r,r,r,h)}o(C5,"ary");function E5(f,h){var y;if(typeof h!="function")throw new Ro(i);return f=or(f),function(){return--f>0&&(y=h.apply(this,arguments)),f<=1&&(h=r),y}}o(E5,"before");var JO=mr(function(f,h,y){var I=v;if(y.length){var B=vp(y,Hg(JO));I|=w}return kl(f,I,h,y,B)}),A5=mr(function(f,h,y){var I=v|b;if(y.length){var B=vp(y,Hg(A5));I|=w}return kl(h,I,f,y,B)});function N5(f,h,y){h=y?r:h;var I=kl(f,E,r,r,r,r,r,h);return I.placeholder=N5.placeholder,I}o(N5,"curry");function I5(f,h,y){h=y?r:h;var I=kl(f,N,r,r,r,r,r,h);return I.placeholder=I5.placeholder,I}o(I5,"curryRight");function T5(f,h,y){var I,B,q,Q,te,ge,Be=0,Ve=!1,Ke=!1,ut=!0;if(typeof f!="function")throw new Ro(i);h=Bo(h)||0,Xn(y)&&(Ve=!!y.leading,Ke="maxWait"in y,q=Ke?Pi(Bo(y.maxWait)||0,h):q,ut="trailing"in y?!!y.trailing:ut);function Ct(gi){var Cu=I,ql=B;return I=B=r,Be=gi,Q=f.apply(ql,Cu),Q}o(Ct,"invokeFunc");function kt(gi){return Be=gi,te=xx(yr,h),Ve?Ct(gi):Q}o(kt,"leadingEdge");function fr(gi){var Cu=gi-ge,ql=gi-Be,G5=h-Cu;return Ke?js(G5,q-ql):G5}o(fr,"remainingWait");function Vt(gi){var Cu=gi-ge,ql=gi-Be;return ge===r||Cu>=h||Cu<0||Ke&&ql>=q}o(Vt,"shouldInvoke");function yr(){var gi=mN();if(Vt(gi))return Rr(gi);te=xx(yr,fr(gi))}o(yr,"timerExpired");function Rr(gi){return te=r,ut&&I?Ct(gi):(I=B=r,Q)}o(Rr,"trailingEdge");function ao(){te!==r&&Vj(te),Be=0,I=ge=B=te=r}o(ao,"cancel");function la(){return te===r?Q:Rr(mN())}o(la,"flush");function oo(){var gi=mN(),Cu=Vt(gi);if(I=arguments,B=this,ge=gi,Cu){if(te===r)return kt(ge);if(Ke)return Vj(te),te=xx(yr,h),Ct(ge)}return te===r&&(te=xx(yr,h)),Q}return o(oo,"debounced"),oo.cancel=ao,oo.flush=la,oo}o(T5,"debounce");var Aie=mr(function(f,h){return vj(f,1,h)}),Nie=mr(function(f,h,y){return vj(f,Bo(h)||0,y)});function Iie(f){return kl(f,M)}o(Iie,"flip");function gN(f,h){if(typeof f!="function"||h!=null&&typeof h!="function")throw new Ro(i);var y=o(function(){var I=arguments,B=h?h.apply(this,I):I[0],q=y.cache;if(q.has(B))return q.get(B);var Q=f.apply(this,I);return y.cache=q.set(B,Q)||q,Q},"memoized");return y.cache=new(gN.Cache||Fl),y}o(gN,"memoize"),gN.Cache=Fl;function vN(f){if(typeof f!="function")throw new Ro(i);return function(){var h=arguments;switch(h.length){case 0:return!f.call(this);case 1:return!f.call(this,h[0]);case 2:return!f.call(this,h[0],h[1]);case 3:return!f.call(this,h[0],h[1],h[2])}return!f.apply(this,h)}}o(vN,"negate");function Tie(f){return E5(2,f)}o(Tie,"once");var Rie=mre(function(f,h){h=h.length==1&&tr(h[0])?Bn(h[0],no(Pt())):Bn(ds(h,1),no(Pt()));var y=h.length;return mr(function(I){for(var B=-1,q=js(I.length,y);++B<q;)I[B]=h[B].call(this,I[B]);return ro(f,this,I)})}),QO=mr(function(f,h){var y=vp(h,Hg(QO));return kl(f,w,r,h,y)}),R5=mr(function(f,h){var y=vp(h,Hg(R5));return kl(f,C,r,h,y)}),Die=Vl(function(f,h){return kl(f,R,r,r,r,h)});function _ie(f,h){if(typeof f!="function")throw new Ro(i);return h=h===r?h:or(h),mr(f,h)}o(_ie,"rest");function Oie(f,h){if(typeof f!="function")throw new Ro(i);return h=h==null?0:Pi(or(h),0),mr(function(y){var I=y[h],B=Cp(y,0,h);return I&&gp(B,I),ro(f,this,B)})}o(Oie,"spread");function Pie(f,h,y){var I=!0,B=!0;if(typeof f!="function")throw new Ro(i);return Xn(y)&&(I="leading"in y?!!y.leading:I,B="trailing"in y?!!y.trailing:B),T5(f,h,{leading:I,maxWait:h,trailing:B})}o(Pie,"throttle");function Bie(f){return C5(f,1)}o(Bie,"unary");function Fie(f,h){return QO(FO(h),f)}o(Fie,"wrap");function Lie(){if(!arguments.length)return[];var f=arguments[0];return tr(f)?f:[f]}o(Lie,"castArray");function kie(f){return _o(f,m)}o(kie,"clone");function Vie(f,h){return h=typeof h=="function"?h:r,_o(f,m,h)}o(Vie,"cloneWith");function jie(f){return _o(f,l|m)}o(jie,"cloneDeep");function Uie(f,h){return h=typeof h=="function"?h:r,_o(f,l|m,h)}o(Uie,"cloneDeepWith");function Mie(f,h){return h==null||gj(f,h,zi(h))}o(Mie,"conformsTo");function wu(f,h){return f===h||f!==f&&h!==h}o(wu,"eq");var qie=cN(CO),Hie=cN(function(f,h){return f>=h}),Xd=wj((function(){return arguments})())?wj:function(f){return ii(f)&&Yr.call(f,"callee")&&!uj.call(f,"callee")},tr=Te.isArray,zie=H8?no(H8):Yte;function Aa(f){return f!=null&&yN(f.length)&&!Ul(f)}o(Aa,"isArrayLike");function mi(f){return ii(f)&&Aa(f)}o(mi,"isArrayLikeObject");function Kie(f){return f===!0||f===!1||ii(f)&&ua(f)==F}o(Kie,"isBoolean");var Ep=ste||uP,$ie=z8?no(z8):Zte;function Gie(f){return ii(f)&&f.nodeType===1&&!bx(f)}o(Gie,"isElement");function Xie(f){if(f==null)return!0;if(Aa(f)&&(tr(f)||typeof f=="string"||typeof f.splice=="function"||Ep(f)||zg(f)||Xd(f)))return!f.length;var h=Us(f);if(h==Pe||h==Pn)return!f.size;if(Sx(f))return!NO(f).length;for(var y in f)if(Yr.call(f,y))return!1;return!0}o(Xie,"isEmpty");function Wie(f,h){return gx(f,h)}o(Wie,"isEqual");function Jie(f,h,y){y=typeof y=="function"?y:r;var I=y?y(f,h):r;return I===r?gx(f,h,r,y):!!I}o(Jie,"isEqualWith");function YO(f){if(!ii(f))return!1;var h=ua(f);return h==J||h==oe||typeof f.message=="string"&&typeof f.name=="string"&&!bx(f)}o(YO,"isError");function Qie(f){return typeof f=="number"&&lj(f)}o(Qie,"isFinite");function Ul(f){if(!Xn(f))return!1;var h=ua(f);return h==Ge||h==Ue||h==it||h==eo}o(Ul,"isFunction");function D5(f){return typeof f=="number"&&f==or(f)}o(D5,"isInteger");function yN(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=ee}o(yN,"isLength");function Xn(f){var h=typeof f;return f!=null&&(h=="object"||h=="function")}o(Xn,"isObject");function ii(f){return f!=null&&typeof f=="object"}o(ii,"isObjectLike");var _5=K8?no(K8):tre;function Yie(f,h){return f===h||AO(f,h,qO(h))}o(Yie,"isMatch");function Zie(f,h,y){return y=typeof y=="function"?y:r,AO(f,h,qO(h),y)}o(Zie,"isMatchWith");function ese(f){return O5(f)&&f!=+f}o(ese,"isNaN");function tse(f){if(Vre(f))throw new Qt(n);return Cj(f)}o(tse,"isNative");function rse(f){return f===null}o(rse,"isNull");function nse(f){return f==null}o(nse,"isNil");function O5(f){return typeof f=="number"||ii(f)&&ua(f)==bt}o(O5,"isNumber");function bx(f){if(!ii(f)||ua(f)!=Je)return!1;var h=KA(f);if(h===null)return!0;var y=Yr.call(h,"constructor")&&h.constructor;return typeof y=="function"&&y instanceof y&&MA.call(y)==Zee}o(bx,"isPlainObject");var ZO=$8?no($8):rre;function ise(f){return D5(f)&&f>=-ee&&f<=ee}o(ise,"isSafeInteger");var P5=G8?no(G8):nre;function SN(f){return typeof f=="string"||!tr(f)&&ii(f)&&ua(f)==Ei}o(SN,"isString");function so(f){return typeof f=="symbol"||ii(f)&&ua(f)==ks}o(so,"isSymbol");var zg=X8?no(X8):ire;function sse(f){return f===r}o(sse,"isUndefined");function ase(f){return ii(f)&&Us(f)==aa}o(ase,"isWeakMap");function ose(f){return ii(f)&&ua(f)==Et}o(ose,"isWeakSet");var use=cN(IO),cse=cN(function(f,h){return f<=h});function B5(f){if(!f)return[];if(Aa(f))return SN(f)?xu(f):Ea(f);if(ux&&f[ux])return Mee(f[ux]());var h=Us(f),y=h==Pe?dO:h==Pn?VA:Kg;return y(f)}o(B5,"toArray");function Ml(f){if(!f)return f===0?f:0;if(f=Bo(f),f===ce||f===-ce){var h=f<0?-1:1;return h*pe}return f===f?f:0}o(Ml,"toFinite");function or(f){var h=Ml(f),y=h%1;return h===h?y?h-y:h:0}o(or,"toInteger");function F5(f){return f?zd(or(f),0,Ye):0}o(F5,"toLength");function Bo(f){if(typeof f=="number")return f;if(so(f))return Ce;if(Xn(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=Xn(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=ej(f);var y=zZ.test(f);return y||$Z.test(f)?Eee(f.slice(2),y?2:8):Y_.test(f)?Ce:+f}o(Bo,"toNumber");function L5(f){return xc(f,Na(f))}o(L5,"toPlainObject");function lse(f){return f?zd(or(f),-ee,ee):f===0?f:0}o(lse,"toSafeInteger");function Xr(f){return f==null?"":io(f)}o(Xr,"toString");var fse=Mg(function(f,h){if(Sx(h)||Aa(h)){xc(h,zi(h),f);return}for(var y in h)Yr.call(h,y)&&hx(f,y,h[y])}),k5=Mg(function(f,h){xc(h,Na(h),f)}),xN=Mg(function(f,h,y,I){xc(h,Na(h),f,I)}),pse=Mg(function(f,h,y,I){xc(h,zi(h),f,I)}),hse=Vl(xO);function dse(f,h){var y=Ug(f);return h==null?y:mj(y,h)}o(dse,"create");var mse=mr(function(f,h){f=cn(f);var y=-1,I=h.length,B=I>2?h[2]:r;for(B&&ca(h[0],h[1],B)&&(I=1);++y<I;)for(var q=h[y],Q=Na(q),te=-1,ge=Q.length;++te<ge;){var Be=Q[te],Ve=f[Be];(Ve===r||wu(Ve,kg[Be])&&!Yr.call(f,Be))&&(f[Be]=q[Be])}return f}),gse=mr(function(f){return f.push(r,e5),ro(V5,r,f)});function vse(f,h){return J8(f,Pt(h,3),Sc)}o(vse,"findKey");function yse(f,h){return J8(f,Pt(h,3),wO)}o(yse,"findLastKey");function Sse(f,h){return f==null?f:bO(f,Pt(h,3),Na)}o(Sse,"forIn");function xse(f,h){return f==null?f:xj(f,Pt(h,3),Na)}o(xse,"forInRight");function bse(f,h){return f&&Sc(f,Pt(h,3))}o(bse,"forOwn");function wse(f,h){return f&&wO(f,Pt(h,3))}o(wse,"forOwnRight");function Cse(f){return f==null?[]:tN(f,zi(f))}o(Cse,"functions");function Ese(f){return f==null?[]:tN(f,Na(f))}o(Ese,"functionsIn");function eP(f,h,y){var I=f==null?r:Kd(f,h);return I===r?y:I}o(eP,"get");function Ase(f,h){return f!=null&&n5(f,h,Xte)}o(Ase,"has");function tP(f,h){return f!=null&&n5(f,h,Wte)}o(tP,"hasIn");var Nse=Wj(function(f,h,y){h!=null&&typeof h.toString!="function"&&(h=qA.call(h)),f[h]=y},nP(Ia)),Ise=Wj(function(f,h,y){h!=null&&typeof h.toString!="function"&&(h=qA.call(h)),Yr.call(f,h)?f[h].push(y):f[h]=[y]},Pt),Tse=mr(mx);function zi(f){return Aa(f)?hj(f):NO(f)}o(zi,"keys");function Na(f){return Aa(f)?hj(f,!0):sre(f)}o(Na,"keysIn");function Rse(f,h){var y={};return h=Pt(h,3),Sc(f,function(I,B,q){Ll(y,h(I,B,q),I)}),y}o(Rse,"mapKeys");function Dse(f,h){var y={};return h=Pt(h,3),Sc(f,function(I,B,q){Ll(y,B,h(I,B,q))}),y}o(Dse,"mapValues");var _se=Mg(function(f,h,y){rN(f,h,y)}),V5=Mg(function(f,h,y,I){rN(f,h,y,I)}),Ose=Vl(function(f,h){var y={};if(f==null)return y;var I=!1;h=Bn(h,function(q){return q=wp(q,f),I||(I=q.length>1),q}),xc(f,UO(f),y),I&&(y=_o(y,l|p|m,Nre));for(var B=h.length;B--;)OO(y,h[B]);return y});function Pse(f,h){return j5(f,vN(Pt(h)))}o(Pse,"omitBy");var Bse=Vl(function(f,h){return f==null?{}:ore(f,h)});function j5(f,h){if(f==null)return{};var y=Bn(UO(f),function(I){return[I]});return h=Pt(h),Dj(f,y,function(I,B){return h(I,B[0])})}o(j5,"pickBy");function Fse(f,h,y){h=wp(h,f);var I=-1,B=h.length;for(B||(B=1,f=r);++I<B;){var q=f==null?r:f[bc(h[I])];q===r&&(I=B,q=y),f=Ul(q)?q.call(f):q}return f}o(Fse,"result");function Lse(f,h,y){return f==null?f:vx(f,h,y)}o(Lse,"set");function kse(f,h,y,I){return I=typeof I=="function"?I:r,f==null?f:vx(f,h,y,I)}o(kse,"setWith");var U5=Yj(zi),M5=Yj(Na);function Vse(f,h,y){var I=tr(f),B=I||Ep(f)||zg(f);if(h=Pt(h,4),y==null){var q=f&&f.constructor;B?y=I?new q:[]:Xn(f)?y=Ul(q)?Ug(KA(f)):{}:y={}}return(B?To:Sc)(f,function(Q,te,ge){return h(y,Q,te,ge)}),y}o(Vse,"transform");function jse(f,h){return f==null?!0:OO(f,h)}o(jse,"unset");function Use(f,h,y){return f==null?f:Fj(f,h,FO(y))}o(Use,"update");function Mse(f,h,y,I){return I=typeof I=="function"?I:r,f==null?f:Fj(f,h,FO(y),I)}o(Mse,"updateWith");function Kg(f){return f==null?[]:hO(f,zi(f))}o(Kg,"values");function qse(f){return f==null?[]:hO(f,Na(f))}o(qse,"valuesIn");function Hse(f,h,y){return y===r&&(y=h,h=r),y!==r&&(y=Bo(y),y=y===y?y:0),h!==r&&(h=Bo(h),h=h===h?h:0),zd(Bo(f),h,y)}o(Hse,"clamp");function zse(f,h,y){return h=Ml(h),y===r?(y=h,h=0):y=Ml(y),f=Bo(f),Jte(f,h,y)}o(zse,"inRange");function Kse(f,h,y){if(y&&typeof y!="boolean"&&ca(f,h,y)&&(h=y=r),y===r&&(typeof h=="boolean"?(y=h,h=r):typeof f=="boolean"&&(y=f,f=r)),f===r&&h===r?(f=0,h=1):(f=Ml(f),h===r?(h=f,f=0):h=Ml(h)),f>h){var I=f;f=h,h=I}if(y||f%1||h%1){var B=fj();return js(f+B*(h-f+Cee("1e-"+((B+"").length-1))),h)}return RO(f,h)}o(Kse,"random");var $se=qg(function(f,h,y){return h=h.toLowerCase(),f+(y?q5(h):h)});function q5(f){return rP(Xr(f).toLowerCase())}o(q5,"capitalize");function H5(f){return f=Xr(f),f&&f.replace(XZ,Lee).replace(hee,"")}o(H5,"deburr");function Gse(f,h,y){f=Xr(f),h=io(h);var I=f.length;y=y===r?I:zd(or(y),0,I);var B=y;return y-=h.length,y>=0&&f.slice(y,B)==h}o(Gse,"endsWith");function Xse(f){return f=Xr(f),f&&dt.test(f)?f.replace(de,kee):f}o(Xse,"escape");function Wse(f){return f=Xr(f),f&&yc.test(f)?f.replace(Lr,"\\$&"):f}o(Wse,"escapeRegExp");var Jse=qg(function(f,h,y){return f+(y?"-":"")+h.toLowerCase()}),Qse=qg(function(f,h,y){return f+(y?" ":"")+h.toLowerCase()}),Yse=$j("toLowerCase");function Zse(f,h,y){f=Xr(f),h=or(h);var I=h?Lg(f):0;if(!h||I>=h)return f;var B=(h-I)/2;return uN(WA(B),y)+f+uN(XA(B),y)}o(Zse,"pad");function eae(f,h,y){f=Xr(f),h=or(h);var I=h?Lg(f):0;return h&&I<h?f+uN(h-I,y):f}o(eae,"padEnd");function tae(f,h,y){f=Xr(f),h=or(h);var I=h?Lg(f):0;return h&&I<h?uN(h-I,y)+f:f}o(tae,"padStart");function rae(f,h,y){return y||h==null?h=0:h&&(h=+h),cte(Xr(f).replace(ax,""),h||0)}o(rae,"parseInt1");function nae(f,h,y){return(y?ca(f,h,y):h===r)?h=1:h=or(h),DO(Xr(f),h)}o(nae,"repeat");function iae(){var f=arguments,h=Xr(f[0]);return f.length<3?h:h.replace(f[1],f[2])}o(iae,"replace");var sae=qg(function(f,h,y){return f+(y?"_":"")+h.toLowerCase()});function aae(f,h,y){return y&&typeof y!="number"&&ca(f,h,y)&&(h=y=r),y=y===r?Ye:y>>>0,y?(f=Xr(f),f&&(typeof h=="string"||h!=null&&!ZO(h))&&(h=io(h),!h&&Fg(f))?Cp(xu(f),0,y):f.split(h,y)):[]}o(aae,"split");var oae=qg(function(f,h,y){return f+(y?" ":"")+rP(h)});function uae(f,h,y){return f=Xr(f),y=y==null?0:zd(or(y),0,f.length),h=io(h),f.slice(y,y+h.length)==h}o(uae,"startsWith");function cae(f,h,y){var I=U.templateSettings;y&&ca(f,h,y)&&(h=r),f=Xr(f),h=xN({},h,I,Zj);var B=xN({},h.imports,I.imports,Zj),q=zi(B),Q=hO(B,q),te,ge,Be=0,Ve=h.interpolate||PA,Ke="__p += '",ut=mO((h.escape||PA).source+"|"+Ve.source+"|"+(Ve===ft?Vs:PA).source+"|"+(h.evaluate||PA).source+"|$","g"),Ct="//# sourceURL="+(Yr.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yee+"]")+`
29
+ `;f.replace(ut,function(Vt,yr,Rr,ao,la,oo){return Rr||(Rr=ao),Ke+=f.slice(Be,oo).replace(WZ,Vee),yr&&(te=!0,Ke+=`' +
30
30
  __e(`+yr+`) +
31
31
  '`),la&&(ge=!0,Ke+=`';
32
32
  `+la+`;
@@ -42,7 +42,7 @@ __p += '`),Rr&&(Ke+=`' +
42
42
  function print() { __p += __j.call(arguments, '') }
43
43
  `:`;
44
44
  `)+Ke+`return __p
45
- }`;var fr=K5(function(){return $r(q,Ct+"return "+Ke).apply(r,Q)});if(fr.source=Ke,YO(fr))throw fr;return fr}o(cae,"template");function lae(f){return Xr(f).toLowerCase()}o(lae,"toLower");function fae(f){return Xr(f).toUpperCase()}o(fae,"toUpper");function pae(f,h,y){if(f=Xr(f),f&&(y||h===r))return ej(f);if(!f||!(h=io(h)))return f;var I=xu(f),B=xu(h),q=tj(I,B),Q=rj(I,B)+1;return Cp(I,q,Q).join("")}o(pae,"trim");function hae(f,h,y){if(f=Xr(f),f&&(y||h===r))return f.slice(0,ij(f)+1);if(!f||!(h=io(h)))return f;var I=xu(f),B=rj(I,xu(h))+1;return Cp(I,0,B).join("")}o(hae,"trimEnd");function dae(f,h,y){if(f=Xr(f),f&&(y||h===r))return f.replace(ax,"");if(!f||!(h=io(h)))return f;var I=xu(f),B=tj(I,xu(h));return Cp(I,B).join("")}o(dae,"trimStart");function mae(f,h){var y=_,I=H;if(Xn(h)){var B="separator"in h?h.separator:B;y="length"in h?or(h.length):y,I="omission"in h?io(h.omission):I}f=Xr(f);var q=f.length;if(Fg(f)){var Q=xu(f);q=Q.length}if(y>=q)return f;var te=y-Lg(I);if(te<1)return I;var ge=Q?Cp(Q,0,te).join(""):f.slice(0,te);if(B===r)return ge+I;if(Q&&(te+=ge.length-te),ZO(B)){if(f.slice(te).search(B)){var Be,Ve=ge;for(B.global||(B=mO(B.source,Xr(Su.exec(B))+"g")),B.lastIndex=0;Be=B.exec(Ve);)var Ke=Be.index;ge=ge.slice(0,Ke===r?te:Ke)}}else if(f.indexOf(io(B),te)!=te){var ct=ge.lastIndexOf(B);ct>-1&&(ge=ge.slice(0,ct))}return ge+I}o(mae,"truncate");function gae(f){return f=Xr(f),f&&G.test(f)?f.replace(se,Kee):f}o(gae,"unescape");var vae=qg(function(f,h,y){return f+(y?" ":"")+h.toUpperCase()}),rP=$j("toUpperCase");function z5(f,h,y){return f=Xr(f),h=y?r:h,h===r?Uee(f)?Xee(f):_ee(f):f.match(h)||[]}o(z5,"words");var K5=mr(function(f,h){try{return ro(f,r,h)}catch(y){return YO(y)?y:new Qt(y)}}),yae=Vl(function(f,h){return To(h,function(y){y=bc(y),Ll(f,y,JO(f[y],f))}),f});function Sae(f){var h=f==null?0:f.length,y=Pt();return f=h?Bn(f,function(I){if(typeof I[1]!="function")throw new Ro(i);return[y(I[0]),I[1]]}):[],mr(function(I){for(var B=-1;++B<h;){var q=f[B];if(ro(q[0],this,I))return ro(q[1],this,I)}})}o(Sae,"cond");function xae(f){return Kte(_o(f,l))}o(xae,"conforms");function nP(f){return function(){return f}}o(nP,"constant");function bae(f,h){return f==null||f!==f?h:f}o(bae,"defaultTo");var wae=Xj(),Cae=Xj(!0);function Ia(f){return f}o(Ia,"identity");function iP(f){return Ej(typeof f=="function"?f:_o(f,l))}o(iP,"iteratee");function Eae(f){return Nj(_o(f,l))}o(Eae,"matches");function Aae(f,h){return Ij(f,_o(h,l))}o(Aae,"matchesProperty");var Nae=mr(function(f,h){return function(y){return mx(y,f,h)}}),Iae=mr(function(f,h){return function(y){return mx(f,y,h)}});function sP(f,h,y){var I=zi(h),B=tN(h,I);y==null&&!(Xn(h)&&(B.length||!I.length))&&(y=h,h=f,f=this,B=tN(h,zi(h)));var q=!(Xn(y)&&"chain"in y)||!!y.chain,Q=Ul(f);return To(B,function(te){var ge=h[te];f[te]=ge,Q&&(f.prototype[te]=function(){var Be=this.__chain__;if(q||Be){var Ve=f(this.__wrapped__),Ke=Ve.__actions__=Ea(this.__actions__);return Ke.push({func:ge,args:arguments,thisArg:f}),Ve.__chain__=Be,Ve}return ge.apply(f,gp([this.value()],arguments))})}),f}o(sP,"mixin");function Tae(){return Hi._===this&&(Hi._=ete),this}o(Tae,"noConflict");function aP(){}o(aP,"noop");function Rae(f){return f=or(f),mr(function(h){return Tj(h,f)})}o(Rae,"nthArg");var Dae=kO(Bn),_ae=kO(W8),Oae=kO(uO);function $5(f){return zO(f)?cO(bc(f)):ure(f)}o($5,"property");function Pae(f){return function(h){return f==null?r:Kd(f,h)}}o(Pae,"propertyOf");var Bae=Jj(),Fae=Jj(!0);function oP(){return[]}o(oP,"stubArray");function uP(){return!1}o(uP,"stubFalse");function Lae(){return{}}o(Lae,"stubObject");function kae(){return""}o(kae,"stubString");function Vae(){return!0}o(Vae,"stubTrue");function jae(f,h){if(f=or(f),f<1||f>ee)return[];var y=Ye,I=js(f,Ye);h=Pt(h),f-=Ye;for(var B=pO(I,h);++y<f;)h(y);return B}o(jae,"times");function Uae(f){return tr(f)?Bn(f,bc):so(f)?[f]:Ea(p5(Xr(f)))}o(Uae,"toPath");function Mae(f){var h=++Yee;return Xr(f)+h}o(Mae,"uniqueId");var qae=oN(function(f,h){return f+h},0),Hae=VO("ceil"),zae=oN(function(f,h){return f/h},1),Kae=VO("floor");function $ae(f){return f&&f.length?eN(f,Ia,CO):r}o($ae,"max");function Gae(f,h){return f&&f.length?eN(f,Pt(h,2),CO):r}o(Gae,"maxBy");function Xae(f){return Y8(f,Ia)}o(Xae,"mean");function Wae(f,h){return Y8(f,Pt(h,2))}o(Wae,"meanBy");function Jae(f){return f&&f.length?eN(f,Ia,IO):r}o(Jae,"min");function Qae(f,h){return f&&f.length?eN(f,Pt(h,2),IO):r}o(Qae,"minBy");var Yae=oN(function(f,h){return f*h},1),Zae=VO("round"),eoe=oN(function(f,h){return f-h},0);function toe(f){return f&&f.length?fO(f,Ia):0}o(toe,"sum");function roe(f,h){return f&&f.length?fO(f,Pt(h,2)):0}return o(roe,"sumBy"),U.after=Eie,U.ary=C5,U.assign=fse,U.assignIn=k5,U.assignInWith=xN,U.assignWith=pse,U.at=hse,U.before=E5,U.bind=JO,U.bindAll=yae,U.bindKey=A5,U.castArray=Lie,U.chain=x5,U.chunk=Kre,U.compact=$re,U.concat=Gre,U.cond=Sae,U.conforms=xae,U.constant=nP,U.countBy=tie,U.create=dse,U.curry=N5,U.curryRight=I5,U.debounce=T5,U.defaults=mse,U.defaultsDeep=gse,U.defer=Aie,U.delay=Nie,U.difference=Xre,U.differenceBy=Wre,U.differenceWith=Jre,U.drop=Qre,U.dropRight=Yre,U.dropRightWhile=Zre,U.dropWhile=ene,U.fill=tne,U.filter=nie,U.flatMap=aie,U.flatMapDeep=oie,U.flatMapDepth=uie,U.flatten=g5,U.flattenDeep=rne,U.flattenDepth=nne,U.flip=Iie,U.flow=wae,U.flowRight=Cae,U.fromPairs=ine,U.functions=Cse,U.functionsIn=Ese,U.groupBy=cie,U.initial=ane,U.intersection=one,U.intersectionBy=une,U.intersectionWith=cne,U.invert=Nse,U.invertBy=Ise,U.invokeMap=fie,U.iteratee=iP,U.keyBy=pie,U.keys=zi,U.keysIn=Na,U.map=dN,U.mapKeys=Rse,U.mapValues=Dse,U.matches=Eae,U.matchesProperty=Aae,U.memoize=gN,U.merge=_se,U.mergeWith=V5,U.method=Nae,U.methodOf=Iae,U.mixin=sP,U.negate=vN,U.nthArg=Rae,U.omit=Ose,U.omitBy=Pse,U.once=Tie,U.orderBy=hie,U.over=Dae,U.overArgs=Rie,U.overEvery=_ae,U.overSome=Oae,U.partial=QO,U.partialRight=R5,U.partition=die,U.pick=Bse,U.pickBy=j5,U.property=$5,U.propertyOf=Pae,U.pull=hne,U.pullAll=y5,U.pullAllBy=dne,U.pullAllWith=mne,U.pullAt=gne,U.range=Bae,U.rangeRight=Fae,U.rearg=Die,U.reject=vie,U.remove=vne,U.rest=_ie,U.reverse=XO,U.sampleSize=Sie,U.set=Lse,U.setWith=kse,U.shuffle=xie,U.slice=yne,U.sortBy=Cie,U.sortedUniq=Ane,U.sortedUniqBy=Nne,U.split=aae,U.spread=Oie,U.tail=Ine,U.take=Tne,U.takeRight=Rne,U.takeRightWhile=Dne,U.takeWhile=_ne,U.tap=$ne,U.throttle=Pie,U.thru=hN,U.toArray=B5,U.toPairs=U5,U.toPairsIn=M5,U.toPath=Uae,U.toPlainObject=L5,U.transform=Vse,U.unary=Bie,U.union=One,U.unionBy=Pne,U.unionWith=Bne,U.uniq=Fne,U.uniqBy=Lne,U.uniqWith=kne,U.unset=jse,U.unzip=WO,U.unzipWith=S5,U.update=Use,U.updateWith=Mse,U.values=Kg,U.valuesIn=qse,U.without=Vne,U.words=z5,U.wrap=Fie,U.xor=jne,U.xorBy=Une,U.xorWith=Mne,U.zip=qne,U.zipObject=Hne,U.zipObjectDeep=zne,U.zipWith=Kne,U.entries=U5,U.entriesIn=M5,U.extend=k5,U.extendWith=xN,sP(U,U),U.add=qae,U.attempt=K5,U.camelCase=$se,U.capitalize=q5,U.ceil=Hae,U.clamp=Hse,U.clone=kie,U.cloneDeep=jie,U.cloneDeepWith=Uie,U.cloneWith=Vie,U.conformsTo=Mie,U.deburr=H5,U.defaultTo=bae,U.divide=zae,U.endsWith=Gse,U.eq=wu,U.escape=Xse,U.escapeRegExp=Wse,U.every=rie,U.find=iie,U.findIndex=d5,U.findKey=vse,U.findLast=sie,U.findLastIndex=m5,U.findLastKey=yse,U.floor=Kae,U.forEach=b5,U.forEachRight=w5,U.forIn=Sse,U.forInRight=xse,U.forOwn=bse,U.forOwnRight=wse,U.get=eP,U.gt=qie,U.gte=Hie,U.has=Ase,U.hasIn=tP,U.head=v5,U.identity=Ia,U.includes=lie,U.indexOf=sne,U.inRange=zse,U.invoke=Tse,U.isArguments=Xd,U.isArray=tr,U.isArrayBuffer=zie,U.isArrayLike=Aa,U.isArrayLikeObject=mi,U.isBoolean=Kie,U.isBuffer=Ep,U.isDate=$ie,U.isElement=Gie,U.isEmpty=Xie,U.isEqual=Wie,U.isEqualWith=Jie,U.isError=YO,U.isFinite=Qie,U.isFunction=Ul,U.isInteger=D5,U.isLength=yN,U.isMap=_5,U.isMatch=Yie,U.isMatchWith=Zie,U.isNaN=ese,U.isNative=tse,U.isNil=nse,U.isNull=rse,U.isNumber=O5,U.isObject=Xn,U.isObjectLike=ii,U.isPlainObject=bx,U.isRegExp=ZO,U.isSafeInteger=ise,U.isSet=P5,U.isString=SN,U.isSymbol=so,U.isTypedArray=zg,U.isUndefined=sse,U.isWeakMap=ase,U.isWeakSet=ose,U.join=lne,U.kebabCase=Jse,U.last=Po,U.lastIndexOf=fne,U.lowerCase=Qse,U.lowerFirst=Yse,U.lt=use,U.lte=cse,U.max=$ae,U.maxBy=Gae,U.mean=Xae,U.meanBy=Wae,U.min=Jae,U.minBy=Qae,U.stubArray=oP,U.stubFalse=uP,U.stubObject=Lae,U.stubString=kae,U.stubTrue=Vae,U.multiply=Yae,U.nth=pne,U.noConflict=Tae,U.noop=aP,U.now=mN,U.pad=Zse,U.padEnd=eae,U.padStart=tae,U.parseInt=rae,U.random=Kse,U.reduce=mie,U.reduceRight=gie,U.repeat=nae,U.replace=iae,U.result=Fse,U.round=Zae,U.runInContext=he,U.sample=yie,U.size=bie,U.snakeCase=sae,U.some=wie,U.sortedIndex=Sne,U.sortedIndexBy=xne,U.sortedIndexOf=bne,U.sortedLastIndex=wne,U.sortedLastIndexBy=Cne,U.sortedLastIndexOf=Ene,U.startCase=oae,U.startsWith=uae,U.subtract=eoe,U.sum=toe,U.sumBy=roe,U.template=cae,U.times=jae,U.toFinite=Ml,U.toInteger=or,U.toLength=F5,U.toLower=lae,U.toNumber=Bo,U.toSafeInteger=lse,U.toString=Xr,U.toUpper=fae,U.trim=pae,U.trimEnd=hae,U.trimStart=dae,U.truncate=mae,U.unescape=gae,U.uniqueId=Mae,U.upperCase=vae,U.upperFirst=rP,U.each=b5,U.eachRight=w5,U.first=v5,sP(U,(function(){var f={};return Sc(U,function(h,y){Yr.call(U.prototype,y)||(f[y]=h)}),f})(),{chain:!1}),U.VERSION=e,To(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){U[f].placeholder=U}),To(["drop","take"],function(f,h){Er.prototype[f]=function(y){y=y===r?1:Pi(or(y),0);var I=this.__filtered__&&!h?new Er(this):this.clone();return I.__filtered__?I.__takeCount__=js(y,I.__takeCount__):I.__views__.push({size:js(y,Ye),type:f+(I.__dir__<0?"Right":"")}),I},Er.prototype[f+"Right"]=function(y){return this.reverse()[f](y).reverse()}}),To(["filter","map","takeWhile"],function(f,h){var y=h+1,I=y==X||y==fe;Er.prototype[f]=function(B){var q=this.clone();return q.__iteratees__.push({iteratee:Pt(B,3),type:y}),q.__filtered__=q.__filtered__||I,q}}),To(["head","last"],function(f,h){var y="take"+(h?"Right":"");Er.prototype[f]=function(){return this[y](1).value()[0]}}),To(["initial","tail"],function(f,h){var y="drop"+(h?"":"Right");Er.prototype[f]=function(){return this.__filtered__?new Er(this):this[y](1)}}),Er.prototype.compact=function(){return this.filter(Ia)},Er.prototype.find=function(f){return this.filter(f).head()},Er.prototype.findLast=function(f){return this.reverse().find(f)},Er.prototype.invokeMap=mr(function(f,h){return typeof f=="function"?new Er(this):this.map(function(y){return mx(y,f,h)})}),Er.prototype.reject=function(f){return this.filter(vN(Pt(f)))},Er.prototype.slice=function(f,h){f=or(f);var y=this;return y.__filtered__&&(f>0||h<0)?new Er(y):(f<0?y=y.takeRight(-f):f&&(y=y.drop(f)),h!==r&&(h=or(h),y=h<0?y.dropRight(-h):y.take(h-f)),y)},Er.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Er.prototype.toArray=function(){return this.take(Ye)},Sc(Er.prototype,function(f,h){var y=/^(?:filter|find|map|reject)|While$/.test(h),I=/^(?:head|last)$/.test(h),B=U[I?"take"+(h=="last"?"Right":""):h],q=I||/^find/.test(h);B&&(U.prototype[h]=function(){var Q=this.__wrapped__,te=I?[1]:arguments,ge=Q instanceof Er,Be=te[0],Ve=ge||tr(Q),Ke=o(function(yr){var Rr=B.apply(U,gp([yr],te));return I&&ct?Rr[0]:Rr},"interceptor");Ve&&y&&typeof Be=="function"&&Be.length!=1&&(ge=Ve=!1);var ct=this.__chain__,Ct=!!this.__actions__.length,kt=q&&!ct,fr=ge&&!Ct;if(!q&&Ve){Q=fr?Q:new Er(this);var Vt=f.apply(Q,te);return Vt.__actions__.push({func:hN,args:[Ke],thisArg:r}),new Do(Vt,ct)}return kt&&fr?f.apply(this,te):(Vt=this.thru(Ke),kt?I?Vt.value()[0]:Vt.value():Vt)})}),To(["pop","push","shift","sort","splice","unshift"],function(f){var h=jA[f],y=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",I=/^(?:pop|shift)$/.test(f);U.prototype[f]=function(){var B=arguments;if(I&&!this.__chain__){var q=this.value();return h.apply(tr(q)?q:[],B)}return this[y](function(Q){return h.apply(tr(Q)?Q:[],B)})}}),Sc(Er.prototype,function(f,h){var y=U[h];if(y){var I=y.name+"";Yr.call(jg,I)||(jg[I]=[]),jg[I].push({name:h,func:y})}}),jg[aN(r,b).name]=[{name:"wrapper",func:r}],Er.prototype.clone=gte,Er.prototype.reverse=vte,Er.prototype.value=yte,U.prototype.at=Gne,U.prototype.chain=Xne,U.prototype.commit=Wne,U.prototype.next=Jne,U.prototype.plant=Yne,U.prototype.reverse=Zne,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=eie,U.prototype.first=U.prototype.head,ux&&(U.prototype[ux]=Qne),U},"runInContext"),yp=Wee();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Hi._=yp,define(function(){return yp})):Ud?((Ud.exports=yp)._=yp,iO._=yp):Hi._=yp}).call(gv)});var r9=Z((ZRe,t9)=>{"use strict";var e9=require("stream").Stream,dpe=require("util");t9.exports=Tu;function Tu(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}o(Tu,"DelayedStream");dpe.inherits(Tu,e9);Tu.create=function(r,e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];t.source=r;var i=r.emit;return r.emit=function(){return t._handleEmit(arguments),i.apply(r,arguments)},r.on("error",function(){}),t.pauseStream&&r.pause(),t};Object.defineProperty(Tu.prototype,"readable",{configurable:!0,enumerable:!0,get:o(function(){return this.source.readable},"get")});Tu.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Tu.prototype.resume=function(){this._released||this.release(),this.source.resume()};Tu.prototype.pause=function(){this.source.pause()};Tu.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach((function(r){this.emit.apply(this,r)}).bind(this)),this._bufferedEvents=[]};Tu.prototype.pipe=function(){var r=e9.prototype.pipe.apply(this,arguments);return this.resume(),r};Tu.prototype._handleEmit=function(r){if(this._released){this.emit.apply(this,r);return}r[0]==="data"&&(this.dataSize+=r[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(r)};Tu.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(r))}}});var a9=Z((tDe,s9)=>{"use strict";var mpe=require("util"),i9=require("stream").Stream,n9=r9();s9.exports=oi;function oi(){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}o(oi,"CombinedStream");mpe.inherits(oi,i9);oi.create=function(r){var e=new this;r=r||{};for(var t in r)e[t]=r[t];return e};oi.isStreamLike=function(r){return typeof r!="function"&&typeof r!="string"&&typeof r!="boolean"&&typeof r!="number"&&!Buffer.isBuffer(r)};oi.prototype.append=function(r){var e=oi.isStreamLike(r);if(e){if(!(r instanceof n9)){var t=n9.create(r,{maxDataSize:1/0,pauseStream:this.pauseStreams});r.on("data",this._checkDataSize.bind(this)),r=t}this._handleErrors(r),this.pauseStreams&&r.pause()}return this._streams.push(r),this};oi.prototype.pipe=function(r,e){return i9.prototype.pipe.call(this,r,e),this.resume(),r};oi.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}};oi.prototype._realGetNext=function(){var r=this._streams.shift();if(typeof r>"u"){this.end();return}if(typeof r!="function"){this._pipeNext(r);return}var e=r;e((function(t){var n=oi.isStreamLike(t);n&&(t.on("data",this._checkDataSize.bind(this)),this._handleErrors(t)),this._pipeNext(t)}).bind(this))};oi.prototype._pipeNext=function(r){this._currentStream=r;var e=oi.isStreamLike(r);if(e){r.on("end",this._getNext.bind(this)),r.pipe(this,{end:!1});return}var t=r;this.write(t),this._getNext()};oi.prototype._handleErrors=function(r){var e=this;r.on("error",function(t){e._emitError(t)})};oi.prototype.write=function(r){this.emit("data",r)};oi.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};oi.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")};oi.prototype.end=function(){this._reset(),this.emit("end")};oi.prototype.destroy=function(){this._reset(),this.emit("close")};oi.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};oi.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(r))}};oi.prototype._updateDataSize=function(){this.dataSize=0;var r=this;this._streams.forEach(function(e){e.dataSize&&(r.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};oi.prototype._emitError=function(r){this._reset(),this.emit("error",r)}});var o9=Z((nDe,gpe)=>{gpe.exports={"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}}});var c9=Z((iDe,u9)=>{"use strict";u9.exports=o9()});var p9=Z(Pa=>{"use strict";var b2=c9(),vpe=require("path").extname,l9=/^\s*([^;\s]*)(?:;|\s|$)/,ype=/^text\//i;Pa.charset=f9;Pa.charsets={lookup:f9};Pa.contentType=Spe;Pa.extension=xpe;Pa.extensions=Object.create(null);Pa.lookup=bpe;Pa.types=Object.create(null);wpe(Pa.extensions,Pa.types);function f9(r){if(!r||typeof r!="string")return!1;var e=l9.exec(r),t=e&&b2[e[1].toLowerCase()];return t&&t.charset?t.charset:e&&ype.test(e[1])?"UTF-8":!1}o(f9,"charset");function Spe(r){if(!r||typeof r!="string")return!1;var e=r.indexOf("/")===-1?Pa.lookup(r):r;if(!e)return!1;if(e.indexOf("charset")===-1){var t=Pa.charset(e);t&&(e+="; charset="+t.toLowerCase())}return e}o(Spe,"contentType");function xpe(r){if(!r||typeof r!="string")return!1;var e=l9.exec(r),t=e&&Pa.extensions[e[1].toLowerCase()];return!t||!t.length?!1:t[0]}o(xpe,"extension");function bpe(r){if(!r||typeof r!="string")return!1;var e=vpe("x."+r).toLowerCase().substr(1);return e&&Pa.types[e]||!1}o(bpe,"lookup");function wpe(r,e){var t=["nginx","apache",void 0,"iana"];Object.keys(b2).forEach(o(function(i){var s=b2[i],a=s.extensions;if(!(!a||!a.length)){r[i]=a;for(var u=0;u<a.length;u++){var c=a[u];if(e[c]){var l=t.indexOf(b2[e[c]].source),p=t.indexOf(s.source);if(e[c]!=="application/octet-stream"&&(l>p||l===p&&e[c].substr(0,12)==="application/"))continue}e[c]=i}}},"forEachMimeType"))}o(wpe,"populateMaps")});var d9=Z((oDe,h9)=>{"use strict";h9.exports=Cpe;function Cpe(r){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(r):setTimeout(r,0)}o(Cpe,"defer")});var DB=Z((cDe,g9)=>{"use strict";var m9=d9();g9.exports=Epe;function Epe(r){var e=!1;return m9(function(){e=!0}),o(function(n,i){e?r(n,i):m9(o(function(){r(n,i)},"nextTick_callback"))},"async_callback")}o(Epe,"async")});var _B=Z((fDe,v9)=>{"use strict";v9.exports=Ape;function Ape(r){Object.keys(r.jobs).forEach(Npe.bind(r)),r.jobs={}}o(Ape,"abort");function Npe(r){typeof this.jobs[r]=="function"&&this.jobs[r]()}o(Npe,"clean")});var OB=Z((hDe,S9)=>{"use strict";var y9=DB(),Ipe=_B();S9.exports=Tpe;function Tpe(r,e,t,n){var i=t.keyedList?t.keyedList[t.index]:t.index;t.jobs[i]=Rpe(e,i,r[i],function(s,a){i in t.jobs&&(delete t.jobs[i],s?Ipe(t):t.results[i]=a,n(s,t.results))})}o(Tpe,"iterate");function Rpe(r,e,t,n){var i;return r.length==2?i=r(t,y9(n)):i=r(t,e,y9(n)),i}o(Rpe,"runJob")});var PB=Z((mDe,x9)=>{"use strict";x9.exports=Dpe;function Dpe(r,e){var t=!Array.isArray(r),n={index:0,keyedList:t||e?Object.keys(r):null,jobs:{},results:t?{}:[],size:t?Object.keys(r).length:r.length};return e&&n.keyedList.sort(t?e:function(i,s){return e(r[i],r[s])}),n}o(Dpe,"state")});var BB=Z((vDe,b9)=>{"use strict";var _pe=_B(),Ope=DB();b9.exports=Ppe;function Ppe(r){Object.keys(this.jobs).length&&(this.index=this.size,_pe(this),Ope(r)(null,this.results))}o(Ppe,"terminator")});var C9=Z((SDe,w9)=>{"use strict";var Bpe=OB(),Fpe=PB(),Lpe=BB();w9.exports=kpe;function kpe(r,e,t){for(var n=Fpe(r);n.index<(n.keyedList||r).length;)Bpe(r,e,n,function(i,s){if(i){t(i,s);return}if(Object.keys(n.jobs).length===0){t(null,n.results);return}}),n.index++;return Lpe.bind(n,t)}o(kpe,"parallel")});var FB=Z((bDe,w2)=>{"use strict";var E9=OB(),Vpe=PB(),jpe=BB();w2.exports=Upe;w2.exports.ascending=A9;w2.exports.descending=Mpe;function Upe(r,e,t,n){var i=Vpe(r,t);return E9(r,e,i,o(function s(a,u){if(a){n(a,u);return}if(i.index++,i.index<(i.keyedList||r).length){E9(r,e,i,s);return}n(null,i.results)},"iteratorHandler")),jpe.bind(i,n)}o(Upe,"serialOrdered");function A9(r,e){return r<e?-1:r>e?1:0}o(A9,"ascending");function Mpe(r,e){return-1*A9(r,e)}o(Mpe,"descending")});var I9=Z((CDe,N9)=>{"use strict";var qpe=FB();N9.exports=Hpe;function Hpe(r,e,t){return qpe(r,e,null,t)}o(Hpe,"serial")});var R9=Z((ADe,T9)=>{"use strict";T9.exports={parallel:C9(),serial:I9(),serialOrdered:FB()}});var LB=Z((NDe,D9)=>{"use strict";D9.exports=Object});var O9=Z((IDe,_9)=>{"use strict";_9.exports=Error});var B9=Z((TDe,P9)=>{"use strict";P9.exports=EvalError});var L9=Z((RDe,F9)=>{"use strict";F9.exports=RangeError});var V9=Z((DDe,k9)=>{"use strict";k9.exports=ReferenceError});var U9=Z((_De,j9)=>{"use strict";j9.exports=SyntaxError});var C2=Z((ODe,M9)=>{"use strict";M9.exports=TypeError});var H9=Z((PDe,q9)=>{"use strict";q9.exports=URIError});var K9=Z((BDe,z9)=>{"use strict";z9.exports=Math.abs});var G9=Z((FDe,$9)=>{"use strict";$9.exports=Math.floor});var W9=Z((LDe,X9)=>{"use strict";X9.exports=Math.max});var Q9=Z((kDe,J9)=>{"use strict";J9.exports=Math.min});var Z9=Z((VDe,Y9)=>{"use strict";Y9.exports=Math.pow});var tq=Z((jDe,eq)=>{"use strict";eq.exports=Math.round});var nq=Z((UDe,rq)=>{"use strict";rq.exports=Number.isNaN||o(function(e){return e!==e},"isNaN")});var sq=Z((qDe,iq)=>{"use strict";var zpe=nq();iq.exports=o(function(e){return zpe(e)||e===0?e:e<0?-1:1},"sign")});var oq=Z((zDe,aq)=>{"use strict";aq.exports=Object.getOwnPropertyDescriptor});var kB=Z((KDe,uq)=>{"use strict";var E2=oq();if(E2)try{E2([],"length")}catch{E2=null}uq.exports=E2});var lq=Z(($De,cq)=>{"use strict";var A2=Object.defineProperty||!1;if(A2)try{A2({},"a",{value:1})}catch{A2=!1}cq.exports=A2});var VB=Z((GDe,fq)=>{"use strict";fq.exports=o(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==i||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var dq=Z((WDe,hq)=>{"use strict";var pq=typeof Symbol<"u"&&Symbol,Kpe=VB();hq.exports=o(function(){return typeof pq!="function"||typeof Symbol!="function"||typeof pq("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Kpe()},"hasNativeSymbols")});var jB=Z((QDe,mq)=>{"use strict";mq.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var UB=Z((YDe,gq)=>{"use strict";var $pe=LB();gq.exports=$pe.getPrototypeOf||null});var Sq=Z((ZDe,yq)=>{"use strict";var Gpe="Function.prototype.bind called on incompatible ",Xpe=Object.prototype.toString,Wpe=Math.max,Jpe="[object Function]",vq=o(function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var s=0;s<t.length;s+=1)n[s+e.length]=t[s];return n},"concatty"),Qpe=o(function(e,t){for(var n=[],i=t||0,s=0;i<e.length;i+=1,s+=1)n[s]=e[i];return n},"slicy"),Ype=o(function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t},"joiny");yq.exports=o(function(e){var t=this;if(typeof t!="function"||Xpe.apply(t)!==Jpe)throw new TypeError(Gpe+t);for(var n=Qpe(arguments,1),i,s=o(function(){if(this instanceof i){var p=t.apply(this,vq(n,arguments));return Object(p)===p?p:this}return t.apply(e,vq(n,arguments))},"binder"),a=Wpe(0,t.length-n.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(i=Function("binder","return function ("+Ype(u,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var l=o(function(){},"Empty");l.prototype=t.prototype,i.prototype=new l,l.prototype=null}return i},"bind")});var zx=Z((t_e,xq)=>{"use strict";var Zpe=Sq();xq.exports=Function.prototype.bind||Zpe});var N2=Z((r_e,bq)=>{"use strict";bq.exports=Function.prototype.call});var MB=Z((n_e,wq)=>{"use strict";wq.exports=Function.prototype.apply});var Eq=Z((i_e,Cq)=>{"use strict";Cq.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Nq=Z((s_e,Aq)=>{"use strict";var ehe=zx(),the=MB(),rhe=N2(),nhe=Eq();Aq.exports=nhe||ehe.call(rhe,the)});var Tq=Z((a_e,Iq)=>{"use strict";var ihe=zx(),she=C2(),ahe=N2(),ohe=Nq();Iq.exports=o(function(e){if(e.length<1||typeof e[0]!="function")throw new she("a function is required");return ohe(ihe,ahe,e)},"callBindBasic")});var Bq=Z((u_e,Pq)=>{"use strict";var uhe=Tq(),Rq=kB(),_q;try{_q=[].__proto__===Array.prototype}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var qB=!!_q&&Rq&&Rq(Object.prototype,"__proto__"),Oq=Object,Dq=Oq.getPrototypeOf;Pq.exports=qB&&typeof qB.get=="function"?uhe([qB.get]):typeof Dq=="function"?o(function(e){return Dq(e==null?e:Oq(e))},"getDunder"):!1});var jq=Z((l_e,Vq)=>{"use strict";var Fq=jB(),Lq=UB(),kq=Bq();Vq.exports=Fq?o(function(e){return Fq(e)},"getProto"):Lq?o(function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Lq(e)},"getProto"):kq?o(function(e){return kq(e)},"getProto"):null});var I2=Z((p_e,Uq)=>{"use strict";var che=Function.prototype.call,lhe=Object.prototype.hasOwnProperty,fhe=zx();Uq.exports=fhe.call(che,lhe)});var Gq=Z((h_e,$q)=>{"use strict";var wr,phe=LB(),hhe=O9(),dhe=B9(),mhe=L9(),ghe=V9(),xv=U9(),Sv=C2(),vhe=H9(),yhe=K9(),She=G9(),xhe=W9(),bhe=Q9(),whe=Z9(),Che=tq(),Ehe=sq(),zq=Function,HB=o(function(r){try{return zq('"use strict"; return ('+r+").constructor;")()}catch{}},"getEvalledConstructor"),Kx=kB(),Ahe=lq(),zB=o(function(){throw new Sv},"throwTypeError"),Nhe=Kx?(function(){try{return arguments.callee,zB}catch{try{return Kx(arguments,"callee").get}catch{return zB}}})():zB,vv=dq()(),Yi=jq(),Ihe=UB(),The=jB(),Kq=MB(),$x=N2(),yv={},Rhe=typeof Uint8Array>"u"||!Yi?wr:Yi(Uint8Array),um={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?wr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?wr:ArrayBuffer,"%ArrayIteratorPrototype%":vv&&Yi?Yi([][Symbol.iterator]()):wr,"%AsyncFromSyncIteratorPrototype%":wr,"%AsyncFunction%":yv,"%AsyncGenerator%":yv,"%AsyncGeneratorFunction%":yv,"%AsyncIteratorPrototype%":yv,"%Atomics%":typeof Atomics>"u"?wr:Atomics,"%BigInt%":typeof BigInt>"u"?wr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?wr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?wr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?wr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":hhe,"%eval%":eval,"%EvalError%":dhe,"%Float16Array%":typeof Float16Array>"u"?wr:Float16Array,"%Float32Array%":typeof Float32Array>"u"?wr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?wr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?wr:FinalizationRegistry,"%Function%":zq,"%GeneratorFunction%":yv,"%Int8Array%":typeof Int8Array>"u"?wr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?wr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?wr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vv&&Yi?Yi(Yi([][Symbol.iterator]())):wr,"%JSON%":typeof JSON=="object"?JSON:wr,"%Map%":typeof Map>"u"?wr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vv||!Yi?wr:Yi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":phe,"%Object.getOwnPropertyDescriptor%":Kx,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?wr:Promise,"%Proxy%":typeof Proxy>"u"?wr:Proxy,"%RangeError%":mhe,"%ReferenceError%":ghe,"%Reflect%":typeof Reflect>"u"?wr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?wr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vv||!Yi?wr:Yi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?wr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vv&&Yi?Yi(""[Symbol.iterator]()):wr,"%Symbol%":vv?Symbol:wr,"%SyntaxError%":xv,"%ThrowTypeError%":Nhe,"%TypedArray%":Rhe,"%TypeError%":Sv,"%Uint8Array%":typeof Uint8Array>"u"?wr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?wr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?wr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?wr:Uint32Array,"%URIError%":vhe,"%WeakMap%":typeof WeakMap>"u"?wr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?wr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?wr:WeakSet,"%Function.prototype.call%":$x,"%Function.prototype.apply%":Kq,"%Object.defineProperty%":Ahe,"%Object.getPrototypeOf%":Ihe,"%Math.abs%":yhe,"%Math.floor%":She,"%Math.max%":xhe,"%Math.min%":bhe,"%Math.pow%":whe,"%Math.round%":Che,"%Math.sign%":Ehe,"%Reflect.getPrototypeOf%":The};if(Yi)try{null.error}catch(r){Mq=Yi(Yi(r)),um["%Error.prototype%"]=Mq}var Mq,Dhe=o(function r(e){var t;if(e==="%AsyncFunction%")t=HB("async function () {}");else if(e==="%GeneratorFunction%")t=HB("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=HB("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=r("%AsyncGenerator%");i&&Yi&&(t=Yi(i.prototype))}return um[e]=t,t},"doEval"),qq={__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"]},Gx=zx(),T2=I2(),_he=Gx.call($x,Array.prototype.concat),Ohe=Gx.call(Kq,Array.prototype.splice),Hq=Gx.call($x,String.prototype.replace),R2=Gx.call($x,String.prototype.slice),Phe=Gx.call($x,RegExp.prototype.exec),Bhe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fhe=/\\(\\)?/g,Lhe=o(function(e){var t=R2(e,0,1),n=R2(e,-1);if(t==="%"&&n!=="%")throw new xv("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new xv("invalid intrinsic syntax, expected opening `%`");var i=[];return Hq(e,Bhe,function(s,a,u,c){i[i.length]=u?Hq(c,Fhe,"$1"):a||s}),i},"stringToPath"),khe=o(function(e,t){var n=e,i;if(T2(qq,n)&&(i=qq[n],n="%"+i[0]+"%"),T2(um,n)){var s=um[n];if(s===yv&&(s=Dhe(n)),typeof s>"u"&&!t)throw new Sv("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new xv("intrinsic "+e+" does not exist!")},"getBaseIntrinsic");$q.exports=o(function(e,t){if(typeof e!="string"||e.length===0)throw new Sv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Sv('"allowMissing" argument must be a boolean');if(Phe(/^%?[^%]*%?$/,e)===null)throw new xv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Lhe(e),i=n.length>0?n[0]:"",s=khe("%"+i+"%",t),a=s.name,u=s.value,c=!1,l=s.alias;l&&(i=l[0],Ohe(n,_he([0,1],l)));for(var p=1,m=!0;p<n.length;p+=1){var g=n[p],S=R2(g,0,1),v=R2(g,-1);if((S==='"'||S==="'"||S==="`"||v==='"'||v==="'"||v==="`")&&S!==v)throw new xv("property names with quotes must have matching quotes");if((g==="constructor"||!m)&&(c=!0),i+="."+g,a="%"+i+"%",T2(um,a))u=um[a];else if(u!=null){if(!(g in u)){if(!t)throw new Sv("base intrinsic for "+e+" exists, but the property is not available.");return}if(Kx&&p+1>=n.length){var b=Kx(u,g);m=!!b,m&&"get"in b&&!("originalValue"in b.get)?u=b.get:u=u[g]}else m=T2(u,g),u=u[g];m&&!c&&(um[a]=u)}}return u},"GetIntrinsic")});var Wq=Z((m_e,Xq)=>{"use strict";var Vhe=VB();Xq.exports=o(function(){return Vhe()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Yq=Z((v_e,Qq)=>{"use strict";var jhe=Gq(),Jq=jhe("%Object.defineProperty%",!0),Uhe=Wq()(),Mhe=I2(),qhe=C2(),D2=Uhe?Symbol.toStringTag:null;Qq.exports=o(function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof i<"u"&&typeof i!="boolean")throw new qhe("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");D2&&(n||!Mhe(e,D2))&&(Jq?Jq(e,D2,{configurable:!i,enumerable:!1,value:t,writable:!1}):e[D2]=t)},"setToStringTag")});var eH=Z((S_e,Zq)=>{"use strict";Zq.exports=function(r,e){return Object.keys(e).forEach(function(t){r[t]=r[t]||e[t]}),r}});var WB=Z((x_e,tH)=>{"use strict";var XB=a9(),Hhe=require("util"),KB=require("path"),zhe=require("http"),Khe=require("https"),$he=require("url").parse,Ghe=require("fs"),Xhe=require("stream").Stream,Whe=require("crypto"),$B=p9(),Jhe=R9(),Qhe=Yq(),Hp=I2(),GB=eH();function Pr(r){if(!(this instanceof Pr))return new Pr(r);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],XB.call(this),r=r||{};for(var e in r)this[e]=r[e]}o(Pr,"FormData");Hhe.inherits(Pr,XB);Pr.LINE_BREAK=`\r
45
+ }`;var fr=K5(function(){return $r(q,Ct+"return "+Ke).apply(r,Q)});if(fr.source=Ke,YO(fr))throw fr;return fr}o(cae,"template");function lae(f){return Xr(f).toLowerCase()}o(lae,"toLower");function fae(f){return Xr(f).toUpperCase()}o(fae,"toUpper");function pae(f,h,y){if(f=Xr(f),f&&(y||h===r))return ej(f);if(!f||!(h=io(h)))return f;var I=xu(f),B=xu(h),q=tj(I,B),Q=rj(I,B)+1;return Cp(I,q,Q).join("")}o(pae,"trim");function hae(f,h,y){if(f=Xr(f),f&&(y||h===r))return f.slice(0,ij(f)+1);if(!f||!(h=io(h)))return f;var I=xu(f),B=rj(I,xu(h))+1;return Cp(I,0,B).join("")}o(hae,"trimEnd");function dae(f,h,y){if(f=Xr(f),f&&(y||h===r))return f.replace(ax,"");if(!f||!(h=io(h)))return f;var I=xu(f),B=tj(I,xu(h));return Cp(I,B).join("")}o(dae,"trimStart");function mae(f,h){var y=_,I=H;if(Xn(h)){var B="separator"in h?h.separator:B;y="length"in h?or(h.length):y,I="omission"in h?io(h.omission):I}f=Xr(f);var q=f.length;if(Fg(f)){var Q=xu(f);q=Q.length}if(y>=q)return f;var te=y-Lg(I);if(te<1)return I;var ge=Q?Cp(Q,0,te).join(""):f.slice(0,te);if(B===r)return ge+I;if(Q&&(te+=ge.length-te),ZO(B)){if(f.slice(te).search(B)){var Be,Ve=ge;for(B.global||(B=mO(B.source,Xr(Su.exec(B))+"g")),B.lastIndex=0;Be=B.exec(Ve);)var Ke=Be.index;ge=ge.slice(0,Ke===r?te:Ke)}}else if(f.indexOf(io(B),te)!=te){var ut=ge.lastIndexOf(B);ut>-1&&(ge=ge.slice(0,ut))}return ge+I}o(mae,"truncate");function gae(f){return f=Xr(f),f&&G.test(f)?f.replace(se,Kee):f}o(gae,"unescape");var vae=qg(function(f,h,y){return f+(y?" ":"")+h.toUpperCase()}),rP=$j("toUpperCase");function z5(f,h,y){return f=Xr(f),h=y?r:h,h===r?Uee(f)?Xee(f):_ee(f):f.match(h)||[]}o(z5,"words");var K5=mr(function(f,h){try{return ro(f,r,h)}catch(y){return YO(y)?y:new Qt(y)}}),yae=Vl(function(f,h){return To(h,function(y){y=bc(y),Ll(f,y,JO(f[y],f))}),f});function Sae(f){var h=f==null?0:f.length,y=Pt();return f=h?Bn(f,function(I){if(typeof I[1]!="function")throw new Ro(i);return[y(I[0]),I[1]]}):[],mr(function(I){for(var B=-1;++B<h;){var q=f[B];if(ro(q[0],this,I))return ro(q[1],this,I)}})}o(Sae,"cond");function xae(f){return Kte(_o(f,l))}o(xae,"conforms");function nP(f){return function(){return f}}o(nP,"constant");function bae(f,h){return f==null||f!==f?h:f}o(bae,"defaultTo");var wae=Xj(),Cae=Xj(!0);function Ia(f){return f}o(Ia,"identity");function iP(f){return Ej(typeof f=="function"?f:_o(f,l))}o(iP,"iteratee");function Eae(f){return Nj(_o(f,l))}o(Eae,"matches");function Aae(f,h){return Ij(f,_o(h,l))}o(Aae,"matchesProperty");var Nae=mr(function(f,h){return function(y){return mx(y,f,h)}}),Iae=mr(function(f,h){return function(y){return mx(f,y,h)}});function sP(f,h,y){var I=zi(h),B=tN(h,I);y==null&&!(Xn(h)&&(B.length||!I.length))&&(y=h,h=f,f=this,B=tN(h,zi(h)));var q=!(Xn(y)&&"chain"in y)||!!y.chain,Q=Ul(f);return To(B,function(te){var ge=h[te];f[te]=ge,Q&&(f.prototype[te]=function(){var Be=this.__chain__;if(q||Be){var Ve=f(this.__wrapped__),Ke=Ve.__actions__=Ea(this.__actions__);return Ke.push({func:ge,args:arguments,thisArg:f}),Ve.__chain__=Be,Ve}return ge.apply(f,gp([this.value()],arguments))})}),f}o(sP,"mixin");function Tae(){return Hi._===this&&(Hi._=ete),this}o(Tae,"noConflict");function aP(){}o(aP,"noop");function Rae(f){return f=or(f),mr(function(h){return Tj(h,f)})}o(Rae,"nthArg");var Dae=kO(Bn),_ae=kO(W8),Oae=kO(uO);function $5(f){return zO(f)?cO(bc(f)):ure(f)}o($5,"property");function Pae(f){return function(h){return f==null?r:Kd(f,h)}}o(Pae,"propertyOf");var Bae=Jj(),Fae=Jj(!0);function oP(){return[]}o(oP,"stubArray");function uP(){return!1}o(uP,"stubFalse");function Lae(){return{}}o(Lae,"stubObject");function kae(){return""}o(kae,"stubString");function Vae(){return!0}o(Vae,"stubTrue");function jae(f,h){if(f=or(f),f<1||f>ee)return[];var y=Ye,I=js(f,Ye);h=Pt(h),f-=Ye;for(var B=pO(I,h);++y<f;)h(y);return B}o(jae,"times");function Uae(f){return tr(f)?Bn(f,bc):so(f)?[f]:Ea(p5(Xr(f)))}o(Uae,"toPath");function Mae(f){var h=++Yee;return Xr(f)+h}o(Mae,"uniqueId");var qae=oN(function(f,h){return f+h},0),Hae=VO("ceil"),zae=oN(function(f,h){return f/h},1),Kae=VO("floor");function $ae(f){return f&&f.length?eN(f,Ia,CO):r}o($ae,"max");function Gae(f,h){return f&&f.length?eN(f,Pt(h,2),CO):r}o(Gae,"maxBy");function Xae(f){return Y8(f,Ia)}o(Xae,"mean");function Wae(f,h){return Y8(f,Pt(h,2))}o(Wae,"meanBy");function Jae(f){return f&&f.length?eN(f,Ia,IO):r}o(Jae,"min");function Qae(f,h){return f&&f.length?eN(f,Pt(h,2),IO):r}o(Qae,"minBy");var Yae=oN(function(f,h){return f*h},1),Zae=VO("round"),eoe=oN(function(f,h){return f-h},0);function toe(f){return f&&f.length?fO(f,Ia):0}o(toe,"sum");function roe(f,h){return f&&f.length?fO(f,Pt(h,2)):0}return o(roe,"sumBy"),U.after=Eie,U.ary=C5,U.assign=fse,U.assignIn=k5,U.assignInWith=xN,U.assignWith=pse,U.at=hse,U.before=E5,U.bind=JO,U.bindAll=yae,U.bindKey=A5,U.castArray=Lie,U.chain=x5,U.chunk=Kre,U.compact=$re,U.concat=Gre,U.cond=Sae,U.conforms=xae,U.constant=nP,U.countBy=tie,U.create=dse,U.curry=N5,U.curryRight=I5,U.debounce=T5,U.defaults=mse,U.defaultsDeep=gse,U.defer=Aie,U.delay=Nie,U.difference=Xre,U.differenceBy=Wre,U.differenceWith=Jre,U.drop=Qre,U.dropRight=Yre,U.dropRightWhile=Zre,U.dropWhile=ene,U.fill=tne,U.filter=nie,U.flatMap=aie,U.flatMapDeep=oie,U.flatMapDepth=uie,U.flatten=g5,U.flattenDeep=rne,U.flattenDepth=nne,U.flip=Iie,U.flow=wae,U.flowRight=Cae,U.fromPairs=ine,U.functions=Cse,U.functionsIn=Ese,U.groupBy=cie,U.initial=ane,U.intersection=one,U.intersectionBy=une,U.intersectionWith=cne,U.invert=Nse,U.invertBy=Ise,U.invokeMap=fie,U.iteratee=iP,U.keyBy=pie,U.keys=zi,U.keysIn=Na,U.map=dN,U.mapKeys=Rse,U.mapValues=Dse,U.matches=Eae,U.matchesProperty=Aae,U.memoize=gN,U.merge=_se,U.mergeWith=V5,U.method=Nae,U.methodOf=Iae,U.mixin=sP,U.negate=vN,U.nthArg=Rae,U.omit=Ose,U.omitBy=Pse,U.once=Tie,U.orderBy=hie,U.over=Dae,U.overArgs=Rie,U.overEvery=_ae,U.overSome=Oae,U.partial=QO,U.partialRight=R5,U.partition=die,U.pick=Bse,U.pickBy=j5,U.property=$5,U.propertyOf=Pae,U.pull=hne,U.pullAll=y5,U.pullAllBy=dne,U.pullAllWith=mne,U.pullAt=gne,U.range=Bae,U.rangeRight=Fae,U.rearg=Die,U.reject=vie,U.remove=vne,U.rest=_ie,U.reverse=XO,U.sampleSize=Sie,U.set=Lse,U.setWith=kse,U.shuffle=xie,U.slice=yne,U.sortBy=Cie,U.sortedUniq=Ane,U.sortedUniqBy=Nne,U.split=aae,U.spread=Oie,U.tail=Ine,U.take=Tne,U.takeRight=Rne,U.takeRightWhile=Dne,U.takeWhile=_ne,U.tap=$ne,U.throttle=Pie,U.thru=hN,U.toArray=B5,U.toPairs=U5,U.toPairsIn=M5,U.toPath=Uae,U.toPlainObject=L5,U.transform=Vse,U.unary=Bie,U.union=One,U.unionBy=Pne,U.unionWith=Bne,U.uniq=Fne,U.uniqBy=Lne,U.uniqWith=kne,U.unset=jse,U.unzip=WO,U.unzipWith=S5,U.update=Use,U.updateWith=Mse,U.values=Kg,U.valuesIn=qse,U.without=Vne,U.words=z5,U.wrap=Fie,U.xor=jne,U.xorBy=Une,U.xorWith=Mne,U.zip=qne,U.zipObject=Hne,U.zipObjectDeep=zne,U.zipWith=Kne,U.entries=U5,U.entriesIn=M5,U.extend=k5,U.extendWith=xN,sP(U,U),U.add=qae,U.attempt=K5,U.camelCase=$se,U.capitalize=q5,U.ceil=Hae,U.clamp=Hse,U.clone=kie,U.cloneDeep=jie,U.cloneDeepWith=Uie,U.cloneWith=Vie,U.conformsTo=Mie,U.deburr=H5,U.defaultTo=bae,U.divide=zae,U.endsWith=Gse,U.eq=wu,U.escape=Xse,U.escapeRegExp=Wse,U.every=rie,U.find=iie,U.findIndex=d5,U.findKey=vse,U.findLast=sie,U.findLastIndex=m5,U.findLastKey=yse,U.floor=Kae,U.forEach=b5,U.forEachRight=w5,U.forIn=Sse,U.forInRight=xse,U.forOwn=bse,U.forOwnRight=wse,U.get=eP,U.gt=qie,U.gte=Hie,U.has=Ase,U.hasIn=tP,U.head=v5,U.identity=Ia,U.includes=lie,U.indexOf=sne,U.inRange=zse,U.invoke=Tse,U.isArguments=Xd,U.isArray=tr,U.isArrayBuffer=zie,U.isArrayLike=Aa,U.isArrayLikeObject=mi,U.isBoolean=Kie,U.isBuffer=Ep,U.isDate=$ie,U.isElement=Gie,U.isEmpty=Xie,U.isEqual=Wie,U.isEqualWith=Jie,U.isError=YO,U.isFinite=Qie,U.isFunction=Ul,U.isInteger=D5,U.isLength=yN,U.isMap=_5,U.isMatch=Yie,U.isMatchWith=Zie,U.isNaN=ese,U.isNative=tse,U.isNil=nse,U.isNull=rse,U.isNumber=O5,U.isObject=Xn,U.isObjectLike=ii,U.isPlainObject=bx,U.isRegExp=ZO,U.isSafeInteger=ise,U.isSet=P5,U.isString=SN,U.isSymbol=so,U.isTypedArray=zg,U.isUndefined=sse,U.isWeakMap=ase,U.isWeakSet=ose,U.join=lne,U.kebabCase=Jse,U.last=Po,U.lastIndexOf=fne,U.lowerCase=Qse,U.lowerFirst=Yse,U.lt=use,U.lte=cse,U.max=$ae,U.maxBy=Gae,U.mean=Xae,U.meanBy=Wae,U.min=Jae,U.minBy=Qae,U.stubArray=oP,U.stubFalse=uP,U.stubObject=Lae,U.stubString=kae,U.stubTrue=Vae,U.multiply=Yae,U.nth=pne,U.noConflict=Tae,U.noop=aP,U.now=mN,U.pad=Zse,U.padEnd=eae,U.padStart=tae,U.parseInt=rae,U.random=Kse,U.reduce=mie,U.reduceRight=gie,U.repeat=nae,U.replace=iae,U.result=Fse,U.round=Zae,U.runInContext=he,U.sample=yie,U.size=bie,U.snakeCase=sae,U.some=wie,U.sortedIndex=Sne,U.sortedIndexBy=xne,U.sortedIndexOf=bne,U.sortedLastIndex=wne,U.sortedLastIndexBy=Cne,U.sortedLastIndexOf=Ene,U.startCase=oae,U.startsWith=uae,U.subtract=eoe,U.sum=toe,U.sumBy=roe,U.template=cae,U.times=jae,U.toFinite=Ml,U.toInteger=or,U.toLength=F5,U.toLower=lae,U.toNumber=Bo,U.toSafeInteger=lse,U.toString=Xr,U.toUpper=fae,U.trim=pae,U.trimEnd=hae,U.trimStart=dae,U.truncate=mae,U.unescape=gae,U.uniqueId=Mae,U.upperCase=vae,U.upperFirst=rP,U.each=b5,U.eachRight=w5,U.first=v5,sP(U,(function(){var f={};return Sc(U,function(h,y){Yr.call(U.prototype,y)||(f[y]=h)}),f})(),{chain:!1}),U.VERSION=e,To(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){U[f].placeholder=U}),To(["drop","take"],function(f,h){Er.prototype[f]=function(y){y=y===r?1:Pi(or(y),0);var I=this.__filtered__&&!h?new Er(this):this.clone();return I.__filtered__?I.__takeCount__=js(y,I.__takeCount__):I.__views__.push({size:js(y,Ye),type:f+(I.__dir__<0?"Right":"")}),I},Er.prototype[f+"Right"]=function(y){return this.reverse()[f](y).reverse()}}),To(["filter","map","takeWhile"],function(f,h){var y=h+1,I=y==X||y==fe;Er.prototype[f]=function(B){var q=this.clone();return q.__iteratees__.push({iteratee:Pt(B,3),type:y}),q.__filtered__=q.__filtered__||I,q}}),To(["head","last"],function(f,h){var y="take"+(h?"Right":"");Er.prototype[f]=function(){return this[y](1).value()[0]}}),To(["initial","tail"],function(f,h){var y="drop"+(h?"":"Right");Er.prototype[f]=function(){return this.__filtered__?new Er(this):this[y](1)}}),Er.prototype.compact=function(){return this.filter(Ia)},Er.prototype.find=function(f){return this.filter(f).head()},Er.prototype.findLast=function(f){return this.reverse().find(f)},Er.prototype.invokeMap=mr(function(f,h){return typeof f=="function"?new Er(this):this.map(function(y){return mx(y,f,h)})}),Er.prototype.reject=function(f){return this.filter(vN(Pt(f)))},Er.prototype.slice=function(f,h){f=or(f);var y=this;return y.__filtered__&&(f>0||h<0)?new Er(y):(f<0?y=y.takeRight(-f):f&&(y=y.drop(f)),h!==r&&(h=or(h),y=h<0?y.dropRight(-h):y.take(h-f)),y)},Er.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Er.prototype.toArray=function(){return this.take(Ye)},Sc(Er.prototype,function(f,h){var y=/^(?:filter|find|map|reject)|While$/.test(h),I=/^(?:head|last)$/.test(h),B=U[I?"take"+(h=="last"?"Right":""):h],q=I||/^find/.test(h);B&&(U.prototype[h]=function(){var Q=this.__wrapped__,te=I?[1]:arguments,ge=Q instanceof Er,Be=te[0],Ve=ge||tr(Q),Ke=o(function(yr){var Rr=B.apply(U,gp([yr],te));return I&&ut?Rr[0]:Rr},"interceptor");Ve&&y&&typeof Be=="function"&&Be.length!=1&&(ge=Ve=!1);var ut=this.__chain__,Ct=!!this.__actions__.length,kt=q&&!ut,fr=ge&&!Ct;if(!q&&Ve){Q=fr?Q:new Er(this);var Vt=f.apply(Q,te);return Vt.__actions__.push({func:hN,args:[Ke],thisArg:r}),new Do(Vt,ut)}return kt&&fr?f.apply(this,te):(Vt=this.thru(Ke),kt?I?Vt.value()[0]:Vt.value():Vt)})}),To(["pop","push","shift","sort","splice","unshift"],function(f){var h=jA[f],y=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",I=/^(?:pop|shift)$/.test(f);U.prototype[f]=function(){var B=arguments;if(I&&!this.__chain__){var q=this.value();return h.apply(tr(q)?q:[],B)}return this[y](function(Q){return h.apply(tr(Q)?Q:[],B)})}}),Sc(Er.prototype,function(f,h){var y=U[h];if(y){var I=y.name+"";Yr.call(jg,I)||(jg[I]=[]),jg[I].push({name:h,func:y})}}),jg[aN(r,b).name]=[{name:"wrapper",func:r}],Er.prototype.clone=gte,Er.prototype.reverse=vte,Er.prototype.value=yte,U.prototype.at=Gne,U.prototype.chain=Xne,U.prototype.commit=Wne,U.prototype.next=Jne,U.prototype.plant=Yne,U.prototype.reverse=Zne,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=eie,U.prototype.first=U.prototype.head,ux&&(U.prototype[ux]=Qne),U},"runInContext"),yp=Wee();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Hi._=yp,define(function(){return yp})):Ud?((Ud.exports=yp)._=yp,iO._=yp):Hi._=yp}).call(gv)});var r9=Z((ZRe,t9)=>{"use strict";var e9=require("stream").Stream,dpe=require("util");t9.exports=Tu;function Tu(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}o(Tu,"DelayedStream");dpe.inherits(Tu,e9);Tu.create=function(r,e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];t.source=r;var i=r.emit;return r.emit=function(){return t._handleEmit(arguments),i.apply(r,arguments)},r.on("error",function(){}),t.pauseStream&&r.pause(),t};Object.defineProperty(Tu.prototype,"readable",{configurable:!0,enumerable:!0,get:o(function(){return this.source.readable},"get")});Tu.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Tu.prototype.resume=function(){this._released||this.release(),this.source.resume()};Tu.prototype.pause=function(){this.source.pause()};Tu.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach((function(r){this.emit.apply(this,r)}).bind(this)),this._bufferedEvents=[]};Tu.prototype.pipe=function(){var r=e9.prototype.pipe.apply(this,arguments);return this.resume(),r};Tu.prototype._handleEmit=function(r){if(this._released){this.emit.apply(this,r);return}r[0]==="data"&&(this.dataSize+=r[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(r)};Tu.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(r))}}});var a9=Z((tDe,s9)=>{"use strict";var mpe=require("util"),i9=require("stream").Stream,n9=r9();s9.exports=oi;function oi(){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}o(oi,"CombinedStream");mpe.inherits(oi,i9);oi.create=function(r){var e=new this;r=r||{};for(var t in r)e[t]=r[t];return e};oi.isStreamLike=function(r){return typeof r!="function"&&typeof r!="string"&&typeof r!="boolean"&&typeof r!="number"&&!Buffer.isBuffer(r)};oi.prototype.append=function(r){var e=oi.isStreamLike(r);if(e){if(!(r instanceof n9)){var t=n9.create(r,{maxDataSize:1/0,pauseStream:this.pauseStreams});r.on("data",this._checkDataSize.bind(this)),r=t}this._handleErrors(r),this.pauseStreams&&r.pause()}return this._streams.push(r),this};oi.prototype.pipe=function(r,e){return i9.prototype.pipe.call(this,r,e),this.resume(),r};oi.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}};oi.prototype._realGetNext=function(){var r=this._streams.shift();if(typeof r>"u"){this.end();return}if(typeof r!="function"){this._pipeNext(r);return}var e=r;e((function(t){var n=oi.isStreamLike(t);n&&(t.on("data",this._checkDataSize.bind(this)),this._handleErrors(t)),this._pipeNext(t)}).bind(this))};oi.prototype._pipeNext=function(r){this._currentStream=r;var e=oi.isStreamLike(r);if(e){r.on("end",this._getNext.bind(this)),r.pipe(this,{end:!1});return}var t=r;this.write(t),this._getNext()};oi.prototype._handleErrors=function(r){var e=this;r.on("error",function(t){e._emitError(t)})};oi.prototype.write=function(r){this.emit("data",r)};oi.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};oi.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")};oi.prototype.end=function(){this._reset(),this.emit("end")};oi.prototype.destroy=function(){this._reset(),this.emit("close")};oi.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};oi.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(r))}};oi.prototype._updateDataSize=function(){this.dataSize=0;var r=this;this._streams.forEach(function(e){e.dataSize&&(r.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};oi.prototype._emitError=function(r){this._reset(),this.emit("error",r)}});var o9=Z((nDe,gpe)=>{gpe.exports={"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}}});var c9=Z((iDe,u9)=>{"use strict";u9.exports=o9()});var p9=Z(Pa=>{"use strict";var b2=c9(),vpe=require("path").extname,l9=/^\s*([^;\s]*)(?:;|\s|$)/,ype=/^text\//i;Pa.charset=f9;Pa.charsets={lookup:f9};Pa.contentType=Spe;Pa.extension=xpe;Pa.extensions=Object.create(null);Pa.lookup=bpe;Pa.types=Object.create(null);wpe(Pa.extensions,Pa.types);function f9(r){if(!r||typeof r!="string")return!1;var e=l9.exec(r),t=e&&b2[e[1].toLowerCase()];return t&&t.charset?t.charset:e&&ype.test(e[1])?"UTF-8":!1}o(f9,"charset");function Spe(r){if(!r||typeof r!="string")return!1;var e=r.indexOf("/")===-1?Pa.lookup(r):r;if(!e)return!1;if(e.indexOf("charset")===-1){var t=Pa.charset(e);t&&(e+="; charset="+t.toLowerCase())}return e}o(Spe,"contentType");function xpe(r){if(!r||typeof r!="string")return!1;var e=l9.exec(r),t=e&&Pa.extensions[e[1].toLowerCase()];return!t||!t.length?!1:t[0]}o(xpe,"extension");function bpe(r){if(!r||typeof r!="string")return!1;var e=vpe("x."+r).toLowerCase().substr(1);return e&&Pa.types[e]||!1}o(bpe,"lookup");function wpe(r,e){var t=["nginx","apache",void 0,"iana"];Object.keys(b2).forEach(o(function(i){var s=b2[i],a=s.extensions;if(!(!a||!a.length)){r[i]=a;for(var u=0;u<a.length;u++){var c=a[u];if(e[c]){var l=t.indexOf(b2[e[c]].source),p=t.indexOf(s.source);if(e[c]!=="application/octet-stream"&&(l>p||l===p&&e[c].substr(0,12)==="application/"))continue}e[c]=i}}},"forEachMimeType"))}o(wpe,"populateMaps")});var d9=Z((oDe,h9)=>{"use strict";h9.exports=Cpe;function Cpe(r){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(r):setTimeout(r,0)}o(Cpe,"defer")});var DB=Z((cDe,g9)=>{"use strict";var m9=d9();g9.exports=Epe;function Epe(r){var e=!1;return m9(function(){e=!0}),o(function(n,i){e?r(n,i):m9(o(function(){r(n,i)},"nextTick_callback"))},"async_callback")}o(Epe,"async")});var _B=Z((fDe,v9)=>{"use strict";v9.exports=Ape;function Ape(r){Object.keys(r.jobs).forEach(Npe.bind(r)),r.jobs={}}o(Ape,"abort");function Npe(r){typeof this.jobs[r]=="function"&&this.jobs[r]()}o(Npe,"clean")});var OB=Z((hDe,S9)=>{"use strict";var y9=DB(),Ipe=_B();S9.exports=Tpe;function Tpe(r,e,t,n){var i=t.keyedList?t.keyedList[t.index]:t.index;t.jobs[i]=Rpe(e,i,r[i],function(s,a){i in t.jobs&&(delete t.jobs[i],s?Ipe(t):t.results[i]=a,n(s,t.results))})}o(Tpe,"iterate");function Rpe(r,e,t,n){var i;return r.length==2?i=r(t,y9(n)):i=r(t,e,y9(n)),i}o(Rpe,"runJob")});var PB=Z((mDe,x9)=>{"use strict";x9.exports=Dpe;function Dpe(r,e){var t=!Array.isArray(r),n={index:0,keyedList:t||e?Object.keys(r):null,jobs:{},results:t?{}:[],size:t?Object.keys(r).length:r.length};return e&&n.keyedList.sort(t?e:function(i,s){return e(r[i],r[s])}),n}o(Dpe,"state")});var BB=Z((vDe,b9)=>{"use strict";var _pe=_B(),Ope=DB();b9.exports=Ppe;function Ppe(r){Object.keys(this.jobs).length&&(this.index=this.size,_pe(this),Ope(r)(null,this.results))}o(Ppe,"terminator")});var C9=Z((SDe,w9)=>{"use strict";var Bpe=OB(),Fpe=PB(),Lpe=BB();w9.exports=kpe;function kpe(r,e,t){for(var n=Fpe(r);n.index<(n.keyedList||r).length;)Bpe(r,e,n,function(i,s){if(i){t(i,s);return}if(Object.keys(n.jobs).length===0){t(null,n.results);return}}),n.index++;return Lpe.bind(n,t)}o(kpe,"parallel")});var FB=Z((bDe,w2)=>{"use strict";var E9=OB(),Vpe=PB(),jpe=BB();w2.exports=Upe;w2.exports.ascending=A9;w2.exports.descending=Mpe;function Upe(r,e,t,n){var i=Vpe(r,t);return E9(r,e,i,o(function s(a,u){if(a){n(a,u);return}if(i.index++,i.index<(i.keyedList||r).length){E9(r,e,i,s);return}n(null,i.results)},"iteratorHandler")),jpe.bind(i,n)}o(Upe,"serialOrdered");function A9(r,e){return r<e?-1:r>e?1:0}o(A9,"ascending");function Mpe(r,e){return-1*A9(r,e)}o(Mpe,"descending")});var I9=Z((CDe,N9)=>{"use strict";var qpe=FB();N9.exports=Hpe;function Hpe(r,e,t){return qpe(r,e,null,t)}o(Hpe,"serial")});var R9=Z((ADe,T9)=>{"use strict";T9.exports={parallel:C9(),serial:I9(),serialOrdered:FB()}});var LB=Z((NDe,D9)=>{"use strict";D9.exports=Object});var O9=Z((IDe,_9)=>{"use strict";_9.exports=Error});var B9=Z((TDe,P9)=>{"use strict";P9.exports=EvalError});var L9=Z((RDe,F9)=>{"use strict";F9.exports=RangeError});var V9=Z((DDe,k9)=>{"use strict";k9.exports=ReferenceError});var U9=Z((_De,j9)=>{"use strict";j9.exports=SyntaxError});var C2=Z((ODe,M9)=>{"use strict";M9.exports=TypeError});var H9=Z((PDe,q9)=>{"use strict";q9.exports=URIError});var K9=Z((BDe,z9)=>{"use strict";z9.exports=Math.abs});var G9=Z((FDe,$9)=>{"use strict";$9.exports=Math.floor});var W9=Z((LDe,X9)=>{"use strict";X9.exports=Math.max});var Q9=Z((kDe,J9)=>{"use strict";J9.exports=Math.min});var Z9=Z((VDe,Y9)=>{"use strict";Y9.exports=Math.pow});var tq=Z((jDe,eq)=>{"use strict";eq.exports=Math.round});var nq=Z((UDe,rq)=>{"use strict";rq.exports=Number.isNaN||o(function(e){return e!==e},"isNaN")});var sq=Z((qDe,iq)=>{"use strict";var zpe=nq();iq.exports=o(function(e){return zpe(e)||e===0?e:e<0?-1:1},"sign")});var oq=Z((zDe,aq)=>{"use strict";aq.exports=Object.getOwnPropertyDescriptor});var kB=Z((KDe,uq)=>{"use strict";var E2=oq();if(E2)try{E2([],"length")}catch{E2=null}uq.exports=E2});var lq=Z(($De,cq)=>{"use strict";var A2=Object.defineProperty||!1;if(A2)try{A2({},"a",{value:1})}catch{A2=!1}cq.exports=A2});var VB=Z((GDe,fq)=>{"use strict";fq.exports=o(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==i||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var dq=Z((WDe,hq)=>{"use strict";var pq=typeof Symbol<"u"&&Symbol,Kpe=VB();hq.exports=o(function(){return typeof pq!="function"||typeof Symbol!="function"||typeof pq("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Kpe()},"hasNativeSymbols")});var jB=Z((QDe,mq)=>{"use strict";mq.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var UB=Z((YDe,gq)=>{"use strict";var $pe=LB();gq.exports=$pe.getPrototypeOf||null});var Sq=Z((ZDe,yq)=>{"use strict";var Gpe="Function.prototype.bind called on incompatible ",Xpe=Object.prototype.toString,Wpe=Math.max,Jpe="[object Function]",vq=o(function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var s=0;s<t.length;s+=1)n[s+e.length]=t[s];return n},"concatty"),Qpe=o(function(e,t){for(var n=[],i=t||0,s=0;i<e.length;i+=1,s+=1)n[s]=e[i];return n},"slicy"),Ype=o(function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t},"joiny");yq.exports=o(function(e){var t=this;if(typeof t!="function"||Xpe.apply(t)!==Jpe)throw new TypeError(Gpe+t);for(var n=Qpe(arguments,1),i,s=o(function(){if(this instanceof i){var p=t.apply(this,vq(n,arguments));return Object(p)===p?p:this}return t.apply(e,vq(n,arguments))},"binder"),a=Wpe(0,t.length-n.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(i=Function("binder","return function ("+Ype(u,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var l=o(function(){},"Empty");l.prototype=t.prototype,i.prototype=new l,l.prototype=null}return i},"bind")});var zx=Z((t_e,xq)=>{"use strict";var Zpe=Sq();xq.exports=Function.prototype.bind||Zpe});var N2=Z((r_e,bq)=>{"use strict";bq.exports=Function.prototype.call});var MB=Z((n_e,wq)=>{"use strict";wq.exports=Function.prototype.apply});var Eq=Z((i_e,Cq)=>{"use strict";Cq.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Nq=Z((s_e,Aq)=>{"use strict";var ehe=zx(),the=MB(),rhe=N2(),nhe=Eq();Aq.exports=nhe||ehe.call(rhe,the)});var Tq=Z((a_e,Iq)=>{"use strict";var ihe=zx(),she=C2(),ahe=N2(),ohe=Nq();Iq.exports=o(function(e){if(e.length<1||typeof e[0]!="function")throw new she("a function is required");return ohe(ihe,ahe,e)},"callBindBasic")});var Bq=Z((u_e,Pq)=>{"use strict";var uhe=Tq(),Rq=kB(),_q;try{_q=[].__proto__===Array.prototype}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var qB=!!_q&&Rq&&Rq(Object.prototype,"__proto__"),Oq=Object,Dq=Oq.getPrototypeOf;Pq.exports=qB&&typeof qB.get=="function"?uhe([qB.get]):typeof Dq=="function"?o(function(e){return Dq(e==null?e:Oq(e))},"getDunder"):!1});var jq=Z((l_e,Vq)=>{"use strict";var Fq=jB(),Lq=UB(),kq=Bq();Vq.exports=Fq?o(function(e){return Fq(e)},"getProto"):Lq?o(function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return Lq(e)},"getProto"):kq?o(function(e){return kq(e)},"getProto"):null});var I2=Z((p_e,Uq)=>{"use strict";var che=Function.prototype.call,lhe=Object.prototype.hasOwnProperty,fhe=zx();Uq.exports=fhe.call(che,lhe)});var Gq=Z((h_e,$q)=>{"use strict";var wr,phe=LB(),hhe=O9(),dhe=B9(),mhe=L9(),ghe=V9(),xv=U9(),Sv=C2(),vhe=H9(),yhe=K9(),She=G9(),xhe=W9(),bhe=Q9(),whe=Z9(),Che=tq(),Ehe=sq(),zq=Function,HB=o(function(r){try{return zq('"use strict"; return ('+r+").constructor;")()}catch{}},"getEvalledConstructor"),Kx=kB(),Ahe=lq(),zB=o(function(){throw new Sv},"throwTypeError"),Nhe=Kx?(function(){try{return arguments.callee,zB}catch{try{return Kx(arguments,"callee").get}catch{return zB}}})():zB,vv=dq()(),Yi=jq(),Ihe=UB(),The=jB(),Kq=MB(),$x=N2(),yv={},Rhe=typeof Uint8Array>"u"||!Yi?wr:Yi(Uint8Array),um={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?wr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?wr:ArrayBuffer,"%ArrayIteratorPrototype%":vv&&Yi?Yi([][Symbol.iterator]()):wr,"%AsyncFromSyncIteratorPrototype%":wr,"%AsyncFunction%":yv,"%AsyncGenerator%":yv,"%AsyncGeneratorFunction%":yv,"%AsyncIteratorPrototype%":yv,"%Atomics%":typeof Atomics>"u"?wr:Atomics,"%BigInt%":typeof BigInt>"u"?wr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?wr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?wr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?wr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":hhe,"%eval%":eval,"%EvalError%":dhe,"%Float16Array%":typeof Float16Array>"u"?wr:Float16Array,"%Float32Array%":typeof Float32Array>"u"?wr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?wr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?wr:FinalizationRegistry,"%Function%":zq,"%GeneratorFunction%":yv,"%Int8Array%":typeof Int8Array>"u"?wr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?wr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?wr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vv&&Yi?Yi(Yi([][Symbol.iterator]())):wr,"%JSON%":typeof JSON=="object"?JSON:wr,"%Map%":typeof Map>"u"?wr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vv||!Yi?wr:Yi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":phe,"%Object.getOwnPropertyDescriptor%":Kx,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?wr:Promise,"%Proxy%":typeof Proxy>"u"?wr:Proxy,"%RangeError%":mhe,"%ReferenceError%":ghe,"%Reflect%":typeof Reflect>"u"?wr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?wr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vv||!Yi?wr:Yi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?wr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vv&&Yi?Yi(""[Symbol.iterator]()):wr,"%Symbol%":vv?Symbol:wr,"%SyntaxError%":xv,"%ThrowTypeError%":Nhe,"%TypedArray%":Rhe,"%TypeError%":Sv,"%Uint8Array%":typeof Uint8Array>"u"?wr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?wr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?wr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?wr:Uint32Array,"%URIError%":vhe,"%WeakMap%":typeof WeakMap>"u"?wr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?wr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?wr:WeakSet,"%Function.prototype.call%":$x,"%Function.prototype.apply%":Kq,"%Object.defineProperty%":Ahe,"%Object.getPrototypeOf%":Ihe,"%Math.abs%":yhe,"%Math.floor%":She,"%Math.max%":xhe,"%Math.min%":bhe,"%Math.pow%":whe,"%Math.round%":Che,"%Math.sign%":Ehe,"%Reflect.getPrototypeOf%":The};if(Yi)try{null.error}catch(r){Mq=Yi(Yi(r)),um["%Error.prototype%"]=Mq}var Mq,Dhe=o(function r(e){var t;if(e==="%AsyncFunction%")t=HB("async function () {}");else if(e==="%GeneratorFunction%")t=HB("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=HB("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=r("%AsyncGenerator%");i&&Yi&&(t=Yi(i.prototype))}return um[e]=t,t},"doEval"),qq={__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"]},Gx=zx(),T2=I2(),_he=Gx.call($x,Array.prototype.concat),Ohe=Gx.call(Kq,Array.prototype.splice),Hq=Gx.call($x,String.prototype.replace),R2=Gx.call($x,String.prototype.slice),Phe=Gx.call($x,RegExp.prototype.exec),Bhe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fhe=/\\(\\)?/g,Lhe=o(function(e){var t=R2(e,0,1),n=R2(e,-1);if(t==="%"&&n!=="%")throw new xv("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new xv("invalid intrinsic syntax, expected opening `%`");var i=[];return Hq(e,Bhe,function(s,a,u,c){i[i.length]=u?Hq(c,Fhe,"$1"):a||s}),i},"stringToPath"),khe=o(function(e,t){var n=e,i;if(T2(qq,n)&&(i=qq[n],n="%"+i[0]+"%"),T2(um,n)){var s=um[n];if(s===yv&&(s=Dhe(n)),typeof s>"u"&&!t)throw new Sv("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new xv("intrinsic "+e+" does not exist!")},"getBaseIntrinsic");$q.exports=o(function(e,t){if(typeof e!="string"||e.length===0)throw new Sv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Sv('"allowMissing" argument must be a boolean');if(Phe(/^%?[^%]*%?$/,e)===null)throw new xv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Lhe(e),i=n.length>0?n[0]:"",s=khe("%"+i+"%",t),a=s.name,u=s.value,c=!1,l=s.alias;l&&(i=l[0],Ohe(n,_he([0,1],l)));for(var p=1,m=!0;p<n.length;p+=1){var g=n[p],S=R2(g,0,1),v=R2(g,-1);if((S==='"'||S==="'"||S==="`"||v==='"'||v==="'"||v==="`")&&S!==v)throw new xv("property names with quotes must have matching quotes");if((g==="constructor"||!m)&&(c=!0),i+="."+g,a="%"+i+"%",T2(um,a))u=um[a];else if(u!=null){if(!(g in u)){if(!t)throw new Sv("base intrinsic for "+e+" exists, but the property is not available.");return}if(Kx&&p+1>=n.length){var b=Kx(u,g);m=!!b,m&&"get"in b&&!("originalValue"in b.get)?u=b.get:u=u[g]}else m=T2(u,g),u=u[g];m&&!c&&(um[a]=u)}}return u},"GetIntrinsic")});var Wq=Z((m_e,Xq)=>{"use strict";var Vhe=VB();Xq.exports=o(function(){return Vhe()&&!!Symbol.toStringTag},"hasToStringTagShams")});var Yq=Z((v_e,Qq)=>{"use strict";var jhe=Gq(),Jq=jhe("%Object.defineProperty%",!0),Uhe=Wq()(),Mhe=I2(),qhe=C2(),D2=Uhe?Symbol.toStringTag:null;Qq.exports=o(function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof i<"u"&&typeof i!="boolean")throw new qhe("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");D2&&(n||!Mhe(e,D2))&&(Jq?Jq(e,D2,{configurable:!i,enumerable:!1,value:t,writable:!1}):e[D2]=t)},"setToStringTag")});var eH=Z((S_e,Zq)=>{"use strict";Zq.exports=function(r,e){return Object.keys(e).forEach(function(t){r[t]=r[t]||e[t]}),r}});var WB=Z((x_e,tH)=>{"use strict";var XB=a9(),Hhe=require("util"),KB=require("path"),zhe=require("http"),Khe=require("https"),$he=require("url").parse,Ghe=require("fs"),Xhe=require("stream").Stream,Whe=require("crypto"),$B=p9(),Jhe=R9(),Qhe=Yq(),Hp=I2(),GB=eH();function Pr(r){if(!(this instanceof Pr))return new Pr(r);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],XB.call(this),r=r||{};for(var e in r)this[e]=r[e]}o(Pr,"FormData");Hhe.inherits(Pr,XB);Pr.LINE_BREAK=`\r
46
46
  `;Pr.DEFAULT_CONTENT_TYPE="application/octet-stream";Pr.prototype.append=function(r,e,t){t=t||{},typeof t=="string"&&(t={filename:t});var n=XB.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(r,e,t),s=this._multiPartFooter();n(i),n(e),n(s),this._trackLength(i,e,t)};Pr.prototype._trackLength=function(r,e,t){var n=0;t.knownLength!=null?n+=Number(t.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(r)+Pr.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&Hp(e,"httpVersion"))&&!(e instanceof Xhe))&&(t.knownLength||this._valuesToMeasure.push(e))};Pr.prototype._lengthRetriever=function(r,e){Hp(r,"fd")?r.end!=null&&r.end!=1/0&&r.start!=null?e(null,r.end+1-(r.start?r.start:0)):Ghe.stat(r.path,function(t,n){if(t){e(t);return}var i=n.size-(r.start?r.start:0);e(null,i)}):Hp(r,"httpVersion")?e(null,Number(r.headers["content-length"])):Hp(r,"httpModule")?(r.on("response",function(t){r.pause(),e(null,Number(t.headers["content-length"]))}),r.resume()):e("Unknown stream")};Pr.prototype._multiPartHeader=function(r,e,t){if(typeof t.header=="string")return t.header;var n=this._getContentDisposition(e,t),i=this._getContentType(e,t),s="",a={"Content-Disposition":["form-data",'name="'+r+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof t.header=="object"&&GB(a,t.header);var u;for(var c in a)if(Hp(a,c)){if(u=a[c],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(s+=c+": "+u.join("; ")+Pr.LINE_BREAK)}return"--"+this.getBoundary()+Pr.LINE_BREAK+s+Pr.LINE_BREAK};Pr.prototype._getContentDisposition=function(r,e){var t;if(typeof e.filepath=="string"?t=KB.normalize(e.filepath).replace(/\\/g,"/"):e.filename||r&&(r.name||r.path)?t=KB.basename(e.filename||r&&(r.name||r.path)):r&&r.readable&&Hp(r,"httpVersion")&&(t=KB.basename(r.client._httpMessage.path||"")),t)return'filename="'+t+'"'};Pr.prototype._getContentType=function(r,e){var t=e.contentType;return!t&&r&&r.name&&(t=$B.lookup(r.name)),!t&&r&&r.path&&(t=$B.lookup(r.path)),!t&&r&&r.readable&&Hp(r,"httpVersion")&&(t=r.headers["content-type"]),!t&&(e.filepath||e.filename)&&(t=$B.lookup(e.filepath||e.filename)),!t&&r&&typeof r=="object"&&(t=Pr.DEFAULT_CONTENT_TYPE),t};Pr.prototype._multiPartFooter=function(){return(function(r){var e=Pr.LINE_BREAK,t=this._streams.length===0;t&&(e+=this._lastBoundary()),r(e)}).bind(this)};Pr.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Pr.LINE_BREAK};Pr.prototype.getHeaders=function(r){var e,t={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in r)Hp(r,e)&&(t[e.toLowerCase()]=r[e]);return t};Pr.prototype.setBoundary=function(r){if(typeof r!="string")throw new TypeError("FormData boundary must be a string");this._boundary=r};Pr.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Pr.prototype.getBuffer=function(){for(var r=new Buffer.alloc(0),e=this.getBoundary(),t=0,n=this._streams.length;t<n;t++)typeof this._streams[t]!="function"&&(Buffer.isBuffer(this._streams[t])?r=Buffer.concat([r,this._streams[t]]):r=Buffer.concat([r,Buffer.from(this._streams[t])]),(typeof this._streams[t]!="string"||this._streams[t].substring(2,e.length+2)!==e)&&(r=Buffer.concat([r,Buffer.from(Pr.LINE_BREAK)])));return Buffer.concat([r,Buffer.from(this._lastBoundary())])};Pr.prototype._generateBoundary=function(){this._boundary="--------------------------"+Whe.randomBytes(12).toString("hex")};Pr.prototype.getLengthSync=function(){var r=this._overheadLength+this._valueLength;return this._streams.length&&(r+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),r};Pr.prototype.hasKnownLength=function(){var r=!0;return this._valuesToMeasure.length&&(r=!1),r};Pr.prototype.getLength=function(r){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(r.bind(this,null,e));return}Jhe.parallel(this._valuesToMeasure,this._lengthRetriever,function(t,n){if(t){r(t);return}n.forEach(function(i){e+=i}),r(null,e)})};Pr.prototype.submit=function(r,e){var t,n,i={method:"post"};return typeof r=="string"?(r=$he(r),n=GB({port:r.port,path:r.pathname,host:r.hostname,protocol:r.protocol},i)):(n=GB(r,i),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(r.headers),n.protocol==="https:"?t=Khe.request(n):t=zhe.request(n),this.getLength((function(s,a){if(s&&s!=="Unknown stream"){this._error(s);return}if(a&&t.setHeader("Content-Length",a),this.pipe(t),e){var u,c=o(function(l,p){return t.removeListener("error",c),t.removeListener("response",u),e.call(this,l,p)},"callback");u=c.bind(this,null),t.on("error",c),t.on("response",u)}}).bind(this)),t};Pr.prototype._error=function(r){this.error||(this.error=r,this.pause(),this.emit("error",r))};Pr.prototype.toString=function(){return"[object FormData]"};Qhe(Pr,"FormData");tH.exports=Pr});var JB=Z(rH=>{"use strict";var Yhe=require("url").parse,Zhe={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},ede=String.prototype.endsWith||function(r){return r.length<=this.length&&this.indexOf(r,this.length-r.length)!==-1};function tde(r){var e=typeof r=="string"?Yhe(r):r||{},t=e.protocol,n=e.host,i=e.port;if(typeof n!="string"||!n||typeof t!="string"||(t=t.split(":",1)[0],n=n.replace(/:\d*$/,""),i=parseInt(i)||Zhe[t]||0,!rde(n,i)))return"";var s=bv("npm_config_"+t+"_proxy")||bv(t+"_proxy")||bv("npm_config_proxy")||bv("all_proxy");return s&&s.indexOf("://")===-1&&(s=t+"://"+s),s}o(tde,"getProxyForUrl");function rde(r,e){var t=(bv("npm_config_no_proxy")||bv("no_proxy")).toLowerCase();return t?t==="*"?!1:t.split(/[,\s]/).every(function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),s=i?i[1]:n,a=i?parseInt(i[2]):0;return a&&a!==e?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!ede.call(r,s)):r!==s}):!0}o(rde,"shouldProxy");function bv(r){return process.env[r.toLowerCase()]||process.env[r.toUpperCase()]||""}o(bv,"getEnv");rH.getProxyForUrl=tde});var iH=Z((E_e,nH)=>{"use strict";var Xx;nH.exports=function(){if(!Xx){try{Xx=mv()("follow-redirects")}catch{}typeof Xx!="function"&&(Xx=o(function(){},"debug"))}Xx.apply(null,arguments)}});var c4=Z((N_e,u4)=>{"use strict";var Jx=require("url"),Wx=Jx.URL,nde=require("http"),ide=require("https"),t4=require("stream").Writable,r4=require("assert"),sH=iH();o((function(){var e=typeof process<"u",t=typeof window<"u"&&typeof document<"u",n=lm(Error.captureStackTrace);!e&&(t||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")}),"detectUnsupportedEnvironment")();var n4=!1;try{r4(new Wx(""))}catch(r){n4=r.code==="ERR_INVALID_URL"}var sde=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],i4=["abort","aborted","connect","error","socket","timeout"],s4=Object.create(null);i4.forEach(function(r){s4[r]=function(e,t,n){this._redirectable.emit(r,e,t,n)}});var YB=Qx("ERR_INVALID_URL","Invalid URL",TypeError),ZB=Qx("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),ade=Qx("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",ZB),ode=Qx("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),ude=Qx("ERR_STREAM_WRITE_AFTER_END","write after end"),cde=t4.prototype.destroy||oH;function Ba(r,e){t4.call(this),this._sanitizeOptions(r),this._options=r,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(n){try{t._processResponse(n)}catch(i){t.emit("error",i instanceof ZB?i:new ZB({cause:i}))}},this._performRequest()}o(Ba,"RedirectableRequest");Ba.prototype=Object.create(t4.prototype);Ba.prototype.abort=function(){o4(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Ba.prototype.destroy=function(r){return o4(this._currentRequest,r),cde.call(this,r),this};Ba.prototype.write=function(r,e,t){if(this._ending)throw new ude;if(!cm(r)&&!pde(r))throw new TypeError("data should be a string, Buffer or Uint8Array");if(lm(e)&&(t=e,e=null),r.length===0){t&&t();return}this._requestBodyLength+r.length<=this._options.maxBodyLength?(this._requestBodyLength+=r.length,this._requestBodyBuffers.push({data:r,encoding:e}),this._currentRequest.write(r,e,t)):(this.emit("error",new ode),this.abort())};Ba.prototype.end=function(r,e,t){if(lm(r)?(t=r,r=e=null):lm(e)&&(t=e,e=null),!r)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var n=this,i=this._currentRequest;this.write(r,e,function(){n._ended=!0,i.end(null,null,t)}),this._ending=!0}};Ba.prototype.setHeader=function(r,e){this._options.headers[r]=e,this._currentRequest.setHeader(r,e)};Ba.prototype.removeHeader=function(r){delete this._options.headers[r],this._currentRequest.removeHeader(r)};Ba.prototype.setTimeout=function(r,e){var t=this;function n(a){a.setTimeout(r),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}o(n,"destroyOnTimeout");function i(a){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),s()},r),n(a)}o(i,"startTimer");function s(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",s),t.removeListener("error",s),t.removeListener("response",s),t.removeListener("close",s),e&&t.removeListener("timeout",e),t.socket||t._currentRequest.removeListener("socket",i)}return o(s,"clearTimer"),e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(r){Ba.prototype[r]=function(e,t){return this._currentRequest[r](e,t)}});["aborted","connection","socket"].forEach(function(r){Object.defineProperty(Ba.prototype,r,{get:o(function(){return this._currentRequest[r]},"get")})});Ba.prototype._sanitizeOptions=function(r){if(r.headers||(r.headers={}),r.host&&(r.hostname||(r.hostname=r.host),delete r.host),!r.pathname&&r.path){var e=r.path.indexOf("?");e<0?r.pathname=r.path:(r.pathname=r.path.substring(0,e),r.search=r.path.substring(e))}};Ba.prototype._performRequest=function(){var r=this._options.protocol,e=this._options.nativeProtocols[r];if(!e)throw new TypeError("Unsupported protocol "+r);if(this._options.agents){var t=r.slice(0,-1);this._options.agent=this._options.agents[t]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of i4)n.on(i,s4[i]);if(this._currentUrl=/^\//.test(this._options.path)?Jx.format(this._options):this._options.path,this._isRedirect){var s=0,a=this,u=this._requestBodyBuffers;o((function c(l){if(n===a._currentRequest)if(l)a.emit("error",l);else if(s<u.length){var p=u[s++];n.finished||n.write(p.data,p.encoding,c)}else a._ended&&n.end()}),"writeNext")()}};Ba.prototype._processResponse=function(r){var e=r.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:r.headers,statusCode:e});var t=r.headers.location;if(!t||this._options.followRedirects===!1||e<300||e>=400){r.responseUrl=this._currentUrl,r.redirects=this._redirects,this.emit("response",r),this._requestBodyBuffers=[];return}if(o4(this._currentRequest),r.destroy(),++this._redirectCount>this._options.maxRedirects)throw new ade;var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:r.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],QB(/^content-/i,this._options.headers));var a=QB(/^host$/i,this._options.headers),u=a4(this._currentUrl),c=a||u.host,l=/^\w+:/.test(t)?this._currentUrl:Jx.format(Object.assign(u,{host:c})),p=lde(t,l);if(sH("redirecting to",p.href),this._isRedirect=!0,e4(p,this._options),(p.protocol!==u.protocol&&p.protocol!=="https:"||p.host!==c&&!fde(p.host,c))&&QB(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),lm(i)){var m={headers:r.headers,statusCode:e},g={url:l,method:s,headers:n};i(this._options,m,g),this._sanitizeOptions(this._options)}this._performRequest()};function aH(r){var e={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(r).forEach(function(n){var i=n+":",s=t[i]=r[n],a=e[n]=Object.create(s);function u(l,p,m){return hde(l)?l=e4(l):cm(l)?l=e4(a4(l)):(m=p,p=uH(l),l={protocol:i}),lm(p)&&(m=p,p=null),p=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},l,p),p.nativeProtocols=t,!cm(p.host)&&!cm(p.hostname)&&(p.hostname="::1"),r4.equal(p.protocol,i,"protocol mismatch"),sH("options",p),new Ba(p,m)}o(u,"request");function c(l,p,m){var g=a.request(l,p,m);return g.end(),g}o(c,"get"),Object.defineProperties(a,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}o(aH,"wrap");function oH(){}o(oH,"noop");function a4(r){var e;if(n4)e=new Wx(r);else if(e=uH(Jx.parse(r)),!cm(e.protocol))throw new YB({input:r});return e}o(a4,"parseUrl");function lde(r,e){return n4?new Wx(r,e):a4(Jx.resolve(e,r))}o(lde,"resolveUrl");function uH(r){if(/^\[/.test(r.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(r.hostname))throw new YB({input:r.href||r});if(/^\[/.test(r.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(r.host))throw new YB({input:r.href||r});return r}o(uH,"validateUrl");function e4(r,e){var t=e||{};for(var n of sde)t[n]=r[n];return t.hostname.startsWith("[")&&(t.hostname=t.hostname.slice(1,-1)),t.port!==""&&(t.port=Number(t.port)),t.path=t.search?t.pathname+t.search:t.pathname,t}o(e4,"spreadUrlObject");function QB(r,e){var t;for(var n in e)r.test(n)&&(t=e[n],delete e[n]);return t===null||typeof t>"u"?void 0:String(t).trim()}o(QB,"removeMatchingHeaders");function Qx(r,e,t){function n(i){lm(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=r,this.message=this.cause?e+": "+this.cause.message:e}return o(n,"CustomError"),n.prototype=new(t||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+r+"]",enumerable:!1}}),n}o(Qx,"createErrorType");function o4(r,e){for(var t of i4)r.removeListener(t,s4[t]);r.on("error",oH),r.destroy(e)}o(o4,"destroyRequest");function fde(r,e){r4(cm(r)&&cm(e));var t=r.length-e.length-1;return t>0&&r[t]==="."&&r.endsWith(e)}o(fde,"isSubdomain");function cm(r){return typeof r=="string"||r instanceof String}o(cm,"isString");function lm(r){return typeof r=="function"}o(lm,"isFunction");function pde(r){return typeof r=="object"&&"length"in r}o(pde,"isBuffer");function hde(r){return Wx&&r instanceof Wx}o(hde,"isURL");u4.exports=aH({http:nde,https:ide});u4.exports.wrap=aH});var O4=Z((T_e,nz)=>{"use strict";var dde=WB(),mde=require("crypto"),gde=require("url"),vde=JB(),yde=require("http"),Sde=require("https"),xde=require("util"),bde=c4(),wde=require("zlib"),_H=require("stream"),Cde=require("events");function Lc(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}o(Lc,"_interopDefaultLegacy");var OH=Lc(dde),Ede=Lc(mde),Ade=Lc(gde),Nde=Lc(vde),Ide=Lc(yde),Tde=Lc(Sde),PH=Lc(xde),Rde=Lc(bde),Kp=Lc(wde),zp=Lc(_H);function BH(r,e){return o(function(){return r.apply(e,arguments)},"wrap")}o(BH,"bind");var{toString:Dde}=Object.prototype,{getPrototypeOf:A4}=Object,{iterator:j2,toStringTag:FH}=Symbol,U2=(r=>e=>{let t=Dde.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Ru=o(r=>(r=r.toLowerCase(),e=>U2(e)===r),"kindOfTest"),M2=o(r=>e=>typeof e===r,"typeOfTest"),{isArray:Iv}=Array,Cv=M2("undefined");function eb(r){return r!==null&&!Cv(r)&&r.constructor!==null&&!Cv(r.constructor)&&Fa(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}o(eb,"isBuffer");var LH=Ru("ArrayBuffer");function _de(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&LH(r.buffer),e}o(_de,"isArrayBufferView");var Ode=M2("string"),Fa=M2("function"),kH=M2("number"),tb=o(r=>r!==null&&typeof r=="object","isObject"),Pde=o(r=>r===!0||r===!1,"isBoolean"),O2=o(r=>{if(U2(r)!=="object")return!1;let e=A4(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(FH in r)&&!(j2 in r)},"isPlainObject"),Bde=o(r=>{if(!tb(r)||eb(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},"isEmptyObject"),Fde=Ru("Date"),Lde=Ru("File"),kde=Ru("Blob"),Vde=Ru("FileList"),jde=o(r=>tb(r)&&Fa(r.pipe),"isStream"),Ude=o(r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||Fa(r.append)&&((e=U2(r))==="formdata"||e==="object"&&Fa(r.toString)&&r.toString()==="[object FormData]"))},"isFormData"),Mde=Ru("URLSearchParams"),[qde,Hde,zde,Kde]=["ReadableStream","Request","Response","Headers"].map(Ru),$de=o(r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function rb(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),Iv(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{if(eb(r))return;let s=t?Object.getOwnPropertyNames(r):Object.keys(r),a=s.length,u;for(n=0;n<a;n++)u=s[n],e.call(null,r[u],u,r)}}o(rb,"forEach");function VH(r,e){if(eb(r))return null;e=e.toLowerCase();let t=Object.keys(r),n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}o(VH,"findKey");var fm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jH=o(r=>!Cv(r)&&r!==fm,"isContextDefined");function m4(){let{caseless:r,skipUndefined:e}=jH(this)&&this||{},t={},n=o((i,s)=>{let a=r&&VH(t,s)||s;O2(t[a])&&O2(i)?t[a]=m4(t[a],i):O2(i)?t[a]=m4({},i):Iv(i)?t[a]=i.slice():(!e||!Cv(i))&&(t[a]=i)},"assignValue");for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&rb(arguments[i],n);return t}o(m4,"merge");var Gde=o((r,e,t,{allOwnKeys:n}={})=>(rb(e,(i,s)=>{t&&Fa(i)?r[s]=BH(i,t):r[s]=i},{allOwnKeys:n}),r),"extend"),Xde=o(r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),"stripBOM"),Wde=o((r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},"inherits"),Jde=o((r,e,t,n)=>{let i,s,a,u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)a=i[s],(!n||n(a,r,e))&&!u[a]&&(e[a]=r[a],u[a]=!0);r=t!==!1&&A4(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},"toFlatObject"),Qde=o((r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},"endsWith"),Yde=o(r=>{if(!r)return null;if(Iv(r))return r;let e=r.length;if(!kH(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},"toArray"),Zde=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&A4(Uint8Array)),eme=o((r,e)=>{let n=(r&&r[j2]).call(r),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(r,s[0],s[1])}},"forEachEntry"),tme=o((r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},"matchAll"),rme=Ru("HTMLFormElement"),nme=o(r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,o(function(t,n,i){return n.toUpperCase()+i},"replacer")),"toCamelCase"),cH=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),ime=Ru("RegExp"),UH=o((r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};rb(t,(i,s)=>{let a;(a=e(i,s,r))!==!1&&(n[s]=a||i)}),Object.defineProperties(r,n)},"reduceDescriptors"),sme=o(r=>{UH(r,(e,t)=>{if(Fa(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(Fa(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},"freezeMethods"),ame=o((r,e)=>{let t={},n=o(i=>{i.forEach(s=>{t[s]=!0})},"define");return Iv(r)?n(r):n(String(r).split(e)),t},"toObjectSet"),ome=o(()=>{},"noop"),ume=o((r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,"toFiniteNumber");function cme(r){return!!(r&&Fa(r.append)&&r[FH]==="FormData"&&r[j2])}o(cme,"isSpecCompliantForm");var lme=o(r=>{let e=new Array(10),t=o((n,i)=>{if(tb(n)){if(e.indexOf(n)>=0)return;if(eb(n))return n;if(!("toJSON"in n)){e[i]=n;let s=Iv(n)?[]:{};return rb(n,(a,u)=>{let c=t(a,i+1);!Cv(c)&&(s[u]=c)}),e[i]=void 0,s}}return n},"visit");return t(r,0)},"toJSONObject"),fme=Ru("AsyncFunction"),pme=o(r=>r&&(tb(r)||Fa(r))&&Fa(r.then)&&Fa(r.catch),"isThenable"),MH=((r,e)=>r?setImmediate:e?((t,n)=>(fm.addEventListener("message",({source:i,data:s})=>{i===fm&&s===t&&n.length&&n.shift()()},!1),i=>{n.push(i),fm.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Fa(fm.postMessage)),hme=typeof queueMicrotask<"u"?queueMicrotask.bind(fm):typeof process<"u"&&process.nextTick||MH,dme=o(r=>r!=null&&Fa(r[j2]),"isIterable"),ve={isArray:Iv,isArrayBuffer:LH,isBuffer:eb,isFormData:Ude,isArrayBufferView:_de,isString:Ode,isNumber:kH,isBoolean:Pde,isObject:tb,isPlainObject:O2,isEmptyObject:Bde,isReadableStream:qde,isRequest:Hde,isResponse:zde,isHeaders:Kde,isUndefined:Cv,isDate:Fde,isFile:Lde,isBlob:kde,isRegExp:ime,isFunction:Fa,isStream:jde,isURLSearchParams:Mde,isTypedArray:Zde,isFileList:Vde,forEach:rb,merge:m4,extend:Gde,trim:$de,stripBOM:Xde,inherits:Wde,toFlatObject:Jde,kindOf:U2,kindOfTest:Ru,endsWith:Qde,toArray:Yde,forEachEntry:eme,matchAll:tme,isHTMLForm:rme,hasOwnProperty:cH,hasOwnProp:cH,reduceDescriptors:UH,freezeMethods:sme,toObjectSet:ame,toCamelCase:nme,noop:ome,toFiniteNumber:ume,findKey:VH,global:fm,isContextDefined:jH,isSpecCompliantForm:cme,toJSONObject:lme,isAsyncFn:fme,isThenable:pme,setImmediate:MH,asap:hme,isIterable:dme};function gt(r,e,t,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}o(gt,"AxiosError");ve.inherits(gt,Error,{toJSON:o(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:ve.toJSONObject(this.config),code:this.code,status:this.status}},"toJSON")});var qH=gt.prototype,HH={};["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(r=>{HH[r]={value:r}});Object.defineProperties(gt,HH);Object.defineProperty(qH,"isAxiosError",{value:!0});gt.from=(r,e,t,n,i,s)=>{let a=Object.create(qH);ve.toFlatObject(r,a,o(function(p){return p!==Error.prototype},"filter"),l=>l!=="isAxiosError");let u=r&&r.message?r.message:"Error",c=e==null&&r?r.code:e;return gt.call(a,u,c,t,n,i),r&&a.cause==null&&Object.defineProperty(a,"cause",{value:r,configurable:!0}),a.name=r&&r.name||"Error",s&&Object.assign(a,s),a};function g4(r){return ve.isPlainObject(r)||ve.isArray(r)}o(g4,"isVisitable");function zH(r){return ve.endsWith(r,"[]")?r.slice(0,-2):r}o(zH,"removeBrackets");function lH(r,e,t){return r?r.concat(e).map(o(function(i,s){return i=zH(i),!t&&s?"["+i+"]":i},"each")).join(t?".":""):e}o(lH,"renderKey");function mme(r){return ve.isArray(r)&&!r.some(g4)}o(mme,"isFlatArray");var gme=ve.toFlatObject(ve,{},null,o(function(e){return/^is[A-Z]/.test(e)},"filter"));function q2(r,e,t){if(!ve.isObject(r))throw new TypeError("target must be an object");e=e||new(OH.default||FormData),t=ve.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,o(function(b,x){return!ve.isUndefined(x[b])},"defined"));let n=t.metaTokens,i=t.visitor||p,s=t.dots,a=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&ve.isSpecCompliantForm(e);if(!ve.isFunction(i))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(ve.isDate(v))return v.toISOString();if(ve.isBoolean(v))return v.toString();if(!c&&ve.isBlob(v))throw new gt("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(v)||ve.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}o(l,"convertValue");function p(v,b,x){let E=v;if(v&&!x&&typeof v=="object"){if(ve.endsWith(b,"{}"))b=n?b:b.slice(0,-2),v=JSON.stringify(v);else if(ve.isArray(v)&&mme(v)||(ve.isFileList(v)||ve.endsWith(b,"[]"))&&(E=ve.toArray(v)))return b=zH(b),E.forEach(o(function(w,C){!(ve.isUndefined(w)||w===null)&&e.append(a===!0?lH([b],C,s):a===null?b:b+"[]",l(w))},"each")),!1}return g4(v)?!0:(e.append(lH(x,b,s),l(v)),!1)}o(p,"defaultVisitor");let m=[],g=Object.assign(gme,{defaultVisitor:p,convertValue:l,isVisitable:g4});function S(v,b){if(!ve.isUndefined(v)){if(m.indexOf(v)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(v),ve.forEach(v,o(function(E,N){(!(ve.isUndefined(E)||E===null)&&i.call(e,E,ve.isString(N)?N.trim():N,b,g))===!0&&S(E,b?b.concat(N):[N])},"each")),m.pop()}}if(o(S,"build"),!ve.isObject(r))throw new TypeError("data must be an object");return S(r),e}o(q2,"toFormData");function fH(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,o(function(n){return e[n]},"replacer"))}o(fH,"encode$1");function KH(r,e){this._pairs=[],r&&q2(r,this,e)}o(KH,"AxiosURLSearchParams");var $H=KH.prototype;$H.append=o(function(e,t){this._pairs.push([e,t])},"append");$H.toString=o(function(e){let t=e?function(n){return e.call(this,n,fH)}:fH;return this._pairs.map(o(function(i){return t(i[0])+"="+t(i[1])},"each"),"").join("&")},"toString");function vme(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}o(vme,"encode");function N4(r,e,t){if(!e)return r;let n=t&&t.encode||vme;ve.isFunction(t)&&(t={serialize:t});let i=t&&t.serialize,s;if(i?s=i(e,t):s=ve.isURLSearchParams(e)?e.toString():new KH(e,t).toString(n),s){let a=r.indexOf("#");a!==-1&&(r=r.slice(0,a)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}o(N4,"buildURL");var v4=class{static{o(this,"InterceptorManager")}constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ve.forEach(this.handlers,o(function(n){n!==null&&e(n)},"forEachHandler"))}},pH=v4,I4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yme=Ade.default.URLSearchParams,l4="abcdefghijklmnopqrstuvwxyz",hH="0123456789",GH={DIGIT:hH,ALPHA:l4,ALPHA_DIGIT:l4+l4.toUpperCase()+hH},Sme=o((r=16,e=GH.ALPHA_DIGIT)=>{let t="",{length:n}=e,i=new Uint32Array(r);Ede.default.randomFillSync(i);for(let s=0;s<r;s++)t+=e[i[s]%n];return t},"generateString"),xme={isNode:!0,classes:{URLSearchParams:yme,FormData:OH.default,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:GH,generateString:Sme,protocols:["http","https","file","data"]},T4=typeof window<"u"&&typeof document<"u",y4=typeof navigator=="object"&&navigator||void 0,bme=T4&&(!y4||["ReactNative","NativeScript","NS"].indexOf(y4.product)<0),wme=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Cme=T4&&window.location.href||"http://localhost",Eme=Object.freeze({__proto__:null,hasBrowserEnv:T4,hasStandardBrowserWebWorkerEnv:wme,hasStandardBrowserEnv:bme,navigator:y4,origin:Cme}),ui={...Eme,...xme};function Ame(r,e){return q2(r,new ui.classes.URLSearchParams,{visitor:o(function(t,n,i,s){return ui.isNode&&ve.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},"visitor"),...e})}o(Ame,"toURLEncodedForm");function Nme(r){return ve.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}o(Nme,"parsePropPath");function Ime(r){let e={},t=Object.keys(r),n,i=t.length,s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}o(Ime,"arrayToObject");function XH(r){function e(t,n,i,s){let a=t[s++];if(a==="__proto__")return!0;let u=Number.isFinite(+a),c=s>=t.length;return a=!a&&ve.isArray(i)?i.length:a,c?(ve.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!u):((!i[a]||!ve.isObject(i[a]))&&(i[a]=[]),e(t,n,i[a],s)&&ve.isArray(i[a])&&(i[a]=Ime(i[a])),!u)}if(o(e,"buildPath"),ve.isFormData(r)&&ve.isFunction(r.entries)){let t={};return ve.forEachEntry(r,(n,i)=>{e(Nme(n),i,t,0)}),t}return null}o(XH,"formDataToJSON");function Tme(r,e,t){if(ve.isString(r))try{return(e||JSON.parse)(r),ve.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}o(Tme,"stringifySafely");var R4={transitional:I4,adapter:["xhr","http","fetch"],transformRequest:[o(function(e,t){let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=ve.isObject(e);if(s&&ve.isHTMLForm(e)&&(e=new FormData(e)),ve.isFormData(e))return i?JSON.stringify(XH(e)):e;if(ve.isArrayBuffer(e)||ve.isBuffer(e)||ve.isStream(e)||ve.isFile(e)||ve.isBlob(e)||ve.isReadableStream(e))return e;if(ve.isArrayBufferView(e))return e.buffer;if(ve.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ame(e,this.formSerializer).toString();if((u=ve.isFileList(e))||n.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return q2(u?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),Tme(e)):e},"transformRequest")],transformResponse:[o(function(e){let t=this.transitional||R4.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(ve.isResponse(e)||ve.isReadableStream(e))return e;if(e&&ve.isString(e)&&(n&&!this.responseType||i)){let a=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?gt.from(u,gt.ERR_BAD_RESPONSE,this,null,this.response):u}}return e},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ui.classes.FormData,Blob:ui.classes.Blob},validateStatus:o(function(e){return e>=200&&e<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch"],r=>{R4.headers[r]={}});var D4=R4,Rme=ve.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"]),Dme=o(r=>{let e={},t,n,i;return r&&r.split(`
47
47
  `).forEach(o(function(a){i=a.indexOf(":"),t=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!t||e[t]&&Rme[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)},"parser")),e},"parseHeaders"),dH=Symbol("internals");function Yx(r){return r&&String(r).trim().toLowerCase()}o(Yx,"normalizeHeader");function P2(r){return r===!1||r==null?r:ve.isArray(r)?r.map(P2):String(r)}o(P2,"normalizeValue");function _me(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}o(_me,"parseTokens");var Ome=o(r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()),"isValidHeaderName");function f4(r,e,t,n,i){if(ve.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!ve.isString(e)){if(ve.isString(n))return e.indexOf(n)!==-1;if(ve.isRegExp(n))return n.test(e)}}o(f4,"matchHeaderValue");function Pme(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}o(Pme,"formatHeader");function Bme(r,e){let t=ve.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:o(function(i,s,a){return this[n].call(this,e,i,s,a)},"value"),configurable:!0})})}o(Bme,"buildAccessors");var Ev=class{static{o(this,"AxiosHeaders")}constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function s(u,c,l){let p=Yx(c);if(!p)throw new Error("header name must be a non-empty string");let m=ve.findKey(i,p);(!m||i[m]===void 0||l===!0||l===void 0&&i[m]!==!1)&&(i[m||c]=P2(u))}o(s,"setHeader");let a=o((u,c)=>ve.forEach(u,(l,p)=>s(l,p,c)),"setHeaders");if(ve.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ve.isString(e)&&(e=e.trim())&&!Ome(e))a(Dme(e),t);else if(ve.isObject(e)&&ve.isIterable(e)){let u={},c,l;for(let p of e){if(!ve.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[l=p[0]]=(c=u[l])?ve.isArray(c)?[...c,p[1]]:[c,p[1]]:p[1]}a(u,t)}else e!=null&&s(t,e,n);return this}get(e,t){if(e=Yx(e),e){let n=ve.findKey(this,e);if(n){let i=this[n];if(!t)return i;if(t===!0)return _me(i);if(ve.isFunction(t))return t.call(this,i,n);if(ve.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Yx(e),e){let n=ve.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||f4(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function s(a){if(a=Yx(a),a){let u=ve.findKey(n,a);u&&(!t||f4(n,n[u],u,t))&&(delete n[u],i=!0)}}return o(s,"deleteHeader"),ve.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let s=t[n];(!e||f4(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,n={};return ve.forEach(this,(i,s)=>{let a=ve.findKey(n,s);if(a){t[a]=P2(i),delete t[s];return}let u=e?Pme(s):String(s).trim();u!==s&&delete t[s],t[u]=P2(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ve.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&ve.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
48
48
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[dH]=this[dH]={accessors:{}}).accessors,i=this.prototype;function s(a){let u=Yx(a);n[u]||(Bme(i,a),n[u]=!0)}return o(s,"defineAccessor"),ve.isArray(e)?e.forEach(s):s(e),this}};Ev.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ve.reduceDescriptors(Ev.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:o(()=>r,"get"),set(n){this[t]=n}}});ve.freezeMethods(Ev);var La=Ev;function p4(r,e){let t=this||D4,n=e||t,i=La.from(n.headers),s=n.data;return ve.forEach(r,o(function(u){s=u.call(t,s,i.normalize(),e?e.status:void 0)},"transform")),i.normalize(),s}o(p4,"transformData");function WH(r){return!!(r&&r.__CANCEL__)}o(WH,"isCancel");function $p(r,e,t){gt.call(this,r??"canceled",gt.ERR_CANCELED,e,t),this.name="CanceledError"}o($p,"CanceledError");ve.inherits($p,gt,{__CANCEL__:!0});function wv(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new gt("Request failed with status code "+t.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}o(wv,"settle");function Fme(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}o(Fme,"isAbsoluteURL");function Lme(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}o(Lme,"combineURLs");function _4(r,e,t){let n=!Fme(e);return r&&(n||t==!1)?Lme(r,e):e}o(_4,"buildFullPath");var L2="1.12.2";function JH(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}o(JH,"parseProtocol");var kme=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Vme(r,e,t){let n=t&&t.Blob||ui.classes.Blob,i=JH(r);if(e===void 0&&n&&(e=!0),i==="data"){r=i.length?r.slice(i.length+1):r;let s=kme.exec(r);if(!s)throw new gt("Invalid URL",gt.ERR_INVALID_URL);let a=s[1],u=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),u?"base64":"utf8");if(e){if(!n)throw new gt("Blob is not supported",gt.ERR_NOT_SUPPORT);return new n([l],{type:a})}return l}throw new gt("Unsupported protocol "+i,gt.ERR_NOT_SUPPORT)}o(Vme,"fromDataURI");var h4=Symbol("internals"),S4=class extends zp.default.Transform{static{o(this,"AxiosTransformStream")}constructor(e){e=ve.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,i)=>!ve.isUndefined(i[n])),super({readableHighWaterMark:e.chunkSize});let t=this[h4]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){let t=this[h4];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){let i=this[h4],s=i.maxRate,a=this.readableHighWaterMark,u=i.timeWindow,c=1e3/u,l=s/c,p=i.minChunkSize!==!1?Math.max(i.minChunkSize,l*.01):0,m=o((S,v)=>{let b=Buffer.byteLength(S);i.bytesSeen+=b,i.bytes+=b,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(S)?process.nextTick(v):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(v)}},"pushChunk"),g=o((S,v)=>{let b=Buffer.byteLength(S),x=null,E=a,N,w=0;if(s){let C=Date.now();(!i.ts||(w=C-i.ts)>=u)&&(i.ts=C,N=l-i.bytes,i.bytes=N<0?-N:0,w=0),N=l-i.bytes}if(s){if(N<=0)return setTimeout(()=>{v(null,S)},u-w);N<E&&(E=N)}E&&b>E&&b-E>p&&(x=S.subarray(E),S=S.subarray(0,E)),m(S,x?()=>{process.nextTick(v,null,x)}:v)},"transformChunk");g(e,o(function S(v,b){if(v)return n(v);b?g(b,S):n(null)},"transformNextChunk"))}},mH=S4,{asyncIterator:gH}=Symbol,jme=o(async function*(r){r.stream?yield*r.stream():r.arrayBuffer?yield await r.arrayBuffer():r[gH]?yield*r[gH]():yield r},"readBlob"),QH=jme,Ume=ui.ALPHABET.ALPHA_DIGIT+"-_",Zx=typeof TextEncoder=="function"?new TextEncoder:new PH.default.TextEncoder,pm=`\r
@@ -105,7 +105,7 @@ ${e.join(`
105
105
  `,vAe=cA.encode(fg),yAe=2,SAe=class{static{o(this,"FormDataPart")}constructor(e,t){let{escapeName:n}=this.constructor,i=ne.isString(t),s=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${fg}`;i?t=cA.encode(String(t).replace(/\r?\n|\r\n?/g,fg)):s+=`Content-Type: ${t.type||"application/octet-stream"}${fg}`,this.headers=cA.encode(s+fg),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+yAe,this.name=e,this.value=t}async*encode(){yield this.headers;let{value:e}=this;ne.isTypedArray(e)?yield e:yield*l_(e),yield vAe}static escapeName(e){return String(e).replace(/[\r\n"]/g,t=>({"\r":"%0D","\n":"%0A",'"':"%22"})[t])}},xAe=o((r,e,t)=>{let{tag:n="form-data-boundary",size:i=25,boundary:s=n+"-"+Kr.generateString(i,gAe)}=t||{};if(!ne.isFormData(r))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let a=cA.encode("--"+s+fg),u=cA.encode("--"+s+"--"+fg),c=u.byteLength,l=Array.from(r.entries()).map(([m,g])=>{let S=new SAe(m,g);return c+=S.size,S});c+=a.byteLength*l.length,c=ne.toFiniteNumber(c);let p={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(p["Content-Length"]=c),e&&e(p),LY.Readable.from((async function*(){for(let m of l)yield a,yield*m.encode();yield u})())},"formDataToStream"),kY=xAe;var VY=Dr(require("stream"),1);var bAe=class extends VY.default.Transform{static{o(this,"ZlibHeaderTransformStream")}__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let i=Buffer.alloc(2);i[0]=120,i[1]=156,this.push(i,t)}this.__transform(e,t,n)}},jY=bAe;var wAe=o((r,e)=>ne.isAsyncFn(r)?function(...t){let n=t.pop();r.apply(this,t).then(i=>{try{e?n(null,...e(i)):n(null,i)}catch(s){n(s)}},n)}:r,"callbackify"),UY=wAe;function CAe(r,e){r=r||10;let t=new Array(r),n=new Array(r),i=0,s=0,a;return e=e!==void 0?e:1e3,o(function(c){let l=Date.now(),p=n[s];a||(a=l),t[i]=c,n[i]=l;let m=s,g=0;for(;m!==i;)g+=t[m++],m=m%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),l-a<e)return;let S=p&&l-p;return S?Math.round(g*1e3/S):void 0},"push")}o(CAe,"speedometer");var MY=CAe;function EAe(r,e){let t=0,n=1e3/e,i,s,a=o((l,p=Date.now())=>{t=p,i=null,s&&(clearTimeout(s),s=null),r(...l)},"invoke");return[o((...l)=>{let p=Date.now(),m=p-t;m>=n?a(l,p):(i=l,s||(s=setTimeout(()=>{s=null,a(i)},n-m)))},"throttled"),o(()=>i&&a(i),"flush")]}o(EAe,"throttle");var qY=EAe;var Lf=o((r,e,t=3)=>{let n=0,i=MY(50,250);return qY(s=>{let a=s.loaded,u=s.lengthComputable?s.total:void 0,c=a-n,l=i(c),p=a<=u;n=a;let m={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&p?(u-a)/l:void 0,event:s,lengthComputable:u!=null,[e?"download":"upload"]:!0};r(m)},t)},"progressEventReducer"),NS=o((r,e)=>{let t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},"progressEventDecorator"),IS=o(r=>(...e)=>ne.asap(()=>r(...e)),"asyncDecorator");function BV(r){if(!r||typeof r!="string"||!r.startsWith("data:"))return 0;let e=r.indexOf(",");if(e<0)return 0;let t=r.slice(5,e),n=r.slice(e+1);if(/;base64/i.test(t)){let s=n.length,a=n.length;for(let g=0;g<a;g++)if(n.charCodeAt(g)===37&&g+2<a){let S=n.charCodeAt(g+1),v=n.charCodeAt(g+2);(S>=48&&S<=57||S>=65&&S<=70||S>=97&&S<=102)&&(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(s-=2,g+=2)}let u=0,c=a-1,l=o(g=>g>=2&&n.charCodeAt(g-2)===37&&n.charCodeAt(g-1)===51&&(n.charCodeAt(g)===68||n.charCodeAt(g)===100),"tailIsPct3D");c>=0&&(n.charCodeAt(c)===61?(u++,c--):l(c)&&(u++,c-=3)),u===1&&c>=0&&(n.charCodeAt(c)===61||l(c))&&u++;let m=Math.floor(s/4)*3-(u||0);return m>0?m:0}return Buffer.byteLength(n,"utf8")}o(BV,"estimateDataURLDecodedBytes");var HY={flush:Vf.default.constants.Z_SYNC_FLUSH,finishFlush:Vf.default.constants.Z_SYNC_FLUSH},AAe={flush:Vf.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Vf.default.constants.BROTLI_OPERATION_FLUSH},zY=ne.isFunction(Vf.default.createBrotliDecompress),{http:NAe,https:IAe}=QY.default,TAe=/https:?/,KY=Kr.protocols.map(r=>r+":"),$Y=o((r,[e,t])=>(r.on("end",t).on("error",t),e),"flushOnFinish"),RAe=class{static{o(this,"Http2Sessions")}constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let p=n.length;for(let m=0;m<p;m++){let[g,S]=n[m];if(!g.destroyed&&!g.closed&&LV.default.isDeepStrictEqual(S,t))return g}}let i=FV.default.connect(e,t),s,a=o(()=>{if(s)return;s=!0;let p=n,m=p.length,g=m;for(;g--;)if(p[g][0]===i){m===1?delete this.sessions[e]:p.splice(g,1);return}},"removeSession"),u=i.request,{sessionTimeout:c}=t;if(c!=null){let p,m=0;i.request=function(){let g=u.apply(this,arguments);return m++,p&&(clearTimeout(p),p=null),g.once("close",()=>{--m||(p=setTimeout(()=>{p=null,a()},c))}),g}}i.once("close",a);let l=[i,t];return n?n.push(l):n=this.sessions[e]=[l],i}},DAe=new RAe;function _Ae(r,e){r.beforeRedirects.proxy&&r.beforeRedirects.proxy(r),r.beforeRedirects.config&&r.beforeRedirects.config(r,e)}o(_Ae,"dispatchBeforeRedirect");function ZY(r,e,t){let n=e;if(!n&&n!==!1){let i=XY.default.getProxyForUrl(t);i&&(n=new URL(i))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));let s=Buffer.from(n.auth,"utf8").toString("base64");r.headers["Proxy-Authorization"]="Basic "+s}r.headers.host=r.hostname+(r.port?":"+r.port:"");let i=n.hostname||n.host;r.hostname=i,r.host=i,r.port=n.port,r.path=t,n.protocol&&(r.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}r.beforeRedirects.proxy=o(function(s){ZY(s,e,s.href)},"beforeRedirect")}o(ZY,"setProxy");var OAe=typeof process<"u"&&ne.kindOf(process)==="process",PAe=o(r=>new Promise((e,t)=>{let n,i,s=o((c,l)=>{i||(i=!0,n&&n(c,l))},"done"),a=o(c=>{s(c),e(c)},"_resolve"),u=o(c=>{s(c,!0),t(c)},"_reject");r(a,u,c=>n=c).catch(u)}),"wrapAsync"),BAe=o(({address:r,family:e})=>{if(!ne.isString(r))throw TypeError("address must be a string");return{address:r,family:e||(r.indexOf(".")<0?6:4)}},"resolveFamily"),GY=o((r,e)=>BAe(ne.isObject(r)?r:{address:r,family:e}),"buildAddressEntry"),FAe={request(r,e){let t=r.protocol+"//"+r.hostname+":"+(r.port||80),{http2Options:n,headers:i}=r,s=DAe.getSession(t,n),{HTTP2_HEADER_SCHEME:a,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=FV.default.constants,p={[a]:r.protocol.replace(":",""),[u]:r.method,[c]:r.path};ne.forEach(i,(g,S)=>{S.charAt(0)!==":"&&(p[S]=g)});let m=s.request(p);return m.once("response",g=>{let S=m;g=Object.assign({},g);let v=g[l];delete g[l],S.headers=g,S.statusCode=+v,e(S)}),m}},eZ=OAe&&o(function(e){return PAe(o(async function(n,i,s){let{data:a,lookup:u,family:c,httpVersion:l=1,http2Options:p}=e,{responseType:m,responseEncoding:g}=e,S=e.method.toUpperCase(),v,b=!1,x;if(l=+l,Number.isNaN(l))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(l!==1&&l!==2)throw TypeError(`Unsupported protocol version '${l}'`);let E=l===2;if(u){let xe=UY(u,ie=>ne.isArray(ie)?ie:[ie]);u=o((ie,De,Ze)=>{xe(ie,De,(We,it,F)=>{if(We)return Ze(We);let O=ne.isArray(it)?it.map(oe=>GY(oe)):[GY(it,F)];De.all?Ze(We,O):Ze(We,O[0].address,O[0].family)})},"lookup")}let N=new YY.EventEmitter;function w(xe){try{N.emit("abort",!xe||xe.type?new xo(null,e,x):xe)}catch(ie){console.warn("emit error",ie)}}o(w,"abort"),N.once("abort",i);let C=o(()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),N.removeAllListeners()},"onFinished");(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w))),s((xe,ie)=>{if(v=!0,ie){b=!0,C();return}let{data:De}=xe;if(De instanceof kf.default.Readable||De instanceof kf.default.Duplex){let Ze=kf.default.finished(De,()=>{Ze(),C()})}else C()});let A=cg(e.baseURL,e.url,e.allowAbsoluteUrls),R=new URL(A,Kr.hasBrowserEnv?Kr.origin:void 0),M=R.protocol||KY[0];if(M==="data:"){if(e.maxContentLength>-1){let ie=String(e.url||A||"");if(BV(ie)>e.maxContentLength)return i(new at("maxContentLength size of "+e.maxContentLength+" exceeded",at.ERR_BAD_RESPONSE,e))}let xe;if(S!=="GET")return hl(n,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{xe=_V(e.url,m==="blob",{Blob:e.env&&e.env.Blob})}catch(ie){throw at.from(ie,at.ERR_BAD_REQUEST,e)}return m==="text"?(xe=xe.toString(g),(!g||g==="utf8")&&(xe=ne.stripBOM(xe))):m==="stream"&&(xe=kf.default.Readable.from(xe)),hl(n,i,{data:xe,status:200,statusText:"OK",headers:new ti,config:e})}if(KY.indexOf(M)===-1)return i(new at("Unsupported protocol "+M,at.ERR_BAD_REQUEST,e));let _=ti.from(e.headers).normalize();_.set("User-Agent","axios/"+lg,!1);let{onUploadProgress:H,onDownloadProgress:z}=e,K=e.maxRate,X,ye;if(ne.isSpecCompliantForm(a)){let xe=_.getContentType(/boundary=([-_\w\d]{10,70})/i);a=kY(a,ie=>{_.set(ie)},{tag:`axios-${lg}-boundary`,boundary:xe&&xe[1]||void 0})}else if(ne.isFormData(a)&&ne.isFunction(a.getHeaders)){if(_.set(a.getHeaders()),!_.hasContentLength())try{let xe=await LV.default.promisify(a.getLength).call(a);Number.isFinite(xe)&&xe>=0&&_.setContentLength(xe)}catch{}}else if(ne.isBlob(a)||ne.isFile(a))a.size&&_.setContentType(a.type||"application/octet-stream"),_.setContentLength(a.size||0),a=kf.default.Readable.from(l_(a));else if(a&&!ne.isStream(a)){if(!Buffer.isBuffer(a))if(ne.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(ne.isString(a))a=Buffer.from(a,"utf-8");else return i(new at("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",at.ERR_BAD_REQUEST,e));if(_.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return i(new at("Request body larger than maxBodyLength limit",at.ERR_BAD_REQUEST,e))}let fe=ne.toFiniteNumber(_.getContentLength());ne.isArray(K)?(X=K[0],ye=K[1]):X=ye=K,a&&(H||X)&&(ne.isStream(a)||(a=kf.default.Readable.from(a,{objectMode:!1})),a=kf.default.pipeline([a,new PV({maxRate:ne.toFiniteNumber(X)})],ne.noop),H&&a.on("progress",$Y(a,NS(fe,Lf(IS(H),!1,3)))));let ce;if(e.auth){let xe=e.auth.username||"",ie=e.auth.password||"";ce=xe+":"+ie}if(!ce&&R.username){let xe=R.username,ie=R.password;ce=xe+":"+ie}ce&&_.delete("authorization");let ee;try{ee=ug(R.pathname+R.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(xe){let ie=new Error(xe.message);return ie.config=e,ie.url=e.url,ie.exists=!0,i(ie)}_.set("Accept-Encoding","gzip, compress, deflate"+(zY?", br":""),!1);let pe={path:ee,method:S,headers:_.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:ce,protocol:M,family:c,beforeRedirect:_Ae,beforeRedirects:{},http2Options:p};!ne.isUndefined(u)&&(pe.lookup=u),e.socketPath?pe.socketPath=e.socketPath:(pe.hostname=R.hostname.startsWith("[")?R.hostname.slice(1,-1):R.hostname,pe.port=R.port,ZY(pe,e.proxy,M+"//"+R.hostname+(R.port?":"+R.port:"")+pe.path));let Ce,Ye=TAe.test(pe.protocol);if(pe.agent=Ye?e.httpsAgent:e.httpAgent,E?Ce=FAe:e.transport?Ce=e.transport:e.maxRedirects===0?Ce=Ye?JY.default:WY.default:(e.maxRedirects&&(pe.maxRedirects=e.maxRedirects),e.beforeRedirect&&(pe.beforeRedirects.config=e.beforeRedirect),Ce=Ye?IAe:NAe),e.maxBodyLength>-1?pe.maxBodyLength=e.maxBodyLength:pe.maxBodyLength=1/0,e.insecureHTTPParser&&(pe.insecureHTTPParser=e.insecureHTTPParser),x=Ce.request(pe,o(function(ie){if(x.destroyed)return;let De=[ie],Ze=ne.toFiniteNumber(ie.headers["content-length"]);if(z||ye){let O=new PV({maxRate:ne.toFiniteNumber(ye)});z&&O.on("progress",$Y(O,NS(Ze,Lf(IS(z),!0,3)))),De.push(O)}let We=ie,it=ie.req||x;if(e.decompress!==!1&&ie.headers["content-encoding"])switch((S==="HEAD"||ie.statusCode===204)&&delete ie.headers["content-encoding"],(ie.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":De.push(Vf.default.createUnzip(HY)),delete ie.headers["content-encoding"];break;case"deflate":De.push(new jY),De.push(Vf.default.createUnzip(HY)),delete ie.headers["content-encoding"];break;case"br":zY&&(De.push(Vf.default.createBrotliDecompress(AAe)),delete ie.headers["content-encoding"])}We=De.length>1?kf.default.pipeline(De,ne.noop):De[0];let F={status:ie.statusCode,statusText:ie.statusMessage,headers:new ti(ie.headers),config:e,request:it};if(m==="stream")F.data=We,hl(n,i,F);else{let O=[],oe=0;We.on("data",o(function(Ge){O.push(Ge),oe+=Ge.length,e.maxContentLength>-1&&oe>e.maxContentLength&&(b=!0,We.destroy(),w(new at("maxContentLength size of "+e.maxContentLength+" exceeded",at.ERR_BAD_RESPONSE,e,it)))},"handleStreamData")),We.on("aborted",o(function(){if(b)return;let Ge=new at("stream has been aborted",at.ERR_BAD_RESPONSE,e,it);We.destroy(Ge),i(Ge)},"handlerStreamAborted")),We.on("error",o(function(Ge){x.destroyed||i(at.from(Ge,null,e,it))},"handleStreamError")),We.on("end",o(function(){try{let Ge=O.length===1?O[0]:Buffer.concat(O);m!=="arraybuffer"&&(Ge=Ge.toString(g),(!g||g==="utf8")&&(Ge=ne.stripBOM(Ge))),F.data=Ge}catch(Ge){return i(at.from(Ge,null,e,F.request,F))}hl(n,i,F)},"handleStreamEnd"))}N.once("abort",O=>{We.destroyed||(We.emit("error",O),We.destroy())})},"handleResponse")),N.once("abort",xe=>{x.close?x.close():x.destroy(xe)}),x.on("error",o(function(ie){i(at.from(ie,null,e,x))},"handleRequestError")),x.on("socket",o(function(ie){ie.setKeepAlive(!0,1e3*60)},"handleRequestSocket")),e.timeout){let xe=parseInt(e.timeout,10);if(Number.isNaN(xe)){w(new at("error trying to parse `config.timeout` to int",at.ERR_BAD_OPTION_VALUE,e,x));return}x.setTimeout(xe,o(function(){if(v)return;let De=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",Ze=e.transitional||ES;e.timeoutErrorMessage&&(De=e.timeoutErrorMessage),w(new at(De,Ze.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,e,x))},"handleRequestTimeout"))}else x.setTimeout(0);if(ne.isStream(a)){let xe=!1,ie=!1;a.on("end",()=>{xe=!0}),a.once("error",De=>{ie=!0,x.destroy(De)}),a.on("close",()=>{!xe&&!ie&&w(new xo("Request stream has been aborted",e,x))}),a.pipe(x)}else a&&x.write(a),x.end()},"dispatchHttpRequest"))},"httpAdapter");var tZ=Kr.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,Kr.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(Kr.origin),Kr.navigator&&/(msie|trident)/i.test(Kr.navigator.userAgent)):()=>!0;var rZ=Kr.hasStandardBrowserEnv?{write(r,e,t,n,i,s,a){if(typeof document>"u")return;let u=[`${r}=${encodeURIComponent(e)}`];ne.isNumber(t)&&u.push(`expires=${new Date(t).toUTCString()}`),ne.isString(n)&&u.push(`path=${n}`),ne.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),ne.isString(a)&&u.push(`SameSite=${a}`),document.cookie=u.join("; ")},read(r){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};var nZ=o(r=>r instanceof ti?{...r}:r,"headersToObject");function Gu(r,e){e=e||{};let t={};function n(l,p,m,g){return ne.isPlainObject(l)&&ne.isPlainObject(p)?ne.merge.call({caseless:g},l,p):ne.isPlainObject(p)?ne.merge({},p):ne.isArray(p)?p.slice():p}o(n,"getMergedValue");function i(l,p,m,g){if(ne.isUndefined(p)){if(!ne.isUndefined(l))return n(void 0,l,m,g)}else return n(l,p,m,g)}o(i,"mergeDeepProperties");function s(l,p){if(!ne.isUndefined(p))return n(void 0,p)}o(s,"valueFromConfig2");function a(l,p){if(ne.isUndefined(p)){if(!ne.isUndefined(l))return n(void 0,l)}else return n(void 0,p)}o(a,"defaultToConfig2");function u(l,p,m){if(m in e)return n(l,p);if(m in r)return n(void 0,l)}o(u,"mergeDirectKeys");let c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:o((l,p,m)=>i(nZ(l),nZ(p),m,!0),"headers")};return ne.forEach(Object.keys({...r,...e}),o(function(p){let m=c[p]||i,g=m(r[p],e[p],p);ne.isUndefined(g)&&m!==u||(t[p]=g)},"computeConfigValue")),t}o(Gu,"mergeConfig");var f_=o((r=>{let e=Gu({},r),{data:t,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:u}=e;if(e.headers=a=ti.from(a),e.url=ug(cg(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),ne.isFormData(t)){if(Kr.hasStandardBrowserEnv||Kr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(ne.isFunction(t.getHeaders)){let c=t.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([p,m])=>{l.includes(p.toLowerCase())&&a.set(p,m)})}}if(Kr.hasStandardBrowserEnv&&(n&&ne.isFunction(n)&&(n=n(e)),n||n!==!1&&tZ(e.url))){let c=i&&s&&rZ.read(s);c&&a.set(i,c)}return e}),"default");var LAe=typeof XMLHttpRequest<"u",iZ=LAe&&function(r){return new Promise(o(function(t,n){let i=f_(r),s=i.data,a=ti.from(i.headers).normalize(),{responseType:u,onUploadProgress:c,onDownloadProgress:l}=i,p,m,g,S,v;function b(){S&&S(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}o(b,"done");let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function E(){if(!x)return;let w=ti.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),A={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:w,config:r,request:x};hl(o(function(M){t(M),b()},"_resolve"),o(function(M){n(M),b()},"_reject"),A),x=null}o(E,"onloadend"),"onloadend"in x?x.onloadend=E:x.onreadystatechange=o(function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(E)},"handleLoad"),x.onabort=o(function(){x&&(n(new at("Request aborted",at.ECONNABORTED,r,x)),x=null)},"handleAbort"),x.onerror=o(function(C){let A=C&&C.message?C.message:"Network Error",R=new at(A,at.ERR_NETWORK,r,x);R.event=C||null,n(R),x=null},"handleError"),x.ontimeout=o(function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",A=i.transitional||ES;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),n(new at(C,A.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,r,x)),x=null},"handleTimeout"),s===void 0&&a.setContentType(null),"setRequestHeader"in x&&ne.forEach(a.toJSON(),o(function(C,A){x.setRequestHeader(A,C)},"setRequestHeader")),ne.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),u&&u!=="json"&&(x.responseType=i.responseType),l&&([g,v]=Lf(l,!0),x.addEventListener("progress",g)),c&&x.upload&&([m,S]=Lf(c),x.upload.addEventListener("progress",m),x.upload.addEventListener("loadend",S)),(i.cancelToken||i.signal)&&(p=o(w=>{x&&(n(!w||w.type?new xo(null,r,x):w),x.abort(),x=null)},"onCanceled"),i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));let N=uA(i.url);if(N&&Kr.protocols.indexOf(N)===-1){n(new at("Unsupported protocol "+N+":",at.ERR_BAD_REQUEST,r));return}x.send(s||null)},"dispatchXhrRequest"))};var kAe=o((r,e)=>{let{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,i,s=o(function(l){if(!i){i=!0,u();let p=l instanceof Error?l:this.reason;n.abort(p instanceof at?p:new xo(p instanceof Error?p.message:p))}},"onabort"),a=e&&setTimeout(()=>{a=null,s(new at(`timeout ${e} of ms exceeded`,at.ETIMEDOUT))},e),u=o(()=>{r&&(a&&clearTimeout(a),a=null,r.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),r=null)},"unsubscribe");r.forEach(l=>l.addEventListener("abort",s));let{signal:c}=n;return c.unsubscribe=()=>ne.asap(u),c}},"composeSignals"),sZ=kAe;var VAe=o(function*(r,e){let t=r.byteLength;if(!e||t<e){yield r;return}let n=0,i;for(;n<t;)i=n+e,yield r.slice(n,i),n=i},"streamChunk"),jAe=o(async function*(r,e){for await(let t of UAe(r))yield*VAe(t,e)},"readBytes"),UAe=o(async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}let e=r.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},"readStream"),kV=o((r,e,t,n)=>{let i=jAe(r,e),s=0,a,u=o(c=>{a||(a=!0,n&&n(c))},"_onFinish");return new ReadableStream({async pull(c){try{let{done:l,value:p}=await i.next();if(l){u(),c.close();return}let m=p.byteLength;if(t){let g=s+=m;t(g)}c.enqueue(new Uint8Array(p))}catch(l){throw u(l),l}},cancel(c){return u(c),i.return()}},{highWaterMark:2})},"trackStream");var aZ=64*1024,{isFunction:p_}=ne,MAe=(({Request:r,Response:e})=>({Request:r,Response:e}))(ne.global),{ReadableStream:oZ,TextEncoder:uZ}=ne.global,cZ=o((r,...e)=>{try{return!!r(...e)}catch{return!1}},"test"),qAe=o(r=>{r=ne.merge.call({skipUndefined:!0},MAe,r);let{fetch:e,Request:t,Response:n}=r,i=e?p_(e):typeof fetch=="function",s=p_(t),a=p_(n);if(!i)return!1;let u=i&&p_(oZ),c=i&&(typeof uZ=="function"?(v=>b=>v.encode(b))(new uZ):async v=>new Uint8Array(await new t(v).arrayBuffer())),l=s&&u&&cZ(()=>{let v=!1,b=new t(Kr.origin,{body:new oZ,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!b}),p=a&&u&&cZ(()=>ne.isReadableStream(new n("").body)),m={stream:p&&(v=>v.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!m[v]&&(m[v]=(b,x)=>{let E=b&&b[v];if(E)return E.call(b);throw new at(`Response type '${v}' is not supported`,at.ERR_NOT_SUPPORT,x)})});let g=o(async v=>{if(v==null)return 0;if(ne.isBlob(v))return v.size;if(ne.isSpecCompliantForm(v))return(await new t(Kr.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(v)||ne.isArrayBuffer(v))return v.byteLength;if(ne.isURLSearchParams(v)&&(v=v+""),ne.isString(v))return(await c(v)).byteLength},"getBodyLength"),S=o(async(v,b)=>{let x=ne.toFiniteNumber(v.getContentLength());return x??g(b)},"resolveBodyLength");return async v=>{let{url:b,method:x,data:E,signal:N,cancelToken:w,timeout:C,onDownloadProgress:A,onUploadProgress:R,responseType:M,headers:_,withCredentials:H="same-origin",fetchOptions:z}=f_(v),K=e||fetch;M=M?(M+"").toLowerCase():"text";let X=sZ([N,w&&w.toAbortSignal()],C),ye=null,fe=X&&X.unsubscribe&&(()=>{X.unsubscribe()}),ce;try{if(R&&l&&x!=="get"&&x!=="head"&&(ce=await S(_,E))!==0){let ie=new t(b,{method:"POST",body:E,duplex:"half"}),De;if(ne.isFormData(E)&&(De=ie.headers.get("content-type"))&&_.setContentType(De),ie.body){let[Ze,We]=NS(ce,Lf(IS(R)));E=kV(ie.body,aZ,Ze,We)}}ne.isString(H)||(H=H?"include":"omit");let ee=s&&"credentials"in t.prototype,pe={...z,signal:X,method:x.toUpperCase(),headers:_.normalize().toJSON(),body:E,duplex:"half",credentials:ee?H:void 0};ye=s&&new t(b,pe);let Ce=await(s?K(ye,z):K(b,pe)),Ye=p&&(M==="stream"||M==="response");if(p&&(A||Ye&&fe)){let ie={};["status","statusText","headers"].forEach(it=>{ie[it]=Ce[it]});let De=ne.toFiniteNumber(Ce.headers.get("content-length")),[Ze,We]=A&&NS(De,Lf(IS(A),!0))||[];Ce=new n(kV(Ce.body,aZ,Ze,()=>{We&&We(),fe&&fe()}),ie)}M=M||"text";let xe=await m[ne.findKey(m,M)||"text"](Ce,v);return!Ye&&fe&&fe(),await new Promise((ie,De)=>{hl(ie,De,{data:xe,headers:ti.from(Ce.headers),status:Ce.status,statusText:Ce.statusText,config:v,request:ye})})}catch(ee){throw fe&&fe(),ee&&ee.name==="TypeError"&&/Load failed|fetch/i.test(ee.message)?Object.assign(new at("Network Error",at.ERR_NETWORK,v,ye),{cause:ee.cause||ee}):at.from(ee,ee&&ee.code,v,ye)}}},"factory"),HAe=new Map,VV=o(r=>{let e=r&&r.env||{},{fetch:t,Request:n,Response:i}=e,s=[n,i,t],a=s.length,u=a,c,l,p=HAe;for(;u--;)c=s[u],l=p.get(c),l===void 0&&p.set(c,l=u?new Map:qAe(e)),p=l;return l},"getFetch"),eze=VV();var jV={http:eZ,xhr:iZ,fetch:{get:VV}};ne.forEach(jV,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});var lZ=o(r=>`- ${r}`,"renderReason"),KAe=o(r=>ne.isFunction(r)||r===null||r===!1,"isResolvedHandle");function $Ae(r,e){r=ne.isArray(r)?r:[r];let{length:t}=r,n,i,s={};for(let a=0;a<t;a++){n=r[a];let u;if(i=n,!KAe(n)&&(i=jV[(u=String(n)).toLowerCase()],i===void 0))throw new at(`Unknown adapter '${u}'`);if(i&&(ne.isFunction(i)||(i=i.get(e))))break;s[u||"#"+a]=i}if(!i){let a=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build")),u=t?a.length>1?`since :
106
106
  `+a.map(lZ).join(`
107
107
  `):" "+lZ(a[0]):"as no adapter specified";throw new at("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}o($Ae,"getAdapter");var h_={getAdapter:$Ae,adapters:jV};function UV(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new xo(null,r)}o(UV,"throwIfCancellationRequested");function d_(r){return UV(r),r.headers=ti.from(r.headers),r.data=aA.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),h_.getAdapter(r.adapter||AS.adapter,r)(r).then(o(function(n){return UV(r),n.data=aA.call(r,r.transformResponse,n),n.headers=ti.from(n.headers),n},"onAdapterResolution"),o(function(n){return oA(n)||(UV(r),n&&n.response&&(n.response.data=aA.call(r,r.transformResponse,n.response),n.response.headers=ti.from(n.response.headers))),Promise.reject(n)},"onAdapterRejection"))}o(d_,"dispatchRequest");var m_={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{m_[r]=o(function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r},"validator")});var fZ={};m_.transitional=o(function(e,t,n){function i(s,a){return"[Axios v"+lg+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return o(i,"formatMessage"),(s,a,u)=>{if(e===!1)throw new at(i(a," has been removed"+(t?" in "+t:"")),at.ERR_DEPRECATED);return t&&!fZ[a]&&(fZ[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,a,u):!0}},"transitional");m_.spelling=o(function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)},"spelling");function GAe(r,e,t){if(typeof r!="object")throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),i=n.length;for(;i-- >0;){let s=n[i],a=e[s];if(a){let u=r[s],c=u===void 0||a(u,s,r);if(c!==!0)throw new at("option "+s+" must be "+c,at.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new at("Unknown option "+s,at.ERR_BAD_OPTION)}}o(GAe,"assertOptions");var lA={assertOptions:GAe,validators:m_};var dl=lA.validators,g_=class{static{o(this,"Axios")}constructor(e){this.defaults=e||{},this.interceptors={request:new bV,response:new bV}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;let s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
108
- `+s):n.stack=s}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Gu(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&lA.assertOptions(n,{silentJSONParsing:dl.transitional(dl.boolean),forcedJSONParsing:dl.transitional(dl.boolean),clarifyTimeoutError:dl.transitional(dl.boolean)},!1),i!=null&&(ne.isFunction(i)?t.paramsSerializer={serialize:i}:lA.assertOptions(i,{encode:dl.function,serialize:dl.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),lA.assertOptions(t,{baseUrl:dl.spelling("baseURL"),withXsrfToken:dl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&ne.merge(s.common,s[t.method]);s&&ne.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),t.headers=ti.concat(a,s);let u=[],c=!0;this.interceptors.request.forEach(o(function(b){typeof b.runWhen=="function"&&b.runWhen(t)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))},"unshiftRequestInterceptors"));let l=[];this.interceptors.response.forEach(o(function(b){l.push(b.fulfilled,b.rejected)},"pushResponseInterceptors"));let p,m=0,g;if(!c){let v=[d_.bind(this),void 0];for(v.unshift(...u),v.push(...l),g=v.length,p=Promise.resolve(t);m<g;)p=p.then(v[m++],v[m++]);return p}g=u.length;let S=t;for(;m<g;){let v=u[m++],b=u[m++];try{S=v(S)}catch(x){b.call(this,x);break}}try{p=d_.call(this,S)}catch(v){return Promise.reject(v)}for(m=0,g=l.length;m<g;)p=p.then(l[m++],l[m++]);return p}getUri(e){e=Gu(this.defaults,e);let t=cg(e.baseURL,e.url,e.allowAbsoluteUrls);return ug(t,e.params,e.paramsSerializer)}};ne.forEach(["delete","get","head","options"],o(function(e){g_.prototype[e]=function(t,n){return this.request(Gu(n||{},{method:e,url:t,data:(n||{}).data}))}},"forEachMethodNoData"));ne.forEach(["post","put","patch"],o(function(e){function t(n){return o(function(s,a,u){return this.request(Gu(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))},"httpMethod")}o(t,"generateHTTPMethod"),g_.prototype[e]=t(),g_.prototype[e+"Form"]=t(!0)},"forEachMethodWithData"));var fA=g_;var XAe=class pZ{static{o(this,"CancelToken")}constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(o(function(s){t=s},"promiseExecutor"));let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,a=new Promise(u=>{n.subscribe(u),s=u}).then(i);return a.cancel=o(function(){n.unsubscribe(s)},"reject"),a},e(o(function(s,a,u){n.reason||(n.reason=new xo(s,a,u),t(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=o(n=>{e.abort(n)},"abort");return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new pZ(o(function(i){e=i},"executor")),cancel:e}}},hZ=XAe;function MV(r){return o(function(t){return r.apply(null,t)},"wrap")}o(MV,"spread");function qV(r){return ne.isObject(r)&&r.isAxiosError===!0}o(qV,"isAxiosError");var HV={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HV).forEach(([r,e])=>{HV[e]=r});var dZ=HV;function mZ(r){let e=new fA(r),t=tA(fA.prototype.request,e);return ne.extend(t,fA.prototype,e,{allOwnKeys:!0}),ne.extend(t,e,null,{allOwnKeys:!0}),t.create=o(function(i){return mZ(Gu(r,i))},"create"),t}o(mZ,"createInstance");var Di=mZ(AS);Di.Axios=fA;Di.CanceledError=xo;Di.CancelToken=hZ;Di.isCancel=oA;Di.VERSION=lg;Di.toFormData=Ed;Di.AxiosError=at;Di.Cancel=Di.CanceledError;Di.all=o(function(e){return Promise.all(e)},"all");Di.spread=MV;Di.isAxiosError=qV;Di.mergeConfig=Gu;Di.AxiosHeaders=ti;Di.formToJSON=r=>o_(ne.isHTMLForm(r)?new FormData(r):r);Di.getAdapter=h_.getAdapter;Di.HttpStatusCode=dZ;Di.default=Di;var v_=Di;var{Axios:a7e,AxiosError:o7e,CanceledError:u7e,isCancel:c7e,CancelToken:l7e,VERSION:f7e,all:p7e,Cancel:h7e,isAxiosError:d7e,spread:m7e,toFormData:g7e,AxiosHeaders:v7e,HttpStatusCode:y7e,formToJSON:S7e,getAdapter:x7e,mergeConfig:b7e}=v_;var kZ=Dr(require("path"),1);var le={AC:"12",AL:"27",AM:"13",AP:"16",BA:"29",CE:"23",DF:"53",ES:"32",GO:"52",MA:"21",MG:"31",MS:"50",MT:"51",PA:"15",PB:"25",PE:"26",PI:"22",PR:"41",RJ:"33",RN:"24",RO:"11",RR:"14",RS:"43",SC:"42",SE:"28",SP:"35",TO:"17"},gZ=Object.keys(le);var Me={Production:"1",Homolog:"2"};var N7e={[le.AC]:"America/Rio_Branco",[le.AL]:"America/Maceio",[le.AM]:"America/Manaus",[le.AP]:"America/Belem",[le.BA]:"America/Bahia",[le.CE]:"America/Fortaleza",[le.DF]:"America/Sao_Paulo",[le.ES]:"America/Sao_Paulo",[le.GO]:"America/Sao_Paulo",[le.MA]:"America/Fortaleza",[le.MG]:"America/Sao_Paulo",[le.MS]:"America/Campo_Grande",[le.MT]:"America/Cuiaba",[le.PA]:"America/Belem",[le.PB]:"America/Fortaleza",[le.PE]:"America/Recife",[le.PI]:"America/Fortaleza",[le.PR]:"America/Sao_Paulo",[le.RJ]:"America/Sao_Paulo",[le.RN]:"America/Fortaleza",[le.RO]:"America/Porto_Velho",[le.RR]:"America/Boa_Vista",[le.RS]:"America/Sao_Paulo",[le.SC]:"America/Sao_Paulo",[le.SE]:"America/Maceio",[le.SP]:"America/Sao_Paulo",[le.TO]:"America/Araguaina"};var vZ=require("class-transformer"),Xu=require("class-validator");function y_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(y_,"_ts_decorate");function KV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(KV,"_ts_metadata");var Ad=class{static{o(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};y_([(0,Xu.IsEnum)(Me),KV("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ad.prototype,"tpAmb",void 0);y_([(0,Xu.IsEnum)(le),KV("design:type",typeof StateCode>"u"?Object:StateCode)],Ad.prototype,"cUF",void 0);y_([(0,Xu.IsOptional)()],Ad.prototype,"xServ",void 0);var zV=class{static{o(this,"ConsultStatusRequest")}consStatServ};y_([(0,Xu.IsNotEmptyObject)(),(0,Xu.IsObject)(),(0,Xu.ValidateNested)(),(0,vZ.Type)(()=>Ad),KV("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],zV.prototype,"consStatServ",void 0);var x_=require("class-transformer"),ar=require("class-validator");function Vi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Vi,"_ts_decorate");function Ts(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ts,"_ts_metadata");var S_=class{static{o(this,"InfInutAttributes")}Id};Vi([(0,ar.IsString)(),Ts("design:type",String)],S_.prototype,"Id",void 0);var pA=class{static{o(this,"InutNFeAttributes")}xmlns;versao};Vi([(0,ar.IsString)(),Ts("design:type",String)],pA.prototype,"xmlns",void 0);Vi([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],pA.prototype,"versao",void 0);var Is=class{static{o(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Vi([(0,ar.ValidateNested)(),(0,x_.Type)(()=>S_),Ts("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Is.prototype,"$",void 0);Vi([(0,ar.IsEnum)(Me),Ts("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Is.prototype,"tpAmb",void 0);Vi([(0,ar.IsOptional)()],Is.prototype,"xServ",void 0);Vi([(0,ar.IsEnum)(le),Ts("design:type",typeof StateCode>"u"?Object:StateCode)],Is.prototype,"cUF",void 0);Vi([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^[0-9]{2}$/),Ts("design:type",String)],Is.prototype,"ano",void 0);Vi([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],Is.prototype,"CNPJ",void 0);Vi([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],Is.prototype,"CPF",void 0);Vi([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^(55|65)$/),Ts("design:type",String)],Is.prototype,"mod",void 0);Vi([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,3}$/),Ts("design:type",String)],Is.prototype,"serie",void 0);Vi([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Ts("design:type",String)],Is.prototype,"nNFIni",void 0);Vi([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Ts("design:type",String)],Is.prototype,"nNFFin",void 0);Vi([(0,ar.IsString)(),(0,ar.MinLength)(15),(0,ar.MaxLength)(255),Ts("design:type",String)],Is.prototype,"xJust",void 0);Is=Vi([Zr({properties:["CNPJ","CPF"],required:!0})],Is);var pg=class{static{o(this,"InutilizacaoPayload")}$;infInut;Signature};Vi([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,x_.Type)(()=>pA),Ts("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],pg.prototype,"$",void 0);Vi([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,x_.Type)(()=>Is),Ts("design:type",typeof IInfInut>"u"?Object:IInfInut)],pg.prototype,"infInut",void 0);Vi([(0,ar.Allow)(),Ts("design:type",typeof Signature>"u"?Object:Signature)],pg.prototype,"Signature",void 0);var ml=require("class-validator");function $V(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($V,"_ts_decorate");function yZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yZ,"_ts_metadata");var hg=class{static{o(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};$V([(0,ml.IsEnum)(Me),yZ("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],hg.prototype,"tpAmb",void 0);$V([(0,ml.IsOptional)()],hg.prototype,"xServ",void 0);$V([(0,ml.IsString)(),(0,ml.Length)(44,44),(0,ml.Matches)(/^[0-9]{44}$/),yZ("design:type",String)],hg.prototype,"chNFe",void 0);var BZ=require("class-transformer"),du=require("class-validator");var wa=require("class-validator");var Ot=require("class-validator"),wi=require("class-transformer");var xt=require("class-validator"),hA=require("class-transformer");function qt(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qt,"_ts_decorate");function Ht(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ht,"_ts_metadata");var jf=class{static{o(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"AAMM",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"CNPJ",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"nNF",void 0);var bo=class{static{o(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"AAMM",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"CNPJ",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"CPF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"IE",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"nNF",void 0);bo=qt([Zr({properties:["CNPJ","CPF"],required:!0})],bo);var TS=class{static{o(this,"RefECF")}mod;nECF;nCOO};qt([(0,xt.IsString)(),Ht("design:type",String)],TS.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],TS.prototype,"nECF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],TS.prototype,"nCOO",void 0);var Uf=class{static{o(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Uf.prototype,"refNFe",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Uf.prototype,"refNFeSig",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,hA.Type)(()=>jf),Ht("design:type",typeof IRefNF>"u"?Object:IRefNF)],Uf.prototype,"refNF",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,hA.Type)(()=>bo),Ht("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],Uf.prototype,"refNFP",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Uf.prototype,"refCTe",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,hA.Type)(()=>TS),Ht("design:type",typeof IRefECF>"u"?Object:IRefECF)],Uf.prototype,"refECF",void 0);var Qr=class{static{o(this,"Ide")}cUF;cNF;natOp;mod;serie;nNF;dhEmi;dhSaiEnt;tpNF;idDest;cMunFG;tpImp;tpEmis;cDV="";tpAmb;finNFe;indFinal;indPres;indIntermed;procEmi;verProc;dhCont;xJust;NFref};qt([(0,xt.IsEnum)(le),Ht("design:type",typeof StateCode>"u"?Object:StateCode)],Qr.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"cNF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"natOp",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"nNF",void 0);qt([Mp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Qr.prototype,"dhEmi",void 0);qt([(0,xt.IsOptional)(),Mp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Qr.prototype,"dhSaiEnt",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"tpNF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"idDest",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"cMunFG",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"tpImp",void 0);qt([(0,xt.IsString)(),Ht("design:type",typeof TpEmis>"u"?Object:TpEmis)],Qr.prototype,"tpEmis",void 0);qt([(0,xt.IsString)(),(0,xt.IsOptional)(),Ht("design:type",String)],Qr.prototype,"cDV",void 0);qt([(0,xt.IsString)(),Ht("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Qr.prototype,"tpAmb",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"finNFe",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"indFinal",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"indPres",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"indIntermed",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"procEmi",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"verProc",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Mp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Qr.prototype,"dhCont",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"xJust",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsArray)(),(0,xt.ArrayMaxSize)(999),(0,xt.ValidateNested)({each:!0}),(0,hA.Type)(()=>Uf),Ht("design:type",Array)],Qr.prototype,"NFref",void 0);var ji=require("class-validator");var SZ=require("class-transformer");var Ds=require("class-validator");function Wu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Wu,"_ts_decorate");function Ju(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ju,"_ts_metadata");var Rs=class{static{o(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"xLgr",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"nro",void 0);Wu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"xCpl",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"xBairro",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"cMun",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"xMun",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"UF",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"CEP",void 0);Wu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"cPais",void 0);Wu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"xPais",void 0);Wu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"fone",void 0);function Qu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Qu,"_ts_decorate");function gl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gl,"_ts_metadata");var ns=class{static{o(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"CNPJ",void 0);Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"CPF",void 0);Qu([(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"xNome",void 0);Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"xFant",void 0);Qu([(0,ji.ValidateNested)(),(0,SZ.Type)(()=>Rs),gl("design:type",typeof Rs>"u"?Object:Rs)],ns.prototype,"enderEmit",void 0);Qu([(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"IE",void 0);Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"IEST",void 0);Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"IM",void 0);Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"CNAE",void 0);Qu([(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"CRT",void 0);ns=Qu([Zr({properties:["CNPJ","CPF"],required:!0})],ns);var pi=require("class-validator"),xZ=require("class-transformer");var Vn=require("class-validator");function Yu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Yu,"_ts_decorate");function Zu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Zu,"_ts_metadata");var ya=class{static{o(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"xLgr",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"nro",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"xCpl",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"xBairro",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"cMun",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"xMun",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"UF",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"CEP",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"cPais",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"xPais",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"fone",void 0);function ec(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ec,"_ts_decorate");function vl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vl,"_ts_metadata");var is=class{static{o(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"CNPJ",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"CPF",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"idEstrangeiro",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"xNome",void 0);ec([(0,pi.IsOptional)(),(0,pi.ValidateNested)(),(0,xZ.Type)(()=>ya),vl("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],is.prototype,"enderDest",void 0);ec([(0,pi.IsString)(),vl("design:type",String)],is.prototype,"indIEDest",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"IE",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"ISUF",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"IM",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"email",void 0);is=ec([Zr({properties:["CNPJ","CPF"],required:!0})],is);var on=require("class-validator");function _s(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_s,"_ts_decorate");function Ys(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ys,"_ts_metadata");var Cn=class{static{o(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"CNPJ",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"CPF",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xNome",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xLgr",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"nro",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xCpl",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xBairro",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"cMun",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xMun",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"UF",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"CEP",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"cPais",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xPais",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"fone",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"email",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"IE",void 0);Cn=_s([Zr({properties:["CNPJ","CPF"]})],Cn);var RS=require("class-validator");function GV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(GV,"_ts_decorate");function bZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bZ,"_ts_metadata");var yl=class{static{o(this,"AutXML")}CNPJ;CPF};GV([(0,RS.IsOptional)(),(0,RS.IsString)(),bZ("design:type",String)],yl.prototype,"CNPJ",void 0);GV([(0,RS.IsOptional)(),(0,RS.IsString)(),bZ("design:type",String)],yl.prototype,"CPF",void 0);yl=GV([Zr({properties:["CNPJ","CPF"]})],yl);var dA=require("class-validator");function wZ(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(wZ,"_ts_decorate");function CZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(CZ,"_ts_metadata");var Nd=class{static{o(this,"InfIntermed")}CNPJ;idCadIntTran};wZ([(0,dA.IsString)(),CZ("design:type",String)],Nd.prototype,"CNPJ",void 0);wZ([(0,dA.IsOptional)(),(0,dA.IsString)(),CZ("design:type",String)],Nd.prototype,"idCadIntTran",void 0);var dg=require("class-validator");function XV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(XV,"_ts_decorate");function WV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(WV,"_ts_metadata");var Mf=class{static{o(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};XV([(0,dg.IsString)(),WV("design:type",String)],Mf.prototype,"UFSaidaPais",void 0);XV([(0,dg.IsOptional)(),(0,dg.IsString)(),WV("design:type",String)],Mf.prototype,"xLocExporta",void 0);XV([(0,dg.IsOptional)(),(0,dg.IsString)(),WV("design:type",String)],Mf.prototype,"xLocDespacho",void 0);var Id=require("class-validator");function JV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(JV,"_ts_decorate");function QV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(QV,"_ts_metadata");var qf=class{static{o(this,"Compra")}xNEmp;xPed;xCont};JV([(0,Id.IsOptional)(),(0,Id.IsString)(),QV("design:type",String)],qf.prototype,"xNEmp",void 0);JV([(0,Id.IsOptional)(),(0,Id.IsString)(),QV("design:type",String)],qf.prototype,"xPed",void 0);JV([(0,Id.IsOptional)(),(0,Id.IsString)(),QV("design:type",String)],qf.prototype,"xCont",void 0);var Sl=require("class-validator");function DS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(DS,"_ts_decorate");function _S(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_S,"_ts_metadata");var ou=class{static{o(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};DS([(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"CNPJ",void 0);DS([(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"xContato",void 0);DS([(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"email",void 0);DS([(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"fone",void 0);DS([(0,Sl.IsOptional)(),(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"idCSRT",void 0);DS([(0,Sl.IsOptional)(),(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"hashCSRT",void 0);var vg=require("class-validator"),b_=require("class-transformer");var tc=require("class-validator");function tn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(tn,"_ts_decorate");function rn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(rn,"_ts_metadata");var qr=class{static{o(this,"ICMSTot")}vBC="0.00";vICMS="0.00";vICMSDeson="0.00";vFCPUFDest;vICMSUFDest;vICMSUFRemet;vFCP="0.00";vBCST="0.00";vST="0.00";vFCPST="0.00";vFCPSTRet="0.00";qBCMono;vICMSMono;qBCMonoReten;vICMSMonoReten;qBCMonoRet;vICMSMonoRet;vProd="0.00";vFrete="0.00";vSeg="0.00";vDesc="0.00";vII="0.00";vIPI="0.00";vIPIDevol="0.00";vPIS="0.00";vCOFINS="0.00";vOutro="0.00";vNF="0.00";vTotTrib};tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBC",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSDeson",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPUFDest",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFDest",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFRemet",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCP",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBCST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPSTRet",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMono",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMono",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoReten",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoReten",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoRet",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoRet",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vProd",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFrete",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vSeg",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vDesc",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vII",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPI",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPIDevol",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vPIS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vCOFINS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vOutro",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vNF",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vTotTrib",void 0);var Dn=require("class-validator");function uu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(uu,"_ts_decorate");function cu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(cu,"_ts_metadata");var Zs=class{static{o(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vServ",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vBC",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vISS",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vPIS",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vCOFINS",void 0);uu([(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"dCompet",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vDeducao",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vOutro",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vDescIncond",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vDescCond",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vISSRet",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"cRegTrib",void 0);var Td=require("class-validator");function mg(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(mg,"_ts_decorate");function gg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gg,"_ts_metadata");var rc=class{static{o(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vRetPIS",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vRetCOFINS",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vRetCSLL",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vBCIRRF",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vIRRF",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vBCRetPrev",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vRetPrev",void 0);function YV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(YV,"_ts_decorate");function ZV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ZV,"_ts_metadata");var Hf=class{static{o(this,"Total")}ICMSTot;ISSQNtot;retTrib};YV([(0,vg.ValidateNested)(),(0,b_.Type)(()=>qr),ZV("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Hf.prototype,"ICMSTot",void 0);YV([(0,vg.IsOptional)(),(0,vg.ValidateNested)(),(0,b_.Type)(()=>Zs),ZV("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Hf.prototype,"ISSQNtot",void 0);YV([(0,vg.IsOptional)(),(0,vg.ValidateNested)(),(0,b_.Type)(()=>rc),ZV("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Hf.prototype,"retTrib",void 0);var bi=require("class-validator"),VS=require("class-transformer");var ta=require("class-validator");function Rd(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Rd,"_ts_decorate");function yg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yg,"_ts_metadata");var ea=class{static{o(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"CNPJ",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"CPF",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"xNome",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"IE",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"xEnder",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"xMun",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"UF",void 0);ea=Rd([Zr({properties:["CNPJ","CPF"]})],ea);var xl=require("class-validator");function OS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(OS,"_ts_decorate");function PS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(PS,"_ts_metadata");var wo=class{static{o(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};OS([(0,xl.IsOptional)(),Se({fixed:2}),PS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vServ",void 0);OS([(0,xl.IsOptional)(),Se({fixed:2}),PS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vBCRet",void 0);OS([(0,xl.IsOptional)(),Se({fixed:4}),PS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"pICMSRet",void 0);OS([(0,xl.IsOptional)(),Se({fixed:2}),PS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vICMSRet",void 0);OS([(0,xl.IsOptional)(),(0,xl.IsString)(),PS("design:type",String)],wo.prototype,"CFOP",void 0);OS([(0,xl.IsOptional)(),(0,xl.IsString)(),PS("design:type",String)],wo.prototype,"cMunFG",void 0);var Wa=require("class-validator");function BS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(BS,"_ts_decorate");function FS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(FS,"_ts_metadata");var bl=class{static{o(this,"VeicTransp")}placa;UF;RNTC};BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],bl.prototype,"placa",void 0);BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],bl.prototype,"UF",void 0);BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],bl.prototype,"RNTC",void 0);var Sg=class{static{o(this,"Reboque")}placa;UF;RNTC};BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],Sg.prototype,"placa",void 0);BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],Sg.prototype,"UF",void 0);BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],Sg.prototype,"RNTC",void 0);var lu=require("class-validator");function LS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(LS,"_ts_decorate");function kS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(kS,"_ts_metadata");var wl=class{static{o(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};LS([(0,lu.IsOptional)(),(0,lu.IsString)(),kS("design:type",String)],wl.prototype,"qVol",void 0);LS([(0,lu.IsOptional)(),(0,lu.IsString)(),kS("design:type",String)],wl.prototype,"esp",void 0);LS([(0,lu.IsOptional)(),(0,lu.IsString)(),kS("design:type",String)],wl.prototype,"marca",void 0);LS([(0,lu.IsOptional)(),(0,lu.IsString)(),kS("design:type",String)],wl.prototype,"nVol",void 0);LS([(0,lu.IsOptional)(),Se({fixed:3}),kS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wl.prototype,"pesoL",void 0);LS([(0,lu.IsOptional)(),Se({fixed:3}),kS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wl.prototype,"pesoB",void 0);function zf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zf,"_ts_decorate");function Dd(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Dd,"_ts_metadata");var ra=class{static{o(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};zf([(0,bi.IsString)(),Dd("design:type",String)],ra.prototype,"modFrete",void 0);zf([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,VS.Type)(()=>ea),Dd("design:type",typeof ea>"u"?Object:ea)],ra.prototype,"transporta",void 0);zf([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,VS.Type)(()=>wo),Dd("design:type",typeof wo>"u"?Object:wo)],ra.prototype,"retTransp",void 0);zf([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,VS.Type)(()=>bl),Dd("design:type",typeof bl>"u"?Object:bl)],ra.prototype,"veicTransp",void 0);zf([(0,bi.IsOptional)(),(0,bi.ValidateNested)({each:!0}),(0,VS.Type)(()=>Sg),(0,bi.ArrayMaxSize)(5),Dd("design:type",Array)],ra.prototype,"reboque",void 0);zf([(0,bi.IsOptional)(),(0,bi.IsString)(),Dd("design:type",String)],ra.prototype,"vagao",void 0);zf([(0,bi.IsOptional)(),(0,bi.IsString)(),Dd("design:type",String)],ra.prototype,"balsa",void 0);zf([(0,bi.IsOptional)(),(0,bi.ValidateNested)({each:!0}),(0,VS.Type)(()=>wl),(0,bi.ArrayMaxSize)(5e3),Dd("design:type",Array)],ra.prototype,"vol",void 0);ra=zf([Zr({properties:["veicTransp","reboque"]}),Zr({properties:["vagao","balsa"]})],ra);var Ui=require("class-validator"),e8=require("class-transformer");function $f(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($f,"_ts_decorate");function Gf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Gf,"_ts_metadata");var Kf=class{static{o(this,"Fat")}nFat;vOrig;vDesc;vLiq};$f([(0,Ui.IsOptional)(),(0,Ui.IsString)(),Gf("design:type",String)],Kf.prototype,"nFat",void 0);$f([(0,Ui.IsOptional)(),Se({fixed:2}),Gf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kf.prototype,"vOrig",void 0);$f([(0,Ui.IsOptional)(),Se({fixed:2}),Gf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kf.prototype,"vDesc",void 0);$f([(0,Ui.IsOptional)(),Se({fixed:2}),Gf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kf.prototype,"vLiq",void 0);var jS=class{static{o(this,"Dup")}nDup;dVenc;vDup};$f([(0,Ui.IsOptional)(),(0,Ui.IsString)(),Gf("design:type",String)],jS.prototype,"nDup",void 0);$f([(0,Ui.IsOptional)(),(0,Ui.IsString)(),Gf("design:type",String)],jS.prototype,"dVenc",void 0);$f([(0,Ui.IsOptional)(),Se({fixed:2}),Gf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jS.prototype,"vDup",void 0);var _d=class{static{o(this,"Cobr")}fat;dup};$f([(0,Ui.IsOptional)(),(0,Ui.ValidateNested)(),(0,e8.Type)(()=>Kf),Gf("design:type",typeof Kf>"u"?Object:Kf)],_d.prototype,"fat",void 0);$f([(0,Ui.IsOptional)(),(0,Ui.ValidateNested)({each:!0}),(0,Ui.ArrayMaxSize)(120),(0,e8.Type)(()=>jS),Gf("design:type",Array)],_d.prototype,"dup",void 0);var Bd=require("class-validator"),IZ=require("class-transformer");var El=require("class-validator"),EZ=require("class-transformer");var Od=require("class-validator");function t8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(t8,"_ts_decorate");function r8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(r8,"_ts_metadata");var Cl=class{static{o(this,"Card")}cNPJ;tBand;cAut};t8([(0,Od.IsOptional)(),(0,Od.IsString)(),r8("design:type",String)],Cl.prototype,"cNPJ",void 0);t8([(0,Od.IsOptional)(),(0,Od.IsString)(),r8("design:type",String)],Cl.prototype,"tBand",void 0);t8([(0,Od.IsOptional)(),(0,Od.IsString)(),r8("design:type",String)],Cl.prototype,"cAut",void 0);function mA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(mA,"_ts_decorate");function gA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gA,"_ts_metadata");var Xf=class{static{o(this,"DetPag")}indPag;tPag;vPag;card;xPag};mA([(0,El.IsOptional)(),(0,El.IsString)(),gA("design:type",String)],Xf.prototype,"indPag",void 0);mA([(0,El.IsString)(),gA("design:type",typeof TPag>"u"?Object:TPag)],Xf.prototype,"tPag",void 0);mA([Se({fixed:2}),gA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xf.prototype,"vPag",void 0);mA([(0,El.IsOptional)(),(0,El.ValidateNested)(),(0,EZ.Type)(()=>Cl),gA("design:type",typeof Cl>"u"?Object:Cl)],Xf.prototype,"card",void 0);mA([(0,El.IsOptional)(),(0,El.IsString)(),gA("design:type",String)],Xf.prototype,"xPag",void 0);function AZ(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(AZ,"_ts_decorate");function NZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(NZ,"_ts_metadata");var Pd=class{static{o(this,"Pag")}detPag;vTroco};AZ([(0,Bd.ValidateNested)({each:!0}),(0,Bd.ArrayMinSize)(1),(0,Bd.ArrayMaxSize)(100),(0,IZ.Type)(()=>Xf),NZ("design:type",Array)],Pd.prototype,"detPag",void 0);AZ([(0,Bd.IsOptional)(),Se({fixed:2}),NZ("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pd.prototype,"vTroco",void 0);var ri=require("class-validator"),w_=require("class-transformer");function Wf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Wf,"_ts_decorate");function Jf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Jf,"_ts_metadata");var US=class{static{o(this,"InfAdicObs")}xCampo;xTexto};Wf([(0,ri.IsString)(),Jf("design:type",String)],US.prototype,"xCampo",void 0);Wf([(0,ri.IsString)(),Jf("design:type",String)],US.prototype,"xTexto",void 0);var vA=class{static{o(this,"ProcRef")}nProc;indProc};Wf([(0,ri.IsOptional)(),(0,ri.IsString)(),Jf("design:type",String)],vA.prototype,"nProc",void 0);Wf([(0,ri.IsOptional)(),(0,ri.IsString)(),Jf("design:type",String)],vA.prototype,"indProc",void 0);var nc=class{static{o(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Wf([(0,ri.IsOptional)(),(0,ri.IsString)(),Jf("design:type",String)],nc.prototype,"infAdFisco",void 0);Wf([(0,ri.IsOptional)(),(0,ri.IsString)(),Jf("design:type",String)],nc.prototype,"infCpl",void 0);Wf([(0,ri.IsOptional)(),(0,ri.ValidateNested)({each:!0}),(0,w_.Type)(()=>US),(0,ri.ArrayMaxSize)(10),Jf("design:type",Array)],nc.prototype,"obsCont",void 0);Wf([(0,ri.IsOptional)(),(0,ri.ValidateNested)({each:!0}),(0,w_.Type)(()=>US),(0,ri.ArrayMaxSize)(10),Jf("design:type",Array)],nc.prototype,"obsFisco",void 0);Wf([(0,ri.IsOptional)(),(0,ri.ValidateNested)({each:!0}),(0,w_.Type)(()=>vA),(0,ri.ArrayMaxSize)(100),Jf("design:type",Array)],nc.prototype,"procRef",void 0);var dn=require("class-validator"),E_=require("class-transformer");function Sa(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Sa,"_ts_decorate");function xa(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xa,"_ts_metadata");var C_=class{static{o(this,"ForDiaAttributes")}dia};Sa([(0,dn.IsString)(),xa("design:type",String)],C_.prototype,"dia",void 0);var yA=class{static{o(this,"ForDia")}$;qtde};Sa([(0,dn.IsObject)(),(0,dn.IsNotEmptyObject)(),(0,E_.Type)(()=>C_),xa("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],yA.prototype,"$",void 0);Sa([(0,dn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yA.prototype,"qtde",void 0);var SA=class{static{o(this,"Deduc")}xDed;vDed};Sa([(0,dn.IsString)(),xa("design:type",String)],SA.prototype,"xDed",void 0);Sa([Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],SA.prototype,"vDed",void 0);var na=class{static{o(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};Sa([(0,dn.IsString)(),xa("design:type",String)],na.prototype,"safra",void 0);Sa([(0,dn.IsString)(),xa("design:type",String)],na.prototype,"ref",void 0);Sa([(0,dn.ValidateNested)({each:!0}),(0,dn.ArrayMaxSize)(31),(0,E_.Type)(()=>yA),xa("design:type",Array)],na.prototype,"forDia",void 0);Sa([(0,dn.IsOptional)(),(0,dn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotMes",void 0);Sa([(0,dn.IsOptional)(),(0,dn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotAnt",void 0);Sa([(0,dn.IsOptional)(),(0,dn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotGer",void 0);Sa([(0,dn.IsOptional)(),(0,dn.ValidateNested)({each:!0}),(0,dn.ArrayMaxSize)(10),(0,E_.Type)(()=>SA),xa("design:type",Array)],na.prototype,"deduc",void 0);Sa([(0,dn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vFor",void 0);Sa([(0,dn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vTotDed",void 0);Sa([(0,dn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vLiqFor",void 0);var sa=require("class-validator"),ex=require("class-transformer");var ut=require("class-validator");var Al=require("class-transformer");var ic=require("class-validator");function xA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(xA,"_ts_decorate");function bA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bA,"_ts_metadata");var Qf=class{static{o(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};xA([(0,ic.IsString)(),bA("design:type",String)],Qf.prototype,"nLote",void 0);xA([(0,ic.IsOptional)(),(0,ic.IsString)(),bA("design:type",String)],Qf.prototype,"qLote",void 0);xA([(0,ic.IsOptional)(),(0,ic.IsString)(),bA("design:type",String)],Qf.prototype,"dFab",void 0);xA([(0,ic.IsOptional)(),(0,ic.IsString)(),bA("design:type",String)],Qf.prototype,"dVal",void 0);xA([(0,ic.IsOptional)(),(0,ic.IsString)(),bA("design:type",String)],Qf.prototype,"cAgreg",void 0);var nn=require("class-validator"),TZ=require("class-transformer");function as(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(as,"_ts_decorate");function Os(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Os,"_ts_metadata");var Fd=class{static{o(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};as([(0,nn.IsString)(),Os("design:type",String)],Fd.prototype,"nAdicao",void 0);as([(0,nn.IsString)(),Os("design:type",String)],Fd.prototype,"nSeqAdic",void 0);as([(0,nn.IsString)(),Os("design:type",String)],Fd.prototype,"cFabricante",void 0);as([Se({fixed:2}),Os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fd.prototype,"vDescDI",void 0);as([(0,nn.IsOptional)(),(0,nn.IsString)(),Os("design:type",String)],Fd.prototype,"nDraw",void 0);var ss=class{static{o(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"nDI",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"dDI",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"xLocDesemb",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"UFDesemb",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"dDesemb",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"tpViaTransp",void 0);as([(0,nn.IsOptional)(),Se({fixed:2}),Os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ss.prototype,"vAFRMM",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"tpIntermedio",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Os("design:type",String)],ss.prototype,"CNPJ",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Os("design:type",String)],ss.prototype,"CPF",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Os("design:type",String)],ss.prototype,"UFTerceiro",void 0);as([(0,nn.IsArray)(),(0,nn.ValidateNested)({each:!0}),(0,TZ.Type)(()=>Fd),(0,nn.ArrayMaxSize)(999),(0,nn.ArrayMinSize)(1),Os("design:type",Array)],ss.prototype,"adi",void 0);ss=as([Zr({properties:["CNPJ","CPF"],required:!0})],ss);var RZ=require("class-transformer"),Yf=require("class-validator");function wA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(wA,"_ts_decorate");function CA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(CA,"_ts_metadata");var MS=class{static{o(this,"ExportInd")}nRE;chNFe;qExport};wA([(0,Yf.IsString)(),CA("design:type",String)],MS.prototype,"nRE",void 0);wA([(0,Yf.IsString)(),CA("design:type",String)],MS.prototype,"chNFe",void 0);wA([Se({fixed:4}),CA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],MS.prototype,"qExport",void 0);var qS=class{static{o(this,"DetExport")}nDraw;exportInd};wA([(0,Yf.IsOptional)(),(0,Yf.IsString)(),CA("design:type",String)],qS.prototype,"nDraw",void 0);wA([(0,Yf.IsOptional)(),(0,Yf.ValidateNested)(),(0,RZ.Type)(()=>MS),CA("design:type",typeof IExportInd>"u"?Object:IExportInd)],qS.prototype,"exportInd",void 0);var n8=require("class-validator");function DZ(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(DZ,"_ts_decorate");function _Z(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_Z,"_ts_metadata");var HS=class{static{o(this,"InfProdNFF")}cProdFisco;cOperNFF};DZ([(0,n8.IsString)(),_Z("design:type",String)],HS.prototype,"cProdFisco",void 0);DZ([(0,n8.IsString)(),_Z("design:type",String)],HS.prototype,"cOperNFF",void 0);var a8=require("class-validator");function i8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(i8,"_ts_decorate");function s8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(s8,"_ts_metadata");var xg=class{static{o(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};i8([(0,a8.IsString)(),s8("design:type",String)],xg.prototype,"xEmb",void 0);i8([Se({fixed:3}),s8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xg.prototype,"qVolEmb",void 0);i8([(0,a8.IsString)(),s8("design:type",String)],xg.prototype,"uEmb",void 0);var _n=require("class-validator");function jn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(jn,"_ts_decorate");function Un(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Un,"_ts_metadata");var un=class{static{o(this,"VeicProd")}tpOp;chassi;cCor;xCor;pot;cilin;pesoL;pesoB;nSerie;tpComb;nMotor;CMT;dist;anoMod;anoFab;tpPint;tpVeic;espVeic;VIN;condVeic;cMod;cCorDENATRAN;lota;tpRest};jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"tpOp",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"chassi",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"cCor",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"xCor",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"pot",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"cilin",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"pesoL",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"pesoB",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"nSerie",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"tpComb",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"nMotor",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"CMT",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"dist",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"anoMod",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"anoFab",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"tpPint",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"tpVeic",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"espVeic",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"VIN",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"condVeic",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"cMod",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"cCorDENATRAN",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"lota",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"tpRest",void 0);var c8=require("class-validator");function o8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(o8,"_ts_decorate");function u8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(u8,"_ts_metadata");var bg=class{static{o(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};o8([(0,c8.IsString)(),u8("design:type",String)],bg.prototype,"cProdANVISA",void 0);o8([(0,c8.IsString)(),u8("design:type",String)],bg.prototype,"xMotivoIsencao",void 0);o8([Se({fixed:2}),u8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bg.prototype,"vPMC",void 0);var EA=require("class-validator");function A_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(A_,"_ts_decorate");function N_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(N_,"_ts_metadata");var Ld=class{static{o(this,"Arma")}tpArma;nSerie;nCano;descr};A_([(0,EA.IsString)(),N_("design:type",String)],Ld.prototype,"tpArma",void 0);A_([(0,EA.IsString)(),N_("design:type",String)],Ld.prototype,"nSerie",void 0);A_([(0,EA.IsString)(),N_("design:type",String)],Ld.prototype,"nCano",void 0);A_([(0,EA.IsString)(),N_("design:type",String)],Ld.prototype,"descr",void 0);var Fr=require("class-validator"),I_=require("class-transformer");function Mn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mn,"_ts_decorate");function qn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(qn,"_ts_metadata");var zS=class{static{o(this,"OrigComb")}indImport;cUFOrig;pOrig};Mn([(0,Fr.IsString)(),qn("design:type",String)],zS.prototype,"indImport",void 0);Mn([(0,Fr.IsString)(),qn("design:type",String)],zS.prototype,"cUFOrig",void 0);Mn([Se({fixed:4}),(0,Fr.Max)(100),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zS.prototype,"pOrig",void 0);var KS=class{static{o(this,"CIDE")}qBCProd;vAliqProd;vCIDE};Mn([Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],KS.prototype,"qBCProd",void 0);Mn([Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],KS.prototype,"vAliqProd",void 0);Mn([Se({fixed:2}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],KS.prototype,"vCIDE",void 0);var kd=class{static{o(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};Mn([(0,Fr.IsString)(),qn("design:type",String)],kd.prototype,"nBico",void 0);Mn([(0,Fr.IsString)(),qn("design:type",String)],kd.prototype,"nBomba",void 0);Mn([(0,Fr.IsString)(),qn("design:type",String)],kd.prototype,"nTanque",void 0);Mn([Se({fixed:3}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kd.prototype,"vEncIni",void 0);Mn([Se({fixed:3}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kd.prototype,"vEncFin",void 0);var Ps=class{static{o(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};Mn([(0,Fr.IsString)(),qn("design:type",String)],Ps.prototype,"cProdANP",void 0);Mn([(0,Fr.IsString)(),qn("design:type",String)],Ps.prototype,"descANP",void 0);Mn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGLP",void 0);Mn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGNn",void 0);Mn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGNi",void 0);Mn([(0,Fr.IsOptional)(),Se({fixed:2}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"vPart",void 0);Mn([(0,Fr.IsString)(),(0,Fr.IsOptional)(),qn("design:type",String)],Ps.prototype,"CODIF",void 0);Mn([(0,Fr.IsOptional)(),Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"qTemp",void 0);Mn([(0,Fr.IsString)(),qn("design:type",String)],Ps.prototype,"UFCons",void 0);Mn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)(),(0,I_.Type)(()=>KS),qn("design:type",typeof ICIDE>"u"?Object:ICIDE)],Ps.prototype,"CIDE",void 0);Mn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)(),(0,I_.Type)(()=>kd),qn("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Ps.prototype,"encerrante",void 0);Mn([(0,Fr.IsOptional)(),Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pBio",void 0);Mn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)({each:!0}),(0,I_.Type)(()=>zS),(0,Fr.ArrayMaxSize)(30),(0,Fr.IsOptional)(),qn("design:type",Array)],Ps.prototype,"origComb",void 0);function dr(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(dr,"_ts_decorate");function gr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gr,"_ts_metadata");var zt=class{static{o(this,"Prod")}cProd;cEAN;cBarra;xProd;NCM;NVE;CEST;indEscala;CNPJFab;cBenef;gCred;EXTIPI;CFOP;uCom;qCom;vUnCom;vProd;cEANTrib;uTrib;qTrib;vUnTrib;vFrete;vSeg;vDesc;vOutro;indTot;DI;detExport;xPed;nItemPed;nFCI;rastro;infProdNFF;infProdEmb;veicProd;med;arma;comb;nRECOPI};dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"cProd",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"cEAN",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"cBarra",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"xProd",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"NCM",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ArrayMaxSize)(8),(0,ut.IsString)({each:!0}),gr("design:type",Array)],zt.prototype,"NVE",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"CEST",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"indEscala",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"CNPJFab",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"cBenef",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),gr("design:type",Object)],zt.prototype,"gCred",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"EXTIPI",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"CFOP",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"uCom",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"qCom",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vUnCom",void 0);dr([Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vProd",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"cEANTrib",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"uTrib",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"qTrib",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vUnTrib",void 0);dr([(0,ut.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vFrete",void 0);dr([(0,ut.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vSeg",void 0);dr([(0,ut.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vDesc",void 0);dr([(0,ut.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vOutro",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"indTot",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(100),(0,Al.Type)(()=>ss),gr("design:type",Array)],zt.prototype,"DI",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(500),(0,Al.Type)(()=>qS),gr("design:type",Array)],zt.prototype,"detExport",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"xPed",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"nItemPed",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"nFCI",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(500),(0,Al.Type)(()=>Qf),gr("design:type",Array)],zt.prototype,"rastro",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,Al.Type)(()=>HS),gr("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],zt.prototype,"infProdNFF",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,Al.Type)(()=>xg),gr("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],zt.prototype,"infProdEmb",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,Al.Type)(()=>un),gr("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],zt.prototype,"veicProd",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,Al.Type)(()=>bg),gr("design:type",typeof IMed>"u"?Object:IMed)],zt.prototype,"med",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)({each:!0}),(0,Al.Type)(()=>Ld),(0,ut.ArrayMaxSize)(500),gr("design:type",Array)],zt.prototype,"arma",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,Al.Type)(()=>Ps),gr("design:type",typeof IComb>"u"?Object:IComb)],zt.prototype,"comb",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"nRECOPI",void 0);zt=dr([Zr({properties:["veicProd","med","arma","comb"]})],zt);var Ol=require("class-transformer"),ni=require("class-validator");var ue=require("class-validator"),us=require("class-transformer");function Ae(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ae,"_ts_decorate");function Ie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ie,"_ts_metadata");var Zf=class{static{o(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Zf.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Zf.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Zf.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"vICMS",void 0);var Co=class{static{o(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Co.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Co.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Co.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Co.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vICMSST",void 0);var Nl=class{static{o(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"vICMS",void 0);var ep=class{static{o(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],ep.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ep.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ep.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"vICMSST",void 0);var wg=class{static{o(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],wg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],wg.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wg.prototype,"vICMSDeson",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],wg.prototype,"motDesICMS",void 0);var fu=class{static{o(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};Ae([(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),(0,ue.Max)(100),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pDif",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vICMSDif",void 0);var tp=class{static{o(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],tp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],tp.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vICMSSTRet",void 0);var Ja=class{static{o(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vICMSST",void 0);var Qa=class{static{o(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vICMSST",void 0);var os=class{static{o(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pMVAST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pBCOp",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"UFST",void 0);var rp=class{static{o(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],rp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],rp.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"vICMSSTRet",void 0);var Cg=class{static{o(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],Cg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Cg.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Cg.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Cg.prototype,"vCredICMSSN",void 0);var AA=class{static{o(this,"ICMSSN102")}orig;CSOSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],AA.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],AA.prototype,"CSOSN",void 0);var sc=class{static{o(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],sc.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],sc.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],sc.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"vCredICMSSN",void 0);var np=class{static{o(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vICMSST",void 0);var ip=class{static{o(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vICMSSTRet",void 0);var ia=class{static{o(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vCredICMSSN",void 0);var On=class{static{o(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Zf),Ie("design:type",typeof IICMS00>"u"?Object:IICMS00)],On.prototype,"ICMS00",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Co),Ie("design:type",typeof IICMS10>"u"?Object:IICMS10)],On.prototype,"ICMS10",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Nl),Ie("design:type",typeof IICMS20>"u"?Object:IICMS20)],On.prototype,"ICMS20",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ep),Ie("design:type",typeof IICMS30>"u"?Object:IICMS30)],On.prototype,"ICMS30",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>wg),Ie("design:type",typeof IICMS40>"u"?Object:IICMS40)],On.prototype,"ICMS40",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>fu),Ie("design:type",typeof IICMS51>"u"?Object:IICMS51)],On.prototype,"ICMS51",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>tp),Ie("design:type",typeof IICMS60>"u"?Object:IICMS60)],On.prototype,"ICMS60",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Ja),Ie("design:type",typeof IICMS70>"u"?Object:IICMS70)],On.prototype,"ICMS70",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Qa),Ie("design:type",typeof IICMS90>"u"?Object:IICMS90)],On.prototype,"ICMS90",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>os),Ie("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],On.prototype,"ICMSPart",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>rp),Ie("design:type",typeof IICMSST>"u"?Object:IICMSST)],On.prototype,"ICMSST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Cg),Ie("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],On.prototype,"ICMSSN101",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>AA),Ie("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],On.prototype,"ICMSSN102",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>sc),Ie("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],On.prototype,"ICMSSN201",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>np),Ie("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],On.prototype,"ICMSSN202",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ip),Ie("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],On.prototype,"ICMSSN500",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ia),Ie("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],On.prototype,"ICMSSN900",void 0);On=Ae([Zr({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],On);var En=require("class-validator"),l8=require("class-transformer");function Eo(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Eo,"_ts_decorate");function Ao(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ao,"_ts_metadata");var sp=class{static{o(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Eo([(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"CST",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"vBC",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"pIPI",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"qUnid",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"vUnid",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"vIPI",void 0);var T_=class{static{o(this,"IPINT")}CST};Eo([(0,En.IsString)(),Ao("design:type",String)],T_.prototype,"CST",void 0);var pu=class{static{o(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],pu.prototype,"CNPJProd",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],pu.prototype,"cSelo",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],pu.prototype,"qSelo",void 0);Eo([(0,En.IsString)(),Ao("design:type",String)],pu.prototype,"cEnq",void 0);Eo([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,l8.Type)(()=>sp),Ao("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],pu.prototype,"IPITrib",void 0);Eo([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,l8.Type)(()=>T_),Ao("design:type",typeof IIPINT>"u"?Object:IIPINT)],pu.prototype,"IPINT",void 0);var Tl=require("class-validator");function R_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(R_,"_ts_decorate");function D_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(D_,"_ts_metadata");var Il=class{static{o(this,"II")}vBC;vDespAdu;vII;vIOF};R_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),D_("design:type",String)],Il.prototype,"vBC",void 0);R_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),D_("design:type",String)],Il.prototype,"vDespAdu",void 0);R_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),D_("design:type",String)],Il.prototype,"vII",void 0);R_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),D_("design:type",String)],Il.prototype,"vIOF",void 0);var Kt=require("class-validator"),NA=require("class-transformer");function Hn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Hn,"_ts_decorate");function zn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(zn,"_ts_metadata");var ap=class{static{o(this,"PISAliq")}CST;vBC;pPIS;vPIS};Hn([(0,Kt.IsString)(),zn("design:type",String)],ap.prototype,"CST",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ap.prototype,"vBC",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ap.prototype,"pPIS",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ap.prototype,"vPIS",void 0);var op=class{static{o(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};Hn([(0,Kt.IsString)(),zn("design:type",String)],op.prototype,"CST",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],op.prototype,"qBCProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],op.prototype,"vAliqProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],op.prototype,"vPIS",void 0);var $S=class{static{o(this,"PISNT")}CST};Hn([(0,Kt.IsString)(),zn("design:type",String)],$S.prototype,"CST",void 0);var ac=class{static{o(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};Hn([(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"CST",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"vBC",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"pPIS",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"qBCProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"vAliqProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"vPIS",void 0);var Rl=class{static{o(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};Hn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,NA.Type)(()=>ap),zn("design:type",typeof ap>"u"?Object:ap)],Rl.prototype,"PISAliq",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,NA.Type)(()=>op),zn("design:type",typeof op>"u"?Object:op)],Rl.prototype,"PISQtde",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,NA.Type)(()=>$S),zn("design:type",typeof $S>"u"?Object:$S)],Rl.prototype,"PISNT",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,NA.Type)(()=>ac),zn("design:type",typeof ac>"u"?Object:ac)],Rl.prototype,"PISOutr",void 0);var oc=class{static{o(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],oc.prototype,"vBC",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],oc.prototype,"pPIS",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],oc.prototype,"qBCProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],oc.prototype,"vAliqProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],oc.prototype,"vPIS",void 0);var $t=require("class-validator"),IA=require("class-transformer");function Kn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Kn,"_ts_decorate");function $n(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($n,"_ts_metadata");var up=class{static{o(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};Kn([(0,$t.IsString)(),$n("design:type",String)],up.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],up.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],up.prototype,"pCOFINS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],up.prototype,"vCOFINS",void 0);var cp=class{static{o(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};Kn([(0,$t.IsString)(),$n("design:type",String)],cp.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cp.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cp.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cp.prototype,"vCOFINS",void 0);var GS=class{static{o(this,"COFINSNT")}CST};Kn([(0,$t.IsString)(),$n("design:type",String)],GS.prototype,"CST",void 0);var uc=class{static{o(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};Kn([(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"pCOFINS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vCOFINS",void 0);var Dl=class{static{o(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,IA.Type)(()=>up),$n("design:type",typeof up>"u"?Object:up)],Dl.prototype,"COFINSAliq",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,IA.Type)(()=>cp),$n("design:type",typeof cp>"u"?Object:cp)],Dl.prototype,"COFINSQtde",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,IA.Type)(()=>GS),$n("design:type",typeof GS>"u"?Object:GS)],Dl.prototype,"COFINSNT",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,IA.Type)(()=>uc),$n("design:type",typeof uc>"u"?Object:uc)],Dl.prototype,"COFINSOutr",void 0);var cc=class{static{o(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"pCOFINS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vCOFINS",void 0);var Ya=require("class-validator");function XS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(XS,"_ts_decorate");function WS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(WS,"_ts_metadata");var hu=class{static{o(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"vBC",void 0);XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"vAliq",void 0);XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"vISSQN",void 0);XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"cMunFG",void 0);XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"cListServ",void 0);XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"cSitTrib",void 0);var _i=require("class-validator");function lp(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(lp,"_ts_decorate");function fp(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fp,"_ts_metadata");var ba=class{static{o(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"vBCUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"vBCFCPUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"pFCPUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"pICMSUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"pICMSInter",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"pICMSInterPart",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"vFCPUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"vICMSUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"vICMSUFRemet",void 0);function lc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(lc,"_ts_decorate");function _l(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_l,"_ts_metadata");var cs=class{static{o(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest};lc([(0,ni.IsOptional)(),(0,ni.IsNumber)(),_l("design:type",Number)],cs.prototype,"vTotTrib",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>On),_l("design:type",typeof IICMS>"u"?Object:IICMS)],cs.prototype,"ICMS",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>pu),_l("design:type",typeof IIPI>"u"?Object:IIPI)],cs.prototype,"IPI",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>hu),_l("design:type",typeof IISSQN>"u"?Object:IISSQN)],cs.prototype,"ISSQN",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>Il),_l("design:type",typeof III>"u"?Object:III)],cs.prototype,"II",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>Rl),_l("design:type",typeof IPIS>"u"?Object:IPIS)],cs.prototype,"PIS",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>oc),_l("design:type",typeof IPISST>"u"?Object:IPISST)],cs.prototype,"PISST",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>Dl),_l("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],cs.prototype,"COFINS",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>cc),_l("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],cs.prototype,"COFINSST",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>ba),_l("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],cs.prototype,"ICMSUFDest",void 0);cs=lc([Zr({properties:["ICMS","ISSQN"]})],cs);var Eg=require("class-validator"),OZ=require("class-transformer");function f8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(f8,"_ts_decorate");function p8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(p8,"_ts_metadata");var __=class{static{o(this,"IpiDevol")}vIPIDevol};f8([(0,Eg.IsString)(),p8("design:type",String)],__.prototype,"vIPIDevol",void 0);var JS=class{static{o(this,"Devol")}pDevol;IPI};f8([(0,Eg.IsString)(),p8("design:type",String)],JS.prototype,"pDevol",void 0);f8([(0,Eg.IsOptional)(),(0,Eg.ValidateNested)(),(0,OZ.Type)(()=>__),p8("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],JS.prototype,"IPI",void 0);var pp=require("class-validator"),h8=require("class-transformer");function O_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(O_,"_ts_decorate");function P_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(P_,"_ts_metadata");var QS=class{static{o(this,"Observation")}xCampo;xTexto};O_([(0,pp.IsString)(),P_("design:type",String)],QS.prototype,"xCampo",void 0);O_([(0,pp.IsString)(),P_("design:type",String)],QS.prototype,"xTexto",void 0);var YS=class{static{o(this,"ObsItem")}obsCont;obsFisco};O_([(0,pp.IsOptional)(),(0,pp.ValidateNested)(),(0,h8.Type)(()=>QS),P_("design:type",typeof IObservation>"u"?Object:IObservation)],YS.prototype,"obsCont",void 0);O_([(0,pp.IsOptional)(),(0,pp.ValidateNested)(),(0,h8.Type)(()=>QS),P_("design:type",typeof IObservation>"u"?Object:IObservation)],YS.prototype,"obsFisco",void 0);function Ag(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ag,"_ts_decorate");function Ng(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ng,"_ts_metadata");var ZS=class{static{o(this,"DetAttributes")}nItem};Ag([(0,sa.IsString)(),Ng("design:type",String)],ZS.prototype,"nItem",void 0);var Pl=class{static{o(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem};Ag([(0,sa.IsObject)(),(0,sa.ValidateNested)(),(0,ex.Type)(()=>ZS),Ng("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],Pl.prototype,"$",void 0);Ag([(0,sa.ValidateNested)(),(0,ex.Type)(()=>zt),Ng("design:type",typeof IProd>"u"?Object:IProd)],Pl.prototype,"prod",void 0);Ag([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ex.Type)(()=>cs),Ng("design:type",typeof IImposto>"u"?Object:IImposto)],Pl.prototype,"imposto",void 0);Ag([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ex.Type)(()=>JS),Ng("design:type",typeof IDevol>"u"?Object:IDevol)],Pl.prototype,"impostoDevol",void 0);Ag([(0,sa.IsOptional)(),(0,sa.IsString)(),Ng("design:type",String)],Pl.prototype,"infAdProd",void 0);Ag([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ex.Type)(()=>YS),Ng("design:type",typeof IObsItem>"u"?Object:IObsItem)],Pl.prototype,"obsItem",void 0);var Fs=require("class-validator");function fc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(fc,"_ts_decorate");function pc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(pc,"_ts_metadata");var Bs=class{static{o(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"CNPJ",void 0);fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"xOrgao",void 0);fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"matr",void 0);fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"xAgente",void 0);fc([(0,Fs.IsOptional)(),(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"fone",void 0);fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"UF",void 0);fc([(0,Fs.IsOptional)(),(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"nDAR",void 0);fc([(0,Fs.IsOptional)(),Mp({format:"YYYY-MM-DD"}),pc("design:type",typeof Date>"u"?Object:Date)],Bs.prototype,"dEmi",void 0);fc([(0,Fs.IsOptional)(),Se({fixed:2}),pc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"vDAR",void 0);fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"repEmi",void 0);fc([(0,Fs.IsOptional)(),(0,Fs.IsDate)(),pc("design:type",typeof Date>"u"?Object:Date)],Bs.prototype,"dPag",void 0);var PZ=require("class-validator");function WAe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(WAe,"_ts_decorate");function JAe(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(JAe,"_ts_metadata");var Ig=class{static{o(this,"InfSolicNFF")}xSolic};WAe([(0,PZ.IsString)(),JAe("design:type",String)],Ig.prototype,"xSolic",void 0);function hi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(hi,"_ts_decorate");function di(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(di,"_ts_metadata");var Tg=class{static{o(this,"InfNFeAttributes")}Id;versao};hi([(0,Ot.IsOptional)(),(0,Ot.IsString)(),di("design:type",String)],Tg.prototype,"Id",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.IsString)(),di("design:type",String)],Tg.prototype,"versao",void 0);var An=class{static{o(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,wi.Type)(()=>Tg),(0,Ot.ValidateNested)(),di("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],An.prototype,"$",void 0);hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Qr),di("design:type",typeof IIde>"u"?Object:IIde)],An.prototype,"ide",void 0);hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ns),di("design:type",typeof IEmit>"u"?Object:IEmit)],An.prototype,"emit",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Bs),di("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],An.prototype,"avulsa",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>is),di("design:type",typeof IDest>"u"?Object:IDest)],An.prototype,"dest",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Cn),di("design:type",typeof ILocal>"u"?Object:ILocal)],An.prototype,"retirada",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Cn),di("design:type",typeof ILocal>"u"?Object:ILocal)],An.prototype,"entrega",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(10),(0,wi.Type)(()=>yl),di("design:type",Array)],An.prototype,"autXML",void 0);hi([(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(990),(0,Ot.ArrayMinSize)(1),(0,wi.Type)(()=>Pl),di("design:type",Array)],An.prototype,"det",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Hf),di("design:type",typeof ITotal>"u"?Object:ITotal)],An.prototype,"total",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ra),di("design:type",typeof ITransp>"u"?Object:ITransp)],An.prototype,"transp",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>_d),di("design:type",typeof ICobr>"u"?Object:ICobr)],An.prototype,"cobr",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Pd),di("design:type",typeof IPag>"u"?Object:IPag)],An.prototype,"pag",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Nd),di("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],An.prototype,"infIntermed",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>nc),di("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],An.prototype,"infAdic",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Mf),di("design:type",typeof IExporta>"u"?Object:IExporta)],An.prototype,"exporta",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>qf),di("design:type",typeof ICompra>"u"?Object:ICompra)],An.prototype,"compra",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>na),di("design:type",typeof ICana>"u"?Object:ICana)],An.prototype,"cana",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ou),di("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],An.prototype,"infRespTec",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Ig),di("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],An.prototype,"infSolicNFF",void 0);var d8=require("class-transformer");function B_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(B_,"_ts_decorate");function F_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(F_,"_ts_metadata");var tx=class{static{o(this,"NFeAttributes")}xmlns};B_([(0,wa.IsString)(),(0,wa.IsNotEmpty)(),F_("design:type",String)],tx.prototype,"xmlns",void 0);var hc=class{static{o(this,"NFe")}$;infNFe;Signature};B_([(0,wa.IsObject)(),(0,wa.IsNotEmptyObject)(),(0,d8.Type)(()=>tx),(0,wa.ValidateNested)(),F_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],hc.prototype,"$",void 0);B_([(0,wa.IsObject)(),(0,wa.IsNotEmptyObject)(),(0,d8.Type)(()=>An),(0,wa.ValidateNested)(),F_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],hc.prototype,"infNFe",void 0);B_([(0,wa.Allow)(),F_("design:type",typeof Signature>"u"?Object:Signature)],hc.prototype,"Signature",void 0);function TA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(TA,"_ts_decorate");function L_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(L_,"_ts_metadata");var hp=class{static{o(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};TA([(0,du.IsEnum)(Me),(0,du.IsOptional)(),L_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],hp.prototype,"tpAmb",void 0);TA([(0,du.IsEnum)(le),(0,du.IsOptional)(),L_("design:type",typeof StateCode>"u"?Object:StateCode)],hp.prototype,"cUF",void 0);TA([(0,du.IsString)(),L_("design:type",String)],hp.prototype,"idLote",void 0);TA([(0,du.IsOptional)(),(0,du.IsEnum)(["0","1"])],hp.prototype,"indSinc",void 0);TA([(0,du.IsNotEmpty)(),(0,BZ.Type)(()=>hc),L_("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],hp.prototype,"NFe",void 0);var RA=require("class-validator");function m8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(m8,"_ts_decorate");function g8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(g8,"_ts_metadata");var Rg=class{static{o(this,"RetAutorizacaoPayload")}tpAmb;cUF;nRec};m8([(0,RA.IsEnum)(Me),g8("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Rg.prototype,"tpAmb",void 0);m8([(0,RA.IsEnum)(le),g8("design:type",typeof StateCode>"u"?Object:StateCode)],Rg.prototype,"cUF",void 0);m8([(0,RA.IsString)(),g8("design:type",String)],Rg.prototype,"nRec",void 0);var Gr=require("class-validator"),DA=require("class-transformer");var k_=(function(r){return r.Cancelamento="110111",r})({});function Mi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mi,"_ts_decorate");function fs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fs,"_ts_metadata");var V_=class{static{o(this,"InfEventoAttributes")}Id};Mi([(0,Gr.IsString)(),fs("design:type",String)],V_.prototype,"Id",void 0);var ls=class{static{o(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};Mi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,DA.Type)(()=>V_),fs("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],ls.prototype,"$",void 0);Mi([(0,Gr.IsString)(),fs("design:type",typeof StateCode>"u"?Object:StateCode)],ls.prototype,"cOrgao",void 0);Mi([(0,Gr.IsString)(),fs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ls.prototype,"tpAmb",void 0);Mi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CNPJ",void 0);Mi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CPF",void 0);Mi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"chNFe",void 0);Mi([Mp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),fs("design:type",String)],ls.prototype,"dhEvento",void 0);Mi([(0,Gr.IsEnum)(k_),fs("design:type",typeof k_>"u"?Object:k_)],ls.prototype,"tpEvento",void 0);Mi([(0,Gr.IsNumber)(),fs("design:type",Number)],ls.prototype,"nSeqEvento",void 0);Mi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"verEvento",void 0);Mi([(0,Gr.IsObject)(),fs("design:type",typeof T>"u"?Object:T)],ls.prototype,"detEvento",void 0);ls=Mi([Zr({properties:["CNPJ","CPF"],required:!0})],ls);var j_=class{static{o(this,"EventoItemAttributes")}xmlns};Mi([(0,Gr.IsString)(),fs("design:type",String)],j_.prototype,"xmlns",void 0);var Vd=class{static{o(this,"EventoItem")}$;infEvento;Signature};Mi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,DA.Type)(()=>j_),fs("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],Vd.prototype,"$",void 0);Mi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,DA.Type)(()=>ls),fs("design:type",typeof ls>"u"?Object:ls)],Vd.prototype,"infEvento",void 0);Mi([(0,Gr.Allow)(),fs("design:type",typeof Signature>"u"?Object:Signature)],Vd.prototype,"Signature",void 0);var rx=class{static{o(this,"EventoPayload")}idLote;evento};Mi([(0,Gr.IsString)(),fs("design:type",String)],rx.prototype,"idLote",void 0);Mi([(0,Gr.IsNotEmpty)(),(0,Gr.ValidateNested)(),(0,DA.Type)(()=>Vd),fs("design:type",typeof Vd>"u"?Object:Vd)],rx.prototype,"evento",void 0);var mu=require("class-validator");function nx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(nx,"_ts_decorate");function U_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(U_,"_ts_metadata");var dc=class{static{o(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};nx([(0,mu.IsOptional)()],dc.prototype,"xServ",void 0);nx([(0,mu.IsString)(),(0,mu.IsIn)(Object.values(gZ)),U_("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],dc.prototype,"UF",void 0);nx([(0,mu.IsOptional)(),(0,mu.IsString)(),U_("design:type",String)],dc.prototype,"IE",void 0);nx([(0,mu.IsOptional)(),(0,mu.IsString)(),U_("design:type",String)],dc.prototype,"CNPJ",void 0);nx([(0,mu.IsOptional)(),(0,mu.IsString)(),U_("design:type",String)],dc.prototype,"CPF",void 0);dc=nx([Zr({properties:["IE","CNPJ","CPF"],required:!0})],dc);var FZ={AM:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},AN:{[Me.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom1.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://hom1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://hom.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}},[Me.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://www.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}}},BA:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}}},GO:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}}},MG:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}}},MT:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}}},PE:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}}},SVAN:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVRS:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVCRS:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};var QAe={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"BA",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVAN",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"PE",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},LZ=QAe;var M_={[le.AC]:"SVCAN",[le.AL]:"SVCAN",[le.AM]:"SVCRS",[le.AP]:"SVCAN",[le.BA]:"SVCRS",[le.CE]:"SVCAN",[le.DF]:"SVCAN",[le.ES]:"SVCAN",[le.GO]:"SVCRS",[le.MA]:"SVCRS",[le.MG]:"SVCAN",[le.MS]:"SVCRS",[le.MT]:"SVCRS",[le.PA]:"SVCAN",[le.PB]:"SVCAN",[le.PE]:"SVCRS",[le.PI]:"SVCAN",[le.PR]:"SVCRS",[le.RJ]:"SVCAN",[le.RN]:"SVCAN",[le.RO]:"SVCAN",[le.RR]:"SVCAN",[le.RS]:"SVCAN",[le.SC]:"SVCAN",[le.SE]:"SVCAN",[le.SP]:"SVCAN",[le.TO]:"SVCAN"};function Dg(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Dg,"_ts_decorate");function Ci(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ci,"_ts_metadata");var Za=class{static{o(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}options={};xmlns="http://www.portalfiscal.inf.br/nfe";configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=W5.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?M_[t]:LZ[t];return FZ[i][n][e.service]}errors(){return Reflect.getMetadata(Mo,this)}validate(e){try{let t=this.errors();return t?Wi(new Ln(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),ai(e))}finally{Reflect.deleteMetadata(Mo,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return kZ.default.resolve(cP,this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(n,i.version)},method:"nfeStatusServicoNF"})}async inutilizacao(e){let t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:i}=t.value.infInut,s=t.value,a=this.service({cUF:n,tpAmb:i,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(s,a.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:n.chNFe.substring(0,2),tpAmb:n.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(n,i.version)},method:"nfeConsultaNF"})}async autorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(n,i.version)},method:"nfeAutorizacaoLote"})}async retAutorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(n,i.version)},method:"nfeRetAutorizacaoLote"})}async recepcaoEvento(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({service:"RecepcaoEvento"});return n.evento=this.ns(n.evento,i.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(n,i.version)},method:"nfeRecepcaoEvento"})}async consultaCadastro(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:le[n.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(n,i.version)},method:"consultaCadastro"})}};Dg([nr(Ad),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultStatus",null);Dg([nr(pg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"inutilizacao",null);Dg([nr(hg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultaProtocolo",null);Dg([nr(hp),Ci("design:type",Function),Ci("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"autorizacao",null);Dg([nr(Rg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"retAutorizacao",null);Dg([nr(rx),Ci("design:type",Function),Ci("design:paramtypes",[Object]),Ci("design:returntype",Promise)],Za.prototype,"recepcaoEvento",null);Dg([nr(dc),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultaCadastro",null);var q_=class{static{o(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=v_.create();toolkit=new t_;caching=new DN;certificates=new g2(this.http,this.caching);soap=new GI(this.toolkit,this.certificates);transmitter=new Za(this.soap);signer=new f2(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(Mo,this)}};var v8=class extends q_{static{o(this,"NfeAuthorizerPipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=await this.signer.sign(e.NFe,{tag:"infNFe",mark:"Id"},n.value);return i.isLeft()?i:(this.transmitter.configure({cUF:e.NFe.infNFe.ide.cUF,tpAmb:e.NFe.infNFe.ide.tpAmb,...t,contingency:this.contingency(e),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15),await this.transmitter.autorizacao({...e,NFe:i.value}))}contingency(e){let{dhCont:t,xJust:n,tpEmis:i}=e.NFe.infNFe.ide;if(!(!t||!n||i===Ta.Normal))return{dhCont:t,xJust:n}}};var y8={AC:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://sistemas.sefaz.am.gov.br/nfceweb-hom/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}}},AP:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://nfewebhomolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://nfeweb.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}}},MA:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}}},MT:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.mt.gov.br/nfce/consultanfce"}}},MS:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}}},PA:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}}},RJ:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}}},SC:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.homologacao.nfce.fazenda.sp.gov.br/qrcode"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"1.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.nfce.fazenda.sp.gov.br/qrcode"}}},TO:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}}},SVAN:{[Me.Homolog]:{},[Me.Production]:{}}};var VZ={[Me.Homolog]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfcehom",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[le.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[le.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Me.Production]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.sefaz.go.gov.br/nfce/consulta",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[le.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[le.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"www.sefaz.to.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var YAe={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"SVRS",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVRS",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"SVRS",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",SVRS:"SVRS"},jZ=YAe;var qZ=require("class-transformer"),vu=require("class-validator");var K_=require("class-transformer"),mc=require("class-validator");var S8=require("class-validator");function UZ(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(UZ,"_ts_decorate");function MZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(MZ,"_ts_metadata");var ix=class{static{o(this,"InfNFeSupl")}qrCode;urlChave};UZ([(0,S8.IsString)(),MZ("design:type",String)],ix.prototype,"qrCode",void 0);UZ([(0,S8.IsString)(),MZ("design:type",String)],ix.prototype,"urlChave",void 0);function H_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(H_,"_ts_decorate");function z_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(z_,"_ts_metadata");var gu=class{static{o(this,"NFCe")}$;infNFe;infNFeSupl;Signature};H_([(0,mc.IsObject)(),(0,mc.IsNotEmptyObject)(),(0,K_.Type)(()=>tx),(0,mc.ValidateNested)(),z_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],gu.prototype,"$",void 0);H_([(0,mc.IsObject)(),(0,mc.IsNotEmptyObject)(),(0,K_.Type)(()=>An),(0,mc.ValidateNested)(),z_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],gu.prototype,"infNFe",void 0);H_([(0,K_.Type)(()=>ix),z_("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],gu.prototype,"infNFeSupl",void 0);H_([(0,mc.Allow)(),z_("design:type",typeof Signature>"u"?Object:Signature)],gu.prototype,"Signature",void 0);function _A(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_A,"_ts_decorate");function $_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($_,"_ts_metadata");var dp=class{static{o(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};_A([(0,vu.IsEnum)(Me),(0,vu.IsOptional)(),$_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],dp.prototype,"tpAmb",void 0);_A([(0,vu.IsEnum)(le),(0,vu.IsOptional)(),$_("design:type",typeof StateCode>"u"?Object:StateCode)],dp.prototype,"cUF",void 0);_A([(0,vu.IsString)(),$_("design:type",String)],dp.prototype,"idLote",void 0);_A([(0,vu.IsOptional)(),(0,vu.IsEnum)(["0","1"])],dp.prototype,"indSinc",void 0);_A([(0,vu.IsNotEmpty)(),(0,qZ.Type)(()=>gu),$_("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],dp.prototype,"NFe",void 0);function ZAe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ZAe,"_ts_decorate");function x8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(x8,"_ts_metadata");var G_=class extends Za{static{o(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,t){super(e),this.remoteTransmissionRepository=e,this.qrCode=t}configure(e){return super.configure(e)}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=jZ[t],u=y8[i][n][e.service];if(u)return u;let c=Object.keys(le).find(l=>le[l]===t);return y8[c][n][e.service]}async autorizacao(e){let t=await this.infNfeSupl(e);return t.isLeft()?t:(e.NFe.infNFeSupl=t.value,super.autorizacao(e))}getUrlConsult(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb;return VZ[n][t]}async infNfeSupl(e){let t=this.options.qrCode,n=this.service({...e,service:"NfeConsultaQR"});switch(t.version??=n.version,t.version){case"200":return await this.qrCode.execute(e.NFe,{version:t.version,urlConsult:this.getUrlConsult(e),urlService:n.url,CSC:t.CSC,CSCId:t.CSCId});case"300":return this.options.certificate?await this.qrCode.execute(e.NFe,{version:t.version,certificate:this.options.certificate,urlConsult:this.getUrlConsult(e),urlService:n.url}):Wi(new Ln("Certificate is required in QRCode version 3.00"));default:return im(t.version)}}};ZAe([nr(dp),x8("design:type",Function),x8("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),x8("design:returntype",Promise)],G_.prototype,"autorizacao",null);var HZ=Dr(require("crypto"),1);var b8=class{static{o(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:ai(this.assemble(n.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):im(t)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,t){return{qrCode:e,urlChave:t.urlConsult}}getSequence(e,t){let{version:n,CSCId:i}=t,s=e.infNFe.ide.tpAmb,a=Number.parseInt(i),u=e.infNFe.$.Id?.substring(3),c=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==Ta.OFFLINE)return`${u}|${c}|${s}|${a}`;let p=e.Signature.SignedInfo.Reference.DigestValue.split("").map(S=>S.charCodeAt(0).toString(16).padStart(2,"0")).join(""),m=new Date(e.infNFe.ide.dhEmi).getDate(),g=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${u}|${c}|${s}|${m}|${g}|${p}|${a}`}async execute200(e,t){let{urlService:n,CSC:i}=t,s=this.getSequence(e,t),a=HZ.default.createHash("sha1").update(`${s}${i}`).digest("hex").toUpperCase(),u=`${n}?p=`;return Promise.resolve(ai(`${u}${s}|${a}`))}async execute300(e,t){let{urlService:n}=t,i=`${n}?p=`,s=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),u=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==Ta.OFFLINE)return ai(`${i}${a}|${u}|${s}`);let c=new Date(e.infNFe.ide.dhEmi).getDate(),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),p=e.infNFe.dest?.CNPJ??e.infNFe.dest?.CPF??e.infNFe.dest?.idEstrangeiro??"",m=p.length?e.infNFe.ide.idDest:"",g=`${a}|${u}|${s}|${c}|${l}|${m}$`,S=await this.certificateRepository.sign(g,t.certificate.privateKey,Bc.SHA1);return S.isLeft()?S:ai(`${i}${g}|${S.value}`)}};function yu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(yu,"_ts_decorate");function Nr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nr,"_ts_metadata");var Ls=class{static{o(this,"NfeDetXmlBuilder")}listener;data={};static create(e){return new this(e)}constructor(e){this.listener=e}det(e){return this.data.$=e,this}prod(e){return this.data.prod=e,this.listener?.prod(e),this}imposto(e){return this.data.imposto=e,this}icms(e){return this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this}issqn(e){return this.data.imposto??={},this.data.imposto.ISSQN=e,this}ii(e){return this.data.imposto??={},this.data.imposto.II=e,this}ipi(e){return this.data.imposto??={},this.data.imposto.IPI=e,this}pis(e){return this.data.imposto??={},this.data.imposto.PIS=e,this}pisst(e){return this.data.imposto??={},this.data.imposto.PISST=e,this}cofins(e){return this.data.imposto??={},this.data.imposto.COFINS=e,this}cofinsst(e){return this.data.imposto??={},this.data.imposto.COFINSST=e,this}icmsufdest(e){return this.data.imposto??={},this.data.imposto.ICMSUFDest=e,this}assemble(){return this.data.imposto&&this.imposto(this.data.imposto),this.data}};yu([nr(ZS),Nr("design:type",Function),Nr("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),Nr("design:returntype",void 0)],Ls.prototype,"det",null);yu([nr(zt),Nr("design:type",Function),Nr("design:paramtypes",[typeof IProd>"u"?Object:IProd]),Nr("design:returntype",void 0)],Ls.prototype,"prod",null);yu([nr(cs),Nr("design:type",Function),Nr("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),Nr("design:returntype",void 0)],Ls.prototype,"imposto",null);yu([nr(On),Nr("design:type",Function),Nr("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),Nr("design:returntype",void 0)],Ls.prototype,"icms",null);yu([nr(hu),Nr("design:type",Function),Nr("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),Nr("design:returntype",void 0)],Ls.prototype,"issqn",null);yu([nr(Il),Nr("design:type",Function),Nr("design:paramtypes",[typeof III>"u"?Object:III]),Nr("design:returntype",void 0)],Ls.prototype,"ii",null);yu([nr(pu),Nr("design:type",Function),Nr("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),Nr("design:returntype",void 0)],Ls.prototype,"ipi",null);yu([nr(Rl),Nr("design:type",Function),Nr("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),Nr("design:returntype",void 0)],Ls.prototype,"pis",null);yu([nr(oc),Nr("design:type",Function),Nr("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),Nr("design:returntype",void 0)],Ls.prototype,"pisst",null);yu([nr(Dl),Nr("design:type",Function),Nr("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),Nr("design:returntype",void 0)],Ls.prototype,"cofins",null);yu([nr(cc),Nr("design:type",Function),Nr("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),Nr("design:returntype",void 0)],Ls.prototype,"cofinsst",null);yu([nr(ba),Nr("design:type",Function),Nr("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),Nr("design:returntype",void 0)],Ls.prototype,"icmsufdest",null);function qi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qi,"_ts_decorate");function Nt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nt,"_ts_metadata");var Gn=class{static{o(this,"NfeXmlBuilder")}builder;contingency;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return hc}root="NFe";$det=new ZE(this);$total=new eA(this);nfeDetXmlBuilder=Ls.create(this.$det);static create(e,t){return new this(e,t)}constructor(e,t){this.builder=e,this.contingency=t}infNFe(e){return this.data.infNFe.$=e,this}ide(e){return this.data.infNFe.ide=e,this}emit(e){return this.data.infNFe.emit=e,this}avulsa(e){return this.data.infNFe.avulsa=e,this}dest(e){return this.data.infNFe.dest=e,this}retirada(e){return this.data.infNFe.retirada=e,this}entrega(e){return this.data.infNFe.entrega=e,this}autXML(e){return this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this}det(e,t){return this.data.infNFe.det=e.map((n,i)=>{let s=t(this.nfeDetXmlBuilder.det({nItem:(i+1).toString()}),n);return this.collect(s),s.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let t=e(this.data.infNFe.total);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...t.ICMSTot},ISSQNtot:t.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...t.ISSQNtot}:void 0},this}transp(e){return this.data.infNFe.transp=e,this}cobr(e){return this.data.infNFe.cobr=e,this}pag(e){return this.data.infNFe.pag=e,this}infIntermed(e){return this.data.infNFe.infIntermed=e,this}infAdic(e){return this.data.infNFe.infAdic=e,this}exporta(e){return this.data.infNFe.exporta=e,this}compra(e){return this.data.infNFe.compra=e,this}cana(e){return this.data.infNFe.cana=e,this}infRespTec(e){return this.data.infNFe.infRespTec=e,this}infSolicNFF(e){return this.data.infNFe.infSolicNFF=e,this}quiet(){return Reflect.deleteMetadata(Mo,this),this}toObject(){let e=this.errors();return e?Wi(new Ln(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),ai(h2(this.data,this.entity,{clearEmptyValues:!0})))}async assemble(){let e=this.toObject();return e.isLeft()?e:ai(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==Me.Homolog?!1:(this.data.infNFe.dest&&(this.data.infNFe.dest.xNome="NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL"),!0)}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{cUF:e,tpEmis:t}=this.data.infNFe.ide;if(t!==Ta.Normal)return;switch(M_[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ta.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ta.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Ta.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(Mo,this)}collect(e){let t=Reflect.getMetadata(Mo,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(Mo,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new Cx().compile({cUF:this.data.infNFe.ide.cUF,year:this.data.infNFe.ide.dhEmi.substring(2,4),month:this.data.infNFe.ide.dhEmi.substring(5,7),identification:this.data.infNFe.emit.CPF??this.data.infNFe.emit.CNPJ,mod:this.data.infNFe.ide.mod,serie:this.data.infNFe.ide.serie,nNF:this.data.infNFe.ide.nNF,tpEmis:this.data.infNFe.ide.tpEmis,cNF:this.data.infNFe.ide.cNF});this.data.infNFe.ide.cDV=e.slice(-1),this.data.infNFe.$={Id:`${this.root}${e}`,versao:this.data.infNFe.$.versao}}};qi([nr(Tg),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),Nt("design:returntype",void 0)],Gn.prototype,"infNFe",null);qi([nr(Qr),Nt("design:type",Function),Nt("design:paramtypes",[typeof IIde>"u"?Object:IIde]),Nt("design:returntype",void 0)],Gn.prototype,"ide",null);qi([nr(ns),Nt("design:type",Function),Nt("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),Nt("design:returntype",void 0)],Gn.prototype,"emit",null);qi([nr(Bs),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),Nt("design:returntype",void 0)],Gn.prototype,"avulsa",null);qi([nr(is),Nt("design:type",Function),Nt("design:paramtypes",[typeof IDest>"u"?Object:IDest]),Nt("design:returntype",void 0)],Gn.prototype,"dest",null);qi([nr(Cn),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Gn.prototype,"retirada",null);qi([nr(Cn),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Gn.prototype,"entrega",null);qi([nr(yl),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),Nt("design:returntype",void 0)],Gn.prototype,"autXML",null);qi([nr(Hf),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),Nt("design:returntype",void 0)],Gn.prototype,"total",null);qi([nr(ra),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),Nt("design:returntype",void 0)],Gn.prototype,"transp",null);qi([nr(_d),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),Nt("design:returntype",void 0)],Gn.prototype,"cobr",null);qi([nr(Pd),Nt("design:type",Function),Nt("design:paramtypes",[typeof IPag>"u"?Object:IPag]),Nt("design:returntype",void 0)],Gn.prototype,"pag",null);qi([nr(Nd),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),Nt("design:returntype",void 0)],Gn.prototype,"infIntermed",null);qi([nr(nc),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),Nt("design:returntype",void 0)],Gn.prototype,"infAdic",null);qi([nr(Mf),Nt("design:type",Function),Nt("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),Nt("design:returntype",void 0)],Gn.prototype,"exporta",null);qi([nr(qf),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),Nt("design:returntype",void 0)],Gn.prototype,"compra",null);qi([nr(na),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICana>"u"?Object:ICana]),Nt("design:returntype",void 0)],Gn.prototype,"cana",null);qi([nr(ou),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),Nt("design:returntype",void 0)],Gn.prototype,"infRespTec",null);qi([nr(Ig),Nt("design:type",Function),Nt("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),Nt("design:returntype",void 0)],Gn.prototype,"infSolicNFF",null);var w8=class extends Gn{static{o(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}},infNFeSupl:{}};get entity(){return gu}static create(e,t){return new this(e,t)}assertHomologValidations(){return super.assertHomologValidations()?(this.data.infNFe.det[0].prod.xProd="NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL",!0):!1}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{tpEmis:e}=this.data.infNFe.ide;if(e===Ta.Normal)return this.data.infNFe.ide.tpEmis=Ta.OFFLINE,void 0}};0&&(module.exports={AccessKeyBuilder,DefaultDetBuilderAggregator,DefaultTotalBuilderAggregator,NFCeDto,NFeDto,NfceQrcode,NfceRemoteTransmitter,NfceXmlBuilder,NfeAuthorizerPipeline,NfeDetXmlBuilder,NfeRemoteTransmitter,NfeXmlBuilder,TpEmis,directory});
108
+ `+s):n.stack=s}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Gu(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&lA.assertOptions(n,{silentJSONParsing:dl.transitional(dl.boolean),forcedJSONParsing:dl.transitional(dl.boolean),clarifyTimeoutError:dl.transitional(dl.boolean)},!1),i!=null&&(ne.isFunction(i)?t.paramsSerializer={serialize:i}:lA.assertOptions(i,{encode:dl.function,serialize:dl.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),lA.assertOptions(t,{baseUrl:dl.spelling("baseURL"),withXsrfToken:dl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&ne.merge(s.common,s[t.method]);s&&ne.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),t.headers=ti.concat(a,s);let u=[],c=!0;this.interceptors.request.forEach(o(function(b){typeof b.runWhen=="function"&&b.runWhen(t)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))},"unshiftRequestInterceptors"));let l=[];this.interceptors.response.forEach(o(function(b){l.push(b.fulfilled,b.rejected)},"pushResponseInterceptors"));let p,m=0,g;if(!c){let v=[d_.bind(this),void 0];for(v.unshift(...u),v.push(...l),g=v.length,p=Promise.resolve(t);m<g;)p=p.then(v[m++],v[m++]);return p}g=u.length;let S=t;for(;m<g;){let v=u[m++],b=u[m++];try{S=v(S)}catch(x){b.call(this,x);break}}try{p=d_.call(this,S)}catch(v){return Promise.reject(v)}for(m=0,g=l.length;m<g;)p=p.then(l[m++],l[m++]);return p}getUri(e){e=Gu(this.defaults,e);let t=cg(e.baseURL,e.url,e.allowAbsoluteUrls);return ug(t,e.params,e.paramsSerializer)}};ne.forEach(["delete","get","head","options"],o(function(e){g_.prototype[e]=function(t,n){return this.request(Gu(n||{},{method:e,url:t,data:(n||{}).data}))}},"forEachMethodNoData"));ne.forEach(["post","put","patch"],o(function(e){function t(n){return o(function(s,a,u){return this.request(Gu(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))},"httpMethod")}o(t,"generateHTTPMethod"),g_.prototype[e]=t(),g_.prototype[e+"Form"]=t(!0)},"forEachMethodWithData"));var fA=g_;var XAe=class pZ{static{o(this,"CancelToken")}constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(o(function(s){t=s},"promiseExecutor"));let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,a=new Promise(u=>{n.subscribe(u),s=u}).then(i);return a.cancel=o(function(){n.unsubscribe(s)},"reject"),a},e(o(function(s,a,u){n.reason||(n.reason=new xo(s,a,u),t(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=o(n=>{e.abort(n)},"abort");return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new pZ(o(function(i){e=i},"executor")),cancel:e}}},hZ=XAe;function MV(r){return o(function(t){return r.apply(null,t)},"wrap")}o(MV,"spread");function qV(r){return ne.isObject(r)&&r.isAxiosError===!0}o(qV,"isAxiosError");var HV={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HV).forEach(([r,e])=>{HV[e]=r});var dZ=HV;function mZ(r){let e=new fA(r),t=tA(fA.prototype.request,e);return ne.extend(t,fA.prototype,e,{allOwnKeys:!0}),ne.extend(t,e,null,{allOwnKeys:!0}),t.create=o(function(i){return mZ(Gu(r,i))},"create"),t}o(mZ,"createInstance");var Di=mZ(AS);Di.Axios=fA;Di.CanceledError=xo;Di.CancelToken=hZ;Di.isCancel=oA;Di.VERSION=lg;Di.toFormData=Ed;Di.AxiosError=at;Di.Cancel=Di.CanceledError;Di.all=o(function(e){return Promise.all(e)},"all");Di.spread=MV;Di.isAxiosError=qV;Di.mergeConfig=Gu;Di.AxiosHeaders=ti;Di.formToJSON=r=>o_(ne.isHTMLForm(r)?new FormData(r):r);Di.getAdapter=h_.getAdapter;Di.HttpStatusCode=dZ;Di.default=Di;var v_=Di;var{Axios:a7e,AxiosError:o7e,CanceledError:u7e,isCancel:c7e,CancelToken:l7e,VERSION:f7e,all:p7e,Cancel:h7e,isAxiosError:d7e,spread:m7e,toFormData:g7e,AxiosHeaders:v7e,HttpStatusCode:y7e,formToJSON:S7e,getAdapter:x7e,mergeConfig:b7e}=v_;var kZ=Dr(require("path"),1);var le={AC:"12",AL:"27",AM:"13",AP:"16",BA:"29",CE:"23",DF:"53",ES:"32",GO:"52",MA:"21",MG:"31",MS:"50",MT:"51",PA:"15",PB:"25",PE:"26",PI:"22",PR:"41",RJ:"33",RN:"24",RO:"11",RR:"14",RS:"43",SC:"42",SE:"28",SP:"35",TO:"17"},gZ=Object.keys(le);var Me={Production:"1",Homolog:"2"};var N7e={[le.AC]:"America/Rio_Branco",[le.AL]:"America/Maceio",[le.AM]:"America/Manaus",[le.AP]:"America/Belem",[le.BA]:"America/Bahia",[le.CE]:"America/Fortaleza",[le.DF]:"America/Sao_Paulo",[le.ES]:"America/Sao_Paulo",[le.GO]:"America/Sao_Paulo",[le.MA]:"America/Fortaleza",[le.MG]:"America/Sao_Paulo",[le.MS]:"America/Campo_Grande",[le.MT]:"America/Cuiaba",[le.PA]:"America/Belem",[le.PB]:"America/Fortaleza",[le.PE]:"America/Recife",[le.PI]:"America/Fortaleza",[le.PR]:"America/Sao_Paulo",[le.RJ]:"America/Sao_Paulo",[le.RN]:"America/Fortaleza",[le.RO]:"America/Porto_Velho",[le.RR]:"America/Boa_Vista",[le.RS]:"America/Sao_Paulo",[le.SC]:"America/Sao_Paulo",[le.SE]:"America/Maceio",[le.SP]:"America/Sao_Paulo",[le.TO]:"America/Araguaina"};var vZ=require("class-transformer"),Xu=require("class-validator");function y_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(y_,"_ts_decorate");function KV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(KV,"_ts_metadata");var Ad=class{static{o(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};y_([(0,Xu.IsEnum)(Me),KV("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ad.prototype,"tpAmb",void 0);y_([(0,Xu.IsEnum)(le),KV("design:type",typeof StateCode>"u"?Object:StateCode)],Ad.prototype,"cUF",void 0);y_([(0,Xu.IsOptional)()],Ad.prototype,"xServ",void 0);var zV=class{static{o(this,"ConsultStatusRequest")}consStatServ};y_([(0,Xu.IsNotEmptyObject)(),(0,Xu.IsObject)(),(0,Xu.ValidateNested)(),(0,vZ.Type)(()=>Ad),KV("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],zV.prototype,"consStatServ",void 0);var x_=require("class-transformer"),ar=require("class-validator");function Vi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Vi,"_ts_decorate");function Ts(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ts,"_ts_metadata");var S_=class{static{o(this,"InfInutAttributes")}Id};Vi([(0,ar.IsString)(),Ts("design:type",String)],S_.prototype,"Id",void 0);var pA=class{static{o(this,"InutNFeAttributes")}xmlns;versao};Vi([(0,ar.IsString)(),Ts("design:type",String)],pA.prototype,"xmlns",void 0);Vi([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],pA.prototype,"versao",void 0);var Is=class{static{o(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Vi([(0,ar.ValidateNested)(),(0,x_.Type)(()=>S_),Ts("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Is.prototype,"$",void 0);Vi([(0,ar.IsEnum)(Me),Ts("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Is.prototype,"tpAmb",void 0);Vi([(0,ar.IsOptional)()],Is.prototype,"xServ",void 0);Vi([(0,ar.IsEnum)(le),Ts("design:type",typeof StateCode>"u"?Object:StateCode)],Is.prototype,"cUF",void 0);Vi([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^[0-9]{2}$/),Ts("design:type",String)],Is.prototype,"ano",void 0);Vi([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],Is.prototype,"CNPJ",void 0);Vi([(0,ar.IsString)(),(0,ar.IsOptional)(),Ts("design:type",String)],Is.prototype,"CPF",void 0);Vi([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^(55|65)$/),Ts("design:type",String)],Is.prototype,"mod",void 0);Vi([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,3}$/),Ts("design:type",String)],Is.prototype,"serie",void 0);Vi([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Ts("design:type",String)],Is.prototype,"nNFIni",void 0);Vi([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Ts("design:type",String)],Is.prototype,"nNFFin",void 0);Vi([(0,ar.IsString)(),(0,ar.MinLength)(15),(0,ar.MaxLength)(255),Ts("design:type",String)],Is.prototype,"xJust",void 0);Is=Vi([Zr({properties:["CNPJ","CPF"],required:!0})],Is);var pg=class{static{o(this,"InutilizacaoPayload")}$;infInut;Signature};Vi([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,x_.Type)(()=>pA),Ts("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],pg.prototype,"$",void 0);Vi([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,x_.Type)(()=>Is),Ts("design:type",typeof IInfInut>"u"?Object:IInfInut)],pg.prototype,"infInut",void 0);Vi([(0,ar.Allow)(),Ts("design:type",typeof Signature>"u"?Object:Signature)],pg.prototype,"Signature",void 0);var ml=require("class-validator");function $V(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($V,"_ts_decorate");function yZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yZ,"_ts_metadata");var hg=class{static{o(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};$V([(0,ml.IsEnum)(Me),yZ("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],hg.prototype,"tpAmb",void 0);$V([(0,ml.IsOptional)()],hg.prototype,"xServ",void 0);$V([(0,ml.IsString)(),(0,ml.Length)(44,44),(0,ml.Matches)(/^[0-9]{44}$/),yZ("design:type",String)],hg.prototype,"chNFe",void 0);var BZ=require("class-transformer"),du=require("class-validator");var wa=require("class-validator");var Ot=require("class-validator"),wi=require("class-transformer");var xt=require("class-validator"),hA=require("class-transformer");function qt(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qt,"_ts_decorate");function Ht(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ht,"_ts_metadata");var jf=class{static{o(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"AAMM",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"CNPJ",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],jf.prototype,"nNF",void 0);var bo=class{static{o(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"AAMM",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"CNPJ",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"CPF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"IE",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],bo.prototype,"nNF",void 0);bo=qt([Zr({properties:["CNPJ","CPF"],required:!0})],bo);var TS=class{static{o(this,"RefECF")}mod;nECF;nCOO};qt([(0,xt.IsString)(),Ht("design:type",String)],TS.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],TS.prototype,"nECF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],TS.prototype,"nCOO",void 0);var Uf=class{static{o(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Uf.prototype,"refNFe",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Uf.prototype,"refNFeSig",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,hA.Type)(()=>jf),Ht("design:type",typeof IRefNF>"u"?Object:IRefNF)],Uf.prototype,"refNF",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,hA.Type)(()=>bo),Ht("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],Uf.prototype,"refNFP",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Uf.prototype,"refCTe",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,hA.Type)(()=>TS),Ht("design:type",typeof IRefECF>"u"?Object:IRefECF)],Uf.prototype,"refECF",void 0);var Qr=class{static{o(this,"Ide")}cUF;cNF;natOp;mod;serie;nNF;dhEmi;dhSaiEnt;tpNF;idDest;cMunFG;tpImp;tpEmis;cDV="";tpAmb;finNFe;indFinal;indPres;indIntermed;procEmi;verProc;dhCont;xJust;NFref};qt([(0,xt.IsEnum)(le),Ht("design:type",typeof StateCode>"u"?Object:StateCode)],Qr.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"cNF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"natOp",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"nNF",void 0);qt([Mp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Qr.prototype,"dhEmi",void 0);qt([(0,xt.IsOptional)(),Mp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Qr.prototype,"dhSaiEnt",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"tpNF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"idDest",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"cMunFG",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"tpImp",void 0);qt([(0,xt.IsString)(),Ht("design:type",typeof TpEmis>"u"?Object:TpEmis)],Qr.prototype,"tpEmis",void 0);qt([(0,xt.IsString)(),(0,xt.IsOptional)(),Ht("design:type",String)],Qr.prototype,"cDV",void 0);qt([(0,xt.IsString)(),Ht("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Qr.prototype,"tpAmb",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"finNFe",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"indFinal",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"indPres",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"indIntermed",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"procEmi",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"verProc",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Mp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Qr.prototype,"dhCont",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Qr.prototype,"xJust",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsArray)(),(0,xt.ArrayMaxSize)(999),(0,xt.ValidateNested)({each:!0}),(0,hA.Type)(()=>Uf),Ht("design:type",Array)],Qr.prototype,"NFref",void 0);var ji=require("class-validator");var SZ=require("class-transformer");var Ds=require("class-validator");function Wu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Wu,"_ts_decorate");function Ju(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ju,"_ts_metadata");var Rs=class{static{o(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"xLgr",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"nro",void 0);Wu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"xCpl",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"xBairro",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"cMun",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"xMun",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"UF",void 0);Wu([(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"CEP",void 0);Wu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"cPais",void 0);Wu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"xPais",void 0);Wu([(0,Ds.IsOptional)(),(0,Ds.IsString)(),Ju("design:type",String)],Rs.prototype,"fone",void 0);function Qu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Qu,"_ts_decorate");function gl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gl,"_ts_metadata");var ns=class{static{o(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"CNPJ",void 0);Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"CPF",void 0);Qu([(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"xNome",void 0);Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"xFant",void 0);Qu([(0,ji.ValidateNested)(),(0,SZ.Type)(()=>Rs),gl("design:type",typeof Rs>"u"?Object:Rs)],ns.prototype,"enderEmit",void 0);Qu([(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"IE",void 0);Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"IEST",void 0);Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"IM",void 0);Qu([(0,ji.IsOptional)(),(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"CNAE",void 0);Qu([(0,ji.IsString)(),gl("design:type",String)],ns.prototype,"CRT",void 0);ns=Qu([Zr({properties:["CNPJ","CPF"],required:!0})],ns);var pi=require("class-validator"),xZ=require("class-transformer");var Vn=require("class-validator");function Yu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Yu,"_ts_decorate");function Zu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Zu,"_ts_metadata");var ya=class{static{o(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"xLgr",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"nro",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"xCpl",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"xBairro",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"cMun",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"xMun",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"UF",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"CEP",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"cPais",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"xPais",void 0);Yu([(0,Vn.IsOptional)(),(0,Vn.IsString)(),Zu("design:type",String)],ya.prototype,"fone",void 0);function ec(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ec,"_ts_decorate");function vl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vl,"_ts_metadata");var is=class{static{o(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"CNPJ",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"CPF",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"idEstrangeiro",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"xNome",void 0);ec([(0,pi.IsOptional)(),(0,pi.ValidateNested)(),(0,xZ.Type)(()=>ya),vl("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],is.prototype,"enderDest",void 0);ec([(0,pi.IsString)(),vl("design:type",String)],is.prototype,"indIEDest",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"IE",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"ISUF",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"IM",void 0);ec([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"email",void 0);is=ec([Zr({properties:["CNPJ","CPF"],required:!0})],is);var on=require("class-validator");function _s(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_s,"_ts_decorate");function Ys(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ys,"_ts_metadata");var Cn=class{static{o(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"CNPJ",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"CPF",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xNome",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xLgr",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"nro",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xCpl",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xBairro",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"cMun",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xMun",void 0);_s([(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"UF",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"CEP",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"cPais",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"xPais",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"fone",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"email",void 0);_s([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],Cn.prototype,"IE",void 0);Cn=_s([Zr({properties:["CNPJ","CPF"]})],Cn);var RS=require("class-validator");function GV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(GV,"_ts_decorate");function bZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bZ,"_ts_metadata");var yl=class{static{o(this,"AutXML")}CNPJ;CPF};GV([(0,RS.IsOptional)(),(0,RS.IsString)(),bZ("design:type",String)],yl.prototype,"CNPJ",void 0);GV([(0,RS.IsOptional)(),(0,RS.IsString)(),bZ("design:type",String)],yl.prototype,"CPF",void 0);yl=GV([Zr({properties:["CNPJ","CPF"]})],yl);var dA=require("class-validator");function wZ(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(wZ,"_ts_decorate");function CZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(CZ,"_ts_metadata");var Nd=class{static{o(this,"InfIntermed")}CNPJ;idCadIntTran};wZ([(0,dA.IsString)(),CZ("design:type",String)],Nd.prototype,"CNPJ",void 0);wZ([(0,dA.IsOptional)(),(0,dA.IsString)(),CZ("design:type",String)],Nd.prototype,"idCadIntTran",void 0);var dg=require("class-validator");function XV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(XV,"_ts_decorate");function WV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(WV,"_ts_metadata");var Mf=class{static{o(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};XV([(0,dg.IsString)(),WV("design:type",String)],Mf.prototype,"UFSaidaPais",void 0);XV([(0,dg.IsOptional)(),(0,dg.IsString)(),WV("design:type",String)],Mf.prototype,"xLocExporta",void 0);XV([(0,dg.IsOptional)(),(0,dg.IsString)(),WV("design:type",String)],Mf.prototype,"xLocDespacho",void 0);var Id=require("class-validator");function JV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(JV,"_ts_decorate");function QV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(QV,"_ts_metadata");var qf=class{static{o(this,"Compra")}xNEmp;xPed;xCont};JV([(0,Id.IsOptional)(),(0,Id.IsString)(),QV("design:type",String)],qf.prototype,"xNEmp",void 0);JV([(0,Id.IsOptional)(),(0,Id.IsString)(),QV("design:type",String)],qf.prototype,"xPed",void 0);JV([(0,Id.IsOptional)(),(0,Id.IsString)(),QV("design:type",String)],qf.prototype,"xCont",void 0);var Sl=require("class-validator");function DS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(DS,"_ts_decorate");function _S(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_S,"_ts_metadata");var ou=class{static{o(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};DS([(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"CNPJ",void 0);DS([(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"xContato",void 0);DS([(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"email",void 0);DS([(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"fone",void 0);DS([(0,Sl.IsOptional)(),(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"idCSRT",void 0);DS([(0,Sl.IsOptional)(),(0,Sl.IsString)(),_S("design:type",String)],ou.prototype,"hashCSRT",void 0);var vg=require("class-validator"),b_=require("class-transformer");var tc=require("class-validator");function tn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(tn,"_ts_decorate");function rn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(rn,"_ts_metadata");var qr=class{static{o(this,"ICMSTot")}vBC="0.00";vICMS="0.00";vICMSDeson="0.00";vFCPUFDest;vICMSUFDest;vICMSUFRemet;vFCP="0.00";vBCST="0.00";vST="0.00";vFCPST="0.00";vFCPSTRet="0.00";qBCMono;vICMSMono;qBCMonoReten;vICMSMonoReten;qBCMonoRet;vICMSMonoRet;vProd="0.00";vFrete="0.00";vSeg="0.00";vDesc="0.00";vII="0.00";vIPI="0.00";vIPIDevol="0.00";vPIS="0.00";vCOFINS="0.00";vOutro="0.00";vNF="0.00";vTotTrib};tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBC",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSDeson",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPUFDest",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFDest",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFRemet",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCP",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBCST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPSTRet",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMono",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMono",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoReten",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoReten",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoRet",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoRet",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vProd",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFrete",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vSeg",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vDesc",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vII",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPI",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPIDevol",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vPIS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vCOFINS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vOutro",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vNF",void 0);tn([(0,tc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vTotTrib",void 0);var Dn=require("class-validator");function uu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(uu,"_ts_decorate");function cu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(cu,"_ts_metadata");var Zs=class{static{o(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vServ",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vBC",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vISS",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vPIS",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vCOFINS",void 0);uu([(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"dCompet",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vDeducao",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vOutro",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vDescIncond",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vDescCond",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"vISSRet",void 0);uu([(0,Dn.IsOptional)(),(0,Dn.IsString)(),cu("design:type",String)],Zs.prototype,"cRegTrib",void 0);var Td=require("class-validator");function mg(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(mg,"_ts_decorate");function gg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gg,"_ts_metadata");var rc=class{static{o(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vRetPIS",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vRetCOFINS",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vRetCSLL",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vBCIRRF",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vIRRF",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vBCRetPrev",void 0);mg([(0,Td.IsOptional)(),Se({fixed:2}),gg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rc.prototype,"vRetPrev",void 0);function YV(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(YV,"_ts_decorate");function ZV(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ZV,"_ts_metadata");var Hf=class{static{o(this,"Total")}ICMSTot;ISSQNtot;retTrib};YV([(0,vg.ValidateNested)(),(0,b_.Type)(()=>qr),ZV("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Hf.prototype,"ICMSTot",void 0);YV([(0,vg.IsOptional)(),(0,vg.ValidateNested)(),(0,b_.Type)(()=>Zs),ZV("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Hf.prototype,"ISSQNtot",void 0);YV([(0,vg.IsOptional)(),(0,vg.ValidateNested)(),(0,b_.Type)(()=>rc),ZV("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Hf.prototype,"retTrib",void 0);var bi=require("class-validator"),VS=require("class-transformer");var ta=require("class-validator");function Rd(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Rd,"_ts_decorate");function yg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(yg,"_ts_metadata");var ea=class{static{o(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"CNPJ",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"CPF",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"xNome",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"IE",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"xEnder",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"xMun",void 0);Rd([(0,ta.IsOptional)(),(0,ta.IsString)(),yg("design:type",String)],ea.prototype,"UF",void 0);ea=Rd([Zr({properties:["CNPJ","CPF"]})],ea);var xl=require("class-validator");function OS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(OS,"_ts_decorate");function PS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(PS,"_ts_metadata");var wo=class{static{o(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};OS([(0,xl.IsOptional)(),Se({fixed:2}),PS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vServ",void 0);OS([(0,xl.IsOptional)(),Se({fixed:2}),PS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vBCRet",void 0);OS([(0,xl.IsOptional)(),Se({fixed:4}),PS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"pICMSRet",void 0);OS([(0,xl.IsOptional)(),Se({fixed:2}),PS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vICMSRet",void 0);OS([(0,xl.IsOptional)(),(0,xl.IsString)(),PS("design:type",String)],wo.prototype,"CFOP",void 0);OS([(0,xl.IsOptional)(),(0,xl.IsString)(),PS("design:type",String)],wo.prototype,"cMunFG",void 0);var Wa=require("class-validator");function BS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(BS,"_ts_decorate");function FS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(FS,"_ts_metadata");var bl=class{static{o(this,"VeicTransp")}placa;UF;RNTC};BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],bl.prototype,"placa",void 0);BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],bl.prototype,"UF",void 0);BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],bl.prototype,"RNTC",void 0);var Sg=class{static{o(this,"Reboque")}placa;UF;RNTC};BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],Sg.prototype,"placa",void 0);BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],Sg.prototype,"UF",void 0);BS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),FS("design:type",String)],Sg.prototype,"RNTC",void 0);var lu=require("class-validator");function LS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(LS,"_ts_decorate");function kS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(kS,"_ts_metadata");var wl=class{static{o(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};LS([(0,lu.IsOptional)(),(0,lu.IsString)(),kS("design:type",String)],wl.prototype,"qVol",void 0);LS([(0,lu.IsOptional)(),(0,lu.IsString)(),kS("design:type",String)],wl.prototype,"esp",void 0);LS([(0,lu.IsOptional)(),(0,lu.IsString)(),kS("design:type",String)],wl.prototype,"marca",void 0);LS([(0,lu.IsOptional)(),(0,lu.IsString)(),kS("design:type",String)],wl.prototype,"nVol",void 0);LS([(0,lu.IsOptional)(),Se({fixed:3}),kS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wl.prototype,"pesoL",void 0);LS([(0,lu.IsOptional)(),Se({fixed:3}),kS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wl.prototype,"pesoB",void 0);function zf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zf,"_ts_decorate");function Dd(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Dd,"_ts_metadata");var ra=class{static{o(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};zf([(0,bi.IsString)(),Dd("design:type",String)],ra.prototype,"modFrete",void 0);zf([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,VS.Type)(()=>ea),Dd("design:type",typeof ea>"u"?Object:ea)],ra.prototype,"transporta",void 0);zf([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,VS.Type)(()=>wo),Dd("design:type",typeof wo>"u"?Object:wo)],ra.prototype,"retTransp",void 0);zf([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,VS.Type)(()=>bl),Dd("design:type",typeof bl>"u"?Object:bl)],ra.prototype,"veicTransp",void 0);zf([(0,bi.IsOptional)(),(0,bi.ValidateNested)({each:!0}),(0,VS.Type)(()=>Sg),(0,bi.ArrayMaxSize)(5),Dd("design:type",Array)],ra.prototype,"reboque",void 0);zf([(0,bi.IsOptional)(),(0,bi.IsString)(),Dd("design:type",String)],ra.prototype,"vagao",void 0);zf([(0,bi.IsOptional)(),(0,bi.IsString)(),Dd("design:type",String)],ra.prototype,"balsa",void 0);zf([(0,bi.IsOptional)(),(0,bi.ValidateNested)({each:!0}),(0,VS.Type)(()=>wl),(0,bi.ArrayMaxSize)(5e3),Dd("design:type",Array)],ra.prototype,"vol",void 0);ra=zf([Zr({properties:["veicTransp","reboque"]}),Zr({properties:["vagao","balsa"]})],ra);var Ui=require("class-validator"),e8=require("class-transformer");function $f(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($f,"_ts_decorate");function Gf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Gf,"_ts_metadata");var Kf=class{static{o(this,"Fat")}nFat;vOrig;vDesc;vLiq};$f([(0,Ui.IsOptional)(),(0,Ui.IsString)(),Gf("design:type",String)],Kf.prototype,"nFat",void 0);$f([(0,Ui.IsOptional)(),Se({fixed:2}),Gf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kf.prototype,"vOrig",void 0);$f([(0,Ui.IsOptional)(),Se({fixed:2}),Gf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kf.prototype,"vDesc",void 0);$f([(0,Ui.IsOptional)(),Se({fixed:2}),Gf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kf.prototype,"vLiq",void 0);var jS=class{static{o(this,"Dup")}nDup;dVenc;vDup};$f([(0,Ui.IsOptional)(),(0,Ui.IsString)(),Gf("design:type",String)],jS.prototype,"nDup",void 0);$f([(0,Ui.IsOptional)(),(0,Ui.IsString)(),Gf("design:type",String)],jS.prototype,"dVenc",void 0);$f([(0,Ui.IsOptional)(),Se({fixed:2}),Gf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jS.prototype,"vDup",void 0);var _d=class{static{o(this,"Cobr")}fat;dup};$f([(0,Ui.IsOptional)(),(0,Ui.ValidateNested)(),(0,e8.Type)(()=>Kf),Gf("design:type",typeof Kf>"u"?Object:Kf)],_d.prototype,"fat",void 0);$f([(0,Ui.IsOptional)(),(0,Ui.ValidateNested)({each:!0}),(0,Ui.ArrayMaxSize)(120),(0,e8.Type)(()=>jS),Gf("design:type",Array)],_d.prototype,"dup",void 0);var Bd=require("class-validator"),IZ=require("class-transformer");var El=require("class-validator"),EZ=require("class-transformer");var Od=require("class-validator");function t8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(t8,"_ts_decorate");function r8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(r8,"_ts_metadata");var Cl=class{static{o(this,"Card")}cNPJ;tBand;cAut};t8([(0,Od.IsOptional)(),(0,Od.IsString)(),r8("design:type",String)],Cl.prototype,"cNPJ",void 0);t8([(0,Od.IsOptional)(),(0,Od.IsString)(),r8("design:type",String)],Cl.prototype,"tBand",void 0);t8([(0,Od.IsOptional)(),(0,Od.IsString)(),r8("design:type",String)],Cl.prototype,"cAut",void 0);function mA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(mA,"_ts_decorate");function gA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gA,"_ts_metadata");var Xf=class{static{o(this,"DetPag")}indPag;tPag;vPag;card;xPag};mA([(0,El.IsOptional)(),(0,El.IsString)(),gA("design:type",String)],Xf.prototype,"indPag",void 0);mA([(0,El.IsString)(),gA("design:type",typeof TPag>"u"?Object:TPag)],Xf.prototype,"tPag",void 0);mA([Se({fixed:2}),gA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xf.prototype,"vPag",void 0);mA([(0,El.IsOptional)(),(0,El.ValidateNested)(),(0,EZ.Type)(()=>Cl),gA("design:type",typeof Cl>"u"?Object:Cl)],Xf.prototype,"card",void 0);mA([(0,El.IsOptional)(),(0,El.IsString)(),gA("design:type",String)],Xf.prototype,"xPag",void 0);function AZ(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(AZ,"_ts_decorate");function NZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(NZ,"_ts_metadata");var Pd=class{static{o(this,"Pag")}detPag;vTroco};AZ([(0,Bd.ValidateNested)({each:!0}),(0,Bd.ArrayMinSize)(1),(0,Bd.ArrayMaxSize)(100),(0,IZ.Type)(()=>Xf),NZ("design:type",Array)],Pd.prototype,"detPag",void 0);AZ([(0,Bd.IsOptional)(),Se({fixed:2}),NZ("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pd.prototype,"vTroco",void 0);var ri=require("class-validator"),w_=require("class-transformer");function Wf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Wf,"_ts_decorate");function Jf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Jf,"_ts_metadata");var US=class{static{o(this,"InfAdicObs")}xCampo;xTexto};Wf([(0,ri.IsString)(),Jf("design:type",String)],US.prototype,"xCampo",void 0);Wf([(0,ri.IsString)(),Jf("design:type",String)],US.prototype,"xTexto",void 0);var vA=class{static{o(this,"ProcRef")}nProc;indProc};Wf([(0,ri.IsOptional)(),(0,ri.IsString)(),Jf("design:type",String)],vA.prototype,"nProc",void 0);Wf([(0,ri.IsOptional)(),(0,ri.IsString)(),Jf("design:type",String)],vA.prototype,"indProc",void 0);var nc=class{static{o(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Wf([(0,ri.IsOptional)(),(0,ri.IsString)(),Jf("design:type",String)],nc.prototype,"infAdFisco",void 0);Wf([(0,ri.IsOptional)(),(0,ri.IsString)(),Jf("design:type",String)],nc.prototype,"infCpl",void 0);Wf([(0,ri.IsOptional)(),(0,ri.ValidateNested)({each:!0}),(0,w_.Type)(()=>US),(0,ri.ArrayMaxSize)(10),Jf("design:type",Array)],nc.prototype,"obsCont",void 0);Wf([(0,ri.IsOptional)(),(0,ri.ValidateNested)({each:!0}),(0,w_.Type)(()=>US),(0,ri.ArrayMaxSize)(10),Jf("design:type",Array)],nc.prototype,"obsFisco",void 0);Wf([(0,ri.IsOptional)(),(0,ri.ValidateNested)({each:!0}),(0,w_.Type)(()=>vA),(0,ri.ArrayMaxSize)(100),Jf("design:type",Array)],nc.prototype,"procRef",void 0);var dn=require("class-validator"),E_=require("class-transformer");function Sa(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Sa,"_ts_decorate");function xa(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xa,"_ts_metadata");var C_=class{static{o(this,"ForDiaAttributes")}dia};Sa([(0,dn.IsString)(),xa("design:type",String)],C_.prototype,"dia",void 0);var yA=class{static{o(this,"ForDia")}$;qtde};Sa([(0,dn.IsObject)(),(0,dn.IsNotEmptyObject)(),(0,E_.Type)(()=>C_),xa("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],yA.prototype,"$",void 0);Sa([(0,dn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yA.prototype,"qtde",void 0);var SA=class{static{o(this,"Deduc")}xDed;vDed};Sa([(0,dn.IsString)(),xa("design:type",String)],SA.prototype,"xDed",void 0);Sa([Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],SA.prototype,"vDed",void 0);var na=class{static{o(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};Sa([(0,dn.IsString)(),xa("design:type",String)],na.prototype,"safra",void 0);Sa([(0,dn.IsString)(),xa("design:type",String)],na.prototype,"ref",void 0);Sa([(0,dn.ValidateNested)({each:!0}),(0,dn.ArrayMaxSize)(31),(0,E_.Type)(()=>yA),xa("design:type",Array)],na.prototype,"forDia",void 0);Sa([(0,dn.IsOptional)(),(0,dn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotMes",void 0);Sa([(0,dn.IsOptional)(),(0,dn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotAnt",void 0);Sa([(0,dn.IsOptional)(),(0,dn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotGer",void 0);Sa([(0,dn.IsOptional)(),(0,dn.ValidateNested)({each:!0}),(0,dn.ArrayMaxSize)(10),(0,E_.Type)(()=>SA),xa("design:type",Array)],na.prototype,"deduc",void 0);Sa([(0,dn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vFor",void 0);Sa([(0,dn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vTotDed",void 0);Sa([(0,dn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vLiqFor",void 0);var sa=require("class-validator"),ex=require("class-transformer");var ot=require("class-validator");var Al=require("class-transformer");var ic=require("class-validator");function xA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(xA,"_ts_decorate");function bA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(bA,"_ts_metadata");var Qf=class{static{o(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};xA([(0,ic.IsString)(),bA("design:type",String)],Qf.prototype,"nLote",void 0);xA([(0,ic.IsOptional)(),(0,ic.IsString)(),bA("design:type",String)],Qf.prototype,"qLote",void 0);xA([(0,ic.IsOptional)(),(0,ic.IsString)(),bA("design:type",String)],Qf.prototype,"dFab",void 0);xA([(0,ic.IsOptional)(),(0,ic.IsString)(),bA("design:type",String)],Qf.prototype,"dVal",void 0);xA([(0,ic.IsOptional)(),(0,ic.IsString)(),bA("design:type",String)],Qf.prototype,"cAgreg",void 0);var nn=require("class-validator"),TZ=require("class-transformer");function as(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(as,"_ts_decorate");function Os(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Os,"_ts_metadata");var Fd=class{static{o(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};as([(0,nn.IsString)(),Os("design:type",String)],Fd.prototype,"nAdicao",void 0);as([(0,nn.IsString)(),Os("design:type",String)],Fd.prototype,"nSeqAdic",void 0);as([(0,nn.IsString)(),Os("design:type",String)],Fd.prototype,"cFabricante",void 0);as([Se({fixed:2}),Os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fd.prototype,"vDescDI",void 0);as([(0,nn.IsOptional)(),(0,nn.IsString)(),Os("design:type",String)],Fd.prototype,"nDraw",void 0);var ss=class{static{o(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"nDI",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"dDI",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"xLocDesemb",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"UFDesemb",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"dDesemb",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"tpViaTransp",void 0);as([(0,nn.IsOptional)(),Se({fixed:2}),Os("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ss.prototype,"vAFRMM",void 0);as([(0,nn.IsString)(),Os("design:type",String)],ss.prototype,"tpIntermedio",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Os("design:type",String)],ss.prototype,"CNPJ",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Os("design:type",String)],ss.prototype,"CPF",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Os("design:type",String)],ss.prototype,"UFTerceiro",void 0);as([(0,nn.IsArray)(),(0,nn.ValidateNested)({each:!0}),(0,TZ.Type)(()=>Fd),(0,nn.ArrayMaxSize)(999),(0,nn.ArrayMinSize)(1),Os("design:type",Array)],ss.prototype,"adi",void 0);ss=as([Zr({properties:["CNPJ","CPF"],required:!0})],ss);var RZ=require("class-transformer"),Yf=require("class-validator");function wA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(wA,"_ts_decorate");function CA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(CA,"_ts_metadata");var MS=class{static{o(this,"ExportInd")}nRE;chNFe;qExport};wA([(0,Yf.IsString)(),CA("design:type",String)],MS.prototype,"nRE",void 0);wA([(0,Yf.IsString)(),CA("design:type",String)],MS.prototype,"chNFe",void 0);wA([Se({fixed:4}),CA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],MS.prototype,"qExport",void 0);var qS=class{static{o(this,"DetExport")}nDraw;exportInd};wA([(0,Yf.IsOptional)(),(0,Yf.IsString)(),CA("design:type",String)],qS.prototype,"nDraw",void 0);wA([(0,Yf.IsOptional)(),(0,Yf.ValidateNested)(),(0,RZ.Type)(()=>MS),CA("design:type",typeof IExportInd>"u"?Object:IExportInd)],qS.prototype,"exportInd",void 0);var n8=require("class-validator");function DZ(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(DZ,"_ts_decorate");function _Z(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_Z,"_ts_metadata");var HS=class{static{o(this,"InfProdNFF")}cProdFisco;cOperNFF};DZ([(0,n8.IsString)(),_Z("design:type",String)],HS.prototype,"cProdFisco",void 0);DZ([(0,n8.IsString)(),_Z("design:type",String)],HS.prototype,"cOperNFF",void 0);var a8=require("class-validator");function i8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(i8,"_ts_decorate");function s8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(s8,"_ts_metadata");var xg=class{static{o(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};i8([(0,a8.IsString)(),s8("design:type",String)],xg.prototype,"xEmb",void 0);i8([Se({fixed:3}),s8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xg.prototype,"qVolEmb",void 0);i8([(0,a8.IsString)(),s8("design:type",String)],xg.prototype,"uEmb",void 0);var _n=require("class-validator");function jn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(jn,"_ts_decorate");function Un(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Un,"_ts_metadata");var un=class{static{o(this,"VeicProd")}tpOp;chassi;cCor;xCor;pot;cilin;pesoL;pesoB;nSerie;tpComb;nMotor;CMT;dist;anoMod;anoFab;tpPint;tpVeic;espVeic;VIN;condVeic;cMod;cCorDENATRAN;lota;tpRest};jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"tpOp",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"chassi",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"cCor",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"xCor",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"pot",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"cilin",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"pesoL",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"pesoB",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"nSerie",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"tpComb",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"nMotor",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"CMT",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"dist",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"anoMod",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"anoFab",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"tpPint",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"tpVeic",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"espVeic",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"VIN",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"condVeic",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"cMod",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"cCorDENATRAN",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"lota",void 0);jn([(0,_n.IsString)(),Un("design:type",String)],un.prototype,"tpRest",void 0);var c8=require("class-validator");function o8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(o8,"_ts_decorate");function u8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(u8,"_ts_metadata");var bg=class{static{o(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};o8([(0,c8.IsString)(),u8("design:type",String)],bg.prototype,"cProdANVISA",void 0);o8([(0,c8.IsString)(),u8("design:type",String)],bg.prototype,"xMotivoIsencao",void 0);o8([Se({fixed:2}),u8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bg.prototype,"vPMC",void 0);var EA=require("class-validator");function A_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(A_,"_ts_decorate");function N_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(N_,"_ts_metadata");var Ld=class{static{o(this,"Arma")}tpArma;nSerie;nCano;descr};A_([(0,EA.IsString)(),N_("design:type",String)],Ld.prototype,"tpArma",void 0);A_([(0,EA.IsString)(),N_("design:type",String)],Ld.prototype,"nSerie",void 0);A_([(0,EA.IsString)(),N_("design:type",String)],Ld.prototype,"nCano",void 0);A_([(0,EA.IsString)(),N_("design:type",String)],Ld.prototype,"descr",void 0);var Fr=require("class-validator"),I_=require("class-transformer");function Mn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mn,"_ts_decorate");function qn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(qn,"_ts_metadata");var zS=class{static{o(this,"OrigComb")}indImport;cUFOrig;pOrig};Mn([(0,Fr.IsString)(),qn("design:type",String)],zS.prototype,"indImport",void 0);Mn([(0,Fr.IsString)(),qn("design:type",String)],zS.prototype,"cUFOrig",void 0);Mn([Se({fixed:4}),(0,Fr.Max)(100),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zS.prototype,"pOrig",void 0);var KS=class{static{o(this,"CIDE")}qBCProd;vAliqProd;vCIDE};Mn([Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],KS.prototype,"qBCProd",void 0);Mn([Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],KS.prototype,"vAliqProd",void 0);Mn([Se({fixed:2}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],KS.prototype,"vCIDE",void 0);var kd=class{static{o(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};Mn([(0,Fr.IsString)(),qn("design:type",String)],kd.prototype,"nBico",void 0);Mn([(0,Fr.IsString)(),qn("design:type",String)],kd.prototype,"nBomba",void 0);Mn([(0,Fr.IsString)(),qn("design:type",String)],kd.prototype,"nTanque",void 0);Mn([Se({fixed:3}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kd.prototype,"vEncIni",void 0);Mn([Se({fixed:3}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kd.prototype,"vEncFin",void 0);var Ps=class{static{o(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};Mn([(0,Fr.IsString)(),qn("design:type",String)],Ps.prototype,"cProdANP",void 0);Mn([(0,Fr.IsString)(),qn("design:type",String)],Ps.prototype,"descANP",void 0);Mn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGLP",void 0);Mn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGNn",void 0);Mn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pGNi",void 0);Mn([(0,Fr.IsOptional)(),Se({fixed:2}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"vPart",void 0);Mn([(0,Fr.IsString)(),(0,Fr.IsOptional)(),qn("design:type",String)],Ps.prototype,"CODIF",void 0);Mn([(0,Fr.IsOptional)(),Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"qTemp",void 0);Mn([(0,Fr.IsString)(),qn("design:type",String)],Ps.prototype,"UFCons",void 0);Mn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)(),(0,I_.Type)(()=>KS),qn("design:type",typeof ICIDE>"u"?Object:ICIDE)],Ps.prototype,"CIDE",void 0);Mn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)(),(0,I_.Type)(()=>kd),qn("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Ps.prototype,"encerrante",void 0);Mn([(0,Fr.IsOptional)(),Se({fixed:4}),qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ps.prototype,"pBio",void 0);Mn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)({each:!0}),(0,I_.Type)(()=>zS),(0,Fr.ArrayMaxSize)(30),(0,Fr.IsOptional)(),qn("design:type",Array)],Ps.prototype,"origComb",void 0);function dr(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(dr,"_ts_decorate");function gr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gr,"_ts_metadata");var zt=class{static{o(this,"Prod")}cProd;cEAN;cBarra;xProd;NCM;NVE;CEST;indEscala;CNPJFab;cBenef;gCred;EXTIPI;CFOP;uCom;qCom;vUnCom;vProd;cEANTrib;uTrib;qTrib;vUnTrib;vFrete;vSeg;vDesc;vOutro;indTot;DI;detExport;xPed;nItemPed;nFCI;rastro;infProdNFF;infProdEmb;veicProd;med;arma;comb;nRECOPI};dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"cProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"cEAN",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"cBarra",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"xProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"NCM",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ArrayMaxSize)(8),(0,ot.IsString)({each:!0}),gr("design:type",Array)],zt.prototype,"NVE",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"CEST",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"indEscala",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"CNPJFab",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"cBenef",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),gr("design:type",Object)],zt.prototype,"gCred",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"EXTIPI",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"CFOP",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"uCom",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"qCom",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vUnCom",void 0);dr([Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"cEANTrib",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"uTrib",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"qTrib",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vUnTrib",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vFrete",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vSeg",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vDesc",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vOutro",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"indTot",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(100),(0,Al.Type)(()=>ss),gr("design:type",Array)],zt.prototype,"DI",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(500),(0,Al.Type)(()=>qS),gr("design:type",Array)],zt.prototype,"detExport",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"xPed",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"nItemPed",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"nFCI",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(500),(0,Al.Type)(()=>Qf),gr("design:type",Array)],zt.prototype,"rastro",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Al.Type)(()=>HS),gr("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],zt.prototype,"infProdNFF",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Al.Type)(()=>xg),gr("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],zt.prototype,"infProdEmb",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Al.Type)(()=>un),gr("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],zt.prototype,"veicProd",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Al.Type)(()=>bg),gr("design:type",typeof IMed>"u"?Object:IMed)],zt.prototype,"med",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)({each:!0}),(0,Al.Type)(()=>Ld),(0,ot.ArrayMaxSize)(500),gr("design:type",Array)],zt.prototype,"arma",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Al.Type)(()=>Ps),gr("design:type",typeof IComb>"u"?Object:IComb)],zt.prototype,"comb",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"nRECOPI",void 0);zt=dr([Zr({properties:["veicProd","med","arma","comb"]})],zt);var Ol=require("class-transformer"),ni=require("class-validator");var ue=require("class-validator"),us=require("class-transformer");function Ae(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ae,"_ts_decorate");function Ie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ie,"_ts_metadata");var Zf=class{static{o(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Zf.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Zf.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Zf.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zf.prototype,"vICMS",void 0);var Co=class{static{o(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Co.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Co.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Co.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Co.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vICMSST",void 0);var Nl=class{static{o(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"vICMS",void 0);var ep=class{static{o(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],ep.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ep.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ep.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ep.prototype,"vICMSST",void 0);var wg=class{static{o(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],wg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],wg.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wg.prototype,"vICMSDeson",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],wg.prototype,"motDesICMS",void 0);var fu=class{static{o(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};Ae([(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),(0,ue.Max)(100),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pDif",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vICMSDif",void 0);var tp=class{static{o(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],tp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],tp.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vICMSSTRet",void 0);var Ja=class{static{o(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vICMSST",void 0);var Qa=class{static{o(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vICMSST",void 0);var os=class{static{o(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pMVAST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pBCOp",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"UFST",void 0);var rp=class{static{o(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],rp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],rp.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"vICMSSTRet",void 0);var Cg=class{static{o(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],Cg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Cg.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Cg.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Cg.prototype,"vCredICMSSN",void 0);var AA=class{static{o(this,"ICMSSN102")}orig;CSOSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],AA.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],AA.prototype,"CSOSN",void 0);var sc=class{static{o(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],sc.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],sc.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],sc.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sc.prototype,"vCredICMSSN",void 0);var np=class{static{o(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vICMSST",void 0);var ip=class{static{o(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vICMSSTRet",void 0);var ia=class{static{o(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vCredICMSSN",void 0);var On=class{static{o(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Zf),Ie("design:type",typeof IICMS00>"u"?Object:IICMS00)],On.prototype,"ICMS00",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Co),Ie("design:type",typeof IICMS10>"u"?Object:IICMS10)],On.prototype,"ICMS10",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Nl),Ie("design:type",typeof IICMS20>"u"?Object:IICMS20)],On.prototype,"ICMS20",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ep),Ie("design:type",typeof IICMS30>"u"?Object:IICMS30)],On.prototype,"ICMS30",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>wg),Ie("design:type",typeof IICMS40>"u"?Object:IICMS40)],On.prototype,"ICMS40",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>fu),Ie("design:type",typeof IICMS51>"u"?Object:IICMS51)],On.prototype,"ICMS51",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>tp),Ie("design:type",typeof IICMS60>"u"?Object:IICMS60)],On.prototype,"ICMS60",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Ja),Ie("design:type",typeof IICMS70>"u"?Object:IICMS70)],On.prototype,"ICMS70",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Qa),Ie("design:type",typeof IICMS90>"u"?Object:IICMS90)],On.prototype,"ICMS90",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>os),Ie("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],On.prototype,"ICMSPart",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>rp),Ie("design:type",typeof IICMSST>"u"?Object:IICMSST)],On.prototype,"ICMSST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Cg),Ie("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],On.prototype,"ICMSSN101",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>AA),Ie("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],On.prototype,"ICMSSN102",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>sc),Ie("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],On.prototype,"ICMSSN201",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>np),Ie("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],On.prototype,"ICMSSN202",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ip),Ie("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],On.prototype,"ICMSSN500",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ia),Ie("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],On.prototype,"ICMSSN900",void 0);On=Ae([Zr({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],On);var En=require("class-validator"),l8=require("class-transformer");function Eo(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Eo,"_ts_decorate");function Ao(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ao,"_ts_metadata");var sp=class{static{o(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Eo([(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"CST",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"vBC",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"pIPI",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"qUnid",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"vUnid",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],sp.prototype,"vIPI",void 0);var T_=class{static{o(this,"IPINT")}CST};Eo([(0,En.IsString)(),Ao("design:type",String)],T_.prototype,"CST",void 0);var pu=class{static{o(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],pu.prototype,"CNPJProd",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],pu.prototype,"cSelo",void 0);Eo([(0,En.IsOptional)(),(0,En.IsString)(),Ao("design:type",String)],pu.prototype,"qSelo",void 0);Eo([(0,En.IsString)(),Ao("design:type",String)],pu.prototype,"cEnq",void 0);Eo([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,l8.Type)(()=>sp),Ao("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],pu.prototype,"IPITrib",void 0);Eo([(0,En.IsOptional)(),(0,En.ValidateNested)(),(0,l8.Type)(()=>T_),Ao("design:type",typeof IIPINT>"u"?Object:IIPINT)],pu.prototype,"IPINT",void 0);var Tl=require("class-validator");function R_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(R_,"_ts_decorate");function D_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(D_,"_ts_metadata");var Il=class{static{o(this,"II")}vBC;vDespAdu;vII;vIOF};R_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),D_("design:type",String)],Il.prototype,"vBC",void 0);R_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),D_("design:type",String)],Il.prototype,"vDespAdu",void 0);R_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),D_("design:type",String)],Il.prototype,"vII",void 0);R_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),D_("design:type",String)],Il.prototype,"vIOF",void 0);var Kt=require("class-validator"),NA=require("class-transformer");function Hn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Hn,"_ts_decorate");function zn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(zn,"_ts_metadata");var ap=class{static{o(this,"PISAliq")}CST;vBC;pPIS;vPIS};Hn([(0,Kt.IsString)(),zn("design:type",String)],ap.prototype,"CST",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ap.prototype,"vBC",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ap.prototype,"pPIS",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ap.prototype,"vPIS",void 0);var op=class{static{o(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};Hn([(0,Kt.IsString)(),zn("design:type",String)],op.prototype,"CST",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],op.prototype,"qBCProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],op.prototype,"vAliqProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],op.prototype,"vPIS",void 0);var $S=class{static{o(this,"PISNT")}CST};Hn([(0,Kt.IsString)(),zn("design:type",String)],$S.prototype,"CST",void 0);var ac=class{static{o(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};Hn([(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"CST",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"vBC",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"pPIS",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"qBCProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"vAliqProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],ac.prototype,"vPIS",void 0);var Rl=class{static{o(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};Hn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,NA.Type)(()=>ap),zn("design:type",typeof ap>"u"?Object:ap)],Rl.prototype,"PISAliq",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,NA.Type)(()=>op),zn("design:type",typeof op>"u"?Object:op)],Rl.prototype,"PISQtde",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,NA.Type)(()=>$S),zn("design:type",typeof $S>"u"?Object:$S)],Rl.prototype,"PISNT",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,NA.Type)(()=>ac),zn("design:type",typeof ac>"u"?Object:ac)],Rl.prototype,"PISOutr",void 0);var oc=class{static{o(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],oc.prototype,"vBC",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],oc.prototype,"pPIS",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],oc.prototype,"qBCProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],oc.prototype,"vAliqProd",void 0);Hn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),zn("design:type",String)],oc.prototype,"vPIS",void 0);var $t=require("class-validator"),IA=require("class-transformer");function Kn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Kn,"_ts_decorate");function $n(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($n,"_ts_metadata");var up=class{static{o(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};Kn([(0,$t.IsString)(),$n("design:type",String)],up.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],up.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],up.prototype,"pCOFINS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],up.prototype,"vCOFINS",void 0);var cp=class{static{o(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};Kn([(0,$t.IsString)(),$n("design:type",String)],cp.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cp.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cp.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cp.prototype,"vCOFINS",void 0);var GS=class{static{o(this,"COFINSNT")}CST};Kn([(0,$t.IsString)(),$n("design:type",String)],GS.prototype,"CST",void 0);var uc=class{static{o(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};Kn([(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"CST",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"pCOFINS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],uc.prototype,"vCOFINS",void 0);var Dl=class{static{o(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,IA.Type)(()=>up),$n("design:type",typeof up>"u"?Object:up)],Dl.prototype,"COFINSAliq",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,IA.Type)(()=>cp),$n("design:type",typeof cp>"u"?Object:cp)],Dl.prototype,"COFINSQtde",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,IA.Type)(()=>GS),$n("design:type",typeof GS>"u"?Object:GS)],Dl.prototype,"COFINSNT",void 0);Kn([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,IA.Type)(()=>uc),$n("design:type",typeof uc>"u"?Object:uc)],Dl.prototype,"COFINSOutr",void 0);var cc=class{static{o(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vBC",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"pCOFINS",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"qBCProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vAliqProd",void 0);Kn([(0,$t.IsOptional)(),(0,$t.IsString)(),$n("design:type",String)],cc.prototype,"vCOFINS",void 0);var Ya=require("class-validator");function XS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(XS,"_ts_decorate");function WS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(WS,"_ts_metadata");var hu=class{static{o(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"vBC",void 0);XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"vAliq",void 0);XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"vISSQN",void 0);XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"cMunFG",void 0);XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"cListServ",void 0);XS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),WS("design:type",String)],hu.prototype,"cSitTrib",void 0);var _i=require("class-validator");function lp(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(lp,"_ts_decorate");function fp(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fp,"_ts_metadata");var ba=class{static{o(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"vBCUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"vBCFCPUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"pFCPUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"pICMSUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"pICMSInter",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"pICMSInterPart",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"vFCPUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"vICMSUFDest",void 0);lp([(0,_i.IsOptional)(),(0,_i.IsString)(),fp("design:type",String)],ba.prototype,"vICMSUFRemet",void 0);function lc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(lc,"_ts_decorate");function _l(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_l,"_ts_metadata");var cs=class{static{o(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest};lc([(0,ni.IsOptional)(),(0,ni.IsNumber)(),_l("design:type",Number)],cs.prototype,"vTotTrib",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>On),_l("design:type",typeof IICMS>"u"?Object:IICMS)],cs.prototype,"ICMS",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>pu),_l("design:type",typeof IIPI>"u"?Object:IIPI)],cs.prototype,"IPI",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>hu),_l("design:type",typeof IISSQN>"u"?Object:IISSQN)],cs.prototype,"ISSQN",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>Il),_l("design:type",typeof III>"u"?Object:III)],cs.prototype,"II",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>Rl),_l("design:type",typeof IPIS>"u"?Object:IPIS)],cs.prototype,"PIS",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>oc),_l("design:type",typeof IPISST>"u"?Object:IPISST)],cs.prototype,"PISST",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>Dl),_l("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],cs.prototype,"COFINS",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>cc),_l("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],cs.prototype,"COFINSST",void 0);lc([(0,ni.IsOptional)(),(0,ni.ValidateNested)(),(0,Ol.Type)(()=>ba),_l("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],cs.prototype,"ICMSUFDest",void 0);cs=lc([Zr({properties:["ICMS","ISSQN"]})],cs);var Eg=require("class-validator"),OZ=require("class-transformer");function f8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(f8,"_ts_decorate");function p8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(p8,"_ts_metadata");var __=class{static{o(this,"IpiDevol")}vIPIDevol};f8([(0,Eg.IsString)(),p8("design:type",String)],__.prototype,"vIPIDevol",void 0);var JS=class{static{o(this,"Devol")}pDevol;IPI};f8([(0,Eg.IsString)(),p8("design:type",String)],JS.prototype,"pDevol",void 0);f8([(0,Eg.IsOptional)(),(0,Eg.ValidateNested)(),(0,OZ.Type)(()=>__),p8("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],JS.prototype,"IPI",void 0);var pp=require("class-validator"),h8=require("class-transformer");function O_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(O_,"_ts_decorate");function P_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(P_,"_ts_metadata");var QS=class{static{o(this,"Observation")}xCampo;xTexto};O_([(0,pp.IsString)(),P_("design:type",String)],QS.prototype,"xCampo",void 0);O_([(0,pp.IsString)(),P_("design:type",String)],QS.prototype,"xTexto",void 0);var YS=class{static{o(this,"ObsItem")}obsCont;obsFisco};O_([(0,pp.IsOptional)(),(0,pp.ValidateNested)(),(0,h8.Type)(()=>QS),P_("design:type",typeof IObservation>"u"?Object:IObservation)],YS.prototype,"obsCont",void 0);O_([(0,pp.IsOptional)(),(0,pp.ValidateNested)(),(0,h8.Type)(()=>QS),P_("design:type",typeof IObservation>"u"?Object:IObservation)],YS.prototype,"obsFisco",void 0);function Ag(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ag,"_ts_decorate");function Ng(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ng,"_ts_metadata");var ZS=class{static{o(this,"DetAttributes")}nItem};Ag([(0,sa.IsString)(),Ng("design:type",String)],ZS.prototype,"nItem",void 0);var Pl=class{static{o(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem};Ag([(0,sa.IsObject)(),(0,sa.ValidateNested)(),(0,ex.Type)(()=>ZS),Ng("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],Pl.prototype,"$",void 0);Ag([(0,sa.ValidateNested)(),(0,ex.Type)(()=>zt),Ng("design:type",typeof IProd>"u"?Object:IProd)],Pl.prototype,"prod",void 0);Ag([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ex.Type)(()=>cs),Ng("design:type",typeof IImposto>"u"?Object:IImposto)],Pl.prototype,"imposto",void 0);Ag([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ex.Type)(()=>JS),Ng("design:type",typeof IDevol>"u"?Object:IDevol)],Pl.prototype,"impostoDevol",void 0);Ag([(0,sa.IsOptional)(),(0,sa.IsString)(),Ng("design:type",String)],Pl.prototype,"infAdProd",void 0);Ag([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,ex.Type)(()=>YS),Ng("design:type",typeof IObsItem>"u"?Object:IObsItem)],Pl.prototype,"obsItem",void 0);var Fs=require("class-validator");function fc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(fc,"_ts_decorate");function pc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(pc,"_ts_metadata");var Bs=class{static{o(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"CNPJ",void 0);fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"xOrgao",void 0);fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"matr",void 0);fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"xAgente",void 0);fc([(0,Fs.IsOptional)(),(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"fone",void 0);fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"UF",void 0);fc([(0,Fs.IsOptional)(),(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"nDAR",void 0);fc([(0,Fs.IsOptional)(),Mp({format:"YYYY-MM-DD"}),pc("design:type",typeof Date>"u"?Object:Date)],Bs.prototype,"dEmi",void 0);fc([(0,Fs.IsOptional)(),Se({fixed:2}),pc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"vDAR",void 0);fc([(0,Fs.IsString)(),pc("design:type",String)],Bs.prototype,"repEmi",void 0);fc([(0,Fs.IsOptional)(),(0,Fs.IsDate)(),pc("design:type",typeof Date>"u"?Object:Date)],Bs.prototype,"dPag",void 0);var PZ=require("class-validator");function WAe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(WAe,"_ts_decorate");function JAe(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(JAe,"_ts_metadata");var Ig=class{static{o(this,"InfSolicNFF")}xSolic};WAe([(0,PZ.IsString)(),JAe("design:type",String)],Ig.prototype,"xSolic",void 0);function hi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(hi,"_ts_decorate");function di(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(di,"_ts_metadata");var Tg=class{static{o(this,"InfNFeAttributes")}Id;versao};hi([(0,Ot.IsOptional)(),(0,Ot.IsString)(),di("design:type",String)],Tg.prototype,"Id",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.IsString)(),di("design:type",String)],Tg.prototype,"versao",void 0);var An=class{static{o(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,wi.Type)(()=>Tg),(0,Ot.ValidateNested)(),di("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],An.prototype,"$",void 0);hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Qr),di("design:type",typeof IIde>"u"?Object:IIde)],An.prototype,"ide",void 0);hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ns),di("design:type",typeof IEmit>"u"?Object:IEmit)],An.prototype,"emit",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Bs),di("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],An.prototype,"avulsa",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>is),di("design:type",typeof IDest>"u"?Object:IDest)],An.prototype,"dest",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Cn),di("design:type",typeof ILocal>"u"?Object:ILocal)],An.prototype,"retirada",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Cn),di("design:type",typeof ILocal>"u"?Object:ILocal)],An.prototype,"entrega",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(10),(0,wi.Type)(()=>yl),di("design:type",Array)],An.prototype,"autXML",void 0);hi([(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(990),(0,Ot.ArrayMinSize)(1),(0,wi.Type)(()=>Pl),di("design:type",Array)],An.prototype,"det",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Hf),di("design:type",typeof ITotal>"u"?Object:ITotal)],An.prototype,"total",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ra),di("design:type",typeof ITransp>"u"?Object:ITransp)],An.prototype,"transp",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>_d),di("design:type",typeof ICobr>"u"?Object:ICobr)],An.prototype,"cobr",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Pd),di("design:type",typeof IPag>"u"?Object:IPag)],An.prototype,"pag",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Nd),di("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],An.prototype,"infIntermed",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>nc),di("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],An.prototype,"infAdic",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Mf),di("design:type",typeof IExporta>"u"?Object:IExporta)],An.prototype,"exporta",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>qf),di("design:type",typeof ICompra>"u"?Object:ICompra)],An.prototype,"compra",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>na),di("design:type",typeof ICana>"u"?Object:ICana)],An.prototype,"cana",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ou),di("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],An.prototype,"infRespTec",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Ig),di("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],An.prototype,"infSolicNFF",void 0);var d8=require("class-transformer");function B_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(B_,"_ts_decorate");function F_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(F_,"_ts_metadata");var tx=class{static{o(this,"NFeAttributes")}xmlns};B_([(0,wa.IsString)(),(0,wa.IsNotEmpty)(),F_("design:type",String)],tx.prototype,"xmlns",void 0);var hc=class{static{o(this,"NFe")}$;infNFe;Signature};B_([(0,wa.IsObject)(),(0,wa.IsNotEmptyObject)(),(0,d8.Type)(()=>tx),(0,wa.ValidateNested)(),F_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],hc.prototype,"$",void 0);B_([(0,wa.IsObject)(),(0,wa.IsNotEmptyObject)(),(0,d8.Type)(()=>An),(0,wa.ValidateNested)(),F_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],hc.prototype,"infNFe",void 0);B_([(0,wa.Allow)(),F_("design:type",typeof Signature>"u"?Object:Signature)],hc.prototype,"Signature",void 0);function TA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(TA,"_ts_decorate");function L_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(L_,"_ts_metadata");var hp=class{static{o(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};TA([(0,du.IsEnum)(Me),(0,du.IsOptional)(),L_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],hp.prototype,"tpAmb",void 0);TA([(0,du.IsEnum)(le),(0,du.IsOptional)(),L_("design:type",typeof StateCode>"u"?Object:StateCode)],hp.prototype,"cUF",void 0);TA([(0,du.IsString)(),L_("design:type",String)],hp.prototype,"idLote",void 0);TA([(0,du.IsOptional)(),(0,du.IsEnum)(["0","1"])],hp.prototype,"indSinc",void 0);TA([(0,du.IsNotEmpty)(),(0,BZ.Type)(()=>hc),L_("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],hp.prototype,"NFe",void 0);var RA=require("class-validator");function m8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(m8,"_ts_decorate");function g8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(g8,"_ts_metadata");var Rg=class{static{o(this,"RetAutorizacaoPayload")}tpAmb;cUF;nRec};m8([(0,RA.IsEnum)(Me),g8("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Rg.prototype,"tpAmb",void 0);m8([(0,RA.IsEnum)(le),g8("design:type",typeof StateCode>"u"?Object:StateCode)],Rg.prototype,"cUF",void 0);m8([(0,RA.IsString)(),g8("design:type",String)],Rg.prototype,"nRec",void 0);var Gr=require("class-validator"),DA=require("class-transformer");var k_=(function(r){return r.Cancelamento="110111",r})({});function Mi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Mi,"_ts_decorate");function fs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fs,"_ts_metadata");var V_=class{static{o(this,"InfEventoAttributes")}Id};Mi([(0,Gr.IsString)(),fs("design:type",String)],V_.prototype,"Id",void 0);var ls=class{static{o(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};Mi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,DA.Type)(()=>V_),fs("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],ls.prototype,"$",void 0);Mi([(0,Gr.IsString)(),fs("design:type",typeof StateCode>"u"?Object:StateCode)],ls.prototype,"cOrgao",void 0);Mi([(0,Gr.IsString)(),fs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ls.prototype,"tpAmb",void 0);Mi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CNPJ",void 0);Mi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CPF",void 0);Mi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"chNFe",void 0);Mi([Mp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),fs("design:type",String)],ls.prototype,"dhEvento",void 0);Mi([(0,Gr.IsEnum)(k_),fs("design:type",typeof k_>"u"?Object:k_)],ls.prototype,"tpEvento",void 0);Mi([(0,Gr.IsNumber)(),fs("design:type",Number)],ls.prototype,"nSeqEvento",void 0);Mi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"verEvento",void 0);Mi([(0,Gr.IsObject)(),fs("design:type",typeof T>"u"?Object:T)],ls.prototype,"detEvento",void 0);ls=Mi([Zr({properties:["CNPJ","CPF"],required:!0})],ls);var j_=class{static{o(this,"EventoItemAttributes")}xmlns};Mi([(0,Gr.IsString)(),fs("design:type",String)],j_.prototype,"xmlns",void 0);var Vd=class{static{o(this,"EventoItem")}$;infEvento;Signature};Mi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,DA.Type)(()=>j_),fs("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],Vd.prototype,"$",void 0);Mi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,DA.Type)(()=>ls),fs("design:type",typeof ls>"u"?Object:ls)],Vd.prototype,"infEvento",void 0);Mi([(0,Gr.Allow)(),fs("design:type",typeof Signature>"u"?Object:Signature)],Vd.prototype,"Signature",void 0);var rx=class{static{o(this,"EventoPayload")}idLote;evento};Mi([(0,Gr.IsString)(),fs("design:type",String)],rx.prototype,"idLote",void 0);Mi([(0,Gr.IsNotEmpty)(),(0,Gr.ValidateNested)(),(0,DA.Type)(()=>Vd),fs("design:type",typeof Vd>"u"?Object:Vd)],rx.prototype,"evento",void 0);var mu=require("class-validator");function nx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(nx,"_ts_decorate");function U_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(U_,"_ts_metadata");var dc=class{static{o(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};nx([(0,mu.IsOptional)()],dc.prototype,"xServ",void 0);nx([(0,mu.IsString)(),(0,mu.IsIn)(Object.values(gZ)),U_("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],dc.prototype,"UF",void 0);nx([(0,mu.IsOptional)(),(0,mu.IsString)(),U_("design:type",String)],dc.prototype,"IE",void 0);nx([(0,mu.IsOptional)(),(0,mu.IsString)(),U_("design:type",String)],dc.prototype,"CNPJ",void 0);nx([(0,mu.IsOptional)(),(0,mu.IsString)(),U_("design:type",String)],dc.prototype,"CPF",void 0);dc=nx([Zr({properties:["IE","CNPJ","CPF"],required:!0})],dc);var FZ={AM:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},AN:{[Me.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom1.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://hom1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://hom.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}},[Me.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://www.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}}},BA:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}}},GO:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}}},MG:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}}},MT:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}}},PE:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}}},SVAN:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVRS:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVCRS:{[Me.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[Me.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};var QAe={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"BA",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVAN",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"PE",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},LZ=QAe;var M_={[le.AC]:"SVCAN",[le.AL]:"SVCAN",[le.AM]:"SVCRS",[le.AP]:"SVCAN",[le.BA]:"SVCRS",[le.CE]:"SVCAN",[le.DF]:"SVCAN",[le.ES]:"SVCAN",[le.GO]:"SVCRS",[le.MA]:"SVCRS",[le.MG]:"SVCAN",[le.MS]:"SVCRS",[le.MT]:"SVCRS",[le.PA]:"SVCAN",[le.PB]:"SVCAN",[le.PE]:"SVCRS",[le.PI]:"SVCAN",[le.PR]:"SVCRS",[le.RJ]:"SVCAN",[le.RN]:"SVCAN",[le.RO]:"SVCAN",[le.RR]:"SVCAN",[le.RS]:"SVCAN",[le.SC]:"SVCAN",[le.SE]:"SVCAN",[le.SP]:"SVCAN",[le.TO]:"SVCAN"};function Dg(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Dg,"_ts_decorate");function Ci(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ci,"_ts_metadata");var Za=class{static{o(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}options={};xmlns="http://www.portalfiscal.inf.br/nfe";configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=W5.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?M_[t]:LZ[t];return FZ[i][n][e.service]}errors(){return Reflect.getMetadata(Mo,this)}validate(e){try{let t=this.errors();return t?Wi(new Ln(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),ai(e))}finally{Reflect.deleteMetadata(Mo,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return kZ.default.resolve(cP,this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(n,i.version)},method:"nfeStatusServicoNF"})}async inutilizacao(e){let t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:i}=t.value.infInut,s=t.value,a=this.service({cUF:n,tpAmb:i,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(s,a.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:n.chNFe.substring(0,2),tpAmb:n.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(n,i.version)},method:"nfeConsultaNF"})}async autorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(n,i.version)},method:"nfeAutorizacaoLote"})}async retAutorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({...n,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(n,i.version)},method:"nfeRetAutorizacaoLote"})}async recepcaoEvento(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({service:"RecepcaoEvento"});return n.evento=this.ns(n.evento,i.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(n,i.version)},method:"nfeRecepcaoEvento"})}async consultaCadastro(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:le[n.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(n,i.version)},method:"consultaCadastro"})}};Dg([nr(Ad),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultStatus",null);Dg([nr(pg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"inutilizacao",null);Dg([nr(hg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultaProtocolo",null);Dg([nr(hp),Ci("design:type",Function),Ci("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"autorizacao",null);Dg([nr(Rg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"retAutorizacao",null);Dg([nr(rx),Ci("design:type",Function),Ci("design:paramtypes",[Object]),Ci("design:returntype",Promise)],Za.prototype,"recepcaoEvento",null);Dg([nr(dc),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultaCadastro",null);var q_=class{static{o(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=v_.create();toolkit=new t_;caching=new DN;certificates=new g2(this.http,this.caching);soap=new GI(this.toolkit,this.certificates);transmitter=new Za(this.soap);signer=new f2(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(Mo,this)}};var v8=class extends q_{static{o(this,"NfeAuthorizerPipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=await this.signer.sign(e.NFe,{tag:"infNFe",mark:"Id"},n.value);return i.isLeft()?i:(this.transmitter.configure({cUF:e.NFe.infNFe.ide.cUF,tpAmb:e.NFe.infNFe.ide.tpAmb,...t,contingency:this.contingency(e),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15),await this.transmitter.autorizacao({...e,NFe:i.value}))}contingency(e){let{dhCont:t,xJust:n,tpEmis:i}=e.NFe.infNFe.ide;if(!(!t||!n||i===Ta.Normal))return{dhCont:t,xJust:n}}};var y8={AC:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://sistemas.sefaz.am.gov.br/nfceweb-hom/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}}},AP:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://nfewebhomolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://nfeweb.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}}},MA:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}}},MT:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.mt.gov.br/nfce/consultanfce"}}},MS:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}}},PA:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}}},RJ:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}}},SC:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.homologacao.nfce.fazenda.sp.gov.br/qrcode"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"1.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.nfce.fazenda.sp.gov.br/qrcode"}}},TO:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[Me.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}},[Me.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}}},SVAN:{[Me.Homolog]:{},[Me.Production]:{}}};var VZ={[Me.Homolog]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfcehom",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[le.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[le.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Me.Production]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.sefaz.go.gov.br/nfce/consulta",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[le.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[le.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"www.sefaz.to.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var YAe={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"SVRS",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVRS",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"SVRS",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",SVRS:"SVRS"},jZ=YAe;var qZ=require("class-transformer"),vu=require("class-validator");var K_=require("class-transformer"),mc=require("class-validator");var S8=require("class-validator");function UZ(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(UZ,"_ts_decorate");function MZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(MZ,"_ts_metadata");var ix=class{static{o(this,"InfNFeSupl")}qrCode;urlChave};UZ([(0,S8.IsString)(),MZ("design:type",String)],ix.prototype,"qrCode",void 0);UZ([(0,S8.IsString)(),MZ("design:type",String)],ix.prototype,"urlChave",void 0);function H_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(H_,"_ts_decorate");function z_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(z_,"_ts_metadata");var gu=class{static{o(this,"NFCe")}$;infNFe;infNFeSupl;Signature};H_([(0,mc.IsObject)(),(0,mc.IsNotEmptyObject)(),(0,K_.Type)(()=>tx),(0,mc.ValidateNested)(),z_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],gu.prototype,"$",void 0);H_([(0,mc.IsObject)(),(0,mc.IsNotEmptyObject)(),(0,K_.Type)(()=>An),(0,mc.ValidateNested)(),z_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],gu.prototype,"infNFe",void 0);H_([(0,K_.Type)(()=>ix),z_("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],gu.prototype,"infNFeSupl",void 0);H_([(0,mc.Allow)(),z_("design:type",typeof Signature>"u"?Object:Signature)],gu.prototype,"Signature",void 0);function _A(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_A,"_ts_decorate");function $_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o($_,"_ts_metadata");var dp=class{static{o(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};_A([(0,vu.IsEnum)(Me),(0,vu.IsOptional)(),$_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],dp.prototype,"tpAmb",void 0);_A([(0,vu.IsEnum)(le),(0,vu.IsOptional)(),$_("design:type",typeof StateCode>"u"?Object:StateCode)],dp.prototype,"cUF",void 0);_A([(0,vu.IsString)(),$_("design:type",String)],dp.prototype,"idLote",void 0);_A([(0,vu.IsOptional)(),(0,vu.IsEnum)(["0","1"])],dp.prototype,"indSinc",void 0);_A([(0,vu.IsNotEmpty)(),(0,qZ.Type)(()=>gu),$_("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],dp.prototype,"NFe",void 0);function ZAe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ZAe,"_ts_decorate");function x8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(x8,"_ts_metadata");var G_=class extends Za{static{o(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,t){super(e),this.remoteTransmissionRepository=e,this.qrCode=t}configure(e){return super.configure(e)}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=jZ[t],u=y8[i][n][e.service];if(u)return u;let c=Object.keys(le).find(l=>le[l]===t);return y8[c][n][e.service]}async autorizacao(e){let t=await this.infNfeSupl(e);return t.isLeft()?t:(e.NFe.infNFeSupl=t.value,super.autorizacao(e))}getUrlConsult(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb;return VZ[n][t]}async infNfeSupl(e){let t=this.options.qrCode,n=this.service({...e,service:"NfeConsultaQR"});switch(t.version??=n.version,t.version){case"200":return await this.qrCode.execute(e.NFe,{version:t.version,urlConsult:this.getUrlConsult(e),urlService:n.url,CSC:t.CSC,CSCId:t.CSCId});case"300":return this.options.certificate?await this.qrCode.execute(e.NFe,{version:t.version,certificate:this.options.certificate,urlConsult:this.getUrlConsult(e),urlService:n.url}):Wi(new Ln("Certificate is required in QRCode version 3.00"));default:return im(t.version)}}};ZAe([nr(dp),x8("design:type",Function),x8("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),x8("design:returntype",Promise)],G_.prototype,"autorizacao",null);var HZ=Dr(require("crypto"),1);var b8=class{static{o(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:ai(this.assemble(n.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):im(t)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,t){return{qrCode:e,urlChave:t.urlConsult}}getSequence(e,t){let{version:n,CSCId:i}=t,s=e.infNFe.ide.tpAmb,a=Number.parseInt(i),u=e.infNFe.$.Id?.substring(3),c=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==Ta.OFFLINE)return`${u}|${c}|${s}|${a}`;let p=e.Signature.SignedInfo.Reference.DigestValue.split("").map(S=>S.charCodeAt(0).toString(16).padStart(2,"0")).join(""),m=new Date(e.infNFe.ide.dhEmi).getDate(),g=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${u}|${c}|${s}|${m}|${g}|${p}|${a}`}async execute200(e,t){let{urlService:n,CSC:i}=t,s=this.getSequence(e,t),a=HZ.default.createHash("sha1").update(`${s}${i}`).digest("hex").toUpperCase(),u=`${n}?p=`;return Promise.resolve(ai(`${u}${s}|${a}`))}async execute300(e,t){let{urlService:n}=t,i=`${n}?p=`,s=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),u=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==Ta.OFFLINE)return ai(`${i}${a}|${u}|${s}`);let c=new Date(e.infNFe.ide.dhEmi).getDate(),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),p=e.infNFe.dest?.CNPJ??e.infNFe.dest?.CPF??e.infNFe.dest?.idEstrangeiro??"",m=p.length?e.infNFe.ide.idDest:"",g=`${a}|${u}|${s}|${c}|${l}|${m}$`,S=await this.certificateRepository.sign(g,t.certificate.privateKey,Bc.SHA1);return S.isLeft()?S:ai(`${i}${g}|${S.value}`)}};function yu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(yu,"_ts_decorate");function Nr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nr,"_ts_metadata");var Ls=class{static{o(this,"NfeDetXmlBuilder")}listener;data={};static create(e){return new this(e)}constructor(e){this.listener=e}det(e){return this.data.$=e,this}prod(e){return this.data.prod=e,this.listener?.prod(e),this}imposto(e){return this.data.imposto=e,this}icms(e){return this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this}issqn(e){return this.data.imposto??={},this.data.imposto.ISSQN=e,this}ii(e){return this.data.imposto??={},this.data.imposto.II=e,this}ipi(e){return this.data.imposto??={},this.data.imposto.IPI=e,this}pis(e){return this.data.imposto??={},this.data.imposto.PIS=e,this}pisst(e){return this.data.imposto??={},this.data.imposto.PISST=e,this}cofins(e){return this.data.imposto??={},this.data.imposto.COFINS=e,this}cofinsst(e){return this.data.imposto??={},this.data.imposto.COFINSST=e,this}icmsufdest(e){return this.data.imposto??={},this.data.imposto.ICMSUFDest=e,this}assemble(){return this.data.imposto&&this.imposto(this.data.imposto),this.data}};yu([nr(ZS),Nr("design:type",Function),Nr("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),Nr("design:returntype",void 0)],Ls.prototype,"det",null);yu([nr(zt),Nr("design:type",Function),Nr("design:paramtypes",[typeof IProd>"u"?Object:IProd]),Nr("design:returntype",void 0)],Ls.prototype,"prod",null);yu([nr(cs),Nr("design:type",Function),Nr("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),Nr("design:returntype",void 0)],Ls.prototype,"imposto",null);yu([nr(On),Nr("design:type",Function),Nr("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),Nr("design:returntype",void 0)],Ls.prototype,"icms",null);yu([nr(hu),Nr("design:type",Function),Nr("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),Nr("design:returntype",void 0)],Ls.prototype,"issqn",null);yu([nr(Il),Nr("design:type",Function),Nr("design:paramtypes",[typeof III>"u"?Object:III]),Nr("design:returntype",void 0)],Ls.prototype,"ii",null);yu([nr(pu),Nr("design:type",Function),Nr("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),Nr("design:returntype",void 0)],Ls.prototype,"ipi",null);yu([nr(Rl),Nr("design:type",Function),Nr("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),Nr("design:returntype",void 0)],Ls.prototype,"pis",null);yu([nr(oc),Nr("design:type",Function),Nr("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),Nr("design:returntype",void 0)],Ls.prototype,"pisst",null);yu([nr(Dl),Nr("design:type",Function),Nr("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),Nr("design:returntype",void 0)],Ls.prototype,"cofins",null);yu([nr(cc),Nr("design:type",Function),Nr("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),Nr("design:returntype",void 0)],Ls.prototype,"cofinsst",null);yu([nr(ba),Nr("design:type",Function),Nr("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),Nr("design:returntype",void 0)],Ls.prototype,"icmsufdest",null);function qi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qi,"_ts_decorate");function Nt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nt,"_ts_metadata");var Gn=class{static{o(this,"NfeXmlBuilder")}builder;contingency;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return hc}root="NFe";$det=new ZE(this);$total=new eA(this);nfeDetXmlBuilder=Ls.create(this.$det);static create(e,t){return new this(e,t)}constructor(e,t){this.builder=e,this.contingency=t}infNFe(e){return this.data.infNFe.$=e,this}ide(e){return this.data.infNFe.ide=e,this}emit(e){return this.data.infNFe.emit=e,this}avulsa(e){return this.data.infNFe.avulsa=e,this}dest(e){return this.data.infNFe.dest=e,this}retirada(e){return this.data.infNFe.retirada=e,this}entrega(e){return this.data.infNFe.entrega=e,this}autXML(e){return this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this}det(e,t){return this.data.infNFe.det=e.map((n,i)=>{let s=t(this.nfeDetXmlBuilder.det({nItem:(i+1).toString()}),n);return this.collect(s),s.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let t=e(this.data.infNFe.total);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...t.ICMSTot},ISSQNtot:t.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...t.ISSQNtot}:void 0},this}transp(e){return this.data.infNFe.transp=e,this}cobr(e){return this.data.infNFe.cobr=e,this}pag(e){return this.data.infNFe.pag=e,this}infIntermed(e){return this.data.infNFe.infIntermed=e,this}infAdic(e){return this.data.infNFe.infAdic=e,this}exporta(e){return this.data.infNFe.exporta=e,this}compra(e){return this.data.infNFe.compra=e,this}cana(e){return this.data.infNFe.cana=e,this}infRespTec(e){return this.data.infNFe.infRespTec=e,this}infSolicNFF(e){return this.data.infNFe.infSolicNFF=e,this}quiet(){return Reflect.deleteMetadata(Mo,this),this}toObject(){let e=this.errors();return e?Wi(new Ln(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),ai(h2(this.data,this.entity,{clearEmptyValues:!0})))}async assemble(){let e=this.toObject();return e.isLeft()?e:ai(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==Me.Homolog?!1:(this.data.infNFe.dest&&(this.data.infNFe.dest.xNome="NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL"),!0)}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{cUF:e,tpEmis:t}=this.data.infNFe.ide;if(t!==Ta.Normal)return;switch(M_[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ta.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ta.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Ta.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(Mo,this)}collect(e){let t=Reflect.getMetadata(Mo,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(Mo,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new Cx().compile({cUF:this.data.infNFe.ide.cUF,year:this.data.infNFe.ide.dhEmi.substring(2,4),month:this.data.infNFe.ide.dhEmi.substring(5,7),identification:this.data.infNFe.emit.CPF??this.data.infNFe.emit.CNPJ,mod:this.data.infNFe.ide.mod,serie:this.data.infNFe.ide.serie,nNF:this.data.infNFe.ide.nNF,tpEmis:this.data.infNFe.ide.tpEmis,cNF:this.data.infNFe.ide.cNF});this.data.infNFe.ide.cDV=e.slice(-1),this.data.infNFe.$={Id:`${this.root}${e}`,versao:this.data.infNFe.$.versao}}};qi([nr(Tg),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),Nt("design:returntype",void 0)],Gn.prototype,"infNFe",null);qi([nr(Qr),Nt("design:type",Function),Nt("design:paramtypes",[typeof IIde>"u"?Object:IIde]),Nt("design:returntype",void 0)],Gn.prototype,"ide",null);qi([nr(ns),Nt("design:type",Function),Nt("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),Nt("design:returntype",void 0)],Gn.prototype,"emit",null);qi([nr(Bs),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),Nt("design:returntype",void 0)],Gn.prototype,"avulsa",null);qi([nr(is),Nt("design:type",Function),Nt("design:paramtypes",[typeof IDest>"u"?Object:IDest]),Nt("design:returntype",void 0)],Gn.prototype,"dest",null);qi([nr(Cn),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Gn.prototype,"retirada",null);qi([nr(Cn),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Gn.prototype,"entrega",null);qi([nr(yl),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),Nt("design:returntype",void 0)],Gn.prototype,"autXML",null);qi([nr(Hf),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),Nt("design:returntype",void 0)],Gn.prototype,"total",null);qi([nr(ra),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),Nt("design:returntype",void 0)],Gn.prototype,"transp",null);qi([nr(_d),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),Nt("design:returntype",void 0)],Gn.prototype,"cobr",null);qi([nr(Pd),Nt("design:type",Function),Nt("design:paramtypes",[typeof IPag>"u"?Object:IPag]),Nt("design:returntype",void 0)],Gn.prototype,"pag",null);qi([nr(Nd),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),Nt("design:returntype",void 0)],Gn.prototype,"infIntermed",null);qi([nr(nc),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),Nt("design:returntype",void 0)],Gn.prototype,"infAdic",null);qi([nr(Mf),Nt("design:type",Function),Nt("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),Nt("design:returntype",void 0)],Gn.prototype,"exporta",null);qi([nr(qf),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),Nt("design:returntype",void 0)],Gn.prototype,"compra",null);qi([nr(na),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICana>"u"?Object:ICana]),Nt("design:returntype",void 0)],Gn.prototype,"cana",null);qi([nr(ou),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),Nt("design:returntype",void 0)],Gn.prototype,"infRespTec",null);qi([nr(Ig),Nt("design:type",Function),Nt("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),Nt("design:returntype",void 0)],Gn.prototype,"infSolicNFF",null);var w8=class extends Gn{static{o(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}},infNFeSupl:{}};get entity(){return gu}static create(e,t){return new this(e,t)}assertHomologValidations(){return super.assertHomologValidations()?(this.data.infNFe.det[0].prod.xProd="NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL",!0):!1}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{tpEmis:e}=this.data.infNFe.ide;if(e===Ta.Normal)return this.data.infNFe.ide.tpEmis=Ta.OFFLINE,void 0}};0&&(module.exports={AccessKeyBuilder,DefaultDetBuilderAggregator,DefaultTotalBuilderAggregator,NFCeDto,NFeDto,NfceQrcode,NfceRemoteTransmitter,NfceXmlBuilder,NfeAuthorizerPipeline,NfeDetXmlBuilder,NfeRemoteTransmitter,NfeXmlBuilder,TpEmis,directory});
109
109
  /*! Bundled license information:
110
110
 
111
111
  lodash/lodash.js: