(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34582,(e,t,r)=>{"use strict";r.byteLength=function(e){var t=f(e),r=t[0],n=t[1];return(r+n)*3/4-n},r.toByteArray=function(e){var t,r,n=f(e),s=n[0],a=n[1],u=new o((s+a)*3/4-a),c=0,l=a>0?s-4:s;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===i&&o.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),o.join("")};for(var n=[],i=[],o="u">typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a0)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]}i[45]=62,i[95]=63},38492,(e,t,r)=>{r.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,c=-7,l=r?i-1:0,h=r?-1:1,p=e[t+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+e[t+l],l+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var s,a,u,f=8*o-i-1,c=(1<>1,h=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+l>=1?t+=h/u:t+=h*Math.pow(2,1-l),t*u>=2&&(s++,u/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(t*u-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;e[r+p]=255&s,p+=d,s/=256,f-=8);e[r+p-d]|=128*g}},49947,(e,t,r)=>{var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},43943,(e,t,r)=>{"use strict";var n=e.r(34582),i=e.r(38492),o=e.r(49947);function s(){return u.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff}function a(e,t){if(s()typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLengthtypeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t){return"number"!=typeof t.length||(r=t.length)!=r?a(e,0):h(e,t)}if("Buffer"===t.type&&o(t.data))return h(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function l(e,t){if(c(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r=s())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("u">typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return _(e).length;default:if(n)return D(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,r){var i,o,s,a=!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 function(e,t,r){var n,i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var o="",s=t;s0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),isNaN(r*=1)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t){if(t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var o,s=1,a=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;s=2,a/=2,u/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){for(var l=!0,h=0;htypeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return(c(e),e<=0)?a(null,e):void 0!==t?"string"==typeof r?a(null,e).fill(t,r):a(null,e).fill(t):a(null,e)},u.allocUnsafe=function(e){return l(null,e)},u.allocUnsafeSlow=function(e){return l(null,e)},u.isBuffer=function(e){return!!(null!=e&&e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,a=Math.min(o,s),f=this.slice(n,i),c=e.slice(t,r),l=0;l239?4:f>223?3:f>191?2:1;if(i+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(u=(15&f)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(u=(15&f)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var d="",g=0;gr)throw RangeError("Trying to access beyond buffer length")}function b(e,t,r,n,i,o){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function E(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>(n?i:1-i)*8}function A(e,t,r,n){t<0&&(t=0xffffffff+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>(n?i:3-i)*8&255}function C(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function U(e,t,r,n,o){return o||C(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function T(e,t,r,n,o){return o||C(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}u.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 i,o,s,a,u,f,c,l,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,l);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||w(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||w(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||w(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||w(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||w(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return(t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt16BE=function(e,t){t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt32LE=function(e,t){return t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;b(this,e,t,r,i,0)}var o=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+o]=e/s&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e*=1,t|=0,r||b(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e*=1,t|=0,r||b(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):E(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e*=1,t|=0,r||b(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):E(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e*=1,t|=0,r||b(this,e,t,4,0xffffffff,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e*=1,t|=0,r||b(this,e,t,4,0xffffffff,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t|=0,!n){var i=Math.pow(2,8*r-1);b(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e*=1,t|=0,r||b(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e*=1,t|=0,r||b(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):E(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e*=1,t|=0,r||b(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):E(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e*=1,t|=0,r||b(this,e,t,4,0x7fffffff,-0x80000000),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e*=1,t|=0,r||b(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return T(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return T(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("sourceStart out of bounds");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function I(e){for(var t=[],r=0;r=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}},38902,e=>{"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,r)},r=function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function o(e){return this instanceof o?(this.v=e,this):new o(e)}e.s(["__assign",()=>r,"__asyncDelegator",0,function(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:o(e[n](t)),done:"return"===n}:i?i(t):t}:i}},"__asyncGenerator",0,function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){s.push([e,t,r,n])>1||u(e,t)})})}function u(e,t){try{var r;(r=i[e](t)).value instanceof o?Promise.resolve(r.value.v).then(f,c):l(s[0][2],r)}catch(e){l(s[0][3],e)}}function f(e){u("next",e)}function c(e){u("throw",e)}function l(e,t){e(t),s.shift(),s.length&&u(s[0][0],s[0][1])}},"__asyncValues",0,function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=n(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){var o,s,a;o=n,s=i,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){o({value:e,done:a})},s)})}}},"__await",0,o,"__awaiter",0,function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(s,a)}u((n=n.apply(e,t||[])).next())})},"__classPrivateFieldGet",0,function(e,t){if(!t.has(e))throw TypeError("attempted to get private field on non-instance");return t.get(e)},"__classPrivateFieldSet",0,function(e,t,r){if(!t.has(e))throw TypeError("attempted to set private field on non-instance");return t.set(e,r),r},"__createBinding",0,function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},"__decorate",0,function(e,t,r,n){var i,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s},"__exportStar",0,function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])},"__extends",0,function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)},"__generator",0,function(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){var u=[o,a];if(r)throw TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,n=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){s=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},"__spread",0,function(){for(var e=[],t=0;t{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MAX_HASHABLE_LENGTH=r.INIT=r.KEY=r.DIGEST_LENGTH=r.BLOCK_SIZE=void 0,r.BLOCK_SIZE=64,r.DIGEST_LENGTH=32,r.KEY=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]),r.INIT=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],r.MAX_HASHABLE_LENGTH=0x1fffffffffffff},37601,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RawSha256=void 0;var n=e.r(62570);r.RawSha256=function(){function e(){this.state=Int32Array.from(n.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>n.MAX_HASHABLE_LENGTH)throw Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,this.bufferLength===n.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%n.BLOCK_SIZE>=n.BLOCK_SIZE-8){for(var i=this.bufferLength;i>>24&255,o[4*i+1]=this.state[i]>>>16&255,o[4*i+2]=this.state[i]>>>8&255,o[4*i+3]=this.state[i]>>>0&255;return o},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],i=t[1],o=t[2],s=t[3],a=t[4],u=t[5],f=t[6],c=t[7],l=0;l>>17|h<<15)^(h>>>19|h<<13)^h>>>10,d=((h=this.temp[l-15])>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[l]=(p+this.temp[l-7]|0)+(d+this.temp[l-16]|0)}var g=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&u^~a&f)|0)+(c+(n.KEY[l]+this.temp[l]|0)|0)|0,y=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&o^i&o)|0;c=f,f=u,u=a,a=s+g|0,s=o,o=i,i=r,r=g+y|0}t[0]+=r,t[1]+=i,t[2]+=o,t[3]+=s,t[4]+=a,t[5]+=u,t[6]+=f,t[7]+=c},e}()},67034,(e,t,r)=>{var n={675:function(e,t){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=u(e),s=o[0],a=o[1],f=new i((s+a)*3/4-a),c=0,l=a>0?s-4:s;for(r=0;r>16&255,f[c++]=t>>8&255,f[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,f[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,f[c++]=t>>8&255,f[c++]=255&t),f},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s0)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]}n[45]=62,n[95]=63},72:function(e,t,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(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 c(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e){var n=e,i=t;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),u=s(o),f=u.write(n,i);return f!==o&&(u=u.slice(0,f)),u}if(ArrayBuffer.isView(e))return l(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(I(e,ArrayBuffer)||e&&I(e.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(I(e,SharedArrayBuffer)||e&&I(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLengthtypeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return a.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 c(e){return f(e),s(e<0?0:0|h(e))}function l(e){for(var t=e.length<0?0:0|h(e.length),r=s(t),n=0;ntypeof 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(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(f(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)};function h(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||I(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 i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(e).length;default:if(i)return n?-1:U(e).length;t=(""+t).toLowerCase(),i=!0}}function d(e,t,r){var i,o,s,a=!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 function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(i)return -1;else r=e.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return m(e,[t],r,n,i)}throw TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,s=1,a=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;s=2,a/=2,u/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){for(var l=!0,h=0;hr&&(e+=" ... "),""},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(I(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.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===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,u=Math.min(o,s),f=this.slice(n,i),c=e.slice(t,r),l=0;l239?4:f>223?3:f>191?2:1;if(i+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:(192&(o=e[i+1]))==128&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(u=(15&f)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(u=(15&f)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var d="",g=0;gr)throw RangeError("Trying to access beyond buffer length")}function w(e,t,r,n,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function b(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function E(e,t,r,n,o){return t*=1,r>>>=0,o||b(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function A(e,t,r,n,o){return t*=1,r>>>=0,o||b(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}a.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 i,o,s,a,u,f,c,l,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,l);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.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>>=0,t>>>=0,r||S(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||S(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||S(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||S(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||S(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||S(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||S(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||S(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||S(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||S(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||S(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||S(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=1,s=0;for(this[t]=255&e;++s>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,e,t,r,i,0)}var o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>>=0,!n){var i=Math.pow(2,8*r-1);w(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||w(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return A(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return A(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.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=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=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.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&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function T(e){for(var t=[],r=0;r=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function I(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var _=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,c=-7,l=r?i-1:0,h=r?-1:1,p=e[t+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+e[t+l],l+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,u,f=8*o-i-1,c=(1<>1,h=5960464477539062e-23*(23===i),p=n?0:o-1,d=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(a=+!!isNaN(t),s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+l>=1?t+=h/u:t+=h*Math.pow(2,1-l),t*u>=2&&(s++,u/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(t*u-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<0;e[r+p]=255&s,p+=d,s/=256,f-=8);e[r+p-d]|=128*g}}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},s=!0;try{n[e](r,r.exports,o),s=!1}finally{s&&delete i[e]}return r.exports}o.ab="/ROOT/node_modules/next/dist/compiled/buffer/",t.exports=o(72)},99585,e=>{"use strict";e.s(["fromUtf8",0,e=>"function"==typeof TextEncoder?new TextEncoder().encode(e):(e=>{let t=[];for(let r=0,n=e.length;r>6|192,63&n|128);else if(r+1>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else t.push(n>>12|224,n>>6&63|128,63&n|128)}return Uint8Array.from(t)})(e),"toUtf8",0,e=>"function"==typeof TextDecoder?new TextDecoder("utf-8").decode(e):(e=>{let t="";for(let r=0,n=e.length;re.toString(16)).join("%")):t+=String.fromCharCode((15&n)<<12|(63&e[++r])<<6|63&e[++r])}return t})(e)],99585)},9494,(e,t,r)=>{"use strict";var n=e.i(67034);Object.defineProperty(r,"__esModule",{value:!0}),r.convertToBuffer=void 0;var i=e.r(99585),o=void 0!==n.Buffer&&n.Buffer.from?function(e){return n.Buffer.from(e,"utf8")}:i.fromUtf8;r.convertToBuffer=function(e){return e instanceof Uint8Array?e:"string"==typeof e?o(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},1564,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isEmptyData=void 0,r.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}},70312,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.numToUint8=void 0,r.numToUint8=function(e){return new Uint8Array([(0xff000000&e)>>24,(0xff0000&e)>>16,(65280&e)>>8,255&e])}},81,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.uint32ArrayFrom=void 0,r.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new Uint32Array(e.length);0{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.uint32ArrayFrom=r.numToUint8=r.isEmptyData=r.convertToBuffer=void 0;var n=e.r(9494);Object.defineProperty(r,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var i=e.r(1564);Object.defineProperty(r,"isEmptyData",{enumerable:!0,get:function(){return i.isEmptyData}});var o=e.r(70312);Object.defineProperty(r,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var s=e.r(81);Object.defineProperty(r,"uint32ArrayFrom",{enumerable:!0,get:function(){return s.uint32ArrayFrom}})},22284,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Sha256=void 0;var n=e.r(38902),i=e.r(62570),o=e.r(37601),s=e.r(27201);r.Sha256=function(){function e(e){if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var t=(0,s.convertToBuffer)(e);if(t.byteLength>i.BLOCK_SIZE){var r=new o.RawSha256;r.update(t),t=r.digest()}var n=new Uint8Array(i.BLOCK_SIZE);return n.set(t),n}(e),r=new Uint8Array(i.BLOCK_SIZE);r.set(t);for(var n=0;n{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),(0,e.r(38902).__exportStar)(e.r(22284),r)},79600,(e,t,r)=>{"use strict";t.exports=self.fetch.bind(self),t.exports.default=t.exports},19447,(e,t,r)=>{var n=function(){function e(){for(var e=0,t={};etypeof document){"number"==typeof(o=e({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(new Date*1+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var s=JSON.stringify(r);/^[\{\[]/.test(s)&&(r=s)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in o)o[u]&&(a+="; "+u,!0!==o[u]&&(a+="="+o[u].split(";")[0]));return document.cookie=t+"="+r+a}}function s(e,r){if("u">typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],s=0;s{"use strict";let t,r,n,i;var o,s,a,u,f,c,l,h,p=e.i(43476),d=e.i(71645),g=e.i(47167),y=e.i(43943);if(window.crypto&&(f=window.crypto),!f&&window.msCrypto&&(f=window.msCrypto),!f&&e.g.crypto&&(f=e.g.crypto),!f)try{f={}}catch(e){}var m=function(){function e(e,t){e=this.words=e||[],void 0!=t?this.sigBytes=t:this.sigBytes=4*e.length}var t=e.prototype;return t.random=function(t){for(var r=[],n=0;n>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")}(this)},e}(),v=e.i(90528);function S(e,t){null!=e&&this.fromString(e,t)}function w(){return new S(null)}var b="u">typeof navigator;b&&"Microsoft Internet Explorer"==navigator.appName?(S.prototype.am=function(e,t,r,n,i,o){for(var s=32767&t,a=t>>15;--o>=0;){var u=32767&this[e],f=this[e++]>>15,c=a*u+f*s;i=((u=s*u+((32767&c)<<15)+r[n]+(0x3fffffff&i))>>>30)+(c>>>15)+a*f+(i>>>30),r[n++]=0x3fffffff&u}return i},c=30):b&&"Netscape"!=navigator.appName?(S.prototype.am=function(e,t,r,n,i,o){for(;--o>=0;){var s=t*this[e++]+r[n]+i;i=Math.floor(s/0x4000000),r[n++]=0x3ffffff&s}return i},c=26):(S.prototype.am=function(e,t,r,n,i,o){for(var s=16383&t,a=t>>14;--o>=0;){var u=16383&this[e],f=this[e++]>>14,c=a*u+f*s;i=((u=s*u+((16383&c)<<14)+r[n]+i)>>28)+(c>>14)+a*f,r[n++]=0xfffffff&u}return i},c=28),S.prototype.DB=c,S.prototype.DM=(1<>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function T(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},T.prototype.revert=function(e){var t=w();return e.copyTo(t),this.reduce(t),t},T.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},T.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},T.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},S.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},S.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},S.prototype.fromString=function(e,t){if(16==t)r=4;else if(8==t)r=3;else if(2==t)r=1;else if(32==t)r=5;else if(4==t)r=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var r,n=e.length,i=!1,o=0;--n>=0;){var s=function(e,t){var r=E[e.charCodeAt(t)];return null==r?-1:r}(e,n);if(s<0){"-"==e.charAt(n)&&(i=!0);continue}i=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<>this.DB-o):this[this.t-1]|=s<=this.DB&&(o-=this.DB)}this.clamp(),i&&S.ZERO.subTo(this,this)},S.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},S.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},S.prototype.drShiftTo=function(e,t){for(var r=e;r=0;--r)t[r+s+1]=this[r]>>i|a,a=(this[r]&o)<=0;--r)t[r]=0;t[s]=a,t.t=this.t+s+1,t.s=this.s,t.clamp()},S.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var n=e%this.DB,i=this.DB-n,o=(1<>n;for(var s=r+1;s>n;n>0&&(t[this.t-r-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},S.prototype.multiplyTo=function(e,t){var r=this.abs(),n=e.abs(),i=r.t;for(t.t=i+n.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[r]=0;for(r=0;r=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},S.prototype.divRemTo=function(e,t,r){var n=e.abs();if(!(n.t<=0)){var i=this.abs();if(i.t0?(n.lShiftTo(u,o),i.lShiftTo(u,r)):(n.copyTo(o),i.copyTo(r));var f=o.t,c=o[f-1];if(0!=c){var l=c*(1<1?o[f-2]>>this.F2:0),h=this.FV/l,p=(1<=0&&(r[r.t++]=1,r.subTo(m,r)),S.ONE.dlShiftTo(f,m),m.subTo(o,o);o.t=0;){var v=r[--g]==c?this.DM:Math.floor(r[g]*h+(r[g-1]+d)*p);if((r[g]+=o.am(0,v,r,y,0,f))0&&r.rShiftTo(u,r),s<0&&S.ZERO.subTo(r,r)}}},S.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if((1&e)==0)return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},S.prototype.addTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()},S.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else if(4==e)t=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");var t,r,n=(1<0)for(a>a)>0&&(i=!0,o=A(r));s>=0;)a>(a+=this.DB-t):(r=this[s]>>(a-=t)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(o+=A(r));return i?o:"0"},S.prototype.negate=function(){var e=w();return S.ZERO.subTo(this,e),e},S.prototype.abs=function(){return this.s<0?this.negate():this},S.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},S.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+U(this[this.t-1]^this.s&this.DM)},S.prototype.mod=function(e){var t=w();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(S.ZERO)>0&&e.subTo(t,t),t},S.prototype.equals=function(e){return 0==this.compareTo(e)},S.prototype.add=function(e){var t=w();return this.addTo(e,t),t},S.prototype.subtract=function(e){var t=w();return this.subTo(e,t),t},S.prototype.multiply=function(e){var t=w();return this.multiplyTo(e,t),t},S.prototype.divide=function(e){var t=w();return this.divRemTo(e,t,null),t},S.prototype.modPow=function(e,t,r){var n,i=e.bitLength(),o=C(1),s=new T(t);if(i<=0)return o;var a=[],u=3,f=(n=i<18?1:i<48?3:i<144?4:i<768?5:6)-1,c=(1<1){var l=w();for(s.sqrTo(a[1],l);u<=c;)a[u]=w(),s.mulTo(l,a[u-2],a[u]),u+=2}var h,p,d=e.t-1,g=!0,y=w();for(i=U(e[d])-1;d>=0;){for(i>=f?h=e[d]>>i-f&c:(h=(e[d]&(1<0&&(h|=e[d-1]>>this.DB+i-f)),u=n;(1&h)==0;)h>>=1,--u;if((i-=u)<0&&(i+=this.DB,--d),g)a[h].copyTo(o),g=!1;else{for(;u>1;)s.sqrTo(o,y),s.sqrTo(y,o),u-=2;u>0?s.sqrTo(o,y):(p=o,o=y,y=p),s.mulTo(y,a[h],o)}for(;d>=0&&(e[d]&1<e.compareTo(S.ZERO),r=e.abs().toString(16);return r=r.length%2!=0?"0"+r:r,r=D.test(r)?"00"+r:r,t&&(r=new S(r.split("").map(function(e){var t=15&~parseInt(e,16);return"0123456789ABCDEF".charAt(t)}).join(""),16).add(S.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(r=r.substring(2)),r},e}(),_=function(){function e(e){this.jwtToken=e||"",this.payload=this.decodePayload()}var t=e.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var e=this.jwtToken.split(".")[1];try{return JSON.parse(y.Buffer.from(e,"base64").toString("utf8"))}catch(e){return{}}},e}();function O(e,t){return(O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var x=function(e){function t(t){var r=(void 0===t?{}:t).AccessToken;return e.call(this,r||"")||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,O(t,e),t}(_);function P(e,t){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var B=function(e){function t(t){var r=(void 0===t?{}:t).IdToken;return e.call(this,r||"")||this}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,P(t,e),t}(_),k={userAgent:"aws-amplify/5.0.4",isReactNative:"u">typeof navigator&&"ReactNative"===navigator.product},F=function(){function e(e){var t=(void 0===e?{}:e).RefreshToken;this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),N=function(){function e(e){var t=void 0===e?{}:e,r=t.IdToken,n=t.RefreshToken,i=t.AccessToken,o=t.ClockDrift;if(null==i||null==r)throw Error("Id token and Access Token must be present.");this.idToken=r,this.refreshToken=n,this.accessToken=i,this.clockDrift=void 0===o?this.calculateClockDrift():o}var t=e.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.isValid=function(){var e=Math.floor(new Date/1e3)-this.clockDrift;return etypeof navigator?k.isReactNative?"react-native":navigator.userAgent:"nodejs",J=function(){function e(e){if(null==e||null==e.Username||null==e.Pool)throw Error("Username and Pool information are required.");this.username=e.Username||"",this.pool=e.Pool,this.Session=null,this.client=e.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=e.Storage||new H().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=e.prototype;return t.setSignInUserSession=function(e){this.clearCachedUserData(),this.signInUserSession=e,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(e){this.authenticationFlowType=e},t.initiateAuth=function(e,t){var r=this,n=e.getAuthParameters();n.USERNAME=this.username;var i=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),o={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:n,ClientMetadata:i};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",o,function(e,n){if(e)return t.onFailure(e);var i=n.ChallengeName,o=n.ChallengeParameters;return"CUSTOM_CHALLENGE"===i?(r.Session=n.Session,t.customChallenge(o)):(r.signInUserSession=r.getCognitoUserSession(n.AuthenticationResult),r.cacheTokens(),t.onSuccess(r.signInUserSession))})},t.authenticateUser=function(e,t){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(e,t):"USER_SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(e,t):t.onFailure(Error("Authentication flow type is invalid."))},t.authenticateUserDefaultAuth=function(e,t){var r,n,i=this,o=new I(this.pool.getUserPoolName()),s=new j,a={};null!=this.deviceKey&&(a.DEVICE_KEY=this.deviceKey),a.USERNAME=this.username,o.getLargeAValue(function(u,f){u&&t.onFailure(u),a.SRP_A=f.toString(16),"CUSTOM_AUTH"===i.authenticationFlowType&&(a.CHALLENGE_NAME="SRP_A");var c=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),l={AuthFlow:i.authenticationFlowType,ClientId:i.pool.getClientId(),AuthParameters:a,ClientMetadata:c};i.getUserContextData(i.username)&&(l.UserContextData=i.getUserContextData(i.username)),i.client.request("InitiateAuth",l,function(a,u){if(a)return t.onFailure(a);var f=u.ChallengeParameters;i.username=f.USER_ID_FOR_SRP,i.userDataKey=i.keyPrefix+"."+i.username+".userData",r=new S(f.SRP_B,16),n=new S(f.SALT,16),i.getCachedDeviceKeyAndPassword(),o.getPasswordAuthenticationKey(i.username,e.getPassword(),r,n,function(e,r){e&&t.onFailure(e);var n=s.getNowString(),a=y.Buffer.concat([y.Buffer.from(i.pool.getUserPoolName(),"utf8"),y.Buffer.from(i.username,"utf8"),y.Buffer.from(f.SECRET_BLOCK,"base64"),y.Buffer.from(n,"utf8")]),l=new v.Sha256(r);l.update(a);var h=l.digestSync(),p=y.Buffer.from(h).toString("base64"),d={};d.USERNAME=i.username,d.PASSWORD_CLAIM_SECRET_BLOCK=f.SECRET_BLOCK,d.TIMESTAMP=n,d.PASSWORD_CLAIM_SIGNATURE=p,null!=i.deviceKey&&(d.DEVICE_KEY=i.deviceKey);var g=function(e,t){return i.client.request("RespondToAuthChallenge",e,function(r,n){return r&&"ResourceNotFoundException"===r.code&&-1!==r.message.toLowerCase().indexOf("device")?(d.DEVICE_KEY=null,i.deviceKey=null,i.randomPassword=null,i.deviceGroupKey=null,i.clearCachedDeviceKeyAndPassword(),g(e,t)):t(r,n)})},m={ChallengeName:"PASSWORD_VERIFIER",ClientId:i.pool.getClientId(),ChallengeResponses:d,Session:u.Session,ClientMetadata:c};i.getUserContextData()&&(m.UserContextData=i.getUserContextData()),g(m,function(e,r){return e?t.onFailure(e):i.authenticateUserInternal(r,o,t)})})})})},t.authenticateUserPlainUsernamePassword=function(e,t){var r=this,n={};if(n.USERNAME=this.username,n.PASSWORD=e.getPassword(),!n.PASSWORD)return void t.onFailure(Error("PASSWORD parameter is required"));var i=new I(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(n.DEVICE_KEY=this.deviceKey);var o=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),s={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:n,ClientMetadata:o};this.getUserContextData(this.username)&&(s.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",s,function(e,n){return e?t.onFailure(e):r.authenticateUserInternal(n,i,t)})},t.authenticateUserInternal=function(e,t,r){var n=this,i=e.ChallengeName,o=e.ChallengeParameters;if("SMS_MFA"===i)return this.Session=e.Session,r.mfaRequired(i,o);if("SELECT_MFA_TYPE"===i)return this.Session=e.Session,r.selectMFAType(i,o);if("MFA_SETUP"===i)return this.Session=e.Session,r.mfaSetup(i,o);if("SOFTWARE_TOKEN_MFA"===i)return this.Session=e.Session,r.totpRequired(i,o);if("CUSTOM_CHALLENGE"===i)return this.Session=e.Session,r.customChallenge(o);if("NEW_PASSWORD_REQUIRED"===i){this.Session=e.Session;var s=null,a=null,u=[],f=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(o&&(s=JSON.parse(e.ChallengeParameters.userAttributes),a=JSON.parse(e.ChallengeParameters.requiredAttributes)),a)for(var c=0;ci)&&t}))).then(function(e){return r(null,e)}).catch(function(e){return r(e)})},t.request=function(e,t,r){var n,i={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":W(),"Cache-Control":"no-store"},o=Object.assign({},this.fetchOptions,{headers:i,method:"POST",mode:"cors",body:JSON.stringify(t)});fetch(this.endpoint,o).then(function(e){return n=e,e},function(e){if(e instanceof TypeError)throw Error("Network error");throw e}).then(function(e){return e.json().catch(function(){return{}})}).then(function(e){if(n.ok)return r(null,e);var t=(e.__type||e.code).split("#").pop(),i=Error(e.message||e.Message||null);return i.name=t,i.code=t,r(i)}).catch(function(e){if(n&&n.headers&&n.headers.get("x-amzn-errortype"))try{var t=n.headers.get("x-amzn-errortype").split(":")[0],i=Error(n.status?n.status.toString():null);return i.code=t,i.name=t,i.statusCode=n.status,r(i)}catch(e){}else e instanceof Error&&"Network error"===e.message&&(e.code="NetworkError");return r(e)})},e}(),et=function(){},er=function(){function e(e,t){var r=e||{},n=r.UserPoolId,i=r.ClientId,o=r.endpoint,s=r.fetchOptions,a=r.AdvancedSecurityDataCollectionFlag;if(!n||!i)throw Error("Both UserPoolId and ClientId are required.");if(n.length>55||!/^[\w-]+_[0-9a-zA-Z]+$/.test(n))throw Error("Invalid UserPoolId format.");var u=n.split("_")[0];this.userPoolId=n,this.clientId=i,this.client=new ee(u,o,s),this.advancedSecurityDataCollectionFlag=!1!==a,this.storage=e.Storage||new H().getStorage(),t&&(this.wrapRefreshSessionCallback=t)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getUserPoolName=function(){return this.getUserPoolId().split("_")[1]},t.getClientId=function(){return this.clientId},t.signUp=function(e,t,r,n,i,o){var s=this,a={ClientId:this.clientId,Username:e,Password:t,UserAttributes:r,ValidationData:n,ClientMetadata:o};this.getUserContextData(e)&&(a.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",a,function(t,r){return t?i(t,null):i(null,{user:new J({Username:e,Pool:s,Storage:s.storage}),userConfirmed:r.UserConfirmed,userSub:r.UserSub,codeDeliveryDetails:r.CodeDeliveryDetails})})},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);return t?new J({Username:t,Pool:this,Storage:this.storage}):null},t.getUserContextData=function(e){if("u">typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var r=t.getData(e,this.userPoolId,this.clientId);if(r)return{EncodedData:r}}return{}}},e}();e.i(19447);var en=function(){function e(e){var t=e||{},r=t.ValidationData,n=t.Username,i=t.Password,o=t.AuthParameters,s=t.ClientMetadata;this.validationData=r||{},this.authParameters=o||{},this.clientMetadata=s||{},this.username=n,this.password=i}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}();let ei=new er({UserPoolId:"us-east-1_74QlyPl70",ClientId:"5inn5af6v63uhd0uvj2c4nfd8i"});function eo(e,t){return new Promise((r,n)=>{let i=new J({Username:e,Pool:ei}),o=new en({Username:e,Password:t});i.authenticateUser(o,{onSuccess:r,onFailure:n,newPasswordRequired:()=>n(Error("NEW_PASSWORD_REQUIRED"))})})}function es(){ei.getCurrentUser()?.signOut()}function ea(){return new Promise(e=>{let t=ei.getCurrentUser();if(!t)return e(null);let r=setTimeout(()=>e(null),5e3);t.getSession((t,n)=>{clearTimeout(r),e(t?null:n)})})}function eu(){return ea().then(e=>e?.getIdToken().getJwtToken()??null)}function ef(e,t){return function(){return e.apply(t,arguments)}}e.s(["confirmForgotPassword",0,function(e,t,r){return new Promise((n,i)=>{new J({Username:e,Pool:ei}).confirmPassword(t,r,{onSuccess:()=>n(),onFailure:i})})},"forgotPassword",0,function(e){return new Promise((t,r)=>{new J({Username:e,Pool:ei}).forgotPassword({onSuccess:()=>t(),onFailure:r,inputVerificationCode:()=>t()})})},"getIdToken",0,eu,"getSession",0,ea,"signIn",0,eo,"signOut",0,es],71267);let{toString:ec}=Object.prototype,{getPrototypeOf:el}=Object,{iterator:eh,toStringTag:ep}=Symbol,ed=(t=Object.create(null),e=>{let r=ec.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())}),eg=e=>(e=e.toLowerCase(),t=>ed(t)===e),ey=e=>t=>typeof t===e,{isArray:em}=Array,ev=ey("undefined");function eS(e){return null!==e&&!ev(e)&&null!==e.constructor&&!ev(e.constructor)&&eE(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let ew=eg("ArrayBuffer"),eb=ey("string"),eE=ey("function"),eA=ey("number"),eC=e=>null!==e&&"object"==typeof e,eU=e=>{if("object"!==ed(e))return!1;let t=el(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(ep in e)&&!(eh in e)},eT=eg("Date"),eR=eg("File"),eD=eg("Blob"),eI=eg("FileList"),e_="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,eO=void 0!==e_.FormData?e_.FormData:void 0,ex=eg("URLSearchParams"),[eP,eB,ek,eF]=["ReadableStream","Request","Response","Headers"].map(eg);function eN(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e)if("object"!=typeof e&&(e=[e]),em(e))for(n=0,i=e.length;n0;)if(t===(r=n[i]).toLowerCase())return r;return null}let eL="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,ej=e=>!ev(e)&&e!==eL,eK=(r="u">typeof Uint8Array&&el(Uint8Array),e=>r&&e instanceof r),eV=eg("HTMLFormElement"),eq=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),eH=eg("RegExp"),eY=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};eN(r,(r,i)=>{let o;!1!==(o=t(r,i,e))&&(n[i]=o||r)}),Object.defineProperties(e,n)},eJ=eg("AsyncFunction"),ez=(o="function"==typeof setImmediate,s=eE(eL.postMessage),o?setImmediate:s?(a=`axios@${Math.random()}`,u=[],eL.addEventListener("message",({source:e,data:t})=>{e===eL&&t===a&&u.length&&u.shift()()},!1),e=>{u.push(e),eL.postMessage(a,"*")}):e=>setTimeout(e)),eW="u">typeof queueMicrotask?queueMicrotask.bind(eL):void 0!==g.default&&g.default.nextTick||ez,eG={isArray:em,isArrayBuffer:ew,isBuffer:eS,isFormData:e=>{let t;return e&&(eO&&e instanceof eO||eE(e.append)&&("formdata"===(t=ed(e))||"object"===t&&eE(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ew(e.buffer)},isString:eb,isNumber:eA,isBoolean:e=>!0===e||!1===e,isObject:eC,isPlainObject:eU,isEmptyObject:e=>{if(!eC(e)||eS(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:eP,isRequest:eB,isResponse:ek,isHeaders:eF,isUndefined:ev,isDate:eT,isFile:eR,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:eD,isRegExp:eH,isFunction:eE,isStream:e=>eC(e)&&eE(e.pipe),isURLSearchParams:ex,isTypedArray:eK,isFileList:eI,forEach:eN,merge:function e(){let{caseless:t,skipUndefined:r}=ej(this)&&this||{},n={},i=(i,o)=>{if("__proto__"===o||"constructor"===o||"prototype"===o)return;let s=t&&eM(n,o)||o;eU(n[s])&&eU(i)?n[s]=e(n[s],i):eU(i)?n[s]=e({},i):em(i)?n[s]=i.slice():r&&ev(i)||(n[s]=i)};for(let e=0,t=arguments.length;e(eN(t,(t,n)=>{r&&eE(t)?Object.defineProperty(e,n,{value:ef(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,o,s,a={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)s=i[o],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=!1!==r&&el(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype)return t},kindOf:ed,kindOfTest:eg,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(em(e))return e;let t=e.length;if(!eA(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[eh]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:eV,hasOwnProperty:eq,hasOwnProp:eq,reduceDescriptors:eY,freezeMethods:e=>{eY(e,(t,r)=>{if(eE(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(eE(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(em(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:eM,global:eL,isContextDefined:ej,isSpecCompliantForm:function(e){return!!(e&&eE(e.append)&&"FormData"===e[ep]&&e[eh])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(eC(e)){if(t.indexOf(e)>=0)return;if(eS(e))return e;if(!("toJSON"in e)){t[n]=e;let i=em(e)?[]:{};return eN(e,(e,t)=>{let o=r(e,n+1);ev(o)||(i[t]=o)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:eJ,isThenable:e=>e&&(eC(e)||eE(e))&&eE(e.then)&&eE(e.catch),setImmediate:ez,asap:eW,isIterable:e=>null!=e&&eE(e[eh])};var eZ=e.i(67034);class e$ extends Error{static from(e,t,r,n,i,o){let s=new e$(e.message,t||e.code,r,n,i);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),o&&Object.assign(s,o),s}constructor(e,t,r,n,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eG.toJSONObject(this.config),code:this.code,status:this.status}}}e$.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",e$.ERR_BAD_OPTION="ERR_BAD_OPTION",e$.ECONNABORTED="ECONNABORTED",e$.ETIMEDOUT="ETIMEDOUT",e$.ERR_NETWORK="ERR_NETWORK",e$.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",e$.ERR_DEPRECATED="ERR_DEPRECATED",e$.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",e$.ERR_BAD_REQUEST="ERR_BAD_REQUEST",e$.ERR_CANCELED="ERR_CANCELED",e$.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",e$.ERR_INVALID_URL="ERR_INVALID_URL";let eX=e$;function eQ(e){return eG.isPlainObject(e)||eG.isArray(e)}function e0(e){return eG.endsWith(e,"[]")?e.slice(0,-2):e}function e1(e,t,r){return e?e.concat(t).map(function(e,t){return e=e0(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let e2=eG.toFlatObject(eG,{},null,function(e){return/^is[A-Z]/.test(e)}),e5=function(e,t,r){if(!eG.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=eG.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!eG.isUndefined(t[e])})).metaTokens,i=r.visitor||f,o=r.dots,s=r.indexes,a=(r.Blob||"u">typeof Blob&&Blob)&&eG.isSpecCompliantForm(t);if(!eG.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(eG.isDate(e))return e.toISOString();if(eG.isBoolean(e))return e.toString();if(!a&&eG.isBlob(e))throw new eX("Blob is not supported. Use a Buffer instead.");return eG.isArrayBuffer(e)||eG.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):eZ.Buffer.from(e):e}function f(e,r,i){let a=e;if(eG.isReactNative(t)&&eG.isReactNativeBlob(e))return t.append(e1(i,r,o),u(e)),!1;if(e&&!i&&"object"==typeof e)if(eG.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var f;if(eG.isArray(e)&&(f=e,eG.isArray(f)&&!f.some(eQ))||(eG.isFileList(e)||eG.endsWith(r,"[]"))&&(a=eG.toArray(e)))return r=e0(r),a.forEach(function(e,n){eG.isUndefined(e)||null===e||t.append(!0===s?e1([r],n,o):null===s?r:r+"[]",u(e))}),!1}return!!eQ(e)||(t.append(e1(i,r,o),u(e)),!1)}let c=[],l=Object.assign(e2,{defaultVisitor:f,convertValue:u,isVisitable:eQ});if(!eG.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!eG.isUndefined(r)){if(-1!==c.indexOf(r))throw Error("Circular reference detected in "+n.join("."));c.push(r),eG.forEach(r,function(r,o){!0===(!(eG.isUndefined(r)||null===r)&&i.call(t,r,eG.isString(o)?o.trim():o,n,l))&&e(r,n?n.concat(o):[o])}),c.pop()}}(e),t};function e6(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function e8(e,t){this._pairs=[],e&&e5(e,this,t)}let e3=e8.prototype;function e4(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function e7(e,t,r){let n;if(!t)return e;let i=r&&r.encode||e4,o=eG.isFunction(r)?{serialize:r}:r,s=o&&o.serialize;if(n=s?s(t,o):eG.isURLSearchParams(t)?t.toString():new e8(t,o).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}e3.append=function(e,t){this._pairs.push([e,t])},e3.toString=function(e){let t=e?function(t){return e.call(this,t,e6)}:e6;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let e9=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){eG.forEach(this.handlers,function(t){null!==t&&e(t)})}},te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},tt="u">typeof URLSearchParams?URLSearchParams:e8,tr="u">typeof FormData?FormData:null,tn="u">typeof Blob?Blob:null,ti="u">typeof window&&"u">typeof document,to="object"==typeof navigator&&navigator||void 0,ts=ti&&(!to||0>["ReactNative","NativeScript","NS"].indexOf(to.product)),ta="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,tu=ti&&window.location.href||"http://localhost";e.s(["hasBrowserEnv",0,ti,"hasStandardBrowserEnv",0,ts,"hasStandardBrowserWebWorkerEnv",0,ta,"navigator",0,to,"origin",0,tu],57536);let tf={...e.i(57536),isBrowser:!0,classes:{URLSearchParams:tt,FormData:tr,Blob:tn},protocols:["http","https","file","blob","url","data"]},tc=function(e){if(eG.isFormData(e)&&eG.isFunction(e.entries)){let t={};return eG.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let o=t[i++];if("__proto__"===o)return!0;let s=Number.isFinite(+o),a=i>=t.length;return(o=!o&&eG.isArray(n)?n.length:o,a)?eG.hasOwnProp(n,o)?n[o]=[n[o],r]:n[o]=r:(n[o]&&eG.isObject(n[o])||(n[o]=[]),e(t,r,n[o],i)&&eG.isArray(n[o])&&(n[o]=function(e){let t,r,n={},i=Object.keys(e),o=i.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},tl={transitional:te,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=eG.isObject(e);if(o&&eG.isHTMLForm(e)&&(e=new FormData(e)),eG.isFormData(e))return i?JSON.stringify(tc(e)):e;if(eG.isArrayBuffer(e)||eG.isBuffer(e)||eG.isStream(e)||eG.isFile(e)||eG.isBlob(e)||eG.isReadableStream(e))return e;if(eG.isArrayBufferView(e))return e.buffer;if(eG.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){var s,a;return(s=e,a=this.formSerializer,e5(s,new tf.classes.URLSearchParams,{visitor:function(e,t,r,n){return tf.isNode&&eG.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...a})).toString()}if((r=eG.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return e5(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(o||i){t.setContentType("application/json",!1);var u=e;if(eG.isString(u))try{return(0,JSON.parse)(u),eG.trim(u)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(u)}return e}],transformResponse:[function(e){let t=this.transitional||tl.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(eG.isResponse(e)||eG.isReadableStream(e))return e;if(e&&eG.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw eX.from(e,eX.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:tf.classes.FormData,Blob:tf.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eG.forEach(["delete","get","head","post","put","patch"],e=>{tl.headers[e]={}});let th=eG.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),tp=Symbol("internals");function td(e){return e&&String(e).trim().toLowerCase()}function tg(e){return!1===e||null==e?e:eG.isArray(e)?e.map(tg):function(e){let t=e.length;for(;t>0;){let r=e.charCodeAt(t-1);if(10!==r&&13!==r)break;t-=1}return t===e.length?e:e.slice(0,t)}(String(e))}function ty(e,t,r,n,i){if(eG.isFunction(n))return n.call(this,t,r);if(i&&(t=r),eG.isString(t)){if(eG.isString(n))return -1!==t.indexOf(n);if(eG.isRegExp(n))return n.test(t)}}class tm{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=td(t);if(!i)throw Error("header name must be a non-empty string");let o=eG.findKey(n,i);o&&void 0!==n[o]&&!0!==r&&(void 0!==r||!1===n[o])||(!function e(t,r){if(!1!==t&&null!=t){let n;if(eG.isArray(t))return void t.forEach(t=>e(t,r));if(n=String(t),/[\r\n]/.test(n))throw Error(`Invalid character in header content ["${r}"]`)}}(e,t),n[o||t]=tg(e))}let o=(e,t)=>eG.forEach(e,(e,r)=>i(e,r,t));if(eG.isPlainObject(e)||e instanceof this.constructor)o(e,t);else{let n;if(eG.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var s;let r,n,i,a;o((a={},(s=e)&&s.split("\n").forEach(function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||a[r]&&th[r]||("set-cookie"===r?a[r]?a[r].push(n):a[r]=[n]:a[r]=a[r]?a[r]+", "+n:n)}),a),t)}else if(eG.isObject(e)&&eG.isIterable(e)){let r={},n,i;for(let t of e){if(!eG.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?eG.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(r,t)}else null!=e&&i(t,e,r)}return this}get(e,t){if(e=td(e)){let r=eG.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(eG.isFunction(t))return t.call(this,e,r);if(eG.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=td(e)){let r=eG.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||ty(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=td(e)){let i=eG.findKey(r,e);i&&(!t||ty(r,r[i],i,t))&&(delete r[i],n=!0)}}return eG.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||ty(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return eG.forEach(this,(n,i)=>{let o=eG.findKey(r,i);if(o){t[o]=tg(n),delete t[i];return}let s=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();s!==i&&delete t[i],t[s]=tg(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return eG.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&eG.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[tp]=this[tp]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=td(e);if(!t[n]){let i;i=eG.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+i,{value:function(r,n,i){return this[t].call(this,e,r,n,i)},configurable:!0})}),t[n]=!0}}return eG.isArray(e)?e.forEach(n):n(e),this}}function tv(e,t){let r=this||tl,n=t||r,i=tm.from(n.headers),o=n.data;return eG.forEach(e,function(e){o=e.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function tS(e){return!!(e&&e.__CANCEL__)}tm.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eG.reduceDescriptors(tm.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),eG.freezeMethods(tm);let tw=class extends eX{constructor(e,t,r){super(null==e?"canceled":e,eX.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function tb(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new eX("Request failed with status code "+r.status,[eX.ERR_BAD_REQUEST,eX.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}let tE=function(e,t){let r,n=Array(e=e||10),i=Array(e),o=0,s=0;return t=void 0!==t?t:1e3,function(a){let u=Date.now(),f=i[s];r||(r=u),n[o]=a,i[o]=u;let c=s,l=0;for(;c!==o;)l+=n[c++],c%=e;if((o=(o+1)%e)===s&&(s=(s+1)%e),u-r{i=o,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-i;a>=o?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},o-a)))},()=>r&&s(r)]},tC=(e,t,r=3)=>{let n=0,i=tE(50,250);return tA(r=>{let o=r.loaded,s=r.lengthComputable?r.total:void 0,a=o-n,u=i(a);n=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:u||void 0,estimated:u&&s&&o<=s?(s-o)/u:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},tU=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},tT=e=>(...t)=>eG.asap(()=>e(...t)),tR=tf.hasStandardBrowserEnv?(n=new URL(tf.origin),i=tf.navigator&&/(msie|trident)/i.test(tf.navigator.userAgent),e=>(e=new URL(e,tf.origin),n.protocol===e.protocol&&n.host===e.host&&(i||n.port===e.port))):()=>!0,tD=tf.hasStandardBrowserEnv?{write(e,t,r,n,i,o,s){if("u"null,remove(){}};function tI(e,t,r){let n=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(n||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let t_=e=>e instanceof tm?{...e}:e;function tO(e,t){t=t||{};let r={};function n(e,t,r,n){return eG.isPlainObject(e)&&eG.isPlainObject(t)?eG.merge.call({caseless:n},e,t):eG.isPlainObject(t)?eG.merge({},t):eG.isArray(t)?t.slice():t}function i(e,t,r,i){return eG.isUndefined(t)?eG.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function o(e,t){if(!eG.isUndefined(t))return n(void 0,t)}function s(e,t){return eG.isUndefined(t)?eG.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,i,o){return o in t?n(r,i):o in e?n(void 0,r):void 0}let u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>i(t_(e),t_(t),r,!0)};return eG.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=eG.hasOwnProp(u,n)?u[n]:i,s=o(e[n],t[n],n);eG.isUndefined(s)&&o!==a||(r[n]=s)}),r}let tx=e=>{let t=tO({},e),{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=tm.from(s),t.url=e7(tI(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),eG.isFormData(r)){if(tf.hasStandardBrowserEnv||tf.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(eG.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&s.set(e,r)})}}if(tf.hasStandardBrowserEnv&&(n&&eG.isFunction(n)&&(n=n(t)),n||!1!==n&&tR(t.url))){let e=i&&o&&tD.read(o);e&&s.set(i,e)}return t},tP="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){var n;let i,o,s,a,u,f,c=tx(e),l=c.data,h=tm.from(c.headers).normalize(),{responseType:p,onUploadProgress:d,onDownloadProgress:g}=c;function y(){a&&a(),u&&u(),c.cancelToken&&c.cancelToken.unsubscribe(i),c.signal&&c.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function v(){if(!m)return;let n=tm.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());tb(function(e){t(e),y()},function(e){r(e),y()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(c.method.toUpperCase(),c.url,!0),m.timeout=c.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){!m||4!==m.readyState||(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(r(new eX("Request aborted",eX.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){let n=new eX(t&&t.message?t.message:"Network Error",eX.ERR_NETWORK,e,m);n.event=t||null,r(n),m=null},m.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",n=c.transitional||te;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),r(new eX(t,n.clarifyTimeoutError?eX.ETIMEDOUT:eX.ECONNABORTED,e,m)),m=null},void 0===l&&h.setContentType(null),"setRequestHeader"in m&&eG.forEach(h.toJSON(),function(e,t){m.setRequestHeader(t,e)}),eG.isUndefined(c.withCredentials)||(m.withCredentials=!!c.withCredentials),p&&"json"!==p&&(m.responseType=c.responseType),g&&([s,u]=tC(g,!0),m.addEventListener("progress",s)),d&&m.upload&&([o,a]=tC(d),m.upload.addEventListener("progress",o),m.upload.addEventListener("loadend",a)),(c.cancelToken||c.signal)&&(i=t=>{m&&(r(!t||t.type?new tw(null,e,m):t),m.abort(),m=null)},c.cancelToken&&c.cancelToken.subscribe(i),c.signal&&(c.signal.aborted?i():c.signal.addEventListener("abort",i)));let S=(n=c.url,(f=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n))&&f[1]||"");S&&-1===tf.protocols.indexOf(S)?r(new eX("Unsupported protocol "+S+":",eX.ERR_BAD_REQUEST,e)):m.send(l||null)})},tB=function*(e,t){let r,n=e.byteLength;if(!t||n{let i,o=tk(e,t),s=0,a=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await o.next();if(t){a(),e.close();return}let i=n.byteLength;if(r){let e=s+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},{isFunction:tM}=eG,tL=(({Request:e,Response:t})=>({Request:e,Response:t}))(eG.global),{ReadableStream:tj,TextEncoder:tK}=eG.global,tV=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tq=e=>{let t,{fetch:r,Request:n,Response:i}=e=eG.merge.call({skipUndefined:!0},tL,e),o=r?tM(r):"function"==typeof fetch,s=tM(n),a=tM(i);if(!o)return!1;let u=o&&tM(tj),f=o&&("function"==typeof tK?(t=new tK,e=>t.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=s&&u&&tV(()=>{let e=!1,t=new tj,r=new n(tf.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!r}),l=a&&u&&tV(()=>eG.isReadableStream(new i("").body)),h={stream:l&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new eX(`Response type '${e}' is not supported`,eX.ERR_NOT_SUPPORT,r)})});let p=async e=>{if(null==e)return 0;if(eG.isBlob(e))return e.size;if(eG.isSpecCompliantForm(e)){let t=new n(tf.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return eG.isArrayBufferView(e)||eG.isArrayBuffer(e)?e.byteLength:(eG.isURLSearchParams(e)&&(e+=""),eG.isString(e))?(await f(e)).byteLength:void 0},d=async(e,t)=>{let r=eG.toFiniteNumber(e.getContentLength());return null==r?p(t):r};return async e=>{let t,{url:o,method:a,data:u,signal:f,cancelToken:p,timeout:g,onDownloadProgress:y,onUploadProgress:m,responseType:v,headers:S,withCredentials:w="same-origin",fetchOptions:b}=tx(e),E=r||fetch;v=v?(v+"").toLowerCase():"text";let A=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,i=function(e){if(!r){r=!0,s();let t=e instanceof Error?e:this.reason;n.abort(t instanceof eX?t:new tw(t instanceof Error?t.message:t))}},o=t&&setTimeout(()=>{o=null,i(new eX(`timeout of ${t}ms exceeded`,eX.ETIMEDOUT))},t),s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:a}=n;return a.unsubscribe=()=>eG.asap(s),a}})([f,p&&p.toAbortSignal()],g),C=null,U=A&&A.unsubscribe&&(()=>{A.unsubscribe()});try{if(m&&c&&"get"!==a&&"head"!==a&&0!==(t=await d(S,u))){let e,r=new n(o,{method:"POST",body:u,duplex:"half"});if(eG.isFormData(u)&&(e=r.headers.get("content-type"))&&S.setContentType(e),r.body){let[e,n]=tU(t,tC(tT(m)));u=tN(r.body,65536,e,n)}}eG.isString(w)||(w=w?"include":"omit");let r=s&&"credentials"in n.prototype,f={...b,signal:A,method:a.toUpperCase(),headers:S.normalize().toJSON(),body:u,duplex:"half",credentials:r?w:void 0};C=s&&new n(o,f);let p=await (s?E(C,b):E(o,f)),g=l&&("stream"===v||"response"===v);if(l&&(y||g&&U)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});let t=eG.toFiniteNumber(p.headers.get("content-length")),[r,n]=y&&tU(t,tC(tT(y),!0))||[];p=new i(tN(p.body,65536,r,()=>{n&&n(),U&&U()}),e)}v=v||"text";let T=await h[eG.findKey(h,v)||"text"](p,e);return!g&&U&&U(),await new Promise((t,r)=>{tb(t,r,{data:T,headers:tm.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:C})})}catch(t){if(U&&U(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new eX("Network Error",eX.ERR_NETWORK,e,C,t&&t.response),{cause:t.cause||t});throw eX.from(t,t&&t.code,e,C,t&&t.response)}}},tH=new Map,tY=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,o=[n,i,r],s=o.length,a,u,f=tH;for(;s--;)a=o[s],void 0===(u=f.get(a))&&f.set(a,u=s?new Map:tq(t)),f=u;return u};tY();let tJ={http:null,xhr:tP,fetch:{get:tY}};eG.forEach(tJ,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let tz=e=>`- ${e}`,tW=e=>eG.isFunction(e)||null===e||!1===e,tG=function(e,t){let r,n,{length:i}=e=eG.isArray(e)?e:[e],o={};for(let s=0;s`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new eX("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(tz).join("\n"):" "+tz(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function tZ(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tw(null,e)}function t$(e){return tZ(e),e.headers=tm.from(e.headers),e.data=tv.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tG(e.adapter||tl.adapter,e)(e).then(function(t){return tZ(e),t.data=tv.call(e,e.transformResponse,t),t.headers=tm.from(t.headers),t},function(t){return!tS(t)&&(tZ(e),t&&t.response&&(t.response.data=tv.call(e,e.transformResponse,t.response),t.response.headers=tm.from(t.response.headers))),Promise.reject(t)})}let tX="1.15.0",tQ={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tQ[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let t0={};tQ.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tX+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,o)=>{if(!1===e)throw new eX(n(i," has been removed"+(t?" in "+t:"")),eX.ERR_DEPRECATED);return t&&!t0[i]&&(t0[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,o)}},tQ.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let t1=function(e,t,r){if("object"!=typeof e)throw new eX("options must be an object",eX.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let o=n[i],s=t[o];if(s){let t=e[o],r=void 0===t||s(t,o,e);if(!0!==r)throw new eX("option "+o+" must be "+r,eX.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new eX("Unknown option "+o,eX.ERR_BAD_OPTION)}};class t2{constructor(e){this.defaults=e||{},this.interceptors={request:new e9,response:new e9}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),i=-1===n?"":r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:o,headers:s}=t=tO(this.defaults,t);void 0!==i&&t1(i,{silentJSONParsing:tQ.transitional(tQ.boolean),forcedJSONParsing:tQ.transitional(tQ.boolean),clarifyTimeoutError:tQ.transitional(tQ.boolean),legacyInterceptorReqResOrdering:tQ.transitional(tQ.boolean)},!1),null!=o&&(eG.isFunction(o)?t.paramsSerializer={serialize:o}:t1(o,{encode:tQ.function,serialize:tQ.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),t1(t,{baseUrl:tQ.spelling("baseURL"),withXsrfToken:tQ.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&eG.merge(s.common,s[t.method]);s&&eG.forEach(["delete","get","head","post","put","patch","common"],e=>{delete s[e]}),t.headers=tm.concat(a,s);let u=[],f=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;f=f&&e.synchronous;let r=t.transitional||te;r&&r.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l=0;if(!f){let e=[t$.bind(this),void 0];for(e.unshift(...u),e.push(...c),n=e.length,r=Promise.resolve(t);l{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new tw(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new t5(function(t){e=t}),cancel:e}}}let t6={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(t6).forEach(([e,t])=>{t6[t]=e});let t8=function e(t){let r=new t2(t),n=ef(t2.prototype.request,r);return eG.extend(n,t2.prototype,r,{allOwnKeys:!0}),eG.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(tO(t,r))},n}(tl);t8.Axios=t2,t8.CanceledError=tw,t8.CancelToken=t5,t8.isCancel=tS,t8.VERSION=tX,t8.toFormData=e5,t8.AxiosError=eX,t8.Cancel=t8.CanceledError,t8.all=function(e){return Promise.all(e)},t8.spread=function(e){return function(t){return e.apply(null,t)}},t8.isAxiosError=function(e){return eG.isObject(e)&&!0===e.isAxiosError},t8.mergeConfig=tO,t8.AxiosHeaders=tm,t8.formToJSON=e=>tc(eG.isHTMLForm(e)?new FormData(e):e),t8.getAdapter=tG,t8.HttpStatusCode=t6,t8.default=t8;let t3=t8.create({baseURL:"https://7rr7fohws2.execute-api.us-east-1.amazonaws.com/v1"});t3.interceptors.request.use(async e=>{let t=await eu();return t&&(e.headers.Authorization=`Bearer ${t}`),e}),e.s(["default",0,t3],85384);let t4=(0,d.createContext)({});e.s(["AuthProvider",0,function({children:e}){let[t,r]=(0,d.useState)(null),[n,i]=(0,d.useState)(!0);async function o(e,t){await eo(e,t);let{data:n}=await t3.get("/me");r(n)}return(0,d.useEffect)(()=>{ea().then(async e=>{try{if(e?.isValid()){let{data:e}=await t3.get("/me");r(e)}}catch(e){console.error("[useAuth] /me failed:",e)}finally{i(!1)}}).catch(e=>{console.error("[useAuth] getSession failed:",e),i(!1)})},[]),(0,p.jsx)(t4.Provider,{value:{user:t,loading:n,login:o,logout:function(){es(),r(null)}},children:e})},"useAuth",0,()=>(0,d.useContext)(t4)],35869)}]);