(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67034,(t,e,r)=>{var n={675:function(t,e){"use strict";e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],f=o[1],u=new i((s+f)*3/4-f),h=0,c=f>0?s-4:s;for(r=0;r>16&255,u[h++]=e>>8&255,u[h++]=255&e;return 2===f&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[h++]=255&e),1===f&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[h++]=e>>8&255,u[h++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,f=n-i;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>f?f:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="u">typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,f=o.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(t,e,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(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,f.prototype),e}function f(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return h(t)}return a(t,e,r)}function a(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!f.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|p(n,i),a=s(o),u=a.write(n,i);return u!==o&&(a=a.slice(0,u)),a}if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(S(t,ArrayBuffer)||t&&S(t.buffer,ArrayBuffer)||"u">typeof SharedArrayBuffer&&(S(t,SharedArrayBuffer)||t&&S(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLengthtypeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return f.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return u(t),s(t<0?0:0|l(t))}function c(t){for(var e=t.length<0?0:0|l(t.length),r=s(e),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(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(t,e,r){return a(t,e,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(t,e,r){return(u(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},f.allocUnsafe=function(t){return h(t)},f.allocUnsafeSlow=function(t){return h(t)};function l(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function p(t,e){if(f.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||S(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return C(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(t).length;default:if(i)return n?-1:C(t).length;e=(""+e).toLowerCase(),i=!0}}function g(t,e,r){var i,o,s,f=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=f.from(e,n)),f.isBuffer(e))return 0===e.length?-1:b(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return b(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function b(t,e,r,n,i){var o,s=1,f=t.length,a=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,f/=2,a/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var h=-1;for(o=r;of&&(r=f-a),o=r;o>=0;o--){for(var c=!0,l=0;lr&&(t+=" ... "),""},o&&(f.prototype[o]=f.prototype.inspect),f.prototype.compare=function(t,e,r,n,i){if(S(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,a=Math.min(o,s),u=this.slice(n,i),h=t.slice(e,r),c=0;c239?4:u>223?3:u>191?2:1;if(i+c<=r)switch(c){case 1:u<128&&(h=u);break;case 2:(192&(o=t[i+1]))==128&&(a=(31&u)<<6|63&o)>127&&(h=a);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(a=(15&u)<<12|(63&o)<<6|63&s)>2047&&(a<55296||a>57343)&&(h=a);break;case 4:o=t[i+1],s=t[i+2],f=t[i+3],(192&o)==128&&(192&s)==128&&(192&f)==128&&(a=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&f)>65535&&a<1114112&&(h=a)}null===h?(h=65533,c=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=c}var l=n,p=l.length;if(p<=4096)return String.fromCharCode.apply(String,l);for(var g="",d=0;dr)throw RangeError("Trying to access beyond buffer length")}function A(t,e,r,n,i,o){if(!f.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw RangeError("Index out of range")}function w(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function E(t,e,r,n,o){return e*=1,r>>>=0,o||w(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function x(t,e,r,n,o){return e*=1,r>>>=0,o||w(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}f.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=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,f,a,u,h,c,l=this.length-e;if((void 0===r||r>l)&&(r=l),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s>8,i.push(r%256),i.push(n);return i}(t,this.length-h),this,h,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t],i=1,o=0;++o>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},f.prototype.readUInt8=function(t,e){return t>>>=0,e||v(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,e){return t>>>=0,e||v(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},f.prototype.readUInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},f.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||v(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},f.prototype.readInt8=function(t,e){return(t>>>=0,e||v(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},f.prototype.readInt16LE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt16BE=function(t,e){t>>>=0,e||v(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},f.prototype.readInt32LE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,e){return t>>>=0,e||v(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,e){return t>>>=0,e||v(t,4,this.length),i.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,e){return t>>>=0,e||v(t,4,this.length),i.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,e){return t>>>=0,e||v(t,8,this.length),i.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,e){return t>>>=0,e||v(t,8,this.length),i.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;A(this,t,e,r,i,0)}var o=1,s=0;for(this[e]=255&t;++s>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;A(this,t,e,r,i,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},f.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||A(this,t,e,1,255,0),this[e]=255&t,e+1},f.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||A(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||A(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||A(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},f.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||A(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);A(this,t,e,r,i-1,-i)}var o=0,s=1,f=0;for(this[e]=255&t;++o>>=0,!n){var i=Math.pow(2,8*r-1);A(this,t,e,r,i-1,-i)}var o=r-1,s=1,f=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===f&&0!==this[e+o+1]&&(f=1),this[e+o]=(t/s|0)-f&255;return e+r},f.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||A(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},f.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||A(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},f.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||A(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},f.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||A(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},f.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||A(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},f.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},f.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},f.prototype.writeDoubleLE=function(t,e,r){return x(this,t,e,!0,r)},f.prototype.writeDoubleBE=function(t,e,r){return x(this,t,e,!1,r)},f.prototype.copy=function(t,e,r,n){if(!f.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=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),t.length-e=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},f.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=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&&!f.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=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(t){for(var e=[],r=0;r=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function S(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var B=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},783:function(t,e){e.read=function(t,e,r,n,i){var o,s,f=8*i-n-1,a=(1<>1,h=-7,c=r?i-1:0,l=r?-1:1,p=t[e+c];for(c+=l,o=p&(1<<-h)-1,p>>=-h,h+=f;h>0;o=256*o+t[e+c],c+=l,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+c],c+=l,h-=8);if(0===o)o=1-u;else{if(o===a)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=u}return(p?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,f,a,u=8*o-i-1,h=(1<>1,l=5960464477539062e-23*(23===i),p=n?0:o-1,g=n?1:-1,d=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(f=+!!isNaN(e),s=h):(s=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-s))<1&&(s--,a*=2),s+c>=1?e+=l/a:e+=l*Math.pow(2,1-c),e*a>=2&&(s++,a/=2),s+c>=h?(f=0,s=h):s+c>=1?(f=(e*a-1)*Math.pow(2,i),s+=c):(f=e*Math.pow(2,c-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&f,p+=g,f/=256,i-=8);for(s=s<0;t[r+p]=255&s,p+=g,s/=256,u-=8);t[r+p-g]|=128*d}}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}},s=!0;try{n[t](r,r.exports,o),s=!1}finally{s&&delete i[t]}return r.exports}o.ab="/ROOT/node_modules/next/dist/compiled/buffer/",e.exports=o(72)},62265,32158,69993,71094,60285,17128,62008,66088,74860,t=>{"use strict";(y=b||(b={})).DEBUG="DEBUG",y.ERROR="ERROR",y.INFO="INFO",y.WARN="WARN",y.VERBOSE="VERBOSE",y.NONE="NONE";let e={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class r{constructor(t,e=b.WARN){this.name=t,this.level=e,this._pluggables=[]}_padding(t){return t<10?"0"+t:""+t}_ts(){let t=new Date;return[this._padding(t.getMinutes()),this._padding(t.getSeconds())].join(":")+"."+t.getMilliseconds()}configure(t){return t&&(this._config=t),this._config}_log(t,...n){let i=this.level;r.LOG_LEVEL&&(i=r.LOG_LEVEL),"u">typeof window&&window.LOG_LEVEL&&(i=window.LOG_LEVEL);let o=e[i];if(!(e[t]>=o))return;let s=console.log.bind(console);t===b.ERROR&&console.error&&(s=console.error.bind(console)),t===b.WARN&&console.warn&&(s=console.warn.bind(console)),r.BIND_ALL_LOG_LEVELS&&(t===b.INFO&&console.info&&(s=console.info.bind(console)),t===b.DEBUG&&console.debug&&(s=console.debug.bind(console)));let f=`[${t}] ${this._ts()} ${this.name}`,a="";if(1===n.length&&"string"==typeof n[0])s(a=`${f} - ${n[0]}`);else if(1===n.length)a=`${f} ${n[0]}`,s(f,n[0]);else if("string"==typeof n[0]){let t=n.slice(1);1===t.length&&(t=t[0]),a=`${f} - ${n[0]} ${t}`,s(`${f} - ${n[0]}`,t)}else a=`${f} ${n}`,s(f,n);for(let t of this._pluggables){let e={message:a,timestamp:Date.now()};t.pushLogs([e])}}log(...t){this._log(b.INFO,...t)}info(...t){this._log(b.INFO,...t)}warn(...t){this._log(b.WARN,...t)}error(...t){this._log(b.ERROR,...t)}debug(...t){this._log(b.DEBUG,...t)}verbose(...t){this._log(b.VERBOSE,...t)}addPluggable(t){t&&"Logging"===t.getCategoryName()&&(this._pluggables.push(t),t.configure(this._config))}listPluggables(){return this._pluggables}}r.LOG_LEVEL=null,r.BIND_ALL_LOG_LEVELS=!1,t.s(["ConsoleLogger",0,r],32158);class n extends Error{constructor({message:t,name:e,recoverySuggestion:r,underlyingError:i,metadata:o}){if(super(t),this.name=e,this.underlyingError=i,this.recoverySuggestion=r,o){const{extendedRequestId:t,httpStatusCode:e,requestId:r}=o;this.metadata={extendedRequestId:t,httpStatusCode:e,requestId:r}}this.constructor=n,Object.setPrototypeOf(this,n.prototype)}}t.s(["AmplifyError",0,n],69993);let i="u">typeof Symbol?Symbol("amplify_default"):"@@amplify_default",o=new r("Hub");class s{constructor(t){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=t}_remove(t,e){let r=this.listeners.get(t);r?this.listeners.set(t,[...r.filter(({callback:t})=>t!==e)]):o.warn(`No listeners for ${t}`)}dispatch(t,e,r,n){"string"==typeof t&&this.protectedChannels.indexOf(t)>-1&&n!==i&&o.warn(`WARNING: ${t} is protected and dispatching on it can have unintended consequences`);let s={channel:t,payload:{...e},source:r,patternInfo:[]};try{this._toListeners(s)}catch(t){o.error(t)}}listen(t,e,r="noname"){if("function"!=typeof e)throw new n({name:"NoHubcallbackProvidedException",message:"No callback supplied to Hub"});let i=this.listeners.get(t);return i||(i=[],this.listeners.set(t,i)),i.push({name:r,callback:e}),()=>{this._remove(t,e)}}_toListeners(t){let{channel:e,payload:r}=t,n=this.listeners.get(e);n&&n.forEach(n=>{o.debug(`Dispatching to ${e} with `,r);try{n.callback(t)}catch(t){o.error(t)}})}}let f=new s("__default__");new s("internal-hub"),t.s(["AMPLIFY_SYMBOL",0,i,"Hub",0,f],71094);let a=t=>{for(let e of Reflect.ownKeys(t)){let r=t[e];(r&&"object"==typeof r||"function"==typeof r)&&a(r)}return Object.freeze(t)},u=Symbol("oauth-listener"),h=new r("parseAWSExports"),c={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},l=t=>t?.split(",")??[],p={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"},g={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"},d=t=>{if(Object.keys(t).some(t=>t.startsWith("aws_")))return((t={})=>{if(!Object.prototype.hasOwnProperty.call(t,"aws_project_region"))throw new n({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});let{aws_appsync_apiKey:e,aws_appsync_authenticationType:r,aws_appsync_graphqlEndpoint:i,aws_appsync_region:o,aws_bots_config:s,aws_cognito_identity_pool_id:f,aws_cognito_sign_up_verification_method:a,aws_cognito_mfa_configuration:u,aws_cognito_mfa_types:p,aws_cognito_password_protection_settings:g,aws_cognito_verification_mechanisms:d,aws_cognito_signup_attributes:y,aws_cognito_social_providers:b,aws_cognito_username_attributes:m,aws_mandatory_sign_in:v,aws_mobile_analytics_app_id:A,aws_mobile_analytics_app_region:w,aws_user_files_s3_bucket:E,aws_user_files_s3_bucket_region:x,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:O,aws_user_pools_id:C,aws_user_pools_web_client_id:I,geo:L,oauth:_,predictions:S,aws_cloud_logic_custom:B,Notifications:P,modelIntrospection:U}=t,R={};A&&(R.Analytics={Pinpoint:{appId:A,region:w}});let{InAppMessaging:N,Push:T}=P??{};if(N?.AWSPinpoint||T?.AWSPinpoint){if(N?.AWSPinpoint){let{appId:t,region:e}=N.AWSPinpoint;R.Notifications={InAppMessaging:{Pinpoint:{appId:t,region:e}}}}if(T?.AWSPinpoint){let{appId:t,region:e}=T.AWSPinpoint;R.Notifications={...R.Notifications,PushNotification:{Pinpoint:{appId:t,region:e}}}}}if(Array.isArray(s)&&(R.Interactions={LexV1:Object.fromEntries(s.map(t=>[t.name,t]))}),i){let t=c[r];t||h.debug(`Invalid authentication type ${r}. Falling back to IAM.`),R.API={GraphQL:{endpoint:i,apiKey:e,region:o,defaultAuthMode:t??"iam"}},U&&(R.API.GraphQL.modelIntrospection=U)}let M=u?{status:u&&u.toLowerCase(),totpEnabled:p?.includes("TOTP")??!1,smsEnabled:p?.includes("SMS")??!1}:void 0,k=g?{minLength:g.passwordPolicyMinLength,requireLowercase:g.passwordPolicyCharacters?.includes("REQUIRES_LOWERCASE")??!1,requireUppercase:g.passwordPolicyCharacters?.includes("REQUIRES_UPPERCASE")??!1,requireNumbers:g.passwordPolicyCharacters?.includes("REQUIRES_NUMBERS")??!1,requireSpecialCharacters:g.passwordPolicyCharacters?.includes("REQUIRES_SYMBOLS")??!1}:void 0,W=Array.from(new Set([...d??[],...y??[]])).reduce((t,e)=>({...t,[e.toLowerCase()]:{required:!0}}),{}),G=m?.includes("EMAIL")??!1,j=m?.includes("PHONE_NUMBER")??!1;(f||C)&&(R.Auth={Cognito:{identityPoolId:f,allowGuestAccess:"enable"!==v,signUpVerificationMethod:a,userAttributes:W,userPoolClientId:I,userPoolId:C,mfa:M,passwordFormat:k,loginWith:{username:!(G||j),email:G,phone:j}}});let D=!!_&&Object.keys(_).length>0,$=!!b&&b.length>0;if(R.Auth&&D&&(R.Auth.Cognito.loginWith={...R.Auth.Cognito.loginWith,oauth:{...(({domain:t,scope:e,redirectSignIn:r,redirectSignOut:n,responseType:i})=>({domain:t,scopes:e,redirectSignIn:l(r),redirectSignOut:l(n),responseType:i}))(_),...$&&{providers:b.map(t=>{let e=t.toLowerCase();return e.charAt(0).toUpperCase()+e.slice(1)})}}}),E&&(R.Storage={S3:{bucket:E,region:x,dangerouslyConnectToHttpEndpointForTesting:O}}),L){let{amazon_location_service:t}=L;R.Geo={LocationService:{maps:t.maps,geofenceCollections:t.geofenceCollections,searchIndices:t.search_indices,region:t.region}}}if(B&&(R.API={...R.API,REST:B.reduce((t,e)=>{let{name:r,endpoint:n,region:i,service:o}=e;return{...t,[r]:{endpoint:n,...o?{service:o}:void 0,...i?{region:i}:void 0}}},{})}),S){let{VoiceId:t}=S?.convert?.speechGenerator?.defaults??{};R.Predictions=t?{...S,convert:{...S.convert,speechGenerator:{...S.convert.speechGenerator,defaults:{voiceId:t}}}}:S}return R})(t);if(!function(t){let{version:e}=t;return!!e&&e.startsWith("1")}(t))return t;let e={};if(t.storage&&(e.Storage=function(t){let e;if(!t)return;let{bucket_name:r,aws_region:n,buckets:i}=t;return{S3:{bucket:r,region:n,buckets:i&&(e={},i.forEach(({name:t,bucket_name:r,aws_region:n,paths:i})=>{if(t in e)throw Error(`Duplicate friendly name found: ${t}. Name must be unique.`);let o=i?Object.entries(i).reduce((t,[e,r])=>(void 0!==r&&(t[e]=r),t),{}):void 0;e[t]={bucketName:r,region:n,paths:o}}),e)}}}(t.storage)),t.auth&&(e.Auth=function(t){var e;if(!t)return;let{user_pool_id:r,user_pool_client_id:n,identity_pool_id:i,password_policy:o,mfa_configuration:s,mfa_methods:f,unauthenticated_identities_enabled:a,oauth:u,username_attributes:h,standard_required_attributes:c,groups:l,passwordless:p}=t,d={Cognito:{userPoolId:r,userPoolClientId:n,groups:l}};return i&&(d.Cognito={...d.Cognito,identityPoolId:i}),o&&(d.Cognito.passwordFormat={requireLowercase:o.require_lowercase,requireNumbers:o.require_numbers,requireUppercase:o.require_uppercase,requireSpecialCharacters:o.require_symbols,minLength:o.min_length??6}),s&&(d.Cognito.mfa={status:"OPTIONAL"===(e=s)?"optional":"REQUIRED"===e?"on":"off",smsEnabled:f?.includes("SMS"),totpEnabled:f?.includes("TOTP")}),a&&(d.Cognito.allowGuestAccess=a),u&&(d.Cognito.loginWith={oauth:{domain:u.domain,redirectSignIn:u.redirect_sign_in_uri,redirectSignOut:u.redirect_sign_out_uri,responseType:"token"===u.response_type?"token":"code",scopes:u.scopes,providers:function(t=[]){return t.reduce((t,e)=>(void 0!==g[e]&&t.push(g[e]),t),[])}(u.identity_providers)}}),h&&(d.Cognito.loginWith={...d.Cognito.loginWith,email:h.includes("email"),phone:h.includes("phone_number"),username:h.includes("username")}),c&&(d.Cognito.userAttributes=c.reduce((t,e)=>({...t,[e]:{required:!0}}),{})),p&&(d.Cognito.passwordless={emailOtpEnabled:p.email_otp_enabled,smsOtpEnabled:p.sms_otp_enabled,webAuthn:p.web_authn?{relyingPartyId:p.web_authn.relying_party_id,userVerification:p.web_authn.user_verification}:void 0,preferredChallenge:p.preferred_challenge}),d}(t.auth)),t.analytics&&(e.Analytics=function(t){if(!t?.amazon_pinpoint)return;let{amazon_pinpoint:e}=t;return{Pinpoint:{appId:e.app_id,region:e.aws_region}}}(t.analytics)),t.geo&&(e.Geo=function(t){if(!t)return;let{aws_region:e,geofence_collections:r,maps:n,search_indices:i}=t;return{LocationService:{region:e,searchIndices:i,geofenceCollections:r,maps:n}}}(t.geo)),t.data&&(e.API=function(t){if(!t)return;let{aws_region:e,default_authorization_type:r,url:n,api_key:i,model_introspection:o}=t;return{GraphQL:{endpoint:n,defaultAuthMode:p[r],region:e,apiKey:i,modelIntrospection:o}}}(t.data)),t.custom){let r=function(t){if(!t?.events)return;let{url:e,aws_region:r,api_key:n,default_authorization_type:i}=t.events;return{Events:{endpoint:e,defaultAuthMode:p[i],region:r,apiKey:n}}}(t.custom);r&&"Events"in r&&(e.API={...e.API,...r})}return t.notifications&&(e.Notifications=function(t){if(!t)return;let{aws_region:e,channels:r,amazon_pinpoint_app_id:n}=t,i=r.includes("IN_APP_MESSAGING"),o=r.includes("APNS")||r.includes("FCM");if(!(i||o))return;let s={};return i&&(s.InAppMessaging={Pinpoint:{appId:n,region:e}}),o&&(s.PushNotification={Pinpoint:{appId:n,region:e}}),s}(t.notifications)),e};t.s(["parseAmplifyConfig",0,d],60285);var y,b,m=("function"==typeof SuppressedError&&SuppressedError,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])),v=[0x6a09e667,0xbb67ae85,0x3c6ef372,0xa54ff53a,0x510e527f,0x9b05688c,0x1f83d9ab,0x5be0cd19],A=function(){function t(){this.state=Int32Array.from(v),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(t){if(this.finished)throw Error("Attempted to update an already finished hash.");var e=0,r=t.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>0x1fffffffffffff)throw Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[e++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var t=8*this.bytesHashed,e=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(e.setUint8(this.bufferLength++,128),r%64>=56){for(var n=this.bufferLength;n<64;n++)e.setUint8(n,0);this.hashBuffer(),this.bufferLength=0}for(var n=this.bufferLength;n<56;n++)e.setUint8(n,0);e.setUint32(56,Math.floor(t/0x100000000),!0),e.setUint32(60,t),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),n=0;n<8;n++)i[4*n]=this.state[n]>>>24&255,i[4*n+1]=this.state[n]>>>16&255,i[4*n+2]=this.state[n]>>>8&255,i[4*n+3]=this.state[n]>>>0&255;return i},t.prototype.hashBuffer=function(){for(var t=this.buffer,e=this.state,r=e[0],n=e[1],i=e[2],o=e[3],s=e[4],f=e[5],a=e[6],u=e[7],h=0;h<64;h++){if(h<16)this.temp[h]=(255&t[4*h])<<24|(255&t[4*h+1])<<16|(255&t[4*h+2])<<8|255&t[4*h+3];else{var c=this.temp[h-2],l=(c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10,p=((c=this.temp[h-15])>>>7|c<<25)^(c>>>18|c<<14)^c>>>3;this.temp[h]=(l+this.temp[h-7]|0)+(p+this.temp[h-16]|0)}var g=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&f^~s&a)|0)+(u+(m[h]+this.temp[h]|0)|0)|0,d=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&i^n&i)|0;u=a,a=f,f=s,s=o+g|0,o=i,i=n,n=r,r=g+d|0}e[0]+=r,e[1]+=n,e[2]+=i,e[3]+=o,e[4]+=s,e[5]+=f,e[6]+=a,e[7]+=u},t}(),w=t.i(67034),E=void 0!==w.Buffer&&w.Buffer.from?function(t){return w.Buffer.from(t,"utf8")}:t=>new TextEncoder().encode(t);function x(t){return t instanceof Uint8Array?t:"string"==typeof t?E(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}var O=function(){function t(t){this.secret=t,this.hash=new A,this.reset()}return t.prototype.update=function(t){if(!("string"==typeof t?0===t.length:0===t.byteLength)&&!this.error)try{this.hash.update(x(t))}catch(t){this.error=t}},t.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},t.prototype.digest=function(){var t,e,r,n;return t=this,e=void 0,r=void 0,n=function(){return function(t,e){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=f(0),s.throw=f(1),s.return=f(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function f(f){return function(a){var u=[f,a];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)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 o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]64){var r=new A;r.update(e),e=r.digest()}var n=new Uint8Array(64);return n.set(e),n}(this.secret),e=new Uint8Array(64);e.set(t);for(var r=0;r<64;r++)t[r]^=54,e[r]^=92;this.hash.update(t),this.outer.update(e);for(var r=0;r`You are using a custom Amazon ${t} endpoint, ensure the endpoint is correct.`,B=new class{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new _}configure(t,e){let r=d(t);this.resourcesConfig=r,e&&(this.libraryOptions=e),this.resourcesConfig=a(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),(this.resourcesConfig.Analytics?.Pinpoint||this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint||this.resourcesConfig.Notifications?.PushNotification?.Pinpoint)&&console.warn("AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics."),f.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",i),this.notifyOAuthListener(),this.isConfigured=!0}getConfig(){return this.isConfigured||console.warn("Amplify has not been configured. Please call Amplify.configure() before using this service."),this.resourcesConfig}[u](t){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?t(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=t}notifyOAuthListener(){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth&&this.oAuthListener&&(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}};t.s(["Amplify",0,B],74860),t.s(["fetchAuthSession",0,t=>B.Auth.fetchAuthSession(t)],62265)}]);