vendor: 10,640 bytes, line 1
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1214],{59196:function(e,t){"use strict";t.byteLength=c,t.toByteArray=f,t.fromByteArray=h;for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n}function l(e,t,r){return(t+r)*3/4-r}function f(e){var t,r,i=u(e),a=i[0],s=i[1],c=new o(l(e,a,s)),f=0,p=s>0?a-4:a;for(r=0;r<p;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[f++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c}function p(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function d(e,t,r){for(var n=[],o=t;o<r;o+=3)n.push(p((e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2])));return n.join("")}function h(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,u=n-o;s<u;s+=a)i.push(d(e,s,s+a>u?u:s+a));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},82957:function(e,t,r){"use strict";var n=r(59196),o=r(68848),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;var a=2147483647;function s(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function u(e){if(e>a)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return h(e,t);if(ArrayBuffer.isView(e))return g(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(X(e,SharedArrayBuffer)||e&&X(e.buffer,SharedArrayBuffer)))return m(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return c.from(n,t,r);var o=b(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function p(e,t,r){return(f(e),e<=0)?u(e):void 0!==t?"string"==typeof r?u(e).fill(t,r):u(e).fill(t):u(e)}function d(e){return f(e),u(e<0?0:0|v(e))}function h(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!c.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|_(e,t),n=u(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}function y(e){for(var t=e.length<0?0:0|v(e.length),r=u(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function g(e){if(X(e,Uint8Array)){var t=new Uint8Array(e);return m(t.buffer,t.byteOffset,t.byteLength)}return y(e)}function m(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),c.prototype),n}function b(e){if(c.isBuffer(e)){var t=0|v(e.length),r=u(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||Z(e.length)?u(0):y(e):"Buffer"===e.type&&Array.isArray(e.data)?y(e.data):void 0}function v(e){if(e>=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&(e=0),c.alloc(+e)}function _(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return V(e).length;default:if(o)return n?-1:J(e).length;t=(""+t).toLowerCase(),o=!0}}function S(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return N(this,t,r);case"base64":return j(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,t,r);default:if(n)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function E(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function A(e,t,r,n,o){if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Z(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return -1;r=e.length-1}else if(r<0){if(!o)return -1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:k(e,t,r,n,o);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):k(e,[t],r,n,o);throw TypeError("val must be string, number or Buffer")}function k(e,t,r,n,o){var i,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,s/=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<s;i++)if(c(e,i)===c(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else -1!==l&&(i-=i-l),l=-1}else for(r+u>s&&(r=s-u),i=r;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(c(e,i+p)!==c(t,p)){f=!1;break}if(f)return i}return -1}function O(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(Z(s))break;e[r+a]=s}return a}function P(e,t,r,n){return Y(J(t,e.length-r),e,r,n)}function x(e,t,r,n){return Y(z(t),e,r,n)}function T(e,t,r,n){return Y(V(t),e,r,n)}function R(e,t,r,n){return Y(G(t,e.length-r),e,r,n)}function j(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function C(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,u,c=e[o],l=null,f=c>239?4:c>223?3:c>191?2:1;if(o+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:(192&(i=e[o+1]))==128&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return U(n)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=s(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return p(e,t,r)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(X(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),X(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=c.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(X(i,Uint8Array))o+i.length>n.length?c.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else if(c.isBuffer(i))i.copy(n,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=i.length}return n},c.byteLength=_,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)E(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)E(this,t,t+3),E(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)E(this,t,t+7),E(this,t+1,t+6),E(this,t+2,t+5),E(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?C(this,0,e):S.apply(this,arguments)}
vendor: 10,046 bytes, line 1
1,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,o){if(X(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,s=Math.min(i,a),u=this.slice(n,o),l=e.slice(t,r),f=0;f<s;++f)if(u[f]!==l[f]){i=u[f],a=l[f];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return A(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return A(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return O(this,e,t,r);case"utf8":case"utf-8":return P(this,e,t,r);case"ascii":case"latin1":case"binary":return x(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(i)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function U(e){var t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=I));return r}function M(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function N(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function D(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=Q[e[i]];return o}function H(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function L(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function W(e,t,r,n,o,i){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function B(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function F(e,t,r,n,i){return t=+t,r>>>=0,i||B(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function $(e,t,r,n,i){return t=+t,r>>>=0,i||B(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}c.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||L(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return(e>>>=0,t||L(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;W(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;W(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||W(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||W(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||W(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||W(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||W(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);W(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);W(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||W(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||W(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||W(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||W(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||W(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,r){return F(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return F(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return $(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return $(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=c.isBuffer(e)?e:c.from(e,n),s=a.length;
1if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var K=/[^+/0-9A-Za-z-_]/g;function q(e){if((e=(e=e.split("=")[0]).trim().replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function J(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function z(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function G(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}function V(e){return n.toByteArray(q(e))}function Y(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!=e}var Q=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},90469:function(e,t){"use strict";t.parse=u,t.serialize=f;var r=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,i=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/;function u(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");var r={},o=e.length;if(o<2)return r;var i=t&&t.decode||p,a=0,s=0,u=0;do{if(-1===(s=e.indexOf("=",a)))break;if(-1===(u=e.indexOf(";",a)))u=o;else if(s>u){a=e.lastIndexOf(";",s-1)+1;continue}var f=c(e,a,s),d=l(e,s,f),y=e.slice(f,d);if(!n.call(r,y)){var g=c(e,s+1,u),m=l(e,u,g);34===e.charCodeAt(g)&&34===e.charCodeAt(m-1)&&(g++,m--);var b=e.slice(g,m);r[y]=h(b,i)}a=u+1}while(a<o);return r}function c(e,t,r){do{var n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<r);return r}function l(e,t,r){for(;t>r;){var n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return r}function f(e,t,r){var n=r&&r.encode||encodeURIComponent;if("function"!=typeof n)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var u=n(t);if(!i.test(u))throw TypeError("argument val is invalid");var c=e+"="+u;if(!r)return c;if(null!=r.maxAge){var l=Math.floor(r.maxAge);if(!isFinite(l))throw TypeError("option maxAge is invalid");c+="; Max-Age="+l}if(r.domain){if(!a.test(r.domain))throw TypeError("option domain is invalid");c+="; Domain="+r.domain}if(r.path){if(!s.test(r.path))throw TypeError("option path is invalid");c+="; Path="+r.path}if(r.expires){var f=r.expires;if(!d(f)||isNaN(f.valueOf()))throw TypeError("option expires is invali
1d");c+="; Expires="+f.toUTCString()}if(r.httpOnly&&(c+="; HttpOnly"),r.secure&&(c+="; Secure"),r.partitioned&&(c+="; Partitioned"),r.priority)switch("string"==typeof r.priority?r.priority.toLowerCase():r.priority){case"low":c+="; Priority=Low";break;case"medium":c+="; Priority=Medium";break;case"high":c+="; Priority=High";break;default:throw TypeError("option priority is invalid")}if(r.sameSite)switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:case"strict":c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"none":c+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return c}function p(e){return -1!==e.indexOf("%")?decodeURIComponent(e):e}function d(e){return"[object Date]"===r.call(e)}function h(e,t){try{return t(e)}catch(t){return e}}},11614:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.checkCookies=t.hasCookie=t.removeCookies=t.deleteCookie=t.setCookies=t.setCookie=t.getCookie=t.getCookies=void 0;var i=r(77098),a=function(){return"undefined"!=typeof window},s=function(e){return"true"===e||"false"!==e&&("undefined"!==e?"null"===e?null:e:void 0)},u=function(e){void 0===e&&(e="");try{var t=JSON.stringify(e);return/^[\{\[]/.test(t)?t:e}catch(t){return e}},c=function(e){return e?e.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent):e},l=function(e){if(e&&(t=e.req),!a())return t&&t.cookies?t.cookies:t&&t.headers&&t.headers.cookie?(0,i.parse)(t.headers.cookie):{};for(var t,r={},n=document.cookie?document.cookie.split("; "):[],o=0,s=n.length;o<s;o++){var u=n[o].split("="),c=u.slice(1).join("=");r[u[0]]=c}return r};t.getCookies=l;var f=function(e,r){var n=(0,t.getCookies)(r)[e];if(void 0!==n)return s(c(n))};t.getCookie=f;var p=function(e,t,r){if(r){var s,c,l,f=r.req,p=r.res,d=o(r,["req","res"]);c=f,l=p,s=d}var h=(0,i.serialize)(e,u(t),n({path:"/"},s));if(a())document.cookie=h;else if(l&&c){var y=l.getHeader("Set-Cookie");if(Array.isArray(y)||(y=y?[String(y)]:[]),l.setHeader("Set-Cookie",y.concat(h)),c&&c.cookies){var g=c.cookies;""===t?delete g[e]:g[e]=u(t)}if(c&&c.headers&&c.headers.cookie){var g=(0,i.parse)(c.headers.cookie);""===t?delete g[e]:g[e]=u(t),c.headers.cookie=Object.entries(g).reduce(function(e,t){return e.concat("".concat(t[0],"=").concat(t[1],";"))},"")}}};t.setCookie=p;var d=function(e,r,n){return console.warn("[WARN]: setCookies was deprecated. It will be deleted in the new version. Use setCookie instead."),(0,t.setCookie)(e,r,n)};t.setCookies=d;var h=function(e,r){return(0,t.setCookie)(e,"",n(n({},r),{maxAge:-1}))};t.deleteCookie=h;var y=function(e,r){return console.warn("[WARN]: removeCookies was deprecated. It will be deleted in the new version. Use deleteCookie instead."),(0,t.deleteCookie)(e,r)};t.removeCookies=y;var g=function(e,r){return!!e&&(0,t.getCookies)(r).hasOwnProperty(e)};t.hasCookie=g;var m=function(e,r){return console.warn("[WARN]: checkCookies was deprecated. It will be deleted in the new version. Use hasCookie instead."),(0,t.hasCookie)(e,r)};t.checkCookies=m},77098:function(e,t){"use strict";t.parse=i,t.serialize=a;var r=decodeURIComponent,n=encodeURIComponent,o=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function i(e,t){if("string"!=typeof e)throw TypeError("argument str must be a string");for(var n={},o=t||{},i=e.split(";"),a=o.decode||r,u=0;u<i.length;u++){var c=i[u],l=c.indexOf("=");if(!(l<0)){var f=c.substring(0,l).trim();if(void 0==n[f]){var p=c.substring(l+1,c.length).trim();'"'===p[0]&&(p=p.slice(1,-1)),n[f]=s(p,a)}}}return n}function a(e,t,r){var i=r||{},a=i.encode||n;if("function"!=typeof a)throw TypeError("option encode is invalid");if(!o.test(e))throw TypeError("argument name is invalid");var s=a(t);if(s&&!o.test(s))throw TypeError("argument val is invalid");var u=e+"="+s;if(null!=i.maxAge){var c=i.maxAge-0;if(isNaN(c)||!isFinite(c))throw TypeError("option maxAge is invalid");u+="; Max-Age="+Math.floor(c)}if(i.domain){if(!o.test(i.domain))throw TypeError("option domain is invalid");u+="; Domain="+i.domain}if(i.path){if(!o.test(i.path))throw TypeError("option path is invalid");u+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw TypeError("option expires is invali
1d");u+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(u+="; HttpOnly"),i.secure&&(u+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase():i.sameSite){case!0:case"strict":u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"none":u+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return u}function s(e,t){try{return t(e)}catch(t){return e}}},55445:function(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function o(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=b,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(u(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var i,a,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,o(l)}return e}function f(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=f.bind(n);return o.listener=r,n.wrapFn=o,o}function d(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?m(o):y(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=Array(t),n=0;n<t;++n)r[n]=e[n];return r}function g(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function m(e){for(var t=Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function b(e,t){return new Promise(function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}w(e,t,i,{once:!0}),"error"!==t&&v(e,o,{once:!0})})}function v(e,t,r){"function"==typeof e.on&&w(e,"error",t,r)}function w(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else if("function"==typeof e.addEventListener)e.addEventListener(t,function o(i){n.once&&e.removeEventListener(t,o),r(i)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),a.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||i(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);
1else for(var c=u.length,l=y(u,c),r=0;r<c;++r)n(l[r],this,t);return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,o,i,a;if(u(t),void 0===(n=this._events)||void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():g(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return d(this,e,!0)},a.prototype.rawListeners=function(e){return d(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},a.prototype.listenerCount=h,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},68848:function(e,t){t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?o-1:0,p=r?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=c}return(d?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,p=23===o?5960464477539062e-23:0,d=n?0:i-1,h=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?t+=p/u:t+=p*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+d]=255&s,d+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;c>0;e[r+d]=255&a,d+=h,a/=256,c-=8);e[r+d-h]|=128*y}},76310:function(e,t,r){"use strict";var n=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),t.AuthHandler=g;var o=d(r(81393)),i=r(84084),a=d(r(2155)),s=n(r(30469)),u=r(54709),c=r(33681),l=r(99274),f=r(90469);function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(p=function(e){return e?r:t})(e)}function d(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=p(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&({}).hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}async function h(e){try{return await e.json()}catch(e){}}async function y(e){var t,r,n,o;if(e instanceof Request){let t=new URL(e.url),a=t.pathname.split("/").slice(3),s=Object.fromEntries(e.headers),u=Object.fromEntries(t.searchParams);return u.nextauth=a,{action:a[0],method:e.method,headers:s,body:await h(e),cookies:(0,f.parse)(null!==(r=e.headers.get("cookie"))&&void 0!==r?r:""),providerId:a[1],error:null!==(n=t.searchParams.get("error"))&&void 0!==n?n:a[1],origin:(0,i.detectOrigin)(null!==(o=s["x-forwarded-host"])&&void 0!==o?o:s.host,s["x-forwarded-proto"]),query:u}}let{headers:a}=e,s=null!==(t=null==a?void 0:a["x-forwarded-host"])&&void 0!==t?t:null==a?void 0:a.host;return e.origin=(0,i.detectOrigin)(s,null==a?void 0:a["x-forwarded-proto"]),e}async function g(e){var t,r,n,i,f,p,d;let{options:h,req:g}=e,m=await y(g);(0,o.setLogger)(h.logger,h.debug);let b=(0,c.assertConfig)({options:h,req:m});if(Array.isArray(b))b.forEach(o.default.warn);else if(b instanceof Error){if(o.default.error(b.code,b),!["signin","signout","error","verify-request"].includes(m.action)||"GET"!==m.method)return{status:500,headers:[{key:"Content-Type",value:"application/json"}],body:{message:"There is a problem with the server configuration. Check the server logs for more information."}};let{pages:e,theme:t}=h,r=(null==e?void 0:e.error)&&(null===(f=m.query)||void 0===f||null===(f=f.callbackUrl)||void 0===f?void 0:f.startsWith(e.error));return!(null!=e&&e.error)||r?(r&&o.default.error("AUTH_ON_ERROR_PAGE_ERROR",Error(`The error page ${null==e?void 0:e.error} should not require authentication`)),(0,s.default)({theme:t}).error({error:"configuration"})):{redirect:`${e.error}?error=Configuration`}}let{action:v,providerId:w,error:_,method:S="GET"}=m,{options:E,cookies:A}=await (0,u.init)({authOptions:h,action:v,providerId:w,origin:m.origin,callbackUrl:null!==(t=null===(r=m.body)||void 0===r?void 0:r.callbackUrl)&&void 0!==t?t:null===(n=m.query)||void 0===n?void 0:n.callbackUrl,csrfToken:null===(i=m.body)||void 0===i?void 0:i.csrfToken,cookies:m.cookies,isPost:"POST"===S}),k=new l.SessionStore(E.cookies.sessionToken,m,E.logger);if("GET"===S){let e=(0,s.default)({...E,query:m.query,cookies:A}),{pages:t}=E;switch(v){case"providers":return await a.providers(E.providers);case"session":{let e=await a.session({options:E,sessionStore:k});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}case"csrf":return{headers:[{key:"Content-Type",value:"application/json"},{key:"Cache-Control",value:"private, no-cache, no-store"},{key:"Pragma",value:"no-cache"}
1,{key:"Expires",value:"0"}],body:{csrfToken:E.csrfToken},cookies:A};case"signin":if(t.signIn){let e=`${t.signIn}${t.signIn.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(E.callbackUrl)}`;return _&&(e=`${e}&error=${encodeURIComponent(_)}`),{redirect:e,cookies:A}}return e.signin();case"signout":if(t.signOut)return{redirect:t.signOut,cookies:A};return e.signout();case"callback":if(E.provider){let e=await a.callback({body:m.body,query:m.query,headers:m.headers,cookies:m.cookies,method:S,options:E,sessionStore:k});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}break;case"verify-request":if(t.verifyRequest)return{redirect:t.verifyRequest,cookies:A};return e.verifyRequest();case"error":if(["Signin","OAuthSignin","OAuthCallback","OAuthCreateAccount","EmailCreateAccount","Callback","OAuthAccountNotLinked","EmailSignin","CredentialsSignin","SessionRequired"].includes(_))return{redirect:`${E.url}/signin?error=${_}`,cookies:A};if(t.error)return{redirect:`${t.error}${t.error.includes("?")?"&":"?"}error=${_}`,cookies:A};return e.error({error:_})}}else if("POST"===S)switch(v){case"signin":if(E.csrfTokenVerified&&E.provider){let e=await a.signin({query:m.query,body:m.body,options:E});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}return{redirect:`${E.url}/signin?csrf=true`,cookies:A};case"signout":if(E.csrfTokenVerified){let e=await a.signout({options:E,sessionStore:k});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}return{redirect:`${E.url}/signout?csrf=true`,cookies:A};case"callback":if(E.provider){if("credentials"===E.provider.type&&!E.csrfTokenVerified)return{redirect:`${E.url}/signin?csrf=true`,cookies:A};let e=await a.callback({body:m.body,query:m.query,headers:m.headers,cookies:m.cookies,method:S,options:E,sessionStore:k});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}break;case"_log":if(h.logger)try{let{code:e,level:t,...r}=null!==(p=m.body)&&void 0!==p?p:{};o.default[t](e,r)}catch(e){o.default.error("LOGGER_ERROR",e)}return{};case"session":if(E.csrfTokenVerified){let e=await a.session({options:E,sessionStore:k,newSession:null===(d=m.body)||void 0===d?void 0:d.data,isUpdate:!0});return e.cookies&&A.push(...e.cookies),{...e,cookies:A}}return{status:400,body:{},cookies:A}}return{status:400,body:`Error: This action with HTTP ${S} is not supported by NextAuth.js`}}},54709:function(e,t,r){"use strict";var n=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),t.init=m;var o=r(68989),i=n(r(81393)),a=r(60026),s=n(r(18824)),u=r(17742),c=g(r(99274)),l=g(r(71030)),f=r(60652),p=r(75237),d=r(36345),h=n(r(5368));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(y=function(e){return e?r:t})(e)}function g(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=y(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&({}).hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}async function m({authOptions:e,providerId:t,action:r,origin:n,cookies:y,callbackUrl:g,csrfToken:m,isPost:b}){var v,w;let _=(0,h.default)(n),S=(0,u.createSecret)({authOptions:e,url:_}),{providers:E,provider:A}=(0,s.default)({providers:e.providers,url:_,providerId:t}),k=2592e3,O={debug:!1,pages:{},theme:{colorScheme:"auto",logo:"",brandColor:"",buttonText:""},...e,url:_,action:r,provider:A,cookies:{...c.defaultCookies(null!==(v=e.useSecureCookies)&&void 0!==v?v:_.base.startsWith("https://")),...e.cookies},secret:S,providers:E,session:{strategy:e.adapter?"database":"jwt",maxAge:k,updateAge:86400,generateSessionToken:()=>{var e;return null!==(e=null===o.randomUUID||void 0===o.randomUUID?void 0:(0,o.randomUUID)())&&void 0!==e?e:(0,o.randomBytes)(32).toString("hex")},...e.session},jwt:{secret:S,maxAge:k,encode:l.encode,decode:l.decode,...e.jwt},events:(0,a.eventsErrorHandler)(null!==(w=e.events)&&void 0!==w?w:{},i.default),adapter:(0,a.adapterErrorHandler)(e.adapter,i.default),callbacks:{...f.defaultCallbacks,...e.callbacks},logger:i.default,callbackUrl:_.origin},P=[],{csrfToken:x,cookie:T,csrfTokenVerified:R}=(0,p.createCSRFToken)({options:O,cookieValue:null==y?void 0:y[O.cookies.csrfToken.name],isPost:b,bodyValue:m});O.csrfToken=x,O.csrfTokenVerified=R,T&&P.push({name:O.cookies.csrfToken.name,value:T,options:O.cookies.csrfToken.options});
1let{callbackUrl:j,callbackUrlCookie:C}=await (0,d.createCallbackUrl)({options:O,cookieValue:null==y?void 0:y[O.cookies.callbackUrl.name],paramValue:g});return O.callbackUrl=j,C&&P.push({name:O.cookies.callbackUrl.name,value:C,options:O.cookies.callbackUrl.options}),{options:O,cookies:P}}},33681:function(e,t,r){"use strict";var n=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),t.assertConfig=c;var o=r(60026),i=n(r(5368)),a=r(99274);let s=!1;function u(e,t){try{return/^https?:/.test(new URL(e,e.startsWith("/")?t:void 0).protocol)}catch(e){return!1}}function c(e){var t,r,n,c,l,f,p;let d,h,y;let{options:g,req:m}=e,b=[];if(!s&&(m.origin||b.push("NEXTAUTH_URL"),g.secret,g.debug&&b.push("DEBUG_ENABLED")),!g.secret)return new o.MissingSecret("Please define a `secret` in production.");if(!(null!==(t=m.query)&&void 0!==t&&t.nextauth)&&!m.action)return new o.MissingAPIRoute("Cannot find [...nextauth].{js,ts} in `/pages/api/auth`. Make sure the filename is written correctly.");let v=null===(r=m.query)||void 0===r?void 0:r.callbackUrl,w=(0,i.default)(m.origin);if(v&&!u(v,w.base))return new o.InvalidCallbackUrl(`Invalid callback URL. Received: ${v}`);let{callbackUrl:_}=(0,a.defaultCookies)(null!==(n=g.useSecureCookies)&&void 0!==n?n:w.base.startsWith("https://")),S=null===(c=m.cookies)||void 0===c?void 0:c[null!==(l=null===(f=g.cookies)||void 0===f||null===(f=f.callbackUrl)||void 0===f?void 0:f.name)&&void 0!==l?l:_.name];if(S&&!u(S,w.base))return new o.InvalidCallbackUrl(`Invalid callback URL. Received: ${S}`);for(let e of g.providers)"credentials"===e.type?d=!0:"email"===e.type?h=!0:"twitter"===e.id&&"2.0"===e.version&&(y=!0);if(d){let e=(null===(p=g.session)||void 0===p?void 0:p.strategy)==="database",t=!g.providers.some(e=>
1"credentials"!==e.type);if(e&&t)return new o.UnsupportedStrategy("Signin in with credentials only supported if JWT strategy is enabled");if(g.providers.some(e=>"credentials"===e.type&&!e.authorize))return new o.MissingAuthorize("Must define an authorize() handler to use credentials authentication provider")}if(h){let{adapter:e}=g;if(!e)return new o.MissingAdapter("E-mail login requires an adapter.");let t=["createVerificationToken","useVerificationToken","getUserByEmail"].filter(t=>!e[t]);if(t.length)return new o.MissingAdapterMethods(`Required adapter methods were missing: ${t.join(", ")}`)}return s||(y&&b.push("TWITTER_OAUTH_2_BETA"),s=!0),b}},76743:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(60026),o=r(17742);async function i(e){var t,r,i,a,s,u;let{sessionToken:c,profile:l,account:f,options:p}=e;if(!(null!=f&&f.providerAccountId)||!f.type)throw Error("Missing or invalid provider account");if(!["email","oauth"].includes(f.type))throw Error("Provider not supported");let{adapter:d,jwt:h,events:y,session:{strategy:g,generateSessionToken:m}}=p;if(!d)return{user:l,account:f};let b=l,{createUser:v,updateUser:w,getUser:_,getUserByAccount:S,getUserByEmail:E,linkAccount:A,createSession:k,getSessionAndUser:O,deleteSession:P}=d,x=null,T=null,R=!1,j="jwt"===g;if(c){if(j)try{(x=await h.decode({...h,token:c}))&&"sub"in x&&x.sub&&(T=await _(x.sub))}catch(e){}else{let e=await O(c);e&&(x=e.session,T=e.user)}}if("email"===f.type){let e=await E(b.email);if(e)(null===(t=T)||void 0===t?void 0:t.id)!==e.id&&!j&&c&&await P(c),T=await w({id:e.id,emailVerified:new Date}),await (null===(r=y.updateUser)||void 0===r?void 0:r.call(y,{user:T}));else{let{id:e,...t}={...b,emailVerified:new Date};T=await v(t),await (null===(i=y.createUser)||void 0===i?void 0:i.call(y,{user:T})),R=!0}return{session:x=j?{}:await k({sessionToken:await m(),userId:T.id,expires:(0,o.fromDate)(p.session.maxAge)}),user:T,isNewUser:R}}if("oauth"===f.type){let e=await S({providerAccountId:f.providerAccountId,provider:f.provider});if(e){if(T){if(e.id===T.id)return{session:x,user:T,isNewUser:R};throw new n.AccountNotLinkedError("The account is already associated with another user")}return{session:x=j?{}:await k({sessionToken:await m(),userId:e.id,expires:(0,o.fromDate)(p.session.maxAge)}),user:e,isNewUser:R}}{if(T)return await A({...f,userId:T.id}),await (null===(u=y.linkAccount)||void 0===u?void 0:u.call(y,{user:T,account:f,profile:b})),{session:x,user:T,isNewUser:R};let e=b.email?await E(b.email):null;if(e){let t=p.provider;if(null!=t&&t.allowDangerousEmailAccountLinking)T=e;else throw new n.AccountNotLinkedError("Another account already exists with the same e-mail address")}else{let{id:e,...t}={...b,emailVerified:null};T=await v(t)}return await (null===(a=y.createUser)||void 0===a?void 0:a.call(y,{user:T})),await A({...f,userId:T.id}),await (null===(s=y.linkAccount)||void 0===s?void 0:s.call(y,{user:T,account:f,profile:b})),{session:x=j?{}:await k({sessionToken:await m(),userId:T.id,expires:(0,o.fromDate)(p.session.maxAge)}),user:T,isNewUser:!0}}}throw Error("Unsupported account type")}},36345:function(e,t){"use strict";async function r({options:e,paramValue:t,cookieValue:r}){let{url:n,callbacks:o}=e,i=n.origin;return t?i=await o.redirect({url:t,baseUrl:n.origin}):r&&(i=await o.redirect({url:r,baseUrl:n.origin})),{callbackUrl:i,callbackUrlCookie:i!==r?i:void 0}}Object.defineProperty(t,"__esModule",{value:!0}),t.createCallbackUrl=r},99274:function(e,t){"use strict";function r(e,t){o(e,t),t.add(e)}function n(e,t,r){o(e,t),t.set(e,r)}function o(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function i(e,t){return e.get(s(e,t))}function a(e,t,r){return e.set(s(e,t),r),r}function s(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw TypeError("Private element is not present on this object")}Object.defineProperty(t,"__esModule",{value:!0}),t.SessionStore=void 0,t.defaultCookies=f;let u=4096,c=163,l=3933;function f(e){let t=e?"__Secure-":"";return{sessionToken:{name:`${t}next-auth.session-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},callbackUrl:{name:`${t}next-auth.callback-url`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},csrfToken:{name:`${e?"__Host-":""}next-auth.csrf-token`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}},pkceCodeVerifier:{name:`${t}next-auth.pkce.code_verifier`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},state:{name:`${t}next-auth.state`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e,maxAge:900}},nonce:{name:`${t}next-auth.nonce`,options:{httpOnly:!0,sameSite:"lax",path:"/",secure:e}}}}var p=new WeakMap,d=new WeakMap,h=new WeakMap,y=new WeakSet;class g{constructor(e,t,o){r(this,y),n(this,p,{}),n(this,d,void 0),n(this,h,void 0),a(h,this,o),a(d,this,e);let{cookies:s}=t,{name:u}=e;if("function"==typeof(null==s?void 0:s.getAll))for(let{name:e,value:t}of s.getAll())e.startsWith(u)&&(i(p,this)[e]=t);else if(s instanceof Map)for(let e of s.keys())e.startsWith(u)&&(i(p,this)[e]=s.get(e));else for(let e in s)e.startsWith(u)&&(i(p,this)[e]=s[e])}get value(){return Object.keys(i(p,this)).sort((e,t)=>
1{var r,n;return parseInt(null!==(r=e.split(".").pop())&&void 0!==r?r:"0")-parseInt(null!==(n=t.split(".").pop())&&void 0!==n?n:"0")}).map(e=>i(p,this)[e]).join("")}chunk(e,t){let r=s(y,this,b).call(this);for(let n of s(y,this,m).call(this,{name:i(d,this).name,value:e,options:{...i(d,this).options,...t}}))r[n.name]=n;return Object.values(r)}clean(){return Object.values(s(y,this,b).call(this))}}function m(e){let t=Math.ceil(e.value.length/l);if(1===t)return i(p,this)[e.name]=e.value,[e];let r=[];for(let n=0;n<t;n++){let t=`${e.name}.${n}`,o=e.value.substr(n*l,l);r.push({...e,name:t,value:o}),i(p,this)[t]=o}return i(h,this).debug("CHUNKING_SESSION_COOKIE",{message:`Session cookie exceeds allowed ${u} bytes.`,emptyCookieSize:c,valueSize:e.value.length,chunks:r.map(e=>e.value.length+c)}),r}function b(){let e={};for(let r in i(p,this)){var t;null===(t=i(p,this))||void 0===t||delete t[r],e[r]={name:r,value:"",options:{...i(d,this).options,maxAge:0}}}return e}t.SessionStore=g},75237:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCSRFToken=o;var n=r(68989);function o({options:e,cookieValue:t,isPost:r,bodyValue:o}){if(t){let[i,a]=t.split("|");if(a===(0,n.createHash)("sha256").update(`${i}${e.secret}`).digest("hex"))return{csrfTokenVerified:r&&i===o,csrfToken:i}}let i=(0,n.randomBytes)(32).toString("hex"),a=(0,n.createHash)("sha256").update(`${i}${e.secret}`).digest("hex");return{cookie:`${i}|${a}`,csrfToken:i}}},60652:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCallbacks=void 0,t.defaultCallbacks={signIn:()=>!0,redirect:({url:e,baseUrl:t})=>e.startsWith("/")?`${t}${e}`:new URL(e).origin===t?e:t,session:({session:e})=>e,jwt:({token:e})=>e}},90948:function(e,t){"use strict";async function r({email:e,adapter:t}){let{getUserByEmail:r}=t;return(e?await r(e):null)||{id:e,email:e,emailVerified:null}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},90433:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var n=r(68989),o=r(17742);async function i(e,t){var r,i,a,s;let{url:u,adapter:c,provider:l,callbackUrl:f,theme:p}=t,d=null!==(r=await (null===(i=l.generateVerificationToken)||void 0===i?void 0:i.call(l)))&&void 0!==r?r:(0,n.randomBytes)(32).toString("hex"),h=86400,y=new Date(Date.now()+(null!==(a=l.maxAge)&&void 0!==a?a:h)*1e3),g=new URLSearchParams({callbackUrl:f,token:d,email:e}),m=`${u}/callback/${l.id}?${g}`;return await Promise.all([l.sendVerificationRequest({identifier:e,token:d,expires:y,url:m,provider:l,theme:p}),null===(s=c.createVerificationToken)||void 0===s?void 0:s.call(c,{identifier:e,token:(0,o.hashToken)(d,t),expires:y})]),`${u}/verify-request?${new URLSearchParams({provider:l.id,type:l.type})}`}},85315:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(37234),o=r(18634),i=s(r(74623));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&({}).hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}async function u({options:e,query:t}){var r,a,s;let{logger:u,provider:c}=e,l={};if("string"==typeof c.authorization){let e=Object.fromEntries(new URL(c.authorization).searchParams);l={...l,...e}}else l={...l,...null===(a=c.authorization)||void 0===a?void 0:a.params};if(l={...l,...t},null!==(r=c.version)&&void 0!==r&&r.startsWith("1.")){let t=(0,o.oAuth1Client)(e),r=await t.getOAuthRequestToken(l),n=`${null===(s=c.authorization)||void 0===s?void 0:s.url}?${new URLSearchParams({oauth_token:r.oauth_token,oauth_token_secret:r.oauth_token_secret,...r.params})}`;return o.oAuth1TokenStore.set(r.oauth_token,r.oauth_token_secret),u.debug("GET_AUTHORIZATION_URL",{url:n,provider:c}),{redirect:n}}
1let f=await (0,n.openidClient)(e),p=l,d=[];await i.state.create(e,d,p),await i.pkce.create(e,d,p),await i.nonce.create(e,d,p);let h=f.authorizationUrl(p);return u.debug("GET_AUTHORIZATION_URL",{url:h,cookies:d,provider:c}),{redirect:h,cookies:d}}},83679:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(82420),o=r(37234),i=r(18634),a=c(r(74623)),s=r(60026);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&({}).hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}async function l(e){var t,r,u,c,l,p;let{options:d,query:h,body:y,method:g,cookies:m}=e,{logger:b,provider:v}=d,w=null!==(t=null==y?void 0:y.error)&&void 0!==t?t:null==h?void 0:h.error;if(w){let e=Error(w);throw b.error("OAUTH_CALLBACK_HANDLER_ERROR",{error:e,error_description:null==h?void 0:h.error_description,providerId:v.id}),b.debug("OAUTH_CALLBACK_HANDLER_ERROR",{body:y}),e}if(null!==(r=v.version)&&void 0!==r&&r.startsWith("1."))try{let e=await (0,i.oAuth1Client)(d),{oauth_token:t,oauth_verifier:r}=null!=h?h:{},n=await e.getOAuthAccessToken(t,i.oAuth1TokenStore.get(t),r),o=await e.get(v.profileUrl,n.oauth_token,n.oauth_token_secret);return"string"==typeof o&&(o=JSON.parse(o)),{...await f({profile:o,tokens:n,provider:v,logger:b}),cookies:[]}}catch(e){throw b.error("OAUTH_V1_GET_ACCESS_TOKEN_ERROR",e),e}null!=h&&h.oauth_token&&i.oAuth1TokenStore.delete(h.oauth_token);try{let e,t;let r=await (0,o.openidClient)(d),i={},s=[];await a.state.use(m,s,d,i),await a.pkce.use(m,s,d,i),await a.nonce.use(m,s,d,i);let w={...r.callbackParams({url:`http://n?${new URLSearchParams(h)}`,body:y,method:g}),...null===(u=v.token)||void 0===u?void 0:u.params};if(null!==(c=v.token)&&void 0!==c&&c.request){let t=await v.token.request({provider:v,params:w,checks:i,client:r});e=new n.TokenSet(t.tokens)}else e=v.idToken?await r.callback(v.callbackUrl,w,i):await r.oauthCallback(v.callbackUrl,w,i);return Array.isArray(e.scope)&&(e.scope=e.scope.join(" ")),t=null!==(l=v.userinfo)&&void 0!==l&&l.request?await v.userinfo.request({provider:v,tokens:e,client:r}):v.idToken?e.claims():await r.userinfo(e,{params:null===(p=v.userinfo)||void 0===p?void 0:p.params}),{...await f({profile:t,provider:v,tokens:e,logger:b}),cookies:s}}catch(e){throw new s.OAuthCallbackError(e)}}async function f({profile:e,tokens:t,provider:r,logger:n}){try{var o;n.debug("PROFILE_DATA",{OAuthProfile:e});let i=await r.profile(e,t);if(i.email=null===(o=i.email)||void 0===o?void 0:o.toLowerCase(),!i.id)throw TypeError(`Profile id is missing in ${r.name} OAuth profile response`);return{profile:i,account:{provider:r.id,type:r.type,providerAccountId:i.id.toString(),...t},OAuthProfile:e}}catch(t){n.error("OAUTH_PARSE_PROFILE_ERROR",{error:t,OAuthProfile:e})}}},74623:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkce=t.nonce=t.PKCE_CODE_CHALLENGE_METHOD=void 0,t.signCookie=s,t.state=void 0;var n=r(82420),o=a(r(71030));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(i=function(e){return e?r:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=i(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&({}).hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}async function s(e,t,r,n){let{cookies:i,logger:a}=n;a.debug(`CREATE_${e.toUpperCase()}`,{value:t,maxAge:r});let{name:s}=i[e],u=new Date;return u.setTime(u.getTime()+1e3*r),{name:s,value:await o.encode({...n.jwt,maxAge:r,token:{value:t},salt:s}),options:{...i[e].options,expires:u}}}let u=900,c=t.PKCE_CODE_CHALLENGE_METHOD="S256";t.pkce={async create(e,t,r){var o,i;if(!(null!==(o=e.provider)&&void 0!==o&&null!==(o=o.checks)&&void 0!==o&&o.includes("pkce")))return;
1let a=n.generators.codeVerifier(),l=n.generators.codeChallenge(a);r.code_challenge=l,r.code_challenge_method=c;let f=null!==(i=e.cookies.pkceCodeVerifier.options.maxAge)&&void 0!==i?i:u;t.push(await s("pkceCodeVerifier",a,f,e))},async use(e,t,r,n){var i;if(!(null!==(i=r.provider)&&void 0!==i&&null!==(i=i.checks)&&void 0!==i&&i.includes("pkce")))return;let a=null==e?void 0:e[r.cookies.pkceCodeVerifier.name];if(!a)throw TypeError("PKCE code_verifier cookie was missing.");let{name:s}=r.cookies.pkceCodeVerifier,u=await o.decode({...r.jwt,token:a,salt:s});if(!(null!=u&&u.value))throw TypeError("PKCE code_verifier value could not be parsed.");t.push({name:s,value:"",options:{...r.cookies.pkceCodeVerifier.options,maxAge:0}}),n.code_verifier=u.value}};let l=900;t.state={async create(e,t,r){var o,i;if(!(null!==(o=e.provider.checks)&&void 0!==o&&o.includes("state")))return;let a=n.generators.state();r.state=a;let u=null!==(i=e.cookies.state.options.maxAge)&&void 0!==i?i:l;t.push(await s("state",a,u,e))},async use(e,t,r,n){var i;if(!(null!==(i=r.provider.checks)&&void 0!==i&&i.includes("state")))return;let a=null==e?void 0:e[r.cookies.state.name];if(!a)throw TypeError("State cookie was missing.");let{name:s}=r.cookies.state,u=await o.decode({...r.jwt,token:a,salt:s});if(!(null!=u&&u.value))throw TypeError("State value could not be parsed.");t.push({name:s,value:"",options:{...r.cookies.state.options,maxAge:0}}),n.state=u.value}};let f=900;t.nonce={async create(e,t,r){var o,i;if(!(null!==(o=e.provider.checks)&&void 0!==o&&o.includes("nonce")))return;let a=n.generators.nonce();r.nonce=a;let u=null!==(i=e.cookies.nonce.options.maxAge)&&void 0!==i?i:f;t.push(await s("nonce",a,u,e))},async use(e,t,r,n){var i;if(!(null!==(i=r.provider)&&void 0!==i&&null!==(i=i.checks)&&void 0!==i&&i.includes("nonce")))return;let a=null==e?void 0:e[r.cookies.nonce.name];if(!a)throw TypeError("Nonce cookie was missing.");let{name:s}=r.cookies.nonce,u=await o.decode({...r.jwt,token:a,salt:s});if(!(null!=u&&u.value))throw TypeError("Nonce value could not be parsed.");t.push({name:s,value:"",options:{...r.cookies.nonce.options,maxAge:0}}),n.nonce=u.value}}},18634:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.oAuth1Client=o,t.oAuth1TokenStore=void 0;var n=r(91830);function o(e){var t,r;let o=e.provider,i=new n.OAuth(o.requestTokenUrl,o.accessTokenUrl,o.clientId,o.clientSecret,null!==(t=o.version)&&void 0!==t?t:"1.0",o.callbackUrl,null!==(r=o.encoding)&&void 0!==r?r:"HMAC-SHA1"),a=i.get.bind(i);i.get=async(...e)=>await new Promise((t,r)=>{a(...e,(e,n)=>{if(e)return r(e);t(n)})});let s=i.getOAuthAccessToken.bind(i);i.getOAuthAccessToken=async(...e)=>await new Promise((t,r)=>{s(...e,(e,n,o)=>{if(e)return r(e);t({oauth_token:n,oauth_token_secret:o})})});let u=i.getOAuthRequestToken.bind(i);return i.getOAuthRequestToken=async(e={})=>await new Promise((t,r)=>{u(e,(e,n,o,i)=>{if(e)return r(e);t({oauth_token:n,oauth_token_secret:o,params:i})})}),i}t.oAuth1TokenStore=new Map},37234:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openidClient=o;var n=r(82420);async function o(e){let t;let r=e.provider;if(r.httpOptions&&n.custom.setHttpOptionsDefaults(r.httpOptions),r.wellKnown)t=await n.Issuer.discover(r.wellKnown);else{var o,i,a;t=new n.Issuer({issuer:r.issuer,authorization_endpoint:null===(o=r.authorization)||void 0===o?void 0:o.url,token_endpoint:null===(i=r.token)||void 0===i?void 0:i.url,userinfo_endpoint:null===(a=r.userinfo)||void 0===a?void 0:a.url,jwks_uri:r.jwks_endpoint})}let s=new t.Client({client_id:r.clientId,client_secret:r.clientSecret,redirect_uris:[r.callbackUrl],...r.client},r.jwks);return s[n.custom.clock_tolerance]=10,s}},18824:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(4182);function o(e){let{url:t,providerId:r}=e,o=e.providers.map(({options:e,...r})=>{var o,a;if("oauth"===r.type){let o=i(r),s=i(e,!0),u=null!==(a=null==s?void 0:s.id)&&void 0!==a?a:r.id;return(0,n.merge)(o,{...s,signinUrl:`${t}/signin/${u}`,callbackUrl:`${t}/callback/${u}`})}let s=null!==(o=null==e?void 0:e.id)&&void 0!==o?o:r.id;return(0,n.merge)(r,{...e,signinUrl:`${t}/signin/${s}`,callbackUrl:`${t}/callback/${s}`})});return{providers:o,provider:o.find(({id:e})=>e===r)}}function i(e,t=!1){var r,n,o,i,a;if(!e)return;let s=Object.entries(e).reduce((e,[t,r])=>
1{if(["authorization","token","userinfo"].includes(t)&&"string"==typeof r){var n;let o=new URL(r);e[t]={url:`${o.origin}${o.pathname}`,params:Object.fromEntries(null!==(n=o.searchParams)&&void 0!==n?n:[])}}else e[t]=r;return e},{});return t||null!==(r=s.version)&&void 0!==r&&r.startsWith("1.")||(s.idToken=!!(null!==(n=null!==(o=s.idToken)&&void 0!==o?o:null===(i=s.wellKnown)||void 0===i?void 0:i.includes("openid-configuration"))&&void 0!==n?n:null===(a=s.authorization)||void 0===a||null===(a=a.params)||void 0===a||null===(a=a.scope)||void 0===a?void 0:a.includes("openid")),s.checks||(s.checks=["state"])),s}},17742:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSecret=a,t.fromDate=o,t.hashToken=i;var n=r(68989);function o(e,t=Date.now()){return new Date(t+1e3*e)}function i(e,t){var r;let{provider:o,secret:i}=t;return(0,n.createHash)("sha256").update(`${e}${null!==(r=o.secret)&&void 0!==r?r:i}`).digest("hex")}function a(e){var t;let{authOptions:r,url:o}=e;return null!==(t=r.secret)&&void 0!==t?t:(0,n.createHash)("sha256").update(JSON.stringify({...o,...r})).digest("hex")}},24518:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(79080);function o(e){var t;let{url:r,error:o="default",theme:i}=e,a=`${r}/signin`,s={default:{status:200,heading:"Error",message:(0,n.h)("p",null,(0,n.h)("a",{className:"site",href:null==r?void 0:r.origin},null==r?void 0:r.host))},configuration:{status:500,heading:"Server error",message:(0,n.h)("div",null,(0,n.h)("p",null,"There is a problem with the server configuration."),(0,n.h)("p",null,"Check the server logs for more information."))},accessdenied:{status:403,heading:"Access Denied",message:(0,n.h)("div",null,(0,n.h)("p",null,"You do not have permission to sign in."),(0,n.h)("p",null,(0,n.h)("a",{className:"button",href:a}
1,"Sign in")))},verification:{status:403,heading:"Unable to sign in",message:(0,n.h)("div",null,(0,n.h)("p",null,"The sign in link is no longer valid."),(0,n.h)("p",null,"It may have been used already or it may have expired.")),signin:(0,n.h)("a",{className:"button",href:a},"Sign in")}},{status:u,heading:c,message:l,signin:f}=null!==(t=s[o.toLowerCase()])&&void 0!==t?t:s.default;return{status:u,html:(0,n.h)("div",{className:"error"},(null==i?void 0:i.brandColor)&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:` 2 :root { 3 --brand-color: ${null==i?void 0:i.brandColor} 4 } 5 `}}),(0,n.h)("div",{className:"card"},(null==i?void 0:i.logo)&&(0,n.h)("img",{src:i.logo,alt:"Logo",className:"logo"}),(0,n.h)("h1",null,c),(0,n.h)("div",{className:"message"},l),f))}}},30469:function(e,t,r){"use strict";var n=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var o=n(r(66324)),i=n(r(4808)),a=n(r(12030)),s=n(r(81410)),u=n(r(24518)),c=n(r(4122));function l(e){let{url:t,theme:r,query:n,cookies:l}=e;function f({html:e,title:t,status:n}){var i;return{cookies:l,status:n,headers:[{key:"Content-Type",value:"text/html"}],body:`<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><style>${(0,c.default)()}</style><title>${t}</title></head><body class="__next-auth-theme-${null!==(i=null==r?void 0:r.colorScheme)&&void 0!==i?i:"auto"}"><div class="page">${(0,o.default)(e)}</div></body></html>`}}return{signin:t=>f({html:(0,i.default)({csrfToken:e.csrfToken,providers:e.providers,callbackUrl:e.callbackUrl,theme:r,...n,...t}),title:"Sign In"}),signout:n=>f({html:(0,a.default)({csrfToken:e.csrfToken,url:t,theme:r,...n}),title:"Sign Out"}),verifyRequest:e=>f({html:(0,s.default)({url:t,theme:r,...e}),title:"Verify Request"}),error:e=>f({...(0,u.default)({url:t,theme:r,...e}),title:"Error"})}}},4808:function(e,t,r){"use strict";var n=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var o=r(79080),i=n(r(12722));function a(e,t=1){if(!e)return;3===(e=e.replace(/^#/,"")).length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let r=parseInt(e,16),n=r>>16&255,o=r>>8&255,i=255&r;return t=Math.min(Math.max(t,0),1),`rgba(${n}, ${o}, ${i}, ${t})`}function s(e){var t;let{csrfToken:r,providers:n,callbackUrl:s,theme:u,email:c,error:l}=e,f=n.filter(e=>"oauth"===e.type||"email"===e.type||"credentials"===e.type&&!!e.credentials);"undefined"!=typeof document&&u.buttonText&&document.documentElement.style.setProperty("--button-text-color",u.buttonText),"undefined"!=typeof document&&u.brandColor&&document.documentElement.style.setProperty("--brand-color",u.brandColor);let p={Signin:"Try signing in with a different account.",OAuthSignin:"Try signing in with a different account.",OAuthCallback:"Try signing in with a different account.",OAuthCreateAccount:"Try signing in with a different account.",EmailCreateAccount:"Try signing in with a different account.",Callback:"Try signing in with a different account.",OAuthAccountNotLinked:"To confirm your identity, sign in with the same account you used originally.",EmailSignin:"The e-mail could not be sent.",CredentialsSignin:"Sign in failed. Check the details you provided are correct.",SessionRequired:"Please sign in to access this page.",default:"Unable to sign in."},d=l&&(null!==(t=p[l])&&void 0!==t?t:p.default),h="https://authjs.dev/img/providers";return(0,o.h)("div",{className:"signin"},u.brandColor&&(0,o.h)("style",{dangerouslySetInnerHTML:{__html:` 6 :root { 7 --brand-color: ${u.brandColor} 8 } 9 `}}),u.buttonText&&(0,o.h)("style",{dangerouslySetInnerHTML:{__html:` 10 :root { 11 --button-text-color: ${u.buttonText} 12 } 13 `}}),(0,o.h)("div",{className:"card"},u.logo&&(0,o.h)("img",{src:u.logo,alt:"Logo",className:"logo"}),d&&(0,o.h)("div",{className:"error"},(0,o.h)("p",null,d)),f.map((e,t)=>{let n,u,l,p,d,y;if("oauth"===e.type){var g;({bg:n="",text:u="",logo:l="",bgDark:d=n,textDark:y=u,logoDark:p=""}=null!==(g=e.style)&&void 0!==g?g:{}),l=l.startsWith("/")?`${h}${l}`:l,(p=p.startsWith("/")?`${h}${p}`:p||l)||(p=l)}return(0,o.h)("div",{key:e.id,className:"provider"},"oauth"===e.type&&(0,o.h)("form",{action:e.signinUrl,method:"POST"},(0,o.h)("input",{type:"hidden",name:"csrfToken",value:r}),s&&(0,o.h)("input",{type:"hidden",name:"callbackUrl",value:s}),(0,o.h)("button",{type:"submit",className:"button",style:{"--provider-bg":n,"--provider-dark-bg":d,"--provider-color":u,"--provider-dark-color":y,"--provider-bg-hover":a(n,.8),"--provider-dark-bg-hover":a(d,.8)}},l&&(0,o.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo",src:`${l.startsWith("/")?h:""}${l}`}),p&&(0,o.h)("img",{loading:"lazy",height:24,width:24,id:"provider-logo-dark",src:`${l.startsWith("/")?h:""}${p}`}),(0,o.h)("span",null,"Sign in with ",e.name))),("email"===e.type||"credentials"===e.type)&&t>
130&&"email"!==f[t-1].type&&"credentials"!==f[t-1].type&&(0,o.h)("hr",null),"email"===e.type&&(0,o.h)("form",{action:e.signinUrl,method:"POST"},(0,o.h)("input",{type:"hidden",name:"csrfToken",value:r}),(0,o.h)("label",{className:"section-header",htmlFor:`input-email-for-${e.id}-provider`},"Email"),(0,o.h)("input",{id:`input-email-for-${e.id}-provider`,autoFocus:!0,type:"email",name:"email",value:c,placeholder:"[email protected]",required:!0}),(0,o.h)("button",{id:"submitButton",type:"submit"},"Sign in with ",e.name)),"credentials"===e.type&&(0,o.h)("form",{action:e.callbackUrl,method:"POST"},(0,o.h)("input",{type:"hidden",name:"csrfToken",value:r}),Object.keys(e.credentials).map(t=>{var r,n,a;return(0,o.h)("div",{key:`input-group-${e.id}`},(0,o.h)("label",{className:"section-header",htmlFor:`input-${t}-for-${e.id}-provider`},null!==(r=e.credentials[t].label)&&void 0!==r?r:t),(0,o.h)("input",(0,i.default)({name:t,id:`input-${t}-for-${e.id}-provider`,type:null!==(n=e.credentials[t].type)&&void 0!==n?n:"text",placeholder:null!==(a=e.credentials[t].placeholder)&&void 0!==a?a:""},e.credentials[t])))}),(0,o.h)("button",{type:"submit"},"Sign in with ",e.name)),("email"===e.type||"credentials"===e.type)&&t+1<f.length&&(0,o.h)("hr",null))})))}},12030:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(79080);function o(e){let{url:t,csrfToken:r,theme:o}=e;return(0,n.h)("div",{className:"signout"},o.brandColor&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:` 14 :root { 15 --brand-color: ${o.brandColor} 16 } 17 `}}),o.buttonText&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:` 18 :root { 19 --button-text-color: ${o.buttonText} 20 } 21 `}}),(0,n.h)("div",{className:"card"},o.logo&&(0,n.h)("img",{src:o.logo,alt:"Logo",className:"logo"}),(0,n.h)("h1",null,"Signout"),(0,n.h)("p",null,"Are you sure you want to sign out?"),(0,n.h)("form",{action:`${t}/signout`,method:"POST"},(0,n.h)("input",{type:"hidden",name:"csrfToken",value:r}),(0,n.h)("button",{id:"submitButton",type:"submit"},"Sign out"))))}},81410:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(79080);function o(e){let{url:t,theme:r}=e;return(0,n.h)("div",{className:"verify-request"},r.brandColor&&(0,n.h)("style",{dangerouslySetInnerHTML:{__html:` 22 :root { 23 --brand-color: ${r.brandColor} 24 } 25 `}}),(0,n.h)("div",{className:"card"},r.logo&&(0,n.h)("img",{src:r.logo,alt:"Logo",className:"logo"}),(0,n.h)("h1",null,"Check your email"),(0,n.h)("p",null,"A sign in link has been sent to your email address."),(0,n.h)("p",null,(0,n.h)("a",{className:"site",href:t.origin},t.host))))}},33435:function(e,t,r){"use strict";var n=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var o=n(r(83679)),i=n(r(76743)),a=r(17742),s=n(r(90948));async function u(e){var t,r,n,u,c,l;let{options:f,query:p,body:d,method:h,headers:y,sessionStore:g}=e,{provider:m,adapter:b,url:v,callbackUrl:w,pages:_,jwt:S,events:E,callbacks:A,session:{strategy:k,maxAge:O},logger:P}=f,x=[],T="jwt"===k;if("oauth"===m.type)try{let{profile:n,account:a,OAuthProfile:s,cookies:u}=await (0,o.default)({query:p,body:d,method:h,options:f,cookies:e.cookies});u.length&&x.push(...u);try{if(P.debug("OAUTH_CALLBACK_RESPONSE",{profile:n,account:a,OAuthProfile:s}),!n||!a||!s)return{redirect:`${v}/signin`,cookies:x};let e=n;if(b){let{getUserByAccount:t}=b,r=await t({providerAccountId:a.providerAccountId,provider:m.id});r&&(e=r)}try{let t=await A.signIn({user:e,account:a,profile:s});if(!t)return{redirect:`${v}/error?error=AccessDenied`,cookies:x};if("string"==typeof t)return{redirect:t,cookies:x}}catch(e){return{redirect:`${v}/error?error=${encodeURIComponent(e.message)}`,cookies:x}}let{user:o,session:u,isNewUser:c}=await (0,i.default)({sessionToken:g.value,profile:n,account:a,options:f});if(T){let e={name:o.name,email:o.email,picture:o.image,sub:null===(r=o.id)||void 0===r?void 0:r.toString()},t=await A.jwt({token:e,user:o,account:a,profile:s,isNewUser:c,trigger:c?"signUp":"signIn"}),n=await S.encode({...S,token:t}),i=new Date;i.setTime(i.getTime()+1e3*O);let u=g.chunk(n,{expires:i});x.push(...u)}else x.push({name:f.cookies.sessionToken.name,value:u.sessionToken,options:{...f.cookies.sessionToken.options,expires:u.expires}});if(await (null===(t=E.signIn)||void 0===t?void 0:t.call(E,{user:o,account:a,profile:n,isNewUser:c})),c&&_.newUser)return{redirect:`${_.newUser}${_.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(w)}`,cookies:x};return{redirect:w,cookies:x}}catch(e){if("AccountNotLinkedError"===e.name)return{redirect:`${v}
25/error?error=OAuthAccountNotLinked`,cookies:x};if("CreateUserError"===e.name)return{redirect:`${v}/error?error=OAuthCreateAccount`,cookies:x};return P.error("OAUTH_CALLBACK_HANDLER_ERROR",e),{redirect:`${v}/error?error=Callback`,cookies:x}}}catch(e){if("OAuthCallbackError"===e.name)return P.error("OAUTH_CALLBACK_ERROR",{error:e,providerId:m.id}),{redirect:`${v}/error?error=OAuthCallback`,cookies:x};return P.error("OAUTH_CALLBACK_ERROR",e),{redirect:`${v}/error?error=Callback`,cookies:x}}else if("email"===m.type)try{let e=null==p?void 0:p.token,t=null==p?void 0:p.email;if(!e)return{redirect:`${v}/error?error=configuration`,cookies:x};let r=await b.useVerificationToken({identifier:t,token:(0,a.hashToken)(e,f)});if(!r||r.expires.valueOf()<Date.now()||t&&r.identifier!==t)return{redirect:`${v}/error?error=Verification`,cookies:x};let o=await (0,s.default)({email:r.identifier,adapter:b}),c={providerAccountId:o.email,type:"email",provider:m.id};try{let e=await A.signIn({user:o,account:c});if(!e)return{redirect:`${v}/error?error=AccessDenied`,cookies:x};if("string"==typeof e)return{redirect:e,cookies:x}}catch(e){return{redirect:`${v}/error?error=${encodeURIComponent(e.message)}`,cookies:x}}let{user:l,session:d,isNewUser:h}=await (0,i.default)({sessionToken:g.value,profile:o,account:c,options:f});if(T){let e={name:l.name,email:l.email,picture:l.image,sub:null===(u=l.id)||void 0===u?void 0:u.toString()},t=await A.jwt({token:e,user:l,account:c,isNewUser:h,trigger:h?"signUp":"signIn"}),r=await S.encode({...S,token:t}),n=new Date;n.setTime(n.getTime()+1e3*O);let o=g.chunk(r,{expires:n});x.push(...o)}else x.push({name:f.cookies.sessionToken.name,value:d.sessionToken,options:{...f.cookies.sessionToken.options,expires:d.expires}});if(await (null===(n=E.signIn)||void 0===n?void 0:n.call(E,{user:l,account:c,isNewUser:h})),h&&_.newUser)return{redirect:`${_.newUser}${_.newUser.includes("?")?"&":"?"}callbackUrl=${encodeURIComponent(w)}`,cookies:x};return{redirect:w,cookies:x}}catch(e){if("CreateUserError"===e.name)return{redirect:`${v}/error?error=EmailCreateAccount`,cookies:x};return P.error("CALLBACK_EMAIL_ERROR",e),{redirect:`${v}/error?error=Callback`,cookies:x}}else if("credentials"===m.type&&"POST"===h){let e;let t=d;try{if(!(e=await m.authorize(t,{query:p,body:d,headers:y,method:h})))return{status:401,redirect:`${v}/error?${new URLSearchParams({error:"CredentialsSignin",provider:m.id})}`,cookies:x}}catch(e){return{status:401,redirect:`${v}/error?error=${encodeURIComponent(e.message)}`,cookies:x}}let r={providerAccountId:e.id,type:"credentials",provider:m.id};try{let n=await A.signIn({user:e,account:r,credentials:t});if(!n)return{status:403,redirect:`${v}/error?error=AccessDenied`,cookies:x};if("string"==typeof n)return{redirect:n,cookies:x}}catch(e){return{redirect:`${v}/error?error=${encodeURIComponent(e.message)}`,cookies:x}}let n={name:e.name,email:e.email,picture:e.image,sub:null===(c=e.id)||void 0===c?void 0:c.toString()},o=await A.jwt({token:n,user:e,account:r,isNewUser:!1,trigger:"signIn"}),i=await S.encode({...S,token:o}),a=new Date;a.setTime(a.getTime()+1e3*O);let s=g.chunk(i,{expires:a});return x.push(...s),await (null===(l=E.signIn)||void 0===l?void 0:l.call(E,{user:e,account:r})),{redirect:w,cookies:x}}return{status:500,body:`Error: Callback for provider type ${m.type} not supported`,cookies:x}}},2155:function(e,t,r){"use strict";var n=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callback",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"providers",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"session",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"signin",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"signout",{enumerable:!0,get:function(){return a.default}});var o=n(r(33435)),i=n(r(66667)),a=n(r(85924)),s=n(r(37228)),u=n(r(97485))},97485:function(e,t){"use strict";function r(e){return{headers:[{key:"Content-Type",value:"application/json"}],body:e.reduce((e,{id:t,name:r,type:n,signinUrl:o,callbackUrl:i})=>(e[t]={id:t,name:r,type:n,signinUrl:o,callbackUrl:i},e),{})}}
25Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},37228:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(17742);async function o(e){var t,r,o,i,a,s;let{options:u,sessionStore:c,newSession:l,isUpdate:f}=e,{adapter:p,jwt:d,events:h,callbacks:y,logger:g,session:{strategy:m,maxAge:b}}=u,v={body:{},headers:[{key:"Content-Type",value:"application/json"},...f?[]:[{key:"Cache-Control",value:"private, no-cache, no-store"},{key:"Pragma",value:"no-cache"},{key:"Expires",value:"0"}]].filter(Boolean),cookies:[]},w=c.value;if(!w)return v;if("jwt"===m)try{let e=await d.decode({...d,token:w});if(!e)throw Error("JWT invalid");let o=await y.jwt({token:e,...f&&{trigger:"update"},session:l}),i=(0,n.fromDate)(b),a=await y.session({session:{user:{name:null==e?void 0:e.name,email:null==e?void 0:e.email,image:null==e?void 0:e.picture},expires:i.toISOString()},token:o});v.body=a;let s=await d.encode({...d,token:o,maxAge:u.session.maxAge}),p=c.chunk(s,{expires:i});null===(t=v.cookies)||void 0===t||t.push(...p),await (null===(r=h.session)||void 0===r?void 0:r.call(h,{session:a,token:o}))}catch(e){g.error("JWT_SESSION_ERROR",e),null===(o=v.cookies)||void 0===o||o.push(...c.clean())}else try{let{getSessionAndUser:e,deleteSession:t,updateSession:r}=p,o=await e(w);if(o&&o.session.expires.valueOf()<Date.now()&&(await t(w),o=null),o){let{user:e,session:t}=o,s=u.session.updateAge,c=t.expires.valueOf()-1e3*b+1e3*s,p=(0,n.fromDate)(b);c<=Date.now()&&await r({sessionToken:w,expires:p});let d=await y.session({session:{user:{name:e.name,email:e.email,image:e.image},expires:t.expires.toISOString()},user:e,newSession:l,...f?{trigger:"update"}:{}});v.body=d,null===(i=v.cookies)||void 0===i||i.push({name:u.cookies.sessionToken.name,value:w,options:{...u.cookies.sessionToken.options,expires:p}}),await (null===(a=h.session)||void 0===a?void 0:a.call(h,{session:d}))}else w&&(null===(s=v.cookies)||void 0===s||s.push(...c.clean()))}catch(e){g.error("SESSION_ERROR",e)}return v}},66667:function(e,t,r){"use strict";var n=r(9973);Object.defineProperty(t,"__esModule",{value:!0}),t.default=s;var o=n(r(85315)),i=n(r(90433)),a=n(r(90948));async function s(e){let{options:t,query:r,body:n}=e,{url:s,callbacks:u,logger:c,provider:l}=t;if(!l.type)return{status:500,text:`Error: Type not specified for ${l.name}`};if("oauth"===l.type)try{return await (0,o.default)({options:t,query:r})}catch(e){return c.error("SIGNIN_OAUTH_ERROR",{error:e,providerId:l.id}),{redirect:`${s}/error?error=OAuthSignin`}}else if("email"===l.type){var f;let e=null==n?void 0:n.email;if(!e)return{redirect:`${s}/error?error=EmailSignin`};let r=null!==(f=l.normalizeIdentifier)&&void 0!==f?f:e=>{var t;let r=e.trim();if(1!==(null!==(t=r.match(/@/g))&&void 0!==t?t:[]).length||r.includes('"'))throw Error("Invalid email address format.");let[n,o]=r.toLowerCase().split("@");if(!n||!o||!(o=o.split(",")[0]).includes("."))throw Error("Invalid email address format.");return`${n}@${o}`};try{e=r(null==n?void 0:n.email)}catch(e){return c.error("SIGNIN_EMAIL_ERROR",{error:e,providerId:l.id}),{redirect:`${s}/error?error=EmailSignin`}}let o=await (0,a.default)({email:e,adapter:t.adapter}),p={providerAccountId:e,userId:e,type:"email",provider:l.id};try{let e=await u.signIn({user:o,account:p,email:{verificationRequest:!0}});if(!e)return{redirect:`${s}/error?error=AccessDenied`};if("string"==typeof e)return{redirect:e}}catch(e){return{redirect:`${s}/error?${new URLSearchParams({error:e})}`}}try{return{redirect:await (0,i.default)(e,t)}}catch(e){return c.error("SIGNIN_EMAIL_ERROR",{error:e,providerId:l.id}),{redirect:`${s}/error?error=EmailSignin`}}}return{redirect:`${s}/signin`}}},85924:function(e,t){"use strict";async function r(e){var t,r;let{options:n,sessionStore:o}=e,{adapter:i,events:a,jwt:s,callbackUrl:u,logger:c,session:l}=n,f=null==o?void 0:o.value;if(!f)return{redirect:u};if("jwt"===l.strategy)try{let e=await s.decode({...s,token:f});await (null===(t=a.signOut)||void 0===t?void 0:t.call(a,{token:e}))}catch(e){c.error("SIGNOUT_ERROR",e)}else try{let e=await i.deleteSession(f);await (null===(r=a.signOut)||void 0===r?void 0:r.call(a,{session:e}))}catch(e){c.error("SIGNOUT_ERROR",e)}return{redirect:u,cookies:o.clean()}}
25Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},61575:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4122:function(e){e.exports=function(){return':root{--border-width:1px;--border-radius:0.5rem;--color-error:#c94b4b;--color-info:#157efb;--color-info-hover:#0f6ddb;--color-info-text:#fff}.__next-auth-theme-auto,.__next-auth-theme-light{--color-background:#ececec;--color-background-hover:hsla(0,0%,93%,.8);--color-background-card:#fff;--color-text:#000;--color-primary:#444;--color-control-border:#bbb;--color-button-active-background:#f9f9f9;--color-button-active-border:#aaa;--color-separator:#ccc}.__next-auth-theme-dark{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}@media (prefers-color-scheme:dark){.__next-auth-theme-auto{--color-background:#161b22;--color-background-hover:rgba(22,27,34,.8);--color-background-card:#0d1117;--color-text:#fff;--color-primary:#ccc;--color-control-border:#555;--color-button-active-background:#060606;--color-button-active-border:#666;--color-separator:#444}a.button,button{background-color:var(--provider-dark-bg,var(--color-background));color:var(--provider-dark-color,var(--color-primary))}a.button:hover,button:hover{background-color:var(--provider-dark-bg-hover,var(--color-background-hover))!important}#provider-logo{display:none!important}#provider-logo-dark{display:block!important;width:25px}}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit;margin:0;padding:0}body{background-color:var(--color-background);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;margin:0;padding:0}h1{font-weight:400}h1,p{color:var(--color-text);margin-bottom:1.5rem;padding:0 1rem}form{margin:0;padding:0}label{font-weight:500;margin-bottom:.25rem;text-align:left}input[type],label{color:var(--color-text);display:block}input[type]{background:var(--color-background-card);border:var(--border-width) solid var(--color-control-border);border-radius:var(--border-radius);box-sizing:border-box;font-size:1rem;padding:.5rem 1rem;width:100%}input[type]:focus{box-shadow:none}p{font-size:1.1rem;line-height:2rem}a.button{line-height:1rem;text-decoration:none}a.button:link,a.button:visited{background-color:var(--color-background);color:var(--color-primary)}button span{flex-grow:1}a.button,button{align-items:center;background-color:var(--provider-bg);border-color:rgba(0,0,0,.1);border-radius:var(--border-radius);color:var(--provider-color,var(--color-primary));display:flex;font-size:1.1rem;font-weight:500;justify-content:center;min-height:62px;padding:.75rem 1rem;position:relative;transition:all .1s ease-in-out}a.button:hover,button:hover{background-color:var(--provider-bg-hover,var(--color-background-hover));cursor:pointer}a.button:active,button:active{cursor:pointer}a.button #provider-logo,button #provider-logo{display:block;width:25px}a.button #provider-logo-dark,button #provider-logo-dark{display:none}#submitButton{background-color:var(--brand-color,var(--color-info));color:var(--button-text-color,var(--color-info-text));width:100%}#submitButton:hover{background-color:var(--button-hover-bg,var(--color-info-hover))!important}a.site{color:var(--color-primary);font-size:1rem;line-height:2rem;text-decoration:none}a.site:hover{text-decoration:underline}.page{box-sizing:border-box;display:grid;height:100%;margin:0;padding:0;place-items:center;position:absolute;width:100%}.page>div{text-align:center}.error a.button{margin-top:.5rem;padding-left:2rem;padding-right:2rem}.error .message{margin-bottom:1.5rem}.signin input[type=text]{display:block;margin-left:auto;margin-right:auto}.signin hr{border:0;border-top:1px solid var(--color-separator);display:block;margin:2rem auto 1rem;overflow:visible}.signin hr:before{background:var(--color-background-card);color:#888;content:"or";padding:0 .4rem;position:relative;top:-.7rem}.signin .error{background:#f5f5f5;background:var(--color-error);border-radius:.3rem;font-weight:500}.signin .error p{color:var(--color-info-text);font-size:.9rem;line-height:1.2rem;padding:.5rem 1rem;text-align:left}.signin form,.signin>div{display:block}.signin form input[type],.signin>div input[type]{margin-bottom:.5rem}.signin form button,.signin>div button{width:100%}.signin .provider+.provider{margin-top:1rem}.logo{display:inline-block;margin:1.25rem 0;max-height:70px;max-width:150px}.card{background-color:var(--color-background-card);border-radius:2rem;padding:1.25rem 2rem}.card .header{color:var(--color-primary)}.section-header{color:var(--color-text)}@media screen and (min-width:450px){.card{margin:2rem 0;width:368px}}@media screen and (max-width:450px){.card{margin:1rem 0;width:343px}}'}},29567:function(e,t,r){"use strict";
25Object.defineProperty(t,"__esModule",{value:!0});var n={};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var o=r(61575);Object.keys(o).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var i=s(r(37081));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&({}).hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}Object.keys(i).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e))&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))})},71030:function(e,t,r){"use strict";var n=r(40257),o=r(9973);Object.defineProperty(t,"__esModule",{value:!0});var i={encode:!0,decode:!0,getToken:!0};t.decode=h,t.encode=d,t.getToken=y;var a=r(86413),s=o(r(39253)),u=r(24536),c=r(99274),l=r(45398);Object.keys(l).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(i,e))&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});let f=2592e3,p=()=>Date.now()/1e3|0;async function d(e){let{token:t={},secret:r,maxAge:n=f,salt:o=""}=e,i=await g(r,o);return await new a.EncryptJWT(t).setProtectedHeader({alg:"dir",enc:"A256GCM"}).setIssuedAt().setExpirationTime(p()+n).setJti((0,u.v4)()).encrypt(i)}async function h(e){let{token:t,secret:r,salt:n=""}=e;if(!t)return null;let o=await g(r,n),{payload:i}=await (0,a.jwtDecrypt)(t,o,{clockTolerance:15});return i}async function y(e){var t,r,o,i;let{req:a,secureCookie:s=null!==(t=null===(r=n.env.NEXTAUTH_URL)||void 0===r?void 0:r.startsWith("https://"))&&void 0!==t?t:!!n.env.VERCEL,cookieName:u=s?"__Secure-next-auth.session-token":"next-auth.session-token",raw:l,decode:f=h,logger:p=console,secret:d=null!==(o=n.env.NEXTAUTH_SECRET)&&void 0!==o?o:n.env.AUTH_SECRET}=e;if(!a)throw Error("Must pass `req` to JWT getToken()");let y=new c.SessionStore({name:u,options:{secure:s}},{cookies:a.cookies,headers:a.headers},p).value,g=a.headers instanceof Headers?a.headers.get("authorization"):null===(i=a.headers)||void 0===i?void 0:i.authorization;if(y||(null==g?void 0:g.split(" ")[0])!=="Bearer"||(y=decodeURIComponent(g.split(" ")[1])),!y)return null;if(l)return y;try{return await f({token:y,secret:d})}catch(e){return null}}async function g(e,t){return await (0,s.default)("sha256",e,t,`NextAuth.js Generated Encryption Key${t?` (${t})`:""}`,32)}},45398:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},37081:function(e,t,r){"use strict";var n=r(40257);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getServerSession=c,t.unstable_getServerSession=l;var o=r(76310),i=r(86552);async function a(e,t,r){var a,s,u,c,l,f,p,d,h;let{nextauth:y,...g}=e.query;null!==(a=r.secret)&&void 0!==a||(r.secret=null!==(s=null!==(u=null===(c=r.jwt)||void 0===c?void 0:c.secret)&&void 0!==u?u:n.env.NEXTAUTH_SECRET)&&void 0!==s?s:n.env.AUTH_SECRET);let m=await (0,o.AuthHandler)({req:{body:e.body,query:g,cookies:e.cookies,headers:e.headers,method:e.method,action:null==y?void 0:y[0],providerId:null==y?void 0:y[1],error:null!==(l=e.query.error)&&void 0!==l?l:null==y?void 0:y[1]},options:r});if(t.status(null!==(f=m.status)&&void 0!==f?f:200),null===(p=m.cookies)||void 0===p||p.forEach(e=>(0,i.setCookie)(t,e)),null===(d=m.headers)||void 0===d||d.forEach(e=>t.setHeader(e.key,e.value)),m.redirect){if((null===(h=e.body)||void 0===h?void 0:h.json)!=="true"){t.status(302).setHeader("Location",m.redirect),t.end();return}return t.json({url:m.redirect})}return t.send(m.body)}async function s(e,t,a){var s,u,c,l;null!==(s=a.secret)&&void 0!==s||(a.secret=null!==(u=n.env.NEXTAUTH_SECRET)&&void 0!==u?u:n.env.AUTH_SECRET);let{headers:f,cookies:p}=r(35854),d=null===(c=await t.params)||void 0===c?void 0:c.nextauth,h=Object.fromEntries(e.nextUrl.searchParams),y=await (0,i.getBody)(e),g=await (0,o.AuthHandler)({req:{body:y,query:h,c
25ookies:Object.fromEntries((await p()).getAll().map(e=>[e.name,e.value])),headers:Object.fromEntries(await f()),method:e.method,action:null==d?void 0:d[0],providerId:null==d?void 0:d[1],error:null!==(l=h.error)&&void 0!==l?l:null==d?void 0:d[1]},options:a}),m=(0,i.toResponse)(g),b=m.headers.get("Location");return(null==y?void 0:y.json)==="true"&&b?(m.headers.delete("Location"),m.headers.set("Content-Type","application/json"),new Response(JSON.stringify({url:b}),{status:g.status,headers:m.headers})):m}function u(...e){var t;return 1===e.length?async(t,r)=>null!=r&&r.params?await s(t,r,e[0]):await a(t,r,e[0]):null!==(t=e[1])&&void 0!==t&&t.params?s(...e):a(...e)}async function c(...e){var t,a,s;let u,l,f;let p=0===e.length||1===e.length;if(p){f=Object.assign({},e[0],{providers:[]});let{headers:t,cookies:n}=r(35854);u={headers:Object.fromEntries(await t()),cookies:Object.fromEntries((await n()).getAll().map(e=>[e.name,e.value]))},l={getHeader(){},setCookie(){},setHeader(){}}}else u=e[0],l=e[1],f=Object.assign({},e[2],{providers:[]});null!==(a=(t=f).secret)&&void 0!==a||(t.secret=null!==(s=n.env.NEXTAUTH_SECRET)&&void 0!==s?s:n.env.AUTH_SECRET);let{body:d,cookies:h,status:y=200}=await (0,o.AuthHandler)({options:f,req:{action:"session",method:"GET",cookies:u.cookies,headers:u.headers}});if(null==h||h.forEach(e=>(0,i.setCookie)(l,e)),d&&"string"!=typeof d&&Object.keys(d).length){if(200===y)return p&&delete d.expires,d;throw Error(d.message)}return null}async function l(...e){return await c(...e)}t.default=u},86552:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBody=i,t.setCookie=o,t.toResponse=a;var n=r(90469);function o(e,t){var r;let o=null!==(r=e.getHeader("Set-Cookie"))&&void 0!==r?r:[];Array.isArray(o)||(o=[o]);let{name:i,value:a,options:s}=t,u=(0,n.serialize)(i,a,s);o.push(u),e.setHeader("Set-Cookie",o)}async function i(e){if(!("body"in e)||!e.body||"POST"!==e.method)return;let t=e.headers.get("content-type");return null!=t&&t.includes("application/json")?await e.json():null!=t&&t.includes("application/x-www-form-urlencoded")?Object.fromEntries(new URLSearchParams(await e.text())):void 0}function a(e){var t,r,o;let i=new Headers(null===(t=e.headers)||void 0===t?void 0:t.reduce((e,{key:t,value:r})=>(e[t]=r,e),{}));null===(r=e.cookies)||void 0===r||r.forEach(e=>{let{name:t,value:r,options:o}=e,a=(0,n.serialize)(t,r,o);i.has("Set-Cookie")?i.append("Set-Cookie",a):i.set("Set-Cookie",a)});let a=e.body;"application/json"===i.get("content-type")?a=JSON.stringify(e.body):"application/x-www-form-urlencoded"===i.get("content-type")&&(a=new URLSearchParams(e.body).toString());let s=new Response(a,{headers:i,status:e.redirect?302:null!==(o=e.status)&&void 0!==o?o:200});return e.redirect&&s.headers.set("Location",e.redirect),s}},6004:function(e,t){"use strict";var r;function n(e){return{id:"credentials",name:"Credentials",type:"credentials",credentials:{},authorize:()=>null,options:e}}r={value:!0},t.Z=n},95023:function(e,t){"use strict";var r;function n(e){return{id:"google",name:"Google",type:"oauth",wellKnown:"https://accounts.google.com/.well-known/openid-configuration",authorization:{params:{scope:"openid email profile"}},idToken:!0,checks:["pkce","state"],profile:e=>({id:e.sub,name:e.name,email:e.email,image:e.picture}),style:{logo:"/google.svg",bg:"#fff",text:"#000"},options:e}}r={value:!0},t.Z=n},84084:function(e,t,r){"use strict";var n=r(40257);function o(e,t){var r;return(null!==(r=n.env.VERCEL)&&void 0!==r?r:n.env.AUTH_TRUST_HOST)?`${"http"===t?"http":"https"}://${e}`:n.env.NEXTAUTH_URL}Object.defineProperty(t,"__esModule",{value:!0}),t.detectOrigin=o},4182:function(e,t){"use strict";function r(e){return e&&"object"==typeof e&&!Array.isArray(e)}function n(e,...t){if(!t.length)return e;let o=t.shift();if(r(e)&&r(o))for(let t in o)r(o[t])?(e[t]||Object.assign(e,{[t]:{}}),n(e[t],o[t])):Object.assign(e,{[t]:o[t]});return n(e,...t)}Object.defineProperty(t,"__esModule",{value:!0}),t.merge=n},35854:function(e,t,r){"use strict";r.r(t);var n=r(72439),o={};for(var i in n)"default"!==i&&(o[i]=(function(e){return n[e]}).bind(0,i));r.d(t,o)},51057:function(e,t,r){"use strict";
25Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraftMode",{enumerable:!0,get:function(){return i}});let n=r(51845),o=r(86999);class i{get isEnabled(){return this._provider.isEnabled}enable(){let e=n.staticGenerationAsyncStorage.getStore();return e&&(0,o.trackDynamicDataAccessed)(e,"draftMode().enable()"),this._provider.enable()}disable(){let e=n.staticGenerationAsyncStorage.getStore();return e&&(0,o.trackDynamicDataAccessed)(e,"draftMode().disable()"),this._provider.disable()}constructor(e){this._provider=e}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72439:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{cookies:function(){return p},draftMode:function(){return d},headers:function(){return f}});let n=r(40692),o=r(22637),i=r(99767),a=r(90295),s=r(51057),u=r(86999),c=r(51845),l=r(20544);function f(){let e="headers",t=c.staticGenerationAsyncStorage.getStore();if(t){if(t.forceStatic)return o.HeadersAdapter.seal(new Headers({}));(0,u.trackDynamicDataAccessed)(t,e)}return(0,l.getExpectedRequestStore)(e).headers}function p(){let e="cookies",t=c.staticGenerationAsyncStorage.getStore();if(t){if(t.forceStatic)return n.RequestCookiesAdapter.seal(new i.RequestCookies(new Headers({})));(0,u.trackDynamicDataAccessed)(t,e)}let r=(0,l.getExpectedRequestStore)(e),o=a.actionAsyncStorage.getStore();return(null==o?void 0:o.isAction)||(null==o?void 0:o.isAppRoute)?r.mutableCookies:r.cookies}function d(){let e="draftMode",t=(0,l.getExpectedRequestStore)(e);return new s.DraftMode(t.draftMode)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},82408:function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i=(e,i,a,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let u of n(i))o.call(e,u)||u===a||t(e,u,{get:()=>i[u],enumerable:!(s=r(i,u))||s.enumerable});return e},a=e=>i(t({},"__esModule",{value:!0}),e),s={};function u(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),n=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?n:`${n}; ${r.join("; ")}`}function c(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[n,o]=[r.slice(0,e),r.slice(e+1)];try{t.set(n,decodeURIComponent(null!=o?o:"true"))}catch{}}return t}function l(e){if(!e)return;let[[t,r],...n]=c(e),{domain:o,expires:i,httponly:a,maxage:s,path:u,samesite:l,secure:p,partitioned:h,priority:g}=Object.fromEntries(n.map(([e,t])=>[e.toLowerCase(),t]));return f({name:t,value:decodeURIComponent(r),domain:o,...i&&{expires:new Date(i)},...a&&{httpOnly:!0},..."string"==typeof s&&{maxAge:Number(s)},path:u,...l&&{sameSite:d(l)},...p&&{secure:!0},...g&&{priority:y(g)},...h&&{partitioned:!0}})}function f(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}((e,r)=>{for(var n in r)t(e,n,{get:r[n],enumerable:!0})})(s,{RequestCookies:()=>m,ResponseCookies:()=>b,parseCookie:()=>c,parseSetCookie:()=>l,stringifyCookie:()=>u}),e.exports=a(s);var p=["strict","lax","none"];function d(e){return e=e.toLowerCase(),p.includes(e)?e:void 0}var h=["low","medium","high"];function y(e){return e=e.toLowerCase(),h.includes(e)?e:void 0}function g(e){if(!e)return[];var t,r,n,o,i,a=[],s=0;function u(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}function c(){return"="!==(r=e.charAt(s))&&";"!==r&&","!==r}for(;s<e.length;){for(t=s,i=!1;u();)if(","===(r=e.charAt(s))){for(n=s,s+=1,u(),o=s;
25s<e.length&&c();)s+=1;s<e.length&&"="===e.charAt(s)?(i=!0,s=o,a.push(e.substring(t,n)),t=s):s=n+1}else s+=1;(!i||s>=e.length)&&a.push(e.substring(t,e.length))}return a}var m=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of c(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===n).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,n=this._parsed;return n.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(n).map(([e,t])=>u(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>u(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},b=class{constructor(e){var t,r,n;this._parsed=new Map,this._headers=e;let o=null!=(n=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?n:[];for(let e of Array.isArray(o)?o:g(o)){let t=l(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let n="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===n)}has(e){return this._parsed.has(e)}set(...e){let[t,r,n]=1===e.length?[e[0].name,e[0].value,e[0]]:e,o=this._parsed;return o.set(t,w({name:t,value:r,...n})),v(o,this._headers),this}delete(...e){let[t,r,n]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:n,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(u).join("; ")}};function v(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=u(r);t.append("set-cookie",e)}}function w(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}},4784:function(e,t,r){var n="/",o=r(40257),i=r(82957).Buffer;!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var o=[],i=0;i<e.length;i++)if(t.call(e,i)){var a=e[i];r.call(n,a,i,e)&&o.push(a)}return o};var t=Object.prototype.hasOwnProperty},167:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var a,s,u=r(23).codes,c=u.ERR_AMBIGUOUS_ARGUMENT,l=u.ERR_INVALID_ARG_TYPE,f=u.ERR_INVALID_ARG_VALUE,p=u.ERR_INVALID_RETURN_VALUE,d=u.ERR_MISSING_ARGS,h=r(545),y=r(177).inspect,g=r(177).types,m=g.isPromise,b=g.isRegExp,v=Object.assign?Object.assign:r(604).assign,w=Object.is?Object.is:r(208);function _(){var e=r(176);a=e.isDeepEqual,s=e.isDeepStrictEqual}var S=!1,E=e.exports=x,A={};function k(e){if(e.message instanceof Error)throw e.message;throw new h(e)}function O(e,t,r,n,i){var a,s=arguments.length;if(0===s?a="Failed":1===s?(r=e,e=void 0):(!1===S&&(S=!0,(o.emitWarning?o.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===s&&(n="!=")),r instanceof Error)throw r;var u={actual:e,expected:t,operator:void 0===n?"fail":n,stackStartFn:i||O};void 0!==r&&(u.message=r);var c=new h(u);throw a&&(c.message=a,c.generatedMessage=!0),c}function P(e,t,r,n){if(!r){var o=!1;if(0===t)o=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var i=new h({actual:r,expected:!0,message:n,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function x(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];P.apply(void 0,[x,t.length].concat(t))}function T(e,t,r){if(arguments.length<2)throw new d("actual","expected");void 0===a&&_(),s(e,t)&&k({actual:e,expected:t,message:r,operator:"notDeepStrictEqual",stackStartFn:T})}E.fail=O,E.AssertionError=h,E.ok=x,E.equal=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t!=r&&k({actual:t,expected:r,message:n,operator:"==",stackStartFn:e})},E.notEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");t==r&&k({actual:t,expected:r,message:n,operator:"!=",stackStartFn:e})},E.deepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===a&&_(),a(t,r)||k({actual:t,expected:r,message:n,operator:"deepEqual",stackStartFn:e})},E.notDeepEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===a&&_(),a(t,r)&&k({actual:t,expected:r,message:n,operator:"notDeepEqual",stackStartFn:e})},E.deepStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");void 0===a&&_(),s(t,r)||k({actual:t,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:e})},E.notDeepStrictEqual=T,E.strictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");w(t,r)||k({actual:t,expected:r,message:n,operator:"strictEqual",stackStartFn:e})},E.notStrictEqual=function e(t,r,n){if(arguments.length<2)throw new d("actual","expected");
vendor: 4,130 bytes, line 25
25w(t,r)&&k({actual:t,expected:r,message:n,operator:"notStrictEqual",stackStartFn:e})};var R=function e(t,r,n){var o=this;i(this,e),r.forEach(function(e){e in t&&(void 0!==n&&"string"==typeof n[e]&&b(t[e])&&t[e].test(n[e])?o[e]=n[e]:o[e]=t[e])})};function j(e,t,r,n,o,i){if(!(r in e)||!s(e[r],t[r])){if(!n){var a=new h({actual:new R(e,o),expected:new R(t,o,e),operator:"deepStrictEqual",stackStartFn:i});throw a.actual=e,a.expected=t,a.operator=i.name,a}k({actual:e,expected:t,message:n,operator:i.name,stackStartFn:i})}}function C(e,t,r,o){if("function"!=typeof t){if(b(t))return t.test(e);if(2==arguments.length)throw new l("expected",["Function","RegExp"],t);if("object"!==n(e)||null===e){var i=new h({actual:e,expected:t,message:r,operator:"deepStrictEqual",stackStartFn:o});throw i.operator=o.name,i}var s=Object.keys(t);if(t instanceof Error)s.push("name","message");else if(0===s.length)throw new f("error",t,"may not be an empty object");return void 0===a&&_(),s.forEach(function(n){"string"==typeof e[n]&&b(t[n])&&t[n].test(e[n])||j(e,t,n,r,s,o)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function I(e){if("function"!=typeof e)throw new l("fn","Function",e);try{e()}catch(e){return e}return A}function U(e){return m(e)||null!==e&&"object"===n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function M(e){return Promise.resolve().then(function(){var t;if("function"==typeof e){if(!U(t=e()))throw new p("instance of Promise","promiseFn",t)}else if(U(e))t=e;else throw new l("promiseFn",["Function","Promise"],e);return Promise.resolve().then(function(){return t}).then(function(){return A}).catch(function(e){return e})})}function N(e,t,r,o){if("string"==typeof r){if(4==arguments.length)throw new l("error",["Object","Error","Function","RegExp"],r);if("object"===n(t)&&null!==t){if(t.message===r)throw new c("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===r)throw new c("error/message",'The error "'.concat(t,'" is identical to the message.'));o=r,r=void 0}else if(null!=r&&"object"!==n(r)&&"function"!=typeof r)throw new l("error",["Object","Error","Function","RegExp"],r);if(t===A){var i="";r&&r.name&&(i+=" (".concat(r.name,")")),i+=o?": ".concat(o):".";var a="rejects"===e.name?"rejection":"exception";k({actual:void 0,expected:r,operator:e.name,message:"Missing expected ".concat(a).concat(i),stackStartFn:e})}if(r&&!C(t,r,o,e))throw t}function D(e,t,r,n){if(t!==A){if("string"==typeof r&&(n=r,r=void 0),!r||C(t,r)){var o=n?": ".concat(n):".",i="doesNotReject"===e.name?"rejection":"exception";k({actual:t,expected:r,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function H(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];P.apply(void 0,[H,t.length].concat(t))}E.throws=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];N.apply(void 0,[e,I(t)].concat(n))},E.rejects=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return M(t).then(function(t){return N.apply(void 0,[e,t].concat(n))})},E.doesNotThrow=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];D.apply(void 0,[e,I(t)].concat(n))},E.doesNotReject=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return M(t).then(function(t){return D.apply(void 0,[e,t].concat(n))})},E.ifError=function e(t){if(null!=t){var r="ifError got unwanted exception: ";"object"===n(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?r+=t.constructor.name:r+=t.message:r+=y(t);var o=new h({actual:t,expected:null,operator:"ifError",message:r,stackStartFn:e}),i=t.stack;if("string"==typeof i){var a=i.split("\n");a.shift();for(var s=o.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}o.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw o}},E.strict=v(H,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStr
25ictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},545:function(e,t,r){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){i(e,t,r[t])})}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}function c(e,t){return t&&("object"===b(t)||"function"==typeof t)?t:l(e)}function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}function p(e){var t="function"==typeof Map?new Map:void 0;return(p=function(e){if(null===e||!y(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return h(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g(r,e)})(e)}function d(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function h(e,t,r){return(h=d()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&g(o,r.prototype),o}).apply(null,arguments)}function y(e){return -1!==Function.toString.call(e).indexOf("[native code]")}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v=r(177).inspect,w=r(23).codes.ERR_INVALID_ARG_TYPE;function _(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function S(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}var E="",A="",k="",O="",P={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},x=10;function T(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function R(e){return v(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function j(e,t,r){var n="",i="",a=0,s="",u=!1,c=R(e),l=c.split("\n"),f=R(t).split("\n"),p=0,d="";if("strictEqual"===r&&"object"===b(e)&&"object"===b(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var h=l[0].length+f[0].length;if(h<=x){if(("object"!==b(e)||null===e)&&("object"!==b(t)||null===t)&&(0!==e||0!==t))return"".concat(P[r],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==r&&h<(o.stderr&&o.stderr.isTTY?o.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(d="\n ".concat(S(" ",p),"^"),p=0)}}for(var y=l[l.length-1],g=f[f.length-1];y===g&&(p++<2?s="\n ".concat(y).concat(s):n=y,l.pop(),f.pop(),0!==l.length&&0!==f.length);)y=l[l.length-1],g=f[f.length-1];var m=Math.max(l.length,f.length);if(0===m){var v=c.split("\n");if(v.length>30)for(v[26]="".concat(E,"...").concat(O);v.length>27;)v.pop();return"".concat(P.notIdentical,"\n\n").concat(v.join("\n"),"\n")}p>3&&(s="\n".concat(E,"...").concat(O).concat(s),u=!0),""!==n&&(s="\n ".concat(n).concat(s),n="");var w=0,T=P[r]+"\n".concat(A,"+ actual").concat(O," ").concat(k,"- expected").concat(O),j=" ".concat(E,"...").concat(O," Lines skipped");for(p=0;p<m;p++){var C=p-a;if(l.length<p+1)C>1&&p>2&&(C>4?(i+="\n".concat(E,"...").concat(O),u=!0):C>3&&(i+="\n ".concat(f[p-2]),w++),i+="\n ".concat(f[p-1]),w++),a=p,n+="\n".concat(k,"-").concat(O," ").concat(f[p]),w++;else if(f.length<p+1)C>1&&p>2&&(C>4?(i+="\n".concat(E,"...").concat(O),u=!0):C>
253&&(i+="\n ".concat(l[p-2]),w++),i+="\n ".concat(l[p-1]),w++),a=p,i+="\n".concat(A,"+").concat(O," ").concat(l[p]),w++;else{var I=f[p],U=l[p],M=U!==I&&(!_(U,",")||U.slice(0,-1)!==I);M&&_(I,",")&&I.slice(0,-1)===U&&(M=!1,U+=","),M?(C>1&&p>2&&(C>4?(i+="\n".concat(E,"...").concat(O),u=!0):C>3&&(i+="\n ".concat(l[p-2]),w++),i+="\n ".concat(l[p-1]),w++),a=p,i+="\n".concat(A,"+").concat(O," ").concat(U),n+="\n".concat(k,"-").concat(O," ").concat(I),w+=2):(i+=n,n="",(1===C||0===p)&&(i+="\n ".concat(U),w++))}if(w>20&&p<m-2)return"".concat(T).concat(j,"\n").concat(i,"\n").concat(E,"...").concat(O).concat(n,"\n")+"".concat(E,"...").concat(O)}return"".concat(T).concat(u?j:"","\n").concat(i).concat(n).concat(s).concat(d)}var C=function(e){function t(e){if(a(this,t),"object"!==b(e)||null===e)throw new w("options","Object",e);var r,n=e.message,i=e.operator,s=e.stackStartFn,u=e.actual,f=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)r=c(this,m(t).call(this,String(n)));else if(o.stderr&&o.stderr.isTTY&&(o.stderr&&o.stderr.getColorDepth&&1!==o.stderr.getColorDepth()?(E="\x1b[34m",A="\x1b[32m",O="\x1b[39m",k="\x1b[31m"):(E="",A="",O="",k="")),"object"===b(u)&&null!==u&&"object"===b(f)&&null!==f&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=T(u),f=T(f)),"deepStrictEqual"===i||"strictEqual"===i)r=c(this,m(t).call(this,j(u,f,i)));else if("notDeepStrictEqual"===i||"notStrictEqual"===i){var d=P[i],h=R(u).split("\n");if("notStrictEqual"===i&&"object"===b(u)&&null!==u&&(d=P.notStrictEqualObject),h.length>30)for(h[26]="".concat(E,"...").concat(O);h.length>27;)h.pop();r=1===h.length?c(this,m(t).call(this,"".concat(d," ").concat(h[0]))):c(this,m(t).call(this,"".concat(d,"\n\n").concat(h.join("\n"),"\n")))}else{var y=R(u),g="",v=P[i];"notDeepEqual"===i||"notEqual"===i?(y="".concat(P[i],"\n\n").concat(y)).length>1024&&(y="".concat(y.slice(0,1021),"...")):(g="".concat(R(f)),y.length>512&&(y="".concat(y.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===i||"equal"===i?y="".concat(v,"\n\n").concat(y,"\n\nshould equal\n\n"):g=" ".concat(i," ").concat(g)),r=c(this,m(t).call(this,"".concat(y).concat(g)))}return Error.stackTraceLimit=p,r.generatedMessage=!n,Object.defineProperty(l(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=f,r.operator=i,Error.captureStackTrace&&Error.captureStackTrace(l(r),s),r.stack,r.name="AssertionError",c(r)}return f(t,e),u(t,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:v.custom,value:function(e,t){return v(this,n({},t,{customInspect:!1,depth:0}))}}]),t}(p(Error));e.exports=C},23:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function i(e,t){return t&&("object"===n(t)||"function"==typeof t)?t:a(e)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l,f,p={};function d(e,t,r){function n(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var a=function(t){function r(t,a,u){var c;return o(this,r),(c=i(this,s(r).call(this,n(t,a,u)))).code=e,c}return u(r,t),r}(r);p[e]=a}function h(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function y(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function m(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}d("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),d("ERR_INVALID_ARG_TYPE",function(e,t,o){if(void 0===l&&(l=r(167)),l("string"==typeof e,"'name' must be a string"),"string"==typeof t&&y(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be",g(e," argument"))a="The ".concat(e," ").concat(i," ").concat(h(t,"type"));else{var i,a,s=m(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(i," ").concat(h(t,"type"))}return a+". Received type ".concat(n(o))},TypeError),d("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>
252&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===f&&(f=r(177));var o=f.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(o)},TypeError,RangeError),d("ERR_INVALID_RETURN_VALUE",function(e,t,r){var o;return o=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")},TypeError),d("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];void 0===l&&(l=r(167)),l(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", ")+", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")},TypeError),e.exports.codes=p},176:function(e,t,r){"use strict";function n(e,t){return a(e)||i(e,t)||o()}function o(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function i(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}function a(e){if(Array.isArray(e))return e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},l=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},f=Object.is?Object.is:r(208),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},d=Number.isNaN?Number.isNaN:r(718);function h(e){return e.call.bind(e)}var y=h(Object.prototype.hasOwnProperty),g=h(Object.prototype.propertyIsEnumerable),m=h(Object.prototype.toString),b=r(177).types,v=b.isAnyArrayBuffer,w=b.isArrayBufferView,_=b.isDate,S=b.isMap,E=b.isRegExp,A=b.isSet,k=b.isNativeError,O=b.isBoxedPrimitive,P=b.isNumberObject,x=b.isStringObject,T=b.isBooleanObject,R=b.isBigIntObject,j=b.isSymbolObject,C=b.isFloat32Array,I=b.isFloat64Array;function U(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<48||r>57)return!0}return 10===e.length&&e>=4294967296}function M(e){return Object.keys(e).filter(U).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function N(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0}var D=void 0,H=!0,L=!1,W=0,B=1,F=2,$=3;function K(e,t){return u?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function q(e,t){if(e.byteLength!==t.byteLength)return!1;for(var r=0;r<e.byteLength;r++)if(e[r]!==t[r])return!1;return!0}function J(e,t){return e.byteLength===t.byteLength&&0===N(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function z(e,t){return e.byteLength===t.byteLength&&0===N(new Uint8Array(e),new Uint8Array(t))}function G(e,t){return P(e)?P(t)&&f(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):x(e)?x(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):T(e)?T(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):R(e)?R(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):j(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function V(e,t,r,n){if(e===t)return 0!==e||!r||f(e,t);if(r){if("object"!==s(e))return"number"==typeof e&&d(e)&&d(t);if("object"!==s(t)||null===e||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==s(e))return(null===t||"object"!==s(t))&&e==t;if(null===t||"object"!==s(t))return!1}var o=m(e);if(o!==m(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var i=M(e,D),a=M(t,D);return i.length===a.length&&X(e,t,r,n,B,i)}if("[object Object]"===o&&(!S(e)&&S(t)||!A(e)&&A(t)))return!1;if(_(e)){if(!_(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(E(e)){if(!E(t)||!K(e,t))return!1}else if(k(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else if(w(e)){if(!r&&(C(e)||I(e))){if(!q(e,t))return!1}else if(!J(e,t))return!1;var u=M(e,D),c=M(t,D);return u.length===c.length&&X(e,t,r,n,W,u)}else if(A(e))return!!A(t)&&e.size===t.size&&X(e,t,r,n,F);else if(S(e))return!!S(t)&&e.size===t.size&&X(e,t,r,n,$);else if(v(e)){if(!z(e,t))return!1}else if(O(e)&&!G(e,t))return!1;return X(e,t,r,n,W)}function Y(e,t){return t.filter(function(t){return g(e,t)})}function X(e,t,r,n,o,i){if(5==arguments.length){i=Object.keys(e);var a=Object.keys(t);if(i.length!==a.length)return!1}for(var s=0;s<i.length;s++)if(!y(t,i[s]))return!1;if(r&&5==arguments.length){var u=p(e);if(0!==u.length){var c=0;for(s=0;s<u.length;s++){var l=u[s];if(g(e,l)){if(!g(t,l))return!1;i.push(l),c++}else if(g(t,l))return!1}var f=p(t);if(u.length!==f.length&&Y(t,f).length!==c)return!1}else{var d=p(t);if(0!==d.length&&0!==Y(t,d).length)return!1}}if(0===i.length&&(o===W||o===B&&0===e.length||0===e.size))return!0;
25if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var h=n.val1.get(e);if(void 0!==h){var m=n.val2.get(t);if(void 0!==m)return h===m}n.position++}n.val1.set(e,n.position),n.val2.set(t,n.position);var b=ei(e,t,r,i,n,o);return n.val1.delete(e),n.val2.delete(t),b}function Z(e,t,r,n){for(var o=c(e),i=0;i<o.length;i++){var a=o[i];if(V(t,a,r,n))return e.delete(a),!0}return!1}function Q(e){switch(s(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(d(e))return!1}return!0}function ee(e,t,r){var n=Q(r);return null!=n?n:t.has(n)&&!e.has(n)}function et(e,t,r,n,o){var i=Q(r);if(null!=i)return i;var a=t.get(i);return!!((void 0!==a||t.has(i))&&V(n,a,!1,o))&&!e.has(i)&&V(n,a,!1,o)}function er(e,t,r,n){for(var o=null,i=c(e),a=0;a<i.length;a++){var u=i[a];if("object"===s(u)&&null!==u)null===o&&(o=new Set),o.add(u);else if(!t.has(u)){if(r||!ee(e,t,u))return!1;null===o&&(o=new Set),o.add(u)}}if(null!==o){for(var l=c(t),f=0;f<l.length;f++){var p=l[f];if("object"===s(p)&&null!==p){if(!Z(o,p,r,n))return!1}else if(!r&&!e.has(p)&&!Z(o,p,r,n))return!1}return 0===o.size}return!0}function en(e,t,r,n,o,i){for(var a=c(e),s=0;s<a.length;s++){var u=a[s];if(V(r,u,o,i)&&V(n,t.get(u),o,i))return e.delete(u),!0}return!1}function eo(e,t,r,o){for(var i=null,a=l(e),u=0;u<a.length;u++){var c=n(a[u],2),f=c[0],p=c[1];if("object"===s(f)&&null!==f)null===i&&(i=new Set),i.add(f);else{var d=t.get(f);if(void 0===d&&!t.has(f)||!V(p,d,r,o)){if(r||!et(e,t,f,p,o))return!1;null===i&&(i=new Set),i.add(f)}}}if(null!==i){for(var h=l(t),y=0;y<h.length;y++){var g=n(h[y],2),f=g[0],m=g[1];if("object"===s(f)&&null!==f){if(!en(i,e,f,m,r,o))return!1}else if(!r&&(!e.has(f)||!V(e.get(f),m,!1,o))&&!en(i,e,f,m,!1,o))return!1}return 0===i.size}return!0}function ei(e,t,r,n,o,i){var a=0;if(i===F){if(!er(e,t,r,o))return!1}else if(i===$){if(!eo(e,t,r,o))return!1}else if(i===B)for(;a<e.length;a++)if(y(e,a)){if(!y(t,a)||!V(e[a],t[a],r,o))return!1}else{if(y(t,a))return!1;for(var s=Object.keys(e);a<s.length;a++){var u=s[a];if(!y(t,u)||!V(e[u],t[u],r,o))return!1}if(s.length!==Object.keys(t).length)return!1;return!0}for(a=0;a<n.length;a++){var c=n[a];if(!V(e[c],t[c],r,o))return!1}return!0}function ea(e,t){return V(e,t,L)}function es(e,t){return V(e,t,H)}e.exports={isDeepEqual:ea,isDeepStrictEqual:es}},256:function(e,t,r){"use strict";var n=r(925),o=r(139),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},139:function(e,t,r){"use strict";var n=r(174),o=r(925),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var f=function(){return s(n,i,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},69:function(e,t,r){"use strict";var n=r(935),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=function(e){return"function"==typeof e&&"[object Function]"===i.call(e)},c=function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}},l=s&&c(),f=function(e,t,r,n){(!(t in e)||u(n)&&n())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},p=function(e,t){var r=arguments.length>2?arguments[2]:{},i=n(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s<i.length;s+=1)f(e,i[s],t[i[s]],r[i[s]])};p.supportsDescriptors=!!l,e.exports=p},604:function(e){"use strict";function t(e,t){if(null==e)throw TypeError("Cannot convert first argument to object");for(var r=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i=Object.keys(Object(o)),a=0,s=i.length;a<s;a++){var u=i[a],c=Object.getOwnPropertyDescriptor(o,u);void 0!==c&&c.enumerable&&(r[u]=o[u])}}return r}function r(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,
25configurable:!0,writable:!0,value:t})}e.exports={assign:t,polyfill:r}},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,o){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a<i;a++)n.call(o,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(o,e[s],s,e)}},426:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i,a=this;if("function"!=typeof a||n.call(a)!==o)throw TypeError(t+a);for(var s=r.call(arguments,1),u=function(){if(!(this instanceof i))return a.apply(e,s.concat(r.call(arguments)));var t=a.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this},c=Math.max(0,a.length-s.length),l=[],f=0;f<c;f++)l.push("$"+f);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),a.prototype){var p=function(){};p.prototype=a.prototype,i.prototype=new p,p.prototype=null}return i}},174:function(e,t,r){"use strict";var n=r(426);e.exports=Function.prototype.bind||n},500:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(115)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?n:p(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
25IteratorPrototype%":f?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=p(o.prototype))}return y[t]=r,r},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(174),v=r(101),w=b.call(Function.call,Array.prototype.concat),_=b.call(Function.apply,Array.prototype.splice),S=b.call(Function.call,String.prototype.replace),E=b.call(Function.call,String.prototype.slice),A=b.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,P=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,k,function(e,t,r,o){n[n.length]=r?S(o,O,"$1"):t||e}),n},x=function(e,t){var r,n=e;if(v(m,n)&&(n="%"+(r=m[n])[0]+"%"),v(y,n)){var i=y[n];if(i===d&&(i=g(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=P(e),n=r.length>0?r[0]:"",i=x("%"+n+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],_(r,w([0,1],f)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],g=E(h,0,1),m=E(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),n+="."+h,v(y,s="%"+n+"%"))c=y[s];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=r.length){var b=u(c,h);c=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[h]}else d=v(c,h),c=c[h];d&&!l&&(y[s]=c)}}return c}},925:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(115)(),p=r(504)(),d=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),h={},y="undefined"!=typeof Uint8Array&&d?d(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f&&d?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
25IteratorPrototype%":f&&d?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&d?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&d?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&d?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(d)try{null.error}catch(e){var m=d(d(e));g["%Error.prototype%"]=m}var b=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&d&&(r=d(o.prototype))}return g[t]=r,r},v={"%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"]},w=r(174),_=r(101),S=w.call(Function.call,Array.prototype.concat),E=w.call(Function.apply,Array.prototype.splice),A=w.call(Function.call,String.prototype.replace),k=w.call(Function.call,String.prototype.slice),O=w.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,T=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return A(e,P,function(e,t,r,o){n[n.length]=r?A(o,x,"$1"):t||e}),n},R=function(e,t){var r,n=e;if(_(v,n)&&(n="%"+(r=v[n])[0]+"%"),_(g,n)){var i=g[n];if(i===h&&(i=b(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=T(e),n=r.length>0?r[0]:"",i=R("%"+n+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],E(r,S([0,1],f)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],y=k(h,0,1),m=k(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),n+="."+h,_(g,s="%"+n+"%"))c=g[s];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=r.length){var b=u(c,h);c=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[h]}else d=_(c,h),c=c[h];d&&!l&&(g[s]=c)}}return c}},504:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==n||!0!==i.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==n||!0!==i.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},o=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},i=function(){return n(arguments)}();n.isLegacyArguments=o,e.exports=i?n:o},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=Object.getPrototypeOf,a=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?i(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(o?i(e)===s:"[object GeneratorFunction]"===t.call(e)))}},460:function(e){"use strict";e.exports=function(e){return e!=e}},718:function(e,t,r){"use strict";var n=r(139),o=r(69),i=r(460),a=r(625),s=r(171),u=n(a(),Number);o(u,{getPolyfill:a,implementation:i,shim:s}),e.exports=u},625:function(e,t,r){"use strict";var n=r(460);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},171:function(e,t,r){"use strict";var n=r(69),o=r(625);e.exports=function(){var e=o();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},994:function(e,t,n){"use strict";var o=n(144),i=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=i(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},f=a("String.prototype.slice"),p={},d=n(24),h=Object.getPrototypeOf;u&&d&&h&&o(c,function(e){var t=new r.g[e];
25if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=h(t),o=d(n,Symbol.toStringTag);o||(o=d(h(n),Symbol.toStringTag)),p[e]=o.get});var y=function(e){var t=!1;return o(p,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(u?!!d&&y(e):l(c,f(s(e),8,-1))>-1)}},208:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:!!(e===r||t(e)&&t(r))}},579:function(e,t,r){"use strict";var n;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=r(412),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),h=function(e){if("undefined"==typeof window||!d)return f(e);try{return f(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===i.call(e),n=a(e),s=t&&"[object String]"===i.call(e),f=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var p=c&&r;if(s&&e.length>0&&!o.call(e,0))for(var d=0;d<e.length;++d)f.push(String(d));if(n&&e.length>0)for(var y=0;y<e.length;++y)f.push(String(y));else for(var g in e)!(p&&"prototype"===g)&&o.call(e,g)&&f.push(String(g));if(u)for(var m=h(e),b=0;b<l.length;++b)!(m&&"constructor"===l[b])&&o.call(e,l[b])&&f.push(l[b]);return f}}e.exports=n},935:function(e,t,r){"use strict";var n=Array.prototype.slice,o=r(412),i=Object.keys,a=i?function(e){return i(e)}:r(579),s=Object.keys;a.shim=function(){return Object.keys?!function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)&&(Object.keys=function(e){return o(e)?s(n.call(e)):s(e)}):Object.keys=a,Object.keys||a},e.exports=a},412:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},369:function(e){e.exports=function(e){return e instanceof i}},584:function(e,t,r){"use strict";var n=r(157),o=r(391),i=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var h=s(BigInt.prototype.valueOf);if(c)var y=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function m(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function b(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||B(e)}function v(e){return"Uint8Array"===i(e)}function w(e){return"Uint8ClampedArray"===i(e)}function _(e){return"Uint16Array"===i(e)}function S(e){return"Uint32Array"===i(e)}function E(e){return"Int8Array"===i(e)}function A(e){return"Int16Array"===i(e)}function k(e){return"Int32Array"===i(e)}function O(e){return"Float32Array"===i(e)}function P(e){return"Float64Array"===i(e)}function x(e){return"BigInt64Array"===i(e)}function T(e){return"BigUint64Array"===i(e)}function R(e){return"[object Map]"===l(e)}function j(e){return"undefined"!=typeof Map&&(R.working?R(e):e instanceof Map)}function C(e){return"[object Set]"===l(e)}function I(e){return"undefined"!=typeof Set&&(C.working?C(e):e instanceof Set)}function U(e){return"[object WeakMap]"===l(e)}function M(e){return"undefined"!=typeof WeakMap&&(U.working?U(e):e instanceof WeakMap)}function N(e){return"[object WeakSet]"===l(e)}function D(e){return N(e)}function H(e){return"[object ArrayBuffer]"===l(e)}function L(e){return"undefined"!=typeof ArrayBuffer&&(H.working?H(e):e instanceof ArrayBuffer)}function W(e){return"[object DataView]"===l(e)}
25function B(e){return"undefined"!=typeof DataView&&(W.working?W(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=m,t.isArrayBufferView=b,t.isUint8Array=v,t.isUint8ClampedArray=w,t.isUint16Array=_,t.isUint32Array=S,t.isInt8Array=E,t.isInt16Array=A,t.isInt32Array=k,t.isFloat32Array=O,t.isFloat64Array=P,t.isBigInt64Array=x,t.isBigUint64Array=T,R.working="undefined"!=typeof Map&&R(new Map),t.isMap=j,C.working="undefined"!=typeof Set&&C(new Set),t.isSet=I,U.working="undefined"!=typeof WeakMap&&U(new WeakMap),t.isWeakMap=M,N.working="undefined"!=typeof WeakSet&&N(new WeakSet),t.isWeakSet=D,H.working="undefined"!=typeof ArrayBuffer&&H(new ArrayBuffer),t.isArrayBuffer=L,W.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&W(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=B;var F="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function $(e){return"[object SharedArrayBuffer]"===l(e)}function K(e){return void 0!==F&&(void 0===$.working&&($.working=$(new F)),$.working?$(e):e instanceof F)}function q(e){return"[object AsyncFunction]"===l(e)}function J(e){return"[object Map Iterator]"===l(e)}function z(e){return"[object Set Iterator]"===l(e)}function G(e){return"[object Generator]"===l(e)}function V(e){return"[object WebAssembly.Module]"===l(e)}function Y(e){return g(e,f)}function X(e){return g(e,p)}function Z(e){return g(e,d)}function Q(e){return u&&g(e,h)}function ee(e){return c&&g(e,y)}function et(e){return Y(e)||X(e)||Z(e)||Q(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(L(e)||K(e))}t.isSharedArrayBuffer=K,t.isAsyncFunction=q,t.isMapIterator=J,t.isSetIterator=z,t.isGeneratorObject=G,t.isWebAssemblyCompiledModule=V,t.isNumberObject=Y,t.isStringObject=X,t.isBooleanObject=Z,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!A(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,o=n.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<o;s=n[++r])_(s)||!x(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;return function(){if(!n){if(o.throwDeprecation)throw Error(r);o.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(o.env.NODE_DEBUG){var u=o.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),O(n.showHidden)&&(n.showHidden=!1),O(n.depth)&&(n.depth=2),O(n.colors)&&(n.colors=!1),O(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),d(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function f(e,t){return e}function p(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function d(e,r,n){if(e.customInspect&&r&&j(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var o,i=r.inspect(n,e);return A(i)||(i=d(e,i,n)),i}var a=h(e,r);if(a)return a;var s=Object.keys(r),u=p(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),R(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return y(r);if(0===s.length){if(j(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(P(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(T(r))return e.stylize(Date.prototype.toString.call(r),"date");if(R(r))return y(r)}var l="",f=!1,w=["{","}"];return(v(r)&&(f=!0,w=["[","]"]),j(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),P(r)&&(l=" "+RegExp.prototype.toString.call(r)),T(r)&&(l=" "+Date.prototype.toUTCString.call(r)),R(r)&&(l=" "+y(r)),0!==s.length||f&&0!=r.length)?n<0?P(r)?e.
25stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),o=f?g(e,r,n,u,s):s.map(function(t){return m(e,r,n,u,t,f)}),e.seen.pop(),b(o,l,w)):w[0]+l+w[1]}function h(e,t){if(O(t))return e.stylize("undefined","undefined");if(A(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return E(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function y(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)D(t,String(a))?i.push(m(e,t,r,n,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(m(e,t,r,n,o,!0))}),i}function m(e,t,r,n,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),D(n,o)||(a="["+o+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=_(r)?d(e,u.value,null):d(e,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),O(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function _(e){return null===e}function S(e){return null==e}function E(e){return"number"==typeof e}function A(e){return"string"==typeof e}function k(e){return"symbol"==typeof e}function O(e){return void 0===e}function P(e){return x(e)&&"[object RegExp]"===I(e)}function x(e){return"object"==typeof e&&null!==e}function T(e){return x(e)&&"[object Date]"===I(e)}function R(e){return x(e)&&("[object Error]"===I(e)||e instanceof Error)}function j(e){return"function"==typeof e}function C(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function I(e){return Object.prototype.toString.call(e)}function U(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=v,t.isBoolean=w,t.isNull=_,t.isNullOrUndefined=S,t.isNumber=E,t.isString=A,t.isSymbol=k,t.isUndefined=O,t.isRegExp=P,t.types.isRegExp=P,t.isObject=x,t.isDate=T,t.types.isDate=T,t.isError=R,t.types.isNativeError=R,t.isFunction=j,t.isPrimitive=C,t.isBuffer=r(369);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[U(e.getHours()),U(e.getMinutes()),U(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var H="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function W(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var i=this,a=function(){return n.apply(i,arguments)};e.apply(this,t).then(function(e){o.nextTick(a.bind(null,null,e))},function(e){o.nextTick(L.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(H&&e[H]){var t=e[H];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,H,{value:t,enumerable:!1,writable:!1,
25configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,n){e?r(e):t(n)});try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),H&&Object.defineProperty(t,H,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=H,t.callbackify=W},490:function(e,t,n){"use strict";var o=n(144),i=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=i(),l=a("String.prototype.slice"),f={},p=n(24),d=Object.getPrototypeOf;u&&p&&d&&o(c,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=d(t),o=p(n,Symbol.toStringTag);o||(o=p(d(n),Symbol.toStringTag)),f[e]=o.get}});var h=function(e){var t=!1;return o(f,function(r,n){if(!t)try{var o=r.call(e);o===n&&(t=o)}catch(e){}}),t},y=n(994);e.exports=function(e){return!!y(e)&&(u?h(e):l(s(e),8,-1))}},349:function(e,t,n){"use strict";var o=n(992);e.exports=function(){return o(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},24:function(e,t,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},o=!0;try{t[e](n,n.exports,s),o=!1}finally{o&&delete a[e]}return n.exports}s.ab=n+"/";var u=s(167);e.exports=u}()},51983:function(e,t,r){var n="/";!function(){var t={528:function(e,t,r){var n=r(685),o=r(310),i=e.exports;for(var a in n)n.hasOwnProperty(a)&&(i[a]=n[a]);function s(e){if("string"==typeof e&&(e=o.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=s(e),n.request.call(this,e,t)},i.get=function(e,t){return e=s(e),n.get.call(this,e,t)}},685:function(e){"use strict";e.exports=r(12251)},310:function(e){"use strict";e.exports=r(93813)}},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},a=!0;try{t[e](n,n.exports,i),a=!1}finally{a&&delete o[e]}return n.exports}i.ab=n+"/";var a=i(528);e.exports=a}()},93813:function(e,t,r){var n="/";!function(){var t={452:function(e){"use strict";e.exports=r(85605)}},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var n=o[e]={exports:{}},a=!0;try{t[e](n,n.exports,i),a=!1}finally{a&&delete o[e]}return n.exports}i.ab=n+"/";var a={};!function(){var e,t=a,r=(e=i(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function o(e){"string"==typeof e&&(e=v(e));var t=function(e,t,r){var n=e.auth,o=e.hostname,i=e.protocol||"",a=e.pathname||"",s=e.hash||"",u=e.query||"",c=!1;n=n?encodeURIComponent(n).replace(/%3A/i,":")+"@":"",e.host?c=n+e.host:o&&(c=n+(~o.indexOf(":")?"["+o+"]":o),e.port&&(c+=":"+e.port)),u&&"object"==typeof u&&(u=t.encode(u));var l=e.search||u&&"?"+u||"";return i&&":"!==i.substr(-1)&&(i+=":"),e.slashes||(!i||r.test(i))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),s&&"#"!==s[0]&&(s="#"+s),l&&"?"!==l[0]&&(l="?"+l),{protocol:i,host:c,pathname:a=a.replace(/[?#]/g,encodeURIComponent),search:l=l.replace("#","%23"),hash:s}}(e,r,n);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var s="http://",u="w.w",c=s+u,l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,f=/https?|ftp|gopher|file/;function p(e,t){var r="string"==typeof e?v(e):e;e="object"==typeof e?o(e):e;var n=v(t),i="";r.protocol&&!r.slashes&&(i=r.protocol,e=e.replace(r.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&n.protocol&&(i="",n.slashes||(i=n.protocol,t=t.replace(n.protocol,"")));var a=e.match(l);a&&!n.protocol&&(e=e.substr((i=a[1]+(a[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var u=new URL(e,c+"/"),p=new URL(t,u).toString().replace(c,""),d=n.protocol||r.protocol;return d+=r.slashes||n.slashes?"//":"",!i&&d?p=p.replace(s,d):i&&(p=p.replace(s,"")),f.test(p)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),i&&(p=i+("/"===p[0]?p.substr(1):p)),p}function d(){}d.prototype.parse=v,d.prototype.format=o,d.prototype.resolve=p,d.prototype.resolveObject=p;var h=/^https?|ftp|gopher|file/,y=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,b=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),e&&"object"==typeof e&&e instanceof d)return e;var i=(e=e.trim()).match(y);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),b.test(e)&&"/"!==e.slice(-1)&&(e+="/");var a=!/(^javascript)/.test(e)&&e.match(g),s=m.test(e),l="";a&&(h.test(a[1])||(l=a[1].toLowerCase(),e=""+a[2]+a[3]),a[2]||(s=!1,h.test(a[1])?(l=a[1],e=""+a[3]):e="//"+a[3]),3!==a[2].length&&1!==a[2].length||(l=a[1],e="/"+a[3]));var f,p=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),v=p&&p[1],w=new d,_="",S="";
vendor: 1,365 bytes, line 25
25try{f=new URL(e)}catch(t){_=t,l||n||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(S="/",e=e.substr(1));try{f=new URL(e,c)}catch(e){return w.protocol=l,w.href=l,w}}w.slashes=s&&!S,w.host=f.host===u?"":f.host,w.hostname=f.hostname===u?"":f.hostname.replace(/(\[|\])/g,""),w.protocol=_?l||null:f.protocol,w.search=f.search.replace(/\\/g,"%5C"),w.hash=f.hash.replace(/\\/g,"%5C");var E=e.split("#");!w.search&&~E[0].indexOf("?")&&(w.search="?"),w.hash||""!==E[1]||(w.hash="#"),w.query=t?r.decode(f.search.substr(1)):w.search.substr(1),w.pathname=S+(a?function(e){return e.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}})}(f.pathname):f.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),_&&"/"!==e[0]&&(w.pathname=w.pathname.substr(1)),l&&!h.test(l)&&"/"!==e.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[f.username,f.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=f.port,v&&!w.host.endsWith(v)&&(w.host+=v,w.port=v.slice(1)),w.href=S?""+w.pathname+w.search+w.hash:o(w);var A=/^(file)/.test(w.href)?["host","hostname"]:[];
25return Object.keys(w).forEach(function(e){~A.indexOf(e)||(w[e]=w[e]||null)}),w}t.parse=v,t.format=o,t.resolve=p,t.resolveObject=function(e,t){return v(p(e,t))},t.Url=d}(),e.exports=a}()},85605:function(e){var t="/";!function(){"use strict";var r={815:function(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,o,i){n=n||"&",o=o||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(n);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f,p,d,h,y=e[l].replace(s,"%20"),g=y.indexOf(o);g>=0?(f=y.substr(0,g),p=y.substr(g+1)):(f=y,p=""),d=decodeURIComponent(f),h=decodeURIComponent(p),t(a,d)?r(a[d])?a[d].push(h):a[d]=[a[d],h]:a[d]=h}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,a,s){return(i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e)?n(o(e),function(o){var s=encodeURIComponent(t(o))+a;return r(e[o])?n(e[o],function(e){return s+encodeURIComponent(t(e))}).join(i):s+encodeURIComponent(t(e[o]))}).join(i):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}},a=!0;try{r[e](i,i.exports,o),a=!1}finally{a&&delete n[e]}return i.exports}o.ab=t+"/";var i={};!function(){var e=i;e.decode=e.parse=o(815),e.encode=e.stringify=o(577)}(),e.exports=i}()},97501:function(e,t,r){var n="/",o=r(40257);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function o(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class i extends n{constructor(e,t,r){super(o(e,t,r))}}i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function o(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function i(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&o(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",i(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var i=r(709),a=r(337);r(782)(l,i);for(var s=n(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||o.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=o;var n=r(170);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}r(782)(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=T,T.ReadableState=x,n(361).EventEmitter;var i,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=n(678),p=n(300).Buffer,d=r.g.Uint8Array||function(){};function h(e){return p.from(e)}function y(e){return p.isBuffer(e)||e instanceof d}var g=n(837);a=g&&g.debuglog?g.debuglog("stream"):function(){};var m=n(379),b=n(25),v=n(776).getHighWaterMark,w=n(646).q,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,E=w.ERR_METHOD_NOT_IMPLEMENT
vendor: 29,252 bytes, line 25
25ED,A=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(T,f);var k=b.errorOrDestroy,O=["error","close","destroy","pause","resume"];function P(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function x(e,t,r){i=i||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function T(e){if(i=i||n(403),!(this instanceof T))return new T(e);var t=this instanceof i;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function R(e,t,r,n,o){a("readableAddChunk",t);var i,s=e._readableState;if(null===t)s.reading=!1,N(e,s);else if(o||(i=C(s,t)),i)k(e,i);else if(s.objectMode||t&&t.length>0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===p.prototype||(t=h(t)),n)s.endEmitted?k(e,new A):j(e,s,t,!0);else if(s.ended)k(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?j(e,s,t,!1):L(e,s)):j(e,s,t,!1)}}else n||(s.reading=!1,L(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function j(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&D(e)),L(e,t)}function C(e,t){var r;return y(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=b.destroy,T.prototype._undestroy=b.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=p.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},T.prototype.unshift=function(e){return R(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,o="";null!==r;)o+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var I=1073741824;function U(e){return e>=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=U(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function N(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,H(e)))}}function D(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(H,e))}function H(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,J(e)}function L(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(W,e,t))}function W(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function B(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,J(e))}}function F(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function $(e){a("readable nexttick read 0"),e.read(0)}function K(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(q,e,t))}function q(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),J(e),t.flowing&&!t.reading&&e.read(0)}function J(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function z(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function G(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(V,t,e))}function V(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Y(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}T.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?G(this):D(this),null;if(0===(e=M(e,r))&&r.ended)return 0===r.length&&G(this),null;var o=r.needReadable;return a("need readable",o),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",o=!0),r.ended||r.reading?a("reading or ended",o=!1):o&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=M(n,r))),null===(t=e>0?z(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&G(this)),null!==t&&this.emit("data",t),t},T.prototype._read=function(e){k(this,new E("_read()"))},T.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===o.stdout||e===o.stderr?m:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function u(){a("onend"),e.end()}n.endEmitted?o.nextTick(i):r.once("end",i),e.on("unpipe",s);var c=B(r);e.on("drain",c);var f=!1;function p(){a("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",d),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function d(t){a("ondata");var o=e.write(t);a("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Y(n.pipes,e))&&!f&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){a("onerror",t),m(),e.removeListener("error",h),0===l(e,"error")&&k(e,t)}function y(){e.removeListener("finish",g),m()}function g(){a("onfinish"),e.removeListener("close",y),m()}function m(){a("unpipe"),r.unpipe(e)}return r.on("data",d),P(e,"error",h),e.once("close",y),e.once("finish",g),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Y(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?D(this):n.reading||o.nextTick($,this)),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(F,this),r},T.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&o.nextTick(F,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,K(this,e)),e.paused=!1,this},T.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){a("wrapped data"),r.decoder&&(o=r.decoder.write(o)),(!r.objectMode||null!=o)&&(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<O.length;i++)e.on(O[i],this.emit.bind(this,O[i]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(871)),u(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=z,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(e,t){return void 0===c&&(c=n(727)),c(T,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,r){p(e,t,r)})}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new o("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){q(t,e)}}e.exports=x,x.WritableState=P;var a,s,u={deprecate:n(769)},c=n(678),l=n(300).Buffer,f=r.g.Uint8Array||function(){};function p(e){return l.from(e)}function d(e){return l.isBuffer(e)||e instanceof f}var h=n(25),y=n(776).getHighWaterMark,g=n(646).q,m=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_MULTIPLE_CALLBACK,w=g.ERR_STREAM_CANNOT_PIPE,_=g.ERR_STREAM_DESTROYED,S=g.ERR_STREAM_NULL_VALUES,E=g.ERR_STREAM_WRITE_AFTER_END,A=g.ERR_UNKNOWN_ENCODING,k=h.errorOrDestroy;function O(){}function P(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=y(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){N(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function x(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(x,this))return new x(e);this._writableState=new P(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function T(e,t){var r=new E;k(e,r),o.nextTick(t,r)}function R(e,t,r,n){var i;return null===r?i=new S:"string"==typeof r||t.objectMode||(i=new m("chunk",["string","Buffer"],r)),!i||(k(e,i),o.nextTick(n,i),!1)}function j(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function C(e,t,r,n,o,i){if(!r){var a=j(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else I(e,t,!1,s,n,o,i);return u}function I(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function U(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick($,e,t),e._writableState.errorEmitted=!0,k(e,n)):(i(n),e._writableState.errorEmitted=!0,k(e,n),$(e,t))}function M(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function N(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new v;if(M(r),t)U(e,r,n,t,i);else{var a=W(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||L(e,r),n?o.nextTick(D,e,r,a,i):D(e,r,a,i)}}function D(e,t,r,n){r||H(e,t),t.pendingcb--,n(),$(e,t)}function H(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function L(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,I(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(I(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function W(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function B(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),$(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(B,e,t)))}function $(e,t){var r=W(t);if(r&&(F(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function K(e,t,r){t.ending=!0,$(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function q(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(x,c),P.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(P.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===x&&e&&e._writableState instanceof P}})):s=function(e){return e instanceof this},x.prototype.pipe=function(){k(this,new w)},x.prototype.write=function(e,t,r){var n=this._writableState,o=!1,i=!n.objectMode&&d(e);return i&&!l.isBuffer(e)&&(e=p(e)),"function"==typeof t&&(r=t,t=null),i?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=O),n.ending?T(this,r):(i||R(this,n,e,r))&&(n.pendingcb++,o=C(this,n,i,e,t,r)),o},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||L(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new A(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new b("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||K(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=h.destroy,x.prototype._undestroy=h.undestroy,x.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(h(r,!1)))}}function g(e){o.nextTick(y,e)}function m(e,t){return function(r,n){e.then(function(){if(t[l]){r(h(void 0,!0));return}t[p](r,n)},n)}}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(i={get stream(){return this[d]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[c]?r(t[c]):e(h(void 0,!0))})});var n=this[f];if(n)e=new Promise(m(n,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(h(i,!1));e=new Promise(this[p])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),n(i,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){if(e){r(e);return}t(h(void 0,!0))})})}),i),b),w=function(e){var t,r=Object.create(v,(n(t={},d,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,p,{value:function(e,t){var n=r[d].read();n?(r[f]=null,r[s]=null,r[u]=null,e(h(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(h(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r};e.exports=w},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(300).Buffer,l=r(837).inspect,f=l&&l.custom||"inspect";function p(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)p(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return l(this,o({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var i=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(a,this,e)):o.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted?o.nextTick(n,i):(i._writableState.errorEmitted=!0,o.nextTick(r,i,e)):o.nextTick(r,i,e):t?(o.nextTick(n,i),t(e)):o.nextTick(n,i)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:i,errorOrDestroy:s}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function o(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=o(r||i);var u=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||p()},f=e._writableState&&e._writableState.finished,p=function(){c=!1,f=!0,u||r.call(e)},d=e._readableState&&e._readableState.endEmitted,h=function(){u=!1,d=!0,c||r.call(e)},y=function(t){r.call(e,t)},g=function(){var t;return u&&!d?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!f?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},m=function(){e.req.on("finish",p)};return a(e)?(e.on("complete",p),e.on("abort",g),e.req?m():e.on("request",m)):c&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",h),e.on("finish",p),!1!==t.error&&e.on("error",y),e.on("close",g),function(){e.removeListener("complete",p),e.removeListener("abort",g),e.removeListener("request",m),e.req&&e.req.removeListener("finish",p),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",p),e.removeListener("end",h),e.removeListener("error",y),e.removeListener("close",g)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)})}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
25var u=r(646).q.ERR_INVALID_ARG_TYPE;function c(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,i=new e(a({objectMode:!0},r)),s=!1;function c(){return l.apply(this,arguments)}function l(){return(l=o(function*(){try{var e=yield n.next(),t=e.value;e.done?i.push(null):i.push((yield t))?c():s=!1}catch(e){i.destroy(e)}})).apply(this,arguments)}return i._read=function(){s||(s=!0,c())},i}e.exports=c},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o,i=r(646).q,a=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function l(e,t,i,a){a=n(a);var u=!1;e.on("close",function(){u=!0}),void 0===o&&(o=r(698)),o(e,{readable:t,writable:i},function(e){if(e)return a(e);u=!0,a()});var l=!1;return function(t){if(!u&&!l){if(l=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function f(e){e()}function p(e,t){return e.pipe(t)}function d(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}function h(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=d(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var i=r.map(function(t,n){var a=n<r.length-1;return l(t,a,n>0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),o(e))})});return r.reduce(p)}e.exports=h},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function o(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function i(e,t,r,i){var a=o(t,i,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(i?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:i}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=o;var n=r(361).EventEmitter;function o(){n.call(this)}r(782)(o,n),o.Readable=r(709),o.Writable=r(337),o.Duplex=r(403),o.Transform=r(170),o.PassThrough=r(889),o.finished=r(698),o.pipeline=r(442),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function o(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",o),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";
25case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=i(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=y,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=m,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var o=u(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=u(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=u(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=d,s.prototype.text=p,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=t},300:function(e){"use strict";e.exports=r(82957)},361:function(e){"use strict";e.exports=r(55445)},781:function(e){"use strict";e.exports=r(55445).EventEmitter},837:function(e){"use strict";e.exports=r(83598)}},i={};function a(e){var r=i[e];if(void 0!==r)return r.exports;var n=i[e]={exports:{}},o=!0;try{t[e](n,n.exports,a),o=!1}finally{o&&delete i[e]}return n.exports}a.ab=n+"/";var s=a(173);e.exports=s}()},12251:function(e,t,r){var n="/",o=r(40257),i=r(82957).Buffer;!function(){var t={523:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Parti
25al Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function o(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class i extends n{constructor(e,t,r){super(o(e,t,r))}}i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function o(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function i(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&o(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",i(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var i=r(709),a=r(337);r(782)(l,i);for(var s=n(a.prototype),u=0;u<s.length;u++){var c=s[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),a.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||o.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},889:function(e,t,r){"use strict";e.exports=o;var n=r(170);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}r(782)(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},709:function(e,t,n){"use strict";e.exports=T,T.ReadableState=x,n(361).EventEmitter;var i,a,s,u,c,l=function(e,t){return e.listeners(t).length},f=n(678),p=n(300).Buffer,d=r.g.Uint8Array||function(){};function h(e){return p.from(e)}function y(e){return p.isBuffer(e)||e instanceof d}var g=n(837);a=g&&g.debuglog?g.debuglog("stream"):function(){};var m=n(379),b=n(25),v=n(776).getHighWaterMark,w=n(646).q,_=w.ERR_INVALID_ARG_TYPE,S=w.ERR_STREAM_PUSH_AFTER_EOF,E=w.ERR_METHOD_NOT_IMPLEMENT
vendor: 29,252 bytes, line 25
25ED,A=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(782)(T,f);var k=b.errorOrDestroy,O=["error","close","destroy","pause","resume"];function P(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function x(e,t,r){i=i||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=v(this,e,"readableHighWaterMark",r),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(s||(s=n(704).s),this.decoder=new s(e.encoding),this.encoding=e.encoding)}function T(e){if(i=i||n(403),!(this instanceof T))return new T(e);var t=this instanceof i;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function R(e,t,r,n,o){a("readableAddChunk",t);var i,s=e._readableState;if(null===t)s.reading=!1,N(e,s);else if(o||(i=C(s,t)),i)k(e,i);else if(s.objectMode||t&&t.length>0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===p.prototype||(t=h(t)),n)s.endEmitted?k(e,new A):j(e,s,t,!0);else if(s.ended)k(e,new S);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?j(e,s,t,!1):L(e,s)):j(e,s,t,!1)}}else n||(s.reading=!1,L(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function j(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&D(e)),L(e,t)}function C(e,t){var r;return y(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=b.destroy,T.prototype._undestroy=b.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=p.from(e,t),t=""),r=!0),R(this,e,t,!1,r)},T.prototype.unshift=function(e){return R(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){s||(s=n(704).s);var t=new s(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,o="";null!==r;)o+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var I=1073741824;function U(e){return e>=I?e=I:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=U(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function N(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,H(e)))}}function D(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,o.nextTick(H,e))}function H(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,J(e)}function L(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(W,e,t))}function W(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(a("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function B(e){return function(){var t=e._readableState;a("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&l(e,"data")&&(t.flowing=!0,J(e))}}function F(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function $(e){a("readable nexttick read 0"),e.read(0)}function K(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(q,e,t))}function q(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),J(e),t.flowing&&!t.reading&&e.read(0)}function J(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function z(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function G(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,o.nextTick(V,t,e))}function V(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function Y(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}T.prototype.read=function(e){a("read",e),e=parseInt(e,10);var t,r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?G(this):D(this),null;if(0===(e=M(e,r))&&r.ended)return 0===r.length&&G(this),null;var o=r.needReadable;return a("need readable",o),(0===r.length||r.length-e<r.highWaterMark)&&a("length less than watermark",o=!0),r.ended||r.reading?a("reading or ended",o=!1):o&&(a("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=M(n,r))),null===(t=e>0?z(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&G(this)),null!==t&&this.emit("data",t),t},T.prototype._read=function(e){k(this,new E("_read()"))},T.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var i=t&&!1===t.end||e===o.stdout||e===o.stderr?m:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function u(){a("onend"),e.end()}n.endEmitted?o.nextTick(i):r.once("end",i),e.on("unpipe",s);var c=B(r);e.on("drain",c);var f=!1;function p(){a("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",h),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",m),r.removeListener("data",d),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function d(t){a("ondata");var o=e.write(t);a("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==Y(n.pipes,e))&&!f&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(t){a("onerror",t),m(),e.removeListener("error",h),0===l(e,"error")&&k(e,t)}function y(){e.removeListener("finish",g),m()}function g(){a("onfinish"),e.removeListener("close",y),m()}function m(){a("unpipe"),r.unpipe(e)}return r.on("data",d),P(e,"error",h),e.once("close",y),e.once("finish",g),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=Y(t.pipes,e);return -1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},T.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?D(this):n.reading||o.nextTick($,this)),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var r=f.prototype.removeListener.call(this,e,t);return"readable"===e&&o.nextTick(F,this),r},T.prototype.removeAllListeners=function(e){var t=f.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&o.nextTick(F,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,K(this,e)),e.paused=!1,this},T.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){a("wrapped data"),r.decoder&&(o=r.decoder.write(o)),(!r.objectMode||null!=o)&&(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<O.length;i++)e.on(O[i],this.emit.bind(this,O[i]));return this._read=function(t){a("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===u&&(u=n(871)),u(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=z,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(e,t){return void 0===c&&(c=n(727)),c(T,e,t)})},170:function(e,t,r){"use strict";e.exports=l;var n=r(646).q,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(403);function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);u.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?p(this,null,null):this._flush(function(t,r){p(e,t,r)})}function p(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(782)(l,u),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new o("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){u.prototype._destroy.call(this,e,function(e){t(e)})}},337:function(e,t,n){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){q(t,e)}}e.exports=x,x.WritableState=P;var a,s,u={deprecate:n(769)},c=n(678),l=n(300).Buffer,f=r.g.Uint8Array||function(){};function p(e){return l.from(e)}function d(e){return l.isBuffer(e)||e instanceof f}var h=n(25),y=n(776).getHighWaterMark,g=n(646).q,m=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_MULTIPLE_CALLBACK,w=g.ERR_STREAM_CANNOT_PIPE,_=g.ERR_STREAM_DESTROYED,S=g.ERR_STREAM_NULL_VALUES,E=g.ERR_STREAM_WRITE_AFTER_END,A=g.ERR_UNKNOWN_ENCODING,k=h.errorOrDestroy;function O(){}function P(e,t,r){a=a||n(403),e=e||{},"boolean"!=typeof r&&(r=t instanceof a),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=y(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){N(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function x(e){var t=this instanceof(a=a||n(403));if(!t&&!s.call(x,this))return new x(e);this._writableState=new P(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function T(e,t){var r=new E;k(e,r),o.nextTick(t,r)}function R(e,t,r,n){var i;return null===r?i=new S:"string"==typeof r||t.objectMode||(i=new m("chunk",["string","Buffer"],r)),!i||(k(e,i),o.nextTick(n,i),!1)}function j(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=l.from(t,r)),t}function C(e,t,r,n,o,i){if(!r){var a=j(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else I(e,t,!1,s,n,o,i);return u}function I(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function U(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick($,e,t),e._writableState.errorEmitted=!0,k(e,n)):(i(n),e._writableState.errorEmitted=!0,k(e,n),$(e,t))}function M(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function N(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new v;if(M(r),t)U(e,r,n,t,i);else{var a=W(r)||e.destroyed;a||r.corked||r.bufferProcessing||!r.bufferedRequest||L(e,r),n?o.nextTick(D,e,r,a,i):D(e,r,a,i)}}function D(e,t,r,n){r||H(e,t),t.pendingcb--,n(),$(e,t)}function H(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function L(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=Array(t.bufferedRequestCount),o=t.corkedRequestsFree;o.entry=r;for(var a=0,s=!0;r;)n[a]=r,r.isBuf||(s=!1),r=r.next,a+=1;n.allBuffers=s,I(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:u.length;if(I(e,t,!1,f,u,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function W(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function B(e,t){e._final(function(r){t.pendingcb--,r&&k(e,r),t.prefinished=!0,e.emit("prefinish"),$(e,t)})}function F(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,o.nextTick(B,e,t)))}function $(e,t){var r=W(t);if(r&&(F(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function K(e,t,r){t.ending=!0,$(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function q(e,t,r){var n=e.entry;for(e.entry=null;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}n(782)(x,c),P.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(P.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===x&&e&&e._writableState instanceof P}})):s=function(e){return e instanceof this},x.prototype.pipe=function(){k(this,new w)},x.prototype.write=function(e,t,r){var n=this._writableState,o=!1,i=!n.objectMode&&d(e);return i&&!l.isBuffer(e)&&(e=p(e)),"function"==typeof t&&(r=t,t=null),i?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=O),n.ending?T(this,r):(i||R(this,n,e,r))&&(n.pendingcb++,o=C(this,n,i,e,t,r)),o},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;!e.corked||(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||L(this,e))},x.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new A(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,r){r(new b("_write()"))},x.prototype._writev=null,x.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||K(this,n,r),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=h.destroy,x.prototype._undestroy=h.undestroy,x.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),p=Symbol("handlePromise"),d=Symbol("stream");function h(e,t){return{value:e,done:t}}function y(e){var t=e[s];if(null!==t){var r=e[d].read();null!==r&&(e[f]=null,e[s]=null,e[u]=null,t(h(r,!1)))}}function g(e){o.nextTick(y,e)}function m(e,t){return function(r,n){e.then(function(){if(t[l]){r(h(void 0,!0));return}t[p](r,n)},n)}}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(i={get stream(){return this[d]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(e,r){o.nextTick(function(){t[c]?r(t[c]):e(h(void 0,!0))})});var n=this[f];if(n)e=new Promise(m(n,this));else{var i=this[d].read();if(null!==i)return Promise.resolve(h(i,!1));e=new Promise(this[p])}return this[f]=e,e}},Symbol.asyncIterator,function(){return this}),n(i,"return",function(){var e=this;return new Promise(function(t,r){e[d].destroy(null,function(e){if(e){r(e);return}t(h(void 0,!0))})})}),i),b),w=function(e){var t,r=Object.create(v,(n(t={},d,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,p,{value:function(e,t){var n=r[d].read();n?(r[f]=null,r[s]=null,r[u]=null,e(h(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[f]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[f]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[f]=null,r[s]=null,r[u]=null,n(h(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r};e.exports=w},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,r){return t&&s(e.prototype,t),r&&s(e,r),e}var c=r(300).Buffer,l=r(837).inspect,f=l&&l.custom||"inspect";function p(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return u(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)p(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0==(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0==(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:f,value:function(e,t){return l(this,o({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var i=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,o.nextTick(a,this,e)):o.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?i._writableState?i._writableState.errorEmitted?o.nextTick(n,i):(i._writableState.errorEmitted=!0,o.nextTick(r,i,e)):o.nextTick(r,i,e):t?(o.nextTick(n,i),t(e)):o.nextTick(n,i)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:i,errorOrDestroy:s}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function o(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&"function"==typeof e.abort}function s(e,t,r){if("function"==typeof t)return s(e,null,t);t||(t={}),r=o(r||i);var u=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,l=function(){e.writable||p()},f=e._writableState&&e._writableState.finished,p=function(){c=!1,f=!0,u||r.call(e)},d=e._readableState&&e._readableState.endEmitted,h=function(){u=!1,d=!0,c||r.call(e)},y=function(t){r.call(e,t)},g=function(){var t;return u&&!d?(e._readableState&&e._readableState.ended||(t=new n),r.call(e,t)):c&&!f?(e._writableState&&e._writableState.ended||(t=new n),r.call(e,t)):void 0},m=function(){e.req.on("finish",p)};return a(e)?(e.on("complete",p),e.on("abort",g),e.req?m():e.on("request",m)):c&&!e._writableState&&(e.on("end",l),e.on("close",l)),e.on("end",h),e.on("finish",p),!1!==t.error&&e.on("error",y),e.on("close",g),function(){e.removeListener("complete",p),e.removeListener("abort",g),e.removeListener("request",m),e.req&&e.req.removeListener("finish",p),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",p),e.removeListener("end",h),e.removeListener("error",y),e.removeListener("close",g)}}e.exports=s},727:function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),u=s.value}catch(e){r(e);return}s.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise(function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,u,"next",e)}function u(e){n(a,o,i,s,u,"throw",e)}s(void 0)})}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){s(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
25var u=r(646).q.ERR_INVALID_ARG_TYPE;function c(e,t,r){if(t&&"function"==typeof t.next)n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new u("iterable",["Iterable"],t);var n,i=new e(a({objectMode:!0},r)),s=!1;function c(){return l.apply(this,arguments)}function l(){return(l=o(function*(){try{var e=yield n.next(),t=e.value;e.done?i.push(null):i.push((yield t))?c():s=!1}catch(e){i.destroy(e)}})).apply(this,arguments)}return i._read=function(){s||(s=!0,c())},i}e.exports=c},442:function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var o,i=r(646).q,a=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){return e.setHeader&&"function"==typeof e.abort}function l(e,t,i,a){a=n(a);var u=!1;e.on("close",function(){u=!0}),void 0===o&&(o=r(698)),o(e,{readable:t,writable:i},function(e){if(e)return a(e);u=!0,a()});var l=!1;return function(t){if(!u&&!l){if(l=!0,c(e))return e.abort();if("function"==typeof e.destroy)return e.destroy();a(t||new s("pipe"))}}}function f(e){e()}function p(e,t){return e.pipe(t)}function d(e){return e.length&&"function"==typeof e[e.length-1]?e.pop():u}function h(){for(var e,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=d(r);if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new a("streams");var i=r.map(function(t,n){var a=n<r.length-1;return l(t,a,n>0,function(t){e||(e=t),t&&i.forEach(f),a||(i.forEach(f),o(e))})});return r.reduce(p)}e.exports=h},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function o(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function i(e,t,r,i){var a=o(t,i,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(i?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:i}},678:function(e,t,r){e.exports=r(781)},726:function(e,t,r){var n=r(781);"disable"===o.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=r(709)).Stream=n||t,t.Readable=t,t.Writable=r(337),t.Duplex=r(403),t.Transform=r(170),t.PassThrough=r(889),t.finished=r(698),t.pipeline=r(442))},55:function(e,t,r){var n=r(300),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},813:function(e,t,n){var o=n(450),i=n(254),a=n(911),s=n(523),u=n(310),c=t;c.request=function(e,t){e="string"==typeof e?u.parse(e):a(e);var n=-1===r.g.location.protocol.search(/^https?:$/)?"http:":"",i=e.protocol||n,s=e.hostname||e.host,c=e.port,l=e.path||"/";s&&-1!==s.indexOf(":")&&(s="["+s+"]"),e.url=(s?i+"//"+s:"")+(c?":"+c:"")+l,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new o(e);return t&&f.on("response",t),f},c.get=function(e,t){var r=c.request(e,t);return r.end(),r},c.ClientRequest=o,c.IncomingMessage=i.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=s,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},301:function(e,t){var n;function o(){if(void 0!==n)return n;if(r.g.XMLHttpRequest){n=new r.g.XMLHttpRequest;try{n.open("GET",r.g.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=o();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}function a(e){return"function"==typeof e}t.fetch=a(r.g.fetch)&&a(r.g.ReadableStream),t.writableStream=a(r.g.WritableStream),t.abortController=a(r.g.AbortController),t.arraybuffer=t.fetch||i("arraybuffer"),t.msstream=!t.fetch&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!o()&&a(o().overrideMimeType),n=null},450:function(e,t,n){var a=n(301),s=n(782),u=n(254),c=n(726),l=u.IncomingMessage,f=u.readyStates;function p(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":"text"}var d=e.exports=function(e){var t,r=this;c.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+i.from(e.auth).toString("base64")),Object.keys(e.headers).forEac
25h(function(t){r.setHeader(t,e.headers[t])});var n=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)n=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!a.overrideMimeType;else if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw Error("Invalid value for opts.mode");else t=!0;r._mode=p(t,n),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};function h(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}s(d,c.Writable),d.prototype.setHeader=function(e,t){var r=this,n=e.toLowerCase();-1===y.indexOf(n)&&(r._headers[n]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,n=e._headers,i=null;"GET"!==t.method&&"HEAD"!==t.method&&(i=new Blob(e._body,{type:(n["content-type"]||{}).value||""}));var s=[];if(Object.keys(n).forEach(function(e){var t=n[e].name,r=n[e].value;Array.isArray(r)?r.forEach(function(e){s.push([t,e])}):s.push([t,r])}),"fetch"===e._mode){var u=null;if(a.abortController){var c=new AbortController;u=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.g.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}r.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:i||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.g.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var l=e._xhr=new r.g.XMLHttpRequest;try{l.open(e._opts.method,e._opts.url,!0)}catch(t){o.nextTick(function(){e.emit("error",t)});return}"responseType"in l&&(l.responseType=e._mode),"withCredentials"in l&&(l.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(l.timeout=t.requestTimeout,l.ontimeout=function(){e.emit("requestTimeout")}),s.forEach(function(e){l.setRequestHeader(e[0],e[1])}),e._response=null,l.onreadystatechange=function(){switch(l.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(l.onprogress=function(){e._onXHRProgress()}),l.onerror=function(){e._destroyed||e.emit("error",Error("XHR error"))};try{l.send(i)}catch(t){o.nextTick(function(){e.emit("error",t)});return}}}},d.prototype._onXHRProgress=function(){var e=this;h(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},d.prototype._write=function(e,t,r){var n=this;n._body.push(e),r()},d.prototype.abort=d.prototype.destroy=function(){var e=this;e._destroyed=!0,r.g.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},d.prototype.end=function(e,t,r){var n=this;"function"==typeof e&&(r=e,e=void 0),c.Writable.prototype.end.call(n,e,t,r)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var y=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},254:function(e,t,n){var a=n(301),s=n(782),u=n(726),c=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=t.IncomingMessage=function(e,t,n,s){var c=this;if(u.Readable.call(c),c._mode=n,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){o.nextTick(function(){c.emit("close")})}),"fetch"===n){if(c._fetchResponse=t,c.url=t.url,c.statusCode=t.status,c.statusMessage=t.statusText,t.headers.forEac
25h(function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)}),a.writableStream){var l=new WritableStream({write:function(e){return new Promise(function(t,r){c._destroyed?r():c.push(i.from(e))?t():c._resumeFetch=t})},close:function(){r.g.clearTimeout(s),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{t.body.pipeTo(l).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)});return}catch(e){}}var f=t.body.getReader();function p(){f.read().then(function(e){if(!c._destroyed){if(e.done){r.g.clearTimeout(s),c.push(null);return}c.push(i.from(e.value)),p()}}).catch(function(e){r.g.clearTimeout(s),c._destroyed||c.emit("error",e)})}p()}else if(c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===c.headers[r]&&(c.headers[r]=[]),c.headers[r].push(t[2])):void 0!==c.headers[r]?c.headers[r]+=", "+t[2]:c.headers[r]=t[2],c.rawHeaders.push(t[1],t[2])}}),c._charset="x-user-defined",!a.overrideMimeType){var d=c.rawHeaders["mime-type"];if(d){var h=d.match(/;\s*charset=([^;])(;|$)/);h&&(c._charset=h[1].toLowerCase())}c._charset||(c._charset="utf-8")}};s(l,u.Readable),l.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text":if((n=t.responseText).length>e._pos){var o=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=i.alloc(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);e.push(a)}else e.push(o,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==c.DONE||!t.response)break;n=t.response,e.push(i.from(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==c.LOADING||!n)break;e.push(i.from(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==c.LOADING)break;var u=new r.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>e._pos&&(e.push(i.from(new Uint8Array(u.result.slice(e._pos)))),e._pos=u.result.byteLength)},u.onload=function(){e.push(null)},u.readAsArrayBuffer(n)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}},704:function(e,t,r){"use strict";var n=r(55).Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=i(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=y,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=m,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var o=u(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=u(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=u(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=d,s.prototype.text=p,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},769:function(e){function t(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}
25e.exports=t},911:function(e){e.exports=r;var t=Object.prototype.hasOwnProperty;function r(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var o in n)t.call(n,o)&&(e[o]=n[o])}return e}},300:function(e){"use strict";e.exports=r(82957)},361:function(e){"use strict";e.exports=r(55445)},781:function(e){"use strict";e.exports=r(97501)},310:function(e){"use strict";e.exports=r(93813)},837:function(e){"use strict";e.exports=r(83598)}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},o=!0;try{t[e](n,n.exports,s),o=!1}finally{o&&delete a[e]}return n.exports}s.ab=n+"/";var u=s(813);e.exports=u}()},83598:function(e,t,r){var n="/",o=r(82957).Buffer,i=r(40257);!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var o=[],i=0;i<e.length;i++)if(t.call(e,i)){var a=e[i];r.call(n,a,i,e)&&o.push(a)}return o};var t=Object.prototype.hasOwnProperty},256:function(e,t,r){"use strict";var n=r(925),o=r(139),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},139:function(e,t,r){"use strict";var n=r(174),o=r(925),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),s=o("%Reflect.apply%",!0)||n.call(a,i),u=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var f=function(){return s(n,i,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,o){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a<i;a++)n.call(o,e[a],a,e);else for(var s in e)t.call(e,s)&&n.call(o,e[s],s,e)}},426:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,o="[object Function]";e.exports=function(e){var i,a=this;if("function"!=typeof a||n.call(a)!==o)throw TypeError(t+a);for(var s=r.call(arguments,1),u=function(){if(!(this instanceof i))return a.apply(e,s.concat(r.call(arguments)));var t=a.apply(this,s.concat(r.call(arguments)));return Object(t)===t?t:this},c=Math.max(0,a.length-s.length),l=[],f=0;f<c;f++)l.push("$"+f);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(u),a.prototype){var p=function(){};p.prototype=a.prototype,i.prototype=new p,p.prototype=null}return i}},174:function(e,t,r){"use strict";var n=r(426);e.exports=Function.prototype.bind||n},500:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(115)(),p=Object.getPrototypeOf||function(e){return e.__proto__},d={},h="undefined"==typeof Uint8Array?n:p(Uint8Array),y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
25IteratorPrototype%":f?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f?p(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet},g=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=p(o.prototype))}return y[t]=r,r},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(174),v=r(101),w=b.call(Function.call,Array.prototype.concat),_=b.call(Function.apply,Array.prototype.splice),S=b.call(Function.call,String.prototype.replace),E=b.call(Function.call,String.prototype.slice),A=b.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,P=function(e){var t=E(e,0,1),r=E(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return S(e,k,function(e,t,r,o){n[n.length]=r?S(o,O,"$1"):t||e}),n},x=function(e,t){var r,n=e;if(v(m,n)&&(n="%"+(r=m[n])[0]+"%"),v(y,n)){var i=y[n];if(i===d&&(i=g(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/g,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=P(e),n=r.length>0?r[0]:"",i=x("%"+n+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],_(r,w([0,1],f)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],g=E(h,0,1),m=E(h,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),n+="."+h,v(y,s="%"+n+"%"))c=y[s];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=r.length){var b=u(c,h);c=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[h]}else d=v(c,h),c=c[h];d&&!l&&(y[s]=c)}}return c}},925:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,s=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},l=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,f=r(115)(),p=r(504)(),d=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),h={},y="undefined"!=typeof Uint8Array&&d?d(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":f&&d?d([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
25IteratorPrototype%":f&&d?d(d([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&f&&d?d((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&f&&d?d((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&d?d(""[Symbol.iterator]()):n,"%Symbol%":f?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(d)try{null.error}catch(e){var m=d(d(e));g["%Error.prototype%"]=m}var b=function e(t){var r;if("%AsyncFunction%"===t)r=s("async function () {}");else if("%GeneratorFunction%"===t)r=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=s("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&d&&(r=d(o.prototype))}return g[t]=r,r},v={"%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"]},w=r(174),_=r(101),S=w.call(Function.call,Array.prototype.concat),E=w.call(Function.apply,Array.prototype.splice),A=w.call(Function.call,String.prototype.replace),k=w.call(Function.call,String.prototype.slice),O=w.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,T=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return A(e,P,function(e,t,r,o){n[n.length]=r?A(o,x,"$1"):t||e}),n},R=function(e,t){var r,n=e;if(_(v,n)&&(n="%"+(r=v[n])[0]+"%"),_(g,n)){var i=g[n];if(i===h&&(i=b(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===O(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=T(e),n=r.length>0?r[0]:"",i=R("%"+n+"%",t),s=i.name,c=i.value,l=!1,f=i.alias;f&&(n=f[0],E(r,S([0,1],f)));for(var p=1,d=!0;p<r.length;p+=1){var h=r[p],y=k(h,0,1),m=k(h,-1);if(('"'===y||"'"===y||"`"===y||'"'===m||"'"===m||"`"===m)&&y!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&d||(l=!0),n+="."+h,_(g,s="%"+n+"%"))c=g[s];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&p+1>=r.length){var b=u(c,h);c=(d=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[h]}else d=_(c,h),c=c[h];d&&!l&&(g[s]=c)}}return c}},504:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==n||!0!==i.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(i.value!==n||!0!==i.enumerable)return!1}return!0}},101:function(e,t,r){"use strict";var n=r(174);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},o=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},i=function(){return n(arguments)}();n.isLegacyArguments=o,e.exports=i?n:o},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=Object.getPrototypeOf,a=function(){if(!o)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?i(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(o?i(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var o=n(144),i=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=i(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r<e.length;r+=1)if(e[r]===t)return r;return -1},f=a("String.prototype.slice"),p={},d=n(24),h=Object.getPrototypeOf;u&&d&&h&&o(c,function(e){var t=new r.g[e];
25if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=h(t),o=d(n,Symbol.toStringTag);o||(o=d(h(n),Symbol.toStringTag)),p[e]=o.get});var y=function(e){var t=!1;return o(p,function(r,n){if(!t)try{t=r.call(e)===n}catch(e){}}),t};e.exports=function(e){return!!e&&"object"==typeof e&&(u?!!d&&y(e):l(c,f(s(e),8,-1))>-1)}},369:function(e){e.exports=function(e){return e instanceof o}},584:function(e,t,r){"use strict";var n=r(157),o=r(391),i=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),p=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var h=s(BigInt.prototype.valueOf);if(c)var y=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function m(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function b(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||B(e)}function v(e){return"Uint8Array"===i(e)}function w(e){return"Uint8ClampedArray"===i(e)}function _(e){return"Uint16Array"===i(e)}function S(e){return"Uint32Array"===i(e)}function E(e){return"Int8Array"===i(e)}function A(e){return"Int16Array"===i(e)}function k(e){return"Int32Array"===i(e)}function O(e){return"Float32Array"===i(e)}function P(e){return"Float64Array"===i(e)}function x(e){return"BigInt64Array"===i(e)}function T(e){return"BigUint64Array"===i(e)}function R(e){return"[object Map]"===l(e)}function j(e){return"undefined"!=typeof Map&&(R.working?R(e):e instanceof Map)}function C(e){return"[object Set]"===l(e)}function I(e){return"undefined"!=typeof Set&&(C.working?C(e):e instanceof Set)}function U(e){return"[object WeakMap]"===l(e)}function M(e){return"undefined"!=typeof WeakMap&&(U.working?U(e):e instanceof WeakMap)}function N(e){return"[object WeakSet]"===l(e)}function D(e){return N(e)}function H(e){return"[object ArrayBuffer]"===l(e)}function L(e){return"undefined"!=typeof ArrayBuffer&&(H.working?H(e):e instanceof ArrayBuffer)}function W(e){return"[object DataView]"===l(e)}function B(e){return"undefined"!=typeof DataView&&(W.working?W(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=m,t.isArrayBufferView=b,t.isUint8Array=v,t.isUint8ClampedArray=w,t.isUint16Array=_,t.isUint32Array=S,t.isInt8Array=E,t.isInt16Array=A,t.isInt32Array=k,t.isFloat32Array=O,t.isFloat64Array=P,t.isBigInt64Array=x,t.isBigUint64Array=T,R.working="undefined"!=typeof Map&&R(new Map),t.isMap=j,C.working="undefined"!=typeof Set&&C(new Set),t.isSet=I,U.working="undefined"!=typeof WeakMap&&U(new WeakMap),t.isWeakMap=M,N.working="undefined"!=typeof WeakSet&&N(new WeakSet),t.isWeakSet=D,H.working="undefined"!=typeof ArrayBuffer&&H(new ArrayBuffer),t.isArrayBuffer=L,W.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&W(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=B;var F="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function $(e){return"[object SharedArrayBuffer]"===l(e)}function K(e){return void 0!==F&&(void 0===$.working&&($.working=$(new F)),$.working?$(e):e instanceof F)}function q(e){return"[object AsyncFunction]"===l(e)}function J(e){return"[object Map Iterator]"===l(e)}function z(e){return"[object Set Iterator]"===l(e)}function G(e){return"[object Generator]"===l(e)}function V(e){return"[object WebAssembly.Module]"===l(e)}function Y(e){return g(e,f)}function X(e){return g(e,p)}function Z(e){return g(e,d)}function Q(e){return u&&g(e,h)}function ee(e){return c&&g(e,y)}function et(e){return Y(e)||X(e)||Z(e)||Q(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(L(e)||K(e))}t.isSharedArrayBuffer=K,t.isAsyncFunction=q,t.isMapIterator=J,t.isSetIterator=z,t.isGeneratorObject=G,t.isWebAssemblyCompiledModule=V,t.isNumberObject=Y,t.isStringObject=X,t.isBooleanObject=Z,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},o=/%[sdj%]/g;t.format=function(e){if(!A(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(c(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,i=n.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r<i;s=n[++r])_(s)||!x(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,r){if(void 0!==i&&!0===i.noDeprecation)return e;if(void 0===i)return function(){return t.deprecate(e,r).apply(this,arguments)};var n=!1;
vendor: 4,911 bytes, line 25
25return function(){if(!n){if(i.throwDeprecation)throw Error(r);i.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if(i.env.NODE_DEBUG){var u=i.env.NODE_DEBUG;s=RegExp("^"+(u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase())+"$","i")}function c(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),O(n.showHidden)&&(n.showHidden=!1),O(n.depth)&&(n.depth=2),O(n.colors)&&(n.colors=!1),O(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),d(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function f(e,t){return e}function p(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function d(e,r,n){if(e.customInspect&&r&&j(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var o,i=r.inspect(n,e);return A(i)||(i=d(e,i,n)),i}var a=h(e,r);if(a)return a;var s=Object.keys(r),u=p(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),R(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return y(r);if(0===s.length){if(j(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(P(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(T(r))return e.stylize(Date.prototype.toString.call(r),"date");if(R(r))return y(r)}var l="",f=!1,w=["{","}"];return(v(r)&&(f=!0,w=["[","]"]),j(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),P(r)&&(l=" "+RegExp.prototype.toString.call(r)),T(r)&&(l=" "+Date.prototype.toUTCString.call(r)),R(r)&&(l=" "+y(r)),0!==s.length||f&&0!=r.length)?n<0?P(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),o=f?g(e,r,n,u,s):s.map(function(t){return m(e,r,n,u,t,f)}),e.seen.pop(),b(o,l,w)):w[0]+l+w[1]}function h(e,t){if(O(t))return e.stylize("undefined","undefined");if(A(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return E(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):_(t)?e.stylize("null","null"):void 0}function y(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,o){for(var i=[],a=0,s=t.length;a<s;++a)D(t,String(a))?i.push(m(e,t,r,n,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(m(e,t,r,n,o,!0))}),i}function m(e,t,r,n,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),D(n,o)||(a="["+o+"]"),!s&&(0>e.seen.indexOf(u.value)?(s=_(r)?d(e,u.value,null):d(e,u.value,r-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),O(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function _(e){return null===e}function S(e){return null==e}function E(e){return"number"==typeof e}function A(e){return"string"==typeof e}function k(e){return"symbol"==typeof e}function O(e){return void 0===e}function P(e){return x(e)&&"[object RegExp]"===I(e)}function x(e){return"object"==typeof e&&null!==e}function T(e){return x(e)&&"[object Date]"===I(e)}function R(e){return x(e)&&("[object Error]"===I(e)||e instanceof Error)}function j(e){return"function"==typeof e}function C(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function I(e){return Object.prototype.toString.call(e)}function U(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=i.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=v,t.isBoolean=w,t.isNull=_,t.isNullOrUndefined=S,t.isNumber=E,t.isString=A,t.isSymbol
25=k,t.isUndefined=O,t.isRegExp=P,t.types.isRegExp=P,t.isObject=x,t.isDate=T,t.types.isDate=T,t.isError=R,t.types.isNativeError=R,t.isFunction=j,t.isPrimitive=C,t.isBuffer=r(369);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function N(){var e=new Date,t=[U(e.getHours()),U(e.getMinutes()),U(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",N(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!x(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var H="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function W(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r<arguments.length;r++)t.push(arguments[r]);var n=t.pop();if("function"!=typeof n)throw TypeError("The last argument must be of type Function");var o=this,a=function(){return n.apply(o,arguments)};e.apply(this,t).then(function(e){i.nextTick(a.bind(null,null,e))},function(e){i.nextTick(L.bind(null,e,a))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,n(e)),t}t.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(H&&e[H]){var t=e[H];if("function"!=typeof t)throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,H,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,n){e?r(e):t(n)});try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),H&&Object.defineProperty(t,H,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=H,t.callbackify=W},490:function(e,t,n){"use strict";var o=n(144),i=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=i(),l=a("String.prototype.slice"),f={},p=n(24),d=Object.getPrototypeOf;u&&p&&d&&o(c,function(e){if("function"==typeof r.g[e]){var t=new r.g[e];if(!(Symbol.toStringTag in t))throw EvalError("this engine has support for Symbol.toStringTag, but "+e+" does not have the property! Please report this.");var n=d(t),o=p(n,Symbol.toStringTag);o||(o=p(d(n),Symbol.toStringTag)),f[e]=o.get}});var h=function(e){var t=!1;return o(f,function(r,n){if(!t)try{var o=r.call(e);o===n&&(t=o)}catch(e){}}),t},y=n(994);e.exports=function(e){return!!y(e)&&(u?h(e):l(s(e),8,-1))}},349:function(e,t,n){"use strict";var o=n(992);e.exports=function(){return o(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],function(e){return"function"==typeof r.g[e]})}},24:function(e,t,r){"use strict";var n=r(500)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}},o=!0;try{t[e](n,n.exports,s),o=!1}finally{o&&delete a[e]}return n.exports}s.ab=n+"/";var u=s(177);e.exports=u}()},53669:function(module){var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return -1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decode
25URI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,o=r.execScript;!n&&o&&(o.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var i=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(i,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}}};"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=__dirname+"/");var __nested_webpack_exports__={};__webpack_modules__[950](0,__nested_webpack_exports__),module.exports=__nested_webpack_exports__}()},22637:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{HeadersAdapter:function(){return i},ReadonlyHeadersError:function(){return o}});let n=r(30650);class o extends Error{constructor(){super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers")}static callable(){throw new o}}class i extends Headers{constructor(e){super(),this.headers=new Proxy(e,{get(t,r,o){if("symbol"==typeof r)return n.ReflectAdapter.get(t,r,o);let i=r.toLowerCase(),a=Object.keys(e).find(e=>e.toLowerCase()===i);if(void 0!==a)return n.ReflectAdapter.get(t,a,o)},set(t,r,o,i){if("symbol"==typeof r)return n.ReflectAdapter.set(t,r,o,i);let a=r.toLowerCase(),s=Object.keys(e).find(e=>e.toLowerCase()===a);return n.ReflectAdapter.set(t,s??r,o,i)},has(t,r){if("symbol"==typeof r)return n.ReflectAdapter.has(t,r);let o=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===o);return void 0!==i&&n.ReflectAdapter.has(t,i)},deleteProperty(t,r){if("symbol"==typeof r)return n.ReflectAdapter.deleteProperty(t,r);let o=r.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===o);return void 0===i||n.ReflectAdapter.deleteProperty(t,i)}})}static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"append":case"delete":case"set":return o.callable;default:return n.ReflectAdapter.get(e,t,r)}}})}merge(e){return Array.isArray(e)?e.join(", "):e}static from(e){return e instanceof Headers?e:new i(e)}append(e,t){let r=this.headers[e];"string"==typeof r?this.headers[e]=[r,t]:Array.isArray(r)?r.push(t):this.headers[e]=t}delete(e){delete this.headers[e]}get(e){let t=this.headers[e];return void 0!==t?this.merge(t):null}has(e){return void 0!==this.headers[e]}set(e,t){this.headers[e]=t}forEach(e,t){for(let[r,n]of this.entries())e.call(t,n,r,this)}*entries(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase(),r=this.get(t);yield[t,r]}}*keys(){for(let e of Object.keys(this.headers)){let t=e.toLowerCase();yield t}}*values(){for(let e of Object.keys(this.headers)){let t=this.get(e);yield t}}[Symbol.iterator](){return this.entries()}}},40692:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{MutableRequestCookiesAdapter:function(){return f},ReadonlyRequestCookiesError:function(){return a},RequestCookiesAdapter:function(){return s},appendMutableCookies:function(){return l},getModifiedCookieValues:function(){return c}});let n=r(99767),o=r(30650),i=r(51845);
25class a extends Error{constructor(){super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options")}static callable(){throw new a}}class s{static seal(e){return new Proxy(e,{get(e,t,r){switch(t){case"clear":case"delete":case"set":return a.callable;default:return o.ReflectAdapter.get(e,t,r)}}})}}let u=Symbol.for("next.mutated.cookies");function c(e){let t=e[u];return t&&Array.isArray(t)&&0!==t.length?t:[]}function l(e,t){let r=c(t);if(0===r.length)return!1;let o=new n.ResponseCookies(e),i=o.getAll();for(let e of r)o.set(e);for(let e of i)o.set(e);return!0}class f{static wrap(e,t){let r=new n.ResponseCookies(new Headers);for(let t of e.getAll())r.set(t);let a=[],s=new Set,c=()=>{let e=i.staticGenerationAsyncStorage.getStore();if(e&&(e.pathWasRevalidated=!0),a=r.getAll().filter(e=>s.has(e.name)),t){let e=[];for(let t of a){let r=new n.ResponseCookies(new Headers);r.set(t),e.push(r.toString())}t(e)}};return new Proxy(r,{get(e,t,r){switch(t){case u:return a;case"delete":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{e.delete(...t)}finally{c()}};case"set":return function(...t){s.add("string"==typeof t[0]?t[0]:t[0].name);try{return e.set(...t)}finally{c()}};default:return o.ReflectAdapter.get(e,t,r)}}})}}},99767:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RequestCookies:function(){return n.RequestCookies},ResponseCookies:function(){return n.ResponseCookies},stringifyCookie:function(){return n.stringifyCookie}});let n=r(82408)},91830:function(e,t,r){t.OAuth=r(5576).OAuth,t.OAuthEcho=r(5576).OAuthEcho,t.OAuth2=r(33059).OAuth2},80159:function(e){e.exports.isAnEarlyCloseHost=function(e){return e&&e.match(".*google(apis)?.com$")}},5576:function(e,t,r){var n=r(82957).Buffer,o=r(68989),i=r(74351),a=r(12251),s=r(51983),u=r(93813),c=r(85605),l=r(80159);t.OAuth=function(e,t,r,n,o,i,a,s,u){if(this._isEcho=!1,this._requestUrl=e,this._accessUrl=t,this._consumerKey=r,this._consumerSecret=this._encodeData(n),"RSA-SHA1"==a&&(this._privateKey=n),this._version=o,void 0===i?this._authorize_callback="oob":this._authorize_callback=i,"PLAINTEXT"!=a&&"HMAC-SHA1"!=a&&"RSA-SHA1"!=a)throw Error("Un-supported signature method: "+a);this._signatureMethod=a,this._nonceSize=s||32,this._headers=u||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._clientOptions=this._defaultClientOptions={requestTokenHttpMethod:"POST",accessTokenHttpMethod:"POST",followRedirects:!0},this._oauthParameterSeperator=","},t.OAuthEcho=function(e,t,r,n,o,i,a,s){if(this._isEcho=!0,this._realm=e,this._verifyCredentials=t,this._consumerKey=r,this._consumerSecret=this._encodeData(n),"RSA-SHA1"==i&&(this._privateKey=n),this._version=o,"PLAINTEXT"!=i&&"HMAC-SHA1"!=i&&"RSA-SHA1"!=i)throw Error("Un-supported signature method: "+i);this._signatureMethod=i,this._nonceSize=a||32,this._headers=s||{Accept:"*/*",Connection:"close","User-Agent":"Node authentication"},this._oauthParameterSeperator=","},t.OAuthEcho.prototype=t.OAuth.prototype,t.OAuth.prototype._getTimestamp=function(){return Math.floor(new Date().getTime()/1e3)},t.OAuth.prototype._encodeData=function(e){return null==e||""==e?"":encodeURIComponent(e).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")},t.OAuth.prototype._decodeData=function(e){return null!=e&&(e=e.replace(/\+/g," ")),decodeURIComponent(e)},t.OAuth.prototype._getSignature=function(e,t,r,n){var o=this._createSignatureBase(e,t,r);return this._createSignature(o,n)},t.OAuth.prototype._normalizeUrl=function(e){var t=u.parse(e,!0),r="";return t.port&&("http:"==t.protocol&&"80"!=t.port||"https:"==t.protocol&&"443"!=t.port)&&(r=":"+t.port),t.pathname&&""!=t.pathname||(t.pathname="/"),t.protocol+"//"+t.hostname+r+t.pathname},t.OAuth.prototype._isParameterNameAnOAuthParameter=function(e){var t=e.match("^oauth_");return!!t&&"oauth_"===t[0]},t.OAuth.prototype._buildAuthorizationHeaders=function(e){var t="OAuth ";
25this._isEcho&&(t+='realm="'+this._realm+'",');for(var r=0;r<e.length;r++)this._isParameterNameAnOAuthParameter(e[r][0])&&(t+=""+this._encodeData(e[r][0])+'="'+this._encodeData(e[r][1])+'"'+this._oauthParameterSeperator);return t.substring(0,t.length-this._oauthParameterSeperator.length)},t.OAuth.prototype._makeArrayOfArgumentsHash=function(e){var t=[];for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var o=0;o<n.length;o++)t[t.length]=[r,n[o]];else t[t.length]=[r,n]}return t},t.OAuth.prototype._sortRequestParams=function(e){return e.sort(function(e,t){return e[0]==t[0]?e[1]<t[1]?-1:1:e[0]<t[0]?-1:1}),e},t.OAuth.prototype._normaliseRequestParams=function(e){for(var t=this._makeArrayOfArgumentsHash(e),r=0;r<t.length;r++)t[r][0]=this._encodeData(t[r][0]),t[r][1]=this._encodeData(t[r][1]);t=this._sortRequestParams(t);for(var e="",r=0;r<t.length;r++)e+=t[r][0]+"="+t[r][1],r<t.length-1&&(e+="&");return e},t.OAuth.prototype._createSignatureBase=function(e,t,r){return t=this._encodeData(this._normalizeUrl(t)),r=this._encodeData(r),e.toUpperCase()+"&"+t+"&"+r},t.OAuth.prototype._createSignature=function(e,t){if(void 0===t)var t="";else t=this._encodeData(t);var r=this._consumerSecret+"&"+t,n="";return"PLAINTEXT"==this._signatureMethod?n=r:"RSA-SHA1"==this._signatureMethod?(r=this._privateKey||"",n=o.createSign("RSA-SHA1").update(e).sign(r,"base64")):n=o.Hmac?o.createHmac("sha1",r).update(e).digest("base64"):i.HMACSHA1(r,e),n},t.OAuth.prototype.NONCE_CHARS=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"],t.OAuth.prototype._getNonce=function(e){for(var t,r=[],n=this.NONCE_CHARS,o=n.length,i=0;i<e;i++)t=Math.floor(Math.random()*o),r[i]=n[t];return r.join("")},t.OAuth.prototype._createClient=function(e,t,r,n,o,i){var u,c={host:t,port:e,path:n,method:r,headers:o};return(u=i?s:a).request(c)},t.OAuth.prototype._prepareParameters=function(e,t,r,n,o){var i={oauth_timestamp:this._getTimestamp(),oauth_nonce:this._getNonce(this._nonceSize),oauth_version:this._version,oauth_signature_method:this._signatureMethod,oauth_consumer_key:this._consumerKey};if(e&&(i.oauth_token=e),this._isEcho)l=this._getSignature("GET",this._verifyCredentials,this._normaliseRequestParam
25s(i),t);else{if(o)for(var a in o)o.hasOwnProperty(a)&&(i[a]=o[a]);var s=u.parse(n,!1);if(s.query){var l,f,p=c.parse(s.query);for(var a in p){var d=p[a];if("object"==typeof d)for(f in d)i[a+"["+f+"]"]=d[f];else i[a]=d}}l=this._getSignature(r,n,this._normaliseRequestParams(i),t)}var h=this._sortRequestParams(this._makeArrayOfArgumentsHash(i));return h[h.length]=["oauth_signature",l],h},t.OAuth.prototype._performSecureRequest=function(e,t,r,o,i,a,s,f){var p,d,h=this._prepareParameters(e,t,r,o,i);s||(s="application/x-www-form-urlencoded");var y=u.parse(o,!1);"http:"!=y.protocol||y.port||(y.port=80),"https:"!=y.protocol||y.port||(y.port=443);var g={},m=this._buildAuthorizationHeaders(h);for(var b in this._isEcho?g["X-Verify-Credentials-Authorization"]=m:g.Authorization=m,g.Host=y.host,this._headers)this._headers.hasOwnProperty(b)&&(g[b]=this._headers[b]);for(var b in i)this._isParameterNameAnOAuthParameter(b)&&delete i[b];("POST"==r||"PUT"==r)&&null==a&&null!=i&&(a=c.stringify(i).replace(/\!/g,"%21").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")),a?n.isBuffer(a)?g["Content-length"]=a.length:g["Content-length"]=n.byteLength(a):g["Content-length"]=0,g["Content-Type"]=s,y.pathname&&""!=y.pathname||(y.pathname="/"),p=y.query?y.pathname+"?"+y.query:y.pathname,d="https:"==y.protocol?this._createClient(y.port,y.hostname,r,p,g,!0):this._createClient(y.port,y.hostname,r,p,g);var v=this._clientOptions;if(!f)return("POST"==r||"PUT"==r)&&null!=a&&""!=a&&d.write(a),d;var w="",_=this,S=l.isAnEarlyCloseHost(y.hostname),E=!1,A=function(n){E||(E=!0,n.statusCode>=200&&n.statusCode<=299?f(null,w,n):(301==n.statusCode||302==n.statusCode)&&v.followRedirects&&n.headers&&n.headers.location?_._performSecureRequest(e,t,r,n.headers.location,i,a,s,f):f({statusCode:n.statusCode,data:w},w,n))};d.on("response",function(e){e.setEncoding("utf8"),e.on("data",function(e){w+=e}),e.on("end",function(){A(e)}),e.on("close",function(){S&&A(e)})}),d.on("error",function(e){E||(E=!0,f(e))}),("POST"==r||"PUT"==r)&&null!=a&&""!=a&&d.write(a),d.end()},t.OAuth.prototype.setClientOptions=function(e){var t,r={},n=Object.prototype.hasOwnProperty;for(t in this._defaultClientOptions)n.call(e,t)?r[t]=e[t]:r[t]=this._defaultClientOptions[t];this._clientOptions=r},t.OAuth.prototype.getOAuthAccessToken=function(e,t,r,n){var o={};"function"==typeof r?n=r:o.oauth_verifier=r,this._performSecureRequest(e,t,this._clientOptions.accessTokenHttpMethod,this._accessUrl,o,null,null,function(e,t,r){if(e)n(e);else{var o=c.parse(t),i=o.oauth_token;delete o.oauth_token;var a=o.oauth_token_secret;delete o.oauth_token_secret,n(null,i,a,o)}})},t.OAuth.prototype.getProtectedResource=function(e,t,r,n,o){this._performSecureRequest(r,n,t,e,null,"",null,o)},t.OAuth.prototype.delete=function(e,t,r,n){return this._performSecureRequest(t,r,"DELETE",e,null,"",null,n)},t.OAuth.prototype.get=function(e,t,r,n){return this._performSecureRequest(t,r,"GET",e,null,"",null,n)},t.OAuth.prototype._putOrPost=function(e,t,r,o,i,a,s){var u=null;return"function"==typeof a&&(s=a,a=null),"string"==typeof i||n.isBuffer(i)||(a="application/x-www-form-urlencoded",u=i,i=null),this._performSecureRequest(r,o,e,t,u,i,a,s)},t.OAuth.prototype.put=function(e,t,r,n,o,i){return this._putOrPost("PUT",e,t,r,n,o,i)},t.OAuth.prototype.post=function(e,t,r,n,o,i){return this._putOrPost("POST",e,t,r,n,o,i)},t.OAuth.prototype.getOAuthRequestToken=function(e,t){"function"==typeof e&&(t=e,e={}),this._authorize_callback&&(e.oauth_callback=this._authorize_callback),this._performSecureRequest(null,null,this._clientOptions.requestTokenHttpMethod,this._requestUrl,e,null,null,function(e,r,n){if(e)t(e);else{var o=c.parse(r),i=o.oauth_token,a=o.oauth_token_secret;delete o.oauth_token,delete o.oauth_token_secret,t(null,i,a,o)}})},t.OAuth.prototype.signUrl=function(e,t,r,n){if(void 0===n)var n="GET";for(var o=this._prepareParameters(t,r,n,e,{}),i=u.parse(e,!1),a="",s=0;s<o.length;s++)a+=o[s][0]+"="+this._encodeData(o[s][1])+"&";return a=a.substring(0,a.length-1),i.protocol+"//"+i.host+i.pathname+"?"+a},t.OAuth.prototype.authHeader=function(e,t,r,n){if(void 0===n)var n="GET";var o=this._prepareParameters(t,r,n,e,{});return this._buildAuthorizationHeaders(o)}},33059:function(e,t,r){var n=r(82957).Buffer,o=r(85605),i=(r(68989),r(51983)),a=r(12251),s=r(93813),u=r(80159);t.OAuth2=function(e,t,r,n,o,i){this._clientId=e,this._clientSecret=t,this._baseSite=r,this._authorizeUrl=n||"/oauth/authorize",this._accessTokenUrl=o||"/oauth/access_token",this._accessTokenName="access_token",this._authMethod="Bearer",this._customHeaders=i||{},this._useAuthorizationHeaderForGET=!1,this._agent=void 0},t.OAuth2.prototype.setAgent=function(e){this._agent=e},t.OAuth2.prototype.setAccessTokenName=function(e){this._accessTokenName=e},t.OAuth2.prototype.setAuthMethod=function(e){this._authMethod=e},t.OAuth2.prototype.useAuthorizationHeaderforGET=function(e){this._useAuthorizationHeaderForGET=e},t.OAuth2.prototype._getAccessTokenUrl=function(){return this._baseSite+this._accessTokenUrl},t.OAuth2.prototype.buildAuthHeader=function(e){return this._authMethod+" "+e},t.OAuth2.prototype._chooseHttpLibrary=function(e){var t=i;return"https:"!=e.protocol&&(t=a),t},t.OAuth2.prototype._request=function(e,t,r,i,a,u){var c=s.parse(t,!0);"https:"!=c.protocol||c.port||(c.port=443);var l=this._chooseHttpLibrary(c),f={};for(var p in this._customHeaders)f[p]=this._customHeaders[p];if(r)for(var p in r)f[p]=r[p];f.Host=c.host,f["User-Agent"]||(f["User-Agent"]="Node-oauth"),i?n.isBuffer(i)?f["Content-Length"]=i.length:f["Content-Length"]=n.byteLength(i):f["Content-length"]=0,!a||"Authorization"in f||(c.query||(c.query={}),c.query[this._accessTokenName]=a);var d=o.stringify(c.query);d&&(d="?"+d);var h={host:c.hostname,port:c.port,path:c.pathname+d,method:e,headers:f};this._executeRequest(l,h,i,u)},t.OAuth2.prototype._executeRequest=function(e,t,r,n){var o=u.isAnEarlyCloseHost(t.host),i=!1;function a(e,t){i||(i=!0,e.statusCode>=200&&e.statusCode<=299||301==e.statusCode||302==e.statusCode?n(null,t,e):n({statusCode:e.statusCode,data:t}))}var s="";this._agent&&(t.agent=this._agent);var c=e.request(t);c.on("response",function(e){e.on("data",function(e){s+=e}),e.on("close",function(t){o&&a(e,s)}),e.addListener("end",function(){a(e,s)})}),c.on("error",function(e){i=!0,n(e)}),("POST"==t.method||"PUT"==t.method)&&r&&c.write(r),c.end()},t.OAuth2.prototype.getAuthorizeUrl=function(e){var e=e||{};return e.client_id=this._clientId,this._baseSite+this._authorizeUrl+"?"+o.stringify(e)},t.OAuth2.prototype.getOAuthAccessToken=function(e,t,r){var t=t||{};t.client_id=this._clientId,t.client_secret=this._clientSecret;var n="refresh_token"===t.grant_type?"refresh_token":"code";t[n]=e;var i=o.stringify(t),a={"Content-Type":"application/x-www-form-urlencoded"};this._request("POST",this._getAccessTokenUrl(),a,i,null,function(e,t,n){if(e)r(e);else{try{i=JSON.parse(t)}catch(e){i=o.parse(t)}var i,a=i.access_token,s=i.refresh_token;delete i.refresh_token,r(null,a,s,i)}})},t.OAuth2.prototype.getProtectedResource=function(e,t,r){this._request("GET",e,{},"",t,r)},t.OAuth2.prototype.get=function(e,t,r){if(this._useAuthorizationHeaderForGET){var n={Authorization:this.buildAuthHeader(t)};t=null}else n={};this._request("GET",e,n,"",t,r)}},74351:function(e,t){var r="=";function n(e,t){return i(o(a(e),a(t)))}function o(e,t){var r=s(e);r.length>16&&(r=c(r,8*e.length));for(var n=Array(16),o=Array(16),i=0;i<16;i++)n[i]=909522486^r[i],o[i]=1549556828^r[i];var a=c(n.concat(s(t)),512+8*t.length);return u(c(o.concat(a),672))}function i(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
25+/",n="",o=e.length,i=0;i<o;i+=3)for(var a=e.charCodeAt(i)<<16|(i+1<o?e.charCodeAt(i+1)<<8:0)|(i+2<o?e.charCodeAt(i+2):0),s=0;s<4;s++)8*i+6*s>8*e.length?n+=r:n+=t.charAt(a>>>6*(3-s)&63);return n}function a(e){for(var t,r,n="",o=-1;++o<e.length;)t=e.charCodeAt(o),r=o+1<e.length?e.charCodeAt(o+1):0,55296<=t&&t<=56319&&56320<=r&&r<=57343&&(t=65536+((1023&t)<<10)+(1023&r),o++),t<=127?n+=String.fromCharCode(t):t<=2047?n+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?n+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(n+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return n}function s(e){for(var t=Array(e.length>>2),r=0;r<t.length;r++)t[r]=0;for(var r=0;r<8*e.length;r+=8)t[r>>5]|=(255&e.charCodeAt(r/8))<<24-r%32;return t}function u(e){for(var t="",r=0;r<32*e.length;r+=8)t+=String.fromCharCode(e[r>>5]>>>24-r%32&255);return t}function c(e,t){e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(var r=Array(80),n=1732584193,o=-271733879,i=-1732584194,a=271733878,s=-1009589776,u=0;u<e.length;u+=16){for(var c=n,h=o,y=i,g=a,m=s,b=0;b<80;b++){b<16?r[b]=e[u+b]:r[b]=d(r[b-3]^r[b-8]^r[b-14]^r[b-16],1);var v=p(p(d(n,5),l(b,o,i,a)),p(p(s,r[b]),f(b)));s=a,a=i,i=d(o,30),o=n,n=v}n=p(n,c),o=p(o,h),i=p(i,y),a=p(a,g),s=p(s,m)}return[n,o,i,a,s]}function l(e,t,r,n){return e<20?t&r|~t&n:e<40?t^r^n:e<60?t&r|t&n|r&n:t^r^n}function f(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514}function p(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function d(e,t){return e<<t|e>>>32-t}t.HMACSHA1=function(e,t){return n(e,t)}},25080:function(e,t,r){let n;var o=r(82957).Buffer;let{strict:i}=r(4784),{createHash:a}=r(68989),{format:s}=r(83598);if(o.isEncoding("base64url"))n=e=>e.toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");n=t=>e(t.toString("base64"))}function u(e,t){switch(e){case"HS256":case"RS256":case"PS256":case"ES256":case"ES256K":return a("sha256");case"HS384":case"RS384":case"PS384":case"ES384":return a("sha384");case"HS512":case"RS512":case"PS512":case"ES512":case"Ed25519":return a("sha512");case"Ed448":return a("shake256",{outputLength:114});case"ML-DSA-44":case"ML-DSA-65":case"ML-DSA-87":return a("shake256",{outputLength:64});case"EdDSA":switch(t){case"Ed25519":return a("sha512");case"Ed448":return a("shake256",{outputLength:114});default:throw TypeError("unrecognized or invalid EdDSA curve provided")}default:throw TypeError("unrecognized or invalid JWS algorithm provided")}}function c(e,t,r){let o=u(t,r).update(e).digest();return n(o.slice(0,o.length/2))}function l(e,t,r,n,o){let a,u;if("string"!=typeof e.claim||!e.claim)throw TypeError("names.claim must be a non-empty string");if("string"!=typeof e.source||!e.source)throw TypeError("names.source must be a non-empty string");i("string"==typeof t&&t,`${e.claim} must be a non-empty string`),i("string"==typeof r&&r,`${e.source} must be a non-empty string`);try{a=c(r,n,o)}catch(t){u=s("%s could not be validated (%s)",e.claim,t.message)}u=u||s("%s mismatch, expected %s, got: %s",e.claim,a,t),i.equal(a,t,u)}e.exports={validate:l,generate:c}},44953:function(e,t,r){"use strict";let n;var o=r(40257),i=r(82957).Buffer;Object.defineProperty(t,"__esModule",{value:!0});let a=r(95691),s=r(25134),u=r(11455),{inspect:c}=r(83598),l=r(12251),f=r(68989),{strict:p}=r(4784),d=r(85605),h=r(93813),{URL:y,URLSearchParams:g}=r(93813),m=r(86413),b=r(25080),v=r(42158),w=r(62442),_=r(97804),S=r(23722),E=r(33515),{assertSigningAlgValuesSupport:A,assertIssuerConfiguration:k}=r(50386),O=r(52947),P=r(95944),x=r(72302),T=r(54044),{OPError:R,RPError:j}=r(33199),C=r(84054),{random:I}=r(96453),U=r(5448),{CLOCK_TOLERANCE:M}=r(91371),{keystores:N}=r(10329),D=r(92404),H=r(33229),{authenticatedPost:L,resolveResponseType:W,resolveRedirectUri:B}=r(2876),{queryKeyStore:F}=r(94144),$=r(82091),[K,q]=o.version.slice(1).split(".").map(e=>parseInt(e,10)),J=K>=17||16===K&&q>=9,z=Symbol(),G=Symbol(),V=Symbol();function Y(e){return O(e,"access_token","code","error_description","error_uri","error","expires_in","id_token","iss","response","session_state","state","token_type")}function X(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Bearer";return"".concat(t," ").concat(e)}function Z(e){let t=h.parse(e);return t.search?d.parse(t.search.substring(1)):{}}function Q(e,t,r){if(void 0===e[r])throw new j({message:"missing required JWT property ".concat(r),jwt:t})}function ee(e){let t={client_id:this.client_id,scope:"openid",response_type:W.call(this),redirect_uri:B.call(this),...e};
25return Object.entries(t).forEach(e=>{let[r,n]=e;null==n?delete t[r]:"claims"===r&&"object"==typeof n?t[r]=JSON.stringify(n):"resource"===r&&Array.isArray(n)?t[r]=n:"string"!=typeof n&&(t[r]=String(n))}),t}function et(e){if(!P(e)||!Array.isArray(e.keys)||e.keys.some(e=>!P(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");return D.fromJWKS(e,{onlyPrivate:!0})}function er(e,t){try{let r=e.issuer.token_endpoint_auth_methods_supported;!r.includes(t.token_endpoint_auth_method)&&r.includes("client_secret_post")&&(t.token_endpoint_auth_method="client_secret_post")}catch(e){}}function en(e,t,r){if(t.token_endpoint_auth_method||er(e,r),t.redirect_uri){if(t.redirect_uris)throw TypeError("provide a redirect_uri or redirect_uris, not both");r.redirect_uris=[t.redirect_uri],delete r.redirect_uri}if(t.response_type){if(t.response_types)throw TypeError("provide a response_type or response_types, not both");r.response_types=[t.response_type],delete r.response_type}}function eo(e,t,r){if(!t["".concat(e,"_endpoint")])return;let n=r.token_endpoint_auth_method,o=r.token_endpoint_auth_signing_alg,i="".concat(e,"_endpoint_auth_method"),a="".concat(e,"_endpoint_auth_signing_alg");void 0===r[i]&&void 0===r[a]&&(void 0!==n&&(r[i]=n),void 0!==o&&(r[a]=o))}var ei=new WeakMap,ea=new WeakMap,es=new WeakMap,eu=new WeakMap;let ec=c.custom;class el{authorizationUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!P(e))throw TypeError("params must be a plain object");k(this.issuer,"authorization_endpoint");let t=new y(this.issuer.authorization_endpoint);for(let[r,n]of Object.entries(ee.call(this,e)))if(Array.isArray(n))for(let e of(t.searchParams.delete(r),n))t.searchParams.append(r,e);else t.searchParams.set(r,n);return t.href.replace(/\+/g,"%20")}authorizationPost(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!P(e))throw TypeError("params must be a plain object");let t=ee.call(this,e),r=Object.keys(t).map(e=>'<input type="hidden" name="'.concat(e,'" value="').concat(t[e],'"/>')).join("\n");return'<!DOCTYPE html>\n<head>\n<title>Requesting Authorization</title>\n</head>\n<body onload="javascript:document.forms[0].submit()">\n<form method="post" action="'.concat(this.issuer.authorization_endpoint,'">\n ').concat(r,"\n</form>\n</body>\n</html>")}endSessionUrl(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k(this.issuer,"end_session_endpoint");let{0:r,length:n}=this.post_logout_redirect_uris||[],{post_logout_redirect_uri:o=1===n?r:void 0}=t;if({id_token_hint:e,...t}=t,e instanceof T){if(!e.id_token)throw TypeError("id_token not present in TokenSet");e=e.id_token}let i=h.parse(this.issuer.end_session_endpoint),a=S(Z(this.issuer.end_session_endpoint),t,{post_logout_redirect_uri:o,client_id:this.client_id},{id_token_hint:e});return Object.entries(a).forEach(e=>{let[t,r]=e;null==r&&delete a[t]}),i.search=null,i.query=a,h.format(i)}callbackParams(e){let t=e instanceof l.IncomingMessage||e&&e.method&&e.url;if("string"!=typeof e&&!t)throw TypeError("#callbackParams only accepts string urls, http.IncomingMessage or a lookalike");if(!t)return Y(Z(e));switch(e.method){case"GET":return Y(Z(e.url));case"POST":if(void 0===e.body)throw TypeError("incoming message body missing, include a body parser prior to this method call");switch(typeof e.body){case"object":case"string":if(i.isBuffer(e.body))return Y(d.parse(e.body.toString("utf-8")));if("string"==typeof e.body)return Y(d.parse(e.body));return Y(e.body);default:throw TypeError("invalid IncomingMessage body object")}default:throw TypeError("invalid IncomingMessage method")}}async callback(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{exchangeBody:n,clientAssertionPayload:o,DPoP:i}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Y(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(a.response);a=await this.validateJARM(e)}}else throw new j({message:"expected a JARM response",checks:r,params:a});if(this.default_max_age&&!r.max_age&&(r.max_age=this.default_max_age),a.state&&!r.state)throw TypeError("checks.state argument is missing");if(!a.state&&r.state)throw new j({message:"state missing from the response",checks:r,params:a});if(r.state!==a.state)throw new j({printf:["state mismatch, expected %s, got: %s",r.state,a.state],checks:r,params:a});if("iss"in a){if(k(this.issuer,"issuer"),a.iss!==this.issuer.issuer)throw new j({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,a.iss],params:a})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in a)&&!("response"in t))throw new j({message:"iss missing from the response",params:a});if(a.error)throw new R(a);let s={code:["code"],id_token:["id_token"],token:["access_token","token_type"]};if(r.response_type){for(let e of r.response_type.split(" "))if("none"===e){if(a.code||a.id_token||a.access_token)throw new j({message:'unexpected params encountered for "none" response',checks:r,params:a})}else for(let t of s[e])if(!a[t])throw new j({message:"".concat(t," missing from response"),checks:r,params:a})}if(a.id_token){let e=new T(a);if(await this.decryptIdToken(e),await this.validateIdToken(e,r.nonce,"authorization",r.max_age,r.state),!a.code)return e}if(a.code){let t=await this.grant({...n,grant_type:"authorization_code",code:a.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:o,DPoP:i});return await this.decryptIdToken(t),await this.validateIdToken(t,r.nonce,"token",r.max_age),a.session_state&&(t.session_state=a.session_state),t}return new T(a)}async oauthCallback(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{exchangeBody:n,clientAssertionPayload:o,DPoP:i}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=Y(t);if(!r.jarm||"response"in t){if("response"in t){let e=await this.decryptJARM(a.response);a=await this.validateJARM(e)}}else throw new j({message:"expected a JARM response",checks:r,params:a});if(a.state&&!r.state)throw TypeError("checks.state argument is missing");if(!a.state&&r.state)throw new j({message:"state missing from the response",checks:r,params:a});if(r.state!==a.state)throw new j({printf:["state mismatch, expected %s, got: %s",r.state,a.state],checks:r,params:a});if("iss"in a){if(k(this.issuer,"issuer"),a.iss!==this.issuer.issuer)throw new j({printf:["iss mismatch, expected %s, got: %s",this.issuer.issuer,a.iss],params:a})}else if(this.issuer.authorization_response_iss_parameter_supported&&!("id_token"in a)&&!("response"in t))throw new j({message:"iss missing from the response",params:a});if(a.error)throw new R(a);if("string"==typeof a.id_token&&a.id_token.length)throw new j({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:a});delete a.id_token;let s={code:["code"],token:["access_token","token_type"]};if(r.response_type)for(let e of r.response_type.split(" ")){if("none"===e&&(a.code||a.id_token||a.access_token))throw new j({message:'unexpected params encountered for "none" response',checks:r,params:a});if(s[e]){for(let t of s[e])if(!a[t])throw new j({message:"".concat(t," missing from response"),checks:r,params:a})}}
25if(a.code){let t=await this.grant({...n,grant_type:"authorization_code",code:a.code,redirect_uri:e,code_verifier:r.code_verifier},{clientAssertionPayload:o,DPoP:i});if("string"==typeof t.id_token&&t.id_token.length)throw new j({message:"id_token detected in the response, you must use client.callback() instead of client.oauthCallback()",params:a});return delete t.id_token,t}return new T(a)}async decryptIdToken(e){if(!this.id_token_encrypted_response_alg)return e;let t=e;if(t instanceof T){if(!t.id_token)throw TypeError("id_token not present in TokenSet");t=t.id_token}let r=this.id_token_encrypted_response_alg,n=this.id_token_encrypted_response_enc,o=await this.decryptJWE(t,r,n);return e instanceof T?(e.id_token=o,e):o}async validateJWTUserinfo(e){let t=this.userinfo_signed_response_alg;return this.validateJWT(e,t,[])}async decryptJARM(e){if(!this.authorization_encrypted_response_alg)return e;let t=this.authorization_encrypted_response_alg,r=this.authorization_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWTUserinfo(e){if(!this.userinfo_encrypted_response_alg)return e;let t=this.userinfo_encrypted_response_alg,r=this.userinfo_encrypted_response_enc;return this.decryptJWE(e,t,r)}async decryptJWE(e,t){let r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"A128CBC-HS256",o=JSON.parse(_.decode(e.split(".")[0]));if(o.alg!==t)throw new j({printf:["unexpected JWE alg received, expected %s, got: %s",t,o.alg],jwt:e});if(o.enc!==n)throw new j({printf:["unexpected JWE enc received, expected %s, got: %s",n,o.enc],jwt:e});let i=e=>new TextDecoder().decode(e.plaintext);if(t.match(/^(?:RSA|ECDH)/)){let t=await N.get(this),n=m.decodeProtectedHeader(e);for(let o of t.all({...n,use:"enc"}))if(r=await m.compactDecrypt(e,await o.keyObject(n.alg)).then(i,()=>{}))break}else r=await m.compactDecrypt(e,this.secretForAlg("dir"===t?n:t)).then(i,()=>{});if(!r)throw new j({message:"failed to decrypt JWE",jwt:e});return r}async validateIdToken(e,t,r,n,o){let i=e,a=this.id_token_signed_response_alg;if(i instanceof T){if(!i.id_token)throw TypeError("id_token not present in TokenSet");i=i.id_token}i=String(i);let s=C(),{protected:u,payload:c,key:l}=await this.validateJWT(i,a);if("number"==typeof n||n!==V&&this.require_auth_time){if(!c.auth_time)throw new j({message:"missing required JWT property auth_time",jwt:i});if("number"!=typeof c.auth_time)throw new j({message:"JWT auth_time claim must be a JSON numeric value",jwt:i})}if("number"==typeof n&&c.auth_time+n<s-this[M])throw new j({printf:["too much time has elapsed since the last End-User authentication, max_age %i, auth_time: %i, now %i",n,c.auth_time,s-this[M]],now:s,tolerance:this[M],auth_time:c.auth_time,jwt:i});if(t!==G&&(c.nonce||void 0!==t)&&c.nonce!==t)throw new j({printf:["nonce mismatch, expected %s, got: %s",t,c.nonce],jwt:i});if("authorization"===r){if(!c.at_hash&&e.access_token)throw new j({message:"missing required property at_hash",jwt:i});if(!c.c_hash&&e.code)throw new j({message:"missing required property c_hash",jwt:i});if(this.fapi1()&&!c.s_hash&&(e.state||o))throw new j({message:"missing required property s_hash",jwt:i});if(c.s_hash){if(!o)throw TypeError('cannot verify s_hash, "checks.state" property not provided');try{b.validate({claim:"s_hash",source:"state"},c.s_hash,o,u.alg,l.jwk&&l.jwk.crv)}catch(e){throw new j({message:e.message,jwt:i})}}}if(this.fapi()&&c.iat<s-3600)throw new j({printf:["JWT issued too far in the past, now %i, iat %i",s,c.iat],now:s,tolerance:this[M],iat:c.iat,jwt:i});if(e.access_token&&void 0!==c.at_hash)try{b.validate({claim:"at_hash",source:"access_token"},c.at_hash,e.access_token,u.alg,l.jwk&&l.jwk.crv)}catch(e){throw new j({message:e.message,jwt:i})}if(e.code&&void 0!==c.c_hash)try{b.validate({claim:"c_hash",source:"code"},c.c_hash,e.code,u.alg,l.jwk&&l.jwk.crv)}catch(e){throw new j({message:e.message,jwt:i})}return e}async validateJWT(e,t){let r,n,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["iss","sub","aud","exp","iat"],s="https://self-issued.me"===this.issuer.issuer,u=C();try{({header:r,payload:n}=w(e,{complete:!0}))}catch(t){throw new j({printf:["failed to decode JWT (%s: %s)",t.name,t.message],jwt:e})}if(r.alg!==t)throw new j({printf:["unexpected JWT alg received, expected %s, got: %s",t,r.alg],jwt:e});
25if(s&&(i=[...i,"sub_jwk"]),i.forEach(Q.bind(void 0,n,e)),void 0!==n.iss){let t=this.issuer.issuer;if(a._(this,es)&&(t=this.issuer.issuer.replace("{tenantid}",n.tid)),n.iss!==t)throw new j({printf:["unexpected iss value, expected %s, got: %s",t,n.iss],jwt:e})}if(void 0!==n.iat&&"number"!=typeof n.iat)throw new j({message:"JWT iat claim must be a JSON numeric value",jwt:e});if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new j({message:"JWT nbf claim must be a JSON numeric value",jwt:e});if(n.nbf>u+this[M])throw new j({printf:["JWT not active yet, now %i, nbf %i",u+this[M],n.nbf],now:u,tolerance:this[M],nbf:n.nbf,jwt:e})}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new j({message:"JWT exp claim must be a JSON numeric value",jwt:e});if(u-this[M]>=n.exp)throw new j({printf:["JWT expired, now %i, exp %i",u-this[M],n.exp],now:u,tolerance:this[M],exp:n.exp,jwt:e})}if(void 0!==n.aud){if(Array.isArray(n.aud)){if(n.aud.length>1&&!n.azp)throw new j({message:"missing required JWT property azp",jwt:e});if(!n.aud.includes(this.client_id))throw new j({printf:["aud is missing the client_id, expected %s to be included in %j",this.client_id,n.aud],jwt:e})}else if(n.aud!==this.client_id)throw new j({printf:["aud mismatch, expected %s, got: %s",this.client_id,n.aud],jwt:e})}if(void 0!==n.azp){let t=a._(this,eu);if(!(t="string"==typeof t?[this.client_id,t]:Array.isArray(t)?[this.client_id,...t]:[this.client_id]).includes(n.azp))throw new j({printf:["azp mismatch, got: %s",n.azp],jwt:e})}if(s){try{p(P(n.sub_jwk));let e=await m.importJWK(n.sub_jwk,r.alg);p.equal(e.type,"public"),o=[{keyObject:()=>e}]}catch(t){throw new j({message:"failed to use sub_jwk claim as an asymmetric JSON Web Key",jwt:e})}if(await m.calculateJwkThumbprint(n.sub_jwk)!==n.sub)throw new j({message:"failed to match the subject with sub_jwk",jwt:e})}else r.alg.startsWith("HS")?o=[this.secretForAlg(r.alg)]:"none"!==r.alg&&(o=await F.call(this.issuer,{...r,use:"sig"}));if(!o&&"none"===r.alg)return{protected:r,payload:n};for(let t of o){let o=await m.compactVerify(e,t instanceof Uint8Array?t:await t.keyObject(r.alg)).catch(()=>{});if(o)return{payload:n,protected:o.protectedHeader,key:t}}throw new j({message:"failed to validate JWT signature",jwt:e})}async refresh(e){let{exchangeBody:t,clientAssertionPayload:r,DPoP:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=e;if(o instanceof T){if(!o.refresh_token)throw TypeError("refresh_token not present in TokenSet");o=o.refresh_token}let i=await this.grant({...t,grant_type:"refresh_token",refresh_token:String(o)},{clientAssertionPayload:r,DPoP:n});if(i.id_token&&(await this.decryptIdToken(i),await this.validateIdToken(i,G,"token",V),e instanceof T&&e.id_token)){let t=e.claims().sub,r=i.claims().sub;if(r!==t)throw new j({printf:["sub mismatch, expected %s, got: %s",t,r],jwt:i.id_token})}return i}async requestResource(e,t){let{method:r,headers:n,body:o,DPoP:i,tokenType:a=i?"DPoP":t instanceof T?t.token_type:"Bearer"}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;if(t instanceof T){if(!t.access_token)throw TypeError("access_token not present in TokenSet");t=t.access_token}if(t){if("string"!=typeof t)throw TypeError("invalid access token provided")}else throw TypeError("no access token provided");let u={headers:{Authorization:X(t,a),...n},body:o},c=!!this.tls_client_certificate_bound_access_tokens,l=await U.call(this,{...u,responseType:"buffer",method:r,url:e},{accessToken:t,mTLS:c,DPoP:i}),f=l.headers["www-authenticate"];return s!==z&&f&&f.toLowerCase().startsWith("dpop ")&&"use_dpop_nonce"===E(f).error?this.requestResource(e,t,{method:r,headers:n,body:o,DPoP:i,tokenType:a}):l}async userinfo(e){let t,{method:r="GET",via:n="header",tokenType:o,params:i,DPoP:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this.issuer,"userinfo_endpoint");let s={tokenType:o,method:String(r).toUpperCase(),DPoP:a};if("GET"!==s.method&&"POST"!==s.method)throw TypeError("#userinfo() method can only be POST or a GET");if("body"===n&&"POST"!==s.method)throw TypeError("can only send body on POST");let u=!!(this.userinfo_signed_response_alg||this.userinfo_encrypted_response_alg);u?s.headers={Accept:"application/jwt"}:s.headers={Accept:"application/json"},this.tls_client_certificate_bound_access_tokens&&this.issuer.mtls_endpoint_aliases&&(t=this.issuer.mtls_endpoint_aliases.userinfo_endpoint),t=new y(t||this.issuer.userinfo_endpoint),"body"===n&&(s.headers.Authorization=void 0,s.headers["Content-Type"]="application/x-www-form-urlencoded",s.body=new g,s.body.append("access_token",e instanceof T?e.access_token:e)),i&&("GET"===s.method?Object.entries(i).forEac
25h(e=>{let[r,n]=e;t.searchParams.append(r,n)}):s.body?Object.entries(i).forEach(e=>{let[t,r]=e;s.body.append(t,r)}):(s.body=new g,s.headers["Content-Type"]="application/x-www-form-urlencoded",Object.entries(i).forEach(e=>{let[t,r]=e;s.body.append(t,r)}))),s.body&&(s.body=s.body.toString());let c=await this.requestResource(t,e,s),l=x(c,{bearer:!0});if(u){if(!/^application\/jwt/.test(c.headers["content-type"]))throw new j({message:"expected application/jwt response from the userinfo_endpoint",response:c});let e=c.body.toString(),t=await this.decryptJWTUserinfo(e);if(this.userinfo_signed_response_alg)({payload:l}=await this.validateJWTUserinfo(t));else try{l=JSON.parse(t),p(P(l))}catch(e){throw new j({message:"failed to parse userinfo JWE payload as JSON",jwt:t})}}else try{l=JSON.parse(c.body)}catch(e){throw Object.defineProperty(e,"response",{value:c}),e}if(e instanceof T&&e.id_token){let t=e.claims().sub;if(l.sub!==t)throw new j({printf:["userinfo sub mismatch, expected %s, got: %s",t,l.sub],body:l,jwt:e.id_token})}return l}encryptionSecret(e){let t=e<=256?"sha256":e<=384?"sha384":e<=512&&"sha512";if(!t)throw Error("unsupported symmetric encryption key derivation");return f.createHash(t).update(this.client_secret).digest().slice(0,e/8)}secretForAlg(e){if(!this.client_secret)throw TypeError("client_secret is required");return/^A(\d{3})(?:GCM)?KW$/.test(e)?this.encryptionSecret(parseInt(RegExp.$1,10)):/^A(\d{3})(?:GCM|CBC-HS(\d{3}))$/.test(e)?this.encryptionSecret(parseInt(RegExp.$2||RegExp.$1,10)):new TextEncoder().encode(this.client_secret)}async grant(e){let t,{clientAssertionPayload:r,DPoP:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;k(this.issuer,"token_endpoint");let i=await L.call(this,"token",{form:e,responseType:"json"},{clientAssertionPayload:r,DPoP:n});try{t=x(i)}catch(t){if(o!==z&&t instanceof R&&"use_dpop_nonce"===t.error)return this.grant(e,{clientAssertionPayload:r,DPoP:n},z);throw t}return new T(t)}async deviceAuthorization(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{exchangeBody:t,clientAssertionPayload:r,DPoP:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this.issuer,"device_authorization_endpoint"),k(this.issuer,"token_endpoint");let o=ee.call(this,{client_id:this.client_id,redirect_uri:null,response_type:null,...e}),i=x(await L.call(this,"device_authorization",{responseType:"json",form:o},{clientAssertionPayload:r,endpointAuthMethod:"token"}));return new $({client:this,exchangeBody:t,clientAssertionPayload:r,response:i,maxAge:e.max_age,DPoP:n})}async revoke(e,t){let{revokeBody:r,clientAssertionPayload:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k(this.issuer,"revocation_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let o={...r,token:e};t&&(o.token_type_hint=t),x(await L.call(this,"revocation",{form:o},{clientAssertionPayload:n}),{body:!1})}async introspect(e,t){let{introspectBody:r,clientAssertionPayload:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(k(this.issuer,"introspection_endpoint"),void 0!==t&&"string"!=typeof t)throw TypeError("hint must be a string");let o={...r,token:e};return t&&(o.token_type_hint=t),x(await L.call(this,"introspection",{form:o,responseType:"json"},{clientAssertionPayload:n}))}static async register(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{initialAccessToken:r,jwks:n,...o}=t;if(k(this.issuer,"registration_endpoint"),void 0!==n&&!(e.jwks||e.jwks_uri)){let t=await et.call(this,n);e.jwks=t.toJWKS()}return new this(x(await U.call(this,{headers:{Accept:"application/json",...r?{Authorization:X(r)}:void 0},responseType:"json",json:e,url:this.issuer.registration_endpoint,method:"POST"}),{statusCode:201,bearer:!0}),n,o)}get metadata(){return H(Object.fromEntries(a._(this,ei).entries()))}static async fromUri(e,t,r,n){return new this(x(await U.call(this,{method:"GET",url:e,responseType:"json",headers:{Authorization:X(t),Accept:"application/json"}}),{bearer:!0}),r,n)}async requestObject(){let e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{sign:n=this.request_object_signing_alg||"none",encrypt:{alg:o=this.request_object_encryption_alg,enc:i=this.request_object_encryption_enc||"A128CBC-HS256"}={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!P(r))throw TypeError("requestObject must be a plain object");let a=C(),s={alg:n,typ:"oauth-authz-req+jwt"},u=JSON.stringify(S({},r,{iss:this.client_id,aud:this.issuer.issuer,client_id:this.client_id,jti:I(),iat:a,exp:a+300,...this.fapi()?{nbf:a}:void 0}));if("none"===n)e=[_.encode(JSON.stringify(s)),_.encode(u),""].join(".");else{let r=n.startsWith("HS");if(r)t=this.secretForAlg(n);else{let e=await N.get(this);if(!e)throw TypeError("no keystore present for client, cannot sign using alg ".concat(n));if(!(t=e.get({alg:n,use:"sig"})))throw TypeError("no key to sign with found for alg ".concat(n))}e=await new m.CompactSign(new TextEncoder().encode(u)).setProtectedHeader({...s,kid:r?void 0:t.jwk.kid}).sign(r?t:await t.keyObject(n))}if(!o)return e;let c={alg:o,enc:i,cty:"oauth-authz-req+jwt"};return c.alg.match(/^(RSA|ECDH)/)?[t]=await F.call(this.issuer,{alg:c.alg,use:"enc"},{allowMulti:!0}):t=this.secretForAlg("dir"===c.alg?c.enc:c.alg),new m.CompactEncrypt(new TextEncoder().encode(e)).setProtectedHeader({...c,kid:t instanceof Uint8Array?void 0:t.jwk.kid}
25).encrypt(t instanceof Uint8Array?t:await t.keyObject(c.alg))}async pushedAuthorizationRequest(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{clientAssertionPayload:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this.issuer,"pushed_authorization_request_endpoint");let r={..."request"in e?e:ee.call(this,e),client_id:this.client_id},n=await L.call(this,"pushed_authorization_request",{responseType:"json",form:r},{clientAssertionPayload:t,endpointAuthMethod:"token"}),o=x(n,{statusCode:201});if(!("expires_in"in o))throw new j({message:"expected expires_in in Pushed Authorization Successful Response",response:n});if("number"!=typeof o.expires_in)throw new j({message:"invalid expires_in value in Pushed Authorization Successful Response",response:n});if(!("request_uri"in o))throw new j({message:"expected request_uri in Pushed Authorization Successful Response",response:n});if("string"!=typeof o.request_uri)throw new j({message:"invalid request_uri value in Pushed Authorization Successful Response",response:n});return o}get issuer(){return a._(this,ea)}[ec](){return"".concat(this.constructor.name," ").concat(c(this.metadata,{depth:1/0,colors:o.stdout.isTTY,compact:!1,sorted:!0}))}fapi(){return this.fapi1()||this.fapi2()}fapi1(){return"FAPI1Client"===this.constructor.name}fapi2(){return"FAPI2Client"===this.constructor.name}async validateJARM(e){let t=this.authorization_signed_response_alg,{payload:r}=await this.validateJWT(e,t,["iss","exp","aud"]);return Y(r)}async dpopProof(e,t,r){let o;if(!P(e))throw TypeError("payload must be a plain object");if(v(t))o=t;else if("CryptoKey"===t[Symbol.toStringTag])o=t;else if("node:crypto"===m.cryptoRuntime)o=f.createPrivateKey(t);else throw TypeError("unrecognized crypto runtime");if("private"!==o.type)throw TypeError('"DPoP" option must be a private key');let i=n.call(this,o,t);if(!i)throw TypeError("could not determine DPoP JWS Algorithm");return new m.SignJWT({ath:r?_.encode(f.createHash("sha256").update(r).digest()):void 0,...e}).setProtectedHeader({alg:i,typ:"dpop+jwt",jwk:await ey(o,t)}).setIssuedAt().setJti(I()).sign(o)}constructor(e,t,r={},n,o){if(s._(this,ei,{writable:!0,value:void 0}),s._(this,ea,{writable:!0,value:void 0}),s._(this,es,{writable:!0,value:void 0}),s._(this,eu,{writable:!0,value:void 0}),u._(this,ei,new Map),u._(this,ea,e),u._(this,es,t),"string"!=typeof r.client_id||!r.client_id)throw TypeError("client_id is required");let i={grant_types:["authorization_code"],id_token_signed_response_alg:"RS256",authorization_signed_response_alg:"RS256",response_types:["code"],token_endpoint_auth_method:"client_secret_basic",...this.fapi1()?{grant_types:["authorization_code","implicit"],id_token_signed_response_alg:"PS256",authorization_signed_response_alg:"PS256",response_types:["code id_token"],tls_client_certificate_bound_access_tokens:!0,token_endpoint_auth_method:void 0}:void 0,...this.fapi2()?{id_token_signed_response_alg:"PS256",authorization_signed_response_alg:"PS256",token_endpoint_auth_method:void 0}:void 0,...r};if(this.fapi())switch(i.token_endpoint_auth_method){case"self_signed_tls_client_auth":case"tls_client_auth":break;case"private_key_jwt":if(!n)throw TypeError("jwks is required");break;case void 0:throw TypeError("token_endpoint_auth_method is required");default:throw TypeError("invalid or unsupported token_endpoint_auth_method")}if(this.fapi2()&&(i.tls_client_certificate_bound_access_tokens&&i.dpop_bound_access_tokens||!i.tls_client_certificate_bound_access_tokens&&!i.dpop_bound_access_tokens))throw TypeError("either tls_client_certificate_bound_access_tokens or dpop_bound_access_tokens must be set to true");if(en(this,r,i),A("token",this.issuer,i),["introspection","revocation"].forEach(e=>{eo(e,this.issuer,i),A(e,this.issuer,i)}),Object.entries(i).forEach(e=>{let[t,r]=e;a._(this,ei).set(t,r),this[t]||Object.defineProperty(this,t,{get(){return a._(this,ei).get(t)},enumerable:!0})}),void 0!==n){let e=et.call(this,n);N.set(this,e)}null!=o&&o.additionalAuthorizedParties&&u._(this,eu,H(o.additionalAuthorizedParties)),this[M]=0}}
25function ef(e){switch(e.algorithm.name){case"Ed25519":case"Ed448":return"EdDSA";case"ECDSA":switch(e.algorithm.namedCurve){case"P-256":return"ES256";case"P-384":return"ES384";case"P-521":return"ES512"}break;case"RSASSA-PKCS1-v1_5":return"RS".concat(e.algorithm.hash.name.slice(4));case"RSA-PSS":return"PS".concat(e.algorithm.hash.name.slice(4));default:throw TypeError("unsupported DPoP private key")}}if("node:crypto"===m.cryptoRuntime){n=function(e,t){if("CryptoKey"===t[Symbol.toStringTag])return ef(e);switch(e.asymmetricKeyType){case"ed25519":case"ed448":return"EdDSA";case"ec":return ed(e,t);case"rsa":case J&&"rsa-pss":return ep(e,t,this.issuer.dpop_signing_alg_values_supported);default:throw TypeError("unsupported DPoP private key")}};let e=/^(?:RS|PS)(?:256|384|512)$/;function ep(t,r,n){if("object"==typeof r&&"jwk"===r.format&&r.key&&r.key.alg)return r.key.alg;if(Array.isArray(n)){let r=n.filter(RegExp.prototype.test.bind(e));return"rsa-pss"===t.asymmetricKeyType&&(r=r.filter(e=>e.startsWith("PS"))),["PS256","PS384","PS512","RS256","RS384","RS384"].find(e=>r.includes(e))}return"PS256"}let t=i.from([42,134,72,206,61,3,1,7]),r=i.from([43,129,4,0,34]),o=i.from([43,129,4,0,35]),a=i.from([43,129,4,0,10]);function ed(e,n){switch("object"==typeof n&&"object"==typeof n.key&&n.key.crv){case"P-256":return"ES256";case"secp256k1":return"ES256K";case"P-384":return"ES384";case"P-512":return"ES512"}let i=e.export({format:"der",type:"pkcs8"}),s=i[1]<128?17:18,u=i[s],c=i.slice(s+1,s+1+u);if(c.equals(t))return"ES256";if(c.equals(r))return"ES384";if(c.equals(o))return"ES512";if(c.equals(a))return"ES256K";throw TypeError("unsupported DPoP private key curve")}}else n=ef;let eh=new WeakMap;async function ey(e,t){if("node:crypto"===m.cryptoRuntime&&"object"==typeof t&&"object"==typeof t.key&&"jwk"===t.format)return O(t.key,"kty","crv","x","y","e","n");if(eh.has(t))return eh.get(t);let r=O(await m.exportJWK(e),"kty","crv","x","y","e","n");return(v(t)||"WebCryptoAPI"===m.cryptoRuntime)&&eh.set(t,r),r}e.exports=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class r extends el{static get issuer(){return e}constructor(...r){super(e,t,...r)}}return r},e.exports.BaseClient=el},82091:function(e,t,r){var n=r(40257);let{inspect:o}=r(83598),{RPError:i,OPError:a}=r(33199),s=r(84054);class u{#e;#t;#r;#n;#o;#i;#a;#s;#u;constructor({client:e,exchangeBody:t,clientAssertionPayload:r,response:n,maxAge:o,DPoP:a}){if(["verification_uri","user_code","device_code"].forEach(e=>{if("string"!=typeof n[e]||!n[e])throw new i(`expected ${e} string to be returned by Device Authorization Response, got %j`,n[e])}),!Number.isSafeInteger(n.expires_in))throw new i("expected expires_in number to be returned by Device Authorization Response, got %j",n.expires_in);this.#i=s()+n.expires_in,this.#t=e,this.#n=a,this.#s=o,this.#o=t,this.#r=r,this.#u=n,this.#a=1e3*n.interval||5e3}abort(){this.#e=!0}async poll({signal:e}={}){let t;if(e&&e.aborted||this.#e)throw new i("polling aborted");if(this.expired())throw new i("the device code %j has expired and the device authorization session has concluded",this.device_code);await new Promise(e=>setTimeout(e,this.#a));try{t=await this.#t.grant({...this.#o,grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:this.device_code},{clientAssertionPayload:this.#r,DPoP:this.#n})}catch(t){switch(t instanceof a&&t.error){case"slow_down":this.#a+=5e3;case"authorization_pending":return this.poll({signal:e});default:throw t}}return"id_token"in t&&(await this.#t.decryptIdToken(t),await this.#t.validateIdToken(t,void 0,"token",this.#s)),t}get device_code(){return this.#u.device_code}get user_code(){return this.#u.user_code}get verification_uri(){return this.#u.verification_uri}get verification_uri_complete(){return this.#u.verification_uri_complete}get expires_in(){return Math.max.apply(null,[this.#i-s(),0])}expired(){return 0===this.expires_in}[o.custom](){return`${this.constructor.name} ${o(this.#u,{depth:1/0,colors:n.stdout.isTTY,compact:!1,sorted:!0})}`}}e.exports=u},33199:function(e,t,r){let{format:n}=r(83598);
25class o extends Error{constructor({error_description:e,error:t,error_uri:r,session_state:n,state:o,scope:i},a){super(e?`${t} (${e})`:t),Object.assign(this,{error:t},e&&{error_description:e},r&&{error_uri:r},o&&{state:o},i&&{scope:i},n&&{session_state:n}),a&&Object.defineProperty(this,"response",{value:a}),this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}class i extends Error{constructor(...e){if("string"==typeof e[0])super(n(...e));else{let{message:t,printf:r,response:o,...i}=e[0];r?super(n(...r)):super(t),Object.assign(this,i),o&&Object.defineProperty(this,"response",{value:o})}this.name=this.constructor.name,Error.captureStackTrace(this,this.constructor)}}e.exports={OPError:o,RPError:i}},50386:function(e){function t(e,t,r){if(!t[`${e}_endpoint`])return;let n=`${e}_endpoint_auth_method`,o=`${e}_endpoint_auth_signing_alg`,i=`${e}_endpoint_auth_signing_alg_values_supported`;if(r[n]&&r[n].endsWith("_jwt")&&!r[o]&&!t[i])throw TypeError(`${i} must be configured on the issuer if ${o} is not defined on a client`)}function r(e,t){if(!e[t])throw TypeError(`${t} must be configured on the issuer`)}e.exports={assertSigningAlgValuesSupport:t,assertIssuerConfiguration:r}},97804:function(e,t,r){let n;var o=r(82957).Buffer;if(o.isEncoding("base64url"))n=(e,t="utf8")=>o.from(e,t).toString("base64url");else{let e=e=>e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");n=(t,r="utf8")=>e(o.from(t,r).toString("base64"))}let i=e=>o.from(e,"base64");e.exports.decode=i,e.exports.encode=n},2876:function(e,t,r){var n=r(82957).Buffer;let o=r(86413),{RPError:i}=r(33199),{assertIssuerConfiguration:a}=r(50386),{random:s}=r(96453),u=r(84054),c=r(5448),{keystores:l}=r(10329),f=r(51304),p=e=>encodeURIComponent(e).replace(/%20/g,"+");async function d(e,t){let r=this[`${e}_endpoint_auth_signing_alg`];if(r||a(this.issuer,`${e}_endpoint_auth_signing_alg_values_supported`),"client_secret_jwt"===this[`${e}_endpoint_auth_method`]){if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>/^HS(?:256|384|512)/.test(e))}if(!r)throw new i(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);return new o.CompactSign(n.from(JSON.stringify(t))).setProtectedHeader({alg:r}).sign(this.secretForAlg(r))}let s=await l.get(this);if(!s)throw TypeError("no client jwks provided for signing a client assertion with");if(!r){let t=this.issuer[`${e}_endpoint_auth_signing_alg_values_supported`];r=Array.isArray(t)&&t.find(e=>s.get({alg:e,use:"sig"}))}if(!r)throw new i(`failed to determine a JWS Algorithm to use for ${this[`${e}_endpoint_auth_method`]} Client Assertion`);let u=s.get({alg:r,use:"sig"});if(!u)throw new i(`no key found in client jwks to sign a client assertion with using alg ${r}`);return new o.CompactSign(n.from(JSON.stringify(t))).setProtectedHeader({alg:r,kid:u.jwk&&u.jwk.kid}).sign(await u.keyObject(r))}async function h(e,{clientAssertionPayload:t}={}){switch(this[`${e}_endpoint_auth_method`]){case"self_signed_tls_client_auth":case"tls_client_auth":case"none":return{form:{client_id:this.client_id}};case"client_secret_post":if("string"!=typeof this.client_secret)throw TypeError("client_secret_post client authentication method requires a client_secret");return{form:{client_id:this.client_id,client_secret:this.client_secret}};case"private_key_jwt":case"client_secret_jwt":{let r=u(),n=await d.call(this,e,{iat:r,exp:r+60,jti:s(),iss:this.client_id,sub:this.client_id,aud:this.issuer.issuer,...t});return{form:{client_id:this.client_id,client_assertion:n,client_assertion_type:"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}}}case"client_secret_basic":{if("string"!=typeof this.client_secret)throw TypeError("client_secret_basic client authentication method requires a client_secret");let e=`${p(this.client_id)}:${p(this.client_secret)}`,t=n.from(e).toString("base64");return{headers:{Authorization:`Basic ${t}`}}}default:throw TypeError(`missing, or unsupported, ${e}_endpoint_auth_method`)}}function y(){let{length:e,0:t}=this.response_types;if(1===e)return t}function g(){let{length:e,0:t}=this.redirect_uris||[];if(1===e)return t}async function m(e,t,{clientAssertionPayload:r,endpointAuthMethod:n=e,DPoP:o}={}){let i;let a=f(t,await h.call(this,n,{clientAssertionPayload:r})),s=this[`${n}_endpoint_auth_method`].includes("tls_client_auth")||"token"===e&&this.tls_client_certificate_bound_access_tokens;if(s&&this.issuer.mtls_endpoint_aliases&&(i=this.issuer.mtls_endpoint_aliases[`${e}_endpoint`]),i=i||this.issuer[`${e}_endpoint`],"form"in a)for(let[e,t]of Object.entries(a.form))void 0===t&&delete a.form[e];return c.call(this,{...a,method:"POST",url:i,headers:{..."revocation"!==e?{Accept:"application/json"}:void 0,...a.headers}},{mTLS:s,DPoP:o})}
25e.exports={resolveResponseType:y,resolveRedirectUri:g,authFor:h,authenticatedPost:m}},91371:function(e){let t=Symbol(),r=Symbol();e.exports={CLOCK_TOLERANCE:r,HTTP_OPTIONS:t}},62442:function(e,t,r){let n=r(97804);e.exports=e=>{if("string"!=typeof e||!e)throw TypeError("JWT must be a string");let{0:t,1:r,2:o,length:i}=e.split(".");if(5===i)throw TypeError("encrypted JWTs cannot be decoded");if(3!==i)throw Error("JWTs must have three components");try{return{header:JSON.parse(n.decode(t)),payload:JSON.parse(n.decode(r)),signature:o}}catch(e){throw Error("JWT is malformed")}}},33229:function(e){e.exports=globalThis.structuredClone||(e=>JSON.parse(JSON.stringify(e)))},23722:function(e,t,r){let n=r(95944);function o(e,t,...r){for(let i of r)if(n(i))for(let[r,a]of Object.entries(i))"__proto__"!==r&&"constructor"!==r&&(void 0===t[r]&&void 0!==a&&(t[r]=a),e&&n(t[r])&&n(a)&&o(!0,t[r],a));return t}e.exports=o.bind(void 0,!1),e.exports.deep=o.bind(void 0,!0)},96453:function(e,t,r){let{createHash:n,randomBytes:o}=r(68989),i=r(97804),a=(e=32)=>i.encode(o(e));e.exports={random:a,state:a,nonce:a,codeVerifier:a,codeChallenge:e=>i.encode(n("sha256").update(e).digest())}},42158:function(e,t,r){let n=r(83598),o=r(68989);e.exports=n.types.isKeyObject||(e=>e&&e instanceof o.KeyObject)},95944:function(e){e.exports=e=>!!e&&e.constructor===Object},94144:function(e,t,r){let n=r(72649),o=r(21500),{RPError:i}=r(33199),{assertIssuerConfiguration:a}=r(50386),s=r(92404),{keystores:u}=r(10329),c=r(72302),l=r(5448),f=new WeakMap,p=new WeakMap,d=e=>(p.has(e)||p.set(e,new o({max:100})),p.get(e));async function h(e=!1){a(this,"jwks_uri");let t=u.get(this),r=d(this);return e||!t?(f.has(this)||(r.reset(),f.set(this,(async()=>{let e=c(await l.call(this,{method:"GET",responseType:"json",url:this.jwks_uri,headers:{Accept:"application/json, application/jwk-set+json"}}).finally(()=>{f.delete(this)})),t=s.fromJWKS(e,{onlyPublic:!0});return r.set("throttle",!0,6e4),u.set(this,t),t})())),f.get(this)):t}async function y({kid:e,kty:t,alg:r,use:o},{allowMulti:a=!1}={}){let s=d(this),u={kid:e,kty:t,alg:r,use:o},c=n(u,{algorithm:"sha256",ignoreUnknown:!0,unorderedArrays:!0,unorderedSets:!0,respectType:!1}),l=s.get(c)||s.get("throttle"),f=await h.call(this,!l),p=f.all(u);if(delete u.use,0===p.length)throw new i({printf:["no valid key found in issuer's jwks_uri for key parameters %j",u],jwks:f});if(!a&&p.length>1&&!e)throw new i({printf:["multiple matching keys found in issuer's jwks_uri for key parameters %j, kid must be provided in this case",u],jwks:f});return s.set(c,!0),p}e.exports.queryKeyStore=y,e.exports.keystore=h},92404:function(e,t,r){let n=r(86413),o=r(33229),i=r(95944),a=Symbol(),s=(e,{alg:t,use:r})=>{let n=0;return t&&e.alg&&n++,r&&e.use&&n++,n};function u(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:return}}function c(e,t,r,o){if(t)return new Set([t]);switch(r){case"EC":{let t=[];if(("enc"===e||void 0===e)&&(t=t.concat(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"])),"sig"===e||void 0===e)switch(o){case"P-256":case"P-384":t=t.concat([`ES${o.slice(-3)}`]);break;case"P-521":t=t.concat(["ES512"]);break;case"secp256k1":"node:crypto"===n.cryptoRuntime&&(t=t.concat(["ES256K"]))}return new Set(t)}case"OKP":return new Set(["ECDH-ES","ECDH-ES+A128KW","ECDH-ES+A192KW","ECDH-ES+A256KW"]);case"RSA":{let t=[];return("enc"===e||void 0===e)&&(t=t.concat(["RSA-OAEP","RSA-OAEP-256","RSA-OAEP-384","RSA-OAEP-512"]),"node:crypto"===n.cryptoRuntime&&(t=t.concat(["RSA1_5"]))),("sig"===e||void 0===e)&&(t=t.concat(["PS256","PS384","PS512","RS256","RS384","RS512"])),new Set(t)}default:throw Error("unreachable")}}e.exports=class{#c;constructor(e,t){if(e!==a)throw Error("invalid constructor call");this.#c=t}toJWKS(){return{keys:this.map(({jwk:{d:e,p:t,q:r,dp:n,dq:o,qi:i,...a}})=>a)}}all({alg:e,kid:t,use:r}={}){if(!r||!e)throw Error();let n=u(e),o={alg:e,use:r};return this.filter(o=>{let i=!0;return void 0!==n&&o.jwk.kty!==n&&(i=!1),i&&void 0!==t&&o.jwk.kid!==t&&(i=!1),i&&void 0!==r&&void 0!==o.jwk.use&&o.jwk.use!==r&&(i=!1),i&&o.jwk.alg&&o.jwk.alg!==e?i=!1:o.algorithms.has(e)||(i=!1),i}).sort((e,t)=>
25s(t,o)-s(e,o))}get(...e){return this.all(...e)[0]}static async fromJWKS(e,{onlyPublic:t=!1,onlyPrivate:r=!1}={}){if(!i(e)||!Array.isArray(e.keys)||e.keys.some(e=>!i(e)||!("kty"in e)))throw TypeError("jwks must be a JSON Web Key Set formatted object");let s=[];for(let i of e.keys){let{kty:e,kid:a,crv:u}=i=o(i),{alg:l,use:f}=i;if("string"==typeof e&&e&&(void 0===f||"sig"===f||"enc"===f)&&("string"==typeof l||void 0===l)&&("string"==typeof a||void 0===a)){if("EC"===e&&"sig"===f)switch(u){case"P-256":l="ES256";break;case"P-384":l="ES384";break;case"P-521":l="ES512"}if("secp256k1"===u&&(f="sig",l="ES256K"),"OKP"===e)switch(u){case"Ed25519":case"Ed448":f="sig",l="EdDSA";break;case"X25519":case"X448":f="enc"}if(l&&!f)switch(!0){case l.startsWith("ECDH"):case l.startsWith("RSA"):f="enc"}if(r&&("oct"===i.kty||!i.d))throw Error("jwks must only contain private keys");t&&(i.d||i.k)||s.push({jwk:{...i,alg:l,use:f},async keyObject(e){if(this[e])return this[e];let t=await n.importJWK(this.jwk,e);return this[e]=t,t},get algorithms(){return Object.defineProperty(this,"algorithms",{value:c(this.jwk.use,this.jwk.alg,this.jwk.kty,this.jwk.crv),enumerable:!0,configurable:!1}),this.algorithms}})}}return new this(a,s)}filter(...e){return this.#c.filter(...e)}find(...e){return this.#c.find(...e)}every(...e){return this.#c.every(...e)}some(...e){return this.#c.some(...e)}map(...e){return this.#c.map(...e)}forEach(...e){return this.#c.forEach(...e)}reduce(...e){return this.#c.reduce(...e)}sort(...e){return this.#c.sort(...e)}*[Symbol.iterator](){for(let e of this.#c)yield e}}},51304:function(e,t,r){let n=r(95944);function o(e,...t){for(let r of t)if(n(r))for(let[t,i]of Object.entries(r))"__proto__"!==t&&"constructor"!==t&&(n(e[t])&&n(i)?e[t]=o(e[t],i):void 0!==i&&(e[t]=i));return e}e.exports=o},52947:function(e){e.exports=function(e,...t){let r={};for(let n of t)void 0!==e[n]&&(r[n]=e[n]);return r}},72302:function(e,t,r){var n=r(82957).Buffer;let{STATUS_CODES:o}=r(12251),{format:i}=r(83598),{OPError:a}=r(33199),s=r(33515),u=e=>{let t=s(e.headers["www-authenticate"]);if(t.error)throw new a(t,e)},c=e=>{let t=!1;try{let r;r="object"!=typeof e.body||n.isBuffer(e.body)?JSON.parse(e.body):e.body,(t="string"==typeof r.error&&r.error.length)&&Object.defineProperty(e,"body",{value:r,configurable:!0})}catch(e){}return t};function l(e,{statusCode:t=200,body:r=!0,bearer:n=!1}={}){if(e.statusCode!==t){if(n&&u(e),c(e))throw new a(e.body,e);throw new a({error:i("expected %i %s, got: %i %s",t,o[t],e.statusCode,o[e.statusCode])},e)}if(r&&!e.body)throw new a({error:i("expected %i %s with body but no body was returned",t,o[t])},e);return e.body}e.exports=l},5448:function(e,t,r){let n;var o=r(82957).Buffer;let i=r(4784),a=r(85605),s=r(12251),u=r(51983),{once:c}=r(55445),{URL:l}=r(93813),f=r(21500),p=r(75805),{RPError:d}=r(33199),h=r(52947),{deep:y}=r(23722),{HTTP_OPTIONS:g}=r(91371),m=/^[\x21\x23-\x5B\x5D-\x7E]+$/,b=["agent","ca","cert","crl","headers","key","lookup","passphrase","pfx","timeout"],v=(e,t)=>{n=y({},e.length?h(t,...e):t,n)};function w(e,t,r){r&&(e.removeHeader("content-type"),e.setHeader("content-type",r)),t&&(e.removeHeader("content-length"),e.setHeader("content-length",o.byteLength(t)),e.write(t)),e.end()}v([],{headers:{"User-Agent":`${p.name}/${p.version} (${p.homepage})`,"Accept-Encoding":"identity"},timeout:3500});let _=new f({max:100});e.exports=async function(e,{accessToken:t,mTLS:r=!1,DPoP:f}={}){let p,v,S,E,A,k,O;try{p=new l(e.url),delete e.url,i(/^(https?:)$/.test(p.protocol))}catch(e){throw TypeError("only valid absolute URLs can be requested")}let P=this[g],x=e,T=`${p.origin}${p.pathname}`;if(f&&"dpopProof"in this&&(x.headers=x.headers||{},x.headers.DPoP=await this.dpopProof({htu:`${p.origin}${p.pathname}`,htm:e.method||"GET",nonce:_.get(T)},f,t)),P&&(v=h(P.call(this,p,y({},x,n)),...b)),x=y({},v,x,n),r&&!x.pfx&&!(x.key&&x.cert))throw TypeError("mutual-TLS certificate and key not set");if(x.searchParams)for(let[e,t]of Object.entries(x.searchParams))p.searchParams.delete(e),p.searchParams.set(e,t);for(let[e,t]of({form:E,responseType:S,json:A,body:k,...x}
25=x,Object.entries(x.headers||{})))void 0===t&&delete x.headers[e];let R=("https:"===p.protocol?u.request:s.request)(p.href,x);return(async()=>{if(A?w(R,JSON.stringify(A),"application/json"):E?w(R,a.stringify(E),"application/x-www-form-urlencoded"):k?w(R,k):w(R),[O]=await Promise.race([c(R,"response"),c(R,"timeout")]),!O)throw R.destroy(),new d(`outgoing request timed out after ${x.timeout}ms`);let e=[];for await(let t of O)e.push(t);if(e.length)switch(S){case"json":Object.defineProperty(O,"body",{get(){let t=o.concat(e);try{t=JSON.parse(t)}catch(e){throw Object.defineProperty(e,"response",{value:O}),e}finally{Object.defineProperty(O,"body",{value:t,configurable:!0})}return t},configurable:!0});break;case void 0:case"buffer":Object.defineProperty(O,"body",{get(){let t=o.concat(e);return Object.defineProperty(O,"body",{value:t,configurable:!0}),t},configurable:!0});break;default:throw TypeError("unsupported responseType request option")}return O})().catch(e=>{throw O&&Object.defineProperty(e,"response",{value:O}),e}).finally(()=>{let e=O&&O.headers["dpop-nonce"];e&&m.test(e)&&_.set(T,e)})},e.exports.setDefaults=v.bind(void 0,b)},84054:function(e){e.exports=()=>Math.floor(Date.now()/1e3)},10329:function(e){e.exports.keystores=new WeakMap},87413:function(e){let t=/^\d+$/;function r(e){if(e.includes("://"))return!0;let r=e.replace(/(\/|\?)/g,"#").split("#")[0];if(r.includes(":")){let e=r.indexOf(":"),n=r.slice(e+1);if(!t.test(n))return!0}return!1}function n(e){if(!e.includes("@"))return!1;let t=e.split("@"),r=t[t.length-1];return!(r.includes(":")||r.includes("/")||r.includes("?"))}function o(e){let t;if("string"!=typeof e)throw TypeError("input must be a string");return(t=r(e)?e:n(e)?`acct:${e}`:`https://${e}`).split("#")[0]}e.exports=o},33515:function(e){let t=/(\w+)=("[^"]*")/g;e.exports=e=>{let r={};try{for(;null!==t.exec(e);)RegExp.$1&&RegExp.$2&&(r[RegExp.$1]=RegExp.$2.slice(1,-1))}catch(e){}return r}},82420:function(e,t,r){let n=r(34415),{OPError:o,RPError:i}=r(33199),a=r(87616),s=r(54044),{CLOCK_TOLERANCE:u,HTTP_OPTIONS:c}=r(91371),l=r(96453),{setDefaults:f}=r(5448);e.exports={Issuer:n,Strategy:a,TokenSet:s,errors:{OPError:o,RPError:i},custom:{setHttpOptionsDefaults:f,http_options:c,clock_tolerance:u},generators:l}},34415:function(e,t,r){var n=r(40257);let{inspect:o}=r(83598),i=r(93813),{RPError:a}=r(33199),s=r(44953),u=r(39414),c=r(72302),l=r(87413),f=r(5448),p=r(33229),{keystore:d}=r(94144),h=["https://login.microsoftonline.com/common/.well-known/openid-configuration","https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration","https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration"],y=Symbol(),g={claim_types_supported:["normal"],claims_parameter_supported:!1,grant_types_supported:["authorization_code","implicit"],request_parameter_supported:!1,request_uri_parameter_supported:!0,require_request_uri_registration:!1,response_modes_supported:["query","fragment"],token_endpoint_auth_methods_supported:["client_secret_basic"]};class m{#l;constructor(e={}){let t=e[y];delete e[y],["introspection","revocation"].forEach(t=>{e[`${t}_endpoint`]&&void 0===e[`${t}_endpoint_auth_methods_supported`]&&void 0===e[`${t}_endpoint_auth_signing_alg_values_supported`]&&(e.token_endpoint_auth_methods_supported&&(e[`${t}_endpoint_auth_methods_supported`]=e.token_endpoint_auth_methods_supported),e.token_endpoint_auth_signing_alg_values_supported&&(e[`${t}_endpoint_auth_signing_alg_values_supported`]=e.token_endpoint_auth_signing_alg_values_supported))}),this.#l=new Map,Object.entries(e).forEach(([e,t])=>{this.#l.set(e,t),this[e]||Object.defineProperty(this,e,{get(){return this.#l.get(e)},enumerable:!0})}),u.set(this.issuer,this);let r=s(this,t);Object.defineProperties(this,{Client:{value:r,enumerable:!0},FAPI1Client:{value:class extends r{},enumerable:!0},FAPI2Client:{value:class extends r{},enumerable:!0}})}get metadata(){return p(Object.fromEntries(this.#l.entries()))}static async webfinger(e){let t=l(e),{host:r}=i.parse(t),n=`https://${r}/.well-known/webfinger`,o=c(await f.call(this,{method:"GET",url:n,responseType:"json",searchParams:{resource:t,rel:"http://openid.net/specs/connect/1.0/issuer"},headers:{Accept:"application/json"}})),s=Array.isArray(o.links)&&o.links.find(e=>"object"==typeof e&&"http://openid.net/specs/connect/1.0/issuer"===e.rel&&e.href);if(!s)throw new a({message:"no issuer found in webfinger response",body:o});if("string"!=typeof s.href||!s.href.startsWith("https://"))throw new a({printf:["invalid issuer location %s",s.href],body:o});let p=s.href;if(u.has(p))return u.get(p);let d=await this.discover(p);if(d.issuer!==p)throw u.del(d.issuer),new a("discovered issuer mismatch, expected %s, got: %s",p,d.issuer);return d}static async discover(e){let t=b(e),r=c(await f.call(this,{method:"GET",responseType:"json",url:t,headers:{Accept:"application/json"}}));return new m({...g,...r,[y]:!!h.find(e=>t.startsWith(e))})}async reloadJwksUri(){await d.call(this,!0)}[o.custom](){return`${this.constructor.name} ${o(this.metadata,{depth:1/0,colors:n.stdout.isTTY,compact:!1,sorted:!0}
25)}`}}function b(e){let t=i.parse(e);if(t.pathname.includes("/.well-known/"))return e;{let e;return e=t.pathname.endsWith("/")?`${t.pathname}.well-known/openid-configuration`:`${t.pathname}/.well-known/openid-configuration`,i.format({...t,pathname:e})}}e.exports=m},39414:function(e,t,r){let n=r(21500);e.exports=new n({max:100})},87616:function(e,t,r){let n=r(93813),{format:o}=r(83598),i=r(33229),{RPError:a,OPError:s}=r(33199),{BaseClient:u}=r(44953),{random:c,codeChallenge:l}=r(96453),f=r(52947),{resolveResponseType:p,resolveRedirectUri:d}=r(2876);function h(e,t,r={}){e?this.error(e):t?this.success(t,r):this.fail(r)}function y({client:e,params:t={},passReqToCallback:r=!1,sessionKey:o,usePKCE:a=!0,extras:s={}}={},c){if(!(e instanceof u))throw TypeError("client must be an instance of openid-client Client");if("function"!=typeof c)throw TypeError("verify callback must be a function");if(!e.issuer||!e.issuer.issuer)throw TypeError("client must have an issuer with an identifier");if(this._client=e,this._issuer=e.issuer,this._verify=c,this._passReqToCallback=r,this._usePKCE=a,this._key=o||`oidc:${n.parse(this._issuer.issuer).hostname}`,this._params=i(t),delete this._params.state,delete this._params.nonce,this._extras=i(s),this._params.response_type||(this._params.response_type=p.call(e)),this._params.redirect_uri||(this._params.redirect_uri=d.call(e)),this._params.scope||(this._params.scope="openid"),!0===this._usePKCE){let e=!!Array.isArray(this._issuer.code_challenge_methods_supported)&&this._issuer.code_challenge_methods_supported;if(e&&e.includes("S256"))this._usePKCE="S256";else if(e&&e.includes("plain"))this._usePKCE="plain";else if(e)throw TypeError("neither code_challenge_method supported by the client is supported by the issuer");else this._usePKCE="S256"}else if("string"==typeof this._usePKCE&&!["plain","S256"].includes(this._usePKCE))throw TypeError(`${this._usePKCE} is not valid/implemented PKCE code_challenge_method`);this.name=n.parse(e.issuer.issuer).hostname}y.prototype.authenticate=function(e,t){(async()=>{let r=this._client;if(!e.session)throw TypeError("authentication requires session support");let n=r.callbackParams(e),i=this._key,{0:s,length:u}=Object.keys(n);if(0===u||1===u&&"iss"===s){let n={state:c(),...this._params,...t};if(!n.nonce&&n.response_type.includes("id_token")&&(n.nonce=c()),e.session[i]=f(n,"nonce","state","max_age","response_type"),this._usePKCE&&n.response_type.includes("code")){let t=c();switch(e.session[i].code_verifier=t,this._usePKCE){case"S256":n.code_challenge=l(t),n.code_challenge_method="S256";break;case"plain":n.code_challenge=t}}this.redirect(r.authorizationUrl(n));return}let p=e.session[i];if(0===Object.keys(p||{}).length)throw Error(o('did not find expected authorization request details in session, req.session["%s"] is %j',i,p));let{state:d,nonce:y,max_age:g,code_verifier:m,response_type:b}=p;try{delete e.session[i]}catch(e){}let v={redirect_uri:this._params.redirect_uri,...t},w={state:d,nonce:y,max_age:g,code_verifier:m,response_type:b},_=await r.callback(v.redirect_uri,n,w,this._extras),S=this._passReqToCallback,E=this._verify.length>(S?3:2)&&r.issuer.userinfo_endpoint,A=[_,h.bind(this)];if(E){if(!_.access_token)throw new a({message:"expected access_token to be returned when asking for userinfo in verify callback",tokenset:_});let e=await r.userinfo(_);A.splice(1,0,e)}S&&A.unshift(e),this._verify(...A)})().catch(e=>{e instanceof s&&"server_error"!==e.error&&!e.error.startsWith("invalid")||e instanceof a?this.fail(e):this.error(e)})},e.exports=y},54044:function(e,t,r){let n=r(97804),o=r(84054);class i{constructor(e){Object.assign(this,e);let{constructor:t,...r}=Object.getOwnPropertyDescriptors(this.constructor.prototype);Object.defineProperties(this,r)}set expires_in(e){this.expires_at=o()+Number(e)}get expires_in(){return Math.max.apply(null,[this.expires_at-o(),0])}expired(){return 0===this.expires_in}claims(){if(!this.id_token)throw TypeError("id_token not present in TokenSet");return JSON.parse(n.decode(this.id_token.split(".")[1]))}}e.exports=i},21500:function(e,t,r){"use strict";let n=r(64797),o=Symbol("max"),i=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),f=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),h=()=>1;class y{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[o]=e.max||1/0;let t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[u]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[o]=e||1/0,b(this)}get max(){return this[o]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[u]=e,b(this)}get maxAge(){return this[u]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[i]=0,this[f].forEach(e
25=>{e.length=this[a](e.value,e.key),this[i]+=e.length})),b(this)}get lengthCalculator(){return this[a]}get length(){return this[i]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let r=this[f].tail;null!==r;){let n=r.prev;_(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[f].head;null!==r;){let n=r.next;_(this,e,r,t),r=n}}keys(){return this[f].toArray().map(e=>e.key)}values(){return this[f].toArray().map(e=>e.value)}reset(){this[c]&&this[f]&&this[f].length&&this[f].forEach(e=>this[c](e.key,e.value)),this[p]=new Map,this[f]=new n,this[i]=0}dump(){return this[f].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[f]}set(e,t,r){if((r=r||this[u])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let n=r?Date.now():0,s=this[a](t,e);if(this[p].has(e)){if(s>this[o])return v(this,this[p].get(e)),!1;let a=this[p].get(e).value;return this[c]&&!this[l]&&this[c](e,a.value),a.now=n,a.maxAge=r,a.value=t,this[i]+=s-a.length,a.length=s,this.get(e),b(this),!0}let d=new w(e,t,s,n,r);return d.length>this[o]?(this[c]&&this[c](e,t),!1):(this[i]+=d.length,this[f].unshift(d),this[p].set(e,this[f].head),b(this),!0)}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value)}get(e){return g(this,e,!0)}peek(e){return g(this,e,!1)}pop(){let e=this[f].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[p].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{let e=o-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[p].forEach((e,t)=>g(this,t,!1))}}let g=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(v(e,n),!e[s])return}else r&&(e[d]&&(n.value.now=Date.now()),e[f].unshiftNode(n));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[u])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[u]&&r>e[u]},b=e=>{if(e[i]>e[o])for(let t=e[f].tail;e[i]>e[o]&&null!==t;){let r=t.prev;v(e,t),t=r}},v=(e,t)=>{if(t){let r=t.value;e[c]&&e[c](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[f].removeNode(t)}};class w{constructor(e,t,r,n,o){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=o||0}}let _=(e,t,r,n)=>{let o=r.value;m(e,o)&&(v(e,r),e[s]||(o=void 0)),o&&t.call(n,o.value,o.key,e)};e.exports=y},72649:function(e){!function(t){e.exports=t()}(function(){return(function e(t,r,n){function o(a,s){if(!r[a]){if(!t[a]){var u=void 0;if(!s&&u)return require(a,!0);if(i)return i(a,!0);throw Error("Cannot find module '"+a+"'")}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){return o(t[a][1][e]||e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var i=void 0,a=0;a<n.length;a++)o(n[a]);return o})({1:[function(e,t,r){(function(n,o,i,a,s,u,c,l,f){"use strict";var p=e("crypto");function d(e,t){return function(e,t){if(void 0===(r="passthrough"!==t.algorithm?p.createHash(t.algorithm):new v).write&&(r.write=r.update,r.end=r.update),b(t,r).dispatch(e),r.update||r.end(""),r.digest)return r.digest("buffer"===t.encoding?void 0:t.encoding);var r,n=r.read();return"buffer"!==t.encoding?n.toString(t.encoding):n}(e,t=g(e,t))}(r=t.exports=d).sha1=function(e){return d(e)},r.keys=function(e){return d(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},r.MD5=function(e){return d(e,{algorithm:"md5",encoding:"hex"})},r.keysMD5=function(e){return d(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=p.getHashes?p.getHashes().slice():["sha1","md5"];h.push("passthrough");var y=["buffer","hex","binary","base64"];function g(e,t){t=t||{};var r={};if(r.algorithm=t.algorithm||"sha1",r.encoding=t.encoding||"hex",r.excludeValues=!!t.excludeValues,r.algorithm=r.algorithm.toLowerCase(),r.encoding=r.encoding.toLowerCase(),r.ignoreUnknown=!0===t.ignoreUnknown,r.respectType=!1!==t.respectType,r.respectFunctionNames=!1!==t.respectFunctionNames,r.respectFunctionProperties=!1!==t.respectFunctionProperties,r.unorderedArrays=!0===t.unorderedArrays,r.unorderedSets=!1!==t.unorderedSets,r.unorderedObjects=!1!==t.unorderedObjects,r.replacer=t.replacer||void 0,r.excludeKeys=t.excludeKeys||void 0,void 0===e)throw Error("Object argument required.");for(var n=0;n<h.length;++n)h[n].toLowerCase()===r.algorithm.toLowerCase()&&(r.algorithm=h[n]);if(-1===h.indexOf(r.algorithm))throw Error('Algorithm "'+r.algorithm+'" not supported. supported values: '+h.join(", "));if(-1===y.indexOf(r.encoding)&&"passthrough"!==r.algorithm)throw Error('Encoding "'+r.encoding+'" not supported. supported values: '+y.join(", "));return r}function m(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function b(e,t,r){function n(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return r=r||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var o,a=Object.prototype.toString.call(t),s=/\[object (.*)\]/i.exec(a);if(s=(s=s?s[1]:"unknown:["+a+"]").toLowerCase(),0<=(o=r.indexOf(t)))return this.dispatch("[CIRCULAR:"+o+"]");if(r.push(t),void 0!==i&&i.isBuffer&&i.isBuffer(t))return n("buffer:"),n(t);if("object"===s||"function"===s||"asyncfunction"===s){var u=Object.keys(t);e.unorderedObjects&&(u=u.sort()),!1===e.respectType||m(t)||u.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(u=u.filter(function(t){return!e.excludeKeys(t)})),n("object:"+u.length+":");var c=this;return u.forEach(function(r){c.dispatch(r),n(":"),e.excludeValues||c.dispatch(t[r]),n(",")})}if(!this["_"+s]){if(e.ignoreUnknown)return n("["+s+"]");throw Error('Unknown object type "'+s+'"')}this["_"+s](t)},_array:function(t,o){o=void 0!==o?o:!1!==e.unorderedArrays;var i=this;if(n("array:"+t.length+":"),!o||t.length<=1)return t.forEach(function(e){return i.dispatch(e)});var a=[],s=t.map(function(t){var n=new v,o=r.slice();return b(e,n,o).dispatch(t),a=a.concat(o.slice(r.length)),n.read().toString()});return r=r.concat(a),s.sort(),this._array(s,!1)},_date:function(e){return n("date:"+e.toJSON())},_symbol:function(e){return n("symbol:"+e.toString())},_error:function(e){return n("error:"+e.toString())},_boolean:function(e){return n("bool:"+e.toString())}
vendor: 4,216 bytes, line 25
25,_string:function(e){n("string:"+e.length+":"),n(e.toString())},_function:function(t){n("fn:"),m(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return n("number:"+e.toString())},_xml:function(e){return n("xml:"+e.toString())},_null:function(){return n("Null")},_undefined:function(){return n("Undefined")},_regexp:function(e){return n("regex:"+e.toString())},_uint8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return n("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return n("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return n("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return n("url:"+e.toString())},_map:function(t){n("map:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_set:function(t){n("set:");var r=Array.from(t);return this._array(r,!1!==e.unorderedSets)},_file:function(e){return n("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return n("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return n("domwindow")},_bigint:function(e){return n("bigint:"+e.toString())},_process:function(){return n("process")},_timer:function(){return n("timer")},_pipe:function(){return n("pipe")},_tcp:function(){return n("tcp")},_udp:function(){return n("udp")},_tty:function(){return n("tty")},_statwatcher:function(){return n("statwatcher")},_securecontext:function(){return n("securecontext")},_connection:function(){return n("connection")},_zlib:function(){return n("zlib")},_context:function(){return n("context")},_nodescript:function(){return n("nodescript")},_httpparser:function(){return n("httpparser")},_dataview:function(){return n("dataview")},_signal:function(){return n("signal")},_fsevent:function(){return n("fsevent")},_tlswrap:function(){return n("tlswrap")}}}function v(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}r.writeToStream=function(e,t,r){return void 0===r&&(r=t,t={}),b(t=g(e,t),r).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,r){(function(e,t,n,o,i,a,s,u,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,r=43,n=47,o=48,i=97,a=65,s=45,u=95;function c(e){var t=e.charCodeAt(0);return t===r||t===s?62:t===n||t===u?63:t<o?-1:t<o+10?t-o+26+26:t<a+26?t-a:t<i+26?t-i+26:void 0}e.toByteArray=function(e){if(0<e.length%4)throw Error("Invalid string. Length must be a multiple of 4");var r,n,o=e.length,i="="===e.charAt(o-2)?2:"="===e.charAt(o-1)?1:0,a=new t(3*e.length/4-i),s=0<i?e.length-4:e.length,u=0;function l(e){a[u++]=e}for(r=0;r<s;r+=4)l((16711680&(n=c(e.charAt(r))<<18|c(e.charAt(r+1))<<12|c(e.charAt(r+2))<<6|c(e.charAt(r+3))))>>16),l((65280&n)>>8),l(255&n);return 2==i?l(255&(n=c(e.charAt(r))<<2|c(e.charAt(r+1))>>4)):1==i&&(l((n=c(e.charAt(r))<<10|c(e.charAt(r+1))<<4|c(e.charAt(r+2))>>2)>>8&255),l(255&n)),a},e.fromByteArray=function(e){var t,r,n,o,i=e.length%3,a="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
25+/".charAt(e)}for(t=0,n=e.length-i;t<n;t+=3)a+=s((o=r=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+s(o>>12&63)+s(o>>6&63)+s(63&o);switch(i){case 1:a+=s((r=e[e.length-1])>>2)+s(r<<4&63)+"==";break;case 2:a+=s((r=(e[e.length-2]<<8)+e[e.length-1])>>10)+s(r>>4&63)+s(r<<2&63)+"="}return a}}(void 0===r?this.base64js={}:r)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,r){(function(t,n,o,i,a,s,u,c,l){var f=e("base64-js"),p=e("ieee754");function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var n,i,a,s,u,c=typeof e;if("base64"===t&&"string"==c)for(e=(n=e).trim?n.trim():n.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==c)i=R(e);else if("string"==c)i=o.byteLength(e,t);else{if("object"!=c)throw Error("First argument needs to be a number, array or string.");i=R(e.length)}if(o._useTypedArrays?a=o._augment(new Uint8Array(i)):((a=this).length=i,a._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if(j(u=e)||o.isBuffer(u)||u&&"object"==typeof u&&"number"==typeof u.length)for(s=0;s<i;s++)o.isBuffer(e)?a[s]=e.readUInt8(s):a[s]=e[s];else if("string"==c)a.write(e,0,t);else if("number"==c&&!o._useTypedArrays&&!r)for(s=0;s<i;s++)a[s]=0;return a}function d(e,t,r,n){return o._charsWritten=M(function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function h(e,t,r,n){return o._charsWritten=M(function(e){for(var t,r,n=[],o=0;o<e.length;o++)r=(t=e.charCodeAt(o))>>8,n.push(t%256),n.push(r);return n}(t),e,r,n)}function y(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;o++)n+=String.fromCharCode(e[o]);return n}function g(e,t,r,n){n||(W("boolean"==typeof r,"missing or invalid endian"),W(null!=t,"missing offset"),W(t+1<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return r?(o=e[t],t+1<i&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<i&&(o|=e[t+1])),o}function m(e,t,r,n){n||(W("boolean"==typeof r,"missing or invalid endian"),W(null!=t,"missing offset"),W(t+3<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return r?(t+2<i&&(o=e[t+2]<<16),t+1<i&&(o|=e[t+1]<<8),o|=e[t],t+3<i&&(o+=e[t+3]<<24>>>0)):(t+1<i&&(o=e[t+1]<<16),t+2<i&&(o|=e[t+2]<<8),t+3<i&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function b(e,t,r,n){if(n||(W("boolean"==typeof r,"missing or invalid endian"),W(null!=t,"missing offset"),W(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=g(e,t,r,!0);return 32768&o?-1*(65535-o+1):o}}function v(e,t,r,n){if(n||(W("boolean"==typeof r,"missing or invalid endian"),W(null!=t,"missing offset"),W(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=m(e,t,r,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function w(e,t,r,n){return n||(W("boolean"==typeof r,"missing or invalid endian"),W(t+3<e.length,"Trying to read beyond buffer length")),p.read(e,t,r,23,4)}function _(e,t,r,n){return n||(W("boolean"==typeof r,"missing or invalid endian"),W(t+7<e.length,"Trying to read beyond buffer length")),p.read(e,t,r,52,8)}function S(e,t,r,n,o){o||(W(null!=t,"missing value"),W("boolean"==typeof n,"missing or invalid endian"),W(null!=r,"missing offset"),W(r+1<e.length,"trying to write beyond buffer length"),D(t,65535));var i=e.length;if(!(i<=r))for(var a=0,s=Math.min(i-r,2);a<s;a++)e[r+a]=(t&255<<8*(n?a:1-a))>>>8*(n?a:1-a)}function E(e,t,r,n,o){o||(W(null!=t,"missing value"),W("boolean"==typeof n,"missing or invalid endian"),W(null!=r,"missing offset"),W(r+3<e.length,"trying to write beyond buffer length"),D(t,4294967295));var i=e.length;if(!(i<=r))for(var a=0,s=Math.min(i-r,4);a<s;a++)e[r+a]=t>>>8*(n?a:3-a)&255}function A(e,t,r,n,o){o||(W(null!=t,"missing value"),W("boolean"==typeof n,"missing or invalid endian"),W(null!=r,"missing offset"),W(r+1<e.length,"Trying to write beyond buffer length"),H(t,32767,-32768)),e.length<=r||S(e,0<=t?t:65535+t+1,r,n,o)}function k(e,t,r,n,o){o||(W(null!=t,"missing value"),W("boolean"==typeof n,"missing or invalid endian"),W(null!=r,"missing offset"),W(r+3<e.length,"Trying to write beyond buffer length"),H(t,2147483647,-2147483648)),e.length<=r||E(e,0<=t?t:4294967295+t+1,r,n,o)}function O(e,t,r,n,o){o||(W(null!=t,"missing value"),W("boolean"==typeof n,"missing or invalid endian"),W(null!=r,"missing offset"),W(r+3<e.length,"Trying to write beyond buffer length"),L(t,34028234663852886e22,-34028234663852886e22)),e.length<=r||p.write(e,t,r,n,23,4)}function P(e,t,r,n,o){o||(W(null!=t,"missing value"),W("boolean"==typeof n,"missing or invalid endian"),W(null!=r,"missing offset"),W(r+7<e.length,"Trying to write beyond buffer length"),L(t,17976931348623157e292,-17976931348623157e292)),e.length<=r||p.write(e,t,r,n,52,8)}r.Buffer=o,r.SlowBuffer=o,r.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.byteLength=function(e,t){var r;switch(e+="",t||"utf8"){case"hex":r=e.length/2;break;case"utf8":case"utf-8":r=I(e).length;break;case"ascii":case"binary":case"raw":r=e.length;break;case"base64":r=U(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=2*e.length;break;default:throw Error("Unknown encoding")}return r},o.concat=function(e,t){if(W(j(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new o(0);if(1===e.length)return e[0];if("number"!=typeof t)for(i=t=0;i<e.length;i++)t+=e[i].length;for(var r=new o(t),n=0,i=0;i<e.length;i++){var a=e[i];a.copy(r,n),n+=a.length}return r}
vendor: 5,009 bytes, line 25
25,o.prototype.write=function(e,t,r,n){isFinite(t)?isFinite(r)||(n=r,r=void 0):(i=n,n=t,t=r,r=i),t=Number(t)||0;var i,a,s,u,c,l,f,p,y,g,m=this.length-t;switch((!r||m<(r=Number(r)))&&(r=m),n=String(n||"utf8").toLowerCase()){case"hex":a=function(e,t,r,n){r=Number(r)||0;var i=e.length-r;(!n||i<(n=Number(n)))&&(n=i);var a=t.length;W(a%2==0,"Invalid hex string"),a/2<n&&(n=a/2);for(var s=0;s<n;s++){var u=parseInt(t.substr(2*s,2),16);W(!isNaN(u),"Invalid hex string"),e[r+s]=u}return o._charsWritten=2*s,s}(this,e,t,r);break;case"utf8":case"utf-8":f=this,p=e,y=t,g=r,a=o._charsWritten=M(I(p),f,y,g);break;case"ascii":case"binary":a=d(this,e,t,r);break;case"base64":s=this,u=e,c=t,l=r,a=o._charsWritten=M(U(u),s,c,l);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=h(this,e,t,r);break;default:throw Error("Unknown encoding")}return a},o.prototype.toString=function(e,t,r){var n,o,i,a,s=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(r=void 0!==r?Number(r):r=s.length)===t)return"";switch(e){case"hex":n=function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var o="",i=t;i<r;i++)o+=C(e[i]);return o}(s,t,r);break;case"utf8":case"utf-8":n=function(e,t,r){var n="",o="";r=Math.min(e.length,r);for(var i=t;i<r;i++)e[i]<=127?(n+=N(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return n+N(o)}(s,t,r);break;case"ascii":case"binary":n=y(s,t,r);break;case"base64":o=s,a=r,n=0===(i=t)&&a===o.length?f.fromByteArray(o):f.fromByteArray(o.slice(i,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(s,t,r);break;default:throw Error("Unknown encoding")}return n},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(e,t,r,n){if(r=r||0,n||0===n||(n=this.length),t=t||0,n!==r&&0!==e.length&&0!==this.length){W(r<=n,"sourceEnd < sourceStart"),W(0<=t&&t<e.length,"targetStart out of bounds"),W(0<=r&&r<this.length,"sourceStart out of bounds"),W(0<=n&&n<=this.length,"sourceEnd out of bounds"),n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(i<100||!o._useTypedArrays)for(var a=0;a<i;a++)e[a+t]=this[a+r];else e._set(this.subarray(r,r+i),t)}},o.prototype.slice=function(e,t){var r=this.length;if(e=T(e,r,0),t=T(t,r,r),o._useTypedArrays)return o._augment(this.subarray(e,t));for(var n=t-e,i=new o(n,void 0,!0),a=0;a<n;a++)i[a]=this[a+e];return i},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.readUInt8=function(e,t){if(t||(W(null!=e,"missing offset"),W(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return g(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return g(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return m(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return m(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(W(null!=e,"missing offset"),W(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return b(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return b(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return v(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return v(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return w(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return w(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return _(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return _(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,r){r||(W(null!=e,"missing value"),W(null!=t,"missing offset"),W(t<this.length,"trying to write beyond buffer length"),D(e,255)),t>=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,r){S(this,e,t,!0,r)},o.prototype.writeUInt16BE=function(e,t,r){S(this,e,t,!1,r)},o.prototype.writeUInt32LE=function(e,t,r){E(this,e,t,!0,r)},o.prototype.writeUInt32BE=function(e,t,r){E(this,e,t,!1,r)},o.prototype.writeInt8=function(e,t,r){r||(W(null!=e,"missing value"),W(null!=t,"missing offset"),W(t<this.length,"Trying to write beyond buffer length"),H(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,r):this.writeUInt8(255+e+1,t,r))},o.prototype.writeInt16LE=function(e,t,r){A(this,e,t,!0,r)},o.prototype.writeInt16BE=function(e,t,r){A(this,e,t,!1,r)},o.prototype.writeInt32LE=function(e,t,r){k(this,e,t,!0,r)},o.prototype.writeInt32BE=function(e,t,r){k(this,e,t,!1,r)},o.prototype.writeFloatLE=function(e,t,r){O(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){O(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){P(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){P(this,e,t,!1,r)}
25,o.prototype.fill=function(e,t,r){if(e=e||0,t=t||0,r=r||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),W("number"==typeof e&&!isNaN(e),"value is not a number"),W(t<=r,"end < start"),r!==t&&0!==this.length){W(0<=t&&t<this.length,"start out of bounds"),W(0<=r&&r<=this.length,"end out of bounds");for(var n=t;n<r;n++)this[n]=e}},o.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=C(this[n]),n===r.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,r=e.length;t<r;t+=1)e[t]=this[t];return e.buffer};var x=o.prototype;function T(e,t,r){return"number"!=typeof e?r:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function R(e){return(e=~~Math.ceil(+e))<0?0:e}function j(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function C(e){return e<16?"0"+e.toString(16):e.toString(16)}function I(e){for(var t=[],r=0;r<e.length;r++){var n=e.charCodeAt(r);if(n<=127)t.push(e.charCodeAt(r));else{var o=r;55296<=n&&n<=57343&&r++;for(var i=encodeURIComponent(e.slice(o,r+1)).substr(1).split("%"),a=0;a<i.length;a++)t.push(parseInt(i[a],16))}}return t}function U(e){return f.toByteArray(e)}function M(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);o++)t[o+r]=e[o];return o}function N(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function D(e,t){W("number"==typeof e,"cannot write a non-number as a number"),W(0<=e,"specified a negative value for writing an unsigned value"),W(e<=t,"value is larger than maximum value for type"),W(Math.floor(e)===e,"value has a fractional component")}function H(e,t,r){W("number"==typeof e,"cannot write a non-number as a number"),W(e<=t,"value larger than maximum allowed value"),W(r<=e,"value smaller than minimum allowed value"),W(Math.floor(e)===e,"value has a fractional component")}function L(e,t,r){W("number"==typeof e,"cannot write a non-number as a number"),W(e<=t,"value larger than maximum allowed value"),W(r<=e,"value smaller than minimum allowed value")}function W(e,t){if(!e)throw Error(t||"Failed assertion")}o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=x.get,e.set=x.set,e.write=x.write,e.toString=x.toString,e.toLocaleString=x.toString,e.toJSON=x.toJSON,e.copy=x.copy,e.slice=x.slice,e.readUInt8=x.readUInt8,e.readUInt16LE=x.readUInt16LE,e.readUInt16BE=x.readUInt16BE,e.readUInt32LE=x.readUInt32LE,e.readUInt32BE=x.readUInt32BE,e.readInt8=x.readInt8,e.readInt16LE=x.readInt16LE,e.readInt16BE=x.readInt16BE,e.readInt32LE=x.readInt32LE,e.readInt32BE=x.readInt32BE,e.readFloatLE=x.readFloatLE,e.readFloatBE=x.readFloatBE,e.readDoubleLE=x.readDoubleLE,e.readDoubleBE=x.readDoubleBE,e.writeUInt8=x.writeUInt8,e.writeUInt16LE=x.writeUInt16LE,e.writeUInt16BE=x.writeUInt16BE,e.writeUInt32LE=x.writeUInt32LE,e.writeUInt32BE=x.writeUInt32BE,e.writeInt8=x.writeInt8,e.writeInt16LE=x.writeInt16LE,e.writeInt16BE=x.writeInt16BE,e.writeInt32LE=x.writeInt32LE,e.writeInt32BE=x.writeInt32BE,e.writeFloatLE=x.writeFloatLE,e.writeFloatBE=x.writeFloatBE,e.writeDoubleLE=x.writeDoubleLE,e.writeDoubleBE=x.writeDoubleBE,e.fill=x.fill,e.inspect=x.inspect,e.toArrayBuffer=x.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,r){(function(r,n,o,i,a,s,u,c,l){var o=e("buffer").Buffer,f=4,p=new o(4);p.fill(0),t.exports={hash:function(e,t,r,n){return o.isBuffer(e)||(e=new o(e)),function(e,t,r){for(var n=new o(t),i=r?n.writeInt32BE:n.writeInt32LE,a=0;a<e.length;a++)i.call(n,e[a],4*a,!0);return n}(t(function(e,t){var r;e.length%f!=0&&(r=e.length+(f-e.length%f),e=o.concat([e,p],r));for(var n=[],i=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=f)n.push(i.call(e,a));return n}
25(e,n),8*e.length),r,n)}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,r){(function(t,n,o,i,a,s,u,c,l){var o=e("buffer").Buffer,f=e("./sha"),p=e("./sha256"),d=e("./rng"),h={sha1:f,sha256:p,md5:e("./md5")},y=64,g=new o(64);function m(e,t){var r=h[e=e||"sha1"],n=[];return r||b("algorithm:",e,"is not yet supported"),{update:function(e){return o.isBuffer(e)||(e=new o(e)),n.push(e),e.length,this},digest:function(e){var i=o.concat(n),a=t?function(e,t,r){o.isBuffer(t)||(t=new o(t)),o.isBuffer(r)||(r=new o(r)),t.length>y?t=e(t):t.length<y&&(t=o.concat([t,g],y));for(var n=new o(y),i=new o(y),a=0;a<y;a++)n[a]=54^t[a],i[a]=92^t[a];var s=e(o.concat([n,r]));return e(o.concat([i,s]))}(r,t,i):r(i);return n=null,e?a.toString(e):a}}}function b(){var e=[].slice.call(arguments).join(" ");throw Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}g.fill(0),r.createHash=function(e){return m(e)},r.createHmac=m,r.randomBytes=function(e,t){if(!t||!t.call)return new o(d(e));try{t.call(this,void 0,new o(d(e)))}catch(e){t(e)}},function(e,t){for(var r in e)t(e[r],r)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){r[e]=function(){b("sorry,",e,"is not implemented yet")}})}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,r){(function(r,n,o,i,a,s,u,c,l){var f=e("./helpers");function p(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=o,l=i,r=h(r,n,o,i,e[a+0],7,-680876936),i=h(i,r,n,o,e[a+1],12,-389564586),o=h(o,i,r,n,e[a+2],17,606105819),n=h(n,o,i,r,e[a+3],22,-1044525330);r=h(r,n,o,i,e[a+4],7,-176418897),i=h(i,r,n,o,e[a+5],12,1200080426),o=h(o,i,r,n,e[a+6],17,-1473231341),n=h(n,o,i,r,e[a+7],22,-45705983),r=h(r,n,o,i,e[a+8],7,1770035416),i=h(i,r,n,o,e[a+9],12,-1958414417),o=h(o,i,r,n,e[a+10],17,-42063),n=h(n,o,i,r,e[a+11],22,-1990404162),r=h(r,n,o,i,e[a+12],7,1804603682),i=h(i,r,n,o,e[a+13],12,-40341101),o=h(o,i,r,n,e[a+14],17,-1502002290),r=y(r,n=h(n,o,i,r,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=y(i,r,n,o,e[a+6],9,-1069501632),o=y(o,i,r,n,e[a+11],14,643717713),n=y(n,o,i,r,e[a+0],20,-373897302),r=y(r,n,o,i,e[a+5],5,-701558691),i=y(i,r,n,o,e[a+10],9,38016083),o=y(o,i,r,n,e[a+15],14,-660478335),n=y(n,o,i,r,e[a+4],20,-405537848),r=y(r,n,o,i,e[a+9],5,568446438),i=y(i,r,n,o,e[a+14],9,-1019803690),o=y(o,i,r,n,e[a+3],14,-187363961),n=y(n,o,i,r,e[a+8],20,1163531501),r=y(r,n,o,i,e[a+13],5,-1444681467),i=y(i,r,n,o,e[a+2],9,-51403784),o=y(o,i,r,n,e[a+7],14,1735328473),r=g(r,n=y(n,o,i,r,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=g(i,r,n,o,e[a+8],11,-2022574463),o=g(o,i,r,n,e[a+11],16,1839030562),n=g(n,o,i,r,e[a+14],23,-35309556),r=g(r,n,o,i,e[a+1],4,-1530992060),i=g(i,r,n,o,e[a+4],11,1272893353),o=g(o,i,r,n,e[a+7],16,-155497632),n=g(n,o,i,r,e[a+10],23,-1094730640),r=g(r,
25n,o,i,e[a+13],4,681279174),i=g(i,r,n,o,e[a+0],11,-358537222),o=g(o,i,r,n,e[a+3],16,-722521979),n=g(n,o,i,r,e[a+6],23,76029189),r=g(r,n,o,i,e[a+9],4,-640364487),i=g(i,r,n,o,e[a+12],11,-421815835),o=g(o,i,r,n,e[a+15],16,530742520),r=m(r,n=g(n,o,i,r,e[a+2],23,-995338651),o,i,e[a+0],6,-198630844),i=m(i,r,n,o,e[a+7],10,1126891415),o=m(o,i,r,n,e[a+14],15,-1416354905),n=m(n,o,i,r,e[a+5],21,-57434055),r=m(r,n,o,i,e[a+12],6,1700485571),i=m(i,r,n,o,e[a+3],10,-1894986606),o=m(o,i,r,n,e[a+10],15,-1051523),n=m(n,o,i,r,e[a+1],21,-2054922799),r=m(r,n,o,i,e[a+8],6,1873313359),i=m(i,r,n,o,e[a+15],10,-30611744),o=m(o,i,r,n,e[a+6],15,-1560198380),n=m(n,o,i,r,e[a+13],21,1309151649),r=m(r,n,o,i,e[a+4],6,-145523070),i=m(i,r,n,o,e[a+11],10,-1120210379),o=m(o,i,r,n,e[a+2],15,718787259),n=m(n,o,i,r,e[a+9],21,-343485551),r=b(r,s),n=b(n,u),o=b(o,c),i=b(i,l)}return[r,n,o,i]}function d(e,t,r,n,o,i){var a,s;return b((a=b(b(t,e),b(n,i)))<<(s=o)|a>>>32-s,r)}function h(e,t,r,n,o,i,a){return d(t&r|~t&n,e,t,o,i,a)}function y(e,t,r,n,o,i,a){return d(t&n|r&~n,e,t,o,i,a)}function g(e,t,r,n,o,i,a){return d(t^r^n,e,t,o,i,a)}function m(e,t,r,n,o,i,a){return d(r^(t|~n),e,t,o,i,a)}function b(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return f.hash(e,p,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,r){(function(e,r,n,o,i,a,s,u,c){var l,f;f=function(e){for(var t,r=Array(e),n=0;n<e;n++)0==(3&n)&&(t=4294967296*Math.random()),r[n]=t>>>((3&n)<<3)&255;return r},t.exports=l||f}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,r){(function(r,n,o,i,a,s,u,c,l){var f=e("./helpers");function p(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var r,n,o,i,a,s=Array(80),u=1732584193,c=-271733879,l=-1732584194,f=271733878,p=-1009589776,y=0;y<e.length;y+=16){for(var g=u,m=c,b=l,v=f,w=p,_=0;_<80;_++){s[_]=_<16?e[y+_]:h(s[_-3]^s[_-8]^s[_-14]^s[_-16],1);var S=d(d(h(u,5),(o=c,i=l,a=f,(n=_)<20?o&i|~o&a:!(n<40)&&n<60?o&i|o&a|i&a:o^i^a)),d(d(p,s[_]),(r=_)<20?1518500249:r<40?1859775393:r<60?-1894007588:-899497514)),p=f,f=l,l=h(c,30),c=u,u=S}u=d(u,g),c=d(c,m),l=d(l,b),f=d(f,v),p=d(p,w)}return[u,c,l,f,p]}function d(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function h(e,t){return e<<t|e>>>32-t}t.exports=function(e){return f.hash(e,p,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,r){(function(r,n,o,i,a,s,u,c,l){function f(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function p(e,t){return e>>>t|e<<32-t}function d(e,t){var r,n,o,i,a,s,u,c,l,d,h=[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],y=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],g=Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;
25for(var m,b,v,w,_,S,E,A,k=0;k<e.length;k+=16){r=y[0],n=y[1],o=y[2],i=y[3],a=y[4],s=y[5],u=y[6],c=y[7];for(var O=0;O<64;O++)g[O]=O<16?e[O+k]:f(f(f(p(A=g[O-2],17)^p(A,19)^A>>>10,g[O-7]),p(E=g[O-15],7)^p(E,18)^E>>>3),g[O-16]),l=f(f(f(f(c,p(S=a,6)^p(S,11)^p(S,25)),(_=a)&s^~_&u),h[O]),g[O]),d=f(p(w=r,2)^p(w,13)^p(w,22),(m=r)&(b=n)^m&(v=o)^b&v),c=u,u=s,s=a,a=f(i,l),i=o,o=n,n=r,r=f(l,d);y[0]=f(r,y[0]),y[1]=f(n,y[1]),y[2]=f(o,y[2]),y[3]=f(i,y[3]),y[4]=f(a,y[4]),y[5]=f(s,y[5]),y[6]=f(u,y[6]),y[7]=f(c,y[7])}return y}var h=e("./helpers");t.exports=function(e){return h.hash(e,d,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,r){(function(e,r,n,o,i,a,s,u,c){function l(){}(e=t.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var r=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<r.length&&r.shift()())},!0),function(e){r.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=l,e.addListener=l,e.once=l,e.off=l,e.removeListener=l,e.removeAllListeners=l,e.emit=l,e.binding=function(e){throw Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,r){(function(e,t,n,o,i,a,s,u,c){r.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?o-1:0,p=r?-1:1,d=e[t+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=s;0<l;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;0<l;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=c}return(d?-1:1)*a*Math.pow(2,i-n)},r.write=function(e,t,r,n,o,i){var a,s,u,c=8*i-o-1,l=(1<<c)-1,f=l>>1,p=23===o?5960464477539062e-23:0,d=n?0:i-1,h=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(t+=1<=a+f?p/u:p*Math.pow(2,1-f))*u&&(a++,u/=2),l<=a+f?(s=0,a=l):1<=a+f?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));8<=o;e[r+d]=255&s,d+=h,s/=256,o-=8);for(a=a<<o|s,c+=o;0<c;e[r+d]=255&a,d+=h,a/=256,c-=8);e[r+d-h]|=128*y}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)})},38619:function(e){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},64797:function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var r=0,o=arguments.length;r<o;r++)t.push(arguments[r]);return t}function o(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function i(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw Error("remov
25ing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,o=this.head;null!==o;)r.push(e.call(t,o.value,this)),o=o.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,o=this.tail;null!==o;)r.push(e.call(t,o.value,this)),o=o.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var o=0;null!==n;o++)r=e(r,n.value,o),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;null!==n;o--)r=e(r,n.value,o),n=n.prev;return r},n.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=0,i=this.head;null!==i&&o<e;o++)i=i.next;for(;null!==i&&o<t;o++,i=i.next)r.push(i.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var o=this.length,i=this.tail;null!==i&&o>t;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)r.push(i.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;null!==i&&n<e;n++)i=i.next;for(var a=[],n=0;i&&n<t;n++)a.push(i.value),i=this.removeNode(i);null===i&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<r.length;n++)i=o(this,i,r[n]);return a},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(38619)(n)}catch(e){}},66324:function(e,t,r){"use strict";r.r(t),r.d(t,{render:function(){return A},renderToStaticMarkup:function(){return A},renderToString:function(){return A},shallowRender:function(){return S}});var n=r(79080),o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,i=/^(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)$/,a=/[\s\n\\/='"\0<>]/,s=/^xlink:?./,u=/["&<]/;function c(e){if(!1===u.test(e+=""))return e;for(var t=0,r=0,n="",o="";r<e.length;r++){switch(e.charCodeAt(r)){case 34:o=""";break;case 38:o="&";break;case 60:o="<";break;default:continue}r!==t&&(n+=e.slice(t,r)),n+=o,t=r+1}return r!==t&&(n+=e.slice(t,r)),n}var l=function(e,t){return String(e).replace(/(\n+)/g,"$1"+(t||" "))},f=function(e,t,r){return String(e).length>(t||40)||!r&&-1!==String(e).indexOf("\n")||-1!==String(e).indexOf("<")},p={},d=/([A-Z])/g;function h(e){var t="";for(var r in e){var n=e[r];null!=n&&""!==n&&(t&&(t+=" "),t+="-"==r[0]?r:p[r]||(p[r]=r.replace(d,"-$1").toLowerCase()),t="number"==typeof n&&!1===o.test(r)?t+": "+n+"px;":t+": "+n+";")}return t||void 0}function y(e,t){return Array.isArray(t)?t.reduce(y,e):null!=t&&!1!==t&&e.push(t),e}function g(){this.__d=!0}function m(e,t){return{__v:e,context:t,props:e.props,setState:g,forceUpdate:g,__d:!0,__h:[]}}function b(e,t){var r=e.contextType,n=r&&t[r.__c];return null!=r?n?n.props.value:r.__:t}var v=[];function w(e,t,r,o,u,p){if(null==e||"boolean"==typeof e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e);var d=r.pretty,g=d&&"string"==typeof d?d:" ";if(Array.isArray(e)){for(var _="",S=0;S<e.length;S++)d&&S>0&&(_+="\n"),_+=w(e[S],t,r,o,u,p);return _}if(void 0!==e.constructor)return"";var E,A=e.type,k=e.props,O=!1;if("function"==typeof A){if(O=!0,!r.shallow||!o&&!1!==r.renderRootComponent){if(A===n.Fragment){var P=[];return y(P,e.props.children),w(P,t,r,!1!==r.shallowHighOrder,u,p)}var x,T=e.__c=m(e,t);n.options.__b&&n.options.__b(e);var R=n.options.__r;if(A.prototype&&"function"==typeof A.prototype.render){var j=b(A,t);(T=e.__c=new A(k,j)).__v=e,T._dirty=T.__d=!0,T.props=k,null==T.state&&(T.state={}),null==T._nextState&&null==T.__s&&(T._nextState=T.__s=T.state),T.context=j,A.getDerivedStateFromProps?T.state=Object.assign({},T.state,A.getDerivedStateFromProps(T.props,T.state)):T.componentWillMount&&(T.componentWillMount(),T.state=T._nextState!==T.state?T._nextState:T.__s!==T.state?T.__s:T.state),R&&R(e),x=T.render(T.props,T.state,T.context)}else for(var C=b(A,t),I=0;T.__d&&I++<25;)T.__d=!1,R&&R(e),x=A.call(e.__c,k,C);return T.getChildContext&&(t=Object.assign({},t,T.getChildContext())),n.options.diffed&&n.options.diffed(e),w(x,t,r,!1!==r.shallowHighOrder,u,p)}A=(E=A).displayName||E!==Function&&E.name||function(e){var t=(Function.prototype.toString.call(e).match(/^\s*function\s+([^( ]+)/)||"")[1];if(!t){for(var r=-1,n=v.length;n--;
25)if(v[n]===e){r=n;break}r<0&&(r=v.push(e)-1),t="UnnamedComponent"+r}return t}(E)}var U,M,N="<"+A;if(k){var D=Object.keys(k);r&&!0===r.sortAttributes&&D.sort();for(var H=0;H<D.length;H++){var L=D[H],W=k[L];if("children"!==L){if(!a.test(L)&&(r&&r.allAttributes||"key"!==L&&"ref"!==L&&"__self"!==L&&"__source"!==L)){if("defaultValue"===L)L="value";else if("defaultChecked"===L)L="checked";else if("defaultSelected"===L)L="selected";else if("className"===L){if(void 0!==k.class)continue;L="class"}else u&&s.test(L)&&(L=L.toLowerCase().replace(/^xlink:?/,"xlink:"));if("htmlFor"===L){if(k.for)continue;L="for"}"style"===L&&W&&"object"==typeof W&&(W=h(W)),"a"===L[0]&&"r"===L[1]&&"boolean"==typeof W&&(W=String(W));var B=r.attributeHook&&r.attributeHook(L,W,t,r,O);if(B||""===B)N+=B;else if("dangerouslySetInnerHTML"===L)M=W&&W.__html;else if("textarea"===A&&"value"===L)U=W;else if((W||0===W||""===W)&&"function"!=typeof W){if(!(!0!==W&&""!==W||(W=L,r&&r.xml))){N=N+" "+L;continue}if("value"===L){if("select"===A){p=W;continue}"option"===A&&p==W&&void 0===k.selected&&(N+=" selected")}N=N+" "+L+'="'+c(W)+'"'}}}else U=W}}if(d){var F=N.replace(/\n\s*/," ");F===N||~F.indexOf("\n")?d&&~N.indexOf("\n")&&(N+="\n"):N=F}if(N+=">",a.test(A))throw Error(A+" is not a valid HTML tag name in "+N);var $,K=i.test(A)||r.voidElements&&r.voidElements.test(A),q=[];if(M)d&&f(M)&&(M="\n"+g+l(M,g)),N+=M;else if(null!=U&&y($=[],U).length){for(var J=d&&~N.indexOf("\n"),z=!1,G=0;G<$.length;G++){var V=$[G];if(null!=V&&!1!==V){var Y=w(V,t,r,!0,"svg"===A||"foreignObject"!==A&&u,p);if(d&&!J&&f(Y)&&(J=!0),Y){if(d){var X=Y.length>0&&"<"!=Y[0];z&&X?q[q.length-1]+=Y:q.push(Y),z=X}else q.push(Y)}}}if(d&&J)for(var Z=q.length;Z--;)q[Z]="\n"+g+l(q[Z],g)}if(q.length||M)N+=q.join("");else if(r&&r.xml)return N.substring(0,N.length-1)+" />";return!K||$||M?(d&&~N.indexOf("\n")&&(N+="\n"),N=N+"</"+A+">"):N=N.replace(/>$/," />"),N}var _={shallow:!0};A.render=A;var S=function(e,t){return A(e,t,_)},E=[];function A(e,t,r){t=t||{};var o=n.options.__s;n.options.__s=!0;var i,a=(0,n.h)(n.Fragment,null);return a.__k=[e],i=r&&(r.pretty||r.voidElements||r.sortAttributes||r.shallow||r.allAttributes||r.xml||r.attributeHook)?w(e,t,r):R(e,t,!1,void 0,a),n.options.__c&&n.options.__c(e,E),n.options.__s=o,E.length=0,i}function k(e){return null==e||"boolean"==typeof e?null:"string"==typeof e||"number"==typeof e||"bigint"==typeof e?(0,n.h)(null,null,e):e}function O(e,t){return"className"===e?"class":"htmlFor"===e?"for":"defaultValue"===e?"value":"defaultChecked"===e?"checked":"defaultSelected"===e?"selected":t&&s.test(e)?e.toLowerCase().replace(/^xlink:?/,"xlink:"):e}function P(e,t){return"style"===e&&null!=t&&"object"==typeof t?h(t):"a"===e[0]&&"r"===e[1]&&"boolean"==typeof t?String(t):t}var x=Array.isArray,T=Object.assign;function R(e,t,r,o,s){if(null==e||!0===e||!1===e||""===e)return"";if("object"!=typeof e)return"function"==typeof e?"":c(e);if(x(e)){var u="";s.__k=e;for(var l=0;l<e.length;l++)u+=R(e[l],t,r,o,s),e[l]=k(e[l]);return u}if(void 0!==e.constructor)return"";e.__=s,n.options.__b&&n.options.__b(e);var f=e.type,p=e.props;if("function"==typeof f){if(f===n.Fragment)d=p.children;else{d=f.prototype&&"function"==typeof f.prototype.render?function(e,t){var r=e.type,o=b(r,t),i=new r(e.props,o);e.__c=i,i.__v=e,i.__d=!0,i.props=e.props,null==i.state&&(i.state={}),null==i.__s&&(i.__s=i.state),i.context=o,r.getDerivedStateFromProps?i.state=T({},i.state,r.getDerivedStateFromProps(i.props,i.state)):i.componentWillMount&&(i.componentWillMount(),i.state=i.__s!==i.state?i.__s:i.state);var a=n.options.__r;return a&&a(e),i.render(i.props,i.state,i.context)}(e,t):function(e,t){var r,o=m(e,t),i=b(e.type,t);e.__c=o;for(var a=n.options.__r,s=0;o.__d&&s++<25;)o.__d=!1,a&&a(e),r=e.type.call(o,e.props,i);return r}(e,t);var d,h=e.__c;h.getChildContext&&(t=T({},t,h.getChildContext()))}var y=R(d=null!=d&&d.type===n.Fragment&&null==d.key?d.props.children:d,t,r,o,e);return n.options.diffed&&n.options.diffed(e),e.__=void 0,n.options.unmount&&n.options.unmount(e),y}var g,v,w="<";if(w+=f,p)for(var _ in g=p.children,p){var S=p[_];if(!("key"===_||"ref"===_||"__self"===_||"__source"===_||"children"===_||"className"===_&&"class"in p||"htmlFor"===_&&"for"in p||a.test(_))){if(S=P(_=O(_,r),S),"dangerouslySetInnerHTML"===_)v=S&&S.__html;else if("textarea"===f&&"value"===_)g=S;else if((S||0===S||""===S)&&"function"!=typeof S){if(!0===S||""===S){S=_,w=w+" "+_;continue}if("value"===_){if("select"===f){o=S;continue}"option"!==f||o!=S||"selected"in p||(w+=" selected")}w=w+" "+_+'="'+c(S)+'"'}}}var E=w;if(w+=">",a.test(f))throw Error(f+" is not a valid HTML tag name in "+w);var A="",j=!1;if(v)A+=v,j=!0;else if("string"==typeof g)A+=c(g),j=!0;else if(x(g)){e.__k=g;for(var C=0;C<g.length;C++){var I=g[C];if(g[C]=k(I),null!=I&&!1!==I){var U=R(I,t,"svg"===f||"foreignObject"!==f&&r,o,e);U&&(A+=U,j=!0)}}}else if(null!=g&&!1!==g&&!0!==g){e.__k=[k(g)];var M=R(g,t,"svg"===f||"foreignObject"!==f&&r,o,e);M&&(A+=M,j=!0)}if(n.options.diffed&&n.options.diffed(e),e.__=void 0,n.options.unmount&&n.options.unmount(e),j)w+=A;else if(i.test(f))return E+" />";return w+"</"+f+">"}A.shallowRender=S,t.default=A},79080:function(e,t,r){"use strict";r.r(t),r.d(t,{Component:function(){return T},Fragment:function(){return x},cloneElement:function(){return Q},createContext:function(){return ee},createElement:function(){return k},createRef:function(){return P},h:function(){return k},hydrate:function(){return Z},isValidElement:function(){return a},options:function(){return o},render:function(){return X},toChildArray:function(){return H}});var n,o,i,a,s,u,c,l,f,p,d,h,y,g,m,b,v={},w=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,S=Array.isArray;function E(e,t){for(var r in t)e[r]=t[r];return e}function A(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function k(e,t,r){var o,i,a,s={};
vendor: 4,561 bytes, line 25
25for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return O(e,s,o,i,null)}function O(e,t,r,n,a){var s={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++i:a,__i:-1,__u:0};return null==a&&null!=o.vnode&&o.vnode(s),s}function P(){return{current:null}}function x(e){return e.children}function T(e,t){this.props=e,this.context=t}function R(e,t){if(null==t)return e.__?R(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?R(e):null}function j(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,n=[],i=[],a=E({},t);a.__v=t.__v+1,o.vnode&&o.vnode(a),$(e.__P,a,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,n,null==r?R(t):r,!!(32&t.__u),i),a.__v=t.__v,a.__.__k[a.__i]=a,q(n,a,i),t.__e=t.__=null,a.__e!=r&&C(a)}}function C(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),C(e)}function I(e){(!e.__d&&(e.__d=!0)&&s.push(e)&&!U.__r++||u!=o.debounceRendering)&&((u=o.debounceRendering)||c)(U)}function U(){try{for(var e,t=1;s.length;)s.length>t&&s.sort(l),e=s.shift(),t=s.length,j(e)}finally{s.length=U.__r=0}}function M(e,t,r,n,o,i,a,s,u,c,l){var f,p,d,h,y,g,m,b=n&&n.__k||w,_=t.length;for(u=N(r,t,b,u,_),f=0;f<_;f++)null!=(d=r.__k[f])&&(p=-1!=d.__i&&b[d.__i]||v,d.__i=f,g=$(e,d,p,o,i,a,s,u,c,l),h=d.__e,d.ref&&p.ref!=d.ref&&(p.ref&&G(p.ref,null,d),l.push(d.ref,d.__c||h,d)),null==y&&null!=h&&(y=h),(m=!!(4&d.__u))||p.__k===d.__k?(u=D(d,u,e,m),m&&p.__e&&(p.__e=null)):"function"==typeof d.type&&void 0!==g?u=g:h&&(u=h.nextSibling),d.__u&=-7);return r.__e=y,u}function N(e,t,r,n,o){var i,a,s,u,c,l=r.length,f=l,p=0;for(e.__k=Array(o),i=0;i<o;i++)null!=(a=t[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[i]=O(null,a,null,null,null):S(a)?a=e.__k[i]=O(x,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[i]=O(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[i]=a,u=i+p,a.__=e,a.__b=e.__b+1,s=null,-1!=(c=a.__i=L(a,r,u,f))&&(f--,(s=r[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(o>l?p--:o<l&&p++),"function"!=typeof a.type&&(a.__u|=4)):c!=u&&(c==u-1?p--:c==u+1?p++:(c>u?p--:p++,a.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<l;i++)null!=(s=r[i])&&0==(2&s.__u)&&(s.__e==n&&(n=R(s)),V(s,s));return n}function D(e,t,r,n){var o,i;if("function"==typeof e.type){for(o=e.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=e,t=D(o[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=R(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(null!=t&&8==t.nodeType);return t}function H(e,t){return t=t||[],null==e||"boolean"==typeof e||(S(e)?e.some(function(e){H(e,t)}):t.push(e)),t}function L(e,t,r,n){var o,i,a,s=e.key,u=e.type,c=t[r],l=null!=c&&0==(2&c.__u);if(null===c&&null==s||l&&s==c.key&&u==c.type)return r;if(n>(l?1:0)){for(o=r-1,i=r+1;o>=0||i<t.length;)if(null!=(c=t[a=o>=0?o--:i++])&&0==(2&c.__u)&&s==c.key&&u==c.type)return a}return -1}function W(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||_.test(t)?r:r+"px"}function B(e,t,r,n,o){var i,a;e:if("style"==t){if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||W(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||W(e.style,t,r[t])}}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(h,"$1")),t=(a=t.toLowerCase())in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r[d]=n[d]:(r[d]=y,e.addEventListener(t,i?m:g,i)):e.removeEventListener(t,i?m:g,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function F(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t[p])t[p]=y++;else if(t[p]<r[d])return;return r(o.event?o.event(t):t)}}}function $(e,t,r,n,i,a,s,u,c,l){var f,p,d,h,y,g,m,b,v,_,k,O,P,R,j,C=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),a=[u=t.__e=r.__e]),(f=o.__b)&&f(t);
vendor: 4,740 bytes, line 25
25e:if("function"==typeof C)try{if(b=t.props,v=C.prototype&&C.prototype.render,_=(f=C.contextType)&&n[f.__c],k=f?_?_.props.value:f.__:n,r.__c?m=(p=t.__c=r.__c).__=p.__E:(v?t.__c=p=new C(b,k):(t.__c=p=new T(b,k),p.constructor=C,p.render=Y),_&&_.sub(p),p.state||(p.state={}),p.__n=n,d=p.__d=!0,p.__h=[],p._sb=[]),v&&null==p.__s&&(p.__s=p.state),v&&null!=C.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=E({},p.__s)),E(p.__s,C.getDerivedStateFromProps(b,p.__s))),h=p.props,y=p.state,p.__v=t,d)v&&null==C.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),v&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(v&&null==C.getDerivedStateFromProps&&b!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(b,k),t.__v==r.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(b,p.__s,k)){t.__v!=r.__v&&(p.props=b,p.state=p.__s,p.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),w.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&s.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(b,p.__s,k),v&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(h,y,g)})}if(p.context=k,p.props=b,p.__P=e,p.__e=!1,O=o.__r,P=0,v)p.state=p.__s,p.__d=!1,O&&O(t),f=p.render(p.props,p.state,p.context),w.push.apply(p.__h,p._sb),p._sb=[];else do p.__d=!1,O&&O(t),f=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++P<25);p.state=p.__s,null!=p.getChildContext&&(n=E(E({},n),p.getChildContext())),v&&!d&&null!=p.getSnapshotBeforeUpdate&&(g=p.getSnapshotBeforeUpdate(h,y)),R=null!=f&&f.type===x&&null==f.key?J(f.props.children):f,u=M(e,S(R)?R:[R],t,r,n,i,a,s,u,c,l),p.base=t.__e,t.__u&=-161,p.__h.length&&s.push(p),m&&(p.__E=p.__=null)}catch(e){if(t.__v=null,c||null!=a){if(e.then){for(t.__u|=c?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,t.__e=u}else{for(j=a.length;j--;)A(a[j]);K(t)}}else t.__e=r.__e,t.__k=r.__k,e.then||K(t);o.__e(e,t,r)}else null==a&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):u=t.__e=z(r.__e,t,r,n,i,a,s,c,l);return(f=o.diffed)&&f(t),128&t.__u?void 0:u}function K(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(K))}function q(e,t,r){for(var n=0;n<r.length;n++)G(r[n],r[++n],r[++n]);o.__c&&o.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){o.__e(e,t.__v)}})}function J(e){return"object"!=typeof e||null==e||e.__b>0?e:S(e)?e.map(J):void 0!==e.constructor?null:E({},e)}function z(e,t,r,i,a,s,u,c,l){var f,p,d,h,y,g,m,b=r.props||v,w=t.props,_=t.type;if("svg"==_?a="http://www.w3.org/2000/svg":"math"==_?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s){for(f=0;f<s.length;f++)if((y=s[f])&&"setAttribute"in y==!!_&&(_?y.localName==_:3==y.nodeType)){e=y,s[f]=null;break}}if(null==e){if(null==_)return document.createTextNode(w);e=document.createElementNS(a,_,w.is&&w),c&&(o.__m&&o.__m(t,s),c=!1),s=null}if(null==_)b===w||c&&e.data==w||(e.data=w);else{if(s="textarea"==_&&null!=w.defaultValue?null:s&&n.call(e.childNodes),!c&&null!=s)for(b={},f=0;f<e.attributes.length;f++)b[(y=e.attributes[f]).name]=y.value;for(f in b)y=b[f],"dangerouslySetInnerHTML"==f?d=y:"children"==f||f in w||"value"==f&&"defaultValue"in w||"checked"==f&&"defaultChecked"in w||B(e,f,null,y,a);for(f in w)y=w[f],"children"==f?h=y:"dangerouslySetInnerHTML"==f?p=y:"value"==f?g=y:"checked"==f?m=y:c&&"function"!=typeof y||b[f]===y||B(e,f,y,b[f],a);if(p)c||d&&(p.__html==d.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(d&&(e.innerHTML=""),M("template"==t.type?e.content:e,S(h)?h:[h],t,r,i,"foreignObject"==_?"http://www.w3.org/1999/xhtml":a,s,u,s?s[0]:r.__k&&R(r,0),c,l),null!=s)for(f=s.length;f--;)A(s[f]);c&&"textarea"!=_||(f="value","progress"==_&&null==g?e.removeAttribute("value"):null==g||g===e[f]&&("progress"!=_||g)&&("option"!=_||g==b[f])||B(e,f,g,b[f],a),f="checked",null!=m&&m!=e[f]&&B(e,f,m,b[f],a))}return e}function G(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){o.__e(e,r)}}function V(e,t,r){var n,i;if(o.unmount&&o.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||G(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){o.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&V(n[i],t,r||"function"!=typeof e.type);r||A(e.__e),e.__c=e.__=e.__e=void 0}function Y(e,t,r){return this.constructor(e,r)}function X(e,t,r){var i,a,s,u;t==document&&(t=document.documentElement),o.__&&o.__(e,t),a=(i="function"==typeof r)?null:r&&r.__k||t.__k,s=[],u=[],$(t,e=(!i&&r||t).__k=k(x,null,[e]),a||v,v,t.namespaceURI,!i&&r?[r]:a?null:t.firstChild?n.call(t.childNodes):null,
vendor: 1,654 bytes, line 25
25s,!i&&r?r:a?a.__e:t.firstChild,i,u),q(s,e,u)}function Z(e,t){X(e,t,Z)}function Q(e,t,r){var o,i,a,s,u=E({},e.props);for(a in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)"key"==a?o=t[a]:"ref"==a?i=t[a]:u[a]=void 0===t[a]&&null!=s?s[a]:t[a];return arguments.length>2&&(u.children=arguments.length>3?n.call(arguments,2):r),O(e.type,u,o||e.key,i||e.ref,null)}function ee(e){function t(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach(function(e){e.__e=!0,I(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+b++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}n=w.slice,o={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,a=function(e){return null!=e&&void 0===e.constructor},T.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=E({},this.state),"function"==typeof e&&(e=e(E({},r),this.props)),e&&E(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),I(this))},T.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),I(this))},T.prototype.render=x,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Prom
25ise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},U.__r=0,p="__d"+(f=Math.random().toString(8)),d="__a"+f,h=/(PointerCapture)$|Capture$/i,y=0,g=F(!1),m=F(!0),b=0},73306:function(e,t,r){var n=r(82957),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},64582:function(e,t,r){"use strict";var n=r(73306).Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=i(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=h,this.end=y,t=4;break;case"utf8":this.fillLast=f,t=4;break;case"base64":this.text=g,this.end=m,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n<r)return 0;var o=u(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=u(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=u(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function f(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function p(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function h(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function y(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function m(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},s.prototype.end=d,s.prototype.text=p,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},24536:function(e,t,r){"use strict";r.r(t),r.d(t,{NIL:function(){return D},parse:function(){return g},stringify:function(){return p},v1:function(){return y},v3:function(){return C},v4:function(){return I},v5:function(){return N},validate:function(){return c},version:function(){return H}});var n,o,i,a=new Uint8Array(16);function s(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)}for(var u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,c=function(e){return"string"==typeof e&&u.test(e)},l=[],f=0;f<256;++f)l.push((f+256).toString(16).substr(1));var p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();
25if(!c(r))throw TypeError("Stringified UUID is invalid");return r},d=0,h=0,y=function(e,t,r){var n=t&&r||0,a=t||Array(16),u=(e=e||{}).node||o,c=void 0!==e.clockseq?e.clockseq:i;if(null==u||null==c){var l=e.random||(e.rng||s)();null==u&&(u=o=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==c&&(c=i=(l[6]<<8|l[7])&16383)}var f=void 0!==e.msecs?e.msecs:Date.now(),y=void 0!==e.nsecs?e.nsecs:h+1,g=f-d+(y-h)/1e4;if(g<0&&void 0===e.clockseq&&(c=c+1&16383),(g<0||f>d)&&void 0===e.nsecs&&(y=0),y>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");d=f,h=y,i=c;var m=((268435455&(f+=122192928e5))*1e4+y)%4294967296;a[n++]=m>>>24&255,a[n++]=m>>>16&255,a[n++]=m>>>8&255,a[n++]=255&m;var b=f/4294967296*1e4&268435455;a[n++]=b>>>8&255,a[n++]=255&b,a[n++]=b>>>24&15|16,a[n++]=b>>>16&255,a[n++]=c>>>8|128,a[n++]=255&c;for(var v=0;v<6;++v)a[n+v]=u[v];return t||p(a)},g=function(e){if(!c(e))throw TypeError("Invalid UUID");var t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function m(e){e=unescape(encodeURIComponent(e));for(var t=[],r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var b="6ba7b810-9dad-11d1-80b4-00c04fd430c8",v="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function w(e,t,r){function n(e,n,o,i){if("string"==typeof e&&(e=m(e)),"string"==typeof n&&(n=g(n)),16!==n.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(n),a.set(e,n.length),(a=r(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,o){i=i||0;for(var s=0;s<16;++s)o[i+s]=a[s];return o}return p(a)}try{n.name=e}catch(e){}return n.DNS=b,n.URL=v,n}function _(e){for(var t=[],r=32*e.length,n="0123456789abcdef",o=0;o<r;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(n.charAt(i>>>4&15)+n.charAt(15&i),16);t.push(a)}return t}function S(e){return(e+64>>>9<<4)+14+1}function E(e,t){e[t>>5]|=128<<t%32,e[S(t)-1]=t;for(var r=1732584193,n=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=o,l=i;r=x(r,n,o,i,e[a],7,-680876936),i=x(i,r,n,o,e[a+1],12,-389564586),o=x(o,i,r,n,e[a+2],17,606105819),n=x(n,o,i,r,e[a+3],22,-1044525330),r=x(r,n,o,i,e[a+4],7,-176418897),i=x(i,r,n,o,e[a+5],12,1200080426),o=x(o,i,r,n,e[a+6],17,-1473231341),n=x(n,o,i,r,e[a+7],22,-45705983),r=x(r,n,o,i,e[a+8],7,1770035416),i=x(i,r,n,o,e[a+9],12,-1958414417),o=x(o,i,r,n,e[a+10],17,-42063),n=x(n,o,i,r,e[a+11],22,-1990404162),r=x(r,n,o,i,e[a+12],7,1804603682),i=x(i,r,n,o,e[a+13],12,-40341101),o=x(o,i,r,n,e[a+14],17,-1502002290),n=x(n,o,i,r,e[a+15],22,1236535329),r=T(r,n,o,i,e[a+1],5,-165796510),i=T(i,r,n,o,e[a+6],9,-1069501632),o=T(o,i,r,n,e[a+11],14,643717713),n=T(n,o,i,r,e[a],20,-373897302),r=T(r,n,o,i,e[a+5],5,-701558691),i=T(i,r,n,o,e[a+10],9,38016083),o=T(o,i,r,n,e[a+15],14,-660478335),n=T(n,o,i,r,e[a+4],20,-405537848),r=T(r,n,o,i,e[a+9],5,568446438),i=T(i,r,n,o,e[a+14],9,-1019803690),o=T(o,i,r,n,e[a+3],14,-187363961),n=T(n,o,i,r,e[a+8],20,1163531501),r=T(r,n,o,i,e[a+13],5,-1444681467),i=T(i,r,n,o,e[a+2],9,-51403784),o=T(o,i,r,n,e[a+7],14,1735328473),n=T(n,o,i,r,e[a+12],20,-1926607734),r=R(r,n,o,i,e[a+5],4,-378558),i=R(i,r,n,o,e[a+8],11,-2022574463),o=R(o,i,r,n,e[a+11],16,1839030562),n=R(n,o,i,r,e[a+14],23,-35309556),r=R(r,n,o,i,e[a+1],4,-1530992060),i=R(i,r,n,o,e[a+4],11,1272893353),o=R(o,i,r,n,e[a+7],16,-155497632),n=R(n,o,i,r,e[a+10],23,-1094730640),r=R(r,n,o,i,e[a+13],4,681279174),i=R(i,r,n,o,e[a],11,-358537222),o=R(o,i,r,n,e[a+3],16,-722521979),n=R(n,o,i,r,e[a+6],23,76029189),r=R(r,n,o,i,e[a+9],4,-640364487),i=R(i,r,n,o,e[a+12],11,-421815835),o=R(o,i,r,n,e[a+15],16,530742520),n=R(n,o,i,r,e[a+2],23,-995338651),r=j(r,n,o,i,e[a],6,-198630844),i=j(i,r,n,o,e[a+7],10,1126891415),o=j(o,i,r,n,e[a+14],15,-1416354905),n=j(n,o,i,r,e[a+5],21,-57434055),r=j(r,n,o,i,e[a+12],6,1700485571),i=j(i,r,n,o,e[a+3],10,-1894986606),o=j(o,i,r,n,e[a+10],15,-1051523),n=j(n,o,i,r,e[a+1],21,-2054922799),r=j(r,n,o,i,e[a+8],6,1873313359),i=j(i,r,n,o,e[a+15],10,-30611744),o=j(o,i,r,n,e[a+6],15,-1560198380),n=j(n,o,i,r,e[a+13],21,1309151649),r=j(r,n,o,i,e[a+4],6,-145523070),i=j(i,r,n,o,e[a+11],10,-1120210379),o=j(o,i,r,n,e[a+2],15,718787259),n=j(n,o,i,r,e[a+9],21,-343485551),r=k(r,s),n=k(n,u),o=k(o,c),i=k(i,l)}return[r,n,o,i]}function A(e){if(0===e.length)return[];for(var t=8*e.length,r=new Uint32Array(S(t)),n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}function k(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function O(e,t){return e<<t|e>>>32-t}function P(e,t,r,n,o,i){return k(O(k(k(t,e),k(n,i)),o),r)}function x(e,t,r,n,o,i,a){return P(t&r|~t&n,e,t,o,i,a)}function T(e,t,r,n,o,i,a){return P(t&n|r&~n,e,t,o,i,a)}function R(e,t,r,n,o,i,a){return P(t^r^n,e,t,o,i,a)}function j(e,t,r,n,o,i,a){return P(r^(t|~n),e,t,o,i,a)}var C=w("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return _(E(A(e),8*e.length))}),I=function(e,t,r){var n=(e=e||{}).random||(e.rng||s)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return p(n)};function U(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function M(e,t){return e<<t|e>>>32-t}var N=w("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var o=0;o<n.length;++o)e.push(n.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=Math.ceil((e.length/4+2)/16),a=Array(i),s=0;s<i;++s){for(var u=new Uint32Array(16),c=0;c<16;++c)u[c]=e[64*s+4*c]<<24|e[64*s+4*c+1]<<16|e[64*s+4*c+2]<<8|e[64*s+4*c+3];a[s]=u}a[i-1][14]=(e.length-1)*8/4294967296,a[i-1][14]=Math.floor(a[i-1][14]),a[i-1][15]=(e.length-1)*8&4294967295;for(var l=0;l<i;++l){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=a[l][p];for(var d=16;d<80;++d)f[d]=M(f[d-3]^f[d-8]^f[d-14]^f[d-16],1);for(var h=r[0],y=r[1],g=r[2],m=r[3],b=r[4],v=0;v<80;++v){var w=Math.floor(v/20),_=M(h,5)+U(w,y,g,m)+b+t[w]+f[v]>>>0;b=m,m=g,g=M(y,30)>>>0,y=h,h=_}r[0]=r[0]+h>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+b>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}),D="00000000-0000-0000-0000-000000000000",H=function(e){if(!c(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},12722:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
25).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},39253:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return l},hkdf:function(){return l}});let n=()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;throw Error("unable to locate global object")};var o=async(e,t,r,o,i)=>{let{crypto:{subtle:a}}=n();return new Uint8Array(await a.deriveBits({name:"HKDF",hash:`SHA-${e.substr(3)}`,salt:r,info:o},await a.importKey("raw",t,"HKDF",!1,["deriveBits"]),i<<3))};function i(e){switch(e){case"sha256":case"sha384":case"sha512":case"sha1":return e;default:throw TypeError('unsupported "digest" value')}}function a(e,t){if("string"==typeof e)return new TextEncoder().encode(e);if(!(e instanceof Uint8Array))throw TypeError(`"${t}"" must be an instance of Uint8Array or a string`);return e}function s(e){let t=a(e,"ikm");if(!t.byteLength)throw TypeError('"ikm" must be at least one byte in length');return t}function u(e){let t=a(e,"info");if(t.byteLength>1024)throw TypeError('"info" must not contain more than 1024 bytes');return t}function c(e,t){if("number"!=typeof e||!Number.isInteger(e)||e<1)throw TypeError('"keylen" must be a positive integer');if(e>255*(parseInt(t.substr(3),10)>>3||20))throw TypeError('"keylen" too large');return e}async function l(e,t,r,n,l){return o(i(e),s(t),a(r,"salt"),u(n),c(l,e))}},86413:function(e,t,r){"use strict";r.r(t),r.d(t,{CompactEncrypt:function(){return tP},CompactSign:function(){return tR},EmbeddedJWK:function(){return tL},EncryptJWT:function(){return tM},FlattenedEncrypt:function(){return ti},FlattenedSign:function(){return tT},GeneralEncrypt:function(){return ts},GeneralSign:function(){return tC},SignJWT:function(){return tU},UnsecuredJWT:function(){return tX},base64url:function(){return o},calculateJwkThumbprint:function(){return tD},calculateJwkThumbprintUri:function(){return tH},compactDecrypt:function(){return e8},compactVerify:function(){return tp},createLocalJWKSet:function(){return tJ},createRemoteJWKSet:function(){return tY},cryptoRuntime:function(){return t8},decodeJwt:function(){return t1},decodeProtectedHeader:function(){return t0},errors:function(){return n},exportJWK:function(){return tr},exportPKCS8:function(){return tt},exportSPKI:function(){return te},flattenedDecrypt:function(){return e6},flattenedVerify:function(){return tf},generalDecrypt:function(){return e9},generalVerify:function(){return td},generateKeyPair:function(){return t4},generateSecret:function(){return t6},importJWK:function(){return eG},importPKCS8:function(){return ez},importSPKI:function(){return eq},importX509:function(){return eJ},jwtDecrypt:function(){return tO},jwtVerify:function(){return tk}});var n={};r.r(n),r.d(n,{JOSEAlgNotAllowed:function(){return k},JOSEError:function(){return S},JOSENotSupported:function(){return O},JWEDecompressionFailed:function(){return x},JWEDecryptionFailed:function(){return P},JWEInvalid:function(){return T},JWKInvalid:function(){return C},JWKSInvalid:function(){return I},JWKSMultipleMatchingKeys:function(){return M},JWKSNoMatchingKey:function(){return U},JWKSTimeout:function(){return N},JWSInvalid:function(){return R},JWSSignatureVerificationFailed:function(){return D},JWTClaimValidationFailed:function(){return E},JWTExpired:function(){return A},JWTInvalid:function(){return j}});var o={};r.r(o),r.d(o,{decode:function(){return tQ},encode:function(){return tZ}});var i=crypto;let a=e=>e instanceof CryptoKey;var s=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await i.subtle.digest(r,t))};let u=new TextEncoder,c=new TextDecoder,l=4294967296;function f(...e){let t=new Uint8Array(e.reduce((e,{length:t})=>e+t,0)),r=0;return e.forEach(e=>{t.set(e,r),r+=e.length}),t}function p(e,t){return f(u.encode(e),new Uint8Array([0]),t)}function d(e,t,r){if(t<0||t>=l)throw RangeError(`value must be >= 0 and <= ${l-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function h(e){let t=Math.floor(e/l),r=e%l,n=new Uint8Array(8);return d(n,t,0),d(n,r,4),n}function y(e){let t=new Uint8Array(4);return d(t,e),t}function g(e){return f(y(e.length),e)}async function m(e,t,r){let n=Math.ceil((t>>3)/32),o=new Uint8Array(32*n);for(let t=0;t<n;t++){let n=new Uint8Array(4+e.length+r.length);n.set(y(t+1)),n.set(e,4),n.set(r,4+e.length),o.set(await s("sha256",n),32*t)}return o.slice(0,t>>3)}let b=e=>{let t=e;"string"==typeof t&&(t=u.encode(t));let r=32768,n=[];for(let e=0;e<t.length;e+=r)n.push(String.fromCharCode.apply(null,t.subarray(e,e+r)));return btoa(n.join(""))},v=e=>b(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),w=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r},_=e=>{let t=e;t instanceof Uint8Array&&(t=c.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return w(t)}catch(e){throw TypeError("The input to be decoded is not correctly encoded.")}};
25class S extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,null===(t=Error.captureStackTrace)||void 0===t||t.call(Error,this,this.constructor)}}class E extends S{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=t,this.reason=r}}class A extends S{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t="unspecified",r="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=t,this.reason=r}}class k extends S{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}static get code(){return"ERR_JOSE_ALG_NOT_ALLOWED"}}class O extends S{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}}class P extends S{constructor(){super(...arguments),this.code="ERR_JWE_DECRYPTION_FAILED",this.message="decryption operation failed"}static get code(){return"ERR_JWE_DECRYPTION_FAILED"}}class x extends S{constructor(){super(...arguments),this.code="ERR_JWE_DECOMPRESSION_FAILED",this.message="decompression operation failed"}static get code(){return"ERR_JWE_DECOMPRESSION_FAILED"}}class T extends S{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}static get code(){return"ERR_JWE_INVALID"}}class R extends S{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}}class j extends S{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}}class C extends S{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}static get code(){return"ERR_JWK_INVALID"}}class I extends S{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}static get code(){return"ERR_JWKS_INVALID"}}class U extends S{constructor(){super(...arguments),this.code="ERR_JWKS_NO_MATCHING_KEY",this.message="no applicable key found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_NO_MATCHING_KEY"}}class M extends S{constructor(){super(...arguments),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS",this.message="multiple matching keys found in the JSON Web Key Set"}static get code(){return"ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}class N extends S{constructor(){super(...arguments),this.code="ERR_JWKS_TIMEOUT",this.message="request timed out"}static get code(){return"ERR_JWKS_TIMEOUT"}}class D extends S{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}var H=i.getRandomValues.bind(i);function L(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new O(`Unsupported JWE Algorithm: ${e}`)}}var W=e=>H(new Uint8Array(L(e)>>3)),B=(e,t)=>{if(t.length<<3!==L(e))throw new T("Invalid Initialization Vector length")},F=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new T(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)},$=(e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,n=0,o=-1;for(;++o<r;)n|=e[o]^t[o];return 0===n};function K(e,t="algorithm.name"){return TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function q(e,t){return e.name===t}function J(e){return parseInt(e.name.slice(4),10)}function z(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw Error("unreachable")}}function G(e,t){if(t.length&&!t.some(t=>e.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}
25function V(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!q(e.algorithm,"HMAC"))throw K("HMAC");let r=parseInt(t.slice(2),10);if(J(e.algorithm.hash)!==r)throw K(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!q(e.algorithm,"RSASSA-PKCS1-v1_5"))throw K("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10);if(J(e.algorithm.hash)!==r)throw K(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!q(e.algorithm,"RSA-PSS"))throw K("RSA-PSS");let r=parseInt(t.slice(2),10);if(J(e.algorithm.hash)!==r)throw K(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw K("Ed25519 or Ed448");break;case"ES256":case"ES384":case"ES512":{if(!q(e.algorithm,"ECDSA"))throw K("ECDSA");let r=z(t);if(e.algorithm.namedCurve!==r)throw K(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}G(e,r)}function Y(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!q(e.algorithm,"AES-GCM"))throw K("AES-GCM");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw K(r,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!q(e.algorithm,"AES-KW"))throw K("AES-KW");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw K(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw K("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!q(e.algorithm,"PBKDF2"))throw K("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!q(e.algorithm,"RSA-OAEP"))throw K("RSA-OAEP");let r=parseInt(t.slice(9),10)||1;if(J(e.algorithm.hash)!==r)throw K(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}G(e,r)}function X(e,t,...r){if(r.length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor&&t.constructor.name&&(e+=` Received an instance of ${t.constructor.name}`),e}var Z=(e,...t)=>X("Key must be ",e,...t);function Q(e,t,...r){return X(`Key for the ${e} algorithm must be `,t,...r)}var ee=e=>a(e);let et=["CryptoKey"];async function er(e,t,r,n,o,a){let s,u;if(!(t instanceof Uint8Array))throw TypeError(Z(t,"Uint8Array"));let c=parseInt(e.slice(1,4),10),l=await i.subtle.importKey("raw",t.subarray(c>>3),"AES-CBC",!1,["decrypt"]),p=await i.subtle.importKey("raw",t.subarray(0,c>>3),{hash:`SHA-${c<<1}`,name:"HMAC"},!1,["sign"]),d=f(a,n,r,h(a.length<<3)),y=new Uint8Array((await i.subtle.sign("HMAC",p,d)).slice(0,c>>3));try{s=$(o,y)}catch(e){}if(!s)throw new P;try{u=new Uint8Array(await i.subtle.decrypt({iv:n,name:"AES-CBC"},l,r))}catch(e){}if(!u)throw new P;return u}async function en(e,t,r,n,o,a){let s;t instanceof Uint8Array?s=await i.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(Y(t,e,"decrypt"),s=t);try{return new Uint8Array(await i.subtle.decrypt({additionalData:a,iv:n,name:"AES-GCM",tagLength:128},s,f(r,o)))}catch(e){throw new P}}var eo=async(e,t,r,n,o,i)=>{if(!a(t)&&!(t instanceof Uint8Array))throw TypeError(Z(t,...et,"Uint8Array"));switch(B(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&F(t,parseInt(e.slice(-3),10)),er(e,t,r,n,o,i);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&F(t,parseInt(e.slice(1,4),10)),en(e,t,r,n,o,i);default:throw new O("Unsupported JWE Content Encryption Algorithm")}};let ei=async()=>{throw new O('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.')},ea=async()=>{throw new O('JWE "zip" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.')};var es=(...e)=>{let t;let r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0};function eu(e){return"object"==typeof e&&null!==e}function ec(e){if(!eu(e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}
25var el=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function ef(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function ep(e,t,r){if(a(e))return Y(e,t,r),e;if(e instanceof Uint8Array)return i.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(Z(e,...et,"Uint8Array"))}let ed=async(e,t,r)=>{let n=await ep(t,e,"wrapKey");ef(n,e);let o=await i.subtle.importKey("raw",r,...el);return new Uint8Array(await i.subtle.wrapKey("raw",o,n,"AES-KW"))},eh=async(e,t,r)=>{let n=await ep(t,e,"unwrapKey");ef(n,e);let o=await i.subtle.unwrapKey("raw",r,n,"AES-KW",...el);return new Uint8Array(await i.subtle.exportKey("raw",o))};async function ey(e,t,r,n,o=new Uint8Array(0),s=new Uint8Array(0)){let c;if(!a(e))throw TypeError(Z(e,...et));if(Y(e,"ECDH"),!a(t))throw TypeError(Z(t,...et));Y(t,"ECDH","deriveBits");let l=f(g(u.encode(r)),g(o),g(s),y(n));return c="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3,m(new Uint8Array(await i.subtle.deriveBits({name:e.algorithm.name,public:e},t,c)),n,l)}async function eg(e){if(!a(e))throw TypeError(Z(e,...et));return i.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function em(e){if(!a(e))throw TypeError(Z(e,...et));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}function eb(e){if(!(e instanceof Uint8Array)||e.length<8)throw new T("PBES2 Salt Input must be 8 or more octets")}function ev(e,t){if(e instanceof Uint8Array)return i.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(a(e))return Y(e,t,"deriveBits","deriveKey"),e;throw TypeError(Z(e,...et,"Uint8Array"))}async function ew(e,t,r,n){eb(e);let o=p(t,e),a=parseInt(t.slice(13,16),10),s={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:o},u={length:a,name:"AES-KW"},c=await ev(n,t);if(c.usages.includes("deriveBits"))return new Uint8Array(await i.subtle.deriveBits(s,c,a));if(c.usages.includes("deriveKey"))return i.subtle.deriveKey(s,c,u,!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let e_=async(e,t,r,n=2048,o=H(new Uint8Array(16)))=>{let i=await ew(o,e,n,t);return{encryptedKey:await ed(e.slice(-6),i,r),p2c:n,p2s:v(o)}},eS=async(e,t,r,n,o)=>{let i=await ew(o,e,n,t);return eh(e.slice(-6),i,r)};function eE(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new O(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}var eA=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};let ek=async(e,t,r)=>{if(!a(t))throw TypeError(Z(t,...et));if(Y(t,e,"encrypt","wrapKey"),eA(e,t),t.usages.includes("encrypt"))return new Uint8Array(await i.subtle.encrypt(eE(e),t,r));if(t.usages.includes("wrapKey")){let n=await i.subtle.importKey("raw",r,...el);return new Uint8Array(await i.subtle.wrapKey("raw",n,t,eE(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},eO=async(e,t,r)=>{if(!a(t))throw TypeError(Z(t,...et));if(Y(t,e,"decrypt","unwrapKey"),eA(e,t),t.usages.includes("decrypt"))return new Uint8Array(await i.subtle.decrypt(eE(e),t,r));if(t.usages.includes("unwrapKey")){let n=await i.subtle.unwrapKey("raw",r,t,eE(e),...el);return new Uint8Array(await i.subtle.exportKey("raw",n))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function eP(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new O(`Unsupported JWE Algorithm: ${e}`)}}var ex=e=>H(new Uint8Array(eP(e)>>3)),eT=(e,t)=>{let r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}----- 26${r} 27-----END ${t}-----`};let eR=async(e,t,r)=>{if(!a(r))throw TypeError(Z(r,...et));if(!r.extractable)throw TypeError("CryptoKey is not extractable");if(r.type!==e)throw TypeError(`key is not a ${e} key`);
27return eT(b(new Uint8Array(await i.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)},ej=e=>eR("public","spki",e),eC=e=>eR("private","pkcs8",e),eI=(e,t,r=0)=>{0===r&&(t.unshift(t.length),t.unshift(6));let n=e.indexOf(t[0],r);if(-1===n)return!1;let o=e.subarray(n,n+t.length);return o.length===t.length&&(o.every((e,r)=>e===t[r])||eI(e,t,n+1))},eU=e=>{switch(!0){case eI(e,[42,134,72,206,61,3,1,7]):return"P-256";case eI(e,[43,129,4,0,34]):return"P-384";case eI(e,[43,129,4,0,35]):return"P-521";case eI(e,[43,101,110]):return"X25519";case eI(e,[43,101,111]):return"X448";case eI(e,[43,101,112]):return"Ed25519";case eI(e,[43,101,113]):return"Ed448";default:throw new O("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},eM=async(e,t,r,n,o)=>{var a;let s,u;let c=new Uint8Array(atob(r.replace(e,"")).split("").map(e=>e.charCodeAt(0))),l="spki"===t;switch(n){case"PS256":case"PS384":case"PS512":s={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},u=l?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":s={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},u=l?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},u=l?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":s={name:"ECDSA",namedCurve:"P-256"},u=l?["verify"]:["sign"];break;case"ES384":s={name:"ECDSA",namedCurve:"P-384"},u=l?["verify"]:["sign"];break;case"ES512":s={name:"ECDSA",namedCurve:"P-521"},u=l?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let e=eU(c);s=e.startsWith("P-")?{name:"ECDH",namedCurve:e}:{name:e},u=l?[]:["deriveBits"];break}
27case"EdDSA":s={name:eU(c)},u=l?["verify"]:["sign"];break;default:throw new O('Invalid or unsupported "alg" (Algorithm) value')}return i.subtle.importKey(t,c,s,null!==(a=null==o?void 0:o.extractable)&&void 0!==a&&a,u)},eN=(e,t,r)=>eM(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t,r),eD=(e,t,r)=>eM(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",e,t,r);function eH(e){let t=[],r=0;for(;r<e.length;){let n=eL(e.subarray(r));t.push(n),r+=n.byteLength}return t}function eL(e){let t=0,r=31&e[0];if(t++,31===r){for(r=0;e[t]>=128;)r=128*r+e[t]-128,t++;r=128*r+e[t]-128,t++}let n=0;if(e[t]<128)n=e[t],t++;else if(128===n){for(n=0;0!==e[t+n]||0!==e[t+n+1];){if(n>e.byteLength)throw TypeError("invalid indefinite form length");n++}let r=t+n+2;return{byteLength:r,contents:e.subarray(t,t+n),raw:e.subarray(0,r)}}else{let r=127&e[t];t++,n=0;for(let o=0;o<r;o++)n=256*n+e[t],t++}let o=t+n;return{byteLength:o,contents:e.subarray(t,o),raw:e.subarray(0,o)}}function eW(e){let t=eH(eH(eL(e).contents)[0].contents);return b(t[160===t[0].raw[0]?6:5].raw)}function eB(e){return eT(eW(w(e.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\s)/g,""))),"PUBLIC KEY")}let eF=(e,t,r)=>{let n;try{n=eB(e)}catch(e){throw TypeError("Failed to parse the X.509 certificate",{cause:e})}return eD(n,t,r)};function e$(e){let t,r;switch(e.kty){case"oct":switch(e.alg){case"HS256":case"HS384":case"HS512":t={name:"HMAC",hash:`SHA-${e.alg.slice(-3)}`},r=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":throw new O(`${e.alg} keys cannot be imported as CryptoKey instances`);case"A128GCM":case"A192GCM":case"A256GCM":case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":t={name:"AES-GCM"},r=["encrypt","decrypt"];break;case"A128KW":case"A192KW":case"A256KW":t={name:"AES-KW"},r=["wrapKey","unwrapKey"];break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":t={name:"PBKDF2"},r=["deriveBits"];break;default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new O('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}var eK=async e=>{var t,r;if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:n,keyUsages:o}=e$(e),a=[n,null!==(t=e.ext)&&void 0!==t&&t,null!==(r=e.key_ops)&&void 0!==r?r:o];if("PBKDF2"===n.name)return i.subtle.importKey("raw",_(e.k),...a);let s={...e};return delete s.alg,delete s.use,i.subtle.importKey("jwk",s,...a)};async function eq(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return eD(e,t,r)}async function eJ(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');return eF(e,t,r)}async function ez(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return eN(e,t,r)}async function eG(e,t,r){var n;if(!ec(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');
27if(null!=r||(r=!0!==e.ext),r)return eK({...e,alg:t,ext:null!==(n=e.ext)&&void 0!==n&&n});return _(e.k);case"RSA":if(void 0!==e.oth)throw new O('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return eK({...e,alg:t});default:throw new O('Unsupported "kty" (Key Type) Parameter value')}}let eV=(e,t)=>{if(!(t instanceof Uint8Array)){if(!ee(t))throw TypeError(Q(e,t,...et,"Uint8Array"));if("secret"!==t.type)throw TypeError(`${et.join(" or ")} instances for symmetric algorithms must be of type "secret"`)}},eY=(e,t,r)=>{if(!ee(t))throw TypeError(Q(e,t,...et));if("secret"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${et.join(" or ")} instances for asymmetric algorithm encryption must be of type "public"`)};var eX=(e,t,r)=>{e.startsWith("HS")||"dir"===e||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?eV(e,t):eY(e,t,r)};async function eZ(e,t,r,n,o){if(!(r instanceof Uint8Array))throw TypeError(Z(r,"Uint8Array"));let a=parseInt(e.slice(1,4),10),s=await i.subtle.importKey("raw",r.subarray(a>>3),"AES-CBC",!1,["encrypt"]),u=await i.subtle.importKey("raw",r.subarray(0,a>>3),{hash:`SHA-${a<<1}`,name:"HMAC"},!1,["sign"]),c=new Uint8Array(await i.subtle.encrypt({iv:n,name:"AES-CBC"},s,t)),l=f(o,n,c,h(o.length<<3));return{ciphertext:c,tag:new Uint8Array((await i.subtle.sign("HMAC",u,l)).slice(0,a>>3))}}async function eQ(e,t,r,n,o){let a;r instanceof Uint8Array?a=await i.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(Y(r,e,"encrypt"),a=r);let s=new Uint8Array(await i.subtle.encrypt({additionalData:o,iv:n,name:"AES-GCM",tagLength:128},a,t)),u=s.slice(-16);return{ciphertext:s.slice(0,-16),tag:u}}var e0=async(e,t,r,n,o)=>{if(!a(r)&&!(r instanceof Uint8Array))throw TypeError(Z(r,...et,"Uint8Array"));switch(B(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&F(r,parseInt(e.slice(-3),10)),eZ(e,t,r,n,o);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&F(r,parseInt(e.slice(1,4),10)),eQ(e,t,r,n,o);default:throw new O("Unsupported JWE Content Encryption Algorithm")}};async function e1(e,t,r,n){let o=e.slice(0,7);n||(n=W(o));let{ciphertext:i,tag:a}=await e0(o,r,t,n,new Uint8Array(0));return{encryptedKey:i,iv:v(n),tag:v(a)}}async function e2(e,t,r,n,o){return eo(e.slice(0,7),t,r,n,o,new Uint8Array(0))}var e5=async function(e,t,r,n,o){switch(eX(e,t,"decrypt"),e){case"dir":if(void 0!==r)throw new T("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new T("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let o,i;if(!ec(n.epk))throw new T('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!em(t))throw new O("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await eG(n.epk,e);if(void 0!==n.apu){if("string"!=typeof n.apu)throw new T('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{o=_(n.apu)}catch(e){throw new T("Failed to base64url decode the apu")}}if(void 0!==n.apv){if("string"!=typeof n.apv)throw new T('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{i=_(n.apv)}catch(e){throw new T("Failed to base64url decode the apv")}}let s=await ey(a,t,"ECDH-ES"===e?n.enc:e,"ECDH-ES"===e?eP(n.enc):parseInt(e.slice(-5,-2),10),o,i);if("ECDH-ES"===e)return s;if(void 0===r)throw new T("JWE Encrypted Key missing");return eh(e.slice(-6),s,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new T("JWE Encrypted Key missing");return eO(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let i;if(void 0===r)throw new T("JWE Encrypted Key missing");if("number"!=typeof n.p2c)throw new T('JOSE Header "p2c" (PBES2 Count) missing or invalid');let a=(null==o?void 0:o.maxPBES2Count)||1e4;if(n.p2c>a)throw new T('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof n.p2s)throw new T('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{i=_(n.p2s)}catch(e){throw new T("Failed to base64url decode the p2s")}return eS(e,t,r,n.p2c,i)}
27case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new T("JWE Encrypted Key missing");return eh(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let o,i;if(void 0===r)throw new T("JWE Encrypted Key missing");if("string"!=typeof n.iv)throw new T('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof n.tag)throw new T('JOSE Header "tag" (Authentication Tag) missing or invalid');try{o=_(n.iv)}catch(e){throw new T("Failed to base64url decode the iv")}try{i=_(n.tag)}catch(e){throw new T("Failed to base64url decode the tag")}return e2(e,t,r,o,i)}default:throw new O('Invalid or unsupported "alg" (JWE Algorithm) header value')}},e3=function(e,t,r,n,o){let i;if(void 0!==o.crit&&void 0===n.crit)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(i=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!i.has(a))throw new O(`Extension Header Parameter "${a}" is not recognized`);if(void 0===o[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(i.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)},e4=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function e6(e,t,r){var n;let o,i,a,s,l,p,d;if(!ec(e))throw new T("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new T("JOSE Header missing");if("string"!=typeof e.iv)throw new T("JWE Initialization Vector missing or incorrect type");if("string"!=typeof e.ciphertext)throw new T("JWE Ciphertext missing or incorrect type");if("string"!=typeof e.tag)throw new T("JWE Authentication Tag missing or incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new T("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new T("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new T("JWE AAD incorrect type");if(void 0!==e.header&&!ec(e.header))throw new T("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!ec(e.unprotected))throw new T("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=_(e.protected);o=JSON.parse(c.decode(t))}catch(e){throw new T("JWE Protected Header is invalid")}if(!es(o,e.header,e.unprotected))throw new T("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let h={...o,...e.header,...e.unprotected};if(e3(T,new Map,null==r?void 0:r.crit,o,h),void 0!==h.zip){if(!o||!o.zip)throw new T('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==h.zip)throw new O('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:y,enc:g}=h;if("string"!=typeof y||!y)throw new T("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof g||!g)throw new T("missing JWE Encryption Algorithm (enc) in JWE Header");let m=r&&e4("keyManagementAlgorithms",r.keyManagementAlgorithms),b=r&&e4("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(m&&!m.has(y))throw new k('"alg" (Algorithm) Header Parameter not allowed');if(b&&!b.has(g))throw new k('"enc" (Encryption Algorithm) Header Parameter not allowed');if(void 0!==e.encrypted_key)try{i=_(e.encrypted_key)}catch(e){throw new T("Failed to base64url decode the encrypted_key")}let v=!1;"function"==typeof t&&(t=await t(o,e),v=!0);try{a=await e5(y,t,i,h,r)}catch(e){if(e instanceof TypeError||e instanceof T||e instanceof O)throw e;a=ex(g)}try{s=_(e.iv)}catch(e){throw new T("Failed to base64url decode the iv")}try{l=_(e.tag)}catch(e){throw new T("Failed to base64url decode the tag")}let w=u.encode(null!==(n=e.protected)&&void 0!==n?n:"");p=void 0!==e.aad?f(w,u.encode("."),u.encode(e.aad)):w;try{d=_(e.ciphertext)}catch(e){throw new T("Failed to base64url decode the ciphertext")}let S=await eo(g,a,d,s,l,p);"DEF"===h.zip&&(S=await ((null==r?void 0:r.inflateRaw)||ei)(S));let E={plaintext:S};if(void 0!==e.protected&&(E.protectedHeader=o),void 0!==e.aad)try{E.additionalAuthenticatedData=_(e.aad)}catch(e){throw new T("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(E.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(E.unprotectedHeader=e.header),v)?{...E,key:t}:E}async function e8(e,t,r){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new T("Compact JWE must be a string or Uint8Array");let{0:n,1:o,2:i,3:a,4:s,length:u}=e.split(".");if(5!==u)throw new T("Invalid Compact JWE");let l=await e6({ciphertext:a,iv:i||void 0,protected:n||void 0,tag:s||void 0,encrypted_key:o||void 0},t,r),f={plaintext:l.plaintext,protectedHeader:l.protectedHeader};return"function"==typeof t?{...f,key:l.key}:f}async function e9(e,t,r){if(!ec(e))throw new T("General JWE must be an object");
27if(!Array.isArray(e.recipients)||!e.recipients.every(ec))throw new T("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new T("JWE Recipients has no members");for(let n of e.recipients)try{return await e6({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch(e){}throw new P}var e7=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:v(e)};if(!a(e))throw TypeError(Z(e,...et,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:o,...s}=await i.subtle.exportKey("jwk",e);return s};async function te(e){return ej(e)}async function tt(e){return eC(e)}async function tr(e){return e7(e)}var tn=async function(e,t,r,n,o={}){let i,a,s;switch(eX(e,r,"encrypt"),e){case"dir":s=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!em(r))throw new O("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:u,apv:c}=o,{epk:l}=o;l||(l=(await eg(r)).privateKey);let{x:f,y:p,crv:d,kty:h}=await tr(l),y=await ey(r,l,"ECDH-ES"===e?t:e,"ECDH-ES"===e?eP(t):parseInt(e.slice(-5,-2),10),u,c);if(a={epk:{x:f,crv:d,kty:h}},"EC"===h&&(a.epk.y=p),u&&(a.apu=v(u)),c&&(a.apv=v(c)),"ECDH-ES"===e){s=y;break}s=n||ex(t);let g=e.slice(-6);i=await ed(g,y,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s=n||ex(t),i=await ek(e,r,s);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||ex(t);let{p2c:u,p2s:c}=o;({encryptedKey:i,...a}=await e_(e,r,s,u,c));break}case"A128KW":case"A192KW":case"A256KW":s=n||ex(t),i=await ed(e,r,s);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||ex(t);let{iv:u}=o;({encryptedKey:i,...a}=await e1(e,r,s,u));break}default:throw new O('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:i,parameters:a}};let to=Symbol();class ti{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,t){let r,n,o,i,a,s,l;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new T("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!es(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new T("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let p={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(e3(T,new Map,null==t?void 0:t.crit,this._protectedHeader,p),void 0!==p.zip){if(!this._protectedHeader||!this._protectedHeader.zip)throw new T('JWE "zip" (Compression Algorithm) Header MUST be integrity protected');if("DEF"!==p.zip)throw new O('Unsupported JWE "zip" (Compression Algorithm) Header Parameter value')}let{alg:d,enc:h}=p;if("string"!=typeof d||!d)throw new T('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof h||!h)throw new T('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if("dir"===d){if(this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Encryption")}else if("ECDH-ES"===d&&this._cek)throw TypeError("setContentEncryptionKey cannot be called when using Direct Key Agreement");{let o;({cek:n,encryptedKey:r,parameters:o}=await tn(d,h,e,this._cek,this._keyManagementParameters)),o&&(t&&to in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...o}:this.setUnprotectedHeader(o):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...o}:this.setProtectedHeader(o))}if(this._iv||(this._iv=W(h)),i=this._protectedHeader?u.encode(v(JSON.stringify(this._protectedHeader))):u.encode(""),this._aad?(a=v(this._aad),o=f(i,u.encode("."),u.encode(a))):o=i,"DEF"===p.zip){let e=await ((null==t?void 0:t.deflateRaw)||ea)(this._plaintext);({ciphertext:s,tag:l}=await e0(h,e,n,this._iv,o))}else({ciphertext:s,tag:l}=await e0(h,this._plaintext,n,this._iv,o));let y={ciphertext:v(s),iv:v(this._iv),tag:v(l)};return r&&(y.encrypted_key=v(r)),a&&(y.aad=a),this._protectedHeader&&(y.protected=c.decode(i)),this._sharedUnprotectedHeader&&(y.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(y.header=this._unprotectedHeader),y}}class ta{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class ts{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new ta(this,e,{crit:null==t?void 0:t.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(e){var t,r,n;let o;if(!this._recipients.length)throw new T("at least one recipient must be added");if(e={deflateRaw:null==e?void 0:e.deflateRaw},1===this._recipients.length){let[t]=this._recipients,r=await new ti(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(t.unprotectedHeader).encrypt
27(t.key,{...t.options,...e}),n={ciphertext:r.ciphertext,iv:r.iv,recipients:[{}],tag:r.tag};return r.aad&&(n.aad=r.aad),r.protected&&(n.protected=r.protected),r.unprotected&&(n.unprotected=r.unprotected),r.encrypted_key&&(n.recipients[0].encrypted_key=r.encrypted_key),r.header&&(n.recipients[0].header=r.header),n}for(let e=0;e<this._recipients.length;e++){let t=this._recipients[e];if(!es(this._protectedHeader,this._unprotectedHeader,t.unprotectedHeader))throw new T("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let r={...this._protectedHeader,...this._unprotectedHeader,...t.unprotectedHeader},{alg:n}=r;if("string"!=typeof n||!n)throw new T('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("dir"===n||"ECDH-ES"===n)throw new T('"dir" and "ECDH-ES" alg may only be used with a single recipient');if("string"!=typeof r.enc||!r.enc)throw new T('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(o){if(o!==r.enc)throw new T('JWE "enc" (Encryption Algorithm) Header Parameter must be the same for all recipients')}else o=r.enc;if(e3(T,new Map,t.options.crit,this._protectedHeader,r),void 0!==r.zip&&(!this._protectedHeader||!this._protectedHeader.zip))throw new T('JWE "zip" (Compression Algorithm) Header MUST be integrity protected')}let i=ex(o),a={ciphertext:"",iv:"",recipients:[],tag:""};for(let s=0;s<this._recipients.length;s++){let u=this._recipients[s],c={};a.recipients.push(c);let l=({...this._protectedHeader,...this._unprotectedHeader,...u.unprotectedHeader}).alg.startsWith("PBES2")?2048+s:void 0;if(0===s){let t=await new ti(this._plaintext).setAdditionalAuthenticatedData(this._aad).setContentEncryptionKey(i).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(u.unprotectedHeader).setKeyManagementParameters({p2c:l}).encrypt(u.key,{...u.options,...e,[to]:!0});a.ciphertext=t.ciphertext,a.iv=t.iv,a.tag=t.tag,t.aad&&(a.aad=t.aad),t.protected&&(a.protected=t.protected),t.unprotected&&(a.unprotected=t.unprotected),c.encrypted_key=t.encrypted_key,t.header&&(c.header=t.header);continue}let{encryptedKey:f,parameters:p}=await tn((null===(t=u.unprotectedHeader)||void 0===t?void 0:t.alg)||(null===(r=this._protectedHeader)||void 0===r?void 0:r.alg)||(null===(n=this._unprotectedHeader)||void 0===n?void 0:n.alg),o,u.key,i,{p2c:l});c.encrypted_key=v(f),(u.unprotectedHeader||p)&&(c.header={...u.unprotectedHeader,...p})}return a}}function tu(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new O(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}function tc(e,t,r){if(a(t))return V(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(Z(t,...et));return i.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(Z(t,...et,"Uint8Array"))}var tl=async(e,t,r,n)=>{let o=await tc(e,t,"verify");eA(e,o);let a=tu(e,o.algorithm);try{return await i.subtle.verify(a,o,r,n)}catch(e){return!1}};async function tf(e,t,r){var n;let o,i;if(!ec(e))throw new R("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new R('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new R("JWS Protected Header incorrect type");if(void 0===e.payload)throw new R("JWS Payload missing");if("string"!=typeof e.signature)throw new R("JWS Signature missing or incorrect type");if(void 0!==e.header&&!ec(e.header))throw new R("JWS Unprotected Header incorrect type");let a={};if(e.protected)try{let t=_(e.protected);a=JSON.parse(c.decode(t))}catch(e){throw new R("JWS Protected Header is invalid")}if(!es(a,e.header))throw new R("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let s={...a,...e.header},l=e3(R,new Map([["b64",!0]]),null==r?void 0:r.crit,a,s),p=!0;if(l.has("b64")&&"boolean"!=typeof(p=a.b64))throw new R('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:d}=s;
27if("string"!=typeof d||!d)throw new R('JWS "alg" (Algorithm) Header Parameter missing or invalid');let h=r&&e4("algorithms",r.algorithms);if(h&&!h.has(d))throw new k('"alg" (Algorithm) Header Parameter not allowed');if(p){if("string"!=typeof e.payload)throw new R("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new R("JWS Payload must be a string or an Uint8Array instance");let y=!1;"function"==typeof t&&(t=await t(a,e),y=!0),eX(d,t,"verify");let g=f(u.encode(null!==(n=e.protected)&&void 0!==n?n:""),u.encode("."),"string"==typeof e.payload?u.encode(e.payload):e.payload);try{o=_(e.signature)}catch(e){throw new R("Failed to base64url decode the signature")}if(!await tl(d,t,o,g))throw new D;if(p)try{i=_(e.payload)}catch(e){throw new R("Failed to base64url decode the payload")}else i="string"==typeof e.payload?u.encode(e.payload):e.payload;let m={payload:i};return(void 0!==e.protected&&(m.protectedHeader=a),void 0!==e.header&&(m.unprotectedHeader=e.header),y)?{...m,key:t}:m}async function tp(e,t,r){if(e instanceof Uint8Array&&(e=c.decode(e)),"string"!=typeof e)throw new R("Compact JWS must be a string or Uint8Array");let{0:n,1:o,2:i,length:a}=e.split(".");if(3!==a)throw new R("Invalid Compact JWS");let s=await tf({payload:o,protected:n,signature:i},t,r),u={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...u,key:s.key}:u}async function td(e,t,r){if(!ec(e))throw new R("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(ec))throw new R("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await tf({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch(e){}throw new D}var th=e=>Math.floor(e.getTime()/1e3);let ty=60,tg=3600,tm=86400,tb=604800,tv=31557600,tw=/^(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;var t_=e=>{let t=tw.exec(e);if(!t)throw TypeError("Invalid time period format");let r=parseFloat(t[1]);switch(t[2].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":return Math.round(r);case"minute":case"minutes":case"min":case"mins":case"m":return Math.round(r*ty);case"hour":case"hours":case"hr":case"hrs":case"h":return Math.round(r*tg);case"day":case"days":case"d":return Math.round(r*tm);case"week":case"weeks":case"w":return Math.round(r*tb);default:return Math.round(r*tv)}};let tS=e=>e.toLowerCase().replace(/^application\//,""),tE=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e)));var tA=(e,t,r={})=>{let n,o;let{typ:i}=r;if(i&&("string"!=typeof e.typ||tS(e.typ)!==tS(i)))throw new E('unexpected "typ" JWT header value',"typ","check_failed");try{n=JSON.parse(c.decode(t))}catch(e){}if(!ec(n))throw new j("JWT Claims Set must be a top-level JSON object");let{requiredClaims:a=[],issuer:s,subject:u,audience:l,maxTokenAge:f}=r;for(let e of(void 0!==f&&a.push("iat"),void 0!==l&&a.push("aud"),void 0!==u&&a.push("sub"),void 0!==s&&a.push("iss"),new Set(a.reverse())))if(!(e in n))throw new E(`missing required "${e}" claim`,e,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(n.iss))throw new E('unexpected "iss" claim value',"iss","check_failed");if(u&&n.sub!==u)throw new E('unexpected "sub" claim value',"sub","check_failed");if(l&&!tE(n.aud,"string"==typeof l?[l]:l))throw new E('unexpected "aud" claim value',"aud","check_failed");switch(typeof r.clockTolerance){case"string":o=t_(r.clockTolerance);break;case"number":o=r.clockTolerance;break;case"undefined":o=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:p}=r,d=th(p||new Date);if((void 0!==n.iat||f)&&"number"!=typeof n.iat)throw new E('"iat" claim must be a number',"iat","invalid");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new E('"nbf" claim must be a number',"nbf","invalid");if(n.nbf>d+o)throw new E('"nbf" claim timestamp check failed',"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new E('"exp" claim must be a number',"exp","invali
27d");if(n.exp<=d-o)throw new A('"exp" claim timestamp check failed',"exp","check_failed")}if(f){let e=d-n.iat;if(e-o>("number"==typeof f?f:t_(f)))throw new A('"iat" claim timestamp check failed (too far in the past)',"iat","check_failed");if(e<0-o)throw new E('"iat" claim timestamp check failed (it should be in the past)',"iat","check_failed")}return n};async function tk(e,t,r){var n;let o=await tp(e,t,r);if((null===(n=o.protectedHeader.crit)||void 0===n?void 0:n.includes("b64"))&&!1===o.protectedHeader.b64)throw new j("JWTs MUST NOT use unencoded payload");let i={payload:tA(o.protectedHeader,o.payload,r),protectedHeader:o.protectedHeader};return"function"==typeof t?{...i,key:o.key}:i}async function tO(e,t,r){let n=await e8(e,t,r),o=tA(n.protectedHeader,n.plaintext,r),{protectedHeader:i}=n;if(void 0!==i.iss&&i.iss!==o.iss)throw new E('replicated "iss" claim header parameter mismatch',"iss","mismatch");if(void 0!==i.sub&&i.sub!==o.sub)throw new E('replicated "sub" claim header parameter mismatch',"sub","mismatch");if(void 0!==i.aud&&JSON.stringify(i.aud)!==JSON.stringify(o.aud))throw new E('replicated "aud" claim header parameter mismatch',"aud","mismatch");let a={payload:o,protectedHeader:i};return"function"==typeof t?{...a,key:n.key}:a}class tP{constructor(e){this._flattened=new ti(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}var tx=async(e,t,r)=>{let n=await tc(e,t,"sign");return eA(e,n),new Uint8Array(await i.subtle.sign(tu(e,n.algorithm),n,r))};class tT{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new R("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!es(this._protectedHeader,this._unprotectedHeader))throw new R("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},o=e3(R,new Map([["b64",!0]]),null==t?void 0:t.crit,this._protectedHeader,n),i=!0;if(o.has("b64")&&"boolean"!=typeof(i=this._protectedHeader.b64))throw new R('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;
27if("string"!=typeof a||!a)throw new R('JWS "alg" (Algorithm) Header Parameter missing or invalid');eX(a,e,"sign");let s=this._payload;i&&(s=u.encode(v(s)));let l=f(r=this._protectedHeader?u.encode(v(JSON.stringify(this._protectedHeader))):u.encode(""),u.encode("."),s),p={signature:v(await tx(a,e,l)),payload:""};return i&&(p.payload=c.decode(s)),this._unprotectedHeader&&(p.header=this._unprotectedHeader),this._protectedHeader&&(p.protected=c.decode(r)),p}}class tR{constructor(e){this._flattened=new tT(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}class tj{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class tC{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new tj(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new R("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t<this._signatures.length;t++){let r=this._signatures[t],n=new tT(this._payload);n.setProtectedHeader(r.protectedHeader),n.setUnprotectedHeader(r.unprotectedHeader);let{payload:o,...i}=await n.sign(r.key,r.options);if(0===t)e.payload=o;else if(e.payload!==o)throw new R("inconsistent use of JWS Unencoded Payload (RFC7797)");e.signatures.push(i)}return e}}class tI{constructor(e){if(!ec(e))throw TypeError("JWT Claims Set MUST be an object");this._payload=e}setIssuer(e){return this._payload={...this._payload,iss:e},this}setSubject(e){return this._payload={...this._payload,sub:e},this}setAudience(e){return this._payload={...this._payload,aud:e},this}setJti(e){return this._payload={...this._payload,jti:e},this}setNotBefore(e){return"number"==typeof e?this._payload={...this._payload,nbf:e}:this._payload={...this._payload,nbf:th(new Date)+t_(e)},this}setExpirationTime(e){return"number"==typeof e?this._payload={...this._payload,exp:e}:this._payload={...this._payload,exp:th(new Date)+t_(e)},this}setIssuedAt(e){return void 0===e?this._payload={...this._payload,iat:th(new Date)}:this._payload={...this._payload,iat:e},this}}class tU extends tI{setProtectedHeader(e){return this._protectedHeader=e,this}async sign(e,t){var r;let n=new tR(u.encode(JSON.stringify(this._payload)));if(n.setProtectedHeader(this._protectedHeader),Array.isArray(null===(r=this._protectedHeader)||void 0===r?void 0:r.crit)&&this._protectedHeader.crit.includes("b64")&&!1===this._protectedHeader.b64)throw new j("JWTs MUST NOT use unencoded payload");return n.sign(e,t)}}class tM extends tI{setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}replicateIssuerAsHeader(){return this._replicateIssuerAsHeader=!0,this}replicateSubjectAsHeader(){return this._replicateSubjectAsHeader=!0,this}replicateAudienceAsHeader(){return this._replicateAudienceAsHeader=!0,this}async encrypt(e,t){let r=new tP(u.encode(JSON.stringify(this._payload)));return this._replicateIssuerAsHeader&&(this._protectedHeader={...this._protectedHeader,iss:this._payload.iss}),this._replicateSubjectAsHeader&&(this._protectedHeader={...this._protectedHeader,sub:this._payload.sub}),this._replicateAudienceAsHeader&&(this._protectedHeader={...this._protectedHeader,aud:this._payload.aud}),r.setProtectedHeader(this._protectedHeader),this._iv&&r.setInitializationVector(this._iv),this._cek&&r.setContentEncryptionKey(this._cek),this._keyManagementParameters&&r.setKeyManagementParameters(this._keyManagementParameters),r.encrypt(e,t)}}let tN=(e,t)=>{if("string"!=typeof e||!e)throw new C(`${t} missing or invalid`)};async function tD(e,t){let r;if(!ec(e))throw TypeError("JWK must be an object");
27if(null!=t||(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":tN(e.crv,'"crv" (Curve) Parameter'),tN(e.x,'"x" (X Coordinate) Parameter'),tN(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":tN(e.crv,'"crv" (Subtype of Key Pair) Parameter'),tN(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":tN(e.e,'"e" (Exponent) Parameter'),tN(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":tN(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new O('"kty" (Key Type) Parameter missing or unsupported')}let n=u.encode(JSON.stringify(r));return v(await s(t,n))}async function tH(e,t){null!=t||(t="sha256");let r=await tD(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}async function tL(e,t){let r={...e,...null==t?void 0:t.header};if(!ec(r.jwk))throw new R('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let n=await eG({...r.jwk,ext:!0},r.alg,!0);if(n instanceof Uint8Array||"public"!==n.type)throw new R('"jwk" (JSON Web Key) Header Parameter must be a public key');return n}function tW(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new O('Unsupported "alg" value for a JSON Web Key Set')}}function tB(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(tF)}function tF(e){return ec(e)}function t$(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class tK{constructor(e){if(this._cached=new WeakMap,!tB(e))throw new I("JSON Web Key Set malformed");this._jwks=t$(e)}async getKey(e,t){let{alg:r,kid:n}={...e,...null==t?void 0:t.header},o=tW(r),i=this._jwks.keys.filter(e=>{let t=o===e.kty;if(t&&"string"==typeof n&&(t=n===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t&&"EdDSA"===r&&(t="Ed25519"===e.crv||"Ed448"===e.crv),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv}return t}),{0:a,length:s}=i;if(0===s)throw new U;if(1!==s){let e=new M,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of i)try{yield await tq(t,e,r)}catch(e){continue}},e}return tq(this._cached,a,r)}}async function tq(e,t,r){let n=e.get(t)||e.set(t,{}).get(t);if(void 0===n[r]){let e=await eG({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new I("JSON Web Key Set members must be public keys");n[r]=e}return n[r]}function tJ(e){let t=new tK(e);return async function(e,r){return t.getKey(e,r)}}var tz=async(e,t,r)=>{let n,o;let i=!1;"function"==typeof AbortController&&(n=new AbortController,o=setTimeout(()=>{i=!0,n.abort()},t));let a=await fetch(e.href,{signal:n?n.signal:void 0,redirect:"manual",headers:r.headers}).catch(e=>{if(i)throw new N;throw e});if(void 0!==o&&clearTimeout(o),200!==a.status)throw new S("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await a.json()}catch(e){throw new S("Failed to parse the JSON Web Key Set HTTP response as JSON")}};function tG(){return"undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime}class tV extends tK{constructor(e,t){if(super({keys:[]}),this._jwks=void 0,!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:null==t?void 0:t.agent,headers:null==t?void 0:t.headers},this._timeoutDuration="number"==typeof(null==t?void 0:t.timeoutDuration)?null==t?void 0:t.timeoutDuration:5e3,this._cooldownDuration="number"==typeof(null==t?void 0:t.cooldownDuration)?null==t?void 0:t.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof(null==t?void 0:t.cacheMaxAge)?null==t?void 0:t.cacheMaxAge:6e5}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cooldownDuration}fresh(){return"number"==typeof this._jwksTimestamp&&Date.now()<this._jwksTimestamp+this._cacheMaxAge}async getKey(e,t){this._jwks&&this.fresh()||await this.reload();try{return await super.getKey(e,t)}
27catch(r){if(r instanceof U&&!1===this.coolingDown())return await this.reload(),super.getKey(e,t);throw r}}async reload(){this._pendingFetch&&tG()&&(this._pendingFetch=void 0),this._pendingFetch||(this._pendingFetch=tz(this._url,this._timeoutDuration,this._options).then(e=>{if(!tB(e))throw new I("JSON Web Key Set malformed");this._jwks={keys:e.keys},this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}function tY(e,t){let r=new tV(e,t);return async function(e,t){return r.getKey(e,t)}}class tX extends tI{encode(){let e=v(JSON.stringify({alg:"none"})),t=v(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new j("Unsecured JWT must be a string");let{0:n,1:o,2:i,length:a}=e.split(".");if(3!==a||""!==i)throw new j("Invalid Unsecured JWT");try{if(r=JSON.parse(c.decode(_(n))),"none"!==r.alg)throw Error()}catch(e){throw new j("Invalid Unsecured JWT")}return{payload:tA(r,_(o),t),header:r}}}let tZ=v,tQ=_;function t0(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e){if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header")}try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(c.decode(tQ(t)));if(!ec(e))throw Error();return e}catch(e){throw TypeError("Invalid Token or Protected Header formatting")}}function t1(e){let t,r;if("string"!=typeof e)throw new j("JWTs must use Compact JWS serialization, JWT must be a string");let{1:n,length:o}=e.split(".");if(5===o)throw new j("Only JWTs using Compact JWS serialization can be decoded");if(3!==o)throw new j("Invalid JWT");if(!n)throw new j("JWTs must contain a payload");try{t=tQ(n)}catch(e){throw new j("Failed to base64url decode the payload")}try{r=JSON.parse(c.decode(t))}catch(e){throw new j("Failed to parse the decoded payload as JSON")}if(!ec(r))throw new j("Invalid JWT Claims Set");return r}async function t2(e,t){var r;let n,o,a;switch(e){case"HS256":case"HS384":case"HS512":n=parseInt(e.slice(-3),10),o={name:"HMAC",hash:`SHA-${n}`,length:n},a=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return H(new Uint8Array((n=parseInt(e.slice(-3),10))>>3));case"A128KW":case"A192KW":case"A256KW":o={name:"AES-KW",length:n=parseInt(e.slice(1,4),10)},a=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":o={name:"AES-GCM",length:n=parseInt(e.slice(1,4),10)},a=["encrypt","decrypt"];break;default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return i.subtle.generateKey(o,null!==(r=null==t?void 0:t.extractable)&&void 0!==r&&r,a)}function t5(e){var t;let r=null!==(t=null==e?void 0:e.modulusLength)&&void 0!==t?t:2048;if("number"!=typeof r||r<2048)throw new O("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return r}async function t3(e,t){var r,n,o;let a,s;switch(e){case"PS256":case"PS384":case"PS512":a={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:t5(t)},s=["sign","verify"];break;case"RS256":case"RS384":case"RS512":a={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:t5(t)},s=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":a={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:t5(t)},s=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":a={name:"ECDSA",namedCurve:"P-256"},s=["sign","verify"];break;case"ES384":a={name:"ECDSA",namedCurve:"P-384"},s=["sign","verify"];break;case"ES512":a={name:"ECDSA",namedCurve:"P-521"},s=["sign","verify"];break;case"EdDSA":s=["sign","verify"];let u=null!==(r=null==t?void 0:t.crv)&&void 0!==r?r:"Ed25519";
27switch(u){case"Ed25519":case"Ed448":a={name:u};break;default:throw new O("Invalid or unsupported crv option provided")}break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{s=["deriveKey","deriveBits"];let e=null!==(n=null==t?void 0:t.crv)&&void 0!==n?n:"P-256";switch(e){case"P-256":case"P-384":case"P-521":a={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":a={name:e};break;default:throw new O("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new O('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return i.subtle.generateKey(a,null!==(o=null==t?void 0:t.extractable)&&void 0!==o&&o,s)}async function t4(e,t){return t3(e,t)}async function t6(e,t){return t2(e,t)}var t8="WebCryptoAPI"},42625:function(e,t,r){"use strict";function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}r.d(t,{J:function(){return n}})},95691:function(e,t,r){"use strict";function n(e,t){return t.get?t.get.call(e):t.value}r.r(t),r.d(t,{_:function(){return i},_class_private_field_get:function(){return i}});var o=r(42625);function i(e,t){var r=(0,o.J)(e,t,"get");return n(e,r)}},25134:function(e,t,r){"use strict";function n(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}function o(e,t,r){n(e,t),t.set(e,r)}r.r(t),r.d(t,{_:function(){return o},_class_private_field_init:function(){return o}})},11455:function(e,t,r){"use strict";function n(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}r.r(t),r.d(t,{_:function(){return i},_class_private_field_set:function(){return i}});var o=r(42625);function i(e,t,r){var i=(0,o.J)(e,t,"set");return n(e,i,r),r}},75805:function(e){"use strict";e.exports=JSON.parse('{"name":"openid-client","version":"5.7.1","description":"OpenID Connect Relying Party (RP, Client) implementation for Node.js runtime, supports passportjs","keywords":["auth","authentication","basic","certified","client","connect","dynamic","electron","hybrid","identity","implicit","oauth","oauth2","oidc","openid","passport","relying party","strategy"],"homepage":"https://github.com/panva/openid-client","repository":"panva/openid-client","funding":{"url":"https://github.com/sponsors/panva"},"license":"MIT","author":"Filip Skokan <[email protected]>","exports":{"types":"./types/index.d.ts","import":"./lib/index.mjs","require":"./lib/index.js"},"main":"./lib/index.js","types":"./types/index.d.ts","files":["lib","types/index.d.ts"],"scripts":{"format":"npx prettier --loglevel silent --write ./lib ./test ./certification ./types","test":"mocha test/**/*.test.js"},"dependencies":{"jose":"^4.15.9","lru-cache":"^6.0.0","object-hash":"^2.2.0","oidc-token-hash":"^5.0.3"},"devDependencies":{"@types/node":"^16.18.106","@types/passport":"^1.0.16","base64url":"^3.0.1","chai":"^4.5.0","mocha":"^10.7.3","nock":"^13.5.5","prettier":"^2.8.8","readable-mock-req":"^0.2.2","sinon":"^9.2.4","timekeeper":"^2.3.1"},"standard-version":{"scripts":{"postchangelog":"sed -i \'\' -e \'s/### \\\\[/## [/g\' CHANGELOG.md"},"types":[{"type":"feat","section":"Features"},{"type":"fix","section":"Fixes"},{"type":"chore","hidden":true},{"type":"docs","hidden":true},{"type":"style","hidden":true},{"type":"refactor","section":"Refactor","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"test","hidden":true}]}}')}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.