IA-Logseq-Publish/static/js/amplify.js

142 lines
743 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(()=>{function e(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function n(e){return e&&e.__esModule?e.default:e}var r={},o={},i=t.parcelRequire3974;null==i&&((i=function(e){if(e in r)return r[e].exports;if(e in o){var t=o[e];delete o[e];var n={id:e,exports:{}};return r[e]=n,t.call(n.exports,n,n.exports),n.exports}var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,t){o[e]=t},t.parcelRequire3974=i),i.register("65Cyg",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Sha256=void 0;var n=i("5p1Rg"),r=i("5hFca"),o=i("fRjTy"),a=i("cZl6p"),s=function(){function e(e){if(this.hash=new o.RawSha256,e){this.outer=new o.RawSha256;var t=function(e){var t=(0,a.convertToBuffer)(e);if(t.byteLength>r.BLOCK_SIZE){var n=new o.RawSha256;n.update(t),t=n.digest()}var i=new Uint8Array(r.BLOCK_SIZE);return i.set(t),i}(e),n=new Uint8Array(r.BLOCK_SIZE);n.set(t);for(var i=0;i<r.BLOCK_SIZE;i++)t[i]^=54,n[i]^=92;this.hash.update(t),this.outer.update(n);for(i=0;i<t.byteLength;i++)t[i]=0}}return e.prototype.update=function(e){if(!(0,a.isEmptyData)(e)&&!this.error)try{this.hash.update((0,a.convertToBuffer)(e))}catch(e){this.error=e}},e.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()},e.prototype.digest=function(){return(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return[2,this.digestSync()]}))}))},e}();e.exports.Sha256=s})),i.register("5p1Rg",(function(t,n){e(t.exports,"__awaiter",(()=>r)),e(t.exports,"__generator",(()=>o)),e(t.exports,"__exportStar",(()=>i));function r(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function o(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function i(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}})),i.register("5hFca",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.MAX_HASHABLE_LENGTH=e.exports.INIT=e.exports.KEY=e.exports.DIGEST_LENGTH=e.exports.BLOCK_SIZE=void 0,e.exports.BLOCK_SIZE=64,e.exports.DIGEST_LENGTH=32,e.exports.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),e.exports.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],e.exports.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1})),i.register("fRjTy",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.RawSha256=void 0;var n=i("5hFca"),r=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 new 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 new 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 o=this.bufferLength;o<n.BLOCK_SIZE;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(o=this.bufferLength;o<n.BLOCK_SIZE-8;o++)t.setUint8(o,0);t.setUint32(n.BLOCK_SIZE-8,Math.floor(e/4294967296),!0),t.setUint32(n.BLOCK_SIZE-4,e),this.hashBuffer(),this.finished=!0}var i=new Uint8Array(n.DIGEST_LENGTH);for(o=0;o<8;o++)i[4*o]=this.state[o]>>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],o=t[1],i=t[2],a=t[3],s=t[4],u=t[5],l=t[6],c=t[7],d=0;d<n.BLOCK_SIZE;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var f=this.temp[d-2],h=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,p=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(h+this.temp[d-7]|0)+(p+this.temp[d-16]|0)}var m=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&u^~s&l)|0)+(c+(n.KEY[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&o^r&i^o&i)|0;c=l,l=u,u=s,s=a+m|0,a=i,i=o,o=r,r=m+g|0}t[0]+=r,t[1]+=o,t[2]+=i,t[3]+=a,t[4]+=s,t[5]+=u,t[6]+=l,t[7]+=c},e}();e.exports.RawSha256=r})),i.register("cZl6p",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.uint32ArrayFrom=e.exports.numToUint8=e.exports.isEmptyData=e.exports.convertToBuffer=void 0;var n=i("lpS1n");Object.defineProperty(e.exports,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=i("1M09v");Object.defineProperty(e.exports,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var o=i("4qBt2");Object.defineProperty(e.exports,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var a=i("3jvIW");Object.defineProperty(e.exports,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})})),i.register("lpS1n",(function(e,t){var n=i("bqBrJ").Buffer;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.convertToBuffer=void 0;var r=i("gAxfE"),o=void 0!==n&&n.from?function(e){return n.from(e,"utf8")}:r.fromUtf8;e.exports.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)}})),i.register("bqBrJ",(function(t,n){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var r,o;e(t.exports,"Buffer",(()=>r),(e=>r=e)),e(t.exports,"INSPECT_MAX_BYTES",(()=>o),(e=>o=e));var a=i("9Et26"),s=i("bDLoS"),u="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;r=d,o=50;var l=2147483647;function c(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,d.prototype),t}function d(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return f(e,t,n)}function f(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!d.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|y(e,t),r=c(n),o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return g(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return g(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return d.from(r,t,n);var o=function(e){if(d.isBuffer(e)){var t=0|v(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||G(e.length)?c(0):m(e);if("Buffer"===e.type&&Array.isArray(e.data))return m(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return d.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return h(e),c(e<0?0:0|v(e))}function m(e){for(var t=e.length<0?0:0|v(e.length),n=c(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function g(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,d.prototype),r}function v(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|e}function y(e,t){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(o)return r?-1:z(e).length;t=(""+t).toLowerCase(),o=!0}}function b(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return U(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=d.from(t,r)),d.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i<s;i++)if(l(e,i)===l(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var d=!0,f=0;f<u;f++)if(l(e,i+f)!==l(t,f)){d=!1;break}if(d)return i}return-1}function E(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(G(s))return a;e[n+a]=s}return a}function A(e,t,n,r){return W(z(t,e.length-n),e,n,r)}function _(e,t,n,r){return W(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function I(e,t,n,r){return W(V(t),e,n,r)}function k(e,t,n,r){return W(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,u,l=e[o],c=null,d=l>239?4:l>223?3:l>191?2:1;if(o+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&l)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=d}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}(r)}d.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),d.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(e,t,n){return f(e,t,n)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(e,t,n){return function(e,t,n){return h(e),e<=0?c(e):void 0!==t?"string"==typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}(e,t,n)},d.allocUnsafe=function(e){return p(e)},d.allocUnsafeSlow=function(e){return p(e)},d.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==d.prototype},d.compare=function(e,t){if(H(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),H(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(e)||!d.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},d.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=d.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(H(i,Uint8Array))o+i.length>r.length?d.from(i).copy(r,o):Uint8Array.prototype.set.call(r,i,o);else{if(!d.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o)}o+=i.length}return r},d.byteLength=y,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},d.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},d.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):b.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",t=o;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(d.prototype[u]=d.prototype.inspect),d.prototype.compare=function(e,t,n,r,o){if(H(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n),c=0;c<s;++c)if(u[c]!==l[c]){i=u[c],a=l[c];break}return i<a?-1:a<i?1:0},d.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},d.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},d.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)},d.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":case"latin1":case"binary":return _(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function U(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=q[e[i]];return o}function F(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,o,i){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,4),s.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,8),s.write(e,t,n,r,52,8),n+8}d.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,d.prototype),r},d.prototype.readUintLE=d.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},d.prototype.readUintBE=d.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},d.prototype.readUint8=d.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},d.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),s.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),s.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),s.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),s.read(this,e,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},d.prototype.writeUint8=d.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(!d.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},d.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=d.isBuffer(e)?e:d.from(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var B=/[^+/0-9A-Za-z-_]/g;function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}var q=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()})),i.register("9Et26",(function(t,n){var r,o;e(t.exports,"toByteArray",(()=>r),(e=>r=e)),e(t.exports,"fromByteArray",(()=>o),(e=>o=e)),r=function(e){var t,n,r=d(e),o=r[0],i=r[1],u=new s(function(e,t,n){return 3*(t+n)/4-n}(0,o,i)),l=0,c=i>0?o-4:o;for(n=0;n<c;n+=4)t=a[e.charCodeAt(n)]<<18|a[e.charCodeAt(n+1)]<<12|a[e.charCodeAt(n+2)]<<6|a[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===i&&(t=a[e.charCodeAt(n)]<<2|a[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===i&&(t=a[e.charCodeAt(n)]<<10|a[e.charCodeAt(n+1)]<<4|a[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},o=function(e){for(var t,n=e.length,r=n%3,o=[],a=16383,s=0,u=n-r;s<u;s+=a)o.push(f(e,s,s+a>u?u:s+a));1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],a=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=u.length;l<c;++l)i[l]=u[l],a[u.charCodeAt(l)]=l;function d(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function f(e,t,n){for(var r,o,a=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63})),i.register("bDLoS",(function(t,n){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var r,o;e(t.exports,"read",(()=>r),(e=>r=e)),e(t.exports,"write",(()=>o),(e=>o=e)),r=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,l=u>>1,c=-7,d=n?o-1:0,f=n?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+d],d+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)},o=function(e,t,n,r,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,d=c>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}})),i.register("gAxfE",(function(t,n){e(t.exports,"fromUtf8",(()=>a));var r=i("gx0RP"),o=i("cOjs6");const a=e=>"function"==typeof TextEncoder?(0,o.fromUtf8)(e):(0,r.fromUtf8)(e)})),i.register("gx0RP",(function(t,n){e(t.exports,"fromUtf8",(()=>r)),e(t.exports,"toUtf8",(()=>o));const r=e=>{const t=[];for(let n=0,r=e.length;n<r;n++){const r=e.charCodeAt(n);if(r<128)t.push(r);else if(r<2048)t.push(r>>6|192,63&r|128);else if(n+1<e.length&&55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))){const o=65536+((1023&r)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(r>>12|224,r>>6&63|128,63&r|128)}return Uint8Array.from(t)},o=e=>{let t="";for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r<128)t+=String.fromCharCode(r);else if(192<=r&&r<224){const o=e[++n];t+=String.fromCharCode((31&r)<<6|63&o)}else if(240<=r&&r<365){const o="%"+[r,e[++n],e[++n],e[++n]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(o)}else t+=String.fromCharCode((15&r)<<12|(63&e[++n])<<6|63&e[++n])}return t}})),i.register("cOjs6",(function(t,n){function r(e){return(new TextEncoder).encode(e)}function o(e){return new TextDecoder("utf-8").decode(e)}e(t.exports,"fromUtf8",(()=>r)),e(t.exports,"toUtf8",(()=>o))})),i.register("1M09v",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isEmptyData=void 0,e.exports.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}})),i.register("4qBt2",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.numToUint8=void 0,e.exports.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}})),i.register("3jvIW",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.uint32ArrayFrom=void 0,e.exports.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return Uint32Array.from(e)}})),i.register("c8uPw",(function(e,n){!function(r){var o=n&&!n.nodeType&&n,i=e&&!e.nodeType&&e,a="object"==typeof t&&t;a.global!==a&&a.window!==a&&a.self!==a||(r=a);var s,u,l=2147483647,c=36,d=1,f=26,h=38,p=700,m=72,g=128,v="-",y=/^xn--/,b=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,S={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=c-d,E=Math.floor,A=String.fromCharCode;function _(e){throw new RangeError(S[e])}function I(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+I((e=e.replace(w,".")).split("."),t).join(".")}function x(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function T(e){return I(e,(function(e){var t="";return e>65535&&(t+=A((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=A(e)})).join("")}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function O(e,t,n){var r=0;for(e=n?E(e/p):e>>1,e+=E(e/t);e>C*f>>1;r+=c)e=E(e/C);return E(r+(C+1)*e/(e+h))}function N(e){var t,n,r,o,i,a,s,u,h,p,y,b=[],w=e.length,S=0,C=g,A=m;for((n=e.lastIndexOf(v))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&_("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<w;){for(i=S,a=1,s=c;o>=w&&_("invalid-input"),((u=(y=e.charCodeAt(o++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:c)>=c||u>E((l-S)/a))&&_("overflow"),S+=u*a,!(u<(h=s<=A?d:s>=A+f?f:s-A));s+=c)a>E(l/(p=c-h))&&_("overflow"),a*=p;A=O(S-i,t=b.length+1,0==i),E(S/t)>l-C&&_("overflow"),C+=E(S/t),S%=t,b.splice(S++,0,C)}return T(b)}function U(e){var t,n,r,o,i,a,s,u,h,p,y,b,w,S,C,I=[];for(b=(e=x(e)).length,t=g,n=0,i=m,a=0;a<b;++a)(y=e[a])<128&&I.push(A(y));for(r=o=I.length,o&&I.push(v);r<b;){for(s=l,a=0;a<b;++a)(y=e[a])>=t&&y<s&&(s=y);for(s-t>E((l-n)/(w=r+1))&&_("overflow"),n+=(s-t)*w,t=s,a=0;a<b;++a)if((y=e[a])<t&&++n>l&&_("overflow"),y==t){for(u=n,h=c;!(u<(p=h<=i?d:h>=i+f?f:h-i));h+=c)C=u-p,S=c-p,I.push(A(P(p+C%S,0))),u=E(C/S);I.push(A(P(u,0))),i=O(n,w,r==o),n=0,++r}++n,++t}return I.join("")}if(s={version:"1.4.1",ucs2:{decode:x,encode:T},decode:N,encode:U,toASCII:function(e){return k(e,(function(e){return b.test(e)?"xn--"+U(e):e}))},toUnicode:function(e){return k(e,(function(e){return y.test(e)?N(e.slice(4).toLowerCase()):e}))}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return s}));else if(o&&i)if(e.exports==o)i.exports=s;else for(u in s)s.hasOwnProperty(u)&&(o[u]=s[u]);else r.punycode=s}(this)})),i.register("6e4ym",(function(e,t){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,o,i){t=t||"&",o=o||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;c<l;++c){var d,f,h,p,m=e[c].replace(s,"%20"),g=m.indexOf(o);g>=0?(d=m.substr(0,g),f=m.substr(g+1)):(d=m,f=""),h=decodeURIComponent(d),p=decodeURIComponent(f),n(a,h)?r(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}})),i.register("9Pzgh",(function(e,t){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,a,s){return t=t||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e?o(i(e),(function(i){var s=encodeURIComponent(n(i))+a;return r(e[i])?o(e[i],(function(e){return s+encodeURIComponent(n(e))})).join(t):s+encodeURIComponent(n(e[i]))})).join(t):s?encodeURIComponent(n(s))+a+encodeURIComponent(n(e)):""};var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}})),i.register("aBigv",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Sha256=void 0;var n=i("kkLGi"),r=i("eUkfM"),o=i("iLAal"),a=i("WqLQx"),s=i("gkoPG"),u=i("kVhRH"),l=function(){function e(e){(0,a.supportsWebCrypto)((0,u.locateWindow)())?this.hash=new r.Sha256(e):(0,s.isMsWindow)((0,u.locateWindow)())?this.hash=new n.Sha256(e):this.hash=new o.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}();e.exports.Sha256=l})),i.register("kkLGi",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Sha256=void 0;var n=i("asD1H"),r=i("3tk8r"),o=i("hbpSZ"),a=i("kVhRH"),s=function(){function e(e){e?(this.operation=function(e){return new Promise((function(t,n){var o=(0,a.locateWindow)().msCrypto.subtle.importKey("raw",u(e),r.SHA_256_HMAC_ALGO,!1,["sign"]);o.oncomplete=function(){o.result&&t(o.result),n(new Error("ImportKey completed without importing key."))},o.onerror=function(){n(new Error("ImportKey failed to import key."))}}))}(e).then((function(e){return(0,a.locateWindow)().msCrypto.subtle.sign(r.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve((0,a.locateWindow)().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var t=this;(0,n.isEmptyData)(e)||(this.operation=this.operation.then((function(n){return n.onerror=function(){t.operation=Promise.reject(new Error("Error encountered updating hash"))},n.process(u(e)),n})),this.operation.catch((function(){})))},e.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(t,n){e.onerror=function(){n(new Error("Error encountered finalizing hash"))},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),n(new Error("Error encountered finalizing hash"))},e.finish()}))}))},e}();function u(e){return"string"==typeof e?(0,o.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}e.exports.Sha256=s})),i.register("asD1H",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isEmptyData=void 0,e.exports.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}})),i.register("3tk8r",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.EMPTY_DATA_SHA_256=e.exports.SHA_256_HMAC_ALGO=e.exports.SHA_256_HASH=void 0,e.exports.SHA_256_HASH={name:"SHA-256"},e.exports.SHA_256_HMAC_ALGO={name:"HMAC",hash:e.exports.SHA_256_HASH},e.exports.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])})),i.register("hbpSZ",(function(t,n){e(t.exports,"fromUtf8",(()=>a));var r=i("7VLnb"),o=i("6M84l");const a=e=>"function"==typeof TextEncoder?(0,o.fromUtf8)(e):(0,r.fromUtf8)(e)})),i.register("7VLnb",(function(t,n){e(t.exports,"fromUtf8",(()=>r)),e(t.exports,"toUtf8",(()=>o));const r=e=>{const t=[];for(let n=0,r=e.length;n<r;n++){const r=e.charCodeAt(n);if(r<128)t.push(r);else if(r<2048)t.push(r>>6|192,63&r|128);else if(n+1<e.length&&55296==(64512&r)&&56320==(64512&e.charCodeAt(n+1))){const o=65536+((1023&r)<<10)+(1023&e.charCodeAt(++n));t.push(o>>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(r>>12|224,r>>6&63|128,63&r|128)}return Uint8Array.from(t)},o=e=>{let t="";for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r<128)t+=String.fromCharCode(r);else if(192<=r&&r<224){const o=e[++n];t+=String.fromCharCode((31&r)<<6|63&o)}else if(240<=r&&r<365){const o="%"+[r,e[++n],e[++n],e[++n]].map((e=>e.toString(16))).join("%");t+=decodeURIComponent(o)}else t+=String.fromCharCode((15&r)<<12|(63&e[++n])<<6|63&e[++n])}return t}})),i.register("6M84l",(function(t,n){function r(e){return(new TextEncoder).encode(e)}function o(e){return new TextDecoder("utf-8").decode(e)}e(t.exports,"fromUtf8",(()=>r)),e(t.exports,"toUtf8",(()=>o))})),i.register("kVhRH",(function(t,n){e(t.exports,"locateWindow",(()=>o));const r={};function o(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:r}})),i.register("eUkfM",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Sha256=void 0;var n=i("jnxnd"),r=i("3tk8r"),o=i("kVhRH"),a=function(){function e(e){this.toHash=new Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,i){(0,o.locateWindow)().crypto.subtle.importKey("raw",(0,n.convertToBuffer)(e),r.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,i)})),this.key.catch((function(){})))}return e.prototype.update=function(e){if(!(0,n.isEmptyData)(e)){var t=(0,n.convertToBuffer)(e),r=new Uint8Array(this.toHash.byteLength+t.byteLength);r.set(this.toHash,0),r.set(t,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return(0,o.locateWindow)().crypto.subtle.sign(r.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):(0,n.isEmptyData)(this.toHash)?Promise.resolve(r.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return(0,o.locateWindow)().crypto.subtle.digest(r.SHA_256_HASH,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e}();e.exports.Sha256=a})),i.register("jnxnd",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.uint32ArrayFrom=e.exports.numToUint8=e.exports.isEmptyData=e.exports.convertToBuffer=void 0;var n=i("dF44t");Object.defineProperty(e.exports,"convertToBuffer",{enumerable:!0,get:function(){return n.convertToBuffer}});var r=i("hvsEY");Object.defineProperty(e.exports,"isEmptyData",{enumerable:!0,get:function(){return r.isEmptyData}});var o=i("lL2sr");Object.defineProperty(e.exports,"numToUint8",{enumerable:!0,get:function(){return o.numToUint8}});var a=i("d4K4x");Object.defineProperty(e.exports,"uint32ArrayFrom",{enumerable:!0,get:function(){return a.uint32ArrayFrom}})})),i.register("dF44t",(function(e,t){var n=i("bqBrJ").Buffer;Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.convertToBuffer=void 0;var r=i("hbpSZ"),o=void 0!==n&&n.from?function(e){return n.from(e,"utf8")}:r.fromUtf8;e.exports.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)}})),i.register("hvsEY",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isEmptyData=void 0,e.exports.isEmptyData=function(e){return"string"==typeof e?0===e.length:0===e.byteLength}})),i.register("lL2sr",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.numToUint8=void 0,e.exports.numToUint8=function(e){return new Uint8Array([(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])}})),i.register("d4K4x",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.uint32ArrayFrom=void 0,e.exports.uint32ArrayFrom=function(e){if(!Array.from){for(var t=new Uint32Array(e.length);0<e.length;)t[0]=e[0];return t}return Uint32Array.from(e)}})),i.register("iLAal",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),(0,i("5p1Rg").__exportStar)(i("65Cyg"),e.exports)})),i.register("WqLQx",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),i("6dvFr").__exportStar(i("lHUgx"),e.exports)})),i.register("6dvFr",(function(t,n){e(t.exports,"__awaiter",(()=>r)),e(t.exports,"__generator",(()=>o)),e(t.exports,"__exportStar",(()=>i));function r(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function o(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function i(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}})),i.register("lHUgx",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.supportsZeroByteGCM=e.exports.supportsSubtleCrypto=e.exports.supportsSecureRandom=e.exports.supportsWebCrypto=void 0;var n=i("6dvFr"),r=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function o(e){return"object"==typeof e&&"object"==typeof e.crypto&&"function"==typeof e.crypto.getRandomValues}function a(e){return e&&r.every((function(t){return"function"==typeof e[t]}))}e.exports.supportsWebCrypto=function(e){return!(!o(e)||"object"!=typeof e.crypto.subtle)&&a(e.crypto.subtle)},e.exports.supportsSecureRandom=o,e.exports.supportsSubtleCrypto=a,e.exports.supportsZeroByteGCM=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t;return n.__generator(this,(function(n){switch(n.label){case 0:if(!a(e))return[2,!1];n.label=1;case 1:return n.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=n.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return[2,16===n.sent().byteLength];case 4:return n.sent(),[2,!1];case 5:return[2]}}))}))}})),i.register("gkoPG",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var n=i("eiwVw");n.__exportStar(i("kwfVC"),e.exports),n.__exportStar(i("7cHvw"),e.exports),n.__exportStar(i("d5Zms"),e.exports),n.__exportStar(i("jIVfZ"),e.exports),n.__exportStar(i("8jKKL"),e.exports)})),i.register("eiwVw",(function(t,n){e(t.exports,"__exportStar",(()=>r));function r(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}})),i.register("kwfVC",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),i.register("7cHvw",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),i.register("d5Zms",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),i.register("jIVfZ",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0})})),i.register("8jKKL",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.isMsWindow=void 0;var n=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];e.exports.isMsWindow=function(e){if(function(e){return"MSInputMethodContext"in e&&"msCrypto"in e}(e)&&void 0!==e.msCrypto.subtle){var t=e.msCrypto,r=t.getRandomValues,o=t.subtle;return n.map((function(e){return o[e]})).concat(r).every((function(e){return"function"==typeof e}))}return!1}})),i.register("9kLsK",(function(e,t){})),i.register("43aOD",(function(t,n){var r;function o(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},u=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:u,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var l in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(u())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(l,t.headers[l]);o.send(t.body||null)}))}r=t.exports,Object.defineProperty(r,"__esModule",{value:!0,configurable:!0}),e(t.exports,"default",(()=>o))})),i.register("40w2c",(function(t,n){
/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var r,o,a;e(t.exports,"Fragment",(()=>r),(e=>r=e)),e(t.exports,"jsx",(()=>o),(e=>o=e)),e(t.exports,"jsxs",(()=>a),(e=>a=e)),i("1oyVN");var s=i("8dQZc"),u=60103;if(r=60107,"function"==typeof Symbol&&Symbol.for){var l=Symbol.for;u=l("react.element"),r=l("react.fragment")}var c=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d=Object.prototype.hasOwnProperty,f={key:!0,ref:!0,__self:!0,__source:!0};function h(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)d.call(t,r)&&!f.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:u,type:e,key:i,ref:a,props:o,_owner:c.current}}o=h,a=h})),i.register("1oyVN",(function(e,t){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in i=Object(arguments[u]))r.call(i,l)&&(s[l]=i[l]);if(n){a=n(i);for(var c=0;c<a.length;c++)o.call(i,a[c])&&(s[a[c]]=i[a[c]])}}return s}})),i.register("8dQZc",(function(e,t){e.exports=React})),i.register("dWzsw",(function(e,t){var n=i("2B6zj"),r=i("2vQ6t"),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,s=a&&a.exports===o?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||r;e.exports=u})),i.register("2B6zj",(function(e,t){var n=i("2Wr6y"),r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")();e.exports=o})),i.register("2Wr6y",(function(e,n){var r="object"==typeof t&&t&&t.Object===Object&&t;e.exports=r})),i.register("2vQ6t",(function(e,t){e.exports=function(){return!1}})),i.register("5fgva",(function(e,t){var n=i("2Wr6y"),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r&&n.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s})),i.register("4dyIY",(function(e,t){var n=i("2B6zj"),r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}})),i.register("j6ios",(function(t,n){
/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var r;e(t.exports,"useSyncExternalStoreWithSelector",(()=>r),(e=>r=e));var o=i("8dQZc"),a=i("4x9RK");var s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=a.useSyncExternalStore,l=o.useRef,c=o.useEffect,d=o.useMemo,f=o.useDebugValue;r=function(e,t,n,r,o){var i=l(null);if(null===i.current){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=d((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==o&&a.hasValue){var t=a.value;if(o(t,e))return u=t}return u=e}if(t=u,s(i,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(i=e,u=n)}var i,u,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var h=u(e,i[0],i[1]);return c((function(){a.hasValue=!0,a.value=h}),[h]),f(h),h}})),i.register("4x9RK",(function(e,t){"use strict";e.exports=i("ls4f2")})),i.register("ls4f2",(function(t,n){
/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var r;e(t.exports,"useSyncExternalStore",(()=>r),(e=>r=e));var o=i("8dQZc");var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useState,u=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue;function d(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=s({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return l((function(){o.value=n,o.getSnapshot=t,d(o)&&i({inst:o})}),[e,n,t]),u((function(){return d(o)&&i({inst:o}),e((function(){d(o)&&i({inst:o})}))}),[e]),c(n),n};r=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:f})),i.register("1sdKR",(function(t,n){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var r,o;e(t.exports,"Buffer",(()=>r),(e=>r=e)),e(t.exports,"INSPECT_MAX_BYTES",(()=>o),(e=>o=e));var a=i("8MpZU"),s=i("29R5P"),u="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;r=d,o=50;var l=2147483647;function c(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,d.prototype),t}function d(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return p(e)}return f(e,t,n)}function f(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!d.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|y(e,t),r=c(n),o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return g(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return g(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return d.from(r,t,n);var o=function(e){if(d.isBuffer(e)){var t=0|v(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||G(e.length)?c(0):m(e);if("Buffer"===e.type&&Array.isArray(e.data))return m(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return d.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e){return h(e),c(e<0?0:0|v(e))}function m(e){for(var t=e.length<0?0:0|v(e.length),n=c(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function g(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,d.prototype),r}function v(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|e}function y(e,t){if(d.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(o)return r?-1:z(e).length;t=(""+t).toLowerCase(),o=!0}}function b(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return U(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=d.from(t,r)),d.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i<s;i++)if(l(e,i)===l(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(n+u>s&&(n=s-u),i=n;i>=0;i--){for(var d=!0,f=0;f<u;f++)if(l(e,i+f)!==l(t,f)){d=!1;break}if(d)return i}return-1}function E(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(G(s))return a;e[n+a]=s}return a}function A(e,t,n,r){return W(z(t,e.length-n),e,n,r)}function _(e,t,n,r){return W(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function I(e,t,n,r){return W(V(t),e,n,r)}function k(e,t,n,r){return W(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,u,l=e[o],c=null,d=l>239?4:l>223?3:l>191?2:1;if(o+d<=n)switch(d){case 1:l<128&&(c=l);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&l)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=d}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}(r)}d.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),d.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(d.prototype,"parent",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.buffer}}),Object.defineProperty(d.prototype,"offset",{enumerable:!0,get:function(){if(d.isBuffer(this))return this.byteOffset}}),d.poolSize=8192,d.from=function(e,t,n){return f(e,t,n)},Object.setPrototypeOf(d.prototype,Uint8Array.prototype),Object.setPrototypeOf(d,Uint8Array),d.alloc=function(e,t,n){return function(e,t,n){return h(e),e<=0?c(e):void 0!==t?"string"==typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}(e,t,n)},d.allocUnsafe=function(e){return p(e)},d.allocUnsafeSlow=function(e){return p(e)},d.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==d.prototype},d.compare=function(e,t){if(H(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),H(t,Uint8Array)&&(t=d.from(t,t.offset,t.byteLength)),!d.isBuffer(e)||!d.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},d.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=d.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var i=e[n];if(H(i,Uint8Array))o+i.length>r.length?d.from(i).copy(r,o):Uint8Array.prototype.set.call(r,i,o);else{if(!d.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o)}o+=i.length}return r},d.byteLength=y,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)w(this,t,t+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)w(this,t,t+3),w(this,t+1,t+2);return this},d.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)w(this,t,t+7),w(this,t+1,t+6),w(this,t+2,t+5),w(this,t+3,t+4);return this},d.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?T(this,0,e):b.apply(this,arguments)},d.prototype.toLocaleString=d.prototype.toString,d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",t=o;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},u&&(d.prototype[u]=d.prototype.inspect),d.prototype.compare=function(e,t,n,r,o){if(H(e,Uint8Array)&&(e=d.from(e,e.offset,e.byteLength)),!d.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n),c=0;c<s;++c)if(u[c]!==l[c]){i=u[c],a=l[c];break}return i<a?-1:a<i?1:0},d.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},d.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},d.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)},d.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":case"latin1":case"binary":return _(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function N(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function U(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=q[e[i]];return o}function F(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length-1;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,o,i){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,4),s.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,8),s.write(e,t,n,r,52,8),n+8}d.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,d.prototype),r},d.prototype.readUintLE=d.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},d.prototype.readUintBE=d.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},d.prototype.readUint8=d.prototype.readUInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),this[e]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(e,t){return e>>>=0,t||R(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},d.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||R(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},d.prototype.readInt8=function(e,t){return e>>>=0,t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt16BE=function(e,t){e>>>=0,t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},d.prototype.readInt32LE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return e>>>=0,t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return e>>>=0,t||R(e,4,this.length),s.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return e>>>=0,t||R(e,4,this.length),s.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return e>>>=0,t||R(e,8,this.length),s.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return e>>>=0,t||R(e,8,this.length),s.read(this,e,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},d.prototype.writeUintBE=d.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},d.prototype.writeUint8=d.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},d.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);M(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},d.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},d.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},d.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},d.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},d.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},d.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},d.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},d.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},d.prototype.copy=function(e,t,n,r){if(!d.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},d.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!d.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var o=e.charCodeAt(0);("utf8"===r&&o<128||"latin1"===r)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=d.isBuffer(e)?e:d.from(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var B=/[^+/0-9A-Za-z-_]/g;function z(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function G(e){return e!=e}var q=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()})),i.register("8MpZU",(function(t,n){var r,o;e(t.exports,"toByteArray",(()=>r),(e=>r=e)),e(t.exports,"fromByteArray",(()=>o),(e=>o=e)),r=function(e){var t,n,r=d(e),o=r[0],i=r[1],u=new s(function(e,t,n){return 3*(t+n)/4-n}(0,o,i)),l=0,c=i>0?o-4:o;for(n=0;n<c;n+=4)t=a[e.charCodeAt(n)]<<18|a[e.charCodeAt(n+1)]<<12|a[e.charCodeAt(n+2)]<<6|a[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===i&&(t=a[e.charCodeAt(n)]<<2|a[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===i&&(t=a[e.charCodeAt(n)]<<10|a[e.charCodeAt(n+1)]<<4|a[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},o=function(e){for(var t,n=e.length,r=n%3,o=[],a=16383,s=0,u=n-r;s<u;s+=a)o.push(f(e,s,s+a>u?u:s+a));1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],a=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,c=u.length;l<c;++l)i[l]=u[l],a[u.charCodeAt(l)]=l;function d(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function f(e,t,n){for(var r,o,a=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63})),i.register("29R5P",(function(t,n){
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var r,o;e(t.exports,"read",(()=>r),(e=>r=e)),e(t.exports,"write",(()=>o),(e=>o=e)),r=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<<s)-1,l=u>>1,c=-7,d=n?o-1:0,f=n?-1:1,h=e[t+d];for(d+=f,i=h&(1<<-c)-1,h>>=-c,c+=s;c>0;i=256*i+e[t+d],d+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)},o=function(e,t,n,r,o,i){var a,s,u,l=8*i-o-1,c=(1<<l)-1,d=c>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+d>=1?f/u:f*Math.pow(2,1-d))*u>=2&&(a++,u/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*u-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=p,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)};function s(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(){return u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)};function l(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function p(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}var m,g,v={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5};(g=m||(m={})).DEBUG="DEBUG",g.ERROR="ERROR",g.INFO="INFO",g.WARN="WARN",g.VERBOSE="VERBOSE";var y=function(){function e(e,t){void 0===t&&(t=m.WARN),this.name=e,this.level=t,this._pluggables=[]}return e.prototype._padding=function(e){return e<10?"0"+e:""+e},e.prototype._ts=function(){var e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()},e.prototype.configure=function(e){return e?(this._config=e,this._config):this._config},e.prototype._log=function(t){for(var n,r,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var a=this.level;e.LOG_LEVEL&&(a=e.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(a=window.LOG_LEVEL);var s=v[a];if(v[t]>=s){var u=console.log.bind(console);t===m.ERROR&&console.error&&(u=console.error.bind(console)),t===m.WARN&&console.warn&&(u=console.warn.bind(console));var l="["+t+"] "+this._ts()+" "+this.name,c="";if(1===o.length&&"string"==typeof o[0])u(c=l+" - "+o[0]);else if(1===o.length)c=l+" "+o[0],u(l,o[0]);else if("string"==typeof o[0]){var d=o.slice(1);1===d.length&&(d=d[0]),c=l+" - "+o[0]+" "+d,u(l+" - "+o[0],d)}else c=l+" "+o,u(l,o);try{for(var h=f(this._pluggables),p=h.next();!p.done;p=h.next()){var g=p.value,y={message:c,timestamp:Date.now()};g.pushLogs([y])}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,p([m.INFO],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,p([m.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,p([m.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,p([m.ERROR],e))},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,p([m.DEBUG],e))},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._log.apply(this,p([m.VERBOSE],e))},e.prototype.addPluggable=function(e){e&&"Logging"===e.getCategoryName()&&(this._pluggables.push(e),e.configure(this._config))},e.prototype.listPluggables=function(){return this._pluggables},e.LOG_LEVEL=null,e}(),b=new y("Amplify"),w=function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Notifications=null,this.Logger=y,this.ServiceWorker=null}return e.prototype.register=function(e){b.debug("component registered in amplify",e),this._components.push(e),"function"==typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):b.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),b.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=h(e,2),r=(n[0],n[1]);Object.keys(r).forEach((function(e){t._modules[e]&&(r[e]=t._modules[e])}))})),this._components.map((function(e){e.configure(t._config)})),this._config):this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"==typeof e.getCategory&&this._components.map((function(t){t.addPluggable&&"function"==typeof t.addPluggable&&t.addPluggable(e)}))},e}(),S=new w,C="aws-amplify/5.0.14",E={userAgent:C+" js",product:"",navigator:null,isReactNative:!1};if("undefined"!=typeof navigator&&navigator.product)if(E.product=navigator.product||"",E.navigator=navigator||null,"ReactNative"===navigator.product)E.userAgent=C+" react-native",E.isReactNative=!0;else E.userAgent=C+" js",E.isReactNative=!1;var A=function(e){return""+E.userAgent+(e||"")},_=new y("ClientDevice_Browser");function I(){return"undefined"==typeof window?{}:function(){if("undefined"==typeof window)return _.warn("No window object available to get browser client info"),{};var e=window.navigator;if(!e)return _.warn("No navigator object available to get browser client info"),{};var t=e.platform,n=e.product,r=e.vendor,o=e.userAgent,i=e.language,a=function(e){var t=/.+(Opera[\s[A-Z]*|OPR[\sA-Z]*)\/([0-9\.]+).*/i.exec(e);if(t)return{type:t[1],version:t[2]};var n=/.+(Trident|Edge)\/([0-9\.]+).*/i.exec(e);if(n)return{type:n[1],version:n[2]};var r=/.+(Chrome|Firefox|FxiOS)\/([0-9\.]+).*/i.exec(e);if(r)return{type:r[1],version:r[2]};var o=/.+(Safari)\/([0-9\.]+).*/i.exec(e);if(o)return{type:o[1],version:o[2]};var i=/.+(AppleWebKit)\/([0-9\.]+).*/i.exec(e);if(i)return{type:i[1],version:i[2]};var a=/.*([A-Z]+)\/([0-9\.]+).*/i.exec(e);return a?{type:a[1],version:a[2]}:{type:"",version:""}}(o),s=(u=/\(([A-Za-z\s].*)\)/.exec((new Date).toString()),u&&u[1]||"");var u;return{platform:t,make:n||r,model:a.type,version:a.version,appVersion:[a.type,a.version].join("/"),language:i,timezone:s}}()}!function(){function e(){}e.clientInfo=function(){return I()},e.dimension=function(){return"undefined"==typeof window?(_.warn("No window object available to get browser client info"),{width:320,height:320}):{width:window.innerWidth,height:window.innerHeight}}}();var k=new y("Hub"),x="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default";var T=function(){function e(e){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}return e.prototype._remove=function(e,t){if(e instanceof RegExp){var n=this.patterns.find((function(t){return t.pattern.source===e.source}));if(!n)return void k.warn("No listeners for "+e);this.patterns=p(this.patterns.filter((function(e){return e!==n})))}else{var r=this.listeners[e];if(!r)return void k.warn("No listeners for "+e);this.listeners[e]=p(r.filter((function(e){return e.callback!==t})))}},e.prototype.remove=function(e,t){this._remove(e,t)},e.prototype.dispatch=function(e,t,n,r){(void 0===n&&(n=""),this.protectedChannels.indexOf(e)>-1)&&(r===x||k.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences"));var o={channel:e,payload:u({},t),source:n,patternInfo:[]};try{this._toListeners(o)}catch(e){k.error(e)}},e.prototype.listen=function(e,t,n){var r,o=this;if(void 0===n&&(n="noname"),function(e){return void 0!==e.onHubCapsule}(t))k.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),r=t.onHubCapsule.bind(t);else{if("function"!=typeof t)throw new Error("No callback supplied to Hub");r=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:r});else{var i=this.listeners[e];i||(i=[],this.listeners[e]=i),i.push({name:n,callback:r})}return function(){o._remove(e,r)}},e.prototype._toListeners=function(e){var t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach((function(r){k.debug("Dispatching to "+t+" with ",n);try{r.callback(e)}catch(e){k.error(e)}})),this.patterns.length>0){if(!n.message)return void k.warn("Cannot perform pattern matching without a message key");var o=n.message;this.patterns.forEach((function(t){var n=o.match(t.pattern);if(n){var r=h(n).slice(1),i=u(u({},e),{patternInfo:r});try{t.callback(i)}catch(e){k.error(e)}}}))}},e}(),P=new T("__default__"),O=new y("I18n"),N=function(){function e(e){this._options=null,this._lang=null,this._dict={},this._options=Object.assign({},e),this._lang=this._options.language,!this._lang&&"undefined"!=typeof window&&window&&window.navigator&&(this._lang=window.navigator.language),O.debug(this._lang)}return e.prototype.setLanguage=function(e){this._lang=e},e.prototype.get=function(e,t){if(void 0===t&&(t=void 0),!this._lang)return void 0!==t?t:e;var n=this._lang,r=this.getByLanguage(e,n);return r||(n.indexOf("-")>0&&(r=this.getByLanguage(e,n.split("-")[0])),r||(void 0!==t?t:e))},e.prototype.getByLanguage=function(e,t,n){if(void 0===n&&(n=null),!t)return n;var r=this._dict[t];return r?r[e]:n},e.prototype.putVocabulariesForLanguage=function(e,t){var n=this._dict[e];n||(n=this._dict[e]={}),Object.assign(n,t)},e.prototype.putVocabularies=function(e){var t=this;Object.keys(e).map((function(n){t.putVocabulariesForLanguage(n,e[n])}))},e}(),U=new y("I18n"),F=null,R=null,M=function(){function e(){}return e.configure=function(t){return U.debug("configure I18n"),t?(F=Object.assign({},F,t.I18n||t),e.createInstance(),F):F},e.getModuleName=function(){return"I18n"},e.createInstance=function(){U.debug("create I18n instance"),R||(R=new N(F))},e.setLanguage=function(t){return e.checkConfig(),R.setLanguage(t)},e.get=function(t,n){return e.checkConfig()?R.get(t,n):void 0===n?t:n},e.putVocabulariesForLanguage=function(t,n){return e.checkConfig(),R.putVocabulariesForLanguage(t,n)},e.putVocabularies=function(t){return e.checkConfig(),R.putVocabularies(t)},e.checkConfig=function(){return R||(R=new N(F)),!0},e}();S.register(M);var D,j,L,B=D={};function z(){throw new Error("setTimeout has not been defined")}function V(){throw new Error("clearTimeout has not been defined")}function W(e){if(j===setTimeout)return setTimeout(e,0);if((j===z||!j)&&setTimeout)return j=setTimeout,setTimeout(e,0);try{return j(e,0)}catch(t){try{return j.call(null,e,0)}catch(t){return j.call(this,e,0)}}}!function(){try{j="function"==typeof setTimeout?setTimeout:z}catch(e){j=z}try{L="function"==typeof clearTimeout?clearTimeout:V}catch(e){L=V}}();var H,G=[],q=!1,K=-1;function Z(){q&&H&&(q=!1,H.length?G=H.concat(G):K=-1,G.length&&Y())}function Y(){if(!q){var e=W(Z);q=!0;for(var t=G.length;t;){for(H=G,G=[];++K<t;)H&&H[K].run();K=-1,t=G.length}H=null,q=!1,function(e){if(L===clearTimeout)return clearTimeout(e);if((L===V||!L)&&clearTimeout)return L=clearTimeout,clearTimeout(e);try{return L(e)}catch(t){try{return L.call(null,e)}catch(t){return L.call(this,e)}}}(e)}}function Q(e,t){this.fun=e,this.array=t}function $(){}B.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];G.push(new Q(e,t)),1!==G.length||q||W(Y)},Q.prototype.run=function(){this.fun.apply(null,this.array)},B.title="browser",B.browser=!0,B.env={},B.argv=[],B.version="",B.versions={},B.on=$,B.addListener=$,B.once=$,B.off=$,B.removeListener=$,B.removeAllListeners=$,B.emit=$,B.prependListener=$,B.prependOnceListener=$,B.listeners=function(e){return[]},B.binding=function(e){throw new Error("process.binding is not supported")},B.cwd=function(){return"/"},B.chdir=function(e){throw new Error("process.chdir is not supported")},B.umask=function(){return 0};for(var J,X,ee=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,o=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return o.isFullfilled=function(){return r},o.isPending=function(){return t},o.isRejected=function(){return n},o},te=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==D&&null!=D.versions&&null!=D.versions.node}},ne=i("iLAal"),re={},oe={},ie=0;ie<256;ie++){var ae=ie.toString(16).toLowerCase();1===ae.length&&(ae="0"+ae),re[ie]=ae,oe[ae]=ie}function se(e){for(var t="",n=0;n<e.byteLength;n++)t+=re[e[n]];return t}var ue=i("c8uPw"),le={};function ce(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}le={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}},J=_e,X=function(e){le.isString(e)&&(e=_e(e));return e instanceof ce?e.format():ce.prototype.format.call(e)};var de,fe,he=/^([a-z0-9.+-]+:)/i,pe=/:[0-9]*$/,me=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ge=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),ve=["'"].concat(ge),ye=["%","/","?",";","#"].concat(ve),be=["/","?","#"],we=/^[+a-z0-9A-Z_-]{0,63}$/,Se=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ce={javascript:!0,"javascript:":!0},Ee={javascript:!0,"javascript:":!0},Ae={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function _e(e,t,n){if(e&&le.isObject(e)&&e instanceof ce)return e;var r=new ce;return r.parse(e,t,n),r}de=i("6e4ym"),fe=i("9Pzgh"),ce.prototype.parse=function(e,t,n){if(!le.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=-1!==r&&r<e.indexOf("#")?"?":"#",i=e.split(o);i[0]=i[0].replace(/\\/g,"/");var a=e=i.join(o);if(a=a.trim(),!n&&1===e.split("#").length){var s=me.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?de(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=he.exec(a);if(u){var l=(u=u[0]).toLowerCase();this.protocol=l,a=a.substr(u.length)}if(n||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var c="//"===a.substr(0,2);!c||u&&Ee[u]||(a=a.substr(2),this.slashes=!0)}if(!Ee[u]&&(c||u&&!Ae[u])){for(var d,f,h=-1,p=0;p<be.length;p++){-1!==(m=a.indexOf(be[p]))&&(-1===h||m<h)&&(h=m)}-1!==(f=-1===h?a.lastIndexOf("@"):a.lastIndexOf("@",h))&&(d=a.slice(0,f),a=a.slice(f+1),this.auth=decodeURIComponent(d)),h=-1;for(p=0;p<ye.length;p++){var m;-1!==(m=a.indexOf(ye[p]))&&(-1===h||m<h)&&(h=m)}-1===h&&(h=a.length),this.host=a.slice(0,h),a=a.slice(h),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var v=this.hostname.split(/\./),y=(p=0,v.length);p<y;p++){var b=v[p];if(b&&!b.match(we)){for(var w="",S=0,C=b.length;S<C;S++)b.charCodeAt(S)>127?w+="x":w+=b[S];if(!w.match(we)){var E=v.slice(0,p),A=v.slice(p+1),_=b.match(Se);_&&(E.push(_[1]),A.unshift(_[2])),A.length&&(a="/"+A.join(".")+a),this.hostname=E.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=ue.toASCII(this.hostname));var I=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+I,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!Ce[l])for(p=0,y=ve.length;p<y;p++){var x=ve[p];if(-1!==a.indexOf(x)){var T=encodeURIComponent(x);T===x&&(T=escape(x)),a=a.split(x).join(T)}}var P=a.indexOf("#");-1!==P&&(this.hash=a.substr(P),a=a.slice(0,P));var O=a.indexOf("?");if(-1!==O?(this.search=a.substr(O),this.query=a.substr(O+1),t&&(this.query=de(this.query)),a=a.slice(0,O)):t&&(this.search="",this.query={}),a&&(this.pathname=a),Ae[l]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){I=this.pathname||"";var N=this.search||"";this.path=I+N}return this.href=this.format(),this},ce.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&le.isObject(this.query)&&Object.keys(this.query).length&&(i=fe(this.query));var a=this.search||i&&"?"+i||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||Ae[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+r},ce.prototype.resolve=function(e){return this.resolveObject(_e(e,!1,!0)).format()},ce.prototype.resolveObject=function(e){if(le.isString(e)){var t=new ce;t.parse(e,!1,!0),e=t}for(var n=new ce,r=Object.keys(this),o=0;o<r.length;o++){var i=r[o];n[i]=this[i]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(n[u]=e[u])}return Ae[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Ae[e.protocol]){for(var l=Object.keys(e),c=0;c<l.length;c++){var d=l[c];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||Ee[e.protocol])n.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),n.pathname=f.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var h=n.pathname||"",p=n.search||"";n.path=h+p}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=g||m||n.host&&e.pathname,y=v,b=n.pathname&&n.pathname.split("/")||[],w=(f=e.pathname&&e.pathname.split("/")||[],n.protocol&&!Ae[n.protocol]);if(w&&(n.hostname="",n.port=null,n.host&&(""===b[0]?b[0]=n.host:b.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),v=v&&(""===f[0]||""===b[0])),g)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,b=f;else if(f.length)b||(b=[]),b.pop(),b=b.concat(f),n.search=e.search,n.query=e.query;else if(!le.isNullOrUndefined(e.search)){if(w)n.hostname=n.host=b.shift(),(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.host=n.hostname=_.shift());return n.search=e.search,n.query=e.query,le.isNull(n.pathname)&&le.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=b.slice(-1)[0],C=(n.host||e.host||b.length>1)&&("."===S||".."===S)||""===S,E=0,A=b.length;A>=0;A--)"."===(S=b[A])?b.splice(A,1):".."===S?(b.splice(A,1),E++):E&&(b.splice(A,1),E--);if(!v&&!y)for(;E--;E)b.unshift("..");!v||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),C&&"/"!==b.join("/").substr(-1)&&b.push("");var _,I=""===b[0]||b[0]&&"/"===b[0].charAt(0);w&&(n.hostname=n.host=I?"":b.length?b.shift():"",(_=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=_.shift(),n.host=n.hostname=_.shift()));return(v=v||n.host&&b.length)&&!I&&b.unshift(""),b.length?n.pathname=b.join("/"):(n.pathname=null,n.path=null),le.isNull(n.pathname)&&le.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},ce.prototype.parseHost=function(){var e=this.host,t=pe.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Ie={clockOffset:0,getDateWithClockOffset:function(){return Ie.clockOffset?new Date((new Date).getTime()+Ie.clockOffset):new Date},getClockOffset:function(){return Ie.clockOffset},getHeaderStringFromDate:function(e){return void 0===e&&(e=Ie.getDateWithClockOffset()),e.toISOString().replace(/[:\-]|\.\d{3}/g,"")},getDateFromHeaderString:function(e){var t=h(e.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/),7),n=t[1],r=t[2],o=t[3],i=t[4],a=t[5],s=t[6];return new Date(Date.UTC(Number(n),Number(r)-1,Number(o),Number(i),Number(a),Number(s)))},isClockSkewed:function(e){return Math.abs(e.getTime()-Ie.getDateWithClockOffset().getTime())>=3e5},isClockSkewError:function(e){if(!e.response||!e.response.headers)return!1;var t=e.response.headers;return Boolean(["BadRequestException","InvalidSignatureException"].includes(t["x-amzn-errortype"])&&(t.date||t.Date))},setClockOffset:function(e){Ie.clockOffset=e}},ke=new y("Signer"),xe="AWS4-HMAC-SHA256",Te=function(e,t){var n=new(0,ne.Sha256)(e);return n.update(t),n.digestSync()},Pe=function(e){var t=e||"",n=new(0,ne.Sha256);return n.update(t),se(n.digestSync())},Oe=function(e){return Object.keys(e).map((function(e){return e.toLowerCase()})).sort().join(";")},Ne=function(e){var t,n,r=J(e.url);return[e.method||"/",encodeURIComponent(r.pathname).replace(/%2F/gi,"/"),(n=r.query,n&&0!==n.length?n.split("&").map((function(e){var t=e.split("=");if(1===t.length)return e;var n=t[1].replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}));return t[0]+"="+n})).sort((function(e,t){var n=e.split("=")[0],r=t.split("=")[0];return n===r?e<t?-1:1:n<r?-1:1})).join("&"):""),(t=e.headers,t&&0!==Object.keys(t).length?Object.keys(t).map((function(e){return{key:e.toLowerCase(),value:t[e]?t[e].trim().replace(/\s+/g," "):""}})).sort((function(e,t){return e.key<t.key?-1:1})).map((function(e){return e.key+":"+e.value})).join("\n")+"\n":""),Oe(e.headers),Pe(e.data)].join("\n")},Ue=function(e){var t=(J(e.url).host.match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===t[1]&&(t=t.reverse()),{service:e.service||t[0],region:e.region||t[1]}},Fe=function(e,t,n){return[e,t,n,"aws4_request"].join("/")},Re=function(e,t,n,r){return[e,n,r,Pe(t)].join("\n")},Me=function(e,t,n){ke.debug(n);var r=Te("AWS4"+e,t),o=Te(r,n.region),i=Te(o,n.service);return Te(i,"aws4_request")},De=function(e,t){return se(Te(e,t))},je=(function(){function e(){}e.sign=function(e,t,n){if(void 0===n&&(n=null),e.headers=e.headers||{},e.body&&!e.data)throw new Error('The attribute "body" was found on the request object. Please use the attribute "data" instead.');var r=Ie.getDateWithClockOffset().toISOString().replace(/[:\-]|\.\d{3}/g,""),o=r.substr(0,8),i=J(e.url);e.headers.host=i.host,e.headers["x-amz-date"]=r,t.session_token&&(e.headers["X-Amz-Security-Token"]=t.session_token);var a=Ne(e);ke.debug(a);var s=n||Ue(e),u=Fe(o,s.region,s.service),l=Re(xe,a,r,u),c=Me(t.secret_key,o,s),d=De(c,l),f=function(e,t,n,r,o){return[e+" Credential="+t+"/"+n,"SignedHeaders="+r,"Signature="+o].join(", ")}(xe,t.access_key,u,Oe(e.headers),d);return e.headers.Authorization=f,e},e.signUrl=function(e,t,n,r){var o="object"==typeof e?e.url:e,i="object"==typeof e?e.method:"GET",a="object"==typeof e?e.body:void 0,s=Ie.getDateWithClockOffset().toISOString().replace(/[:\-]|\.\d{3}/g,""),c=s.substr(0,8),d=J(o,!0,!0),f=(d.search,l(d,["search"])),h={host:f.host},p=n||Ue({url:X(f)}),m=p.region,g=p.service,v=Fe(c,m,g),y=t.session_token&&"iotdevicegateway"!==g,b=u(u(u({"X-Amz-Algorithm":xe,"X-Amz-Credential":[t.access_key,v].join("/"),"X-Amz-Date":s.substr(0,16)},y?{"X-Amz-Security-Token":""+t.session_token}:{}),r?{"X-Amz-Expires":""+r}:{}),{"X-Amz-SignedHeaders":Object.keys(h).join(",")}),w=Ne({method:i,url:X(u(u({},f),{query:u(u({},f.query),b)})),headers:h,data:a}),S=Re(xe,w,s,v),C=Me(t.secret_key,c,{region:m,service:g}),E=De(C,S),A=u({"X-Amz-Signature":E},t.session_token&&{"X-Amz-Security-Token":t.session_token});return X({protocol:f.protocol,slashes:!0,hostname:f.hostname,port:f.port,pathname:f.pathname,query:u(u(u({},f.query),b),A)})}}(),new y("Parser")),Le=function(e){var t,n={};if(e.aws_mobile_analytics_app_id){var r={AWSPinpoint:{appId:e.aws_mobile_analytics_app_id,region:e.aws_mobile_analytics_app_region}};n.Analytics=r}return(e.aws_cognito_identity_pool_id||e.aws_user_pools_id)&&(n.Auth={userPoolId:e.aws_user_pools_id,userPoolWebClientId:e.aws_user_pools_web_client_id,region:e.aws_cognito_region,identityPoolId:e.aws_cognito_identity_pool_id,identityPoolRegion:e.aws_cognito_region,mandatorySignIn:"enable"===e.aws_mandatory_sign_in,signUpVerificationMethod:e.aws_cognito_sign_up_verification_method||"code"}),t=e.aws_user_files_s3_bucket?{AWSS3:{bucket:e.aws_user_files_s3_bucket,region:e.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:e.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:e?e.Storage||e:{},e.Logging&&(n.Logging=u(u({},e.Logging),{region:e.aws_project_region})),e.geo&&(n.Geo=Object.assign({},e.geo),e.geo.amazon_location_service&&(n.Geo={AmazonLocationService:e.geo.amazon_location_service})),n.Analytics=Object.assign({},n.Analytics,e.Analytics),n.Auth=Object.assign({},n.Auth,e.Auth),n.Storage=Object.assign({},t),n.Logging=Object.assign({},n.Logging,e.Logging),je.debug("parse config",e,"to amplifyconfig",n),n},Be={},ze=function(){function e(){}return e.setItem=function(e,t){return Be[e]=t,Be[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(Be,e)?Be[e]:void 0},e.removeItem=function(e){return delete Be[e]},e.clear=function(){return Be={}},e}(),Ve=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=ze}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),We=new y("Util"),He=function(e){function t(t){var n=e.call(this,t)||this;return n.nonRetryable=!0,n}return s(t,e),t}(Error),Ge=function(e){return e&&e.nonRetryable};var qe=3e5;var Ke=function(e,t,n,r){return void 0===n&&(n=qe),function(e,t,n,r){return c(this,void 0,void 0,(function(){var o=this;return d(this,(function(i){if("function"!=typeof e)throw Error("functionToRetry must be a function");return[2,new Promise((function(i,a){return c(o,void 0,void 0,(function(){var o,s,u,l,c,f,h;return d(this,(function(m){switch(m.label){case 0:o=0,s=!1,l=function(){},r&&r.then((function(){s=!0,clearTimeout(u),l()})),f=function(){var r,f,h,m;return d(this,(function(d){switch(d.label){case 0:o++,We.debug(e.name+" attempt #"+o+" with this vars: "+JSON.stringify(t)),d.label=1;case 1:return d.trys.push([1,3,,7]),r={},f=i,[4,e.apply(void 0,p(t))];case 2:return[2,(r.value=f.apply(void 0,[d.sent()]),r)];case 3:return h=d.sent(),c=h,We.debug("error on "+e.name,h),Ge(h)?(We.debug(e.name+" non retryable error",h),[2,{value:a(h)}]):(m=n(o,t,h),We.debug(e.name+" retrying in "+m+" ms"),!1===m||s?[2,{value:a(h)}]:[3,4]);case 4:return[4,new Promise((function(e){l=e,u=setTimeout(l,m)}))];case 5:d.sent(),d.label=6;case 6:return[3,7];case 7:return[2]}}))},m.label=1;case 1:return s?[3,3]:[5,f()];case 2:return"object"==typeof(h=m.sent())?[2,h.value]:[3,1];case 3:return a(c),[2]}}))}))}))]}))}))}(e,t,function(e){return void 0===e&&(e=qe),function(t){var n=100*Math.pow(2,t)+100*Math.random();return!(n>e)&&n}}(n),r)},Ze=new y("CognitoCredentials"),Ye=new Promise((function(e,t){return te().isBrowser?(window.gapi&&window.gapi.auth2?window.gapi.auth2:null)?(Ze.debug("google api already loaded"),e()):void setTimeout((function(){return e()}),2e3):(Ze.debug("not in the browser, directly resolved"),e())})),Qe=function(){function e(){this.initialized=!1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTokenImpl=this._refreshGoogleTokenImpl.bind(this)}return e.prototype.refreshGoogleToken=function(){return c(this,void 0,void 0,(function(){return d(this,(function(e){switch(e.label){case 0:return this.initialized?[3,2]:(Ze.debug("need to wait for the Google SDK loaded"),[4,Ye]);case 1:e.sent(),this.initialized=!0,Ze.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshGoogleTokenImpl()]}}))}))},e.prototype._refreshGoogleTokenImpl=function(){var e=null;return te().isBrowser&&(e=window.gapi&&window.gapi.auth2?window.gapi.auth2:null),e?new Promise((function(t,n){e.getAuthInstance().then((function(e){e||(Ze.debug("google Auth undefined"),n(new He("google Auth undefined")));var r=e.currentUser.get();r.isSignedIn()?(Ze.debug("refreshing the google access token"),r.reloadAuthResponse().then((function(e){var n=e.id_token,r=e.expires_at;t({token:n,expires_at:r})})).catch((function(e){e&&"network_error"===e.error?n("Network error reloading google auth response"):n(new He("Failed to reload google auth response"))}))):n(new He("User is not signed in with Google"))})).catch((function(e){Ze.debug("Failed to refresh google token",e),n(new He("Failed to refresh google token"))}))})):(Ze.debug("no gapi auth2 available"),Promise.reject("no gapi auth2 available"))},e}(),$e=new y("CognitoCredentials"),Je=new Promise((function(e,t){return te().isBrowser?window.FB?($e.debug("FB SDK already loaded"),e()):void setTimeout((function(){return e()}),2e3):($e.debug("not in the browser, directly resolved"),e())})),Xe=function(){function e(){this.initialized=!1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFacebookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return e.prototype.refreshFacebookToken=function(){return c(this,void 0,void 0,(function(){return d(this,(function(e){switch(e.label){case 0:return this.initialized?[3,2]:($e.debug("need to wait for the Facebook SDK loaded"),[4,Je]);case 1:e.sent(),this.initialized=!0,$e.debug("finish waiting"),e.label=2;case 2:return[2,this._refreshFacebookTokenImpl()]}}))}))},e.prototype._refreshFacebookTokenImpl=function(){var e=null;if(te().isBrowser&&(e=window.FB),!e){var t="no fb sdk available";return $e.debug(t),Promise.reject(new He(t))}return new Promise((function(t,n){e.getLoginStatus((function(e){if(e&&e.authResponse){var r=e.authResponse,o=r.accessToken,i=1e3*r.expiresIn+(new Date).getTime();if(!o){a="the jwtToken is undefined";$e.debug(a),n(new He(a))}t({token:o,expires_at:i})}else{var a="no response from facebook when refreshing the jwt token";$e.debug(a),n(new He(a))}}),{scope:"public_profile,email"})}))},e}(),et=new Qe,tt=new Xe,nt=function(e,t){return nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},nt(e,t)};function rt(e,t){function n(){this.constructor=e}nt(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function ot(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function it(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function at(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var st=function(e,t){return st=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},st(e,t)};function ut(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}st(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lt=function(){return lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lt.apply(this,arguments)};function ct(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function dt(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}Object.create;function ft(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var ht,pt,mt,gt,vt,yt,bt,wt,St,Ct,Et,At,_t,It,kt,xt,Tt,Pt,Ot,Nt,Ut,Ft,Rt,Mt,Dt,jt,Lt,Bt,zt,Vt,Wt,Ht,Gt,qt,Kt,Zt,Yt,Qt,$t,Jt,Xt,en,tn,nn,rn,on,an,sn,un,ln,cn,dn,fn,hn,pn,mn,gn,vn,yn,bn,wn;Object.create;(pt=ht||(ht={})).AUTHENTICATED_ROLE="AuthenticatedRole",pt.DENY="Deny",(mt||(mt={})).filterSensitiveLog=function(e){return lt({},e)},(gt||(gt={})).filterSensitiveLog=function(e){return lt({},e)},(vt||(vt={})).filterSensitiveLog=function(e){return lt({},e)},(yt||(yt={})).filterSensitiveLog=function(e){return lt({},e)},(bt||(bt={})).filterSensitiveLog=function(e){return lt({},e)},(wt||(wt={})).filterSensitiveLog=function(e){return lt({},e)},(St||(St={})).filterSensitiveLog=function(e){return lt({},e)},(Ct||(Ct={})).filterSensitiveLog=function(e){return lt({},e)},(Et||(Et={})).filterSensitiveLog=function(e){return lt({},e)},(At||(At={})).filterSensitiveLog=function(e){return lt({},e)},(It=_t||(_t={})).ACCESS_DENIED="AccessDenied",It.INTERNAL_SERVER_ERROR="InternalServerError",(kt||(kt={})).filterSensitiveLog=function(e){return lt({},e)},(xt||(xt={})).filterSensitiveLog=function(e){return lt({},e)},(Tt||(Tt={})).filterSensitiveLog=function(e){return lt({},e)},(Pt||(Pt={})).filterSensitiveLog=function(e){return lt({},e)},(Ot||(Ot={})).filterSensitiveLog=function(e){return lt({},e)},(Nt||(Nt={})).filterSensitiveLog=function(e){return lt({},e)},(Ut||(Ut={})).filterSensitiveLog=function(e){return lt({},e)},(Ft||(Ft={})).filterSensitiveLog=function(e){return lt({},e)},(Rt||(Rt={})).filterSensitiveLog=function(e){return lt({},e)},(Mt||(Mt={})).filterSensitiveLog=function(e){return lt({},e)},(Dt||(Dt={})).filterSensitiveLog=function(e){return lt({},e)},(jt||(jt={})).filterSensitiveLog=function(e){return lt({},e)},(Lt||(Lt={})).filterSensitiveLog=function(e){return lt({},e)},(Bt||(Bt={})).filterSensitiveLog=function(e){return lt({},e)},(zt||(zt={})).filterSensitiveLog=function(e){return lt({},e)},(Wt=Vt||(Vt={})).CONTAINS="Contains",Wt.EQUALS="Equals",Wt.NOT_EQUAL="NotEqual",Wt.STARTS_WITH="StartsWith",(Ht||(Ht={})).filterSensitiveLog=function(e){return lt({},e)},(Gt||(Gt={})).filterSensitiveLog=function(e){return lt({},e)},(Kt=qt||(qt={})).RULES="Rules",Kt.TOKEN="Token",(Zt||(Zt={})).filterSensitiveLog=function(e){return lt({},e)},(Yt||(Yt={})).filterSensitiveLog=function(e){return lt({},e)},(Qt||(Qt={})).filterSensitiveLog=function(e){return lt({},e)},($t||($t={})).filterSensitiveLog=function(e){return lt({},e)},(Jt||(Jt={})).filterSensitiveLog=function(e){return lt({},e)},(Xt||(Xt={})).filterSensitiveLog=function(e){return lt({},e)},(en||(en={})).filterSensitiveLog=function(e){return lt({},e)},(tn||(tn={})).filterSensitiveLog=function(e){return lt({},e)},(nn||(nn={})).filterSensitiveLog=function(e){return lt({},e)},(rn||(rn={})).filterSensitiveLog=function(e){return lt({},e)},(on||(on={})).filterSensitiveLog=function(e){return lt({},e)},(an||(an={})).filterSensitiveLog=function(e){return lt({},e)},(sn||(sn={})).filterSensitiveLog=function(e){return lt({},e)},(un||(un={})).filterSensitiveLog=function(e){return lt({},e)},(ln||(ln={})).filterSensitiveLog=function(e){return lt({},e)},(cn||(cn={})).filterSensitiveLog=function(e){return lt({},e)},(dn||(dn={})).filterSensitiveLog=function(e){return lt({},e)},(fn||(fn={})).filterSensitiveLog=function(e){return lt({},e)},(hn||(hn={})).filterSensitiveLog=function(e){return lt({},e)},(pn||(pn={})).filterSensitiveLog=function(e){return lt({},e)},(mn||(mn={})).filterSensitiveLog=function(e){return lt({},e)},(gn||(gn={})).filterSensitiveLog=function(e){return lt({},e)},(vn||(vn={})).filterSensitiveLog=function(e){return lt({},e)},(yn||(yn={})).filterSensitiveLog=function(e){return lt({},e)},(bn||(bn={})).filterSensitiveLog=function(e){return lt({},e)},(wn||(wn={})).filterSensitiveLog=function(e){return lt({},e)};var Sn=function(){function e(e){this.statusCode=e.statusCode,this.headers=e.headers||{},this.body=e.body}return e.isInstance=function(e){if(!e)return!1;var t=e;return"number"==typeof t.statusCode&&"object"==typeof t.headers},e}();
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Cn=function(){return Cn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cn.apply(this,arguments)};function En(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}var An=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},e.prototype.clone=function(){var t,n=new e(Cn(Cn({},this),{headers:Cn({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce((function(e,n){var r,o=t[n];return Cn(Cn({},e),((r={})[n]=Array.isArray(o)?function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(En(arguments[t]));return e}(o):o,r))}),{}))),n},e}();var _n=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},r=JSON.stringify(Bn(e,t)),[2,rr(t,n,"/",void 0,r)]}))}))},In=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetId"},r=JSON.stringify(zn(e,t)),[2,rr(t,n,"/",void 0,r)]}))}))},kn=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r,o;return dt(this,(function(i){switch(i.label){case 0:return e.statusCode>=300?[2,xn(e,t)]:[4,or(e.body,t)];case 1:return n=i.sent(),{},r=Gn(n,t),o=lt({$metadata:tr(e)},r),[2,Promise.resolve(o)]}}))}))},xn=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,d,f,h,p,m,g;return dt(this,(function(v){switch(v.label){case 0:return r=[lt({},e)],g={},[4,or(e.body,t)];case 1:switch(n=lt.apply(void 0,r.concat([(g.body=v.sent(),g)])),i="UnknownError",i=ir(e,n.body),i){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return a=[{}],[4,On(n,t)];case 3:return o=lt.apply(void 0,[lt.apply(void 0,a.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 4:return s=[{}],[4,Nn(n,t)];case 5:return o=lt.apply(void 0,[lt.apply(void 0,s.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 6:return u=[{}],[4,Un(n,t)];case 7:return o=lt.apply(void 0,[lt.apply(void 0,u.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 8:return l=[{}],[4,Fn(n,t)];case 9:return o=lt.apply(void 0,[lt.apply(void 0,l.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 10:return c=[{}],[4,Mn(n,t)];case 11:return o=lt.apply(void 0,[lt.apply(void 0,c.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 12:return d=[{}],[4,Dn(n,t)];case 13:return o=lt.apply(void 0,[lt.apply(void 0,d.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 14:return f=[{}],[4,jn(n,t)];case 15:return o=lt.apply(void 0,[lt.apply(void 0,f.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 16:return h=[{}],[4,Ln(n,t)];case 17:return o=lt.apply(void 0,[lt.apply(void 0,h.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 18:p=n.body,i=p.code||p.Code||i,o=lt(lt({},p),{name:""+i,message:p.message||p.Message||i,$fault:"client",$metadata:tr(e)}),v.label=19;case 19:return m=o.message||o.Message||i,o.message=m,delete o.Message,[2,Promise.reject(Object.assign(new Error(m),o))]}}))}))},Tn=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r,o;return dt(this,(function(i){switch(i.label){case 0:return e.statusCode>=300?[2,Pn(e,t)]:[4,or(e.body,t)];case 1:return n=i.sent(),{},r=qn(n,t),o=lt({$metadata:tr(e)},r),[2,Promise.resolve(o)]}}))}))},Pn=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,d,f,h,p,m,g;return dt(this,(function(v){switch(v.label){case 0:return r=[lt({},e)],g={},[4,or(e.body,t)];case 1:switch(n=lt.apply(void 0,r.concat([(g.body=v.sent(),g)])),i="UnknownError",i=ir(e,n.body),i){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return a=[{}],[4,On(n,t)];case 3:return o=lt.apply(void 0,[lt.apply(void 0,a.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 4:return s=[{}],[4,Nn(n,t)];case 5:return o=lt.apply(void 0,[lt.apply(void 0,s.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 6:return u=[{}],[4,Fn(n,t)];case 7:return o=lt.apply(void 0,[lt.apply(void 0,u.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 8:return l=[{}],[4,Rn(n,t)];case 9:return o=lt.apply(void 0,[lt.apply(void 0,l.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 10:return c=[{}],[4,Mn(n,t)];case 11:return o=lt.apply(void 0,[lt.apply(void 0,c.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 12:return d=[{}],[4,Dn(n,t)];case 13:return o=lt.apply(void 0,[lt.apply(void 0,d.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 14:return f=[{}],[4,jn(n,t)];case 15:return o=lt.apply(void 0,[lt.apply(void 0,f.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 16:return h=[{}],[4,Ln(n,t)];case 17:return o=lt.apply(void 0,[lt.apply(void 0,h.concat([v.sent()])),{name:i,$metadata:tr(e)}]),[3,19];case 18:p=n.body,i=p.code||p.Code||i,o=lt(lt({},p),{name:""+i,message:p.message||p.Message||i,$fault:"client",$metadata:tr(e)}),v.label=19;case 19:return m=o.message||o.Message||i,o.message=m,delete o.Message,[2,Promise.reject(Object.assign(new Error(m),o))]}}))}))},On=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n=e.body,r=Hn(n,t),[2,lt({name:"ExternalServiceException",$fault:"client",$metadata:tr(e)},r)]}))}))},Nn=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n=e.body,r=Kn(n,t),[2,lt({name:"InternalErrorException",$fault:"server",$metadata:tr(e)},r)]}))}))},Un=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n=e.body,r=Zn(n,t),[2,lt({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:tr(e)},r)]}))}))},Fn=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n=e.body,r=Yn(n,t),[2,lt({name:"InvalidParameterException",$fault:"client",$metadata:tr(e)},r)]}))}))},Rn=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n=e.body,r=Qn(n,t),[2,lt({name:"LimitExceededException",$fault:"client",$metadata:tr(e)},r)]}))}))},Mn=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n=e.body,r=$n(n,t),[2,lt({name:"NotAuthorizedException",$fault:"client",$metadata:tr(e)},r)]}))}))},Dn=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n=e.body,r=Jn(n,t),[2,lt({name:"ResourceConflictException",$fault:"client",$metadata:tr(e)},r)]}))}))},jn=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n=e.body,r=Xn(n,t),[2,lt({name:"ResourceNotFoundException",$fault:"client",$metadata:tr(e)},r)]}))}))},Ln=function(e,t){return ct(void 0,void 0,void 0,(function(){var n,r;return dt(this,(function(o){return n=e.body,r=er(n,t),[2,lt({name:"TooManyRequestsException",$fault:"client",$metadata:tr(e)},r)]}))}))},Bn=function(e,t){return lt(lt(lt({},void 0!==e.CustomRoleArn&&null!==e.CustomRoleArn&&{CustomRoleArn:e.CustomRoleArn}),void 0!==e.IdentityId&&null!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.Logins&&null!==e.Logins&&{Logins:Vn(e.Logins,t)})},zn=function(e,t){return lt(lt(lt({},void 0!==e.AccountId&&null!==e.AccountId&&{AccountId:e.AccountId}),void 0!==e.IdentityPoolId&&null!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.Logins&&null!==e.Logins&&{Logins:Vn(e.Logins,t)})},Vn=function(e,t){return Object.entries(e).reduce((function(e,t){var n,r=ft(t,2),o=r[0],i=r[1];return null===i?e:lt(lt({},e),((n={})[o]=i,n))}),{})},Wn=function(e,t){return{AccessKeyId:void 0!==e.AccessKeyId&&null!==e.AccessKeyId?e.AccessKeyId:void 0,Expiration:void 0!==e.Expiration&&null!==e.Expiration?new Date(Math.round(1e3*e.Expiration)):void 0,SecretKey:void 0!==e.SecretKey&&null!==e.SecretKey?e.SecretKey:void 0,SessionToken:void 0!==e.SessionToken&&null!==e.SessionToken?e.SessionToken:void 0}},Hn=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Gn=function(e,t){return{Credentials:void 0!==e.Credentials&&null!==e.Credentials?Wn(e.Credentials):void 0,IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},qn=function(e,t){return{IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},Kn=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Zn=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Yn=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Qn=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},$n=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Jn=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},Xn=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},er=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},tr=function(e){var t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},nr=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},rr=function(e,t,n,r,o){return ct(void 0,void 0,void 0,(function(){var i,a,s,u,l,c;return dt(this,(function(d){switch(d.label){case 0:return[4,e.endpoint()];case 1:return i=d.sent(),a=i.hostname,s=i.protocol,u=void 0===s?"https":s,l=i.port,c={protocol:u,hostname:a,port:l,method:"POST",path:n,headers:t},void 0!==r&&(c.hostname=r),void 0!==o&&(c.body=o),[2,new An(c)]}}))}))},or=function(e,t){return function(e,t){return nr(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){return e.length?JSON.parse(e):{}}))},ir=function(e,t){var n,r,o=function(e){var t=e;return t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},i=(n=e.headers,r="x-amzn-errortype",Object.keys(n).find((function(e){return e.toLowerCase()===r.toLowerCase()})));return void 0!==i?o(e.headers[i]):void 0!==t.code?o(t.code):void 0!==t.__type?o(t.__type):""};var ar=function(){return ar=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ar.apply(this,arguments)};function sr(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function ur(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var lr=function(e,t){return function(n,r){return function(r){return sr(void 0,void 0,void 0,(function(){var o,i;return ur(this,(function(a){switch(a.label){case 0:return[4,n(r)];case 1:return o=a.sent().response,[4,t(o,e)];case 2:return i=a.sent(),[2,{response:o,output:i}]}}))}))}}},cr=function(e,t){return function(n,r){return function(r){return sr(void 0,void 0,void 0,(function(){var o;return ur(this,(function(i){switch(i.label){case 0:return[4,t(r.input,e)];case 1:return o=i.sent(),[2,n(ar(ar({},r),{request:o}))]}}))}))}}},dr={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},fr={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function hr(e,t,n){return{applyToStack:function(r){r.add(lr(e,n),dr),r.add(cr(e,t),fr)}}}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var pr=function(){return pr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pr.apply(this,arguments)};function mr(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function gr(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function vr(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(gr(arguments[t]));return e}var yr=function(){var e=[],t=[],n=new Set,r=function(n){return e.forEach((function(e){n.add(e.middleware,pr({},e))})),t.forEach((function(e){n.addRelativeTo(e.middleware,pr({},e))})),n},o=function(e){var t=[];return e.before.forEach((function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,vr(o(e)))})),t.push(e),e.after.reverse().forEach((function(e){0===e.before.length&&0===e.after.length?t.push(e):t.push.apply(t,vr(o(e)))})),t},i=function(){var n,r=[],i=[],a={};return e.forEach((function(e){var t=pr(pr({},e),{before:[],after:[]});t.name&&(a[t.name]=t),r.push(t)})),t.forEach((function(e){var t=pr(pr({},e),{before:[],after:[]});t.name&&(a[t.name]=t),i.push(t)})),i.forEach((function(e){if(e.toMiddleware){var t=a[e.toMiddleware];if(void 0===t)throw new Error(e.toMiddleware+" is not found when adding "+(e.name||"anonymous")+" middleware "+e.relation+" "+e.toMiddleware);"after"===e.relation&&t.after.push(e),"before"===e.relation&&t.before.push(e)}})),(n=r,n.sort((function(e,t){return br[t.step]-br[e.step]||wr[t.priority||"normal"]-wr[e.priority||"normal"]}))).map(o).reduce((function(e,t){return e.push.apply(e,vr(t)),e}),[]).map((function(e){return e.middleware}))},a={add:function(t,r){void 0===r&&(r={});var o=r.name,i=r.override,a=pr({step:"initialize",priority:"normal",middleware:t},r);if(o){if(n.has(o)){if(!i)throw new Error("Duplicate middleware name '"+o+"'");var s=e.findIndex((function(e){return e.name===o})),u=e[s];if(u.step!==a.step||u.priority!==a.priority)throw new Error('"'+o+'" middleware with '+u.priority+" priority in "+u.step+" step cannot be overridden by same-name middleware with "+a.priority+" priority in "+a.step+" step.");e.splice(s,1)}n.add(o)}e.push(a)},addRelativeTo:function(e,r){var o=r.name,i=r.override,a=pr({middleware:e},r);if(o){if(n.has(o)){if(!i)throw new Error("Duplicate middleware name '"+o+"'");var s=t.findIndex((function(e){return e.name===o})),u=t[s];if(u.toMiddleware!==a.toMiddleware||u.relation!==a.relation)throw new Error('"'+o+'" middleware '+u.relation+' "'+u.toMiddleware+'" middleware cannot be overridden by same-name middleware '+a.relation+' "'+a.toMiddleware+'" middleware.');t.splice(s,1)}n.add(o)}t.push(a)},clone:function(){return r(yr())},use:function(e){e.applyToStack(a)},remove:function(r){return"string"==typeof r?function(r){var o=!1,i=function(e){return!e.name||e.name!==r||(o=!0,n.delete(r),!1)};return e=e.filter(i),t=t.filter(i),o}(r):function(r){var o=!1,i=function(e){return e.middleware!==r||(o=!0,e.name&&n.delete(e.name),!1)};return e=e.filter(i),t=t.filter(i),o}(r)},removeByTag:function(r){var o=!1,i=function(e){var t=e.tags,i=e.name;return!t||!t.includes(r)||(i&&n.delete(i),o=!0,!1)};return e=e.filter(i),t=t.filter(i),o},concat:function(e){var t=r(yr());return t.use(e),t},applyToStack:r,resolve:function(e,t){var n,r;try{for(var o=mr(i().reverse()),a=o.next();!a.done;a=o.next()){e=(0,a.value)(e,t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return e}};return a},br={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},wr={high:3,normal:2,low:1},Sr=function(){function e(e){this.middlewareStack=yr(),this.config=e}return e.prototype.send=function(e,t,n){var r="function"!=typeof t?t:void 0,o="function"==typeof t?t:n,i=e.resolveMiddleware(this.middlewareStack,this.config,r);if(!o)return i(e).then((function(e){return e.output}));i(e).then((function(e){return o(null,e.output)}),(function(e){return o(e)})).catch((function(){}))},e.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},e}(),Cr=function(){this.middlewareStack=yr()};var Er=function(e,t){return Er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Er(e,t)};function Ar(e,t){function n(){this.constructor=e}Er(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function _r(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Ir(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_r(arguments[t]));return e}var kr=function(){var e=Object.getPrototypeOf(this).constructor,t=new(Function.bind.apply(String,Ir([null],arguments)));return Object.setPrototypeOf(t,e.prototype),t};kr.prototype=Object.create(String.prototype,{constructor:{value:kr,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(kr,String);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}Ar(t,e),t.prototype.deserializeJSON=function(){return JSON.parse(e.prototype.toString.call(this))},t.prototype.toJSON=function(){return e.prototype.toString.call(this)},t.fromObject=function(e){return e instanceof t?e:new t(e instanceof String||"string"==typeof e?e:JSON.stringify(e))}}(kr);var xr=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return ut(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(hr(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:Rt.filterSensitiveLog,outputFilterSensitiveLog:Dt.filterSensitiveLog},i=t.requestHandler;return r.resolve((function(e){return i.handle(e.request,n||{})}),o)},t.prototype.serialize=function(e,t){return _n(e,t)},t.prototype.deserialize=function(e,t){return kn(e,t)},t}(Cr),Tr=function(e){function t(t,n){void 0===n&&(n=!0);var r=e.call(this,t)||this;return r.tryNextLink=n,r}return rt(t,e),t}(Error);function Pr(e){return Promise.all(Object.keys(e).reduce((function(t,n){var r=e[n];return"string"==typeof r?t.push([n,r]):t.push(r().then((function(e){return[n,e]}))),t}),[])).then((function(e){return e.reduce((function(e,t){var n=at(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}))}function Or(e){var t=this;return function(){return ot(t,void 0,void 0,(function(){var t,n,r,o,i,a,s,u,l,c,d,f,h;return it(this,(function(p){switch(p.label){case 0:return c=(l=e.client).send,d=xr.bind,h={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},e.logins?[4,Pr(e.logins)]:[3,2];case 1:return f=p.sent(),[3,3];case 2:f=void 0,p.label=3;case 3:return[4,c.apply(l,[new(d.apply(xr,[void 0,(h.Logins=f,h)]))])];case 4:return t=p.sent().Credentials,n=void 0===t?function(){throw new Tr("Response from Amazon Cognito contained no credentials")}():t,r=n.AccessKeyId,o=void 0===r?function(){throw new Tr("Response from Amazon Cognito contained no access key ID")}():r,i=n.Expiration,a=n.SecretKey,s=void 0===a?function(){throw new Tr("Response from Amazon Cognito contained no secret key")}():a,u=n.SessionToken,[2,{identityId:e.identityId,accessKeyId:o,secretAccessKey:s,sessionToken:u,expiration:i}]}}))}))}}var Nr=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return ut(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(hr(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o={logger:t.logger,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:Lt.filterSensitiveLog,outputFilterSensitiveLog:Bt.filterSensitiveLog},i=t.requestHandler;return r.resolve((function(e){return i.handle(e.request,n||{})}),o)},t.prototype.serialize=function(e,t){return In(e,t)},t.prototype.deserialize=function(e,t){return Tn(e,t)},t}(Cr),Ur="IdentityIds",Fr=function(){function e(e){void 0===e&&(e="aws:cognito-identity-ids"),this.dbName=e}return e.prototype.getItem=function(e){return this.withObjectStore("readonly",(function(t){var n=t.get(e);return new Promise((function(e){n.onerror=function(){return e(null)},n.onsuccess=function(){return e(n.result?n.result.value:null)}}))})).catch((function(){return null}))},e.prototype.removeItem=function(e){return this.withObjectStore("readwrite",(function(t){var n=t.delete(e);return new Promise((function(e,t){n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e()}}))}))},e.prototype.setItem=function(e,t){return this.withObjectStore("readwrite",(function(n){var r=n.put({id:e,value:t});return new Promise((function(e,t){r.onerror=function(){return t(r.error)},r.onsuccess=function(){return e()}}))}))},e.prototype.getDb=function(){var e=self.indexedDB.open(this.dbName,1);return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)},e.onblocked=function(){n(new Error("Unable to access DB"))},e.onupgradeneeded=function(){var t=e.result;t.onerror=function(){n(new Error("Failed to create object store"))},t.createObjectStore(Ur,{keyPath:"id"})}}))},e.prototype.withObjectStore=function(e,t){return this.getDb().then((function(n){var r=n.transaction(Ur,e);return r.oncomplete=function(){return n.close()},new Promise((function(e,n){r.onerror=function(){return n(r.error)},e(t(r.objectStore(Ur)))})).catch((function(e){throw n.close(),e}))}))},e}(),Rr=new(function(){function e(e){void 0===e&&(e={}),this.store=e}return e.prototype.getItem=function(e){return e in this.store?this.store[e]:null},e.prototype.removeItem=function(e){delete this.store[e]},e.prototype.setItem=function(e,t){this.store[e]=t},e}());function Mr(e){var t=this,n=e.accountId,r=e.cache,o=void 0===r?"object"==typeof self&&self.indexedDB?new Fr:"object"==typeof window&&window.localStorage?window.localStorage:Rr:r,i=e.client,a=e.customRoleArn,s=e.identityPoolId,u=e.logins,l=e.userIdentifier,c=void 0===l?u&&0!==Object.keys(u).length?void 0:"ANONYMOUS":l,d=c?"aws:cognito-identity-credentials:"+s+":"+c:void 0,f=function(){return ot(t,void 0,void 0,(function(){var e,t,r,l,c,h,p,m,g;return it(this,(function(v){switch(v.label){case 0:return(t=d)?[4,o.getItem(d)]:[3,2];case 1:t=v.sent(),v.label=2;case 2:return(e=t)?[3,7]:(h=(c=i).send,p=Nr.bind,g={AccountId:n,IdentityPoolId:s},u?[4,Pr(u)]:[3,4]);case 3:return m=v.sent(),[3,5];case 4:m=void 0,v.label=5;case 5:return[4,h.apply(c,[new(p.apply(Nr,[void 0,(g.Logins=m,g)]))])];case 6:r=v.sent().IdentityId,l=void 0===r?function(){throw new Tr("Response from Amazon Cognito contained no identity ID")}():r,e=l,d&&Promise.resolve(o.setItem(d,e)).catch((function(){})),v.label=7;case 7:return[2,(f=Or({client:i,customRoleArn:a,logins:u,identityId:e}))()]}}))}))};return function(){return f().catch((function(e){return ot(t,void 0,void 0,(function(){return it(this,(function(t){throw d&&Promise.resolve(o.removeItem(d)).catch((function(){})),e}))}))}))}}var Dr;Dr=JSON.parse('{"name":"@aws-sdk/client-cognito-identity","description":"AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native","version":"3.6.1","scripts":{"clean":"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","prepublishOnly":"yarn build","pretest":"yarn build:cjs","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs","test:unit":"mocha **/cjs/**/*.spec.js","test:e2e":"mocha **/cjs/**/*.ispec.js && karma start karma.conf.js","test":"yarn test:unit","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json","build":"yarn build:cjs && yarn build:es","postbuild":"downlevel-dts types types/ts3.4"},"main":"./dist/cjs/index.js","types":"./types/index.d.ts","module":"./dist/es/index.js","browser":{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},"sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"3.6.1","@aws-sdk/credential-provider-node":"3.6.1","@aws-sdk/fetch-http-handler":"3.6.1","@aws-sdk/hash-node":"3.6.1","@aws-sdk/invalid-dependency":"3.6.1","@aws-sdk/middleware-content-length":"3.6.1","@aws-sdk/middleware-host-header":"3.6.1","@aws-sdk/middleware-logger":"3.6.1","@aws-sdk/middleware-retry":"3.6.1","@aws-sdk/middleware-serde":"3.6.1","@aws-sdk/middleware-signing":"3.6.1","@aws-sdk/middleware-stack":"3.6.1","@aws-sdk/middleware-user-agent":"3.6.1","@aws-sdk/node-config-provider":"3.6.1","@aws-sdk/node-http-handler":"3.6.1","@aws-sdk/protocol-http":"3.6.1","@aws-sdk/smithy-client":"3.6.1","@aws-sdk/types":"3.6.1","@aws-sdk/url-parser":"3.6.1","@aws-sdk/url-parser-native":"3.6.1","@aws-sdk/util-base64-browser":"3.6.1","@aws-sdk/util-base64-node":"3.6.1","@aws-sdk/util-body-length-browser":"3.6.1","@aws-sdk/util-body-length-node":"3.6.1","@aws-sdk/util-user-agent-browser":"3.6.1","@aws-sdk/util-user-agent-node":"3.6.1","@aws-sdk/util-utf8-browser":"3.6.1","@aws-sdk/util-utf8-node":"3.6.1","tslib":"^2.0.0"},"devDependencies":{"@aws-sdk/client-documentation-generator":"3.6.1","@aws-sdk/client-iam":"3.6.1","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^12.7.5","downlevel-dts":"0.7.0","jest":"^26.1.0","rimraf":"^3.0.0","typedoc":"^0.19.2","typescript":"~4.1.2"},"engines":{"node":">=10.0.0"},"typesVersions":{"<4.0":{"types/*":["types/ts3.4/*"]}},"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-cognito-identity"}}');var jr={};Object.defineProperty(jr,"__esModule",{value:!0}),jr.WebCryptoSha256=jr.Ie11Sha256=void 0;!function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}(i("aBigv"),jr);var Lr=i("kkLGi");Object.defineProperty(jr,"Ie11Sha256",{enumerable:!0,get:function(){return Lr.Sha256}});var Br=i("eUkfM");Object.defineProperty(jr,"WebCryptoSha256",{enumerable:!0,get:function(){return Br.Sha256}});function zr(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function Vr(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function Wr(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Hr(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Gr=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,qr)},qr=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()};function Kr(e){var t,n,r=[];try{for(var o=Hr(Object.keys(e).sort()),i=o.next();!i.done;i=o.next()){var a=i.value,s=e[a];if(a=Gr(a),Array.isArray(s))for(var u=0,l=s.length;u<l;u++)r.push(a+"="+Gr(s[u]));else{var c=a;(s||"string"==typeof s)&&(c+="="+Gr(s)),r.push(c)}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r.join("&")}for(var Zr=function(){function e(e){var t=(void 0===e?{}:e).requestTimeout;this.requestTimeout=t}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=(void 0===t?{}:t).abortSignal,r=this.requestTimeout;if(null==n?void 0:n.aborted){var o=new Error("Request aborted");return o.name="AbortError",Promise.reject(o)}var i=e.path;if(e.query){var a=Kr(e.query);a&&(i+="?"+a)}var s=e.port,u=e.method,l=e.protocol+"//"+e.hostname+(s?":"+s:"")+i,c={body:"GET"===u||"HEAD"===u?void 0:e.body,headers:new Headers(e.headers),method:u};"undefined"!=typeof AbortController&&(c.signal=n);var d,f=new Request(l,c),h=[fetch(f).then((function(e){var t,n,r=e.headers,o={};try{for(var i=Wr(r.entries()),a=i.next();!a.done;a=i.next()){var s=a.value;o[s[0]]=s[1]}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return void 0!==e.body?{response:new Sn({headers:o,statusCode:e.status,body:e.body})}:e.blob().then((function(t){return{response:new Sn({headers:o,statusCode:e.status,body:t})}}))})),(d=r,void 0===d&&(d=0),new Promise((function(e,t){d&&setTimeout((function(){var e=new Error("Request did not complete within "+d+" ms");e.name="TimeoutError",t(e)}),d)})))];return n&&h.push(new Promise((function(e,t){n.onabort=function(){var e=new Error("Request aborted");e.name="AbortError",t(e)}}))),Promise.race(h)},e}(),Yr={},Qr=new Array(64),$r=0,Jr="A".charCodeAt(0),Xr="Z".charCodeAt(0);$r+Jr<=Xr;$r++){var eo=String.fromCharCode($r+Jr);Yr[eo]=$r,Qr[$r]=eo}for($r=0,Jr="a".charCodeAt(0),Xr="z".charCodeAt(0);$r+Jr<=Xr;$r++){eo=String.fromCharCode($r+Jr);var to=$r+26;Yr[eo]=to,Qr[to]=eo}for($r=0;$r<10;$r++){Yr[$r.toString(10)]=$r+52;eo=$r.toString(10),to=$r+52;Yr[eo]=to,Qr[to]=eo}Yr["+"]=62,Qr[62]="+",Yr["/"]=63,Qr[63]="/";var no=6,ro=8,oo=63;function io(e){var t=e.length/4*3;"=="===e.substr(-2)?t-=2:"="===e.substr(-1)&&t--;for(var n=new ArrayBuffer(t),r=new DataView(n),o=0;o<e.length;o+=4){for(var i=0,a=0,s=o,u=o+3;s<=u;s++)"="!==e[s]?(i|=Yr[e[s]]<<(u-s)*no,a+=no):i>>=no;var l=o/4*3;i>>=a%ro;for(var c=Math.floor(a/ro),d=0;d<c;d++){var f=(c-d-1)*ro;r.setUint8(l+d,(i&255<<f)>>f)}}return new Uint8Array(n)}function ao(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var o=null!==(e=r.result)&&void 0!==e?e:"",i=o.indexOf(","),a=i>-1?i+1:o.length;t(o.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)}))}var so=function(){return so=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},so.apply(this,arguments)};function uo(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function lo(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function co(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function fo(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(co(arguments[t]));return e}var ho,po,mo=function(e){return function(t,n){return function(r){return uo(void 0,void 0,void 0,(function(){var o;return lo(this,(function(i){return(null===(o=null==e?void 0:e.retryStrategy)||void 0===o?void 0:o.mode)&&(n.userAgent=fo(n.userAgent||[],[["cfg/retry-mode",e.retryStrategy.mode]])),[2,e.retryStrategy.retry(t,r)]}))}))}}},go={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},vo=function(e){return{applyToStack:function(t){t.add(mo(e),go)}}},yo=500,bo="amz-sdk-invocation-id",wo="amz-sdk-request",So=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],Co=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],Eo=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],Ao=[500,502,503,504],_o=function(e){return void 0!==e.$retryable},Io=function(e){return So.includes(e.name)},ko=function(e){var t,n;return 429===(null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||Co.includes(e.name)||1==(null===(n=e.$retryable)||void 0===n?void 0:n.throttling)},xo=function(e){var t;return Eo.includes(e.name)||Ao.includes((null===(t=e.$metadata)||void 0===t?void 0:t.httpStatusCode)||0)},To={},Po="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(Po){var Oo=new Uint8Array(16);To=function(){return Po(Oo),Oo}}else{var No=new Array(16);To=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),No[t]=e>>>((3&t)<<3)&255;return No}}for(var Uo,Fo,Ro={},Mo=[],Do=0;Do<256;++Do)Mo[Do]=(Do+256).toString(16).substr(1);Ro=function(e,t){var n=t||0,r=Mo;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")};var jo=0,Lo=0;po=function(e,t,n){var r=t&&n||0,o=t||[],i=(e=e||{}).node||Uo,a=void 0!==e.clockseq?e.clockseq:Fo;if(null==i||null==a){var s=To();null==i&&(i=Uo=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Fo=16383&(s[6]<<8|s[7]))}var u=void 0!==e.msecs?e.msecs:(new Date).getTime(),l=void 0!==e.nsecs?e.nsecs:Lo+1,c=u-jo+(l-Lo)/1e4;if(c<0&&void 0===e.clockseq&&(a=a+1&16383),(c<0||u>jo)&&void 0===e.nsecs&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");jo=u,Lo=l,Fo=a;var d=(1e4*(268435455&(u+=122192928e5))+l)%4294967296;o[r++]=d>>>24&255,o[r++]=d>>>16&255,o[r++]=d>>>8&255,o[r++]=255&d;var f=u/4294967296*1e4&268435455;o[r++]=f>>>8&255,o[r++]=255&f,o[r++]=f>>>24&15|16,o[r++]=f>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var h=0;h<6;++h)o[r+h]=i[h];return t||Ro(o)};var Bo;var zo=Bo=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||To)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[r+i]=o[i];return t||Ro(o)};zo.v1=po,zo.v4=Bo,ho=zo;var Vo=function(e){var t=e,n=e,r=function(e){return"TimeoutError"===e.name?10:5},o=function(e){return r(e)<=n};return Object.freeze({hasRetryTokens:o,retrieveRetryTokens:function(e){if(!o(e))throw new Error("No retry token available");var t=r(e);return n-=t,t},releaseRetryTokens:function(e){n+=null!=e?e:1,n=Math.min(n,t)}})},Wo=function(e,t){return Math.floor(Math.min(2e4,Math.random()*Math.pow(2,t)*e))},Ho=function(e){return!!e&&(_o(e)||Io(e)||ko(e)||xo(e))},Go="standard",qo=function(){function e(e,t){var n,r,o;this.maxAttemptsProvider=e,this.mode=Go,this.retryDecider=null!==(n=null==t?void 0:t.retryDecider)&&void 0!==n?n:Ho,this.delayDecider=null!==(r=null==t?void 0:t.delayDecider)&&void 0!==r?r:Wo,this.retryQuota=null!==(o=null==t?void 0:t.retryQuota)&&void 0!==o?o:Vo(yo)}return e.prototype.shouldRetry=function(e,t,n){return t<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)},e.prototype.getMaxAttempts=function(){return uo(this,void 0,void 0,(function(){var e;return lo(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.maxAttemptsProvider()];case 1:return e=t.sent(),[3,3];case 2:return t.sent(),e=3,[3,3];case 3:return[2,e]}}))}))},e.prototype.retry=function(e,t){return uo(this,void 0,void 0,(function(){var n,r,o,i,a,s,u,l;return lo(this,(function(c){switch(c.label){case 0:return r=0,o=0,[4,this.getMaxAttempts()];case 1:i=c.sent(),a=t.request,An.isInstance(a)&&(a.headers[bo]=(0,ho.v4)()),s=function(){var s,l,c,d,f;return lo(this,(function(h){switch(h.label){case 0:return h.trys.push([0,2,,5]),An.isInstance(a)&&(a.headers[wo]="attempt="+(r+1)+"; max="+i),[4,e(t)];case 1:return s=h.sent(),l=s.response,c=s.output,u.retryQuota.releaseRetryTokens(n),c.$metadata.attempts=r+1,c.$metadata.totalRetryDelay=o,[2,{value:{response:l,output:c}}];case 2:return d=h.sent(),r++,u.shouldRetry(d,r,i)?(n=u.retryQuota.retrieveRetryTokens(d),f=u.delayDecider(ko(d)?500:100,r),o+=f,[4,new Promise((function(e){return setTimeout(e,f)}))]):[3,4];case 3:return h.sent(),[2,"continue"];case 4:throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=r,d.$metadata.totalRetryDelay=o,d;case 5:return[2]}}))},u=this,c.label=2;case 2:return[5,s()];case 3:return"object"==typeof(l=c.sent())?[2,l.value]:[3,2];case 4:return[2]}}))}))},e}(),Ko=function(e){var t=Zo(e.maxAttempts);return so(so({},e),{maxAttempts:t,retryStrategy:e.retryStrategy||new qo(t)})},Zo=function(e){if(void 0===e&&(e=3),"number"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};function Yo(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function Qo(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var $o={};$o=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var o=e.getVersionPrecision(t),i=e.getVersionPrecision(n),a=Math.max(o,i),s=0,u=e.map([t,n],(function(t){var n=a-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=a-Math.min(o,i)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]<u[1][a])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var o=e[n];if(t(o,n))return o}},e.assign=function(e){for(var t,n,r=e,o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(i));var s=function(){var e=i[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=i.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(91))&&r.__esModule?r:{default:r},i=n(18);function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){}var t;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t)},e.parse=function(e){return new o.default(e).getResult()},(t=[{key:"BROWSER_MAP",get:function(){return i.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return i.ENGINE_MAP}},{key:"OS_MAP",get:function(){return i.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return i.PLATFORMS_MAP}}])&&a(e,t),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=u(n(92)),o=u(n(93)),i=u(n(94)),a=u(n(95)),s=u(n(17));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,o={},i=0;if(Object.keys(e).forEach((function(t){var a=e[t];"string"==typeof a?(o[t]=a,i+=1):"object"==typeof a&&(n[t]=a,r+=1)})),r>0){var a=Object.keys(n),u=s.default.find(a,(function(e){return t.isOS(e)}));if(u){var l=this.satisfies(n[u]);if(void 0!==l)return l}var c=s.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var d=this.satisfies(n[c]);if(void 0!==d)return d}}if(i>0){var f=Object.keys(o),h=s.default.find(f,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(o[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),o=s.default.getBrowserTypeByAlias(r);return t&&o&&(r=o.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(o,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=l,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=o.default.getFirstMatch(i,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=o.default.getFirstMatch(i,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:i.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=o.default.getWindowsVersionName(t);return{name:i.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:i.OS_MAP.iOS},n=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=o.default.getMacOSVersionName(t),r={name:i.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:i.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=o.default.getAndroidVersionName(t),r={name:i.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:i.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:i.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:i.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:i.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:i.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:i.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:i.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:i.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:i.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:i.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,o=(r=n(17))&&r.__esModule?r:{default:r},i=n(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:i.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:i.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:i.ENGINE_MAP.Trident},n=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:i.ENGINE_MAP.Presto},n=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:i.ENGINE_MAP.Gecko},n=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:i.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:i.ENGINE_MAP.WebKit},n=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=a,e.exports=t.default}});var Jo=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e.charCodeAt(n);if(o<128)t.push(o);else if(o<2048)t.push(o>>6|192,63&o|128);else if(n+1<e.length&&55296==(64512&o)&&56320==(64512&e.charCodeAt(n+1))){var i=65536+((1023&o)<<10)+(1023&e.charCodeAt(++n));t.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else t.push(o>>12|224,o>>6&63|128,63&o|128)}return Uint8Array.from(t)},Xo=function(e){for(var t="",n=0,r=e.length;n<r;n++){var o=e[n];if(o<128)t+=String.fromCharCode(o);else if(192<=o&&o<224){var i=e[++n];t+=String.fromCharCode((31&o)<<6|63&i)}else if(240<=o&&o<365){var a="%"+[o,e[++n],e[++n],e[++n]].map((function(e){return e.toString(16)})).join("%");t+=decodeURIComponent(a)}else t+=String.fromCharCode((15&o)<<12|(63&e[++n])<<6|63&e[++n])}return t};function ei(e){return(new TextEncoder).encode(e)}function ti(e){return new TextDecoder("utf-8").decode(e)}var ni="cognito-identity.{region}.amazonaws.com",ri=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),oi=new Set(["cn-north-1","cn-northwest-1"]),ii=new Set(["us-iso-east-1"]),ai=new Set(["us-isob-east-1"]),si=new Set(["us-gov-east-1","us-gov-west-1"]);function ui(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function li(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function ci(e){var t,n,r={};if(e=e.replace(/^\?/,""))try{for(var o=ui(e.split("&")),i=o.next();!i.done;i=o.next()){var a=li(i.value.split("="),2),s=a[0],u=a[1],l=void 0===u?null:u;s=decodeURIComponent(s),l&&(l=decodeURIComponent(l)),s in r?Array.isArray(r[s])?r[s].push(l):r[s]=[r[s],l]:r[s]=l}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}var di,fi,hi,pi,mi={apiVersion:"2014-06-30",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"ap-northeast-1":n={hostname:"cognito-identity.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"cognito-identity.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"cognito-identity.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"cognito-identity.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"cognito-identity.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"cognito-identity.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"cognito-identity.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"cognito-identity.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"cognito-identity.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"cognito-identity.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"cognito-identity.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-1":n={hostname:"cognito-identity-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-east-2":n={hostname:"cognito-identity-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-west-1":n={hostname:"cognito-identity-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-2":n={hostname:"cognito-identity-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"sa-east-1":n={hostname:"cognito-identity.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"cognito-identity.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"cognito-identity.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":n={hostname:"cognito-identity.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":n={hostname:"cognito-identity.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"cognito-identity.us-west-2.amazonaws.com",partition:"aws"};break;default:ri.has(e)&&(n={hostname:ni.replace("{region}",e),partition:"aws"}),oi.has(e)&&(n={hostname:"cognito-identity.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),ii.has(e)&&(n={hostname:"cognito-identity.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),ai.has(e)&&(n={hostname:"cognito-identity.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),si.has(e)&&(n={hostname:"cognito-identity.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:ni.replace("{region}",e),partition:"aws"})}return Promise.resolve(lt({signingService:"cognito-identity"},n))},serviceId:"Cognito Identity",urlParser:function(e){var t,n=new URL(e),r=n.hostname,o=n.pathname,i=n.port,a=n.protocol,s=n.search;return s&&(t=ci(s)),{hostname:r,port:i?parseInt(i):void 0,protocol:a,path:o,query:t}}},gi=lt(lt({},mi),{runtime:"browser",base64Decoder:io,base64Encoder:function(e){for(var t="",n=0;n<e.length;n+=3){for(var r=0,o=0,i=n,a=Math.min(n+3,e.length);i<a;i++)r|=e[i]<<(a-i-1)*ro,o+=ro;var s=Math.ceil(o/no);r<<=s*no-o;for(var u=1;u<=s;u++){var l=(s-u)*no;t+=Qr[(r&oo<<l)>>l]}t+="==".slice(0,4-s)}return t},bodyLengthChecker:function(e){if("string"==typeof e){for(var t=e.length,n=t-1;n>=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}return"number"==typeof e.byteLength?e.byteLength:"number"==typeof e.size?e.size:void 0}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:(fi={serviceId:mi.serviceId,clientVersion:n(Dr).version},hi=fi.serviceId,pi=fi.clientVersion,function(){return Yo(void 0,void 0,void 0,(function(){var e,t,r,o,i,a,s,u,l;return Qo(this,(function(c){return e=(null===(r=null===window||void 0===window?void 0:window.navigator)||void 0===r?void 0:r.userAgent)?n($o).parse(window.navigator.userAgent):void 0,t=[["aws-sdk-js",pi],["os/"+((null===(o=null==e?void 0:e.os)||void 0===o?void 0:o.name)||"other"),null===(i=null==e?void 0:e.os)||void 0===i?void 0:i.version],["lang/js"],["md/browser",(null!==(s=null===(a=null==e?void 0:e.browser)||void 0===a?void 0:a.name)&&void 0!==s?s:"unknown")+"_"+(null!==(l=null===(u=null==e?void 0:e.browser)||void 0===u?void 0:u.version)&&void 0!==l?l:"unknown")]],hi&&t.push(["api/"+hi,pi]),[2,t]}))}))}),maxAttempts:3,region:(di="Region is missing",function(){return Promise.reject(di)}),requestHandler:new Zr,sha256:jr.Sha256,streamCollector:function(e){return"function"==typeof Blob&&e instanceof Blob?function(e){return zr(this,void 0,void 0,(function(){var t,n;return Vr(this,(function(r){switch(r.label){case 0:return[4,ao(e)];case 1:return t=r.sent(),n=io(t),[2,new Uint8Array(n)]}}))}))}(e):function(e){return zr(this,void 0,void 0,(function(){var t,n,r,o,i,a,s;return Vr(this,(function(u){switch(u.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,u.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return o=u.sent(),i=o.done,(a=o.value)&&(s=t,(t=new Uint8Array(s.length+a.length)).set(s),t.set(a,s.length)),r=i,[3,1];case 3:return[2,t]}}))}))}(e)},utf8Decoder:function(e){return"function"==typeof TextEncoder?ei(e):Jo(e)},utf8Encoder:function(e){return"function"==typeof TextDecoder?ti(e):Xo(e)}});var vi=function(){return vi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vi.apply(this,arguments)};function yi(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function bi(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var wi=function(e){var t;return vi(vi({},e),{tls:null===(t=e.tls)||void 0===t||t,endpoint:e.endpoint?Si(e):function(){return Ci(e)},isCustomEndpoint:!!e.endpoint})},Si=function(e){var t=e.endpoint,n=e.urlParser;if("string"==typeof t){var r=Promise.resolve(n(t));return function(){return r}}if("object"==typeof t){var o=Promise.resolve(t);return function(){return o}}return t},Ci=function(e){return yi(void 0,void 0,void 0,(function(){var t,n,r,o,i;return bi(this,(function(a){switch(a.label){case 0:return t=e.tls,n=void 0===t||t,[4,e.region()];case 1:if(r=a.sent(),!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");return[4,e.regionInfoProvider(r)];case 2:if(!(o=(null!==(i=a.sent())&&void 0!==i?i:{}).hostname))throw new Error("Cannot resolve hostname from client config");return[2,e.urlParser((n?"https:":"http:")+"//"+o)]}}))}))},Ei=function(e){if(!e.region)throw new Error("Region is missing");return vi(vi({},e),{region:Ai(e.region)})},Ai=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};var _i=function(){return _i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_i.apply(this,arguments)};function Ii(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function ki(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var xi="content-length";var Ti={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Pi=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(r){return Ii(t,void 0,void 0,(function(){var t,o,i,a,s;return ki(this,(function(u){return t=r.request,An.isInstance(t)&&(o=t.body,i=t.headers,o&&-1===Object.keys(i).map((function(e){return e.toLowerCase()})).indexOf(xi)&&void 0!==(a=e(o))&&(t.headers=_i(_i({},t.headers),((s={})[xi]=String(a),s)))),[2,n(_i(_i({},r),{request:t}))]}))}))}}}(e.bodyLengthChecker),Ti)}}};function Oi(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function Ni(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var Ui={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Fi=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Oi(void 0,void 0,void 0,(function(){var r,o;return Ni(this,(function(i){return An.isInstance(n.request)?(r=n.request,(void 0===(o=(e.requestHandler.metadata||{}).handlerProtocol)?"":o).indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),Ui)}}};function Ri(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Mi(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function Di(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var ji=function(){return function(e,t){return function(n){return Mi(void 0,void 0,void 0,(function(){var r,o,i,a,s,u,l,c,d;return Di(this,(function(f){switch(f.label){case 0:return r=t.clientName,o=t.commandName,i=t.inputFilterSensitiveLog,a=t.logger,s=t.outputFilterSensitiveLog,[4,e(n)];case 1:return u=f.sent(),a?("function"==typeof a.info&&(l=u.output,c=l.$metadata,d=Ri(l,["$metadata"]),a.info({clientName:r,commandName:o,input:i(n.input),output:s(d),metadata:c})),[2,u]):[2,u]}}))}))}}},Li={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Bi=function(e){return{applyToStack:function(e){e.add(ji(),Li)}}};var zi=function(){return zi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zi.apply(this,arguments)};function Vi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Wi(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function Hi(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function Gi(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qi(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Ki(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(qi(arguments[t]));return e}var Zi="X-Amz-Date",Yi="X-Amz-Signature",Qi="X-Amz-Security-Token",$i="authorization",Ji=Zi.toLowerCase(),Xi=[$i,Ji,"date"],ea=Yi.toLowerCase(),ta="x-amz-content-sha256",na=Qi.toLowerCase(),ra={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},oa=/^proxy-/,ia=/^sec-/,aa="AWS4-HMAC-SHA256",sa="UNSIGNED-PAYLOAD",ua="aws4_request",la={},ca=[];function da(e,t,n){return e+"/"+t+"/"+n+"/"+ua}var fa=function(e,t,n,r,o){return Wi(void 0,void 0,void 0,(function(){var i,a,s,u,l,c,d,f,h;return Hi(this,(function(p){switch(p.label){case 0:return[4,ha(e,t.secretAccessKey,t.accessKeyId)];case 1:if(i=p.sent(),(a=n+":"+r+":"+o+":"+se(i)+":"+t.sessionToken)in la)return[2,la[a]];for(ca.push(a);ca.length>50;)delete la[ca.shift()];s="AWS4"+t.secretAccessKey,p.label=2;case 2:p.trys.push([2,7,8,9]),u=Gi([n,r,o,ua]),l=u.next(),p.label=3;case 3:return l.done?[3,6]:(c=l.value,[4,ha(e,s,c)]);case 4:s=p.sent(),p.label=5;case 5:return l=u.next(),[3,3];case 6:return[3,9];case 7:return d=p.sent(),f={error:d},[3,9];case 8:try{l&&!l.done&&(h=u.return)&&h.call(u)}finally{if(f)throw f.error}return[7];case 9:return[2,la[a]=s]}}))}))};function ha(e,t,n){var r=new e(t);return r.update(n),r.digest()}function pa(e,t,n){var r,o,i=e.headers,a={};try{for(var s=Gi(Object.keys(i).sort()),u=s.next();!u.done;u=s.next()){var l=u.value,c=l.toLowerCase();(c in ra||(null==t?void 0:t.has(c))||oa.test(c)||ia.test(c))&&(!n||n&&!n.has(c))||(a[c]=i[l].trim().replace(/\s+/g," "))}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return a}var ma=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,ga)},ga=function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()};function va(e){var t,n,r=e.query,o=void 0===r?{}:r,i=[],a={},s=function(e){if(e.toLowerCase()===ea)return"continue";i.push(e);var t=o[e];"string"==typeof t?a[e]=ma(e)+"="+ma(t):Array.isArray(t)&&(a[e]=t.slice(0).sort().reduce((function(t,n){return t.concat([ma(e)+"="+ma(n)])}),[]).join("&"))};try{for(var u=Gi(Object.keys(o).sort()),l=u.next();!l.done;l=u.next()){s(l.value)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return i.map((function(e){return a[e]})).filter((function(e){return e})).join("&")}var ya=function(e){return"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)};function ba(e,t){var n=e.headers,r=e.body;return Wi(this,void 0,void 0,(function(){var e,o,i,a,s,u,l;return Hi(this,(function(c){switch(c.label){case 0:try{for(e=Gi(Object.keys(n)),o=e.next();!o.done;o=e.next())if((i=o.value).toLowerCase()===ta)return[2,n[i]]}catch(e){u={error:e}}finally{try{o&&!o.done&&(l=e.return)&&l.call(e)}finally{if(u)throw u.error}}return null!=r?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"==typeof r||ArrayBuffer.isView(r)||ya(r)?((a=new t).update(r),s=se,[4,a.digest()]):[3,3];case 2:return[2,s.apply(void 0,[c.sent()])];case 3:return[2,sa]}}))}))}function wa(e,t){var n,r;e=e.toLowerCase();try{for(var o=Gi(Object.keys(t)),i=o.next();!i.done;i=o.next()){if(e===i.value.toLowerCase())return!0}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}function Sa(e){var t=e.headers,n=e.query,r=Vi(e,["headers","query"]);return zi(zi({},r),{headers:zi({},t),query:n?Ca(n):void 0})}function Ca(e){return Object.keys(e).reduce((function(t,n){var r,o=e[n];return zi(zi({},t),((r={})[n]=Array.isArray(o)?Ki(o):o,r))}),{})}function Ea(e,t){var n,r,o;void 0===t&&(t={});var i="function"==typeof e.clone?e.clone():Sa(e),a=i.headers,s=i.query,u=void 0===s?{}:s;try{for(var l=Gi(Object.keys(a)),c=l.next();!c.done;c=l.next()){var d=c.value,f=d.toLowerCase();"x-amz-"!==f.substr(0,6)||(null===(o=t.unhoistableHeaders)||void 0===o?void 0:o.has(f))||(u[d]=a[d],delete a[d])}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return zi(zi({},e),{headers:a,query:u})}function Aa(e){var t,n;e="function"==typeof e.clone?e.clone():Sa(e);try{for(var r=Gi(Object.keys(e.headers)),o=r.next();!o.done;o=r.next()){var i=o.value;Xi.indexOf(i.toLowerCase())>-1&&delete e.headers[i]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}function _a(e){return function(e){if("number"==typeof e)return new Date(1e3*e);if("string"==typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var Ia=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,o=e.service,i=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=o,this.sha256=i,this.uriEscapePath=s,this.applyChecksum="boolean"!=typeof t||t,this.regionProvider=Ta(r),this.credentialProvider=Pa(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),Wi(this,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,d,f,h,p,m,g,v,y,b,w,S,C,E,A,_;return Hi(this,(function(I){switch(I.label){case 0:return n=t.signingDate,r=void 0===n?new Date:n,o=t.expiresIn,i=void 0===o?3600:o,a=t.unsignableHeaders,s=t.unhoistableHeaders,u=t.signableHeaders,l=t.signingRegion,c=t.signingService,[4,this.credentialProvider()];case 1:return d=I.sent(),null==l?[3,2]:(h=l,[3,4]);case 2:return[4,this.regionProvider()];case 3:h=I.sent(),I.label=4;case 4:return f=h,p=ka(r),m=p.longDate,g=p.shortDate,i>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(v=da(g,f,null!=c?c:this.service),y=Ea(Aa(e),{unhoistableHeaders:s}),d.sessionToken&&(y.query[Qi]=d.sessionToken),y.query["X-Amz-Algorithm"]=aa,y.query["X-Amz-Credential"]=d.accessKeyId+"/"+v,y.query[Zi]=m,y.query["X-Amz-Expires"]=i.toString(10),b=pa(y,a,u),y.query["X-Amz-SignedHeaders"]=xa(b),w=y.query,S=Yi,C=this.getSignature,E=[m,v,this.getSigningKey(d,f,g,c)],A=this.createCanonicalRequest,_=[y,b],[4,ba(e,this.sha256)]);case 5:return[4,C.apply(this,E.concat([A.apply(this,_.concat([I.sent()]))]))];case 6:return w[S]=I.sent(),[2,y]}}))}))},e.prototype.sign=function(e,t){return Wi(this,void 0,void 0,(function(){return Hi(this,(function(n){return"string"==typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,o=t.signingDate,i=void 0===o?new Date:o,a=t.priorSignature,s=t.signingRegion,u=t.signingService;return Wi(this,void 0,void 0,(function(){var e,t,o,l,c,d,f,h,p,m,g;return Hi(this,(function(v){switch(v.label){case 0:return null==s?[3,1]:(t=s,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=v.sent(),v.label=3;case 3:return e=t,o=ka(i),l=o.shortDate,c=o.longDate,d=da(l,e,null!=u?u:this.service),[4,ba({headers:{},body:r},this.sha256)];case 4:return f=v.sent(),(h=new this.sha256).update(n),m=se,[4,h.digest()];case 5:return p=m.apply(void 0,[v.sent()]),g=["AWS4-HMAC-SHA256-PAYLOAD",c,d,a,p,f].join("\n"),[2,this.signString(g,{signingDate:i,signingRegion:e,signingService:u})]}}))}))},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,o=void 0===r?new Date:r,i=n.signingRegion,a=n.signingService;return Wi(this,void 0,void 0,(function(){var t,n,r,s,u,l,c,d;return Hi(this,(function(f){switch(f.label){case 0:return[4,this.credentialProvider()];case 1:return t=f.sent(),null==i?[3,2]:(r=i,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=f.sent(),f.label=4;case 4:return n=r,s=ka(o).shortDate,c=(l=this.sha256).bind,[4,this.getSigningKey(t,n,s,a)];case 5:return(u=new(c.apply(l,[void 0,f.sent()]))).update(e),d=se,[4,u.digest()];case 6:return[2,d.apply(void 0,[f.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,o=void 0===r?new Date:r,i=n.signableHeaders,a=n.unsignableHeaders,s=n.signingRegion,u=n.signingService;return Wi(this,void 0,void 0,(function(){var t,n,r,l,c,d,f,h,p,m,g;return Hi(this,(function(v){switch(v.label){case 0:return[4,this.credentialProvider()];case 1:return t=v.sent(),null==s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=v.sent(),v.label=4;case 4:return n=r,l=Aa(e),c=ka(o),d=c.longDate,f=c.shortDate,h=da(f,n,null!=u?u:this.service),l.headers[Ji]=d,t.sessionToken&&(l.headers[na]=t.sessionToken),[4,ba(l,this.sha256)];case 5:return p=v.sent(),!wa(ta,l.headers)&&this.applyChecksum&&(l.headers[ta]=p),m=pa(l,a,i),[4,this.getSignature(d,h,this.getSigningKey(t,n,f,u),this.createCanonicalRequest(l,m,p))];case 6:return g=v.sent(),l.headers[$i]=aa+" Credential="+t.accessKeyId+"/"+h+", SignedHeaders="+xa(m)+", Signature="+g,[2,l]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+va(e)+"\n"+r.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return Wi(this,void 0,void 0,(function(){var r,o;return Hi(this,(function(i){switch(i.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return o=i.sent(),[2,aa+"\n"+e+"\n"+t+"\n"+se(o)]}}))}))},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return Wi(this,void 0,void 0,(function(){var o,i,a,s,u;return Hi(this,(function(l){switch(l.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return o=l.sent(),s=(a=this.sha256).bind,[4,n];case 2:return(i=new(s.apply(a,[void 0,l.sent()]))).update(o),u=se,[4,i.digest()];case 3:return[2,u.apply(void 0,[l.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,r){return fa(this.sha256,e,n,t,r||this.service)},e}(),ka=function(e){var t=_a(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},xa=function(e){return Object.keys(e).sort().join(";")},Ta=function(e){if("string"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e},Pa=function(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e};function Oa(e){var t,n=this,r=Na(e.credentials||e.credentialDefaultProvider(e)),o=e.signingEscapePath,i=void 0===o||o,a=e.systemClockOffset,s=void 0===a?e.systemClockOffset||0:a,u=e.sha256;return t=e.signer?Na(e.signer):function(){return Na(e.region)().then((function(t){return Wi(n,void 0,void 0,(function(){return Hi(this,(function(n){switch(n.label){case 0:return[4,e.regionInfoProvider(t)];case 1:return[2,[n.sent()||{},t]]}}))}))})).then((function(t){var n=qi(t,2),o=n[0],a=n[1],s=o.signingRegion,l=o.signingService;return e.signingRegion=e.signingRegion||s||a,e.signingName=e.signingName||l||e.serviceId,new Ia({credentials:r,region:e.signingRegion,service:e.signingName,sha256:u,uriEscapePath:i})}))},zi(zi({},e),{systemClockOffset:s,signingEscapePath:i,credentials:r,signer:t})}function Na(e){if("object"==typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var Ua=function(){return Ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ua.apply(this,arguments)};function Fa(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function Ra(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function Ma(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Da(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ma(arguments[t]));return e}var ja="user-agent",La=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,Ba=function(e){var t=Ma(e,2),n=t[0],r=t[1],o=n.indexOf("/"),i=n.substring(0,o),a=n.substring(o+1);return"api"===i&&(a=a.toLowerCase()),[i,a,r].filter((function(e){return e&&e.length>0})).map((function(e){return null==e?void 0:e.replace(La,"_")})).join("/")},za={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},Va=function(e){return{applyToStack:function(t){var n;t.add((n=e,function(e,t){return function(r){return Fa(void 0,void 0,void 0,(function(){var o,i,a,s,u,l,c,d;return Ra(this,(function(f){switch(f.label){case 0:return o=r.request,An.isInstance(o)?(i=o.headers,a=(null===(c=null==t?void 0:t.userAgent)||void 0===c?void 0:c.map(Ba))||[],[4,n.defaultUserAgentProvider()]):[2,e(r)];case 1:return s=f.sent().map(Ba),u=(null===(d=null==n?void 0:n.customUserAgent)||void 0===d?void 0:d.map(Ba))||[],i["x-amz-user-agent"]=Da(s,a,u).join(" "),l=Da(s.filter((function(e){return e.startsWith("aws-sdk-")})),u).join(" "),"browser"!==n.runtime&&l&&(i[ja]=i[ja]?i[ja]+" "+l:l),[2,e(Ua(Ua({},r),{request:o}))]}}))}))}}),za)}}},Wa=function(e){function t(t){var n,r=this,o=lt(lt({},gi),t),i=Ei(o),a=Oa(wi(i)),s=Ko(a),u=Ua(Ua({},n=s),{customUserAgent:"string"==typeof n.customUserAgent?[[n.customUserAgent]]:n.customUserAgent});return(r=e.call(this,u)||this).config=u,r.middlewareStack.use(vo(r.config)),r.middlewareStack.use(Pi(r.config)),r.middlewareStack.use(Fi(r.config)),r.middlewareStack.use(Bi(r.config)),r.middlewareStack.use(Va(r.config)),r}return ut(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(Sr);function Ha(e){var t=new Wa({region:e.region,customUserAgent:A()});return t.middlewareStack.add((function(e,t){return function(t){return e(function(e){return u(u({},e),{request:u(u({},e.request),{headers:u(u({},e.request.headers),{"cache-control":"no-store"})})})}(t))}}),{step:"build",name:"cacheControlMiddleWare"}),t}var Ga=new y("Credentials"),qa="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Ka=function(){function e(e){this._gettingCredPromise=null,this._refreshHandlers={},this.Auth=void 0,this.configure(e),this._refreshHandlers.google=et.refreshGoogleToken,this._refreshHandlers.facebook=tt.refreshFacebookToken}return e.prototype.getModuleName=function(){return"Credentials"},e.prototype.getCredSource=function(){return this._credentials_source},e.prototype.configure=function(e){if(!e)return this._config||{};this._config=Object.assign({},this._config,e);var t=this._config.refreshHandlers;return t&&(this._refreshHandlers=u(u({},this._refreshHandlers),t)),this._storage=this._config.storage,this._storage||(this._storage=(new Ve).getStorage()),this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),function(e,t,n){P.dispatch("core",{event:e,data:t,message:n},"Credentials",qa)}("credentials_configured",null,"Credentials has been configured successfully"),this._config},e.prototype.get=function(){return Ga.debug("getting credentials"),this._pickupCredentials()},e.prototype._getCognitoIdentityIdStorageKey=function(e){return"CognitoIdentityId-"+e},e.prototype._pickupCredentials=function(){return Ga.debug("picking up credentials"),this._gettingCredPromise&&this._gettingCredPromise.isPending()?Ga.debug("getting old cred promise"):(Ga.debug("getting new cred promise"),this._gettingCredPromise=ee(this._keepAlive())),this._gettingCredPromise},e.prototype._keepAlive=function(){return c(this,void 0,void 0,(function(){var e,t,n,r,o,i,a;return d(this,(function(s){switch(s.label){case 0:if(Ga.debug("checking if credentials exists and not expired"),(e=this._credentials)&&!this._isExpired(e)&&!this._isPastTTL())return Ga.debug("credentials not changed and not expired, directly return"),[2,Promise.resolve(e)];if(Ga.debug("need to get a new credential or refresh the existing one"),t=this.Auth,!(n=void 0===t?S.Auth:t)||"function"!=typeof n.currentUserCredentials)return[2,this._setCredentialsForGuest()];if(this._isExpired(e)||!this._isPastTTL())return[3,6];Ga.debug("ttl has passed but token is not yet expired"),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,n.currentUserPoolUser()];case 2:return r=s.sent(),[4,n.currentSession()];case 3:return o=s.sent(),i=o.refreshToken,[4,new Promise((function(e,t){r.refreshSession(i,(function(n,r){return n?t(n):e(r)}))}))];case 4:return s.sent(),[3,6];case 5:return a=s.sent(),Ga.debug("Error attempting to refreshing the session",a),[3,6];case 6:return[2,n.currentUserCredentials()]}}))}))},e.prototype.refreshFederatedToken=function(e){Ga.debug("Getting federated credentials");var t=e.provider,n=e.user,r=e.token,o=e.identity_id,i=e.expires_at;i=1970===new Date(i).getFullYear()?1e3*i:i;var a=this;return Ga.debug("checking if federated jwt token expired"),i>(new Date).getTime()?(Ga.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:o,expires_at:i})):a._refreshHandlers[t]&&"function"==typeof a._refreshHandlers[t]?(Ga.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:a._refreshHandlers[t],provider:t,user:n})):(Ga.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,o=e.user;return Ke(n,[],1e4).then((function(e){return Ga.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:o,identity_id:e.identity_id,expires_at:e.expires_at})})).catch((function(e){return"string"==typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length)||t.clear(),Ga.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return Ga.debug("no credentials for expiration check"),!0;Ga.debug("are these credentials expired?",e);var t=Date.now();return e.expiration.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){var e;return c(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,u,l,f,h=this;return d(this,(function(p){switch(p.label){case 0:return Ga.debug("setting credentials for guest"),(null===(e=this._config)||void 0===e?void 0:e.identityPoolId)||(this._config=Object.assign({},this._config,Le(this._config||{}).Auth)),t=this._config,n=t.identityPoolId,r=t.region,o=t.mandatorySignIn,i=t.identityPoolRegion,o?[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")]:n?i||r?(s=this,[4,this._getGuestIdentityId()]):(Ga.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")]):(Ga.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);case 1:return a=s._identityId=p.sent(),u=Ha({region:i||r}),l=void 0,a?l=Or({identityId:a,client:u})():(f=function(){return c(h,void 0,void 0,(function(){var e;return d(this,(function(t){switch(t.label){case 0:return[4,u.send(new Nr({IdentityPoolId:n}))];case 1:return e=t.sent().IdentityId,this._identityId=e,[2,Or({client:u,identityId:e})()]}}))}))},l=f().catch((function(e){return c(h,void 0,void 0,(function(){return d(this,(function(t){throw e}))}))}))),[2,this._loadCredentials(l,"guest",!1,null).then((function(e){return e})).catch((function(e){return c(h,void 0,void 0,(function(){var t,r=this;return d(this,(function(o){switch(o.label){case 0:return"ResourceNotFoundException"!==e.name||e.message!=="Identity '"+a+"' not found."?[3,2]:(Ga.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()]);case 1:return o.sent(),t=function(){return c(r,void 0,void 0,(function(){var e;return d(this,(function(t){switch(t.label){case 0:return[4,u.send(new Nr({IdentityPoolId:n}))];case 1:return e=t.sent().IdentityId,this._identityId=e,[2,Or({client:u,identityId:e})()]}}))}))},l=t().catch((function(e){return c(r,void 0,void 0,(function(){return d(this,(function(t){throw e}))}))})),[2,this._loadCredentials(l,"guest",!1,null)];case 2:return[2,e]}}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,o={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[t]||t;if(!o)return Promise.reject("You must specify a federated provider");var i={};i[o]=n;var a=this._config,s=a.identityPoolId,u=a.region,l=a.identityPoolRegion;if(!s)return Ga.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!l&&!u)return Ga.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var c=Ha({region:l||u}),d=void 0;r?d=Or({identityId:r,logins:i,client:c})():d=Mr({logins:i,identityPoolId:s,client:c})();return this._loadCredentials(d,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;Ga.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,o=r.region,i=r.userPoolId,a=r.identityPoolId,s=r.identityPoolRegion;if(!a)return Ga.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!s&&!o)return Ga.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var u={};u["cognito-idp."+o+".amazonaws.com/"+i]=n;var l=Ha({region:s||o}),f=c(t,void 0,void 0,(function(){var e,t,n,r,o,i,s,c,f,h;return d(this,(function(d){switch(d.label){case 0:return[4,this._getGuestIdentityId()];case 1:return(e=d.sent())?[3,3]:[4,l.send(new Nr({IdentityPoolId:a,Logins:u}))];case 2:n=d.sent().IdentityId,t=n,d.label=3;case 3:return[4,l.send(new xr({IdentityId:e||t,Logins:u}))];case 4:return r=d.sent(),o=r.Credentials,i=o.AccessKeyId,s=o.Expiration,c=o.SecretKey,f=o.SessionToken,h=r.IdentityId,this._identityId=h,e?(Ga.debug("The guest identity "+e+" has been successfully linked to the logins"),e===h&&Ga.debug("The guest identity "+e+" has become the primary identity"),[4,this._removeGuestIdentityId()]):[3,6];case 5:d.sent(),d.label=6;case 6:return[2,{accessKeyId:i,secretAccessKey:c,sessionToken:f,expiration:s,identityId:h}]}}))})).catch((function(e){return c(t,void 0,void 0,(function(){return d(this,(function(t){throw e}))}))}));return this._loadCredentials(f,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var o=this,i=this;return new Promise((function(a,s){e.then((function(e){return c(o,void 0,void 0,(function(){var o,s,u,l,c;return d(this,(function(d){switch(d.label){case 0:if(Ga.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e.identityId=this._identityId),i._credentials=e,i._credentials.authenticated=n,i._credentials_source=t,i._nextCredentialsRefresh=(new Date).getTime()+3e6,"federated"===t){o=Object.assign({id:this._credentials.identityId},r.user),s=r.provider,u=r.token,l=r.expires_at,c=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:s,token:u,user:o,expires_at:l,identity_id:c}))}catch(e){Ga.debug("Failed to put federated info into auth storage",e)}}return"guest"!==t?[3,2]:[4,this._setGuestIdentityId(e.identityId)];case 1:d.sent(),d.label=2;case 2:return a(i._credentials),[2]}}))}))})).catch((function(t){if(t)return Ga.debug("Failed to load credentials",e),Ga.debug("Error loading credentials",t),void s(t)}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(Ga.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return c(this,void 0,void 0,(function(){return d(this,(function(e){return this._credentials=null,this._credentials_source=null,Ga.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype._getGuestIdentityId=function(){return c(this,void 0,void 0,(function(){var e,t;return d(this,(function(n){switch(n.label){case 0:e=this._config.identityPoolId,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(e))];case 3:return t=n.sent(),Ga.debug("Failed to get the cached guest identityId",t),[3,4];case 4:return[2]}}))}))},e.prototype._setGuestIdentityId=function(e){return c(this,void 0,void 0,(function(){var t,n;return d(this,(function(r){switch(r.label){case 0:t=this._config.identityPoolId,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(t),e),[3,4];case 3:return n=r.sent(),Ga.debug("Failed to cache guest identityId",n),[3,4];case 4:return[2]}}))}))},e.prototype._removeGuestIdentityId=function(){return c(this,void 0,void 0,(function(){var e;return d(this,(function(t){return e=this._config.identityPoolId,Ga.debug("removing "+this._getCognitoIdentityIdStorageKey(e)+" from storage"),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}(),Za=new Ka(null);S.register(Za);var Ya,Qa,$a={};e($a,"default",(()=>as),(e=>as=e)),Ya=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},r=t||{},o=e.split(";"),i=r.decode||Ja,a=0;a<o.length;a++){var s=o[a],u=s.indexOf("=");if(!(u<0)){var l=s.substring(0,u).trim();if(null==n[l]){var c=s.substring(u+1,s.length).trim();'"'===c[0]&&(c=c.slice(1,-1)),n[l]=ts(c,i)}}}return n},Qa=function(e,t,n){var r=n||{},o=r.encode||Xa;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!es.test(e))throw new TypeError("argument name is invalid");var i=o(t);if(i&&!es.test(i))throw new TypeError("argument val is invalid");var a=e+"="+i;if(null!=r.maxAge){var s=r.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");a+="; Max-Age="+Math.floor(s)}if(r.domain){if(!es.test(r.domain))throw new TypeError("option domain is invalid");a+="; Domain="+r.domain}if(r.path){if(!es.test(r.path))throw new TypeError("option path is invalid");a+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(a+="; HttpOnly");r.secure&&(a+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a};var Ja=decodeURIComponent,Xa=encodeURIComponent,es=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function ts(e,t){try{return t(e)}catch(t){return e}}function ns(e,t){return"string"==typeof e?Ya(e,t):"object"==typeof e&&null!==e?e:{}}function rs(e,t){void 0===t&&(t={});var n=function(e){return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(e){}return e}var os=function(){return os=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},os.apply(this,arguments)},is=function(){function e(e,t){var n=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies=ns(e,t),new Promise((function(){n.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie})).catch((function(){}))}return e.prototype._updateBrowserValues=function(e){this.HAS_DOCUMENT_COOKIE&&(this.cookies=Ya(document.cookie,e))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t,n){return void 0===t&&(t={}),this._updateBrowserValues(n),rs(this.cookies[e],t)},e.prototype.getAll=function(e,t){void 0===e&&(e={}),this._updateBrowserValues(t);var n={};for(var r in this.cookies)n[r]=rs(this.cookies[r],e);return n},e.prototype.set=function(e,t,n){var r;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=os(os({},this.cookies),((r={})[e]=t,r)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=Qa(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=os(os({},t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=os({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=Qa(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}(),as=is,ss=$a.default,us=te().isBrowser,ls=function(){function e(e){void 0===e&&(e={}),this.cookies=new ss,this.store=us?window.localStorage:Object.create(null),this.cookies=e.req?new ss(e.req.headers.cookie):new ss,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){var e=this;Array.from(new Array(this.length)).map((function(t,n){return e.key(n)})).forEach((function(t){return e.removeItem(t)}))},e.prototype.getItem=function(e){return this.getLocalItem(e)},e.prototype.getLocalItem=function(e){return Object.prototype.hasOwnProperty.call(this.store,e)?this.store[e]:null},e.prototype.getUniversalItem=function(e){return this.cookies.get(e)},e.prototype.key=function(e){return Object.keys(this.store)[e]},e.prototype.removeItem=function(e){this.removeLocalItem(e),this.removeUniversalItem(e)},e.prototype.removeLocalItem=function(e){delete this.store[e]},e.prototype.removeUniversalItem=function(e){this.cookies.remove(e,{path:"/"})},e.prototype.setItem=function(e,t){this.setLocalItem(e,t);var n=e.split(".").pop();["LastAuthUser","accessToken","refreshToken","idToken"].includes(null!=n?n:"")&&this.setUniversalItem(e,t,{expires:new Date(Date.now()+31536e6)})},e.prototype.setLocalItem=function(e,t){this.store[e]=t},e.prototype.setUniversalItem=function(e,t,n){void 0===n&&(n={}),this.cookies.set(e,t,u(u({},n),{path:"/",sameSite:!0,secure:!us||"localhost"!==window.location.hostname}))},e}();E.userAgent;var cs=function(e,t){return cs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},cs(e,t)};function ds(e,t){function n(){this.constructor=e}cs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var fs,hs,ps,ms,gs,vs,ys=function(){return ys=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ys.apply(this,arguments)};function bs(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function ws(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function Ss(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function Cs(e){return e&&!!["provider"].find((function(t){return e.hasOwnProperty(t)}))}function Es(e){return e&&!!["customState"].find((function(t){return e.hasOwnProperty(t)}))}function As(e){return void 0!==e.redirectSignIn}(hs=fs||(fs={})).Cognito="COGNITO",hs.Google="Google",hs.Facebook="Facebook",hs.Amazon="LoginWithAmazon",hs.Apple="SignInWithApple",(ms=ps||(ps={})).NoConfig="noConfig",ms.MissingAuthConfig="missingAuthConfig",ms.EmptyUsername="emptyUsername",ms.InvalidUsername="invalidUsername",ms.EmptyPassword="emptyPassword",ms.EmptyCode="emptyCode",ms.SignUpError="signUpError",ms.NoMFA="noMFA",ms.InvalidMFA="invalidMFA",ms.EmptyChallengeResponse="emptyChallengeResponse",ms.NoUserSession="noUserSession",ms.Default="default",ms.DeviceConfig="deviceConfig",ms.NetworkError="networkError",ms.AutoSignInError="autoSignInError",(vs=gs||(gs={})).API_KEY="API_KEY",vs.AWS_IAM="AWS_IAM",vs.OPENID_CONNECT="OPENID_CONNECT",vs.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",vs.AWS_LAMBDA="AWS_LAMBDA";
/*!
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
/*!
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/var _s,Is=function(){function e(e){var t=e||{},n=t.ValidationData,r=t.Username,o=t.Password,i=t.AuthParameters,a=t.ClientMetadata;this.validationData=n||{},this.authParameters=i||{},this.clientMetadata=a||{},this.username=r,this.password=o}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}(),ks=i("1sdKR");
/*!
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/if("undefined"!=typeof window&&window.crypto&&(_s=window.crypto),!_s&&"undefined"!=typeof window&&window.msCrypto&&(_s=window.msCrypto),!_s&&void 0!==t&&t.crypto&&(_s=t.crypto),!_s)try{_s=i("9kLsK")}catch(e){}function xs(){if(_s){if("function"==typeof _s.getRandomValues)try{return _s.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof _s.randomBytes)try{return _s.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")}var Ts,Ps=function(){function e(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length}var t=e.prototype;return t.random=function(t){for(var n=[],r=0;r<t;r+=4)n.push(xs());return new e(n,t)},t.toString=function(){return function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")}(this)},e}(),Os=(ne=i("iLAal"),Ns);function Ns(e,t){null!=e&&this.fromString(e,t)}function Us(){return new Ns(null)}var Fs="undefined"!=typeof navigator;Fs&&"Microsoft Internet Explorer"==navigator.appName?(Ns.prototype.am=function(e,t,n,r,o,i){for(var a=32767&t,s=t>>15;--i>=0;){var u=32767&this[e],l=this[e++]>>15,c=s*u+l*a;o=((u=a*u+((32767&c)<<15)+n[r]+(1073741823&o))>>>30)+(c>>>15)+s*l+(o>>>30),n[r++]=1073741823&u}return o},Ts=30):Fs&&"Netscape"!=navigator.appName?(Ns.prototype.am=function(e,t,n,r,o,i){for(;--i>=0;){var a=t*this[e++]+n[r]+o;o=Math.floor(a/67108864),n[r++]=67108863&a}return o},Ts=26):(Ns.prototype.am=function(e,t,n,r,o,i){for(var a=16383&t,s=t>>14;--i>=0;){var u=16383&this[e],l=this[e++]>>14,c=s*u+l*a;o=((u=a*u+((16383&c)<<14)+n[r]+o)>>28)+(c>>14)+s*l,n[r++]=268435455&u}return o},Ts=28),Ns.prototype.DB=Ts,Ns.prototype.DM=(1<<Ts)-1,Ns.prototype.DV=1<<Ts;Ns.prototype.FV=Math.pow(2,52),Ns.prototype.F1=52-Ts,Ns.prototype.F2=2*Ts-52;var Rs,Ms,Ds="0123456789abcdefghijklmnopqrstuvwxyz",js=new Array;for(Rs="0".charCodeAt(0),Ms=0;Ms<=9;++Ms)js[Rs++]=Ms;for(Rs="a".charCodeAt(0),Ms=10;Ms<36;++Ms)js[Rs++]=Ms;for(Rs="A".charCodeAt(0),Ms=10;Ms<36;++Ms)js[Rs++]=Ms;function Ls(e){return Ds.charAt(e)}function Bs(e,t){var n=js[e.charCodeAt(t)];return null==n?-1:n}function zs(e){var t=Us();return t.fromInt(e),t}function Vs(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function Ws(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function Hs(e){return ks.Buffer.from((new Ps).random(e).toString(),"hex")}Ws.prototype.convert=function(e){var t=Us();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Ns.ZERO)>0&&this.m.subTo(t,t),t},Ws.prototype.revert=function(e){var t=Us();return e.copyTo(t),this.reduce(t),t},Ws.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},Ws.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},Ws.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},Ns.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},Ns.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},Ns.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var r=e.length,o=!1,i=0;--r>=0;){var a=Bs(e,r);a<0?"-"==e.charAt(r)&&(o=!0):(o=!1,0==i?this[this.t++]=a:i+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-i)-1)<<i,this[this.t++]=a>>this.DB-i):this[this.t-1]|=a<<i,(i+=n)>=this.DB&&(i-=this.DB))}this.clamp(),o&&Ns.ZERO.subTo(this,this)},Ns.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},Ns.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},Ns.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},Ns.prototype.lShiftTo=function(e,t){var n,r=e%this.DB,o=this.DB-r,i=(1<<o)-1,a=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>o|s,s=(this[n]&i)<<r;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},Ns.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,i=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&i)<<o,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&i)<<o),t.t=this.t-n,t.clamp()}},Ns.prototype.subTo=function(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},Ns.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),o=n.t;for(t.t=o+r.t;--o>=0;)t[o]=0;for(o=0;o<r.t;++o)t[o+n.t]=n.am(0,r[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&Ns.ZERO.subTo(t,t)},Ns.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},Ns.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var o=this.abs();if(o.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=Us());var i=Us(),a=this.s,s=e.s,u=this.DB-Vs(r[r.t-1]);u>0?(r.lShiftTo(u,i),o.lShiftTo(u,n)):(r.copyTo(i),o.copyTo(n));var l=i.t,c=i[l-1];if(0!=c){var d=c*(1<<this.F1)+(l>1?i[l-2]>>this.F2:0),f=this.FV/d,h=(1<<this.F1)/d,p=1<<this.F2,m=n.t,g=m-l,v=null==t?Us():t;for(i.dlShiftTo(g,v),n.compareTo(v)>=0&&(n[n.t++]=1,n.subTo(v,n)),Ns.ONE.dlShiftTo(l,v),v.subTo(i,i);i.t<l;)i[i.t++]=0;for(;--g>=0;){var y=n[--m]==c?this.DM:Math.floor(n[m]*f+(n[m-1]+p)*h);if((n[m]+=i.am(0,y,n,g,0,l))<y)for(i.dlShiftTo(g,v),n.subTo(v,n);n[m]<--y;)n.subTo(v,n)}null!=t&&(n.drShiftTo(l,t),a!=s&&Ns.ZERO.subTo(t,t)),n.t=l,n.clamp(),u>0&&n.rShiftTo(u,n),a<0&&Ns.ZERO.subTo(n,n)}}},Ns.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))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},Ns.prototype.addTo=function(e,t){for(var n=0,r=0,o=Math.min(e.t,this.t);n<o;)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r+=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},Ns.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;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)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var n,r=(1<<t)-1,o=!1,i="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(o=!0,i=Ls(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(o=!0),o&&(i+=Ls(n));return o?i:"0"},Ns.prototype.negate=function(){var e=Us();return Ns.ZERO.subTo(this,e),e},Ns.prototype.abs=function(){return this.s<0?this.negate():this},Ns.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},Ns.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Vs(this[this.t-1]^this.s&this.DM)},Ns.prototype.mod=function(e){var t=Us();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Ns.ZERO)>0&&e.subTo(t,t),t},Ns.prototype.equals=function(e){return 0==this.compareTo(e)},Ns.prototype.add=function(e){var t=Us();return this.addTo(e,t),t},Ns.prototype.subtract=function(e){var t=Us();return this.subTo(e,t),t},Ns.prototype.multiply=function(e){var t=Us();return this.multiplyTo(e,t),t},Ns.prototype.divide=function(e){var t=Us();return this.divRemTo(e,t,null),t},Ns.prototype.modPow=function(e,t,n){var r,o=e.bitLength(),i=zs(1),a=new Ws(t);if(o<=0)return i;r=o<18?1:o<48?3:o<144?4:o<768?5:6;var s=new Array,u=3,l=r-1,c=(1<<r)-1;if(s[1]=a.convert(this),r>1){var d=Us();for(a.sqrTo(s[1],d);u<=c;)s[u]=Us(),a.mulTo(d,s[u-2],s[u]),u+=2}var f,h,p=e.t-1,m=!0,g=Us();for(o=Vs(e[p])-1;p>=0;){for(o>=l?f=e[p]>>o-l&c:(f=(e[p]&(1<<o+1)-1)<<l-o,p>0&&(f|=e[p-1]>>this.DB+o-l)),u=r;0==(1&f);)f>>=1,--u;if((o-=u)<0&&(o+=this.DB,--p),m)s[f].copyTo(i),m=!1;else{for(;u>1;)a.sqrTo(i,g),a.sqrTo(g,i),u-=2;u>0?a.sqrTo(i,g):(h=i,i=g,g=h),a.mulTo(g,s[f],i)}for(;p>=0&&0==(e[p]&1<<o);)a.sqrTo(i,g),h=i,i=g,g=h,--o<0&&(o=this.DB-1,--p)}var v=a.revert(i);return n(null,v),v},Ns.ZERO=zs(0),Ns.ONE=zs(1);var Gs=/^[89a-f]/i,qs="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",Ks=function(){function e(e){this.N=new Os(qs,16),this.g=new Os("2",16),this.k=new Os(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue((function(){})),this.infoBits=ks.Buffer.from("Caldera Derived Key","utf8"),this.poolName=e}var t=e.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(e){var t=this;this.largeAValue?e(null,this.largeAValue):this.calculateA(this.smallAValue,(function(n,r){n&&e(n,null),t.largeAValue=r,e(null,t.largeAValue)}))},t.generateRandomSmallA=function(){var e=Hs(128).toString("hex");return new Os(e,16)},t.generateRandomString=function(){return Hs(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(e,t,n){var r=this;this.randomPassword=this.generateRandomString();var o=""+e+t+":"+this.randomPassword,i=this.hash(o),a=Hs(16).toString("hex");this.SaltToHashDevices=this.padHex(new Os(a,16)),this.g.modPow(new Os(this.hexHash(this.SaltToHashDevices+i),16),this.N,(function(e,t){e&&n(e,null),r.verifierDevices=r.padHex(t),n(null,null)}))},t.calculateA=function(e,t){var n=this;this.g.modPow(e,this.N,(function(e,r){e&&t(e,null),r.mod(n.N).equals(Os.ZERO)&&t(new Error("Illegal paramater. A mod N cannot be 0."),null),t(null,r)}))},t.calculateU=function(e,t){return this.UHexHash=this.hexHash(this.padHex(e)+this.padHex(t)),new Os(this.UHexHash,16)},t.hash=function(e){var t=new(0,ne.Sha256);t.update(e);var n=t.digestSync(),r=ks.Buffer.from(n).toString("hex");return new Array(64-r.length).join("0")+r},t.hexHash=function(e){return this.hash(ks.Buffer.from(e,"hex"))},t.computehkdf=function(e,t){var n=ks.Buffer.concat([this.infoBits,ks.Buffer.from(String.fromCharCode(1),"utf8")]),r=new(0,ne.Sha256)(t);r.update(e);var o=r.digestSync(),i=new(0,ne.Sha256)(o);return i.update(n),i.digestSync().slice(0,16)},t.getPasswordAuthenticationKey=function(e,t,n,r,o){var i=this;if(n.mod(this.N).equals(Os.ZERO))throw new Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,n),this.UValue.equals(Os.ZERO))throw new Error("U cannot be zero.");var a=""+this.poolName+e+":"+t,s=this.hash(a),u=new Os(this.hexHash(this.padHex(r)+s),16);this.calculateS(u,n,(function(e,t){e&&o(e,null);var n=i.computehkdf(ks.Buffer.from(i.padHex(t),"hex"),ks.Buffer.from(i.padHex(i.UValue),"hex"));o(null,n)}))},t.calculateS=function(e,t,n){var r=this;this.g.modPow(e,this.N,(function(o,i){o&&n(o,null),t.subtract(r.k.multiply(i)).modPow(r.smallAValue.add(r.UValue.multiply(e)),r.N,(function(e,t){e&&n(e,null),n(null,t.mod(r.N))}))}))},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return"userAttributes."},t.padHex=function(e){if(!(e instanceof Os))throw new Error("Not a BigInteger");var t=e.compareTo(Os.ZERO)<0,n=e.abs().toString(16);if(n=n.length%2!=0?"0"+n:n,n=Gs.test(n)?"00"+n:n,t){var r=n.split("").map((function(e){var t=15&~parseInt(e,16);return"0123456789ABCDEF".charAt(t)})).join("");(n=new Os(r,16).add(Os.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},e}(),Zs=(ks=i("1sdKR"),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(ks.Buffer.from(e,"base64").toString("utf8"))}catch(e){return{}}},e}());function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ys(e,t)}var Qs=function(e){var t,n;function r(t){var n=(void 0===t?{}:t).AccessToken;return e.call(this,n||"")||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Ys(t,n),r}(Zs);function $s(e,t){return $s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$s(e,t)}var Js=function(e){var t,n;function r(t){var n=(void 0===t?{}:t).IdToken;return e.call(this,n||"")||this}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,$s(t,n),r}(Zs),Xs=function(){function e(e){var t=(void 0===e?{}:e).RefreshToken;this.token=t||""}return e.prototype.getToken=function(){return this.token},e}(),eu=(ks=i("1sdKR"),ne=i("iLAal"),"aws-amplify/5.0.4"),tu={userAgent:eu+" js",product:"",navigator:null,isReactNative:!1};
/*!
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/if("undefined"!=typeof navigator&&navigator.product)if(tu.product=navigator.product||"",tu.navigator=navigator||null,"ReactNative"===navigator.product)tu.userAgent=eu+" react-native",tu.isReactNative=!0;else tu.userAgent=eu+" js",tu.isReactNative=!1;var nu=function(){function e(e){var t=void 0===e?{}:e,n=t.IdToken,r=t.RefreshToken,o=t.AccessToken,i=t.ClockDrift;if(null==o||null==n)throw new Error("Id token and Access Token must be present.");this.idToken=n,this.refreshToken=r,this.accessToken=o,this.clockDrift=void 0===i?this.calculateClockDrift():i}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 e<this.accessToken.getExpiration()&&e<this.idToken.getExpiration()},e}(),ru=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ou=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],iu=function(){function e(){}return e.prototype.getNowString=function(){var e=new Date,t=ou[e.getUTCDay()],n=ru[e.getUTCMonth()],r=e.getUTCDate(),o=e.getUTCHours();o<10&&(o="0"+o);var i=e.getUTCMinutes();i<10&&(i="0"+i);var a=e.getUTCSeconds();return a<10&&(a="0"+a),t+" "+n+" "+r+" "+o+":"+i+":"+a+" UTC "+e.getUTCFullYear()},e}(),au=function(){function e(e){var t=void 0===e?{}:e,n=t.Name,r=t.Value;this.Name=n||"",this.Value=r||""}var t=e.prototype;return t.getValue=function(){return this.Value},t.setValue=function(e){return this.Value=e,this},t.getName=function(){return this.Name},t.setName=function(e){return this.Name=e,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},e}(),su={},uu=function(){function e(){}return e.setItem=function(e,t){return su[e]=t,su[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(su,e)?su[e]:void 0},e.removeItem=function(e){return delete su[e]},e.clear=function(){return su={}},e}(),lu=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(e){this.storageWindow=uu}}return e.prototype.getStorage=function(){return this.storageWindow},e}(),cu="undefined"!=typeof navigator?tu.isReactNative?"react-native":navigator.userAgent:"nodejs",du=function(){function e(e){if(null==e||null==e.Username||null==e.Pool)throw new 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 lu).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 n=this,r=e.getAuthParameters();r.USERNAME=this.username;var o=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),i={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:o};this.getUserContextData()&&(i.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",i,(function(e,r){if(e)return t.onFailure(e);var o=r.ChallengeName,i=r.ChallengeParameters;return"CUSTOM_CHALLENGE"===o?(n.Session=r.Session,t.customChallenge(i)):(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(),t.onSuccess(n.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(new Error("Authentication flow type is invalid."))},t.authenticateUserDefaultAuth=function(e,t){var n,r,o=this,i=new Ks(this.pool.getUserPoolName()),a=new iu,s={};null!=this.deviceKey&&(s.DEVICE_KEY=this.deviceKey),s.USERNAME=this.username,i.getLargeAValue((function(u,l){u&&t.onFailure(u),s.SRP_A=l.toString(16),"CUSTOM_AUTH"===o.authenticationFlowType&&(s.CHALLENGE_NAME="SRP_A");var c=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),d={AuthFlow:o.authenticationFlowType,ClientId:o.pool.getClientId(),AuthParameters:s,ClientMetadata:c};o.getUserContextData(o.username)&&(d.UserContextData=o.getUserContextData(o.username)),o.client.request("InitiateAuth",d,(function(s,u){if(s)return t.onFailure(s);var l=u.ChallengeParameters;o.username=l.USER_ID_FOR_SRP,o.userDataKey=o.keyPrefix+"."+o.username+".userData",n=new Os(l.SRP_B,16),r=new Os(l.SALT,16),o.getCachedDeviceKeyAndPassword(),i.getPasswordAuthenticationKey(o.username,e.getPassword(),n,r,(function(e,n){e&&t.onFailure(e);var r=a.getNowString(),s=ks.Buffer.concat([ks.Buffer.from(o.pool.getUserPoolName(),"utf8"),ks.Buffer.from(o.username,"utf8"),ks.Buffer.from(l.SECRET_BLOCK,"base64"),ks.Buffer.from(r,"utf8")]),d=new(0,ne.Sha256)(n);d.update(s);var f=d.digestSync(),h=ks.Buffer.from(f).toString("base64"),p={};p.USERNAME=o.username,p.PASSWORD_CLAIM_SECRET_BLOCK=l.SECRET_BLOCK,p.TIMESTAMP=r,p.PASSWORD_CLAIM_SIGNATURE=h,null!=o.deviceKey&&(p.DEVICE_KEY=o.deviceKey);var m={ChallengeName:"PASSWORD_VERIFIER",ClientId:o.pool.getClientId(),ChallengeResponses:p,Session:u.Session,ClientMetadata:c};o.getUserContextData()&&(m.UserContextData=o.getUserContextData()),function e(t,n){return o.client.request("RespondToAuthChallenge",t,(function(r,i){return r&&"ResourceNotFoundException"===r.code&&-1!==r.message.toLowerCase().indexOf("device")?(p.DEVICE_KEY=null,o.deviceKey=null,o.randomPassword=null,o.deviceGroupKey=null,o.clearCachedDeviceKeyAndPassword(),e(t,n)):n(r,i)}))}(m,(function(e,n){return e?t.onFailure(e):o.authenticateUserInternal(n,i,t)}))}))}))}))},t.authenticateUserPlainUsernamePassword=function(e,t){var n=this,r={};if(r.USERNAME=this.username,r.PASSWORD=e.getPassword(),r.PASSWORD){var o=new Ks(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(r.DEVICE_KEY=this.deviceKey);var i=0!==Object.keys(e.getValidationData()).length?e.getValidationData():e.getClientMetadata(),a={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:r,ClientMetadata:i};this.getUserContextData(this.username)&&(a.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",a,(function(e,r){return e?t.onFailure(e):n.authenticateUserInternal(r,o,t)}))}else t.onFailure(new Error("PASSWORD parameter is required"))},t.authenticateUserInternal=function(e,t,n){var r=this,o=e.ChallengeName,i=e.ChallengeParameters;if("SMS_MFA"===o)return this.Session=e.Session,n.mfaRequired(o,i);if("SELECT_MFA_TYPE"===o)return this.Session=e.Session,n.selectMFAType(o,i);if("MFA_SETUP"===o)return this.Session=e.Session,n.mfaSetup(o,i);if("SOFTWARE_TOKEN_MFA"===o)return this.Session=e.Session,n.totpRequired(o,i);if("CUSTOM_CHALLENGE"===o)return this.Session=e.Session,n.customChallenge(i);if("NEW_PASSWORD_REQUIRED"===o){this.Session=e.Session;var a=null,s=null,u=[],l=t.getNewPasswordRequiredChallengeUserAttributePrefix();if(i&&(a=JSON.parse(e.ChallengeParameters.userAttributes),s=JSON.parse(e.ChallengeParameters.requiredAttributes)),s)for(var c=0;c<s.length;c++)u[c]=s[c].substr(l.length);return n.newPasswordRequired(a,u)}if("DEVICE_SRP_AUTH"===o)return this.Session=e.Session,void this.getDeviceResponse(n);this.signInUserSession=this.getCognitoUserSession(e.AuthenticationResult),this.challengeName=o,this.cacheTokens();var d=e.AuthenticationResult.NewDeviceMetadata;if(null==d)return n.onSuccess(this.signInUserSession);t.generateHashDevice(e.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,e.AuthenticationResult.NewDeviceMetadata.DeviceKey,(function(o){if(o)return n.onFailure(o);var i={Salt:ks.Buffer.from(t.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:ks.Buffer.from(t.getVerifierDevices(),"hex").toString("base64")};r.verifierDevices=i.PasswordVerifier,r.deviceGroupKey=d.DeviceGroupKey,r.randomPassword=t.getRandomPassword(),r.client.request("ConfirmDevice",{DeviceKey:d.DeviceKey,AccessToken:r.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:i,DeviceName:cu},(function(t,o){return t?n.onFailure(t):(r.deviceKey=e.AuthenticationResult.NewDeviceMetadata.DeviceKey,r.cacheDeviceKeyAndPassword(),!0===o.UserConfirmationNecessary?n.onSuccess(r.signInUserSession,o.UserConfirmationNecessary):n.onSuccess(r.signInUserSession))}))}))},t.completeNewPasswordChallenge=function(e,t,n,r){var o=this;if(!e)return n.onFailure(new Error("New password is required."));var i=new Ks(this.pool.getUserPoolName()),a=i.getNewPasswordRequiredChallengeUserAttributePrefix(),s={};t&&Object.keys(t).forEach((function(e){s[a+e]=t[e]})),s.NEW_PASSWORD=e,s.USERNAME=this.username;var u={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:s,Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(u.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",u,(function(e,t){return e?n.onFailure(e):o.authenticateUserInternal(t,i,n)}))},t.getDeviceResponse=function(e,t){var n=this,r=new Ks(this.deviceGroupKey),o=new iu,i={};i.USERNAME=this.username,i.DEVICE_KEY=this.deviceKey,r.getLargeAValue((function(a,s){a&&e.onFailure(a),i.SRP_A=s.toString(16);var u={ChallengeName:"DEVICE_SRP_AUTH",ClientId:n.pool.getClientId(),ChallengeResponses:i,ClientMetadata:t,Session:n.Session};n.getUserContextData()&&(u.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",u,(function(t,i){if(t)return e.onFailure(t);var a=i.ChallengeParameters,s=new Os(a.SRP_B,16),u=new Os(a.SALT,16);r.getPasswordAuthenticationKey(n.deviceKey,n.randomPassword,s,u,(function(t,r){if(t)return e.onFailure(t);var s=o.getNowString(),u=ks.Buffer.concat([ks.Buffer.from(n.deviceGroupKey,"utf8"),ks.Buffer.from(n.deviceKey,"utf8"),ks.Buffer.from(a.SECRET_BLOCK,"base64"),ks.Buffer.from(s,"utf8")]),l=new(0,ne.Sha256)(r);l.update(u);var c=l.digestSync(),d=ks.Buffer.from(c).toString("base64"),f={};f.USERNAME=n.username,f.PASSWORD_CLAIM_SECRET_BLOCK=a.SECRET_BLOCK,f.TIMESTAMP=s,f.PASSWORD_CLAIM_SIGNATURE=d,f.DEVICE_KEY=n.deviceKey;var h={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:n.pool.getClientId(),ChallengeResponses:f,Session:i.Session};n.getUserContextData()&&(h.UserContextData=n.getUserContextData()),n.client.request("RespondToAuthChallenge",h,(function(t,r){return t?e.onFailure(t):(n.signInUserSession=n.getCognitoUserSession(r.AuthenticationResult),n.cacheTokens(),e.onSuccess(n.signInUserSession))}))}))}))}))},t.confirmRegistration=function(e,t,n,r){var o={ClientId:this.pool.getClientId(),ConfirmationCode:e,Username:this.username,ForceAliasCreation:t,ClientMetadata:r};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",o,(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.sendCustomChallengeAnswer=function(e,t,n){var r=this,o={};o.USERNAME=this.username,o.ANSWER=e;var i=new Ks(this.pool.getUserPoolName());this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(o.DEVICE_KEY=this.deviceKey);var a={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:o,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:n};this.getUserContextData()&&(a.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",a,(function(e,n){return e?t.onFailure(e):r.authenticateUserInternal(n,i,t)}))},t.sendMFACode=function(e,t,n,r){var o=this,i={};i.USERNAME=this.username,i.SMS_MFA_CODE=e;var a=n||"SMS_MFA";"SOFTWARE_TOKEN_MFA"===a&&(i.SOFTWARE_TOKEN_MFA_CODE=e),null!=this.deviceKey&&(i.DEVICE_KEY=this.deviceKey);var s={ChallengeName:a,ChallengeResponses:i,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:r};this.getUserContextData()&&(s.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",s,(function(e,n){if(e)return t.onFailure(e);if("DEVICE_SRP_AUTH"!==n.ChallengeName){if(o.signInUserSession=o.getCognitoUserSession(n.AuthenticationResult),o.cacheTokens(),null==n.AuthenticationResult.NewDeviceMetadata)return t.onSuccess(o.signInUserSession);var r=new Ks(o.pool.getUserPoolName());r.generateHashDevice(n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,n.AuthenticationResult.NewDeviceMetadata.DeviceKey,(function(e){if(e)return t.onFailure(e);var i={Salt:ks.Buffer.from(r.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:ks.Buffer.from(r.getVerifierDevices(),"hex").toString("base64")};o.verifierDevices=i.PasswordVerifier,o.deviceGroupKey=n.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,o.randomPassword=r.getRandomPassword(),o.client.request("ConfirmDevice",{DeviceKey:n.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:o.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:i,DeviceName:cu},(function(e,r){return e?t.onFailure(e):(o.deviceKey=n.AuthenticationResult.NewDeviceMetadata.DeviceKey,o.cacheDeviceKeyAndPassword(),!0===r.UserConfirmationNecessary?t.onSuccess(o.signInUserSession,r.UserConfirmationNecessary):t.onSuccess(o.signInUserSession))}))}))}else o.getDeviceResponse(t)}))},t.changePassword=function(e,t,n,r){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:e,ProposedPassword:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:r},(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.enableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);var t=[];t.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.request("SetUserSettings",{MFAOptions:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?e(t,null):e(null,"SUCCESS")}))},t.setUserMfaPreference=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n(new Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:e,SoftwareTokenMfaSettings:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?n(e,null):n(null,"SUCCESS")}))},t.disableMFA=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("SetUserSettings",{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t){return t?e(t,null):e(null,"SUCCESS")}))},t.deleteUser=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:t},(function(t){return t?e(t,null):(n.clearCachedUser(),e(null,"SUCCESS"))}))},t.updateAttributes=function(e,t,n){var r=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:e,ClientMetadata:n},(function(e,n){return e?t(e,null):r.getUserData((function(){return t(null,"SUCCESS",n)}),{bypassCache:!0})}))},t.getUserAttributes=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n){if(t)return e(t,null);for(var r=[],o=0;o<n.UserAttributes.length;o++){var i={Name:n.UserAttributes[o].Name,Value:n.UserAttributes[o].Value},a=new au(i);r.push(a)}return e(null,r)}))},t.getMFAOptions=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e(new Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n){return t?e(t,null):e(null,n.MFAOptions)}))},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(e){var t=this;return void 0===e&&(e={}),new Promise((function(n){var r=t.signInUserSession.getRefreshToken();r&&r.getToken()?t.refreshSession(r,n,e.clientMetadata):n()}))},t.getUserData=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return this.clearCachedUserData(),e(new Error("User is not authenticated"),null);var r=this.getUserDataFromCache();if(r)if(this.isFetchUserDataAndTokenRequired(t))this.fetchUserData().then((function(e){return n.refreshSessionIfPossible(t).then((function(){return e}))})).then((function(t){return e(null,t)})).catch(e);else try{return void e(null,JSON.parse(r))}catch(t){return this.clearCachedUserData(),void e(t,null)}else this.fetchUserData().then((function(t){e(null,t)})).catch(e)},t.getUserDataFromCache=function(){return this.storage.getItem(this.userDataKey)},t.isFetchUserDataAndTokenRequired=function(e){var t=(e||{}).bypassCache;return void 0!==t&&t},t.fetchUserData=function(){var e=this;return this.createGetUserRequest().then((function(t){return e.cacheUserData(t),t}))},t.deleteAttributes=function(e,t){var n=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(new Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?t(e,null):n.getUserData((function(){return t(null,"SUCCESS")}),{bypassCache:!0})}))},t.resendConfirmationCode=function(e,t){var n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.client.request("ResendConfirmationCode",n,(function(t,n){return t?e(t,null):e(null,n)}))},t.getSession=function(e,t){if(void 0===t&&(t={}),null==this.username)return e(new Error("Username is null. Cannot retrieve a new session"),null);if(null!=this.signInUserSession&&this.signInUserSession.isValid())return e(null,this.signInUserSession);var n="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,r=n+".idToken",o=n+".accessToken",i=n+".refreshToken",a=n+".clockDrift";if(this.storage.getItem(r)){var s=new Js({IdToken:this.storage.getItem(r)}),u=new Qs({AccessToken:this.storage.getItem(o)}),l=new Xs({RefreshToken:this.storage.getItem(i)}),c=parseInt(this.storage.getItem(a),0)||0,d=new nu({IdToken:s,AccessToken:u,RefreshToken:l,ClockDrift:c});if(d.isValid())return this.signInUserSession=d,e(null,this.signInUserSession);if(!l.getToken())return e(new Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(l,e,t.clientMetadata)}else e(new Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(e,t,n){var r=this,o=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(t):t,i={};i.REFRESH_TOKEN=e.getToken();var a="CognitoIdentityServiceProvider."+this.pool.getClientId(),s=a+".LastAuthUser";if(this.storage.getItem(s)){this.username=this.storage.getItem(s);var u=a+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(u),i.DEVICE_KEY=this.deviceKey}var l={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:i,ClientMetadata:n};this.getUserContextData()&&(l.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",l,(function(t,n){if(t)return"NotAuthorizedException"===t.code&&r.clearCachedUser(),o(t,null);if(n){var i=n.AuthenticationResult;return Object.prototype.hasOwnProperty.call(i,"RefreshToken")||(i.RefreshToken=e.getToken()),r.signInUserSession=r.getCognitoUserSession(i),r.cacheTokens(),o(null,r.signInUserSession)}}))},t.cacheTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",n=e+"."+this.username+".accessToken",r=e+"."+this.username+".refreshToken",o=e+"."+this.username+".clockDrift",i=e+".LastAuthUser";this.storage.setItem(t,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(n,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(r,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(o,""+this.signInUserSession.getClockDrift()),this.storage.setItem(i,this.username)},t.cacheUserData=function(e){this.storage.setItem(this.userDataKey,JSON.stringify(e))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},t.cacheDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";this.storage.setItem(t,this.deviceKey),this.storage.setItem(n,this.randomPassword),this.storage.setItem(r,this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";this.storage.getItem(t)&&(this.deviceKey=this.storage.getItem(t),this.randomPassword=this.storage.getItem(n),this.deviceGroupKey=this.storage.getItem(r))},t.clearCachedDeviceKeyAndPassword=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,t=e+".deviceKey",n=e+".randomPasswordKey",r=e+".deviceGroupKey";this.storage.removeItem(t),this.storage.removeItem(n),this.storage.removeItem(r)},t.clearCachedTokens=function(){var e="CognitoIdentityServiceProvider."+this.pool.getClientId(),t=e+"."+this.username+".idToken",n=e+"."+this.username+".accessToken",r=e+"."+this.username+".refreshToken",o=e+".LastAuthUser",i=e+"."+this.username+".clockDrift";this.storage.removeItem(t),this.storage.removeItem(n),this.storage.removeItem(r),this.storage.removeItem(o),this.storage.removeItem(i)},t.getCognitoUserSession=function(e){var t=new Js(e),n=new Qs(e),r=new Xs(e);return new nu({IdToken:t,AccessToken:n,RefreshToken:r})},t.forgotPassword=function(e,t){var n={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:t};this.getUserContextData()&&(n.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",n,(function(t,n){return t?e.onFailure(t):"function"==typeof e.inputVerificationCode?e.inputVerificationCode(n):e.onSuccess(n)}))},t.confirmPassword=function(e,t,n,r){var o={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:e,Password:t,ClientMetadata:r};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",o,(function(e){return e?n.onFailure(e):n.onSuccess("SUCCESS")}))},t.getAttributeVerificationCode=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:e,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:n},(function(e,n){return e?t.onFailure(e):"function"==typeof t.inputVerificationCode?t.inputVerificationCode(n):t.onSuccess("SUCCESS")}))},t.verifyAttribute=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:e,Code:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(e){return e?n.onFailure(e):n.onSuccess("SUCCESS")}))},t.getDevice=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},(function(t,n){return t?e.onFailure(t):e.onSuccess(n)}))},t.forgetSpecificDevice=function(e,t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(new Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:e},(function(e){return e?t.onFailure(e):t.onSuccess("SUCCESS")}))},t.forgetDevice=function(e){var t=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:e.onFailure,onSuccess:function(n){return t.deviceKey=null,t.deviceGroupKey=null,t.randomPassword=null,t.clearCachedDeviceKeyAndPassword(),e.onSuccess(n)}})},t.setDeviceStatusRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},(function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")}))},t.setDeviceStatusNotRemembered=function(e){if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},(function(t){return t?e.onFailure(t):e.onSuccess("SUCCESS")}))},t.listDevices=function(e,t,n){if(null==this.signInUserSession||!this.signInUserSession.isValid())return n.onFailure(new Error("User is not authenticated"));var r={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:e};t&&(r.PaginationToken=t),this.client.request("ListDevices",r,(function(e,t){return e?n.onFailure(e):n.onSuccess(t)}))},t.globalSignOut=function(e){var t=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return e.onFailure(new Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(n){return n?e.onFailure(n):(t.clearCachedUser(),e.onSuccess("SUCCESS"))}))},t.signOut=function(e){var t=this;e&&"function"==typeof e?this.getSession((function(n,r){if(n)return e(n);t.revokeTokens((function(n){t.cleanClientData(),e(n)}))})):this.cleanClientData()},t.revokeTokens=function(e){if(void 0===e&&(e=function(){}),"function"!=typeof e)throw new Error("Invalid revokeTokenCallback. It should be a function.");if(!this.signInUserSession)return e(new Error("User is not authenticated"));if(!this.signInUserSession.getAccessToken())return e(new Error("No Access token available"));var t=this.signInUserSession.getRefreshToken().getToken(),n=this.signInUserSession.getAccessToken();if(this.isSessionRevocable(n)&&t)return this.revokeToken({token:t,callback:e});e()},t.isSessionRevocable=function(e){if(e&&"function"==typeof e.decodePayload)try{return!!e.decodePayload().origin_jti}catch(e){}return!1},t.cleanClientData=function(){this.signInUserSession=null,this.clearCachedUser()},t.revokeToken=function(e){var t=e.token,n=e.callback;this.client.requestWithRetry("RevokeToken",{Token:t,ClientId:this.pool.getClientId()},(function(e){if(e)return n(e);n()}))},t.sendMFASelectionAnswer=function(e,t){var n=this,r={};r.USERNAME=this.username,r.ANSWER=e;var o={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:r,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(o.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",o,(function(r,o){return r?t.onFailure(r):(n.Session=o.Session,"SMS_MFA"===e?t.mfaRequired(o.ChallengeName,o.ChallengeParameters):"SOFTWARE_TOKEN_MFA"===e?t.totpRequired(o.ChallengeName,o.ChallengeParameters):void 0)}))},t.getUserContextData=function(){return this.pool.getUserContextData(this.username)},t.associateSoftwareToken=function(e){var t=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},(function(t,n){return t?e.onFailure(t):e.associateSecretCode(n.SecretCode)})):this.client.request("AssociateSoftwareToken",{Session:this.Session},(function(n,r){return n?e.onFailure(n):(t.Session=r.Session,e.associateSecretCode(r.SecretCode))}))},t.verifySoftwareToken=function(e,t,n){var r=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:e,FriendlyDeviceName:t},(function(e,t){return e?n.onFailure(e):n.onSuccess(t)})):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:e,FriendlyDeviceName:t},(function(e,t){if(e)return n.onFailure(e);r.Session=t.Session;var o={};o.USERNAME=r.username;var i={ChallengeName:"MFA_SETUP",ClientId:r.pool.getClientId(),ChallengeResponses:o,Session:r.Session};r.getUserContextData()&&(i.UserContextData=r.getUserContextData()),r.client.request("RespondToAuthChallenge",i,(function(e,t){return e?n.onFailure(e):(r.signInUserSession=r.getCognitoUserSession(t.AuthenticationResult),r.cacheTokens(),n.onSuccess(r.signInUserSession))}))}))},e}();function fu(){}self.fetch||(self.fetch=i("43aOD").default||i("43aOD")),fu.prototype.userAgent=tu.userAgent;var hu=fu;function pu(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vu(e,t)}function mu(e){var t="function"==typeof Map?new Map:void 0;return mu=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return gu(e,arguments,yu(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),vu(r,e)},mu(e)}function gu(e,t,n){return gu=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&vu(o,n.prototype),o},gu.apply(null,arguments)}function vu(e,t){return vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vu(e,t)}function yu(e){return yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yu(e)}var bu=function(e){function t(t,n,r,o){var i;return(i=e.call(this,t)||this).code=n,i.name=r,i.statusCode=o,i}return pu(t,e),t}(mu(Error)),wu=function(){function e(e,t,n){this.endpoint=t||"https://cognito-idp."+e+".amazonaws.com/";var r=(n||{}).credentials;this.fetchOptions=r?{credentials:r}:{}}var t=e.prototype;return t.promisifyRequest=function(e,t){var n=this;return new Promise((function(r,o){n.request(e,t,(function(e,t){e?o(new bu(e.message,e.code,e.name,e.statusCode)):r(t)}))}))},t.requestWithRetry=function(e,t,n){var r=this;(function(e,t,n){void 0===n&&(n=Au);return Eu(e,t,function(e){var t=100,n=100;return function(r){var o=Math.pow(2,r)*t+n*Math.random();return!(o>e)&&o}}(n))})((function(t){return new Promise((function(n,o){r.request(e,t,(function(e,t){e?o(e):n(t)}))}))}),[t],5e3).then((function(e){return n(null,e)})).catch((function(e){return n(e)}))},t.request=function(e,t,n){var r,o={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":hu.prototype.userAgent,"Cache-Control":"no-store"},i=Object.assign({},this.fetchOptions,{headers:o,method:"POST",mode:"cors",body:JSON.stringify(t)});fetch(this.endpoint,i).then((function(e){return r=e,e}),(function(e){if(e instanceof TypeError)throw new Error("Network error");throw e})).then((function(e){return e.json().catch((function(){return{}}))})).then((function(e){if(r.ok)return n(null,e);e;var t=(e.__type||e.code).split("#").pop(),o=new Error(e.message||e.Message||null);return o.name=t,o.code=t,n(o)})).catch((function(e){if(r&&r.headers&&r.headers.get("x-amzn-errortype"))try{var t=r.headers.get("x-amzn-errortype").split(":")[0],o=new Error(r.status?r.status.toString():null);return o.code=t,o.name=t,o.statusCode=r.status,n(o)}catch(t){return n(e)}else e instanceof Error&&"Network error"===e.message&&(e.code="NetworkError");return n(e)}))},e}(),Su={debug:function(){}},Cu=(Error,function(e){return e&&e.nonRetryable});function Eu(e,t,n,r){if(void 0===r&&(r=1),"function"!=typeof e)throw Error("functionToRetry must be a function");return Su.debug(e.name+" attempt #"+r+" with args: "+JSON.stringify(t)),e.apply(void 0,t).catch((function(o){if(Su.debug("error on "+e.name,o),Cu(o))throw Su.debug(e.name+" non retryable error",o),o;var i=n(r,t,o);if(Su.debug(e.name+" retrying in "+i+" ms"),!1!==i)return new Promise((function(e){return setTimeout(e,i)})).then((function(){return Eu(e,t,n,r+1)}));throw o}))}var Au=3e5;var _u=55,Iu=function(){function e(e,t){var n=e||{},r=n.UserPoolId,o=n.ClientId,i=n.endpoint,a=n.fetchOptions,s=n.AdvancedSecurityDataCollectionFlag;if(!r||!o)throw new Error("Both UserPoolId and ClientId are required.");if(r.length>_u||!/^[\w-]+_[0-9a-zA-Z]+$/.test(r))throw new Error("Invalid UserPoolId format.");var u=r.split("_")[0];this.userPoolId=r,this.clientId=o,this.client=new wu(u,i,a),this.advancedSecurityDataCollectionFlag=!1!==s,this.storage=e.Storage||(new lu).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,n,r,o,i){var a=this,s={ClientId:this.clientId,Username:e,Password:t,UserAttributes:n,ValidationData:r,ClientMetadata:i};this.getUserContextData(e)&&(s.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",s,(function(t,n){if(t)return o(t,null);var r={Username:e,Pool:a,Storage:a.storage},i={user:new du(r),userConfirmed:n.UserConfirmed,userSub:n.UserSub,codeDeliveryDetails:n.CodeDeliveryDetails};return o(null,i)}))},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);if(t){var n={Username:t,Pool:this,Storage:this.storage};return new du(n)}return null},t.getUserContextData=function(e){if("undefined"!=typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var n=t.getData(e,this.userPoolId,this.clientId);if(n)return{EncodedData:n}}return{}}},e}(),ku={};!function(e){if("function"==typeof define&&define.amd&&(define(e),!0),ku=e(),!!0){var t=window.Cookies,n=window.Cookies=e();n.noConflict=function(){return window.Cookies=t,n}}}((function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(t,n,i){if("undefined"!=typeof document){"number"==typeof(i=e({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(e){}n=r.write?r.write(n,t):encodeURIComponent(String(n)).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 s="";for(var u in i)i[u]&&(s+="; "+u,!0!==i[u]&&(s+="="+i[u].split(";")[0]));return document.cookie=t+"="+n+s}}function a(e,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],a=0;a<i.length;a++){var s=i[a].split("="),u=s.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=t(s[0]);if(u=(r.read||r)(u,l)||t(u),n)try{u=JSON.parse(u)}catch(e){}if(o[l]=u,e===l)break}catch(e){}}return e?o[e]:o}}return o.set=i,o.get=function(e){return a(e,!1)},o.getJSON=function(e){return a(e,!0)},o.remove=function(t,n){i(t,"",e(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))}));var xu,Tu,Pu=function(){function e(e){if(!e.domain)throw new Error("The domain of cookieStorage can not be undefined.");if(this.domain=e.domain,e.path?this.path=e.path:this.path="/",Object.prototype.hasOwnProperty.call(e,"expires")?this.expires=e.expires:this.expires=365,Object.prototype.hasOwnProperty.call(e,"secure")?this.secure=e.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!["strict","lax","none"].includes(e.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===e.sameSite&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=e.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(e,t){var n={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(n.sameSite=this.sameSite),ku.set(e,t,n),ku.get(e)},t.getItem=function(e){return ku.get(e)},t.removeItem=function(e){var t={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(t.sameSite=this.sameSite),ku.remove(e,t)},t.clear=function(){for(var e=ku.get(),t=Object.keys(e).length,n=0;n<t;++n)this.removeItem(Object.keys(e)[n]);return{}},e}(),Ou=function(e){var t=window.open(e,"_self");return t?Promise.resolve(t):Promise.reject()},Nu=(ks=i("1sdKR"),ne=i("iLAal"),"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default"),Uu=function(e,t,n){P.dispatch("auth",{event:e,data:t,message:n},"Auth",Nu)},Fu=new y("OAuth"),Ru=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,o=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||Ou,this._config=t,this._cognitoClientId=n,!this.isValidScopes(o))throw Error("scopes must be a String Array");this._scopes=o}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))},e.prototype.oauthSignIn=function(e,t,n,r,o,i){void 0===e&&(e="code"),void 0===o&&(o=fs.Cognito);var a=this._generateState(32),s=i?a+"-"+i.split("").map((function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):a;!function(e){window.sessionStorage.setItem("oauth_state",e)}(s);var u,l=this._generateRandom(128);u=l,window.sessionStorage.setItem("ouath_pkce_key",u);var c=this._generateChallenge(l),d=this._scopes.join(" "),f=Object.entries(ys(ys({redirect_uri:n,response_type:e,client_id:r,identity_provider:o,scope:d,state:s},"code"===e?{code_challenge:c}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=Ss(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),h="https://"+t+"/oauth2/authorize?"+f;Fu.debug("Redirecting to "+h),this._urlOpener(h,n)},e.prototype._handleCodeFlow=function(e){return bs(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,u,l,c,d,f,h,p;return ws(this,(function(m){switch(m.label){case 0:return t=(J(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=Ss(t,2),o=r[0],i=r[1];return ys(ys({},e),((n={})[o]=i,n))}),{code:void 0}).code,n=J(e).pathname||"/",r=J(this._config.redirectSignIn).pathname||"/",t&&n===r?(o="https://"+this._config.domain+"/oauth2/token",Uu("codeFlow",{},"Retrieving tokens from "+o),i=As(this._config)?this._cognitoClientId:this._config.clientID,a=As(this._config)?this._config.redirectSignIn:this._config.redirectUri,g=window.sessionStorage.getItem("ouath_pkce_key"),window.sessionStorage.removeItem("ouath_pkce_key"),u=ys({grant_type:"authorization_code",code:t,client_id:i,redirect_uri:a},(s=g)?{code_verifier:s}:{}),Fu.debug("Calling token endpoint: "+o+" with",u),l=Object.entries(u).map((function(e){var t=Ss(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),[4,fetch(o,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:l})]):[2];case 1:return[4,m.sent().json()];case 2:if(c=m.sent(),d=c.access_token,f=c.refresh_token,h=c.id_token,p=c.error)throw new Error(p);return[2,{accessToken:d,refreshToken:f,idToken:h}]}var g}))}))},e.prototype._handleImplicitFlow=function(e){return bs(this,void 0,void 0,(function(){var t,n,r;return ws(this,(function(o){return t=(J(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=Ss(t,2),o=r[0],i=r[1];return ys(ys({},e),((n={})[o]=i,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,Uu("implicitFlow",{},"Got tokens from "+e),Fu.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return bs(this,void 0,void 0,(function(){var t,n,r,o,i,a,s;return ws(this,(function(u){switch(u.label){case 0:if(u.trys.push([0,5,,6]),t=e?ys(ys({},(J(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=Ss(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})),(J(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=Ss(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return o=this._validateState(t),Fu.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(i=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,ys.apply(void 0,[ys.apply(void 0,i.concat([u.sent()])),{state:o}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,ys.apply(void 0,[ys.apply(void 0,a.concat([u.sent()])),{state:o}])];case 4:return[3,6];case 5:throw s=u.sent(),Fu.error("Error handling auth response.",s),s;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t,n=(t=window.sessionStorage.getItem("oauth_state"),window.sessionStorage.removeItem("oauth_state"),t),r=e.state;if(n&&n!==r)throw new Error("Invalid state in OAuth flow");return r}},e.prototype.signOut=function(){return bs(this,void 0,void 0,(function(){var e,t,n;return ws(this,(function(r){return e="https://"+this._config.domain+"/logout?",t=As(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=As(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=Ss(e,2);return t[0]+"="+t[1]})).join("&"),Uu("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),Fu.debug("Signing out from "+e),[2,this._urlOpener(e,n)]}))}))},e.prototype._generateState=function(e){for(var t="",n=e,r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";n>0;--n)t+=r[Math.round(Math.random()*(r.length-1))];return t},e.prototype._generateChallenge=function(e){var t=new(0,ne.Sha256);t.update(e);var n=t.digestSync(),r=ks.Buffer.from(n).toString("base64");return this._base64URL(r)},e.prototype._base64URL=function(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var n=0;n<e;n+=1)t[n]=Math.random()*"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~".length|0;return this._bufferToString(t)},e.prototype._bufferToString=function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=0;r<e.byteLength;r+=1){var o=e[r]%t.length;n.push(t[o])}return n.join("")},e}(),Mu=Ru,Du=function(e){if(te().isBrowser&&window.location)e({url:window.location.href});else if(!te().isNode)throw new Error("Not supported")};(Tu=xu||(xu={})).DEFAULT_MSG="Authentication Error",Tu.EMPTY_EMAIL="Email cannot be empty",Tu.EMPTY_PHONE="Phone number cannot be empty",Tu.EMPTY_USERNAME="Username cannot be empty",Tu.INVALID_USERNAME="The username should either be a string or one of the sign in types",Tu.EMPTY_PASSWORD="Password cannot be empty",Tu.EMPTY_CODE="Confirmation code cannot be empty",Tu.SIGN_UP_ERROR="Error creating account",Tu.NO_MFA="No valid MFA method provided",Tu.INVALID_MFA="Invalid MFA type",Tu.EMPTY_CHALLENGE="Challenge response cannot be empty",Tu.NO_USER_SESSION="Failed to get the session because the user is empty",Tu.NETWORK_ERROR="Network Error",Tu.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",Tu.AUTOSIGNIN_ERROR="Please use your credentials to sign in";var ju=new y("AuthError"),Lu=function(e){function t(n){var r=this,o=zu[n],i=o.message,a=o.log;return(r=e.call(this,i)||this).constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="AuthError",r.log=a||i,ju.error(r.log),r}return ds(t,e),t}(Error),Bu=function(e){function t(n){var r=e.call(this,n)||this;return r.constructor=t,Object.setPrototypeOf(r,t.prototype),r.name="NoUserPoolError",r}return ds(t,e),t}(Lu),zu={noConfig:{message:xu.DEFAULT_MSG,log:"\n Error: Amplify has not been configured correctly.\n This error is typically caused by one of the following scenarios:\n\n 1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n \n 2. There might be multiple conflicting versions of amplify packages in your node_modules.\n\t\t\t\tRefer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)\n "},missingAuthConfig:{message:xu.DEFAULT_MSG,log:"\n Error: Amplify has not been configured correctly. \n The configuration object is missing required auth properties.\n This error is typically caused by one of the following scenarios:\n\n 1. Did you run `amplify push` after adding auth via `amplify add auth`?\n See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n\n 2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.\n "},emptyUsername:{message:xu.EMPTY_USERNAME},invalidUsername:{message:xu.INVALID_USERNAME},emptyPassword:{message:xu.EMPTY_PASSWORD},emptyCode:{message:xu.EMPTY_CODE},signUpError:{message:xu.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:xu.NO_MFA},invalidMFA:{message:xu.INVALID_MFA},emptyChallengeResponse:{message:xu.EMPTY_CHALLENGE},noUserSession:{message:xu.NO_USER_SESSION},deviceConfig:{message:xu.DEVICE_CONFIG},networkError:{message:xu.NETWORK_ERROR},autoSignInError:{message:xu.AUTOSIGNIN_ERROR},default:{message:xu.DEFAULT_MSG}},Vu=new y("AuthClass"),Wu="aws.cognito.signin.user.admin",Hu="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Gu=function(e,t,n){P.dispatch("auth",{event:e,data:t,message:n},"Auth",Hu)},qu=function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.autoSignInInitiated=!1,this.inflightSessionPromise=null,this.inflightSessionPromiseCounter=0,this.Credentials=Za,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?Gu("tokenRefresh",void 0,"New token retrieved"):Gu("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,n)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),P.listen("auth",(function(e){switch(e.payload.event){case"verify":case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}}))}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};Vu.debug("configure Auth");var n=Object.assign({},this._config,Le(e).Auth,e);this._config=n;var r=this._config,o=r.userPoolId,i=r.userPoolWebClientId,a=r.cookieStorage,s=r.oauth,u=r.region,l=r.identityPoolId,c=r.mandatorySignIn,d=r.refreshHandlers,f=r.identityPoolRegion,h=r.clientMetadata,p=r.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw Vu.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=a?new Pu(a):e.ssr?new ls:(new Ve).getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),o){var m={UserPoolId:o,ClientId:i,endpoint:p};m.Storage=this._storage,this.userPool=new Iu(m,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:c,region:u,userPoolId:o,identityPoolId:l,refreshHandlers:d,storage:this._storage,identityPoolRegion:f});var g=s?As(this._config.oauth)?s:s.awsCognito:void 0;if(g){var v=Object.assign({cognitoClientId:i,UserPoolId:o,domain:g.domain,scopes:g.scope,redirectSignIn:g.redirectSignIn,redirectSignOut:g.redirectSignOut,responseType:g.responseType,Storage:this._storage,urlOpener:g.urlOpener,clientMetadata:h},g.options);this._oAuthHandler=new Mu({scopes:v.scopes,config:v,cognitoClientId:v.cognitoClientId});var y={};Du((function(e){var n=e.url;y[n]||(y[n]=!0,t._handleAuthResponse(n))}))}(Gu("configured",null,"The Auth category has been configured successfully"),this.autoSignInInitiated||"function"!=typeof this._storage.getItem)||(this.isTrueStorageValue("amplify-polling-started")&&(Gu("autoSignIn_failure",null,ps.AutoSignInError),this._storage.removeItem("amplify-auto-sign-in")),this._storage.removeItem("amplify-polling-started"));return this._config},e.prototype.signUp=function(e){for(var t,n,r,o=this,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(!this.userPool)return this.rejectNoUserPool();var s,u=null,l=null,c=[],d=null,f={enabled:!1},h={},p={};if(e&&"string"==typeof e){u=e,l=i?i[0]:null;var m=i?i[1]:null,g=i?i[2]:null;m&&c.push(new au({Name:"email",Value:m})),g&&c.push(new au({Name:"phone_number",Value:g}))}else{if(!e||"object"!=typeof e)return this.rejectAuthError(ps.SignUpError);u=e.username,l=e.password,e&&e.clientMetadata?s=e.clientMetadata:this._config.clientMetadata&&(s=this._config.clientMetadata);var v=e.attributes;v&&Object.keys(v).map((function(e){c.push(new au({Name:e,Value:v[e]}))}));var y=e.validationData;y&&(d=[],Object.keys(y).map((function(e){d.push(new au({Name:e,Value:y[e]}))}))),(f=null!==(t=e.autoSignIn)&&void 0!==t?t:{enabled:!1}).enabled&&(this._storage.setItem("amplify-auto-sign-in","true"),h=null!==(n=f.validationData)&&void 0!==n?n:{},p=null!==(r=f.clientMetaData)&&void 0!==r?r:{})}return u?l?(Vu.debug("signUp attrs:",c),Vu.debug("signUp validation data:",d),new Promise((function(e,t){o.userPool.signUp(u,l,c,d,(function(n,r){n?(Gu("signUp_failure",n,u+" failed to signup"),t(n)):(Gu("signUp",r,u+" has signed up successfully"),f.enabled&&o.handleAutoSignIn(u,l,h,p,r),e(r))}),s)}))):this.rejectAuthError(ps.EmptyPassword):this.rejectAuthError(ps.EmptyUsername)},e.prototype.handleAutoSignIn=function(e,t,n,r,o){this.autoSignInInitiated=!0;var i=new Is({Username:e,Password:t,ValidationData:n,ClientMetadata:r});o.userConfirmed?this.signInAfterUserConfirmed(i):"link"===this._config.signUpVerificationMethod?this.handleLinkAutoSignIn(i):this.handleCodeAutoSignIn(i)},e.prototype.handleCodeAutoSignIn=function(e){var t=this,n=function(r){"confirmSignUp"===r.payload.event&&t.signInAfterUserConfirmed(e,n)};P.listen("auth",n)},e.prototype.handleLinkAutoSignIn=function(e){var t=this;this._storage.setItem("amplify-polling-started","true");var n=Date.now(),r=setInterval((function(){Date.now()-n>18e4?(clearInterval(r),Gu("autoSignIn_failure",null,"Please confirm your account and use your credentials to sign in."),t._storage.removeItem("amplify-auto-sign-in")):t.signInAfterUserConfirmed(e,null,r)}),5e3)},e.prototype.signInAfterUserConfirmed=function(e,t,n){return bs(this,void 0,void 0,(function(){var r,o,i=this;return ws(this,(function(a){switch(a.label){case 0:r=this.createCognitoUser(e.getUsername()),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r.authenticateUser(e,this.authCallbacks(r,(function(r){Gu("autoSignIn",r,e.getUsername()+" has signed in successfully"),t&&P.remove("auth",t),n&&(clearInterval(n),i._storage.removeItem("amplify-polling-started")),i._storage.removeItem("amplify-auto-sign-in")}),(function(e){Vu.error(e),i._storage.removeItem("amplify-auto-sign-in")})))];case 2:return a.sent(),[3,4];case 3:return o=a.sent(),Vu.error(o),[3,4];case 4:return[2]}}))}))},e.prototype.confirmSignUp=function(e,t,n){var r=this;if(!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(ps.EmptyUsername);if(!t)return this.rejectAuthError(ps.EmptyCode);var o,i=this.createCognitoUser(e),a=!n||"boolean"!=typeof n.forceAliasCreation||n.forceAliasCreation;return n&&n.clientMetadata?o=n.clientMetadata:this._config.clientMetadata&&(o=this._config.clientMetadata),new Promise((function(n,s){i.confirmRegistration(t,a,(function(t,o){t?s(t):(Gu("confirmSignUp",o,e+" has been confirmed successfully"),r.isTrueStorageValue("amplify-auto-sign-in")&&!r.autoSignInInitiated&&(Gu("autoSignIn_failure",null,ps.AutoSignInError),r._storage.removeItem("amplify-auto-sign-in")),n(o))}),o)}))},e.prototype.isTrueStorageValue=function(e){var t=this._storage.getItem(e);return!!t&&"true"===t},e.prototype.resendSignUp=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(ps.EmptyUsername);var n=this.createCognitoUser(e);return new Promise((function(e,r){n.resendConfirmationCode((function(t,n){t?r(t):e(n)}),t)}))},e.prototype.signIn=function(e,t,n){if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var r=null,o=null,i={};if("string"==typeof e)r=e,o=t;else{if(!e.username)return this.rejectAuthError(ps.InvalidUsername);void 0!==t&&Vu.warn("The password should be defined under the first parameter object!"),r=e.username,o=e.password,i=e.validationData}if(!r)return this.rejectAuthError(ps.EmptyUsername);var a=new Is({Username:r,Password:o,ValidationData:i,ClientMetadata:n});return o?this.signInWithPassword(a):this.signInWithoutPassword(a)},e.prototype.authCallbacks=function(e,t,n){var r=this,o=this;return{onSuccess:function(i){return bs(r,void 0,void 0,(function(){var r,a,s,u;return ws(this,(function(l){switch(l.label){case 0:Vu.debug(i),delete e.challengeName,delete e.challengeParam,l.label=1;case 1:return l.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return l.sent(),[4,this.Credentials.set(i,"session")];case 3:return r=l.sent(),Vu.debug("succeed to get cognito credentials",r),[3,9];case 4:return a=l.sent(),Vu.debug("cannot get cognito credentials",a),[3,9];case 5:return l.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return s=l.sent(),o.user=s,Gu("signIn",s,"A user "+e.getUsername()+" has been signed in"),t(s),[3,8];case 7:return u=l.sent(),Vu.error("Failed to get the signed in user",u),n(u),[3,8];case 8:return[7];case 9:return[2]}}))}))},onFailure:function(t){Vu.debug("signIn failure",t),Gu("signIn_failure",t,e.getUsername()+" failed to signin"),n(t)},customChallenge:function(n){Vu.debug("signIn custom challenge answer required"),e.challengeName="CUSTOM_CHALLENGE",e.challengeParam=n,t(e)},mfaRequired:function(n,r){Vu.debug("signIn MFA required"),e.challengeName=n,e.challengeParam=r,t(e)},mfaSetup:function(n,r){Vu.debug("signIn mfa setup",n),e.challengeName=n,e.challengeParam=r,t(e)},newPasswordRequired:function(n,r){Vu.debug("signIn new password"),e.challengeName="NEW_PASSWORD_REQUIRED",e.challengeParam={userAttributes:n,requiredAttributes:r},t(e)},totpRequired:function(n,r){Vu.debug("signIn totpRequired"),e.challengeName=n,e.challengeParam=r,t(e)},selectMFAType:function(n,r){Vu.debug("signIn selectMFAType",n),e.challengeName=n,e.challengeParam=r,t(e)}}},e.prototype.signInWithPassword=function(e){var t=this;if(this.pendingSignIn)throw new Error("Pending sign-in attempt already in progress");var n=this.createCognitoUser(e.getUsername());return this.pendingSignIn=new Promise((function(r,o){n.authenticateUser(e,t.authCallbacks(n,(function(e){t.pendingSignIn=null,r(e)}),(function(e){t.pendingSignIn=null,o(e)})))})),this.pendingSignIn},e.prototype.signInWithoutPassword=function(e){var t=this,n=this.createCognitoUser(e.getUsername());return n.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise((function(r,o){n.initiateAuth(e,t.authCallbacks(n,r,o))}))},e.prototype.getMFAOptions=function(e){return new Promise((function(t,n){e.getMFAOptions((function(e,r){if(e)return Vu.debug("get MFA Options failed",e),void n(e);Vu.debug("get MFA options success",r),t(r)}))}))},e.prototype.getPreferredMFA=function(e,t){var n=this,r=this;return new Promise((function(o,i){var a=n._config.clientMetadata,s=!!t&&t.bypassCache;e.getUserData((function(t,a){return bs(n,void 0,void 0,(function(){var n,s;return ws(this,(function(u){switch(u.label){case 0:if(!t)return[3,5];if(Vu.debug("getting preferred mfa failed",t),!this.isSessionInvalid(t))return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return u.sent(),[3,4];case 3:return n=u.sent(),i(new Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return i(t),[2];case 5:return(s=r._getMfaTypeFromUserData(a))?(o(s),[2]):(i("invalid MFA Type"),[2])}}))}))}),{bypassCache:s,clientMetadata:a})}))},e.prototype._getMfaTypeFromUserData=function(e){var t=null,n=e.PreferredMfaSetting;if(n)t=n;else{var r=e.UserMFASettingList;if(r)0===r.length?t="NOMFA":Vu.debug("invalid case for getPreferredMFA",e);else t=e.MFAOptions?"SMS_MFA":"NOMFA"}return t},e.prototype._getUserData=function(e,t){var n=this;return new Promise((function(r,o){e.getUserData((function(t,i){return bs(n,void 0,void 0,(function(){var n;return ws(this,(function(a){switch(a.label){case 0:if(!t)return[3,5];if(Vu.debug("getting user data failed",t),!this.isSessionInvalid(t))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];case 3:return n=a.sent(),o(new Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+n.message)),[2];case 4:return o(t),[2];case 5:r(i),a.label=6;case 6:return[2]}}))}))}),t)}))},e.prototype.setPreferredMFA=function(e,t){return bs(this,void 0,void 0,(function(){var n,r,o,i,a,s,u=this;return ws(this,(function(l){switch(l.label){case 0:return n=this._config.clientMetadata,[4,this._getUserData(e,{bypassCache:!0,clientMetadata:n})];case 1:switch(r=l.sent(),o=null,i=null,t){case"TOTP":case"SOFTWARE_TOKEN_MFA":return[3,2];case"SMS":case"SMS_MFA":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return i={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return o={PreferredMfa:!0,Enabled:!0},[3,7];case 4:return a=r.UserMFASettingList,[4,this._getMfaTypeFromUserData(r)];case 5:if("NOMFA"===(s=l.sent()))return[2,Promise.resolve("No change for mfa type")];if("SMS_MFA"===s)o={PreferredMfa:!1,Enabled:!1};else{if("SOFTWARE_TOKEN_MFA"!==s)return[2,this.rejectAuthError(ps.InvalidMFA)];i={PreferredMfa:!1,Enabled:!1}}return a&&0!==a.length&&a.forEach((function(e){"SMS_MFA"===e?o={PreferredMfa:!1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===e&&(i={PreferredMfa:!1,Enabled:!1})})),[3,7];case 6:return Vu.debug("no validmfa method provided"),[2,this.rejectAuthError(ps.NoMFA)];case 7:return this,[2,new Promise((function(t,r){e.setUserMfaPreference(o,i,(function(o,i){if(o)return Vu.debug("Set user mfa preference error",o),r(o);Vu.debug("Set user mfa success",i),Vu.debug("Caching the latest user data into local"),e.getUserData((function(n,o){return bs(u,void 0,void 0,(function(){var o;return ws(this,(function(a){switch(a.label){case 0:if(!n)return[3,5];if(Vu.debug("getting user data failed",n),!this.isSessionInvalid(n))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];case 3:return o=a.sent(),r(new Error("Session is invalid due to: "+n.message+" and failed to clean up invalid session: "+o.message)),[2];case 4:return[2,r(n)];case 5:return[2,t(i)]}}))}))}),{bypassCache:!0,clientMetadata:n})}))}))]}}))}))},e.prototype.disableSMS=function(e){return new Promise((function(t,n){e.disableMFA((function(e,r){if(e)return Vu.debug("disable mfa failed",e),void n(e);Vu.debug("disable mfa succeed",r),t(r)}))}))},e.prototype.enableSMS=function(e){return new Promise((function(t,n){e.enableMFA((function(e,r){if(e)return Vu.debug("enable mfa failed",e),void n(e);Vu.debug("enable mfa succeed",r),t(r)}))}))},e.prototype.setupTOTP=function(e){return new Promise((function(t,n){e.associateSoftwareToken({onFailure:function(e){Vu.debug("associateSoftwareToken failed",e),n(e)},associateSecretCode:function(e){Vu.debug("associateSoftwareToken sucess",e),t(e)}})}))},e.prototype.verifyTotpToken=function(e,t){return Vu.debug("verification totp token",e,t),new Promise((function(n,r){e.verifySoftwareToken(t,"My TOTP device",{onFailure:function(e){Vu.debug("verifyTotpToken failed",e),r(e)},onSuccess:function(t){Gu("signIn",e,"A user "+e.getUsername()+" has been signed in"),Gu("verify",e,"A user "+e.getUsername()+" has been verified"),Vu.debug("verifyTotpToken success",t),n(t)}})}))},e.prototype.confirmSignIn=function(e,t,n,r){var o=this;if(void 0===r&&(r=this._config.clientMetadata),!t)return this.rejectAuthError(ps.EmptyCode);var i=this;return new Promise((function(a,s){e.sendMFACode(t,{onSuccess:function(t){return bs(o,void 0,void 0,(function(){var n,r;return ws(this,(function(o){switch(o.label){case 0:Vu.debug(t),o.label=1;case 1:return o.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return o.sent(),[4,this.Credentials.set(t,"session")];case 3:return n=o.sent(),Vu.debug("succeed to get cognito credentials",n),[3,6];case 4:return r=o.sent(),Vu.debug("cannot get cognito credentials",r),[3,6];case 5:return i.user=e,Gu("signIn",e,"A user "+e.getUsername()+" has been signed in"),a(e),[7];case 6:return[2]}}))}))},onFailure:function(e){Vu.debug("confirm signIn failure",e),s(e)}},n,r)}))},e.prototype.completeNewPassword=function(e,t,n,r){var o=this;if(void 0===n&&(n={}),void 0===r&&(r=this._config.clientMetadata),!t)return this.rejectAuthError(ps.EmptyPassword);var i=this;return new Promise((function(a,s){e.completeNewPasswordChallenge(t,n,{onSuccess:function(t){return bs(o,void 0,void 0,(function(){var n,r;return ws(this,(function(o){switch(o.label){case 0:Vu.debug(t),o.label=1;case 1:return o.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return o.sent(),[4,this.Credentials.set(t,"session")];case 3:return n=o.sent(),Vu.debug("succeed to get cognito credentials",n),[3,6];case 4:return r=o.sent(),Vu.debug("cannot get cognito credentials",r),[3,6];case 5:return i.user=e,Gu("signIn",e,"A user "+e.getUsername()+" has been signed in"),a(e),[7];case 6:return[2]}}))}))},onFailure:function(e){Vu.debug("completeNewPassword failure",e),Gu("completeNewPassword_failure",e,o.user+" failed to complete the new password flow"),s(e)},mfaRequired:function(t,n){Vu.debug("signIn MFA required"),e.challengeName=t,e.challengeParam=n,a(e)},mfaSetup:function(t,n){Vu.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=n,a(e)},totpRequired:function(t,n){Vu.debug("signIn mfa setup",t),e.challengeName=t,e.challengeParam=n,a(e)}},r)}))},e.prototype.sendCustomChallengeAnswer=function(e,t,n){var r=this;if(void 0===n&&(n=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(ps.EmptyChallengeResponse);return new Promise((function(o,i){e.sendCustomChallengeAnswer(t,r.authCallbacks(e,o,i),n)}))},e.prototype.deleteUserAttributes=function(e,t){var n=this;return new Promise((function(r,o){n.userSession(e).then((function(n){e.deleteAttributes(t,(function(e,t){return e?o(e):r(t)}))}))}))},e.prototype.deleteUser=function(){return bs(this,void 0,void 0,(function(){var e,t,n=this;return ws(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this._storageSync];case 1:return r.sent(),[3,3];case 2:throw e=r.sent(),Vu.debug("Failed to sync cache info into memory",e),new Error(e);case 3:return t=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise((function(e,r){return bs(n,void 0,void 0,(function(){var n,o=this;return ws(this,(function(i){if(this.userPool){if(!(n=this.userPool.getCurrentUser()))return Vu.debug("Failed to get user from user pool"),[2,r(new Error("No current user."))];n.getSession((function(i,a){return bs(o,void 0,void 0,(function(){var o,a=this;return ws(this,(function(s){switch(s.label){case 0:if(!i)return[3,5];if(Vu.debug("Failed to get the user session",i),!this.isSessionInvalid(i))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(n)];case 2:return s.sent(),[3,4];case 3:return o=s.sent(),r(new Error("Session is invalid due to: "+i.message+" and failed to clean up invalid session: "+o.message)),[2];case 4:return[2,r(i)];case 5:n.deleteUser((function(o,i){if(o)r(o);else{Gu("userDeleted",i,"The authenticated user has been deleted."),n.signOut(),a.user=null;try{a.cleanCachedItems()}catch(e){Vu.debug("failed to clear cached items")}t?a.oAuthSignOutRedirect(e,r):(Gu("signOut",a.user,"A user has been signed out"),e(i))}})),s.label=6;case 6:return[2]}}))}))}))}else Vu.debug("no Congito User pool"),r(new Error("Cognito User pool does not exist"));return[2]}))}))}))]}}))}))},e.prototype.updateUserAttributes=function(e,t,n){var r=this;void 0===n&&(n=this._config.clientMetadata);var o=[],i=this;return new Promise((function(a,s){i.userSession(e).then((function(i){for(var u in t)if("sub"!==u&&u.indexOf("_verified")<0){var l={Name:u,Value:t[u]};o.push(l)}e.updateAttributes(o,(function(e,n,o){if(e)return Gu("updateUserAttributes_failure",e,"Failed to update attributes"),s(e);var i=r.createUpdateAttributesResultList(t,null==o?void 0:o.CodeDeliveryDetailsList);return Gu("updateUserAttributes",i,"Attributes successfully updated"),a(n)}),n)}))}))},e.prototype.createUpdateAttributesResultList=function(e,t){var n={};return Object.keys(e).forEach((function(e){n[e]={isUpdated:!0};var r=null==t?void 0:t.find((function(t){return t.AttributeName===e}));r&&(n[e].isUpdated=!1,n[e].codeDeliveryDetails=r)})),n},e.prototype.userAttributes=function(e){var t=this;return new Promise((function(n,r){t.userSession(e).then((function(t){e.getUserAttributes((function(e,t){e?r(e):n(t)}))}))}))},e.prototype.verifiedContact=function(e){var t=this;return this.userAttributes(e).then((function(e){var n=t.attributesToObject(e),r={},o={};return n.email&&(n.email_verified?o.email=n.email:r.email=n.email),n.phone_number&&(n.phone_number_verified?o.phone_number=n.phone_number:r.phone_number=n.phone_number),{verified:o,unverified:r}}))},e.prototype.isErrorWithMessage=function(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"message")},e.prototype.isTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Access Token has been revoked"===e.message},e.prototype.isRefreshTokenRevokedError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has been revoked"===e.message},e.prototype.isUserDisabledError=function(e){return this.isErrorWithMessage(e)&&"User is disabled."===e.message},e.prototype.isUserDoesNotExistError=function(e){return this.isErrorWithMessage(e)&&"User does not exist."===e.message},e.prototype.isRefreshTokenExpiredError=function(e){return this.isErrorWithMessage(e)&&"Refresh Token has expired"===e.message},e.prototype.isSignedInHostedUI=function(){return this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI")},e.prototype.isSessionInvalid=function(e){return this.isUserDisabledError(e)||this.isUserDoesNotExistError(e)||this.isTokenRevokedError(e)||this.isRefreshTokenRevokedError(e)||this.isRefreshTokenExpiredError(e)},e.prototype.cleanUpInvalidSession=function(e){return bs(this,void 0,void 0,(function(){var t=this;return ws(this,(function(n){switch(n.label){case 0:e.signOut(),this.user=null,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.cleanCachedItems()];case 2:return n.sent(),[3,4];case 3:return n.sent(),Vu.debug("failed to clear cached items"),[3,4];case 4:return this.isSignedInHostedUI()?[2,new Promise((function(e,n){t.oAuthSignOutRedirect(e,n)}))]:(Gu("signOut",this.user,"A user has been signed out"),[2])}}))}))},e.prototype.currentUserPoolUser=function(e){var t=this;return this.userPool?new Promise((function(n,r){t._storageSync.then((function(){return bs(t,void 0,void 0,(function(){var t,o,i,a,s,u,l=this;return ws(this,(function(c){switch(c.label){case 0:return this.isOAuthInProgress()?(Vu.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise((function(e){var t=setTimeout((function(){Vu.debug("OAuth signIn in progress timeout"),P.remove("auth",n),e()}),1e4);function n(r){var o=r.payload.event;"cognitoHostedUI"!==o&&"cognitoHostedUI_failure"!==o||(Vu.debug("OAuth signIn resolved: "+o),clearTimeout(t),P.remove("auth",n),e())}P.listen("auth",n)}))]):[3,2];case 1:c.sent(),c.label=2;case 2:if(!(t=this.userPool.getCurrentUser()))return Vu.debug("Failed to get user from user pool"),r("No current user"),[2];c.label=3;case 3:return c.trys.push([3,7,,8]),[4,this._userSession(t)];case 4:return o=c.sent(),(i=!!e&&e.bypassCache)?[4,this.Credentials.clear()]:[3,6];case 5:c.sent(),c.label=6;case 6:return a=this._config.clientMetadata,s=o.getAccessToken().decodePayload().scope,(void 0===s?"":s).split(" ").includes(Wu)?(t.getUserData((function(e,o){return bs(l,void 0,void 0,(function(){var i,a,s,u,l,c,d;return ws(this,(function(f){switch(f.label){case 0:if(!e)return[3,7];if(Vu.debug("getting user data failed",e),!this.isSessionInvalid(e))return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return f.sent(),[3,4];case 3:return i=f.sent(),r(new Error("Session is invalid due to: "+e.message+" and failed to clean up invalid session: "+i.message)),[2];case 4:return r(e),[3,6];case 5:n(t),f.label=6;case 6:return[2];case 7:for(a=o.PreferredMfaSetting||"NOMFA",s=[],u=0;u<o.UserAttributes.length;u++)l={Name:o.UserAttributes[u].Name,Value:o.UserAttributes[u].Value},c=new au(l),s.push(c);return d=this.attributesToObject(s),Object.assign(t,{attributes:d,preferredMFA:a}),[2,n(t)]}}))}))}),{bypassCache:i,clientMetadata:a}),[3,8]):(Vu.debug("Unable to get the user data because the "+Wu+" is not in the scopes of the access token"),[2,n(t)]);case 7:return u=c.sent(),r(u),[3,8];case 8:return[2]}}))}))})).catch((function(e){return Vu.debug("Failed to sync cache info into memory",e),r(e)}))})):this.rejectNoUserPool()},e.prototype.isOAuthInProgress=function(){return this.oAuthFlowInProgress},e.prototype.currentAuthenticatedUser=function(e){return bs(this,void 0,void 0,(function(){var t,n,r,o,i;return ws(this,(function(a){switch(a.label){case 0:Vu.debug("getting current authenticated user"),t=null,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._storageSync];case 2:return a.sent(),[3,4];case 3:throw n=a.sent(),Vu.debug("Failed to sync cache info into memory",n),n;case 4:try{(r=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")))&&(t=ys(ys({},r.user),{token:r.token}))}catch(e){Vu.debug("cannot load federated user from auth storage")}return t?(this.user=t,Vu.debug("get current authenticated federated user",this.user),[2,this.user]):[3,5];case 5:Vu.debug("get current authenticated userpool user"),o=null,a.label=6;case 6:return a.trys.push([6,8,,9]),[4,this.currentUserPoolUser(e)];case 7:return o=a.sent(),[3,9];case 8:return"No userPool"===(i=a.sent())&&Vu.error("Cannot get the current user because the user pool is missing. Please make sure the Auth module is configured with a valid Cognito User Pool ID"),Vu.debug("The user is not authenticated by the error",i),[2,Promise.reject("The user is not authenticated")];case 9:return this.user=o,[2,this.user]}}))}))},e.prototype.currentSession=function(){var e=this;return Vu.debug("Getting current session"),this.userPool?new Promise((function(t,n){e.currentUserPoolUser().then((function(r){e.userSession(r).then((function(e){t(e)})).catch((function(e){Vu.debug("Failed to get the current session",e),n(e)}))})).catch((function(e){Vu.debug("Failed to get the current user",e),n(e)}))})):Promise.reject(new Error("No User Pool in the configuration."))},e.prototype._userSession=function(e){return bs(this,void 0,void 0,(function(){var t,n,r=this;return ws(this,(function(o){switch(o.label){case 0:if(!e)return Vu.debug("the user is null"),[2,this.rejectAuthError(ps.NoUserSession)];t=this._config.clientMetadata,0===this.inflightSessionPromiseCounter&&(this.inflightSessionPromise=new Promise((function(n,o){e.getSession((function(t,i){return bs(r,void 0,void 0,(function(){var r;return ws(this,(function(a){switch(a.label){case 0:if(!t)return[3,5];if(Vu.debug("Failed to get the session from user",e),!this.isSessionInvalid(t))return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(e)];case 2:return a.sent(),[3,4];case 3:return r=a.sent(),o(new Error("Session is invalid due to: "+t.message+" and failed to clean up invalid session: "+r.message)),[2];case 4:return o(t),[2];case 5:return Vu.debug("Succeed to get the user session",i),n(i),[2]}}))}))}),{clientMetadata:t})}))),this.inflightSessionPromiseCounter++,o.label=1;case 1:return o.trys.push([1,,3,4]),[4,this.inflightSessionPromise];case 2:return n=o.sent(),e.signInUserSession=n,[2,n];case 3:return this.inflightSessionPromiseCounter--,[7];case 4:return[2]}}))}))},e.prototype.userSession=function(e){return this._userSession(e)},e.prototype.currentUserCredentials=function(){return bs(this,void 0,void 0,(function(){var e,t,n=this;return ws(this,(function(r){switch(r.label){case 0:Vu.debug("Getting current user credentials"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),[3,4];case 3:throw e=r.sent(),Vu.debug("Failed to sync cache info into memory",e),e;case 4:t=null;try{t=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo"))}catch(e){Vu.debug("failed to get or parse item aws-amplify-federatedInfo",e)}return t?[2,this.Credentials.refreshFederatedToken(t)]:[2,this.currentSession().then((function(e){return Vu.debug("getting session success",e),n.Credentials.set(e,"session")})).catch((function(){return Vu.debug("getting guest credentials"),n.Credentials.set(null,"guest")}))]}}))}))},e.prototype.currentCredentials=function(){return Vu.debug("getting current credentials"),this.Credentials.get()},e.prototype.verifyUserAttribute=function(e,t,n){return void 0===n&&(n=this._config.clientMetadata),new Promise((function(r,o){e.getAttributeVerificationCode(t,{onSuccess:function(e){return r(e)},onFailure:function(e){return o(e)}},n)}))},e.prototype.verifyUserAttributeSubmit=function(e,t,n){return n?new Promise((function(r,o){e.verifyAttribute(t,n,{onSuccess:function(e){r(e)},onFailure:function(e){o(e)}})})):this.rejectAuthError(ps.EmptyCode)},e.prototype.verifyCurrentUserAttribute=function(e){var t=this;return t.currentUserPoolUser().then((function(n){return t.verifyUserAttribute(n,e)}))},e.prototype.verifyCurrentUserAttributeSubmit=function(e,t){var n=this;return n.currentUserPoolUser().then((function(r){return n.verifyUserAttributeSubmit(r,e,t)}))},e.prototype.cognitoIdentitySignOut=function(e,t){return bs(this,void 0,void 0,(function(){var n,r,o=this;return ws(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this._storageSync];case 1:return i.sent(),[3,3];case 2:throw n=i.sent(),Vu.debug("Failed to sync cache info into memory",n),n;case 3:return r=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise((function(n,i){if(e&&e.global){Vu.debug("user global sign out",t);var a=o._config.clientMetadata;t.getSession((function(e,a){return bs(o,void 0,void 0,(function(){var o,a=this;return ws(this,(function(s){switch(s.label){case 0:if(!e)return[3,5];if(Vu.debug("failed to get the user session",e),!this.isSessionInvalid(e))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.cleanUpInvalidSession(t)];case 2:return s.sent(),[3,4];case 3:return o=s.sent(),i(new Error("Session is invalid due to: "+e.message+" and failed to clean up invalid session: "+o.message)),[2];case 4:return[2,i(e)];case 5:return t.globalSignOut({onSuccess:function(e){if(Vu.debug("global sign out success"),!r)return n();a.oAuthSignOutRedirect(n,i)},onFailure:function(e){return Vu.debug("global sign out failed",e),i(e)}}),[2]}}))}))}),{clientMetadata:a})}else Vu.debug("user sign out",t),t.signOut((function(){if(!r)return n();o.oAuthSignOutRedirect(n,i)}))}))]}}))}))},e.prototype.oAuthSignOutRedirect=function(e,t){te().isBrowser?this.oAuthSignOutRedirectOrReject(t):this.oAuthSignOutAndResolve(e)},e.prototype.oAuthSignOutAndResolve=function(e){this._oAuthHandler.signOut(),e()},e.prototype.oAuthSignOutRedirectOrReject=function(e){this._oAuthHandler.signOut(),setTimeout((function(){return e(Error("Signout timeout fail"))}),3e3)},e.prototype.signOut=function(e){return bs(this,void 0,void 0,(function(){var t;return ws(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.cleanCachedItems()];case 1:return n.sent(),[3,3];case 2:return n.sent(),Vu.debug("failed to clear cached items"),[3,3];case 3:return this.userPool?(t=this.userPool.getCurrentUser())?[4,this.cognitoIdentitySignOut(e,t)]:[3,5]:[3,7];case 4:return n.sent(),[3,6];case 5:Vu.debug("no current Cognito user"),n.label=6;case 6:return[3,8];case 7:Vu.debug("no Cognito User pool"),n.label=8;case 8:return Gu("signOut",this.user,"A user has been signed out"),this.user=null,[2]}}))}))},e.prototype.cleanCachedItems=function(){return bs(this,void 0,void 0,(function(){return ws(this,(function(e){switch(e.label){case 0:return[4,this.Credentials.clear()];case 1:return e.sent(),[2]}}))}))},e.prototype.changePassword=function(e,t,n,r){var o=this;return void 0===r&&(r=this._config.clientMetadata),new Promise((function(i,a){o.userSession(e).then((function(o){e.changePassword(t,n,(function(e,t){return e?(Vu.debug("change password failure",e),a(e)):i(t)}),r)}))}))},e.prototype.forgotPassword=function(e,t){if(void 0===t&&(t=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(ps.EmptyUsername);var n=this.createCognitoUser(e);return new Promise((function(r,o){n.forgotPassword({onSuccess:function(){r()},onFailure:function(t){Vu.debug("forgot password failure",t),Gu("forgotPassword_failure",t,e+" forgotPassword failed"),o(t)},inputVerificationCode:function(t){Gu("forgotPassword",n,e+" has initiated forgot password flow"),r(t)}},t)}))},e.prototype.forgotPasswordSubmit=function(e,t,n,r){if(void 0===r&&(r=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!e)return this.rejectAuthError(ps.EmptyUsername);if(!t)return this.rejectAuthError(ps.EmptyCode);if(!n)return this.rejectAuthError(ps.EmptyPassword);var o=this.createCognitoUser(e);return new Promise((function(i,a){o.confirmPassword(t,n,{onSuccess:function(t){Gu("forgotPasswordSubmit",o,e+" forgotPasswordSubmit successful"),i(t)},onFailure:function(t){Gu("forgotPasswordSubmit_failure",t,e+" forgotPasswordSubmit failed"),a(t)}},r)}))},e.prototype.currentUserInfo=function(){return bs(this,void 0,void 0,(function(){var e,t,n,r,o,i,a;return ws(this,(function(s){switch(s.label){case 0:return(e=this.Credentials.getCredSource())&&"aws"!==e&&"userPool"!==e?[3,9]:[4,this.currentUserPoolUser().catch((function(e){return Vu.error(e)}))];case 1:if(!(a=s.sent()))return[2,null];s.label=2;case 2:return s.trys.push([2,8,,9]),[4,this.userAttributes(a)];case 3:t=s.sent(),n=this.attributesToObject(t),r=null,s.label=4;case 4:return s.trys.push([4,6,,7]),[4,this.currentCredentials()];case 5:return r=s.sent(),[3,7];case 6:return o=s.sent(),Vu.debug("Failed to retrieve credentials while getting current user info",o),[3,7];case 7:return[2,{id:r?r.identityId:void 0,username:a.getUsername(),attributes:n}];case 8:return i=s.sent(),Vu.error("currentUserInfo error",i),[2,{}];case 9:return"federated"===e?[2,(a=this.user)||{}]:[2]}}))}))},e.prototype.federatedSignIn=function(e,t,n){return bs(this,void 0,void 0,(function(){var r,o,i,a,s,u,l,c,d,f,h;return ws(this,(function(p){switch(p.label){case 0:if(!this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation requires either a User Pool or Identity Pool in config");if(void 0===e&&this._config.identityPoolId&&!this._config.userPoolId)throw new Error("Federation with Identity Pools requires tokens passed as arguments");return Cs(e)||(m=e)&&["customProvider"].find((function(e){return m.hasOwnProperty(e)}))||Es(e)||void 0===e?(r=e||{provider:fs.Cognito},s=Cs(r)?r.provider:r.customProvider,Cs(r),o=r.customState,this._config.userPoolId&&(i=As(this._config.oauth)?this._config.userPoolWebClientId:this._config.oauth.clientID,a=As(this._config.oauth)?this._config.oauth.redirectSignIn:this._config.oauth.redirectUri,this._oAuthHandler.oauthSignIn(this._config.oauth.responseType,this._config.oauth.domain,a,i,s,o)),[3,4]):[3,1];case 1:s=e;try{(u=JSON.stringify(JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")).user))&&Vu.warn("There is already a signed in user: "+u+" in your app.\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tYou should not call Auth.federatedSignIn method again as it may cause unexpected behavior.")}catch(e){}return l=t.token,c=t.identity_id,d=t.expires_at,[4,this.Credentials.set({provider:s,token:l,identity_id:c,user:n,expires_at:d},"federation")];case 2:return f=p.sent(),[4,this.currentAuthenticatedUser()];case 3:return h=p.sent(),Gu("signIn",h,"A user "+h.username+" has been signed in"),Vu.debug("federated sign in credentials",f),[2,f];case 4:return[2]}var m}))}))},e.prototype._handleAuthResponse=function(e){return bs(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,u,l,c,d,f,h,p;return ws(this,(function(m){switch(m.label){case 0:if(this.oAuthFlowInProgress)return Vu.debug("Skipping URL "+e+" current flow in progress"),[2];m.label=1;case 1:if(m.trys.push([1,,8,9]),this.oAuthFlowInProgress=!0,!this._config.userPoolId)throw new Error("OAuth responses require a User Pool defined in config");if(Gu("parsingCallbackUrl",{url:e},"The callback url is being parsed"),t=e||(te().isBrowser?window.location.href:""),n=!!(J(t).query||"").split("&").map((function(e){return e.split("=")})).find((function(e){var t=Ss(e,1)[0];return"code"===t||"error"===t})),r=!!(J(t).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).find((function(e){var t=Ss(e,1)[0];return"access_token"===t||"error"===t})),!n&&!r)return[3,7];this._storage.setItem("amplify-redirected-from-hosted-ui","true"),m.label=2;case 2:return m.trys.push([2,6,,7]),[4,this._oAuthHandler.handleAuthResponse(t)];case 3:return o=m.sent(),i=o.accessToken,a=o.idToken,s=o.refreshToken,u=o.state,l=new nu({IdToken:new Js({IdToken:a}),RefreshToken:new Xs({RefreshToken:s}),AccessToken:new Qs({AccessToken:i})}),c=void 0,this._config.identityPoolId?[4,this.Credentials.set(l,"session")]:[3,5];case 4:c=m.sent(),Vu.debug("AWS credentials",c),m.label=5;case 5:return d=/-/.test(u),(f=this.createCognitoUser(l.getIdToken().decodePayload()["cognito:username"])).setSignInUserSession(l),window&&void 0!==window.history&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),Gu("signIn",f,"A user "+f.getUsername()+" has been signed in"),Gu("cognitoHostedUI",f,"A user "+f.getUsername()+" has been signed in via Cognito Hosted UI"),d&&(h=u.split("-").splice(1).join("-"),Gu("customOAuthState",h.match(/.{2}/g).map((function(e){return String.fromCharCode(parseInt(e,16))})).join(""),"State for user "+f.getUsername())),[2,c];case 6:return p=m.sent(),Vu.debug("Error in cognito hosted auth response",p),window&&void 0!==window.history&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),Gu("signIn_failure",p,"The OAuth response flow failed"),Gu("cognitoHostedUI_failure",p,"A failure occurred when returning to the Cognito Hosted UI"),Gu("customState_failure",p,"A failure occurred when returning state"),[3,7];case 7:return[3,9];case 8:return this.oAuthFlowInProgress=!1,[7];case 9:return[2]}}))}))},e.prototype.essentialCredentials=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e.prototype.attributesToObject=function(e){var t=this,n={};return e&&e.map((function(e){"email_verified"===e.Name||"phone_number_verified"===e.Name?n[e.Name]=t.isTruthyString(e.Value)||!0===e.Value:n[e.Name]=e.Value})),n},e.prototype.isTruthyString=function(e){return"function"==typeof e.toLowerCase&&"true"===e.toLowerCase()},e.prototype.createCognitoUser=function(e){var t={Username:e,Pool:this.userPool};t.Storage=this._storage;var n=this._config.authenticationFlowType,r=new du(t);return n&&r.setAuthenticationFlowType(n),r},e.prototype._isValidAuthStorage=function(e){return!!e&&"function"==typeof e.getItem&&"function"==typeof e.setItem&&"function"==typeof e.removeItem&&"function"==typeof e.clear},e.prototype.noUserPoolErrorHandler=function(e){return!e||e.userPoolId&&e.identityPoolId?ps.NoConfig:ps.MissingAuthConfig},e.prototype.rejectAuthError=function(e){return Promise.reject(new Lu(e))},e.prototype.rejectNoUserPool=function(){var e=this.noUserPoolErrorHandler(this._config);return Promise.reject(new Bu(e))},e.prototype.rememberDevice=function(){return bs(this,void 0,void 0,(function(){var e,t;return ws(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:return t=n.sent(),Vu.debug("The user is not authenticated by the error",t),[2,Promise.reject("The user is not authenticated")];case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise((function(t,n){e.setDeviceStatusRemembered({onSuccess:function(e){t(e)},onFailure:function(e){"InvalidParameterException"===e.code?n(new Lu(ps.DeviceConfig)):"NetworkError"===e.code?n(new Lu(ps.NetworkError)):n(e)}})}))]}}))}))},e.prototype.forgetDevice=function(){return bs(this,void 0,void 0,(function(){var e,t;return ws(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:return t=n.sent(),Vu.debug("The user is not authenticated by the error",t),[2,Promise.reject("The user is not authenticated")];case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise((function(t,n){e.forgetDevice({onSuccess:function(e){t(e)},onFailure:function(e){"InvalidParameterException"===e.code?n(new Lu(ps.DeviceConfig)):"NetworkError"===e.code?n(new Lu(ps.NetworkError)):n(e)}})}))]}}))}))},e.prototype.fetchDevices=function(){return bs(this,void 0,void 0,(function(){var e,t;return ws(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.currentUserPoolUser()];case 1:return e=n.sent(),[3,3];case 2:throw t=n.sent(),Vu.debug("The user is not authenticated by the error",t),new Error("The user is not authenticated");case 3:return e.getCachedDeviceKeyAndPassword(),[2,new Promise((function(t,n){var r={onSuccess:function(e){var n=e.Devices.map((function(e){var t=e.DeviceAttributes.find((function(e){return"device_name"===e.Name}))||{};return{id:e.DeviceKey,name:t.Value}}));t(n)},onFailure:function(e){"InvalidParameterException"===e.code?n(new Lu(ps.DeviceConfig)):"NetworkError"===e.code?n(new Lu(ps.NetworkError)):n(e)}};e.listDevices(60,null,r)}))]}}))}))},e}(),Ku=new qu(null);S.register(Ku);var Zu={};Zu=i("40w2c");function Yu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Qu(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}Object.create;Object.create;var $u=i("8dQZc");var Ju=function(){return Ju=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ju.apply(this,arguments)};function Xu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function el(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function tl(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}Object.create;function nl(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;var rl,ol=function(e){return new y("AmplifyUI:".concat(e))},il=ol("Auth"),al=function(e){var t=e.user,n=e.currentPassword,r=e.newPassword;return el(void 0,void 0,void 0,(function(){var e;return tl(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),il.debug("calling Auth.changePassword"),[4,Ku.changePassword(t,n,r)];case 1:return o.sent(),il.debug("Auth.changePassword was successful"),[2,Promise.resolve()];case 2:return e=o.sent(),il.debug("Auth.changePassword failed with error",e),[2,Promise.reject(e)];case 3:return[2]}}))}))},sl=function(){return el(void 0,void 0,void 0,(function(){var e;return tl(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),il.debug("calling Auth.deleteUser"),[4,Ku.deleteUser()];case 1:return t.sent(),il.debug("Auth.deleteUser was successful"),[2,Promise.resolve()];case 2:return e=t.sent(),il.debug("Auth.deleteUser failed with error",e),[2,Promise.reject(e)];case 3:return[2]}}))}))},ul={},ll={},cl={},dl={},fl={};rl=function(){this.__data__=[],this.size=0};var hl,pl={},ml={};ml=function(e,t){return e===t||e!=e&&t!=t},pl=function(e,t){for(var n=e.length;n--;)if(ml(e[n][0],t))return n;return-1};var gl=Array.prototype.splice;hl=function(e){var t=this.__data__,n=pl(t,e);return!(n<0)&&(n==t.length-1?t.pop():gl.call(t,n,1),--this.size,!0)};var vl;vl=function(e){var t=this.__data__,n=pl(t,e);return n<0?void 0:t[n][1]};var yl;yl=function(e){return pl(this.__data__,e)>-1};var bl;function wl(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bl=function(e,t){var n=this.__data__,r=pl(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wl.prototype.clear=rl,wl.prototype.delete=hl,wl.prototype.get=vl,wl.prototype.has=yl,wl.prototype.set=bl,fl=wl;var Sl;Sl=function(){this.__data__=new fl,this.size=0};var Cl;Cl=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var El;El=function(e){return this.__data__.get(e)};var Al;Al=function(e){return this.__data__.has(e)};var _l,Il,kl={},xl={},Tl={},Pl={},Ol={};Il=(sc=i("2B6zj")).Symbol;var Nl={},Ul=Object.prototype,Fl=Ul.hasOwnProperty,Rl=Ul.toString,Ml=Il?Il.toStringTag:void 0;Nl=function(e){var t=Fl.call(e,Ml),n=e[Ml];try{e[Ml]=void 0;var r=!0}catch(e){}var o=Rl.call(e);return r&&(t?e[Ml]=n:delete e[Ml]),o};var Dl={},jl=Object.prototype.toString;Dl=function(e){return jl.call(e)};var Ll="[object Null]",Bl="[object Undefined]",zl=Il?Il.toStringTag:void 0;Ol=function(e){return null==e?void 0===e?Bl:Ll:zl&&zl in Object(e)?Nl(e):Dl(e)};var Vl={};Vl=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var Wl="[object AsyncFunction]",Hl="[object Function]",Gl="[object GeneratorFunction]",ql="[object Proxy]";Pl=function(e){if(!Vl(e))return!1;var t=Ol(e);return t==Hl||t==Gl||t==Wl||t==ql};var Kl,Zl,Yl={},Ql=(sc=i("2B6zj"))["__core-js_shared__"],$l=(Zl=/[^.]+$/.exec((Kl=Ql)&&Kl.keys&&Kl.keys.IE_PROTO||""))?"Symbol(src)_1."+Zl:"";Yl=function(e){return!!$l&&$l in e};var Jl={},Xl=Function.prototype.toString;Jl=function(e){if(null!=e){try{return Xl.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var ec=/^\[object .+?Constructor\]$/,tc=Function.prototype,nc=Object.prototype,rc=tc.toString,oc=nc.hasOwnProperty,ic=RegExp("^"+rc.call(oc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");Tl=function(e){return!(!Vl(e)||Yl(e))&&(Pl(e)?ic:ec).test(Jl(e))};var ac={};ac=function(e,t){return null==e?void 0:e[t]},xl=function(e,t){var n=ac(e,t);return Tl(n)?n:void 0};var sc=i("2B6zj"),uc=xl(sc,"Map");kl=uc;var lc,cc,dc={},fc={},hc={},pc=xl(Object,"create");hc=pc,cc=function(){this.__data__=hc?hc(null):{},this.size=0};var mc;mc=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var gc,vc="__lodash_hash_undefined__",yc=Object.prototype.hasOwnProperty;gc=function(e){var t=this.__data__;if(hc){var n=t[e];return n===vc?void 0:n}return yc.call(t,e)?t[e]:void 0};var bc,wc=Object.prototype.hasOwnProperty;bc=function(e){var t=this.__data__;return hc?void 0!==t[e]:wc.call(t,e)};var Sc,Cc="__lodash_hash_undefined__";function Ec(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sc=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=hc&&void 0===t?Cc:t,this},Ec.prototype.clear=cc,Ec.prototype.delete=mc,Ec.prototype.get=gc,Ec.prototype.has=bc,Ec.prototype.set=Sc,fc=Ec,lc=function(){this.size=0,this.__data__={hash:new fc,map:new(kl||fl),string:new fc}};var Ac,_c={},Ic={};Ic=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},_c=function(e,t){var n=e.__data__;return Ic(t)?n["string"==typeof t?"string":"hash"]:n.map},Ac=function(e){var t=_c(this,e).delete(e);return this.size-=t?1:0,t};var kc;kc=function(e){return _c(this,e).get(e)};var xc;xc=function(e){return _c(this,e).has(e)};var Tc;function Pc(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tc=function(e,t){var n=_c(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Pc.prototype.clear=lc,Pc.prototype.delete=Ac,Pc.prototype.get=kc,Pc.prototype.has=xc,Pc.prototype.set=Tc,dc=Pc;var Oc=200;function Nc(e){var t=this.__data__=new fl(e);this.size=t.size}_l=function(e,t){var n=this.__data__;if(n instanceof fl){var r=n.__data__;if(!kl||r.length<Oc-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dc(r)}return n.set(e,t),this.size=n.size,this},Nc.prototype.clear=Sl,Nc.prototype.delete=Cl,Nc.prototype.get=El,Nc.prototype.has=Al,Nc.prototype.set=_l,dl=Nc;var Uc,Fc={},Rc={},Mc="__lodash_hash_undefined__";Uc=function(e){return this.__data__.set(e,Mc),this};var Dc;function jc(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new dc;++t<n;)this.add(e[t])}Dc=function(e){return this.__data__.has(e)},jc.prototype.add=jc.prototype.push=Uc,jc.prototype.has=Dc,Rc=jc;var Lc={};Lc=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Bc={};Bc=function(e,t){return e.has(t)};var zc=1,Vc=2;Fc=function(e,t,n,r,o,i){var a=n&zc,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(e),c=i.get(t);if(l&&c)return l==t&&c==e;var d=-1,f=!0,h=n&Vc?new Rc:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var g=a?r(m,p,d,t,e,i):r(p,m,d,e,t,i);if(void 0!==g){if(g)continue;f=!1;break}if(h){if(!Lc(t,(function(e,t){if(!Bc(h,t)&&(p===e||o(p,e,n,r,i)))return h.push(t)}))){f=!1;break}}else if(p!==m&&!o(p,m,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f};var Wc={},Hc={},Gc=(sc=i("2B6zj")).Uint8Array;Hc=Gc;var qc={};qc=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var Kc={};Kc=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Zc=1,Yc=2,Qc="[object Boolean]",$c="[object Date]",Jc="[object Error]",Xc="[object Map]",ed="[object Number]",td="[object RegExp]",nd="[object Set]",rd="[object String]",od="[object Symbol]",id="[object ArrayBuffer]",ad="[object DataView]",sd=Il?Il.prototype:void 0,ud=sd?sd.valueOf:void 0;Wc=function(e,t,n,r,o,i,a){switch(n){case ad:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case id:return!(e.byteLength!=t.byteLength||!i(new Hc(e),new Hc(t)));case Qc:case $c:case ed:return ml(+e,+t);case Jc:return e.name==t.name&&e.message==t.message;case td:case rd:return e==t+"";case Xc:var s=qc;case nd:var u=r&Zc;if(s||(s=Kc),e.size!=t.size&&!u)return!1;var l=a.get(e);if(l)return l==t;r|=Yc,a.set(e,t);var c=Fc(s(e),s(t),r,o,i,a);return a.delete(e),c;case od:if(ud)return ud.call(e)==ud.call(t)}return!1};var ld={},cd={},dd={},fd={};fd=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e};var hd={},pd=Array.isArray;hd=pd,dd=function(e,t,n){var r=t(e);return hd(e)?r:fd(r,n(e))};var md={},gd={};gd=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i};var vd;vd=function(){return[]};var yd=Object.prototype.propertyIsEnumerable,bd=Object.getOwnPropertySymbols;md=bd?function(e){return null==e?[]:(e=Object(e),gd(bd(e),(function(t){return yd.call(e,t)})))}:vd;var wd={},Sd={},Cd={};Cd=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Ed={},Ad={},_d={};_d=function(e){return null!=e&&"object"==typeof e};var Id="[object Arguments]";Ad=function(e){return _d(e)&&Ol(e)==Id};var kd=Object.prototype,xd=kd.hasOwnProperty,Td=kd.propertyIsEnumerable,Pd=Ad(function(){return arguments}())?Ad:function(e){return _d(e)&&xd.call(e,"callee")&&!Td.call(e,"callee")};Ed=Pd;var Od=i("dWzsw"),Nd={},Ud=9007199254740991,Fd=/^(?:0|[1-9]\d*)$/;Nd=function(e,t){var n=typeof e;return!!(t=null==t?Ud:t)&&("number"==n||"symbol"!=n&&Fd.test(e))&&e>-1&&e%1==0&&e<t};var Rd,Md={},Dd={},jd=9007199254740991;Dd=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=jd};var Ld={};Ld["[object Float32Array]"]=Ld["[object Float64Array]"]=Ld["[object Int8Array]"]=Ld["[object Int16Array]"]=Ld["[object Int32Array]"]=Ld["[object Uint8Array]"]=Ld["[object Uint8ClampedArray]"]=Ld["[object Uint16Array]"]=Ld["[object Uint32Array]"]=!0,Ld["[object Arguments]"]=Ld["[object Array]"]=Ld["[object ArrayBuffer]"]=Ld["[object Boolean]"]=Ld["[object DataView]"]=Ld["[object Date]"]=Ld["[object Error]"]=Ld["[object Function]"]=Ld["[object Map]"]=Ld["[object Number]"]=Ld["[object Object]"]=Ld["[object RegExp]"]=Ld["[object Set]"]=Ld["[object String]"]=Ld["[object WeakMap]"]=!1,Rd=function(e){return _d(e)&&Dd(e.length)&&!!Ld[Ol(e)]};var Bd={};Bd=function(e){return function(t){return e(t)}};var zd=i("5fgva"),Vd=zd&&zd.isTypedArray,Wd=Vd?Bd(Vd):Rd;Md=Wd;var Hd=Object.prototype.hasOwnProperty;Sd=function(e,t){var n=hd(e),r=!n&&Ed(e),o=!n&&!r&&Od(e),i=!n&&!r&&!o&&Md(e),a=n||r||o||i,s=a?Cd(e.length,String):[],u=s.length;for(var l in e)!t&&!Hd.call(e,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Nd(l,u))||s.push(l);return s};var Gd={},qd={},Kd=Object.prototype;qd=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Kd)};var Zd={},Yd={};var Qd=(Yd=function(e,t){return function(n){return e(t(n))}})(Object.keys,Object);Zd=Qd;var $d=Object.prototype.hasOwnProperty;Gd=function(e){if(!qd(e))return Zd(e);var t=[];for(var n in Object(e))$d.call(e,n)&&"constructor"!=n&&t.push(n);return t};var Jd={};Jd=function(e){return null!=e&&Dd(e.length)&&!Pl(e)},wd=function(e){return Jd(e)?Sd(e):Gd(e)},cd=function(e){return dd(e,wd,md)};var Xd=1,ef=Object.prototype.hasOwnProperty;ld=function(e,t,n,r,o,i){var a=n&Xd,s=cd(e),u=s.length;if(u!=cd(t).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in t:ef.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var h=!0;i.set(e,t),i.set(t,e);for(var p=a;++l<u;){var m=e[c=s[l]],g=t[c];if(r)var v=a?r(g,m,c,t,e,i):r(m,g,c,e,t,i);if(!(void 0===v?m===g||o(m,g,n,r,i):v)){h=!1;break}p||(p="constructor"==c)}if(h&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(h=!1)}return i.delete(e),i.delete(t),h};var tf={},nf={};sc=i("2B6zj");nf=xl(sc,"DataView");var rf={};sc=i("2B6zj");rf=xl(sc,"Promise");var of={};sc=i("2B6zj");of=xl(sc,"Set");var af={};sc=i("2B6zj");af=xl(sc,"WeakMap");var sf="[object Map]",uf="[object Promise]",lf="[object Set]",cf="[object WeakMap]",df="[object DataView]",ff=Jl(nf),hf=Jl(kl),pf=Jl(rf),mf=Jl(of),gf=Jl(af),vf=Ol;(nf&&vf(new nf(new ArrayBuffer(1)))!=df||kl&&vf(new kl)!=sf||rf&&vf(rf.resolve())!=uf||of&&vf(new of)!=lf||af&&vf(new af)!=cf)&&(vf=function(e){var t=Ol(e),n="[object Object]"==t?e.constructor:void 0,r=n?Jl(n):"";if(r)switch(r){case ff:return df;case hf:return sf;case pf:return uf;case mf:return lf;case gf:return cf}return t}),tf=vf;Od=i("dWzsw");var yf=1,bf="[object Arguments]",wf="[object Array]",Sf="[object Object]",Cf=Object.prototype.hasOwnProperty;cl=function(e,t,n,r,o,i){var a=hd(e),s=hd(t),u=a?wf:tf(e),l=s?wf:tf(t),c=(u=u==bf?Sf:u)==Sf,d=(l=l==bf?Sf:l)==Sf,f=u==l;if(f&&Od(e)){if(!Od(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new dl),a||Md(e)?Fc(e,t,n,r,o,i):Wc(e,t,u,n,r,o,i);if(!(n&yf)){var h=c&&Cf.call(e,"__wrapped__"),p=d&&Cf.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,g=p?t.value():t;return i||(i=new dl),o(m,g,n,r,i)}}return!!f&&(i||(i=new dl),ld(e,t,n,r,o,i))},ll=function e(t,n,r,o,i){return t===n||(null==t||null==n||!_d(t)&&!_d(n)?t!=t&&n!=n:cl(t,n,r,o,e,i))},ul=function(e,t){return ll(e,t)};var Ef={},Af=(Od=i("dWzsw"),"[object Map]"),_f="[object Set]",If=Object.prototype.hasOwnProperty;Ef=function(e){if(null==e)return!0;if(Jd(e)&&(hd(e)||"string"==typeof e||"function"==typeof e.splice||Od(e)||Md(e)||Ed(e)))return!e.length;var t=tf(e);if(t==Af||t==_f)return!e.size;if(qd(e))return!Gd(e).length;for(var n in e)if(If.call(e,n))return!1;return!0};var kf={};sc=i("2B6zj");kf=function(){return sc.Date.now()};var xf={},Tf={},Pf={},Of=/\s/;Pf=function(e){for(var t=e.length;t--&&Of.test(e.charAt(t)););return t};var Nf=/^\s+/;Tf=function(e){return e?e.slice(0,Pf(e)+1).replace(Nf,""):e};var Uf={},Ff="[object Symbol]";Uf=function(e){return"symbol"==typeof e||_d(e)&&Ol(e)==Ff};var Rf=NaN,Mf=/^[-+]0x[0-9a-f]+$/i,Df=/^0b[01]+$/i,jf=/^0o[0-7]+$/i,Lf=parseInt;xf=function(e){if("number"==typeof e)return e;if(Uf(e))return Rf;if(Vl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Vl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tf(e);var n=Df.test(e);return n||jf.test(e)?Lf(e.slice(2),n?2:8):Mf.test(e)?Rf:+e};var Bf="Expected a function",zf=Math.max,Vf=Math.min;var Wf={},Hf={};Hf=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};var Gf={};Gf=function(e){return e!=e};var qf={};qf=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1},Wf=function(e,t,n){return t==t?qf(e,t,n):Hf(e,Gf,n)};var Kf={},Zf="[object String]";Kf=function(e){return"string"==typeof e||!hd(e)&&_d(e)&&Ol(e)==Zf};var Yf={},Qf={},$f=1/0,Jf=17976931348623157e292;Qf=function(e){return e?(e=xf(e))===$f||e===-$f?(e<0?-1:1)*Jf:e==e?e:0:0===e?e:0},Yf=function(e){var t=Qf(e),n=t%1;return t==t?n?t-n:t:0};var Xf={},eh={},th={};th=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},eh=function(e,t){return th(t,(function(t){return e[t]}))},Xf=function(e){return null==e?[]:eh(e,wd(e))};var nh=Math.max;var rh={},oh={},ih={},ah={},sh=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uh=/^\w*$/;ah=function(e,t){if(hd(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Uf(e))||(uh.test(e)||!sh.test(e)||null!=t&&e in Object(t))};var lh={},ch={},dh="Expected a function";function fh(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(dh);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(fh.Cache||dc),n}fh.Cache=dc,ch=fh;var hh=500;var ph=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mh=/\\(\\)?/g,gh=function(e){var t=ch(e,(function(e){return n.size===hh&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ph,(function(e,n,r,o){t.push(r?o.replace(mh,"$1"):n||e)})),t}));lh=gh;var vh={},yh={},bh=1/0,wh=Il?Il.prototype:void 0,Sh=wh?wh.toString:void 0;yh=function e(t){if("string"==typeof t)return t;if(hd(t))return th(t,e)+"";if(Uf(t))return Sh?Sh.call(t):"";var n=t+"";return"0"==n&&1/t==-bh?"-0":n},vh=function(e){return null==e?"":yh(e)},ih=function(e,t){return hd(e)?e:ah(e,t)?[e]:lh(vh(e))};var Ch={},Eh=1/0;Ch=function(e){if("string"==typeof e||Uf(e))return e;var t=e+"";return"0"==t&&1/e==-Eh?"-0":t},oh=function(e,t){for(var n=0,r=(t=ih(t,e)).length;null!=e&&n<r;)e=e[Ch(t[n++])];return n&&n==r?e:void 0},rh=function(e,t,n){var r=null==e?void 0:oh(e,t);return void 0===r?n:r};var Ah={},_h={},Ih={},kh={},xh=1,Th=2;kh=function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var u=(s=n[o])[0],l=e[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in e))return!1}else{var d=new dl;if(r)var f=r(l,c,u,e,t,d);if(!(void 0===f?ll(c,l,xh|Th,r,d):f))return!1}}return!0};var Ph={},Oh={};Oh=function(e){return e==e&&!Vl(e)},Ph=function(e){for(var t=wd(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oh(o)]}return t};var Nh={};Nh=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},Ih=function(e){var t=Ph(e);return 1==t.length&&t[0][2]?Nh(t[0][0],t[0][1]):function(n){return n===e||kh(n,e,t)}};var Uh={},Fh={},Rh={};Rh=function(e,t){return null!=e&&t in Object(e)};var Mh={};Mh=function(e,t,n){for(var r=-1,o=(t=ih(t,e)).length,i=!1;++r<o;){var a=Ch(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Dd(o)&&Nd(a,o)&&(hd(e)||Ed(e))},Fh=function(e,t){return null!=e&&Mh(e,t,Rh)};var Dh=1,jh=2;Uh=function(e,t){return ah(e)&&Oh(t)?Nh(Ch(e),t):function(n){var r=rh(n,e);return void 0===r&&r===t?Fh(n,e):ll(t,r,Dh|jh)}};var Lh={};Lh=function(e){return e};var Bh={},zh={};zh=function(e){return function(t){return null==t?void 0:t[e]}};var Vh={};Vh=function(e){return function(t){return oh(t,e)}},Bh=function(e){return ah(e)?zh(Ch(e)):Vh(e)},_h=function(e){return"function"==typeof e?e:null==e?Lh:"object"==typeof e?hd(e)?Uh(e[0],e[1]):Ih(e):Bh(e)};var Wh={},Hh={},Gh={},qh={},Kh={},Zh=function(){try{var e=xl(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();Kh=Zh,qh=function(e,t,n){"__proto__"==t&&Kh?Kh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var Yh=Object.prototype.hasOwnProperty;Gh=function(e,t,n){var r=e[t];Yh.call(e,t)&&ml(r,n)&&(void 0!==n||t in e)||qh(e,t,n)},Hh=function(e,t,n,r){if(!Vl(e))return e;for(var o=-1,i=(t=ih(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var u=Ch(t[o]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=Vl(c)?c:Nd(t[o+1])?[]:{})}Gh(s,u,l),s=s[u]}return e},Wh=function(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=oh(e,a);n(s,a)&&Hh(i,ih(a,e),s)}return i};var Qh={},$h={},Jh={},Xh=Yd(Object.getPrototypeOf,Object);Jh=Xh;var ep=Object.getOwnPropertySymbols;$h=ep?function(e){for(var t=[];e;)fd(t,md(e)),e=Jh(e);return t}:vd;var tp={},np={},rp={};rp=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var op=Object.prototype.hasOwnProperty;np=function(e){if(!Vl(e))return rp(e);var t=qd(e),n=[];for(var r in e)("constructor"!=r||!t&&op.call(e,r))&&n.push(r);return n},tp=function(e){return Jd(e)?Sd(e,!0):np(e)},Qh=function(e){return dd(e,tp,$h)},Ah=function(e,t){if(null==e)return{};var n=th(Qh(e),(function(e){return[e]}));return t=_h(t),Wh(e,n,(function(e,n){return t(e,n[0])}))};var ip={},ap={},sp=Object.prototype.hasOwnProperty;ap=function(e,t){return null!=e&&sp.call(e,t)},ip=function(e,t){return null!=e&&Mh(e,t,ap)};var up={},lp={};lp=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n};var cp={},dp={};var fp=function(e){return function(t){return null==e?void 0:e[t]}}({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});dp=fp;var hp=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pp=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");cp=function(e){return(e=vh(e))&&e.replace(hp,dp).replace(pp,"")};var mp={},gp={},vp=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;gp=function(e){return e.match(vp)||[]};var yp={},bp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;yp=function(e){return bp.test(e)};var wp={},Sp="\\u2700-\\u27bf",Cp="a-z\\xdf-\\xf6\\xf8-\\xff",Ep="A-Z\\xc0-\\xd6\\xd8-\\xde",Ap="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_p="["+Ap+"]",Ip="\\d+",kp="["+Sp+"]",xp="["+Cp+"]",Tp="[^\ud800-\udfff"+Ap+Ip+Sp+Cp+Ep+"]",Pp="(?:\ud83c[\udde6-\uddff]){2}",Op="[\ud800-\udbff][\udc00-\udfff]",Np="["+Ep+"]",Up="(?:"+xp+"|"+Tp+")",Fp="(?:"+Np+"|"+Tp+")",Rp="(?:['](?:d|ll|m|re|s|t|ve))?",Mp="(?:['](?:D|LL|M|RE|S|T|VE))?",Dp="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",jp="[\\ufe0e\\ufe0f]?",Lp=jp+Dp+("(?:\\u200d(?:"+["[^\ud800-\udfff]",Pp,Op].join("|")+")"+jp+Dp+")*"),Bp="(?:"+[kp,Pp,Op].join("|")+")"+Lp,zp=RegExp([Np+"?"+xp+"+"+Rp+"(?="+[_p,Np,"$"].join("|")+")",Fp+"+"+Mp+"(?="+[_p,Np+Up,"$"].join("|")+")",Np+"?"+Up+"+"+Rp,Np+"+"+Mp,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ip,Bp].join("|"),"g");wp=function(e){return e.match(zp)||[]},mp=function(e,t,n){return e=vh(e),void 0===(t=n?void 0:t)?yp(e)?wp(e):gp(e):e.match(t)||[]};var Vp=RegExp("[']","g");var Wp=function(e){return function(t){return lp(mp(cp(t).replace(Vp,"")),e,"")}}((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}));up=Wp;var Hp,Gp={},qp={};qp=function(e,t,n){(void 0!==n&&!ml(e[t],n)||void 0===n&&!(t in e))&&qh(e,t,n)};var Kp={};var Zp=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}();Kp=Zp;var Yp={},Qp=i("4dyIY"),$p={},Jp={};Jp=function(e){var t=new e.constructor(e.byteLength);return new Hc(t).set(new Hc(e)),t},$p=function(e,t){var n=t?Jp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Xp={};Xp=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var em={},tm={},nm=Object.create,rm=function(){function e(){}return function(t){if(!Vl(t))return{};if(nm)return nm(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();tm=rm,em=function(e){return"function"!=typeof e.constructor||qd(e)?{}:tm(Jh(e))};var om={};om=function(e){return _d(e)&&Jd(e)};Od=i("dWzsw");var im={},am="[object Object]",sm=Function.prototype,um=Object.prototype,lm=sm.toString,cm=um.hasOwnProperty,dm=lm.call(Object);im=function(e){if(!_d(e)||Ol(e)!=am)return!1;var t=Jh(e);if(null===t)return!0;var n=cm.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&lm.call(n)==dm};var fm={};fm=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var hm={},pm={};pm=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?qh(n,s,u):Gh(n,s,u)}return n},hm=function(e){return pm(e,tp(e))},Yp=function(e,t,n,r,o,i,a){var s=fm(e,n),u=fm(t,n),l=a.get(u);if(l)qp(e,n,l);else{var c=i?i(s,u,n+"",e,t,a):void 0,d=void 0===c;if(d){var f=hd(u),h=!f&&Od(u),p=!f&&!h&&Md(u);c=u,f||h||p?hd(s)?c=s:om(s)?c=Xp(s):h?(d=!1,c=Qp(u,!0)):p?(d=!1,c=$p(u,!0)):c=[]:im(u)||Ed(u)?(c=s,Ed(s)?c=hm(s):Vl(s)&&!Pl(s)||(c=em(u))):d=!1}d&&(a.set(u,c),o(c,u,r,i,a),a.delete(u)),qp(e,n,c)}},Gp=function e(t,n,r,o,i){t!==n&&Kp(n,(function(a,s){if(i||(i=new dl),Vl(a))Yp(t,n,s,r,e,o,i);else{var u=o?o(fm(t,s),a,s+"",t,n,i):void 0;void 0===u&&(u=a),qp(t,s,u)}}),tp)};var mm={},gm={},vm={};vm=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var ym=Math.max;gm=function(e,t,n){return t=ym(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=ym(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),vm(e,this,s)}};var bm,wm={},Sm={};Sm=function(e){return function(){return e}},bm=Kh?function(e,t){return Kh(e,"toString",{configurable:!0,enumerable:!1,value:Sm(t),writable:!0})}:Lh;var Cm=800,Em=16,Am=Date.now;var _m=function(e){var t=0,n=0;return function(){var r=Am(),o=Em-(r-n);if(n=r,o>0){if(++t>=Cm)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(bm);wm=_m,mm=function(e,t){return wm(gm(e,t,Lh),e+"")};var Im={};Im=function(e,t,n){if(!Vl(n))return!1;var r=typeof t;return!!("number"==r?Jd(n)&&Nd(t,n.length):"string"==r&&t in n)&&ml(n[t],e)};var km=function(e){return mm((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&Im(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t}))}((function(e,t,n){Gp(e,t,n)}));Hp=km;var xm={};Object.defineProperty(xm,"__esModule",{value:!0});var Tm={};Object.defineProperty(Tm,"__esModule",{value:!0}),
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
Tm.__assign=function(){return Tm.__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tm.__assign.apply(this,arguments)},Tm.__read=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},Tm.__rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Tm.__spreadArray=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Tm.__values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var Pm={timeout:1e4};xm.waitFor=function(e,t,n){var r=Tm.__assign(Tm.__assign({},Pm),n);return new Promise((function(n,o){var i=!1,a=r.timeout===1/0?void 0:setTimeout((function(){u.unsubscribe(),o(new Error("Timeout of ".concat(r.timeout," ms exceeded")))}),r.timeout),s=function(){clearTimeout(a),i=!0,null==u||u.unsubscribe()},u=e.subscribe({next:function(e){t(e)&&(s(),n(e))},error:function(e){s(),o(e)},complete:function(){s(),o(new Error("Actor terminated without satisfying predicate"))}});i&&u.unsubscribe()}))};var Om=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+291","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"],Nm={birthdate:{label:"Birthdate",placeholder:"Enter your Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",placeholder:"Enter your Confirmation Code",type:"number",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",placeholder:"Please confirm your Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",placeholder:"Enter your Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",placeholder:"Enter your Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",placeholder:"Enter your Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",placeholder:"Enter your Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",placeholder:"Enter your Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",placeholder:"Enter your Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",placeholder:"Enter your Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",placeholder:"Enter your Phone Number",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:Om,isRequired:!0},preferred_username:{label:"Preferred Username",placeholder:"Enter your Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",placeholder:"Add your Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",placeholder:"Add your Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",placeholder:"Enter your Username",type:"text",autocomplete:"username",isRequired:!0}},Um=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "],Fm=function(e){var t;return null===(t=e.context.actorRef)||void 0===t?void 0:t.getSnapshot()},Rm=function(e){var t;return null===(t=Fm(e))||void 0===t?void 0:t.context},Mm=function(e){var t,n=e.packageName,r=e.version;(t="".concat(n,"/").concat(r))&&(fu.prototype.userAgent&&!fu.prototype.userAgent.includes(t)&&(fu.prototype.userAgent=fu.prototype.userAgent.concat(" ",t)),fu.prototype.userAgent&&""!==fu.prototype.userAgent||(fu.prototype.userAgent=t))},Dm=function(e){return el(void 0,void 0,void 0,(function(){return tl(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,(0,xm.waitFor)(e,(function(e){return Fm(e).matches("autoSignIn")}))];case 1:case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},jm=function(e,t){return el(void 0,void 0,void 0,(function(){var n,r,o;return tl(this,(function(i){switch(i.label){case 0:switch(n=t.send,r=t.getSnapshot(),e.payload.event){case"tokenRefresh":return[3,1];case"autoSignIn":return[3,2];case"autoSignIn_failure":return[3,5];case"signOut":case"tokenRefresh_failure":return[3,7]}return[3,8];case 1:return r.matches("authenticated.idle")&&n("TOKEN_REFRESH"),[3,9];case 2:return r.matches("authenticated")?[3,4]:[4,Dm(t)];case 3:i.sent(),(null==(o=Fm(t.getSnapshot()))?void 0:o.matches("autoSignIn"))&&n({type:"AUTO_SIGN_IN",data:e.payload.data}),i.label=4;case 4:return[3,9];case 5:return[4,Dm(t)];case 6:return i.sent(),(null==(o=Fm(t.getSnapshot()))?void 0:o.matches("autoSignIn"))&&n({type:"AUTO_SIGN_IN_FAILURE",data:e.payload.data}),[3,9];case 7:return r.matches("authenticated.idle")&&n("SIGN_OUT"),[3,9];case 8:return[3,9];case 9:return[2]}}))}))},Lm=function(e,t){return void 0===t&&(t=jm),P.listen("auth",function(e,t){return function(n){t(n,e)}}(e,t),"authenticator-hub-handler")},Bm=function(e){return Um.some((function(t){return e.includes(t)}))},zm=function(e,t,n){return encodeURI("otpauth://totp/".concat(e,":").concat(t,"?secret=").concat(n,"&issuer=").concat(e))};function Vm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Object.entries(e).reduce((function(e,n){var r,o=n[0],i=n[1];return Ju(Ju({},e),((r={})[o]=t.includes(o)?i:null==i?void 0:i.trim(),r))}),{})}var Wm={validationMode:"onTouched",validator:function(e){return/[a-z]/.test(e)},message:"Password must have lower case letters"},Hm={validationMode:"onTouched",validator:function(e){return/[A-Z]/.test(e)},message:"Password must have upper case letters"},Gm={validationMode:"onTouched",validator:function(e){return/[0-9]/.test(e)},message:"Password must have numbers"},qm={validationMode:"onTouched",validator:function(e){return Bm(e)},message:"Password must have special characters"},Km=function(e){return{validationMode:"onTouched",validator:function(t){return e===t},message:"Your passwords must match"}},Zm=function(){var e=function(){var e=S.configure(),t=null==e?void 0:e.aws_cognito_password_protection_settings;if(!t)return null;var n=t.passwordPolicyCharacters,r=void 0===n?[]:n;return{minLength:t.passwordPolicyMinLength,needsLowerCase:r.includes("REQUIRES_LOWERCASE"),needsUpperCase:r.includes("REQUIRES_UPPERCASE"),needsNumber:r.includes("REQUIRES_NUMBERS"),needsSpecialChar:r.includes("REQUIRES_SYMBOLS")}}();if(!e)return[];var t=[],n=e.minLength,r=e.needsLowerCase,o=e.needsUpperCase,i=e.needsNumber,a=e.needsSpecialChar;return n&&t.push(function(e){return{validationMode:"onTouched",validator:function(t){return t.length>=e},message:"Password must have at least ".concat(e," characters")}}(n)),r&&t.push(Wm),o&&t.push(Hm),i&&t.push(Gm),a&&t.push(qm),t},Ym=function(e){return[Km(e)]},Qm=function(e){var t=e.value,n=e.validators,r=e.eventType,o=e.hasBlurred;return t?n.reduce((function(e,n){var i=n.validator,a=n.validationMode,s=n.message;if(function(e){var t=e.validationMode,n=e.eventType,r=e.hasBlurred;switch(t){case"onBlur":return"blur"===n;case"onChange":return"change"===n;case"onTouched":return"blur"===n||r}}({validationMode:a,eventType:r,hasBlurred:o}))return i(t)?e:nl(nl([],e,!0),[s],!1)}),[]):[]},$m=(Ju({},{"Account recovery requires verified contact information":"Zurücksetzen des Account benötigt einen verifizierten Account","Back to Sign In":"Zurück zur Anmeldung","Change Password":"Passwort ändern",Changing:"Ändern von",Code:"Code","Confirm Password":"Passwort bestätigen","Confirm Sign Up":"Registrierung bestätigen","Confirm SMS Code":"SMS-Code bestätigen","Confirm TOTP Code":"TOTP-Code bestätigen",Confirm:"Bestätigen","Confirmation Code":"Bestätigungs-Code",Confirming:"Wird bestätigt","Create a new account":"Einen neuen Account erstellen","Create Account":"Account erstellen","Creating Account":"Account wird erstellt","Dismiss alert":"Warnung verwerfen",Email:"Email","Enter your code":"Geben Sie Ihren Code ein","Enter your email":"Geben Sie Ihre Email ein","Enter your phone number":"Geben Sie Ihre Telefonnummer ein","Enter your username":"Geben Sie Ihren Benutzernamen ein","Forgot your password?":"Passwort vergessen? ","Hide password":"Passwort verbergen","It may take a minute to arrive":"Es kann eine Minute dauern, bis er ankommt",Loading:"Wird geladen","New password":"Neues Passwort",or:"oder",Password:"Passwort","Phone Number":"Telefonnummer","Resend Code":"Code erneut senden","Reset your Password":"Zurücksetzen des Passwort","Reset your password":"Zurücksetzen des passwort","Send code":"Code senden","Send Code":"Code senden",Sending:"Wird gesendet","Setup TOTP":"TOTP einrichten","Show password":"Passwort anzeigen","Sign in to your account":"Melden Sie sich mit Ihrem Account an","Sign In with Amazon":"Mit Amazon anmelden","Sign In with Apple":"Mit Apple anmelden","Sign In with Facebook":"Mit Facebook anmelden","Sign In with Google":"Mit Google anmelden","Sign in":"Anmelden","Sign In":"Anmelden","Signing in":"Wird angemeldet",Skip:"Überspringen",Submit:"Abschicken",Submitting:"Wird gesendet",Username:"Benutzername","Verify Contact":"Kontakt verifizieren",Verify:"Verifizieren","We Sent A Code":"Wir haben einen Code gesendet","We Texted You":"Wir haben Ihnen eine SMS-Textur","Your code is on the way. To log in, enter the code we sent you":"Ihr Code ist unterwegs. Um sich anzumelden, geben Sie den Code ein, den wir Ihnen gesendet haben","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Confirm a Code":"Code bestätigen","Confirm Sign In":"Anmeldung bestätigen","Create account":"Hier registrieren","Enter your password":"Geben Sie Ihr Passwort ein","Forgot Password":"Passwort vergessen","Have an account? ":"Schon registriert? ","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ungültiges Passwort-Format","Invalid phone number format":"Ungültiges Telefonummern-Format. Benutze eine Nummer im Format: +12345678900","It may take a minute to arrive.":"Es könnte eine Minute dauern, bis der Code eintrifft.","Lost your code? ":"Code verloren? ","New Password":"Neues Passwort","No account? ":"Kein Account? ","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht","Reset password":"Passwort zurücksetzen","Sign Out":"Abmelden","Sign Up":"Registrieren","User already exists":"Dieser Benutzer existiert bereits","User does not exist":"Dieser Benutzer existiert nicht","Username cannot be empty":"Benutzername darf nicht leer sein","We Emailed You":"Email wurde versendet","Your code is on the way. To log in, enter the code we emailed to":"Ihr Bestätigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an","Your code is on the way. To log in, enter the code we texted to":"Ihr Bestätigungscode ist unterwegs. Um sich einzuloggen geben Sie den Code ein, den wir verschickt haben an"}),Ju({},{"Account recovery requires verified contact information":"Account recovery requires verified contact information","Back to Sign In":"Back to Sign In","Change Password":"Change Password",Changing:"Changing",Code:"Code","Confirm Password":"Confirm Password","Confirm Sign Up":"Confirm Sign Up","Confirm SMS Code":"Confirm SMS Code","Confirm TOTP Code":"Confirm TOTP Code",Confirm:"Confirm","Confirmation Code":"Confirmation Code",Confirming:"Confirming","Create a new account":"Create a new account","Create Account":"Create Account","Creating Account":"Creating Account","Dismiss alert":"Dismiss alert",Email:"Email","Enter your code":"Enter your code","Enter your email":"Enter your email","Enter your phone number":"Enter your phone number","Enter your username":"Enter your username","Forgot password?":"Forgot password?","Forgot your password?":"Forgot your password?","Hide password":"Hide password","It may take a minute to arrive":"It may take a minute to arrive",Loading:"Loading","New password":"New password",or:"or",Password:"Password","Phone Number":"Phone Number","Resend Code":"Resend Code","Reset your password":"Reset your password","Reset your Password":"Reset your Password","Send code":"Send code","Send Code":"Send Code",Sending:"Sending","Setup TOTP":"Setup TOTP","Show password":"Show password","Sign in to your account":"Sign in to your account","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in":"Sign in","Sign In":"Sign In","Signing in":"Signing in",Skip:"Skip",Submit:"Submit",Submitting:"Submitting",Username:"Username","Verify Contact":"Verify Contact",Verify:"Verify","We Emailed You":"We Emailed You","We Sent A Code":"We Sent A Code","We Texted You":"We Texted You","Your code is on the way. To log in, enter the code we emailed to":"Your code is on the way. To log in, enter the code we emailed to","Your code is on the way. To log in, enter the code we sent you":"Your code is on the way. To log in, enter the code we sent you","Your code is on the way. To log in, enter the code we texted to":"Your code is on the way. To log in, enter the code we texted to"}),Ju({},{"Account recovery requires verified contact information":"La recuperación de la cuenta requiere información de contacto verificada","Back to Sign In":"Volver a inicio de sesión","Change Password":"Cambiar contraseña",Changing:"Cambiando",Code:"Código","Confirm Password":"Confirmar contraseña","Confirm Sign Up":"Confirmar registro","Confirm SMS Code":"Confirmar el código de SMS","Confirm TOTP Code":"Confirmar código TOTP",Confirm:"Confirmar","Confirmation Code":"Código de confirmación",Confirming:"Confirmando","Create a new account":"Crear una cuenta nueva","Create Account":"Crear cuenta","Creating Account":"Creando cuenta","Dismiss alert":"Descartar alerta",Email:"Email","Enter your code":"Ingrese el código","Enter your email":"Escriba su Email","Enter your phone number":"Ingrese el número de teléfono","Enter your username":"Ingrese el nombre de usuario","Forgot your password?":"¿Olvidó su contraseña?","Hide password":"Ocultar contraseña","It may take a minute to arrive":"Es posible que tarde un minuto en llegar",Loading:"Cargando","New password":"Nueva contraseña",or:"o",Password:"Contraseña","Phone Number":"Número de teléfono","Resend Code":"Reenviar código","Reset your password":"Restablecer su contraseña","Reset your Password":"Restablecer su Contraseña","Send code":"Enviar código","Send Code":"Enviar código",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar contraseña","Sign in to your account":"Iniciar sesión en tu cuenta","Sign In with Amazon":"Iniciar Sesión con Amazon","Sign In with Apple":"Iniciar Sesión con Apple","Sign In with Facebook":"Iniciar Sesión con Facebook","Sign In with Google":"Iniciar Sesión con Google","Sign in":"Iniciar sesión","Sign In":"Iniciar Sesión","Signing in":"Iniciando sesión",Skip:"Omitir",Submit:"Enviar",Submitting:"Enviando",Username:"Nombre de usuario","Verify Contact":"Verificar contacto",Verify:"Verificar","We Emailed You":"Le hemos enviado un correo electrónico","We Sent A Code":"Hemos enviado un código","We Texted You":"Le hemos enviado un mensaje de texto","Your code is on the way. To log in, enter the code we emailed to":"El código está en camino. Para iniciar sesión, escriba el código que hemos enviado por correo electrónico a","Your code is on the way. To log in, enter the code we sent you":"El código está en camino. Para iniciar sesión, escriba el código que le hemos enviado","Your code is on the way. To log in, enter the code we texted to":"El código está en camino. Para iniciar sesión, escriba el código que hemos enviado por mensaje de texto a","An account with the given email already exists.":"Ya existe una cuenta con el correo ingresado.","Confirm a Code":"Confirmar un código","Confirm Sign In":"Confirmar inicio de sesión","Forgot Password":"Olvidé mi contraseña","Incorrect username or password.":"Nombre de usuario o contraseña incorrecta","Invalid password format":"Formato de contraseña inválido","Invalid phone number format":"Formato de número de teléfono inválido","Loading...":"Cargando...","New Password":"Nueva contraseña","Resend a Code":"Reenviar un código","Sign Out":"Cerrar sesión","Sign Up with Amazon":"Crear cuenta con Amazon","Sign Up with Apple":"Crear cuenta con Apple","Sign Up with Facebook":"Crear cuenta con Facebook","Sign Up with Google":"Crear cuenta con Google","Sign Up":"Crear cuenta","User already exists":"El usuario ya existe","User does not exist":"El usuario no existe","Username cannot be empty":"El nombre de usuario no puede estar vacío","Your passwords must match":"Las contraseñas deben coincidir"}),Ju({},{"Account recovery requires verified contact information":"La récupération du compte nécessite des informations de contact vérifiées","Back to Sign In":"Retour à la connexion","Change Password":"Modifier le mot de passe",Changing:"Modification en cours",Code:"Code","Confirm Password":"Confirmez le mot de passe","Confirm Sign Up":"Confirmer l'inscription","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP",Confirm:"Confirmer","Confirmation Code":"Code de confirmation",Confirming:"Confirmation","Create a new account":"Créer un nouveau compte","Create Account":"Créer un compte","Creating Account":"Création d'un compte","Dismiss alert":"Supprimer l'alerte",Email:"Email","Enter your code":"Saisissez cotre code de confirmation","Enter your email":"Saisissez votre adresse email","Enter your phone number":"Saisissez votre numéro de téléphone","Enter your username":"Saisissez votre nom d'utilisateur","Forgot your password?":"Mot de passe oublié ? ","Hide password":"Masquer le mot de passe","It may take a minute to arrive":"Cela peut prendre une minute",Loading:"Chargement en cours","New password":"Nouveau mot de passe",or:"ou",Password:"Mot de passe","Phone Number":"Numéro de téléphone","Resend Code":"Renvoyer le code","Reset your Password":"Réinitialiser votre mot de passe","Reset your password":"Réinitialisez votre mot de passe","Send code":"Envoyer le code","Send Code":"M'envoyer un code",Sending:"Envoi en cours","Setup TOTP":"Configuration de TOTP","Show password":"Afficher le mot de passe","Sign in to your account":"Connexion à votre compte","Sign In with Amazon":"Se connecter avec Amazon","Sign In with Apple":"Se connecter avec Apple","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign in":"Se connecter","Sign In":"Se connecter","Signing in":"Connexion en cours",Skip:"Passer",Submit:"Soumettre",Submitting:"Envoi en cours",Username:"Nom d'utilisateur","Verify Contact":"Vérifier le contact",Verify:"Vérifier","We Sent A Code":"Nous avons envoyé un code","We Texted You":"Nous vous avons envoyé un SMS","Your code is on the way. To log in, enter the code we sent you":"Votre code est en cours d'envoi. Pour vous connecter, saisissez le code que nous vous avons envoyé","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe déjà.",Change:"Modifier","Confirm a Code":"Confirmer un code","Confirm Sign In":"Confirmer la connexion","Create account":"Créer un compte","Enter your password":"Saisissez votre mot de passe","Forgot Password":"Mot de passe oublié","Have an account? ":"Déjà un compte ? ",Hello:"Bonjour","Incorrect username or password":"Identifiant ou mot de passe incorrect","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de numéro de téléphone invalide. Veuillez utiliser un format +12345678900","Loading...":"Chargement...","Lost your code? ":"Vous avez perdu votre code ? ","Network error":"Erreur réseau","New Password":"Nouveau mot de passe","No account? ":"Pas de compte ? ","Resend a Code":"Renvoyer un code","Reset password":"Réinitialisez votre mot de passe",Send:"Envoyer","Sign In with AWS":"Se connecter avec AWS","Sign Out":"Déconnexion","Sign Up":"S'inscrire",SMS:"SMS","User already exists":"L'utilisateur existe déjà","User does not exist":"L'utilisateur n'existe pas","Username cannot be empty":"Le nom d'utilisateur doit être renseigné","Username/client id combination not found.":"L'utilisateur n'existe pas","We Emailed You":"Nous vous avons envoyé un code","Your code is on the way. To log in, enter the code we emailed to":"Votre code est en route. Pour vous connecter entrez le code reçu sur cette adresse email","Your code is on the way. To log in, enter the code we texted to":"Votre code est en route. Pour vous connecter entrez le code reçu sur ce numéro de téléphone","It may take a minute to arrive.":"Cela peut prendre quelques minutes."}),Ju({},{"Account recovery requires verified contact information":"Il ripristino dell'account richiede informazioni di contatto verificate","Back to Sign In":"Torna alla schermata di accesso","Change Password":"Cambia la password",Changing:"Modifica in corso",Code:"Codice","Confirm Password":"Conferma la password","Confirm Sign Up":"Conferma registrazione","Confirm SMS Code":"Conferma codice SMS","Confirm TOTP Code":"Conferma codice TOTP",Confirm:"Conferma","Confirmation Code":"Codice di verifica",Confirming:"Conferma in corso","Create a new account":"Crea un nuovo account","Create Account":"Crea Account","Creating Account":"Creazione account in corso","Dismiss alert":"Ignora l'avviso",Email:"Email","Enter your code":"Inserisci il tuo codice","Enter your email":"Inserisci la tua e-mail","Enter your phone number":'Inserisci il tuo numero di telefono"',"Enter your username":"Inserisci il tuo nome utente","Forgot your password?":"Password dimenticata?","Hide password":"Nascondi password","It may take a minute to arrive":"L'arrivo potrebbe richiedere qualche minuto",Loading:"Caricamento in corso","New password":"Nuova password",or:"oppure",Password:"Password","Phone Number":"Numero di telefono","Resend Code":"Invia nuovamente il codice","Reset your Password":"Reimposta la tua Password","Reset your password":"Reimposta la tua password","Send code":"Invia codice","Send Code":"Invia codice",Sending:"Invio in corso","Setup TOTP":"Configura TOTP","Show password":"Mostra password","Sign in to your account":"Accedi al tuo account","Sign In with Amazon":"Accedi con Amazon","Sign In with Apple":"Accedi con Apple","Sign In with Facebook":"Accedi con Facebook","Sign In with Google":"Accedi con Google","Sign in":"Accedi","Sign In":"Accedi","Signing in":"Accesso in corso",Skip:"Salta",Submit:"Invia",Submitting:"Invio in corso",Username:"Nome utente","Verify Contact":"Verifica contatto",Verify:"Verifica","We Emailed You":"Ti abbiamo inviato un'e-mail","We Sent A Code":"Ti abbiamo inviato un codice","We Texted You":"Ti abbiamo inviato un SMS","Your code is on the way. To log in, enter the code we emailed to":"Il codice è in arrivo. Per effettuare l'accesso, immetti il codice che ti abbiamo inviato via e-mail","Your code is on the way. To log in, enter the code we sent you":"Il codice è in arrivo. Per accedere, immetti il codice che ti abbiamo inviato","Your code is on the way. To log in, enter the code we texted to":"Il codice è in arrivo. Per accedere, immetti il codice che abbiamo inviato tramite SMS","An account with the given email already exists.":"Questa email è già utilizzata da un altro account.","Confirm a Code":"Conferma un codice","Confirm Sign In":"Conferma l'accesso","Create account":"Crea account","Enter your password":"Inserisci la tua password","Forgot Password?":"Password dimenticata?","Have an account? ":"Già registrato?","Incorrect username or password":"Nome utente o password errati","Invalid password format":"Formato della password non valido","Invalid phone number format":"Formato del numero di telefono non valido","Lost your code?":"Codice smarrito?","New Password":"Nuova password","No account? ":"Non hai un account?","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti è stato raggiunto","Reset password":"Reimposta password","Sign Out":"Esci","Sign Up":"Registrati","User already exists":"Utente già esistente","User does not exist":"Utente inesistente","Username cannot be empty":"Il nome utente non può essere vuoto"}),Ju({},{"Account recovery requires verified contact information":"アカウントの復旧には確認済みの連絡先が必要です","Back to Sign In":"サインインに戻る","Change Password":"パスワードを変える ",Changing:"変更中",Code:"コード","Confirm Password":"パスワードの確認","Confirm Sign Up":"登録する","Confirm SMS Code":"SMS コードを確認","Confirm TOTP Code":"TOTP コードを確認",Confirm:"確定","Confirmation Code":"確認コード",Confirming:"確認中","Create a new account":"新しいアカウントを作る","Create Account":"アカウントを作る","Creating Account":"アカウントの作成中","Dismiss alert":"アラートを閉じる",Email:"メールアドレス","Enter your code":"コードを入力","Enter your email":"メールアドレスを入力","Enter your phone number":"電話番号を入力","Enter your username":"ユーザー名を入力 ","Forgot your password?":"パスワードを忘れましたか? ","Hide password":"パスワードを非表示","It may take a minute to arrive":"到着するまでに 1 分かかることがあります。",Loading:"ロード中","New password":"新しいパスワード",or:"又は",Password:"パスワード ","Phone Number":"電話番号","Resend Code":"コードを再送信","Reset your Password":"パスワードをリセット","Reset your password":"パスワードをリセットする","Send code":"コードを送信","Send Code":"コードを送信",Sending:"送信中","Setup TOTP":"TOTP をセットアップ","Show password":"パスワードを表示","Sign in to your account":"アカウントにサインイン ","Sign In with Amazon":"Amazonでサインイン","Sign In with Apple":"Apple でサインイン","Sign In with Facebook":"Facebookでサインイン","Sign In with Google":"Googleでサインイン","Sign In":"サインイン ","Sign in":"サインイン","Signing in":"サインイン中",Skip:"スキップ",Submit:"送信",Submitting:"送信中",Username:"ユーザー名 ","Verify Contact":"連絡先を確認",Verify:"確認","We Sent A Code":"コードが送信されました","We Texted You":"テキストが送信されました","Your code is on the way. To log in, enter the code we sent you":"コードが途中です。ログインするには、送信したコードを入力してください。","An account with the given email already exists.":"入力されたメールアドレスのアカウントが既に存在します","Confirm a Code":"コードを確認","Confirm Sign In":"サインインする","Create account":"アカウントを作る ","Enter your password":"パスワードを入力 ","Forgot Password":"パスワードを忘れた ","Have an account? ":"アカウントを持っていますか?","Incorrect username or password":"ユーザー名かパスワードが異なります ","Invalid password format":"パスワードの形式が無効です ","Invalid phone number format":"不正な電話番号の形式です。\n+12345678900 の形式で入力してください","It may take a minute to arrive.":"コードを受信するまで数分かかる場合があります。","Lost your code? ":"コードを失くしましたか?","New Password":"新しいパスワード","No account? ":"アカウントが無いとき ","Password attempts exceeded":"サインインの試行回数が上限に達しました","Reset password":"パスワードをリセット ","Sign Out":"サインアウト ","Sign Up":"登録 ","User already exists":"既にユーザーが存在しています ","User does not exist":"ユーザーが存在しません ","Username cannot be empty":"ユーザー名は入力必須です","We Emailed You":"コードを送信しました","Your code is on the way. To log in, enter the code we emailed to":"ログインするには、メールに記載されたコードを入力してください。送信先:","Your code is on the way. To log in, enter the code we texted to":"ログインするには、テキストメッセージに記載されたコードを入力してください。送信先:"}),Ju({},{"Account recovery requires verified contact information":"계정 복구를 위해 연락처 확인이 필요합니다","Back to Sign In":"로그인으로 돌아가기","Change Password":"비밀번호 변경하기",Changing:"변경중",Code:"코드","Confirm Password":"비밀번호 재확인","Confirm Sign Up":"회원가입 확인","Confirm SMS Code":"휴대폰 본인 확인","Confirm TOTP Code":"TOTP 인증번호 확인",Confirm:"확인","Confirmation Code":"인증번호",Confirming:"확인중","Create a new account":"회원가입","Create Account":"회원가입","Creating Account":"회원가입중","Dismiss alert":"알림 무시",Email:"이메일","Enter your code":"인증번호를 입력해주세요","Enter your email":"이메일 입력","Enter your phone number":"전화번호 입력","Enter your username":"아이디를 입력해주세요","Hide password":"비밀번호 숨기기","It may take a minute to arrive":"도착하는 데 1분 정도 걸릴 수 있습니다",Loading:"로딩중","New password":"새 비밀번호",or:"또는",Password:"비밀번호","Phone Number":"전화번호","Resend Code":"인증번호 재전송","Reset your password":"비밀번호 재설정","Reset your Password":"비밀번호 재설정","Send code":"인증코드 보내기","Send Code":"코드 전송",Sending:"전송중","Setup TOTP":"TOTP 설정하기","Show password":"비밀번호 보이기","Sign in to your account":"로그인","Sign In with Amazon":"Amazon 로그인","Sign In with Apple":"Apple 로그인","Sign In with Facebook":"Facebook 로그인","Sign In with Google":"Google 로그인","Sign in":"로그인","Sign In":"로그인","Signing in":"로그인중",Skip:"다음에 하기",Submit:"확인",Submitting:"확인중",Username:"아이디","Verify Contact":"연락처 확인",Verify:"인증","We Emailed You":"이메일을 보냄","We Sent A Code":"코드를 보냄","We Texted You":"문자 메시지를 보냄","Your code is on the way. To log in, enter the code we emailed to":"코드가 전송 중입니다. 로그인하려면 이메일로 전송한 코드를 입력하세요","Your code is on the way. To log in, enter the code we sent you":"코드가 전송 중입니다. 로그인하려면 전송한 코드를 입력하세요","Your code is on the way. To log in, enter the code we texted to":"코드가 전송 중입니다. 로그인하려면 문자 메시지로 전송한 코드를 입력하세요",Birthdate:"생년월일","Family Name":"성","Forgot your password?":"비밀번호를 잊으셨나요?","Given Name":"이름",Name:"성함",Nickname:"닉네임","Preferred Username":"닉네임",Profile:"프로필","Reset Password":"비밀번호 재설정",Website:"웹사이트"}),Ju({},{"Account recovery requires verified contact information":"Accountherstel vereist geverifieerde contactgegevens","Back to Sign In":"Terug naar inloggen","Change Password":"Wachtwoord wijzigen",Changing:"Wordt aangepast",Code:"Code","Confirm Password":"Bevestig Wachtwoord","Confirm Sign Up":"Bevestig inschrijving","Confirm SMS Code":"Bevestig SMS Code","Confirm TOTP Code":"Bevestig TOTP Code",Confirm:"Bevestig","Confirmation Code":"Bevestigingscode",Confirming:"Bevestigen","Create a new account":"Nieuw account aanmaken","Create Account":"Account aanmaken","Creating Account":"Account wordt aangemaakt","Dismiss alert":"Waarschuwing sluiten",Email:"E-mail","Enter your code":"Vul je code in","Enter your email":"Vul je e-mail in","Enter your phone number":"Vul je telefoonnummer in","Enter your username":"Vul je gebruikersnaam in","Forgot your password?":"Wachtwoord vergeten? ","Hide password":"Verberg wachtwoord","It may take a minute to arrive":"Het kan even duren voordat deze aankomt",Loading:"Laden","New password":"Nieuw wachtwoord",or:"of",Password:"Wachtwoord","Phone Number":"Telefoonnummer","Resend Code":"Verstuur code nogmaals","Reset your password":"Reset je wachtwoord","Reset your Password":"Wachtwoord resetten","Send code":"Verstuur code","Send Code":"Verstuur Code",Sending:"Versturen","Setup TOTP":"TOTP Instellingen","Show password":"Toon wachtwoord","Sign in to your account":"Inloggen op je account","Sign In with Amazon":"Inloggen met Amazon","Sign In with Apple":"Inloggen met Apple","Sign In with Facebook":"Inloggen met Facebook","Sign In with Google":"Inloggen met Google","Sign in":"Inloggen","Sign In":"Inloggen","Signing in":"Inloggen",Skip:"Overslaan",Submit:"Versturen",Submitting:"Wordt verstuurd",Username:"Gebruikersnaam","Verify Contact":"Verifieer Contact",Verify:"Verifieer","We Emailed You":"We hebben u een e-mail gestuurd","We Sent A Code":"We hebben een code gestuurd","We Texted You":"We hebben u een sms gestuurd","Your code is on the way. To log in, enter the code we emailed to":"Uw code is onderweg. Om in te loggen, voer de code in die we gemaild hebben naar","Your code is on the way. To log in, enter the code we sent you":"Uw code is onderweg. Om in te loggen, voer de code in die we u hebben gestuurd","Your code is on the way. To log in, enter the code we texted to":"Uw code is onderweg. Om in te loggen, voer de code in die we hebben gestuurd naar"}),Ju({},{"Account recovery requires verified contact information":"Odzyskanie konta wymaga zweryfikowanych danych kontaktowych","Back to Sign In":"Powrót do logowania","Change Password":"Zmień hasło",Changing:"Zmienianie",Code:"Kod","Confirm Password":"Potwierdź Hasło","Confirm Sign Up":"Potwierdź rejestrację","Confirm SMS Code":"Potwierdź kod SMS","Confirm TOTP Code":"Potwierdź hasło jednorazowe",Confirm:"Potwierdź","Confirmation Code":"Kod potwierdzenia",Confirming:"Potwierdzanie","Create a new account":"Utwórz nowe konto","Create Account":"Utwórz konto","Creating Account":"Tworzenie konta","Dismiss alert":"Odrzuć alert",Email:"E-mail","Enter your code":"Wprowadź swój kod","Enter your email":"Wpisz swój adres e-mail","Enter your phone number":"Wpisz swój numer telefonu","Enter your username":"Wprowadź swoją nazwę użytkownika","Forgot your password?":"Zapomniałeś hasła? ","Hide password":"Ukryj hasło","It may take a minute to arrive":"Może to chwilę potrwać",Loading:"Ładowanie","New password":"Nowe hasło",or:"albo",Password:"Hasło","Phone Number":"Numer telefonu","Resend Code":"Wyślij kod ponownie","Reset your password":"Zresetuj swoje hasło","Reset your Password":"Zresetuj swoje hasło","Send code":"Wyślij kod","Send Code":"Zresetuj hasło",Sending:"Wysyłanie","Setup TOTP":"Konfiguruj TOTP","Show password":"Pokaż hasło","Sign in to your account":"Zaloguj się na swoje konto","Sign In with Amazon":"Zaloguj z Amazon","Sign In with Apple":"Zaloguj z Apple","Sign In with Facebook":"Zaloguj z Facebook","Sign In with Google":"Zaloguj z Google","Sign In":"Logowanie","Sign in":"Zaloguj","Signing in":"Logowanie",Skip:"Pomiń",Submit:"Wyślij",Submitting:"Wysyłanie",Username:"Nazwa użytkownika","Verify Contact":"Weryfikacja danych kontaktowych",Verify:"Zweryfikuj",Birthdate:"Data urodzenia","Family Name":"Nazwisko","Given Name":"Pierwsze imię","Middle Name":"Drugie imię",Name:"Imię i nazwisko",Nickname:"Pseudonim","Preferred Username":"Preferowana nazwa użytkownika",Profile:"Profil",Website:"Strona internetowa","We Emailed You":"Wysłaliśmy Ci wiadomość e-mail","We Sent A Code":"Wysłaliśmy kod","We Texted You":"Wysłaliśmy Ci wiadomość SMS","Your code is on the way. To log in, enter the code we emailed to":"Twój kod został wysłany. Aby się zalogować, wprowadź kod wysłany na adres e-mail","Your code is on the way. To log in, enter the code we sent you":"Twój kod został wysłany. Aby się zalogować, wprowadź wysłany do Ciebie kod","Your code is on the way. To log in, enter the code we texted to":"Twój kod został wysłany. Aby się zalogować, wprowadź kod wysłany do Ciebie w wiadomości SMS pod numer"}),Ju({},{"Account recovery requires verified contact information":"A recuperação da conta requer informações de contato verificadas","Back to Sign In":"Voltar para Entrar","Change Password":"Mudar senha",Changing:"Mudando",Code:"Código","Confirm Password":"Confirme a Senha","Confirm Sign Up":"Confirmar inscrição","Confirm SMS Code":"Confirme o código SMS","Confirm TOTP Code":"Confirme o código TOTP",Confirm:"confirme","Confirmation Code":"Código de confirmação",Confirming:"Confirmando","Create a new account":"Criar uma nova conta","Create Account":"Criar Conta","Creating Account":"Criando conta","Dismiss alert":"Descartar alerta",Email:"O email","Enter your code":"Insira seu código","Enter your email":"Digite seu e-mail","Enter your phone number":"Digite seu número de telefone","Enter your username":"entre com seu nome de usuário","Forgot your password?":"Esqueceu sua senha? ","Hide password":"Esconder a senha","It may take a minute to arrive":"Pode levar um minuto para chegar",Loading:"Carregando","New password":"Nova Senha",or:"ou",Password:"Senha","Phone Number":"Número de telefone","Resend Code":"Reenviar código","Reset your password":"Redefina sua senha","Reset your Password":"Redefina sua senha","Send code":"Enviar código","Send Code":"Enviar código",Sending:"Enviando","Setup TOTP":"Configurar TOTP","Show password":"Mostrar senha","Sign in to your account":"Faça login em sua conta","Sign In with Amazon":"Entrar com a Amazon","Sign In with Apple":"Entrar com a Apple","Sign In with Facebook":"Entrar com o Facebook","Sign In with Google":"Faça login no Google","Sign in":"Entrar","Sign In":"Entrar","Signing in":"Entrando",Skip:"Pular",Submit:"Enviar",Submitting:"Enviando",Username:"Nome do usuário","Verify Contact":"Verificar contato",Verify:"Verificar","We Emailed You":"Enviamos um e-mail para você","We Sent A Code":"Enviamos um código","We Texted You":"Enviamos um SMS para você","Your code is on the way. To log in, enter the code we emailed to":"Seu código está a caminho. Para fazer login, insira o código para o qual enviamos um e-mail","Your code is on the way. To log in, enter the code we sent you":"Seu código está a caminho. Para fazer login, insira o código que enviamos para você","Your code is on the way. To log in, enter the code we texted to":"Seu código está a caminho. Para fazer login, insira o código para o qual enviamos uma mensagem de texto"}),Ju({},{"Account recovery requires verified contact information":"账户恢复需要验证过的联系方式","Back to Sign In":"回到登录","Change Password":"更改密码",Changing:"正在修改",Code:"确认码","Confirm Password":"确认密码","Confirm Sign Up":"确认注册","Confirm SMS Code":"确认短信验证码","Confirm TOTP Code":"确认 TOTP 代码",Confirm:"确认","Confirmation Code":"确认码",Confirming:"正在确认","Create a new account":"创建新账户","Create Account":"创建账户","Creating Account":"正在创建账户","Dismiss alert":"关闭警报",Email:"邮箱","Enter your code":"输入验证码","Enter your email":"输入电子邮件","Enter your phone number":"输入电话号码","Enter your username":"输入用户名","Forgot your password?":"忘记密码了?","Hide password":"隐藏密码","It may take a minute to arrive":"可能需要一分钟才能到达",Loading:"正在加载","New password":"新密码",or:"或者",Password:"密码","Phone Number":"电话","Resend Code":"重发验证码","Reset your password":"重置密码","Reset your Password":"重置密码","Send Code":"发送确认码","Send code":"发送验证码",Sending:"正在发送","Setup TOTP":"设置 TOTP","Show password":"显示密码","Sign in to your account":"登录账户","Sign In with Amazon":"通过 Amazon 登录","Sign In with Apple":"通过 Apple 登录","Sign In with Facebook":"通过 Facebook 登录","Sign In with Google":"通过 Google 登录","Sign in":"登录","Sign In":"登录","Signing in":"正在登录",Skip:"跳过",Submit:"提交",Submitting:"正在提交",Username:"用户名","Verify Contact":"验证联系方式",Verify:"验证","We Emailed You":"我们给您发送了电子邮件","We Sent A Code":"我们发送了代码","We Texted You":"我们给您发送了短信","Your code is on the way. To log in, enter the code we emailed to":"您的代码正在发送中。要登录,请输入我们通过电子邮件发送给以下人员的代码:","Your code is on the way. To log in, enter the code we sent you":"您的代码正在发送中。要登录,请输入我们发送给您的代码","Your code is on the way. To log in, enter the code we texted to":"您的代码正在发送中。要登录,请输入我们通过短信发送给以下人员的代码:","Confirm a Code":"确认码","Confirm Sign In":"确认登录","Forgot Password":"忘记密码","Incorrect username or password":"用户名或密码错误","Invalid password format":"密码格式错误","Invalid phone number format":"电话格式错误,请使用格式 +12345678900","New Password":"新密码","Resend a Code":"重发确认码","Sign Out":"退出","Sign Up":"注册","User already exists":"用户已经存在","User does not exist":"用户不存在"}),Ju({},{"Account recovery requires verified contact information":"För att återställa kontot behöver du ett verifierat konto","Back to Sign In":"Tillbaka till inloggningen","Change Password":"Byt lösenord",Changing:"Ändra",Code:"Kod","Confirm Password":"Bekräfta lösenord","Confirm Sign Up":"Bekräfta registrering","Confirm SMS Code":"Bekräfta SMS-kod","Confirm TOTP Code":"Bekräfta TOTP-kod",Confirm:"Bekräfta","Confirmation Code":"Verifikationskod",Confirming:"Bekräftar","Create a new account":"Skapa ett nytt konto","Create Account":"Skapa konto","Creating Account":"Skapar konto","Dismiss alert":"Avvisa varning",Email:"E-post","Enter your code":"Skriv din kod","Enter your email":"Fyll i din e-post","Enter your phone number":"Ange ditt telefonnummer","Enter your username":"Ange ditt användarnamn","Forgot your password?":"Glömt ditt lösenord? ","Hide password":"Dölj lösenord","It may take a minute to arrive":"Det kan ta en minut att komma fram",Loading:"Laddar","New password":"Nytt lösenord",or:"eller",Password:"Lösenord","Phone Number":"Telefonnummer","Resend Code":"Skicka koden igen","Reset your password":"Återställ ditt lösenord","Reset your Password":"Återställ ditt lösenord","Send code":"Skicka kod","Send Code":"Skicka kod",Sending:"Skickar","Setup TOTP":"Konfigurera TOTP","Show password":"Visa lösenord","Sign in to your account":"Logga in till ditt konto","Sign In with Amazon":"Logga in med Amazon","Sign In with Apple":"Logga in med Apple","Sign In with Facebook":"Logga in med Facebook","Sign In with Google":"Logga in med Google","Sign in":"Logga in","Sign In":"Logga in","Signing in":"Loggar in",Skip:"Hoppa över",Submit:"Skicka",Submitting:"Skickar in",Username:"Användarnamn","Verify Contact":"Verifiera kontakt",Verify:"Verifiera","We Sent A Code":"Vi skickade en kod","We Texted You":"Vi sms:ade dig","Your code is on the way. To log in, enter the code we emailed to":"Din kod är på väg. För att logga in, ange koden vi mejlade till","Your code is on the way. To log in, enter the code we sent you":"Din kod är på väg. För att logga in, ange koden vi skickade till dig","Your code is on the way. To log in, enter the code we texted to":"Din kod är på väg. För att logga in, ange koden vi sms:ade till","An account with the given email already exists.":"Det finns redan ett konto med denna e-postadress","Confirm a Code":"Bekräfta koden","Confirm Sign In":"Bekräfta inloggning","Create account":"Skapa konto","Enter your password":"Ange ditt lösenord","Forgot Password":"Glömt lösenordet","Have an account? ":"Redan registrerad? ","Incorrect username or password":"Felaktigt användarnamn eller lösenord","Invalid password format":"Ogiltigt lösenordsformat","Invalid phone number format":"Ogiltigt format för telefonnummer","Lost your code? ":"Förlorat koden? ","New Password":"Nytt lösenord","No account? ":"Inget konto? ","Password attempts exceeded":"Maximalt antal felaktiga inloggningsförsök har uppnåtts","Reset password":"Återställ lösenord","Sign Out":"Logga ut","Sign Up":"Registrering","User already exists":"Användaren finns redan","User does not exist":"Användaren finns inte","Username cannot be empty":"Användarnamnet kan inte vara tomt","We Emailed You":"Vi har skickat e-post till dig"}),Ju({},{"Account recovery requires verified contact information":"Pemulihan akun memerlukan informasi kontak terverifikasi","Back to Sign In":"Kembali ke Masuk","Change Password":"Ubah kata sandi",Changing:"Mengubah",Code:"Kode","Confirm Password":"Konfirmasi kata sandi","Confirm Sign Up":"Konfirmasi Pendaftaran","Confirm SMS Code":"Konfirmasi Kode SMS","Confirm TOTP Code":"Konfirmasi Kode TOTP",Confirm:"Konfirmasi","Confirmation Code":"Kode Konfirmasi",Confirming:"Mengkonfirmasi","Create a new account":"Buat akun baru","Create Account":"Buat Akun","Creating Account":"Membuat Akun","Dismiss alert":"Hentikan pemberitahuan",Email:"Email","Enter your code":"Masukkan kode anda","Enter your email":"Masukkan email anda","Enter your phone number":"Masukkan nomor telepon anda","Enter your username":"Masukkan nama akun anda","Forgot your password?":"Lupa kata sandi? ","Hide password":"Sembunyikan kata sandi","It may take a minute to arrive":"Mungkin perlu waktu satu menit untuk tiba",Loading:"Memuat","New password":"Kata sandi baru",or:"atau",Password:"Kata sandi","Phone Number":"Nomor telepon","Resend Code":"Kirim ulang kodenya","Reset your Password":"Reset Kata Sandi","Reset your password":"Ubah kata sandi anda","Send code":"Kirim kode","Send Code":"Kirim Kode",Sending:"Mengirim","Setup TOTP":"Siapkan TOTP","Show password":"Tampilkan kata sandi","Sign in to your account":"Masuk akun anda","Sign In with Amazon":"Masuk dengan Amazon","Sign In with Apple":"Masuk dengan Apple","Sign In with Facebook":"Masuk dengan Facebook","Sign In with Google":"Masuk dengan Google","Sign in":"Masuk","Sign In":"Masuk","Signing in":"Memasuki",Skip:"Lewati",Submit:"Ajukan",Submitting:"Mengajukan",Username:"Nama akun","Verify Contact":"Verifikasi Kontak",Verify:"Verifikasi","We Sent A Code":"Kami Mengirim Kode","We Texted You":"Kami mengirim SMS kepada Anda","Your code is on the way. To log in, enter the code we sent you":"Kode Anda segera hadir. Untuk masuk, masukkan kode yang kami kirimkan kepada Anda","An account with the given email already exists.":"Akun dengan email tersebut sudah terdaftar.","Attempt limit exceeded, please try after some time.":"Batas percobaan terlampaui, mohon coba lagi setelah beberapa waktu.","Cannot reset password for the user as there is no registered/verified email or phone_number":"Tidak dapat mengatur ulang kata sandi karena tidak ada email terdaftar / terverifikasi atau nomor telepon",Change:"Ubah","Confirm a Code":"Konfirmasi kode","Create account":"Buat akun","Enter your password":"Masukkan kata sandi anda","Forgot Password":"Lupa kata sandi","Have an account? ":"Sudah punya akun? ",Hello:"Halo","Incorrect username or password.":"Nama akun atau kata sandi salah.","Invalid phone number format":"Nomor telepon tidak sesuai dengan format.","Invalid verification code provided, please try again.":"Kode verifikasi tidak sesuai, mohon coba lagi.","It may take a minute to arrive.":"Mungkin perlu beberapa waktu untuk tiba.","Lost your code? ":"Kode anda hilang?",Name:"Nama","Network error":"Galat jaringan","No account? ":"Tidak ada akun?","Password did not conform with policy: Password not long enough":"Kata sandi tidak sesuai dengan aturan: Kata sandi kurang panjang","Resend a Code":"Renvoyer un code","Reset password":"Ubah kata sandi anda",Send:"Kirim","Sign In with AWS":"Masuk dengan AWS","Sign Up with Amazon":"Daftar dengan Amazon","Sign Up with AWS":"Daftar dengan AWS","Sign Up with Facebook":"Daftar dengan Facebook","Sign Up with Google":"Daftar dengan Google",SMS:"SMS","User already exists":"Akun sudah terdaftar","User does not exist.":"Akun tidak terdaftar.","User is disabled.":"Akun dinonaktifkan.","Username cannot be empty":"Nama akun tidak boleh kosong","Username/client id combination not found.":"Nama akun atau id tidak ditemukan.","We Emailed You":"Kami mengirimkanmu email","Your code is on the way. To log in, enter the code we emailed to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami emailkan ke","Your code is on the way. To log in, enter the code we texted to":"Kode anda dalam pengiriman. Untuk masuk, masukkan kode yang kami tuliskan ke","Your passwords must match":"Kata sandi harus sama"}),Ju({},{"Account recovery requires verified contact information":"Hesap kurtarma, doğrulanmış iletişim bilgilerini gerektirir","Back to Sign In":"Oturum Açmaya Geri Dön","Change Password":"Şifreyi Değiştir",Changing:"Değiştiriliyor",Code:"Kod","Confirm Password":"Şifreyi Doğrula","Confirm Sign Up":"Kayıt İşlemini Doğrula","Confirm SMS Code":"SMS Kodunu Doğrula","Confirm TOTP Code":"Tek Kullanımlık Şifreyi Doğrula",Confirm:"Doğrula","Confirmation Code":"Doğrulama Kodu",Confirming:"Doğrulanıyor","Create a new account":"Yeni bir hesap oluştur","Create Account":"Hesap Oluştur","Creating Account":"Hesap Oluşturuluyor","Dismiss alert":"Uyarıyı reddet",Email:"E-posta","Enter your code":"Kodu girin","Enter your email":"E-posta adresinizi girin","Enter your phone number":"Telefon numaranızı girin","Enter your username":"Kullanıcı adınızı girin","Forgot your password?":"Şifrenizi mi unuttunuz?","Hide password":"Şifreyi gizle","It may take a minute to arrive":"Kodun gelmesi bir dakika sürebilir",Loading:"Yükleniyor","New password":"Yeni şifre",or:"veya",Password:"Şifre","Phone Number":"Telefon Numarası","Resend Code":"Kodu Yeniden Gönder","Reset your password":"Şifrenizi sıfırlayın","Reset your Password":"Şifrenizi Sıfırlayın","Send code":"Kod gönder","Send Code":"Kod Gönder",Sending:"Gönderiliyor","Setup TOTP":"Tek kullanımlık şifre kurulumu yap","Show password":"Şifreyi göster","Sign in to your account":"Hesabınızda oturum açın","Sign In with Amazon":"Amazon ile Oturum Aç","Sign In with Apple":"Apple ile Oturum Aç","Sign In with Facebook":"Facebook ile Oturum Aç","Sign In with Google":"Google ile Oturum Aç","Sign in":"Oturum aç","Sign In":"Oturum Aç","Signing in":"Oturum açılıyor",Skip:"Atla",Submit:"Gönder",Submitting:"Gönderiliyor",Username:"Kullanıcı adı","Verify Contact":"Kişiyi Doğrula",Verify:"Doğrula","We Emailed You":"Size E-posta Gönderdik","We Sent A Code":"Bir Kod Gönderdik","We Texted You":"Size Mesaj Gönderdik","Your code is on the way. To log in, enter the code we emailed to":"Kodunuz yolda. Oturum açmak için, gönderdiğimiz e-postadaki kodu girin","Your code is on the way. To log in, enter the code we sent you":"Kodunuz yolda. Oturum açmak için, size gönderdiğimiz kodu girin","Your code is on the way. To log in, enter the code we texted to":"Kodunuz yolda. Oturum açmak için, gönderdiğimiz mesajdaki kodu girin","An account with the given email already exists.":"Bu e-postaya ait zaten bir hesap var.","Confirm Sign In":"Oturum Açmayı Doğrula","Have an account? ":"Hesabınız var mı? ","Incorrect username or password":"Yanlış kullanıcı adı ya da şifre","Invalid password format":"Geçersiz parola formatı","Invalid phone number format":"Geçersiz telefon numarası formatı","Lost your code? ":"Kodu mu kaybettiniz? ","No account? ":"Hesabınız yok mu? ","Password attempts exceeded":"Maksimum oturum açma girişimi aşıldı","Sign Out":ıkış yap","Sign Up":"Kayıt Ol","User already exists":"Bu kullanıcı zaten var","User does not exist":"Böyle bir kullanıcı mevcut değil","Username cannot be empty":"Kullanıcı adı boş olamaz"}),Ju({},{"Account recovery requires verified contact information":"Восстановление учетной записи требует проверки контактной информации","Back to Sign In":"Назад, чтобы войти","Change Password":"изменять пароль",Changing:"Изменение",Code:"Код","Confirm Password":"Подтверждение пароля","Confirm Sign Up":"Подтверждение зарегистрироваться","Confirm SMS Code":"Подтверждение CMC-Код","Confirm TOTP Code":"Подтверждение TOTP-Код",Confirm:"Подтверждать","Confirmation Code":"код подтверждения",Confirming:"подтверждение","Create a new account":"Создавать новую учетную запись","Create Account":"Создать учетную запись","Creating Account":"создание учетная запись","Dismiss alert":"Закрыть оповещение",Email:"электронная почта","Enter your code":"ввести ваш Код","Enter your email":"ввести ваш электронная почта","Enter your phone number":"ввести ваш номер телефона","Enter your username":"ввести ваш имя пользователя","Forgot your password?":"Забыли ваш пароль?","Hide password":"Скрывать пароль","It may take a minute to arrive":"Доставка может занять некоторое время",Loading:"Загрузка","New password":"Новый пароль",or:"или",Password:"Пароль","Phone Number":"Номер телефона","Resend Code":"Отправь еще раз Код","Reset your password":"сброс ваш пароль","Reset your Password":"сброс ваш Пароль","Send code":"Отправлять Код","Send Code":"Отправлять Код",Sending:"отправка","Setup TOTP":"Настраивать TOTP","Show password":"Показывать пароль","Sign in to your account":"знак в свой аккаунт","Sign In with Amazon":"знак в с Amazon","Sign In with Apple":"знак в с Apple","Sign In with Facebook":"знак в с Facebook","Sign In with Google":"знак в с Google","Sign in":"знак в","Sign In":"знак в","Signing in":"подписание в",Skip:"Пропускать",Submit:"Представлять на рассмотрение",Submitting:"Представив",Username:"Имя пользователя","Verify Contact":"Проверить контакт",Verify:"Проверить","We Emailed You":"Мы отправили вам электронное письмо","We Sent A Code":"Мы отправили код","We Texted You":"Мы отправили вам текстовое сообщение","Your code is on the way. To log in, enter the code we emailed to":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы отправили по электронной почте","Your code is on the way. To log in, enter the code we sent you":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы послали вам","Your code is on the way. To log in, enter the code we texted to":"Ваш код отправлен. Чтобы войти в систему, введите код, который мы отправили текстовым сообщением"}),Ju({},{"Account recovery requires verified contact information":"שחזור לקוח דורש עוד מידע","Back to Sign In":"חזור להרשמה","Change Password":"עדכון סיסמא",Changing:"מעדכן",Code:"קוד","Confirm Password":"אשר סיסמא","Confirm Sign Up":"אשר הרשמה","Confirm SMS Code":"אשר sms קוד","Confirm TOTP Code":"אשר totp קוד",Confirm:"אישור","Confirmation Code":"אישור קוד",Confirming:"מאשר","Create a new account":"צור משתמש חדש","Create Account":"צור משתמש","Creating Account":"יצירת משתמש","Dismiss alert":"הסר התראה",Email:"אימייל","Enter your code":"הכנס את הקוד","Enter your email":"הכנס את המייל שלך","Enter your phone number":"הכנס את מספר הטלפון שלך","Enter your username":"הכנס את שם המתמש שלך","Forgot your password?":"שחכת סיסמא ?","Hide password":"הסתר סיסמא",Loading:"טוען","New password":"סיסמא חדשה",or:"אוֹ",Password:"סיסמא","Phone Number":"מספר טלפון","Resend Code":"שלח קוד שוב","Reset your password":"אפס סיסמא","Reset your Password":"אפס סיסמא","Send code":"שלח קוד","Send Code":"שלח קוד",Sending:"שולח","Setup TOTP":"Setup TOTP","Show password":"הצג סיסמא","Sign in to your account":"התחבר לחשבון שלך","Sign In with Amazon":"Sign In with Amazon","Sign In with Apple":"Sign In with Apple","Sign In with Facebook":"Sign In with Facebook","Sign In with Google":"Sign In with Google","Sign in":"התחבר","Sign In":"התחבר","Signing in":"מתחבר",Skip:"דלג",Submit:"שלח",Submitting:"שולח",Username:"שם משתמש","Verify Contact":"אמת איש קשר",Verify:"אמת"}),Ju({},{"Account recovery requires verified contact information":"Відновлення облікового запису потребує контактної інформації","Back to Sign In":"Назад на сторінку входу","Change Password":"Змінити пароль",Changing:"Змінюємо",Code:"Код","Confirm Password":"Підтвердіть пароль","Confirm Sign Up":"Підтвердіть реєстрацію","Confirm SMS Code":"Підтвердіть SMS код","Confirm TOTP Code":"Підтвердіть TOTP код",Confirm:"Підтвердити","Confirmation Code":"Код підтвердження",Confirming:"Підтверджуємо","Create a new account":"Зареєструватися","Create Account":"Зареєструватися","Creating Account":"Реєструємо","Dismiss alert":"Відхилити сповіщення",Email:"Email","Enter your code":"Введіть код","Enter your email":"Введіть ваш email","Enter your phone number":"Введіть ваш номер телефону","Enter your username":"Введіть ваше імʼя користувача","Forgot password?":"Забули пароль?","Forgot your password?":"Забули ваш пароль?","Hide password":"Сховати пароль","It may take a minute to arrive":"Доставка може тривати хвилину",Loading:"Загружаємо","New password":"Новий пароль",or:"або",Password:"Пароль","Phone Number":"Номер Телефону","Resend Code":"Відправити код повторно","Reset your password":"Скинути пароль","Reset your Password":"Скинути пароль","Send code":"Відправити код","Send Code":"Відправити код",Sending:"Відправляємо","Setup TOTP":"Налаштувати TOTP","Show password":"Показати пароль","Sign in to your account":"Увійти у ваш обліковий запис","Sign In with Amazon":"Увійти з Amazon","Sign In with Apple":"Увійти з Apple","Sign In with Facebook":"Увійти з Facebook","Sign In with Google":"Увійти з Google","Sign in":"Увійти","Sign In":"Увійти","Signing in":"Входимо",Skip:"Пропустити",Submit:"Відправити",Submitting:"Відправляємо",Username:"Імʼя користувача","Verify Contact":"Підтвердити Контакт",Verify:"Підтвердити","We Emailed You":"Ми відправили вам Email","We Sent A Code":"Ми відправили код","We Texted You":"Ми відправили вам текстове повідомлення","Your code is on the way. To log in, enter the code we emailed to":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми відправили вам на Email","Your code is on the way. To log in, enter the code we sent you":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми вам відправили","Your code is on the way. To log in, enter the code we texted to":"Ваш код вже в дорозі. Щоб увійти, введіть код, що ми відправили вам текстовим повідомленням","An account with the given email already exists.":"Обліковий запис з цим Email вже існує.","Confirm a Code":"Підтвердіть код","Confirm Sign In":"Підтвердіть вхід","Forgot Password":"Забули пароль","Incorrect username or password.":"Невірне імʼя користувача або пароль","Invalid password format":"Невірний формат паролю","Invalid phone number format":"Невірний формат номеру телефону","Loading...":"Загружаємо...","New Password":"Новий пароль","Resend a Code":"Відправити код повторно","Reset Password":"Скинути пароль","Sign Out":"Вийти","Sign Up with Amazon":"Зареєструватися з Amazon","Sign Up with Apple":"Зареєструватися з Apple","Sign Up with Facebook":"Зареєструватися з Facebook","Sign Up with Google":"Зареєструватися з Google","Sign Up":"Зареєструватися","User already exists":"Користувач вже існує","User does not exist":"Такий користувач не існує","Username cannot be empty":"Імʼя користувача не може бути пустим","Your passwords must match":"Паролі мають збігатися"}),Ju({},{BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CODE_ARRIVAL:"It may take a minute to arrive",CODE_EMAILED:"Your code is on the way. To log in, enter the code we emailed to",CODE_SENT:"Your code is on the way. To log in, enter the code we sent you",CODE_TEXTED:"Your code is on the way. To log in, enter the code we texted to",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CREATE_ACCOUNT:"Create Account",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",ENTER_CODE:"Enter your code",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_PASSWORD:"Forgot Password?",FORGOT_YOUR_PASSWORD:"Forgot your password?",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",OR:"or",PASSWORD:"Password",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",SENDING:"Sending",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SUBMIT:"Submit",SUBMITTING:"Submitting",UPPERCASE_COPY:"COPY",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WE_EMAILED:"We Emailed You",WE_SENT_CODE:"We Sent A Code",WE_TEXTED:"We Texted You",WEBSITE:"Website"})),Jm=Ju({},$m);function Xm(e){return M.get(e)}$u=i("8dQZc");const eg=()=>{const[e,t]=$u.useState({error:void 0,isLoading:!0,user:void 0}),n=$u.useCallback((()=>Qu(void 0,void 0,void 0,(function*(){t((e=>Object.assign(Object.assign({},e),{isLoading:!0})));try{const e=yield Ku.currentAuthenticatedUser();t({user:e,isLoading:!1})}catch(e){t({error:e,isLoading:!1})}}))),[]),r=$u.useCallback((({payload:e})=>{switch(e.event){case"signIn":case"signUp":case"autoSignIn":t({user:e.data,isLoading:!1});break;case"signOut":t({user:void 0,isLoading:!1});break;case"tokenRefresh_failure":case"signIn_failure":t({error:e.data,isLoading:!1});break;case"autoSignIn_failure":t({error:new Error(e.message),isLoading:!1});break;case"tokenRefresh":n()}}),[n]);return $u.useEffect((()=>{const e=P.listen("auth",r,"useAuth");return n(),e}),[r,n]),Object.assign(Object.assign({},e),{fetch:n})};var tg={};
/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)n.push(o);else if(Array.isArray(o)){if(o.length){var a=t.apply(null,o);a&&n.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)e.call(o,s)&&o[s]&&n.push(s);else n.push(o.toString())}}return n.join(" ")}tg?(t.default=t,tg=t):"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],(function(){return t})):window.classNames=t}();$u=i("8dQZc"),$u=i("8dQZc");var ng={},rg={},og={};og={opening_character:"{",closing_character:"}",separator:"."},rg=function(e={}){const t=Object.assign({},og,e);return new RegExp("\\"+t.opening_character+"([^"+t.closing_character+"]+)\\"+t.closing_character,"g")},ng=function e(t,n={}){const r=n instanceof RegExp?n:rg(n);if("string"==typeof t)return r.test(t);if("object"==typeof t){let r=!1;for(const o in t)if(t.hasOwnProperty(o)){if(e(t[o],n)){r=!0;break}}return r}return!1};function ig(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ag(e){return"string"==typeof e||"object"==typeof e&&"[object String]"===Object.prototype.toString.call(e)}var sg=["offsetX","offsetY","blurRadius","spreadRadius","color"];function ug(e){if(!e)return"";if(n(ng)(e)){var t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return"var(--".concat(cg({path:t}),")")}return e}function lg(e){var t=e.value;return ag(t)?ug(t):fg(t)?sg.map((function(n){return ug(fg(e)?e[n]:t[n])})).join(" "):t}function cg(e){var t=e.path;return"".concat(n(up)(nl(["amplify"],void 0===t?[]:t,!0).join(" ")))}function dg(e){return ig(e)&&n(ip)(e,"value")}function fg(e){return ig(e)&&n(ip)(e,"offsetX")}function hg(e){var t=e.tokens,r=e.path,o=void 0===r?[]:r,i=e.setupToken;if(n(ip)(t,"value"))return i({token:t,path:o});var a={};for(var s in t)if(n(ip)(t,s)){var u=t[s],l=ig(u)?u:{value:u};a[s]=hg({tokens:l,path:o.concat(s),setupToken:i})}return a}const pg={alignContent:"alignContent",alignItems:"alignItems",alignSelf:"alignSelf",area:"gridArea",autoColumns:"gridAutoColumns",autoFlow:"gridAutoFlow",autoRows:"gridAutoRows",backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",basis:"flexBasis",border:"border",borderRadius:"borderRadius",bottom:"bottom",boxShadow:"boxShadow",color:"color",column:"gridColumn",columnEnd:"gridColumnEnd",columnGap:"columnGap",columnSpan:"gridColumn",columnStart:"gridColumnStart",direction:"flexDirection",display:"display",flex:"flex",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",gap:"gap",grow:"flexGrow",height:"height",justifyContent:"justifyContent",left:"left",letterSpacing:"letterSpacing",lineHeight:"lineHeight",margin:"margin",marginBlock:"marginBlock",marginBlockEnd:"marginBlockEnd",marginBlockStart:"marginBlockStart",marginBottom:"marginBlockEnd",marginInline:"marginInline",marginInlineEnd:"marginInlineEnd",marginInlineStart:"marginInlineStart",marginLeft:"marginInlineStart",marginRight:"marginInlineEnd",marginTop:"marginBlockStart",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",objectFit:"objectFit",objectPosition:"objectPosition",opacity:"opacity",order:"order",overflow:"overflow",padding:"padding",paddingBlock:"paddingBlock",paddingBlockEnd:"paddingBlockEnd",paddingBlockStart:"paddingBlockStart",paddingBottom:"paddingBlockEnd",paddingInline:"paddingInline",paddingInlineEnd:"paddingInlineEnd",paddingInlineStart:"paddingInlineStart",paddingLeft:"paddingInlineStart",paddingRight:"paddingInlineEnd",paddingTop:"paddingBlockStart",position:"position",resize:"resize",right:"right",row:"gridRow",rowEnd:"gridRowEnd",rowGap:"rowGap",rowSpan:"gridRow",rowStart:"gridRowStart",shrink:"flexShrink",templateAreas:"gridTemplateAreas",templateColumns:"gridTemplateColumns",templateRows:"gridTemplateRows",textAlign:"textAlign",textDecoration:"textDecoration",textTransform:"textTransform",top:"top",transform:"transform",transformOrigin:"transformOrigin",width:"width",whiteSpace:"whiteSpace",wrap:"flexWrap"};Object.keys(pg);var mg,gg,vg={small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},yg={red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 10%, 58%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},brand:{primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.neutral.60.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.brand.primary.80.value}"},hover:{value:"{colors.brand.primary.90.value}"},focus:{value:"{colors.brand.primary.100.value}"},active:{value:"{colors.brand.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},quaternary:{value:"{colors.neutral.60.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.20.value}"},warning:{value:"{colors.orange.20.value}"},error:{value:"{colors.red.20.value}"},success:{value:"{colors.green.20.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},pressed:{value:"{colors.brand.primary.100.value}"},focus:{value:"{colors.brand.primary.100.value}"},error:{value:"{colors.red.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"},60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}},bg={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"2.5rem"},xxxxl:{value:"3rem"}},wg={hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}},Sg={0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}},Cg={xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}},Eg={zero:{value:"0"},xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375em"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"},full:{value:"100%"}}},Ag={short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}},_g={tokens:{components:{alert:{alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}},authenticator:{maxWidth:{value:"60rem"},modal:{width:{value:"{space.relative.full}"},height:{value:"{space.relative.full}"},backgroundColor:{value:"{colors.overlay.50.value}"},top:{value:"{space.zero}"},left:{value:"{space.zero}"}},container:{widthMax:{value:"30rem"}},router:{borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"}},footer:{paddingBottom:{value:"{space.medium.value}"}},form:{padding:{value:"{space.xl.value}"}},state:{inactive:{backgroundColor:{value:"{colors.background.secondary.value}"}}},orContainer:{color:{value:"{colors.neutral.80.value}"},orLine:{backgroundColor:{value:"{colors.background.primary.value}"}}}},autocomplete:{menu:{width:{value:"100%"},marginBlockStart:{value:"{space.xxxs}"},backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small}"},options:{display:{value:"flex"},flexDirection:{value:"column"},maxHeight:{value:"300px"}},option:{backgroundColor:{value:"{colors.background.primary}"},color:{value:"currentcolor"},cursor:{value:"pointer"},transitionDuration:{value:"{time.short}"},transitionProperty:{value:"background-color, color"},transitionTimingFunction:{value:"ease"},_active:{backgroundColor:{value:"{colors.brand.primary.80}"},color:{value:"{colors.white}"}}},_empty:{display:{value:"flex"}},_loading:{alignItems:{value:"center"},display:{value:"flex"},gap:{value:"{space.xxxs}"}},spaceShared:{paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"}}}},badge:{color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}},button:{fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.brand.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.brand.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.brand.primary.20.value}"},borderColor:{value:"{colors.brand.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}}},menu:{borderWidth:{value:"{space.zero.value}"},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.brand.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{backgroundColor:{value:"transparent"},borderColor:{value:"transparent"},borderWidth:{value:"{space.zero.value}"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.brand.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}}},warning:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.red.60}"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.red.60}"},_hover:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.font.error}"}},_focus:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.red.80}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"{colors.red.100}"},backgroundColor:{value:"{colors.red.20}"},color:{value:"{colors.red.100}"}},_disabled:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}}},destructive:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.red.60}"},color:{value:"{colors.font.inverse}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100}"},color:{value:"{colors.font.inverse}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}},card:{backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{components.card.boxShadow.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}},checkbox:{cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.transparent.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}}},icon:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},_indeterminate:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{_disabled:{color:{value:"{colors.font.disabled.value}"}}}},checkboxfield:{alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}},collection:{pagination:{current:{color:{value:"{components.pagination.current.color}"},backgroundColor:{value:"{components.pagination.current.backgroundColor}"}},button:{color:{value:"{components.pagination.button.color}"},_hover:{backgroundColor:{value:"{components.pagination.button.hover.backgroundColor}"},color:{value:"{components.pagination.button.hover.color}"}},_disabled:{color:{value:"{components.pagination.button.disabled.color}"}}}},search:{input:{color:{value:"{components.searchfield.color}"}},button:{color:{value:"{components.searchfield.button.color}"},_active:{backgroundColor:{value:"{components.searchfield.button._active.backgroundColor}"},borderColor:{value:"{components.searchfield.button._active.borderColor}"},color:{value:"{components.searchfield.button._active.color}"}},_disabled:{backgroundColor:{value:"{components.searchfield.button._disabled.backgroundColor}"},borderColor:{value:"{components.searchfield.button._disabled.borderColor}"},color:{value:"{components.searchfield.button._disabled.color}"}},_focus:{backgroundColor:{value:"{components.searchfield.button._focus.backgroundColor}"},borderColor:{value:"{components.searchfield.button._focus.borderColor}"},color:{value:"{components.searchfield.button._focus.color}"}},_hover:{backgroundColor:{value:"{components.searchfield.button._hover.backgroundColor}"},borderColor:{value:"{components.searchfield.button._hover.borderColor}"},color:{value:"{components.searchfield.button._hover.color}"}}}}},copy:{fontSize:{value:"{fontSizes.xs}"},gap:{value:"{space.relative.medium}"},svg:{path:{fill:{value:"{colors.font.primary}"}}},toolTip:{bottom:{value:"{space.large}"},color:{value:"{colors.teal.100}"},fontSize:{value:"{fontSizes.xxs}"}}},countrycodeselect:{height:{value:"{space.relative.full.value}"}},divider:{borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},label:{color:{value:"{colors.font.tertiary.value}"},paddingInline:{value:"{space.medium.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.background.primary.value}"}},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}},expander:{display:{value:"block"},backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.medium.value}"},boxShadow:{value:"{shadows.large.value}"},width:{value:"100%"},item:{marginTop:{value:"1px"},boxShadow:{value:"{shadows.small.value}"},borderBottomLeftRadius:{value:"{radii.medium.value}"},borderBottomRightRadius:{value:"{radii.medium.value}"},borderTopLeftRadius:{value:"{radii.medium.value}"},borderTopRightRadius:{value:"{radii.medium.value}"},borderStartStartRadius:{value:"{radii.medium.value}"},borderStartEndRadius:{value:"{radii.medium.value}"},borderEndStartRadius:{value:"{radii.medium.value}"},borderEndEndRadius:{value:"{radii.medium.value}"},_focus:{boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},header:{boxShadow:{value:{offsetX:"0",offsetY:"1px",blurRadius:"0",color:"{colors.overlay.20.value}"}}},trigger:{minHeight:{value:"3rem"},paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},alignItems:{value:"center"},justifyContent:{value:"space-between"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}}},content:{paddingInlineStart:{value:"{space.large.value}"},paddingInlineEnd:{value:"{space.large.value}"},text:{color:{value:"{colors.font.secondary.value}"},paddingBlockStart:{value:"{space.medium.value}"},paddingBlockEnd:{value:"{space.medium.value}"}},_open:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}},_closed:{animationDuration:{value:"{time.medium.value}"},animationTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}},icon:{transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}},field:{gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}},fieldcontrol:{borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xxs.value}"},paddingBlockEnd:{value:"{space.xxs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}},quiet:{borderStyle:{value:"none"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.focus.value}",blurRadius:"0px"}}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"1px",color:"{colors.border.error.value}",blurRadius:"0px"}}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"1px",color:"{colors.border.error.value}"}}}}},fieldgroup:{gap:{value:"{space.zero.value}"},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}},fieldmessages:{error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}},fileuploader:{dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.brand.primary.10}"},borderRadius:{value:"{components.fileuploader.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.fileuploader.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{borderColor:{value:"{colors.border.secondary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},justifyContent:{value:"space-between"}}}},flex:{gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}},heading:{color:{value:"{colors.font.primary.value}"},lineHeight:{value:"{lineHeights.small.value}"},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},icon:{lineHeight:{value:1},height:{value:"1em"}},highlightmatch:{highlighted:{fontWeight:{value:"{fontWeights.bold}"}}},image:{maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}},inappmessaging:{banner:{height:{value:"150px "},width:{value:"400px "}},button:{backgroundColor:{value:"#e8e8e8"},borderRadius:{value:"5px"},color:{value:"black"}},dialog:{height:{value:"50vh"},minHeight:{value:"400px"},minWidth:{value:"400px"},width:{value:"30vw"}},header:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},link:{active:{color:{value:"{colors.font.active.value}"}},color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}},loader:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},fontSize:{value:"{fontSizes.xs.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"},fontSize:{value:"{fontSizes.xxs.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"},fontSize:{value:"{fontSizes.small.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},fontSize:{value:"{fontSizes.medium.value}"},strokeWidth:{value:"{fontSizes.medium.value}"},strokeFilled:{value:"{colors.brand.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{strokeWidth:{value:"{fontSizes.small.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{strokeWidth:{value:"{fontSizes.large.value}"},fontSize:{value:"{fontSizes.large.value}"}}},text:{fill:{value:"{colors.font.primary.value}"}}},menu:{backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.medium.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:"{space.zero.value}"},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}},pagination:{current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}},itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}},passwordfield:{color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},phonenumberfield:{color:{value:"{components.fieldcontrol.color}"},borderColor:{value:"{components.fieldcontrol.borderColor}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}}},placeholder:{borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}},radio:{alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.background.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.brand.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},radiogroup:{radio:{borderWidth:{value:"{components.radio.button.borderWidth}"},borderColor:{value:"{components.radio.button.borderColor}"},backgroundColor:{value:"{components.radio.button.backgroundColor}"},_checked:{color:{value:"{components.radio.button._checked.color}"}},label:{color:{value:"{components.radio.label.color}"}}},label:{color:{value:"{components.field.label.color}"}}},rating:{large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.brand.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}},searchfield:{color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},backgroundColor:{value:"{colors.background.primary.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},select:{paddingInlineEnd:{value:"{space.xxl.value}"},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"}},option:{backgroundColor:{value:"{colors.background.primary.value}"},color:{value:"{colors.font.primary.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"}},large:{minWidth:{value:"7.5rem"}}},selectfield:{borderColor:{value:"{components.fieldcontrol.borderColor}"},color:{value:"{components.fieldcontrol.color}"},flexDirection:{value:"column"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}},label:{color:{value:"{components.field.label.color}"}}},sliderfield:{paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"9999px"},height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.small.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.medium.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}},stepperfield:{borderColor:{value:"{components.fieldcontrol.borderColor}"},flexDirection:{value:"column"},input:{color:{value:"{components.fieldcontrol.color}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},textAlign:{value:"center"}},button:{color:{value:"{components.button.color}"},backgroundColor:{value:"{colors.transparent}"},_active:{color:{value:"{components.button._active.color}"},backgroundColor:{value:"{components.button._active.backgroundColor}"}},_focus:{color:{value:"{components.button._focus.color}"},backgroundColor:{value:"{components.button._focus.backgroundColor}"}},_disabled:{color:{value:"{components.button._disabled.color}"},backgroundColor:{value:"{components.fieldcontrol._disabled.backgroundColor}"}},_hover:{color:{value:"{components.button._hover.color}"},backgroundColor:{value:"{components.button._hover.backgroundColor}"}}}},switchfield:{_disabled:{opacity:{value:"{opacities.60.value}"}},_focused:{shadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},fontSize:{value:"{fontSizes.medium.value}"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},label:{padding:{value:"{space.xs.value}"}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.tertiary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.brand.primary.80.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"},_error:{backgroundColor:{value:"{colors.background.error.value}"}}}},table:{borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}},tabs:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{color:{value:"{colors.font.hover.value}"}},_focus:{color:{value:"{colors.font.focus.value}"}},_active:{color:{value:"{colors.font.interactive.value}"},borderColor:{value:"{colors.font.interactive.value}"},backgroundColor:{value:"transparent"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}}}},text:{color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}},textareafield:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},textfield:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},togglebutton:{borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.font.primary.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.font.primary.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{borderColor:{value:"{colors.border.pressed.value}"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.font.primary.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.brand.primary.80.value}"},borderColor:{value:"{colors.brand.primary.80.value}"},color:{value:"{colors.background.primary.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.background.primary.value}"}},_hover:{borderColor:{value:"{colors.brand.primary.60.value}"},backgroundColor:{value:"{colors.brand.primary.60.value}"},boxShadow:{value:"{colors.brand.primary.60.value}"},color:{value:"{colors.background.primary.value}"}}}},link:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"}},_hover:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.transparent.value}"}}}}},togglebuttongroup:{alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}}},borderWidths:vg,colors:yg,fonts:{default:{variable:{value:"'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,\n 'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',\n sans-serif"},static:{value:"'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',\n 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif"}}},fontSizes:bg,fontWeights:wg,lineHeights:{small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}},opacities:Sg,outlineOffsets:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},outlineWidths:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},radii:Cg,shadows:{small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}},space:Eg,time:Ag,transforms:{slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}}},breakpoints:{values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},name:"default-theme"};(gg=mg||(mg={})).Alert="amplify-alert",gg.AlertIcon="amplify-alert__icon",gg.AlertHeading="amplify-alert__heading",gg.AlertBody="amplify-alert__body",gg.AlertDismiss="amplify-alert__dismiss",gg.Autocomplete="amplify-autocomplete",gg.AutocompleteMenu="amplify-autocomplete__menu",gg.AutocompleteMenuEmpty="amplify-autocomplete__menu--empty",gg.AutocompleteMenuFooter="amplify-autocomplete__menu__footer",gg.AutocompleteMenuHeader="amplify-autocomplete__menu__header",gg.AutocompleteMenuLoading="amplify-autocomplete__menu--loading",gg.AutocompleteMenuOption="amplify-autocomplete__menu__option",gg.AutocompleteMenuOptions="amplify-autocomplete__menu__options",gg.Badge="amplify-badge",gg.Button="amplify-button",gg.ButtonGroup="amplify-buttongroup",gg.ButtonLoaderWrapper="amplify-button__loader-wrapper",gg.Card="amplify-card",gg.Checkbox="amplify-checkbox",gg.CheckboxButton="amplify-checkbox__button",gg.CheckboxIcon="amplify-checkbox__icon",gg.CheckboxInput="amplify-checkbox__input",gg.CheckboxLabel="amplify-checkbox__label",gg.CheckboxField="amplify-checkboxfield",gg.Collection="amplify-collection",gg.CollectionItems="amplify-collection-items",gg.CollectionSearch="amplify-collection-search",gg.CollectionPagination="amplify-collection-pagination",gg.CountryCodeSelect="amplify-countrycodeselect",gg.DialCodeSelect="amplify-dialcodeselect",gg.Divider="amplify-divider",gg.DividerLabel="amplify-divider--label",gg.Expander="amplify-expander",gg.ExpanderContent="amplify-expander__content",gg.ExpanderContentText="amplify-expander__content__text",gg.ExpanderHeader="amplify-expander__header",gg.ExpanderIcon="amplify-expander__icon",gg.ExpanderItem="amplify-expander__item",gg.ExpanderTrigger="amplify-expander__trigger",gg.Field="amplify-field",gg.FieldDescription="amplify-field__description",gg.FieldErrorMessage="amplify-field__error-message",gg.FieldGroup="amplify-field-group",gg.FieldGroupControl="amplify-field-group__control",gg.FieldGroupOuterEnd="amplify-field-group__outer-end",gg.FieldGroupOuterStart="amplify-field-group__outer-start",gg.FieldGroupInnerEnd="amplify-field-group__inner-end",gg.FieldGroupInnerStart="amplify-field-group__inner-start",gg.FieldGroupIcon="amplify-field-group__icon",gg.FieldGroupIconButton="amplify-field-group__icon-button",gg.FieldGroupHasInnerEnd="amplify-field-group--has-inner-end",gg.FieldGroupHasInnerStart="amplify-field-group--has-inner-start",gg.FieldShowPassword="amplify-field__show-password",gg.FieldGroupFieldWrapper="amplify-field-group__field-wrapper",gg.FileUploaderDropZone="amplify-fileuploader__dropzone",gg.FileUploaderDropZoneIcon="amplify-fileuploader__dropzone__icon",gg.FileUploaderDropZoneText="amplify-fileuploader__dropzone__text",gg.FileUploaderDropZoneButton="amplify-fileuploader__dropzone__button",gg.FileUploaderFile="amplify-fileuploader__file",gg.FileUploaderFileWrapper="amplify-fileuploader__file__wrapper",gg.FileUploaderFileName="amplify-fileuploader__file__name",gg.FileUploaderFileSize="amplify-fileuploader__file__size",gg.FileUploaderFileInfo="amplify-fileuploader__file__info",gg.FileUploaderFileImage="amplify-fileuploader__file__image",gg.FileUploaderFileMain="amplify-fileuploader__file__main",gg.FileUploaderFileStatus="amplify-fileuploader__file__status",gg.FileUploaderLoader="amplify-fileuploader__loader",gg.FileUploaderPreviewer="amplify-fileuploader__previewer",gg.FileUploaderPreviewerText="amplify-fileuploader__previewer__text",gg.FileUploaderPreviewerBody="amplify-fileuploader__previewer__body",gg.FileUploaderPreviewerFooter="amplify-fileuploader__previewer__footer",gg.FileUploaderPreviewerFooterActions="amplify-fileuploader__previewer__footer__actions",gg.Flex="amplify-flex",gg.Grid="amplify-grid",gg.Heading="amplify-heading",gg.HighlightMatch="amplify-highlightmatch",gg.HighlightMatchHighlighted="amplify-highlightmatch__highlighted",gg.Icon="amplify-icon",gg.Image="amplify-image",gg.Input="amplify-input",gg.Label="amplify-label",gg.Link="amplify-link",gg.Loader="amplify-loader",gg.LoaderDeterminate="amplify-loader--determinate",gg.LoaderPercentageText="amplify-loader__percentage-text",gg.MenuContent="amplify-menu-content",gg.MenuContentWrapper="amplify-menu-content-wrapper",gg.MenuItem="amplify-menu-content__item",gg.MenuTrigger="amplify-menu-trigger",gg.Pagination="amplify-pagination",gg.PaginationItemButton="amplify-pagination__item-button",gg.PaginationItemCurrent="amplify-pagination__item-current",gg.PaginationItemEllipsis="amplify-pagination__item-ellipsis",gg.PasswordField="amplify-passwordfield",gg.PhoneNumberField="amplify-phonenumberfield",gg.Placeholder="amplify-placeholder",gg.Radio="amplify-radio",gg.RadioButton="amplify-radio__button",gg.RadioInput="amplify-radio__input",gg.RadioLabel="amplify-radio__label",gg.RadioGroupField="amplify-radiogroupfield",gg.RadioGroup="amplify-radiogroup",gg.Rating="amplify-rating",gg.ScrollView="amplify-scrollview",gg.SearchField="amplify-searchfield",gg.SearchFieldClear="amplify-searchfield__clear",gg.SearchFieldSearch="amplify-searchfield__search",gg.Select="amplify-select",gg.SelectField="amplify-selectfield",gg.SelectWrapper="amplify-select__wrapper",gg.SelectIconWrapper="amplify-select__icon-wrapper",gg.SliderField="amplify-sliderfield",gg.SliderFieldGroup="amplify-sliderfield__group",gg.SliderFieldLabel="amplify-sliderfield__label",gg.SliderFieldRange="amplify-sliderfield__range",gg.SliderFieldRoot="amplify-sliderfield__root",gg.SliderFieldThumb="amplify-sliderfield__thumb",gg.SliderFieldTrack="amplify-sliderfield__track",gg.StepperField="amplify-stepperfield",gg.StepperFieldButtonDecrease="amplify-stepperfield__button--decrease",gg.StepperFieldButtonIncrease="amplify-stepperfield__button--increase",gg.StepperFieldInput="amplify-stepperfield__input",gg.SwitchField="amplify-switchfield",gg.SwitchLabel="amplify-switch-label",gg.SwitchThumb="amplify-switch-thumb",gg.SwitchTrack="amplify-switch-track",gg.SwitchWrapper="amplify-switch__wrapper",gg.Table="amplify-table",gg.TableCaption="amplify-table__caption",gg.TableBody="amplify-table__body",gg.TableTd="amplify-table__td",gg.TableTh="amplify-table__th",gg.TableFoot="amplify-table__foot",gg.TableHead="amplify-table__head",gg.TableRow="amplify-table__row",gg.Tabs="amplify-tabs",gg.TabItems="amplify-tabs-item",gg.Text="amplify-text",gg.Textarea="amplify-textarea",gg.TextAreaField="amplify-textareafield",gg.TextField="amplify-textfield",gg.ToggleButton="amplify-togglebutton",gg.ToggleButtonGroup="amplify-togglebuttongroup",gg.VisuallyHidden="amplify-visually-hidden";const Ig={Alert:{className:mg.Alert,components:["Alert"],description:"Top level element that wraps the Alert primitive"},AlertIcon:{className:mg.AlertIcon,components:["Alert"],description:"Class applied to Icon component within the Alert primitive"},AlertHeading:{className:mg.AlertHeading,components:["Alert"],description:"Class applied to the heading View"},AlertBody:{className:mg.AlertBody,components:["Alert"],description:"Class applied to the body View"},AlertDismiss:{className:mg.AlertDismiss,components:["Alert"],description:"Class applied to the close Button"},Autocomplete:{className:mg.Autocomplete,components:["Autocomplete"],description:"Top level element that wraps the Autocomplete primitive"},AutocompleteMenu:{className:mg.AutocompleteMenu,components:["Autocomplete"],description:"Top level element that wraps the dropdown menu"},AutocompleteMenuEmpty:{className:mg.AutocompleteMenuEmpty,components:["Autocomplete"],description:"Class applied to the no options slot of menu"},AutocompleteMenuFooter:{className:mg.AutocompleteMenuFooter,components:["Autocomplete"],description:"Class applied to menu footer"},AutocompleteMenuHeader:{className:mg.AutocompleteMenuHeader,components:["Autocomplete"],description:"Class applied to menu header"},AutocompleteMenuLoading:{className:mg.AutocompleteMenuLoading,components:["Autocomplete"],description:"Class applied to the loading slot of menu"},AutocompleteMenuOption:{className:mg.AutocompleteMenuOption,components:["Autocomplete"],description:"Class applied to each li option"},AutocompleteMenuOptions:{className:mg.AutocompleteMenuOptions,components:["Autocomplete"],description:"Class applied to ul container element"},Badge:{className:mg.Badge,components:["Badge"],description:"Top level element that wraps the Badge component"},Button:{className:mg.Button,components:["Button"],description:"Top level element that wraps the Button primitive"},ButtonGroup:{className:mg.ButtonGroup},ButtonLoaderWrapper:{className:mg.ButtonLoaderWrapper,components:["Button"],description:"Class applied to the Loader component within the Button Loading state"},Card:{className:mg.Card,components:["Card"],description:"Top level element that wraps the Card primitive"},Checkbox:{className:mg.Checkbox,components:["Checkbox"],description:"Top level element that wraps the Checkbox primitive"},CheckboxButton:{className:mg.CheckboxButton,components:["Checkbox"],description:"Wrapper for the checked icon within the Checkbox primitive"},CheckboxIcon:{className:mg.CheckboxIcon,components:["Checkbox"],description:"Class applied to the checked icon within the Checkbox primitive"},CheckboxInput:{className:mg.CheckboxInput,components:["Checkbox"],description:"Class applied to the visually hidden checkbox input within the Checkbox primitive"},CheckboxLabel:{className:mg.CheckboxLabel,components:["Checkbox"],description:"Class applied to the label within the Checkbox primitive"},CheckboxField:{className:mg.CheckboxField,components:["CheckboxField"],description:"Top level element that wraps the CheckboxField primitive"},Collection:{className:mg.Collection,components:["Collection"],description:"Top level element that wraps the Collection primitive"},CollectionItems:{className:mg.CollectionItems,components:["Collection"],description:"Class applied to the element that wraps all the items in a collection"},CollectionSearch:{className:mg.CollectionSearch,components:["Collection"],description:"Class applied to the element that wraps the collection search box"},CollectionPagination:{className:mg.CollectionPagination,components:["Collection"],description:"Class applied to the element that wraps the pagination component in a collection"},CountryCodeSelect:{className:mg.CountryCodeSelect,components:["PhoneNumberField"],description:"Class applied to the Dial Code Select within the PhoneNumberField primitive"},DialCodeSelect:{className:mg.DialCodeSelect,components:["PhoneNumberField"],description:"Class applied to the Dial Code Select within the PhoneNumberField primitive"},Divider:{className:mg.Divider,components:["Divider"],description:"Top level element that wraps the Divider primitive"},DividerLabel:{className:mg.DividerLabel,components:["Divider"],description:"Class applied to the label of the Divider component"},Expander:{className:mg.Expander,components:["Expander"],description:"Top level element that wraps the Expander primitive"},ExpanderContent:{className:mg.ExpanderContent,components:["Expander"],description:"Expander content container"},ExpanderContentText:{className:mg.ExpanderContentText,components:["Expander"],description:"Expander content text"},ExpanderHeader:{className:mg.ExpanderHeader,components:["Expander"],description:"Expander item header"},ExpanderIcon:{className:mg.ExpanderIcon,components:["Expander"],description:"Icon to indicate whether an item is expanded or collapsed"},ExpanderItem:{className:mg.ExpanderItem,components:["Expander"],description:"Expander item(containier for header, trigger, and content)"},ExpanderTrigger:{className:mg.ExpanderTrigger,components:["Expander"],description:"Expander item trigger(button)"},Field:{className:mg.Field},FieldDescription:{className:mg.FieldDescription},FieldErrorMessage:{className:mg.FieldErrorMessage},FieldGroup:{className:mg.FieldGroup},FieldGroupControl:{className:mg.FieldGroupControl},FieldGroupOuterEnd:{className:mg.FieldGroupOuterEnd},FieldGroupOuterStart:{className:mg.FieldGroupOuterStart},FieldGroupInnerEnd:{className:mg.FieldGroupInnerEnd},FieldGroupInnerStart:{className:mg.FieldGroupInnerStart},FieldGroupIcon:{className:mg.FieldGroupIcon},FieldGroupIconButton:{className:mg.FieldGroupIconButton},FieldGroupHasInnerEnd:{className:mg.FieldGroupHasInnerEnd},FieldGroupHasInnerStart:{className:mg.FieldGroupHasInnerStart},FieldShowPassword:{className:mg.FieldShowPassword},FieldGroupFieldWrapper:{className:mg.FieldGroupFieldWrapper},FileUploaderDropZone:{className:mg.FileUploaderDropZone,components:["FileUploader"]},FileUploaderDropZoneIcon:{className:mg.FileUploaderDropZoneIcon,components:["FileUploader"]},FileUploaderDropZoneText:{className:mg.FileUploaderDropZoneText,components:["FileUploader"]},FileUploaderDropZoneButton:{className:mg.FileUploaderDropZoneButton,components:["FileUploader"]},FileUploaderFile:{className:mg.FileUploaderFile,components:["FileUploader"]},FileUploaderFileWrapper:{className:mg.FileUploaderFileWrapper,components:["FileUploader"]},FileUploaderFileName:{className:mg.FileUploaderFileName,components:["FileUploader"]},FileUploaderLoader:{className:mg.FileUploaderLoader,components:["FileUploader"]},FileUploaderFileSize:{className:mg.FileUploaderFileSize,components:["FileUploader"]},FileUploaderFileInfo:{className:mg.FileUploaderFileInfo,components:["FileUploader"]},FileUploaderFileImage:{className:mg.FileUploaderFileImage,components:["FileUploader"]},FileUploaderFileMain:{className:mg.FileUploaderFileMain,components:["FileUploader"]},FileUploaderFileStatus:{className:mg.FileUploaderFileStatus,components:["FileUploader"]},FileUploaderPreviewer:{className:mg.FileUploaderPreviewer,components:["FileUploader"]},FileUploaderPreviewerText:{className:mg.FileUploaderPreviewerText,components:["FileUploader"]},FileUploaderPreviewerBody:{className:mg.FileUploaderPreviewerBody,components:["FileUploader"]},FileUploaderPreviewerFooter:{className:mg.FileUploaderPreviewerFooter,components:["FileUploader"]},FileUploaderPreviewerFooterActions:{className:mg.FileUploaderPreviewerFooterActions,components:["FileUploader"]},Flex:{className:mg.Flex,components:["Flex"],description:"Top level element that wraps the Flex primitive"},Grid:{className:mg.Grid,components:["Grid"],description:"Top level element that wraps the Grid primitive"},Heading:{className:mg.Heading,components:["Heading"],description:"Top level element that wraps the Heading primitive"},HighlightMatch:{className:mg.HighlightMatch,components:["HighlightMatch"],description:"Top level element that wraps the HighlightMatch primitive"},HighlightMatchHighlighted:{className:mg.HighlightMatchHighlighted,components:["HighlightMatch"],description:"Class applied to the highlighted text of the HighlightMatch primitive"},Icon:{className:mg.Icon,components:["Icon"],description:"Top level element that wraps the Icon primitive"},Image:{className:mg.Image,components:["Image"],description:"Top level element that wraps the Image primitive"},Input:{className:mg.Input},Label:{className:mg.Label},Link:{className:mg.Link,components:["Link"],description:"Top level element that wraps the Link primitive"},Loader:{className:mg.Loader,components:["Loader"],description:"Top level element that wraps the Loader primitive"},LoaderDeterminate:{className:mg.LoaderDeterminate,components:["Loader"],description:"Class applied to a determinate loader"},LoaderPercentageText:{className:mg.LoaderPercentageText,components:["Loader"],description:"Class applied to the percentage text of loader"},MenuContent:{className:mg.MenuContent,components:["Menu"],description:"Menu content container (Flex)"},MenuContentWrapper:{className:mg.MenuContentWrapper,components:["Menu"],description:"Menu content wrapper"},MenuItem:{className:mg.MenuItem,components:["Menu"],description:"Menu item button (MenuButton, wrapped in amplify-menu-content class)"},MenuTrigger:{className:mg.MenuTrigger,components:["Menu"],description:"Menu trigger button (MenuButton, not wrapped in amplify-menu-content class)"},Pagination:{className:mg.Pagination,components:["Pagination"],description:"Top level element that wraps the Pagination primitive"},PaginationItemButton:{className:mg.PaginationItemButton,components:["Pagination"],description:"Class applied to the pagination buttons"},PaginationItemCurrent:{className:mg.PaginationItemCurrent,components:["Pagination"],description:"Class applied to the currently selected pagination button"},PaginationItemEllipsis:{className:mg.PaginationItemEllipsis,components:["Pagination"],description:"Class applied to the ellipsis within the Pagination primitive"},PasswordField:{className:mg.PasswordField,components:["PasswordField"],description:"Top level element that wraps the PasswordField primitive"},PhoneNumberField:{className:mg.PhoneNumberField,components:["PhoneNumberField"],description:"Top level element that wraps the PhoneNumberField primitive"},Placeholder:{className:mg.Placeholder,components:["Placeholder"],description:"Top level element that wraps the Placeholder primitive"},Radio:{className:mg.Radio,components:["RadioGroupField","Radio"],description:"Top level element that wraps the Radio primitive"},RadioButton:{className:mg.RadioButton,components:["RadioGroupField","Radio"],description:"Class applied to the displayed radio button"},RadioInput:{className:mg.RadioInput,components:["RadioGroupField","Radio"],description:"Class applied to the visually hidden radio input"},RadioLabel:{className:mg.RadioLabel,components:["RadioGroupField","Radio"],description:"Class applied to the radio label"},RadioGroupField:{className:mg.RadioGroupField,components:["RadioGroupField"],description:"Top level element that wraps the RadioGroupField primitive"},RadioGroup:{className:mg.RadioGroup,components:["RadioGroupField"],description:"Class applied to the radio group wrapper"},Rating:{className:mg.Rating,components:["Rating"],description:"Top level element that wraps the Rating primitive"},ScrollView:{className:mg.ScrollView,components:["ScrollView"],description:"Top level element that wraps the ScrollView primitive"},SearchField:{className:mg.SearchField,components:["SearchField"],description:"Top level element that wraps the SearchField primitive"},SearchFieldClear:{className:mg.SearchFieldClear,components:["SearchField"],description:"Class applied to the search field clear button"},SearchFieldSearch:{className:mg.SearchFieldSearch,components:["SearchField"],description:"Class applied to the search button"},Select:{className:mg.Select,components:["Select","SelectField"],description:"Class applied to the select element"},SelectField:{className:mg.SelectField,components:["SelectField"],description:"Top level element that wraps the SelectField primitive"},SelectWrapper:{className:mg.SelectWrapper,components:["Select","SelectField"],description:"Class applied to the select wrapper"},SelectIconWrapper:{className:mg.SelectIconWrapper,components:["Select","SelectField"],description:"Class applied to the select icon wrapper"},SliderField:{className:mg.SliderField,components:["SliderField"],description:"Top level element that wraps the SliderField primitive"},SliderFieldGroup:{className:mg.SliderFieldGroup,components:["SliderField"],description:"Class applied to the element that wraps the slider root"},SliderFieldLabel:{className:mg.SliderFieldLabel,components:["SliderField"],description:"Class applied to the slider label"},SliderFieldRange:{className:mg.SliderFieldRange,components:["SliderField"],description:"Class applied to the filled in portion of the slider track"},SliderFieldRoot:{className:mg.SliderFieldRoot,components:["SliderField"],description:"Class applied to the slider root which wraps the track and thumb"},SliderFieldThumb:{className:mg.SliderFieldThumb,components:["SliderField"],description:"Class applied to the slider thumb"},SliderFieldTrack:{className:mg.SliderFieldTrack,components:["SliderField"],description:"Class applied to the slider track"},StepperField:{className:mg.StepperField,components:["StepperField"],description:"Top level element that wraps the StepperField primitive"},StepperFieldButtonDecrease:{className:mg.StepperFieldButtonDecrease,components:["StepperField"],description:"Class applied to the decrease button"},StepperFieldButtonIncrease:{className:mg.StepperFieldButtonIncrease,components:["StepperField"],description:"Class applied to the increase button"},StepperFieldInput:{className:mg.StepperFieldInput,components:["StepperField"],description:"Class applied to the StepperField input"},SwitchField:{className:mg.SwitchField,components:["SwitchField"],description:"Top level element that wraps the SwitchField primitive"},SwitchLabel:{className:mg.SwitchLabel,components:["SwitchField"],description:"Class applied to the SwitchField label text"},SwitchThumb:{className:mg.SwitchThumb,components:["SwitchField"],description:"Class applied to the SwitchField thumb"},SwitchTrack:{className:mg.SwitchTrack,components:["SwitchField"],description:"Class applied to the SwitchField track"},SwitchWrapper:{className:mg.SwitchWrapper,components:["SwitchField"],description:"Class applied to the label element that wraps the SwitchField label and track"},Table:{className:mg.Table,components:["Table"],description:"Top level element that wraps the Table primitive"},TableCaption:{className:mg.TableCaption,components:["Table"],description:"Class applied to the content provided as the caption prop"},TableBody:{className:mg.TableBody,components:["Table"],description:"Class applied to TableBody component"},TableTd:{className:mg.TableTd,components:["Table"],description:'Class applied to TableCell component rendered as a <td> element (<TableCell as="td" />)'},TableTh:{className:mg.TableTh,components:["Table"],description:'Class applied to TableCell comopnent rendered as a <th> element (<TableCell as="th" />)'},TableFoot:{className:mg.TableFoot,components:["Table"],description:"Class applied to TableFoot component"},TableHead:{className:mg.TableHead,components:["Table"],description:"Class applied to TableHead component"},TableRow:{className:mg.TableRow,components:["Table"],description:"Class applied to TableRow component"},Tabs:{className:mg.Tabs,components:["Tabs"],description:"Top level element that wraps the Tabs primitive"},TabItems:{className:mg.TabItems,components:["Tabs"],description:"Top level element that wraps the TabItem primitive"},Text:{className:mg.Text,components:["Text"],description:"Top level element that wraps the Text primitive"},Textarea:{className:mg.Textarea,components:["TextAreaField"],description:"Class applied to the text area"},TextAreaField:{className:mg.TextAreaField,components:["TextAreaField"],description:"Top level element that wraps the TextAreaField primitive"},TextField:{className:mg.TextField,components:["TextField"],description:"Top level element that wraps the TextField primitive"},ToggleButton:{className:mg.ToggleButton,components:["ToggleButton"],description:"Top level element that wraps the ToggleButton primitive"},ToggleButtonGroup:{className:mg.ToggleButtonGroup,components:["ToggleButton","ToggleButtonGroup"],description:"Top level element that wraps the ToggleButtonGroup primitive"},VisuallyHidden:{className:mg.VisuallyHidden,components:["VisuallyHidden"],description:"Top level element that wraps the VisuallyHidden primitive"}},kg={Alert:Ig.Alert.className,AlertIcon:Ig.AlertIcon.className,AlertHeading:Ig.AlertHeading.className,AlertBody:Ig.AlertBody.className,AlertDismiss:Ig.AlertDismiss.className,Autocomplete:Ig.Autocomplete.className,AutocompleteMenu:Ig.AutocompleteMenu.className,AutocompleteMenuEmpty:Ig.AutocompleteMenuEmpty.className,AutocompleteMenuFooter:Ig.AutocompleteMenuFooter.className,AutocompleteMenuHeader:Ig.AutocompleteMenuHeader.className,AutocompleteMenuLoading:Ig.AutocompleteMenuLoading.className,AutocompleteMenuOption:Ig.AutocompleteMenuOption.className,AutocompleteMenuOptions:Ig.AutocompleteMenuOptions.className,Badge:Ig.Badge.className,Button:Ig.Button.className,ButtonGroup:Ig.ButtonGroup.className,ButtonLoaderWrapper:Ig.ButtonLoaderWrapper.className,Card:Ig.Card.className,Checkbox:Ig.Checkbox.className,CheckboxButton:Ig.CheckboxButton.className,CheckboxIcon:Ig.CheckboxIcon.className,CheckboxInput:Ig.CheckboxInput.className,CheckboxLabel:Ig.CheckboxLabel.className,CheckboxField:Ig.CheckboxField.className,Collection:Ig.Collection.className,CollectionItems:Ig.CollectionItems.className,CollectionSearch:Ig.CollectionSearch.className,CollectionPagination:Ig.CollectionPagination.className,CountryCodeSelect:Ig.CountryCodeSelect.className,DialCodeSelect:Ig.DialCodeSelect.className,Divider:Ig.Divider.className,DividerLabel:Ig.DividerLabel.className,Expander:Ig.Expander.className,ExpanderContent:Ig.ExpanderContent.className,ExpanderContentText:Ig.ExpanderContentText.className,ExpanderHeader:Ig.ExpanderHeader.className,ExpanderIcon:Ig.ExpanderIcon.className,ExpanderItem:Ig.ExpanderItem.className,ExpanderTrigger:Ig.ExpanderTrigger.className,Field:Ig.Field.className,FieldDescription:Ig.FieldDescription.className,FieldErrorMessage:Ig.FieldErrorMessage.className,FieldGroup:Ig.FieldGroup.className,FieldGroupControl:Ig.FieldGroupControl.className,FieldGroupOuterEnd:Ig.FieldGroupOuterEnd.className,FieldGroupOuterStart:Ig.FieldGroupOuterStart.className,FieldGroupInnerEnd:Ig.FieldGroupInnerEnd.className,FieldGroupInnerStart:Ig.FieldGroupInnerStart.className,FieldGroupIcon:Ig.FieldGroupIcon.className,FieldGroupIconButton:Ig.FieldGroupIconButton.className,FieldGroupHasInnerEnd:Ig.FieldGroupHasInnerEnd.className,FieldGroupHasInnerStart:Ig.FieldGroupHasInnerStart.className,FieldShowPassword:Ig.FieldShowPassword.className,FieldGroupFieldWrapper:Ig.FieldGroupFieldWrapper.className,FileUploaderDropZone:Ig.FileUploaderDropZone.className,FileUploaderDropZoneIcon:Ig.FileUploaderDropZoneIcon.className,FileUploaderDropZoneText:Ig.FileUploaderDropZoneText.className,FileUploaderDropZoneButton:Ig.FileUploaderDropZoneButton.className,FileUploaderFile:Ig.FileUploaderFile.className,FileUploaderFileWrapper:Ig.FileUploaderFileWrapper.className,FileUploaderFileName:Ig.FileUploaderFileName.className,FileUploaderLoader:Ig.FileUploaderLoader.className,FileUploaderFileSize:Ig.FileUploaderFileSize.className,FileUploaderFileInfo:Ig.FileUploaderFileInfo.className,FileUploaderFileImage:Ig.FileUploaderFileImage.className,FileUploaderFileMain:Ig.FileUploaderFileMain.className,FileUploaderFileStatus:Ig.FileUploaderFileStatus.className,FileUploaderPreviewer:Ig.FileUploaderPreviewer.className,FileUploaderPreviewerText:Ig.FileUploaderPreviewerText.className,FileUploaderPreviewerBody:Ig.FileUploaderPreviewerBody.className,FileUploaderPreviewerFooter:Ig.FileUploaderPreviewerFooter.className,FileUploaderPreviewerFooterActions:Ig.FileUploaderPreviewerFooterActions.className,Flex:Ig.Flex.className,Grid:Ig.Grid.className,Heading:Ig.Heading.className,HighlightMatch:Ig.HighlightMatch.className,HighlightMatchHighlighted:Ig.HighlightMatchHighlighted.className,Icon:Ig.Icon.className,Image:Ig.Image.className,Input:Ig.Input.className,Label:Ig.Label.className,Link:Ig.Link.className,Loader:Ig.Loader.className,LoaderDeterminate:Ig.LoaderDeterminate.className,LoaderPercentageText:Ig.LoaderPercentageText.className,MenuContent:Ig.MenuContent.className,MenuContentWrapper:Ig.MenuContentWrapper.className,MenuItem:Ig.MenuItem.className,MenuTrigger:Ig.MenuTrigger.className,Pagination:Ig.Pagination.className,PaginationItemButton:Ig.PaginationItemButton.className,PaginationItemCurrent:Ig.PaginationItemCurrent.className,PaginationItemEllipsis:Ig.PaginationItemEllipsis.className,PasswordField:Ig.PasswordField.className,PhoneNumberField:Ig.PhoneNumberField.className,Placeholder:Ig.Placeholder.className,Radio:Ig.Radio.className,RadioButton:Ig.RadioButton.className,RadioInput:Ig.RadioInput.className,RadioLabel:Ig.RadioLabel.className,RadioGroupField:Ig.RadioGroupField.className,RadioGroup:Ig.RadioGroup.className,Rating:Ig.Rating.className,ScrollView:Ig.ScrollView.className,SearchField:Ig.SearchField.className,SearchFieldClear:Ig.SearchFieldClear.className,SearchFieldSearch:Ig.SearchFieldSearch.className,Select:Ig.Select.className,SelectField:Ig.SelectField.className,SelectWrapper:Ig.SelectWrapper.className,SelectIconWrapper:Ig.SelectIconWrapper.className,SliderField:Ig.SliderField.className,SliderFieldGroup:Ig.SliderFieldGroup.className,SliderFieldLabel:Ig.SliderFieldLabel.className,SliderFieldRange:Ig.SliderFieldRange.className,SliderFieldRoot:Ig.SliderFieldRoot.className,SliderFieldThumb:Ig.SliderFieldThumb.className,SliderFieldTrack:Ig.SliderFieldTrack.className,StepperField:Ig.StepperField.className,StepperFieldButtonDecrease:Ig.StepperFieldButtonDecrease.className,StepperFieldButtonIncrease:Ig.StepperFieldButtonIncrease.className,StepperFieldInput:Ig.StepperFieldInput.className,SwitchField:Ig.SwitchField.className,SwitchLabel:Ig.SwitchLabel.className,SwitchThumb:Ig.SwitchThumb.className,SwitchTrack:Ig.SwitchTrack.className,SwitchWrapper:Ig.SwitchWrapper.className,Table:Ig.Table.className,TableCaption:Ig.TableCaption.className,TableBody:Ig.TableBody.className,TableTd:Ig.TableTd.className,TableTh:Ig.TableTh.className,TableFoot:Ig.TableFoot.className,TableHead:Ig.TableHead.className,TableRow:Ig.TableRow.className,Tabs:Ig.Tabs.className,TabItems:Ig.TabItems.className,Text:Ig.Text.className,Textarea:Ig.Textarea.className,TextAreaField:Ig.TextAreaField.className,TextField:Ig.TextField.className,ToggleButton:Ig.ToggleButton.className,ToggleButtonGroup:Ig.ToggleButtonGroup.className,VisuallyHidden:Ig.VisuallyHidden.className},xg={Alert:{dismissButtonLabel:"Dismiss alert"},Autocomplete:{emptyText:"No options found",loadingText:"Loading options..."},Collection:{searchButtonLabel:"Search",searchNoResultsFound:"No results found"},Fields:{clearButtonLabel:"Clear input"},PaginationItem:{currentPageLabel:"Page",nextLabel:"Go to next page",pageLabel:"Go to page",previousLabel:"Go to previous page"},PhoneNumberField:{countryCodeLabel:"Country code"},SearchField:{searchButtonLabel:"Search"},PasswordField:{passwordIsHidden:"Password is hidden",passwordIsShown:"Password is shown",showPassword:"Show password"},StepperField:{increaseButtonLabel:"Increase to",decreaseButtonLabel:"Decrease to"}},Tg={backgroundColor:"colors",color:"colors",borderRadius:"radii",fontSize:"fontSizes",fontWeight:"fontWeights",fontFamily:"fonts",lineHeight:"lineHeights",opacity:"opacities",boxShadow:"shadows",transform:"transforms",left:"space",right:"space",top:"space",bottom:"space",height:"space",width:"space",letterSpacing:"space",margin:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",marginLeft:"space",marginRight:"space",marginTop:"space",marginBottom:"space",maxHeight:"space",maxWidth:"space",minHeight:"space",minWidth:"space",padding:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",paddingLeft:"space",paddingRight:"space",paddingTop:"space",paddingBottom:"space",gap:"space",columnGap:"space",rowGap:"space"},Pg=e=>e in Tg,Og=e=>"function"==typeof e,Ng=e=>"string"==typeof e&&0===e.length,Ug=e=>null==e||Ng(e),Fg=(e,t)=>t?`${e}--${t}`:"",Rg=(e,t,n)=>n?`${e}--${t}`:"",Mg=e=>Object.keys(e),Dg=(e,t,n)=>{if("string"!=typeof t)return t;if(t.includes(" "))return t.split(" ").map((t=>Dg(e,t,n))).join(" ");if(Pg(e)){const r=t.split(".");let o=n[Tg[e]];for(let e=0;e<r.length&&o;e++)o=o[r[e]];return dg(o)?`var(--${cg({path:[Tg[e],...r]})})`:t}return t},jg=({breakpoint:e,breakpoints:t,values:n})=>{let r={};const o=Mg(t).sort(((e,n)=>t[e]-t[n]));var i;return Array.isArray(n)?n.forEach(((e,t)=>{r[o[t]]=e})):"object"==typeof n&&(r=Mg(i=n).reduce(((e,t)=>t in _g.breakpoints.values?Object.assign(Object.assign({},e),{[t]:i[t]}):e),{})),(({breakpoint:e,breakpoints:t,values:n})=>{const r=n[e];if(void 0!==r)return r;const o=Mg(t).sort(((e,n)=>t[n]-t[e])),i=o.slice(o.indexOf(e));for(const e of i){const t=n[e];if(void 0!==t)return t}return null})({breakpoint:e,breakpoints:t,values:r})};$u=i("8dQZc");const Lg=({breakpoints:e})=>{const t=Mg(e).sort(((t,n)=>e[n]-e[t]));return t.map(((n,r)=>{let o="";const i=e[n],a=t[r-1],s=a?e[a]-1:null;return i>=0&&(o=`(min-width: ${i}px)`),null!==s&&(o&&(o+=" and "),o+=`(max-width: ${s}px)`),{breakpoint:n,query:o,maxWidth:s,minWidth:i}}))},Bg="undefined"==typeof window?$u.useEffect:$u.useLayoutEffect,zg=({breakpoints:e,defaultBreakpoint:t})=>{const n="undefined"!=typeof window&&void 0!==window.matchMedia?window.matchMedia:null,r=$u.useMemo((()=>Lg({breakpoints:e})),[e]),[o,i]=$u.useState(t),a=$u.useCallback(((e,t)=>{e&&i(t)}),[i]);return Bg((()=>{if(!n)return;const e=r.map((({query:e,breakpoint:t})=>{const r=n(e);a(r.matches,t);const o=e=>{e.matches&&i(t)};return r.addEventListener("change",o),()=>r.removeEventListener("change",o)}));return()=>{e.forEach((e=>e()))}}),[e,i,n,r]),$u.useDebugValue(o,(e=>e)),o};$u=i("8dQZc");var Vg={},Wg={};function Hg(e){return e.toLowerCase()}var Gg=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],qg=/[^A-Z0-9]+/gi;function Kg(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?Gg:n,o=t.stripRegexp,i=void 0===o?qg:o,a=t.transform,s=void 0===a?Hg:a,u=t.delimiter,l=void 0===u?" ":u,c=Zg(Zg(e,r,"$1\0$2"),i,"\0"),d=0,f=c.length;"\0"===c.charAt(d);)d++;for(;"\0"===c.charAt(f-1);)f--;return c.slice(d,f).split("\0").map(s).join(l)}function Zg(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function Yg(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function Qg(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}function $g(e,t){return 0===t?e.toLowerCase():Yg(e,t)}function Jg(e,t){return void 0===t&&(t={}),Kg(e,lt({delimiter:"."},t))}const Xg=function(e,t){Object.keys(e||{}).forEach((n=>{let r=e[n];t(r,n)}))},ev=function(e){return null==e||"object"!=typeof e?e:e instanceof Array?e.reduce(((e,t,n)=>(e[n]=ev(t),e)),[]):e instanceof Object?Object.keys(e||{}).reduce(((t,n)=>(t[n]=ev(e[n]),t)),{}):void 0},tv=function(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)};const nv=function(e,t){return tv(t)?Object.keys(t).every((n=>nv(e[n],t[n]))):e==t},rv={transform:function(e,t){return 0===t?e.toLowerCase():Qg(e)}};var ov,iv;Wg={each:Xg,forEach:Xg,forIn:Xg,keys:Object.keys,clone:function(e){return Object.assign(new e.constructor,e)},cloneDeep:ev,extend:Object.assign,isString:function(e){return"string"==typeof e||e instanceof String},isArray:function(e){return Array.isArray(e)},isObject:tv,isPlainObject:function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},isEmpty:function(e){return[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length},filter:function(e,t){if("function"!=typeof t)throw"filter is not a function";return void 0===e?[]:e.filter(t)},reduce:function(e,t,n){return Object.keys(e||{}).reduce(((n,r)=>{let o=e[r];return t(n,o,r,e)}),n)},assign:function(){let e=Array.prototype.slice.call(arguments);return e.unshift({}),Object.assign(...e)},upperFirst:function(e){return e?e[0].toUpperCase()+e.substr(1):""},camelCase:(ov=function(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),Kg(e,lt({delimiter:"",transform:Yg},t))}(e,lt({transform:$g},t))},(e,t)=>ov(e,Object.assign({},rv,iv,t))),snakeCase:function(e,t){return void 0===t&&(t={}),Jg(e,lt({delimiter:"_"},t))},kebabCase:function(e,t){return void 0===t&&(t={}),Jg(e,lt({delimiter:"-"},t))},pull:function(e,...t){var n=new Set(t);for(let t=e.length-1;t>=0;t--)n.has(e[t])&&e.splice(t,1)},matches:function(e){let t=ev(e);return e=>nv(e,t)},unique:function(e){return[...new Set(e)]}},Vg=function e(t,n,r){if(null==t)return{};var o,i,a,s,u,l,c=t[0]||{},d=1,f=t.length;for(r=r||[],"object"!=typeof c&&(c={});d<f;d++)if(null!=(u=t[d]))for(s in u)if(u.hasOwnProperty(s)&&"__proto__"!==s&&(o=c[s],c!==(a=u[s])))if(a&&(Wg.isPlainObject(a)||(i=Wg.isArray(a)))){i?(i=!1,l=o&&Wg.isArray(o)?o:[]):l=o&&Wg.isPlainObject(o)?o:{};var h=r.slice(0);h.push(s),c[s]=e([l,a],n,h)}else void 0!==a&&(null!=o&&"function"==typeof n&&n({target:c,copy:u,path:r,key:s}),c[s]=a);return c};var av={};av=function e(t,n){for(var r in n=n||[],t)t.hasOwnProperty(r)&&(Wg.isPlainObject(t[r])&&"value"in t[r]?n.push(t[r]):Wg.isPlainObject(t[r])&&e(t[r],n));return n};var sv=function(e){var t=e.token,n=e.path,r="--".concat(cg({path:n})),o=t.value,i=lg(t);return{name:r,original:o,path:n,value:i,toString:function(){return"var(".concat(r,")")}}};function uv(e,t){void 0===t&&(t=_g);var r=n(Vg)([{},t,e]),o=hg({tokens:r.tokens,setupToken:sv}),i=r.breakpoints,a=r.name,s='[data-amplify-theme="'.concat(a,'"] {\n')+n(av)(o).map((function(e){return"".concat(e.name,": ").concat(e.value,";")})).join("\n")+"\n}\n",u=[];return r.overrides&&(u=r.overrides.map((function(e){var t=hg({tokens:e.tokens,setupToken:sv}),o=n(av)(t).map((function(e){return"".concat(e.name,": ").concat(e.value,";")})).join("\n");if("selector"in e&&(s+="\n".concat(e.selector," {\n").concat(o,"\n}\n")),"mediaQuery"in e&&(s+="\n@media (".concat(e.mediaQuery,') {\n [data-amplify-theme="').concat(a,'"] {\n ').concat(o,"\n }\n}\n")),"breakpoint"in e){var i=r.breakpoints.values[e.breakpoint];s+="\n@media (min-width: ".concat(i,'px) {\n [data-amplify-theme="').concat(a,'"] {\n ').concat(o,"\n }\n}\n")}return"colorMode"in e&&(s+="\n@media (prefers-color-scheme: ".concat(e.colorMode,') {\n [data-amplify-theme="').concat(a,'"][data-amplify-color-mode="system"] {\n').concat(o,"\n}\n }\n"),s+='\n[data-amplify-theme="'.concat(a,'"][data-amplify-color-mode="').concat(e.colorMode,'"] {\n').concat(o,"\n}\n")),Ju(Ju({},e),{tokens:t})}))),{tokens:o,breakpoints:i,name:a,cssText:s,overrides:u}}const lv=($u=i("8dQZc")).createContext({theme:uv()}),cv=()=>{const e=$u.useContext(lv);return void 0===(t=e)||void 0===t.theme?uv():t.theme;var t},dv=({value:e,propKey:t,tokens:n})=>dg(e)?e.toString():ag(e)?ag(t)?Dg(t,e,n):e:null,fv=e=>"auto"===e?"auto":`span ${e}`,hv=e=>(e=>"auto"===e||"number"==typeof e&&!isNaN(e)||"string"==typeof e&&!isNaN(parseFloat(e)))(e)?fv(e):Array.isArray(e)?e.map((e=>fv(e))):"object"==typeof e&&null!=e?Object.entries(e).reduce(((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:fv(n)})),{}):null,pv=({props:e={},style:t={},breakpoint:n,breakpoints:r,tokens:o})=>{const i={};return Object.keys(e).filter((t=>null!==e[t])).forEach((a=>{if(a in pg){const i=e[a];if(!i||Ng(i))return;const s=pg[a];let u="";dg(i)?u=i.toString():"string"==typeof i?u=Dg(a,i,o):"number"==typeof i?u=i:"object"==typeof i&&(u=dv({propKey:a,tokens:o,value:jg({values:i,breakpoint:n,breakpoints:r})})),t=Object.assign(Object.assign({},t),{[s]:u})}else void 0!==e[a]&&(i[a]=e[a])})),{propStyles:t,nonStyleProps:i}},mv=(e,t)=>{const{breakpoints:{values:n,defaultBreakpoint:r},tokens:o}=cv(),i=zg({breakpoints:n,defaultBreakpoint:r}),a=(e=>{const{rowSpan:t,columnSpan:n,row:r,column:o}=e,i=Yu(e,["rowSpan","columnSpan","row","column"]),{rowFromSpanValue:a,columnFromSpanValue:s}=$u.useMemo((()=>({rowFromSpanValue:hv(t),columnFromSpanValue:hv(n)})),[t,n]);return Object.assign({row:Ug(r)?a:r,column:Ug(o)?s:o},i)})(e);return $u.useMemo((()=>pv({props:a,style:t,breakpoint:i,breakpoints:n,tokens:o})),[a,t,n,i,o])},gv=$u.forwardRef(((e,t)=>{var{as:n="div",children:r,testId:o,ariaLabel:i,isDisabled:a,style:s,inert:u}=e,l=Yu(e,["as","children","testId","ariaLabel","isDisabled","style","inert"]);const{propStyles:c,nonStyleProps:d}=mv(l,s);return $u.createElement(n,Object.assign({"aria-label":i,"data-testid":o,disabled:a,ref:t,inert:u?"":null,style:c},d),r)}));gv.displayName="View";const vv=($u=i("8dQZc")).forwardRef(((e,t)=>{var{className:r,children:o}=e,i=Yu(e,["className","children"]);return $u.createElement(gv,Object.assign({className:n(tg)(kg.Flex,r),ref:t},i),o)}));var yv;vv.displayName="Flex",function(e){e.ChangePassword="amplify-accountsettings-changepassword",e.DeleteUser="amplify-accountsettings-deleteuser"}(yv||(yv={}));$u=i("8dQZc"),$u=i("8dQZc"),$u=i("8dQZc");const bv=84*Math.PI,wv=$u.forwardRef(((e,t)=>{var{className:r,filledColor:o,emptyColor:i,size:a,variation:s,isDeterminate:u=!1,isPercentageTextHidden:l=!1,percentage:c=0}=e,d=Yu(e,["className","filledColor","emptyColor","size","variation","isDeterminate","isPercentageTextHidden","percentage"]);c=Math.min(c,100);const f=`${c=Math.max(c,0)}%`,h=n(tg)(kg.Loader,Fg(kg.Loader,a),Fg(kg.Loader,s),u?kg.LoaderDeterminate:null,r),p=$u.createElement("g",null,$u.createElement("line",{x1:"0",x2:"100%",y1:"50%",y2:"50%",style:{stroke:String(i)},"data-testid":"linear-empty"}),$u.createElement("line",{x1:"0",x2:u?f:"100%",y1:"50%",y2:"50%",style:{stroke:u&&0===c?"none":o?String(o):void 0},"data-testid":"linear-filled"}),u?$u.createElement("text",{"aria-live":"polite",className:n(tg)(kg.LoaderPercentageText,l?kg.VisuallyHidden:null),x:`${-1+c}%`,y:"200%"},f):null),m=$u.createElement("g",null,$u.createElement("circle",{cx:"50%",cy:"50%",r:"42%",strokeWidth:"8%",style:{stroke:String(i)},"data-testid":"circular-empty"}),$u.createElement("circle",{cx:"50%",cy:"50%",r:"42%",strokeWidth:"8%",style:{stroke:String(o),strokeDasharray:u?`${bv}% ${bv}%`:void 0,strokeDashoffset:u?bv-bv*c/100+"%":void 0},"data-testid":"circular-filled"}),u?$u.createElement("text",{"aria-live":"polite",className:n(tg)(kg.LoaderPercentageText,l?kg.VisuallyHidden:null),x:"130%",y:"80%"},f):null);return $u.createElement(gv,Object.assign({as:"svg",className:h,"data-size":a,"data-variation":s,ref:t,role:"img"},d),"linear"===s?p:m)}));wv.displayName="Loader";const Sv=$u.forwardRef(((e,t)=>{var{className:r,children:o,isFullWidth:i=!1,isDisabled:a,isLoading:s,loadingText:u="",size:l,type:c="button",variation:d}=e,f=Yu(e,["className","children","isFullWidth","isDisabled","isLoading","loadingText","size","type","variation"]);const h=n(tg)(kg.Button,kg.FieldGroupControl,Fg(kg.Button,d),Fg(kg.Button,l),Rg(kg.Button,"disabled",a||s||f.disabled),Rg(kg.Button,"loading",s),Rg(kg.Button,"fullwidth",i),r);return $u.createElement(gv,Object.assign({ref:t,as:"button",className:h,"data-fullwidth":i,"data-loading":s,"data-size":l,"data-variation":d,isDisabled:a||s,type:c},f),s?$u.createElement(vv,{as:"span",className:kg.ButtonLoaderWrapper},$u.createElement(wv,{size:l}),u||null):o)}));Sv.displayName="Button";$u=i("8dQZc"),$u=i("8dQZc");const Cv=($u=i("8dQZc")).forwardRef(((e,t)=>{var{as:r="span",children:o,className:i}=e,a=Yu(e,["as","children","className"]);return $u.createElement(gv,Object.assign({as:r,className:n(tg)(kg.VisuallyHidden,i),ref:t},a),o)}));Cv.displayName="VisuallyHidden";$u=i("8dQZc");const Ev=e=>{const{className:t}=e,r=Yu(e,["className"]);return $u.createElement(gv,Object.assign({as:"span",width:"1em",height:"1em",className:n(tg)(kg.Icon,t)},r),$u.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$u.createElement("path",{d:"M12 6.0002C15.79 6.0002 19.17 8.1302 20.82 11.5002C20.23 12.7202 19.4 13.7702 18.41 14.6202L19.82 16.0302C21.21 14.8002 22.31 13.2602 23 11.5002C21.27 7.1102 17 4.0002 12 4.0002C10.73 4.0002 9.51 4.2002 8.36 4.5702L10.01 6.2202C10.66 6.0902 11.32 6.0002 12 6.0002ZM10.93 7.14019L13 9.2102C13.57 9.4602 14.03 9.9202 14.28 10.4902L16.35 12.5602C16.43 12.2202 16.49 11.8602 16.49 11.4902C16.5 9.0102 14.48 7.0002 12 7.0002C11.63 7.0002 11.28 7.05019 10.93 7.14019ZM2.01 3.8702L4.69 6.5502C3.06 7.8302 1.77 9.5302 1 11.5002C2.73 15.8902 7 19.0002 12 19.0002C13.52 19.0002 14.98 18.7102 16.32 18.1802L19.74 21.6002L21.15 20.1902L3.42 2.4502L2.01 3.8702ZM9.51 11.3702L12.12 13.9802C12.08 13.9902 12.04 14.0002 12 14.0002C10.62 14.0002 9.5 12.8802 9.5 11.5002C9.5 11.4502 9.51 11.4202 9.51 11.3702V11.3702ZM6.11 7.97019L7.86 9.7202C7.63 10.2702 7.5 10.8702 7.5 11.5002C7.5 13.9802 9.52 16.0002 12 16.0002C12.63 16.0002 13.23 15.8702 13.77 15.6402L14.75 16.6202C13.87 16.8602 12.95 17.0002 12 17.0002C8.21 17.0002 4.83 14.8702 3.18 11.5002C3.88 10.0702 4.9 8.89019 6.11 7.97019Z",fill:"currentColor"})))};$u=i("8dQZc");const Av=e=>{const{className:t}=e,r=Yu(e,["className"]);return $u.createElement(gv,Object.assign({as:"span",width:"1em",height:"1em",className:n(tg)(kg.Icon,t)},r),$u.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$u.createElement("path",{d:"M12 6C15.79 6 19.17 8.13 20.82 11.5C19.17 14.87 15.79 17 12 17C8.21 17 4.83 14.87 3.18 11.5C4.83 8.13 8.21 6 12 6ZM12 4C7 4 2.73 7.11 1 11.5C2.73 15.89 7 19 12 19C17 19 21.27 15.89 23 11.5C21.27 7.11 17 4 12 4ZM12 9C13.38 9 14.5 10.12 14.5 11.5C14.5 12.88 13.38 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 10.12 10.62 9 12 9ZM12 7C9.52 7 7.5 9.02 7.5 11.5C7.5 13.98 9.52 16 12 16C14.48 16 16.5 13.98 16.5 11.5C16.5 9.02 14.48 7 12 7Z",fill:"currentColor"})))},{passwordIsHidden:_v,passwordIsShown:Iv,showPassword:kv}=xg.PasswordField,xv=$u.forwardRef(((e,t)=>{var{fieldType:n,passwordIsHiddenLabel:r=_v,passwordIsShownLabel:o=Iv,showPasswordButtonLabel:i=kv,size:a}=e,s=Yu(e,["fieldType","passwordIsHiddenLabel","passwordIsShownLabel","showPasswordButtonLabel","size"]);return $u.createElement(Sv,Object.assign({"aria-checked":"password"!==n,ariaLabel:i,className:kg.FieldShowPassword,ref:t,role:"switch",size:a},s),$u.createElement(Cv,{"aria-live":"polite"},"password"===n?r:o),"password"===n?$u.createElement(Av,{size:a}):$u.createElement(Ev,{size:a}))}));xv.displayName="ShowPasswordButton";$u=i("8dQZc"),$u=i("8dQZc");const Tv=($u=i("8dQZc")).forwardRef(((e,t)=>{var{as:r="p",className:o,children:i,isTruncated:a,variation:s}=e,u=Yu(e,["as","className","children","isTruncated","variation"]);const l=n(tg)(kg.Text,Fg(kg.Text,s),Rg(kg.Text,"truncated",a),o);return $u.createElement(gv,Object.assign({as:r,className:l,"data-truncate":a,"data-variation":s,ref:t},u),i)}));Tv.displayName="Text";const Pv=e=>{var{descriptiveText:t,labelHidden:r}=e,o=Yu(e,["descriptiveText","labelHidden"]);return t?$u.createElement(Tv,Object.assign({"data-testid":"qa-field-description",className:n(tg)(kg.FieldDescription,{[kg.VisuallyHidden]:r})},o),t):null};Pv.displayName="FieldDescription";$u=i("8dQZc");const Ov=e=>{var{errorMessage:t,hasError:n}=e,r=Yu(e,["errorMessage","hasError"]);return n&&t?$u.createElement(Tv,Object.assign({className:kg.FieldErrorMessage},r),t):null};Ov.displayName="FieldErrorMessage";const Nv=($u=i("8dQZc")).forwardRef(((e,t)=>{var{children:r,className:o,innerEndComponent:i,innerStartComponent:a,orientation:s="horizontal",outerEndComponent:u,outerStartComponent:l,variation:c}=e,d=Yu(e,["children","className","innerEndComponent","innerStartComponent","orientation","outerEndComponent","outerStartComponent","variation"]);const f=null!=a?kg.FieldGroupHasInnerStart:null,h=null!=i?kg.FieldGroupHasInnerEnd:null,p=n(tg)(kg.FieldGroup,f,h,Fg(kg.FieldGroup,s),o);return $u.createElement(vv,Object.assign({className:p,"data-orientation":s,ref:t},d),l&&$u.createElement(gv,{className:n(tg)(kg.FieldGroupOuterStart,Fg(kg.FieldGroupOuterStart,c))},l),$u.createElement(gv,{className:n(tg)(kg.FieldGroupFieldWrapper,Fg(kg.FieldGroupFieldWrapper,s)),"data-orientation":s},a&&$u.createElement(gv,{className:kg.FieldGroupInnerStart},a),r,i&&$u.createElement(gv,{className:kg.FieldGroupInnerEnd},i)),u&&$u.createElement(gv,{className:n(tg)(kg.FieldGroupOuterEnd,Fg(kg.FieldGroupOuterEnd,c))},u))}));Nv.displayName="FieldGroup";const Uv=($u=i("8dQZc")).forwardRef(((e,t)=>{var{autoComplete:r,checked:o,className:i,defaultChecked:a,defaultValue:s,id:u,isDisabled:l,isReadOnly:c,isRequired:d,size:f,type:h="text",hasError:p=!1,value:m,variation:g,onBlur:v,onChange:y,onCopy:b,onCut:w,onFocus:S,onInput:C,onPaste:E,onSelect:A,onWheel:_}=e,I=Yu(e,["autoComplete","checked","className","defaultChecked","defaultValue","id","isDisabled","isReadOnly","isRequired","size","type","hasError","value","variation","onBlur","onChange","onCopy","onCut","onFocus","onInput","onPaste","onSelect","onWheel"]);const k=n(tg)(kg.Input,kg.FieldGroupControl,Fg(kg.Input,g),Rg(kg.Input,"error",p),Fg(kg.Input,f),i);return $u.createElement(gv,Object.assign({"aria-invalid":p,as:"input",autoComplete:r,checked:o,className:k,"data-size":f,"data-variation":g,defaultChecked:a,defaultValue:s,isDisabled:l,id:u,onBlur:v,onChange:y,onCopy:b,onCut:w,onFocus:S,onInput:C,onPaste:E,onSelect:A,onWheel:_,readOnly:c,ref:t,required:d,type:h,value:m},I))}));Uv.displayName="Input";const Fv=($u=i("8dQZc")).forwardRef(((e,t)=>{var{children:r,className:o,visuallyHidden:i}=e,a=Yu(e,["children","className","visuallyHidden"]);return $u.createElement(gv,Object.assign({as:"label",className:n(tg)(kg.Label,o,{[kg.VisuallyHidden]:i}),ref:t},a),r)}));Fv.displayName="Label";const Rv=e=>{const t={styleProps:{},rest:{}};return Object.keys(e).forEach((n=>{(e=>e in pg)(n)?t.styleProps=Object.assign(Object.assign({},t.styleProps),{[n]:e[n]}):t.rest=Object.assign(Object.assign({},t.rest),{[n]:e[n]})})),t};$u=i("8dQZc"),$u=i("8dQZc");const Mv=(null===globalThis||void 0===globalThis?void 0:globalThis.document)?$u.useLayoutEffect:()=>{},Dv=$u["useId".toString()]||(()=>{});let jv=0;const Lv=e=>{const[t,n]=$u.useState(Dv());return Mv((()=>{e||n((e=>null!=e?e:String(jv++)))}),[e]),e||(t?`amplify-id-${t}`:"")},Bv=$u.forwardRef(((e,t)=>{const{className:r,descriptiveText:o,errorMessage:i,hasError:a=!1,id:s,innerEndComponent:u,innerStartComponent:l,label:c,labelHidden:d=!1,outerEndComponent:f,outerStartComponent:h,size:p,testId:m,variation:g,inputStyles:v}=e,y=Yu(e,["className","descriptiveText","errorMessage","hasError","id","innerEndComponent","innerStartComponent","label","labelHidden","outerEndComponent","outerStartComponent","size","testId","variation","inputStyles"]),b=Lv(s),w=Lv(),S=o?w:void 0,{styleProps:C,rest:E}=Rv(y);return $u.createElement(vv,Object.assign({className:n(tg)(kg.Field,Fg(kg.Field,p),kg.TextField,r),"data-size":p,testId:m},C),$u.createElement(Fv,{htmlFor:b,visuallyHidden:d},c),$u.createElement(Pv,{id:w,labelHidden:d,descriptiveText:o}),$u.createElement(Nv,{outerStartComponent:h,outerEndComponent:f,innerStartComponent:l,innerEndComponent:u,variation:g},$u.createElement(Uv,Object.assign({"aria-describedby":S,hasError:a,id:b,ref:t,size:p,variation:g},v,E))),$u.createElement(Ov,{hasError:a,errorMessage:i}))}));Bv.displayName="TextField";const zv=$u.forwardRef(((e,t)=>{var{autoComplete:r="current-password",label:o,className:i,hideShowPassword:a=!1,passwordIsHiddenLabel:s,passwordIsShownLabel:u,showPasswordButtonLabel:l,showPasswordButtonRef:c,size:d}=e,f=Yu(e,["autoComplete","label","className","hideShowPassword","passwordIsHiddenLabel","passwordIsShownLabel","showPasswordButtonLabel","showPasswordButtonRef","size"]);const[h,p]=$u.useState("password"),m=$u.useCallback((()=>{p("password"===h?"text":"password")}),[p,h]);return $u.createElement(Bv,Object.assign({autoComplete:r,outerEndComponent:a?null:$u.createElement(xv,{fieldType:h,onClick:m,passwordIsHiddenLabel:s,passwordIsShownLabel:u,ref:c,size:d,showPasswordButtonLabel:l}),size:d,type:h,label:o,className:n(tg)(kg.PasswordField,i),ref:t},f))}));zv.displayName="PasswordField";$u=i("8dQZc");const Vv=({errors:e,id:t,dataAttr:r})=>{if(!((null==e?void 0:e.length)>0))return null;const o=r?{[r]:!0}:{};return n($u).createElement(gv,Object.assign({},o,{id:t}),e.map((e=>n($u).createElement(Tv,{key:e,role:"alert",variation:"error"},Xm(e)))))};$u=i("8dQZc"),$u=i("8dQZc"),$u=i("8dQZc"),$u=i("8dQZc");const Wv=e=>{const{className:t}=e,r=Yu(e,["className"]);return $u.createElement(gv,Object.assign({as:"span",width:"1em",height:"1em",className:n(tg)(kg.Icon,t)},r),$u.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$u.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",fill:"currentColor"})))};$u=i("8dQZc");const Hv=e=>{const{className:t}=e,r=Yu(e,["className"]);return $u.createElement(gv,Object.assign({as:"span",width:"1em",height:"1em",className:n(tg)(kg.Icon,t)},r),$u.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$u.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})))};$u=i("8dQZc");const Gv=e=>{const{className:t}=e,r=Yu(e,["className"]);return $u.createElement(gv,Object.assign({as:"span",width:"1em",height:"1em",className:n(tg)(kg.Icon,t)},r),$u.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$u.createElement("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})))};$u=i("8dQZc");const qv=e=>{const{className:t}=e,r=Yu(e,["className"]);return $u.createElement(gv,Object.assign({as:"span",width:"1em",height:"1em",className:n(tg)(kg.Icon,t)},r),$u.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$u.createElement("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})))},Kv=({variation:e,ariaHidden:t})=>{switch(e){case"info":return $u.createElement(Gv,{"aria-hidden":t,className:kg.AlertIcon});case"error":return $u.createElement(Hv,{"aria-hidden":t,className:kg.AlertIcon});case"warning":return $u.createElement(qv,{"aria-hidden":t,className:kg.AlertIcon});case"success":return $u.createElement(Wv,{"aria-hidden":t,className:kg.AlertIcon});default:return null}};Kv.displayName="AlertIcon";$u=i("8dQZc");const Zv=e=>{const{className:t,size:r}=e,o=Yu(e,["className","size"]);return $u.createElement(gv,Object.assign({as:"span",width:r||"1em",height:r||"1em",className:n(tg)(kg.Icon,t)},o),$u.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r?{width:r,height:r}:void 0},$u.createElement("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})))},Yv=$u.forwardRef(((e,t)=>{var{buttonRef:r,children:o,className:i,dismissButtonLabel:a=xg.Alert.dismissButtonLabel,hasIcon:s=!0,heading:u,isDismissible:l=!1,onDismiss:c,variation:d}=e,f=Yu(e,["buttonRef","children","className","dismissButtonLabel","hasIcon","heading","isDismissible","onDismiss","variation"]);const[h,p]=$u.useState(!1),m=$u.useCallback((()=>{p(!h),Og(c)&&c()}),[p,c,h]);return h?null:$u.createElement(vv,Object.assign({className:n(tg)(kg.Alert,i,Fg(kg.Alert,d)),"data-variation":d,ref:t,role:"alert"},f),s&&$u.createElement(Kv,{variation:d,ariaHidden:!0}),$u.createElement(gv,{flex:"1"},u&&$u.createElement(gv,{className:kg.AlertHeading},u),$u.createElement(gv,{className:kg.AlertBody},o)),l&&$u.createElement(Sv,{ariaLabel:a,variation:"link",className:kg.AlertDismiss,onClick:m,ref:r},$u.createElement(Zv,{"aria-hidden":"true"})))}));Yv.displayName="Alert";const Qv=e=>n($u).createElement(Yv,Object.assign({variation:"error"},e)),$v=e=>{var{fieldValidationErrors:t,label:r}=e,o=Yu(e,["fieldValidationErrors","label"]);return n($u).createElement(n($u).Fragment,null,n($u).createElement(zv,Object.assign({},o,{label:r})),t?n($u).createElement(Vv,{errors:t}):null)},Jv={CurrentPasswordField:$v,NewPasswordField:$v,ConfirmPasswordField:$v,SubmitButton:Sv,ErrorMessage:Qv},Xv=new y("ChangePassword");function ey({onSuccess:e,onError:t,validators:r,components:o}){const[i,a]=n($u).useState(null),[s,u]=n($u).useState({}),[l,c]=n($u).useState({}),d=n($u).useRef([]),{user:f,isLoading:h}=eg(),p=((e,t)=>{var n,r;const{currentPassword:o,newPassword:i,confirmPassword:a}=e;return!(o&&i&&a)||(null===(n=t.newPassword)||void 0===n?void 0:n.length)>0||(null===(r=t.confirmPassword)||void 0===r?void 0:r.length)>0})(s,l),m=n($u).useMemo((()=>null!=r?r:Zm()),[r]),g=n($u).useCallback((({formValues:e,eventType:t})=>{const{newPassword:n}=e,r=d.current.includes("newPassword");return Qm({value:n,validators:m,eventType:t,hasBlurred:r})}),[m]),v=n($u).useCallback((({formValues:e,eventType:t})=>{const{newPassword:n,confirmPassword:r}=e,o=d.current.includes("confirmPassword"),i=Ym(n);return Qm({value:r,validators:i,eventType:t,hasBlurred:o})}),[]),y=n($u).useCallback((e=>{const t={newPassword:g(e),confirmPassword:v(e)};n(ul)(l,t)||c(t)}),[v,g,l]),b=Xm("Current Password"),w=Xm("New Password"),S=Xm("Confirm Password"),C=Xm("Update password"),{CurrentPasswordField:E,NewPasswordField:A,ConfirmPasswordField:_,SubmitButton:I,ErrorMessage:k}=n($u).useMemo((()=>Object.assign(Object.assign({},Jv),null!=o?o:{})),[o]),x=e=>{e.preventDefault();const{name:t,value:n}=e.target,r=Object.assign(Object.assign({},s),{[t]:n});y({formValues:r,eventType:"change"}),u(r)},T=e=>{e.preventDefault();const{name:t}=e.target;if(!d.current.includes(t)){const e=[...d.current,t];d.current=e,y({formValues:s,eventType:"blur"})}};return h?null:f?n($u).createElement(gv,{as:"form",className:yv.ChangePassword,onSubmit:n=>Qu(this,void 0,void 0,(function*(){if(n.preventDefault(),!f)return;const{currentPassword:r,newPassword:o}=s;i&&a(null);try{yield al({user:f,currentPassword:r,newPassword:o}),null==e||e()}catch(r){const e=r;e.message&&a(e.message),null==t||t(e)}}))},n($u).createElement(vv,{direction:"column"},n($u).createElement(E,{autoComplete:"current-password",isRequired:!0,label:b,name:"currentPassword",onBlur:T,onChange:x}),n($u).createElement(A,{autoComplete:"new-password",fieldValidationErrors:null==l?void 0:l.newPassword,isRequired:!0,label:w,name:"newPassword",onBlur:T,onChange:x}),n($u).createElement(_,{autoComplete:"new-password",fieldValidationErrors:null==l?void 0:l.confirmPassword,isRequired:!0,label:S,name:"confirmPassword",onBlur:T,onChange:x}),n($u).createElement(I,{isDisabled:p,type:"submit"},C),i?n($u).createElement(k,null,i):null)):(Xv.warn("<ChangePassword /> requires user to be authenticated."),null)}ey.CurrentPasswordField=Jv.CurrentPasswordField,ey.NewPasswordField=Jv.NewPasswordField,ey.ConfirmPasswordField=Jv.ConfirmPasswordField,ey.SubmitButton=Jv.SubmitButton,ey.ErrorMessage=Jv.ErrorMessage;$u=i("8dQZc"),$u=i("8dQZc");const ty=($u=i("8dQZc")).forwardRef(((e,t)=>{var{className:r,children:o,variation:i}=e,a=Yu(e,["className","children","variation"]);return $u.createElement(gv,Object.assign({className:n(tg)(kg.Card,Fg(kg.Card,i),r),"data-variation":i,ref:t},a),o)}));ty.displayName="Card";const ny={ErrorMessage:Qv,DeleteButton:e=>n($u).createElement(Sv,Object.assign({},e,{variation:"warning"})),WarningView:({onCancel:e,onConfirm:t,isDisabled:r})=>{const o=Xm("Deleting your account is not reversable. You will lose access to your account and all data associated with it."),i=Xm("Cancel"),a=Xm("Delete my account");return n($u).createElement(ty,null,n($u).createElement(vv,{direction:"column"},n($u).createElement(Tv,{color:"font.error"},o),n($u).createElement(vv,null,n($u).createElement(Sv,{variation:"link",onClick:e,isDisabled:r},i),n($u).createElement(Sv,{variation:"destructive",onClick:t,isDisabled:r},a))))}},ry=ol("Auth");function oy({components:e,onSuccess:t,onError:r,handleDelete:o}){const[i,a]=n($u).useState("IDLE"),[s,u]=n($u).useState(null),l=Xm("Delete Account"),{user:c,isLoading:d}=eg(),{ErrorMessage:f,DeleteButton:h,WarningView:p}=n($u).useMemo((()=>Object.assign(Object.assign({},ny),null!=e?e:{})),[e]),m=n($u).useCallback((()=>Qu(this,void 0,void 0,(function*(){if(c){a("DELETING"),s&&u(null);try{o?yield o(c):yield sl(),a("DONE"),null==t||t()}catch(e){const t=e;a("ERROR"),u(t.message),null==r||r(t)}}}))),[s,o,r,t,c]),g=n($u).useCallback((()=>{a("IDLE")}),[]),v=n($u).useCallback((()=>{m()}),[m]);return d?null:c?"DONE"===i?null:n($u).createElement(vv,{className:yv.DeleteUser,direction:"column"},n($u).createElement(h,{isDisabled:"CONFIRMATION"===i||"DELETING"===i,onClick:e=>{e.preventDefault(),a("CONFIRMATION")}},l),"CONFIRMATION"===i||"DELETING"===i?n($u).createElement(p,{onCancel:g,isDisabled:"DELETING"===i,onConfirm:v}):null,s?n($u).createElement(f,null,s):null):(ry.warn("<DeleteUser /> requires user to be authenticated."),null)}oy.ErrorMessage=ny.ErrorMessage,oy.DeleteButton=ny.DeleteButton,oy.WarningView=ny.WarningView;var iy={ChangePassword:ey,DeleteUser:oy},ay=($u=i("8dQZc"),$u=i("8dQZc"),{});e(ay,"useInterpret",(()=>Gw),(e=>Gw=e));$u=i("8dQZc");var sy,uy,ly,cy,dy=($u=i("8dQZc")).useLayoutEffect,fy=function(){return fy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fy.apply(this,arguments)};function hy(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function py(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function my(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function gy(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}(uy=sy||(sy={})).Start="xstate.start",uy.Stop="xstate.stop",uy.Raise="xstate.raise",uy.Send="xstate.send",uy.Cancel="xstate.cancel",uy.NullEvent="",uy.Assign="xstate.assign",uy.After="xstate.after",uy.DoneState="done.state",uy.DoneInvoke="done.invoke",uy.Log="xstate.log",uy.Init="xstate.init",uy.Invoke="xstate.invoke",uy.ErrorExecution="error.execution",uy.ErrorCommunication="error.communication",uy.ErrorPlatform="error.platform",uy.ErrorCustom="xstate.error",uy.Update="xstate.update",uy.Pure="xstate.pure",uy.Choose="xstate.choose",(cy=ly||(ly={})).Parent="#_parent",cy.Internal="#_internal";var vy=".",yy={},by="xstate.guard",wy="",Sy={};e(Sy,"start",(()=>Ey)),e(Sy,"stop",(()=>Ay)),e(Sy,"raise",(()=>_y)),e(Sy,"send",(()=>Iy)),e(Sy,"cancel",(()=>ky)),e(Sy,"nullEvent",(()=>xy)),e(Sy,"assign",(()=>Ty)),e(Sy,"after",(()=>Py)),e(Sy,"doneState",(()=>Oy)),e(Sy,"log",(()=>Ny)),e(Sy,"init",(()=>Uy)),e(Sy,"invoke",(()=>Fy)),e(Sy,"errorExecution",(()=>Ry)),e(Sy,"errorPlatform",(()=>My)),e(Sy,"error",(()=>Dy)),e(Sy,"update",(()=>jy)),e(Sy,"choose",(()=>Ly)),e(Sy,"pure",(()=>By));var Cy,Ey=sy.Start,Ay=sy.Stop,_y=sy.Raise,Iy=sy.Send,ky=sy.Cancel,xy=sy.NullEvent,Ty=sy.Assign,Py=sy.After,Oy=sy.DoneState,Ny=sy.Log,Uy=sy.Init,Fy=sy.Invoke,Ry=sy.ErrorExecution,My=sy.ErrorPlatform,Dy=sy.ErrorCustom,jy=sy.Update,Ly=sy.Choose,By=sy.Pure,zy=!0;function Vy(e,t,n){void 0===n&&(n=vy);var r=Gy(e,n),o=Gy(t,n);return ub(o)?!!ub(r)&&o===r:ub(r)?r in o:Object.keys(r).every((function(e){return e in o&&Vy(r[e],o[e])}))}function Wy(e){try{return ub(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw new Error("Events must be strings or objects with a string event.type property.")}}function Hy(e,t){try{return ab(e)?e:e.toString().split(t)}catch(t){throw new Error("'".concat(e,"' is not a valid state path."))}}function Gy(e,t){return"object"==typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:ab(e)?qy(e):"string"!=typeof e?e:qy(Hy(e,t));var n}function qy(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r<e.length-1;r++)r===e.length-2?n[e[r]]=e[r+1]:(n[e[r]]={},n=n[e[r]]);return t}function Ky(e,t){for(var n={},r=Object.keys(e),o=0;o<r.length;o++){var i=r[o];n[i]=t(e[i],i,e,o)}return n}function Zy(e,t,n){var r,o,i={};try{for(var a=py(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,l=e[u];n(l)&&(i[u]=t(l,u,e))}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}var Yy=function(e){return function(t){var n,r,o=t;try{for(var i=py(e),a=i.next();!a.done;a=i.next()){o=o[a.value]}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}};function Qy(e){return e?ub(e)?[[e]]:$y(Object.keys(e).map((function(t){var n=e[t];return"string"==typeof n||n&&Object.keys(n).length?Qy(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function $y(e){var t;return(t=[]).concat.apply(t,gy([],my(e),!1))}function Jy(e){return ab(e)?e:[e]}function Xy(e){return void 0===e?[]:Jy(e)}function eb(e,t,n){var r,o;if(sb(e))return e(t,n.data);var i={};try{for(var a=py(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,l=e[u];sb(l)?i[u]=l(t,n.data):i[u]=l}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}return i}function tb(e){return e instanceof Promise||!(null===e||!sb(e)&&"object"!=typeof e||!sb(e.then))}function nb(e,t){var n,r,o=my([[],[]],2),i=o[0],a=o[1];try{for(var s=py(e),u=s.next();!u.done;u=s.next()){var l=u.value;t(l)?i.push(l):a.push(l)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return[i,a]}function rb(e,t){return Ky(e.states,(function(e,n){if(e){var r=(ub(t)?void 0:t[n])||(e?e.current:void 0);if(r)return{current:r,states:rb(e,r)}}}))}function ob(e,t,n,r){zy||ib(!!e,"Attempting to update undefined context");var o=e?n.reduce((function(e,n){var o,i,a=n.assignment,s={state:r,action:n,_event:t},u={};if(sb(a))u=a(e,t.data,s);else try{for(var l=py(Object.keys(a)),c=l.next();!c.done;c=l.next()){var d=c.value,f=a[d];u[d]=sb(f)?f(e,t.data,s):f}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return Object.assign({},e,u)}),e):e;return o}var ib=function(){};function ab(e){return Array.isArray(e)}function sb(e){return"function"==typeof e}function ub(e){return"string"==typeof e}function lb(e,t){if(e)return ub(e)?{type:by,name:e,predicate:t?t[e]:void 0}:sb(e)?{type:by,name:e.name,predicate:e}:e}function cb(e){try{return"subscribe"in e&&sb(e.subscribe)}catch(e){return!1}}zy||(ib=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var r=["Warning: ".concat(t)];n&&r.push(n),console.warn.apply(console,r)}});var db=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();(Cy={})[db]=function(){return this},Cy[Symbol.observable]=function(){return this};function fb(e){return!!e&&"__xstatenode"in e}var hb=function(){var e=0;return function(){return(++e).toString(16)}}();function pb(e,t){return ub(e)||"number"==typeof e?fy({type:e},t):e}function mb(e,t){if(!ub(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=pb(e);return fy({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function gb(e,t){return Jy(t).map((function(t){return void 0===t||"string"==typeof t||fb(t)?{target:t,event:e}:fy(fy({},t),{event:e})}))}function vb(e){if(void 0!==e&&e!==wy)return Xy(e)}function yb(e,t,n){if(!zy){var r=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(r));else{var o=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(r," Current error is '").concat(t,"'.").concat(o))}}}function bb(e,t,n,r,o){var i=e.options.guards,a={state:o,cond:t,_event:r};if(t.type===by)return((null==i?void 0:i[t.name])||t.predicate)(n,r.data,a);var s=null==i?void 0:i[t.type];if(!s)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(n,r.data,a)}function wb(e){return"string"==typeof e?{type:e}:e}function Sb(e,t,n){var r=function(){},o="object"==typeof e,i=o?e:null;return{next:((o?e.next:e)||r).bind(i),error:((o?e.error:t)||r).bind(i),complete:((o?e.complete:n)||r).bind(i)}}function Cb(e,t){return"".concat(e,":invocation[").concat(t,"]")}function Eb(e){return(e.type===_y||e.type===Iy&&e.to===ly.Internal)&&"number"!=typeof e.delay}var Ab=function(e){return"atomic"===e.type||"final"===e.type};function _b(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function Ib(e){return _b(e).filter((function(e){return"history"!==e.type}))}function kb(e){var t=[e];return Ab(e)?t:t.concat($y(Ib(e).map(kb)))}function xb(e,t){var n,r,o,i,a,s,u,l,c=Pb(new Set(e)),d=new Set(t);try{for(var f=py(d),h=f.next();!h.done;h=f.next())for(var p=(E=h.value).parent;p&&!d.has(p);)d.add(p),p=p.parent}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}var m=Pb(d);try{for(var g=py(d),v=g.next();!v.done;v=g.next()){if("compound"!==(E=v.value).type||m.get(E)&&m.get(E).length){if("parallel"===E.type)try{for(var y=(a=void 0,py(Ib(E))),b=y.next();!b.done;b=y.next()){var w=b.value;d.has(w)||(d.add(w),c.get(w)?c.get(w).forEach((function(e){return d.add(e)})):w.initialStateNodes.forEach((function(e){return d.add(e)})))}}catch(e){a={error:e}}finally{try{b&&!b.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}}else c.get(E)?c.get(E).forEach((function(e){return d.add(e)})):E.initialStateNodes.forEach((function(e){return d.add(e)}))}}catch(e){o={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(o)throw o.error}}try{for(var S=py(d),C=S.next();!C.done;C=S.next()){var E;for(p=(E=C.value).parent;p&&!d.has(p);)d.add(p),p=p.parent}}catch(e){u={error:e}}finally{try{C&&!C.done&&(l=S.return)&&l.call(S)}finally{if(u)throw u.error}}return d}function Tb(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(Ab(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=Tb(e,t)})),o}function Pb(e){var t,n,r=new Map;try{for(var o=py(e),i=o.next();!i.done;i=o.next()){var a=i.value;r.has(a)||r.set(a,[]),a.parent&&(r.has(a.parent)||r.set(a.parent,[]),r.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}function Ob(e,t){return Tb(e,Pb(xb([e],t)))}function Nb(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function Ub(e){return gy([],my(new Set($y(gy([],my(e.map((function(e){return e.ownEvents}))),!1)))),!1)}function Fb(e,t){return"compound"===t.type?Ib(t).some((function(t){return"final"===t.type&&Nb(e,t)})):"parallel"===t.type&&Ib(t).every((function(t){return Fb(e,t)}))}function Rb(e){return new Set($y(e.map((function(e){return e.tags}))))}var Mb={};e(Mb,"initEvent",(()=>Db)),e(Mb,"getActionFunction",(()=>jb)),e(Mb,"toActionObject",(()=>Lb)),e(Mb,"toActionObjects",(()=>Bb)),e(Mb,"toActivityDefinition",(()=>zb)),e(Mb,"raise",(()=>Vb)),e(Mb,"resolveRaise",(()=>Wb)),e(Mb,"send",(()=>Hb)),e(Mb,"resolveSend",(()=>Gb)),e(Mb,"sendParent",(()=>qb)),e(Mb,"sendTo",(()=>Kb)),e(Mb,"sendUpdate",(()=>Zb)),e(Mb,"respond",(()=>Yb)),e(Mb,"log",(()=>$b)),e(Mb,"resolveLog",(()=>Jb)),e(Mb,"cancel",(()=>Xb)),e(Mb,"start",(()=>ew)),e(Mb,"stop",(()=>tw)),e(Mb,"resolveStop",(()=>nw)),e(Mb,"assign",(()=>rw)),e(Mb,"isActionObject",(()=>ow)),e(Mb,"after",(()=>iw)),e(Mb,"done",(()=>aw)),e(Mb,"doneInvoke",(()=>sw)),e(Mb,"error",(()=>uw)),e(Mb,"pure",(()=>lw)),e(Mb,"forwardTo",(()=>cw)),e(Mb,"escalate",(()=>dw)),e(Mb,"choose",(()=>fw)),e(Mb,"resolveActions",(()=>pw)),e(Mb,"actionTypes",(()=>Sy));var Db=mb({type:Uy});function jb(e,t){return t&&t[e]||void 0}function Lb(e,t){var n;if(ub(e)||"number"==typeof e)n=sb(r=jb(e,t))?{type:e,exec:r}:r||{type:e,exec:void 0};else if(sb(e))n={type:e.name||e.toString(),exec:e};else{var r;if(sb(r=jb(e.type,t)))n=fy(fy({},e),{exec:r});else if(r){var o=r.type||e.type;n=fy(fy(fy({},r),e),{type:o})}else n=e}return n}var Bb=function(e,t){return e?(ab(e)?e:[e]).map((function(e){return Lb(e,t)})):[]};function zb(e){var t=Lb(e);return fy(fy({id:ub(e)?e:t.id},t),{type:t.type})}function Vb(e,t){return{type:_y,event:"function"==typeof e?e:pb(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}function Wb(e,t,n,r){var o,i={_event:n},a=mb(sb(e.event)?e.event(t,n.data,i):e.event);if(ub(e.delay)){var s=r&&r[e.delay];o=sb(s)?s(t,n.data,i):s}else o=sb(e.delay)?e.delay(t,n.data,i):e.delay;return fy(fy({},e),{type:_y,_event:a,delay:o})}function Hb(e,t){return{to:t?t.to:void 0,type:Iy,event:sb(e)?e:pb(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:sb(e)?e.name:Wy(e)}}function Gb(e,t,n,r){var o,i={_event:n},a=mb(sb(e.event)?e.event(t,n.data,i):e.event);if(ub(e.delay)){var s=r&&r[e.delay];o=sb(s)?s(t,n.data,i):s}else o=sb(e.delay)?e.delay(t,n.data,i):e.delay;var u=sb(e.to)?e.to(t,n.data,i):e.to;return fy(fy({},e),{to:u,_event:a,event:a.data,delay:o})}function qb(e,t){return Hb(e,fy(fy({},t),{to:ly.Parent}))}function Kb(e,t,n){return Hb(t,fy(fy({},n),{to:e}))}function Zb(){return qb(jy)}function Yb(e,t){return Hb(e,fy(fy({},t),{to:function(e,t,n){return n._event.origin}}))}var Qb=function(e,t){return{context:e,event:t}};function $b(e,t){return void 0===e&&(e=Qb),{type:Ny,label:t,expr:e}}var Jb=function(e,t,n){return fy(fy({},e),{value:ub(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})},Xb=function(e){return{type:ky,sendId:e}};function ew(e){var t=zb(e);return{type:sy.Start,activity:t,exec:void 0}}function tw(e){var t=sb(e)?e:zb(e);return{type:sy.Stop,activity:t,exec:void 0}}function nw(e,t,n){var r=sb(e.activity)?e.activity(t,n.data):e.activity,o="string"==typeof r?{id:r}:r;return{type:sy.Stop,activity:o}}var rw=function(e){return{type:Ty,assignment:e}};function ow(e){return"object"==typeof e&&"type"in e}function iw(e,t){var n=t?"#".concat(t):"";return"".concat(sy.After,"(").concat(e,")").concat(n)}function aw(e,t){var n="".concat(sy.DoneState,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function sw(e,t){var n="".concat(sy.DoneInvoke,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function uw(e,t){var n="".concat(sy.ErrorPlatform,".").concat(e),r={type:n,data:t,toString:function(){return n}};return r}function lw(e){return{type:sy.Pure,get:e}}function cw(e,t){if(!(zy||e&&"function"!=typeof e)){var n=e;e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="function"==typeof n?n.apply(void 0,gy([],my(e),!1)):n;if(!r)throw new Error("Attempted to forward event to undefined actor. This risks an infinite loop in the sender.");return r}}return Hb((function(e,t){return t}),fy(fy({},t),{to:e}))}function dw(e,t){return qb((function(t,n,r){return{type:Dy,data:sb(e)?e(t,n,r):e}}),fy(fy({},t),{to:ly.Parent}))}function fw(e){return{type:sy.Choose,conds:e}}var hw=function(e){var t,n,r=[];try{for(var o=py(e),i=o.next();!i.done;i=o.next())for(var a=i.value,s=0;s<a.actions.length;)a.actions[s].type!==Ty?s++:(r.push(a.actions[s]),a.actions.splice(s,1))}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r};function pw(e,t,n,r,o,i,a){void 0===a&&(a=!1);var s=a?[]:hw(o),u=s.length?ob(n,r,s,t):n,l=a?[n]:void 0,c=[];function d(o,s){var d;switch(s.type){case _y:var f=Wb(s,u,r,e.options.delays);return i&&"number"==typeof f.delay&&i(f,u,r),f;case Iy:var h=Gb(s,u,r,e.options.delays);if(!zy){var p=s.delay;ib(!ub(p)||"number"==typeof h.delay,"No delay reference for delay expression '".concat(p,"' was found on machine '").concat(e.id,"'"))}return i&&h.to!==ly.Internal&&("entry"===o?c.push(h):i(h,u,r)),h;case Ny:var m=Jb(s,u,r);return null==i||i(m,u,r),m;case Ly:if(!(b=null===(d=s.conds.find((function(n){var o=lb(n.cond,e.options.guards);return!o||bb(e,o,u,r,i?void 0:t)})))||void 0===d?void 0:d.actions))return[];var g=my(pw(e,t,u,r,[{type:o,actions:Bb(Xy(b),e.options.actions)}],i,a),2),v=g[0],y=g[1];return u=y,null==l||l.push(u),v;case By:var b;if(!(b=s.get(u,r.data)))return[];var w=my(pw(e,t,u,r,[{type:o,actions:Bb(Xy(b),e.options.actions)}],i,a),2),S=w[0],C=w[1];return u=C,null==l||l.push(u),S;case Ay:m=nw(s,u,r);return null==i||i(m,n,r),m;case Ty:u=ob(u,r,[s],i?void 0:t),null==l||l.push(u);break;default:var E=Lb(s,e.options.actions),A=E.exec;if(i)i(E,u,r);else if(A&&l){var _=l.length-1,I=fy(fy({},E),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];A.apply(void 0,gy([l[_]],my(t),!1))}});E=I}return E}}var f=$y(o.map((function(e){var t,n,o=[];try{for(var a=py(e.actions),s=a.next();!s.done;s=a.next()){var l=s.value,f=d(e.type,l);f&&(o=o.concat(f))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return c.forEach((function(e){i(e,u,r)})),c.length=0,o})));return[f,u]}function mw(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if(ub(e)||ub(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return mw(e[n],t[n])}))}function gw(e){return"object"==typeof e&&null!==e&&("value"in e&&"_event"in e)}function vw(e,t){var n=e.exec;return fy(fy({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}var yw=function(){function e(e){var t,n,r=this;this.actions=[],this.activities=yy,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||yy,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return Ub(r.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:Db,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=Db;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),ub(e))return[e];var r=Object.keys(e);return r.concat.apply(r,gy([],my(r.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=hy(e,["configuration","transitions","tags","machine"]);return fy(fy({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return Vy(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;zy&&ib(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}(),bw={deferEvents:!1},ww=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=fy(fy({},bw),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),Sw=[],Cw=function(e,t){Sw.push(e);var n=t(e);return Sw.pop(),n},Ew=function(e){return e(Sw[Sw.length-1])};function Aw(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[db]=function(){return this},t}function _w(e,t,n,r){var o,i=wb(e.src),a=null===(o=null==t?void 0:t.options.services)||void 0===o?void 0:o[i.type],s=e.data?eb(e.data,n,r):void 0,u=a?Iw(a,e.id,s):Aw(e.id);return u.meta=e,u}function Iw(e,t,n){var r=Aw(t);if(r.deferred=!0,fb(e)){var o=r.state=Cw(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return o}}return r}function kw(e){var t;return fy(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[db]=function(){return this},t),e)}var xw=new Map,Tw=0,Pw={bookId:function(){return"x:".concat(Tw++)},register:function(e,t){return xw.set(e,t),e},get:function(e){return xw.get(e)},free:function(e){xw.delete(e)}};function Ow(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:void(zy||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function Nw(e){if(Ow()){var t=function(){var e=Ow();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}function Uw(e,t){void 0===t&&(t={});var n=e.initialState,r=new Set,o=[],i=!1,a=kw({id:t.id,send:function(t){o.push(t),function(){if(!i){for(i=!0;o.length>0;){var t=o.shift();n=e.transition(n,t,s),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=Sb(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),s={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(s):n,a}var Fw,Rw,Mw={sync:!1,autoForward:!1};(Rw=Fw||(Fw={}))[Rw.NotStarted=0]="NotStarted",Rw[Rw.Running=1]="Running",Rw[Rw.Stopped=2]="Stopped";var Dw=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var r=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=Fw.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(ab(e))return r.batch(e),r.state;var n=mb(pb(e,t));if(r.status===Fw.Stopped)return zy||ib(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(r.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),r.state;if(r.status!==Fw.Running&&!r.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(r.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return r.scheduler.schedule((function(){r.forward(n);var e=r._nextState(n);r.update(e,n)})),r._state},this.sendTo=function(e,t,n){var o,i=r.parent&&(t===ly.Parent||r.parent.id===t),a=i?r.parent:ub(t)?t===ly.Internal?r:r.children.get(t)||Pw.get(t):(o=t)&&"function"==typeof o.send?t:void 0;if(a)if("machine"in a){if(r.status!==Fw.Stopped||r.parent!==a||r.state.done){var s=fy(fy({},e),{name:e.name===Dy?"".concat(uw(r.id)):e.name,origin:r.sessionId});!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,s]):a.send(s)}}else!n&&r.machine.config.predictableActionArguments?r._outgoingQueue.push([a,e.data]):a.send(e.data);else{if(!i)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(r.id,"'."));zy||ib(!1,"Service '".concat(r.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,o){void 0===o&&(o=r.machine.options.actions);var i=e.exec||jb(e.type,o),a=sb(i)?i:i?i.exec:e.exec;if(a)try{return a(t,n.data,r.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:r.state,_event:n})}catch(e){throw r.parent&&r.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case _y:var s=e;r.defer(s);break;case Iy:var u=e;if("number"==typeof u.delay)return void r.defer(u);u.to?r.sendTo(u._event,u.to,n===Db):r.send(u._event);break;case ky:r.cancel(e.sendId);break;case Ey:if(r.status!==Fw.Running)return;var l=e.activity;if(!r.machine.config.predictableActionArguments&&!r.state.activities[l.id||l.type])break;if(l.type===sy.Invoke){var c=wb(l.src),d=r.machine.options.services?r.machine.options.services[c.type]:void 0,f=l.id,h=l.data;zy||ib(!("forward"in l),"`forward` property is deprecated (found in invocation of '".concat(l.src,"' in in machine '").concat(r.machine.id,"'). ")+"Please use `autoForward` instead.");var p="autoForward"in l?l.autoForward:!!l.forward;if(!d)return void(zy||ib(!1,"No service found for invocation '".concat(l.src,"' in machine '").concat(r.machine.id,"'.")));var m=h?eb(h,t,n):void 0;if("string"==typeof d)return;var g=sb(d)?d(t,n.data,{data:m,src:c,meta:l.meta}):d;if(!g)return;var v=void 0;fb(g)&&(g=m?g.withContext(m):g,v={autoForward:p}),r.spawn(g,f,v)}else r.spawnActivity(l);break;case Ay:r.stopChild(e.activity.id);break;case Ny:var y=e,b=y.label,w=y.value;b?r.logger(b,w):r.logger(w);break;default:zy||ib(!1,"No implementation found for action type '".concat(e.type,"'"))}};var o=fy(fy({},e.defaultOptions),n),i=o.clock,a=o.logger,s=o.parent,u=o.id,l=void 0!==u?u:t.id;this.id=l,this.logger=a,this.clock=i,this.parent=s,this.options=o,this.scheduler=new ww({deferEvents:this.options.deferEvents}),this.sessionId=Pw.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:Cw(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return zy||ib(this.status!==Fw.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,r;try{for(var o=py(e.actions),i=o.next();!i.done;i=o.next()){var a=i.value;this.exec(a,e,t)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,r,o,i,a,s,u,l,c=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Db||!this.options.execute)for(var d=void 0;d=this._outgoingQueue.shift();)d[0].send(d[1]);else this.execute(this.state);if(this.children.forEach((function(e){c.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var f=py(this.eventListeners),h=f.next();!h.done;h=f.next()){(0,h.value)(e.event)}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}try{for(var p=py(this.listeners),m=p.next();!m.done;m=p.next()){(0,m.value)(e,e.event)}}catch(e){o={error:e}}finally{try{m&&!m.done&&(i=p.return)&&i.call(p)}finally{if(o)throw o.error}}try{for(var g=py(this.contextListeners),v=g.next();!v.done;v=g.next()){(0,v.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(e){a={error:e}}finally{try{v&&!v.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(this.state.done){var y=e.configuration.find((function(e){return"final"===e.type&&e.parent===c.machine})),b=y&&y.doneData?eb(y.doneData,e.context,t):void 0;this._doneEvent=sw(this.id,b);try{for(var w=py(this.doneListeners),S=w.next();!S.done;S=w.next()){(0,S.value)(this._doneEvent)}}catch(e){u={error:e}}finally{try{S&&!S.done&&(l=w.return)&&l.call(w)}finally{if(u)throw u.error}}this._stop(),this._stopChildren(),Pw.free(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===Fw.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=Sb(e,t,n);this.listeners.add(o.next),this.status!==Fw.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===Fw.Stopped?o.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(i),r.stopListeners.delete(i)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===Fw.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===Fw.Running)return this;this.machine._init(),Pw.register(this.sessionId,this),this.initialized=!0,this.status=Fw.Running;var n=void 0===e?this.initialState:Cw(this,(function(){return gw(e)?t.machine.resolveState(e):t.machine.resolveState(yw.from(e,t.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Db)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){sb(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,r,o,i,a,s,u,l;try{for(var c=py(this.listeners),d=c.next();!d.done;d=c.next()){var f=d.value;this.listeners.delete(f)}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}try{for(var h=py(this.stopListeners),p=h.next();!p.done;p=h.next()){(f=p.value)(),this.stopListeners.delete(f)}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}try{for(var m=py(this.contextListeners),g=m.next();!g.done;g=m.next()){f=g.value;this.contextListeners.delete(f)}}catch(e){o={error:e}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}try{for(var v=py(this.doneListeners),y=v.next();!y.done;y=v.next()){f=y.value;this.doneListeners.delete(f)}}catch(e){a={error:e}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=Fw.Stopped,this._initialState=void 0;try{for(var b=py(Object.keys(this.delayedEventsMap)),w=b.next();!w.done;w=b.next()){var S=w.value;this.clock.clearTimeout(this.delayedEventsMap[S])}}catch(e){u={error:e}}finally{try{w&&!w.done&&(l=b.return)&&l.call(b)}finally{if(u)throw u.error}}this.scheduler.clear(),this.scheduler=new ww({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t=mb({type:"xstate.stop"}),n=Cw(e,(function(){var n=$y(gy([],my(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Bb(t.onExit,e.machine.options.actions)}))),r=my(pw(e.machine,e.state,e.state.context,t,[{type:"exit",actions:n}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),o=r[0],i=r[1],a=new yw({value:e.state.value,context:i,_event:t,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:o.filter((function(e){return!Eb(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a}));e.update(n,t),e._stopChildren(),Pw.free(e.sessionId)})),this},e.prototype.batch=function(e){var t=this;if(this.status===Fw.NotStarted&&this.options.deferEvents)zy||ib(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==Fw.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var r,o,i=t.state,a=!1,s=[],u=function(e){var r=mb(e);t.forward(r),i=Cw(t,(function(){return t.machine.transition(i,r,void 0,n||void 0)})),s.push.apply(s,gy([],my(t.machine.config.predictableActionArguments?i.actions:i.actions.map((function(e){return vw(e,i)}))),!1)),a=a||!!i.changed};try{for(var l=py(e),c=l.next();!c.done;c=l.next()){u(c.value)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}i.changed=a,i.actions=s,t.update(i,mb(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=mb(e);if(0===r.name.indexOf(My)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(My)})))throw r.data.data;return Cw(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var r=py(this.forwardTo),o=r.next();!o.done;o=r.next()){var i=o.value,a=this.children.get(i);if(!a)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),sb(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==Fw.Running)return Iw(e,t);if(tb(e))return this.spawnPromise(Promise.resolve(e),t);if(sb(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(o=e)&&"id"in o)return this.spawnActor(e,t);if(cb(e))return this.spawnObservable(e,t);if(fb(e))return this.spawnMachine(e,fy(fy({},n),{id:t}));if(null!==(r=e)&&"object"==typeof r&&"transition"in r&&"function"==typeof r.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var r,o},e.prototype.spawnMachine=function(t,n){var r=this;void 0===n&&(n={});var o=new e(t,fy(fy({},this.options),{parent:this,id:n.id||t.id})),i=fy(fy({},Mw),n);i.sync&&o.onTransition((function(e){r.send(jy,{state:e,id:o.id})}));var a=o;return this.children.set(o.id,a),i.autoForward&&this.forwardTo.add(o.id),o.onDone((function(e){r.removeChild(o.id),r.send(mb(e,{origin:o.id}))})).start(),a},e.prototype.spawnBehavior=function(e,t){var n=Uw(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,o=this,i=!1;e.then((function(e){i||(r=e,o.removeChild(t),o.send(mb(sw(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=uw(t,e);try{o.send(mb(n,{origin:t}))}catch(r){yb(e,r,t),o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=Sb(t,n,r),i=!1;return e.then((function(e){i||(o.next(e),i||o.complete())}),(function(e){i||o.error(e)})),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[db]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,a=!1,s=new Set,u=new Set;try{o=e((function(e){r=e,u.forEach((function(t){return t(e)})),a||i.send(mb(e,{origin:t}))}),(function(e){s.add(e)}))}catch(e){this.send(uw(t,e))}if(tb(o))return this.spawnPromise(o,t);var l=((n={id:t,send:function(e){return s.forEach((function(t){return t(e)}))},subscribe:function(e){var t=Sb(e);return u.add(t.next),{unsubscribe:function(){u.delete(t.next)}}},stop:function(){a=!0,sb(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[db]=function(){return this},n);return this.children.set(t,l),l},e.prototype.spawnObservable=function(e,t){var n,r,o=this,i=e.subscribe((function(e){r=e,o.send(mb(e,{origin:t}))}),(function(e){o.removeChild(t),o.send(mb(uw(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send(mb(sw(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[db]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else zy||ib(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[db]=function(){return this},n))},e.prototype.attachDev=function(){var e=Ow();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(fy(fy({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:fy({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}Nw(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[db]=function(){return this},e.prototype.getSnapshot=function(){return this.status===Fw.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=Bw,e}(),jw=function(e){return ub(e)?fy(fy({},Mw),{name:e}):fy(fy(fy({},Mw),{name:hb()}),e)};function Lw(e,t){var n=jw(t);return Ew((function(t){if(!zy){var r=fb(e)||sb(e);ib(!!t||r,'Attempted to spawn an Actor (ID: "'.concat(fb(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return t?t.spawn(e,n.name,n):Iw(e,n.name)}))}function Bw(e,t){return new Dw(e,t)}$u=i("8dQZc");function zw(e){var t=$u.useRef();return t.current||(t.current={v:e()}),t.current.v}var Vw=function(){return Vw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vw.apply(this,arguments)},Ww=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Hw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function Gw(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Hw(t,2),o=r[0],i=void 0===o?{}:o,a=r[1],s=function(e,t){var n=zw((function(){return"function"==typeof e?e():e})),r=t.context,o=t.guards,i=t.actions,a=t.activities,s=t.services,u=t.delays,l=(t.state,Ww(t,["context","guards","actions","activities","services","delays","state"])),c=zw((function(){var e={context:r,guards:o,actions:i,activities:a,services:s,delays:u};return Bw(n.withConfig(e,(function(){return Vw(Vw({},n.context),r)})),l)}));return dy((function(){Object.assign(c.machine.options.actions,i),Object.assign(c.machine.options.guards,o),Object.assign(c.machine.options.activities,a),Object.assign(c.machine.options.services,s),Object.assign(c.machine.options.delays,u)}),[i,o,a,s,u]),c}(e,i);return(0,$u.useEffect)((function(){if(a){var e=s.subscribe(Sb(a));return function(){e.unsubscribe()}}}),[a]),(0,$u.useEffect)((function(){var e=i.state;return s.start(e?yw.create(e):void 0),function(){s.stop(),s.status=Fw.NotStarted}}),[]),s}function qw(e){if("string"==typeof e){var t={type:e,toString:function(){return e}};return t}return e}function Kw(e){return fy(fy({type:Fy},e),{toJSON:function(){e.onDone,e.onError;var t=hy(e,["onDone","onError"]);return fy(fy({},t),{type:Fy,src:qw(e.src)})}})}var Zw="",Yw="*",Qw={},$w=function(e){return"#"===e[0]},Jw=function(){return{actions:{},guards:{},services:{},activities:{},delays:{}}},Xw=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var i,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign(Jw(),n),this.parent=null==o?void 0:o.parent,this.key=this.config.key||(null==o?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:vy),this.id=this.config.id||gy([this.machine.key],my(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,zy||ib(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?Ky(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,fy(((r={})[o.id]=o,r),o.idMap)),o})):Qw;var s=0;!function e(t){var n,r;t.order=s++;try{for(var o=py(_b(t)),i=o.next();!i.done;i=o.next()){e(i.value)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===Zw})):Zw in this.config.on),this.strict=!!this.config.strict,this.onEntry=Xy(this.config.entry||this.config.onEntry).map((function(e){return Lb(e)})),this.onExit=Xy(this.config.exit||this.config.onExit).map((function(e){return Lb(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=Xy(this.config.invoke).map((function(e,t){var n,r;if(fb(e)){var o=Cb(a.id,t);return a.machine.options.services=fy(((n={})[o]=e,n),a.machine.options.services),Kw({src:o,id:o})}if(ub(e.src)){o=e.id||Cb(a.id,t);return Kw(fy(fy({},e),{id:o,src:e.src}))}if(fb(e.src)||sb(e.src)){o=e.id||Cb(a.id,t);return a.machine.options.services=fy(((r={})[o]=e.src,r),a.machine.options.services),Kw(fy(fy({id:o},e),{src:o}))}var i=e.src;return Kw(fy(fy({id:Cb(a.id,t)},e),{src:i}))})),this.activities=Xy(this.config.activities).concat(this.invoke).map((function(e){return zb(e)})),this.transition=this.transition.bind(this),this.tags=Xy(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||kb(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,a=r.guards,s=r.services,u=r.delays;return new e(this.config,{actions:fy(fy({},o),t.actions),activities:fy(fy({},i),t.activities),guards:fy(fy({},a),t.guards),services:fy(fy({},s),t.services),delays:fy(fy({},u),t.delays)},null!=n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return sb(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:Ky(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===Zw,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===Yw}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=iw(sb(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(Hb(r,{delay:t})),e.onExit.push(Xb(r)),r};return(ab(t)?t.map((function(e,t){var r=n(e.delay,t);return fy(fy({},e),{event:r})})):$y(Object.keys(t).map((function(e,r){var o=t[e],i=ub(o)?{target:o}:o,a=isNaN(+e)?e:+e,s=n(a,r);return Xy(i).map((function(e){return fy(fy({},e),{event:s,delay:a})}))})))).map((function(t){var n=t.delay;return fy(fy({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof yw?e.value:Gy(e,this.delimiter);if(ub(r)){var o=this.getStateNode(r).initial;return void 0!==o?this.getStateNodes(((t={})[r]=o,t)):[this,this.states[r]]}var i=Object.keys(r),a=[this];return a.push.apply(a,gy([],my($y(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=Wy(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof yw?e:yw.create(e),n=Array.from(xb([],this.getStateNodes(t.value)));return new yw(fy(fy({},t),{value:this.resolve(t.value),configuration:n,done:Fb(n,this),tags:Rb(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),o=this.getStateNode(r[0])._transition(e[r[0]],t,n);return o&&o.transitions.length?o:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,o,i={};try{for(var a=py(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,l=e[u];if(l){var c=this.getStateNode(u)._transition(l,t,n);c&&(i[u]=c)}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}var d=Object.keys(i).map((function(e){return i[e]})),f=$y(d.map((function(e){return e.transitions})));if(!d.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=$y(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:f,exitSet:$y(d.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:$y(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return ub(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,mb(t))},e.prototype.next=function(e,t){var n,r,o,i=this,a=t.name,s=[],u=[];try{for(var l=py(this.getCandidates(a)),c=l.next();!c.done;c=l.next()){var d=c.value,f=d.cond,h=d.in,p=e.context,m=!h||(ub(h)&&$w(h)?e.matches(Gy(this.getStateNodeById(h).path,this.delimiter)):Vy(Gy(h,this.delimiter),Yy(this.path.slice(0,-2))(e.value))),g=!1;try{g=!f||bb(this.machine,f,p,t,e)}catch(e){throw new Error("Unable to evaluate guard '".concat(f.name||f.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(g&&m){void 0!==d.target&&(u=d.target),s.push.apply(s,gy([],my(d.actions),!1)),o=d;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(o){if(!u.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:s};var v=$y(u.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:$y(u.map((function(e){return i.getPotentiallyReenteringNodes(e)}))),configuration:v,source:e,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,r=e;n&&n!==r;)t.push(n),n=n.parent;return n!==r?[]:(t.push(r),t)},e.prototype.getActions=function(e,t,n,r,o,i,a){var s,u,l,c,d=this,f=i?xb([],this.getStateNodes(i.value)):[],h=new Set;try{for(var p=py(Array.from(e).sort((function(e,t){return e.order-t.order}))),m=p.next();!m.done;m=p.next()){(!Nb(f,y=m.value)||Nb(n.exitSet,y)||y.parent&&h.has(y.parent))&&h.add(y)}}catch(e){s={error:e}}finally{try{m&&!m.done&&(u=p.return)&&u.call(p)}finally{if(s)throw s.error}}try{for(var g=py(f),v=g.next();!v.done;v=g.next()){var y;Nb(e,y=v.value)&&!Nb(n.exitSet,y.parent)||n.exitSet.push(y)}}catch(e){l={error:e}}finally{try{v&&!v.done&&(c=g.return)&&c.call(g)}finally{if(l)throw l.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var b=Array.from(h).sort((function(e,t){return e.order-t.order})),w=new Set(n.exitSet),S=$y(b.map((function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(aw(e.id,e.doneData),aw(i.id,e.doneData?eb(e.doneData,r,o):void 0));var a=i.parent;return"parallel"===a.type&&Ib(a).every((function(e){return Fb(n.configuration,e)}))&&t.push(aw(a.id)),t}))),C=b.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return ew(e)}));return{type:"entry",actions:Bb(a?gy(gy([],my(t),!1),my(n),!1):gy(gy([],my(n),!1),my(t),!1),d.machine.options.actions)}})).concat({type:"state_done",actions:S.map((function(e){return Vb(e)}))}),E=Array.from(w).map((function(e){return{type:"exit",actions:Bb(gy(gy([],my(e.onExit),!1),my(e.activities.map((function(e){return tw(e)}))),!1),d.machine.options.actions)}})).concat({type:"transition",actions:Bb(n.actions,this.machine.options.actions)}).concat(C);if(t){var A=Bb($y(gy([],my(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!Eb(e)}));return E.concat({type:"stop",actions:A})}return E},e.prototype.transition=function(e,t,n,r){void 0===e&&(e=this.initialState);var o,i,a=mb(t);if(e instanceof yw)o=void 0===n?e:this.resolveState(yw.from(e,n));else{var s=ub(e)?this.resolve(qy(this.getResolvedPath(e))):this.resolve(e),u=null!=n?n:this.machine.context;o=this.resolveState(yw.from(s,u))}if(!zy&&a.name===Yw)throw new Error("An event cannot have the wildcard type ('".concat(Yw,"')"));if(this.strict&&!this.events.includes(a.name)&&(i=a.name,!/^(done|error)\./.test(i)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var l=this._transition(o.value,o,a)||{transitions:[],configuration:[],exitSet:[],source:o,actions:[]},c=xb([],this.getStateNodes(o.value)),d=l.configuration.length?xb(c,l.configuration):c;return l.configuration=gy([],my(d),!1),this.resolveTransition(l,o,o.context,r,a)},e.prototype.resolveRaisedTransition=function(e,t,n,r){var o,i=e.actions;return(e=this.transition(e,t,void 0,r))._event=n,e.event=n.data,(o=e.actions).unshift.apply(o,gy([],my(i),!1)),e},e.prototype.resolveTransition=function(e,t,n,r,o){var i,a,s,u,l=this;void 0===o&&(o=Db);var c=e.configuration,d=!t||e.transitions.length>0,f=d?e.configuration:t?t.configuration:[],h=Fb(f,this),p=d?Ob(this.machine,c):void 0,m=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,g=this.getActions(new Set(f),h,e,n,o,t,r),v=t?fy({},t.activities):{};try{for(var y=py(g),b=y.next();!b.done;b=y.next()){var w=b.value;try{for(var S=(s=void 0,py(w.actions)),C=S.next();!C.done;C=S.next()){var E=C.value;E.type===Ey?v[E.activity.id||E.activity.type]=E:E.type===Ay&&(v[E.activity.id||E.activity.type]=!1)}}catch(e){s={error:e}}finally{try{C&&!C.done&&(u=S.return)&&u.call(S)}finally{if(s)throw s.error}}}}catch(e){i={error:e}}finally{try{b&&!b.done&&(a=y.return)&&a.call(y)}finally{if(i)throw i.error}}var A,_,I=my(pw(this,t,n,o,g,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),k=I[0],x=I[1],T=my(nb(k,Eb),2),P=T[0],O=T[1],N=k.filter((function(e){var t;return e.type===Ey&&(null===(t=e.activity)||void 0===t?void 0:t.type)===Fy})),U=N.reduce((function(e,t){return e[t.activity.id]=_w(t.activity,l.machine,x,o),e}),t?fy({},t.children):{}),F=new yw({value:p||t.value,context:x,_event:o,_sessionid:t?t._sessionid:null,historyValue:p?m?(A=m,_=p,{current:_,states:rb(A,_)}):void 0:t?t.historyValue:void 0,history:!p||e.source?t:void 0,actions:p?O:[],activities:p?v:t?t.activities:{},events:[],configuration:f,transitions:e.transitions,children:U,done:h,tags:Rb(f),machine:this}),R=n!==x;F.changed=o.name===jy||R;var M=F.history;M&&delete M.history;var D=!h&&(this._transient||c.some((function(e){return e._transient})));if(!(d||D&&o.name!==Zw))return F;var j=F;if(!h)for(D&&(j=this.resolveRaisedTransition(j,{type:xy},o,r));P.length;){var L=P.shift();j=this.resolveRaisedTransition(j,L._event,o,r)}var B=j.changed||(M?!!j.actions.length||R||typeof M.value!=typeof j.value||!mw(j.value,M.value):void 0);return j.changed=B,j.history=M,j},e.prototype.getStateNode=function(e){if($w(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=$w(e)?e.slice("#".length):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&$w(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=Hy(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||Qw;switch(this.type){case"parallel":return Ky(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):Qw}));case"compound":if(ub(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?Ky(e,(function(e,t){return e?n.getStateNode(t).resolve(e):Qw})):this.initialStateValue||{};default:return e||Qw}},e.prototype.getResolvedPath=function(e){if($w(e)){var t=this.machine.idMap[e.slice("#".length)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return Hy(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=Zy(this.states,(function(e){return e.initialStateValue||Qw}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=Ab(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=ub(t.target)&&$w(t.target)?qy(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return Ab(this)?[this]:"compound"!==this.type||this.initial?$y(Qy(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(zy||ib(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=my(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:Zy(this.states,(function(t,n){if(!e)return t.historyValue();var r=ub(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?$y(Qy(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o,i,a=(o=n.path,i="states",function(e){var t,n,r=e;try{for(var a=py(o),s=a.next();!s.done;s=a.next()){var u=s.value;r=r[i][u]}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r})(e).current;return ub(a)?[n.getStateNode(a)]:$y(Qy(a).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=$y(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var o=this.states,i=new Set(this.ownEvents);if(o)try{for(var a=py(Object.keys(o)),s=a.next();!s.done;s=a.next()){var u=o[s.value];if(u.states)try{for(var l=(n=void 0,py(u.events)),c=l.next();!c.done;c=l.next()){var d=c.value;i.add("".concat(d))}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!ub(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(e){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=vb(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return ub(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),a=fy(fy({},e),{actions:Bb(Xy(e.actions)),cond:lb(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return fy(fy({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var o=this.config.on,i=Yw,a=o[i],s=void 0===a?[]:a,u=hy(o,["*"]);n=$y(Object.keys(u).map((function(e){zy||e!==Zw||ib(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=gb(e,u[e]);return zy||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(ub(e.target)||fb(e.target))})),o=t===Zw?"the transient event":"event '".concat(t,"'");ib(!r,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat(gb(Yw,s)))}else n=[];var l=this.config.always?gb("",this.config.always):[],c=this.config.onDone?gb(String(aw(this.id)),this.config.onDone):[];zy||ib(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var d=$y(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,gy([],my(gb(String(sw(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,gy([],my(gb(String(uw(e.id)),e.onError)),!1)),t}))),f=this.after,h=$y(gy(gy(gy(gy([],my(c),!1),my(d),!1),my(n),!1),my(l),!1).map((function(e){return Xy(e).map((function(e){return r.formatTransition(e)}))})));try{for(var p=py(f),m=p.next();!m.done;m=p.next()){var g=m.value;h.push(g)}}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}return h},e}(),eS=!1;function tS(e,t){return zy||"predictableActionArguments"in e||eS||(eS=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new Xw(e,t)}var nS=rw,rS=Zb,oS=cw,iS=Mb.assign,aS=Mb.stop,sS=function(e){return aS(e)},uS=iS({attributeToVerify:function(e){}}),lS=iS({challengeName:function(e){}}),cS=iS({requiredAttributes:function(e){}}),dS=iS({remoteError:function(e){return""}}),fS=iS({formValues:function(e){return{}}}),hS=iS({touched:function(e){return{}}}),pS=iS({unverifiedContactMethods:function(e){}}),mS=iS({username:function(e){}}),gS=iS({validationError:function(e){return{}}}),vS=iS({totpSecretCode:function(e,t){return t.data}}),yS=iS({challengeName:function(e,t){var n;return null===(n=t.data)||void 0===n?void 0:n.challengeName}}),bS=iS({requiredAttributes:function(e,t){var n,r;return null===(r=null===(n=t.data)||void 0===n?void 0:n.challengeParam)||void 0===r?void 0:r.requiredAttributes}}),wS=iS({redirectIntent:function(e){return"confirmPasswordReset"}}),SS=iS({redirectIntent:function(e){return"confirmSignUp"}}),CS=iS({authAttributes:function(e,t){var n,r,o=e.loginMechanisms[0];return{username:null!==(n=e.formValues[o])&&void 0!==n?n:e.formValues.username,password:null===(r=e.formValues)||void 0===r?void 0:r.password}}}),ES=iS({validationError:function(e,t){return t.data}}),AS=iS({remoteError:function(e,t){var n;return"NoUserPoolError"===t.data.name?"Configuration error (see console) please contact the administrator":(null===(n=t.data)||void 0===n?void 0:n.message)||t.data}}),_S=iS({unverifiedContactMethods:function(e,t){return t.data.unverified}}),IS=iS({user:function(e,t){return t.data.user||t.data}}),kS=iS({username:function(e,t){var n=e.formValues,r=n.username,o=n.country_code;return o&&(r="".concat(o).concat(r)),r}}),xS=iS({codeDeliveryDetails:function(e,t){return t.data.codeDeliveryDetails}}),TS=iS({authAttributes:function(e,t){return{username:e.formValues.username}}}),PS=iS({formValues:function(e,t){var n,r=t.data,o=r.name,i=r.value;return Ju(Ju({},e.formValues),((n={})[o]=i,n))}}),OS=iS({formValues:function(e,t){return Vm(Ju(Ju({},e.formValues),t.data),"password")}}),NS=iS({touched:function(e,t){var n,r=t.data.name;return Ju(Ju({},e.touched),((n={})["".concat(r)]=!0,n))}}),US=function(e){return el(void 0,void 0,void 0,(function(){var t;return tl(this,(function(n){switch(n.label){case 0:return t=e.username,[4,Ku.forgotPassword(t)];case 1:return[2,n.sent()]}}))}))},FS=iS({formValues:function(e,t){var n,r,o=e.loginMechanisms[0],i=void 0===o?"username":o;if(!e.formValues.phone_number&&"phone_number"!==i)return e.formValues;var a=e.formValues,s=e.country_code,u=a.phone_number?"phone_number":"username",l="".concat(null!==(r=a.country_code)&&void 0!==r?r:s).concat(a[u]).replace(/[^A-Z0-9+]/gi,""),c=Ju(Ju({},a),((n={})[u]=l,n));return delete c.country_code,c}}),RS=function(e,t,r,o){return el(void 0,void 0,void 0,(function(){var i,a;return tl(this,(function(s){switch(s.label){case 0:return[4,Promise.all(o.map((function(n){return n(e,t,r)})))];case 1:return i=s.sent(),a=n(Hp).apply(void 0,nl([{}],i,!1)),n(Ef)(a)?[2,Promise.resolve()]:[2,Promise.reject(a)]}}))}))},MS={getAmplifyConfig:function(){return el(this,void 0,void 0,(function(){return tl(this,(function(e){return[2,S.configure()]}))}))},getCurrentUser:function(){return el(this,void 0,void 0,(function(){return tl(this,(function(e){return[2,Ku.currentAuthenticatedUser()]}))}))},handleSignUp:function(e){return el(this,void 0,void 0,(function(){return tl(this,(function(t){return[2,Ku.signUp(Ju(Ju({},e),{autoSignIn:{enabled:!0}}))]}))}))},handleSignIn:function(e){var t=e.username,n=e.password;return el(this,void 0,void 0,(function(){return tl(this,(function(e){return[2,Ku.signIn(t,n)]}))}))},handleConfirmSignIn:function(e){var t=e.user,n=e.code,r=e.mfaType;return el(this,void 0,void 0,(function(){return tl(this,(function(e){return[2,Ku.confirmSignIn(t,n,r)]}))}))},handleConfirmSignUp:function(e){var t=e.username,n=e.code;return el(this,void 0,void 0,(function(){return tl(this,(function(e){switch(e.label){case 0:return[4,Ku.confirmSignUp(t,n)];case 1:return[2,e.sent()]}}))}))},handleForgotPasswordSubmit:function(e){var t=e.username,n=e.code,r=e.password;return el(this,void 0,void 0,(function(){return tl(this,(function(e){return[2,Ku.forgotPasswordSubmit(t,n,r)]}))}))},handleForgotPassword:function(e){return el(this,void 0,void 0,(function(){return tl(this,(function(t){return[2,Ku.forgotPassword(e)]}))}))},validateCustomSignUp:function(e,t){return el(this,void 0,void 0,(function(){return tl(this,(function(e){return[2]}))}))},validateFormPassword:function(e,t,n){return el(this,void 0,void 0,(function(){var r,o,i,a;return tl(this,(function(s){return r=e.password,t.password&&n?(o=[],i=+(null==n?void 0:n.passwordPolicyMinLength),r.length<i&&o.push("Password must have at least ".concat(i," characters")),null==(a=null==n?void 0:n.passwordPolicyCharacters)||a.forEach((function(e){switch(e){case"REQUIRES_LOWERCASE":/[a-z]/.test(r)||o.push("Password must have lower case letters");break;case"REQUIRES_UPPERCASE":/[A-Z]/.test(r)||o.push("Password must have upper case letters");break;case"REQUIRES_NUMBERS":/[0-9]/.test(r)||o.push("Password must have numbers");break;case"REQUIRES_SYMBOLS":Bm(r)||o.push("Password must have special characters")}})),[2,0!==o.length?{password:o}:null]):[2,null]}))}))},validateConfirmPassword:function(e,t){return el(this,void 0,void 0,(function(){var n,r,o,i;return tl(this,(function(a){return n=e.password,r=e.confirm_password,o=t.confirm_password,i=t.password,n||r?(n||r)&&n!==r&&(o&&i||(null==n?void 0:n.length)>=6&&(null==r?void 0:r.length)>=6)?[2,{confirm_password:"Your passwords must match"}]:[2]:[2,null]}))}))},validatePreferredUsername:function(e,t){return el(this,void 0,void 0,(function(){return tl(this,(function(e){return[2]}))}))}},DS=["SMS_MFA","SOFTWARE_TOKEN_MFA"],jS=function(e){return n(rh)(e,"data.challengeName")},LS=function(e,t){return e===t},BS=function(e){return DS.includes(e)};var zS=tS({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:["pending"],invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:function(){return Ku.signOut()}}});var VS=Mb.choose;function WS(){return tS({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:MS,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,states:{idle:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"authenticated"},onError:{target:"setup"}}},setup:{initial:"waitConfig",states:{waitConfig:{on:{INIT:{actions:["configure","setHasSetup"],target:"applyConfig"}}},applyConfig:{invoke:{src:"getAmplifyConfig",onDone:{actions:"applyAmplifyConfig",target:"goToInitialState"}}},goToInitialState:{always:[{target:"#authenticator.signUp",cond:"isInitialStateSignUp"},{target:"#authenticator.resetPassword",cond:"isInitialStateResetPassword"},{target:"#authenticator.signIn"}]}}},signIn:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignInActor"}},on:{SIGN_UP:"signUp",RESET_PASSWORD:"resetPassword","done.invoke.signInActor":[{target:"signUp",actions:"setActorDoneData",cond:"shouldRedirectToSignUp"},{target:"resetPassword",actions:"setActorDoneData",cond:"shouldRedirectToResetPassword"},{target:"authenticated",actions:"setActorDoneData"}]}},signUp:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopSignUpActor"},autoSignIn:{invoke:{src:"getCurrentUser",onDone:"#authenticator.authenticated",onError:"#authenticator.setup.goToInitialState"}}},on:{SIGN_IN:"signIn","done.invoke.signUpActor":{target:"#authenticator.signIn",actions:"setActorDoneData",cond:"shouldAutoSignIn"}}},resetPassword:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnResetPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:"stopResetPasswordActor"}},on:{SIGN_IN:"signIn","done.invoke.resetPasswordActor":{target:"signIn",actions:"setActorDoneData"}}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:["stopSignOutActor","clearUser"]}},on:{"done.invoke.signOutActor":[{target:"setup",cond:"shouldSetup"},{target:"setup.goToInitialState"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}}},on:{CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},AUTO_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{forwardToActor:VS([{cond:"hasActor",actions:oS((function(e){return e.actorRef}))}]),setUser:nS({user:function(e,t){return t.data}}),setActorDoneData:nS({actorDoneData:function(e,t){var n,r;return{authAttributes:Ju({},null===(n=t.data)||void 0===n?void 0:n.authAttributes),intent:null===(r=t.data)||void 0===r?void 0:r.intent}},user:function(e,t){var n;return null===(n=t.data)||void 0===n?void 0:n.user}}),clearUser:nS({user:void 0}),clearActorDoneData:nS({actorDoneData:void 0}),applyAmplifyConfig:nS({config:function(e,t){var n,r,o,i,a,s,u,l,c,d=null!==(r=null===(n=t.data.aws_cognito_username_attributes)||void 0===n?void 0:n.map((function(e){return e.toLowerCase()})))&&void 0!==r?r:[],f=null!==(i=null===(o=t.data.aws_cognito_verification_mechanisms)||void 0===o?void 0:o.map((function(e){return e.toLowerCase()})))&&void 0!==i?i:[],h=null!==(s=null===(a=t.data.aws_cognito_signup_attributes)||void 0===a?void 0:a.map((function(e){return e.toLowerCase()})))&&void 0!==s?s:[],p=null!==(l=null===(u=t.data.aws_cognito_social_providers)||void 0===u?void 0:u.map((function(e){return e.toLowerCase()})))&&void 0!==l?l:[],m=t.data.aws_cognito_password_protection_settings||{};0===d.length&&d.push("username");var g=e.config,v=g.loginMechanisms,y=g.signUpAttributes,b=g.socialProviders,w=g.initialState;return{loginMechanisms:null!=v?v:d,formFields:null!==(c=HS(g.formFields))&&void 0!==c?c:{},passwordSettings:m,signUpAttributes:null!=y?y:Array.from(new Set(nl(nl([],f,!0),h,!0))),socialProviders:null!=b?b:p.sort(),initialState:w}}}),spawnSignInActor:nS({actorRef:function(e,t){var r,o,i,a,s,u,l,c,d,f=e.services,h=(c={services:f},d=c.services,tS({initial:"init",id:"signInActor",predictableActionArguments:!0,states:{init:{always:[{target:"autoSignIn.submit",cond:"shouldAutoSubmit"},{target:"autoSignIn",cond:"shouldAutoSignIn"},{target:"signIn"}]},signIn:{initial:"edit",exit:["clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onError:{actions:"setRemoteError"}}},submit:{tags:["pending"],entry:["parsePhoneNumber","clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"verifying"}],onError:[{cond:"shouldRedirectToConfirmSignUp",actions:["setCredentials","setConfirmSignUpIntent"],target:"rejected"},{cond:"shouldRedirectToConfirmResetPassword",actions:["setUsernameAuthAttributes","setConfirmResetPasswordIntent"],target:"rejected"},{actions:"setRemoteError",target:"edit"}]}},verifying:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"checkVerifiedContact",onDone:[{cond:"shouldRequestVerification",target:"#signInActor.verifyUser",actions:"setUnverifiedContactMethods"},{target:"resolved"}],onError:{actions:"setRemoteError",target:"edit"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},autoSignIn:{initial:"pending",states:{pending:{tags:["pending"],entry:["clearError","sendUpdate"],on:{AUTO_SIGN_IN:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"#signInActor.resolved"}],AUTO_SIGN_IN_FAILURE:{actions:"setRemoteError",target:"pending"}}},submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"signIn",onDone:[{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldForceChangePassword",actions:["setUser","setChallengeName","setRequiredAttributes"],target:"#signInActor.forceNewPassword"},{actions:"setUser",target:"#signInActor.resolved"}],onError:{actions:"setRemoteError",target:"#signInActor.signIn"}}},resolved:{always:"#signInActor.resolved"},rejected:{always:"#signInActor.rejected"}}},confirmSignIn:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",onDone:{target:"#signInActor.resolved",actions:["setUser","clearChallengeName","clearRequiredAttributes"]},onError:{target:"edit",actions:"setRemoteError"}}}}},forceNewPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"idle",entry:"clearError",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"forceNewPassword",onDone:[{cond:"shouldConfirmSignIn",actions:["setUser","setChallengeName"],target:"#signInActor.confirmSignIn"},{cond:"shouldSetupTOTP",actions:["setUser","setChallengeName"],target:"#signInActor.setupTOTP"},{target:"resolved",actions:["setUser","setCredentials"]}],onError:{target:"idle",actions:"setRemoteError"}}},resolved:{type:"final",always:"#signInActor.resolved"}}}}},setupTOTP:{initial:"getTotpSecretCode",exit:["clearFormValues","clearError","clearTouched"],states:{getTotpSecretCode:{invoke:{src:"getTotpSecretCode",onDone:{target:"edit",actions:"setTotpSecretCode"},onError:{target:"edit",actions:"setRemoteError"}}},edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"verifyTotpToken",onDone:{actions:["clearChallengeName","clearRequiredAttributes"],target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},verifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"verifyUser",onDone:{target:"#signInActor.confirmVerifyUser"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUser:{initial:"edit",exit:["clearFormValues","clearError","clearUnverifiedContactMethods","clearAttributeToVerify","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#signInActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:["pending"],entry:"clearError",invoke:{src:"confirmVerifyUser",onDone:{target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:function(e){return{user:e.user}}},rejected:{type:"final",data:function(e,t){return{intent:e.redirectIntent,authAttributes:e.authAttributes}}}}},{actions:{clearAttributeToVerify:uS,clearChallengeName:lS,clearRequiredAttributes:cS,clearError:dS,clearFormValues:fS,clearTouched:hS,clearUnverifiedContactMethods:pS,clearValidationError:gS,handleInput:PS,handleSubmit:OS,handleBlur:NS,parsePhoneNumber:FS,setChallengeName:yS,setConfirmResetPasswordIntent:wS,setConfirmSignUpIntent:SS,setRequiredAttributes:bS,setCredentials:CS,setFieldErrors:ES,setRemoteError:AS,setTotpSecretCode:vS,setUnverifiedContactMethods:_S,setUser:IS,setUsernameAuthAttributes:TS,sendUpdate:rS()},guards:{shouldAutoSignIn:function(e){return"autoSignIn"===(null==e?void 0:e.intent)},shouldAutoSubmit:function(e){return"autoSignInSubmit"===(null==e?void 0:e.intent)},shouldConfirmSignIn:function(e,t){return BS(jS(t))},shouldForceChangePassword:function(e,t){return LS(jS(t),"NEW_PASSWORD_REQUIRED")},shouldRedirectToConfirmResetPassword:function(e,t){return"PasswordResetRequiredException"===t.data.code},shouldRedirectToConfirmSignUp:function(e,t){return"UserNotConfirmedException"===t.data.code},shouldRequestVerification:function(e,t){var r=t.data,o=r.unverified,i=r.verified;return n(Ef)(i)&&!n(Ef)(o)},shouldSetupTOTP:function(e,t){return LS(jS(t),"MFA_SETUP")}},services:{signIn:function(e){return el(this,void 0,void 0,(function(){var t,n,r,o,i,a,s;return tl(this,(function(u){switch(u.label){case 0:return t=e.authAttributes,n=void 0===t?{}:t,r=e.formValues,o=void 0===r?{}:r,i=Ju(Ju({},n),o),a=i.username,s=i.password,[4,d.handleSignIn({username:a,password:s})];case 1:return[2,u.sent()]}}))}))},confirmSignIn:function(e){return el(this,void 0,void 0,(function(){var t,n,r,o;return tl(this,(function(i){switch(i.label){case 0:return t=e.challengeName,n=e.user,r=e.formValues.confirmation_code,o=BS(t)?t:void 0,[4,d.handleConfirmSignIn({user:n,code:r,mfaType:o})];case 1:return i.sent(),[4,Ku.currentAuthenticatedUser()];case 2:return[2,i.sent()]}}))}))},forceNewPassword:function(e){return el(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,u,l;return tl(this,(function(c){switch(c.label){case 0:t=e.user,n=e.formValues,r=n.password,n.confirm_password,o=n.phone_number,i=n.country_code,a=Xu(n,["password","confirm_password","phone_number","country_code"]),o&&(s="".concat(i).concat(o).replace(/[^A-Z0-9+]/gi,""),a=Ju(Ju({},a),{phone_number:s})),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Ku.completeNewPassword(t,r,a)];case 2:return(u=c.sent()).challengeName?[2,u]:[2,Ku.currentAuthenticatedUser()];case 3:return l=c.sent(),[2,Promise.reject(l)];case 4:return[2]}}))}))},getTotpSecretCode:function(e){return el(this,void 0,void 0,(function(){var t;return tl(this,(function(n){return t=e.user,[2,Ku.setupTOTP(t)]}))}))},verifyTotpToken:function(e){return el(this,void 0,void 0,(function(){var t,n,r;return tl(this,(function(o){return t=e.formValues,n=e.user,r=t.confirmation_code,[2,Ku.verifyTotpToken(n,r)]}))}))},federatedSignIn:function(e,t){return el(this,void 0,void 0,(function(){var e;return tl(this,(function(n){switch(n.label){case 0:return e=t.data.provider,[4,Ku.federatedSignIn({provider:e})];case 1:return[2,n.sent()]}}))}))},checkVerifiedContact:function(e){return el(this,void 0,void 0,(function(){var t;return tl(this,(function(n){switch(n.label){case 0:return t=e.user,[4,Ku.verifiedContact(t)];case 1:return[2,n.sent()]}}))}))},verifyUser:function(e){return el(this,void 0,void 0,(function(){var t,n;return tl(this,(function(r){switch(r.label){case 0:return t=e.formValues.unverifiedAttr,[4,Ku.verifyCurrentUserAttribute(t)];case 1:return n=r.sent(),e.attributeToVerify=t,[2,n]}}))}))},confirmVerifyUser:function(e){return el(this,void 0,void 0,(function(){var t,n;return tl(this,(function(r){switch(r.label){case 0:return t=e.attributeToVerify,n=e.formValues.confirmation_code,[4,Ku.verifyCurrentUserAttributeSubmit(t,n)];case 1:return[2,r.sent()]}}))}))},validateFields:function(e){return el(this,void 0,void 0,(function(){return tl(this,(function(t){return[2,RS(e.formValues,e.touched,e.passwordSettings,[MS.validateFormPassword,MS.validateConfirmPassword])]}))}))}}})).withContext({authAttributes:null!==(o=null===(r=e.actorDoneData)||void 0===r?void 0:r.authAttributes)&&void 0!==o?o:{},user:e.user,intent:null===(i=e.actorDoneData)||void 0===i?void 0:i.intent,country_code:"+1",formValues:{},touched:{},validationError:{},passwordSettings:null===(a=e.config)||void 0===a?void 0:a.passwordSettings,loginMechanisms:null===(s=e.config)||void 0===s?void 0:s.loginMechanisms,socialProviders:null===(u=e.config)||void 0===u?void 0:u.socialProviders,formFields:null===(l=e.config)||void 0===l?void 0:l.formFields});return Lw(h,{name:"signInActor"})}}),spawnSignUpActor:nS({actorRef:function(e,t){var r,o,i,a,s,u,l,c,d,f=e.services,h=(c={services:f},d=c.services,tS({id:"signUpActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{target:"confirmSignUp",cond:"shouldInitConfirmSignUp"},{target:"signUp"}]},signUp:{type:"parallel",exit:["clearError","clearFormValues","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},FEDERATED_SIGN_IN:"federatedSignIn"}},federatedSignIn:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"federatedSignIn",onDone:"#signUpActor.resolved",onError:{actions:"setRemoteError"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},pending:{tags:["pending"],entry:["parsePhoneNumber","sendUpdate","clearError"],invoke:{src:"signUp",onDone:[{cond:"shouldSkipConfirm",target:"skipConfirm",actions:["setUser","setCredentials"]},{target:"resolved",actions:["setUser","setCredentials","setCodeDeliveryDetails"]}],onError:{target:"idle",actions:"setRemoteError"}}},skipConfirm:{always:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"}},resolved:{type:"final",always:"#signUpActor.confirmSignUp"}}}}},confirmSignUp:{initial:"edit",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"resend"}},resend:{tags:["pending"],entry:"sendUpdate",invoke:{src:"resendConfirmationCode",onDone:{target:"edit"},onError:[{target:"#signUpActor.resolved",actions:"setAutoSignInIntent",cond:"isUserAlreadyConfirmed"},{target:"edit",actions:"setRemoteError"}]}},submit:{tags:["pending"],entry:["sendUpdate","clearError"],invoke:{src:"confirmSignUp",onDone:{target:"#signUpActor.resolved",actions:"setAutoSignInIntent"},onError:{target:"edit",actions:"setRemoteError"}}}}},resolved:{type:"final",data:function(e,t){var r=e.authAttributes,o=r.username,i=r.password;return{user:n(rh)(t,"data.user")||e.user,authAttributes:{username:o,password:i},intent:e.intent}}}}},{guards:{isUserAlreadyConfirmed:function(e,t){return"User is already confirmed."===t.data.message},shouldInitConfirmSignUp:function(e){return e.intent&&"confirmSignUp"===e.intent},shouldSkipConfirm:function(e,t){return t.data.userConfirmed}},actions:{clearError:dS,clearFormValues:fS,clearTouched:hS,clearValidationError:gS,handleInput:PS,handleSubmit:OS,handleBlur:NS,parsePhoneNumber:FS,setCredentials:CS,setFieldErrors:ES,setRemoteError:AS,setCodeDeliveryDetails:xS,setUser:IS,sendUpdate:rS(),setAutoSignInIntent:nS({intent:function(e){return"confirmSignUp"===(null==e?void 0:e.intent)?"autoSignInSubmit":"autoSignIn"}})},services:{confirmSignUp:function(e,t){return el(this,void 0,void 0,(function(){var t,r,o,i,a;return tl(this,(function(s){switch(s.label){case 0:return t=e.user,r=e.authAttributes,o=e.formValues,i=o.confirmation_code,a=n(rh)(t,"username")||n(rh)(r,"username"),[4,d.handleConfirmSignUp({username:a,code:i})];case 1:return[2,s.sent()]}}))}))},resendConfirmationCode:function(e,t){return el(this,void 0,void 0,(function(){var t,r,o;return tl(this,(function(i){return t=e.user,r=e.authAttributes,o=n(rh)(t,"username")||n(rh)(r,"username"),[2,Ku.resendSignUp(o)]}))}))},federatedSignIn:function(e,t){return el(this,void 0,void 0,(function(){var e;return tl(this,(function(n){switch(n.label){case 0:return e=t.data.provider,[4,Ku.federatedSignIn({provider:e})];case 1:return[2,n.sent()]}}))}))},signUp:function(e,t){return el(this,void 0,void 0,(function(){var t,r,o,i,a,s,u;return tl(this,(function(l){switch(l.label){case 0:return t=e.formValues,r=e.loginMechanisms,o=r[0],a=(i=t)[void 0===o?"username":o],s=i.password,u=n(Ah)(t,(function(e,t){switch(t){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return t.startsWith("custom:")}})),[4,d.handleSignUp({username:a,password:s,attributes:u})];case 1:return[2,l.sent()]}}))}))},validateSignUp:function(e,t){return el(this,void 0,void 0,(function(){return tl(this,(function(t){return[2,RS(e.formValues,e.touched,e.passwordSettings,[d.validateFormPassword,d.validateConfirmPassword,d.validatePreferredUsername,d.validateCustomSignUp])]}))}))}}})).withContext({authAttributes:null!==(o=null===(r=e.actorDoneData)||void 0===r?void 0:r.authAttributes)&&void 0!==o?o:{},country_code:"+1",intent:null===(i=e.actorDoneData)||void 0===i?void 0:i.intent,formValues:{},touched:{},validationError:{},loginMechanisms:null===(a=e.config)||void 0===a?void 0:a.loginMechanisms,socialProviders:null===(s=e.config)||void 0===s?void 0:s.socialProviders,formFields:null===(u=e.config)||void 0===u?void 0:u.formFields,passwordSettings:null===(l=e.config)||void 0===l?void 0:l.passwordSettings});return Lw(h,{name:"signUpActor"})}}),spawnResetPasswordActor:nS({actorRef:function(e,t){var n,r,o,i,a,s,u,l=e.services,c=(s={services:l},u=s.services,tS({id:"resetPasswordActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{target:"confirmResetPassword",cond:"shouldAutoConfirmReset",actions:"resendCode"},{target:"resetPassword"}]},resetPassword:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:["pending"],entry:["sendUpdate","setUsername","clearError"],invoke:{src:"resetPassword",onDone:{target:"#resetPasswordActor.confirmResetPassword"},onError:{actions:["setRemoteError"],target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearUsername","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"resetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:["pending"],entry:["clearError","sendUpdate"],invoke:{src:"confirmResetPassword",onDone:{actions:"clearUsername",target:"#resetPasswordActor.resolved"},onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final"}}},{actions:{clearError:dS,clearFormValues:fS,clearTouched:hS,clearUsername:mS,clearValidationError:gS,handleInput:PS,handleSubmit:OS,handleBlur:NS,resendCode:US,setFieldErrors:ES,setRemoteError:AS,setUsername:kS,sendUpdate:rS()},guards:{shouldAutoConfirmReset:function(e,t){return!(!e.intent||"confirmPasswordReset"!==e.intent)}},services:{resetPassword:function(e){return el(this,void 0,void 0,(function(){var t;return tl(this,(function(n){return t=e.username,[2,u.handleForgotPassword(t)]}))}))},confirmResetPassword:function(e){return el(this,void 0,void 0,(function(){var t,n,r,o;return tl(this,(function(i){return t=e.username,n=e.formValues,r=n.confirmation_code,o=n.password,[2,u.handleForgotPasswordSubmit({username:t,code:r,password:o})]}))}))},validateFields:function(e,t){return el(this,void 0,void 0,(function(){return tl(this,(function(t){return[2,RS(e.formValues,e.touched,e.passwordSettings,[MS.validateFormPassword,MS.validateConfirmPassword])]}))}))}}})).withContext({formValues:{},touched:{},intent:null===(n=e.actorDoneData)||void 0===n?void 0:n.intent,username:null===(o=null===(r=e.actorDoneData)||void 0===r?void 0:r.authAttributes)||void 0===o?void 0:o.username,formFields:null===(i=e.config)||void 0===i?void 0:i.formFields,validationError:{},passwordSettings:null===(a=e.config)||void 0===a?void 0:a.passwordSettings});return Lw(c,{name:"resetPasswordActor"})}}),spawnSignOutActor:nS({actorRef:function(e){return Lw(zS.withContext({user:e.user}),{name:"signOutActor"})}}),stopSignInActor:sS("signInActor"),stopSignUpActor:sS("signUpActor"),stopResetPasswordActor:sS("resetPasswordActor"),stopSignOutActor:sS("signOutActor"),configure:nS((function(e,t){var n=t.data,r=n.services,o=Xu(n,["services"]);return{services:Ju(Ju({},MS),r),config:o}})),setHasSetup:nS({hasSetup:!0})},guards:{isInitialStateSignUp:function(e){return"signUp"===e.config.initialState},isInitialStateResetPassword:function(e){return"resetPassword"===e.config.initialState},shouldRedirectToSignUp:function(e,t){var n;return"confirmSignUp"===(null===(n=t.data)||void 0===n?void 0:n.intent)},shouldRedirectToResetPassword:function(e,t){var n;return"confirmPasswordReset"===(null===(n=t.data)||void 0===n?void 0:n.intent)},shouldAutoSignIn:function(e,t){var n,r;return"autoSignIn"===(null===(n=t.data)||void 0===n?void 0:n.intent)||"autoSignInSubmit"===(null===(r=t.data)||void 0===r?void 0:r.intent)},shouldSetup:function(e){return!1===e.hasSetup},hasActor:function(e){return!!e.actorRef}},services:{getCurrentUser:function(e,t){return e.services.getCurrentUser()},getAmplifyConfig:function(e,t){return e.services.getAmplifyConfig()}}})}function HS(e){return e&&Object.keys(e).forEach((function(t){Object.keys(e[t]).forEach((function(n){var r=e[t][n];r.required=r.isRequired}))})),e}const GS=n($u=i("8dQZc")).createContext(null);function qS({children:e}){const t=(0,$u.useContext)(GS),r=(0,ay.useInterpret)(WS),o=(0,$u.useMemo)((()=>t||{service:r}),[t,r]),{service:i}=o;return(0,$u.useEffect)((()=>Lm(i)),[i]),n($u).createElement(GS.Provider,{value:o},e)}function KS(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function ZS(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}$u=i("8dQZc"),$u=i("8dQZc");var YS={};YS=i("j6ios");$u=i("8dQZc"),i("4x9RK");function QS(e){return"state"in e}var $S={};e($S,"getServiceSnapshot",(()=>JS),(e=>JS=e));function JS(e){return 0!==e.status?e.state:e.machine.initialState}var XS=function(e,t){return e===t},eC=function(e,t){if("state"in(r=e)&&"machine"in r){if(0===e.status&&t.current)return t.current;var n=(0,$S.getServiceSnapshot)(e);return t.current=0===e.status?n:null,n}var r;return QS(e)?e.state:void 0};function tC(e,t,n,r){void 0===n&&(n=XS);var o=(0,$u.useRef)(null),i=(0,$u.useCallback)((function(t){return e.subscribe(t).unsubscribe}),[e]),a=(0,$u.useCallback)((function(){return r?r(e):eC(e,o)}),[e,r]);return(0,YS.useSyncExternalStoreWithSelector)(i,a,a,t,n)}var nC=function(e){var t=e.send,n=e.state,r=function(e){var t=function(t){return function(n){return e({type:t,data:n})}};return{initializeMachine:t("INIT"),resendCode:t("RESEND"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toResetPassword:t("RESET_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}}(t),o=function(e){var t,n,r,o,i,a=null!==(t=Rm(e))&&void 0!==t?t:{},s=a.codeDeliveryDetails,u=a.remoteError,l=a.unverifiedContactMethods,c=a.validationError,d=a.totpSecretCode,f=void 0===d?null:d,h=(null!==(r=null===(n=e.context)||void 0===n?void 0:n.config)&&void 0!==r?r:{}).socialProviders,p=null!==(o=null==a?void 0:a.user)&&void 0!==o?o:null===(i=e.context)||void 0===i?void 0:i.user,m=c&&Object.keys(c).length>0,g=Fm(e),v=e.hasTag("pending")||(null==g?void 0:g.hasTag("pending")),y=function(){switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case null==g?void 0:g.matches("confirmSignUp"):return"confirmSignUp";case null==g?void 0:g.matches("confirmSignIn"):return"confirmSignIn";case null==g?void 0:g.matches("setupTOTP.edit"):case null==g?void 0:g.matches("setupTOTP.submit"):return"setupTOTP";case null==g?void 0:g.matches("signIn"):return"signIn";case null==g?void 0:g.matches("signUp"):return"signUp";case null==g?void 0:g.matches("forceNewPassword"):return"forceNewPassword";case null==g?void 0:g.matches("resetPassword"):return"resetPassword";case null==g?void 0:g.matches("confirmResetPassword"):return"confirmResetPassword";case null==g?void 0:g.matches("verifyUser"):return"verifyUser";case null==g?void 0:g.matches("confirmVerifyUser"):return"confirmVerifyUser";case null==g?void 0:g.matches("setupTOTP.getTotpSecretCode"):case e.matches("signIn.runActor"):return"transition";default:return console.debug("Cannot infer `route` from Authenticator state:",e.value),null}}(),b=function(e){switch(e){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}}(y);return{authStatus:b,codeDeliveryDetails:s,error:u,hasValidationErrors:m,isPending:v,route:y,socialProviders:h,totpSecretCode:f,unverifiedContactMethods:l,user:p,validationErrors:c}}(n);return Ju(Ju({},r),o)};const rC="`useAuthenticator` must be used inside an `Authenticator.Provider`.";var oC=["username","email","phone_number"],iC=nl(nl(nl([],oC,!0),["birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website"],!0),["confirmation_code","password","confirm_password"],!1),aC=function(e){return iC.includes(e)},sC=function(e){var t,n=null===(t=null==e?void 0:e.context.config)||void 0===t?void 0:t.loginMechanisms;return(null!=n?n:["username"])[0]},uC=function(e){return iC.includes(e)},lC=function(e){var t;return e?(t=e,Array.isArray(t)?e:[e]):null},cC=function(e,t){var n=Rm(e).country_code,r=Nm[t];return"tel"===r.type&&(r=Ju(Ju({},r),{dialCode:n})),r},dC=function(e){var t=sC(e);return Ju(Ju({},cC(e,t)),{autocomplete:"username"})},fC=function(e){return{confirmation_code:Ju(Ju({},cC(e,"confirmation_code")),{label:"Code *",placeholder:"Code"})}},hC={signIn:function(e){return{username:Ju({},dC(e)),password:Ju(Ju({},cC(e,"password")),{autocomplete:"current-password"})}},signUp:function(e){for(var t=e.context.config,n=t.loginMechanisms,r=t.signUpAttributes,o=sC(e),i={},a=0,s=Array.from(new Set(nl(nl(nl([],n,!0),["password","confirm_password"],!1),r,!0)));a<s.length;a++){var u=s[a];if(uC(u)){var l=u===o?dC(e):cC(e,u);i[u]=Ju({},l)}else console.debug("Authenticator does not have a default implementation for ".concat(u,". Customize SignUp FormFields to add your own."))}return i},confirmSignUp:function(e){return{confirmation_code:Ju(Ju({},cC(e,"confirmation_code")),{placeholder:"Enter your code"})}},confirmSignIn:fC,forceNewPassword:function(e){for(var t=Fm(e).context.requiredAttributes,n={},r=0,o=Array.from(new Set(nl(["password","confirm_password"],t,!0)));r<o.length;r++){var i=o[r];uC(i)?n[i]=Ju({},cC(e,i)):console.debug("Authenticator does not have a default implementation for ".concat(i,". Customize ForceNewPassword FormFields to add your own."))}return n},resetPassword:function(e){var t=sC(e),n=Nm[t].label;return{username:Ju(Ju({},dC(e)),{label:"Enter your ".concat(n.toLowerCase()),placeholder:"Enter your ".concat(n.toLowerCase())})}},confirmResetPassword:function(e){return Ju(Ju({},fC(e)),{password:Ju(Ju({},cC(e,"password")),{label:"New Password",placeholder:"New Password"}),confirm_password:Ju(Ju({},cC(e,"confirm_password")),{label:"Confirm Password",placeholder:"Confirm Password"})})},confirmVerifyUser:fC,setupTOTP:fC},pC=function(e){for(var t=Ju({},e),n=0,r=Object.entries(e);n<r.length;n++){var o=r[n],i=o[0],a=o[1],s=a.label,u=a.placeholder;t[i]=Ju(Ju({},a),{label:s?Xm(s):void 0,placeholder:u?Xm(u):void 0})}return t},mC=function(e){return Object.entries(e).sort((function(e,t){return(e[1].order||Number.MAX_VALUE)-(t[1].order||Number.MAX_VALUE)})).filter((function(e){return void 0!==e[1]}))},gC=function(e,t){var n,r,o=null===(r=null===(n=Rm(t))||void 0===n?void 0:n.formFields)||void 0===r?void 0:r[e];return o&&0!==Object.keys(o).length?Object.entries(o).reduce((function(n,r){var o,i,a,s=r[0],u=r[1];if("signIn"!==e&&"resetPassword"!==e||"username"!==s)return aC(s)?(c=Ju(Ju({},l=Nm[s]),u),Ju(Ju({},n),((i={})[s]=c,i))):Ju(Ju({},n),((a={})[s]=u,a));var l=dC(t),c=Ju(Ju({},l),u);return Ju(Ju({},n),((o={})[s]=c,o))}),{}):{}},vC=function(e,t){var n=function(e,t){return(0,hC[e])(t)}(e,t),r=gC(e,t),o=Ju(Ju({},n),r);return delete o.QR,pC(o)},yC=function(e,t){var n=vC(e,t);return function(e){return e.map((function(e){return[e[0],Ju(Ju({},e[1]),{order:void 0})]}))}(mC(n))};function bC(e){return Array.isArray(e)&&n(Ef)(e)}function wC(...e){return e.every(bC)}function SC(e){return ig(e)&&n(Ef)(e)}function CC(...e){return e.every(SC)}const EC=["confirmResetPassword","confirmSignIn","confirmSignUp","confirmVerifyUser","forceNewPassword","resetPassword","setupTOTP","signIn","signUp","verifyUser"],AC=e=>EC.some((t=>t===e));const _C=()=>!1;function IC(e,t){return e.length===t.length&&e.every(((e,n)=>{const r=t[n];return!(!wC(e,r)&&!CC(e,r))||e===r}))}const kC=e=>(t,n)=>IC(e(t),e(n)),xC=e=>{var t,n,r;return Object.assign({},null===(r=null===(n=null===(t=Rm(e))||void 0===t?void 0:t.formFields)||void 0===n?void 0:n.setupTOTP)||void 0===r?void 0:r.QR)},TC=e=>function(){return ZS(this,void 0,void 0,(function*(){return yield Ku.setupTOTP(e)}))},PC=(e,t,n)=>AC(e)?"verifyUser"===e?(e=>e&&Object.entries(e).map((([e,t])=>ag(t)&&e?{name:e,label:t,type:"radio",value:t}:{})))(n):yC(e,t).flatMap((([e,t])=>Object.assign({name:e},t))):[];function OC(e){const t=n($u).useContext(GS);if(!t)throw new Error(rC);const{service:r}=t,{send:o}=r,i=tC(r,(0,$u.useCallback)((e=>Object.assign({},nC({send:o,state:e}))),[o]),e?kC(e):_C),{route:a,totpSecretCode:s,unverifiedContactMethods:u,user:l}=i,c=KS(i,["route","totpSecretCode","unverifiedContactMethods","user"]),d=r.getSnapshot(),f="setupTOTP"===a?xC(d):null,h=PC(a,d,u);return Object.assign(Object.assign({},c),{route:a,totpSecretCode:s,unverifiedContactMethods:u,user:l,fields:h,getTotpSecretCode:TC(l),QRFields:f})}$u=i("8dQZc");const NC=({route:e})=>[e];function UC(e){const{route:t,initializeMachine:r}=OC(NC),o=n($u).useRef(!1);n($u).useEffect((()=>{o.current||"setup"!==t||(r(e),o.current=!0)}),[r,t,e])}const FC=($u=i("8dQZc")).createContext(null),RC=()=>{const e=$u.useContext(FC);if(!e)throw new Error("`useCustomComponents` cannot be used outside of a `CustomComponentsContext.Provider`");return e};$u=i("8dQZc"),$u=i("8dQZc");var MC={amazon:"Amazon",apple:"Apple",facebook:"Facebook",google:"Google"},DC={getBackToSignInText:function(){return Xm(Jm.BACK_SIGN_IN)},getChangePasswordText:function(){return Xm(Jm.CHANGE_PASSWORD)},getChangingText:function(){return Xm(Jm.CHANGING_PASSWORD)},getConfirmText:function(){return Xm(Jm.CONFIRM)},getConfirmingText:function(){return Xm(Jm.CONFIRMING)},getCopyText:function(){return Xm(Jm.UPPERCASE_COPY)},getHidePasswordText:function(){return Xm(Jm.HIDE_PASSWORD)},getLoadingText:function(){return Xm(Jm.LOADING)},getOrText:function(){return Xm(Jm.OR)},getResendCodeText:function(){return Xm(Jm.RESEND_CODE)},getSendCodeText:function(){return Xm(Jm.SEND_CODE)},getSendingText:function(){return Xm(Jm.SENDING)},getShowPasswordText:function(){return Xm(Jm.SHOW_PASSWORD)},getSubmitText:function(){return Xm(Jm.SUBMIT)},getSubmittingText:function(){return Xm(Jm.SUBMITTING)},getSignInTabText:function(){return Xm(Jm.SIGN_IN_TAB)},getSignUpTabText:function(){return Xm(Jm.CREATE_ACCOUNT)},getForgotPasswordText:function(e){return Xm(e?Jm.FORGOT_PASSWORD:Jm.FORGOT_YOUR_PASSWORD)},getSigningInText:function(){return Xm(Jm.SIGNING_IN_BUTTON)},getSignInText:function(){return Xm(Jm.SIGN_IN_BUTTON)},getCreatingAccountText:function(){return Xm(Jm.CREATING_ACCOUNT)},getCreateAccountText:function(){return Xm(Jm.CREATE_ACCOUNT)},getDeliveryMessageText:function(e){var t=null!=e?e:{},n=t.DeliveryMedium,r=t.Destination,o="EMAIL"===n,i="SMS"===n,a=Xm(Jm.CODE_ARRIVAL);if(!o&&!i)return"".concat(Xm(Jm.CODE_SENT),". ").concat(a,".");var s=Xm(o?Jm.CODE_EMAILED:Jm.CODE_TEXTED);return"".concat(s," ").concat(r,". ").concat(a,".")},getDeliveryMethodText:function(e){var t=(null!=e?e:{}).DeliveryMedium,n="EMAIL"===t;return Xm(n||"SMS"!==t?n?Jm.WE_EMAILED:Jm.WE_TEXTED:Jm.WE_SENT_CODE)},getChallengeText:function(e){switch(e){case"SMS_MFA":return Xm(Jm.CONFIRM_SMS);case"SOFTWARE_TOKEN_MFA":return Xm(Jm.CONFIRM_TOTP);default:throw new Error("".concat(Xm("Unexpected challengeName encountered in ConfirmSignIn:")," ").concat(e))}},getResetYourPasswordText:function(){return Xm(Jm.RESET_PASSWORD)},getSetupTOTPText:function(){return Xm(Jm.SETUP_TOTP)},getSetupTOTPInstructionsText:function(){return Xm("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below.")},getCopiedText:function(){return Xm("COPIED")},getSignInWithFederationText:function(e,t){return Xm("Sign ".concat("signIn"===e?"In":"Up"," with ").concat(MC[t]))},getSkipText:function(){return Xm(Jm.SKIP)},getVerifyText:function(){return Xm(Jm.VERIFY)},getVerifyContactText:function(){return Xm(Jm.VERIFY_CONTACT)},getAccountRecoveryInfoText:function(){return Xm(Jm.VERIFY_HEADING)}};$u=i("8dQZc");const jC={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},LC=$u.forwardRef(((e,t)=>{var{className:r,children:o,isTruncated:i,level:a=6}=e,s=Yu(e,["className","children","isTruncated","level"]);return $u.createElement(gv,Object.assign({as:jC[a],className:n(tg)(kg.Heading,Fg(kg.Heading,a),Rg(kg.Heading,"truncated",i),r),ref:t},s),o)}));LC.displayName="Heading";$u=i("8dQZc");const BC=e=>{const t=new FormData(e.target);return Object.fromEntries(t)};function zC(){const{submitForm:e,updateBlur:t,updateForm:n}=OC((e=>[e.submitForm,e.updateBlur,e.updateForm]));return{handleBlur:(0,$u.useCallback)((({target:{name:e}})=>{t({name:e})}),[t]),handleChange:(0,$u.useCallback)((({target:{checked:e,name:t,type:r,value:o}})=>{n({name:t,value:"checkbox"!==r||e?o:void 0})}),[n]),handleSubmit:(0,$u.useCallback)((t=>{t.preventDefault(),e(BC(t))}),[e])}}$u=i("8dQZc");const VC=()=>{const{error:e}=OC((e=>[e.error]));return n($u).createElement(n($u).Fragment,null,e?n($u).createElement(Yv,{variation:"error",isDismissible:!0},Xm(e)):null)};$u=i("8dQZc"),$u=i("8dQZc"),$u=i("8dQZc"),$u=i("8dQZc"),$u=i("8dQZc"),$u=i("8dQZc"),$u=i("8dQZc");const WC=e=>{const{className:t}=e,r=Yu(e,["className"]);return $u.createElement(gv,Object.assign({as:"span",width:"1em",height:"1em",className:n(tg)(kg.Icon,t)},r),$u.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$u.createElement("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})))},HC=$u.forwardRef(((e,t)=>{var{autoComplete:r,className:o,size:i,variation:a,value:s,defaultValue:u,hasError:l,icon:c=$u.createElement(WC,null),iconColor:d,children:f,placeholder:h,isDisabled:p,isRequired:m}=e,g=Yu(e,["autoComplete","className","size","variation","value","defaultValue","hasError","icon","iconColor","children","placeholder","isDisabled","isRequired"]);const v=void 0===s&&void 0===u&&h,y=n(tg)(kg.Select,kg.FieldGroupControl,Fg(kg.Select,i),Fg(kg.Select,a),Rg(kg.Select,"error",l),o);return $u.createElement(gv,{className:kg.SelectWrapper},$u.createElement(gv,Object.assign({"aria-invalid":l,as:"select",autoComplete:r,value:s,defaultValue:v?"":u,isDisabled:p,required:m,"data-size":i,"data-variation":a,className:y,ref:t},g),h&&$u.createElement("option",{value:""},h),f),$u.createElement(vv,{className:kg.SelectIconWrapper,color:d},c))}));HC.displayName="Select";const GC=$u.forwardRef(((e,t)=>{const{children:r,className:o,descriptiveText:i,errorMessage:a,hasError:s=!1,id:u,label:l,labelHidden:c=!1,options:d,size:f,testId:h,inputStyles:p}=e,m=Yu(e,["children","className","descriptiveText","errorMessage","hasError","id","label","labelHidden","options","size","testId","inputStyles"]),g=Lv(u),v=Lv(),y=i?v:void 0,{styleProps:b,rest:w}=Rv(m);return $u.createElement(vv,Object.assign({className:n(tg)(kg.Field,Fg(kg.Field,f),kg.SelectField,o),"data-size":f,testId:h},b),$u.createElement(Fv,{htmlFor:g,visuallyHidden:c},l),$u.createElement(Pv,{id:v,labelHidden:c,descriptiveText:i}),$u.createElement(HC,Object.assign({"aria-describedby":y,hasError:s,id:g,ref:t,size:f},w,p),(({children:e,options:t})=>e?((null==t?void 0:t.length)&&console.warn("Amplify UI: <SelectField> component defaults to rendering children over `options`. When using the `options` prop, omit children."),e):null==t?void 0:t.map(((e,t)=>$u.createElement("option",{label:e,value:e,key:`${e}-${t}`},e))))({children:r,options:d})),$u.createElement(Ov,{hasError:s,errorMessage:a}))}));GC.displayName="SelectField";const qC=$u.forwardRef(((e,t)=>{var{className:r,dialCodeList:o,isReadOnly:i}=e,a=Yu(e,["className","dialCodeList","isReadOnly"]);const s=null!=o?o:Om,u=$u.useMemo((()=>s.map((e=>$u.createElement("option",{key:e,value:e,disabled:i},e)))),[s,i]);return $u.createElement(GC,Object.assign({"aria-disabled":i,autoComplete:"tel-country-code",className:n(tg)(kg.CountryCodeSelect,kg.DialCodeSelect,r),labelHidden:!0,ref:t},a),u)}));qC.displayName="CountryCodeSelect";const KC=$u.forwardRef(((e,t)=>{var{autoComplete:r="tel-national",className:o,countryCodeName:i,countryCodeLabel:a=xg.PhoneNumberField.countryCodeLabel,countryCodeRef:s,defaultCountryCode:u,defaultDialCode:l,dialCodeLabel:c=xg.PhoneNumberField.countryCodeLabel,dialCodeList:d,dialCodeName:f,dialCodeRef:h,hasError:p,isDisabled:m,isReadOnly:g,onCountryCodeChange:v,onDialCodeChange:y,onInput:b,size:w,variation:S}=e,C=Yu(e,["autoComplete","className","countryCodeName","countryCodeLabel","countryCodeRef","defaultCountryCode","defaultDialCode","dialCodeLabel","dialCodeList","dialCodeName","dialCodeRef","hasError","isDisabled","isReadOnly","onCountryCodeChange","onDialCodeChange","onInput","size","variation"]);const E=f||i,A=c||a,_=l||u,I=y||v,k=h||s;return $u.createElement(Bv,Object.assign({outerStartComponent:$u.createElement(qC,{defaultValue:_,dialCodeList:d,className:o,hasError:p,isDisabled:m,isReadOnly:g,label:A,name:E,onChange:I,ref:k,size:w,variation:S}),autoComplete:r,className:n(tg)(kg.PhoneNumberField,o),hasError:p,isDisabled:m,isReadOnly:g,onInput:b,ref:t,size:w,type:"tel",variation:S},C))}));function ZC(e){var{autocomplete:t,dialCode:n,name:r,type:o}=e,i=Yu(e,["autocomplete","dialCode","name","type"]);const{validationErrors:a}=OC((({validationErrors:e})=>[e])),s=$u.useMemo((()=>lC(a[r])),[r,a]),u=(null==s?void 0:s.length)>0,l=Lv(),c=u?l:void 0;return"tel"===o?$u.createElement($u.Fragment,null,$u.createElement(KC,Object.assign({},i,{name:r,defaultDialCode:n,dialCodeName:"country_code",autoComplete:t,hasError:u,"aria-describedby":c})),$u.createElement(Vv,{dataAttr:"data-amplify-sign-up-errors",errors:s,id:l})):"password"===o?$u.createElement($u.Fragment,null,$u.createElement(zv,Object.assign({},i,{name:r,autoComplete:t,hasError:u,"aria-describedby":c})),$u.createElement(Vv,{dataAttr:"data-amplify-sign-up-errors",errors:s,id:l})):$u.createElement($u.Fragment,null,$u.createElement(Bv,Object.assign({},i,{name:r,autoComplete:t,hasError:u,type:o,"aria-describedby":c})),$u.createElement(Vv,{dataAttr:"data-amplify-sign-up-errors",errors:s,id:l}))}function YC(){const{fields:e}=OC((({route:e})=>[e])),t=$u.useRef(e.map(((e,t)=>$u.createElement(ZC,Object.assign({key:t},e))))).current;return $u.createElement($u.Fragment,null,t)}KC.displayName="PhoneNumberField";$u=i("8dQZc");const QC=e=>"signIn"===e||"signUp";function $C({children:e,className:t,variation:r="default"}){const{route:o}=OC((({route:e})=>[e])),{components:{Header:i,Footer:a}}=RC();return n($u).createElement(gv,{className:t,"data-amplify-authenticator":"","data-variation":r},n($u).createElement(gv,{"data-amplify-container":""},n($u).createElement(i,null),n($u).createElement(gv,{"data-amplify-router":"","data-amplify-router-content":QC(o)?void 0:""},e),n($u).createElement(a,null)))}const{getDeliveryMessageText:JC,getDeliveryMethodText:XC,getConfirmingText:eE,getConfirmText:tE,getResendCodeText:nE}=DC;function rE({className:e,variation:t}){const{isPending:r,resendCode:o,codeDeliveryDetails:i}=OC((e=>[e.isPending,e.resendCode,e.codeDeliveryDetails])),{handleChange:a,handleSubmit:s}=zC(),{components:{ConfirmSignUp:{Header:u=rE.Header,Footer:l=rE.Footer}}}=RC();return n($u).createElement($C,{className:e,variation:t},n($u).createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignup":"",method:"post",onChange:a,onSubmit:s},n($u).createElement(vv,{as:"fieldset",direction:"column",isDisabled:r},n($u).createElement(u,null),n($u).createElement(vv,{direction:"column"},n($u).createElement(Tv,{className:"amplify-authenticator__subtitle"},JC(i)),n($u).createElement(YC,null),n($u).createElement(VC,null),n($u).createElement(Sv,{variation:"primary",isDisabled:r,type:"submit",loadingText:eE(),isLoading:r,fontWeight:"normal"},tE()),n($u).createElement(Sv,{onClick:o,type:"button",fontWeight:"normal"},nE())),n($u).createElement(l,null))))}rE.Header=()=>{const{codeDeliveryDetails:e}=OC((e=>[e.codeDeliveryDetails]));return n($u).createElement(LC,{level:4},XC(e))},rE.Footer=function(){return null};$u=i("8dQZc");const{getChangePasswordText:oE,getChangingText:iE,getBackToSignInText:aE}=DC,sE=({className:e,variation:t})=>{const{isPending:r,toSignIn:o}=OC((e=>[e.isPending,e.toSignIn])),{handleBlur:i,handleChange:a,handleSubmit:s}=zC(),{components:{ForceNewPassword:{FormFields:u=sE.FormFields}}}=RC();return n($u).createElement($C,{className:e,variation:t},n($u).createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forcenewpassword":"",method:"post",onChange:a,onSubmit:s,onBlur:i},n($u).createElement(vv,{as:"fieldset",direction:"column",isDisabled:r},n($u).createElement(LC,{level:3},oE()),n($u).createElement(u,null),n($u).createElement(VC,null),n($u).createElement(Sv,{isDisabled:r,type:"submit",variation:"primary",isLoading:r,loadingText:iE(),fontWeight:"normal"},oE()),n($u).createElement(Sv,{onClick:o,type:"button",fontWeight:"normal",variation:"link",size:"small"},aE()))))};sE.FormFields=function(){return n($u).createElement(YC,null)};var uE,lE,cE,dE,fE={};e(fE,"create",(()=>uE),(e=>uE=e)),e(fE,"toCanvas",(()=>lE),(e=>lE=e)),e(fE,"toDataURL",(()=>cE),(e=>cE=e)),e(fE,"toString",(()=>dE),(e=>dE=e));var hE,pE,mE,gE,vE,yE,bE,wE={};let SE;wE=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then};const CE=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];var EE,AE,_E,IE,kE,xE;pE=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},mE=function(e){return CE[e]},gE=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},vE=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');SE=e},yE=function(){return void 0!==SE},bE=function(e){return SE(e)},EE={bit:1},AE={bit:0},_E={bit:3},IE={bit:2},kE=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},xE=function(e,t){if(kE(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return EE;case"m":case"medium":return AE;case"q":case"quartile":return _E;case"h":case"high":return IE;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return t}};var TE={};function PE(){this.buffer=[],this.length=0}PE.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},TE=PE;var OE,NE,UE={};function FE(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}FE.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},FE.prototype.get=function(e,t){return this.data[e*this.size+t]},FE.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},FE.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},UE=FE;var RE,ME=pE;OE=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=ME(e),r=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7];for(let e=1;e<t-1;e++)o[e]=o[e-1]-r;return o.push(6),o.reverse()},NE=function(e){const t=[],n=OE(e),r=n.length;for(let e=0;e<r;e++)for(let o=0;o<r;o++)0===e&&0===o||0===e&&o===r-1||e===r-1&&0===o||t.push([n[e],n[o]]);return t};var DE=pE;var jE,LE,BE,zE,VE,WE,HE,GE,qE;RE=function(e){const t=DE(e);return[[0,0],[t-7,0],[0,t-7]]},jE={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const KE=3,ZE=3,YE=40,QE=10;function $E(e,t,n){switch(e){case jE.PATTERN000:return(t+n)%2==0;case jE.PATTERN001:return t%2==0;case jE.PATTERN010:return n%3==0;case jE.PATTERN011:return(t+n)%3==0;case jE.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case jE.PATTERN101:return t*n%2+t*n%3==0;case jE.PATTERN110:return(t*n%2+t*n%3)%2==0;case jE.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}var JE,XE;LE=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},BE=function(e){return LE(e)?parseInt(e,10):void 0},zE=function(e){const t=e.size;let n=0,r=0,o=0,i=null,a=null;for(let s=0;s<t;s++){r=o=0,i=a=null;for(let u=0;u<t;u++){let t=e.get(s,u);t===i?r++:(r>=5&&(n+=KE+(r-5)),i=t,r=1),t=e.get(u,s),t===a?o++:(o>=5&&(n+=KE+(o-5)),a=t,o=1)}r>=5&&(n+=KE+(r-5)),o>=5&&(n+=KE+(o-5))}return n},VE=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return n*ZE},WE=function(e){const t=e.size;let n=0,r=0,o=0;for(let i=0;i<t;i++){r=o=0;for(let a=0;a<t;a++)r=r<<1&2047|e.get(i,a),a>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(a,i),a>=10&&(1488===o||93===o)&&n++}return n*YE},HE=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*QE},GE=function(e,t){const n=t.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)t.isReserved(o,r)||t.xor(o,r,$E(e,o,r))},qE=function(e,t){const n=Object.keys(jE).length;let r=0,o=1/0;for(let i=0;i<n;i++){t(i),GE(i,e);const n=zE(e)+VE(e)+WE(e)+HE(e);GE(i,e),n<o&&(o=n,r=i)}return r};const eA=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],tA=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];JE=function(e,t){switch(t){case EE:return eA[4*(e-1)+0];case AE:return eA[4*(e-1)+1];case _E:return eA[4*(e-1)+2];case IE:return eA[4*(e-1)+3];default:return}},XE=function(e,t){switch(t){case EE:return tA[4*(e-1)+0];case AE:return tA[4*(e-1)+1];case _E:return tA[4*(e-1)+2];case IE:return tA[4*(e-1)+3];default:return}};var nA,rA,oA,iA,aA,sA={};const uA=new Uint8Array(512),lA=new Uint8Array(256);function cA(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}var dA,fA,hA,pA,mA,gA,vA,yA,bA,wA,SA,CA,EA,AA,_A,IA,kA,xA,TA,PA,OA,NA,UA;!function(){let e=1;for(let t=0;t<255;t++)uA[t]=e,lA[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)uA[e]=uA[e-255]}(),iA=function(e){return uA[e]},aA=function(e,t){return 0===e||0===t?0:uA[lA[e]+lA[t]]},nA=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let o=0;o<t.length;o++)n[r+o]^=aA(e[r],t[o]);return n},rA=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let r=0;r<t.length;r++)n[r]^=aA(t[r],e);let r=0;for(;r<n.length&&0===n[r];)r++;n=n.slice(r)}return n},oA=function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=nA(t,new Uint8Array([1,iA(n)]));return t},cA.prototype.initialize=function(e){this.degree=e,this.genPoly=oA(this.degree)},cA.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=rA(t,this.genPoly),r=this.degree-n.length;if(r>0){const e=new Uint8Array(this.degree);return e.set(n,r),e}return n},sA=cA,_A=function(e){return!isNaN(e)&&e>=1&&e<=40};const FA="[0-9]+";let RA="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";RA=RA.replace(/u/g,"\\u");const MA="(?:(?![A-Z0-9 $%*+\\-./:]|"+RA+")(?:.|[\r\n]))+";IA=new RegExp(RA,"g"),kA=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),xA=new RegExp(MA,"g"),TA=new RegExp(FA,"g"),PA=new RegExp("[A-Z $%*+\\-./:]+","g");const DA=new RegExp("^"+RA+"$"),jA=new RegExp("^"+FA+"$"),LA=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");OA=function(e){return DA.test(e)},NA=function(e){return jA.test(e)},UA=function(e){return LA.test(e)},mA={id:"Numeric",bit:1,ccBits:[10,12,14]},gA={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},vA={id:"Byte",bit:4,ccBits:[8,16,16]},yA={id:"Kanji",bit:8,ccBits:[8,10,12]},bA={bit:-1},wA=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!_A(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},SA=function(e){return NA(e)?mA:UA(e)?gA:OA(e)?yA:vA},CA=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},EA=function(e){return e&&e.bit&&e.ccBits},AA=function(e,t){if(EA(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return mA;case"alphanumeric":return gA;case"kanji":return yA;case"byte":return vA;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return t}};const BA=gE(7973);function zA(e,t){return wA(e,t)+4}function VA(e,t){let n=0;return e.forEach((function(e){const r=zA(e.mode,t);n+=r+e.getBitsLength()})),n}var WA;dA=function(e,t){return _A(e)?parseInt(e,10):t},fA=function(e,t,n){if(!_A(e))throw new Error("Invalid QR Code version");void 0===n&&(n=vA);const r=8*(mE(e)-XE(e,t));if(n===bA)return r;const o=r-zA(n,e);switch(n){case mA:return Math.floor(o/10*3);case gA:return Math.floor(o/11*2);case yA:return Math.floor(o/13);default:return Math.floor(o/8)}},hA=function(e,t){let n;const r=xE(t,AE);if(Array.isArray(e)){if(e.length>1)return function(e,t){for(let n=1;n<=40;n++)if(VA(e,n)<=fA(n,t,bA))return n}(e,r);if(0===e.length)return 1;n=e[0]}else n=e;return function(e,t,n){for(let r=1;r<=40;r++)if(t<=fA(r,n,e))return r}(n.mode,n.getLength(),r)},pA=function(e){if(!_A(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;gE(t)-BA>=0;)t^=7973<<gE(t)-BA;return e<<12|t};const HA=gE(1335);var GA,qA,KA;WA=function(e,t){const n=e.bit<<3|t;let r=n<<10;for(;gE(r)-HA>=0;)r^=1335<<gE(r)-HA;return 21522^(n<<10|r)};var ZA={};function YA(e){this.mode=mA,this.data=e.toString()}YA.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},YA.prototype.getLength=function(){return this.data.length},YA.prototype.getBitsLength=function(){return YA.getBitsLength(this.data.length)},YA.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},ZA=YA;var QA={};const $A=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function JA(e){this.mode=gA,this.data=e}JA.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},JA.prototype.getLength=function(){return this.data.length},JA.prototype.getBitsLength=function(){return JA.getBitsLength(this.data.length)},JA.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*$A.indexOf(this.data[t]);n+=$A.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put($A.indexOf(this.data[t]),6)},QA=JA;var XA={},e_={};function t_(e){this.mode=vA,this.data=new Uint8Array(e_(e))}e_=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);if(o>=55296&&o<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(o=1024*(o-55296)+i-56320+65536,r+=1)}o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(63&o|128)):o<55296||o>=57344&&o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(63&o|128)):o>=65536&&o<=1114111?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(63&o|128)):t.push(239,191,189)}return new Uint8Array(t).buffer},t_.getBitsLength=function(e){return 8*e},t_.prototype.getLength=function(){return this.data.length},t_.prototype.getBitsLength=function(){return t_.getBitsLength(this.data.length)},t_.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},XA=t_;var n_={};function r_(e){this.mode=yA,this.data=e}r_.getBitsLength=function(e){return 13*e},r_.prototype.getLength=function(){return this.data.length},r_.prototype.getBitsLength=function(){return r_.getBitsLength(this.data.length)},r_.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=bE(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},n_=r_;var o_,i_,a_,s_,u_,l_,c_,d_={},f_={single_source_shortest_paths:function(e,t,n){var r={},o={};o[t]=0;var i,a,s,u,l,c,d,f=f_.PriorityQueue.make();for(f.push(t,0);!f.empty();)for(s in a=(i=f.pop()).value,u=i.cost,l=e[a]||{})l.hasOwnProperty(s)&&(c=u+l[s],d=o[s],(void 0===o[s]||d>c)&&(o[s]=c,f.push(s,c),r[s]=a));if(void 0!==n&&void 0===o[n]){var h=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(h)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var r=f_.single_source_shortest_paths(e,t,n);return f_.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(e){var t,n=f_.PriorityQueue,r={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(r[t]=n[t]);return r.queue=[],r.sorter=e.sorter||n.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};function h_(e){return unescape(encodeURIComponent(e)).length}function p_(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function m_(e){const t=p_(TA,mA,e),n=p_(PA,gA,e);let r,o;yE()?(r=p_(xA,vA,e),o=p_(IA,yA,e)):(r=p_(kA,vA,e),o=[]);return t.concat(n,r,o).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function g_(e,t){switch(t){case mA:return ZA.getBitsLength(e);case gA:return QA.getBitsLength(e);case yA:return n_.getBitsLength(e);case vA:return XA.getBitsLength(e)}}function v_(e,t){let n;const r=SA(e);if(n=AA(t,r),n!==vA&&n.bit<r.bit)throw new Error('"'+e+'" cannot be encoded with mode '+CA(n)+".\n Suggested mode is: "+CA(r));switch(n!==yA||yE()||(n=vA),n){case mA:return new ZA(e);case gA:return new QA(e);case yA:return new n_(e);case vA:return new XA(e)}}function y_(e,t,n){const r=e.size,o=WA(t,n);let i,a;for(i=0;i<15;i++)a=1==(o>>i&1),i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(r-15+i,8,a,!0),i<8?e.set(8,r-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(r-8,8,1,!0)}function b_(e,t,n){const r=new TE;n.forEach((function(t){r.put(t.mode.bit,4),r.put(t.getLength(),wA(t.mode,e)),t.write(r)}));const o=8*(mE(e)-XE(e,t));for(r.getLengthInBits()+4<=o&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const i=(o-r.getLengthInBits())/8;for(let e=0;e<i;e++)r.put(e%2?17:236,8);return function(e,t,n){const r=mE(t),o=XE(t,n),i=r-o,a=JE(t,n),s=r%a,u=a-s,l=Math.floor(r/a),c=Math.floor(i/a),d=c+1,f=l-c,h=new sA(f);let p=0;const m=new Array(a),g=new Array(a);let v=0;const y=new Uint8Array(e.buffer);for(let e=0;e<a;e++){const t=e<u?c:d;m[e]=y.slice(p,p+t),g[e]=h.encode(m[e]),p+=t,v=Math.max(v,t)}const b=new Uint8Array(r);let w,S,C=0;for(w=0;w<v;w++)for(S=0;S<a;S++)w<m[S].length&&(b[C++]=m[S][w]);for(w=0;w<f;w++)for(S=0;S<a;S++)b[C++]=g[S][w];return b}(r,e,t)}function w_(e,t,n,r){let o;if(Array.isArray(e))o=GA(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=KA(e);r=hA(t,n)}o=qA(e,r||40)}}const i=hA(o,n);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<i)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+i+".\n")}else t=i;const a=b_(t,n,o),s=pE(t),u=new UE(s);return function(e,t){const n=e.size,r=RE(t);for(let t=0;t<r.length;t++){const o=r[t][0],i=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let r=-1;r<=7;r++)i+r<=-1||n<=i+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,i+r,!0,!0):e.set(o+t,i+r,!1,!0))}}(u,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(u),function(e,t){const n=NE(t);for(let t=0;t<n.length;t++){const r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(u,t),y_(u,n,0),t>=7&&function(e,t){const n=e.size,r=pA(t);let o,i,a;for(let t=0;t<18;t++)o=Math.floor(t/3),i=t%3+n-8-3,a=1==(r>>t&1),e.set(o,i,a,!0),e.set(i,o,a,!0)}(u,t),function(e,t){const n=e.size;let r=-1,o=n-1,i=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let r=!1;a<t.length&&(r=1==(t[a]>>>i&1)),e.set(o,s-n,r),i--,-1===i&&(a++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(u,a),isNaN(r)&&(r=qE(u,y_.bind(null,u,n))),GE(r,u),y_(u,n,r),{modules:u,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}function S_(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}function C_(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function E_(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}function A_(e,t,n,r,o){const i=[].slice.call(arguments,1),a=i.length,s="function"==typeof i[a-1];if(!s&&!wE())throw new Error("Callback required as last argument");if(!s){if(a<1)throw new Error("Too few arguments provided");return 1===a?(n=t,t=r=void 0):2!==a||t.getContext||(r=n,n=t,t=void 0),new Promise((function(o,i){try{const i=hE(n,r);o(e(i,t,r))}catch(e){i(e)}}))}if(a<2)throw new Error("Too few arguments provided");2===a?(o=n,n=t,t=r=void 0):3===a&&(t.getContext&&void 0===o?(o=r,r=void 0):(o=r,r=n,n=t,t=void 0));try{const i=hE(n,r);o(null,e(i,t,r))}catch(e){o(e)}}d_=f_,GA=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(v_(t,null)):t.data&&e.push(v_(t.data,t.mode)),e}),[])},qA=function(e,t){const n=function(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];switch(r.mode){case mA:t.push([r,{data:r.data,mode:gA,length:r.length},{data:r.data,mode:vA,length:r.length}]);break;case gA:t.push([r,{data:r.data,mode:vA,length:r.length}]);break;case yA:t.push([r,{data:r.data,mode:vA,length:h_(r.data)}]);break;case vA:t.push([{data:r.data,mode:vA,length:h_(r.data)}])}}return t}(m_(e,yE())),r=function(e,t){const n={},r={start:{}};let o=["start"];for(let i=0;i<e.length;i++){const a=e[i],s=[];for(let e=0;e<a.length;e++){const u=a[e],l=""+i+e;s.push(l),n[l]={node:u,lastCount:0},r[l]={};for(let e=0;e<o.length;e++){const i=o[e];n[i]&&n[i].node.mode===u.mode?(r[i][l]=g_(n[i].lastCount+u.length,u.mode)-g_(n[i].lastCount,u.mode),n[i].lastCount+=u.length):(n[i]&&(n[i].lastCount=u.length),r[i][l]=g_(u.length,u.mode)+4+wA(u.mode,t))}}o=s}for(let e=0;e<o.length;e++)r[o[e]].end=0;return{map:r,table:n}}(n,t),o=d_.find_path(r.map,"start","end"),i=[];for(let e=1;e<o.length-1;e++)i.push(r.table[o[e]].node);return GA(function(e){return e.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(i))},KA=function(e){return GA(m_(e,yE()))},a_=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:n,scale:n?4:r,margin:t,color:{dark:S_(e.color.dark||"#000000ff"),light:S_(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},s_=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},u_=function(e,t){const n=s_(e,t);return Math.floor((e+2*t.margin)*n)},l_=function(e,t,n){const r=t.modules.size,o=t.modules.data,i=s_(r,n),a=Math.floor((r+2*n.margin)*i),s=n.margin*i,u=[n.color.light,n.color.dark];for(let t=0;t<a;t++)for(let l=0;l<a;l++){let c=4*(t*a+l),d=n.color.light;if(t>=s&&l>=s&&t<a-s&&l<a-s){d=u[o[Math.floor((t-s)/i)*r+Math.floor((l-s)/i)]?1:0]}e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}},o_=function(e,t,n){let r=n,o=t;void 0!==r||t&&t.getContext||(r=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),r=a_(r);const i=u_(e.modules.size,r),a=o.getContext("2d"),s=a.createImageData(i,i);return l_(s.data,e,r),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(a,o,i),a.putImageData(s,0,0),o},i_=function(e,t,n){let r=n;void 0!==r||t&&t.getContext||(r=t,t=void 0),r||(r={});const o=o_(e,t,r),i=r.type||"image/png",a=r.rendererOpts||{};return o.toDataURL(i,a.quality)},c_=function(e,t,n){const r=a_(t),o=e.modules.size,i=e.modules.data,a=o+2*r.margin,s=r.color.light.a?"<path "+C_(r.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",u="<path "+C_(r.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,i=!1,a=0;for(let s=0;s<e.length;s++){const u=Math.floor(s%t),l=Math.floor(s/t);u||i||(i=!0),e[s]?(a++,s>0&&u>0&&e[s-1]||(r+=i?E_("M",u+n,.5+l+n):E_("m",o,0),o=0,i=!1),u+1<t&&e[s+1]||(r+=E_("h",a),a=0)):o++}return r}(i,o,r.margin)+'"/>',l='viewBox="0 0 '+a+" "+a+'"',c='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+l+' shape-rendering="crispEdges">'+s+u+"</svg>\n";return"function"==typeof n&&n(null,c),c},uE=hE=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,r,o=AE;return void 0!==t&&(o=xE(t.errorCorrectionLevel,AE),n=dA(t.version),r=BE(t.maskPattern),t.toSJISFunc&&vE(t.toSJISFunc)),w_(e,n,o,r)},lE=A_.bind(null,o_),cE=A_.bind(null,i_),dE=A_.bind(null,(function(e,t,n){return c_(e,n)}));$u=i("8dQZc"),$u=i("8dQZc");const{getConfirmText:__,getConfirmingText:I_,getBackToSignInText:k_}=DC,x_=()=>{const{isPending:e,toSignIn:t}=OC((e=>[e.isPending,e.toSignIn]));return n($u).createElement(vv,{direction:"column"},n($u).createElement(Sv,{isDisabled:e,type:"submit",variation:"primary",fontWeight:"normal",isLoading:e,loadingText:I_()},__()),n($u).createElement(Sv,{onClick:t,type:"button",variation:"link",fontWeight:"normal",size:"small"},k_()))},T_=new y("SetupTOTP-logger"),{getSetupTOTPText:P_,getCopiedText:O_,getLoadingText:N_}=DC,U_=({className:e,variation:t})=>{var r;const{totpSecretCode:o,isPending:i,user:a,QRFields:s}=OC((e=>[e.isPending,e.totpSecretCode])),{handleChange:u,handleSubmit:l}=zC(),{components:{SetupTOTP:{Header:c=U_.Header,Footer:d=U_.Footer}}}=RC(),[f,h]=$u.useState(!0),[p,m]=$u.useState(),[g,v]=$u.useState("COPY"),{totpIssuer:y="AWSCognito",totpUsername:b=(null==a?void 0:a.username)}=null!==(r=s)&&void 0!==r?r:{},w=$u.useCallback((()=>Qu(void 0,void 0,void 0,(function*(){try{const e=zm(y,b,o),t=yield n(fE).toDataURL(e);m(t)}catch(e){T_.error(e)}finally{h(!1)}}))),[y,b,o]);return $u.useEffect((()=>{p||w()}),[w,p]),$u.createElement($C,{className:e,variation:t},$u.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-totp":"",method:"post",onChange:u,onSubmit:l},$u.createElement(vv,{as:"fieldset",direction:"column",isDisabled:i},$u.createElement(c,null),$u.createElement(vv,{direction:"column"},f?$u.createElement("p",null,N_(),"…"):$u.createElement("img",{"data-amplify-qrcode":!0,src:p,alt:"qr code",width:"228",height:"228"}),$u.createElement(vv,{"data-amplify-copy":!0},$u.createElement("div",null,o),$u.createElement(vv,{"data-amplify-copy-svg":!0,onClick:()=>{navigator.clipboard.writeText(o),v(O_())}},$u.createElement("div",{"data-amplify-copy-tooltip":!0},g),$u.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},$u.createElement("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})))),$u.createElement(YC,null),$u.createElement(VC,null)),$u.createElement(x_,null),$u.createElement(d,null))))};U_.Header=function(){return $u.createElement(LC,{level:3},P_())},U_.Footer=function(){return null};$u=i("8dQZc");var F_={};function R_(){return R_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R_.apply(this,arguments)}e(F_,"createTabsScope",(()=>AI)),e(F_,"Tabs",(()=>xI)),e(F_,"TabsList",(()=>PI)),e(F_,"TabsTrigger",(()=>NI)),e(F_,"TabsContent",(()=>FI)),e(F_,"Root",(()=>DI)),e(F_,"List",(()=>jI)),e(F_,"Trigger",(()=>LI)),e(F_,"Content",(()=>BI));$u=i("8dQZc");function M_(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}$u=i("8dQZc");function D_(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,$u.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,$u.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,$u.createContext)(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,u=(0,$u.useMemo)((()=>a),Object.values(a));return(0,$u.createElement)(s.Provider,{value:u},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,u=(0,$u.useContext)(s);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},j_(r,...t)]}function j_(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,$u.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}$u=i("8dQZc"),$u=i("8dQZc"),$u=i("8dQZc");function L_(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function B_(...e){return(0,$u.useCallback)(L_(...e),e)}const z_=(0,($u=i("8dQZc")).forwardRef)(((e,t)=>{const{children:n,...r}=e,o=$u.Children.toArray(n),i=o.find(H_);if(i){const e=i.props.children,n=o.map((t=>t===i?$u.Children.count(e)>1?$u.Children.only(null):(0,$u.isValidElement)(e)?e.props.children:null:t));return(0,$u.createElement)(V_,R_({},r,{ref:t}),(0,$u.isValidElement)(e)?(0,$u.cloneElement)(e,void 0,n):null)}return(0,$u.createElement)(V_,R_({},r,{ref:t}),n)}));z_.displayName="Slot";const V_=(0,$u.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,$u.isValidElement)(n)?(0,$u.cloneElement)(n,{...G_(r,n.props),ref:L_(t,n.ref)}):$u.Children.count(n)>1?$u.Children.only(null):null}));V_.displayName="SlotClone";const W_=({children:e})=>(0,$u.createElement)($u.Fragment,null,e);function H_(e){return(0,$u.isValidElement)(e)&&e.type===W_}function G_(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==i||i(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}$u=i("8dQZc"),$u=i("8dQZc");const q_=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?$u.useLayoutEffect:()=>{},K_=$u["useId".toString()]||(()=>{});let Z_=0;function Y_(e){const[t,n]=$u.useState(K_());return q_((()=>{e||n((e=>null!=e?e:String(Z_++)))}),[e]),e||(t?`radix-${t}`:"")}$u=i("8dQZc");var Q_={};Q_=ReactDOM;const $_=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,$u.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?z_:t;return(0,$u.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,$u.createElement)(i,R_({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});$u=i("8dQZc");function J_(e){const t=(0,$u.useRef)(e);return(0,$u.useEffect)((()=>{t.current=e})),(0,$u.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}$u=i("8dQZc");function X_({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,$u.useState)(e),[r]=n,o=(0,$u.useRef)(r),i=J_(t);return(0,$u.useEffect)((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=J_(n);return[a,(0,$u.useCallback)((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const eI=(0,($u=i("8dQZc")).createContext)(void 0);function tI(e){const t=(0,$u.useContext)(eI);return e||t||"ltr"}const nI="rovingFocusGroup.onEntryFocus",rI={bubbles:!1,cancelable:!0},oI="RovingFocusGroup",[iI,aI,sI]=function(e){const t=e+"CollectionProvider",[r,o]=D_(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:r}=e,o=n($u).useRef(null),a=n($u).useRef(new Map).current;return n($u).createElement(i,{scope:t,itemMap:a,collectionRef:o},r)},u=e+"CollectionSlot",l=n($u).forwardRef(((e,t)=>{const{scope:r,children:o}=e,i=B_(t,a(u,r).collectionRef);return n($u).createElement(z_,{ref:i},o)})),c=e+"CollectionItemSlot",d="data-radix-collection-item",f=n($u).forwardRef(((e,t)=>{const{scope:r,children:o,...i}=e,s=n($u).useRef(null),u=B_(t,s),l=a(c,r);return n($u).useEffect((()=>(l.itemMap.set(s,{ref:s,...i}),()=>{l.itemMap.delete(s)}))),n($u).createElement(z_,{[d]:"",ref:u},o)}));return[{Provider:s,Slot:l,ItemSlot:f},function(t){const r=a(e+"CollectionConsumer",t);return n($u).useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},o]}(oI),[uI,lI]=D_(oI,[sI]),[cI,dI]=uI(oI),fI=(0,$u.forwardRef)(((e,t)=>(0,$u.createElement)(iI.Provider,{scope:e.__scopeRovingFocusGroup},(0,$u.createElement)(iI.Slot,{scope:e.__scopeRovingFocusGroup},(0,$u.createElement)(hI,R_({},e,{ref:t})))))),hI=(0,$u.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,...c}=e,d=(0,$u.useRef)(null),f=B_(t,d),h=tI(i),[p=null,m]=X_({prop:a,defaultProp:s,onChange:u}),[g,v]=(0,$u.useState)(!1),y=J_(l),b=aI(n),w=(0,$u.useRef)(!1);return(0,$u.useEffect)((()=>{const e=d.current;if(e)return e.addEventListener(nI,y),()=>e.removeEventListener(nI,y)}),[y]),(0,$u.createElement)(cI,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:p,onItemFocus:(0,$u.useCallback)((e=>m(e)),[m]),onItemShiftTab:(0,$u.useCallback)((()=>v(!0)),[])},(0,$u.createElement)($_.div,R_({tabIndex:g?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:M_(e.onMouseDown,(()=>{w.current=!0})),onFocus:M_(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(nI,rI);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));vI([e.find((e=>e.active)),e.find((e=>e.id===p)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:M_(e.onBlur,(()=>v(!1)))})))})),pI="RovingFocusGroupItem",mI=(0,$u.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,...i}=e,a=Y_(),s=dI(pI,n),u=s.currentTabStopId===a,l=aI(n);return(0,$u.createElement)(iI.ItemSlot,{scope:n,id:a,focusable:r,active:o},(0,$u.createElement)($_.span,R_({tabIndex:u?0:-1,"data-orientation":s.orientation},i,{ref:t,onMouseDown:M_(e.onMouseDown,(e=>{r?s.onItemFocus(a):e.preventDefault()})),onFocus:M_(e.onFocus,(()=>s.onItemFocus(a))),onKeyDown:M_(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void s.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:gI[r]}(e,s.orientation,s.dir);if(void 0!==t){e.preventDefault();let o=l().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=s.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>vI(o)))}var n,r}))})))})),gI={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vI(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const yI=fI,bI=mI;$u=i("8dQZc");const wI=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,$u.useState)(),r=(0,$u.useRef)({}),o=(0,$u.useRef)(e),i=(0,$u.useRef)("none"),a=e?"mounted":"unmounted",[s,u]=function(e,t){return(0,$u.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,$u.useEffect)((()=>{const e=SI(r.current);i.current="mounted"===s?e:"none"}),[s]),q_((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=SI(t);if(e)u("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),q_((()=>{if(t){const e=e=>{const n=SI(r.current).includes(e.animationName);e.target===t&&n&&(0,Q_.flushSync)((()=>u("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=SI(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,$u.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):$u.Children.only(n),i=B_(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,$u.cloneElement)(o,{ref:i}):null};function SI(e){return(null==e?void 0:e.animationName)||"none"}wI.displayName="Presence";const CI="Tabs",[EI,AI]=D_(CI,[lI]),_I=lI(),[II,kI]=EI(CI),xI=(0,$u.forwardRef)(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:u="automatic",...l}=e,c=tI(s),[d,f]=X_({prop:r,onChange:o,defaultProp:i});return(0,$u.createElement)(II,{scope:n,baseId:Y_(),value:d,onValueChange:f,orientation:a,dir:c,activationMode:u},(0,$u.createElement)($_.div,R_({dir:c,"data-orientation":a},l,{ref:t})))})),TI="TabsList",PI=(0,$u.forwardRef)(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=kI(TI,n),a=_I(n);return(0,$u.createElement)(yI,R_({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),(0,$u.createElement)($_.div,R_({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),OI="TabsTrigger",NI=(0,$u.forwardRef)(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=kI(OI,n),s=_I(n),u=RI(a.baseId,r),l=MI(a.baseId,r),c=r===a.value;return(0,$u.createElement)(bI,R_({asChild:!0},s,{focusable:!o,active:c}),(0,$u.createElement)($_.button,R_({type:"button",role:"tab","aria-selected":c,"aria-controls":l,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u},i,{ref:t,onMouseDown:M_(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:M_(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:M_(e.onFocus,(()=>{const e="manual"!==a.activationMode;c||o||!e||a.onValueChange(r)}))})))})),UI="TabsContent",FI=(0,$u.forwardRef)(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=kI(UI,n),u=RI(s.baseId,r),l=MI(s.baseId,r),c=r===s.value,d=(0,$u.useRef)(c);return(0,$u.useEffect)((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),(0,$u.createElement)(wI,{present:o||c},(({present:n})=>(0,$u.createElement)($_.div,R_({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!n,id:l,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&i)))}));function RI(e,t){return`${e}-trigger-${t}`}function MI(e,t){return`${e}-content-${t}`}const DI=xI,jI=PI,LI=NI,BI=FI;$u=i("8dQZc");const{Root:zI,List:VI,Trigger:WI,Content:HI}=(YI=Ju({default:void 0},F_),null!==(ZI=YI.default)&&void 0!==ZI?ZI:YI),GI=e=>$u.isValidElement(e),qI=$u.forwardRef(((e,t)=>{var{ariaLabel:r,children:o,className:i,defaultIndex:a=0,currentIndex:s,onChange:u,indicatorPosition:l,spacing:c}=e,d=Yu(e,["ariaLabel","children","className","defaultIndex","currentIndex","onChange","indicatorPosition","spacing"]);const f={defaultValue:a.toString(),value:null!=s?s.toString():void 0,onValueChange:u},h=$u.Children.toArray(o).filter((e=>!!e));return $u.createElement(zI,Object.assign({},f),$u.createElement(VI,{"aria-label":r},$u.createElement(vv,Object.assign({className:n(tg)(kg.Tabs,i),"data-indicator-position":l,ref:t},d),$u.Children.map(h,((e,t)=>{if(GI(e))return $u.cloneElement(e,{"data-spacing":c,key:t,value:`${t}`})})))),$u.Children.map(h,((e,t)=>{if(GI(e))return $u.createElement(HI,{key:t,value:`${t}`},e.props.children)})))})),KI=$u.forwardRef(((e,t)=>{var{className:r,title:o}=e,i=Yu(e,["className","title"]);return $u.createElement(gv,Object.assign({as:WI,className:n(tg)(kg.TabItems,r),ref:t},i),o)}));var ZI,YI;qI.displayName="Tabs",KI.displayName="TabItem";var QI,$I;$u=i("8dQZc"),$u=i("8dQZc");!function(e){e.Apple="SignInWithApple",e.Amazon="LoginWithAmazon",e.Facebook="Facebook",e.Google="Google"}(QI||(QI={})),function(e){e.Email="email",e.PhoneNumber="phone_number"}($I||($I={}));const JI=($u=i("8dQZc")).forwardRef(((e,t)=>{var{className:r,orientation:o="horizontal",size:i,label:a}=e,s=Yu(e,["className","orientation","size","label"]);const u=n(tg)(kg.Divider,Fg(kg.Divider,o),Fg(kg.Divider,i),a?kg.DividerLabel:null,r);return $u.createElement(gv,Object.assign({"aria-orientation":o,as:"hr",className:u,"data-size":i,"data-label":a,ref:t},s))}));JI.displayName="Divider";$u=i("8dQZc"),$u=i("8dQZc");const XI={minX:0,minY:0,width:24,height:24},ek=$u.forwardRef(((e,t)=>{var{className:r,as:o="svg",fill:i="currentColor",pathData:a,viewBox:s=XI,children:u,paths:l}=e,c=Yu(e,["className","as","fill","pathData","viewBox","children","paths"]);const d=s.minX?s.minX:XI.minX,f=s.minY?s.minY:XI.minY,h=s.width?s.width:XI.width,p=s.height?s.height:XI.height;let m;return u&&(m=u),l&&(m=l.map(((e,t)=>$u.createElement("path",Object.assign({},e,{key:t}))))),a&&(m=$u.createElement("path",{d:a,fill:i})),$u.createElement(gv,Object.assign({as:o,className:n(tg)(kg.Icon,r),ref:t,viewBox:`${d} ${f} ${h} ${p}`},c),m)}));ek.displayName="Icon";const tk=()=>n($u).createElement("svg",{"aria-label":"Apple icon",className:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},n($u).createElement("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})),nk=()=>n($u).createElement("svg",{"aria-label":"Google icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},n($u).createElement("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),n($u).createElement("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),n($u).createElement("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),n($u).createElement("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})),rk=()=>n($u).createElement(ek,{className:"federated-sign-in-icon",ariaLabel:"Facebook icon",viewBox:{minX:0,minY:0,width:279,height:538},pathData:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",fill:"#1877F2"}),ok=()=>n($u).createElement("svg",{"aria-label":"Amazon icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 243 264",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},n($u).createElement("path",{d:"M230.826 208.039C227.468 203.683 208.551 205.982 200.056 206.998C197.471 207.321 197.076 205.042 199.407 203.405C214.475 192.665 239.201 195.766 242.082 199.364C244.966 202.982 241.337 228.071 227.173 240.049C225.001 241.888 222.93 240.904 223.898 238.468C227.077 230.431 234.205 212.419 230.826 208.039ZM123.769 264C71.0234 264 39.0764 241.955 14.7853 217.542C9.97339 212.706 3.71799 206.296 0.311513 200.691C-1.09773 198.372 2.59096 195.022 5.04421 196.844C35.239 219.268 79.1012 239.538 122.53 239.538C151.82 239.538 188.046 227.47 217.669 214.868C222.147 212.966 222.147 219.18 221.512 221.061C221.183 222.032 206.515 236.221 186.247 247.047C167.304 257.166 143.397 264 123.769 264Z",fill:"#F2541B"}),n($u).createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.943 111.185C142.943 124.756 143.268 136.054 136.406 148.123C130.856 157.913 122.027 163.95 112.222 163.95C98.8288 163.95 90.9806 153.772 90.9806 138.693C90.9806 109.036 117.677 103.647 142.943 103.647V111.185ZM178.166 196.081C175.858 198.15 171.635 198.22 169.914 196.894C157.974 187.684 149.89 173.688 149.89 173.688C130.706 193.156 117.127 199 92.2879 199C62.8772 199 40 180.905 40 144.729C40 116.461 55.3552 97.2408 77.2563 87.823C96.2094 79.5256 122.684 78.0173 142.943 75.7517C142.943 75.7517 144.633 53.933 138.699 45.9806C134.098 39.8163 126.272 36.9329 119.089 36.9329C106.127 36.8829 93.61 43.9051 91.1262 57.4188C90.4136 61.2829 87.5533 64.5261 84.54 64.206L51.0823 60.5922C48.5156 60.2951 45.0381 57.6639 45.8636 53.3081C53.644 12.3684 90.7373 0 123.989 0C140.983 0 163.21 4.51651 176.608 17.3349C193.597 33.1648 191.969 54.2755 191.969 77.2722V131.51C191.969 147.835 198.768 154.987 205.151 163.775C207.376 166.953 207.886 170.714 205.04 173.032C197.902 178.999 178.166 196.081 178.166 196.081Z",fill:"#F2541B"})),ik=e=>{const{icon:t,provider:r,text:o}=e,{toFederatedSignIn:i}=OC();let a;return"facebook"===t?a=n($u).createElement(rk,null):"google"===t?a=n($u).createElement(nk,null):"amazon"===t?a=n($u).createElement(ok,null):"apple"===t&&(a=n($u).createElement(tk,null)),n($u).createElement(Sv,{onClick:e=>{e.preventDefault(),i({provider:r})},className:"federated-sign-in-button",fontWeight:"normal",gap:"1rem"},a,n($u).createElement(Tv,{as:"span"},o))},{getSignInWithFederationText:ak,getOrText:sk}=DC;function uk(){const{route:e,socialProviders:t}=OC((({route:e,socialProviders:t})=>[e,t]));return 0===t.length?null:n($u).createElement(vv,{direction:"column",padding:"0 0 1rem 0",className:"federated-sign-in-container"},t.map((t=>{switch(t){case"amazon":return n($u).createElement(ik,{icon:"amazon",key:t,provider:QI.Amazon,text:ak(e,t)});case"apple":return n($u).createElement(ik,{icon:"apple",key:t,provider:QI.Apple,text:ak(e,t)});case"facebook":return n($u).createElement(ik,{icon:"facebook",key:t,provider:QI.Facebook,text:ak(e,t)});case"google":return n($u).createElement(ik,{icon:"google",key:t,provider:QI.Google,text:ak(e,t)});default:console.error(`Authenticator does not support ${t}. Please open an issue: https://github.com/aws-amplify/amplify-ui/issues/choose`)}})),n($u).createElement(JI,{size:"small",label:sk()}))}const{getSignInText:lk,getSigningInText:ck,getForgotPasswordText:dk}=DC;function fk(){const{isPending:e}=OC((e=>[e.isPending])),{handleChange:t,handleSubmit:r}=zC(),{components:{SignIn:{Header:o=fk.Header,Footer:i=fk.Footer}}}=RC();return n($u).createElement(gv,null,n($u).createElement(o,null),n($u).createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signin":"",method:"post",onSubmit:r,onChange:t},n($u).createElement(uk,null),n($u).createElement(vv,{direction:"column"},n($u).createElement(vv,{as:"fieldset",direction:"column",isDisabled:e},n($u).createElement(Cv,null,n($u).createElement("legend",null,lk())),n($u).createElement(YC,null)),n($u).createElement(VC,null),n($u).createElement(Sv,{isDisabled:e,isFullWidth:!0,type:"submit",variation:"primary",isLoading:e,loadingText:ck()},lk()))),n($u).createElement(i,null))}fk.Footer=()=>{const{toResetPassword:e}=OC((e=>[e.toResetPassword]));return n($u).createElement(gv,{"data-amplify-footer":""},n($u).createElement(Sv,{fontWeight:"normal",onClick:e,size:"small",variation:"link"},dk()))},fk.Header=function(){return null};$u=i("8dQZc");const{getCreateAccountText:hk,getCreatingAccountText:pk}=DC;function mk(){const{hasValidationErrors:e,isPending:t}=OC((e=>[e.hasValidationErrors,e.isPending])),{handleChange:r,handleBlur:o,handleSubmit:i}=zC(),{components:{SignUp:{Header:a=mk.Header,FormFields:s=mk.FormFields,Footer:u=mk.Footer}}}=RC();return n($u).createElement(gv,null,n($u).createElement(a,null),n($u).createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signup":"",method:"post",onChange:r,onSubmit:i,onBlur:o},n($u).createElement(uk,null),n($u).createElement(vv,{as:"fieldset",direction:"column",isDisabled:t},n($u).createElement(vv,{direction:"column"},n($u).createElement(s,null),n($u).createElement(VC,null)),n($u).createElement(Sv,{isDisabled:e||t,isFullWidth:!0,type:"submit",variation:"primary",isLoading:t,loadingText:pk()},hk()))),n($u).createElement(u,null))}mk.Header=function(){return null},mk.FormFields=function(){return n($u).createElement(YC,null)},mk.Footer=function(){return null};const{getSignInTabText:gk,getSignUpTabText:vk}=DC,yk=({className:e,hideSignUp:t,variation:r})=>{const{route:o,toSignIn:i,toSignUp:a}=OC((e=>[e.route,e.toSignIn,e.toSignUp]));return n($u).createElement($C,{className:e,variation:r},t?n($u).createElement(gv,{"data-amplify-router-content":""},"signIn"===o&&n($u).createElement(fk,null)):n($u).createElement(qI,{indicatorPosition:"top",currentIndex:"signIn"===o?0:1,spacing:"equal",justifyContent:"center",onChange:()=>"signIn"===o?a():i()},n($u).createElement(KI,{title:gk()},n($u).createElement(gv,{"data-amplify-router-content":""},"signIn"===o&&n($u).createElement(fk,null))),n($u).createElement(KI,{title:vk()},n($u).createElement(gv,{"data-amplify-router-content":""},"signUp"===o&&n($u).createElement(mk,null)))))};$u=i("8dQZc"),$u=i("8dQZc");const{getSubmitText:bk,getSubmittingText:wk}=DC,Sk=e=>{const{cancelButtonSendType:t,cancelButtonText:r,submitButtonText:o}=e,{isPending:i,resendCode:a,skipVerification:s,toSignIn:u}=OC((e=>[e.isPending])),l=i?n($u).createElement(n($u).Fragment,null,wk(),"…"):n($u).createElement(n($u).Fragment,null,bk()),c=o||l;return n($u).createElement(vv,{direction:"column"},n($u).createElement(Sv,{fontWeight:"normal",variation:"primary",isDisabled:i,type:"submit"},c),n($u).createElement(Sv,{onClick:()=>{switch(t){case"SKIP":s();break;case"RESEND":a();break;case"SIGN_IN":u();break;default:return}},type:"button",variation:"link",fontWeight:"normal",size:"small"},r))},{getAccountRecoveryInfoText:Ck,getSkipText:Ek}=DC,Ak=({className:e,variation:t})=>{const{isPending:r}=OC((e=>[e.isPending])),{handleChange:o,handleSubmit:i}=zC(),{components:{ConfirmVerifyUser:{Header:a=Ak.Header,Footer:s=Ak.Footer}}}=RC();return n($u).createElement($C,{className:e,variation:t},n($u).createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmverifyuser":"",method:"post",onChange:o,onSubmit:i},n($u).createElement(vv,{as:"fieldset",direction:"column",isDisabled:r},n($u).createElement(a,null),n($u).createElement(vv,{direction:"column"},n($u).createElement(YC,null)),n($u).createElement(VC,null),n($u).createElement(Sk,{cancelButtonText:Ek(),cancelButtonSendType:"SKIP"}),n($u).createElement(s,null))))};Ak.Header=function(){return n($u).createElement(LC,{level:3},Ck())},Ak.Footer=function(){return null};$u=i("8dQZc"),$u=i("8dQZc");const _k=n($u=i("8dQZc")).createContext({name:"default"}),Ik=$u.forwardRef(((e,t)=>{var{children:r,className:o,id:i,isDisabled:a,testId:s,value:u,labelPosition:l,height:c,width:d,bottom:f,left:h,position:p,padding:m,right:g,top:v}=e,y=Yu(e,["children","className","id","isDisabled","testId","value","labelPosition","height","width","bottom","left","position","padding","right","top"]);const{currentValue:b,defaultValue:w,name:S,hasError:C,isGroupDisabled:E,isRequired:A,isReadOnly:_,onChange:I,size:k,labelPosition:x}=(0,$u.useContext)(_k),T=E||a||_&&w!==u,P=void 0!==b?u===b:void 0,O=void 0!==w?u===w:void 0,N=l||x;return $u.createElement(vv,{as:"label",className:n(tg)(kg.Radio,Rg(kg.Radio,"disabled",T),o),"data-disabled":T,"data-label-position":N,height:c,width:d,bottom:f,top:v,right:g,left:h,position:p,padding:m},r&&$u.createElement(Tv,{as:"span",className:kg.RadioLabel,"data-disabled":T},r),$u.createElement(Uv,Object.assign({checked:P,className:n(tg)(kg.VisuallyHidden,kg.RadioInput),defaultChecked:O,hasError:C,id:i,isDisabled:T,isReadOnly:_,isRequired:A,onChange:I,ref:t,type:"radio",name:S,value:u},y)),$u.createElement(vv,{"aria-hidden":"true",as:"span",className:n(tg)(kg.RadioButton,Fg(kg.RadioButton,k)),"data-size":k,testId:s}))}));Ik.displayName="Radio";$u=i("8dQZc");const kk=(e,t)=>e&&t?`${e}-${t}`:void 0,xk=$u.forwardRef(((e,t)=>{var{children:r,className:o,defaultValue:i,descriptiveText:a,errorMessage:s,hasError:u=!1,id:l,isDisabled:c,isRequired:d,isReadOnly:f,label:h,labelHidden:p=!1,labelPosition:m,onChange:g,name:v,size:y,testId:b,value:w}=e,S=Yu(e,["children","className","defaultValue","descriptiveText","errorMessage","hasError","id","isDisabled","isRequired","isReadOnly","label","labelHidden","labelPosition","onChange","name","size","testId","value"]);const C=Lv(l),E=Lv(),A=a?E:void 0,_=kk(b,kg.RadioGroup),I=$u.useMemo((()=>({currentValue:w,defaultValue:i,hasError:u,isRequired:d,isReadOnly:f,isGroupDisabled:c,onChange:g,size:y,name:v,labelPosition:m})),[i,u,c,d,f,g,y,v,w,m]);return $u.createElement(vv,Object.assign({as:"fieldset",className:n(tg)(kg.Field,Fg(kg.Field,y),kg.RadioGroupField,o),"data-size":y,ref:t,role:"radiogroup",testId:b},S),$u.createElement(Cv,{as:"legend"},h),$u.createElement(Fv,{"aria-hidden":!0,visuallyHidden:p},h),$u.createElement(Pv,{id:E,labelHidden:p,descriptiveText:a}),$u.createElement(vv,{"aria-describedby":A,className:kg.RadioGroup,id:C,testId:_},$u.createElement(_k.Provider,{value:I},r)),$u.createElement(Ov,{hasError:u,errorMessage:s}))}));xk.displayName="RadioGroupField";const{getSkipText:Tk,getVerifyText:Pk,getVerifyContactText:Ok,getAccountRecoveryInfoText:Nk}=DC,Uk=({className:e,variation:t})=>{const{components:{VerifyUser:{Header:r=Uk.Header,Footer:o=Uk.Footer}}}=RC(),{isPending:i,unverifiedContactMethods:a}=OC((({isPending:e,unverifiedContactMethods:t})=>[e,t])),{handleChange:s,handleSubmit:u}=zC(),l=i?n($u).createElement(n($u).Fragment,null,"Verifying…"):n($u).createElement(n($u).Fragment,null,Pk()),c=n($u).createElement(xk,{label:Ok(),labelHidden:!0,name:"verify_context",isDisabled:i},(e=>Object.entries(e).map((([e,t])=>n($u).createElement(Ik,{name:"unverifiedAttr",value:e,key:e},((e,t)=>{const n=Xm(e);let r=t;if("Phone Number"===e)r=function(e){if(e.length<4)return e;for(var t=e.split(""),n=0;n<t.length-4;n++)t[n]="*";return t.join("")}(t);else if("Email"===e){const e=t.split("@");r=`${function(e){for(var t=e.trim().split(""),n=0;n<t.length;n++)n>0&&n<t.length-1&&(t[n]="*");return t.join("")}(e[0])}@${e[1]}`}return`${n}: ${r}`})(Nm[e].label,t)))))(a));return n($u).createElement($C,{className:e,variation:t},n($u).createElement("form",{"data-amplify-form":"","data-amplify-authenticator-verifyuser":"",method:"post",onChange:s,onSubmit:u},n($u).createElement(vv,{as:"fieldset",direction:"column",isDisabled:i},n($u).createElement(r,null),c,n($u).createElement(VC,null),n($u).createElement(Sk,{cancelButtonText:Tk(),cancelButtonSendType:"SKIP",submitButtonText:l}),n($u).createElement(o,null))))};Uk.Header=function(){return n($u).createElement(LC,{level:3},Nk())},Uk.Footer=function(){return null};$u=i("8dQZc");const{getChallengeText:Fk}=DC,Rk=({className:e,variation:t})=>{const{isPending:r}=OC((e=>[e.isPending])),{handleChange:o,handleSubmit:i}=zC(),{components:{ConfirmSignIn:{Header:a=Rk.Header,Footer:s=Rk.Footer}}}=RC();return n($u).createElement($C,{className:e,variation:t},n($u).createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignin":"",method:"post",onChange:o,onSubmit:i},n($u).createElement(vv,{as:"fieldset",direction:"column",isDisabled:r},n($u).createElement(a,null),n($u).createElement(vv,{direction:"column"},n($u).createElement(YC,null),n($u).createElement(VC,null)),n($u).createElement(x_,null),n($u).createElement(s,null))))};Rk.Header=function(){const{user:{challengeName:e}}=OC((({user:e})=>[e]));return n($u).createElement(LC,{level:3},Fk(e))},Rk.Footer=function(){return null};$u=i("8dQZc");const{getResendCodeText:Mk,getResetYourPasswordText:Dk}=DC,jk=({className:e,variation:t})=>{const{isPending:r}=OC((e=>[e.isPending])),{handleBlur:o,handleChange:i,handleSubmit:a}=zC(),{components:{ConfirmResetPassword:{Header:s=jk.Header,Footer:u=jk.Footer}}}=RC();return n($u).createElement($C,{className:e,variation:t},n($u).createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmresetpassword":"",method:"post",onSubmit:a,onChange:i,onBlur:o},n($u).createElement(vv,{as:"fieldset",direction:"column",isDisabled:r},n($u).createElement(s,null),n($u).createElement(vv,{direction:"column"},n($u).createElement(YC,null)),n($u).createElement(VC,null),n($u).createElement(Sk,{cancelButtonSendType:"RESEND",cancelButtonText:Mk()}),n($u).createElement(u,null))))};jk.Header=function(){const e=Dk();return n($u).createElement(LC,{level:3},e)},jk.Footer=function(){return null};$u=i("8dQZc");const{getBackToSignInText:Lk,getSendingText:Bk,getSendCodeText:zk,getResetYourPasswordText:Vk}=DC,Wk=({className:e,variation:t})=>{const{isPending:r}=OC((e=>[e.isPending])),{handleChange:o,handleSubmit:i}=zC(),{components:{ResetPassword:{Header:a=Wk.Header,Footer:s=Wk.Footer}}}=RC();return n($u).createElement($C,{className:e,variation:t},n($u).createElement("form",{"data-amplify-form":"","data-amplify-authenticator-resetpassword":"",method:"post",onChange:o,onSubmit:i},n($u).createElement(vv,{as:"fieldset",direction:"column",isDisabled:r},n($u).createElement(a,null),n($u).createElement(vv,{direction:"column"},n($u).createElement(YC,null)),n($u).createElement(VC,null),n($u).createElement(Sk,{cancelButtonText:Lk(),cancelButtonSendType:"SIGN_IN",submitButtonText:r?n($u).createElement(n($u).Fragment,null,Bk(),"…"):n($u).createElement(n($u).Fragment,null,zk())}),n($u).createElement(s,null))))};Wk.Header=function(){return n($u).createElement(LC,{level:3},Vk())},Wk.Footer=function(){return null};const Hk=e=>"signIn"===e||"signUp"===e;function Gk(){return null}function qk({className:e,hideSignUp:t,variation:r}){const{route:o}=OC((({route:e})=>[e])),i=(0,$u.useMemo)((()=>(e=>{switch(e){case"authenticated":case"idle":case"setup":case"transition":return Gk;case"confirmSignUp":return rE;case"confirmSignIn":return Rk;case"setupTOTP":return U_;case"signIn":case"signUp":return yk;case"forceNewPassword":return sE;case"resetPassword":return Wk;case"confirmResetPassword":return jk;case"verifyUser":return Uk;case"confirmVerifyUser":return Ak;default:return console.warn(`Unhandled Authenticator route - please open an issue: ${e}`),Gk}})(o)),[o]);return n($u).createElement(i,{className:e,hideSignUp:Hk(o)?t:void 0,variation:r})}const Kk={Header:()=>null,SignIn:{Header:fk.Header,Footer:fk.Footer},SignUp:{Header:mk.Header,FormFields:mk.FormFields,Footer:mk.Footer},ConfirmSignUp:{Header:rE.Header,Footer:rE.Footer},SetupTOTP:{Header:U_.Header,Footer:U_.Footer},ConfirmResetPassword:{Header:jk.Header,Footer:jk.Footer},ConfirmSignIn:{Header:Rk.Header,Footer:Rk.Footer},VerifyUser:{Header:Uk.Header,Footer:Uk.Footer},ConfirmVerifyUser:{Header:Ak.Header,Footer:Ak.Footer},ForceNewPassword:{FormFields:sE.FormFields},ResetPassword:{Header:Wk.Header,Footer:Wk.Footer},Footer:()=>null},Zk="4.3.8";function Yk({children:e,className:t,components:n,formFields:r,hideSignUp:o,initialState:i,loginMechanisms:a,signUpAttributes:s,services:u,socialProviders:l,variation:c}){const{route:d,signOut:f,user:h}=OC((({route:e,signOut:t,user:n})=>[e,t,n]));UC({initialState:i,loginMechanisms:a,services:u,signUpAttributes:s,socialProviders:l,formFields:r});const p=$u.useMemo((()=>({components:Object.assign(Object.assign({},Kk),n)})),[n]);return"authenticated"===d||"signOut"===d?e?$u.createElement($u.Fragment,null,"function"==typeof e?e({signOut:f,user:h}):e):null:$u.createElement(FC.Provider,{value:p},$u.createElement(qk,{className:t,hideSignUp:o,variation:c}))}function Qk(e){return $u.useEffect((()=>{Mm({packageName:"@aws-amplify/ui-react",version:Zk})}),[]),$u.createElement(qS,null,$u.createElement(Yk,Object.assign({},e)))}Qk.Provider=qS,Qk.ResetPassword=Wk,Qk.SetupTOTP=U_,Qk.SignIn=fk,Qk.SignUp=mk,Qk.ForceNewPassword=sE;$u=i("8dQZc"),$u=i("8dQZc"),$u=i("8dQZc");const $k=e=>{const{className:t}=e,r=Yu(e,["className"]);return $u.createElement(gv,Object.assign({as:"span",width:"1em",height:"1em",className:n(tg)(kg.Icon,t)},r),$u.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$u.createElement("path",{d:"M9.00016 16.1698L4.83016 11.9998L3.41016 13.4098L9.00016 18.9998L21.0002 6.99984L19.5902 5.58984L9.00016 16.1698Z",fill:"currentColor"})))};$u=i("8dQZc");const Jk=e=>{const{className:t}=e,r=Yu(e,["className"]);return $u.createElement(gv,Object.assign({as:"span",width:"1em",height:"1em",className:n(tg)(kg.Icon,t)},r),$u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 0 24 24"},$u.createElement("line",{x1:"4",x2:"20",y1:"12",y2:"12",stroke:"currentColor",strokeWidth:"3"})))};$u=i("8dQZc");const Xk=(e,t)=>{const[n,r]=(0,$u.useState)(e),[o,i]=(0,$u.useState)(!1);return{dataChecked:n,dataFocus:o,onBlur:()=>{i(!1)},onChange:e=>{r(e.target.checked),Og(t)&&t(e)},onFocus:()=>{i(!0)},setDataChecked:r}},ex=$u.forwardRef(((e,t)=>{var{checked:r,className:o,defaultChecked:i,hasError:a,isDisabled:s,isIndeterminate:u,label:l,labelHidden:c,labelPosition:d,onChange:f,testId:h,inputStyles:p}=e,m=Yu(e,["checked","className","defaultChecked","hasError","isDisabled","isIndeterminate","label","labelHidden","labelPosition","onChange","testId","inputStyles"]);const{styleProps:g,rest:v}=Rv(m),y=void 0!==r?r:i,{dataChecked:b,dataFocus:w,onBlur:S,onChange:C,onFocus:E,setDataChecked:A}=Xk(y,f);$u.useEffect((()=>{void 0!==r&&r!==b&&A(r)}),[r,b,A]);const _=Lv();$u.useEffect((()=>{const e=document.querySelector(`[data-id="${_}"]`);e&&"boolean"==typeof u&&(e.indeterminate=u)}),[_,u]);const I=kk(h,kg.CheckboxButton),k=kk(h,kg.CheckboxIcon),x=kk(h,kg.CheckboxLabel),T=n(tg)(kg.CheckboxButton,Rg(kg.CheckboxButton,"disabled",s),Rg(kg.CheckboxButton,"error",a),Rg(kg.CheckboxButton,"focused",w)),P=n(tg)(kg.CheckboxIcon,Rg(kg.CheckboxIcon,"checked",b),Rg(kg.CheckboxIcon,"disabled",s)),O=$u.useMemo((()=>u?$u.createElement(Jk,{className:n(tg)(P,Rg(kg.CheckboxIcon,"indeterminate",u)),"data-testid":k}):$u.createElement($k,{className:P,"data-checked":b,"data-disabled":s,"data-testid":k})),[b,P,k,s,u]);return $u.createElement(vv,Object.assign({as:"label",className:n(tg)(kg.Checkbox,Rg(kg.Checkbox,"disabled",s),o),"data-disabled":s,"data-label-position":d,testId:h},g),$u.createElement(Cv,null,$u.createElement(Uv,Object.assign({checked:r,className:kg.CheckboxInput,"data-id":_,defaultChecked:i,isDisabled:s,onBlur:S,onChange:C,onFocus:E,ref:t,type:"checkbox"},v))),l&&$u.createElement(Tv,{as:"span",className:n(tg)(kg.CheckboxLabel,{[kg.VisuallyHidden]:c}),"data-disabled":s,testId:x},l),$u.createElement(vv,Object.assign({"aria-hidden":"true",as:"span",className:T,"data-checked":b,"data-disabled":s,"data-focus":w,"data-error":a,testId:I},p),O))}));ex.displayName="Checkbox";const tx=$u.forwardRef(((e,t)=>{var{className:r,errorMessage:o,hasError:i=!1,labelHidden:a=!1,labelPosition:s,testId:u,size:l}=e,c=Yu(e,["className","errorMessage","hasError","labelHidden","labelPosition","testId","size"]);const d=kk(u,kg.Checkbox);return $u.createElement(vv,{className:n(tg)(kg.Field,kg.CheckboxField,Fg(kg.Field,l),r),"data-size":l,testId:u},$u.createElement(ex,Object.assign({hasError:i,labelHidden:a,testId:d,labelPosition:s,ref:t},c)),$u.createElement(Ov,{hasError:i,errorMessage:o}))}));tx.displayName="CheckboxField";var nx={de:{"Sign In":"Anmelden","Sign Up":"Registrieren","Sign Out":"Abmelden","Sign in to your account":"Melden Sie sich mit Ihrem Account an",Username:"Benutzername",Password:"Passwort","Enter your username":"Geben Sie Ihren Benutzernamen ein","Enter your password":"Geben Sie Ihr Passwort ein","No account? ":"Kein Account? ","Forgot your password? ":"Passwort vergessen? ","Reset password":"Passwort zurücksetzen","User does not exist":"Dieser Benutzer existiert nicht","User already exists":"Dieser Benutzer existiert bereits","Incorrect username or password":"Falscher Benutzername oder falsches Passwort","Invalid password format":"Ungültiges Passwort-Format","Create account":"Hier registrieren","Forgot Password":"Passwort vergessen","Change Password":"Passwort ändern","New Password":"Neues Passwort",Email:"Email","Phone Number":"Telefonnummer","Confirm a Code":"Code bestätigen","Confirm Sign In":"Anmeldung bestätigen","Confirm Sign Up":"Registrierung bestätigen","Back to Sign In":"Zurück zur Anmeldung","Send Code":"Code senden",Confirm:"Bestätigen","Resend Code":"Code erneut senden",Submit:"Abschicken",Skip:"Überspringen",Verify:"Verifizieren","Verify Contact":"Kontakt verifizieren",Code:"Code","Confirmation Code":"Bestätigungs-Code","Lost your code? ":"Code verloren? ","Account recovery requires verified contact information":"Zurücksetzen des Account benötigt einen verifizierten Account","Invalid phone number format":"Ungültiges Telefonummern-Format.\n Benutze eine Nummer im Format: +12345678900","Create Account":"Account erstellen","Have an account? ":"Schon registriert? ","Sign in":"Anmelden","Create a new account":"Erstelle einen neuen Account","Reset your password":"Zurücksetzen des Passworts","An account with the given email already exists.":"Ein Account mit dieser Email existiert bereits.","Username cannot be empty":"Benutzername darf nicht leer sein","Password attempts exceeded":"Die maximale Anzahl der fehlerhaften Anmeldeversuche wurde erreicht"},fr:{Hello:"Bonjour","Loading...":"Chargement...","Sign In":"Se connecter","Sign In with Amazon":"Se connecter avec Amazon","Sign In with Facebook":"Se connecter avec Facebook","Sign In with Google":"Se connecter avec Google","Sign in with AWS":"Se connecter avec AWS","Sign Up":"S'inscrire","Sign Out":"Déconnexion","Forgot Password":"Mot de passe oublié",Username:"Nom d'utilisateur",Password:"Mot de passe","Change Password":"Modifier le mot de passe",Change:"Modifier","New Password":"Nouveau mot de passe",Email:"Email","Phone Number":"Numéro de téléphone","Confirm a Code":"Confirmer un code","Confirm Sign In":"Confirmer la connexion","Confirm Sign Up":"Confirmer l'inscription","Back to Sign In":"Retour à la connexion",Send:"Envoyer","Send Code":"M'envoyer un code",Confirm:"Confirmer",SMS:"SMS","Confirm SMS Code":"Confirmer le code SMS","Confirm TOTP Code":"Confirmer le code TOTP","Resend a Code":"Renvoyer un code",Submit:"Soumettre",Skip:"Passer",Verify:"Vérifier","Verify Contact":"Vérifier le contact",Code:"Code","Confirmation Code":"Code de confirmation","Account recovery requires verified contact information":"La récupération du compte nécessite des informations de contact vérifiées","User does not exist":"L'utilisateur n'existe pas","User already exists":"L'utilisateur existe déjà","Incorrect username or password":"Identifiant ou mot de passe incorrect","Invalid password format":"Format de mot de passe invalide","Invalid phone number format":"Format de numéro de téléphone invalide. Veuillez utiliser un format +12345678900","Username/client id combination not found.":"L'utilisateur n'existe pas","Network error":"Erreur réseau","Sign in to your account":"Connexion à votre compte","Forgot your password? ":"Mot de passe oublié ? ","Reset password":"Réinitialisez votre mot de passe","No account? ":"Pas de compte ? ","Create account":"Créer un compte","Create Account":"Créer un compte","Have an account? ":"Déjà un compte ? ","Sign in":"Se connecter","Create a new account":"Créer un nouveau compte","Reset your password":"Réinitialisez votre mot de passe","Enter your username":"Saisissez votre nom d'utilisateur","Enter your password":"Saisissez votre mot de passe","Enter your phone number":"Saisissez votre numéro de téléphone","Enter your email":"Saisissez votre adresse email","Enter your code":"Saisissez cotre code de confirmation","Lost your code? ":"Vous avez perdu votre code ? ","Resend Code":"Renvoyer le code",or:"ou","An account with the given email already exists.":"Un utilisateur avec cette adresse email existe déjà.","Username cannot be empty":"Le nom d'utilisateur doit être renseigné"},es:{"Sign in to your account":"Iniciar sesíon","Loading...":"Cargando...","Confirmation Code":"Codigo de confirmación","Sign In":"Iniciar sesíon","Sign Up":"Regístrase","Sign Out":"Desconectar","Forgot Password":"Se te olvidó la contraseña?",Username:"Nombre de usuario",Password:"Contraseña","Change Password":"Cambia la contraseña","New Password":"Nueva contraseña",Email:"Email","Phone Number":"Número de teléfono","Resend Code":"Mandar codigo otra vez","Create a new account":"Crear una cuenta nueva","Confirm a Code":"Confirmar un código","Confirm Sign In":"Confirmar inicio de sesión","Confirm Sign Up":"Confirmar Registración","Back to Sign In":"Iniciar sesión","Send Code":"Enviar código",Confirm:"Confirmar","Resend a Code":"Reenviar un código",Submit:"Enviar",Skip:"Omitir",Verify:"Verificar","Verify Contact":"Verificar contacto",Code:"Código","Account recovery requires verified contact information":"La recuperación de la cuenta requiere información de contacto verificada","Username cannot be empty":"El campo de usuario no puede estar vacido","User does not exist":"El usuario no existe","User already exists":"El usuario ya existe","Incorrect username or password":"Nombre de usuario o contraseña incorrecta","Invalid password format":"Formato de contraseña inválido","Invalid phone number format":"Formato de número de teléfono inválido.\nUtilice el formato de número de teléfono +12345678900"},it:{"Account recovery requires verified contact information":"Ripristino del conto richiede un account verificati","An account with the given email already exists.":"Un account con questa email esiste già.","Back to Sign In":"Torna alla Accesso","Change Password":"Cambia la password",Code:"Codice",Confirm:"Conferma","Confirm Sign In":"Conferma di applicazione","Confirm Sign Up":"Registrazione Conferma","Confirm a Code":"Codice Conferma","Confirmation Code":"Codice di verifica","Create Account":"Crea account","Create a new account":"Creare un nuovo account","Create account":"Registrati",Email:"E-mail","Enter your password":"Inserire la password","Enter your username":"Inserisci il tuo nome utente","Forgot your password?":"Password dimenticata?","Forgot Password":"Password dimenticata","Have an account? ":"Già registrato?","Incorrect username or password":"Nome utente o password errati","Invalid password format":"Formato della password non valido","Invalid phone number format":"Utilizzo non valido Telefonummern formattare un numero nel formato :. 12.345.678,9 mille","Lost your code?":"Perso codice?","New Password":"Nuova password","No account? ":"Nessun account?",Password:"Password","Password attempts exceeded":"Il numero massimo di tentativi di accesso falliti è stato raggiunto","Phone Number":"Numero di telefono","Resend Code":"Codice Rispedisci","Reset password":"Ripristina password","Reset your password":"Resetta password","Send Code":"Invia codice","Sign In":"Accesso","Sign Out":"Esci","Sign Up":"Iscriviti","Sign in":"Accesso","Sign in to your account":"Accedi con il tuo account a",Skip:"Salta",Submit:"Sottoscrivi","User already exists":"Questo utente esiste già","User does not exist":"Questo utente non esiste",Username:"Nome utente","Username cannot be empty":"Nome utente non può essere vuoto",Verify:"Verifica","Verify Contact":"Contatto verifica"},zh:{"Sign In":"登录","Sign Up":"注册","Sign Out":"退出","Forgot Password":"忘记密码",Username:"用户名",Password:"密码","Change Password":"改变密码","New Password":"新密码",Email:"邮箱","Phone Number":"电话","Confirm a Code":"确认码","Confirm Sign In":"确认登录","Confirm Sign Up":"确认注册","Back to Sign In":"回到登录","Send Code":"发送确认码",Confirm:"确认","Resend a Code":"重发确认码",Submit:"提交",Skip:"跳过",Verify:"验证","Verify Contact":"验证联系方式",Code:"确认码","Account recovery requires verified contact information":"账户恢复需要验证过的联系方式","User does not exist":"用户不存在","User already exists":"用户已经存在","Incorrect username or password":"用户名或密码错误","Invalid password format":"密码格式错误","Invalid phone number format":"电话格式错误,请使用格式 +12345678900"},ja:{"Sign In":"サインイン ","Sign Up":"登録 ","Sign Out":"サインアウト ","Sign in to your account":"アカウントにサインイン ",Username:"ユーザー名 ",Password:"パスワード ","Enter your username":"ユーザー名を入力 ","Enter your password":"パスワードを入力 ","No account? ":"アカウントが無いとき ","Forgot your password? ":"パスワードを忘れましたか? ","Reset password":"パスワードをリセット ","User does not exist":"ユーザーが存在しません ","User already exists":"既にユーザーが存在しています ","Incorrect username or password":"ユーザー名かパスワードが異なります ","Invalid password format":"パスワードの形式が無効です ","Create account":"アカウントを作る ","Forgot Password":"パスワードを忘れた ","Change Password":"パスワードを変える ","New Password":"新しいパスワード",Email:"メールアドレス","Phone Number":"電話番号","Confirm a Code":"コードを確認","Confirm Sign In":"サインインする","Confirm Sign Up":"登録する","Back to Sign In":"サインインに戻る","Send Code":"コードを送信",Confirm:"確定","Resend Code":"コードを再送信",Submit:"送信",Skip:"スキップ",Verify:"確認","Verify Contact":"連絡先を確認",Code:"コード","Confirmation Code":"確認コード","Lost your code? ":"コードを失くしましたか?","Account recovery requires verified contact information":"アカウントの復旧には確認済みの連絡先が必要です","Invalid phone number format":"不正な電話番号の形式です。\n+12345678900 の形式で入力してください","Create Account":"アカウントを作る","Have an account? ":"アカウントを持っていますか?","Sign in":"サインイン","Create a new account":"新しいアカウントを作る","Reset your password":"パスワードをリセットする","An account with the given email already exists.":"入力されたメールアドレスのアカウントが既に存在します","Username cannot be empty":"ユーザー名は入力必須です","Password attempts exceeded":"サインインの試行回数が上限に達しました","Sign In with Google":"Googleでサインイン","Sign In with Facebook":"Facebookでサインイン"}};nx.zh["Reset Password"]="重置密码",nx.zh["Enter your username"]="请输入用户名",nx.zh["Enter your email"]="请输入邮箱",nx.zh["Enter your password"]="请输入密码",nx.zh["Confirm Password"]="确认密码",nx.zh["Please confirm your Password"]="请确认密码",nx.zh["Incorrect username or password."]="用户名或者密码不正确。如果您的邮箱未验证,请尝试使用用户名(非邮箱)登录,以保证再次邮箱验证流程。",nx.en={"Incorrect username or password.":"Incorrect username or password! For unconfirmed users, please input your username instead of Email to receive the code."};const rx={"Sign Up":["Sign up","Create Account"],"Sign In":["Sign in"],"Sign Out":"Sign out","Send Code":"Send code","Forgot Password":["Forgot your password?"],"Enter your email":["Enter your Email"],"Enter your password":["Enter your Password"],"Enter your username":["Enter your Username"]};Object.keys(nx).forEach((e=>{const t=nx[e];Object.entries(rx).forEach((([e,n])=>{if(t?.hasOwnProperty(e)){(Array.isArray(n)?n:[n]).forEach((n=>{t[n]=t[e]}))}}))})),M.putVocabularies(nx),window.LSAmplify={setupAuthConfigure:function(e){const{region:t,userPoolId:n,userPoolWebClientId:r,identityPoolId:o,oauthDomain:i,oauthProviders:a}=e;S.configure({aws_project_region:t,aws_cognito_identity_pool_id:o,aws_cognito_region:t,aws_user_pools_id:n,aws_user_pools_web_client_id:r,authenticationFlowType:"USER_SRP_AUTH",oauth:{domain:i,scope:["phone","email","openid","profile","aws.cognito.signin.user.admin"],redirectSignIn:"https://logseq.com/public/auth_callback.html",redirectSignOut:"https://logseq.com/public/auth_callback.html",responseType:"code"},federationTarget:"COGNITO_USER_POOLS",aws_cognito_social_providers:a||["GOOGLE"],aws_cognito_signup_attributes:["EMAIL"],aws_cognito_password_protection_settings:{passwordPolicyMinLength:8,passwordPolicyCharacters:[]},aws_cognito_verification_mechanisms:["EMAIL"]})},LSAuthenticator:function({termsLink:e,children:t}){return(0,Zu.jsx)("div",{children:(0,Zu.jsx)(Qk,{formFields:{signUp:{email:{order:1},username:{order:2},password:{order:3},confirm_password:{order:4}}},loginMechanisms:["username"],socialProviders:["google"],components:{SignUp:{FormFields(){const{validationErrors:t}=OC();return(0,Zu.jsxs)(Zu.Fragment,{children:[(0,Zu.jsx)(Qk.SignUp.FormFields,{}),(0,Zu.jsx)(tx,{errorMessage:t.acknowledgement,hasError:!!t.acknowledgement,name:"acknowledgement",value:"yes",label:(0,Zu.jsx)("a",{href:e,children:"I agree with the Terms & Conditions"})})]})}}},services:{async validateCustomSignUp(e){if(!e.acknowledgement)return{acknowledgement:""}}},children:t})})},LSAuthenticatorChangePassword:function({onSuccess:e,onError:t}){return(0,Zu.jsx)(iy.ChangePassword,{onSuccess:e,onError:t})},Auth:Ku,Amplify:S,Hub:P,I18n:M};var ox,ix,ax={};function sx(){throw new Error("setTimeout has not been defined")}function ux(){throw new Error("clearTimeout has not been defined")}function lx(e){if(ox===setTimeout)return setTimeout(e,0);if((ox===sx||!ox)&&setTimeout)return ox=setTimeout,setTimeout(e,0);try{return ox(e,0)}catch(t){try{return ox.call(null,e,0)}catch(t){return ox.call(this,e,0)}}}!function(){try{ox="function"==typeof setTimeout?setTimeout:sx}catch(e){ox=sx}try{ix="function"==typeof clearTimeout?clearTimeout:ux}catch(e){ix=ux}}();var cx,dx=[],fx=!1,hx=-1;function px(){fx&&cx&&(fx=!1,cx.length?dx=cx.concat(dx):hx=-1,dx.length&&mx())}function mx(){if(!fx){var e=lx(px);fx=!0;for(var t=dx.length;t;){for(cx=dx,dx=[];++hx<t;)cx&&cx[hx].run();hx=-1,t=dx.length}cx=null,fx=!1,function(e){if(ix===clearTimeout)return clearTimeout(e);if((ix===ux||!ix)&&clearTimeout)return ix=clearTimeout,clearTimeout(e);try{return ix(e)}catch(t){try{return ix.call(null,e)}catch(t){return ix.call(this,e)}}}(e)}}function gx(e,t){this.fun=e,this.array=t}function vx(){}ax.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];dx.push(new gx(e,t)),1!==dx.length||fx||lx(mx)},gx.prototype.run=function(){this.fun.apply(null,this.array)},ax.title="browser",ax.browser=!0,ax.env={},ax.argv=[],ax.version="",ax.versions={},ax.on=vx,ax.addListener=vx,ax.once=vx,ax.off=vx,ax.removeListener=vx,ax.removeAllListeners=vx,ax.emit=vx,ax.prependListener=vx,ax.prependOnceListener=vx,ax.listeners=function(e){return[]},ax.binding=function(e){throw new Error("process.binding is not supported")},ax.cwd=function(){return"/"},ax.chdir=function(e){throw new Error("process.chdir is not supported")},ax.umask=function(){return 0}})();